@dmarket/p2p-tracker-headless 1.3.1-SNAPSHOT-development.232 → 1.3.1-SNAPSHOT-development.247
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/VERSION +5 -5
- package/dmarket-p2p-tracker-core-domain.mjs +166 -161
- package/dmarket-p2p-tracker-core-domain.mjs.map +1 -1
- package/kotlin-kotlin-stdlib.mjs +16 -16
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlinx-coroutines-core.mjs +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +164 -164
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
- package/ktor-ktor-http.mjs +10 -10
- package/ktor-ktor-utils.mjs +9 -9
- package/p2p-tracker-core.mjs +8564 -8174
- package/p2p-tracker-core.mjs.map +1 -1
- package/p2p-tracker-headless.mjs +791 -791
- package/package.json +1 -1
package/p2p-tracker-headless.mjs
CHANGED
|
@@ -300,44 +300,44 @@ function redacted($this, $receiver) {
|
|
|
300
300
|
tmp = $receiver;
|
|
301
301
|
} else {
|
|
302
302
|
if ($receiver instanceof SessionClosed) {
|
|
303
|
-
var tmp1_safe_receiver = $receiver.
|
|
303
|
+
var tmp1_safe_receiver = $receiver.jc5_1;
|
|
304
304
|
var tmp_0;
|
|
305
305
|
if (tmp1_safe_receiver == null) {
|
|
306
306
|
tmp_0 = null;
|
|
307
307
|
} else {
|
|
308
308
|
// Inline function 'kotlin.let' call
|
|
309
|
-
tmp_0 = ProverOutput_getInstance().
|
|
309
|
+
tmp_0 = ProverOutput_getInstance().n7i(tmp1_safe_receiver);
|
|
310
310
|
}
|
|
311
|
-
tmp = $receiver.
|
|
311
|
+
tmp = $receiver.lc6(VOID, tmp_0);
|
|
312
312
|
} else {
|
|
313
313
|
if ($receiver instanceof NotaryUnreachable) {
|
|
314
|
-
tmp = $receiver.
|
|
314
|
+
tmp = $receiver.mc6(ProverOutput_getInstance().n7i($receiver.mc5_1));
|
|
315
315
|
} else {
|
|
316
316
|
if ($receiver instanceof VersionMismatch) {
|
|
317
|
-
tmp = $receiver.
|
|
317
|
+
tmp = $receiver.mc6(ProverOutput_getInstance().n7i($receiver.pc5_1));
|
|
318
318
|
} else {
|
|
319
319
|
if ($receiver instanceof SteamFailed) {
|
|
320
|
-
tmp = $receiver.
|
|
320
|
+
tmp = $receiver.oc6(VOID, ProverOutput_getInstance().n7i($receiver.tc5_1));
|
|
321
321
|
} else {
|
|
322
322
|
if ($receiver instanceof LimitsExceeded) {
|
|
323
|
-
tmp = $receiver.
|
|
323
|
+
tmp = $receiver.mc6(ProverOutput_getInstance().n7i($receiver.wc5_1));
|
|
324
324
|
} else {
|
|
325
325
|
if ($receiver instanceof ProverKilled) {
|
|
326
|
-
var tmp2_safe_receiver = $receiver.
|
|
326
|
+
var tmp2_safe_receiver = $receiver.cc6_1;
|
|
327
327
|
var tmp_1;
|
|
328
328
|
if (tmp2_safe_receiver == null) {
|
|
329
329
|
tmp_1 = null;
|
|
330
330
|
} else {
|
|
331
331
|
// Inline function 'kotlin.let' call
|
|
332
|
-
tmp_1 = ProverOutput_getInstance().
|
|
332
|
+
tmp_1 = ProverOutput_getInstance().n7i(tmp2_safe_receiver);
|
|
333
333
|
}
|
|
334
|
-
tmp = $receiver.
|
|
334
|
+
tmp = $receiver.tc6(VOID, tmp_1);
|
|
335
335
|
} else {
|
|
336
336
|
if ($receiver instanceof NotStarted) {
|
|
337
|
-
tmp = $receiver.
|
|
337
|
+
tmp = $receiver.mc6(ProverOutput_getInstance().n7i($receiver.fc6_1));
|
|
338
338
|
} else {
|
|
339
339
|
if ($receiver instanceof Other) {
|
|
340
|
-
tmp = $receiver.
|
|
340
|
+
tmp = $receiver.mc6(ProverOutput_getInstance().n7i($receiver.ic6_1));
|
|
341
341
|
} else {
|
|
342
342
|
noWhenBranchMatchedException();
|
|
343
343
|
}
|
|
@@ -359,13 +359,13 @@ function ProofOutcomeJson$json$lambda($this$Json) {
|
|
|
359
359
|
function ProofOutcomeJson() {
|
|
360
360
|
ProofOutcomeJson_instance = this;
|
|
361
361
|
var tmp = this;
|
|
362
|
-
tmp.
|
|
362
|
+
tmp.ede_1 = Json(VOID, ProofOutcomeJson$json$lambda);
|
|
363
363
|
}
|
|
364
|
-
protoOf(ProofOutcomeJson).
|
|
365
|
-
var fields = get_jsonObject(this.
|
|
366
|
-
return (new JsonObject(plus(fields, to('summary', JsonPrimitive(ProverOutput_getInstance().
|
|
364
|
+
protoOf(ProofOutcomeJson).fde = function (failure) {
|
|
365
|
+
var fields = get_jsonObject(this.ede_1.s54(Companion_instance_0.f57(), redacted(this, failure)));
|
|
366
|
+
return (new JsonObject(plus(fields, to('summary', JsonPrimitive(ProverOutput_getInstance().n7i(failure.jc6())))))).toString();
|
|
367
367
|
};
|
|
368
|
-
protoOf(ProofOutcomeJson).
|
|
368
|
+
protoOf(ProofOutcomeJson).gde = function (message, warning, fields) {
|
|
369
369
|
var head = listOf([to('msg', JsonPrimitive(message)), to('level', JsonPrimitive(warning ? 'warn' : 'info'))]);
|
|
370
370
|
// Inline function 'kotlin.collections.map' call
|
|
371
371
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -396,7 +396,7 @@ function ProofOutcomeJson_getInstance() {
|
|
|
396
396
|
return ProofOutcomeJson_instance;
|
|
397
397
|
}
|
|
398
398
|
function backoff($this, consecutive) {
|
|
399
|
-
var wait = $this.
|
|
399
|
+
var wait = $this.nde_1;
|
|
400
400
|
// Inline function 'kotlin.repeat' call
|
|
401
401
|
var times = coerceIn(consecutive, 0, 10);
|
|
402
402
|
var inductionVariable = 0;
|
|
@@ -407,39 +407,39 @@ function backoff($this, consecutive) {
|
|
|
407
407
|
wait = Duration__times_impl_sfuzvp(wait, 2);
|
|
408
408
|
}
|
|
409
409
|
while (inductionVariable < times);
|
|
410
|
-
return minOf(new Duration(wait), new Duration($this.
|
|
410
|
+
return minOf(new Duration(wait), new Duration($this.ode_1)).pf_1;
|
|
411
411
|
}
|
|
412
412
|
function Companion() {
|
|
413
413
|
Companion_instance_3 = this;
|
|
414
|
-
this.
|
|
415
|
-
this.
|
|
416
|
-
this.
|
|
417
|
-
this.
|
|
418
|
-
this.
|
|
419
|
-
this.
|
|
414
|
+
this.hde_1 = 401;
|
|
415
|
+
this.ide_1 = 403;
|
|
416
|
+
this.jde_1 = numberRangeToNumber(500, 599);
|
|
417
|
+
this.kde_1 = 1013;
|
|
418
|
+
this.lde_1 = 4029;
|
|
419
|
+
this.mde_1 = 10;
|
|
420
420
|
var tmp = this;
|
|
421
421
|
// Inline function 'kotlin.time.Companion.seconds' call
|
|
422
422
|
Companion_getInstance();
|
|
423
|
-
tmp.
|
|
423
|
+
tmp.nde_1 = toDuration(30, DurationUnit_SECONDS_getInstance());
|
|
424
424
|
var tmp_0 = this;
|
|
425
425
|
// Inline function 'kotlin.time.Companion.minutes' call
|
|
426
426
|
Companion_getInstance();
|
|
427
|
-
tmp_0.
|
|
427
|
+
tmp_0.ode_1 = toDuration(5, DurationUnit_MINUTES_getInstance());
|
|
428
428
|
var tmp_1 = this;
|
|
429
429
|
// Inline function 'kotlin.time.Companion.seconds' call
|
|
430
430
|
Companion_getInstance();
|
|
431
|
-
tmp_1.
|
|
431
|
+
tmp_1.pde_1 = toDuration(60, DurationUnit_SECONDS_getInstance());
|
|
432
432
|
}
|
|
433
|
-
protoOf(Companion).
|
|
433
|
+
protoOf(Companion).qde = function (failure, consecutive) {
|
|
434
434
|
var tmp;
|
|
435
435
|
if (failure instanceof UpgradeRefused) {
|
|
436
|
-
var tmp1_subject = failure.
|
|
436
|
+
var tmp1_subject = failure.fc5_1;
|
|
437
437
|
var tmp_0;
|
|
438
438
|
var tmp_1;
|
|
439
439
|
if (tmp1_subject === 401) {
|
|
440
440
|
tmp_1 = true;
|
|
441
441
|
} else {
|
|
442
|
-
var progression = this.
|
|
442
|
+
var progression = this.jde_1;
|
|
443
443
|
var containsLower = progression.s1_1;
|
|
444
444
|
tmp_1 = tmp1_subject <= progression.t1_1 ? containsLower <= tmp1_subject : false;
|
|
445
445
|
}
|
|
@@ -447,7 +447,7 @@ protoOf(Companion).vdc = function (failure, consecutive) {
|
|
|
447
447
|
tmp_0 = backoff(this, consecutive);
|
|
448
448
|
} else {
|
|
449
449
|
if (tmp1_subject === 403) {
|
|
450
|
-
tmp_0 = this.
|
|
450
|
+
tmp_0 = this.pde_1;
|
|
451
451
|
} else {
|
|
452
452
|
tmp_0 = null;
|
|
453
453
|
}
|
|
@@ -455,12 +455,12 @@ protoOf(Companion).vdc = function (failure, consecutive) {
|
|
|
455
455
|
tmp = tmp_0;
|
|
456
456
|
} else {
|
|
457
457
|
if (failure instanceof SessionClosed) {
|
|
458
|
-
switch (failure.
|
|
458
|
+
switch (failure.ic5_1) {
|
|
459
459
|
case 1013:
|
|
460
460
|
tmp = backoff(this, consecutive);
|
|
461
461
|
break;
|
|
462
462
|
case 4029:
|
|
463
|
-
tmp = this.
|
|
463
|
+
tmp = this.pde_1;
|
|
464
464
|
break;
|
|
465
465
|
default:
|
|
466
466
|
tmp = null;
|
|
@@ -488,12 +488,12 @@ function Companion_getInstance_2() {
|
|
|
488
488
|
}
|
|
489
489
|
function ProverBackoff() {
|
|
490
490
|
Companion_getInstance_2();
|
|
491
|
-
this.
|
|
492
|
-
this.
|
|
493
|
-
this.
|
|
491
|
+
this.rde_1 = null;
|
|
492
|
+
this.sde_1 = 0;
|
|
493
|
+
this.tde_1 = null;
|
|
494
494
|
}
|
|
495
|
-
protoOf(ProverBackoff).
|
|
496
|
-
var tmp0_elvis_lhs = this.
|
|
495
|
+
protoOf(ProverBackoff).ude = function (now) {
|
|
496
|
+
var tmp0_elvis_lhs = this.rde_1;
|
|
497
497
|
var tmp;
|
|
498
498
|
if (tmp0_elvis_lhs == null) {
|
|
499
499
|
return null;
|
|
@@ -503,7 +503,7 @@ protoOf(ProverBackoff).zdc = function (now) {
|
|
|
503
503
|
var until = tmp;
|
|
504
504
|
if (now.yq(until) >= 0)
|
|
505
505
|
return null;
|
|
506
|
-
var tmp1_elvis_lhs = this.
|
|
506
|
+
var tmp1_elvis_lhs = this.tde_1;
|
|
507
507
|
var after = tmp1_elvis_lhs == null ? 'a refusal' : tmp1_elvis_lhs;
|
|
508
508
|
var tmp_0;
|
|
509
509
|
if (until.equals(Companion_getInstance_0().rq())) {
|
|
@@ -513,8 +513,8 @@ protoOf(ProverBackoff).zdc = function (now) {
|
|
|
513
513
|
}
|
|
514
514
|
return tmp_0;
|
|
515
515
|
};
|
|
516
|
-
protoOf(ProverBackoff).
|
|
517
|
-
var tmp0_elvis_lhs = Companion_getInstance_2().
|
|
516
|
+
protoOf(ProverBackoff).vde = function (failure, now) {
|
|
517
|
+
var tmp0_elvis_lhs = Companion_getInstance_2().qde(failure, this.sde_1);
|
|
518
518
|
var tmp;
|
|
519
519
|
var tmp_0 = tmp0_elvis_lhs;
|
|
520
520
|
if ((tmp_0 == null ? null : new Duration(tmp_0)) == null) {
|
|
@@ -523,24 +523,24 @@ protoOf(ProverBackoff).add = function (failure, now) {
|
|
|
523
523
|
tmp = tmp0_elvis_lhs;
|
|
524
524
|
}
|
|
525
525
|
var wait = tmp;
|
|
526
|
-
this.
|
|
527
|
-
this.
|
|
528
|
-
this.
|
|
529
|
-
};
|
|
530
|
-
protoOf(ProverBackoff).
|
|
531
|
-
this.
|
|
532
|
-
this.
|
|
533
|
-
this.
|
|
534
|
-
};
|
|
535
|
-
protoOf(ProverBackoff).
|
|
536
|
-
if (!equals(this.
|
|
537
|
-
this.
|
|
526
|
+
this.sde_1 = this.sde_1 + 1 | 0;
|
|
527
|
+
this.tde_1 = failure.jc6();
|
|
528
|
+
this.rde_1 = equals(wait, Companion_getInstance().rf_1) ? Companion_getInstance_0().rq() : now.vq(wait);
|
|
529
|
+
};
|
|
530
|
+
protoOf(ProverBackoff).wde = function () {
|
|
531
|
+
this.rde_1 = null;
|
|
532
|
+
this.sde_1 = 0;
|
|
533
|
+
this.tde_1 = null;
|
|
534
|
+
};
|
|
535
|
+
protoOf(ProverBackoff).xde = function () {
|
|
536
|
+
if (!equals(this.rde_1, Companion_getInstance_0().rq())) {
|
|
537
|
+
this.wde();
|
|
538
538
|
}
|
|
539
539
|
};
|
|
540
540
|
function Companion_0() {
|
|
541
|
-
this.
|
|
542
|
-
this.
|
|
543
|
-
this.
|
|
541
|
+
this.yde_1 = 2;
|
|
542
|
+
this.zde_1 = 16;
|
|
543
|
+
this.adf_1 = 5;
|
|
544
544
|
}
|
|
545
545
|
var Companion_instance_4;
|
|
546
546
|
function Companion_getInstance_3() {
|
|
@@ -549,40 +549,40 @@ function Companion_getInstance_3() {
|
|
|
549
549
|
function $serializer() {
|
|
550
550
|
$serializer_instance = this;
|
|
551
551
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.dmarket.p2p.headless.prover.ProverSettings', this, 7);
|
|
552
|
-
tmp0_serialDesc.
|
|
553
|
-
tmp0_serialDesc.
|
|
554
|
-
tmp0_serialDesc.
|
|
555
|
-
tmp0_serialDesc.
|
|
556
|
-
tmp0_serialDesc.
|
|
557
|
-
tmp0_serialDesc.
|
|
558
|
-
tmp0_serialDesc.
|
|
559
|
-
this.
|
|
560
|
-
}
|
|
561
|
-
protoOf($serializer).
|
|
562
|
-
var tmp0_desc = this.
|
|
552
|
+
tmp0_serialDesc.x2k('notaryUrl', false);
|
|
553
|
+
tmp0_serialDesc.x2k('threadCount', false);
|
|
554
|
+
tmp0_serialDesc.x2k('assetsDir', false);
|
|
555
|
+
tmp0_serialDesc.x2k('rootStorePem', true);
|
|
556
|
+
tmp0_serialDesc.x2k('targetAddress', true);
|
|
557
|
+
tmp0_serialDesc.x2k('mode', true);
|
|
558
|
+
tmp0_serialDesc.x2k('transport', true);
|
|
559
|
+
this.bdf_1 = tmp0_serialDesc;
|
|
560
|
+
}
|
|
561
|
+
protoOf($serializer).cdf = function (encoder, value) {
|
|
562
|
+
var tmp0_desc = this.bdf_1;
|
|
563
563
|
var tmp1_output = encoder.j2d(tmp0_desc);
|
|
564
|
-
tmp1_output.y2e(tmp0_desc, 0, value.
|
|
565
|
-
tmp1_output.t2e(tmp0_desc, 1, value.
|
|
566
|
-
tmp1_output.y2e(tmp0_desc, 2, value.
|
|
567
|
-
if (tmp1_output.g2f(tmp0_desc, 3) ? true : !(value.
|
|
568
|
-
tmp1_output.c2f(tmp0_desc, 3, StringSerializer_getInstance(), value.
|
|
564
|
+
tmp1_output.y2e(tmp0_desc, 0, value.ddf_1);
|
|
565
|
+
tmp1_output.t2e(tmp0_desc, 1, value.edf_1);
|
|
566
|
+
tmp1_output.y2e(tmp0_desc, 2, value.fdf_1);
|
|
567
|
+
if (tmp1_output.g2f(tmp0_desc, 3) ? true : !(value.gdf_1 == null)) {
|
|
568
|
+
tmp1_output.c2f(tmp0_desc, 3, StringSerializer_getInstance(), value.gdf_1);
|
|
569
569
|
}
|
|
570
|
-
if (tmp1_output.g2f(tmp0_desc, 4) ? true : !(value.
|
|
571
|
-
tmp1_output.c2f(tmp0_desc, 4, StringSerializer_getInstance(), value.
|
|
570
|
+
if (tmp1_output.g2f(tmp0_desc, 4) ? true : !(value.hdf_1 == null)) {
|
|
571
|
+
tmp1_output.c2f(tmp0_desc, 4, StringSerializer_getInstance(), value.hdf_1);
|
|
572
572
|
}
|
|
573
|
-
if (tmp1_output.g2f(tmp0_desc, 5) ? true : !value.
|
|
574
|
-
tmp1_output.a2f(tmp0_desc, 5, Serializer_getInstance(), value.
|
|
573
|
+
if (tmp1_output.g2f(tmp0_desc, 5) ? true : !value.idf_1.equals(IssuanceMode_MPC_getInstance())) {
|
|
574
|
+
tmp1_output.a2f(tmp0_desc, 5, Serializer_getInstance(), value.idf_1);
|
|
575
575
|
}
|
|
576
|
-
if (tmp1_output.g2f(tmp0_desc, 6) ? true : !(value.
|
|
577
|
-
tmp1_output.y2e(tmp0_desc, 6, value.
|
|
576
|
+
if (tmp1_output.g2f(tmp0_desc, 6) ? true : !(value.jdf_1 === 'direct')) {
|
|
577
|
+
tmp1_output.y2e(tmp0_desc, 6, value.jdf_1);
|
|
578
578
|
}
|
|
579
579
|
tmp1_output.k2d(tmp0_desc);
|
|
580
580
|
};
|
|
581
581
|
protoOf($serializer).b2a = function (encoder, value) {
|
|
582
|
-
return this.
|
|
582
|
+
return this.cdf(encoder, value instanceof ProverSettings ? value : THROW_CCE());
|
|
583
583
|
};
|
|
584
584
|
protoOf($serializer).c2a = function (decoder) {
|
|
585
|
-
var tmp0_desc = this.
|
|
585
|
+
var tmp0_desc = this.bdf_1;
|
|
586
586
|
var tmp1_flag = true;
|
|
587
587
|
var tmp2_index = 0;
|
|
588
588
|
var tmp3_bitMask0 = 0;
|
|
@@ -652,7 +652,7 @@ protoOf($serializer).c2a = function (decoder) {
|
|
|
652
652
|
return ProverSettings_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null);
|
|
653
653
|
};
|
|
654
654
|
protoOf($serializer).a2a = function () {
|
|
655
|
-
return this.
|
|
655
|
+
return this.bdf_1;
|
|
656
656
|
};
|
|
657
657
|
protoOf($serializer).q2l = function () {
|
|
658
658
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -668,39 +668,39 @@ function $serializer_getInstance_0() {
|
|
|
668
668
|
}
|
|
669
669
|
function ProverSettings_init_$Init$(seen0, notaryUrl, threadCount, assetsDir, rootStorePem, targetAddress, mode, transport, serializationConstructorMarker, $this) {
|
|
670
670
|
if (!(7 === (7 & seen0))) {
|
|
671
|
-
throwMissingFieldException(seen0, 7, $serializer_getInstance_0().
|
|
671
|
+
throwMissingFieldException(seen0, 7, $serializer_getInstance_0().bdf_1);
|
|
672
672
|
}
|
|
673
|
-
$this.
|
|
674
|
-
$this.
|
|
675
|
-
$this.
|
|
673
|
+
$this.ddf_1 = notaryUrl;
|
|
674
|
+
$this.edf_1 = threadCount;
|
|
675
|
+
$this.fdf_1 = assetsDir;
|
|
676
676
|
if (0 === (seen0 & 8))
|
|
677
|
-
$this.
|
|
677
|
+
$this.gdf_1 = null;
|
|
678
678
|
else
|
|
679
|
-
$this.
|
|
679
|
+
$this.gdf_1 = rootStorePem;
|
|
680
680
|
if (0 === (seen0 & 16))
|
|
681
|
-
$this.
|
|
681
|
+
$this.hdf_1 = null;
|
|
682
682
|
else
|
|
683
|
-
$this.
|
|
683
|
+
$this.hdf_1 = targetAddress;
|
|
684
684
|
if (0 === (seen0 & 32))
|
|
685
|
-
$this.
|
|
685
|
+
$this.idf_1 = IssuanceMode_MPC_getInstance();
|
|
686
686
|
else
|
|
687
|
-
$this.
|
|
687
|
+
$this.idf_1 = mode;
|
|
688
688
|
if (0 === (seen0 & 64))
|
|
689
|
-
$this.
|
|
689
|
+
$this.jdf_1 = 'direct';
|
|
690
690
|
else
|
|
691
|
-
$this.
|
|
691
|
+
$this.jdf_1 = transport;
|
|
692
692
|
// Inline function 'kotlin.require' call
|
|
693
|
-
if (!($this.
|
|
693
|
+
if (!($this.jdf_1 === 'direct' || $this.jdf_1 === 'egress')) {
|
|
694
694
|
var message = 'prover.transport must be direct or egress';
|
|
695
695
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
696
696
|
}
|
|
697
697
|
// Inline function 'kotlin.require' call
|
|
698
|
-
if (!(!($this.
|
|
698
|
+
if (!(!($this.jdf_1 === 'egress') || $this.idf_1.equals(IssuanceMode_PROXY_getInstance()))) {
|
|
699
699
|
var message_0 = 'prover.transport egress requires mode proxy';
|
|
700
700
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
701
701
|
}
|
|
702
702
|
// Inline function 'kotlin.require' call
|
|
703
|
-
if (!(!$this.
|
|
703
|
+
if (!(!$this.idf_1.equals(IssuanceMode_PROXY_getInstance()) || $this.hdf_1 == null)) {
|
|
704
704
|
var message_1 = 'proxy target routing belongs to the notary; omit targetAddress';
|
|
705
705
|
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
706
706
|
}
|
|
@@ -714,40 +714,40 @@ function ProverSettings(notaryUrl, threadCount, assetsDir, rootStorePem, targetA
|
|
|
714
714
|
targetAddress = targetAddress === VOID ? null : targetAddress;
|
|
715
715
|
mode = mode === VOID ? IssuanceMode_MPC_getInstance() : mode;
|
|
716
716
|
transport = transport === VOID ? 'direct' : transport;
|
|
717
|
-
this.
|
|
718
|
-
this.
|
|
719
|
-
this.
|
|
720
|
-
this.
|
|
721
|
-
this.
|
|
722
|
-
this.
|
|
723
|
-
this.
|
|
717
|
+
this.ddf_1 = notaryUrl;
|
|
718
|
+
this.edf_1 = threadCount;
|
|
719
|
+
this.fdf_1 = assetsDir;
|
|
720
|
+
this.gdf_1 = rootStorePem;
|
|
721
|
+
this.hdf_1 = targetAddress;
|
|
722
|
+
this.idf_1 = mode;
|
|
723
|
+
this.jdf_1 = transport;
|
|
724
724
|
// Inline function 'kotlin.require' call
|
|
725
|
-
if (!(this.
|
|
725
|
+
if (!(this.jdf_1 === 'direct' || this.jdf_1 === 'egress')) {
|
|
726
726
|
var message = 'prover.transport must be direct or egress';
|
|
727
727
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
728
728
|
}
|
|
729
729
|
// Inline function 'kotlin.require' call
|
|
730
|
-
if (!(!(this.
|
|
730
|
+
if (!(!(this.jdf_1 === 'egress') || this.idf_1.equals(IssuanceMode_PROXY_getInstance()))) {
|
|
731
731
|
var message_0 = 'prover.transport egress requires mode proxy';
|
|
732
732
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
733
733
|
}
|
|
734
734
|
// Inline function 'kotlin.require' call
|
|
735
|
-
if (!(!this.
|
|
735
|
+
if (!(!this.idf_1.equals(IssuanceMode_PROXY_getInstance()) || this.hdf_1 == null)) {
|
|
736
736
|
var message_1 = 'proxy target routing belongs to the notary; omit targetAddress';
|
|
737
737
|
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
738
738
|
}
|
|
739
739
|
}
|
|
740
740
|
protoOf(ProverSettings).toString = function () {
|
|
741
|
-
return 'ProverSettings(notaryUrl=' + this.
|
|
741
|
+
return 'ProverSettings(notaryUrl=' + this.ddf_1 + ', threadCount=' + this.edf_1 + ', assetsDir=' + this.fdf_1 + ', rootStorePem=' + this.gdf_1 + ', targetAddress=' + this.hdf_1 + ', mode=' + this.idf_1.toString() + ', transport=' + this.jdf_1 + ')';
|
|
742
742
|
};
|
|
743
743
|
protoOf(ProverSettings).hashCode = function () {
|
|
744
|
-
var result = getStringHashCode(this.
|
|
745
|
-
result = imul(result, 31) + this.
|
|
746
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
747
|
-
result = imul(result, 31) + (this.
|
|
748
|
-
result = imul(result, 31) + (this.
|
|
749
|
-
result = imul(result, 31) + this.
|
|
750
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
744
|
+
var result = getStringHashCode(this.ddf_1);
|
|
745
|
+
result = imul(result, 31) + this.edf_1 | 0;
|
|
746
|
+
result = imul(result, 31) + getStringHashCode(this.fdf_1) | 0;
|
|
747
|
+
result = imul(result, 31) + (this.gdf_1 == null ? 0 : getStringHashCode(this.gdf_1)) | 0;
|
|
748
|
+
result = imul(result, 31) + (this.hdf_1 == null ? 0 : getStringHashCode(this.hdf_1)) | 0;
|
|
749
|
+
result = imul(result, 31) + this.idf_1.hashCode() | 0;
|
|
750
|
+
result = imul(result, 31) + getStringHashCode(this.jdf_1) | 0;
|
|
751
751
|
return result;
|
|
752
752
|
};
|
|
753
753
|
protoOf(ProverSettings).equals = function (other) {
|
|
@@ -755,19 +755,19 @@ protoOf(ProverSettings).equals = function (other) {
|
|
|
755
755
|
return true;
|
|
756
756
|
if (!(other instanceof ProverSettings))
|
|
757
757
|
return false;
|
|
758
|
-
if (!(this.
|
|
758
|
+
if (!(this.ddf_1 === other.ddf_1))
|
|
759
759
|
return false;
|
|
760
|
-
if (!(this.
|
|
760
|
+
if (!(this.edf_1 === other.edf_1))
|
|
761
761
|
return false;
|
|
762
|
-
if (!(this.
|
|
762
|
+
if (!(this.fdf_1 === other.fdf_1))
|
|
763
763
|
return false;
|
|
764
|
-
if (!(this.
|
|
764
|
+
if (!(this.gdf_1 == other.gdf_1))
|
|
765
765
|
return false;
|
|
766
|
-
if (!(this.
|
|
766
|
+
if (!(this.hdf_1 == other.hdf_1))
|
|
767
767
|
return false;
|
|
768
|
-
if (!this.
|
|
768
|
+
if (!this.idf_1.equals(other.idf_1))
|
|
769
769
|
return false;
|
|
770
|
-
if (!(this.
|
|
770
|
+
if (!(this.jdf_1 === other.jdf_1))
|
|
771
771
|
return false;
|
|
772
772
|
return true;
|
|
773
773
|
};
|
|
@@ -780,19 +780,19 @@ function ProverIpc$json$lambda($this$Json) {
|
|
|
780
780
|
function ProverIpc() {
|
|
781
781
|
ProverIpc_instance = this;
|
|
782
782
|
var tmp = this;
|
|
783
|
-
tmp.
|
|
783
|
+
tmp.kdf_1 = Json(VOID, ProverIpc$json$lambda);
|
|
784
784
|
}
|
|
785
|
-
protoOf(ProverIpc).
|
|
786
|
-
return this.
|
|
785
|
+
protoOf(ProverIpc).ldf = function (message) {
|
|
786
|
+
return this.kdf_1.q54(Companion_instance_7.f57(), message);
|
|
787
787
|
};
|
|
788
|
-
protoOf(ProverIpc).
|
|
789
|
-
return this.
|
|
788
|
+
protoOf(ProverIpc).mdf = function (message) {
|
|
789
|
+
return this.kdf_1.q54(Companion_instance_11.f57(), message);
|
|
790
790
|
};
|
|
791
|
-
protoOf(ProverIpc).
|
|
792
|
-
return this.
|
|
791
|
+
protoOf(ProverIpc).ndf = function (text) {
|
|
792
|
+
return this.kdf_1.r54(Companion_instance_7.f57(), text);
|
|
793
793
|
};
|
|
794
|
-
protoOf(ProverIpc).
|
|
795
|
-
return this.
|
|
794
|
+
protoOf(ProverIpc).odf = function (text) {
|
|
795
|
+
return this.kdf_1.r54(Companion_instance_11.f57(), text);
|
|
796
796
|
};
|
|
797
797
|
var ProverIpc_instance;
|
|
798
798
|
function ProverIpc_getInstance() {
|
|
@@ -809,28 +809,28 @@ function Companion_getInstance_4() {
|
|
|
809
809
|
function $serializer_0() {
|
|
810
810
|
$serializer_instance_0 = this;
|
|
811
811
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('prove', this, 5);
|
|
812
|
-
tmp0_serialDesc.
|
|
813
|
-
tmp0_serialDesc.
|
|
814
|
-
tmp0_serialDesc.
|
|
815
|
-
tmp0_serialDesc.
|
|
816
|
-
tmp0_serialDesc.
|
|
817
|
-
this.
|
|
818
|
-
}
|
|
819
|
-
protoOf($serializer_0).
|
|
820
|
-
var tmp0_desc = this.
|
|
812
|
+
tmp0_serialDesc.x2k('id', false);
|
|
813
|
+
tmp0_serialDesc.x2k('request', false);
|
|
814
|
+
tmp0_serialDesc.x2k('steamAccessToken', false);
|
|
815
|
+
tmp0_serialDesc.x2k('steamSessionId', false);
|
|
816
|
+
tmp0_serialDesc.x2k('settings', false);
|
|
817
|
+
this.pdf_1 = tmp0_serialDesc;
|
|
818
|
+
}
|
|
819
|
+
protoOf($serializer_0).qdf = function (encoder, value) {
|
|
820
|
+
var tmp0_desc = this.pdf_1;
|
|
821
821
|
var tmp1_output = encoder.j2d(tmp0_desc);
|
|
822
|
-
tmp1_output.t2e(tmp0_desc, 0, value.
|
|
823
|
-
tmp1_output.a2f(tmp0_desc, 1, $serializer_getInstance(), value.
|
|
824
|
-
tmp1_output.y2e(tmp0_desc, 2, value.
|
|
825
|
-
tmp1_output.y2e(tmp0_desc, 3, value.
|
|
826
|
-
tmp1_output.a2f(tmp0_desc, 4, $serializer_getInstance_0(), value.
|
|
822
|
+
tmp1_output.t2e(tmp0_desc, 0, value.rdf_1);
|
|
823
|
+
tmp1_output.a2f(tmp0_desc, 1, $serializer_getInstance(), value.sdf_1);
|
|
824
|
+
tmp1_output.y2e(tmp0_desc, 2, value.tdf_1);
|
|
825
|
+
tmp1_output.y2e(tmp0_desc, 3, value.udf_1);
|
|
826
|
+
tmp1_output.a2f(tmp0_desc, 4, $serializer_getInstance_0(), value.vdf_1);
|
|
827
827
|
tmp1_output.k2d(tmp0_desc);
|
|
828
828
|
};
|
|
829
829
|
protoOf($serializer_0).b2a = function (encoder, value) {
|
|
830
|
-
return this.
|
|
830
|
+
return this.qdf(encoder, value instanceof Prove ? value : THROW_CCE());
|
|
831
831
|
};
|
|
832
832
|
protoOf($serializer_0).c2a = function (decoder) {
|
|
833
|
-
var tmp0_desc = this.
|
|
833
|
+
var tmp0_desc = this.pdf_1;
|
|
834
834
|
var tmp1_flag = true;
|
|
835
835
|
var tmp2_index = 0;
|
|
836
836
|
var tmp3_bitMask0 = 0;
|
|
@@ -886,7 +886,7 @@ protoOf($serializer_0).c2a = function (decoder) {
|
|
|
886
886
|
return Prove_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null);
|
|
887
887
|
};
|
|
888
888
|
protoOf($serializer_0).a2a = function () {
|
|
889
|
-
return this.
|
|
889
|
+
return this.pdf_1;
|
|
890
890
|
};
|
|
891
891
|
protoOf($serializer_0).q2l = function () {
|
|
892
892
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -902,13 +902,13 @@ function $serializer_getInstance_1() {
|
|
|
902
902
|
}
|
|
903
903
|
function Prove_init_$Init$(seen0, id, request, steamAccessToken, steamSessionId, settings, serializationConstructorMarker, $this) {
|
|
904
904
|
if (!(31 === (31 & seen0))) {
|
|
905
|
-
throwMissingFieldException(seen0, 31, $serializer_getInstance_1().
|
|
905
|
+
throwMissingFieldException(seen0, 31, $serializer_getInstance_1().pdf_1);
|
|
906
906
|
}
|
|
907
|
-
$this.
|
|
908
|
-
$this.
|
|
909
|
-
$this.
|
|
910
|
-
$this.
|
|
911
|
-
$this.
|
|
907
|
+
$this.rdf_1 = id;
|
|
908
|
+
$this.sdf_1 = request;
|
|
909
|
+
$this.tdf_1 = steamAccessToken;
|
|
910
|
+
$this.udf_1 = steamSessionId;
|
|
911
|
+
$this.vdf_1 = settings;
|
|
912
912
|
return $this;
|
|
913
913
|
}
|
|
914
914
|
function Prove_init_$Create$(seen0, id, request, steamAccessToken, steamSessionId, settings, serializationConstructorMarker) {
|
|
@@ -924,7 +924,7 @@ function Companion_2() {
|
|
|
924
924
|
// Inline function 'kotlin.arrayOf' call
|
|
925
925
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
926
926
|
// Inline function 'kotlin.js.asDynamic' call
|
|
927
|
-
tmp.
|
|
927
|
+
tmp.wdf_1 = [null, lazy(tmp_0, ToChild$Headers$Companion$$childSerializers$_anonymous__tbifd3), null];
|
|
928
928
|
}
|
|
929
929
|
var Companion_instance_6;
|
|
930
930
|
function Companion_getInstance_5() {
|
|
@@ -935,29 +935,29 @@ function Companion_getInstance_5() {
|
|
|
935
935
|
function $serializer_1() {
|
|
936
936
|
$serializer_instance_1 = this;
|
|
937
937
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('headers', this, 3);
|
|
938
|
-
tmp0_serialDesc.
|
|
939
|
-
tmp0_serialDesc.
|
|
940
|
-
tmp0_serialDesc.
|
|
941
|
-
this.
|
|
938
|
+
tmp0_serialDesc.x2k('id', false);
|
|
939
|
+
tmp0_serialDesc.x2k('headers', true);
|
|
940
|
+
tmp0_serialDesc.x2k('error', true);
|
|
941
|
+
this.xdf_1 = tmp0_serialDesc;
|
|
942
942
|
}
|
|
943
|
-
protoOf($serializer_1).
|
|
944
|
-
var tmp0_desc = this.
|
|
943
|
+
protoOf($serializer_1).ydf = function (encoder, value) {
|
|
944
|
+
var tmp0_desc = this.xdf_1;
|
|
945
945
|
var tmp1_output = encoder.j2d(tmp0_desc);
|
|
946
|
-
var tmp2_cached = Companion_getInstance_5().
|
|
947
|
-
tmp1_output.t2e(tmp0_desc, 0, value.
|
|
948
|
-
if (tmp1_output.g2f(tmp0_desc, 1) ? true : !(value.
|
|
949
|
-
tmp1_output.c2f(tmp0_desc, 1, tmp2_cached[1].p1(), value.
|
|
946
|
+
var tmp2_cached = Companion_getInstance_5().wdf_1;
|
|
947
|
+
tmp1_output.t2e(tmp0_desc, 0, value.zdf_1);
|
|
948
|
+
if (tmp1_output.g2f(tmp0_desc, 1) ? true : !(value.adg_1 == null)) {
|
|
949
|
+
tmp1_output.c2f(tmp0_desc, 1, tmp2_cached[1].p1(), value.adg_1);
|
|
950
950
|
}
|
|
951
|
-
if (tmp1_output.g2f(tmp0_desc, 2) ? true : !(value.
|
|
952
|
-
tmp1_output.c2f(tmp0_desc, 2, StringSerializer_getInstance(), value.
|
|
951
|
+
if (tmp1_output.g2f(tmp0_desc, 2) ? true : !(value.bdg_1 == null)) {
|
|
952
|
+
tmp1_output.c2f(tmp0_desc, 2, StringSerializer_getInstance(), value.bdg_1);
|
|
953
953
|
}
|
|
954
954
|
tmp1_output.k2d(tmp0_desc);
|
|
955
955
|
};
|
|
956
956
|
protoOf($serializer_1).b2a = function (encoder, value) {
|
|
957
|
-
return this.
|
|
957
|
+
return this.ydf(encoder, value instanceof Headers ? value : THROW_CCE());
|
|
958
958
|
};
|
|
959
959
|
protoOf($serializer_1).c2a = function (decoder) {
|
|
960
|
-
var tmp0_desc = this.
|
|
960
|
+
var tmp0_desc = this.xdf_1;
|
|
961
961
|
var tmp1_flag = true;
|
|
962
962
|
var tmp2_index = 0;
|
|
963
963
|
var tmp3_bitMask0 = 0;
|
|
@@ -965,7 +965,7 @@ protoOf($serializer_1).c2a = function (decoder) {
|
|
|
965
965
|
var tmp5_local1 = null;
|
|
966
966
|
var tmp6_local2 = null;
|
|
967
967
|
var tmp7_input = decoder.j2d(tmp0_desc);
|
|
968
|
-
var tmp8_cached = Companion_getInstance_5().
|
|
968
|
+
var tmp8_cached = Companion_getInstance_5().wdf_1;
|
|
969
969
|
if (tmp7_input.z2d()) {
|
|
970
970
|
tmp4_local0 = tmp7_input.o2d(tmp0_desc, 0);
|
|
971
971
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -1000,10 +1000,10 @@ protoOf($serializer_1).c2a = function (decoder) {
|
|
|
1000
1000
|
return Headers_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
1001
1001
|
};
|
|
1002
1002
|
protoOf($serializer_1).a2a = function () {
|
|
1003
|
-
return this.
|
|
1003
|
+
return this.xdf_1;
|
|
1004
1004
|
};
|
|
1005
1005
|
protoOf($serializer_1).q2l = function () {
|
|
1006
|
-
var tmp0_cached = Companion_getInstance_5().
|
|
1006
|
+
var tmp0_cached = Companion_getInstance_5().wdf_1;
|
|
1007
1007
|
// Inline function 'kotlin.arrayOf' call
|
|
1008
1008
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1009
1009
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1017,38 +1017,38 @@ function $serializer_getInstance_2() {
|
|
|
1017
1017
|
}
|
|
1018
1018
|
function Headers_init_$Init$(seen0, id, headers, error, serializationConstructorMarker, $this) {
|
|
1019
1019
|
if (!(1 === (1 & seen0))) {
|
|
1020
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_2().
|
|
1020
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_2().xdf_1);
|
|
1021
1021
|
}
|
|
1022
|
-
$this.
|
|
1022
|
+
$this.zdf_1 = id;
|
|
1023
1023
|
if (0 === (seen0 & 2))
|
|
1024
|
-
$this.
|
|
1024
|
+
$this.adg_1 = null;
|
|
1025
1025
|
else
|
|
1026
|
-
$this.
|
|
1026
|
+
$this.adg_1 = headers;
|
|
1027
1027
|
if (0 === (seen0 & 4))
|
|
1028
|
-
$this.
|
|
1028
|
+
$this.bdg_1 = null;
|
|
1029
1029
|
else
|
|
1030
|
-
$this.
|
|
1030
|
+
$this.bdg_1 = error;
|
|
1031
1031
|
return $this;
|
|
1032
1032
|
}
|
|
1033
1033
|
function Headers_init_$Create$(seen0, id, headers, error, serializationConstructorMarker) {
|
|
1034
1034
|
return Headers_init_$Init$(seen0, id, headers, error, serializationConstructorMarker, objectCreate(protoOf(Headers)));
|
|
1035
1035
|
}
|
|
1036
1036
|
function Prove(id, request, steamAccessToken, steamSessionId, settings) {
|
|
1037
|
-
this.
|
|
1038
|
-
this.
|
|
1039
|
-
this.
|
|
1040
|
-
this.
|
|
1041
|
-
this.
|
|
1037
|
+
this.rdf_1 = id;
|
|
1038
|
+
this.sdf_1 = request;
|
|
1039
|
+
this.tdf_1 = steamAccessToken;
|
|
1040
|
+
this.udf_1 = steamSessionId;
|
|
1041
|
+
this.vdf_1 = settings;
|
|
1042
1042
|
}
|
|
1043
1043
|
protoOf(Prove).toString = function () {
|
|
1044
|
-
return 'Prove(id=' + this.
|
|
1044
|
+
return 'Prove(id=' + this.rdf_1 + ', request=' + this.sdf_1.toString() + ', steamAccessToken=<redacted>, steamSessionId=<redacted>)';
|
|
1045
1045
|
};
|
|
1046
1046
|
protoOf(Prove).hashCode = function () {
|
|
1047
|
-
var result = this.
|
|
1048
|
-
result = imul(result, 31) + this.
|
|
1049
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1050
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1051
|
-
result = imul(result, 31) + this.
|
|
1047
|
+
var result = this.rdf_1;
|
|
1048
|
+
result = imul(result, 31) + this.sdf_1.hashCode() | 0;
|
|
1049
|
+
result = imul(result, 31) + getStringHashCode(this.tdf_1) | 0;
|
|
1050
|
+
result = imul(result, 31) + getStringHashCode(this.udf_1) | 0;
|
|
1051
|
+
result = imul(result, 31) + this.vdf_1.hashCode() | 0;
|
|
1052
1052
|
return result;
|
|
1053
1053
|
};
|
|
1054
1054
|
protoOf(Prove).equals = function (other) {
|
|
@@ -1056,15 +1056,15 @@ protoOf(Prove).equals = function (other) {
|
|
|
1056
1056
|
return true;
|
|
1057
1057
|
if (!(other instanceof Prove))
|
|
1058
1058
|
return false;
|
|
1059
|
-
if (!(this.
|
|
1059
|
+
if (!(this.rdf_1 === other.rdf_1))
|
|
1060
1060
|
return false;
|
|
1061
|
-
if (!this.
|
|
1061
|
+
if (!this.sdf_1.equals(other.sdf_1))
|
|
1062
1062
|
return false;
|
|
1063
|
-
if (!(this.
|
|
1063
|
+
if (!(this.tdf_1 === other.tdf_1))
|
|
1064
1064
|
return false;
|
|
1065
|
-
if (!(this.
|
|
1065
|
+
if (!(this.udf_1 === other.udf_1))
|
|
1066
1066
|
return false;
|
|
1067
|
-
if (!this.
|
|
1067
|
+
if (!this.vdf_1.equals(other.vdf_1))
|
|
1068
1068
|
return false;
|
|
1069
1069
|
return true;
|
|
1070
1070
|
};
|
|
@@ -1072,18 +1072,18 @@ function Headers(id, headers, error) {
|
|
|
1072
1072
|
Companion_getInstance_5();
|
|
1073
1073
|
headers = headers === VOID ? null : headers;
|
|
1074
1074
|
error = error === VOID ? null : error;
|
|
1075
|
-
this.
|
|
1076
|
-
this.
|
|
1077
|
-
this.
|
|
1075
|
+
this.zdf_1 = id;
|
|
1076
|
+
this.adg_1 = headers;
|
|
1077
|
+
this.bdg_1 = error;
|
|
1078
1078
|
}
|
|
1079
1079
|
protoOf(Headers).toString = function () {
|
|
1080
|
-
var tmp0_safe_receiver = this.
|
|
1081
|
-
return 'Headers(id=' + this.
|
|
1080
|
+
var tmp0_safe_receiver = this.adg_1;
|
|
1081
|
+
return 'Headers(id=' + this.zdf_1 + ', headers=' + toString_0(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.y2()) + ': <redacted>, error=' + this.bdg_1 + ')';
|
|
1082
1082
|
};
|
|
1083
1083
|
protoOf(Headers).hashCode = function () {
|
|
1084
|
-
var result = this.
|
|
1085
|
-
result = imul(result, 31) + (this.
|
|
1086
|
-
result = imul(result, 31) + (this.
|
|
1084
|
+
var result = this.zdf_1;
|
|
1085
|
+
result = imul(result, 31) + (this.adg_1 == null ? 0 : hashCode(this.adg_1)) | 0;
|
|
1086
|
+
result = imul(result, 31) + (this.bdg_1 == null ? 0 : getStringHashCode(this.bdg_1)) | 0;
|
|
1087
1087
|
return result;
|
|
1088
1088
|
};
|
|
1089
1089
|
protoOf(Headers).equals = function (other) {
|
|
@@ -1091,11 +1091,11 @@ protoOf(Headers).equals = function (other) {
|
|
|
1091
1091
|
return true;
|
|
1092
1092
|
if (!(other instanceof Headers))
|
|
1093
1093
|
return false;
|
|
1094
|
-
if (!(this.
|
|
1094
|
+
if (!(this.zdf_1 === other.zdf_1))
|
|
1095
1095
|
return false;
|
|
1096
|
-
if (!equals(this.
|
|
1096
|
+
if (!equals(this.adg_1, other.adg_1))
|
|
1097
1097
|
return false;
|
|
1098
|
-
if (!(this.
|
|
1098
|
+
if (!(this.bdg_1 == other.bdg_1))
|
|
1099
1099
|
return false;
|
|
1100
1100
|
return true;
|
|
1101
1101
|
};
|
|
@@ -1135,20 +1135,20 @@ function Companion_getInstance_7() {
|
|
|
1135
1135
|
function $serializer_2() {
|
|
1136
1136
|
$serializer_instance_2 = this;
|
|
1137
1137
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('headers_wanted', this, 1);
|
|
1138
|
-
tmp0_serialDesc.
|
|
1139
|
-
this.
|
|
1138
|
+
tmp0_serialDesc.x2k('id', false);
|
|
1139
|
+
this.cdg_1 = tmp0_serialDesc;
|
|
1140
1140
|
}
|
|
1141
|
-
protoOf($serializer_2).
|
|
1142
|
-
var tmp0_desc = this.
|
|
1141
|
+
protoOf($serializer_2).ddg = function (encoder, value) {
|
|
1142
|
+
var tmp0_desc = this.cdg_1;
|
|
1143
1143
|
var tmp1_output = encoder.j2d(tmp0_desc);
|
|
1144
|
-
tmp1_output.t2e(tmp0_desc, 0, value.
|
|
1144
|
+
tmp1_output.t2e(tmp0_desc, 0, value.edg_1);
|
|
1145
1145
|
tmp1_output.k2d(tmp0_desc);
|
|
1146
1146
|
};
|
|
1147
1147
|
protoOf($serializer_2).b2a = function (encoder, value) {
|
|
1148
|
-
return this.
|
|
1148
|
+
return this.ddg(encoder, value instanceof HeadersWanted ? value : THROW_CCE());
|
|
1149
1149
|
};
|
|
1150
1150
|
protoOf($serializer_2).c2a = function (decoder) {
|
|
1151
|
-
var tmp0_desc = this.
|
|
1151
|
+
var tmp0_desc = this.cdg_1;
|
|
1152
1152
|
var tmp1_flag = true;
|
|
1153
1153
|
var tmp2_index = 0;
|
|
1154
1154
|
var tmp3_bitMask0 = 0;
|
|
@@ -1176,7 +1176,7 @@ protoOf($serializer_2).c2a = function (decoder) {
|
|
|
1176
1176
|
return HeadersWanted_init_$Create$(tmp3_bitMask0, tmp4_local0, null);
|
|
1177
1177
|
};
|
|
1178
1178
|
protoOf($serializer_2).a2a = function () {
|
|
1179
|
-
return this.
|
|
1179
|
+
return this.cdg_1;
|
|
1180
1180
|
};
|
|
1181
1181
|
protoOf($serializer_2).q2l = function () {
|
|
1182
1182
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -1192,9 +1192,9 @@ function $serializer_getInstance_3() {
|
|
|
1192
1192
|
}
|
|
1193
1193
|
function HeadersWanted_init_$Init$(seen0, id, serializationConstructorMarker, $this) {
|
|
1194
1194
|
if (!(1 === (1 & seen0))) {
|
|
1195
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_3().
|
|
1195
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_3().cdg_1);
|
|
1196
1196
|
}
|
|
1197
|
-
$this.
|
|
1197
|
+
$this.edg_1 = id;
|
|
1198
1198
|
return $this;
|
|
1199
1199
|
}
|
|
1200
1200
|
function HeadersWanted_init_$Create$(seen0, id, serializationConstructorMarker) {
|
|
@@ -1209,22 +1209,22 @@ function Companion_getInstance_8() {
|
|
|
1209
1209
|
function $serializer_3() {
|
|
1210
1210
|
$serializer_instance_3 = this;
|
|
1211
1211
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('proved', this, 2);
|
|
1212
|
-
tmp0_serialDesc.
|
|
1213
|
-
tmp0_serialDesc.
|
|
1214
|
-
this.
|
|
1212
|
+
tmp0_serialDesc.x2k('id', false);
|
|
1213
|
+
tmp0_serialDesc.x2k('presentation', false);
|
|
1214
|
+
this.fdg_1 = tmp0_serialDesc;
|
|
1215
1215
|
}
|
|
1216
|
-
protoOf($serializer_3).
|
|
1217
|
-
var tmp0_desc = this.
|
|
1216
|
+
protoOf($serializer_3).gdg = function (encoder, value) {
|
|
1217
|
+
var tmp0_desc = this.fdg_1;
|
|
1218
1218
|
var tmp1_output = encoder.j2d(tmp0_desc);
|
|
1219
|
-
tmp1_output.t2e(tmp0_desc, 0, value.
|
|
1220
|
-
tmp1_output.y2e(tmp0_desc, 1, value.
|
|
1219
|
+
tmp1_output.t2e(tmp0_desc, 0, value.hdg_1);
|
|
1220
|
+
tmp1_output.y2e(tmp0_desc, 1, value.idg_1);
|
|
1221
1221
|
tmp1_output.k2d(tmp0_desc);
|
|
1222
1222
|
};
|
|
1223
1223
|
protoOf($serializer_3).b2a = function (encoder, value) {
|
|
1224
|
-
return this.
|
|
1224
|
+
return this.gdg(encoder, value instanceof Proved_0 ? value : THROW_CCE());
|
|
1225
1225
|
};
|
|
1226
1226
|
protoOf($serializer_3).c2a = function (decoder) {
|
|
1227
|
-
var tmp0_desc = this.
|
|
1227
|
+
var tmp0_desc = this.fdg_1;
|
|
1228
1228
|
var tmp1_flag = true;
|
|
1229
1229
|
var tmp2_index = 0;
|
|
1230
1230
|
var tmp3_bitMask0 = 0;
|
|
@@ -1259,7 +1259,7 @@ protoOf($serializer_3).c2a = function (decoder) {
|
|
|
1259
1259
|
return Proved_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1260
1260
|
};
|
|
1261
1261
|
protoOf($serializer_3).a2a = function () {
|
|
1262
|
-
return this.
|
|
1262
|
+
return this.fdg_1;
|
|
1263
1263
|
};
|
|
1264
1264
|
protoOf($serializer_3).q2l = function () {
|
|
1265
1265
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -1275,10 +1275,10 @@ function $serializer_getInstance_4() {
|
|
|
1275
1275
|
}
|
|
1276
1276
|
function Proved_init_$Init$(seen0, id, presentation, serializationConstructorMarker, $this) {
|
|
1277
1277
|
if (!(3 === (3 & seen0))) {
|
|
1278
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_4().
|
|
1278
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_4().fdg_1);
|
|
1279
1279
|
}
|
|
1280
|
-
$this.
|
|
1281
|
-
$this.
|
|
1280
|
+
$this.hdg_1 = id;
|
|
1281
|
+
$this.idg_1 = presentation;
|
|
1282
1282
|
return $this;
|
|
1283
1283
|
}
|
|
1284
1284
|
function Proved_init_$Create$(seen0, id, presentation, serializationConstructorMarker) {
|
|
@@ -1294,7 +1294,7 @@ function Companion_6() {
|
|
|
1294
1294
|
// Inline function 'kotlin.arrayOf' call
|
|
1295
1295
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1296
1296
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1297
|
-
tmp.
|
|
1297
|
+
tmp.jdg_1 = [null, lazy(tmp_0, FromChild$Failed$Companion$$childSerializers$_anonymous__8w30xx)];
|
|
1298
1298
|
}
|
|
1299
1299
|
var Companion_instance_10;
|
|
1300
1300
|
function Companion_getInstance_9() {
|
|
@@ -1305,30 +1305,30 @@ function Companion_getInstance_9() {
|
|
|
1305
1305
|
function $serializer_4() {
|
|
1306
1306
|
$serializer_instance_4 = this;
|
|
1307
1307
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('failed', this, 2);
|
|
1308
|
-
tmp0_serialDesc.
|
|
1309
|
-
tmp0_serialDesc.
|
|
1310
|
-
this.
|
|
1308
|
+
tmp0_serialDesc.x2k('id', false);
|
|
1309
|
+
tmp0_serialDesc.x2k('failure', false);
|
|
1310
|
+
this.kdg_1 = tmp0_serialDesc;
|
|
1311
1311
|
}
|
|
1312
|
-
protoOf($serializer_4).
|
|
1313
|
-
var tmp0_desc = this.
|
|
1312
|
+
protoOf($serializer_4).ldg = function (encoder, value) {
|
|
1313
|
+
var tmp0_desc = this.kdg_1;
|
|
1314
1314
|
var tmp1_output = encoder.j2d(tmp0_desc);
|
|
1315
|
-
var tmp2_cached = Companion_getInstance_9().
|
|
1316
|
-
tmp1_output.t2e(tmp0_desc, 0, value.
|
|
1317
|
-
tmp1_output.a2f(tmp0_desc, 1, tmp2_cached[1].p1(), value.
|
|
1315
|
+
var tmp2_cached = Companion_getInstance_9().jdg_1;
|
|
1316
|
+
tmp1_output.t2e(tmp0_desc, 0, value.mdg_1);
|
|
1317
|
+
tmp1_output.a2f(tmp0_desc, 1, tmp2_cached[1].p1(), value.ndg_1);
|
|
1318
1318
|
tmp1_output.k2d(tmp0_desc);
|
|
1319
1319
|
};
|
|
1320
1320
|
protoOf($serializer_4).b2a = function (encoder, value) {
|
|
1321
|
-
return this.
|
|
1321
|
+
return this.ldg(encoder, value instanceof Failed_0 ? value : THROW_CCE());
|
|
1322
1322
|
};
|
|
1323
1323
|
protoOf($serializer_4).c2a = function (decoder) {
|
|
1324
|
-
var tmp0_desc = this.
|
|
1324
|
+
var tmp0_desc = this.kdg_1;
|
|
1325
1325
|
var tmp1_flag = true;
|
|
1326
1326
|
var tmp2_index = 0;
|
|
1327
1327
|
var tmp3_bitMask0 = 0;
|
|
1328
1328
|
var tmp4_local0 = 0;
|
|
1329
1329
|
var tmp5_local1 = null;
|
|
1330
1330
|
var tmp6_input = decoder.j2d(tmp0_desc);
|
|
1331
|
-
var tmp7_cached = Companion_getInstance_9().
|
|
1331
|
+
var tmp7_cached = Companion_getInstance_9().jdg_1;
|
|
1332
1332
|
if (tmp6_input.z2d()) {
|
|
1333
1333
|
tmp4_local0 = tmp6_input.o2d(tmp0_desc, 0);
|
|
1334
1334
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -1357,10 +1357,10 @@ protoOf($serializer_4).c2a = function (decoder) {
|
|
|
1357
1357
|
return Failed_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1358
1358
|
};
|
|
1359
1359
|
protoOf($serializer_4).a2a = function () {
|
|
1360
|
-
return this.
|
|
1360
|
+
return this.kdg_1;
|
|
1361
1361
|
};
|
|
1362
1362
|
protoOf($serializer_4).q2l = function () {
|
|
1363
|
-
var tmp0_cached = Companion_getInstance_9().
|
|
1363
|
+
var tmp0_cached = Companion_getInstance_9().jdg_1;
|
|
1364
1364
|
// Inline function 'kotlin.arrayOf' call
|
|
1365
1365
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1366
1366
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1374,49 +1374,49 @@ function $serializer_getInstance_5() {
|
|
|
1374
1374
|
}
|
|
1375
1375
|
function Failed_init_$Init$(seen0, id, failure, serializationConstructorMarker, $this) {
|
|
1376
1376
|
if (!(3 === (3 & seen0))) {
|
|
1377
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_5().
|
|
1377
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_5().kdg_1);
|
|
1378
1378
|
}
|
|
1379
|
-
$this.
|
|
1380
|
-
$this.
|
|
1379
|
+
$this.mdg_1 = id;
|
|
1380
|
+
$this.ndg_1 = failure;
|
|
1381
1381
|
return $this;
|
|
1382
1382
|
}
|
|
1383
1383
|
function Failed_init_$Create$(seen0, id, failure, serializationConstructorMarker) {
|
|
1384
1384
|
return Failed_init_$Init$(seen0, id, failure, serializationConstructorMarker, objectCreate(protoOf(Failed_0)));
|
|
1385
1385
|
}
|
|
1386
1386
|
function HeadersWanted(id) {
|
|
1387
|
-
this.
|
|
1387
|
+
this.edg_1 = id;
|
|
1388
1388
|
}
|
|
1389
1389
|
protoOf(HeadersWanted).p6i = function () {
|
|
1390
|
-
return this.
|
|
1390
|
+
return this.edg_1;
|
|
1391
1391
|
};
|
|
1392
1392
|
protoOf(HeadersWanted).toString = function () {
|
|
1393
|
-
return 'HeadersWanted(id=' + this.
|
|
1393
|
+
return 'HeadersWanted(id=' + this.edg_1 + ')';
|
|
1394
1394
|
};
|
|
1395
1395
|
protoOf(HeadersWanted).hashCode = function () {
|
|
1396
|
-
return this.
|
|
1396
|
+
return this.edg_1;
|
|
1397
1397
|
};
|
|
1398
1398
|
protoOf(HeadersWanted).equals = function (other) {
|
|
1399
1399
|
if (this === other)
|
|
1400
1400
|
return true;
|
|
1401
1401
|
if (!(other instanceof HeadersWanted))
|
|
1402
1402
|
return false;
|
|
1403
|
-
if (!(this.
|
|
1403
|
+
if (!(this.edg_1 === other.edg_1))
|
|
1404
1404
|
return false;
|
|
1405
1405
|
return true;
|
|
1406
1406
|
};
|
|
1407
1407
|
function Proved_0(id, presentation) {
|
|
1408
|
-
this.
|
|
1409
|
-
this.
|
|
1408
|
+
this.hdg_1 = id;
|
|
1409
|
+
this.idg_1 = presentation;
|
|
1410
1410
|
}
|
|
1411
1411
|
protoOf(Proved_0).p6i = function () {
|
|
1412
|
-
return this.
|
|
1412
|
+
return this.hdg_1;
|
|
1413
1413
|
};
|
|
1414
1414
|
protoOf(Proved_0).toString = function () {
|
|
1415
|
-
return 'Proved(id=' + this.
|
|
1415
|
+
return 'Proved(id=' + this.hdg_1 + ', presentation=' + this.idg_1 + ')';
|
|
1416
1416
|
};
|
|
1417
1417
|
protoOf(Proved_0).hashCode = function () {
|
|
1418
|
-
var result = this.
|
|
1419
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1418
|
+
var result = this.hdg_1;
|
|
1419
|
+
result = imul(result, 31) + getStringHashCode(this.idg_1) | 0;
|
|
1420
1420
|
return result;
|
|
1421
1421
|
};
|
|
1422
1422
|
protoOf(Proved_0).equals = function (other) {
|
|
@@ -1424,26 +1424,26 @@ protoOf(Proved_0).equals = function (other) {
|
|
|
1424
1424
|
return true;
|
|
1425
1425
|
if (!(other instanceof Proved_0))
|
|
1426
1426
|
return false;
|
|
1427
|
-
if (!(this.
|
|
1427
|
+
if (!(this.hdg_1 === other.hdg_1))
|
|
1428
1428
|
return false;
|
|
1429
|
-
if (!(this.
|
|
1429
|
+
if (!(this.idg_1 === other.idg_1))
|
|
1430
1430
|
return false;
|
|
1431
1431
|
return true;
|
|
1432
1432
|
};
|
|
1433
1433
|
function Failed_0(id, failure) {
|
|
1434
1434
|
Companion_getInstance_9();
|
|
1435
|
-
this.
|
|
1436
|
-
this.
|
|
1435
|
+
this.mdg_1 = id;
|
|
1436
|
+
this.ndg_1 = failure;
|
|
1437
1437
|
}
|
|
1438
1438
|
protoOf(Failed_0).p6i = function () {
|
|
1439
|
-
return this.
|
|
1439
|
+
return this.mdg_1;
|
|
1440
1440
|
};
|
|
1441
1441
|
protoOf(Failed_0).toString = function () {
|
|
1442
|
-
return 'Failed(id=' + this.
|
|
1442
|
+
return 'Failed(id=' + this.mdg_1 + ', failure=' + toString(this.ndg_1) + ')';
|
|
1443
1443
|
};
|
|
1444
1444
|
protoOf(Failed_0).hashCode = function () {
|
|
1445
|
-
var result = this.
|
|
1446
|
-
result = imul(result, 31) + hashCode(this.
|
|
1445
|
+
var result = this.mdg_1;
|
|
1446
|
+
result = imul(result, 31) + hashCode(this.ndg_1) | 0;
|
|
1447
1447
|
return result;
|
|
1448
1448
|
};
|
|
1449
1449
|
protoOf(Failed_0).equals = function (other) {
|
|
@@ -1451,9 +1451,9 @@ protoOf(Failed_0).equals = function (other) {
|
|
|
1451
1451
|
return true;
|
|
1452
1452
|
if (!(other instanceof Failed_0))
|
|
1453
1453
|
return false;
|
|
1454
|
-
if (!(this.
|
|
1454
|
+
if (!(this.mdg_1 === other.mdg_1))
|
|
1455
1455
|
return false;
|
|
1456
|
-
if (!equals(this.
|
|
1456
|
+
if (!equals(this.ndg_1, other.ndg_1))
|
|
1457
1457
|
return false;
|
|
1458
1458
|
return true;
|
|
1459
1459
|
};
|
|
@@ -1486,12 +1486,12 @@ function FromChild() {
|
|
|
1486
1486
|
}
|
|
1487
1487
|
function ProverOutput() {
|
|
1488
1488
|
ProverOutput_instance = this;
|
|
1489
|
-
this.
|
|
1490
|
-
this.
|
|
1489
|
+
this.cde_1 = NetworkRedaction_getInstance().t6c('access_token');
|
|
1490
|
+
this.dde_1 = 2000;
|
|
1491
1491
|
}
|
|
1492
|
-
protoOf(ProverOutput).
|
|
1492
|
+
protoOf(ProverOutput).n7i = function (line) {
|
|
1493
1493
|
// Inline function 'kotlin.text.orEmpty' call
|
|
1494
|
-
var tmp0_elvis_lhs = NetworkRedaction_getInstance().s6c(TradingApiSignature_getInstance().
|
|
1494
|
+
var tmp0_elvis_lhs = NetworkRedaction_getInstance().s6c(TradingApiSignature_getInstance().n7i(line), this.cde_1, 2000);
|
|
1495
1495
|
return tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
|
|
1496
1496
|
};
|
|
1497
1497
|
var ProverOutput_instance;
|
|
@@ -1515,15 +1515,15 @@ function headlessVersion() {
|
|
|
1515
1515
|
}
|
|
1516
1516
|
function createHeadlessTracker(options) {
|
|
1517
1517
|
_init_properties_HeadlessApi_kt__cjiogh();
|
|
1518
|
-
return create(Companion_getInstance_11().
|
|
1518
|
+
return create(Companion_getInstance_11().qdg(options), null, null, null);
|
|
1519
1519
|
}
|
|
1520
1520
|
function start(handle) {
|
|
1521
1521
|
_init_properties_HeadlessApi_kt__cjiogh();
|
|
1522
1522
|
var entry = entryOf(handle);
|
|
1523
|
-
if (entry.
|
|
1523
|
+
if (entry.udg_1)
|
|
1524
1524
|
return Unit_instance;
|
|
1525
|
-
entry.
|
|
1526
|
-
entry.
|
|
1525
|
+
entry.udg_1 = true;
|
|
1526
|
+
entry.rdg_1.rcn();
|
|
1527
1527
|
}
|
|
1528
1528
|
function cycle(handle) {
|
|
1529
1529
|
_init_properties_HeadlessApi_kt__cjiogh();
|
|
@@ -1539,15 +1539,15 @@ function stop(handle) {
|
|
|
1539
1539
|
tmp = tmp0_elvis_lhs;
|
|
1540
1540
|
}
|
|
1541
1541
|
var entry = tmp;
|
|
1542
|
-
if (!entry.
|
|
1543
|
-
entry.
|
|
1544
|
-
var tmp1_safe_receiver = entry.
|
|
1542
|
+
if (!entry.vdg_1) {
|
|
1543
|
+
entry.vdg_1 = true;
|
|
1544
|
+
var tmp1_safe_receiver = entry.tdg_1;
|
|
1545
1545
|
if (tmp1_safe_receiver == null)
|
|
1546
1546
|
null;
|
|
1547
1547
|
else {
|
|
1548
1548
|
tmp1_safe_receiver.j4();
|
|
1549
1549
|
}
|
|
1550
|
-
cancel(entry.
|
|
1550
|
+
cancel(entry.sdg_1);
|
|
1551
1551
|
}
|
|
1552
1552
|
return Promise.resolve(Unit_instance);
|
|
1553
1553
|
}
|
|
@@ -1566,54 +1566,54 @@ function pushSteamToken(handle, accessToken) {
|
|
|
1566
1566
|
}
|
|
1567
1567
|
function trackerState(handle) {
|
|
1568
1568
|
_init_properties_HeadlessApi_kt__cjiogh();
|
|
1569
|
-
return toJs_1(entryOf(handle).
|
|
1569
|
+
return toJs_1(entryOf(handle).rdg_1.ucm());
|
|
1570
1570
|
}
|
|
1571
1571
|
function create(options, httpEngine, background, proverPackageRoot) {
|
|
1572
1572
|
_init_properties_HeadlessApi_kt__cjiogh();
|
|
1573
|
-
var tmp0_elvis_lhs = options.
|
|
1573
|
+
var tmp0_elvis_lhs = options.fdh();
|
|
1574
1574
|
var clock = tmp0_elvis_lhs == null ? new SystemClock() : tmp0_elvis_lhs;
|
|
1575
|
-
var tmp1_safe_receiver = options.
|
|
1575
|
+
var tmp1_safe_receiver = options.cdh_1;
|
|
1576
1576
|
var tmp;
|
|
1577
1577
|
if (tmp1_safe_receiver == null) {
|
|
1578
1578
|
tmp = null;
|
|
1579
1579
|
} else {
|
|
1580
1580
|
// Inline function 'kotlin.let' call
|
|
1581
|
-
tmp = proofHost(options, tmp1_safe_receiver, Companion_instance_13.
|
|
1581
|
+
tmp = proofHost(options, tmp1_safe_receiver, Companion_instance_13.rdh(proverPackageRoot, tmp1_safe_receiver.kdh_1), clock);
|
|
1582
1582
|
}
|
|
1583
1583
|
var proofHost_0 = tmp;
|
|
1584
1584
|
var scope = CoroutineScope(SupervisorJob().wk(Dispatchers_getInstance().x1a_1));
|
|
1585
|
-
var accounts = new AccountDirectories(options.
|
|
1585
|
+
var accounts = new AccountDirectories(options.wdg_1);
|
|
1586
1586
|
var tmp_0 = create$lambda(accounts);
|
|
1587
|
-
var tmp2_elvis_lhs = options.
|
|
1587
|
+
var tmp2_elvis_lhs = options.sdh();
|
|
1588
1588
|
var tmp_1 = tmp2_elvis_lhs == null ? NoOpEventObserver_instance : tmp2_elvis_lhs;
|
|
1589
1589
|
var tmp_2;
|
|
1590
1590
|
if (proofHost_0 == null) {
|
|
1591
1591
|
tmp_2 = null;
|
|
1592
1592
|
} else {
|
|
1593
1593
|
// Inline function 'kotlin.let' call
|
|
1594
|
-
tmp_2 = new HeadlessProving(proofHost_0, options.
|
|
1594
|
+
tmp_2 = new HeadlessProving(proofHost_0, options.cdh_1.hdh_1);
|
|
1595
1595
|
}
|
|
1596
1596
|
var platform = new HeadlessPlatform(tmp_0, clock, tmp_1, httpEngine, VOID, tmp_2);
|
|
1597
1597
|
var tmp_3 = background == null ? scope : background;
|
|
1598
1598
|
// Inline function 'kotlin.let' call
|
|
1599
1599
|
var it = Companion_instance_1.defaults();
|
|
1600
|
-
var tmp$ret$4 = it.copy(VOID, VOID, VOID, VOID, VOID, it.notary.copy(VOID, options.
|
|
1601
|
-
var tracker = new HeadlessTracker(platform, tmp_3, options.
|
|
1600
|
+
var tmp$ret$4 = it.copy(VOID, VOID, VOID, VOID, VOID, it.notary.copy(VOID, options.zdg_1));
|
|
1601
|
+
var tracker = new HeadlessTracker(platform, tmp_3, options.xdg_1, tmp$ret$4, options.ydg_1);
|
|
1602
1602
|
var handle = Object.freeze(Object.create(null));
|
|
1603
1603
|
get_trackers().set(handle, new TrackerEntry(tracker, scope, proofHost_0));
|
|
1604
1604
|
return handle;
|
|
1605
1605
|
}
|
|
1606
1606
|
function proofHost(options, prover, files, clock) {
|
|
1607
1607
|
_init_properties_HeadlessApi_kt__cjiogh();
|
|
1608
|
-
checkProverAssets(files.
|
|
1609
|
-
var onLine = options.
|
|
1610
|
-
var onOutcome = options.
|
|
1608
|
+
checkProverAssets(files.udh_1, prover.ndh_1, prover.odh_1);
|
|
1609
|
+
var onLine = options.edh_1;
|
|
1610
|
+
var onOutcome = options.ddh_1;
|
|
1611
1611
|
var tmp = emptyList();
|
|
1612
|
-
var tmp_0 = new ProverSettings(options.
|
|
1613
|
-
var tmp_1 = new ProverLimits(prover.
|
|
1612
|
+
var tmp_0 = new ProverSettings(options.zdg_1, prover.jdh_1, files.udh_1, VOID, VOID, prover.ndh_1, prover.odh_1);
|
|
1613
|
+
var tmp_1 = new ProverLimits(prover.ldh_1, prover.mdh_1, prover.idh_1);
|
|
1614
1614
|
var tmp_2 = proofHost$lambda(onLine);
|
|
1615
1615
|
var tmp_3 = proofHost$lambda_0(onLine);
|
|
1616
|
-
return new ForkedProofHost(files.
|
|
1616
|
+
return new ForkedProofHost(files.tdh_1, tmp, tmp_0, clock, tmp_1, VOID, VOID, tmp_2, tmp_3, proofHost$lambda_1(onOutcome));
|
|
1617
1617
|
}
|
|
1618
1618
|
function proofOutcome(dealId, failure) {
|
|
1619
1619
|
_init_properties_HeadlessApi_kt__cjiogh();
|
|
@@ -1624,17 +1624,17 @@ function proofOutcome(dealId, failure) {
|
|
|
1624
1624
|
tmp = null;
|
|
1625
1625
|
} else {
|
|
1626
1626
|
// Inline function 'kotlin.let' call
|
|
1627
|
-
tmp = JSON.parse(ProofOutcomeJson_getInstance().
|
|
1627
|
+
tmp = JSON.parse(ProofOutcomeJson_getInstance().fde(failure));
|
|
1628
1628
|
}
|
|
1629
1629
|
o.failure = tmp;
|
|
1630
1630
|
return o;
|
|
1631
1631
|
}
|
|
1632
1632
|
function TrackerEntry(tracker, scope, proofHost) {
|
|
1633
|
-
this.
|
|
1634
|
-
this.
|
|
1635
|
-
this.
|
|
1636
|
-
this.
|
|
1637
|
-
this.
|
|
1633
|
+
this.rdg_1 = tracker;
|
|
1634
|
+
this.sdg_1 = scope;
|
|
1635
|
+
this.tdg_1 = proofHost;
|
|
1636
|
+
this.udg_1 = false;
|
|
1637
|
+
this.vdg_1 = false;
|
|
1638
1638
|
}
|
|
1639
1639
|
function lookup(handle) {
|
|
1640
1640
|
_init_properties_HeadlessApi_kt__cjiogh();
|
|
@@ -1651,7 +1651,7 @@ function entryOf(handle) {
|
|
|
1651
1651
|
}
|
|
1652
1652
|
var entry = tmp;
|
|
1653
1653
|
// Inline function 'kotlin.check' call
|
|
1654
|
-
if (!!entry.
|
|
1654
|
+
if (!!entry.vdg_1) {
|
|
1655
1655
|
var message = 'tracker stopped';
|
|
1656
1656
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
1657
1657
|
}
|
|
@@ -1678,19 +1678,19 @@ function call(handle, block) {
|
|
|
1678
1678
|
}
|
|
1679
1679
|
}
|
|
1680
1680
|
var entry = tmp;
|
|
1681
|
-
return promise_0(entry.
|
|
1681
|
+
return promise_0(entry.sdg_1, VOID, VOID, call$slambda_0(block, entry, null));
|
|
1682
1682
|
}
|
|
1683
1683
|
function cycle$slambda(resultContinuation) {
|
|
1684
1684
|
CoroutineImpl.call(this, resultContinuation);
|
|
1685
1685
|
}
|
|
1686
|
-
protoOf(cycle$slambda).
|
|
1687
|
-
var tmp = this.
|
|
1686
|
+
protoOf(cycle$slambda).edi = function ($this$call, $completion) {
|
|
1687
|
+
var tmp = this.fdi($this$call, $completion);
|
|
1688
1688
|
tmp.k9_1 = Unit_instance;
|
|
1689
1689
|
tmp.l9_1 = null;
|
|
1690
1690
|
return tmp.q9();
|
|
1691
1691
|
};
|
|
1692
1692
|
protoOf(cycle$slambda).da = function (p1, $completion) {
|
|
1693
|
-
return this.
|
|
1693
|
+
return this.edi(p1 instanceof TrackerEntry ? p1 : THROW_CCE(), $completion);
|
|
1694
1694
|
};
|
|
1695
1695
|
protoOf(cycle$slambda).q9 = function () {
|
|
1696
1696
|
var suspendResult = this.k9_1;
|
|
@@ -1701,7 +1701,7 @@ protoOf(cycle$slambda).q9 = function () {
|
|
|
1701
1701
|
case 0:
|
|
1702
1702
|
this.j9_1 = 2;
|
|
1703
1703
|
this.i9_1 = 1;
|
|
1704
|
-
suspendResult = this.
|
|
1704
|
+
suspendResult = this.ddi_1.rdg_1.fci(this);
|
|
1705
1705
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1706
1706
|
return suspendResult;
|
|
1707
1707
|
}
|
|
@@ -1723,30 +1723,30 @@ protoOf(cycle$slambda).q9 = function () {
|
|
|
1723
1723
|
}
|
|
1724
1724
|
while (true);
|
|
1725
1725
|
};
|
|
1726
|
-
protoOf(cycle$slambda).
|
|
1726
|
+
protoOf(cycle$slambda).fdi = function ($this$call, completion) {
|
|
1727
1727
|
var i = new cycle$slambda(completion);
|
|
1728
|
-
i.
|
|
1728
|
+
i.ddi_1 = $this$call;
|
|
1729
1729
|
return i;
|
|
1730
1730
|
};
|
|
1731
1731
|
function cycle$slambda_0(resultContinuation) {
|
|
1732
1732
|
var i = new cycle$slambda(resultContinuation);
|
|
1733
1733
|
return constructCallableReference(function ($this$call, $completion) {
|
|
1734
|
-
return i.
|
|
1734
|
+
return i.edi($this$call, $completion);
|
|
1735
1735
|
}, 1);
|
|
1736
1736
|
}
|
|
1737
1737
|
function pushTradingApiKey$slambda($publicKey, $secretKey, resultContinuation) {
|
|
1738
|
-
this.
|
|
1739
|
-
this.
|
|
1738
|
+
this.odi_1 = $publicKey;
|
|
1739
|
+
this.pdi_1 = $secretKey;
|
|
1740
1740
|
CoroutineImpl.call(this, resultContinuation);
|
|
1741
1741
|
}
|
|
1742
|
-
protoOf(pushTradingApiKey$slambda).
|
|
1743
|
-
var tmp = this.
|
|
1742
|
+
protoOf(pushTradingApiKey$slambda).rdi = function ($this$call, $completion) {
|
|
1743
|
+
var tmp = this.fdi($this$call, $completion);
|
|
1744
1744
|
tmp.k9_1 = Unit_instance;
|
|
1745
1745
|
tmp.l9_1 = null;
|
|
1746
1746
|
return tmp.q9();
|
|
1747
1747
|
};
|
|
1748
1748
|
protoOf(pushTradingApiKey$slambda).da = function (p1, $completion) {
|
|
1749
|
-
return this.
|
|
1749
|
+
return this.rdi(p1 instanceof TrackerEntry ? p1 : THROW_CCE(), $completion);
|
|
1750
1750
|
};
|
|
1751
1751
|
protoOf(pushTradingApiKey$slambda).q9 = function () {
|
|
1752
1752
|
var suspendResult = this.k9_1;
|
|
@@ -1757,7 +1757,7 @@ protoOf(pushTradingApiKey$slambda).q9 = function () {
|
|
|
1757
1757
|
case 0:
|
|
1758
1758
|
this.j9_1 = 2;
|
|
1759
1759
|
this.i9_1 = 1;
|
|
1760
|
-
suspendResult = this.
|
|
1760
|
+
suspendResult = this.qdi_1.rdg_1.scn(this.odi_1, this.pdi_1, this);
|
|
1761
1761
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1762
1762
|
return suspendResult;
|
|
1763
1763
|
}
|
|
@@ -1767,17 +1767,17 @@ protoOf(pushTradingApiKey$slambda).q9 = function () {
|
|
|
1767
1767
|
var push = suspendResult;
|
|
1768
1768
|
var tmp_0;
|
|
1769
1769
|
if (push instanceof Held) {
|
|
1770
|
-
tmp_0 = !push.
|
|
1770
|
+
tmp_0 = !push.l8f_1.equals(KeyChange_SAME_getInstance());
|
|
1771
1771
|
} else {
|
|
1772
1772
|
tmp_0 = false;
|
|
1773
1773
|
}
|
|
1774
1774
|
|
|
1775
1775
|
if (tmp_0) {
|
|
1776
|
-
var tmp0_safe_receiver = this.
|
|
1776
|
+
var tmp0_safe_receiver = this.qdi_1.tdg_1;
|
|
1777
1777
|
if (tmp0_safe_receiver == null)
|
|
1778
1778
|
null;
|
|
1779
1779
|
else {
|
|
1780
|
-
tmp0_safe_receiver.
|
|
1780
|
+
tmp0_safe_receiver.xde();
|
|
1781
1781
|
}
|
|
1782
1782
|
}
|
|
1783
1783
|
|
|
@@ -1796,29 +1796,29 @@ protoOf(pushTradingApiKey$slambda).q9 = function () {
|
|
|
1796
1796
|
}
|
|
1797
1797
|
while (true);
|
|
1798
1798
|
};
|
|
1799
|
-
protoOf(pushTradingApiKey$slambda).
|
|
1800
|
-
var i = new pushTradingApiKey$slambda(this.
|
|
1801
|
-
i.
|
|
1799
|
+
protoOf(pushTradingApiKey$slambda).fdi = function ($this$call, completion) {
|
|
1800
|
+
var i = new pushTradingApiKey$slambda(this.odi_1, this.pdi_1, completion);
|
|
1801
|
+
i.qdi_1 = $this$call;
|
|
1802
1802
|
return i;
|
|
1803
1803
|
};
|
|
1804
1804
|
function pushTradingApiKey$slambda_0($publicKey, $secretKey, resultContinuation) {
|
|
1805
1805
|
var i = new pushTradingApiKey$slambda($publicKey, $secretKey, resultContinuation);
|
|
1806
1806
|
return constructCallableReference(function ($this$call, $completion) {
|
|
1807
|
-
return i.
|
|
1807
|
+
return i.rdi($this$call, $completion);
|
|
1808
1808
|
}, 1);
|
|
1809
1809
|
}
|
|
1810
1810
|
function pushSteamToken$slambda($accessToken, resultContinuation) {
|
|
1811
|
-
this.
|
|
1811
|
+
this.adj_1 = $accessToken;
|
|
1812
1812
|
CoroutineImpl.call(this, resultContinuation);
|
|
1813
1813
|
}
|
|
1814
|
-
protoOf(pushSteamToken$slambda).
|
|
1815
|
-
var tmp = this.
|
|
1814
|
+
protoOf(pushSteamToken$slambda).rdi = function ($this$call, $completion) {
|
|
1815
|
+
var tmp = this.fdi($this$call, $completion);
|
|
1816
1816
|
tmp.k9_1 = Unit_instance;
|
|
1817
1817
|
tmp.l9_1 = null;
|
|
1818
1818
|
return tmp.q9();
|
|
1819
1819
|
};
|
|
1820
1820
|
protoOf(pushSteamToken$slambda).da = function (p1, $completion) {
|
|
1821
|
-
return this.
|
|
1821
|
+
return this.rdi(p1 instanceof TrackerEntry ? p1 : THROW_CCE(), $completion);
|
|
1822
1822
|
};
|
|
1823
1823
|
protoOf(pushSteamToken$slambda).q9 = function () {
|
|
1824
1824
|
var suspendResult = this.k9_1;
|
|
@@ -1829,7 +1829,7 @@ protoOf(pushSteamToken$slambda).q9 = function () {
|
|
|
1829
1829
|
case 0:
|
|
1830
1830
|
this.j9_1 = 2;
|
|
1831
1831
|
this.i9_1 = 1;
|
|
1832
|
-
suspendResult = this.
|
|
1832
|
+
suspendResult = this.bdj_1.rdg_1.tcn(this.adj_1, this);
|
|
1833
1833
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1834
1834
|
return suspendResult;
|
|
1835
1835
|
}
|
|
@@ -1852,20 +1852,20 @@ protoOf(pushSteamToken$slambda).q9 = function () {
|
|
|
1852
1852
|
}
|
|
1853
1853
|
while (true);
|
|
1854
1854
|
};
|
|
1855
|
-
protoOf(pushSteamToken$slambda).
|
|
1856
|
-
var i = new pushSteamToken$slambda(this.
|
|
1857
|
-
i.
|
|
1855
|
+
protoOf(pushSteamToken$slambda).fdi = function ($this$call, completion) {
|
|
1856
|
+
var i = new pushSteamToken$slambda(this.adj_1, completion);
|
|
1857
|
+
i.bdj_1 = $this$call;
|
|
1858
1858
|
return i;
|
|
1859
1859
|
};
|
|
1860
1860
|
function pushSteamToken$slambda_0($accessToken, resultContinuation) {
|
|
1861
1861
|
var i = new pushSteamToken$slambda($accessToken, resultContinuation);
|
|
1862
1862
|
return constructCallableReference(function ($this$call, $completion) {
|
|
1863
|
-
return i.
|
|
1863
|
+
return i.rdi($this$call, $completion);
|
|
1864
1864
|
}, 1);
|
|
1865
1865
|
}
|
|
1866
1866
|
function create$lambda($accounts) {
|
|
1867
1867
|
return function (it) {
|
|
1868
|
-
return $accounts.
|
|
1868
|
+
return $accounts.edj(_SteamId___get_value__impl__qjh21u(it.r60_1));
|
|
1869
1869
|
};
|
|
1870
1870
|
}
|
|
1871
1871
|
function proofHost$lambda($onLine) {
|
|
@@ -1906,7 +1906,7 @@ function proofHost$lambda_0($onLine) {
|
|
|
1906
1906
|
// Inline function 'kotlin.runCatching' call
|
|
1907
1907
|
var tmp;
|
|
1908
1908
|
try {
|
|
1909
|
-
tmp0_safe_receiver('host', ProofOutcomeJson_getInstance().
|
|
1909
|
+
tmp0_safe_receiver('host', ProofOutcomeJson_getInstance().gde(message, warning, fields));
|
|
1910
1910
|
// Inline function 'kotlin.Companion.success' call
|
|
1911
1911
|
tmp = _Result___init__impl__xyqfz8(Unit_instance);
|
|
1912
1912
|
} catch ($p) {
|
|
@@ -1953,18 +1953,18 @@ function proofHost$lambda_1($onOutcome) {
|
|
|
1953
1953
|
};
|
|
1954
1954
|
}
|
|
1955
1955
|
function call$slambda($block, $entry, resultContinuation) {
|
|
1956
|
-
this.
|
|
1957
|
-
this.
|
|
1956
|
+
this.ndj_1 = $block;
|
|
1957
|
+
this.odj_1 = $entry;
|
|
1958
1958
|
CoroutineImpl.call(this, resultContinuation);
|
|
1959
1959
|
}
|
|
1960
|
-
protoOf(call$slambda).
|
|
1960
|
+
protoOf(call$slambda).qdj = function ($this$promise, $completion) {
|
|
1961
1961
|
var tmp = this.k1p($this$promise, $completion);
|
|
1962
1962
|
tmp.k9_1 = Unit_instance;
|
|
1963
1963
|
tmp.l9_1 = null;
|
|
1964
1964
|
return tmp.q9();
|
|
1965
1965
|
};
|
|
1966
1966
|
protoOf(call$slambda).da = function (p1, $completion) {
|
|
1967
|
-
return this.
|
|
1967
|
+
return this.qdj((!(p1 == null) ? isInterface(p1, CoroutineScope_0) : false) ? p1 : THROW_CCE(), $completion);
|
|
1968
1968
|
};
|
|
1969
1969
|
protoOf(call$slambda).q9 = function () {
|
|
1970
1970
|
var suspendResult = this.k9_1;
|
|
@@ -1975,7 +1975,7 @@ protoOf(call$slambda).q9 = function () {
|
|
|
1975
1975
|
case 0:
|
|
1976
1976
|
this.j9_1 = 2;
|
|
1977
1977
|
this.i9_1 = 1;
|
|
1978
|
-
suspendResult = this.
|
|
1978
|
+
suspendResult = this.ndj_1(this.odj_1, this);
|
|
1979
1979
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1980
1980
|
return suspendResult;
|
|
1981
1981
|
}
|
|
@@ -1998,14 +1998,14 @@ protoOf(call$slambda).q9 = function () {
|
|
|
1998
1998
|
while (true);
|
|
1999
1999
|
};
|
|
2000
2000
|
protoOf(call$slambda).k1p = function ($this$promise, completion) {
|
|
2001
|
-
var i = new call$slambda(this.
|
|
2002
|
-
i.
|
|
2001
|
+
var i = new call$slambda(this.ndj_1, this.odj_1, completion);
|
|
2002
|
+
i.pdj_1 = $this$promise;
|
|
2003
2003
|
return i;
|
|
2004
2004
|
};
|
|
2005
2005
|
function call$slambda_0($block, $entry, resultContinuation) {
|
|
2006
2006
|
var i = new call$slambda($block, $entry, resultContinuation);
|
|
2007
2007
|
return constructCallableReference(function ($this$promise, $completion) {
|
|
2008
|
-
return i.
|
|
2008
|
+
return i.qdj($this$promise, $completion);
|
|
2009
2009
|
}, 1);
|
|
2010
2010
|
}
|
|
2011
2011
|
var properties_initialized_HeadlessApi_kt_422n3l;
|
|
@@ -2048,11 +2048,11 @@ function steamNotLinkedCode() {
|
|
|
2048
2048
|
}
|
|
2049
2049
|
function minWriteTokenLifetimeMs() {
|
|
2050
2050
|
_init_properties_HeadlessConstants_kt__7kny8s();
|
|
2051
|
-
return toNumber(_Duration___get_inWholeMilliseconds__impl__msfiry(Companion_getInstance_1().
|
|
2051
|
+
return toNumber(_Duration___get_inWholeMilliseconds__impl__msfiry(Companion_getInstance_1().gcj_1));
|
|
2052
2052
|
}
|
|
2053
2053
|
function maxClockSkewMs() {
|
|
2054
2054
|
_init_properties_HeadlessConstants_kt__7kny8s();
|
|
2055
|
-
return toNumber(_Duration___get_inWholeMilliseconds__impl__msfiry(Companion_getInstance_1().
|
|
2055
|
+
return toNumber(_Duration___get_inWholeMilliseconds__impl__msfiry(Companion_getInstance_1().kcj_1));
|
|
2056
2056
|
}
|
|
2057
2057
|
function defaultNotaryUrl() {
|
|
2058
2058
|
_init_properties_HeadlessConstants_kt__7kny8s();
|
|
@@ -2150,20 +2150,20 @@ function _init_properties_HeadlessConstants_kt__7kny8s() {
|
|
|
2150
2150
|
}
|
|
2151
2151
|
}
|
|
2152
2152
|
function safeName($this, key) {
|
|
2153
|
-
return $this.
|
|
2153
|
+
return $this.pdg_1.rd(key) ? key : '(a key that is not an option name)';
|
|
2154
2154
|
}
|
|
2155
2155
|
function Companion_8() {
|
|
2156
2156
|
Companion_instance_12 = this;
|
|
2157
|
-
this.
|
|
2158
|
-
this.
|
|
2157
|
+
this.odg_1 = setOf(['dataDir', 'baseUrl', 'steamWrites', 'notaryUrl', 'onEvent', 'nowMs', 'prover', 'onProofOutcome', 'onProverLine']);
|
|
2158
|
+
this.pdg_1 = Regex_init_$Create$('^[A-Za-z][A-Za-z0-9]{0,39}$');
|
|
2159
2159
|
}
|
|
2160
|
-
protoOf(Companion_8).
|
|
2160
|
+
protoOf(Companion_8).qdg = function (options) {
|
|
2161
2161
|
// Inline function 'kotlin.require' call
|
|
2162
2162
|
if (!(typeof options === 'object' && options != null)) {
|
|
2163
2163
|
var message = 'options must be an object';
|
|
2164
2164
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2165
2165
|
}
|
|
2166
|
-
this.
|
|
2166
|
+
this.rdj(options, this.odg_1, '');
|
|
2167
2167
|
var dataDir = options.dataDir;
|
|
2168
2168
|
var tmp;
|
|
2169
2169
|
if (typeof dataDir === 'string') {
|
|
@@ -2178,32 +2178,32 @@ protoOf(Companion_8).vde = function (options) {
|
|
|
2178
2178
|
var message_0 = 'dataDir must be a non-empty string';
|
|
2179
2179
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
2180
2180
|
}
|
|
2181
|
-
var tmp0_elvis_lhs = this.
|
|
2181
|
+
var tmp0_elvis_lhs = this.sdj(options.baseUrl, 'baseUrl', 'string');
|
|
2182
2182
|
var baseUrl = tmp0_elvis_lhs == null ? 'https://api.dmarket.com' : tmp0_elvis_lhs;
|
|
2183
2183
|
// Inline function 'kotlin.require' call
|
|
2184
2184
|
if (!(startsWith(baseUrl, 'https://') || startsWith(baseUrl, 'http://'))) {
|
|
2185
2185
|
var message_1 = 'baseUrl must be an http:// or https:// URL';
|
|
2186
2186
|
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
2187
2187
|
}
|
|
2188
|
-
var tmp1_elvis_lhs = this.
|
|
2188
|
+
var tmp1_elvis_lhs = this.sdj(options.notaryUrl, 'notaryUrl', 'string');
|
|
2189
2189
|
var notaryUrl = tmp1_elvis_lhs == null ? 'wss://api.dmarket.com/provenance/v1/' : tmp1_elvis_lhs;
|
|
2190
2190
|
// Inline function 'kotlin.require' call
|
|
2191
2191
|
if (!(startsWith(notaryUrl, 'wss://') || startsWith(notaryUrl, 'ws://'))) {
|
|
2192
2192
|
var message_2 = 'notaryUrl must be a ws:// or wss:// URL';
|
|
2193
2193
|
throw IllegalArgumentException_init_$Create$(toString(message_2));
|
|
2194
2194
|
}
|
|
2195
|
-
var tmp2_elvis_lhs = this.
|
|
2195
|
+
var tmp2_elvis_lhs = this.sdj(options.steamWrites, 'steamWrites', 'boolean');
|
|
2196
2196
|
var steamWrites = tmp2_elvis_lhs == null ? true : tmp2_elvis_lhs;
|
|
2197
|
-
var onEvent = this.
|
|
2198
|
-
var nowMs = this.
|
|
2199
|
-
var proverOption = this.
|
|
2200
|
-
var prover = proverOption != null ? Companion_getInstance_13().
|
|
2201
|
-
var onProofOutcome = this.
|
|
2202
|
-
var onProverLine = this.
|
|
2203
|
-
var tmp4_elvis_lhs = prover == null ? null : prover.
|
|
2197
|
+
var onEvent = this.sdj(options.onEvent, 'onEvent', 'function');
|
|
2198
|
+
var nowMs = this.sdj(options.nowMs, 'nowMs', 'function');
|
|
2199
|
+
var proverOption = this.sdj(options.prover, 'prover', 'object');
|
|
2200
|
+
var prover = proverOption != null ? Companion_getInstance_13().qdg(proverOption) : null;
|
|
2201
|
+
var onProofOutcome = this.sdj(options.onProofOutcome, 'onProofOutcome', 'function');
|
|
2202
|
+
var onProverLine = this.sdj(options.onProverLine, 'onProverLine', 'function');
|
|
2203
|
+
var tmp4_elvis_lhs = prover == null ? null : prover.gdh_1;
|
|
2204
2204
|
return new HeadlessOptions(dataDir, baseUrl, steamWrites, tmp4_elvis_lhs == null ? notaryUrl : tmp4_elvis_lhs, onEvent, nowMs, prover, onProofOutcome, onProverLine);
|
|
2205
2205
|
};
|
|
2206
|
-
protoOf(Companion_8).
|
|
2206
|
+
protoOf(Companion_8).rdj = function (o, known, prefix) {
|
|
2207
2207
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2208
2208
|
var keys = Object.keys(o);
|
|
2209
2209
|
var tmp$ret$1;
|
|
@@ -2229,7 +2229,7 @@ protoOf(Companion_8).wdh = function (o, known, prefix) {
|
|
|
2229
2229
|
throw IllegalArgumentException_init_$Create$('unknown option: ' + prefix + safeName(Companion_getInstance_11(), tmp0_safe_receiver));
|
|
2230
2230
|
}
|
|
2231
2231
|
};
|
|
2232
|
-
protoOf(Companion_8).
|
|
2232
|
+
protoOf(Companion_8).sdj = function (value, name, type) {
|
|
2233
2233
|
if (value == null)
|
|
2234
2234
|
return null;
|
|
2235
2235
|
// Inline function 'kotlin.require' call
|
|
@@ -2247,31 +2247,31 @@ function Companion_getInstance_11() {
|
|
|
2247
2247
|
return Companion_instance_12;
|
|
2248
2248
|
}
|
|
2249
2249
|
function HeadlessOptions$clock$1($now) {
|
|
2250
|
-
this.
|
|
2250
|
+
this.vdj_1 = $now;
|
|
2251
2251
|
}
|
|
2252
2252
|
protoOf(HeadlessOptions$clock$1).cq = function () {
|
|
2253
|
-
return Companion_getInstance_0().hf(numberToLong(this.
|
|
2253
|
+
return Companion_getInstance_0().hf(numberToLong(this.vdj_1()));
|
|
2254
2254
|
};
|
|
2255
2255
|
function HeadlessOptions$eventObserver$1($callback) {
|
|
2256
|
-
this.
|
|
2256
|
+
this.wdj_1 = $callback;
|
|
2257
2257
|
}
|
|
2258
2258
|
protoOf(HeadlessOptions$eventObserver$1).m6h = function (event, $completion) {
|
|
2259
|
-
return this.
|
|
2259
|
+
return this.wdj_1(toWireJson(event));
|
|
2260
2260
|
};
|
|
2261
2261
|
function HeadlessOptions(dataDir, baseUrl, steamWrites, notaryUrl, onEvent, nowMs, prover, onProofOutcome, onProverLine) {
|
|
2262
2262
|
Companion_getInstance_11();
|
|
2263
|
-
this.
|
|
2264
|
-
this.
|
|
2265
|
-
this.
|
|
2266
|
-
this.
|
|
2267
|
-
this.
|
|
2268
|
-
this.
|
|
2269
|
-
this.
|
|
2270
|
-
this.
|
|
2271
|
-
this.
|
|
2272
|
-
}
|
|
2273
|
-
protoOf(HeadlessOptions).
|
|
2274
|
-
var tmp0_safe_receiver = this.
|
|
2263
|
+
this.wdg_1 = dataDir;
|
|
2264
|
+
this.xdg_1 = baseUrl;
|
|
2265
|
+
this.ydg_1 = steamWrites;
|
|
2266
|
+
this.zdg_1 = notaryUrl;
|
|
2267
|
+
this.adh_1 = onEvent;
|
|
2268
|
+
this.bdh_1 = nowMs;
|
|
2269
|
+
this.cdh_1 = prover;
|
|
2270
|
+
this.ddh_1 = onProofOutcome;
|
|
2271
|
+
this.edh_1 = onProverLine;
|
|
2272
|
+
}
|
|
2273
|
+
protoOf(HeadlessOptions).fdh = function () {
|
|
2274
|
+
var tmp0_safe_receiver = this.bdh_1;
|
|
2275
2275
|
var tmp;
|
|
2276
2276
|
if (tmp0_safe_receiver == null) {
|
|
2277
2277
|
tmp = null;
|
|
@@ -2281,8 +2281,8 @@ protoOf(HeadlessOptions).kdf = function () {
|
|
|
2281
2281
|
}
|
|
2282
2282
|
return tmp;
|
|
2283
2283
|
};
|
|
2284
|
-
protoOf(HeadlessOptions).
|
|
2285
|
-
var tmp0_safe_receiver = this.
|
|
2284
|
+
protoOf(HeadlessOptions).sdh = function () {
|
|
2285
|
+
var tmp0_safe_receiver = this.adh_1;
|
|
2286
2286
|
var tmp;
|
|
2287
2287
|
if (tmp0_safe_receiver == null) {
|
|
2288
2288
|
tmp = null;
|
|
@@ -2303,19 +2303,19 @@ function toJs(_this__u8e3s4) {
|
|
|
2303
2303
|
var o = plainObject();
|
|
2304
2304
|
if (_this__u8e3s4 instanceof Held) {
|
|
2305
2305
|
o.type = 'held';
|
|
2306
|
-
o.publicKey = _this__u8e3s4.
|
|
2307
|
-
o.change = _this__u8e3s4.
|
|
2306
|
+
o.publicKey = _this__u8e3s4.k8f_1;
|
|
2307
|
+
o.change = _this__u8e3s4.l8f_1.z_1;
|
|
2308
2308
|
} else {
|
|
2309
2309
|
if (_this__u8e3s4 instanceof Invalid) {
|
|
2310
2310
|
o.type = 'invalid';
|
|
2311
|
-
o.reason = _this__u8e3s4.
|
|
2311
|
+
o.reason = _this__u8e3s4.m8f_1;
|
|
2312
2312
|
} else {
|
|
2313
2313
|
if (_this__u8e3s4 instanceof AccountChanged) {
|
|
2314
2314
|
o.type = 'accountChanged';
|
|
2315
|
-
o.publicKey = _this__u8e3s4.
|
|
2316
|
-
o.heldPublicKey = _this__u8e3s4.
|
|
2317
|
-
o.linkedSteamId = _SteamId___get_value__impl__qjh21u(_this__u8e3s4.
|
|
2318
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
2315
|
+
o.publicKey = _this__u8e3s4.n8f_1;
|
|
2316
|
+
o.heldPublicKey = _this__u8e3s4.o8f_1;
|
|
2317
|
+
o.linkedSteamId = _SteamId___get_value__impl__qjh21u(_this__u8e3s4.p8f_1);
|
|
2318
|
+
var tmp1_safe_receiver = _this__u8e3s4.q8f_1;
|
|
2319
2319
|
var tmp;
|
|
2320
2320
|
var tmp_0 = tmp1_safe_receiver;
|
|
2321
2321
|
if ((tmp_0 == null ? null : new SteamId(tmp_0)) == null) {
|
|
@@ -2327,8 +2327,8 @@ function toJs(_this__u8e3s4) {
|
|
|
2327
2327
|
} else {
|
|
2328
2328
|
if (_this__u8e3s4 instanceof Unverified) {
|
|
2329
2329
|
o.type = 'unverified';
|
|
2330
|
-
o.publicKey = _this__u8e3s4.
|
|
2331
|
-
o.reason = _this__u8e3s4.
|
|
2330
|
+
o.publicKey = _this__u8e3s4.r8f_1;
|
|
2331
|
+
o.reason = _this__u8e3s4.s8f_1;
|
|
2332
2332
|
} else {
|
|
2333
2333
|
noWhenBranchMatchedException();
|
|
2334
2334
|
}
|
|
@@ -2341,13 +2341,13 @@ function toJs_0(_this__u8e3s4) {
|
|
|
2341
2341
|
var o = plainObject();
|
|
2342
2342
|
if (_this__u8e3s4 instanceof Held_0) {
|
|
2343
2343
|
o.type = 'held';
|
|
2344
|
-
o.steamId = _SteamId___get_value__impl__qjh21u(_this__u8e3s4.
|
|
2345
|
-
o.expiresAtMs = epochMs(_this__u8e3s4.
|
|
2344
|
+
o.steamId = _SteamId___get_value__impl__qjh21u(_this__u8e3s4.p8l_1);
|
|
2345
|
+
o.expiresAtMs = epochMs(_this__u8e3s4.q8l_1);
|
|
2346
2346
|
} else {
|
|
2347
2347
|
if (_this__u8e3s4 instanceof WrongAccount) {
|
|
2348
2348
|
o.type = 'wrongAccount';
|
|
2349
|
-
o.tokenSteamId = _SteamId___get_value__impl__qjh21u(_this__u8e3s4.
|
|
2350
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
2349
|
+
o.tokenSteamId = _SteamId___get_value__impl__qjh21u(_this__u8e3s4.r8l_1);
|
|
2350
|
+
var tmp1_safe_receiver = _this__u8e3s4.s8l_1;
|
|
2351
2351
|
var tmp;
|
|
2352
2352
|
var tmp_0 = tmp1_safe_receiver;
|
|
2353
2353
|
if ((tmp_0 == null ? null : new SteamId(tmp_0)) == null) {
|
|
@@ -2359,7 +2359,7 @@ function toJs_0(_this__u8e3s4) {
|
|
|
2359
2359
|
} else {
|
|
2360
2360
|
if (_this__u8e3s4 instanceof Invalid_0) {
|
|
2361
2361
|
o.type = 'invalid';
|
|
2362
|
-
o.reason = _this__u8e3s4.
|
|
2362
|
+
o.reason = _this__u8e3s4.t8l_1;
|
|
2363
2363
|
} else {
|
|
2364
2364
|
noWhenBranchMatchedException();
|
|
2365
2365
|
}
|
|
@@ -2369,8 +2369,8 @@ function toJs_0(_this__u8e3s4) {
|
|
|
2369
2369
|
}
|
|
2370
2370
|
function toJs_1(_this__u8e3s4) {
|
|
2371
2371
|
var o = plainObject();
|
|
2372
|
-
o.hasTradingApiKey = _this__u8e3s4.
|
|
2373
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2372
|
+
o.hasTradingApiKey = _this__u8e3s4.vcm_1;
|
|
2373
|
+
var tmp0_safe_receiver = _this__u8e3s4.wcm_1;
|
|
2374
2374
|
var tmp;
|
|
2375
2375
|
var tmp_0 = tmp0_safe_receiver;
|
|
2376
2376
|
if ((tmp_0 == null ? null : new SteamId(tmp_0)) == null) {
|
|
@@ -2379,8 +2379,8 @@ function toJs_1(_this__u8e3s4) {
|
|
|
2379
2379
|
tmp = _SteamId___get_value__impl__qjh21u(tmp0_safe_receiver);
|
|
2380
2380
|
}
|
|
2381
2381
|
o.steamTokenSteamId = tmp;
|
|
2382
|
-
o.steamTokenExpiresAtMs = epochMs(_this__u8e3s4.
|
|
2383
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
2382
|
+
o.steamTokenExpiresAtMs = epochMs(_this__u8e3s4.xcm_1);
|
|
2383
|
+
var tmp1_safe_receiver = _this__u8e3s4.ycm_1;
|
|
2384
2384
|
var tmp_1;
|
|
2385
2385
|
var tmp_2 = tmp1_safe_receiver;
|
|
2386
2386
|
if ((tmp_2 == null ? null : new SteamId(tmp_2)) == null) {
|
|
@@ -2389,9 +2389,9 @@ function toJs_1(_this__u8e3s4) {
|
|
|
2389
2389
|
tmp_1 = _SteamId___get_value__impl__qjh21u(tmp1_safe_receiver);
|
|
2390
2390
|
}
|
|
2391
2391
|
o.linkedSteamId = tmp_1;
|
|
2392
|
-
o.readySinceMs = epochMs(_this__u8e3s4.
|
|
2392
|
+
o.readySinceMs = epochMs(_this__u8e3s4.zcm_1);
|
|
2393
2393
|
// Inline function 'kotlin.collections.map' call
|
|
2394
|
-
var this_0 = _this__u8e3s4.
|
|
2394
|
+
var this_0 = _this__u8e3s4.acn_1;
|
|
2395
2395
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2396
2396
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
2397
2397
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -2403,7 +2403,7 @@ function toJs_1(_this__u8e3s4) {
|
|
|
2403
2403
|
}
|
|
2404
2404
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
2405
2405
|
o.trackedDealIds = copyToArray(destination);
|
|
2406
|
-
var tmp2_safe_receiver = _this__u8e3s4.
|
|
2406
|
+
var tmp2_safe_receiver = _this__u8e3s4.bcn_1;
|
|
2407
2407
|
var tmp_3;
|
|
2408
2408
|
var tmp_4 = tmp2_safe_receiver;
|
|
2409
2409
|
if ((tmp_4 == null ? null : new Duration(tmp_4)) == null) {
|
|
@@ -2413,14 +2413,14 @@ function toJs_1(_this__u8e3s4) {
|
|
|
2413
2413
|
}
|
|
2414
2414
|
var tmp3_safe_receiver = tmp_3;
|
|
2415
2415
|
o.clockOffsetMs = tmp3_safe_receiver == null ? null : toNumber(tmp3_safe_receiver);
|
|
2416
|
-
o.clockSkewed = _this__u8e3s4.
|
|
2417
|
-
o.steamNotLinked = _this__u8e3s4.
|
|
2418
|
-
o.updateRequired = _this__u8e3s4.
|
|
2419
|
-
o.updateDueTimeMs = epochMs(_this__u8e3s4.
|
|
2416
|
+
o.clockSkewed = _this__u8e3s4.gcn();
|
|
2417
|
+
o.steamNotLinked = _this__u8e3s4.ccn_1;
|
|
2418
|
+
o.updateRequired = _this__u8e3s4.dcn_1;
|
|
2419
|
+
o.updateDueTimeMs = epochMs(_this__u8e3s4.ecn_1);
|
|
2420
2420
|
var deadlines = plainObject();
|
|
2421
2421
|
// Inline function 'kotlin.collections.forEach' call
|
|
2422
2422
|
// Inline function 'kotlin.collections.iterator' call
|
|
2423
|
-
var _iterator__ex2g4s_0 = _this__u8e3s4.
|
|
2423
|
+
var _iterator__ex2g4s_0 = _this__u8e3s4.fcn_1.n1().t();
|
|
2424
2424
|
while (_iterator__ex2g4s_0.u()) {
|
|
2425
2425
|
var element = _iterator__ex2g4s_0.v();
|
|
2426
2426
|
// Inline function 'kotlin.collections.component1' call
|
|
@@ -2466,10 +2466,10 @@ function join_0($this, parts) {
|
|
|
2466
2466
|
return accumulator;
|
|
2467
2467
|
}
|
|
2468
2468
|
function Companion_9() {
|
|
2469
|
-
this.
|
|
2470
|
-
this.
|
|
2469
|
+
this.pdh_1 = '@dmarket/p2p-tracker-headless';
|
|
2470
|
+
this.qdh_1 = 'prover-child.mjs';
|
|
2471
2471
|
}
|
|
2472
|
-
protoOf(Companion_9).
|
|
2472
|
+
protoOf(Companion_9).rdh = function (packageRoot, assetsDir) {
|
|
2473
2473
|
var tmp1_elvis_lhs = packageRoot == null ? installedRoot(this) : packageRoot;
|
|
2474
2474
|
var tmp;
|
|
2475
2475
|
if (tmp1_elvis_lhs == null) {
|
|
@@ -2482,7 +2482,7 @@ protoOf(Companion_9).wdf = function (packageRoot, assetsDir) {
|
|
|
2482
2482
|
var root = tmp;
|
|
2483
2483
|
var tmp_0 = join_0(this, [root, 'prover-child.mjs']);
|
|
2484
2484
|
var files = new ProverFiles(tmp_0, assetsDir == null ? root : assetsDir);
|
|
2485
|
-
var required = listOf([files.
|
|
2485
|
+
var required = listOf([files.tdh_1, join_0(this, [files.udh_1, 'pkg', 'client_wasm_bg.wasm']), join_0(this, [files.udh_1, 'transport', 'dist', 'node.js'])]);
|
|
2486
2486
|
var tmp$ret$1;
|
|
2487
2487
|
$l$block: {
|
|
2488
2488
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
@@ -2513,11 +2513,11 @@ function Companion_getInstance_12() {
|
|
|
2513
2513
|
return Companion_instance_13;
|
|
2514
2514
|
}
|
|
2515
2515
|
function ProverFiles(script, assetsDir) {
|
|
2516
|
-
this.
|
|
2517
|
-
this.
|
|
2516
|
+
this.tdh_1 = script;
|
|
2517
|
+
this.udh_1 = assetsDir;
|
|
2518
2518
|
}
|
|
2519
2519
|
function whole($this, value, name, range) {
|
|
2520
|
-
var tmp0_elvis_lhs = Companion_getInstance_11().
|
|
2520
|
+
var tmp0_elvis_lhs = Companion_getInstance_11().sdj(value, name, 'number');
|
|
2521
2521
|
var tmp;
|
|
2522
2522
|
if (tmp0_elvis_lhs == null) {
|
|
2523
2523
|
return null;
|
|
@@ -2543,7 +2543,7 @@ function whole($this, value, name, range) {
|
|
|
2543
2543
|
return numberToInt(number);
|
|
2544
2544
|
}
|
|
2545
2545
|
function milliseconds($this, value, name) {
|
|
2546
|
-
var tmp0_elvis_lhs = Companion_getInstance_11().
|
|
2546
|
+
var tmp0_elvis_lhs = Companion_getInstance_11().sdj(value, name, 'number');
|
|
2547
2547
|
var tmp;
|
|
2548
2548
|
if (tmp0_elvis_lhs == null) {
|
|
2549
2549
|
return null;
|
|
@@ -2570,24 +2570,24 @@ function milliseconds($this, value, name) {
|
|
|
2570
2570
|
}
|
|
2571
2571
|
function Companion_10() {
|
|
2572
2572
|
Companion_instance_14 = this;
|
|
2573
|
-
this.
|
|
2574
|
-
this.
|
|
2573
|
+
this.tdj_1 = setOf(['notaryUrl', 'mode', 'transport', 'maxConcurrency', 'proofsPerChild', 'threadCount', 'assetsDir', 'connectDeadlineMs', 'sessionDeadlineMs']);
|
|
2574
|
+
this.udj_1 = new ProverLimits();
|
|
2575
2575
|
}
|
|
2576
|
-
protoOf(Companion_10).
|
|
2576
|
+
protoOf(Companion_10).qdg = function (prover) {
|
|
2577
2577
|
var tmp = Array.isArray(prover);
|
|
2578
2578
|
// Inline function 'kotlin.require' call
|
|
2579
2579
|
if (!!((!(tmp == null) ? typeof tmp === 'boolean' : false) ? tmp : THROW_CCE())) {
|
|
2580
2580
|
var message = 'prover must be an object';
|
|
2581
2581
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2582
2582
|
}
|
|
2583
|
-
Companion_getInstance_11().
|
|
2584
|
-
var notaryUrl = Companion_getInstance_11().
|
|
2583
|
+
Companion_getInstance_11().rdj(prover, this.tdj_1, 'prover.');
|
|
2584
|
+
var notaryUrl = Companion_getInstance_11().sdj(prover.notaryUrl, 'prover.notaryUrl', 'string');
|
|
2585
2585
|
// Inline function 'kotlin.require' call
|
|
2586
2586
|
if (!(notaryUrl == null || startsWith(notaryUrl, 'wss://') || startsWith(notaryUrl, 'ws://'))) {
|
|
2587
2587
|
var message_0 = 'prover.notaryUrl must be a ws:// or wss:// URL';
|
|
2588
2588
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
2589
2589
|
}
|
|
2590
|
-
var assetsDir = Companion_getInstance_11().
|
|
2590
|
+
var assetsDir = Companion_getInstance_11().sdj(prover.assetsDir, 'prover.assetsDir', 'string');
|
|
2591
2591
|
var tmp_0;
|
|
2592
2592
|
if (assetsDir == null) {
|
|
2593
2593
|
tmp_0 = true;
|
|
@@ -2601,9 +2601,9 @@ protoOf(Companion_10).vde = function (prover) {
|
|
|
2601
2601
|
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
2602
2602
|
}
|
|
2603
2603
|
var tmp_1 = Companion_instance_2;
|
|
2604
|
-
var tmp0_elvis_lhs = Companion_getInstance_11().
|
|
2604
|
+
var tmp0_elvis_lhs = Companion_getInstance_11().sdj(prover.mode, 'prover.mode', 'string');
|
|
2605
2605
|
var mode = tmp_1.x5m(tmp0_elvis_lhs == null ? 'mpc' : tmp0_elvis_lhs);
|
|
2606
|
-
var tmp1_elvis_lhs = Companion_getInstance_11().
|
|
2606
|
+
var tmp1_elvis_lhs = Companion_getInstance_11().sdj(prover.transport, 'prover.transport', 'string');
|
|
2607
2607
|
var transport = tmp1_elvis_lhs == null ? 'direct' : tmp1_elvis_lhs;
|
|
2608
2608
|
// Inline function 'kotlin.require' call
|
|
2609
2609
|
if (!(transport === 'direct' || transport === 'egress')) {
|
|
@@ -2625,7 +2625,7 @@ protoOf(Companion_10).vde = function (prover) {
|
|
|
2625
2625
|
var tmp_2;
|
|
2626
2626
|
var tmp_3 = tmp5_elvis_lhs;
|
|
2627
2627
|
if ((tmp_3 == null ? null : new Duration(tmp_3)) == null) {
|
|
2628
|
-
tmp_2 = this.
|
|
2628
|
+
tmp_2 = this.udj_1.xdj_1;
|
|
2629
2629
|
} else {
|
|
2630
2630
|
tmp_2 = tmp5_elvis_lhs;
|
|
2631
2631
|
}
|
|
@@ -2634,7 +2634,7 @@ protoOf(Companion_10).vde = function (prover) {
|
|
|
2634
2634
|
var tmp_4;
|
|
2635
2635
|
var tmp_5 = tmp6_elvis_lhs;
|
|
2636
2636
|
if ((tmp_5 == null ? null : new Duration(tmp_5)) == null) {
|
|
2637
|
-
tmp_4 = this.
|
|
2637
|
+
tmp_4 = this.udj_1.ydj_1;
|
|
2638
2638
|
} else {
|
|
2639
2639
|
tmp_4 = tmp6_elvis_lhs;
|
|
2640
2640
|
}
|
|
@@ -2649,15 +2649,15 @@ function Companion_getInstance_13() {
|
|
|
2649
2649
|
}
|
|
2650
2650
|
function ProverOptions(notaryUrl, maxConcurrency, proofsPerChild, threadCount, assetsDir, connectDeadline, sessionDeadline, mode, transport) {
|
|
2651
2651
|
Companion_getInstance_13();
|
|
2652
|
-
this.
|
|
2653
|
-
this.
|
|
2654
|
-
this.
|
|
2655
|
-
this.
|
|
2656
|
-
this.
|
|
2657
|
-
this.
|
|
2658
|
-
this.
|
|
2659
|
-
this.
|
|
2660
|
-
this.
|
|
2652
|
+
this.gdh_1 = notaryUrl;
|
|
2653
|
+
this.hdh_1 = maxConcurrency;
|
|
2654
|
+
this.idh_1 = proofsPerChild;
|
|
2655
|
+
this.jdh_1 = threadCount;
|
|
2656
|
+
this.kdh_1 = assetsDir;
|
|
2657
|
+
this.ldh_1 = connectDeadline;
|
|
2658
|
+
this.mdh_1 = sessionDeadline;
|
|
2659
|
+
this.ndh_1 = mode;
|
|
2660
|
+
this.odh_1 = transport;
|
|
2661
2661
|
}
|
|
2662
2662
|
function file($this, key) {
|
|
2663
2663
|
// Inline function 'kotlin.require' call
|
|
@@ -2666,18 +2666,18 @@ function file($this, key) {
|
|
|
2666
2666
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2667
2667
|
}
|
|
2668
2668
|
// Inline function 'kotlin.require' call
|
|
2669
|
-
if (!Companion_getInstance_14().
|
|
2669
|
+
if (!Companion_getInstance_14().bdk_1.rd(key)) {
|
|
2670
2670
|
var message_0 = 'storage key must be [A-Za-z0-9._-]+: ' + key;
|
|
2671
2671
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
2672
2672
|
}
|
|
2673
|
-
return join($this.
|
|
2673
|
+
return join($this.fdk_1, key);
|
|
2674
2674
|
}
|
|
2675
2675
|
function Companion_11() {
|
|
2676
2676
|
Companion_instance_15 = this;
|
|
2677
|
-
this.
|
|
2678
|
-
this.
|
|
2679
|
-
this.
|
|
2680
|
-
this.
|
|
2677
|
+
this.bdk_1 = Regex_init_$Create$('^[A-Za-z0-9._-]+$');
|
|
2678
|
+
this.cdk_1 = 6;
|
|
2679
|
+
this.ddk_1 = 448;
|
|
2680
|
+
this.edk_1 = 384;
|
|
2681
2681
|
}
|
|
2682
2682
|
var Companion_instance_15;
|
|
2683
2683
|
function Companion_getInstance_14() {
|
|
@@ -2687,8 +2687,8 @@ function Companion_getInstance_14() {
|
|
|
2687
2687
|
}
|
|
2688
2688
|
function $getCOROUTINE$(_this__u8e3s4, key, resultContinuation) {
|
|
2689
2689
|
CoroutineImpl.call(this, resultContinuation);
|
|
2690
|
-
this.
|
|
2691
|
-
this.
|
|
2690
|
+
this.pdk_1 = _this__u8e3s4;
|
|
2691
|
+
this.qdk_1 = key;
|
|
2692
2692
|
}
|
|
2693
2693
|
protoOf($getCOROUTINE$).q9 = function () {
|
|
2694
2694
|
var suspendResult = this.k9_1;
|
|
@@ -2700,14 +2700,14 @@ protoOf($getCOROUTINE$).q9 = function () {
|
|
|
2700
2700
|
this.j9_1 = 3;
|
|
2701
2701
|
this.j9_1 = 2;
|
|
2702
2702
|
this.i9_1 = 1;
|
|
2703
|
-
suspendResult = await_0(readFile(file(this.
|
|
2703
|
+
suspendResult = await_0(readFile(file(this.pdk_1, this.qdk_1), 'utf8'), this);
|
|
2704
2704
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2705
2705
|
return suspendResult;
|
|
2706
2706
|
}
|
|
2707
2707
|
|
|
2708
2708
|
continue $sm;
|
|
2709
2709
|
case 1:
|
|
2710
|
-
this.
|
|
2710
|
+
this.rdk_1 = suspendResult;
|
|
2711
2711
|
this.j9_1 = 3;
|
|
2712
2712
|
this.i9_1 = 4;
|
|
2713
2713
|
continue $sm;
|
|
@@ -2723,7 +2723,7 @@ protoOf($getCOROUTINE$).q9 = function () {
|
|
|
2723
2723
|
} else {
|
|
2724
2724
|
throw e;
|
|
2725
2725
|
}
|
|
2726
|
-
tmp_1.
|
|
2726
|
+
tmp_1.rdk_1 = tmp_2;
|
|
2727
2727
|
this.i9_1 = 4;
|
|
2728
2728
|
continue $sm;
|
|
2729
2729
|
} else {
|
|
@@ -2734,7 +2734,7 @@ protoOf($getCOROUTINE$).q9 = function () {
|
|
|
2734
2734
|
throw this.l9_1;
|
|
2735
2735
|
case 4:
|
|
2736
2736
|
this.j9_1 = 3;
|
|
2737
|
-
return this.
|
|
2737
|
+
return this.rdk_1;
|
|
2738
2738
|
}
|
|
2739
2739
|
} catch ($p) {
|
|
2740
2740
|
var e_0 = $p;
|
|
@@ -2749,9 +2749,9 @@ protoOf($getCOROUTINE$).q9 = function () {
|
|
|
2749
2749
|
};
|
|
2750
2750
|
function $setCOROUTINE$(_this__u8e3s4, key, value, resultContinuation) {
|
|
2751
2751
|
CoroutineImpl.call(this, resultContinuation);
|
|
2752
|
-
this.
|
|
2753
|
-
this.
|
|
2754
|
-
this.
|
|
2752
|
+
this.adl_1 = _this__u8e3s4;
|
|
2753
|
+
this.bdl_1 = key;
|
|
2754
|
+
this.cdl_1 = value;
|
|
2755
2755
|
}
|
|
2756
2756
|
protoOf($setCOROUTINE$).q9 = function () {
|
|
2757
2757
|
var suspendResult = this.k9_1;
|
|
@@ -2761,13 +2761,13 @@ protoOf($setCOROUTINE$).q9 = function () {
|
|
|
2761
2761
|
switch (tmp) {
|
|
2762
2762
|
case 0:
|
|
2763
2763
|
this.j9_1 = 5;
|
|
2764
|
-
this.
|
|
2765
|
-
if (!this.
|
|
2764
|
+
this.ddl_1 = file(this.adl_1, this.bdl_1);
|
|
2765
|
+
if (!this.adl_1.gdk_1) {
|
|
2766
2766
|
this.i9_1 = 1;
|
|
2767
2767
|
var this_0 = {};
|
|
2768
2768
|
this_0.recursive = true;
|
|
2769
2769
|
this_0.mode = 448;
|
|
2770
|
-
suspendResult = await_0(mkdir(this.
|
|
2770
|
+
suspendResult = await_0(mkdir(this.adl_1.fdk_1, this_0), this);
|
|
2771
2771
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2772
2772
|
return suspendResult;
|
|
2773
2773
|
}
|
|
@@ -2778,18 +2778,18 @@ protoOf($setCOROUTINE$).q9 = function () {
|
|
|
2778
2778
|
}
|
|
2779
2779
|
|
|
2780
2780
|
case 1:
|
|
2781
|
-
this.
|
|
2781
|
+
this.adl_1.gdk_1 = true;
|
|
2782
2782
|
this.i9_1 = 2;
|
|
2783
2783
|
continue $sm;
|
|
2784
2784
|
case 2:
|
|
2785
2785
|
var tmp_0 = this;
|
|
2786
2786
|
var tmp_1 = randomBytes(6).toString('hex');
|
|
2787
|
-
tmp_0.
|
|
2787
|
+
tmp_0.edl_1 = this.ddl_1 + '.' + ((!(tmp_1 == null) ? typeof tmp_1 === 'string' : false) ? tmp_1 : THROW_CCE()) + '.tmp';
|
|
2788
2788
|
this.i9_1 = 3;
|
|
2789
2789
|
var this_1 = {};
|
|
2790
2790
|
this_1.encoding = 'utf8';
|
|
2791
2791
|
this_1.mode = 384;
|
|
2792
|
-
suspendResult = await_0(writeFile(this.
|
|
2792
|
+
suspendResult = await_0(writeFile(this.edl_1, this.cdl_1, this_1), this);
|
|
2793
2793
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2794
2794
|
return suspendResult;
|
|
2795
2795
|
}
|
|
@@ -2797,7 +2797,7 @@ protoOf($setCOROUTINE$).q9 = function () {
|
|
|
2797
2797
|
continue $sm;
|
|
2798
2798
|
case 3:
|
|
2799
2799
|
this.i9_1 = 4;
|
|
2800
|
-
suspendResult = await_0(rename(this.
|
|
2800
|
+
suspendResult = await_0(rename(this.edl_1, this.ddl_1), this);
|
|
2801
2801
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2802
2802
|
return suspendResult;
|
|
2803
2803
|
}
|
|
@@ -2821,8 +2821,8 @@ protoOf($setCOROUTINE$).q9 = function () {
|
|
|
2821
2821
|
};
|
|
2822
2822
|
function $removeCOROUTINE$(_this__u8e3s4, key, resultContinuation) {
|
|
2823
2823
|
CoroutineImpl.call(this, resultContinuation);
|
|
2824
|
-
this.
|
|
2825
|
-
this.
|
|
2824
|
+
this.ndl_1 = _this__u8e3s4;
|
|
2825
|
+
this.odl_1 = key;
|
|
2826
2826
|
}
|
|
2827
2827
|
protoOf($removeCOROUTINE$).q9 = function () {
|
|
2828
2828
|
var suspendResult = this.k9_1;
|
|
@@ -2834,7 +2834,7 @@ protoOf($removeCOROUTINE$).q9 = function () {
|
|
|
2834
2834
|
this.j9_1 = 3;
|
|
2835
2835
|
this.j9_1 = 2;
|
|
2836
2836
|
this.i9_1 = 1;
|
|
2837
|
-
suspendResult = await_0(unlink(file(this.
|
|
2837
|
+
suspendResult = await_0(unlink(file(this.ndl_1, this.odl_1)), this);
|
|
2838
2838
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2839
2839
|
return suspendResult;
|
|
2840
2840
|
}
|
|
@@ -2876,8 +2876,8 @@ protoOf($removeCOROUTINE$).q9 = function () {
|
|
|
2876
2876
|
};
|
|
2877
2877
|
function FileKeyValueStore(dir) {
|
|
2878
2878
|
Companion_getInstance_14();
|
|
2879
|
-
this.
|
|
2880
|
-
this.
|
|
2879
|
+
this.fdk_1 = dir;
|
|
2880
|
+
this.gdk_1 = false;
|
|
2881
2881
|
}
|
|
2882
2882
|
protoOf(FileKeyValueStore).k6t = function (key, $completion) {
|
|
2883
2883
|
var tmp = new $getCOROUTINE$(this, key, $completion);
|
|
@@ -2899,7 +2899,7 @@ protoOf(FileKeyValueStore).m6t = function (key, $completion) {
|
|
|
2899
2899
|
};
|
|
2900
2900
|
function Companion_12() {
|
|
2901
2901
|
Companion_instance_16 = this;
|
|
2902
|
-
this.
|
|
2902
|
+
this.pdl_1 = Regex_init_$Create$('^[0-9]{1,20}$');
|
|
2903
2903
|
}
|
|
2904
2904
|
var Companion_instance_16;
|
|
2905
2905
|
function Companion_getInstance_15() {
|
|
@@ -2909,23 +2909,23 @@ function Companion_getInstance_15() {
|
|
|
2909
2909
|
}
|
|
2910
2910
|
function AccountDirectories(dataDir) {
|
|
2911
2911
|
Companion_getInstance_15();
|
|
2912
|
-
this.
|
|
2912
|
+
this.cdj_1 = dataDir;
|
|
2913
2913
|
var tmp = this;
|
|
2914
2914
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
2915
|
-
tmp.
|
|
2915
|
+
tmp.ddj_1 = LinkedHashMap_init_$Create$();
|
|
2916
2916
|
}
|
|
2917
|
-
protoOf(AccountDirectories).
|
|
2917
|
+
protoOf(AccountDirectories).edj = function (steamId) {
|
|
2918
2918
|
// Inline function 'kotlin.require' call
|
|
2919
|
-
if (!Companion_getInstance_15().
|
|
2919
|
+
if (!Companion_getInstance_15().pdl_1.rd(steamId)) {
|
|
2920
2920
|
var message = 'not a steamid64';
|
|
2921
2921
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2922
2922
|
}
|
|
2923
2923
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
2924
|
-
var this_0 = this.
|
|
2924
|
+
var this_0 = this.ddj_1;
|
|
2925
2925
|
var value = this_0.x2(steamId);
|
|
2926
2926
|
var tmp;
|
|
2927
2927
|
if (value == null) {
|
|
2928
|
-
var answer = new FileKeyValueStore(join(this.
|
|
2928
|
+
var answer = new FileKeyValueStore(join(this.cdj_1, steamId));
|
|
2929
2929
|
this_0.a3(steamId, answer);
|
|
2930
2930
|
tmp = answer;
|
|
2931
2931
|
} else {
|
|
@@ -2989,7 +2989,7 @@ function get_PROVER_ENV_ALLOWED() {
|
|
|
2989
2989
|
}
|
|
2990
2990
|
var PROVER_ENV_ALLOWED;
|
|
2991
2991
|
function Companion_13() {
|
|
2992
|
-
this.
|
|
2992
|
+
this.qdl_1 = 5;
|
|
2993
2993
|
}
|
|
2994
2994
|
var Companion_instance_17;
|
|
2995
2995
|
function Companion_getInstance_16() {
|
|
@@ -3024,14 +3024,14 @@ function ProverLimits(connectDeadline, sessionDeadline, proofsPerChild, exitGrac
|
|
|
3024
3024
|
tmp_1 = exitGrace;
|
|
3025
3025
|
}
|
|
3026
3026
|
exitGrace = tmp_1;
|
|
3027
|
-
this.
|
|
3028
|
-
this.
|
|
3029
|
-
this.
|
|
3030
|
-
this.
|
|
3031
|
-
var containsArg = this.
|
|
3027
|
+
this.xdj_1 = connectDeadline;
|
|
3028
|
+
this.ydj_1 = sessionDeadline;
|
|
3029
|
+
this.zdj_1 = proofsPerChild;
|
|
3030
|
+
this.adk_1 = exitGrace;
|
|
3031
|
+
var containsArg = this.zdj_1;
|
|
3032
3032
|
// Inline function 'kotlin.require' call
|
|
3033
3033
|
if (!(1 <= containsArg ? containsArg <= 5 : false)) {
|
|
3034
|
-
var message = 'proofsPerChild must be 1..5, was ' + this.
|
|
3034
|
+
var message = 'proofsPerChild must be 1..5, was ' + this.zdj_1;
|
|
3035
3035
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
3036
3036
|
}
|
|
3037
3037
|
}
|
|
@@ -3046,7 +3046,7 @@ function killed($this, cause, detail) {
|
|
|
3046
3046
|
}
|
|
3047
3047
|
function takeIdle($this) {
|
|
3048
3048
|
while (true) {
|
|
3049
|
-
var tmp0_elvis_lhs = $this.
|
|
3049
|
+
var tmp0_elvis_lhs = $this.tdm_1.ah();
|
|
3050
3050
|
var tmp;
|
|
3051
3051
|
if (tmp0_elvis_lhs == null) {
|
|
3052
3052
|
return null;
|
|
@@ -3054,29 +3054,29 @@ function takeIdle($this) {
|
|
|
3054
3054
|
tmp = tmp0_elvis_lhs;
|
|
3055
3055
|
}
|
|
3056
3056
|
var child = tmp;
|
|
3057
|
-
if (!child.
|
|
3057
|
+
if (!child.ddn_1)
|
|
3058
3058
|
return child;
|
|
3059
3059
|
}
|
|
3060
3060
|
}
|
|
3061
3061
|
function release($this, child, outcome) {
|
|
3062
3062
|
var tmp;
|
|
3063
3063
|
if (outcome instanceof Failed) {
|
|
3064
|
-
var tmp_0 = outcome.
|
|
3064
|
+
var tmp_0 = outcome.bc5_1;
|
|
3065
3065
|
tmp = tmp_0 instanceof ProverKilled;
|
|
3066
3066
|
} else {
|
|
3067
3067
|
tmp = false;
|
|
3068
3068
|
}
|
|
3069
3069
|
var killed = tmp;
|
|
3070
|
-
if (killed || child.
|
|
3071
|
-
$this.
|
|
3072
|
-
child.
|
|
3070
|
+
if (killed || child.ddn_1 || child.cdn_1 >= $this.mdm_1.zdj_1) {
|
|
3071
|
+
$this.udm_1.e3(child);
|
|
3072
|
+
child.fdn($this.mdm_1.adk_1);
|
|
3073
3073
|
} else {
|
|
3074
|
-
$this.
|
|
3074
|
+
$this.tdm_1.yg(child);
|
|
3075
3075
|
}
|
|
3076
3076
|
}
|
|
3077
3077
|
function fork($this) {
|
|
3078
3078
|
var options = {};
|
|
3079
|
-
options.env = toJsObject($this.
|
|
3079
|
+
options.env = toJsObject($this.ndm_1);
|
|
3080
3080
|
// Inline function 'kotlin.emptyArray' call
|
|
3081
3081
|
options.execArgv = [];
|
|
3082
3082
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -3085,14 +3085,14 @@ function fork($this) {
|
|
|
3085
3085
|
options.stdio = ['ignore', 'pipe', 'pipe', 'ipc'];
|
|
3086
3086
|
options.serialization = 'json';
|
|
3087
3087
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
3088
|
-
var this_0 = $this.
|
|
3088
|
+
var this_0 = $this.jdm_1;
|
|
3089
3089
|
var tmp$ret$4 = copyToArray(this_0);
|
|
3090
|
-
var process = com_dmarket_p2p_headless_node_nodeChildProcess_579ejd.fork($this.
|
|
3091
|
-
$this.
|
|
3090
|
+
var process = com_dmarket_p2p_headless_node_nodeChildProcess_579ejd.fork($this.idm_1, tmp$ret$4, options);
|
|
3091
|
+
$this.wdm_1 = $this.wdm_1 + 1 | 0;
|
|
3092
3092
|
// Inline function 'kotlin.also' call
|
|
3093
|
-
var this_1 = new ForkedChild(process, $this.
|
|
3093
|
+
var this_1 = new ForkedChild(process, $this.pdm_1, $this.qdm_1);
|
|
3094
3094
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
3095
|
-
$this.
|
|
3095
|
+
$this.udm_1.e1(this_1);
|
|
3096
3096
|
return this_1;
|
|
3097
3097
|
}
|
|
3098
3098
|
function ForkedProofHost$_init_$lambda_p9fnmo(_unused_var__etf5q3, _unused_var__etf5q3_0, _unused_var__etf5q3_1) {
|
|
@@ -3105,17 +3105,17 @@ function ForkedProofHost$_init_$lambda_p9fnmo_1(_unused_var__etf5q3, _unused_var
|
|
|
3105
3105
|
return Unit_instance;
|
|
3106
3106
|
}
|
|
3107
3107
|
function ForkedProofHost$run$slambda($child, resultContinuation) {
|
|
3108
|
-
this.
|
|
3108
|
+
this.odn_1 = $child;
|
|
3109
3109
|
CoroutineImpl.call(this, resultContinuation);
|
|
3110
3110
|
}
|
|
3111
|
-
protoOf(ForkedProofHost$run$slambda).
|
|
3111
|
+
protoOf(ForkedProofHost$run$slambda).qdn = function ($this$withTimeoutOrNull, $completion) {
|
|
3112
3112
|
var tmp = this.k1p($this$withTimeoutOrNull, $completion);
|
|
3113
3113
|
tmp.k9_1 = Unit_instance;
|
|
3114
3114
|
tmp.l9_1 = null;
|
|
3115
3115
|
return tmp.q9();
|
|
3116
3116
|
};
|
|
3117
3117
|
protoOf(ForkedProofHost$run$slambda).da = function (p1, $completion) {
|
|
3118
|
-
return this.
|
|
3118
|
+
return this.qdn((!(p1 == null) ? isInterface(p1, CoroutineScope_0) : false) ? p1 : THROW_CCE(), $completion);
|
|
3119
3119
|
};
|
|
3120
3120
|
protoOf(ForkedProofHost$run$slambda).q9 = function () {
|
|
3121
3121
|
var suspendResult = this.k9_1;
|
|
@@ -3126,7 +3126,7 @@ protoOf(ForkedProofHost$run$slambda).q9 = function () {
|
|
|
3126
3126
|
case 0:
|
|
3127
3127
|
this.j9_1 = 2;
|
|
3128
3128
|
this.i9_1 = 1;
|
|
3129
|
-
suspendResult = this.
|
|
3129
|
+
suspendResult = this.odn_1.adn_1.i1h(this);
|
|
3130
3130
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3131
3131
|
return suspendResult;
|
|
3132
3132
|
}
|
|
@@ -3149,21 +3149,21 @@ protoOf(ForkedProofHost$run$slambda).q9 = function () {
|
|
|
3149
3149
|
while (true);
|
|
3150
3150
|
};
|
|
3151
3151
|
protoOf(ForkedProofHost$run$slambda).k1p = function ($this$withTimeoutOrNull, completion) {
|
|
3152
|
-
var i = new ForkedProofHost$run$slambda(this.
|
|
3153
|
-
i.
|
|
3152
|
+
var i = new ForkedProofHost$run$slambda(this.odn_1, completion);
|
|
3153
|
+
i.pdn_1 = $this$withTimeoutOrNull;
|
|
3154
3154
|
return i;
|
|
3155
3155
|
};
|
|
3156
3156
|
function ForkedProofHost$run$slambda_0($child, resultContinuation) {
|
|
3157
3157
|
var i = new ForkedProofHost$run$slambda($child, resultContinuation);
|
|
3158
3158
|
return constructCallableReference(function ($this$withTimeoutOrNull, $completion) {
|
|
3159
|
-
return i.
|
|
3159
|
+
return i.qdn($this$withTimeoutOrNull, $completion);
|
|
3160
3160
|
}, 1);
|
|
3161
3161
|
}
|
|
3162
3162
|
function $proveCOROUTINE$(_this__u8e3s4, proof, upgrade, resultContinuation) {
|
|
3163
3163
|
CoroutineImpl.call(this, resultContinuation);
|
|
3164
|
-
this.
|
|
3165
|
-
this.
|
|
3166
|
-
this.
|
|
3164
|
+
this.zdn_1 = _this__u8e3s4;
|
|
3165
|
+
this.ado_1 = proof;
|
|
3166
|
+
this.bdo_1 = upgrade;
|
|
3167
3167
|
}
|
|
3168
3168
|
protoOf($proveCOROUTINE$).q9 = function () {
|
|
3169
3169
|
var suspendResult = this.k9_1;
|
|
@@ -3173,20 +3173,20 @@ protoOf($proveCOROUTINE$).q9 = function () {
|
|
|
3173
3173
|
switch (tmp) {
|
|
3174
3174
|
case 0:
|
|
3175
3175
|
this.j9_1 = 6;
|
|
3176
|
-
this.
|
|
3177
|
-
var tmp0_safe_receiver = this.
|
|
3176
|
+
this.ddo_1 = this.ado_1.uc6_1.ic7_1;
|
|
3177
|
+
var tmp0_safe_receiver = this.zdn_1.odm_1.ude(this.zdn_1.ldm_1.cq());
|
|
3178
3178
|
if (tmp0_safe_receiver == null)
|
|
3179
3179
|
null;
|
|
3180
3180
|
else {
|
|
3181
3181
|
var held = new NotStarted(tmp0_safe_receiver);
|
|
3182
|
-
this.
|
|
3182
|
+
this.zdn_1.rdm_1(this.ddo_1, held);
|
|
3183
3183
|
return new Failed(held);
|
|
3184
3184
|
}
|
|
3185
3185
|
|
|
3186
|
-
this.
|
|
3187
|
-
this.
|
|
3186
|
+
this.jdo_1 = this.zdn_1.sdm_1;
|
|
3187
|
+
this.ido_1 = null;
|
|
3188
3188
|
this.i9_1 = 1;
|
|
3189
|
-
suspendResult = this.
|
|
3189
|
+
suspendResult = this.jdo_1.b1v(this.ido_1, this);
|
|
3190
3190
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3191
3191
|
return suspendResult;
|
|
3192
3192
|
}
|
|
@@ -3197,35 +3197,35 @@ protoOf($proveCOROUTINE$).q9 = function () {
|
|
|
3197
3197
|
l$ret$1: do {
|
|
3198
3198
|
var tmp_0;
|
|
3199
3199
|
try {
|
|
3200
|
-
var tmp0_elvis_lhs = takeIdle(this.
|
|
3201
|
-
var tmp_1 = tmp0_elvis_lhs == null ? fork(this.
|
|
3202
|
-
var _unary__edvuaz = this.
|
|
3203
|
-
this.
|
|
3200
|
+
var tmp0_elvis_lhs = takeIdle(this.zdn_1);
|
|
3201
|
+
var tmp_1 = tmp0_elvis_lhs == null ? fork(this.zdn_1) : tmp0_elvis_lhs;
|
|
3202
|
+
var _unary__edvuaz = this.zdn_1.vdm_1;
|
|
3203
|
+
this.zdn_1.vdm_1 = _unary__edvuaz + 1 | 0;
|
|
3204
3204
|
tmp$ret$0 = to(tmp_1, _unary__edvuaz);
|
|
3205
3205
|
break l$ret$1;
|
|
3206
3206
|
} catch ($p) {
|
|
3207
3207
|
var tmp_2;
|
|
3208
3208
|
var t = $p;
|
|
3209
|
-
this.
|
|
3209
|
+
this.jdo_1.n1u(this.ido_1);
|
|
3210
3210
|
throw t;
|
|
3211
3211
|
}
|
|
3212
3212
|
}
|
|
3213
3213
|
while (false);
|
|
3214
3214
|
var tmp_3 = tmp$ret$0;
|
|
3215
|
-
this.
|
|
3216
|
-
this.
|
|
3215
|
+
this.jdo_1.n1u(this.ido_1);
|
|
3216
|
+
this.edo_1 = tmp_3.kh();
|
|
3217
3217
|
var id = tmp_3.lh();
|
|
3218
|
-
this.
|
|
3218
|
+
this.zdn_1.qdm_1('proof started', false, listOf([to('dealId', this.ddo_1), to('pid', this.edo_1.bdn_1)]));
|
|
3219
3219
|
this.j9_1 = 3;
|
|
3220
3220
|
this.i9_1 = 2;
|
|
3221
|
-
suspendResult = run(this.
|
|
3221
|
+
suspendResult = run(this.zdn_1, this.edo_1, id, this.ado_1, this.bdo_1, this);
|
|
3222
3222
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3223
3223
|
return suspendResult;
|
|
3224
3224
|
}
|
|
3225
3225
|
|
|
3226
3226
|
continue $sm;
|
|
3227
3227
|
case 2:
|
|
3228
|
-
this.
|
|
3228
|
+
this.hdo_1 = suspendResult;
|
|
3229
3229
|
this.j9_1 = 6;
|
|
3230
3230
|
this.i9_1 = 4;
|
|
3231
3231
|
continue $sm;
|
|
@@ -3235,7 +3235,7 @@ protoOf($proveCOROUTINE$).q9 = function () {
|
|
|
3235
3235
|
if (tmp_4 instanceof CancellationException) {
|
|
3236
3236
|
var e = this.l9_1;
|
|
3237
3237
|
var tmp_5 = this;
|
|
3238
|
-
this.
|
|
3238
|
+
this.edo_1.kdo();
|
|
3239
3239
|
throw e;
|
|
3240
3240
|
} else {
|
|
3241
3241
|
throw this.l9_1;
|
|
@@ -3243,11 +3243,11 @@ protoOf($proveCOROUTINE$).q9 = function () {
|
|
|
3243
3243
|
|
|
3244
3244
|
case 4:
|
|
3245
3245
|
this.j9_1 = 6;
|
|
3246
|
-
this.
|
|
3247
|
-
this.
|
|
3248
|
-
this.
|
|
3246
|
+
this.cdo_1 = this.hdo_1;
|
|
3247
|
+
this.gdo_1 = this.zdn_1.sdm_1;
|
|
3248
|
+
this.fdo_1 = null;
|
|
3249
3249
|
this.i9_1 = 5;
|
|
3250
|
-
suspendResult = this.
|
|
3250
|
+
suspendResult = this.gdo_1.b1v(this.fdo_1, this);
|
|
3251
3251
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3252
3252
|
return suspendResult;
|
|
3253
3253
|
}
|
|
@@ -3257,33 +3257,33 @@ protoOf($proveCOROUTINE$).q9 = function () {
|
|
|
3257
3257
|
l$ret$3: do {
|
|
3258
3258
|
var tmp_6;
|
|
3259
3259
|
try {
|
|
3260
|
-
release(this.
|
|
3260
|
+
release(this.zdn_1, this.edo_1, this.cdo_1);
|
|
3261
3261
|
break l$ret$3;
|
|
3262
3262
|
} catch ($p_0) {
|
|
3263
3263
|
var tmp_7;
|
|
3264
3264
|
var t_0 = $p_0;
|
|
3265
|
-
this.
|
|
3265
|
+
this.gdo_1.n1u(this.fdo_1);
|
|
3266
3266
|
throw t_0;
|
|
3267
3267
|
}
|
|
3268
3268
|
}
|
|
3269
3269
|
while (false);
|
|
3270
|
-
this.
|
|
3271
|
-
var tmp1_subject = this.
|
|
3270
|
+
this.gdo_1.n1u(this.fdo_1);
|
|
3271
|
+
var tmp1_subject = this.cdo_1;
|
|
3272
3272
|
if (tmp1_subject instanceof Proved) {
|
|
3273
|
-
this.
|
|
3274
|
-
this.
|
|
3275
|
-
this.
|
|
3273
|
+
this.zdn_1.odm_1.wde();
|
|
3274
|
+
this.zdn_1.qdm_1('proof made', false, listOf([to('dealId', this.ddo_1), to('pid', this.edo_1.bdn_1)]));
|
|
3275
|
+
this.zdn_1.rdm_1(this.ddo_1, null);
|
|
3276
3276
|
} else {
|
|
3277
3277
|
if (tmp1_subject instanceof Failed) {
|
|
3278
|
-
this.
|
|
3279
|
-
this.
|
|
3280
|
-
this.
|
|
3278
|
+
this.zdn_1.odm_1.vde(this.cdo_1.bc5_1, this.zdn_1.ldm_1.cq());
|
|
3279
|
+
this.zdn_1.qdm_1('proof failed', true, listOf([to('dealId', this.ddo_1), to('pid', this.edo_1.bdn_1), to('reason', ProverOutput_getInstance().n7i(this.cdo_1.bc5_1.jc6()))]));
|
|
3280
|
+
this.zdn_1.rdm_1(this.ddo_1, this.cdo_1.bc5_1);
|
|
3281
3281
|
} else {
|
|
3282
3282
|
noWhenBranchMatchedException();
|
|
3283
3283
|
}
|
|
3284
3284
|
}
|
|
3285
3285
|
|
|
3286
|
-
return this.
|
|
3286
|
+
return this.cdo_1;
|
|
3287
3287
|
case 6:
|
|
3288
3288
|
throw this.l9_1;
|
|
3289
3289
|
}
|
|
@@ -3300,11 +3300,11 @@ protoOf($proveCOROUTINE$).q9 = function () {
|
|
|
3300
3300
|
};
|
|
3301
3301
|
function $runCOROUTINE$(_this__u8e3s4, child, id, proof, upgrade, resultContinuation) {
|
|
3302
3302
|
CoroutineImpl.call(this, resultContinuation);
|
|
3303
|
-
this.
|
|
3304
|
-
this.
|
|
3305
|
-
this.
|
|
3306
|
-
this.
|
|
3307
|
-
this.
|
|
3303
|
+
this.zdl_1 = _this__u8e3s4;
|
|
3304
|
+
this.adm_1 = child;
|
|
3305
|
+
this.bdm_1 = id;
|
|
3306
|
+
this.cdm_1 = proof;
|
|
3307
|
+
this.ddm_1 = upgrade;
|
|
3308
3308
|
}
|
|
3309
3309
|
protoOf($runCOROUTINE$).q9 = function () {
|
|
3310
3310
|
var suspendResult = this.k9_1;
|
|
@@ -3314,14 +3314,14 @@ protoOf($runCOROUTINE$).q9 = function () {
|
|
|
3314
3314
|
switch (tmp) {
|
|
3315
3315
|
case 0:
|
|
3316
3316
|
this.j9_1 = 9;
|
|
3317
|
-
this.
|
|
3318
|
-
this.
|
|
3319
|
-
if (!this.
|
|
3320
|
-
return killed(this.
|
|
3317
|
+
this.hdm_1 = Monotonic_instance.jf();
|
|
3318
|
+
this.fdm_1 = null;
|
|
3319
|
+
if (!this.adm_1.ldo(ProverIpc_getInstance().ldf(new Prove(this.bdm_1, this.cdm_1.uc6_1, this.cdm_1.vc6_1, this.cdm_1.wc6_1, this.zdl_1.kdm_1)))) {
|
|
3320
|
+
return killed(this.zdl_1, KillCause_EXITED_getInstance(), "the prover's channel was closed");
|
|
3321
3321
|
}
|
|
3322
3322
|
|
|
3323
|
-
var _receiver__tnumb7 = this.
|
|
3324
|
-
_receiver__tnumb7.
|
|
3323
|
+
var _receiver__tnumb7 = this.adm_1;
|
|
3324
|
+
_receiver__tnumb7.cdn_1 = _receiver__tnumb7.cdn_1 + 1 | 0;
|
|
3325
3325
|
this.i9_1 = 1;
|
|
3326
3326
|
continue $sm;
|
|
3327
3327
|
case 1:
|
|
@@ -3330,19 +3330,19 @@ protoOf($runCOROUTINE$).q9 = function () {
|
|
|
3330
3330
|
continue $sm;
|
|
3331
3331
|
}
|
|
3332
3332
|
|
|
3333
|
-
var tmp0_safe_receiver = this.
|
|
3333
|
+
var tmp0_safe_receiver = this.fdm_1;
|
|
3334
3334
|
var tmp_0;
|
|
3335
3335
|
if (tmp0_safe_receiver == null) {
|
|
3336
3336
|
tmp_0 = null;
|
|
3337
3337
|
} else {
|
|
3338
|
-
tmp_0 = Duration__minus_impl_q5cfm7(this.
|
|
3338
|
+
tmp_0 = Duration__minus_impl_q5cfm7(this.zdl_1.mdm_1.ydj_1, tmp0_safe_receiver.nr());
|
|
3339
3339
|
}
|
|
3340
3340
|
|
|
3341
3341
|
var tmp1_elvis_lhs = tmp_0;
|
|
3342
3342
|
var tmp_1;
|
|
3343
3343
|
var tmp_2 = tmp1_elvis_lhs;
|
|
3344
3344
|
if ((tmp_2 == null ? null : new Duration(tmp_2)) == null) {
|
|
3345
|
-
tmp_1 = Duration__minus_impl_q5cfm7(this.
|
|
3345
|
+
tmp_1 = Duration__minus_impl_q5cfm7(this.zdl_1.mdm_1.xdj_1, ValueTimeMark__elapsedNow_impl_eonqvs(this.hdm_1));
|
|
3346
3346
|
} else {
|
|
3347
3347
|
tmp_1 = tmp1_elvis_lhs;
|
|
3348
3348
|
}
|
|
@@ -3350,7 +3350,7 @@ protoOf($runCOROUTINE$).q9 = function () {
|
|
|
3350
3350
|
var left = tmp_1;
|
|
3351
3351
|
this.i9_1 = 2;
|
|
3352
3352
|
var tmp_3 = coerceAtLeast(new Duration(left), new Duration(Companion_getInstance().qf_1));
|
|
3353
|
-
suspendResult = withTimeoutOrNull(tmp_3.pf_1, ForkedProofHost$run$slambda_0(this.
|
|
3353
|
+
suspendResult = withTimeoutOrNull(tmp_3.pf_1, ForkedProofHost$run$slambda_0(this.adm_1, null), this);
|
|
3354
3354
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3355
3355
|
return suspendResult;
|
|
3356
3356
|
}
|
|
@@ -3359,18 +3359,18 @@ protoOf($runCOROUTINE$).q9 = function () {
|
|
|
3359
3359
|
case 2:
|
|
3360
3360
|
var event = suspendResult;
|
|
3361
3361
|
if (event == null) {
|
|
3362
|
-
this.
|
|
3363
|
-
return killed(this.
|
|
3362
|
+
this.adm_1.kdo();
|
|
3363
|
+
return killed(this.zdl_1, this.fdm_1 == null ? KillCause_CONNECT_DEADLINE_getInstance() : KillCause_SESSION_DEADLINE_getInstance(), null);
|
|
3364
3364
|
}
|
|
3365
3365
|
|
|
3366
3366
|
if (event instanceof Exited) {
|
|
3367
|
-
return killed(this.
|
|
3367
|
+
return killed(this.zdl_1, event.qdo(), event.rdo());
|
|
3368
3368
|
} else {
|
|
3369
3369
|
if (event instanceof Message) {
|
|
3370
|
-
this.
|
|
3370
|
+
this.zdl_1;
|
|
3371
3371
|
var tmp_4;
|
|
3372
3372
|
try {
|
|
3373
|
-
var value = ProverIpc_getInstance().
|
|
3373
|
+
var value = ProverIpc_getInstance().odf(event.mdo_1);
|
|
3374
3374
|
tmp_4 = _Result___init__impl__xyqfz8(value);
|
|
3375
3375
|
} catch ($p) {
|
|
3376
3376
|
var tmp_5;
|
|
@@ -3389,7 +3389,7 @@ protoOf($runCOROUTINE$).q9 = function () {
|
|
|
3389
3389
|
tmp_6 = null;
|
|
3390
3390
|
} else {
|
|
3391
3391
|
var tmp_7;
|
|
3392
|
-
if (tmp3_safe_receiver.p6i() === this.
|
|
3392
|
+
if (tmp3_safe_receiver.p6i() === this.bdm_1) {
|
|
3393
3393
|
tmp_7 = tmp3_safe_receiver;
|
|
3394
3394
|
} else {
|
|
3395
3395
|
tmp_7 = null;
|
|
@@ -3402,7 +3402,7 @@ protoOf($runCOROUTINE$).q9 = function () {
|
|
|
3402
3402
|
var tmp_8 = this;
|
|
3403
3403
|
continue $sm;
|
|
3404
3404
|
} else {
|
|
3405
|
-
this.
|
|
3405
|
+
this.gdm_1 = tmp4_elvis_lhs;
|
|
3406
3406
|
this.i9_1 = 3;
|
|
3407
3407
|
continue $sm;
|
|
3408
3408
|
}
|
|
@@ -3413,23 +3413,23 @@ protoOf($runCOROUTINE$).q9 = function () {
|
|
|
3413
3413
|
|
|
3414
3414
|
break;
|
|
3415
3415
|
case 3:
|
|
3416
|
-
var message = this.
|
|
3416
|
+
var message = this.gdm_1;
|
|
3417
3417
|
if (message instanceof HeadersWanted) {
|
|
3418
|
-
if (this.
|
|
3419
|
-
this.
|
|
3418
|
+
if (this.fdm_1 == null)
|
|
3419
|
+
this.fdm_1 = new ValueTimeMark(Monotonic_instance.jf());
|
|
3420
3420
|
this.j9_1 = 5;
|
|
3421
3421
|
this.i9_1 = 4;
|
|
3422
|
-
suspendResult = this.
|
|
3422
|
+
suspendResult = this.ddm_1.q7h(this);
|
|
3423
3423
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3424
3424
|
return suspendResult;
|
|
3425
3425
|
}
|
|
3426
3426
|
continue $sm;
|
|
3427
3427
|
} else {
|
|
3428
3428
|
if (message instanceof Proved_0) {
|
|
3429
|
-
return new Proved(message.
|
|
3429
|
+
return new Proved(message.idg_1);
|
|
3430
3430
|
} else {
|
|
3431
3431
|
if (message instanceof Failed_0) {
|
|
3432
|
-
return new Failed(message.
|
|
3432
|
+
return new Failed(message.ndg_1);
|
|
3433
3433
|
} else {
|
|
3434
3434
|
noWhenBranchMatchedException();
|
|
3435
3435
|
}
|
|
@@ -3438,8 +3438,8 @@ protoOf($runCOROUTINE$).q9 = function () {
|
|
|
3438
3438
|
|
|
3439
3439
|
break;
|
|
3440
3440
|
case 4:
|
|
3441
|
-
var ARGUMENT = suspendResult.
|
|
3442
|
-
this.
|
|
3441
|
+
var ARGUMENT = suspendResult.xc6_1;
|
|
3442
|
+
this.edm_1 = new Headers(this.bdm_1, ARGUMENT);
|
|
3443
3443
|
this.j9_1 = 9;
|
|
3444
3444
|
this.i9_1 = 6;
|
|
3445
3445
|
continue $sm;
|
|
@@ -3456,7 +3456,7 @@ protoOf($runCOROUTINE$).q9 = function () {
|
|
|
3456
3456
|
var e_1 = this.l9_1;
|
|
3457
3457
|
var tmp_12 = this;
|
|
3458
3458
|
var tmp6_elvis_lhs = e_1.message;
|
|
3459
|
-
tmp_12.
|
|
3459
|
+
tmp_12.edm_1 = new Headers(this.bdm_1, VOID, 'the upgrade could not be signed: ' + (tmp6_elvis_lhs == null ? 'no detail' : tmp6_elvis_lhs));
|
|
3460
3460
|
this.i9_1 = 6;
|
|
3461
3461
|
continue $sm;
|
|
3462
3462
|
} else {
|
|
@@ -3466,9 +3466,9 @@ protoOf($runCOROUTINE$).q9 = function () {
|
|
|
3466
3466
|
|
|
3467
3467
|
case 6:
|
|
3468
3468
|
this.j9_1 = 9;
|
|
3469
|
-
var reply = this.
|
|
3470
|
-
if (!this.
|
|
3471
|
-
return killed(this.
|
|
3469
|
+
var reply = this.edm_1;
|
|
3470
|
+
if (!this.adm_1.ldo(ProverIpc_getInstance().ldf(reply)))
|
|
3471
|
+
return killed(this.zdl_1, KillCause_EXITED_getInstance(), "the prover's channel was closed");
|
|
3472
3472
|
this.i9_1 = 7;
|
|
3473
3473
|
continue $sm;
|
|
3474
3474
|
case 7:
|
|
@@ -3518,42 +3518,42 @@ function ForkedProofHost(script, args, settings, clock, limits, env, backoff, on
|
|
|
3518
3518
|
tmp_1 = onOutcome;
|
|
3519
3519
|
}
|
|
3520
3520
|
onOutcome = tmp_1;
|
|
3521
|
-
this.
|
|
3522
|
-
this.
|
|
3523
|
-
this.
|
|
3524
|
-
this.
|
|
3525
|
-
this.
|
|
3526
|
-
this.
|
|
3527
|
-
this.
|
|
3528
|
-
this.
|
|
3529
|
-
this.
|
|
3530
|
-
this.
|
|
3531
|
-
this.
|
|
3532
|
-
this.
|
|
3521
|
+
this.idm_1 = script;
|
|
3522
|
+
this.jdm_1 = args;
|
|
3523
|
+
this.kdm_1 = settings;
|
|
3524
|
+
this.ldm_1 = clock;
|
|
3525
|
+
this.mdm_1 = limits;
|
|
3526
|
+
this.ndm_1 = env;
|
|
3527
|
+
this.odm_1 = backoff;
|
|
3528
|
+
this.pdm_1 = onLine;
|
|
3529
|
+
this.qdm_1 = onNotice;
|
|
3530
|
+
this.rdm_1 = onOutcome;
|
|
3531
|
+
this.sdm_1 = Mutex();
|
|
3532
|
+
this.tdm_1 = ArrayDeque_init_$Create$();
|
|
3533
3533
|
var tmp_2 = this;
|
|
3534
3534
|
// Inline function 'kotlin.collections.mutableSetOf' call
|
|
3535
|
-
tmp_2.
|
|
3536
|
-
this.
|
|
3537
|
-
this.
|
|
3535
|
+
tmp_2.udm_1 = LinkedHashSet_init_$Create$();
|
|
3536
|
+
this.vdm_1 = 1;
|
|
3537
|
+
this.wdm_1 = 0;
|
|
3538
3538
|
}
|
|
3539
|
-
protoOf(ForkedProofHost).
|
|
3539
|
+
protoOf(ForkedProofHost).ac5 = function (proof, upgrade, $completion) {
|
|
3540
3540
|
var tmp = new $proveCOROUTINE$(this, proof, upgrade, $completion);
|
|
3541
3541
|
tmp.k9_1 = Unit_instance;
|
|
3542
3542
|
tmp.l9_1 = null;
|
|
3543
3543
|
return tmp.q9();
|
|
3544
3544
|
};
|
|
3545
|
-
protoOf(ForkedProofHost).
|
|
3546
|
-
return this.
|
|
3545
|
+
protoOf(ForkedProofHost).xde = function () {
|
|
3546
|
+
return this.odm_1.xde();
|
|
3547
3547
|
};
|
|
3548
3548
|
protoOf(ForkedProofHost).j4 = function () {
|
|
3549
3549
|
// Inline function 'kotlin.collections.forEach' call
|
|
3550
|
-
var _iterator__ex2g4s = this.
|
|
3550
|
+
var _iterator__ex2g4s = this.udm_1.t();
|
|
3551
3551
|
while (_iterator__ex2g4s.u()) {
|
|
3552
3552
|
var element = _iterator__ex2g4s.v();
|
|
3553
|
-
element.
|
|
3553
|
+
element.kdo();
|
|
3554
3554
|
}
|
|
3555
|
-
this.
|
|
3556
|
-
this.
|
|
3555
|
+
this.udm_1.d3();
|
|
3556
|
+
this.tdm_1.d3();
|
|
3557
3557
|
};
|
|
3558
3558
|
function minimalProverEnv(from) {
|
|
3559
3559
|
from = from === VOID ? get_nodeProcess().env : from;
|
|
@@ -3602,37 +3602,37 @@ function toJsObject(_this__u8e3s4) {
|
|
|
3602
3602
|
return target;
|
|
3603
3603
|
}
|
|
3604
3604
|
function Message(text) {
|
|
3605
|
-
this.
|
|
3605
|
+
this.mdo_1 = text;
|
|
3606
3606
|
}
|
|
3607
3607
|
protoOf(Message).toString = function () {
|
|
3608
|
-
return 'Message(text=' + this.
|
|
3608
|
+
return 'Message(text=' + this.mdo_1 + ')';
|
|
3609
3609
|
};
|
|
3610
3610
|
protoOf(Message).hashCode = function () {
|
|
3611
|
-
return getStringHashCode(this.
|
|
3611
|
+
return getStringHashCode(this.mdo_1);
|
|
3612
3612
|
};
|
|
3613
3613
|
protoOf(Message).equals = function (other) {
|
|
3614
3614
|
if (this === other)
|
|
3615
3615
|
return true;
|
|
3616
3616
|
if (!(other instanceof Message))
|
|
3617
3617
|
return false;
|
|
3618
|
-
if (!(this.
|
|
3618
|
+
if (!(this.mdo_1 === other.mdo_1))
|
|
3619
3619
|
return false;
|
|
3620
3620
|
return true;
|
|
3621
3621
|
};
|
|
3622
3622
|
function Exited(code, signal, error) {
|
|
3623
3623
|
error = error === VOID ? null : error;
|
|
3624
|
-
this.
|
|
3625
|
-
this.
|
|
3626
|
-
this.
|
|
3624
|
+
this.ndo_1 = code;
|
|
3625
|
+
this.odo_1 = signal;
|
|
3626
|
+
this.pdo_1 = error;
|
|
3627
3627
|
}
|
|
3628
|
-
protoOf(Exited).
|
|
3629
|
-
return this.
|
|
3628
|
+
protoOf(Exited).qdo = function () {
|
|
3629
|
+
return this.odo_1 === 'SIGKILL' ? KillCause_OUT_OF_MEMORY_getInstance() : KillCause_EXITED_getInstance();
|
|
3630
3630
|
};
|
|
3631
|
-
protoOf(Exited).
|
|
3632
|
-
var tmp0_elvis_lhs = this.
|
|
3631
|
+
protoOf(Exited).rdo = function () {
|
|
3632
|
+
var tmp0_elvis_lhs = this.pdo_1;
|
|
3633
3633
|
var tmp;
|
|
3634
3634
|
if (tmp0_elvis_lhs == null) {
|
|
3635
|
-
var tmp1_safe_receiver = this.
|
|
3635
|
+
var tmp1_safe_receiver = this.odo_1;
|
|
3636
3636
|
var tmp_0;
|
|
3637
3637
|
if (tmp1_safe_receiver == null) {
|
|
3638
3638
|
tmp_0 = null;
|
|
@@ -3645,15 +3645,15 @@ protoOf(Exited).wdm = function () {
|
|
|
3645
3645
|
tmp = tmp0_elvis_lhs;
|
|
3646
3646
|
}
|
|
3647
3647
|
var tmp2_elvis_lhs = tmp;
|
|
3648
|
-
return tmp2_elvis_lhs == null ? 'exit code ' + this.
|
|
3648
|
+
return tmp2_elvis_lhs == null ? 'exit code ' + this.ndo_1 : tmp2_elvis_lhs;
|
|
3649
3649
|
};
|
|
3650
3650
|
protoOf(Exited).toString = function () {
|
|
3651
|
-
return 'Exited(code=' + this.
|
|
3651
|
+
return 'Exited(code=' + this.ndo_1 + ', signal=' + this.odo_1 + ', error=' + this.pdo_1 + ')';
|
|
3652
3652
|
};
|
|
3653
3653
|
protoOf(Exited).hashCode = function () {
|
|
3654
|
-
var result = this.
|
|
3655
|
-
result = imul(result, 31) + (this.
|
|
3656
|
-
result = imul(result, 31) + (this.
|
|
3654
|
+
var result = this.ndo_1 == null ? 0 : this.ndo_1;
|
|
3655
|
+
result = imul(result, 31) + (this.odo_1 == null ? 0 : getStringHashCode(this.odo_1)) | 0;
|
|
3656
|
+
result = imul(result, 31) + (this.pdo_1 == null ? 0 : getStringHashCode(this.pdo_1)) | 0;
|
|
3657
3657
|
return result;
|
|
3658
3658
|
};
|
|
3659
3659
|
protoOf(Exited).equals = function (other) {
|
|
@@ -3661,11 +3661,11 @@ protoOf(Exited).equals = function (other) {
|
|
|
3661
3661
|
return true;
|
|
3662
3662
|
if (!(other instanceof Exited))
|
|
3663
3663
|
return false;
|
|
3664
|
-
if (!(this.
|
|
3664
|
+
if (!(this.ndo_1 == other.ndo_1))
|
|
3665
3665
|
return false;
|
|
3666
|
-
if (!(this.
|
|
3666
|
+
if (!(this.odo_1 == other.odo_1))
|
|
3667
3667
|
return false;
|
|
3668
|
-
if (!(this.
|
|
3668
|
+
if (!(this.pdo_1 == other.pdo_1))
|
|
3669
3669
|
return false;
|
|
3670
3670
|
return true;
|
|
3671
3671
|
};
|
|
@@ -3681,14 +3681,14 @@ function emit($this, stream, line) {
|
|
|
3681
3681
|
var text = trimEnd(line, charArrayOf([_Char___init__impl__6a9atx(13)]));
|
|
3682
3682
|
if (isBlank(text))
|
|
3683
3683
|
return Unit_instance;
|
|
3684
|
-
$this.
|
|
3684
|
+
$this.ydm_1($this.bdn_1, stream, ProverOutput_getInstance().n7i(text));
|
|
3685
3685
|
}
|
|
3686
3686
|
function ForkedChild$lambda(this$0) {
|
|
3687
3687
|
return function (message) {
|
|
3688
3688
|
var tmp;
|
|
3689
3689
|
if (typeof message === 'string') {
|
|
3690
3690
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3691
|
-
this$0.
|
|
3691
|
+
this$0.adn_1.g1h(new Message(message));
|
|
3692
3692
|
tmp = Unit_instance;
|
|
3693
3693
|
}
|
|
3694
3694
|
return Unit_instance;
|
|
@@ -3696,28 +3696,28 @@ function ForkedChild$lambda(this$0) {
|
|
|
3696
3696
|
}
|
|
3697
3697
|
function ForkedChild$lambda_0(this$0) {
|
|
3698
3698
|
return function (code, signal) {
|
|
3699
|
-
this$0.
|
|
3699
|
+
this$0.ddn_1 = true;
|
|
3700
3700
|
var tmp0_safe_receiver = isNumber(code) ? code : null;
|
|
3701
3701
|
var tmp = tmp0_safe_receiver == null ? null : numberToInt(tmp0_safe_receiver);
|
|
3702
3702
|
var exit = new Exited(tmp, (!(signal == null) ? typeof signal === 'string' : false) ? signal : null);
|
|
3703
|
-
var tmp_0 = to('pid', this$0.
|
|
3704
|
-
var tmp1_safe_receiver = exit.
|
|
3705
|
-
this$0.
|
|
3706
|
-
return new ChannelResult(this$0.
|
|
3703
|
+
var tmp_0 = to('pid', this$0.bdn_1);
|
|
3704
|
+
var tmp1_safe_receiver = exit.ndo_1;
|
|
3705
|
+
this$0.zdm_1('prover exited', false, listOf([tmp_0, to('code', tmp1_safe_receiver == null ? null : tmp1_safe_receiver.toString()), to('signal', exit.odo_1), to('killedBySdk', this$0.edn_1.toString())]));
|
|
3706
|
+
return new ChannelResult(this$0.adn_1.g1h(exit));
|
|
3707
3707
|
};
|
|
3708
3708
|
}
|
|
3709
3709
|
function ForkedChild$lambda_1(this$0) {
|
|
3710
3710
|
return function (error) {
|
|
3711
|
-
this$0.
|
|
3711
|
+
this$0.ddn_1 = true;
|
|
3712
3712
|
var tmp1_elvis_lhs = error == null ? null : error.message;
|
|
3713
|
-
return new ChannelResult(this$0.
|
|
3713
|
+
return new ChannelResult(this$0.adn_1.g1h(new Exited(null, null, 'the prover process failed: ' + (tmp1_elvis_lhs == null ? 'no detail' : tmp1_elvis_lhs))));
|
|
3714
3714
|
};
|
|
3715
3715
|
}
|
|
3716
3716
|
function ForkedChild$end$lambda(this$0) {
|
|
3717
3717
|
return function () {
|
|
3718
3718
|
var tmp;
|
|
3719
|
-
if (!this$0.
|
|
3720
|
-
this$0.
|
|
3719
|
+
if (!this$0.ddn_1) {
|
|
3720
|
+
this$0.kdo();
|
|
3721
3721
|
tmp = Unit_instance;
|
|
3722
3722
|
}
|
|
3723
3723
|
return Unit_instance;
|
|
@@ -3750,32 +3750,32 @@ function ForkedChild$pipe$lambda_0($pending, this$0, $name) {
|
|
|
3750
3750
|
};
|
|
3751
3751
|
}
|
|
3752
3752
|
function ForkedChild(process, onLine, onNotice) {
|
|
3753
|
-
this.
|
|
3754
|
-
this.
|
|
3755
|
-
this.
|
|
3756
|
-
this.
|
|
3753
|
+
this.xdm_1 = process;
|
|
3754
|
+
this.ydm_1 = onLine;
|
|
3755
|
+
this.zdm_1 = onNotice;
|
|
3756
|
+
this.adn_1 = Channel(2147483647);
|
|
3757
3757
|
var tmp = this;
|
|
3758
|
-
var tmp_0 = this.
|
|
3758
|
+
var tmp_0 = this.xdm_1.pid;
|
|
3759
3759
|
var tmp0_safe_receiver = isNumber(tmp_0) ? tmp_0 : null;
|
|
3760
3760
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toString(tmp0_safe_receiver);
|
|
3761
|
-
tmp.
|
|
3762
|
-
this.
|
|
3763
|
-
this.
|
|
3764
|
-
this.
|
|
3765
|
-
this.
|
|
3766
|
-
this.
|
|
3767
|
-
this.
|
|
3768
|
-
pipe(this, this.
|
|
3769
|
-
pipe(this, this.
|
|
3770
|
-
}
|
|
3771
|
-
protoOf(ForkedChild).
|
|
3761
|
+
tmp.bdn_1 = tmp1_elvis_lhs == null ? '?' : tmp1_elvis_lhs;
|
|
3762
|
+
this.cdn_1 = 0;
|
|
3763
|
+
this.ddn_1 = false;
|
|
3764
|
+
this.edn_1 = false;
|
|
3765
|
+
this.xdm_1.on('message', ForkedChild$lambda(this));
|
|
3766
|
+
this.xdm_1.on('exit', ForkedChild$lambda_0(this));
|
|
3767
|
+
this.xdm_1.on('error', ForkedChild$lambda_1(this));
|
|
3768
|
+
pipe(this, this.xdm_1.stdout, 'stdout');
|
|
3769
|
+
pipe(this, this.xdm_1.stderr, 'stderr');
|
|
3770
|
+
}
|
|
3771
|
+
protoOf(ForkedChild).ldo = function (text) {
|
|
3772
3772
|
var tmp;
|
|
3773
3773
|
try {
|
|
3774
3774
|
var tmp_0;
|
|
3775
|
-
if (this.
|
|
3775
|
+
if (this.ddn_1 || this.xdm_1.connected != true) {
|
|
3776
3776
|
tmp_0 = false;
|
|
3777
3777
|
} else {
|
|
3778
|
-
this.
|
|
3778
|
+
this.xdm_1.send(text);
|
|
3779
3779
|
tmp_0 = true;
|
|
3780
3780
|
}
|
|
3781
3781
|
tmp = tmp_0;
|
|
@@ -3791,15 +3791,15 @@ protoOf(ForkedChild).qdm = function (text) {
|
|
|
3791
3791
|
}
|
|
3792
3792
|
return tmp;
|
|
3793
3793
|
};
|
|
3794
|
-
protoOf(ForkedChild).
|
|
3795
|
-
if (this.
|
|
3794
|
+
protoOf(ForkedChild).kdo = function () {
|
|
3795
|
+
if (this.ddn_1)
|
|
3796
3796
|
return Unit_instance;
|
|
3797
|
-
this.
|
|
3797
|
+
this.edn_1 = true;
|
|
3798
3798
|
// Inline function 'kotlin.runCatching' call
|
|
3799
3799
|
var tmp;
|
|
3800
3800
|
try {
|
|
3801
3801
|
// Inline function 'kotlin.Companion.success' call
|
|
3802
|
-
var value = this.
|
|
3802
|
+
var value = this.xdm_1.kill('SIGKILL');
|
|
3803
3803
|
tmp = _Result___init__impl__xyqfz8(value);
|
|
3804
3804
|
} catch ($p) {
|
|
3805
3805
|
var tmp_0;
|
|
@@ -3813,14 +3813,14 @@ protoOf(ForkedChild).pdm = function () {
|
|
|
3813
3813
|
tmp = tmp_0;
|
|
3814
3814
|
}
|
|
3815
3815
|
};
|
|
3816
|
-
protoOf(ForkedChild).
|
|
3817
|
-
if (this.
|
|
3816
|
+
protoOf(ForkedChild).fdn = function (grace) {
|
|
3817
|
+
if (this.ddn_1)
|
|
3818
3818
|
return Unit_instance;
|
|
3819
3819
|
// Inline function 'kotlin.runCatching' call
|
|
3820
3820
|
var tmp;
|
|
3821
3821
|
try {
|
|
3822
|
-
if (this.
|
|
3823
|
-
this.
|
|
3822
|
+
if (this.xdm_1.connected == true) {
|
|
3823
|
+
this.xdm_1.disconnect();
|
|
3824
3824
|
}
|
|
3825
3825
|
// Inline function 'kotlin.Companion.success' call
|
|
3826
3826
|
tmp = _Result___init__impl__xyqfz8(Unit_instance);
|
|
@@ -3867,20 +3867,20 @@ function NodeWasmProver$prove$slambda$slambda$lambda(line) {
|
|
|
3867
3867
|
return Unit_instance;
|
|
3868
3868
|
}
|
|
3869
3869
|
function NodeWasmProver$prove$slambda$slambda($proof, $config, $host, this$0, resultContinuation) {
|
|
3870
|
-
this.
|
|
3871
|
-
this.
|
|
3872
|
-
this.
|
|
3873
|
-
this.
|
|
3870
|
+
this.adp_1 = $proof;
|
|
3871
|
+
this.bdp_1 = $config;
|
|
3872
|
+
this.cdp_1 = $host;
|
|
3873
|
+
this.ddp_1 = this$0;
|
|
3874
3874
|
CoroutineImpl.call(this, resultContinuation);
|
|
3875
3875
|
}
|
|
3876
|
-
protoOf(NodeWasmProver$prove$slambda$slambda).
|
|
3876
|
+
protoOf(NodeWasmProver$prove$slambda$slambda).ddb = function ($this$async, $completion) {
|
|
3877
3877
|
var tmp = this.k1p($this$async, $completion);
|
|
3878
3878
|
tmp.k9_1 = Unit_instance;
|
|
3879
3879
|
tmp.l9_1 = null;
|
|
3880
3880
|
return tmp.q9();
|
|
3881
3881
|
};
|
|
3882
3882
|
protoOf(NodeWasmProver$prove$slambda$slambda).da = function (p1, $completion) {
|
|
3883
|
-
return this.
|
|
3883
|
+
return this.ddb((!(p1 == null) ? isInterface(p1, CoroutineScope_0) : false) ? p1 : THROW_CCE(), $completion);
|
|
3884
3884
|
};
|
|
3885
3885
|
protoOf(NodeWasmProver$prove$slambda$slambda).q9 = function () {
|
|
3886
3886
|
var suspendResult = this.k9_1;
|
|
@@ -3891,9 +3891,9 @@ protoOf(NodeWasmProver$prove$slambda$slambda).q9 = function () {
|
|
|
3891
3891
|
case 0:
|
|
3892
3892
|
this.j9_1 = 2;
|
|
3893
3893
|
this.i9_1 = 1;
|
|
3894
|
-
var tmp_0 = new HostedProofRequest(this.
|
|
3895
|
-
var tmp_1 = this.
|
|
3896
|
-
suspendResult = runHostedProof(tmp_0, this.
|
|
3894
|
+
var tmp_0 = new HostedProofRequest(this.adp_1.sdf_1, this.adp_1.tdf_1, this.adp_1.udf_1);
|
|
3895
|
+
var tmp_1 = this.ddp_1.fdp_1.cq();
|
|
3896
|
+
suspendResult = runHostedProof(tmp_0, this.bdp_1, this.cdp_1, tmp_1, NodeWasmProver$prove$slambda$slambda$lambda, this);
|
|
3897
3897
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3898
3898
|
return suspendResult;
|
|
3899
3899
|
}
|
|
@@ -3916,27 +3916,27 @@ protoOf(NodeWasmProver$prove$slambda$slambda).q9 = function () {
|
|
|
3916
3916
|
while (true);
|
|
3917
3917
|
};
|
|
3918
3918
|
protoOf(NodeWasmProver$prove$slambda$slambda).k1p = function ($this$async, completion) {
|
|
3919
|
-
var i = new NodeWasmProver$prove$slambda$slambda(this.
|
|
3920
|
-
i.
|
|
3919
|
+
var i = new NodeWasmProver$prove$slambda$slambda(this.adp_1, this.bdp_1, this.cdp_1, this.ddp_1, completion);
|
|
3920
|
+
i.edp_1 = $this$async;
|
|
3921
3921
|
return i;
|
|
3922
3922
|
};
|
|
3923
3923
|
function NodeWasmProver$prove$slambda$slambda_0($proof, $config, $host, this$0, resultContinuation) {
|
|
3924
3924
|
var i = new NodeWasmProver$prove$slambda$slambda($proof, $config, $host, this$0, resultContinuation);
|
|
3925
3925
|
return constructCallableReference(function ($this$async, $completion) {
|
|
3926
|
-
return i.
|
|
3926
|
+
return i.ddb($this$async, $completion);
|
|
3927
3927
|
}, 1);
|
|
3928
3928
|
}
|
|
3929
3929
|
function NodeWasmProver$prove$slambda$slambda_1(resultContinuation) {
|
|
3930
3930
|
CoroutineImpl.call(this, resultContinuation);
|
|
3931
3931
|
}
|
|
3932
|
-
protoOf(NodeWasmProver$prove$slambda$slambda_1).
|
|
3933
|
-
var tmp = this.
|
|
3932
|
+
protoOf(NodeWasmProver$prove$slambda$slambda_1).pdp = function (presentation, $completion) {
|
|
3933
|
+
var tmp = this.qdp(presentation, $completion);
|
|
3934
3934
|
tmp.k9_1 = Unit_instance;
|
|
3935
3935
|
tmp.l9_1 = null;
|
|
3936
3936
|
return tmp.q9();
|
|
3937
3937
|
};
|
|
3938
3938
|
protoOf(NodeWasmProver$prove$slambda$slambda_1).da = function (p1, $completion) {
|
|
3939
|
-
return this.
|
|
3939
|
+
return this.pdp((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
|
|
3940
3940
|
};
|
|
3941
3941
|
protoOf(NodeWasmProver$prove$slambda$slambda_1).q9 = function () {
|
|
3942
3942
|
var suspendResult = this.k9_1;
|
|
@@ -3945,7 +3945,7 @@ protoOf(NodeWasmProver$prove$slambda$slambda_1).q9 = function () {
|
|
|
3945
3945
|
var tmp = this.i9_1;
|
|
3946
3946
|
if (tmp === 0) {
|
|
3947
3947
|
this.j9_1 = 1;
|
|
3948
|
-
return new Proved_1(this.
|
|
3948
|
+
return new Proved_1(this.odp_1);
|
|
3949
3949
|
} else if (tmp === 1) {
|
|
3950
3950
|
throw this.l9_1;
|
|
3951
3951
|
}
|
|
@@ -3955,29 +3955,29 @@ protoOf(NodeWasmProver$prove$slambda$slambda_1).q9 = function () {
|
|
|
3955
3955
|
}
|
|
3956
3956
|
while (true);
|
|
3957
3957
|
};
|
|
3958
|
-
protoOf(NodeWasmProver$prove$slambda$slambda_1).
|
|
3958
|
+
protoOf(NodeWasmProver$prove$slambda$slambda_1).qdp = function (presentation, completion) {
|
|
3959
3959
|
var i = new NodeWasmProver$prove$slambda$slambda_1(completion);
|
|
3960
|
-
i.
|
|
3960
|
+
i.odp_1 = presentation;
|
|
3961
3961
|
return i;
|
|
3962
3962
|
};
|
|
3963
3963
|
function NodeWasmProver$prove$slambda$slambda_2(resultContinuation) {
|
|
3964
3964
|
var i = new NodeWasmProver$prove$slambda$slambda_1(resultContinuation);
|
|
3965
3965
|
return constructCallableReference(function (presentation, $completion) {
|
|
3966
|
-
return i.
|
|
3966
|
+
return i.pdp(presentation, $completion);
|
|
3967
3967
|
}, 1);
|
|
3968
3968
|
}
|
|
3969
3969
|
function NodeWasmProver$prove$slambda$slambda_3($proving, resultContinuation) {
|
|
3970
|
-
this.
|
|
3970
|
+
this.zdp_1 = $proving;
|
|
3971
3971
|
CoroutineImpl.call(this, resultContinuation);
|
|
3972
3972
|
}
|
|
3973
|
-
protoOf(NodeWasmProver$prove$slambda$slambda_3).
|
|
3974
|
-
var tmp = this.
|
|
3973
|
+
protoOf(NodeWasmProver$prove$slambda$slambda_3).bdq = function (failure, $completion) {
|
|
3974
|
+
var tmp = this.cdq(failure, $completion);
|
|
3975
3975
|
tmp.k9_1 = Unit_instance;
|
|
3976
3976
|
tmp.l9_1 = null;
|
|
3977
3977
|
return tmp.q9();
|
|
3978
3978
|
};
|
|
3979
3979
|
protoOf(NodeWasmProver$prove$slambda$slambda_3).da = function (p1, $completion) {
|
|
3980
|
-
return this.
|
|
3980
|
+
return this.bdq((!(p1 == null) ? isInterface(p1, ProofFailure) : false) ? p1 : THROW_CCE(), $completion);
|
|
3981
3981
|
};
|
|
3982
3982
|
protoOf(NodeWasmProver$prove$slambda$slambda_3).q9 = function () {
|
|
3983
3983
|
var suspendResult = this.k9_1;
|
|
@@ -3986,8 +3986,8 @@ protoOf(NodeWasmProver$prove$slambda$slambda_3).q9 = function () {
|
|
|
3986
3986
|
var tmp = this.i9_1;
|
|
3987
3987
|
if (tmp === 0) {
|
|
3988
3988
|
this.j9_1 = 1;
|
|
3989
|
-
this.
|
|
3990
|
-
return new Failed_1(this.
|
|
3989
|
+
this.zdp_1.rz();
|
|
3990
|
+
return new Failed_1(this.adq_1, true);
|
|
3991
3991
|
} else if (tmp === 1) {
|
|
3992
3992
|
throw this.l9_1;
|
|
3993
3993
|
}
|
|
@@ -3997,15 +3997,15 @@ protoOf(NodeWasmProver$prove$slambda$slambda_3).q9 = function () {
|
|
|
3997
3997
|
}
|
|
3998
3998
|
while (true);
|
|
3999
3999
|
};
|
|
4000
|
-
protoOf(NodeWasmProver$prove$slambda$slambda_3).
|
|
4001
|
-
var i = new NodeWasmProver$prove$slambda$slambda_3(this.
|
|
4002
|
-
i.
|
|
4000
|
+
protoOf(NodeWasmProver$prove$slambda$slambda_3).cdq = function (failure, completion) {
|
|
4001
|
+
var i = new NodeWasmProver$prove$slambda$slambda_3(this.zdp_1, completion);
|
|
4002
|
+
i.adq_1 = failure;
|
|
4003
4003
|
return i;
|
|
4004
4004
|
};
|
|
4005
4005
|
function NodeWasmProver$prove$slambda$slambda_4($proving, resultContinuation) {
|
|
4006
4006
|
var i = new NodeWasmProver$prove$slambda$slambda_3($proving, resultContinuation);
|
|
4007
4007
|
return constructCallableReference(function (failure, $completion) {
|
|
4008
|
-
return i.
|
|
4008
|
+
return i.bdq(failure, $completion);
|
|
4009
4009
|
}, 1);
|
|
4010
4010
|
}
|
|
4011
4011
|
function printStats($this, started) {
|
|
@@ -4021,21 +4021,21 @@ function printStats($this, started) {
|
|
|
4021
4021
|
function classify($this, error, record) {
|
|
4022
4022
|
var tmp = generateSequence(error, NodeWasmProver$classify$lambda);
|
|
4023
4023
|
var message = joinToString_0(distinct(mapNotNull(tmp, NodeWasmProver$classify$lambda_0)), ': ');
|
|
4024
|
-
var tmp0_safe_receiver = record.
|
|
4024
|
+
var tmp0_safe_receiver = record.kdq_1;
|
|
4025
4025
|
if (tmp0_safe_receiver == null)
|
|
4026
4026
|
null;
|
|
4027
4027
|
else {
|
|
4028
4028
|
// Inline function 'kotlin.let' call
|
|
4029
4029
|
return new Other('the upgrade could not be signed: ' + tmp0_safe_receiver);
|
|
4030
4030
|
}
|
|
4031
|
-
var tmp1_elvis_lhs = ProofFailures_getInstance().
|
|
4031
|
+
var tmp1_elvis_lhs = ProofFailures_getInstance().ec7(record.fdq_1, record.gdq_1, record.hdq_1, record.jdq_1, record.idq_1, !record.ddq_1 || record.edq_1 || !(record.fdq_1 == null), message);
|
|
4032
4032
|
return tmp1_elvis_lhs == null ? new Other(message) : tmp1_elvis_lhs;
|
|
4033
4033
|
}
|
|
4034
4034
|
function Companion_14() {
|
|
4035
4035
|
Companion_instance_18 = this;
|
|
4036
|
-
this.
|
|
4037
|
-
this.
|
|
4038
|
-
this.
|
|
4036
|
+
this.mdq_1 = numberRangeToNumber(200, 299);
|
|
4037
|
+
this.ndq_1 = new Long(1000, 0);
|
|
4038
|
+
this.odq_1 = new Long(1024, 0);
|
|
4039
4039
|
}
|
|
4040
4040
|
var Companion_instance_18;
|
|
4041
4041
|
function Companion_getInstance_17() {
|
|
@@ -4045,22 +4045,22 @@ function Companion_getInstance_17() {
|
|
|
4045
4045
|
}
|
|
4046
4046
|
function NodeWasmProver$prove$lambda($settings) {
|
|
4047
4047
|
return function (path) {
|
|
4048
|
-
var tmp = com_dmarket_p2p_headless_node_nodePath_idbzon.join($settings.
|
|
4048
|
+
var tmp = com_dmarket_p2p_headless_node_nodePath_idbzon.join($settings.fdf_1, path);
|
|
4049
4049
|
return fileUrl((!(tmp == null) ? typeof tmp === 'string' : false) ? tmp : THROW_CCE());
|
|
4050
4050
|
};
|
|
4051
4051
|
}
|
|
4052
4052
|
function NodeWasmProver$prove$slambda($settings, resultContinuation) {
|
|
4053
|
-
this.
|
|
4053
|
+
this.xdq_1 = $settings;
|
|
4054
4054
|
CoroutineImpl.call(this, resultContinuation);
|
|
4055
4055
|
}
|
|
4056
|
-
protoOf(NodeWasmProver$prove$slambda).
|
|
4056
|
+
protoOf(NodeWasmProver$prove$slambda).ydq = function ($completion) {
|
|
4057
4057
|
var tmp = this.d33($completion);
|
|
4058
4058
|
tmp.k9_1 = Unit_instance;
|
|
4059
4059
|
tmp.l9_1 = null;
|
|
4060
4060
|
return tmp.q9();
|
|
4061
4061
|
};
|
|
4062
4062
|
protoOf(NodeWasmProver$prove$slambda).ca = function ($completion) {
|
|
4063
|
-
return this.
|
|
4063
|
+
return this.ydq($completion);
|
|
4064
4064
|
};
|
|
4065
4065
|
protoOf(NodeWasmProver$prove$slambda).q9 = function () {
|
|
4066
4066
|
var suspendResult = this.k9_1;
|
|
@@ -4071,7 +4071,7 @@ protoOf(NodeWasmProver$prove$slambda).q9 = function () {
|
|
|
4071
4071
|
case 0:
|
|
4072
4072
|
this.j9_1 = 2;
|
|
4073
4073
|
this.i9_1 = 1;
|
|
4074
|
-
var tmp_0 = com_dmarket_p2p_headless_node_nodePath_idbzon.join(this.
|
|
4074
|
+
var tmp_0 = com_dmarket_p2p_headless_node_nodePath_idbzon.join(this.xdq_1.fdf_1, 'pkg', 'client_wasm_bg.wasm');
|
|
4075
4075
|
suspendResult = compileWasm((!(tmp_0 == null) ? typeof tmp_0 === 'string' : false) ? tmp_0 : THROW_CCE(), this);
|
|
4076
4076
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4077
4077
|
return suspendResult;
|
|
@@ -4095,27 +4095,27 @@ protoOf(NodeWasmProver$prove$slambda).q9 = function () {
|
|
|
4095
4095
|
while (true);
|
|
4096
4096
|
};
|
|
4097
4097
|
protoOf(NodeWasmProver$prove$slambda).d33 = function (completion) {
|
|
4098
|
-
return new NodeWasmProver$prove$slambda(this.
|
|
4098
|
+
return new NodeWasmProver$prove$slambda(this.xdq_1, completion);
|
|
4099
4099
|
};
|
|
4100
4100
|
function NodeWasmProver$prove$slambda_0($settings, resultContinuation) {
|
|
4101
4101
|
var i = new NodeWasmProver$prove$slambda($settings, resultContinuation);
|
|
4102
4102
|
return constructCallableReference(function ($completion) {
|
|
4103
|
-
return i.
|
|
4103
|
+
return i.ydq($completion);
|
|
4104
4104
|
}, 0);
|
|
4105
4105
|
}
|
|
4106
4106
|
function NodeWasmProver$prove$slambda_1($record, $headers, resultContinuation) {
|
|
4107
|
-
this.
|
|
4108
|
-
this.
|
|
4107
|
+
this.hdr_1 = $record;
|
|
4108
|
+
this.idr_1 = $headers;
|
|
4109
4109
|
CoroutineImpl.call(this, resultContinuation);
|
|
4110
4110
|
}
|
|
4111
|
-
protoOf(NodeWasmProver$prove$slambda_1).
|
|
4111
|
+
protoOf(NodeWasmProver$prove$slambda_1).ydq = function ($completion) {
|
|
4112
4112
|
var tmp = this.d33($completion);
|
|
4113
4113
|
tmp.k9_1 = Unit_instance;
|
|
4114
4114
|
tmp.l9_1 = null;
|
|
4115
4115
|
return tmp.q9();
|
|
4116
4116
|
};
|
|
4117
4117
|
protoOf(NodeWasmProver$prove$slambda_1).ca = function ($completion) {
|
|
4118
|
-
return this.
|
|
4118
|
+
return this.ydq($completion);
|
|
4119
4119
|
};
|
|
4120
4120
|
protoOf(NodeWasmProver$prove$slambda_1).q9 = function () {
|
|
4121
4121
|
var suspendResult = this.k9_1;
|
|
@@ -4125,17 +4125,17 @@ protoOf(NodeWasmProver$prove$slambda_1).q9 = function () {
|
|
|
4125
4125
|
switch (tmp) {
|
|
4126
4126
|
case 0:
|
|
4127
4127
|
this.j9_1 = 4;
|
|
4128
|
-
this.
|
|
4128
|
+
this.hdr_1.ddq_1 = true;
|
|
4129
4129
|
this.j9_1 = 2;
|
|
4130
4130
|
this.i9_1 = 1;
|
|
4131
|
-
suspendResult = this.
|
|
4131
|
+
suspendResult = this.idr_1(this);
|
|
4132
4132
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4133
4133
|
return suspendResult;
|
|
4134
4134
|
}
|
|
4135
4135
|
|
|
4136
4136
|
continue $sm;
|
|
4137
4137
|
case 1:
|
|
4138
|
-
this.
|
|
4138
|
+
this.jdr_1 = suspendResult;
|
|
4139
4139
|
this.j9_1 = 4;
|
|
4140
4140
|
this.i9_1 = 3;
|
|
4141
4141
|
continue $sm;
|
|
@@ -4151,9 +4151,9 @@ protoOf(NodeWasmProver$prove$slambda_1).q9 = function () {
|
|
|
4151
4151
|
if (tmp_2 instanceof Error) {
|
|
4152
4152
|
var e_0 = this.l9_1;
|
|
4153
4153
|
var tmp_3 = this;
|
|
4154
|
-
var tmp_4 = this.
|
|
4154
|
+
var tmp_4 = this.hdr_1;
|
|
4155
4155
|
var tmp0_elvis_lhs = e_0.message;
|
|
4156
|
-
tmp_4.
|
|
4156
|
+
tmp_4.kdq_1 = tmp0_elvis_lhs == null ? 'the upgrade could not be signed' : tmp0_elvis_lhs;
|
|
4157
4157
|
throw e_0;
|
|
4158
4158
|
} else {
|
|
4159
4159
|
throw this.l9_1;
|
|
@@ -4162,8 +4162,8 @@ protoOf(NodeWasmProver$prove$slambda_1).q9 = function () {
|
|
|
4162
4162
|
|
|
4163
4163
|
case 3:
|
|
4164
4164
|
this.j9_1 = 4;
|
|
4165
|
-
var signed = this.
|
|
4166
|
-
return headerWebSocket(signed.
|
|
4165
|
+
var signed = this.jdr_1;
|
|
4166
|
+
return headerWebSocket(signed.xc6_1, this.hdr_1);
|
|
4167
4167
|
case 4:
|
|
4168
4168
|
throw this.l9_1;
|
|
4169
4169
|
}
|
|
@@ -4179,24 +4179,24 @@ protoOf(NodeWasmProver$prove$slambda_1).q9 = function () {
|
|
|
4179
4179
|
while (true);
|
|
4180
4180
|
};
|
|
4181
4181
|
protoOf(NodeWasmProver$prove$slambda_1).d33 = function (completion) {
|
|
4182
|
-
return new NodeWasmProver$prove$slambda_1(this.
|
|
4182
|
+
return new NodeWasmProver$prove$slambda_1(this.hdr_1, this.idr_1, completion);
|
|
4183
4183
|
};
|
|
4184
4184
|
function NodeWasmProver$prove$slambda_2($record, $headers, resultContinuation) {
|
|
4185
4185
|
var i = new NodeWasmProver$prove$slambda_1($record, $headers, resultContinuation);
|
|
4186
4186
|
return constructCallableReference(function ($completion) {
|
|
4187
|
-
return i.
|
|
4187
|
+
return i.ydq($completion);
|
|
4188
4188
|
}, 0);
|
|
4189
4189
|
}
|
|
4190
4190
|
function NodeWasmProver$prove$lambda_0($settings, $record) {
|
|
4191
4191
|
return function (serverName, port) {
|
|
4192
|
-
var tmp0_elvis_lhs = $settings.
|
|
4193
|
-
return recordedTargetChannel(tmp0_elvis_lhs == null ? serverName + ':' + port : tmp0_elvis_lhs, $record, VOID, nodeTcpConnector($settings.
|
|
4192
|
+
var tmp0_elvis_lhs = $settings.hdf_1;
|
|
4193
|
+
return recordedTargetChannel(tmp0_elvis_lhs == null ? serverName + ':' + port : tmp0_elvis_lhs, $record, VOID, nodeTcpConnector($settings.fdf_1));
|
|
4194
4194
|
};
|
|
4195
4195
|
}
|
|
4196
4196
|
function NodeWasmProver$prove$lambda_1($record) {
|
|
4197
4197
|
return function (status) {
|
|
4198
|
-
$record.
|
|
4199
|
-
var progression = Companion_getInstance_17().
|
|
4198
|
+
$record.jdq_1 = status;
|
|
4199
|
+
var progression = Companion_getInstance_17().mdq_1;
|
|
4200
4200
|
var containsLower = progression.s1_1;
|
|
4201
4201
|
var containsUpper = progression.t1_1;
|
|
4202
4202
|
// Inline function 'kotlin.check' call
|
|
@@ -4214,21 +4214,21 @@ function NodeWasmProver$prove$lambda_2($refused) {
|
|
|
4214
4214
|
};
|
|
4215
4215
|
}
|
|
4216
4216
|
function NodeWasmProver$prove$slambda_3($refused, $proof, $config, $host, this$0, resultContinuation) {
|
|
4217
|
-
this.
|
|
4218
|
-
this.
|
|
4219
|
-
this.
|
|
4220
|
-
this.
|
|
4221
|
-
this.
|
|
4217
|
+
this.sdr_1 = $refused;
|
|
4218
|
+
this.tdr_1 = $proof;
|
|
4219
|
+
this.udr_1 = $config;
|
|
4220
|
+
this.vdr_1 = $host;
|
|
4221
|
+
this.wdr_1 = this$0;
|
|
4222
4222
|
CoroutineImpl.call(this, resultContinuation);
|
|
4223
4223
|
}
|
|
4224
|
-
protoOf(NodeWasmProver$prove$slambda_3).
|
|
4224
|
+
protoOf(NodeWasmProver$prove$slambda_3).ydr = function ($this$coroutineScope, $completion) {
|
|
4225
4225
|
var tmp = this.k1p($this$coroutineScope, $completion);
|
|
4226
4226
|
tmp.k9_1 = Unit_instance;
|
|
4227
4227
|
tmp.l9_1 = null;
|
|
4228
4228
|
return tmp.q9();
|
|
4229
4229
|
};
|
|
4230
4230
|
protoOf(NodeWasmProver$prove$slambda_3).da = function (p1, $completion) {
|
|
4231
|
-
return this.
|
|
4231
|
+
return this.ydr((!(p1 == null) ? isInterface(p1, CoroutineScope_0) : false) ? p1 : THROW_CCE(), $completion);
|
|
4232
4232
|
};
|
|
4233
4233
|
protoOf(NodeWasmProver$prove$slambda_3).q9 = function () {
|
|
4234
4234
|
var suspendResult = this.k9_1;
|
|
@@ -4238,11 +4238,11 @@ protoOf(NodeWasmProver$prove$slambda_3).q9 = function () {
|
|
|
4238
4238
|
switch (tmp) {
|
|
4239
4239
|
case 0:
|
|
4240
4240
|
this.j9_1 = 2;
|
|
4241
|
-
var proving = async(this.
|
|
4241
|
+
var proving = async(this.xdr_1, VOID, VOID, NodeWasmProver$prove$slambda$slambda_0(this.tdr_1, this.udr_1, this.vdr_1, this.wdr_1, null));
|
|
4242
4242
|
var $this$run = new SelectImplementation(this.o9());
|
|
4243
4243
|
var tmp_0 = proving.p13();
|
|
4244
4244
|
$this$run.z1t(tmp_0, NodeWasmProver$prove$slambda$slambda_2(null));
|
|
4245
|
-
var tmp_1 = this.
|
|
4245
|
+
var tmp_1 = this.sdr_1.p13();
|
|
4246
4246
|
$this$run.z1t(tmp_1, NodeWasmProver$prove$slambda$slambda_4(proving, null));
|
|
4247
4247
|
this.i9_1 = 1;
|
|
4248
4248
|
suspendResult = $this$run.y1t(this);
|
|
@@ -4268,14 +4268,14 @@ protoOf(NodeWasmProver$prove$slambda_3).q9 = function () {
|
|
|
4268
4268
|
while (true);
|
|
4269
4269
|
};
|
|
4270
4270
|
protoOf(NodeWasmProver$prove$slambda_3).k1p = function ($this$coroutineScope, completion) {
|
|
4271
|
-
var i = new NodeWasmProver$prove$slambda_3(this.
|
|
4272
|
-
i.
|
|
4271
|
+
var i = new NodeWasmProver$prove$slambda_3(this.sdr_1, this.tdr_1, this.udr_1, this.vdr_1, this.wdr_1, completion);
|
|
4272
|
+
i.xdr_1 = $this$coroutineScope;
|
|
4273
4273
|
return i;
|
|
4274
4274
|
};
|
|
4275
4275
|
function NodeWasmProver$prove$slambda_4($refused, $proof, $config, $host, this$0, resultContinuation) {
|
|
4276
4276
|
var i = new NodeWasmProver$prove$slambda_3($refused, $proof, $config, $host, this$0, resultContinuation);
|
|
4277
4277
|
return constructCallableReference(function ($this$coroutineScope, $completion) {
|
|
4278
|
-
return i.
|
|
4278
|
+
return i.ydr($this$coroutineScope, $completion);
|
|
4279
4279
|
}, 1);
|
|
4280
4280
|
}
|
|
4281
4281
|
function NodeWasmProver$classify$lambda(it) {
|
|
@@ -4286,9 +4286,9 @@ function NodeWasmProver$classify$lambda_0(it) {
|
|
|
4286
4286
|
}
|
|
4287
4287
|
function $proveCOROUTINE$_0(_this__u8e3s4, proof, headers, resultContinuation) {
|
|
4288
4288
|
CoroutineImpl.call(this, resultContinuation);
|
|
4289
|
-
this.
|
|
4290
|
-
this.
|
|
4291
|
-
this.
|
|
4289
|
+
this.hds_1 = _this__u8e3s4;
|
|
4290
|
+
this.ids_1 = proof;
|
|
4291
|
+
this.jds_1 = headers;
|
|
4292
4292
|
}
|
|
4293
4293
|
protoOf($proveCOROUTINE$_0).q9 = function () {
|
|
4294
4294
|
var suspendResult = this.k9_1;
|
|
@@ -4299,33 +4299,33 @@ protoOf($proveCOROUTINE$_0).q9 = function () {
|
|
|
4299
4299
|
case 0:
|
|
4300
4300
|
this.j9_1 = 6;
|
|
4301
4301
|
installBrowserWorker();
|
|
4302
|
-
var settings = this.
|
|
4303
|
-
this.
|
|
4302
|
+
var settings = this.ids_1.vdf_1;
|
|
4303
|
+
this.mds_1 = new ProverSessionRecord();
|
|
4304
4304
|
var tmp_0 = this;
|
|
4305
4305
|
var tmp_1 = NodeWasmProver$prove$lambda(settings);
|
|
4306
4306
|
var tmp_2 = NodeWasmProver$prove$slambda_0(settings, null);
|
|
4307
|
-
var tmp_3 = NodeWasmProver$prove$slambda_2(this.
|
|
4308
|
-
var tmp_4 = NodeWasmProver$prove$lambda_0(settings, this.
|
|
4309
|
-
tmp_0.
|
|
4310
|
-
this.
|
|
4311
|
-
this.
|
|
4312
|
-
this.
|
|
4313
|
-
var tmp_5 = this.
|
|
4314
|
-
tmp_5.
|
|
4307
|
+
var tmp_3 = NodeWasmProver$prove$slambda_2(this.mds_1, this.jds_1, null);
|
|
4308
|
+
var tmp_4 = NodeWasmProver$prove$lambda_0(settings, this.mds_1);
|
|
4309
|
+
tmp_0.nds_1 = new WasmProverHost(tmp_1, tmp_2, tmp_3, tmp_4, NodeWasmProver$prove$lambda_1(this.mds_1));
|
|
4310
|
+
this.ods_1 = new TrackerConfig(VOID, VOID, VOID, VOID, VOID, new NotaryConfig(VOID, settings.ddf_1, VOID, VOID, VOID, VOID, settings.edf_1, VOID, VOID, VOID, settings.gdf_1, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, settings.idf_1.a6d_1, settings.jdf_1));
|
|
4311
|
+
this.kds_1 = get_nodeProcess().cpuUsage();
|
|
4312
|
+
this.pds_1 = CompletableDeferred();
|
|
4313
|
+
var tmp_5 = this.mds_1;
|
|
4314
|
+
tmp_5.ldq_1 = NodeWasmProver$prove$lambda_2(this.pds_1);
|
|
4315
4315
|
this.i9_1 = 1;
|
|
4316
4316
|
continue $sm;
|
|
4317
4317
|
case 1:
|
|
4318
4318
|
this.j9_1 = 4;
|
|
4319
4319
|
this.j9_1 = 3;
|
|
4320
4320
|
this.i9_1 = 2;
|
|
4321
|
-
suspendResult = coroutineScope(NodeWasmProver$prove$slambda_4(this.
|
|
4321
|
+
suspendResult = coroutineScope(NodeWasmProver$prove$slambda_4(this.pds_1, this.ids_1, this.ods_1, this.nds_1, this.hds_1, null), this);
|
|
4322
4322
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4323
4323
|
return suspendResult;
|
|
4324
4324
|
}
|
|
4325
4325
|
|
|
4326
4326
|
continue $sm;
|
|
4327
4327
|
case 2:
|
|
4328
|
-
this.
|
|
4328
|
+
this.lds_1 = suspendResult;
|
|
4329
4329
|
this.j9_1 = 6;
|
|
4330
4330
|
this.i9_1 = 5;
|
|
4331
4331
|
continue $sm;
|
|
@@ -4341,7 +4341,7 @@ protoOf($proveCOROUTINE$_0).q9 = function () {
|
|
|
4341
4341
|
if (tmp_8 instanceof Error) {
|
|
4342
4342
|
var e_0 = this.l9_1;
|
|
4343
4343
|
var tmp_9 = this;
|
|
4344
|
-
tmp_9.
|
|
4344
|
+
tmp_9.lds_1 = new Failed_1(classify(this.hds_1, e_0, this.mds_1));
|
|
4345
4345
|
this.j9_1 = 6;
|
|
4346
4346
|
this.i9_1 = 5;
|
|
4347
4347
|
continue $sm;
|
|
@@ -4353,12 +4353,12 @@ protoOf($proveCOROUTINE$_0).q9 = function () {
|
|
|
4353
4353
|
case 4:
|
|
4354
4354
|
this.j9_1 = 6;
|
|
4355
4355
|
var t = this.l9_1;
|
|
4356
|
-
printStats(this.
|
|
4356
|
+
printStats(this.hds_1, this.kds_1);
|
|
4357
4357
|
throw t;
|
|
4358
4358
|
case 5:
|
|
4359
|
-
var tmp_10 = this.
|
|
4359
|
+
var tmp_10 = this.lds_1;
|
|
4360
4360
|
this.j9_1 = 6;
|
|
4361
|
-
printStats(this.
|
|
4361
|
+
printStats(this.hds_1, this.kds_1);
|
|
4362
4362
|
return tmp_10;
|
|
4363
4363
|
case 6:
|
|
4364
4364
|
throw this.l9_1;
|
|
@@ -4376,9 +4376,9 @@ protoOf($proveCOROUTINE$_0).q9 = function () {
|
|
|
4376
4376
|
};
|
|
4377
4377
|
function NodeWasmProver(clock) {
|
|
4378
4378
|
Companion_getInstance_17();
|
|
4379
|
-
this.
|
|
4379
|
+
this.fdp_1 = clock;
|
|
4380
4380
|
}
|
|
4381
|
-
protoOf(NodeWasmProver).
|
|
4381
|
+
protoOf(NodeWasmProver).qds = function (proof, headers, $completion) {
|
|
4382
4382
|
var tmp = new $proveCOROUTINE$_0(this, proof, headers, $completion);
|
|
4383
4383
|
tmp.k9_1 = Unit_instance;
|
|
4384
4384
|
tmp.l9_1 = null;
|
|
@@ -4396,7 +4396,7 @@ function compileWasm(path, $completion) {
|
|
|
4396
4396
|
}
|
|
4397
4397
|
function $compileWasmCOROUTINE$(path, resultContinuation) {
|
|
4398
4398
|
CoroutineImpl.call(this, resultContinuation);
|
|
4399
|
-
this.
|
|
4399
|
+
this.zds_1 = path;
|
|
4400
4400
|
}
|
|
4401
4401
|
protoOf($compileWasmCOROUTINE$).q9 = function () {
|
|
4402
4402
|
var suspendResult = this.k9_1;
|
|
@@ -4407,7 +4407,7 @@ protoOf($compileWasmCOROUTINE$).q9 = function () {
|
|
|
4407
4407
|
case 0:
|
|
4408
4408
|
this.j9_1 = 3;
|
|
4409
4409
|
this.i9_1 = 1;
|
|
4410
|
-
var this_0 = com_dmarket_p2p_headless_node_nodeFs_vfkcsf.promises.readFile(this.
|
|
4410
|
+
var this_0 = com_dmarket_p2p_headless_node_nodeFs_vfkcsf.promises.readFile(this.zds_1);
|
|
4411
4411
|
suspendResult = await_0(this_0, this);
|
|
4412
4412
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4413
4413
|
return suspendResult;
|
|
@@ -4482,15 +4482,15 @@ function get_UNEXPECTED_RESPONSE() {
|
|
|
4482
4482
|
}
|
|
4483
4483
|
var UNEXPECTED_RESPONSE;
|
|
4484
4484
|
function ProverSessionRecord() {
|
|
4485
|
-
this.
|
|
4486
|
-
this.
|
|
4487
|
-
this.
|
|
4488
|
-
this.
|
|
4489
|
-
this.
|
|
4490
|
-
this.
|
|
4491
|
-
this.
|
|
4492
|
-
this.
|
|
4493
|
-
this.
|
|
4485
|
+
this.ddq_1 = false;
|
|
4486
|
+
this.edq_1 = false;
|
|
4487
|
+
this.fdq_1 = null;
|
|
4488
|
+
this.gdq_1 = null;
|
|
4489
|
+
this.hdq_1 = null;
|
|
4490
|
+
this.idq_1 = null;
|
|
4491
|
+
this.jdq_1 = null;
|
|
4492
|
+
this.kdq_1 = null;
|
|
4493
|
+
this.ldq_1 = null;
|
|
4494
4494
|
}
|
|
4495
4495
|
function headerWebSocket(headers_0, record) {
|
|
4496
4496
|
_init_properties_ProverChannels_kt__wlcf1i();
|
|
@@ -4584,7 +4584,7 @@ function nodeTcpConnector(assetsDir) {
|
|
|
4584
4584
|
}
|
|
4585
4585
|
function headerWebSocket$lambda($record) {
|
|
4586
4586
|
return function () {
|
|
4587
|
-
$record.
|
|
4587
|
+
$record.edq_1 = true;
|
|
4588
4588
|
var tmp = get_nodeProcess().memoryUsage().rss;
|
|
4589
4589
|
println('prover: notary connected rssMb=' + divide(numberToLong(isNumber(tmp) ? tmp : THROW_CCE()), new Long(1048576, 0)).toString());
|
|
4590
4590
|
return Unit_instance;
|
|
@@ -4604,7 +4604,7 @@ function headerWebSocket$lambda_0($record) {
|
|
|
4604
4604
|
tmp_0 = null;
|
|
4605
4605
|
} else {
|
|
4606
4606
|
// Inline function 'kotlin.let' call
|
|
4607
|
-
$record.
|
|
4607
|
+
$record.fdq_1 = tmp3_safe_receiver;
|
|
4608
4608
|
tmp_0 = Unit_instance;
|
|
4609
4609
|
}
|
|
4610
4610
|
return tmp_0;
|
|
@@ -4613,8 +4613,8 @@ function headerWebSocket$lambda_0($record) {
|
|
|
4613
4613
|
function headerWebSocket$lambda_1($record) {
|
|
4614
4614
|
return function (code, reason) {
|
|
4615
4615
|
var tmp;
|
|
4616
|
-
if ($record.
|
|
4617
|
-
$record.
|
|
4616
|
+
if ($record.edq_1) {
|
|
4617
|
+
$record.gdq_1 = code;
|
|
4618
4618
|
var tmp_0 = $record;
|
|
4619
4619
|
var tmp_1;
|
|
4620
4620
|
if (reason == null) {
|
|
@@ -4630,14 +4630,14 @@ function headerWebSocket$lambda_1($record) {
|
|
|
4630
4630
|
}
|
|
4631
4631
|
tmp_1 = tmp_2;
|
|
4632
4632
|
}
|
|
4633
|
-
tmp_0.
|
|
4633
|
+
tmp_0.hdq_1 = tmp_1;
|
|
4634
4634
|
var tmp_3;
|
|
4635
4635
|
if (!get_UNDELIBERATE_CLOSES().k1(code)) {
|
|
4636
|
-
var tmp1_safe_receiver = $record.
|
|
4636
|
+
var tmp1_safe_receiver = $record.ldq_1;
|
|
4637
4637
|
if (tmp1_safe_receiver == null)
|
|
4638
4638
|
null;
|
|
4639
4639
|
else
|
|
4640
|
-
tmp1_safe_receiver(code, $record.
|
|
4640
|
+
tmp1_safe_receiver(code, $record.hdq_1);
|
|
4641
4641
|
tmp_3 = Unit_instance;
|
|
4642
4642
|
}
|
|
4643
4643
|
tmp = tmp_3;
|
|
@@ -4648,9 +4648,9 @@ function headerWebSocket$lambda_1($record) {
|
|
|
4648
4648
|
function recordedTargetChannel$lambda($record) {
|
|
4649
4649
|
return function (message) {
|
|
4650
4650
|
var tmp;
|
|
4651
|
-
if ($record.
|
|
4651
|
+
if ($record.idq_1 == null) {
|
|
4652
4652
|
var tmp_0 = $record;
|
|
4653
|
-
tmp_0.
|
|
4653
|
+
tmp_0.idq_1 = message == null ? 'the Steam connection failed' : message;
|
|
4654
4654
|
tmp = Unit_instance;
|
|
4655
4655
|
}
|
|
4656
4656
|
return Unit_instance;
|
|
@@ -4665,34 +4665,34 @@ function _init_properties_ProverChannels_kt__wlcf1i() {
|
|
|
4665
4665
|
}
|
|
4666
4666
|
}
|
|
4667
4667
|
function Proved_1(presentation) {
|
|
4668
|
-
this.
|
|
4668
|
+
this.adt_1 = presentation;
|
|
4669
4669
|
}
|
|
4670
4670
|
protoOf(Proved_1).toString = function () {
|
|
4671
|
-
return 'Proved(presentation=' + this.
|
|
4671
|
+
return 'Proved(presentation=' + this.adt_1 + ')';
|
|
4672
4672
|
};
|
|
4673
4673
|
protoOf(Proved_1).hashCode = function () {
|
|
4674
|
-
return getStringHashCode(this.
|
|
4674
|
+
return getStringHashCode(this.adt_1);
|
|
4675
4675
|
};
|
|
4676
4676
|
protoOf(Proved_1).equals = function (other) {
|
|
4677
4677
|
if (this === other)
|
|
4678
4678
|
return true;
|
|
4679
4679
|
if (!(other instanceof Proved_1))
|
|
4680
4680
|
return false;
|
|
4681
|
-
if (!(this.
|
|
4681
|
+
if (!(this.adt_1 === other.adt_1))
|
|
4682
4682
|
return false;
|
|
4683
4683
|
return true;
|
|
4684
4684
|
};
|
|
4685
4685
|
function Failed_1(failure, exitAfter) {
|
|
4686
4686
|
exitAfter = exitAfter === VOID ? false : exitAfter;
|
|
4687
|
-
this.
|
|
4688
|
-
this.
|
|
4687
|
+
this.bdt_1 = failure;
|
|
4688
|
+
this.cdt_1 = exitAfter;
|
|
4689
4689
|
}
|
|
4690
4690
|
protoOf(Failed_1).toString = function () {
|
|
4691
|
-
return 'Failed(failure=' + toString(this.
|
|
4691
|
+
return 'Failed(failure=' + toString(this.bdt_1) + ', exitAfter=' + this.cdt_1 + ')';
|
|
4692
4692
|
};
|
|
4693
4693
|
protoOf(Failed_1).hashCode = function () {
|
|
4694
|
-
var result = hashCode(this.
|
|
4695
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
4694
|
+
var result = hashCode(this.bdt_1);
|
|
4695
|
+
result = imul(result, 31) + getBooleanHashCode(this.cdt_1) | 0;
|
|
4696
4696
|
return result;
|
|
4697
4697
|
};
|
|
4698
4698
|
protoOf(Failed_1).equals = function (other) {
|
|
@@ -4700,9 +4700,9 @@ protoOf(Failed_1).equals = function (other) {
|
|
|
4700
4700
|
return true;
|
|
4701
4701
|
if (!(other instanceof Failed_1))
|
|
4702
4702
|
return false;
|
|
4703
|
-
if (!equals(this.
|
|
4703
|
+
if (!equals(this.bdt_1, other.bdt_1))
|
|
4704
4704
|
return false;
|
|
4705
|
-
if (!(this.
|
|
4705
|
+
if (!(this.cdt_1 === other.cdt_1))
|
|
4706
4706
|
return false;
|
|
4707
4707
|
return true;
|
|
4708
4708
|
};
|
|
@@ -4756,18 +4756,18 @@ function markFirstToKill() {
|
|
|
4756
4756
|
}
|
|
4757
4757
|
}
|
|
4758
4758
|
function runProverChild$lambda$slambda$slambda($waiting, $message, resultContinuation) {
|
|
4759
|
-
this.
|
|
4760
|
-
this.
|
|
4759
|
+
this.ldt_1 = $waiting;
|
|
4760
|
+
this.mdt_1 = $message;
|
|
4761
4761
|
CoroutineImpl.call(this, resultContinuation);
|
|
4762
4762
|
}
|
|
4763
|
-
protoOf(runProverChild$lambda$slambda$slambda).
|
|
4763
|
+
protoOf(runProverChild$lambda$slambda$slambda).ndt = function ($completion) {
|
|
4764
4764
|
var tmp = this.d33($completion);
|
|
4765
4765
|
tmp.k9_1 = Unit_instance;
|
|
4766
4766
|
tmp.l9_1 = null;
|
|
4767
4767
|
return tmp.q9();
|
|
4768
4768
|
};
|
|
4769
4769
|
protoOf(runProverChild$lambda$slambda$slambda).ca = function ($completion) {
|
|
4770
|
-
return this.
|
|
4770
|
+
return this.ndt($completion);
|
|
4771
4771
|
};
|
|
4772
4772
|
protoOf(runProverChild$lambda$slambda$slambda).q9 = function () {
|
|
4773
4773
|
var suspendResult = this.k9_1;
|
|
@@ -4778,10 +4778,10 @@ protoOf(runProverChild$lambda$slambda$slambda).q9 = function () {
|
|
|
4778
4778
|
case 0:
|
|
4779
4779
|
this.j9_1 = 2;
|
|
4780
4780
|
var reply = CompletableDeferred();
|
|
4781
|
-
var tmp0 = this.
|
|
4782
|
-
var key = this.
|
|
4781
|
+
var tmp0 = this.ldt_1;
|
|
4782
|
+
var key = this.mdt_1.rdf_1;
|
|
4783
4783
|
tmp0.a3(key, reply);
|
|
4784
|
-
send(ProverIpc_getInstance().
|
|
4784
|
+
send(ProverIpc_getInstance().mdf(new HeadersWanted(this.mdt_1.rdf_1)));
|
|
4785
4785
|
this.i9_1 = 1;
|
|
4786
4786
|
suspendResult = reply.o13(this);
|
|
4787
4787
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -4791,10 +4791,10 @@ protoOf(runProverChild$lambda$slambda$slambda).q9 = function () {
|
|
|
4791
4791
|
continue $sm;
|
|
4792
4792
|
case 1:
|
|
4793
4793
|
var answer = suspendResult;
|
|
4794
|
-
var tmp0_elvis_lhs = answer.
|
|
4794
|
+
var tmp0_elvis_lhs = answer.adg_1;
|
|
4795
4795
|
var tmp_0;
|
|
4796
4796
|
if (tmp0_elvis_lhs == null) {
|
|
4797
|
-
var tmp1_elvis_lhs = answer.
|
|
4797
|
+
var tmp1_elvis_lhs = answer.bdg_1;
|
|
4798
4798
|
var message = tmp1_elvis_lhs == null ? 'the SDK sent no upgrade headers' : tmp1_elvis_lhs;
|
|
4799
4799
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
4800
4800
|
} else {
|
|
@@ -4817,12 +4817,12 @@ protoOf(runProverChild$lambda$slambda$slambda).q9 = function () {
|
|
|
4817
4817
|
while (true);
|
|
4818
4818
|
};
|
|
4819
4819
|
protoOf(runProverChild$lambda$slambda$slambda).d33 = function (completion) {
|
|
4820
|
-
return new runProverChild$lambda$slambda$slambda(this.
|
|
4820
|
+
return new runProverChild$lambda$slambda$slambda(this.ldt_1, this.mdt_1, completion);
|
|
4821
4821
|
};
|
|
4822
4822
|
function runProverChild$lambda$slambda$slambda_0($waiting, $message, resultContinuation) {
|
|
4823
4823
|
var i = new runProverChild$lambda$slambda$slambda($waiting, $message, resultContinuation);
|
|
4824
4824
|
return constructCallableReference(function ($completion) {
|
|
4825
|
-
return i.
|
|
4825
|
+
return i.ndt($completion);
|
|
4826
4826
|
}, 0);
|
|
4827
4827
|
}
|
|
4828
4828
|
function runProverChild$lambda$slambda$lambda($process) {
|
|
@@ -4831,10 +4831,10 @@ function runProverChild$lambda$slambda$lambda($process) {
|
|
|
4831
4831
|
};
|
|
4832
4832
|
}
|
|
4833
4833
|
function runProverChild$lambda$slambda($prover, $message, $waiting, $process, resultContinuation) {
|
|
4834
|
-
this.
|
|
4835
|
-
this.
|
|
4836
|
-
this.
|
|
4837
|
-
this.
|
|
4834
|
+
this.wdt_1 = $prover;
|
|
4835
|
+
this.xdt_1 = $message;
|
|
4836
|
+
this.ydt_1 = $waiting;
|
|
4837
|
+
this.zdt_1 = $process;
|
|
4838
4838
|
CoroutineImpl.call(this, resultContinuation);
|
|
4839
4839
|
}
|
|
4840
4840
|
protoOf(runProverChild$lambda$slambda).j1p = function ($this$launch, $completion) {
|
|
@@ -4854,17 +4854,17 @@ protoOf(runProverChild$lambda$slambda).q9 = function () {
|
|
|
4854
4854
|
switch (tmp) {
|
|
4855
4855
|
case 0:
|
|
4856
4856
|
this.j9_1 = 4;
|
|
4857
|
-
var headers = runProverChild$lambda$slambda$slambda_0(this.
|
|
4857
|
+
var headers = runProverChild$lambda$slambda$slambda_0(this.ydt_1, this.xdt_1, null);
|
|
4858
4858
|
this.j9_1 = 2;
|
|
4859
4859
|
this.i9_1 = 1;
|
|
4860
|
-
suspendResult = this.
|
|
4860
|
+
suspendResult = this.wdt_1.qds(this.xdt_1, headers, this);
|
|
4861
4861
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4862
4862
|
return suspendResult;
|
|
4863
4863
|
}
|
|
4864
4864
|
|
|
4865
4865
|
continue $sm;
|
|
4866
4866
|
case 1:
|
|
4867
|
-
this.
|
|
4867
|
+
this.bdu_1 = suspendResult;
|
|
4868
4868
|
this.j9_1 = 4;
|
|
4869
4869
|
this.i9_1 = 3;
|
|
4870
4870
|
continue $sm;
|
|
@@ -4876,7 +4876,7 @@ protoOf(runProverChild$lambda$slambda).q9 = function () {
|
|
|
4876
4876
|
var tmp_1 = this;
|
|
4877
4877
|
var tmp0_elvis_lhs = e.message;
|
|
4878
4878
|
var tmp1_elvis_lhs = tmp0_elvis_lhs == null ? getKClassFromExpression(e).o() : tmp0_elvis_lhs;
|
|
4879
|
-
tmp_1.
|
|
4879
|
+
tmp_1.bdu_1 = new Failed_1(new Other(tmp1_elvis_lhs == null ? 'the prover failed' : tmp1_elvis_lhs));
|
|
4880
4880
|
this.i9_1 = 3;
|
|
4881
4881
|
continue $sm;
|
|
4882
4882
|
} else {
|
|
@@ -4885,30 +4885,30 @@ protoOf(runProverChild$lambda$slambda).q9 = function () {
|
|
|
4885
4885
|
|
|
4886
4886
|
case 3:
|
|
4887
4887
|
this.j9_1 = 4;
|
|
4888
|
-
var result = this.
|
|
4888
|
+
var result = this.bdu_1;
|
|
4889
4889
|
var tmp_2 = ProverIpc_getInstance();
|
|
4890
4890
|
var tmp_3;
|
|
4891
4891
|
if (result instanceof Proved_1) {
|
|
4892
|
-
tmp_3 = new Proved_0(this.
|
|
4892
|
+
tmp_3 = new Proved_0(this.xdt_1.rdf_1, result.adt_1);
|
|
4893
4893
|
} else {
|
|
4894
4894
|
if (result instanceof Failed_1) {
|
|
4895
|
-
tmp_3 = new Failed_0(this.
|
|
4895
|
+
tmp_3 = new Failed_0(this.xdt_1.rdf_1, result.bdt_1);
|
|
4896
4896
|
} else {
|
|
4897
4897
|
noWhenBranchMatchedException();
|
|
4898
4898
|
}
|
|
4899
4899
|
}
|
|
4900
4900
|
|
|
4901
|
-
send(tmp_2.
|
|
4901
|
+
send(tmp_2.mdf(tmp_3));
|
|
4902
4902
|
var tmp_4;
|
|
4903
4903
|
if (result instanceof Failed_1) {
|
|
4904
|
-
tmp_4 = result.
|
|
4904
|
+
tmp_4 = result.cdt_1;
|
|
4905
4905
|
} else {
|
|
4906
4906
|
tmp_4 = false;
|
|
4907
4907
|
}
|
|
4908
4908
|
|
|
4909
4909
|
if (tmp_4) {
|
|
4910
4910
|
var tmp_5 = setTimeout;
|
|
4911
|
-
tmp_5(runProverChild$lambda$slambda$lambda(this.
|
|
4911
|
+
tmp_5(runProverChild$lambda$slambda$lambda(this.zdt_1), 200);
|
|
4912
4912
|
}
|
|
4913
4913
|
|
|
4914
4914
|
return Unit_instance;
|
|
@@ -4927,8 +4927,8 @@ protoOf(runProverChild$lambda$slambda).q9 = function () {
|
|
|
4927
4927
|
while (true);
|
|
4928
4928
|
};
|
|
4929
4929
|
protoOf(runProverChild$lambda$slambda).k1p = function ($this$launch, completion) {
|
|
4930
|
-
var i = new runProverChild$lambda$slambda(this.
|
|
4931
|
-
i.
|
|
4930
|
+
var i = new runProverChild$lambda$slambda(this.wdt_1, this.xdt_1, this.ydt_1, this.zdt_1, completion);
|
|
4931
|
+
i.adu_1 = $this$launch;
|
|
4932
4932
|
return i;
|
|
4933
4933
|
};
|
|
4934
4934
|
function runProverChild$lambda$slambda_0($prover, $message, $waiting, $process, resultContinuation) {
|
|
@@ -4949,7 +4949,7 @@ function runProverChild$lambda($waiting, $scope, $prover, $process) {
|
|
|
4949
4949
|
var tmp_1 = ProverIpc_getInstance();
|
|
4950
4950
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
4951
4951
|
// Inline function 'kotlin.Companion.success' call
|
|
4952
|
-
var value = tmp_1.
|
|
4952
|
+
var value = tmp_1.ndf(raw);
|
|
4953
4953
|
tmp_0 = _Result___init__impl__xyqfz8(value);
|
|
4954
4954
|
} catch ($p) {
|
|
4955
4955
|
var tmp_2;
|
|
@@ -4966,7 +4966,7 @@ function runProverChild$lambda($waiting, $scope, $prover, $process) {
|
|
|
4966
4966
|
var this_0 = tmp_0;
|
|
4967
4967
|
var message = _Result___get_isFailure__impl__jpiriv(this_0) ? null : _Result___get_value__impl__bjfvqg(this_0);
|
|
4968
4968
|
if (message instanceof Headers) {
|
|
4969
|
-
var tmp0_safe_receiver = $waiting.b3(message.
|
|
4969
|
+
var tmp0_safe_receiver = $waiting.b3(message.zdf_1);
|
|
4970
4970
|
if (tmp0_safe_receiver == null)
|
|
4971
4971
|
null;
|
|
4972
4972
|
else
|
|
@@ -5045,7 +5045,7 @@ function checkProverAssets(assetsDir, mode, transport) {
|
|
|
5045
5045
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
5046
5046
|
}
|
|
5047
5047
|
var capabilities = tmp_2;
|
|
5048
|
-
capabilities.
|
|
5048
|
+
capabilities.uc7(mode, transport);
|
|
5049
5049
|
}
|
|
5050
5050
|
//region block: post-declaration
|
|
5051
5051
|
protoOf($serializer).r2l = typeParametersSerializers;
|