@dmarket/p2p-tracker-headless 1.2.1-SNAPSHOT-development.156 → 1.2.1-SNAPSHOT-development.162
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 +22 -0
- package/dmarket-p2p-tracker-core-domain.mjs.map +1 -1
- package/kotlin-kotlin-stdlib.mjs +4 -4
- package/kotlinx-coroutines-core.mjs +8 -8
- package/kotlinx-coroutines-core.mjs.map +1 -1
- package/ktor-ktor-websockets.mjs +2 -2
- package/p2p-tracker-core.mjs +3569 -3529
- package/p2p-tracker-core.mjs.map +1 -1
- package/p2p-tracker-headless.mjs +716 -716
- package/package.json +1 -1
package/p2p-tracker-headless.mjs
CHANGED
|
@@ -294,7 +294,7 @@ 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.zbe_1;
|
|
298
298
|
var tmp_0;
|
|
299
299
|
if (tmp1_safe_receiver == null) {
|
|
300
300
|
tmp_0 = null;
|
|
@@ -302,22 +302,22 @@ function redacted($this, $receiver) {
|
|
|
302
302
|
// Inline function 'kotlin.let' call
|
|
303
303
|
tmp_0 = ProverOutput_getInstance().u7b(tmp1_safe_receiver);
|
|
304
304
|
}
|
|
305
|
-
tmp = $receiver.
|
|
305
|
+
tmp = $receiver.bbg(VOID, tmp_0);
|
|
306
306
|
} else {
|
|
307
307
|
if ($receiver instanceof NotaryUnreachable) {
|
|
308
|
-
tmp = $receiver.
|
|
308
|
+
tmp = $receiver.cbg(ProverOutput_getInstance().u7b($receiver.cbf_1));
|
|
309
309
|
} else {
|
|
310
310
|
if ($receiver instanceof VersionMismatch) {
|
|
311
|
-
tmp = $receiver.
|
|
311
|
+
tmp = $receiver.cbg(ProverOutput_getInstance().u7b($receiver.fbf_1));
|
|
312
312
|
} else {
|
|
313
313
|
if ($receiver instanceof SteamFailed) {
|
|
314
|
-
tmp = $receiver.
|
|
314
|
+
tmp = $receiver.ebg(VOID, ProverOutput_getInstance().u7b($receiver.jbf_1));
|
|
315
315
|
} else {
|
|
316
316
|
if ($receiver instanceof LimitsExceeded) {
|
|
317
|
-
tmp = $receiver.
|
|
317
|
+
tmp = $receiver.cbg(ProverOutput_getInstance().u7b($receiver.mbf_1));
|
|
318
318
|
} else {
|
|
319
319
|
if ($receiver instanceof ProverKilled) {
|
|
320
|
-
var tmp2_safe_receiver = $receiver.
|
|
320
|
+
var tmp2_safe_receiver = $receiver.sbf_1;
|
|
321
321
|
var tmp_1;
|
|
322
322
|
if (tmp2_safe_receiver == null) {
|
|
323
323
|
tmp_1 = null;
|
|
@@ -325,13 +325,13 @@ function redacted($this, $receiver) {
|
|
|
325
325
|
// Inline function 'kotlin.let' call
|
|
326
326
|
tmp_1 = ProverOutput_getInstance().u7b(tmp2_safe_receiver);
|
|
327
327
|
}
|
|
328
|
-
tmp = $receiver.
|
|
328
|
+
tmp = $receiver.jbg(VOID, tmp_1);
|
|
329
329
|
} else {
|
|
330
330
|
if ($receiver instanceof NotStarted) {
|
|
331
|
-
tmp = $receiver.
|
|
331
|
+
tmp = $receiver.cbg(ProverOutput_getInstance().u7b($receiver.vbf_1));
|
|
332
332
|
} else {
|
|
333
333
|
if ($receiver instanceof Other) {
|
|
334
|
-
tmp = $receiver.
|
|
334
|
+
tmp = $receiver.cbg(ProverOutput_getInstance().u7b($receiver.ybf_1));
|
|
335
335
|
} else {
|
|
336
336
|
noWhenBranchMatchedException();
|
|
337
337
|
}
|
|
@@ -353,13 +353,13 @@ function ProofOutcomeJson$json$lambda($this$Json) {
|
|
|
353
353
|
function ProofOutcomeJson() {
|
|
354
354
|
ProofOutcomeJson_instance = this;
|
|
355
355
|
var tmp = this;
|
|
356
|
-
tmp.
|
|
356
|
+
tmp.gcl_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().u7b(failure.
|
|
358
|
+
protoOf(ProofOutcomeJson).hcl = function (failure) {
|
|
359
|
+
var fields = get_jsonObject(this.gcl_1.q53(Companion_instance_0.d56(), redacted(this, failure)));
|
|
360
|
+
return (new JsonObject(plus(fields, to('summary', JsonPrimitive(ProverOutput_getInstance().u7b(failure.zbf())))))).toString();
|
|
361
361
|
};
|
|
362
|
-
protoOf(ProofOutcomeJson).
|
|
362
|
+
protoOf(ProofOutcomeJson).icl = 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
|
|
@@ -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.pcl_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.qcl_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.jcl_1 = 401;
|
|
409
|
+
this.kcl_1 = 403;
|
|
410
|
+
this.lcl_1 = numberRangeToNumber(500, 599);
|
|
411
|
+
this.mcl_1 = 1013;
|
|
412
|
+
this.ncl_1 = 4029;
|
|
413
|
+
this.ocl_1 = 10;
|
|
414
414
|
var tmp = this;
|
|
415
415
|
// Inline function 'kotlin.time.Companion.seconds' call
|
|
416
416
|
Companion_getInstance();
|
|
417
|
-
tmp.
|
|
417
|
+
tmp.pcl_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.qcl_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.rcl_1 = toDuration(60, DurationUnit_SECONDS_getInstance());
|
|
426
426
|
}
|
|
427
|
-
protoOf(Companion).
|
|
427
|
+
protoOf(Companion).scl = function (failure, consecutive) {
|
|
428
428
|
var tmp;
|
|
429
429
|
if (failure instanceof UpgradeRefused) {
|
|
430
|
-
var tmp1_subject = failure.
|
|
430
|
+
var tmp1_subject = failure.vbe_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.lcl_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).qcl = 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.rcl_1;
|
|
445
445
|
} else {
|
|
446
446
|
tmp_0 = null;
|
|
447
447
|
}
|
|
@@ -449,12 +449,12 @@ protoOf(Companion).qcl = function (failure, consecutive) {
|
|
|
449
449
|
tmp = tmp_0;
|
|
450
450
|
} else {
|
|
451
451
|
if (failure instanceof SessionClosed) {
|
|
452
|
-
switch (failure.
|
|
452
|
+
switch (failure.ybe_1) {
|
|
453
453
|
case 1013:
|
|
454
454
|
tmp = backoff(this, consecutive);
|
|
455
455
|
break;
|
|
456
456
|
case 4029:
|
|
457
|
-
tmp = this.
|
|
457
|
+
tmp = this.rcl_1;
|
|
458
458
|
break;
|
|
459
459
|
default:
|
|
460
460
|
tmp = null;
|
|
@@ -482,12 +482,12 @@ function Companion_getInstance_2() {
|
|
|
482
482
|
}
|
|
483
483
|
function ProverBackoff() {
|
|
484
484
|
Companion_getInstance_2();
|
|
485
|
-
this.rcl_1 = null;
|
|
486
|
-
this.scl_1 = 0;
|
|
487
485
|
this.tcl_1 = null;
|
|
486
|
+
this.ucl_1 = 0;
|
|
487
|
+
this.vcl_1 = null;
|
|
488
488
|
}
|
|
489
|
-
protoOf(ProverBackoff).
|
|
490
|
-
var tmp0_elvis_lhs = this.
|
|
489
|
+
protoOf(ProverBackoff).wcl = function (now) {
|
|
490
|
+
var tmp0_elvis_lhs = this.tcl_1;
|
|
491
491
|
var tmp;
|
|
492
492
|
if (tmp0_elvis_lhs == null) {
|
|
493
493
|
return null;
|
|
@@ -497,7 +497,7 @@ protoOf(ProverBackoff).ucl = function (now) {
|
|
|
497
497
|
var until = tmp;
|
|
498
498
|
if (now.nq(until) >= 0)
|
|
499
499
|
return null;
|
|
500
|
-
var tmp1_elvis_lhs = this.
|
|
500
|
+
var tmp1_elvis_lhs = this.vcl_1;
|
|
501
501
|
var after = tmp1_elvis_lhs == null ? 'a refusal' : tmp1_elvis_lhs;
|
|
502
502
|
var tmp_0;
|
|
503
503
|
if (until.equals(Companion_getInstance_0().gq())) {
|
|
@@ -507,8 +507,8 @@ protoOf(ProverBackoff).ucl = function (now) {
|
|
|
507
507
|
}
|
|
508
508
|
return tmp_0;
|
|
509
509
|
};
|
|
510
|
-
protoOf(ProverBackoff).
|
|
511
|
-
var tmp0_elvis_lhs = Companion_getInstance_2().
|
|
510
|
+
protoOf(ProverBackoff).xcl = function (failure, now) {
|
|
511
|
+
var tmp0_elvis_lhs = Companion_getInstance_2().scl(failure, this.ucl_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).vcl = function (failure, now) {
|
|
|
517
517
|
tmp = tmp0_elvis_lhs;
|
|
518
518
|
}
|
|
519
519
|
var wait = tmp;
|
|
520
|
-
this.
|
|
521
|
-
this.
|
|
522
|
-
this.
|
|
520
|
+
this.ucl_1 = this.ucl_1 + 1 | 0;
|
|
521
|
+
this.vcl_1 = failure.zbf();
|
|
522
|
+
this.tcl_1 = equals(wait, Companion_getInstance().nf_1) ? Companion_getInstance_0().gq() : now.kq(wait);
|
|
523
523
|
};
|
|
524
|
-
protoOf(ProverBackoff).
|
|
525
|
-
this.rcl_1 = null;
|
|
526
|
-
this.scl_1 = 0;
|
|
524
|
+
protoOf(ProverBackoff).ycl = function () {
|
|
527
525
|
this.tcl_1 = null;
|
|
526
|
+
this.ucl_1 = 0;
|
|
527
|
+
this.vcl_1 = null;
|
|
528
528
|
};
|
|
529
|
-
protoOf(ProverBackoff).
|
|
530
|
-
if (!equals(this.
|
|
531
|
-
this.
|
|
529
|
+
protoOf(ProverBackoff).zcl = function () {
|
|
530
|
+
if (!equals(this.tcl_1, Companion_getInstance_0().gq())) {
|
|
531
|
+
this.ycl();
|
|
532
532
|
}
|
|
533
533
|
};
|
|
534
534
|
function Companion_0() {
|
|
535
|
-
this.
|
|
536
|
-
this.
|
|
537
|
-
this.
|
|
535
|
+
this.acm_1 = 2;
|
|
536
|
+
this.bcm_1 = 16;
|
|
537
|
+
this.ccm_1 = 5;
|
|
538
538
|
}
|
|
539
539
|
var Companion_instance_3;
|
|
540
540
|
function Companion_getInstance_3() {
|
|
@@ -548,27 +548,27 @@ function $serializer() {
|
|
|
548
548
|
tmp0_serialDesc.l2k('assetsDir', false);
|
|
549
549
|
tmp0_serialDesc.l2k('rootStorePem', true);
|
|
550
550
|
tmp0_serialDesc.l2k('targetAddress', true);
|
|
551
|
-
this.
|
|
551
|
+
this.dcm_1 = tmp0_serialDesc;
|
|
552
552
|
}
|
|
553
|
-
protoOf($serializer).
|
|
554
|
-
var tmp0_desc = this.
|
|
553
|
+
protoOf($serializer).ecm = function (encoder, value) {
|
|
554
|
+
var tmp0_desc = this.dcm_1;
|
|
555
555
|
var tmp1_output = encoder.v2c(tmp0_desc);
|
|
556
|
-
tmp1_output.k2e(tmp0_desc, 0, value.
|
|
557
|
-
tmp1_output.f2e(tmp0_desc, 1, value.
|
|
558
|
-
tmp1_output.k2e(tmp0_desc, 2, value.
|
|
559
|
-
if (tmp1_output.s2e(tmp0_desc, 3) ? true : !(value.
|
|
560
|
-
tmp1_output.o2e(tmp0_desc, 3, StringSerializer_getInstance(), value.
|
|
556
|
+
tmp1_output.k2e(tmp0_desc, 0, value.fcm_1);
|
|
557
|
+
tmp1_output.f2e(tmp0_desc, 1, value.gcm_1);
|
|
558
|
+
tmp1_output.k2e(tmp0_desc, 2, value.hcm_1);
|
|
559
|
+
if (tmp1_output.s2e(tmp0_desc, 3) ? true : !(value.icm_1 == null)) {
|
|
560
|
+
tmp1_output.o2e(tmp0_desc, 3, StringSerializer_getInstance(), value.icm_1);
|
|
561
561
|
}
|
|
562
|
-
if (tmp1_output.s2e(tmp0_desc, 4) ? true : !(value.
|
|
563
|
-
tmp1_output.o2e(tmp0_desc, 4, StringSerializer_getInstance(), value.
|
|
562
|
+
if (tmp1_output.s2e(tmp0_desc, 4) ? true : !(value.jcm_1 == null)) {
|
|
563
|
+
tmp1_output.o2e(tmp0_desc, 4, StringSerializer_getInstance(), value.jcm_1);
|
|
564
564
|
}
|
|
565
565
|
tmp1_output.w2c(tmp0_desc);
|
|
566
566
|
};
|
|
567
567
|
protoOf($serializer).n29 = function (encoder, value) {
|
|
568
|
-
return this.
|
|
568
|
+
return this.ecm(encoder, value instanceof ProverSettings ? value : THROW_CCE());
|
|
569
569
|
};
|
|
570
570
|
protoOf($serializer).o29 = function (decoder) {
|
|
571
|
-
var tmp0_desc = this.
|
|
571
|
+
var tmp0_desc = this.dcm_1;
|
|
572
572
|
var tmp1_flag = true;
|
|
573
573
|
var tmp2_index = 0;
|
|
574
574
|
var tmp3_bitMask0 = 0;
|
|
@@ -624,7 +624,7 @@ protoOf($serializer).o29 = function (decoder) {
|
|
|
624
624
|
return ProverSettings_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null);
|
|
625
625
|
};
|
|
626
626
|
protoOf($serializer).m29 = function () {
|
|
627
|
-
return this.
|
|
627
|
+
return this.dcm_1;
|
|
628
628
|
};
|
|
629
629
|
protoOf($serializer).c2l = function () {
|
|
630
630
|
// Inline function 'kotlin.arrayOf' 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().dcm_1);
|
|
644
644
|
}
|
|
645
|
-
$this.
|
|
646
|
-
$this.
|
|
647
|
-
$this.
|
|
645
|
+
$this.fcm_1 = notaryUrl;
|
|
646
|
+
$this.gcm_1 = threadCount;
|
|
647
|
+
$this.hcm_1 = assetsDir;
|
|
648
648
|
if (0 === (seen0 & 8))
|
|
649
|
-
$this.
|
|
649
|
+
$this.icm_1 = null;
|
|
650
650
|
else
|
|
651
|
-
$this.
|
|
651
|
+
$this.icm_1 = rootStorePem;
|
|
652
652
|
if (0 === (seen0 & 16))
|
|
653
|
-
$this.
|
|
653
|
+
$this.jcm_1 = null;
|
|
654
654
|
else
|
|
655
|
-
$this.
|
|
655
|
+
$this.jcm_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.fcm_1 = notaryUrl;
|
|
665
|
+
this.gcm_1 = threadCount;
|
|
666
|
+
this.hcm_1 = assetsDir;
|
|
667
|
+
this.icm_1 = rootStorePem;
|
|
668
|
+
this.jcm_1 = targetAddress;
|
|
669
669
|
}
|
|
670
670
|
protoOf(ProverSettings).toString = function () {
|
|
671
|
-
return 'ProverSettings(notaryUrl=' + this.
|
|
671
|
+
return 'ProverSettings(notaryUrl=' + this.fcm_1 + ', threadCount=' + this.gcm_1 + ', assetsDir=' + this.hcm_1 + ', rootStorePem=' + this.icm_1 + ', targetAddress=' + this.jcm_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.fcm_1);
|
|
675
|
+
result = imul(result, 31) + this.gcm_1 | 0;
|
|
676
|
+
result = imul(result, 31) + getStringHashCode(this.hcm_1) | 0;
|
|
677
|
+
result = imul(result, 31) + (this.icm_1 == null ? 0 : getStringHashCode(this.icm_1)) | 0;
|
|
678
|
+
result = imul(result, 31) + (this.jcm_1 == null ? 0 : getStringHashCode(this.jcm_1)) | 0;
|
|
679
679
|
return result;
|
|
680
680
|
};
|
|
681
681
|
protoOf(ProverSettings).equals = function (other) {
|
|
@@ -683,15 +683,15 @@ 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.fcm_1 === other.fcm_1))
|
|
687
687
|
return false;
|
|
688
|
-
if (!(this.
|
|
688
|
+
if (!(this.gcm_1 === other.gcm_1))
|
|
689
689
|
return false;
|
|
690
|
-
if (!(this.
|
|
690
|
+
if (!(this.hcm_1 === other.hcm_1))
|
|
691
691
|
return false;
|
|
692
|
-
if (!(this.
|
|
692
|
+
if (!(this.icm_1 == other.icm_1))
|
|
693
693
|
return false;
|
|
694
|
-
if (!(this.
|
|
694
|
+
if (!(this.jcm_1 == other.jcm_1))
|
|
695
695
|
return false;
|
|
696
696
|
return true;
|
|
697
697
|
};
|
|
@@ -704,19 +704,19 @@ function ProverIpc$json$lambda($this$Json) {
|
|
|
704
704
|
function ProverIpc() {
|
|
705
705
|
ProverIpc_instance = this;
|
|
706
706
|
var tmp = this;
|
|
707
|
-
tmp.
|
|
707
|
+
tmp.kcm_1 = Json(VOID, ProverIpc$json$lambda);
|
|
708
708
|
}
|
|
709
|
-
protoOf(ProverIpc).
|
|
710
|
-
return this.
|
|
709
|
+
protoOf(ProverIpc).lcm = function (message) {
|
|
710
|
+
return this.kcm_1.o53(Companion_instance_6.d56(), message);
|
|
711
711
|
};
|
|
712
|
-
protoOf(ProverIpc).
|
|
713
|
-
return this.
|
|
712
|
+
protoOf(ProverIpc).mcm = function (message) {
|
|
713
|
+
return this.kcm_1.o53(Companion_instance_10.d56(), message);
|
|
714
714
|
};
|
|
715
|
-
protoOf(ProverIpc).
|
|
716
|
-
return this.
|
|
715
|
+
protoOf(ProverIpc).ncm = function (text) {
|
|
716
|
+
return this.kcm_1.p53(Companion_instance_6.d56(), text);
|
|
717
717
|
};
|
|
718
|
-
protoOf(ProverIpc).
|
|
719
|
-
return this.
|
|
718
|
+
protoOf(ProverIpc).ocm = function (text) {
|
|
719
|
+
return this.kcm_1.p53(Companion_instance_10.d56(), text);
|
|
720
720
|
};
|
|
721
721
|
var ProverIpc_instance;
|
|
722
722
|
function ProverIpc_getInstance() {
|
|
@@ -738,23 +738,23 @@ function $serializer_0() {
|
|
|
738
738
|
tmp0_serialDesc.l2k('steamAccessToken', false);
|
|
739
739
|
tmp0_serialDesc.l2k('steamSessionId', false);
|
|
740
740
|
tmp0_serialDesc.l2k('settings', false);
|
|
741
|
-
this.
|
|
741
|
+
this.pcm_1 = tmp0_serialDesc;
|
|
742
742
|
}
|
|
743
|
-
protoOf($serializer_0).
|
|
744
|
-
var tmp0_desc = this.
|
|
743
|
+
protoOf($serializer_0).qcm = function (encoder, value) {
|
|
744
|
+
var tmp0_desc = this.pcm_1;
|
|
745
745
|
var tmp1_output = encoder.v2c(tmp0_desc);
|
|
746
|
-
tmp1_output.f2e(tmp0_desc, 0, value.
|
|
747
|
-
tmp1_output.m2e(tmp0_desc, 1, $serializer_getInstance(), value.
|
|
748
|
-
tmp1_output.k2e(tmp0_desc, 2, value.
|
|
749
|
-
tmp1_output.k2e(tmp0_desc, 3, value.
|
|
750
|
-
tmp1_output.m2e(tmp0_desc, 4, $serializer_getInstance_0(), value.
|
|
746
|
+
tmp1_output.f2e(tmp0_desc, 0, value.rcm_1);
|
|
747
|
+
tmp1_output.m2e(tmp0_desc, 1, $serializer_getInstance(), value.scm_1);
|
|
748
|
+
tmp1_output.k2e(tmp0_desc, 2, value.tcm_1);
|
|
749
|
+
tmp1_output.k2e(tmp0_desc, 3, value.ucm_1);
|
|
750
|
+
tmp1_output.m2e(tmp0_desc, 4, $serializer_getInstance_0(), value.vcm_1);
|
|
751
751
|
tmp1_output.w2c(tmp0_desc);
|
|
752
752
|
};
|
|
753
753
|
protoOf($serializer_0).n29 = function (encoder, value) {
|
|
754
|
-
return this.
|
|
754
|
+
return this.qcm(encoder, value instanceof Prove ? value : THROW_CCE());
|
|
755
755
|
};
|
|
756
756
|
protoOf($serializer_0).o29 = function (decoder) {
|
|
757
|
-
var tmp0_desc = this.
|
|
757
|
+
var tmp0_desc = this.pcm_1;
|
|
758
758
|
var tmp1_flag = true;
|
|
759
759
|
var tmp2_index = 0;
|
|
760
760
|
var tmp3_bitMask0 = 0;
|
|
@@ -810,7 +810,7 @@ protoOf($serializer_0).o29 = function (decoder) {
|
|
|
810
810
|
return Prove_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null);
|
|
811
811
|
};
|
|
812
812
|
protoOf($serializer_0).m29 = function () {
|
|
813
|
-
return this.
|
|
813
|
+
return this.pcm_1;
|
|
814
814
|
};
|
|
815
815
|
protoOf($serializer_0).c2l = function () {
|
|
816
816
|
// Inline function 'kotlin.arrayOf' 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().pcm_1);
|
|
830
830
|
}
|
|
831
|
-
$this.
|
|
832
|
-
$this.
|
|
833
|
-
$this.
|
|
834
|
-
$this.
|
|
835
|
-
$this.
|
|
831
|
+
$this.rcm_1 = id;
|
|
832
|
+
$this.scm_1 = request;
|
|
833
|
+
$this.tcm_1 = steamAccessToken;
|
|
834
|
+
$this.ucm_1 = steamSessionId;
|
|
835
|
+
$this.vcm_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.wcm_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() {
|
|
@@ -862,26 +862,26 @@ function $serializer_1() {
|
|
|
862
862
|
tmp0_serialDesc.l2k('id', false);
|
|
863
863
|
tmp0_serialDesc.l2k('headers', true);
|
|
864
864
|
tmp0_serialDesc.l2k('error', true);
|
|
865
|
-
this.
|
|
865
|
+
this.xcm_1 = tmp0_serialDesc;
|
|
866
866
|
}
|
|
867
|
-
protoOf($serializer_1).
|
|
868
|
-
var tmp0_desc = this.
|
|
867
|
+
protoOf($serializer_1).ycm = function (encoder, value) {
|
|
868
|
+
var tmp0_desc = this.xcm_1;
|
|
869
869
|
var tmp1_output = encoder.v2c(tmp0_desc);
|
|
870
|
-
var tmp2_cached = Companion_getInstance_5().
|
|
871
|
-
tmp1_output.f2e(tmp0_desc, 0, value.
|
|
872
|
-
if (tmp1_output.s2e(tmp0_desc, 1) ? true : !(value.
|
|
873
|
-
tmp1_output.o2e(tmp0_desc, 1, tmp2_cached[1].p1(), value.
|
|
870
|
+
var tmp2_cached = Companion_getInstance_5().wcm_1;
|
|
871
|
+
tmp1_output.f2e(tmp0_desc, 0, value.zcm_1);
|
|
872
|
+
if (tmp1_output.s2e(tmp0_desc, 1) ? true : !(value.acn_1 == null)) {
|
|
873
|
+
tmp1_output.o2e(tmp0_desc, 1, tmp2_cached[1].p1(), value.acn_1);
|
|
874
874
|
}
|
|
875
|
-
if (tmp1_output.s2e(tmp0_desc, 2) ? true : !(value.
|
|
876
|
-
tmp1_output.o2e(tmp0_desc, 2, StringSerializer_getInstance(), value.
|
|
875
|
+
if (tmp1_output.s2e(tmp0_desc, 2) ? true : !(value.bcn_1 == null)) {
|
|
876
|
+
tmp1_output.o2e(tmp0_desc, 2, StringSerializer_getInstance(), value.bcn_1);
|
|
877
877
|
}
|
|
878
878
|
tmp1_output.w2c(tmp0_desc);
|
|
879
879
|
};
|
|
880
880
|
protoOf($serializer_1).n29 = function (encoder, value) {
|
|
881
|
-
return this.
|
|
881
|
+
return this.ycm(encoder, value instanceof Headers ? value : THROW_CCE());
|
|
882
882
|
};
|
|
883
883
|
protoOf($serializer_1).o29 = function (decoder) {
|
|
884
|
-
var tmp0_desc = this.
|
|
884
|
+
var tmp0_desc = this.xcm_1;
|
|
885
885
|
var tmp1_flag = true;
|
|
886
886
|
var tmp2_index = 0;
|
|
887
887
|
var tmp3_bitMask0 = 0;
|
|
@@ -889,7 +889,7 @@ protoOf($serializer_1).o29 = function (decoder) {
|
|
|
889
889
|
var tmp5_local1 = null;
|
|
890
890
|
var tmp6_local2 = null;
|
|
891
891
|
var tmp7_input = decoder.v2c(tmp0_desc);
|
|
892
|
-
var tmp8_cached = Companion_getInstance_5().
|
|
892
|
+
var tmp8_cached = Companion_getInstance_5().wcm_1;
|
|
893
893
|
if (tmp7_input.l2d()) {
|
|
894
894
|
tmp4_local0 = tmp7_input.a2d(tmp0_desc, 0);
|
|
895
895
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -924,10 +924,10 @@ protoOf($serializer_1).o29 = function (decoder) {
|
|
|
924
924
|
return Headers_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
925
925
|
};
|
|
926
926
|
protoOf($serializer_1).m29 = function () {
|
|
927
|
-
return this.
|
|
927
|
+
return this.xcm_1;
|
|
928
928
|
};
|
|
929
929
|
protoOf($serializer_1).c2l = function () {
|
|
930
|
-
var tmp0_cached = Companion_getInstance_5().
|
|
930
|
+
var tmp0_cached = Companion_getInstance_5().wcm_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().xcm_1);
|
|
945
945
|
}
|
|
946
|
-
$this.
|
|
946
|
+
$this.zcm_1 = id;
|
|
947
947
|
if (0 === (seen0 & 2))
|
|
948
|
-
$this.
|
|
948
|
+
$this.acn_1 = null;
|
|
949
949
|
else
|
|
950
|
-
$this.
|
|
950
|
+
$this.acn_1 = headers;
|
|
951
951
|
if (0 === (seen0 & 4))
|
|
952
|
-
$this.
|
|
952
|
+
$this.bcn_1 = null;
|
|
953
953
|
else
|
|
954
|
-
$this.
|
|
954
|
+
$this.bcn_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.rcm_1 = id;
|
|
962
|
+
this.scm_1 = request;
|
|
963
|
+
this.tcm_1 = steamAccessToken;
|
|
964
|
+
this.ucm_1 = steamSessionId;
|
|
965
|
+
this.vcm_1 = settings;
|
|
966
966
|
}
|
|
967
967
|
protoOf(Prove).toString = function () {
|
|
968
|
-
return 'Prove(id=' + this.
|
|
968
|
+
return 'Prove(id=' + this.rcm_1 + ', request=' + this.scm_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.rcm_1;
|
|
972
|
+
result = imul(result, 31) + this.scm_1.hashCode() | 0;
|
|
973
|
+
result = imul(result, 31) + getStringHashCode(this.tcm_1) | 0;
|
|
974
|
+
result = imul(result, 31) + getStringHashCode(this.ucm_1) | 0;
|
|
975
|
+
result = imul(result, 31) + this.vcm_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.rcm_1 === other.rcm_1))
|
|
984
984
|
return false;
|
|
985
|
-
if (!this.
|
|
985
|
+
if (!this.scm_1.equals(other.scm_1))
|
|
986
986
|
return false;
|
|
987
|
-
if (!(this.
|
|
987
|
+
if (!(this.tcm_1 === other.tcm_1))
|
|
988
988
|
return false;
|
|
989
|
-
if (!(this.
|
|
989
|
+
if (!(this.ucm_1 === other.ucm_1))
|
|
990
990
|
return false;
|
|
991
|
-
if (!this.
|
|
991
|
+
if (!this.vcm_1.equals(other.vcm_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.zcm_1 = id;
|
|
1000
|
+
this.acn_1 = headers;
|
|
1001
|
+
this.bcn_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.acn_1;
|
|
1005
|
+
return 'Headers(id=' + this.zcm_1 + ', headers=' + toString(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.y2()) + ': <redacted>, error=' + this.bcn_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.zcm_1;
|
|
1009
|
+
result = imul(result, 31) + (this.acn_1 == null ? 0 : hashCode(this.acn_1)) | 0;
|
|
1010
|
+
result = imul(result, 31) + (this.bcn_1 == null ? 0 : getStringHashCode(this.bcn_1)) | 0;
|
|
1011
1011
|
return result;
|
|
1012
1012
|
};
|
|
1013
1013
|
protoOf(Headers).equals = function (other) {
|
|
@@ -1015,11 +1015,11 @@ 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.zcm_1 === other.zcm_1))
|
|
1019
1019
|
return false;
|
|
1020
|
-
if (!equals(this.
|
|
1020
|
+
if (!equals(this.acn_1, other.acn_1))
|
|
1021
1021
|
return false;
|
|
1022
|
-
if (!(this.
|
|
1022
|
+
if (!(this.bcn_1 == other.bcn_1))
|
|
1023
1023
|
return false;
|
|
1024
1024
|
return true;
|
|
1025
1025
|
};
|
|
@@ -1060,19 +1060,19 @@ function $serializer_2() {
|
|
|
1060
1060
|
$serializer_instance_2 = this;
|
|
1061
1061
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('headers_wanted', this, 1);
|
|
1062
1062
|
tmp0_serialDesc.l2k('id', false);
|
|
1063
|
-
this.
|
|
1063
|
+
this.ccn_1 = tmp0_serialDesc;
|
|
1064
1064
|
}
|
|
1065
|
-
protoOf($serializer_2).
|
|
1066
|
-
var tmp0_desc = this.
|
|
1065
|
+
protoOf($serializer_2).dcn = function (encoder, value) {
|
|
1066
|
+
var tmp0_desc = this.ccn_1;
|
|
1067
1067
|
var tmp1_output = encoder.v2c(tmp0_desc);
|
|
1068
|
-
tmp1_output.f2e(tmp0_desc, 0, value.
|
|
1068
|
+
tmp1_output.f2e(tmp0_desc, 0, value.ecn_1);
|
|
1069
1069
|
tmp1_output.w2c(tmp0_desc);
|
|
1070
1070
|
};
|
|
1071
1071
|
protoOf($serializer_2).n29 = function (encoder, value) {
|
|
1072
|
-
return this.
|
|
1072
|
+
return this.dcn(encoder, value instanceof HeadersWanted ? value : THROW_CCE());
|
|
1073
1073
|
};
|
|
1074
1074
|
protoOf($serializer_2).o29 = function (decoder) {
|
|
1075
|
-
var tmp0_desc = this.
|
|
1075
|
+
var tmp0_desc = this.ccn_1;
|
|
1076
1076
|
var tmp1_flag = true;
|
|
1077
1077
|
var tmp2_index = 0;
|
|
1078
1078
|
var tmp3_bitMask0 = 0;
|
|
@@ -1100,7 +1100,7 @@ protoOf($serializer_2).o29 = function (decoder) {
|
|
|
1100
1100
|
return HeadersWanted_init_$Create$(tmp3_bitMask0, tmp4_local0, null);
|
|
1101
1101
|
};
|
|
1102
1102
|
protoOf($serializer_2).m29 = function () {
|
|
1103
|
-
return this.
|
|
1103
|
+
return this.ccn_1;
|
|
1104
1104
|
};
|
|
1105
1105
|
protoOf($serializer_2).c2l = function () {
|
|
1106
1106
|
// Inline function 'kotlin.arrayOf' 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().ccn_1);
|
|
1120
1120
|
}
|
|
1121
|
-
$this.
|
|
1121
|
+
$this.ecn_1 = id;
|
|
1122
1122
|
return $this;
|
|
1123
1123
|
}
|
|
1124
1124
|
function HeadersWanted_init_$Create$(seen0, id, serializationConstructorMarker) {
|
|
@@ -1135,20 +1135,20 @@ function $serializer_3() {
|
|
|
1135
1135
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('proved', this, 2);
|
|
1136
1136
|
tmp0_serialDesc.l2k('id', false);
|
|
1137
1137
|
tmp0_serialDesc.l2k('presentation', false);
|
|
1138
|
-
this.
|
|
1138
|
+
this.fcn_1 = tmp0_serialDesc;
|
|
1139
1139
|
}
|
|
1140
|
-
protoOf($serializer_3).
|
|
1141
|
-
var tmp0_desc = this.
|
|
1140
|
+
protoOf($serializer_3).gcn = function (encoder, value) {
|
|
1141
|
+
var tmp0_desc = this.fcn_1;
|
|
1142
1142
|
var tmp1_output = encoder.v2c(tmp0_desc);
|
|
1143
|
-
tmp1_output.f2e(tmp0_desc, 0, value.
|
|
1144
|
-
tmp1_output.k2e(tmp0_desc, 1, value.
|
|
1143
|
+
tmp1_output.f2e(tmp0_desc, 0, value.hcn_1);
|
|
1144
|
+
tmp1_output.k2e(tmp0_desc, 1, value.icn_1);
|
|
1145
1145
|
tmp1_output.w2c(tmp0_desc);
|
|
1146
1146
|
};
|
|
1147
1147
|
protoOf($serializer_3).n29 = function (encoder, value) {
|
|
1148
|
-
return this.
|
|
1148
|
+
return this.gcn(encoder, value instanceof Proved_0 ? value : THROW_CCE());
|
|
1149
1149
|
};
|
|
1150
1150
|
protoOf($serializer_3).o29 = function (decoder) {
|
|
1151
|
-
var tmp0_desc = this.
|
|
1151
|
+
var tmp0_desc = this.fcn_1;
|
|
1152
1152
|
var tmp1_flag = true;
|
|
1153
1153
|
var tmp2_index = 0;
|
|
1154
1154
|
var tmp3_bitMask0 = 0;
|
|
@@ -1183,7 +1183,7 @@ protoOf($serializer_3).o29 = function (decoder) {
|
|
|
1183
1183
|
return Proved_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1184
1184
|
};
|
|
1185
1185
|
protoOf($serializer_3).m29 = function () {
|
|
1186
|
-
return this.
|
|
1186
|
+
return this.fcn_1;
|
|
1187
1187
|
};
|
|
1188
1188
|
protoOf($serializer_3).c2l = function () {
|
|
1189
1189
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -1199,10 +1199,10 @@ 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().fcn_1);
|
|
1203
1203
|
}
|
|
1204
|
-
$this.
|
|
1205
|
-
$this.
|
|
1204
|
+
$this.hcn_1 = id;
|
|
1205
|
+
$this.icn_1 = presentation;
|
|
1206
1206
|
return $this;
|
|
1207
1207
|
}
|
|
1208
1208
|
function Proved_init_$Create$(seen0, id, presentation, serializationConstructorMarker) {
|
|
@@ -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.jcn_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() {
|
|
@@ -1231,28 +1231,28 @@ function $serializer_4() {
|
|
|
1231
1231
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('failed', this, 2);
|
|
1232
1232
|
tmp0_serialDesc.l2k('id', false);
|
|
1233
1233
|
tmp0_serialDesc.l2k('failure', false);
|
|
1234
|
-
this.
|
|
1234
|
+
this.kcn_1 = tmp0_serialDesc;
|
|
1235
1235
|
}
|
|
1236
|
-
protoOf($serializer_4).
|
|
1237
|
-
var tmp0_desc = this.
|
|
1236
|
+
protoOf($serializer_4).lcn = function (encoder, value) {
|
|
1237
|
+
var tmp0_desc = this.kcn_1;
|
|
1238
1238
|
var tmp1_output = encoder.v2c(tmp0_desc);
|
|
1239
|
-
var tmp2_cached = Companion_getInstance_9().
|
|
1240
|
-
tmp1_output.f2e(tmp0_desc, 0, value.
|
|
1241
|
-
tmp1_output.m2e(tmp0_desc, 1, tmp2_cached[1].p1(), value.
|
|
1239
|
+
var tmp2_cached = Companion_getInstance_9().jcn_1;
|
|
1240
|
+
tmp1_output.f2e(tmp0_desc, 0, value.mcn_1);
|
|
1241
|
+
tmp1_output.m2e(tmp0_desc, 1, tmp2_cached[1].p1(), value.ncn_1);
|
|
1242
1242
|
tmp1_output.w2c(tmp0_desc);
|
|
1243
1243
|
};
|
|
1244
1244
|
protoOf($serializer_4).n29 = function (encoder, value) {
|
|
1245
|
-
return this.
|
|
1245
|
+
return this.lcn(encoder, value instanceof Failed_0 ? value : THROW_CCE());
|
|
1246
1246
|
};
|
|
1247
1247
|
protoOf($serializer_4).o29 = function (decoder) {
|
|
1248
|
-
var tmp0_desc = this.
|
|
1248
|
+
var tmp0_desc = this.kcn_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
1254
|
var tmp6_input = decoder.v2c(tmp0_desc);
|
|
1255
|
-
var tmp7_cached = Companion_getInstance_9().
|
|
1255
|
+
var tmp7_cached = Companion_getInstance_9().jcn_1;
|
|
1256
1256
|
if (tmp6_input.l2d()) {
|
|
1257
1257
|
tmp4_local0 = tmp6_input.a2d(tmp0_desc, 0);
|
|
1258
1258
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -1281,10 +1281,10 @@ protoOf($serializer_4).o29 = function (decoder) {
|
|
|
1281
1281
|
return Failed_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1282
1282
|
};
|
|
1283
1283
|
protoOf($serializer_4).m29 = function () {
|
|
1284
|
-
return this.
|
|
1284
|
+
return this.kcn_1;
|
|
1285
1285
|
};
|
|
1286
1286
|
protoOf($serializer_4).c2l = function () {
|
|
1287
|
-
var tmp0_cached = Companion_getInstance_9().
|
|
1287
|
+
var tmp0_cached = Companion_getInstance_9().jcn_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().kcn_1);
|
|
1302
1302
|
}
|
|
1303
|
-
$this.
|
|
1304
|
-
$this.
|
|
1303
|
+
$this.mcn_1 = id;
|
|
1304
|
+
$this.ncn_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.ecn_1 = id;
|
|
1312
1312
|
}
|
|
1313
1313
|
protoOf(HeadersWanted).v6e = function () {
|
|
1314
|
-
return this.
|
|
1314
|
+
return this.ecn_1;
|
|
1315
1315
|
};
|
|
1316
1316
|
protoOf(HeadersWanted).toString = function () {
|
|
1317
|
-
return 'HeadersWanted(id=' + this.
|
|
1317
|
+
return 'HeadersWanted(id=' + this.ecn_1 + ')';
|
|
1318
1318
|
};
|
|
1319
1319
|
protoOf(HeadersWanted).hashCode = function () {
|
|
1320
|
-
return this.
|
|
1320
|
+
return this.ecn_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.ecn_1 === other.ecn_1))
|
|
1328
1328
|
return false;
|
|
1329
1329
|
return true;
|
|
1330
1330
|
};
|
|
1331
1331
|
function Proved_0(id, presentation) {
|
|
1332
|
-
this.
|
|
1333
|
-
this.
|
|
1332
|
+
this.hcn_1 = id;
|
|
1333
|
+
this.icn_1 = presentation;
|
|
1334
1334
|
}
|
|
1335
1335
|
protoOf(Proved_0).v6e = function () {
|
|
1336
|
-
return this.
|
|
1336
|
+
return this.hcn_1;
|
|
1337
1337
|
};
|
|
1338
1338
|
protoOf(Proved_0).toString = function () {
|
|
1339
|
-
return 'Proved(id=' + this.
|
|
1339
|
+
return 'Proved(id=' + this.hcn_1 + ', presentation=' + this.icn_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.hcn_1;
|
|
1343
|
+
result = imul(result, 31) + getStringHashCode(this.icn_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.hcn_1 === other.hcn_1))
|
|
1352
1352
|
return false;
|
|
1353
|
-
if (!(this.
|
|
1353
|
+
if (!(this.icn_1 === other.icn_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.mcn_1 = id;
|
|
1360
|
+
this.ncn_1 = failure;
|
|
1361
1361
|
}
|
|
1362
1362
|
protoOf(Failed_0).v6e = function () {
|
|
1363
|
-
return this.
|
|
1363
|
+
return this.mcn_1;
|
|
1364
1364
|
};
|
|
1365
1365
|
protoOf(Failed_0).toString = function () {
|
|
1366
|
-
return 'Failed(id=' + this.
|
|
1366
|
+
return 'Failed(id=' + this.mcn_1 + ', failure=' + toString_0(this.ncn_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.mcn_1;
|
|
1370
|
+
result = imul(result, 31) + hashCode(this.ncn_1) | 0;
|
|
1371
1371
|
return result;
|
|
1372
1372
|
};
|
|
1373
1373
|
protoOf(Failed_0).equals = function (other) {
|
|
@@ -1375,9 +1375,9 @@ 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.mcn_1 === other.mcn_1))
|
|
1379
1379
|
return false;
|
|
1380
|
-
if (!equals(this.
|
|
1380
|
+
if (!equals(this.ncn_1, other.ncn_1))
|
|
1381
1381
|
return false;
|
|
1382
1382
|
return true;
|
|
1383
1383
|
};
|
|
@@ -1410,12 +1410,12 @@ function FromChild() {
|
|
|
1410
1410
|
}
|
|
1411
1411
|
function ProverOutput() {
|
|
1412
1412
|
ProverOutput_instance = this;
|
|
1413
|
-
this.
|
|
1414
|
-
this.
|
|
1413
|
+
this.ecl_1 = NetworkRedaction_getInstance().m69('access_token');
|
|
1414
|
+
this.fcl_1 = 2000;
|
|
1415
1415
|
}
|
|
1416
1416
|
protoOf(ProverOutput).u7b = function (line) {
|
|
1417
1417
|
// Inline function 'kotlin.text.orEmpty' call
|
|
1418
|
-
var tmp0_elvis_lhs = NetworkRedaction_getInstance().l69(TradingApiSignature_getInstance().u7b(line), this.
|
|
1418
|
+
var tmp0_elvis_lhs = NetworkRedaction_getInstance().l69(TradingApiSignature_getInstance().u7b(line), this.ecl_1, 2000);
|
|
1419
1419
|
return tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
|
|
1420
1420
|
};
|
|
1421
1421
|
var ProverOutput_instance;
|
|
@@ -1439,15 +1439,15 @@ function headlessVersion() {
|
|
|
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().qcn(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.ucn_1)
|
|
1448
1448
|
return Unit_instance;
|
|
1449
|
-
entry.
|
|
1450
|
-
entry.
|
|
1449
|
+
entry.ucn_1 = true;
|
|
1450
|
+
entry.rcn_1.abv();
|
|
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.vcn_1) {
|
|
1467
|
+
entry.vcn_1 = true;
|
|
1468
|
+
var tmp1_safe_receiver = entry.tcn_1;
|
|
1469
1469
|
if (tmp1_safe_receiver == null)
|
|
1470
1470
|
null;
|
|
1471
1471
|
else {
|
|
1472
1472
|
tmp1_safe_receiver.j4();
|
|
1473
1473
|
}
|
|
1474
|
-
cancel(entry.
|
|
1474
|
+
cancel(entry.scn_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).rcn_1.dbu());
|
|
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.fco();
|
|
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.cco_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.pco(proverPackageRoot, tmp1_safe_receiver.kco_1), clock);
|
|
1506
1506
|
}
|
|
1507
1507
|
var proofHost_0 = tmp;
|
|
1508
1508
|
var scope = CoroutineScope(SupervisorJob().sk(Dispatchers_getInstance().k1a_1));
|
|
1509
|
-
var accounts = new AccountDirectories(options.
|
|
1509
|
+
var accounts = new AccountDirectories(options.wcn_1);
|
|
1510
1510
|
var tmp_0 = create$lambda(accounts);
|
|
1511
|
-
var tmp2_elvis_lhs = options.
|
|
1511
|
+
var tmp2_elvis_lhs = options.qco();
|
|
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.cco_1.hco_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.zcn_1));
|
|
1525
|
+
var tracker = new HeadlessTracker(platform, tmp_3, options.xcn_1, tmp$ret$4, options.ycn_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.eco_1;
|
|
1533
|
+
var onOutcome = options.dco_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.zcn_1, prover.jco_1, files.sco_1);
|
|
1536
|
+
var tmp_1 = new ProverLimits(prover.lco_1, prover.mco_1, prover.ico_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.rco_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().hcl(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.rcn_1 = tracker;
|
|
1557
|
+
this.scn_1 = scope;
|
|
1558
|
+
this.tcn_1 = proofHost;
|
|
1559
|
+
this.ucn_1 = false;
|
|
1560
|
+
this.vcn_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.vcn_1) {
|
|
1578
1578
|
var message = 'tracker stopped';
|
|
1579
1579
|
throw IllegalStateException_init_$Create$(toString_0(message));
|
|
1580
1580
|
}
|
|
@@ -1601,19 +1601,19 @@ function call(handle, block) {
|
|
|
1601
1601
|
}
|
|
1602
1602
|
}
|
|
1603
1603
|
var entry = tmp;
|
|
1604
|
-
return promise_0(entry.
|
|
1604
|
+
return promise_0(entry.scn_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.
|
|
1609
|
+
protoOf(cycle$slambda).ccp = function ($this$call, $completion) {
|
|
1610
|
+
var tmp = this.dcp($this$call, $completion);
|
|
1611
1611
|
tmp.k9_1 = Unit_instance;
|
|
1612
1612
|
tmp.l9_1 = null;
|
|
1613
1613
|
return tmp.q9();
|
|
1614
1614
|
};
|
|
1615
1615
|
protoOf(cycle$slambda).da = function (p1, $completion) {
|
|
1616
|
-
return this.
|
|
1616
|
+
return this.ccp(p1 instanceof TrackerEntry ? p1 : THROW_CCE(), $completion);
|
|
1617
1617
|
};
|
|
1618
1618
|
protoOf(cycle$slambda).q9 = function () {
|
|
1619
1619
|
var suspendResult = this.k9_1;
|
|
@@ -1624,7 +1624,7 @@ protoOf(cycle$slambda).q9 = function () {
|
|
|
1624
1624
|
case 0:
|
|
1625
1625
|
this.j9_1 = 2;
|
|
1626
1626
|
this.i9_1 = 1;
|
|
1627
|
-
suspendResult = this.
|
|
1627
|
+
suspendResult = this.bcp_1.rcn_1.ubp(this);
|
|
1628
1628
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1629
1629
|
return suspendResult;
|
|
1630
1630
|
}
|
|
@@ -1646,30 +1646,30 @@ protoOf(cycle$slambda).q9 = function () {
|
|
|
1646
1646
|
}
|
|
1647
1647
|
while (true);
|
|
1648
1648
|
};
|
|
1649
|
-
protoOf(cycle$slambda).
|
|
1649
|
+
protoOf(cycle$slambda).dcp = function ($this$call, completion) {
|
|
1650
1650
|
var i = new cycle$slambda(completion);
|
|
1651
|
-
i.
|
|
1651
|
+
i.bcp_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.ccp($this$call, $completion);
|
|
1658
1658
|
}, 1);
|
|
1659
1659
|
}
|
|
1660
1660
|
function pushTradingApiKey$slambda($publicKey, $secretKey, resultContinuation) {
|
|
1661
|
-
this.
|
|
1662
|
-
this.
|
|
1661
|
+
this.mcp_1 = $publicKey;
|
|
1662
|
+
this.ncp_1 = $secretKey;
|
|
1663
1663
|
CoroutineImpl.call(this, resultContinuation);
|
|
1664
1664
|
}
|
|
1665
|
-
protoOf(pushTradingApiKey$slambda).
|
|
1666
|
-
var tmp = this.
|
|
1665
|
+
protoOf(pushTradingApiKey$slambda).pcp = function ($this$call, $completion) {
|
|
1666
|
+
var tmp = this.dcp($this$call, $completion);
|
|
1667
1667
|
tmp.k9_1 = Unit_instance;
|
|
1668
1668
|
tmp.l9_1 = null;
|
|
1669
1669
|
return tmp.q9();
|
|
1670
1670
|
};
|
|
1671
1671
|
protoOf(pushTradingApiKey$slambda).da = function (p1, $completion) {
|
|
1672
|
-
return this.
|
|
1672
|
+
return this.pcp(p1 instanceof TrackerEntry ? p1 : THROW_CCE(), $completion);
|
|
1673
1673
|
};
|
|
1674
1674
|
protoOf(pushTradingApiKey$slambda).q9 = function () {
|
|
1675
1675
|
var suspendResult = this.k9_1;
|
|
@@ -1680,7 +1680,7 @@ protoOf(pushTradingApiKey$slambda).q9 = function () {
|
|
|
1680
1680
|
case 0:
|
|
1681
1681
|
this.j9_1 = 2;
|
|
1682
1682
|
this.i9_1 = 1;
|
|
1683
|
-
suspendResult = this.
|
|
1683
|
+
suspendResult = this.ocp_1.rcn_1.bbv(this.mcp_1, this.ncp_1, this);
|
|
1684
1684
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1685
1685
|
return suspendResult;
|
|
1686
1686
|
}
|
|
@@ -1696,11 +1696,11 @@ protoOf(pushTradingApiKey$slambda).q9 = function () {
|
|
|
1696
1696
|
}
|
|
1697
1697
|
|
|
1698
1698
|
if (tmp_0) {
|
|
1699
|
-
var tmp0_safe_receiver = this.
|
|
1699
|
+
var tmp0_safe_receiver = this.ocp_1.tcn_1;
|
|
1700
1700
|
if (tmp0_safe_receiver == null)
|
|
1701
1701
|
null;
|
|
1702
1702
|
else {
|
|
1703
|
-
tmp0_safe_receiver.
|
|
1703
|
+
tmp0_safe_receiver.zcl();
|
|
1704
1704
|
}
|
|
1705
1705
|
}
|
|
1706
1706
|
|
|
@@ -1719,29 +1719,29 @@ protoOf(pushTradingApiKey$slambda).q9 = function () {
|
|
|
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).dcp = function ($this$call, completion) {
|
|
1723
|
+
var i = new pushTradingApiKey$slambda(this.mcp_1, this.ncp_1, completion);
|
|
1724
|
+
i.ocp_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.pcp($this$call, $completion);
|
|
1731
1731
|
}, 1);
|
|
1732
1732
|
}
|
|
1733
1733
|
function pushSteamToken$slambda($accessToken, resultContinuation) {
|
|
1734
|
-
this.
|
|
1734
|
+
this.ycp_1 = $accessToken;
|
|
1735
1735
|
CoroutineImpl.call(this, resultContinuation);
|
|
1736
1736
|
}
|
|
1737
|
-
protoOf(pushSteamToken$slambda).
|
|
1738
|
-
var tmp = this.
|
|
1737
|
+
protoOf(pushSteamToken$slambda).pcp = function ($this$call, $completion) {
|
|
1738
|
+
var tmp = this.dcp($this$call, $completion);
|
|
1739
1739
|
tmp.k9_1 = Unit_instance;
|
|
1740
1740
|
tmp.l9_1 = null;
|
|
1741
1741
|
return tmp.q9();
|
|
1742
1742
|
};
|
|
1743
1743
|
protoOf(pushSteamToken$slambda).da = function (p1, $completion) {
|
|
1744
|
-
return this.
|
|
1744
|
+
return this.pcp(p1 instanceof TrackerEntry ? p1 : THROW_CCE(), $completion);
|
|
1745
1745
|
};
|
|
1746
1746
|
protoOf(pushSteamToken$slambda).q9 = function () {
|
|
1747
1747
|
var suspendResult = this.k9_1;
|
|
@@ -1752,7 +1752,7 @@ protoOf(pushSteamToken$slambda).q9 = function () {
|
|
|
1752
1752
|
case 0:
|
|
1753
1753
|
this.j9_1 = 2;
|
|
1754
1754
|
this.i9_1 = 1;
|
|
1755
|
-
suspendResult = this.
|
|
1755
|
+
suspendResult = this.zcp_1.rcn_1.cbv(this.ycp_1, this);
|
|
1756
1756
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1757
1757
|
return suspendResult;
|
|
1758
1758
|
}
|
|
@@ -1775,20 +1775,20 @@ protoOf(pushSteamToken$slambda).q9 = function () {
|
|
|
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).dcp = function ($this$call, completion) {
|
|
1779
|
+
var i = new pushSteamToken$slambda(this.ycp_1, completion);
|
|
1780
|
+
i.zcp_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.pcp($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.ccq(_SteamId___get_value__impl__qjh21u(it.c5z_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().icl(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,18 +1876,18 @@ function proofHost$lambda_1($onOutcome) {
|
|
|
1876
1876
|
};
|
|
1877
1877
|
}
|
|
1878
1878
|
function call$slambda($block, $entry, resultContinuation) {
|
|
1879
|
-
this.
|
|
1880
|
-
this.
|
|
1879
|
+
this.lcq_1 = $block;
|
|
1880
|
+
this.mcq_1 = $entry;
|
|
1881
1881
|
CoroutineImpl.call(this, resultContinuation);
|
|
1882
1882
|
}
|
|
1883
|
-
protoOf(call$slambda).
|
|
1883
|
+
protoOf(call$slambda).ocq = function ($this$promise, $completion) {
|
|
1884
1884
|
var tmp = this.x1o($this$promise, $completion);
|
|
1885
1885
|
tmp.k9_1 = Unit_instance;
|
|
1886
1886
|
tmp.l9_1 = null;
|
|
1887
1887
|
return tmp.q9();
|
|
1888
1888
|
};
|
|
1889
1889
|
protoOf(call$slambda).da = function (p1, $completion) {
|
|
1890
|
-
return this.
|
|
1890
|
+
return this.ocq((!(p1 == null) ? isInterface(p1, CoroutineScope_0) : false) ? p1 : THROW_CCE(), $completion);
|
|
1891
1891
|
};
|
|
1892
1892
|
protoOf(call$slambda).q9 = function () {
|
|
1893
1893
|
var suspendResult = this.k9_1;
|
|
@@ -1898,7 +1898,7 @@ protoOf(call$slambda).q9 = function () {
|
|
|
1898
1898
|
case 0:
|
|
1899
1899
|
this.j9_1 = 2;
|
|
1900
1900
|
this.i9_1 = 1;
|
|
1901
|
-
suspendResult = this.
|
|
1901
|
+
suspendResult = this.lcq_1(this.mcq_1, this);
|
|
1902
1902
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1903
1903
|
return suspendResult;
|
|
1904
1904
|
}
|
|
@@ -1921,14 +1921,14 @@ protoOf(call$slambda).q9 = function () {
|
|
|
1921
1921
|
while (true);
|
|
1922
1922
|
};
|
|
1923
1923
|
protoOf(call$slambda).x1o = function ($this$promise, completion) {
|
|
1924
|
-
var i = new call$slambda(this.
|
|
1925
|
-
i.
|
|
1924
|
+
var i = new call$slambda(this.lcq_1, this.mcq_1, completion);
|
|
1925
|
+
i.ncq_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.ocq($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().vbp_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().zbp_1));
|
|
1979
1979
|
}
|
|
1980
1980
|
function defaultNotaryUrl() {
|
|
1981
1981
|
_init_properties_HeadlessConstants_kt__7kny8s();
|
|
@@ -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.pcn_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.ocn_1 = setOf(['dataDir', 'baseUrl', 'steamWrites', 'notaryUrl', 'onEvent', 'nowMs', 'prover', 'onProofOutcome', 'onProverLine']);
|
|
2081
|
+
this.pcn_1 = Regex_init_$Create$('^[A-Za-z][A-Za-z0-9]{0,39}$');
|
|
2082
2082
|
}
|
|
2083
|
-
protoOf(Companion_8).
|
|
2083
|
+
protoOf(Companion_8).qcn = 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.pcq(options, this.ocn_1, '');
|
|
2090
2090
|
var dataDir = options.dataDir;
|
|
2091
2091
|
var tmp;
|
|
2092
2092
|
if (typeof dataDir === 'string') {
|
|
@@ -2101,32 +2101,32 @@ protoOf(Companion_8).ocn = 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.qcq(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.qcq(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.qcq(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.qcq(options.onEvent, 'onEvent', 'function');
|
|
2121
|
+
var nowMs = this.qcq(options.nowMs, 'nowMs', 'function');
|
|
2122
|
+
var proverOption = this.qcq(options.prover, 'prover', 'object');
|
|
2123
|
+
var prover = proverOption != null ? Companion_getInstance_13().qcn(proverOption) : null;
|
|
2124
|
+
var onProofOutcome = this.qcq(options.onProofOutcome, 'onProofOutcome', 'function');
|
|
2125
|
+
var onProverLine = this.qcq(options.onProverLine, 'onProverLine', 'function');
|
|
2126
|
+
var tmp4_elvis_lhs = prover == null ? null : prover.gco_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).pcq = 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).ncq = 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).qcq = 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.tcq_1 = $now;
|
|
2174
2174
|
}
|
|
2175
2175
|
protoOf(HeadlessOptions$clock$1).rp = function () {
|
|
2176
|
-
return Companion_getInstance_0().df(numberToLong(this.
|
|
2176
|
+
return Companion_getInstance_0().df(numberToLong(this.tcq_1()));
|
|
2177
2177
|
};
|
|
2178
2178
|
function HeadlessOptions$eventObserver$1($callback) {
|
|
2179
|
-
this.
|
|
2179
|
+
this.ucq_1 = $callback;
|
|
2180
2180
|
}
|
|
2181
2181
|
protoOf(HeadlessOptions$eventObserver$1).a6e = function (event, $completion) {
|
|
2182
|
-
return this.
|
|
2182
|
+
return this.ucq_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.wcn_1 = dataDir;
|
|
2187
|
+
this.xcn_1 = baseUrl;
|
|
2188
|
+
this.ycn_1 = steamWrites;
|
|
2189
|
+
this.zcn_1 = notaryUrl;
|
|
2190
|
+
this.aco_1 = onEvent;
|
|
2191
|
+
this.bco_1 = nowMs;
|
|
2192
|
+
this.cco_1 = prover;
|
|
2193
|
+
this.dco_1 = onProofOutcome;
|
|
2194
|
+
this.eco_1 = onProverLine;
|
|
2195
|
+
}
|
|
2196
|
+
protoOf(HeadlessOptions).fco = function () {
|
|
2197
|
+
var tmp0_safe_receiver = this.bco_1;
|
|
2198
2198
|
var tmp;
|
|
2199
2199
|
if (tmp0_safe_receiver == null) {
|
|
2200
2200
|
tmp = null;
|
|
@@ -2204,8 +2204,8 @@ protoOf(HeadlessOptions).dco = function () {
|
|
|
2204
2204
|
}
|
|
2205
2205
|
return tmp;
|
|
2206
2206
|
};
|
|
2207
|
-
protoOf(HeadlessOptions).
|
|
2208
|
-
var tmp0_safe_receiver = this.
|
|
2207
|
+
protoOf(HeadlessOptions).qco = function () {
|
|
2208
|
+
var tmp0_safe_receiver = this.aco_1;
|
|
2209
2209
|
var tmp;
|
|
2210
2210
|
if (tmp0_safe_receiver == null) {
|
|
2211
2211
|
tmp = null;
|
|
@@ -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.ebu_1;
|
|
2296
|
+
var tmp0_safe_receiver = _this__u8e3s4.fbu_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.gbu_1);
|
|
2306
|
+
var tmp1_safe_receiver = _this__u8e3s4.hbu_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,9 +2312,9 @@ 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.ibu_1);
|
|
2316
2316
|
// Inline function 'kotlin.collections.map' call
|
|
2317
|
-
var this_0 = _this__u8e3s4.
|
|
2317
|
+
var this_0 = _this__u8e3s4.jbu_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();
|
|
@@ -2326,7 +2326,7 @@ function toJs_1(_this__u8e3s4) {
|
|
|
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.kbu_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,14 +2336,14 @@ 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.pbu();
|
|
2340
|
+
o.steamNotLinked = _this__u8e3s4.lbu_1;
|
|
2341
|
+
o.updateRequired = _this__u8e3s4.mbu_1;
|
|
2342
|
+
o.updateDueTimeMs = epochMs(_this__u8e3s4.nbu_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.obu_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
|
|
@@ -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.nco_1 = '@dmarket/p2p-tracker-headless';
|
|
2393
|
+
this.oco_1 = 'prover-child.mjs';
|
|
2394
2394
|
}
|
|
2395
|
-
protoOf(Companion_9).
|
|
2395
|
+
protoOf(Companion_9).pco = 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).nco = 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.rco_1, join_0(this, [files.sco_1, 'pkg', 'client_wasm_bg.wasm']), join_0(this, [files.sco_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.rco_1 = script;
|
|
2440
|
+
this.sco_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().qcq(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().qcq(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.rcq_1 = setOf(['notaryUrl', 'maxConcurrency', 'proofsPerChild', 'threadCount', 'assetsDir', 'connectDeadlineMs', 'sessionDeadlineMs']);
|
|
2497
|
+
this.scq_1 = new ProverLimits();
|
|
2498
2498
|
}
|
|
2499
|
-
protoOf(Companion_10).
|
|
2499
|
+
protoOf(Companion_10).qcn = 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().pcq(prover, this.rcq_1, 'prover.');
|
|
2507
|
+
var notaryUrl = Companion_getInstance_11().qcq(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().qcq(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).ocn = 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.scq_1.vcq_1;
|
|
2537
2537
|
} else {
|
|
2538
2538
|
tmp_4 = tmp3_elvis_lhs;
|
|
2539
2539
|
}
|
|
@@ -2542,7 +2542,7 @@ protoOf(Companion_10).ocn = 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.scq_1.wcq_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.gco_1 = notaryUrl;
|
|
2560
|
+
this.hco_1 = maxConcurrency;
|
|
2561
|
+
this.ico_1 = proofsPerChild;
|
|
2562
|
+
this.jco_1 = threadCount;
|
|
2563
|
+
this.kco_1 = assetsDir;
|
|
2564
|
+
this.lco_1 = connectDeadline;
|
|
2565
|
+
this.mco_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().zcq_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.dcr_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.zcq_1 = Regex_init_$Create$('^[A-Za-z0-9._-]+$');
|
|
2583
|
+
this.acr_1 = 6;
|
|
2584
|
+
this.bcr_1 = 448;
|
|
2585
|
+
this.ccr_1 = 384;
|
|
2586
2586
|
}
|
|
2587
2587
|
var Companion_instance_14;
|
|
2588
2588
|
function Companion_getInstance_14() {
|
|
@@ -2592,8 +2592,8 @@ 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.ncr_1 = _this__u8e3s4;
|
|
2596
|
+
this.ocr_1 = key;
|
|
2597
2597
|
}
|
|
2598
2598
|
protoOf($getCOROUTINE$).q9 = function () {
|
|
2599
2599
|
var suspendResult = this.k9_1;
|
|
@@ -2605,14 +2605,14 @@ protoOf($getCOROUTINE$).q9 = function () {
|
|
|
2605
2605
|
this.j9_1 = 3;
|
|
2606
2606
|
this.j9_1 = 2;
|
|
2607
2607
|
this.i9_1 = 1;
|
|
2608
|
-
suspendResult = await_0(readFile(file(this.
|
|
2608
|
+
suspendResult = await_0(readFile(file(this.ncr_1, this.ocr_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.
|
|
2615
|
+
this.pcr_1 = suspendResult;
|
|
2616
2616
|
this.j9_1 = 3;
|
|
2617
2617
|
this.i9_1 = 4;
|
|
2618
2618
|
continue $sm;
|
|
@@ -2628,7 +2628,7 @@ protoOf($getCOROUTINE$).q9 = function () {
|
|
|
2628
2628
|
} else {
|
|
2629
2629
|
throw e;
|
|
2630
2630
|
}
|
|
2631
|
-
tmp_1.
|
|
2631
|
+
tmp_1.pcr_1 = tmp_2;
|
|
2632
2632
|
this.i9_1 = 4;
|
|
2633
2633
|
continue $sm;
|
|
2634
2634
|
} else {
|
|
@@ -2639,7 +2639,7 @@ protoOf($getCOROUTINE$).q9 = function () {
|
|
|
2639
2639
|
throw this.l9_1;
|
|
2640
2640
|
case 4:
|
|
2641
2641
|
this.j9_1 = 3;
|
|
2642
|
-
return this.
|
|
2642
|
+
return this.pcr_1;
|
|
2643
2643
|
}
|
|
2644
2644
|
} catch ($p) {
|
|
2645
2645
|
var e_0 = $p;
|
|
@@ -2654,9 +2654,9 @@ protoOf($getCOROUTINE$).q9 = function () {
|
|
|
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.ycr_1 = _this__u8e3s4;
|
|
2658
|
+
this.zcr_1 = key;
|
|
2659
|
+
this.acs_1 = value;
|
|
2660
2660
|
}
|
|
2661
2661
|
protoOf($setCOROUTINE$).q9 = function () {
|
|
2662
2662
|
var suspendResult = this.k9_1;
|
|
@@ -2666,13 +2666,13 @@ protoOf($setCOROUTINE$).q9 = function () {
|
|
|
2666
2666
|
switch (tmp) {
|
|
2667
2667
|
case 0:
|
|
2668
2668
|
this.j9_1 = 5;
|
|
2669
|
-
this.
|
|
2670
|
-
if (!this.
|
|
2669
|
+
this.bcs_1 = file(this.ycr_1, this.zcr_1);
|
|
2670
|
+
if (!this.ycr_1.ecr_1) {
|
|
2671
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.ycr_1.dcr_1, this_0), this);
|
|
2676
2676
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2677
2677
|
return suspendResult;
|
|
2678
2678
|
}
|
|
@@ -2683,18 +2683,18 @@ protoOf($setCOROUTINE$).q9 = function () {
|
|
|
2683
2683
|
}
|
|
2684
2684
|
|
|
2685
2685
|
case 1:
|
|
2686
|
-
this.
|
|
2686
|
+
this.ycr_1.ecr_1 = true;
|
|
2687
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.
|
|
2692
|
+
tmp_0.ccs_1 = this.bcs_1 + '.' + ((!(tmp_1 == null) ? typeof tmp_1 === 'string' : false) ? tmp_1 : THROW_CCE()) + '.tmp';
|
|
2693
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.ccs_1, this.acs_1, this_1), this);
|
|
2698
2698
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2699
2699
|
return suspendResult;
|
|
2700
2700
|
}
|
|
@@ -2702,7 +2702,7 @@ protoOf($setCOROUTINE$).q9 = function () {
|
|
|
2702
2702
|
continue $sm;
|
|
2703
2703
|
case 3:
|
|
2704
2704
|
this.i9_1 = 4;
|
|
2705
|
-
suspendResult = await_0(rename(this.
|
|
2705
|
+
suspendResult = await_0(rename(this.ccs_1, this.bcs_1), this);
|
|
2706
2706
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2707
2707
|
return suspendResult;
|
|
2708
2708
|
}
|
|
@@ -2726,8 +2726,8 @@ protoOf($setCOROUTINE$).q9 = function () {
|
|
|
2726
2726
|
};
|
|
2727
2727
|
function $removeCOROUTINE$(_this__u8e3s4, key, resultContinuation) {
|
|
2728
2728
|
CoroutineImpl.call(this, resultContinuation);
|
|
2729
|
-
this.
|
|
2730
|
-
this.
|
|
2729
|
+
this.lcs_1 = _this__u8e3s4;
|
|
2730
|
+
this.mcs_1 = key;
|
|
2731
2731
|
}
|
|
2732
2732
|
protoOf($removeCOROUTINE$).q9 = function () {
|
|
2733
2733
|
var suspendResult = this.k9_1;
|
|
@@ -2739,7 +2739,7 @@ protoOf($removeCOROUTINE$).q9 = function () {
|
|
|
2739
2739
|
this.j9_1 = 3;
|
|
2740
2740
|
this.j9_1 = 2;
|
|
2741
2741
|
this.i9_1 = 1;
|
|
2742
|
-
suspendResult = await_0(unlink(file(this.
|
|
2742
|
+
suspendResult = await_0(unlink(file(this.lcs_1, this.mcs_1)), this);
|
|
2743
2743
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2744
2744
|
return suspendResult;
|
|
2745
2745
|
}
|
|
@@ -2781,8 +2781,8 @@ protoOf($removeCOROUTINE$).q9 = function () {
|
|
|
2781
2781
|
};
|
|
2782
2782
|
function FileKeyValueStore(dir) {
|
|
2783
2783
|
Companion_getInstance_14();
|
|
2784
|
-
this.
|
|
2785
|
-
this.
|
|
2784
|
+
this.dcr_1 = dir;
|
|
2785
|
+
this.ecr_1 = false;
|
|
2786
2786
|
}
|
|
2787
2787
|
protoOf(FileKeyValueStore).g6o = function (key, $completion) {
|
|
2788
2788
|
var tmp = new $getCOROUTINE$(this, key, $completion);
|
|
@@ -2804,7 +2804,7 @@ protoOf(FileKeyValueStore).i6o = function (key, $completion) {
|
|
|
2804
2804
|
};
|
|
2805
2805
|
function Companion_12() {
|
|
2806
2806
|
Companion_instance_15 = this;
|
|
2807
|
-
this.
|
|
2807
|
+
this.ncs_1 = Regex_init_$Create$('^[0-9]{1,20}$');
|
|
2808
2808
|
}
|
|
2809
2809
|
var Companion_instance_15;
|
|
2810
2810
|
function Companion_getInstance_15() {
|
|
@@ -2814,23 +2814,23 @@ function Companion_getInstance_15() {
|
|
|
2814
2814
|
}
|
|
2815
2815
|
function AccountDirectories(dataDir) {
|
|
2816
2816
|
Companion_getInstance_15();
|
|
2817
|
-
this.
|
|
2817
|
+
this.acq_1 = dataDir;
|
|
2818
2818
|
var tmp = this;
|
|
2819
2819
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
2820
|
-
tmp.
|
|
2820
|
+
tmp.bcq_1 = LinkedHashMap_init_$Create$();
|
|
2821
2821
|
}
|
|
2822
|
-
protoOf(AccountDirectories).
|
|
2822
|
+
protoOf(AccountDirectories).ccq = function (steamId) {
|
|
2823
2823
|
// Inline function 'kotlin.require' call
|
|
2824
|
-
if (!Companion_getInstance_15().
|
|
2824
|
+
if (!Companion_getInstance_15().ncs_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.
|
|
2829
|
+
var this_0 = this.bcq_1;
|
|
2830
2830
|
var value = this_0.x2(steamId);
|
|
2831
2831
|
var tmp;
|
|
2832
2832
|
if (value == null) {
|
|
2833
|
-
var answer = new FileKeyValueStore(join(this.
|
|
2833
|
+
var answer = new FileKeyValueStore(join(this.acq_1, steamId));
|
|
2834
2834
|
this_0.a3(steamId, answer);
|
|
2835
2835
|
tmp = answer;
|
|
2836
2836
|
} else {
|
|
@@ -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.ocs_1 = 5;
|
|
2898
2898
|
}
|
|
2899
2899
|
var Companion_instance_16;
|
|
2900
2900
|
function Companion_getInstance_16() {
|
|
@@ -2929,14 +2929,14 @@ 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.vcq_1 = connectDeadline;
|
|
2933
|
+
this.wcq_1 = sessionDeadline;
|
|
2934
|
+
this.xcq_1 = proofsPerChild;
|
|
2935
|
+
this.ycq_1 = exitGrace;
|
|
2936
|
+
var containsArg = this.xcq_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.xcq_1;
|
|
2940
2940
|
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
2941
2941
|
}
|
|
2942
2942
|
}
|
|
@@ -2951,7 +2951,7 @@ function killed($this, 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.rct_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.bcu_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.rbe_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.bcu_1 || child.acu_1 >= $this.kct_1.xcq_1) {
|
|
2976
|
+
$this.sct_1.e3(child);
|
|
2977
|
+
child.dcu($this.kct_1.ycq_1);
|
|
2978
2978
|
} else {
|
|
2979
|
-
$this.
|
|
2979
|
+
$this.rct_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.lct_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.hct_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.gct_1, tmp$ret$4, options);
|
|
2996
|
+
$this.uct_1 = $this.uct_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.nct_1, $this.oct_1);
|
|
2999
2999
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
3000
|
-
$this.
|
|
3000
|
+
$this.sct_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,17 +3010,17 @@ 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.mcu_1 = $child;
|
|
3014
3014
|
CoroutineImpl.call(this, resultContinuation);
|
|
3015
3015
|
}
|
|
3016
|
-
protoOf(ForkedProofHost$run$slambda).
|
|
3016
|
+
protoOf(ForkedProofHost$run$slambda).ocu = function ($this$withTimeoutOrNull, $completion) {
|
|
3017
3017
|
var tmp = this.x1o($this$withTimeoutOrNull, $completion);
|
|
3018
3018
|
tmp.k9_1 = Unit_instance;
|
|
3019
3019
|
tmp.l9_1 = null;
|
|
3020
3020
|
return tmp.q9();
|
|
3021
3021
|
};
|
|
3022
3022
|
protoOf(ForkedProofHost$run$slambda).da = function (p1, $completion) {
|
|
3023
|
-
return this.
|
|
3023
|
+
return this.ocu((!(p1 == null) ? isInterface(p1, CoroutineScope_0) : false) ? p1 : THROW_CCE(), $completion);
|
|
3024
3024
|
};
|
|
3025
3025
|
protoOf(ForkedProofHost$run$slambda).q9 = function () {
|
|
3026
3026
|
var suspendResult = this.k9_1;
|
|
@@ -3031,7 +3031,7 @@ protoOf(ForkedProofHost$run$slambda).q9 = function () {
|
|
|
3031
3031
|
case 0:
|
|
3032
3032
|
this.j9_1 = 2;
|
|
3033
3033
|
this.i9_1 = 1;
|
|
3034
|
-
suspendResult = this.
|
|
3034
|
+
suspendResult = this.mcu_1.yct_1.v1g(this);
|
|
3035
3035
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3036
3036
|
return suspendResult;
|
|
3037
3037
|
}
|
|
@@ -3054,21 +3054,21 @@ protoOf(ForkedProofHost$run$slambda).q9 = function () {
|
|
|
3054
3054
|
while (true);
|
|
3055
3055
|
};
|
|
3056
3056
|
protoOf(ForkedProofHost$run$slambda).x1o = function ($this$withTimeoutOrNull, completion) {
|
|
3057
|
-
var i = new ForkedProofHost$run$slambda(this.
|
|
3058
|
-
i.
|
|
3057
|
+
var i = new ForkedProofHost$run$slambda(this.mcu_1, completion);
|
|
3058
|
+
i.ncu_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.ocu($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.xcu_1 = _this__u8e3s4;
|
|
3070
|
+
this.ycu_1 = proof;
|
|
3071
|
+
this.zcu_1 = upgrade;
|
|
3072
3072
|
}
|
|
3073
3073
|
protoOf($proveCOROUTINE$).q9 = function () {
|
|
3074
3074
|
var suspendResult = this.k9_1;
|
|
@@ -3078,20 +3078,20 @@ protoOf($proveCOROUTINE$).q9 = function () {
|
|
|
3078
3078
|
switch (tmp) {
|
|
3079
3079
|
case 0:
|
|
3080
3080
|
this.j9_1 = 6;
|
|
3081
|
-
this.
|
|
3082
|
-
var tmp0_safe_receiver = this.
|
|
3081
|
+
this.bcv_1 = this.ycu_1.kbg_1.zbg_1;
|
|
3082
|
+
var tmp0_safe_receiver = this.xcu_1.mct_1.wcl(this.xcu_1.jct_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.xcu_1.pct_1(this.bcv_1, held);
|
|
3088
3088
|
return new Failed(held);
|
|
3089
3089
|
}
|
|
3090
3090
|
|
|
3091
|
-
this.
|
|
3092
|
-
this.
|
|
3091
|
+
this.hcv_1 = this.xcu_1.qct_1;
|
|
3092
|
+
this.gcv_1 = null;
|
|
3093
3093
|
this.i9_1 = 1;
|
|
3094
|
-
suspendResult = this.
|
|
3094
|
+
suspendResult = this.hcv_1.o1u(this.gcv_1, this);
|
|
3095
3095
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3096
3096
|
return suspendResult;
|
|
3097
3097
|
}
|
|
@@ -3102,35 +3102,35 @@ protoOf($proveCOROUTINE$).q9 = 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.xcu_1);
|
|
3106
|
+
var tmp_1 = tmp0_elvis_lhs == null ? fork(this.xcu_1) : tmp0_elvis_lhs;
|
|
3107
|
+
var _unary__edvuaz = this.xcu_1.tct_1;
|
|
3108
|
+
this.xcu_1.tct_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.hcv_1.a1u(this.gcv_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.
|
|
3120
|
+
this.hcv_1.a1u(this.gcv_1);
|
|
3121
|
+
this.ccv_1 = tmp_3.gh();
|
|
3122
3122
|
var id = tmp_3.hh();
|
|
3123
|
-
this.
|
|
3123
|
+
this.xcu_1.oct_1('proof started', false, listOf([to('dealId', this.bcv_1), to('pid', this.ccv_1.zct_1)]));
|
|
3124
3124
|
this.j9_1 = 3;
|
|
3125
3125
|
this.i9_1 = 2;
|
|
3126
|
-
suspendResult = run(this.
|
|
3126
|
+
suspendResult = run(this.xcu_1, this.ccv_1, id, this.ycu_1, this.zcu_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.
|
|
3133
|
+
this.fcv_1 = suspendResult;
|
|
3134
3134
|
this.j9_1 = 6;
|
|
3135
3135
|
this.i9_1 = 4;
|
|
3136
3136
|
continue $sm;
|
|
@@ -3140,7 +3140,7 @@ protoOf($proveCOROUTINE$).q9 = function () {
|
|
|
3140
3140
|
if (tmp_4 instanceof CancellationException) {
|
|
3141
3141
|
var e = this.l9_1;
|
|
3142
3142
|
var tmp_5 = this;
|
|
3143
|
-
this.
|
|
3143
|
+
this.ccv_1.icv();
|
|
3144
3144
|
throw e;
|
|
3145
3145
|
} else {
|
|
3146
3146
|
throw this.l9_1;
|
|
@@ -3148,11 +3148,11 @@ protoOf($proveCOROUTINE$).q9 = function () {
|
|
|
3148
3148
|
|
|
3149
3149
|
case 4:
|
|
3150
3150
|
this.j9_1 = 6;
|
|
3151
|
-
this.
|
|
3152
|
-
this.
|
|
3153
|
-
this.
|
|
3151
|
+
this.acv_1 = this.fcv_1;
|
|
3152
|
+
this.ecv_1 = this.xcu_1.qct_1;
|
|
3153
|
+
this.dcv_1 = null;
|
|
3154
3154
|
this.i9_1 = 5;
|
|
3155
|
-
suspendResult = this.
|
|
3155
|
+
suspendResult = this.ecv_1.o1u(this.dcv_1, this);
|
|
3156
3156
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3157
3157
|
return suspendResult;
|
|
3158
3158
|
}
|
|
@@ -3162,33 +3162,33 @@ protoOf($proveCOROUTINE$).q9 = function () {
|
|
|
3162
3162
|
l$ret$3: do {
|
|
3163
3163
|
var tmp_6;
|
|
3164
3164
|
try {
|
|
3165
|
-
release(this.
|
|
3165
|
+
release(this.xcu_1, this.ccv_1, this.acv_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.ecv_1.a1u(this.dcv_1);
|
|
3171
3171
|
throw t_0;
|
|
3172
3172
|
}
|
|
3173
3173
|
}
|
|
3174
3174
|
while (false);
|
|
3175
|
-
this.
|
|
3176
|
-
var tmp1_subject = this.
|
|
3175
|
+
this.ecv_1.a1u(this.dcv_1);
|
|
3176
|
+
var tmp1_subject = this.acv_1;
|
|
3177
3177
|
if (tmp1_subject instanceof Proved) {
|
|
3178
|
-
this.
|
|
3179
|
-
this.
|
|
3180
|
-
this.
|
|
3178
|
+
this.xcu_1.mct_1.ycl();
|
|
3179
|
+
this.xcu_1.oct_1('proof made', false, listOf([to('dealId', this.bcv_1), to('pid', this.ccv_1.zct_1)]));
|
|
3180
|
+
this.xcu_1.pct_1(this.bcv_1, null);
|
|
3181
3181
|
} else {
|
|
3182
3182
|
if (tmp1_subject instanceof Failed) {
|
|
3183
|
-
this.
|
|
3184
|
-
this.
|
|
3185
|
-
this.
|
|
3183
|
+
this.xcu_1.mct_1.xcl(this.acv_1.rbe_1, this.xcu_1.jct_1.rp());
|
|
3184
|
+
this.xcu_1.oct_1('proof failed', true, listOf([to('dealId', this.bcv_1), to('pid', this.ccv_1.zct_1), to('reason', ProverOutput_getInstance().u7b(this.acv_1.rbe_1.zbf()))]));
|
|
3185
|
+
this.xcu_1.pct_1(this.bcv_1, this.acv_1.rbe_1);
|
|
3186
3186
|
} else {
|
|
3187
3187
|
noWhenBranchMatchedException();
|
|
3188
3188
|
}
|
|
3189
3189
|
}
|
|
3190
3190
|
|
|
3191
|
-
return this.
|
|
3191
|
+
return this.acv_1;
|
|
3192
3192
|
case 6:
|
|
3193
3193
|
throw this.l9_1;
|
|
3194
3194
|
}
|
|
@@ -3205,11 +3205,11 @@ protoOf($proveCOROUTINE$).q9 = function () {
|
|
|
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.
|
|
3208
|
+
this.xcs_1 = _this__u8e3s4;
|
|
3209
|
+
this.ycs_1 = child;
|
|
3210
|
+
this.zcs_1 = id;
|
|
3211
|
+
this.act_1 = proof;
|
|
3212
|
+
this.bct_1 = upgrade;
|
|
3213
3213
|
}
|
|
3214
3214
|
protoOf($runCOROUTINE$).q9 = function () {
|
|
3215
3215
|
var suspendResult = this.k9_1;
|
|
@@ -3219,14 +3219,14 @@ protoOf($runCOROUTINE$).q9 = function () {
|
|
|
3219
3219
|
switch (tmp) {
|
|
3220
3220
|
case 0:
|
|
3221
3221
|
this.j9_1 = 9;
|
|
3222
|
-
this.
|
|
3223
|
-
this.
|
|
3224
|
-
if (!this.
|
|
3225
|
-
return killed(this.
|
|
3222
|
+
this.fct_1 = Monotonic_instance.ff();
|
|
3223
|
+
this.dct_1 = null;
|
|
3224
|
+
if (!this.ycs_1.jcv(ProverIpc_getInstance().lcm(new Prove(this.zcs_1, this.act_1.kbg_1, this.act_1.lbg_1, this.act_1.mbg_1, this.xcs_1.ict_1)))) {
|
|
3225
|
+
return killed(this.xcs_1, KillCause_EXITED_getInstance(), "the prover's channel was closed");
|
|
3226
3226
|
}
|
|
3227
3227
|
|
|
3228
|
-
var _receiver__tnumb7 = this.
|
|
3229
|
-
_receiver__tnumb7.
|
|
3228
|
+
var _receiver__tnumb7 = this.ycs_1;
|
|
3229
|
+
_receiver__tnumb7.acu_1 = _receiver__tnumb7.acu_1 + 1 | 0;
|
|
3230
3230
|
this.i9_1 = 1;
|
|
3231
3231
|
continue $sm;
|
|
3232
3232
|
case 1:
|
|
@@ -3235,19 +3235,19 @@ protoOf($runCOROUTINE$).q9 = function () {
|
|
|
3235
3235
|
continue $sm;
|
|
3236
3236
|
}
|
|
3237
3237
|
|
|
3238
|
-
var tmp0_safe_receiver = this.
|
|
3238
|
+
var tmp0_safe_receiver = this.dct_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.xcs_1.kct_1.wcq_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.xcs_1.kct_1.vcq_1, ValueTimeMark__elapsedNow_impl_eonqvs(this.fct_1));
|
|
3251
3251
|
} else {
|
|
3252
3252
|
tmp_1 = tmp1_elvis_lhs;
|
|
3253
3253
|
}
|
|
@@ -3255,7 +3255,7 @@ protoOf($runCOROUTINE$).q9 = function () {
|
|
|
3255
3255
|
var left = tmp_1;
|
|
3256
3256
|
this.i9_1 = 2;
|
|
3257
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.
|
|
3258
|
+
suspendResult = withTimeoutOrNull(tmp_3.lf_1, ForkedProofHost$run$slambda_0(this.ycs_1, null), this);
|
|
3259
3259
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3260
3260
|
return suspendResult;
|
|
3261
3261
|
}
|
|
@@ -3264,18 +3264,18 @@ protoOf($runCOROUTINE$).q9 = function () {
|
|
|
3264
3264
|
case 2:
|
|
3265
3265
|
var event = suspendResult;
|
|
3266
3266
|
if (event == null) {
|
|
3267
|
-
this.
|
|
3268
|
-
return killed(this.
|
|
3267
|
+
this.ycs_1.icv();
|
|
3268
|
+
return killed(this.xcs_1, this.dct_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.xcs_1, event.ocv(), event.pcv());
|
|
3273
3273
|
} else {
|
|
3274
3274
|
if (event instanceof Message) {
|
|
3275
|
-
this.
|
|
3275
|
+
this.xcs_1;
|
|
3276
3276
|
var tmp_4;
|
|
3277
3277
|
try {
|
|
3278
|
-
var value = ProverIpc_getInstance().
|
|
3278
|
+
var value = ProverIpc_getInstance().ocm(event.kcv_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$).q9 = function () {
|
|
|
3294
3294
|
tmp_6 = null;
|
|
3295
3295
|
} else {
|
|
3296
3296
|
var tmp_7;
|
|
3297
|
-
if (tmp3_safe_receiver.v6e() === this.
|
|
3297
|
+
if (tmp3_safe_receiver.v6e() === this.zcs_1) {
|
|
3298
3298
|
tmp_7 = tmp3_safe_receiver;
|
|
3299
3299
|
} else {
|
|
3300
3300
|
tmp_7 = null;
|
|
@@ -3307,7 +3307,7 @@ protoOf($runCOROUTINE$).q9 = function () {
|
|
|
3307
3307
|
var tmp_8 = this;
|
|
3308
3308
|
continue $sm;
|
|
3309
3309
|
} else {
|
|
3310
|
-
this.
|
|
3310
|
+
this.ect_1 = tmp4_elvis_lhs;
|
|
3311
3311
|
this.i9_1 = 3;
|
|
3312
3312
|
continue $sm;
|
|
3313
3313
|
}
|
|
@@ -3318,23 +3318,23 @@ protoOf($runCOROUTINE$).q9 = function () {
|
|
|
3318
3318
|
|
|
3319
3319
|
break;
|
|
3320
3320
|
case 3:
|
|
3321
|
-
var message = this.
|
|
3321
|
+
var message = this.ect_1;
|
|
3322
3322
|
if (message instanceof HeadersWanted) {
|
|
3323
|
-
if (this.
|
|
3324
|
-
this.
|
|
3323
|
+
if (this.dct_1 == null)
|
|
3324
|
+
this.dct_1 = new ValueTimeMark(Monotonic_instance.ff());
|
|
3325
3325
|
this.j9_1 = 5;
|
|
3326
3326
|
this.i9_1 = 4;
|
|
3327
|
-
suspendResult = this.
|
|
3327
|
+
suspendResult = this.bct_1.x7a(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.icn_1);
|
|
3335
3335
|
} else {
|
|
3336
3336
|
if (message instanceof Failed_0) {
|
|
3337
|
-
return new Failed(message.
|
|
3337
|
+
return new Failed(message.ncn_1);
|
|
3338
3338
|
} else {
|
|
3339
3339
|
noWhenBranchMatchedException();
|
|
3340
3340
|
}
|
|
@@ -3343,8 +3343,8 @@ protoOf($runCOROUTINE$).q9 = function () {
|
|
|
3343
3343
|
|
|
3344
3344
|
break;
|
|
3345
3345
|
case 4:
|
|
3346
|
-
var ARGUMENT = suspendResult.
|
|
3347
|
-
this.
|
|
3346
|
+
var ARGUMENT = suspendResult.nbg_1;
|
|
3347
|
+
this.cct_1 = new Headers(this.zcs_1, ARGUMENT);
|
|
3348
3348
|
this.j9_1 = 9;
|
|
3349
3349
|
this.i9_1 = 6;
|
|
3350
3350
|
continue $sm;
|
|
@@ -3361,7 +3361,7 @@ protoOf($runCOROUTINE$).q9 = function () {
|
|
|
3361
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.
|
|
3364
|
+
tmp_12.cct_1 = new Headers(this.zcs_1, VOID, 'the upgrade could not be signed: ' + (tmp6_elvis_lhs == null ? 'no detail' : tmp6_elvis_lhs));
|
|
3365
3365
|
this.i9_1 = 6;
|
|
3366
3366
|
continue $sm;
|
|
3367
3367
|
} else {
|
|
@@ -3371,9 +3371,9 @@ protoOf($runCOROUTINE$).q9 = function () {
|
|
|
3371
3371
|
|
|
3372
3372
|
case 6:
|
|
3373
3373
|
this.j9_1 = 9;
|
|
3374
|
-
var reply = this.
|
|
3375
|
-
if (!this.
|
|
3376
|
-
return killed(this.
|
|
3374
|
+
var reply = this.cct_1;
|
|
3375
|
+
if (!this.ycs_1.jcv(ProverIpc_getInstance().lcm(reply)))
|
|
3376
|
+
return killed(this.xcs_1, KillCause_EXITED_getInstance(), "the prover's channel was closed");
|
|
3377
3377
|
this.i9_1 = 7;
|
|
3378
3378
|
continue $sm;
|
|
3379
3379
|
case 7:
|
|
@@ -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.gct_1 = script;
|
|
3427
|
+
this.hct_1 = args;
|
|
3428
|
+
this.ict_1 = settings;
|
|
3429
|
+
this.jct_1 = clock;
|
|
3430
|
+
this.kct_1 = limits;
|
|
3431
|
+
this.lct_1 = env;
|
|
3432
|
+
this.mct_1 = backoff;
|
|
3433
|
+
this.nct_1 = onLine;
|
|
3434
|
+
this.oct_1 = onNotice;
|
|
3435
|
+
this.pct_1 = onOutcome;
|
|
3436
|
+
this.qct_1 = Mutex();
|
|
3437
|
+
this.rct_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.sct_1 = LinkedHashSet_init_$Create$();
|
|
3441
|
+
this.tct_1 = 1;
|
|
3442
|
+
this.uct_1 = 0;
|
|
3443
3443
|
}
|
|
3444
|
-
protoOf(ForkedProofHost).
|
|
3444
|
+
protoOf(ForkedProofHost).qbe = function (proof, upgrade, $completion) {
|
|
3445
3445
|
var tmp = new $proveCOROUTINE$(this, proof, upgrade, $completion);
|
|
3446
3446
|
tmp.k9_1 = Unit_instance;
|
|
3447
3447
|
tmp.l9_1 = null;
|
|
3448
3448
|
return tmp.q9();
|
|
3449
3449
|
};
|
|
3450
|
-
protoOf(ForkedProofHost).
|
|
3451
|
-
return this.
|
|
3450
|
+
protoOf(ForkedProofHost).zcl = function () {
|
|
3451
|
+
return this.mct_1.zcl();
|
|
3452
3452
|
};
|
|
3453
3453
|
protoOf(ForkedProofHost).j4 = function () {
|
|
3454
3454
|
// Inline function 'kotlin.collections.forEach' call
|
|
3455
|
-
var _iterator__ex2g4s = this.
|
|
3455
|
+
var _iterator__ex2g4s = this.sct_1.t();
|
|
3456
3456
|
while (_iterator__ex2g4s.u()) {
|
|
3457
3457
|
var element = _iterator__ex2g4s.v();
|
|
3458
|
-
element.
|
|
3458
|
+
element.icv();
|
|
3459
3459
|
}
|
|
3460
|
-
this.
|
|
3461
|
-
this.
|
|
3460
|
+
this.sct_1.d3();
|
|
3461
|
+
this.rct_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.kcv_1 = text;
|
|
3511
3511
|
}
|
|
3512
3512
|
protoOf(Message).toString = function () {
|
|
3513
|
-
return 'Message(text=' + this.
|
|
3513
|
+
return 'Message(text=' + this.kcv_1 + ')';
|
|
3514
3514
|
};
|
|
3515
3515
|
protoOf(Message).hashCode = function () {
|
|
3516
|
-
return getStringHashCode(this.
|
|
3516
|
+
return getStringHashCode(this.kcv_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.kcv_1 === other.kcv_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.lcv_1 = code;
|
|
3530
|
+
this.mcv_1 = signal;
|
|
3531
|
+
this.ncv_1 = error;
|
|
3532
3532
|
}
|
|
3533
|
-
protoOf(Exited).
|
|
3534
|
-
return this.
|
|
3533
|
+
protoOf(Exited).ocv = function () {
|
|
3534
|
+
return this.mcv_1 === 'SIGKILL' ? KillCause_OUT_OF_MEMORY_getInstance() : KillCause_EXITED_getInstance();
|
|
3535
3535
|
};
|
|
3536
|
-
protoOf(Exited).
|
|
3537
|
-
var tmp0_elvis_lhs = this.
|
|
3536
|
+
protoOf(Exited).pcv = function () {
|
|
3537
|
+
var tmp0_elvis_lhs = this.ncv_1;
|
|
3538
3538
|
var tmp;
|
|
3539
3539
|
if (tmp0_elvis_lhs == null) {
|
|
3540
|
-
var tmp1_safe_receiver = this.
|
|
3540
|
+
var tmp1_safe_receiver = this.mcv_1;
|
|
3541
3541
|
var tmp_0;
|
|
3542
3542
|
if (tmp1_safe_receiver == null) {
|
|
3543
3543
|
tmp_0 = null;
|
|
@@ -3550,15 +3550,15 @@ protoOf(Exited).ncv = 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.lcv_1 : tmp2_elvis_lhs;
|
|
3554
3554
|
};
|
|
3555
3555
|
protoOf(Exited).toString = function () {
|
|
3556
|
-
return 'Exited(code=' + this.
|
|
3556
|
+
return 'Exited(code=' + this.lcv_1 + ', signal=' + this.mcv_1 + ', error=' + this.ncv_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.lcv_1 == null ? 0 : this.lcv_1;
|
|
3560
|
+
result = imul(result, 31) + (this.mcv_1 == null ? 0 : getStringHashCode(this.mcv_1)) | 0;
|
|
3561
|
+
result = imul(result, 31) + (this.ncv_1 == null ? 0 : getStringHashCode(this.ncv_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.lcv_1 == other.lcv_1))
|
|
3570
3570
|
return false;
|
|
3571
|
-
if (!(this.
|
|
3571
|
+
if (!(this.mcv_1 == other.mcv_1))
|
|
3572
3572
|
return false;
|
|
3573
|
-
if (!(this.
|
|
3573
|
+
if (!(this.ncv_1 == other.ncv_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.wct_1($this.zct_1, stream, ProverOutput_getInstance().u7b(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.yct_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.bcu_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.zct_1);
|
|
3609
|
+
var tmp1_safe_receiver = exit.lcv_1;
|
|
3610
|
+
this$0.xct_1('prover exited', false, listOf([tmp_0, to('code', tmp1_safe_receiver == null ? null : tmp1_safe_receiver.toString()), to('signal', exit.mcv_1), to('killedBySdk', this$0.ccu_1.toString())]));
|
|
3611
|
+
return new ChannelResult(this$0.yct_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.bcu_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.yct_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.bcu_1) {
|
|
3625
|
+
this$0.icv();
|
|
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.vct_1 = process;
|
|
3659
|
+
this.wct_1 = onLine;
|
|
3660
|
+
this.xct_1 = onNotice;
|
|
3661
|
+
this.yct_1 = Channel(2147483647);
|
|
3662
3662
|
var tmp = this;
|
|
3663
|
-
var tmp_0 = this.
|
|
3663
|
+
var tmp_0 = this.vct_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.zct_1 = tmp1_elvis_lhs == null ? '?' : tmp1_elvis_lhs;
|
|
3667
|
+
this.acu_1 = 0;
|
|
3668
|
+
this.bcu_1 = false;
|
|
3669
|
+
this.ccu_1 = false;
|
|
3670
|
+
this.vct_1.on('message', ForkedChild$lambda(this));
|
|
3671
|
+
this.vct_1.on('exit', ForkedChild$lambda_0(this));
|
|
3672
|
+
this.vct_1.on('error', ForkedChild$lambda_1(this));
|
|
3673
|
+
pipe(this, this.vct_1.stdout, 'stdout');
|
|
3674
|
+
pipe(this, this.vct_1.stderr, 'stderr');
|
|
3675
|
+
}
|
|
3676
|
+
protoOf(ForkedChild).jcv = function (text) {
|
|
3677
3677
|
var tmp;
|
|
3678
3678
|
try {
|
|
3679
3679
|
var tmp_0;
|
|
3680
|
-
if (this.
|
|
3680
|
+
if (this.bcu_1 || this.vct_1.connected != true) {
|
|
3681
3681
|
tmp_0 = false;
|
|
3682
3682
|
} else {
|
|
3683
|
-
this.
|
|
3683
|
+
this.vct_1.send(text);
|
|
3684
3684
|
tmp_0 = true;
|
|
3685
3685
|
}
|
|
3686
3686
|
tmp = tmp_0;
|
|
@@ -3696,15 +3696,15 @@ protoOf(ForkedChild).hcv = function (text) {
|
|
|
3696
3696
|
}
|
|
3697
3697
|
return tmp;
|
|
3698
3698
|
};
|
|
3699
|
-
protoOf(ForkedChild).
|
|
3700
|
-
if (this.
|
|
3699
|
+
protoOf(ForkedChild).icv = function () {
|
|
3700
|
+
if (this.bcu_1)
|
|
3701
3701
|
return Unit_instance;
|
|
3702
|
-
this.
|
|
3702
|
+
this.ccu_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.vct_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).gcv = function () {
|
|
|
3718
3718
|
tmp = tmp_0;
|
|
3719
3719
|
}
|
|
3720
3720
|
};
|
|
3721
|
-
protoOf(ForkedChild).
|
|
3722
|
-
if (this.
|
|
3721
|
+
protoOf(ForkedChild).dcu = function (grace) {
|
|
3722
|
+
if (this.bcu_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.vct_1.connected == true) {
|
|
3728
|
+
this.vct_1.disconnect();
|
|
3729
3729
|
}
|
|
3730
3730
|
// Inline function 'kotlin.Companion.success' call
|
|
3731
3731
|
tmp = _Result___init__impl__xyqfz8(Unit_instance);
|
|
@@ -3772,20 +3772,20 @@ 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.ycv_1 = $proof;
|
|
3776
|
+
this.zcv_1 = $config;
|
|
3777
|
+
this.acw_1 = $host;
|
|
3778
|
+
this.bcw_1 = this$0;
|
|
3779
3779
|
CoroutineImpl.call(this, resultContinuation);
|
|
3780
3780
|
}
|
|
3781
|
-
protoOf(NodeWasmProver$prove$slambda$slambda).
|
|
3781
|
+
protoOf(NodeWasmProver$prove$slambda$slambda).fci = function ($this$async, $completion) {
|
|
3782
3782
|
var tmp = this.x1o($this$async, $completion);
|
|
3783
3783
|
tmp.k9_1 = Unit_instance;
|
|
3784
3784
|
tmp.l9_1 = null;
|
|
3785
3785
|
return tmp.q9();
|
|
3786
3786
|
};
|
|
3787
3787
|
protoOf(NodeWasmProver$prove$slambda$slambda).da = function (p1, $completion) {
|
|
3788
|
-
return this.
|
|
3788
|
+
return this.fci((!(p1 == null) ? isInterface(p1, CoroutineScope_0) : false) ? p1 : THROW_CCE(), $completion);
|
|
3789
3789
|
};
|
|
3790
3790
|
protoOf(NodeWasmProver$prove$slambda$slambda).q9 = function () {
|
|
3791
3791
|
var suspendResult = this.k9_1;
|
|
@@ -3796,9 +3796,9 @@ protoOf(NodeWasmProver$prove$slambda$slambda).q9 = function () {
|
|
|
3796
3796
|
case 0:
|
|
3797
3797
|
this.j9_1 = 2;
|
|
3798
3798
|
this.i9_1 = 1;
|
|
3799
|
-
var tmp_0 = new HostedProofRequest(this.
|
|
3800
|
-
var tmp_1 = this.
|
|
3801
|
-
suspendResult = runHostedProof(tmp_0, this.
|
|
3799
|
+
var tmp_0 = new HostedProofRequest(this.ycv_1.scm_1, this.ycv_1.tcm_1, this.ycv_1.ucm_1);
|
|
3800
|
+
var tmp_1 = this.bcw_1.dcw_1.rp();
|
|
3801
|
+
suspendResult = runHostedProof(tmp_0, this.zcv_1, this.acw_1, tmp_1, NodeWasmProver$prove$slambda$slambda$lambda, this);
|
|
3802
3802
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3803
3803
|
return suspendResult;
|
|
3804
3804
|
}
|
|
@@ -3821,27 +3821,27 @@ protoOf(NodeWasmProver$prove$slambda$slambda).q9 = function () {
|
|
|
3821
3821
|
while (true);
|
|
3822
3822
|
};
|
|
3823
3823
|
protoOf(NodeWasmProver$prove$slambda$slambda).x1o = function ($this$async, completion) {
|
|
3824
|
-
var i = new NodeWasmProver$prove$slambda$slambda(this.
|
|
3825
|
-
i.
|
|
3824
|
+
var i = new NodeWasmProver$prove$slambda$slambda(this.ycv_1, this.zcv_1, this.acw_1, this.bcw_1, completion);
|
|
3825
|
+
i.ccw_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.fci($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.
|
|
3837
|
+
protoOf(NodeWasmProver$prove$slambda$slambda_1).ncw = function (presentation, $completion) {
|
|
3838
|
+
var tmp = this.ocw(presentation, $completion);
|
|
3839
3839
|
tmp.k9_1 = Unit_instance;
|
|
3840
3840
|
tmp.l9_1 = null;
|
|
3841
3841
|
return tmp.q9();
|
|
3842
3842
|
};
|
|
3843
3843
|
protoOf(NodeWasmProver$prove$slambda$slambda_1).da = function (p1, $completion) {
|
|
3844
|
-
return this.
|
|
3844
|
+
return this.ncw((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
|
|
3845
3845
|
};
|
|
3846
3846
|
protoOf(NodeWasmProver$prove$slambda$slambda_1).q9 = function () {
|
|
3847
3847
|
var suspendResult = this.k9_1;
|
|
@@ -3850,7 +3850,7 @@ protoOf(NodeWasmProver$prove$slambda$slambda_1).q9 = function () {
|
|
|
3850
3850
|
var tmp = this.i9_1;
|
|
3851
3851
|
if (tmp === 0) {
|
|
3852
3852
|
this.j9_1 = 1;
|
|
3853
|
-
return new Proved_1(this.
|
|
3853
|
+
return new Proved_1(this.mcw_1);
|
|
3854
3854
|
} else if (tmp === 1) {
|
|
3855
3855
|
throw this.l9_1;
|
|
3856
3856
|
}
|
|
@@ -3860,29 +3860,29 @@ protoOf(NodeWasmProver$prove$slambda$slambda_1).q9 = function () {
|
|
|
3860
3860
|
}
|
|
3861
3861
|
while (true);
|
|
3862
3862
|
};
|
|
3863
|
-
protoOf(NodeWasmProver$prove$slambda$slambda_1).
|
|
3863
|
+
protoOf(NodeWasmProver$prove$slambda$slambda_1).ocw = function (presentation, completion) {
|
|
3864
3864
|
var i = new NodeWasmProver$prove$slambda$slambda_1(completion);
|
|
3865
|
-
i.
|
|
3865
|
+
i.mcw_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.ncw(presentation, $completion);
|
|
3872
3872
|
}, 1);
|
|
3873
3873
|
}
|
|
3874
3874
|
function NodeWasmProver$prove$slambda$slambda_3($proving, resultContinuation) {
|
|
3875
|
-
this.
|
|
3875
|
+
this.xcw_1 = $proving;
|
|
3876
3876
|
CoroutineImpl.call(this, resultContinuation);
|
|
3877
3877
|
}
|
|
3878
|
-
protoOf(NodeWasmProver$prove$slambda$slambda_3).
|
|
3879
|
-
var tmp = this.
|
|
3878
|
+
protoOf(NodeWasmProver$prove$slambda$slambda_3).zcw = function (failure, $completion) {
|
|
3879
|
+
var tmp = this.acx(failure, $completion);
|
|
3880
3880
|
tmp.k9_1 = Unit_instance;
|
|
3881
3881
|
tmp.l9_1 = null;
|
|
3882
3882
|
return tmp.q9();
|
|
3883
3883
|
};
|
|
3884
3884
|
protoOf(NodeWasmProver$prove$slambda$slambda_3).da = function (p1, $completion) {
|
|
3885
|
-
return this.
|
|
3885
|
+
return this.zcw((!(p1 == null) ? isInterface(p1, ProofFailure) : false) ? p1 : THROW_CCE(), $completion);
|
|
3886
3886
|
};
|
|
3887
3887
|
protoOf(NodeWasmProver$prove$slambda$slambda_3).q9 = function () {
|
|
3888
3888
|
var suspendResult = this.k9_1;
|
|
@@ -3891,8 +3891,8 @@ protoOf(NodeWasmProver$prove$slambda$slambda_3).q9 = function () {
|
|
|
3891
3891
|
var tmp = this.i9_1;
|
|
3892
3892
|
if (tmp === 0) {
|
|
3893
3893
|
this.j9_1 = 1;
|
|
3894
|
-
this.
|
|
3895
|
-
return new Failed_1(this.
|
|
3894
|
+
this.xcw_1.ez();
|
|
3895
|
+
return new Failed_1(this.ycw_1, true);
|
|
3896
3896
|
} else if (tmp === 1) {
|
|
3897
3897
|
throw this.l9_1;
|
|
3898
3898
|
}
|
|
@@ -3902,15 +3902,15 @@ protoOf(NodeWasmProver$prove$slambda$slambda_3).q9 = 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).acx = function (failure, completion) {
|
|
3906
|
+
var i = new NodeWasmProver$prove$slambda$slambda_3(this.xcw_1, completion);
|
|
3907
|
+
i.ycw_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.zcw(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.icx_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().ubg(record.dcx_1, record.ecx_1, record.fcx_1, record.hcx_1, record.gcx_1, !record.bcx_1 || record.ccx_1 || !(record.dcx_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.kcx_1 = numberRangeToNumber(200, 299);
|
|
3942
|
+
this.lcx_1 = new Long(1000, 0);
|
|
3943
|
+
this.mcx_1 = new Long(1024, 0);
|
|
3944
3944
|
}
|
|
3945
3945
|
var Companion_instance_17;
|
|
3946
3946
|
function Companion_getInstance_17() {
|
|
@@ -3950,22 +3950,22 @@ 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.hcm_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.vcx_1 = $settings;
|
|
3959
3959
|
CoroutineImpl.call(this, resultContinuation);
|
|
3960
3960
|
}
|
|
3961
|
-
protoOf(NodeWasmProver$prove$slambda).
|
|
3961
|
+
protoOf(NodeWasmProver$prove$slambda).wcx = function ($completion) {
|
|
3962
3962
|
var tmp = this.p32($completion);
|
|
3963
3963
|
tmp.k9_1 = Unit_instance;
|
|
3964
3964
|
tmp.l9_1 = null;
|
|
3965
3965
|
return tmp.q9();
|
|
3966
3966
|
};
|
|
3967
3967
|
protoOf(NodeWasmProver$prove$slambda).ca = function ($completion) {
|
|
3968
|
-
return this.
|
|
3968
|
+
return this.wcx($completion);
|
|
3969
3969
|
};
|
|
3970
3970
|
protoOf(NodeWasmProver$prove$slambda).q9 = function () {
|
|
3971
3971
|
var suspendResult = this.k9_1;
|
|
@@ -3976,7 +3976,7 @@ protoOf(NodeWasmProver$prove$slambda).q9 = function () {
|
|
|
3976
3976
|
case 0:
|
|
3977
3977
|
this.j9_1 = 2;
|
|
3978
3978
|
this.i9_1 = 1;
|
|
3979
|
-
var tmp_0 = com_dmarket_p2p_headless_node_nodePath_idbzon.join(this.
|
|
3979
|
+
var tmp_0 = com_dmarket_p2p_headless_node_nodePath_idbzon.join(this.vcx_1.hcm_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;
|
|
@@ -4000,27 +4000,27 @@ protoOf(NodeWasmProver$prove$slambda).q9 = function () {
|
|
|
4000
4000
|
while (true);
|
|
4001
4001
|
};
|
|
4002
4002
|
protoOf(NodeWasmProver$prove$slambda).p32 = function (completion) {
|
|
4003
|
-
return new NodeWasmProver$prove$slambda(this.
|
|
4003
|
+
return new NodeWasmProver$prove$slambda(this.vcx_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.wcx($completion);
|
|
4009
4009
|
}, 0);
|
|
4010
4010
|
}
|
|
4011
4011
|
function NodeWasmProver$prove$slambda_1($record, $headers, resultContinuation) {
|
|
4012
|
-
this.
|
|
4013
|
-
this.
|
|
4012
|
+
this.fcy_1 = $record;
|
|
4013
|
+
this.gcy_1 = $headers;
|
|
4014
4014
|
CoroutineImpl.call(this, resultContinuation);
|
|
4015
4015
|
}
|
|
4016
|
-
protoOf(NodeWasmProver$prove$slambda_1).
|
|
4016
|
+
protoOf(NodeWasmProver$prove$slambda_1).wcx = function ($completion) {
|
|
4017
4017
|
var tmp = this.p32($completion);
|
|
4018
4018
|
tmp.k9_1 = Unit_instance;
|
|
4019
4019
|
tmp.l9_1 = null;
|
|
4020
4020
|
return tmp.q9();
|
|
4021
4021
|
};
|
|
4022
4022
|
protoOf(NodeWasmProver$prove$slambda_1).ca = function ($completion) {
|
|
4023
|
-
return this.
|
|
4023
|
+
return this.wcx($completion);
|
|
4024
4024
|
};
|
|
4025
4025
|
protoOf(NodeWasmProver$prove$slambda_1).q9 = function () {
|
|
4026
4026
|
var suspendResult = this.k9_1;
|
|
@@ -4030,17 +4030,17 @@ protoOf(NodeWasmProver$prove$slambda_1).q9 = function () {
|
|
|
4030
4030
|
switch (tmp) {
|
|
4031
4031
|
case 0:
|
|
4032
4032
|
this.j9_1 = 4;
|
|
4033
|
-
this.
|
|
4033
|
+
this.fcy_1.bcx_1 = true;
|
|
4034
4034
|
this.j9_1 = 2;
|
|
4035
4035
|
this.i9_1 = 1;
|
|
4036
|
-
suspendResult = this.
|
|
4036
|
+
suspendResult = this.gcy_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.
|
|
4043
|
+
this.hcy_1 = suspendResult;
|
|
4044
4044
|
this.j9_1 = 4;
|
|
4045
4045
|
this.i9_1 = 3;
|
|
4046
4046
|
continue $sm;
|
|
@@ -4056,9 +4056,9 @@ protoOf(NodeWasmProver$prove$slambda_1).q9 = function () {
|
|
|
4056
4056
|
if (tmp_2 instanceof Error) {
|
|
4057
4057
|
var e_0 = this.l9_1;
|
|
4058
4058
|
var tmp_3 = this;
|
|
4059
|
-
var tmp_4 = this.
|
|
4059
|
+
var tmp_4 = this.fcy_1;
|
|
4060
4060
|
var tmp0_elvis_lhs = e_0.message;
|
|
4061
|
-
tmp_4.
|
|
4061
|
+
tmp_4.icx_1 = tmp0_elvis_lhs == null ? 'the upgrade could not be signed' : tmp0_elvis_lhs;
|
|
4062
4062
|
throw e_0;
|
|
4063
4063
|
} else {
|
|
4064
4064
|
throw this.l9_1;
|
|
@@ -4067,8 +4067,8 @@ protoOf(NodeWasmProver$prove$slambda_1).q9 = function () {
|
|
|
4067
4067
|
|
|
4068
4068
|
case 3:
|
|
4069
4069
|
this.j9_1 = 4;
|
|
4070
|
-
var signed = this.
|
|
4071
|
-
return headerWebSocket(signed.
|
|
4070
|
+
var signed = this.hcy_1;
|
|
4071
|
+
return headerWebSocket(signed.nbg_1, this.fcy_1);
|
|
4072
4072
|
case 4:
|
|
4073
4073
|
throw this.l9_1;
|
|
4074
4074
|
}
|
|
@@ -4084,24 +4084,24 @@ protoOf(NodeWasmProver$prove$slambda_1).q9 = function () {
|
|
|
4084
4084
|
while (true);
|
|
4085
4085
|
};
|
|
4086
4086
|
protoOf(NodeWasmProver$prove$slambda_1).p32 = function (completion) {
|
|
4087
|
-
return new NodeWasmProver$prove$slambda_1(this.
|
|
4087
|
+
return new NodeWasmProver$prove$slambda_1(this.fcy_1, this.gcy_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.wcx($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.jcm_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.hcx_1 = status;
|
|
4104
|
+
var progression = Companion_getInstance_17().kcx_1;
|
|
4105
4105
|
var containsLower = progression.s1_1;
|
|
4106
4106
|
var containsUpper = progression.t1_1;
|
|
4107
4107
|
// Inline function 'kotlin.check' call
|
|
@@ -4119,21 +4119,21 @@ function NodeWasmProver$prove$lambda_2($refused) {
|
|
|
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.qcy_1 = $refused;
|
|
4123
|
+
this.rcy_1 = $proof;
|
|
4124
|
+
this.scy_1 = $config;
|
|
4125
|
+
this.tcy_1 = $host;
|
|
4126
|
+
this.ucy_1 = this$0;
|
|
4127
4127
|
CoroutineImpl.call(this, resultContinuation);
|
|
4128
4128
|
}
|
|
4129
|
-
protoOf(NodeWasmProver$prove$slambda_3).
|
|
4129
|
+
protoOf(NodeWasmProver$prove$slambda_3).wcy = function ($this$coroutineScope, $completion) {
|
|
4130
4130
|
var tmp = this.x1o($this$coroutineScope, $completion);
|
|
4131
4131
|
tmp.k9_1 = Unit_instance;
|
|
4132
4132
|
tmp.l9_1 = null;
|
|
4133
4133
|
return tmp.q9();
|
|
4134
4134
|
};
|
|
4135
4135
|
protoOf(NodeWasmProver$prove$slambda_3).da = function (p1, $completion) {
|
|
4136
|
-
return this.
|
|
4136
|
+
return this.wcy((!(p1 == null) ? isInterface(p1, CoroutineScope_0) : false) ? p1 : THROW_CCE(), $completion);
|
|
4137
4137
|
};
|
|
4138
4138
|
protoOf(NodeWasmProver$prove$slambda_3).q9 = function () {
|
|
4139
4139
|
var suspendResult = this.k9_1;
|
|
@@ -4143,11 +4143,11 @@ protoOf(NodeWasmProver$prove$slambda_3).q9 = function () {
|
|
|
4143
4143
|
switch (tmp) {
|
|
4144
4144
|
case 0:
|
|
4145
4145
|
this.j9_1 = 2;
|
|
4146
|
-
var proving = async(this.
|
|
4146
|
+
var proving = async(this.vcy_1, VOID, VOID, NodeWasmProver$prove$slambda$slambda_0(this.rcy_1, this.scy_1, this.tcy_1, this.ucy_1, null));
|
|
4147
4147
|
var $this$run = new SelectImplementation(this.o9());
|
|
4148
4148
|
var tmp_0 = proving.c13();
|
|
4149
4149
|
$this$run.m1t(tmp_0, NodeWasmProver$prove$slambda$slambda_2(null));
|
|
4150
|
-
var tmp_1 = this.
|
|
4150
|
+
var tmp_1 = this.qcy_1.c13();
|
|
4151
4151
|
$this$run.m1t(tmp_1, NodeWasmProver$prove$slambda$slambda_4(proving, null));
|
|
4152
4152
|
this.i9_1 = 1;
|
|
4153
4153
|
suspendResult = $this$run.l1t(this);
|
|
@@ -4173,14 +4173,14 @@ protoOf(NodeWasmProver$prove$slambda_3).q9 = function () {
|
|
|
4173
4173
|
while (true);
|
|
4174
4174
|
};
|
|
4175
4175
|
protoOf(NodeWasmProver$prove$slambda_3).x1o = function ($this$coroutineScope, completion) {
|
|
4176
|
-
var i = new NodeWasmProver$prove$slambda_3(this.
|
|
4177
|
-
i.
|
|
4176
|
+
var i = new NodeWasmProver$prove$slambda_3(this.qcy_1, this.rcy_1, this.scy_1, this.tcy_1, this.ucy_1, completion);
|
|
4177
|
+
i.vcy_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.wcy($this$coroutineScope, $completion);
|
|
4184
4184
|
}, 1);
|
|
4185
4185
|
}
|
|
4186
4186
|
function NodeWasmProver$classify$lambda(it) {
|
|
@@ -4191,9 +4191,9 @@ 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.fcz_1 = _this__u8e3s4;
|
|
4195
|
+
this.gcz_1 = proof;
|
|
4196
|
+
this.hcz_1 = headers;
|
|
4197
4197
|
}
|
|
4198
4198
|
protoOf($proveCOROUTINE$_0).q9 = function () {
|
|
4199
4199
|
var suspendResult = this.k9_1;
|
|
@@ -4204,34 +4204,34 @@ protoOf($proveCOROUTINE$_0).q9 = function () {
|
|
|
4204
4204
|
case 0:
|
|
4205
4205
|
this.j9_1 = 6;
|
|
4206
4206
|
installBrowserWorker();
|
|
4207
|
-
var settings = this.
|
|
4208
|
-
this.
|
|
4209
|
-
var targetConnector = nodeTcpConnector(settings.
|
|
4207
|
+
var settings = this.gcz_1.vcm_1;
|
|
4208
|
+
this.kcz_1 = new ProverSessionRecord();
|
|
4209
|
+
var targetConnector = nodeTcpConnector(settings.hcm_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.
|
|
4213
|
+
var tmp_3 = NodeWasmProver$prove$slambda_2(this.kcz_1, this.hcz_1, null);
|
|
4214
|
+
var tmp_4 = NodeWasmProver$prove$lambda_0(settings, this.kcz_1, targetConnector);
|
|
4215
|
+
tmp_0.lcz_1 = new WasmProverHost(tmp_1, tmp_2, tmp_3, tmp_4, NodeWasmProver$prove$lambda_1(this.kcz_1));
|
|
4216
|
+
this.mcz_1 = new TrackerConfig(VOID, VOID, VOID, VOID, VOID, new NotaryConfig(VOID, settings.fcm_1, VOID, VOID, VOID, VOID, settings.gcm_1, VOID, VOID, VOID, settings.icm_1));
|
|
4217
|
+
this.icz_1 = get_nodeProcess().cpuUsage();
|
|
4218
|
+
this.ncz_1 = CompletableDeferred();
|
|
4219
|
+
var tmp_5 = this.kcz_1;
|
|
4220
|
+
tmp_5.jcx_1 = NodeWasmProver$prove$lambda_2(this.ncz_1);
|
|
4221
4221
|
this.i9_1 = 1;
|
|
4222
4222
|
continue $sm;
|
|
4223
4223
|
case 1:
|
|
4224
4224
|
this.j9_1 = 4;
|
|
4225
4225
|
this.j9_1 = 3;
|
|
4226
4226
|
this.i9_1 = 2;
|
|
4227
|
-
suspendResult = coroutineScope(NodeWasmProver$prove$slambda_4(this.
|
|
4227
|
+
suspendResult = coroutineScope(NodeWasmProver$prove$slambda_4(this.ncz_1, this.gcz_1, this.mcz_1, this.lcz_1, this.fcz_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.
|
|
4234
|
+
this.jcz_1 = suspendResult;
|
|
4235
4235
|
this.j9_1 = 6;
|
|
4236
4236
|
this.i9_1 = 5;
|
|
4237
4237
|
continue $sm;
|
|
@@ -4247,7 +4247,7 @@ protoOf($proveCOROUTINE$_0).q9 = function () {
|
|
|
4247
4247
|
if (tmp_8 instanceof Error) {
|
|
4248
4248
|
var e_0 = this.l9_1;
|
|
4249
4249
|
var tmp_9 = this;
|
|
4250
|
-
tmp_9.
|
|
4250
|
+
tmp_9.jcz_1 = new Failed_1(classify(this.fcz_1, e_0, this.kcz_1));
|
|
4251
4251
|
this.j9_1 = 6;
|
|
4252
4252
|
this.i9_1 = 5;
|
|
4253
4253
|
continue $sm;
|
|
@@ -4259,12 +4259,12 @@ protoOf($proveCOROUTINE$_0).q9 = function () {
|
|
|
4259
4259
|
case 4:
|
|
4260
4260
|
this.j9_1 = 6;
|
|
4261
4261
|
var t = this.l9_1;
|
|
4262
|
-
printStats(this.
|
|
4262
|
+
printStats(this.fcz_1, this.icz_1);
|
|
4263
4263
|
throw t;
|
|
4264
4264
|
case 5:
|
|
4265
|
-
var tmp_10 = this.
|
|
4265
|
+
var tmp_10 = this.jcz_1;
|
|
4266
4266
|
this.j9_1 = 6;
|
|
4267
|
-
printStats(this.
|
|
4267
|
+
printStats(this.fcz_1, this.icz_1);
|
|
4268
4268
|
return tmp_10;
|
|
4269
4269
|
case 6:
|
|
4270
4270
|
throw this.l9_1;
|
|
@@ -4282,9 +4282,9 @@ protoOf($proveCOROUTINE$_0).q9 = function () {
|
|
|
4282
4282
|
};
|
|
4283
4283
|
function NodeWasmProver(clock) {
|
|
4284
4284
|
Companion_getInstance_17();
|
|
4285
|
-
this.
|
|
4285
|
+
this.dcw_1 = clock;
|
|
4286
4286
|
}
|
|
4287
|
-
protoOf(NodeWasmProver).
|
|
4287
|
+
protoOf(NodeWasmProver).ocz = function (proof, headers, $completion) {
|
|
4288
4288
|
var tmp = new $proveCOROUTINE$_0(this, proof, headers, $completion);
|
|
4289
4289
|
tmp.k9_1 = Unit_instance;
|
|
4290
4290
|
tmp.l9_1 = null;
|
|
@@ -4302,7 +4302,7 @@ function compileWasm(path, $completion) {
|
|
|
4302
4302
|
}
|
|
4303
4303
|
function $compileWasmCOROUTINE$(path, resultContinuation) {
|
|
4304
4304
|
CoroutineImpl.call(this, resultContinuation);
|
|
4305
|
-
this.
|
|
4305
|
+
this.xcz_1 = path;
|
|
4306
4306
|
}
|
|
4307
4307
|
protoOf($compileWasmCOROUTINE$).q9 = function () {
|
|
4308
4308
|
var suspendResult = this.k9_1;
|
|
@@ -4313,7 +4313,7 @@ protoOf($compileWasmCOROUTINE$).q9 = function () {
|
|
|
4313
4313
|
case 0:
|
|
4314
4314
|
this.j9_1 = 3;
|
|
4315
4315
|
this.i9_1 = 1;
|
|
4316
|
-
var this_0 = com_dmarket_p2p_headless_node_nodeFs_vfkcsf.promises.readFile(this.
|
|
4316
|
+
var this_0 = com_dmarket_p2p_headless_node_nodeFs_vfkcsf.promises.readFile(this.xcz_1);
|
|
4317
4317
|
suspendResult = await_0(this_0, this);
|
|
4318
4318
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4319
4319
|
return suspendResult;
|
|
@@ -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.bcx_1 = null;
|
|
4394
|
-
this.ccx_1 = null;
|
|
4391
|
+
this.bcx_1 = false;
|
|
4392
|
+
this.ccx_1 = false;
|
|
4395
4393
|
this.dcx_1 = null;
|
|
4396
4394
|
this.ecx_1 = null;
|
|
4397
4395
|
this.fcx_1 = null;
|
|
4398
4396
|
this.gcx_1 = null;
|
|
4399
4397
|
this.hcx_1 = null;
|
|
4398
|
+
this.icx_1 = null;
|
|
4399
|
+
this.jcx_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.ccx_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;
|
|
@@ -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.dcx_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.ccx_1) {
|
|
4523
|
+
$record.ecx_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.fcx_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.jcx_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.fcx_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.gcx_1 == null) {
|
|
4558
4558
|
var tmp_0 = $record;
|
|
4559
|
-
tmp_0.
|
|
4559
|
+
tmp_0.gcx_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.ycz_1 = presentation;
|
|
4575
4575
|
}
|
|
4576
4576
|
protoOf(Proved_1).toString = function () {
|
|
4577
|
-
return 'Proved(presentation=' + this.
|
|
4577
|
+
return 'Proved(presentation=' + this.ycz_1 + ')';
|
|
4578
4578
|
};
|
|
4579
4579
|
protoOf(Proved_1).hashCode = function () {
|
|
4580
|
-
return getStringHashCode(this.
|
|
4580
|
+
return getStringHashCode(this.ycz_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.ycz_1 === other.ycz_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.zcz_1 = failure;
|
|
4594
|
+
this.ad0_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.zcz_1) + ', exitAfter=' + this.ad0_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.zcz_1);
|
|
4601
|
+
result = imul(result, 31) + getBooleanHashCode(this.ad0_1) | 0;
|
|
4602
4602
|
return result;
|
|
4603
4603
|
};
|
|
4604
4604
|
protoOf(Failed_1).equals = function (other) {
|
|
@@ -4606,9 +4606,9 @@ 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.zcz_1, other.zcz_1))
|
|
4610
4610
|
return false;
|
|
4611
|
-
if (!(this.
|
|
4611
|
+
if (!(this.ad0_1 === other.ad0_1))
|
|
4612
4612
|
return false;
|
|
4613
4613
|
return true;
|
|
4614
4614
|
};
|
|
@@ -4662,18 +4662,18 @@ function markFirstToKill() {
|
|
|
4662
4662
|
}
|
|
4663
4663
|
}
|
|
4664
4664
|
function runProverChild$lambda$slambda$slambda($waiting, $message, resultContinuation) {
|
|
4665
|
-
this.
|
|
4666
|
-
this.
|
|
4665
|
+
this.jd0_1 = $waiting;
|
|
4666
|
+
this.kd0_1 = $message;
|
|
4667
4667
|
CoroutineImpl.call(this, resultContinuation);
|
|
4668
4668
|
}
|
|
4669
|
-
protoOf(runProverChild$lambda$slambda$slambda).
|
|
4669
|
+
protoOf(runProverChild$lambda$slambda$slambda).ld0 = function ($completion) {
|
|
4670
4670
|
var tmp = this.p32($completion);
|
|
4671
4671
|
tmp.k9_1 = Unit_instance;
|
|
4672
4672
|
tmp.l9_1 = null;
|
|
4673
4673
|
return tmp.q9();
|
|
4674
4674
|
};
|
|
4675
4675
|
protoOf(runProverChild$lambda$slambda$slambda).ca = function ($completion) {
|
|
4676
|
-
return this.
|
|
4676
|
+
return this.ld0($completion);
|
|
4677
4677
|
};
|
|
4678
4678
|
protoOf(runProverChild$lambda$slambda$slambda).q9 = function () {
|
|
4679
4679
|
var suspendResult = this.k9_1;
|
|
@@ -4684,10 +4684,10 @@ protoOf(runProverChild$lambda$slambda$slambda).q9 = function () {
|
|
|
4684
4684
|
case 0:
|
|
4685
4685
|
this.j9_1 = 2;
|
|
4686
4686
|
var reply = CompletableDeferred();
|
|
4687
|
-
var tmp0 = this.
|
|
4688
|
-
var key = this.
|
|
4687
|
+
var tmp0 = this.jd0_1;
|
|
4688
|
+
var key = this.kd0_1.rcm_1;
|
|
4689
4689
|
tmp0.a3(key, reply);
|
|
4690
|
-
send(ProverIpc_getInstance().
|
|
4690
|
+
send(ProverIpc_getInstance().mcm(new HeadersWanted(this.kd0_1.rcm_1)));
|
|
4691
4691
|
this.i9_1 = 1;
|
|
4692
4692
|
suspendResult = reply.b13(this);
|
|
4693
4693
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -4697,10 +4697,10 @@ protoOf(runProverChild$lambda$slambda$slambda).q9 = 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.acn_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.bcn_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 {
|
|
@@ -4723,12 +4723,12 @@ protoOf(runProverChild$lambda$slambda$slambda).q9 = function () {
|
|
|
4723
4723
|
while (true);
|
|
4724
4724
|
};
|
|
4725
4725
|
protoOf(runProverChild$lambda$slambda$slambda).p32 = function (completion) {
|
|
4726
|
-
return new runProverChild$lambda$slambda$slambda(this.
|
|
4726
|
+
return new runProverChild$lambda$slambda$slambda(this.jd0_1, this.kd0_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.ld0($completion);
|
|
4732
4732
|
}, 0);
|
|
4733
4733
|
}
|
|
4734
4734
|
function runProverChild$lambda$slambda$lambda($process) {
|
|
@@ -4737,10 +4737,10 @@ 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.ud0_1 = $prover;
|
|
4741
|
+
this.vd0_1 = $message;
|
|
4742
|
+
this.wd0_1 = $waiting;
|
|
4743
|
+
this.xd0_1 = $process;
|
|
4744
4744
|
CoroutineImpl.call(this, resultContinuation);
|
|
4745
4745
|
}
|
|
4746
4746
|
protoOf(runProverChild$lambda$slambda).w1o = function ($this$launch, $completion) {
|
|
@@ -4760,17 +4760,17 @@ protoOf(runProverChild$lambda$slambda).q9 = function () {
|
|
|
4760
4760
|
switch (tmp) {
|
|
4761
4761
|
case 0:
|
|
4762
4762
|
this.j9_1 = 4;
|
|
4763
|
-
var headers = runProverChild$lambda$slambda$slambda_0(this.
|
|
4763
|
+
var headers = runProverChild$lambda$slambda$slambda_0(this.wd0_1, this.vd0_1, null);
|
|
4764
4764
|
this.j9_1 = 2;
|
|
4765
4765
|
this.i9_1 = 1;
|
|
4766
|
-
suspendResult = this.
|
|
4766
|
+
suspendResult = this.ud0_1.ocz(this.vd0_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.
|
|
4773
|
+
this.zd0_1 = suspendResult;
|
|
4774
4774
|
this.j9_1 = 4;
|
|
4775
4775
|
this.i9_1 = 3;
|
|
4776
4776
|
continue $sm;
|
|
@@ -4782,7 +4782,7 @@ protoOf(runProverChild$lambda$slambda).q9 = function () {
|
|
|
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.
|
|
4785
|
+
tmp_1.zd0_1 = new Failed_1(new Other(tmp1_elvis_lhs == null ? 'the prover failed' : tmp1_elvis_lhs));
|
|
4786
4786
|
this.i9_1 = 3;
|
|
4787
4787
|
continue $sm;
|
|
4788
4788
|
} else {
|
|
@@ -4791,30 +4791,30 @@ protoOf(runProverChild$lambda$slambda).q9 = function () {
|
|
|
4791
4791
|
|
|
4792
4792
|
case 3:
|
|
4793
4793
|
this.j9_1 = 4;
|
|
4794
|
-
var result = this.
|
|
4794
|
+
var result = this.zd0_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.vd0_1.rcm_1, result.ycz_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.vd0_1.rcm_1, result.zcz_1);
|
|
4802
4802
|
} else {
|
|
4803
4803
|
noWhenBranchMatchedException();
|
|
4804
4804
|
}
|
|
4805
4805
|
}
|
|
4806
4806
|
|
|
4807
|
-
send(tmp_2.
|
|
4807
|
+
send(tmp_2.mcm(tmp_3));
|
|
4808
4808
|
var tmp_4;
|
|
4809
4809
|
if (result instanceof Failed_1) {
|
|
4810
|
-
tmp_4 = result.
|
|
4810
|
+
tmp_4 = result.ad0_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.xd0_1), 200);
|
|
4818
4818
|
}
|
|
4819
4819
|
|
|
4820
4820
|
return Unit_instance;
|
|
@@ -4833,8 +4833,8 @@ protoOf(runProverChild$lambda$slambda).q9 = function () {
|
|
|
4833
4833
|
while (true);
|
|
4834
4834
|
};
|
|
4835
4835
|
protoOf(runProverChild$lambda$slambda).x1o = function ($this$launch, completion) {
|
|
4836
|
-
var i = new runProverChild$lambda$slambda(this.
|
|
4837
|
-
i.
|
|
4836
|
+
var i = new runProverChild$lambda$slambda(this.ud0_1, this.vd0_1, this.wd0_1, this.xd0_1, completion);
|
|
4837
|
+
i.yd0_1 = $this$launch;
|
|
4838
4838
|
return i;
|
|
4839
4839
|
};
|
|
4840
4840
|
function runProverChild$lambda$slambda_0($prover, $message, $waiting, $process, resultContinuation) {
|
|
@@ -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.ncm(raw);
|
|
4859
4859
|
tmp_0 = _Result___init__impl__xyqfz8(value);
|
|
4860
4860
|
} catch ($p) {
|
|
4861
4861
|
var tmp_2;
|
|
@@ -4872,7 +4872,7 @@ 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.b3(message.
|
|
4875
|
+
var tmp0_safe_receiver = $waiting.b3(message.zcm_1);
|
|
4876
4876
|
if (tmp0_safe_receiver == null)
|
|
4877
4877
|
null;
|
|
4878
4878
|
else
|