@dreamlake/dreamdb 0.5.1 → 0.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/web/dreamdb.js CHANGED
@@ -1,5 +1,66 @@
1
1
  /* @ts-self-types="./dreamdb.d.ts" */
2
2
 
3
+ export class GeometryReader {
4
+ static __wrap(ptr) {
5
+ const obj = Object.create(GeometryReader.prototype);
6
+ obj.__wbg_ptr = ptr;
7
+ GeometryReaderFinalization.register(obj, obj.__wbg_ptr, obj);
8
+ return obj;
9
+ }
10
+ __destroy_into_raw() {
11
+ const ptr = this.__wbg_ptr;
12
+ this.__wbg_ptr = 0;
13
+ GeometryReaderFinalization.unregister(this);
14
+ return ptr;
15
+ }
16
+ free() {
17
+ const ptr = this.__destroy_into_raw();
18
+ wasm.__wbg_geometryreader_free(ptr, 0);
19
+ }
20
+ /**
21
+ * Returns only the new suffix at this total logical byte budget.
22
+ * @param {any} key
23
+ * @param {any} budget
24
+ * @returns {Promise<Uint8Array>}
25
+ */
26
+ extendCellPrefix(key, budget) {
27
+ const ret = wasm.geometryreader_extendCellPrefix(this.__wbg_ptr, key, budget);
28
+ return ret;
29
+ }
30
+ /**
31
+ * Declaration plus cells/LODs; no payload transfer. u64 values are BigInt.
32
+ * @returns {any}
33
+ */
34
+ metadata() {
35
+ const ret = wasm.geometryreader_metadata(this.__wbg_ptr);
36
+ if (ret[2]) {
37
+ throw takeFromExternrefTable0(ret[1]);
38
+ }
39
+ return takeFromExternrefTable0(ret[0]);
40
+ }
41
+ /**
42
+ * @param {any} level
43
+ * @returns {Promise<Uint8Array>}
44
+ */
45
+ readMeshLod(level) {
46
+ const ret = wasm.geometryreader_readMeshLod(this.__wbg_ptr, level);
47
+ return ret;
48
+ }
49
+ /**
50
+ * @param {any} min
51
+ * @param {any} max
52
+ * @returns {Array<any>}
53
+ */
54
+ selectCells(min, max) {
55
+ const ret = wasm.geometryreader_selectCells(this.__wbg_ptr, min, max);
56
+ if (ret[2]) {
57
+ throw takeFromExternrefTable0(ret[1]);
58
+ }
59
+ return takeFromExternrefTable0(ret[0]);
60
+ }
61
+ }
62
+ if (Symbol.dispose) GeometryReader.prototype[Symbol.dispose] = GeometryReader.prototype.free;
63
+
3
64
  /**
4
65
  * A `fetch`-backed backend rooted at a base URL.
5
66
  */
@@ -28,6 +89,22 @@ export class S3Backend {
28
89
  const ret = wasm.s3backend_get(this.__wbg_ptr, ptr0, len0, _opts);
29
90
  return ret;
30
91
  }
92
+ /**
93
+ * Stream `path` without first aggregating the response in wasm memory.
94
+ *
95
+ * Returning the length beside the browser stream satisfies the optional
96
+ * `Backend.getStream` contract. Older injected backends that implement
97
+ * only [`Self::get`] remain compatible, but cannot claim bounded memory
98
+ * for historical oversized inline Track reads.
99
+ * @param {string} path
100
+ * @returns {Promise<any>}
101
+ */
102
+ getStream(path) {
103
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
104
+ const len0 = WASM_VECTOR_LEN;
105
+ const ret = wasm.s3backend_getStream(this.__wbg_ptr, ptr0, len0);
106
+ return ret;
107
+ }
31
108
  /**
32
109
  * List object paths under `prefix`. Stub (returns empty); the current
33
110
  * consumer read paths don't require listing.
@@ -72,6 +149,29 @@ export class Space {
72
149
  const ptr = this.__destroy_into_raw();
73
150
  wasm.__wbg_space_free(ptr, 0);
74
151
  }
152
+ /**
153
+ * Validate all referenced Items, including tombstoned payloads.
154
+ * @param {string} field
155
+ * @returns {Promise<bigint>}
156
+ */
157
+ auditArrayField(field) {
158
+ const ptr0 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
159
+ const len0 = WASM_VECTOR_LEN;
160
+ const ret = wasm.space_auditArrayField(this.__wbg_ptr, ptr0, len0);
161
+ return ret;
162
+ }
163
+ /**
164
+ * Validate all graph pages and, when declared, exact-source correspondence.
165
+ * The returned count is exactly representable (GraphIndex node_count is u32).
166
+ * @param {string} field
167
+ * @returns {Promise<number>}
168
+ */
169
+ auditGraphIndex(field) {
170
+ const ptr0 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
171
+ const len0 = WASM_VECTOR_LEN;
172
+ const ret = wasm.space_auditGraphIndex(this.__wbg_ptr, ptr0, len0);
173
+ return ret;
174
+ }
75
175
  /**
76
176
  * The base URL objects are fetched relative to (consumers build their own
77
177
  * object URLs from this — e.g. `dreamdb-demo`'s track readers).
@@ -89,6 +189,36 @@ export class Space {
89
189
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
90
190
  }
91
191
  }
192
+ /**
193
+ * The Space's human-readable description, or `undefined` when none is set.
194
+ *
195
+ * The read half of `Authoring.setDescription` (#129). It lives here rather
196
+ * than on `Authoring` because that type is `write-full` and so exists only
197
+ * in the Node build — a description is metadata a READER wants, and
198
+ * `Space` is the surface all three build targets share.
199
+ *
200
+ * `async` although `Dataset::description` is not: the value comes from the
201
+ * Dataset this Space opens lazily at the Manifest hash already pinned by
202
+ * this Space, so the first call may perform that open without re-resolving
203
+ * a source Ref.
204
+ *
205
+ * Deliberately routed through `Dataset::description` rather than read out
206
+ * of `self.manifest`'s registry, which would be shorter and would also
207
+ * serve the cached decoded Manifest. `Dataset::recover_meta` is not a prefix
208
+ * filter: it accepts the legacy `vortex.*` namespace as well as
209
+ * `dreamdb.*`, canonicalises, and drops structural keys. Matching
210
+ * `dreamdb.description` here would silently return nothing for a legacy
211
+ * Space whose description is on disk and readable from Rust — the exact
212
+ * defect `recover_meta`'s own comment records.
213
+ *
214
+ * `Option<String>` marshals to `string | undefined`, NOT to `""`. An unset
215
+ * description and an empty one stay distinguishable across the boundary.
216
+ * @returns {Promise<string | undefined>}
217
+ */
218
+ description() {
219
+ const ret = wasm.space_description(this.__wbg_ptr);
220
+ return ret;
221
+ }
92
222
  /**
93
223
  * Open a Space from a `.../refs/<name>` or `.../manifests/<hash>` URI,
94
224
  * resolving the ref (if any) and loading the manifest. If `backend` is
@@ -105,6 +235,17 @@ export class Space {
105
235
  const ret = wasm.space_fromUri(ptr0, len0, backend);
106
236
  return ret;
107
237
  }
238
+ /**
239
+ * Read at this pinned Manifest. Returns null for never-created keys;
240
+ * deleted keys retain metadata with sample=null. Integer keys and anchors
241
+ * are BigInt; sample values use the Writer's tagged field shapes.
242
+ * @param {any} key
243
+ * @returns {Promise<any>}
244
+ */
245
+ getEntity(key) {
246
+ const ret = wasm.space_getEntity(this.__wbg_ptr, key);
247
+ return ret;
248
+ }
108
249
  /**
109
250
  * Walk the manifest DAG from HEAD, up to `max_depth` entries. Each entry:
110
251
  * `{ manifestHash, ts, writer, tracks: [{modality, address}] }`.
@@ -131,6 +272,18 @@ export class Space {
131
272
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
132
273
  }
133
274
  }
275
+ /**
276
+ * Open one pinned geometry Item. Missing/deleted anchors return undefined.
277
+ * @param {string} field
278
+ * @param {any} anchor
279
+ * @returns {Promise<GeometryReader | undefined>}
280
+ */
281
+ openGeometryItem(field, anchor) {
282
+ const ptr0 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
283
+ const len0 = WASM_VECTOR_LEN;
284
+ const ret = wasm.space_openGeometryItem(this.__wbg_ptr, ptr0, len0, anchor);
285
+ return ret;
286
+ }
134
287
  /**
135
288
  * Hybrid search fusing a lexical (BM25) sub-query and a dense (vector)
136
289
  * sub-query per spec/0015 §5/§6. Returns the fused `[{ anchor, score }]`
@@ -153,8 +306,8 @@ export class Space {
153
306
  * ```
154
307
  *
155
308
  * Delegates to the real (tested) `dreamdb-dataset::Dataset::query_hybrid`.
156
- * (v0 does not expose the optional scalar pre/post-filter; it runs with no
157
- * scalar gate.)
309
+ * Optional `scalarField` / `scalarOp` / `scalarValue` properties select
310
+ * the same scalar pre/post-filter planner used by the native API.
158
311
  * @param {Float32Array} vector
159
312
  * @param {any} opts
160
313
  * @returns {Promise<Array<any>>}
@@ -165,6 +318,21 @@ export class Space {
165
318
  const ret = wasm.space_queryHybrid(this.__wbg_ptr, ptr0, len0, opts);
166
319
  return ret;
167
320
  }
321
+ /**
322
+ * Hybrid query with an observable `{hits, trace}` result. `opts` accepts
323
+ * `maxLatencyMs`, `costModel`, and the optional scalar triple
324
+ * `scalarField`/`scalarOp`/`scalarValue` in addition to `queryHybrid`'s
325
+ * existing properties.
326
+ * @param {Float32Array} vector
327
+ * @param {any} opts
328
+ * @returns {Promise<any>}
329
+ */
330
+ queryHybridPlanned(vector, opts) {
331
+ const ptr0 = passArrayF32ToWasm0(vector, wasm.__wbindgen_malloc);
332
+ const len0 = WASM_VECTOR_LEN;
333
+ const ret = wasm.space_queryHybridPlanned(this.__wbg_ptr, ptr0, len0, opts);
334
+ return ret;
335
+ }
168
336
  /**
169
337
  * Scalar-index lookup: every anchor whose `field` satisfies `op value`
170
338
  * (spec/0011). Returns a `BigUint64Array`-style `Array` of anchors,
@@ -238,6 +406,43 @@ export class Space {
238
406
  const ret = wasm.space_queryVector(this.__wbg_ptr, ptr0, len0, ptr1, len1, opts);
239
407
  return ret;
240
408
  }
409
+ /**
410
+ * Read an Event/Unbucketed or Continuous/TimeBatch typed-array field as
411
+ * `Map<anchorString, {values, shape, ...}>`.
412
+ * @param {string} field
413
+ * @returns {Promise<Map<any, any>>}
414
+ */
415
+ readArrayColumn(field) {
416
+ const ptr0 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
417
+ const len0 = WASM_VECTOR_LEN;
418
+ const ret = wasm.space_readArrayColumn(this.__wbg_ptr, ptr0, len0);
419
+ return ret;
420
+ }
421
+ /**
422
+ * Read a typed-array Constant and decode it to a JS TypedArray plus its
423
+ * authoritative shape and semantic metadata.
424
+ * @param {string} field
425
+ * @returns {Promise<any>}
426
+ */
427
+ readArrayConstant(field) {
428
+ const ptr0 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
429
+ const len0 = WASM_VECTOR_LEN;
430
+ const ret = wasm.space_readArrayConstant(this.__wbg_ptr, ptr0, len0);
431
+ return ret;
432
+ }
433
+ /**
434
+ * Point read; full-u64 BigInt anchors are supported. Returned components
435
+ * are owned typed arrays (one Item's bytes), never unaligned aliases.
436
+ * @param {string} field
437
+ * @param {any} anchor
438
+ * @returns {Promise<any>}
439
+ */
440
+ readArrayItem(field, anchor) {
441
+ const ptr0 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
442
+ const len0 = WASM_VECTOR_LEN;
443
+ const ret = wasm.space_readArrayItem(this.__wbg_ptr, ptr0, len0, anchor);
444
+ return ret;
445
+ }
241
446
  /**
242
447
  * Read a scalar track as a `Map<anchorString, value>`. Single-anchor
243
448
  * entries resolve from the track index; multi-anchor entries fetch (and
@@ -250,6 +455,22 @@ export class Space {
250
455
  const ret = wasm.space_readScalarColumn(this.__wbg_ptr, track, _opts);
251
456
  return ret;
252
457
  }
458
+ /**
459
+ * Fetch verified initialization and complete Fragments overlapping one
460
+ * item-relative half-open range. This materializes the selected bytes; it
461
+ * is not a streaming API.
462
+ * @param {string} field
463
+ * @param {Uint8Array} item_key
464
+ * @param {any} relative_start_ns
465
+ * @param {any} relative_end_ns
466
+ * @returns {Promise<any>}
467
+ */
468
+ readVideoItemRange(field, item_key, relative_start_ns, relative_end_ns) {
469
+ const ptr0 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
470
+ const len0 = WASM_VECTOR_LEN;
471
+ const ret = wasm.space_readVideoItemRange(this.__wbg_ptr, ptr0, len0, item_key, relative_start_ns, relative_end_ns);
472
+ return ret;
473
+ }
253
474
  /**
254
475
  * Fetch a track object and return its `object_index` (array of CBOR
255
476
  * entries). Inline indexes only — paged indexes are not resolved (matching
@@ -261,6 +482,40 @@ export class Space {
261
482
  const ret = wasm.space_resolveObjectIndex(this.__wbg_ptr, track);
262
483
  return ret;
263
484
  }
485
+ /**
486
+ * Semantic-cache capacity in bytes (spec/0006 §3.6). Default 1 GiB.
487
+ * @returns {Promise<number>}
488
+ */
489
+ semanticCacheCapacity() {
490
+ const ret = wasm.space_semanticCacheCapacity(this.__wbg_ptr);
491
+ return ret;
492
+ }
493
+ /**
494
+ * Semantic-cache occupancy as `{ entries, bytesUsed, maxBytes }`.
495
+ * @returns {Promise<object>}
496
+ */
497
+ semanticCacheStats() {
498
+ const ret = wasm.space_semanticCacheStats(this.__wbg_ptr);
499
+ return ret;
500
+ }
501
+ /**
502
+ * Set the semantic-cache capacity in bytes, evicting down to it before
503
+ * returning. Returns the bytes evicted. `0` disables the cache.
504
+ *
505
+ * An index whose accounted size exceeds the cap is not cached and is
506
+ * re-fetched on every query, reported honestly as a miss. The default is
507
+ * not raised globally to suit one corpus.
508
+ *
509
+ * Sizing is workload- and architecture-dependent, and figures measured on
510
+ * a 64-bit host do NOT carry over here: `usize` is 32 bits on `wasm32`, so
511
+ * every offset and length inside a decoded index accounts differently.
512
+ * @param {number} n_bytes
513
+ * @returns {Promise<number>}
514
+ */
515
+ setSemanticCacheCapacity(n_bytes) {
516
+ const ret = wasm.space_setSemanticCacheCapacity(this.__wbg_ptr, n_bytes);
517
+ return ret;
518
+ }
264
519
  /**
265
520
  * Base32 hash of the manifest's first timeline.
266
521
  * @returns {string}
@@ -292,7 +547,10 @@ export class Space {
292
547
  const ptr0 = passStringToWasm0(key_or_modality, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
293
548
  const len0 = WASM_VECTOR_LEN;
294
549
  const ret = wasm.space_trackFor(this.__wbg_ptr, ptr0, len0);
295
- return ret;
550
+ if (ret[2]) {
551
+ throw takeFromExternrefTable0(ret[1]);
552
+ }
553
+ return takeFromExternrefTable0(ret[0]);
296
554
  }
297
555
  /**
298
556
  * List resolved tracks from this manifest.
@@ -300,6 +558,35 @@ export class Space {
300
558
  */
301
559
  tracks() {
302
560
  const ret = wasm.space_tracks(this.__wbg_ptr);
561
+ if (ret[2]) {
562
+ throw takeFromExternrefTable0(ret[1]);
563
+ }
564
+ return takeFromExternrefTable0(ret[0]);
565
+ }
566
+ /**
567
+ * Look up the logical VideoItem containing one absolute Timeline anchor
568
+ * without fetching media. Exact nanosecond values are returned as bigint.
569
+ * @param {string} field
570
+ * @param {any} anchor_ns
571
+ * @returns {Promise<any>}
572
+ */
573
+ videoItemAt(field, anchor_ns) {
574
+ const ptr0 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
575
+ const len0 = WASM_VECTOR_LEN;
576
+ const ret = wasm.space_videoItemAt(this.__wbg_ptr, ptr0, len0, anchor_ns);
577
+ return ret;
578
+ }
579
+ /**
580
+ * Look up one logical VideoItem by its stable opaque key without fetching
581
+ * initialization or Fragment bytes.
582
+ * @param {string} field
583
+ * @param {Uint8Array} item_key
584
+ * @returns {Promise<any>}
585
+ */
586
+ videoItemByKey(field, item_key) {
587
+ const ptr0 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
588
+ const len0 = WASM_VECTOR_LEN;
589
+ const ret = wasm.space_videoItemByKey(this.__wbg_ptr, ptr0, len0, item_key);
303
590
  return ret;
304
591
  }
305
592
  }
@@ -325,6 +612,17 @@ export class Writer {
325
612
  const ptr = this.__destroy_into_raw();
326
613
  wasm.__wbg_writer_free(ptr, 0);
327
614
  }
615
+ /**
616
+ * Atomically hot-append a complete Sample batch. Embeddings retain v1;
617
+ * scalar/text values use v2. Identified embeddings require embeddingSpecs.
618
+ * @param {Array<any>} samples
619
+ * @param {object | null} [embedding_specs]
620
+ * @returns {Promise<number>}
621
+ */
622
+ appendHot(samples, embedding_specs) {
623
+ const ret = wasm.writer_appendHot(this.__wbg_ptr, samples, isLikeNone(embedding_specs) ? 0 : addToExternrefTable0(embedding_specs));
624
+ return ret;
625
+ }
328
626
  /**
329
627
  * Append records and commit in one call.
330
628
  *
@@ -343,6 +641,17 @@ export class Writer {
343
641
  const ret = wasm.writer_appendMany(this.__wbg_ptr, samples);
344
642
  return ret;
345
643
  }
644
+ /**
645
+ * Append records with a field-to-`spec_id` map for identified embeddings.
646
+ * Values are full canonical base32 multihashes.
647
+ * @param {Array<any>} samples
648
+ * @param {object} embedding_specs
649
+ * @returns {Promise<number>}
650
+ */
651
+ appendManyWithSpecs(samples, embedding_specs) {
652
+ const ret = wasm.writer_appendManyWithSpecs(this.__wbg_ptr, samples, embedding_specs);
653
+ return ret;
654
+ }
346
655
  /**
347
656
  * Flush staged entries and publish a new manifest.
348
657
  *
@@ -356,6 +665,38 @@ export class Writer {
356
665
  const ret = wasm.writer_commit(this.__wbg_ptr);
357
666
  return ret;
358
667
  }
668
+ /**
669
+ * Producer policy only: TTL is evaluated on append, not by a timer.
670
+ * @param {number} flush_threshold
671
+ * @param {number} ttl_seconds
672
+ */
673
+ configureHotShard(flush_threshold, ttl_seconds) {
674
+ const ret = wasm.writer_configureHotShard(this.__wbg_ptr, flush_threshold, ttl_seconds);
675
+ if (ret[1]) {
676
+ throw takeFromExternrefTable0(ret[0]);
677
+ }
678
+ }
679
+ /**
680
+ * Create a never-used key. Sample uses appendMany's tagged fields, no anchor.
681
+ * @param {any} key
682
+ * @param {object} sample
683
+ * @param {object | null} [embedding_specs]
684
+ * @returns {Promise<object>}
685
+ */
686
+ createEntity(key, sample, embedding_specs) {
687
+ const ret = wasm.writer_createEntity(this.__wbg_ptr, key, sample, isLikeNone(embedding_specs) ? 0 : addToExternrefTable0(embedding_specs));
688
+ return ret;
689
+ }
690
+ /**
691
+ * Delete exactly a live revision, retaining its key and stable identity.
692
+ * @param {any} key
693
+ * @param {Uint8Array} expected
694
+ * @returns {Promise<object>}
695
+ */
696
+ deleteEntity(key, expected) {
697
+ const ret = wasm.writer_deleteEntity(this.__wbg_ptr, key, expected);
698
+ return ret;
699
+ }
359
700
  /**
360
701
  * Tombstone records by anchor. Returns the new manifest hash.
361
702
  * @param {BigUint64Array} anchors
@@ -370,6 +711,25 @@ export class Writer {
370
711
  const ret = wasm.writer_deleteRecords(this.__wbg_ptr, ptr0, len0, ptr1, len1);
371
712
  return ret;
372
713
  }
714
+ /**
715
+ * Enable one exact typed entity namespace: string, bytes or int.
716
+ * @param {string} key_kind
717
+ * @returns {Promise<void>}
718
+ */
719
+ enableEntityKeys(key_kind) {
720
+ const ptr0 = passStringToWasm0(key_kind, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
721
+ const len0 = WASM_VECTOR_LEN;
722
+ const ret = wasm.writer_enableEntityKeys(this.__wbg_ptr, ptr0, len0);
723
+ return ret;
724
+ }
725
+ /**
726
+ * Explicitly fold every pending hot field into cold Tracks in one publish.
727
+ * @returns {Promise<void>}
728
+ */
729
+ flushHot() {
730
+ const ret = wasm.writer_flushHot(this.__wbg_ptr);
731
+ return ret;
732
+ }
373
733
  /**
374
734
  * Current manifest hash, base32.
375
735
  * @returns {string}
@@ -414,6 +774,36 @@ export class Writer {
414
774
  const ret = wasm.writer_open(ptr0, len0, backend);
415
775
  return ret;
416
776
  }
777
+ /**
778
+ * Publish prequantized fixed-stride records. Coordinates is
779
+ * {origin:[x,y,z],step:[x,y,z],units:string}; depth is 0..16.
780
+ * @param {string} field
781
+ * @param {any} anchor
782
+ * @param {any} coordinates
783
+ * @param {any} depth
784
+ * @param {Uint8Array} records
785
+ * @returns {Promise<string>}
786
+ */
787
+ publishGeometryCells(field, anchor, coordinates, depth, records) {
788
+ const ptr0 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
789
+ const len0 = WASM_VECTOR_LEN;
790
+ const ret = wasm.writer_publishGeometryCells(this.__wbg_ptr, ptr0, len0, anchor, coordinates, depth, records);
791
+ return ret;
792
+ }
793
+ /**
794
+ * Each level is {errorGrid,vertices,triangles,bytes:Uint8Array}.
795
+ * @param {string} field
796
+ * @param {any} anchor
797
+ * @param {any} coordinates
798
+ * @param {Array<any>} levels
799
+ * @returns {Promise<string>}
800
+ */
801
+ publishGeometryMesh(field, anchor, coordinates, levels) {
802
+ const ptr0 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
803
+ const len0 = WASM_VECTOR_LEN;
804
+ const ret = wasm.writer_publishGeometryMesh(this.__wbg_ptr, ptr0, len0, anchor, coordinates, levels);
805
+ return ret;
806
+ }
417
807
  /**
418
808
  * The ref this writer advances.
419
809
  * @returns {string}
@@ -441,6 +831,30 @@ export class Writer {
441
831
  const ret = wasm.writer_snapshot(this.__wbg_ptr, ptr0, len0);
442
832
  return ret;
443
833
  }
834
+ /**
835
+ * Replace only a live revision, atomically hiding its old physical row.
836
+ * @param {any} key
837
+ * @param {object} sample
838
+ * @param {Uint8Array} expected
839
+ * @param {object | null} [embedding_specs]
840
+ * @returns {Promise<object>}
841
+ */
842
+ supersedeEntity(key, sample, expected, embedding_specs) {
843
+ const ret = wasm.writer_supersedeEntity(this.__wbg_ptr, key, sample, expected, isLikeNone(embedding_specs) ? 0 : addToExternrefTable0(embedding_specs));
844
+ return ret;
845
+ }
846
+ /**
847
+ * Create with no expected token, or replace/restore exactly that revision.
848
+ * @param {any} key
849
+ * @param {object} sample
850
+ * @param {Uint8Array | null} [expected]
851
+ * @param {object | null} [embedding_specs]
852
+ * @returns {Promise<object>}
853
+ */
854
+ upsertEntity(key, sample, expected, embedding_specs) {
855
+ const ret = wasm.writer_upsertEntity(this.__wbg_ptr, key, sample, isLikeNone(expected) ? 0 : addToExternrefTable0(expected), isLikeNone(embedding_specs) ? 0 : addToExternrefTable0(embedding_specs));
856
+ return ret;
857
+ }
444
858
  }
445
859
  if (Symbol.dispose) Writer.prototype[Symbol.dispose] = Writer.prototype.free;
446
860
 
@@ -749,6 +1163,24 @@ export function timeBucket(t_start, duration) {
749
1163
  return BigInt.asUintN(64, ret[0]);
750
1164
  }
751
1165
 
1166
+ /**
1167
+ * Decode one spec/0025 item using the same declaration and payload path as
1168
+ * `Space.readArrayColumn`, without requiring storage IO. This is the SDK's
1169
+ * pure conformance entry point for language-neutral vectors.
1170
+ * @param {any} item_type
1171
+ * @param {Uint8Array} payload
1172
+ * @returns {any}
1173
+ */
1174
+ export function typedArrayDecode(item_type, payload) {
1175
+ const ptr0 = passArray8ToWasm0(payload, wasm.__wbindgen_malloc);
1176
+ const len0 = WASM_VECTOR_LEN;
1177
+ const ret = wasm.typedArrayDecode(item_type, ptr0, len0);
1178
+ if (ret[2]) {
1179
+ throw takeFromExternrefTable0(ret[1]);
1180
+ }
1181
+ return takeFromExternrefTable0(ret[0]);
1182
+ }
1183
+
752
1184
  /**
753
1185
  * Package version — useful for consumers to confirm which build is loaded.
754
1186
  * @returns {string}
@@ -836,6 +1268,10 @@ function __wbg_get_imports() {
836
1268
  const ret = typeof(val) === 'object' && val !== null;
837
1269
  return ret;
838
1270
  },
1271
+ __wbg___wbindgen_is_string_dde0fd9020db4434: function(arg0) {
1272
+ const ret = typeof(arg0) === 'string';
1273
+ return ret;
1274
+ },
839
1275
  __wbg___wbindgen_is_undefined_35bb9f4c7fd651d5: function(arg0) {
840
1276
  const ret = arg0 === undefined;
841
1277
  return ret;
@@ -872,6 +1308,10 @@ function __wbg_get_imports() {
872
1308
  const ret = arg0.arrayBuffer();
873
1309
  return ret;
874
1310
  }, arguments); },
1311
+ __wbg_body_acbb5ec9cd18657f: function(arg0) {
1312
+ const ret = arg0.body;
1313
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1314
+ },
875
1315
  __wbg_call_084ee3e860ee9f92: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
876
1316
  const ret = arg0.call(arg1, arg2, arg3, arg4);
877
1317
  return ret;
@@ -888,6 +1328,10 @@ function __wbg_get_imports() {
888
1328
  const ret = arg0.call(arg1, arg2, arg3);
889
1329
  return ret;
890
1330
  }, arguments); },
1331
+ __wbg_crypto_38df2bab126b63dc: function(arg0) {
1332
+ const ret = arg0.crypto;
1333
+ return ret;
1334
+ },
891
1335
  __wbg_done_54b8da57023b7ed2: function(arg0) {
892
1336
  const ret = arg0.done;
893
1337
  return ret;
@@ -899,6 +1343,28 @@ function __wbg_get_imports() {
899
1343
  __wbg_error_f085d7e62279b703: function(arg0) {
900
1344
  console.error(arg0);
901
1345
  },
1346
+ __wbg_from_fa561fa561dc8031: function(arg0) {
1347
+ const ret = Array.from(arg0);
1348
+ return ret;
1349
+ },
1350
+ __wbg_geometryreader_new: function(arg0) {
1351
+ const ret = GeometryReader.__wrap(arg0);
1352
+ return ret;
1353
+ },
1354
+ __wbg_getRandomValues_c44a50d8cfdaebeb: function() { return handleError(function (arg0, arg1) {
1355
+ arg0.getRandomValues(arg1);
1356
+ }, arguments); },
1357
+ __wbg_getReader_c8a7370df46b86f6: function(arg0) {
1358
+ const ret = arg0.getReader();
1359
+ return ret;
1360
+ },
1361
+ __wbg_get_0b3f3bb74d16b7ad: function() { return handleError(function (arg0, arg1, arg2, arg3) {
1362
+ const ret = arg1.get(getStringFromWasm0(arg2, arg3));
1363
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1364
+ var len1 = WASM_VECTOR_LEN;
1365
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1366
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1367
+ }, arguments); },
902
1368
  __wbg_get_3e9a707ab7d352eb: function() { return handleError(function (arg0, arg1) {
903
1369
  const ret = Reflect.get(arg0, arg1);
904
1370
  return ret;
@@ -915,6 +1381,10 @@ function __wbg_get_imports() {
915
1381
  const ret = arg0[arg1 >>> 0];
916
1382
  return ret;
917
1383
  },
1384
+ __wbg_headers_18f39f24d3837dc1: function(arg0) {
1385
+ const ret = arg0.headers;
1386
+ return ret;
1387
+ },
918
1388
  __wbg_headers_4cfb0c75793d7a8d: function(arg0) {
919
1389
  const ret = arg0.headers;
920
1390
  return ret;
@@ -969,6 +1439,16 @@ function __wbg_get_imports() {
969
1439
  const ret = result;
970
1440
  return ret;
971
1441
  },
1442
+ __wbg_instanceof_ReadableStream_9a3d74fc91aa9c55: function(arg0) {
1443
+ let result;
1444
+ try {
1445
+ result = arg0 instanceof ReadableStream;
1446
+ } catch (_) {
1447
+ result = false;
1448
+ }
1449
+ const ret = result;
1450
+ return ret;
1451
+ },
972
1452
  __wbg_instanceof_Response_ecfc823e8fb354e2: function(arg0) {
973
1453
  let result;
974
1454
  try {
@@ -1001,18 +1481,58 @@ function __wbg_get_imports() {
1001
1481
  const ret = Symbol.iterator;
1002
1482
  return ret;
1003
1483
  },
1484
+ __wbg_keys_682010b680c9b1f8: function(arg0) {
1485
+ const ret = Object.keys(arg0);
1486
+ return ret;
1487
+ },
1488
+ __wbg_length_0adf2f3c5da33087: function(arg0) {
1489
+ const ret = arg0.length;
1490
+ return ret;
1491
+ },
1004
1492
  __wbg_length_13e61aa81636ec86: function(arg0) {
1005
1493
  const ret = arg0.length;
1006
1494
  return ret;
1007
1495
  },
1496
+ __wbg_length_1c094f6c75753f5f: function(arg0) {
1497
+ const ret = arg0.length;
1498
+ return ret;
1499
+ },
1008
1500
  __wbg_length_2591a0f4f659a55c: function(arg0) {
1009
1501
  const ret = arg0.length;
1010
1502
  return ret;
1011
1503
  },
1504
+ __wbg_length_3a1b902b6cde9e2c: function(arg0) {
1505
+ const ret = arg0.length;
1506
+ return ret;
1507
+ },
1012
1508
  __wbg_length_56fcd3e2b7e0299d: function(arg0) {
1013
1509
  const ret = arg0.length;
1014
1510
  return ret;
1015
1511
  },
1512
+ __wbg_length_911750a64e2f4f88: function(arg0) {
1513
+ const ret = arg0.length;
1514
+ return ret;
1515
+ },
1516
+ __wbg_length_a4365e969857a2c9: function(arg0) {
1517
+ const ret = arg0.length;
1518
+ return ret;
1519
+ },
1520
+ __wbg_length_c7ce929623e7a230: function(arg0) {
1521
+ const ret = arg0.length;
1522
+ return ret;
1523
+ },
1524
+ __wbg_length_dc239675ea61db1b: function(arg0) {
1525
+ const ret = arg0.length;
1526
+ return ret;
1527
+ },
1528
+ __wbg_length_efe2271ed86b56cc: function(arg0) {
1529
+ const ret = arg0.length;
1530
+ return ret;
1531
+ },
1532
+ __wbg_msCrypto_bd5a034af96bcba6: function(arg0) {
1533
+ const ret = arg0.msCrypto;
1534
+ return ret;
1535
+ },
1016
1536
  __wbg_new_02d162bc6cf02f60: function() {
1017
1537
  const ret = new Object();
1018
1538
  return ret;
@@ -1033,6 +1553,10 @@ function __wbg_get_imports() {
1033
1553
  const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
1034
1554
  return ret;
1035
1555
  },
1556
+ __wbg_new_from_slice_7a419f18ea6472bf: function(arg0, arg1) {
1557
+ const ret = new Float32Array(getArrayF32FromWasm0(arg0, arg1));
1558
+ return ret;
1559
+ },
1036
1560
  __wbg_new_typed_c072c4ce9a2a0cdf: function(arg0, arg1) {
1037
1561
  try {
1038
1562
  var state0 = {a: arg0, b: arg1};
@@ -1051,6 +1575,46 @@ function __wbg_get_imports() {
1051
1575
  state0.a = 0;
1052
1576
  }
1053
1577
  },
1578
+ __wbg_new_with_length_1278c16a5c5b497f: function(arg0) {
1579
+ const ret = new Float64Array(arg0 >>> 0);
1580
+ return ret;
1581
+ },
1582
+ __wbg_new_with_length_22e34f6824b87f53: function(arg0) {
1583
+ const ret = new BigUint64Array(arg0 >>> 0);
1584
+ return ret;
1585
+ },
1586
+ __wbg_new_with_length_58dc420af34edb59: function(arg0) {
1587
+ const ret = new Float32Array(arg0 >>> 0);
1588
+ return ret;
1589
+ },
1590
+ __wbg_new_with_length_662ce8fda8456c6c: function(arg0) {
1591
+ const ret = new Uint16Array(arg0 >>> 0);
1592
+ return ret;
1593
+ },
1594
+ __wbg_new_with_length_6ab0b677ba8ffdc4: function(arg0) {
1595
+ const ret = new BigInt64Array(arg0 >>> 0);
1596
+ return ret;
1597
+ },
1598
+ __wbg_new_with_length_78398b95fa59feae: function(arg0) {
1599
+ const ret = new Int32Array(arg0 >>> 0);
1600
+ return ret;
1601
+ },
1602
+ __wbg_new_with_length_96785292f4aab914: function(arg0) {
1603
+ const ret = new Int8Array(arg0 >>> 0);
1604
+ return ret;
1605
+ },
1606
+ __wbg_new_with_length_99887c91eae4abab: function(arg0) {
1607
+ const ret = new Uint8Array(arg0 >>> 0);
1608
+ return ret;
1609
+ },
1610
+ __wbg_new_with_length_bab0ddb25b1a2cc7: function(arg0) {
1611
+ const ret = new Int16Array(arg0 >>> 0);
1612
+ return ret;
1613
+ },
1614
+ __wbg_new_with_length_f128f2c16ad4f906: function(arg0) {
1615
+ const ret = new Uint32Array(arg0 >>> 0);
1616
+ return ret;
1617
+ },
1054
1618
  __wbg_new_with_str_and_init_ffe9977c986ea039: function() { return handleError(function (arg0, arg1, arg2) {
1055
1619
  const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
1056
1620
  return ret;
@@ -1063,6 +1627,10 @@ function __wbg_get_imports() {
1063
1627
  const ret = arg0.next();
1064
1628
  return ret;
1065
1629
  }, arguments); },
1630
+ __wbg_node_84ea875411254db1: function(arg0) {
1631
+ const ret = arg0.node;
1632
+ return ret;
1633
+ },
1066
1634
  __wbg_now_81363d44c96dd239: function() {
1067
1635
  const ret = Date.now();
1068
1636
  return ret;
@@ -1071,6 +1639,10 @@ function __wbg_get_imports() {
1071
1639
  const ret = arg0.ok;
1072
1640
  return ret;
1073
1641
  },
1642
+ __wbg_process_44c7a14e11e9f69e: function(arg0) {
1643
+ const ret = arg0.process;
1644
+ return ret;
1645
+ },
1074
1646
  __wbg_prototypesetcall_5f9bdc8d75e07276: function(arg0, arg1, arg2) {
1075
1647
  Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
1076
1648
  },
@@ -1088,14 +1660,45 @@ function __wbg_get_imports() {
1088
1660
  __wbg_queueMicrotask_b39ea83c7f01971a: function(arg0) {
1089
1661
  queueMicrotask(arg0);
1090
1662
  },
1663
+ __wbg_randomFillSync_6c25eac9869eb53c: function() { return handleError(function (arg0, arg1) {
1664
+ arg0.randomFillSync(arg1);
1665
+ }, arguments); },
1666
+ __wbg_require_b4edbdcf3e2a1ef0: function() { return handleError(function () {
1667
+ const ret = module.require;
1668
+ return ret;
1669
+ }, arguments); },
1091
1670
  __wbg_resolve_d17db9352f5a220e: function(arg0) {
1092
1671
  const ret = Promise.resolve(arg0);
1093
1672
  return ret;
1094
1673
  },
1674
+ __wbg_set_517261bc500078e6: function(arg0, arg1, arg2) {
1675
+ arg0.set(getArrayI16FromWasm0(arg1, arg2));
1676
+ },
1677
+ __wbg_set_5bffd0c00e65c280: function(arg0, arg1, arg2) {
1678
+ arg0.set(getArrayF64FromWasm0(arg1, arg2));
1679
+ },
1680
+ __wbg_set_5d860a0c0949a838: function(arg0, arg1, arg2) {
1681
+ arg0.set(getArrayF32FromWasm0(arg1, arg2));
1682
+ },
1683
+ __wbg_set_8c4bf3c22a64e1df: function(arg0, arg1, arg2) {
1684
+ arg0.set(getArrayI8FromWasm0(arg1, arg2));
1685
+ },
1686
+ __wbg_set_90474108ec025ba3: function(arg0, arg1, arg2) {
1687
+ arg0.set(getArrayU32FromWasm0(arg1, arg2));
1688
+ },
1689
+ __wbg_set_943e5a384dda27eb: function(arg0, arg1, arg2) {
1690
+ arg0.set(getArrayI32FromWasm0(arg1, arg2));
1691
+ },
1095
1692
  __wbg_set_a0e911be3da02782: function() { return handleError(function (arg0, arg1, arg2) {
1096
1693
  const ret = Reflect.set(arg0, arg1, arg2);
1097
1694
  return ret;
1098
1695
  }, arguments); },
1696
+ __wbg_set_c9acd362199fe8b8: function(arg0, arg1, arg2) {
1697
+ arg0.set(getArrayI64FromWasm0(arg1, arg2));
1698
+ },
1699
+ __wbg_set_d4121491cc61da07: function(arg0, arg1, arg2) {
1700
+ arg0.set(getArrayU16FromWasm0(arg1, arg2));
1701
+ },
1099
1702
  __wbg_set_d57e5106f0271787: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1100
1703
  arg0.set(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
1101
1704
  }, arguments); },
@@ -1103,6 +1706,9 @@ function __wbg_get_imports() {
1103
1706
  const ret = arg0.set(arg1, arg2);
1104
1707
  return ret;
1105
1708
  },
1709
+ __wbg_set_fb3115a057014152: function(arg0, arg1, arg2) {
1710
+ arg0.set(getArrayU64FromWasm0(arg1, arg2));
1711
+ },
1106
1712
  __wbg_space_new: function(arg0) {
1107
1713
  const ret = Space.__wrap(arg0);
1108
1714
  return ret;
@@ -1127,6 +1733,10 @@ function __wbg_get_imports() {
1127
1733
  const ret = arg0.status;
1128
1734
  return ret;
1129
1735
  },
1736
+ __wbg_subarray_7c6a0da8f3b4a1ba: function(arg0, arg1, arg2) {
1737
+ const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
1738
+ return ret;
1739
+ },
1130
1740
  __wbg_then_837494e384b37459: function(arg0, arg1) {
1131
1741
  const ret = arg0.then(arg1);
1132
1742
  return ret;
@@ -1139,12 +1749,16 @@ function __wbg_get_imports() {
1139
1749
  const ret = arg0.value;
1140
1750
  return ret;
1141
1751
  },
1752
+ __wbg_versions_276b2795b1c6a219: function(arg0) {
1753
+ const ret = arg0.versions;
1754
+ return ret;
1755
+ },
1142
1756
  __wbg_writer_new: function(arg0) {
1143
1757
  const ret = Writer.__wrap(arg0);
1144
1758
  return ret;
1145
1759
  },
1146
1760
  __wbindgen_cast_0000000000000001: function(arg0, arg1) {
1147
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 488, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
1761
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 819, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
1148
1762
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen_f7c54996eb9137d9___convert__closures_____invoke___wasm_bindgen_f7c54996eb9137d9___JsValue__core_7d5f0a2ba6a62c33___result__Result_____wasm_bindgen_f7c54996eb9137d9___JsError___true_);
1149
1763
  return ret;
1150
1764
  },
@@ -1164,11 +1778,16 @@ function __wbg_get_imports() {
1164
1778
  return ret;
1165
1779
  },
1166
1780
  __wbindgen_cast_0000000000000005: function(arg0, arg1) {
1781
+ // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
1782
+ const ret = getArrayU8FromWasm0(arg0, arg1);
1783
+ return ret;
1784
+ },
1785
+ __wbindgen_cast_0000000000000006: function(arg0, arg1) {
1167
1786
  // Cast intrinsic for `Ref(String) -> Externref`.
1168
1787
  const ret = getStringFromWasm0(arg0, arg1);
1169
1788
  return ret;
1170
1789
  },
1171
- __wbindgen_cast_0000000000000006: function(arg0) {
1790
+ __wbindgen_cast_0000000000000007: function(arg0) {
1172
1791
  // Cast intrinsic for `U64 -> Externref`.
1173
1792
  const ret = BigInt.asUintN(64, arg0);
1174
1793
  return ret;
@@ -1200,6 +1819,9 @@ function wasm_bindgen_f7c54996eb9137d9___convert__closures_____invoke___js_sys_a
1200
1819
  wasm.wasm_bindgen_f7c54996eb9137d9___convert__closures_____invoke___js_sys_ac40961855821e8e___Function_fn_wasm_bindgen_f7c54996eb9137d9___JsValue_____wasm_bindgen_f7c54996eb9137d9___sys__Undefined___js_sys_ac40961855821e8e___Function_fn_wasm_bindgen_f7c54996eb9137d9___JsValue_____wasm_bindgen_f7c54996eb9137d9___sys__Undefined_______true_(arg0, arg1, arg2, arg3);
1201
1820
  }
1202
1821
 
1822
+ const GeometryReaderFinalization = (typeof FinalizationRegistry === 'undefined')
1823
+ ? { register: () => {}, unregister: () => {} }
1824
+ : new FinalizationRegistry(ptr => wasm.__wbg_geometryreader_free(ptr, 1));
1203
1825
  const S3BackendFinalization = (typeof FinalizationRegistry === 'undefined')
1204
1826
  ? { register: () => {}, unregister: () => {} }
1205
1827
  : new FinalizationRegistry(ptr => wasm.__wbg_s3backend_free(ptr, 1));
@@ -1290,11 +1912,59 @@ function getArrayF32FromWasm0(ptr, len) {
1290
1912
  return getFloat32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
1291
1913
  }
1292
1914
 
1915
+ function getArrayF64FromWasm0(ptr, len) {
1916
+ ptr = ptr >>> 0;
1917
+ return getFloat64ArrayMemory0().subarray(ptr / 8, ptr / 8 + len);
1918
+ }
1919
+
1920
+ function getArrayI16FromWasm0(ptr, len) {
1921
+ ptr = ptr >>> 0;
1922
+ return getInt16ArrayMemory0().subarray(ptr / 2, ptr / 2 + len);
1923
+ }
1924
+
1925
+ function getArrayI32FromWasm0(ptr, len) {
1926
+ ptr = ptr >>> 0;
1927
+ return getInt32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
1928
+ }
1929
+
1930
+ function getArrayI64FromWasm0(ptr, len) {
1931
+ ptr = ptr >>> 0;
1932
+ return getBigInt64ArrayMemory0().subarray(ptr / 8, ptr / 8 + len);
1933
+ }
1934
+
1935
+ function getArrayI8FromWasm0(ptr, len) {
1936
+ ptr = ptr >>> 0;
1937
+ return getInt8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
1938
+ }
1939
+
1940
+ function getArrayU16FromWasm0(ptr, len) {
1941
+ ptr = ptr >>> 0;
1942
+ return getUint16ArrayMemory0().subarray(ptr / 2, ptr / 2 + len);
1943
+ }
1944
+
1945
+ function getArrayU32FromWasm0(ptr, len) {
1946
+ ptr = ptr >>> 0;
1947
+ return getUint32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
1948
+ }
1949
+
1950
+ function getArrayU64FromWasm0(ptr, len) {
1951
+ ptr = ptr >>> 0;
1952
+ return getBigUint64ArrayMemory0().subarray(ptr / 8, ptr / 8 + len);
1953
+ }
1954
+
1293
1955
  function getArrayU8FromWasm0(ptr, len) {
1294
1956
  ptr = ptr >>> 0;
1295
1957
  return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
1296
1958
  }
1297
1959
 
1960
+ let cachedBigInt64ArrayMemory0 = null;
1961
+ function getBigInt64ArrayMemory0() {
1962
+ if (cachedBigInt64ArrayMemory0 === null || cachedBigInt64ArrayMemory0.byteLength === 0) {
1963
+ cachedBigInt64ArrayMemory0 = new BigInt64Array(wasm.memory.buffer);
1964
+ }
1965
+ return cachedBigInt64ArrayMemory0;
1966
+ }
1967
+
1298
1968
  let cachedBigUint64ArrayMemory0 = null;
1299
1969
  function getBigUint64ArrayMemory0() {
1300
1970
  if (cachedBigUint64ArrayMemory0 === null || cachedBigUint64ArrayMemory0.byteLength === 0) {
@@ -1319,10 +1989,58 @@ function getFloat32ArrayMemory0() {
1319
1989
  return cachedFloat32ArrayMemory0;
1320
1990
  }
1321
1991
 
1992
+ let cachedFloat64ArrayMemory0 = null;
1993
+ function getFloat64ArrayMemory0() {
1994
+ if (cachedFloat64ArrayMemory0 === null || cachedFloat64ArrayMemory0.byteLength === 0) {
1995
+ cachedFloat64ArrayMemory0 = new Float64Array(wasm.memory.buffer);
1996
+ }
1997
+ return cachedFloat64ArrayMemory0;
1998
+ }
1999
+
2000
+ let cachedInt16ArrayMemory0 = null;
2001
+ function getInt16ArrayMemory0() {
2002
+ if (cachedInt16ArrayMemory0 === null || cachedInt16ArrayMemory0.byteLength === 0) {
2003
+ cachedInt16ArrayMemory0 = new Int16Array(wasm.memory.buffer);
2004
+ }
2005
+ return cachedInt16ArrayMemory0;
2006
+ }
2007
+
2008
+ let cachedInt32ArrayMemory0 = null;
2009
+ function getInt32ArrayMemory0() {
2010
+ if (cachedInt32ArrayMemory0 === null || cachedInt32ArrayMemory0.byteLength === 0) {
2011
+ cachedInt32ArrayMemory0 = new Int32Array(wasm.memory.buffer);
2012
+ }
2013
+ return cachedInt32ArrayMemory0;
2014
+ }
2015
+
2016
+ let cachedInt8ArrayMemory0 = null;
2017
+ function getInt8ArrayMemory0() {
2018
+ if (cachedInt8ArrayMemory0 === null || cachedInt8ArrayMemory0.byteLength === 0) {
2019
+ cachedInt8ArrayMemory0 = new Int8Array(wasm.memory.buffer);
2020
+ }
2021
+ return cachedInt8ArrayMemory0;
2022
+ }
2023
+
1322
2024
  function getStringFromWasm0(ptr, len) {
1323
2025
  return decodeText(ptr >>> 0, len);
1324
2026
  }
1325
2027
 
2028
+ let cachedUint16ArrayMemory0 = null;
2029
+ function getUint16ArrayMemory0() {
2030
+ if (cachedUint16ArrayMemory0 === null || cachedUint16ArrayMemory0.byteLength === 0) {
2031
+ cachedUint16ArrayMemory0 = new Uint16Array(wasm.memory.buffer);
2032
+ }
2033
+ return cachedUint16ArrayMemory0;
2034
+ }
2035
+
2036
+ let cachedUint32ArrayMemory0 = null;
2037
+ function getUint32ArrayMemory0() {
2038
+ if (cachedUint32ArrayMemory0 === null || cachedUint32ArrayMemory0.byteLength === 0) {
2039
+ cachedUint32ArrayMemory0 = new Uint32Array(wasm.memory.buffer);
2040
+ }
2041
+ return cachedUint32ArrayMemory0;
2042
+ }
2043
+
1326
2044
  let cachedUint8ArrayMemory0 = null;
1327
2045
  function getUint8ArrayMemory0() {
1328
2046
  if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
@@ -1470,9 +2188,16 @@ function __wbg_finalize_init(instance, module) {
1470
2188
  wasmInstance = instance;
1471
2189
  wasm = instance.exports;
1472
2190
  wasmModule = module;
2191
+ cachedBigInt64ArrayMemory0 = null;
1473
2192
  cachedBigUint64ArrayMemory0 = null;
1474
2193
  cachedDataViewMemory0 = null;
1475
2194
  cachedFloat32ArrayMemory0 = null;
2195
+ cachedFloat64ArrayMemory0 = null;
2196
+ cachedInt16ArrayMemory0 = null;
2197
+ cachedInt32ArrayMemory0 = null;
2198
+ cachedInt8ArrayMemory0 = null;
2199
+ cachedUint16ArrayMemory0 = null;
2200
+ cachedUint32ArrayMemory0 = null;
1476
2201
  cachedUint8ArrayMemory0 = null;
1477
2202
  wasm.__wbindgen_start();
1478
2203
  return wasm;