@nika-js/onlymap 0.5.3 → 0.5.6

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.
@@ -1,17 +1,18 @@
1
- import { _ as Et, G as y, H as M, J as nt, K as di, O as hi, P as u, Q as Tt, V as E, W as se, X as ht, Y as pt, Z as S, S as H, $ as P, a0 as Gt, F, u as ie, a1 as re, a as ne, L as _s, B as bs, a2 as ps, U as ys, a3 as ms, x as gs, N as oe, M as ws, b as vs, a4 as Bs, a5 as Is, a6 as Ss, a7 as As, a8 as Fs, a9 as Ds, aa as Os, D as Ms, ab as Ls, ac as fe, ad as v, ae as Qe, af as Ns, ag as Rs, ah as xs, ai as _e, aj as Mt, ak as Pt, al as be, am as De, an as G, ao as ui, C as m, ap as Us, aq as Oe, ar as li, as as Ee, R as Ct, at, au as fi, av as Ts, aw as Vs, ax as _i, ay as Xe, az as bi, aA as pi, aB as yi, aC as mi, aD as gi, aE as Me, A as Wt, aF as wi, aG as vi, y as Bi, aH as Ii, aI as Si, aJ as Ai, aK as Fi, aL as Di, aM as Oi, aN as Mi, aO as Li, aP as Ni } from "./recordbatch-Bpc0uxFn.js";
2
- import { aQ as Zr, aR as Qr, z as Xr, aS as tn, l as en, aT as sn, k as rn, aU as nn, aV as on, aW as an, aX as cn, aY as dn, aZ as hn, a_ as un, a$ as ln, b0 as fn, b1 as _n, b2 as bn, b3 as pn, b4 as yn, b5 as mn, b6 as gn, b7 as wn, o as vn, b8 as Bn, n as In, b9 as Sn, m as An, ba as Fn, bb as Dn, v as On, bc as Mn, bd as Ln, t as Nn, be as Rn, w as xn, bf as Un, bg as Tn, bh as Vn, c as zn, bi as En, bj as Pn, bk as jn, I as kn, bl as Cn, bm as Wn, bn as $n, bo as Jn, bp as Hn, bq as Yn, br as Gn, bs as qn, bt as Kn, bu as Zn, bv as Qn, bw as Xn, h as to, bx as eo, i as so, by as io, g as ro, bz as no, j as oo, bA as ao, bB as co, d as ho, bC as uo, e as lo, bD as fo, T as _o, bE as bo, f as po, bF as yo, bG as mo, r as go, bH as wo, q as vo, bI as Bo, p as Io, bJ as So, s as Ao, bK as Fo, bL as Do, bM as Oo, bN as Mo, bO as Lo, bP as No, E as Ro, bQ as xo, bR as Uo, bS as To } from "./recordbatch-Bpc0uxFn.js";
1
+ import { _ as Ut, G as p, H as M, J as rt, K as Xs, O as ti, P as u, Q as Rt, V as P, W as Qt, X as ct, Y as ft, Z as S, S as H, $ as E, a0 as Jt, F as A, u as Xt, a1 as te, a as ee, L as os, B as as, a2 as cs, U as ds, a3 as hs, x as us, N as se, M as ls, b as fs, a4 as _s, a5 as bs, a6 as ys, a7 as ps, a8 as ms, a9 as gs, aa as ws, D as vs, ab as Bs, ac as de, ad as v, ae as He, af as Is, ag as Ss, ah as Ds, ai as he, aj as Dt, ak as Tt, al as ue, am as Be, an as G, ao as ei, C as m, ap as As, aq as Ie, ar as si, as as Ne, R as Et, at as ot, au as ii, av as Os, aw as Fs, ax as ri, ay as Ye, az as ni, aA as oi, aB as ai, aC as ci, aD as di, aE as Se, A as jt, aF as hi, aG as ui, y as li, aH as fi, aI as _i, aJ as bi, aK as yi, aL as pi, aM as mi, aN as gi, aO as wi, aP as vi } from "./recordbatch-Bpc0uxFn.js";
2
+ import { aQ as Cr, aR as Wr, z as $r, aS as Jr, l as Hr, aT as Yr, k as Gr, aU as Kr, aV as qr, aW as Zr, aX as Qr, aY as Xr, aZ as tn, a_ as en, a$ as sn, b0 as rn, b1 as nn, b2 as on, b3 as an, b4 as cn, b5 as dn, b6 as hn, b7 as un, o as ln, b8 as fn, n as _n, b9 as bn, m as yn, ba as pn, bb as mn, v as gn, bc as wn, bd as vn, t as Bn, be as In, w as Sn, bf as Dn, bg as An, bh as On, c as Fn, bi as Mn, bj as Ln, bk as Rn, I as Nn, bl as xn, bm as Un, bn as Tn, bo as Vn, bp as zn, bq as Pn, br as En, bs as jn, bt as kn, bu as Cn, bv as Wn, bw as $n, h as Jn, bx as Hn, i as Yn, by as Gn, g as Kn, bz as qn, j as Zn, bA as Qn, bB as Xn, d as to, bC as eo, e as so, bD as io, T as ro, bE as no, f as oo, bF as ao, bG as co, r as ho, bH as uo, q as lo, bI as fo, p as _o, bJ as bo, s as yo, bK as po, bL as mo, bM as go, bN as wo, bO as vo, bP as Bo, E as Io, bQ as So, bR as Do, bS as Ao } from "./recordbatch-Bpc0uxFn.js";
3
+ import { S as y, B as Vt, a as Ms } from "./builder-CqJZRFaq.js";
3
4
  const V = {
4
5
  fromIterable(i) {
5
- return Zt(Ri(i));
6
+ return Gt(Bi(i));
6
7
  },
7
8
  fromAsyncIterable(i) {
8
- return Zt(xi(i));
9
+ return Gt(Ii(i));
9
10
  },
10
11
  fromDOMStream(i) {
11
- return Zt(Ui(i));
12
+ return Gt(Si(i));
12
13
  },
13
14
  fromNodeStream(i) {
14
- return Zt(Vi(i));
15
+ return Gt(Ai(i));
15
16
  },
16
17
  // @ts-ignore
17
18
  toDOMStream(i, t) {
@@ -21,14 +22,14 @@ const V = {
21
22
  toNodeStream(i, t) {
22
23
  throw new Error('"toNodeStream" not available in this environment');
23
24
  }
24
- }, Zt = (i) => (i.next(), i);
25
- function* Ri(i) {
25
+ }, Gt = (i) => (i.next(), i);
26
+ function* Bi(i) {
26
27
  let t, e = !1, s = [], r, n, o, a = 0;
27
28
  function c() {
28
- return n === "peek" ? nt(s, o)[0] : ([r, s, a] = nt(s, o), r);
29
+ return n === "peek" ? rt(s, o)[0] : ([r, s, a] = rt(s, o), r);
29
30
  }
30
31
  ({ cmd: n, size: o } = (yield null) || { cmd: "read", size: 0 });
31
- const d = hi(i)[Symbol.iterator]();
32
+ const d = ti(i)[Symbol.iterator]();
32
33
  try {
33
34
  do
34
35
  if ({ done: t, value: r } = Number.isNaN(o - a) ? d.next() : d.next(o - a), !t && r.byteLength > 0 && (s.push(r), a += r.byteLength), t || o <= a)
@@ -43,53 +44,53 @@ function* Ri(i) {
43
44
  }
44
45
  return null;
45
46
  }
46
- function xi(i) {
47
- return Et(this, arguments, function* () {
47
+ function Ii(i) {
48
+ return Ut(this, arguments, function* () {
48
49
  let e, s = !1, r = [], n, o, a, c = 0;
49
50
  function d() {
50
- return o === "peek" ? nt(r, a)[0] : ([n, r, c] = nt(r, a), n);
51
+ return o === "peek" ? rt(r, a)[0] : ([n, r, c] = rt(r, a), n);
51
52
  }
52
- ({ cmd: o, size: a } = (yield yield y(null)) || { cmd: "read", size: 0 });
53
- const h = di(i)[Symbol.asyncIterator]();
53
+ ({ cmd: o, size: a } = (yield yield p(null)) || { cmd: "read", size: 0 });
54
+ const h = Xs(i)[Symbol.asyncIterator]();
54
55
  try {
55
56
  do
56
- if ({ done: e, value: n } = Number.isNaN(a - c) ? yield y(h.next()) : yield y(h.next(a - c)), !e && n.byteLength > 0 && (r.push(n), c += n.byteLength), e || a <= c)
57
+ if ({ done: e, value: n } = Number.isNaN(a - c) ? yield p(h.next()) : yield p(h.next(a - c)), !e && n.byteLength > 0 && (r.push(n), c += n.byteLength), e || a <= c)
57
58
  do
58
- ({ cmd: o, size: a } = yield yield y(d()));
59
+ ({ cmd: o, size: a } = yield yield p(d()));
59
60
  while (a < c);
60
61
  while (!e);
61
62
  } catch (f) {
62
- s = !0, typeof h.throw == "function" && (yield y(h.throw(f)));
63
+ s = !0, typeof h.throw == "function" && (yield p(h.throw(f)));
63
64
  } finally {
64
- s === !1 && typeof h.return == "function" && (yield y(h.return(new Uint8Array(0))));
65
+ s === !1 && typeof h.return == "function" && (yield p(h.return(new Uint8Array(0))));
65
66
  }
66
- return yield y(null);
67
+ return yield p(null);
67
68
  });
68
69
  }
69
- function Ui(i) {
70
- return Et(this, arguments, function* () {
70
+ function Si(i) {
71
+ return Ut(this, arguments, function* () {
71
72
  let e = !1, s = !1, r = [], n, o, a, c = 0;
72
73
  function d() {
73
- return o === "peek" ? nt(r, a)[0] : ([n, r, c] = nt(r, a), n);
74
+ return o === "peek" ? rt(r, a)[0] : ([n, r, c] = rt(r, a), n);
74
75
  }
75
- ({ cmd: o, size: a } = (yield yield y(null)) || { cmd: "read", size: 0 });
76
- const h = new Ti(i);
76
+ ({ cmd: o, size: a } = (yield yield p(null)) || { cmd: "read", size: 0 });
77
+ const h = new Di(i);
77
78
  try {
78
79
  do
79
- if ({ done: e, value: n } = Number.isNaN(a - c) ? yield y(h.read()) : yield y(h.read(a - c)), !e && n.byteLength > 0 && (r.push(M(n)), c += n.byteLength), e || a <= c)
80
+ if ({ done: e, value: n } = Number.isNaN(a - c) ? yield p(h.read()) : yield p(h.read(a - c)), !e && n.byteLength > 0 && (r.push(M(n)), c += n.byteLength), e || a <= c)
80
81
  do
81
- ({ cmd: o, size: a } = yield yield y(d()));
82
+ ({ cmd: o, size: a } = yield yield p(d()));
82
83
  while (a < c);
83
84
  while (!e);
84
85
  } catch (f) {
85
- s = !0, yield y(h.cancel(f));
86
+ s = !0, yield p(h.cancel(f));
86
87
  } finally {
87
- s === !1 ? yield y(h.cancel()) : i.locked && h.releaseLock();
88
+ s === !1 ? yield p(h.cancel()) : i.locked && h.releaseLock();
88
89
  }
89
- return yield y(null);
90
+ return yield p(null);
90
91
  });
91
92
  }
92
- class Ti {
93
+ class Di {
93
94
  constructor(t) {
94
95
  this.source = t, this.reader = null, this.reader = this.source.getReader(), this.reader.closed.catch(() => {
95
96
  });
@@ -117,633 +118,59 @@ class Ti {
117
118
  });
118
119
  }
119
120
  }
120
- const Ie = (i, t) => {
121
+ const ge = (i, t) => {
121
122
  const e = (r) => s([t, r]);
122
123
  let s;
123
124
  return [t, e, new Promise((r) => (s = r) && i.once(t, e))];
124
125
  };
125
- function Vi(i) {
126
- return Et(this, arguments, function* () {
126
+ function Ai(i) {
127
+ return Ut(this, arguments, function* () {
127
128
  const e = [];
128
129
  let s = "error", r = !1, n = null, o, a, c = 0, d = [], h;
129
130
  function f() {
130
- return o === "peek" ? nt(d, a)[0] : ([h, d, c] = nt(d, a), h);
131
+ return o === "peek" ? rt(d, a)[0] : ([h, d, c] = rt(d, a), h);
131
132
  }
132
- if ({ cmd: o, size: a } = (yield yield y(null)) || { cmd: "read", size: 0 }, i.isTTY)
133
- return yield yield y(new Uint8Array(0)), yield y(null);
133
+ if ({ cmd: o, size: a } = (yield yield p(null)) || { cmd: "read", size: 0 }, i.isTTY)
134
+ return yield yield p(new Uint8Array(0)), yield p(null);
134
135
  try {
135
- e[0] = Ie(i, "end"), e[1] = Ie(i, "error");
136
+ e[0] = ge(i, "end"), e[1] = ge(i, "error");
136
137
  do {
137
- if (e[2] = Ie(i, "readable"), [s, n] = yield y(Promise.race(e.map((j) => j[2]))), s === "error")
138
+ if (e[2] = ge(i, "readable"), [s, n] = yield p(Promise.race(e.map((j) => j[2]))), s === "error")
138
139
  break;
139
140
  if ((r = s === "end") || (Number.isFinite(a - c) ? (h = M(i.read(a - c)), h.byteLength < a - c && (h = M(i.read()))) : h = M(i.read()), h.byteLength > 0 && (d.push(h), c += h.byteLength)), r || a <= c)
140
141
  do
141
- ({ cmd: o, size: a } = yield yield y(f()));
142
+ ({ cmd: o, size: a } = yield yield p(f()));
142
143
  while (a < c);
143
144
  } while (!r);
144
145
  } finally {
145
- yield y(N(e, s === "error" ? n : null));
146
+ yield p(R(e, s === "error" ? n : null));
146
147
  }
147
- return yield y(null);
148
- function N(j, lt) {
149
- return h = d = null, new Promise((Kt, ai) => {
150
- for (const [Nt, ci] of j)
151
- i.off(Nt, ci);
148
+ return yield p(null);
149
+ function R(j, ht) {
150
+ return h = d = null, new Promise((Yt, Zs) => {
151
+ for (const [Ot, Qs] of j)
152
+ i.off(Ot, Qs);
152
153
  try {
153
- const Nt = i.destroy;
154
- Nt && Nt.call(i, lt), lt = void 0;
155
- } catch (Nt) {
156
- lt = Nt || lt;
154
+ const Ot = i.destroy;
155
+ Ot && Ot.call(i, ht), ht = void 0;
156
+ } catch (Ot) {
157
+ ht = Ot || ht;
157
158
  } finally {
158
- lt != null ? ai(lt) : Kt();
159
+ ht != null ? Zs(ht) : Yt();
159
160
  }
160
161
  });
161
162
  }
162
163
  });
163
164
  }
164
- const Se = 2, Z = 4, ct = 4, p = 4, bt = new Int32Array(2), ts = new Float32Array(bt.buffer), es = new Float64Array(bt.buffer), Qt = new Uint16Array(new Uint8Array([1, 0]).buffer)[0] === 1;
165
- var Le;
166
- (function(i) {
167
- i[i.UTF8_BYTES = 1] = "UTF8_BYTES", i[i.UTF16_STRING = 2] = "UTF16_STRING";
168
- })(Le || (Le = {}));
169
- let yt = class zs {
170
- /**
171
- * Create a new ByteBuffer with a given array of bytes (`Uint8Array`)
172
- */
173
- constructor(t) {
174
- this.bytes_ = t, this.position_ = 0, this.text_decoder_ = new TextDecoder();
175
- }
176
- /**
177
- * Create and allocate a new ByteBuffer with a given size.
178
- */
179
- static allocate(t) {
180
- return new zs(new Uint8Array(t));
181
- }
182
- clear() {
183
- this.position_ = 0;
184
- }
185
- /**
186
- * Get the underlying `Uint8Array`.
187
- */
188
- bytes() {
189
- return this.bytes_;
190
- }
191
- /**
192
- * Get the buffer's position.
193
- */
194
- position() {
195
- return this.position_;
196
- }
197
- /**
198
- * Set the buffer's position.
199
- */
200
- setPosition(t) {
201
- this.position_ = t;
202
- }
203
- /**
204
- * Get the buffer's capacity.
205
- */
206
- capacity() {
207
- return this.bytes_.length;
208
- }
209
- readInt8(t) {
210
- return this.readUint8(t) << 24 >> 24;
211
- }
212
- readUint8(t) {
213
- return this.bytes_[t];
214
- }
215
- readInt16(t) {
216
- return this.readUint16(t) << 16 >> 16;
217
- }
218
- readUint16(t) {
219
- return this.bytes_[t] | this.bytes_[t + 1] << 8;
220
- }
221
- readInt32(t) {
222
- return this.bytes_[t] | this.bytes_[t + 1] << 8 | this.bytes_[t + 2] << 16 | this.bytes_[t + 3] << 24;
223
- }
224
- readUint32(t) {
225
- return this.readInt32(t) >>> 0;
226
- }
227
- readInt64(t) {
228
- return BigInt.asIntN(64, BigInt(this.readUint32(t)) + (BigInt(this.readUint32(t + 4)) << BigInt(32)));
229
- }
230
- readUint64(t) {
231
- return BigInt.asUintN(64, BigInt(this.readUint32(t)) + (BigInt(this.readUint32(t + 4)) << BigInt(32)));
232
- }
233
- readFloat32(t) {
234
- return bt[0] = this.readInt32(t), ts[0];
235
- }
236
- readFloat64(t) {
237
- return bt[Qt ? 0 : 1] = this.readInt32(t), bt[Qt ? 1 : 0] = this.readInt32(t + 4), es[0];
238
- }
239
- writeInt8(t, e) {
240
- this.bytes_[t] = e;
241
- }
242
- writeUint8(t, e) {
243
- this.bytes_[t] = e;
244
- }
245
- writeInt16(t, e) {
246
- this.bytes_[t] = e, this.bytes_[t + 1] = e >> 8;
247
- }
248
- writeUint16(t, e) {
249
- this.bytes_[t] = e, this.bytes_[t + 1] = e >> 8;
250
- }
251
- writeInt32(t, e) {
252
- this.bytes_[t] = e, this.bytes_[t + 1] = e >> 8, this.bytes_[t + 2] = e >> 16, this.bytes_[t + 3] = e >> 24;
253
- }
254
- writeUint32(t, e) {
255
- this.bytes_[t] = e, this.bytes_[t + 1] = e >> 8, this.bytes_[t + 2] = e >> 16, this.bytes_[t + 3] = e >> 24;
256
- }
257
- writeInt64(t, e) {
258
- this.writeInt32(t, Number(BigInt.asIntN(32, e))), this.writeInt32(t + 4, Number(BigInt.asIntN(32, e >> BigInt(32))));
259
- }
260
- writeUint64(t, e) {
261
- this.writeUint32(t, Number(BigInt.asUintN(32, e))), this.writeUint32(t + 4, Number(BigInt.asUintN(32, e >> BigInt(32))));
262
- }
263
- writeFloat32(t, e) {
264
- ts[0] = e, this.writeInt32(t, bt[0]);
265
- }
266
- writeFloat64(t, e) {
267
- es[0] = e, this.writeInt32(t, bt[Qt ? 0 : 1]), this.writeInt32(t + 4, bt[Qt ? 1 : 0]);
268
- }
269
- /**
270
- * Return the file identifier. Behavior is undefined for FlatBuffers whose
271
- * schema does not include a file_identifier (likely points at padding or the
272
- * start of a the root vtable).
273
- */
274
- getBufferIdentifier() {
275
- if (this.bytes_.length < this.position_ + Z + ct)
276
- throw new Error("FlatBuffers: ByteBuffer is too short to contain an identifier.");
277
- let t = "";
278
- for (let e = 0; e < ct; e++)
279
- t += String.fromCharCode(this.readInt8(this.position_ + Z + e));
280
- return t;
281
- }
282
- /**
283
- * Look up a field in the vtable, return an offset into the object, or 0 if the
284
- * field is not present.
285
- */
286
- __offset(t, e) {
287
- const s = t - this.readInt32(t);
288
- return e < this.readInt16(s) ? this.readInt16(s + e) : 0;
289
- }
290
- /**
291
- * Initialize any Table-derived type to point to the union at the given offset.
292
- */
293
- __union(t, e) {
294
- return t.bb_pos = e + this.readInt32(e), t.bb = this, t;
295
- }
296
- /**
297
- * Create a JavaScript string from UTF-8 data stored inside the FlatBuffer.
298
- * This allocates a new string and converts to wide chars upon each access.
299
- *
300
- * To avoid the conversion to string, pass Encoding.UTF8_BYTES as the
301
- * "optionalEncoding" argument. This is useful for avoiding conversion when
302
- * the data will just be packaged back up in another FlatBuffer later on.
303
- *
304
- * @param offset
305
- * @param opt_encoding Defaults to UTF16_STRING
306
- */
307
- __string(t, e) {
308
- t += this.readInt32(t);
309
- const s = this.readInt32(t);
310
- t += Z;
311
- const r = this.bytes_.subarray(t, t + s);
312
- return e === Le.UTF8_BYTES ? r : this.text_decoder_.decode(r);
313
- }
314
- /**
315
- * Handle unions that can contain string as its member, if a Table-derived type then initialize it,
316
- * if a string then return a new one
317
- *
318
- * WARNING: strings are immutable in JS so we can't change the string that the user gave us, this
319
- * makes the behaviour of __union_with_string different compared to __union
320
- */
321
- __union_with_string(t, e) {
322
- return typeof t == "string" ? this.__string(e) : this.__union(t, e);
323
- }
324
- /**
325
- * Retrieve the relative offset stored at "offset"
326
- */
327
- __indirect(t) {
328
- return t + this.readInt32(t);
329
- }
330
- /**
331
- * Get the start of data of a vector whose offset is stored at "offset" in this object.
332
- */
333
- __vector(t) {
334
- return t + this.readInt32(t) + Z;
335
- }
336
- /**
337
- * Get the length of a vector whose offset is stored at "offset" in this object.
338
- */
339
- __vector_len(t) {
340
- return this.readInt32(t + this.readInt32(t));
341
- }
342
- __has_identifier(t) {
343
- if (t.length != ct)
344
- throw new Error("FlatBuffers: file identifier must be length " + ct);
345
- for (let e = 0; e < ct; e++)
346
- if (t.charCodeAt(e) != this.readInt8(this.position() + Z + e))
347
- return !1;
348
- return !0;
349
- }
350
- /**
351
- * A helper function for generating list for obj api
352
- */
353
- createScalarList(t, e) {
354
- const s = [];
355
- for (let r = 0; r < e; ++r) {
356
- const n = t(r);
357
- n !== null && s.push(n);
358
- }
359
- return s;
360
- }
361
- /**
362
- * A helper function for generating list for obj api
363
- * @param listAccessor function that accepts an index and return data at that index
364
- * @param listLength listLength
365
- * @param res result list
366
- */
367
- createObjList(t, e) {
368
- const s = [];
369
- for (let r = 0; r < e; ++r) {
370
- const n = t(r);
371
- n !== null && s.push(n.unpack());
372
- }
373
- return s;
374
- }
375
- }, Es = class Ps {
376
- /**
377
- * Create a FlatBufferBuilder.
378
- */
379
- constructor(t) {
380
- this.minalign = 1, this.vtable = null, this.vtable_in_use = 0, this.isNested = !1, this.object_start = 0, this.vtables = [], this.vector_num_elems = 0, this.force_defaults = !1, this.string_maps = null, this.text_encoder = new TextEncoder();
381
- let e;
382
- t ? e = t : e = 1024, this.bb = yt.allocate(e), this.space = e;
383
- }
384
- clear() {
385
- this.bb.clear(), this.space = this.bb.capacity(), this.minalign = 1, this.vtable = null, this.vtable_in_use = 0, this.isNested = !1, this.object_start = 0, this.vtables = [], this.vector_num_elems = 0, this.force_defaults = !1, this.string_maps = null;
386
- }
387
- /**
388
- * In order to save space, fields that are set to their default value
389
- * don't get serialized into the buffer. Forcing defaults provides a
390
- * way to manually disable this optimization.
391
- *
392
- * @param forceDefaults true always serializes default values
393
- */
394
- forceDefaults(t) {
395
- this.force_defaults = t;
396
- }
397
- /**
398
- * Get the ByteBuffer representing the FlatBuffer. Only call this after you've
399
- * called finish(). The actual data starts at the ByteBuffer's current position,
400
- * not necessarily at 0.
401
- */
402
- dataBuffer() {
403
- return this.bb;
404
- }
405
- /**
406
- * Get the bytes representing the FlatBuffer. Only call this after you've
407
- * called finish().
408
- */
409
- asUint8Array() {
410
- return this.bb.bytes().subarray(this.bb.position(), this.bb.position() + this.offset());
411
- }
412
- /**
413
- * Prepare to write an element of `size` after `additional_bytes` have been
414
- * written, e.g. if you write a string, you need to align such the int length
415
- * field is aligned to 4 bytes, and the string data follows it directly. If all
416
- * you need to do is alignment, `additional_bytes` will be 0.
417
- *
418
- * @param size This is the of the new element to write
419
- * @param additional_bytes The padding size
420
- */
421
- prep(t, e) {
422
- t > this.minalign && (this.minalign = t);
423
- const s = ~(this.bb.capacity() - this.space + e) + 1 & t - 1;
424
- for (; this.space < s + t + e; ) {
425
- const r = this.bb.capacity();
426
- this.bb = Ps.growByteBuffer(this.bb), this.space += this.bb.capacity() - r;
427
- }
428
- this.pad(s);
429
- }
430
- pad(t) {
431
- for (let e = 0; e < t; e++)
432
- this.bb.writeInt8(--this.space, 0);
433
- }
434
- writeInt8(t) {
435
- this.bb.writeInt8(this.space -= 1, t);
436
- }
437
- writeInt16(t) {
438
- this.bb.writeInt16(this.space -= 2, t);
439
- }
440
- writeInt32(t) {
441
- this.bb.writeInt32(this.space -= 4, t);
442
- }
443
- writeInt64(t) {
444
- this.bb.writeInt64(this.space -= 8, t);
445
- }
446
- writeFloat32(t) {
447
- this.bb.writeFloat32(this.space -= 4, t);
448
- }
449
- writeFloat64(t) {
450
- this.bb.writeFloat64(this.space -= 8, t);
451
- }
452
- /**
453
- * Add an `int8` to the buffer, properly aligned, and grows the buffer (if necessary).
454
- * @param value The `int8` to add the buffer.
455
- */
456
- addInt8(t) {
457
- this.prep(1, 0), this.writeInt8(t);
458
- }
459
- /**
460
- * Add an `int16` to the buffer, properly aligned, and grows the buffer (if necessary).
461
- * @param value The `int16` to add the buffer.
462
- */
463
- addInt16(t) {
464
- this.prep(2, 0), this.writeInt16(t);
465
- }
466
- /**
467
- * Add an `int32` to the buffer, properly aligned, and grows the buffer (if necessary).
468
- * @param value The `int32` to add the buffer.
469
- */
470
- addInt32(t) {
471
- this.prep(4, 0), this.writeInt32(t);
472
- }
473
- /**
474
- * Add an `int64` to the buffer, properly aligned, and grows the buffer (if necessary).
475
- * @param value The `int64` to add the buffer.
476
- */
477
- addInt64(t) {
478
- this.prep(8, 0), this.writeInt64(t);
479
- }
480
- /**
481
- * Add a `float32` to the buffer, properly aligned, and grows the buffer (if necessary).
482
- * @param value The `float32` to add the buffer.
483
- */
484
- addFloat32(t) {
485
- this.prep(4, 0), this.writeFloat32(t);
486
- }
487
- /**
488
- * Add a `float64` to the buffer, properly aligned, and grows the buffer (if necessary).
489
- * @param value The `float64` to add the buffer.
490
- */
491
- addFloat64(t) {
492
- this.prep(8, 0), this.writeFloat64(t);
493
- }
494
- addFieldInt8(t, e, s) {
495
- (this.force_defaults || e != s) && (this.addInt8(e), this.slot(t));
496
- }
497
- addFieldInt16(t, e, s) {
498
- (this.force_defaults || e != s) && (this.addInt16(e), this.slot(t));
499
- }
500
- addFieldInt32(t, e, s) {
501
- (this.force_defaults || e != s) && (this.addInt32(e), this.slot(t));
502
- }
503
- addFieldInt64(t, e, s) {
504
- (this.force_defaults || e !== s) && (this.addInt64(e), this.slot(t));
505
- }
506
- addFieldFloat32(t, e, s) {
507
- (this.force_defaults || e != s) && (this.addFloat32(e), this.slot(t));
508
- }
509
- addFieldFloat64(t, e, s) {
510
- (this.force_defaults || e != s) && (this.addFloat64(e), this.slot(t));
511
- }
512
- addFieldOffset(t, e, s) {
513
- (this.force_defaults || e != s) && (this.addOffset(e), this.slot(t));
514
- }
515
- /**
516
- * Structs are stored inline, so nothing additional is being added. `d` is always 0.
517
- */
518
- addFieldStruct(t, e, s) {
519
- e != s && (this.nested(e), this.slot(t));
520
- }
521
- /**
522
- * Structures are always stored inline, they need to be created right
523
- * where they're used. You'll get this assertion failure if you
524
- * created it elsewhere.
525
- */
526
- nested(t) {
527
- if (t != this.offset())
528
- throw new TypeError("FlatBuffers: struct must be serialized inline.");
529
- }
530
- /**
531
- * Should not be creating any other object, string or vector
532
- * while an object is being constructed
533
- */
534
- notNested() {
535
- if (this.isNested)
536
- throw new TypeError("FlatBuffers: object serialization must not be nested.");
537
- }
538
- /**
539
- * Set the current vtable at `voffset` to the current location in the buffer.
540
- */
541
- slot(t) {
542
- this.vtable !== null && (this.vtable[t] = this.offset());
543
- }
544
- /**
545
- * @returns Offset relative to the end of the buffer.
546
- */
547
- offset() {
548
- return this.bb.capacity() - this.space;
549
- }
550
- /**
551
- * Doubles the size of the backing ByteBuffer and copies the old data towards
552
- * the end of the new buffer (since we build the buffer backwards).
553
- *
554
- * @param bb The current buffer with the existing data
555
- * @returns A new byte buffer with the old data copied
556
- * to it. The data is located at the end of the buffer.
557
- *
558
- * uint8Array.set() formally takes {Array<number>|ArrayBufferView}, so to pass
559
- * it a uint8Array we need to suppress the type check:
560
- * @suppress {checkTypes}
561
- */
562
- static growByteBuffer(t) {
563
- const e = t.capacity();
564
- if (e & 3221225472)
565
- throw new Error("FlatBuffers: cannot grow buffer beyond 2 gigabytes.");
566
- const s = e << 1, r = yt.allocate(s);
567
- return r.setPosition(s - e), r.bytes().set(t.bytes(), s - e), r;
568
- }
569
- /**
570
- * Adds on offset, relative to where it will be written.
571
- *
572
- * @param offset The offset to add.
573
- */
574
- addOffset(t) {
575
- this.prep(Z, 0), this.writeInt32(this.offset() - t + Z);
576
- }
577
- /**
578
- * Start encoding a new object in the buffer. Users will not usually need to
579
- * call this directly. The FlatBuffers compiler will generate helper methods
580
- * that call this method internally.
581
- */
582
- startObject(t) {
583
- this.notNested(), this.vtable == null && (this.vtable = []), this.vtable_in_use = t;
584
- for (let e = 0; e < t; e++)
585
- this.vtable[e] = 0;
586
- this.isNested = !0, this.object_start = this.offset();
587
- }
588
- /**
589
- * Finish off writing the object that is under construction.
590
- *
591
- * @returns The offset to the object inside `dataBuffer`
592
- */
593
- endObject() {
594
- if (this.vtable == null || !this.isNested)
595
- throw new Error("FlatBuffers: endObject called without startObject");
596
- this.addInt32(0);
597
- const t = this.offset();
598
- let e = this.vtable_in_use - 1;
599
- for (; e >= 0 && this.vtable[e] == 0; e--)
600
- ;
601
- const s = e + 1;
602
- for (; e >= 0; e--)
603
- this.addInt16(this.vtable[e] != 0 ? t - this.vtable[e] : 0);
604
- const r = 2;
605
- this.addInt16(t - this.object_start);
606
- const n = (s + r) * Se;
607
- this.addInt16(n);
608
- let o = 0;
609
- const a = this.space;
610
- t: for (e = 0; e < this.vtables.length; e++) {
611
- const c = this.bb.capacity() - this.vtables[e];
612
- if (n == this.bb.readInt16(c)) {
613
- for (let d = Se; d < n; d += Se)
614
- if (this.bb.readInt16(a + d) != this.bb.readInt16(c + d))
615
- continue t;
616
- o = this.vtables[e];
617
- break;
618
- }
619
- }
620
- return o ? (this.space = this.bb.capacity() - t, this.bb.writeInt32(this.space, o - t)) : (this.vtables.push(this.offset()), this.bb.writeInt32(this.bb.capacity() - t, this.offset() - t)), this.isNested = !1, t;
621
- }
622
- /**
623
- * Finalize a buffer, poiting to the given `root_table`.
624
- */
625
- finish(t, e, s) {
626
- const r = s ? p : 0;
627
- if (e) {
628
- const n = e;
629
- if (this.prep(this.minalign, Z + ct + r), n.length != ct)
630
- throw new TypeError("FlatBuffers: file identifier must be length " + ct);
631
- for (let o = ct - 1; o >= 0; o--)
632
- this.writeInt8(n.charCodeAt(o));
633
- }
634
- this.prep(this.minalign, Z + r), this.addOffset(t), r && this.addInt32(this.bb.capacity() - this.space), this.bb.setPosition(this.space);
635
- }
636
- /**
637
- * Finalize a size prefixed buffer, pointing to the given `root_table`.
638
- */
639
- finishSizePrefixed(t, e) {
640
- this.finish(t, e, !0);
641
- }
642
- /**
643
- * This checks a required field has been set in a given table that has
644
- * just been constructed.
645
- */
646
- requiredField(t, e) {
647
- const s = this.bb.capacity() - t, r = s - this.bb.readInt32(s);
648
- if (!(e < this.bb.readInt16(r) && this.bb.readInt16(r + e) != 0))
649
- throw new TypeError("FlatBuffers: field " + e + " must be set");
650
- }
651
- /**
652
- * Start a new array/vector of objects. Users usually will not call
653
- * this directly. The FlatBuffers compiler will create a start/end
654
- * method for vector types in generated code.
655
- *
656
- * @param elem_size The size of each element in the array
657
- * @param num_elems The number of elements in the array
658
- * @param alignment The alignment of the array
659
- */
660
- startVector(t, e, s) {
661
- this.notNested(), this.vector_num_elems = e, this.prep(Z, t * e), this.prep(s, t * e);
662
- }
663
- /**
664
- * Finish off the creation of an array and all its elements. The array must be
665
- * created with `startVector`.
666
- *
667
- * @returns The offset at which the newly created array
668
- * starts.
669
- */
670
- endVector() {
671
- return this.writeInt32(this.vector_num_elems), this.offset();
672
- }
673
- /**
674
- * Encode the string `s` in the buffer using UTF-8. If the string passed has
675
- * already been seen, we return the offset of the already written string
676
- *
677
- * @param s The string to encode
678
- * @return The offset in the buffer where the encoded string starts
679
- */
680
- createSharedString(t) {
681
- if (!t)
682
- return 0;
683
- if (this.string_maps || (this.string_maps = /* @__PURE__ */ new Map()), this.string_maps.has(t))
684
- return this.string_maps.get(t);
685
- const e = this.createString(t);
686
- return this.string_maps.set(t, e), e;
687
- }
688
- /**
689
- * Encode the string `s` in the buffer using UTF-8. If a Uint8Array is passed
690
- * instead of a string, it is assumed to contain valid UTF-8 encoded data.
691
- *
692
- * @param s The string to encode
693
- * @return The offset in the buffer where the encoded string starts
694
- */
695
- createString(t) {
696
- if (t == null)
697
- return 0;
698
- let e;
699
- return t instanceof Uint8Array ? e = t : e = this.text_encoder.encode(t), this.addInt8(0), this.startVector(1, e.length, 1), this.bb.setPosition(this.space -= e.length), this.bb.bytes().set(e, this.space), this.endVector();
700
- }
701
- /**
702
- * Create a byte vector.
703
- *
704
- * @param v The bytes to add
705
- * @returns The offset in the buffer where the byte vector starts
706
- */
707
- createByteVector(t) {
708
- return t == null ? 0 : (this.startVector(1, t.length, 1), this.bb.setPosition(this.space -= t.length), this.bb.bytes().set(t, this.space), this.endVector());
709
- }
710
- /**
711
- * A helper function to pack an object
712
- *
713
- * @returns offset of obj
714
- */
715
- createObjectOffset(t) {
716
- return t === null ? 0 : typeof t == "string" ? this.createString(t) : t.pack(this);
717
- }
718
- /**
719
- * A helper function to pack a list of object
720
- *
721
- * @returns list of offsets of each non null object
722
- */
723
- createObjectOffsetList(t) {
724
- const e = [];
725
- for (let s = 0; s < t.length; ++s) {
726
- const r = t[s];
727
- if (r !== null)
728
- e.push(this.createObjectOffset(r));
729
- else
730
- throw new TypeError("FlatBuffers: Argument for createObjectOffsetList cannot contain null.");
731
- }
732
- return e;
733
- }
734
- createStructOffsetList(t, e) {
735
- return e(this, t.length), this.createObjectOffsetList(t.slice().reverse()), this.endVector();
736
- }
737
- };
738
- var $t;
165
+ var kt;
739
166
  (function(i) {
740
167
  i[i.BUFFER = 0] = "BUFFER";
741
- })($t || ($t = {}));
742
- var rt;
168
+ })(kt || (kt = {}));
169
+ var it;
743
170
  (function(i) {
744
171
  i[i.LZ4_FRAME = 0] = "LZ4_FRAME", i[i.ZSTD = 1] = "ZSTD";
745
- })(rt || (rt = {}));
746
- let jt = class wt {
172
+ })(it || (it = {}));
173
+ let zt = class yt {
747
174
  constructor() {
748
175
  this.bb = null, this.bb_pos = 0;
749
176
  }
@@ -751,10 +178,10 @@ let jt = class wt {
751
178
  return this.bb_pos = t, this.bb = e, this;
752
179
  }
753
180
  static getRootAsBodyCompression(t, e) {
754
- return (e || new wt()).__init(t.readInt32(t.position()) + t.position(), t);
181
+ return (e || new yt()).__init(t.readInt32(t.position()) + t.position(), t);
755
182
  }
756
183
  static getSizePrefixedRootAsBodyCompression(t, e) {
757
- return t.setPosition(t.position() + p), (e || new wt()).__init(t.readInt32(t.position()) + t.position(), t);
184
+ return t.setPosition(t.position() + y), (e || new yt()).__init(t.readInt32(t.position()) + t.position(), t);
758
185
  }
759
186
  /**
760
187
  * Compressor library.
@@ -762,32 +189,32 @@ let jt = class wt {
762
189
  */
763
190
  codec() {
764
191
  const t = this.bb.__offset(this.bb_pos, 4);
765
- return t ? this.bb.readInt8(this.bb_pos + t) : rt.LZ4_FRAME;
192
+ return t ? this.bb.readInt8(this.bb_pos + t) : it.LZ4_FRAME;
766
193
  }
767
194
  /**
768
195
  * Indicates the way the record batch body was compressed
769
196
  */
770
197
  method() {
771
198
  const t = this.bb.__offset(this.bb_pos, 6);
772
- return t ? this.bb.readInt8(this.bb_pos + t) : $t.BUFFER;
199
+ return t ? this.bb.readInt8(this.bb_pos + t) : kt.BUFFER;
773
200
  }
774
201
  static startBodyCompression(t) {
775
202
  t.startObject(2);
776
203
  }
777
204
  static addCodec(t, e) {
778
- t.addFieldInt8(0, e, rt.LZ4_FRAME);
205
+ t.addFieldInt8(0, e, it.LZ4_FRAME);
779
206
  }
780
207
  static addMethod(t, e) {
781
- t.addFieldInt8(1, e, $t.BUFFER);
208
+ t.addFieldInt8(1, e, kt.BUFFER);
782
209
  }
783
210
  static endBodyCompression(t) {
784
211
  return t.endObject();
785
212
  }
786
213
  static createBodyCompression(t, e, s) {
787
- return wt.startBodyCompression(t), wt.addCodec(t, e), wt.addMethod(t, s), wt.endBodyCompression(t);
214
+ return yt.startBodyCompression(t), yt.addCodec(t, e), yt.addMethod(t, s), yt.endBodyCompression(t);
788
215
  }
789
216
  };
790
- class js {
217
+ class Ls {
791
218
  constructor() {
792
219
  this.bb = null, this.bb_pos = 0;
793
220
  }
@@ -818,7 +245,7 @@ class js {
818
245
  return t.prep(8, 16), t.writeInt64(BigInt(s ?? 0)), t.writeInt64(BigInt(e ?? 0)), t.offset();
819
246
  }
820
247
  }
821
- let ks = class {
248
+ let Rs = class {
822
249
  constructor() {
823
250
  this.bb = null, this.bb_pos = 0;
824
251
  }
@@ -846,7 +273,7 @@ let ks = class {
846
273
  static createFieldNode(t, e, s) {
847
274
  return t.prep(8, 16), t.writeInt64(BigInt(s ?? 0)), t.writeInt64(BigInt(e ?? 0)), t.offset();
848
275
  }
849
- }, K = class Ne {
276
+ }, q = class De {
850
277
  constructor() {
851
278
  this.bb = null, this.bb_pos = 0;
852
279
  }
@@ -854,10 +281,10 @@ let ks = class {
854
281
  return this.bb_pos = t, this.bb = e, this;
855
282
  }
856
283
  static getRootAsRecordBatch(t, e) {
857
- return (e || new Ne()).__init(t.readInt32(t.position()) + t.position(), t);
284
+ return (e || new De()).__init(t.readInt32(t.position()) + t.position(), t);
858
285
  }
859
286
  static getSizePrefixedRootAsRecordBatch(t, e) {
860
- return t.setPosition(t.position() + p), (e || new Ne()).__init(t.readInt32(t.position()) + t.position(), t);
287
+ return t.setPosition(t.position() + y), (e || new De()).__init(t.readInt32(t.position()) + t.position(), t);
861
288
  }
862
289
  /**
863
290
  * number of records / rows. The arrays in the batch should all have this
@@ -872,7 +299,7 @@ let ks = class {
872
299
  */
873
300
  nodes(t, e) {
874
301
  const s = this.bb.__offset(this.bb_pos, 6);
875
- return s ? (e || new ks()).__init(this.bb.__vector(this.bb_pos + s) + t * 16, this.bb) : null;
302
+ return s ? (e || new Rs()).__init(this.bb.__vector(this.bb_pos + s) + t * 16, this.bb) : null;
876
303
  }
877
304
  nodesLength() {
878
305
  const t = this.bb.__offset(this.bb_pos, 6);
@@ -888,7 +315,7 @@ let ks = class {
888
315
  */
889
316
  buffers(t, e) {
890
317
  const s = this.bb.__offset(this.bb_pos, 8);
891
- return s ? (e || new js()).__init(this.bb.__vector(this.bb_pos + s) + t * 16, this.bb) : null;
318
+ return s ? (e || new Ls()).__init(this.bb.__vector(this.bb_pos + s) + t * 16, this.bb) : null;
892
319
  }
893
320
  buffersLength() {
894
321
  const t = this.bb.__offset(this.bb_pos, 8);
@@ -899,7 +326,7 @@ let ks = class {
899
326
  */
900
327
  compression(t) {
901
328
  const e = this.bb.__offset(this.bb_pos, 10);
902
- return e ? (t || new jt()).__init(this.bb.__indirect(this.bb_pos + e), this.bb) : null;
329
+ return e ? (t || new zt()).__init(this.bb.__indirect(this.bb_pos + e), this.bb) : null;
903
330
  }
904
331
  static startRecordBatch(t) {
905
332
  t.startObject(4);
@@ -925,7 +352,7 @@ let ks = class {
925
352
  static endRecordBatch(t) {
926
353
  return t.endObject();
927
354
  }
928
- }, Rt = class Re {
355
+ }, Ft = class Ae {
929
356
  constructor() {
930
357
  this.bb = null, this.bb_pos = 0;
931
358
  }
@@ -933,10 +360,10 @@ let ks = class {
933
360
  return this.bb_pos = t, this.bb = e, this;
934
361
  }
935
362
  static getRootAsDictionaryBatch(t, e) {
936
- return (e || new Re()).__init(t.readInt32(t.position()) + t.position(), t);
363
+ return (e || new Ae()).__init(t.readInt32(t.position()) + t.position(), t);
937
364
  }
938
365
  static getSizePrefixedRootAsDictionaryBatch(t, e) {
939
- return t.setPosition(t.position() + p), (e || new Re()).__init(t.readInt32(t.position()) + t.position(), t);
366
+ return t.setPosition(t.position() + y), (e || new Ae()).__init(t.readInt32(t.position()) + t.position(), t);
940
367
  }
941
368
  id() {
942
369
  const t = this.bb.__offset(this.bb_pos, 4);
@@ -944,7 +371,7 @@ let ks = class {
944
371
  }
945
372
  data(t) {
946
373
  const e = this.bb.__offset(this.bb_pos, 6);
947
- return e ? (t || new K()).__init(this.bb.__indirect(this.bb_pos + e), this.bb) : null;
374
+ return e ? (t || new q()).__init(this.bb.__indirect(this.bb_pos + e), this.bb) : null;
948
375
  }
949
376
  /**
950
377
  * If isDelta is true the values in the dictionary are to be appended to a
@@ -971,14 +398,14 @@ let ks = class {
971
398
  return t.endObject();
972
399
  }
973
400
  };
974
- var Vt;
401
+ var Nt;
975
402
  (function(i) {
976
403
  i[i.Little = 0] = "Little", i[i.Big = 1] = "Big";
977
- })(Vt || (Vt = {}));
978
- var ae;
404
+ })(Nt || (Nt = {}));
405
+ var ie;
979
406
  (function(i) {
980
407
  i[i.DenseArray = 0] = "DenseArray";
981
- })(ae || (ae = {}));
408
+ })(ie || (ie = {}));
982
409
  class z {
983
410
  constructor() {
984
411
  this.bb = null, this.bb_pos = 0;
@@ -990,7 +417,7 @@ class z {
990
417
  return (e || new z()).__init(t.readInt32(t.position()) + t.position(), t);
991
418
  }
992
419
  static getSizePrefixedRootAsInt(t, e) {
993
- return t.setPosition(t.position() + p), (e || new z()).__init(t.readInt32(t.position()) + t.position(), t);
420
+ return t.setPosition(t.position() + y), (e || new z()).__init(t.readInt32(t.position()) + t.position(), t);
994
421
  }
995
422
  bitWidth() {
996
423
  const t = this.bb.__offset(this.bb_pos, 4);
@@ -1016,7 +443,7 @@ class z {
1016
443
  return z.startInt(t), z.addBitWidth(t, e), z.addIsSigned(t, s), z.endInt(t);
1017
444
  }
1018
445
  }
1019
- class dt {
446
+ class at {
1020
447
  constructor() {
1021
448
  this.bb = null, this.bb_pos = 0;
1022
449
  }
@@ -1024,10 +451,10 @@ class dt {
1024
451
  return this.bb_pos = t, this.bb = e, this;
1025
452
  }
1026
453
  static getRootAsDictionaryEncoding(t, e) {
1027
- return (e || new dt()).__init(t.readInt32(t.position()) + t.position(), t);
454
+ return (e || new at()).__init(t.readInt32(t.position()) + t.position(), t);
1028
455
  }
1029
456
  static getSizePrefixedRootAsDictionaryEncoding(t, e) {
1030
- return t.setPosition(t.position() + p), (e || new dt()).__init(t.readInt32(t.position()) + t.position(), t);
457
+ return t.setPosition(t.position() + y), (e || new at()).__init(t.readInt32(t.position()) + t.position(), t);
1031
458
  }
1032
459
  /**
1033
460
  * The known dictionary id in the application where this data is used. In
@@ -1061,7 +488,7 @@ class dt {
1061
488
  }
1062
489
  dictionaryKind() {
1063
490
  const t = this.bb.__offset(this.bb_pos, 10);
1064
- return t ? this.bb.readInt16(this.bb_pos + t) : ae.DenseArray;
491
+ return t ? this.bb.readInt16(this.bb_pos + t) : ie.DenseArray;
1065
492
  }
1066
493
  static startDictionaryEncoding(t) {
1067
494
  t.startObject(4);
@@ -1076,7 +503,7 @@ class dt {
1076
503
  t.addFieldInt8(2, +e, 0);
1077
504
  }
1078
505
  static addDictionaryKind(t, e) {
1079
- t.addFieldInt16(3, e, ae.DenseArray);
506
+ t.addFieldInt16(3, e, ie.DenseArray);
1080
507
  }
1081
508
  static endDictionaryEncoding(t) {
1082
509
  return t.endObject();
@@ -1093,7 +520,7 @@ class I {
1093
520
  return (e || new I()).__init(t.readInt32(t.position()) + t.position(), t);
1094
521
  }
1095
522
  static getSizePrefixedRootAsKeyValue(t, e) {
1096
- return t.setPosition(t.position() + p), (e || new I()).__init(t.readInt32(t.position()) + t.position(), t);
523
+ return t.setPosition(t.position() + y), (e || new I()).__init(t.readInt32(t.position()) + t.position(), t);
1097
524
  }
1098
525
  key(t) {
1099
526
  const e = this.bb.__offset(this.bb_pos, 4);
@@ -1119,7 +546,7 @@ class I {
1119
546
  return I.startKeyValue(t), I.addKey(t, e), I.addValue(t, s), I.endKeyValue(t);
1120
547
  }
1121
548
  }
1122
- class vt {
549
+ class pt {
1123
550
  constructor() {
1124
551
  this.bb = null, this.bb_pos = 0;
1125
552
  }
@@ -1127,10 +554,10 @@ class vt {
1127
554
  return this.bb_pos = t, this.bb = e, this;
1128
555
  }
1129
556
  static getRootAsBinary(t, e) {
1130
- return (e || new vt()).__init(t.readInt32(t.position()) + t.position(), t);
557
+ return (e || new pt()).__init(t.readInt32(t.position()) + t.position(), t);
1131
558
  }
1132
559
  static getSizePrefixedRootAsBinary(t, e) {
1133
- return t.setPosition(t.position() + p), (e || new vt()).__init(t.readInt32(t.position()) + t.position(), t);
560
+ return t.setPosition(t.position() + y), (e || new pt()).__init(t.readInt32(t.position()) + t.position(), t);
1134
561
  }
1135
562
  static startBinary(t) {
1136
563
  t.startObject(0);
@@ -1139,10 +566,10 @@ class vt {
1139
566
  return t.endObject();
1140
567
  }
1141
568
  static createBinary(t) {
1142
- return vt.startBinary(t), vt.endBinary(t);
569
+ return pt.startBinary(t), pt.endBinary(t);
1143
570
  }
1144
571
  }
1145
- class Bt {
572
+ class mt {
1146
573
  constructor() {
1147
574
  this.bb = null, this.bb_pos = 0;
1148
575
  }
@@ -1150,10 +577,10 @@ class Bt {
1150
577
  return this.bb_pos = t, this.bb = e, this;
1151
578
  }
1152
579
  static getRootAsBool(t, e) {
1153
- return (e || new Bt()).__init(t.readInt32(t.position()) + t.position(), t);
580
+ return (e || new mt()).__init(t.readInt32(t.position()) + t.position(), t);
1154
581
  }
1155
582
  static getSizePrefixedRootAsBool(t, e) {
1156
- return t.setPosition(t.position() + p), (e || new Bt()).__init(t.readInt32(t.position()) + t.position(), t);
583
+ return t.setPosition(t.position() + y), (e || new mt()).__init(t.readInt32(t.position()) + t.position(), t);
1157
584
  }
1158
585
  static startBool(t) {
1159
586
  t.startObject(0);
@@ -1162,10 +589,10 @@ class Bt {
1162
589
  return t.endObject();
1163
590
  }
1164
591
  static createBool(t) {
1165
- return Bt.startBool(t), Bt.endBool(t);
592
+ return mt.startBool(t), mt.endBool(t);
1166
593
  }
1167
594
  }
1168
- class Q {
595
+ class Z {
1169
596
  constructor() {
1170
597
  this.bb = null, this.bb_pos = 0;
1171
598
  }
@@ -1173,29 +600,29 @@ class Q {
1173
600
  return this.bb_pos = t, this.bb = e, this;
1174
601
  }
1175
602
  static getRootAsDate(t, e) {
1176
- return (e || new Q()).__init(t.readInt32(t.position()) + t.position(), t);
603
+ return (e || new Z()).__init(t.readInt32(t.position()) + t.position(), t);
1177
604
  }
1178
605
  static getSizePrefixedRootAsDate(t, e) {
1179
- return t.setPosition(t.position() + p), (e || new Q()).__init(t.readInt32(t.position()) + t.position(), t);
606
+ return t.setPosition(t.position() + y), (e || new Z()).__init(t.readInt32(t.position()) + t.position(), t);
1180
607
  }
1181
608
  unit() {
1182
609
  const t = this.bb.__offset(this.bb_pos, 4);
1183
- return t ? this.bb.readInt16(this.bb_pos + t) : Tt.MILLISECOND;
610
+ return t ? this.bb.readInt16(this.bb_pos + t) : Rt.MILLISECOND;
1184
611
  }
1185
612
  static startDate(t) {
1186
613
  t.startObject(1);
1187
614
  }
1188
615
  static addUnit(t, e) {
1189
- t.addFieldInt16(0, e, Tt.MILLISECOND);
616
+ t.addFieldInt16(0, e, Rt.MILLISECOND);
1190
617
  }
1191
618
  static endDate(t) {
1192
619
  return t.endObject();
1193
620
  }
1194
621
  static createDate(t, e) {
1195
- return Q.startDate(t), Q.addUnit(t, e), Q.endDate(t);
622
+ return Z.startDate(t), Z.addUnit(t, e), Z.endDate(t);
1196
623
  }
1197
624
  }
1198
- class R {
625
+ class N {
1199
626
  constructor() {
1200
627
  this.bb = null, this.bb_pos = 0;
1201
628
  }
@@ -1203,10 +630,10 @@ class R {
1203
630
  return this.bb_pos = t, this.bb = e, this;
1204
631
  }
1205
632
  static getRootAsDecimal(t, e) {
1206
- return (e || new R()).__init(t.readInt32(t.position()) + t.position(), t);
633
+ return (e || new N()).__init(t.readInt32(t.position()) + t.position(), t);
1207
634
  }
1208
635
  static getSizePrefixedRootAsDecimal(t, e) {
1209
- return t.setPosition(t.position() + p), (e || new R()).__init(t.readInt32(t.position()) + t.position(), t);
636
+ return t.setPosition(t.position() + y), (e || new N()).__init(t.readInt32(t.position()) + t.position(), t);
1210
637
  }
1211
638
  /**
1212
639
  * Total number of decimal digits
@@ -1246,10 +673,10 @@ class R {
1246
673
  return t.endObject();
1247
674
  }
1248
675
  static createDecimal(t, e, s, r) {
1249
- return R.startDecimal(t), R.addPrecision(t, e), R.addScale(t, s), R.addBitWidth(t, r), R.endDecimal(t);
676
+ return N.startDecimal(t), N.addPrecision(t, e), N.addScale(t, s), N.addBitWidth(t, r), N.endDecimal(t);
1250
677
  }
1251
678
  }
1252
- class X {
679
+ class Q {
1253
680
  constructor() {
1254
681
  this.bb = null, this.bb_pos = 0;
1255
682
  }
@@ -1257,29 +684,29 @@ class X {
1257
684
  return this.bb_pos = t, this.bb = e, this;
1258
685
  }
1259
686
  static getRootAsDuration(t, e) {
1260
- return (e || new X()).__init(t.readInt32(t.position()) + t.position(), t);
687
+ return (e || new Q()).__init(t.readInt32(t.position()) + t.position(), t);
1261
688
  }
1262
689
  static getSizePrefixedRootAsDuration(t, e) {
1263
- return t.setPosition(t.position() + p), (e || new X()).__init(t.readInt32(t.position()) + t.position(), t);
690
+ return t.setPosition(t.position() + y), (e || new Q()).__init(t.readInt32(t.position()) + t.position(), t);
1264
691
  }
1265
692
  unit() {
1266
693
  const t = this.bb.__offset(this.bb_pos, 4);
1267
- return t ? this.bb.readInt16(this.bb_pos + t) : E.MILLISECOND;
694
+ return t ? this.bb.readInt16(this.bb_pos + t) : P.MILLISECOND;
1268
695
  }
1269
696
  static startDuration(t) {
1270
697
  t.startObject(1);
1271
698
  }
1272
699
  static addUnit(t, e) {
1273
- t.addFieldInt16(0, e, E.MILLISECOND);
700
+ t.addFieldInt16(0, e, P.MILLISECOND);
1274
701
  }
1275
702
  static endDuration(t) {
1276
703
  return t.endObject();
1277
704
  }
1278
705
  static createDuration(t, e) {
1279
- return X.startDuration(t), X.addUnit(t, e), X.endDuration(t);
706
+ return Q.startDuration(t), Q.addUnit(t, e), Q.endDuration(t);
1280
707
  }
1281
708
  }
1282
- class tt {
709
+ class X {
1283
710
  constructor() {
1284
711
  this.bb = null, this.bb_pos = 0;
1285
712
  }
@@ -1287,10 +714,10 @@ class tt {
1287
714
  return this.bb_pos = t, this.bb = e, this;
1288
715
  }
1289
716
  static getRootAsFixedSizeBinary(t, e) {
1290
- return (e || new tt()).__init(t.readInt32(t.position()) + t.position(), t);
717
+ return (e || new X()).__init(t.readInt32(t.position()) + t.position(), t);
1291
718
  }
1292
719
  static getSizePrefixedRootAsFixedSizeBinary(t, e) {
1293
- return t.setPosition(t.position() + p), (e || new tt()).__init(t.readInt32(t.position()) + t.position(), t);
720
+ return t.setPosition(t.position() + y), (e || new X()).__init(t.readInt32(t.position()) + t.position(), t);
1294
721
  }
1295
722
  /**
1296
723
  * Number of bytes per value
@@ -1309,10 +736,10 @@ class tt {
1309
736
  return t.endObject();
1310
737
  }
1311
738
  static createFixedSizeBinary(t, e) {
1312
- return tt.startFixedSizeBinary(t), tt.addByteWidth(t, e), tt.endFixedSizeBinary(t);
739
+ return X.startFixedSizeBinary(t), X.addByteWidth(t, e), X.endFixedSizeBinary(t);
1313
740
  }
1314
741
  }
1315
- class et {
742
+ class tt {
1316
743
  constructor() {
1317
744
  this.bb = null, this.bb_pos = 0;
1318
745
  }
@@ -1320,10 +747,10 @@ class et {
1320
747
  return this.bb_pos = t, this.bb = e, this;
1321
748
  }
1322
749
  static getRootAsFixedSizeList(t, e) {
1323
- return (e || new et()).__init(t.readInt32(t.position()) + t.position(), t);
750
+ return (e || new tt()).__init(t.readInt32(t.position()) + t.position(), t);
1324
751
  }
1325
752
  static getSizePrefixedRootAsFixedSizeList(t, e) {
1326
- return t.setPosition(t.position() + p), (e || new et()).__init(t.readInt32(t.position()) + t.position(), t);
753
+ return t.setPosition(t.position() + y), (e || new tt()).__init(t.readInt32(t.position()) + t.position(), t);
1327
754
  }
1328
755
  /**
1329
756
  * Number of list items per value
@@ -1342,10 +769,10 @@ class et {
1342
769
  return t.endObject();
1343
770
  }
1344
771
  static createFixedSizeList(t, e) {
1345
- return et.startFixedSizeList(t), et.addListSize(t, e), et.endFixedSizeList(t);
772
+ return tt.startFixedSizeList(t), tt.addListSize(t, e), tt.endFixedSizeList(t);
1346
773
  }
1347
774
  }
1348
- class st {
775
+ class et {
1349
776
  constructor() {
1350
777
  this.bb = null, this.bb_pos = 0;
1351
778
  }
@@ -1353,29 +780,29 @@ class st {
1353
780
  return this.bb_pos = t, this.bb = e, this;
1354
781
  }
1355
782
  static getRootAsFloatingPoint(t, e) {
1356
- return (e || new st()).__init(t.readInt32(t.position()) + t.position(), t);
783
+ return (e || new et()).__init(t.readInt32(t.position()) + t.position(), t);
1357
784
  }
1358
785
  static getSizePrefixedRootAsFloatingPoint(t, e) {
1359
- return t.setPosition(t.position() + p), (e || new st()).__init(t.readInt32(t.position()) + t.position(), t);
786
+ return t.setPosition(t.position() + y), (e || new et()).__init(t.readInt32(t.position()) + t.position(), t);
1360
787
  }
1361
788
  precision() {
1362
789
  const t = this.bb.__offset(this.bb_pos, 4);
1363
- return t ? this.bb.readInt16(this.bb_pos + t) : se.HALF;
790
+ return t ? this.bb.readInt16(this.bb_pos + t) : Qt.HALF;
1364
791
  }
1365
792
  static startFloatingPoint(t) {
1366
793
  t.startObject(1);
1367
794
  }
1368
795
  static addPrecision(t, e) {
1369
- t.addFieldInt16(0, e, se.HALF);
796
+ t.addFieldInt16(0, e, Qt.HALF);
1370
797
  }
1371
798
  static endFloatingPoint(t) {
1372
799
  return t.endObject();
1373
800
  }
1374
801
  static createFloatingPoint(t, e) {
1375
- return st.startFloatingPoint(t), st.addPrecision(t, e), st.endFloatingPoint(t);
802
+ return et.startFloatingPoint(t), et.addPrecision(t, e), et.endFloatingPoint(t);
1376
803
  }
1377
804
  }
1378
- class it {
805
+ class st {
1379
806
  constructor() {
1380
807
  this.bb = null, this.bb_pos = 0;
1381
808
  }
@@ -1383,29 +810,29 @@ class it {
1383
810
  return this.bb_pos = t, this.bb = e, this;
1384
811
  }
1385
812
  static getRootAsInterval(t, e) {
1386
- return (e || new it()).__init(t.readInt32(t.position()) + t.position(), t);
813
+ return (e || new st()).__init(t.readInt32(t.position()) + t.position(), t);
1387
814
  }
1388
815
  static getSizePrefixedRootAsInterval(t, e) {
1389
- return t.setPosition(t.position() + p), (e || new it()).__init(t.readInt32(t.position()) + t.position(), t);
816
+ return t.setPosition(t.position() + y), (e || new st()).__init(t.readInt32(t.position()) + t.position(), t);
1390
817
  }
1391
818
  unit() {
1392
819
  const t = this.bb.__offset(this.bb_pos, 4);
1393
- return t ? this.bb.readInt16(this.bb_pos + t) : ht.YEAR_MONTH;
820
+ return t ? this.bb.readInt16(this.bb_pos + t) : ct.YEAR_MONTH;
1394
821
  }
1395
822
  static startInterval(t) {
1396
823
  t.startObject(1);
1397
824
  }
1398
825
  static addUnit(t, e) {
1399
- t.addFieldInt16(0, e, ht.YEAR_MONTH);
826
+ t.addFieldInt16(0, e, ct.YEAR_MONTH);
1400
827
  }
1401
828
  static endInterval(t) {
1402
829
  return t.endObject();
1403
830
  }
1404
831
  static createInterval(t, e) {
1405
- return it.startInterval(t), it.addUnit(t, e), it.endInterval(t);
832
+ return st.startInterval(t), st.addUnit(t, e), st.endInterval(t);
1406
833
  }
1407
834
  }
1408
- class It {
835
+ class gt {
1409
836
  constructor() {
1410
837
  this.bb = null, this.bb_pos = 0;
1411
838
  }
@@ -1413,10 +840,10 @@ class It {
1413
840
  return this.bb_pos = t, this.bb = e, this;
1414
841
  }
1415
842
  static getRootAsLargeBinary(t, e) {
1416
- return (e || new It()).__init(t.readInt32(t.position()) + t.position(), t);
843
+ return (e || new gt()).__init(t.readInt32(t.position()) + t.position(), t);
1417
844
  }
1418
845
  static getSizePrefixedRootAsLargeBinary(t, e) {
1419
- return t.setPosition(t.position() + p), (e || new It()).__init(t.readInt32(t.position()) + t.position(), t);
846
+ return t.setPosition(t.position() + y), (e || new gt()).__init(t.readInt32(t.position()) + t.position(), t);
1420
847
  }
1421
848
  static startLargeBinary(t) {
1422
849
  t.startObject(0);
@@ -1425,10 +852,10 @@ class It {
1425
852
  return t.endObject();
1426
853
  }
1427
854
  static createLargeBinary(t) {
1428
- return It.startLargeBinary(t), It.endLargeBinary(t);
855
+ return gt.startLargeBinary(t), gt.endLargeBinary(t);
1429
856
  }
1430
857
  }
1431
- class St {
858
+ class wt {
1432
859
  constructor() {
1433
860
  this.bb = null, this.bb_pos = 0;
1434
861
  }
@@ -1436,10 +863,10 @@ class St {
1436
863
  return this.bb_pos = t, this.bb = e, this;
1437
864
  }
1438
865
  static getRootAsLargeUtf8(t, e) {
1439
- return (e || new St()).__init(t.readInt32(t.position()) + t.position(), t);
866
+ return (e || new wt()).__init(t.readInt32(t.position()) + t.position(), t);
1440
867
  }
1441
868
  static getSizePrefixedRootAsLargeUtf8(t, e) {
1442
- return t.setPosition(t.position() + p), (e || new St()).__init(t.readInt32(t.position()) + t.position(), t);
869
+ return t.setPosition(t.position() + y), (e || new wt()).__init(t.readInt32(t.position()) + t.position(), t);
1443
870
  }
1444
871
  static startLargeUtf8(t) {
1445
872
  t.startObject(0);
@@ -1448,10 +875,10 @@ class St {
1448
875
  return t.endObject();
1449
876
  }
1450
877
  static createLargeUtf8(t) {
1451
- return St.startLargeUtf8(t), St.endLargeUtf8(t);
878
+ return wt.startLargeUtf8(t), wt.endLargeUtf8(t);
1452
879
  }
1453
880
  }
1454
- class At {
881
+ class vt {
1455
882
  constructor() {
1456
883
  this.bb = null, this.bb_pos = 0;
1457
884
  }
@@ -1459,10 +886,10 @@ class At {
1459
886
  return this.bb_pos = t, this.bb = e, this;
1460
887
  }
1461
888
  static getRootAsList(t, e) {
1462
- return (e || new At()).__init(t.readInt32(t.position()) + t.position(), t);
889
+ return (e || new vt()).__init(t.readInt32(t.position()) + t.position(), t);
1463
890
  }
1464
891
  static getSizePrefixedRootAsList(t, e) {
1465
- return t.setPosition(t.position() + p), (e || new At()).__init(t.readInt32(t.position()) + t.position(), t);
892
+ return t.setPosition(t.position() + y), (e || new vt()).__init(t.readInt32(t.position()) + t.position(), t);
1466
893
  }
1467
894
  static startList(t) {
1468
895
  t.startObject(0);
@@ -1471,10 +898,10 @@ class At {
1471
898
  return t.endObject();
1472
899
  }
1473
900
  static createList(t) {
1474
- return At.startList(t), At.endList(t);
901
+ return vt.startList(t), vt.endList(t);
1475
902
  }
1476
903
  }
1477
- let Xt = class xt {
904
+ let Kt = class Mt {
1478
905
  constructor() {
1479
906
  this.bb = null, this.bb_pos = 0;
1480
907
  }
@@ -1482,10 +909,10 @@ let Xt = class xt {
1482
909
  return this.bb_pos = t, this.bb = e, this;
1483
910
  }
1484
911
  static getRootAsMap(t, e) {
1485
- return (e || new xt()).__init(t.readInt32(t.position()) + t.position(), t);
912
+ return (e || new Mt()).__init(t.readInt32(t.position()) + t.position(), t);
1486
913
  }
1487
914
  static getSizePrefixedRootAsMap(t, e) {
1488
- return t.setPosition(t.position() + p), (e || new xt()).__init(t.readInt32(t.position()) + t.position(), t);
915
+ return t.setPosition(t.position() + y), (e || new Mt()).__init(t.readInt32(t.position()) + t.position(), t);
1489
916
  }
1490
917
  /**
1491
918
  * Set to true if the keys within each value are sorted
@@ -1504,10 +931,10 @@ let Xt = class xt {
1504
931
  return t.endObject();
1505
932
  }
1506
933
  static createMap(t, e) {
1507
- return xt.startMap(t), xt.addKeysSorted(t, e), xt.endMap(t);
934
+ return Mt.startMap(t), Mt.addKeysSorted(t, e), Mt.endMap(t);
1508
935
  }
1509
936
  };
1510
- class Ft {
937
+ class Bt {
1511
938
  constructor() {
1512
939
  this.bb = null, this.bb_pos = 0;
1513
940
  }
@@ -1515,10 +942,10 @@ class Ft {
1515
942
  return this.bb_pos = t, this.bb = e, this;
1516
943
  }
1517
944
  static getRootAsNull(t, e) {
1518
- return (e || new Ft()).__init(t.readInt32(t.position()) + t.position(), t);
945
+ return (e || new Bt()).__init(t.readInt32(t.position()) + t.position(), t);
1519
946
  }
1520
947
  static getSizePrefixedRootAsNull(t, e) {
1521
- return t.setPosition(t.position() + p), (e || new Ft()).__init(t.readInt32(t.position()) + t.position(), t);
948
+ return t.setPosition(t.position() + y), (e || new Bt()).__init(t.readInt32(t.position()) + t.position(), t);
1522
949
  }
1523
950
  static startNull(t) {
1524
951
  t.startObject(0);
@@ -1527,10 +954,10 @@ class Ft {
1527
954
  return t.endObject();
1528
955
  }
1529
956
  static createNull(t) {
1530
- return Ft.startNull(t), Ft.endNull(t);
957
+ return Bt.startNull(t), Bt.endNull(t);
1531
958
  }
1532
959
  }
1533
- class Dt {
960
+ class It {
1534
961
  constructor() {
1535
962
  this.bb = null, this.bb_pos = 0;
1536
963
  }
@@ -1538,10 +965,10 @@ class Dt {
1538
965
  return this.bb_pos = t, this.bb = e, this;
1539
966
  }
1540
967
  static getRootAsStruct_(t, e) {
1541
- return (e || new Dt()).__init(t.readInt32(t.position()) + t.position(), t);
968
+ return (e || new It()).__init(t.readInt32(t.position()) + t.position(), t);
1542
969
  }
1543
970
  static getSizePrefixedRootAsStruct_(t, e) {
1544
- return t.setPosition(t.position() + p), (e || new Dt()).__init(t.readInt32(t.position()) + t.position(), t);
971
+ return t.setPosition(t.position() + y), (e || new It()).__init(t.readInt32(t.position()) + t.position(), t);
1545
972
  }
1546
973
  static startStruct_(t) {
1547
974
  t.startObject(0);
@@ -1550,7 +977,7 @@ class Dt {
1550
977
  return t.endObject();
1551
978
  }
1552
979
  static createStruct_(t) {
1553
- return Dt.startStruct_(t), Dt.endStruct_(t);
980
+ return It.startStruct_(t), It.endStruct_(t);
1554
981
  }
1555
982
  }
1556
983
  class k {
@@ -1564,11 +991,11 @@ class k {
1564
991
  return (e || new k()).__init(t.readInt32(t.position()) + t.position(), t);
1565
992
  }
1566
993
  static getSizePrefixedRootAsTime(t, e) {
1567
- return t.setPosition(t.position() + p), (e || new k()).__init(t.readInt32(t.position()) + t.position(), t);
994
+ return t.setPosition(t.position() + y), (e || new k()).__init(t.readInt32(t.position()) + t.position(), t);
1568
995
  }
1569
996
  unit() {
1570
997
  const t = this.bb.__offset(this.bb_pos, 4);
1571
- return t ? this.bb.readInt16(this.bb_pos + t) : E.MILLISECOND;
998
+ return t ? this.bb.readInt16(this.bb_pos + t) : P.MILLISECOND;
1572
999
  }
1573
1000
  bitWidth() {
1574
1001
  const t = this.bb.__offset(this.bb_pos, 6);
@@ -1578,7 +1005,7 @@ class k {
1578
1005
  t.startObject(2);
1579
1006
  }
1580
1007
  static addUnit(t, e) {
1581
- t.addFieldInt16(0, e, E.MILLISECOND);
1008
+ t.addFieldInt16(0, e, P.MILLISECOND);
1582
1009
  }
1583
1010
  static addBitWidth(t, e) {
1584
1011
  t.addFieldInt32(1, e, 32);
@@ -1601,11 +1028,11 @@ class C {
1601
1028
  return (e || new C()).__init(t.readInt32(t.position()) + t.position(), t);
1602
1029
  }
1603
1030
  static getSizePrefixedRootAsTimestamp(t, e) {
1604
- return t.setPosition(t.position() + p), (e || new C()).__init(t.readInt32(t.position()) + t.position(), t);
1031
+ return t.setPosition(t.position() + y), (e || new C()).__init(t.readInt32(t.position()) + t.position(), t);
1605
1032
  }
1606
1033
  unit() {
1607
1034
  const t = this.bb.__offset(this.bb_pos, 4);
1608
- return t ? this.bb.readInt16(this.bb_pos + t) : E.SECOND;
1035
+ return t ? this.bb.readInt16(this.bb_pos + t) : P.SECOND;
1609
1036
  }
1610
1037
  timezone(t) {
1611
1038
  const e = this.bb.__offset(this.bb_pos, 6);
@@ -1615,7 +1042,7 @@ class C {
1615
1042
  t.startObject(2);
1616
1043
  }
1617
1044
  static addUnit(t, e) {
1618
- t.addFieldInt16(0, e, E.SECOND);
1045
+ t.addFieldInt16(0, e, P.SECOND);
1619
1046
  }
1620
1047
  static addTimezone(t, e) {
1621
1048
  t.addFieldOffset(1, e, 0);
@@ -1638,11 +1065,11 @@ class x {
1638
1065
  return (e || new x()).__init(t.readInt32(t.position()) + t.position(), t);
1639
1066
  }
1640
1067
  static getSizePrefixedRootAsUnion(t, e) {
1641
- return t.setPosition(t.position() + p), (e || new x()).__init(t.readInt32(t.position()) + t.position(), t);
1068
+ return t.setPosition(t.position() + y), (e || new x()).__init(t.readInt32(t.position()) + t.position(), t);
1642
1069
  }
1643
1070
  mode() {
1644
1071
  const t = this.bb.__offset(this.bb_pos, 4);
1645
- return t ? this.bb.readInt16(this.bb_pos + t) : pt.Sparse;
1072
+ return t ? this.bb.readInt16(this.bb_pos + t) : ft.Sparse;
1646
1073
  }
1647
1074
  typeIds(t) {
1648
1075
  const e = this.bb.__offset(this.bb_pos, 6);
@@ -1660,7 +1087,7 @@ class x {
1660
1087
  t.startObject(2);
1661
1088
  }
1662
1089
  static addMode(t, e) {
1663
- t.addFieldInt16(0, e, pt.Sparse);
1090
+ t.addFieldInt16(0, e, ft.Sparse);
1664
1091
  }
1665
1092
  static addTypeIds(t, e) {
1666
1093
  t.addFieldOffset(1, e, 0);
@@ -1681,7 +1108,7 @@ class x {
1681
1108
  return x.startUnion(t), x.addMode(t, e), x.addTypeIds(t, s), x.endUnion(t);
1682
1109
  }
1683
1110
  }
1684
- class Ot {
1111
+ class St {
1685
1112
  constructor() {
1686
1113
  this.bb = null, this.bb_pos = 0;
1687
1114
  }
@@ -1689,10 +1116,10 @@ class Ot {
1689
1116
  return this.bb_pos = t, this.bb = e, this;
1690
1117
  }
1691
1118
  static getRootAsUtf8(t, e) {
1692
- return (e || new Ot()).__init(t.readInt32(t.position()) + t.position(), t);
1119
+ return (e || new St()).__init(t.readInt32(t.position()) + t.position(), t);
1693
1120
  }
1694
1121
  static getSizePrefixedRootAsUtf8(t, e) {
1695
- return t.setPosition(t.position() + p), (e || new Ot()).__init(t.readInt32(t.position()) + t.position(), t);
1122
+ return t.setPosition(t.position() + y), (e || new St()).__init(t.readInt32(t.position()) + t.position(), t);
1696
1123
  }
1697
1124
  static startUtf8(t) {
1698
1125
  t.startObject(0);
@@ -1701,14 +1128,14 @@ class Ot {
1701
1128
  return t.endObject();
1702
1129
  }
1703
1130
  static createUtf8(t) {
1704
- return Ot.startUtf8(t), Ot.endUtf8(t);
1131
+ return St.startUtf8(t), St.endUtf8(t);
1705
1132
  }
1706
1133
  }
1707
1134
  var l;
1708
1135
  (function(i) {
1709
1136
  i[i.NONE = 0] = "NONE", i[i.Null = 1] = "Null", i[i.Int = 2] = "Int", i[i.FloatingPoint = 3] = "FloatingPoint", i[i.Binary = 4] = "Binary", i[i.Utf8 = 5] = "Utf8", i[i.Bool = 6] = "Bool", i[i.Decimal = 7] = "Decimal", i[i.Date = 8] = "Date", i[i.Time = 9] = "Time", i[i.Timestamp = 10] = "Timestamp", i[i.Interval = 11] = "Interval", i[i.List = 12] = "List", i[i.Struct_ = 13] = "Struct_", i[i.Union = 14] = "Union", i[i.FixedSizeBinary = 15] = "FixedSizeBinary", i[i.FixedSizeList = 16] = "FixedSizeList", i[i.Map = 17] = "Map", i[i.Duration = 18] = "Duration", i[i.LargeBinary = 19] = "LargeBinary", i[i.LargeUtf8 = 20] = "LargeUtf8", i[i.LargeList = 21] = "LargeList", i[i.RunEndEncoded = 22] = "RunEndEncoded";
1710
1137
  })(l || (l = {}));
1711
- class A {
1138
+ class D {
1712
1139
  constructor() {
1713
1140
  this.bb = null, this.bb_pos = 0;
1714
1141
  }
@@ -1716,10 +1143,10 @@ class A {
1716
1143
  return this.bb_pos = t, this.bb = e, this;
1717
1144
  }
1718
1145
  static getRootAsField(t, e) {
1719
- return (e || new A()).__init(t.readInt32(t.position()) + t.position(), t);
1146
+ return (e || new D()).__init(t.readInt32(t.position()) + t.position(), t);
1720
1147
  }
1721
1148
  static getSizePrefixedRootAsField(t, e) {
1722
- return t.setPosition(t.position() + p), (e || new A()).__init(t.readInt32(t.position()) + t.position(), t);
1149
+ return t.setPosition(t.position() + y), (e || new D()).__init(t.readInt32(t.position()) + t.position(), t);
1723
1150
  }
1724
1151
  name(t) {
1725
1152
  const e = this.bb.__offset(this.bb_pos, 4);
@@ -1748,7 +1175,7 @@ class A {
1748
1175
  */
1749
1176
  dictionary(t) {
1750
1177
  const e = this.bb.__offset(this.bb_pos, 12);
1751
- return e ? (t || new dt()).__init(this.bb.__indirect(this.bb_pos + e), this.bb) : null;
1178
+ return e ? (t || new at()).__init(this.bb.__indirect(this.bb_pos + e), this.bb) : null;
1752
1179
  }
1753
1180
  /**
1754
1181
  * children apply only to nested data types like Struct, List and Union. For
@@ -1756,7 +1183,7 @@ class A {
1756
1183
  */
1757
1184
  children(t, e) {
1758
1185
  const s = this.bb.__offset(this.bb_pos, 14);
1759
- return s ? (e || new A()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + s) + t * 4), this.bb) : null;
1186
+ return s ? (e || new D()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + s) + t * 4), this.bb) : null;
1760
1187
  }
1761
1188
  childrenLength() {
1762
1189
  const t = this.bb.__offset(this.bb_pos, 14);
@@ -1830,7 +1257,7 @@ class B {
1830
1257
  return (e || new B()).__init(t.readInt32(t.position()) + t.position(), t);
1831
1258
  }
1832
1259
  static getSizePrefixedRootAsSchema(t, e) {
1833
- return t.setPosition(t.position() + p), (e || new B()).__init(t.readInt32(t.position()) + t.position(), t);
1260
+ return t.setPosition(t.position() + y), (e || new B()).__init(t.readInt32(t.position()) + t.position(), t);
1834
1261
  }
1835
1262
  /**
1836
1263
  * endianness of the buffer
@@ -1839,11 +1266,11 @@ class B {
1839
1266
  */
1840
1267
  endianness() {
1841
1268
  const t = this.bb.__offset(this.bb_pos, 4);
1842
- return t ? this.bb.readInt16(this.bb_pos + t) : Vt.Little;
1269
+ return t ? this.bb.readInt16(this.bb_pos + t) : Nt.Little;
1843
1270
  }
1844
1271
  fields(t, e) {
1845
1272
  const s = this.bb.__offset(this.bb_pos, 6);
1846
- return s ? (e || new A()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + s) + t * 4), this.bb) : null;
1273
+ return s ? (e || new D()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + s) + t * 4), this.bb) : null;
1847
1274
  }
1848
1275
  fieldsLength() {
1849
1276
  const t = this.bb.__offset(this.bb_pos, 6);
@@ -1872,7 +1299,7 @@ class B {
1872
1299
  t.startObject(4);
1873
1300
  }
1874
1301
  static addEndianness(t, e) {
1875
- t.addFieldInt16(0, e, Vt.Little);
1302
+ t.addFieldInt16(0, e, Nt.Little);
1876
1303
  }
1877
1304
  static addFields(t, e) {
1878
1305
  t.addFieldOffset(1, e, 0);
@@ -1927,7 +1354,7 @@ var _;
1927
1354
  (function(i) {
1928
1355
  i[i.NONE = 0] = "NONE", i[i.Schema = 1] = "Schema", i[i.DictionaryBatch = 2] = "DictionaryBatch", i[i.RecordBatch = 3] = "RecordBatch", i[i.Tensor = 4] = "Tensor", i[i.SparseTensor = 5] = "SparseTensor";
1929
1356
  })(_ || (_ = {}));
1930
- class xe {
1357
+ class Oe {
1931
1358
  constructor() {
1932
1359
  this.bb = null, this.bb_pos = 0;
1933
1360
  }
@@ -1971,7 +1398,7 @@ class T {
1971
1398
  return (e || new T()).__init(t.readInt32(t.position()) + t.position(), t);
1972
1399
  }
1973
1400
  static getSizePrefixedRootAsFooter(t, e) {
1974
- return t.setPosition(t.position() + p), (e || new T()).__init(t.readInt32(t.position()) + t.position(), t);
1401
+ return t.setPosition(t.position() + y), (e || new T()).__init(t.readInt32(t.position()) + t.position(), t);
1975
1402
  }
1976
1403
  version() {
1977
1404
  const t = this.bb.__offset(this.bb_pos, 4);
@@ -1983,7 +1410,7 @@ class T {
1983
1410
  }
1984
1411
  dictionaries(t, e) {
1985
1412
  const s = this.bb.__offset(this.bb_pos, 8);
1986
- return s ? (e || new xe()).__init(this.bb.__vector(this.bb_pos + s) + t * 24, this.bb) : null;
1413
+ return s ? (e || new Oe()).__init(this.bb.__vector(this.bb_pos + s) + t * 24, this.bb) : null;
1987
1414
  }
1988
1415
  dictionariesLength() {
1989
1416
  const t = this.bb.__offset(this.bb_pos, 8);
@@ -1991,7 +1418,7 @@ class T {
1991
1418
  }
1992
1419
  recordBatches(t, e) {
1993
1420
  const s = this.bb.__offset(this.bb_pos, 10);
1994
- return s ? (e || new xe()).__init(this.bb.__vector(this.bb_pos + s) + t * 24, this.bb) : null;
1421
+ return s ? (e || new Oe()).__init(this.bb.__vector(this.bb_pos + s) + t * 24, this.bb) : null;
1995
1422
  }
1996
1423
  recordBatchesLength() {
1997
1424
  const t = this.bb.__offset(this.bb_pos, 10);
@@ -2051,24 +1478,24 @@ class T {
2051
1478
  t.finish(e, void 0, !0);
2052
1479
  }
2053
1480
  }
2054
- var zi = Es, Ei = yt;
2055
- class Jt {
1481
+ var Oi = Ms, Fi = Vt;
1482
+ class Ct {
2056
1483
  /** @nocollapse */
2057
1484
  static decode(t) {
2058
- t = new Ei(M(t));
1485
+ t = new Fi(M(t));
2059
1486
  const e = T.getRootAsFooter(t), s = H.decode(e.schema(), /* @__PURE__ */ new Map(), e.version());
2060
- return new Pi(s, e);
1487
+ return new Mi(s, e);
2061
1488
  }
2062
1489
  /** @nocollapse */
2063
1490
  static encode(t) {
2064
- const e = new zi(), s = H.encode(e, t.schema);
1491
+ const e = new Oi(), s = H.encode(e, t.schema);
2065
1492
  T.startRecordBatchesVector(e, t.numRecordBatches);
2066
1493
  for (const o of [...t.recordBatches()].slice().reverse())
2067
- ot.encode(e, o);
1494
+ nt.encode(e, o);
2068
1495
  const r = e.endVector();
2069
1496
  T.startDictionariesVector(e, t.numDictionaries);
2070
1497
  for (const o of [...t.dictionaryBatches()].slice().reverse())
2071
- ot.encode(e, o);
1498
+ nt.encode(e, o);
2072
1499
  const n = e.endVector();
2073
1500
  return T.startFooter(e), T.addSchema(e, s), T.addVersion(e, S.V5), T.addRecordBatches(e, r), T.addDictionaries(e, n), T.finishFooterBuffer(e, T.endFooter(e)), e.asUint8Array();
2074
1501
  }
@@ -2096,7 +1523,7 @@ class Jt {
2096
1523
  return t >= 0 && t < this.numDictionaries && this._dictionaryBatches[t] || null;
2097
1524
  }
2098
1525
  }
2099
- class Pi extends Jt {
1526
+ class Mi extends Ct {
2100
1527
  get numRecordBatches() {
2101
1528
  return this._footer.recordBatchesLength();
2102
1529
  }
@@ -2110,7 +1537,7 @@ class Pi extends Jt {
2110
1537
  if (t >= 0 && t < this.numRecordBatches) {
2111
1538
  const e = this._footer.recordBatches(t);
2112
1539
  if (e)
2113
- return ot.decode(e);
1540
+ return nt.decode(e);
2114
1541
  }
2115
1542
  return null;
2116
1543
  }
@@ -2118,26 +1545,26 @@ class Pi extends Jt {
2118
1545
  if (t >= 0 && t < this.numDictionaries) {
2119
1546
  const e = this._footer.dictionaries(t);
2120
1547
  if (e)
2121
- return ot.decode(e);
1548
+ return nt.decode(e);
2122
1549
  }
2123
1550
  return null;
2124
1551
  }
2125
1552
  }
2126
- class ot {
1553
+ class nt {
2127
1554
  /** @nocollapse */
2128
1555
  static decode(t) {
2129
- return new ot(t.metaDataLength(), t.bodyLength(), t.offset());
1556
+ return new nt(t.metaDataLength(), t.bodyLength(), t.offset());
2130
1557
  }
2131
1558
  /** @nocollapse */
2132
1559
  static encode(t, e) {
2133
1560
  const { metaDataLength: s } = e, r = BigInt(e.offset), n = BigInt(e.bodyLength);
2134
- return xe.createBlock(t, r, s, n);
1561
+ return Oe.createBlock(t, r, s, n);
2135
1562
  }
2136
1563
  constructor(t, e, s) {
2137
- this.metaDataLength = t, this.offset = P(s), this.bodyLength = P(e);
1564
+ this.metaDataLength = t, this.offset = E(s), this.bodyLength = E(e);
2138
1565
  }
2139
1566
  }
2140
- let ft = class q {
1567
+ let ut = class K {
2141
1568
  constructor() {
2142
1569
  this.bb = null, this.bb_pos = 0;
2143
1570
  }
@@ -2145,10 +1572,10 @@ let ft = class q {
2145
1572
  return this.bb_pos = t, this.bb = e, this;
2146
1573
  }
2147
1574
  static getRootAsMessage(t, e) {
2148
- return (e || new q()).__init(t.readInt32(t.position()) + t.position(), t);
1575
+ return (e || new K()).__init(t.readInt32(t.position()) + t.position(), t);
2149
1576
  }
2150
1577
  static getSizePrefixedRootAsMessage(t, e) {
2151
- return t.setPosition(t.position() + p), (e || new q()).__init(t.readInt32(t.position()) + t.position(), t);
1578
+ return t.setPosition(t.position() + y), (e || new K()).__init(t.readInt32(t.position()) + t.position(), t);
2152
1579
  }
2153
1580
  version() {
2154
1581
  const t = this.bb.__offset(this.bb_pos, 4);
@@ -2211,42 +1638,42 @@ let ft = class q {
2211
1638
  t.finish(e, void 0, !0);
2212
1639
  }
2213
1640
  static createMessage(t, e, s, r, n, o) {
2214
- return q.startMessage(t), q.addVersion(t, e), q.addHeaderType(t, s), q.addHeader(t, r), q.addBodyLength(t, n), q.addCustomMetadata(t, o), q.endMessage(t);
1641
+ return K.startMessage(t), K.addVersion(t, e), K.addHeaderType(t, s), K.addHeader(t, r), K.addBodyLength(t, n), K.addCustomMetadata(t, o), K.endMessage(t);
2215
1642
  }
2216
1643
  };
2217
- class ji extends Gt {
1644
+ class Li extends Jt {
2218
1645
  visit(t, e) {
2219
1646
  return t == null || e == null ? void 0 : super.visit(t, e);
2220
1647
  }
2221
1648
  visitNull(t, e) {
2222
- return Ft.startNull(e), Ft.endNull(e);
1649
+ return Bt.startNull(e), Bt.endNull(e);
2223
1650
  }
2224
1651
  visitInt(t, e) {
2225
1652
  return z.startInt(e), z.addBitWidth(e, t.bitWidth), z.addIsSigned(e, t.isSigned), z.endInt(e);
2226
1653
  }
2227
1654
  visitFloat(t, e) {
2228
- return st.startFloatingPoint(e), st.addPrecision(e, t.precision), st.endFloatingPoint(e);
1655
+ return et.startFloatingPoint(e), et.addPrecision(e, t.precision), et.endFloatingPoint(e);
2229
1656
  }
2230
1657
  visitBinary(t, e) {
2231
- return vt.startBinary(e), vt.endBinary(e);
1658
+ return pt.startBinary(e), pt.endBinary(e);
2232
1659
  }
2233
1660
  visitLargeBinary(t, e) {
2234
- return It.startLargeBinary(e), It.endLargeBinary(e);
1661
+ return gt.startLargeBinary(e), gt.endLargeBinary(e);
2235
1662
  }
2236
1663
  visitBool(t, e) {
2237
- return Bt.startBool(e), Bt.endBool(e);
1664
+ return mt.startBool(e), mt.endBool(e);
2238
1665
  }
2239
1666
  visitUtf8(t, e) {
2240
- return Ot.startUtf8(e), Ot.endUtf8(e);
1667
+ return St.startUtf8(e), St.endUtf8(e);
2241
1668
  }
2242
1669
  visitLargeUtf8(t, e) {
2243
- return St.startLargeUtf8(e), St.endLargeUtf8(e);
1670
+ return wt.startLargeUtf8(e), wt.endLargeUtf8(e);
2244
1671
  }
2245
1672
  visitDecimal(t, e) {
2246
- return R.startDecimal(e), R.addScale(e, t.scale), R.addPrecision(e, t.precision), R.addBitWidth(e, t.bitWidth), R.endDecimal(e);
1673
+ return N.startDecimal(e), N.addScale(e, t.scale), N.addPrecision(e, t.precision), N.addBitWidth(e, t.bitWidth), N.endDecimal(e);
2247
1674
  }
2248
1675
  visitDate(t, e) {
2249
- return Q.startDate(e), Q.addUnit(e, t.unit), Q.endDate(e);
1676
+ return Z.startDate(e), Z.addUnit(e, t.unit), Z.endDate(e);
2250
1677
  }
2251
1678
  visitTime(t, e) {
2252
1679
  return k.startTime(e), k.addUnit(e, t.unit), k.addBitWidth(e, t.bitWidth), k.endTime(e);
@@ -2256,16 +1683,16 @@ class ji extends Gt {
2256
1683
  return C.startTimestamp(e), C.addUnit(e, t.unit), s !== void 0 && C.addTimezone(e, s), C.endTimestamp(e);
2257
1684
  }
2258
1685
  visitInterval(t, e) {
2259
- return it.startInterval(e), it.addUnit(e, t.unit), it.endInterval(e);
1686
+ return st.startInterval(e), st.addUnit(e, t.unit), st.endInterval(e);
2260
1687
  }
2261
1688
  visitDuration(t, e) {
2262
- return X.startDuration(e), X.addUnit(e, t.unit), X.endDuration(e);
1689
+ return Q.startDuration(e), Q.addUnit(e, t.unit), Q.endDuration(e);
2263
1690
  }
2264
1691
  visitList(t, e) {
2265
- return At.startList(e), At.endList(e);
1692
+ return vt.startList(e), vt.endList(e);
2266
1693
  }
2267
1694
  visitStruct(t, e) {
2268
- return Dt.startStruct_(e), Dt.endStruct_(e);
1695
+ return It.startStruct_(e), It.endStruct_(e);
2269
1696
  }
2270
1697
  visitUnion(t, e) {
2271
1698
  x.startTypeIdsVector(e, t.typeIds.length);
@@ -2274,164 +1701,164 @@ class ji extends Gt {
2274
1701
  }
2275
1702
  visitDictionary(t, e) {
2276
1703
  const s = this.visit(t.indices, e);
2277
- return dt.startDictionaryEncoding(e), dt.addId(e, BigInt(t.id)), dt.addIsOrdered(e, t.isOrdered), s !== void 0 && dt.addIndexType(e, s), dt.endDictionaryEncoding(e);
1704
+ return at.startDictionaryEncoding(e), at.addId(e, BigInt(t.id)), at.addIsOrdered(e, t.isOrdered), s !== void 0 && at.addIndexType(e, s), at.endDictionaryEncoding(e);
2278
1705
  }
2279
1706
  visitFixedSizeBinary(t, e) {
2280
- return tt.startFixedSizeBinary(e), tt.addByteWidth(e, t.byteWidth), tt.endFixedSizeBinary(e);
1707
+ return X.startFixedSizeBinary(e), X.addByteWidth(e, t.byteWidth), X.endFixedSizeBinary(e);
2281
1708
  }
2282
1709
  visitFixedSizeList(t, e) {
2283
- return et.startFixedSizeList(e), et.addListSize(e, t.listSize), et.endFixedSizeList(e);
1710
+ return tt.startFixedSizeList(e), tt.addListSize(e, t.listSize), tt.endFixedSizeList(e);
2284
1711
  }
2285
1712
  visitMap(t, e) {
2286
- return Xt.startMap(e), Xt.addKeysSorted(e, t.keysSorted), Xt.endMap(e);
1713
+ return Kt.startMap(e), Kt.addKeysSorted(e, t.keysSorted), Kt.endMap(e);
2287
1714
  }
2288
1715
  }
2289
- const Ae = new ji();
2290
- function ki(i, t = /* @__PURE__ */ new Map()) {
2291
- return new H(Wi(i, t), te(i.metadata), t);
1716
+ const we = new Li();
1717
+ function Ri(i, t = /* @__PURE__ */ new Map()) {
1718
+ return new H(xi(i, t), qt(i.metadata), t);
2292
1719
  }
2293
- function Cs(i) {
2294
- return new L(i.count, Ws(i.columns), $s(i.columns), null);
1720
+ function Ns(i) {
1721
+ return new L(i.count, xs(i.columns), Us(i.columns), null);
2295
1722
  }
2296
- function Ci(i) {
2297
- return new Y(Cs(i.data), i.id, i.isDelta);
1723
+ function Ni(i) {
1724
+ return new Y(Ns(i.data), i.id, i.isDelta);
2298
1725
  }
2299
- function Wi(i, t) {
2300
- return (i.fields || []).filter(Boolean).map((e) => F.fromJSON(e, t));
1726
+ function xi(i, t) {
1727
+ return (i.fields || []).filter(Boolean).map((e) => A.fromJSON(e, t));
2301
1728
  }
2302
- function ss(i, t) {
2303
- return (i.children || []).filter(Boolean).map((e) => F.fromJSON(e, t));
1729
+ function Ge(i, t) {
1730
+ return (i.children || []).filter(Boolean).map((e) => A.fromJSON(e, t));
2304
1731
  }
2305
- function Ws(i) {
1732
+ function xs(i) {
2306
1733
  return (i || []).reduce((t, e) => [
2307
1734
  ...t,
2308
- new mt(e.count, $i(e.VALIDITY)),
2309
- ...Ws(e.children)
1735
+ new _t(e.count, Ui(e.VALIDITY)),
1736
+ ...xs(e.children)
2310
1737
  ], []);
2311
1738
  }
2312
- function $s(i, t = []) {
1739
+ function Us(i, t = []) {
2313
1740
  for (let e = -1, s = (i || []).length; ++e < s; ) {
2314
1741
  const r = i[e];
2315
- r.VALIDITY && t.push(new U(t.length, r.VALIDITY.length)), r.TYPE_ID && t.push(new U(t.length, r.TYPE_ID.length)), r.OFFSET && t.push(new U(t.length, r.OFFSET.length)), r.DATA && t.push(new U(t.length, r.DATA.length)), t = $s(r.children, t);
1742
+ r.VALIDITY && t.push(new U(t.length, r.VALIDITY.length)), r.TYPE_ID && t.push(new U(t.length, r.TYPE_ID.length)), r.OFFSET && t.push(new U(t.length, r.OFFSET.length)), r.DATA && t.push(new U(t.length, r.DATA.length)), t = Us(r.children, t);
2316
1743
  }
2317
1744
  return t;
2318
1745
  }
2319
- function $i(i) {
1746
+ function Ui(i) {
2320
1747
  return (i || []).reduce((t, e) => t + +(e === 0), 0);
2321
1748
  }
2322
- function Ji(i, t) {
1749
+ function Ti(i, t) {
2323
1750
  let e, s, r, n, o, a;
2324
- return !t || !(n = i.dictionary) ? (o = rs(i, ss(i, t)), r = new F(i.name, o, i.nullable, te(i.metadata))) : t.has(e = n.id) ? (s = (s = n.indexType) ? is(s) : new ie(), a = new re(t.get(e), s, e, n.isOrdered), r = new F(i.name, a, i.nullable, te(i.metadata))) : (s = (s = n.indexType) ? is(s) : new ie(), t.set(e, o = rs(i, ss(i, t))), a = new re(o, s, e, n.isOrdered), r = new F(i.name, a, i.nullable, te(i.metadata))), r || null;
1751
+ return !t || !(n = i.dictionary) ? (o = qe(i, Ge(i, t)), r = new A(i.name, o, i.nullable, qt(i.metadata))) : t.has(e = n.id) ? (s = (s = n.indexType) ? Ke(s) : new Xt(), a = new te(t.get(e), s, e, n.isOrdered), r = new A(i.name, a, i.nullable, qt(i.metadata))) : (s = (s = n.indexType) ? Ke(s) : new Xt(), t.set(e, o = qe(i, Ge(i, t))), a = new te(o, s, e, n.isOrdered), r = new A(i.name, a, i.nullable, qt(i.metadata))), r || null;
2325
1752
  }
2326
- function te(i = []) {
1753
+ function qt(i = []) {
2327
1754
  return new Map(i.map(({ key: t, value: e }) => [t, e]));
2328
1755
  }
2329
- function is(i) {
2330
- return new fe(i.isSigned, i.bitWidth);
1756
+ function Ke(i) {
1757
+ return new de(i.isSigned, i.bitWidth);
2331
1758
  }
2332
- function rs(i, t) {
1759
+ function qe(i, t) {
2333
1760
  const e = i.type.name;
2334
1761
  switch (e) {
2335
1762
  case "NONE":
2336
- return new oe();
1763
+ return new se();
2337
1764
  case "null":
2338
- return new oe();
1765
+ return new se();
2339
1766
  case "binary":
2340
- return new gs();
1767
+ return new us();
2341
1768
  case "largebinary":
2342
- return new ms();
1769
+ return new hs();
2343
1770
  case "utf8":
2344
- return new ys();
1771
+ return new ds();
2345
1772
  case "largeutf8":
2346
- return new ps();
1773
+ return new cs();
2347
1774
  case "bool":
2348
- return new bs();
1775
+ return new as();
2349
1776
  case "list":
2350
- return new _s((t || [])[0]);
1777
+ return new os((t || [])[0]);
2351
1778
  case "struct":
2352
- return new ne(t || []);
1779
+ return new ee(t || []);
2353
1780
  case "struct_":
2354
- return new ne(t || []);
1781
+ return new ee(t || []);
2355
1782
  }
2356
1783
  switch (e) {
2357
1784
  case "int": {
2358
1785
  const s = i.type;
2359
- return new fe(s.isSigned, s.bitWidth);
1786
+ return new de(s.isSigned, s.bitWidth);
2360
1787
  }
2361
1788
  case "floatingpoint": {
2362
1789
  const s = i.type;
2363
- return new Ls(se[s.precision]);
1790
+ return new Bs(Qt[s.precision]);
2364
1791
  }
2365
1792
  case "decimal": {
2366
1793
  const s = i.type;
2367
- return new Ms(s.scale, s.precision, s.bitWidth);
1794
+ return new vs(s.scale, s.precision, s.bitWidth);
2368
1795
  }
2369
1796
  case "date": {
2370
1797
  const s = i.type;
2371
- return new Os(Tt[s.unit]);
1798
+ return new ws(Rt[s.unit]);
2372
1799
  }
2373
1800
  case "time": {
2374
1801
  const s = i.type;
2375
- return new Ds(E[s.unit], s.bitWidth);
1802
+ return new gs(P[s.unit], s.bitWidth);
2376
1803
  }
2377
1804
  case "timestamp": {
2378
1805
  const s = i.type;
2379
- return new Fs(E[s.unit], s.timezone);
1806
+ return new ms(P[s.unit], s.timezone);
2380
1807
  }
2381
1808
  case "interval": {
2382
1809
  const s = i.type;
2383
- return new As(ht[s.unit]);
1810
+ return new ps(ct[s.unit]);
2384
1811
  }
2385
1812
  case "duration": {
2386
1813
  const s = i.type;
2387
- return new Ss(E[s.unit]);
1814
+ return new ys(P[s.unit]);
2388
1815
  }
2389
1816
  case "union": {
2390
1817
  const s = i.type, [r, ...n] = (s.mode + "").toLowerCase(), o = r.toUpperCase() + n.join("");
2391
- return new Is(pt[o], s.typeIds || [], t || []);
1818
+ return new bs(ft[o], s.typeIds || [], t || []);
2392
1819
  }
2393
1820
  case "fixedsizebinary": {
2394
1821
  const s = i.type;
2395
- return new Bs(s.byteWidth);
1822
+ return new _s(s.byteWidth);
2396
1823
  }
2397
1824
  case "fixedsizelist": {
2398
1825
  const s = i.type;
2399
- return new vs(s.listSize, (t || [])[0]);
1826
+ return new fs(s.listSize, (t || [])[0]);
2400
1827
  }
2401
1828
  case "map": {
2402
1829
  const s = i.type;
2403
- return new ws((t || [])[0], s.keysSorted);
1830
+ return new ls((t || [])[0], s.keysSorted);
2404
1831
  }
2405
1832
  }
2406
1833
  throw new Error(`Unrecognized type: "${e}"`);
2407
1834
  }
2408
- var Hi = Es, Yi = yt;
2409
- class O {
1835
+ var Vi = Ms, zi = Vt;
1836
+ class F {
2410
1837
  /** @nocollapse */
2411
1838
  static fromJSON(t, e) {
2412
- const s = new O(0, S.V5, e);
2413
- return s._createHeader = Gi(t, e), s;
1839
+ const s = new F(0, S.V5, e);
1840
+ return s._createHeader = Pi(t, e), s;
2414
1841
  }
2415
1842
  /** @nocollapse */
2416
1843
  static decode(t) {
2417
- t = new Yi(M(t));
2418
- const e = ft.getRootAsMessage(t), s = e.bodyLength(), r = e.version(), n = e.headerType(), o = new O(s, r, n);
2419
- return o._createHeader = qi(e, n), o;
1844
+ t = new zi(M(t));
1845
+ const e = ut.getRootAsMessage(t), s = e.bodyLength(), r = e.version(), n = e.headerType(), o = new F(s, r, n);
1846
+ return o._createHeader = Ei(e, n), o;
2420
1847
  }
2421
1848
  /** @nocollapse */
2422
1849
  static encode(t) {
2423
- const e = new Hi();
1850
+ const e = new Vi();
2424
1851
  let s = -1;
2425
- return t.isSchema() ? s = H.encode(e, t.header()) : t.isRecordBatch() ? s = L.encode(e, t.header()) : t.isDictionaryBatch() && (s = Y.encode(e, t.header())), ft.startMessage(e), ft.addVersion(e, S.V5), ft.addHeader(e, s), ft.addHeaderType(e, t.headerType), ft.addBodyLength(e, BigInt(t.bodyLength)), ft.finishMessageBuffer(e, ft.endMessage(e)), e.asUint8Array();
1852
+ return t.isSchema() ? s = H.encode(e, t.header()) : t.isRecordBatch() ? s = L.encode(e, t.header()) : t.isDictionaryBatch() && (s = Y.encode(e, t.header())), ut.startMessage(e), ut.addVersion(e, S.V5), ut.addHeader(e, s), ut.addHeaderType(e, t.headerType), ut.addBodyLength(e, BigInt(t.bodyLength)), ut.finishMessageBuffer(e, ut.endMessage(e)), e.asUint8Array();
2426
1853
  }
2427
1854
  /** @nocollapse */
2428
1855
  static from(t, e = 0) {
2429
1856
  if (t instanceof H)
2430
- return new O(0, S.V5, _.Schema, t);
1857
+ return new F(0, S.V5, _.Schema, t);
2431
1858
  if (t instanceof L)
2432
- return new O(e, S.V5, _.RecordBatch, t);
1859
+ return new F(e, S.V5, _.RecordBatch, t);
2433
1860
  if (t instanceof Y)
2434
- return new O(e, S.V5, _.DictionaryBatch, t);
1861
+ return new F(e, S.V5, _.DictionaryBatch, t);
2435
1862
  throw new Error(`Unrecognized Message header: ${t}`);
2436
1863
  }
2437
1864
  get type() {
@@ -2462,7 +1889,7 @@ class O {
2462
1889
  return this.headerType === _.DictionaryBatch;
2463
1890
  }
2464
1891
  constructor(t, e, s, r) {
2465
- this._version = e, this._headerType = s, this.body = new Uint8Array(0), this._compression = r?.compression, r && (this._createHeader = () => r), this._bodyLength = P(t);
1892
+ this._version = e, this._headerType = s, this.body = new Uint8Array(0), this._compression = r?.compression, r && (this._createHeader = () => r), this._bodyLength = E(t);
2466
1893
  }
2467
1894
  }
2468
1895
  class L {
@@ -2479,7 +1906,7 @@ class L {
2479
1906
  return this._compression;
2480
1907
  }
2481
1908
  constructor(t, e, s, r) {
2482
- this._nodes = e, this._buffers = s, this._length = P(t), this._compression = r;
1909
+ this._nodes = e, this._buffers = s, this._length = E(t), this._compression = r;
2483
1910
  }
2484
1911
  }
2485
1912
  class Y {
@@ -2502,25 +1929,25 @@ class Y {
2502
1929
  return this.data.buffers;
2503
1930
  }
2504
1931
  constructor(t, e, s = !1) {
2505
- this._data = t, this._isDelta = s, this._id = P(e);
1932
+ this._data = t, this._isDelta = s, this._id = E(e);
2506
1933
  }
2507
1934
  }
2508
1935
  class U {
2509
1936
  constructor(t, e) {
2510
- this.offset = P(t), this.length = P(e);
1937
+ this.offset = E(t), this.length = E(e);
2511
1938
  }
2512
1939
  }
2513
- class mt {
1940
+ class _t {
2514
1941
  constructor(t, e) {
2515
- this.length = P(t), this.nullCount = P(e);
1942
+ this.length = E(t), this.nullCount = E(e);
2516
1943
  }
2517
1944
  }
2518
- class pe {
2519
- constructor(t, e = $t.BUFFER) {
1945
+ class le {
1946
+ constructor(t, e = kt.BUFFER) {
2520
1947
  this.type = t, this.method = e;
2521
1948
  }
2522
1949
  }
2523
- function Gi(i, t) {
1950
+ function Pi(i, t) {
2524
1951
  return (() => {
2525
1952
  switch (t) {
2526
1953
  case _.Schema:
@@ -2533,215 +1960,215 @@ function Gi(i, t) {
2533
1960
  throw new Error(`Unrecognized Message type: { name: ${_[t]}, type: ${t} }`);
2534
1961
  });
2535
1962
  }
2536
- function qi(i, t) {
1963
+ function Ei(i, t) {
2537
1964
  return (() => {
2538
1965
  switch (t) {
2539
1966
  case _.Schema:
2540
1967
  return H.decode(i.header(new B()), /* @__PURE__ */ new Map(), i.version());
2541
1968
  case _.RecordBatch:
2542
- return L.decode(i.header(new K()), i.version());
1969
+ return L.decode(i.header(new q()), i.version());
2543
1970
  case _.DictionaryBatch:
2544
- return Y.decode(i.header(new Rt()), i.version());
1971
+ return Y.decode(i.header(new Ft()), i.version());
2545
1972
  }
2546
1973
  throw new Error(`Unrecognized Message type: { name: ${_[t]}, type: ${t} }`);
2547
1974
  });
2548
1975
  }
2549
- F.encode = or;
2550
- F.decode = rr;
2551
- F.fromJSON = Ji;
2552
- H.encode = nr;
2553
- H.decode = Ki;
2554
- H.fromJSON = ki;
2555
- L.encode = ar;
2556
- L.decode = Zi;
2557
- L.fromJSON = Cs;
2558
- Y.encode = cr;
2559
- Y.decode = Qi;
2560
- Y.fromJSON = Ci;
2561
- mt.encode = dr;
2562
- mt.decode = tr;
2563
- U.encode = hr;
2564
- U.decode = Xi;
2565
- pe.encode = Hs;
2566
- pe.decode = Js;
2567
- function Ki(i, t = /* @__PURE__ */ new Map(), e = S.V5) {
2568
- const s = ir(i, t);
2569
- return new H(s, ee(i), t, e);
2570
- }
2571
- function Zi(i, t = S.V5) {
2572
- return new L(i.length(), er(i), sr(i, t), Js(i.compression()));
2573
- }
2574
- function Qi(i, t = S.V5) {
1976
+ A.encode = qi;
1977
+ A.decode = Gi;
1978
+ A.fromJSON = Ti;
1979
+ H.encode = Ki;
1980
+ H.decode = ji;
1981
+ H.fromJSON = Ri;
1982
+ L.encode = Zi;
1983
+ L.decode = ki;
1984
+ L.fromJSON = Ns;
1985
+ Y.encode = Qi;
1986
+ Y.decode = Ci;
1987
+ Y.fromJSON = Ni;
1988
+ _t.encode = Xi;
1989
+ _t.decode = $i;
1990
+ U.encode = tr;
1991
+ U.decode = Wi;
1992
+ le.encode = Vs;
1993
+ le.decode = Ts;
1994
+ function ji(i, t = /* @__PURE__ */ new Map(), e = S.V5) {
1995
+ const s = Yi(i, t);
1996
+ return new H(s, Zt(i), t, e);
1997
+ }
1998
+ function ki(i, t = S.V5) {
1999
+ return new L(i.length(), Ji(i), Hi(i, t), Ts(i.compression()));
2000
+ }
2001
+ function Ci(i, t = S.V5) {
2575
2002
  return new Y(L.decode(i.data(), t), i.id(), i.isDelta());
2576
2003
  }
2577
- function Xi(i) {
2004
+ function Wi(i) {
2578
2005
  return new U(i.offset(), i.length());
2579
2006
  }
2580
- function tr(i) {
2581
- return new mt(i.length(), i.nullCount());
2007
+ function $i(i) {
2008
+ return new _t(i.length(), i.nullCount());
2582
2009
  }
2583
- function er(i) {
2010
+ function Ji(i) {
2584
2011
  const t = [];
2585
2012
  for (let e, s = -1, r = -1, n = i.nodesLength(); ++s < n; )
2586
- (e = i.nodes(s)) && (t[++r] = mt.decode(e));
2013
+ (e = i.nodes(s)) && (t[++r] = _t.decode(e));
2587
2014
  return t;
2588
2015
  }
2589
- function sr(i, t) {
2016
+ function Hi(i, t) {
2590
2017
  const e = [];
2591
2018
  for (let s, r = -1, n = -1, o = i.buffersLength(); ++r < o; )
2592
2019
  (s = i.buffers(r)) && (t < S.V4 && (s.bb_pos += 8 * (r + 1)), e[++n] = U.decode(s));
2593
2020
  return e;
2594
2021
  }
2595
- function ir(i, t) {
2022
+ function Yi(i, t) {
2596
2023
  const e = [];
2597
2024
  for (let s, r = -1, n = -1, o = i.fieldsLength(); ++r < o; )
2598
- (s = i.fields(r)) && (e[++n] = F.decode(s, t));
2025
+ (s = i.fields(r)) && (e[++n] = A.decode(s, t));
2599
2026
  return e;
2600
2027
  }
2601
- function ns(i, t) {
2028
+ function Ze(i, t) {
2602
2029
  const e = [];
2603
2030
  for (let s, r = -1, n = -1, o = i.childrenLength(); ++r < o; )
2604
- (s = i.children(r)) && (e[++n] = F.decode(s, t));
2031
+ (s = i.children(r)) && (e[++n] = A.decode(s, t));
2605
2032
  return e;
2606
2033
  }
2607
- function rr(i, t) {
2034
+ function Gi(i, t) {
2608
2035
  let e, s, r, n, o, a;
2609
- return !t || !(a = i.dictionary()) ? (r = as(i, ns(i, t)), s = new F(i.name(), r, i.nullable(), ee(i))) : t.has(e = P(a.id())) ? (n = (n = a.indexType()) ? os(n) : new ie(), o = new re(t.get(e), n, e, a.isOrdered()), s = new F(i.name(), o, i.nullable(), ee(i))) : (n = (n = a.indexType()) ? os(n) : new ie(), t.set(e, r = as(i, ns(i, t))), o = new re(r, n, e, a.isOrdered()), s = new F(i.name(), o, i.nullable(), ee(i))), s || null;
2036
+ return !t || !(a = i.dictionary()) ? (r = Xe(i, Ze(i, t)), s = new A(i.name(), r, i.nullable(), Zt(i))) : t.has(e = E(a.id())) ? (n = (n = a.indexType()) ? Qe(n) : new Xt(), o = new te(t.get(e), n, e, a.isOrdered()), s = new A(i.name(), o, i.nullable(), Zt(i))) : (n = (n = a.indexType()) ? Qe(n) : new Xt(), t.set(e, r = Xe(i, Ze(i, t))), o = new te(r, n, e, a.isOrdered()), s = new A(i.name(), o, i.nullable(), Zt(i))), s || null;
2610
2037
  }
2611
- function ee(i) {
2038
+ function Zt(i) {
2612
2039
  const t = /* @__PURE__ */ new Map();
2613
2040
  if (i)
2614
2041
  for (let e, s, r = -1, n = Math.trunc(i.customMetadataLength()); ++r < n; )
2615
2042
  (e = i.customMetadata(r)) && (s = e.key()) != null && t.set(s, e.value());
2616
2043
  return t;
2617
2044
  }
2618
- function os(i) {
2619
- return new fe(i.isSigned(), i.bitWidth());
2045
+ function Qe(i) {
2046
+ return new de(i.isSigned(), i.bitWidth());
2620
2047
  }
2621
- function as(i, t) {
2048
+ function Xe(i, t) {
2622
2049
  const e = i.typeType();
2623
2050
  switch (e) {
2624
2051
  case l.NONE:
2625
- return new oe();
2052
+ return new se();
2626
2053
  case l.Null:
2627
- return new oe();
2054
+ return new se();
2628
2055
  case l.Binary:
2629
- return new gs();
2056
+ return new us();
2630
2057
  case l.LargeBinary:
2631
- return new ms();
2058
+ return new hs();
2632
2059
  case l.Utf8:
2633
- return new ys();
2060
+ return new ds();
2634
2061
  case l.LargeUtf8:
2635
- return new ps();
2062
+ return new cs();
2636
2063
  case l.Bool:
2637
- return new bs();
2064
+ return new as();
2638
2065
  case l.List:
2639
- return new _s((t || [])[0]);
2066
+ return new os((t || [])[0]);
2640
2067
  case l.Struct_:
2641
- return new ne(t || []);
2068
+ return new ee(t || []);
2642
2069
  }
2643
2070
  switch (e) {
2644
2071
  case l.Int: {
2645
2072
  const s = i.type(new z());
2646
- return new fe(s.isSigned(), s.bitWidth());
2073
+ return new de(s.isSigned(), s.bitWidth());
2647
2074
  }
2648
2075
  case l.FloatingPoint: {
2649
- const s = i.type(new st());
2650
- return new Ls(s.precision());
2076
+ const s = i.type(new et());
2077
+ return new Bs(s.precision());
2651
2078
  }
2652
2079
  case l.Decimal: {
2653
- const s = i.type(new R());
2654
- return new Ms(s.scale(), s.precision(), s.bitWidth());
2080
+ const s = i.type(new N());
2081
+ return new vs(s.scale(), s.precision(), s.bitWidth());
2655
2082
  }
2656
2083
  case l.Date: {
2657
- const s = i.type(new Q());
2658
- return new Os(s.unit());
2084
+ const s = i.type(new Z());
2085
+ return new ws(s.unit());
2659
2086
  }
2660
2087
  case l.Time: {
2661
2088
  const s = i.type(new k());
2662
- return new Ds(s.unit(), s.bitWidth());
2089
+ return new gs(s.unit(), s.bitWidth());
2663
2090
  }
2664
2091
  case l.Timestamp: {
2665
2092
  const s = i.type(new C());
2666
- return new Fs(s.unit(), s.timezone());
2093
+ return new ms(s.unit(), s.timezone());
2667
2094
  }
2668
2095
  case l.Interval: {
2669
- const s = i.type(new it());
2670
- return new As(s.unit());
2096
+ const s = i.type(new st());
2097
+ return new ps(s.unit());
2671
2098
  }
2672
2099
  case l.Duration: {
2673
- const s = i.type(new X());
2674
- return new Ss(s.unit());
2100
+ const s = i.type(new Q());
2101
+ return new ys(s.unit());
2675
2102
  }
2676
2103
  case l.Union: {
2677
2104
  const s = i.type(new x());
2678
- return new Is(s.mode(), s.typeIdsArray() || [], t || []);
2105
+ return new bs(s.mode(), s.typeIdsArray() || [], t || []);
2679
2106
  }
2680
2107
  case l.FixedSizeBinary: {
2681
- const s = i.type(new tt());
2682
- return new Bs(s.byteWidth());
2108
+ const s = i.type(new X());
2109
+ return new _s(s.byteWidth());
2683
2110
  }
2684
2111
  case l.FixedSizeList: {
2685
- const s = i.type(new et());
2686
- return new vs(s.listSize(), (t || [])[0]);
2112
+ const s = i.type(new tt());
2113
+ return new fs(s.listSize(), (t || [])[0]);
2687
2114
  }
2688
2115
  case l.Map: {
2689
- const s = i.type(new Xt());
2690
- return new ws((t || [])[0], s.keysSorted());
2116
+ const s = i.type(new Kt());
2117
+ return new ls((t || [])[0], s.keysSorted());
2691
2118
  }
2692
2119
  }
2693
2120
  throw new Error(`Unrecognized type: "${l[e]}" (${e})`);
2694
2121
  }
2695
- function Js(i) {
2696
- return i ? new pe(i.codec(), i.method()) : null;
2122
+ function Ts(i) {
2123
+ return i ? new le(i.codec(), i.method()) : null;
2697
2124
  }
2698
- function nr(i, t) {
2699
- const e = t.fields.map((n) => F.encode(i, n));
2125
+ function Ki(i, t) {
2126
+ const e = t.fields.map((n) => A.encode(i, n));
2700
2127
  B.startFieldsVector(i, e.length);
2701
2128
  const s = B.createFieldsVector(i, e), r = t.metadata && t.metadata.size > 0 ? B.createCustomMetadataVector(i, [...t.metadata].map(([n, o]) => {
2702
2129
  const a = i.createString(`${n}`), c = i.createString(`${o}`);
2703
2130
  return I.startKeyValue(i), I.addKey(i, a), I.addValue(i, c), I.endKeyValue(i);
2704
2131
  })) : -1;
2705
- return B.startSchema(i), B.addFields(i, s), B.addEndianness(i, ur ? Vt.Little : Vt.Big), r !== -1 && B.addCustomMetadata(i, r), B.endSchema(i);
2132
+ return B.startSchema(i), B.addFields(i, s), B.addEndianness(i, er ? Nt.Little : Nt.Big), r !== -1 && B.addCustomMetadata(i, r), B.endSchema(i);
2706
2133
  }
2707
- function or(i, t) {
2134
+ function qi(i, t) {
2708
2135
  let e = -1, s = -1, r = -1;
2709
2136
  const n = t.type;
2710
2137
  let o = t.typeId;
2711
- v.isDictionary(n) ? (o = n.dictionary.typeId, r = Ae.visit(n, i), s = Ae.visit(n.dictionary, i)) : s = Ae.visit(n, i);
2712
- const a = (n.children || []).map((h) => F.encode(i, h)), c = A.createChildrenVector(i, a), d = t.metadata && t.metadata.size > 0 ? A.createCustomMetadataVector(i, [...t.metadata].map(([h, f]) => {
2713
- const N = i.createString(`${h}`), j = i.createString(`${f}`);
2714
- return I.startKeyValue(i), I.addKey(i, N), I.addValue(i, j), I.endKeyValue(i);
2138
+ v.isDictionary(n) ? (o = n.dictionary.typeId, r = we.visit(n, i), s = we.visit(n.dictionary, i)) : s = we.visit(n, i);
2139
+ const a = (n.children || []).map((h) => A.encode(i, h)), c = D.createChildrenVector(i, a), d = t.metadata && t.metadata.size > 0 ? D.createCustomMetadataVector(i, [...t.metadata].map(([h, f]) => {
2140
+ const R = i.createString(`${h}`), j = i.createString(`${f}`);
2141
+ return I.startKeyValue(i), I.addKey(i, R), I.addValue(i, j), I.endKeyValue(i);
2715
2142
  })) : -1;
2716
- return t.name && (e = i.createString(t.name)), A.startField(i), A.addType(i, s), A.addTypeType(i, o), A.addChildren(i, c), A.addNullable(i, !!t.nullable), e !== -1 && A.addName(i, e), r !== -1 && A.addDictionary(i, r), d !== -1 && A.addCustomMetadata(i, d), A.endField(i);
2143
+ return t.name && (e = i.createString(t.name)), D.startField(i), D.addType(i, s), D.addTypeType(i, o), D.addChildren(i, c), D.addNullable(i, !!t.nullable), e !== -1 && D.addName(i, e), r !== -1 && D.addDictionary(i, r), d !== -1 && D.addCustomMetadata(i, d), D.endField(i);
2717
2144
  }
2718
- function ar(i, t) {
2145
+ function Zi(i, t) {
2719
2146
  const e = t.nodes || [], s = t.buffers || [];
2720
- K.startNodesVector(i, e.length);
2147
+ q.startNodesVector(i, e.length);
2721
2148
  for (const a of e.slice().reverse())
2722
- mt.encode(i, a);
2149
+ _t.encode(i, a);
2723
2150
  const r = i.endVector();
2724
- K.startBuffersVector(i, s.length);
2151
+ q.startBuffersVector(i, s.length);
2725
2152
  for (const a of s.slice().reverse())
2726
2153
  U.encode(i, a);
2727
2154
  const n = i.endVector();
2728
2155
  let o = null;
2729
- return t.compression !== null && (o = Hs(i, t.compression)), K.startRecordBatch(i), K.addLength(i, BigInt(t.length)), K.addNodes(i, r), K.addBuffers(i, n), t.compression !== null && o && K.addCompression(i, o), K.endRecordBatch(i);
2156
+ return t.compression !== null && (o = Vs(i, t.compression)), q.startRecordBatch(i), q.addLength(i, BigInt(t.length)), q.addNodes(i, r), q.addBuffers(i, n), t.compression !== null && o && q.addCompression(i, o), q.endRecordBatch(i);
2730
2157
  }
2731
- function Hs(i, t) {
2732
- return jt.startBodyCompression(i), jt.addCodec(i, t.type), jt.addMethod(i, t.method), jt.endBodyCompression(i);
2158
+ function Vs(i, t) {
2159
+ return zt.startBodyCompression(i), zt.addCodec(i, t.type), zt.addMethod(i, t.method), zt.endBodyCompression(i);
2733
2160
  }
2734
- function cr(i, t) {
2161
+ function Qi(i, t) {
2735
2162
  const e = L.encode(i, t.data);
2736
- return Rt.startDictionaryBatch(i), Rt.addId(i, BigInt(t.id)), Rt.addIsDelta(i, t.isDelta), Rt.addData(i, e), Rt.endDictionaryBatch(i);
2163
+ return Ft.startDictionaryBatch(i), Ft.addId(i, BigInt(t.id)), Ft.addIsDelta(i, t.isDelta), Ft.addData(i, e), Ft.endDictionaryBatch(i);
2737
2164
  }
2738
- function dr(i, t) {
2739
- return ks.createFieldNode(i, BigInt(t.length), BigInt(t.nullCount));
2165
+ function Xi(i, t) {
2166
+ return Rs.createFieldNode(i, BigInt(t.length), BigInt(t.nullCount));
2740
2167
  }
2741
- function hr(i, t) {
2742
- return js.createBuffer(i, BigInt(t.offset), BigInt(t.length));
2168
+ function tr(i, t) {
2169
+ return Ls.createBuffer(i, BigInt(t.offset), BigInt(t.length));
2743
2170
  }
2744
- const ur = (() => {
2171
+ const er = (() => {
2745
2172
  const i = new ArrayBuffer(2);
2746
2173
  return new DataView(i).setInt16(
2747
2174
  0,
@@ -2750,7 +2177,7 @@ const ur = (() => {
2750
2177
  /* littleEndian */
2751
2178
  ), new Int16Array(i)[0] === 256;
2752
2179
  })(), g = Object.freeze({ done: !0, value: void 0 });
2753
- class cs {
2180
+ class ts {
2754
2181
  constructor(t) {
2755
2182
  this._json = t;
2756
2183
  }
@@ -2764,7 +2191,7 @@ class cs {
2764
2191
  return this._json.dictionaries || [];
2765
2192
  }
2766
2193
  }
2767
- class Pe {
2194
+ class xe {
2768
2195
  tee() {
2769
2196
  return this._getDOMStream().tee();
2770
2197
  }
@@ -2784,7 +2211,7 @@ class Pe {
2784
2211
  return this._nodeStream || (this._nodeStream = this.toNodeStream());
2785
2212
  }
2786
2213
  }
2787
- class lr extends Pe {
2214
+ class sr extends xe {
2788
2215
  constructor() {
2789
2216
  super(), this._values = [], this.resolvers = [], this._closedPromise = new Promise((t) => this._closedPromiseResolve = t);
2790
2217
  }
@@ -2850,21 +2277,21 @@ class lr extends Pe {
2850
2277
  throw new Error("AsyncQueue is closed");
2851
2278
  }
2852
2279
  }
2853
- class kt extends lr {
2280
+ class Pt extends sr {
2854
2281
  write(t) {
2855
2282
  if ((t = M(t)).byteLength > 0)
2856
2283
  return super.write(t);
2857
2284
  }
2858
2285
  toString(t = !1) {
2859
- return t ? Qe(this.toUint8Array(!0)) : this.toUint8Array(!1).then(Qe);
2286
+ return t ? He(this.toUint8Array(!0)) : this.toUint8Array(!1).then(He);
2860
2287
  }
2861
2288
  toUint8Array(t = !1) {
2862
- return t ? nt(this._values)[0] : u(this, void 0, void 0, function* () {
2289
+ return t ? rt(this._values)[0] : u(this, void 0, void 0, function* () {
2863
2290
  var e, s, r, n;
2864
2291
  const o = [];
2865
2292
  let a = 0;
2866
2293
  try {
2867
- for (var c = !0, d = be(this), h; h = yield d.next(), e = h.done, !e; c = !0) {
2294
+ for (var c = !0, d = ue(this), h; h = yield d.next(), e = h.done, !e; c = !0) {
2868
2295
  n = h.value, c = !1;
2869
2296
  const f = n;
2870
2297
  o.push(f), a += f.byteLength;
@@ -2878,13 +2305,13 @@ class kt extends lr {
2878
2305
  if (s) throw s.error;
2879
2306
  }
2880
2307
  }
2881
- return nt(o, a)[0];
2308
+ return rt(o, a)[0];
2882
2309
  });
2883
2310
  }
2884
2311
  }
2885
- class ce {
2312
+ class re {
2886
2313
  constructor(t) {
2887
- t && (this.source = new fr(V.fromIterable(t)));
2314
+ t && (this.source = new ir(V.fromIterable(t)));
2888
2315
  }
2889
2316
  [Symbol.iterator]() {
2890
2317
  return this;
@@ -2905,9 +2332,9 @@ class ce {
2905
2332
  return this.source.read(t);
2906
2333
  }
2907
2334
  }
2908
- class Lt {
2335
+ class At {
2909
2336
  constructor(t) {
2910
- t instanceof Lt ? this.source = t.source : t instanceof kt ? this.source = new gt(V.fromAsyncIterable(t)) : Ns(t) ? this.source = new gt(V.fromNodeStream(t)) : Rs(t) ? this.source = new gt(V.fromDOMStream(t)) : xs(t) ? this.source = new gt(V.fromDOMStream(t.body)) : _e(t) ? this.source = new gt(V.fromIterable(t)) : Mt(t) ? this.source = new gt(V.fromAsyncIterable(t)) : Pt(t) && (this.source = new gt(V.fromAsyncIterable(t)));
2337
+ t instanceof At ? this.source = t.source : t instanceof Pt ? this.source = new bt(V.fromAsyncIterable(t)) : Is(t) ? this.source = new bt(V.fromNodeStream(t)) : Ss(t) ? this.source = new bt(V.fromDOMStream(t)) : Ds(t) ? this.source = new bt(V.fromDOMStream(t.body)) : he(t) ? this.source = new bt(V.fromIterable(t)) : Dt(t) ? this.source = new bt(V.fromAsyncIterable(t)) : Tt(t) && (this.source = new bt(V.fromAsyncIterable(t)));
2911
2338
  }
2912
2339
  [Symbol.asyncIterator]() {
2913
2340
  return this;
@@ -2934,7 +2361,7 @@ class Lt {
2934
2361
  return this.source.read(t);
2935
2362
  }
2936
2363
  }
2937
- class fr {
2364
+ class ir {
2938
2365
  constructor(t) {
2939
2366
  this.source = t;
2940
2367
  }
@@ -2957,7 +2384,7 @@ class fr {
2957
2384
  return Object.create(this.source.return && this.source.return(t) || g);
2958
2385
  }
2959
2386
  }
2960
- class gt {
2387
+ class bt {
2961
2388
  constructor(t) {
2962
2389
  this.source = t, this._closedPromise = new Promise((e) => this._closedPromiseResolve = e);
2963
2390
  }
@@ -2997,7 +2424,7 @@ class gt {
2997
2424
  });
2998
2425
  }
2999
2426
  }
3000
- class ds extends ce {
2427
+ class es extends re {
3001
2428
  constructor(t, e) {
3002
2429
  super(), this.position = 0, this.buffer = M(t), this.size = e === void 0 ? this.buffer.byteLength : e;
3003
2430
  }
@@ -3026,7 +2453,7 @@ class ds extends ce {
3026
2453
  return this.close(), { done: !0, value: t };
3027
2454
  }
3028
2455
  }
3029
- class de extends Lt {
2456
+ class ne extends At {
3030
2457
  constructor(t, e) {
3031
2458
  super(), this.position = 0, this._handle = t, typeof e == "number" ? this.size = e : this._pending = u(this, void 0, void 0, function* () {
3032
2459
  this.size = (yield t.stat()).size, delete this._pending;
@@ -3086,11 +2513,11 @@ class de extends Lt {
3086
2513
  });
3087
2514
  }
3088
2515
  }
3089
- const _r = 65536;
3090
- function Ut(i) {
2516
+ const rr = 65536;
2517
+ function Lt(i) {
3091
2518
  return i < 0 && (i = 4294967295 + i + 1), `0x${i.toString(16)}`;
3092
2519
  }
3093
- const zt = 8, je = [
2520
+ const xt = 8, Ue = [
3094
2521
  1,
3095
2522
  10,
3096
2523
  100,
@@ -3101,7 +2528,7 @@ const zt = 8, je = [
3101
2528
  1e7,
3102
2529
  1e8
3103
2530
  ];
3104
- class ke {
2531
+ class Te {
3105
2532
  constructor(t) {
3106
2533
  this.buffer = t;
3107
2534
  }
@@ -3126,7 +2553,7 @@ class ke {
3126
2553
  let r = e[3] * s[3];
3127
2554
  this.buffer[0] = r & 65535;
3128
2555
  let n = r >>> 16;
3129
- return r = e[2] * s[3], n += r, r = e[3] * s[2] >>> 0, n += r, this.buffer[0] += n << 16, this.buffer[1] = n >>> 0 < r ? _r : 0, this.buffer[1] += n >>> 16, this.buffer[1] += e[1] * s[3] + e[2] * s[2] + e[3] * s[1], this.buffer[1] += e[0] * s[3] + e[1] * s[2] + e[2] * s[1] + e[3] * s[0] << 16, this;
2556
+ return r = e[2] * s[3], n += r, r = e[3] * s[2] >>> 0, n += r, this.buffer[0] += n << 16, this.buffer[1] = n >>> 0 < r ? rr : 0, this.buffer[1] += n >>> 16, this.buffer[1] += e[1] * s[3] + e[2] * s[2] + e[3] * s[1], this.buffer[1] += e[0] * s[3] + e[1] * s[2] + e[2] * s[1] + e[3] * s[0] << 16, this;
3130
2557
  }
3131
2558
  _plus(t) {
3132
2559
  const e = this.buffer[0] + t.buffer[0] >>> 0;
@@ -3142,10 +2569,10 @@ class ke {
3142
2569
  return t.lessThan(this);
3143
2570
  }
3144
2571
  hex() {
3145
- return `${Ut(this.buffer[1])} ${Ut(this.buffer[0])}`;
2572
+ return `${Lt(this.buffer[1])} ${Lt(this.buffer[0])}`;
3146
2573
  }
3147
2574
  }
3148
- class b extends ke {
2575
+ class b extends Te {
3149
2576
  times(t) {
3150
2577
  return this._times(t), this;
3151
2578
  }
@@ -3164,7 +2591,7 @@ class b extends ke {
3164
2591
  static fromString(t, e = new Uint32Array(2)) {
3165
2592
  const s = t.length, r = new b(e);
3166
2593
  for (let n = 0; n < s; ) {
3167
- const o = zt < s - n ? zt : s - n, a = new b(new Uint32Array([Number.parseInt(t.slice(n, n + o), 10), 0])), c = new b(new Uint32Array([je[o], 0]));
2594
+ const o = xt < s - n ? xt : s - n, a = new b(new Uint32Array([Number.parseInt(t.slice(n, n + o), 10), 0])), c = new b(new Uint32Array([Ue[o], 0]));
3168
2595
  r.times(c), r.plus(a), n += o;
3169
2596
  }
3170
2597
  return r;
@@ -3185,7 +2612,7 @@ class b extends ke {
3185
2612
  return new b(new Uint32Array(t.buffer)).plus(e);
3186
2613
  }
3187
2614
  }
3188
- class D extends ke {
2615
+ class O extends Te {
3189
2616
  negate() {
3190
2617
  return this.buffer[0] = ~this.buffer[0] + 1, this.buffer[1] = ~this.buffer[1], this.buffer[0] == 0 && ++this.buffer[1], this;
3191
2618
  }
@@ -3201,17 +2628,17 @@ class D extends ke {
3201
2628
  }
3202
2629
  /** @nocollapse */
3203
2630
  static from(t, e = new Uint32Array(2)) {
3204
- return D.fromString(typeof t == "string" ? t : t.toString(), e);
2631
+ return O.fromString(typeof t == "string" ? t : t.toString(), e);
3205
2632
  }
3206
2633
  /** @nocollapse */
3207
2634
  static fromNumber(t, e = new Uint32Array(2)) {
3208
- return D.fromString(t.toString(), e);
2635
+ return O.fromString(t.toString(), e);
3209
2636
  }
3210
2637
  /** @nocollapse */
3211
2638
  static fromString(t, e = new Uint32Array(2)) {
3212
- const s = t.startsWith("-"), r = t.length, n = new D(e);
2639
+ const s = t.startsWith("-"), r = t.length, n = new O(e);
3213
2640
  for (let o = s ? 1 : 0; o < r; ) {
3214
- const a = zt < r - o ? zt : r - o, c = new D(new Uint32Array([Number.parseInt(t.slice(o, o + a), 10), 0])), d = new D(new Uint32Array([je[a], 0]));
2641
+ const a = xt < r - o ? xt : r - o, c = new O(new Uint32Array([Number.parseInt(t.slice(o, o + a), 10), 0])), d = new O(new Uint32Array([Ue[a], 0]));
3215
2642
  n.times(d), n.plus(c), o += a;
3216
2643
  }
3217
2644
  return s ? n.negate() : n;
@@ -3220,16 +2647,16 @@ class D extends ke {
3220
2647
  static convertArray(t) {
3221
2648
  const e = new Uint32Array(t.length * 2);
3222
2649
  for (let s = -1, r = t.length; ++s < r; )
3223
- D.from(t[s], new Uint32Array(e.buffer, e.byteOffset + 2 * s * 4, 2));
2650
+ O.from(t[s], new Uint32Array(e.buffer, e.byteOffset + 2 * s * 4, 2));
3224
2651
  return e;
3225
2652
  }
3226
2653
  /** @nocollapse */
3227
2654
  static multiply(t, e) {
3228
- return new D(new Uint32Array(t.buffer)).times(e);
2655
+ return new O(new Uint32Array(t.buffer)).times(e);
3229
2656
  }
3230
2657
  /** @nocollapse */
3231
2658
  static add(t, e) {
3232
- return new D(new Uint32Array(t.buffer)).plus(e);
2659
+ return new O(new Uint32Array(t.buffer)).plus(e);
3233
2660
  }
3234
2661
  }
3235
2662
  class W {
@@ -3237,10 +2664,10 @@ class W {
3237
2664
  this.buffer = t;
3238
2665
  }
3239
2666
  high() {
3240
- return new D(new Uint32Array(this.buffer.buffer, this.buffer.byteOffset + 8, 2));
2667
+ return new O(new Uint32Array(this.buffer.buffer, this.buffer.byteOffset + 8, 2));
3241
2668
  }
3242
2669
  low() {
3243
- return new D(new Uint32Array(this.buffer.buffer, this.buffer.byteOffset, 2));
2670
+ return new O(new Uint32Array(this.buffer.buffer, this.buffer.byteOffset, 2));
3244
2671
  }
3245
2672
  negate() {
3246
2673
  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;
@@ -3257,7 +2684,7 @@ class W {
3257
2684
  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;
3258
2685
  }
3259
2686
  hex() {
3260
- return `${Ut(this.buffer[3])} ${Ut(this.buffer[2])} ${Ut(this.buffer[1])} ${Ut(this.buffer[0])}`;
2687
+ return `${Lt(this.buffer[3])} ${Lt(this.buffer[2])} ${Lt(this.buffer[1])} ${Lt(this.buffer[0])}`;
3261
2688
  }
3262
2689
  /** @nocollapse */
3263
2690
  static multiply(t, e) {
@@ -3279,7 +2706,7 @@ class W {
3279
2706
  static fromString(t, e = new Uint32Array(4)) {
3280
2707
  const s = t.startsWith("-"), r = t.length, n = new W(e);
3281
2708
  for (let o = s ? 1 : 0; o < r; ) {
3282
- const a = zt < r - o ? zt : r - o, c = new W(new Uint32Array([Number.parseInt(t.slice(o, o + a), 10), 0, 0, 0])), d = new W(new Uint32Array([je[a], 0, 0, 0]));
2709
+ const a = xt < r - o ? xt : r - o, c = new W(new Uint32Array([Number.parseInt(t.slice(o, o + a), 10), 0, 0, 0])), d = new W(new Uint32Array([Ue[a], 0, 0, 0]));
3283
2710
  n.times(d), n.plus(c), o += a;
3284
2711
  }
3285
2712
  return s ? n.negate() : n;
@@ -3292,14 +2719,14 @@ class W {
3292
2719
  return e;
3293
2720
  }
3294
2721
  }
3295
- const br = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2722
+ const nr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3296
2723
  __proto__: null,
3297
- BaseInt64: ke,
2724
+ BaseInt64: Te,
3298
2725
  Int128: W,
3299
- Int64: D,
2726
+ Int64: O,
3300
2727
  Uint64: b
3301
2728
  }, Symbol.toStringTag, { value: "Module" }));
3302
- function Ys(i) {
2729
+ function zs(i) {
3303
2730
  var t, e;
3304
2731
  const s = i.length, r = new Int32Array(s * 2);
3305
2732
  for (let n = 0, o = 0; n < s; n++) {
@@ -3308,7 +2735,7 @@ function Ys(i) {
3308
2735
  }
3309
2736
  return r;
3310
2737
  }
3311
- function Gs(i) {
2738
+ function Ps(i) {
3312
2739
  var t, e;
3313
2740
  const s = i.length, r = new Int32Array(s * 4);
3314
2741
  for (let n = 0, o = 0; n < s; n++) {
@@ -3319,7 +2746,7 @@ function Gs(i) {
3319
2746
  }
3320
2747
  return r;
3321
2748
  }
3322
- function qs(i) {
2749
+ function Es(i) {
3323
2750
  const t = i.length, e = new Array(t / 2);
3324
2751
  for (let s = 0, r = 0; s < t; s += 2)
3325
2752
  e[r++] = {
@@ -3328,7 +2755,7 @@ function qs(i) {
3328
2755
  };
3329
2756
  return e;
3330
2757
  }
3331
- function Ks(i, t) {
2758
+ function js(i, t) {
3332
2759
  const e = i.length, s = new Array(e / 4);
3333
2760
  for (let r = 0, n = 0; r < e; r += 4) {
3334
2761
  const o = BigInt(i[r + 3]) << BigInt(32) | BigInt(i[r + 2] >>> 0);
@@ -3340,19 +2767,19 @@ function Ks(i, t) {
3340
2767
  }
3341
2768
  return s;
3342
2769
  }
3343
- const pr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2770
+ const or = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3344
2771
  __proto__: null,
3345
- toIntervalDayTimeInt32Array: Ys,
3346
- toIntervalDayTimeObjects: qs,
3347
- toIntervalMonthDayNanoInt32Array: Gs,
3348
- toIntervalMonthDayNanoObjects: Ks
2772
+ toIntervalDayTimeInt32Array: zs,
2773
+ toIntervalDayTimeObjects: Es,
2774
+ toIntervalMonthDayNanoInt32Array: Ps,
2775
+ toIntervalMonthDayNanoObjects: js
3349
2776
  }, Symbol.toStringTag, { value: "Module" }));
3350
- class Ce extends Gt {
2777
+ class Ve extends Jt {
3351
2778
  constructor(t, e, s, r, n = S.V5) {
3352
2779
  super(), this.nodesIndex = -1, this.buffersIndex = -1, this.bytes = t, this.nodes = e, this.buffers = s, this.dictionaries = r, this.metadataVersion = n;
3353
2780
  }
3354
2781
  visit(t) {
3355
- return super.visit(t instanceof F ? t.type : t);
2782
+ return super.visit(t instanceof A ? t.type : t);
3356
2783
  }
3357
2784
  visitNull(t, { length: e } = this.nextFieldNode()) {
3358
2785
  return m({ type: t, length: e });
@@ -3400,7 +2827,7 @@ class Ce extends Gt {
3400
2827
  return m({ type: t, length: e, nullCount: s, nullBitmap: this.readNullBitmap(t, s), children: this.visitMany(t.children) });
3401
2828
  }
3402
2829
  visitUnion(t, { length: e, nullCount: s } = this.nextFieldNode()) {
3403
- return this.metadataVersion < S.V5 && this.readNullBitmap(t, s), t.mode === pt.Sparse ? this.visitSparseUnion(t, { length: e, nullCount: s }) : this.visitDenseUnion(t, { length: e, nullCount: s });
2830
+ return this.metadataVersion < S.V5 && this.readNullBitmap(t, s), t.mode === ft.Sparse ? this.visitSparseUnion(t, { length: e, nullCount: s }) : this.visitDenseUnion(t, { length: e, nullCount: s });
3404
2831
  }
3405
2832
  visitDenseUnion(t, { length: e, nullCount: s } = this.nextFieldNode()) {
3406
2833
  return m({ type: t, length: e, nullCount: s, typeIds: this.readTypeIds(t), valueOffsets: this.readOffsets(t), children: this.visitMany(t.children) });
@@ -3445,12 +2872,12 @@ class Ce extends Gt {
3445
2872
  return this.dictionaries.get(t.id);
3446
2873
  }
3447
2874
  }
3448
- class yr extends Ce {
2875
+ class ar extends Ve {
3449
2876
  constructor(t, e, s, r, n) {
3450
2877
  super(new Uint8Array(0), e, s, r, n), this.sources = t;
3451
2878
  }
3452
2879
  readNullBitmap(t, e, { offset: s } = this.nextBufferRange()) {
3453
- return e <= 0 ? new Uint8Array(0) : De(this.sources[s]);
2880
+ return e <= 0 ? new Uint8Array(0) : Be(this.sources[s]);
3454
2881
  }
3455
2882
  readOffsets(t, { offset: e } = this.nextBufferRange()) {
3456
2883
  return G(Uint8Array, G(t.OffsetArrayType, this.sources[e]));
@@ -3461,36 +2888,36 @@ class yr extends Ce {
3461
2888
  readData(t, { offset: e } = this.nextBufferRange()) {
3462
2889
  const { sources: s } = this;
3463
2890
  if (v.isTimestamp(t))
3464
- return G(Uint8Array, D.convertArray(s[e]));
2891
+ return G(Uint8Array, O.convertArray(s[e]));
3465
2892
  if ((v.isInt(t) || v.isTime(t)) && t.bitWidth === 64 || v.isDuration(t))
3466
- return G(Uint8Array, D.convertArray(s[e]));
3467
- if (v.isDate(t) && t.unit === Tt.MILLISECOND)
3468
- return G(Uint8Array, D.convertArray(s[e]));
2893
+ return G(Uint8Array, O.convertArray(s[e]));
2894
+ if (v.isDate(t) && t.unit === Rt.MILLISECOND)
2895
+ return G(Uint8Array, O.convertArray(s[e]));
3469
2896
  if (v.isDecimal(t))
3470
2897
  return G(Uint8Array, W.convertArray(s[e]));
3471
2898
  if (v.isBinary(t) || v.isLargeBinary(t) || v.isFixedSizeBinary(t))
3472
- return mr(s[e]);
2899
+ return cr(s[e]);
3473
2900
  if (v.isBool(t))
3474
- return De(s[e]);
2901
+ return Be(s[e]);
3475
2902
  if (v.isUtf8(t) || v.isLargeUtf8(t))
3476
- return ui(s[e].join(""));
2903
+ return ei(s[e].join(""));
3477
2904
  if (v.isInterval(t))
3478
2905
  switch (t.unit) {
3479
- case ht.DAY_TIME:
3480
- return Ys(s[e]);
3481
- case ht.MONTH_DAY_NANO:
3482
- return Gs(s[e]);
2906
+ case ct.DAY_TIME:
2907
+ return zs(s[e]);
2908
+ case ct.MONTH_DAY_NANO:
2909
+ return Ps(s[e]);
3483
2910
  }
3484
2911
  return G(Uint8Array, G(t.ArrayType, s[e].map((r) => +r)));
3485
2912
  }
3486
2913
  }
3487
- function mr(i) {
2914
+ function cr(i) {
3488
2915
  const t = i.join(""), e = new Uint8Array(t.length / 2);
3489
2916
  for (let s = 0; s < t.length; s += 2)
3490
2917
  e[s >> 1] = Number.parseInt(t.slice(s, s + 2), 16);
3491
2918
  return e;
3492
2919
  }
3493
- class gr extends Ce {
2920
+ class dr extends Ve {
3494
2921
  constructor(t, e, s, r, n) {
3495
2922
  super(new Uint8Array(0), e, s, r, n), this.bodyChunks = t;
3496
2923
  }
@@ -3498,10 +2925,10 @@ class gr extends Ce {
3498
2925
  return this.bodyChunks[this.buffersIndex];
3499
2926
  }
3500
2927
  }
3501
- const We = (i) => `Expected ${_[i]} Message in stream, but was null or length 0.`, $e = (i) => `Header pointer of flatbuffer-encoded ${_[i]} Message is null or length 0.`, Zs = (i, t) => `Expected to read ${i} metadata bytes, but only read ${t}.`, Qs = (i, t) => `Expected to read ${i} bytes for message body, but only read ${t}.`;
3502
- class Xs {
2928
+ const ze = (i) => `Expected ${_[i]} Message in stream, but was null or length 0.`, Pe = (i) => `Header pointer of flatbuffer-encoded ${_[i]} Message is null or length 0.`, ks = (i, t) => `Expected to read ${i} metadata bytes, but only read ${t}.`, Cs = (i, t) => `Expected to read ${i} bytes for message body, but only read ${t}.`;
2929
+ class Ws {
3503
2930
  constructor(t) {
3504
- this.source = t instanceof ce ? t : new ce(t);
2931
+ this.source = t instanceof re ? t : new re(t);
3505
2932
  }
3506
2933
  [Symbol.iterator]() {
3507
2934
  return this;
@@ -3521,7 +2948,7 @@ class Xs {
3521
2948
  if ((e = this.next()).done)
3522
2949
  return null;
3523
2950
  if (t != null && e.value.headerType !== t)
3524
- throw new Error(We(t));
2951
+ throw new Error(ze(t));
3525
2952
  return e.value;
3526
2953
  }
3527
2954
  readMessageBody(t) {
@@ -3529,7 +2956,7 @@ class Xs {
3529
2956
  return new Uint8Array(0);
3530
2957
  const e = M(this.source.read(t));
3531
2958
  if (e.byteLength < t)
3532
- throw new Error(Qs(t, e.byteLength));
2959
+ throw new Error(Cs(t, e.byteLength));
3533
2960
  return (
3534
2961
  /* 1. */
3535
2962
  e.byteOffset % 8 === 0 && /* 2. */
@@ -3539,11 +2966,11 @@ class Xs {
3539
2966
  readSchema(t = !1) {
3540
2967
  const e = _.Schema, s = this.readMessage(e), r = s?.header();
3541
2968
  if (t && !r)
3542
- throw new Error($e(e));
2969
+ throw new Error(Pe(e));
3543
2970
  return r;
3544
2971
  }
3545
2972
  readMetadataLength() {
3546
- const t = this.source.read(ye), e = t && new yt(t), s = e?.readInt32(0) || 0;
2973
+ const t = this.source.read(fe), e = t && new Vt(t), s = e?.readInt32(0) || 0;
3547
2974
  return { done: s === 0, value: s };
3548
2975
  }
3549
2976
  readMetadata(t) {
@@ -3551,13 +2978,13 @@ class Xs {
3551
2978
  if (!e)
3552
2979
  return g;
3553
2980
  if (e.byteLength < t)
3554
- throw new Error(Zs(t, e.byteLength));
3555
- return { done: !1, value: O.decode(e) };
2981
+ throw new Error(ks(t, e.byteLength));
2982
+ return { done: !1, value: F.decode(e) };
3556
2983
  }
3557
2984
  }
3558
- class wr {
2985
+ class hr {
3559
2986
  constructor(t, e) {
3560
- this.source = t instanceof Lt ? t : Us(t) ? new de(t, e) : new Lt(t);
2987
+ this.source = t instanceof At ? t : As(t) ? new ne(t, e) : new At(t);
3561
2988
  }
3562
2989
  [Symbol.asyncIterator]() {
3563
2990
  return this;
@@ -3584,7 +3011,7 @@ class wr {
3584
3011
  if ((e = yield this.next()).done)
3585
3012
  return null;
3586
3013
  if (t != null && e.value.headerType !== t)
3587
- throw new Error(We(t));
3014
+ throw new Error(ze(t));
3588
3015
  return e.value;
3589
3016
  });
3590
3017
  }
@@ -3594,7 +3021,7 @@ class wr {
3594
3021
  return new Uint8Array(0);
3595
3022
  const e = M(yield this.source.read(t));
3596
3023
  if (e.byteLength < t)
3597
- throw new Error(Qs(t, e.byteLength));
3024
+ throw new Error(Cs(t, e.byteLength));
3598
3025
  return (
3599
3026
  /* 1. */
3600
3027
  e.byteOffset % 8 === 0 && /* 2. */
@@ -3606,13 +3033,13 @@ class wr {
3606
3033
  return u(this, arguments, void 0, function* (t = !1) {
3607
3034
  const e = _.Schema, s = yield this.readMessage(e), r = s?.header();
3608
3035
  if (t && !r)
3609
- throw new Error($e(e));
3036
+ throw new Error(Pe(e));
3610
3037
  return r;
3611
3038
  });
3612
3039
  }
3613
3040
  readMetadataLength() {
3614
3041
  return u(this, void 0, void 0, function* () {
3615
- const t = yield this.source.read(ye), e = t && new yt(t), s = e?.readInt32(0) || 0;
3042
+ const t = yield this.source.read(fe), e = t && new Vt(t), s = e?.readInt32(0) || 0;
3616
3043
  return { done: s === 0, value: s };
3617
3044
  });
3618
3045
  }
@@ -3622,26 +3049,26 @@ class wr {
3622
3049
  if (!e)
3623
3050
  return g;
3624
3051
  if (e.byteLength < t)
3625
- throw new Error(Zs(t, e.byteLength));
3626
- return { done: !1, value: O.decode(e) };
3052
+ throw new Error(ks(t, e.byteLength));
3053
+ return { done: !1, value: F.decode(e) };
3627
3054
  });
3628
3055
  }
3629
3056
  }
3630
- class vr extends Xs {
3057
+ class ur extends Ws {
3631
3058
  constructor(t) {
3632
- super(new Uint8Array(0)), this._schema = !1, this._body = [], this._batchIndex = 0, this._dictionaryIndex = 0, this._json = t instanceof cs ? t : new cs(t);
3059
+ super(new Uint8Array(0)), this._schema = !1, this._body = [], this._batchIndex = 0, this._dictionaryIndex = 0, this._json = t instanceof ts ? t : new ts(t);
3633
3060
  }
3634
3061
  next() {
3635
3062
  const { _json: t } = this;
3636
3063
  if (!this._schema)
3637
- return this._schema = !0, { done: !1, value: O.fromJSON(t.schema, _.Schema) };
3064
+ return this._schema = !0, { done: !1, value: F.fromJSON(t.schema, _.Schema) };
3638
3065
  if (this._dictionaryIndex < t.dictionaries.length) {
3639
3066
  const e = t.dictionaries[this._dictionaryIndex++];
3640
- return this._body = e.data.columns, { done: !1, value: O.fromJSON(e, _.DictionaryBatch) };
3067
+ return this._body = e.data.columns, { done: !1, value: F.fromJSON(e, _.DictionaryBatch) };
3641
3068
  }
3642
3069
  if (this._batchIndex < t.batches.length) {
3643
3070
  const e = t.batches[this._batchIndex++];
3644
- return this._body = e.columns, { done: !1, value: O.fromJSON(e, _.RecordBatch) };
3071
+ return this._body = e.columns, { done: !1, value: F.fromJSON(e, _.RecordBatch) };
3645
3072
  }
3646
3073
  return this._body = [], g;
3647
3074
  }
@@ -3663,27 +3090,27 @@ class vr extends Xs {
3663
3090
  if ((e = this.next()).done)
3664
3091
  return null;
3665
3092
  if (t != null && e.value.headerType !== t)
3666
- throw new Error(We(t));
3093
+ throw new Error(ze(t));
3667
3094
  return e.value;
3668
3095
  }
3669
3096
  readSchema() {
3670
3097
  const t = _.Schema, e = this.readMessage(t), s = e?.header();
3671
3098
  if (!e || !s)
3672
- throw new Error($e(t));
3099
+ throw new Error(Pe(t));
3673
3100
  return s;
3674
3101
  }
3675
3102
  }
3676
- const ye = 4, Ue = "ARROW1", Ht = new Uint8Array(Ue.length);
3677
- for (let i = 0; i < Ue.length; i += 1)
3678
- Ht[i] = Ue.codePointAt(i);
3679
- function Je(i, t = 0) {
3680
- for (let e = -1, s = Ht.length; ++e < s; )
3681
- if (Ht[e] !== i[t + e])
3103
+ const fe = 4, Fe = "ARROW1", Wt = new Uint8Array(Fe.length);
3104
+ for (let i = 0; i < Fe.length; i += 1)
3105
+ Wt[i] = Fe.codePointAt(i);
3106
+ function Ee(i, t = 0) {
3107
+ for (let e = -1, s = Wt.length; ++e < s; )
3108
+ if (Wt[e] !== i[t + e])
3682
3109
  return !1;
3683
3110
  return !0;
3684
3111
  }
3685
- const qt = Ht.length, ti = qt + ye, Br = qt * 2 + ye;
3686
- class Ir {
3112
+ const Ht = Wt.length, $s = Ht + fe, lr = Ht * 2 + fe;
3113
+ class fr {
3687
3114
  constructor() {
3688
3115
  this.LZ4_FRAME_MAGIC = new Uint8Array([4, 34, 77, 24]), this.MIN_HEADER_LENGTH = 7;
3689
3116
  }
@@ -3704,7 +3131,7 @@ class Ir {
3704
3131
  return (t[4] & 192) >> 6 === 1;
3705
3132
  }
3706
3133
  }
3707
- class Sr {
3134
+ class _r {
3708
3135
  constructor() {
3709
3136
  this.ZSTD_MAGIC = new Uint8Array([40, 181, 47, 253]), this.MIN_HEADER_LENGTH = 6;
3710
3137
  }
@@ -3722,17 +3149,17 @@ class Sr {
3722
3149
  return this.ZSTD_MAGIC.every((e, s) => t[s] === e);
3723
3150
  }
3724
3151
  }
3725
- const Ar = {
3726
- [rt.LZ4_FRAME]: new Ir(),
3727
- [rt.ZSTD]: new Sr()
3152
+ const br = {
3153
+ [it.LZ4_FRAME]: new fr(),
3154
+ [it.ZSTD]: new _r()
3728
3155
  };
3729
- class Fr {
3156
+ class yr {
3730
3157
  constructor() {
3731
3158
  this.registry = {};
3732
3159
  }
3733
3160
  set(t, e) {
3734
- if (e?.encode && typeof e.encode == "function" && !Ar[t].isValidCodecEncode(e))
3735
- throw new Error(`Encoder for ${rt[t]} is not valid.`);
3161
+ if (e?.encode && typeof e.encode == "function" && !br[t].isValidCodecEncode(e))
3162
+ throw new Error(`Encoder for ${it[t]} is not valid.`);
3736
3163
  this.registry[t] = e;
3737
3164
  }
3738
3165
  get(t) {
@@ -3740,8 +3167,8 @@ class Fr {
3740
3167
  return ((e = this.registry) === null || e === void 0 ? void 0 : e[t]) || null;
3741
3168
  }
3742
3169
  }
3743
- const Te = new Fr(), ei = -1, Ve = 8;
3744
- class $ extends Pe {
3170
+ const Me = new yr(), Js = -1, Le = 8;
3171
+ class $ extends xe {
3745
3172
  constructor(t) {
3746
3173
  super(), this._impl = t;
3747
3174
  }
@@ -3795,7 +3222,7 @@ class $ extends Pe {
3795
3222
  }
3796
3223
  open(t) {
3797
3224
  const e = this._impl.open(t);
3798
- return Mt(e) ? e.then(() => this) : this;
3225
+ return Dt(e) ? e.then(() => this) : this;
3799
3226
  }
3800
3227
  readRecordBatch(t) {
3801
3228
  return this._impl.isFile() ? this._impl.readRecordBatch(t) : null;
@@ -3823,16 +3250,16 @@ class $ extends Pe {
3823
3250
  }
3824
3251
  /** @nocollapse */
3825
3252
  static from(t) {
3826
- return t instanceof $ ? t : Oe(t) ? Lr(t) : Us(t) ? xr(t) : Mt(t) ? u(this, void 0, void 0, function* () {
3253
+ return t instanceof $ ? t : Ie(t) ? wr(t) : As(t) ? Ir(t) : Dt(t) ? u(this, void 0, void 0, function* () {
3827
3254
  return yield $.from(yield t);
3828
- }) : xs(t) || Rs(t) || Ns(t) || Pt(t) ? Rr(new Lt(t)) : Nr(new ce(t));
3255
+ }) : Ds(t) || Ss(t) || Is(t) || Tt(t) ? Br(new At(t)) : vr(new re(t));
3829
3256
  }
3830
3257
  /** @nocollapse */
3831
3258
  static readAll(t) {
3832
- return t instanceof $ ? t.isSync() ? hs(t) : us(t) : Oe(t) || ArrayBuffer.isView(t) || _e(t) || li(t) ? hs(t) : us(t);
3259
+ return t instanceof $ ? t.isSync() ? ss(t) : is(t) : Ie(t) || ArrayBuffer.isView(t) || he(t) || si(t) ? ss(t) : is(t);
3833
3260
  }
3834
3261
  }
3835
- class Yt extends $ {
3262
+ class $t extends $ {
3836
3263
  constructor(t) {
3837
3264
  super(t), this._impl = t;
3838
3265
  }
@@ -3843,12 +3270,12 @@ class Yt extends $ {
3843
3270
  return this._impl[Symbol.iterator]();
3844
3271
  }
3845
3272
  [Symbol.asyncIterator]() {
3846
- return Et(this, arguments, function* () {
3847
- yield y(yield* fi(be(this[Symbol.iterator]())));
3273
+ return Ut(this, arguments, function* () {
3274
+ yield p(yield* ii(ue(this[Symbol.iterator]())));
3848
3275
  });
3849
3276
  }
3850
3277
  }
3851
- class he extends $ {
3278
+ class oe extends $ {
3852
3279
  constructor(t) {
3853
3280
  super(t), this._impl = t;
3854
3281
  }
@@ -3857,7 +3284,7 @@ class he extends $ {
3857
3284
  var t, e, s, r;
3858
3285
  const n = new Array();
3859
3286
  try {
3860
- for (var o = !0, a = be(this), c; c = yield a.next(), t = c.done, !t; o = !0) {
3287
+ for (var o = !0, a = ue(this), c; c = yield a.next(), t = c.done, !t; o = !0) {
3861
3288
  r = c.value, o = !1;
3862
3289
  const d = r;
3863
3290
  n.push(d);
@@ -3881,17 +3308,17 @@ class he extends $ {
3881
3308
  return this._impl[Symbol.asyncIterator]();
3882
3309
  }
3883
3310
  }
3884
- class He extends Yt {
3311
+ class je extends $t {
3885
3312
  constructor(t) {
3886
3313
  super(t), this._impl = t;
3887
3314
  }
3888
3315
  }
3889
- class Dr extends he {
3316
+ class pr extends oe {
3890
3317
  constructor(t) {
3891
3318
  super(t), this._impl = t;
3892
3319
  }
3893
3320
  }
3894
- class si {
3321
+ class Hs {
3895
3322
  get numDictionaries() {
3896
3323
  return this._dictionaryIndex;
3897
3324
  }
@@ -3919,7 +3346,7 @@ class si {
3919
3346
  _loadRecordBatch(t, e) {
3920
3347
  let s;
3921
3348
  if (t.compression != null) {
3922
- const n = Te.get(t.compression.type);
3349
+ const n = Me.get(t.compression.type);
3923
3350
  if (n?.decode && typeof n.decode == "function") {
3924
3351
  const { decommpressedBody: o, buffers: a } = this._decompressBuffers(t, e, n);
3925
3352
  s = this._loadCompressedVectors(t, o, this.schema.fields), t = new L(t.length, t.nodes, a, null);
@@ -3927,28 +3354,28 @@ class si {
3927
3354
  throw new Error("Record batch is compressed but codec not found");
3928
3355
  } else
3929
3356
  s = this._loadVectors(t, e, this.schema.fields);
3930
- const r = m({ type: new ne(this.schema.fields), length: t.length, children: s });
3931
- return new Ct(this.schema, r);
3357
+ const r = m({ type: new ee(this.schema.fields), length: t.length, children: s });
3358
+ return new Et(this.schema, r);
3932
3359
  }
3933
3360
  _loadDictionaryBatch(t, e) {
3934
3361
  const { id: s, isDelta: r } = t, { dictionaries: n, schema: o } = this, a = n.get(s), c = o.dictionaries.get(s);
3935
3362
  let d;
3936
3363
  if (t.data.compression != null) {
3937
- const h = Te.get(t.data.compression.type);
3364
+ const h = Me.get(t.data.compression.type);
3938
3365
  if (h?.decode && typeof h.decode == "function") {
3939
- const { decommpressedBody: f, buffers: N } = this._decompressBuffers(t.data, e, h);
3940
- d = this._loadCompressedVectors(t.data, f, [c]), t = new Y(new L(t.data.length, t.data.nodes, N, null), s, r);
3366
+ const { decommpressedBody: f, buffers: R } = this._decompressBuffers(t.data, e, h);
3367
+ d = this._loadCompressedVectors(t.data, f, [c]), t = new Y(new L(t.data.length, t.data.nodes, R, null), s, r);
3941
3368
  } else
3942
3369
  throw new Error("Dictionary batch is compressed but codec not found");
3943
3370
  } else
3944
3371
  d = this._loadVectors(t.data, e, [c]);
3945
- return (a && r ? a.concat(new at(d)) : new at(d)).memoize();
3372
+ return (a && r ? a.concat(new ot(d)) : new ot(d)).memoize();
3946
3373
  }
3947
3374
  _loadVectors(t, e, s) {
3948
- return new Ce(e, t.nodes, t.buffers, this.dictionaries, this.schema.metadataVersion).visitMany(s);
3375
+ return new Ve(e, t.nodes, t.buffers, this.dictionaries, this.schema.metadataVersion).visitMany(s);
3949
3376
  }
3950
3377
  _loadCompressedVectors(t, e, s) {
3951
- return new gr(e, t.nodes, t.buffers, this.dictionaries, this.schema.metadataVersion).visitMany(s);
3378
+ return new dr(e, t.nodes, t.buffers, this.dictionaries, this.schema.metadataVersion).visitMany(s);
3952
3379
  }
3953
3380
  _decompressBuffers(t, e, s) {
3954
3381
  const r = [], n = [];
@@ -3958,10 +3385,10 @@ class si {
3958
3385
  r.push(new Uint8Array(0)), n.push(new U(o, 0));
3959
3386
  continue;
3960
3387
  }
3961
- const d = new yt(e.subarray(a, a + c)), h = P(d.readInt64(0)), f = d.bytes().subarray(Ve), N = h === ei ? f : s.decode(f);
3962
- r.push(N);
3388
+ const d = new Vt(e.subarray(a, a + c)), h = E(d.readInt64(0)), f = d.bytes().subarray(Le), R = h === Js ? f : s.decode(f);
3389
+ r.push(R);
3963
3390
  const j = (o + 7 & -8) - o;
3964
- o += j, n.push(new U(o, N.length)), o += N.length;
3391
+ o += j, n.push(new U(o, R.length)), o += R.length;
3965
3392
  }
3966
3393
  return {
3967
3394
  decommpressedBody: r,
@@ -3969,9 +3396,9 @@ class si {
3969
3396
  };
3970
3397
  }
3971
3398
  }
3972
- class ue extends si {
3399
+ class ae extends Hs {
3973
3400
  constructor(t, e) {
3974
- super(e), this._reader = Oe(t) ? new vr(this._handle = t) : new Xs(this._handle = t);
3401
+ super(e), this._reader = Ie(t) ? new ur(this._handle = t) : new Ws(this._handle = t);
3975
3402
  }
3976
3403
  isSync() {
3977
3404
  return !0;
@@ -3986,7 +3413,7 @@ class ue extends si {
3986
3413
  !this.closed && (this.closed = !0) && (this.reset()._reader.return(), this._reader = null, this.dictionaries = null);
3987
3414
  }
3988
3415
  open(t) {
3989
- return this.closed || (this.autoDestroy = ri(this, t), this.schema || (this.schema = this._reader.readSchema()) || this.cancel()), this;
3416
+ return this.closed || (this.autoDestroy = Gs(this, t), this.schema || (this.schema = this._reader.readSchema()) || this.cancel()), this;
3990
3417
  }
3991
3418
  throw(t) {
3992
3419
  return !this.closed && this.autoDestroy && (this.closed = !0) ? this.reset()._reader.throw(t) : g;
@@ -4011,15 +3438,15 @@ class ue extends si {
4011
3438
  const s = t.header(), r = e.readMessageBody(t.bodyLength), n = this._loadDictionaryBatch(s, r);
4012
3439
  this.dictionaries.set(s.id, n);
4013
3440
  }
4014
- return this.schema && this._recordBatchIndex === 0 ? (this._recordBatchIndex++, { done: !1, value: new Ee(this.schema) }) : this.return();
3441
+ return this.schema && this._recordBatchIndex === 0 ? (this._recordBatchIndex++, { done: !1, value: new Ne(this.schema) }) : this.return();
4015
3442
  }
4016
3443
  _readNextMessageAndValidate(t) {
4017
3444
  return this._reader.readMessage(t);
4018
3445
  }
4019
3446
  }
4020
- class le extends si {
3447
+ class ce extends Hs {
4021
3448
  constructor(t, e) {
4022
- super(e), this._reader = new wr(this._handle = t);
3449
+ super(e), this._reader = new hr(this._handle = t);
4023
3450
  }
4024
3451
  isAsync() {
4025
3452
  return !0;
@@ -4037,7 +3464,7 @@ class le extends si {
4037
3464
  }
4038
3465
  open(t) {
4039
3466
  return u(this, void 0, void 0, function* () {
4040
- return this.closed || (this.autoDestroy = ri(this, t), this.schema || (this.schema = yield this._reader.readSchema()) || (yield this.cancel())), this;
3467
+ return this.closed || (this.autoDestroy = Gs(this, t), this.schema || (this.schema = yield this._reader.readSchema()) || (yield this.cancel())), this;
4041
3468
  });
4042
3469
  }
4043
3470
  throw(t) {
@@ -4068,7 +3495,7 @@ class le extends si {
4068
3495
  const s = t.header(), r = yield e.readMessageBody(t.bodyLength), n = this._loadDictionaryBatch(s, r);
4069
3496
  this.dictionaries.set(s.id, n);
4070
3497
  }
4071
- return this.schema && this._recordBatchIndex === 0 ? (this._recordBatchIndex++, { done: !1, value: new Ee(this.schema) }) : yield this.return();
3498
+ return this.schema && this._recordBatchIndex === 0 ? (this._recordBatchIndex++, { done: !1, value: new Ne(this.schema) }) : yield this.return();
4072
3499
  });
4073
3500
  }
4074
3501
  _readNextMessageAndValidate(t) {
@@ -4077,7 +3504,7 @@ class le extends si {
4077
3504
  });
4078
3505
  }
4079
3506
  }
4080
- class ii extends ue {
3507
+ class Ys extends ae {
4081
3508
  get footer() {
4082
3509
  return this._footer;
4083
3510
  }
@@ -4088,7 +3515,7 @@ class ii extends ue {
4088
3515
  return this._footer ? this._footer.numRecordBatches : 0;
4089
3516
  }
4090
3517
  constructor(t, e) {
4091
- super(t instanceof ds ? t : new ds(t), e);
3518
+ super(t instanceof es ? t : new es(t), e);
4092
3519
  }
4093
3520
  isSync() {
4094
3521
  return !0;
@@ -4131,8 +3558,8 @@ class ii extends ue {
4131
3558
  }
4132
3559
  }
4133
3560
  _readFooter() {
4134
- const { _handle: t } = this, e = t.size - ti, s = t.readInt32(e), r = t.readAt(e - s, s);
4135
- return Jt.decode(r);
3561
+ const { _handle: t } = this, e = t.size - $s, s = t.readInt32(e), r = t.readAt(e - s, s);
3562
+ return Ct.decode(r);
4136
3563
  }
4137
3564
  _readNextMessageAndValidate(t) {
4138
3565
  var e;
@@ -4144,7 +3571,7 @@ class ii extends ue {
4144
3571
  return null;
4145
3572
  }
4146
3573
  }
4147
- class Or extends le {
3574
+ class mr extends ce {
4148
3575
  get footer() {
4149
3576
  return this._footer;
4150
3577
  }
@@ -4156,7 +3583,7 @@ class Or extends le {
4156
3583
  }
4157
3584
  constructor(t, ...e) {
4158
3585
  const s = typeof e[0] != "number" ? e.shift() : void 0, r = e[0] instanceof Map ? e.shift() : void 0;
4159
- super(t instanceof de ? t : new de(t, s), r);
3586
+ super(t instanceof ne ? t : new ne(t, s), r);
4160
3587
  }
4161
3588
  isFile() {
4162
3589
  return !0;
@@ -4211,8 +3638,8 @@ class Or extends le {
4211
3638
  return u(this, void 0, void 0, function* () {
4212
3639
  const { _handle: t } = this;
4213
3640
  t._pending && (yield t._pending);
4214
- const e = t.size - ti, s = yield t.readInt32(e), r = yield t.readAt(e - s, s);
4215
- return Jt.decode(r);
3641
+ const e = t.size - $s, s = yield t.readInt32(e), r = yield t.readAt(e - s, s);
3642
+ return Ct.decode(r);
4216
3643
  });
4217
3644
  }
4218
3645
  _readNextMessageAndValidate(t) {
@@ -4226,18 +3653,18 @@ class Or extends le {
4226
3653
  });
4227
3654
  }
4228
3655
  }
4229
- class Mr extends ue {
3656
+ class gr extends ae {
4230
3657
  constructor(t, e) {
4231
3658
  super(t, e);
4232
3659
  }
4233
3660
  _loadVectors(t, e, s) {
4234
- return new yr(e, t.nodes, t.buffers, this.dictionaries, this.schema.metadataVersion).visitMany(s);
3661
+ return new ar(e, t.nodes, t.buffers, this.dictionaries, this.schema.metadataVersion).visitMany(s);
4235
3662
  }
4236
3663
  }
4237
- function ri(i, t) {
3664
+ function Gs(i, t) {
4238
3665
  return t && typeof t.autoDestroy == "boolean" ? t.autoDestroy : i.autoDestroy;
4239
3666
  }
4240
- function* hs(i) {
3667
+ function* ss(i) {
4241
3668
  const t = $.from(i);
4242
3669
  try {
4243
3670
  if (!t.open({ autoDestroy: !1 }).closed)
@@ -4248,53 +3675,53 @@ function* hs(i) {
4248
3675
  t.cancel();
4249
3676
  }
4250
3677
  }
4251
- function us(i) {
4252
- return Et(this, arguments, function* () {
4253
- const e = yield y($.from(i));
3678
+ function is(i) {
3679
+ return Ut(this, arguments, function* () {
3680
+ const e = yield p($.from(i));
4254
3681
  try {
4255
- if (!(yield y(e.open({ autoDestroy: !1 }))).closed)
3682
+ if (!(yield p(e.open({ autoDestroy: !1 }))).closed)
4256
3683
  do
4257
- yield yield y(e);
4258
- while (!(yield y(e.reset().open())).closed);
3684
+ yield yield p(e);
3685
+ while (!(yield p(e.reset().open())).closed);
4259
3686
  } finally {
4260
- yield y(e.cancel());
3687
+ yield p(e.cancel());
4261
3688
  }
4262
3689
  });
4263
3690
  }
4264
- function Lr(i) {
4265
- return new Yt(new Mr(i));
3691
+ function wr(i) {
3692
+ return new $t(new gr(i));
4266
3693
  }
4267
- function Nr(i) {
4268
- const t = i.peek(qt + 7 & -8);
4269
- return t && t.byteLength >= 4 ? Je(t) ? new He(new ii(i.read())) : new Yt(new ue(i)) : new Yt(new ue((function* () {
3694
+ function vr(i) {
3695
+ const t = i.peek(Ht + 7 & -8);
3696
+ return t && t.byteLength >= 4 ? Ee(t) ? new je(new Ys(i.read())) : new $t(new ae(i)) : new $t(new ae((function* () {
4270
3697
  })()));
4271
3698
  }
4272
- function Rr(i) {
3699
+ function Br(i) {
4273
3700
  return u(this, void 0, void 0, function* () {
4274
- const t = yield i.peek(qt + 7 & -8);
4275
- return t && t.byteLength >= 4 ? Je(t) ? new He(new ii(yield i.read())) : new he(new le(i)) : new he(new le((function() {
4276
- return Et(this, arguments, function* () {
3701
+ const t = yield i.peek(Ht + 7 & -8);
3702
+ return t && t.byteLength >= 4 ? Ee(t) ? new je(new Ys(yield i.read())) : new oe(new ce(i)) : new oe(new ce((function() {
3703
+ return Ut(this, arguments, function* () {
4277
3704
  });
4278
3705
  })()));
4279
3706
  });
4280
3707
  }
4281
- function xr(i) {
3708
+ function Ir(i) {
4282
3709
  return u(this, void 0, void 0, function* () {
4283
- const { size: t } = yield i.stat(), e = new de(i, t);
4284
- return t >= Br && Je(yield e.readAt(0, qt + 7 & -8)) ? new Dr(new Or(e)) : new he(new le(e));
3710
+ const { size: t } = yield i.stat(), e = new ne(i, t);
3711
+ return t >= lr && Ee(yield e.readAt(0, Ht + 7 & -8)) ? new pr(new mr(e)) : new oe(new ce(e));
4285
3712
  });
4286
3713
  }
4287
- class w extends Gt {
3714
+ class w extends Jt {
4288
3715
  /** @nocollapse */
4289
3716
  static assemble(...t) {
4290
- const e = (r) => r.flatMap((n) => Array.isArray(n) ? e(n) : n instanceof Ct ? n.data.children : n.data), s = new w();
3717
+ const e = (r) => r.flatMap((n) => Array.isArray(n) ? e(n) : n instanceof Et ? n.data.children : n.data), s = new w();
4291
3718
  return s.visitMany(e(t)), s;
4292
3719
  }
4293
3720
  constructor() {
4294
3721
  super(), this._byteLength = 0, this._nodes = [], this._buffers = [], this._bufferRegions = [];
4295
3722
  }
4296
3723
  visit(t) {
4297
- if (t instanceof at)
3724
+ if (t instanceof ot)
4298
3725
  return this.visitMany(t.data), this;
4299
3726
  const { type: e } = t;
4300
3727
  if (!v.isDictionary(e)) {
@@ -4302,10 +3729,10 @@ class w extends Gt {
4302
3729
  if (s > 2147483647)
4303
3730
  throw new RangeError("Cannot write arrays larger than 2^31 - 1 in length");
4304
3731
  if (v.isUnion(e))
4305
- this.nodes.push(new mt(s, 0));
3732
+ this.nodes.push(new _t(s, 0));
4306
3733
  else {
4307
3734
  const { nullCount: r } = t;
4308
- v.isNull(e) || J.call(this, r <= 0 ? new Uint8Array(0) : Ts(t.offset, s, t.nullBitmap)), this.nodes.push(new mt(s, r));
3735
+ v.isNull(e) || J.call(this, r <= 0 ? new Uint8Array(0) : Os(t.offset, s, t.nullBitmap)), this.nodes.push(new _t(s, r));
4309
3736
  }
4310
3737
  }
4311
3738
  return super.visit(t);
@@ -4333,68 +3760,68 @@ function J(i) {
4333
3760
  const t = i.byteLength + 7 & -8;
4334
3761
  return this.buffers.push(i), this.bufferRegions.push(new U(this._byteLength, t)), this._byteLength += t, this;
4335
3762
  }
4336
- function Ur(i) {
3763
+ function Sr(i) {
4337
3764
  var t;
4338
3765
  const { type: e, length: s, typeIds: r, valueOffsets: n } = i;
4339
- if (J.call(this, r), e.mode === pt.Sparse)
4340
- return ze.call(this, i);
4341
- if (e.mode === pt.Dense) {
3766
+ if (J.call(this, r), e.mode === ft.Sparse)
3767
+ return Re.call(this, i);
3768
+ if (e.mode === ft.Dense) {
4342
3769
  if (i.offset <= 0)
4343
- return J.call(this, n), ze.call(this, i);
3770
+ return J.call(this, n), Re.call(this, i);
4344
3771
  {
4345
3772
  const o = new Int32Array(s), a = /* @__PURE__ */ Object.create(null), c = /* @__PURE__ */ Object.create(null);
4346
3773
  for (let d, h, f = -1; ++f < s; )
4347
3774
  (d = r[f]) !== void 0 && ((h = a[d]) === void 0 && (h = a[d] = n[f]), o[f] = n[f] - h, c[d] = ((t = c[d]) !== null && t !== void 0 ? t : 0) + 1);
4348
3775
  J.call(this, o), this.visitMany(i.children.map((d, h) => {
4349
- const f = e.typeIds[h], N = a[f], j = c[f];
4350
- return d.slice(N, Math.min(s, j));
3776
+ const f = e.typeIds[h], R = a[f], j = c[f];
3777
+ return d.slice(R, Math.min(s, j));
4351
3778
  }));
4352
3779
  }
4353
3780
  }
4354
3781
  return this;
4355
3782
  }
4356
- function Tr(i) {
3783
+ function Dr(i) {
4357
3784
  let t;
4358
- return i.nullCount >= i.length ? J.call(this, new Uint8Array(0)) : (t = i.values) instanceof Uint8Array ? J.call(this, Ts(i.offset, i.length, t)) : J.call(this, De(i.values));
3785
+ return i.nullCount >= i.length ? J.call(this, new Uint8Array(0)) : (t = i.values) instanceof Uint8Array ? J.call(this, Os(i.offset, i.length, t)) : J.call(this, Be(i.values));
4359
3786
  }
4360
- function ut(i) {
3787
+ function dt(i) {
4361
3788
  return J.call(this, i.values.subarray(0, i.length * i.stride));
4362
3789
  }
4363
- function me(i) {
4364
- const { length: t, values: e, valueOffsets: s } = i, r = P(s[0]), n = P(s[t]), o = Math.min(n - r, e.byteLength - r);
4365
- return J.call(this, Vs(-r, t + 1, s)), J.call(this, e.subarray(r, r + o)), this;
3790
+ function _e(i) {
3791
+ const { length: t, values: e, valueOffsets: s } = i, r = E(s[0]), n = E(s[t]), o = Math.min(n - r, e.byteLength - r);
3792
+ return J.call(this, Fs(-r, t + 1, s)), J.call(this, e.subarray(r, r + o)), this;
4366
3793
  }
4367
- function Ye(i) {
3794
+ function ke(i) {
4368
3795
  const { length: t, valueOffsets: e } = i;
4369
3796
  if (e) {
4370
3797
  const { [0]: s, [t]: r } = e;
4371
- return J.call(this, Vs(-s, t + 1, e)), this.visit(i.children[0].slice(s, r - s));
3798
+ return J.call(this, Fs(-s, t + 1, e)), this.visit(i.children[0].slice(s, r - s));
4372
3799
  }
4373
3800
  return this.visit(i.children[0]);
4374
3801
  }
4375
- function ze(i) {
3802
+ function Re(i) {
4376
3803
  return this.visitMany(i.type.children.map((t, e) => i.children[e]).filter(Boolean))[0];
4377
3804
  }
4378
- w.prototype.visitBool = Tr;
4379
- w.prototype.visitInt = ut;
4380
- w.prototype.visitFloat = ut;
4381
- w.prototype.visitUtf8 = me;
4382
- w.prototype.visitLargeUtf8 = me;
4383
- w.prototype.visitBinary = me;
4384
- w.prototype.visitLargeBinary = me;
4385
- w.prototype.visitFixedSizeBinary = ut;
4386
- w.prototype.visitDate = ut;
4387
- w.prototype.visitTimestamp = ut;
4388
- w.prototype.visitTime = ut;
4389
- w.prototype.visitDecimal = ut;
4390
- w.prototype.visitList = Ye;
4391
- w.prototype.visitStruct = ze;
4392
- w.prototype.visitUnion = Ur;
4393
- w.prototype.visitInterval = ut;
4394
- w.prototype.visitDuration = ut;
4395
- w.prototype.visitFixedSizeList = Ye;
4396
- w.prototype.visitMap = Ye;
4397
- class Vr extends Gt {
3805
+ w.prototype.visitBool = Dr;
3806
+ w.prototype.visitInt = dt;
3807
+ w.prototype.visitFloat = dt;
3808
+ w.prototype.visitUtf8 = _e;
3809
+ w.prototype.visitLargeUtf8 = _e;
3810
+ w.prototype.visitBinary = _e;
3811
+ w.prototype.visitLargeBinary = _e;
3812
+ w.prototype.visitFixedSizeBinary = dt;
3813
+ w.prototype.visitDate = dt;
3814
+ w.prototype.visitTimestamp = dt;
3815
+ w.prototype.visitTime = dt;
3816
+ w.prototype.visitDecimal = dt;
3817
+ w.prototype.visitList = ke;
3818
+ w.prototype.visitStruct = Re;
3819
+ w.prototype.visitUnion = Sr;
3820
+ w.prototype.visitInterval = dt;
3821
+ w.prototype.visitDuration = dt;
3822
+ w.prototype.visitFixedSizeList = ke;
3823
+ w.prototype.visitMap = ke;
3824
+ class Ar extends Jt {
4398
3825
  visit(t) {
4399
3826
  return t == null ? void 0 : super.visit(t);
4400
3827
  }
@@ -4405,7 +3832,7 @@ class Vr extends Gt {
4405
3832
  return { name: l[t].toLowerCase(), bitWidth: e, isSigned: s };
4406
3833
  }
4407
3834
  visitFloat({ typeId: t, precision: e }) {
4408
- return { name: l[t].toLowerCase(), precision: se[e] };
3835
+ return { name: l[t].toLowerCase(), precision: Qt[e] };
4409
3836
  }
4410
3837
  visitBinary({ typeId: t }) {
4411
3838
  return { name: l[t].toLowerCase() };
@@ -4426,19 +3853,19 @@ class Vr extends Gt {
4426
3853
  return { name: l[t].toLowerCase(), scale: e, precision: s, bitWidth: r };
4427
3854
  }
4428
3855
  visitDate({ typeId: t, unit: e }) {
4429
- return { name: l[t].toLowerCase(), unit: Tt[e] };
3856
+ return { name: l[t].toLowerCase(), unit: Rt[e] };
4430
3857
  }
4431
3858
  visitTime({ typeId: t, unit: e, bitWidth: s }) {
4432
- return { name: l[t].toLowerCase(), unit: E[e], bitWidth: s };
3859
+ return { name: l[t].toLowerCase(), unit: P[e], bitWidth: s };
4433
3860
  }
4434
3861
  visitTimestamp({ typeId: t, timezone: e, unit: s }) {
4435
- return { name: l[t].toLowerCase(), unit: E[s], timezone: e };
3862
+ return { name: l[t].toLowerCase(), unit: P[s], timezone: e };
4436
3863
  }
4437
3864
  visitInterval({ typeId: t, unit: e }) {
4438
- return { name: l[t].toLowerCase(), unit: ht[e] };
3865
+ return { name: l[t].toLowerCase(), unit: ct[e] };
4439
3866
  }
4440
3867
  visitDuration({ typeId: t, unit: e }) {
4441
- return { name: l[t].toLocaleLowerCase(), unit: E[e] };
3868
+ return { name: l[t].toLocaleLowerCase(), unit: P[e] };
4442
3869
  }
4443
3870
  visitList({ typeId: t }) {
4444
3871
  return { name: l[t].toLowerCase() };
@@ -4449,7 +3876,7 @@ class Vr extends Gt {
4449
3876
  visitUnion({ typeId: t, mode: e, typeIds: s }) {
4450
3877
  return {
4451
3878
  name: l[t].toLowerCase(),
4452
- mode: pt[e].toUpperCase(),
3879
+ mode: ft[e].toUpperCase(),
4453
3880
  typeIds: [...s]
4454
3881
  };
4455
3882
  }
@@ -4466,60 +3893,60 @@ class Vr extends Gt {
4466
3893
  return { name: l[t].toLowerCase(), keysSorted: e };
4467
3894
  }
4468
3895
  }
4469
- class ge extends Gt {
3896
+ class be extends Jt {
4470
3897
  /** @nocollapse */
4471
3898
  static assemble(...t) {
4472
- const e = new ge();
3899
+ const e = new be();
4473
3900
  return t.map(({ schema: s, data: r }) => e.visitMany(s.fields, r.children));
4474
3901
  }
4475
3902
  visit({ name: t }, e) {
4476
- const { length: s } = e, { offset: r, nullCount: n, nullBitmap: o } = e, a = v.isDictionary(e.type) ? e.type.indices : e.type, c = Object.assign([], e.buffers, { [_i.VALIDITY]: void 0 });
4477
- return Object.assign({ name: t, count: s, VALIDITY: v.isNull(a) || v.isUnion(a) ? void 0 : n <= 0 ? Array.from({ length: s }, () => 1) : [...new Xe(o, r, s, null, bi)] }, super.visit(e.clone(a, r, s, 0, c)));
3903
+ const { length: s } = e, { offset: r, nullCount: n, nullBitmap: o } = e, a = v.isDictionary(e.type) ? e.type.indices : e.type, c = Object.assign([], e.buffers, { [ri.VALIDITY]: void 0 });
3904
+ return Object.assign({ name: t, count: s, VALIDITY: v.isNull(a) || v.isUnion(a) ? void 0 : n <= 0 ? Array.from({ length: s }, () => 1) : [...new Ye(o, r, s, null, ni)] }, super.visit(e.clone(a, r, s, 0, c)));
4478
3905
  }
4479
3906
  visitNull() {
4480
3907
  return {};
4481
3908
  }
4482
3909
  visitBool({ values: t, offset: e, length: s }) {
4483
- return { DATA: [...new Xe(t, e, s, null, pi)] };
3910
+ return { DATA: [...new Ye(t, e, s, null, oi)] };
4484
3911
  }
4485
3912
  visitInt(t) {
4486
3913
  return {
4487
- DATA: t.type.bitWidth < 64 ? [...t.values] : [..._t(t.values, 2)]
3914
+ DATA: t.type.bitWidth < 64 ? [...t.values] : [...lt(t.values, 2)]
4488
3915
  };
4489
3916
  }
4490
3917
  visitFloat(t) {
4491
3918
  return { DATA: [...t.values] };
4492
3919
  }
4493
3920
  visitUtf8(t) {
4494
- return { DATA: [...new at([t])], OFFSET: [...t.valueOffsets] };
3921
+ return { DATA: [...new ot([t])], OFFSET: [...t.valueOffsets] };
4495
3922
  }
4496
3923
  visitLargeUtf8(t) {
4497
- return { DATA: [...new at([t])], OFFSET: [..._t(t.valueOffsets, 2)] };
3924
+ return { DATA: [...new ot([t])], OFFSET: [...lt(t.valueOffsets, 2)] };
4498
3925
  }
4499
3926
  visitBinary(t) {
4500
- return { DATA: [...Fe(new at([t]))], OFFSET: [...t.valueOffsets] };
3927
+ return { DATA: [...ve(new ot([t]))], OFFSET: [...t.valueOffsets] };
4501
3928
  }
4502
3929
  visitLargeBinary(t) {
4503
- return { DATA: [...Fe(new at([t]))], OFFSET: [..._t(t.valueOffsets, 2)] };
3930
+ return { DATA: [...ve(new ot([t]))], OFFSET: [...lt(t.valueOffsets, 2)] };
4504
3931
  }
4505
3932
  visitFixedSizeBinary(t) {
4506
- return { DATA: [...Fe(new at([t]))] };
3933
+ return { DATA: [...ve(new ot([t]))] };
4507
3934
  }
4508
3935
  visitDate(t) {
4509
3936
  return {
4510
- DATA: t.type.unit === Tt.DAY ? [...t.values] : [..._t(t.values, 2)]
3937
+ DATA: t.type.unit === Rt.DAY ? [...t.values] : [...lt(t.values, 2)]
4511
3938
  };
4512
3939
  }
4513
3940
  visitTimestamp(t) {
4514
- return { DATA: [..._t(t.values, 2)] };
3941
+ return { DATA: [...lt(t.values, 2)] };
4515
3942
  }
4516
3943
  visitTime(t) {
4517
3944
  return {
4518
- DATA: t.type.unit < E.MICROSECOND ? [...t.values] : [..._t(t.values, 2)]
3945
+ DATA: t.type.unit < P.MICROSECOND ? [...t.values] : [...lt(t.values, 2)]
4519
3946
  };
4520
3947
  }
4521
3948
  visitDecimal(t) {
4522
- return { DATA: [..._t(t.values, 4)] };
3949
+ return { DATA: [...lt(t.values, 4)] };
4523
3950
  }
4524
3951
  visitList(t) {
4525
3952
  return {
@@ -4535,22 +3962,22 @@ class ge extends Gt {
4535
3962
  visitUnion(t) {
4536
3963
  return {
4537
3964
  TYPE_ID: [...t.typeIds],
4538
- OFFSET: t.type.mode === pt.Dense ? [...t.valueOffsets] : void 0,
3965
+ OFFSET: t.type.mode === ft.Dense ? [...t.valueOffsets] : void 0,
4539
3966
  children: this.visitMany(t.type.children, t.children)
4540
3967
  };
4541
3968
  }
4542
3969
  visitInterval(t) {
4543
3970
  switch (t.type.unit) {
4544
- case ht.YEAR_MONTH:
3971
+ case ct.YEAR_MONTH:
4545
3972
  return { DATA: [...t.values] };
4546
- case ht.DAY_TIME:
4547
- return { DATA: qs(t.values) };
4548
- case ht.MONTH_DAY_NANO:
4549
- return { DATA: Ks(t.values, !0) };
3973
+ case ct.DAY_TIME:
3974
+ return { DATA: Es(t.values) };
3975
+ case ct.MONTH_DAY_NANO:
3976
+ return { DATA: js(t.values, !0) };
4550
3977
  }
4551
3978
  }
4552
3979
  visitDuration(t) {
4553
- return { DATA: [..._t(t.values, 2)] };
3980
+ return { DATA: [...lt(t.values, 2)] };
4554
3981
  }
4555
3982
  visitFixedSizeList(t) {
4556
3983
  return {
@@ -4564,16 +3991,16 @@ class ge extends Gt {
4564
3991
  };
4565
3992
  }
4566
3993
  }
4567
- function* Fe(i) {
3994
+ function* ve(i) {
4568
3995
  for (const t of i)
4569
3996
  yield t.reduce((e, s) => `${e}${("0" + (s & 255).toString(16)).slice(-2)}`, "").toUpperCase();
4570
3997
  }
4571
- function* _t(i, t) {
3998
+ function* lt(i, t) {
4572
3999
  const e = new Uint32Array(i.buffer);
4573
4000
  for (let s = -1, r = e.length / t; ++s < r; )
4574
- yield `${yi.new(e.subarray((s + 0) * t, (s + 1) * t), !1)}`;
4001
+ yield `${ai.new(e.subarray((s + 0) * t, (s + 1) * t), !1)}`;
4575
4002
  }
4576
- class we extends Pe {
4003
+ class ye extends xe {
4577
4004
  /** @nocollapse */
4578
4005
  // @ts-ignore
4579
4006
  static throughNode(t) {
@@ -4584,13 +4011,13 @@ class we extends Pe {
4584
4011
  throw new Error('"throughDOM" not available in this environment');
4585
4012
  }
4586
4013
  constructor(t) {
4587
- if (super(), this._position = 0, this._started = !1, this._compression = null, this._sink = new kt(), this._schema = null, this._dictionaryBlocks = [], this._recordBatchBlocks = [], this._seenDictionaries = /* @__PURE__ */ new Map(), this._dictionaryDeltaOffsets = /* @__PURE__ */ new Map(), wi(t) || (t = { autoDestroy: !0, writeLegacyIpcFormat: !1, compressionType: null }), this._autoDestroy = typeof t.autoDestroy == "boolean" ? t.autoDestroy : !0, this._writeLegacyIpcFormat = typeof t.writeLegacyIpcFormat == "boolean" ? t.writeLegacyIpcFormat : !1, t.compressionType != null) {
4014
+ if (super(), this._position = 0, this._started = !1, this._compression = null, this._sink = new Pt(), this._schema = null, this._dictionaryBlocks = [], this._recordBatchBlocks = [], this._seenDictionaries = /* @__PURE__ */ new Map(), this._dictionaryDeltaOffsets = /* @__PURE__ */ new Map(), hi(t) || (t = { autoDestroy: !0, writeLegacyIpcFormat: !1, compressionType: null }), this._autoDestroy = typeof t.autoDestroy == "boolean" ? t.autoDestroy : !0, this._writeLegacyIpcFormat = typeof t.writeLegacyIpcFormat == "boolean" ? t.writeLegacyIpcFormat : !1, t.compressionType != null) {
4588
4015
  if (this._writeLegacyIpcFormat)
4589
4016
  throw new Error("Legacy IPC format does not support columnar compression. Use modern IPC format (writeLegacyIpcFormat=false).");
4590
- if (Object.values(rt).includes(t.compressionType))
4591
- this._compression = new pe(t.compressionType);
4017
+ if (Object.values(it).includes(t.compressionType))
4018
+ this._compression = new le(t.compressionType);
4592
4019
  else {
4593
- const e = Object.values(rt).filter((s) => typeof s == "string");
4020
+ const e = Object.values(it).filter((s) => typeof s == "string");
4594
4021
  throw new Error(`Unsupported compressionType: ${t.compressionType} Available types: ${e.join(", ")}`);
4595
4022
  }
4596
4023
  } else
@@ -4603,7 +4030,7 @@ class we extends Pe {
4603
4030
  return this._sink.toUint8Array(t);
4604
4031
  }
4605
4032
  writeAll(t) {
4606
- return Mt(t) ? t.then((e) => this.writeAll(e)) : Pt(t) ? qe(this, t) : Ge(this, t);
4033
+ return Dt(t) ? t.then((e) => this.writeAll(e)) : Tt(t) ? We(this, t) : Ce(this, t);
4607
4034
  }
4608
4035
  get closed() {
4609
4036
  return this._sink.closed;
@@ -4627,28 +4054,28 @@ class we extends Pe {
4627
4054
  return this._autoDestroy ? this.close() : this.reset(this._sink, this._schema), this;
4628
4055
  }
4629
4056
  reset(t = this._sink, e = null) {
4630
- return t === this._sink || t instanceof kt ? this._sink = t : (this._sink = new kt(), t && mi(t) ? this.toDOMStream({ type: "bytes" }).pipeTo(t) : t && gi(t) && this.toNodeStream({ objectMode: !1 }).pipe(t)), this._started && this._schema && this._writeFooter(this._schema), this._started = !1, this._dictionaryBlocks = [], this._recordBatchBlocks = [], this._seenDictionaries = /* @__PURE__ */ new Map(), this._dictionaryDeltaOffsets = /* @__PURE__ */ new Map(), (!e || !Me(e, this._schema)) && (e == null ? (this._position = 0, this._schema = null) : (this._started = !0, this._schema = e, this._writeSchema(e))), this;
4057
+ return t === this._sink || t instanceof Pt ? this._sink = t : (this._sink = new Pt(), t && ci(t) ? this.toDOMStream({ type: "bytes" }).pipeTo(t) : t && di(t) && this.toNodeStream({ objectMode: !1 }).pipe(t)), this._started && this._schema && this._writeFooter(this._schema), this._started = !1, this._dictionaryBlocks = [], this._recordBatchBlocks = [], this._seenDictionaries = /* @__PURE__ */ new Map(), this._dictionaryDeltaOffsets = /* @__PURE__ */ new Map(), (!e || !Se(e, this._schema)) && (e == null ? (this._position = 0, this._schema = null) : (this._started = !0, this._schema = e, this._writeSchema(e))), this;
4631
4058
  }
4632
4059
  write(t) {
4633
4060
  let e = null;
4634
4061
  if (this._sink) {
4635
4062
  if (t == null)
4636
4063
  return this.finish() && void 0;
4637
- if (t instanceof Wt && !(e = t.schema))
4064
+ if (t instanceof jt && !(e = t.schema))
4638
4065
  return this.finish() && void 0;
4639
- if (t instanceof Ct && !(e = t.schema))
4066
+ if (t instanceof Et && !(e = t.schema))
4640
4067
  return this.finish() && void 0;
4641
4068
  } else throw new Error("RecordBatchWriter is closed");
4642
- if (e && !Me(e, this._schema)) {
4069
+ if (e && !Se(e, this._schema)) {
4643
4070
  if (this._started && this._autoDestroy)
4644
4071
  return this.close();
4645
4072
  this.reset(this._sink, e);
4646
4073
  }
4647
- t instanceof Ct ? t instanceof Ee || this._writeRecordBatch(t) : t instanceof Wt ? this.writeAll(t.batches) : _e(t) && this.writeAll(t);
4074
+ t instanceof Et ? t instanceof Ne || this._writeRecordBatch(t) : t instanceof jt ? this.writeAll(t.batches) : he(t) && this.writeAll(t);
4648
4075
  }
4649
4076
  _writeMessage(t, e = 8) {
4650
- const s = e - 1, r = O.encode(t), n = r.byteLength, o = this._writeLegacyIpcFormat ? 4 : 8, a = n + o + s & ~s, c = a - n - o;
4651
- return t.headerType === _.RecordBatch ? this._recordBatchBlocks.push(new ot(a, t.bodyLength, this._position)) : t.headerType === _.DictionaryBatch && this._dictionaryBlocks.push(new ot(a, t.bodyLength, this._position)), this._writeLegacyIpcFormat || this._write(Int32Array.of(-1)), this._write(Int32Array.of(a - o)), n > 0 && this._write(r), this._writePadding(c);
4077
+ const s = e - 1, r = F.encode(t), n = r.byteLength, o = this._writeLegacyIpcFormat ? 4 : 8, a = n + o + s & ~s, c = a - n - o;
4078
+ return t.headerType === _.RecordBatch ? this._recordBatchBlocks.push(new nt(a, t.bodyLength, this._position)) : t.headerType === _.DictionaryBatch && this._dictionaryBlocks.push(new nt(a, t.bodyLength, this._position)), this._writeLegacyIpcFormat || this._write(Int32Array.of(-1)), this._write(Int32Array.of(a - o)), n > 0 && this._write(r), this._writePadding(c);
4652
4079
  }
4653
4080
  _write(t) {
4654
4081
  if (this._started) {
@@ -4658,20 +4085,20 @@ class we extends Pe {
4658
4085
  return this;
4659
4086
  }
4660
4087
  _writeSchema(t) {
4661
- return this._writeMessage(O.from(t));
4088
+ return this._writeMessage(F.from(t));
4662
4089
  }
4663
4090
  // @ts-ignore
4664
4091
  _writeFooter(t) {
4665
4092
  return this._writeLegacyIpcFormat ? this._write(Int32Array.of(0)) : this._write(Int32Array.of(-1, 0));
4666
4093
  }
4667
4094
  _writeMagic() {
4668
- return this._write(Ht);
4095
+ return this._write(Wt);
4669
4096
  }
4670
4097
  _writePadding(t) {
4671
4098
  return t > 0 ? this._write(new Uint8Array(t)) : this;
4672
4099
  }
4673
4100
  _writeRecordBatch(t) {
4674
- const { byteLength: e, nodes: s, bufferRegions: r, buffers: n } = this._assembleRecordBatch(t), o = new L(t.numRows, s, r, this._compression), a = O.from(o, e);
4101
+ const { byteLength: e, nodes: s, bufferRegions: r, buffers: n } = this._assembleRecordBatch(t), o = new L(t.numRows, s, r, this._compression), a = F.from(o, e);
4675
4102
  return this._writeDictionaries(t)._writeMessage(a)._writeBodyBuffers(n);
4676
4103
  }
4677
4104
  _assembleRecordBatch(t) {
@@ -4679,9 +4106,9 @@ class we extends Pe {
4679
4106
  return this._compression != null && ({ byteLength: e, bufferRegions: r, buffers: n } = this._compressBodyBuffers(n)), { byteLength: e, nodes: s, bufferRegions: r, buffers: n };
4680
4107
  }
4681
4108
  _compressBodyBuffers(t) {
4682
- const e = Te.get(this._compression.type);
4109
+ const e = Me.get(this._compression.type);
4683
4110
  if (!e?.encode || typeof e.encode != "function")
4684
- throw new Error(`Codec for compression type "${rt[this._compression.type]}" has invalid encode method`);
4111
+ throw new Error(`Codec for compression type "${it[this._compression.type]}" has invalid encode method`);
4685
4112
  let s = 0;
4686
4113
  const r = [], n = [];
4687
4114
  for (const a of t) {
@@ -4690,18 +4117,18 @@ class we extends Pe {
4690
4117
  r.push(new Uint8Array(0), new Uint8Array(0)), n.push(new U(s, 0));
4691
4118
  continue;
4692
4119
  }
4693
- const d = e.encode(c), h = d.length < c.length, f = h ? d : c, N = h ? f.length : ei, j = new yt(new Uint8Array(Ve));
4694
- j.writeInt64(0, BigInt(N)), r.push(j.bytes(), new Uint8Array(f));
4695
- const lt = (s + 7 & -8) - s;
4696
- s += lt;
4697
- const Kt = Ve + f.length;
4698
- n.push(new U(s, Kt)), s += Kt;
4120
+ const d = e.encode(c), h = d.length < c.length, f = h ? d : c, R = h ? f.length : Js, j = new Vt(new Uint8Array(Le));
4121
+ j.writeInt64(0, BigInt(R)), r.push(j.bytes(), new Uint8Array(f));
4122
+ const ht = (s + 7 & -8) - s;
4123
+ s += ht;
4124
+ const Yt = Le + f.length;
4125
+ n.push(new U(s, Yt)), s += Yt;
4699
4126
  }
4700
4127
  const o = (s + 7 & -8) - s;
4701
4128
  return s += o, { byteLength: s, bufferRegions: n, buffers: r };
4702
4129
  }
4703
4130
  _writeDictionaryBatch(t, e, s = !1) {
4704
- const { byteLength: r, nodes: n, bufferRegions: o, buffers: a } = this._assembleRecordBatch(new at([t])), c = new L(t.length, n, o, this._compression), d = new Y(c, e, s), h = O.from(d, r);
4131
+ const { byteLength: r, nodes: n, bufferRegions: o, buffers: a } = this._assembleRecordBatch(new ot([t])), c = new L(t.length, n, o, this._compression), d = new Y(c, e, s), h = F.from(d, r);
4705
4132
  return this._writeMessage(h)._writeBodyBuffers(a);
4706
4133
  }
4707
4134
  _writeBodyBuffers(t) {
@@ -4734,18 +4161,18 @@ class we extends Pe {
4734
4161
  return this;
4735
4162
  }
4736
4163
  }
4737
- class ve extends we {
4164
+ class pe extends ye {
4738
4165
  /** @nocollapse */
4739
4166
  static writeAll(t, e) {
4740
- const s = new ve(e);
4741
- return Mt(t) ? t.then((r) => s.writeAll(r)) : Pt(t) ? qe(s, t) : Ge(s, t);
4167
+ const s = new pe(e);
4168
+ return Dt(t) ? t.then((r) => s.writeAll(r)) : Tt(t) ? We(s, t) : Ce(s, t);
4742
4169
  }
4743
4170
  }
4744
- class Be extends we {
4171
+ class me extends ye {
4745
4172
  /** @nocollapse */
4746
4173
  static writeAll(t, e) {
4747
- const s = new Be(e);
4748
- return Mt(t) ? t.then((r) => s.writeAll(r)) : Pt(t) ? qe(s, t) : Ge(s, t);
4174
+ const s = new me(e);
4175
+ return Dt(t) ? t.then((r) => s.writeAll(r)) : Tt(t) ? We(s, t) : Ce(s, t);
4749
4176
  }
4750
4177
  constructor(t) {
4751
4178
  super(t), this._autoDestroy = !0, this._writeLegacyIpcFormat = !1;
@@ -4760,14 +4187,14 @@ class Be extends we {
4760
4187
  return super._writeDictionaryBatch(t, e, s);
4761
4188
  }
4762
4189
  _writeFooter(t) {
4763
- const e = Jt.encode(new Jt(t, S.V5, this._recordBatchBlocks, this._dictionaryBlocks));
4190
+ const e = Ct.encode(new Ct(t, S.V5, this._recordBatchBlocks, this._dictionaryBlocks));
4764
4191
  return super._writeFooter(t)._write(e)._write(Int32Array.of(e.byteLength))._writeMagic();
4765
4192
  }
4766
4193
  }
4767
- class ni extends we {
4194
+ class Ks extends ye {
4768
4195
  /** @nocollapse */
4769
4196
  static writeAll(t) {
4770
- return new ni().writeAll(t);
4197
+ return new Ks().writeAll(t);
4771
4198
  }
4772
4199
  constructor() {
4773
4200
  super(), this._autoDestroy = !0, this._recordBatches = [], this._recordBatchesWithDictionaries = [];
@@ -4781,14 +4208,14 @@ class ni extends we {
4781
4208
  }
4782
4209
  _writeSchema(t) {
4783
4210
  return this._write(`{
4784
- "schema": ${JSON.stringify({ fields: t.fields.map((e) => oi(e)) }, null, 2)}`);
4211
+ "schema": ${JSON.stringify({ fields: t.fields.map((e) => qs(e)) }, null, 2)}`);
4785
4212
  }
4786
4213
  _writeDictionaries(t) {
4787
4214
  return t.dictionaries.size > 0 && this._recordBatchesWithDictionaries.push(t), this;
4788
4215
  }
4789
4216
  _writeDictionaryBatch(t, e, s = !1) {
4790
4217
  return this._write(this._dictionaryBlocks.length === 0 ? " " : `,
4791
- `), this._write(zr(t, e, s)), this._dictionaryBlocks.push(new ot(0, 0, 0)), this;
4218
+ `), this._write(Or(t, e, s)), this._dictionaryBlocks.push(new nt(0, 0, 0)), this;
4792
4219
  }
4793
4220
  _writeRecordBatch(t) {
4794
4221
  return this._writeDictionaries(t), this._recordBatches.push(t), this;
@@ -4808,7 +4235,7 @@ class ni extends we {
4808
4235
  this._write(t === 0 ? `,
4809
4236
  "batches": [
4810
4237
  ` : `,
4811
- `), this._write(Er(this._recordBatches[t])), this._recordBatchBlocks.push(new ot(0, 0, 0));
4238
+ `), this._write(Fr(this._recordBatches[t])), this._recordBatchBlocks.push(new nt(0, 0, 0));
4812
4239
  this._write(`
4813
4240
  ]`);
4814
4241
  }
@@ -4816,18 +4243,18 @@ class ni extends we {
4816
4243
  }`), this._recordBatchesWithDictionaries = [], this._recordBatches = [], super.close();
4817
4244
  }
4818
4245
  }
4819
- function Ge(i, t) {
4246
+ function Ce(i, t) {
4820
4247
  let e = t;
4821
- t instanceof Wt && (e = t.batches, i.reset(void 0, t.schema));
4248
+ t instanceof jt && (e = t.batches, i.reset(void 0, t.schema));
4822
4249
  for (const s of e)
4823
4250
  i.write(s);
4824
4251
  return i.finish();
4825
4252
  }
4826
- function qe(i, t) {
4253
+ function We(i, t) {
4827
4254
  return u(this, void 0, void 0, function* () {
4828
4255
  var e, s, r, n, o, a, c;
4829
4256
  try {
4830
- for (e = !0, s = be(t); r = yield s.next(), n = r.done, !n; e = !0) {
4257
+ for (e = !0, s = ue(t); r = yield s.next(), n = r.done, !n; e = !0) {
4831
4258
  c = r.value, e = !1;
4832
4259
  const d = c;
4833
4260
  i.write(d);
@@ -4844,13 +4271,13 @@ function qe(i, t) {
4844
4271
  return i.finish();
4845
4272
  });
4846
4273
  }
4847
- function oi({ name: i, type: t, nullable: e }) {
4848
- const s = new Vr();
4274
+ function qs({ name: i, type: t, nullable: e }) {
4275
+ const s = new Ar();
4849
4276
  return {
4850
4277
  name: i,
4851
4278
  nullable: e,
4852
4279
  type: s.visit(t),
4853
- children: (t.children || []).map((r) => oi(r)),
4280
+ children: (t.children || []).map((r) => qs(r)),
4854
4281
  dictionary: v.isDictionary(t) ? {
4855
4282
  id: t.id,
4856
4283
  isOrdered: t.isOrdered,
@@ -4858,8 +4285,8 @@ function oi({ name: i, type: t, nullable: e }) {
4858
4285
  } : void 0
4859
4286
  };
4860
4287
  }
4861
- function zr(i, t, e = !1) {
4862
- const [s] = ge.assemble(new Ct({ [t]: i }));
4288
+ function Or(i, t, e = !1) {
4289
+ const [s] = be.assemble(new Et({ [t]: i }));
4863
4290
  return JSON.stringify({
4864
4291
  id: t,
4865
4292
  isDelta: e,
@@ -4869,21 +4296,21 @@ function zr(i, t, e = !1) {
4869
4296
  }
4870
4297
  }, null, 2);
4871
4298
  }
4872
- function Er(i) {
4873
- const [t] = ge.assemble(i);
4299
+ function Fr(i) {
4300
+ const [t] = be.assemble(i);
4874
4301
  return JSON.stringify({
4875
4302
  count: i.numRows,
4876
4303
  columns: t
4877
4304
  }, null, 2);
4878
4305
  }
4879
- function Pr(i, t) {
4880
- if (Pt(i))
4881
- return kr(i, t);
4882
- if (_e(i))
4883
- return jr(i, t);
4306
+ function Mr(i, t) {
4307
+ if (Tt(i))
4308
+ return Rr(i, t);
4309
+ if (he(i))
4310
+ return Lr(i, t);
4884
4311
  throw new Error("toDOMStream() must be called with an Iterable or AsyncIterable");
4885
4312
  }
4886
- function jr(i, t) {
4313
+ function Lr(i, t) {
4887
4314
  let e = null;
4888
4315
  const s = t?.type === "bytes" || !1, r = t?.highWaterMark || Math.pow(2, 24);
4889
4316
  return new ReadableStream(Object.assign(Object.assign({}, t), {
@@ -4905,7 +4332,7 @@ function jr(i, t) {
4905
4332
  o.close();
4906
4333
  }
4907
4334
  }
4908
- function kr(i, t) {
4335
+ function Rr(i, t) {
4909
4336
  let e = null;
4910
4337
  const s = t?.type === "bytes" || !1, r = t?.highWaterMark || Math.pow(2, 24);
4911
4338
  return new ReadableStream(Object.assign(Object.assign({}, t), {
@@ -4935,14 +4362,14 @@ function kr(i, t) {
4935
4362
  });
4936
4363
  }
4937
4364
  }
4938
- function Cr(i) {
4939
- return new Wr(i);
4365
+ function Nr(i) {
4366
+ return new xr(i);
4940
4367
  }
4941
- class Wr {
4368
+ class xr {
4942
4369
  constructor(t) {
4943
4370
  this._numChunks = 0, this._finished = !1, this._bufferedSize = 0;
4944
- const { ["readableStrategy"]: e, ["writableStrategy"]: s, ["queueingStrategy"]: r = "count" } = t, n = vi(t, ["readableStrategy", "writableStrategy", "queueingStrategy"]);
4945
- this._controller = null, this._builder = Bi(n), this._getSize = r !== "bytes" ? ls : fs;
4371
+ const { ["readableStrategy"]: e, ["writableStrategy"]: s, ["queueingStrategy"]: r = "count" } = t, n = ui(t, ["readableStrategy", "writableStrategy", "queueingStrategy"]);
4372
+ this._controller = null, this._builder = li(n), this._getSize = r !== "bytes" ? rs : ns;
4946
4373
  const { ["highWaterMark"]: o = r === "bytes" ? Math.pow(2, 14) : 1e3 } = Object.assign({}, e), { ["highWaterMark"]: a = r === "bytes" ? Math.pow(2, 14) : 1e3 } = Object.assign({}, s);
4947
4374
  this.readable = new ReadableStream({
4948
4375
  cancel: () => {
@@ -4956,7 +4383,7 @@ class Wr {
4956
4383
  }
4957
4384
  }, {
4958
4385
  highWaterMark: o,
4959
- size: r !== "bytes" ? ls : fs
4386
+ size: r !== "bytes" ? rs : ns
4960
4387
  }), this.writable = new WritableStream({
4961
4388
  abort: () => {
4962
4389
  this._builder.clear();
@@ -4983,15 +4410,15 @@ class Wr {
4983
4410
  this._bufferedSize = 0, this._controller = null, e == null ? t.close() : t.enqueue(e);
4984
4411
  }
4985
4412
  }
4986
- const ls = (i) => {
4413
+ const rs = (i) => {
4987
4414
  var t;
4988
4415
  return (t = i?.length) !== null && t !== void 0 ? t : 0;
4989
- }, fs = (i) => {
4416
+ }, ns = (i) => {
4990
4417
  var t;
4991
4418
  return (t = i?.byteLength) !== null && t !== void 0 ? t : 0;
4992
4419
  };
4993
- function Ke(i, t) {
4994
- const e = new kt();
4420
+ function $e(i, t) {
4421
+ const e = new Pt();
4995
4422
  let s = null;
4996
4423
  const r = new ReadableStream({
4997
4424
  cancel() {
@@ -5026,8 +4453,8 @@ function Ke(i, t) {
5026
4453
  });
5027
4454
  }
5028
4455
  }
5029
- function Ze(i, t) {
5030
- const e = new this(i), s = new Lt(e), r = new ReadableStream({
4456
+ function Je(i, t) {
4457
+ const e = new this(i), s = new At(e), r = new ReadableStream({
5031
4458
  // type: 'bytes',
5032
4459
  cancel() {
5033
4460
  return u(this, void 0, void 0, function* () {
@@ -5056,178 +4483,178 @@ function Ze(i, t) {
5056
4483
  });
5057
4484
  }
5058
4485
  }
5059
- function $r(i) {
4486
+ function Ur(i) {
5060
4487
  const t = $.from(i);
5061
- return Mt(t) ? t.then((e) => $r(e)) : t.isAsync() ? t.readAll().then((e) => new Wt(e)) : new Wt(t.readAll());
4488
+ return Dt(t) ? t.then((e) => Ur(e)) : t.isAsync() ? t.readAll().then((e) => new jt(e)) : new jt(t.readAll());
5062
4489
  }
5063
- function Yr(i, t = "stream", e = null) {
4490
+ function Pr(i, t = "stream", e = null) {
5064
4491
  const s = { compressionType: e };
5065
- return (t === "stream" ? ve : Be).writeAll(i, s).toUint8Array(!0);
4492
+ return (t === "stream" ? pe : me).writeAll(i, s).toUint8Array(!0);
5066
4493
  }
5067
- const Gr = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, Ii), br), Si), Ai), Fi), Di), Oi), pr), {
5068
- compareSchemas: Me,
5069
- compareFields: Li,
5070
- compareTypes: Mi
4494
+ const Er = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, fi), nr), _i), bi), yi), pi), mi), or), {
4495
+ compareSchemas: Se,
4496
+ compareFields: wi,
4497
+ compareTypes: gi
5071
4498
  });
5072
- V.toDOMStream = Pr;
5073
- Ni.throughDOM = Cr;
5074
- $.throughDOM = Ke;
5075
- He.throughDOM = Ke;
5076
- Yt.throughDOM = Ke;
5077
- we.throughDOM = Ze;
5078
- Be.throughDOM = Ze;
5079
- ve.throughDOM = Ze;
4499
+ V.toDOMStream = Mr;
4500
+ vi.throughDOM = Nr;
4501
+ $.throughDOM = $e;
4502
+ je.throughDOM = $e;
4503
+ $t.throughDOM = $e;
4504
+ ye.throughDOM = Je;
4505
+ me.throughDOM = Je;
4506
+ pe.throughDOM = Je;
5080
4507
  export {
5081
- kt as AsyncByteQueue,
5082
- Lt as AsyncByteStream,
5083
- wr as AsyncMessageReader,
5084
- Dr as AsyncRecordBatchFileReader,
5085
- he as AsyncRecordBatchStreamReader,
5086
- gs as Binary,
5087
- Zr as BinaryBuilder,
5088
- bs as Bool,
5089
- Qr as BoolBuilder,
5090
- _i as BufferType,
5091
- Ni as Builder,
5092
- ce as ByteStream,
5093
- rt as CompressionType,
5094
- Xr as Data,
4508
+ Pt as AsyncByteQueue,
4509
+ At as AsyncByteStream,
4510
+ hr as AsyncMessageReader,
4511
+ pr as AsyncRecordBatchFileReader,
4512
+ oe as AsyncRecordBatchStreamReader,
4513
+ us as Binary,
4514
+ Cr as BinaryBuilder,
4515
+ as as Bool,
4516
+ Wr as BoolBuilder,
4517
+ ri as BufferType,
4518
+ vi as Builder,
4519
+ re as ByteStream,
4520
+ it as CompressionType,
4521
+ $r as Data,
5095
4522
  v as DataType,
5096
- tn as DateBuilder,
5097
- en as DateDay,
5098
- sn as DateDayBuilder,
5099
- rn as DateMillisecond,
5100
- nn as DateMillisecondBuilder,
5101
- Tt as DateUnit,
5102
- Os as Date_,
5103
- Ms as Decimal,
5104
- on as DecimalBuilder,
5105
- an as DenseUnion,
5106
- cn as DenseUnionBuilder,
5107
- re as Dictionary,
5108
- dn as DictionaryBuilder,
5109
- Ss as Duration,
5110
- hn as DurationBuilder,
5111
- un as DurationMicrosecond,
5112
- ln as DurationMicrosecondBuilder,
5113
- fn as DurationMillisecond,
5114
- _n as DurationMillisecondBuilder,
5115
- bn as DurationNanosecond,
5116
- pn as DurationNanosecondBuilder,
5117
- yn as DurationSecond,
5118
- mn as DurationSecondBuilder,
5119
- F as Field,
5120
- Bs as FixedSizeBinary,
5121
- gn as FixedSizeBinaryBuilder,
5122
- vs as FixedSizeList,
5123
- wn as FixedSizeListBuilder,
5124
- Ls as Float,
5125
- vn as Float16,
5126
- Bn as Float16Builder,
5127
- In as Float32,
5128
- Sn as Float32Builder,
5129
- An as Float64,
5130
- Fn as Float64Builder,
5131
- Dn as FloatBuilder,
5132
- fe as Int,
5133
- On as Int16,
5134
- Mn as Int16Builder,
5135
- ie as Int32,
5136
- Ln as Int32Builder,
5137
- Nn as Int64,
5138
- Rn as Int64Builder,
5139
- xn as Int8,
5140
- Un as Int8Builder,
5141
- Tn as IntBuilder,
5142
- As as Interval,
5143
- Vn as IntervalBuilder,
5144
- zn as IntervalDayTime,
5145
- En as IntervalDayTimeBuilder,
5146
- Pn as IntervalMonthDayNano,
5147
- jn as IntervalMonthDayNanoBuilder,
5148
- ht as IntervalUnit,
5149
- kn as IntervalYearMonth,
5150
- Cn as IntervalYearMonthBuilder,
5151
- vr as JSONMessageReader,
5152
- ms as LargeBinary,
5153
- Wn as LargeBinaryBuilder,
5154
- ps as LargeUtf8,
5155
- $n as LargeUtf8Builder,
5156
- _s as List,
5157
- Jn as ListBuilder,
5158
- Hn as MapBuilder,
5159
- Yn as MapRow,
5160
- ws as Map_,
5161
- O as Message,
4523
+ Jr as DateBuilder,
4524
+ Hr as DateDay,
4525
+ Yr as DateDayBuilder,
4526
+ Gr as DateMillisecond,
4527
+ Kr as DateMillisecondBuilder,
4528
+ Rt as DateUnit,
4529
+ ws as Date_,
4530
+ vs as Decimal,
4531
+ qr as DecimalBuilder,
4532
+ Zr as DenseUnion,
4533
+ Qr as DenseUnionBuilder,
4534
+ te as Dictionary,
4535
+ Xr as DictionaryBuilder,
4536
+ ys as Duration,
4537
+ tn as DurationBuilder,
4538
+ en as DurationMicrosecond,
4539
+ sn as DurationMicrosecondBuilder,
4540
+ rn as DurationMillisecond,
4541
+ nn as DurationMillisecondBuilder,
4542
+ on as DurationNanosecond,
4543
+ an as DurationNanosecondBuilder,
4544
+ cn as DurationSecond,
4545
+ dn as DurationSecondBuilder,
4546
+ A as Field,
4547
+ _s as FixedSizeBinary,
4548
+ hn as FixedSizeBinaryBuilder,
4549
+ fs as FixedSizeList,
4550
+ un as FixedSizeListBuilder,
4551
+ Bs as Float,
4552
+ ln as Float16,
4553
+ fn as Float16Builder,
4554
+ _n as Float32,
4555
+ bn as Float32Builder,
4556
+ yn as Float64,
4557
+ pn as Float64Builder,
4558
+ mn as FloatBuilder,
4559
+ de as Int,
4560
+ gn as Int16,
4561
+ wn as Int16Builder,
4562
+ Xt as Int32,
4563
+ vn as Int32Builder,
4564
+ Bn as Int64,
4565
+ In as Int64Builder,
4566
+ Sn as Int8,
4567
+ Dn as Int8Builder,
4568
+ An as IntBuilder,
4569
+ ps as Interval,
4570
+ On as IntervalBuilder,
4571
+ Fn as IntervalDayTime,
4572
+ Mn as IntervalDayTimeBuilder,
4573
+ Ln as IntervalMonthDayNano,
4574
+ Rn as IntervalMonthDayNanoBuilder,
4575
+ ct as IntervalUnit,
4576
+ Nn as IntervalYearMonth,
4577
+ xn as IntervalYearMonthBuilder,
4578
+ ur as JSONMessageReader,
4579
+ hs as LargeBinary,
4580
+ Un as LargeBinaryBuilder,
4581
+ cs as LargeUtf8,
4582
+ Tn as LargeUtf8Builder,
4583
+ os as List,
4584
+ Vn as ListBuilder,
4585
+ zn as MapBuilder,
4586
+ Pn as MapRow,
4587
+ ls as Map_,
4588
+ F as Message,
5162
4589
  _ as MessageHeader,
5163
- Xs as MessageReader,
4590
+ Ws as MessageReader,
5164
4591
  S as MetadataVersion,
5165
- oe as Null,
5166
- Gn as NullBuilder,
5167
- se as Precision,
5168
- Ct as RecordBatch,
5169
- He as RecordBatchFileReader,
5170
- Be as RecordBatchFileWriter,
5171
- ni as RecordBatchJSONWriter,
4592
+ se as Null,
4593
+ En as NullBuilder,
4594
+ Qt as Precision,
4595
+ Et as RecordBatch,
4596
+ je as RecordBatchFileReader,
4597
+ me as RecordBatchFileWriter,
4598
+ Ks as RecordBatchJSONWriter,
5172
4599
  $ as RecordBatchReader,
5173
- Yt as RecordBatchStreamReader,
5174
- ve as RecordBatchStreamWriter,
5175
- we as RecordBatchWriter,
4600
+ $t as RecordBatchStreamReader,
4601
+ pe as RecordBatchStreamWriter,
4602
+ ye as RecordBatchWriter,
5176
4603
  H as Schema,
5177
- qn as SparseUnion,
5178
- Kn as SparseUnionBuilder,
5179
- ne as Struct,
5180
- Zn as StructBuilder,
5181
- Qn as StructRow,
5182
- Wt as Table,
5183
- Ds as Time,
5184
- Xn as TimeBuilder,
5185
- to as TimeMicrosecond,
5186
- eo as TimeMicrosecondBuilder,
5187
- so as TimeMillisecond,
5188
- io as TimeMillisecondBuilder,
5189
- ro as TimeNanosecond,
5190
- no as TimeNanosecondBuilder,
5191
- oo as TimeSecond,
5192
- ao as TimeSecondBuilder,
5193
- E as TimeUnit,
5194
- Fs as Timestamp,
5195
- co as TimestampBuilder,
5196
- ho as TimestampMicrosecond,
5197
- uo as TimestampMicrosecondBuilder,
5198
- lo as TimestampMillisecond,
5199
- fo as TimestampMillisecondBuilder,
5200
- _o as TimestampNanosecond,
5201
- bo as TimestampNanosecondBuilder,
5202
- po as TimestampSecond,
5203
- yo as TimestampSecondBuilder,
5204
- mo as Type,
5205
- go as Uint16,
5206
- wo as Uint16Builder,
5207
- vo as Uint32,
5208
- Bo as Uint32Builder,
5209
- Io as Uint64,
5210
- So as Uint64Builder,
5211
- Ao as Uint8,
5212
- Fo as Uint8Builder,
5213
- Is as Union,
5214
- Do as UnionBuilder,
5215
- pt as UnionMode,
5216
- ys as Utf8,
5217
- Oo as Utf8Builder,
5218
- at as Vector,
5219
- Gt as Visitor,
5220
- Mo as builderThroughAsyncIterable,
5221
- Lo as builderThroughIterable,
5222
- Te as compressionRegistry,
5223
- Bi as makeBuilder,
4604
+ jn as SparseUnion,
4605
+ kn as SparseUnionBuilder,
4606
+ ee as Struct,
4607
+ Cn as StructBuilder,
4608
+ Wn as StructRow,
4609
+ jt as Table,
4610
+ gs as Time,
4611
+ $n as TimeBuilder,
4612
+ Jn as TimeMicrosecond,
4613
+ Hn as TimeMicrosecondBuilder,
4614
+ Yn as TimeMillisecond,
4615
+ Gn as TimeMillisecondBuilder,
4616
+ Kn as TimeNanosecond,
4617
+ qn as TimeNanosecondBuilder,
4618
+ Zn as TimeSecond,
4619
+ Qn as TimeSecondBuilder,
4620
+ P as TimeUnit,
4621
+ ms as Timestamp,
4622
+ Xn as TimestampBuilder,
4623
+ to as TimestampMicrosecond,
4624
+ eo as TimestampMicrosecondBuilder,
4625
+ so as TimestampMillisecond,
4626
+ io as TimestampMillisecondBuilder,
4627
+ ro as TimestampNanosecond,
4628
+ no as TimestampNanosecondBuilder,
4629
+ oo as TimestampSecond,
4630
+ ao as TimestampSecondBuilder,
4631
+ co as Type,
4632
+ ho as Uint16,
4633
+ uo as Uint16Builder,
4634
+ lo as Uint32,
4635
+ fo as Uint32Builder,
4636
+ _o as Uint64,
4637
+ bo as Uint64Builder,
4638
+ yo as Uint8,
4639
+ po as Uint8Builder,
4640
+ bs as Union,
4641
+ mo as UnionBuilder,
4642
+ ft as UnionMode,
4643
+ ds as Utf8,
4644
+ go as Utf8Builder,
4645
+ ot as Vector,
4646
+ Jt as Visitor,
4647
+ wo as builderThroughAsyncIterable,
4648
+ vo as builderThroughIterable,
4649
+ Me as compressionRegistry,
4650
+ li as makeBuilder,
5224
4651
  m as makeData,
5225
- No as makeTable,
5226
- Ro as makeVector,
5227
- xo as tableFromArrays,
5228
- $r as tableFromIPC,
5229
- Uo as tableFromJSON,
5230
- Yr as tableToIPC,
5231
- Gr as util,
5232
- To as vectorFromArray
4652
+ Bo as makeTable,
4653
+ Io as makeVector,
4654
+ So as tableFromArrays,
4655
+ Ur as tableFromIPC,
4656
+ Do as tableFromJSON,
4657
+ Pr as tableToIPC,
4658
+ Er as util,
4659
+ Ao as vectorFromArray
5233
4660
  };