@dmarket/p2p-tracker-core 1.3.1-SNAPSHOT-development.204 → 1.3.1-SNAPSHOT-development.228
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 +5525 -4918
- package/dmarket-p2p-tracker-core-domain.mjs.map +1 -1
- package/kotlin-kotlin-stdlib.mjs +1887 -1376
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlinx-atomicfu.mjs +13 -13
- package/kotlinx-coroutines-core.mjs +2116 -2116
- package/kotlinx-io-kotlinx-io-bytestring.mjs +32 -32
- package/kotlinx-io-kotlinx-io-core.mjs +451 -451
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1715 -1714
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1400 -1400
- package/ktor-ktor-client-core.mjs +1962 -1961
- package/ktor-ktor-events.mjs +6 -6
- package/ktor-ktor-http-cio.mjs +320 -320
- package/ktor-ktor-http.mjs +1736 -787
- package/ktor-ktor-http.mjs.map +1 -1
- package/ktor-ktor-io.mjs +628 -628
- package/ktor-ktor-utils.mjs +725 -722
- package/ktor-ktor-websockets.mjs +389 -389
- package/p2p-tracker-core.d.mts +6 -4
- package/p2p-tracker-core.mjs +11609 -8602
- 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.x3u().m9(Companion_getInstance().u3u_1);
|
|
110
110
|
}
|
|
111
111
|
function resume_0(throwable) {
|
|
112
|
-
var tmp = this.
|
|
112
|
+
var tmp = this.x3u();
|
|
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().u3u_1 : tmp1_elvis_lhs.ir_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.g3x(min, $completion) : $super.g3x.call(this, min, $completion);
|
|
135
135
|
}
|
|
136
136
|
initMetadataForInterface(ByteReadChannel_1, 'ByteReadChannel', VOID, VOID, VOID, [1]);
|
|
137
137
|
function get_autoFlush() {
|
|
@@ -176,7 +176,7 @@ initMetadataForClass(SourceByteReadChannel, 'SourceByteReadChannel', VOID, VOID,
|
|
|
176
176
|
initMetadataForClass(MalformedInputException, 'MalformedInputException', VOID, IOException);
|
|
177
177
|
initMetadataForClass(TooLongLineException, 'TooLongLineException', VOID, MalformedInputException);
|
|
178
178
|
function close() {
|
|
179
|
-
this.
|
|
179
|
+
this.h1t();
|
|
180
180
|
}
|
|
181
181
|
initMetadataForInterface(ObjectPool, 'ObjectPool', VOID, VOID, [AutoCloseable]);
|
|
182
182
|
initMetadataForClass(DefaultPool, 'DefaultPool', VOID, VOID, [ObjectPool]);
|
|
@@ -195,10 +195,10 @@ initMetadataForClass(TextDecoderFallback, 'TextDecoderFallback');
|
|
|
195
195
|
//endregion
|
|
196
196
|
function Companion() {
|
|
197
197
|
Companion_instance_0 = this;
|
|
198
|
-
this.
|
|
198
|
+
this.t3u_1 = new Closed(null);
|
|
199
199
|
var tmp = this;
|
|
200
200
|
// Inline function 'kotlin.Companion.success' call
|
|
201
|
-
tmp.
|
|
201
|
+
tmp.u3u_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.v3u_1 = cause;
|
|
230
230
|
}
|
|
231
231
|
protoOf(Closed).toString = function () {
|
|
232
|
-
return 'Closed(cause=' + toString(this.
|
|
232
|
+
return 'Closed(cause=' + toString(this.v3u_1) + ')';
|
|
233
233
|
};
|
|
234
234
|
protoOf(Closed).hashCode = function () {
|
|
235
|
-
return this.
|
|
235
|
+
return this.v3u_1 == null ? 0 : hashCode(this.v3u_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.v3u_1, other.v3u_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.b3v_1 = continuation;
|
|
250
|
+
this.c3v_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.b3v_1), 16));
|
|
255
255
|
stackTraceToString(this_0);
|
|
256
|
-
tmp.
|
|
256
|
+
tmp.c3v_1 = this_0;
|
|
257
257
|
}
|
|
258
258
|
}
|
|
259
|
-
protoOf(Read).
|
|
260
|
-
return this.
|
|
259
|
+
protoOf(Read).x3u = function () {
|
|
260
|
+
return this.b3v_1;
|
|
261
261
|
};
|
|
262
|
-
protoOf(Read).
|
|
263
|
-
return this.
|
|
262
|
+
protoOf(Read).w3u = function () {
|
|
263
|
+
return this.c3v_1;
|
|
264
264
|
};
|
|
265
|
-
protoOf(Read).
|
|
265
|
+
protoOf(Read).y3u = function () {
|
|
266
266
|
return 'read';
|
|
267
267
|
};
|
|
268
268
|
function Write(continuation) {
|
|
269
|
-
this.
|
|
270
|
-
this.
|
|
269
|
+
this.d3v_1 = continuation;
|
|
270
|
+
this.e3v_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.d3v_1), 16));
|
|
275
275
|
stackTraceToString(this_0);
|
|
276
|
-
tmp.
|
|
276
|
+
tmp.e3v_1 = this_0;
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
|
-
protoOf(Write).
|
|
280
|
-
return this.
|
|
279
|
+
protoOf(Write).x3u = function () {
|
|
280
|
+
return this.d3v_1;
|
|
281
281
|
};
|
|
282
|
-
protoOf(Write).
|
|
283
|
-
return this.
|
|
282
|
+
protoOf(Write).w3u = function () {
|
|
283
|
+
return this.e3v_1;
|
|
284
284
|
};
|
|
285
|
-
protoOf(Write).
|
|
285
|
+
protoOf(Write).y3u = function () {
|
|
286
286
|
return 'write';
|
|
287
287
|
};
|
|
288
288
|
function rethrowCloseCauseIfNeeded($this) {
|
|
289
|
-
var tmp0_safe_receiver = $this.
|
|
289
|
+
var tmp0_safe_receiver = $this.o3v();
|
|
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.i3v_1;
|
|
300
|
+
$this.g3v_1.y3s($this.k3v_1);
|
|
301
|
+
$this.h3v_1 = 0;
|
|
302
302
|
// Inline function 'io.ktor.utils.io.ByteChannel.resumeSlot' call
|
|
303
|
-
var current = $this.
|
|
303
|
+
var current = $this.j3v_1.kotlinx$atomicfu$value;
|
|
304
304
|
var tmp;
|
|
305
305
|
if (current instanceof Write) {
|
|
306
|
-
tmp = $this.
|
|
306
|
+
tmp = $this.j3v_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
307
307
|
} else {
|
|
308
308
|
tmp = false;
|
|
309
309
|
}
|
|
310
310
|
if (tmp) {
|
|
311
|
-
current.
|
|
311
|
+
current.z3u();
|
|
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().t3u_1;
|
|
316
|
+
var continuation = $this.j3v_1.atomicfu$getAndSet(closeContinuation);
|
|
317
317
|
if (isInterface(continuation, Task)) {
|
|
318
|
-
continuation.
|
|
318
|
+
continuation.a3v(cause);
|
|
319
319
|
}
|
|
320
|
-
var tmp0_safe_receiver = $this.
|
|
320
|
+
var tmp0_safe_receiver = $this.n3v_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.p3v_1 = function_0;
|
|
328
328
|
}
|
|
329
|
-
protoOf(sam$kotlinx_coroutines_DisposableHandle$0).
|
|
330
|
-
return this.
|
|
329
|
+
protoOf(sam$kotlinx_coroutines_DisposableHandle$0).h1t = function () {
|
|
330
|
+
return this.p3v_1();
|
|
331
331
|
};
|
|
332
332
|
protoOf(sam$kotlinx_coroutines_DisposableHandle$0).r3 = function () {
|
|
333
|
-
return this.
|
|
333
|
+
return this.p3v_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.n3v_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.y3v_1 = _this__u8e3s4;
|
|
368
|
+
this.z3v_1 = min;
|
|
369
369
|
}
|
|
370
370
|
protoOf($awaitContentCOROUTINE$).j9 = function () {
|
|
371
371
|
var suspendResult = this.d9_1;
|
|
@@ -375,39 +375,39 @@ 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.y3v_1);
|
|
379
|
+
if (compare(this.y3v_1.k3v_1.e1(), fromInt(this.z3v_1)) >= 0)
|
|
380
380
|
return true;
|
|
381
|
-
this.
|
|
381
|
+
this.a3w_1 = this.y3v_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.y3v_1.h3v_1), this.y3v_1.k3v_1.e1()), fromInt(this.z3v_1)) < 0 && this.y3v_1.m3v_1.kotlinx$atomicfu$value == null)) {
|
|
386
386
|
this.b9_1 = 3;
|
|
387
387
|
continue $sm;
|
|
388
388
|
}
|
|
389
389
|
|
|
390
390
|
this.b9_1 = 2;
|
|
391
391
|
var cancellable = new CancellableContinuationImpl(intercepted(this), 1);
|
|
392
|
-
cancellable.
|
|
393
|
-
var tmp0 = this.
|
|
392
|
+
cancellable.k1u();
|
|
393
|
+
var tmp0 = this.a3w_1;
|
|
394
394
|
var tmp2 = new Read(cancellable);
|
|
395
395
|
l$ret$1: do {
|
|
396
|
-
var previous = tmp0.
|
|
396
|
+
var previous = tmp0.j3v_1.kotlinx$atomicfu$value;
|
|
397
397
|
if (!(previous instanceof Closed)) {
|
|
398
|
-
if (!tmp0.
|
|
399
|
-
tmp2.
|
|
398
|
+
if (!tmp0.j3v_1.atomicfu$compareAndSet(previous, tmp2)) {
|
|
399
|
+
tmp2.z3u();
|
|
400
400
|
break l$ret$1;
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
403
|
if (previous instanceof Read) {
|
|
404
|
-
previous.
|
|
404
|
+
previous.a3v(new ConcurrentIOException(tmp2.y3u(), previous.w3u()));
|
|
405
405
|
} else {
|
|
406
406
|
if (isInterface(previous, Task)) {
|
|
407
|
-
previous.
|
|
407
|
+
previous.z3u();
|
|
408
408
|
} else {
|
|
409
409
|
if (previous instanceof Closed) {
|
|
410
|
-
tmp2.
|
|
410
|
+
tmp2.a3v(previous.v3u_1);
|
|
411
411
|
break l$ret$1;
|
|
412
412
|
} else {
|
|
413
413
|
if (!equals(previous, Empty_instance)) {
|
|
@@ -416,21 +416,21 @@ 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.y3v_1.h3v_1), this.y3v_1.k3v_1.e1()), fromInt(this.z3v_1)) < 0 && this.y3v_1.m3v_1.kotlinx$atomicfu$value == null)) {
|
|
420
|
+
var current = tmp0.j3v_1.kotlinx$atomicfu$value;
|
|
421
421
|
var tmp_0;
|
|
422
422
|
if (current instanceof Read) {
|
|
423
|
-
tmp_0 = tmp0.
|
|
423
|
+
tmp_0 = tmp0.j3v_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.z3u();
|
|
429
429
|
}
|
|
430
430
|
}
|
|
431
431
|
}
|
|
432
432
|
while (false);
|
|
433
|
-
suspendResult = returnIfSuspended(cancellable.
|
|
433
|
+
suspendResult = returnIfSuspended(cancellable.l1u(), this);
|
|
434
434
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
435
435
|
return suspendResult;
|
|
436
436
|
}
|
|
@@ -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.y3v_1);
|
|
444
|
+
if (compare(this.y3v_1.k3v_1.e1(), new Long(1048576, 0)) < 0) {
|
|
445
|
+
moveFlushToReadBuffer(this.y3v_1);
|
|
446
446
|
}
|
|
447
447
|
|
|
448
|
-
return compare(this.
|
|
448
|
+
return compare(this.y3v_1.k3v_1.e1(), fromInt(this.z3v_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.j3w_1 = _this__u8e3s4;
|
|
466
466
|
}
|
|
467
467
|
protoOf($flushCOROUTINE$).j9 = function () {
|
|
468
468
|
var suspendResult = this.d9_1;
|
|
@@ -472,40 +472,40 @@ 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.j3w_1);
|
|
476
|
+
this.j3w_1.l3w();
|
|
477
|
+
if (this.j3w_1.m3w())
|
|
478
478
|
return Unit_instance;
|
|
479
|
-
this.
|
|
479
|
+
this.k3w_1 = this.j3w_1;
|
|
480
480
|
this.b9_1 = 1;
|
|
481
481
|
continue $sm;
|
|
482
482
|
case 1:
|
|
483
|
-
if (!(!this.
|
|
483
|
+
if (!(!this.j3w_1.m3w() && this.j3w_1.m3v_1.kotlinx$atomicfu$value == null)) {
|
|
484
484
|
this.b9_1 = 3;
|
|
485
485
|
continue $sm;
|
|
486
486
|
}
|
|
487
487
|
|
|
488
488
|
this.b9_1 = 2;
|
|
489
489
|
var cancellable = new CancellableContinuationImpl(intercepted(this), 1);
|
|
490
|
-
cancellable.
|
|
491
|
-
var tmp0 = this.
|
|
490
|
+
cancellable.k1u();
|
|
491
|
+
var tmp0 = this.k3w_1;
|
|
492
492
|
var tmp2 = new Write(cancellable);
|
|
493
493
|
l$ret$1: do {
|
|
494
|
-
var previous = tmp0.
|
|
494
|
+
var previous = tmp0.j3v_1.kotlinx$atomicfu$value;
|
|
495
495
|
if (!(previous instanceof Closed)) {
|
|
496
|
-
if (!tmp0.
|
|
497
|
-
tmp2.
|
|
496
|
+
if (!tmp0.j3v_1.atomicfu$compareAndSet(previous, tmp2)) {
|
|
497
|
+
tmp2.z3u();
|
|
498
498
|
break l$ret$1;
|
|
499
499
|
}
|
|
500
500
|
}
|
|
501
501
|
if (previous instanceof Write) {
|
|
502
|
-
previous.
|
|
502
|
+
previous.a3v(new ConcurrentIOException(tmp2.y3u(), previous.w3u()));
|
|
503
503
|
} else {
|
|
504
504
|
if (isInterface(previous, Task)) {
|
|
505
|
-
previous.
|
|
505
|
+
previous.z3u();
|
|
506
506
|
} else {
|
|
507
507
|
if (previous instanceof Closed) {
|
|
508
|
-
tmp2.
|
|
508
|
+
tmp2.a3v(previous.v3u_1);
|
|
509
509
|
break l$ret$1;
|
|
510
510
|
} else {
|
|
511
511
|
if (!equals(previous, Empty_instance)) {
|
|
@@ -514,21 +514,21 @@ protoOf($flushCOROUTINE$).j9 = function () {
|
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
516
|
}
|
|
517
|
-
if (!(!this.
|
|
518
|
-
var current = tmp0.
|
|
517
|
+
if (!(!this.j3w_1.m3w() && this.j3w_1.m3v_1.kotlinx$atomicfu$value == null)) {
|
|
518
|
+
var current = tmp0.j3v_1.kotlinx$atomicfu$value;
|
|
519
519
|
var tmp_0;
|
|
520
520
|
if (current instanceof Write) {
|
|
521
|
-
tmp_0 = tmp0.
|
|
521
|
+
tmp_0 = tmp0.j3v_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.z3u();
|
|
527
527
|
}
|
|
528
528
|
}
|
|
529
529
|
}
|
|
530
530
|
while (false);
|
|
531
|
-
suspendResult = returnIfSuspended(cancellable.
|
|
531
|
+
suspendResult = returnIfSuspended(cancellable.l1u(), this);
|
|
532
532
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
533
533
|
return suspendResult;
|
|
534
534
|
}
|
|
@@ -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.v3w_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.v3w_1;
|
|
569
569
|
this.c9_1 = 2;
|
|
570
|
-
this.
|
|
570
|
+
this.x3w_1 = Companion_instance;
|
|
571
571
|
this.b9_1 = 1;
|
|
572
|
-
suspendResult = this_0.
|
|
572
|
+
suspendResult = this_0.y3w(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.x3w_1;
|
|
581
|
+
tmp_0.w3w_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.w3w_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.v3w_1.m3v_1.atomicfu$compareAndSet(null, get_CLOSED()))
|
|
601
601
|
return Unit_instance;
|
|
602
|
-
closeSlot(this.
|
|
602
|
+
closeSlot(this.v3w_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.f3v_1 = autoFlush;
|
|
621
|
+
this.g3v_1 = new Buffer();
|
|
622
|
+
this.h3v_1 = 0;
|
|
623
|
+
this.i3v_1 = new Object();
|
|
624
|
+
this.j3v_1 = atomic$ref$1(Empty_instance);
|
|
625
|
+
this.k3v_1 = new Buffer();
|
|
626
|
+
this.l3v_1 = new Buffer();
|
|
627
|
+
this.m3v_1 = atomic$ref$1(null);
|
|
628
|
+
this.n3v_1 = atomic$ref$1(null);
|
|
629
|
+
}
|
|
630
|
+
protoOf(ByteChannel).z3w = function () {
|
|
631
|
+
return this.f3v_1;
|
|
632
|
+
};
|
|
633
|
+
protoOf(ByteChannel).m3w = function () {
|
|
634
|
+
return this.h3v_1 < 1048576;
|
|
635
|
+
};
|
|
636
|
+
protoOf(ByteChannel).a3x = function () {
|
|
637
|
+
var tmp0_safe_receiver = this.m3v_1.kotlinx$atomicfu$value;
|
|
638
638
|
if (tmp0_safe_receiver == null)
|
|
639
639
|
null;
|
|
640
640
|
else {
|
|
@@ -646,7 +646,7 @@ protoOf(ByteChannel).w3u = function () {
|
|
|
646
646
|
tmp = null;
|
|
647
647
|
} else {
|
|
648
648
|
if (isInterface(tmp0_subject, CopyableThrowable)) {
|
|
649
|
-
tmp = access$_get_origin__hdh1qz(tmp0_safe_receiver).
|
|
649
|
+
tmp = access$_get_origin__hdh1qz(tmp0_safe_receiver).b1z();
|
|
650
650
|
} else {
|
|
651
651
|
if (tmp0_subject instanceof CancellationException) {
|
|
652
652
|
tmp = CancellationException_init_$Create$(access$_get_origin__hdh1qz(tmp0_safe_receiver).message, access$_get_origin__hdh1qz(tmp0_safe_receiver));
|
|
@@ -665,14 +665,14 @@ protoOf(ByteChannel).w3u = function () {
|
|
|
665
665
|
throw tmp0_safe_receiver_0;
|
|
666
666
|
}
|
|
667
667
|
}
|
|
668
|
-
if (this.
|
|
668
|
+
if (this.k3v_1.v3r()) {
|
|
669
669
|
moveFlushToReadBuffer(this);
|
|
670
670
|
}
|
|
671
|
-
return this.
|
|
671
|
+
return this.k3v_1;
|
|
672
672
|
};
|
|
673
|
-
protoOf(ByteChannel).
|
|
674
|
-
if (this.
|
|
675
|
-
var tmp0_safe_receiver = this.
|
|
673
|
+
protoOf(ByteChannel).b3x = function () {
|
|
674
|
+
if (this.c3x()) {
|
|
675
|
+
var tmp0_safe_receiver = this.m3v_1.kotlinx$atomicfu$value;
|
|
676
676
|
var tmp;
|
|
677
677
|
if (tmp0_safe_receiver == null) {
|
|
678
678
|
tmp = null;
|
|
@@ -685,7 +685,7 @@ protoOf(ByteChannel).x3u = function () {
|
|
|
685
685
|
tmp_0 = null;
|
|
686
686
|
} else {
|
|
687
687
|
if (isInterface(tmp0_subject, CopyableThrowable)) {
|
|
688
|
-
tmp_0 = access$_get_origin__hdh1qz(tmp0_safe_receiver).
|
|
688
|
+
tmp_0 = access$_get_origin__hdh1qz(tmp0_safe_receiver).b1z();
|
|
689
689
|
} else {
|
|
690
690
|
if (tmp0_subject instanceof CancellationException) {
|
|
691
691
|
tmp_0 = CancellationException_init_$Create$(access$_get_origin__hdh1qz(tmp0_safe_receiver).message, access$_get_origin__hdh1qz(tmp0_safe_receiver));
|
|
@@ -708,10 +708,10 @@ protoOf(ByteChannel).x3u = function () {
|
|
|
708
708
|
if (tmp == null)
|
|
709
709
|
throw new ClosedWriteChannelException();
|
|
710
710
|
}
|
|
711
|
-
return this.
|
|
711
|
+
return this.l3v_1;
|
|
712
712
|
};
|
|
713
|
-
protoOf(ByteChannel).
|
|
714
|
-
var tmp0_safe_receiver = this.
|
|
713
|
+
protoOf(ByteChannel).o3v = function () {
|
|
714
|
+
var tmp0_safe_receiver = this.m3v_1.kotlinx$atomicfu$value;
|
|
715
715
|
var tmp;
|
|
716
716
|
if (tmp0_safe_receiver == null) {
|
|
717
717
|
tmp = null;
|
|
@@ -723,7 +723,7 @@ protoOf(ByteChannel).k3t = function () {
|
|
|
723
723
|
tmp_0 = null;
|
|
724
724
|
} else {
|
|
725
725
|
if (isInterface(tmp0_subject, CopyableThrowable)) {
|
|
726
|
-
tmp_0 = access$_get_origin__hdh1qz(tmp0_safe_receiver).
|
|
726
|
+
tmp_0 = access$_get_origin__hdh1qz(tmp0_safe_receiver).b1z();
|
|
727
727
|
} else {
|
|
728
728
|
if (tmp0_subject instanceof CancellationException) {
|
|
729
729
|
tmp_0 = CancellationException_init_$Create$(access$_get_origin__hdh1qz(tmp0_safe_receiver).message, access$_get_origin__hdh1qz(tmp0_safe_receiver));
|
|
@@ -737,68 +737,68 @@ protoOf(ByteChannel).k3t = function () {
|
|
|
737
737
|
}
|
|
738
738
|
return tmp;
|
|
739
739
|
};
|
|
740
|
-
protoOf(ByteChannel).
|
|
741
|
-
return !(this.
|
|
740
|
+
protoOf(ByteChannel).c3x = function () {
|
|
741
|
+
return !(this.m3v_1.kotlinx$atomicfu$value == null);
|
|
742
742
|
};
|
|
743
|
-
protoOf(ByteChannel).
|
|
743
|
+
protoOf(ByteChannel).d3x = function () {
|
|
744
744
|
var tmp;
|
|
745
|
-
var tmp0_safe_receiver = this.
|
|
746
|
-
if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
745
|
+
var tmp0_safe_receiver = this.m3v_1.kotlinx$atomicfu$value;
|
|
746
|
+
if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.f3x()) === true) {
|
|
747
747
|
tmp = true;
|
|
748
748
|
} else {
|
|
749
|
-
tmp = (this.
|
|
749
|
+
tmp = (this.c3x() && this.h3v_1 === 0 && this.k3v_1.v3r());
|
|
750
750
|
}
|
|
751
751
|
return tmp;
|
|
752
752
|
};
|
|
753
|
-
protoOf(ByteChannel).
|
|
753
|
+
protoOf(ByteChannel).g3x = function (min, $completion) {
|
|
754
754
|
var tmp = new $awaitContentCOROUTINE$(this, min, $completion);
|
|
755
755
|
tmp.d9_1 = Unit_instance;
|
|
756
756
|
tmp.e9_1 = null;
|
|
757
757
|
return tmp.j9();
|
|
758
758
|
};
|
|
759
|
-
protoOf(ByteChannel).
|
|
759
|
+
protoOf(ByteChannel).y3w = function ($completion) {
|
|
760
760
|
var tmp = new $flushCOROUTINE$(this, $completion);
|
|
761
761
|
tmp.d9_1 = Unit_instance;
|
|
762
762
|
tmp.e9_1 = null;
|
|
763
763
|
return tmp.j9();
|
|
764
764
|
};
|
|
765
|
-
protoOf(ByteChannel).
|
|
766
|
-
if (this.
|
|
765
|
+
protoOf(ByteChannel).l3w = function () {
|
|
766
|
+
if (this.l3v_1.v3r())
|
|
767
767
|
return Unit_instance;
|
|
768
768
|
// Inline function 'io.ktor.utils.io.locks.synchronized' call
|
|
769
|
-
this.
|
|
770
|
-
var count = convertToInt(this.
|
|
771
|
-
this.
|
|
772
|
-
this.
|
|
769
|
+
this.i3v_1;
|
|
770
|
+
var count = convertToInt(this.l3v_1.e1());
|
|
771
|
+
this.g3v_1.n3t(this.l3v_1);
|
|
772
|
+
this.h3v_1 = this.h3v_1 + count | 0;
|
|
773
773
|
// Inline function 'io.ktor.utils.io.ByteChannel.resumeSlot' call
|
|
774
|
-
var current = this.
|
|
774
|
+
var current = this.j3v_1.kotlinx$atomicfu$value;
|
|
775
775
|
var tmp;
|
|
776
776
|
if (current instanceof Read) {
|
|
777
|
-
tmp = this.
|
|
777
|
+
tmp = this.j3v_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
778
778
|
} else {
|
|
779
779
|
tmp = false;
|
|
780
780
|
}
|
|
781
781
|
if (tmp) {
|
|
782
|
-
current.
|
|
782
|
+
current.z3u();
|
|
783
783
|
}
|
|
784
784
|
};
|
|
785
785
|
protoOf(ByteChannel).j4 = function () {
|
|
786
|
-
this.
|
|
787
|
-
if (!this.
|
|
786
|
+
this.l3w();
|
|
787
|
+
if (!this.m3v_1.atomicfu$compareAndSet(null, get_CLOSED()))
|
|
788
788
|
return Unit_instance;
|
|
789
789
|
closeSlot(this, null);
|
|
790
790
|
};
|
|
791
|
-
protoOf(ByteChannel).
|
|
791
|
+
protoOf(ByteChannel).i3x = function ($completion) {
|
|
792
792
|
var tmp = new $flushAndCloseCOROUTINE$(this, $completion);
|
|
793
793
|
tmp.d9_1 = Unit_instance;
|
|
794
794
|
tmp.e9_1 = null;
|
|
795
795
|
return tmp.j9();
|
|
796
796
|
};
|
|
797
|
-
protoOf(ByteChannel).
|
|
798
|
-
if (!(this.
|
|
797
|
+
protoOf(ByteChannel).j3x = function (cause) {
|
|
798
|
+
if (!(this.m3v_1.kotlinx$atomicfu$value == null))
|
|
799
799
|
return Unit_instance;
|
|
800
800
|
var closedToken = new CloseToken(cause);
|
|
801
|
-
this.
|
|
801
|
+
this.m3v_1.atomicfu$compareAndSet(null, closedToken);
|
|
802
802
|
// Inline function 'io.ktor.utils.io.Companion.wrapCause' call
|
|
803
803
|
var tmp0_subject = access$_get_origin__hdh1qz(closedToken);
|
|
804
804
|
var tmp;
|
|
@@ -806,7 +806,7 @@ protoOf(ByteChannel).f3v = function (cause) {
|
|
|
806
806
|
tmp = null;
|
|
807
807
|
} else {
|
|
808
808
|
if (isInterface(tmp0_subject, CopyableThrowable)) {
|
|
809
|
-
tmp = access$_get_origin__hdh1qz(closedToken).
|
|
809
|
+
tmp = access$_get_origin__hdh1qz(closedToken).b1z();
|
|
810
810
|
} else {
|
|
811
811
|
if (tmp0_subject instanceof CancellationException) {
|
|
812
812
|
tmp = CancellationException_init_$Create$(access$_get_origin__hdh1qz(closedToken).message, access$_get_origin__hdh1qz(closedToken));
|
|
@@ -819,8 +819,8 @@ protoOf(ByteChannel).f3v = function (cause) {
|
|
|
819
819
|
var wrappedCause = tmp;
|
|
820
820
|
closeSlot(this, wrappedCause);
|
|
821
821
|
};
|
|
822
|
-
protoOf(ByteChannel).
|
|
823
|
-
var existingCause = this.
|
|
822
|
+
protoOf(ByteChannel).k3x = function (handler) {
|
|
823
|
+
var existingCause = this.m3v_1.kotlinx$atomicfu$value;
|
|
824
824
|
if (!(existingCause == null)) {
|
|
825
825
|
// Inline function 'io.ktor.utils.io.Companion.wrapCause' call
|
|
826
826
|
var tmp0_subject = access$_get_origin__hdh1qz(existingCause);
|
|
@@ -829,7 +829,7 @@ protoOf(ByteChannel).g3v = function (handler) {
|
|
|
829
829
|
tmp = null;
|
|
830
830
|
} else {
|
|
831
831
|
if (isInterface(tmp0_subject, CopyableThrowable)) {
|
|
832
|
-
tmp = access$_get_origin__hdh1qz(existingCause).
|
|
832
|
+
tmp = access$_get_origin__hdh1qz(existingCause).b1z();
|
|
833
833
|
} else {
|
|
834
834
|
if (tmp0_subject instanceof CancellationException) {
|
|
835
835
|
tmp = CancellationException_init_$Create$(access$_get_origin__hdh1qz(existingCause).message, access$_get_origin__hdh1qz(existingCause));
|
|
@@ -843,13 +843,13 @@ protoOf(ByteChannel).g3v = function (handler) {
|
|
|
843
843
|
var tmp_0 = ByteChannel$invokeOnClose$lambda;
|
|
844
844
|
return new sam$kotlinx_coroutines_DisposableHandle$0(tmp_0);
|
|
845
845
|
}
|
|
846
|
-
if (!this.
|
|
846
|
+
if (!this.n3v_1.atomicfu$compareAndSet(null, handler)) {
|
|
847
847
|
// Inline function 'kotlin.error' call
|
|
848
848
|
var message = 'Only one invokeOnClose handler is supported per channel';
|
|
849
849
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
850
850
|
}
|
|
851
|
-
var cause = this.
|
|
852
|
-
if (!(cause == null) && this.
|
|
851
|
+
var cause = this.m3v_1.kotlinx$atomicfu$value;
|
|
852
|
+
if (!(cause == null) && this.n3v_1.atomicfu$compareAndSet(handler, null)) {
|
|
853
853
|
// Inline function 'io.ktor.utils.io.Companion.wrapCause' call
|
|
854
854
|
var tmp0_subject_0 = access$_get_origin__hdh1qz(cause);
|
|
855
855
|
var tmp_1;
|
|
@@ -857,7 +857,7 @@ protoOf(ByteChannel).g3v = function (handler) {
|
|
|
857
857
|
tmp_1 = null;
|
|
858
858
|
} else {
|
|
859
859
|
if (isInterface(tmp0_subject_0, CopyableThrowable)) {
|
|
860
|
-
tmp_1 = access$_get_origin__hdh1qz(cause).
|
|
860
|
+
tmp_1 = access$_get_origin__hdh1qz(cause).b1z();
|
|
861
861
|
} else {
|
|
862
862
|
if (tmp0_subject_0 instanceof CancellationException) {
|
|
863
863
|
tmp_1 = CancellationException_init_$Create$(access$_get_origin__hdh1qz(cause).message, access$_get_origin__hdh1qz(cause));
|
|
@@ -887,7 +887,7 @@ function ByteReadChannel(content, offset, length) {
|
|
|
887
887
|
length = length === VOID ? content.length : length;
|
|
888
888
|
// Inline function 'kotlin.also' call
|
|
889
889
|
var this_0 = new Buffer();
|
|
890
|
-
this_0.
|
|
890
|
+
this_0.e3t(content, offset, offset + length | 0);
|
|
891
891
|
var source = this_0;
|
|
892
892
|
return ByteReadChannel_0(source);
|
|
893
893
|
}
|
|
@@ -895,18 +895,18 @@ function ByteReadChannel_0(source) {
|
|
|
895
895
|
return new SourceByteReadChannel(source);
|
|
896
896
|
}
|
|
897
897
|
function buildPartialMatchTable($this) {
|
|
898
|
-
var table = new Int32Array($this.
|
|
898
|
+
var table = new Int32Array($this.m3x_1.e1());
|
|
899
899
|
var j = 0;
|
|
900
900
|
var inductionVariable = 1;
|
|
901
|
-
var last = $this.
|
|
901
|
+
var last = $this.m3x_1.e1();
|
|
902
902
|
if (inductionVariable < last)
|
|
903
903
|
do {
|
|
904
904
|
var i = inductionVariable;
|
|
905
905
|
inductionVariable = inductionVariable + 1 | 0;
|
|
906
|
-
while (j > 0 && !($this.
|
|
906
|
+
while (j > 0 && !($this.m3x_1.f1(i) === $this.m3x_1.f1(j))) {
|
|
907
907
|
j = table[j - 1 | 0];
|
|
908
908
|
}
|
|
909
|
-
if ($this.
|
|
909
|
+
if ($this.m3x_1.f1(i) === $this.m3x_1.f1(j)) {
|
|
910
910
|
j = j + 1 | 0;
|
|
911
911
|
}
|
|
912
912
|
table[i] = j;
|
|
@@ -927,8 +927,8 @@ function checkFullMatch($this, $completion) {
|
|
|
927
927
|
return tmp.j9();
|
|
928
928
|
}
|
|
929
929
|
function checkBounds($this, extra) {
|
|
930
|
-
if (compare(add($this.
|
|
931
|
-
throw IOException_init_$Create$('Limit of ' + $this.
|
|
930
|
+
if (compare(add($this.s3x_1, extra), $this.o3x_1) > 0) {
|
|
931
|
+
throw IOException_init_$Create$('Limit of ' + $this.o3x_1.toString() + ' bytes exceeded ' + ('while searching for "' + toSingleLineString($this, $this.m3x_1) + '"'));
|
|
932
932
|
}
|
|
933
933
|
}
|
|
934
934
|
function toSingleLineString($this, $receiver) {
|
|
@@ -936,8 +936,8 @@ function toSingleLineString($this, $receiver) {
|
|
|
936
936
|
}
|
|
937
937
|
function $findNextCOROUTINE$(_this__u8e3s4, ignoreMissing, resultContinuation) {
|
|
938
938
|
CoroutineImpl.call(this, resultContinuation);
|
|
939
|
-
this.
|
|
940
|
-
this.
|
|
939
|
+
this.x3y_1 = _this__u8e3s4;
|
|
940
|
+
this.y3y_1 = ignoreMissing;
|
|
941
941
|
}
|
|
942
942
|
protoOf($findNextCOROUTINE$).j9 = function () {
|
|
943
943
|
var suspendResult = this.d9_1;
|
|
@@ -947,17 +947,17 @@ protoOf($findNextCOROUTINE$).j9 = function () {
|
|
|
947
947
|
switch (tmp) {
|
|
948
948
|
case 0:
|
|
949
949
|
this.c9_1 = 9;
|
|
950
|
-
this.
|
|
950
|
+
this.x3y_1.s3x_1 = new Long(0, 0);
|
|
951
951
|
this.b9_1 = 1;
|
|
952
952
|
continue $sm;
|
|
953
953
|
case 1:
|
|
954
|
-
if (!this.
|
|
955
|
-
this.
|
|
954
|
+
if (!this.x3y_1.p3x_1.v3r()) {
|
|
955
|
+
this.z3y_1 = true;
|
|
956
956
|
this.b9_1 = 3;
|
|
957
957
|
continue $sm;
|
|
958
958
|
} else {
|
|
959
959
|
this.b9_1 = 2;
|
|
960
|
-
suspendResult = this.
|
|
960
|
+
suspendResult = this.x3y_1.l3x_1.h3x(VOID, this);
|
|
961
961
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
962
962
|
return suspendResult;
|
|
963
963
|
}
|
|
@@ -965,17 +965,17 @@ protoOf($findNextCOROUTINE$).j9 = function () {
|
|
|
965
965
|
}
|
|
966
966
|
|
|
967
967
|
case 2:
|
|
968
|
-
this.
|
|
968
|
+
this.z3y_1 = suspendResult;
|
|
969
969
|
this.b9_1 = 3;
|
|
970
970
|
continue $sm;
|
|
971
971
|
case 3:
|
|
972
|
-
if (!this.
|
|
972
|
+
if (!this.z3y_1) {
|
|
973
973
|
this.b9_1 = 7;
|
|
974
974
|
continue $sm;
|
|
975
975
|
}
|
|
976
976
|
|
|
977
977
|
this.b9_1 = 4;
|
|
978
|
-
suspendResult = advanceToNextPotentialMatch(this.
|
|
978
|
+
suspendResult = advanceToNextPotentialMatch(this.x3y_1, this);
|
|
979
979
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
980
980
|
return suspendResult;
|
|
981
981
|
}
|
|
@@ -983,7 +983,7 @@ protoOf($findNextCOROUTINE$).j9 = function () {
|
|
|
983
983
|
continue $sm;
|
|
984
984
|
case 4:
|
|
985
985
|
this.b9_1 = 5;
|
|
986
|
-
suspendResult = checkFullMatch(this.
|
|
986
|
+
suspendResult = checkFullMatch(this.x3y_1, this);
|
|
987
987
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
988
988
|
return suspendResult;
|
|
989
989
|
}
|
|
@@ -991,7 +991,7 @@ protoOf($findNextCOROUTINE$).j9 = function () {
|
|
|
991
991
|
continue $sm;
|
|
992
992
|
case 5:
|
|
993
993
|
if (suspendResult) {
|
|
994
|
-
return this.
|
|
994
|
+
return this.x3y_1.s3x_1;
|
|
995
995
|
} else {
|
|
996
996
|
this.b9_1 = 6;
|
|
997
997
|
continue $sm;
|
|
@@ -1001,20 +1001,20 @@ protoOf($findNextCOROUTINE$).j9 = function () {
|
|
|
1001
1001
|
this.b9_1 = 1;
|
|
1002
1002
|
continue $sm;
|
|
1003
1003
|
case 7:
|
|
1004
|
-
if (!this.
|
|
1005
|
-
throw IOException_init_$Create$('Expected "' + toSingleLineString(this.
|
|
1004
|
+
if (!this.y3y_1) {
|
|
1005
|
+
throw IOException_init_$Create$('Expected "' + toSingleLineString(this.x3y_1, this.x3y_1.m3x_1) + '" but encountered end of input');
|
|
1006
1006
|
}
|
|
1007
1007
|
|
|
1008
|
-
this.
|
|
1008
|
+
this.x3y_1.s3x_1 = add(this.x3y_1.s3x_1, this.x3y_1.r3x_1.y3s(this.x3y_1.n3x_1.b3x()));
|
|
1009
1009
|
this.b9_1 = 8;
|
|
1010
|
-
suspendResult = this.
|
|
1010
|
+
suspendResult = this.x3y_1.n3x_1.y3w(this);
|
|
1011
1011
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1012
1012
|
return suspendResult;
|
|
1013
1013
|
}
|
|
1014
1014
|
|
|
1015
1015
|
continue $sm;
|
|
1016
1016
|
case 8:
|
|
1017
|
-
return this.
|
|
1017
|
+
return this.x3y_1.s3x_1;
|
|
1018
1018
|
case 9:
|
|
1019
1019
|
throw this.e9_1;
|
|
1020
1020
|
}
|
|
@@ -1031,7 +1031,7 @@ protoOf($findNextCOROUTINE$).j9 = function () {
|
|
|
1031
1031
|
};
|
|
1032
1032
|
function $advanceToNextPotentialMatchCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1033
1033
|
CoroutineImpl.call(this, resultContinuation);
|
|
1034
|
-
this.
|
|
1034
|
+
this.c3y_1 = _this__u8e3s4;
|
|
1035
1035
|
}
|
|
1036
1036
|
protoOf($advanceToNextPotentialMatchCOROUTINE$).j9 = function () {
|
|
1037
1037
|
var suspendResult = this.d9_1;
|
|
@@ -1044,13 +1044,13 @@ protoOf($advanceToNextPotentialMatchCOROUTINE$).j9 = function () {
|
|
|
1044
1044
|
this.b9_1 = 1;
|
|
1045
1045
|
continue $sm;
|
|
1046
1046
|
case 1:
|
|
1047
|
-
if (!this.
|
|
1048
|
-
this.
|
|
1047
|
+
if (!this.c3y_1.p3x_1.v3r()) {
|
|
1048
|
+
this.d3y_1 = true;
|
|
1049
1049
|
this.b9_1 = 3;
|
|
1050
1050
|
continue $sm;
|
|
1051
1051
|
} else {
|
|
1052
1052
|
this.b9_1 = 2;
|
|
1053
|
-
suspendResult = this.
|
|
1053
|
+
suspendResult = this.c3y_1.l3x_1.h3x(VOID, this);
|
|
1054
1054
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1055
1055
|
return suspendResult;
|
|
1056
1056
|
}
|
|
@@ -1058,34 +1058,34 @@ protoOf($advanceToNextPotentialMatchCOROUTINE$).j9 = function () {
|
|
|
1058
1058
|
}
|
|
1059
1059
|
|
|
1060
1060
|
case 2:
|
|
1061
|
-
this.
|
|
1061
|
+
this.d3y_1 = suspendResult;
|
|
1062
1062
|
this.b9_1 = 3;
|
|
1063
1063
|
continue $sm;
|
|
1064
1064
|
case 3:
|
|
1065
|
-
if (!this.
|
|
1065
|
+
if (!this.d3y_1) {
|
|
1066
1066
|
this.b9_1 = 7;
|
|
1067
1067
|
continue $sm;
|
|
1068
1068
|
}
|
|
1069
1069
|
|
|
1070
|
-
var nextMatch = indexOf(this.
|
|
1070
|
+
var nextMatch = indexOf(this.c3y_1.p3x_1, this.c3y_1.m3x_1.f1(0));
|
|
1071
1071
|
if (equalsLong(nextMatch, new Long(-1, -1))) {
|
|
1072
|
-
var tmp_0 = this.
|
|
1073
|
-
checkBounds(this.
|
|
1074
|
-
this.
|
|
1072
|
+
var tmp_0 = this.c3y_1.p3x_1;
|
|
1073
|
+
checkBounds(this.c3y_1, (tmp_0 instanceof Buffer ? tmp_0 : THROW_CCE()).e1());
|
|
1074
|
+
this.c3y_1.s3x_1 = add(this.c3y_1.s3x_1, this.c3y_1.p3x_1.y3s(this.c3y_1.n3x_1.b3x()));
|
|
1075
1075
|
this.b9_1 = 5;
|
|
1076
|
-
suspendResult = flushIfNeeded(this.
|
|
1076
|
+
suspendResult = flushIfNeeded(this.c3y_1.n3x_1, this);
|
|
1077
1077
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1078
1078
|
return suspendResult;
|
|
1079
1079
|
}
|
|
1080
1080
|
continue $sm;
|
|
1081
1081
|
} else {
|
|
1082
|
-
checkBounds(this.
|
|
1083
|
-
var tmp_1 = this.
|
|
1084
|
-
var tmp_2 = this.
|
|
1085
|
-
var tmp_3 = this.
|
|
1086
|
-
tmp_1.
|
|
1082
|
+
checkBounds(this.c3y_1, nextMatch);
|
|
1083
|
+
var tmp_1 = this.c3y_1;
|
|
1084
|
+
var tmp_2 = this.c3y_1.s3x_1;
|
|
1085
|
+
var tmp_3 = this.c3y_1.n3x_1.b3x();
|
|
1086
|
+
tmp_1.s3x_1 = add(tmp_2, this.c3y_1.p3x_1.v3s(tmp_3 instanceof Buffer ? tmp_3 : THROW_CCE(), nextMatch));
|
|
1087
1087
|
this.b9_1 = 4;
|
|
1088
|
-
suspendResult = flushIfNeeded(this.
|
|
1088
|
+
suspendResult = flushIfNeeded(this.c3y_1.n3x_1, this);
|
|
1089
1089
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1090
1090
|
return suspendResult;
|
|
1091
1091
|
}
|
|
@@ -1118,7 +1118,7 @@ protoOf($advanceToNextPotentialMatchCOROUTINE$).j9 = function () {
|
|
|
1118
1118
|
};
|
|
1119
1119
|
function $checkFullMatchCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1120
1120
|
CoroutineImpl.call(this, resultContinuation);
|
|
1121
|
-
this.
|
|
1121
|
+
this.m3y_1 = _this__u8e3s4;
|
|
1122
1122
|
}
|
|
1123
1123
|
protoOf($checkFullMatchCOROUTINE$).j9 = function () {
|
|
1124
1124
|
var suspendResult = this.d9_1;
|
|
@@ -1131,13 +1131,13 @@ protoOf($checkFullMatchCOROUTINE$).j9 = function () {
|
|
|
1131
1131
|
this.b9_1 = 1;
|
|
1132
1132
|
continue $sm;
|
|
1133
1133
|
case 1:
|
|
1134
|
-
if (!this.
|
|
1135
|
-
this.
|
|
1134
|
+
if (!this.m3y_1.p3x_1.v3r()) {
|
|
1135
|
+
this.o3y_1 = true;
|
|
1136
1136
|
this.b9_1 = 3;
|
|
1137
1137
|
continue $sm;
|
|
1138
1138
|
} else {
|
|
1139
1139
|
this.b9_1 = 2;
|
|
1140
|
-
suspendResult = this.
|
|
1140
|
+
suspendResult = this.m3y_1.l3x_1.h3x(VOID, this);
|
|
1141
1141
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1142
1142
|
return suspendResult;
|
|
1143
1143
|
}
|
|
@@ -1145,30 +1145,30 @@ protoOf($checkFullMatchCOROUTINE$).j9 = function () {
|
|
|
1145
1145
|
}
|
|
1146
1146
|
|
|
1147
1147
|
case 2:
|
|
1148
|
-
this.
|
|
1148
|
+
this.o3y_1 = suspendResult;
|
|
1149
1149
|
this.b9_1 = 3;
|
|
1150
1150
|
continue $sm;
|
|
1151
1151
|
case 3:
|
|
1152
|
-
if (!this.
|
|
1152
|
+
if (!this.o3y_1) {
|
|
1153
1153
|
this.b9_1 = 7;
|
|
1154
1154
|
continue $sm;
|
|
1155
1155
|
}
|
|
1156
1156
|
|
|
1157
|
-
this.
|
|
1158
|
-
if (this.
|
|
1159
|
-
var oldMatchIndex = this.
|
|
1160
|
-
while (this.
|
|
1161
|
-
this.
|
|
1157
|
+
this.n3y_1 = this.m3y_1.p3x_1.y3r();
|
|
1158
|
+
if (this.m3y_1.t3x_1 > 0 && !(this.n3y_1 === this.m3y_1.m3x_1.f1(this.m3y_1.t3x_1))) {
|
|
1159
|
+
var oldMatchIndex = this.m3y_1.t3x_1;
|
|
1160
|
+
while (this.m3y_1.t3x_1 > 0 && !(this.n3y_1 === this.m3y_1.m3x_1.f1(this.m3y_1.t3x_1))) {
|
|
1161
|
+
this.m3y_1.t3x_1 = this.m3y_1.q3x_1[this.m3y_1.t3x_1 - 1 | 0];
|
|
1162
1162
|
}
|
|
1163
|
-
var retained = fromInt(oldMatchIndex - this.
|
|
1164
|
-
checkBounds(this.
|
|
1165
|
-
var tmp_0 = this.
|
|
1166
|
-
var tmp_1 = this.
|
|
1167
|
-
var tmp_2 = this.
|
|
1168
|
-
tmp_0.
|
|
1169
|
-
if (this.
|
|
1163
|
+
var retained = fromInt(oldMatchIndex - this.m3y_1.t3x_1 | 0);
|
|
1164
|
+
checkBounds(this.m3y_1, retained);
|
|
1165
|
+
var tmp_0 = this.m3y_1;
|
|
1166
|
+
var tmp_1 = this.m3y_1.s3x_1;
|
|
1167
|
+
var tmp_2 = this.m3y_1.n3x_1.b3x();
|
|
1168
|
+
tmp_0.s3x_1 = add(tmp_1, this.m3y_1.r3x_1.v3s(tmp_2 instanceof Buffer ? tmp_2 : THROW_CCE(), retained));
|
|
1169
|
+
if (this.m3y_1.t3x_1 === 0 && !(this.n3y_1 === this.m3y_1.m3x_1.f1(this.m3y_1.t3x_1))) {
|
|
1170
1170
|
this.b9_1 = 6;
|
|
1171
|
-
suspendResult = writeByte(this.
|
|
1171
|
+
suspendResult = writeByte(this.m3y_1.n3x_1, this.n3y_1, this);
|
|
1172
1172
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1173
1173
|
return suspendResult;
|
|
1174
1174
|
}
|
|
@@ -1186,17 +1186,17 @@ protoOf($checkFullMatchCOROUTINE$).j9 = function () {
|
|
|
1186
1186
|
this.b9_1 = 5;
|
|
1187
1187
|
continue $sm;
|
|
1188
1188
|
case 5:
|
|
1189
|
-
this.
|
|
1190
|
-
if (this.
|
|
1189
|
+
this.m3y_1.t3x_1 = this.m3y_1.t3x_1 + 1 | 0;
|
|
1190
|
+
if (this.m3y_1.t3x_1 === this.m3y_1.m3x_1.e1()) {
|
|
1191
1191
|
return true;
|
|
1192
1192
|
}
|
|
1193
1193
|
|
|
1194
|
-
this.
|
|
1194
|
+
this.m3y_1.r3x_1.o3t(this.n3y_1);
|
|
1195
1195
|
this.b9_1 = 1;
|
|
1196
1196
|
continue $sm;
|
|
1197
1197
|
case 6:
|
|
1198
|
-
var _unary__edvuaz = this.
|
|
1199
|
-
this.
|
|
1198
|
+
var _unary__edvuaz = this.m3y_1.s3x_1;
|
|
1199
|
+
this.m3y_1.s3x_1 = add(_unary__edvuaz, get_ONE());
|
|
1200
1200
|
return false;
|
|
1201
1201
|
case 7:
|
|
1202
1202
|
return false;
|
|
@@ -1216,44 +1216,44 @@ protoOf($checkFullMatchCOROUTINE$).j9 = function () {
|
|
|
1216
1216
|
};
|
|
1217
1217
|
function ByteChannelScanner(channel, matchString, writeChannel, limit) {
|
|
1218
1218
|
limit = limit === VOID ? new Long(-1, 2147483647) : limit;
|
|
1219
|
-
this.
|
|
1220
|
-
this.
|
|
1221
|
-
this.
|
|
1222
|
-
this.
|
|
1219
|
+
this.l3x_1 = channel;
|
|
1220
|
+
this.m3x_1 = matchString;
|
|
1221
|
+
this.n3x_1 = writeChannel;
|
|
1222
|
+
this.o3x_1 = limit;
|
|
1223
1223
|
// Inline function 'kotlin.require' call
|
|
1224
|
-
if (!(this.
|
|
1224
|
+
if (!(this.m3x_1.e1() > 0)) {
|
|
1225
1225
|
var message = 'Empty match string not permitted for scanning';
|
|
1226
1226
|
throw IllegalArgumentException_init_$Create$(toString_1(message));
|
|
1227
1227
|
}
|
|
1228
|
-
this.
|
|
1229
|
-
this.
|
|
1230
|
-
this.
|
|
1231
|
-
this.
|
|
1232
|
-
this.
|
|
1228
|
+
this.p3x_1 = this.l3x_1.a3x();
|
|
1229
|
+
this.q3x_1 = buildPartialMatchTable(this);
|
|
1230
|
+
this.r3x_1 = new Buffer();
|
|
1231
|
+
this.s3x_1 = new Long(0, 0);
|
|
1232
|
+
this.t3x_1 = 0;
|
|
1233
1233
|
}
|
|
1234
|
-
protoOf(ByteChannelScanner).
|
|
1234
|
+
protoOf(ByteChannelScanner).a3z = function (ignoreMissing, $completion) {
|
|
1235
1235
|
var tmp = new $findNextCOROUTINE$(this, ignoreMissing, $completion);
|
|
1236
1236
|
tmp.d9_1 = Unit_instance;
|
|
1237
1237
|
tmp.e9_1 = null;
|
|
1238
1238
|
return tmp.j9();
|
|
1239
1239
|
};
|
|
1240
1240
|
function attachJob(_this__u8e3s4, job) {
|
|
1241
|
-
job.
|
|
1241
|
+
job.o1r(true, VOID, attachJob$lambda(_this__u8e3s4));
|
|
1242
1242
|
}
|
|
1243
1243
|
function attachWriterJob(_this__u8e3s4, writerJob) {
|
|
1244
|
-
var tmp = writerJob.
|
|
1244
|
+
var tmp = writerJob.b3z_1;
|
|
1245
1245
|
var tmp0_safe_receiver = tmp instanceof ByteChannel ? tmp : null;
|
|
1246
1246
|
if (tmp0_safe_receiver == null)
|
|
1247
1247
|
null;
|
|
1248
1248
|
else {
|
|
1249
|
-
tmp0_safe_receiver.
|
|
1249
|
+
tmp0_safe_receiver.k3x(attachWriterJob$lambda(_this__u8e3s4));
|
|
1250
1250
|
}
|
|
1251
1251
|
}
|
|
1252
1252
|
function attachJob$lambda($this_attachJob) {
|
|
1253
1253
|
return function (it) {
|
|
1254
1254
|
var tmp;
|
|
1255
1255
|
if (!(it == null)) {
|
|
1256
|
-
$this_attachJob.
|
|
1256
|
+
$this_attachJob.j3x(it);
|
|
1257
1257
|
tmp = Unit_instance;
|
|
1258
1258
|
}
|
|
1259
1259
|
return Unit_instance;
|
|
@@ -1263,34 +1263,34 @@ function attachWriterJob$lambda($this_attachWriterJob) {
|
|
|
1263
1263
|
return function (cause) {
|
|
1264
1264
|
var tmp;
|
|
1265
1265
|
if (!(cause == null)) {
|
|
1266
|
-
$this_attachWriterJob.
|
|
1266
|
+
$this_attachWriterJob.j3x(cause);
|
|
1267
1267
|
tmp = Unit_instance;
|
|
1268
1268
|
}
|
|
1269
1269
|
return Unit_instance;
|
|
1270
1270
|
};
|
|
1271
1271
|
}
|
|
1272
1272
|
function ByteReadChannel$Companion$Empty$1() {
|
|
1273
|
-
this.
|
|
1274
|
-
this.
|
|
1273
|
+
this.d3z_1 = null;
|
|
1274
|
+
this.e3z_1 = new Buffer();
|
|
1275
1275
|
}
|
|
1276
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1277
|
-
return this.
|
|
1276
|
+
protoOf(ByteReadChannel$Companion$Empty$1).o3v = function () {
|
|
1277
|
+
return this.d3z_1;
|
|
1278
1278
|
};
|
|
1279
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1279
|
+
protoOf(ByteReadChannel$Companion$Empty$1).d3x = function () {
|
|
1280
1280
|
return true;
|
|
1281
1281
|
};
|
|
1282
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1283
|
-
return this.
|
|
1282
|
+
protoOf(ByteReadChannel$Companion$Empty$1).a3x = function () {
|
|
1283
|
+
return this.e3z_1;
|
|
1284
1284
|
};
|
|
1285
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1285
|
+
protoOf(ByteReadChannel$Companion$Empty$1).g3x = function (min, $completion) {
|
|
1286
1286
|
return false;
|
|
1287
1287
|
};
|
|
1288
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1288
|
+
protoOf(ByteReadChannel$Companion$Empty$1).j3x = function (cause) {
|
|
1289
1289
|
};
|
|
1290
1290
|
function Companion_0() {
|
|
1291
1291
|
Companion_instance_1 = this;
|
|
1292
1292
|
var tmp = this;
|
|
1293
|
-
tmp.
|
|
1293
|
+
tmp.f3z_1 = new ByteReadChannel$Companion$Empty$1();
|
|
1294
1294
|
}
|
|
1295
1295
|
var Companion_instance_1;
|
|
1296
1296
|
function Companion_getInstance_0() {
|
|
@@ -1301,7 +1301,7 @@ function Companion_getInstance_0() {
|
|
|
1301
1301
|
function ByteReadChannel_1() {
|
|
1302
1302
|
}
|
|
1303
1303
|
function cancel_0(_this__u8e3s4) {
|
|
1304
|
-
_this__u8e3s4.
|
|
1304
|
+
_this__u8e3s4.j3x(IOException_init_$Create$('Channel was cancelled'));
|
|
1305
1305
|
}
|
|
1306
1306
|
function readBuffer(_this__u8e3s4, $completion) {
|
|
1307
1307
|
var tmp = new $readBufferCOROUTINE$(_this__u8e3s4, $completion);
|
|
@@ -1337,7 +1337,7 @@ function copyTo(_this__u8e3s4, channel, limit, $completion) {
|
|
|
1337
1337
|
return tmp.j9();
|
|
1338
1338
|
}
|
|
1339
1339
|
function rethrowCloseCauseIfNeeded_0(_this__u8e3s4) {
|
|
1340
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1340
|
+
var tmp0_safe_receiver = _this__u8e3s4.o3v();
|
|
1341
1341
|
if (tmp0_safe_receiver == null)
|
|
1342
1342
|
null;
|
|
1343
1343
|
else {
|
|
@@ -1360,7 +1360,7 @@ function readPacket(_this__u8e3s4, packet, $completion) {
|
|
|
1360
1360
|
function readUntil(_this__u8e3s4, matchString, writeChannel, limit, ignoreMissing, $completion) {
|
|
1361
1361
|
limit = limit === VOID ? new Long(-1, 2147483647) : limit;
|
|
1362
1362
|
ignoreMissing = ignoreMissing === VOID ? false : ignoreMissing;
|
|
1363
|
-
return (new ByteChannelScanner(_this__u8e3s4, matchString, writeChannel, limit)).
|
|
1363
|
+
return (new ByteChannelScanner(_this__u8e3s4, matchString, writeChannel, limit)).a3z(ignoreMissing, $completion);
|
|
1364
1364
|
}
|
|
1365
1365
|
function readLineStrictTo(_this__u8e3s4, out, limit, lineEnding, $completion) {
|
|
1366
1366
|
limit = limit === VOID ? new Long(-1, 2147483647) : limit;
|
|
@@ -1373,7 +1373,7 @@ function readLineStrictTo(_this__u8e3s4, out, limit, lineEnding, $completion) {
|
|
|
1373
1373
|
return internalReadLineTo(_this__u8e3s4, out, limit, lineEnding.equals(LineEnding_Lenient_getInstance()), true, $completion);
|
|
1374
1374
|
}
|
|
1375
1375
|
function get_availableForRead(_this__u8e3s4) {
|
|
1376
|
-
return convertToInt(_this__u8e3s4.
|
|
1376
|
+
return convertToInt(_this__u8e3s4.a3x().u3r().e1());
|
|
1377
1377
|
}
|
|
1378
1378
|
function peek(_this__u8e3s4, count, $completion) {
|
|
1379
1379
|
var tmp = new $peekCOROUTINE$(_this__u8e3s4, count, $completion);
|
|
@@ -1394,7 +1394,7 @@ function throwTooLongLineException(limit) {
|
|
|
1394
1394
|
throw new TooLongLineException('Line exceeds limit of ' + limit.toString() + ' bytes');
|
|
1395
1395
|
}
|
|
1396
1396
|
function rethrowCloseCauseIfNeeded_1(_this__u8e3s4) {
|
|
1397
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1397
|
+
var tmp0_safe_receiver = _this__u8e3s4.o3v();
|
|
1398
1398
|
if (tmp0_safe_receiver == null)
|
|
1399
1399
|
null;
|
|
1400
1400
|
else {
|
|
@@ -1407,7 +1407,7 @@ function internalReadLineTo$bufferBytes(outBuffer, readBuffer, consumed, count)
|
|
|
1407
1407
|
if (outBuffer._v == null) {
|
|
1408
1408
|
outBuffer._v = new Buffer();
|
|
1409
1409
|
}
|
|
1410
|
-
outBuffer._v.
|
|
1410
|
+
outBuffer._v.i3t(readBuffer, count);
|
|
1411
1411
|
consumed._v = add(consumed._v, count);
|
|
1412
1412
|
}
|
|
1413
1413
|
}
|
|
@@ -1448,7 +1448,7 @@ function internalReadLineTo$discardCrlfOrCr(_this__u8e3s4, $this_internalReadLin
|
|
|
1448
1448
|
}
|
|
1449
1449
|
function $readBufferCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1450
1450
|
CoroutineImpl.call(this, resultContinuation);
|
|
1451
|
-
this.
|
|
1451
|
+
this.o3z_1 = _this__u8e3s4;
|
|
1452
1452
|
}
|
|
1453
1453
|
protoOf($readBufferCOROUTINE$).j9 = function () {
|
|
1454
1454
|
var suspendResult = this.d9_1;
|
|
@@ -1458,18 +1458,18 @@ protoOf($readBufferCOROUTINE$).j9 = function () {
|
|
|
1458
1458
|
switch (tmp) {
|
|
1459
1459
|
case 0:
|
|
1460
1460
|
this.c9_1 = 5;
|
|
1461
|
-
this.
|
|
1461
|
+
this.p3z_1 = new Buffer();
|
|
1462
1462
|
this.b9_1 = 1;
|
|
1463
1463
|
continue $sm;
|
|
1464
1464
|
case 1:
|
|
1465
|
-
if (!!this.
|
|
1465
|
+
if (!!this.o3z_1.d3x()) {
|
|
1466
1466
|
this.b9_1 = 4;
|
|
1467
1467
|
continue $sm;
|
|
1468
1468
|
}
|
|
1469
1469
|
|
|
1470
|
-
if (this.
|
|
1470
|
+
if (this.o3z_1.a3x().v3r()) {
|
|
1471
1471
|
this.b9_1 = 2;
|
|
1472
|
-
suspendResult = this.
|
|
1472
|
+
suspendResult = this.o3z_1.h3x(VOID, this);
|
|
1473
1473
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1474
1474
|
return suspendResult;
|
|
1475
1475
|
}
|
|
@@ -1483,12 +1483,12 @@ protoOf($readBufferCOROUTINE$).j9 = function () {
|
|
|
1483
1483
|
this.b9_1 = 3;
|
|
1484
1484
|
continue $sm;
|
|
1485
1485
|
case 3:
|
|
1486
|
-
this.
|
|
1486
|
+
this.p3z_1.n3t(this.o3z_1.a3x());
|
|
1487
1487
|
this.b9_1 = 1;
|
|
1488
1488
|
continue $sm;
|
|
1489
1489
|
case 4:
|
|
1490
|
-
rethrowCloseCauseIfNeeded_0(this.
|
|
1491
|
-
return this.
|
|
1490
|
+
rethrowCloseCauseIfNeeded_0(this.o3z_1);
|
|
1491
|
+
return this.p3z_1;
|
|
1492
1492
|
case 5:
|
|
1493
1493
|
throw this.e9_1;
|
|
1494
1494
|
}
|
|
@@ -1505,8 +1505,8 @@ protoOf($readBufferCOROUTINE$).j9 = function () {
|
|
|
1505
1505
|
};
|
|
1506
1506
|
function $discardCOROUTINE$(_this__u8e3s4, max, resultContinuation) {
|
|
1507
1507
|
CoroutineImpl.call(this, resultContinuation);
|
|
1508
|
-
this.
|
|
1509
|
-
this.
|
|
1508
|
+
this.y3z_1 = _this__u8e3s4;
|
|
1509
|
+
this.z3z_1 = max;
|
|
1510
1510
|
}
|
|
1511
1511
|
protoOf($discardCOROUTINE$).j9 = function () {
|
|
1512
1512
|
var suspendResult = this.d9_1;
|
|
@@ -1516,18 +1516,18 @@ protoOf($discardCOROUTINE$).j9 = function () {
|
|
|
1516
1516
|
switch (tmp) {
|
|
1517
1517
|
case 0:
|
|
1518
1518
|
this.c9_1 = 5;
|
|
1519
|
-
this.
|
|
1519
|
+
this.a40_1 = this.z3z_1;
|
|
1520
1520
|
this.b9_1 = 1;
|
|
1521
1521
|
continue $sm;
|
|
1522
1522
|
case 1:
|
|
1523
|
-
if (!(compare(this.
|
|
1523
|
+
if (!(compare(this.a40_1, new Long(0, 0)) > 0 && !this.y3z_1.d3x())) {
|
|
1524
1524
|
this.b9_1 = 4;
|
|
1525
1525
|
continue $sm;
|
|
1526
1526
|
}
|
|
1527
1527
|
|
|
1528
|
-
if (get_availableForRead(this.
|
|
1528
|
+
if (get_availableForRead(this.y3z_1) === 0) {
|
|
1529
1529
|
this.b9_1 = 2;
|
|
1530
|
-
suspendResult = this.
|
|
1530
|
+
suspendResult = this.y3z_1.h3x(VOID, this);
|
|
1531
1531
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1532
1532
|
return suspendResult;
|
|
1533
1533
|
}
|
|
@@ -1541,15 +1541,15 @@ protoOf($discardCOROUTINE$).j9 = function () {
|
|
|
1541
1541
|
this.b9_1 = 3;
|
|
1542
1542
|
continue $sm;
|
|
1543
1543
|
case 3:
|
|
1544
|
-
var tmp0 = this.
|
|
1545
|
-
var b = get_remaining(this.
|
|
1544
|
+
var tmp0 = this.a40_1;
|
|
1545
|
+
var b = get_remaining(this.y3z_1.a3x());
|
|
1546
1546
|
var count = compare(tmp0, b) <= 0 ? tmp0 : b;
|
|
1547
|
-
discard_0(this.
|
|
1548
|
-
this.
|
|
1547
|
+
discard_0(this.y3z_1.a3x(), count);
|
|
1548
|
+
this.a40_1 = subtract(this.a40_1, count);
|
|
1549
1549
|
this.b9_1 = 1;
|
|
1550
1550
|
continue $sm;
|
|
1551
1551
|
case 4:
|
|
1552
|
-
return subtract(this.
|
|
1552
|
+
return subtract(this.z3z_1, this.a40_1);
|
|
1553
1553
|
case 5:
|
|
1554
1554
|
throw this.e9_1;
|
|
1555
1555
|
}
|
|
@@ -1566,10 +1566,10 @@ protoOf($discardCOROUTINE$).j9 = function () {
|
|
|
1566
1566
|
};
|
|
1567
1567
|
function $readAvailableCOROUTINE$(_this__u8e3s4, buffer, offset, length, resultContinuation) {
|
|
1568
1568
|
CoroutineImpl.call(this, resultContinuation);
|
|
1569
|
-
this.
|
|
1570
|
-
this.
|
|
1571
|
-
this.
|
|
1572
|
-
this.
|
|
1569
|
+
this.j40_1 = _this__u8e3s4;
|
|
1570
|
+
this.k40_1 = buffer;
|
|
1571
|
+
this.l40_1 = offset;
|
|
1572
|
+
this.m40_1 = length;
|
|
1573
1573
|
}
|
|
1574
1574
|
protoOf($readAvailableCOROUTINE$).j9 = function () {
|
|
1575
1575
|
var suspendResult = this.d9_1;
|
|
@@ -1579,11 +1579,11 @@ protoOf($readAvailableCOROUTINE$).j9 = function () {
|
|
|
1579
1579
|
switch (tmp) {
|
|
1580
1580
|
case 0:
|
|
1581
1581
|
this.c9_1 = 3;
|
|
1582
|
-
if (this.
|
|
1582
|
+
if (this.j40_1.d3x())
|
|
1583
1583
|
return -1;
|
|
1584
|
-
if (this.
|
|
1584
|
+
if (this.j40_1.a3x().v3r()) {
|
|
1585
1585
|
this.b9_1 = 1;
|
|
1586
|
-
suspendResult = this.
|
|
1586
|
+
suspendResult = this.j40_1.h3x(VOID, this);
|
|
1587
1587
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1588
1588
|
return suspendResult;
|
|
1589
1589
|
}
|
|
@@ -1597,9 +1597,9 @@ protoOf($readAvailableCOROUTINE$).j9 = function () {
|
|
|
1597
1597
|
this.b9_1 = 2;
|
|
1598
1598
|
continue $sm;
|
|
1599
1599
|
case 2:
|
|
1600
|
-
if (this.
|
|
1600
|
+
if (this.j40_1.d3x())
|
|
1601
1601
|
return -1;
|
|
1602
|
-
return readAvailable_0(this.
|
|
1602
|
+
return readAvailable_0(this.j40_1.a3x(), this.k40_1, this.l40_1, this.m40_1);
|
|
1603
1603
|
case 3:
|
|
1604
1604
|
throw this.e9_1;
|
|
1605
1605
|
}
|
|
@@ -1616,7 +1616,7 @@ protoOf($readAvailableCOROUTINE$).j9 = function () {
|
|
|
1616
1616
|
};
|
|
1617
1617
|
function $toByteArrayCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1618
1618
|
CoroutineImpl.call(this, resultContinuation);
|
|
1619
|
-
this.
|
|
1619
|
+
this.v40_1 = _this__u8e3s4;
|
|
1620
1620
|
}
|
|
1621
1621
|
protoOf($toByteArrayCOROUTINE$).j9 = function () {
|
|
1622
1622
|
var suspendResult = this.d9_1;
|
|
@@ -1627,7 +1627,7 @@ protoOf($toByteArrayCOROUTINE$).j9 = function () {
|
|
|
1627
1627
|
case 0:
|
|
1628
1628
|
this.c9_1 = 2;
|
|
1629
1629
|
this.b9_1 = 1;
|
|
1630
|
-
suspendResult = readBuffer(this.
|
|
1630
|
+
suspendResult = readBuffer(this.v40_1, this);
|
|
1631
1631
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1632
1632
|
return suspendResult;
|
|
1633
1633
|
}
|
|
@@ -1652,9 +1652,9 @@ protoOf($toByteArrayCOROUTINE$).j9 = function () {
|
|
|
1652
1652
|
};
|
|
1653
1653
|
function $copyToCOROUTINE$(_this__u8e3s4, channel, limit, resultContinuation) {
|
|
1654
1654
|
CoroutineImpl.call(this, resultContinuation);
|
|
1655
|
-
this.
|
|
1656
|
-
this.
|
|
1657
|
-
this.
|
|
1655
|
+
this.e41_1 = _this__u8e3s4;
|
|
1656
|
+
this.f41_1 = channel;
|
|
1657
|
+
this.g41_1 = limit;
|
|
1658
1658
|
}
|
|
1659
1659
|
protoOf($copyToCOROUTINE$).j9 = function () {
|
|
1660
1660
|
var suspendResult = this.d9_1;
|
|
@@ -1664,7 +1664,7 @@ protoOf($copyToCOROUTINE$).j9 = function () {
|
|
|
1664
1664
|
switch (tmp) {
|
|
1665
1665
|
case 0:
|
|
1666
1666
|
this.c9_1 = 12;
|
|
1667
|
-
this.
|
|
1667
|
+
this.h41_1 = this.g41_1;
|
|
1668
1668
|
this.b9_1 = 1;
|
|
1669
1669
|
continue $sm;
|
|
1670
1670
|
case 1:
|
|
@@ -1673,14 +1673,14 @@ protoOf($copyToCOROUTINE$).j9 = function () {
|
|
|
1673
1673
|
this.b9_1 = 2;
|
|
1674
1674
|
continue $sm;
|
|
1675
1675
|
case 2:
|
|
1676
|
-
if (!(!this.
|
|
1676
|
+
if (!(!this.e41_1.d3x() && compare(this.h41_1, new Long(0, 0)) > 0)) {
|
|
1677
1677
|
this.b9_1 = 6;
|
|
1678
1678
|
continue $sm;
|
|
1679
1679
|
}
|
|
1680
1680
|
|
|
1681
|
-
if (this.
|
|
1681
|
+
if (this.e41_1.a3x().v3r()) {
|
|
1682
1682
|
this.b9_1 = 3;
|
|
1683
|
-
suspendResult = this.
|
|
1683
|
+
suspendResult = this.e41_1.h3x(VOID, this);
|
|
1684
1684
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1685
1685
|
return suspendResult;
|
|
1686
1686
|
}
|
|
@@ -1694,13 +1694,13 @@ protoOf($copyToCOROUTINE$).j9 = function () {
|
|
|
1694
1694
|
this.b9_1 = 4;
|
|
1695
1695
|
continue $sm;
|
|
1696
1696
|
case 4:
|
|
1697
|
-
var tmp0 = this.
|
|
1698
|
-
var b = get_remaining(this.
|
|
1697
|
+
var tmp0 = this.h41_1;
|
|
1698
|
+
var b = get_remaining(this.e41_1.a3x());
|
|
1699
1699
|
var count = compare(tmp0, b) <= 0 ? tmp0 : b;
|
|
1700
|
-
this.
|
|
1701
|
-
this.
|
|
1700
|
+
this.e41_1.a3x().x3s(this.f41_1.b3x(), count);
|
|
1701
|
+
this.h41_1 = subtract(this.h41_1, count);
|
|
1702
1702
|
this.b9_1 = 5;
|
|
1703
|
-
suspendResult = this.
|
|
1703
|
+
suspendResult = this.f41_1.y3w(this);
|
|
1704
1704
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1705
1705
|
return suspendResult;
|
|
1706
1706
|
}
|
|
@@ -1718,8 +1718,8 @@ protoOf($copyToCOROUTINE$).j9 = function () {
|
|
|
1718
1718
|
var tmp_0 = this.e9_1;
|
|
1719
1719
|
if (tmp_0 instanceof Error) {
|
|
1720
1720
|
var cause = this.e9_1;
|
|
1721
|
-
this.
|
|
1722
|
-
close_0(this.
|
|
1721
|
+
this.e41_1.j3x(cause);
|
|
1722
|
+
close_0(this.f41_1, cause);
|
|
1723
1723
|
throw cause;
|
|
1724
1724
|
} else {
|
|
1725
1725
|
throw this.e9_1;
|
|
@@ -1727,27 +1727,27 @@ protoOf($copyToCOROUTINE$).j9 = function () {
|
|
|
1727
1727
|
|
|
1728
1728
|
case 8:
|
|
1729
1729
|
this.c9_1 = 12;
|
|
1730
|
-
this.
|
|
1730
|
+
this.i41_1 = this.e9_1;
|
|
1731
1731
|
this.b9_1 = 9;
|
|
1732
|
-
suspendResult = this.
|
|
1732
|
+
suspendResult = this.f41_1.y3w(this);
|
|
1733
1733
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1734
1734
|
return suspendResult;
|
|
1735
1735
|
}
|
|
1736
1736
|
|
|
1737
1737
|
continue $sm;
|
|
1738
1738
|
case 9:
|
|
1739
|
-
throw this.
|
|
1739
|
+
throw this.i41_1;
|
|
1740
1740
|
case 10:
|
|
1741
1741
|
this.c9_1 = 12;
|
|
1742
1742
|
this.b9_1 = 11;
|
|
1743
|
-
suspendResult = this.
|
|
1743
|
+
suspendResult = this.f41_1.y3w(this);
|
|
1744
1744
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1745
1745
|
return suspendResult;
|
|
1746
1746
|
}
|
|
1747
1747
|
|
|
1748
1748
|
continue $sm;
|
|
1749
1749
|
case 11:
|
|
1750
|
-
return subtract(this.
|
|
1750
|
+
return subtract(this.g41_1, this.h41_1);
|
|
1751
1751
|
case 12:
|
|
1752
1752
|
throw this.e9_1;
|
|
1753
1753
|
}
|
|
@@ -1764,8 +1764,8 @@ protoOf($copyToCOROUTINE$).j9 = function () {
|
|
|
1764
1764
|
};
|
|
1765
1765
|
function $skipIfFoundCOROUTINE$(_this__u8e3s4, byteString, resultContinuation) {
|
|
1766
1766
|
CoroutineImpl.call(this, resultContinuation);
|
|
1767
|
-
this.
|
|
1768
|
-
this.
|
|
1767
|
+
this.r41_1 = _this__u8e3s4;
|
|
1768
|
+
this.s41_1 = byteString;
|
|
1769
1769
|
}
|
|
1770
1770
|
protoOf($skipIfFoundCOROUTINE$).j9 = function () {
|
|
1771
1771
|
var suspendResult = this.d9_1;
|
|
@@ -1776,7 +1776,7 @@ protoOf($skipIfFoundCOROUTINE$).j9 = function () {
|
|
|
1776
1776
|
case 0:
|
|
1777
1777
|
this.c9_1 = 4;
|
|
1778
1778
|
this.b9_1 = 1;
|
|
1779
|
-
suspendResult = peek(this.
|
|
1779
|
+
suspendResult = peek(this.r41_1, this.s41_1.e1(), this);
|
|
1780
1780
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1781
1781
|
return suspendResult;
|
|
1782
1782
|
}
|
|
@@ -1784,9 +1784,9 @@ protoOf($skipIfFoundCOROUTINE$).j9 = function () {
|
|
|
1784
1784
|
continue $sm;
|
|
1785
1785
|
case 1:
|
|
1786
1786
|
var ARGUMENT = suspendResult;
|
|
1787
|
-
if (equals(ARGUMENT, this.
|
|
1787
|
+
if (equals(ARGUMENT, this.s41_1)) {
|
|
1788
1788
|
this.b9_1 = 3;
|
|
1789
|
-
suspendResult = discard(this.
|
|
1789
|
+
suspendResult = discard(this.r41_1, fromInt(this.s41_1.e1()), this);
|
|
1790
1790
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1791
1791
|
return suspendResult;
|
|
1792
1792
|
}
|
|
@@ -1816,8 +1816,8 @@ protoOf($skipIfFoundCOROUTINE$).j9 = function () {
|
|
|
1816
1816
|
};
|
|
1817
1817
|
function $readPacketCOROUTINE$(_this__u8e3s4, packet, resultContinuation) {
|
|
1818
1818
|
CoroutineImpl.call(this, resultContinuation);
|
|
1819
|
-
this.
|
|
1820
|
-
this.
|
|
1819
|
+
this.b42_1 = _this__u8e3s4;
|
|
1820
|
+
this.c42_1 = packet;
|
|
1821
1821
|
}
|
|
1822
1822
|
protoOf($readPacketCOROUTINE$).j9 = function () {
|
|
1823
1823
|
var suspendResult = this.d9_1;
|
|
@@ -1827,18 +1827,18 @@ protoOf($readPacketCOROUTINE$).j9 = function () {
|
|
|
1827
1827
|
switch (tmp) {
|
|
1828
1828
|
case 0:
|
|
1829
1829
|
this.c9_1 = 6;
|
|
1830
|
-
this.
|
|
1830
|
+
this.d42_1 = new Buffer();
|
|
1831
1831
|
this.b9_1 = 1;
|
|
1832
1832
|
continue $sm;
|
|
1833
1833
|
case 1:
|
|
1834
|
-
if (!(compare(this.
|
|
1834
|
+
if (!(compare(this.d42_1.e1(), fromInt(this.c42_1)) < 0)) {
|
|
1835
1835
|
this.b9_1 = 5;
|
|
1836
1836
|
continue $sm;
|
|
1837
1837
|
}
|
|
1838
1838
|
|
|
1839
|
-
if (this.
|
|
1839
|
+
if (this.b42_1.a3x().v3r()) {
|
|
1840
1840
|
this.b9_1 = 2;
|
|
1841
|
-
suspendResult = this.
|
|
1841
|
+
suspendResult = this.b42_1.h3x(VOID, this);
|
|
1842
1842
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1843
1843
|
return suspendResult;
|
|
1844
1844
|
}
|
|
@@ -1852,7 +1852,7 @@ protoOf($readPacketCOROUTINE$).j9 = function () {
|
|
|
1852
1852
|
this.b9_1 = 3;
|
|
1853
1853
|
continue $sm;
|
|
1854
1854
|
case 3:
|
|
1855
|
-
if (this.
|
|
1855
|
+
if (this.b42_1.d3x()) {
|
|
1856
1856
|
this.b9_1 = 5;
|
|
1857
1857
|
continue $sm;
|
|
1858
1858
|
} else {
|
|
@@ -1861,20 +1861,20 @@ protoOf($readPacketCOROUTINE$).j9 = function () {
|
|
|
1861
1861
|
}
|
|
1862
1862
|
|
|
1863
1863
|
case 4:
|
|
1864
|
-
if (compare(get_remaining(this.
|
|
1865
|
-
this.
|
|
1864
|
+
if (compare(get_remaining(this.b42_1.a3x()), subtract(numberToLong(this.c42_1), this.d42_1.e1())) > 0) {
|
|
1865
|
+
this.b42_1.a3x().x3s(this.d42_1, subtract(numberToLong(this.c42_1), this.d42_1.e1()));
|
|
1866
1866
|
} else {
|
|
1867
|
-
this.
|
|
1867
|
+
this.b42_1.a3x().y3s(this.d42_1);
|
|
1868
1868
|
}
|
|
1869
1869
|
|
|
1870
1870
|
this.b9_1 = 1;
|
|
1871
1871
|
continue $sm;
|
|
1872
1872
|
case 5:
|
|
1873
|
-
if (compare(this.
|
|
1874
|
-
throw EOFException_init_$Create$('Not enough data available, required ' + this.
|
|
1873
|
+
if (compare(this.d42_1.e1(), fromInt(this.c42_1)) < 0) {
|
|
1874
|
+
throw EOFException_init_$Create$('Not enough data available, required ' + this.c42_1 + ' bytes but only ' + this.d42_1.e1().toString() + ' available');
|
|
1875
1875
|
}
|
|
1876
1876
|
|
|
1877
|
-
return this.
|
|
1877
|
+
return this.d42_1;
|
|
1878
1878
|
case 6:
|
|
1879
1879
|
throw this.e9_1;
|
|
1880
1880
|
}
|
|
@@ -1891,8 +1891,8 @@ protoOf($readPacketCOROUTINE$).j9 = function () {
|
|
|
1891
1891
|
};
|
|
1892
1892
|
function $peekCOROUTINE$(_this__u8e3s4, count, resultContinuation) {
|
|
1893
1893
|
CoroutineImpl.call(this, resultContinuation);
|
|
1894
|
-
this.
|
|
1895
|
-
this.
|
|
1894
|
+
this.m42_1 = _this__u8e3s4;
|
|
1895
|
+
this.n42_1 = count;
|
|
1896
1896
|
}
|
|
1897
1897
|
protoOf($peekCOROUTINE$).j9 = function () {
|
|
1898
1898
|
var suspendResult = this.d9_1;
|
|
@@ -1902,10 +1902,10 @@ protoOf($peekCOROUTINE$).j9 = function () {
|
|
|
1902
1902
|
switch (tmp) {
|
|
1903
1903
|
case 0:
|
|
1904
1904
|
this.c9_1 = 3;
|
|
1905
|
-
if (this.
|
|
1905
|
+
if (this.m42_1.d3x())
|
|
1906
1906
|
return null;
|
|
1907
1907
|
this.b9_1 = 1;
|
|
1908
|
-
suspendResult = this.
|
|
1908
|
+
suspendResult = this.m42_1.g3x(this.n42_1, this);
|
|
1909
1909
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1910
1910
|
return suspendResult;
|
|
1911
1911
|
}
|
|
@@ -1920,7 +1920,7 @@ protoOf($peekCOROUTINE$).j9 = function () {
|
|
|
1920
1920
|
}
|
|
1921
1921
|
|
|
1922
1922
|
case 2:
|
|
1923
|
-
return readByteString(this.
|
|
1923
|
+
return readByteString(this.m42_1.a3x().z3s(), this.n42_1);
|
|
1924
1924
|
case 3:
|
|
1925
1925
|
throw this.e9_1;
|
|
1926
1926
|
}
|
|
@@ -1937,11 +1937,11 @@ protoOf($peekCOROUTINE$).j9 = function () {
|
|
|
1937
1937
|
};
|
|
1938
1938
|
function $internalReadLineToCOROUTINE$(_this__u8e3s4, out, limit, lenientLineEnding, throwOnIncompleteLine, resultContinuation) {
|
|
1939
1939
|
CoroutineImpl.call(this, resultContinuation);
|
|
1940
|
-
this.
|
|
1941
|
-
this.
|
|
1942
|
-
this.
|
|
1943
|
-
this.
|
|
1944
|
-
this.
|
|
1940
|
+
this.w42_1 = _this__u8e3s4;
|
|
1941
|
+
this.x42_1 = out;
|
|
1942
|
+
this.y42_1 = limit;
|
|
1943
|
+
this.z42_1 = lenientLineEnding;
|
|
1944
|
+
this.a43_1 = throwOnIncompleteLine;
|
|
1945
1945
|
}
|
|
1946
1946
|
protoOf($internalReadLineToCOROUTINE$).j9 = function () {
|
|
1947
1947
|
var suspendResult = this.d9_1;
|
|
@@ -1951,10 +1951,10 @@ protoOf($internalReadLineToCOROUTINE$).j9 = function () {
|
|
|
1951
1951
|
switch (tmp) {
|
|
1952
1952
|
case 0:
|
|
1953
1953
|
this.c9_1 = 27;
|
|
1954
|
-
this.
|
|
1955
|
-
if (this.
|
|
1954
|
+
this.e43_1 = this.w42_1.a3x();
|
|
1955
|
+
if (this.e43_1.v3r()) {
|
|
1956
1956
|
this.b9_1 = 1;
|
|
1957
|
-
suspendResult = this.
|
|
1957
|
+
suspendResult = this.w42_1.h3x(VOID, this);
|
|
1958
1958
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1959
1959
|
return suspendResult;
|
|
1960
1960
|
}
|
|
@@ -1968,10 +1968,10 @@ protoOf($internalReadLineToCOROUTINE$).j9 = function () {
|
|
|
1968
1968
|
this.b9_1 = 2;
|
|
1969
1969
|
continue $sm;
|
|
1970
1970
|
case 2:
|
|
1971
|
-
if (this.
|
|
1971
|
+
if (this.w42_1.d3x())
|
|
1972
1972
|
return new Long(-1, -1);
|
|
1973
|
-
this.
|
|
1974
|
-
this.
|
|
1973
|
+
this.d43_1 = {_v: new Long(0, 0)};
|
|
1974
|
+
this.b43_1 = {_v: null};
|
|
1975
1975
|
this.b9_1 = 3;
|
|
1976
1976
|
continue $sm;
|
|
1977
1977
|
case 3:
|
|
@@ -1982,18 +1982,18 @@ protoOf($internalReadLineToCOROUTINE$).j9 = function () {
|
|
|
1982
1982
|
this.b9_1 = 5;
|
|
1983
1983
|
continue $sm;
|
|
1984
1984
|
case 5:
|
|
1985
|
-
if (!(compare(this.
|
|
1985
|
+
if (!(compare(this.d43_1._v, this.y42_1) < 0 && !this.w42_1.d3x())) {
|
|
1986
1986
|
this.b9_1 = 15;
|
|
1987
1987
|
continue $sm;
|
|
1988
1988
|
}
|
|
1989
1989
|
|
|
1990
|
-
this.
|
|
1991
|
-
this.
|
|
1992
|
-
var crIndex = internalReadLineTo$scanForSoleCr(this.
|
|
1990
|
+
this.h43_1 = subtract(this.y42_1, this.d43_1._v);
|
|
1991
|
+
this.i43_1 = indexOf(this.e43_1, 10, VOID, this.h43_1);
|
|
1992
|
+
var crIndex = internalReadLineTo$scanForSoleCr(this.e43_1, this.z42_1, this.i43_1, this.h43_1);
|
|
1993
1993
|
if (compare(crIndex, new Long(0, 0)) >= 0) {
|
|
1994
|
-
internalReadLineTo$appendOrBuffer(this.
|
|
1995
|
-
discard_0(this.
|
|
1996
|
-
this.
|
|
1994
|
+
internalReadLineTo$appendOrBuffer(this.b43_1, this.x42_1, this.e43_1, this.d43_1, crIndex);
|
|
1995
|
+
discard_0(this.e43_1, new Long(1, 0));
|
|
1996
|
+
this.c43_1 = this.d43_1._v;
|
|
1997
1997
|
this.c9_1 = 27;
|
|
1998
1998
|
this.b9_1 = 25;
|
|
1999
1999
|
continue $sm;
|
|
@@ -2003,9 +2003,9 @@ protoOf($internalReadLineToCOROUTINE$).j9 = function () {
|
|
|
2003
2003
|
}
|
|
2004
2004
|
|
|
2005
2005
|
case 6:
|
|
2006
|
-
if (equalsLong(this.
|
|
2007
|
-
discard_0(this.
|
|
2008
|
-
this.
|
|
2006
|
+
if (equalsLong(this.i43_1, new Long(0, 0))) {
|
|
2007
|
+
discard_0(this.e43_1, new Long(1, 0));
|
|
2008
|
+
this.c43_1 = this.d43_1._v;
|
|
2009
2009
|
this.c9_1 = 27;
|
|
2010
2010
|
this.b9_1 = 25;
|
|
2011
2011
|
continue $sm;
|
|
@@ -2015,19 +2015,19 @@ protoOf($internalReadLineToCOROUTINE$).j9 = function () {
|
|
|
2015
2015
|
}
|
|
2016
2016
|
|
|
2017
2017
|
case 7:
|
|
2018
|
-
if (compare(this.
|
|
2018
|
+
if (compare(this.i43_1, new Long(0, 0)) > 0) {
|
|
2019
2019
|
var tmp_0;
|
|
2020
|
-
var tmp_1 = this.
|
|
2021
|
-
var this_0 = this.
|
|
2022
|
-
if (tmp_1.
|
|
2020
|
+
var tmp_1 = this.e43_1.u3r();
|
|
2021
|
+
var this_0 = this.i43_1;
|
|
2022
|
+
if (tmp_1.q3s(subtract(this_0, fromInt(1))) === 13) {
|
|
2023
2023
|
tmp_0 = new Long(1, 0);
|
|
2024
2024
|
} else {
|
|
2025
2025
|
tmp_0 = new Long(0, 0);
|
|
2026
2026
|
}
|
|
2027
2027
|
var isCrlf = tmp_0;
|
|
2028
|
-
internalReadLineTo$appendOrBuffer(this.
|
|
2029
|
-
discard_0(this.
|
|
2030
|
-
this.
|
|
2028
|
+
internalReadLineTo$appendOrBuffer(this.b43_1, this.x42_1, this.e43_1, this.d43_1, subtract(this.i43_1, isCrlf));
|
|
2029
|
+
discard_0(this.e43_1, add(numberToLong(1), isCrlf));
|
|
2030
|
+
this.c43_1 = this.d43_1._v;
|
|
2031
2031
|
this.c9_1 = 27;
|
|
2032
2032
|
this.b9_1 = 25;
|
|
2033
2033
|
continue $sm;
|
|
@@ -2037,32 +2037,32 @@ protoOf($internalReadLineToCOROUTINE$).j9 = function () {
|
|
|
2037
2037
|
}
|
|
2038
2038
|
|
|
2039
2039
|
case 8:
|
|
2040
|
-
var tmp0 = this.
|
|
2041
|
-
var b = get_remaining(this.
|
|
2040
|
+
var tmp0 = this.h43_1;
|
|
2041
|
+
var b = get_remaining(this.e43_1);
|
|
2042
2042
|
var count = compare(tmp0, b) <= 0 ? tmp0 : b;
|
|
2043
|
-
var tmp_2 = this.
|
|
2044
|
-
if (tmp_2.
|
|
2045
|
-
internalReadLineTo$appendOrBuffer(this.
|
|
2043
|
+
var tmp_2 = this.e43_1.u3r();
|
|
2044
|
+
if (tmp_2.q3s(subtract(count, fromInt(1))) === 13) {
|
|
2045
|
+
internalReadLineTo$appendOrBuffer(this.b43_1, this.x42_1, this.e43_1, this.d43_1, subtract(count, fromInt(1)));
|
|
2046
2046
|
this.b9_1 = 9;
|
|
2047
|
-
suspendResult = internalReadLineTo$discardCrlfOrCr(this.
|
|
2047
|
+
suspendResult = internalReadLineTo$discardCrlfOrCr(this.e43_1, this.w42_1, this.z42_1, this);
|
|
2048
2048
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2049
2049
|
return suspendResult;
|
|
2050
2050
|
}
|
|
2051
2051
|
continue $sm;
|
|
2052
2052
|
} else {
|
|
2053
|
-
internalReadLineTo$bufferBytes(this.
|
|
2053
|
+
internalReadLineTo$bufferBytes(this.b43_1, this.e43_1, this.d43_1, count);
|
|
2054
2054
|
this.b9_1 = 11;
|
|
2055
2055
|
continue $sm;
|
|
2056
2056
|
}
|
|
2057
2057
|
|
|
2058
2058
|
case 9:
|
|
2059
2059
|
if (suspendResult) {
|
|
2060
|
-
this.
|
|
2060
|
+
this.c43_1 = this.d43_1._v;
|
|
2061
2061
|
this.c9_1 = 27;
|
|
2062
2062
|
this.b9_1 = 25;
|
|
2063
2063
|
continue $sm;
|
|
2064
2064
|
} else {
|
|
2065
|
-
internalReadLineTo$bufferBytes(this.
|
|
2065
|
+
internalReadLineTo$bufferBytes(this.b43_1, this.e43_1, this.d43_1, new Long(1, 0));
|
|
2066
2066
|
this.b9_1 = 10;
|
|
2067
2067
|
continue $sm;
|
|
2068
2068
|
}
|
|
@@ -2071,25 +2071,25 @@ protoOf($internalReadLineToCOROUTINE$).j9 = function () {
|
|
|
2071
2071
|
this.b9_1 = 11;
|
|
2072
2072
|
continue $sm;
|
|
2073
2073
|
case 11:
|
|
2074
|
-
if (compare(this.
|
|
2074
|
+
if (compare(this.d43_1._v, this.y42_1) < 0 && equalsLong(get_remaining(this.e43_1), new Long(0, 0))) {
|
|
2075
2075
|
this.b9_1 = 12;
|
|
2076
|
-
suspendResult = this.
|
|
2076
|
+
suspendResult = this.w42_1.h3x(VOID, this);
|
|
2077
2077
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2078
2078
|
return suspendResult;
|
|
2079
2079
|
}
|
|
2080
2080
|
continue $sm;
|
|
2081
2081
|
} else {
|
|
2082
|
-
this.
|
|
2082
|
+
this.g43_1 = false;
|
|
2083
2083
|
this.b9_1 = 13;
|
|
2084
2084
|
continue $sm;
|
|
2085
2085
|
}
|
|
2086
2086
|
|
|
2087
2087
|
case 12:
|
|
2088
|
-
this.
|
|
2088
|
+
this.g43_1 = !suspendResult;
|
|
2089
2089
|
this.b9_1 = 13;
|
|
2090
2090
|
continue $sm;
|
|
2091
2091
|
case 13:
|
|
2092
|
-
if (this.
|
|
2092
|
+
if (this.g43_1) {
|
|
2093
2093
|
this.b9_1 = 15;
|
|
2094
2094
|
continue $sm;
|
|
2095
2095
|
} else {
|
|
@@ -2101,8 +2101,8 @@ protoOf($internalReadLineToCOROUTINE$).j9 = function () {
|
|
|
2101
2101
|
this.b9_1 = 5;
|
|
2102
2102
|
continue $sm;
|
|
2103
2103
|
case 15:
|
|
2104
|
-
if (equalsLong(this.
|
|
2105
|
-
this.
|
|
2104
|
+
if (equalsLong(this.d43_1._v, new Long(0, 0)) && this.w42_1.d3x()) {
|
|
2105
|
+
this.c43_1 = new Long(-1, -1);
|
|
2106
2106
|
this.c9_1 = 27;
|
|
2107
2107
|
this.b9_1 = 25;
|
|
2108
2108
|
continue $sm;
|
|
@@ -2112,23 +2112,23 @@ protoOf($internalReadLineToCOROUTINE$).j9 = function () {
|
|
|
2112
2112
|
}
|
|
2113
2113
|
|
|
2114
2114
|
case 16:
|
|
2115
|
-
if (!(compare(this.
|
|
2116
|
-
var message = 'Consumed bytes exceed the limit: ' + this.
|
|
2115
|
+
if (!(compare(this.d43_1._v, this.y42_1) <= 0)) {
|
|
2116
|
+
var message = 'Consumed bytes exceed the limit: ' + this.d43_1._v.toString() + ' > ' + this.y42_1.toString() + ". It's an implementation bug, please report it.";
|
|
2117
2117
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
2118
2118
|
}
|
|
2119
2119
|
|
|
2120
|
-
if (equalsLong(this.
|
|
2121
|
-
if (equalsLong(this.
|
|
2120
|
+
if (equalsLong(this.d43_1._v, this.y42_1)) {
|
|
2121
|
+
if (equalsLong(this.y42_1, new Long(-1, 2147483647)))
|
|
2122
2122
|
throw new TooLongLineException('Max line length exceeded');
|
|
2123
|
-
if (equalsLong(get_remaining(this.
|
|
2123
|
+
if (equalsLong(get_remaining(this.e43_1), new Long(0, 0))) {
|
|
2124
2124
|
this.b9_1 = 18;
|
|
2125
|
-
suspendResult = this.
|
|
2125
|
+
suspendResult = this.w42_1.h3x(VOID, this);
|
|
2126
2126
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2127
2127
|
return suspendResult;
|
|
2128
2128
|
}
|
|
2129
2129
|
continue $sm;
|
|
2130
2130
|
} else {
|
|
2131
|
-
this.
|
|
2131
|
+
this.f43_1 = false;
|
|
2132
2132
|
this.b9_1 = 19;
|
|
2133
2133
|
continue $sm;
|
|
2134
2134
|
}
|
|
@@ -2138,22 +2138,22 @@ protoOf($internalReadLineToCOROUTINE$).j9 = function () {
|
|
|
2138
2138
|
}
|
|
2139
2139
|
|
|
2140
2140
|
case 17:
|
|
2141
|
-
if (this.
|
|
2142
|
-
throwEndOfStreamException(this.
|
|
2141
|
+
if (this.a43_1) {
|
|
2142
|
+
throwEndOfStreamException(this.d43_1._v);
|
|
2143
2143
|
}
|
|
2144
2144
|
|
|
2145
|
-
this.
|
|
2145
|
+
this.c43_1 = this.d43_1._v;
|
|
2146
2146
|
this.c9_1 = 27;
|
|
2147
2147
|
this.b9_1 = 25;
|
|
2148
2148
|
var tmp_3 = this;
|
|
2149
2149
|
continue $sm;
|
|
2150
2150
|
case 18:
|
|
2151
|
-
this.
|
|
2151
|
+
this.f43_1 = !suspendResult;
|
|
2152
2152
|
this.b9_1 = 19;
|
|
2153
2153
|
continue $sm;
|
|
2154
2154
|
case 19:
|
|
2155
|
-
if (this.
|
|
2156
|
-
throwEndOfStreamException(this.
|
|
2155
|
+
if (this.f43_1) {
|
|
2156
|
+
throwEndOfStreamException(this.d43_1._v);
|
|
2157
2157
|
} else {
|
|
2158
2158
|
this.b9_1 = 20;
|
|
2159
2159
|
continue $sm;
|
|
@@ -2161,17 +2161,17 @@ protoOf($internalReadLineToCOROUTINE$).j9 = function () {
|
|
|
2161
2161
|
|
|
2162
2162
|
break;
|
|
2163
2163
|
case 20:
|
|
2164
|
-
var tmp0_subject = this.
|
|
2164
|
+
var tmp0_subject = this.e43_1.u3r().q3s(new Long(0, 0));
|
|
2165
2165
|
if (tmp0_subject === 10) {
|
|
2166
|
-
discard_0(this.
|
|
2167
|
-
this.
|
|
2166
|
+
discard_0(this.e43_1, new Long(1, 0));
|
|
2167
|
+
this.c43_1 = this.d43_1._v;
|
|
2168
2168
|
this.c9_1 = 27;
|
|
2169
2169
|
this.b9_1 = 25;
|
|
2170
2170
|
continue $sm;
|
|
2171
2171
|
} else {
|
|
2172
2172
|
if (tmp0_subject === 13) {
|
|
2173
2173
|
this.b9_1 = 21;
|
|
2174
|
-
suspendResult = internalReadLineTo$discardCrlfOrCr(this.
|
|
2174
|
+
suspendResult = internalReadLineTo$discardCrlfOrCr(this.e43_1, this.w42_1, this.z42_1, this);
|
|
2175
2175
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2176
2176
|
return suspendResult;
|
|
2177
2177
|
}
|
|
@@ -2184,7 +2184,7 @@ protoOf($internalReadLineToCOROUTINE$).j9 = function () {
|
|
|
2184
2184
|
|
|
2185
2185
|
case 21:
|
|
2186
2186
|
if (suspendResult) {
|
|
2187
|
-
this.
|
|
2187
|
+
this.c43_1 = this.d43_1._v;
|
|
2188
2188
|
this.c9_1 = 27;
|
|
2189
2189
|
this.b9_1 = 25;
|
|
2190
2190
|
continue $sm;
|
|
@@ -2197,28 +2197,28 @@ protoOf($internalReadLineToCOROUTINE$).j9 = function () {
|
|
|
2197
2197
|
this.b9_1 = 23;
|
|
2198
2198
|
continue $sm;
|
|
2199
2199
|
case 23:
|
|
2200
|
-
throwTooLongLineException(this.
|
|
2200
|
+
throwTooLongLineException(this.y42_1);
|
|
2201
2201
|
break;
|
|
2202
2202
|
case 24:
|
|
2203
2203
|
this.c9_1 = 27;
|
|
2204
2204
|
var t = this.e9_1;
|
|
2205
|
-
if (!(this.
|
|
2206
|
-
this.
|
|
2205
|
+
if (!(this.b43_1._v == null)) {
|
|
2206
|
+
this.x42_1.c1(readString_0(this.b43_1._v));
|
|
2207
2207
|
}
|
|
2208
2208
|
|
|
2209
2209
|
throw t;
|
|
2210
2210
|
case 25:
|
|
2211
|
-
var tmp_4 = this.
|
|
2211
|
+
var tmp_4 = this.c43_1;
|
|
2212
2212
|
this.c9_1 = 27;
|
|
2213
|
-
if (!(this.
|
|
2214
|
-
this.
|
|
2213
|
+
if (!(this.b43_1._v == null)) {
|
|
2214
|
+
this.x42_1.c1(readString_0(this.b43_1._v));
|
|
2215
2215
|
}
|
|
2216
2216
|
|
|
2217
2217
|
return tmp_4;
|
|
2218
2218
|
case 26:
|
|
2219
2219
|
this.c9_1 = 27;
|
|
2220
|
-
if (!(this.
|
|
2221
|
-
this.
|
|
2220
|
+
if (!(this.b43_1._v == null)) {
|
|
2221
|
+
this.x42_1.c1(readString_0(this.b43_1._v));
|
|
2222
2222
|
}
|
|
2223
2223
|
|
|
2224
2224
|
return Unit_instance;
|
|
@@ -2238,9 +2238,9 @@ protoOf($internalReadLineToCOROUTINE$).j9 = function () {
|
|
|
2238
2238
|
};
|
|
2239
2239
|
function $internalReadLineTo$discardCrlfOrCrCOROUTINE$(_this__u8e3s4, $this_internalReadLineTo, $lenientLineEnding, resultContinuation) {
|
|
2240
2240
|
CoroutineImpl.call(this, resultContinuation);
|
|
2241
|
-
this.
|
|
2242
|
-
this.
|
|
2243
|
-
this.
|
|
2241
|
+
this.r43_1 = _this__u8e3s4;
|
|
2242
|
+
this.s43_1 = $this_internalReadLineTo;
|
|
2243
|
+
this.t43_1 = $lenientLineEnding;
|
|
2244
2244
|
}
|
|
2245
2245
|
protoOf($internalReadLineTo$discardCrlfOrCrCOROUTINE$).j9 = function () {
|
|
2246
2246
|
var suspendResult = this.d9_1;
|
|
@@ -2250,13 +2250,13 @@ protoOf($internalReadLineTo$discardCrlfOrCrCOROUTINE$).j9 = function () {
|
|
|
2250
2250
|
switch (tmp) {
|
|
2251
2251
|
case 0:
|
|
2252
2252
|
this.c9_1 = 5;
|
|
2253
|
-
if (compare(get_remaining(this.
|
|
2254
|
-
this.
|
|
2253
|
+
if (compare(get_remaining(this.r43_1), new Long(2, 0)) >= 0) {
|
|
2254
|
+
this.v43_1 = true;
|
|
2255
2255
|
this.b9_1 = 2;
|
|
2256
2256
|
continue $sm;
|
|
2257
2257
|
} else {
|
|
2258
2258
|
this.b9_1 = 1;
|
|
2259
|
-
suspendResult = this.
|
|
2259
|
+
suspendResult = this.s43_1.g3x(2, this);
|
|
2260
2260
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2261
2261
|
return suspendResult;
|
|
2262
2262
|
}
|
|
@@ -2264,23 +2264,23 @@ protoOf($internalReadLineTo$discardCrlfOrCrCOROUTINE$).j9 = function () {
|
|
|
2264
2264
|
}
|
|
2265
2265
|
|
|
2266
2266
|
case 1:
|
|
2267
|
-
this.
|
|
2267
|
+
this.v43_1 = suspendResult;
|
|
2268
2268
|
this.b9_1 = 2;
|
|
2269
2269
|
continue $sm;
|
|
2270
2270
|
case 2:
|
|
2271
|
-
if (this.
|
|
2272
|
-
this.
|
|
2271
|
+
if (this.v43_1) {
|
|
2272
|
+
this.u43_1 = this.r43_1.u3r().q3s(new Long(1, 0)) === 10;
|
|
2273
2273
|
this.b9_1 = 3;
|
|
2274
2274
|
continue $sm;
|
|
2275
2275
|
} else {
|
|
2276
|
-
this.
|
|
2276
|
+
this.u43_1 = false;
|
|
2277
2277
|
this.b9_1 = 3;
|
|
2278
2278
|
continue $sm;
|
|
2279
2279
|
}
|
|
2280
2280
|
|
|
2281
2281
|
case 3:
|
|
2282
|
-
if (this.
|
|
2283
|
-
discard_0(this.
|
|
2282
|
+
if (this.u43_1) {
|
|
2283
|
+
discard_0(this.r43_1, new Long(2, 0));
|
|
2284
2284
|
return true;
|
|
2285
2285
|
} else {
|
|
2286
2286
|
this.b9_1 = 4;
|
|
@@ -2288,8 +2288,8 @@ protoOf($internalReadLineTo$discardCrlfOrCrCOROUTINE$).j9 = function () {
|
|
|
2288
2288
|
}
|
|
2289
2289
|
|
|
2290
2290
|
case 4:
|
|
2291
|
-
if (this.
|
|
2292
|
-
discard_0(this.
|
|
2291
|
+
if (this.t43_1) {
|
|
2292
|
+
discard_0(this.r43_1, new Long(1, 0));
|
|
2293
2293
|
return true;
|
|
2294
2294
|
}
|
|
2295
2295
|
|
|
@@ -2318,7 +2318,7 @@ function flushIfNeeded(_this__u8e3s4, $completion) {
|
|
|
2318
2318
|
}
|
|
2319
2319
|
function $flushIfNeededCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
2320
2320
|
CoroutineImpl.call(this, resultContinuation);
|
|
2321
|
-
this.
|
|
2321
|
+
this.e44_1 = _this__u8e3s4;
|
|
2322
2322
|
}
|
|
2323
2323
|
protoOf($flushIfNeededCOROUTINE$).j9 = function () {
|
|
2324
2324
|
var suspendResult = this.d9_1;
|
|
@@ -2328,10 +2328,10 @@ protoOf($flushIfNeededCOROUTINE$).j9 = function () {
|
|
|
2328
2328
|
switch (tmp) {
|
|
2329
2329
|
case 0:
|
|
2330
2330
|
this.c9_1 = 3;
|
|
2331
|
-
rethrowCloseCauseIfNeeded_1(this.
|
|
2332
|
-
if (this.
|
|
2331
|
+
rethrowCloseCauseIfNeeded_1(this.e44_1);
|
|
2332
|
+
if (this.e44_1.z3w() || get_size(this.e44_1.b3x()) >= 1048576) {
|
|
2333
2333
|
this.b9_1 = 1;
|
|
2334
|
-
suspendResult = this.
|
|
2334
|
+
suspendResult = this.e44_1.y3w(this);
|
|
2335
2335
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2336
2336
|
return suspendResult;
|
|
2337
2337
|
}
|
|
@@ -2363,7 +2363,7 @@ protoOf($flushIfNeededCOROUTINE$).j9 = function () {
|
|
|
2363
2363
|
function ByteWriteChannel$flushAndClose$ref(p0) {
|
|
2364
2364
|
var i = new ByteWriteChannel$flushAndClose$ref_0(p0);
|
|
2365
2365
|
return constructCallableReference(function ($completion) {
|
|
2366
|
-
return i.
|
|
2366
|
+
return i.j44($completion);
|
|
2367
2367
|
}, 0, 1, 17, 'flushAndClose', [p0]);
|
|
2368
2368
|
}
|
|
2369
2369
|
function get_NO_CALLBACK() {
|
|
@@ -2372,11 +2372,11 @@ function get_NO_CALLBACK() {
|
|
|
2372
2372
|
}
|
|
2373
2373
|
var NO_CALLBACK;
|
|
2374
2374
|
function WriterJob(channel, job) {
|
|
2375
|
-
this.
|
|
2376
|
-
this.
|
|
2375
|
+
this.b3z_1 = channel;
|
|
2376
|
+
this.c3z_1 = job;
|
|
2377
2377
|
}
|
|
2378
|
-
protoOf(WriterJob).
|
|
2379
|
-
return this.
|
|
2378
|
+
protoOf(WriterJob).v1t = function () {
|
|
2379
|
+
return this.c3z_1;
|
|
2380
2380
|
};
|
|
2381
2381
|
function writer(_this__u8e3s4, coroutineContext, autoFlush, block) {
|
|
2382
2382
|
coroutineContext = coroutineContext === VOID ? EmptyCoroutineContext_getInstance() : coroutineContext;
|
|
@@ -2385,16 +2385,16 @@ function writer(_this__u8e3s4, coroutineContext, autoFlush, block) {
|
|
|
2385
2385
|
return writer_0(_this__u8e3s4, coroutineContext, new ByteChannel(autoFlush), block);
|
|
2386
2386
|
}
|
|
2387
2387
|
function WriterScope(channel, coroutineContext) {
|
|
2388
|
-
this.
|
|
2389
|
-
this.
|
|
2388
|
+
this.k44_1 = channel;
|
|
2389
|
+
this.l44_1 = coroutineContext;
|
|
2390
2390
|
}
|
|
2391
|
-
protoOf(WriterScope).
|
|
2392
|
-
return this.
|
|
2391
|
+
protoOf(WriterScope).j1q = function () {
|
|
2392
|
+
return this.l44_1;
|
|
2393
2393
|
};
|
|
2394
2394
|
function writeFully(_this__u8e3s4, value, startIndex, endIndex, $completion) {
|
|
2395
2395
|
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
2396
2396
|
endIndex = endIndex === VOID ? value.length : endIndex;
|
|
2397
|
-
_this__u8e3s4.
|
|
2397
|
+
_this__u8e3s4.b3x().e3t(value, startIndex, endIndex);
|
|
2398
2398
|
return flushIfNeeded(_this__u8e3s4, $completion);
|
|
2399
2399
|
}
|
|
2400
2400
|
function close_0(_this__u8e3s4, cause) {
|
|
@@ -2402,7 +2402,7 @@ function close_0(_this__u8e3s4, cause) {
|
|
|
2402
2402
|
if (cause == null) {
|
|
2403
2403
|
fireAndForget(ByteWriteChannel$flushAndClose$ref(_this__u8e3s4));
|
|
2404
2404
|
} else {
|
|
2405
|
-
_this__u8e3s4.
|
|
2405
|
+
_this__u8e3s4.j3x(cause);
|
|
2406
2406
|
}
|
|
2407
2407
|
}
|
|
2408
2408
|
function writer_0(_this__u8e3s4, coroutineContext, channel, block) {
|
|
@@ -2410,27 +2410,27 @@ function writer_0(_this__u8e3s4, coroutineContext, channel, block) {
|
|
|
2410
2410
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
2411
2411
|
// Inline function 'kotlin.apply' call
|
|
2412
2412
|
var this_0 = launch(_this__u8e3s4, coroutineContext, VOID, writer$slambda_0(block, channel, null));
|
|
2413
|
-
this_0.
|
|
2413
|
+
this_0.m1r(writer$lambda(channel));
|
|
2414
2414
|
var job = this_0;
|
|
2415
2415
|
return new WriterJob(channel, job);
|
|
2416
2416
|
}
|
|
2417
2417
|
function invokeOnCompletion(_this__u8e3s4, block) {
|
|
2418
2418
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
2419
|
-
return _this__u8e3s4.
|
|
2419
|
+
return _this__u8e3s4.v1t().m1r(block);
|
|
2420
2420
|
}
|
|
2421
2421
|
function fireAndForget(_this__u8e3s4) {
|
|
2422
2422
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
2423
2423
|
startCoroutineCancellable(_this__u8e3s4, get_NO_CALLBACK());
|
|
2424
2424
|
}
|
|
2425
2425
|
function writeByte(_this__u8e3s4, value, $completion) {
|
|
2426
|
-
_this__u8e3s4.
|
|
2426
|
+
_this__u8e3s4.b3x().o3t(value);
|
|
2427
2427
|
return flushIfNeeded(_this__u8e3s4, $completion);
|
|
2428
2428
|
}
|
|
2429
2429
|
function NO_CALLBACK$1() {
|
|
2430
|
-
this.
|
|
2430
|
+
this.m44_1 = EmptyCoroutineContext_getInstance();
|
|
2431
2431
|
}
|
|
2432
2432
|
protoOf(NO_CALLBACK$1).h9 = function () {
|
|
2433
|
-
return this.
|
|
2433
|
+
return this.m44_1;
|
|
2434
2434
|
};
|
|
2435
2435
|
protoOf(NO_CALLBACK$1).i9 = function (result) {
|
|
2436
2436
|
return Unit_instance;
|
|
@@ -2440,27 +2440,27 @@ protoOf(NO_CALLBACK$1).m9 = function (result) {
|
|
|
2440
2440
|
};
|
|
2441
2441
|
function ByteWriteChannel$flushAndClose$ref_0(p0) {
|
|
2442
2442
|
KFunctionImpl.call(this, 1, 1, 17);
|
|
2443
|
-
this.
|
|
2443
|
+
this.i44_1 = p0;
|
|
2444
2444
|
}
|
|
2445
|
-
protoOf(ByteWriteChannel$flushAndClose$ref_0).
|
|
2446
|
-
return this.
|
|
2445
|
+
protoOf(ByteWriteChannel$flushAndClose$ref_0).j44 = function ($completion) {
|
|
2446
|
+
return this.i44_1.i3x($completion);
|
|
2447
2447
|
};
|
|
2448
2448
|
protoOf(ByteWriteChannel$flushAndClose$ref_0).v9 = function ($completion) {
|
|
2449
|
-
return this.
|
|
2449
|
+
return this.j44($completion);
|
|
2450
2450
|
};
|
|
2451
2451
|
function writer$slambda($block, $channel, resultContinuation) {
|
|
2452
|
-
this.
|
|
2453
|
-
this.
|
|
2452
|
+
this.v44_1 = $block;
|
|
2453
|
+
this.w44_1 = $channel;
|
|
2454
2454
|
CoroutineImpl.call(this, resultContinuation);
|
|
2455
2455
|
}
|
|
2456
|
-
protoOf(writer$slambda).
|
|
2457
|
-
var tmp = this.
|
|
2456
|
+
protoOf(writer$slambda).e45 = function ($this$launch, $completion) {
|
|
2457
|
+
var tmp = this.f45($this$launch, $completion);
|
|
2458
2458
|
tmp.d9_1 = Unit_instance;
|
|
2459
2459
|
tmp.e9_1 = null;
|
|
2460
2460
|
return tmp.j9();
|
|
2461
2461
|
};
|
|
2462
2462
|
protoOf(writer$slambda).w9 = function (p1, $completion) {
|
|
2463
|
-
return this.
|
|
2463
|
+
return this.e45((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2464
2464
|
};
|
|
2465
2465
|
protoOf(writer$slambda).j9 = function () {
|
|
2466
2466
|
var suspendResult = this.d9_1;
|
|
@@ -2470,24 +2470,24 @@ protoOf(writer$slambda).j9 = function () {
|
|
|
2470
2470
|
switch (tmp) {
|
|
2471
2471
|
case 0:
|
|
2472
2472
|
this.c9_1 = 14;
|
|
2473
|
-
this.
|
|
2473
|
+
this.a45_1 = Job(get_job(this.x44_1.j1q()));
|
|
2474
2474
|
this.b9_1 = 1;
|
|
2475
2475
|
continue $sm;
|
|
2476
2476
|
case 1:
|
|
2477
2477
|
this.c9_1 = 4;
|
|
2478
2478
|
this.c9_1 = 3;
|
|
2479
2479
|
this.b9_1 = 2;
|
|
2480
|
-
suspendResult = this.
|
|
2480
|
+
suspendResult = this.v44_1(new WriterScope(this.w44_1, this.x44_1.j1q().hk(this.a45_1)), this);
|
|
2481
2481
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2482
2482
|
return suspendResult;
|
|
2483
2483
|
}
|
|
2484
2484
|
|
|
2485
2485
|
continue $sm;
|
|
2486
2486
|
case 2:
|
|
2487
|
-
this.
|
|
2487
|
+
this.a45_1.s1y();
|
|
2488
2488
|
var tmp_0;
|
|
2489
|
-
if (get_job(this.
|
|
2490
|
-
this.
|
|
2489
|
+
if (get_job(this.x44_1.j1q()).g1r()) {
|
|
2490
|
+
this.w44_1.j3x(get_job(this.x44_1.j1q()).j1r());
|
|
2491
2491
|
tmp_0 = Unit_instance;
|
|
2492
2492
|
}
|
|
2493
2493
|
|
|
@@ -2499,8 +2499,8 @@ protoOf(writer$slambda).j9 = function () {
|
|
|
2499
2499
|
var tmp_1 = this.e9_1;
|
|
2500
2500
|
if (tmp_1 instanceof Error) {
|
|
2501
2501
|
var cause = this.e9_1;
|
|
2502
|
-
cancel(this.
|
|
2503
|
-
this.
|
|
2502
|
+
cancel(this.a45_1, 'Exception thrown while writing to channel', cause);
|
|
2503
|
+
this.w44_1.j3x(cause);
|
|
2504
2504
|
this.c9_1 = 14;
|
|
2505
2505
|
this.b9_1 = 9;
|
|
2506
2506
|
continue $sm;
|
|
@@ -2510,20 +2510,20 @@ protoOf(writer$slambda).j9 = function () {
|
|
|
2510
2510
|
|
|
2511
2511
|
case 4:
|
|
2512
2512
|
this.c9_1 = 14;
|
|
2513
|
-
this.
|
|
2513
|
+
this.b45_1 = this.e9_1;
|
|
2514
2514
|
this.b9_1 = 5;
|
|
2515
|
-
suspendResult = this.
|
|
2515
|
+
suspendResult = this.a45_1.q1r(this);
|
|
2516
2516
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2517
2517
|
return suspendResult;
|
|
2518
2518
|
}
|
|
2519
2519
|
|
|
2520
2520
|
continue $sm;
|
|
2521
2521
|
case 5:
|
|
2522
|
-
this.
|
|
2522
|
+
this.x44_1;
|
|
2523
2523
|
this.c9_1 = 7;
|
|
2524
|
-
this.
|
|
2524
|
+
this.d45_1 = Companion_instance;
|
|
2525
2525
|
this.b9_1 = 6;
|
|
2526
|
-
suspendResult = this.
|
|
2526
|
+
suspendResult = this.w44_1.i3x(this);
|
|
2527
2527
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2528
2528
|
return suspendResult;
|
|
2529
2529
|
}
|
|
@@ -2531,8 +2531,8 @@ protoOf(writer$slambda).j9 = function () {
|
|
|
2531
2531
|
continue $sm;
|
|
2532
2532
|
case 6:
|
|
2533
2533
|
var tmp_2 = this;
|
|
2534
|
-
this.
|
|
2535
|
-
tmp_2.
|
|
2534
|
+
this.d45_1;
|
|
2535
|
+
tmp_2.c45_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
2536
2536
|
this.c9_1 = 14;
|
|
2537
2537
|
this.b9_1 = 8;
|
|
2538
2538
|
continue $sm;
|
|
@@ -2542,7 +2542,7 @@ protoOf(writer$slambda).j9 = function () {
|
|
|
2542
2542
|
if (tmp_3 instanceof Error) {
|
|
2543
2543
|
var e = this.e9_1;
|
|
2544
2544
|
var tmp_4 = this;
|
|
2545
|
-
tmp_4.
|
|
2545
|
+
tmp_4.c45_1 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
2546
2546
|
this.b9_1 = 8;
|
|
2547
2547
|
continue $sm;
|
|
2548
2548
|
} else {
|
|
@@ -2551,22 +2551,22 @@ protoOf(writer$slambda).j9 = function () {
|
|
|
2551
2551
|
|
|
2552
2552
|
case 8:
|
|
2553
2553
|
this.c9_1 = 14;
|
|
2554
|
-
throw this.
|
|
2554
|
+
throw this.b45_1;
|
|
2555
2555
|
case 9:
|
|
2556
2556
|
this.c9_1 = 14;
|
|
2557
2557
|
this.b9_1 = 10;
|
|
2558
|
-
suspendResult = this.
|
|
2558
|
+
suspendResult = this.a45_1.q1r(this);
|
|
2559
2559
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2560
2560
|
return suspendResult;
|
|
2561
2561
|
}
|
|
2562
2562
|
|
|
2563
2563
|
continue $sm;
|
|
2564
2564
|
case 10:
|
|
2565
|
-
this.
|
|
2565
|
+
this.x44_1;
|
|
2566
2566
|
this.c9_1 = 12;
|
|
2567
|
-
this.
|
|
2567
|
+
this.z44_1 = Companion_instance;
|
|
2568
2568
|
this.b9_1 = 11;
|
|
2569
|
-
suspendResult = this.
|
|
2569
|
+
suspendResult = this.w44_1.i3x(this);
|
|
2570
2570
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2571
2571
|
return suspendResult;
|
|
2572
2572
|
}
|
|
@@ -2574,8 +2574,8 @@ protoOf(writer$slambda).j9 = function () {
|
|
|
2574
2574
|
continue $sm;
|
|
2575
2575
|
case 11:
|
|
2576
2576
|
var tmp_5 = this;
|
|
2577
|
-
this.
|
|
2578
|
-
tmp_5.
|
|
2577
|
+
this.z44_1;
|
|
2578
|
+
tmp_5.y44_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
2579
2579
|
this.c9_1 = 14;
|
|
2580
2580
|
this.b9_1 = 13;
|
|
2581
2581
|
continue $sm;
|
|
@@ -2585,7 +2585,7 @@ protoOf(writer$slambda).j9 = function () {
|
|
|
2585
2585
|
if (tmp_6 instanceof Error) {
|
|
2586
2586
|
var e_0 = this.e9_1;
|
|
2587
2587
|
var tmp_7 = this;
|
|
2588
|
-
tmp_7.
|
|
2588
|
+
tmp_7.y44_1 = _Result___init__impl__xyqfz8(createFailure(e_0));
|
|
2589
2589
|
this.b9_1 = 13;
|
|
2590
2590
|
continue $sm;
|
|
2591
2591
|
} else {
|
|
@@ -2609,22 +2609,22 @@ protoOf(writer$slambda).j9 = function () {
|
|
|
2609
2609
|
}
|
|
2610
2610
|
while (true);
|
|
2611
2611
|
};
|
|
2612
|
-
protoOf(writer$slambda).
|
|
2613
|
-
var i = new writer$slambda(this.
|
|
2614
|
-
i.
|
|
2612
|
+
protoOf(writer$slambda).f45 = function ($this$launch, completion) {
|
|
2613
|
+
var i = new writer$slambda(this.v44_1, this.w44_1, completion);
|
|
2614
|
+
i.x44_1 = $this$launch;
|
|
2615
2615
|
return i;
|
|
2616
2616
|
};
|
|
2617
2617
|
function writer$slambda_0($block, $channel, resultContinuation) {
|
|
2618
2618
|
var i = new writer$slambda($block, $channel, resultContinuation);
|
|
2619
2619
|
return constructCallableReference(function ($this$launch, $completion) {
|
|
2620
|
-
return i.
|
|
2620
|
+
return i.e45($this$launch, $completion);
|
|
2621
2621
|
}, 1);
|
|
2622
2622
|
}
|
|
2623
2623
|
function writer$lambda($channel) {
|
|
2624
2624
|
return function (it) {
|
|
2625
2625
|
var tmp;
|
|
2626
|
-
if (!(it == null) && !$channel.
|
|
2627
|
-
$channel.
|
|
2626
|
+
if (!(it == null) && !$channel.c3x()) {
|
|
2627
|
+
$channel.j3x(it);
|
|
2628
2628
|
tmp = Unit_instance;
|
|
2629
2629
|
}
|
|
2630
2630
|
return Unit_instance;
|
|
@@ -2649,13 +2649,13 @@ function Companion_getInstance_1() {
|
|
|
2649
2649
|
return Companion_instance_2;
|
|
2650
2650
|
}
|
|
2651
2651
|
function access$_get_origin__hdh1qz($this) {
|
|
2652
|
-
return $this.
|
|
2652
|
+
return $this.e3x_1;
|
|
2653
2653
|
}
|
|
2654
2654
|
function CloseToken(origin) {
|
|
2655
|
-
this.
|
|
2655
|
+
this.e3x_1 = origin;
|
|
2656
2656
|
}
|
|
2657
|
-
protoOf(CloseToken).
|
|
2658
|
-
return !(this.
|
|
2657
|
+
protoOf(CloseToken).f3x = function () {
|
|
2658
|
+
return !(this.e3x_1 == null);
|
|
2659
2659
|
};
|
|
2660
2660
|
var properties_initialized_CloseToken_kt_lgg8zn;
|
|
2661
2661
|
function _init_properties_CloseToken_kt__9ucr41() {
|
|
@@ -2666,17 +2666,17 @@ function _init_properties_CloseToken_kt__9ucr41() {
|
|
|
2666
2666
|
}
|
|
2667
2667
|
function transferFromDelegate($this) {
|
|
2668
2668
|
updateConsumed($this);
|
|
2669
|
-
var appended = $this.
|
|
2670
|
-
$this.
|
|
2669
|
+
var appended = $this.h45_1.n3t($this.g45_1.a3x());
|
|
2670
|
+
$this.i45_1 = add($this.i45_1, appended);
|
|
2671
2671
|
}
|
|
2672
2672
|
function updateConsumed($this) {
|
|
2673
|
-
$this.
|
|
2674
|
-
$this.
|
|
2673
|
+
$this.j45_1 = add($this.j45_1, subtract($this.i45_1, $this.h45_1.e1()));
|
|
2674
|
+
$this.i45_1 = $this.h45_1.e1();
|
|
2675
2675
|
}
|
|
2676
2676
|
function $awaitContentCOROUTINE$_0(_this__u8e3s4, min, resultContinuation) {
|
|
2677
2677
|
CoroutineImpl.call(this, resultContinuation);
|
|
2678
|
-
this.
|
|
2679
|
-
this.
|
|
2678
|
+
this.s45_1 = _this__u8e3s4;
|
|
2679
|
+
this.t45_1 = min;
|
|
2680
2680
|
}
|
|
2681
2681
|
protoOf($awaitContentCOROUTINE$_0).j9 = function () {
|
|
2682
2682
|
var suspendResult = this.d9_1;
|
|
@@ -2686,12 +2686,12 @@ protoOf($awaitContentCOROUTINE$_0).j9 = function () {
|
|
|
2686
2686
|
switch (tmp) {
|
|
2687
2687
|
case 0:
|
|
2688
2688
|
this.c9_1 = 3;
|
|
2689
|
-
if (compare(this.
|
|
2689
|
+
if (compare(this.s45_1.a3x().e1(), fromInt(this.t45_1)) >= 0) {
|
|
2690
2690
|
return true;
|
|
2691
2691
|
}
|
|
2692
2692
|
|
|
2693
2693
|
this.b9_1 = 1;
|
|
2694
|
-
suspendResult = this.
|
|
2694
|
+
suspendResult = this.s45_1.g45_1.g3x(this.t45_1, this);
|
|
2695
2695
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2696
2696
|
return suspendResult;
|
|
2697
2697
|
}
|
|
@@ -2699,7 +2699,7 @@ protoOf($awaitContentCOROUTINE$_0).j9 = function () {
|
|
|
2699
2699
|
continue $sm;
|
|
2700
2700
|
case 1:
|
|
2701
2701
|
if (suspendResult) {
|
|
2702
|
-
transferFromDelegate(this.
|
|
2702
|
+
transferFromDelegate(this.s45_1);
|
|
2703
2703
|
return true;
|
|
2704
2704
|
} else {
|
|
2705
2705
|
this.b9_1 = 2;
|
|
@@ -2723,34 +2723,34 @@ protoOf($awaitContentCOROUTINE$_0).j9 = function () {
|
|
|
2723
2723
|
while (true);
|
|
2724
2724
|
};
|
|
2725
2725
|
function CountedByteReadChannel(delegate) {
|
|
2726
|
-
this.
|
|
2727
|
-
this.
|
|
2728
|
-
this.
|
|
2729
|
-
this.
|
|
2726
|
+
this.g45_1 = delegate;
|
|
2727
|
+
this.h45_1 = new Buffer();
|
|
2728
|
+
this.i45_1 = new Long(0, 0);
|
|
2729
|
+
this.j45_1 = new Long(0, 0);
|
|
2730
2730
|
}
|
|
2731
|
-
protoOf(CountedByteReadChannel).
|
|
2731
|
+
protoOf(CountedByteReadChannel).u45 = function () {
|
|
2732
2732
|
updateConsumed(this);
|
|
2733
|
-
return this.
|
|
2733
|
+
return this.j45_1;
|
|
2734
2734
|
};
|
|
2735
|
-
protoOf(CountedByteReadChannel).
|
|
2736
|
-
return this.
|
|
2735
|
+
protoOf(CountedByteReadChannel).o3v = function () {
|
|
2736
|
+
return this.g45_1.o3v();
|
|
2737
2737
|
};
|
|
2738
|
-
protoOf(CountedByteReadChannel).
|
|
2739
|
-
return this.
|
|
2738
|
+
protoOf(CountedByteReadChannel).d3x = function () {
|
|
2739
|
+
return this.h45_1.v3r() && this.g45_1.d3x();
|
|
2740
2740
|
};
|
|
2741
|
-
protoOf(CountedByteReadChannel).
|
|
2741
|
+
protoOf(CountedByteReadChannel).a3x = function () {
|
|
2742
2742
|
transferFromDelegate(this);
|
|
2743
|
-
return this.
|
|
2743
|
+
return this.h45_1;
|
|
2744
2744
|
};
|
|
2745
|
-
protoOf(CountedByteReadChannel).
|
|
2745
|
+
protoOf(CountedByteReadChannel).g3x = function (min, $completion) {
|
|
2746
2746
|
var tmp = new $awaitContentCOROUTINE$_0(this, min, $completion);
|
|
2747
2747
|
tmp.d9_1 = Unit_instance;
|
|
2748
2748
|
tmp.e9_1 = null;
|
|
2749
2749
|
return tmp.j9();
|
|
2750
2750
|
};
|
|
2751
|
-
protoOf(CountedByteReadChannel).
|
|
2752
|
-
this.
|
|
2753
|
-
this.
|
|
2751
|
+
protoOf(CountedByteReadChannel).j3x = function (cause) {
|
|
2752
|
+
this.g45_1.j3x(cause);
|
|
2753
|
+
this.h45_1.j4();
|
|
2754
2754
|
};
|
|
2755
2755
|
function counted(_this__u8e3s4) {
|
|
2756
2756
|
return new CountedByteReadChannel(_this__u8e3s4);
|
|
@@ -2808,21 +2808,21 @@ function LineEndingMode__plus_impl_ttpz2j($this, other) {
|
|
|
2808
2808
|
}
|
|
2809
2809
|
function LineEndingMode__toString_impl_j4h76r($this) {
|
|
2810
2810
|
var tmp;
|
|
2811
|
-
if ($this === Companion_getInstance_2().
|
|
2811
|
+
if ($this === Companion_getInstance_2().v45_1) {
|
|
2812
2812
|
tmp = 'CR';
|
|
2813
|
-
} else if ($this === Companion_getInstance_2().
|
|
2813
|
+
} else if ($this === Companion_getInstance_2().w45_1) {
|
|
2814
2814
|
tmp = 'LF';
|
|
2815
|
-
} else if ($this === Companion_getInstance_2().
|
|
2815
|
+
} else if ($this === Companion_getInstance_2().x45_1) {
|
|
2816
2816
|
tmp = 'CRLF';
|
|
2817
2817
|
} else {
|
|
2818
2818
|
// Inline function 'kotlin.collections.filter' call
|
|
2819
|
-
var tmp0 = Companion_getInstance_2().
|
|
2819
|
+
var tmp0 = Companion_getInstance_2().z45_1;
|
|
2820
2820
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2821
2821
|
var destination = ArrayList_init_$Create$();
|
|
2822
2822
|
var _iterator__ex2g4s = tmp0.t();
|
|
2823
2823
|
while (_iterator__ex2g4s.u()) {
|
|
2824
2824
|
var element = _iterator__ex2g4s.v();
|
|
2825
|
-
var it = element.
|
|
2825
|
+
var it = element.a46_1;
|
|
2826
2826
|
if (LineEndingMode__contains_impl_q5pr68($this, it)) {
|
|
2827
2827
|
destination.b1(element);
|
|
2828
2828
|
}
|
|
@@ -2833,11 +2833,11 @@ function LineEndingMode__toString_impl_j4h76r($this) {
|
|
|
2833
2833
|
}
|
|
2834
2834
|
function Companion_2() {
|
|
2835
2835
|
Companion_instance_3 = this;
|
|
2836
|
-
this.
|
|
2837
|
-
this.
|
|
2838
|
-
this.
|
|
2839
|
-
this.
|
|
2840
|
-
this.
|
|
2836
|
+
this.v45_1 = _LineEndingMode___init__impl__jo5bul(1);
|
|
2837
|
+
this.w45_1 = _LineEndingMode___init__impl__jo5bul(2);
|
|
2838
|
+
this.x45_1 = _LineEndingMode___init__impl__jo5bul(4);
|
|
2839
|
+
this.y45_1 = _LineEndingMode___init__impl__jo5bul(7);
|
|
2840
|
+
this.z45_1 = listOf([new LineEndingMode(this.v45_1), new LineEndingMode(this.w45_1), new LineEndingMode(this.x45_1)]);
|
|
2841
2841
|
}
|
|
2842
2842
|
var Companion_instance_3;
|
|
2843
2843
|
function Companion_getInstance_2() {
|
|
@@ -2851,29 +2851,29 @@ function LineEndingMode__hashCode_impl_2mopm4($this) {
|
|
|
2851
2851
|
function LineEndingMode__equals_impl_qyr4nk($this, other) {
|
|
2852
2852
|
if (!(other instanceof LineEndingMode))
|
|
2853
2853
|
return false;
|
|
2854
|
-
if (!($this === other.
|
|
2854
|
+
if (!($this === other.a46_1))
|
|
2855
2855
|
return false;
|
|
2856
2856
|
return true;
|
|
2857
2857
|
}
|
|
2858
2858
|
function LineEndingMode(mode) {
|
|
2859
2859
|
Companion_getInstance_2();
|
|
2860
|
-
this.
|
|
2860
|
+
this.a46_1 = mode;
|
|
2861
2861
|
}
|
|
2862
2862
|
protoOf(LineEndingMode).toString = function () {
|
|
2863
|
-
return LineEndingMode__toString_impl_j4h76r(this.
|
|
2863
|
+
return LineEndingMode__toString_impl_j4h76r(this.a46_1);
|
|
2864
2864
|
};
|
|
2865
2865
|
protoOf(LineEndingMode).hashCode = function () {
|
|
2866
|
-
return LineEndingMode__hashCode_impl_2mopm4(this.
|
|
2866
|
+
return LineEndingMode__hashCode_impl_2mopm4(this.a46_1);
|
|
2867
2867
|
};
|
|
2868
2868
|
protoOf(LineEndingMode).equals = function (other) {
|
|
2869
|
-
return LineEndingMode__equals_impl_qyr4nk(this.
|
|
2869
|
+
return LineEndingMode__equals_impl_qyr4nk(this.a46_1, other);
|
|
2870
2870
|
};
|
|
2871
2871
|
function SourceByteReadChannel(source) {
|
|
2872
|
-
this.
|
|
2873
|
-
this.
|
|
2872
|
+
this.b46_1 = source;
|
|
2873
|
+
this.c46_1 = null;
|
|
2874
2874
|
}
|
|
2875
|
-
protoOf(SourceByteReadChannel).
|
|
2876
|
-
var tmp0_safe_receiver = this.
|
|
2875
|
+
protoOf(SourceByteReadChannel).o3v = function () {
|
|
2876
|
+
var tmp0_safe_receiver = this.c46_1;
|
|
2877
2877
|
var tmp;
|
|
2878
2878
|
if (tmp0_safe_receiver == null) {
|
|
2879
2879
|
tmp = null;
|
|
@@ -2885,7 +2885,7 @@ protoOf(SourceByteReadChannel).k3t = function () {
|
|
|
2885
2885
|
tmp_0 = null;
|
|
2886
2886
|
} else {
|
|
2887
2887
|
if (isInterface(tmp0_subject, CopyableThrowable)) {
|
|
2888
|
-
tmp_0 = access$_get_origin__hdh1qz(tmp0_safe_receiver).
|
|
2888
|
+
tmp_0 = access$_get_origin__hdh1qz(tmp0_safe_receiver).b1z();
|
|
2889
2889
|
} else {
|
|
2890
2890
|
if (tmp0_subject instanceof CancellationException) {
|
|
2891
2891
|
tmp_0 = CancellationException_init_$Create$(access$_get_origin__hdh1qz(tmp0_safe_receiver).message, access$_get_origin__hdh1qz(tmp0_safe_receiver));
|
|
@@ -2899,42 +2899,42 @@ protoOf(SourceByteReadChannel).k3t = function () {
|
|
|
2899
2899
|
}
|
|
2900
2900
|
return tmp;
|
|
2901
2901
|
};
|
|
2902
|
-
protoOf(SourceByteReadChannel).
|
|
2903
|
-
return this.
|
|
2902
|
+
protoOf(SourceByteReadChannel).d3x = function () {
|
|
2903
|
+
return this.b46_1.v3r();
|
|
2904
2904
|
};
|
|
2905
|
-
protoOf(SourceByteReadChannel).
|
|
2906
|
-
var tmp0_safe_receiver = this.
|
|
2905
|
+
protoOf(SourceByteReadChannel).a3x = function () {
|
|
2906
|
+
var tmp0_safe_receiver = this.o3v();
|
|
2907
2907
|
if (tmp0_safe_receiver == null)
|
|
2908
2908
|
null;
|
|
2909
2909
|
else {
|
|
2910
2910
|
// Inline function 'kotlin.let' call
|
|
2911
2911
|
throw tmp0_safe_receiver;
|
|
2912
2912
|
}
|
|
2913
|
-
return this.
|
|
2913
|
+
return this.b46_1.u3r();
|
|
2914
2914
|
};
|
|
2915
|
-
protoOf(SourceByteReadChannel).
|
|
2916
|
-
var tmp0_safe_receiver = this.
|
|
2915
|
+
protoOf(SourceByteReadChannel).g3x = function (min, $completion) {
|
|
2916
|
+
var tmp0_safe_receiver = this.o3v();
|
|
2917
2917
|
if (tmp0_safe_receiver == null)
|
|
2918
2918
|
null;
|
|
2919
2919
|
else {
|
|
2920
2920
|
// Inline function 'kotlin.let' call
|
|
2921
2921
|
throw tmp0_safe_receiver;
|
|
2922
2922
|
}
|
|
2923
|
-
return this.
|
|
2923
|
+
return this.b46_1.x3r(fromInt(min));
|
|
2924
2924
|
};
|
|
2925
|
-
protoOf(SourceByteReadChannel).
|
|
2926
|
-
if (!(this.
|
|
2925
|
+
protoOf(SourceByteReadChannel).j3x = function (cause) {
|
|
2926
|
+
if (!(this.c46_1 == null))
|
|
2927
2927
|
return Unit_instance;
|
|
2928
|
-
this.
|
|
2928
|
+
this.b46_1.j4();
|
|
2929
2929
|
var tmp = this;
|
|
2930
2930
|
var tmp1_elvis_lhs = cause == null ? null : cause.message;
|
|
2931
|
-
tmp.
|
|
2931
|
+
tmp.c46_1 = new CloseToken(IOException_init_$Create$_0(tmp1_elvis_lhs == null ? 'Channel was cancelled' : tmp1_elvis_lhs, cause));
|
|
2932
2932
|
};
|
|
2933
2933
|
function decode(_this__u8e3s4, input, max) {
|
|
2934
2934
|
max = max === VOID ? 2147483647 : max;
|
|
2935
2935
|
var tmp0 = fromInt(max);
|
|
2936
2936
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
2937
|
-
var b = input.
|
|
2937
|
+
var b = input.u3r().e1();
|
|
2938
2938
|
var tmp$ret$0 = compare(tmp0, b) <= 0 ? tmp0 : b;
|
|
2939
2939
|
// Inline function 'kotlin.text.buildString' call
|
|
2940
2940
|
var capacity = convertToInt(tmp$ret$0);
|
|
@@ -2971,7 +2971,7 @@ function encodeToImpl(_this__u8e3s4, destination, input, fromIndex, toIndex) {
|
|
|
2971
2971
|
}
|
|
2972
2972
|
}
|
|
2973
2973
|
function canRead(_this__u8e3s4) {
|
|
2974
|
-
return !_this__u8e3s4.
|
|
2974
|
+
return !_this__u8e3s4.v3r();
|
|
2975
2975
|
}
|
|
2976
2976
|
function readBytes(_this__u8e3s4, count) {
|
|
2977
2977
|
count = count === VOID ? convertToInt(_this__u8e3s4.e1()) : count;
|
|
@@ -2980,35 +2980,35 @@ function readBytes(_this__u8e3s4, count) {
|
|
|
2980
2980
|
function writeFully_0(_this__u8e3s4, buffer, offset, length) {
|
|
2981
2981
|
offset = offset === VOID ? 0 : offset;
|
|
2982
2982
|
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
2983
|
-
_this__u8e3s4.
|
|
2983
|
+
_this__u8e3s4.e3t(buffer, offset, offset + length | 0);
|
|
2984
2984
|
}
|
|
2985
2985
|
function BytePacketBuilder() {
|
|
2986
2986
|
return new Buffer();
|
|
2987
2987
|
}
|
|
2988
2988
|
function build(_this__u8e3s4) {
|
|
2989
|
-
return _this__u8e3s4.
|
|
2989
|
+
return _this__u8e3s4.u3r();
|
|
2990
2990
|
}
|
|
2991
2991
|
function get_size(_this__u8e3s4) {
|
|
2992
|
-
return convertToInt(_this__u8e3s4.
|
|
2992
|
+
return convertToInt(_this__u8e3s4.u3r().e1());
|
|
2993
2993
|
}
|
|
2994
2994
|
var ByteReadPacketEmpty;
|
|
2995
2995
|
function get_remaining(_this__u8e3s4) {
|
|
2996
2996
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
2997
|
-
return _this__u8e3s4.
|
|
2997
|
+
return _this__u8e3s4.u3r().e1();
|
|
2998
2998
|
}
|
|
2999
2999
|
function takeWhile(_this__u8e3s4, block) {
|
|
3000
3000
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
3001
|
-
while (!_this__u8e3s4.
|
|
3001
|
+
while (!_this__u8e3s4.v3r() && block(_this__u8e3s4.u3r())) {
|
|
3002
3002
|
}
|
|
3003
3003
|
}
|
|
3004
3004
|
function discard_0(_this__u8e3s4, count) {
|
|
3005
3005
|
count = count === VOID ? new Long(-1, 2147483647) : count;
|
|
3006
3006
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
3007
|
-
_this__u8e3s4.
|
|
3007
|
+
_this__u8e3s4.x3r(count);
|
|
3008
3008
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
3009
3009
|
var b = get_remaining(_this__u8e3s4);
|
|
3010
3010
|
var countToDiscard = compare(count, b) <= 0 ? count : b;
|
|
3011
|
-
_this__u8e3s4.
|
|
3011
|
+
_this__u8e3s4.u3r().s3s(countToDiscard);
|
|
3012
3012
|
return countToDiscard;
|
|
3013
3013
|
}
|
|
3014
3014
|
var properties_initialized_ByteReadPacket_kt_hw4st4;
|
|
@@ -3021,23 +3021,23 @@ function _init_properties_ByteReadPacket_kt__28475y() {
|
|
|
3021
3021
|
function readAvailable_0(_this__u8e3s4, buffer, offset, length) {
|
|
3022
3022
|
offset = offset === VOID ? 0 : offset;
|
|
3023
3023
|
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
3024
|
-
var result = _this__u8e3s4.
|
|
3024
|
+
var result = _this__u8e3s4.t3s(buffer, offset, offset + length | 0);
|
|
3025
3025
|
return result === -1 ? 0 : result;
|
|
3026
3026
|
}
|
|
3027
3027
|
function toByteArray_0(_this__u8e3s4, charset) {
|
|
3028
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
3029
|
-
if (charset.equals(Charsets_getInstance().
|
|
3028
|
+
charset = charset === VOID ? Charsets_getInstance().d46_1 : charset;
|
|
3029
|
+
if (charset.equals(Charsets_getInstance().d46_1))
|
|
3030
3030
|
return encodeToByteArray(_this__u8e3s4);
|
|
3031
|
-
return encodeToByteArray_0(charset.
|
|
3031
|
+
return encodeToByteArray_0(charset.g46(), _this__u8e3s4, 0, _this__u8e3s4.length);
|
|
3032
3032
|
}
|
|
3033
3033
|
function writeText(_this__u8e3s4, text, fromIndex, toIndex, charset) {
|
|
3034
3034
|
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
3035
3035
|
toIndex = toIndex === VOID ? charSequenceLength(text) : toIndex;
|
|
3036
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
3037
|
-
if (charset === Charsets_getInstance().
|
|
3036
|
+
charset = charset === VOID ? Charsets_getInstance().d46_1 : charset;
|
|
3037
|
+
if (charset === Charsets_getInstance().d46_1) {
|
|
3038
3038
|
return writeString(_this__u8e3s4, toString_1(text), fromIndex, toIndex);
|
|
3039
3039
|
}
|
|
3040
|
-
encodeToImpl(charset.
|
|
3040
|
+
encodeToImpl(charset.g46(), _this__u8e3s4, text, fromIndex, toIndex);
|
|
3041
3041
|
}
|
|
3042
3042
|
function get_ByteArrayPool() {
|
|
3043
3043
|
_init_properties_ByteArrayPool_kt__kfi3uj();
|
|
@@ -3047,7 +3047,7 @@ var ByteArrayPool;
|
|
|
3047
3047
|
function ByteArrayPool$1() {
|
|
3048
3048
|
DefaultPool.call(this, 128);
|
|
3049
3049
|
}
|
|
3050
|
-
protoOf(ByteArrayPool$1).
|
|
3050
|
+
protoOf(ByteArrayPool$1).k46 = function () {
|
|
3051
3051
|
return new Int8Array(4096);
|
|
3052
3052
|
};
|
|
3053
3053
|
var properties_initialized_ByteArrayPool_kt_td6pfh;
|
|
@@ -3061,21 +3061,21 @@ function ObjectPool() {
|
|
|
3061
3061
|
}
|
|
3062
3062
|
function NoPoolImpl() {
|
|
3063
3063
|
}
|
|
3064
|
-
protoOf(NoPoolImpl).
|
|
3064
|
+
protoOf(NoPoolImpl).s46 = function (instance) {
|
|
3065
3065
|
return Unit_instance;
|
|
3066
3066
|
};
|
|
3067
|
-
protoOf(NoPoolImpl).
|
|
3067
|
+
protoOf(NoPoolImpl).h1t = function () {
|
|
3068
3068
|
return Unit_instance;
|
|
3069
3069
|
};
|
|
3070
3070
|
function Companion_3() {
|
|
3071
3071
|
}
|
|
3072
|
-
protoOf(Companion_3).
|
|
3072
|
+
protoOf(Companion_3).t46 = function (name) {
|
|
3073
3073
|
switch (name) {
|
|
3074
3074
|
case 'UTF-8':
|
|
3075
3075
|
case 'utf-8':
|
|
3076
3076
|
case 'UTF8':
|
|
3077
3077
|
case 'utf8':
|
|
3078
|
-
return Charsets_getInstance().
|
|
3078
|
+
return Charsets_getInstance().d46_1;
|
|
3079
3079
|
}
|
|
3080
3080
|
var tmp;
|
|
3081
3081
|
var tmp_0;
|
|
@@ -3106,7 +3106,7 @@ protoOf(Companion_3).p44 = function (name) {
|
|
|
3106
3106
|
tmp = name === 'latin1' || name === 'Latin1';
|
|
3107
3107
|
}
|
|
3108
3108
|
if (tmp) {
|
|
3109
|
-
return Charsets_getInstance().
|
|
3109
|
+
return Charsets_getInstance().e46_1;
|
|
3110
3110
|
}
|
|
3111
3111
|
throw IllegalArgumentException_init_$Create$('Charset ' + name + ' is not supported');
|
|
3112
3112
|
};
|
|
@@ -3115,7 +3115,7 @@ function Companion_getInstance_3() {
|
|
|
3115
3115
|
return Companion_instance_4;
|
|
3116
3116
|
}
|
|
3117
3117
|
function Charset(_name) {
|
|
3118
|
-
this.
|
|
3118
|
+
this.f46_1 = _name;
|
|
3119
3119
|
}
|
|
3120
3120
|
protoOf(Charset).equals = function (other) {
|
|
3121
3121
|
if (this === other)
|
|
@@ -3124,18 +3124,18 @@ protoOf(Charset).equals = function (other) {
|
|
|
3124
3124
|
return false;
|
|
3125
3125
|
if (!(other instanceof Charset))
|
|
3126
3126
|
THROW_CCE();
|
|
3127
|
-
return this.
|
|
3127
|
+
return this.f46_1 === other.f46_1;
|
|
3128
3128
|
};
|
|
3129
3129
|
protoOf(Charset).hashCode = function () {
|
|
3130
|
-
return getStringHashCode(this.
|
|
3130
|
+
return getStringHashCode(this.f46_1);
|
|
3131
3131
|
};
|
|
3132
3132
|
protoOf(Charset).toString = function () {
|
|
3133
|
-
return this.
|
|
3133
|
+
return this.f46_1;
|
|
3134
3134
|
};
|
|
3135
3135
|
function Charsets() {
|
|
3136
3136
|
Charsets_instance = this;
|
|
3137
|
-
this.
|
|
3138
|
-
this.
|
|
3137
|
+
this.d46_1 = new CharsetImpl('UTF-8');
|
|
3138
|
+
this.e46_1 = new CharsetImpl('ISO-8859-1');
|
|
3139
3139
|
}
|
|
3140
3140
|
var Charsets_instance;
|
|
3141
3141
|
function Charsets_getInstance() {
|
|
@@ -3144,25 +3144,25 @@ function Charsets_getInstance() {
|
|
|
3144
3144
|
return Charsets_instance;
|
|
3145
3145
|
}
|
|
3146
3146
|
function get_name(_this__u8e3s4) {
|
|
3147
|
-
return _this__u8e3s4.
|
|
3147
|
+
return _this__u8e3s4.f46_1;
|
|
3148
3148
|
}
|
|
3149
3149
|
function MalformedInputException(message) {
|
|
3150
3150
|
IOException_init_$Init$_0(message, this);
|
|
3151
3151
|
captureStack(this, MalformedInputException);
|
|
3152
3152
|
}
|
|
3153
3153
|
function CharsetDecoder(_charset) {
|
|
3154
|
-
this.
|
|
3154
|
+
this.v46_1 = _charset;
|
|
3155
3155
|
}
|
|
3156
3156
|
function forName(_this__u8e3s4, name) {
|
|
3157
|
-
return Companion_instance_4.
|
|
3157
|
+
return Companion_instance_4.t46(name);
|
|
3158
3158
|
}
|
|
3159
3159
|
function CharsetEncoder(_charset) {
|
|
3160
|
-
this.
|
|
3160
|
+
this.w46_1 = _charset;
|
|
3161
3161
|
}
|
|
3162
3162
|
function decode_0(_this__u8e3s4, input, dst, max) {
|
|
3163
3163
|
var decoder = Decoder(get_name(get_charset(_this__u8e3s4)), true);
|
|
3164
|
-
input.
|
|
3165
|
-
var tmp0 = input.
|
|
3164
|
+
input.x3r(fromInt(max));
|
|
3165
|
+
var tmp0 = input.u3r().e1();
|
|
3166
3166
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
3167
3167
|
var b = fromInt(max);
|
|
3168
3168
|
var count = compare(tmp0, b) <= 0 ? tmp0 : b;
|
|
@@ -3172,7 +3172,7 @@ function decode_0(_this__u8e3s4, input, dst, max) {
|
|
|
3172
3172
|
// Inline function 'org.khronos.webgl.toInt8Array' call
|
|
3173
3173
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3174
3174
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3175
|
-
tmp = decoder.
|
|
3175
|
+
tmp = decoder.x46(array);
|
|
3176
3176
|
} catch ($p) {
|
|
3177
3177
|
var tmp_0;
|
|
3178
3178
|
if ($p instanceof Error) {
|
|
@@ -3194,11 +3194,11 @@ function encodeImpl(_this__u8e3s4, input, fromIndex, toIndex, dst) {
|
|
|
3194
3194
|
var message = 'Failed requirement.';
|
|
3195
3195
|
throw IllegalArgumentException_init_$Create$(toString_1(message));
|
|
3196
3196
|
}
|
|
3197
|
-
if (get_charset_0(_this__u8e3s4).equals(Charsets_getInstance().
|
|
3197
|
+
if (get_charset_0(_this__u8e3s4).equals(Charsets_getInstance().e46_1)) {
|
|
3198
3198
|
return encodeISO88591(input, fromIndex, toIndex, dst);
|
|
3199
3199
|
}
|
|
3200
3200
|
// Inline function 'kotlin.require' call
|
|
3201
|
-
if (!(get_charset_0(_this__u8e3s4) === Charsets_getInstance().
|
|
3201
|
+
if (!(get_charset_0(_this__u8e3s4) === Charsets_getInstance().d46_1)) {
|
|
3202
3202
|
var message_0 = 'Only UTF-8 encoding is supported in JS';
|
|
3203
3203
|
throw IllegalArgumentException_init_$Create$(toString_1(message_0));
|
|
3204
3204
|
}
|
|
@@ -3208,7 +3208,7 @@ function encodeImpl(_this__u8e3s4, input, fromIndex, toIndex, dst) {
|
|
|
3208
3208
|
var result = encoder.encode(tmp$ret$5);
|
|
3209
3209
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3210
3210
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3211
|
-
dst.
|
|
3211
|
+
dst.h3t(result);
|
|
3212
3212
|
return result.length;
|
|
3213
3213
|
}
|
|
3214
3214
|
function encodeToByteArray_0(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
@@ -3219,17 +3219,17 @@ function encodeToByteArray_0(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
|
3219
3219
|
function CharsetImpl(name) {
|
|
3220
3220
|
Charset.call(this, name);
|
|
3221
3221
|
}
|
|
3222
|
-
protoOf(CharsetImpl).
|
|
3222
|
+
protoOf(CharsetImpl).g46 = function () {
|
|
3223
3223
|
return new CharsetEncoderImpl(this);
|
|
3224
3224
|
};
|
|
3225
|
-
protoOf(CharsetImpl).
|
|
3225
|
+
protoOf(CharsetImpl).u46 = function () {
|
|
3226
3226
|
return new CharsetDecoderImpl(this);
|
|
3227
3227
|
};
|
|
3228
3228
|
function get_charset(_this__u8e3s4) {
|
|
3229
|
-
return _this__u8e3s4.
|
|
3229
|
+
return _this__u8e3s4.v46_1;
|
|
3230
3230
|
}
|
|
3231
3231
|
function get_charset_0(_this__u8e3s4) {
|
|
3232
|
-
return _this__u8e3s4.
|
|
3232
|
+
return _this__u8e3s4.w46_1;
|
|
3233
3233
|
}
|
|
3234
3234
|
function encodeToByteArrayImpl(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
3235
3235
|
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
@@ -3248,39 +3248,39 @@ function encodeToByteArrayImpl(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
|
3248
3248
|
}
|
|
3249
3249
|
function CharsetEncoderImpl(charset) {
|
|
3250
3250
|
CharsetEncoder.call(this, charset);
|
|
3251
|
-
this.
|
|
3251
|
+
this.a47_1 = charset;
|
|
3252
3252
|
}
|
|
3253
3253
|
protoOf(CharsetEncoderImpl).toString = function () {
|
|
3254
|
-
return 'CharsetEncoderImpl(charset=' + this.
|
|
3254
|
+
return 'CharsetEncoderImpl(charset=' + this.a47_1.toString() + ')';
|
|
3255
3255
|
};
|
|
3256
3256
|
protoOf(CharsetEncoderImpl).hashCode = function () {
|
|
3257
|
-
return this.
|
|
3257
|
+
return this.a47_1.hashCode();
|
|
3258
3258
|
};
|
|
3259
3259
|
protoOf(CharsetEncoderImpl).equals = function (other) {
|
|
3260
3260
|
if (this === other)
|
|
3261
3261
|
return true;
|
|
3262
3262
|
if (!(other instanceof CharsetEncoderImpl))
|
|
3263
3263
|
return false;
|
|
3264
|
-
if (!this.
|
|
3264
|
+
if (!this.a47_1.equals(other.a47_1))
|
|
3265
3265
|
return false;
|
|
3266
3266
|
return true;
|
|
3267
3267
|
};
|
|
3268
3268
|
function CharsetDecoderImpl(charset) {
|
|
3269
3269
|
CharsetDecoder.call(this, charset);
|
|
3270
|
-
this.
|
|
3270
|
+
this.c47_1 = charset;
|
|
3271
3271
|
}
|
|
3272
3272
|
protoOf(CharsetDecoderImpl).toString = function () {
|
|
3273
|
-
return 'CharsetDecoderImpl(charset=' + this.
|
|
3273
|
+
return 'CharsetDecoderImpl(charset=' + this.c47_1.toString() + ')';
|
|
3274
3274
|
};
|
|
3275
3275
|
protoOf(CharsetDecoderImpl).hashCode = function () {
|
|
3276
|
-
return this.
|
|
3276
|
+
return this.c47_1.hashCode();
|
|
3277
3277
|
};
|
|
3278
3278
|
protoOf(CharsetDecoderImpl).equals = function (other) {
|
|
3279
3279
|
if (this === other)
|
|
3280
3280
|
return true;
|
|
3281
3281
|
if (!(other instanceof CharsetDecoderImpl))
|
|
3282
3282
|
return false;
|
|
3283
|
-
if (!this.
|
|
3283
|
+
if (!this.c47_1.equals(other.c47_1))
|
|
3284
3284
|
return false;
|
|
3285
3285
|
return true;
|
|
3286
3286
|
};
|
|
@@ -3314,10 +3314,10 @@ function textDecoderOptions(fatal) {
|
|
|
3314
3314
|
return this_0;
|
|
3315
3315
|
}
|
|
3316
3316
|
function toKtor$1($this_toKtor) {
|
|
3317
|
-
this.
|
|
3317
|
+
this.d47_1 = $this_toKtor;
|
|
3318
3318
|
}
|
|
3319
|
-
protoOf(toKtor$1).
|
|
3320
|
-
return this.
|
|
3319
|
+
protoOf(toKtor$1).x46 = function (buffer) {
|
|
3320
|
+
return this.d47_1.decode(buffer);
|
|
3321
3321
|
};
|
|
3322
3322
|
function get_ENCODING_ALIASES() {
|
|
3323
3323
|
_init_properties_TextDecoderFallback_js_kt__an7r6m();
|
|
@@ -3330,7 +3330,7 @@ function get_REPLACEMENT() {
|
|
|
3330
3330
|
}
|
|
3331
3331
|
var REPLACEMENT;
|
|
3332
3332
|
function TextDecoderFallback(encoding, fatal) {
|
|
3333
|
-
this.
|
|
3333
|
+
this.e47_1 = fatal;
|
|
3334
3334
|
// Inline function 'kotlin.text.trim' call
|
|
3335
3335
|
// Inline function 'kotlin.text.lowercase' call
|
|
3336
3336
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -3341,7 +3341,7 @@ function TextDecoderFallback(encoding, fatal) {
|
|
|
3341
3341
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
3342
3342
|
}
|
|
3343
3343
|
}
|
|
3344
|
-
protoOf(TextDecoderFallback).
|
|
3344
|
+
protoOf(TextDecoderFallback).x46 = function (buffer) {
|
|
3345
3345
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
3346
3346
|
var builder = new Buffer();
|
|
3347
3347
|
var bytes = buffer instanceof Int8Array ? buffer : THROW_CCE();
|
|
@@ -3357,7 +3357,7 @@ protoOf(TextDecoderFallback).t44 = function (buffer) {
|
|
|
3357
3357
|
var point = toCodePoint(byte);
|
|
3358
3358
|
if (point < 0) {
|
|
3359
3359
|
// Inline function 'kotlin.check' call
|
|
3360
|
-
if (!!this.
|
|
3360
|
+
if (!!this.e47_1) {
|
|
3361
3361
|
var message = 'Invalid character: ' + point;
|
|
3362
3362
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
3363
3363
|
}
|
|
@@ -3365,9 +3365,9 @@ protoOf(TextDecoderFallback).t44 = function (buffer) {
|
|
|
3365
3365
|
continue $l$loop;
|
|
3366
3366
|
}
|
|
3367
3367
|
if (point > 255) {
|
|
3368
|
-
builder.
|
|
3368
|
+
builder.o3t(toByte(point >> 8));
|
|
3369
3369
|
}
|
|
3370
|
-
builder.
|
|
3370
|
+
builder.o3t(toByte(point & 255));
|
|
3371
3371
|
}
|
|
3372
3372
|
while (inductionVariable < last);
|
|
3373
3373
|
return decodeToString(readByteArray_0(builder));
|
|
@@ -3394,25 +3394,25 @@ function _init_properties_TextDecoderFallback_js_kt__an7r6m() {
|
|
|
3394
3394
|
}
|
|
3395
3395
|
}
|
|
3396
3396
|
function readText_0(_this__u8e3s4, charset, max) {
|
|
3397
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
3397
|
+
charset = charset === VOID ? Charsets_getInstance().d46_1 : charset;
|
|
3398
3398
|
max = max === VOID ? 2147483647 : max;
|
|
3399
|
-
if (charset.equals(Charsets_getInstance().
|
|
3399
|
+
if (charset.equals(Charsets_getInstance().d46_1)) {
|
|
3400
3400
|
if (max === 2147483647)
|
|
3401
3401
|
return readString_1(_this__u8e3s4);
|
|
3402
|
-
_this__u8e3s4.
|
|
3403
|
-
var tmp0 = _this__u8e3s4.
|
|
3402
|
+
_this__u8e3s4.x3r(fromInt(max));
|
|
3403
|
+
var tmp0 = _this__u8e3s4.u3r().e1();
|
|
3404
3404
|
// Inline function 'kotlin.math.min' call
|
|
3405
3405
|
var b = fromInt(max);
|
|
3406
3406
|
var count = compare(tmp0, b) <= 0 ? tmp0 : b;
|
|
3407
3407
|
return readString(_this__u8e3s4, count);
|
|
3408
3408
|
}
|
|
3409
|
-
return decode(charset.
|
|
3409
|
+
return decode(charset.u46(), _this__u8e3s4, max);
|
|
3410
3410
|
}
|
|
3411
3411
|
function get_DEVELOPMENT_MODE() {
|
|
3412
3412
|
return false;
|
|
3413
3413
|
}
|
|
3414
3414
|
function ioDispatcher() {
|
|
3415
|
-
return Dispatchers_getInstance().
|
|
3415
|
+
return Dispatchers_getInstance().p22_1;
|
|
3416
3416
|
}
|
|
3417
3417
|
function encodeISO88591(input, fromIndex, toIndex, dst) {
|
|
3418
3418
|
if (fromIndex >= toIndex)
|
|
@@ -3428,7 +3428,7 @@ function encodeISO88591(input, fromIndex, toIndex, dst) {
|
|
|
3428
3428
|
if (character > 255) {
|
|
3429
3429
|
failedToMapError(character);
|
|
3430
3430
|
}
|
|
3431
|
-
dst.
|
|
3431
|
+
dst.o3t(toByte(character));
|
|
3432
3432
|
}
|
|
3433
3433
|
while (inductionVariable < toIndex);
|
|
3434
3434
|
return toIndex - fromIndex | 0;
|
|
@@ -3450,64 +3450,64 @@ function _init_properties_Win1252Table_kt__tl0v64() {
|
|
|
3450
3450
|
}
|
|
3451
3451
|
}
|
|
3452
3452
|
function DefaultPool(capacity) {
|
|
3453
|
-
this.
|
|
3453
|
+
this.l46_1 = capacity;
|
|
3454
3454
|
var tmp = this;
|
|
3455
3455
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
3456
|
-
var size = this.
|
|
3457
|
-
tmp.
|
|
3458
|
-
this.
|
|
3456
|
+
var size = this.l46_1;
|
|
3457
|
+
tmp.m46_1 = Array(size);
|
|
3458
|
+
this.n46_1 = 0;
|
|
3459
3459
|
}
|
|
3460
|
-
protoOf(DefaultPool).
|
|
3460
|
+
protoOf(DefaultPool).o46 = function (instance) {
|
|
3461
3461
|
};
|
|
3462
|
-
protoOf(DefaultPool).
|
|
3462
|
+
protoOf(DefaultPool).p46 = function (instance) {
|
|
3463
3463
|
return instance;
|
|
3464
3464
|
};
|
|
3465
|
-
protoOf(DefaultPool).
|
|
3465
|
+
protoOf(DefaultPool).q46 = function (instance) {
|
|
3466
3466
|
};
|
|
3467
|
-
protoOf(DefaultPool).
|
|
3468
|
-
if (this.
|
|
3469
|
-
return this.
|
|
3470
|
-
this.
|
|
3471
|
-
var idx = this.
|
|
3472
|
-
var tmp = this.
|
|
3467
|
+
protoOf(DefaultPool).r46 = function () {
|
|
3468
|
+
if (this.n46_1 === 0)
|
|
3469
|
+
return this.k46();
|
|
3470
|
+
this.n46_1 = this.n46_1 - 1 | 0;
|
|
3471
|
+
var idx = this.n46_1;
|
|
3472
|
+
var tmp = this.m46_1[idx];
|
|
3473
3473
|
var instance = !(tmp == null) ? tmp : THROW_CCE();
|
|
3474
|
-
this.
|
|
3475
|
-
return this.
|
|
3474
|
+
this.m46_1[idx] = null;
|
|
3475
|
+
return this.p46(instance);
|
|
3476
3476
|
};
|
|
3477
|
-
protoOf(DefaultPool).
|
|
3478
|
-
this.
|
|
3479
|
-
if (this.
|
|
3480
|
-
this.
|
|
3477
|
+
protoOf(DefaultPool).s46 = function (instance) {
|
|
3478
|
+
this.q46(instance);
|
|
3479
|
+
if (this.n46_1 === this.l46_1) {
|
|
3480
|
+
this.o46(instance);
|
|
3481
3481
|
} else {
|
|
3482
|
-
var _unary__edvuaz = this.
|
|
3483
|
-
this.
|
|
3484
|
-
this.
|
|
3482
|
+
var _unary__edvuaz = this.n46_1;
|
|
3483
|
+
this.n46_1 = _unary__edvuaz + 1 | 0;
|
|
3484
|
+
this.m46_1[_unary__edvuaz] = instance;
|
|
3485
3485
|
}
|
|
3486
3486
|
};
|
|
3487
|
-
protoOf(DefaultPool).
|
|
3487
|
+
protoOf(DefaultPool).h1t = function () {
|
|
3488
3488
|
var inductionVariable = 0;
|
|
3489
|
-
var last = this.
|
|
3489
|
+
var last = this.n46_1;
|
|
3490
3490
|
if (inductionVariable < last)
|
|
3491
3491
|
do {
|
|
3492
3492
|
var i = inductionVariable;
|
|
3493
3493
|
inductionVariable = inductionVariable + 1 | 0;
|
|
3494
|
-
var tmp = this.
|
|
3494
|
+
var tmp = this.m46_1[i];
|
|
3495
3495
|
var instance = !(tmp == null) ? tmp : THROW_CCE();
|
|
3496
|
-
this.
|
|
3497
|
-
this.
|
|
3496
|
+
this.m46_1[i] = null;
|
|
3497
|
+
this.o46(instance);
|
|
3498
3498
|
}
|
|
3499
3499
|
while (inductionVariable < last);
|
|
3500
|
-
this.
|
|
3500
|
+
this.n46_1 = 0;
|
|
3501
3501
|
};
|
|
3502
3502
|
//region block: post-declaration
|
|
3503
|
-
protoOf(Read).
|
|
3504
|
-
protoOf(Read).
|
|
3505
|
-
protoOf(Write).
|
|
3506
|
-
protoOf(Write).
|
|
3507
|
-
protoOf(ByteChannel).
|
|
3508
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
3509
|
-
protoOf(CountedByteReadChannel).
|
|
3510
|
-
protoOf(SourceByteReadChannel).
|
|
3503
|
+
protoOf(Read).z3u = resume;
|
|
3504
|
+
protoOf(Read).a3v = resume_0;
|
|
3505
|
+
protoOf(Write).z3u = resume;
|
|
3506
|
+
protoOf(Write).a3v = resume_0;
|
|
3507
|
+
protoOf(ByteChannel).h3x = awaitContent$default;
|
|
3508
|
+
protoOf(ByteReadChannel$Companion$Empty$1).h3x = awaitContent$default;
|
|
3509
|
+
protoOf(CountedByteReadChannel).h3x = awaitContent$default;
|
|
3510
|
+
protoOf(SourceByteReadChannel).h3x = awaitContent$default;
|
|
3511
3511
|
protoOf(DefaultPool).j4 = close;
|
|
3512
3512
|
protoOf(NoPoolImpl).j4 = close;
|
|
3513
3513
|
//endregion
|