precision-dashwidgets 0.2.1 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,22 +5,22 @@ function T(s, t, e, n) {
5
5
  });
6
6
  }
7
7
  return new (e || (e = Promise))(function(i, o) {
8
- function a(h) {
8
+ function a(d) {
9
9
  try {
10
- u(n.next(h));
11
- } catch (d) {
12
- o(d);
10
+ u(n.next(d));
11
+ } catch (h) {
12
+ o(h);
13
13
  }
14
14
  }
15
- function l(h) {
15
+ function c(d) {
16
16
  try {
17
- u(n.throw(h));
18
- } catch (d) {
19
- o(d);
17
+ u(n.throw(d));
18
+ } catch (h) {
19
+ o(h);
20
20
  }
21
21
  }
22
- function u(h) {
23
- h.done ? i(h.value) : r(h.value).then(a, l);
22
+ function u(d) {
23
+ d.done ? i(d.value) : r(d.value).then(a, c);
24
24
  }
25
25
  u((n = n.apply(s, t || [])).next());
26
26
  });
@@ -46,17 +46,17 @@ function Tt(s, t, e) {
46
46
  }, r;
47
47
  function o(R) {
48
48
  return function(nt) {
49
- return Promise.resolve(nt).then(R, d);
49
+ return Promise.resolve(nt).then(R, h);
50
50
  };
51
51
  }
52
52
  function a(R, nt) {
53
53
  n[R] && (r[R] = function(te) {
54
54
  return new Promise(function(Pt, zs) {
55
- i.push([R, te, Pt, zs]) > 1 || l(R, te);
55
+ i.push([R, te, Pt, zs]) > 1 || c(R, te);
56
56
  });
57
57
  }, nt && (r[R] = nt(r[R])));
58
58
  }
59
- function l(R, nt) {
59
+ function c(R, nt) {
60
60
  try {
61
61
  u(n[R](nt));
62
62
  } catch (te) {
@@ -64,16 +64,16 @@ function Tt(s, t, e) {
64
64
  }
65
65
  }
66
66
  function u(R) {
67
- R.value instanceof E ? Promise.resolve(R.value.v).then(h, d) : j(i[0][2], R);
68
- }
69
- function h(R) {
70
- l("next", R);
67
+ R.value instanceof E ? Promise.resolve(R.value.v).then(d, h) : j(i[0][2], R);
71
68
  }
72
69
  function d(R) {
73
- l("throw", R);
70
+ c("next", R);
71
+ }
72
+ function h(R) {
73
+ c("throw", R);
74
74
  }
75
75
  function j(R, nt) {
76
- R(nt), i.shift(), i.length && l(i[0][0], i[0][1]);
76
+ R(nt), i.shift(), i.length && c(i[0][0], i[0][1]);
77
77
  }
78
78
  }
79
79
  function He(s) {
@@ -97,13 +97,13 @@ function Qt(s) {
97
97
  }, e);
98
98
  function n(i) {
99
99
  e[i] = s[i] && function(o) {
100
- return new Promise(function(a, l) {
101
- o = s[i](o), r(a, l, o.done, o.value);
100
+ return new Promise(function(a, c) {
101
+ o = s[i](o), r(a, c, o.done, o.value);
102
102
  });
103
103
  };
104
104
  }
105
- function r(i, o, a, l) {
106
- Promise.resolve(l).then(function(u) {
105
+ function r(i, o, a, c) {
106
+ Promise.resolve(c).then(function(u) {
107
107
  i({ value: u, done: a });
108
108
  }, o);
109
109
  }
@@ -112,8 +112,8 @@ const So = new TextDecoder("utf-8"), Xs = (s) => So.decode(s), To = new TextEnco
112
112
  function Do(s) {
113
113
  const t = s[0] ? [s[0]] : [];
114
114
  let e, n, r, i;
115
- for (let o, a, l = 0, u = 0, h = s.length; ++l < h; ) {
116
- if (o = t[u], a = s[l], !o || !a || o.buffer !== a.buffer || a.byteOffset < o.byteOffset) {
115
+ for (let o, a, c = 0, u = 0, d = s.length; ++c < d; ) {
116
+ if (o = t[u], a = s[c], !o || !a || o.buffer !== a.buffer || a.byteOffset < o.byteOffset) {
117
117
  a && (t[++u] = a);
118
118
  continue;
119
119
  }
@@ -130,17 +130,17 @@ function Yn(s, t, e = 0, n = t.byteLength) {
130
130
  return i.set(o, e), s;
131
131
  }
132
132
  function Ot(s, t) {
133
- const e = Do(s), n = e.reduce((h, d) => h + d.byteLength, 0);
134
- let r, i, o, a = 0, l = -1;
133
+ const e = Do(s), n = e.reduce((d, h) => d + h.byteLength, 0);
134
+ let r, i, o, a = 0, c = -1;
135
135
  const u = Math.min(t || Number.POSITIVE_INFINITY, n);
136
- for (const h = e.length; ++l < h; ) {
137
- if (r = e[l], i = r.subarray(0, Math.min(r.length, u - a)), u <= a + i.length) {
138
- i.length < r.length ? e[l] = r.subarray(i.length) : i.length === r.length && l++, o ? Yn(o, i, a) : o = i;
136
+ for (const d = e.length; ++c < d; ) {
137
+ if (r = e[c], i = r.subarray(0, Math.min(r.length, u - a)), u <= a + i.length) {
138
+ i.length < r.length ? e[c] = r.subarray(i.length) : i.length === r.length && c++, o ? Yn(o, i, a) : o = i;
139
139
  break;
140
140
  }
141
141
  Yn(o || (o = new Uint8Array(u)), i, a), a += i.length;
142
142
  }
143
- return [o || new Uint8Array(0), e.slice(l), n - (o ? o.byteLength : 0)];
143
+ return [o || new Uint8Array(0), e.slice(c), n - (o ? o.byteLength : 0)];
144
144
  }
145
145
  function x(s, t) {
146
146
  let e = gr(t) ? t.value : t;
@@ -151,12 +151,12 @@ function* Bo(s, t) {
151
151
  const e = function* (r) {
152
152
  yield r;
153
153
  }, n = typeof t == "string" || ArrayBuffer.isView(t) || t instanceof ArrayBuffer || t instanceof bn ? e(t) : Ve(t) ? t : e(t);
154
- return yield* en(function* (r) {
154
+ return yield* en((function* (r) {
155
155
  let i = null;
156
156
  do
157
157
  i = r.next(yield x(s, i));
158
158
  while (!i.done);
159
- }(n[Symbol.iterator]())), new s();
159
+ })(n[Symbol.iterator]())), new s();
160
160
  }
161
161
  const No = (s) => Bo(Uint8Array, s);
162
162
  function Ir(s, t) {
@@ -169,24 +169,24 @@ function Ir(s, t) {
169
169
  });
170
170
  }, n = function(i) {
171
171
  return Tt(this, arguments, function* () {
172
- yield E(yield* He(Qt(en(function* (o) {
172
+ yield E(yield* He(Qt(en((function* (o) {
173
173
  let a = null;
174
174
  do
175
175
  a = o.next(yield a == null ? void 0 : a.value);
176
176
  while (!a.done);
177
- }(i[Symbol.iterator]())))));
177
+ })(i[Symbol.iterator]())))));
178
178
  });
179
179
  }, r = typeof t == "string" || ArrayBuffer.isView(t) || t instanceof ArrayBuffer || t instanceof bn ? e(t) : Ve(t) ? n(t) : we(t) ? t : e(t);
180
180
  return yield E(
181
181
  // otherwise if AsyncIterable, use it
182
- yield* He(Qt(en(function(i) {
182
+ yield* He(Qt(en((function(i) {
183
183
  return Tt(this, arguments, function* () {
184
184
  let o = null;
185
185
  do
186
186
  o = yield E(i.next(yield yield E(x(s, o))));
187
187
  while (!o.done);
188
188
  });
189
- }(r[Symbol.asyncIterator]()))))
189
+ })(r[Symbol.asyncIterator]()))))
190
190
  ), yield E(new s());
191
191
  });
192
192
  }
@@ -211,7 +211,7 @@ function Lo(s, t) {
211
211
  while (++e < n);
212
212
  return !0;
213
213
  }
214
- const lt = {
214
+ const ct = {
215
215
  fromIterable(s) {
216
216
  return Ge(Uo(s));
217
217
  },
@@ -235,7 +235,7 @@ const lt = {
235
235
  }, Ge = (s) => (s.next(), s);
236
236
  function* Uo(s) {
237
237
  let t, e = !1, n = [], r, i, o, a = 0;
238
- function l() {
238
+ function c() {
239
239
  return i === "peek" ? Ot(n, o)[0] : ([r, n, a] = Ot(n, o), r);
240
240
  }
241
241
  ({ cmd: i, size: o } = (yield null) || { cmd: "read", size: 0 });
@@ -244,11 +244,11 @@ function* Uo(s) {
244
244
  do
245
245
  if ({ done: t, value: r } = Number.isNaN(o - a) ? u.next() : u.next(o - a), !t && r.byteLength > 0 && (n.push(r), a += r.byteLength), t || o <= a)
246
246
  do
247
- ({ cmd: i, size: o } = yield l());
247
+ ({ cmd: i, size: o } = yield c());
248
248
  while (o < a);
249
249
  while (!t);
250
- } catch (h) {
251
- (e = !0) && typeof u.throw == "function" && u.throw(h);
250
+ } catch (d) {
251
+ (e = !0) && typeof u.throw == "function" && u.throw(d);
252
252
  } finally {
253
253
  e === !1 && typeof u.return == "function" && u.return(null);
254
254
  }
@@ -257,7 +257,7 @@ function* Uo(s) {
257
257
  function Mo(s) {
258
258
  return Tt(this, arguments, function* () {
259
259
  let t, e = !1, n = [], r, i, o, a = 0;
260
- function l() {
260
+ function c() {
261
261
  return i === "peek" ? Ot(n, o)[0] : ([r, n, a] = Ot(n, o), r);
262
262
  }
263
263
  ({ cmd: i, size: o } = (yield yield E(null)) || { cmd: "read", size: 0 });
@@ -266,11 +266,11 @@ function Mo(s) {
266
266
  do
267
267
  if ({ done: t, value: r } = Number.isNaN(o - a) ? yield E(u.next()) : yield E(u.next(o - a)), !t && r.byteLength > 0 && (n.push(r), a += r.byteLength), t || o <= a)
268
268
  do
269
- ({ cmd: i, size: o } = yield yield E(l()));
269
+ ({ cmd: i, size: o } = yield yield E(c()));
270
270
  while (o < a);
271
271
  while (!t);
272
- } catch (h) {
273
- (e = !0) && typeof u.throw == "function" && (yield E(u.throw(h)));
272
+ } catch (d) {
273
+ (e = !0) && typeof u.throw == "function" && (yield E(u.throw(d)));
274
274
  } finally {
275
275
  e === !1 && typeof u.return == "function" && (yield E(u.return(new Uint8Array(0))));
276
276
  }
@@ -280,7 +280,7 @@ function Mo(s) {
280
280
  function Co(s) {
281
281
  return Tt(this, arguments, function* () {
282
282
  let t = !1, e = !1, n = [], r, i, o, a = 0;
283
- function l() {
283
+ function c() {
284
284
  return i === "peek" ? Ot(n, o)[0] : ([r, n, a] = Ot(n, o), r);
285
285
  }
286
286
  ({ cmd: i, size: o } = (yield yield E(null)) || { cmd: "read", size: 0 });
@@ -289,11 +289,11 @@ function Co(s) {
289
289
  do
290
290
  if ({ done: t, value: r } = Number.isNaN(o - a) ? yield E(u.read()) : yield E(u.read(o - a)), !t && r.byteLength > 0 && (n.push(D(r)), a += r.byteLength), t || o <= a)
291
291
  do
292
- ({ cmd: i, size: o } = yield yield E(l()));
292
+ ({ cmd: i, size: o } = yield yield E(c()));
293
293
  while (o < a);
294
294
  while (!t);
295
- } catch (h) {
296
- (e = !0) && (yield E(u.cancel(h)));
295
+ } catch (d) {
296
+ (e = !0) && (yield E(u.cancel(d)));
297
297
  } finally {
298
298
  e === !1 ? yield E(u.cancel()) : s.locked && u.releaseLock();
299
299
  }
@@ -336,9 +336,9 @@ const js = (s, t) => {
336
336
  function Po(s) {
337
337
  return Tt(this, arguments, function* () {
338
338
  const t = [];
339
- let e = "error", n = !1, r = null, i, o, a = 0, l = [], u;
340
- function h() {
341
- return i === "peek" ? Ot(l, o)[0] : ([u, l, a] = Ot(l, o), u);
339
+ let e = "error", n = !1, r = null, i, o, a = 0, c = [], u;
340
+ function d() {
341
+ return i === "peek" ? Ot(c, o)[0] : ([u, c, a] = Ot(c, o), u);
342
342
  }
343
343
  if ({ cmd: i, size: o } = (yield yield E(null)) || { cmd: "read", size: 0 }, s.isTTY)
344
344
  return yield yield E(new Uint8Array(0)), yield E(null);
@@ -347,17 +347,17 @@ function Po(s) {
347
347
  do {
348
348
  if (t[2] = js(s, "readable"), [e, r] = yield E(Promise.race(t.map((j) => j[2]))), e === "error")
349
349
  break;
350
- if ((n = e === "end") || (Number.isFinite(o - a) ? (u = D(s.read(o - a)), u.byteLength < o - a && (u = D(s.read()))) : u = D(s.read()), u.byteLength > 0 && (l.push(u), a += u.byteLength)), n || o <= a)
350
+ if ((n = e === "end") || (Number.isFinite(o - a) ? (u = D(s.read(o - a)), u.byteLength < o - a && (u = D(s.read()))) : u = D(s.read()), u.byteLength > 0 && (c.push(u), a += u.byteLength)), n || o <= a)
351
351
  do
352
- ({ cmd: i, size: o } = yield yield E(h()));
352
+ ({ cmd: i, size: o } = yield yield E(d()));
353
353
  while (o < a);
354
354
  } while (!n);
355
355
  } finally {
356
- yield E(d(t, e === "error" ? r : null));
356
+ yield E(h(t, e === "error" ? r : null));
357
357
  }
358
358
  return yield E(null);
359
- function d(j, R) {
360
- return u = l = null, new Promise((nt, te) => {
359
+ function h(j, R) {
360
+ return u = c = null, new Promise((nt, te) => {
361
361
  for (const [Pt, zs] of j)
362
362
  s.off(Pt, zs);
363
363
  try {
@@ -843,10 +843,10 @@ let ge = class Sr {
843
843
  let o = 0;
844
844
  const a = this.space;
845
845
  t: for (e = 0; e < this.vtables.length; e++) {
846
- const l = this.bb.capacity() - this.vtables[e];
847
- if (i == this.bb.readInt16(l)) {
846
+ const c = this.bb.capacity() - this.vtables[e];
847
+ if (i == this.bb.readInt16(c)) {
848
848
  for (let u = Ys; u < i; u += Ys)
849
- if (this.bb.readInt16(a + u) != this.bb.readInt16(l + u))
849
+ if (this.bb.readInt16(a + u) != this.bb.readInt16(c + u))
850
850
  continue t;
851
851
  o = this.vtables[e];
852
852
  break;
@@ -1700,7 +1700,7 @@ let qn = class Ae {
1700
1700
  static createList(t) {
1701
1701
  return De.startList(t), De.endList(t);
1702
1702
  }
1703
- }, Xe = class ce {
1703
+ }, Xe = class le {
1704
1704
  constructor() {
1705
1705
  this.bb = null, this.bb_pos = 0;
1706
1706
  }
@@ -1708,10 +1708,10 @@ let qn = class Ae {
1708
1708
  return this.bb_pos = t, this.bb = e, this;
1709
1709
  }
1710
1710
  static getRootAsMap(t, e) {
1711
- return (e || new ce()).__init(t.readInt32(t.position()) + t.position(), t);
1711
+ return (e || new le()).__init(t.readInt32(t.position()) + t.position(), t);
1712
1712
  }
1713
1713
  static getSizePrefixedRootAsMap(t, e) {
1714
- return t.setPosition(t.position() + U), (e || new ce()).__init(t.readInt32(t.position()) + t.position(), t);
1714
+ return t.setPosition(t.position() + U), (e || new le()).__init(t.readInt32(t.position()) + t.position(), t);
1715
1715
  }
1716
1716
  /**
1717
1717
  * Set to true if the keys within each value are sorted
@@ -1730,7 +1730,7 @@ let qn = class Ae {
1730
1730
  return t.endObject();
1731
1731
  }
1732
1732
  static createMap(t, e) {
1733
- return ce.startMap(t), ce.addKeysSorted(t, e), ce.endMap(t);
1733
+ return le.startMap(t), le.addKeysSorted(t, e), le.endMap(t);
1734
1734
  }
1735
1735
  }, Zn = class Be {
1736
1736
  constructor() {
@@ -1815,7 +1815,7 @@ class ut {
1815
1815
  return ut.startTime(t), ut.addUnit(t, e), ut.addBitWidth(t, n), ut.endTime(t);
1816
1816
  }
1817
1817
  }
1818
- class ht {
1818
+ class dt {
1819
1819
  constructor() {
1820
1820
  this.bb = null, this.bb_pos = 0;
1821
1821
  }
@@ -1823,10 +1823,10 @@ class ht {
1823
1823
  return this.bb_pos = t, this.bb = e, this;
1824
1824
  }
1825
1825
  static getRootAsTimestamp(t, e) {
1826
- return (e || new ht()).__init(t.readInt32(t.position()) + t.position(), t);
1826
+ return (e || new dt()).__init(t.readInt32(t.position()) + t.position(), t);
1827
1827
  }
1828
1828
  static getSizePrefixedRootAsTimestamp(t, e) {
1829
- return t.setPosition(t.position() + U), (e || new ht()).__init(t.readInt32(t.position()) + t.position(), t);
1829
+ return t.setPosition(t.position() + U), (e || new dt()).__init(t.readInt32(t.position()) + t.position(), t);
1830
1830
  }
1831
1831
  unit() {
1832
1832
  const t = this.bb.__offset(this.bb_pos, 4);
@@ -1849,7 +1849,7 @@ class ht {
1849
1849
  return t.endObject();
1850
1850
  }
1851
1851
  static createTimestamp(t, e, n) {
1852
- return ht.startTimestamp(t), ht.addUnit(t, e), ht.addTimezone(t, n), ht.endTimestamp(t);
1852
+ return dt.startTimestamp(t), dt.addUnit(t, e), dt.addTimezone(t, n), dt.endTimestamp(t);
1853
1853
  }
1854
1854
  }
1855
1855
  class X {
@@ -2151,10 +2151,10 @@ var N;
2151
2151
  (function(s) {
2152
2152
  s[s.NONE = 0] = "NONE", s[s.Schema = 1] = "Schema", s[s.DictionaryBatch = 2] = "DictionaryBatch", s[s.RecordBatch = 3] = "RecordBatch", s[s.Tensor = 4] = "Tensor", s[s.SparseTensor = 5] = "SparseTensor";
2153
2153
  })(N || (N = {}));
2154
- var c;
2154
+ var l;
2155
2155
  (function(s) {
2156
2156
  s[s.NONE = 0] = "NONE", s[s.Null = 1] = "Null", s[s.Int = 2] = "Int", s[s.Float = 3] = "Float", s[s.Binary = 4] = "Binary", s[s.Utf8 = 5] = "Utf8", s[s.Bool = 6] = "Bool", s[s.Decimal = 7] = "Decimal", s[s.Date = 8] = "Date", s[s.Time = 9] = "Time", s[s.Timestamp = 10] = "Timestamp", s[s.Interval = 11] = "Interval", s[s.List = 12] = "List", s[s.Struct = 13] = "Struct", s[s.Union = 14] = "Union", s[s.FixedSizeBinary = 15] = "FixedSizeBinary", s[s.FixedSizeList = 16] = "FixedSizeList", s[s.Map = 17] = "Map", s[s.Duration = 18] = "Duration", s[s.LargeBinary = 19] = "LargeBinary", s[s.LargeUtf8 = 20] = "LargeUtf8", s[s.Dictionary = -1] = "Dictionary", s[s.Int8 = -2] = "Int8", s[s.Int16 = -3] = "Int16", s[s.Int32 = -4] = "Int32", s[s.Int64 = -5] = "Int64", s[s.Uint8 = -6] = "Uint8", s[s.Uint16 = -7] = "Uint16", s[s.Uint32 = -8] = "Uint32", s[s.Uint64 = -9] = "Uint64", s[s.Float16 = -10] = "Float16", s[s.Float32 = -11] = "Float32", s[s.Float64 = -12] = "Float64", s[s.DateDay = -13] = "DateDay", s[s.DateMillisecond = -14] = "DateMillisecond", s[s.TimestampSecond = -15] = "TimestampSecond", s[s.TimestampMillisecond = -16] = "TimestampMillisecond", s[s.TimestampMicrosecond = -17] = "TimestampMicrosecond", s[s.TimestampNanosecond = -18] = "TimestampNanosecond", s[s.TimeSecond = -19] = "TimeSecond", s[s.TimeMillisecond = -20] = "TimeMillisecond", s[s.TimeMicrosecond = -21] = "TimeMicrosecond", s[s.TimeNanosecond = -22] = "TimeNanosecond", s[s.DenseUnion = -23] = "DenseUnion", s[s.SparseUnion = -24] = "SparseUnion", s[s.IntervalDayTime = -25] = "IntervalDayTime", s[s.IntervalYearMonth = -26] = "IntervalYearMonth", s[s.DurationSecond = -27] = "DurationSecond", s[s.DurationMillisecond = -28] = "DurationMillisecond", s[s.DurationMicrosecond = -29] = "DurationMicrosecond", s[s.DurationNanosecond = -30] = "DurationNanosecond";
2157
- })(c || (c = {}));
2157
+ })(l || (l = {}));
2158
2158
  var Nt;
2159
2159
  (function(s) {
2160
2160
  s[s.OFFSET = 0] = "OFFSET", s[s.DATA = 1] = "DATA", s[s.VALIDITY = 2] = "VALIDITY", s[s.TYPE = 3] = "TYPE";
@@ -2226,19 +2226,19 @@ Object.assign(Me.prototype, gt.prototype, { constructor: Me, signed: !0, TypedAr
2226
2226
  const zo = BigInt(4294967296) * BigInt(4294967296), jo = zo - BigInt(1);
2227
2227
  function Dr(s, t) {
2228
2228
  const { buffer: e, byteOffset: n, byteLength: r, signed: i } = s, o = new BigUint64Array(e, n, r / 8), a = i && o.at(-1) & BigInt(1) << BigInt(63);
2229
- let l = BigInt(0), u = 0;
2229
+ let c = BigInt(0), u = 0;
2230
2230
  if (a) {
2231
- for (const h of o)
2232
- l |= (h ^ jo) * (BigInt(1) << BigInt(64 * u++));
2233
- l *= BigInt(-1), l -= BigInt(1);
2231
+ for (const d of o)
2232
+ c |= (d ^ jo) * (BigInt(1) << BigInt(64 * u++));
2233
+ c *= BigInt(-1), c -= BigInt(1);
2234
2234
  } else
2235
- for (const h of o)
2236
- l |= h * (BigInt(1) << BigInt(64 * u++));
2235
+ for (const d of o)
2236
+ c |= d * (BigInt(1) << BigInt(64 * u++));
2237
2237
  if (typeof t == "number") {
2238
- const h = BigInt(Math.pow(10, t)), d = l / h, j = l % h;
2239
- return P(d) + P(j) / P(h);
2238
+ const d = BigInt(Math.pow(10, t)), h = c / d, j = c % d;
2239
+ return P(h) + P(j) / P(d);
2240
2240
  }
2241
- return P(l);
2241
+ return P(c);
2242
2242
  }
2243
2243
  function Ce(s) {
2244
2244
  if (s.byteLength === 8)
@@ -2311,87 +2311,87 @@ var Br, Nr, Fr, Lr, Ur, Mr, Cr, xr, Pr, kr, Vr, zr, jr, Yr, Wr, Gr, $r, Kr, Hr,
2311
2311
  class p {
2312
2312
  /** @nocollapse */
2313
2313
  static isNull(t) {
2314
- return (t == null ? void 0 : t.typeId) === c.Null;
2314
+ return (t == null ? void 0 : t.typeId) === l.Null;
2315
2315
  }
2316
2316
  /** @nocollapse */
2317
2317
  static isInt(t) {
2318
- return (t == null ? void 0 : t.typeId) === c.Int;
2318
+ return (t == null ? void 0 : t.typeId) === l.Int;
2319
2319
  }
2320
2320
  /** @nocollapse */
2321
2321
  static isFloat(t) {
2322
- return (t == null ? void 0 : t.typeId) === c.Float;
2322
+ return (t == null ? void 0 : t.typeId) === l.Float;
2323
2323
  }
2324
2324
  /** @nocollapse */
2325
2325
  static isBinary(t) {
2326
- return (t == null ? void 0 : t.typeId) === c.Binary;
2326
+ return (t == null ? void 0 : t.typeId) === l.Binary;
2327
2327
  }
2328
2328
  /** @nocollapse */
2329
2329
  static isLargeBinary(t) {
2330
- return (t == null ? void 0 : t.typeId) === c.LargeBinary;
2330
+ return (t == null ? void 0 : t.typeId) === l.LargeBinary;
2331
2331
  }
2332
2332
  /** @nocollapse */
2333
2333
  static isUtf8(t) {
2334
- return (t == null ? void 0 : t.typeId) === c.Utf8;
2334
+ return (t == null ? void 0 : t.typeId) === l.Utf8;
2335
2335
  }
2336
2336
  /** @nocollapse */
2337
2337
  static isLargeUtf8(t) {
2338
- return (t == null ? void 0 : t.typeId) === c.LargeUtf8;
2338
+ return (t == null ? void 0 : t.typeId) === l.LargeUtf8;
2339
2339
  }
2340
2340
  /** @nocollapse */
2341
2341
  static isBool(t) {
2342
- return (t == null ? void 0 : t.typeId) === c.Bool;
2342
+ return (t == null ? void 0 : t.typeId) === l.Bool;
2343
2343
  }
2344
2344
  /** @nocollapse */
2345
2345
  static isDecimal(t) {
2346
- return (t == null ? void 0 : t.typeId) === c.Decimal;
2346
+ return (t == null ? void 0 : t.typeId) === l.Decimal;
2347
2347
  }
2348
2348
  /** @nocollapse */
2349
2349
  static isDate(t) {
2350
- return (t == null ? void 0 : t.typeId) === c.Date;
2350
+ return (t == null ? void 0 : t.typeId) === l.Date;
2351
2351
  }
2352
2352
  /** @nocollapse */
2353
2353
  static isTime(t) {
2354
- return (t == null ? void 0 : t.typeId) === c.Time;
2354
+ return (t == null ? void 0 : t.typeId) === l.Time;
2355
2355
  }
2356
2356
  /** @nocollapse */
2357
2357
  static isTimestamp(t) {
2358
- return (t == null ? void 0 : t.typeId) === c.Timestamp;
2358
+ return (t == null ? void 0 : t.typeId) === l.Timestamp;
2359
2359
  }
2360
2360
  /** @nocollapse */
2361
2361
  static isInterval(t) {
2362
- return (t == null ? void 0 : t.typeId) === c.Interval;
2362
+ return (t == null ? void 0 : t.typeId) === l.Interval;
2363
2363
  }
2364
2364
  /** @nocollapse */
2365
2365
  static isDuration(t) {
2366
- return (t == null ? void 0 : t.typeId) === c.Duration;
2366
+ return (t == null ? void 0 : t.typeId) === l.Duration;
2367
2367
  }
2368
2368
  /** @nocollapse */
2369
2369
  static isList(t) {
2370
- return (t == null ? void 0 : t.typeId) === c.List;
2370
+ return (t == null ? void 0 : t.typeId) === l.List;
2371
2371
  }
2372
2372
  /** @nocollapse */
2373
2373
  static isStruct(t) {
2374
- return (t == null ? void 0 : t.typeId) === c.Struct;
2374
+ return (t == null ? void 0 : t.typeId) === l.Struct;
2375
2375
  }
2376
2376
  /** @nocollapse */
2377
2377
  static isUnion(t) {
2378
- return (t == null ? void 0 : t.typeId) === c.Union;
2378
+ return (t == null ? void 0 : t.typeId) === l.Union;
2379
2379
  }
2380
2380
  /** @nocollapse */
2381
2381
  static isFixedSizeBinary(t) {
2382
- return (t == null ? void 0 : t.typeId) === c.FixedSizeBinary;
2382
+ return (t == null ? void 0 : t.typeId) === l.FixedSizeBinary;
2383
2383
  }
2384
2384
  /** @nocollapse */
2385
2385
  static isFixedSizeList(t) {
2386
- return (t == null ? void 0 : t.typeId) === c.FixedSizeList;
2386
+ return (t == null ? void 0 : t.typeId) === l.FixedSizeList;
2387
2387
  }
2388
2388
  /** @nocollapse */
2389
2389
  static isMap(t) {
2390
- return (t == null ? void 0 : t.typeId) === c.Map;
2390
+ return (t == null ? void 0 : t.typeId) === l.Map;
2391
2391
  }
2392
2392
  /** @nocollapse */
2393
2393
  static isDictionary(t) {
2394
- return (t == null ? void 0 : t.typeId) === c.Dictionary;
2394
+ return (t == null ? void 0 : t.typeId) === l.Dictionary;
2395
2395
  }
2396
2396
  /** @nocollapse */
2397
2397
  static isDenseUnion(t) {
@@ -2409,7 +2409,7 @@ Br = Symbol.toStringTag;
2409
2409
  p[Br] = ((s) => (s.children = null, s.ArrayType = Array, s.OffsetArrayType = Int32Array, s[Symbol.toStringTag] = "DataType"))(p.prototype);
2410
2410
  class Yt extends p {
2411
2411
  constructor() {
2412
- super(c.Null);
2412
+ super(l.Null);
2413
2413
  }
2414
2414
  toString() {
2415
2415
  return "Null";
@@ -2419,7 +2419,7 @@ Nr = Symbol.toStringTag;
2419
2419
  Yt[Nr] = ((s) => s[Symbol.toStringTag] = "Null")(Yt.prototype);
2420
2420
  class Zt extends p {
2421
2421
  constructor(t, e) {
2422
- super(c.Int), this.isSigned = t, this.bitWidth = e;
2422
+ super(l.Int), this.isSigned = t, this.bitWidth = e;
2423
2423
  }
2424
2424
  get ArrayType() {
2425
2425
  switch (this.bitWidth) {
@@ -2449,9 +2449,9 @@ class xe extends Zt {
2449
2449
  }
2450
2450
  }
2451
2451
  Object.defineProperty(xe.prototype, "ArrayType", { value: Int32Array });
2452
- class cs extends p {
2452
+ class ls extends p {
2453
2453
  constructor(t) {
2454
- super(c.Float), this.precision = t;
2454
+ super(l.Float), this.precision = t;
2455
2455
  }
2456
2456
  get ArrayType() {
2457
2457
  switch (this.precision) {
@@ -2469,20 +2469,20 @@ class cs extends p {
2469
2469
  }
2470
2470
  }
2471
2471
  Lr = Symbol.toStringTag;
2472
- cs[Lr] = ((s) => (s.precision = null, s[Symbol.toStringTag] = "Float"))(cs.prototype);
2473
- class ls extends p {
2472
+ ls[Lr] = ((s) => (s.precision = null, s[Symbol.toStringTag] = "Float"))(ls.prototype);
2473
+ class cs extends p {
2474
2474
  constructor() {
2475
- super(c.Binary);
2475
+ super(l.Binary);
2476
2476
  }
2477
2477
  toString() {
2478
2478
  return "Binary";
2479
2479
  }
2480
2480
  }
2481
2481
  Ur = Symbol.toStringTag;
2482
- ls[Ur] = ((s) => (s.ArrayType = Uint8Array, s[Symbol.toStringTag] = "Binary"))(ls.prototype);
2482
+ cs[Ur] = ((s) => (s.ArrayType = Uint8Array, s[Symbol.toStringTag] = "Binary"))(cs.prototype);
2483
2483
  class us extends p {
2484
2484
  constructor() {
2485
- super(c.LargeBinary);
2485
+ super(l.LargeBinary);
2486
2486
  }
2487
2487
  toString() {
2488
2488
  return "LargeBinary";
@@ -2490,29 +2490,29 @@ class us extends p {
2490
2490
  }
2491
2491
  Mr = Symbol.toStringTag;
2492
2492
  us[Mr] = ((s) => (s.ArrayType = Uint8Array, s.OffsetArrayType = BigInt64Array, s[Symbol.toStringTag] = "LargeBinary"))(us.prototype);
2493
- class hs extends p {
2493
+ class ds extends p {
2494
2494
  constructor() {
2495
- super(c.Utf8);
2495
+ super(l.Utf8);
2496
2496
  }
2497
2497
  toString() {
2498
2498
  return "Utf8";
2499
2499
  }
2500
2500
  }
2501
2501
  Cr = Symbol.toStringTag;
2502
- hs[Cr] = ((s) => (s.ArrayType = Uint8Array, s[Symbol.toStringTag] = "Utf8"))(hs.prototype);
2503
- class ds extends p {
2502
+ ds[Cr] = ((s) => (s.ArrayType = Uint8Array, s[Symbol.toStringTag] = "Utf8"))(ds.prototype);
2503
+ class hs extends p {
2504
2504
  constructor() {
2505
- super(c.LargeUtf8);
2505
+ super(l.LargeUtf8);
2506
2506
  }
2507
2507
  toString() {
2508
2508
  return "LargeUtf8";
2509
2509
  }
2510
2510
  }
2511
2511
  xr = Symbol.toStringTag;
2512
- ds[xr] = ((s) => (s.ArrayType = Uint8Array, s.OffsetArrayType = BigInt64Array, s[Symbol.toStringTag] = "LargeUtf8"))(ds.prototype);
2512
+ hs[xr] = ((s) => (s.ArrayType = Uint8Array, s.OffsetArrayType = BigInt64Array, s[Symbol.toStringTag] = "LargeUtf8"))(hs.prototype);
2513
2513
  class ps extends p {
2514
2514
  constructor() {
2515
- super(c.Bool);
2515
+ super(l.Bool);
2516
2516
  }
2517
2517
  toString() {
2518
2518
  return "Bool";
@@ -2522,7 +2522,7 @@ Pr = Symbol.toStringTag;
2522
2522
  ps[Pr] = ((s) => (s.ArrayType = Uint8Array, s[Symbol.toStringTag] = "Bool"))(ps.prototype);
2523
2523
  class fs extends p {
2524
2524
  constructor(t, e, n = 128) {
2525
- super(c.Decimal), this.scale = t, this.precision = e, this.bitWidth = n;
2525
+ super(l.Decimal), this.scale = t, this.precision = e, this.bitWidth = n;
2526
2526
  }
2527
2527
  toString() {
2528
2528
  return `Decimal[${this.precision}e${this.scale > 0 ? "+" : ""}${this.scale}]`;
@@ -2532,7 +2532,7 @@ kr = Symbol.toStringTag;
2532
2532
  fs[kr] = ((s) => (s.scale = null, s.precision = null, s.ArrayType = Uint32Array, s[Symbol.toStringTag] = "Decimal"))(fs.prototype);
2533
2533
  class ys extends p {
2534
2534
  constructor(t) {
2535
- super(c.Date), this.unit = t;
2535
+ super(l.Date), this.unit = t;
2536
2536
  }
2537
2537
  toString() {
2538
2538
  return `Date${(this.unit + 1) * 32}<${pt[this.unit]}>`;
@@ -2545,7 +2545,7 @@ Vr = Symbol.toStringTag;
2545
2545
  ys[Vr] = ((s) => (s.unit = null, s[Symbol.toStringTag] = "Date"))(ys.prototype);
2546
2546
  class bs extends p {
2547
2547
  constructor(t, e) {
2548
- super(c.Time), this.unit = t, this.bitWidth = e;
2548
+ super(l.Time), this.unit = t, this.bitWidth = e;
2549
2549
  }
2550
2550
  toString() {
2551
2551
  return `Time${this.bitWidth}<${m[this.unit]}>`;
@@ -2564,7 +2564,7 @@ zr = Symbol.toStringTag;
2564
2564
  bs[zr] = ((s) => (s.unit = null, s.bitWidth = null, s[Symbol.toStringTag] = "Time"))(bs.prototype);
2565
2565
  class gs extends p {
2566
2566
  constructor(t, e) {
2567
- super(c.Timestamp), this.unit = t, this.timezone = e;
2567
+ super(l.Timestamp), this.unit = t, this.timezone = e;
2568
2568
  }
2569
2569
  toString() {
2570
2570
  return `Timestamp<${m[this.unit]}${this.timezone ? `, ${this.timezone}` : ""}>`;
@@ -2574,7 +2574,7 @@ jr = Symbol.toStringTag;
2574
2574
  gs[jr] = ((s) => (s.unit = null, s.timezone = null, s.ArrayType = BigInt64Array, s[Symbol.toStringTag] = "Timestamp"))(gs.prototype);
2575
2575
  class ms extends p {
2576
2576
  constructor(t) {
2577
- super(c.Interval), this.unit = t;
2577
+ super(l.Interval), this.unit = t;
2578
2578
  }
2579
2579
  toString() {
2580
2580
  return `Interval<${At[this.unit]}>`;
@@ -2584,7 +2584,7 @@ Yr = Symbol.toStringTag;
2584
2584
  ms[Yr] = ((s) => (s.unit = null, s.ArrayType = Int32Array, s[Symbol.toStringTag] = "Interval"))(ms.prototype);
2585
2585
  class _s extends p {
2586
2586
  constructor(t) {
2587
- super(c.Duration), this.unit = t;
2587
+ super(l.Duration), this.unit = t;
2588
2588
  }
2589
2589
  toString() {
2590
2590
  return `Duration<${m[this.unit]}>`;
@@ -2594,7 +2594,7 @@ Wr = Symbol.toStringTag;
2594
2594
  _s[Wr] = ((s) => (s.unit = null, s.ArrayType = BigInt64Array, s[Symbol.toStringTag] = "Duration"))(_s.prototype);
2595
2595
  class vs extends p {
2596
2596
  constructor(t) {
2597
- super(c.List), this.children = [t];
2597
+ super(l.List), this.children = [t];
2598
2598
  }
2599
2599
  toString() {
2600
2600
  return `List<${this.valueType}>`;
@@ -2613,7 +2613,7 @@ Gr = Symbol.toStringTag;
2613
2613
  vs[Gr] = ((s) => (s.children = null, s[Symbol.toStringTag] = "List"))(vs.prototype);
2614
2614
  class Q extends p {
2615
2615
  constructor(t) {
2616
- super(c.Struct), this.children = t;
2616
+ super(l.Struct), this.children = t;
2617
2617
  }
2618
2618
  toString() {
2619
2619
  return `Struct<{${this.children.map((t) => `${t.name}:${t.type}`).join(", ")}}>`;
@@ -2623,7 +2623,7 @@ $r = Symbol.toStringTag;
2623
2623
  Q[$r] = ((s) => (s.children = null, s[Symbol.toStringTag] = "Struct"))(Q.prototype);
2624
2624
  class Is extends p {
2625
2625
  constructor(t, e, n) {
2626
- super(c.Union), this.mode = t, this.children = n, this.typeIds = e = Int32Array.from(e), this.typeIdToChildIndex = e.reduce((r, i, o) => (r[i] = o) && r || r, /* @__PURE__ */ Object.create(null));
2626
+ super(l.Union), this.mode = t, this.children = n, this.typeIds = e = Int32Array.from(e), this.typeIdToChildIndex = e.reduce((r, i, o) => (r[i] = o) && r || r, /* @__PURE__ */ Object.create(null));
2627
2627
  }
2628
2628
  toString() {
2629
2629
  return `${this[Symbol.toStringTag]}<${this.children.map((t) => `${t.type}`).join(" | ")}>`;
@@ -2633,7 +2633,7 @@ Kr = Symbol.toStringTag;
2633
2633
  Is[Kr] = ((s) => (s.mode = null, s.typeIds = null, s.children = null, s.typeIdToChildIndex = null, s.ArrayType = Int8Array, s[Symbol.toStringTag] = "Union"))(Is.prototype);
2634
2634
  class ws extends p {
2635
2635
  constructor(t) {
2636
- super(c.FixedSizeBinary), this.byteWidth = t;
2636
+ super(l.FixedSizeBinary), this.byteWidth = t;
2637
2637
  }
2638
2638
  toString() {
2639
2639
  return `FixedSizeBinary[${this.byteWidth}]`;
@@ -2643,7 +2643,7 @@ Hr = Symbol.toStringTag;
2643
2643
  ws[Hr] = ((s) => (s.byteWidth = null, s.ArrayType = Uint8Array, s[Symbol.toStringTag] = "FixedSizeBinary"))(ws.prototype);
2644
2644
  class Ss extends p {
2645
2645
  constructor(t, e) {
2646
- super(c.FixedSizeList), this.listSize = t, this.children = [e];
2646
+ super(l.FixedSizeList), this.listSize = t, this.children = [e];
2647
2647
  }
2648
2648
  get valueType() {
2649
2649
  return this.children[0].type;
@@ -2663,7 +2663,7 @@ Ss[qr] = ((s) => (s.children = null, s.listSize = null, s[Symbol.toStringTag] =
2663
2663
  class Ts extends p {
2664
2664
  constructor(t, e = !1) {
2665
2665
  var n, r, i;
2666
- if (super(c.Map), this.children = [t], this.keysSorted = e, t && (t.name = "entries", !((n = t == null ? void 0 : t.type) === null || n === void 0) && n.children)) {
2666
+ if (super(l.Map), this.children = [t], this.keysSorted = e, t && (t.name = "entries", !((n = t == null ? void 0 : t.type) === null || n === void 0) && n.children)) {
2667
2667
  const o = (r = t == null ? void 0 : t.type) === null || r === void 0 ? void 0 : r.children[0];
2668
2668
  o && (o.name = "key");
2669
2669
  const a = (i = t == null ? void 0 : t.type) === null || i === void 0 ? void 0 : i.children[1];
@@ -2688,7 +2688,7 @@ Ts[Qr] = ((s) => (s.children = null, s.keysSorted = null, s[Symbol.toStringTag]
2688
2688
  const Wo = /* @__PURE__ */ ((s) => () => ++s)(-1);
2689
2689
  class _e extends p {
2690
2690
  constructor(t, e, n, r) {
2691
- super(c.Dictionary), this.indices = e, this.dictionary = t, this.isOrdered = r || !1, this.id = n == null ? Wo() : P(n);
2691
+ super(l.Dictionary), this.indices = e, this.dictionary = t, this.isOrdered = r || !1, this.id = n == null ? Wo() : P(n);
2692
2692
  }
2693
2693
  get children() {
2694
2694
  return this.dictionary.children;
@@ -2708,13 +2708,15 @@ _e[Jr] = ((s) => (s.id = null, s.indices = null, s.isOrdered = null, s.dictionar
2708
2708
  function Ft(s) {
2709
2709
  const t = s;
2710
2710
  switch (s.typeId) {
2711
- case c.Decimal:
2711
+ case l.Decimal:
2712
2712
  return s.bitWidth / 32;
2713
- case c.Interval:
2713
+ case l.Interval:
2714
2714
  return 1 + t.unit;
2715
- case c.FixedSizeList:
2715
+ // case Type.Int: return 1 + +((t as Int_).bitWidth > 32);
2716
+ // case Type.Time: return 1 + +((t as Time_).bitWidth > 32);
2717
+ case l.FixedSizeList:
2716
2718
  return t.listSize;
2717
- case c.FixedSizeBinary:
2719
+ case l.FixedSizeBinary:
2718
2720
  return t.byteWidth;
2719
2721
  default:
2720
2722
  return 1;
@@ -2731,7 +2733,7 @@ class O {
2731
2733
  return Go(this, t, e);
2732
2734
  }
2733
2735
  getVisitFnByTypeId(t, e = !0) {
2734
- return le(this, t, e);
2736
+ return ce(this, t, e);
2735
2737
  }
2736
2738
  visitNull(t, ...e) {
2737
2739
  return null;
@@ -2798,159 +2800,159 @@ class O {
2798
2800
  }
2799
2801
  }
2800
2802
  function Go(s, t, e = !0) {
2801
- return typeof t == "number" ? le(s, t, e) : typeof t == "string" && t in c ? le(s, c[t], e) : t && t instanceof p ? le(s, tr(t), e) : t != null && t.type && t.type instanceof p ? le(s, tr(t.type), e) : le(s, c.NONE, e);
2803
+ return typeof t == "number" ? ce(s, t, e) : typeof t == "string" && t in l ? ce(s, l[t], e) : t && t instanceof p ? ce(s, tr(t), e) : t != null && t.type && t.type instanceof p ? ce(s, tr(t.type), e) : ce(s, l.NONE, e);
2802
2804
  }
2803
- function le(s, t, e = !0) {
2805
+ function ce(s, t, e = !0) {
2804
2806
  let n = null;
2805
2807
  switch (t) {
2806
- case c.Null:
2808
+ case l.Null:
2807
2809
  n = s.visitNull;
2808
2810
  break;
2809
- case c.Bool:
2811
+ case l.Bool:
2810
2812
  n = s.visitBool;
2811
2813
  break;
2812
- case c.Int:
2814
+ case l.Int:
2813
2815
  n = s.visitInt;
2814
2816
  break;
2815
- case c.Int8:
2817
+ case l.Int8:
2816
2818
  n = s.visitInt8 || s.visitInt;
2817
2819
  break;
2818
- case c.Int16:
2820
+ case l.Int16:
2819
2821
  n = s.visitInt16 || s.visitInt;
2820
2822
  break;
2821
- case c.Int32:
2823
+ case l.Int32:
2822
2824
  n = s.visitInt32 || s.visitInt;
2823
2825
  break;
2824
- case c.Int64:
2826
+ case l.Int64:
2825
2827
  n = s.visitInt64 || s.visitInt;
2826
2828
  break;
2827
- case c.Uint8:
2829
+ case l.Uint8:
2828
2830
  n = s.visitUint8 || s.visitInt;
2829
2831
  break;
2830
- case c.Uint16:
2832
+ case l.Uint16:
2831
2833
  n = s.visitUint16 || s.visitInt;
2832
2834
  break;
2833
- case c.Uint32:
2835
+ case l.Uint32:
2834
2836
  n = s.visitUint32 || s.visitInt;
2835
2837
  break;
2836
- case c.Uint64:
2838
+ case l.Uint64:
2837
2839
  n = s.visitUint64 || s.visitInt;
2838
2840
  break;
2839
- case c.Float:
2841
+ case l.Float:
2840
2842
  n = s.visitFloat;
2841
2843
  break;
2842
- case c.Float16:
2844
+ case l.Float16:
2843
2845
  n = s.visitFloat16 || s.visitFloat;
2844
2846
  break;
2845
- case c.Float32:
2847
+ case l.Float32:
2846
2848
  n = s.visitFloat32 || s.visitFloat;
2847
2849
  break;
2848
- case c.Float64:
2850
+ case l.Float64:
2849
2851
  n = s.visitFloat64 || s.visitFloat;
2850
2852
  break;
2851
- case c.Utf8:
2853
+ case l.Utf8:
2852
2854
  n = s.visitUtf8;
2853
2855
  break;
2854
- case c.LargeUtf8:
2856
+ case l.LargeUtf8:
2855
2857
  n = s.visitLargeUtf8;
2856
2858
  break;
2857
- case c.Binary:
2859
+ case l.Binary:
2858
2860
  n = s.visitBinary;
2859
2861
  break;
2860
- case c.LargeBinary:
2862
+ case l.LargeBinary:
2861
2863
  n = s.visitLargeBinary;
2862
2864
  break;
2863
- case c.FixedSizeBinary:
2865
+ case l.FixedSizeBinary:
2864
2866
  n = s.visitFixedSizeBinary;
2865
2867
  break;
2866
- case c.Date:
2868
+ case l.Date:
2867
2869
  n = s.visitDate;
2868
2870
  break;
2869
- case c.DateDay:
2871
+ case l.DateDay:
2870
2872
  n = s.visitDateDay || s.visitDate;
2871
2873
  break;
2872
- case c.DateMillisecond:
2874
+ case l.DateMillisecond:
2873
2875
  n = s.visitDateMillisecond || s.visitDate;
2874
2876
  break;
2875
- case c.Timestamp:
2877
+ case l.Timestamp:
2876
2878
  n = s.visitTimestamp;
2877
2879
  break;
2878
- case c.TimestampSecond:
2880
+ case l.TimestampSecond:
2879
2881
  n = s.visitTimestampSecond || s.visitTimestamp;
2880
2882
  break;
2881
- case c.TimestampMillisecond:
2883
+ case l.TimestampMillisecond:
2882
2884
  n = s.visitTimestampMillisecond || s.visitTimestamp;
2883
2885
  break;
2884
- case c.TimestampMicrosecond:
2886
+ case l.TimestampMicrosecond:
2885
2887
  n = s.visitTimestampMicrosecond || s.visitTimestamp;
2886
2888
  break;
2887
- case c.TimestampNanosecond:
2889
+ case l.TimestampNanosecond:
2888
2890
  n = s.visitTimestampNanosecond || s.visitTimestamp;
2889
2891
  break;
2890
- case c.Time:
2892
+ case l.Time:
2891
2893
  n = s.visitTime;
2892
2894
  break;
2893
- case c.TimeSecond:
2895
+ case l.TimeSecond:
2894
2896
  n = s.visitTimeSecond || s.visitTime;
2895
2897
  break;
2896
- case c.TimeMillisecond:
2898
+ case l.TimeMillisecond:
2897
2899
  n = s.visitTimeMillisecond || s.visitTime;
2898
2900
  break;
2899
- case c.TimeMicrosecond:
2901
+ case l.TimeMicrosecond:
2900
2902
  n = s.visitTimeMicrosecond || s.visitTime;
2901
2903
  break;
2902
- case c.TimeNanosecond:
2904
+ case l.TimeNanosecond:
2903
2905
  n = s.visitTimeNanosecond || s.visitTime;
2904
2906
  break;
2905
- case c.Decimal:
2907
+ case l.Decimal:
2906
2908
  n = s.visitDecimal;
2907
2909
  break;
2908
- case c.List:
2910
+ case l.List:
2909
2911
  n = s.visitList;
2910
2912
  break;
2911
- case c.Struct:
2913
+ case l.Struct:
2912
2914
  n = s.visitStruct;
2913
2915
  break;
2914
- case c.Union:
2916
+ case l.Union:
2915
2917
  n = s.visitUnion;
2916
2918
  break;
2917
- case c.DenseUnion:
2919
+ case l.DenseUnion:
2918
2920
  n = s.visitDenseUnion || s.visitUnion;
2919
2921
  break;
2920
- case c.SparseUnion:
2922
+ case l.SparseUnion:
2921
2923
  n = s.visitSparseUnion || s.visitUnion;
2922
2924
  break;
2923
- case c.Dictionary:
2925
+ case l.Dictionary:
2924
2926
  n = s.visitDictionary;
2925
2927
  break;
2926
- case c.Interval:
2928
+ case l.Interval:
2927
2929
  n = s.visitInterval;
2928
2930
  break;
2929
- case c.IntervalDayTime:
2931
+ case l.IntervalDayTime:
2930
2932
  n = s.visitIntervalDayTime || s.visitInterval;
2931
2933
  break;
2932
- case c.IntervalYearMonth:
2934
+ case l.IntervalYearMonth:
2933
2935
  n = s.visitIntervalYearMonth || s.visitInterval;
2934
2936
  break;
2935
- case c.Duration:
2937
+ case l.Duration:
2936
2938
  n = s.visitDuration;
2937
2939
  break;
2938
- case c.DurationSecond:
2940
+ case l.DurationSecond:
2939
2941
  n = s.visitDurationSecond || s.visitDuration;
2940
2942
  break;
2941
- case c.DurationMillisecond:
2943
+ case l.DurationMillisecond:
2942
2944
  n = s.visitDurationMillisecond || s.visitDuration;
2943
2945
  break;
2944
- case c.DurationMicrosecond:
2946
+ case l.DurationMicrosecond:
2945
2947
  n = s.visitDurationMicrosecond || s.visitDuration;
2946
2948
  break;
2947
- case c.DurationNanosecond:
2949
+ case l.DurationNanosecond:
2948
2950
  n = s.visitDurationNanosecond || s.visitDuration;
2949
2951
  break;
2950
- case c.FixedSizeList:
2952
+ case l.FixedSizeList:
2951
2953
  n = s.visitFixedSizeList;
2952
2954
  break;
2953
- case c.Map:
2955
+ case l.Map:
2954
2956
  n = s.visitMap;
2955
2957
  break;
2956
2958
  }
@@ -2958,122 +2960,122 @@ function le(s, t, e = !0) {
2958
2960
  return n;
2959
2961
  if (!e)
2960
2962
  return () => null;
2961
- throw new Error(`Unrecognized type '${c[t]}'`);
2963
+ throw new Error(`Unrecognized type '${l[t]}'`);
2962
2964
  }
2963
2965
  function tr(s) {
2964
2966
  switch (s.typeId) {
2965
- case c.Null:
2966
- return c.Null;
2967
- case c.Int: {
2967
+ case l.Null:
2968
+ return l.Null;
2969
+ case l.Int: {
2968
2970
  const { bitWidth: t, isSigned: e } = s;
2969
2971
  switch (t) {
2970
2972
  case 8:
2971
- return e ? c.Int8 : c.Uint8;
2973
+ return e ? l.Int8 : l.Uint8;
2972
2974
  case 16:
2973
- return e ? c.Int16 : c.Uint16;
2975
+ return e ? l.Int16 : l.Uint16;
2974
2976
  case 32:
2975
- return e ? c.Int32 : c.Uint32;
2977
+ return e ? l.Int32 : l.Uint32;
2976
2978
  case 64:
2977
- return e ? c.Int64 : c.Uint64;
2979
+ return e ? l.Int64 : l.Uint64;
2978
2980
  }
2979
- return c.Int;
2981
+ return l.Int;
2980
2982
  }
2981
- case c.Float:
2983
+ case l.Float:
2982
2984
  switch (s.precision) {
2983
2985
  case K.HALF:
2984
- return c.Float16;
2986
+ return l.Float16;
2985
2987
  case K.SINGLE:
2986
- return c.Float32;
2988
+ return l.Float32;
2987
2989
  case K.DOUBLE:
2988
- return c.Float64;
2990
+ return l.Float64;
2989
2991
  }
2990
- return c.Float;
2991
- case c.Binary:
2992
- return c.Binary;
2993
- case c.LargeBinary:
2994
- return c.LargeBinary;
2995
- case c.Utf8:
2996
- return c.Utf8;
2997
- case c.LargeUtf8:
2998
- return c.LargeUtf8;
2999
- case c.Bool:
3000
- return c.Bool;
3001
- case c.Decimal:
3002
- return c.Decimal;
3003
- case c.Time:
2992
+ return l.Float;
2993
+ case l.Binary:
2994
+ return l.Binary;
2995
+ case l.LargeBinary:
2996
+ return l.LargeBinary;
2997
+ case l.Utf8:
2998
+ return l.Utf8;
2999
+ case l.LargeUtf8:
3000
+ return l.LargeUtf8;
3001
+ case l.Bool:
3002
+ return l.Bool;
3003
+ case l.Decimal:
3004
+ return l.Decimal;
3005
+ case l.Time:
3004
3006
  switch (s.unit) {
3005
3007
  case m.SECOND:
3006
- return c.TimeSecond;
3008
+ return l.TimeSecond;
3007
3009
  case m.MILLISECOND:
3008
- return c.TimeMillisecond;
3010
+ return l.TimeMillisecond;
3009
3011
  case m.MICROSECOND:
3010
- return c.TimeMicrosecond;
3012
+ return l.TimeMicrosecond;
3011
3013
  case m.NANOSECOND:
3012
- return c.TimeNanosecond;
3014
+ return l.TimeNanosecond;
3013
3015
  }
3014
- return c.Time;
3015
- case c.Timestamp:
3016
+ return l.Time;
3017
+ case l.Timestamp:
3016
3018
  switch (s.unit) {
3017
3019
  case m.SECOND:
3018
- return c.TimestampSecond;
3020
+ return l.TimestampSecond;
3019
3021
  case m.MILLISECOND:
3020
- return c.TimestampMillisecond;
3022
+ return l.TimestampMillisecond;
3021
3023
  case m.MICROSECOND:
3022
- return c.TimestampMicrosecond;
3024
+ return l.TimestampMicrosecond;
3023
3025
  case m.NANOSECOND:
3024
- return c.TimestampNanosecond;
3026
+ return l.TimestampNanosecond;
3025
3027
  }
3026
- return c.Timestamp;
3027
- case c.Date:
3028
+ return l.Timestamp;
3029
+ case l.Date:
3028
3030
  switch (s.unit) {
3029
3031
  case pt.DAY:
3030
- return c.DateDay;
3032
+ return l.DateDay;
3031
3033
  case pt.MILLISECOND:
3032
- return c.DateMillisecond;
3034
+ return l.DateMillisecond;
3033
3035
  }
3034
- return c.Date;
3035
- case c.Interval:
3036
+ return l.Date;
3037
+ case l.Interval:
3036
3038
  switch (s.unit) {
3037
3039
  case At.DAY_TIME:
3038
- return c.IntervalDayTime;
3040
+ return l.IntervalDayTime;
3039
3041
  case At.YEAR_MONTH:
3040
- return c.IntervalYearMonth;
3042
+ return l.IntervalYearMonth;
3041
3043
  }
3042
- return c.Interval;
3043
- case c.Duration:
3044
+ return l.Interval;
3045
+ case l.Duration:
3044
3046
  switch (s.unit) {
3045
3047
  case m.SECOND:
3046
- return c.DurationSecond;
3048
+ return l.DurationSecond;
3047
3049
  case m.MILLISECOND:
3048
- return c.DurationMillisecond;
3050
+ return l.DurationMillisecond;
3049
3051
  case m.MICROSECOND:
3050
- return c.DurationMicrosecond;
3052
+ return l.DurationMicrosecond;
3051
3053
  case m.NANOSECOND:
3052
- return c.DurationNanosecond;
3054
+ return l.DurationNanosecond;
3053
3055
  }
3054
- return c.Duration;
3055
- case c.Map:
3056
- return c.Map;
3057
- case c.List:
3058
- return c.List;
3059
- case c.Struct:
3060
- return c.Struct;
3061
- case c.Union:
3056
+ return l.Duration;
3057
+ case l.Map:
3058
+ return l.Map;
3059
+ case l.List:
3060
+ return l.List;
3061
+ case l.Struct:
3062
+ return l.Struct;
3063
+ case l.Union:
3062
3064
  switch (s.mode) {
3063
3065
  case H.Dense:
3064
- return c.DenseUnion;
3066
+ return l.DenseUnion;
3065
3067
  case H.Sparse:
3066
- return c.SparseUnion;
3068
+ return l.SparseUnion;
3067
3069
  }
3068
- return c.Union;
3069
- case c.FixedSizeBinary:
3070
- return c.FixedSizeBinary;
3071
- case c.FixedSizeList:
3072
- return c.FixedSizeList;
3073
- case c.Dictionary:
3074
- return c.Dictionary;
3070
+ return l.Union;
3071
+ case l.FixedSizeBinary:
3072
+ return l.FixedSizeBinary;
3073
+ case l.FixedSizeList:
3074
+ return l.FixedSizeList;
3075
+ case l.Dictionary:
3076
+ return l.Dictionary;
3075
3077
  }
3076
- throw new Error(`Unrecognized type '${c[s.typeId]}'`);
3078
+ throw new Error(`Unrecognized type '${l[s.typeId]}'`);
3077
3079
  }
3078
3080
  O.prototype.visitInt8 = null;
3079
3081
  O.prototype.visitInt16 = null;
@@ -3168,9 +3170,9 @@ const Ko = (s, t, e) => {
3168
3170
  s[t] = BigInt(e / 1e3);
3169
3171
  }, ai = ({ values: s }, t, e) => {
3170
3172
  s[t] = BigInt(e);
3171
- }, ci = ({ values: s }, t, e) => {
3172
- s[t] = BigInt(e * 1e3);
3173
3173
  }, li = ({ values: s }, t, e) => {
3174
+ s[t] = BigInt(e * 1e3);
3175
+ }, ci = ({ values: s }, t, e) => {
3174
3176
  s[t] = BigInt(e * 1e6);
3175
3177
  }, Zo = (s, t, e) => {
3176
3178
  switch (s.type.unit) {
@@ -3179,16 +3181,16 @@ const Ko = (s, t, e) => {
3179
3181
  case m.MILLISECOND:
3180
3182
  return ai(s, t, e);
3181
3183
  case m.MICROSECOND:
3182
- return ci(s, t, e);
3183
- case m.NANOSECOND:
3184
3184
  return li(s, t, e);
3185
+ case m.NANOSECOND:
3186
+ return ci(s, t, e);
3185
3187
  }
3186
3188
  }, ui = ({ values: s }, t, e) => {
3187
3189
  s[t] = e;
3188
- }, hi = ({ values: s }, t, e) => {
3189
- s[t] = e;
3190
3190
  }, di = ({ values: s }, t, e) => {
3191
3191
  s[t] = e;
3192
+ }, hi = ({ values: s }, t, e) => {
3193
+ s[t] = e;
3192
3194
  }, pi = ({ values: s }, t, e) => {
3193
3195
  s[t] = e;
3194
3196
  }, Xo = (s, t, e) => {
@@ -3196,9 +3198,9 @@ const Ko = (s, t, e) => {
3196
3198
  case m.SECOND:
3197
3199
  return ui(s, t, e);
3198
3200
  case m.MILLISECOND:
3199
- return hi(s, t, e);
3200
- case m.MICROSECOND:
3201
3201
  return di(s, t, e);
3202
+ case m.MICROSECOND:
3203
+ return hi(s, t, e);
3202
3204
  case m.NANOSECOND:
3203
3205
  return pi(s, t, e);
3204
3206
  }
@@ -3207,22 +3209,22 @@ const Ko = (s, t, e) => {
3207
3209
  }, ea = (s, t, e) => {
3208
3210
  const n = s.children[0], r = s.valueOffsets, i = ft.getVisitFn(n);
3209
3211
  if (Array.isArray(e))
3210
- for (let o = -1, a = r[t], l = r[t + 1]; a < l; )
3212
+ for (let o = -1, a = r[t], c = r[t + 1]; a < c; )
3211
3213
  i(n, a++, e[++o]);
3212
3214
  else
3213
- for (let o = -1, a = r[t], l = r[t + 1]; a < l; )
3215
+ for (let o = -1, a = r[t], c = r[t + 1]; a < c; )
3214
3216
  i(n, a++, e.get(++o));
3215
3217
  }, sa = (s, t, e) => {
3216
3218
  const n = s.children[0], { valueOffsets: r } = s, i = ft.getVisitFn(n);
3217
3219
  let { [t]: o, [t + 1]: a } = r;
3218
- const l = e instanceof Map ? e.entries() : Object.entries(e);
3219
- for (const u of l)
3220
+ const c = e instanceof Map ? e.entries() : Object.entries(e);
3221
+ for (const u of c)
3220
3222
  if (i(n, o, u), ++o >= a)
3221
3223
  break;
3222
3224
  }, na = (s, t) => (e, n, r, i) => n && e(n, s, t[i]), ra = (s, t) => (e, n, r, i) => n && e(n, s, t.get(i)), ia = (s, t) => (e, n, r, i) => n && e(n, s, t.get(r.name)), oa = (s, t) => (e, n, r, i) => n && e(n, s, t[r.name]), aa = (s, t, e) => {
3223
3225
  const n = s.type.children.map((i) => ft.getVisitFn(i.type)), r = e instanceof Map ? ia(t, e) : e instanceof F ? ra(t, e) : Array.isArray(e) ? na(t, e) : oa(t, e);
3224
3226
  s.type.children.forEach((i, o) => r(n[o], s.children[o], i, o));
3225
- }, ca = (s, t, e) => {
3227
+ }, la = (s, t, e) => {
3226
3228
  s.type.mode === H.Dense ? fi(s, t, e) : yi(s, t, e);
3227
3229
  }, fi = (s, t, e) => {
3228
3230
  const n = s.type.typeIdToChildIndex[s.typeIds[t]], r = s.children[n];
@@ -3230,7 +3232,7 @@ const Ko = (s, t, e) => {
3230
3232
  }, yi = (s, t, e) => {
3231
3233
  const n = s.type.typeIdToChildIndex[s.typeIds[t]], r = s.children[n];
3232
3234
  ft.visit(r, t, e);
3233
- }, la = (s, t, e) => {
3235
+ }, ca = (s, t, e) => {
3234
3236
  var n;
3235
3237
  (n = s.dictionary) === null || n === void 0 || n.set(s.values[t], e);
3236
3238
  }, ua = (s, t, e) => {
@@ -3247,7 +3249,7 @@ const Ko = (s, t, e) => {
3247
3249
  s[t] = e;
3248
3250
  }, Ii = ({ values: s }, t, e) => {
3249
3251
  s[t] = e;
3250
- }, ha = (s, t, e) => {
3252
+ }, da = (s, t, e) => {
3251
3253
  switch (s.type.unit) {
3252
3254
  case m.SECOND:
3253
3255
  return mi(s, t, e);
@@ -3258,7 +3260,7 @@ const Ko = (s, t, e) => {
3258
3260
  case m.NANOSECOND:
3259
3261
  return Ii(s, t, e);
3260
3262
  }
3261
- }, da = (s, t, e) => {
3263
+ }, ha = (s, t, e) => {
3262
3264
  const { stride: n } = s, r = s.children[0], i = ft.getVisitFn(r);
3263
3265
  if (Array.isArray(e))
3264
3266
  for (let o = -1, a = t * n; ++o < n; )
@@ -3292,29 +3294,29 @@ _.prototype.visitDateMillisecond = w(ni);
3292
3294
  _.prototype.visitTimestamp = w(Zo);
3293
3295
  _.prototype.visitTimestampSecond = w(oi);
3294
3296
  _.prototype.visitTimestampMillisecond = w(ai);
3295
- _.prototype.visitTimestampMicrosecond = w(ci);
3296
- _.prototype.visitTimestampNanosecond = w(li);
3297
+ _.prototype.visitTimestampMicrosecond = w(li);
3298
+ _.prototype.visitTimestampNanosecond = w(ci);
3297
3299
  _.prototype.visitTime = w(Xo);
3298
3300
  _.prototype.visitTimeSecond = w(ui);
3299
- _.prototype.visitTimeMillisecond = w(hi);
3300
- _.prototype.visitTimeMicrosecond = w(di);
3301
+ _.prototype.visitTimeMillisecond = w(di);
3302
+ _.prototype.visitTimeMicrosecond = w(hi);
3301
3303
  _.prototype.visitTimeNanosecond = w(pi);
3302
3304
  _.prototype.visitDecimal = w(ta);
3303
3305
  _.prototype.visitList = w(ea);
3304
3306
  _.prototype.visitStruct = w(aa);
3305
- _.prototype.visitUnion = w(ca);
3307
+ _.prototype.visitUnion = w(la);
3306
3308
  _.prototype.visitDenseUnion = w(fi);
3307
3309
  _.prototype.visitSparseUnion = w(yi);
3308
- _.prototype.visitDictionary = w(la);
3310
+ _.prototype.visitDictionary = w(ca);
3309
3311
  _.prototype.visitInterval = w(ua);
3310
3312
  _.prototype.visitIntervalDayTime = w(bi);
3311
3313
  _.prototype.visitIntervalYearMonth = w(gi);
3312
- _.prototype.visitDuration = w(ha);
3314
+ _.prototype.visitDuration = w(da);
3313
3315
  _.prototype.visitDurationSecond = w(mi);
3314
3316
  _.prototype.visitDurationMillisecond = w(_i);
3315
3317
  _.prototype.visitDurationMicrosecond = w(vi);
3316
3318
  _.prototype.visitDurationNanosecond = w(Ii);
3317
- _.prototype.visitFixedSizeList = w(da);
3319
+ _.prototype.visitFixedSizeList = w(ha);
3318
3320
  _.prototype.visitMap = w(sa);
3319
3321
  const ft = new _(), yt = Symbol.for("parent"), ye = Symbol.for("rowIndex");
3320
3322
  class _n {
@@ -3518,13 +3520,13 @@ f.prototype.visitDurationMicrosecond = v(ji);
3518
3520
  f.prototype.visitDurationNanosecond = v(Yi);
3519
3521
  f.prototype.visitFixedSizeList = v(La);
3520
3522
  f.prototype.visitMap = v(Aa);
3521
- const st = new f(), ue = Symbol.for("keys"), be = Symbol.for("vals"), he = Symbol.for("kKeysAsStrings"), on = Symbol.for("_kKeysAsStrings");
3523
+ const st = new f(), ue = Symbol.for("keys"), be = Symbol.for("vals"), de = Symbol.for("kKeysAsStrings"), on = Symbol.for("_kKeysAsStrings");
3522
3524
  class vn {
3523
3525
  constructor(t) {
3524
3526
  return this[ue] = new F([t.children[0]]).memoize(), this[be] = t.children[1], new Proxy(this, new Ma());
3525
3527
  }
3526
3528
  /** @ignore */
3527
- get [he]() {
3529
+ get [de]() {
3528
3530
  return this[on] || (this[on] = Array.from(this[ue].toArray(), String));
3529
3531
  }
3530
3532
  [Symbol.iterator]() {
@@ -3578,26 +3580,26 @@ class Ma {
3578
3580
  return !0;
3579
3581
  }
3580
3582
  ownKeys(t) {
3581
- return t[he];
3583
+ return t[de];
3582
3584
  }
3583
3585
  has(t, e) {
3584
- return t[he].includes(e);
3586
+ return t[de].includes(e);
3585
3587
  }
3586
3588
  getOwnPropertyDescriptor(t, e) {
3587
- if (t[he].indexOf(e) !== -1)
3589
+ if (t[de].indexOf(e) !== -1)
3588
3590
  return { writable: !0, enumerable: !0, configurable: !0 };
3589
3591
  }
3590
3592
  get(t, e) {
3591
3593
  if (Reflect.has(t, e))
3592
3594
  return t[e];
3593
- const n = t[he].indexOf(e);
3595
+ const n = t[de].indexOf(e);
3594
3596
  if (n !== -1) {
3595
3597
  const r = st.visit(Reflect.get(t, be), n);
3596
3598
  return Reflect.set(t, e, r), r;
3597
3599
  }
3598
3600
  }
3599
3601
  set(t, e, n) {
3600
- const r = t[he].indexOf(e);
3602
+ const r = t[de].indexOf(e);
3601
3603
  return r !== -1 ? (ft.visit(Reflect.get(t, be), r, n), Reflect.set(t, e, n)) : Reflect.has(t, e) ? Reflect.set(t, e, n) : !1;
3602
3604
  }
3603
3605
  }
@@ -3691,10 +3693,10 @@ function nr(s, t, e) {
3691
3693
  const n = e[Symbol.iterator](), r = t instanceof Map ? t.keys() : Object.keys(t)[Symbol.iterator](), i = t instanceof Map ? t.values() : Object.values(t)[Symbol.iterator]();
3692
3694
  let o = 0;
3693
3695
  const a = s.length;
3694
- let l = i.next(), u = n.next(), h = r.next();
3695
- for (; o < a && !u.done && !h.done && !l.done && !(u.value !== h.value || !s[o](l.value)); ++o, u = n.next(), h = r.next(), l = i.next())
3696
+ let c = i.next(), u = n.next(), d = r.next();
3697
+ for (; o < a && !u.done && !d.done && !c.done && !(u.value !== d.value || !s[o](c.value)); ++o, u = n.next(), d = r.next(), c = i.next())
3696
3698
  ;
3697
- return o === a && u.done && h.done && l.done ? !0 : (n.return && n.return(), r.return && r.return(), i.return && i.return(), !1);
3699
+ return o === a && u.done && d.done && c.done ? !0 : (n.return && n.return(), r.return && r.return(), i.return && i.return(), !1);
3698
3700
  }
3699
3701
  function Gi(s, t, e, n) {
3700
3702
  return (e & 1 << n) !== 0;
@@ -3801,8 +3803,8 @@ class M {
3801
3803
  }
3802
3804
  constructor(t, e, n, r, i, o = [], a) {
3803
3805
  this.type = t, this.children = o, this.dictionary = a, this.offset = Math.floor(Math.max(e || 0, 0)), this.length = Math.floor(Math.max(n || 0, 0)), this._nullCount = Math.floor(Math.max(r || 0, -1));
3804
- let l;
3805
- i instanceof M ? (this.stride = i.stride, this.values = i.values, this.typeIds = i.typeIds, this.nullBitmap = i.nullBitmap, this.valueOffsets = i.valueOffsets) : (this.stride = Ft(t), i && ((l = i[0]) && (this.valueOffsets = l), (l = i[1]) && (this.values = l), (l = i[2]) && (this.nullBitmap = l), (l = i[3]) && (this.typeIds = l)));
3806
+ let c;
3807
+ i instanceof M ? (this.stride = i.stride, this.values = i.values, this.typeIds = i.typeIds, this.nullBitmap = i.nullBitmap, this.valueOffsets = i.valueOffsets) : (this.stride = Ft(t), i && ((c = i[0]) && (this.valueOffsets = c), (c = i[1]) && (this.values = c), (c = i[2]) && (this.nullBitmap = c), (c = i[3]) && (this.typeIds = c)));
3806
3808
  }
3807
3809
  getValid(t) {
3808
3810
  const { type: e } = this;
@@ -3824,10 +3826,10 @@ class M {
3824
3826
  n = o.getValid(a), o.setValid(a, e);
3825
3827
  } else {
3826
3828
  let { nullBitmap: i } = this;
3827
- const { offset: o, length: a } = this, l = o + t, u = 1 << l % 8, h = l >> 3;
3828
- (!i || i.byteLength <= h) && (i = new Uint8Array((o + a + 63 & -64) >> 3).fill(255), this.nullCount > 0 ? (i.set(Es(o, a, this.nullBitmap), 0), Object.assign(this, { nullBitmap: i })) : Object.assign(this, { nullBitmap: i, _nullCount: 0 }));
3829
- const d = i[h];
3830
- n = (d & u) !== 0, i[h] = e ? d | u : d & ~u;
3829
+ const { offset: o, length: a } = this, c = o + t, u = 1 << c % 8, d = c >> 3;
3830
+ (!i || i.byteLength <= d) && (i = new Uint8Array((o + a + 63 & -64) >> 3).fill(255), this.nullCount > 0 ? (i.set(Es(o, a, this.nullBitmap), 0), Object.assign(this, { nullBitmap: i })) : Object.assign(this, { nullBitmap: i, _nullCount: 0 }));
3831
+ const h = i[d];
3832
+ n = (h & u) !== 0, i[d] = e ? h | u : h & ~u;
3831
3833
  }
3832
3834
  return n !== !!e && (this._nullCount = this.nullCount + (e ? -1 : 1)), e;
3833
3835
  }
@@ -3835,19 +3837,19 @@ class M {
3835
3837
  return new M(t, e, n, r, i, o, this.dictionary);
3836
3838
  }
3837
3839
  slice(t, e) {
3838
- const { stride: n, typeId: r, children: i } = this, o = +(this._nullCount === 0) - 1, a = r === 16 ? n : 1, l = this._sliceBuffers(t, e, n, r);
3840
+ const { stride: n, typeId: r, children: i } = this, o = +(this._nullCount === 0) - 1, a = r === 16 ? n : 1, c = this._sliceBuffers(t, e, n, r);
3839
3841
  return this.clone(
3840
3842
  this.type,
3841
3843
  this.offset + t,
3842
3844
  e,
3843
3845
  o,
3844
- l,
3846
+ c,
3845
3847
  // Don't slice children if we have value offsets (the variable-width types)
3846
3848
  i.length === 0 || this.valueOffsets ? i : this._sliceChildren(i, a * t, a * e)
3847
3849
  );
3848
3850
  }
3849
3851
  _changeLengthAndBackfillNullBitmap(t) {
3850
- if (this.typeId === c.Null)
3852
+ if (this.typeId === l.Null)
3851
3853
  return this.clone(this.type, 0, t, 0);
3852
3854
  const { length: e, nullCount: n } = this, r = new Uint8Array((t + 63 & -64) >> 3).fill(255, 0, e >> 3);
3853
3855
  r[e >> 3] = (1 << e - (e & -8)) - 1, n > 0 && r.set(Es(this.offset, e, this.nullBitmap), 0);
@@ -3886,20 +3888,20 @@ class Le extends O {
3886
3888
  return new M(e, n, o, a, [void 0, i, r]);
3887
3889
  }
3888
3890
  visitUtf8(t) {
3889
- const { ["type"]: e, ["offset"]: n = 0 } = t, r = D(t.data), i = D(t.nullBitmap), o = Te(t.valueOffsets), { ["length"]: a = o.length - 1, ["nullCount"]: l = t.nullBitmap ? -1 : 0 } = t;
3890
- return new M(e, n, a, l, [o, r, i]);
3891
+ const { ["type"]: e, ["offset"]: n = 0 } = t, r = D(t.data), i = D(t.nullBitmap), o = Te(t.valueOffsets), { ["length"]: a = o.length - 1, ["nullCount"]: c = t.nullBitmap ? -1 : 0 } = t;
3892
+ return new M(e, n, a, c, [o, r, i]);
3891
3893
  }
3892
3894
  visitLargeUtf8(t) {
3893
- const { ["type"]: e, ["offset"]: n = 0 } = t, r = D(t.data), i = D(t.nullBitmap), o = Wn(t.valueOffsets), { ["length"]: a = o.length - 1, ["nullCount"]: l = t.nullBitmap ? -1 : 0 } = t;
3894
- return new M(e, n, a, l, [o, r, i]);
3895
+ const { ["type"]: e, ["offset"]: n = 0 } = t, r = D(t.data), i = D(t.nullBitmap), o = Wn(t.valueOffsets), { ["length"]: a = o.length - 1, ["nullCount"]: c = t.nullBitmap ? -1 : 0 } = t;
3896
+ return new M(e, n, a, c, [o, r, i]);
3895
3897
  }
3896
3898
  visitBinary(t) {
3897
- const { ["type"]: e, ["offset"]: n = 0 } = t, r = D(t.data), i = D(t.nullBitmap), o = Te(t.valueOffsets), { ["length"]: a = o.length - 1, ["nullCount"]: l = t.nullBitmap ? -1 : 0 } = t;
3898
- return new M(e, n, a, l, [o, r, i]);
3899
+ const { ["type"]: e, ["offset"]: n = 0 } = t, r = D(t.data), i = D(t.nullBitmap), o = Te(t.valueOffsets), { ["length"]: a = o.length - 1, ["nullCount"]: c = t.nullBitmap ? -1 : 0 } = t;
3900
+ return new M(e, n, a, c, [o, r, i]);
3899
3901
  }
3900
3902
  visitLargeBinary(t) {
3901
- const { ["type"]: e, ["offset"]: n = 0 } = t, r = D(t.data), i = D(t.nullBitmap), o = Wn(t.valueOffsets), { ["length"]: a = o.length - 1, ["nullCount"]: l = t.nullBitmap ? -1 : 0 } = t;
3902
- return new M(e, n, a, l, [o, r, i]);
3903
+ const { ["type"]: e, ["offset"]: n = 0 } = t, r = D(t.data), i = D(t.nullBitmap), o = Wn(t.valueOffsets), { ["length"]: a = o.length - 1, ["nullCount"]: c = t.nullBitmap ? -1 : 0 } = t;
3904
+ return new M(e, n, a, c, [o, r, i]);
3903
3905
  }
3904
3906
  visitFixedSizeBinary(t) {
3905
3907
  const { ["type"]: e, ["offset"]: n = 0 } = t, r = D(t.nullBitmap), i = x(e.ArrayType, t.data), { ["length"]: o = i.length / Ft(e), ["nullCount"]: a = t.nullBitmap ? -1 : 0 } = t;
@@ -3922,23 +3924,23 @@ class Le extends O {
3922
3924
  return new M(e, n, o, a, [void 0, i, r]);
3923
3925
  }
3924
3926
  visitList(t) {
3925
- const { ["type"]: e, ["offset"]: n = 0, ["child"]: r } = t, i = D(t.nullBitmap), o = Te(t.valueOffsets), { ["length"]: a = o.length - 1, ["nullCount"]: l = t.nullBitmap ? -1 : 0 } = t;
3926
- return new M(e, n, a, l, [o, void 0, i], [r]);
3927
+ const { ["type"]: e, ["offset"]: n = 0, ["child"]: r } = t, i = D(t.nullBitmap), o = Te(t.valueOffsets), { ["length"]: a = o.length - 1, ["nullCount"]: c = t.nullBitmap ? -1 : 0 } = t;
3928
+ return new M(e, n, a, c, [o, void 0, i], [r]);
3927
3929
  }
3928
3930
  visitStruct(t) {
3929
- const { ["type"]: e, ["offset"]: n = 0, ["children"]: r = [] } = t, i = D(t.nullBitmap), { length: o = r.reduce((l, { length: u }) => Math.max(l, u), 0), nullCount: a = t.nullBitmap ? -1 : 0 } = t;
3931
+ const { ["type"]: e, ["offset"]: n = 0, ["children"]: r = [] } = t, i = D(t.nullBitmap), { length: o = r.reduce((c, { length: u }) => Math.max(c, u), 0), nullCount: a = t.nullBitmap ? -1 : 0 } = t;
3930
3932
  return new M(e, n, o, a, [void 0, void 0, i], r);
3931
3933
  }
3932
3934
  visitUnion(t) {
3933
3935
  const { ["type"]: e, ["offset"]: n = 0, ["children"]: r = [] } = t, i = x(e.ArrayType, t.typeIds), { ["length"]: o = i.length, ["nullCount"]: a = -1 } = t;
3934
3936
  if (p.isSparseUnion(e))
3935
3937
  return new M(e, n, o, a, [void 0, void 0, void 0, i], r);
3936
- const l = Te(t.valueOffsets);
3937
- return new M(e, n, o, a, [l, void 0, void 0, i], r);
3938
+ const c = Te(t.valueOffsets);
3939
+ return new M(e, n, o, a, [c, void 0, void 0, i], r);
3938
3940
  }
3939
3941
  visitDictionary(t) {
3940
- const { ["type"]: e, ["offset"]: n = 0 } = t, r = D(t.nullBitmap), i = x(e.indices.ArrayType, t.data), { ["dictionary"]: o = new F([new Le().visit({ type: e.dictionary })]) } = t, { ["length"]: a = i.length, ["nullCount"]: l = t.nullBitmap ? -1 : 0 } = t;
3941
- return new M(e, n, a, l, [void 0, i, r], [], o);
3942
+ const { ["type"]: e, ["offset"]: n = 0 } = t, r = D(t.nullBitmap), i = x(e.indices.ArrayType, t.data), { ["dictionary"]: o = new F([new Le().visit({ type: e.dictionary })]) } = t, { ["length"]: a = i.length, ["nullCount"]: c = t.nullBitmap ? -1 : 0 } = t;
3943
+ return new M(e, n, a, c, [void 0, i, r], [], o);
3942
3944
  }
3943
3945
  visitInterval(t) {
3944
3946
  const { ["type"]: e, ["offset"]: n = 0 } = t, r = D(t.nullBitmap), i = x(e.ArrayType, t.data), { ["length"]: o = i.length / Ft(e), ["nullCount"]: a = t.nullBitmap ? -1 : 0 } = t;
@@ -3953,8 +3955,8 @@ class Le extends O {
3953
3955
  return new M(e, n, o, a, [void 0, void 0, i], [r]);
3954
3956
  }
3955
3957
  visitMap(t) {
3956
- const { ["type"]: e, ["offset"]: n = 0, ["child"]: r = new Le().visit({ type: e.childType }) } = t, i = D(t.nullBitmap), o = Te(t.valueOffsets), { ["length"]: a = o.length - 1, ["nullCount"]: l = t.nullBitmap ? -1 : 0 } = t;
3957
- return new M(e, n, a, l, [o, void 0, i], [r]);
3958
+ const { ["type"]: e, ["offset"]: n = 0, ["child"]: r = new Le().visit({ type: e.childType }) } = t, i = D(t.nullBitmap), o = Te(t.valueOffsets), { ["length"]: a = o.length - 1, ["nullCount"]: c = t.nullBitmap ? -1 : 0 } = t;
3959
+ return new M(e, n, a, c, [o, void 0, i], [r]);
3958
3960
  }
3959
3961
  }
3960
3962
  const Ga = new Le();
@@ -3990,17 +3992,17 @@ function Ki(s) {
3990
3992
  function Hi(s, t, e, n) {
3991
3993
  const r = [];
3992
3994
  for (let i = -1, o = s.length; ++i < o; ) {
3993
- const a = s[i], l = t[i], { length: u } = a;
3994
- if (l >= n)
3995
+ const a = s[i], c = t[i], { length: u } = a;
3996
+ if (c >= n)
3995
3997
  break;
3996
- if (e >= l + u)
3998
+ if (e >= c + u)
3997
3999
  continue;
3998
- if (l >= e && l + u <= n) {
4000
+ if (c >= e && c + u <= n) {
3999
4001
  r.push(a);
4000
4002
  continue;
4001
4003
  }
4002
- const h = Math.max(0, e - l), d = Math.min(n - l, u);
4003
- r.push(a.slice(h, d - h));
4004
+ const d = Math.max(0, e - c), h = Math.min(n - c, u);
4005
+ r.push(a.slice(d, h - d));
4004
4006
  }
4005
4007
  return r.length === 0 && r.push(s[0].slice(0, 0)), r;
4006
4008
  }
@@ -4039,12 +4041,12 @@ function qi(s) {
4039
4041
  function Qi(s) {
4040
4042
  let t;
4041
4043
  function e(n, r, i) {
4042
- let o = i, a = 0, l = 0;
4043
- for (let u = r - 1, h = n.length; ++u < h; ) {
4044
- const d = n[u];
4045
- if (~(a = s(d, t, o)))
4046
- return l + a;
4047
- o = 0, l += d.length;
4044
+ let o = i, a = 0, c = 0;
4045
+ for (let u = r - 1, d = n.length; ++u < d; ) {
4046
+ const h = n[u];
4047
+ if (~(a = s(h, t, o)))
4048
+ return c + a;
4049
+ o = 0, c += h.length;
4048
4050
  }
4049
4051
  return -1;
4050
4052
  }
@@ -4076,10 +4078,13 @@ function S(s, t, e) {
4076
4078
  return -1;
4077
4079
  if (t === null)
4078
4080
  switch (s.typeId) {
4079
- case c.Union:
4081
+ // Unions don't have a nullBitmap of its own, so compare the `searchElement` to `get()`.
4082
+ case l.Union:
4080
4083
  break;
4081
- case c.Dictionary:
4084
+ // Dictionaries do have a nullBitmap, but their dictionary could also have null elements.
4085
+ case l.Dictionary:
4082
4086
  break;
4087
+ // All other types can iterate the null bitmap
4083
4088
  default:
4084
4089
  return Ha(s, e);
4085
4090
  }
@@ -4242,8 +4247,8 @@ class F {
4242
4247
  this._offsets = [0];
4243
4248
  break;
4244
4249
  case 1: {
4245
- const { get: a, set: l, indexOf: u } = Xi[o.typeId], h = i[0];
4246
- this.isValid = (d) => Tn(h, d), this.get = (d) => a(h, d), this.set = (d, j) => l(h, d, j), this.indexOf = (d) => u(h, d), this._offsets = [0, h.length];
4250
+ const { get: a, set: c, indexOf: u } = Xi[o.typeId], d = i[0];
4251
+ this.isValid = (h) => Tn(d, h), this.get = (h) => a(d, h), this.set = (h, j) => c(d, h, j), this.indexOf = (h) => u(d, h), this._offsets = [0, d.length];
4247
4252
  break;
4248
4253
  }
4249
4254
  default:
@@ -4287,7 +4292,7 @@ class F {
4287
4292
  * The name of this Vector.
4288
4293
  */
4289
4294
  get VectorName() {
4290
- return `${c[this.type.typeId]}Vector`;
4295
+ return `${l[this.type.typeId]}Vector`;
4291
4296
  }
4292
4297
  /**
4293
4298
  * Check whether an element is null.
@@ -4370,18 +4375,18 @@ class F {
4370
4375
  toArray() {
4371
4376
  const { type: t, data: e, length: n, stride: r, ArrayType: i } = this;
4372
4377
  switch (t.typeId) {
4373
- case c.Int:
4374
- case c.Float:
4375
- case c.Decimal:
4376
- case c.Time:
4377
- case c.Timestamp:
4378
+ case l.Int:
4379
+ case l.Float:
4380
+ case l.Decimal:
4381
+ case l.Time:
4382
+ case l.Timestamp:
4378
4383
  switch (e.length) {
4379
4384
  case 0:
4380
4385
  return new i();
4381
4386
  case 1:
4382
4387
  return e[0].values.subarray(0, n * r);
4383
4388
  default:
4384
- return e.reduce((o, { values: a, length: l }) => (o.array.set(a.subarray(0, l * r), o.offset), o.offset += l * r, o), { array: new i(n * r), offset: 0 }).array;
4389
+ return e.reduce((o, { values: a, length: c }) => (o.array.set(a.subarray(0, c * r), o.offset), o.offset += c * r, o), { array: new i(n * r), offset: 0 }).array;
4385
4390
  }
4386
4391
  }
4387
4392
  return [...this];
@@ -4453,7 +4458,7 @@ class F {
4453
4458
  Zi = Symbol.toStringTag;
4454
4459
  F[Zi] = ((s) => {
4455
4460
  s.type = p.prototype, s.data = [], s.length = 0, s.stride = 1, s.numChildren = 0, s._offsets = new Uint32Array([0]), s[Symbol.isConcatSpreadable] = !0;
4456
- const t = Object.keys(c).map((e) => c[e]).filter((e) => typeof e == "number" && e !== c.NONE);
4461
+ const t = Object.keys(l).map((e) => l[e]).filter((e) => typeof e == "number" && e !== l.NONE);
4457
4462
  for (const e of t) {
4458
4463
  const n = st.getVisitFnByTypeId(e), r = ft.getVisitFnByTypeId(e), i = Rs.getVisitFnByTypeId(e);
4459
4464
  Xi[e] = { get: n, set: r, indexOf: i }, to[e] = Object.create(s, {
@@ -4474,8 +4479,8 @@ class Ds extends F {
4474
4479
  const a = i[o];
4475
4480
  if (a !== void 0)
4476
4481
  return a;
4477
- const l = e.call(this, o);
4478
- return i[o] = l, l;
4482
+ const c = e.call(this, o);
4483
+ return i[o] = c, c;
4479
4484
  }
4480
4485
  }), Object.defineProperty(this, "set", {
4481
4486
  value(o, a) {
@@ -4490,7 +4495,7 @@ class Ds extends F {
4490
4495
  });
4491
4496
  }
4492
4497
  }
4493
- class cn {
4498
+ class ln {
4494
4499
  constructor() {
4495
4500
  this.bb = null, this.bb_pos = 0;
4496
4501
  }
@@ -4546,7 +4551,7 @@ class rt {
4546
4551
  }
4547
4552
  dictionaries(t, e) {
4548
4553
  const n = this.bb.__offset(this.bb_pos, 8);
4549
- return n ? (e || new cn()).__init(this.bb.__vector(this.bb_pos + n) + t * 24, this.bb) : null;
4554
+ return n ? (e || new ln()).__init(this.bb.__vector(this.bb_pos + n) + t * 24, this.bb) : null;
4550
4555
  }
4551
4556
  dictionariesLength() {
4552
4557
  const t = this.bb.__offset(this.bb_pos, 8);
@@ -4554,7 +4559,7 @@ class rt {
4554
4559
  }
4555
4560
  recordBatches(t, e) {
4556
4561
  const n = this.bb.__offset(this.bb_pos, 10);
4557
- return n ? (e || new cn()).__init(this.bb.__vector(this.bb_pos + n) + t * 24, this.bb) : null;
4562
+ return n ? (e || new ln()).__init(this.bb.__vector(this.bb_pos + n) + t * 24, this.bb) : null;
4558
4563
  }
4559
4564
  recordBatchesLength() {
4560
4565
  const t = this.bb.__offset(this.bb_pos, 10);
@@ -4616,7 +4621,7 @@ class rt {
4616
4621
  }
4617
4622
  class L {
4618
4623
  constructor(t = [], e, n, r = Y.V5) {
4619
- this.fields = t || [], this.metadata = e || /* @__PURE__ */ new Map(), n || (n = ln(this.fields)), this.dictionaries = n, this.metadataVersion = r;
4624
+ this.fields = t || [], this.metadata = e || /* @__PURE__ */ new Map(), n || (n = cn(this.fields)), this.dictionaries = n, this.metadataVersion = r;
4620
4625
  }
4621
4626
  get [Symbol.toStringTag]() {
4622
4627
  return "Schema";
@@ -4649,11 +4654,11 @@ class L {
4649
4654
  }
4650
4655
  assign(...t) {
4651
4656
  const e = t[0] instanceof L ? t[0] : Array.isArray(t[0]) ? new L(t[0]) : new L(t), n = [...this.fields], r = Ke(Ke(/* @__PURE__ */ new Map(), this.metadata), e.metadata), i = e.fields.filter((a) => {
4652
- const l = n.findIndex((u) => u.name === a.name);
4653
- return ~l ? (n[l] = a.clone({
4654
- metadata: Ke(Ke(/* @__PURE__ */ new Map(), n[l].metadata), a.metadata)
4657
+ const c = n.findIndex((u) => u.name === a.name);
4658
+ return ~c ? (n[c] = a.clone({
4659
+ metadata: Ke(Ke(/* @__PURE__ */ new Map(), n[c].metadata), a.metadata)
4655
4660
  })) && !1 : !0;
4656
- }), o = ln(i, /* @__PURE__ */ new Map());
4661
+ }), o = cn(i, /* @__PURE__ */ new Map());
4657
4662
  return new L([...n, ...i], r, new Map([...this.dictionaries, ...o]));
4658
4663
  }
4659
4664
  }
@@ -4690,7 +4695,7 @@ V.prototype.metadata = null;
4690
4695
  function Ke(s, t) {
4691
4696
  return new Map([...s || /* @__PURE__ */ new Map(), ...t || /* @__PURE__ */ new Map()]);
4692
4697
  }
4693
- function ln(s, t = /* @__PURE__ */ new Map()) {
4698
+ function cn(s, t = /* @__PURE__ */ new Map()) {
4694
4699
  for (let e = -1, n = s.length; ++e < n; ) {
4695
4700
  const r = s[e].type;
4696
4701
  if (p.isDictionary(r)) {
@@ -4699,7 +4704,7 @@ function ln(s, t = /* @__PURE__ */ new Map()) {
4699
4704
  else if (t.get(r.id) !== r.dictionary)
4700
4705
  throw new Error("Cannot create Schema containing two different dictionaries with the same Id");
4701
4706
  }
4702
- r.children && r.children.length > 0 && ln(r.children, t);
4707
+ r.children && r.children.length > 0 && cn(r.children, t);
4703
4708
  }
4704
4709
  return t;
4705
4710
  }
@@ -4783,7 +4788,7 @@ class Wt {
4783
4788
  /** @nocollapse */
4784
4789
  static encode(t, e) {
4785
4790
  const { metaDataLength: n } = e, r = BigInt(e.offset), i = BigInt(e.bodyLength);
4786
- return cn.createBlock(t, r, n, i);
4791
+ return ln.createBlock(t, r, n, i);
4787
4792
  }
4788
4793
  constructor(t, e, n) {
4789
4794
  this.metaDataLength = t, this.offset = P(n), this.bodyLength = P(e);
@@ -4854,10 +4859,10 @@ class Xa extends On {
4854
4859
  return this;
4855
4860
  }
4856
4861
  toDOMStream(t) {
4857
- return lt.toDOMStream(this._closedPromiseResolve || this._error ? this : this._values, t);
4862
+ return ct.toDOMStream(this._closedPromiseResolve || this._error ? this : this._values, t);
4858
4863
  }
4859
4864
  toNodeStream(t) {
4860
- return lt.toNodeStream(this._closedPromiseResolve || this._error ? this : this._values, t);
4865
+ return ct.toNodeStream(this._closedPromiseResolve || this._error ? this : this._values, t);
4861
4866
  }
4862
4867
  throw(t) {
4863
4868
  return T(this, void 0, void 0, function* () {
@@ -4904,16 +4909,16 @@ class es extends Xa {
4904
4909
  const o = [];
4905
4910
  let a = 0;
4906
4911
  try {
4907
- for (var l = !0, u = Qt(this), h; h = yield u.next(), e = h.done, !e; l = !0) {
4908
- i = h.value, l = !1;
4909
- const d = i;
4910
- o.push(d), a += d.byteLength;
4912
+ for (var c = !0, u = Qt(this), d; d = yield u.next(), e = d.done, !e; c = !0) {
4913
+ i = d.value, c = !1;
4914
+ const h = i;
4915
+ o.push(h), a += h.byteLength;
4911
4916
  }
4912
- } catch (d) {
4913
- n = { error: d };
4917
+ } catch (h) {
4918
+ n = { error: h };
4914
4919
  } finally {
4915
4920
  try {
4916
- !l && !e && (r = u.return) && (yield r.call(u));
4921
+ !c && !e && (r = u.return) && (yield r.call(u));
4917
4922
  } finally {
4918
4923
  if (n) throw n.error;
4919
4924
  }
@@ -4924,7 +4929,7 @@ class es extends Xa {
4924
4929
  }
4925
4930
  class Bs {
4926
4931
  constructor(t) {
4927
- t && (this.source = new tc(lt.fromIterable(t)));
4932
+ t && (this.source = new tl(ct.fromIterable(t)));
4928
4933
  }
4929
4934
  [Symbol.iterator]() {
4930
4935
  return this;
@@ -4947,7 +4952,7 @@ class Bs {
4947
4952
  }
4948
4953
  class ve {
4949
4954
  constructor(t) {
4950
- t instanceof ve ? this.source = t.source : t instanceof es ? this.source = new Ht(lt.fromAsyncIterable(t)) : vr(t) ? this.source = new Ht(lt.fromNodeStream(t)) : yn(t) ? this.source = new Ht(lt.fromDOMStream(t)) : _r(t) ? this.source = new Ht(lt.fromDOMStream(t.body)) : Ve(t) ? this.source = new Ht(lt.fromIterable(t)) : Jt(t) ? this.source = new Ht(lt.fromAsyncIterable(t)) : we(t) && (this.source = new Ht(lt.fromAsyncIterable(t)));
4955
+ t instanceof ve ? this.source = t.source : t instanceof es ? this.source = new Ht(ct.fromAsyncIterable(t)) : vr(t) ? this.source = new Ht(ct.fromNodeStream(t)) : yn(t) ? this.source = new Ht(ct.fromDOMStream(t)) : _r(t) ? this.source = new Ht(ct.fromDOMStream(t.body)) : Ve(t) ? this.source = new Ht(ct.fromIterable(t)) : Jt(t) ? this.source = new Ht(ct.fromAsyncIterable(t)) : we(t) && (this.source = new Ht(ct.fromAsyncIterable(t)));
4951
4956
  }
4952
4957
  [Symbol.asyncIterator]() {
4953
4958
  return this;
@@ -4974,7 +4979,7 @@ class ve {
4974
4979
  return this.source.read(t);
4975
4980
  }
4976
4981
  }
4977
- class tc {
4982
+ class tl {
4978
4983
  constructor(t) {
4979
4984
  this.source = t;
4980
4985
  }
@@ -5090,8 +5095,8 @@ class Ns extends ve {
5090
5095
  if (e && r < n) {
5091
5096
  typeof t != "number" && (t = Number.POSITIVE_INFINITY);
5092
5097
  let i = r, o = 0, a = 0;
5093
- const l = Math.min(n, i + Math.min(n - i, t)), u = new Uint8Array(Math.max(0, (this.position = l) - i));
5094
- for (; (i += a) < l && (o += a) < u.byteLength; )
5098
+ const c = Math.min(n, i + Math.min(n - i, t)), u = new Uint8Array(Math.max(0, (this.position = c) - i));
5099
+ for (; (i += a) < c && (o += a) < u.byteLength; )
5095
5100
  ({ bytesRead: a } = yield e.read(u, o, u.byteLength - o, i));
5096
5101
  return u;
5097
5102
  }
@@ -5126,8 +5131,8 @@ class Ns extends ve {
5126
5131
  });
5127
5132
  }
5128
5133
  }
5129
- const ec = 65536;
5130
- function de(s) {
5134
+ const el = 65536;
5135
+ function he(s) {
5131
5136
  return s < 0 && (s = 4294967295 + s + 1), `0x${s.toString(16)}`;
5132
5137
  }
5133
5138
  const Ie = 8, An = [
@@ -5166,7 +5171,7 @@ class eo {
5166
5171
  let r = e[3] * n[3];
5167
5172
  this.buffer[0] = r & 65535;
5168
5173
  let i = r >>> 16;
5169
- return r = e[2] * n[3], i += r, r = e[3] * n[2] >>> 0, i += r, this.buffer[0] += i << 16, this.buffer[1] = i >>> 0 < r ? ec : 0, this.buffer[1] += i >>> 16, this.buffer[1] += e[1] * n[3] + e[2] * n[2] + e[3] * n[1], this.buffer[1] += e[0] * n[3] + e[1] * n[2] + e[2] * n[1] + e[3] * n[0] << 16, this;
5174
+ return r = e[2] * n[3], i += r, r = e[3] * n[2] >>> 0, i += r, this.buffer[0] += i << 16, this.buffer[1] = i >>> 0 < r ? el : 0, this.buffer[1] += i >>> 16, this.buffer[1] += e[1] * n[3] + e[2] * n[2] + e[3] * n[1], this.buffer[1] += e[0] * n[3] + e[1] * n[2] + e[2] * n[1] + e[3] * n[0] << 16, this;
5170
5175
  }
5171
5176
  _plus(t) {
5172
5177
  const e = this.buffer[0] + t.buffer[0] >>> 0;
@@ -5182,7 +5187,7 @@ class eo {
5182
5187
  return t.lessThan(this);
5183
5188
  }
5184
5189
  hex() {
5185
- return `${de(this.buffer[1])} ${de(this.buffer[0])}`;
5190
+ return `${he(this.buffer[1])} ${he(this.buffer[0])}`;
5186
5191
  }
5187
5192
  }
5188
5193
  class C extends eo {
@@ -5204,8 +5209,8 @@ class C extends eo {
5204
5209
  static fromString(t, e = new Uint32Array(2)) {
5205
5210
  const n = t.length, r = new C(e);
5206
5211
  for (let i = 0; i < n; ) {
5207
- const o = Ie < n - i ? Ie : n - i, a = new C(new Uint32Array([Number.parseInt(t.slice(i, i + o), 10), 0])), l = new C(new Uint32Array([An[o], 0]));
5208
- r.times(l), r.plus(a), i += o;
5212
+ const o = Ie < n - i ? Ie : n - i, a = new C(new Uint32Array([Number.parseInt(t.slice(i, i + o), 10), 0])), c = new C(new Uint32Array([An[o], 0]));
5213
+ r.times(c), r.plus(a), i += o;
5209
5214
  }
5210
5215
  return r;
5211
5216
  }
@@ -5225,7 +5230,7 @@ class C extends eo {
5225
5230
  return new C(new Uint32Array(t.buffer)).plus(e);
5226
5231
  }
5227
5232
  }
5228
- class ct extends eo {
5233
+ class lt extends eo {
5229
5234
  negate() {
5230
5235
  return this.buffer[0] = ~this.buffer[0] + 1, this.buffer[1] = ~this.buffer[1], this.buffer[0] == 0 && ++this.buffer[1], this;
5231
5236
  }
@@ -5241,18 +5246,18 @@ class ct extends eo {
5241
5246
  }
5242
5247
  /** @nocollapse */
5243
5248
  static from(t, e = new Uint32Array(2)) {
5244
- return ct.fromString(typeof t == "string" ? t : t.toString(), e);
5249
+ return lt.fromString(typeof t == "string" ? t : t.toString(), e);
5245
5250
  }
5246
5251
  /** @nocollapse */
5247
5252
  static fromNumber(t, e = new Uint32Array(2)) {
5248
- return ct.fromString(t.toString(), e);
5253
+ return lt.fromString(t.toString(), e);
5249
5254
  }
5250
5255
  /** @nocollapse */
5251
5256
  static fromString(t, e = new Uint32Array(2)) {
5252
- const n = t.startsWith("-"), r = t.length, i = new ct(e);
5257
+ const n = t.startsWith("-"), r = t.length, i = new lt(e);
5253
5258
  for (let o = n ? 1 : 0; o < r; ) {
5254
- const a = Ie < r - o ? Ie : r - o, l = new ct(new Uint32Array([Number.parseInt(t.slice(o, o + a), 10), 0])), u = new ct(new Uint32Array([An[a], 0]));
5255
- i.times(u), i.plus(l), o += a;
5259
+ const a = Ie < r - o ? Ie : r - o, c = new lt(new Uint32Array([Number.parseInt(t.slice(o, o + a), 10), 0])), u = new lt(new Uint32Array([An[a], 0]));
5260
+ i.times(u), i.plus(c), o += a;
5256
5261
  }
5257
5262
  return n ? i.negate() : i;
5258
5263
  }
@@ -5260,16 +5265,16 @@ class ct extends eo {
5260
5265
  static convertArray(t) {
5261
5266
  const e = new Uint32Array(t.length * 2);
5262
5267
  for (let n = -1, r = t.length; ++n < r; )
5263
- ct.from(t[n], new Uint32Array(e.buffer, e.byteOffset + 2 * n * 4, 2));
5268
+ lt.from(t[n], new Uint32Array(e.buffer, e.byteOffset + 2 * n * 4, 2));
5264
5269
  return e;
5265
5270
  }
5266
5271
  /** @nocollapse */
5267
5272
  static multiply(t, e) {
5268
- return new ct(new Uint32Array(t.buffer)).times(e);
5273
+ return new lt(new Uint32Array(t.buffer)).times(e);
5269
5274
  }
5270
5275
  /** @nocollapse */
5271
5276
  static add(t, e) {
5272
- return new ct(new Uint32Array(t.buffer)).plus(e);
5277
+ return new lt(new Uint32Array(t.buffer)).plus(e);
5273
5278
  }
5274
5279
  }
5275
5280
  class vt {
@@ -5277,27 +5282,27 @@ class vt {
5277
5282
  this.buffer = t;
5278
5283
  }
5279
5284
  high() {
5280
- return new ct(new Uint32Array(this.buffer.buffer, this.buffer.byteOffset + 8, 2));
5285
+ return new lt(new Uint32Array(this.buffer.buffer, this.buffer.byteOffset + 8, 2));
5281
5286
  }
5282
5287
  low() {
5283
- return new ct(new Uint32Array(this.buffer.buffer, this.buffer.byteOffset, 2));
5288
+ return new lt(new Uint32Array(this.buffer.buffer, this.buffer.byteOffset, 2));
5284
5289
  }
5285
5290
  negate() {
5286
5291
  return this.buffer[0] = ~this.buffer[0] + 1, this.buffer[1] = ~this.buffer[1], this.buffer[2] = ~this.buffer[2], this.buffer[3] = ~this.buffer[3], this.buffer[0] == 0 && ++this.buffer[1], this.buffer[1] == 0 && ++this.buffer[2], this.buffer[2] == 0 && ++this.buffer[3], this;
5287
5292
  }
5288
5293
  times(t) {
5289
- const e = new C(new Uint32Array([this.buffer[3], 0])), n = new C(new Uint32Array([this.buffer[2], 0])), r = new C(new Uint32Array([this.buffer[1], 0])), i = new C(new Uint32Array([this.buffer[0], 0])), o = new C(new Uint32Array([t.buffer[3], 0])), a = new C(new Uint32Array([t.buffer[2], 0])), l = new C(new Uint32Array([t.buffer[1], 0])), u = new C(new Uint32Array([t.buffer[0], 0]));
5290
- let h = C.multiply(i, u);
5291
- this.buffer[0] = h.low();
5292
- const d = new C(new Uint32Array([h.high(), 0]));
5293
- return h = C.multiply(r, u), d.plus(h), h = C.multiply(i, l), d.plus(h), this.buffer[1] = d.low(), this.buffer[3] = d.lessThan(h) ? 1 : 0, this.buffer[2] = d.high(), new C(new Uint32Array(this.buffer.buffer, this.buffer.byteOffset + 8, 2)).plus(C.multiply(n, u)).plus(C.multiply(r, l)).plus(C.multiply(i, a)), this.buffer[3] += C.multiply(e, u).plus(C.multiply(n, l)).plus(C.multiply(r, a)).plus(C.multiply(i, o)).low(), this;
5294
+ const e = new C(new Uint32Array([this.buffer[3], 0])), n = new C(new Uint32Array([this.buffer[2], 0])), r = new C(new Uint32Array([this.buffer[1], 0])), i = new C(new Uint32Array([this.buffer[0], 0])), o = new C(new Uint32Array([t.buffer[3], 0])), a = new C(new Uint32Array([t.buffer[2], 0])), c = new C(new Uint32Array([t.buffer[1], 0])), u = new C(new Uint32Array([t.buffer[0], 0]));
5295
+ let d = C.multiply(i, u);
5296
+ this.buffer[0] = d.low();
5297
+ const h = new C(new Uint32Array([d.high(), 0]));
5298
+ return d = C.multiply(r, u), h.plus(d), d = C.multiply(i, c), h.plus(d), this.buffer[1] = h.low(), this.buffer[3] = h.lessThan(d) ? 1 : 0, this.buffer[2] = h.high(), new C(new Uint32Array(this.buffer.buffer, this.buffer.byteOffset + 8, 2)).plus(C.multiply(n, u)).plus(C.multiply(r, c)).plus(C.multiply(i, a)), this.buffer[3] += C.multiply(e, u).plus(C.multiply(n, c)).plus(C.multiply(r, a)).plus(C.multiply(i, o)).low(), this;
5294
5299
  }
5295
5300
  plus(t) {
5296
5301
  const e = new Uint32Array(4);
5297
5302
  return e[3] = this.buffer[3] + t.buffer[3] >>> 0, e[2] = this.buffer[2] + t.buffer[2] >>> 0, e[1] = this.buffer[1] + t.buffer[1] >>> 0, e[0] = this.buffer[0] + t.buffer[0] >>> 0, e[0] < this.buffer[0] >>> 0 && ++e[1], e[1] < this.buffer[1] >>> 0 && ++e[2], e[2] < this.buffer[2] >>> 0 && ++e[3], this.buffer[3] = e[3], this.buffer[2] = e[2], this.buffer[1] = e[1], this.buffer[0] = e[0], this;
5298
5303
  }
5299
5304
  hex() {
5300
- return `${de(this.buffer[3])} ${de(this.buffer[2])} ${de(this.buffer[1])} ${de(this.buffer[0])}`;
5305
+ return `${he(this.buffer[3])} ${he(this.buffer[2])} ${he(this.buffer[1])} ${he(this.buffer[0])}`;
5301
5306
  }
5302
5307
  /** @nocollapse */
5303
5308
  static multiply(t, e) {
@@ -5319,8 +5324,8 @@ class vt {
5319
5324
  static fromString(t, e = new Uint32Array(4)) {
5320
5325
  const n = t.startsWith("-"), r = t.length, i = new vt(e);
5321
5326
  for (let o = n ? 1 : 0; o < r; ) {
5322
- const a = Ie < r - o ? Ie : r - o, l = new vt(new Uint32Array([Number.parseInt(t.slice(o, o + a), 10), 0, 0, 0])), u = new vt(new Uint32Array([An[a], 0, 0, 0]));
5323
- i.times(u), i.plus(l), o += a;
5327
+ const a = Ie < r - o ? Ie : r - o, c = new vt(new Uint32Array([Number.parseInt(t.slice(o, o + a), 10), 0, 0, 0])), u = new vt(new Uint32Array([An[a], 0, 0, 0]));
5328
+ i.times(u), i.plus(c), o += a;
5324
5329
  }
5325
5330
  return n ? i.negate() : i;
5326
5331
  }
@@ -5430,7 +5435,7 @@ class so extends O {
5430
5435
  return this.dictionaries.get(t.id);
5431
5436
  }
5432
5437
  }
5433
- class sc extends so {
5438
+ class sl extends so {
5434
5439
  constructor(t, e, n, r, i) {
5435
5440
  super(new Uint8Array(0), e, n, r, i), this.sources = t;
5436
5441
  }
@@ -5445,10 +5450,10 @@ class sc extends so {
5445
5450
  }
5446
5451
  readData(t, { offset: e } = this.nextBufferRange()) {
5447
5452
  const { sources: n } = this;
5448
- return p.isTimestamp(t) || (p.isInt(t) || p.isTime(t)) && t.bitWidth === 64 || p.isDuration(t) || p.isDate(t) && t.unit === pt.MILLISECOND ? x(Uint8Array, ct.convertArray(n[e])) : p.isDecimal(t) ? x(Uint8Array, vt.convertArray(n[e])) : p.isBinary(t) || p.isLargeBinary(t) || p.isFixedSizeBinary(t) ? nc(n[e]) : p.isBool(t) ? Os(n[e]) : p.isUtf8(t) || p.isLargeUtf8(t) ? fn(n[e].join("")) : x(Uint8Array, x(t.ArrayType, n[e].map((r) => +r)));
5453
+ return p.isTimestamp(t) || (p.isInt(t) || p.isTime(t)) && t.bitWidth === 64 || p.isDuration(t) || p.isDate(t) && t.unit === pt.MILLISECOND ? x(Uint8Array, lt.convertArray(n[e])) : p.isDecimal(t) ? x(Uint8Array, vt.convertArray(n[e])) : p.isBinary(t) || p.isLargeBinary(t) || p.isFixedSizeBinary(t) ? nl(n[e]) : p.isBool(t) ? Os(n[e]) : p.isUtf8(t) || p.isLargeUtf8(t) ? fn(n[e].join("")) : x(Uint8Array, x(t.ArrayType, n[e].map((r) => +r)));
5449
5454
  }
5450
5455
  }
5451
- function nc(s) {
5456
+ function nl(s) {
5452
5457
  const t = s.join(""), e = new Uint8Array(t.length / 2);
5453
5458
  for (let n = 0; n < t.length; n += 2)
5454
5459
  e[n >> 1] = Number.parseInt(t.slice(n, n + 2), 16);
@@ -5477,7 +5482,7 @@ function Ct(s, t) {
5477
5482
  function Ps(s, t) {
5478
5483
  return s === t || Z(s, t) && s.precision === t.precision;
5479
5484
  }
5480
- function rc(s, t) {
5485
+ function rl(s, t) {
5481
5486
  return s === t || Z(s, t) && s.byteWidth === t.byteWidth;
5482
5487
  }
5483
5488
  function Rn(s, t) {
@@ -5489,16 +5494,16 @@ function ze(s, t) {
5489
5494
  function je(s, t) {
5490
5495
  return s === t || Z(s, t) && s.unit === t.unit && s.bitWidth === t.bitWidth;
5491
5496
  }
5492
- function ic(s, t) {
5497
+ function il(s, t) {
5493
5498
  return s === t || Z(s, t) && s.children.length === t.children.length && Gt.compareManyFields(s.children, t.children);
5494
5499
  }
5495
- function oc(s, t) {
5500
+ function ol(s, t) {
5496
5501
  return s === t || Z(s, t) && s.children.length === t.children.length && Gt.compareManyFields(s.children, t.children);
5497
5502
  }
5498
5503
  function Dn(s, t) {
5499
5504
  return s === t || Z(s, t) && s.mode === t.mode && s.typeIds.every((e, n) => e === t.typeIds[n]) && Gt.compareManyFields(s.children, t.children);
5500
5505
  }
5501
- function ac(s, t) {
5506
+ function al(s, t) {
5502
5507
  return s === t || Z(s, t) && s.id === t.id && s.isOrdered === t.isOrdered && Gt.visit(s.indices, t.indices) && Gt.visit(s.dictionary, t.dictionary);
5503
5508
  }
5504
5509
  function Bn(s, t) {
@@ -5507,10 +5512,10 @@ function Bn(s, t) {
5507
5512
  function Ye(s, t) {
5508
5513
  return s === t || Z(s, t) && s.unit === t.unit;
5509
5514
  }
5510
- function cc(s, t) {
5515
+ function ll(s, t) {
5511
5516
  return s === t || Z(s, t) && s.listSize === t.listSize && s.children.length === t.children.length && Gt.compareManyFields(s.children, t.children);
5512
5517
  }
5513
- function lc(s, t) {
5518
+ function cl(s, t) {
5514
5519
  return s === t || Z(s, t) && s.keysSorted === t.keysSorted && s.children.length === t.children.length && Gt.compareManyFields(s.children, t.children);
5515
5520
  }
5516
5521
  g.prototype.visitNull = Xt;
@@ -5532,7 +5537,7 @@ g.prototype.visitUtf8 = Xt;
5532
5537
  g.prototype.visitLargeUtf8 = Xt;
5533
5538
  g.prototype.visitBinary = Xt;
5534
5539
  g.prototype.visitLargeBinary = Xt;
5535
- g.prototype.visitFixedSizeBinary = rc;
5540
+ g.prototype.visitFixedSizeBinary = rl;
5536
5541
  g.prototype.visitDate = Rn;
5537
5542
  g.prototype.visitDateDay = Rn;
5538
5543
  g.prototype.visitDateMillisecond = Rn;
@@ -5547,12 +5552,12 @@ g.prototype.visitTimeMillisecond = je;
5547
5552
  g.prototype.visitTimeMicrosecond = je;
5548
5553
  g.prototype.visitTimeNanosecond = je;
5549
5554
  g.prototype.visitDecimal = Xt;
5550
- g.prototype.visitList = ic;
5551
- g.prototype.visitStruct = oc;
5555
+ g.prototype.visitList = il;
5556
+ g.prototype.visitStruct = ol;
5552
5557
  g.prototype.visitUnion = Dn;
5553
5558
  g.prototype.visitDenseUnion = Dn;
5554
5559
  g.prototype.visitSparseUnion = Dn;
5555
- g.prototype.visitDictionary = ac;
5560
+ g.prototype.visitDictionary = al;
5556
5561
  g.prototype.visitInterval = Bn;
5557
5562
  g.prototype.visitIntervalDayTime = Bn;
5558
5563
  g.prototype.visitIntervalYearMonth = Bn;
@@ -5561,46 +5566,46 @@ g.prototype.visitDurationSecond = Ye;
5561
5566
  g.prototype.visitDurationMillisecond = Ye;
5562
5567
  g.prototype.visitDurationMicrosecond = Ye;
5563
5568
  g.prototype.visitDurationNanosecond = Ye;
5564
- g.prototype.visitFixedSizeList = cc;
5565
- g.prototype.visitMap = lc;
5569
+ g.prototype.visitFixedSizeList = ll;
5570
+ g.prototype.visitMap = cl;
5566
5571
  const Gt = new g();
5567
5572
  function un(s, t) {
5568
5573
  return Gt.compareSchemas(s, t);
5569
5574
  }
5570
5575
  function $s(s, t) {
5571
- return uc(s, t.map((e) => e.data.concat()));
5576
+ return ul(s, t.map((e) => e.data.concat()));
5572
5577
  }
5573
- function uc(s, t) {
5574
- const e = [...s.fields], n = [], r = { numBatches: t.reduce((d, j) => Math.max(d, j.length), 0) };
5578
+ function ul(s, t) {
5579
+ const e = [...s.fields], n = [], r = { numBatches: t.reduce((h, j) => Math.max(h, j.length), 0) };
5575
5580
  let i = 0, o = 0, a = -1;
5576
- const l = t.length;
5577
- let u, h = [];
5581
+ const c = t.length;
5582
+ let u, d = [];
5578
5583
  for (; r.numBatches-- > 0; ) {
5579
- for (o = Number.POSITIVE_INFINITY, a = -1; ++a < l; )
5580
- h[a] = u = t[a].shift(), o = Math.min(o, u ? u.length : o);
5581
- Number.isFinite(o) && (h = hc(e, o, h, t, r), o > 0 && (n[i++] = A({
5584
+ for (o = Number.POSITIVE_INFINITY, a = -1; ++a < c; )
5585
+ d[a] = u = t[a].shift(), o = Math.min(o, u ? u.length : o);
5586
+ Number.isFinite(o) && (d = dl(e, o, d, t, r), o > 0 && (n[i++] = A({
5582
5587
  type: new Q(e),
5583
5588
  length: o,
5584
5589
  nullCount: 0,
5585
- children: h.slice()
5590
+ children: d.slice()
5586
5591
  })));
5587
5592
  }
5588
5593
  return [
5589
5594
  s = s.assign(e),
5590
- n.map((d) => new tt(s, d))
5595
+ n.map((h) => new tt(s, h))
5591
5596
  ];
5592
5597
  }
5593
- function hc(s, t, e, n, r) {
5598
+ function dl(s, t, e, n, r) {
5594
5599
  var i;
5595
5600
  const o = (t + 63 & -64) >> 3;
5596
- for (let a = -1, l = n.length; ++a < l; ) {
5597
- const u = e[a], h = u == null ? void 0 : u.length;
5598
- if (h >= t)
5599
- h === t ? e[a] = u : (e[a] = u.slice(0, t), r.numBatches = Math.max(r.numBatches, n[a].unshift(u.slice(t, h - t))));
5601
+ for (let a = -1, c = n.length; ++a < c; ) {
5602
+ const u = e[a], d = u == null ? void 0 : u.length;
5603
+ if (d >= t)
5604
+ d === t ? e[a] = u : (e[a] = u.slice(0, t), r.numBatches = Math.max(r.numBatches, n[a].unshift(u.slice(t, d - t))));
5600
5605
  else {
5601
- const d = s[a];
5602
- s[a] = d.clone({ nullable: !0 }), e[a] = (i = u == null ? void 0 : u._changeLengthAndBackfillNullBitmap(t)) !== null && i !== void 0 ? i : A({
5603
- type: d.type,
5606
+ const h = s[a];
5607
+ s[a] = h.clone({ nullable: !0 }), e[a] = (i = u == null ? void 0 : u._changeLengthAndBackfillNullBitmap(t)) !== null && i !== void 0 ? i : A({
5608
+ type: h.type,
5604
5609
  length: t,
5605
5610
  nullCount: t,
5606
5611
  nullBitmap: new Uint8Array(o)
@@ -5617,34 +5622,34 @@ class q {
5617
5622
  return this.batches = [], this.schema = new L([]), this._offsets = [0], this;
5618
5623
  let r, i;
5619
5624
  t[0] instanceof L && (r = t.shift()), t.at(-1) instanceof Uint32Array && (i = t.pop());
5620
- const o = (l) => {
5621
- if (l) {
5622
- if (l instanceof tt)
5623
- return [l];
5624
- if (l instanceof q)
5625
- return l.batches;
5626
- if (l instanceof M) {
5627
- if (l.type instanceof Q)
5628
- return [new tt(new L(l.type.children), l)];
5625
+ const o = (c) => {
5626
+ if (c) {
5627
+ if (c instanceof tt)
5628
+ return [c];
5629
+ if (c instanceof q)
5630
+ return c.batches;
5631
+ if (c instanceof M) {
5632
+ if (c.type instanceof Q)
5633
+ return [new tt(new L(c.type.children), c)];
5629
5634
  } else {
5630
- if (Array.isArray(l))
5631
- return l.flatMap((u) => o(u));
5632
- if (typeof l[Symbol.iterator] == "function")
5633
- return [...l].flatMap((u) => o(u));
5634
- if (typeof l == "object") {
5635
- const u = Object.keys(l), h = u.map((R) => new F([l[R]])), d = r ?? new L(u.map((R, nt) => new V(String(R), h[nt].type, h[nt].nullable))), [, j] = $s(d, h);
5636
- return j.length === 0 ? [new tt(l)] : j;
5635
+ if (Array.isArray(c))
5636
+ return c.flatMap((u) => o(u));
5637
+ if (typeof c[Symbol.iterator] == "function")
5638
+ return [...c].flatMap((u) => o(u));
5639
+ if (typeof c == "object") {
5640
+ const u = Object.keys(c), d = u.map((R) => new F([c[R]])), h = r ?? new L(u.map((R, nt) => new V(String(R), d[nt].type, d[nt].nullable))), [, j] = $s(h, d);
5641
+ return j.length === 0 ? [new tt(c)] : j;
5637
5642
  }
5638
5643
  }
5639
5644
  }
5640
5645
  return [];
5641
- }, a = t.flatMap((l) => o(l));
5646
+ }, a = t.flatMap((c) => o(c));
5642
5647
  if (r = (n = r ?? ((e = a[0]) === null || e === void 0 ? void 0 : e.schema)) !== null && n !== void 0 ? n : new L([]), !(r instanceof L))
5643
5648
  throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.");
5644
- for (const l of a) {
5645
- if (!(l instanceof tt))
5649
+ for (const c of a) {
5650
+ if (!(c instanceof tt))
5646
5651
  throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.");
5647
- if (!un(r, l.schema))
5652
+ if (!un(r, c.schema))
5648
5653
  throw new TypeError("Table and inner RecordBatch schemas must be equivalent.");
5649
5654
  }
5650
5655
  this.schema = r, this.batches = a, this._offsets = i ?? Ki(this.data);
@@ -5802,7 +5807,7 @@ class q {
5802
5807
  let n = this.schema, r = [...this.batches];
5803
5808
  if (t > -1 && t < this.numCols) {
5804
5809
  e || (e = new F([A({ type: new Yt(), length: this.numRows })]));
5805
- const i = n.fields.slice(), o = i[t].clone({ type: e.type }), a = this.schema.fields.map((l, u) => this.getChildAt(u));
5810
+ const i = n.fields.slice(), o = i[t].clone({ type: e.type }), a = this.schema.fields.map((c, u) => this.getChildAt(u));
5806
5811
  [i[t], a[t]] = [o, e], [n, r] = $s(n, a);
5807
5812
  }
5808
5813
  return new q(n, r);
@@ -5828,18 +5833,18 @@ class q {
5828
5833
  return new q(e, n);
5829
5834
  }
5830
5835
  assign(t) {
5831
- const e = this.schema.fields, [n, r] = t.schema.fields.reduce((a, l, u) => {
5832
- const [h, d] = a, j = e.findIndex((R) => R.name === l.name);
5833
- return ~j ? d[j] = u : h.push(u), a;
5836
+ const e = this.schema.fields, [n, r] = t.schema.fields.reduce((a, c, u) => {
5837
+ const [d, h] = a, j = e.findIndex((R) => R.name === c.name);
5838
+ return ~j ? h[j] = u : d.push(u), a;
5834
5839
  }, [[], []]), i = this.schema.assign(t.schema), o = [
5835
- ...e.map((a, l) => [l, r[l]]).map(([a, l]) => l === void 0 ? this.getChildAt(a) : t.getChildAt(l)),
5840
+ ...e.map((a, c) => [c, r[c]]).map(([a, c]) => c === void 0 ? this.getChildAt(a) : t.getChildAt(c)),
5836
5841
  ...n.map((a) => t.getChildAt(a))
5837
5842
  ].filter(Boolean);
5838
5843
  return new q(...$s(i, o));
5839
5844
  }
5840
5845
  }
5841
5846
  no = Symbol.toStringTag;
5842
- q[no] = ((s) => (s.schema = null, s.batches = [], s._offsets = new Uint32Array([0]), s._nullCount = -1, s[Symbol.isConcatSpreadable] = !0, s.isValid = As(Tn), s.get = As(st.getVisitFn(c.Struct)), s.set = qi(ft.getVisitFn(c.Struct)), s.indexOf = Qi(Rs.getVisitFn(c.Struct)), "Table"))(q.prototype);
5847
+ q[no] = ((s) => (s.schema = null, s.batches = [], s._offsets = new Uint32Array([0]), s._nullCount = -1, s[Symbol.isConcatSpreadable] = !0, s.isValid = As(Tn), s.get = As(st.getVisitFn(l.Struct)), s.set = qi(ft.getVisitFn(l.Struct)), s.indexOf = Qi(Rs.getVisitFn(l.Struct)), "Table"))(q.prototype);
5843
5848
  var ro;
5844
5849
  let tt = class Fe {
5845
5850
  constructor(...t) {
@@ -5860,7 +5865,7 @@ let tt = class Fe {
5860
5865
  break;
5861
5866
  }
5862
5867
  case 1: {
5863
- const [e] = t, { fields: n, children: r, length: i } = Object.keys(e).reduce((l, u, h) => (l.children[h] = e[u], l.length = Math.max(l.length, e[u].length), l.fields[h] = V.new({ name: u, type: e[u].type, nullable: !0 }), l), {
5868
+ const [e] = t, { fields: n, children: r, length: i } = Object.keys(e).reduce((c, u, d) => (c.children[d] = e[u], c.length = Math.max(c.length, e[u].length), c.fields[d] = V.new({ name: u, type: e[u].type, nullable: !0 }), c), {
5864
5869
  length: 0,
5865
5870
  fields: new Array(),
5866
5871
  children: new Array()
@@ -6022,10 +6027,10 @@ tt[ro] = ((s) => (s._nullCount = -1, s[Symbol.isConcatSpreadable] = !0, "RecordB
6022
6027
  function ar(s, t, e = t.reduce((n, r) => Math.max(n, r.length), 0)) {
6023
6028
  var n;
6024
6029
  const r = [...s.fields], i = [...t], o = (e + 63 & -64) >> 3;
6025
- for (const [a, l] of s.fields.entries()) {
6030
+ for (const [a, c] of s.fields.entries()) {
6026
6031
  const u = t[a];
6027
- (!u || u.length !== e) && (r[a] = l.clone({ nullable: !0 }), i[a] = (n = u == null ? void 0 : u._changeLengthAndBackfillNullBitmap(e)) !== null && n !== void 0 ? n : A({
6028
- type: l.type,
6032
+ (!u || u.length !== e) && (r[a] = c.clone({ nullable: !0 }), i[a] = (n = u == null ? void 0 : u._changeLengthAndBackfillNullBitmap(e)) !== null && n !== void 0 ? n : A({
6033
+ type: c.type,
6029
6034
  length: e,
6030
6035
  nullCount: e,
6031
6036
  nullBitmap: new Uint8Array(o)
@@ -6040,14 +6045,14 @@ function io(s, t, e = /* @__PURE__ */ new Map()) {
6040
6045
  var n, r;
6041
6046
  if (((n = s == null ? void 0 : s.length) !== null && n !== void 0 ? n : 0) > 0 && (s == null ? void 0 : s.length) === (t == null ? void 0 : t.length))
6042
6047
  for (let i = -1, o = s.length; ++i < o; ) {
6043
- const { type: a } = s[i], l = t[i];
6044
- for (const u of [l, ...((r = l == null ? void 0 : l.dictionary) === null || r === void 0 ? void 0 : r.data) || []])
6048
+ const { type: a } = s[i], c = t[i];
6049
+ for (const u of [c, ...((r = c == null ? void 0 : c.dictionary) === null || r === void 0 ? void 0 : r.data) || []])
6045
6050
  io(a.children, u == null ? void 0 : u.children, e);
6046
6051
  if (p.isDictionary(a)) {
6047
6052
  const { id: u } = a;
6048
6053
  if (!e.has(u))
6049
- l != null && l.dictionary && e.set(u, l.dictionary);
6050
- else if (e.get(u) !== l.dictionary)
6054
+ c != null && c.dictionary && e.set(u, c.dictionary);
6055
+ else if (e.get(u) !== c.dictionary)
6051
6056
  throw new Error("Cannot create Schema containing two different dictionaries with the same Id");
6052
6057
  }
6053
6058
  }
@@ -6136,7 +6141,7 @@ let kt = class mt {
6136
6141
  return mt.startMessage(t), mt.addVersion(t, e), mt.addHeaderType(t, n), mt.addHeader(t, r), mt.addBodyLength(t, i), mt.addCustomMetadata(t, o), mt.endMessage(t);
6137
6142
  }
6138
6143
  };
6139
- class dc extends O {
6144
+ class hl extends O {
6140
6145
  visit(t, e) {
6141
6146
  return t == null || e == null ? void 0 : super.visit(t, e);
6142
6147
  }
@@ -6175,7 +6180,7 @@ class dc extends O {
6175
6180
  }
6176
6181
  visitTimestamp(t, e) {
6177
6182
  const n = t.timezone && e.createString(t.timezone) || void 0;
6178
- return ht.startTimestamp(e), ht.addUnit(e, t.unit), n !== void 0 && ht.addTimezone(e, n), ht.endTimestamp(e);
6183
+ return dt.startTimestamp(e), dt.addUnit(e, t.unit), n !== void 0 && dt.addTimezone(e, n), dt.endTimestamp(e);
6179
6184
  }
6180
6185
  visitInterval(t, e) {
6181
6186
  return St.startInterval(e), St.addUnit(e, t.unit), St.endInterval(e);
@@ -6208,47 +6213,47 @@ class dc extends O {
6208
6213
  return Xe.startMap(e), Xe.addKeysSorted(e, t.keysSorted), Xe.endMap(e);
6209
6214
  }
6210
6215
  }
6211
- const Ks = new dc();
6212
- function pc(s, t = /* @__PURE__ */ new Map()) {
6213
- return new L(yc(s, t), ss(s.metadata), t);
6216
+ const Ks = new hl();
6217
+ function pl(s, t = /* @__PURE__ */ new Map()) {
6218
+ return new L(yl(s, t), ss(s.metadata), t);
6214
6219
  }
6215
6220
  function oo(s) {
6216
- return new ot(s.count, ao(s.columns), co(s.columns));
6221
+ return new ot(s.count, ao(s.columns), lo(s.columns));
6217
6222
  }
6218
- function fc(s) {
6223
+ function fl(s) {
6219
6224
  return new Rt(oo(s.data), s.id, s.isDelta);
6220
6225
  }
6221
- function yc(s, t) {
6226
+ function yl(s, t) {
6222
6227
  return (s.fields || []).filter(Boolean).map((e) => V.fromJSON(e, t));
6223
6228
  }
6224
- function cr(s, t) {
6229
+ function lr(s, t) {
6225
6230
  return (s.children || []).filter(Boolean).map((e) => V.fromJSON(e, t));
6226
6231
  }
6227
6232
  function ao(s) {
6228
6233
  return (s || []).reduce((t, e) => [
6229
6234
  ...t,
6230
- new $t(e.count, bc(e.VALIDITY)),
6235
+ new $t(e.count, bl(e.VALIDITY)),
6231
6236
  ...ao(e.children)
6232
6237
  ], []);
6233
6238
  }
6234
- function co(s, t = []) {
6239
+ function lo(s, t = []) {
6235
6240
  for (let e = -1, n = (s || []).length; ++e < n; ) {
6236
6241
  const r = s[e];
6237
- r.VALIDITY && t.push(new Et(t.length, r.VALIDITY.length)), r.TYPE_ID && t.push(new Et(t.length, r.TYPE_ID.length)), r.OFFSET && t.push(new Et(t.length, r.OFFSET.length)), r.DATA && t.push(new Et(t.length, r.DATA.length)), t = co(r.children, t);
6242
+ r.VALIDITY && t.push(new Et(t.length, r.VALIDITY.length)), r.TYPE_ID && t.push(new Et(t.length, r.TYPE_ID.length)), r.OFFSET && t.push(new Et(t.length, r.OFFSET.length)), r.DATA && t.push(new Et(t.length, r.DATA.length)), t = lo(r.children, t);
6238
6243
  }
6239
6244
  return t;
6240
6245
  }
6241
- function bc(s) {
6246
+ function bl(s) {
6242
6247
  return (s || []).reduce((t, e) => t + +(e === 0), 0);
6243
6248
  }
6244
- function gc(s, t) {
6249
+ function gl(s, t) {
6245
6250
  let e, n, r, i, o, a;
6246
- return !t || !(i = s.dictionary) ? (o = ur(s, cr(s, t)), r = new V(s.name, o, s.nullable, ss(s.metadata))) : t.has(e = i.id) ? (n = (n = i.indexType) ? lr(n) : new xe(), a = new _e(t.get(e), n, e, i.isOrdered), r = new V(s.name, a, s.nullable, ss(s.metadata))) : (n = (n = i.indexType) ? lr(n) : new xe(), t.set(e, o = ur(s, cr(s, t))), a = new _e(o, n, e, i.isOrdered), r = new V(s.name, a, s.nullable, ss(s.metadata))), r || null;
6251
+ return !t || !(i = s.dictionary) ? (o = ur(s, lr(s, t)), r = new V(s.name, o, s.nullable, ss(s.metadata))) : t.has(e = i.id) ? (n = (n = i.indexType) ? cr(n) : new xe(), a = new _e(t.get(e), n, e, i.isOrdered), r = new V(s.name, a, s.nullable, ss(s.metadata))) : (n = (n = i.indexType) ? cr(n) : new xe(), t.set(e, o = ur(s, lr(s, t))), a = new _e(o, n, e, i.isOrdered), r = new V(s.name, a, s.nullable, ss(s.metadata))), r || null;
6247
6252
  }
6248
6253
  function ss(s = []) {
6249
6254
  return new Map(s.map(({ key: t, value: e }) => [t, e]));
6250
6255
  }
6251
- function lr(s) {
6256
+ function cr(s) {
6252
6257
  return new Zt(s.isSigned, s.bitWidth);
6253
6258
  }
6254
6259
  function ur(s, t) {
@@ -6259,13 +6264,13 @@ function ur(s, t) {
6259
6264
  case "null":
6260
6265
  return new Yt();
6261
6266
  case "binary":
6262
- return new ls();
6267
+ return new cs();
6263
6268
  case "largebinary":
6264
6269
  return new us();
6265
6270
  case "utf8":
6266
- return new hs();
6267
- case "largeutf8":
6268
6271
  return new ds();
6272
+ case "largeutf8":
6273
+ return new hs();
6269
6274
  case "bool":
6270
6275
  return new ps();
6271
6276
  case "list":
@@ -6282,7 +6287,7 @@ function ur(s, t) {
6282
6287
  }
6283
6288
  case "floatingpoint": {
6284
6289
  const n = s.type;
6285
- return new cs(K[n.precision]);
6290
+ return new ls(K[n.precision]);
6286
6291
  }
6287
6292
  case "decimal": {
6288
6293
  const n = s.type;
@@ -6327,22 +6332,22 @@ function ur(s, t) {
6327
6332
  }
6328
6333
  throw new Error(`Unrecognized type: "${e}"`);
6329
6334
  }
6330
- var mc = Tr, _c = ge;
6335
+ var ml = Tr, _l = ge;
6331
6336
  class J {
6332
6337
  /** @nocollapse */
6333
6338
  static fromJSON(t, e) {
6334
6339
  const n = new J(0, Y.V5, e);
6335
- return n._createHeader = vc(t, e), n;
6340
+ return n._createHeader = vl(t, e), n;
6336
6341
  }
6337
6342
  /** @nocollapse */
6338
6343
  static decode(t) {
6339
- t = new _c(D(t));
6344
+ t = new _l(D(t));
6340
6345
  const e = kt.getRootAsMessage(t), n = e.bodyLength(), r = e.version(), i = e.headerType(), o = new J(n, r, i);
6341
- return o._createHeader = Ic(e, i), o;
6346
+ return o._createHeader = Il(e, i), o;
6342
6347
  }
6343
6348
  /** @nocollapse */
6344
6349
  static encode(t) {
6345
- const e = new mc();
6350
+ const e = new ml();
6346
6351
  let n = -1;
6347
6352
  return t.isSchema() ? n = L.encode(e, t.header()) : t.isRecordBatch() ? n = ot.encode(e, t.header()) : t.isDictionaryBatch() && (n = Rt.encode(e, t.header())), kt.startMessage(e), kt.addVersion(e, Y.V5), kt.addHeader(e, n), kt.addHeaderType(e, t.headerType), kt.addBodyLength(e, BigInt(t.bodyLength)), kt.finishMessageBuffer(e, kt.endMessage(e)), e.asUint8Array();
6348
6353
  }
@@ -6431,8 +6436,8 @@ class $t {
6431
6436
  this.length = P(t), this.nullCount = P(e);
6432
6437
  }
6433
6438
  }
6434
- function vc(s, t) {
6435
- return () => {
6439
+ function vl(s, t) {
6440
+ return (() => {
6436
6441
  switch (t) {
6437
6442
  case N.Schema:
6438
6443
  return L.fromJSON(s);
@@ -6442,10 +6447,10 @@ function vc(s, t) {
6442
6447
  return Rt.fromJSON(s);
6443
6448
  }
6444
6449
  throw new Error(`Unrecognized Message type: { name: ${N[t]}, type: ${t} }`);
6445
- };
6450
+ });
6446
6451
  }
6447
- function Ic(s, t) {
6448
- return () => {
6452
+ function Il(s, t) {
6453
+ return (() => {
6449
6454
  switch (t) {
6450
6455
  case N.Schema:
6451
6456
  return L.decode(s.header(new _t()), /* @__PURE__ */ new Map(), s.version());
@@ -6455,69 +6460,69 @@ function Ic(s, t) {
6455
6460
  return Rt.decode(s.header(new se()), s.version());
6456
6461
  }
6457
6462
  throw new Error(`Unrecognized Message type: { name: ${N[t]}, type: ${t} }`);
6458
- };
6463
+ });
6459
6464
  }
6460
- V.encode = Fc;
6461
- V.decode = Bc;
6462
- V.fromJSON = gc;
6463
- L.encode = Nc;
6464
- L.decode = wc;
6465
- L.fromJSON = pc;
6466
- ot.encode = Lc;
6467
- ot.decode = Sc;
6465
+ V.encode = Fl;
6466
+ V.decode = Bl;
6467
+ V.fromJSON = gl;
6468
+ L.encode = Nl;
6469
+ L.decode = wl;
6470
+ L.fromJSON = pl;
6471
+ ot.encode = Ll;
6472
+ ot.decode = Sl;
6468
6473
  ot.fromJSON = oo;
6469
- Rt.encode = Uc;
6470
- Rt.decode = Tc;
6471
- Rt.fromJSON = fc;
6472
- $t.encode = Mc;
6473
- $t.decode = Oc;
6474
- Et.encode = Cc;
6475
- Et.decode = Ec;
6476
- function wc(s, t = /* @__PURE__ */ new Map(), e = Y.V5) {
6477
- const n = Dc(s, t);
6474
+ Rt.encode = Ul;
6475
+ Rt.decode = Tl;
6476
+ Rt.fromJSON = fl;
6477
+ $t.encode = Ml;
6478
+ $t.decode = Ol;
6479
+ Et.encode = Cl;
6480
+ Et.decode = El;
6481
+ function wl(s, t = /* @__PURE__ */ new Map(), e = Y.V5) {
6482
+ const n = Dl(s, t);
6478
6483
  return new L(n, ns(s), t, e);
6479
6484
  }
6480
- function Sc(s, t = Y.V5) {
6485
+ function Sl(s, t = Y.V5) {
6481
6486
  if (s.compression() !== null)
6482
6487
  throw new Error("Record batch compression not implemented");
6483
- return new ot(s.length(), Ac(s), Rc(s, t));
6488
+ return new ot(s.length(), Al(s), Rl(s, t));
6484
6489
  }
6485
- function Tc(s, t = Y.V5) {
6490
+ function Tl(s, t = Y.V5) {
6486
6491
  return new Rt(ot.decode(s.data(), t), s.id(), s.isDelta());
6487
6492
  }
6488
- function Ec(s) {
6493
+ function El(s) {
6489
6494
  return new Et(s.offset(), s.length());
6490
6495
  }
6491
- function Oc(s) {
6496
+ function Ol(s) {
6492
6497
  return new $t(s.length(), s.nullCount());
6493
6498
  }
6494
- function Ac(s) {
6499
+ function Al(s) {
6495
6500
  const t = [];
6496
6501
  for (let e, n = -1, r = -1, i = s.nodesLength(); ++n < i; )
6497
6502
  (e = s.nodes(n)) && (t[++r] = $t.decode(e));
6498
6503
  return t;
6499
6504
  }
6500
- function Rc(s, t) {
6505
+ function Rl(s, t) {
6501
6506
  const e = [];
6502
6507
  for (let n, r = -1, i = -1, o = s.buffersLength(); ++r < o; )
6503
6508
  (n = s.buffers(r)) && (t < Y.V4 && (n.bb_pos += 8 * (r + 1)), e[++i] = Et.decode(n));
6504
6509
  return e;
6505
6510
  }
6506
- function Dc(s, t) {
6511
+ function Dl(s, t) {
6507
6512
  const e = [];
6508
6513
  for (let n, r = -1, i = -1, o = s.fieldsLength(); ++r < o; )
6509
6514
  (n = s.fields(r)) && (e[++i] = V.decode(n, t));
6510
6515
  return e;
6511
6516
  }
6512
- function hr(s, t) {
6517
+ function dr(s, t) {
6513
6518
  const e = [];
6514
6519
  for (let n, r = -1, i = -1, o = s.childrenLength(); ++r < o; )
6515
6520
  (n = s.children(r)) && (e[++i] = V.decode(n, t));
6516
6521
  return e;
6517
6522
  }
6518
- function Bc(s, t) {
6523
+ function Bl(s, t) {
6519
6524
  let e, n, r, i, o, a;
6520
- return !t || !(a = s.dictionary()) ? (r = pr(s, hr(s, t)), n = new V(s.name(), r, s.nullable(), ns(s))) : t.has(e = P(a.id())) ? (i = (i = a.indexType()) ? dr(i) : new xe(), o = new _e(t.get(e), i, e, a.isOrdered()), n = new V(s.name(), o, s.nullable(), ns(s))) : (i = (i = a.indexType()) ? dr(i) : new xe(), t.set(e, r = pr(s, hr(s, t))), o = new _e(r, i, e, a.isOrdered()), n = new V(s.name(), o, s.nullable(), ns(s))), n || null;
6525
+ return !t || !(a = s.dictionary()) ? (r = pr(s, dr(s, t)), n = new V(s.name(), r, s.nullable(), ns(s))) : t.has(e = P(a.id())) ? (i = (i = a.indexType()) ? hr(i) : new xe(), o = new _e(t.get(e), i, e, a.isOrdered()), n = new V(s.name(), o, s.nullable(), ns(s))) : (i = (i = a.indexType()) ? hr(i) : new xe(), t.set(e, r = pr(s, dr(s, t))), o = new _e(r, i, e, a.isOrdered()), n = new V(s.name(), o, s.nullable(), ns(s))), n || null;
6521
6526
  }
6522
6527
  function ns(s) {
6523
6528
  const t = /* @__PURE__ */ new Map();
@@ -6526,7 +6531,7 @@ function ns(s) {
6526
6531
  (e = s.customMetadata(r)) && (n = e.key()) != null && t.set(n, e.value());
6527
6532
  return t;
6528
6533
  }
6529
- function dr(s) {
6534
+ function hr(s) {
6530
6535
  return new Zt(s.isSigned(), s.bitWidth());
6531
6536
  }
6532
6537
  function pr(s, t) {
@@ -6537,13 +6542,13 @@ function pr(s, t) {
6537
6542
  case k.Null:
6538
6543
  return new Yt();
6539
6544
  case k.Binary:
6540
- return new ls();
6545
+ return new cs();
6541
6546
  case k.LargeBinary:
6542
6547
  return new us();
6543
6548
  case k.Utf8:
6544
- return new hs();
6545
- case k.LargeUtf8:
6546
6549
  return new ds();
6550
+ case k.LargeUtf8:
6551
+ return new hs();
6547
6552
  case k.Bool:
6548
6553
  return new ps();
6549
6554
  case k.List:
@@ -6558,7 +6563,7 @@ function pr(s, t) {
6558
6563
  }
6559
6564
  case k.FloatingPoint: {
6560
6565
  const n = s.type(new wt());
6561
- return new cs(n.precision());
6566
+ return new ls(n.precision());
6562
6567
  }
6563
6568
  case k.Decimal: {
6564
6569
  const n = s.type(new re());
@@ -6573,7 +6578,7 @@ function pr(s, t) {
6573
6578
  return new bs(n.unit(), n.bitWidth());
6574
6579
  }
6575
6580
  case k.Timestamp: {
6576
- const n = s.type(new ht());
6581
+ const n = s.type(new dt());
6577
6582
  return new gs(n.unit(), n.timezone());
6578
6583
  }
6579
6584
  case k.Interval: {
@@ -6603,27 +6608,27 @@ function pr(s, t) {
6603
6608
  }
6604
6609
  throw new Error(`Unrecognized type: "${k[e]}" (${e})`);
6605
6610
  }
6606
- function Nc(s, t) {
6611
+ function Nl(s, t) {
6607
6612
  const e = t.fields.map((i) => V.encode(s, i));
6608
6613
  _t.startFieldsVector(s, e.length);
6609
6614
  const n = _t.createFieldsVector(s, e), r = t.metadata && t.metadata.size > 0 ? _t.createCustomMetadataVector(s, [...t.metadata].map(([i, o]) => {
6610
- const a = s.createString(`${i}`), l = s.createString(`${o}`);
6611
- return G.startKeyValue(s), G.addKey(s, a), G.addValue(s, l), G.endKeyValue(s);
6615
+ const a = s.createString(`${i}`), c = s.createString(`${o}`);
6616
+ return G.startKeyValue(s), G.addKey(s, a), G.addValue(s, c), G.endKeyValue(s);
6612
6617
  })) : -1;
6613
- return _t.startSchema(s), _t.addFields(s, n), _t.addEndianness(s, xc ? me.Little : me.Big), r !== -1 && _t.addCustomMetadata(s, r), _t.endSchema(s);
6618
+ return _t.startSchema(s), _t.addFields(s, n), _t.addEndianness(s, xl ? me.Little : me.Big), r !== -1 && _t.addCustomMetadata(s, r), _t.endSchema(s);
6614
6619
  }
6615
- function Fc(s, t) {
6620
+ function Fl(s, t) {
6616
6621
  let e = -1, n = -1, r = -1;
6617
6622
  const i = t.type;
6618
6623
  let o = t.typeId;
6619
6624
  p.isDictionary(i) ? (o = i.dictionary.typeId, r = Ks.visit(i, s), n = Ks.visit(i.dictionary, s)) : n = Ks.visit(i, s);
6620
- const a = (i.children || []).map((h) => V.encode(s, h)), l = at.createChildrenVector(s, a), u = t.metadata && t.metadata.size > 0 ? at.createCustomMetadataVector(s, [...t.metadata].map(([h, d]) => {
6621
- const j = s.createString(`${h}`), R = s.createString(`${d}`);
6625
+ const a = (i.children || []).map((d) => V.encode(s, d)), c = at.createChildrenVector(s, a), u = t.metadata && t.metadata.size > 0 ? at.createCustomMetadataVector(s, [...t.metadata].map(([d, h]) => {
6626
+ const j = s.createString(`${d}`), R = s.createString(`${h}`);
6622
6627
  return G.startKeyValue(s), G.addKey(s, j), G.addValue(s, R), G.endKeyValue(s);
6623
6628
  })) : -1;
6624
- return t.name && (e = s.createString(t.name)), at.startField(s), at.addType(s, n), at.addTypeType(s, o), at.addChildren(s, l), at.addNullable(s, !!t.nullable), e !== -1 && at.addName(s, e), r !== -1 && at.addDictionary(s, r), u !== -1 && at.addCustomMetadata(s, u), at.endField(s);
6629
+ return t.name && (e = s.createString(t.name)), at.startField(s), at.addType(s, n), at.addTypeType(s, o), at.addChildren(s, c), at.addNullable(s, !!t.nullable), e !== -1 && at.addName(s, e), r !== -1 && at.addDictionary(s, r), u !== -1 && at.addCustomMetadata(s, u), at.endField(s);
6625
6630
  }
6626
- function Lc(s, t) {
6631
+ function Ll(s, t) {
6627
6632
  const e = t.nodes || [], n = t.buffers || [];
6628
6633
  Bt.startNodesVector(s, e.length);
6629
6634
  for (const o of e.slice().reverse())
@@ -6635,17 +6640,17 @@ function Lc(s, t) {
6635
6640
  const i = s.endVector();
6636
6641
  return Bt.startRecordBatch(s), Bt.addLength(s, BigInt(t.length)), Bt.addNodes(s, r), Bt.addBuffers(s, i), Bt.endRecordBatch(s);
6637
6642
  }
6638
- function Uc(s, t) {
6643
+ function Ul(s, t) {
6639
6644
  const e = ot.encode(s, t.data);
6640
6645
  return se.startDictionaryBatch(s), se.addId(s, BigInt(t.id)), se.addIsDelta(s, t.isDelta), se.addData(s, e), se.endDictionaryBatch(s);
6641
6646
  }
6642
- function Mc(s, t) {
6647
+ function Ml(s, t) {
6643
6648
  return Ar.createFieldNode(s, BigInt(t.length), BigInt(t.nullCount));
6644
6649
  }
6645
- function Cc(s, t) {
6650
+ function Cl(s, t) {
6646
6651
  return Or.createBuffer(s, BigInt(t.offset), BigInt(t.length));
6647
6652
  }
6648
- const xc = (() => {
6653
+ const xl = (() => {
6649
6654
  const s = new ArrayBuffer(2);
6650
6655
  return new DataView(s).setInt16(
6651
6656
  0,
@@ -6653,7 +6658,7 @@ const xc = (() => {
6653
6658
  !0
6654
6659
  /* littleEndian */
6655
6660
  ), new Int16Array(s)[0] === 256;
6656
- })(), Fn = (s) => `Expected ${N[s]} Message in stream, but was null or length 0.`, Ln = (s) => `Header pointer of flatbuffer-encoded ${N[s]} Message is null or length 0.`, lo = (s, t) => `Expected to read ${s} metadata bytes, but only read ${t}.`, uo = (s, t) => `Expected to read ${s} bytes for message body, but only read ${t}.`;
6661
+ })(), Fn = (s) => `Expected ${N[s]} Message in stream, but was null or length 0.`, Ln = (s) => `Header pointer of flatbuffer-encoded ${N[s]} Message is null or length 0.`, co = (s, t) => `Expected to read ${s} metadata bytes, but only read ${t}.`, uo = (s, t) => `Expected to read ${s} bytes for message body, but only read ${t}.`;
6657
6662
  class ho {
6658
6663
  constructor(t) {
6659
6664
  this.source = t instanceof Bs ? t : new Bs(t);
@@ -6706,11 +6711,11 @@ class ho {
6706
6711
  if (!e)
6707
6712
  return $;
6708
6713
  if (e.byteLength < t)
6709
- throw new Error(lo(t, e.byteLength));
6714
+ throw new Error(co(t, e.byteLength));
6710
6715
  return { done: !1, value: J.decode(e) };
6711
6716
  }
6712
6717
  }
6713
- class Pc {
6718
+ class Pl {
6714
6719
  constructor(t, e) {
6715
6720
  this.source = t instanceof ve ? t : mr(t) ? new Ns(t, e) : new ve(t);
6716
6721
  }
@@ -6777,12 +6782,12 @@ class Pc {
6777
6782
  if (!e)
6778
6783
  return $;
6779
6784
  if (e.byteLength < t)
6780
- throw new Error(lo(t, e.byteLength));
6785
+ throw new Error(co(t, e.byteLength));
6781
6786
  return { done: !1, value: J.decode(e) };
6782
6787
  });
6783
6788
  }
6784
6789
  }
6785
- class kc extends ho {
6790
+ class kl extends ho {
6786
6791
  constructor(t) {
6787
6792
  super(new Uint8Array(0)), this._schema = !1, this._body = [], this._batchIndex = 0, this._dictionaryIndex = 0, this._json = t instanceof ir ? t : new ir(t);
6788
6793
  }
@@ -6828,17 +6833,17 @@ class kc extends ho {
6828
6833
  return n;
6829
6834
  }
6830
6835
  }
6831
- const ks = 4, hn = "ARROW1", ke = new Uint8Array(hn.length);
6832
- for (let s = 0; s < hn.length; s += 1)
6833
- ke[s] = hn.codePointAt(s);
6836
+ const ks = 4, dn = "ARROW1", ke = new Uint8Array(dn.length);
6837
+ for (let s = 0; s < dn.length; s += 1)
6838
+ ke[s] = dn.codePointAt(s);
6834
6839
  function Un(s, t = 0) {
6835
6840
  for (let e = -1, n = ke.length; ++e < n; )
6836
6841
  if (ke[e] !== s[t + e])
6837
6842
  return !1;
6838
6843
  return !0;
6839
6844
  }
6840
- const We = ke.length, po = We + ks, Vc = We * 2 + ks;
6841
- class dt extends On {
6845
+ const We = ke.length, po = We + ks, Vl = We * 2 + ks;
6846
+ class ht extends On {
6842
6847
  constructor(t) {
6843
6848
  super(), this._impl = t;
6844
6849
  }
@@ -6904,10 +6909,10 @@ class dt extends On {
6904
6909
  return this._impl[Symbol.asyncIterator]();
6905
6910
  }
6906
6911
  toDOMStream() {
6907
- return lt.toDOMStream(this.isSync() ? { [Symbol.iterator]: () => this } : { [Symbol.asyncIterator]: () => this });
6912
+ return ct.toDOMStream(this.isSync() ? { [Symbol.iterator]: () => this } : { [Symbol.asyncIterator]: () => this });
6908
6913
  }
6909
6914
  toNodeStream() {
6910
- return lt.toNodeStream(this.isSync() ? { [Symbol.iterator]: () => this } : { [Symbol.asyncIterator]: () => this }, { objectMode: !0 });
6915
+ return ct.toNodeStream(this.isSync() ? { [Symbol.iterator]: () => this } : { [Symbol.asyncIterator]: () => this }, { objectMode: !0 });
6911
6916
  }
6912
6917
  /** @nocollapse */
6913
6918
  // @ts-ignore
@@ -6920,16 +6925,16 @@ class dt extends On {
6920
6925
  }
6921
6926
  /** @nocollapse */
6922
6927
  static from(t) {
6923
- return t instanceof dt ? t : tn(t) ? Wc(t) : mr(t) ? Kc(t) : Jt(t) ? T(this, void 0, void 0, function* () {
6924
- return yield dt.from(yield t);
6925
- }) : _r(t) || yn(t) || vr(t) || we(t) ? $c(new ve(t)) : Gc(new Bs(t));
6928
+ return t instanceof ht ? t : tn(t) ? Wl(t) : mr(t) ? Kl(t) : Jt(t) ? T(this, void 0, void 0, function* () {
6929
+ return yield ht.from(yield t);
6930
+ }) : _r(t) || yn(t) || vr(t) || we(t) ? $l(new ve(t)) : Gl(new Bs(t));
6926
6931
  }
6927
6932
  /** @nocollapse */
6928
6933
  static readAll(t) {
6929
- return t instanceof dt ? t.isSync() ? fr(t) : yr(t) : tn(t) || ArrayBuffer.isView(t) || Ve(t) || gr(t) ? fr(t) : yr(t);
6934
+ return t instanceof ht ? t.isSync() ? fr(t) : yr(t) : tn(t) || ArrayBuffer.isView(t) || Ve(t) || gr(t) ? fr(t) : yr(t);
6930
6935
  }
6931
6936
  }
6932
- class Fs extends dt {
6937
+ class Fs extends ht {
6933
6938
  constructor(t) {
6934
6939
  super(t), this._impl = t;
6935
6940
  }
@@ -6945,7 +6950,7 @@ class Fs extends dt {
6945
6950
  });
6946
6951
  }
6947
6952
  }
6948
- class Ls extends dt {
6953
+ class Ls extends ht {
6949
6954
  constructor(t) {
6950
6955
  super(t), this._impl = t;
6951
6956
  }
@@ -6954,8 +6959,8 @@ class Ls extends dt {
6954
6959
  var t, e, n, r;
6955
6960
  const i = new Array();
6956
6961
  try {
6957
- for (var o = !0, a = Qt(this), l; l = yield a.next(), t = l.done, !t; o = !0) {
6958
- r = l.value, o = !1;
6962
+ for (var o = !0, a = Qt(this), c; c = yield a.next(), t = c.done, !t; o = !0) {
6963
+ r = c.value, o = !1;
6959
6964
  const u = r;
6960
6965
  i.push(u);
6961
6966
  }
@@ -6983,7 +6988,7 @@ class fo extends Fs {
6983
6988
  super(t), this._impl = t;
6984
6989
  }
6985
6990
  }
6986
- class zc extends Ls {
6991
+ class zl extends Ls {
6987
6992
  constructor(t) {
6988
6993
  super(t), this._impl = t;
6989
6994
  }
@@ -7018,7 +7023,7 @@ class yo {
7018
7023
  return new tt(this.schema, r);
7019
7024
  }
7020
7025
  _loadDictionaryBatch(t, e) {
7021
- const { id: n, isDelta: r } = t, { dictionaries: i, schema: o } = this, a = i.get(n), l = o.dictionaries.get(n), u = this._loadVectors(t.data, e, [l]);
7026
+ const { id: n, isDelta: r } = t, { dictionaries: i, schema: o } = this, a = i.get(n), c = o.dictionaries.get(n), u = this._loadVectors(t.data, e, [c]);
7022
7027
  return (a && r ? a.concat(new F(u)) : new F(u)).memoize();
7023
7028
  }
7024
7029
  _loadVectors(t, e, n) {
@@ -7027,7 +7032,7 @@ class yo {
7027
7032
  }
7028
7033
  class Us extends yo {
7029
7034
  constructor(t, e) {
7030
- super(e), this._reader = tn(t) ? new kc(this._handle = t) : new ho(this._handle = t);
7035
+ super(e), this._reader = tn(t) ? new kl(this._handle = t) : new ho(this._handle = t);
7031
7036
  }
7032
7037
  isSync() {
7033
7038
  return !0;
@@ -7075,7 +7080,7 @@ class Us extends yo {
7075
7080
  }
7076
7081
  class Ms extends yo {
7077
7082
  constructor(t, e) {
7078
- super(e), this._reader = new Pc(this._handle = t);
7083
+ super(e), this._reader = new Pl(this._handle = t);
7079
7084
  }
7080
7085
  isAsync() {
7081
7086
  return !0;
@@ -7200,7 +7205,7 @@ class bo extends Us {
7200
7205
  return null;
7201
7206
  }
7202
7207
  }
7203
- class jc extends Ms {
7208
+ class jl extends Ms {
7204
7209
  get footer() {
7205
7210
  return this._footer;
7206
7211
  }
@@ -7282,19 +7287,19 @@ class jc extends Ms {
7282
7287
  });
7283
7288
  }
7284
7289
  }
7285
- class Yc extends Us {
7290
+ class Yl extends Us {
7286
7291
  constructor(t, e) {
7287
7292
  super(t, e);
7288
7293
  }
7289
7294
  _loadVectors(t, e, n) {
7290
- return new sc(e, t.nodes, t.buffers, this.dictionaries, this.schema.metadataVersion).visitMany(n);
7295
+ return new sl(e, t.nodes, t.buffers, this.dictionaries, this.schema.metadataVersion).visitMany(n);
7291
7296
  }
7292
7297
  }
7293
7298
  function go(s, t) {
7294
7299
  return t && typeof t.autoDestroy == "boolean" ? t.autoDestroy : s.autoDestroy;
7295
7300
  }
7296
7301
  function* fr(s) {
7297
- const t = dt.from(s);
7302
+ const t = ht.from(s);
7298
7303
  try {
7299
7304
  if (!t.open({ autoDestroy: !1 }).closed)
7300
7305
  do
@@ -7306,7 +7311,7 @@ function* fr(s) {
7306
7311
  }
7307
7312
  function yr(s) {
7308
7313
  return Tt(this, arguments, function* () {
7309
- const t = yield E(dt.from(s));
7314
+ const t = yield E(ht.from(s));
7310
7315
  try {
7311
7316
  if (!(yield E(t.open({ autoDestroy: !1 }))).closed)
7312
7317
  do
@@ -7317,27 +7322,27 @@ function yr(s) {
7317
7322
  }
7318
7323
  });
7319
7324
  }
7320
- function Wc(s) {
7321
- return new Fs(new Yc(s));
7325
+ function Wl(s) {
7326
+ return new Fs(new Yl(s));
7322
7327
  }
7323
- function Gc(s) {
7328
+ function Gl(s) {
7324
7329
  const t = s.peek(We + 7 & -8);
7325
- return t && t.byteLength >= 4 ? Un(t) ? new fo(new bo(s.read())) : new Fs(new Us(s)) : new Fs(new Us(function* () {
7326
- }()));
7330
+ return t && t.byteLength >= 4 ? Un(t) ? new fo(new bo(s.read())) : new Fs(new Us(s)) : new Fs(new Us((function* () {
7331
+ })()));
7327
7332
  }
7328
- function $c(s) {
7333
+ function $l(s) {
7329
7334
  return T(this, void 0, void 0, function* () {
7330
7335
  const t = yield s.peek(We + 7 & -8);
7331
- return t && t.byteLength >= 4 ? Un(t) ? new fo(new bo(yield s.read())) : new Ls(new Ms(s)) : new Ls(new Ms(function() {
7336
+ return t && t.byteLength >= 4 ? Un(t) ? new fo(new bo(yield s.read())) : new Ls(new Ms(s)) : new Ls(new Ms((function() {
7332
7337
  return Tt(this, arguments, function* () {
7333
7338
  });
7334
- }()));
7339
+ })()));
7335
7340
  });
7336
7341
  }
7337
- function Kc(s) {
7342
+ function Kl(s) {
7338
7343
  return T(this, void 0, void 0, function* () {
7339
7344
  const { size: t } = yield s.stat(), e = new Ns(s, t);
7340
- return t >= Vc && Un(yield e.readAt(0, We + 7 & -8)) ? new zc(new jc(e)) : new Ls(new Ms(e));
7345
+ return t >= Vl && Un(yield e.readAt(0, We + 7 & -8)) ? new zl(new jl(e)) : new Ls(new Ms(e));
7341
7346
  });
7342
7347
  }
7343
7348
  class z extends O {
@@ -7389,27 +7394,27 @@ function bt(s) {
7389
7394
  const t = s.byteLength + 7 & -8;
7390
7395
  return this.buffers.push(s), this.bufferRegions.push(new Et(this._byteLength, t)), this._byteLength += t, this;
7391
7396
  }
7392
- function Hc(s) {
7397
+ function Hl(s) {
7393
7398
  var t;
7394
7399
  const { type: e, length: n, typeIds: r, valueOffsets: i } = s;
7395
7400
  if (bt.call(this, r), e.mode === H.Sparse)
7396
- return dn.call(this, s);
7401
+ return hn.call(this, s);
7397
7402
  if (e.mode === H.Dense) {
7398
7403
  if (s.offset <= 0)
7399
- return bt.call(this, i), dn.call(this, s);
7404
+ return bt.call(this, i), hn.call(this, s);
7400
7405
  {
7401
- const o = new Int32Array(n), a = /* @__PURE__ */ Object.create(null), l = /* @__PURE__ */ Object.create(null);
7402
- for (let u, h, d = -1; ++d < n; )
7403
- (u = r[d]) !== void 0 && ((h = a[u]) === void 0 && (h = a[u] = i[d]), o[d] = i[d] - h, l[u] = ((t = l[u]) !== null && t !== void 0 ? t : 0) + 1);
7404
- bt.call(this, o), this.visitMany(s.children.map((u, h) => {
7405
- const d = e.typeIds[h], j = a[d], R = l[d];
7406
+ const o = new Int32Array(n), a = /* @__PURE__ */ Object.create(null), c = /* @__PURE__ */ Object.create(null);
7407
+ for (let u, d, h = -1; ++h < n; )
7408
+ (u = r[h]) !== void 0 && ((d = a[u]) === void 0 && (d = a[u] = i[h]), o[h] = i[h] - d, c[u] = ((t = c[u]) !== null && t !== void 0 ? t : 0) + 1);
7409
+ bt.call(this, o), this.visitMany(s.children.map((u, d) => {
7410
+ const h = e.typeIds[d], j = a[h], R = c[h];
7406
7411
  return u.slice(j, Math.min(n, R));
7407
7412
  }));
7408
7413
  }
7409
7414
  }
7410
7415
  return this;
7411
7416
  }
7412
- function qc(s) {
7417
+ function ql(s) {
7413
7418
  let t;
7414
7419
  return s.nullCount >= s.length ? bt.call(this, new Uint8Array(0)) : (t = s.values) instanceof Uint8Array ? bt.call(this, Es(s.offset, s.length, t)) : bt.call(this, Os(s.values));
7415
7420
  }
@@ -7428,10 +7433,10 @@ function Mn(s) {
7428
7433
  }
7429
7434
  return this.visit(s.children[0]);
7430
7435
  }
7431
- function dn(s) {
7436
+ function hn(s) {
7432
7437
  return this.visitMany(s.type.children.map((t, e) => s.children[e]).filter(Boolean))[0];
7433
7438
  }
7434
- z.prototype.visitBool = qc;
7439
+ z.prototype.visitBool = ql;
7435
7440
  z.prototype.visitInt = xt;
7436
7441
  z.prototype.visitFloat = xt;
7437
7442
  z.prototype.visitUtf8 = Vs;
@@ -7444,8 +7449,8 @@ z.prototype.visitTimestamp = xt;
7444
7449
  z.prototype.visitTime = xt;
7445
7450
  z.prototype.visitDecimal = xt;
7446
7451
  z.prototype.visitList = Mn;
7447
- z.prototype.visitStruct = dn;
7448
- z.prototype.visitUnion = Hc;
7452
+ z.prototype.visitStruct = hn;
7453
+ z.prototype.visitUnion = Hl;
7449
7454
  z.prototype.visitInterval = xt;
7450
7455
  z.prototype.visitDuration = xt;
7451
7456
  z.prototype.visitFixedSizeList = Mn;
@@ -7514,8 +7519,8 @@ class mo extends On {
7514
7519
  t instanceof tt ? t instanceof Nn || this._writeRecordBatch(t) : t instanceof q ? this.writeAll(t.batches) : Ve(t) && this.writeAll(t);
7515
7520
  }
7516
7521
  _writeMessage(t, e = 8) {
7517
- const n = e - 1, r = J.encode(t), i = r.byteLength, o = this._writeLegacyIpcFormat ? 4 : 8, a = i + o + n & ~n, l = a - i - o;
7518
- return t.headerType === N.RecordBatch ? this._recordBatchBlocks.push(new Wt(a, t.bodyLength, this._position)) : t.headerType === N.DictionaryBatch && this._dictionaryBlocks.push(new Wt(a, t.bodyLength, this._position)), this._writeLegacyIpcFormat || this._write(Int32Array.of(-1)), this._write(Int32Array.of(a - o)), i > 0 && this._write(r), this._writePadding(l);
7522
+ const n = e - 1, r = J.encode(t), i = r.byteLength, o = this._writeLegacyIpcFormat ? 4 : 8, a = i + o + n & ~n, c = a - i - o;
7523
+ return t.headerType === N.RecordBatch ? this._recordBatchBlocks.push(new Wt(a, t.bodyLength, this._position)) : t.headerType === N.DictionaryBatch && this._dictionaryBlocks.push(new Wt(a, t.bodyLength, this._position)), this._writeLegacyIpcFormat || this._write(Int32Array.of(-1)), this._write(Int32Array.of(a - o)), i > 0 && this._write(r), this._writePadding(c);
7519
7524
  }
7520
7525
  _write(t) {
7521
7526
  if (this._started) {
@@ -7542,8 +7547,8 @@ class mo extends On {
7542
7547
  return this._writeDictionaries(t)._writeMessage(a)._writeBodyBuffers(i);
7543
7548
  }
7544
7549
  _writeDictionaryBatch(t, e, n = !1) {
7545
- const { byteLength: r, nodes: i, bufferRegions: o, buffers: a } = z.assemble(new F([t])), l = new ot(t.length, i, o), u = new Rt(l, e, n), h = J.from(u, r);
7546
- return this._writeMessage(h)._writeBodyBuffers(a);
7550
+ const { byteLength: r, nodes: i, bufferRegions: o, buffers: a } = z.assemble(new F([t])), c = new ot(t.length, i, o), u = new Rt(c, e, n), d = J.from(u, r);
7551
+ return this._writeMessage(d)._writeBodyBuffers(a);
7547
7552
  }
7548
7553
  _writeBodyBuffers(t) {
7549
7554
  let e, n, r;
@@ -7554,12 +7559,12 @@ class mo extends On {
7554
7559
  _writeDictionaries(t) {
7555
7560
  var e, n;
7556
7561
  for (const [r, i] of t.dictionaries) {
7557
- const o = (e = i == null ? void 0 : i.data) !== null && e !== void 0 ? e : [], a = this._seenDictionaries.get(r), l = (n = this._dictionaryDeltaOffsets.get(r)) !== null && n !== void 0 ? n : 0;
7562
+ const o = (e = i == null ? void 0 : i.data) !== null && e !== void 0 ? e : [], a = this._seenDictionaries.get(r), c = (n = this._dictionaryDeltaOffsets.get(r)) !== null && n !== void 0 ? n : 0;
7558
7563
  if (!a || a.data[0] !== o[0])
7559
- for (const [u, h] of o.entries())
7560
- this._writeDictionaryBatch(h, r, u > 0);
7561
- else if (l < o.length)
7562
- for (const u of o.slice(l))
7564
+ for (const [u, d] of o.entries())
7565
+ this._writeDictionaryBatch(d, r, u > 0);
7566
+ else if (c < o.length)
7567
+ for (const u of o.slice(c))
7563
7568
  this._writeDictionaryBatch(u, r, !0);
7564
7569
  this._seenDictionaries.set(r, i), this._dictionaryDeltaOffsets.set(r, o.length);
7565
7570
  }
@@ -7605,11 +7610,11 @@ function Pn(s, t) {
7605
7610
  }
7606
7611
  function kn(s, t) {
7607
7612
  return T(this, void 0, void 0, function* () {
7608
- var e, n, r, i, o, a, l;
7613
+ var e, n, r, i, o, a, c;
7609
7614
  try {
7610
7615
  for (e = !0, n = Qt(t); r = yield n.next(), i = r.done, !i; e = !0) {
7611
- l = r.value, e = !1;
7612
- const u = l;
7616
+ c = r.value, e = !1;
7617
+ const u = c;
7613
7618
  s.write(u);
7614
7619
  }
7615
7620
  } catch (u) {
@@ -7624,18 +7629,18 @@ function kn(s, t) {
7624
7629
  return s.finish();
7625
7630
  });
7626
7631
  }
7627
- function Qc(s, t = "stream") {
7632
+ function Ql(s, t = "stream") {
7628
7633
  return (t === "stream" ? Cn : xn).writeAll(s).toUint8Array(!0);
7629
7634
  }
7630
- var Jc = Object.create, _o = Object.defineProperty, Zc = Object.getOwnPropertyDescriptor, Xc = Object.getOwnPropertyNames, tl = Object.getPrototypeOf, el = Object.prototype.hasOwnProperty, sl = (s, t) => () => (t || s((t = { exports: {} }).exports, t), t.exports), nl = (s, t, e, n) => {
7631
- if (t && typeof t == "object" || typeof t == "function") for (let r of Xc(t)) !el.call(s, r) && r !== e && _o(s, r, { get: () => t[r], enumerable: !(n = Zc(t, r)) || n.enumerable });
7635
+ var Jl = Object.create, _o = Object.defineProperty, Zl = Object.getOwnPropertyDescriptor, Xl = Object.getOwnPropertyNames, tc = Object.getPrototypeOf, ec = Object.prototype.hasOwnProperty, sc = (s, t) => () => (t || s((t = { exports: {} }).exports, t), t.exports), nc = (s, t, e, n) => {
7636
+ if (t && typeof t == "object" || typeof t == "function") for (let r of Xl(t)) !ec.call(s, r) && r !== e && _o(s, r, { get: () => t[r], enumerable: !(n = Zl(t, r)) || n.enumerable });
7632
7637
  return s;
7633
- }, rl = (s, t, e) => (e = s != null ? Jc(tl(s)) : {}, nl(!s || !s.__esModule ? _o(e, "default", { value: s, enumerable: !0 }) : e, s)), il = sl((s, t) => {
7638
+ }, rc = (s, t, e) => (e = s != null ? Jl(tc(s)) : {}, nc(!s || !s.__esModule ? _o(e, "default", { value: s, enumerable: !0 }) : e, s)), ic = sc((s, t) => {
7634
7639
  t.exports = Worker;
7635
- }), ol = ((s) => (s[s.UNDEFINED = 0] = "UNDEFINED", s[s.AUTOMATIC = 1] = "AUTOMATIC", s[s.READ_ONLY = 2] = "READ_ONLY", s[s.READ_WRITE = 3] = "READ_WRITE", s))(ol || {}), al = ((s) => (s[s.IDENTIFIER = 0] = "IDENTIFIER", s[s.NUMERIC_CONSTANT = 1] = "NUMERIC_CONSTANT", s[s.STRING_CONSTANT = 2] = "STRING_CONSTANT", s[s.OPERATOR = 3] = "OPERATOR", s[s.KEYWORD = 4] = "KEYWORD", s[s.COMMENT = 5] = "COMMENT", s))(al || {}), cl = ((s) => (s[s.NONE = 0] = "NONE", s[s.DEBUG = 1] = "DEBUG", s[s.INFO = 2] = "INFO", s[s.WARNING = 3] = "WARNING", s[s.ERROR = 4] = "ERROR", s))(cl || {}), ll = ((s) => (s[s.NONE = 0] = "NONE", s[s.CONNECT = 1] = "CONNECT", s[s.DISCONNECT = 2] = "DISCONNECT", s[s.OPEN = 3] = "OPEN", s[s.QUERY = 4] = "QUERY", s[s.INSTANTIATE = 5] = "INSTANTIATE", s))(ll || {}), ul = ((s) => (s[s.NONE = 0] = "NONE", s[s.OK = 1] = "OK", s[s.ERROR = 2] = "ERROR", s[s.START = 3] = "START", s[s.RUN = 4] = "RUN", s[s.CAPTURE = 5] = "CAPTURE", s))(ul || {}), hl = ((s) => (s[s.NONE = 0] = "NONE", s[s.WEB_WORKER = 1] = "WEB_WORKER", s[s.NODE_WORKER = 2] = "NODE_WORKER", s[s.BINDINGS = 3] = "BINDINGS", s[s.ASYNC_DUCKDB = 4] = "ASYNC_DUCKDB", s))(hl || {}), Rl = class {
7640
+ }), oc = ((s) => (s[s.UNDEFINED = 0] = "UNDEFINED", s[s.AUTOMATIC = 1] = "AUTOMATIC", s[s.READ_ONLY = 2] = "READ_ONLY", s[s.READ_WRITE = 3] = "READ_WRITE", s))(oc || {}), ac = ((s) => (s[s.IDENTIFIER = 0] = "IDENTIFIER", s[s.NUMERIC_CONSTANT = 1] = "NUMERIC_CONSTANT", s[s.STRING_CONSTANT = 2] = "STRING_CONSTANT", s[s.OPERATOR = 3] = "OPERATOR", s[s.KEYWORD = 4] = "KEYWORD", s[s.COMMENT = 5] = "COMMENT", s))(ac || {}), lc = ((s) => (s[s.NONE = 0] = "NONE", s[s.DEBUG = 1] = "DEBUG", s[s.INFO = 2] = "INFO", s[s.WARNING = 3] = "WARNING", s[s.ERROR = 4] = "ERROR", s))(lc || {}), cc = ((s) => (s[s.NONE = 0] = "NONE", s[s.CONNECT = 1] = "CONNECT", s[s.DISCONNECT = 2] = "DISCONNECT", s[s.OPEN = 3] = "OPEN", s[s.QUERY = 4] = "QUERY", s[s.INSTANTIATE = 5] = "INSTANTIATE", s))(cc || {}), uc = ((s) => (s[s.NONE = 0] = "NONE", s[s.OK = 1] = "OK", s[s.ERROR = 2] = "ERROR", s[s.START = 3] = "START", s[s.RUN = 4] = "RUN", s[s.CAPTURE = 5] = "CAPTURE", s))(uc || {}), dc = ((s) => (s[s.NONE = 0] = "NONE", s[s.WEB_WORKER = 1] = "WEB_WORKER", s[s.NODE_WORKER = 2] = "NODE_WORKER", s[s.BINDINGS = 3] = "BINDINGS", s[s.ASYNC_DUCKDB = 4] = "ASYNC_DUCKDB", s))(dc || {}), Rc = class {
7636
7641
  log(s) {
7637
7642
  }
7638
- }, Dl = class {
7643
+ }, Dc = class {
7639
7644
  constructor(s = 2) {
7640
7645
  this.level = s;
7641
7646
  }
@@ -7643,7 +7648,7 @@ var Jc = Object.create, _o = Object.defineProperty, Zc = Object.getOwnPropertyDe
7643
7648
  s.level >= this.level && console.log(s);
7644
7649
  }
7645
7650
  };
7646
- function Bl(s) {
7651
+ function Bc(s) {
7647
7652
  switch (s) {
7648
7653
  case 0:
7649
7654
  return "NONE";
@@ -7659,7 +7664,7 @@ function Bl(s) {
7659
7664
  return "?";
7660
7665
  }
7661
7666
  }
7662
- function Nl(s) {
7667
+ function Nc(s) {
7663
7668
  switch (s) {
7664
7669
  case 0:
7665
7670
  return "NONE";
@@ -7677,7 +7682,7 @@ function Nl(s) {
7677
7682
  return "?";
7678
7683
  }
7679
7684
  }
7680
- function Fl(s) {
7685
+ function Fc(s) {
7681
7686
  switch (s) {
7682
7687
  case 1:
7683
7688
  return "CONNECT";
@@ -7693,7 +7698,7 @@ function Fl(s) {
7693
7698
  return "?";
7694
7699
  }
7695
7700
  }
7696
- function Ll(s) {
7701
+ function Lc(s) {
7697
7702
  switch (s) {
7698
7703
  case 0:
7699
7704
  return "NONE";
@@ -7709,7 +7714,7 @@ function Ll(s) {
7709
7714
  return "?";
7710
7715
  }
7711
7716
  }
7712
- var dl = ((s) => (s[s.SUCCESS = 0] = "SUCCESS", s))(dl || {}), pl = class {
7717
+ var hc = ((s) => (s[s.SUCCESS = 0] = "SUCCESS", s))(hc || {}), pc = class {
7713
7718
  constructor(s, t) {
7714
7719
  this._bindings = s, this._conn = t;
7715
7720
  }
@@ -7724,14 +7729,14 @@ var dl = ((s) => (s[s.SUCCESS = 0] = "SUCCESS", s))(dl || {}), pl = class {
7724
7729
  }
7725
7730
  async query(s) {
7726
7731
  this._bindings.logger.log({ timestamp: /* @__PURE__ */ new Date(), level: 2, origin: 4, topic: 4, event: 4, value: s });
7727
- let t = await this._bindings.runQuery(this._conn, s), e = dt.from(t);
7732
+ let t = await this._bindings.runQuery(this._conn, s), e = ht.from(t);
7728
7733
  return console.assert(e.isSync(), "Reader is not sync"), console.assert(e.isFile(), "Reader is not file"), new q(e);
7729
7734
  }
7730
7735
  async send(s, t = !1) {
7731
7736
  this._bindings.logger.log({ timestamp: /* @__PURE__ */ new Date(), level: 2, origin: 4, topic: 4, event: 4, value: s });
7732
7737
  let e = await this._bindings.startPendingQuery(this._conn, s, t);
7733
7738
  for (; e == null; ) e = await this._bindings.pollPendingQuery(this._conn);
7734
- let n = new vo(this._bindings, this._conn, e), r = await dt.from(n);
7739
+ let n = new vo(this._bindings, this._conn, e), r = await ht.from(n);
7735
7740
  return console.assert(r.isAsync()), console.assert(r.isStream()), r;
7736
7741
  }
7737
7742
  async cancelSent() {
@@ -7742,10 +7747,10 @@ var dl = ((s) => (s[s.SUCCESS = 0] = "SUCCESS", s))(dl || {}), pl = class {
7742
7747
  }
7743
7748
  async prepare(s) {
7744
7749
  let t = await this._bindings.createPrepared(this._conn, s);
7745
- return new fl(this._bindings, this._conn, t);
7750
+ return new fc(this._bindings, this._conn, t);
7746
7751
  }
7747
7752
  async insertArrowTable(s, t) {
7748
- let e = Qc(s, "stream");
7753
+ let e = Ql(s, "stream");
7749
7754
  await this.insertArrowFromIPCStream(e, t);
7750
7755
  }
7751
7756
  async insertArrowFromIPCStream(s, t) {
@@ -7770,7 +7775,7 @@ var dl = ((s) => (s[s.SUCCESS = 0] = "SUCCESS", s))(dl || {}), pl = class {
7770
7775
  [Symbol.asyncIterator]() {
7771
7776
  return this;
7772
7777
  }
7773
- }, fl = class {
7778
+ }, fc = class {
7774
7779
  constructor(s, t, e) {
7775
7780
  this.bindings = s, this.connectionId = t, this.statementId = e;
7776
7781
  }
@@ -7778,14 +7783,14 @@ var dl = ((s) => (s[s.SUCCESS = 0] = "SUCCESS", s))(dl || {}), pl = class {
7778
7783
  await this.bindings.closePrepared(this.connectionId, this.statementId);
7779
7784
  }
7780
7785
  async query(...s) {
7781
- let t = await this.bindings.runPrepared(this.connectionId, this.statementId, s), e = dt.from(t);
7786
+ let t = await this.bindings.runPrepared(this.connectionId, this.statementId, s), e = ht.from(t);
7782
7787
  return console.assert(e.isSync()), console.assert(e.isFile()), new q(e);
7783
7788
  }
7784
7789
  async send(...s) {
7785
- let t = await this.bindings.sendPrepared(this.connectionId, this.statementId, s), e = new vo(this.bindings, this.connectionId, t), n = await dt.from(e);
7790
+ let t = await this.bindings.sendPrepared(this.connectionId, this.statementId, s), e = new vo(this.bindings, this.connectionId, t), n = await ht.from(e);
7786
7791
  return console.assert(n.isAsync()), console.assert(n.isStream()), n;
7787
7792
  }
7788
- }, yl = ((s) => (s.CANCEL_PENDING_QUERY = "CANCEL_PENDING_QUERY", s.CLOSE_PREPARED = "CLOSE_PREPARED", s.COLLECT_FILE_STATISTICS = "COLLECT_FILE_STATISTICS", s.REGISTER_OPFS_FILE_NAME = "REGISTER_OPFS_FILE_NAME", s.CONNECT = "CONNECT", s.COPY_FILE_TO_BUFFER = "COPY_FILE_TO_BUFFER", s.COPY_FILE_TO_PATH = "COPY_FILE_TO_PATH", s.CREATE_PREPARED = "CREATE_PREPARED", s.DISCONNECT = "DISCONNECT", s.DROP_FILE = "DROP_FILE", s.DROP_FILES = "DROP_FILES", s.EXPORT_FILE_STATISTICS = "EXPORT_FILE_STATISTICS", s.FETCH_QUERY_RESULTS = "FETCH_QUERY_RESULTS", s.FLUSH_FILES = "FLUSH_FILES", s.GET_FEATURE_FLAGS = "GET_FEATURE_FLAGS", s.GET_TABLE_NAMES = "GET_TABLE_NAMES", s.GET_VERSION = "GET_VERSION", s.GLOB_FILE_INFOS = "GLOB_FILE_INFOS", s.INSERT_ARROW_FROM_IPC_STREAM = "INSERT_ARROW_FROM_IPC_STREAM", s.INSERT_CSV_FROM_PATH = "IMPORT_CSV_FROM_PATH", s.INSERT_JSON_FROM_PATH = "IMPORT_JSON_FROM_PATH", s.INSTANTIATE = "INSTANTIATE", s.OPEN = "OPEN", s.PING = "PING", s.POLL_PENDING_QUERY = "POLL_PENDING_QUERY", s.REGISTER_FILE_BUFFER = "REGISTER_FILE_BUFFER", s.REGISTER_FILE_HANDLE = "REGISTER_FILE_HANDLE", s.REGISTER_FILE_URL = "REGISTER_FILE_URL", s.RESET = "RESET", s.RUN_PREPARED = "RUN_PREPARED", s.RUN_QUERY = "RUN_QUERY", s.SEND_PREPARED = "SEND_PREPARED", s.START_PENDING_QUERY = "START_PENDING_QUERY", s.TOKENIZE = "TOKENIZE", s))(yl || {}), bl = ((s) => (s.CONNECTION_INFO = "CONNECTION_INFO", s.ERROR = "ERROR", s.FEATURE_FLAGS = "FEATURE_FLAGS", s.FILE_BUFFER = "FILE_BUFFER", s.FILE_INFOS = "FILE_INFOS", s.FILE_SIZE = "FILE_SIZE", s.FILE_STATISTICS = "FILE_STATISTICS", s.INSTANTIATE_PROGRESS = "INSTANTIATE_PROGRESS", s.LOG = "LOG", s.PROGRESS_UPDATE = "PROGRESS_UPDATE", s.OK = "OK", s.PREPARED_STATEMENT_ID = "PREPARED_STATEMENT_ID", s.QUERY_PLAN = "QUERY_PLAN", s.QUERY_RESULT = "QUERY_RESULT", s.QUERY_RESULT_CHUNK = "QUERY_RESULT_CHUNK", s.QUERY_RESULT_HEADER = "QUERY_RESULT_HEADER", s.QUERY_RESULT_HEADER_OR_NULL = "QUERY_RESULT_HEADER_OR_NULL", s.REGISTERED_FILE = "REGISTERED_FILE", s.SCRIPT_TOKENS = "SCRIPT_TOKENS", s.SUCCESS = "SUCCESS", s.TABLE_NAMES = "TABLE_NAMES", s.VERSION_STRING = "VERSION_STRING", s))(bl || {}), B = class {
7793
+ }, yc = ((s) => (s.CANCEL_PENDING_QUERY = "CANCEL_PENDING_QUERY", s.CLOSE_PREPARED = "CLOSE_PREPARED", s.COLLECT_FILE_STATISTICS = "COLLECT_FILE_STATISTICS", s.REGISTER_OPFS_FILE_NAME = "REGISTER_OPFS_FILE_NAME", s.CONNECT = "CONNECT", s.COPY_FILE_TO_BUFFER = "COPY_FILE_TO_BUFFER", s.COPY_FILE_TO_PATH = "COPY_FILE_TO_PATH", s.CREATE_PREPARED = "CREATE_PREPARED", s.DISCONNECT = "DISCONNECT", s.DROP_FILE = "DROP_FILE", s.DROP_FILES = "DROP_FILES", s.EXPORT_FILE_STATISTICS = "EXPORT_FILE_STATISTICS", s.FETCH_QUERY_RESULTS = "FETCH_QUERY_RESULTS", s.FLUSH_FILES = "FLUSH_FILES", s.GET_FEATURE_FLAGS = "GET_FEATURE_FLAGS", s.GET_TABLE_NAMES = "GET_TABLE_NAMES", s.GET_VERSION = "GET_VERSION", s.GLOB_FILE_INFOS = "GLOB_FILE_INFOS", s.INSERT_ARROW_FROM_IPC_STREAM = "INSERT_ARROW_FROM_IPC_STREAM", s.INSERT_CSV_FROM_PATH = "IMPORT_CSV_FROM_PATH", s.INSERT_JSON_FROM_PATH = "IMPORT_JSON_FROM_PATH", s.INSTANTIATE = "INSTANTIATE", s.OPEN = "OPEN", s.PING = "PING", s.POLL_PENDING_QUERY = "POLL_PENDING_QUERY", s.REGISTER_FILE_BUFFER = "REGISTER_FILE_BUFFER", s.REGISTER_FILE_HANDLE = "REGISTER_FILE_HANDLE", s.REGISTER_FILE_URL = "REGISTER_FILE_URL", s.RESET = "RESET", s.RUN_PREPARED = "RUN_PREPARED", s.RUN_QUERY = "RUN_QUERY", s.SEND_PREPARED = "SEND_PREPARED", s.START_PENDING_QUERY = "START_PENDING_QUERY", s.TOKENIZE = "TOKENIZE", s))(yc || {}), bc = ((s) => (s.CONNECTION_INFO = "CONNECTION_INFO", s.ERROR = "ERROR", s.FEATURE_FLAGS = "FEATURE_FLAGS", s.FILE_BUFFER = "FILE_BUFFER", s.FILE_INFOS = "FILE_INFOS", s.FILE_SIZE = "FILE_SIZE", s.FILE_STATISTICS = "FILE_STATISTICS", s.INSTANTIATE_PROGRESS = "INSTANTIATE_PROGRESS", s.LOG = "LOG", s.PROGRESS_UPDATE = "PROGRESS_UPDATE", s.OK = "OK", s.PREPARED_STATEMENT_ID = "PREPARED_STATEMENT_ID", s.QUERY_PLAN = "QUERY_PLAN", s.QUERY_RESULT = "QUERY_RESULT", s.QUERY_RESULT_CHUNK = "QUERY_RESULT_CHUNK", s.QUERY_RESULT_HEADER = "QUERY_RESULT_HEADER", s.QUERY_RESULT_HEADER_OR_NULL = "QUERY_RESULT_HEADER_OR_NULL", s.REGISTERED_FILE = "REGISTERED_FILE", s.SCRIPT_TOKENS = "SCRIPT_TOKENS", s.SUCCESS = "SUCCESS", s.TABLE_NAMES = "TABLE_NAMES", s.VERSION_STRING = "VERSION_STRING", s))(bc || {}), B = class {
7789
7794
  constructor(s, t) {
7790
7795
  this.promiseResolver = () => {
7791
7796
  }, this.promiseRejecter = () => {
@@ -7796,81 +7801,81 @@ var dl = ((s) => (s[s.SUCCESS = 0] = "SUCCESS", s))(dl || {}), pl = class {
7796
7801
  };
7797
7802
  function rs(s) {
7798
7803
  switch (s.typeId) {
7799
- case c.Binary:
7804
+ case l.Binary:
7800
7805
  return { sqlType: "binary" };
7801
- case c.Bool:
7806
+ case l.Bool:
7802
7807
  return { sqlType: "bool" };
7803
- case c.Date:
7808
+ case l.Date:
7804
7809
  return { sqlType: "date" };
7805
- case c.DateDay:
7810
+ case l.DateDay:
7806
7811
  return { sqlType: "date32[d]" };
7807
- case c.DateMillisecond:
7812
+ case l.DateMillisecond:
7808
7813
  return { sqlType: "date64[ms]" };
7809
- case c.Decimal: {
7814
+ case l.Decimal: {
7810
7815
  let t = s;
7811
7816
  return { sqlType: "decimal", precision: t.precision, scale: t.scale };
7812
7817
  }
7813
- case c.Float:
7818
+ case l.Float:
7814
7819
  return { sqlType: "float" };
7815
- case c.Float16:
7820
+ case l.Float16:
7816
7821
  return { sqlType: "float16" };
7817
- case c.Float32:
7822
+ case l.Float32:
7818
7823
  return { sqlType: "float32" };
7819
- case c.Float64:
7824
+ case l.Float64:
7820
7825
  return { sqlType: "float64" };
7821
- case c.Int:
7826
+ case l.Int:
7822
7827
  return { sqlType: "int32" };
7823
- case c.Int16:
7828
+ case l.Int16:
7824
7829
  return { sqlType: "int16" };
7825
- case c.Int32:
7830
+ case l.Int32:
7826
7831
  return { sqlType: "int32" };
7827
- case c.Int64:
7832
+ case l.Int64:
7828
7833
  return { sqlType: "int64" };
7829
- case c.Uint16:
7834
+ case l.Uint16:
7830
7835
  return { sqlType: "uint16" };
7831
- case c.Uint32:
7836
+ case l.Uint32:
7832
7837
  return { sqlType: "uint32" };
7833
- case c.Uint64:
7838
+ case l.Uint64:
7834
7839
  return { sqlType: "uint64" };
7835
- case c.Uint8:
7840
+ case l.Uint8:
7836
7841
  return { sqlType: "uint8" };
7837
- case c.IntervalDayTime:
7842
+ case l.IntervalDayTime:
7838
7843
  return { sqlType: "interval[dt]" };
7839
- case c.IntervalYearMonth:
7844
+ case l.IntervalYearMonth:
7840
7845
  return { sqlType: "interval[m]" };
7841
- case c.List:
7846
+ case l.List:
7842
7847
  return { sqlType: "list", valueType: rs(s.valueType) };
7843
- case c.FixedSizeBinary:
7848
+ case l.FixedSizeBinary:
7844
7849
  return { sqlType: "fixedsizebinary", byteWidth: s.byteWidth };
7845
- case c.Null:
7850
+ case l.Null:
7846
7851
  return { sqlType: "null" };
7847
- case c.Utf8:
7852
+ case l.Utf8:
7848
7853
  return { sqlType: "utf8" };
7849
- case c.Struct:
7854
+ case l.Struct:
7850
7855
  return { sqlType: "struct", fields: s.children.map((t) => pn(t.name, t.type)) };
7851
- case c.Map: {
7856
+ case l.Map: {
7852
7857
  let t = s;
7853
7858
  return { sqlType: "map", keyType: rs(t.keyType), valueType: rs(t.valueType) };
7854
7859
  }
7855
- case c.Time:
7860
+ case l.Time:
7856
7861
  return { sqlType: "time[s]" };
7857
- case c.TimeMicrosecond:
7862
+ case l.TimeMicrosecond:
7858
7863
  return { sqlType: "time[us]" };
7859
- case c.TimeMillisecond:
7864
+ case l.TimeMillisecond:
7860
7865
  return { sqlType: "time[ms]" };
7861
- case c.TimeNanosecond:
7866
+ case l.TimeNanosecond:
7862
7867
  return { sqlType: "time[ns]" };
7863
- case c.TimeSecond:
7868
+ case l.TimeSecond:
7864
7869
  return { sqlType: "time[s]" };
7865
- case c.Timestamp:
7870
+ case l.Timestamp:
7866
7871
  return { sqlType: "timestamp", timezone: s.timezone || void 0 };
7867
- case c.TimestampSecond:
7872
+ case l.TimestampSecond:
7868
7873
  return { sqlType: "timestamp[s]", timezone: s.timezone || void 0 };
7869
- case c.TimestampMicrosecond:
7874
+ case l.TimestampMicrosecond:
7870
7875
  return { sqlType: "timestamp[us]", timezone: s.timezone || void 0 };
7871
- case c.TimestampNanosecond:
7876
+ case l.TimestampNanosecond:
7872
7877
  return { sqlType: "timestamp[ns]", timezone: s.timezone || void 0 };
7873
- case c.TimestampMillisecond:
7878
+ case l.TimestampMillisecond:
7874
7879
  return { sqlType: "timestamp[ms]", timezone: s.timezone || void 0 };
7875
7880
  }
7876
7881
  throw new Error("unsupported arrow type: ".concat(s.toString()));
@@ -7879,7 +7884,7 @@ function pn(s, t) {
7879
7884
  let e = rs(t);
7880
7885
  return e.name = s, e;
7881
7886
  }
7882
- var gl = new TextEncoder(), Ul = class {
7887
+ var gc = new TextEncoder(), Uc = class {
7883
7888
  constructor(s, t = null) {
7884
7889
  this._onInstantiationProgress = [], this._onExecutionProgress = [], this._worker = null, this._workerShutdownPromise = null, this._workerShutdownResolver = () => {
7885
7890
  }, this._nextMessageId = 0, this._pendingRequests = /* @__PURE__ */ new Map(), this._logger = s, this._onMessageHandler = this.onMessage.bind(this), this._onErrorHandler = this.onError.bind(this), this._onCloseHandler = this.onClose.bind(this), t != null && this.attach(t);
@@ -8116,7 +8121,7 @@ var gl = new TextEncoder(), Ul = class {
8116
8121
  }
8117
8122
  async connect() {
8118
8123
  let s = await this.connectInternal();
8119
- return new pl(this, s);
8124
+ return new pc(this, s);
8120
8125
  }
8121
8126
  async disconnect(s) {
8122
8127
  let t = new B("DISCONNECT", s);
@@ -8167,7 +8172,7 @@ var gl = new TextEncoder(), Ul = class {
8167
8172
  return await this.postTask(t);
8168
8173
  }
8169
8174
  async registerFileText(s, t) {
8170
- let e = gl.encode(t);
8175
+ let e = gc.encode(t);
8171
8176
  await this.registerFileBuffer(s, e);
8172
8177
  }
8173
8178
  async registerFileURL(s, t, e, n) {
@@ -8235,12 +8240,12 @@ var gl = new TextEncoder(), Ul = class {
8235
8240
  await this.postTask(n);
8236
8241
  }
8237
8242
  };
8238
- function ml() {
8243
+ function mc() {
8239
8244
  let s = new TextDecoder();
8240
8245
  return (t) => (typeof SharedArrayBuffer < "u" && t.buffer instanceof SharedArrayBuffer && (t = new Uint8Array(t)), s.decode(t));
8241
8246
  }
8242
- ml();
8243
- var _l = ((s) => (s[s.BUFFER = 0] = "BUFFER", s[s.NODE_FS = 1] = "NODE_FS", s[s.BROWSER_FILEREADER = 2] = "BROWSER_FILEREADER", s[s.BROWSER_FSACCESS = 3] = "BROWSER_FSACCESS", s[s.HTTP = 4] = "HTTP", s[s.S3 = 5] = "S3", s))(_l || {}), Ml = class {
8247
+ mc();
8248
+ var _c = ((s) => (s[s.BUFFER = 0] = "BUFFER", s[s.NODE_FS = 1] = "NODE_FS", s[s.BROWSER_FILEREADER = 2] = "BROWSER_FILEREADER", s[s.BROWSER_FSACCESS = 3] = "BROWSER_FSACCESS", s[s.HTTP = 4] = "HTTP", s[s.S3 = 5] = "S3", s))(_c || {}), Mc = class {
8244
8249
  constructor() {
8245
8250
  this._bindings = null, this._nextMessageId = 0;
8246
8251
  }
@@ -8407,67 +8412,67 @@ var _l = ((s) => (s[s.BUFFER = 0] = "BUFFER", s[s.NODE_FS = 1] = "NODE_FS", s[s.
8407
8412
  return console.log(t), this.failWith(s, t);
8408
8413
  }
8409
8414
  }
8410
- }, vl = async () => WebAssembly.validate(new Uint8Array([0, 97, 115, 109, 1, 0, 0, 0, 1, 4, 1, 96, 0, 0, 3, 2, 1, 0, 5, 3, 1, 0, 1, 10, 14, 1, 12, 0, 65, 0, 65, 0, 65, 0, 252, 10, 0, 0, 11])), Il = async () => WebAssembly.validate(new Uint8Array([0, 97, 115, 109, 1, 0, 0, 0, 1, 4, 1, 96, 0, 0, 3, 2, 1, 0, 10, 8, 1, 6, 0, 6, 64, 25, 11, 11])), wl = async () => WebAssembly.validate(new Uint8Array([0, 97, 115, 109, 1, 0, 0, 0, 1, 5, 1, 96, 0, 1, 123, 3, 2, 1, 0, 10, 10, 1, 8, 0, 65, 0, 253, 15, 253, 98, 11])), Sl = () => (async (s) => {
8415
+ }, vc = async () => WebAssembly.validate(new Uint8Array([0, 97, 115, 109, 1, 0, 0, 0, 1, 4, 1, 96, 0, 0, 3, 2, 1, 0, 5, 3, 1, 0, 1, 10, 14, 1, 12, 0, 65, 0, 65, 0, 65, 0, 252, 10, 0, 0, 11])), Ic = async () => WebAssembly.validate(new Uint8Array([0, 97, 115, 109, 1, 0, 0, 0, 1, 4, 1, 96, 0, 0, 3, 2, 1, 0, 10, 8, 1, 6, 0, 6, 64, 25, 11, 11])), wc = async () => WebAssembly.validate(new Uint8Array([0, 97, 115, 109, 1, 0, 0, 0, 1, 5, 1, 96, 0, 1, 123, 3, 2, 1, 0, 10, 10, 1, 8, 0, 65, 0, 253, 15, 253, 98, 11])), Sc = () => (async (s) => {
8411
8416
  try {
8412
8417
  return typeof MessageChannel < "u" && new MessageChannel().port1.postMessage(new SharedArrayBuffer(1)), WebAssembly.validate(s);
8413
8418
  } catch {
8414
8419
  return !1;
8415
8420
  }
8416
- })(new Uint8Array([0, 97, 115, 109, 1, 0, 0, 0, 1, 4, 1, 96, 0, 0, 3, 2, 1, 0, 5, 4, 1, 3, 1, 1, 10, 11, 1, 9, 0, 65, 0, 254, 16, 2, 0, 26, 11])), Vn = { name: "@duckdb/duckdb-wasm", version: "1.29.1-dev132.0" }, Tl = Vn.name, El = Vn.version, zn = Vn.version.split("."), Cl = zn[0], xl = zn[1], Pl = zn[2], Io = () => typeof navigator > "u", wo = () => Io() ? "node" : navigator.userAgent, kl = () => wo().includes("Firefox"), Vl = () => /^((?!chrome|android).)*safari/i.test(wo());
8417
- function zl() {
8418
- let s = "https://cdn.jsdelivr.net/npm/".concat(Tl, "@").concat(El, "/dist/");
8421
+ })(new Uint8Array([0, 97, 115, 109, 1, 0, 0, 0, 1, 4, 1, 96, 0, 0, 3, 2, 1, 0, 5, 4, 1, 3, 1, 1, 10, 11, 1, 9, 0, 65, 0, 254, 16, 2, 0, 26, 11])), Vn = { name: "@duckdb/duckdb-wasm", version: "1.29.1-dev132.0" }, Tc = Vn.name, Ec = Vn.version, zn = Vn.version.split("."), Cc = zn[0], xc = zn[1], Pc = zn[2], Io = () => typeof navigator > "u", wo = () => Io() ? "node" : navigator.userAgent, kc = () => wo().includes("Firefox"), Vc = () => /^((?!chrome|android).)*safari/i.test(wo());
8422
+ function zc() {
8423
+ let s = "https://cdn.jsdelivr.net/npm/".concat(Tc, "@").concat(Ec, "/dist/");
8419
8424
  return { mvp: { mainModule: "".concat(s, "duckdb-mvp.wasm"), mainWorker: "".concat(s, "duckdb-browser-mvp.worker.js") }, eh: { mainModule: "".concat(s, "duckdb-eh.wasm"), mainWorker: "".concat(s, "duckdb-browser-eh.worker.js") } };
8420
8425
  }
8421
8426
  var Hs = null, qs = null, Qs = null, Js = null, Zs = null;
8422
- async function Ol() {
8423
- return Hs == null && (Hs = typeof BigInt64Array < "u"), qs == null && (qs = await Il()), Qs == null && (Qs = await Sl()), Js == null && (Js = await wl()), Zs == null && (Zs = await vl()), { bigInt64Array: Hs, crossOriginIsolated: Io() || globalThis.crossOriginIsolated || !1, wasmExceptions: qs, wasmSIMD: Js, wasmThreads: Qs, wasmBulkMemory: Zs };
8427
+ async function Oc() {
8428
+ return Hs == null && (Hs = typeof BigInt64Array < "u"), qs == null && (qs = await Ic()), Qs == null && (Qs = await Sc()), Js == null && (Js = await wc()), Zs == null && (Zs = await vc()), { bigInt64Array: Hs, crossOriginIsolated: Io() || globalThis.crossOriginIsolated || !1, wasmExceptions: qs, wasmSIMD: Js, wasmThreads: Qs, wasmBulkMemory: Zs };
8424
8429
  }
8425
- async function jl(s) {
8426
- let t = await Ol();
8430
+ async function jc(s) {
8431
+ let t = await Oc();
8427
8432
  if (t.wasmExceptions) {
8428
8433
  if (t.wasmSIMD && t.wasmThreads && t.crossOriginIsolated && s.coi) return { mainModule: s.coi.mainModule, mainWorker: s.coi.mainWorker, pthreadWorker: s.coi.pthreadWorker };
8429
8434
  if (s.eh) return { mainModule: s.eh.mainModule, mainWorker: s.eh.mainWorker, pthreadWorker: null };
8430
8435
  }
8431
8436
  return { mainModule: s.mvp.mainModule, mainWorker: s.mvp.mainWorker, pthreadWorker: null };
8432
8437
  }
8433
- var Al = rl(il());
8434
- async function Yl(s) {
8438
+ var Ac = rc(ic());
8439
+ async function Yc(s) {
8435
8440
  let t = new Request(s), e = await fetch(t), n = URL.createObjectURL(await e.blob());
8436
- return new Al.default(n);
8441
+ return new Ac.default(n);
8437
8442
  }
8438
8443
  export {
8439
- Ul as AsyncDuckDB,
8440
- pl as AsyncDuckDBConnection,
8441
- Ml as AsyncDuckDBDispatcher,
8442
- fl as AsyncPreparedStatement,
8444
+ Uc as AsyncDuckDB,
8445
+ pc as AsyncDuckDBConnection,
8446
+ Mc as AsyncDuckDBDispatcher,
8447
+ fc as AsyncPreparedStatement,
8443
8448
  vo as AsyncResultStreamIterator,
8444
- Dl as ConsoleLogger,
8445
- ol as DuckDBAccessMode,
8446
- _l as DuckDBDataProtocol,
8447
- ul as LogEvent,
8448
- cl as LogLevel,
8449
- hl as LogOrigin,
8450
- ll as LogTopic,
8451
- Tl as PACKAGE_NAME,
8452
- El as PACKAGE_VERSION,
8453
- Cl as PACKAGE_VERSION_MAJOR,
8454
- xl as PACKAGE_VERSION_MINOR,
8455
- Pl as PACKAGE_VERSION_PATCH,
8456
- dl as StatusCode,
8457
- al as TokenType,
8458
- Rl as VoidLogger,
8459
- yl as WorkerRequestType,
8460
- bl as WorkerResponseType,
8449
+ Dc as ConsoleLogger,
8450
+ oc as DuckDBAccessMode,
8451
+ _c as DuckDBDataProtocol,
8452
+ uc as LogEvent,
8453
+ lc as LogLevel,
8454
+ dc as LogOrigin,
8455
+ cc as LogTopic,
8456
+ Tc as PACKAGE_NAME,
8457
+ Ec as PACKAGE_VERSION,
8458
+ Cc as PACKAGE_VERSION_MAJOR,
8459
+ xc as PACKAGE_VERSION_MINOR,
8460
+ Pc as PACKAGE_VERSION_PATCH,
8461
+ hc as StatusCode,
8462
+ ac as TokenType,
8463
+ Rc as VoidLogger,
8464
+ yc as WorkerRequestType,
8465
+ bc as WorkerResponseType,
8461
8466
  B as WorkerTask,
8462
- Yl as createWorker,
8463
- zl as getJsDelivrBundles,
8464
- Nl as getLogEventLabel,
8465
- Bl as getLogLevelLabel,
8466
- Ll as getLogOriginLabel,
8467
- Fl as getLogTopicLabel,
8468
- Ol as getPlatformFeatures,
8469
- kl as isFirefox,
8467
+ Yc as createWorker,
8468
+ zc as getJsDelivrBundles,
8469
+ Nc as getLogEventLabel,
8470
+ Bc as getLogLevelLabel,
8471
+ Lc as getLogOriginLabel,
8472
+ Fc as getLogTopicLabel,
8473
+ Oc as getPlatformFeatures,
8474
+ kc as isFirefox,
8470
8475
  Io as isNode,
8471
- Vl as isSafari,
8472
- jl as selectBundle
8476
+ Vc as isSafari,
8477
+ jc as selectBundle
8473
8478
  };