@loaders.gl/schema 4.0.0-alpha.22 → 4.0.0-alpha.24
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/dist.min.js +517 -927
- package/dist/es5/index.js +7 -0
- package/dist/es5/index.js.map +1 -1
- package/dist/es5/lib/table/simple-table/convert-table.js +24 -0
- package/dist/es5/lib/table/simple-table/convert-table.js.map +1 -1
- package/dist/es5/types/binary-geometries.js.map +1 -1
- package/dist/es5/types/category-gis.js.map +1 -1
- package/dist/es5/types/category-table.js.map +1 -1
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/lib/table/simple-table/convert-table.js +22 -0
- package/dist/esm/lib/table/simple-table/convert-table.js.map +1 -1
- package/dist/esm/types/binary-geometries.js.map +1 -1
- package/dist/esm/types/category-gis.js.map +1 -1
- package/dist/esm/types/category-table.js.map +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/lib/table/simple-table/convert-table.d.ts +34 -1
- package/dist/lib/table/simple-table/convert-table.d.ts.map +1 -1
- package/dist/types/binary-geometries.d.ts +9 -7
- package/dist/types/binary-geometries.d.ts.map +1 -1
- package/dist/types/category-gis.d.ts +1 -1
- package/dist/types/category-gis.d.ts.map +1 -1
- package/dist/types/category-table.d.ts +21 -11
- package/dist/types/category-table.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/index.ts +8 -4
- package/src/lib/table/simple-table/convert-table.ts +73 -1
- package/src/types/binary-geometries.ts +10 -7
- package/src/types/category-gis.ts +5 -4
- package/src/types/category-table.ts +26 -11
- package/dist/bundle.js +0 -5
- package/dist/index.js +0 -92
- package/dist/lib/mesh/convert-mesh.js +0 -40
- package/dist/lib/mesh/deduce-mesh-schema.js +0 -66
- package/dist/lib/mesh/mesh-to-arrow-table.js +0 -44
- package/dist/lib/mesh/mesh-utils.js +0 -51
- package/dist/lib/table/arrow/arrow-type-utils.js +0 -53
- package/dist/lib/table/arrow/convert-schema-arrow.js +0 -187
- package/dist/lib/table/arrow/convert-table-to-arrow.js +0 -57
- package/dist/lib/table/arrow-api/arrow-like-field.js +0 -34
- package/dist/lib/table/arrow-api/arrow-like-schema.js +0 -81
- package/dist/lib/table/arrow-api/arrow-like-table.js +0 -53
- package/dist/lib/table/arrow-api/arrow-like-type.js +0 -463
- package/dist/lib/table/arrow-api/enum.js +0 -97
- package/dist/lib/table/arrow-api/get-type-info.js +0 -29
- package/dist/lib/table/arrow-api/index.js +0 -25
- package/dist/lib/table/batches/base-table-batch-aggregator.js +0 -60
- package/dist/lib/table/batches/columnar-table-batch-aggregator.js +0 -92
- package/dist/lib/table/batches/row-table-batch-aggregator.js +0 -81
- package/dist/lib/table/batches/table-batch-aggregator.js +0 -3
- package/dist/lib/table/batches/table-batch-builder.js +0 -152
- package/dist/lib/table/simple-table/convert-table.js +0 -65
- package/dist/lib/table/simple-table/data-type.js +0 -93
- package/dist/lib/table/simple-table/make-table.js +0 -95
- package/dist/lib/table/simple-table/row-utils.js +0 -33
- package/dist/lib/table/simple-table/table-accessors.js +0 -319
- package/dist/lib/table/simple-table/table-column.js +0 -41
- package/dist/lib/table/simple-table/table-schema.js +0 -85
- package/dist/lib/utils/assert.js +0 -12
- package/dist/lib/utils/async-queue.js +0 -92
- package/dist/types/binary-geometries.js +0 -2
- package/dist/types/category-gis.js +0 -3
- package/dist/types/category-image.js +0 -2
- package/dist/types/category-mesh.js +0 -3
- package/dist/types/category-table.js +0 -3
- package/dist/types/category-texture.js +0 -3
- package/dist/types/flat-geometries.js +0 -3
- package/dist/types/schema.js +0 -3
- package/dist/types/types.js +0 -2
package/dist/dist.min.js
CHANGED
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
(() => {
|
|
2
|
-
var __create = Object.create;
|
|
3
2
|
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
3
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
9
4
|
var __esm = (fn, res) => function __init() {
|
|
10
5
|
return fn && (res = (0, fn[Object.keys(fn)[0]])(fn = 0)), res;
|
|
@@ -17,17 +12,6 @@
|
|
|
17
12
|
for (var name in all)
|
|
18
13
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
19
14
|
};
|
|
20
|
-
var __reExport = (target, module, desc) => {
|
|
21
|
-
if (module && typeof module === "object" || typeof module === "function") {
|
|
22
|
-
for (let key of __getOwnPropNames(module))
|
|
23
|
-
if (!__hasOwnProp.call(target, key) && key !== "default")
|
|
24
|
-
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
|
25
|
-
}
|
|
26
|
-
return target;
|
|
27
|
-
};
|
|
28
|
-
var __toModule = (module) => {
|
|
29
|
-
return __reExport(__markAsModule(__defProp(module != null ? __create(__getProtoOf(module)) : {}, "default", module && module.__esModule && "default" in module ? { get: () => module.default, enumerable: true } : { value: module, enumerable: true })), module);
|
|
30
|
-
};
|
|
31
15
|
|
|
32
16
|
// src/lib/table/batches/base-table-batch-aggregator.ts
|
|
33
17
|
var DEFAULT_ROW_COUNT, BaseTableBatchAggregator;
|
|
@@ -751,6 +735,31 @@
|
|
|
751
735
|
return "null";
|
|
752
736
|
}
|
|
753
737
|
}
|
|
738
|
+
function getArrayTypeFromDataType(type, nullable) {
|
|
739
|
+
if (!nullable) {
|
|
740
|
+
switch (type) {
|
|
741
|
+
case "int8":
|
|
742
|
+
return Int8Array;
|
|
743
|
+
case "uint8":
|
|
744
|
+
return Uint8Array;
|
|
745
|
+
case "int16":
|
|
746
|
+
return Int16Array;
|
|
747
|
+
case "uint16":
|
|
748
|
+
return Uint16Array;
|
|
749
|
+
case "int32":
|
|
750
|
+
return Int32Array;
|
|
751
|
+
case "uint32":
|
|
752
|
+
return Uint32Array;
|
|
753
|
+
case "float32":
|
|
754
|
+
return Float32Array;
|
|
755
|
+
case "float64":
|
|
756
|
+
return Float64Array;
|
|
757
|
+
default:
|
|
758
|
+
break;
|
|
759
|
+
}
|
|
760
|
+
}
|
|
761
|
+
return Array;
|
|
762
|
+
}
|
|
754
763
|
var init_data_type = __esm({
|
|
755
764
|
"src/lib/table/simple-table/data-type.ts"() {
|
|
756
765
|
}
|
|
@@ -913,6 +922,98 @@
|
|
|
913
922
|
}
|
|
914
923
|
});
|
|
915
924
|
|
|
925
|
+
// src/lib/table/simple-table/table-column.ts
|
|
926
|
+
function makeColumnFromField(field, length) {
|
|
927
|
+
const ArrayType = getArrayTypeFromDataType(field.type, field.nullable);
|
|
928
|
+
return new ArrayType(length);
|
|
929
|
+
}
|
|
930
|
+
var init_table_column = __esm({
|
|
931
|
+
"src/lib/table/simple-table/table-column.ts"() {
|
|
932
|
+
init_data_type();
|
|
933
|
+
}
|
|
934
|
+
});
|
|
935
|
+
|
|
936
|
+
// src/lib/table/simple-table/convert-table.ts
|
|
937
|
+
function convertTable(table, shape) {
|
|
938
|
+
switch (shape) {
|
|
939
|
+
case "object-row-table":
|
|
940
|
+
return makeObjectRowTable(table);
|
|
941
|
+
case "array-row-table":
|
|
942
|
+
return makeArrayRowTable(table);
|
|
943
|
+
case "columnar-table":
|
|
944
|
+
return makeColumnarTable(table);
|
|
945
|
+
case "arrow-table":
|
|
946
|
+
return makeArrowTable(table);
|
|
947
|
+
default:
|
|
948
|
+
throw new Error(shape);
|
|
949
|
+
}
|
|
950
|
+
}
|
|
951
|
+
function makeArrowTable(table) {
|
|
952
|
+
const _makeArrowTable = globalThis.__luma?._makeArrowTable;
|
|
953
|
+
if (!_makeArrowTable) {
|
|
954
|
+
throw new Error("");
|
|
955
|
+
}
|
|
956
|
+
return _makeArrowTable(table);
|
|
957
|
+
}
|
|
958
|
+
function makeColumnarTable(table) {
|
|
959
|
+
const schema = table.schema || deduceTableSchema(table);
|
|
960
|
+
const fields = table.schema?.fields || [];
|
|
961
|
+
if (table.shape === "columnar-table") {
|
|
962
|
+
return { ...table, schema };
|
|
963
|
+
}
|
|
964
|
+
const length = getTableLength(table);
|
|
965
|
+
const columns = {};
|
|
966
|
+
for (const field of fields) {
|
|
967
|
+
const column = makeColumnFromField(field, length);
|
|
968
|
+
columns[field.name] = column;
|
|
969
|
+
for (let rowIndex = 0; rowIndex < length; rowIndex++) {
|
|
970
|
+
column[rowIndex] = getTableCell(table, rowIndex, field.name);
|
|
971
|
+
}
|
|
972
|
+
}
|
|
973
|
+
return {
|
|
974
|
+
shape: "columnar-table",
|
|
975
|
+
schema,
|
|
976
|
+
data: columns
|
|
977
|
+
};
|
|
978
|
+
}
|
|
979
|
+
function makeArrayRowTable(table) {
|
|
980
|
+
if (table.shape === "array-row-table") {
|
|
981
|
+
return table;
|
|
982
|
+
}
|
|
983
|
+
const length = getTableLength(table);
|
|
984
|
+
const data = new Array(length);
|
|
985
|
+
for (let rowIndex = 0; rowIndex < length; rowIndex++) {
|
|
986
|
+
data[rowIndex] = getTableRowAsArray(table, rowIndex);
|
|
987
|
+
}
|
|
988
|
+
return {
|
|
989
|
+
shape: "array-row-table",
|
|
990
|
+
schema: table.schema,
|
|
991
|
+
data
|
|
992
|
+
};
|
|
993
|
+
}
|
|
994
|
+
function makeObjectRowTable(table) {
|
|
995
|
+
if (table.shape === "object-row-table") {
|
|
996
|
+
return table;
|
|
997
|
+
}
|
|
998
|
+
const length = getTableLength(table);
|
|
999
|
+
const data = new Array(length);
|
|
1000
|
+
for (let rowIndex = 0; rowIndex < length; rowIndex++) {
|
|
1001
|
+
data[rowIndex] = getTableRowAsObject(table, rowIndex);
|
|
1002
|
+
}
|
|
1003
|
+
return {
|
|
1004
|
+
shape: "object-row-table",
|
|
1005
|
+
schema: table.schema,
|
|
1006
|
+
data
|
|
1007
|
+
};
|
|
1008
|
+
}
|
|
1009
|
+
var init_convert_table = __esm({
|
|
1010
|
+
"src/lib/table/simple-table/convert-table.ts"() {
|
|
1011
|
+
init_table_accessors();
|
|
1012
|
+
init_table_schema();
|
|
1013
|
+
init_table_column();
|
|
1014
|
+
}
|
|
1015
|
+
});
|
|
1016
|
+
|
|
916
1017
|
// src/lib/mesh/mesh-utils.ts
|
|
917
1018
|
function getMeshSize(attributes) {
|
|
918
1019
|
let size = 0;
|
|
@@ -1457,549 +1558,134 @@
|
|
|
1457
1558
|
}
|
|
1458
1559
|
});
|
|
1459
1560
|
|
|
1460
|
-
// ../../node_modules/apache-arrow/node_modules/tslib/tslib.
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
var
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
var __makeTemplateObject2;
|
|
1486
|
-
var __importStar2;
|
|
1487
|
-
var __importDefault2;
|
|
1488
|
-
var __classPrivateFieldGet2;
|
|
1489
|
-
var __classPrivateFieldSet2;
|
|
1490
|
-
var __classPrivateFieldIn2;
|
|
1491
|
-
var __createBinding2;
|
|
1492
|
-
(function(factory) {
|
|
1493
|
-
var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {};
|
|
1494
|
-
if (typeof define === "function" && define.amd) {
|
|
1495
|
-
define("tslib", ["exports"], function(exports2) {
|
|
1496
|
-
factory(createExporter(root, createExporter(exports2)));
|
|
1497
|
-
});
|
|
1498
|
-
} else if (typeof module === "object" && typeof module.exports === "object") {
|
|
1499
|
-
factory(createExporter(root, createExporter(module.exports)));
|
|
1500
|
-
} else {
|
|
1501
|
-
factory(createExporter(root));
|
|
1561
|
+
// ../../node_modules/apache-arrow/node_modules/tslib/tslib.es6.mjs
|
|
1562
|
+
function __rest(s, e) {
|
|
1563
|
+
var t = {};
|
|
1564
|
+
for (var p in s)
|
|
1565
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
1566
|
+
t[p] = s[p];
|
|
1567
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
1568
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
1569
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
1570
|
+
t[p[i]] = s[p[i]];
|
|
1571
|
+
}
|
|
1572
|
+
return t;
|
|
1573
|
+
}
|
|
1574
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
1575
|
+
function adopt(value) {
|
|
1576
|
+
return value instanceof P ? value : new P(function(resolve) {
|
|
1577
|
+
resolve(value);
|
|
1578
|
+
});
|
|
1579
|
+
}
|
|
1580
|
+
return new (P || (P = Promise))(function(resolve, reject) {
|
|
1581
|
+
function fulfilled(value) {
|
|
1582
|
+
try {
|
|
1583
|
+
step(generator.next(value));
|
|
1584
|
+
} catch (e) {
|
|
1585
|
+
reject(e);
|
|
1502
1586
|
}
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
}
|
|
1510
|
-
}
|
|
1511
|
-
return function(id, v) {
|
|
1512
|
-
return exports2[id] = previous ? previous(id, v) : v;
|
|
1513
|
-
};
|
|
1587
|
+
}
|
|
1588
|
+
function rejected(value) {
|
|
1589
|
+
try {
|
|
1590
|
+
step(generator["throw"](value));
|
|
1591
|
+
} catch (e) {
|
|
1592
|
+
reject(e);
|
|
1514
1593
|
}
|
|
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
|
-
return t;
|
|
1552
|
-
};
|
|
1553
|
-
__decorate2 = function(decorators, target, key, desc) {
|
|
1554
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1555
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
1556
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
1557
|
-
else
|
|
1558
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
1559
|
-
if (d = decorators[i])
|
|
1560
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1561
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1562
|
-
};
|
|
1563
|
-
__param2 = function(paramIndex, decorator) {
|
|
1564
|
-
return function(target, key) {
|
|
1565
|
-
decorator(target, key, paramIndex);
|
|
1566
|
-
};
|
|
1567
|
-
};
|
|
1568
|
-
__esDecorate2 = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
1569
|
-
function accept(f) {
|
|
1570
|
-
if (f !== void 0 && typeof f !== "function")
|
|
1571
|
-
throw new TypeError("Function expected");
|
|
1572
|
-
return f;
|
|
1573
|
-
}
|
|
1574
|
-
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
1575
|
-
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
1576
|
-
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
1577
|
-
var _, done = false;
|
|
1578
|
-
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
1579
|
-
var context = {};
|
|
1580
|
-
for (var p in contextIn)
|
|
1581
|
-
context[p] = p === "access" ? {} : contextIn[p];
|
|
1582
|
-
for (var p in contextIn.access)
|
|
1583
|
-
context.access[p] = contextIn.access[p];
|
|
1584
|
-
context.addInitializer = function(f) {
|
|
1585
|
-
if (done)
|
|
1586
|
-
throw new TypeError("Cannot add initializers after decoration has completed");
|
|
1587
|
-
extraInitializers.push(accept(f || null));
|
|
1588
|
-
};
|
|
1589
|
-
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
1590
|
-
if (kind === "accessor") {
|
|
1591
|
-
if (result === void 0)
|
|
1592
|
-
continue;
|
|
1593
|
-
if (result === null || typeof result !== "object")
|
|
1594
|
-
throw new TypeError("Object expected");
|
|
1595
|
-
if (_ = accept(result.get))
|
|
1596
|
-
descriptor.get = _;
|
|
1597
|
-
if (_ = accept(result.set))
|
|
1598
|
-
descriptor.set = _;
|
|
1599
|
-
if (_ = accept(result.init))
|
|
1600
|
-
initializers.push(_);
|
|
1601
|
-
} else if (_ = accept(result)) {
|
|
1602
|
-
if (kind === "field")
|
|
1603
|
-
initializers.push(_);
|
|
1604
|
-
else
|
|
1605
|
-
descriptor[key] = _;
|
|
1606
|
-
}
|
|
1607
|
-
}
|
|
1608
|
-
if (target)
|
|
1609
|
-
Object.defineProperty(target, contextIn.name, descriptor);
|
|
1610
|
-
done = true;
|
|
1611
|
-
};
|
|
1612
|
-
__runInitializers2 = function(thisArg, initializers, value) {
|
|
1613
|
-
var useValue = arguments.length > 2;
|
|
1614
|
-
for (var i = 0; i < initializers.length; i++) {
|
|
1615
|
-
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
1616
|
-
}
|
|
1617
|
-
return useValue ? value : void 0;
|
|
1618
|
-
};
|
|
1619
|
-
__propKey2 = function(x) {
|
|
1620
|
-
return typeof x === "symbol" ? x : "".concat(x);
|
|
1621
|
-
};
|
|
1622
|
-
__setFunctionName2 = function(f, name, prefix) {
|
|
1623
|
-
if (typeof name === "symbol")
|
|
1624
|
-
name = name.description ? "[".concat(name.description, "]") : "";
|
|
1625
|
-
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
|
1626
|
-
};
|
|
1627
|
-
__metadata2 = function(metadataKey, metadataValue) {
|
|
1628
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
1629
|
-
return Reflect.metadata(metadataKey, metadataValue);
|
|
1630
|
-
};
|
|
1631
|
-
__awaiter2 = function(thisArg, _arguments, P, generator) {
|
|
1632
|
-
function adopt(value) {
|
|
1633
|
-
return value instanceof P ? value : new P(function(resolve) {
|
|
1634
|
-
resolve(value);
|
|
1635
|
-
});
|
|
1636
|
-
}
|
|
1637
|
-
return new (P || (P = Promise))(function(resolve, reject) {
|
|
1638
|
-
function fulfilled(value) {
|
|
1639
|
-
try {
|
|
1640
|
-
step(generator.next(value));
|
|
1641
|
-
} catch (e) {
|
|
1642
|
-
reject(e);
|
|
1643
|
-
}
|
|
1644
|
-
}
|
|
1645
|
-
function rejected(value) {
|
|
1646
|
-
try {
|
|
1647
|
-
step(generator["throw"](value));
|
|
1648
|
-
} catch (e) {
|
|
1649
|
-
reject(e);
|
|
1650
|
-
}
|
|
1651
|
-
}
|
|
1652
|
-
function step(result) {
|
|
1653
|
-
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
1654
|
-
}
|
|
1655
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
1594
|
+
}
|
|
1595
|
+
function step(result) {
|
|
1596
|
+
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
1597
|
+
}
|
|
1598
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
1599
|
+
});
|
|
1600
|
+
}
|
|
1601
|
+
function __values(o) {
|
|
1602
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
1603
|
+
if (m)
|
|
1604
|
+
return m.call(o);
|
|
1605
|
+
if (o && typeof o.length === "number")
|
|
1606
|
+
return {
|
|
1607
|
+
next: function() {
|
|
1608
|
+
if (o && i >= o.length)
|
|
1609
|
+
o = void 0;
|
|
1610
|
+
return { value: o && o[i++], done: !o };
|
|
1611
|
+
}
|
|
1612
|
+
};
|
|
1613
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
1614
|
+
}
|
|
1615
|
+
function __await(v) {
|
|
1616
|
+
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
1617
|
+
}
|
|
1618
|
+
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
1619
|
+
if (!Symbol.asyncIterator)
|
|
1620
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
1621
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
1622
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() {
|
|
1623
|
+
return this;
|
|
1624
|
+
}, i;
|
|
1625
|
+
function verb(n) {
|
|
1626
|
+
if (g[n])
|
|
1627
|
+
i[n] = function(v) {
|
|
1628
|
+
return new Promise(function(a, b) {
|
|
1629
|
+
q.push([n, v, a, b]) > 1 || resume(n, v);
|
|
1656
1630
|
});
|
|
1657
1631
|
};
|
|
1658
|
-
__generator2 = function(thisArg, body) {
|
|
1659
|
-
var _ = { label: 0, sent: function() {
|
|
1660
|
-
if (t[0] & 1)
|
|
1661
|
-
throw t[1];
|
|
1662
|
-
return t[1];
|
|
1663
|
-
}, trys: [], ops: [] }, f, y, t, g;
|
|
1664
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
1665
|
-
return this;
|
|
1666
|
-
}), g;
|
|
1667
|
-
function verb(n) {
|
|
1668
|
-
return function(v) {
|
|
1669
|
-
return step([n, v]);
|
|
1670
|
-
};
|
|
1671
|
-
}
|
|
1672
|
-
function step(op) {
|
|
1673
|
-
if (f)
|
|
1674
|
-
throw new TypeError("Generator is already executing.");
|
|
1675
|
-
while (g && (g = 0, op[0] && (_ = 0)), _)
|
|
1676
|
-
try {
|
|
1677
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
|
1678
|
-
return t;
|
|
1679
|
-
if (y = 0, t)
|
|
1680
|
-
op = [op[0] & 2, t.value];
|
|
1681
|
-
switch (op[0]) {
|
|
1682
|
-
case 0:
|
|
1683
|
-
case 1:
|
|
1684
|
-
t = op;
|
|
1685
|
-
break;
|
|
1686
|
-
case 4:
|
|
1687
|
-
_.label++;
|
|
1688
|
-
return { value: op[1], done: false };
|
|
1689
|
-
case 5:
|
|
1690
|
-
_.label++;
|
|
1691
|
-
y = op[1];
|
|
1692
|
-
op = [0];
|
|
1693
|
-
continue;
|
|
1694
|
-
case 7:
|
|
1695
|
-
op = _.ops.pop();
|
|
1696
|
-
_.trys.pop();
|
|
1697
|
-
continue;
|
|
1698
|
-
default:
|
|
1699
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
1700
|
-
_ = 0;
|
|
1701
|
-
continue;
|
|
1702
|
-
}
|
|
1703
|
-
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
1704
|
-
_.label = op[1];
|
|
1705
|
-
break;
|
|
1706
|
-
}
|
|
1707
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
1708
|
-
_.label = t[1];
|
|
1709
|
-
t = op;
|
|
1710
|
-
break;
|
|
1711
|
-
}
|
|
1712
|
-
if (t && _.label < t[2]) {
|
|
1713
|
-
_.label = t[2];
|
|
1714
|
-
_.ops.push(op);
|
|
1715
|
-
break;
|
|
1716
|
-
}
|
|
1717
|
-
if (t[2])
|
|
1718
|
-
_.ops.pop();
|
|
1719
|
-
_.trys.pop();
|
|
1720
|
-
continue;
|
|
1721
|
-
}
|
|
1722
|
-
op = body.call(thisArg, _);
|
|
1723
|
-
} catch (e) {
|
|
1724
|
-
op = [6, e];
|
|
1725
|
-
y = 0;
|
|
1726
|
-
} finally {
|
|
1727
|
-
f = t = 0;
|
|
1728
|
-
}
|
|
1729
|
-
if (op[0] & 5)
|
|
1730
|
-
throw op[1];
|
|
1731
|
-
return { value: op[0] ? op[1] : void 0, done: true };
|
|
1732
|
-
}
|
|
1733
|
-
};
|
|
1734
|
-
__exportStar2 = function(m, o) {
|
|
1735
|
-
for (var p in m)
|
|
1736
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
1737
|
-
__createBinding2(o, m, p);
|
|
1738
|
-
};
|
|
1739
|
-
__createBinding2 = Object.create ? function(o, m, k, k2) {
|
|
1740
|
-
if (k2 === void 0)
|
|
1741
|
-
k2 = k;
|
|
1742
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
1743
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
1744
|
-
desc = { enumerable: true, get: function() {
|
|
1745
|
-
return m[k];
|
|
1746
|
-
} };
|
|
1747
|
-
}
|
|
1748
|
-
Object.defineProperty(o, k2, desc);
|
|
1749
|
-
} : function(o, m, k, k2) {
|
|
1750
|
-
if (k2 === void 0)
|
|
1751
|
-
k2 = k;
|
|
1752
|
-
o[k2] = m[k];
|
|
1753
|
-
};
|
|
1754
|
-
__values2 = function(o) {
|
|
1755
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
1756
|
-
if (m)
|
|
1757
|
-
return m.call(o);
|
|
1758
|
-
if (o && typeof o.length === "number")
|
|
1759
|
-
return {
|
|
1760
|
-
next: function() {
|
|
1761
|
-
if (o && i >= o.length)
|
|
1762
|
-
o = void 0;
|
|
1763
|
-
return { value: o && o[i++], done: !o };
|
|
1764
|
-
}
|
|
1765
|
-
};
|
|
1766
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
1767
|
-
};
|
|
1768
|
-
__read2 = function(o, n) {
|
|
1769
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
1770
|
-
if (!m)
|
|
1771
|
-
return o;
|
|
1772
|
-
var i = m.call(o), r, ar = [], e;
|
|
1773
|
-
try {
|
|
1774
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
1775
|
-
ar.push(r.value);
|
|
1776
|
-
} catch (error) {
|
|
1777
|
-
e = { error };
|
|
1778
|
-
} finally {
|
|
1779
|
-
try {
|
|
1780
|
-
if (r && !r.done && (m = i["return"]))
|
|
1781
|
-
m.call(i);
|
|
1782
|
-
} finally {
|
|
1783
|
-
if (e)
|
|
1784
|
-
throw e.error;
|
|
1785
|
-
}
|
|
1786
|
-
}
|
|
1787
|
-
return ar;
|
|
1788
|
-
};
|
|
1789
|
-
__spread2 = function() {
|
|
1790
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
1791
|
-
ar = ar.concat(__read2(arguments[i]));
|
|
1792
|
-
return ar;
|
|
1793
|
-
};
|
|
1794
|
-
__spreadArrays2 = function() {
|
|
1795
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
1796
|
-
s += arguments[i].length;
|
|
1797
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
1798
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
1799
|
-
r[k] = a[j];
|
|
1800
|
-
return r;
|
|
1801
|
-
};
|
|
1802
|
-
__spreadArray2 = function(to, from, pack) {
|
|
1803
|
-
if (pack || arguments.length === 2)
|
|
1804
|
-
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
1805
|
-
if (ar || !(i in from)) {
|
|
1806
|
-
if (!ar)
|
|
1807
|
-
ar = Array.prototype.slice.call(from, 0, i);
|
|
1808
|
-
ar[i] = from[i];
|
|
1809
|
-
}
|
|
1810
|
-
}
|
|
1811
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
1812
|
-
};
|
|
1813
|
-
__await2 = function(v) {
|
|
1814
|
-
return this instanceof __await2 ? (this.v = v, this) : new __await2(v);
|
|
1815
|
-
};
|
|
1816
|
-
__asyncGenerator2 = function(thisArg, _arguments, generator) {
|
|
1817
|
-
if (!Symbol.asyncIterator)
|
|
1818
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
1819
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
1820
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() {
|
|
1821
|
-
return this;
|
|
1822
|
-
}, i;
|
|
1823
|
-
function verb(n) {
|
|
1824
|
-
if (g[n])
|
|
1825
|
-
i[n] = function(v) {
|
|
1826
|
-
return new Promise(function(a, b) {
|
|
1827
|
-
q.push([n, v, a, b]) > 1 || resume(n, v);
|
|
1828
|
-
});
|
|
1829
|
-
};
|
|
1830
|
-
}
|
|
1831
|
-
function resume(n, v) {
|
|
1832
|
-
try {
|
|
1833
|
-
step(g[n](v));
|
|
1834
|
-
} catch (e) {
|
|
1835
|
-
settle(q[0][3], e);
|
|
1836
|
-
}
|
|
1837
|
-
}
|
|
1838
|
-
function step(r) {
|
|
1839
|
-
r.value instanceof __await2 ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r);
|
|
1840
|
-
}
|
|
1841
|
-
function fulfill(value) {
|
|
1842
|
-
resume("next", value);
|
|
1843
|
-
}
|
|
1844
|
-
function reject(value) {
|
|
1845
|
-
resume("throw", value);
|
|
1846
|
-
}
|
|
1847
|
-
function settle(f, v) {
|
|
1848
|
-
if (f(v), q.shift(), q.length)
|
|
1849
|
-
resume(q[0][0], q[0][1]);
|
|
1850
|
-
}
|
|
1851
|
-
};
|
|
1852
|
-
__asyncDelegator2 = function(o) {
|
|
1853
|
-
var i, p;
|
|
1854
|
-
return i = {}, verb("next"), verb("throw", function(e) {
|
|
1855
|
-
throw e;
|
|
1856
|
-
}), verb("return"), i[Symbol.iterator] = function() {
|
|
1857
|
-
return this;
|
|
1858
|
-
}, i;
|
|
1859
|
-
function verb(n, f) {
|
|
1860
|
-
i[n] = o[n] ? function(v) {
|
|
1861
|
-
return (p = !p) ? { value: __await2(o[n](v)), done: false } : f ? f(v) : v;
|
|
1862
|
-
} : f;
|
|
1863
|
-
}
|
|
1864
|
-
};
|
|
1865
|
-
__asyncValues2 = function(o) {
|
|
1866
|
-
if (!Symbol.asyncIterator)
|
|
1867
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
1868
|
-
var m = o[Symbol.asyncIterator], i;
|
|
1869
|
-
return m ? m.call(o) : (o = typeof __values2 === "function" ? __values2(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() {
|
|
1870
|
-
return this;
|
|
1871
|
-
}, i);
|
|
1872
|
-
function verb(n) {
|
|
1873
|
-
i[n] = o[n] && function(v) {
|
|
1874
|
-
return new Promise(function(resolve, reject) {
|
|
1875
|
-
v = o[n](v), settle(resolve, reject, v.done, v.value);
|
|
1876
|
-
});
|
|
1877
|
-
};
|
|
1878
|
-
}
|
|
1879
|
-
function settle(resolve, reject, d, v) {
|
|
1880
|
-
Promise.resolve(v).then(function(v2) {
|
|
1881
|
-
resolve({ value: v2, done: d });
|
|
1882
|
-
}, reject);
|
|
1883
|
-
}
|
|
1884
|
-
};
|
|
1885
|
-
__makeTemplateObject2 = function(cooked, raw) {
|
|
1886
|
-
if (Object.defineProperty) {
|
|
1887
|
-
Object.defineProperty(cooked, "raw", { value: raw });
|
|
1888
|
-
} else {
|
|
1889
|
-
cooked.raw = raw;
|
|
1890
|
-
}
|
|
1891
|
-
return cooked;
|
|
1892
|
-
};
|
|
1893
|
-
var __setModuleDefault = Object.create ? function(o, v) {
|
|
1894
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
1895
|
-
} : function(o, v) {
|
|
1896
|
-
o["default"] = v;
|
|
1897
|
-
};
|
|
1898
|
-
__importStar2 = function(mod) {
|
|
1899
|
-
if (mod && mod.__esModule)
|
|
1900
|
-
return mod;
|
|
1901
|
-
var result = {};
|
|
1902
|
-
if (mod != null) {
|
|
1903
|
-
for (var k in mod)
|
|
1904
|
-
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
1905
|
-
__createBinding2(result, mod, k);
|
|
1906
|
-
}
|
|
1907
|
-
__setModuleDefault(result, mod);
|
|
1908
|
-
return result;
|
|
1909
|
-
};
|
|
1910
|
-
__importDefault2 = function(mod) {
|
|
1911
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
1912
|
-
};
|
|
1913
|
-
__classPrivateFieldGet2 = function(receiver, state, kind, f) {
|
|
1914
|
-
if (kind === "a" && !f)
|
|
1915
|
-
throw new TypeError("Private accessor was defined without a getter");
|
|
1916
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
1917
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
1918
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
1919
|
-
};
|
|
1920
|
-
__classPrivateFieldSet2 = function(receiver, state, value, kind, f) {
|
|
1921
|
-
if (kind === "m")
|
|
1922
|
-
throw new TypeError("Private method is not writable");
|
|
1923
|
-
if (kind === "a" && !f)
|
|
1924
|
-
throw new TypeError("Private accessor was defined without a setter");
|
|
1925
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
1926
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
1927
|
-
return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
|
|
1928
|
-
};
|
|
1929
|
-
__classPrivateFieldIn2 = function(state, receiver) {
|
|
1930
|
-
if (receiver === null || typeof receiver !== "object" && typeof receiver !== "function")
|
|
1931
|
-
throw new TypeError("Cannot use 'in' operator on non-object");
|
|
1932
|
-
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
1933
|
-
};
|
|
1934
|
-
exporter("__extends", __extends2);
|
|
1935
|
-
exporter("__assign", __assign2);
|
|
1936
|
-
exporter("__rest", __rest2);
|
|
1937
|
-
exporter("__decorate", __decorate2);
|
|
1938
|
-
exporter("__param", __param2);
|
|
1939
|
-
exporter("__esDecorate", __esDecorate2);
|
|
1940
|
-
exporter("__runInitializers", __runInitializers2);
|
|
1941
|
-
exporter("__propKey", __propKey2);
|
|
1942
|
-
exporter("__setFunctionName", __setFunctionName2);
|
|
1943
|
-
exporter("__metadata", __metadata2);
|
|
1944
|
-
exporter("__awaiter", __awaiter2);
|
|
1945
|
-
exporter("__generator", __generator2);
|
|
1946
|
-
exporter("__exportStar", __exportStar2);
|
|
1947
|
-
exporter("__createBinding", __createBinding2);
|
|
1948
|
-
exporter("__values", __values2);
|
|
1949
|
-
exporter("__read", __read2);
|
|
1950
|
-
exporter("__spread", __spread2);
|
|
1951
|
-
exporter("__spreadArrays", __spreadArrays2);
|
|
1952
|
-
exporter("__spreadArray", __spreadArray2);
|
|
1953
|
-
exporter("__await", __await2);
|
|
1954
|
-
exporter("__asyncGenerator", __asyncGenerator2);
|
|
1955
|
-
exporter("__asyncDelegator", __asyncDelegator2);
|
|
1956
|
-
exporter("__asyncValues", __asyncValues2);
|
|
1957
|
-
exporter("__makeTemplateObject", __makeTemplateObject2);
|
|
1958
|
-
exporter("__importStar", __importStar2);
|
|
1959
|
-
exporter("__importDefault", __importDefault2);
|
|
1960
|
-
exporter("__classPrivateFieldGet", __classPrivateFieldGet2);
|
|
1961
|
-
exporter("__classPrivateFieldSet", __classPrivateFieldSet2);
|
|
1962
|
-
exporter("__classPrivateFieldIn", __classPrivateFieldIn2);
|
|
1963
|
-
});
|
|
1964
1632
|
}
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
1633
|
+
function resume(n, v) {
|
|
1634
|
+
try {
|
|
1635
|
+
step(g[n](v));
|
|
1636
|
+
} catch (e) {
|
|
1637
|
+
settle(q[0][3], e);
|
|
1638
|
+
}
|
|
1639
|
+
}
|
|
1640
|
+
function step(r) {
|
|
1641
|
+
r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r);
|
|
1642
|
+
}
|
|
1643
|
+
function fulfill(value) {
|
|
1644
|
+
resume("next", value);
|
|
1645
|
+
}
|
|
1646
|
+
function reject(value) {
|
|
1647
|
+
resume("throw", value);
|
|
1648
|
+
}
|
|
1649
|
+
function settle(f, v) {
|
|
1650
|
+
if (f(v), q.shift(), q.length)
|
|
1651
|
+
resume(q[0][0], q[0][1]);
|
|
1652
|
+
}
|
|
1653
|
+
}
|
|
1654
|
+
function __asyncDelegator(o) {
|
|
1655
|
+
var i, p;
|
|
1656
|
+
return i = {}, verb("next"), verb("throw", function(e) {
|
|
1657
|
+
throw e;
|
|
1658
|
+
}), verb("return"), i[Symbol.iterator] = function() {
|
|
1659
|
+
return this;
|
|
1660
|
+
}, i;
|
|
1661
|
+
function verb(n, f) {
|
|
1662
|
+
i[n] = o[n] ? function(v) {
|
|
1663
|
+
return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v;
|
|
1664
|
+
} : f;
|
|
1665
|
+
}
|
|
1666
|
+
}
|
|
1667
|
+
function __asyncValues(o) {
|
|
1668
|
+
if (!Symbol.asyncIterator)
|
|
1669
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
1670
|
+
var m = o[Symbol.asyncIterator], i;
|
|
1671
|
+
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() {
|
|
1672
|
+
return this;
|
|
1673
|
+
}, i);
|
|
1674
|
+
function verb(n) {
|
|
1675
|
+
i[n] = o[n] && function(v) {
|
|
1676
|
+
return new Promise(function(resolve, reject) {
|
|
1677
|
+
v = o[n](v), settle(resolve, reject, v.done, v.value);
|
|
1678
|
+
});
|
|
1679
|
+
};
|
|
1680
|
+
}
|
|
1681
|
+
function settle(resolve, reject, d, v) {
|
|
1682
|
+
Promise.resolve(v).then(function(v2) {
|
|
1683
|
+
resolve({ value: v2, done: d });
|
|
1684
|
+
}, reject);
|
|
1685
|
+
}
|
|
1686
|
+
}
|
|
1687
|
+
var init_tslib_es6 = __esm({
|
|
1688
|
+
"../../node_modules/apache-arrow/node_modules/tslib/tslib.es6.mjs"() {
|
|
2003
1689
|
}
|
|
2004
1690
|
});
|
|
2005
1691
|
|
|
@@ -2015,64 +1701,9 @@
|
|
|
2015
1701
|
});
|
|
2016
1702
|
|
|
2017
1703
|
// ../../node_modules/apache-arrow/util/compat.mjs
|
|
2018
|
-
var
|
|
1704
|
+
var isNumber, isBoolean, isFunction, isObject, isPromise, isIterable, isAsyncIterable, isArrowJSON, isIteratorResult, isFileHandle, isFetchResponse, isReadableInterop, isWritableDOMStream, isReadableDOMStream, isWritableNodeStream, isReadableNodeStream, isFlatbuffersByteBuffer;
|
|
2019
1705
|
var init_compat = __esm({
|
|
2020
1706
|
"../../node_modules/apache-arrow/util/compat.mjs"() {
|
|
2021
|
-
[BigIntCtor, BigIntAvailable] = (() => {
|
|
2022
|
-
const BigIntUnavailableError = () => {
|
|
2023
|
-
throw new Error("BigInt is not available in this environment");
|
|
2024
|
-
};
|
|
2025
|
-
function BigIntUnavailable() {
|
|
2026
|
-
throw BigIntUnavailableError();
|
|
2027
|
-
}
|
|
2028
|
-
BigIntUnavailable.asIntN = () => {
|
|
2029
|
-
throw BigIntUnavailableError();
|
|
2030
|
-
};
|
|
2031
|
-
BigIntUnavailable.asUintN = () => {
|
|
2032
|
-
throw BigIntUnavailableError();
|
|
2033
|
-
};
|
|
2034
|
-
return typeof BigInt !== "undefined" ? [BigInt, true] : [BigIntUnavailable, false];
|
|
2035
|
-
})();
|
|
2036
|
-
[BigInt64ArrayCtor, BigInt64ArrayAvailable] = (() => {
|
|
2037
|
-
const BigInt64ArrayUnavailableError = () => {
|
|
2038
|
-
throw new Error("BigInt64Array is not available in this environment");
|
|
2039
|
-
};
|
|
2040
|
-
class BigInt64ArrayUnavailable {
|
|
2041
|
-
static get BYTES_PER_ELEMENT() {
|
|
2042
|
-
return 8;
|
|
2043
|
-
}
|
|
2044
|
-
static of() {
|
|
2045
|
-
throw BigInt64ArrayUnavailableError();
|
|
2046
|
-
}
|
|
2047
|
-
static from() {
|
|
2048
|
-
throw BigInt64ArrayUnavailableError();
|
|
2049
|
-
}
|
|
2050
|
-
constructor() {
|
|
2051
|
-
throw BigInt64ArrayUnavailableError();
|
|
2052
|
-
}
|
|
2053
|
-
}
|
|
2054
|
-
return typeof BigInt64Array !== "undefined" ? [BigInt64Array, true] : [BigInt64ArrayUnavailable, false];
|
|
2055
|
-
})();
|
|
2056
|
-
[BigUint64ArrayCtor, BigUint64ArrayAvailable] = (() => {
|
|
2057
|
-
const BigUint64ArrayUnavailableError = () => {
|
|
2058
|
-
throw new Error("BigUint64Array is not available in this environment");
|
|
2059
|
-
};
|
|
2060
|
-
class BigUint64ArrayUnavailable {
|
|
2061
|
-
static get BYTES_PER_ELEMENT() {
|
|
2062
|
-
return 8;
|
|
2063
|
-
}
|
|
2064
|
-
static of() {
|
|
2065
|
-
throw BigUint64ArrayUnavailableError();
|
|
2066
|
-
}
|
|
2067
|
-
static from() {
|
|
2068
|
-
throw BigUint64ArrayUnavailableError();
|
|
2069
|
-
}
|
|
2070
|
-
constructor() {
|
|
2071
|
-
throw BigUint64ArrayUnavailableError();
|
|
2072
|
-
}
|
|
2073
|
-
}
|
|
2074
|
-
return typeof BigUint64Array !== "undefined" ? [BigUint64Array, true] : [BigUint64ArrayUnavailable, false];
|
|
2075
|
-
})();
|
|
2076
1707
|
isNumber = (x) => typeof x === "number";
|
|
2077
1708
|
isBoolean = (x) => typeof x === "boolean";
|
|
2078
1709
|
isFunction = (x) => typeof x === "function";
|
|
@@ -2304,18 +1935,18 @@
|
|
|
2304
1935
|
var SharedArrayBuf, toInt8Array, toInt16Array, toInt32Array, toBigInt64Array, toUint8Array, toUint16Array, toUint32Array, toBigUint64Array, toFloat32Array, toFloat64Array, toUint8ClampedArray, pump, toInt8ArrayIterator, toInt16ArrayIterator, toInt32ArrayIterator, toUint8ArrayIterator, toUint16ArrayIterator, toUint32ArrayIterator, toFloat32ArrayIterator, toFloat64ArrayIterator, toUint8ClampedArrayIterator, toInt8ArrayAsyncIterator, toInt16ArrayAsyncIterator, toInt32ArrayAsyncIterator, toUint8ArrayAsyncIterator, toUint16ArrayAsyncIterator, toUint32ArrayAsyncIterator, toFloat32ArrayAsyncIterator, toFloat64ArrayAsyncIterator, toUint8ClampedArrayAsyncIterator;
|
|
2305
1936
|
var init_buffer = __esm({
|
|
2306
1937
|
"../../node_modules/apache-arrow/util/buffer.mjs"() {
|
|
2307
|
-
|
|
1938
|
+
init_tslib_es6();
|
|
2308
1939
|
init_utf8();
|
|
2309
1940
|
init_compat();
|
|
2310
1941
|
SharedArrayBuf = typeof SharedArrayBuffer !== "undefined" ? SharedArrayBuffer : ArrayBuffer;
|
|
2311
1942
|
toInt8Array = (input) => toArrayBufferView(Int8Array, input);
|
|
2312
1943
|
toInt16Array = (input) => toArrayBufferView(Int16Array, input);
|
|
2313
1944
|
toInt32Array = (input) => toArrayBufferView(Int32Array, input);
|
|
2314
|
-
toBigInt64Array = (input) => toArrayBufferView(
|
|
1945
|
+
toBigInt64Array = (input) => toArrayBufferView(BigInt64Array, input);
|
|
2315
1946
|
toUint8Array = (input) => toArrayBufferView(Uint8Array, input);
|
|
2316
1947
|
toUint16Array = (input) => toArrayBufferView(Uint16Array, input);
|
|
2317
1948
|
toUint32Array = (input) => toArrayBufferView(Uint32Array, input);
|
|
2318
|
-
toBigUint64Array = (input) => toArrayBufferView(
|
|
1949
|
+
toBigUint64Array = (input) => toArrayBufferView(BigUint64Array, input);
|
|
2319
1950
|
toFloat32Array = (input) => toArrayBufferView(Float32Array, input);
|
|
2320
1951
|
toFloat64Array = (input) => toArrayBufferView(Float64Array, input);
|
|
2321
1952
|
toUint8ClampedArray = (input) => toArrayBufferView(Uint8ClampedArray, input);
|
|
@@ -2522,7 +2153,7 @@
|
|
|
2522
2153
|
var adapters_default, pump2, AdaptiveByteReader, onEvent;
|
|
2523
2154
|
var init_adapters = __esm({
|
|
2524
2155
|
"../../node_modules/apache-arrow/io/adapters.mjs"() {
|
|
2525
|
-
|
|
2156
|
+
init_tslib_es6();
|
|
2526
2157
|
init_buffer();
|
|
2527
2158
|
adapters_default = {
|
|
2528
2159
|
fromIterable(source) {
|
|
@@ -2729,8 +2360,8 @@
|
|
|
2729
2360
|
var bn_exports = {};
|
|
2730
2361
|
__export(bn_exports, {
|
|
2731
2362
|
BN: () => BN,
|
|
2732
|
-
|
|
2733
|
-
|
|
2363
|
+
bigNumToBigInt: () => bigNumToBigInt,
|
|
2364
|
+
bigNumToString: () => bigNumToString,
|
|
2734
2365
|
isArrowBigNumSymbol: () => isArrowBigNumSymbol
|
|
2735
2366
|
});
|
|
2736
2367
|
function BigNum(x, ...xs) {
|
|
@@ -2748,10 +2379,10 @@
|
|
|
2748
2379
|
function DecimalBigNum(...args) {
|
|
2749
2380
|
return BigNum.apply(this, args);
|
|
2750
2381
|
}
|
|
2751
|
-
function
|
|
2382
|
+
function bigNumToNumber(bn) {
|
|
2752
2383
|
const { buffer, byteOffset, length, "signed": signed } = bn;
|
|
2753
|
-
const words = new
|
|
2754
|
-
const negative = signed && words
|
|
2384
|
+
const words = new BigUint64Array(buffer, byteOffset, length);
|
|
2385
|
+
const negative = signed && words.at(-1) & BigInt(1) << BigInt(63);
|
|
2755
2386
|
let number = negative ? BigInt(1) : BigInt(0);
|
|
2756
2387
|
let i = BigInt(0);
|
|
2757
2388
|
if (!negative) {
|
|
@@ -2766,7 +2397,7 @@
|
|
|
2766
2397
|
}
|
|
2767
2398
|
return number;
|
|
2768
2399
|
}
|
|
2769
|
-
function
|
|
2400
|
+
function unsignedBigNumToString(a) {
|
|
2770
2401
|
let digits = "";
|
|
2771
2402
|
const base64 = new Uint32Array(2);
|
|
2772
2403
|
let base32 = new Uint16Array(a.buffer, a.byteOffset, a.byteLength / 2);
|
|
@@ -2782,48 +2413,72 @@
|
|
|
2782
2413
|
base64[0] = base64[0] - base64[1] * 10;
|
|
2783
2414
|
digits = `${base64[0]}${digits}`;
|
|
2784
2415
|
} while (checks[0] || checks[1] || checks[2] || checks[3]);
|
|
2785
|
-
return digits ? digits : `0`;
|
|
2416
|
+
return digits !== null && digits !== void 0 ? digits : `0`;
|
|
2786
2417
|
}
|
|
2787
|
-
var isArrowBigNumSymbol,
|
|
2418
|
+
var isArrowBigNumSymbol, bigNumToString, bigNumToBigInt, BN;
|
|
2788
2419
|
var init_bn = __esm({
|
|
2789
2420
|
"../../node_modules/apache-arrow/util/bn.mjs"() {
|
|
2790
2421
|
init_buffer();
|
|
2791
|
-
init_compat();
|
|
2792
2422
|
isArrowBigNumSymbol = Symbol.for("isArrowBigNum");
|
|
2793
2423
|
BigNum.prototype[isArrowBigNumSymbol] = true;
|
|
2794
2424
|
BigNum.prototype.toJSON = function() {
|
|
2795
|
-
return `"${
|
|
2425
|
+
return `"${bigNumToString(this)}"`;
|
|
2796
2426
|
};
|
|
2797
2427
|
BigNum.prototype.valueOf = function() {
|
|
2798
|
-
return
|
|
2428
|
+
return bigNumToNumber(this);
|
|
2799
2429
|
};
|
|
2800
2430
|
BigNum.prototype.toString = function() {
|
|
2801
|
-
return
|
|
2431
|
+
return bigNumToString(this);
|
|
2802
2432
|
};
|
|
2803
2433
|
BigNum.prototype[Symbol.toPrimitive] = function(hint = "default") {
|
|
2804
2434
|
switch (hint) {
|
|
2805
2435
|
case "number":
|
|
2806
|
-
return
|
|
2436
|
+
return bigNumToNumber(this);
|
|
2807
2437
|
case "string":
|
|
2808
|
-
return
|
|
2438
|
+
return bigNumToString(this);
|
|
2809
2439
|
case "default":
|
|
2810
|
-
return
|
|
2440
|
+
return bigNumToBigInt(this);
|
|
2811
2441
|
}
|
|
2812
|
-
return
|
|
2442
|
+
return bigNumToString(this);
|
|
2813
2443
|
};
|
|
2814
2444
|
Object.setPrototypeOf(SignedBigNum.prototype, Object.create(Int32Array.prototype));
|
|
2815
2445
|
Object.setPrototypeOf(UnsignedBigNum.prototype, Object.create(Uint32Array.prototype));
|
|
2816
2446
|
Object.setPrototypeOf(DecimalBigNum.prototype, Object.create(Uint32Array.prototype));
|
|
2817
|
-
Object.assign(SignedBigNum.prototype, BigNum.prototype, { "constructor": SignedBigNum, "signed": true, "TypedArray": Int32Array, "BigIntArray":
|
|
2818
|
-
Object.assign(UnsignedBigNum.prototype, BigNum.prototype, { "constructor": UnsignedBigNum, "signed": false, "TypedArray": Uint32Array, "BigIntArray":
|
|
2819
|
-
Object.assign(DecimalBigNum.prototype, BigNum.prototype, { "constructor": DecimalBigNum, "signed": true, "TypedArray": Uint32Array, "BigIntArray":
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2447
|
+
Object.assign(SignedBigNum.prototype, BigNum.prototype, { "constructor": SignedBigNum, "signed": true, "TypedArray": Int32Array, "BigIntArray": BigInt64Array });
|
|
2448
|
+
Object.assign(UnsignedBigNum.prototype, BigNum.prototype, { "constructor": UnsignedBigNum, "signed": false, "TypedArray": Uint32Array, "BigIntArray": BigUint64Array });
|
|
2449
|
+
Object.assign(DecimalBigNum.prototype, BigNum.prototype, { "constructor": DecimalBigNum, "signed": true, "TypedArray": Uint32Array, "BigIntArray": BigUint64Array });
|
|
2450
|
+
bigNumToString = (a) => {
|
|
2451
|
+
if (a.byteLength === 8) {
|
|
2452
|
+
const bigIntArray = new a["BigIntArray"](a.buffer, a.byteOffset, 1);
|
|
2453
|
+
return `${bigIntArray[0]}`;
|
|
2454
|
+
}
|
|
2455
|
+
if (!a["signed"]) {
|
|
2456
|
+
return unsignedBigNumToString(a);
|
|
2457
|
+
}
|
|
2458
|
+
let array = new Uint16Array(a.buffer, a.byteOffset, a.byteLength / 2);
|
|
2459
|
+
const highOrderWord = new Int16Array([array.at(-1)])[0];
|
|
2460
|
+
if (highOrderWord >= 0) {
|
|
2461
|
+
return unsignedBigNumToString(a);
|
|
2462
|
+
}
|
|
2463
|
+
array = array.slice();
|
|
2464
|
+
let carry = 1;
|
|
2465
|
+
for (let i = 0; i < array.length; i++) {
|
|
2466
|
+
const elem = array[i];
|
|
2467
|
+
const updated = ~elem + carry;
|
|
2468
|
+
array[i] = updated;
|
|
2469
|
+
carry &= elem === 0 ? 1 : 0;
|
|
2470
|
+
}
|
|
2471
|
+
const negated = unsignedBigNumToString(array);
|
|
2472
|
+
return `-${negated}`;
|
|
2473
|
+
};
|
|
2474
|
+
bigNumToBigInt = (a) => {
|
|
2475
|
+
if (a.byteLength === 8) {
|
|
2476
|
+
const bigIntArray = new a["BigIntArray"](a.buffer, a.byteOffset, 1);
|
|
2477
|
+
return bigIntArray[0];
|
|
2478
|
+
} else {
|
|
2479
|
+
return bigNumToString(a);
|
|
2480
|
+
}
|
|
2481
|
+
};
|
|
2827
2482
|
BN = class {
|
|
2828
2483
|
static new(num, isSigned) {
|
|
2829
2484
|
switch (isSigned) {
|
|
@@ -2836,7 +2491,7 @@
|
|
|
2836
2491
|
case Int8Array:
|
|
2837
2492
|
case Int16Array:
|
|
2838
2493
|
case Int32Array:
|
|
2839
|
-
case
|
|
2494
|
+
case BigInt64Array:
|
|
2840
2495
|
return new SignedBigNum(num);
|
|
2841
2496
|
}
|
|
2842
2497
|
if (num.byteLength === 16) {
|
|
@@ -2860,6 +2515,18 @@
|
|
|
2860
2515
|
}
|
|
2861
2516
|
});
|
|
2862
2517
|
|
|
2518
|
+
// ../../node_modules/apache-arrow/util/bigint.mjs
|
|
2519
|
+
function bigIntToNumber(number) {
|
|
2520
|
+
if (typeof number === "bigint" && (number < Number.MIN_SAFE_INTEGER || number > Number.MAX_SAFE_INTEGER)) {
|
|
2521
|
+
throw new TypeError(`${number} is not safe to convert to a number.`);
|
|
2522
|
+
}
|
|
2523
|
+
return Number(number);
|
|
2524
|
+
}
|
|
2525
|
+
var init_bigint = __esm({
|
|
2526
|
+
"../../node_modules/apache-arrow/util/bigint.mjs"() {
|
|
2527
|
+
}
|
|
2528
|
+
});
|
|
2529
|
+
|
|
2863
2530
|
// ../../node_modules/apache-arrow/type.mjs
|
|
2864
2531
|
function strideForType(type) {
|
|
2865
2532
|
const t = type;
|
|
@@ -2883,6 +2550,7 @@
|
|
|
2883
2550
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, DataType2, Null2, Int_, Int82, Int162, Int322, Int642, Uint82, Uint162, Uint322, Uint642, Float2, Float162, Float322, Float642, Binary2, Utf82, Bool2, Decimal, Date_, Time_, Timestamp_, Interval_, List, Struct2, Union_, FixedSizeBinary, FixedSizeList2, Map_, getId, Dictionary;
|
|
2884
2551
|
var init_type = __esm({
|
|
2885
2552
|
"../../node_modules/apache-arrow/type.mjs"() {
|
|
2553
|
+
init_bigint();
|
|
2886
2554
|
init_enum2();
|
|
2887
2555
|
DataType2 = class {
|
|
2888
2556
|
static isNull(x) {
|
|
@@ -3416,7 +3084,7 @@
|
|
|
3416
3084
|
this.indices = indices;
|
|
3417
3085
|
this.dictionary = dictionary;
|
|
3418
3086
|
this.isOrdered = isOrdered || false;
|
|
3419
|
-
this.id = id == null ? getId() :
|
|
3087
|
+
this.id = id == null ? getId() : bigIntToNumber(id);
|
|
3420
3088
|
}
|
|
3421
3089
|
get typeId() {
|
|
3422
3090
|
return Type2.Dictionary;
|
|
@@ -4797,31 +4465,6 @@
|
|
|
4797
4465
|
init_buffer();
|
|
4798
4466
|
kUnknownNullCount = -1;
|
|
4799
4467
|
Data = class {
|
|
4800
|
-
constructor(type, offset, length, nullCount, buffers, children = [], dictionary) {
|
|
4801
|
-
this.type = type;
|
|
4802
|
-
this.children = children;
|
|
4803
|
-
this.dictionary = dictionary;
|
|
4804
|
-
this.offset = Math.floor(Math.max(offset || 0, 0));
|
|
4805
|
-
this.length = Math.floor(Math.max(length || 0, 0));
|
|
4806
|
-
this._nullCount = Math.floor(Math.max(nullCount || 0, -1));
|
|
4807
|
-
let buffer;
|
|
4808
|
-
if (buffers instanceof Data) {
|
|
4809
|
-
this.stride = buffers.stride;
|
|
4810
|
-
this.values = buffers.values;
|
|
4811
|
-
this.typeIds = buffers.typeIds;
|
|
4812
|
-
this.nullBitmap = buffers.nullBitmap;
|
|
4813
|
-
this.valueOffsets = buffers.valueOffsets;
|
|
4814
|
-
} else {
|
|
4815
|
-
this.stride = strideForType(type);
|
|
4816
|
-
if (buffers) {
|
|
4817
|
-
(buffer = buffers[0]) && (this.valueOffsets = buffer);
|
|
4818
|
-
(buffer = buffers[1]) && (this.values = buffer);
|
|
4819
|
-
(buffer = buffers[2]) && (this.nullBitmap = buffer);
|
|
4820
|
-
(buffer = buffers[3]) && (this.typeIds = buffer);
|
|
4821
|
-
}
|
|
4822
|
-
}
|
|
4823
|
-
this.nullable = this._nullCount !== 0 && this.nullBitmap && this.nullBitmap.byteLength > 0;
|
|
4824
|
-
}
|
|
4825
4468
|
get typeId() {
|
|
4826
4469
|
return this.type.typeId;
|
|
4827
4470
|
}
|
|
@@ -4848,6 +4491,31 @@
|
|
|
4848
4491
|
}
|
|
4849
4492
|
return nullCount;
|
|
4850
4493
|
}
|
|
4494
|
+
constructor(type, offset, length, nullCount, buffers, children = [], dictionary) {
|
|
4495
|
+
this.type = type;
|
|
4496
|
+
this.children = children;
|
|
4497
|
+
this.dictionary = dictionary;
|
|
4498
|
+
this.offset = Math.floor(Math.max(offset || 0, 0));
|
|
4499
|
+
this.length = Math.floor(Math.max(length || 0, 0));
|
|
4500
|
+
this._nullCount = Math.floor(Math.max(nullCount || 0, -1));
|
|
4501
|
+
let buffer;
|
|
4502
|
+
if (buffers instanceof Data) {
|
|
4503
|
+
this.stride = buffers.stride;
|
|
4504
|
+
this.values = buffers.values;
|
|
4505
|
+
this.typeIds = buffers.typeIds;
|
|
4506
|
+
this.nullBitmap = buffers.nullBitmap;
|
|
4507
|
+
this.valueOffsets = buffers.valueOffsets;
|
|
4508
|
+
} else {
|
|
4509
|
+
this.stride = strideForType(type);
|
|
4510
|
+
if (buffers) {
|
|
4511
|
+
(buffer = buffers[0]) && (this.valueOffsets = buffer);
|
|
4512
|
+
(buffer = buffers[1]) && (this.values = buffer);
|
|
4513
|
+
(buffer = buffers[2]) && (this.nullBitmap = buffer);
|
|
4514
|
+
(buffer = buffers[3]) && (this.typeIds = buffer);
|
|
4515
|
+
}
|
|
4516
|
+
}
|
|
4517
|
+
this.nullable = this._nullCount !== 0 && this.nullBitmap && this.nullBitmap.byteLength > 0;
|
|
4518
|
+
}
|
|
4851
4519
|
getValid(index) {
|
|
4852
4520
|
if (this.nullable && this.nullCount > 0) {
|
|
4853
4521
|
const pos = this.offset + index;
|
|
@@ -5501,7 +5169,7 @@
|
|
|
5501
5169
|
this.type = type;
|
|
5502
5170
|
this.stride = strideForType(type);
|
|
5503
5171
|
this.numChildren = (_d2 = (_c2 = type.children) === null || _c2 === void 0 ? void 0 : _c2.length) !== null && _d2 !== void 0 ? _d2 : 0;
|
|
5504
|
-
this.length = this._offsets
|
|
5172
|
+
this.length = this._offsets.at(-1);
|
|
5505
5173
|
}
|
|
5506
5174
|
get byteLength() {
|
|
5507
5175
|
if (this._byteLength === -1) {
|
|
@@ -5568,9 +5236,9 @@
|
|
|
5568
5236
|
case 1:
|
|
5569
5237
|
return data[0].values.subarray(0, length * stride);
|
|
5570
5238
|
default:
|
|
5571
|
-
return data.reduce((memo, { values }) => {
|
|
5572
|
-
memo.array.set(values, memo.offset);
|
|
5573
|
-
memo.offset +=
|
|
5239
|
+
return data.reduce((memo, { values, length: chunk_length }) => {
|
|
5240
|
+
memo.array.set(values.subarray(0, chunk_length * stride), memo.offset);
|
|
5241
|
+
memo.offset += chunk_length * stride;
|
|
5574
5242
|
return memo;
|
|
5575
5243
|
}, { array: new ArrayType(length * stride), offset: 0 }).array;
|
|
5576
5244
|
}
|
|
@@ -5714,15 +5382,12 @@ return true;`);
|
|
|
5714
5382
|
function valueToCase(x) {
|
|
5715
5383
|
if (typeof x !== "bigint") {
|
|
5716
5384
|
return valueToString(x);
|
|
5717
|
-
} else if (BigIntAvailable) {
|
|
5718
|
-
return `${valueToString(x)}n`;
|
|
5719
5385
|
}
|
|
5720
|
-
return
|
|
5386
|
+
return `${valueToString(x)}n`;
|
|
5721
5387
|
}
|
|
5722
5388
|
var init_valid = __esm({
|
|
5723
5389
|
"../../node_modules/apache-arrow/builder/valid.mjs"() {
|
|
5724
5390
|
init_pretty();
|
|
5725
|
-
init_compat();
|
|
5726
5391
|
}
|
|
5727
5392
|
});
|
|
5728
5393
|
|
|
@@ -5731,7 +5396,7 @@ return true;`);
|
|
|
5731
5396
|
var init_buffer2 = __esm({
|
|
5732
5397
|
"../../node_modules/apache-arrow/builder/buffer.mjs"() {
|
|
5733
5398
|
init_buffer();
|
|
5734
|
-
roundLengthUpToNearest64Bytes = (len, BPE) => (len * BPE + 63 & ~63 || 64) / BPE;
|
|
5399
|
+
roundLengthUpToNearest64Bytes = (len, BPE) => (Math.ceil(len) * BPE + 63 & ~63 || 64) / BPE;
|
|
5735
5400
|
sliceOrExtendArray = (arr, len = 0) => arr.length >= len ? arr.subarray(0, len) : memcpy(new arr.constructor(len), arr, 0);
|
|
5736
5401
|
BufferBuilder = class {
|
|
5737
5402
|
constructor(buffer, stride = 1) {
|
|
@@ -5739,10 +5404,10 @@ return true;`);
|
|
|
5739
5404
|
this.stride = stride;
|
|
5740
5405
|
this.BYTES_PER_ELEMENT = buffer.BYTES_PER_ELEMENT;
|
|
5741
5406
|
this.ArrayType = buffer.constructor;
|
|
5742
|
-
this._resize(this.length = Math.
|
|
5407
|
+
this._resize(this.length = Math.ceil(buffer.length / stride));
|
|
5743
5408
|
}
|
|
5744
5409
|
get byteLength() {
|
|
5745
|
-
return Math.
|
|
5410
|
+
return Math.ceil(this.length * this.stride) * this.BYTES_PER_ELEMENT;
|
|
5746
5411
|
}
|
|
5747
5412
|
get reservedLength() {
|
|
5748
5413
|
return this.buffer.length / this.stride;
|
|
@@ -5856,6 +5521,12 @@ return true;`);
|
|
|
5856
5521
|
init_valid();
|
|
5857
5522
|
init_buffer2();
|
|
5858
5523
|
Builder = class {
|
|
5524
|
+
static throughNode(options) {
|
|
5525
|
+
throw new Error(`"throughNode" not available in this environment`);
|
|
5526
|
+
}
|
|
5527
|
+
static throughDOM(options) {
|
|
5528
|
+
throw new Error(`"throughDOM" not available in this environment`);
|
|
5529
|
+
}
|
|
5859
5530
|
constructor({ "type": type, "nullValues": nulls }) {
|
|
5860
5531
|
this.length = 0;
|
|
5861
5532
|
this.finished = false;
|
|
@@ -5868,12 +5539,6 @@ return true;`);
|
|
|
5868
5539
|
this._isValid = createIsValidFunction(nulls);
|
|
5869
5540
|
}
|
|
5870
5541
|
}
|
|
5871
|
-
static throughNode(options) {
|
|
5872
|
-
throw new Error(`"throughNode" not available in this environment`);
|
|
5873
|
-
}
|
|
5874
|
-
static throughDOM(options) {
|
|
5875
|
-
throw new Error(`"throughDOM" not available in this environment`);
|
|
5876
|
-
}
|
|
5877
5542
|
toVector() {
|
|
5878
5543
|
return new Vector([this.flush()]);
|
|
5879
5544
|
}
|
|
@@ -6083,10 +5748,10 @@ return true;`);
|
|
|
6083
5748
|
}
|
|
6084
5749
|
static createBlock(builder, offset, metaDataLength, bodyLength) {
|
|
6085
5750
|
builder.prep(8, 24);
|
|
6086
|
-
builder.writeInt64(bodyLength);
|
|
5751
|
+
builder.writeInt64(BigInt(bodyLength !== null && bodyLength !== void 0 ? bodyLength : 0));
|
|
6087
5752
|
builder.pad(4);
|
|
6088
5753
|
builder.writeInt32(metaDataLength);
|
|
6089
|
-
builder.writeInt64(offset);
|
|
5754
|
+
builder.writeInt64(BigInt(offset !== null && offset !== void 0 ? offset : 0));
|
|
6090
5755
|
return builder.offset();
|
|
6091
5756
|
}
|
|
6092
5757
|
};
|
|
@@ -6115,29 +5780,6 @@ return true;`);
|
|
|
6115
5780
|
}
|
|
6116
5781
|
});
|
|
6117
5782
|
|
|
6118
|
-
// ../../node_modules/apache-arrow/node_modules/flatbuffers/mjs/long.js
|
|
6119
|
-
var Long;
|
|
6120
|
-
var init_long = __esm({
|
|
6121
|
-
"../../node_modules/apache-arrow/node_modules/flatbuffers/mjs/long.js"() {
|
|
6122
|
-
Long = class {
|
|
6123
|
-
constructor(low, high) {
|
|
6124
|
-
this.low = low | 0;
|
|
6125
|
-
this.high = high | 0;
|
|
6126
|
-
}
|
|
6127
|
-
static create(low, high) {
|
|
6128
|
-
return low == 0 && high == 0 ? Long.ZERO : new Long(low, high);
|
|
6129
|
-
}
|
|
6130
|
-
toFloat64() {
|
|
6131
|
-
return (this.low >>> 0) + this.high * 4294967296;
|
|
6132
|
-
}
|
|
6133
|
-
equals(other) {
|
|
6134
|
-
return this.low == other.low && this.high == other.high;
|
|
6135
|
-
}
|
|
6136
|
-
};
|
|
6137
|
-
Long.ZERO = new Long(0, 0);
|
|
6138
|
-
}
|
|
6139
|
-
});
|
|
6140
|
-
|
|
6141
5783
|
// ../../node_modules/apache-arrow/node_modules/flatbuffers/mjs/encoding.js
|
|
6142
5784
|
var Encoding;
|
|
6143
5785
|
var init_encoding = __esm({
|
|
@@ -6154,13 +5796,13 @@ return true;`);
|
|
|
6154
5796
|
var init_byte_buffer = __esm({
|
|
6155
5797
|
"../../node_modules/apache-arrow/node_modules/flatbuffers/mjs/byte-buffer.js"() {
|
|
6156
5798
|
init_constants();
|
|
6157
|
-
init_long();
|
|
6158
5799
|
init_utils();
|
|
6159
5800
|
init_encoding();
|
|
6160
5801
|
ByteBuffer = class {
|
|
6161
5802
|
constructor(bytes_) {
|
|
6162
5803
|
this.bytes_ = bytes_;
|
|
6163
5804
|
this.position_ = 0;
|
|
5805
|
+
this.text_decoder_ = new TextDecoder();
|
|
6164
5806
|
}
|
|
6165
5807
|
static allocate(byte_size) {
|
|
6166
5808
|
return new ByteBuffer(new Uint8Array(byte_size));
|
|
@@ -6199,10 +5841,10 @@ return true;`);
|
|
|
6199
5841
|
return this.readInt32(offset) >>> 0;
|
|
6200
5842
|
}
|
|
6201
5843
|
readInt64(offset) {
|
|
6202
|
-
return
|
|
5844
|
+
return BigInt.asIntN(64, BigInt(this.readUint32(offset)) + (BigInt(this.readUint32(offset + 4)) << BigInt(32)));
|
|
6203
5845
|
}
|
|
6204
5846
|
readUint64(offset) {
|
|
6205
|
-
return
|
|
5847
|
+
return BigInt.asUintN(64, BigInt(this.readUint32(offset)) + (BigInt(this.readUint32(offset + 4)) << BigInt(32)));
|
|
6206
5848
|
}
|
|
6207
5849
|
readFloat32(offset) {
|
|
6208
5850
|
int32[0] = this.readInt32(offset);
|
|
@@ -6240,12 +5882,12 @@ return true;`);
|
|
|
6240
5882
|
this.bytes_[offset + 3] = value >> 24;
|
|
6241
5883
|
}
|
|
6242
5884
|
writeInt64(offset, value) {
|
|
6243
|
-
this.writeInt32(offset, value
|
|
6244
|
-
this.writeInt32(offset + 4, value
|
|
5885
|
+
this.writeInt32(offset, Number(BigInt.asIntN(32, value)));
|
|
5886
|
+
this.writeInt32(offset + 4, Number(BigInt.asIntN(32, value >> BigInt(32))));
|
|
6245
5887
|
}
|
|
6246
5888
|
writeUint64(offset, value) {
|
|
6247
|
-
this.writeUint32(offset, value
|
|
6248
|
-
this.writeUint32(offset + 4, value
|
|
5889
|
+
this.writeUint32(offset, Number(BigInt.asUintN(32, value)));
|
|
5890
|
+
this.writeUint32(offset + 4, Number(BigInt.asUintN(32, value >> BigInt(32))));
|
|
6249
5891
|
}
|
|
6250
5892
|
writeFloat32(offset, value) {
|
|
6251
5893
|
float32[0] = value;
|
|
@@ -6278,39 +5920,12 @@ return true;`);
|
|
|
6278
5920
|
__string(offset, opt_encoding) {
|
|
6279
5921
|
offset += this.readInt32(offset);
|
|
6280
5922
|
const length = this.readInt32(offset);
|
|
6281
|
-
let result = "";
|
|
6282
|
-
let i = 0;
|
|
6283
5923
|
offset += SIZEOF_INT;
|
|
6284
|
-
|
|
6285
|
-
|
|
6286
|
-
|
|
6287
|
-
|
|
6288
|
-
|
|
6289
|
-
const a = this.readUint8(offset + i++);
|
|
6290
|
-
if (a < 192) {
|
|
6291
|
-
codePoint = a;
|
|
6292
|
-
} else {
|
|
6293
|
-
const b = this.readUint8(offset + i++);
|
|
6294
|
-
if (a < 224) {
|
|
6295
|
-
codePoint = (a & 31) << 6 | b & 63;
|
|
6296
|
-
} else {
|
|
6297
|
-
const c = this.readUint8(offset + i++);
|
|
6298
|
-
if (a < 240) {
|
|
6299
|
-
codePoint = (a & 15) << 12 | (b & 63) << 6 | c & 63;
|
|
6300
|
-
} else {
|
|
6301
|
-
const d = this.readUint8(offset + i++);
|
|
6302
|
-
codePoint = (a & 7) << 18 | (b & 63) << 12 | (c & 63) << 6 | d & 63;
|
|
6303
|
-
}
|
|
6304
|
-
}
|
|
6305
|
-
}
|
|
6306
|
-
if (codePoint < 65536) {
|
|
6307
|
-
result += String.fromCharCode(codePoint);
|
|
6308
|
-
} else {
|
|
6309
|
-
codePoint -= 65536;
|
|
6310
|
-
result += String.fromCharCode((codePoint >> 10) + 55296, (codePoint & (1 << 10) - 1) + 56320);
|
|
6311
|
-
}
|
|
6312
|
-
}
|
|
6313
|
-
return result;
|
|
5924
|
+
const utf8bytes = this.bytes_.subarray(offset, offset + length);
|
|
5925
|
+
if (opt_encoding === Encoding.UTF8_BYTES)
|
|
5926
|
+
return utf8bytes;
|
|
5927
|
+
else
|
|
5928
|
+
return this.text_decoder_.decode(utf8bytes);
|
|
6314
5929
|
}
|
|
6315
5930
|
__union_with_string(o, offset) {
|
|
6316
5931
|
if (typeof o === "string") {
|
|
@@ -6338,14 +5953,12 @@ return true;`);
|
|
|
6338
5953
|
}
|
|
6339
5954
|
return true;
|
|
6340
5955
|
}
|
|
6341
|
-
createLong(low, high) {
|
|
6342
|
-
return Long.create(low, high);
|
|
6343
|
-
}
|
|
6344
5956
|
createScalarList(listAccessor, listLength) {
|
|
6345
5957
|
const ret = [];
|
|
6346
5958
|
for (let i = 0; i < listLength; ++i) {
|
|
6347
|
-
|
|
6348
|
-
|
|
5959
|
+
const val = listAccessor(i);
|
|
5960
|
+
if (val !== null) {
|
|
5961
|
+
ret.push(val);
|
|
6349
5962
|
}
|
|
6350
5963
|
}
|
|
6351
5964
|
return ret;
|
|
@@ -6370,7 +5983,6 @@ return true;`);
|
|
|
6370
5983
|
"../../node_modules/apache-arrow/node_modules/flatbuffers/mjs/builder.js"() {
|
|
6371
5984
|
init_byte_buffer();
|
|
6372
5985
|
init_constants();
|
|
6373
|
-
init_long();
|
|
6374
5986
|
Builder2 = class {
|
|
6375
5987
|
constructor(opt_initial_size) {
|
|
6376
5988
|
this.minalign = 1;
|
|
@@ -6382,6 +5994,7 @@ return true;`);
|
|
|
6382
5994
|
this.vector_num_elems = 0;
|
|
6383
5995
|
this.force_defaults = false;
|
|
6384
5996
|
this.string_maps = null;
|
|
5997
|
+
this.text_encoder = new TextEncoder();
|
|
6385
5998
|
let initial_size;
|
|
6386
5999
|
if (!opt_initial_size) {
|
|
6387
6000
|
initial_size = 1024;
|
|
@@ -6491,7 +6104,7 @@ return true;`);
|
|
|
6491
6104
|
}
|
|
6492
6105
|
}
|
|
6493
6106
|
addFieldInt64(voffset, value, defaultValue) {
|
|
6494
|
-
if (this.force_defaults ||
|
|
6107
|
+
if (this.force_defaults || value !== defaultValue) {
|
|
6495
6108
|
this.addInt64(value);
|
|
6496
6109
|
this.slot(voffset);
|
|
6497
6110
|
}
|
|
@@ -6522,12 +6135,12 @@ return true;`);
|
|
|
6522
6135
|
}
|
|
6523
6136
|
nested(obj) {
|
|
6524
6137
|
if (obj != this.offset()) {
|
|
6525
|
-
throw new
|
|
6138
|
+
throw new TypeError("FlatBuffers: struct must be serialized inline.");
|
|
6526
6139
|
}
|
|
6527
6140
|
}
|
|
6528
6141
|
notNested() {
|
|
6529
6142
|
if (this.isNested) {
|
|
6530
|
-
throw new
|
|
6143
|
+
throw new TypeError("FlatBuffers: object serialization must not be nested.");
|
|
6531
6144
|
}
|
|
6532
6145
|
}
|
|
6533
6146
|
slot(voffset) {
|
|
@@ -6612,7 +6225,7 @@ return true;`);
|
|
|
6612
6225
|
const file_identifier = opt_file_identifier;
|
|
6613
6226
|
this.prep(this.minalign, SIZEOF_INT + FILE_IDENTIFIER_LENGTH + size_prefix);
|
|
6614
6227
|
if (file_identifier.length != FILE_IDENTIFIER_LENGTH) {
|
|
6615
|
-
throw new
|
|
6228
|
+
throw new TypeError("FlatBuffers: file identifier must be length " + FILE_IDENTIFIER_LENGTH);
|
|
6616
6229
|
}
|
|
6617
6230
|
for (let i = FILE_IDENTIFIER_LENGTH - 1; i >= 0; i--) {
|
|
6618
6231
|
this.writeInt8(file_identifier.charCodeAt(i));
|
|
@@ -6631,9 +6244,9 @@ return true;`);
|
|
|
6631
6244
|
requiredField(table, field) {
|
|
6632
6245
|
const table_start = this.bb.capacity() - table;
|
|
6633
6246
|
const vtable_start = table_start - this.bb.readInt32(table_start);
|
|
6634
|
-
const ok = this.bb.readInt16(vtable_start + field) != 0;
|
|
6247
|
+
const ok = field < this.bb.readInt16(vtable_start) && this.bb.readInt16(vtable_start + field) != 0;
|
|
6635
6248
|
if (!ok) {
|
|
6636
|
-
throw new
|
|
6249
|
+
throw new TypeError("FlatBuffers: field " + field + " must be set");
|
|
6637
6250
|
}
|
|
6638
6251
|
}
|
|
6639
6252
|
startVector(elem_size, num_elems, alignment) {
|
|
@@ -6661,40 +6274,14 @@ return true;`);
|
|
|
6661
6274
|
return offset;
|
|
6662
6275
|
}
|
|
6663
6276
|
createString(s) {
|
|
6664
|
-
if (
|
|
6277
|
+
if (s === null || s === void 0) {
|
|
6665
6278
|
return 0;
|
|
6666
6279
|
}
|
|
6667
6280
|
let utf8;
|
|
6668
6281
|
if (s instanceof Uint8Array) {
|
|
6669
6282
|
utf8 = s;
|
|
6670
6283
|
} else {
|
|
6671
|
-
utf8 =
|
|
6672
|
-
let i = 0;
|
|
6673
|
-
while (i < s.length) {
|
|
6674
|
-
let codePoint;
|
|
6675
|
-
const a = s.charCodeAt(i++);
|
|
6676
|
-
if (a < 55296 || a >= 56320) {
|
|
6677
|
-
codePoint = a;
|
|
6678
|
-
} else {
|
|
6679
|
-
const b = s.charCodeAt(i++);
|
|
6680
|
-
codePoint = (a << 10) + b + (65536 - (55296 << 10) - 56320);
|
|
6681
|
-
}
|
|
6682
|
-
if (codePoint < 128) {
|
|
6683
|
-
utf8.push(codePoint);
|
|
6684
|
-
} else {
|
|
6685
|
-
if (codePoint < 2048) {
|
|
6686
|
-
utf8.push(codePoint >> 6 & 31 | 192);
|
|
6687
|
-
} else {
|
|
6688
|
-
if (codePoint < 65536) {
|
|
6689
|
-
utf8.push(codePoint >> 12 & 15 | 224);
|
|
6690
|
-
} else {
|
|
6691
|
-
utf8.push(codePoint >> 18 & 7 | 240, codePoint >> 12 & 63 | 128);
|
|
6692
|
-
}
|
|
6693
|
-
utf8.push(codePoint >> 6 & 63 | 128);
|
|
6694
|
-
}
|
|
6695
|
-
utf8.push(codePoint & 63 | 128);
|
|
6696
|
-
}
|
|
6697
|
-
}
|
|
6284
|
+
utf8 = this.text_encoder.encode(s);
|
|
6698
6285
|
}
|
|
6699
6286
|
this.addInt8(0);
|
|
6700
6287
|
this.startVector(1, utf8.length, 1);
|
|
@@ -6704,9 +6291,6 @@ return true;`);
|
|
|
6704
6291
|
}
|
|
6705
6292
|
return this.endVector();
|
|
6706
6293
|
}
|
|
6707
|
-
createLong(low, high) {
|
|
6708
|
-
return Long.create(low, high);
|
|
6709
|
-
}
|
|
6710
6294
|
createObjectOffset(obj) {
|
|
6711
6295
|
if (obj === null) {
|
|
6712
6296
|
return 0;
|
|
@@ -6724,14 +6308,14 @@ return true;`);
|
|
|
6724
6308
|
if (val !== null) {
|
|
6725
6309
|
ret.push(this.createObjectOffset(val));
|
|
6726
6310
|
} else {
|
|
6727
|
-
throw new
|
|
6311
|
+
throw new TypeError("FlatBuffers: Argument for createObjectOffsetList cannot contain null.");
|
|
6728
6312
|
}
|
|
6729
6313
|
}
|
|
6730
6314
|
return ret;
|
|
6731
6315
|
}
|
|
6732
6316
|
createStructOffsetList(list, startFunc) {
|
|
6733
6317
|
startFunc(this, list.length);
|
|
6734
|
-
this.createObjectOffsetList(list);
|
|
6318
|
+
this.createObjectOffsetList(list.slice().reverse());
|
|
6735
6319
|
return this.endVector();
|
|
6736
6320
|
}
|
|
6737
6321
|
};
|
|
@@ -6746,7 +6330,6 @@ return true;`);
|
|
|
6746
6330
|
init_constants();
|
|
6747
6331
|
init_constants();
|
|
6748
6332
|
init_utils();
|
|
6749
|
-
init_long();
|
|
6750
6333
|
init_encoding();
|
|
6751
6334
|
init_builder2();
|
|
6752
6335
|
init_byte_buffer();
|
|
@@ -6920,7 +6503,7 @@ return true;`);
|
|
|
6920
6503
|
}
|
|
6921
6504
|
id() {
|
|
6922
6505
|
const offset = this.bb.__offset(this.bb_pos, 4);
|
|
6923
|
-
return offset ? this.bb.readInt64(this.bb_pos + offset) :
|
|
6506
|
+
return offset ? this.bb.readInt64(this.bb_pos + offset) : BigInt("0");
|
|
6924
6507
|
}
|
|
6925
6508
|
indexType(obj) {
|
|
6926
6509
|
const offset = this.bb.__offset(this.bb_pos, 6);
|
|
@@ -6938,7 +6521,7 @@ return true;`);
|
|
|
6938
6521
|
builder.startObject(4);
|
|
6939
6522
|
}
|
|
6940
6523
|
static addId(builder, id) {
|
|
6941
|
-
builder.addFieldInt64(0, id,
|
|
6524
|
+
builder.addFieldInt64(0, id, BigInt("0"));
|
|
6942
6525
|
}
|
|
6943
6526
|
static addIndexType(builder, indexTypeOffset) {
|
|
6944
6527
|
builder.addFieldOffset(1, indexTypeOffset, 0);
|
|
@@ -7487,10 +7070,10 @@ return true;`);
|
|
|
7487
7070
|
}
|
|
7488
7071
|
});
|
|
7489
7072
|
|
|
7490
|
-
// ../../node_modules/apache-arrow/fb/
|
|
7073
|
+
// ../../node_modules/apache-arrow/fb/struct-.mjs
|
|
7491
7074
|
var Struct_;
|
|
7492
7075
|
var init_struct2 = __esm({
|
|
7493
|
-
"../../node_modules/apache-arrow/fb/
|
|
7076
|
+
"../../node_modules/apache-arrow/fb/struct-.mjs"() {
|
|
7494
7077
|
init_flatbuffers();
|
|
7495
7078
|
Struct_ = class {
|
|
7496
7079
|
constructor() {
|
|
@@ -7779,6 +7362,7 @@ return true;`);
|
|
|
7779
7362
|
Type4[Type4["LargeBinary"] = 19] = "LargeBinary";
|
|
7780
7363
|
Type4[Type4["LargeUtf8"] = 20] = "LargeUtf8";
|
|
7781
7364
|
Type4[Type4["LargeList"] = 21] = "LargeList";
|
|
7365
|
+
Type4[Type4["RunEndEncoded"] = 22] = "RunEndEncoded";
|
|
7782
7366
|
})(Type3 || (Type3 = {}));
|
|
7783
7367
|
}
|
|
7784
7368
|
});
|
|
@@ -7943,7 +7527,7 @@ return true;`);
|
|
|
7943
7527
|
}
|
|
7944
7528
|
features(index) {
|
|
7945
7529
|
const offset = this.bb.__offset(this.bb_pos, 10);
|
|
7946
|
-
return offset ? this.bb.readInt64(this.bb.__vector(this.bb_pos + offset) + index * 8) :
|
|
7530
|
+
return offset ? this.bb.readInt64(this.bb.__vector(this.bb_pos + offset) + index * 8) : BigInt(0);
|
|
7947
7531
|
}
|
|
7948
7532
|
featuresLength() {
|
|
7949
7533
|
const offset = this.bb.__offset(this.bb_pos, 10);
|
|
@@ -8192,12 +7776,6 @@ return true;`);
|
|
|
8192
7776
|
Schema2.prototype.metadata = null;
|
|
8193
7777
|
Schema2.prototype.dictionaries = null;
|
|
8194
7778
|
Field2 = class {
|
|
8195
|
-
constructor(name, type, nullable = false, metadata2) {
|
|
8196
|
-
this.name = name;
|
|
8197
|
-
this.type = type;
|
|
8198
|
-
this.nullable = nullable;
|
|
8199
|
-
this.metadata = metadata2 || new Map();
|
|
8200
|
-
}
|
|
8201
7779
|
static new(...args) {
|
|
8202
7780
|
let [name, type, nullable, metadata2] = args;
|
|
8203
7781
|
if (args[0] && typeof args[0] === "object") {
|
|
@@ -8208,6 +7786,12 @@ return true;`);
|
|
|
8208
7786
|
}
|
|
8209
7787
|
return new Field2(`${name}`, type, nullable, metadata2);
|
|
8210
7788
|
}
|
|
7789
|
+
constructor(name, type, nullable = false, metadata2) {
|
|
7790
|
+
this.name = name;
|
|
7791
|
+
this.type = type;
|
|
7792
|
+
this.nullable = nullable;
|
|
7793
|
+
this.metadata = metadata2 || new Map();
|
|
7794
|
+
}
|
|
8211
7795
|
get typeId() {
|
|
8212
7796
|
return this.type.typeId;
|
|
8213
7797
|
}
|
|
@@ -8231,7 +7815,7 @@ return true;`);
|
|
|
8231
7815
|
});
|
|
8232
7816
|
|
|
8233
7817
|
// ../../node_modules/apache-arrow/ipc/metadata/file.mjs
|
|
8234
|
-
var
|
|
7818
|
+
var Builder3, ByteBuffer2, Footer_, OffHeapFooter, FileBlock;
|
|
8235
7819
|
var init_file = __esm({
|
|
8236
7820
|
"../../node_modules/apache-arrow/ipc/metadata/file.mjs"() {
|
|
8237
7821
|
init_block();
|
|
@@ -8240,16 +7824,10 @@ return true;`);
|
|
|
8240
7824
|
init_schema2();
|
|
8241
7825
|
init_enum2();
|
|
8242
7826
|
init_buffer();
|
|
8243
|
-
|
|
7827
|
+
init_bigint();
|
|
8244
7828
|
Builder3 = Builder2;
|
|
8245
7829
|
ByteBuffer2 = ByteBuffer;
|
|
8246
7830
|
Footer_ = class {
|
|
8247
|
-
constructor(schema, version = MetadataVersion.V4, recordBatches, dictionaryBatches) {
|
|
8248
|
-
this.schema = schema;
|
|
8249
|
-
this.version = version;
|
|
8250
|
-
recordBatches && (this._recordBatches = recordBatches);
|
|
8251
|
-
dictionaryBatches && (this._dictionaryBatches = dictionaryBatches);
|
|
8252
|
-
}
|
|
8253
7831
|
static decode(buf) {
|
|
8254
7832
|
buf = new ByteBuffer2(toUint8Array(buf));
|
|
8255
7833
|
const footer = Footer.getRootAsFooter(buf);
|
|
@@ -8283,6 +7861,12 @@ return true;`);
|
|
|
8283
7861
|
get numDictionaries() {
|
|
8284
7862
|
return this._dictionaryBatches.length;
|
|
8285
7863
|
}
|
|
7864
|
+
constructor(schema, version = MetadataVersion.V4, recordBatches, dictionaryBatches) {
|
|
7865
|
+
this.schema = schema;
|
|
7866
|
+
this.version = version;
|
|
7867
|
+
recordBatches && (this._recordBatches = recordBatches);
|
|
7868
|
+
dictionaryBatches && (this._dictionaryBatches = dictionaryBatches);
|
|
7869
|
+
}
|
|
8286
7870
|
*recordBatches() {
|
|
8287
7871
|
for (let block, i = -1, n = this.numRecordBatches; ++i < n; ) {
|
|
8288
7872
|
if (block = this.getRecordBatch(i)) {
|
|
@@ -8305,16 +7889,16 @@ return true;`);
|
|
|
8305
7889
|
}
|
|
8306
7890
|
};
|
|
8307
7891
|
OffHeapFooter = class extends Footer_ {
|
|
8308
|
-
constructor(schema, _footer) {
|
|
8309
|
-
super(schema, _footer.version());
|
|
8310
|
-
this._footer = _footer;
|
|
8311
|
-
}
|
|
8312
7892
|
get numRecordBatches() {
|
|
8313
7893
|
return this._footer.recordBatchesLength();
|
|
8314
7894
|
}
|
|
8315
7895
|
get numDictionaries() {
|
|
8316
7896
|
return this._footer.dictionariesLength();
|
|
8317
7897
|
}
|
|
7898
|
+
constructor(schema, _footer) {
|
|
7899
|
+
super(schema, _footer.version());
|
|
7900
|
+
this._footer = _footer;
|
|
7901
|
+
}
|
|
8318
7902
|
getRecordBatch(index) {
|
|
8319
7903
|
if (index >= 0 && index < this.numRecordBatches) {
|
|
8320
7904
|
const fileBlock = this._footer.recordBatches(index);
|
|
@@ -8335,20 +7919,20 @@ return true;`);
|
|
|
8335
7919
|
}
|
|
8336
7920
|
};
|
|
8337
7921
|
FileBlock = class {
|
|
8338
|
-
constructor(metaDataLength, bodyLength, offset) {
|
|
8339
|
-
this.metaDataLength = metaDataLength;
|
|
8340
|
-
this.offset = typeof offset === "number" ? offset : offset.low;
|
|
8341
|
-
this.bodyLength = typeof bodyLength === "number" ? bodyLength : bodyLength.low;
|
|
8342
|
-
}
|
|
8343
7922
|
static decode(block) {
|
|
8344
7923
|
return new FileBlock(block.metaDataLength(), block.bodyLength(), block.offset());
|
|
8345
7924
|
}
|
|
8346
7925
|
static encode(b, fileBlock) {
|
|
8347
7926
|
const { metaDataLength } = fileBlock;
|
|
8348
|
-
const offset =
|
|
8349
|
-
const bodyLength =
|
|
7927
|
+
const offset = BigInt(fileBlock.offset);
|
|
7928
|
+
const bodyLength = BigInt(fileBlock.bodyLength);
|
|
8350
7929
|
return Block.createBlock(b, offset, metaDataLength, bodyLength);
|
|
8351
7930
|
}
|
|
7931
|
+
constructor(metaDataLength, bodyLength, offset) {
|
|
7932
|
+
this.metaDataLength = metaDataLength;
|
|
7933
|
+
this.offset = bigIntToNumber(offset);
|
|
7934
|
+
this.bodyLength = bigIntToNumber(bodyLength);
|
|
7935
|
+
}
|
|
8352
7936
|
};
|
|
8353
7937
|
}
|
|
8354
7938
|
});
|
|
@@ -8357,7 +7941,7 @@ return true;`);
|
|
|
8357
7941
|
var ITERATOR_DONE, ArrowJSON, ReadableInterop, AsyncQueue;
|
|
8358
7942
|
var init_interfaces = __esm({
|
|
8359
7943
|
"../../node_modules/apache-arrow/io/interfaces.mjs"() {
|
|
8360
|
-
|
|
7944
|
+
init_tslib_es6();
|
|
8361
7945
|
init_adapters();
|
|
8362
7946
|
ITERATOR_DONE = Object.freeze({ done: true, value: void 0 });
|
|
8363
7947
|
ArrowJSON = class {
|
|
@@ -8487,7 +8071,7 @@ return true;`);
|
|
|
8487
8071
|
var AsyncByteQueue, ByteStream, AsyncByteStream, ByteStreamSource, AsyncByteStreamSource;
|
|
8488
8072
|
var init_stream = __esm({
|
|
8489
8073
|
"../../node_modules/apache-arrow/io/stream.mjs"() {
|
|
8490
|
-
|
|
8074
|
+
init_tslib_es6();
|
|
8491
8075
|
init_adapters();
|
|
8492
8076
|
init_utf8();
|
|
8493
8077
|
init_interfaces();
|
|
@@ -8504,12 +8088,14 @@ return true;`);
|
|
|
8504
8088
|
}
|
|
8505
8089
|
toUint8Array(sync = false) {
|
|
8506
8090
|
return sync ? joinUint8Arrays(this._values)[0] : (() => __awaiter(this, void 0, void 0, function* () {
|
|
8507
|
-
var e_1,
|
|
8091
|
+
var _a5, e_1, _b2, _c2;
|
|
8508
8092
|
const buffers = [];
|
|
8509
8093
|
let byteLength = 0;
|
|
8510
8094
|
try {
|
|
8511
|
-
for (var
|
|
8512
|
-
|
|
8095
|
+
for (var _d2 = true, _e2 = __asyncValues(this), _f2; _f2 = yield _e2.next(), _a5 = _f2.done, !_a5; _d2 = true) {
|
|
8096
|
+
_c2 = _f2.value;
|
|
8097
|
+
_d2 = false;
|
|
8098
|
+
const chunk = _c2;
|
|
8513
8099
|
buffers.push(chunk);
|
|
8514
8100
|
byteLength += chunk.byteLength;
|
|
8515
8101
|
}
|
|
@@ -8517,8 +8103,8 @@ return true;`);
|
|
|
8517
8103
|
e_1 = { error: e_1_1 };
|
|
8518
8104
|
} finally {
|
|
8519
8105
|
try {
|
|
8520
|
-
if (
|
|
8521
|
-
yield
|
|
8106
|
+
if (!_d2 && !_a5 && (_b2 = _e2.return))
|
|
8107
|
+
yield _b2.call(_e2);
|
|
8522
8108
|
} finally {
|
|
8523
8109
|
if (e_1)
|
|
8524
8110
|
throw e_1.error;
|
|
@@ -8673,7 +8259,7 @@ return true;`);
|
|
|
8673
8259
|
var RandomAccessFile, AsyncRandomAccessFile;
|
|
8674
8260
|
var init_file2 = __esm({
|
|
8675
8261
|
"../../node_modules/apache-arrow/io/file.mjs"() {
|
|
8676
|
-
|
|
8262
|
+
init_tslib_es6();
|
|
8677
8263
|
init_stream();
|
|
8678
8264
|
init_buffer();
|
|
8679
8265
|
RandomAccessFile = class extends ByteStream {
|
|
@@ -8681,7 +8267,7 @@ return true;`);
|
|
|
8681
8267
|
super();
|
|
8682
8268
|
this.position = 0;
|
|
8683
8269
|
this.buffer = toUint8Array(buffer);
|
|
8684
|
-
this.size =
|
|
8270
|
+
this.size = byteLength === void 0 ? this.buffer.byteLength : byteLength;
|
|
8685
8271
|
}
|
|
8686
8272
|
readInt32(position) {
|
|
8687
8273
|
const { buffer, byteOffset } = this.readAt(position, 4);
|
|
@@ -9564,13 +9150,14 @@ return true;`);
|
|
|
9564
9150
|
const offsets = this._offsets;
|
|
9565
9151
|
const [child] = this.children;
|
|
9566
9152
|
for (const [index, value] of pending) {
|
|
9567
|
-
if (value ===
|
|
9153
|
+
if (typeof value === "undefined") {
|
|
9568
9154
|
offsets.set(index, 0);
|
|
9569
9155
|
} else {
|
|
9570
|
-
const
|
|
9156
|
+
const v = value;
|
|
9157
|
+
const n = v.length;
|
|
9571
9158
|
const start = offsets.set(index, n).buffer[index];
|
|
9572
9159
|
for (let i = -1; ++i < n; ) {
|
|
9573
|
-
child.set(start + i,
|
|
9160
|
+
child.set(start + i, v[i]);
|
|
9574
9161
|
}
|
|
9575
9162
|
}
|
|
9576
9163
|
}
|
|
@@ -10112,7 +9699,6 @@ return true;`);
|
|
|
10112
9699
|
}
|
|
10113
9700
|
var init_factories = __esm({
|
|
10114
9701
|
"../../node_modules/apache-arrow/factories.mjs"() {
|
|
10115
|
-
init_modules();
|
|
10116
9702
|
init_builderctor();
|
|
10117
9703
|
}
|
|
10118
9704
|
});
|
|
@@ -10218,7 +9804,7 @@ return true;`);
|
|
|
10218
9804
|
if (args[0] instanceof Schema2) {
|
|
10219
9805
|
schema = args.shift();
|
|
10220
9806
|
}
|
|
10221
|
-
if (args
|
|
9807
|
+
if (args.at(-1) instanceof Uint32Array) {
|
|
10222
9808
|
offsets = args.pop();
|
|
10223
9809
|
}
|
|
10224
9810
|
const unwrap = (x) => {
|
|
@@ -10698,8 +10284,8 @@ return true;`);
|
|
|
10698
10284
|
}
|
|
10699
10285
|
static createBuffer(builder, offset, length) {
|
|
10700
10286
|
builder.prep(8, 16);
|
|
10701
|
-
builder.writeInt64(length);
|
|
10702
|
-
builder.writeInt64(offset);
|
|
10287
|
+
builder.writeInt64(BigInt(length !== null && length !== void 0 ? length : 0));
|
|
10288
|
+
builder.writeInt64(BigInt(offset !== null && offset !== void 0 ? offset : 0));
|
|
10703
10289
|
return builder.offset();
|
|
10704
10290
|
}
|
|
10705
10291
|
};
|
|
@@ -10731,8 +10317,8 @@ return true;`);
|
|
|
10731
10317
|
}
|
|
10732
10318
|
static createFieldNode(builder, length, null_count) {
|
|
10733
10319
|
builder.prep(8, 16);
|
|
10734
|
-
builder.writeInt64(null_count);
|
|
10735
|
-
builder.writeInt64(length);
|
|
10320
|
+
builder.writeInt64(BigInt(null_count !== null && null_count !== void 0 ? null_count : 0));
|
|
10321
|
+
builder.writeInt64(BigInt(length !== null && length !== void 0 ? length : 0));
|
|
10736
10322
|
return builder.offset();
|
|
10737
10323
|
}
|
|
10738
10324
|
};
|
|
@@ -10766,7 +10352,7 @@ return true;`);
|
|
|
10766
10352
|
}
|
|
10767
10353
|
length() {
|
|
10768
10354
|
const offset = this.bb.__offset(this.bb_pos, 4);
|
|
10769
|
-
return offset ? this.bb.readInt64(this.bb_pos + offset) :
|
|
10355
|
+
return offset ? this.bb.readInt64(this.bb_pos + offset) : BigInt("0");
|
|
10770
10356
|
}
|
|
10771
10357
|
nodes(index, obj) {
|
|
10772
10358
|
const offset = this.bb.__offset(this.bb_pos, 6);
|
|
@@ -10792,7 +10378,7 @@ return true;`);
|
|
|
10792
10378
|
builder.startObject(4);
|
|
10793
10379
|
}
|
|
10794
10380
|
static addLength(builder, length) {
|
|
10795
|
-
builder.addFieldInt64(0, length,
|
|
10381
|
+
builder.addFieldInt64(0, length, BigInt("0"));
|
|
10796
10382
|
}
|
|
10797
10383
|
static addNodes(builder, nodesOffset) {
|
|
10798
10384
|
builder.addFieldOffset(1, nodesOffset, 0);
|
|
@@ -10842,7 +10428,7 @@ return true;`);
|
|
|
10842
10428
|
}
|
|
10843
10429
|
id() {
|
|
10844
10430
|
const offset = this.bb.__offset(this.bb_pos, 4);
|
|
10845
|
-
return offset ? this.bb.readInt64(this.bb_pos + offset) :
|
|
10431
|
+
return offset ? this.bb.readInt64(this.bb_pos + offset) : BigInt("0");
|
|
10846
10432
|
}
|
|
10847
10433
|
data(obj) {
|
|
10848
10434
|
const offset = this.bb.__offset(this.bb_pos, 6);
|
|
@@ -10856,7 +10442,7 @@ return true;`);
|
|
|
10856
10442
|
builder.startObject(3);
|
|
10857
10443
|
}
|
|
10858
10444
|
static addId(builder, id) {
|
|
10859
|
-
builder.addFieldInt64(0, id,
|
|
10445
|
+
builder.addFieldInt64(0, id, BigInt("0"));
|
|
10860
10446
|
}
|
|
10861
10447
|
static addData(builder, dataOffset) {
|
|
10862
10448
|
builder.addFieldOffset(1, dataOffset, 0);
|
|
@@ -10926,7 +10512,7 @@ return true;`);
|
|
|
10926
10512
|
}
|
|
10927
10513
|
bodyLength() {
|
|
10928
10514
|
const offset = this.bb.__offset(this.bb_pos, 10);
|
|
10929
|
-
return offset ? this.bb.readInt64(this.bb_pos + offset) :
|
|
10515
|
+
return offset ? this.bb.readInt64(this.bb_pos + offset) : BigInt("0");
|
|
10930
10516
|
}
|
|
10931
10517
|
customMetadata(index, obj) {
|
|
10932
10518
|
const offset = this.bb.__offset(this.bb_pos, 12);
|
|
@@ -10949,7 +10535,7 @@ return true;`);
|
|
|
10949
10535
|
builder.addFieldOffset(2, headerOffset, 0);
|
|
10950
10536
|
}
|
|
10951
10537
|
static addBodyLength(builder, bodyLength) {
|
|
10952
|
-
builder.addFieldInt64(3, bodyLength,
|
|
10538
|
+
builder.addFieldInt64(3, bodyLength, BigInt("0"));
|
|
10953
10539
|
}
|
|
10954
10540
|
static addCustomMetadata(builder, customMetadataOffset) {
|
|
10955
10541
|
builder.addFieldOffset(4, customMetadataOffset, 0);
|
|
@@ -10988,10 +10574,9 @@ return true;`);
|
|
|
10988
10574
|
});
|
|
10989
10575
|
|
|
10990
10576
|
// ../../node_modules/apache-arrow/visitor/typeassembler.mjs
|
|
10991
|
-
var
|
|
10577
|
+
var TypeAssembler, instance8;
|
|
10992
10578
|
var init_typeassembler = __esm({
|
|
10993
10579
|
"../../node_modules/apache-arrow/visitor/typeassembler.mjs"() {
|
|
10994
|
-
init_flatbuffers();
|
|
10995
10580
|
init_visitor();
|
|
10996
10581
|
init_null();
|
|
10997
10582
|
init_int();
|
|
@@ -11011,7 +10596,6 @@ return true;`);
|
|
|
11011
10596
|
init_fixed_size_binary();
|
|
11012
10597
|
init_fixed_size_list();
|
|
11013
10598
|
init_map2();
|
|
11014
|
-
Long3 = Long;
|
|
11015
10599
|
TypeAssembler = class extends Visitor {
|
|
11016
10600
|
visit(node, builder) {
|
|
11017
10601
|
return node == null || builder == null ? void 0 : super.visit(node, builder);
|
|
@@ -11094,7 +10678,7 @@ return true;`);
|
|
|
11094
10678
|
visitDictionary(node, b) {
|
|
11095
10679
|
const indexType = this.visit(node.indices, b);
|
|
11096
10680
|
DictionaryEncoding.startDictionaryEncoding(b);
|
|
11097
|
-
DictionaryEncoding.addId(b,
|
|
10681
|
+
DictionaryEncoding.addId(b, BigInt(node.id));
|
|
11098
10682
|
DictionaryEncoding.addIsOrdered(b, node.isOrdered);
|
|
11099
10683
|
if (indexType !== void 0) {
|
|
11100
10684
|
DictionaryEncoding.addIndexType(b, indexType);
|
|
@@ -11358,7 +10942,7 @@ return true;`);
|
|
|
11358
10942
|
if (!dictionaries || !(dictMeta = f.dictionary())) {
|
|
11359
10943
|
type = decodeFieldType(f, decodeFieldChildren(f, dictionaries));
|
|
11360
10944
|
field = new Field2(f.name(), type, f.nullable(), decodeCustomMetadata(f));
|
|
11361
|
-
} else if (!dictionaries.has(id = dictMeta.id()
|
|
10945
|
+
} else if (!dictionaries.has(id = bigIntToNumber(dictMeta.id()))) {
|
|
11362
10946
|
keys = (keys = dictMeta.indexType()) ? decodeIndexType(keys) : new Int322();
|
|
11363
10947
|
dictionaries.set(id, type = decodeFieldType(f, decodeFieldChildren(f, dictionaries)));
|
|
11364
10948
|
dictType = new Dictionary(type, keys, id, dictMeta.isOrdered());
|
|
@@ -11524,7 +11108,7 @@ return true;`);
|
|
|
11524
11108
|
BufferRegion.encode(b, b_);
|
|
11525
11109
|
const buffersVectorOffset = b.endVector();
|
|
11526
11110
|
RecordBatch2.startRecordBatch(b);
|
|
11527
|
-
RecordBatch2.addLength(b,
|
|
11111
|
+
RecordBatch2.addLength(b, BigInt(recordBatch.length));
|
|
11528
11112
|
RecordBatch2.addNodes(b, nodesVectorOffset);
|
|
11529
11113
|
RecordBatch2.addBuffers(b, buffersVectorOffset);
|
|
11530
11114
|
return RecordBatch2.endRecordBatch(b);
|
|
@@ -11532,18 +11116,18 @@ return true;`);
|
|
|
11532
11116
|
function encodeDictionaryBatch(b, dictionaryBatch) {
|
|
11533
11117
|
const dataOffset = RecordBatch3.encode(b, dictionaryBatch.data);
|
|
11534
11118
|
DictionaryBatch.startDictionaryBatch(b);
|
|
11535
|
-
DictionaryBatch.addId(b,
|
|
11119
|
+
DictionaryBatch.addId(b, BigInt(dictionaryBatch.id));
|
|
11536
11120
|
DictionaryBatch.addIsDelta(b, dictionaryBatch.isDelta);
|
|
11537
11121
|
DictionaryBatch.addData(b, dataOffset);
|
|
11538
11122
|
return DictionaryBatch.endDictionaryBatch(b);
|
|
11539
11123
|
}
|
|
11540
11124
|
function encodeFieldNode(b, node) {
|
|
11541
|
-
return FieldNode.createFieldNode(b,
|
|
11125
|
+
return FieldNode.createFieldNode(b, BigInt(node.length), BigInt(node.nullCount));
|
|
11542
11126
|
}
|
|
11543
11127
|
function encodeBufferRegion(b, node) {
|
|
11544
|
-
return Buffer2.createBuffer(b,
|
|
11128
|
+
return Buffer2.createBuffer(b, BigInt(node.offset), BigInt(node.length));
|
|
11545
11129
|
}
|
|
11546
|
-
var
|
|
11130
|
+
var Builder4, ByteBuffer3, Message2, RecordBatch3, DictionaryBatch2, BufferRegion, FieldNode2, platformIsLittleEndian;
|
|
11547
11131
|
var init_message2 = __esm({
|
|
11548
11132
|
"../../node_modules/apache-arrow/ipc/metadata/message.mjs"() {
|
|
11549
11133
|
init_flatbuffers();
|
|
@@ -11570,21 +11154,14 @@ return true;`);
|
|
|
11570
11154
|
init_message();
|
|
11571
11155
|
init_schema2();
|
|
11572
11156
|
init_buffer();
|
|
11157
|
+
init_bigint();
|
|
11573
11158
|
init_enum2();
|
|
11574
11159
|
init_typeassembler();
|
|
11575
11160
|
init_json();
|
|
11576
11161
|
init_type();
|
|
11577
|
-
Long4 = Long;
|
|
11578
11162
|
Builder4 = Builder2;
|
|
11579
11163
|
ByteBuffer3 = ByteBuffer;
|
|
11580
11164
|
Message2 = class {
|
|
11581
|
-
constructor(bodyLength, version, headerType, header) {
|
|
11582
|
-
this._version = version;
|
|
11583
|
-
this._headerType = headerType;
|
|
11584
|
-
this.body = new Uint8Array(0);
|
|
11585
|
-
header && (this._createHeader = () => header);
|
|
11586
|
-
this._bodyLength = typeof bodyLength === "number" ? bodyLength : bodyLength.low;
|
|
11587
|
-
}
|
|
11588
11165
|
static fromJSON(msg, headerType) {
|
|
11589
11166
|
const message = new Message2(0, MetadataVersion.V4, headerType);
|
|
11590
11167
|
message._createHeader = messageHeaderFromJSON(msg, headerType);
|
|
@@ -11614,7 +11191,7 @@ return true;`);
|
|
|
11614
11191
|
Message.addVersion(b, MetadataVersion.V4);
|
|
11615
11192
|
Message.addHeader(b, headerOffset);
|
|
11616
11193
|
Message.addHeaderType(b, message.headerType);
|
|
11617
|
-
Message.addBodyLength(b,
|
|
11194
|
+
Message.addBodyLength(b, BigInt(message.bodyLength));
|
|
11618
11195
|
Message.finishMessageBuffer(b, Message.endMessage(b));
|
|
11619
11196
|
return b.asUint8Array();
|
|
11620
11197
|
}
|
|
@@ -11654,13 +11231,15 @@ return true;`);
|
|
|
11654
11231
|
isDictionaryBatch() {
|
|
11655
11232
|
return this.headerType === MessageHeader.DictionaryBatch;
|
|
11656
11233
|
}
|
|
11234
|
+
constructor(bodyLength, version, headerType, header) {
|
|
11235
|
+
this._version = version;
|
|
11236
|
+
this._headerType = headerType;
|
|
11237
|
+
this.body = new Uint8Array(0);
|
|
11238
|
+
header && (this._createHeader = () => header);
|
|
11239
|
+
this._bodyLength = bigIntToNumber(bodyLength);
|
|
11240
|
+
}
|
|
11657
11241
|
};
|
|
11658
11242
|
RecordBatch3 = class {
|
|
11659
|
-
constructor(length, nodes, buffers) {
|
|
11660
|
-
this._nodes = nodes;
|
|
11661
|
-
this._buffers = buffers;
|
|
11662
|
-
this._length = typeof length === "number" ? length : length.low;
|
|
11663
|
-
}
|
|
11664
11243
|
get nodes() {
|
|
11665
11244
|
return this._nodes;
|
|
11666
11245
|
}
|
|
@@ -11670,13 +11249,13 @@ return true;`);
|
|
|
11670
11249
|
get buffers() {
|
|
11671
11250
|
return this._buffers;
|
|
11672
11251
|
}
|
|
11252
|
+
constructor(length, nodes, buffers) {
|
|
11253
|
+
this._nodes = nodes;
|
|
11254
|
+
this._buffers = buffers;
|
|
11255
|
+
this._length = bigIntToNumber(length);
|
|
11256
|
+
}
|
|
11673
11257
|
};
|
|
11674
11258
|
DictionaryBatch2 = class {
|
|
11675
|
-
constructor(data, id, isDelta = false) {
|
|
11676
|
-
this._data = data;
|
|
11677
|
-
this._isDelta = isDelta;
|
|
11678
|
-
this._id = typeof id === "number" ? id : id.low;
|
|
11679
|
-
}
|
|
11680
11259
|
get id() {
|
|
11681
11260
|
return this._id;
|
|
11682
11261
|
}
|
|
@@ -11695,17 +11274,22 @@ return true;`);
|
|
|
11695
11274
|
get buffers() {
|
|
11696
11275
|
return this.data.buffers;
|
|
11697
11276
|
}
|
|
11277
|
+
constructor(data, id, isDelta = false) {
|
|
11278
|
+
this._data = data;
|
|
11279
|
+
this._isDelta = isDelta;
|
|
11280
|
+
this._id = bigIntToNumber(id);
|
|
11281
|
+
}
|
|
11698
11282
|
};
|
|
11699
11283
|
BufferRegion = class {
|
|
11700
11284
|
constructor(offset, length) {
|
|
11701
|
-
this.offset =
|
|
11702
|
-
this.length =
|
|
11285
|
+
this.offset = bigIntToNumber(offset);
|
|
11286
|
+
this.length = bigIntToNumber(length);
|
|
11703
11287
|
}
|
|
11704
11288
|
};
|
|
11705
11289
|
FieldNode2 = class {
|
|
11706
11290
|
constructor(length, nullCount) {
|
|
11707
|
-
this.length =
|
|
11708
|
-
this.nullCount =
|
|
11291
|
+
this.length = bigIntToNumber(length);
|
|
11292
|
+
this.nullCount = bigIntToNumber(nullCount);
|
|
11709
11293
|
}
|
|
11710
11294
|
};
|
|
11711
11295
|
Field2["encode"] = encodeField;
|
|
@@ -11744,7 +11328,7 @@ return true;`);
|
|
|
11744
11328
|
var invalidMessageType, nullMessage, invalidMessageMetadata, invalidMessageBodyLength, MessageReader, AsyncMessageReader, JSONMessageReader, PADDING, MAGIC_STR, MAGIC, magicLength, magicAndPadding, magicX2AndPadding;
|
|
11745
11329
|
var init_message3 = __esm({
|
|
11746
11330
|
"../../node_modules/apache-arrow/ipc/message.mjs"() {
|
|
11747
|
-
|
|
11331
|
+
init_tslib_es6();
|
|
11748
11332
|
init_enum2();
|
|
11749
11333
|
init_flatbuffers();
|
|
11750
11334
|
init_message2();
|
|
@@ -11994,8 +11578,8 @@ return true;`);
|
|
|
11994
11578
|
});
|
|
11995
11579
|
|
|
11996
11580
|
// ../../node_modules/apache-arrow/ipc/reader.mjs
|
|
11997
|
-
function shouldAutoDestroy(
|
|
11998
|
-
return options && typeof options["autoDestroy"] === "boolean" ? options["autoDestroy"] :
|
|
11581
|
+
function shouldAutoDestroy(self, options) {
|
|
11582
|
+
return options && typeof options["autoDestroy"] === "boolean" ? options["autoDestroy"] : self["autoDestroy"];
|
|
11999
11583
|
}
|
|
12000
11584
|
function* readAllSync(source) {
|
|
12001
11585
|
const reader = RecordBatchReader.from(source);
|
|
@@ -12053,7 +11637,7 @@ return true;`);
|
|
|
12053
11637
|
var RecordBatchReader, RecordBatchStreamReader, AsyncRecordBatchStreamReader, RecordBatchFileReader, AsyncRecordBatchFileReader, RecordBatchReaderImpl, RecordBatchStreamReaderImpl, AsyncRecordBatchStreamReaderImpl, RecordBatchFileReaderImpl, AsyncRecordBatchFileReaderImpl, RecordBatchJSONReaderImpl;
|
|
12054
11638
|
var init_reader = __esm({
|
|
12055
11639
|
"../../node_modules/apache-arrow/ipc/reader.mjs"() {
|
|
12056
|
-
|
|
11640
|
+
init_tslib_es6();
|
|
12057
11641
|
init_data();
|
|
12058
11642
|
init_vector2();
|
|
12059
11643
|
init_type();
|
|
@@ -12196,20 +11780,22 @@ return true;`);
|
|
|
12196
11780
|
this._impl = _impl;
|
|
12197
11781
|
}
|
|
12198
11782
|
readAll() {
|
|
12199
|
-
var e_1,
|
|
11783
|
+
var _a5, e_1, _b2, _c2;
|
|
12200
11784
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12201
11785
|
const batches = new Array();
|
|
12202
11786
|
try {
|
|
12203
|
-
for (var
|
|
12204
|
-
|
|
11787
|
+
for (var _d2 = true, _e2 = __asyncValues(this), _f2; _f2 = yield _e2.next(), _a5 = _f2.done, !_a5; _d2 = true) {
|
|
11788
|
+
_c2 = _f2.value;
|
|
11789
|
+
_d2 = false;
|
|
11790
|
+
const batch = _c2;
|
|
12205
11791
|
batches.push(batch);
|
|
12206
11792
|
}
|
|
12207
11793
|
} catch (e_1_1) {
|
|
12208
11794
|
e_1 = { error: e_1_1 };
|
|
12209
11795
|
} finally {
|
|
12210
11796
|
try {
|
|
12211
|
-
if (
|
|
12212
|
-
yield
|
|
11797
|
+
if (!_d2 && !_a5 && (_b2 = _e2.return))
|
|
11798
|
+
yield _b2.call(_e2);
|
|
12213
11799
|
} finally {
|
|
12214
11800
|
if (e_1)
|
|
12215
11801
|
throw e_1.error;
|
|
@@ -12238,6 +11824,12 @@ return true;`);
|
|
|
12238
11824
|
}
|
|
12239
11825
|
};
|
|
12240
11826
|
RecordBatchReaderImpl = class {
|
|
11827
|
+
get numDictionaries() {
|
|
11828
|
+
return this._dictionaryIndex;
|
|
11829
|
+
}
|
|
11830
|
+
get numRecordBatches() {
|
|
11831
|
+
return this._recordBatchIndex;
|
|
11832
|
+
}
|
|
12241
11833
|
constructor(dictionaries = new Map()) {
|
|
12242
11834
|
this.closed = false;
|
|
12243
11835
|
this.autoDestroy = true;
|
|
@@ -12245,12 +11837,6 @@ return true;`);
|
|
|
12245
11837
|
this._recordBatchIndex = 0;
|
|
12246
11838
|
this.dictionaries = dictionaries;
|
|
12247
11839
|
}
|
|
12248
|
-
get numDictionaries() {
|
|
12249
|
-
return this._dictionaryIndex;
|
|
12250
|
-
}
|
|
12251
|
-
get numRecordBatches() {
|
|
12252
|
-
return this._recordBatchIndex;
|
|
12253
|
-
}
|
|
12254
11840
|
isSync() {
|
|
12255
11841
|
return false;
|
|
12256
11842
|
}
|
|
@@ -12453,9 +12039,6 @@ return true;`);
|
|
|
12453
12039
|
}
|
|
12454
12040
|
};
|
|
12455
12041
|
RecordBatchFileReaderImpl = class extends RecordBatchStreamReaderImpl {
|
|
12456
|
-
constructor(source, dictionaries) {
|
|
12457
|
-
super(source instanceof RandomAccessFile ? source : new RandomAccessFile(source), dictionaries);
|
|
12458
|
-
}
|
|
12459
12042
|
get footer() {
|
|
12460
12043
|
return this._footer;
|
|
12461
12044
|
}
|
|
@@ -12465,6 +12048,9 @@ return true;`);
|
|
|
12465
12048
|
get numRecordBatches() {
|
|
12466
12049
|
return this._footer ? this._footer.numRecordBatches : 0;
|
|
12467
12050
|
}
|
|
12051
|
+
constructor(source, dictionaries) {
|
|
12052
|
+
super(source instanceof RandomAccessFile ? source : new RandomAccessFile(source), dictionaries);
|
|
12053
|
+
}
|
|
12468
12054
|
isSync() {
|
|
12469
12055
|
return true;
|
|
12470
12056
|
}
|
|
@@ -12535,11 +12121,6 @@ return true;`);
|
|
|
12535
12121
|
}
|
|
12536
12122
|
};
|
|
12537
12123
|
AsyncRecordBatchFileReaderImpl = class extends AsyncRecordBatchStreamReaderImpl {
|
|
12538
|
-
constructor(source, ...rest) {
|
|
12539
|
-
const byteLength = typeof rest[0] !== "number" ? rest.shift() : void 0;
|
|
12540
|
-
const dictionaries = rest[0] instanceof Map ? rest.shift() : void 0;
|
|
12541
|
-
super(source instanceof AsyncRandomAccessFile ? source : new AsyncRandomAccessFile(source, byteLength), dictionaries);
|
|
12542
|
-
}
|
|
12543
12124
|
get footer() {
|
|
12544
12125
|
return this._footer;
|
|
12545
12126
|
}
|
|
@@ -12549,6 +12130,11 @@ return true;`);
|
|
|
12549
12130
|
get numRecordBatches() {
|
|
12550
12131
|
return this._footer ? this._footer.numRecordBatches : 0;
|
|
12551
12132
|
}
|
|
12133
|
+
constructor(source, ...rest) {
|
|
12134
|
+
const byteLength = typeof rest[0] !== "number" ? rest.shift() : void 0;
|
|
12135
|
+
const dictionaries = rest[0] instanceof Map ? rest.shift() : void 0;
|
|
12136
|
+
super(source instanceof AsyncRandomAccessFile ? source : new AsyncRandomAccessFile(source, byteLength), dictionaries);
|
|
12137
|
+
}
|
|
12552
12138
|
isFile() {
|
|
12553
12139
|
return true;
|
|
12554
12140
|
}
|
|
@@ -12727,6 +12313,12 @@ return true;`);
|
|
|
12727
12313
|
init_message2();
|
|
12728
12314
|
init_type();
|
|
12729
12315
|
VectorAssembler = class extends Visitor {
|
|
12316
|
+
static assemble(...args) {
|
|
12317
|
+
const unwrap = (nodes) => nodes.flatMap((node) => Array.isArray(node) ? unwrap(node) : node instanceof RecordBatch ? node.data.children : node.data);
|
|
12318
|
+
const assembler = new VectorAssembler();
|
|
12319
|
+
assembler.visitMany(unwrap(args));
|
|
12320
|
+
return assembler;
|
|
12321
|
+
}
|
|
12730
12322
|
constructor() {
|
|
12731
12323
|
super();
|
|
12732
12324
|
this._byteLength = 0;
|
|
@@ -12734,12 +12326,6 @@ return true;`);
|
|
|
12734
12326
|
this._buffers = [];
|
|
12735
12327
|
this._bufferRegions = [];
|
|
12736
12328
|
}
|
|
12737
|
-
static assemble(...args) {
|
|
12738
|
-
const unwrap = (nodes) => nodes.flatMap((node) => Array.isArray(node) ? unwrap(node) : node instanceof RecordBatch ? node.data.children : node.data);
|
|
12739
|
-
const assembler = new VectorAssembler();
|
|
12740
|
-
assembler.visitMany(unwrap(args));
|
|
12741
|
-
return assembler;
|
|
12742
|
-
}
|
|
12743
12329
|
visit(data) {
|
|
12744
12330
|
if (data instanceof Vector) {
|
|
12745
12331
|
this.visitMany(data.data);
|
|
@@ -12809,20 +12395,22 @@ return true;`);
|
|
|
12809
12395
|
return writer.finish();
|
|
12810
12396
|
}
|
|
12811
12397
|
function writeAllAsync(writer, batches) {
|
|
12812
|
-
var batches_1, batches_1_1;
|
|
12813
|
-
var e_1,
|
|
12398
|
+
var _a5, batches_1, batches_1_1;
|
|
12399
|
+
var _b2, e_1, _c2, _d2;
|
|
12814
12400
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12815
12401
|
try {
|
|
12816
|
-
for (batches_1 = __asyncValues(batches); batches_1_1 = yield batches_1.next(),
|
|
12817
|
-
|
|
12402
|
+
for (_a5 = true, batches_1 = __asyncValues(batches); batches_1_1 = yield batches_1.next(), _b2 = batches_1_1.done, !_b2; _a5 = true) {
|
|
12403
|
+
_d2 = batches_1_1.value;
|
|
12404
|
+
_a5 = false;
|
|
12405
|
+
const batch = _d2;
|
|
12818
12406
|
writer.write(batch);
|
|
12819
12407
|
}
|
|
12820
12408
|
} catch (e_1_1) {
|
|
12821
12409
|
e_1 = { error: e_1_1 };
|
|
12822
12410
|
} finally {
|
|
12823
12411
|
try {
|
|
12824
|
-
if (
|
|
12825
|
-
yield
|
|
12412
|
+
if (!_a5 && !_b2 && (_c2 = batches_1.return))
|
|
12413
|
+
yield _c2.call(batches_1);
|
|
12826
12414
|
} finally {
|
|
12827
12415
|
if (e_1)
|
|
12828
12416
|
throw e_1.error;
|
|
@@ -12834,7 +12422,7 @@ return true;`);
|
|
|
12834
12422
|
var RecordBatchWriter, RecordBatchStreamWriter, RecordBatchFileWriter;
|
|
12835
12423
|
var init_writer = __esm({
|
|
12836
12424
|
"../../node_modules/apache-arrow/ipc/writer.mjs"() {
|
|
12837
|
-
|
|
12425
|
+
init_tslib_es6();
|
|
12838
12426
|
init_table();
|
|
12839
12427
|
init_message3();
|
|
12840
12428
|
init_vector2();
|
|
@@ -12850,6 +12438,12 @@ return true;`);
|
|
|
12850
12438
|
init_interfaces();
|
|
12851
12439
|
init_compat();
|
|
12852
12440
|
RecordBatchWriter = class extends ReadableInterop {
|
|
12441
|
+
static throughNode(options) {
|
|
12442
|
+
throw new Error(`"throughNode" not available in this environment`);
|
|
12443
|
+
}
|
|
12444
|
+
static throughDOM(writableStrategy, readableStrategy) {
|
|
12445
|
+
throw new Error(`"throughDOM" not available in this environment`);
|
|
12446
|
+
}
|
|
12853
12447
|
constructor(options) {
|
|
12854
12448
|
super();
|
|
12855
12449
|
this._position = 0;
|
|
@@ -12863,12 +12457,6 @@ return true;`);
|
|
|
12863
12457
|
this._autoDestroy = typeof options.autoDestroy === "boolean" ? options.autoDestroy : true;
|
|
12864
12458
|
this._writeLegacyIpcFormat = typeof options.writeLegacyIpcFormat === "boolean" ? options.writeLegacyIpcFormat : false;
|
|
12865
12459
|
}
|
|
12866
|
-
static throughNode(options) {
|
|
12867
|
-
throw new Error(`"throughNode" not available in this environment`);
|
|
12868
|
-
}
|
|
12869
|
-
static throughDOM(writableStrategy, readableStrategy) {
|
|
12870
|
-
throw new Error(`"throughDOM" not available in this environment`);
|
|
12871
|
-
}
|
|
12872
12460
|
toString(sync = false) {
|
|
12873
12461
|
return this._sink.toString(sync);
|
|
12874
12462
|
}
|
|
@@ -13165,7 +12753,7 @@ return true;`);
|
|
|
13165
12753
|
}
|
|
13166
12754
|
var init_iterable = __esm({
|
|
13167
12755
|
"../../node_modules/apache-arrow/io/whatwg/iterable.mjs"() {
|
|
13168
|
-
|
|
12756
|
+
init_tslib_es6();
|
|
13169
12757
|
init_buffer();
|
|
13170
12758
|
init_compat();
|
|
13171
12759
|
}
|
|
@@ -13178,7 +12766,7 @@ return true;`);
|
|
|
13178
12766
|
var BuilderTransform, chunkLength, chunkByteLength;
|
|
13179
12767
|
var init_builder3 = __esm({
|
|
13180
12768
|
"../../node_modules/apache-arrow/io/whatwg/builder.mjs"() {
|
|
13181
|
-
|
|
12769
|
+
init_tslib_es6();
|
|
13182
12770
|
init_factories();
|
|
13183
12771
|
BuilderTransform = class {
|
|
13184
12772
|
constructor(options) {
|
|
@@ -13301,7 +12889,7 @@ return true;`);
|
|
|
13301
12889
|
}
|
|
13302
12890
|
var init_reader2 = __esm({
|
|
13303
12891
|
"../../node_modules/apache-arrow/io/whatwg/reader.mjs"() {
|
|
13304
|
-
|
|
12892
|
+
init_tslib_es6();
|
|
13305
12893
|
init_stream();
|
|
13306
12894
|
init_reader();
|
|
13307
12895
|
}
|
|
@@ -13345,7 +12933,7 @@ return true;`);
|
|
|
13345
12933
|
}
|
|
13346
12934
|
var init_writer2 = __esm({
|
|
13347
12935
|
"../../node_modules/apache-arrow/io/whatwg/writer.mjs"() {
|
|
13348
|
-
|
|
12936
|
+
init_tslib_es6();
|
|
13349
12937
|
init_stream();
|
|
13350
12938
|
}
|
|
13351
12939
|
});
|
|
@@ -13533,6 +13121,7 @@ return true;`);
|
|
|
13533
13121
|
Uint64: () => Uint64,
|
|
13534
13122
|
Uint8: () => Uint8,
|
|
13535
13123
|
Utf8: () => Utf8,
|
|
13124
|
+
convertTable: () => convertTable,
|
|
13536
13125
|
convertToArrayRow: () => convertToArrayRow,
|
|
13537
13126
|
convertToObjectRow: () => convertToObjectRow,
|
|
13538
13127
|
deduceMeshField: () => deduceMeshField,
|
|
@@ -13565,6 +13154,7 @@ return true;`);
|
|
|
13565
13154
|
init_table_accessors();
|
|
13566
13155
|
init_arrow_like_table();
|
|
13567
13156
|
init_make_table();
|
|
13157
|
+
init_convert_table();
|
|
13568
13158
|
init_table_schema();
|
|
13569
13159
|
init_row_utils();
|
|
13570
13160
|
init_data_type();
|