@farcaster/hub-web 0.8.12 → 0.9.0
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/dist/index.d.ts +66 -3
- package/dist/index.js +1045 -888
- package/dist/index.mjs +1045 -888
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
@@ -380,870 +380,6 @@ var require_browser_headers = __commonJS({
|
|
380
380
|
}
|
381
381
|
});
|
382
382
|
|
383
|
-
// ../../node_modules/long/src/long.js
|
384
|
-
var require_long = __commonJS({
|
385
|
-
"../../node_modules/long/src/long.js"(exports2, module2) {
|
386
|
-
init_esm_shims();
|
387
|
-
module2.exports = Long7;
|
388
|
-
var wasm = null;
|
389
|
-
try {
|
390
|
-
wasm = new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([
|
391
|
-
0,
|
392
|
-
97,
|
393
|
-
115,
|
394
|
-
109,
|
395
|
-
1,
|
396
|
-
0,
|
397
|
-
0,
|
398
|
-
0,
|
399
|
-
1,
|
400
|
-
13,
|
401
|
-
2,
|
402
|
-
96,
|
403
|
-
0,
|
404
|
-
1,
|
405
|
-
127,
|
406
|
-
96,
|
407
|
-
4,
|
408
|
-
127,
|
409
|
-
127,
|
410
|
-
127,
|
411
|
-
127,
|
412
|
-
1,
|
413
|
-
127,
|
414
|
-
3,
|
415
|
-
7,
|
416
|
-
6,
|
417
|
-
0,
|
418
|
-
1,
|
419
|
-
1,
|
420
|
-
1,
|
421
|
-
1,
|
422
|
-
1,
|
423
|
-
6,
|
424
|
-
6,
|
425
|
-
1,
|
426
|
-
127,
|
427
|
-
1,
|
428
|
-
65,
|
429
|
-
0,
|
430
|
-
11,
|
431
|
-
7,
|
432
|
-
50,
|
433
|
-
6,
|
434
|
-
3,
|
435
|
-
109,
|
436
|
-
117,
|
437
|
-
108,
|
438
|
-
0,
|
439
|
-
1,
|
440
|
-
5,
|
441
|
-
100,
|
442
|
-
105,
|
443
|
-
118,
|
444
|
-
95,
|
445
|
-
115,
|
446
|
-
0,
|
447
|
-
2,
|
448
|
-
5,
|
449
|
-
100,
|
450
|
-
105,
|
451
|
-
118,
|
452
|
-
95,
|
453
|
-
117,
|
454
|
-
0,
|
455
|
-
3,
|
456
|
-
5,
|
457
|
-
114,
|
458
|
-
101,
|
459
|
-
109,
|
460
|
-
95,
|
461
|
-
115,
|
462
|
-
0,
|
463
|
-
4,
|
464
|
-
5,
|
465
|
-
114,
|
466
|
-
101,
|
467
|
-
109,
|
468
|
-
95,
|
469
|
-
117,
|
470
|
-
0,
|
471
|
-
5,
|
472
|
-
8,
|
473
|
-
103,
|
474
|
-
101,
|
475
|
-
116,
|
476
|
-
95,
|
477
|
-
104,
|
478
|
-
105,
|
479
|
-
103,
|
480
|
-
104,
|
481
|
-
0,
|
482
|
-
0,
|
483
|
-
10,
|
484
|
-
191,
|
485
|
-
1,
|
486
|
-
6,
|
487
|
-
4,
|
488
|
-
0,
|
489
|
-
35,
|
490
|
-
0,
|
491
|
-
11,
|
492
|
-
36,
|
493
|
-
1,
|
494
|
-
1,
|
495
|
-
126,
|
496
|
-
32,
|
497
|
-
0,
|
498
|
-
173,
|
499
|
-
32,
|
500
|
-
1,
|
501
|
-
173,
|
502
|
-
66,
|
503
|
-
32,
|
504
|
-
134,
|
505
|
-
132,
|
506
|
-
32,
|
507
|
-
2,
|
508
|
-
173,
|
509
|
-
32,
|
510
|
-
3,
|
511
|
-
173,
|
512
|
-
66,
|
513
|
-
32,
|
514
|
-
134,
|
515
|
-
132,
|
516
|
-
126,
|
517
|
-
34,
|
518
|
-
4,
|
519
|
-
66,
|
520
|
-
32,
|
521
|
-
135,
|
522
|
-
167,
|
523
|
-
36,
|
524
|
-
0,
|
525
|
-
32,
|
526
|
-
4,
|
527
|
-
167,
|
528
|
-
11,
|
529
|
-
36,
|
530
|
-
1,
|
531
|
-
1,
|
532
|
-
126,
|
533
|
-
32,
|
534
|
-
0,
|
535
|
-
173,
|
536
|
-
32,
|
537
|
-
1,
|
538
|
-
173,
|
539
|
-
66,
|
540
|
-
32,
|
541
|
-
134,
|
542
|
-
132,
|
543
|
-
32,
|
544
|
-
2,
|
545
|
-
173,
|
546
|
-
32,
|
547
|
-
3,
|
548
|
-
173,
|
549
|
-
66,
|
550
|
-
32,
|
551
|
-
134,
|
552
|
-
132,
|
553
|
-
127,
|
554
|
-
34,
|
555
|
-
4,
|
556
|
-
66,
|
557
|
-
32,
|
558
|
-
135,
|
559
|
-
167,
|
560
|
-
36,
|
561
|
-
0,
|
562
|
-
32,
|
563
|
-
4,
|
564
|
-
167,
|
565
|
-
11,
|
566
|
-
36,
|
567
|
-
1,
|
568
|
-
1,
|
569
|
-
126,
|
570
|
-
32,
|
571
|
-
0,
|
572
|
-
173,
|
573
|
-
32,
|
574
|
-
1,
|
575
|
-
173,
|
576
|
-
66,
|
577
|
-
32,
|
578
|
-
134,
|
579
|
-
132,
|
580
|
-
32,
|
581
|
-
2,
|
582
|
-
173,
|
583
|
-
32,
|
584
|
-
3,
|
585
|
-
173,
|
586
|
-
66,
|
587
|
-
32,
|
588
|
-
134,
|
589
|
-
132,
|
590
|
-
128,
|
591
|
-
34,
|
592
|
-
4,
|
593
|
-
66,
|
594
|
-
32,
|
595
|
-
135,
|
596
|
-
167,
|
597
|
-
36,
|
598
|
-
0,
|
599
|
-
32,
|
600
|
-
4,
|
601
|
-
167,
|
602
|
-
11,
|
603
|
-
36,
|
604
|
-
1,
|
605
|
-
1,
|
606
|
-
126,
|
607
|
-
32,
|
608
|
-
0,
|
609
|
-
173,
|
610
|
-
32,
|
611
|
-
1,
|
612
|
-
173,
|
613
|
-
66,
|
614
|
-
32,
|
615
|
-
134,
|
616
|
-
132,
|
617
|
-
32,
|
618
|
-
2,
|
619
|
-
173,
|
620
|
-
32,
|
621
|
-
3,
|
622
|
-
173,
|
623
|
-
66,
|
624
|
-
32,
|
625
|
-
134,
|
626
|
-
132,
|
627
|
-
129,
|
628
|
-
34,
|
629
|
-
4,
|
630
|
-
66,
|
631
|
-
32,
|
632
|
-
135,
|
633
|
-
167,
|
634
|
-
36,
|
635
|
-
0,
|
636
|
-
32,
|
637
|
-
4,
|
638
|
-
167,
|
639
|
-
11,
|
640
|
-
36,
|
641
|
-
1,
|
642
|
-
1,
|
643
|
-
126,
|
644
|
-
32,
|
645
|
-
0,
|
646
|
-
173,
|
647
|
-
32,
|
648
|
-
1,
|
649
|
-
173,
|
650
|
-
66,
|
651
|
-
32,
|
652
|
-
134,
|
653
|
-
132,
|
654
|
-
32,
|
655
|
-
2,
|
656
|
-
173,
|
657
|
-
32,
|
658
|
-
3,
|
659
|
-
173,
|
660
|
-
66,
|
661
|
-
32,
|
662
|
-
134,
|
663
|
-
132,
|
664
|
-
130,
|
665
|
-
34,
|
666
|
-
4,
|
667
|
-
66,
|
668
|
-
32,
|
669
|
-
135,
|
670
|
-
167,
|
671
|
-
36,
|
672
|
-
0,
|
673
|
-
32,
|
674
|
-
4,
|
675
|
-
167,
|
676
|
-
11
|
677
|
-
])), {}).exports;
|
678
|
-
} catch (e) {
|
679
|
-
}
|
680
|
-
function Long7(low, high, unsigned) {
|
681
|
-
this.low = low | 0;
|
682
|
-
this.high = high | 0;
|
683
|
-
this.unsigned = !!unsigned;
|
684
|
-
}
|
685
|
-
Long7.prototype.__isLong__;
|
686
|
-
Object.defineProperty(Long7.prototype, "__isLong__", { value: true });
|
687
|
-
function isLong(obj) {
|
688
|
-
return (obj && obj["__isLong__"]) === true;
|
689
|
-
}
|
690
|
-
Long7.isLong = isLong;
|
691
|
-
var INT_CACHE = {};
|
692
|
-
var UINT_CACHE = {};
|
693
|
-
function fromInt(value, unsigned) {
|
694
|
-
var obj, cachedObj, cache;
|
695
|
-
if (unsigned) {
|
696
|
-
value >>>= 0;
|
697
|
-
if (cache = 0 <= value && value < 256) {
|
698
|
-
cachedObj = UINT_CACHE[value];
|
699
|
-
if (cachedObj)
|
700
|
-
return cachedObj;
|
701
|
-
}
|
702
|
-
obj = fromBits(value, (value | 0) < 0 ? -1 : 0, true);
|
703
|
-
if (cache)
|
704
|
-
UINT_CACHE[value] = obj;
|
705
|
-
return obj;
|
706
|
-
} else {
|
707
|
-
value |= 0;
|
708
|
-
if (cache = -128 <= value && value < 128) {
|
709
|
-
cachedObj = INT_CACHE[value];
|
710
|
-
if (cachedObj)
|
711
|
-
return cachedObj;
|
712
|
-
}
|
713
|
-
obj = fromBits(value, value < 0 ? -1 : 0, false);
|
714
|
-
if (cache)
|
715
|
-
INT_CACHE[value] = obj;
|
716
|
-
return obj;
|
717
|
-
}
|
718
|
-
}
|
719
|
-
Long7.fromInt = fromInt;
|
720
|
-
function fromNumber(value, unsigned) {
|
721
|
-
if (isNaN(value))
|
722
|
-
return unsigned ? UZERO : ZERO;
|
723
|
-
if (unsigned) {
|
724
|
-
if (value < 0)
|
725
|
-
return UZERO;
|
726
|
-
if (value >= TWO_PWR_64_DBL)
|
727
|
-
return MAX_UNSIGNED_VALUE;
|
728
|
-
} else {
|
729
|
-
if (value <= -TWO_PWR_63_DBL)
|
730
|
-
return MIN_VALUE;
|
731
|
-
if (value + 1 >= TWO_PWR_63_DBL)
|
732
|
-
return MAX_VALUE;
|
733
|
-
}
|
734
|
-
if (value < 0)
|
735
|
-
return fromNumber(-value, unsigned).neg();
|
736
|
-
return fromBits(value % TWO_PWR_32_DBL | 0, value / TWO_PWR_32_DBL | 0, unsigned);
|
737
|
-
}
|
738
|
-
Long7.fromNumber = fromNumber;
|
739
|
-
function fromBits(lowBits, highBits, unsigned) {
|
740
|
-
return new Long7(lowBits, highBits, unsigned);
|
741
|
-
}
|
742
|
-
Long7.fromBits = fromBits;
|
743
|
-
var pow_dbl = Math.pow;
|
744
|
-
function fromString(str, unsigned, radix) {
|
745
|
-
if (str.length === 0)
|
746
|
-
throw Error("empty string");
|
747
|
-
if (str === "NaN" || str === "Infinity" || str === "+Infinity" || str === "-Infinity")
|
748
|
-
return ZERO;
|
749
|
-
if (typeof unsigned === "number") {
|
750
|
-
radix = unsigned, unsigned = false;
|
751
|
-
} else {
|
752
|
-
unsigned = !!unsigned;
|
753
|
-
}
|
754
|
-
radix = radix || 10;
|
755
|
-
if (radix < 2 || 36 < radix)
|
756
|
-
throw RangeError("radix");
|
757
|
-
var p;
|
758
|
-
if ((p = str.indexOf("-")) > 0)
|
759
|
-
throw Error("interior hyphen");
|
760
|
-
else if (p === 0) {
|
761
|
-
return fromString(str.substring(1), unsigned, radix).neg();
|
762
|
-
}
|
763
|
-
var radixToPower = fromNumber(pow_dbl(radix, 8));
|
764
|
-
var result = ZERO;
|
765
|
-
for (var i = 0; i < str.length; i += 8) {
|
766
|
-
var size = Math.min(8, str.length - i), value = parseInt(str.substring(i, i + size), radix);
|
767
|
-
if (size < 8) {
|
768
|
-
var power = fromNumber(pow_dbl(radix, size));
|
769
|
-
result = result.mul(power).add(fromNumber(value));
|
770
|
-
} else {
|
771
|
-
result = result.mul(radixToPower);
|
772
|
-
result = result.add(fromNumber(value));
|
773
|
-
}
|
774
|
-
}
|
775
|
-
result.unsigned = unsigned;
|
776
|
-
return result;
|
777
|
-
}
|
778
|
-
Long7.fromString = fromString;
|
779
|
-
function fromValue(val, unsigned) {
|
780
|
-
if (typeof val === "number")
|
781
|
-
return fromNumber(val, unsigned);
|
782
|
-
if (typeof val === "string")
|
783
|
-
return fromString(val, unsigned);
|
784
|
-
return fromBits(val.low, val.high, typeof unsigned === "boolean" ? unsigned : val.unsigned);
|
785
|
-
}
|
786
|
-
Long7.fromValue = fromValue;
|
787
|
-
var TWO_PWR_16_DBL = 1 << 16;
|
788
|
-
var TWO_PWR_24_DBL = 1 << 24;
|
789
|
-
var TWO_PWR_32_DBL = TWO_PWR_16_DBL * TWO_PWR_16_DBL;
|
790
|
-
var TWO_PWR_64_DBL = TWO_PWR_32_DBL * TWO_PWR_32_DBL;
|
791
|
-
var TWO_PWR_63_DBL = TWO_PWR_64_DBL / 2;
|
792
|
-
var TWO_PWR_24 = fromInt(TWO_PWR_24_DBL);
|
793
|
-
var ZERO = fromInt(0);
|
794
|
-
Long7.ZERO = ZERO;
|
795
|
-
var UZERO = fromInt(0, true);
|
796
|
-
Long7.UZERO = UZERO;
|
797
|
-
var ONE = fromInt(1);
|
798
|
-
Long7.ONE = ONE;
|
799
|
-
var UONE = fromInt(1, true);
|
800
|
-
Long7.UONE = UONE;
|
801
|
-
var NEG_ONE = fromInt(-1);
|
802
|
-
Long7.NEG_ONE = NEG_ONE;
|
803
|
-
var MAX_VALUE = fromBits(4294967295 | 0, 2147483647 | 0, false);
|
804
|
-
Long7.MAX_VALUE = MAX_VALUE;
|
805
|
-
var MAX_UNSIGNED_VALUE = fromBits(4294967295 | 0, 4294967295 | 0, true);
|
806
|
-
Long7.MAX_UNSIGNED_VALUE = MAX_UNSIGNED_VALUE;
|
807
|
-
var MIN_VALUE = fromBits(0, 2147483648 | 0, false);
|
808
|
-
Long7.MIN_VALUE = MIN_VALUE;
|
809
|
-
var LongPrototype = Long7.prototype;
|
810
|
-
LongPrototype.toInt = function toInt() {
|
811
|
-
return this.unsigned ? this.low >>> 0 : this.low;
|
812
|
-
};
|
813
|
-
LongPrototype.toNumber = function toNumber() {
|
814
|
-
if (this.unsigned)
|
815
|
-
return (this.high >>> 0) * TWO_PWR_32_DBL + (this.low >>> 0);
|
816
|
-
return this.high * TWO_PWR_32_DBL + (this.low >>> 0);
|
817
|
-
};
|
818
|
-
LongPrototype.toString = function toString(radix) {
|
819
|
-
radix = radix || 10;
|
820
|
-
if (radix < 2 || 36 < radix)
|
821
|
-
throw RangeError("radix");
|
822
|
-
if (this.isZero())
|
823
|
-
return "0";
|
824
|
-
if (this.isNegative()) {
|
825
|
-
if (this.eq(MIN_VALUE)) {
|
826
|
-
var radixLong = fromNumber(radix), div = this.div(radixLong), rem1 = div.mul(radixLong).sub(this);
|
827
|
-
return div.toString(radix) + rem1.toInt().toString(radix);
|
828
|
-
} else
|
829
|
-
return "-" + this.neg().toString(radix);
|
830
|
-
}
|
831
|
-
var radixToPower = fromNumber(pow_dbl(radix, 6), this.unsigned), rem = this;
|
832
|
-
var result = "";
|
833
|
-
while (true) {
|
834
|
-
var remDiv = rem.div(radixToPower), intval = rem.sub(remDiv.mul(radixToPower)).toInt() >>> 0, digits = intval.toString(radix);
|
835
|
-
rem = remDiv;
|
836
|
-
if (rem.isZero())
|
837
|
-
return digits + result;
|
838
|
-
else {
|
839
|
-
while (digits.length < 6)
|
840
|
-
digits = "0" + digits;
|
841
|
-
result = "" + digits + result;
|
842
|
-
}
|
843
|
-
}
|
844
|
-
};
|
845
|
-
LongPrototype.getHighBits = function getHighBits() {
|
846
|
-
return this.high;
|
847
|
-
};
|
848
|
-
LongPrototype.getHighBitsUnsigned = function getHighBitsUnsigned() {
|
849
|
-
return this.high >>> 0;
|
850
|
-
};
|
851
|
-
LongPrototype.getLowBits = function getLowBits() {
|
852
|
-
return this.low;
|
853
|
-
};
|
854
|
-
LongPrototype.getLowBitsUnsigned = function getLowBitsUnsigned() {
|
855
|
-
return this.low >>> 0;
|
856
|
-
};
|
857
|
-
LongPrototype.getNumBitsAbs = function getNumBitsAbs() {
|
858
|
-
if (this.isNegative())
|
859
|
-
return this.eq(MIN_VALUE) ? 64 : this.neg().getNumBitsAbs();
|
860
|
-
var val = this.high != 0 ? this.high : this.low;
|
861
|
-
for (var bit = 31; bit > 0; bit--)
|
862
|
-
if ((val & 1 << bit) != 0)
|
863
|
-
break;
|
864
|
-
return this.high != 0 ? bit + 33 : bit + 1;
|
865
|
-
};
|
866
|
-
LongPrototype.isZero = function isZero() {
|
867
|
-
return this.high === 0 && this.low === 0;
|
868
|
-
};
|
869
|
-
LongPrototype.eqz = LongPrototype.isZero;
|
870
|
-
LongPrototype.isNegative = function isNegative() {
|
871
|
-
return !this.unsigned && this.high < 0;
|
872
|
-
};
|
873
|
-
LongPrototype.isPositive = function isPositive() {
|
874
|
-
return this.unsigned || this.high >= 0;
|
875
|
-
};
|
876
|
-
LongPrototype.isOdd = function isOdd() {
|
877
|
-
return (this.low & 1) === 1;
|
878
|
-
};
|
879
|
-
LongPrototype.isEven = function isEven() {
|
880
|
-
return (this.low & 1) === 0;
|
881
|
-
};
|
882
|
-
LongPrototype.equals = function equals(other) {
|
883
|
-
if (!isLong(other))
|
884
|
-
other = fromValue(other);
|
885
|
-
if (this.unsigned !== other.unsigned && this.high >>> 31 === 1 && other.high >>> 31 === 1)
|
886
|
-
return false;
|
887
|
-
return this.high === other.high && this.low === other.low;
|
888
|
-
};
|
889
|
-
LongPrototype.eq = LongPrototype.equals;
|
890
|
-
LongPrototype.notEquals = function notEquals(other) {
|
891
|
-
return !this.eq(
|
892
|
-
/* validates */
|
893
|
-
other
|
894
|
-
);
|
895
|
-
};
|
896
|
-
LongPrototype.neq = LongPrototype.notEquals;
|
897
|
-
LongPrototype.ne = LongPrototype.notEquals;
|
898
|
-
LongPrototype.lessThan = function lessThan(other) {
|
899
|
-
return this.comp(
|
900
|
-
/* validates */
|
901
|
-
other
|
902
|
-
) < 0;
|
903
|
-
};
|
904
|
-
LongPrototype.lt = LongPrototype.lessThan;
|
905
|
-
LongPrototype.lessThanOrEqual = function lessThanOrEqual(other) {
|
906
|
-
return this.comp(
|
907
|
-
/* validates */
|
908
|
-
other
|
909
|
-
) <= 0;
|
910
|
-
};
|
911
|
-
LongPrototype.lte = LongPrototype.lessThanOrEqual;
|
912
|
-
LongPrototype.le = LongPrototype.lessThanOrEqual;
|
913
|
-
LongPrototype.greaterThan = function greaterThan(other) {
|
914
|
-
return this.comp(
|
915
|
-
/* validates */
|
916
|
-
other
|
917
|
-
) > 0;
|
918
|
-
};
|
919
|
-
LongPrototype.gt = LongPrototype.greaterThan;
|
920
|
-
LongPrototype.greaterThanOrEqual = function greaterThanOrEqual(other) {
|
921
|
-
return this.comp(
|
922
|
-
/* validates */
|
923
|
-
other
|
924
|
-
) >= 0;
|
925
|
-
};
|
926
|
-
LongPrototype.gte = LongPrototype.greaterThanOrEqual;
|
927
|
-
LongPrototype.ge = LongPrototype.greaterThanOrEqual;
|
928
|
-
LongPrototype.compare = function compare(other) {
|
929
|
-
if (!isLong(other))
|
930
|
-
other = fromValue(other);
|
931
|
-
if (this.eq(other))
|
932
|
-
return 0;
|
933
|
-
var thisNeg = this.isNegative(), otherNeg = other.isNegative();
|
934
|
-
if (thisNeg && !otherNeg)
|
935
|
-
return -1;
|
936
|
-
if (!thisNeg && otherNeg)
|
937
|
-
return 1;
|
938
|
-
if (!this.unsigned)
|
939
|
-
return this.sub(other).isNegative() ? -1 : 1;
|
940
|
-
return other.high >>> 0 > this.high >>> 0 || other.high === this.high && other.low >>> 0 > this.low >>> 0 ? -1 : 1;
|
941
|
-
};
|
942
|
-
LongPrototype.comp = LongPrototype.compare;
|
943
|
-
LongPrototype.negate = function negate() {
|
944
|
-
if (!this.unsigned && this.eq(MIN_VALUE))
|
945
|
-
return MIN_VALUE;
|
946
|
-
return this.not().add(ONE);
|
947
|
-
};
|
948
|
-
LongPrototype.neg = LongPrototype.negate;
|
949
|
-
LongPrototype.add = function add(addend) {
|
950
|
-
if (!isLong(addend))
|
951
|
-
addend = fromValue(addend);
|
952
|
-
var a48 = this.high >>> 16;
|
953
|
-
var a32 = this.high & 65535;
|
954
|
-
var a16 = this.low >>> 16;
|
955
|
-
var a00 = this.low & 65535;
|
956
|
-
var b48 = addend.high >>> 16;
|
957
|
-
var b32 = addend.high & 65535;
|
958
|
-
var b16 = addend.low >>> 16;
|
959
|
-
var b00 = addend.low & 65535;
|
960
|
-
var c48 = 0, c32 = 0, c16 = 0, c00 = 0;
|
961
|
-
c00 += a00 + b00;
|
962
|
-
c16 += c00 >>> 16;
|
963
|
-
c00 &= 65535;
|
964
|
-
c16 += a16 + b16;
|
965
|
-
c32 += c16 >>> 16;
|
966
|
-
c16 &= 65535;
|
967
|
-
c32 += a32 + b32;
|
968
|
-
c48 += c32 >>> 16;
|
969
|
-
c32 &= 65535;
|
970
|
-
c48 += a48 + b48;
|
971
|
-
c48 &= 65535;
|
972
|
-
return fromBits(c16 << 16 | c00, c48 << 16 | c32, this.unsigned);
|
973
|
-
};
|
974
|
-
LongPrototype.subtract = function subtract(subtrahend) {
|
975
|
-
if (!isLong(subtrahend))
|
976
|
-
subtrahend = fromValue(subtrahend);
|
977
|
-
return this.add(subtrahend.neg());
|
978
|
-
};
|
979
|
-
LongPrototype.sub = LongPrototype.subtract;
|
980
|
-
LongPrototype.multiply = function multiply(multiplier) {
|
981
|
-
if (this.isZero())
|
982
|
-
return ZERO;
|
983
|
-
if (!isLong(multiplier))
|
984
|
-
multiplier = fromValue(multiplier);
|
985
|
-
if (wasm) {
|
986
|
-
var low = wasm.mul(
|
987
|
-
this.low,
|
988
|
-
this.high,
|
989
|
-
multiplier.low,
|
990
|
-
multiplier.high
|
991
|
-
);
|
992
|
-
return fromBits(low, wasm.get_high(), this.unsigned);
|
993
|
-
}
|
994
|
-
if (multiplier.isZero())
|
995
|
-
return ZERO;
|
996
|
-
if (this.eq(MIN_VALUE))
|
997
|
-
return multiplier.isOdd() ? MIN_VALUE : ZERO;
|
998
|
-
if (multiplier.eq(MIN_VALUE))
|
999
|
-
return this.isOdd() ? MIN_VALUE : ZERO;
|
1000
|
-
if (this.isNegative()) {
|
1001
|
-
if (multiplier.isNegative())
|
1002
|
-
return this.neg().mul(multiplier.neg());
|
1003
|
-
else
|
1004
|
-
return this.neg().mul(multiplier).neg();
|
1005
|
-
} else if (multiplier.isNegative())
|
1006
|
-
return this.mul(multiplier.neg()).neg();
|
1007
|
-
if (this.lt(TWO_PWR_24) && multiplier.lt(TWO_PWR_24))
|
1008
|
-
return fromNumber(this.toNumber() * multiplier.toNumber(), this.unsigned);
|
1009
|
-
var a48 = this.high >>> 16;
|
1010
|
-
var a32 = this.high & 65535;
|
1011
|
-
var a16 = this.low >>> 16;
|
1012
|
-
var a00 = this.low & 65535;
|
1013
|
-
var b48 = multiplier.high >>> 16;
|
1014
|
-
var b32 = multiplier.high & 65535;
|
1015
|
-
var b16 = multiplier.low >>> 16;
|
1016
|
-
var b00 = multiplier.low & 65535;
|
1017
|
-
var c48 = 0, c32 = 0, c16 = 0, c00 = 0;
|
1018
|
-
c00 += a00 * b00;
|
1019
|
-
c16 += c00 >>> 16;
|
1020
|
-
c00 &= 65535;
|
1021
|
-
c16 += a16 * b00;
|
1022
|
-
c32 += c16 >>> 16;
|
1023
|
-
c16 &= 65535;
|
1024
|
-
c16 += a00 * b16;
|
1025
|
-
c32 += c16 >>> 16;
|
1026
|
-
c16 &= 65535;
|
1027
|
-
c32 += a32 * b00;
|
1028
|
-
c48 += c32 >>> 16;
|
1029
|
-
c32 &= 65535;
|
1030
|
-
c32 += a16 * b16;
|
1031
|
-
c48 += c32 >>> 16;
|
1032
|
-
c32 &= 65535;
|
1033
|
-
c32 += a00 * b32;
|
1034
|
-
c48 += c32 >>> 16;
|
1035
|
-
c32 &= 65535;
|
1036
|
-
c48 += a48 * b00 + a32 * b16 + a16 * b32 + a00 * b48;
|
1037
|
-
c48 &= 65535;
|
1038
|
-
return fromBits(c16 << 16 | c00, c48 << 16 | c32, this.unsigned);
|
1039
|
-
};
|
1040
|
-
LongPrototype.mul = LongPrototype.multiply;
|
1041
|
-
LongPrototype.divide = function divide(divisor) {
|
1042
|
-
if (!isLong(divisor))
|
1043
|
-
divisor = fromValue(divisor);
|
1044
|
-
if (divisor.isZero())
|
1045
|
-
throw Error("division by zero");
|
1046
|
-
if (wasm) {
|
1047
|
-
if (!this.unsigned && this.high === -2147483648 && divisor.low === -1 && divisor.high === -1) {
|
1048
|
-
return this;
|
1049
|
-
}
|
1050
|
-
var low = (this.unsigned ? wasm.div_u : wasm.div_s)(
|
1051
|
-
this.low,
|
1052
|
-
this.high,
|
1053
|
-
divisor.low,
|
1054
|
-
divisor.high
|
1055
|
-
);
|
1056
|
-
return fromBits(low, wasm.get_high(), this.unsigned);
|
1057
|
-
}
|
1058
|
-
if (this.isZero())
|
1059
|
-
return this.unsigned ? UZERO : ZERO;
|
1060
|
-
var approx, rem, res;
|
1061
|
-
if (!this.unsigned) {
|
1062
|
-
if (this.eq(MIN_VALUE)) {
|
1063
|
-
if (divisor.eq(ONE) || divisor.eq(NEG_ONE))
|
1064
|
-
return MIN_VALUE;
|
1065
|
-
else if (divisor.eq(MIN_VALUE))
|
1066
|
-
return ONE;
|
1067
|
-
else {
|
1068
|
-
var halfThis = this.shr(1);
|
1069
|
-
approx = halfThis.div(divisor).shl(1);
|
1070
|
-
if (approx.eq(ZERO)) {
|
1071
|
-
return divisor.isNegative() ? ONE : NEG_ONE;
|
1072
|
-
} else {
|
1073
|
-
rem = this.sub(divisor.mul(approx));
|
1074
|
-
res = approx.add(rem.div(divisor));
|
1075
|
-
return res;
|
1076
|
-
}
|
1077
|
-
}
|
1078
|
-
} else if (divisor.eq(MIN_VALUE))
|
1079
|
-
return this.unsigned ? UZERO : ZERO;
|
1080
|
-
if (this.isNegative()) {
|
1081
|
-
if (divisor.isNegative())
|
1082
|
-
return this.neg().div(divisor.neg());
|
1083
|
-
return this.neg().div(divisor).neg();
|
1084
|
-
} else if (divisor.isNegative())
|
1085
|
-
return this.div(divisor.neg()).neg();
|
1086
|
-
res = ZERO;
|
1087
|
-
} else {
|
1088
|
-
if (!divisor.unsigned)
|
1089
|
-
divisor = divisor.toUnsigned();
|
1090
|
-
if (divisor.gt(this))
|
1091
|
-
return UZERO;
|
1092
|
-
if (divisor.gt(this.shru(1)))
|
1093
|
-
return UONE;
|
1094
|
-
res = UZERO;
|
1095
|
-
}
|
1096
|
-
rem = this;
|
1097
|
-
while (rem.gte(divisor)) {
|
1098
|
-
approx = Math.max(1, Math.floor(rem.toNumber() / divisor.toNumber()));
|
1099
|
-
var log2 = Math.ceil(Math.log(approx) / Math.LN2), delta = log2 <= 48 ? 1 : pow_dbl(2, log2 - 48), approxRes = fromNumber(approx), approxRem = approxRes.mul(divisor);
|
1100
|
-
while (approxRem.isNegative() || approxRem.gt(rem)) {
|
1101
|
-
approx -= delta;
|
1102
|
-
approxRes = fromNumber(approx, this.unsigned);
|
1103
|
-
approxRem = approxRes.mul(divisor);
|
1104
|
-
}
|
1105
|
-
if (approxRes.isZero())
|
1106
|
-
approxRes = ONE;
|
1107
|
-
res = res.add(approxRes);
|
1108
|
-
rem = rem.sub(approxRem);
|
1109
|
-
}
|
1110
|
-
return res;
|
1111
|
-
};
|
1112
|
-
LongPrototype.div = LongPrototype.divide;
|
1113
|
-
LongPrototype.modulo = function modulo(divisor) {
|
1114
|
-
if (!isLong(divisor))
|
1115
|
-
divisor = fromValue(divisor);
|
1116
|
-
if (wasm) {
|
1117
|
-
var low = (this.unsigned ? wasm.rem_u : wasm.rem_s)(
|
1118
|
-
this.low,
|
1119
|
-
this.high,
|
1120
|
-
divisor.low,
|
1121
|
-
divisor.high
|
1122
|
-
);
|
1123
|
-
return fromBits(low, wasm.get_high(), this.unsigned);
|
1124
|
-
}
|
1125
|
-
return this.sub(this.div(divisor).mul(divisor));
|
1126
|
-
};
|
1127
|
-
LongPrototype.mod = LongPrototype.modulo;
|
1128
|
-
LongPrototype.rem = LongPrototype.modulo;
|
1129
|
-
LongPrototype.not = function not() {
|
1130
|
-
return fromBits(~this.low, ~this.high, this.unsigned);
|
1131
|
-
};
|
1132
|
-
LongPrototype.and = function and(other) {
|
1133
|
-
if (!isLong(other))
|
1134
|
-
other = fromValue(other);
|
1135
|
-
return fromBits(this.low & other.low, this.high & other.high, this.unsigned);
|
1136
|
-
};
|
1137
|
-
LongPrototype.or = function or(other) {
|
1138
|
-
if (!isLong(other))
|
1139
|
-
other = fromValue(other);
|
1140
|
-
return fromBits(this.low | other.low, this.high | other.high, this.unsigned);
|
1141
|
-
};
|
1142
|
-
LongPrototype.xor = function xor(other) {
|
1143
|
-
if (!isLong(other))
|
1144
|
-
other = fromValue(other);
|
1145
|
-
return fromBits(this.low ^ other.low, this.high ^ other.high, this.unsigned);
|
1146
|
-
};
|
1147
|
-
LongPrototype.shiftLeft = function shiftLeft(numBits) {
|
1148
|
-
if (isLong(numBits))
|
1149
|
-
numBits = numBits.toInt();
|
1150
|
-
if ((numBits &= 63) === 0)
|
1151
|
-
return this;
|
1152
|
-
else if (numBits < 32)
|
1153
|
-
return fromBits(this.low << numBits, this.high << numBits | this.low >>> 32 - numBits, this.unsigned);
|
1154
|
-
else
|
1155
|
-
return fromBits(0, this.low << numBits - 32, this.unsigned);
|
1156
|
-
};
|
1157
|
-
LongPrototype.shl = LongPrototype.shiftLeft;
|
1158
|
-
LongPrototype.shiftRight = function shiftRight(numBits) {
|
1159
|
-
if (isLong(numBits))
|
1160
|
-
numBits = numBits.toInt();
|
1161
|
-
if ((numBits &= 63) === 0)
|
1162
|
-
return this;
|
1163
|
-
else if (numBits < 32)
|
1164
|
-
return fromBits(this.low >>> numBits | this.high << 32 - numBits, this.high >> numBits, this.unsigned);
|
1165
|
-
else
|
1166
|
-
return fromBits(this.high >> numBits - 32, this.high >= 0 ? 0 : -1, this.unsigned);
|
1167
|
-
};
|
1168
|
-
LongPrototype.shr = LongPrototype.shiftRight;
|
1169
|
-
LongPrototype.shiftRightUnsigned = function shiftRightUnsigned(numBits) {
|
1170
|
-
if (isLong(numBits))
|
1171
|
-
numBits = numBits.toInt();
|
1172
|
-
numBits &= 63;
|
1173
|
-
if (numBits === 0)
|
1174
|
-
return this;
|
1175
|
-
else {
|
1176
|
-
var high = this.high;
|
1177
|
-
if (numBits < 32) {
|
1178
|
-
var low = this.low;
|
1179
|
-
return fromBits(low >>> numBits | high << 32 - numBits, high >>> numBits, this.unsigned);
|
1180
|
-
} else if (numBits === 32)
|
1181
|
-
return fromBits(high, 0, this.unsigned);
|
1182
|
-
else
|
1183
|
-
return fromBits(high >>> numBits - 32, 0, this.unsigned);
|
1184
|
-
}
|
1185
|
-
};
|
1186
|
-
LongPrototype.shru = LongPrototype.shiftRightUnsigned;
|
1187
|
-
LongPrototype.shr_u = LongPrototype.shiftRightUnsigned;
|
1188
|
-
LongPrototype.toSigned = function toSigned() {
|
1189
|
-
if (!this.unsigned)
|
1190
|
-
return this;
|
1191
|
-
return fromBits(this.low, this.high, false);
|
1192
|
-
};
|
1193
|
-
LongPrototype.toUnsigned = function toUnsigned() {
|
1194
|
-
if (this.unsigned)
|
1195
|
-
return this;
|
1196
|
-
return fromBits(this.low, this.high, true);
|
1197
|
-
};
|
1198
|
-
LongPrototype.toBytes = function toBytes(le) {
|
1199
|
-
return le ? this.toBytesLE() : this.toBytesBE();
|
1200
|
-
};
|
1201
|
-
LongPrototype.toBytesLE = function toBytesLE() {
|
1202
|
-
var hi = this.high, lo = this.low;
|
1203
|
-
return [
|
1204
|
-
lo & 255,
|
1205
|
-
lo >>> 8 & 255,
|
1206
|
-
lo >>> 16 & 255,
|
1207
|
-
lo >>> 24,
|
1208
|
-
hi & 255,
|
1209
|
-
hi >>> 8 & 255,
|
1210
|
-
hi >>> 16 & 255,
|
1211
|
-
hi >>> 24
|
1212
|
-
];
|
1213
|
-
};
|
1214
|
-
LongPrototype.toBytesBE = function toBytesBE() {
|
1215
|
-
var hi = this.high, lo = this.low;
|
1216
|
-
return [
|
1217
|
-
hi >>> 24,
|
1218
|
-
hi >>> 16 & 255,
|
1219
|
-
hi >>> 8 & 255,
|
1220
|
-
hi & 255,
|
1221
|
-
lo >>> 24,
|
1222
|
-
lo >>> 16 & 255,
|
1223
|
-
lo >>> 8 & 255,
|
1224
|
-
lo & 255
|
1225
|
-
];
|
1226
|
-
};
|
1227
|
-
Long7.fromBytes = function fromBytes(bytes, unsigned, le) {
|
1228
|
-
return le ? Long7.fromBytesLE(bytes, unsigned) : Long7.fromBytesBE(bytes, unsigned);
|
1229
|
-
};
|
1230
|
-
Long7.fromBytesLE = function fromBytesLE(bytes, unsigned) {
|
1231
|
-
return new Long7(
|
1232
|
-
bytes[0] | bytes[1] << 8 | bytes[2] << 16 | bytes[3] << 24,
|
1233
|
-
bytes[4] | bytes[5] << 8 | bytes[6] << 16 | bytes[7] << 24,
|
1234
|
-
unsigned
|
1235
|
-
);
|
1236
|
-
};
|
1237
|
-
Long7.fromBytesBE = function fromBytesBE(bytes, unsigned) {
|
1238
|
-
return new Long7(
|
1239
|
-
bytes[4] << 24 | bytes[5] << 16 | bytes[6] << 8 | bytes[7],
|
1240
|
-
bytes[0] << 24 | bytes[1] << 16 | bytes[2] << 8 | bytes[3],
|
1241
|
-
unsigned
|
1242
|
-
);
|
1243
|
-
};
|
1244
|
-
}
|
1245
|
-
});
|
1246
|
-
|
1247
383
|
// ../../node_modules/@protobufjs/aspromise/index.js
|
1248
384
|
var require_aspromise = __commonJS({
|
1249
385
|
"../../node_modules/@protobufjs/aspromise/index.js"(exports2, module2) {
|
@@ -1773,7 +909,7 @@ var require_longbits = __commonJS({
|
|
1773
909
|
return 1;
|
1774
910
|
};
|
1775
911
|
var zeroHash = LongBits.zeroHash = "\0\0\0\0\0\0\0\0";
|
1776
|
-
LongBits.fromNumber = function
|
912
|
+
LongBits.fromNumber = function fromNumber2(value) {
|
1777
913
|
if (value === 0)
|
1778
914
|
return zero;
|
1779
915
|
var sign = value < 0;
|
@@ -1802,7 +938,7 @@ var require_longbits = __commonJS({
|
|
1802
938
|
}
|
1803
939
|
return value.low || value.high ? new LongBits(value.low >>> 0, value.high >>> 0) : zero;
|
1804
940
|
};
|
1805
|
-
LongBits.prototype.toNumber = function
|
941
|
+
LongBits.prototype.toNumber = function toNumber2(unsigned) {
|
1806
942
|
if (!unsigned && this.hi >>> 31) {
|
1807
943
|
var lo = ~this.lo + 1 >>> 0, hi = ~this.hi >>> 0;
|
1808
944
|
if (!lo)
|
@@ -1961,7 +1097,7 @@ var require_minimal = __commonJS({
|
|
1961
1097
|
Object.defineProperty(CustomError.prototype, "name", { get: function() {
|
1962
1098
|
return name;
|
1963
1099
|
} });
|
1964
|
-
CustomError.prototype.toString = function
|
1100
|
+
CustomError.prototype.toString = function toString2() {
|
1965
1101
|
return this.name + ": " + this.message;
|
1966
1102
|
};
|
1967
1103
|
return CustomError;
|
@@ -2643,17 +1779,917 @@ import { share } from "rxjs/operators";
|
|
2643
1779
|
|
2644
1780
|
// src/generated/hub_event.ts
|
2645
1781
|
init_esm_shims();
|
2646
|
-
|
1782
|
+
|
1783
|
+
// ../../node_modules/long/index.js
|
1784
|
+
init_esm_shims();
|
1785
|
+
var wasm = null;
|
1786
|
+
try {
|
1787
|
+
wasm = new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([
|
1788
|
+
0,
|
1789
|
+
97,
|
1790
|
+
115,
|
1791
|
+
109,
|
1792
|
+
1,
|
1793
|
+
0,
|
1794
|
+
0,
|
1795
|
+
0,
|
1796
|
+
1,
|
1797
|
+
13,
|
1798
|
+
2,
|
1799
|
+
96,
|
1800
|
+
0,
|
1801
|
+
1,
|
1802
|
+
127,
|
1803
|
+
96,
|
1804
|
+
4,
|
1805
|
+
127,
|
1806
|
+
127,
|
1807
|
+
127,
|
1808
|
+
127,
|
1809
|
+
1,
|
1810
|
+
127,
|
1811
|
+
3,
|
1812
|
+
7,
|
1813
|
+
6,
|
1814
|
+
0,
|
1815
|
+
1,
|
1816
|
+
1,
|
1817
|
+
1,
|
1818
|
+
1,
|
1819
|
+
1,
|
1820
|
+
6,
|
1821
|
+
6,
|
1822
|
+
1,
|
1823
|
+
127,
|
1824
|
+
1,
|
1825
|
+
65,
|
1826
|
+
0,
|
1827
|
+
11,
|
1828
|
+
7,
|
1829
|
+
50,
|
1830
|
+
6,
|
1831
|
+
3,
|
1832
|
+
109,
|
1833
|
+
117,
|
1834
|
+
108,
|
1835
|
+
0,
|
1836
|
+
1,
|
1837
|
+
5,
|
1838
|
+
100,
|
1839
|
+
105,
|
1840
|
+
118,
|
1841
|
+
95,
|
1842
|
+
115,
|
1843
|
+
0,
|
1844
|
+
2,
|
1845
|
+
5,
|
1846
|
+
100,
|
1847
|
+
105,
|
1848
|
+
118,
|
1849
|
+
95,
|
1850
|
+
117,
|
1851
|
+
0,
|
1852
|
+
3,
|
1853
|
+
5,
|
1854
|
+
114,
|
1855
|
+
101,
|
1856
|
+
109,
|
1857
|
+
95,
|
1858
|
+
115,
|
1859
|
+
0,
|
1860
|
+
4,
|
1861
|
+
5,
|
1862
|
+
114,
|
1863
|
+
101,
|
1864
|
+
109,
|
1865
|
+
95,
|
1866
|
+
117,
|
1867
|
+
0,
|
1868
|
+
5,
|
1869
|
+
8,
|
1870
|
+
103,
|
1871
|
+
101,
|
1872
|
+
116,
|
1873
|
+
95,
|
1874
|
+
104,
|
1875
|
+
105,
|
1876
|
+
103,
|
1877
|
+
104,
|
1878
|
+
0,
|
1879
|
+
0,
|
1880
|
+
10,
|
1881
|
+
191,
|
1882
|
+
1,
|
1883
|
+
6,
|
1884
|
+
4,
|
1885
|
+
0,
|
1886
|
+
35,
|
1887
|
+
0,
|
1888
|
+
11,
|
1889
|
+
36,
|
1890
|
+
1,
|
1891
|
+
1,
|
1892
|
+
126,
|
1893
|
+
32,
|
1894
|
+
0,
|
1895
|
+
173,
|
1896
|
+
32,
|
1897
|
+
1,
|
1898
|
+
173,
|
1899
|
+
66,
|
1900
|
+
32,
|
1901
|
+
134,
|
1902
|
+
132,
|
1903
|
+
32,
|
1904
|
+
2,
|
1905
|
+
173,
|
1906
|
+
32,
|
1907
|
+
3,
|
1908
|
+
173,
|
1909
|
+
66,
|
1910
|
+
32,
|
1911
|
+
134,
|
1912
|
+
132,
|
1913
|
+
126,
|
1914
|
+
34,
|
1915
|
+
4,
|
1916
|
+
66,
|
1917
|
+
32,
|
1918
|
+
135,
|
1919
|
+
167,
|
1920
|
+
36,
|
1921
|
+
0,
|
1922
|
+
32,
|
1923
|
+
4,
|
1924
|
+
167,
|
1925
|
+
11,
|
1926
|
+
36,
|
1927
|
+
1,
|
1928
|
+
1,
|
1929
|
+
126,
|
1930
|
+
32,
|
1931
|
+
0,
|
1932
|
+
173,
|
1933
|
+
32,
|
1934
|
+
1,
|
1935
|
+
173,
|
1936
|
+
66,
|
1937
|
+
32,
|
1938
|
+
134,
|
1939
|
+
132,
|
1940
|
+
32,
|
1941
|
+
2,
|
1942
|
+
173,
|
1943
|
+
32,
|
1944
|
+
3,
|
1945
|
+
173,
|
1946
|
+
66,
|
1947
|
+
32,
|
1948
|
+
134,
|
1949
|
+
132,
|
1950
|
+
127,
|
1951
|
+
34,
|
1952
|
+
4,
|
1953
|
+
66,
|
1954
|
+
32,
|
1955
|
+
135,
|
1956
|
+
167,
|
1957
|
+
36,
|
1958
|
+
0,
|
1959
|
+
32,
|
1960
|
+
4,
|
1961
|
+
167,
|
1962
|
+
11,
|
1963
|
+
36,
|
1964
|
+
1,
|
1965
|
+
1,
|
1966
|
+
126,
|
1967
|
+
32,
|
1968
|
+
0,
|
1969
|
+
173,
|
1970
|
+
32,
|
1971
|
+
1,
|
1972
|
+
173,
|
1973
|
+
66,
|
1974
|
+
32,
|
1975
|
+
134,
|
1976
|
+
132,
|
1977
|
+
32,
|
1978
|
+
2,
|
1979
|
+
173,
|
1980
|
+
32,
|
1981
|
+
3,
|
1982
|
+
173,
|
1983
|
+
66,
|
1984
|
+
32,
|
1985
|
+
134,
|
1986
|
+
132,
|
1987
|
+
128,
|
1988
|
+
34,
|
1989
|
+
4,
|
1990
|
+
66,
|
1991
|
+
32,
|
1992
|
+
135,
|
1993
|
+
167,
|
1994
|
+
36,
|
1995
|
+
0,
|
1996
|
+
32,
|
1997
|
+
4,
|
1998
|
+
167,
|
1999
|
+
11,
|
2000
|
+
36,
|
2001
|
+
1,
|
2002
|
+
1,
|
2003
|
+
126,
|
2004
|
+
32,
|
2005
|
+
0,
|
2006
|
+
173,
|
2007
|
+
32,
|
2008
|
+
1,
|
2009
|
+
173,
|
2010
|
+
66,
|
2011
|
+
32,
|
2012
|
+
134,
|
2013
|
+
132,
|
2014
|
+
32,
|
2015
|
+
2,
|
2016
|
+
173,
|
2017
|
+
32,
|
2018
|
+
3,
|
2019
|
+
173,
|
2020
|
+
66,
|
2021
|
+
32,
|
2022
|
+
134,
|
2023
|
+
132,
|
2024
|
+
129,
|
2025
|
+
34,
|
2026
|
+
4,
|
2027
|
+
66,
|
2028
|
+
32,
|
2029
|
+
135,
|
2030
|
+
167,
|
2031
|
+
36,
|
2032
|
+
0,
|
2033
|
+
32,
|
2034
|
+
4,
|
2035
|
+
167,
|
2036
|
+
11,
|
2037
|
+
36,
|
2038
|
+
1,
|
2039
|
+
1,
|
2040
|
+
126,
|
2041
|
+
32,
|
2042
|
+
0,
|
2043
|
+
173,
|
2044
|
+
32,
|
2045
|
+
1,
|
2046
|
+
173,
|
2047
|
+
66,
|
2048
|
+
32,
|
2049
|
+
134,
|
2050
|
+
132,
|
2051
|
+
32,
|
2052
|
+
2,
|
2053
|
+
173,
|
2054
|
+
32,
|
2055
|
+
3,
|
2056
|
+
173,
|
2057
|
+
66,
|
2058
|
+
32,
|
2059
|
+
134,
|
2060
|
+
132,
|
2061
|
+
130,
|
2062
|
+
34,
|
2063
|
+
4,
|
2064
|
+
66,
|
2065
|
+
32,
|
2066
|
+
135,
|
2067
|
+
167,
|
2068
|
+
36,
|
2069
|
+
0,
|
2070
|
+
32,
|
2071
|
+
4,
|
2072
|
+
167,
|
2073
|
+
11
|
2074
|
+
])), {}).exports;
|
2075
|
+
} catch (e) {
|
2076
|
+
}
|
2077
|
+
function Long(low, high, unsigned) {
|
2078
|
+
this.low = low | 0;
|
2079
|
+
this.high = high | 0;
|
2080
|
+
this.unsigned = !!unsigned;
|
2081
|
+
}
|
2082
|
+
Long.prototype.__isLong__;
|
2083
|
+
Object.defineProperty(Long.prototype, "__isLong__", { value: true });
|
2084
|
+
function isLong(obj) {
|
2085
|
+
return (obj && obj["__isLong__"]) === true;
|
2086
|
+
}
|
2087
|
+
function ctz32(value) {
|
2088
|
+
var c = Math.clz32(value & -value);
|
2089
|
+
return value ? 31 - c : c;
|
2090
|
+
}
|
2091
|
+
Long.isLong = isLong;
|
2092
|
+
var INT_CACHE = {};
|
2093
|
+
var UINT_CACHE = {};
|
2094
|
+
function fromInt(value, unsigned) {
|
2095
|
+
var obj, cachedObj, cache;
|
2096
|
+
if (unsigned) {
|
2097
|
+
value >>>= 0;
|
2098
|
+
if (cache = 0 <= value && value < 256) {
|
2099
|
+
cachedObj = UINT_CACHE[value];
|
2100
|
+
if (cachedObj)
|
2101
|
+
return cachedObj;
|
2102
|
+
}
|
2103
|
+
obj = fromBits(value, 0, true);
|
2104
|
+
if (cache)
|
2105
|
+
UINT_CACHE[value] = obj;
|
2106
|
+
return obj;
|
2107
|
+
} else {
|
2108
|
+
value |= 0;
|
2109
|
+
if (cache = -128 <= value && value < 128) {
|
2110
|
+
cachedObj = INT_CACHE[value];
|
2111
|
+
if (cachedObj)
|
2112
|
+
return cachedObj;
|
2113
|
+
}
|
2114
|
+
obj = fromBits(value, value < 0 ? -1 : 0, false);
|
2115
|
+
if (cache)
|
2116
|
+
INT_CACHE[value] = obj;
|
2117
|
+
return obj;
|
2118
|
+
}
|
2119
|
+
}
|
2120
|
+
Long.fromInt = fromInt;
|
2121
|
+
function fromNumber(value, unsigned) {
|
2122
|
+
if (isNaN(value))
|
2123
|
+
return unsigned ? UZERO : ZERO;
|
2124
|
+
if (unsigned) {
|
2125
|
+
if (value < 0)
|
2126
|
+
return UZERO;
|
2127
|
+
if (value >= TWO_PWR_64_DBL)
|
2128
|
+
return MAX_UNSIGNED_VALUE;
|
2129
|
+
} else {
|
2130
|
+
if (value <= -TWO_PWR_63_DBL)
|
2131
|
+
return MIN_VALUE;
|
2132
|
+
if (value + 1 >= TWO_PWR_63_DBL)
|
2133
|
+
return MAX_VALUE;
|
2134
|
+
}
|
2135
|
+
if (value < 0)
|
2136
|
+
return fromNumber(-value, unsigned).neg();
|
2137
|
+
return fromBits(value % TWO_PWR_32_DBL | 0, value / TWO_PWR_32_DBL | 0, unsigned);
|
2138
|
+
}
|
2139
|
+
Long.fromNumber = fromNumber;
|
2140
|
+
function fromBits(lowBits, highBits, unsigned) {
|
2141
|
+
return new Long(lowBits, highBits, unsigned);
|
2142
|
+
}
|
2143
|
+
Long.fromBits = fromBits;
|
2144
|
+
var pow_dbl = Math.pow;
|
2145
|
+
function fromString(str, unsigned, radix) {
|
2146
|
+
if (str.length === 0)
|
2147
|
+
throw Error("empty string");
|
2148
|
+
if (typeof unsigned === "number") {
|
2149
|
+
radix = unsigned;
|
2150
|
+
unsigned = false;
|
2151
|
+
} else {
|
2152
|
+
unsigned = !!unsigned;
|
2153
|
+
}
|
2154
|
+
if (str === "NaN" || str === "Infinity" || str === "+Infinity" || str === "-Infinity")
|
2155
|
+
return unsigned ? UZERO : ZERO;
|
2156
|
+
radix = radix || 10;
|
2157
|
+
if (radix < 2 || 36 < radix)
|
2158
|
+
throw RangeError("radix");
|
2159
|
+
var p;
|
2160
|
+
if ((p = str.indexOf("-")) > 0)
|
2161
|
+
throw Error("interior hyphen");
|
2162
|
+
else if (p === 0) {
|
2163
|
+
return fromString(str.substring(1), unsigned, radix).neg();
|
2164
|
+
}
|
2165
|
+
var radixToPower = fromNumber(pow_dbl(radix, 8));
|
2166
|
+
var result = ZERO;
|
2167
|
+
for (var i = 0; i < str.length; i += 8) {
|
2168
|
+
var size = Math.min(8, str.length - i), value = parseInt(str.substring(i, i + size), radix);
|
2169
|
+
if (size < 8) {
|
2170
|
+
var power = fromNumber(pow_dbl(radix, size));
|
2171
|
+
result = result.mul(power).add(fromNumber(value));
|
2172
|
+
} else {
|
2173
|
+
result = result.mul(radixToPower);
|
2174
|
+
result = result.add(fromNumber(value));
|
2175
|
+
}
|
2176
|
+
}
|
2177
|
+
result.unsigned = unsigned;
|
2178
|
+
return result;
|
2179
|
+
}
|
2180
|
+
Long.fromString = fromString;
|
2181
|
+
function fromValue(val, unsigned) {
|
2182
|
+
if (typeof val === "number")
|
2183
|
+
return fromNumber(val, unsigned);
|
2184
|
+
if (typeof val === "string")
|
2185
|
+
return fromString(val, unsigned);
|
2186
|
+
return fromBits(val.low, val.high, typeof unsigned === "boolean" ? unsigned : val.unsigned);
|
2187
|
+
}
|
2188
|
+
Long.fromValue = fromValue;
|
2189
|
+
var TWO_PWR_16_DBL = 1 << 16;
|
2190
|
+
var TWO_PWR_24_DBL = 1 << 24;
|
2191
|
+
var TWO_PWR_32_DBL = TWO_PWR_16_DBL * TWO_PWR_16_DBL;
|
2192
|
+
var TWO_PWR_64_DBL = TWO_PWR_32_DBL * TWO_PWR_32_DBL;
|
2193
|
+
var TWO_PWR_63_DBL = TWO_PWR_64_DBL / 2;
|
2194
|
+
var TWO_PWR_24 = fromInt(TWO_PWR_24_DBL);
|
2195
|
+
var ZERO = fromInt(0);
|
2196
|
+
Long.ZERO = ZERO;
|
2197
|
+
var UZERO = fromInt(0, true);
|
2198
|
+
Long.UZERO = UZERO;
|
2199
|
+
var ONE = fromInt(1);
|
2200
|
+
Long.ONE = ONE;
|
2201
|
+
var UONE = fromInt(1, true);
|
2202
|
+
Long.UONE = UONE;
|
2203
|
+
var NEG_ONE = fromInt(-1);
|
2204
|
+
Long.NEG_ONE = NEG_ONE;
|
2205
|
+
var MAX_VALUE = fromBits(4294967295 | 0, 2147483647 | 0, false);
|
2206
|
+
Long.MAX_VALUE = MAX_VALUE;
|
2207
|
+
var MAX_UNSIGNED_VALUE = fromBits(4294967295 | 0, 4294967295 | 0, true);
|
2208
|
+
Long.MAX_UNSIGNED_VALUE = MAX_UNSIGNED_VALUE;
|
2209
|
+
var MIN_VALUE = fromBits(0, 2147483648 | 0, false);
|
2210
|
+
Long.MIN_VALUE = MIN_VALUE;
|
2211
|
+
var LongPrototype = Long.prototype;
|
2212
|
+
LongPrototype.toInt = function toInt() {
|
2213
|
+
return this.unsigned ? this.low >>> 0 : this.low;
|
2214
|
+
};
|
2215
|
+
LongPrototype.toNumber = function toNumber() {
|
2216
|
+
if (this.unsigned)
|
2217
|
+
return (this.high >>> 0) * TWO_PWR_32_DBL + (this.low >>> 0);
|
2218
|
+
return this.high * TWO_PWR_32_DBL + (this.low >>> 0);
|
2219
|
+
};
|
2220
|
+
LongPrototype.toString = function toString(radix) {
|
2221
|
+
radix = radix || 10;
|
2222
|
+
if (radix < 2 || 36 < radix)
|
2223
|
+
throw RangeError("radix");
|
2224
|
+
if (this.isZero())
|
2225
|
+
return "0";
|
2226
|
+
if (this.isNegative()) {
|
2227
|
+
if (this.eq(MIN_VALUE)) {
|
2228
|
+
var radixLong = fromNumber(radix), div = this.div(radixLong), rem1 = div.mul(radixLong).sub(this);
|
2229
|
+
return div.toString(radix) + rem1.toInt().toString(radix);
|
2230
|
+
} else
|
2231
|
+
return "-" + this.neg().toString(radix);
|
2232
|
+
}
|
2233
|
+
var radixToPower = fromNumber(pow_dbl(radix, 6), this.unsigned), rem = this;
|
2234
|
+
var result = "";
|
2235
|
+
while (true) {
|
2236
|
+
var remDiv = rem.div(radixToPower), intval = rem.sub(remDiv.mul(radixToPower)).toInt() >>> 0, digits = intval.toString(radix);
|
2237
|
+
rem = remDiv;
|
2238
|
+
if (rem.isZero())
|
2239
|
+
return digits + result;
|
2240
|
+
else {
|
2241
|
+
while (digits.length < 6)
|
2242
|
+
digits = "0" + digits;
|
2243
|
+
result = "" + digits + result;
|
2244
|
+
}
|
2245
|
+
}
|
2246
|
+
};
|
2247
|
+
LongPrototype.getHighBits = function getHighBits() {
|
2248
|
+
return this.high;
|
2249
|
+
};
|
2250
|
+
LongPrototype.getHighBitsUnsigned = function getHighBitsUnsigned() {
|
2251
|
+
return this.high >>> 0;
|
2252
|
+
};
|
2253
|
+
LongPrototype.getLowBits = function getLowBits() {
|
2254
|
+
return this.low;
|
2255
|
+
};
|
2256
|
+
LongPrototype.getLowBitsUnsigned = function getLowBitsUnsigned() {
|
2257
|
+
return this.low >>> 0;
|
2258
|
+
};
|
2259
|
+
LongPrototype.getNumBitsAbs = function getNumBitsAbs() {
|
2260
|
+
if (this.isNegative())
|
2261
|
+
return this.eq(MIN_VALUE) ? 64 : this.neg().getNumBitsAbs();
|
2262
|
+
var val = this.high != 0 ? this.high : this.low;
|
2263
|
+
for (var bit = 31; bit > 0; bit--)
|
2264
|
+
if ((val & 1 << bit) != 0)
|
2265
|
+
break;
|
2266
|
+
return this.high != 0 ? bit + 33 : bit + 1;
|
2267
|
+
};
|
2268
|
+
LongPrototype.isZero = function isZero() {
|
2269
|
+
return this.high === 0 && this.low === 0;
|
2270
|
+
};
|
2271
|
+
LongPrototype.eqz = LongPrototype.isZero;
|
2272
|
+
LongPrototype.isNegative = function isNegative() {
|
2273
|
+
return !this.unsigned && this.high < 0;
|
2274
|
+
};
|
2275
|
+
LongPrototype.isPositive = function isPositive() {
|
2276
|
+
return this.unsigned || this.high >= 0;
|
2277
|
+
};
|
2278
|
+
LongPrototype.isOdd = function isOdd() {
|
2279
|
+
return (this.low & 1) === 1;
|
2280
|
+
};
|
2281
|
+
LongPrototype.isEven = function isEven() {
|
2282
|
+
return (this.low & 1) === 0;
|
2283
|
+
};
|
2284
|
+
LongPrototype.equals = function equals(other) {
|
2285
|
+
if (!isLong(other))
|
2286
|
+
other = fromValue(other);
|
2287
|
+
if (this.unsigned !== other.unsigned && this.high >>> 31 === 1 && other.high >>> 31 === 1)
|
2288
|
+
return false;
|
2289
|
+
return this.high === other.high && this.low === other.low;
|
2290
|
+
};
|
2291
|
+
LongPrototype.eq = LongPrototype.equals;
|
2292
|
+
LongPrototype.notEquals = function notEquals(other) {
|
2293
|
+
return !this.eq(
|
2294
|
+
/* validates */
|
2295
|
+
other
|
2296
|
+
);
|
2297
|
+
};
|
2298
|
+
LongPrototype.neq = LongPrototype.notEquals;
|
2299
|
+
LongPrototype.ne = LongPrototype.notEquals;
|
2300
|
+
LongPrototype.lessThan = function lessThan(other) {
|
2301
|
+
return this.comp(
|
2302
|
+
/* validates */
|
2303
|
+
other
|
2304
|
+
) < 0;
|
2305
|
+
};
|
2306
|
+
LongPrototype.lt = LongPrototype.lessThan;
|
2307
|
+
LongPrototype.lessThanOrEqual = function lessThanOrEqual(other) {
|
2308
|
+
return this.comp(
|
2309
|
+
/* validates */
|
2310
|
+
other
|
2311
|
+
) <= 0;
|
2312
|
+
};
|
2313
|
+
LongPrototype.lte = LongPrototype.lessThanOrEqual;
|
2314
|
+
LongPrototype.le = LongPrototype.lessThanOrEqual;
|
2315
|
+
LongPrototype.greaterThan = function greaterThan(other) {
|
2316
|
+
return this.comp(
|
2317
|
+
/* validates */
|
2318
|
+
other
|
2319
|
+
) > 0;
|
2320
|
+
};
|
2321
|
+
LongPrototype.gt = LongPrototype.greaterThan;
|
2322
|
+
LongPrototype.greaterThanOrEqual = function greaterThanOrEqual(other) {
|
2323
|
+
return this.comp(
|
2324
|
+
/* validates */
|
2325
|
+
other
|
2326
|
+
) >= 0;
|
2327
|
+
};
|
2328
|
+
LongPrototype.gte = LongPrototype.greaterThanOrEqual;
|
2329
|
+
LongPrototype.ge = LongPrototype.greaterThanOrEqual;
|
2330
|
+
LongPrototype.compare = function compare(other) {
|
2331
|
+
if (!isLong(other))
|
2332
|
+
other = fromValue(other);
|
2333
|
+
if (this.eq(other))
|
2334
|
+
return 0;
|
2335
|
+
var thisNeg = this.isNegative(), otherNeg = other.isNegative();
|
2336
|
+
if (thisNeg && !otherNeg)
|
2337
|
+
return -1;
|
2338
|
+
if (!thisNeg && otherNeg)
|
2339
|
+
return 1;
|
2340
|
+
if (!this.unsigned)
|
2341
|
+
return this.sub(other).isNegative() ? -1 : 1;
|
2342
|
+
return other.high >>> 0 > this.high >>> 0 || other.high === this.high && other.low >>> 0 > this.low >>> 0 ? -1 : 1;
|
2343
|
+
};
|
2344
|
+
LongPrototype.comp = LongPrototype.compare;
|
2345
|
+
LongPrototype.negate = function negate() {
|
2346
|
+
if (!this.unsigned && this.eq(MIN_VALUE))
|
2347
|
+
return MIN_VALUE;
|
2348
|
+
return this.not().add(ONE);
|
2349
|
+
};
|
2350
|
+
LongPrototype.neg = LongPrototype.negate;
|
2351
|
+
LongPrototype.add = function add(addend) {
|
2352
|
+
if (!isLong(addend))
|
2353
|
+
addend = fromValue(addend);
|
2354
|
+
var a48 = this.high >>> 16;
|
2355
|
+
var a32 = this.high & 65535;
|
2356
|
+
var a16 = this.low >>> 16;
|
2357
|
+
var a00 = this.low & 65535;
|
2358
|
+
var b48 = addend.high >>> 16;
|
2359
|
+
var b32 = addend.high & 65535;
|
2360
|
+
var b16 = addend.low >>> 16;
|
2361
|
+
var b00 = addend.low & 65535;
|
2362
|
+
var c48 = 0, c32 = 0, c16 = 0, c00 = 0;
|
2363
|
+
c00 += a00 + b00;
|
2364
|
+
c16 += c00 >>> 16;
|
2365
|
+
c00 &= 65535;
|
2366
|
+
c16 += a16 + b16;
|
2367
|
+
c32 += c16 >>> 16;
|
2368
|
+
c16 &= 65535;
|
2369
|
+
c32 += a32 + b32;
|
2370
|
+
c48 += c32 >>> 16;
|
2371
|
+
c32 &= 65535;
|
2372
|
+
c48 += a48 + b48;
|
2373
|
+
c48 &= 65535;
|
2374
|
+
return fromBits(c16 << 16 | c00, c48 << 16 | c32, this.unsigned);
|
2375
|
+
};
|
2376
|
+
LongPrototype.subtract = function subtract(subtrahend) {
|
2377
|
+
if (!isLong(subtrahend))
|
2378
|
+
subtrahend = fromValue(subtrahend);
|
2379
|
+
return this.add(subtrahend.neg());
|
2380
|
+
};
|
2381
|
+
LongPrototype.sub = LongPrototype.subtract;
|
2382
|
+
LongPrototype.multiply = function multiply(multiplier) {
|
2383
|
+
if (this.isZero())
|
2384
|
+
return this;
|
2385
|
+
if (!isLong(multiplier))
|
2386
|
+
multiplier = fromValue(multiplier);
|
2387
|
+
if (wasm) {
|
2388
|
+
var low = wasm["mul"](
|
2389
|
+
this.low,
|
2390
|
+
this.high,
|
2391
|
+
multiplier.low,
|
2392
|
+
multiplier.high
|
2393
|
+
);
|
2394
|
+
return fromBits(low, wasm["get_high"](), this.unsigned);
|
2395
|
+
}
|
2396
|
+
if (multiplier.isZero())
|
2397
|
+
return this.unsigned ? UZERO : ZERO;
|
2398
|
+
if (this.eq(MIN_VALUE))
|
2399
|
+
return multiplier.isOdd() ? MIN_VALUE : ZERO;
|
2400
|
+
if (multiplier.eq(MIN_VALUE))
|
2401
|
+
return this.isOdd() ? MIN_VALUE : ZERO;
|
2402
|
+
if (this.isNegative()) {
|
2403
|
+
if (multiplier.isNegative())
|
2404
|
+
return this.neg().mul(multiplier.neg());
|
2405
|
+
else
|
2406
|
+
return this.neg().mul(multiplier).neg();
|
2407
|
+
} else if (multiplier.isNegative())
|
2408
|
+
return this.mul(multiplier.neg()).neg();
|
2409
|
+
if (this.lt(TWO_PWR_24) && multiplier.lt(TWO_PWR_24))
|
2410
|
+
return fromNumber(this.toNumber() * multiplier.toNumber(), this.unsigned);
|
2411
|
+
var a48 = this.high >>> 16;
|
2412
|
+
var a32 = this.high & 65535;
|
2413
|
+
var a16 = this.low >>> 16;
|
2414
|
+
var a00 = this.low & 65535;
|
2415
|
+
var b48 = multiplier.high >>> 16;
|
2416
|
+
var b32 = multiplier.high & 65535;
|
2417
|
+
var b16 = multiplier.low >>> 16;
|
2418
|
+
var b00 = multiplier.low & 65535;
|
2419
|
+
var c48 = 0, c32 = 0, c16 = 0, c00 = 0;
|
2420
|
+
c00 += a00 * b00;
|
2421
|
+
c16 += c00 >>> 16;
|
2422
|
+
c00 &= 65535;
|
2423
|
+
c16 += a16 * b00;
|
2424
|
+
c32 += c16 >>> 16;
|
2425
|
+
c16 &= 65535;
|
2426
|
+
c16 += a00 * b16;
|
2427
|
+
c32 += c16 >>> 16;
|
2428
|
+
c16 &= 65535;
|
2429
|
+
c32 += a32 * b00;
|
2430
|
+
c48 += c32 >>> 16;
|
2431
|
+
c32 &= 65535;
|
2432
|
+
c32 += a16 * b16;
|
2433
|
+
c48 += c32 >>> 16;
|
2434
|
+
c32 &= 65535;
|
2435
|
+
c32 += a00 * b32;
|
2436
|
+
c48 += c32 >>> 16;
|
2437
|
+
c32 &= 65535;
|
2438
|
+
c48 += a48 * b00 + a32 * b16 + a16 * b32 + a00 * b48;
|
2439
|
+
c48 &= 65535;
|
2440
|
+
return fromBits(c16 << 16 | c00, c48 << 16 | c32, this.unsigned);
|
2441
|
+
};
|
2442
|
+
LongPrototype.mul = LongPrototype.multiply;
|
2443
|
+
LongPrototype.divide = function divide(divisor) {
|
2444
|
+
if (!isLong(divisor))
|
2445
|
+
divisor = fromValue(divisor);
|
2446
|
+
if (divisor.isZero())
|
2447
|
+
throw Error("division by zero");
|
2448
|
+
if (wasm) {
|
2449
|
+
if (!this.unsigned && this.high === -2147483648 && divisor.low === -1 && divisor.high === -1) {
|
2450
|
+
return this;
|
2451
|
+
}
|
2452
|
+
var low = (this.unsigned ? wasm["div_u"] : wasm["div_s"])(
|
2453
|
+
this.low,
|
2454
|
+
this.high,
|
2455
|
+
divisor.low,
|
2456
|
+
divisor.high
|
2457
|
+
);
|
2458
|
+
return fromBits(low, wasm["get_high"](), this.unsigned);
|
2459
|
+
}
|
2460
|
+
if (this.isZero())
|
2461
|
+
return this.unsigned ? UZERO : ZERO;
|
2462
|
+
var approx, rem, res;
|
2463
|
+
if (!this.unsigned) {
|
2464
|
+
if (this.eq(MIN_VALUE)) {
|
2465
|
+
if (divisor.eq(ONE) || divisor.eq(NEG_ONE))
|
2466
|
+
return MIN_VALUE;
|
2467
|
+
else if (divisor.eq(MIN_VALUE))
|
2468
|
+
return ONE;
|
2469
|
+
else {
|
2470
|
+
var halfThis = this.shr(1);
|
2471
|
+
approx = halfThis.div(divisor).shl(1);
|
2472
|
+
if (approx.eq(ZERO)) {
|
2473
|
+
return divisor.isNegative() ? ONE : NEG_ONE;
|
2474
|
+
} else {
|
2475
|
+
rem = this.sub(divisor.mul(approx));
|
2476
|
+
res = approx.add(rem.div(divisor));
|
2477
|
+
return res;
|
2478
|
+
}
|
2479
|
+
}
|
2480
|
+
} else if (divisor.eq(MIN_VALUE))
|
2481
|
+
return this.unsigned ? UZERO : ZERO;
|
2482
|
+
if (this.isNegative()) {
|
2483
|
+
if (divisor.isNegative())
|
2484
|
+
return this.neg().div(divisor.neg());
|
2485
|
+
return this.neg().div(divisor).neg();
|
2486
|
+
} else if (divisor.isNegative())
|
2487
|
+
return this.div(divisor.neg()).neg();
|
2488
|
+
res = ZERO;
|
2489
|
+
} else {
|
2490
|
+
if (!divisor.unsigned)
|
2491
|
+
divisor = divisor.toUnsigned();
|
2492
|
+
if (divisor.gt(this))
|
2493
|
+
return UZERO;
|
2494
|
+
if (divisor.gt(this.shru(1)))
|
2495
|
+
return UONE;
|
2496
|
+
res = UZERO;
|
2497
|
+
}
|
2498
|
+
rem = this;
|
2499
|
+
while (rem.gte(divisor)) {
|
2500
|
+
approx = Math.max(1, Math.floor(rem.toNumber() / divisor.toNumber()));
|
2501
|
+
var log2 = Math.ceil(Math.log(approx) / Math.LN2), delta = log2 <= 48 ? 1 : pow_dbl(2, log2 - 48), approxRes = fromNumber(approx), approxRem = approxRes.mul(divisor);
|
2502
|
+
while (approxRem.isNegative() || approxRem.gt(rem)) {
|
2503
|
+
approx -= delta;
|
2504
|
+
approxRes = fromNumber(approx, this.unsigned);
|
2505
|
+
approxRem = approxRes.mul(divisor);
|
2506
|
+
}
|
2507
|
+
if (approxRes.isZero())
|
2508
|
+
approxRes = ONE;
|
2509
|
+
res = res.add(approxRes);
|
2510
|
+
rem = rem.sub(approxRem);
|
2511
|
+
}
|
2512
|
+
return res;
|
2513
|
+
};
|
2514
|
+
LongPrototype.div = LongPrototype.divide;
|
2515
|
+
LongPrototype.modulo = function modulo(divisor) {
|
2516
|
+
if (!isLong(divisor))
|
2517
|
+
divisor = fromValue(divisor);
|
2518
|
+
if (wasm) {
|
2519
|
+
var low = (this.unsigned ? wasm["rem_u"] : wasm["rem_s"])(
|
2520
|
+
this.low,
|
2521
|
+
this.high,
|
2522
|
+
divisor.low,
|
2523
|
+
divisor.high
|
2524
|
+
);
|
2525
|
+
return fromBits(low, wasm["get_high"](), this.unsigned);
|
2526
|
+
}
|
2527
|
+
return this.sub(this.div(divisor).mul(divisor));
|
2528
|
+
};
|
2529
|
+
LongPrototype.mod = LongPrototype.modulo;
|
2530
|
+
LongPrototype.rem = LongPrototype.modulo;
|
2531
|
+
LongPrototype.not = function not() {
|
2532
|
+
return fromBits(~this.low, ~this.high, this.unsigned);
|
2533
|
+
};
|
2534
|
+
LongPrototype.countLeadingZeros = function countLeadingZeros() {
|
2535
|
+
return this.high ? Math.clz32(this.high) : Math.clz32(this.low) + 32;
|
2536
|
+
};
|
2537
|
+
LongPrototype.clz = LongPrototype.countLeadingZeros;
|
2538
|
+
LongPrototype.countTrailingZeros = function countTrailingZeros() {
|
2539
|
+
return this.low ? ctz32(this.low) : ctz32(this.high) + 32;
|
2540
|
+
};
|
2541
|
+
LongPrototype.ctz = LongPrototype.countTrailingZeros;
|
2542
|
+
LongPrototype.and = function and(other) {
|
2543
|
+
if (!isLong(other))
|
2544
|
+
other = fromValue(other);
|
2545
|
+
return fromBits(this.low & other.low, this.high & other.high, this.unsigned);
|
2546
|
+
};
|
2547
|
+
LongPrototype.or = function or(other) {
|
2548
|
+
if (!isLong(other))
|
2549
|
+
other = fromValue(other);
|
2550
|
+
return fromBits(this.low | other.low, this.high | other.high, this.unsigned);
|
2551
|
+
};
|
2552
|
+
LongPrototype.xor = function xor(other) {
|
2553
|
+
if (!isLong(other))
|
2554
|
+
other = fromValue(other);
|
2555
|
+
return fromBits(this.low ^ other.low, this.high ^ other.high, this.unsigned);
|
2556
|
+
};
|
2557
|
+
LongPrototype.shiftLeft = function shiftLeft(numBits) {
|
2558
|
+
if (isLong(numBits))
|
2559
|
+
numBits = numBits.toInt();
|
2560
|
+
if ((numBits &= 63) === 0)
|
2561
|
+
return this;
|
2562
|
+
else if (numBits < 32)
|
2563
|
+
return fromBits(this.low << numBits, this.high << numBits | this.low >>> 32 - numBits, this.unsigned);
|
2564
|
+
else
|
2565
|
+
return fromBits(0, this.low << numBits - 32, this.unsigned);
|
2566
|
+
};
|
2567
|
+
LongPrototype.shl = LongPrototype.shiftLeft;
|
2568
|
+
LongPrototype.shiftRight = function shiftRight(numBits) {
|
2569
|
+
if (isLong(numBits))
|
2570
|
+
numBits = numBits.toInt();
|
2571
|
+
if ((numBits &= 63) === 0)
|
2572
|
+
return this;
|
2573
|
+
else if (numBits < 32)
|
2574
|
+
return fromBits(this.low >>> numBits | this.high << 32 - numBits, this.high >> numBits, this.unsigned);
|
2575
|
+
else
|
2576
|
+
return fromBits(this.high >> numBits - 32, this.high >= 0 ? 0 : -1, this.unsigned);
|
2577
|
+
};
|
2578
|
+
LongPrototype.shr = LongPrototype.shiftRight;
|
2579
|
+
LongPrototype.shiftRightUnsigned = function shiftRightUnsigned(numBits) {
|
2580
|
+
if (isLong(numBits))
|
2581
|
+
numBits = numBits.toInt();
|
2582
|
+
if ((numBits &= 63) === 0)
|
2583
|
+
return this;
|
2584
|
+
if (numBits < 32)
|
2585
|
+
return fromBits(this.low >>> numBits | this.high << 32 - numBits, this.high >>> numBits, this.unsigned);
|
2586
|
+
if (numBits === 32)
|
2587
|
+
return fromBits(this.high, 0, this.unsigned);
|
2588
|
+
return fromBits(this.high >>> numBits - 32, 0, this.unsigned);
|
2589
|
+
};
|
2590
|
+
LongPrototype.shru = LongPrototype.shiftRightUnsigned;
|
2591
|
+
LongPrototype.shr_u = LongPrototype.shiftRightUnsigned;
|
2592
|
+
LongPrototype.rotateLeft = function rotateLeft(numBits) {
|
2593
|
+
var b;
|
2594
|
+
if (isLong(numBits))
|
2595
|
+
numBits = numBits.toInt();
|
2596
|
+
if ((numBits &= 63) === 0)
|
2597
|
+
return this;
|
2598
|
+
if (numBits === 32)
|
2599
|
+
return fromBits(this.high, this.low, this.unsigned);
|
2600
|
+
if (numBits < 32) {
|
2601
|
+
b = 32 - numBits;
|
2602
|
+
return fromBits(this.low << numBits | this.high >>> b, this.high << numBits | this.low >>> b, this.unsigned);
|
2603
|
+
}
|
2604
|
+
numBits -= 32;
|
2605
|
+
b = 32 - numBits;
|
2606
|
+
return fromBits(this.high << numBits | this.low >>> b, this.low << numBits | this.high >>> b, this.unsigned);
|
2607
|
+
};
|
2608
|
+
LongPrototype.rotl = LongPrototype.rotateLeft;
|
2609
|
+
LongPrototype.rotateRight = function rotateRight(numBits) {
|
2610
|
+
var b;
|
2611
|
+
if (isLong(numBits))
|
2612
|
+
numBits = numBits.toInt();
|
2613
|
+
if ((numBits &= 63) === 0)
|
2614
|
+
return this;
|
2615
|
+
if (numBits === 32)
|
2616
|
+
return fromBits(this.high, this.low, this.unsigned);
|
2617
|
+
if (numBits < 32) {
|
2618
|
+
b = 32 - numBits;
|
2619
|
+
return fromBits(this.high << b | this.low >>> numBits, this.low << b | this.high >>> numBits, this.unsigned);
|
2620
|
+
}
|
2621
|
+
numBits -= 32;
|
2622
|
+
b = 32 - numBits;
|
2623
|
+
return fromBits(this.low << b | this.high >>> numBits, this.high << b | this.low >>> numBits, this.unsigned);
|
2624
|
+
};
|
2625
|
+
LongPrototype.rotr = LongPrototype.rotateRight;
|
2626
|
+
LongPrototype.toSigned = function toSigned() {
|
2627
|
+
if (!this.unsigned)
|
2628
|
+
return this;
|
2629
|
+
return fromBits(this.low, this.high, false);
|
2630
|
+
};
|
2631
|
+
LongPrototype.toUnsigned = function toUnsigned() {
|
2632
|
+
if (this.unsigned)
|
2633
|
+
return this;
|
2634
|
+
return fromBits(this.low, this.high, true);
|
2635
|
+
};
|
2636
|
+
LongPrototype.toBytes = function toBytes(le) {
|
2637
|
+
return le ? this.toBytesLE() : this.toBytesBE();
|
2638
|
+
};
|
2639
|
+
LongPrototype.toBytesLE = function toBytesLE() {
|
2640
|
+
var hi = this.high, lo = this.low;
|
2641
|
+
return [
|
2642
|
+
lo & 255,
|
2643
|
+
lo >>> 8 & 255,
|
2644
|
+
lo >>> 16 & 255,
|
2645
|
+
lo >>> 24,
|
2646
|
+
hi & 255,
|
2647
|
+
hi >>> 8 & 255,
|
2648
|
+
hi >>> 16 & 255,
|
2649
|
+
hi >>> 24
|
2650
|
+
];
|
2651
|
+
};
|
2652
|
+
LongPrototype.toBytesBE = function toBytesBE() {
|
2653
|
+
var hi = this.high, lo = this.low;
|
2654
|
+
return [
|
2655
|
+
hi >>> 24,
|
2656
|
+
hi >>> 16 & 255,
|
2657
|
+
hi >>> 8 & 255,
|
2658
|
+
hi & 255,
|
2659
|
+
lo >>> 24,
|
2660
|
+
lo >>> 16 & 255,
|
2661
|
+
lo >>> 8 & 255,
|
2662
|
+
lo & 255
|
2663
|
+
];
|
2664
|
+
};
|
2665
|
+
Long.fromBytes = function fromBytes(bytes, unsigned, le) {
|
2666
|
+
return le ? Long.fromBytesLE(bytes, unsigned) : Long.fromBytesBE(bytes, unsigned);
|
2667
|
+
};
|
2668
|
+
Long.fromBytesLE = function fromBytesLE(bytes, unsigned) {
|
2669
|
+
return new Long(
|
2670
|
+
bytes[0] | bytes[1] << 8 | bytes[2] << 16 | bytes[3] << 24,
|
2671
|
+
bytes[4] | bytes[5] << 8 | bytes[6] << 16 | bytes[7] << 24,
|
2672
|
+
unsigned
|
2673
|
+
);
|
2674
|
+
};
|
2675
|
+
Long.fromBytesBE = function fromBytesBE(bytes, unsigned) {
|
2676
|
+
return new Long(
|
2677
|
+
bytes[4] << 24 | bytes[5] << 16 | bytes[6] << 8 | bytes[7],
|
2678
|
+
bytes[0] << 24 | bytes[1] << 16 | bytes[2] << 8 | bytes[3],
|
2679
|
+
unsigned
|
2680
|
+
);
|
2681
|
+
};
|
2682
|
+
var long_default = Long;
|
2683
|
+
|
2684
|
+
// src/generated/hub_event.ts
|
2647
2685
|
var import_minimal4 = __toESM(require_minimal2());
|
2648
2686
|
|
2649
2687
|
// src/generated/message.ts
|
2650
2688
|
init_esm_shims();
|
2651
|
-
var import_long2 = __toESM(require_long());
|
2652
2689
|
var import_minimal2 = __toESM(require_minimal2());
|
2653
2690
|
|
2654
2691
|
// src/generated/username_proof.ts
|
2655
2692
|
init_esm_shims();
|
2656
|
-
var import_long = __toESM(require_long());
|
2657
2693
|
var import_minimal = __toESM(require_minimal2());
|
2658
2694
|
function userNameTypeFromJSON(object) {
|
2659
2695
|
switch (object) {
|
@@ -2844,8 +2880,8 @@ function longToNumber(long) {
|
|
2844
2880
|
}
|
2845
2881
|
return long.toNumber();
|
2846
2882
|
}
|
2847
|
-
if (import_minimal.default.util.Long !==
|
2848
|
-
import_minimal.default.util.Long =
|
2883
|
+
if (import_minimal.default.util.Long !== long_default) {
|
2884
|
+
import_minimal.default.util.Long = long_default;
|
2849
2885
|
import_minimal.default.configure();
|
2850
2886
|
}
|
2851
2887
|
function isSet(value) {
|
@@ -4479,8 +4515,8 @@ function longToNumber2(long) {
|
|
4479
4515
|
}
|
4480
4516
|
return long.toNumber();
|
4481
4517
|
}
|
4482
|
-
if (import_minimal2.default.util.Long !==
|
4483
|
-
import_minimal2.default.util.Long =
|
4518
|
+
if (import_minimal2.default.util.Long !== long_default) {
|
4519
|
+
import_minimal2.default.util.Long = long_default;
|
4484
4520
|
import_minimal2.default.configure();
|
4485
4521
|
}
|
4486
4522
|
function isSet2(value) {
|
@@ -4489,7 +4525,6 @@ function isSet2(value) {
|
|
4489
4525
|
|
4490
4526
|
// src/generated/onchain_event.ts
|
4491
4527
|
init_esm_shims();
|
4492
|
-
var import_long3 = __toESM(require_long());
|
4493
4528
|
var import_minimal3 = __toESM(require_minimal2());
|
4494
4529
|
function onChainEventTypeFromJSON(object) {
|
4495
4530
|
switch (object) {
|
@@ -5172,8 +5207,8 @@ function longToNumber3(long) {
|
|
5172
5207
|
}
|
5173
5208
|
return long.toNumber();
|
5174
5209
|
}
|
5175
|
-
if (import_minimal3.default.util.Long !==
|
5176
|
-
import_minimal3.default.util.Long =
|
5210
|
+
if (import_minimal3.default.util.Long !== long_default) {
|
5211
|
+
import_minimal3.default.util.Long = long_default;
|
5177
5212
|
import_minimal3.default.configure();
|
5178
5213
|
}
|
5179
5214
|
function isSet3(value) {
|
@@ -5677,8 +5712,8 @@ function longToNumber4(long) {
|
|
5677
5712
|
}
|
5678
5713
|
return long.toNumber();
|
5679
5714
|
}
|
5680
|
-
if (import_minimal4.default.util.Long !==
|
5681
|
-
import_minimal4.default.util.Long =
|
5715
|
+
if (import_minimal4.default.util.Long !== long_default) {
|
5716
|
+
import_minimal4.default.util.Long = long_default;
|
5682
5717
|
import_minimal4.default.configure();
|
5683
5718
|
}
|
5684
5719
|
function isSet4(value) {
|
@@ -5687,12 +5722,10 @@ function isSet4(value) {
|
|
5687
5722
|
|
5688
5723
|
// src/generated/request_response.ts
|
5689
5724
|
init_esm_shims();
|
5690
|
-
var import_long6 = __toESM(require_long());
|
5691
5725
|
var import_minimal6 = __toESM(require_minimal2());
|
5692
5726
|
|
5693
5727
|
// src/generated/gossip.ts
|
5694
5728
|
init_esm_shims();
|
5695
|
-
var import_long5 = __toESM(require_long());
|
5696
5729
|
var import_minimal5 = __toESM(require_minimal2());
|
5697
5730
|
function createBaseGossipAddressInfo() {
|
5698
5731
|
return { address: "", family: 0, port: 0, dnsName: "" };
|
@@ -5950,8 +5983,8 @@ function longToNumber5(long) {
|
|
5950
5983
|
}
|
5951
5984
|
return long.toNumber();
|
5952
5985
|
}
|
5953
|
-
if (import_minimal5.default.util.Long !==
|
5954
|
-
import_minimal5.default.util.Long =
|
5986
|
+
if (import_minimal5.default.util.Long !== long_default) {
|
5987
|
+
import_minimal5.default.util.Long = long_default;
|
5955
5988
|
import_minimal5.default.configure();
|
5956
5989
|
}
|
5957
5990
|
function isSet5(value) {
|
@@ -6006,6 +6039,28 @@ function storeTypeToJSON(object) {
|
|
6006
6039
|
throw new tsProtoGlobalThis6.Error("Unrecognized enum value " + object + " for enum StoreType");
|
6007
6040
|
}
|
6008
6041
|
}
|
6042
|
+
function storageUnitTypeFromJSON(object) {
|
6043
|
+
switch (object) {
|
6044
|
+
case 0:
|
6045
|
+
case "UNIT_TYPE_LEGACY":
|
6046
|
+
return 0 /* UNIT_TYPE_LEGACY */;
|
6047
|
+
case 1:
|
6048
|
+
case "UNIT_TYPE_2024":
|
6049
|
+
return 1 /* UNIT_TYPE_2024 */;
|
6050
|
+
default:
|
6051
|
+
throw new tsProtoGlobalThis6.Error("Unrecognized enum value " + object + " for enum StorageUnitType");
|
6052
|
+
}
|
6053
|
+
}
|
6054
|
+
function storageUnitTypeToJSON(object) {
|
6055
|
+
switch (object) {
|
6056
|
+
case 0 /* UNIT_TYPE_LEGACY */:
|
6057
|
+
return "UNIT_TYPE_LEGACY";
|
6058
|
+
case 1 /* UNIT_TYPE_2024 */:
|
6059
|
+
return "UNIT_TYPE_2024";
|
6060
|
+
default:
|
6061
|
+
throw new tsProtoGlobalThis6.Error("Unrecognized enum value " + object + " for enum StorageUnitType");
|
6062
|
+
}
|
6063
|
+
}
|
6009
6064
|
function createBaseEmpty() {
|
6010
6065
|
return {};
|
6011
6066
|
}
|
@@ -7972,7 +8027,7 @@ var OnChainEventResponse = {
|
|
7972
8027
|
}
|
7973
8028
|
};
|
7974
8029
|
function createBaseStorageLimitsResponse() {
|
7975
|
-
return { limits: [], units: 0 };
|
8030
|
+
return { limits: [], units: 0, unitDetails: [] };
|
7976
8031
|
}
|
7977
8032
|
var StorageLimitsResponse = {
|
7978
8033
|
encode(message, writer = import_minimal6.default.Writer.create()) {
|
@@ -7982,6 +8037,9 @@ var StorageLimitsResponse = {
|
|
7982
8037
|
if (message.units !== 0) {
|
7983
8038
|
writer.uint32(16).uint32(message.units);
|
7984
8039
|
}
|
8040
|
+
for (const v of message.unitDetails) {
|
8041
|
+
StorageUnitDetails.encode(v, writer.uint32(26).fork()).ldelim();
|
8042
|
+
}
|
7985
8043
|
return writer;
|
7986
8044
|
},
|
7987
8045
|
decode(input, length) {
|
@@ -8003,6 +8061,12 @@ var StorageLimitsResponse = {
|
|
8003
8061
|
}
|
8004
8062
|
message.units = reader.uint32();
|
8005
8063
|
continue;
|
8064
|
+
case 3:
|
8065
|
+
if (tag != 26) {
|
8066
|
+
break;
|
8067
|
+
}
|
8068
|
+
message.unitDetails.push(StorageUnitDetails.decode(reader, reader.uint32()));
|
8069
|
+
continue;
|
8006
8070
|
}
|
8007
8071
|
if ((tag & 7) == 4 || tag == 0) {
|
8008
8072
|
break;
|
@@ -8014,7 +8078,8 @@ var StorageLimitsResponse = {
|
|
8014
8078
|
fromJSON(object) {
|
8015
8079
|
return {
|
8016
8080
|
limits: Array.isArray(object == null ? void 0 : object.limits) ? object.limits.map((e) => StorageLimit.fromJSON(e)) : [],
|
8017
|
-
units: isSet6(object.units) ? Number(object.units) : 0
|
8081
|
+
units: isSet6(object.units) ? Number(object.units) : 0,
|
8082
|
+
unitDetails: Array.isArray(object == null ? void 0 : object.unitDetails) ? object.unitDetails.map((e) => StorageUnitDetails.fromJSON(e)) : []
|
8018
8083
|
};
|
8019
8084
|
},
|
8020
8085
|
toJSON(message) {
|
@@ -8025,16 +8090,85 @@ var StorageLimitsResponse = {
|
|
8025
8090
|
obj.limits = [];
|
8026
8091
|
}
|
8027
8092
|
message.units !== void 0 && (obj.units = Math.round(message.units));
|
8093
|
+
if (message.unitDetails) {
|
8094
|
+
obj.unitDetails = message.unitDetails.map((e) => e ? StorageUnitDetails.toJSON(e) : void 0);
|
8095
|
+
} else {
|
8096
|
+
obj.unitDetails = [];
|
8097
|
+
}
|
8028
8098
|
return obj;
|
8029
8099
|
},
|
8030
8100
|
create(base) {
|
8031
8101
|
return StorageLimitsResponse.fromPartial(base != null ? base : {});
|
8032
8102
|
},
|
8033
8103
|
fromPartial(object) {
|
8034
|
-
var _a, _b;
|
8104
|
+
var _a, _b, _c;
|
8035
8105
|
const message = createBaseStorageLimitsResponse();
|
8036
8106
|
message.limits = ((_a = object.limits) == null ? void 0 : _a.map((e) => StorageLimit.fromPartial(e))) || [];
|
8037
8107
|
message.units = (_b = object.units) != null ? _b : 0;
|
8108
|
+
message.unitDetails = ((_c = object.unitDetails) == null ? void 0 : _c.map((e) => StorageUnitDetails.fromPartial(e))) || [];
|
8109
|
+
return message;
|
8110
|
+
}
|
8111
|
+
};
|
8112
|
+
function createBaseStorageUnitDetails() {
|
8113
|
+
return { unitType: 0, unitSize: 0 };
|
8114
|
+
}
|
8115
|
+
var StorageUnitDetails = {
|
8116
|
+
encode(message, writer = import_minimal6.default.Writer.create()) {
|
8117
|
+
if (message.unitType !== 0) {
|
8118
|
+
writer.uint32(8).int32(message.unitType);
|
8119
|
+
}
|
8120
|
+
if (message.unitSize !== 0) {
|
8121
|
+
writer.uint32(16).uint32(message.unitSize);
|
8122
|
+
}
|
8123
|
+
return writer;
|
8124
|
+
},
|
8125
|
+
decode(input, length) {
|
8126
|
+
const reader = input instanceof import_minimal6.default.Reader ? input : import_minimal6.default.Reader.create(input);
|
8127
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
8128
|
+
const message = createBaseStorageUnitDetails();
|
8129
|
+
while (reader.pos < end) {
|
8130
|
+
const tag = reader.uint32();
|
8131
|
+
switch (tag >>> 3) {
|
8132
|
+
case 1:
|
8133
|
+
if (tag != 8) {
|
8134
|
+
break;
|
8135
|
+
}
|
8136
|
+
message.unitType = reader.int32();
|
8137
|
+
continue;
|
8138
|
+
case 2:
|
8139
|
+
if (tag != 16) {
|
8140
|
+
break;
|
8141
|
+
}
|
8142
|
+
message.unitSize = reader.uint32();
|
8143
|
+
continue;
|
8144
|
+
}
|
8145
|
+
if ((tag & 7) == 4 || tag == 0) {
|
8146
|
+
break;
|
8147
|
+
}
|
8148
|
+
reader.skipType(tag & 7);
|
8149
|
+
}
|
8150
|
+
return message;
|
8151
|
+
},
|
8152
|
+
fromJSON(object) {
|
8153
|
+
return {
|
8154
|
+
unitType: isSet6(object.unitType) ? storageUnitTypeFromJSON(object.unitType) : 0,
|
8155
|
+
unitSize: isSet6(object.unitSize) ? Number(object.unitSize) : 0
|
8156
|
+
};
|
8157
|
+
},
|
8158
|
+
toJSON(message) {
|
8159
|
+
const obj = {};
|
8160
|
+
message.unitType !== void 0 && (obj.unitType = storageUnitTypeToJSON(message.unitType));
|
8161
|
+
message.unitSize !== void 0 && (obj.unitSize = Math.round(message.unitSize));
|
8162
|
+
return obj;
|
8163
|
+
},
|
8164
|
+
create(base) {
|
8165
|
+
return StorageUnitDetails.fromPartial(base != null ? base : {});
|
8166
|
+
},
|
8167
|
+
fromPartial(object) {
|
8168
|
+
var _a, _b;
|
8169
|
+
const message = createBaseStorageUnitDetails();
|
8170
|
+
message.unitType = (_a = object.unitType) != null ? _a : 0;
|
8171
|
+
message.unitSize = (_b = object.unitSize) != null ? _b : 0;
|
8038
8172
|
return message;
|
8039
8173
|
}
|
8040
8174
|
};
|
@@ -8863,8 +8997,8 @@ function longToNumber6(long) {
|
|
8863
8997
|
}
|
8864
8998
|
return long.toNumber();
|
8865
8999
|
}
|
8866
|
-
if (import_minimal6.default.util.Long !==
|
8867
|
-
import_minimal6.default.util.Long =
|
9000
|
+
if (import_minimal6.default.util.Long !== long_default) {
|
9001
|
+
import_minimal6.default.util.Long = long_default;
|
8868
9002
|
import_minimal6.default.configure();
|
8869
9003
|
}
|
8870
9004
|
function isSet6(value) {
|
@@ -10713,3 +10847,26 @@ export {
|
|
10713
10847
|
getAuthMetadata,
|
10714
10848
|
getHubRpcClient
|
10715
10849
|
};
|
10850
|
+
/*! Bundled license information:
|
10851
|
+
|
10852
|
+
long/index.js:
|
10853
|
+
(**
|
10854
|
+
* @license
|
10855
|
+
* Copyright 2009 The Closure Library Authors
|
10856
|
+
* Copyright 2020 Daniel Wirtz / The long.js Authors.
|
10857
|
+
*
|
10858
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
10859
|
+
* you may not use this file except in compliance with the License.
|
10860
|
+
* You may obtain a copy of the License at
|
10861
|
+
*
|
10862
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
10863
|
+
*
|
10864
|
+
* Unless required by applicable law or agreed to in writing, software
|
10865
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
10866
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
10867
|
+
* See the License for the specific language governing permissions and
|
10868
|
+
* limitations under the License.
|
10869
|
+
*
|
10870
|
+
* SPDX-License-Identifier: Apache-2.0
|
10871
|
+
*)
|
10872
|
+
*/
|