@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.js CHANGED
@@ -387,870 +387,6 @@ var require_browser_headers = __commonJS({
387
387
  }
388
388
  });
389
389
 
390
- // ../../node_modules/long/src/long.js
391
- var require_long = __commonJS({
392
- "../../node_modules/long/src/long.js"(exports2, module2) {
393
- init_cjs_shims();
394
- module2.exports = Long7;
395
- var wasm = null;
396
- try {
397
- wasm = new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([
398
- 0,
399
- 97,
400
- 115,
401
- 109,
402
- 1,
403
- 0,
404
- 0,
405
- 0,
406
- 1,
407
- 13,
408
- 2,
409
- 96,
410
- 0,
411
- 1,
412
- 127,
413
- 96,
414
- 4,
415
- 127,
416
- 127,
417
- 127,
418
- 127,
419
- 1,
420
- 127,
421
- 3,
422
- 7,
423
- 6,
424
- 0,
425
- 1,
426
- 1,
427
- 1,
428
- 1,
429
- 1,
430
- 6,
431
- 6,
432
- 1,
433
- 127,
434
- 1,
435
- 65,
436
- 0,
437
- 11,
438
- 7,
439
- 50,
440
- 6,
441
- 3,
442
- 109,
443
- 117,
444
- 108,
445
- 0,
446
- 1,
447
- 5,
448
- 100,
449
- 105,
450
- 118,
451
- 95,
452
- 115,
453
- 0,
454
- 2,
455
- 5,
456
- 100,
457
- 105,
458
- 118,
459
- 95,
460
- 117,
461
- 0,
462
- 3,
463
- 5,
464
- 114,
465
- 101,
466
- 109,
467
- 95,
468
- 115,
469
- 0,
470
- 4,
471
- 5,
472
- 114,
473
- 101,
474
- 109,
475
- 95,
476
- 117,
477
- 0,
478
- 5,
479
- 8,
480
- 103,
481
- 101,
482
- 116,
483
- 95,
484
- 104,
485
- 105,
486
- 103,
487
- 104,
488
- 0,
489
- 0,
490
- 10,
491
- 191,
492
- 1,
493
- 6,
494
- 4,
495
- 0,
496
- 35,
497
- 0,
498
- 11,
499
- 36,
500
- 1,
501
- 1,
502
- 126,
503
- 32,
504
- 0,
505
- 173,
506
- 32,
507
- 1,
508
- 173,
509
- 66,
510
- 32,
511
- 134,
512
- 132,
513
- 32,
514
- 2,
515
- 173,
516
- 32,
517
- 3,
518
- 173,
519
- 66,
520
- 32,
521
- 134,
522
- 132,
523
- 126,
524
- 34,
525
- 4,
526
- 66,
527
- 32,
528
- 135,
529
- 167,
530
- 36,
531
- 0,
532
- 32,
533
- 4,
534
- 167,
535
- 11,
536
- 36,
537
- 1,
538
- 1,
539
- 126,
540
- 32,
541
- 0,
542
- 173,
543
- 32,
544
- 1,
545
- 173,
546
- 66,
547
- 32,
548
- 134,
549
- 132,
550
- 32,
551
- 2,
552
- 173,
553
- 32,
554
- 3,
555
- 173,
556
- 66,
557
- 32,
558
- 134,
559
- 132,
560
- 127,
561
- 34,
562
- 4,
563
- 66,
564
- 32,
565
- 135,
566
- 167,
567
- 36,
568
- 0,
569
- 32,
570
- 4,
571
- 167,
572
- 11,
573
- 36,
574
- 1,
575
- 1,
576
- 126,
577
- 32,
578
- 0,
579
- 173,
580
- 32,
581
- 1,
582
- 173,
583
- 66,
584
- 32,
585
- 134,
586
- 132,
587
- 32,
588
- 2,
589
- 173,
590
- 32,
591
- 3,
592
- 173,
593
- 66,
594
- 32,
595
- 134,
596
- 132,
597
- 128,
598
- 34,
599
- 4,
600
- 66,
601
- 32,
602
- 135,
603
- 167,
604
- 36,
605
- 0,
606
- 32,
607
- 4,
608
- 167,
609
- 11,
610
- 36,
611
- 1,
612
- 1,
613
- 126,
614
- 32,
615
- 0,
616
- 173,
617
- 32,
618
- 1,
619
- 173,
620
- 66,
621
- 32,
622
- 134,
623
- 132,
624
- 32,
625
- 2,
626
- 173,
627
- 32,
628
- 3,
629
- 173,
630
- 66,
631
- 32,
632
- 134,
633
- 132,
634
- 129,
635
- 34,
636
- 4,
637
- 66,
638
- 32,
639
- 135,
640
- 167,
641
- 36,
642
- 0,
643
- 32,
644
- 4,
645
- 167,
646
- 11,
647
- 36,
648
- 1,
649
- 1,
650
- 126,
651
- 32,
652
- 0,
653
- 173,
654
- 32,
655
- 1,
656
- 173,
657
- 66,
658
- 32,
659
- 134,
660
- 132,
661
- 32,
662
- 2,
663
- 173,
664
- 32,
665
- 3,
666
- 173,
667
- 66,
668
- 32,
669
- 134,
670
- 132,
671
- 130,
672
- 34,
673
- 4,
674
- 66,
675
- 32,
676
- 135,
677
- 167,
678
- 36,
679
- 0,
680
- 32,
681
- 4,
682
- 167,
683
- 11
684
- ])), {}).exports;
685
- } catch (e) {
686
- }
687
- function Long7(low, high, unsigned) {
688
- this.low = low | 0;
689
- this.high = high | 0;
690
- this.unsigned = !!unsigned;
691
- }
692
- Long7.prototype.__isLong__;
693
- Object.defineProperty(Long7.prototype, "__isLong__", { value: true });
694
- function isLong(obj) {
695
- return (obj && obj["__isLong__"]) === true;
696
- }
697
- Long7.isLong = isLong;
698
- var INT_CACHE = {};
699
- var UINT_CACHE = {};
700
- function fromInt(value, unsigned) {
701
- var obj, cachedObj, cache;
702
- if (unsigned) {
703
- value >>>= 0;
704
- if (cache = 0 <= value && value < 256) {
705
- cachedObj = UINT_CACHE[value];
706
- if (cachedObj)
707
- return cachedObj;
708
- }
709
- obj = fromBits(value, (value | 0) < 0 ? -1 : 0, true);
710
- if (cache)
711
- UINT_CACHE[value] = obj;
712
- return obj;
713
- } else {
714
- value |= 0;
715
- if (cache = -128 <= value && value < 128) {
716
- cachedObj = INT_CACHE[value];
717
- if (cachedObj)
718
- return cachedObj;
719
- }
720
- obj = fromBits(value, value < 0 ? -1 : 0, false);
721
- if (cache)
722
- INT_CACHE[value] = obj;
723
- return obj;
724
- }
725
- }
726
- Long7.fromInt = fromInt;
727
- function fromNumber(value, unsigned) {
728
- if (isNaN(value))
729
- return unsigned ? UZERO : ZERO;
730
- if (unsigned) {
731
- if (value < 0)
732
- return UZERO;
733
- if (value >= TWO_PWR_64_DBL)
734
- return MAX_UNSIGNED_VALUE;
735
- } else {
736
- if (value <= -TWO_PWR_63_DBL)
737
- return MIN_VALUE;
738
- if (value + 1 >= TWO_PWR_63_DBL)
739
- return MAX_VALUE;
740
- }
741
- if (value < 0)
742
- return fromNumber(-value, unsigned).neg();
743
- return fromBits(value % TWO_PWR_32_DBL | 0, value / TWO_PWR_32_DBL | 0, unsigned);
744
- }
745
- Long7.fromNumber = fromNumber;
746
- function fromBits(lowBits, highBits, unsigned) {
747
- return new Long7(lowBits, highBits, unsigned);
748
- }
749
- Long7.fromBits = fromBits;
750
- var pow_dbl = Math.pow;
751
- function fromString(str, unsigned, radix) {
752
- if (str.length === 0)
753
- throw Error("empty string");
754
- if (str === "NaN" || str === "Infinity" || str === "+Infinity" || str === "-Infinity")
755
- return ZERO;
756
- if (typeof unsigned === "number") {
757
- radix = unsigned, unsigned = false;
758
- } else {
759
- unsigned = !!unsigned;
760
- }
761
- radix = radix || 10;
762
- if (radix < 2 || 36 < radix)
763
- throw RangeError("radix");
764
- var p;
765
- if ((p = str.indexOf("-")) > 0)
766
- throw Error("interior hyphen");
767
- else if (p === 0) {
768
- return fromString(str.substring(1), unsigned, radix).neg();
769
- }
770
- var radixToPower = fromNumber(pow_dbl(radix, 8));
771
- var result = ZERO;
772
- for (var i = 0; i < str.length; i += 8) {
773
- var size = Math.min(8, str.length - i), value = parseInt(str.substring(i, i + size), radix);
774
- if (size < 8) {
775
- var power = fromNumber(pow_dbl(radix, size));
776
- result = result.mul(power).add(fromNumber(value));
777
- } else {
778
- result = result.mul(radixToPower);
779
- result = result.add(fromNumber(value));
780
- }
781
- }
782
- result.unsigned = unsigned;
783
- return result;
784
- }
785
- Long7.fromString = fromString;
786
- function fromValue(val, unsigned) {
787
- if (typeof val === "number")
788
- return fromNumber(val, unsigned);
789
- if (typeof val === "string")
790
- return fromString(val, unsigned);
791
- return fromBits(val.low, val.high, typeof unsigned === "boolean" ? unsigned : val.unsigned);
792
- }
793
- Long7.fromValue = fromValue;
794
- var TWO_PWR_16_DBL = 1 << 16;
795
- var TWO_PWR_24_DBL = 1 << 24;
796
- var TWO_PWR_32_DBL = TWO_PWR_16_DBL * TWO_PWR_16_DBL;
797
- var TWO_PWR_64_DBL = TWO_PWR_32_DBL * TWO_PWR_32_DBL;
798
- var TWO_PWR_63_DBL = TWO_PWR_64_DBL / 2;
799
- var TWO_PWR_24 = fromInt(TWO_PWR_24_DBL);
800
- var ZERO = fromInt(0);
801
- Long7.ZERO = ZERO;
802
- var UZERO = fromInt(0, true);
803
- Long7.UZERO = UZERO;
804
- var ONE = fromInt(1);
805
- Long7.ONE = ONE;
806
- var UONE = fromInt(1, true);
807
- Long7.UONE = UONE;
808
- var NEG_ONE = fromInt(-1);
809
- Long7.NEG_ONE = NEG_ONE;
810
- var MAX_VALUE = fromBits(4294967295 | 0, 2147483647 | 0, false);
811
- Long7.MAX_VALUE = MAX_VALUE;
812
- var MAX_UNSIGNED_VALUE = fromBits(4294967295 | 0, 4294967295 | 0, true);
813
- Long7.MAX_UNSIGNED_VALUE = MAX_UNSIGNED_VALUE;
814
- var MIN_VALUE = fromBits(0, 2147483648 | 0, false);
815
- Long7.MIN_VALUE = MIN_VALUE;
816
- var LongPrototype = Long7.prototype;
817
- LongPrototype.toInt = function toInt() {
818
- return this.unsigned ? this.low >>> 0 : this.low;
819
- };
820
- LongPrototype.toNumber = function toNumber() {
821
- if (this.unsigned)
822
- return (this.high >>> 0) * TWO_PWR_32_DBL + (this.low >>> 0);
823
- return this.high * TWO_PWR_32_DBL + (this.low >>> 0);
824
- };
825
- LongPrototype.toString = function toString(radix) {
826
- radix = radix || 10;
827
- if (radix < 2 || 36 < radix)
828
- throw RangeError("radix");
829
- if (this.isZero())
830
- return "0";
831
- if (this.isNegative()) {
832
- if (this.eq(MIN_VALUE)) {
833
- var radixLong = fromNumber(radix), div = this.div(radixLong), rem1 = div.mul(radixLong).sub(this);
834
- return div.toString(radix) + rem1.toInt().toString(radix);
835
- } else
836
- return "-" + this.neg().toString(radix);
837
- }
838
- var radixToPower = fromNumber(pow_dbl(radix, 6), this.unsigned), rem = this;
839
- var result = "";
840
- while (true) {
841
- var remDiv = rem.div(radixToPower), intval = rem.sub(remDiv.mul(radixToPower)).toInt() >>> 0, digits = intval.toString(radix);
842
- rem = remDiv;
843
- if (rem.isZero())
844
- return digits + result;
845
- else {
846
- while (digits.length < 6)
847
- digits = "0" + digits;
848
- result = "" + digits + result;
849
- }
850
- }
851
- };
852
- LongPrototype.getHighBits = function getHighBits() {
853
- return this.high;
854
- };
855
- LongPrototype.getHighBitsUnsigned = function getHighBitsUnsigned() {
856
- return this.high >>> 0;
857
- };
858
- LongPrototype.getLowBits = function getLowBits() {
859
- return this.low;
860
- };
861
- LongPrototype.getLowBitsUnsigned = function getLowBitsUnsigned() {
862
- return this.low >>> 0;
863
- };
864
- LongPrototype.getNumBitsAbs = function getNumBitsAbs() {
865
- if (this.isNegative())
866
- return this.eq(MIN_VALUE) ? 64 : this.neg().getNumBitsAbs();
867
- var val = this.high != 0 ? this.high : this.low;
868
- for (var bit = 31; bit > 0; bit--)
869
- if ((val & 1 << bit) != 0)
870
- break;
871
- return this.high != 0 ? bit + 33 : bit + 1;
872
- };
873
- LongPrototype.isZero = function isZero() {
874
- return this.high === 0 && this.low === 0;
875
- };
876
- LongPrototype.eqz = LongPrototype.isZero;
877
- LongPrototype.isNegative = function isNegative() {
878
- return !this.unsigned && this.high < 0;
879
- };
880
- LongPrototype.isPositive = function isPositive() {
881
- return this.unsigned || this.high >= 0;
882
- };
883
- LongPrototype.isOdd = function isOdd() {
884
- return (this.low & 1) === 1;
885
- };
886
- LongPrototype.isEven = function isEven() {
887
- return (this.low & 1) === 0;
888
- };
889
- LongPrototype.equals = function equals(other) {
890
- if (!isLong(other))
891
- other = fromValue(other);
892
- if (this.unsigned !== other.unsigned && this.high >>> 31 === 1 && other.high >>> 31 === 1)
893
- return false;
894
- return this.high === other.high && this.low === other.low;
895
- };
896
- LongPrototype.eq = LongPrototype.equals;
897
- LongPrototype.notEquals = function notEquals(other) {
898
- return !this.eq(
899
- /* validates */
900
- other
901
- );
902
- };
903
- LongPrototype.neq = LongPrototype.notEquals;
904
- LongPrototype.ne = LongPrototype.notEquals;
905
- LongPrototype.lessThan = function lessThan(other) {
906
- return this.comp(
907
- /* validates */
908
- other
909
- ) < 0;
910
- };
911
- LongPrototype.lt = LongPrototype.lessThan;
912
- LongPrototype.lessThanOrEqual = function lessThanOrEqual(other) {
913
- return this.comp(
914
- /* validates */
915
- other
916
- ) <= 0;
917
- };
918
- LongPrototype.lte = LongPrototype.lessThanOrEqual;
919
- LongPrototype.le = LongPrototype.lessThanOrEqual;
920
- LongPrototype.greaterThan = function greaterThan(other) {
921
- return this.comp(
922
- /* validates */
923
- other
924
- ) > 0;
925
- };
926
- LongPrototype.gt = LongPrototype.greaterThan;
927
- LongPrototype.greaterThanOrEqual = function greaterThanOrEqual(other) {
928
- return this.comp(
929
- /* validates */
930
- other
931
- ) >= 0;
932
- };
933
- LongPrototype.gte = LongPrototype.greaterThanOrEqual;
934
- LongPrototype.ge = LongPrototype.greaterThanOrEqual;
935
- LongPrototype.compare = function compare(other) {
936
- if (!isLong(other))
937
- other = fromValue(other);
938
- if (this.eq(other))
939
- return 0;
940
- var thisNeg = this.isNegative(), otherNeg = other.isNegative();
941
- if (thisNeg && !otherNeg)
942
- return -1;
943
- if (!thisNeg && otherNeg)
944
- return 1;
945
- if (!this.unsigned)
946
- return this.sub(other).isNegative() ? -1 : 1;
947
- return other.high >>> 0 > this.high >>> 0 || other.high === this.high && other.low >>> 0 > this.low >>> 0 ? -1 : 1;
948
- };
949
- LongPrototype.comp = LongPrototype.compare;
950
- LongPrototype.negate = function negate() {
951
- if (!this.unsigned && this.eq(MIN_VALUE))
952
- return MIN_VALUE;
953
- return this.not().add(ONE);
954
- };
955
- LongPrototype.neg = LongPrototype.negate;
956
- LongPrototype.add = function add(addend) {
957
- if (!isLong(addend))
958
- addend = fromValue(addend);
959
- var a48 = this.high >>> 16;
960
- var a32 = this.high & 65535;
961
- var a16 = this.low >>> 16;
962
- var a00 = this.low & 65535;
963
- var b48 = addend.high >>> 16;
964
- var b32 = addend.high & 65535;
965
- var b16 = addend.low >>> 16;
966
- var b00 = addend.low & 65535;
967
- var c48 = 0, c32 = 0, c16 = 0, c00 = 0;
968
- c00 += a00 + b00;
969
- c16 += c00 >>> 16;
970
- c00 &= 65535;
971
- c16 += a16 + b16;
972
- c32 += c16 >>> 16;
973
- c16 &= 65535;
974
- c32 += a32 + b32;
975
- c48 += c32 >>> 16;
976
- c32 &= 65535;
977
- c48 += a48 + b48;
978
- c48 &= 65535;
979
- return fromBits(c16 << 16 | c00, c48 << 16 | c32, this.unsigned);
980
- };
981
- LongPrototype.subtract = function subtract(subtrahend) {
982
- if (!isLong(subtrahend))
983
- subtrahend = fromValue(subtrahend);
984
- return this.add(subtrahend.neg());
985
- };
986
- LongPrototype.sub = LongPrototype.subtract;
987
- LongPrototype.multiply = function multiply(multiplier) {
988
- if (this.isZero())
989
- return ZERO;
990
- if (!isLong(multiplier))
991
- multiplier = fromValue(multiplier);
992
- if (wasm) {
993
- var low = wasm.mul(
994
- this.low,
995
- this.high,
996
- multiplier.low,
997
- multiplier.high
998
- );
999
- return fromBits(low, wasm.get_high(), this.unsigned);
1000
- }
1001
- if (multiplier.isZero())
1002
- return ZERO;
1003
- if (this.eq(MIN_VALUE))
1004
- return multiplier.isOdd() ? MIN_VALUE : ZERO;
1005
- if (multiplier.eq(MIN_VALUE))
1006
- return this.isOdd() ? MIN_VALUE : ZERO;
1007
- if (this.isNegative()) {
1008
- if (multiplier.isNegative())
1009
- return this.neg().mul(multiplier.neg());
1010
- else
1011
- return this.neg().mul(multiplier).neg();
1012
- } else if (multiplier.isNegative())
1013
- return this.mul(multiplier.neg()).neg();
1014
- if (this.lt(TWO_PWR_24) && multiplier.lt(TWO_PWR_24))
1015
- return fromNumber(this.toNumber() * multiplier.toNumber(), this.unsigned);
1016
- var a48 = this.high >>> 16;
1017
- var a32 = this.high & 65535;
1018
- var a16 = this.low >>> 16;
1019
- var a00 = this.low & 65535;
1020
- var b48 = multiplier.high >>> 16;
1021
- var b32 = multiplier.high & 65535;
1022
- var b16 = multiplier.low >>> 16;
1023
- var b00 = multiplier.low & 65535;
1024
- var c48 = 0, c32 = 0, c16 = 0, c00 = 0;
1025
- c00 += a00 * b00;
1026
- c16 += c00 >>> 16;
1027
- c00 &= 65535;
1028
- c16 += a16 * b00;
1029
- c32 += c16 >>> 16;
1030
- c16 &= 65535;
1031
- c16 += a00 * b16;
1032
- c32 += c16 >>> 16;
1033
- c16 &= 65535;
1034
- c32 += a32 * b00;
1035
- c48 += c32 >>> 16;
1036
- c32 &= 65535;
1037
- c32 += a16 * b16;
1038
- c48 += c32 >>> 16;
1039
- c32 &= 65535;
1040
- c32 += a00 * b32;
1041
- c48 += c32 >>> 16;
1042
- c32 &= 65535;
1043
- c48 += a48 * b00 + a32 * b16 + a16 * b32 + a00 * b48;
1044
- c48 &= 65535;
1045
- return fromBits(c16 << 16 | c00, c48 << 16 | c32, this.unsigned);
1046
- };
1047
- LongPrototype.mul = LongPrototype.multiply;
1048
- LongPrototype.divide = function divide(divisor) {
1049
- if (!isLong(divisor))
1050
- divisor = fromValue(divisor);
1051
- if (divisor.isZero())
1052
- throw Error("division by zero");
1053
- if (wasm) {
1054
- if (!this.unsigned && this.high === -2147483648 && divisor.low === -1 && divisor.high === -1) {
1055
- return this;
1056
- }
1057
- var low = (this.unsigned ? wasm.div_u : wasm.div_s)(
1058
- this.low,
1059
- this.high,
1060
- divisor.low,
1061
- divisor.high
1062
- );
1063
- return fromBits(low, wasm.get_high(), this.unsigned);
1064
- }
1065
- if (this.isZero())
1066
- return this.unsigned ? UZERO : ZERO;
1067
- var approx, rem, res;
1068
- if (!this.unsigned) {
1069
- if (this.eq(MIN_VALUE)) {
1070
- if (divisor.eq(ONE) || divisor.eq(NEG_ONE))
1071
- return MIN_VALUE;
1072
- else if (divisor.eq(MIN_VALUE))
1073
- return ONE;
1074
- else {
1075
- var halfThis = this.shr(1);
1076
- approx = halfThis.div(divisor).shl(1);
1077
- if (approx.eq(ZERO)) {
1078
- return divisor.isNegative() ? ONE : NEG_ONE;
1079
- } else {
1080
- rem = this.sub(divisor.mul(approx));
1081
- res = approx.add(rem.div(divisor));
1082
- return res;
1083
- }
1084
- }
1085
- } else if (divisor.eq(MIN_VALUE))
1086
- return this.unsigned ? UZERO : ZERO;
1087
- if (this.isNegative()) {
1088
- if (divisor.isNegative())
1089
- return this.neg().div(divisor.neg());
1090
- return this.neg().div(divisor).neg();
1091
- } else if (divisor.isNegative())
1092
- return this.div(divisor.neg()).neg();
1093
- res = ZERO;
1094
- } else {
1095
- if (!divisor.unsigned)
1096
- divisor = divisor.toUnsigned();
1097
- if (divisor.gt(this))
1098
- return UZERO;
1099
- if (divisor.gt(this.shru(1)))
1100
- return UONE;
1101
- res = UZERO;
1102
- }
1103
- rem = this;
1104
- while (rem.gte(divisor)) {
1105
- approx = Math.max(1, Math.floor(rem.toNumber() / divisor.toNumber()));
1106
- 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);
1107
- while (approxRem.isNegative() || approxRem.gt(rem)) {
1108
- approx -= delta;
1109
- approxRes = fromNumber(approx, this.unsigned);
1110
- approxRem = approxRes.mul(divisor);
1111
- }
1112
- if (approxRes.isZero())
1113
- approxRes = ONE;
1114
- res = res.add(approxRes);
1115
- rem = rem.sub(approxRem);
1116
- }
1117
- return res;
1118
- };
1119
- LongPrototype.div = LongPrototype.divide;
1120
- LongPrototype.modulo = function modulo(divisor) {
1121
- if (!isLong(divisor))
1122
- divisor = fromValue(divisor);
1123
- if (wasm) {
1124
- var low = (this.unsigned ? wasm.rem_u : wasm.rem_s)(
1125
- this.low,
1126
- this.high,
1127
- divisor.low,
1128
- divisor.high
1129
- );
1130
- return fromBits(low, wasm.get_high(), this.unsigned);
1131
- }
1132
- return this.sub(this.div(divisor).mul(divisor));
1133
- };
1134
- LongPrototype.mod = LongPrototype.modulo;
1135
- LongPrototype.rem = LongPrototype.modulo;
1136
- LongPrototype.not = function not() {
1137
- return fromBits(~this.low, ~this.high, this.unsigned);
1138
- };
1139
- LongPrototype.and = function and(other) {
1140
- if (!isLong(other))
1141
- other = fromValue(other);
1142
- return fromBits(this.low & other.low, this.high & other.high, this.unsigned);
1143
- };
1144
- LongPrototype.or = function or(other) {
1145
- if (!isLong(other))
1146
- other = fromValue(other);
1147
- return fromBits(this.low | other.low, this.high | other.high, this.unsigned);
1148
- };
1149
- LongPrototype.xor = function xor(other) {
1150
- if (!isLong(other))
1151
- other = fromValue(other);
1152
- return fromBits(this.low ^ other.low, this.high ^ other.high, this.unsigned);
1153
- };
1154
- LongPrototype.shiftLeft = function shiftLeft(numBits) {
1155
- if (isLong(numBits))
1156
- numBits = numBits.toInt();
1157
- if ((numBits &= 63) === 0)
1158
- return this;
1159
- else if (numBits < 32)
1160
- return fromBits(this.low << numBits, this.high << numBits | this.low >>> 32 - numBits, this.unsigned);
1161
- else
1162
- return fromBits(0, this.low << numBits - 32, this.unsigned);
1163
- };
1164
- LongPrototype.shl = LongPrototype.shiftLeft;
1165
- LongPrototype.shiftRight = function shiftRight(numBits) {
1166
- if (isLong(numBits))
1167
- numBits = numBits.toInt();
1168
- if ((numBits &= 63) === 0)
1169
- return this;
1170
- else if (numBits < 32)
1171
- return fromBits(this.low >>> numBits | this.high << 32 - numBits, this.high >> numBits, this.unsigned);
1172
- else
1173
- return fromBits(this.high >> numBits - 32, this.high >= 0 ? 0 : -1, this.unsigned);
1174
- };
1175
- LongPrototype.shr = LongPrototype.shiftRight;
1176
- LongPrototype.shiftRightUnsigned = function shiftRightUnsigned(numBits) {
1177
- if (isLong(numBits))
1178
- numBits = numBits.toInt();
1179
- numBits &= 63;
1180
- if (numBits === 0)
1181
- return this;
1182
- else {
1183
- var high = this.high;
1184
- if (numBits < 32) {
1185
- var low = this.low;
1186
- return fromBits(low >>> numBits | high << 32 - numBits, high >>> numBits, this.unsigned);
1187
- } else if (numBits === 32)
1188
- return fromBits(high, 0, this.unsigned);
1189
- else
1190
- return fromBits(high >>> numBits - 32, 0, this.unsigned);
1191
- }
1192
- };
1193
- LongPrototype.shru = LongPrototype.shiftRightUnsigned;
1194
- LongPrototype.shr_u = LongPrototype.shiftRightUnsigned;
1195
- LongPrototype.toSigned = function toSigned() {
1196
- if (!this.unsigned)
1197
- return this;
1198
- return fromBits(this.low, this.high, false);
1199
- };
1200
- LongPrototype.toUnsigned = function toUnsigned() {
1201
- if (this.unsigned)
1202
- return this;
1203
- return fromBits(this.low, this.high, true);
1204
- };
1205
- LongPrototype.toBytes = function toBytes(le) {
1206
- return le ? this.toBytesLE() : this.toBytesBE();
1207
- };
1208
- LongPrototype.toBytesLE = function toBytesLE() {
1209
- var hi = this.high, lo = this.low;
1210
- return [
1211
- lo & 255,
1212
- lo >>> 8 & 255,
1213
- lo >>> 16 & 255,
1214
- lo >>> 24,
1215
- hi & 255,
1216
- hi >>> 8 & 255,
1217
- hi >>> 16 & 255,
1218
- hi >>> 24
1219
- ];
1220
- };
1221
- LongPrototype.toBytesBE = function toBytesBE() {
1222
- var hi = this.high, lo = this.low;
1223
- return [
1224
- hi >>> 24,
1225
- hi >>> 16 & 255,
1226
- hi >>> 8 & 255,
1227
- hi & 255,
1228
- lo >>> 24,
1229
- lo >>> 16 & 255,
1230
- lo >>> 8 & 255,
1231
- lo & 255
1232
- ];
1233
- };
1234
- Long7.fromBytes = function fromBytes(bytes, unsigned, le) {
1235
- return le ? Long7.fromBytesLE(bytes, unsigned) : Long7.fromBytesBE(bytes, unsigned);
1236
- };
1237
- Long7.fromBytesLE = function fromBytesLE(bytes, unsigned) {
1238
- return new Long7(
1239
- bytes[0] | bytes[1] << 8 | bytes[2] << 16 | bytes[3] << 24,
1240
- bytes[4] | bytes[5] << 8 | bytes[6] << 16 | bytes[7] << 24,
1241
- unsigned
1242
- );
1243
- };
1244
- Long7.fromBytesBE = function fromBytesBE(bytes, unsigned) {
1245
- return new Long7(
1246
- bytes[4] << 24 | bytes[5] << 16 | bytes[6] << 8 | bytes[7],
1247
- bytes[0] << 24 | bytes[1] << 16 | bytes[2] << 8 | bytes[3],
1248
- unsigned
1249
- );
1250
- };
1251
- }
1252
- });
1253
-
1254
390
  // ../../node_modules/@protobufjs/aspromise/index.js
1255
391
  var require_aspromise = __commonJS({
1256
392
  "../../node_modules/@protobufjs/aspromise/index.js"(exports2, module2) {
@@ -1780,7 +916,7 @@ var require_longbits = __commonJS({
1780
916
  return 1;
1781
917
  };
1782
918
  var zeroHash = LongBits.zeroHash = "\0\0\0\0\0\0\0\0";
1783
- LongBits.fromNumber = function fromNumber(value) {
919
+ LongBits.fromNumber = function fromNumber2(value) {
1784
920
  if (value === 0)
1785
921
  return zero;
1786
922
  var sign = value < 0;
@@ -1809,7 +945,7 @@ var require_longbits = __commonJS({
1809
945
  }
1810
946
  return value.low || value.high ? new LongBits(value.low >>> 0, value.high >>> 0) : zero;
1811
947
  };
1812
- LongBits.prototype.toNumber = function toNumber(unsigned) {
948
+ LongBits.prototype.toNumber = function toNumber2(unsigned) {
1813
949
  if (!unsigned && this.hi >>> 31) {
1814
950
  var lo = ~this.lo + 1 >>> 0, hi = ~this.hi >>> 0;
1815
951
  if (!lo)
@@ -1968,7 +1104,7 @@ var require_minimal = __commonJS({
1968
1104
  Object.defineProperty(CustomError.prototype, "name", { get: function() {
1969
1105
  return name;
1970
1106
  } });
1971
- CustomError.prototype.toString = function toString() {
1107
+ CustomError.prototype.toString = function toString2() {
1972
1108
  return this.name + ": " + this.message;
1973
1109
  };
1974
1110
  return CustomError;
@@ -2710,17 +1846,917 @@ var import_operators = require("rxjs/operators");
2710
1846
 
2711
1847
  // src/generated/hub_event.ts
2712
1848
  init_cjs_shims();
2713
- var import_long4 = __toESM(require_long());
1849
+
1850
+ // ../../node_modules/long/index.js
1851
+ init_cjs_shims();
1852
+ var wasm = null;
1853
+ try {
1854
+ wasm = new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([
1855
+ 0,
1856
+ 97,
1857
+ 115,
1858
+ 109,
1859
+ 1,
1860
+ 0,
1861
+ 0,
1862
+ 0,
1863
+ 1,
1864
+ 13,
1865
+ 2,
1866
+ 96,
1867
+ 0,
1868
+ 1,
1869
+ 127,
1870
+ 96,
1871
+ 4,
1872
+ 127,
1873
+ 127,
1874
+ 127,
1875
+ 127,
1876
+ 1,
1877
+ 127,
1878
+ 3,
1879
+ 7,
1880
+ 6,
1881
+ 0,
1882
+ 1,
1883
+ 1,
1884
+ 1,
1885
+ 1,
1886
+ 1,
1887
+ 6,
1888
+ 6,
1889
+ 1,
1890
+ 127,
1891
+ 1,
1892
+ 65,
1893
+ 0,
1894
+ 11,
1895
+ 7,
1896
+ 50,
1897
+ 6,
1898
+ 3,
1899
+ 109,
1900
+ 117,
1901
+ 108,
1902
+ 0,
1903
+ 1,
1904
+ 5,
1905
+ 100,
1906
+ 105,
1907
+ 118,
1908
+ 95,
1909
+ 115,
1910
+ 0,
1911
+ 2,
1912
+ 5,
1913
+ 100,
1914
+ 105,
1915
+ 118,
1916
+ 95,
1917
+ 117,
1918
+ 0,
1919
+ 3,
1920
+ 5,
1921
+ 114,
1922
+ 101,
1923
+ 109,
1924
+ 95,
1925
+ 115,
1926
+ 0,
1927
+ 4,
1928
+ 5,
1929
+ 114,
1930
+ 101,
1931
+ 109,
1932
+ 95,
1933
+ 117,
1934
+ 0,
1935
+ 5,
1936
+ 8,
1937
+ 103,
1938
+ 101,
1939
+ 116,
1940
+ 95,
1941
+ 104,
1942
+ 105,
1943
+ 103,
1944
+ 104,
1945
+ 0,
1946
+ 0,
1947
+ 10,
1948
+ 191,
1949
+ 1,
1950
+ 6,
1951
+ 4,
1952
+ 0,
1953
+ 35,
1954
+ 0,
1955
+ 11,
1956
+ 36,
1957
+ 1,
1958
+ 1,
1959
+ 126,
1960
+ 32,
1961
+ 0,
1962
+ 173,
1963
+ 32,
1964
+ 1,
1965
+ 173,
1966
+ 66,
1967
+ 32,
1968
+ 134,
1969
+ 132,
1970
+ 32,
1971
+ 2,
1972
+ 173,
1973
+ 32,
1974
+ 3,
1975
+ 173,
1976
+ 66,
1977
+ 32,
1978
+ 134,
1979
+ 132,
1980
+ 126,
1981
+ 34,
1982
+ 4,
1983
+ 66,
1984
+ 32,
1985
+ 135,
1986
+ 167,
1987
+ 36,
1988
+ 0,
1989
+ 32,
1990
+ 4,
1991
+ 167,
1992
+ 11,
1993
+ 36,
1994
+ 1,
1995
+ 1,
1996
+ 126,
1997
+ 32,
1998
+ 0,
1999
+ 173,
2000
+ 32,
2001
+ 1,
2002
+ 173,
2003
+ 66,
2004
+ 32,
2005
+ 134,
2006
+ 132,
2007
+ 32,
2008
+ 2,
2009
+ 173,
2010
+ 32,
2011
+ 3,
2012
+ 173,
2013
+ 66,
2014
+ 32,
2015
+ 134,
2016
+ 132,
2017
+ 127,
2018
+ 34,
2019
+ 4,
2020
+ 66,
2021
+ 32,
2022
+ 135,
2023
+ 167,
2024
+ 36,
2025
+ 0,
2026
+ 32,
2027
+ 4,
2028
+ 167,
2029
+ 11,
2030
+ 36,
2031
+ 1,
2032
+ 1,
2033
+ 126,
2034
+ 32,
2035
+ 0,
2036
+ 173,
2037
+ 32,
2038
+ 1,
2039
+ 173,
2040
+ 66,
2041
+ 32,
2042
+ 134,
2043
+ 132,
2044
+ 32,
2045
+ 2,
2046
+ 173,
2047
+ 32,
2048
+ 3,
2049
+ 173,
2050
+ 66,
2051
+ 32,
2052
+ 134,
2053
+ 132,
2054
+ 128,
2055
+ 34,
2056
+ 4,
2057
+ 66,
2058
+ 32,
2059
+ 135,
2060
+ 167,
2061
+ 36,
2062
+ 0,
2063
+ 32,
2064
+ 4,
2065
+ 167,
2066
+ 11,
2067
+ 36,
2068
+ 1,
2069
+ 1,
2070
+ 126,
2071
+ 32,
2072
+ 0,
2073
+ 173,
2074
+ 32,
2075
+ 1,
2076
+ 173,
2077
+ 66,
2078
+ 32,
2079
+ 134,
2080
+ 132,
2081
+ 32,
2082
+ 2,
2083
+ 173,
2084
+ 32,
2085
+ 3,
2086
+ 173,
2087
+ 66,
2088
+ 32,
2089
+ 134,
2090
+ 132,
2091
+ 129,
2092
+ 34,
2093
+ 4,
2094
+ 66,
2095
+ 32,
2096
+ 135,
2097
+ 167,
2098
+ 36,
2099
+ 0,
2100
+ 32,
2101
+ 4,
2102
+ 167,
2103
+ 11,
2104
+ 36,
2105
+ 1,
2106
+ 1,
2107
+ 126,
2108
+ 32,
2109
+ 0,
2110
+ 173,
2111
+ 32,
2112
+ 1,
2113
+ 173,
2114
+ 66,
2115
+ 32,
2116
+ 134,
2117
+ 132,
2118
+ 32,
2119
+ 2,
2120
+ 173,
2121
+ 32,
2122
+ 3,
2123
+ 173,
2124
+ 66,
2125
+ 32,
2126
+ 134,
2127
+ 132,
2128
+ 130,
2129
+ 34,
2130
+ 4,
2131
+ 66,
2132
+ 32,
2133
+ 135,
2134
+ 167,
2135
+ 36,
2136
+ 0,
2137
+ 32,
2138
+ 4,
2139
+ 167,
2140
+ 11
2141
+ ])), {}).exports;
2142
+ } catch (e) {
2143
+ }
2144
+ function Long(low, high, unsigned) {
2145
+ this.low = low | 0;
2146
+ this.high = high | 0;
2147
+ this.unsigned = !!unsigned;
2148
+ }
2149
+ Long.prototype.__isLong__;
2150
+ Object.defineProperty(Long.prototype, "__isLong__", { value: true });
2151
+ function isLong(obj) {
2152
+ return (obj && obj["__isLong__"]) === true;
2153
+ }
2154
+ function ctz32(value) {
2155
+ var c = Math.clz32(value & -value);
2156
+ return value ? 31 - c : c;
2157
+ }
2158
+ Long.isLong = isLong;
2159
+ var INT_CACHE = {};
2160
+ var UINT_CACHE = {};
2161
+ function fromInt(value, unsigned) {
2162
+ var obj, cachedObj, cache;
2163
+ if (unsigned) {
2164
+ value >>>= 0;
2165
+ if (cache = 0 <= value && value < 256) {
2166
+ cachedObj = UINT_CACHE[value];
2167
+ if (cachedObj)
2168
+ return cachedObj;
2169
+ }
2170
+ obj = fromBits(value, 0, true);
2171
+ if (cache)
2172
+ UINT_CACHE[value] = obj;
2173
+ return obj;
2174
+ } else {
2175
+ value |= 0;
2176
+ if (cache = -128 <= value && value < 128) {
2177
+ cachedObj = INT_CACHE[value];
2178
+ if (cachedObj)
2179
+ return cachedObj;
2180
+ }
2181
+ obj = fromBits(value, value < 0 ? -1 : 0, false);
2182
+ if (cache)
2183
+ INT_CACHE[value] = obj;
2184
+ return obj;
2185
+ }
2186
+ }
2187
+ Long.fromInt = fromInt;
2188
+ function fromNumber(value, unsigned) {
2189
+ if (isNaN(value))
2190
+ return unsigned ? UZERO : ZERO;
2191
+ if (unsigned) {
2192
+ if (value < 0)
2193
+ return UZERO;
2194
+ if (value >= TWO_PWR_64_DBL)
2195
+ return MAX_UNSIGNED_VALUE;
2196
+ } else {
2197
+ if (value <= -TWO_PWR_63_DBL)
2198
+ return MIN_VALUE;
2199
+ if (value + 1 >= TWO_PWR_63_DBL)
2200
+ return MAX_VALUE;
2201
+ }
2202
+ if (value < 0)
2203
+ return fromNumber(-value, unsigned).neg();
2204
+ return fromBits(value % TWO_PWR_32_DBL | 0, value / TWO_PWR_32_DBL | 0, unsigned);
2205
+ }
2206
+ Long.fromNumber = fromNumber;
2207
+ function fromBits(lowBits, highBits, unsigned) {
2208
+ return new Long(lowBits, highBits, unsigned);
2209
+ }
2210
+ Long.fromBits = fromBits;
2211
+ var pow_dbl = Math.pow;
2212
+ function fromString(str, unsigned, radix) {
2213
+ if (str.length === 0)
2214
+ throw Error("empty string");
2215
+ if (typeof unsigned === "number") {
2216
+ radix = unsigned;
2217
+ unsigned = false;
2218
+ } else {
2219
+ unsigned = !!unsigned;
2220
+ }
2221
+ if (str === "NaN" || str === "Infinity" || str === "+Infinity" || str === "-Infinity")
2222
+ return unsigned ? UZERO : ZERO;
2223
+ radix = radix || 10;
2224
+ if (radix < 2 || 36 < radix)
2225
+ throw RangeError("radix");
2226
+ var p;
2227
+ if ((p = str.indexOf("-")) > 0)
2228
+ throw Error("interior hyphen");
2229
+ else if (p === 0) {
2230
+ return fromString(str.substring(1), unsigned, radix).neg();
2231
+ }
2232
+ var radixToPower = fromNumber(pow_dbl(radix, 8));
2233
+ var result = ZERO;
2234
+ for (var i = 0; i < str.length; i += 8) {
2235
+ var size = Math.min(8, str.length - i), value = parseInt(str.substring(i, i + size), radix);
2236
+ if (size < 8) {
2237
+ var power = fromNumber(pow_dbl(radix, size));
2238
+ result = result.mul(power).add(fromNumber(value));
2239
+ } else {
2240
+ result = result.mul(radixToPower);
2241
+ result = result.add(fromNumber(value));
2242
+ }
2243
+ }
2244
+ result.unsigned = unsigned;
2245
+ return result;
2246
+ }
2247
+ Long.fromString = fromString;
2248
+ function fromValue(val, unsigned) {
2249
+ if (typeof val === "number")
2250
+ return fromNumber(val, unsigned);
2251
+ if (typeof val === "string")
2252
+ return fromString(val, unsigned);
2253
+ return fromBits(val.low, val.high, typeof unsigned === "boolean" ? unsigned : val.unsigned);
2254
+ }
2255
+ Long.fromValue = fromValue;
2256
+ var TWO_PWR_16_DBL = 1 << 16;
2257
+ var TWO_PWR_24_DBL = 1 << 24;
2258
+ var TWO_PWR_32_DBL = TWO_PWR_16_DBL * TWO_PWR_16_DBL;
2259
+ var TWO_PWR_64_DBL = TWO_PWR_32_DBL * TWO_PWR_32_DBL;
2260
+ var TWO_PWR_63_DBL = TWO_PWR_64_DBL / 2;
2261
+ var TWO_PWR_24 = fromInt(TWO_PWR_24_DBL);
2262
+ var ZERO = fromInt(0);
2263
+ Long.ZERO = ZERO;
2264
+ var UZERO = fromInt(0, true);
2265
+ Long.UZERO = UZERO;
2266
+ var ONE = fromInt(1);
2267
+ Long.ONE = ONE;
2268
+ var UONE = fromInt(1, true);
2269
+ Long.UONE = UONE;
2270
+ var NEG_ONE = fromInt(-1);
2271
+ Long.NEG_ONE = NEG_ONE;
2272
+ var MAX_VALUE = fromBits(4294967295 | 0, 2147483647 | 0, false);
2273
+ Long.MAX_VALUE = MAX_VALUE;
2274
+ var MAX_UNSIGNED_VALUE = fromBits(4294967295 | 0, 4294967295 | 0, true);
2275
+ Long.MAX_UNSIGNED_VALUE = MAX_UNSIGNED_VALUE;
2276
+ var MIN_VALUE = fromBits(0, 2147483648 | 0, false);
2277
+ Long.MIN_VALUE = MIN_VALUE;
2278
+ var LongPrototype = Long.prototype;
2279
+ LongPrototype.toInt = function toInt() {
2280
+ return this.unsigned ? this.low >>> 0 : this.low;
2281
+ };
2282
+ LongPrototype.toNumber = function toNumber() {
2283
+ if (this.unsigned)
2284
+ return (this.high >>> 0) * TWO_PWR_32_DBL + (this.low >>> 0);
2285
+ return this.high * TWO_PWR_32_DBL + (this.low >>> 0);
2286
+ };
2287
+ LongPrototype.toString = function toString(radix) {
2288
+ radix = radix || 10;
2289
+ if (radix < 2 || 36 < radix)
2290
+ throw RangeError("radix");
2291
+ if (this.isZero())
2292
+ return "0";
2293
+ if (this.isNegative()) {
2294
+ if (this.eq(MIN_VALUE)) {
2295
+ var radixLong = fromNumber(radix), div = this.div(radixLong), rem1 = div.mul(radixLong).sub(this);
2296
+ return div.toString(radix) + rem1.toInt().toString(radix);
2297
+ } else
2298
+ return "-" + this.neg().toString(radix);
2299
+ }
2300
+ var radixToPower = fromNumber(pow_dbl(radix, 6), this.unsigned), rem = this;
2301
+ var result = "";
2302
+ while (true) {
2303
+ var remDiv = rem.div(radixToPower), intval = rem.sub(remDiv.mul(radixToPower)).toInt() >>> 0, digits = intval.toString(radix);
2304
+ rem = remDiv;
2305
+ if (rem.isZero())
2306
+ return digits + result;
2307
+ else {
2308
+ while (digits.length < 6)
2309
+ digits = "0" + digits;
2310
+ result = "" + digits + result;
2311
+ }
2312
+ }
2313
+ };
2314
+ LongPrototype.getHighBits = function getHighBits() {
2315
+ return this.high;
2316
+ };
2317
+ LongPrototype.getHighBitsUnsigned = function getHighBitsUnsigned() {
2318
+ return this.high >>> 0;
2319
+ };
2320
+ LongPrototype.getLowBits = function getLowBits() {
2321
+ return this.low;
2322
+ };
2323
+ LongPrototype.getLowBitsUnsigned = function getLowBitsUnsigned() {
2324
+ return this.low >>> 0;
2325
+ };
2326
+ LongPrototype.getNumBitsAbs = function getNumBitsAbs() {
2327
+ if (this.isNegative())
2328
+ return this.eq(MIN_VALUE) ? 64 : this.neg().getNumBitsAbs();
2329
+ var val = this.high != 0 ? this.high : this.low;
2330
+ for (var bit = 31; bit > 0; bit--)
2331
+ if ((val & 1 << bit) != 0)
2332
+ break;
2333
+ return this.high != 0 ? bit + 33 : bit + 1;
2334
+ };
2335
+ LongPrototype.isZero = function isZero() {
2336
+ return this.high === 0 && this.low === 0;
2337
+ };
2338
+ LongPrototype.eqz = LongPrototype.isZero;
2339
+ LongPrototype.isNegative = function isNegative() {
2340
+ return !this.unsigned && this.high < 0;
2341
+ };
2342
+ LongPrototype.isPositive = function isPositive() {
2343
+ return this.unsigned || this.high >= 0;
2344
+ };
2345
+ LongPrototype.isOdd = function isOdd() {
2346
+ return (this.low & 1) === 1;
2347
+ };
2348
+ LongPrototype.isEven = function isEven() {
2349
+ return (this.low & 1) === 0;
2350
+ };
2351
+ LongPrototype.equals = function equals(other) {
2352
+ if (!isLong(other))
2353
+ other = fromValue(other);
2354
+ if (this.unsigned !== other.unsigned && this.high >>> 31 === 1 && other.high >>> 31 === 1)
2355
+ return false;
2356
+ return this.high === other.high && this.low === other.low;
2357
+ };
2358
+ LongPrototype.eq = LongPrototype.equals;
2359
+ LongPrototype.notEquals = function notEquals(other) {
2360
+ return !this.eq(
2361
+ /* validates */
2362
+ other
2363
+ );
2364
+ };
2365
+ LongPrototype.neq = LongPrototype.notEquals;
2366
+ LongPrototype.ne = LongPrototype.notEquals;
2367
+ LongPrototype.lessThan = function lessThan(other) {
2368
+ return this.comp(
2369
+ /* validates */
2370
+ other
2371
+ ) < 0;
2372
+ };
2373
+ LongPrototype.lt = LongPrototype.lessThan;
2374
+ LongPrototype.lessThanOrEqual = function lessThanOrEqual(other) {
2375
+ return this.comp(
2376
+ /* validates */
2377
+ other
2378
+ ) <= 0;
2379
+ };
2380
+ LongPrototype.lte = LongPrototype.lessThanOrEqual;
2381
+ LongPrototype.le = LongPrototype.lessThanOrEqual;
2382
+ LongPrototype.greaterThan = function greaterThan(other) {
2383
+ return this.comp(
2384
+ /* validates */
2385
+ other
2386
+ ) > 0;
2387
+ };
2388
+ LongPrototype.gt = LongPrototype.greaterThan;
2389
+ LongPrototype.greaterThanOrEqual = function greaterThanOrEqual(other) {
2390
+ return this.comp(
2391
+ /* validates */
2392
+ other
2393
+ ) >= 0;
2394
+ };
2395
+ LongPrototype.gte = LongPrototype.greaterThanOrEqual;
2396
+ LongPrototype.ge = LongPrototype.greaterThanOrEqual;
2397
+ LongPrototype.compare = function compare(other) {
2398
+ if (!isLong(other))
2399
+ other = fromValue(other);
2400
+ if (this.eq(other))
2401
+ return 0;
2402
+ var thisNeg = this.isNegative(), otherNeg = other.isNegative();
2403
+ if (thisNeg && !otherNeg)
2404
+ return -1;
2405
+ if (!thisNeg && otherNeg)
2406
+ return 1;
2407
+ if (!this.unsigned)
2408
+ return this.sub(other).isNegative() ? -1 : 1;
2409
+ return other.high >>> 0 > this.high >>> 0 || other.high === this.high && other.low >>> 0 > this.low >>> 0 ? -1 : 1;
2410
+ };
2411
+ LongPrototype.comp = LongPrototype.compare;
2412
+ LongPrototype.negate = function negate() {
2413
+ if (!this.unsigned && this.eq(MIN_VALUE))
2414
+ return MIN_VALUE;
2415
+ return this.not().add(ONE);
2416
+ };
2417
+ LongPrototype.neg = LongPrototype.negate;
2418
+ LongPrototype.add = function add(addend) {
2419
+ if (!isLong(addend))
2420
+ addend = fromValue(addend);
2421
+ var a48 = this.high >>> 16;
2422
+ var a32 = this.high & 65535;
2423
+ var a16 = this.low >>> 16;
2424
+ var a00 = this.low & 65535;
2425
+ var b48 = addend.high >>> 16;
2426
+ var b32 = addend.high & 65535;
2427
+ var b16 = addend.low >>> 16;
2428
+ var b00 = addend.low & 65535;
2429
+ var c48 = 0, c32 = 0, c16 = 0, c00 = 0;
2430
+ c00 += a00 + b00;
2431
+ c16 += c00 >>> 16;
2432
+ c00 &= 65535;
2433
+ c16 += a16 + b16;
2434
+ c32 += c16 >>> 16;
2435
+ c16 &= 65535;
2436
+ c32 += a32 + b32;
2437
+ c48 += c32 >>> 16;
2438
+ c32 &= 65535;
2439
+ c48 += a48 + b48;
2440
+ c48 &= 65535;
2441
+ return fromBits(c16 << 16 | c00, c48 << 16 | c32, this.unsigned);
2442
+ };
2443
+ LongPrototype.subtract = function subtract(subtrahend) {
2444
+ if (!isLong(subtrahend))
2445
+ subtrahend = fromValue(subtrahend);
2446
+ return this.add(subtrahend.neg());
2447
+ };
2448
+ LongPrototype.sub = LongPrototype.subtract;
2449
+ LongPrototype.multiply = function multiply(multiplier) {
2450
+ if (this.isZero())
2451
+ return this;
2452
+ if (!isLong(multiplier))
2453
+ multiplier = fromValue(multiplier);
2454
+ if (wasm) {
2455
+ var low = wasm["mul"](
2456
+ this.low,
2457
+ this.high,
2458
+ multiplier.low,
2459
+ multiplier.high
2460
+ );
2461
+ return fromBits(low, wasm["get_high"](), this.unsigned);
2462
+ }
2463
+ if (multiplier.isZero())
2464
+ return this.unsigned ? UZERO : ZERO;
2465
+ if (this.eq(MIN_VALUE))
2466
+ return multiplier.isOdd() ? MIN_VALUE : ZERO;
2467
+ if (multiplier.eq(MIN_VALUE))
2468
+ return this.isOdd() ? MIN_VALUE : ZERO;
2469
+ if (this.isNegative()) {
2470
+ if (multiplier.isNegative())
2471
+ return this.neg().mul(multiplier.neg());
2472
+ else
2473
+ return this.neg().mul(multiplier).neg();
2474
+ } else if (multiplier.isNegative())
2475
+ return this.mul(multiplier.neg()).neg();
2476
+ if (this.lt(TWO_PWR_24) && multiplier.lt(TWO_PWR_24))
2477
+ return fromNumber(this.toNumber() * multiplier.toNumber(), this.unsigned);
2478
+ var a48 = this.high >>> 16;
2479
+ var a32 = this.high & 65535;
2480
+ var a16 = this.low >>> 16;
2481
+ var a00 = this.low & 65535;
2482
+ var b48 = multiplier.high >>> 16;
2483
+ var b32 = multiplier.high & 65535;
2484
+ var b16 = multiplier.low >>> 16;
2485
+ var b00 = multiplier.low & 65535;
2486
+ var c48 = 0, c32 = 0, c16 = 0, c00 = 0;
2487
+ c00 += a00 * b00;
2488
+ c16 += c00 >>> 16;
2489
+ c00 &= 65535;
2490
+ c16 += a16 * b00;
2491
+ c32 += c16 >>> 16;
2492
+ c16 &= 65535;
2493
+ c16 += a00 * b16;
2494
+ c32 += c16 >>> 16;
2495
+ c16 &= 65535;
2496
+ c32 += a32 * b00;
2497
+ c48 += c32 >>> 16;
2498
+ c32 &= 65535;
2499
+ c32 += a16 * b16;
2500
+ c48 += c32 >>> 16;
2501
+ c32 &= 65535;
2502
+ c32 += a00 * b32;
2503
+ c48 += c32 >>> 16;
2504
+ c32 &= 65535;
2505
+ c48 += a48 * b00 + a32 * b16 + a16 * b32 + a00 * b48;
2506
+ c48 &= 65535;
2507
+ return fromBits(c16 << 16 | c00, c48 << 16 | c32, this.unsigned);
2508
+ };
2509
+ LongPrototype.mul = LongPrototype.multiply;
2510
+ LongPrototype.divide = function divide(divisor) {
2511
+ if (!isLong(divisor))
2512
+ divisor = fromValue(divisor);
2513
+ if (divisor.isZero())
2514
+ throw Error("division by zero");
2515
+ if (wasm) {
2516
+ if (!this.unsigned && this.high === -2147483648 && divisor.low === -1 && divisor.high === -1) {
2517
+ return this;
2518
+ }
2519
+ var low = (this.unsigned ? wasm["div_u"] : wasm["div_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
+ if (this.isZero())
2528
+ return this.unsigned ? UZERO : ZERO;
2529
+ var approx, rem, res;
2530
+ if (!this.unsigned) {
2531
+ if (this.eq(MIN_VALUE)) {
2532
+ if (divisor.eq(ONE) || divisor.eq(NEG_ONE))
2533
+ return MIN_VALUE;
2534
+ else if (divisor.eq(MIN_VALUE))
2535
+ return ONE;
2536
+ else {
2537
+ var halfThis = this.shr(1);
2538
+ approx = halfThis.div(divisor).shl(1);
2539
+ if (approx.eq(ZERO)) {
2540
+ return divisor.isNegative() ? ONE : NEG_ONE;
2541
+ } else {
2542
+ rem = this.sub(divisor.mul(approx));
2543
+ res = approx.add(rem.div(divisor));
2544
+ return res;
2545
+ }
2546
+ }
2547
+ } else if (divisor.eq(MIN_VALUE))
2548
+ return this.unsigned ? UZERO : ZERO;
2549
+ if (this.isNegative()) {
2550
+ if (divisor.isNegative())
2551
+ return this.neg().div(divisor.neg());
2552
+ return this.neg().div(divisor).neg();
2553
+ } else if (divisor.isNegative())
2554
+ return this.div(divisor.neg()).neg();
2555
+ res = ZERO;
2556
+ } else {
2557
+ if (!divisor.unsigned)
2558
+ divisor = divisor.toUnsigned();
2559
+ if (divisor.gt(this))
2560
+ return UZERO;
2561
+ if (divisor.gt(this.shru(1)))
2562
+ return UONE;
2563
+ res = UZERO;
2564
+ }
2565
+ rem = this;
2566
+ while (rem.gte(divisor)) {
2567
+ approx = Math.max(1, Math.floor(rem.toNumber() / divisor.toNumber()));
2568
+ 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);
2569
+ while (approxRem.isNegative() || approxRem.gt(rem)) {
2570
+ approx -= delta;
2571
+ approxRes = fromNumber(approx, this.unsigned);
2572
+ approxRem = approxRes.mul(divisor);
2573
+ }
2574
+ if (approxRes.isZero())
2575
+ approxRes = ONE;
2576
+ res = res.add(approxRes);
2577
+ rem = rem.sub(approxRem);
2578
+ }
2579
+ return res;
2580
+ };
2581
+ LongPrototype.div = LongPrototype.divide;
2582
+ LongPrototype.modulo = function modulo(divisor) {
2583
+ if (!isLong(divisor))
2584
+ divisor = fromValue(divisor);
2585
+ if (wasm) {
2586
+ var low = (this.unsigned ? wasm["rem_u"] : wasm["rem_s"])(
2587
+ this.low,
2588
+ this.high,
2589
+ divisor.low,
2590
+ divisor.high
2591
+ );
2592
+ return fromBits(low, wasm["get_high"](), this.unsigned);
2593
+ }
2594
+ return this.sub(this.div(divisor).mul(divisor));
2595
+ };
2596
+ LongPrototype.mod = LongPrototype.modulo;
2597
+ LongPrototype.rem = LongPrototype.modulo;
2598
+ LongPrototype.not = function not() {
2599
+ return fromBits(~this.low, ~this.high, this.unsigned);
2600
+ };
2601
+ LongPrototype.countLeadingZeros = function countLeadingZeros() {
2602
+ return this.high ? Math.clz32(this.high) : Math.clz32(this.low) + 32;
2603
+ };
2604
+ LongPrototype.clz = LongPrototype.countLeadingZeros;
2605
+ LongPrototype.countTrailingZeros = function countTrailingZeros() {
2606
+ return this.low ? ctz32(this.low) : ctz32(this.high) + 32;
2607
+ };
2608
+ LongPrototype.ctz = LongPrototype.countTrailingZeros;
2609
+ LongPrototype.and = function and(other) {
2610
+ if (!isLong(other))
2611
+ other = fromValue(other);
2612
+ return fromBits(this.low & other.low, this.high & other.high, this.unsigned);
2613
+ };
2614
+ LongPrototype.or = function or(other) {
2615
+ if (!isLong(other))
2616
+ other = fromValue(other);
2617
+ return fromBits(this.low | other.low, this.high | other.high, this.unsigned);
2618
+ };
2619
+ LongPrototype.xor = function xor(other) {
2620
+ if (!isLong(other))
2621
+ other = fromValue(other);
2622
+ return fromBits(this.low ^ other.low, this.high ^ other.high, this.unsigned);
2623
+ };
2624
+ LongPrototype.shiftLeft = function shiftLeft(numBits) {
2625
+ if (isLong(numBits))
2626
+ numBits = numBits.toInt();
2627
+ if ((numBits &= 63) === 0)
2628
+ return this;
2629
+ else if (numBits < 32)
2630
+ return fromBits(this.low << numBits, this.high << numBits | this.low >>> 32 - numBits, this.unsigned);
2631
+ else
2632
+ return fromBits(0, this.low << numBits - 32, this.unsigned);
2633
+ };
2634
+ LongPrototype.shl = LongPrototype.shiftLeft;
2635
+ LongPrototype.shiftRight = function shiftRight(numBits) {
2636
+ if (isLong(numBits))
2637
+ numBits = numBits.toInt();
2638
+ if ((numBits &= 63) === 0)
2639
+ return this;
2640
+ else if (numBits < 32)
2641
+ return fromBits(this.low >>> numBits | this.high << 32 - numBits, this.high >> numBits, this.unsigned);
2642
+ else
2643
+ return fromBits(this.high >> numBits - 32, this.high >= 0 ? 0 : -1, this.unsigned);
2644
+ };
2645
+ LongPrototype.shr = LongPrototype.shiftRight;
2646
+ LongPrototype.shiftRightUnsigned = function shiftRightUnsigned(numBits) {
2647
+ if (isLong(numBits))
2648
+ numBits = numBits.toInt();
2649
+ if ((numBits &= 63) === 0)
2650
+ return this;
2651
+ if (numBits < 32)
2652
+ return fromBits(this.low >>> numBits | this.high << 32 - numBits, this.high >>> numBits, this.unsigned);
2653
+ if (numBits === 32)
2654
+ return fromBits(this.high, 0, this.unsigned);
2655
+ return fromBits(this.high >>> numBits - 32, 0, this.unsigned);
2656
+ };
2657
+ LongPrototype.shru = LongPrototype.shiftRightUnsigned;
2658
+ LongPrototype.shr_u = LongPrototype.shiftRightUnsigned;
2659
+ LongPrototype.rotateLeft = function rotateLeft(numBits) {
2660
+ var b;
2661
+ if (isLong(numBits))
2662
+ numBits = numBits.toInt();
2663
+ if ((numBits &= 63) === 0)
2664
+ return this;
2665
+ if (numBits === 32)
2666
+ return fromBits(this.high, this.low, this.unsigned);
2667
+ if (numBits < 32) {
2668
+ b = 32 - numBits;
2669
+ return fromBits(this.low << numBits | this.high >>> b, this.high << numBits | this.low >>> b, this.unsigned);
2670
+ }
2671
+ numBits -= 32;
2672
+ b = 32 - numBits;
2673
+ return fromBits(this.high << numBits | this.low >>> b, this.low << numBits | this.high >>> b, this.unsigned);
2674
+ };
2675
+ LongPrototype.rotl = LongPrototype.rotateLeft;
2676
+ LongPrototype.rotateRight = function rotateRight(numBits) {
2677
+ var b;
2678
+ if (isLong(numBits))
2679
+ numBits = numBits.toInt();
2680
+ if ((numBits &= 63) === 0)
2681
+ return this;
2682
+ if (numBits === 32)
2683
+ return fromBits(this.high, this.low, this.unsigned);
2684
+ if (numBits < 32) {
2685
+ b = 32 - numBits;
2686
+ return fromBits(this.high << b | this.low >>> numBits, this.low << b | this.high >>> numBits, this.unsigned);
2687
+ }
2688
+ numBits -= 32;
2689
+ b = 32 - numBits;
2690
+ return fromBits(this.low << b | this.high >>> numBits, this.high << b | this.low >>> numBits, this.unsigned);
2691
+ };
2692
+ LongPrototype.rotr = LongPrototype.rotateRight;
2693
+ LongPrototype.toSigned = function toSigned() {
2694
+ if (!this.unsigned)
2695
+ return this;
2696
+ return fromBits(this.low, this.high, false);
2697
+ };
2698
+ LongPrototype.toUnsigned = function toUnsigned() {
2699
+ if (this.unsigned)
2700
+ return this;
2701
+ return fromBits(this.low, this.high, true);
2702
+ };
2703
+ LongPrototype.toBytes = function toBytes(le) {
2704
+ return le ? this.toBytesLE() : this.toBytesBE();
2705
+ };
2706
+ LongPrototype.toBytesLE = function toBytesLE() {
2707
+ var hi = this.high, lo = this.low;
2708
+ return [
2709
+ lo & 255,
2710
+ lo >>> 8 & 255,
2711
+ lo >>> 16 & 255,
2712
+ lo >>> 24,
2713
+ hi & 255,
2714
+ hi >>> 8 & 255,
2715
+ hi >>> 16 & 255,
2716
+ hi >>> 24
2717
+ ];
2718
+ };
2719
+ LongPrototype.toBytesBE = function toBytesBE() {
2720
+ var hi = this.high, lo = this.low;
2721
+ return [
2722
+ hi >>> 24,
2723
+ hi >>> 16 & 255,
2724
+ hi >>> 8 & 255,
2725
+ hi & 255,
2726
+ lo >>> 24,
2727
+ lo >>> 16 & 255,
2728
+ lo >>> 8 & 255,
2729
+ lo & 255
2730
+ ];
2731
+ };
2732
+ Long.fromBytes = function fromBytes(bytes, unsigned, le) {
2733
+ return le ? Long.fromBytesLE(bytes, unsigned) : Long.fromBytesBE(bytes, unsigned);
2734
+ };
2735
+ Long.fromBytesLE = function fromBytesLE(bytes, unsigned) {
2736
+ return new Long(
2737
+ bytes[0] | bytes[1] << 8 | bytes[2] << 16 | bytes[3] << 24,
2738
+ bytes[4] | bytes[5] << 8 | bytes[6] << 16 | bytes[7] << 24,
2739
+ unsigned
2740
+ );
2741
+ };
2742
+ Long.fromBytesBE = function fromBytesBE(bytes, unsigned) {
2743
+ return new Long(
2744
+ bytes[4] << 24 | bytes[5] << 16 | bytes[6] << 8 | bytes[7],
2745
+ bytes[0] << 24 | bytes[1] << 16 | bytes[2] << 8 | bytes[3],
2746
+ unsigned
2747
+ );
2748
+ };
2749
+ var long_default = Long;
2750
+
2751
+ // src/generated/hub_event.ts
2714
2752
  var import_minimal4 = __toESM(require_minimal2());
2715
2753
 
2716
2754
  // src/generated/message.ts
2717
2755
  init_cjs_shims();
2718
- var import_long2 = __toESM(require_long());
2719
2756
  var import_minimal2 = __toESM(require_minimal2());
2720
2757
 
2721
2758
  // src/generated/username_proof.ts
2722
2759
  init_cjs_shims();
2723
- var import_long = __toESM(require_long());
2724
2760
  var import_minimal = __toESM(require_minimal2());
2725
2761
  function userNameTypeFromJSON(object) {
2726
2762
  switch (object) {
@@ -2911,8 +2947,8 @@ function longToNumber(long) {
2911
2947
  }
2912
2948
  return long.toNumber();
2913
2949
  }
2914
- if (import_minimal.default.util.Long !== import_long.default) {
2915
- import_minimal.default.util.Long = import_long.default;
2950
+ if (import_minimal.default.util.Long !== long_default) {
2951
+ import_minimal.default.util.Long = long_default;
2916
2952
  import_minimal.default.configure();
2917
2953
  }
2918
2954
  function isSet(value) {
@@ -4546,8 +4582,8 @@ function longToNumber2(long) {
4546
4582
  }
4547
4583
  return long.toNumber();
4548
4584
  }
4549
- if (import_minimal2.default.util.Long !== import_long2.default) {
4550
- import_minimal2.default.util.Long = import_long2.default;
4585
+ if (import_minimal2.default.util.Long !== long_default) {
4586
+ import_minimal2.default.util.Long = long_default;
4551
4587
  import_minimal2.default.configure();
4552
4588
  }
4553
4589
  function isSet2(value) {
@@ -4556,7 +4592,6 @@ function isSet2(value) {
4556
4592
 
4557
4593
  // src/generated/onchain_event.ts
4558
4594
  init_cjs_shims();
4559
- var import_long3 = __toESM(require_long());
4560
4595
  var import_minimal3 = __toESM(require_minimal2());
4561
4596
  function onChainEventTypeFromJSON(object) {
4562
4597
  switch (object) {
@@ -5239,8 +5274,8 @@ function longToNumber3(long) {
5239
5274
  }
5240
5275
  return long.toNumber();
5241
5276
  }
5242
- if (import_minimal3.default.util.Long !== import_long3.default) {
5243
- import_minimal3.default.util.Long = import_long3.default;
5277
+ if (import_minimal3.default.util.Long !== long_default) {
5278
+ import_minimal3.default.util.Long = long_default;
5244
5279
  import_minimal3.default.configure();
5245
5280
  }
5246
5281
  function isSet3(value) {
@@ -5744,8 +5779,8 @@ function longToNumber4(long) {
5744
5779
  }
5745
5780
  return long.toNumber();
5746
5781
  }
5747
- if (import_minimal4.default.util.Long !== import_long4.default) {
5748
- import_minimal4.default.util.Long = import_long4.default;
5782
+ if (import_minimal4.default.util.Long !== long_default) {
5783
+ import_minimal4.default.util.Long = long_default;
5749
5784
  import_minimal4.default.configure();
5750
5785
  }
5751
5786
  function isSet4(value) {
@@ -5754,12 +5789,10 @@ function isSet4(value) {
5754
5789
 
5755
5790
  // src/generated/request_response.ts
5756
5791
  init_cjs_shims();
5757
- var import_long6 = __toESM(require_long());
5758
5792
  var import_minimal6 = __toESM(require_minimal2());
5759
5793
 
5760
5794
  // src/generated/gossip.ts
5761
5795
  init_cjs_shims();
5762
- var import_long5 = __toESM(require_long());
5763
5796
  var import_minimal5 = __toESM(require_minimal2());
5764
5797
  function createBaseGossipAddressInfo() {
5765
5798
  return { address: "", family: 0, port: 0, dnsName: "" };
@@ -6017,8 +6050,8 @@ function longToNumber5(long) {
6017
6050
  }
6018
6051
  return long.toNumber();
6019
6052
  }
6020
- if (import_minimal5.default.util.Long !== import_long5.default) {
6021
- import_minimal5.default.util.Long = import_long5.default;
6053
+ if (import_minimal5.default.util.Long !== long_default) {
6054
+ import_minimal5.default.util.Long = long_default;
6022
6055
  import_minimal5.default.configure();
6023
6056
  }
6024
6057
  function isSet5(value) {
@@ -6073,6 +6106,28 @@ function storeTypeToJSON(object) {
6073
6106
  throw new tsProtoGlobalThis6.Error("Unrecognized enum value " + object + " for enum StoreType");
6074
6107
  }
6075
6108
  }
6109
+ function storageUnitTypeFromJSON(object) {
6110
+ switch (object) {
6111
+ case 0:
6112
+ case "UNIT_TYPE_LEGACY":
6113
+ return 0 /* UNIT_TYPE_LEGACY */;
6114
+ case 1:
6115
+ case "UNIT_TYPE_2024":
6116
+ return 1 /* UNIT_TYPE_2024 */;
6117
+ default:
6118
+ throw new tsProtoGlobalThis6.Error("Unrecognized enum value " + object + " for enum StorageUnitType");
6119
+ }
6120
+ }
6121
+ function storageUnitTypeToJSON(object) {
6122
+ switch (object) {
6123
+ case 0 /* UNIT_TYPE_LEGACY */:
6124
+ return "UNIT_TYPE_LEGACY";
6125
+ case 1 /* UNIT_TYPE_2024 */:
6126
+ return "UNIT_TYPE_2024";
6127
+ default:
6128
+ throw new tsProtoGlobalThis6.Error("Unrecognized enum value " + object + " for enum StorageUnitType");
6129
+ }
6130
+ }
6076
6131
  function createBaseEmpty() {
6077
6132
  return {};
6078
6133
  }
@@ -8039,7 +8094,7 @@ var OnChainEventResponse = {
8039
8094
  }
8040
8095
  };
8041
8096
  function createBaseStorageLimitsResponse() {
8042
- return { limits: [], units: 0 };
8097
+ return { limits: [], units: 0, unitDetails: [] };
8043
8098
  }
8044
8099
  var StorageLimitsResponse = {
8045
8100
  encode(message, writer = import_minimal6.default.Writer.create()) {
@@ -8049,6 +8104,9 @@ var StorageLimitsResponse = {
8049
8104
  if (message.units !== 0) {
8050
8105
  writer.uint32(16).uint32(message.units);
8051
8106
  }
8107
+ for (const v of message.unitDetails) {
8108
+ StorageUnitDetails.encode(v, writer.uint32(26).fork()).ldelim();
8109
+ }
8052
8110
  return writer;
8053
8111
  },
8054
8112
  decode(input, length) {
@@ -8070,6 +8128,12 @@ var StorageLimitsResponse = {
8070
8128
  }
8071
8129
  message.units = reader.uint32();
8072
8130
  continue;
8131
+ case 3:
8132
+ if (tag != 26) {
8133
+ break;
8134
+ }
8135
+ message.unitDetails.push(StorageUnitDetails.decode(reader, reader.uint32()));
8136
+ continue;
8073
8137
  }
8074
8138
  if ((tag & 7) == 4 || tag == 0) {
8075
8139
  break;
@@ -8081,7 +8145,8 @@ var StorageLimitsResponse = {
8081
8145
  fromJSON(object) {
8082
8146
  return {
8083
8147
  limits: Array.isArray(object == null ? void 0 : object.limits) ? object.limits.map((e) => StorageLimit.fromJSON(e)) : [],
8084
- units: isSet6(object.units) ? Number(object.units) : 0
8148
+ units: isSet6(object.units) ? Number(object.units) : 0,
8149
+ unitDetails: Array.isArray(object == null ? void 0 : object.unitDetails) ? object.unitDetails.map((e) => StorageUnitDetails.fromJSON(e)) : []
8085
8150
  };
8086
8151
  },
8087
8152
  toJSON(message) {
@@ -8092,16 +8157,85 @@ var StorageLimitsResponse = {
8092
8157
  obj.limits = [];
8093
8158
  }
8094
8159
  message.units !== void 0 && (obj.units = Math.round(message.units));
8160
+ if (message.unitDetails) {
8161
+ obj.unitDetails = message.unitDetails.map((e) => e ? StorageUnitDetails.toJSON(e) : void 0);
8162
+ } else {
8163
+ obj.unitDetails = [];
8164
+ }
8095
8165
  return obj;
8096
8166
  },
8097
8167
  create(base) {
8098
8168
  return StorageLimitsResponse.fromPartial(base != null ? base : {});
8099
8169
  },
8100
8170
  fromPartial(object) {
8101
- var _a, _b;
8171
+ var _a, _b, _c;
8102
8172
  const message = createBaseStorageLimitsResponse();
8103
8173
  message.limits = ((_a = object.limits) == null ? void 0 : _a.map((e) => StorageLimit.fromPartial(e))) || [];
8104
8174
  message.units = (_b = object.units) != null ? _b : 0;
8175
+ message.unitDetails = ((_c = object.unitDetails) == null ? void 0 : _c.map((e) => StorageUnitDetails.fromPartial(e))) || [];
8176
+ return message;
8177
+ }
8178
+ };
8179
+ function createBaseStorageUnitDetails() {
8180
+ return { unitType: 0, unitSize: 0 };
8181
+ }
8182
+ var StorageUnitDetails = {
8183
+ encode(message, writer = import_minimal6.default.Writer.create()) {
8184
+ if (message.unitType !== 0) {
8185
+ writer.uint32(8).int32(message.unitType);
8186
+ }
8187
+ if (message.unitSize !== 0) {
8188
+ writer.uint32(16).uint32(message.unitSize);
8189
+ }
8190
+ return writer;
8191
+ },
8192
+ decode(input, length) {
8193
+ const reader = input instanceof import_minimal6.default.Reader ? input : import_minimal6.default.Reader.create(input);
8194
+ let end = length === void 0 ? reader.len : reader.pos + length;
8195
+ const message = createBaseStorageUnitDetails();
8196
+ while (reader.pos < end) {
8197
+ const tag = reader.uint32();
8198
+ switch (tag >>> 3) {
8199
+ case 1:
8200
+ if (tag != 8) {
8201
+ break;
8202
+ }
8203
+ message.unitType = reader.int32();
8204
+ continue;
8205
+ case 2:
8206
+ if (tag != 16) {
8207
+ break;
8208
+ }
8209
+ message.unitSize = reader.uint32();
8210
+ continue;
8211
+ }
8212
+ if ((tag & 7) == 4 || tag == 0) {
8213
+ break;
8214
+ }
8215
+ reader.skipType(tag & 7);
8216
+ }
8217
+ return message;
8218
+ },
8219
+ fromJSON(object) {
8220
+ return {
8221
+ unitType: isSet6(object.unitType) ? storageUnitTypeFromJSON(object.unitType) : 0,
8222
+ unitSize: isSet6(object.unitSize) ? Number(object.unitSize) : 0
8223
+ };
8224
+ },
8225
+ toJSON(message) {
8226
+ const obj = {};
8227
+ message.unitType !== void 0 && (obj.unitType = storageUnitTypeToJSON(message.unitType));
8228
+ message.unitSize !== void 0 && (obj.unitSize = Math.round(message.unitSize));
8229
+ return obj;
8230
+ },
8231
+ create(base) {
8232
+ return StorageUnitDetails.fromPartial(base != null ? base : {});
8233
+ },
8234
+ fromPartial(object) {
8235
+ var _a, _b;
8236
+ const message = createBaseStorageUnitDetails();
8237
+ message.unitType = (_a = object.unitType) != null ? _a : 0;
8238
+ message.unitSize = (_b = object.unitSize) != null ? _b : 0;
8105
8239
  return message;
8106
8240
  }
8107
8241
  };
@@ -8930,8 +9064,8 @@ function longToNumber6(long) {
8930
9064
  }
8931
9065
  return long.toNumber();
8932
9066
  }
8933
- if (import_minimal6.default.util.Long !== import_long6.default) {
8934
- import_minimal6.default.util.Long = import_long6.default;
9067
+ if (import_minimal6.default.util.Long !== long_default) {
9068
+ import_minimal6.default.util.Long = long_default;
8935
9069
  import_minimal6.default.configure();
8936
9070
  }
8937
9071
  function isSet6(value) {
@@ -10781,3 +10915,26 @@ var getAuthMetadata = (username, password) => {
10781
10915
  getAuthMetadata,
10782
10916
  getHubRpcClient
10783
10917
  });
10918
+ /*! Bundled license information:
10919
+
10920
+ long/index.js:
10921
+ (**
10922
+ * @license
10923
+ * Copyright 2009 The Closure Library Authors
10924
+ * Copyright 2020 Daniel Wirtz / The long.js Authors.
10925
+ *
10926
+ * Licensed under the Apache License, Version 2.0 (the "License");
10927
+ * you may not use this file except in compliance with the License.
10928
+ * You may obtain a copy of the License at
10929
+ *
10930
+ * http://www.apache.org/licenses/LICENSE-2.0
10931
+ *
10932
+ * Unless required by applicable law or agreed to in writing, software
10933
+ * distributed under the License is distributed on an "AS IS" BASIS,
10934
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10935
+ * See the License for the specific language governing permissions and
10936
+ * limitations under the License.
10937
+ *
10938
+ * SPDX-License-Identifier: Apache-2.0
10939
+ *)
10940
+ */