@sentio/runtime 2.57.12-rc.e → 2.57.12-rc.f
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/lib/{chunk-YVOMEKB4.js → chunk-IAGVEBAE.js} +1797 -5192
- package/lib/chunk-IAGVEBAE.js.map +1 -0
- package/lib/{chunk-6YBY6GSE.js → chunk-XR3EZ6FB.js} +448 -479
- package/lib/chunk-XR3EZ6FB.js.map +1 -0
- package/lib/index.d.ts +50 -136
- package/lib/index.js +2 -2
- package/lib/processor-runner.js +757 -1159
- package/lib/processor-runner.js.map +1 -1
- package/lib/service-worker.js +23 -23
- package/lib/service-worker.js.map +1 -1
- package/package.json +1 -1
- package/src/service-manager.ts +2 -2
- package/src/service-worker.ts +24 -24
- package/lib/chunk-6YBY6GSE.js.map +0 -1
- package/lib/chunk-YVOMEKB4.js.map +0 -1
@@ -535,9 +535,9 @@ var require_pool = __commonJS({
|
|
535
535
|
}
|
536
536
|
});
|
537
537
|
|
538
|
-
// ../../node_modules/.pnpm/protobufjs@7.
|
538
|
+
// ../../node_modules/.pnpm/protobufjs@7.3.2/node_modules/protobufjs/src/util/longbits.js
|
539
539
|
var require_longbits = __commonJS({
|
540
|
-
"../../node_modules/.pnpm/protobufjs@7.
|
540
|
+
"../../node_modules/.pnpm/protobufjs@7.3.2/node_modules/protobufjs/src/util/longbits.js"(exports2, module2) {
|
541
541
|
"use strict";
|
542
542
|
module2.exports = LongBits;
|
543
543
|
var util = require_minimal();
|
@@ -637,9 +637,9 @@ var require_longbits = __commonJS({
|
|
637
637
|
}
|
638
638
|
});
|
639
639
|
|
640
|
-
// ../../node_modules/.pnpm/protobufjs@7.
|
640
|
+
// ../../node_modules/.pnpm/protobufjs@7.3.2/node_modules/protobufjs/src/util/minimal.js
|
641
641
|
var require_minimal = __commonJS({
|
642
|
-
"../../node_modules/.pnpm/protobufjs@7.
|
642
|
+
"../../node_modules/.pnpm/protobufjs@7.3.2/node_modules/protobufjs/src/util/minimal.js"(exports2) {
|
643
643
|
"use strict";
|
644
644
|
var util = exports2;
|
645
645
|
util.asPromise = require_aspromise();
|
@@ -812,9 +812,9 @@ var require_minimal = __commonJS({
|
|
812
812
|
}
|
813
813
|
});
|
814
814
|
|
815
|
-
// ../../node_modules/.pnpm/protobufjs@7.
|
815
|
+
// ../../node_modules/.pnpm/protobufjs@7.3.2/node_modules/protobufjs/src/writer.js
|
816
816
|
var require_writer = __commonJS({
|
817
|
-
"../../node_modules/.pnpm/protobufjs@7.
|
817
|
+
"../../node_modules/.pnpm/protobufjs@7.3.2/node_modules/protobufjs/src/writer.js"(exports2, module2) {
|
818
818
|
"use strict";
|
819
819
|
module2.exports = Writer;
|
820
820
|
var util = require_minimal();
|
@@ -1003,9 +1003,9 @@ var require_writer = __commonJS({
|
|
1003
1003
|
}
|
1004
1004
|
});
|
1005
1005
|
|
1006
|
-
// ../../node_modules/.pnpm/protobufjs@7.
|
1006
|
+
// ../../node_modules/.pnpm/protobufjs@7.3.2/node_modules/protobufjs/src/writer_buffer.js
|
1007
1007
|
var require_writer_buffer = __commonJS({
|
1008
|
-
"../../node_modules/.pnpm/protobufjs@7.
|
1008
|
+
"../../node_modules/.pnpm/protobufjs@7.3.2/node_modules/protobufjs/src/writer_buffer.js"(exports2, module2) {
|
1009
1009
|
"use strict";
|
1010
1010
|
module2.exports = BufferWriter;
|
1011
1011
|
var Writer = require_writer();
|
@@ -1053,9 +1053,9 @@ var require_writer_buffer = __commonJS({
|
|
1053
1053
|
}
|
1054
1054
|
});
|
1055
1055
|
|
1056
|
-
// ../../node_modules/.pnpm/protobufjs@7.
|
1056
|
+
// ../../node_modules/.pnpm/protobufjs@7.3.2/node_modules/protobufjs/src/reader.js
|
1057
1057
|
var require_reader = __commonJS({
|
1058
|
-
"../../node_modules/.pnpm/protobufjs@7.
|
1058
|
+
"../../node_modules/.pnpm/protobufjs@7.3.2/node_modules/protobufjs/src/reader.js"(exports2, module2) {
|
1059
1059
|
"use strict";
|
1060
1060
|
module2.exports = Reader;
|
1061
1061
|
var util = require_minimal();
|
@@ -1277,9 +1277,9 @@ var require_reader = __commonJS({
|
|
1277
1277
|
}
|
1278
1278
|
});
|
1279
1279
|
|
1280
|
-
// ../../node_modules/.pnpm/protobufjs@7.
|
1280
|
+
// ../../node_modules/.pnpm/protobufjs@7.3.2/node_modules/protobufjs/src/reader_buffer.js
|
1281
1281
|
var require_reader_buffer = __commonJS({
|
1282
|
-
"../../node_modules/.pnpm/protobufjs@7.
|
1282
|
+
"../../node_modules/.pnpm/protobufjs@7.3.2/node_modules/protobufjs/src/reader_buffer.js"(exports2, module2) {
|
1283
1283
|
"use strict";
|
1284
1284
|
module2.exports = BufferReader;
|
1285
1285
|
var Reader = require_reader();
|
@@ -1300,9 +1300,9 @@ var require_reader_buffer = __commonJS({
|
|
1300
1300
|
}
|
1301
1301
|
});
|
1302
1302
|
|
1303
|
-
// ../../node_modules/.pnpm/protobufjs@7.
|
1303
|
+
// ../../node_modules/.pnpm/protobufjs@7.3.2/node_modules/protobufjs/src/rpc/service.js
|
1304
1304
|
var require_service = __commonJS({
|
1305
|
-
"../../node_modules/.pnpm/protobufjs@7.
|
1305
|
+
"../../node_modules/.pnpm/protobufjs@7.3.2/node_modules/protobufjs/src/rpc/service.js"(exports2, module2) {
|
1306
1306
|
"use strict";
|
1307
1307
|
module2.exports = Service;
|
1308
1308
|
var util = require_minimal();
|
@@ -1375,26 +1375,26 @@ var require_service = __commonJS({
|
|
1375
1375
|
}
|
1376
1376
|
});
|
1377
1377
|
|
1378
|
-
// ../../node_modules/.pnpm/protobufjs@7.
|
1378
|
+
// ../../node_modules/.pnpm/protobufjs@7.3.2/node_modules/protobufjs/src/rpc.js
|
1379
1379
|
var require_rpc = __commonJS({
|
1380
|
-
"../../node_modules/.pnpm/protobufjs@7.
|
1380
|
+
"../../node_modules/.pnpm/protobufjs@7.3.2/node_modules/protobufjs/src/rpc.js"(exports2) {
|
1381
1381
|
"use strict";
|
1382
1382
|
var rpc = exports2;
|
1383
1383
|
rpc.Service = require_service();
|
1384
1384
|
}
|
1385
1385
|
});
|
1386
1386
|
|
1387
|
-
// ../../node_modules/.pnpm/protobufjs@7.
|
1387
|
+
// ../../node_modules/.pnpm/protobufjs@7.3.2/node_modules/protobufjs/src/roots.js
|
1388
1388
|
var require_roots = __commonJS({
|
1389
|
-
"../../node_modules/.pnpm/protobufjs@7.
|
1389
|
+
"../../node_modules/.pnpm/protobufjs@7.3.2/node_modules/protobufjs/src/roots.js"(exports2, module2) {
|
1390
1390
|
"use strict";
|
1391
1391
|
module2.exports = {};
|
1392
1392
|
}
|
1393
1393
|
});
|
1394
1394
|
|
1395
|
-
// ../../node_modules/.pnpm/protobufjs@7.
|
1395
|
+
// ../../node_modules/.pnpm/protobufjs@7.3.2/node_modules/protobufjs/src/index-minimal.js
|
1396
1396
|
var require_index_minimal = __commonJS({
|
1397
|
-
"../../node_modules/.pnpm/protobufjs@7.
|
1397
|
+
"../../node_modules/.pnpm/protobufjs@7.3.2/node_modules/protobufjs/src/index-minimal.js"(exports2) {
|
1398
1398
|
"use strict";
|
1399
1399
|
var protobuf = exports2;
|
1400
1400
|
protobuf.build = "minimal";
|
@@ -1415,339 +1415,306 @@ var require_index_minimal = __commonJS({
|
|
1415
1415
|
}
|
1416
1416
|
});
|
1417
1417
|
|
1418
|
-
// ../../node_modules/.pnpm/protobufjs@7.
|
1418
|
+
// ../../node_modules/.pnpm/protobufjs@7.3.2/node_modules/protobufjs/minimal.js
|
1419
1419
|
var require_minimal2 = __commonJS({
|
1420
|
-
"../../node_modules/.pnpm/protobufjs@7.
|
1420
|
+
"../../node_modules/.pnpm/protobufjs@7.3.2/node_modules/protobufjs/minimal.js"(exports2, module2) {
|
1421
1421
|
"use strict";
|
1422
1422
|
module2.exports = require_index_minimal();
|
1423
1423
|
}
|
1424
1424
|
});
|
1425
1425
|
|
1426
|
-
// ../../node_modules/.pnpm/long@5.3
|
1426
|
+
// ../../node_modules/.pnpm/long@5.2.3/node_modules/long/index.js
|
1427
1427
|
var wasm = null;
|
1428
1428
|
try {
|
1429
|
-
wasm = new WebAssembly.Instance(
|
1430
|
-
|
1431
|
-
|
1432
|
-
|
1433
|
-
|
1434
|
-
|
1435
|
-
|
1436
|
-
|
1437
|
-
|
1438
|
-
|
1439
|
-
|
1440
|
-
|
1441
|
-
|
1442
|
-
|
1443
|
-
|
1444
|
-
|
1445
|
-
|
1446
|
-
|
1447
|
-
|
1448
|
-
|
1449
|
-
|
1450
|
-
|
1451
|
-
|
1452
|
-
|
1453
|
-
|
1454
|
-
|
1455
|
-
|
1456
|
-
|
1457
|
-
|
1458
|
-
|
1459
|
-
|
1460
|
-
|
1461
|
-
|
1462
|
-
|
1463
|
-
|
1464
|
-
|
1465
|
-
|
1466
|
-
|
1467
|
-
|
1468
|
-
|
1469
|
-
|
1470
|
-
|
1471
|
-
|
1472
|
-
|
1473
|
-
|
1474
|
-
|
1475
|
-
|
1476
|
-
|
1477
|
-
|
1478
|
-
|
1479
|
-
|
1480
|
-
|
1481
|
-
|
1482
|
-
|
1483
|
-
|
1484
|
-
|
1485
|
-
|
1486
|
-
|
1487
|
-
|
1488
|
-
|
1489
|
-
|
1490
|
-
|
1491
|
-
|
1492
|
-
|
1493
|
-
|
1494
|
-
|
1495
|
-
|
1496
|
-
|
1497
|
-
|
1498
|
-
|
1499
|
-
|
1500
|
-
|
1501
|
-
|
1502
|
-
|
1503
|
-
|
1504
|
-
|
1505
|
-
|
1506
|
-
|
1507
|
-
|
1508
|
-
|
1509
|
-
|
1510
|
-
|
1511
|
-
|
1512
|
-
|
1513
|
-
|
1514
|
-
|
1515
|
-
|
1516
|
-
|
1517
|
-
|
1518
|
-
|
1519
|
-
|
1520
|
-
|
1521
|
-
|
1522
|
-
|
1523
|
-
|
1524
|
-
|
1525
|
-
|
1526
|
-
|
1527
|
-
|
1528
|
-
|
1529
|
-
|
1530
|
-
|
1531
|
-
|
1532
|
-
|
1533
|
-
|
1534
|
-
|
1535
|
-
|
1536
|
-
|
1537
|
-
|
1538
|
-
|
1539
|
-
|
1540
|
-
|
1541
|
-
|
1542
|
-
|
1543
|
-
|
1544
|
-
|
1545
|
-
|
1546
|
-
|
1547
|
-
|
1548
|
-
|
1549
|
-
|
1550
|
-
|
1551
|
-
|
1552
|
-
|
1553
|
-
|
1554
|
-
|
1555
|
-
|
1556
|
-
|
1557
|
-
|
1558
|
-
|
1559
|
-
|
1560
|
-
|
1561
|
-
|
1562
|
-
|
1563
|
-
|
1564
|
-
|
1565
|
-
|
1566
|
-
|
1567
|
-
|
1568
|
-
|
1569
|
-
|
1570
|
-
|
1571
|
-
|
1572
|
-
|
1573
|
-
|
1574
|
-
|
1575
|
-
|
1576
|
-
|
1577
|
-
|
1578
|
-
|
1579
|
-
|
1580
|
-
|
1581
|
-
|
1582
|
-
|
1583
|
-
|
1584
|
-
|
1585
|
-
|
1586
|
-
|
1587
|
-
|
1588
|
-
|
1589
|
-
|
1590
|
-
|
1591
|
-
|
1592
|
-
|
1593
|
-
|
1594
|
-
|
1595
|
-
|
1596
|
-
|
1597
|
-
|
1598
|
-
|
1599
|
-
|
1600
|
-
|
1601
|
-
|
1602
|
-
|
1603
|
-
|
1604
|
-
|
1605
|
-
|
1606
|
-
|
1607
|
-
|
1608
|
-
|
1609
|
-
|
1610
|
-
|
1611
|
-
|
1612
|
-
|
1613
|
-
|
1614
|
-
|
1615
|
-
|
1616
|
-
|
1617
|
-
|
1618
|
-
|
1619
|
-
|
1620
|
-
|
1621
|
-
|
1622
|
-
|
1623
|
-
|
1624
|
-
|
1625
|
-
|
1626
|
-
|
1627
|
-
|
1628
|
-
|
1629
|
-
|
1630
|
-
|
1631
|
-
|
1632
|
-
|
1633
|
-
|
1634
|
-
|
1635
|
-
|
1636
|
-
|
1637
|
-
|
1638
|
-
|
1639
|
-
|
1640
|
-
|
1641
|
-
|
1642
|
-
|
1643
|
-
|
1644
|
-
|
1645
|
-
|
1646
|
-
|
1647
|
-
|
1648
|
-
|
1649
|
-
|
1650
|
-
|
1651
|
-
|
1652
|
-
|
1653
|
-
|
1654
|
-
|
1655
|
-
|
1656
|
-
|
1657
|
-
|
1658
|
-
|
1659
|
-
|
1660
|
-
|
1661
|
-
|
1662
|
-
|
1663
|
-
|
1664
|
-
|
1665
|
-
|
1666
|
-
|
1667
|
-
|
1668
|
-
|
1669
|
-
|
1670
|
-
|
1671
|
-
|
1672
|
-
|
1673
|
-
|
1674
|
-
|
1675
|
-
|
1676
|
-
|
1677
|
-
|
1678
|
-
|
1679
|
-
|
1680
|
-
|
1681
|
-
|
1682
|
-
|
1683
|
-
|
1684
|
-
|
1685
|
-
|
1686
|
-
|
1687
|
-
|
1688
|
-
|
1689
|
-
|
1690
|
-
|
1691
|
-
|
1692
|
-
|
1693
|
-
|
1694
|
-
|
1695
|
-
|
1696
|
-
|
1697
|
-
|
1698
|
-
|
1699
|
-
|
1700
|
-
|
1701
|
-
|
1702
|
-
|
1703
|
-
|
1704
|
-
|
1705
|
-
|
1706
|
-
|
1707
|
-
|
1708
|
-
|
1709
|
-
|
1710
|
-
|
1711
|
-
|
1712
|
-
|
1713
|
-
|
1714
|
-
|
1715
|
-
|
1716
|
-
|
1717
|
-
|
1718
|
-
173,
|
1719
|
-
66,
|
1720
|
-
32,
|
1721
|
-
134,
|
1722
|
-
132,
|
1723
|
-
32,
|
1724
|
-
2,
|
1725
|
-
173,
|
1726
|
-
32,
|
1727
|
-
3,
|
1728
|
-
173,
|
1729
|
-
66,
|
1730
|
-
32,
|
1731
|
-
134,
|
1732
|
-
132,
|
1733
|
-
130,
|
1734
|
-
34,
|
1735
|
-
4,
|
1736
|
-
66,
|
1737
|
-
32,
|
1738
|
-
135,
|
1739
|
-
167,
|
1740
|
-
36,
|
1741
|
-
0,
|
1742
|
-
32,
|
1743
|
-
4,
|
1744
|
-
167,
|
1745
|
-
11
|
1746
|
-
])
|
1747
|
-
),
|
1748
|
-
{}
|
1749
|
-
).exports;
|
1750
|
-
} catch {
|
1429
|
+
wasm = new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([
|
1430
|
+
0,
|
1431
|
+
97,
|
1432
|
+
115,
|
1433
|
+
109,
|
1434
|
+
1,
|
1435
|
+
0,
|
1436
|
+
0,
|
1437
|
+
0,
|
1438
|
+
1,
|
1439
|
+
13,
|
1440
|
+
2,
|
1441
|
+
96,
|
1442
|
+
0,
|
1443
|
+
1,
|
1444
|
+
127,
|
1445
|
+
96,
|
1446
|
+
4,
|
1447
|
+
127,
|
1448
|
+
127,
|
1449
|
+
127,
|
1450
|
+
127,
|
1451
|
+
1,
|
1452
|
+
127,
|
1453
|
+
3,
|
1454
|
+
7,
|
1455
|
+
6,
|
1456
|
+
0,
|
1457
|
+
1,
|
1458
|
+
1,
|
1459
|
+
1,
|
1460
|
+
1,
|
1461
|
+
1,
|
1462
|
+
6,
|
1463
|
+
6,
|
1464
|
+
1,
|
1465
|
+
127,
|
1466
|
+
1,
|
1467
|
+
65,
|
1468
|
+
0,
|
1469
|
+
11,
|
1470
|
+
7,
|
1471
|
+
50,
|
1472
|
+
6,
|
1473
|
+
3,
|
1474
|
+
109,
|
1475
|
+
117,
|
1476
|
+
108,
|
1477
|
+
0,
|
1478
|
+
1,
|
1479
|
+
5,
|
1480
|
+
100,
|
1481
|
+
105,
|
1482
|
+
118,
|
1483
|
+
95,
|
1484
|
+
115,
|
1485
|
+
0,
|
1486
|
+
2,
|
1487
|
+
5,
|
1488
|
+
100,
|
1489
|
+
105,
|
1490
|
+
118,
|
1491
|
+
95,
|
1492
|
+
117,
|
1493
|
+
0,
|
1494
|
+
3,
|
1495
|
+
5,
|
1496
|
+
114,
|
1497
|
+
101,
|
1498
|
+
109,
|
1499
|
+
95,
|
1500
|
+
115,
|
1501
|
+
0,
|
1502
|
+
4,
|
1503
|
+
5,
|
1504
|
+
114,
|
1505
|
+
101,
|
1506
|
+
109,
|
1507
|
+
95,
|
1508
|
+
117,
|
1509
|
+
0,
|
1510
|
+
5,
|
1511
|
+
8,
|
1512
|
+
103,
|
1513
|
+
101,
|
1514
|
+
116,
|
1515
|
+
95,
|
1516
|
+
104,
|
1517
|
+
105,
|
1518
|
+
103,
|
1519
|
+
104,
|
1520
|
+
0,
|
1521
|
+
0,
|
1522
|
+
10,
|
1523
|
+
191,
|
1524
|
+
1,
|
1525
|
+
6,
|
1526
|
+
4,
|
1527
|
+
0,
|
1528
|
+
35,
|
1529
|
+
0,
|
1530
|
+
11,
|
1531
|
+
36,
|
1532
|
+
1,
|
1533
|
+
1,
|
1534
|
+
126,
|
1535
|
+
32,
|
1536
|
+
0,
|
1537
|
+
173,
|
1538
|
+
32,
|
1539
|
+
1,
|
1540
|
+
173,
|
1541
|
+
66,
|
1542
|
+
32,
|
1543
|
+
134,
|
1544
|
+
132,
|
1545
|
+
32,
|
1546
|
+
2,
|
1547
|
+
173,
|
1548
|
+
32,
|
1549
|
+
3,
|
1550
|
+
173,
|
1551
|
+
66,
|
1552
|
+
32,
|
1553
|
+
134,
|
1554
|
+
132,
|
1555
|
+
126,
|
1556
|
+
34,
|
1557
|
+
4,
|
1558
|
+
66,
|
1559
|
+
32,
|
1560
|
+
135,
|
1561
|
+
167,
|
1562
|
+
36,
|
1563
|
+
0,
|
1564
|
+
32,
|
1565
|
+
4,
|
1566
|
+
167,
|
1567
|
+
11,
|
1568
|
+
36,
|
1569
|
+
1,
|
1570
|
+
1,
|
1571
|
+
126,
|
1572
|
+
32,
|
1573
|
+
0,
|
1574
|
+
173,
|
1575
|
+
32,
|
1576
|
+
1,
|
1577
|
+
173,
|
1578
|
+
66,
|
1579
|
+
32,
|
1580
|
+
134,
|
1581
|
+
132,
|
1582
|
+
32,
|
1583
|
+
2,
|
1584
|
+
173,
|
1585
|
+
32,
|
1586
|
+
3,
|
1587
|
+
173,
|
1588
|
+
66,
|
1589
|
+
32,
|
1590
|
+
134,
|
1591
|
+
132,
|
1592
|
+
127,
|
1593
|
+
34,
|
1594
|
+
4,
|
1595
|
+
66,
|
1596
|
+
32,
|
1597
|
+
135,
|
1598
|
+
167,
|
1599
|
+
36,
|
1600
|
+
0,
|
1601
|
+
32,
|
1602
|
+
4,
|
1603
|
+
167,
|
1604
|
+
11,
|
1605
|
+
36,
|
1606
|
+
1,
|
1607
|
+
1,
|
1608
|
+
126,
|
1609
|
+
32,
|
1610
|
+
0,
|
1611
|
+
173,
|
1612
|
+
32,
|
1613
|
+
1,
|
1614
|
+
173,
|
1615
|
+
66,
|
1616
|
+
32,
|
1617
|
+
134,
|
1618
|
+
132,
|
1619
|
+
32,
|
1620
|
+
2,
|
1621
|
+
173,
|
1622
|
+
32,
|
1623
|
+
3,
|
1624
|
+
173,
|
1625
|
+
66,
|
1626
|
+
32,
|
1627
|
+
134,
|
1628
|
+
132,
|
1629
|
+
128,
|
1630
|
+
34,
|
1631
|
+
4,
|
1632
|
+
66,
|
1633
|
+
32,
|
1634
|
+
135,
|
1635
|
+
167,
|
1636
|
+
36,
|
1637
|
+
0,
|
1638
|
+
32,
|
1639
|
+
4,
|
1640
|
+
167,
|
1641
|
+
11,
|
1642
|
+
36,
|
1643
|
+
1,
|
1644
|
+
1,
|
1645
|
+
126,
|
1646
|
+
32,
|
1647
|
+
0,
|
1648
|
+
173,
|
1649
|
+
32,
|
1650
|
+
1,
|
1651
|
+
173,
|
1652
|
+
66,
|
1653
|
+
32,
|
1654
|
+
134,
|
1655
|
+
132,
|
1656
|
+
32,
|
1657
|
+
2,
|
1658
|
+
173,
|
1659
|
+
32,
|
1660
|
+
3,
|
1661
|
+
173,
|
1662
|
+
66,
|
1663
|
+
32,
|
1664
|
+
134,
|
1665
|
+
132,
|
1666
|
+
129,
|
1667
|
+
34,
|
1668
|
+
4,
|
1669
|
+
66,
|
1670
|
+
32,
|
1671
|
+
135,
|
1672
|
+
167,
|
1673
|
+
36,
|
1674
|
+
0,
|
1675
|
+
32,
|
1676
|
+
4,
|
1677
|
+
167,
|
1678
|
+
11,
|
1679
|
+
36,
|
1680
|
+
1,
|
1681
|
+
1,
|
1682
|
+
126,
|
1683
|
+
32,
|
1684
|
+
0,
|
1685
|
+
173,
|
1686
|
+
32,
|
1687
|
+
1,
|
1688
|
+
173,
|
1689
|
+
66,
|
1690
|
+
32,
|
1691
|
+
134,
|
1692
|
+
132,
|
1693
|
+
32,
|
1694
|
+
2,
|
1695
|
+
173,
|
1696
|
+
32,
|
1697
|
+
3,
|
1698
|
+
173,
|
1699
|
+
66,
|
1700
|
+
32,
|
1701
|
+
134,
|
1702
|
+
132,
|
1703
|
+
130,
|
1704
|
+
34,
|
1705
|
+
4,
|
1706
|
+
66,
|
1707
|
+
32,
|
1708
|
+
135,
|
1709
|
+
167,
|
1710
|
+
36,
|
1711
|
+
0,
|
1712
|
+
32,
|
1713
|
+
4,
|
1714
|
+
167,
|
1715
|
+
11
|
1716
|
+
])), {}).exports;
|
1717
|
+
} catch (e) {
|
1751
1718
|
}
|
1752
1719
|
function Long(low, high, unsigned) {
|
1753
1720
|
this.low = low | 0;
|
@@ -1772,38 +1739,44 @@ function fromInt(value, unsigned) {
|
|
1772
1739
|
value >>>= 0;
|
1773
1740
|
if (cache = 0 <= value && value < 256) {
|
1774
1741
|
cachedObj = UINT_CACHE[value];
|
1775
|
-
if (cachedObj)
|
1742
|
+
if (cachedObj)
|
1743
|
+
return cachedObj;
|
1776
1744
|
}
|
1777
1745
|
obj = fromBits(value, 0, true);
|
1778
|
-
if (cache)
|
1746
|
+
if (cache)
|
1747
|
+
UINT_CACHE[value] = obj;
|
1779
1748
|
return obj;
|
1780
1749
|
} else {
|
1781
1750
|
value |= 0;
|
1782
1751
|
if (cache = -128 <= value && value < 128) {
|
1783
1752
|
cachedObj = INT_CACHE[value];
|
1784
|
-
if (cachedObj)
|
1753
|
+
if (cachedObj)
|
1754
|
+
return cachedObj;
|
1785
1755
|
}
|
1786
1756
|
obj = fromBits(value, value < 0 ? -1 : 0, false);
|
1787
|
-
if (cache)
|
1757
|
+
if (cache)
|
1758
|
+
INT_CACHE[value] = obj;
|
1788
1759
|
return obj;
|
1789
1760
|
}
|
1790
1761
|
}
|
1791
1762
|
Long.fromInt = fromInt;
|
1792
1763
|
function fromNumber(value, unsigned) {
|
1793
|
-
if (isNaN(value))
|
1764
|
+
if (isNaN(value))
|
1765
|
+
return unsigned ? UZERO : ZERO;
|
1794
1766
|
if (unsigned) {
|
1795
|
-
if (value < 0)
|
1796
|
-
|
1767
|
+
if (value < 0)
|
1768
|
+
return UZERO;
|
1769
|
+
if (value >= TWO_PWR_64_DBL)
|
1770
|
+
return MAX_UNSIGNED_VALUE;
|
1797
1771
|
} else {
|
1798
|
-
if (value <= -TWO_PWR_63_DBL)
|
1799
|
-
|
1772
|
+
if (value <= -TWO_PWR_63_DBL)
|
1773
|
+
return MIN_VALUE;
|
1774
|
+
if (value + 1 >= TWO_PWR_63_DBL)
|
1775
|
+
return MAX_VALUE;
|
1800
1776
|
}
|
1801
|
-
if (value < 0)
|
1802
|
-
|
1803
|
-
|
1804
|
-
value / TWO_PWR_32_DBL | 0,
|
1805
|
-
unsigned
|
1806
|
-
);
|
1777
|
+
if (value < 0)
|
1778
|
+
return fromNumber(-value, unsigned).neg();
|
1779
|
+
return fromBits(value % TWO_PWR_32_DBL | 0, value / TWO_PWR_32_DBL | 0, unsigned);
|
1807
1780
|
}
|
1808
1781
|
Long.fromNumber = fromNumber;
|
1809
1782
|
function fromBits(lowBits, highBits, unsigned) {
|
@@ -1812,7 +1785,8 @@ function fromBits(lowBits, highBits, unsigned) {
|
|
1812
1785
|
Long.fromBits = fromBits;
|
1813
1786
|
var pow_dbl = Math.pow;
|
1814
1787
|
function fromString(str, unsigned, radix) {
|
1815
|
-
if (str.length === 0)
|
1788
|
+
if (str.length === 0)
|
1789
|
+
throw Error("empty string");
|
1816
1790
|
if (typeof unsigned === "number") {
|
1817
1791
|
radix = unsigned;
|
1818
1792
|
unsigned = false;
|
@@ -1822,9 +1796,11 @@ function fromString(str, unsigned, radix) {
|
|
1822
1796
|
if (str === "NaN" || str === "Infinity" || str === "+Infinity" || str === "-Infinity")
|
1823
1797
|
return unsigned ? UZERO : ZERO;
|
1824
1798
|
radix = radix || 10;
|
1825
|
-
if (radix < 2 || 36 < radix)
|
1799
|
+
if (radix < 2 || 36 < radix)
|
1800
|
+
throw RangeError("radix");
|
1826
1801
|
var p;
|
1827
|
-
if ((p = str.indexOf("-")) > 0)
|
1802
|
+
if ((p = str.indexOf("-")) > 0)
|
1803
|
+
throw Error("interior hyphen");
|
1828
1804
|
else if (p === 0) {
|
1829
1805
|
return fromString(str.substring(1), unsigned, radix).neg();
|
1830
1806
|
}
|
@@ -1845,13 +1821,11 @@ function fromString(str, unsigned, radix) {
|
|
1845
1821
|
}
|
1846
1822
|
Long.fromString = fromString;
|
1847
1823
|
function fromValue(val, unsigned) {
|
1848
|
-
if (typeof val === "number")
|
1849
|
-
|
1850
|
-
|
1851
|
-
val
|
1852
|
-
|
1853
|
-
typeof unsigned === "boolean" ? unsigned : val.unsigned
|
1854
|
-
);
|
1824
|
+
if (typeof val === "number")
|
1825
|
+
return fromNumber(val, unsigned);
|
1826
|
+
if (typeof val === "string")
|
1827
|
+
return fromString(val, unsigned);
|
1828
|
+
return fromBits(val.low, val.high, typeof unsigned === "boolean" ? unsigned : val.unsigned);
|
1855
1829
|
}
|
1856
1830
|
Long.fromValue = fromValue;
|
1857
1831
|
var TWO_PWR_16_DBL = 1 << 16;
|
@@ -1887,22 +1861,27 @@ LongPrototype.toNumber = function toNumber() {
|
|
1887
1861
|
};
|
1888
1862
|
LongPrototype.toString = function toString(radix) {
|
1889
1863
|
radix = radix || 10;
|
1890
|
-
if (radix < 2 || 36 < radix)
|
1891
|
-
|
1864
|
+
if (radix < 2 || 36 < radix)
|
1865
|
+
throw RangeError("radix");
|
1866
|
+
if (this.isZero())
|
1867
|
+
return "0";
|
1892
1868
|
if (this.isNegative()) {
|
1893
1869
|
if (this.eq(MIN_VALUE)) {
|
1894
1870
|
var radixLong = fromNumber(radix), div = this.div(radixLong), rem1 = div.mul(radixLong).sub(this);
|
1895
1871
|
return div.toString(radix) + rem1.toInt().toString(radix);
|
1896
|
-
} else
|
1872
|
+
} else
|
1873
|
+
return "-" + this.neg().toString(radix);
|
1897
1874
|
}
|
1898
1875
|
var radixToPower = fromNumber(pow_dbl(radix, 6), this.unsigned), rem = this;
|
1899
1876
|
var result = "";
|
1900
1877
|
while (true) {
|
1901
1878
|
var remDiv = rem.div(radixToPower), intval = rem.sub(remDiv.mul(radixToPower)).toInt() >>> 0, digits = intval.toString(radix);
|
1902
1879
|
rem = remDiv;
|
1903
|
-
if (rem.isZero())
|
1880
|
+
if (rem.isZero())
|
1881
|
+
return digits + result;
|
1904
1882
|
else {
|
1905
|
-
while (digits.length < 6)
|
1883
|
+
while (digits.length < 6)
|
1884
|
+
digits = "0" + digits;
|
1906
1885
|
result = "" + digits + result;
|
1907
1886
|
}
|
1908
1887
|
}
|
@@ -1923,15 +1902,11 @@ LongPrototype.getNumBitsAbs = function getNumBitsAbs() {
|
|
1923
1902
|
if (this.isNegative())
|
1924
1903
|
return this.eq(MIN_VALUE) ? 64 : this.neg().getNumBitsAbs();
|
1925
1904
|
var val = this.high != 0 ? this.high : this.low;
|
1926
|
-
for (var bit = 31; bit > 0; bit--)
|
1905
|
+
for (var bit = 31; bit > 0; bit--)
|
1906
|
+
if ((val & 1 << bit) != 0)
|
1907
|
+
break;
|
1927
1908
|
return this.high != 0 ? bit + 33 : bit + 1;
|
1928
1909
|
};
|
1929
|
-
LongPrototype.isSafeInteger = function isSafeInteger() {
|
1930
|
-
var top11Bits = this.high >> 21;
|
1931
|
-
if (!top11Bits) return true;
|
1932
|
-
if (this.unsigned) return false;
|
1933
|
-
return top11Bits === -1 && !(this.low === 0 && this.high === -2097152);
|
1934
|
-
};
|
1935
1910
|
LongPrototype.isZero = function isZero() {
|
1936
1911
|
return this.high === 0 && this.low === 0;
|
1937
1912
|
};
|
@@ -1949,7 +1924,8 @@ LongPrototype.isEven = function isEven() {
|
|
1949
1924
|
return (this.low & 1) === 0;
|
1950
1925
|
};
|
1951
1926
|
LongPrototype.equals = function equals(other) {
|
1952
|
-
if (!isLong(other))
|
1927
|
+
if (!isLong(other))
|
1928
|
+
other = fromValue(other);
|
1953
1929
|
if (this.unsigned !== other.unsigned && this.high >>> 31 === 1 && other.high >>> 31 === 1)
|
1954
1930
|
return false;
|
1955
1931
|
return this.high === other.high && this.low === other.low;
|
@@ -1994,22 +1970,29 @@ LongPrototype.greaterThanOrEqual = function greaterThanOrEqual(other) {
|
|
1994
1970
|
LongPrototype.gte = LongPrototype.greaterThanOrEqual;
|
1995
1971
|
LongPrototype.ge = LongPrototype.greaterThanOrEqual;
|
1996
1972
|
LongPrototype.compare = function compare(other) {
|
1997
|
-
if (!isLong(other))
|
1998
|
-
|
1973
|
+
if (!isLong(other))
|
1974
|
+
other = fromValue(other);
|
1975
|
+
if (this.eq(other))
|
1976
|
+
return 0;
|
1999
1977
|
var thisNeg = this.isNegative(), otherNeg = other.isNegative();
|
2000
|
-
if (thisNeg && !otherNeg)
|
2001
|
-
|
2002
|
-
if (!
|
1978
|
+
if (thisNeg && !otherNeg)
|
1979
|
+
return -1;
|
1980
|
+
if (!thisNeg && otherNeg)
|
1981
|
+
return 1;
|
1982
|
+
if (!this.unsigned)
|
1983
|
+
return this.sub(other).isNegative() ? -1 : 1;
|
2003
1984
|
return other.high >>> 0 > this.high >>> 0 || other.high === this.high && other.low >>> 0 > this.low >>> 0 ? -1 : 1;
|
2004
1985
|
};
|
2005
1986
|
LongPrototype.comp = LongPrototype.compare;
|
2006
1987
|
LongPrototype.negate = function negate() {
|
2007
|
-
if (!this.unsigned && this.eq(MIN_VALUE))
|
1988
|
+
if (!this.unsigned && this.eq(MIN_VALUE))
|
1989
|
+
return MIN_VALUE;
|
2008
1990
|
return this.not().add(ONE);
|
2009
1991
|
};
|
2010
1992
|
LongPrototype.neg = LongPrototype.negate;
|
2011
1993
|
LongPrototype.add = function add(addend) {
|
2012
|
-
if (!isLong(addend))
|
1994
|
+
if (!isLong(addend))
|
1995
|
+
addend = fromValue(addend);
|
2013
1996
|
var a48 = this.high >>> 16;
|
2014
1997
|
var a32 = this.high & 65535;
|
2015
1998
|
var a16 = this.low >>> 16;
|
@@ -2033,24 +2016,38 @@ LongPrototype.add = function add(addend) {
|
|
2033
2016
|
return fromBits(c16 << 16 | c00, c48 << 16 | c32, this.unsigned);
|
2034
2017
|
};
|
2035
2018
|
LongPrototype.subtract = function subtract(subtrahend) {
|
2036
|
-
if (!isLong(subtrahend))
|
2019
|
+
if (!isLong(subtrahend))
|
2020
|
+
subtrahend = fromValue(subtrahend);
|
2037
2021
|
return this.add(subtrahend.neg());
|
2038
2022
|
};
|
2039
2023
|
LongPrototype.sub = LongPrototype.subtract;
|
2040
2024
|
LongPrototype.multiply = function multiply(multiplier) {
|
2041
|
-
if (this.isZero())
|
2042
|
-
|
2025
|
+
if (this.isZero())
|
2026
|
+
return this;
|
2027
|
+
if (!isLong(multiplier))
|
2028
|
+
multiplier = fromValue(multiplier);
|
2043
2029
|
if (wasm) {
|
2044
|
-
var low = wasm["mul"](
|
2030
|
+
var low = wasm["mul"](
|
2031
|
+
this.low,
|
2032
|
+
this.high,
|
2033
|
+
multiplier.low,
|
2034
|
+
multiplier.high
|
2035
|
+
);
|
2045
2036
|
return fromBits(low, wasm["get_high"](), this.unsigned);
|
2046
2037
|
}
|
2047
|
-
if (multiplier.isZero())
|
2048
|
-
|
2049
|
-
if (
|
2038
|
+
if (multiplier.isZero())
|
2039
|
+
return this.unsigned ? UZERO : ZERO;
|
2040
|
+
if (this.eq(MIN_VALUE))
|
2041
|
+
return multiplier.isOdd() ? MIN_VALUE : ZERO;
|
2042
|
+
if (multiplier.eq(MIN_VALUE))
|
2043
|
+
return this.isOdd() ? MIN_VALUE : ZERO;
|
2050
2044
|
if (this.isNegative()) {
|
2051
|
-
if (multiplier.isNegative())
|
2052
|
-
|
2053
|
-
|
2045
|
+
if (multiplier.isNegative())
|
2046
|
+
return this.neg().mul(multiplier.neg());
|
2047
|
+
else
|
2048
|
+
return this.neg().mul(multiplier).neg();
|
2049
|
+
} else if (multiplier.isNegative())
|
2050
|
+
return this.mul(multiplier.neg()).neg();
|
2054
2051
|
if (this.lt(TWO_PWR_24) && multiplier.lt(TWO_PWR_24))
|
2055
2052
|
return fromNumber(this.toNumber() * multiplier.toNumber(), this.unsigned);
|
2056
2053
|
var a48 = this.high >>> 16;
|
@@ -2086,8 +2083,10 @@ LongPrototype.multiply = function multiply(multiplier) {
|
|
2086
2083
|
};
|
2087
2084
|
LongPrototype.mul = LongPrototype.multiply;
|
2088
2085
|
LongPrototype.divide = function divide(divisor) {
|
2089
|
-
if (!isLong(divisor))
|
2090
|
-
|
2086
|
+
if (!isLong(divisor))
|
2087
|
+
divisor = fromValue(divisor);
|
2088
|
+
if (divisor.isZero())
|
2089
|
+
throw Error("division by zero");
|
2091
2090
|
if (wasm) {
|
2092
2091
|
if (!this.unsigned && this.high === -2147483648 && divisor.low === -1 && divisor.high === -1) {
|
2093
2092
|
return this;
|
@@ -2100,13 +2099,15 @@ LongPrototype.divide = function divide(divisor) {
|
|
2100
2099
|
);
|
2101
2100
|
return fromBits(low, wasm["get_high"](), this.unsigned);
|
2102
2101
|
}
|
2103
|
-
if (this.isZero())
|
2102
|
+
if (this.isZero())
|
2103
|
+
return this.unsigned ? UZERO : ZERO;
|
2104
2104
|
var approx, rem, res;
|
2105
2105
|
if (!this.unsigned) {
|
2106
2106
|
if (this.eq(MIN_VALUE)) {
|
2107
2107
|
if (divisor.eq(ONE) || divisor.eq(NEG_ONE))
|
2108
2108
|
return MIN_VALUE;
|
2109
|
-
else if (divisor.eq(MIN_VALUE))
|
2109
|
+
else if (divisor.eq(MIN_VALUE))
|
2110
|
+
return ONE;
|
2110
2111
|
else {
|
2111
2112
|
var halfThis = this.shr(1);
|
2112
2113
|
approx = halfThis.div(divisor).shl(1);
|
@@ -2118,15 +2119,20 @@ LongPrototype.divide = function divide(divisor) {
|
|
2118
2119
|
return res;
|
2119
2120
|
}
|
2120
2121
|
}
|
2121
|
-
} else if (divisor.eq(MIN_VALUE))
|
2122
|
+
} else if (divisor.eq(MIN_VALUE))
|
2123
|
+
return this.unsigned ? UZERO : ZERO;
|
2122
2124
|
if (this.isNegative()) {
|
2123
|
-
if (divisor.isNegative())
|
2125
|
+
if (divisor.isNegative())
|
2126
|
+
return this.neg().div(divisor.neg());
|
2124
2127
|
return this.neg().div(divisor).neg();
|
2125
|
-
} else if (divisor.isNegative())
|
2128
|
+
} else if (divisor.isNegative())
|
2129
|
+
return this.div(divisor.neg()).neg();
|
2126
2130
|
res = ZERO;
|
2127
2131
|
} else {
|
2128
|
-
if (!divisor.unsigned)
|
2129
|
-
|
2132
|
+
if (!divisor.unsigned)
|
2133
|
+
divisor = divisor.toUnsigned();
|
2134
|
+
if (divisor.gt(this))
|
2135
|
+
return UZERO;
|
2130
2136
|
if (divisor.gt(this.shru(1)))
|
2131
2137
|
return UONE;
|
2132
2138
|
res = UZERO;
|
@@ -2140,7 +2146,8 @@ LongPrototype.divide = function divide(divisor) {
|
|
2140
2146
|
approxRes = fromNumber(approx, this.unsigned);
|
2141
2147
|
approxRem = approxRes.mul(divisor);
|
2142
2148
|
}
|
2143
|
-
if (approxRes.isZero())
|
2149
|
+
if (approxRes.isZero())
|
2150
|
+
approxRes = ONE;
|
2144
2151
|
res = res.add(approxRes);
|
2145
2152
|
rem = rem.sub(approxRem);
|
2146
2153
|
}
|
@@ -2148,7 +2155,8 @@ LongPrototype.divide = function divide(divisor) {
|
|
2148
2155
|
};
|
2149
2156
|
LongPrototype.div = LongPrototype.divide;
|
2150
2157
|
LongPrototype.modulo = function modulo(divisor) {
|
2151
|
-
if (!isLong(divisor))
|
2158
|
+
if (!isLong(divisor))
|
2159
|
+
divisor = fromValue(divisor);
|
2152
2160
|
if (wasm) {
|
2153
2161
|
var low = (this.unsigned ? wasm["rem_u"] : wasm["rem_s"])(
|
2154
2162
|
this.low,
|
@@ -2174,55 +2182,46 @@ LongPrototype.countTrailingZeros = function countTrailingZeros() {
|
|
2174
2182
|
};
|
2175
2183
|
LongPrototype.ctz = LongPrototype.countTrailingZeros;
|
2176
2184
|
LongPrototype.and = function and(other) {
|
2177
|
-
if (!isLong(other))
|
2185
|
+
if (!isLong(other))
|
2186
|
+
other = fromValue(other);
|
2178
2187
|
return fromBits(this.low & other.low, this.high & other.high, this.unsigned);
|
2179
2188
|
};
|
2180
2189
|
LongPrototype.or = function or(other) {
|
2181
|
-
if (!isLong(other))
|
2190
|
+
if (!isLong(other))
|
2191
|
+
other = fromValue(other);
|
2182
2192
|
return fromBits(this.low | other.low, this.high | other.high, this.unsigned);
|
2183
2193
|
};
|
2184
2194
|
LongPrototype.xor = function xor(other) {
|
2185
|
-
if (!isLong(other))
|
2195
|
+
if (!isLong(other))
|
2196
|
+
other = fromValue(other);
|
2186
2197
|
return fromBits(this.low ^ other.low, this.high ^ other.high, this.unsigned);
|
2187
2198
|
};
|
2188
2199
|
LongPrototype.shiftLeft = function shiftLeft(numBits) {
|
2189
|
-
if (isLong(numBits))
|
2190
|
-
|
2200
|
+
if (isLong(numBits))
|
2201
|
+
numBits = numBits.toInt();
|
2202
|
+
if ((numBits &= 63) === 0)
|
2203
|
+
return this;
|
2191
2204
|
else if (numBits < 32)
|
2192
|
-
return fromBits(
|
2193
|
-
|
2194
|
-
|
2195
|
-
this.unsigned
|
2196
|
-
);
|
2197
|
-
else return fromBits(0, this.low << numBits - 32, this.unsigned);
|
2205
|
+
return fromBits(this.low << numBits, this.high << numBits | this.low >>> 32 - numBits, this.unsigned);
|
2206
|
+
else
|
2207
|
+
return fromBits(0, this.low << numBits - 32, this.unsigned);
|
2198
2208
|
};
|
2199
2209
|
LongPrototype.shl = LongPrototype.shiftLeft;
|
2200
2210
|
LongPrototype.shiftRight = function shiftRight(numBits) {
|
2201
|
-
if (isLong(numBits))
|
2202
|
-
|
2211
|
+
if (isLong(numBits))
|
2212
|
+
numBits = numBits.toInt();
|
2213
|
+
if ((numBits &= 63) === 0)
|
2214
|
+
return this;
|
2203
2215
|
else if (numBits < 32)
|
2204
|
-
return fromBits(
|
2205
|
-
this.low >>> numBits | this.high << 32 - numBits,
|
2206
|
-
this.high >> numBits,
|
2207
|
-
this.unsigned
|
2208
|
-
);
|
2216
|
+
return fromBits(this.low >>> numBits | this.high << 32 - numBits, this.high >> numBits, this.unsigned);
|
2209
2217
|
else
|
2210
|
-
return fromBits(
|
2211
|
-
this.high >> numBits - 32,
|
2212
|
-
this.high >= 0 ? 0 : -1,
|
2213
|
-
this.unsigned
|
2214
|
-
);
|
2218
|
+
return fromBits(this.high >> numBits - 32, this.high >= 0 ? 0 : -1, this.unsigned);
|
2215
2219
|
};
|
2216
2220
|
LongPrototype.shr = LongPrototype.shiftRight;
|
2217
2221
|
LongPrototype.shiftRightUnsigned = function shiftRightUnsigned(numBits) {
|
2218
2222
|
if (isLong(numBits)) numBits = numBits.toInt();
|
2219
2223
|
if ((numBits &= 63) === 0) return this;
|
2220
|
-
if (numBits < 32)
|
2221
|
-
return fromBits(
|
2222
|
-
this.low >>> numBits | this.high << 32 - numBits,
|
2223
|
-
this.high >>> numBits,
|
2224
|
-
this.unsigned
|
2225
|
-
);
|
2224
|
+
if (numBits < 32) return fromBits(this.low >>> numBits | this.high << 32 - numBits, this.high >>> numBits, this.unsigned);
|
2226
2225
|
if (numBits === 32) return fromBits(this.high, 0, this.unsigned);
|
2227
2226
|
return fromBits(this.high >>> numBits - 32, 0, this.unsigned);
|
2228
2227
|
};
|
@@ -2235,19 +2234,11 @@ LongPrototype.rotateLeft = function rotateLeft(numBits) {
|
|
2235
2234
|
if (numBits === 32) return fromBits(this.high, this.low, this.unsigned);
|
2236
2235
|
if (numBits < 32) {
|
2237
2236
|
b = 32 - numBits;
|
2238
|
-
return fromBits(
|
2239
|
-
this.low << numBits | this.high >>> b,
|
2240
|
-
this.high << numBits | this.low >>> b,
|
2241
|
-
this.unsigned
|
2242
|
-
);
|
2237
|
+
return fromBits(this.low << numBits | this.high >>> b, this.high << numBits | this.low >>> b, this.unsigned);
|
2243
2238
|
}
|
2244
2239
|
numBits -= 32;
|
2245
2240
|
b = 32 - numBits;
|
2246
|
-
return fromBits(
|
2247
|
-
this.high << numBits | this.low >>> b,
|
2248
|
-
this.low << numBits | this.high >>> b,
|
2249
|
-
this.unsigned
|
2250
|
-
);
|
2241
|
+
return fromBits(this.high << numBits | this.low >>> b, this.low << numBits | this.high >>> b, this.unsigned);
|
2251
2242
|
};
|
2252
2243
|
LongPrototype.rotl = LongPrototype.rotateLeft;
|
2253
2244
|
LongPrototype.rotateRight = function rotateRight(numBits) {
|
@@ -2257,27 +2248,21 @@ LongPrototype.rotateRight = function rotateRight(numBits) {
|
|
2257
2248
|
if (numBits === 32) return fromBits(this.high, this.low, this.unsigned);
|
2258
2249
|
if (numBits < 32) {
|
2259
2250
|
b = 32 - numBits;
|
2260
|
-
return fromBits(
|
2261
|
-
this.high << b | this.low >>> numBits,
|
2262
|
-
this.low << b | this.high >>> numBits,
|
2263
|
-
this.unsigned
|
2264
|
-
);
|
2251
|
+
return fromBits(this.high << b | this.low >>> numBits, this.low << b | this.high >>> numBits, this.unsigned);
|
2265
2252
|
}
|
2266
2253
|
numBits -= 32;
|
2267
2254
|
b = 32 - numBits;
|
2268
|
-
return fromBits(
|
2269
|
-
this.low << b | this.high >>> numBits,
|
2270
|
-
this.high << b | this.low >>> numBits,
|
2271
|
-
this.unsigned
|
2272
|
-
);
|
2255
|
+
return fromBits(this.low << b | this.high >>> numBits, this.high << b | this.low >>> numBits, this.unsigned);
|
2273
2256
|
};
|
2274
2257
|
LongPrototype.rotr = LongPrototype.rotateRight;
|
2275
2258
|
LongPrototype.toSigned = function toSigned() {
|
2276
|
-
if (!this.unsigned)
|
2259
|
+
if (!this.unsigned)
|
2260
|
+
return this;
|
2277
2261
|
return fromBits(this.low, this.high, false);
|
2278
2262
|
};
|
2279
2263
|
LongPrototype.toUnsigned = function toUnsigned() {
|
2280
|
-
if (this.unsigned)
|
2264
|
+
if (this.unsigned)
|
2265
|
+
return this;
|
2281
2266
|
return fromBits(this.low, this.high, true);
|
2282
2267
|
};
|
2283
2268
|
LongPrototype.toBytes = function toBytes(le) {
|
@@ -2326,22 +2311,6 @@ Long.fromBytesBE = function fromBytesBE(bytes, unsigned) {
|
|
2326
2311
|
unsigned
|
2327
2312
|
);
|
2328
2313
|
};
|
2329
|
-
if (typeof BigInt === "function") {
|
2330
|
-
Long.fromBigInt = function fromBigInt2(value, unsigned) {
|
2331
|
-
var lowBits = Number(BigInt.asIntN(32, value));
|
2332
|
-
var highBits = Number(BigInt.asIntN(32, value >> BigInt(32)));
|
2333
|
-
return fromBits(lowBits, highBits, unsigned);
|
2334
|
-
};
|
2335
|
-
Long.fromValue = function fromValueWithBigInt(value, unsigned) {
|
2336
|
-
if (typeof value === "bigint") return fromBigInt(value, unsigned);
|
2337
|
-
return fromValue(value, unsigned);
|
2338
|
-
};
|
2339
|
-
LongPrototype.toBigInt = function toBigInt() {
|
2340
|
-
var lowBigInt = BigInt(this.low >>> 0);
|
2341
|
-
var highBigInt = BigInt(this.unsigned ? this.high >>> 0 : this.high);
|
2342
|
-
return highBigInt << BigInt(32) | lowBigInt;
|
2343
|
-
};
|
2344
|
-
}
|
2345
2314
|
var long_default = Long;
|
2346
2315
|
|
2347
2316
|
// ../protos/lib/processor/protos/processor.js
|
@@ -22981,4 +22950,4 @@ long/index.js:
|
|
22981
22950
|
* SPDX-License-Identifier: Apache-2.0
|
22982
22951
|
*)
|
22983
22952
|
*/
|
22984
|
-
//# sourceMappingURL=chunk-
|
22953
|
+
//# sourceMappingURL=chunk-XR3EZ6FB.js.map
|