@dmarket/p2p-tracker-headless 1.1.0-beta → 1.2.0-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dmarket-p2p-tracker-core-domain.mjs +5603 -4360
- package/dmarket-p2p-tracker-core-domain.mjs.map +1 -1
- package/kotlin-kotlin-stdlib.mjs +3385 -2726
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlinx-atomicfu.mjs +13 -13
- package/kotlinx-coroutines-core.mjs +2869 -2866
- package/kotlinx-coroutines-core.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-bytestring.mjs +32 -32
- package/kotlinx-io-kotlinx-io-core.mjs +455 -455
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1889 -1888
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1666 -1654
- package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
- package/ktor-ktor-client-core.mjs +3008 -3008
- package/ktor-ktor-client-core.mjs.map +1 -1
- package/ktor-ktor-events.mjs +6 -6
- package/ktor-ktor-http-cio.mjs +482 -482
- package/ktor-ktor-http.mjs +663 -658
- package/ktor-ktor-http.mjs.map +1 -1
- package/ktor-ktor-io.mjs +1038 -1038
- package/ktor-ktor-io.mjs.map +1 -1
- package/ktor-ktor-utils.mjs +783 -783
- package/ktor-ktor-websockets.mjs +748 -748
- package/ktor-ktor-websockets.mjs.map +1 -1
- package/p2p-tracker-core.mjs +20883 -16668
- package/p2p-tracker-core.mjs.map +1 -1
- package/p2p-tracker-headless.mjs +1280 -1280
- package/package.json +1 -1
package/p2p-tracker-headless.mjs
CHANGED
|
@@ -294,44 +294,44 @@ function redacted($this, $receiver) {
|
|
|
294
294
|
tmp = $receiver;
|
|
295
295
|
} else {
|
|
296
296
|
if ($receiver instanceof SessionClosed) {
|
|
297
|
-
var tmp1_safe_receiver = $receiver.
|
|
297
|
+
var tmp1_safe_receiver = $receiver.qbe_1;
|
|
298
298
|
var tmp_0;
|
|
299
299
|
if (tmp1_safe_receiver == null) {
|
|
300
300
|
tmp_0 = null;
|
|
301
301
|
} else {
|
|
302
302
|
// Inline function 'kotlin.let' call
|
|
303
|
-
tmp_0 = ProverOutput_getInstance().
|
|
303
|
+
tmp_0 = ProverOutput_getInstance().s7b(tmp1_safe_receiver);
|
|
304
304
|
}
|
|
305
|
-
tmp = $receiver.
|
|
305
|
+
tmp = $receiver.sbf(VOID, tmp_0);
|
|
306
306
|
} else {
|
|
307
307
|
if ($receiver instanceof NotaryUnreachable) {
|
|
308
|
-
tmp = $receiver.
|
|
308
|
+
tmp = $receiver.tbf(ProverOutput_getInstance().s7b($receiver.tbe_1));
|
|
309
309
|
} else {
|
|
310
310
|
if ($receiver instanceof VersionMismatch) {
|
|
311
|
-
tmp = $receiver.
|
|
311
|
+
tmp = $receiver.tbf(ProverOutput_getInstance().s7b($receiver.wbe_1));
|
|
312
312
|
} else {
|
|
313
313
|
if ($receiver instanceof SteamFailed) {
|
|
314
|
-
tmp = $receiver.
|
|
314
|
+
tmp = $receiver.vbf(VOID, ProverOutput_getInstance().s7b($receiver.abf_1));
|
|
315
315
|
} else {
|
|
316
316
|
if ($receiver instanceof LimitsExceeded) {
|
|
317
|
-
tmp = $receiver.
|
|
317
|
+
tmp = $receiver.tbf(ProverOutput_getInstance().s7b($receiver.dbf_1));
|
|
318
318
|
} else {
|
|
319
319
|
if ($receiver instanceof ProverKilled) {
|
|
320
|
-
var tmp2_safe_receiver = $receiver.
|
|
320
|
+
var tmp2_safe_receiver = $receiver.jbf_1;
|
|
321
321
|
var tmp_1;
|
|
322
322
|
if (tmp2_safe_receiver == null) {
|
|
323
323
|
tmp_1 = null;
|
|
324
324
|
} else {
|
|
325
325
|
// Inline function 'kotlin.let' call
|
|
326
|
-
tmp_1 = ProverOutput_getInstance().
|
|
326
|
+
tmp_1 = ProverOutput_getInstance().s7b(tmp2_safe_receiver);
|
|
327
327
|
}
|
|
328
|
-
tmp = $receiver.
|
|
328
|
+
tmp = $receiver.abg(VOID, tmp_1);
|
|
329
329
|
} else {
|
|
330
330
|
if ($receiver instanceof NotStarted) {
|
|
331
|
-
tmp = $receiver.
|
|
331
|
+
tmp = $receiver.tbf(ProverOutput_getInstance().s7b($receiver.mbf_1));
|
|
332
332
|
} else {
|
|
333
333
|
if ($receiver instanceof Other) {
|
|
334
|
-
tmp = $receiver.
|
|
334
|
+
tmp = $receiver.tbf(ProverOutput_getInstance().s7b($receiver.pbf_1));
|
|
335
335
|
} else {
|
|
336
336
|
noWhenBranchMatchedException();
|
|
337
337
|
}
|
|
@@ -346,20 +346,20 @@ function redacted($this, $receiver) {
|
|
|
346
346
|
return tmp;
|
|
347
347
|
}
|
|
348
348
|
function ProofOutcomeJson$json$lambda($this$Json) {
|
|
349
|
-
$this$Json.
|
|
350
|
-
$this$Json.
|
|
349
|
+
$this$Json.o54_1 = 'type';
|
|
350
|
+
$this$Json.h54_1 = true;
|
|
351
351
|
return Unit_instance;
|
|
352
352
|
}
|
|
353
353
|
function ProofOutcomeJson() {
|
|
354
354
|
ProofOutcomeJson_instance = this;
|
|
355
355
|
var tmp = this;
|
|
356
|
-
tmp.
|
|
356
|
+
tmp.ncj_1 = Json(VOID, ProofOutcomeJson$json$lambda);
|
|
357
357
|
}
|
|
358
|
-
protoOf(ProofOutcomeJson).
|
|
359
|
-
var fields = get_jsonObject(this.
|
|
360
|
-
return (new JsonObject(plus(fields, to('summary', JsonPrimitive(ProverOutput_getInstance().
|
|
358
|
+
protoOf(ProofOutcomeJson).ocj = function (failure) {
|
|
359
|
+
var fields = get_jsonObject(this.ncj_1.q53(Companion_instance_0.d56(), redacted(this, failure)));
|
|
360
|
+
return (new JsonObject(plus(fields, to('summary', JsonPrimitive(ProverOutput_getInstance().s7b(failure.qbf())))))).toString();
|
|
361
361
|
};
|
|
362
|
-
protoOf(ProofOutcomeJson).
|
|
362
|
+
protoOf(ProofOutcomeJson).pcj = function (message, warning, fields) {
|
|
363
363
|
var head = listOf([to('msg', JsonPrimitive(message)), to('level', JsonPrimitive(warning ? 'warn' : 'info'))]);
|
|
364
364
|
// Inline function 'kotlin.collections.map' call
|
|
365
365
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -367,8 +367,8 @@ protoOf(ProofOutcomeJson).mbx = function (message, warning, fields) {
|
|
|
367
367
|
var _iterator__ex2g4s = fields.t();
|
|
368
368
|
while (_iterator__ex2g4s.u()) {
|
|
369
369
|
var item = _iterator__ex2g4s.v();
|
|
370
|
-
var key = item.
|
|
371
|
-
var value = item.
|
|
370
|
+
var key = item.gh();
|
|
371
|
+
var value = item.hh();
|
|
372
372
|
var tmp;
|
|
373
373
|
if (value == null) {
|
|
374
374
|
tmp = null;
|
|
@@ -390,7 +390,7 @@ function ProofOutcomeJson_getInstance() {
|
|
|
390
390
|
return ProofOutcomeJson_instance;
|
|
391
391
|
}
|
|
392
392
|
function backoff($this, consecutive) {
|
|
393
|
-
var wait = $this.
|
|
393
|
+
var wait = $this.wcj_1;
|
|
394
394
|
// Inline function 'kotlin.repeat' call
|
|
395
395
|
var times = coerceIn(consecutive, 0, 10);
|
|
396
396
|
var inductionVariable = 0;
|
|
@@ -401,39 +401,39 @@ function backoff($this, consecutive) {
|
|
|
401
401
|
wait = Duration__times_impl_sfuzvp(wait, 2);
|
|
402
402
|
}
|
|
403
403
|
while (inductionVariable < times);
|
|
404
|
-
return minOf(new Duration(wait), new Duration($this.
|
|
404
|
+
return minOf(new Duration(wait), new Duration($this.xcj_1)).lf_1;
|
|
405
405
|
}
|
|
406
406
|
function Companion() {
|
|
407
407
|
Companion_instance_2 = this;
|
|
408
|
-
this.
|
|
409
|
-
this.
|
|
410
|
-
this.
|
|
411
|
-
this.
|
|
412
|
-
this.
|
|
413
|
-
this.
|
|
408
|
+
this.qcj_1 = 401;
|
|
409
|
+
this.rcj_1 = 403;
|
|
410
|
+
this.scj_1 = numberRangeToNumber(500, 599);
|
|
411
|
+
this.tcj_1 = 1013;
|
|
412
|
+
this.ucj_1 = 4029;
|
|
413
|
+
this.vcj_1 = 10;
|
|
414
414
|
var tmp = this;
|
|
415
415
|
// Inline function 'kotlin.time.Companion.seconds' call
|
|
416
416
|
Companion_getInstance();
|
|
417
|
-
tmp.
|
|
417
|
+
tmp.wcj_1 = toDuration(30, DurationUnit_SECONDS_getInstance());
|
|
418
418
|
var tmp_0 = this;
|
|
419
419
|
// Inline function 'kotlin.time.Companion.minutes' call
|
|
420
420
|
Companion_getInstance();
|
|
421
|
-
tmp_0.
|
|
421
|
+
tmp_0.xcj_1 = toDuration(5, DurationUnit_MINUTES_getInstance());
|
|
422
422
|
var tmp_1 = this;
|
|
423
423
|
// Inline function 'kotlin.time.Companion.seconds' call
|
|
424
424
|
Companion_getInstance();
|
|
425
|
-
tmp_1.
|
|
425
|
+
tmp_1.ycj_1 = toDuration(60, DurationUnit_SECONDS_getInstance());
|
|
426
426
|
}
|
|
427
|
-
protoOf(Companion).
|
|
427
|
+
protoOf(Companion).zcj = function (failure, consecutive) {
|
|
428
428
|
var tmp;
|
|
429
429
|
if (failure instanceof UpgradeRefused) {
|
|
430
|
-
var tmp1_subject = failure.
|
|
430
|
+
var tmp1_subject = failure.mbe_1;
|
|
431
431
|
var tmp_0;
|
|
432
432
|
var tmp_1;
|
|
433
433
|
if (tmp1_subject === 401) {
|
|
434
434
|
tmp_1 = true;
|
|
435
435
|
} else {
|
|
436
|
-
var progression = this.
|
|
436
|
+
var progression = this.scj_1;
|
|
437
437
|
var containsLower = progression.s1_1;
|
|
438
438
|
tmp_1 = tmp1_subject <= progression.t1_1 ? containsLower <= tmp1_subject : false;
|
|
439
439
|
}
|
|
@@ -441,7 +441,7 @@ protoOf(Companion).wbx = function (failure, consecutive) {
|
|
|
441
441
|
tmp_0 = backoff(this, consecutive);
|
|
442
442
|
} else {
|
|
443
443
|
if (tmp1_subject === 403) {
|
|
444
|
-
tmp_0 = this.
|
|
444
|
+
tmp_0 = this.ycj_1;
|
|
445
445
|
} else {
|
|
446
446
|
tmp_0 = null;
|
|
447
447
|
}
|
|
@@ -449,12 +449,12 @@ protoOf(Companion).wbx = function (failure, consecutive) {
|
|
|
449
449
|
tmp = tmp_0;
|
|
450
450
|
} else {
|
|
451
451
|
if (failure instanceof SessionClosed) {
|
|
452
|
-
switch (failure.
|
|
452
|
+
switch (failure.pbe_1) {
|
|
453
453
|
case 1013:
|
|
454
454
|
tmp = backoff(this, consecutive);
|
|
455
455
|
break;
|
|
456
456
|
case 4029:
|
|
457
|
-
tmp = this.
|
|
457
|
+
tmp = this.ycj_1;
|
|
458
458
|
break;
|
|
459
459
|
default:
|
|
460
460
|
tmp = null;
|
|
@@ -465,7 +465,7 @@ protoOf(Companion).wbx = function (failure, consecutive) {
|
|
|
465
465
|
tmp = backoff(this, consecutive);
|
|
466
466
|
} else {
|
|
467
467
|
if (failure instanceof VersionMismatch) {
|
|
468
|
-
tmp = Companion_getInstance().
|
|
468
|
+
tmp = Companion_getInstance().nf_1;
|
|
469
469
|
} else {
|
|
470
470
|
tmp = null;
|
|
471
471
|
}
|
|
@@ -482,12 +482,12 @@ function Companion_getInstance_2() {
|
|
|
482
482
|
}
|
|
483
483
|
function ProverBackoff() {
|
|
484
484
|
Companion_getInstance_2();
|
|
485
|
-
this.
|
|
486
|
-
this.
|
|
487
|
-
this.
|
|
485
|
+
this.ack_1 = null;
|
|
486
|
+
this.bck_1 = 0;
|
|
487
|
+
this.cck_1 = null;
|
|
488
488
|
}
|
|
489
|
-
protoOf(ProverBackoff).
|
|
490
|
-
var tmp0_elvis_lhs = this.
|
|
489
|
+
protoOf(ProverBackoff).dck = function (now) {
|
|
490
|
+
var tmp0_elvis_lhs = this.ack_1;
|
|
491
491
|
var tmp;
|
|
492
492
|
if (tmp0_elvis_lhs == null) {
|
|
493
493
|
return null;
|
|
@@ -495,20 +495,20 @@ protoOf(ProverBackoff).aby = function (now) {
|
|
|
495
495
|
tmp = tmp0_elvis_lhs;
|
|
496
496
|
}
|
|
497
497
|
var until = tmp;
|
|
498
|
-
if (now.
|
|
498
|
+
if (now.nq(until) >= 0)
|
|
499
499
|
return null;
|
|
500
|
-
var tmp1_elvis_lhs = this.
|
|
500
|
+
var tmp1_elvis_lhs = this.cck_1;
|
|
501
501
|
var after = tmp1_elvis_lhs == null ? 'a refusal' : tmp1_elvis_lhs;
|
|
502
502
|
var tmp_0;
|
|
503
|
-
if (until.equals(Companion_getInstance_0().
|
|
503
|
+
if (until.equals(Companion_getInstance_0().gq())) {
|
|
504
504
|
tmp_0 = 'no proof until the SDK is updated, after ' + after;
|
|
505
505
|
} else {
|
|
506
506
|
tmp_0 = 'no proof until ' + until.toString() + ', after ' + after;
|
|
507
507
|
}
|
|
508
508
|
return tmp_0;
|
|
509
509
|
};
|
|
510
|
-
protoOf(ProverBackoff).
|
|
511
|
-
var tmp0_elvis_lhs = Companion_getInstance_2().
|
|
510
|
+
protoOf(ProverBackoff).eck = function (failure, now) {
|
|
511
|
+
var tmp0_elvis_lhs = Companion_getInstance_2().zcj(failure, this.bck_1);
|
|
512
512
|
var tmp;
|
|
513
513
|
var tmp_0 = tmp0_elvis_lhs;
|
|
514
514
|
if ((tmp_0 == null ? null : new Duration(tmp_0)) == null) {
|
|
@@ -517,24 +517,24 @@ protoOf(ProverBackoff).bby = function (failure, now) {
|
|
|
517
517
|
tmp = tmp0_elvis_lhs;
|
|
518
518
|
}
|
|
519
519
|
var wait = tmp;
|
|
520
|
-
this.
|
|
521
|
-
this.
|
|
522
|
-
this.
|
|
523
|
-
};
|
|
524
|
-
protoOf(ProverBackoff).
|
|
525
|
-
this.
|
|
526
|
-
this.
|
|
527
|
-
this.
|
|
528
|
-
};
|
|
529
|
-
protoOf(ProverBackoff).
|
|
530
|
-
if (!equals(this.
|
|
531
|
-
this.
|
|
520
|
+
this.bck_1 = this.bck_1 + 1 | 0;
|
|
521
|
+
this.cck_1 = failure.qbf();
|
|
522
|
+
this.ack_1 = equals(wait, Companion_getInstance().nf_1) ? Companion_getInstance_0().gq() : now.kq(wait);
|
|
523
|
+
};
|
|
524
|
+
protoOf(ProverBackoff).fck = function () {
|
|
525
|
+
this.ack_1 = null;
|
|
526
|
+
this.bck_1 = 0;
|
|
527
|
+
this.cck_1 = null;
|
|
528
|
+
};
|
|
529
|
+
protoOf(ProverBackoff).gck = function () {
|
|
530
|
+
if (!equals(this.ack_1, Companion_getInstance_0().gq())) {
|
|
531
|
+
this.fck();
|
|
532
532
|
}
|
|
533
533
|
};
|
|
534
534
|
function Companion_0() {
|
|
535
|
-
this.
|
|
536
|
-
this.
|
|
537
|
-
this.
|
|
535
|
+
this.hck_1 = 2;
|
|
536
|
+
this.ick_1 = 16;
|
|
537
|
+
this.jck_1 = 5;
|
|
538
538
|
}
|
|
539
539
|
var Companion_instance_3;
|
|
540
540
|
function Companion_getInstance_3() {
|
|
@@ -543,32 +543,32 @@ function Companion_getInstance_3() {
|
|
|
543
543
|
function $serializer() {
|
|
544
544
|
$serializer_instance = this;
|
|
545
545
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.dmarket.p2p.headless.prover.ProverSettings', this, 5);
|
|
546
|
-
tmp0_serialDesc.
|
|
547
|
-
tmp0_serialDesc.
|
|
548
|
-
tmp0_serialDesc.
|
|
549
|
-
tmp0_serialDesc.
|
|
550
|
-
tmp0_serialDesc.
|
|
551
|
-
this.
|
|
552
|
-
}
|
|
553
|
-
protoOf($serializer).
|
|
554
|
-
var tmp0_desc = this.
|
|
555
|
-
var tmp1_output = encoder.
|
|
556
|
-
tmp1_output.
|
|
557
|
-
tmp1_output.
|
|
558
|
-
tmp1_output.
|
|
559
|
-
if (tmp1_output.
|
|
560
|
-
tmp1_output.
|
|
546
|
+
tmp0_serialDesc.l2k('notaryUrl', false);
|
|
547
|
+
tmp0_serialDesc.l2k('threadCount', false);
|
|
548
|
+
tmp0_serialDesc.l2k('assetsDir', false);
|
|
549
|
+
tmp0_serialDesc.l2k('rootStorePem', true);
|
|
550
|
+
tmp0_serialDesc.l2k('targetAddress', true);
|
|
551
|
+
this.kck_1 = tmp0_serialDesc;
|
|
552
|
+
}
|
|
553
|
+
protoOf($serializer).lck = function (encoder, value) {
|
|
554
|
+
var tmp0_desc = this.kck_1;
|
|
555
|
+
var tmp1_output = encoder.v2c(tmp0_desc);
|
|
556
|
+
tmp1_output.k2e(tmp0_desc, 0, value.mck_1);
|
|
557
|
+
tmp1_output.f2e(tmp0_desc, 1, value.nck_1);
|
|
558
|
+
tmp1_output.k2e(tmp0_desc, 2, value.ock_1);
|
|
559
|
+
if (tmp1_output.s2e(tmp0_desc, 3) ? true : !(value.pck_1 == null)) {
|
|
560
|
+
tmp1_output.o2e(tmp0_desc, 3, StringSerializer_getInstance(), value.pck_1);
|
|
561
561
|
}
|
|
562
|
-
if (tmp1_output.
|
|
563
|
-
tmp1_output.
|
|
562
|
+
if (tmp1_output.s2e(tmp0_desc, 4) ? true : !(value.qck_1 == null)) {
|
|
563
|
+
tmp1_output.o2e(tmp0_desc, 4, StringSerializer_getInstance(), value.qck_1);
|
|
564
564
|
}
|
|
565
|
-
tmp1_output.
|
|
565
|
+
tmp1_output.w2c(tmp0_desc);
|
|
566
566
|
};
|
|
567
|
-
protoOf($serializer).
|
|
568
|
-
return this.
|
|
567
|
+
protoOf($serializer).n29 = function (encoder, value) {
|
|
568
|
+
return this.lck(encoder, value instanceof ProverSettings ? value : THROW_CCE());
|
|
569
569
|
};
|
|
570
|
-
protoOf($serializer).
|
|
571
|
-
var tmp0_desc = this.
|
|
570
|
+
protoOf($serializer).o29 = function (decoder) {
|
|
571
|
+
var tmp0_desc = this.kck_1;
|
|
572
572
|
var tmp1_flag = true;
|
|
573
573
|
var tmp2_index = 0;
|
|
574
574
|
var tmp3_bitMask0 = 0;
|
|
@@ -577,56 +577,56 @@ protoOf($serializer).c28 = function (decoder) {
|
|
|
577
577
|
var tmp6_local2 = null;
|
|
578
578
|
var tmp7_local3 = null;
|
|
579
579
|
var tmp8_local4 = null;
|
|
580
|
-
var tmp9_input = decoder.
|
|
581
|
-
if (tmp9_input.
|
|
582
|
-
tmp4_local0 = tmp9_input.
|
|
580
|
+
var tmp9_input = decoder.v2c(tmp0_desc);
|
|
581
|
+
if (tmp9_input.l2d()) {
|
|
582
|
+
tmp4_local0 = tmp9_input.f2d(tmp0_desc, 0);
|
|
583
583
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
584
|
-
tmp5_local1 = tmp9_input.
|
|
584
|
+
tmp5_local1 = tmp9_input.a2d(tmp0_desc, 1);
|
|
585
585
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
586
|
-
tmp6_local2 = tmp9_input.
|
|
586
|
+
tmp6_local2 = tmp9_input.f2d(tmp0_desc, 2);
|
|
587
587
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
588
|
-
tmp7_local3 = tmp9_input.
|
|
588
|
+
tmp7_local3 = tmp9_input.j2d(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
|
|
589
589
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
590
|
-
tmp8_local4 = tmp9_input.
|
|
590
|
+
tmp8_local4 = tmp9_input.j2d(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
|
|
591
591
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
592
592
|
} else
|
|
593
593
|
while (tmp1_flag) {
|
|
594
|
-
tmp2_index = tmp9_input.
|
|
594
|
+
tmp2_index = tmp9_input.m2d(tmp0_desc);
|
|
595
595
|
switch (tmp2_index) {
|
|
596
596
|
case -1:
|
|
597
597
|
tmp1_flag = false;
|
|
598
598
|
break;
|
|
599
599
|
case 0:
|
|
600
|
-
tmp4_local0 = tmp9_input.
|
|
600
|
+
tmp4_local0 = tmp9_input.f2d(tmp0_desc, 0);
|
|
601
601
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
602
602
|
break;
|
|
603
603
|
case 1:
|
|
604
|
-
tmp5_local1 = tmp9_input.
|
|
604
|
+
tmp5_local1 = tmp9_input.a2d(tmp0_desc, 1);
|
|
605
605
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
606
606
|
break;
|
|
607
607
|
case 2:
|
|
608
|
-
tmp6_local2 = tmp9_input.
|
|
608
|
+
tmp6_local2 = tmp9_input.f2d(tmp0_desc, 2);
|
|
609
609
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
610
610
|
break;
|
|
611
611
|
case 3:
|
|
612
|
-
tmp7_local3 = tmp9_input.
|
|
612
|
+
tmp7_local3 = tmp9_input.j2d(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
|
|
613
613
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
614
614
|
break;
|
|
615
615
|
case 4:
|
|
616
|
-
tmp8_local4 = tmp9_input.
|
|
616
|
+
tmp8_local4 = tmp9_input.j2d(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
|
|
617
617
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
618
618
|
break;
|
|
619
619
|
default:
|
|
620
620
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
621
621
|
}
|
|
622
622
|
}
|
|
623
|
-
tmp9_input.
|
|
623
|
+
tmp9_input.w2c(tmp0_desc);
|
|
624
624
|
return ProverSettings_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null);
|
|
625
625
|
};
|
|
626
|
-
protoOf($serializer).
|
|
627
|
-
return this.
|
|
626
|
+
protoOf($serializer).m29 = function () {
|
|
627
|
+
return this.kck_1;
|
|
628
628
|
};
|
|
629
|
-
protoOf($serializer).
|
|
629
|
+
protoOf($serializer).c2l = function () {
|
|
630
630
|
// Inline function 'kotlin.arrayOf' call
|
|
631
631
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
632
632
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -640,19 +640,19 @@ function $serializer_getInstance_0() {
|
|
|
640
640
|
}
|
|
641
641
|
function ProverSettings_init_$Init$(seen0, notaryUrl, threadCount, assetsDir, rootStorePem, targetAddress, serializationConstructorMarker, $this) {
|
|
642
642
|
if (!(7 === (7 & seen0))) {
|
|
643
|
-
throwMissingFieldException(seen0, 7, $serializer_getInstance_0().
|
|
643
|
+
throwMissingFieldException(seen0, 7, $serializer_getInstance_0().kck_1);
|
|
644
644
|
}
|
|
645
|
-
$this.
|
|
646
|
-
$this.
|
|
647
|
-
$this.
|
|
645
|
+
$this.mck_1 = notaryUrl;
|
|
646
|
+
$this.nck_1 = threadCount;
|
|
647
|
+
$this.ock_1 = assetsDir;
|
|
648
648
|
if (0 === (seen0 & 8))
|
|
649
|
-
$this.
|
|
649
|
+
$this.pck_1 = null;
|
|
650
650
|
else
|
|
651
|
-
$this.
|
|
651
|
+
$this.pck_1 = rootStorePem;
|
|
652
652
|
if (0 === (seen0 & 16))
|
|
653
|
-
$this.
|
|
653
|
+
$this.qck_1 = null;
|
|
654
654
|
else
|
|
655
|
-
$this.
|
|
655
|
+
$this.qck_1 = targetAddress;
|
|
656
656
|
return $this;
|
|
657
657
|
}
|
|
658
658
|
function ProverSettings_init_$Create$(seen0, notaryUrl, threadCount, assetsDir, rootStorePem, targetAddress, serializationConstructorMarker) {
|
|
@@ -661,21 +661,21 @@ function ProverSettings_init_$Create$(seen0, notaryUrl, threadCount, assetsDir,
|
|
|
661
661
|
function ProverSettings(notaryUrl, threadCount, assetsDir, rootStorePem, targetAddress) {
|
|
662
662
|
rootStorePem = rootStorePem === VOID ? null : rootStorePem;
|
|
663
663
|
targetAddress = targetAddress === VOID ? null : targetAddress;
|
|
664
|
-
this.
|
|
665
|
-
this.
|
|
666
|
-
this.
|
|
667
|
-
this.
|
|
668
|
-
this.
|
|
664
|
+
this.mck_1 = notaryUrl;
|
|
665
|
+
this.nck_1 = threadCount;
|
|
666
|
+
this.ock_1 = assetsDir;
|
|
667
|
+
this.pck_1 = rootStorePem;
|
|
668
|
+
this.qck_1 = targetAddress;
|
|
669
669
|
}
|
|
670
670
|
protoOf(ProverSettings).toString = function () {
|
|
671
|
-
return 'ProverSettings(notaryUrl=' + this.
|
|
671
|
+
return 'ProverSettings(notaryUrl=' + this.mck_1 + ', threadCount=' + this.nck_1 + ', assetsDir=' + this.ock_1 + ', rootStorePem=' + this.pck_1 + ', targetAddress=' + this.qck_1 + ')';
|
|
672
672
|
};
|
|
673
673
|
protoOf(ProverSettings).hashCode = function () {
|
|
674
|
-
var result = getStringHashCode(this.
|
|
675
|
-
result = imul(result, 31) + this.
|
|
676
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
677
|
-
result = imul(result, 31) + (this.
|
|
678
|
-
result = imul(result, 31) + (this.
|
|
674
|
+
var result = getStringHashCode(this.mck_1);
|
|
675
|
+
result = imul(result, 31) + this.nck_1 | 0;
|
|
676
|
+
result = imul(result, 31) + getStringHashCode(this.ock_1) | 0;
|
|
677
|
+
result = imul(result, 31) + (this.pck_1 == null ? 0 : getStringHashCode(this.pck_1)) | 0;
|
|
678
|
+
result = imul(result, 31) + (this.qck_1 == null ? 0 : getStringHashCode(this.qck_1)) | 0;
|
|
679
679
|
return result;
|
|
680
680
|
};
|
|
681
681
|
protoOf(ProverSettings).equals = function (other) {
|
|
@@ -683,40 +683,40 @@ protoOf(ProverSettings).equals = function (other) {
|
|
|
683
683
|
return true;
|
|
684
684
|
if (!(other instanceof ProverSettings))
|
|
685
685
|
return false;
|
|
686
|
-
if (!(this.
|
|
686
|
+
if (!(this.mck_1 === other.mck_1))
|
|
687
687
|
return false;
|
|
688
|
-
if (!(this.
|
|
688
|
+
if (!(this.nck_1 === other.nck_1))
|
|
689
689
|
return false;
|
|
690
|
-
if (!(this.
|
|
690
|
+
if (!(this.ock_1 === other.ock_1))
|
|
691
691
|
return false;
|
|
692
|
-
if (!(this.
|
|
692
|
+
if (!(this.pck_1 == other.pck_1))
|
|
693
693
|
return false;
|
|
694
|
-
if (!(this.
|
|
694
|
+
if (!(this.qck_1 == other.qck_1))
|
|
695
695
|
return false;
|
|
696
696
|
return true;
|
|
697
697
|
};
|
|
698
698
|
function ProverIpc$json$lambda($this$Json) {
|
|
699
|
-
$this$Json.
|
|
700
|
-
$this$Json.
|
|
701
|
-
$this$Json.
|
|
699
|
+
$this$Json.o54_1 = 'type';
|
|
700
|
+
$this$Json.j54_1 = true;
|
|
701
|
+
$this$Json.h54_1 = false;
|
|
702
702
|
return Unit_instance;
|
|
703
703
|
}
|
|
704
704
|
function ProverIpc() {
|
|
705
705
|
ProverIpc_instance = this;
|
|
706
706
|
var tmp = this;
|
|
707
|
-
tmp.
|
|
707
|
+
tmp.rck_1 = Json(VOID, ProverIpc$json$lambda);
|
|
708
708
|
}
|
|
709
|
-
protoOf(ProverIpc).
|
|
710
|
-
return this.
|
|
709
|
+
protoOf(ProverIpc).sck = function (message) {
|
|
710
|
+
return this.rck_1.o53(Companion_instance_6.d56(), message);
|
|
711
711
|
};
|
|
712
|
-
protoOf(ProverIpc).
|
|
713
|
-
return this.
|
|
712
|
+
protoOf(ProverIpc).tck = function (message) {
|
|
713
|
+
return this.rck_1.o53(Companion_instance_10.d56(), message);
|
|
714
714
|
};
|
|
715
|
-
protoOf(ProverIpc).
|
|
716
|
-
return this.
|
|
715
|
+
protoOf(ProverIpc).uck = function (text) {
|
|
716
|
+
return this.rck_1.p53(Companion_instance_6.d56(), text);
|
|
717
717
|
};
|
|
718
|
-
protoOf(ProverIpc).
|
|
719
|
-
return this.
|
|
718
|
+
protoOf(ProverIpc).vck = function (text) {
|
|
719
|
+
return this.rck_1.p53(Companion_instance_10.d56(), text);
|
|
720
720
|
};
|
|
721
721
|
var ProverIpc_instance;
|
|
722
722
|
function ProverIpc_getInstance() {
|
|
@@ -733,28 +733,28 @@ function Companion_getInstance_4() {
|
|
|
733
733
|
function $serializer_0() {
|
|
734
734
|
$serializer_instance_0 = this;
|
|
735
735
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('prove', this, 5);
|
|
736
|
-
tmp0_serialDesc.
|
|
737
|
-
tmp0_serialDesc.
|
|
738
|
-
tmp0_serialDesc.
|
|
739
|
-
tmp0_serialDesc.
|
|
740
|
-
tmp0_serialDesc.
|
|
741
|
-
this.
|
|
742
|
-
}
|
|
743
|
-
protoOf($serializer_0).
|
|
744
|
-
var tmp0_desc = this.
|
|
745
|
-
var tmp1_output = encoder.
|
|
746
|
-
tmp1_output.
|
|
747
|
-
tmp1_output.
|
|
748
|
-
tmp1_output.
|
|
749
|
-
tmp1_output.
|
|
750
|
-
tmp1_output.
|
|
751
|
-
tmp1_output.
|
|
752
|
-
};
|
|
753
|
-
protoOf($serializer_0).
|
|
754
|
-
return this.
|
|
755
|
-
};
|
|
756
|
-
protoOf($serializer_0).
|
|
757
|
-
var tmp0_desc = this.
|
|
736
|
+
tmp0_serialDesc.l2k('id', false);
|
|
737
|
+
tmp0_serialDesc.l2k('request', false);
|
|
738
|
+
tmp0_serialDesc.l2k('steamAccessToken', false);
|
|
739
|
+
tmp0_serialDesc.l2k('steamSessionId', false);
|
|
740
|
+
tmp0_serialDesc.l2k('settings', false);
|
|
741
|
+
this.wck_1 = tmp0_serialDesc;
|
|
742
|
+
}
|
|
743
|
+
protoOf($serializer_0).xck = function (encoder, value) {
|
|
744
|
+
var tmp0_desc = this.wck_1;
|
|
745
|
+
var tmp1_output = encoder.v2c(tmp0_desc);
|
|
746
|
+
tmp1_output.f2e(tmp0_desc, 0, value.yck_1);
|
|
747
|
+
tmp1_output.m2e(tmp0_desc, 1, $serializer_getInstance(), value.zck_1);
|
|
748
|
+
tmp1_output.k2e(tmp0_desc, 2, value.acl_1);
|
|
749
|
+
tmp1_output.k2e(tmp0_desc, 3, value.bcl_1);
|
|
750
|
+
tmp1_output.m2e(tmp0_desc, 4, $serializer_getInstance_0(), value.ccl_1);
|
|
751
|
+
tmp1_output.w2c(tmp0_desc);
|
|
752
|
+
};
|
|
753
|
+
protoOf($serializer_0).n29 = function (encoder, value) {
|
|
754
|
+
return this.xck(encoder, value instanceof Prove ? value : THROW_CCE());
|
|
755
|
+
};
|
|
756
|
+
protoOf($serializer_0).o29 = function (decoder) {
|
|
757
|
+
var tmp0_desc = this.wck_1;
|
|
758
758
|
var tmp1_flag = true;
|
|
759
759
|
var tmp2_index = 0;
|
|
760
760
|
var tmp3_bitMask0 = 0;
|
|
@@ -763,56 +763,56 @@ protoOf($serializer_0).c28 = function (decoder) {
|
|
|
763
763
|
var tmp6_local2 = null;
|
|
764
764
|
var tmp7_local3 = null;
|
|
765
765
|
var tmp8_local4 = null;
|
|
766
|
-
var tmp9_input = decoder.
|
|
767
|
-
if (tmp9_input.
|
|
768
|
-
tmp4_local0 = tmp9_input.
|
|
766
|
+
var tmp9_input = decoder.v2c(tmp0_desc);
|
|
767
|
+
if (tmp9_input.l2d()) {
|
|
768
|
+
tmp4_local0 = tmp9_input.a2d(tmp0_desc, 0);
|
|
769
769
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
770
|
-
tmp5_local1 = tmp9_input.
|
|
770
|
+
tmp5_local1 = tmp9_input.h2d(tmp0_desc, 1, $serializer_getInstance(), tmp5_local1);
|
|
771
771
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
772
|
-
tmp6_local2 = tmp9_input.
|
|
772
|
+
tmp6_local2 = tmp9_input.f2d(tmp0_desc, 2);
|
|
773
773
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
774
|
-
tmp7_local3 = tmp9_input.
|
|
774
|
+
tmp7_local3 = tmp9_input.f2d(tmp0_desc, 3);
|
|
775
775
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
776
|
-
tmp8_local4 = tmp9_input.
|
|
776
|
+
tmp8_local4 = tmp9_input.h2d(tmp0_desc, 4, $serializer_getInstance_0(), tmp8_local4);
|
|
777
777
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
778
778
|
} else
|
|
779
779
|
while (tmp1_flag) {
|
|
780
|
-
tmp2_index = tmp9_input.
|
|
780
|
+
tmp2_index = tmp9_input.m2d(tmp0_desc);
|
|
781
781
|
switch (tmp2_index) {
|
|
782
782
|
case -1:
|
|
783
783
|
tmp1_flag = false;
|
|
784
784
|
break;
|
|
785
785
|
case 0:
|
|
786
|
-
tmp4_local0 = tmp9_input.
|
|
786
|
+
tmp4_local0 = tmp9_input.a2d(tmp0_desc, 0);
|
|
787
787
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
788
788
|
break;
|
|
789
789
|
case 1:
|
|
790
|
-
tmp5_local1 = tmp9_input.
|
|
790
|
+
tmp5_local1 = tmp9_input.h2d(tmp0_desc, 1, $serializer_getInstance(), tmp5_local1);
|
|
791
791
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
792
792
|
break;
|
|
793
793
|
case 2:
|
|
794
|
-
tmp6_local2 = tmp9_input.
|
|
794
|
+
tmp6_local2 = tmp9_input.f2d(tmp0_desc, 2);
|
|
795
795
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
796
796
|
break;
|
|
797
797
|
case 3:
|
|
798
|
-
tmp7_local3 = tmp9_input.
|
|
798
|
+
tmp7_local3 = tmp9_input.f2d(tmp0_desc, 3);
|
|
799
799
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
800
800
|
break;
|
|
801
801
|
case 4:
|
|
802
|
-
tmp8_local4 = tmp9_input.
|
|
802
|
+
tmp8_local4 = tmp9_input.h2d(tmp0_desc, 4, $serializer_getInstance_0(), tmp8_local4);
|
|
803
803
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
804
804
|
break;
|
|
805
805
|
default:
|
|
806
806
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
807
807
|
}
|
|
808
808
|
}
|
|
809
|
-
tmp9_input.
|
|
809
|
+
tmp9_input.w2c(tmp0_desc);
|
|
810
810
|
return Prove_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null);
|
|
811
811
|
};
|
|
812
|
-
protoOf($serializer_0).
|
|
813
|
-
return this.
|
|
812
|
+
protoOf($serializer_0).m29 = function () {
|
|
813
|
+
return this.wck_1;
|
|
814
814
|
};
|
|
815
|
-
protoOf($serializer_0).
|
|
815
|
+
protoOf($serializer_0).c2l = function () {
|
|
816
816
|
// Inline function 'kotlin.arrayOf' call
|
|
817
817
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
818
818
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -826,13 +826,13 @@ function $serializer_getInstance_1() {
|
|
|
826
826
|
}
|
|
827
827
|
function Prove_init_$Init$(seen0, id, request, steamAccessToken, steamSessionId, settings, serializationConstructorMarker, $this) {
|
|
828
828
|
if (!(31 === (31 & seen0))) {
|
|
829
|
-
throwMissingFieldException(seen0, 31, $serializer_getInstance_1().
|
|
829
|
+
throwMissingFieldException(seen0, 31, $serializer_getInstance_1().wck_1);
|
|
830
830
|
}
|
|
831
|
-
$this.
|
|
832
|
-
$this.
|
|
833
|
-
$this.
|
|
834
|
-
$this.
|
|
835
|
-
$this.
|
|
831
|
+
$this.yck_1 = id;
|
|
832
|
+
$this.zck_1 = request;
|
|
833
|
+
$this.acl_1 = steamAccessToken;
|
|
834
|
+
$this.bcl_1 = steamSessionId;
|
|
835
|
+
$this.ccl_1 = settings;
|
|
836
836
|
return $this;
|
|
837
837
|
}
|
|
838
838
|
function Prove_init_$Create$(seen0, id, request, steamAccessToken, steamSessionId, settings, serializationConstructorMarker) {
|
|
@@ -848,7 +848,7 @@ function Companion_2() {
|
|
|
848
848
|
// Inline function 'kotlin.arrayOf' call
|
|
849
849
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
850
850
|
// Inline function 'kotlin.js.asDynamic' call
|
|
851
|
-
tmp.
|
|
851
|
+
tmp.dcl_1 = [null, lazy(tmp_0, ToChild$Headers$Companion$$childSerializers$_anonymous__tbifd3), null];
|
|
852
852
|
}
|
|
853
853
|
var Companion_instance_5;
|
|
854
854
|
function Companion_getInstance_5() {
|
|
@@ -859,75 +859,75 @@ function Companion_getInstance_5() {
|
|
|
859
859
|
function $serializer_1() {
|
|
860
860
|
$serializer_instance_1 = this;
|
|
861
861
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('headers', this, 3);
|
|
862
|
-
tmp0_serialDesc.
|
|
863
|
-
tmp0_serialDesc.
|
|
864
|
-
tmp0_serialDesc.
|
|
865
|
-
this.
|
|
866
|
-
}
|
|
867
|
-
protoOf($serializer_1).
|
|
868
|
-
var tmp0_desc = this.
|
|
869
|
-
var tmp1_output = encoder.
|
|
870
|
-
var tmp2_cached = Companion_getInstance_5().
|
|
871
|
-
tmp1_output.
|
|
872
|
-
if (tmp1_output.
|
|
873
|
-
tmp1_output.
|
|
862
|
+
tmp0_serialDesc.l2k('id', false);
|
|
863
|
+
tmp0_serialDesc.l2k('headers', true);
|
|
864
|
+
tmp0_serialDesc.l2k('error', true);
|
|
865
|
+
this.ecl_1 = tmp0_serialDesc;
|
|
866
|
+
}
|
|
867
|
+
protoOf($serializer_1).fcl = function (encoder, value) {
|
|
868
|
+
var tmp0_desc = this.ecl_1;
|
|
869
|
+
var tmp1_output = encoder.v2c(tmp0_desc);
|
|
870
|
+
var tmp2_cached = Companion_getInstance_5().dcl_1;
|
|
871
|
+
tmp1_output.f2e(tmp0_desc, 0, value.gcl_1);
|
|
872
|
+
if (tmp1_output.s2e(tmp0_desc, 1) ? true : !(value.hcl_1 == null)) {
|
|
873
|
+
tmp1_output.o2e(tmp0_desc, 1, tmp2_cached[1].p1(), value.hcl_1);
|
|
874
874
|
}
|
|
875
|
-
if (tmp1_output.
|
|
876
|
-
tmp1_output.
|
|
875
|
+
if (tmp1_output.s2e(tmp0_desc, 2) ? true : !(value.icl_1 == null)) {
|
|
876
|
+
tmp1_output.o2e(tmp0_desc, 2, StringSerializer_getInstance(), value.icl_1);
|
|
877
877
|
}
|
|
878
|
-
tmp1_output.
|
|
878
|
+
tmp1_output.w2c(tmp0_desc);
|
|
879
879
|
};
|
|
880
|
-
protoOf($serializer_1).
|
|
881
|
-
return this.
|
|
880
|
+
protoOf($serializer_1).n29 = function (encoder, value) {
|
|
881
|
+
return this.fcl(encoder, value instanceof Headers ? value : THROW_CCE());
|
|
882
882
|
};
|
|
883
|
-
protoOf($serializer_1).
|
|
884
|
-
var tmp0_desc = this.
|
|
883
|
+
protoOf($serializer_1).o29 = function (decoder) {
|
|
884
|
+
var tmp0_desc = this.ecl_1;
|
|
885
885
|
var tmp1_flag = true;
|
|
886
886
|
var tmp2_index = 0;
|
|
887
887
|
var tmp3_bitMask0 = 0;
|
|
888
888
|
var tmp4_local0 = 0;
|
|
889
889
|
var tmp5_local1 = null;
|
|
890
890
|
var tmp6_local2 = null;
|
|
891
|
-
var tmp7_input = decoder.
|
|
892
|
-
var tmp8_cached = Companion_getInstance_5().
|
|
893
|
-
if (tmp7_input.
|
|
894
|
-
tmp4_local0 = tmp7_input.
|
|
891
|
+
var tmp7_input = decoder.v2c(tmp0_desc);
|
|
892
|
+
var tmp8_cached = Companion_getInstance_5().dcl_1;
|
|
893
|
+
if (tmp7_input.l2d()) {
|
|
894
|
+
tmp4_local0 = tmp7_input.a2d(tmp0_desc, 0);
|
|
895
895
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
896
|
-
tmp5_local1 = tmp7_input.
|
|
896
|
+
tmp5_local1 = tmp7_input.j2d(tmp0_desc, 1, tmp8_cached[1].p1(), tmp5_local1);
|
|
897
897
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
898
|
-
tmp6_local2 = tmp7_input.
|
|
898
|
+
tmp6_local2 = tmp7_input.j2d(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
899
899
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
900
900
|
} else
|
|
901
901
|
while (tmp1_flag) {
|
|
902
|
-
tmp2_index = tmp7_input.
|
|
902
|
+
tmp2_index = tmp7_input.m2d(tmp0_desc);
|
|
903
903
|
switch (tmp2_index) {
|
|
904
904
|
case -1:
|
|
905
905
|
tmp1_flag = false;
|
|
906
906
|
break;
|
|
907
907
|
case 0:
|
|
908
|
-
tmp4_local0 = tmp7_input.
|
|
908
|
+
tmp4_local0 = tmp7_input.a2d(tmp0_desc, 0);
|
|
909
909
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
910
910
|
break;
|
|
911
911
|
case 1:
|
|
912
|
-
tmp5_local1 = tmp7_input.
|
|
912
|
+
tmp5_local1 = tmp7_input.j2d(tmp0_desc, 1, tmp8_cached[1].p1(), tmp5_local1);
|
|
913
913
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
914
914
|
break;
|
|
915
915
|
case 2:
|
|
916
|
-
tmp6_local2 = tmp7_input.
|
|
916
|
+
tmp6_local2 = tmp7_input.j2d(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
917
917
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
918
918
|
break;
|
|
919
919
|
default:
|
|
920
920
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
921
921
|
}
|
|
922
922
|
}
|
|
923
|
-
tmp7_input.
|
|
923
|
+
tmp7_input.w2c(tmp0_desc);
|
|
924
924
|
return Headers_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
925
925
|
};
|
|
926
|
-
protoOf($serializer_1).
|
|
927
|
-
return this.
|
|
926
|
+
protoOf($serializer_1).m29 = function () {
|
|
927
|
+
return this.ecl_1;
|
|
928
928
|
};
|
|
929
|
-
protoOf($serializer_1).
|
|
930
|
-
var tmp0_cached = Companion_getInstance_5().
|
|
929
|
+
protoOf($serializer_1).c2l = function () {
|
|
930
|
+
var tmp0_cached = Companion_getInstance_5().dcl_1;
|
|
931
931
|
// Inline function 'kotlin.arrayOf' call
|
|
932
932
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
933
933
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -941,38 +941,38 @@ function $serializer_getInstance_2() {
|
|
|
941
941
|
}
|
|
942
942
|
function Headers_init_$Init$(seen0, id, headers, error, serializationConstructorMarker, $this) {
|
|
943
943
|
if (!(1 === (1 & seen0))) {
|
|
944
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_2().
|
|
944
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_2().ecl_1);
|
|
945
945
|
}
|
|
946
|
-
$this.
|
|
946
|
+
$this.gcl_1 = id;
|
|
947
947
|
if (0 === (seen0 & 2))
|
|
948
|
-
$this.
|
|
948
|
+
$this.hcl_1 = null;
|
|
949
949
|
else
|
|
950
|
-
$this.
|
|
950
|
+
$this.hcl_1 = headers;
|
|
951
951
|
if (0 === (seen0 & 4))
|
|
952
|
-
$this.
|
|
952
|
+
$this.icl_1 = null;
|
|
953
953
|
else
|
|
954
|
-
$this.
|
|
954
|
+
$this.icl_1 = error;
|
|
955
955
|
return $this;
|
|
956
956
|
}
|
|
957
957
|
function Headers_init_$Create$(seen0, id, headers, error, serializationConstructorMarker) {
|
|
958
958
|
return Headers_init_$Init$(seen0, id, headers, error, serializationConstructorMarker, objectCreate(protoOf(Headers)));
|
|
959
959
|
}
|
|
960
960
|
function Prove(id, request, steamAccessToken, steamSessionId, settings) {
|
|
961
|
-
this.
|
|
962
|
-
this.
|
|
963
|
-
this.
|
|
964
|
-
this.
|
|
965
|
-
this.
|
|
961
|
+
this.yck_1 = id;
|
|
962
|
+
this.zck_1 = request;
|
|
963
|
+
this.acl_1 = steamAccessToken;
|
|
964
|
+
this.bcl_1 = steamSessionId;
|
|
965
|
+
this.ccl_1 = settings;
|
|
966
966
|
}
|
|
967
967
|
protoOf(Prove).toString = function () {
|
|
968
|
-
return 'Prove(id=' + this.
|
|
968
|
+
return 'Prove(id=' + this.yck_1 + ', request=' + this.zck_1.toString() + ', steamAccessToken=<redacted>, steamSessionId=<redacted>)';
|
|
969
969
|
};
|
|
970
970
|
protoOf(Prove).hashCode = function () {
|
|
971
|
-
var result = this.
|
|
972
|
-
result = imul(result, 31) + this.
|
|
973
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
974
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
975
|
-
result = imul(result, 31) + this.
|
|
971
|
+
var result = this.yck_1;
|
|
972
|
+
result = imul(result, 31) + this.zck_1.hashCode() | 0;
|
|
973
|
+
result = imul(result, 31) + getStringHashCode(this.acl_1) | 0;
|
|
974
|
+
result = imul(result, 31) + getStringHashCode(this.bcl_1) | 0;
|
|
975
|
+
result = imul(result, 31) + this.ccl_1.hashCode() | 0;
|
|
976
976
|
return result;
|
|
977
977
|
};
|
|
978
978
|
protoOf(Prove).equals = function (other) {
|
|
@@ -980,15 +980,15 @@ protoOf(Prove).equals = function (other) {
|
|
|
980
980
|
return true;
|
|
981
981
|
if (!(other instanceof Prove))
|
|
982
982
|
return false;
|
|
983
|
-
if (!(this.
|
|
983
|
+
if (!(this.yck_1 === other.yck_1))
|
|
984
984
|
return false;
|
|
985
|
-
if (!this.
|
|
985
|
+
if (!this.zck_1.equals(other.zck_1))
|
|
986
986
|
return false;
|
|
987
|
-
if (!(this.
|
|
987
|
+
if (!(this.acl_1 === other.acl_1))
|
|
988
988
|
return false;
|
|
989
|
-
if (!(this.
|
|
989
|
+
if (!(this.bcl_1 === other.bcl_1))
|
|
990
990
|
return false;
|
|
991
|
-
if (!this.
|
|
991
|
+
if (!this.ccl_1.equals(other.ccl_1))
|
|
992
992
|
return false;
|
|
993
993
|
return true;
|
|
994
994
|
};
|
|
@@ -996,18 +996,18 @@ function Headers(id, headers, error) {
|
|
|
996
996
|
Companion_getInstance_5();
|
|
997
997
|
headers = headers === VOID ? null : headers;
|
|
998
998
|
error = error === VOID ? null : error;
|
|
999
|
-
this.
|
|
1000
|
-
this.
|
|
1001
|
-
this.
|
|
999
|
+
this.gcl_1 = id;
|
|
1000
|
+
this.hcl_1 = headers;
|
|
1001
|
+
this.icl_1 = error;
|
|
1002
1002
|
}
|
|
1003
1003
|
protoOf(Headers).toString = function () {
|
|
1004
|
-
var tmp0_safe_receiver = this.
|
|
1005
|
-
return 'Headers(id=' + this.
|
|
1004
|
+
var tmp0_safe_receiver = this.hcl_1;
|
|
1005
|
+
return 'Headers(id=' + this.gcl_1 + ', headers=' + toString(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.y2()) + ': <redacted>, error=' + this.icl_1 + ')';
|
|
1006
1006
|
};
|
|
1007
1007
|
protoOf(Headers).hashCode = function () {
|
|
1008
|
-
var result = this.
|
|
1009
|
-
result = imul(result, 31) + (this.
|
|
1010
|
-
result = imul(result, 31) + (this.
|
|
1008
|
+
var result = this.gcl_1;
|
|
1009
|
+
result = imul(result, 31) + (this.hcl_1 == null ? 0 : hashCode(this.hcl_1)) | 0;
|
|
1010
|
+
result = imul(result, 31) + (this.icl_1 == null ? 0 : getStringHashCode(this.icl_1)) | 0;
|
|
1011
1011
|
return result;
|
|
1012
1012
|
};
|
|
1013
1013
|
protoOf(Headers).equals = function (other) {
|
|
@@ -1015,17 +1015,17 @@ protoOf(Headers).equals = function (other) {
|
|
|
1015
1015
|
return true;
|
|
1016
1016
|
if (!(other instanceof Headers))
|
|
1017
1017
|
return false;
|
|
1018
|
-
if (!(this.
|
|
1018
|
+
if (!(this.gcl_1 === other.gcl_1))
|
|
1019
1019
|
return false;
|
|
1020
|
-
if (!equals(this.
|
|
1020
|
+
if (!equals(this.hcl_1, other.hcl_1))
|
|
1021
1021
|
return false;
|
|
1022
|
-
if (!(this.
|
|
1022
|
+
if (!(this.icl_1 == other.icl_1))
|
|
1023
1023
|
return false;
|
|
1024
1024
|
return true;
|
|
1025
1025
|
};
|
|
1026
1026
|
function Companion_3() {
|
|
1027
1027
|
}
|
|
1028
|
-
protoOf(Companion_3).
|
|
1028
|
+
protoOf(Companion_3).d56 = function () {
|
|
1029
1029
|
var tmp = getKClass(ToChild);
|
|
1030
1030
|
// Inline function 'kotlin.arrayOf' call
|
|
1031
1031
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
@@ -1041,8 +1041,8 @@ protoOf(Companion_3).r54 = function () {
|
|
|
1041
1041
|
var tmp$ret$6 = [];
|
|
1042
1042
|
return SealedClassSerializer_init_$Create$('com.dmarket.p2p.headless.prover.ToChild', tmp, tmp_0, tmp_1, tmp$ret$6);
|
|
1043
1043
|
};
|
|
1044
|
-
protoOf(Companion_3).
|
|
1045
|
-
return this.
|
|
1044
|
+
protoOf(Companion_3).n2l = function (typeParamsSerializers) {
|
|
1045
|
+
return this.d56();
|
|
1046
1046
|
};
|
|
1047
1047
|
var Companion_instance_6;
|
|
1048
1048
|
function Companion_getInstance_6() {
|
|
@@ -1059,50 +1059,50 @@ function Companion_getInstance_7() {
|
|
|
1059
1059
|
function $serializer_2() {
|
|
1060
1060
|
$serializer_instance_2 = this;
|
|
1061
1061
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('headers_wanted', this, 1);
|
|
1062
|
-
tmp0_serialDesc.
|
|
1063
|
-
this.
|
|
1062
|
+
tmp0_serialDesc.l2k('id', false);
|
|
1063
|
+
this.jcl_1 = tmp0_serialDesc;
|
|
1064
1064
|
}
|
|
1065
|
-
protoOf($serializer_2).
|
|
1066
|
-
var tmp0_desc = this.
|
|
1067
|
-
var tmp1_output = encoder.
|
|
1068
|
-
tmp1_output.
|
|
1069
|
-
tmp1_output.
|
|
1065
|
+
protoOf($serializer_2).kcl = function (encoder, value) {
|
|
1066
|
+
var tmp0_desc = this.jcl_1;
|
|
1067
|
+
var tmp1_output = encoder.v2c(tmp0_desc);
|
|
1068
|
+
tmp1_output.f2e(tmp0_desc, 0, value.lcl_1);
|
|
1069
|
+
tmp1_output.w2c(tmp0_desc);
|
|
1070
1070
|
};
|
|
1071
|
-
protoOf($serializer_2).
|
|
1072
|
-
return this.
|
|
1071
|
+
protoOf($serializer_2).n29 = function (encoder, value) {
|
|
1072
|
+
return this.kcl(encoder, value instanceof HeadersWanted ? value : THROW_CCE());
|
|
1073
1073
|
};
|
|
1074
|
-
protoOf($serializer_2).
|
|
1075
|
-
var tmp0_desc = this.
|
|
1074
|
+
protoOf($serializer_2).o29 = function (decoder) {
|
|
1075
|
+
var tmp0_desc = this.jcl_1;
|
|
1076
1076
|
var tmp1_flag = true;
|
|
1077
1077
|
var tmp2_index = 0;
|
|
1078
1078
|
var tmp3_bitMask0 = 0;
|
|
1079
1079
|
var tmp4_local0 = 0;
|
|
1080
|
-
var tmp5_input = decoder.
|
|
1081
|
-
if (tmp5_input.
|
|
1082
|
-
tmp4_local0 = tmp5_input.
|
|
1080
|
+
var tmp5_input = decoder.v2c(tmp0_desc);
|
|
1081
|
+
if (tmp5_input.l2d()) {
|
|
1082
|
+
tmp4_local0 = tmp5_input.a2d(tmp0_desc, 0);
|
|
1083
1083
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1084
1084
|
} else
|
|
1085
1085
|
while (tmp1_flag) {
|
|
1086
|
-
tmp2_index = tmp5_input.
|
|
1086
|
+
tmp2_index = tmp5_input.m2d(tmp0_desc);
|
|
1087
1087
|
switch (tmp2_index) {
|
|
1088
1088
|
case -1:
|
|
1089
1089
|
tmp1_flag = false;
|
|
1090
1090
|
break;
|
|
1091
1091
|
case 0:
|
|
1092
|
-
tmp4_local0 = tmp5_input.
|
|
1092
|
+
tmp4_local0 = tmp5_input.a2d(tmp0_desc, 0);
|
|
1093
1093
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1094
1094
|
break;
|
|
1095
1095
|
default:
|
|
1096
1096
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1097
1097
|
}
|
|
1098
1098
|
}
|
|
1099
|
-
tmp5_input.
|
|
1099
|
+
tmp5_input.w2c(tmp0_desc);
|
|
1100
1100
|
return HeadersWanted_init_$Create$(tmp3_bitMask0, tmp4_local0, null);
|
|
1101
1101
|
};
|
|
1102
|
-
protoOf($serializer_2).
|
|
1103
|
-
return this.
|
|
1102
|
+
protoOf($serializer_2).m29 = function () {
|
|
1103
|
+
return this.jcl_1;
|
|
1104
1104
|
};
|
|
1105
|
-
protoOf($serializer_2).
|
|
1105
|
+
protoOf($serializer_2).c2l = function () {
|
|
1106
1106
|
// Inline function 'kotlin.arrayOf' call
|
|
1107
1107
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1108
1108
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1116,9 +1116,9 @@ function $serializer_getInstance_3() {
|
|
|
1116
1116
|
}
|
|
1117
1117
|
function HeadersWanted_init_$Init$(seen0, id, serializationConstructorMarker, $this) {
|
|
1118
1118
|
if (!(1 === (1 & seen0))) {
|
|
1119
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_3().
|
|
1119
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_3().jcl_1);
|
|
1120
1120
|
}
|
|
1121
|
-
$this.
|
|
1121
|
+
$this.lcl_1 = id;
|
|
1122
1122
|
return $this;
|
|
1123
1123
|
}
|
|
1124
1124
|
function HeadersWanted_init_$Create$(seen0, id, serializationConstructorMarker) {
|
|
@@ -1133,59 +1133,59 @@ function Companion_getInstance_8() {
|
|
|
1133
1133
|
function $serializer_3() {
|
|
1134
1134
|
$serializer_instance_3 = this;
|
|
1135
1135
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('proved', this, 2);
|
|
1136
|
-
tmp0_serialDesc.
|
|
1137
|
-
tmp0_serialDesc.
|
|
1138
|
-
this.
|
|
1139
|
-
}
|
|
1140
|
-
protoOf($serializer_3).
|
|
1141
|
-
var tmp0_desc = this.
|
|
1142
|
-
var tmp1_output = encoder.
|
|
1143
|
-
tmp1_output.
|
|
1144
|
-
tmp1_output.
|
|
1145
|
-
tmp1_output.
|
|
1146
|
-
};
|
|
1147
|
-
protoOf($serializer_3).
|
|
1148
|
-
return this.
|
|
1149
|
-
};
|
|
1150
|
-
protoOf($serializer_3).
|
|
1151
|
-
var tmp0_desc = this.
|
|
1136
|
+
tmp0_serialDesc.l2k('id', false);
|
|
1137
|
+
tmp0_serialDesc.l2k('presentation', false);
|
|
1138
|
+
this.mcl_1 = tmp0_serialDesc;
|
|
1139
|
+
}
|
|
1140
|
+
protoOf($serializer_3).ncl = function (encoder, value) {
|
|
1141
|
+
var tmp0_desc = this.mcl_1;
|
|
1142
|
+
var tmp1_output = encoder.v2c(tmp0_desc);
|
|
1143
|
+
tmp1_output.f2e(tmp0_desc, 0, value.ocl_1);
|
|
1144
|
+
tmp1_output.k2e(tmp0_desc, 1, value.pcl_1);
|
|
1145
|
+
tmp1_output.w2c(tmp0_desc);
|
|
1146
|
+
};
|
|
1147
|
+
protoOf($serializer_3).n29 = function (encoder, value) {
|
|
1148
|
+
return this.ncl(encoder, value instanceof Proved_0 ? value : THROW_CCE());
|
|
1149
|
+
};
|
|
1150
|
+
protoOf($serializer_3).o29 = function (decoder) {
|
|
1151
|
+
var tmp0_desc = this.mcl_1;
|
|
1152
1152
|
var tmp1_flag = true;
|
|
1153
1153
|
var tmp2_index = 0;
|
|
1154
1154
|
var tmp3_bitMask0 = 0;
|
|
1155
1155
|
var tmp4_local0 = 0;
|
|
1156
1156
|
var tmp5_local1 = null;
|
|
1157
|
-
var tmp6_input = decoder.
|
|
1158
|
-
if (tmp6_input.
|
|
1159
|
-
tmp4_local0 = tmp6_input.
|
|
1157
|
+
var tmp6_input = decoder.v2c(tmp0_desc);
|
|
1158
|
+
if (tmp6_input.l2d()) {
|
|
1159
|
+
tmp4_local0 = tmp6_input.a2d(tmp0_desc, 0);
|
|
1160
1160
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1161
|
-
tmp5_local1 = tmp6_input.
|
|
1161
|
+
tmp5_local1 = tmp6_input.f2d(tmp0_desc, 1);
|
|
1162
1162
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1163
1163
|
} else
|
|
1164
1164
|
while (tmp1_flag) {
|
|
1165
|
-
tmp2_index = tmp6_input.
|
|
1165
|
+
tmp2_index = tmp6_input.m2d(tmp0_desc);
|
|
1166
1166
|
switch (tmp2_index) {
|
|
1167
1167
|
case -1:
|
|
1168
1168
|
tmp1_flag = false;
|
|
1169
1169
|
break;
|
|
1170
1170
|
case 0:
|
|
1171
|
-
tmp4_local0 = tmp6_input.
|
|
1171
|
+
tmp4_local0 = tmp6_input.a2d(tmp0_desc, 0);
|
|
1172
1172
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1173
1173
|
break;
|
|
1174
1174
|
case 1:
|
|
1175
|
-
tmp5_local1 = tmp6_input.
|
|
1175
|
+
tmp5_local1 = tmp6_input.f2d(tmp0_desc, 1);
|
|
1176
1176
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1177
1177
|
break;
|
|
1178
1178
|
default:
|
|
1179
1179
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1180
1180
|
}
|
|
1181
1181
|
}
|
|
1182
|
-
tmp6_input.
|
|
1182
|
+
tmp6_input.w2c(tmp0_desc);
|
|
1183
1183
|
return Proved_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1184
1184
|
};
|
|
1185
|
-
protoOf($serializer_3).
|
|
1186
|
-
return this.
|
|
1185
|
+
protoOf($serializer_3).m29 = function () {
|
|
1186
|
+
return this.mcl_1;
|
|
1187
1187
|
};
|
|
1188
|
-
protoOf($serializer_3).
|
|
1188
|
+
protoOf($serializer_3).c2l = function () {
|
|
1189
1189
|
// Inline function 'kotlin.arrayOf' call
|
|
1190
1190
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1191
1191
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1199,17 +1199,17 @@ function $serializer_getInstance_4() {
|
|
|
1199
1199
|
}
|
|
1200
1200
|
function Proved_init_$Init$(seen0, id, presentation, serializationConstructorMarker, $this) {
|
|
1201
1201
|
if (!(3 === (3 & seen0))) {
|
|
1202
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_4().
|
|
1202
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_4().mcl_1);
|
|
1203
1203
|
}
|
|
1204
|
-
$this.
|
|
1205
|
-
$this.
|
|
1204
|
+
$this.ocl_1 = id;
|
|
1205
|
+
$this.pcl_1 = presentation;
|
|
1206
1206
|
return $this;
|
|
1207
1207
|
}
|
|
1208
1208
|
function Proved_init_$Create$(seen0, id, presentation, serializationConstructorMarker) {
|
|
1209
1209
|
return Proved_init_$Init$(seen0, id, presentation, serializationConstructorMarker, objectCreate(protoOf(Proved_0)));
|
|
1210
1210
|
}
|
|
1211
1211
|
function FromChild$Failed$Companion$$childSerializers$_anonymous__8w30xx() {
|
|
1212
|
-
return Companion_instance_0.
|
|
1212
|
+
return Companion_instance_0.d56();
|
|
1213
1213
|
}
|
|
1214
1214
|
function Companion_6() {
|
|
1215
1215
|
Companion_instance_9 = this;
|
|
@@ -1218,7 +1218,7 @@ function Companion_6() {
|
|
|
1218
1218
|
// Inline function 'kotlin.arrayOf' call
|
|
1219
1219
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1220
1220
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1221
|
-
tmp.
|
|
1221
|
+
tmp.qcl_1 = [null, lazy(tmp_0, FromChild$Failed$Companion$$childSerializers$_anonymous__8w30xx)];
|
|
1222
1222
|
}
|
|
1223
1223
|
var Companion_instance_9;
|
|
1224
1224
|
function Companion_getInstance_9() {
|
|
@@ -1229,62 +1229,62 @@ function Companion_getInstance_9() {
|
|
|
1229
1229
|
function $serializer_4() {
|
|
1230
1230
|
$serializer_instance_4 = this;
|
|
1231
1231
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('failed', this, 2);
|
|
1232
|
-
tmp0_serialDesc.
|
|
1233
|
-
tmp0_serialDesc.
|
|
1234
|
-
this.
|
|
1235
|
-
}
|
|
1236
|
-
protoOf($serializer_4).
|
|
1237
|
-
var tmp0_desc = this.
|
|
1238
|
-
var tmp1_output = encoder.
|
|
1239
|
-
var tmp2_cached = Companion_getInstance_9().
|
|
1240
|
-
tmp1_output.
|
|
1241
|
-
tmp1_output.
|
|
1242
|
-
tmp1_output.
|
|
1243
|
-
};
|
|
1244
|
-
protoOf($serializer_4).
|
|
1245
|
-
return this.
|
|
1246
|
-
};
|
|
1247
|
-
protoOf($serializer_4).
|
|
1248
|
-
var tmp0_desc = this.
|
|
1232
|
+
tmp0_serialDesc.l2k('id', false);
|
|
1233
|
+
tmp0_serialDesc.l2k('failure', false);
|
|
1234
|
+
this.rcl_1 = tmp0_serialDesc;
|
|
1235
|
+
}
|
|
1236
|
+
protoOf($serializer_4).scl = function (encoder, value) {
|
|
1237
|
+
var tmp0_desc = this.rcl_1;
|
|
1238
|
+
var tmp1_output = encoder.v2c(tmp0_desc);
|
|
1239
|
+
var tmp2_cached = Companion_getInstance_9().qcl_1;
|
|
1240
|
+
tmp1_output.f2e(tmp0_desc, 0, value.tcl_1);
|
|
1241
|
+
tmp1_output.m2e(tmp0_desc, 1, tmp2_cached[1].p1(), value.ucl_1);
|
|
1242
|
+
tmp1_output.w2c(tmp0_desc);
|
|
1243
|
+
};
|
|
1244
|
+
protoOf($serializer_4).n29 = function (encoder, value) {
|
|
1245
|
+
return this.scl(encoder, value instanceof Failed_0 ? value : THROW_CCE());
|
|
1246
|
+
};
|
|
1247
|
+
protoOf($serializer_4).o29 = function (decoder) {
|
|
1248
|
+
var tmp0_desc = this.rcl_1;
|
|
1249
1249
|
var tmp1_flag = true;
|
|
1250
1250
|
var tmp2_index = 0;
|
|
1251
1251
|
var tmp3_bitMask0 = 0;
|
|
1252
1252
|
var tmp4_local0 = 0;
|
|
1253
1253
|
var tmp5_local1 = null;
|
|
1254
|
-
var tmp6_input = decoder.
|
|
1255
|
-
var tmp7_cached = Companion_getInstance_9().
|
|
1256
|
-
if (tmp6_input.
|
|
1257
|
-
tmp4_local0 = tmp6_input.
|
|
1254
|
+
var tmp6_input = decoder.v2c(tmp0_desc);
|
|
1255
|
+
var tmp7_cached = Companion_getInstance_9().qcl_1;
|
|
1256
|
+
if (tmp6_input.l2d()) {
|
|
1257
|
+
tmp4_local0 = tmp6_input.a2d(tmp0_desc, 0);
|
|
1258
1258
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1259
|
-
tmp5_local1 = tmp6_input.
|
|
1259
|
+
tmp5_local1 = tmp6_input.h2d(tmp0_desc, 1, tmp7_cached[1].p1(), tmp5_local1);
|
|
1260
1260
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1261
1261
|
} else
|
|
1262
1262
|
while (tmp1_flag) {
|
|
1263
|
-
tmp2_index = tmp6_input.
|
|
1263
|
+
tmp2_index = tmp6_input.m2d(tmp0_desc);
|
|
1264
1264
|
switch (tmp2_index) {
|
|
1265
1265
|
case -1:
|
|
1266
1266
|
tmp1_flag = false;
|
|
1267
1267
|
break;
|
|
1268
1268
|
case 0:
|
|
1269
|
-
tmp4_local0 = tmp6_input.
|
|
1269
|
+
tmp4_local0 = tmp6_input.a2d(tmp0_desc, 0);
|
|
1270
1270
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1271
1271
|
break;
|
|
1272
1272
|
case 1:
|
|
1273
|
-
tmp5_local1 = tmp6_input.
|
|
1273
|
+
tmp5_local1 = tmp6_input.h2d(tmp0_desc, 1, tmp7_cached[1].p1(), tmp5_local1);
|
|
1274
1274
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1275
1275
|
break;
|
|
1276
1276
|
default:
|
|
1277
1277
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1278
1278
|
}
|
|
1279
1279
|
}
|
|
1280
|
-
tmp6_input.
|
|
1280
|
+
tmp6_input.w2c(tmp0_desc);
|
|
1281
1281
|
return Failed_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1282
1282
|
};
|
|
1283
|
-
protoOf($serializer_4).
|
|
1284
|
-
return this.
|
|
1283
|
+
protoOf($serializer_4).m29 = function () {
|
|
1284
|
+
return this.rcl_1;
|
|
1285
1285
|
};
|
|
1286
|
-
protoOf($serializer_4).
|
|
1287
|
-
var tmp0_cached = Companion_getInstance_9().
|
|
1286
|
+
protoOf($serializer_4).c2l = function () {
|
|
1287
|
+
var tmp0_cached = Companion_getInstance_9().qcl_1;
|
|
1288
1288
|
// Inline function 'kotlin.arrayOf' call
|
|
1289
1289
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1290
1290
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1298,49 +1298,49 @@ function $serializer_getInstance_5() {
|
|
|
1298
1298
|
}
|
|
1299
1299
|
function Failed_init_$Init$(seen0, id, failure, serializationConstructorMarker, $this) {
|
|
1300
1300
|
if (!(3 === (3 & seen0))) {
|
|
1301
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_5().
|
|
1301
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_5().rcl_1);
|
|
1302
1302
|
}
|
|
1303
|
-
$this.
|
|
1304
|
-
$this.
|
|
1303
|
+
$this.tcl_1 = id;
|
|
1304
|
+
$this.ucl_1 = failure;
|
|
1305
1305
|
return $this;
|
|
1306
1306
|
}
|
|
1307
1307
|
function Failed_init_$Create$(seen0, id, failure, serializationConstructorMarker) {
|
|
1308
1308
|
return Failed_init_$Init$(seen0, id, failure, serializationConstructorMarker, objectCreate(protoOf(Failed_0)));
|
|
1309
1309
|
}
|
|
1310
1310
|
function HeadersWanted(id) {
|
|
1311
|
-
this.
|
|
1311
|
+
this.lcl_1 = id;
|
|
1312
1312
|
}
|
|
1313
|
-
protoOf(HeadersWanted).
|
|
1314
|
-
return this.
|
|
1313
|
+
protoOf(HeadersWanted).t6e = function () {
|
|
1314
|
+
return this.lcl_1;
|
|
1315
1315
|
};
|
|
1316
1316
|
protoOf(HeadersWanted).toString = function () {
|
|
1317
|
-
return 'HeadersWanted(id=' + this.
|
|
1317
|
+
return 'HeadersWanted(id=' + this.lcl_1 + ')';
|
|
1318
1318
|
};
|
|
1319
1319
|
protoOf(HeadersWanted).hashCode = function () {
|
|
1320
|
-
return this.
|
|
1320
|
+
return this.lcl_1;
|
|
1321
1321
|
};
|
|
1322
1322
|
protoOf(HeadersWanted).equals = function (other) {
|
|
1323
1323
|
if (this === other)
|
|
1324
1324
|
return true;
|
|
1325
1325
|
if (!(other instanceof HeadersWanted))
|
|
1326
1326
|
return false;
|
|
1327
|
-
if (!(this.
|
|
1327
|
+
if (!(this.lcl_1 === other.lcl_1))
|
|
1328
1328
|
return false;
|
|
1329
1329
|
return true;
|
|
1330
1330
|
};
|
|
1331
1331
|
function Proved_0(id, presentation) {
|
|
1332
|
-
this.
|
|
1333
|
-
this.
|
|
1332
|
+
this.ocl_1 = id;
|
|
1333
|
+
this.pcl_1 = presentation;
|
|
1334
1334
|
}
|
|
1335
|
-
protoOf(Proved_0).
|
|
1336
|
-
return this.
|
|
1335
|
+
protoOf(Proved_0).t6e = function () {
|
|
1336
|
+
return this.ocl_1;
|
|
1337
1337
|
};
|
|
1338
1338
|
protoOf(Proved_0).toString = function () {
|
|
1339
|
-
return 'Proved(id=' + this.
|
|
1339
|
+
return 'Proved(id=' + this.ocl_1 + ', presentation=' + this.pcl_1 + ')';
|
|
1340
1340
|
};
|
|
1341
1341
|
protoOf(Proved_0).hashCode = function () {
|
|
1342
|
-
var result = this.
|
|
1343
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1342
|
+
var result = this.ocl_1;
|
|
1343
|
+
result = imul(result, 31) + getStringHashCode(this.pcl_1) | 0;
|
|
1344
1344
|
return result;
|
|
1345
1345
|
};
|
|
1346
1346
|
protoOf(Proved_0).equals = function (other) {
|
|
@@ -1348,26 +1348,26 @@ protoOf(Proved_0).equals = function (other) {
|
|
|
1348
1348
|
return true;
|
|
1349
1349
|
if (!(other instanceof Proved_0))
|
|
1350
1350
|
return false;
|
|
1351
|
-
if (!(this.
|
|
1351
|
+
if (!(this.ocl_1 === other.ocl_1))
|
|
1352
1352
|
return false;
|
|
1353
|
-
if (!(this.
|
|
1353
|
+
if (!(this.pcl_1 === other.pcl_1))
|
|
1354
1354
|
return false;
|
|
1355
1355
|
return true;
|
|
1356
1356
|
};
|
|
1357
1357
|
function Failed_0(id, failure) {
|
|
1358
1358
|
Companion_getInstance_9();
|
|
1359
|
-
this.
|
|
1360
|
-
this.
|
|
1359
|
+
this.tcl_1 = id;
|
|
1360
|
+
this.ucl_1 = failure;
|
|
1361
1361
|
}
|
|
1362
|
-
protoOf(Failed_0).
|
|
1363
|
-
return this.
|
|
1362
|
+
protoOf(Failed_0).t6e = function () {
|
|
1363
|
+
return this.tcl_1;
|
|
1364
1364
|
};
|
|
1365
1365
|
protoOf(Failed_0).toString = function () {
|
|
1366
|
-
return 'Failed(id=' + this.
|
|
1366
|
+
return 'Failed(id=' + this.tcl_1 + ', failure=' + toString_0(this.ucl_1) + ')';
|
|
1367
1367
|
};
|
|
1368
1368
|
protoOf(Failed_0).hashCode = function () {
|
|
1369
|
-
var result = this.
|
|
1370
|
-
result = imul(result, 31) + hashCode(this.
|
|
1369
|
+
var result = this.tcl_1;
|
|
1370
|
+
result = imul(result, 31) + hashCode(this.ucl_1) | 0;
|
|
1371
1371
|
return result;
|
|
1372
1372
|
};
|
|
1373
1373
|
protoOf(Failed_0).equals = function (other) {
|
|
@@ -1375,15 +1375,15 @@ protoOf(Failed_0).equals = function (other) {
|
|
|
1375
1375
|
return true;
|
|
1376
1376
|
if (!(other instanceof Failed_0))
|
|
1377
1377
|
return false;
|
|
1378
|
-
if (!(this.
|
|
1378
|
+
if (!(this.tcl_1 === other.tcl_1))
|
|
1379
1379
|
return false;
|
|
1380
|
-
if (!equals(this.
|
|
1380
|
+
if (!equals(this.ucl_1, other.ucl_1))
|
|
1381
1381
|
return false;
|
|
1382
1382
|
return true;
|
|
1383
1383
|
};
|
|
1384
1384
|
function Companion_7() {
|
|
1385
1385
|
}
|
|
1386
|
-
protoOf(Companion_7).
|
|
1386
|
+
protoOf(Companion_7).d56 = function () {
|
|
1387
1387
|
var tmp = getKClass(FromChild);
|
|
1388
1388
|
// Inline function 'kotlin.arrayOf' call
|
|
1389
1389
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
@@ -1399,8 +1399,8 @@ protoOf(Companion_7).r54 = function () {
|
|
|
1399
1399
|
var tmp$ret$6 = [];
|
|
1400
1400
|
return SealedClassSerializer_init_$Create$('com.dmarket.p2p.headless.prover.FromChild', tmp, tmp_0, tmp_1, tmp$ret$6);
|
|
1401
1401
|
};
|
|
1402
|
-
protoOf(Companion_7).
|
|
1403
|
-
return this.
|
|
1402
|
+
protoOf(Companion_7).n2l = function (typeParamsSerializers) {
|
|
1403
|
+
return this.d56();
|
|
1404
1404
|
};
|
|
1405
1405
|
var Companion_instance_10;
|
|
1406
1406
|
function Companion_getInstance_10() {
|
|
@@ -1410,12 +1410,12 @@ function FromChild() {
|
|
|
1410
1410
|
}
|
|
1411
1411
|
function ProverOutput() {
|
|
1412
1412
|
ProverOutput_instance = this;
|
|
1413
|
-
this.
|
|
1414
|
-
this.
|
|
1413
|
+
this.lcj_1 = NetworkRedaction_getInstance().k69('access_token');
|
|
1414
|
+
this.mcj_1 = 2000;
|
|
1415
1415
|
}
|
|
1416
|
-
protoOf(ProverOutput).
|
|
1416
|
+
protoOf(ProverOutput).s7b = function (line) {
|
|
1417
1417
|
// Inline function 'kotlin.text.orEmpty' call
|
|
1418
|
-
var tmp0_elvis_lhs = NetworkRedaction_getInstance().
|
|
1418
|
+
var tmp0_elvis_lhs = NetworkRedaction_getInstance().j69(TradingApiSignature_getInstance().s7b(line), this.lcj_1, 2000);
|
|
1419
1419
|
return tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
|
|
1420
1420
|
};
|
|
1421
1421
|
var ProverOutput_instance;
|
|
@@ -1435,19 +1435,19 @@ function runProverChild() {
|
|
|
1435
1435
|
}
|
|
1436
1436
|
function headlessVersion() {
|
|
1437
1437
|
_init_properties_HeadlessApi_kt__cjiogh();
|
|
1438
|
-
return '1.
|
|
1438
|
+
return '1.2.0-beta';
|
|
1439
1439
|
}
|
|
1440
1440
|
function createHeadlessTracker(options) {
|
|
1441
1441
|
_init_properties_HeadlessApi_kt__cjiogh();
|
|
1442
|
-
return create(Companion_getInstance_11().
|
|
1442
|
+
return create(Companion_getInstance_11().xcl(options), null, null, null);
|
|
1443
1443
|
}
|
|
1444
1444
|
function start(handle) {
|
|
1445
1445
|
_init_properties_HeadlessApi_kt__cjiogh();
|
|
1446
1446
|
var entry = entryOf(handle);
|
|
1447
|
-
if (entry.
|
|
1447
|
+
if (entry.bcm_1)
|
|
1448
1448
|
return Unit_instance;
|
|
1449
|
-
entry.
|
|
1450
|
-
entry.
|
|
1449
|
+
entry.bcm_1 = true;
|
|
1450
|
+
entry.ycl_1.rbu();
|
|
1451
1451
|
}
|
|
1452
1452
|
function cycle(handle) {
|
|
1453
1453
|
_init_properties_HeadlessApi_kt__cjiogh();
|
|
@@ -1463,15 +1463,15 @@ function stop(handle) {
|
|
|
1463
1463
|
tmp = tmp0_elvis_lhs;
|
|
1464
1464
|
}
|
|
1465
1465
|
var entry = tmp;
|
|
1466
|
-
if (!entry.
|
|
1467
|
-
entry.
|
|
1468
|
-
var tmp1_safe_receiver = entry.
|
|
1466
|
+
if (!entry.ccm_1) {
|
|
1467
|
+
entry.ccm_1 = true;
|
|
1468
|
+
var tmp1_safe_receiver = entry.acm_1;
|
|
1469
1469
|
if (tmp1_safe_receiver == null)
|
|
1470
1470
|
null;
|
|
1471
1471
|
else {
|
|
1472
|
-
tmp1_safe_receiver.
|
|
1472
|
+
tmp1_safe_receiver.j4();
|
|
1473
1473
|
}
|
|
1474
|
-
cancel(entry.
|
|
1474
|
+
cancel(entry.zcl_1);
|
|
1475
1475
|
}
|
|
1476
1476
|
return Promise.resolve(Unit_instance);
|
|
1477
1477
|
}
|
|
@@ -1490,53 +1490,53 @@ function pushSteamToken(handle, accessToken) {
|
|
|
1490
1490
|
}
|
|
1491
1491
|
function trackerState(handle) {
|
|
1492
1492
|
_init_properties_HeadlessApi_kt__cjiogh();
|
|
1493
|
-
return toJs_1(entryOf(handle).
|
|
1493
|
+
return toJs_1(entryOf(handle).ycl_1.ubt());
|
|
1494
1494
|
}
|
|
1495
1495
|
function create(options, httpEngine, background, proverPackageRoot) {
|
|
1496
1496
|
_init_properties_HeadlessApi_kt__cjiogh();
|
|
1497
|
-
var tmp0_elvis_lhs = options.
|
|
1497
|
+
var tmp0_elvis_lhs = options.mcm();
|
|
1498
1498
|
var clock = tmp0_elvis_lhs == null ? new SystemClock() : tmp0_elvis_lhs;
|
|
1499
|
-
var tmp1_safe_receiver = options.
|
|
1499
|
+
var tmp1_safe_receiver = options.jcm_1;
|
|
1500
1500
|
var tmp;
|
|
1501
1501
|
if (tmp1_safe_receiver == null) {
|
|
1502
1502
|
tmp = null;
|
|
1503
1503
|
} else {
|
|
1504
1504
|
// Inline function 'kotlin.let' call
|
|
1505
|
-
tmp = proofHost(options, tmp1_safe_receiver, Companion_instance_12.
|
|
1505
|
+
tmp = proofHost(options, tmp1_safe_receiver, Companion_instance_12.wcm(proverPackageRoot, tmp1_safe_receiver.rcm_1), clock);
|
|
1506
1506
|
}
|
|
1507
1507
|
var proofHost_0 = tmp;
|
|
1508
|
-
var scope = CoroutineScope(SupervisorJob().
|
|
1509
|
-
var accounts = new AccountDirectories(options.
|
|
1508
|
+
var scope = CoroutineScope(SupervisorJob().sk(Dispatchers_getInstance().k1a_1));
|
|
1509
|
+
var accounts = new AccountDirectories(options.dcm_1);
|
|
1510
1510
|
var tmp_0 = create$lambda(accounts);
|
|
1511
|
-
var tmp2_elvis_lhs = options.
|
|
1511
|
+
var tmp2_elvis_lhs = options.xcm();
|
|
1512
1512
|
var tmp_1 = tmp2_elvis_lhs == null ? NoOpEventObserver_instance : tmp2_elvis_lhs;
|
|
1513
1513
|
var tmp_2;
|
|
1514
1514
|
if (proofHost_0 == null) {
|
|
1515
1515
|
tmp_2 = null;
|
|
1516
1516
|
} else {
|
|
1517
1517
|
// Inline function 'kotlin.let' call
|
|
1518
|
-
tmp_2 = new HeadlessProving(proofHost_0, options.
|
|
1518
|
+
tmp_2 = new HeadlessProving(proofHost_0, options.jcm_1.ocm_1);
|
|
1519
1519
|
}
|
|
1520
1520
|
var platform = new HeadlessPlatform(tmp_0, clock, tmp_1, httpEngine, VOID, tmp_2);
|
|
1521
1521
|
var tmp_3 = background == null ? scope : background;
|
|
1522
1522
|
// Inline function 'kotlin.let' call
|
|
1523
1523
|
var it = Companion_instance_1.defaults();
|
|
1524
|
-
var tmp$ret$4 = it.copy(VOID, VOID, VOID, VOID, VOID, it.notary.copy(VOID, options.
|
|
1525
|
-
var tracker = new HeadlessTracker(platform, tmp_3, options.
|
|
1524
|
+
var tmp$ret$4 = it.copy(VOID, VOID, VOID, VOID, VOID, it.notary.copy(VOID, options.gcm_1));
|
|
1525
|
+
var tracker = new HeadlessTracker(platform, tmp_3, options.ecm_1, tmp$ret$4, options.fcm_1);
|
|
1526
1526
|
var handle = Object.freeze(Object.create(null));
|
|
1527
1527
|
get_trackers().set(handle, new TrackerEntry(tracker, scope, proofHost_0));
|
|
1528
1528
|
return handle;
|
|
1529
1529
|
}
|
|
1530
1530
|
function proofHost(options, prover, files, clock) {
|
|
1531
1531
|
_init_properties_HeadlessApi_kt__cjiogh();
|
|
1532
|
-
var onLine = options.
|
|
1533
|
-
var onOutcome = options.
|
|
1532
|
+
var onLine = options.lcm_1;
|
|
1533
|
+
var onOutcome = options.kcm_1;
|
|
1534
1534
|
var tmp = emptyList();
|
|
1535
|
-
var tmp_0 = new ProverSettings(options.
|
|
1536
|
-
var tmp_1 = new ProverLimits(prover.
|
|
1535
|
+
var tmp_0 = new ProverSettings(options.gcm_1, prover.qcm_1, files.zcm_1);
|
|
1536
|
+
var tmp_1 = new ProverLimits(prover.scm_1, prover.tcm_1, prover.pcm_1);
|
|
1537
1537
|
var tmp_2 = proofHost$lambda(onLine);
|
|
1538
1538
|
var tmp_3 = proofHost$lambda_0(onLine);
|
|
1539
|
-
return new ForkedProofHost(files.
|
|
1539
|
+
return new ForkedProofHost(files.ycm_1, tmp, tmp_0, clock, tmp_1, VOID, VOID, tmp_2, tmp_3, proofHost$lambda_1(onOutcome));
|
|
1540
1540
|
}
|
|
1541
1541
|
function proofOutcome(dealId, failure) {
|
|
1542
1542
|
_init_properties_HeadlessApi_kt__cjiogh();
|
|
@@ -1547,17 +1547,17 @@ function proofOutcome(dealId, failure) {
|
|
|
1547
1547
|
tmp = null;
|
|
1548
1548
|
} else {
|
|
1549
1549
|
// Inline function 'kotlin.let' call
|
|
1550
|
-
tmp = JSON.parse(ProofOutcomeJson_getInstance().
|
|
1550
|
+
tmp = JSON.parse(ProofOutcomeJson_getInstance().ocj(failure));
|
|
1551
1551
|
}
|
|
1552
1552
|
o.failure = tmp;
|
|
1553
1553
|
return o;
|
|
1554
1554
|
}
|
|
1555
1555
|
function TrackerEntry(tracker, scope, proofHost) {
|
|
1556
|
-
this.
|
|
1557
|
-
this.
|
|
1558
|
-
this.
|
|
1559
|
-
this.
|
|
1560
|
-
this.
|
|
1556
|
+
this.ycl_1 = tracker;
|
|
1557
|
+
this.zcl_1 = scope;
|
|
1558
|
+
this.acm_1 = proofHost;
|
|
1559
|
+
this.bcm_1 = false;
|
|
1560
|
+
this.ccm_1 = false;
|
|
1561
1561
|
}
|
|
1562
1562
|
function lookup(handle) {
|
|
1563
1563
|
_init_properties_HeadlessApi_kt__cjiogh();
|
|
@@ -1574,7 +1574,7 @@ function entryOf(handle) {
|
|
|
1574
1574
|
}
|
|
1575
1575
|
var entry = tmp;
|
|
1576
1576
|
// Inline function 'kotlin.check' call
|
|
1577
|
-
if (!!entry.
|
|
1577
|
+
if (!!entry.ccm_1) {
|
|
1578
1578
|
var message = 'tracker stopped';
|
|
1579
1579
|
throw IllegalStateException_init_$Create$(toString_0(message));
|
|
1580
1580
|
}
|
|
@@ -1601,30 +1601,30 @@ function call(handle, block) {
|
|
|
1601
1601
|
}
|
|
1602
1602
|
}
|
|
1603
1603
|
var entry = tmp;
|
|
1604
|
-
return promise_0(entry.
|
|
1604
|
+
return promise_0(entry.zcl_1, VOID, VOID, call$slambda_0(block, entry, null));
|
|
1605
1605
|
}
|
|
1606
1606
|
function cycle$slambda(resultContinuation) {
|
|
1607
1607
|
CoroutineImpl.call(this, resultContinuation);
|
|
1608
1608
|
}
|
|
1609
|
-
protoOf(cycle$slambda).
|
|
1610
|
-
var tmp = this.
|
|
1611
|
-
tmp.
|
|
1612
|
-
tmp.
|
|
1613
|
-
return tmp.
|
|
1609
|
+
protoOf(cycle$slambda).jcn = function ($this$call, $completion) {
|
|
1610
|
+
var tmp = this.kcn($this$call, $completion);
|
|
1611
|
+
tmp.k9_1 = Unit_instance;
|
|
1612
|
+
tmp.l9_1 = null;
|
|
1613
|
+
return tmp.q9();
|
|
1614
1614
|
};
|
|
1615
|
-
protoOf(cycle$slambda).
|
|
1616
|
-
return this.
|
|
1615
|
+
protoOf(cycle$slambda).da = function (p1, $completion) {
|
|
1616
|
+
return this.jcn(p1 instanceof TrackerEntry ? p1 : THROW_CCE(), $completion);
|
|
1617
1617
|
};
|
|
1618
|
-
protoOf(cycle$slambda).
|
|
1619
|
-
var suspendResult = this.
|
|
1618
|
+
protoOf(cycle$slambda).q9 = function () {
|
|
1619
|
+
var suspendResult = this.k9_1;
|
|
1620
1620
|
$sm: do
|
|
1621
1621
|
try {
|
|
1622
|
-
var tmp = this.
|
|
1622
|
+
var tmp = this.i9_1;
|
|
1623
1623
|
switch (tmp) {
|
|
1624
1624
|
case 0:
|
|
1625
|
-
this.
|
|
1626
|
-
this.
|
|
1627
|
-
suspendResult = this.
|
|
1625
|
+
this.j9_1 = 2;
|
|
1626
|
+
this.i9_1 = 1;
|
|
1627
|
+
suspendResult = this.icn_1.ycl_1.lbp(this);
|
|
1628
1628
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1629
1629
|
return suspendResult;
|
|
1630
1630
|
}
|
|
@@ -1633,54 +1633,54 @@ protoOf(cycle$slambda).o9 = function () {
|
|
|
1633
1633
|
case 1:
|
|
1634
1634
|
return Unit_instance;
|
|
1635
1635
|
case 2:
|
|
1636
|
-
throw this.
|
|
1636
|
+
throw this.l9_1;
|
|
1637
1637
|
}
|
|
1638
1638
|
} catch ($p) {
|
|
1639
1639
|
var e = $p;
|
|
1640
|
-
if (this.
|
|
1640
|
+
if (this.j9_1 === 2) {
|
|
1641
1641
|
throw e;
|
|
1642
1642
|
} else {
|
|
1643
|
-
this.
|
|
1644
|
-
this.
|
|
1643
|
+
this.i9_1 = this.j9_1;
|
|
1644
|
+
this.l9_1 = e;
|
|
1645
1645
|
}
|
|
1646
1646
|
}
|
|
1647
1647
|
while (true);
|
|
1648
1648
|
};
|
|
1649
|
-
protoOf(cycle$slambda).
|
|
1649
|
+
protoOf(cycle$slambda).kcn = function ($this$call, completion) {
|
|
1650
1650
|
var i = new cycle$slambda(completion);
|
|
1651
|
-
i.
|
|
1651
|
+
i.icn_1 = $this$call;
|
|
1652
1652
|
return i;
|
|
1653
1653
|
};
|
|
1654
1654
|
function cycle$slambda_0(resultContinuation) {
|
|
1655
1655
|
var i = new cycle$slambda(resultContinuation);
|
|
1656
1656
|
return constructCallableReference(function ($this$call, $completion) {
|
|
1657
|
-
return i.
|
|
1657
|
+
return i.jcn($this$call, $completion);
|
|
1658
1658
|
}, 1);
|
|
1659
1659
|
}
|
|
1660
1660
|
function pushTradingApiKey$slambda($publicKey, $secretKey, resultContinuation) {
|
|
1661
|
-
this.
|
|
1662
|
-
this.
|
|
1661
|
+
this.tcn_1 = $publicKey;
|
|
1662
|
+
this.ucn_1 = $secretKey;
|
|
1663
1663
|
CoroutineImpl.call(this, resultContinuation);
|
|
1664
1664
|
}
|
|
1665
|
-
protoOf(pushTradingApiKey$slambda).
|
|
1666
|
-
var tmp = this.
|
|
1667
|
-
tmp.
|
|
1668
|
-
tmp.
|
|
1669
|
-
return tmp.
|
|
1665
|
+
protoOf(pushTradingApiKey$slambda).wcn = function ($this$call, $completion) {
|
|
1666
|
+
var tmp = this.kcn($this$call, $completion);
|
|
1667
|
+
tmp.k9_1 = Unit_instance;
|
|
1668
|
+
tmp.l9_1 = null;
|
|
1669
|
+
return tmp.q9();
|
|
1670
1670
|
};
|
|
1671
|
-
protoOf(pushTradingApiKey$slambda).
|
|
1672
|
-
return this.
|
|
1671
|
+
protoOf(pushTradingApiKey$slambda).da = function (p1, $completion) {
|
|
1672
|
+
return this.wcn(p1 instanceof TrackerEntry ? p1 : THROW_CCE(), $completion);
|
|
1673
1673
|
};
|
|
1674
|
-
protoOf(pushTradingApiKey$slambda).
|
|
1675
|
-
var suspendResult = this.
|
|
1674
|
+
protoOf(pushTradingApiKey$slambda).q9 = function () {
|
|
1675
|
+
var suspendResult = this.k9_1;
|
|
1676
1676
|
$sm: do
|
|
1677
1677
|
try {
|
|
1678
|
-
var tmp = this.
|
|
1678
|
+
var tmp = this.i9_1;
|
|
1679
1679
|
switch (tmp) {
|
|
1680
1680
|
case 0:
|
|
1681
|
-
this.
|
|
1682
|
-
this.
|
|
1683
|
-
suspendResult = this.
|
|
1681
|
+
this.j9_1 = 2;
|
|
1682
|
+
this.i9_1 = 1;
|
|
1683
|
+
suspendResult = this.vcn_1.ycl_1.sbu(this.tcn_1, this.ucn_1, this);
|
|
1684
1684
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1685
1685
|
return suspendResult;
|
|
1686
1686
|
}
|
|
@@ -1690,69 +1690,69 @@ protoOf(pushTradingApiKey$slambda).o9 = function () {
|
|
|
1690
1690
|
var push = suspendResult;
|
|
1691
1691
|
var tmp_0;
|
|
1692
1692
|
if (push instanceof Held) {
|
|
1693
|
-
tmp_0 = !push.
|
|
1693
|
+
tmp_0 = !push.j83_1.equals(KeyChange_SAME_getInstance());
|
|
1694
1694
|
} else {
|
|
1695
1695
|
tmp_0 = false;
|
|
1696
1696
|
}
|
|
1697
1697
|
|
|
1698
1698
|
if (tmp_0) {
|
|
1699
|
-
var tmp0_safe_receiver = this.
|
|
1699
|
+
var tmp0_safe_receiver = this.vcn_1.acm_1;
|
|
1700
1700
|
if (tmp0_safe_receiver == null)
|
|
1701
1701
|
null;
|
|
1702
1702
|
else {
|
|
1703
|
-
tmp0_safe_receiver.
|
|
1703
|
+
tmp0_safe_receiver.gck();
|
|
1704
1704
|
}
|
|
1705
1705
|
}
|
|
1706
1706
|
|
|
1707
1707
|
return toJs(push);
|
|
1708
1708
|
case 2:
|
|
1709
|
-
throw this.
|
|
1709
|
+
throw this.l9_1;
|
|
1710
1710
|
}
|
|
1711
1711
|
} catch ($p) {
|
|
1712
1712
|
var e = $p;
|
|
1713
|
-
if (this.
|
|
1713
|
+
if (this.j9_1 === 2) {
|
|
1714
1714
|
throw e;
|
|
1715
1715
|
} else {
|
|
1716
|
-
this.
|
|
1717
|
-
this.
|
|
1716
|
+
this.i9_1 = this.j9_1;
|
|
1717
|
+
this.l9_1 = e;
|
|
1718
1718
|
}
|
|
1719
1719
|
}
|
|
1720
1720
|
while (true);
|
|
1721
1721
|
};
|
|
1722
|
-
protoOf(pushTradingApiKey$slambda).
|
|
1723
|
-
var i = new pushTradingApiKey$slambda(this.
|
|
1724
|
-
i.
|
|
1722
|
+
protoOf(pushTradingApiKey$slambda).kcn = function ($this$call, completion) {
|
|
1723
|
+
var i = new pushTradingApiKey$slambda(this.tcn_1, this.ucn_1, completion);
|
|
1724
|
+
i.vcn_1 = $this$call;
|
|
1725
1725
|
return i;
|
|
1726
1726
|
};
|
|
1727
1727
|
function pushTradingApiKey$slambda_0($publicKey, $secretKey, resultContinuation) {
|
|
1728
1728
|
var i = new pushTradingApiKey$slambda($publicKey, $secretKey, resultContinuation);
|
|
1729
1729
|
return constructCallableReference(function ($this$call, $completion) {
|
|
1730
|
-
return i.
|
|
1730
|
+
return i.wcn($this$call, $completion);
|
|
1731
1731
|
}, 1);
|
|
1732
1732
|
}
|
|
1733
1733
|
function pushSteamToken$slambda($accessToken, resultContinuation) {
|
|
1734
|
-
this.
|
|
1734
|
+
this.fco_1 = $accessToken;
|
|
1735
1735
|
CoroutineImpl.call(this, resultContinuation);
|
|
1736
1736
|
}
|
|
1737
|
-
protoOf(pushSteamToken$slambda).
|
|
1738
|
-
var tmp = this.
|
|
1739
|
-
tmp.
|
|
1740
|
-
tmp.
|
|
1741
|
-
return tmp.
|
|
1737
|
+
protoOf(pushSteamToken$slambda).wcn = function ($this$call, $completion) {
|
|
1738
|
+
var tmp = this.kcn($this$call, $completion);
|
|
1739
|
+
tmp.k9_1 = Unit_instance;
|
|
1740
|
+
tmp.l9_1 = null;
|
|
1741
|
+
return tmp.q9();
|
|
1742
1742
|
};
|
|
1743
|
-
protoOf(pushSteamToken$slambda).
|
|
1744
|
-
return this.
|
|
1743
|
+
protoOf(pushSteamToken$slambda).da = function (p1, $completion) {
|
|
1744
|
+
return this.wcn(p1 instanceof TrackerEntry ? p1 : THROW_CCE(), $completion);
|
|
1745
1745
|
};
|
|
1746
|
-
protoOf(pushSteamToken$slambda).
|
|
1747
|
-
var suspendResult = this.
|
|
1746
|
+
protoOf(pushSteamToken$slambda).q9 = function () {
|
|
1747
|
+
var suspendResult = this.k9_1;
|
|
1748
1748
|
$sm: do
|
|
1749
1749
|
try {
|
|
1750
|
-
var tmp = this.
|
|
1750
|
+
var tmp = this.i9_1;
|
|
1751
1751
|
switch (tmp) {
|
|
1752
1752
|
case 0:
|
|
1753
|
-
this.
|
|
1754
|
-
this.
|
|
1755
|
-
suspendResult = this.
|
|
1753
|
+
this.j9_1 = 2;
|
|
1754
|
+
this.i9_1 = 1;
|
|
1755
|
+
suspendResult = this.gco_1.ycl_1.tbu(this.fco_1, this);
|
|
1756
1756
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1757
1757
|
return suspendResult;
|
|
1758
1758
|
}
|
|
@@ -1762,33 +1762,33 @@ protoOf(pushSteamToken$slambda).o9 = function () {
|
|
|
1762
1762
|
var ARGUMENT = suspendResult;
|
|
1763
1763
|
return toJs_0(ARGUMENT);
|
|
1764
1764
|
case 2:
|
|
1765
|
-
throw this.
|
|
1765
|
+
throw this.l9_1;
|
|
1766
1766
|
}
|
|
1767
1767
|
} catch ($p) {
|
|
1768
1768
|
var e = $p;
|
|
1769
|
-
if (this.
|
|
1769
|
+
if (this.j9_1 === 2) {
|
|
1770
1770
|
throw e;
|
|
1771
1771
|
} else {
|
|
1772
|
-
this.
|
|
1773
|
-
this.
|
|
1772
|
+
this.i9_1 = this.j9_1;
|
|
1773
|
+
this.l9_1 = e;
|
|
1774
1774
|
}
|
|
1775
1775
|
}
|
|
1776
1776
|
while (true);
|
|
1777
1777
|
};
|
|
1778
|
-
protoOf(pushSteamToken$slambda).
|
|
1779
|
-
var i = new pushSteamToken$slambda(this.
|
|
1780
|
-
i.
|
|
1778
|
+
protoOf(pushSteamToken$slambda).kcn = function ($this$call, completion) {
|
|
1779
|
+
var i = new pushSteamToken$slambda(this.fco_1, completion);
|
|
1780
|
+
i.gco_1 = $this$call;
|
|
1781
1781
|
return i;
|
|
1782
1782
|
};
|
|
1783
1783
|
function pushSteamToken$slambda_0($accessToken, resultContinuation) {
|
|
1784
1784
|
var i = new pushSteamToken$slambda($accessToken, resultContinuation);
|
|
1785
1785
|
return constructCallableReference(function ($this$call, $completion) {
|
|
1786
|
-
return i.
|
|
1786
|
+
return i.wcn($this$call, $completion);
|
|
1787
1787
|
}, 1);
|
|
1788
1788
|
}
|
|
1789
1789
|
function create$lambda($accounts) {
|
|
1790
1790
|
return function (it) {
|
|
1791
|
-
return $accounts.
|
|
1791
|
+
return $accounts.jco(_SteamId___get_value__impl__qjh21u(it.a5z_1));
|
|
1792
1792
|
};
|
|
1793
1793
|
}
|
|
1794
1794
|
function proofHost$lambda($onLine) {
|
|
@@ -1829,7 +1829,7 @@ function proofHost$lambda_0($onLine) {
|
|
|
1829
1829
|
// Inline function 'kotlin.runCatching' call
|
|
1830
1830
|
var tmp;
|
|
1831
1831
|
try {
|
|
1832
|
-
tmp0_safe_receiver('host', ProofOutcomeJson_getInstance().
|
|
1832
|
+
tmp0_safe_receiver('host', ProofOutcomeJson_getInstance().pcj(message, warning, fields));
|
|
1833
1833
|
// Inline function 'kotlin.Companion.success' call
|
|
1834
1834
|
tmp = _Result___init__impl__xyqfz8(Unit_instance);
|
|
1835
1835
|
} catch ($p) {
|
|
@@ -1876,29 +1876,29 @@ function proofHost$lambda_1($onOutcome) {
|
|
|
1876
1876
|
};
|
|
1877
1877
|
}
|
|
1878
1878
|
function call$slambda($block, $entry, resultContinuation) {
|
|
1879
|
-
this.
|
|
1880
|
-
this.
|
|
1879
|
+
this.sco_1 = $block;
|
|
1880
|
+
this.tco_1 = $entry;
|
|
1881
1881
|
CoroutineImpl.call(this, resultContinuation);
|
|
1882
1882
|
}
|
|
1883
|
-
protoOf(call$slambda).
|
|
1884
|
-
var tmp = this.
|
|
1885
|
-
tmp.
|
|
1886
|
-
tmp.
|
|
1887
|
-
return tmp.
|
|
1883
|
+
protoOf(call$slambda).vco = function ($this$promise, $completion) {
|
|
1884
|
+
var tmp = this.x1o($this$promise, $completion);
|
|
1885
|
+
tmp.k9_1 = Unit_instance;
|
|
1886
|
+
tmp.l9_1 = null;
|
|
1887
|
+
return tmp.q9();
|
|
1888
1888
|
};
|
|
1889
|
-
protoOf(call$slambda).
|
|
1890
|
-
return this.
|
|
1889
|
+
protoOf(call$slambda).da = function (p1, $completion) {
|
|
1890
|
+
return this.vco((!(p1 == null) ? isInterface(p1, CoroutineScope_0) : false) ? p1 : THROW_CCE(), $completion);
|
|
1891
1891
|
};
|
|
1892
|
-
protoOf(call$slambda).
|
|
1893
|
-
var suspendResult = this.
|
|
1892
|
+
protoOf(call$slambda).q9 = function () {
|
|
1893
|
+
var suspendResult = this.k9_1;
|
|
1894
1894
|
$sm: do
|
|
1895
1895
|
try {
|
|
1896
|
-
var tmp = this.
|
|
1896
|
+
var tmp = this.i9_1;
|
|
1897
1897
|
switch (tmp) {
|
|
1898
1898
|
case 0:
|
|
1899
|
-
this.
|
|
1900
|
-
this.
|
|
1901
|
-
suspendResult = this.
|
|
1899
|
+
this.j9_1 = 2;
|
|
1900
|
+
this.i9_1 = 1;
|
|
1901
|
+
suspendResult = this.sco_1(this.tco_1, this);
|
|
1902
1902
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1903
1903
|
return suspendResult;
|
|
1904
1904
|
}
|
|
@@ -1907,28 +1907,28 @@ protoOf(call$slambda).o9 = function () {
|
|
|
1907
1907
|
case 1:
|
|
1908
1908
|
return suspendResult;
|
|
1909
1909
|
case 2:
|
|
1910
|
-
throw this.
|
|
1910
|
+
throw this.l9_1;
|
|
1911
1911
|
}
|
|
1912
1912
|
} catch ($p) {
|
|
1913
1913
|
var e = $p;
|
|
1914
|
-
if (this.
|
|
1914
|
+
if (this.j9_1 === 2) {
|
|
1915
1915
|
throw e;
|
|
1916
1916
|
} else {
|
|
1917
|
-
this.
|
|
1918
|
-
this.
|
|
1917
|
+
this.i9_1 = this.j9_1;
|
|
1918
|
+
this.l9_1 = e;
|
|
1919
1919
|
}
|
|
1920
1920
|
}
|
|
1921
1921
|
while (true);
|
|
1922
1922
|
};
|
|
1923
|
-
protoOf(call$slambda).
|
|
1924
|
-
var i = new call$slambda(this.
|
|
1925
|
-
i.
|
|
1923
|
+
protoOf(call$slambda).x1o = function ($this$promise, completion) {
|
|
1924
|
+
var i = new call$slambda(this.sco_1, this.tco_1, completion);
|
|
1925
|
+
i.uco_1 = $this$promise;
|
|
1926
1926
|
return i;
|
|
1927
1927
|
};
|
|
1928
1928
|
function call$slambda_0($block, $entry, resultContinuation) {
|
|
1929
1929
|
var i = new call$slambda($block, $entry, resultContinuation);
|
|
1930
1930
|
return constructCallableReference(function ($this$promise, $completion) {
|
|
1931
|
-
return i.
|
|
1931
|
+
return i.vco($this$promise, $completion);
|
|
1932
1932
|
}, 1);
|
|
1933
1933
|
}
|
|
1934
1934
|
var properties_initialized_HeadlessApi_kt_422n3l;
|
|
@@ -1971,11 +1971,11 @@ function steamNotLinkedCode() {
|
|
|
1971
1971
|
}
|
|
1972
1972
|
function minWriteTokenLifetimeMs() {
|
|
1973
1973
|
_init_properties_HeadlessConstants_kt__7kny8s();
|
|
1974
|
-
return toNumber(_Duration___get_inWholeMilliseconds__impl__msfiry(Companion_getInstance_1().
|
|
1974
|
+
return toNumber(_Duration___get_inWholeMilliseconds__impl__msfiry(Companion_getInstance_1().mbp_1));
|
|
1975
1975
|
}
|
|
1976
1976
|
function maxClockSkewMs() {
|
|
1977
1977
|
_init_properties_HeadlessConstants_kt__7kny8s();
|
|
1978
|
-
return toNumber(_Duration___get_inWholeMilliseconds__impl__msfiry(Companion_getInstance_1().
|
|
1978
|
+
return toNumber(_Duration___get_inWholeMilliseconds__impl__msfiry(Companion_getInstance_1().qbp_1));
|
|
1979
1979
|
}
|
|
1980
1980
|
function defaultNotaryUrl() {
|
|
1981
1981
|
_init_properties_HeadlessConstants_kt__7kny8s();
|
|
@@ -1994,8 +1994,8 @@ function frozen(entries) {
|
|
|
1994
1994
|
while (inductionVariable < last) {
|
|
1995
1995
|
var element = entries[inductionVariable];
|
|
1996
1996
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1997
|
-
var key = element.
|
|
1998
|
-
var value = element.
|
|
1997
|
+
var key = element.gh();
|
|
1998
|
+
var value = element.hh();
|
|
1999
1999
|
o[key] = value;
|
|
2000
2000
|
}
|
|
2001
2001
|
return Object.freeze(o);
|
|
@@ -2043,7 +2043,7 @@ var properties_initialized_HeadlessConstants_kt_kpx2y;
|
|
|
2043
2043
|
function _init_properties_HeadlessConstants_kt__7kny8s() {
|
|
2044
2044
|
if (!properties_initialized_HeadlessConstants_kt_kpx2y) {
|
|
2045
2045
|
properties_initialized_HeadlessConstants_kt_kpx2y = true;
|
|
2046
|
-
REASONS = frozen([to('offerWritesDisabled', 'refused: offer writes are disabled on this client'), to('steamSessionMissing', 'not run: no usable Steam session on this client'), to('tokenExpiringDefer', 'the Steam token expires before a create could be confirmed'), to('proofTokenExpiring', 'the Steam token is too close to its expiry to start a proof'), to('noProver', ProofSkipReason_NO_PROVER_getInstance().
|
|
2046
|
+
REASONS = frozen([to('offerWritesDisabled', 'refused: offer writes are disabled on this client'), to('steamSessionMissing', 'not run: no usable Steam session on this client'), to('tokenExpiringDefer', 'the Steam token expires before a create could be confirmed'), to('proofTokenExpiring', 'the Steam token is too close to its expiry to start a proof'), to('noProver', ProofSkipReason_NO_PROVER_getInstance().p5v_1)]);
|
|
2047
2047
|
// Inline function 'kotlin.collections.map' call
|
|
2048
2048
|
var this_0 = get_entries();
|
|
2049
2049
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -2051,7 +2051,7 @@ function _init_properties_HeadlessConstants_kt__7kny8s() {
|
|
|
2051
2051
|
var _iterator__ex2g4s = this_0.t();
|
|
2052
2052
|
while (_iterator__ex2g4s.u()) {
|
|
2053
2053
|
var item = _iterator__ex2g4s.v();
|
|
2054
|
-
var tmp$ret$2 = to(camelCase(item.z_1), item.
|
|
2054
|
+
var tmp$ret$2 = to(camelCase(item.z_1), item.p5u_1);
|
|
2055
2055
|
destination.e1(tmp$ret$2);
|
|
2056
2056
|
}
|
|
2057
2057
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
@@ -2064,7 +2064,7 @@ function _init_properties_HeadlessConstants_kt__7kny8s() {
|
|
|
2064
2064
|
var _iterator__ex2g4s_0 = this_1.t();
|
|
2065
2065
|
while (_iterator__ex2g4s_0.u()) {
|
|
2066
2066
|
var item_0 = _iterator__ex2g4s_0.v();
|
|
2067
|
-
var tmp$ret$2_0 = to(camelCase(item_0.z_1), item_0.
|
|
2067
|
+
var tmp$ret$2_0 = to(camelCase(item_0.z_1), item_0.g5t_1);
|
|
2068
2068
|
destination_0.e1(tmp$ret$2_0);
|
|
2069
2069
|
}
|
|
2070
2070
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
@@ -2073,20 +2073,20 @@ function _init_properties_HeadlessConstants_kt__7kny8s() {
|
|
|
2073
2073
|
}
|
|
2074
2074
|
}
|
|
2075
2075
|
function safeName($this, key) {
|
|
2076
|
-
return $this.
|
|
2076
|
+
return $this.wcl_1.qd(key) ? key : '(a key that is not an option name)';
|
|
2077
2077
|
}
|
|
2078
2078
|
function Companion_8() {
|
|
2079
2079
|
Companion_instance_11 = this;
|
|
2080
|
-
this.
|
|
2081
|
-
this.
|
|
2080
|
+
this.vcl_1 = setOf(['dataDir', 'baseUrl', 'steamWrites', 'notaryUrl', 'onEvent', 'nowMs', 'prover', 'onProofOutcome', 'onProverLine']);
|
|
2081
|
+
this.wcl_1 = Regex_init_$Create$('^[A-Za-z][A-Za-z0-9]{0,39}$');
|
|
2082
2082
|
}
|
|
2083
|
-
protoOf(Companion_8).
|
|
2083
|
+
protoOf(Companion_8).xcl = function (options) {
|
|
2084
2084
|
// Inline function 'kotlin.require' call
|
|
2085
2085
|
if (!(typeof options === 'object' && options != null)) {
|
|
2086
2086
|
var message = 'options must be an object';
|
|
2087
2087
|
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
2088
2088
|
}
|
|
2089
|
-
this.
|
|
2089
|
+
this.wco(options, this.vcl_1, '');
|
|
2090
2090
|
var dataDir = options.dataDir;
|
|
2091
2091
|
var tmp;
|
|
2092
2092
|
if (typeof dataDir === 'string') {
|
|
@@ -2101,32 +2101,32 @@ protoOf(Companion_8).ubz = function (options) {
|
|
|
2101
2101
|
var message_0 = 'dataDir must be a non-empty string';
|
|
2102
2102
|
throw IllegalArgumentException_init_$Create$(toString_0(message_0));
|
|
2103
2103
|
}
|
|
2104
|
-
var tmp0_elvis_lhs = this.
|
|
2104
|
+
var tmp0_elvis_lhs = this.xco(options.baseUrl, 'baseUrl', 'string');
|
|
2105
2105
|
var baseUrl = tmp0_elvis_lhs == null ? 'https://api.dmarket.com' : tmp0_elvis_lhs;
|
|
2106
2106
|
// Inline function 'kotlin.require' call
|
|
2107
2107
|
if (!(startsWith(baseUrl, 'https://') || startsWith(baseUrl, 'http://'))) {
|
|
2108
2108
|
var message_1 = 'baseUrl must be an http:// or https:// URL';
|
|
2109
2109
|
throw IllegalArgumentException_init_$Create$(toString_0(message_1));
|
|
2110
2110
|
}
|
|
2111
|
-
var tmp1_elvis_lhs = this.
|
|
2111
|
+
var tmp1_elvis_lhs = this.xco(options.notaryUrl, 'notaryUrl', 'string');
|
|
2112
2112
|
var notaryUrl = tmp1_elvis_lhs == null ? 'wss://api.dmarket.com/provenance/v1/' : tmp1_elvis_lhs;
|
|
2113
2113
|
// Inline function 'kotlin.require' call
|
|
2114
2114
|
if (!(startsWith(notaryUrl, 'wss://') || startsWith(notaryUrl, 'ws://'))) {
|
|
2115
2115
|
var message_2 = 'notaryUrl must be a ws:// or wss:// URL';
|
|
2116
2116
|
throw IllegalArgumentException_init_$Create$(toString_0(message_2));
|
|
2117
2117
|
}
|
|
2118
|
-
var tmp2_elvis_lhs = this.
|
|
2118
|
+
var tmp2_elvis_lhs = this.xco(options.steamWrites, 'steamWrites', 'boolean');
|
|
2119
2119
|
var steamWrites = tmp2_elvis_lhs == null ? true : tmp2_elvis_lhs;
|
|
2120
|
-
var onEvent = this.
|
|
2121
|
-
var nowMs = this.
|
|
2122
|
-
var proverOption = this.
|
|
2123
|
-
var prover = proverOption != null ? Companion_getInstance_13().
|
|
2124
|
-
var onProofOutcome = this.
|
|
2125
|
-
var onProverLine = this.
|
|
2126
|
-
var tmp4_elvis_lhs = prover == null ? null : prover.
|
|
2120
|
+
var onEvent = this.xco(options.onEvent, 'onEvent', 'function');
|
|
2121
|
+
var nowMs = this.xco(options.nowMs, 'nowMs', 'function');
|
|
2122
|
+
var proverOption = this.xco(options.prover, 'prover', 'object');
|
|
2123
|
+
var prover = proverOption != null ? Companion_getInstance_13().xcl(proverOption) : null;
|
|
2124
|
+
var onProofOutcome = this.xco(options.onProofOutcome, 'onProofOutcome', 'function');
|
|
2125
|
+
var onProverLine = this.xco(options.onProverLine, 'onProverLine', 'function');
|
|
2126
|
+
var tmp4_elvis_lhs = prover == null ? null : prover.ncm_1;
|
|
2127
2127
|
return new HeadlessOptions(dataDir, baseUrl, steamWrites, tmp4_elvis_lhs == null ? notaryUrl : tmp4_elvis_lhs, onEvent, nowMs, prover, onProofOutcome, onProverLine);
|
|
2128
2128
|
};
|
|
2129
|
-
protoOf(Companion_8).
|
|
2129
|
+
protoOf(Companion_8).wco = function (o, known, prefix) {
|
|
2130
2130
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2131
2131
|
var keys = Object.keys(o);
|
|
2132
2132
|
var tmp$ret$1;
|
|
@@ -2152,7 +2152,7 @@ protoOf(Companion_8).tc2 = function (o, known, prefix) {
|
|
|
2152
2152
|
throw IllegalArgumentException_init_$Create$('unknown option: ' + prefix + safeName(Companion_getInstance_11(), tmp0_safe_receiver));
|
|
2153
2153
|
}
|
|
2154
2154
|
};
|
|
2155
|
-
protoOf(Companion_8).
|
|
2155
|
+
protoOf(Companion_8).xco = function (value, name, type) {
|
|
2156
2156
|
if (value == null)
|
|
2157
2157
|
return null;
|
|
2158
2158
|
// Inline function 'kotlin.require' call
|
|
@@ -2170,31 +2170,31 @@ function Companion_getInstance_11() {
|
|
|
2170
2170
|
return Companion_instance_11;
|
|
2171
2171
|
}
|
|
2172
2172
|
function HeadlessOptions$clock$1($now) {
|
|
2173
|
-
this.
|
|
2173
|
+
this.acp_1 = $now;
|
|
2174
2174
|
}
|
|
2175
|
-
protoOf(HeadlessOptions$clock$1).
|
|
2176
|
-
return Companion_getInstance_0().
|
|
2175
|
+
protoOf(HeadlessOptions$clock$1).rp = function () {
|
|
2176
|
+
return Companion_getInstance_0().df(numberToLong(this.acp_1()));
|
|
2177
2177
|
};
|
|
2178
2178
|
function HeadlessOptions$eventObserver$1($callback) {
|
|
2179
|
-
this.
|
|
2179
|
+
this.bcp_1 = $callback;
|
|
2180
2180
|
}
|
|
2181
|
-
protoOf(HeadlessOptions$eventObserver$1).
|
|
2182
|
-
return this.
|
|
2181
|
+
protoOf(HeadlessOptions$eventObserver$1).y6d = function (event, $completion) {
|
|
2182
|
+
return this.bcp_1(toWireJson(event));
|
|
2183
2183
|
};
|
|
2184
2184
|
function HeadlessOptions(dataDir, baseUrl, steamWrites, notaryUrl, onEvent, nowMs, prover, onProofOutcome, onProverLine) {
|
|
2185
2185
|
Companion_getInstance_11();
|
|
2186
|
-
this.
|
|
2187
|
-
this.
|
|
2188
|
-
this.
|
|
2189
|
-
this.
|
|
2190
|
-
this.
|
|
2191
|
-
this.
|
|
2192
|
-
this.
|
|
2193
|
-
this.
|
|
2194
|
-
this.
|
|
2195
|
-
}
|
|
2196
|
-
protoOf(HeadlessOptions).
|
|
2197
|
-
var tmp0_safe_receiver = this.
|
|
2186
|
+
this.dcm_1 = dataDir;
|
|
2187
|
+
this.ecm_1 = baseUrl;
|
|
2188
|
+
this.fcm_1 = steamWrites;
|
|
2189
|
+
this.gcm_1 = notaryUrl;
|
|
2190
|
+
this.hcm_1 = onEvent;
|
|
2191
|
+
this.icm_1 = nowMs;
|
|
2192
|
+
this.jcm_1 = prover;
|
|
2193
|
+
this.kcm_1 = onProofOutcome;
|
|
2194
|
+
this.lcm_1 = onProverLine;
|
|
2195
|
+
}
|
|
2196
|
+
protoOf(HeadlessOptions).mcm = function () {
|
|
2197
|
+
var tmp0_safe_receiver = this.icm_1;
|
|
2198
2198
|
var tmp;
|
|
2199
2199
|
if (tmp0_safe_receiver == null) {
|
|
2200
2200
|
tmp = null;
|
|
@@ -2204,8 +2204,8 @@ protoOf(HeadlessOptions).jc0 = function () {
|
|
|
2204
2204
|
}
|
|
2205
2205
|
return tmp;
|
|
2206
2206
|
};
|
|
2207
|
-
protoOf(HeadlessOptions).
|
|
2208
|
-
var tmp0_safe_receiver = this.
|
|
2207
|
+
protoOf(HeadlessOptions).xcm = function () {
|
|
2208
|
+
var tmp0_safe_receiver = this.hcm_1;
|
|
2209
2209
|
var tmp;
|
|
2210
2210
|
if (tmp0_safe_receiver == null) {
|
|
2211
2211
|
tmp = null;
|
|
@@ -2219,26 +2219,26 @@ function plainObject() {
|
|
|
2219
2219
|
return {};
|
|
2220
2220
|
}
|
|
2221
2221
|
function epochMs(_this__u8e3s4) {
|
|
2222
|
-
var tmp1_safe_receiver = _this__u8e3s4 == null ? null : _this__u8e3s4.
|
|
2222
|
+
var tmp1_safe_receiver = _this__u8e3s4 == null ? null : _this__u8e3s4.jq();
|
|
2223
2223
|
return tmp1_safe_receiver == null ? null : toNumber(tmp1_safe_receiver);
|
|
2224
2224
|
}
|
|
2225
2225
|
function toJs(_this__u8e3s4) {
|
|
2226
2226
|
var o = plainObject();
|
|
2227
2227
|
if (_this__u8e3s4 instanceof Held) {
|
|
2228
2228
|
o.type = 'held';
|
|
2229
|
-
o.publicKey = _this__u8e3s4.
|
|
2230
|
-
o.change = _this__u8e3s4.
|
|
2229
|
+
o.publicKey = _this__u8e3s4.i83_1;
|
|
2230
|
+
o.change = _this__u8e3s4.j83_1.z_1;
|
|
2231
2231
|
} else {
|
|
2232
2232
|
if (_this__u8e3s4 instanceof Invalid) {
|
|
2233
2233
|
o.type = 'invalid';
|
|
2234
|
-
o.reason = _this__u8e3s4.
|
|
2234
|
+
o.reason = _this__u8e3s4.k83_1;
|
|
2235
2235
|
} else {
|
|
2236
2236
|
if (_this__u8e3s4 instanceof AccountChanged) {
|
|
2237
2237
|
o.type = 'accountChanged';
|
|
2238
|
-
o.publicKey = _this__u8e3s4.
|
|
2239
|
-
o.heldPublicKey = _this__u8e3s4.
|
|
2240
|
-
o.linkedSteamId = _SteamId___get_value__impl__qjh21u(_this__u8e3s4.
|
|
2241
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
2238
|
+
o.publicKey = _this__u8e3s4.l83_1;
|
|
2239
|
+
o.heldPublicKey = _this__u8e3s4.m83_1;
|
|
2240
|
+
o.linkedSteamId = _SteamId___get_value__impl__qjh21u(_this__u8e3s4.n83_1);
|
|
2241
|
+
var tmp1_safe_receiver = _this__u8e3s4.o83_1;
|
|
2242
2242
|
var tmp;
|
|
2243
2243
|
var tmp_0 = tmp1_safe_receiver;
|
|
2244
2244
|
if ((tmp_0 == null ? null : new SteamId(tmp_0)) == null) {
|
|
@@ -2250,8 +2250,8 @@ function toJs(_this__u8e3s4) {
|
|
|
2250
2250
|
} else {
|
|
2251
2251
|
if (_this__u8e3s4 instanceof Unverified) {
|
|
2252
2252
|
o.type = 'unverified';
|
|
2253
|
-
o.publicKey = _this__u8e3s4.
|
|
2254
|
-
o.reason = _this__u8e3s4.
|
|
2253
|
+
o.publicKey = _this__u8e3s4.p83_1;
|
|
2254
|
+
o.reason = _this__u8e3s4.q83_1;
|
|
2255
2255
|
} else {
|
|
2256
2256
|
noWhenBranchMatchedException();
|
|
2257
2257
|
}
|
|
@@ -2264,13 +2264,13 @@ function toJs_0(_this__u8e3s4) {
|
|
|
2264
2264
|
var o = plainObject();
|
|
2265
2265
|
if (_this__u8e3s4 instanceof Held_0) {
|
|
2266
2266
|
o.type = 'held';
|
|
2267
|
-
o.steamId = _SteamId___get_value__impl__qjh21u(_this__u8e3s4.
|
|
2268
|
-
o.expiresAtMs = epochMs(_this__u8e3s4.
|
|
2267
|
+
o.steamId = _SteamId___get_value__impl__qjh21u(_this__u8e3s4.y88_1);
|
|
2268
|
+
o.expiresAtMs = epochMs(_this__u8e3s4.z88_1);
|
|
2269
2269
|
} else {
|
|
2270
2270
|
if (_this__u8e3s4 instanceof WrongAccount) {
|
|
2271
2271
|
o.type = 'wrongAccount';
|
|
2272
|
-
o.tokenSteamId = _SteamId___get_value__impl__qjh21u(_this__u8e3s4.
|
|
2273
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
2272
|
+
o.tokenSteamId = _SteamId___get_value__impl__qjh21u(_this__u8e3s4.a89_1);
|
|
2273
|
+
var tmp1_safe_receiver = _this__u8e3s4.b89_1;
|
|
2274
2274
|
var tmp;
|
|
2275
2275
|
var tmp_0 = tmp1_safe_receiver;
|
|
2276
2276
|
if ((tmp_0 == null ? null : new SteamId(tmp_0)) == null) {
|
|
@@ -2282,7 +2282,7 @@ function toJs_0(_this__u8e3s4) {
|
|
|
2282
2282
|
} else {
|
|
2283
2283
|
if (_this__u8e3s4 instanceof Invalid_0) {
|
|
2284
2284
|
o.type = 'invalid';
|
|
2285
|
-
o.reason = _this__u8e3s4.
|
|
2285
|
+
o.reason = _this__u8e3s4.c89_1;
|
|
2286
2286
|
} else {
|
|
2287
2287
|
noWhenBranchMatchedException();
|
|
2288
2288
|
}
|
|
@@ -2292,8 +2292,8 @@ function toJs_0(_this__u8e3s4) {
|
|
|
2292
2292
|
}
|
|
2293
2293
|
function toJs_1(_this__u8e3s4) {
|
|
2294
2294
|
var o = plainObject();
|
|
2295
|
-
o.hasTradingApiKey = _this__u8e3s4.
|
|
2296
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2295
|
+
o.hasTradingApiKey = _this__u8e3s4.vbt_1;
|
|
2296
|
+
var tmp0_safe_receiver = _this__u8e3s4.wbt_1;
|
|
2297
2297
|
var tmp;
|
|
2298
2298
|
var tmp_0 = tmp0_safe_receiver;
|
|
2299
2299
|
if ((tmp_0 == null ? null : new SteamId(tmp_0)) == null) {
|
|
@@ -2302,8 +2302,8 @@ function toJs_1(_this__u8e3s4) {
|
|
|
2302
2302
|
tmp = _SteamId___get_value__impl__qjh21u(tmp0_safe_receiver);
|
|
2303
2303
|
}
|
|
2304
2304
|
o.steamTokenSteamId = tmp;
|
|
2305
|
-
o.steamTokenExpiresAtMs = epochMs(_this__u8e3s4.
|
|
2306
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
2305
|
+
o.steamTokenExpiresAtMs = epochMs(_this__u8e3s4.xbt_1);
|
|
2306
|
+
var tmp1_safe_receiver = _this__u8e3s4.ybt_1;
|
|
2307
2307
|
var tmp_1;
|
|
2308
2308
|
var tmp_2 = tmp1_safe_receiver;
|
|
2309
2309
|
if ((tmp_2 == null ? null : new SteamId(tmp_2)) == null) {
|
|
@@ -2312,21 +2312,21 @@ function toJs_1(_this__u8e3s4) {
|
|
|
2312
2312
|
tmp_1 = _SteamId___get_value__impl__qjh21u(tmp1_safe_receiver);
|
|
2313
2313
|
}
|
|
2314
2314
|
o.linkedSteamId = tmp_1;
|
|
2315
|
-
o.readySinceMs = epochMs(_this__u8e3s4.
|
|
2315
|
+
o.readySinceMs = epochMs(_this__u8e3s4.zbt_1);
|
|
2316
2316
|
// Inline function 'kotlin.collections.map' call
|
|
2317
|
-
var this_0 = _this__u8e3s4.
|
|
2317
|
+
var this_0 = _this__u8e3s4.abu_1;
|
|
2318
2318
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2319
2319
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
2320
2320
|
var _iterator__ex2g4s = this_0.t();
|
|
2321
2321
|
while (_iterator__ex2g4s.u()) {
|
|
2322
2322
|
var item = _iterator__ex2g4s.v();
|
|
2323
|
-
var it = item.
|
|
2323
|
+
var it = item.h5t_1;
|
|
2324
2324
|
var tmp$ret$2 = _DealId___get_value__impl__ww6eoe(it);
|
|
2325
2325
|
destination.e1(tmp$ret$2);
|
|
2326
2326
|
}
|
|
2327
2327
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
2328
2328
|
o.trackedDealIds = copyToArray(destination);
|
|
2329
|
-
var tmp2_safe_receiver = _this__u8e3s4.
|
|
2329
|
+
var tmp2_safe_receiver = _this__u8e3s4.bbu_1;
|
|
2330
2330
|
var tmp_3;
|
|
2331
2331
|
var tmp_4 = tmp2_safe_receiver;
|
|
2332
2332
|
if ((tmp_4 == null ? null : new Duration(tmp_4)) == null) {
|
|
@@ -2336,21 +2336,21 @@ function toJs_1(_this__u8e3s4) {
|
|
|
2336
2336
|
}
|
|
2337
2337
|
var tmp3_safe_receiver = tmp_3;
|
|
2338
2338
|
o.clockOffsetMs = tmp3_safe_receiver == null ? null : toNumber(tmp3_safe_receiver);
|
|
2339
|
-
o.clockSkewed = _this__u8e3s4.
|
|
2340
|
-
o.steamNotLinked = _this__u8e3s4.
|
|
2341
|
-
o.updateRequired = _this__u8e3s4.
|
|
2342
|
-
o.updateDueTimeMs = epochMs(_this__u8e3s4.
|
|
2339
|
+
o.clockSkewed = _this__u8e3s4.gbu();
|
|
2340
|
+
o.steamNotLinked = _this__u8e3s4.cbu_1;
|
|
2341
|
+
o.updateRequired = _this__u8e3s4.dbu_1;
|
|
2342
|
+
o.updateDueTimeMs = epochMs(_this__u8e3s4.ebu_1);
|
|
2343
2343
|
var deadlines = plainObject();
|
|
2344
2344
|
// Inline function 'kotlin.collections.forEach' call
|
|
2345
2345
|
// Inline function 'kotlin.collections.iterator' call
|
|
2346
|
-
var _iterator__ex2g4s_0 = _this__u8e3s4.
|
|
2346
|
+
var _iterator__ex2g4s_0 = _this__u8e3s4.fbu_1.n1().t();
|
|
2347
2347
|
while (_iterator__ex2g4s_0.u()) {
|
|
2348
2348
|
var element = _iterator__ex2g4s_0.v();
|
|
2349
2349
|
// Inline function 'kotlin.collections.component1' call
|
|
2350
|
-
var deal = element.o1().
|
|
2350
|
+
var deal = element.o1().h5t_1;
|
|
2351
2351
|
// Inline function 'kotlin.collections.component2' call
|
|
2352
2352
|
var deadline = element.p1();
|
|
2353
|
-
deadlines[_DealId___get_value__impl__ww6eoe(deal)] = toNumber(deadline.
|
|
2353
|
+
deadlines[_DealId___get_value__impl__ww6eoe(deal)] = toNumber(deadline.jq());
|
|
2354
2354
|
}
|
|
2355
2355
|
o.dealDeadlines = deadlines;
|
|
2356
2356
|
return o;
|
|
@@ -2389,10 +2389,10 @@ function join_0($this, parts) {
|
|
|
2389
2389
|
return accumulator;
|
|
2390
2390
|
}
|
|
2391
2391
|
function Companion_9() {
|
|
2392
|
-
this.
|
|
2393
|
-
this.
|
|
2392
|
+
this.ucm_1 = '@dmarket/p2p-tracker-headless';
|
|
2393
|
+
this.vcm_1 = 'prover-child.mjs';
|
|
2394
2394
|
}
|
|
2395
|
-
protoOf(Companion_9).
|
|
2395
|
+
protoOf(Companion_9).wcm = function (packageRoot, assetsDir) {
|
|
2396
2396
|
var tmp1_elvis_lhs = packageRoot == null ? installedRoot(this) : packageRoot;
|
|
2397
2397
|
var tmp;
|
|
2398
2398
|
if (tmp1_elvis_lhs == null) {
|
|
@@ -2405,7 +2405,7 @@ protoOf(Companion_9).tc0 = function (packageRoot, assetsDir) {
|
|
|
2405
2405
|
var root = tmp;
|
|
2406
2406
|
var tmp_0 = join_0(this, [root, 'prover-child.mjs']);
|
|
2407
2407
|
var files = new ProverFiles(tmp_0, assetsDir == null ? root : assetsDir);
|
|
2408
|
-
var required = listOf([files.
|
|
2408
|
+
var required = listOf([files.ycm_1, join_0(this, [files.zcm_1, 'pkg', 'client_wasm_bg.wasm']), join_0(this, [files.zcm_1, 'transport', 'dist', 'node.js'])]);
|
|
2409
2409
|
var tmp$ret$1;
|
|
2410
2410
|
$l$block: {
|
|
2411
2411
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
@@ -2436,11 +2436,11 @@ function Companion_getInstance_12() {
|
|
|
2436
2436
|
return Companion_instance_12;
|
|
2437
2437
|
}
|
|
2438
2438
|
function ProverFiles(script, assetsDir) {
|
|
2439
|
-
this.
|
|
2440
|
-
this.
|
|
2439
|
+
this.ycm_1 = script;
|
|
2440
|
+
this.zcm_1 = assetsDir;
|
|
2441
2441
|
}
|
|
2442
2442
|
function whole($this, value, name, range) {
|
|
2443
|
-
var tmp0_elvis_lhs = Companion_getInstance_11().
|
|
2443
|
+
var tmp0_elvis_lhs = Companion_getInstance_11().xco(value, name, 'number');
|
|
2444
2444
|
var tmp;
|
|
2445
2445
|
if (tmp0_elvis_lhs == null) {
|
|
2446
2446
|
return null;
|
|
@@ -2466,7 +2466,7 @@ function whole($this, value, name, range) {
|
|
|
2466
2466
|
return numberToInt(number);
|
|
2467
2467
|
}
|
|
2468
2468
|
function milliseconds($this, value, name) {
|
|
2469
|
-
var tmp0_elvis_lhs = Companion_getInstance_11().
|
|
2469
|
+
var tmp0_elvis_lhs = Companion_getInstance_11().xco(value, name, 'number');
|
|
2470
2470
|
var tmp;
|
|
2471
2471
|
if (tmp0_elvis_lhs == null) {
|
|
2472
2472
|
return null;
|
|
@@ -2493,24 +2493,24 @@ function milliseconds($this, value, name) {
|
|
|
2493
2493
|
}
|
|
2494
2494
|
function Companion_10() {
|
|
2495
2495
|
Companion_instance_13 = this;
|
|
2496
|
-
this.
|
|
2497
|
-
this.
|
|
2496
|
+
this.yco_1 = setOf(['notaryUrl', 'maxConcurrency', 'proofsPerChild', 'threadCount', 'assetsDir', 'connectDeadlineMs', 'sessionDeadlineMs']);
|
|
2497
|
+
this.zco_1 = new ProverLimits();
|
|
2498
2498
|
}
|
|
2499
|
-
protoOf(Companion_10).
|
|
2499
|
+
protoOf(Companion_10).xcl = function (prover) {
|
|
2500
2500
|
var tmp = Array.isArray(prover);
|
|
2501
2501
|
// Inline function 'kotlin.require' call
|
|
2502
2502
|
if (!!((!(tmp == null) ? typeof tmp === 'boolean' : false) ? tmp : THROW_CCE())) {
|
|
2503
2503
|
var message = 'prover must be an object';
|
|
2504
2504
|
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
2505
2505
|
}
|
|
2506
|
-
Companion_getInstance_11().
|
|
2507
|
-
var notaryUrl = Companion_getInstance_11().
|
|
2506
|
+
Companion_getInstance_11().wco(prover, this.yco_1, 'prover.');
|
|
2507
|
+
var notaryUrl = Companion_getInstance_11().xco(prover.notaryUrl, 'prover.notaryUrl', 'string');
|
|
2508
2508
|
// Inline function 'kotlin.require' call
|
|
2509
2509
|
if (!(notaryUrl == null || startsWith(notaryUrl, 'wss://') || startsWith(notaryUrl, 'ws://'))) {
|
|
2510
2510
|
var message_0 = 'prover.notaryUrl must be a ws:// or wss:// URL';
|
|
2511
2511
|
throw IllegalArgumentException_init_$Create$(toString_0(message_0));
|
|
2512
2512
|
}
|
|
2513
|
-
var assetsDir = Companion_getInstance_11().
|
|
2513
|
+
var assetsDir = Companion_getInstance_11().xco(prover.assetsDir, 'prover.assetsDir', 'string');
|
|
2514
2514
|
var tmp_0;
|
|
2515
2515
|
if (assetsDir == null) {
|
|
2516
2516
|
tmp_0 = true;
|
|
@@ -2533,7 +2533,7 @@ protoOf(Companion_10).ubz = function (prover) {
|
|
|
2533
2533
|
var tmp_4;
|
|
2534
2534
|
var tmp_5 = tmp3_elvis_lhs;
|
|
2535
2535
|
if ((tmp_5 == null ? null : new Duration(tmp_5)) == null) {
|
|
2536
|
-
tmp_4 = this.
|
|
2536
|
+
tmp_4 = this.zco_1.ccp_1;
|
|
2537
2537
|
} else {
|
|
2538
2538
|
tmp_4 = tmp3_elvis_lhs;
|
|
2539
2539
|
}
|
|
@@ -2542,7 +2542,7 @@ protoOf(Companion_10).ubz = function (prover) {
|
|
|
2542
2542
|
var tmp_7;
|
|
2543
2543
|
var tmp_8 = tmp4_elvis_lhs;
|
|
2544
2544
|
if ((tmp_8 == null ? null : new Duration(tmp_8)) == null) {
|
|
2545
|
-
tmp_7 = this.
|
|
2545
|
+
tmp_7 = this.zco_1.dcp_1;
|
|
2546
2546
|
} else {
|
|
2547
2547
|
tmp_7 = tmp4_elvis_lhs;
|
|
2548
2548
|
}
|
|
@@ -2556,13 +2556,13 @@ function Companion_getInstance_13() {
|
|
|
2556
2556
|
}
|
|
2557
2557
|
function ProverOptions(notaryUrl, maxConcurrency, proofsPerChild, threadCount, assetsDir, connectDeadline, sessionDeadline) {
|
|
2558
2558
|
Companion_getInstance_13();
|
|
2559
|
-
this.
|
|
2560
|
-
this.
|
|
2561
|
-
this.
|
|
2562
|
-
this.
|
|
2563
|
-
this.
|
|
2564
|
-
this.
|
|
2565
|
-
this.
|
|
2559
|
+
this.ncm_1 = notaryUrl;
|
|
2560
|
+
this.ocm_1 = maxConcurrency;
|
|
2561
|
+
this.pcm_1 = proofsPerChild;
|
|
2562
|
+
this.qcm_1 = threadCount;
|
|
2563
|
+
this.rcm_1 = assetsDir;
|
|
2564
|
+
this.scm_1 = connectDeadline;
|
|
2565
|
+
this.tcm_1 = sessionDeadline;
|
|
2566
2566
|
}
|
|
2567
2567
|
function file($this, key) {
|
|
2568
2568
|
// Inline function 'kotlin.require' call
|
|
@@ -2571,18 +2571,18 @@ function file($this, key) {
|
|
|
2571
2571
|
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
2572
2572
|
}
|
|
2573
2573
|
// Inline function 'kotlin.require' call
|
|
2574
|
-
if (!Companion_getInstance_14().
|
|
2574
|
+
if (!Companion_getInstance_14().gcp_1.qd(key)) {
|
|
2575
2575
|
var message_0 = 'storage key must be [A-Za-z0-9._-]+: ' + key;
|
|
2576
2576
|
throw IllegalArgumentException_init_$Create$(toString_0(message_0));
|
|
2577
2577
|
}
|
|
2578
|
-
return join($this.
|
|
2578
|
+
return join($this.kcp_1, key);
|
|
2579
2579
|
}
|
|
2580
2580
|
function Companion_11() {
|
|
2581
2581
|
Companion_instance_14 = this;
|
|
2582
|
-
this.
|
|
2583
|
-
this.
|
|
2584
|
-
this.
|
|
2585
|
-
this.
|
|
2582
|
+
this.gcp_1 = Regex_init_$Create$('^[A-Za-z0-9._-]+$');
|
|
2583
|
+
this.hcp_1 = 6;
|
|
2584
|
+
this.icp_1 = 448;
|
|
2585
|
+
this.jcp_1 = 384;
|
|
2586
2586
|
}
|
|
2587
2587
|
var Companion_instance_14;
|
|
2588
2588
|
function Companion_getInstance_14() {
|
|
@@ -2592,35 +2592,35 @@ function Companion_getInstance_14() {
|
|
|
2592
2592
|
}
|
|
2593
2593
|
function $getCOROUTINE$(_this__u8e3s4, key, resultContinuation) {
|
|
2594
2594
|
CoroutineImpl.call(this, resultContinuation);
|
|
2595
|
-
this.
|
|
2596
|
-
this.
|
|
2595
|
+
this.ucp_1 = _this__u8e3s4;
|
|
2596
|
+
this.vcp_1 = key;
|
|
2597
2597
|
}
|
|
2598
|
-
protoOf($getCOROUTINE$).
|
|
2599
|
-
var suspendResult = this.
|
|
2598
|
+
protoOf($getCOROUTINE$).q9 = function () {
|
|
2599
|
+
var suspendResult = this.k9_1;
|
|
2600
2600
|
$sm: do
|
|
2601
2601
|
try {
|
|
2602
|
-
var tmp = this.
|
|
2602
|
+
var tmp = this.i9_1;
|
|
2603
2603
|
switch (tmp) {
|
|
2604
2604
|
case 0:
|
|
2605
|
-
this.
|
|
2606
|
-
this.
|
|
2607
|
-
this.
|
|
2608
|
-
suspendResult = await_0(readFile(file(this.
|
|
2605
|
+
this.j9_1 = 3;
|
|
2606
|
+
this.j9_1 = 2;
|
|
2607
|
+
this.i9_1 = 1;
|
|
2608
|
+
suspendResult = await_0(readFile(file(this.ucp_1, this.vcp_1), 'utf8'), this);
|
|
2609
2609
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2610
2610
|
return suspendResult;
|
|
2611
2611
|
}
|
|
2612
2612
|
|
|
2613
2613
|
continue $sm;
|
|
2614
2614
|
case 1:
|
|
2615
|
-
this.
|
|
2616
|
-
this.
|
|
2617
|
-
this.
|
|
2615
|
+
this.wcp_1 = suspendResult;
|
|
2616
|
+
this.j9_1 = 3;
|
|
2617
|
+
this.i9_1 = 4;
|
|
2618
2618
|
continue $sm;
|
|
2619
2619
|
case 2:
|
|
2620
|
-
this.
|
|
2621
|
-
var tmp_0 = this.
|
|
2620
|
+
this.j9_1 = 3;
|
|
2621
|
+
var tmp_0 = this.l9_1;
|
|
2622
2622
|
if (tmp_0 instanceof Error) {
|
|
2623
|
-
var e = this.
|
|
2623
|
+
var e = this.l9_1;
|
|
2624
2624
|
var tmp_1 = this;
|
|
2625
2625
|
var tmp_2;
|
|
2626
2626
|
if (nodeErrorCode(e) === 'ENOENT') {
|
|
@@ -2628,81 +2628,81 @@ protoOf($getCOROUTINE$).o9 = function () {
|
|
|
2628
2628
|
} else {
|
|
2629
2629
|
throw e;
|
|
2630
2630
|
}
|
|
2631
|
-
tmp_1.
|
|
2632
|
-
this.
|
|
2631
|
+
tmp_1.wcp_1 = tmp_2;
|
|
2632
|
+
this.i9_1 = 4;
|
|
2633
2633
|
continue $sm;
|
|
2634
2634
|
} else {
|
|
2635
|
-
throw this.
|
|
2635
|
+
throw this.l9_1;
|
|
2636
2636
|
}
|
|
2637
2637
|
|
|
2638
2638
|
case 3:
|
|
2639
|
-
throw this.
|
|
2639
|
+
throw this.l9_1;
|
|
2640
2640
|
case 4:
|
|
2641
|
-
this.
|
|
2642
|
-
return this.
|
|
2641
|
+
this.j9_1 = 3;
|
|
2642
|
+
return this.wcp_1;
|
|
2643
2643
|
}
|
|
2644
2644
|
} catch ($p) {
|
|
2645
2645
|
var e_0 = $p;
|
|
2646
|
-
if (this.
|
|
2646
|
+
if (this.j9_1 === 3) {
|
|
2647
2647
|
throw e_0;
|
|
2648
2648
|
} else {
|
|
2649
|
-
this.
|
|
2650
|
-
this.
|
|
2649
|
+
this.i9_1 = this.j9_1;
|
|
2650
|
+
this.l9_1 = e_0;
|
|
2651
2651
|
}
|
|
2652
2652
|
}
|
|
2653
2653
|
while (true);
|
|
2654
2654
|
};
|
|
2655
2655
|
function $setCOROUTINE$(_this__u8e3s4, key, value, resultContinuation) {
|
|
2656
2656
|
CoroutineImpl.call(this, resultContinuation);
|
|
2657
|
-
this.
|
|
2658
|
-
this.
|
|
2659
|
-
this.
|
|
2657
|
+
this.fcq_1 = _this__u8e3s4;
|
|
2658
|
+
this.gcq_1 = key;
|
|
2659
|
+
this.hcq_1 = value;
|
|
2660
2660
|
}
|
|
2661
|
-
protoOf($setCOROUTINE$).
|
|
2662
|
-
var suspendResult = this.
|
|
2661
|
+
protoOf($setCOROUTINE$).q9 = function () {
|
|
2662
|
+
var suspendResult = this.k9_1;
|
|
2663
2663
|
$sm: do
|
|
2664
2664
|
try {
|
|
2665
|
-
var tmp = this.
|
|
2665
|
+
var tmp = this.i9_1;
|
|
2666
2666
|
switch (tmp) {
|
|
2667
2667
|
case 0:
|
|
2668
|
-
this.
|
|
2669
|
-
this.
|
|
2670
|
-
if (!this.
|
|
2671
|
-
this.
|
|
2668
|
+
this.j9_1 = 5;
|
|
2669
|
+
this.icq_1 = file(this.fcq_1, this.gcq_1);
|
|
2670
|
+
if (!this.fcq_1.lcp_1) {
|
|
2671
|
+
this.i9_1 = 1;
|
|
2672
2672
|
var this_0 = {};
|
|
2673
2673
|
this_0.recursive = true;
|
|
2674
2674
|
this_0.mode = 448;
|
|
2675
|
-
suspendResult = await_0(mkdir(this.
|
|
2675
|
+
suspendResult = await_0(mkdir(this.fcq_1.kcp_1, this_0), this);
|
|
2676
2676
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2677
2677
|
return suspendResult;
|
|
2678
2678
|
}
|
|
2679
2679
|
continue $sm;
|
|
2680
2680
|
} else {
|
|
2681
|
-
this.
|
|
2681
|
+
this.i9_1 = 2;
|
|
2682
2682
|
continue $sm;
|
|
2683
2683
|
}
|
|
2684
2684
|
|
|
2685
2685
|
case 1:
|
|
2686
|
-
this.
|
|
2687
|
-
this.
|
|
2686
|
+
this.fcq_1.lcp_1 = true;
|
|
2687
|
+
this.i9_1 = 2;
|
|
2688
2688
|
continue $sm;
|
|
2689
2689
|
case 2:
|
|
2690
2690
|
var tmp_0 = this;
|
|
2691
2691
|
var tmp_1 = randomBytes(6).toString('hex');
|
|
2692
|
-
tmp_0.
|
|
2693
|
-
this.
|
|
2692
|
+
tmp_0.jcq_1 = this.icq_1 + '.' + ((!(tmp_1 == null) ? typeof tmp_1 === 'string' : false) ? tmp_1 : THROW_CCE()) + '.tmp';
|
|
2693
|
+
this.i9_1 = 3;
|
|
2694
2694
|
var this_1 = {};
|
|
2695
2695
|
this_1.encoding = 'utf8';
|
|
2696
2696
|
this_1.mode = 384;
|
|
2697
|
-
suspendResult = await_0(writeFile(this.
|
|
2697
|
+
suspendResult = await_0(writeFile(this.jcq_1, this.hcq_1, this_1), this);
|
|
2698
2698
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2699
2699
|
return suspendResult;
|
|
2700
2700
|
}
|
|
2701
2701
|
|
|
2702
2702
|
continue $sm;
|
|
2703
2703
|
case 3:
|
|
2704
|
-
this.
|
|
2705
|
-
suspendResult = await_0(rename(this.
|
|
2704
|
+
this.i9_1 = 4;
|
|
2705
|
+
suspendResult = await_0(rename(this.jcq_1, this.icq_1), this);
|
|
2706
2706
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2707
2707
|
return suspendResult;
|
|
2708
2708
|
}
|
|
@@ -2711,100 +2711,100 @@ protoOf($setCOROUTINE$).o9 = function () {
|
|
|
2711
2711
|
case 4:
|
|
2712
2712
|
return Unit_instance;
|
|
2713
2713
|
case 5:
|
|
2714
|
-
throw this.
|
|
2714
|
+
throw this.l9_1;
|
|
2715
2715
|
}
|
|
2716
2716
|
} catch ($p) {
|
|
2717
2717
|
var e = $p;
|
|
2718
|
-
if (this.
|
|
2718
|
+
if (this.j9_1 === 5) {
|
|
2719
2719
|
throw e;
|
|
2720
2720
|
} else {
|
|
2721
|
-
this.
|
|
2722
|
-
this.
|
|
2721
|
+
this.i9_1 = this.j9_1;
|
|
2722
|
+
this.l9_1 = e;
|
|
2723
2723
|
}
|
|
2724
2724
|
}
|
|
2725
2725
|
while (true);
|
|
2726
2726
|
};
|
|
2727
2727
|
function $removeCOROUTINE$(_this__u8e3s4, key, resultContinuation) {
|
|
2728
2728
|
CoroutineImpl.call(this, resultContinuation);
|
|
2729
|
-
this.
|
|
2730
|
-
this.
|
|
2729
|
+
this.scq_1 = _this__u8e3s4;
|
|
2730
|
+
this.tcq_1 = key;
|
|
2731
2731
|
}
|
|
2732
|
-
protoOf($removeCOROUTINE$).
|
|
2733
|
-
var suspendResult = this.
|
|
2732
|
+
protoOf($removeCOROUTINE$).q9 = function () {
|
|
2733
|
+
var suspendResult = this.k9_1;
|
|
2734
2734
|
$sm: do
|
|
2735
2735
|
try {
|
|
2736
|
-
var tmp = this.
|
|
2736
|
+
var tmp = this.i9_1;
|
|
2737
2737
|
switch (tmp) {
|
|
2738
2738
|
case 0:
|
|
2739
|
-
this.
|
|
2740
|
-
this.
|
|
2741
|
-
this.
|
|
2742
|
-
suspendResult = await_0(unlink(file(this.
|
|
2739
|
+
this.j9_1 = 3;
|
|
2740
|
+
this.j9_1 = 2;
|
|
2741
|
+
this.i9_1 = 1;
|
|
2742
|
+
suspendResult = await_0(unlink(file(this.scq_1, this.tcq_1)), this);
|
|
2743
2743
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2744
2744
|
return suspendResult;
|
|
2745
2745
|
}
|
|
2746
2746
|
|
|
2747
2747
|
continue $sm;
|
|
2748
2748
|
case 1:
|
|
2749
|
-
this.
|
|
2750
|
-
this.
|
|
2749
|
+
this.j9_1 = 3;
|
|
2750
|
+
this.i9_1 = 4;
|
|
2751
2751
|
continue $sm;
|
|
2752
2752
|
case 2:
|
|
2753
|
-
this.
|
|
2754
|
-
var tmp_0 = this.
|
|
2753
|
+
this.j9_1 = 3;
|
|
2754
|
+
var tmp_0 = this.l9_1;
|
|
2755
2755
|
if (tmp_0 instanceof Error) {
|
|
2756
|
-
var e = this.
|
|
2756
|
+
var e = this.l9_1;
|
|
2757
2757
|
if (!(nodeErrorCode(e) === 'ENOENT'))
|
|
2758
2758
|
throw e;
|
|
2759
|
-
this.
|
|
2759
|
+
this.i9_1 = 4;
|
|
2760
2760
|
continue $sm;
|
|
2761
2761
|
} else {
|
|
2762
|
-
throw this.
|
|
2762
|
+
throw this.l9_1;
|
|
2763
2763
|
}
|
|
2764
2764
|
|
|
2765
2765
|
case 3:
|
|
2766
|
-
throw this.
|
|
2766
|
+
throw this.l9_1;
|
|
2767
2767
|
case 4:
|
|
2768
|
-
this.
|
|
2768
|
+
this.j9_1 = 3;
|
|
2769
2769
|
return Unit_instance;
|
|
2770
2770
|
}
|
|
2771
2771
|
} catch ($p) {
|
|
2772
2772
|
var e_0 = $p;
|
|
2773
|
-
if (this.
|
|
2773
|
+
if (this.j9_1 === 3) {
|
|
2774
2774
|
throw e_0;
|
|
2775
2775
|
} else {
|
|
2776
|
-
this.
|
|
2777
|
-
this.
|
|
2776
|
+
this.i9_1 = this.j9_1;
|
|
2777
|
+
this.l9_1 = e_0;
|
|
2778
2778
|
}
|
|
2779
2779
|
}
|
|
2780
2780
|
while (true);
|
|
2781
2781
|
};
|
|
2782
2782
|
function FileKeyValueStore(dir) {
|
|
2783
2783
|
Companion_getInstance_14();
|
|
2784
|
-
this.
|
|
2785
|
-
this.
|
|
2784
|
+
this.kcp_1 = dir;
|
|
2785
|
+
this.lcp_1 = false;
|
|
2786
2786
|
}
|
|
2787
|
-
protoOf(FileKeyValueStore).
|
|
2787
|
+
protoOf(FileKeyValueStore).e6o = function (key, $completion) {
|
|
2788
2788
|
var tmp = new $getCOROUTINE$(this, key, $completion);
|
|
2789
|
-
tmp.
|
|
2790
|
-
tmp.
|
|
2791
|
-
return tmp.
|
|
2789
|
+
tmp.k9_1 = Unit_instance;
|
|
2790
|
+
tmp.l9_1 = null;
|
|
2791
|
+
return tmp.q9();
|
|
2792
2792
|
};
|
|
2793
|
-
protoOf(FileKeyValueStore).
|
|
2793
|
+
protoOf(FileKeyValueStore).f6o = function (key, value, $completion) {
|
|
2794
2794
|
var tmp = new $setCOROUTINE$(this, key, value, $completion);
|
|
2795
|
-
tmp.
|
|
2796
|
-
tmp.
|
|
2797
|
-
return tmp.
|
|
2795
|
+
tmp.k9_1 = Unit_instance;
|
|
2796
|
+
tmp.l9_1 = null;
|
|
2797
|
+
return tmp.q9();
|
|
2798
2798
|
};
|
|
2799
|
-
protoOf(FileKeyValueStore).
|
|
2799
|
+
protoOf(FileKeyValueStore).g6o = function (key, $completion) {
|
|
2800
2800
|
var tmp = new $removeCOROUTINE$(this, key, $completion);
|
|
2801
|
-
tmp.
|
|
2802
|
-
tmp.
|
|
2803
|
-
return tmp.
|
|
2801
|
+
tmp.k9_1 = Unit_instance;
|
|
2802
|
+
tmp.l9_1 = null;
|
|
2803
|
+
return tmp.q9();
|
|
2804
2804
|
};
|
|
2805
2805
|
function Companion_12() {
|
|
2806
2806
|
Companion_instance_15 = this;
|
|
2807
|
-
this.
|
|
2807
|
+
this.ucq_1 = Regex_init_$Create$('^[0-9]{1,20}$');
|
|
2808
2808
|
}
|
|
2809
2809
|
var Companion_instance_15;
|
|
2810
2810
|
function Companion_getInstance_15() {
|
|
@@ -2814,24 +2814,24 @@ function Companion_getInstance_15() {
|
|
|
2814
2814
|
}
|
|
2815
2815
|
function AccountDirectories(dataDir) {
|
|
2816
2816
|
Companion_getInstance_15();
|
|
2817
|
-
this.
|
|
2817
|
+
this.hco_1 = dataDir;
|
|
2818
2818
|
var tmp = this;
|
|
2819
2819
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
2820
|
-
tmp.
|
|
2820
|
+
tmp.ico_1 = LinkedHashMap_init_$Create$();
|
|
2821
2821
|
}
|
|
2822
|
-
protoOf(AccountDirectories).
|
|
2822
|
+
protoOf(AccountDirectories).jco = function (steamId) {
|
|
2823
2823
|
// Inline function 'kotlin.require' call
|
|
2824
|
-
if (!Companion_getInstance_15().
|
|
2824
|
+
if (!Companion_getInstance_15().ucq_1.qd(steamId)) {
|
|
2825
2825
|
var message = 'not a steamid64';
|
|
2826
2826
|
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
2827
2827
|
}
|
|
2828
2828
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
2829
|
-
var this_0 = this.
|
|
2830
|
-
var value = this_0.
|
|
2829
|
+
var this_0 = this.ico_1;
|
|
2830
|
+
var value = this_0.x2(steamId);
|
|
2831
2831
|
var tmp;
|
|
2832
2832
|
if (value == null) {
|
|
2833
|
-
var answer = new FileKeyValueStore(join(this.
|
|
2834
|
-
this_0.
|
|
2833
|
+
var answer = new FileKeyValueStore(join(this.hco_1, steamId));
|
|
2834
|
+
this_0.a3(steamId, answer);
|
|
2835
2835
|
tmp = answer;
|
|
2836
2836
|
} else {
|
|
2837
2837
|
tmp = value;
|
|
@@ -2894,7 +2894,7 @@ function get_PROVER_ENV_ALLOWED() {
|
|
|
2894
2894
|
}
|
|
2895
2895
|
var PROVER_ENV_ALLOWED;
|
|
2896
2896
|
function Companion_13() {
|
|
2897
|
-
this.
|
|
2897
|
+
this.vcq_1 = 5;
|
|
2898
2898
|
}
|
|
2899
2899
|
var Companion_instance_16;
|
|
2900
2900
|
function Companion_getInstance_16() {
|
|
@@ -2929,29 +2929,29 @@ function ProverLimits(connectDeadline, sessionDeadline, proofsPerChild, exitGrac
|
|
|
2929
2929
|
tmp_1 = exitGrace;
|
|
2930
2930
|
}
|
|
2931
2931
|
exitGrace = tmp_1;
|
|
2932
|
-
this.
|
|
2933
|
-
this.
|
|
2934
|
-
this.
|
|
2935
|
-
this.
|
|
2936
|
-
var containsArg = this.
|
|
2932
|
+
this.ccp_1 = connectDeadline;
|
|
2933
|
+
this.dcp_1 = sessionDeadline;
|
|
2934
|
+
this.ecp_1 = proofsPerChild;
|
|
2935
|
+
this.fcp_1 = exitGrace;
|
|
2936
|
+
var containsArg = this.ecp_1;
|
|
2937
2937
|
// Inline function 'kotlin.require' call
|
|
2938
2938
|
if (!(1 <= containsArg ? containsArg <= 5 : false)) {
|
|
2939
|
-
var message = 'proofsPerChild must be 1..5, was ' + this.
|
|
2939
|
+
var message = 'proofsPerChild must be 1..5, was ' + this.ecp_1;
|
|
2940
2940
|
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
2941
2941
|
}
|
|
2942
2942
|
}
|
|
2943
2943
|
function run($this, child, id, proof, upgrade, $completion) {
|
|
2944
2944
|
var tmp = new $runCOROUTINE$($this, child, id, proof, upgrade, $completion);
|
|
2945
|
-
tmp.
|
|
2946
|
-
tmp.
|
|
2947
|
-
return tmp.
|
|
2945
|
+
tmp.k9_1 = Unit_instance;
|
|
2946
|
+
tmp.l9_1 = null;
|
|
2947
|
+
return tmp.q9();
|
|
2948
2948
|
}
|
|
2949
2949
|
function killed($this, cause, detail) {
|
|
2950
2950
|
return new Failed(new ProverKilled(cause, detail));
|
|
2951
2951
|
}
|
|
2952
2952
|
function takeIdle($this) {
|
|
2953
2953
|
while (true) {
|
|
2954
|
-
var tmp0_elvis_lhs = $this.
|
|
2954
|
+
var tmp0_elvis_lhs = $this.ycr_1.wg();
|
|
2955
2955
|
var tmp;
|
|
2956
2956
|
if (tmp0_elvis_lhs == null) {
|
|
2957
2957
|
return null;
|
|
@@ -2959,29 +2959,29 @@ function takeIdle($this) {
|
|
|
2959
2959
|
tmp = tmp0_elvis_lhs;
|
|
2960
2960
|
}
|
|
2961
2961
|
var child = tmp;
|
|
2962
|
-
if (!child.
|
|
2962
|
+
if (!child.ics_1)
|
|
2963
2963
|
return child;
|
|
2964
2964
|
}
|
|
2965
2965
|
}
|
|
2966
2966
|
function release($this, child, outcome) {
|
|
2967
2967
|
var tmp;
|
|
2968
2968
|
if (outcome instanceof Failed) {
|
|
2969
|
-
var tmp_0 = outcome.
|
|
2969
|
+
var tmp_0 = outcome.ibe_1;
|
|
2970
2970
|
tmp = tmp_0 instanceof ProverKilled;
|
|
2971
2971
|
} else {
|
|
2972
2972
|
tmp = false;
|
|
2973
2973
|
}
|
|
2974
2974
|
var killed = tmp;
|
|
2975
|
-
if (killed || child.
|
|
2976
|
-
$this.
|
|
2977
|
-
child.
|
|
2975
|
+
if (killed || child.ics_1 || child.hcs_1 >= $this.rcr_1.ecp_1) {
|
|
2976
|
+
$this.zcr_1.e3(child);
|
|
2977
|
+
child.kcs($this.rcr_1.fcp_1);
|
|
2978
2978
|
} else {
|
|
2979
|
-
$this.
|
|
2979
|
+
$this.ycr_1.ug(child);
|
|
2980
2980
|
}
|
|
2981
2981
|
}
|
|
2982
2982
|
function fork($this) {
|
|
2983
2983
|
var options = {};
|
|
2984
|
-
options.env = toJsObject($this.
|
|
2984
|
+
options.env = toJsObject($this.scr_1);
|
|
2985
2985
|
// Inline function 'kotlin.emptyArray' call
|
|
2986
2986
|
options.execArgv = [];
|
|
2987
2987
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -2990,14 +2990,14 @@ function fork($this) {
|
|
|
2990
2990
|
options.stdio = ['ignore', 'pipe', 'pipe', 'ipc'];
|
|
2991
2991
|
options.serialization = 'json';
|
|
2992
2992
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
2993
|
-
var this_0 = $this.
|
|
2993
|
+
var this_0 = $this.ocr_1;
|
|
2994
2994
|
var tmp$ret$4 = copyToArray(this_0);
|
|
2995
|
-
var process = com_dmarket_p2p_headless_node_nodeChildProcess_579ejd.fork($this.
|
|
2996
|
-
$this.
|
|
2995
|
+
var process = com_dmarket_p2p_headless_node_nodeChildProcess_579ejd.fork($this.ncr_1, tmp$ret$4, options);
|
|
2996
|
+
$this.bcs_1 = $this.bcs_1 + 1 | 0;
|
|
2997
2997
|
// Inline function 'kotlin.also' call
|
|
2998
|
-
var this_1 = new ForkedChild(process, $this.
|
|
2998
|
+
var this_1 = new ForkedChild(process, $this.ucr_1, $this.vcr_1);
|
|
2999
2999
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
3000
|
-
$this.
|
|
3000
|
+
$this.zcr_1.e1(this_1);
|
|
3001
3001
|
return this_1;
|
|
3002
3002
|
}
|
|
3003
3003
|
function ForkedProofHost$_init_$lambda_p9fnmo(_unused_var__etf5q3, _unused_var__etf5q3_0, _unused_var__etf5q3_1) {
|
|
@@ -3010,28 +3010,28 @@ function ForkedProofHost$_init_$lambda_p9fnmo_1(_unused_var__etf5q3, _unused_var
|
|
|
3010
3010
|
return Unit_instance;
|
|
3011
3011
|
}
|
|
3012
3012
|
function ForkedProofHost$run$slambda($child, resultContinuation) {
|
|
3013
|
-
this.
|
|
3013
|
+
this.tcs_1 = $child;
|
|
3014
3014
|
CoroutineImpl.call(this, resultContinuation);
|
|
3015
3015
|
}
|
|
3016
|
-
protoOf(ForkedProofHost$run$slambda).
|
|
3017
|
-
var tmp = this.
|
|
3018
|
-
tmp.
|
|
3019
|
-
tmp.
|
|
3020
|
-
return tmp.
|
|
3016
|
+
protoOf(ForkedProofHost$run$slambda).vcs = function ($this$withTimeoutOrNull, $completion) {
|
|
3017
|
+
var tmp = this.x1o($this$withTimeoutOrNull, $completion);
|
|
3018
|
+
tmp.k9_1 = Unit_instance;
|
|
3019
|
+
tmp.l9_1 = null;
|
|
3020
|
+
return tmp.q9();
|
|
3021
3021
|
};
|
|
3022
|
-
protoOf(ForkedProofHost$run$slambda).
|
|
3023
|
-
return this.
|
|
3022
|
+
protoOf(ForkedProofHost$run$slambda).da = function (p1, $completion) {
|
|
3023
|
+
return this.vcs((!(p1 == null) ? isInterface(p1, CoroutineScope_0) : false) ? p1 : THROW_CCE(), $completion);
|
|
3024
3024
|
};
|
|
3025
|
-
protoOf(ForkedProofHost$run$slambda).
|
|
3026
|
-
var suspendResult = this.
|
|
3025
|
+
protoOf(ForkedProofHost$run$slambda).q9 = function () {
|
|
3026
|
+
var suspendResult = this.k9_1;
|
|
3027
3027
|
$sm: do
|
|
3028
3028
|
try {
|
|
3029
|
-
var tmp = this.
|
|
3029
|
+
var tmp = this.i9_1;
|
|
3030
3030
|
switch (tmp) {
|
|
3031
3031
|
case 0:
|
|
3032
|
-
this.
|
|
3033
|
-
this.
|
|
3034
|
-
suspendResult = this.
|
|
3032
|
+
this.j9_1 = 2;
|
|
3033
|
+
this.i9_1 = 1;
|
|
3034
|
+
suspendResult = this.tcs_1.fcs_1.v1g(this);
|
|
3035
3035
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3036
3036
|
return suspendResult;
|
|
3037
3037
|
}
|
|
@@ -3040,58 +3040,58 @@ protoOf(ForkedProofHost$run$slambda).o9 = function () {
|
|
|
3040
3040
|
case 1:
|
|
3041
3041
|
return suspendResult;
|
|
3042
3042
|
case 2:
|
|
3043
|
-
throw this.
|
|
3043
|
+
throw this.l9_1;
|
|
3044
3044
|
}
|
|
3045
3045
|
} catch ($p) {
|
|
3046
3046
|
var e = $p;
|
|
3047
|
-
if (this.
|
|
3047
|
+
if (this.j9_1 === 2) {
|
|
3048
3048
|
throw e;
|
|
3049
3049
|
} else {
|
|
3050
|
-
this.
|
|
3051
|
-
this.
|
|
3050
|
+
this.i9_1 = this.j9_1;
|
|
3051
|
+
this.l9_1 = e;
|
|
3052
3052
|
}
|
|
3053
3053
|
}
|
|
3054
3054
|
while (true);
|
|
3055
3055
|
};
|
|
3056
|
-
protoOf(ForkedProofHost$run$slambda).
|
|
3057
|
-
var i = new ForkedProofHost$run$slambda(this.
|
|
3058
|
-
i.
|
|
3056
|
+
protoOf(ForkedProofHost$run$slambda).x1o = function ($this$withTimeoutOrNull, completion) {
|
|
3057
|
+
var i = new ForkedProofHost$run$slambda(this.tcs_1, completion);
|
|
3058
|
+
i.ucs_1 = $this$withTimeoutOrNull;
|
|
3059
3059
|
return i;
|
|
3060
3060
|
};
|
|
3061
3061
|
function ForkedProofHost$run$slambda_0($child, resultContinuation) {
|
|
3062
3062
|
var i = new ForkedProofHost$run$slambda($child, resultContinuation);
|
|
3063
3063
|
return constructCallableReference(function ($this$withTimeoutOrNull, $completion) {
|
|
3064
|
-
return i.
|
|
3064
|
+
return i.vcs($this$withTimeoutOrNull, $completion);
|
|
3065
3065
|
}, 1);
|
|
3066
3066
|
}
|
|
3067
3067
|
function $proveCOROUTINE$(_this__u8e3s4, proof, upgrade, resultContinuation) {
|
|
3068
3068
|
CoroutineImpl.call(this, resultContinuation);
|
|
3069
|
-
this.
|
|
3070
|
-
this.
|
|
3071
|
-
this.
|
|
3069
|
+
this.ect_1 = _this__u8e3s4;
|
|
3070
|
+
this.fct_1 = proof;
|
|
3071
|
+
this.gct_1 = upgrade;
|
|
3072
3072
|
}
|
|
3073
|
-
protoOf($proveCOROUTINE$).
|
|
3074
|
-
var suspendResult = this.
|
|
3073
|
+
protoOf($proveCOROUTINE$).q9 = function () {
|
|
3074
|
+
var suspendResult = this.k9_1;
|
|
3075
3075
|
$sm: do
|
|
3076
3076
|
try {
|
|
3077
|
-
var tmp = this.
|
|
3077
|
+
var tmp = this.i9_1;
|
|
3078
3078
|
switch (tmp) {
|
|
3079
3079
|
case 0:
|
|
3080
|
-
this.
|
|
3081
|
-
this.
|
|
3082
|
-
var tmp0_safe_receiver = this.
|
|
3080
|
+
this.j9_1 = 6;
|
|
3081
|
+
this.ict_1 = this.fct_1.bbg_1.qbg_1;
|
|
3082
|
+
var tmp0_safe_receiver = this.ect_1.tcr_1.dck(this.ect_1.qcr_1.rp());
|
|
3083
3083
|
if (tmp0_safe_receiver == null)
|
|
3084
3084
|
null;
|
|
3085
3085
|
else {
|
|
3086
3086
|
var held = new NotStarted(tmp0_safe_receiver);
|
|
3087
|
-
this.
|
|
3087
|
+
this.ect_1.wcr_1(this.ict_1, held);
|
|
3088
3088
|
return new Failed(held);
|
|
3089
3089
|
}
|
|
3090
3090
|
|
|
3091
|
-
this.
|
|
3092
|
-
this.
|
|
3093
|
-
this.
|
|
3094
|
-
suspendResult = this.
|
|
3091
|
+
this.oct_1 = this.ect_1.xcr_1;
|
|
3092
|
+
this.nct_1 = null;
|
|
3093
|
+
this.i9_1 = 1;
|
|
3094
|
+
suspendResult = this.oct_1.o1u(this.nct_1, this);
|
|
3095
3095
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3096
3096
|
return suspendResult;
|
|
3097
3097
|
}
|
|
@@ -3102,57 +3102,57 @@ protoOf($proveCOROUTINE$).o9 = function () {
|
|
|
3102
3102
|
l$ret$1: do {
|
|
3103
3103
|
var tmp_0;
|
|
3104
3104
|
try {
|
|
3105
|
-
var tmp0_elvis_lhs = takeIdle(this.
|
|
3106
|
-
var tmp_1 = tmp0_elvis_lhs == null ? fork(this.
|
|
3107
|
-
var _unary__edvuaz = this.
|
|
3108
|
-
this.
|
|
3105
|
+
var tmp0_elvis_lhs = takeIdle(this.ect_1);
|
|
3106
|
+
var tmp_1 = tmp0_elvis_lhs == null ? fork(this.ect_1) : tmp0_elvis_lhs;
|
|
3107
|
+
var _unary__edvuaz = this.ect_1.acs_1;
|
|
3108
|
+
this.ect_1.acs_1 = _unary__edvuaz + 1 | 0;
|
|
3109
3109
|
tmp$ret$0 = to(tmp_1, _unary__edvuaz);
|
|
3110
3110
|
break l$ret$1;
|
|
3111
3111
|
} catch ($p) {
|
|
3112
3112
|
var tmp_2;
|
|
3113
3113
|
var t = $p;
|
|
3114
|
-
this.
|
|
3114
|
+
this.oct_1.a1u(this.nct_1);
|
|
3115
3115
|
throw t;
|
|
3116
3116
|
}
|
|
3117
3117
|
}
|
|
3118
3118
|
while (false);
|
|
3119
3119
|
var tmp_3 = tmp$ret$0;
|
|
3120
|
-
this.
|
|
3121
|
-
this.
|
|
3122
|
-
var id = tmp_3.
|
|
3123
|
-
this.
|
|
3124
|
-
this.
|
|
3125
|
-
this.
|
|
3126
|
-
suspendResult = run(this.
|
|
3120
|
+
this.oct_1.a1u(this.nct_1);
|
|
3121
|
+
this.jct_1 = tmp_3.gh();
|
|
3122
|
+
var id = tmp_3.hh();
|
|
3123
|
+
this.ect_1.vcr_1('proof started', false, listOf([to('dealId', this.ict_1), to('pid', this.jct_1.gcs_1)]));
|
|
3124
|
+
this.j9_1 = 3;
|
|
3125
|
+
this.i9_1 = 2;
|
|
3126
|
+
suspendResult = run(this.ect_1, this.jct_1, id, this.fct_1, this.gct_1, this);
|
|
3127
3127
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3128
3128
|
return suspendResult;
|
|
3129
3129
|
}
|
|
3130
3130
|
|
|
3131
3131
|
continue $sm;
|
|
3132
3132
|
case 2:
|
|
3133
|
-
this.
|
|
3134
|
-
this.
|
|
3135
|
-
this.
|
|
3133
|
+
this.mct_1 = suspendResult;
|
|
3134
|
+
this.j9_1 = 6;
|
|
3135
|
+
this.i9_1 = 4;
|
|
3136
3136
|
continue $sm;
|
|
3137
3137
|
case 3:
|
|
3138
|
-
this.
|
|
3139
|
-
var tmp_4 = this.
|
|
3138
|
+
this.j9_1 = 6;
|
|
3139
|
+
var tmp_4 = this.l9_1;
|
|
3140
3140
|
if (tmp_4 instanceof CancellationException) {
|
|
3141
|
-
var e = this.
|
|
3141
|
+
var e = this.l9_1;
|
|
3142
3142
|
var tmp_5 = this;
|
|
3143
|
-
this.
|
|
3143
|
+
this.jct_1.pct();
|
|
3144
3144
|
throw e;
|
|
3145
3145
|
} else {
|
|
3146
|
-
throw this.
|
|
3146
|
+
throw this.l9_1;
|
|
3147
3147
|
}
|
|
3148
3148
|
|
|
3149
3149
|
case 4:
|
|
3150
|
-
this.
|
|
3151
|
-
this.
|
|
3152
|
-
this.
|
|
3153
|
-
this.
|
|
3154
|
-
this.
|
|
3155
|
-
suspendResult = this.
|
|
3150
|
+
this.j9_1 = 6;
|
|
3151
|
+
this.hct_1 = this.mct_1;
|
|
3152
|
+
this.lct_1 = this.ect_1.xcr_1;
|
|
3153
|
+
this.kct_1 = null;
|
|
3154
|
+
this.i9_1 = 5;
|
|
3155
|
+
suspendResult = this.lct_1.o1u(this.kct_1, this);
|
|
3156
3156
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3157
3157
|
return suspendResult;
|
|
3158
3158
|
}
|
|
@@ -3162,100 +3162,100 @@ protoOf($proveCOROUTINE$).o9 = function () {
|
|
|
3162
3162
|
l$ret$3: do {
|
|
3163
3163
|
var tmp_6;
|
|
3164
3164
|
try {
|
|
3165
|
-
release(this.
|
|
3165
|
+
release(this.ect_1, this.jct_1, this.hct_1);
|
|
3166
3166
|
break l$ret$3;
|
|
3167
3167
|
} catch ($p_0) {
|
|
3168
3168
|
var tmp_7;
|
|
3169
3169
|
var t_0 = $p_0;
|
|
3170
|
-
this.
|
|
3170
|
+
this.lct_1.a1u(this.kct_1);
|
|
3171
3171
|
throw t_0;
|
|
3172
3172
|
}
|
|
3173
3173
|
}
|
|
3174
3174
|
while (false);
|
|
3175
|
-
this.
|
|
3176
|
-
var tmp1_subject = this.
|
|
3175
|
+
this.lct_1.a1u(this.kct_1);
|
|
3176
|
+
var tmp1_subject = this.hct_1;
|
|
3177
3177
|
if (tmp1_subject instanceof Proved) {
|
|
3178
|
-
this.
|
|
3179
|
-
this.
|
|
3180
|
-
this.
|
|
3178
|
+
this.ect_1.tcr_1.fck();
|
|
3179
|
+
this.ect_1.vcr_1('proof made', false, listOf([to('dealId', this.ict_1), to('pid', this.jct_1.gcs_1)]));
|
|
3180
|
+
this.ect_1.wcr_1(this.ict_1, null);
|
|
3181
3181
|
} else {
|
|
3182
3182
|
if (tmp1_subject instanceof Failed) {
|
|
3183
|
-
this.
|
|
3184
|
-
this.
|
|
3185
|
-
this.
|
|
3183
|
+
this.ect_1.tcr_1.eck(this.hct_1.ibe_1, this.ect_1.qcr_1.rp());
|
|
3184
|
+
this.ect_1.vcr_1('proof failed', true, listOf([to('dealId', this.ict_1), to('pid', this.jct_1.gcs_1), to('reason', ProverOutput_getInstance().s7b(this.hct_1.ibe_1.qbf()))]));
|
|
3185
|
+
this.ect_1.wcr_1(this.ict_1, this.hct_1.ibe_1);
|
|
3186
3186
|
} else {
|
|
3187
3187
|
noWhenBranchMatchedException();
|
|
3188
3188
|
}
|
|
3189
3189
|
}
|
|
3190
3190
|
|
|
3191
|
-
return this.
|
|
3191
|
+
return this.hct_1;
|
|
3192
3192
|
case 6:
|
|
3193
|
-
throw this.
|
|
3193
|
+
throw this.l9_1;
|
|
3194
3194
|
}
|
|
3195
3195
|
} catch ($p_1) {
|
|
3196
3196
|
var e_0 = $p_1;
|
|
3197
|
-
if (this.
|
|
3197
|
+
if (this.j9_1 === 6) {
|
|
3198
3198
|
throw e_0;
|
|
3199
3199
|
} else {
|
|
3200
|
-
this.
|
|
3201
|
-
this.
|
|
3200
|
+
this.i9_1 = this.j9_1;
|
|
3201
|
+
this.l9_1 = e_0;
|
|
3202
3202
|
}
|
|
3203
3203
|
}
|
|
3204
3204
|
while (true);
|
|
3205
3205
|
};
|
|
3206
3206
|
function $runCOROUTINE$(_this__u8e3s4, child, id, proof, upgrade, resultContinuation) {
|
|
3207
3207
|
CoroutineImpl.call(this, resultContinuation);
|
|
3208
|
-
this.
|
|
3209
|
-
this.
|
|
3210
|
-
this.
|
|
3211
|
-
this.
|
|
3212
|
-
this.
|
|
3213
|
-
}
|
|
3214
|
-
protoOf($runCOROUTINE$).
|
|
3215
|
-
var suspendResult = this.
|
|
3208
|
+
this.ecr_1 = _this__u8e3s4;
|
|
3209
|
+
this.fcr_1 = child;
|
|
3210
|
+
this.gcr_1 = id;
|
|
3211
|
+
this.hcr_1 = proof;
|
|
3212
|
+
this.icr_1 = upgrade;
|
|
3213
|
+
}
|
|
3214
|
+
protoOf($runCOROUTINE$).q9 = function () {
|
|
3215
|
+
var suspendResult = this.k9_1;
|
|
3216
3216
|
$sm: do
|
|
3217
3217
|
try {
|
|
3218
|
-
var tmp = this.
|
|
3218
|
+
var tmp = this.i9_1;
|
|
3219
3219
|
switch (tmp) {
|
|
3220
3220
|
case 0:
|
|
3221
|
-
this.
|
|
3222
|
-
this.
|
|
3223
|
-
this.
|
|
3224
|
-
if (!this.
|
|
3225
|
-
return killed(this.
|
|
3221
|
+
this.j9_1 = 9;
|
|
3222
|
+
this.mcr_1 = Monotonic_instance.ff();
|
|
3223
|
+
this.kcr_1 = null;
|
|
3224
|
+
if (!this.fcr_1.qct(ProverIpc_getInstance().sck(new Prove(this.gcr_1, this.hcr_1.bbg_1, this.hcr_1.cbg_1, this.hcr_1.dbg_1, this.ecr_1.pcr_1)))) {
|
|
3225
|
+
return killed(this.ecr_1, KillCause_EXITED_getInstance(), "the prover's channel was closed");
|
|
3226
3226
|
}
|
|
3227
3227
|
|
|
3228
|
-
var _receiver__tnumb7 = this.
|
|
3229
|
-
_receiver__tnumb7.
|
|
3230
|
-
this.
|
|
3228
|
+
var _receiver__tnumb7 = this.fcr_1;
|
|
3229
|
+
_receiver__tnumb7.hcs_1 = _receiver__tnumb7.hcs_1 + 1 | 0;
|
|
3230
|
+
this.i9_1 = 1;
|
|
3231
3231
|
continue $sm;
|
|
3232
3232
|
case 1:
|
|
3233
3233
|
if (!true) {
|
|
3234
|
-
this.
|
|
3234
|
+
this.i9_1 = 10;
|
|
3235
3235
|
continue $sm;
|
|
3236
3236
|
}
|
|
3237
3237
|
|
|
3238
|
-
var tmp0_safe_receiver = this.
|
|
3238
|
+
var tmp0_safe_receiver = this.kcr_1;
|
|
3239
3239
|
var tmp_0;
|
|
3240
3240
|
if (tmp0_safe_receiver == null) {
|
|
3241
3241
|
tmp_0 = null;
|
|
3242
3242
|
} else {
|
|
3243
|
-
tmp_0 = Duration__minus_impl_q5cfm7(this.
|
|
3243
|
+
tmp_0 = Duration__minus_impl_q5cfm7(this.ecr_1.rcr_1.dcp_1, tmp0_safe_receiver.cr());
|
|
3244
3244
|
}
|
|
3245
3245
|
|
|
3246
3246
|
var tmp1_elvis_lhs = tmp_0;
|
|
3247
3247
|
var tmp_1;
|
|
3248
3248
|
var tmp_2 = tmp1_elvis_lhs;
|
|
3249
3249
|
if ((tmp_2 == null ? null : new Duration(tmp_2)) == null) {
|
|
3250
|
-
tmp_1 = Duration__minus_impl_q5cfm7(this.
|
|
3250
|
+
tmp_1 = Duration__minus_impl_q5cfm7(this.ecr_1.rcr_1.ccp_1, ValueTimeMark__elapsedNow_impl_eonqvs(this.mcr_1));
|
|
3251
3251
|
} else {
|
|
3252
3252
|
tmp_1 = tmp1_elvis_lhs;
|
|
3253
3253
|
}
|
|
3254
3254
|
|
|
3255
3255
|
var left = tmp_1;
|
|
3256
|
-
this.
|
|
3257
|
-
var tmp_3 = coerceAtLeast(new Duration(left), new Duration(Companion_getInstance().
|
|
3258
|
-
suspendResult = withTimeoutOrNull(tmp_3.
|
|
3256
|
+
this.i9_1 = 2;
|
|
3257
|
+
var tmp_3 = coerceAtLeast(new Duration(left), new Duration(Companion_getInstance().mf_1));
|
|
3258
|
+
suspendResult = withTimeoutOrNull(tmp_3.lf_1, ForkedProofHost$run$slambda_0(this.fcr_1, null), this);
|
|
3259
3259
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3260
3260
|
return suspendResult;
|
|
3261
3261
|
}
|
|
@@ -3264,18 +3264,18 @@ protoOf($runCOROUTINE$).o9 = function () {
|
|
|
3264
3264
|
case 2:
|
|
3265
3265
|
var event = suspendResult;
|
|
3266
3266
|
if (event == null) {
|
|
3267
|
-
this.
|
|
3268
|
-
return killed(this.
|
|
3267
|
+
this.fcr_1.pct();
|
|
3268
|
+
return killed(this.ecr_1, this.kcr_1 == null ? KillCause_CONNECT_DEADLINE_getInstance() : KillCause_SESSION_DEADLINE_getInstance(), null);
|
|
3269
3269
|
}
|
|
3270
3270
|
|
|
3271
3271
|
if (event instanceof Exited) {
|
|
3272
|
-
return killed(this.
|
|
3272
|
+
return killed(this.ecr_1, event.vct(), event.wct());
|
|
3273
3273
|
} else {
|
|
3274
3274
|
if (event instanceof Message) {
|
|
3275
|
-
this.
|
|
3275
|
+
this.ecr_1;
|
|
3276
3276
|
var tmp_4;
|
|
3277
3277
|
try {
|
|
3278
|
-
var value = ProverIpc_getInstance().
|
|
3278
|
+
var value = ProverIpc_getInstance().vck(event.rct_1);
|
|
3279
3279
|
tmp_4 = _Result___init__impl__xyqfz8(value);
|
|
3280
3280
|
} catch ($p) {
|
|
3281
3281
|
var tmp_5;
|
|
@@ -3294,7 +3294,7 @@ protoOf($runCOROUTINE$).o9 = function () {
|
|
|
3294
3294
|
tmp_6 = null;
|
|
3295
3295
|
} else {
|
|
3296
3296
|
var tmp_7;
|
|
3297
|
-
if (tmp3_safe_receiver.
|
|
3297
|
+
if (tmp3_safe_receiver.t6e() === this.gcr_1) {
|
|
3298
3298
|
tmp_7 = tmp3_safe_receiver;
|
|
3299
3299
|
} else {
|
|
3300
3300
|
tmp_7 = null;
|
|
@@ -3303,12 +3303,12 @@ protoOf($runCOROUTINE$).o9 = function () {
|
|
|
3303
3303
|
}
|
|
3304
3304
|
var tmp4_elvis_lhs = tmp_6;
|
|
3305
3305
|
if (tmp4_elvis_lhs == null) {
|
|
3306
|
-
this.
|
|
3306
|
+
this.i9_1 = 1;
|
|
3307
3307
|
var tmp_8 = this;
|
|
3308
3308
|
continue $sm;
|
|
3309
3309
|
} else {
|
|
3310
|
-
this.
|
|
3311
|
-
this.
|
|
3310
|
+
this.lcr_1 = tmp4_elvis_lhs;
|
|
3311
|
+
this.i9_1 = 3;
|
|
3312
3312
|
continue $sm;
|
|
3313
3313
|
}
|
|
3314
3314
|
} else {
|
|
@@ -3318,23 +3318,23 @@ protoOf($runCOROUTINE$).o9 = function () {
|
|
|
3318
3318
|
|
|
3319
3319
|
break;
|
|
3320
3320
|
case 3:
|
|
3321
|
-
var message = this.
|
|
3321
|
+
var message = this.lcr_1;
|
|
3322
3322
|
if (message instanceof HeadersWanted) {
|
|
3323
|
-
if (this.
|
|
3324
|
-
this.
|
|
3325
|
-
this.
|
|
3326
|
-
this.
|
|
3327
|
-
suspendResult = this.
|
|
3323
|
+
if (this.kcr_1 == null)
|
|
3324
|
+
this.kcr_1 = new ValueTimeMark(Monotonic_instance.ff());
|
|
3325
|
+
this.j9_1 = 5;
|
|
3326
|
+
this.i9_1 = 4;
|
|
3327
|
+
suspendResult = this.icr_1.v7a(this);
|
|
3328
3328
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3329
3329
|
return suspendResult;
|
|
3330
3330
|
}
|
|
3331
3331
|
continue $sm;
|
|
3332
3332
|
} else {
|
|
3333
3333
|
if (message instanceof Proved_0) {
|
|
3334
|
-
return new Proved(message.
|
|
3334
|
+
return new Proved(message.pcl_1);
|
|
3335
3335
|
} else {
|
|
3336
3336
|
if (message instanceof Failed_0) {
|
|
3337
|
-
return new Failed(message.
|
|
3337
|
+
return new Failed(message.ucl_1);
|
|
3338
3338
|
} else {
|
|
3339
3339
|
noWhenBranchMatchedException();
|
|
3340
3340
|
}
|
|
@@ -3343,57 +3343,57 @@ protoOf($runCOROUTINE$).o9 = function () {
|
|
|
3343
3343
|
|
|
3344
3344
|
break;
|
|
3345
3345
|
case 4:
|
|
3346
|
-
var ARGUMENT = suspendResult.
|
|
3347
|
-
this.
|
|
3348
|
-
this.
|
|
3349
|
-
this.
|
|
3346
|
+
var ARGUMENT = suspendResult.ebg_1;
|
|
3347
|
+
this.jcr_1 = new Headers(this.gcr_1, ARGUMENT);
|
|
3348
|
+
this.j9_1 = 9;
|
|
3349
|
+
this.i9_1 = 6;
|
|
3350
3350
|
continue $sm;
|
|
3351
3351
|
case 5:
|
|
3352
|
-
this.
|
|
3353
|
-
var tmp_9 = this.
|
|
3352
|
+
this.j9_1 = 9;
|
|
3353
|
+
var tmp_9 = this.l9_1;
|
|
3354
3354
|
if (tmp_9 instanceof CancellationException) {
|
|
3355
|
-
var e_0 = this.
|
|
3355
|
+
var e_0 = this.l9_1;
|
|
3356
3356
|
var tmp_10 = this;
|
|
3357
3357
|
throw e_0;
|
|
3358
3358
|
} else {
|
|
3359
|
-
var tmp_11 = this.
|
|
3359
|
+
var tmp_11 = this.l9_1;
|
|
3360
3360
|
if (tmp_11 instanceof Error) {
|
|
3361
|
-
var e_1 = this.
|
|
3361
|
+
var e_1 = this.l9_1;
|
|
3362
3362
|
var tmp_12 = this;
|
|
3363
3363
|
var tmp6_elvis_lhs = e_1.message;
|
|
3364
|
-
tmp_12.
|
|
3365
|
-
this.
|
|
3364
|
+
tmp_12.jcr_1 = new Headers(this.gcr_1, VOID, 'the upgrade could not be signed: ' + (tmp6_elvis_lhs == null ? 'no detail' : tmp6_elvis_lhs));
|
|
3365
|
+
this.i9_1 = 6;
|
|
3366
3366
|
continue $sm;
|
|
3367
3367
|
} else {
|
|
3368
|
-
throw this.
|
|
3368
|
+
throw this.l9_1;
|
|
3369
3369
|
}
|
|
3370
3370
|
}
|
|
3371
3371
|
|
|
3372
3372
|
case 6:
|
|
3373
|
-
this.
|
|
3374
|
-
var reply = this.
|
|
3375
|
-
if (!this.
|
|
3376
|
-
return killed(this.
|
|
3377
|
-
this.
|
|
3373
|
+
this.j9_1 = 9;
|
|
3374
|
+
var reply = this.jcr_1;
|
|
3375
|
+
if (!this.fcr_1.qct(ProverIpc_getInstance().sck(reply)))
|
|
3376
|
+
return killed(this.ecr_1, KillCause_EXITED_getInstance(), "the prover's channel was closed");
|
|
3377
|
+
this.i9_1 = 7;
|
|
3378
3378
|
continue $sm;
|
|
3379
3379
|
case 7:
|
|
3380
|
-
this.
|
|
3380
|
+
this.i9_1 = 8;
|
|
3381
3381
|
continue $sm;
|
|
3382
3382
|
case 8:
|
|
3383
|
-
this.
|
|
3383
|
+
this.i9_1 = 1;
|
|
3384
3384
|
continue $sm;
|
|
3385
3385
|
case 9:
|
|
3386
|
-
throw this.
|
|
3386
|
+
throw this.l9_1;
|
|
3387
3387
|
case 10:
|
|
3388
3388
|
return Unit_instance;
|
|
3389
3389
|
}
|
|
3390
3390
|
} catch ($p_0) {
|
|
3391
3391
|
var e_2 = $p_0;
|
|
3392
|
-
if (this.
|
|
3392
|
+
if (this.j9_1 === 9) {
|
|
3393
3393
|
throw e_2;
|
|
3394
3394
|
} else {
|
|
3395
|
-
this.
|
|
3396
|
-
this.
|
|
3395
|
+
this.i9_1 = this.j9_1;
|
|
3396
|
+
this.l9_1 = e_2;
|
|
3397
3397
|
}
|
|
3398
3398
|
}
|
|
3399
3399
|
while (true);
|
|
@@ -3423,42 +3423,42 @@ function ForkedProofHost(script, args, settings, clock, limits, env, backoff, on
|
|
|
3423
3423
|
tmp_1 = onOutcome;
|
|
3424
3424
|
}
|
|
3425
3425
|
onOutcome = tmp_1;
|
|
3426
|
-
this.
|
|
3427
|
-
this.
|
|
3428
|
-
this.
|
|
3429
|
-
this.
|
|
3430
|
-
this.
|
|
3431
|
-
this.
|
|
3432
|
-
this.
|
|
3433
|
-
this.
|
|
3434
|
-
this.
|
|
3435
|
-
this.
|
|
3436
|
-
this.
|
|
3437
|
-
this.
|
|
3426
|
+
this.ncr_1 = script;
|
|
3427
|
+
this.ocr_1 = args;
|
|
3428
|
+
this.pcr_1 = settings;
|
|
3429
|
+
this.qcr_1 = clock;
|
|
3430
|
+
this.rcr_1 = limits;
|
|
3431
|
+
this.scr_1 = env;
|
|
3432
|
+
this.tcr_1 = backoff;
|
|
3433
|
+
this.ucr_1 = onLine;
|
|
3434
|
+
this.vcr_1 = onNotice;
|
|
3435
|
+
this.wcr_1 = onOutcome;
|
|
3436
|
+
this.xcr_1 = Mutex();
|
|
3437
|
+
this.ycr_1 = ArrayDeque_init_$Create$();
|
|
3438
3438
|
var tmp_2 = this;
|
|
3439
3439
|
// Inline function 'kotlin.collections.mutableSetOf' call
|
|
3440
|
-
tmp_2.
|
|
3441
|
-
this.
|
|
3442
|
-
this.
|
|
3440
|
+
tmp_2.zcr_1 = LinkedHashSet_init_$Create$();
|
|
3441
|
+
this.acs_1 = 1;
|
|
3442
|
+
this.bcs_1 = 0;
|
|
3443
3443
|
}
|
|
3444
|
-
protoOf(ForkedProofHost).
|
|
3444
|
+
protoOf(ForkedProofHost).hbe = function (proof, upgrade, $completion) {
|
|
3445
3445
|
var tmp = new $proveCOROUTINE$(this, proof, upgrade, $completion);
|
|
3446
|
-
tmp.
|
|
3447
|
-
tmp.
|
|
3448
|
-
return tmp.
|
|
3446
|
+
tmp.k9_1 = Unit_instance;
|
|
3447
|
+
tmp.l9_1 = null;
|
|
3448
|
+
return tmp.q9();
|
|
3449
3449
|
};
|
|
3450
|
-
protoOf(ForkedProofHost).
|
|
3451
|
-
return this.
|
|
3450
|
+
protoOf(ForkedProofHost).gck = function () {
|
|
3451
|
+
return this.tcr_1.gck();
|
|
3452
3452
|
};
|
|
3453
|
-
protoOf(ForkedProofHost).
|
|
3453
|
+
protoOf(ForkedProofHost).j4 = function () {
|
|
3454
3454
|
// Inline function 'kotlin.collections.forEach' call
|
|
3455
|
-
var _iterator__ex2g4s = this.
|
|
3455
|
+
var _iterator__ex2g4s = this.zcr_1.t();
|
|
3456
3456
|
while (_iterator__ex2g4s.u()) {
|
|
3457
3457
|
var element = _iterator__ex2g4s.v();
|
|
3458
|
-
element.
|
|
3458
|
+
element.pct();
|
|
3459
3459
|
}
|
|
3460
|
-
this.
|
|
3461
|
-
this.
|
|
3460
|
+
this.zcr_1.d3();
|
|
3461
|
+
this.ycr_1.d3();
|
|
3462
3462
|
};
|
|
3463
3463
|
function minimalProverEnv(from) {
|
|
3464
3464
|
from = from === VOID ? get_nodeProcess().env : from;
|
|
@@ -3507,37 +3507,37 @@ function toJsObject(_this__u8e3s4) {
|
|
|
3507
3507
|
return target;
|
|
3508
3508
|
}
|
|
3509
3509
|
function Message(text) {
|
|
3510
|
-
this.
|
|
3510
|
+
this.rct_1 = text;
|
|
3511
3511
|
}
|
|
3512
3512
|
protoOf(Message).toString = function () {
|
|
3513
|
-
return 'Message(text=' + this.
|
|
3513
|
+
return 'Message(text=' + this.rct_1 + ')';
|
|
3514
3514
|
};
|
|
3515
3515
|
protoOf(Message).hashCode = function () {
|
|
3516
|
-
return getStringHashCode(this.
|
|
3516
|
+
return getStringHashCode(this.rct_1);
|
|
3517
3517
|
};
|
|
3518
3518
|
protoOf(Message).equals = function (other) {
|
|
3519
3519
|
if (this === other)
|
|
3520
3520
|
return true;
|
|
3521
3521
|
if (!(other instanceof Message))
|
|
3522
3522
|
return false;
|
|
3523
|
-
if (!(this.
|
|
3523
|
+
if (!(this.rct_1 === other.rct_1))
|
|
3524
3524
|
return false;
|
|
3525
3525
|
return true;
|
|
3526
3526
|
};
|
|
3527
3527
|
function Exited(code, signal, error) {
|
|
3528
3528
|
error = error === VOID ? null : error;
|
|
3529
|
-
this.
|
|
3530
|
-
this.
|
|
3531
|
-
this.
|
|
3529
|
+
this.sct_1 = code;
|
|
3530
|
+
this.tct_1 = signal;
|
|
3531
|
+
this.uct_1 = error;
|
|
3532
3532
|
}
|
|
3533
|
-
protoOf(Exited).
|
|
3534
|
-
return this.
|
|
3533
|
+
protoOf(Exited).vct = function () {
|
|
3534
|
+
return this.tct_1 === 'SIGKILL' ? KillCause_OUT_OF_MEMORY_getInstance() : KillCause_EXITED_getInstance();
|
|
3535
3535
|
};
|
|
3536
|
-
protoOf(Exited).
|
|
3537
|
-
var tmp0_elvis_lhs = this.
|
|
3536
|
+
protoOf(Exited).wct = function () {
|
|
3537
|
+
var tmp0_elvis_lhs = this.uct_1;
|
|
3538
3538
|
var tmp;
|
|
3539
3539
|
if (tmp0_elvis_lhs == null) {
|
|
3540
|
-
var tmp1_safe_receiver = this.
|
|
3540
|
+
var tmp1_safe_receiver = this.tct_1;
|
|
3541
3541
|
var tmp_0;
|
|
3542
3542
|
if (tmp1_safe_receiver == null) {
|
|
3543
3543
|
tmp_0 = null;
|
|
@@ -3550,15 +3550,15 @@ protoOf(Exited).tc7 = function () {
|
|
|
3550
3550
|
tmp = tmp0_elvis_lhs;
|
|
3551
3551
|
}
|
|
3552
3552
|
var tmp2_elvis_lhs = tmp;
|
|
3553
|
-
return tmp2_elvis_lhs == null ? 'exit code ' + this.
|
|
3553
|
+
return tmp2_elvis_lhs == null ? 'exit code ' + this.sct_1 : tmp2_elvis_lhs;
|
|
3554
3554
|
};
|
|
3555
3555
|
protoOf(Exited).toString = function () {
|
|
3556
|
-
return 'Exited(code=' + this.
|
|
3556
|
+
return 'Exited(code=' + this.sct_1 + ', signal=' + this.tct_1 + ', error=' + this.uct_1 + ')';
|
|
3557
3557
|
};
|
|
3558
3558
|
protoOf(Exited).hashCode = function () {
|
|
3559
|
-
var result = this.
|
|
3560
|
-
result = imul(result, 31) + (this.
|
|
3561
|
-
result = imul(result, 31) + (this.
|
|
3559
|
+
var result = this.sct_1 == null ? 0 : this.sct_1;
|
|
3560
|
+
result = imul(result, 31) + (this.tct_1 == null ? 0 : getStringHashCode(this.tct_1)) | 0;
|
|
3561
|
+
result = imul(result, 31) + (this.uct_1 == null ? 0 : getStringHashCode(this.uct_1)) | 0;
|
|
3562
3562
|
return result;
|
|
3563
3563
|
};
|
|
3564
3564
|
protoOf(Exited).equals = function (other) {
|
|
@@ -3566,11 +3566,11 @@ protoOf(Exited).equals = function (other) {
|
|
|
3566
3566
|
return true;
|
|
3567
3567
|
if (!(other instanceof Exited))
|
|
3568
3568
|
return false;
|
|
3569
|
-
if (!(this.
|
|
3569
|
+
if (!(this.sct_1 == other.sct_1))
|
|
3570
3570
|
return false;
|
|
3571
|
-
if (!(this.
|
|
3571
|
+
if (!(this.tct_1 == other.tct_1))
|
|
3572
3572
|
return false;
|
|
3573
|
-
if (!(this.
|
|
3573
|
+
if (!(this.uct_1 == other.uct_1))
|
|
3574
3574
|
return false;
|
|
3575
3575
|
return true;
|
|
3576
3576
|
};
|
|
@@ -3586,14 +3586,14 @@ function emit($this, stream, line) {
|
|
|
3586
3586
|
var text = trimEnd(line, charArrayOf([_Char___init__impl__6a9atx(13)]));
|
|
3587
3587
|
if (isBlank(text))
|
|
3588
3588
|
return Unit_instance;
|
|
3589
|
-
$this.
|
|
3589
|
+
$this.dcs_1($this.gcs_1, stream, ProverOutput_getInstance().s7b(text));
|
|
3590
3590
|
}
|
|
3591
3591
|
function ForkedChild$lambda(this$0) {
|
|
3592
3592
|
return function (message) {
|
|
3593
3593
|
var tmp;
|
|
3594
3594
|
if (typeof message === 'string') {
|
|
3595
3595
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3596
|
-
this$0.
|
|
3596
|
+
this$0.fcs_1.t1g(new Message(message));
|
|
3597
3597
|
tmp = Unit_instance;
|
|
3598
3598
|
}
|
|
3599
3599
|
return Unit_instance;
|
|
@@ -3601,28 +3601,28 @@ function ForkedChild$lambda(this$0) {
|
|
|
3601
3601
|
}
|
|
3602
3602
|
function ForkedChild$lambda_0(this$0) {
|
|
3603
3603
|
return function (code, signal) {
|
|
3604
|
-
this$0.
|
|
3604
|
+
this$0.ics_1 = true;
|
|
3605
3605
|
var tmp0_safe_receiver = isNumber(code) ? code : null;
|
|
3606
3606
|
var tmp = tmp0_safe_receiver == null ? null : numberToInt(tmp0_safe_receiver);
|
|
3607
3607
|
var exit = new Exited(tmp, (!(signal == null) ? typeof signal === 'string' : false) ? signal : null);
|
|
3608
|
-
var tmp_0 = to('pid', this$0.
|
|
3609
|
-
var tmp1_safe_receiver = exit.
|
|
3610
|
-
this$0.
|
|
3611
|
-
return new ChannelResult(this$0.
|
|
3608
|
+
var tmp_0 = to('pid', this$0.gcs_1);
|
|
3609
|
+
var tmp1_safe_receiver = exit.sct_1;
|
|
3610
|
+
this$0.ecs_1('prover exited', false, listOf([tmp_0, to('code', tmp1_safe_receiver == null ? null : tmp1_safe_receiver.toString()), to('signal', exit.tct_1), to('killedBySdk', this$0.jcs_1.toString())]));
|
|
3611
|
+
return new ChannelResult(this$0.fcs_1.t1g(exit));
|
|
3612
3612
|
};
|
|
3613
3613
|
}
|
|
3614
3614
|
function ForkedChild$lambda_1(this$0) {
|
|
3615
3615
|
return function (error) {
|
|
3616
|
-
this$0.
|
|
3616
|
+
this$0.ics_1 = true;
|
|
3617
3617
|
var tmp1_elvis_lhs = error == null ? null : error.message;
|
|
3618
|
-
return new ChannelResult(this$0.
|
|
3618
|
+
return new ChannelResult(this$0.fcs_1.t1g(new Exited(null, null, 'the prover process failed: ' + (tmp1_elvis_lhs == null ? 'no detail' : tmp1_elvis_lhs))));
|
|
3619
3619
|
};
|
|
3620
3620
|
}
|
|
3621
3621
|
function ForkedChild$end$lambda(this$0) {
|
|
3622
3622
|
return function () {
|
|
3623
3623
|
var tmp;
|
|
3624
|
-
if (!this$0.
|
|
3625
|
-
this$0.
|
|
3624
|
+
if (!this$0.ics_1) {
|
|
3625
|
+
this$0.pct();
|
|
3626
3626
|
tmp = Unit_instance;
|
|
3627
3627
|
}
|
|
3628
3628
|
return Unit_instance;
|
|
@@ -3655,32 +3655,32 @@ function ForkedChild$pipe$lambda_0($pending, this$0, $name) {
|
|
|
3655
3655
|
};
|
|
3656
3656
|
}
|
|
3657
3657
|
function ForkedChild(process, onLine, onNotice) {
|
|
3658
|
-
this.
|
|
3659
|
-
this.
|
|
3660
|
-
this.
|
|
3661
|
-
this.
|
|
3658
|
+
this.ccs_1 = process;
|
|
3659
|
+
this.dcs_1 = onLine;
|
|
3660
|
+
this.ecs_1 = onNotice;
|
|
3661
|
+
this.fcs_1 = Channel(2147483647);
|
|
3662
3662
|
var tmp = this;
|
|
3663
|
-
var tmp_0 = this.
|
|
3663
|
+
var tmp_0 = this.ccs_1.pid;
|
|
3664
3664
|
var tmp0_safe_receiver = isNumber(tmp_0) ? tmp_0 : null;
|
|
3665
3665
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toString_0(tmp0_safe_receiver);
|
|
3666
|
-
tmp.
|
|
3667
|
-
this.
|
|
3668
|
-
this.
|
|
3669
|
-
this.
|
|
3670
|
-
this.
|
|
3671
|
-
this.
|
|
3672
|
-
this.
|
|
3673
|
-
pipe(this, this.
|
|
3674
|
-
pipe(this, this.
|
|
3675
|
-
}
|
|
3676
|
-
protoOf(ForkedChild).
|
|
3666
|
+
tmp.gcs_1 = tmp1_elvis_lhs == null ? '?' : tmp1_elvis_lhs;
|
|
3667
|
+
this.hcs_1 = 0;
|
|
3668
|
+
this.ics_1 = false;
|
|
3669
|
+
this.jcs_1 = false;
|
|
3670
|
+
this.ccs_1.on('message', ForkedChild$lambda(this));
|
|
3671
|
+
this.ccs_1.on('exit', ForkedChild$lambda_0(this));
|
|
3672
|
+
this.ccs_1.on('error', ForkedChild$lambda_1(this));
|
|
3673
|
+
pipe(this, this.ccs_1.stdout, 'stdout');
|
|
3674
|
+
pipe(this, this.ccs_1.stderr, 'stderr');
|
|
3675
|
+
}
|
|
3676
|
+
protoOf(ForkedChild).qct = function (text) {
|
|
3677
3677
|
var tmp;
|
|
3678
3678
|
try {
|
|
3679
3679
|
var tmp_0;
|
|
3680
|
-
if (this.
|
|
3680
|
+
if (this.ics_1 || this.ccs_1.connected != true) {
|
|
3681
3681
|
tmp_0 = false;
|
|
3682
3682
|
} else {
|
|
3683
|
-
this.
|
|
3683
|
+
this.ccs_1.send(text);
|
|
3684
3684
|
tmp_0 = true;
|
|
3685
3685
|
}
|
|
3686
3686
|
tmp = tmp_0;
|
|
@@ -3696,15 +3696,15 @@ protoOf(ForkedChild).nc7 = function (text) {
|
|
|
3696
3696
|
}
|
|
3697
3697
|
return tmp;
|
|
3698
3698
|
};
|
|
3699
|
-
protoOf(ForkedChild).
|
|
3700
|
-
if (this.
|
|
3699
|
+
protoOf(ForkedChild).pct = function () {
|
|
3700
|
+
if (this.ics_1)
|
|
3701
3701
|
return Unit_instance;
|
|
3702
|
-
this.
|
|
3702
|
+
this.jcs_1 = true;
|
|
3703
3703
|
// Inline function 'kotlin.runCatching' call
|
|
3704
3704
|
var tmp;
|
|
3705
3705
|
try {
|
|
3706
3706
|
// Inline function 'kotlin.Companion.success' call
|
|
3707
|
-
var value = this.
|
|
3707
|
+
var value = this.ccs_1.kill('SIGKILL');
|
|
3708
3708
|
tmp = _Result___init__impl__xyqfz8(value);
|
|
3709
3709
|
} catch ($p) {
|
|
3710
3710
|
var tmp_0;
|
|
@@ -3718,14 +3718,14 @@ protoOf(ForkedChild).mc7 = function () {
|
|
|
3718
3718
|
tmp = tmp_0;
|
|
3719
3719
|
}
|
|
3720
3720
|
};
|
|
3721
|
-
protoOf(ForkedChild).
|
|
3722
|
-
if (this.
|
|
3721
|
+
protoOf(ForkedChild).kcs = function (grace) {
|
|
3722
|
+
if (this.ics_1)
|
|
3723
3723
|
return Unit_instance;
|
|
3724
3724
|
// Inline function 'kotlin.runCatching' call
|
|
3725
3725
|
var tmp;
|
|
3726
3726
|
try {
|
|
3727
|
-
if (this.
|
|
3728
|
-
this.
|
|
3727
|
+
if (this.ccs_1.connected == true) {
|
|
3728
|
+
this.ccs_1.disconnect();
|
|
3729
3729
|
}
|
|
3730
3730
|
// Inline function 'kotlin.Companion.success' call
|
|
3731
3731
|
tmp = _Result___init__impl__xyqfz8(Unit_instance);
|
|
@@ -3772,33 +3772,33 @@ function NodeWasmProver$prove$slambda$slambda$lambda(line) {
|
|
|
3772
3772
|
return Unit_instance;
|
|
3773
3773
|
}
|
|
3774
3774
|
function NodeWasmProver$prove$slambda$slambda($proof, $config, $host, this$0, resultContinuation) {
|
|
3775
|
-
this.
|
|
3776
|
-
this.
|
|
3777
|
-
this.
|
|
3778
|
-
this.
|
|
3775
|
+
this.fcu_1 = $proof;
|
|
3776
|
+
this.gcu_1 = $config;
|
|
3777
|
+
this.hcu_1 = $host;
|
|
3778
|
+
this.icu_1 = this$0;
|
|
3779
3779
|
CoroutineImpl.call(this, resultContinuation);
|
|
3780
3780
|
}
|
|
3781
|
-
protoOf(NodeWasmProver$prove$slambda$slambda).
|
|
3782
|
-
var tmp = this.
|
|
3783
|
-
tmp.
|
|
3784
|
-
tmp.
|
|
3785
|
-
return tmp.
|
|
3781
|
+
protoOf(NodeWasmProver$prove$slambda$slambda).mcg = function ($this$async, $completion) {
|
|
3782
|
+
var tmp = this.x1o($this$async, $completion);
|
|
3783
|
+
tmp.k9_1 = Unit_instance;
|
|
3784
|
+
tmp.l9_1 = null;
|
|
3785
|
+
return tmp.q9();
|
|
3786
3786
|
};
|
|
3787
|
-
protoOf(NodeWasmProver$prove$slambda$slambda).
|
|
3788
|
-
return this.
|
|
3787
|
+
protoOf(NodeWasmProver$prove$slambda$slambda).da = function (p1, $completion) {
|
|
3788
|
+
return this.mcg((!(p1 == null) ? isInterface(p1, CoroutineScope_0) : false) ? p1 : THROW_CCE(), $completion);
|
|
3789
3789
|
};
|
|
3790
|
-
protoOf(NodeWasmProver$prove$slambda$slambda).
|
|
3791
|
-
var suspendResult = this.
|
|
3790
|
+
protoOf(NodeWasmProver$prove$slambda$slambda).q9 = function () {
|
|
3791
|
+
var suspendResult = this.k9_1;
|
|
3792
3792
|
$sm: do
|
|
3793
3793
|
try {
|
|
3794
|
-
var tmp = this.
|
|
3794
|
+
var tmp = this.i9_1;
|
|
3795
3795
|
switch (tmp) {
|
|
3796
3796
|
case 0:
|
|
3797
|
-
this.
|
|
3798
|
-
this.
|
|
3799
|
-
var tmp_0 = new HostedProofRequest(this.
|
|
3800
|
-
var tmp_1 = this.
|
|
3801
|
-
suspendResult = runHostedProof(tmp_0, this.
|
|
3797
|
+
this.j9_1 = 2;
|
|
3798
|
+
this.i9_1 = 1;
|
|
3799
|
+
var tmp_0 = new HostedProofRequest(this.fcu_1.zck_1, this.fcu_1.acl_1, this.fcu_1.bcl_1);
|
|
3800
|
+
var tmp_1 = this.icu_1.kcu_1.rp();
|
|
3801
|
+
suspendResult = runHostedProof(tmp_0, this.gcu_1, this.hcu_1, tmp_1, NodeWasmProver$prove$slambda$slambda$lambda, this);
|
|
3802
3802
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3803
3803
|
return suspendResult;
|
|
3804
3804
|
}
|
|
@@ -3807,52 +3807,52 @@ protoOf(NodeWasmProver$prove$slambda$slambda).o9 = function () {
|
|
|
3807
3807
|
case 1:
|
|
3808
3808
|
return suspendResult;
|
|
3809
3809
|
case 2:
|
|
3810
|
-
throw this.
|
|
3810
|
+
throw this.l9_1;
|
|
3811
3811
|
}
|
|
3812
3812
|
} catch ($p) {
|
|
3813
3813
|
var e = $p;
|
|
3814
|
-
if (this.
|
|
3814
|
+
if (this.j9_1 === 2) {
|
|
3815
3815
|
throw e;
|
|
3816
3816
|
} else {
|
|
3817
|
-
this.
|
|
3818
|
-
this.
|
|
3817
|
+
this.i9_1 = this.j9_1;
|
|
3818
|
+
this.l9_1 = e;
|
|
3819
3819
|
}
|
|
3820
3820
|
}
|
|
3821
3821
|
while (true);
|
|
3822
3822
|
};
|
|
3823
|
-
protoOf(NodeWasmProver$prove$slambda$slambda).
|
|
3824
|
-
var i = new NodeWasmProver$prove$slambda$slambda(this.
|
|
3825
|
-
i.
|
|
3823
|
+
protoOf(NodeWasmProver$prove$slambda$slambda).x1o = function ($this$async, completion) {
|
|
3824
|
+
var i = new NodeWasmProver$prove$slambda$slambda(this.fcu_1, this.gcu_1, this.hcu_1, this.icu_1, completion);
|
|
3825
|
+
i.jcu_1 = $this$async;
|
|
3826
3826
|
return i;
|
|
3827
3827
|
};
|
|
3828
3828
|
function NodeWasmProver$prove$slambda$slambda_0($proof, $config, $host, this$0, resultContinuation) {
|
|
3829
3829
|
var i = new NodeWasmProver$prove$slambda$slambda($proof, $config, $host, this$0, resultContinuation);
|
|
3830
3830
|
return constructCallableReference(function ($this$async, $completion) {
|
|
3831
|
-
return i.
|
|
3831
|
+
return i.mcg($this$async, $completion);
|
|
3832
3832
|
}, 1);
|
|
3833
3833
|
}
|
|
3834
3834
|
function NodeWasmProver$prove$slambda$slambda_1(resultContinuation) {
|
|
3835
3835
|
CoroutineImpl.call(this, resultContinuation);
|
|
3836
3836
|
}
|
|
3837
|
-
protoOf(NodeWasmProver$prove$slambda$slambda_1).
|
|
3838
|
-
var tmp = this.
|
|
3839
|
-
tmp.
|
|
3840
|
-
tmp.
|
|
3841
|
-
return tmp.
|
|
3837
|
+
protoOf(NodeWasmProver$prove$slambda$slambda_1).ucu = function (presentation, $completion) {
|
|
3838
|
+
var tmp = this.vcu(presentation, $completion);
|
|
3839
|
+
tmp.k9_1 = Unit_instance;
|
|
3840
|
+
tmp.l9_1 = null;
|
|
3841
|
+
return tmp.q9();
|
|
3842
3842
|
};
|
|
3843
|
-
protoOf(NodeWasmProver$prove$slambda$slambda_1).
|
|
3844
|
-
return this.
|
|
3843
|
+
protoOf(NodeWasmProver$prove$slambda$slambda_1).da = function (p1, $completion) {
|
|
3844
|
+
return this.ucu((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
|
|
3845
3845
|
};
|
|
3846
|
-
protoOf(NodeWasmProver$prove$slambda$slambda_1).
|
|
3847
|
-
var suspendResult = this.
|
|
3846
|
+
protoOf(NodeWasmProver$prove$slambda$slambda_1).q9 = function () {
|
|
3847
|
+
var suspendResult = this.k9_1;
|
|
3848
3848
|
$sm: do
|
|
3849
3849
|
try {
|
|
3850
|
-
var tmp = this.
|
|
3850
|
+
var tmp = this.i9_1;
|
|
3851
3851
|
if (tmp === 0) {
|
|
3852
|
-
this.
|
|
3853
|
-
return new Proved_1(this.
|
|
3852
|
+
this.j9_1 = 1;
|
|
3853
|
+
return new Proved_1(this.tcu_1);
|
|
3854
3854
|
} else if (tmp === 1) {
|
|
3855
|
-
throw this.
|
|
3855
|
+
throw this.l9_1;
|
|
3856
3856
|
}
|
|
3857
3857
|
} catch ($p) {
|
|
3858
3858
|
var e = $p;
|
|
@@ -3860,41 +3860,41 @@ protoOf(NodeWasmProver$prove$slambda$slambda_1).o9 = function () {
|
|
|
3860
3860
|
}
|
|
3861
3861
|
while (true);
|
|
3862
3862
|
};
|
|
3863
|
-
protoOf(NodeWasmProver$prove$slambda$slambda_1).
|
|
3863
|
+
protoOf(NodeWasmProver$prove$slambda$slambda_1).vcu = function (presentation, completion) {
|
|
3864
3864
|
var i = new NodeWasmProver$prove$slambda$slambda_1(completion);
|
|
3865
|
-
i.
|
|
3865
|
+
i.tcu_1 = presentation;
|
|
3866
3866
|
return i;
|
|
3867
3867
|
};
|
|
3868
3868
|
function NodeWasmProver$prove$slambda$slambda_2(resultContinuation) {
|
|
3869
3869
|
var i = new NodeWasmProver$prove$slambda$slambda_1(resultContinuation);
|
|
3870
3870
|
return constructCallableReference(function (presentation, $completion) {
|
|
3871
|
-
return i.
|
|
3871
|
+
return i.ucu(presentation, $completion);
|
|
3872
3872
|
}, 1);
|
|
3873
3873
|
}
|
|
3874
3874
|
function NodeWasmProver$prove$slambda$slambda_3($proving, resultContinuation) {
|
|
3875
|
-
this.
|
|
3875
|
+
this.ecv_1 = $proving;
|
|
3876
3876
|
CoroutineImpl.call(this, resultContinuation);
|
|
3877
3877
|
}
|
|
3878
|
-
protoOf(NodeWasmProver$prove$slambda$slambda_3).
|
|
3879
|
-
var tmp = this.
|
|
3880
|
-
tmp.
|
|
3881
|
-
tmp.
|
|
3882
|
-
return tmp.
|
|
3878
|
+
protoOf(NodeWasmProver$prove$slambda$slambda_3).gcv = function (failure, $completion) {
|
|
3879
|
+
var tmp = this.hcv(failure, $completion);
|
|
3880
|
+
tmp.k9_1 = Unit_instance;
|
|
3881
|
+
tmp.l9_1 = null;
|
|
3882
|
+
return tmp.q9();
|
|
3883
3883
|
};
|
|
3884
|
-
protoOf(NodeWasmProver$prove$slambda$slambda_3).
|
|
3885
|
-
return this.
|
|
3884
|
+
protoOf(NodeWasmProver$prove$slambda$slambda_3).da = function (p1, $completion) {
|
|
3885
|
+
return this.gcv((!(p1 == null) ? isInterface(p1, ProofFailure) : false) ? p1 : THROW_CCE(), $completion);
|
|
3886
3886
|
};
|
|
3887
|
-
protoOf(NodeWasmProver$prove$slambda$slambda_3).
|
|
3888
|
-
var suspendResult = this.
|
|
3887
|
+
protoOf(NodeWasmProver$prove$slambda$slambda_3).q9 = function () {
|
|
3888
|
+
var suspendResult = this.k9_1;
|
|
3889
3889
|
$sm: do
|
|
3890
3890
|
try {
|
|
3891
|
-
var tmp = this.
|
|
3891
|
+
var tmp = this.i9_1;
|
|
3892
3892
|
if (tmp === 0) {
|
|
3893
|
-
this.
|
|
3894
|
-
this.
|
|
3895
|
-
return new Failed_1(this.
|
|
3893
|
+
this.j9_1 = 1;
|
|
3894
|
+
this.ecv_1.ez();
|
|
3895
|
+
return new Failed_1(this.fcv_1, true);
|
|
3896
3896
|
} else if (tmp === 1) {
|
|
3897
|
-
throw this.
|
|
3897
|
+
throw this.l9_1;
|
|
3898
3898
|
}
|
|
3899
3899
|
} catch ($p) {
|
|
3900
3900
|
var e = $p;
|
|
@@ -3902,15 +3902,15 @@ protoOf(NodeWasmProver$prove$slambda$slambda_3).o9 = function () {
|
|
|
3902
3902
|
}
|
|
3903
3903
|
while (true);
|
|
3904
3904
|
};
|
|
3905
|
-
protoOf(NodeWasmProver$prove$slambda$slambda_3).
|
|
3906
|
-
var i = new NodeWasmProver$prove$slambda$slambda_3(this.
|
|
3907
|
-
i.
|
|
3905
|
+
protoOf(NodeWasmProver$prove$slambda$slambda_3).hcv = function (failure, completion) {
|
|
3906
|
+
var i = new NodeWasmProver$prove$slambda$slambda_3(this.ecv_1, completion);
|
|
3907
|
+
i.fcv_1 = failure;
|
|
3908
3908
|
return i;
|
|
3909
3909
|
};
|
|
3910
3910
|
function NodeWasmProver$prove$slambda$slambda_4($proving, resultContinuation) {
|
|
3911
3911
|
var i = new NodeWasmProver$prove$slambda$slambda_3($proving, resultContinuation);
|
|
3912
3912
|
return constructCallableReference(function (failure, $completion) {
|
|
3913
|
-
return i.
|
|
3913
|
+
return i.gcv(failure, $completion);
|
|
3914
3914
|
}, 1);
|
|
3915
3915
|
}
|
|
3916
3916
|
function printStats($this, started) {
|
|
@@ -3926,21 +3926,21 @@ function printStats($this, started) {
|
|
|
3926
3926
|
function classify($this, error, record) {
|
|
3927
3927
|
var tmp = generateSequence(error, NodeWasmProver$classify$lambda);
|
|
3928
3928
|
var message = joinToString_0(distinct(mapNotNull(tmp, NodeWasmProver$classify$lambda_0)), ': ');
|
|
3929
|
-
var tmp0_safe_receiver = record.
|
|
3929
|
+
var tmp0_safe_receiver = record.pcv_1;
|
|
3930
3930
|
if (tmp0_safe_receiver == null)
|
|
3931
3931
|
null;
|
|
3932
3932
|
else {
|
|
3933
3933
|
// Inline function 'kotlin.let' call
|
|
3934
3934
|
return new Other('the upgrade could not be signed: ' + tmp0_safe_receiver);
|
|
3935
3935
|
}
|
|
3936
|
-
var tmp1_elvis_lhs = ProofFailures_getInstance().
|
|
3936
|
+
var tmp1_elvis_lhs = ProofFailures_getInstance().lbg(record.kcv_1, record.lcv_1, record.mcv_1, record.ocv_1, record.ncv_1, !record.icv_1 || record.jcv_1 || !(record.kcv_1 == null), message);
|
|
3937
3937
|
return tmp1_elvis_lhs == null ? new Other(message) : tmp1_elvis_lhs;
|
|
3938
3938
|
}
|
|
3939
3939
|
function Companion_14() {
|
|
3940
3940
|
Companion_instance_17 = this;
|
|
3941
|
-
this.
|
|
3942
|
-
this.
|
|
3943
|
-
this.
|
|
3941
|
+
this.rcv_1 = numberRangeToNumber(200, 299);
|
|
3942
|
+
this.scv_1 = new Long(1000, 0);
|
|
3943
|
+
this.tcv_1 = new Long(1024, 0);
|
|
3944
3944
|
}
|
|
3945
3945
|
var Companion_instance_17;
|
|
3946
3946
|
function Companion_getInstance_17() {
|
|
@@ -3950,33 +3950,33 @@ function Companion_getInstance_17() {
|
|
|
3950
3950
|
}
|
|
3951
3951
|
function NodeWasmProver$prove$lambda($settings) {
|
|
3952
3952
|
return function (path) {
|
|
3953
|
-
var tmp = com_dmarket_p2p_headless_node_nodePath_idbzon.join($settings.
|
|
3953
|
+
var tmp = com_dmarket_p2p_headless_node_nodePath_idbzon.join($settings.ock_1, path);
|
|
3954
3954
|
return fileUrl((!(tmp == null) ? typeof tmp === 'string' : false) ? tmp : THROW_CCE());
|
|
3955
3955
|
};
|
|
3956
3956
|
}
|
|
3957
3957
|
function NodeWasmProver$prove$slambda($settings, resultContinuation) {
|
|
3958
|
-
this.
|
|
3958
|
+
this.ccw_1 = $settings;
|
|
3959
3959
|
CoroutineImpl.call(this, resultContinuation);
|
|
3960
3960
|
}
|
|
3961
|
-
protoOf(NodeWasmProver$prove$slambda).
|
|
3962
|
-
var tmp = this.
|
|
3963
|
-
tmp.
|
|
3964
|
-
tmp.
|
|
3965
|
-
return tmp.
|
|
3961
|
+
protoOf(NodeWasmProver$prove$slambda).dcw = function ($completion) {
|
|
3962
|
+
var tmp = this.p32($completion);
|
|
3963
|
+
tmp.k9_1 = Unit_instance;
|
|
3964
|
+
tmp.l9_1 = null;
|
|
3965
|
+
return tmp.q9();
|
|
3966
3966
|
};
|
|
3967
|
-
protoOf(NodeWasmProver$prove$slambda).
|
|
3968
|
-
return this.
|
|
3967
|
+
protoOf(NodeWasmProver$prove$slambda).ca = function ($completion) {
|
|
3968
|
+
return this.dcw($completion);
|
|
3969
3969
|
};
|
|
3970
|
-
protoOf(NodeWasmProver$prove$slambda).
|
|
3971
|
-
var suspendResult = this.
|
|
3970
|
+
protoOf(NodeWasmProver$prove$slambda).q9 = function () {
|
|
3971
|
+
var suspendResult = this.k9_1;
|
|
3972
3972
|
$sm: do
|
|
3973
3973
|
try {
|
|
3974
|
-
var tmp = this.
|
|
3974
|
+
var tmp = this.i9_1;
|
|
3975
3975
|
switch (tmp) {
|
|
3976
3976
|
case 0:
|
|
3977
|
-
this.
|
|
3978
|
-
this.
|
|
3979
|
-
var tmp_0 = com_dmarket_p2p_headless_node_nodePath_idbzon.join(this.
|
|
3977
|
+
this.j9_1 = 2;
|
|
3978
|
+
this.i9_1 = 1;
|
|
3979
|
+
var tmp_0 = com_dmarket_p2p_headless_node_nodePath_idbzon.join(this.ccw_1.ock_1, 'pkg', 'client_wasm_bg.wasm');
|
|
3980
3980
|
suspendResult = compileWasm((!(tmp_0 == null) ? typeof tmp_0 === 'string' : false) ? tmp_0 : THROW_CCE(), this);
|
|
3981
3981
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3982
3982
|
return suspendResult;
|
|
@@ -3986,122 +3986,122 @@ protoOf(NodeWasmProver$prove$slambda).o9 = function () {
|
|
|
3986
3986
|
case 1:
|
|
3987
3987
|
return suspendResult;
|
|
3988
3988
|
case 2:
|
|
3989
|
-
throw this.
|
|
3989
|
+
throw this.l9_1;
|
|
3990
3990
|
}
|
|
3991
3991
|
} catch ($p) {
|
|
3992
3992
|
var e = $p;
|
|
3993
|
-
if (this.
|
|
3993
|
+
if (this.j9_1 === 2) {
|
|
3994
3994
|
throw e;
|
|
3995
3995
|
} else {
|
|
3996
|
-
this.
|
|
3997
|
-
this.
|
|
3996
|
+
this.i9_1 = this.j9_1;
|
|
3997
|
+
this.l9_1 = e;
|
|
3998
3998
|
}
|
|
3999
3999
|
}
|
|
4000
4000
|
while (true);
|
|
4001
4001
|
};
|
|
4002
|
-
protoOf(NodeWasmProver$prove$slambda).
|
|
4003
|
-
return new NodeWasmProver$prove$slambda(this.
|
|
4002
|
+
protoOf(NodeWasmProver$prove$slambda).p32 = function (completion) {
|
|
4003
|
+
return new NodeWasmProver$prove$slambda(this.ccw_1, completion);
|
|
4004
4004
|
};
|
|
4005
4005
|
function NodeWasmProver$prove$slambda_0($settings, resultContinuation) {
|
|
4006
4006
|
var i = new NodeWasmProver$prove$slambda($settings, resultContinuation);
|
|
4007
4007
|
return constructCallableReference(function ($completion) {
|
|
4008
|
-
return i.
|
|
4008
|
+
return i.dcw($completion);
|
|
4009
4009
|
}, 0);
|
|
4010
4010
|
}
|
|
4011
4011
|
function NodeWasmProver$prove$slambda_1($record, $headers, resultContinuation) {
|
|
4012
|
-
this.
|
|
4013
|
-
this.
|
|
4012
|
+
this.mcw_1 = $record;
|
|
4013
|
+
this.ncw_1 = $headers;
|
|
4014
4014
|
CoroutineImpl.call(this, resultContinuation);
|
|
4015
4015
|
}
|
|
4016
|
-
protoOf(NodeWasmProver$prove$slambda_1).
|
|
4017
|
-
var tmp = this.
|
|
4018
|
-
tmp.
|
|
4019
|
-
tmp.
|
|
4020
|
-
return tmp.
|
|
4016
|
+
protoOf(NodeWasmProver$prove$slambda_1).dcw = function ($completion) {
|
|
4017
|
+
var tmp = this.p32($completion);
|
|
4018
|
+
tmp.k9_1 = Unit_instance;
|
|
4019
|
+
tmp.l9_1 = null;
|
|
4020
|
+
return tmp.q9();
|
|
4021
4021
|
};
|
|
4022
|
-
protoOf(NodeWasmProver$prove$slambda_1).
|
|
4023
|
-
return this.
|
|
4022
|
+
protoOf(NodeWasmProver$prove$slambda_1).ca = function ($completion) {
|
|
4023
|
+
return this.dcw($completion);
|
|
4024
4024
|
};
|
|
4025
|
-
protoOf(NodeWasmProver$prove$slambda_1).
|
|
4026
|
-
var suspendResult = this.
|
|
4025
|
+
protoOf(NodeWasmProver$prove$slambda_1).q9 = function () {
|
|
4026
|
+
var suspendResult = this.k9_1;
|
|
4027
4027
|
$sm: do
|
|
4028
4028
|
try {
|
|
4029
|
-
var tmp = this.
|
|
4029
|
+
var tmp = this.i9_1;
|
|
4030
4030
|
switch (tmp) {
|
|
4031
4031
|
case 0:
|
|
4032
|
-
this.
|
|
4033
|
-
this.
|
|
4034
|
-
this.
|
|
4035
|
-
this.
|
|
4036
|
-
suspendResult = this.
|
|
4032
|
+
this.j9_1 = 4;
|
|
4033
|
+
this.mcw_1.icv_1 = true;
|
|
4034
|
+
this.j9_1 = 2;
|
|
4035
|
+
this.i9_1 = 1;
|
|
4036
|
+
suspendResult = this.ncw_1(this);
|
|
4037
4037
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4038
4038
|
return suspendResult;
|
|
4039
4039
|
}
|
|
4040
4040
|
|
|
4041
4041
|
continue $sm;
|
|
4042
4042
|
case 1:
|
|
4043
|
-
this.
|
|
4044
|
-
this.
|
|
4045
|
-
this.
|
|
4043
|
+
this.ocw_1 = suspendResult;
|
|
4044
|
+
this.j9_1 = 4;
|
|
4045
|
+
this.i9_1 = 3;
|
|
4046
4046
|
continue $sm;
|
|
4047
4047
|
case 2:
|
|
4048
|
-
this.
|
|
4049
|
-
var tmp_0 = this.
|
|
4048
|
+
this.j9_1 = 4;
|
|
4049
|
+
var tmp_0 = this.l9_1;
|
|
4050
4050
|
if (tmp_0 instanceof CancellationException) {
|
|
4051
|
-
var e = this.
|
|
4051
|
+
var e = this.l9_1;
|
|
4052
4052
|
var tmp_1 = this;
|
|
4053
4053
|
throw e;
|
|
4054
4054
|
} else {
|
|
4055
|
-
var tmp_2 = this.
|
|
4055
|
+
var tmp_2 = this.l9_1;
|
|
4056
4056
|
if (tmp_2 instanceof Error) {
|
|
4057
|
-
var e_0 = this.
|
|
4057
|
+
var e_0 = this.l9_1;
|
|
4058
4058
|
var tmp_3 = this;
|
|
4059
|
-
var tmp_4 = this.
|
|
4059
|
+
var tmp_4 = this.mcw_1;
|
|
4060
4060
|
var tmp0_elvis_lhs = e_0.message;
|
|
4061
|
-
tmp_4.
|
|
4061
|
+
tmp_4.pcv_1 = tmp0_elvis_lhs == null ? 'the upgrade could not be signed' : tmp0_elvis_lhs;
|
|
4062
4062
|
throw e_0;
|
|
4063
4063
|
} else {
|
|
4064
|
-
throw this.
|
|
4064
|
+
throw this.l9_1;
|
|
4065
4065
|
}
|
|
4066
4066
|
}
|
|
4067
4067
|
|
|
4068
4068
|
case 3:
|
|
4069
|
-
this.
|
|
4070
|
-
var signed = this.
|
|
4071
|
-
return headerWebSocket(signed.
|
|
4069
|
+
this.j9_1 = 4;
|
|
4070
|
+
var signed = this.ocw_1;
|
|
4071
|
+
return headerWebSocket(signed.ebg_1, this.mcw_1);
|
|
4072
4072
|
case 4:
|
|
4073
|
-
throw this.
|
|
4073
|
+
throw this.l9_1;
|
|
4074
4074
|
}
|
|
4075
4075
|
} catch ($p) {
|
|
4076
4076
|
var e_1 = $p;
|
|
4077
|
-
if (this.
|
|
4077
|
+
if (this.j9_1 === 4) {
|
|
4078
4078
|
throw e_1;
|
|
4079
4079
|
} else {
|
|
4080
|
-
this.
|
|
4081
|
-
this.
|
|
4080
|
+
this.i9_1 = this.j9_1;
|
|
4081
|
+
this.l9_1 = e_1;
|
|
4082
4082
|
}
|
|
4083
4083
|
}
|
|
4084
4084
|
while (true);
|
|
4085
4085
|
};
|
|
4086
|
-
protoOf(NodeWasmProver$prove$slambda_1).
|
|
4087
|
-
return new NodeWasmProver$prove$slambda_1(this.
|
|
4086
|
+
protoOf(NodeWasmProver$prove$slambda_1).p32 = function (completion) {
|
|
4087
|
+
return new NodeWasmProver$prove$slambda_1(this.mcw_1, this.ncw_1, completion);
|
|
4088
4088
|
};
|
|
4089
4089
|
function NodeWasmProver$prove$slambda_2($record, $headers, resultContinuation) {
|
|
4090
4090
|
var i = new NodeWasmProver$prove$slambda_1($record, $headers, resultContinuation);
|
|
4091
4091
|
return constructCallableReference(function ($completion) {
|
|
4092
|
-
return i.
|
|
4092
|
+
return i.dcw($completion);
|
|
4093
4093
|
}, 0);
|
|
4094
4094
|
}
|
|
4095
4095
|
function NodeWasmProver$prove$lambda_0($settings, $record, $targetConnector) {
|
|
4096
4096
|
return function (serverName, port) {
|
|
4097
|
-
var tmp0_elvis_lhs = $settings.
|
|
4097
|
+
var tmp0_elvis_lhs = $settings.qck_1;
|
|
4098
4098
|
return recordedTargetChannel(tmp0_elvis_lhs == null ? serverName + ':' + port : tmp0_elvis_lhs, $record, VOID, $targetConnector);
|
|
4099
4099
|
};
|
|
4100
4100
|
}
|
|
4101
4101
|
function NodeWasmProver$prove$lambda_1($record) {
|
|
4102
4102
|
return function (status) {
|
|
4103
|
-
$record.
|
|
4104
|
-
var progression = Companion_getInstance_17().
|
|
4103
|
+
$record.ocv_1 = status;
|
|
4104
|
+
var progression = Companion_getInstance_17().rcv_1;
|
|
4105
4105
|
var containsLower = progression.s1_1;
|
|
4106
4106
|
var containsUpper = progression.t1_1;
|
|
4107
4107
|
// Inline function 'kotlin.check' call
|
|
@@ -4114,43 +4114,43 @@ function NodeWasmProver$prove$lambda_1($record) {
|
|
|
4114
4114
|
}
|
|
4115
4115
|
function NodeWasmProver$prove$lambda_2($refused) {
|
|
4116
4116
|
return function (code, reason) {
|
|
4117
|
-
$refused.
|
|
4117
|
+
$refused.c16(new SessionClosed(code, reason));
|
|
4118
4118
|
return Unit_instance;
|
|
4119
4119
|
};
|
|
4120
4120
|
}
|
|
4121
4121
|
function NodeWasmProver$prove$slambda_3($refused, $proof, $config, $host, this$0, resultContinuation) {
|
|
4122
|
-
this.
|
|
4123
|
-
this.
|
|
4124
|
-
this.
|
|
4125
|
-
this.
|
|
4126
|
-
this.
|
|
4122
|
+
this.xcw_1 = $refused;
|
|
4123
|
+
this.ycw_1 = $proof;
|
|
4124
|
+
this.zcw_1 = $config;
|
|
4125
|
+
this.acx_1 = $host;
|
|
4126
|
+
this.bcx_1 = this$0;
|
|
4127
4127
|
CoroutineImpl.call(this, resultContinuation);
|
|
4128
4128
|
}
|
|
4129
|
-
protoOf(NodeWasmProver$prove$slambda_3).
|
|
4130
|
-
var tmp = this.
|
|
4131
|
-
tmp.
|
|
4132
|
-
tmp.
|
|
4133
|
-
return tmp.
|
|
4129
|
+
protoOf(NodeWasmProver$prove$slambda_3).dcx = function ($this$coroutineScope, $completion) {
|
|
4130
|
+
var tmp = this.x1o($this$coroutineScope, $completion);
|
|
4131
|
+
tmp.k9_1 = Unit_instance;
|
|
4132
|
+
tmp.l9_1 = null;
|
|
4133
|
+
return tmp.q9();
|
|
4134
4134
|
};
|
|
4135
|
-
protoOf(NodeWasmProver$prove$slambda_3).
|
|
4136
|
-
return this.
|
|
4135
|
+
protoOf(NodeWasmProver$prove$slambda_3).da = function (p1, $completion) {
|
|
4136
|
+
return this.dcx((!(p1 == null) ? isInterface(p1, CoroutineScope_0) : false) ? p1 : THROW_CCE(), $completion);
|
|
4137
4137
|
};
|
|
4138
|
-
protoOf(NodeWasmProver$prove$slambda_3).
|
|
4139
|
-
var suspendResult = this.
|
|
4138
|
+
protoOf(NodeWasmProver$prove$slambda_3).q9 = function () {
|
|
4139
|
+
var suspendResult = this.k9_1;
|
|
4140
4140
|
$sm: do
|
|
4141
4141
|
try {
|
|
4142
|
-
var tmp = this.
|
|
4142
|
+
var tmp = this.i9_1;
|
|
4143
4143
|
switch (tmp) {
|
|
4144
4144
|
case 0:
|
|
4145
|
-
this.
|
|
4146
|
-
var proving = async(this.
|
|
4147
|
-
var $this$run = new SelectImplementation(this.
|
|
4148
|
-
var tmp_0 = proving.
|
|
4149
|
-
$this$run.
|
|
4150
|
-
var tmp_1 = this.
|
|
4151
|
-
$this$run.
|
|
4152
|
-
this.
|
|
4153
|
-
suspendResult = $this$run.
|
|
4145
|
+
this.j9_1 = 2;
|
|
4146
|
+
var proving = async(this.ccx_1, VOID, VOID, NodeWasmProver$prove$slambda$slambda_0(this.ycw_1, this.zcw_1, this.acx_1, this.bcx_1, null));
|
|
4147
|
+
var $this$run = new SelectImplementation(this.o9());
|
|
4148
|
+
var tmp_0 = proving.c13();
|
|
4149
|
+
$this$run.m1t(tmp_0, NodeWasmProver$prove$slambda$slambda_2(null));
|
|
4150
|
+
var tmp_1 = this.xcw_1.c13();
|
|
4151
|
+
$this$run.m1t(tmp_1, NodeWasmProver$prove$slambda$slambda_4(proving, null));
|
|
4152
|
+
this.i9_1 = 1;
|
|
4153
|
+
suspendResult = $this$run.l1t(this);
|
|
4154
4154
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4155
4155
|
return suspendResult;
|
|
4156
4156
|
}
|
|
@@ -4159,28 +4159,28 @@ protoOf(NodeWasmProver$prove$slambda_3).o9 = function () {
|
|
|
4159
4159
|
case 1:
|
|
4160
4160
|
return suspendResult;
|
|
4161
4161
|
case 2:
|
|
4162
|
-
throw this.
|
|
4162
|
+
throw this.l9_1;
|
|
4163
4163
|
}
|
|
4164
4164
|
} catch ($p) {
|
|
4165
4165
|
var e = $p;
|
|
4166
|
-
if (this.
|
|
4166
|
+
if (this.j9_1 === 2) {
|
|
4167
4167
|
throw e;
|
|
4168
4168
|
} else {
|
|
4169
|
-
this.
|
|
4170
|
-
this.
|
|
4169
|
+
this.i9_1 = this.j9_1;
|
|
4170
|
+
this.l9_1 = e;
|
|
4171
4171
|
}
|
|
4172
4172
|
}
|
|
4173
4173
|
while (true);
|
|
4174
4174
|
};
|
|
4175
|
-
protoOf(NodeWasmProver$prove$slambda_3).
|
|
4176
|
-
var i = new NodeWasmProver$prove$slambda_3(this.
|
|
4177
|
-
i.
|
|
4175
|
+
protoOf(NodeWasmProver$prove$slambda_3).x1o = function ($this$coroutineScope, completion) {
|
|
4176
|
+
var i = new NodeWasmProver$prove$slambda_3(this.xcw_1, this.ycw_1, this.zcw_1, this.acx_1, this.bcx_1, completion);
|
|
4177
|
+
i.ccx_1 = $this$coroutineScope;
|
|
4178
4178
|
return i;
|
|
4179
4179
|
};
|
|
4180
4180
|
function NodeWasmProver$prove$slambda_4($refused, $proof, $config, $host, this$0, resultContinuation) {
|
|
4181
4181
|
var i = new NodeWasmProver$prove$slambda_3($refused, $proof, $config, $host, this$0, resultContinuation);
|
|
4182
4182
|
return constructCallableReference(function ($this$coroutineScope, $completion) {
|
|
4183
|
-
return i.
|
|
4183
|
+
return i.dcx($this$coroutineScope, $completion);
|
|
4184
4184
|
}, 1);
|
|
4185
4185
|
}
|
|
4186
4186
|
function NodeWasmProver$classify$lambda(it) {
|
|
@@ -4191,104 +4191,104 @@ function NodeWasmProver$classify$lambda_0(it) {
|
|
|
4191
4191
|
}
|
|
4192
4192
|
function $proveCOROUTINE$_0(_this__u8e3s4, proof, headers, resultContinuation) {
|
|
4193
4193
|
CoroutineImpl.call(this, resultContinuation);
|
|
4194
|
-
this.
|
|
4195
|
-
this.
|
|
4196
|
-
this.
|
|
4194
|
+
this.mcx_1 = _this__u8e3s4;
|
|
4195
|
+
this.ncx_1 = proof;
|
|
4196
|
+
this.ocx_1 = headers;
|
|
4197
4197
|
}
|
|
4198
|
-
protoOf($proveCOROUTINE$_0).
|
|
4199
|
-
var suspendResult = this.
|
|
4198
|
+
protoOf($proveCOROUTINE$_0).q9 = function () {
|
|
4199
|
+
var suspendResult = this.k9_1;
|
|
4200
4200
|
$sm: do
|
|
4201
4201
|
try {
|
|
4202
|
-
var tmp = this.
|
|
4202
|
+
var tmp = this.i9_1;
|
|
4203
4203
|
switch (tmp) {
|
|
4204
4204
|
case 0:
|
|
4205
|
-
this.
|
|
4205
|
+
this.j9_1 = 6;
|
|
4206
4206
|
installBrowserWorker();
|
|
4207
|
-
var settings = this.
|
|
4208
|
-
this.
|
|
4209
|
-
var targetConnector = nodeTcpConnector(settings.
|
|
4207
|
+
var settings = this.ncx_1.ccl_1;
|
|
4208
|
+
this.rcx_1 = new ProverSessionRecord();
|
|
4209
|
+
var targetConnector = nodeTcpConnector(settings.ock_1);
|
|
4210
4210
|
var tmp_0 = this;
|
|
4211
4211
|
var tmp_1 = NodeWasmProver$prove$lambda(settings);
|
|
4212
4212
|
var tmp_2 = NodeWasmProver$prove$slambda_0(settings, null);
|
|
4213
|
-
var tmp_3 = NodeWasmProver$prove$slambda_2(this.
|
|
4214
|
-
var tmp_4 = NodeWasmProver$prove$lambda_0(settings, this.
|
|
4215
|
-
tmp_0.
|
|
4216
|
-
this.
|
|
4217
|
-
this.
|
|
4218
|
-
this.
|
|
4219
|
-
var tmp_5 = this.
|
|
4220
|
-
tmp_5.
|
|
4221
|
-
this.
|
|
4213
|
+
var tmp_3 = NodeWasmProver$prove$slambda_2(this.rcx_1, this.ocx_1, null);
|
|
4214
|
+
var tmp_4 = NodeWasmProver$prove$lambda_0(settings, this.rcx_1, targetConnector);
|
|
4215
|
+
tmp_0.scx_1 = new WasmProverHost(tmp_1, tmp_2, tmp_3, tmp_4, NodeWasmProver$prove$lambda_1(this.rcx_1));
|
|
4216
|
+
this.tcx_1 = new TrackerConfig(VOID, VOID, VOID, VOID, VOID, new NotaryConfig(VOID, settings.mck_1, VOID, VOID, VOID, VOID, settings.nck_1, VOID, VOID, VOID, settings.pck_1));
|
|
4217
|
+
this.pcx_1 = get_nodeProcess().cpuUsage();
|
|
4218
|
+
this.ucx_1 = CompletableDeferred();
|
|
4219
|
+
var tmp_5 = this.rcx_1;
|
|
4220
|
+
tmp_5.qcv_1 = NodeWasmProver$prove$lambda_2(this.ucx_1);
|
|
4221
|
+
this.i9_1 = 1;
|
|
4222
4222
|
continue $sm;
|
|
4223
4223
|
case 1:
|
|
4224
|
-
this.
|
|
4225
|
-
this.
|
|
4226
|
-
this.
|
|
4227
|
-
suspendResult = coroutineScope(NodeWasmProver$prove$slambda_4(this.
|
|
4224
|
+
this.j9_1 = 4;
|
|
4225
|
+
this.j9_1 = 3;
|
|
4226
|
+
this.i9_1 = 2;
|
|
4227
|
+
suspendResult = coroutineScope(NodeWasmProver$prove$slambda_4(this.ucx_1, this.ncx_1, this.tcx_1, this.scx_1, this.mcx_1, null), this);
|
|
4228
4228
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4229
4229
|
return suspendResult;
|
|
4230
4230
|
}
|
|
4231
4231
|
|
|
4232
4232
|
continue $sm;
|
|
4233
4233
|
case 2:
|
|
4234
|
-
this.
|
|
4235
|
-
this.
|
|
4236
|
-
this.
|
|
4234
|
+
this.qcx_1 = suspendResult;
|
|
4235
|
+
this.j9_1 = 6;
|
|
4236
|
+
this.i9_1 = 5;
|
|
4237
4237
|
continue $sm;
|
|
4238
4238
|
case 3:
|
|
4239
|
-
this.
|
|
4240
|
-
var tmp_6 = this.
|
|
4239
|
+
this.j9_1 = 4;
|
|
4240
|
+
var tmp_6 = this.l9_1;
|
|
4241
4241
|
if (tmp_6 instanceof CancellationException) {
|
|
4242
|
-
var e = this.
|
|
4242
|
+
var e = this.l9_1;
|
|
4243
4243
|
var tmp_7 = this;
|
|
4244
4244
|
throw e;
|
|
4245
4245
|
} else {
|
|
4246
|
-
var tmp_8 = this.
|
|
4246
|
+
var tmp_8 = this.l9_1;
|
|
4247
4247
|
if (tmp_8 instanceof Error) {
|
|
4248
|
-
var e_0 = this.
|
|
4248
|
+
var e_0 = this.l9_1;
|
|
4249
4249
|
var tmp_9 = this;
|
|
4250
|
-
tmp_9.
|
|
4251
|
-
this.
|
|
4252
|
-
this.
|
|
4250
|
+
tmp_9.qcx_1 = new Failed_1(classify(this.mcx_1, e_0, this.rcx_1));
|
|
4251
|
+
this.j9_1 = 6;
|
|
4252
|
+
this.i9_1 = 5;
|
|
4253
4253
|
continue $sm;
|
|
4254
4254
|
} else {
|
|
4255
|
-
throw this.
|
|
4255
|
+
throw this.l9_1;
|
|
4256
4256
|
}
|
|
4257
4257
|
}
|
|
4258
4258
|
|
|
4259
4259
|
case 4:
|
|
4260
|
-
this.
|
|
4261
|
-
var t = this.
|
|
4262
|
-
printStats(this.
|
|
4260
|
+
this.j9_1 = 6;
|
|
4261
|
+
var t = this.l9_1;
|
|
4262
|
+
printStats(this.mcx_1, this.pcx_1);
|
|
4263
4263
|
throw t;
|
|
4264
4264
|
case 5:
|
|
4265
|
-
var tmp_10 = this.
|
|
4266
|
-
this.
|
|
4267
|
-
printStats(this.
|
|
4265
|
+
var tmp_10 = this.qcx_1;
|
|
4266
|
+
this.j9_1 = 6;
|
|
4267
|
+
printStats(this.mcx_1, this.pcx_1);
|
|
4268
4268
|
return tmp_10;
|
|
4269
4269
|
case 6:
|
|
4270
|
-
throw this.
|
|
4270
|
+
throw this.l9_1;
|
|
4271
4271
|
}
|
|
4272
4272
|
} catch ($p) {
|
|
4273
4273
|
var e_1 = $p;
|
|
4274
|
-
if (this.
|
|
4274
|
+
if (this.j9_1 === 6) {
|
|
4275
4275
|
throw e_1;
|
|
4276
4276
|
} else {
|
|
4277
|
-
this.
|
|
4278
|
-
this.
|
|
4277
|
+
this.i9_1 = this.j9_1;
|
|
4278
|
+
this.l9_1 = e_1;
|
|
4279
4279
|
}
|
|
4280
4280
|
}
|
|
4281
4281
|
while (true);
|
|
4282
4282
|
};
|
|
4283
4283
|
function NodeWasmProver(clock) {
|
|
4284
4284
|
Companion_getInstance_17();
|
|
4285
|
-
this.
|
|
4285
|
+
this.kcu_1 = clock;
|
|
4286
4286
|
}
|
|
4287
|
-
protoOf(NodeWasmProver).
|
|
4287
|
+
protoOf(NodeWasmProver).vcx = function (proof, headers, $completion) {
|
|
4288
4288
|
var tmp = new $proveCOROUTINE$_0(this, proof, headers, $completion);
|
|
4289
|
-
tmp.
|
|
4290
|
-
tmp.
|
|
4291
|
-
return tmp.
|
|
4289
|
+
tmp.k9_1 = Unit_instance;
|
|
4290
|
+
tmp.l9_1 = null;
|
|
4291
|
+
return tmp.q9();
|
|
4292
4292
|
};
|
|
4293
4293
|
function fileUrl(path) {
|
|
4294
4294
|
var tmp = com_dmarket_p2p_headless_node_nodeUrl_k122d7.pathToFileURL(path).href;
|
|
@@ -4296,24 +4296,24 @@ function fileUrl(path) {
|
|
|
4296
4296
|
}
|
|
4297
4297
|
function compileWasm(path, $completion) {
|
|
4298
4298
|
var tmp = new $compileWasmCOROUTINE$(path, $completion);
|
|
4299
|
-
tmp.
|
|
4300
|
-
tmp.
|
|
4301
|
-
return tmp.
|
|
4299
|
+
tmp.k9_1 = Unit_instance;
|
|
4300
|
+
tmp.l9_1 = null;
|
|
4301
|
+
return tmp.q9();
|
|
4302
4302
|
}
|
|
4303
4303
|
function $compileWasmCOROUTINE$(path, resultContinuation) {
|
|
4304
4304
|
CoroutineImpl.call(this, resultContinuation);
|
|
4305
|
-
this.
|
|
4305
|
+
this.ecy_1 = path;
|
|
4306
4306
|
}
|
|
4307
|
-
protoOf($compileWasmCOROUTINE$).
|
|
4308
|
-
var suspendResult = this.
|
|
4307
|
+
protoOf($compileWasmCOROUTINE$).q9 = function () {
|
|
4308
|
+
var suspendResult = this.k9_1;
|
|
4309
4309
|
$sm: do
|
|
4310
4310
|
try {
|
|
4311
|
-
var tmp = this.
|
|
4311
|
+
var tmp = this.i9_1;
|
|
4312
4312
|
switch (tmp) {
|
|
4313
4313
|
case 0:
|
|
4314
|
-
this.
|
|
4315
|
-
this.
|
|
4316
|
-
var this_0 = com_dmarket_p2p_headless_node_nodeFs_vfkcsf.promises.readFile(this.
|
|
4314
|
+
this.j9_1 = 3;
|
|
4315
|
+
this.i9_1 = 1;
|
|
4316
|
+
var this_0 = com_dmarket_p2p_headless_node_nodeFs_vfkcsf.promises.readFile(this.ecy_1);
|
|
4317
4317
|
suspendResult = await_0(this_0, this);
|
|
4318
4318
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4319
4319
|
return suspendResult;
|
|
@@ -4323,7 +4323,7 @@ protoOf($compileWasmCOROUTINE$).o9 = function () {
|
|
|
4323
4323
|
case 1:
|
|
4324
4324
|
var bytes = suspendResult;
|
|
4325
4325
|
var webAssembly = WebAssembly;
|
|
4326
|
-
this.
|
|
4326
|
+
this.i9_1 = 2;
|
|
4327
4327
|
var this_1 = webAssembly.compile(bytes);
|
|
4328
4328
|
suspendResult = await_0(this_1, this);
|
|
4329
4329
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -4334,15 +4334,15 @@ protoOf($compileWasmCOROUTINE$).o9 = function () {
|
|
|
4334
4334
|
case 2:
|
|
4335
4335
|
return suspendResult;
|
|
4336
4336
|
case 3:
|
|
4337
|
-
throw this.
|
|
4337
|
+
throw this.l9_1;
|
|
4338
4338
|
}
|
|
4339
4339
|
} catch ($p) {
|
|
4340
4340
|
var e = $p;
|
|
4341
|
-
if (this.
|
|
4341
|
+
if (this.j9_1 === 3) {
|
|
4342
4342
|
throw e;
|
|
4343
4343
|
} else {
|
|
4344
|
-
this.
|
|
4345
|
-
this.
|
|
4344
|
+
this.i9_1 = this.j9_1;
|
|
4345
|
+
this.l9_1 = e;
|
|
4346
4346
|
}
|
|
4347
4347
|
}
|
|
4348
4348
|
while (true);
|
|
@@ -4388,15 +4388,15 @@ function get_UNEXPECTED_RESPONSE() {
|
|
|
4388
4388
|
}
|
|
4389
4389
|
var UNEXPECTED_RESPONSE;
|
|
4390
4390
|
function ProverSessionRecord() {
|
|
4391
|
-
this.
|
|
4392
|
-
this.
|
|
4393
|
-
this.
|
|
4394
|
-
this.
|
|
4395
|
-
this.
|
|
4396
|
-
this.
|
|
4397
|
-
this.
|
|
4398
|
-
this.
|
|
4399
|
-
this.
|
|
4391
|
+
this.icv_1 = false;
|
|
4392
|
+
this.jcv_1 = false;
|
|
4393
|
+
this.kcv_1 = null;
|
|
4394
|
+
this.lcv_1 = null;
|
|
4395
|
+
this.mcv_1 = null;
|
|
4396
|
+
this.ncv_1 = null;
|
|
4397
|
+
this.ocv_1 = null;
|
|
4398
|
+
this.pcv_1 = null;
|
|
4399
|
+
this.qcv_1 = null;
|
|
4400
4400
|
}
|
|
4401
4401
|
function headerWebSocket(headers_0, record) {
|
|
4402
4402
|
_init_properties_ProverChannels_kt__wlcf1i();
|
|
@@ -4490,7 +4490,7 @@ function nodeTcpConnector(assetsDir) {
|
|
|
4490
4490
|
}
|
|
4491
4491
|
function headerWebSocket$lambda($record) {
|
|
4492
4492
|
return function () {
|
|
4493
|
-
$record.
|
|
4493
|
+
$record.jcv_1 = true;
|
|
4494
4494
|
var tmp = get_nodeProcess().memoryUsage().rss;
|
|
4495
4495
|
println('prover: notary connected rssMb=' + divide(numberToLong(isNumber(tmp) ? tmp : THROW_CCE()), new Long(1048576, 0)).toString());
|
|
4496
4496
|
return Unit_instance;
|
|
@@ -4501,8 +4501,8 @@ function headerWebSocket$lambda_0($record) {
|
|
|
4501
4501
|
var tmp = get_UNEXPECTED_RESPONSE();
|
|
4502
4502
|
// Inline function 'kotlin.text.orEmpty' call
|
|
4503
4503
|
var tmp$ret$0 = message == null ? '' : message;
|
|
4504
|
-
var tmp0_safe_receiver = tmp.
|
|
4505
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
4504
|
+
var tmp0_safe_receiver = tmp.td(tmp$ret$0);
|
|
4505
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.qe();
|
|
4506
4506
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.h1(1);
|
|
4507
4507
|
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : toIntOrNull(tmp2_safe_receiver);
|
|
4508
4508
|
var tmp_0;
|
|
@@ -4510,7 +4510,7 @@ function headerWebSocket$lambda_0($record) {
|
|
|
4510
4510
|
tmp_0 = null;
|
|
4511
4511
|
} else {
|
|
4512
4512
|
// Inline function 'kotlin.let' call
|
|
4513
|
-
$record.
|
|
4513
|
+
$record.kcv_1 = tmp3_safe_receiver;
|
|
4514
4514
|
tmp_0 = Unit_instance;
|
|
4515
4515
|
}
|
|
4516
4516
|
return tmp_0;
|
|
@@ -4519,8 +4519,8 @@ function headerWebSocket$lambda_0($record) {
|
|
|
4519
4519
|
function headerWebSocket$lambda_1($record) {
|
|
4520
4520
|
return function (code, reason) {
|
|
4521
4521
|
var tmp;
|
|
4522
|
-
if ($record.
|
|
4523
|
-
$record.
|
|
4522
|
+
if ($record.jcv_1) {
|
|
4523
|
+
$record.lcv_1 = code;
|
|
4524
4524
|
var tmp_0 = $record;
|
|
4525
4525
|
var tmp_1;
|
|
4526
4526
|
if (reason == null) {
|
|
@@ -4536,14 +4536,14 @@ function headerWebSocket$lambda_1($record) {
|
|
|
4536
4536
|
}
|
|
4537
4537
|
tmp_1 = tmp_2;
|
|
4538
4538
|
}
|
|
4539
|
-
tmp_0.
|
|
4539
|
+
tmp_0.mcv_1 = tmp_1;
|
|
4540
4540
|
var tmp_3;
|
|
4541
4541
|
if (!get_UNDELIBERATE_CLOSES().k1(code)) {
|
|
4542
|
-
var tmp1_safe_receiver = $record.
|
|
4542
|
+
var tmp1_safe_receiver = $record.qcv_1;
|
|
4543
4543
|
if (tmp1_safe_receiver == null)
|
|
4544
4544
|
null;
|
|
4545
4545
|
else
|
|
4546
|
-
tmp1_safe_receiver(code, $record.
|
|
4546
|
+
tmp1_safe_receiver(code, $record.mcv_1);
|
|
4547
4547
|
tmp_3 = Unit_instance;
|
|
4548
4548
|
}
|
|
4549
4549
|
tmp = tmp_3;
|
|
@@ -4554,9 +4554,9 @@ function headerWebSocket$lambda_1($record) {
|
|
|
4554
4554
|
function recordedTargetChannel$lambda($record) {
|
|
4555
4555
|
return function (message) {
|
|
4556
4556
|
var tmp;
|
|
4557
|
-
if ($record.
|
|
4557
|
+
if ($record.ncv_1 == null) {
|
|
4558
4558
|
var tmp_0 = $record;
|
|
4559
|
-
tmp_0.
|
|
4559
|
+
tmp_0.ncv_1 = message == null ? 'the Steam connection failed' : message;
|
|
4560
4560
|
tmp = Unit_instance;
|
|
4561
4561
|
}
|
|
4562
4562
|
return Unit_instance;
|
|
@@ -4571,34 +4571,34 @@ function _init_properties_ProverChannels_kt__wlcf1i() {
|
|
|
4571
4571
|
}
|
|
4572
4572
|
}
|
|
4573
4573
|
function Proved_1(presentation) {
|
|
4574
|
-
this.
|
|
4574
|
+
this.fcy_1 = presentation;
|
|
4575
4575
|
}
|
|
4576
4576
|
protoOf(Proved_1).toString = function () {
|
|
4577
|
-
return 'Proved(presentation=' + this.
|
|
4577
|
+
return 'Proved(presentation=' + this.fcy_1 + ')';
|
|
4578
4578
|
};
|
|
4579
4579
|
protoOf(Proved_1).hashCode = function () {
|
|
4580
|
-
return getStringHashCode(this.
|
|
4580
|
+
return getStringHashCode(this.fcy_1);
|
|
4581
4581
|
};
|
|
4582
4582
|
protoOf(Proved_1).equals = function (other) {
|
|
4583
4583
|
if (this === other)
|
|
4584
4584
|
return true;
|
|
4585
4585
|
if (!(other instanceof Proved_1))
|
|
4586
4586
|
return false;
|
|
4587
|
-
if (!(this.
|
|
4587
|
+
if (!(this.fcy_1 === other.fcy_1))
|
|
4588
4588
|
return false;
|
|
4589
4589
|
return true;
|
|
4590
4590
|
};
|
|
4591
4591
|
function Failed_1(failure, exitAfter) {
|
|
4592
4592
|
exitAfter = exitAfter === VOID ? false : exitAfter;
|
|
4593
|
-
this.
|
|
4594
|
-
this.
|
|
4593
|
+
this.gcy_1 = failure;
|
|
4594
|
+
this.hcy_1 = exitAfter;
|
|
4595
4595
|
}
|
|
4596
4596
|
protoOf(Failed_1).toString = function () {
|
|
4597
|
-
return 'Failed(failure=' + toString_0(this.
|
|
4597
|
+
return 'Failed(failure=' + toString_0(this.gcy_1) + ', exitAfter=' + this.hcy_1 + ')';
|
|
4598
4598
|
};
|
|
4599
4599
|
protoOf(Failed_1).hashCode = function () {
|
|
4600
|
-
var result = hashCode(this.
|
|
4601
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
4600
|
+
var result = hashCode(this.gcy_1);
|
|
4601
|
+
result = imul(result, 31) + getBooleanHashCode(this.hcy_1) | 0;
|
|
4602
4602
|
return result;
|
|
4603
4603
|
};
|
|
4604
4604
|
protoOf(Failed_1).equals = function (other) {
|
|
@@ -4606,15 +4606,15 @@ protoOf(Failed_1).equals = function (other) {
|
|
|
4606
4606
|
return true;
|
|
4607
4607
|
if (!(other instanceof Failed_1))
|
|
4608
4608
|
return false;
|
|
4609
|
-
if (!equals(this.
|
|
4609
|
+
if (!equals(this.gcy_1, other.gcy_1))
|
|
4610
4610
|
return false;
|
|
4611
|
-
if (!(this.
|
|
4611
|
+
if (!(this.hcy_1 === other.hcy_1))
|
|
4612
4612
|
return false;
|
|
4613
4613
|
return true;
|
|
4614
4614
|
};
|
|
4615
4615
|
function runProverChild_0(prover) {
|
|
4616
4616
|
markFirstToKill();
|
|
4617
|
-
var scope = CoroutineScope(SupervisorJob().
|
|
4617
|
+
var scope = CoroutineScope(SupervisorJob().sk(Dispatchers_getInstance().k1a_1));
|
|
4618
4618
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
4619
4619
|
var waiting = LinkedHashMap_init_$Create$();
|
|
4620
4620
|
var process = get_nodeProcess();
|
|
@@ -4662,34 +4662,34 @@ function markFirstToKill() {
|
|
|
4662
4662
|
}
|
|
4663
4663
|
}
|
|
4664
4664
|
function runProverChild$lambda$slambda$slambda($waiting, $message, resultContinuation) {
|
|
4665
|
-
this.
|
|
4666
|
-
this.
|
|
4665
|
+
this.qcy_1 = $waiting;
|
|
4666
|
+
this.rcy_1 = $message;
|
|
4667
4667
|
CoroutineImpl.call(this, resultContinuation);
|
|
4668
4668
|
}
|
|
4669
|
-
protoOf(runProverChild$lambda$slambda$slambda).
|
|
4670
|
-
var tmp = this.
|
|
4671
|
-
tmp.
|
|
4672
|
-
tmp.
|
|
4673
|
-
return tmp.
|
|
4669
|
+
protoOf(runProverChild$lambda$slambda$slambda).scy = function ($completion) {
|
|
4670
|
+
var tmp = this.p32($completion);
|
|
4671
|
+
tmp.k9_1 = Unit_instance;
|
|
4672
|
+
tmp.l9_1 = null;
|
|
4673
|
+
return tmp.q9();
|
|
4674
4674
|
};
|
|
4675
|
-
protoOf(runProverChild$lambda$slambda$slambda).
|
|
4676
|
-
return this.
|
|
4675
|
+
protoOf(runProverChild$lambda$slambda$slambda).ca = function ($completion) {
|
|
4676
|
+
return this.scy($completion);
|
|
4677
4677
|
};
|
|
4678
|
-
protoOf(runProverChild$lambda$slambda$slambda).
|
|
4679
|
-
var suspendResult = this.
|
|
4678
|
+
protoOf(runProverChild$lambda$slambda$slambda).q9 = function () {
|
|
4679
|
+
var suspendResult = this.k9_1;
|
|
4680
4680
|
$sm: do
|
|
4681
4681
|
try {
|
|
4682
|
-
var tmp = this.
|
|
4682
|
+
var tmp = this.i9_1;
|
|
4683
4683
|
switch (tmp) {
|
|
4684
4684
|
case 0:
|
|
4685
|
-
this.
|
|
4685
|
+
this.j9_1 = 2;
|
|
4686
4686
|
var reply = CompletableDeferred();
|
|
4687
|
-
var tmp0 = this.
|
|
4688
|
-
var key = this.
|
|
4689
|
-
tmp0.
|
|
4690
|
-
send(ProverIpc_getInstance().
|
|
4691
|
-
this.
|
|
4692
|
-
suspendResult = reply.
|
|
4687
|
+
var tmp0 = this.qcy_1;
|
|
4688
|
+
var key = this.rcy_1.yck_1;
|
|
4689
|
+
tmp0.a3(key, reply);
|
|
4690
|
+
send(ProverIpc_getInstance().tck(new HeadersWanted(this.rcy_1.yck_1)));
|
|
4691
|
+
this.i9_1 = 1;
|
|
4692
|
+
suspendResult = reply.b13(this);
|
|
4693
4693
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4694
4694
|
return suspendResult;
|
|
4695
4695
|
}
|
|
@@ -4697,10 +4697,10 @@ protoOf(runProverChild$lambda$slambda$slambda).o9 = function () {
|
|
|
4697
4697
|
continue $sm;
|
|
4698
4698
|
case 1:
|
|
4699
4699
|
var answer = suspendResult;
|
|
4700
|
-
var tmp0_elvis_lhs = answer.
|
|
4700
|
+
var tmp0_elvis_lhs = answer.hcl_1;
|
|
4701
4701
|
var tmp_0;
|
|
4702
4702
|
if (tmp0_elvis_lhs == null) {
|
|
4703
|
-
var tmp1_elvis_lhs = answer.
|
|
4703
|
+
var tmp1_elvis_lhs = answer.icl_1;
|
|
4704
4704
|
var message = tmp1_elvis_lhs == null ? 'the SDK sent no upgrade headers' : tmp1_elvis_lhs;
|
|
4705
4705
|
throw IllegalStateException_init_$Create$(toString_0(message));
|
|
4706
4706
|
} else {
|
|
@@ -4709,26 +4709,26 @@ protoOf(runProverChild$lambda$slambda$slambda).o9 = function () {
|
|
|
4709
4709
|
|
|
4710
4710
|
return new NotaryUpgradeHeaders(tmp_0);
|
|
4711
4711
|
case 2:
|
|
4712
|
-
throw this.
|
|
4712
|
+
throw this.l9_1;
|
|
4713
4713
|
}
|
|
4714
4714
|
} catch ($p) {
|
|
4715
4715
|
var e = $p;
|
|
4716
|
-
if (this.
|
|
4716
|
+
if (this.j9_1 === 2) {
|
|
4717
4717
|
throw e;
|
|
4718
4718
|
} else {
|
|
4719
|
-
this.
|
|
4720
|
-
this.
|
|
4719
|
+
this.i9_1 = this.j9_1;
|
|
4720
|
+
this.l9_1 = e;
|
|
4721
4721
|
}
|
|
4722
4722
|
}
|
|
4723
4723
|
while (true);
|
|
4724
4724
|
};
|
|
4725
|
-
protoOf(runProverChild$lambda$slambda$slambda).
|
|
4726
|
-
return new runProverChild$lambda$slambda$slambda(this.
|
|
4725
|
+
protoOf(runProverChild$lambda$slambda$slambda).p32 = function (completion) {
|
|
4726
|
+
return new runProverChild$lambda$slambda$slambda(this.qcy_1, this.rcy_1, completion);
|
|
4727
4727
|
};
|
|
4728
4728
|
function runProverChild$lambda$slambda$slambda_0($waiting, $message, resultContinuation) {
|
|
4729
4729
|
var i = new runProverChild$lambda$slambda$slambda($waiting, $message, resultContinuation);
|
|
4730
4730
|
return constructCallableReference(function ($completion) {
|
|
4731
|
-
return i.
|
|
4731
|
+
return i.scy($completion);
|
|
4732
4732
|
}, 0);
|
|
4733
4733
|
}
|
|
4734
4734
|
function runProverChild$lambda$slambda$lambda($process) {
|
|
@@ -4737,110 +4737,110 @@ function runProverChild$lambda$slambda$lambda($process) {
|
|
|
4737
4737
|
};
|
|
4738
4738
|
}
|
|
4739
4739
|
function runProverChild$lambda$slambda($prover, $message, $waiting, $process, resultContinuation) {
|
|
4740
|
-
this.
|
|
4741
|
-
this.
|
|
4742
|
-
this.
|
|
4743
|
-
this.
|
|
4740
|
+
this.bcz_1 = $prover;
|
|
4741
|
+
this.ccz_1 = $message;
|
|
4742
|
+
this.dcz_1 = $waiting;
|
|
4743
|
+
this.ecz_1 = $process;
|
|
4744
4744
|
CoroutineImpl.call(this, resultContinuation);
|
|
4745
4745
|
}
|
|
4746
|
-
protoOf(runProverChild$lambda$slambda).
|
|
4747
|
-
var tmp = this.
|
|
4748
|
-
tmp.
|
|
4749
|
-
tmp.
|
|
4750
|
-
return tmp.
|
|
4746
|
+
protoOf(runProverChild$lambda$slambda).w1o = function ($this$launch, $completion) {
|
|
4747
|
+
var tmp = this.x1o($this$launch, $completion);
|
|
4748
|
+
tmp.k9_1 = Unit_instance;
|
|
4749
|
+
tmp.l9_1 = null;
|
|
4750
|
+
return tmp.q9();
|
|
4751
4751
|
};
|
|
4752
|
-
protoOf(runProverChild$lambda$slambda).
|
|
4753
|
-
return this.
|
|
4752
|
+
protoOf(runProverChild$lambda$slambda).da = function (p1, $completion) {
|
|
4753
|
+
return this.w1o((!(p1 == null) ? isInterface(p1, CoroutineScope_0) : false) ? p1 : THROW_CCE(), $completion);
|
|
4754
4754
|
};
|
|
4755
|
-
protoOf(runProverChild$lambda$slambda).
|
|
4756
|
-
var suspendResult = this.
|
|
4755
|
+
protoOf(runProverChild$lambda$slambda).q9 = function () {
|
|
4756
|
+
var suspendResult = this.k9_1;
|
|
4757
4757
|
$sm: do
|
|
4758
4758
|
try {
|
|
4759
|
-
var tmp = this.
|
|
4759
|
+
var tmp = this.i9_1;
|
|
4760
4760
|
switch (tmp) {
|
|
4761
4761
|
case 0:
|
|
4762
|
-
this.
|
|
4763
|
-
var headers = runProverChild$lambda$slambda$slambda_0(this.
|
|
4764
|
-
this.
|
|
4765
|
-
this.
|
|
4766
|
-
suspendResult = this.
|
|
4762
|
+
this.j9_1 = 4;
|
|
4763
|
+
var headers = runProverChild$lambda$slambda$slambda_0(this.dcz_1, this.ccz_1, null);
|
|
4764
|
+
this.j9_1 = 2;
|
|
4765
|
+
this.i9_1 = 1;
|
|
4766
|
+
suspendResult = this.bcz_1.vcx(this.ccz_1, headers, this);
|
|
4767
4767
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4768
4768
|
return suspendResult;
|
|
4769
4769
|
}
|
|
4770
4770
|
|
|
4771
4771
|
continue $sm;
|
|
4772
4772
|
case 1:
|
|
4773
|
-
this.
|
|
4774
|
-
this.
|
|
4775
|
-
this.
|
|
4773
|
+
this.gcz_1 = suspendResult;
|
|
4774
|
+
this.j9_1 = 4;
|
|
4775
|
+
this.i9_1 = 3;
|
|
4776
4776
|
continue $sm;
|
|
4777
4777
|
case 2:
|
|
4778
|
-
this.
|
|
4779
|
-
var tmp_0 = this.
|
|
4778
|
+
this.j9_1 = 4;
|
|
4779
|
+
var tmp_0 = this.l9_1;
|
|
4780
4780
|
if (tmp_0 instanceof Error) {
|
|
4781
|
-
var e = this.
|
|
4781
|
+
var e = this.l9_1;
|
|
4782
4782
|
var tmp_1 = this;
|
|
4783
4783
|
var tmp0_elvis_lhs = e.message;
|
|
4784
4784
|
var tmp1_elvis_lhs = tmp0_elvis_lhs == null ? getKClassFromExpression(e).o() : tmp0_elvis_lhs;
|
|
4785
|
-
tmp_1.
|
|
4786
|
-
this.
|
|
4785
|
+
tmp_1.gcz_1 = new Failed_1(new Other(tmp1_elvis_lhs == null ? 'the prover failed' : tmp1_elvis_lhs));
|
|
4786
|
+
this.i9_1 = 3;
|
|
4787
4787
|
continue $sm;
|
|
4788
4788
|
} else {
|
|
4789
|
-
throw this.
|
|
4789
|
+
throw this.l9_1;
|
|
4790
4790
|
}
|
|
4791
4791
|
|
|
4792
4792
|
case 3:
|
|
4793
|
-
this.
|
|
4794
|
-
var result = this.
|
|
4793
|
+
this.j9_1 = 4;
|
|
4794
|
+
var result = this.gcz_1;
|
|
4795
4795
|
var tmp_2 = ProverIpc_getInstance();
|
|
4796
4796
|
var tmp_3;
|
|
4797
4797
|
if (result instanceof Proved_1) {
|
|
4798
|
-
tmp_3 = new Proved_0(this.
|
|
4798
|
+
tmp_3 = new Proved_0(this.ccz_1.yck_1, result.fcy_1);
|
|
4799
4799
|
} else {
|
|
4800
4800
|
if (result instanceof Failed_1) {
|
|
4801
|
-
tmp_3 = new Failed_0(this.
|
|
4801
|
+
tmp_3 = new Failed_0(this.ccz_1.yck_1, result.gcy_1);
|
|
4802
4802
|
} else {
|
|
4803
4803
|
noWhenBranchMatchedException();
|
|
4804
4804
|
}
|
|
4805
4805
|
}
|
|
4806
4806
|
|
|
4807
|
-
send(tmp_2.
|
|
4807
|
+
send(tmp_2.tck(tmp_3));
|
|
4808
4808
|
var tmp_4;
|
|
4809
4809
|
if (result instanceof Failed_1) {
|
|
4810
|
-
tmp_4 = result.
|
|
4810
|
+
tmp_4 = result.hcy_1;
|
|
4811
4811
|
} else {
|
|
4812
4812
|
tmp_4 = false;
|
|
4813
4813
|
}
|
|
4814
4814
|
|
|
4815
4815
|
if (tmp_4) {
|
|
4816
4816
|
var tmp_5 = setTimeout;
|
|
4817
|
-
tmp_5(runProverChild$lambda$slambda$lambda(this.
|
|
4817
|
+
tmp_5(runProverChild$lambda$slambda$lambda(this.ecz_1), 200);
|
|
4818
4818
|
}
|
|
4819
4819
|
|
|
4820
4820
|
return Unit_instance;
|
|
4821
4821
|
case 4:
|
|
4822
|
-
throw this.
|
|
4822
|
+
throw this.l9_1;
|
|
4823
4823
|
}
|
|
4824
4824
|
} catch ($p) {
|
|
4825
4825
|
var e_0 = $p;
|
|
4826
|
-
if (this.
|
|
4826
|
+
if (this.j9_1 === 4) {
|
|
4827
4827
|
throw e_0;
|
|
4828
4828
|
} else {
|
|
4829
|
-
this.
|
|
4830
|
-
this.
|
|
4829
|
+
this.i9_1 = this.j9_1;
|
|
4830
|
+
this.l9_1 = e_0;
|
|
4831
4831
|
}
|
|
4832
4832
|
}
|
|
4833
4833
|
while (true);
|
|
4834
4834
|
};
|
|
4835
|
-
protoOf(runProverChild$lambda$slambda).
|
|
4836
|
-
var i = new runProverChild$lambda$slambda(this.
|
|
4837
|
-
i.
|
|
4835
|
+
protoOf(runProverChild$lambda$slambda).x1o = function ($this$launch, completion) {
|
|
4836
|
+
var i = new runProverChild$lambda$slambda(this.bcz_1, this.ccz_1, this.dcz_1, this.ecz_1, completion);
|
|
4837
|
+
i.fcz_1 = $this$launch;
|
|
4838
4838
|
return i;
|
|
4839
4839
|
};
|
|
4840
4840
|
function runProverChild$lambda$slambda_0($prover, $message, $waiting, $process, resultContinuation) {
|
|
4841
4841
|
var i = new runProverChild$lambda$slambda($prover, $message, $waiting, $process, resultContinuation);
|
|
4842
4842
|
return constructCallableReference(function ($this$launch, $completion) {
|
|
4843
|
-
return i.
|
|
4843
|
+
return i.w1o($this$launch, $completion);
|
|
4844
4844
|
}, 1);
|
|
4845
4845
|
}
|
|
4846
4846
|
function runProverChild$lambda($waiting, $scope, $prover, $process) {
|
|
@@ -4855,7 +4855,7 @@ function runProverChild$lambda($waiting, $scope, $prover, $process) {
|
|
|
4855
4855
|
var tmp_1 = ProverIpc_getInstance();
|
|
4856
4856
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
4857
4857
|
// Inline function 'kotlin.Companion.success' call
|
|
4858
|
-
var value = tmp_1.
|
|
4858
|
+
var value = tmp_1.uck(raw);
|
|
4859
4859
|
tmp_0 = _Result___init__impl__xyqfz8(value);
|
|
4860
4860
|
} catch ($p) {
|
|
4861
4861
|
var tmp_2;
|
|
@@ -4872,11 +4872,11 @@ function runProverChild$lambda($waiting, $scope, $prover, $process) {
|
|
|
4872
4872
|
var this_0 = tmp_0;
|
|
4873
4873
|
var message = _Result___get_isFailure__impl__jpiriv(this_0) ? null : _Result___get_value__impl__bjfvqg(this_0);
|
|
4874
4874
|
if (message instanceof Headers) {
|
|
4875
|
-
var tmp0_safe_receiver = $waiting.
|
|
4875
|
+
var tmp0_safe_receiver = $waiting.b3(message.gcl_1);
|
|
4876
4876
|
if (tmp0_safe_receiver == null)
|
|
4877
4877
|
null;
|
|
4878
4878
|
else
|
|
4879
|
-
tmp0_safe_receiver.
|
|
4879
|
+
tmp0_safe_receiver.c16(message);
|
|
4880
4880
|
} else {
|
|
4881
4881
|
if (message instanceof Prove) {
|
|
4882
4882
|
launch($scope, VOID, VOID, runProverChild$lambda$slambda_0($prover, message, $waiting, $process, null));
|
|
@@ -4895,12 +4895,12 @@ function runProverChild$lambda_0($process) {
|
|
|
4895
4895
|
};
|
|
4896
4896
|
}
|
|
4897
4897
|
//region block: post-declaration
|
|
4898
|
-
protoOf($serializer).
|
|
4899
|
-
protoOf($serializer_0).
|
|
4900
|
-
protoOf($serializer_1).
|
|
4901
|
-
protoOf($serializer_2).
|
|
4902
|
-
protoOf($serializer_3).
|
|
4903
|
-
protoOf($serializer_4).
|
|
4898
|
+
protoOf($serializer).d2l = typeParametersSerializers;
|
|
4899
|
+
protoOf($serializer_0).d2l = typeParametersSerializers;
|
|
4900
|
+
protoOf($serializer_1).d2l = typeParametersSerializers;
|
|
4901
|
+
protoOf($serializer_2).d2l = typeParametersSerializers;
|
|
4902
|
+
protoOf($serializer_3).d2l = typeParametersSerializers;
|
|
4903
|
+
protoOf($serializer_4).d2l = typeParametersSerializers;
|
|
4904
4904
|
//endregion
|
|
4905
4905
|
//region block: init
|
|
4906
4906
|
Companion_instance_3 = new Companion_0();
|