@gscdump/engine 1.4.0 → 1.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapters/duckdb-node.d.mts +7 -0
- package/dist/adapters/duckdb-node.mjs +94 -0
- package/dist/adapters/filesystem.d.mts +1 -1
- package/dist/adapters/filesystem.mjs +1 -1
- package/dist/adapters/hyparquet.d.mts +4 -3
- package/dist/adapters/hyparquet.mjs +7 -3
- package/dist/adapters/node-harness.d.mts +38 -0
- package/dist/adapters/node-harness.mjs +47 -0
- package/dist/adapters/node.d.mts +4 -100
- package/dist/adapters/node.mjs +4 -240
- package/dist/adapters/parquet-attach.d.mts +23 -0
- package/dist/adapters/parquet-attach.mjs +21 -0
- package/dist/adapters/r2-manifest.d.mts +82 -0
- package/dist/adapters/r2-manifest.mjs +364 -0
- package/dist/adapters/r2.d.mts +1 -1
- package/dist/adapters/read-optional.mjs +15 -0
- package/dist/adapters/snapshot-attach.d.mts +38 -0
- package/dist/adapters/snapshot-attach.mjs +85 -0
- package/dist/analysis-types.d.mts +56 -1
- package/dist/analyzer/define.d.mts +48 -0
- package/dist/analyzer/define.mjs +60 -0
- package/dist/analyzer/dispatch.d.mts +17 -0
- package/dist/analyzer/index.d.mts +4 -14
- package/dist/analyzer/index.mjs +4 -112
- package/dist/analyzer/registry.d.mts +33 -0
- package/dist/analyzer/registry.mjs +49 -0
- package/dist/analyzer/types.d.mts +95 -0
- package/dist/analyzer/types.mjs +5 -0
- package/dist/coerce.d.mts +4 -0
- package/dist/compaction.d.mts +14 -0
- package/dist/{_chunks/parquet-plan.mjs → compaction.mjs} +2 -138
- package/dist/contracts.d.mts +1 -2
- package/dist/{_chunks/schema.d.mts → drizzle-schema.d.mts} +152 -184
- package/dist/{_chunks/schema.mjs → drizzle-schema.mjs} +6 -78
- package/dist/{_chunks/snapshot.d.mts → duckdb.d.mts} +1 -14
- package/dist/duckdb.mjs +207 -0
- package/dist/engine.d.mts +4 -0
- package/dist/engine.mjs +385 -0
- package/dist/entities.d.mts +3 -52
- package/dist/entities.mjs +867 -2
- package/dist/errors.d.mts +114 -1
- package/dist/gc.mjs +92 -0
- package/dist/iceberg/append-sink.d.mts +14 -0
- package/dist/iceberg/append-sink.mjs +142 -0
- package/dist/iceberg/catalog.d.mts +71 -0
- package/dist/iceberg/catalog.mjs +109 -0
- package/dist/iceberg/index.d.mts +4 -13
- package/dist/iceberg/index.mjs +3 -244
- package/dist/iceberg/overwrite-writer.d.mts +161 -0
- package/dist/iceberg/overwrite-writer.mjs +102 -0
- package/dist/iceberg/pyiceberg-runtime.mjs +34 -0
- package/dist/iceberg/schema.d.mts +69 -0
- package/dist/{_chunks/schema2.mjs → iceberg/schema.mjs} +3 -2
- package/dist/index.d.mts +14 -190
- package/dist/index.mjs +10 -645
- package/dist/ingest-accumulator.d.mts +1 -1
- package/dist/ingest.d.mts +1 -1
- package/dist/layout.d.mts +31 -0
- package/dist/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/brotli.bitreader.mjs +88 -0
- package/dist/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/brotli.blocks.mjs +120 -0
- package/dist/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/brotli.context.mjs +1805 -0
- package/dist/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/brotli.contextmap.mjs +49 -0
- package/dist/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/brotli.dictionary.mjs +984 -0
- package/dist/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/brotli.huffman.mjs +266 -0
- package/dist/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/brotli.mjs +340 -0
- package/dist/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/brotli.prefix.mjs +109 -0
- package/dist/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/brotli.streams.mjs +21 -0
- package/dist/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/brotli.transform.mjs +190 -0
- package/dist/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/compressors.mjs +7 -0
- package/dist/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/gzip.huffman.mjs +121 -0
- package/dist/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/gzip.mjs +176 -0
- package/dist/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/index.mjs +7 -0
- package/dist/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/lz4.mjs +52 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/bloom.mjs +93 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/bytewriter.mjs +91 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/column.mjs +186 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/datapage.mjs +113 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/delta.mjs +111 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/dictionary.mjs +99 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/dremel.mjs +116 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/encoding.mjs +51 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/geospatial.mjs +84 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/index.mjs +7 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/indexes.mjs +31 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/metadata.mjs +138 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/node.mjs +8 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/parquet-writer.mjs +139 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/plain.mjs +68 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/schema.mjs +254 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/snappy.mjs +125 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/splitstream.mjs +38 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/thrift.mjs +79 -0
- package/dist/{_chunks/libs/hyparquet-writer.d.mts → node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/types.d.mts} +2 -2
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/unconvert.mjs +247 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/variant.mjs +321 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/wkb.mjs +79 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/write-rows.mjs +122 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/write.mjs +5 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/types/bytewriter.d.mts +1 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/types/index.d.mts +10 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/types/node.d.mts +3 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/types/parquet-writer.d.mts +2 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/types/schema.d.mts +2 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/types/wkb.d.mts +1 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/types/write-rows.d.mts +1 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/types/write.d.mts +1 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/assemble.mjs +3 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/bloom.mjs +69 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/column.mjs +8 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/constants.mjs +80 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/convert.mjs +3 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/datapage.mjs +6 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/delta.mjs +2 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/encoding.mjs +2 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/filter.mjs +3 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/geoparquet.mjs +1 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/index.mjs +7 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/indexes.mjs +5 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/metadata.mjs +7 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/node.mjs +3 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/plain.mjs +1 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/plan.mjs +5 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/query.mjs +3 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/read.mjs +6 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/rowgroup.mjs +7 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/schema.mjs +54 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/snappy.mjs +1 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/thrift.mjs +1 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/types.d.mts +1 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/utils.mjs +19 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/variant.mjs +3 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/wkb.mjs +1 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/xxhash.mjs +68 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/types/index.d.mts +7 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/types/indexes.d.mts +1 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/types/metadata.d.mts +1 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/types/node.d.mts +2 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/types/query.d.mts +1 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/types/read.d.mts +1 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/types/snappy.d.mts +1 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/types/utils.d.mts +1 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/assemble.mjs +144 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/bloom.mjs +124 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/column.mjs +127 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/constants.mjs +75 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/convert.mjs +118 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/datapage.mjs +144 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/delta.mjs +65 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/encoding.mjs +76 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/filter.mjs +98 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/geoparquet.mjs +24 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/index.mjs +7 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/indexes.mjs +16 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/metadata.mjs +235 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/node.mjs +7 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/plain.mjs +78 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/plan.mjs +147 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/query.mjs +3 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/read.mjs +106 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/rowgroup.mjs +154 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/schema.mjs +75 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/snappy.mjs +70 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/thrift.mjs +86 -0
- package/dist/{_chunks/libs/hyparquet.d.mts → node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/types.d.mts} +6 -8
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/utils.mjs +31 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/variant.mjs +225 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/wkb.mjs +94 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/xxhash.mjs +68 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/types/index.d.mts +10 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/types/indexes.d.mts +1 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/types/metadata.d.mts +1 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/types/node.d.mts +3 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/types/query.d.mts +1 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/types/read.d.mts +1 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/types/snappy.d.mts +1 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/types/utils.d.mts +1 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/avro/avro.metadata.mjs +1 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/avro/avro.read.mjs +4 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/avro/avro.write.mjs +2 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/catalog/file.mjs +1 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/catalog/loadTable.mjs +3 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/catalog/rest.mjs +73 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/create.mjs +67 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/delete.mjs +2 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/fetch.mjs +8 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/index.mjs +13 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/json.mjs +147 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/manifest.mjs +2 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/metadata.mjs +3 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/prune.mjs +4 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/puffin/deletion-vector.mjs +2 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/puffin/puffin.mjs +2 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/puffin/roaring.mjs +1 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/read.mjs +9 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/s3.mjs +3 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/schema.mjs +76 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/sigv4.mjs +2 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/sql/icebergDataSource.mjs +8 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/sql/icebergQuery.mjs +5 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/sql/whereFilter.mjs +1 -0
- package/dist/{_chunks/libs/icebird.d.mts → node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/types.d.mts} +5 -33
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/utils.mjs +8 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/commit.mjs +5 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/conversions.mjs +19 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/delete-file.mjs +3 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/geospatial.mjs +1 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/manifest-list.mjs +2 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/manifest.mjs +3 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/parquet.mjs +5 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/partition.mjs +75 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/rewrite.mjs +10 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/serde.mjs +2 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/snapshot.mjs +5 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/sort.mjs +3 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/stage-deletion-vector.mjs +11 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/stage-position-delete.mjs +8 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/stage.mjs +10 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/stats.mjs +4 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/transform.mjs +60 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/write.mjs +45 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/types/catalog/file.d.mts +1 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/types/catalog/rest.d.mts +1 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/types/create.d.mts +1 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/types/fetch.d.mts +1 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/types/index.d.mts +13 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/types/manifest.d.mts +1 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/types/metadata.d.mts +1 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/types/read.d.mts +2 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/types/s3.d.mts +1 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/types/sql/icebergDataSource.d.mts +2 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/types/sql/icebergQuery.d.mts +2 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/types/write/write.d.mts +32 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/ast.d.mts +1 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/backend/dataSource.mjs +1 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/execute/accumulator.mjs +2 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/execute/aggregates.mjs +10 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/execute/execute.mjs +15 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/execute/join.mjs +5 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/execute/scanColumn.mjs +1 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/execute/sort.mjs +5 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/execute/streamingAggregate.mjs +9 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/execute/utils.mjs +1 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/execute/window.mjs +5 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/execute/yield.mjs +17 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/expression/alias.mjs +1 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/expression/binary.mjs +1 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/expression/date.mjs +1 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/expression/evaluate.mjs +15 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/expression/math.mjs +1 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/expression/regexp.mjs +2 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/expression/strings.mjs +3 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/index.d.mts +1 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/index.mjs +9 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/parse/expression.mjs +6 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/parse/extractTables.mjs +1 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/parse/functions.mjs +5 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/parse/joins.mjs +7 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/parse/parse.mjs +10 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/parse/primary.mjs +8 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/parse/state.mjs +2 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/parse/tokenize.mjs +3 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/parse/types.d.mts +1 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/plan/columns.mjs +3 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/plan/plan.mjs +7 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/plan/types.d.mts +1 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/spatial/bbox.mjs +2 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/spatial/equality.mjs +2 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/spatial/operations.mjs +5 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/spatial/pointRelations.mjs +2 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/spatial/primitives.mjs +2 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/spatial/segments.mjs +2 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/spatial/spatial.mjs +6 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/spatial/wkt.mjs +1 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/types.d.mts +3 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/validation/aggregates.mjs +3 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/validation/executionErrors.mjs +2 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/validation/functions.mjs +2 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/validation/keywords.mjs +1 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/validation/parseErrors.mjs +2 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/validation/tables.mjs +2 -0
- package/dist/parquet-plan.d.mts +15 -0
- package/dist/parquet-plan.mjs +139 -0
- package/dist/parquet-pushdown.mjs +58 -0
- package/dist/period/index.d.mts +52 -1
- package/dist/planner.d.mts +2 -14
- package/dist/planner.mjs +2 -1
- package/dist/profile.d.mts +21 -0
- package/dist/profile.mjs +27 -0
- package/dist/query-dim.d.mts +54 -0
- package/dist/query-dim.mjs +91 -0
- package/dist/report/define.d.mts +8 -0
- package/dist/report/define.mjs +15 -0
- package/dist/report/hash.d.mts +13 -0
- package/dist/report/hash.mjs +29 -0
- package/dist/report/index.d.mts +4 -170
- package/dist/report/index.mjs +3 -55
- package/dist/report/registry.d.mts +18 -0
- package/dist/report/registry.mjs +14 -0
- package/dist/report/types.d.mts +139 -0
- package/dist/resolver/adapter.d.mts +13 -0
- package/dist/resolver/adapter.mjs +27 -0
- package/dist/resolver/canonical-source.d.mts +5 -0
- package/dist/resolver/canonical-source.mjs +14 -0
- package/dist/resolver/compile.d.mts +15 -0
- package/dist/resolver/compile.mjs +396 -0
- package/dist/resolver/datasets.d.mts +16 -0
- package/dist/resolver/datasets.mjs +159 -0
- package/dist/resolver/extras-overlay.d.mts +37 -0
- package/dist/resolver/extras-overlay.mjs +17 -0
- package/dist/resolver/filter-utils.d.mts +10 -0
- package/dist/resolver/filter-utils.mjs +59 -0
- package/dist/resolver/fragments.d.mts +60 -0
- package/dist/resolver/fragments.mjs +206 -0
- package/dist/resolver/index.d.mts +11 -371
- package/dist/resolver/index.mjs +10 -1
- package/dist/resolver/pg-adapter.d.mts +56 -0
- package/dist/resolver/pg-adapter.mjs +112 -0
- package/dist/resolver/run-query.d.mts +172 -0
- package/dist/resolver/run-query.mjs +241 -0
- package/dist/resolver/schema-drift.d.mts +15 -0
- package/dist/resolver/schema-drift.mjs +12 -0
- package/dist/rollups.d.mts +4 -4
- package/dist/rollups.mjs +3 -2
- package/dist/schedule.mjs +100 -0
- package/dist/schema.d.mts +34 -1
- package/dist/schema.mjs +78 -1
- package/dist/sink-node.d.mts +1 -159
- package/dist/sink-node.mjs +1 -133
- package/dist/sink.d.mts +125 -0
- package/dist/sinks/in-memory-sink.d.mts +25 -0
- package/dist/sinks/in-memory-sink.mjs +61 -0
- package/dist/sinks/index.d.mts +2 -0
- package/dist/sinks/index.mjs +2 -0
- package/dist/snapshot.d.mts +14 -0
- package/dist/source/attached-table.d.mts +45 -0
- package/dist/source/attached-table.mjs +55 -0
- package/dist/source/create-sql-query-source.d.mts +24 -0
- package/dist/source/create-sql-query-source.mjs +28 -0
- package/dist/source/index.d.mts +6 -66
- package/dist/source/index.mjs +9 -82
- package/dist/source/source-types.d.mts +49 -0
- package/dist/{_chunks/storage.d.mts → storage.d.mts} +4 -14
- package/dist/sync-config.d.mts +36 -0
- package/dist/sync-config.mjs +98 -0
- package/dist/vendor/hysnappy-purejs.mjs +12 -1
- package/package.json +9 -4
- package/dist/_chunks/analysis-types.d.mts +0 -57
- package/dist/_chunks/contracts.d.mts +0 -1
- package/dist/_chunks/engine.mjs +0 -731
- package/dist/_chunks/entities.mjs +0 -967
- package/dist/_chunks/errors.d.mts +0 -115
- package/dist/_chunks/index.d.mts +0 -53
- package/dist/_chunks/libs/hyparquet-compressors.mjs +0 -2796
- package/dist/_chunks/libs/hyparquet-writer.mjs +0 -2524
- package/dist/_chunks/libs/hyparquet.mjs +0 -2596
- package/dist/_chunks/libs/icebird.mjs +0 -564
- package/dist/_chunks/registry.d.mts +0 -213
- package/dist/_chunks/resolver.mjs +0 -1220
- package/dist/_chunks/sink.d.mts +0 -257
- /package/dist/{_chunks → analyzer}/dispatch.mjs +0 -0
- /package/dist/{_chunks/coerce.mjs → coerce.mjs} +0 -0
- /package/dist/{_chunks/layout.mjs → layout.mjs} +0 -0
- /package/dist/{_chunks/manifest-store-utils.mjs → manifest-store-utils.mjs} +0 -0
- /package/dist/{_chunks/libs/fzstd.mjs → node_modules/.pnpm/fzstd@0.1.1/node_modules/fzstd/esm/index.mjs} +0 -0
- /package/dist/{_chunks → resolver}/types.d.mts +0 -0
- /package/dist/{_chunks/schedule.d.mts → schedule.d.mts} +0 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
function BrotliInput(buffer) {
|
|
2
|
+
this.buffer = buffer;
|
|
3
|
+
this.pos = 0;
|
|
4
|
+
}
|
|
5
|
+
BrotliInput.prototype.read = function(buf, i, count) {
|
|
6
|
+
if (this.pos + count > this.buffer.length) count = this.buffer.length - this.pos;
|
|
7
|
+
for (let p = 0; p < count; p++) buf[i + p] = this.buffer[this.pos + p];
|
|
8
|
+
this.pos += count;
|
|
9
|
+
return count;
|
|
10
|
+
};
|
|
11
|
+
function BrotliOutput(buf) {
|
|
12
|
+
this.buffer = buf;
|
|
13
|
+
this.pos = 0;
|
|
14
|
+
}
|
|
15
|
+
BrotliOutput.prototype.write = function(buf, count) {
|
|
16
|
+
if (this.pos + count > this.buffer.length) throw new Error("brotli output buffer is not large enough");
|
|
17
|
+
this.buffer.set(buf.subarray(0, count), this.pos);
|
|
18
|
+
this.pos += count;
|
|
19
|
+
return count;
|
|
20
|
+
};
|
|
21
|
+
export { BrotliInput, BrotliOutput };
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import { getDictionary } from "./brotli.dictionary.mjs";
|
|
2
|
+
const kIdentity = 0;
|
|
3
|
+
const kOmitLast1 = 1;
|
|
4
|
+
const kOmitLast2 = 2;
|
|
5
|
+
const kOmitLast3 = 3;
|
|
6
|
+
const kOmitLast4 = 4;
|
|
7
|
+
const kOmitLast5 = 5;
|
|
8
|
+
const kOmitLast6 = 6;
|
|
9
|
+
const kOmitLast7 = 7;
|
|
10
|
+
const kOmitLast8 = 8;
|
|
11
|
+
const kOmitLast9 = 9;
|
|
12
|
+
const kUppercaseFirst = 10;
|
|
13
|
+
const kUppercaseAll = 11;
|
|
14
|
+
const kOmitFirst1 = 12;
|
|
15
|
+
const kOmitFirst2 = 13;
|
|
16
|
+
const kOmitFirst3 = 14;
|
|
17
|
+
const kOmitFirst4 = 15;
|
|
18
|
+
const kOmitFirst5 = 16;
|
|
19
|
+
const kOmitFirst6 = 17;
|
|
20
|
+
const kOmitFirst7 = 18;
|
|
21
|
+
const kOmitFirst9 = 20;
|
|
22
|
+
function Transform(prefix, transform, suffix) {
|
|
23
|
+
this.prefix = new Uint8Array(prefix.length);
|
|
24
|
+
this.transform = transform;
|
|
25
|
+
this.suffix = new Uint8Array(suffix.length);
|
|
26
|
+
for (let i = 0; i < prefix.length; i++) this.prefix[i] = prefix.charCodeAt(i);
|
|
27
|
+
for (let i = 0; i < suffix.length; i++) this.suffix[i] = suffix.charCodeAt(i);
|
|
28
|
+
}
|
|
29
|
+
const kTransforms = [
|
|
30
|
+
new Transform("", kIdentity, ""),
|
|
31
|
+
new Transform("", kIdentity, " "),
|
|
32
|
+
new Transform(" ", kIdentity, " "),
|
|
33
|
+
new Transform("", kOmitFirst1, ""),
|
|
34
|
+
new Transform("", kUppercaseFirst, " "),
|
|
35
|
+
new Transform("", kIdentity, " the "),
|
|
36
|
+
new Transform(" ", kIdentity, ""),
|
|
37
|
+
new Transform("s ", kIdentity, " "),
|
|
38
|
+
new Transform("", kIdentity, " of "),
|
|
39
|
+
new Transform("", kUppercaseFirst, ""),
|
|
40
|
+
new Transform("", kIdentity, " and "),
|
|
41
|
+
new Transform("", kOmitFirst2, ""),
|
|
42
|
+
new Transform("", kOmitLast1, ""),
|
|
43
|
+
new Transform(", ", kIdentity, " "),
|
|
44
|
+
new Transform("", kIdentity, ", "),
|
|
45
|
+
new Transform(" ", kUppercaseFirst, " "),
|
|
46
|
+
new Transform("", kIdentity, " in "),
|
|
47
|
+
new Transform("", kIdentity, " to "),
|
|
48
|
+
new Transform("e ", kIdentity, " "),
|
|
49
|
+
new Transform("", kIdentity, "\""),
|
|
50
|
+
new Transform("", kIdentity, "."),
|
|
51
|
+
new Transform("", kIdentity, "\">"),
|
|
52
|
+
new Transform("", kIdentity, "\n"),
|
|
53
|
+
new Transform("", kOmitLast3, ""),
|
|
54
|
+
new Transform("", kIdentity, "]"),
|
|
55
|
+
new Transform("", kIdentity, " for "),
|
|
56
|
+
new Transform("", kOmitFirst3, ""),
|
|
57
|
+
new Transform("", kOmitLast2, ""),
|
|
58
|
+
new Transform("", kIdentity, " a "),
|
|
59
|
+
new Transform("", kIdentity, " that "),
|
|
60
|
+
new Transform(" ", kUppercaseFirst, ""),
|
|
61
|
+
new Transform("", kIdentity, ". "),
|
|
62
|
+
new Transform(".", kIdentity, ""),
|
|
63
|
+
new Transform(" ", kIdentity, ", "),
|
|
64
|
+
new Transform("", kOmitFirst4, ""),
|
|
65
|
+
new Transform("", kIdentity, " with "),
|
|
66
|
+
new Transform("", kIdentity, "'"),
|
|
67
|
+
new Transform("", kIdentity, " from "),
|
|
68
|
+
new Transform("", kIdentity, " by "),
|
|
69
|
+
new Transform("", kOmitFirst5, ""),
|
|
70
|
+
new Transform("", kOmitFirst6, ""),
|
|
71
|
+
new Transform(" the ", kIdentity, ""),
|
|
72
|
+
new Transform("", kOmitLast4, ""),
|
|
73
|
+
new Transform("", kIdentity, ". The "),
|
|
74
|
+
new Transform("", kUppercaseAll, ""),
|
|
75
|
+
new Transform("", kIdentity, " on "),
|
|
76
|
+
new Transform("", kIdentity, " as "),
|
|
77
|
+
new Transform("", kIdentity, " is "),
|
|
78
|
+
new Transform("", kOmitLast7, ""),
|
|
79
|
+
new Transform("", kOmitLast1, "ing "),
|
|
80
|
+
new Transform("", kIdentity, "\n "),
|
|
81
|
+
new Transform("", kIdentity, ":"),
|
|
82
|
+
new Transform(" ", kIdentity, ". "),
|
|
83
|
+
new Transform("", kIdentity, "ed "),
|
|
84
|
+
new Transform("", kOmitFirst9, ""),
|
|
85
|
+
new Transform("", kOmitFirst7, ""),
|
|
86
|
+
new Transform("", kOmitLast6, ""),
|
|
87
|
+
new Transform("", kIdentity, "("),
|
|
88
|
+
new Transform("", kUppercaseFirst, ", "),
|
|
89
|
+
new Transform("", kOmitLast8, ""),
|
|
90
|
+
new Transform("", kIdentity, " at "),
|
|
91
|
+
new Transform("", kIdentity, "ly "),
|
|
92
|
+
new Transform(" the ", kIdentity, " of "),
|
|
93
|
+
new Transform("", kOmitLast5, ""),
|
|
94
|
+
new Transform("", kOmitLast9, ""),
|
|
95
|
+
new Transform(" ", kUppercaseFirst, ", "),
|
|
96
|
+
new Transform("", kUppercaseFirst, "\""),
|
|
97
|
+
new Transform(".", kIdentity, "("),
|
|
98
|
+
new Transform("", kUppercaseAll, " "),
|
|
99
|
+
new Transform("", kUppercaseFirst, "\">"),
|
|
100
|
+
new Transform("", kIdentity, "=\""),
|
|
101
|
+
new Transform(" ", kIdentity, "."),
|
|
102
|
+
new Transform(".com/", kIdentity, ""),
|
|
103
|
+
new Transform(" the ", kIdentity, " of the "),
|
|
104
|
+
new Transform("", kUppercaseFirst, "'"),
|
|
105
|
+
new Transform("", kIdentity, ". This "),
|
|
106
|
+
new Transform("", kIdentity, ","),
|
|
107
|
+
new Transform(".", kIdentity, " "),
|
|
108
|
+
new Transform("", kUppercaseFirst, "("),
|
|
109
|
+
new Transform("", kUppercaseFirst, "."),
|
|
110
|
+
new Transform("", kIdentity, " not "),
|
|
111
|
+
new Transform(" ", kIdentity, "=\""),
|
|
112
|
+
new Transform("", kIdentity, "er "),
|
|
113
|
+
new Transform(" ", kUppercaseAll, " "),
|
|
114
|
+
new Transform("", kIdentity, "al "),
|
|
115
|
+
new Transform(" ", kUppercaseAll, ""),
|
|
116
|
+
new Transform("", kIdentity, "='"),
|
|
117
|
+
new Transform("", kUppercaseAll, "\""),
|
|
118
|
+
new Transform("", kUppercaseFirst, ". "),
|
|
119
|
+
new Transform(" ", kIdentity, "("),
|
|
120
|
+
new Transform("", kIdentity, "ful "),
|
|
121
|
+
new Transform(" ", kUppercaseFirst, ". "),
|
|
122
|
+
new Transform("", kIdentity, "ive "),
|
|
123
|
+
new Transform("", kIdentity, "less "),
|
|
124
|
+
new Transform("", kUppercaseAll, "'"),
|
|
125
|
+
new Transform("", kIdentity, "est "),
|
|
126
|
+
new Transform(" ", kUppercaseFirst, "."),
|
|
127
|
+
new Transform("", kUppercaseAll, "\">"),
|
|
128
|
+
new Transform(" ", kIdentity, "='"),
|
|
129
|
+
new Transform("", kUppercaseFirst, ","),
|
|
130
|
+
new Transform("", kIdentity, "ize "),
|
|
131
|
+
new Transform("", kUppercaseAll, "."),
|
|
132
|
+
new Transform("Â\xA0", kIdentity, ""),
|
|
133
|
+
new Transform(" ", kIdentity, ","),
|
|
134
|
+
new Transform("", kUppercaseFirst, "=\""),
|
|
135
|
+
new Transform("", kUppercaseAll, "=\""),
|
|
136
|
+
new Transform("", kIdentity, "ous "),
|
|
137
|
+
new Transform("", kUppercaseAll, ", "),
|
|
138
|
+
new Transform("", kUppercaseFirst, "='"),
|
|
139
|
+
new Transform(" ", kUppercaseFirst, ","),
|
|
140
|
+
new Transform(" ", kUppercaseAll, "=\""),
|
|
141
|
+
new Transform(" ", kUppercaseAll, ", "),
|
|
142
|
+
new Transform("", kUppercaseAll, ","),
|
|
143
|
+
new Transform("", kUppercaseAll, "("),
|
|
144
|
+
new Transform("", kUppercaseAll, ". "),
|
|
145
|
+
new Transform(" ", kUppercaseAll, "."),
|
|
146
|
+
new Transform("", kUppercaseAll, "='"),
|
|
147
|
+
new Transform(" ", kUppercaseAll, ". "),
|
|
148
|
+
new Transform(" ", kUppercaseFirst, "=\""),
|
|
149
|
+
new Transform(" ", kUppercaseAll, "='"),
|
|
150
|
+
new Transform(" ", kUppercaseFirst, "='")
|
|
151
|
+
];
|
|
152
|
+
const kNumTransforms = kTransforms.length;
|
|
153
|
+
function ToUpperCase(p, i) {
|
|
154
|
+
if (p[i] < 192) {
|
|
155
|
+
if (p[i] >= 97 && p[i] <= 122) p[i] ^= 32;
|
|
156
|
+
return 1;
|
|
157
|
+
}
|
|
158
|
+
if (p[i] < 224) {
|
|
159
|
+
p[i + 1] ^= 32;
|
|
160
|
+
return 2;
|
|
161
|
+
}
|
|
162
|
+
p[i + 2] ^= 5;
|
|
163
|
+
return 3;
|
|
164
|
+
}
|
|
165
|
+
function transformDictionaryWord(dst, idx, word, len, transform) {
|
|
166
|
+
const dictionary = getDictionary();
|
|
167
|
+
const { prefix } = kTransforms[transform];
|
|
168
|
+
const { suffix } = kTransforms[transform];
|
|
169
|
+
const t = kTransforms[transform].transform;
|
|
170
|
+
let skip = t < kOmitFirst1 ? 0 : t - (kOmitFirst1 - 1);
|
|
171
|
+
const start_idx = idx;
|
|
172
|
+
if (skip > len) skip = len;
|
|
173
|
+
let prefix_pos = 0;
|
|
174
|
+
while (prefix_pos < prefix.length) dst[idx++] = prefix[prefix_pos++];
|
|
175
|
+
word += skip;
|
|
176
|
+
len -= skip;
|
|
177
|
+
if (t <= kOmitLast9) len -= t;
|
|
178
|
+
for (let i = 0; i < len; i++) dst[idx++] = dictionary[word + i];
|
|
179
|
+
let uppercase = idx - len;
|
|
180
|
+
if (t === kUppercaseFirst) ToUpperCase(dst, uppercase);
|
|
181
|
+
else if (t === kUppercaseAll) while (len > 0) {
|
|
182
|
+
const step = ToUpperCase(dst, uppercase);
|
|
183
|
+
uppercase += step;
|
|
184
|
+
len -= step;
|
|
185
|
+
}
|
|
186
|
+
let suffix_pos = 0;
|
|
187
|
+
while (suffix_pos < suffix.length) dst[idx++] = suffix[suffix_pos++];
|
|
188
|
+
return idx - start_idx;
|
|
189
|
+
}
|
|
190
|
+
export { kNumTransforms, kTransforms, transformDictionaryWord };
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
const HUFFMAN_MAX_TABLE_SIZE = 1080;
|
|
2
|
+
const fixedLengthExtraBits = new Uint8Array([
|
|
3
|
+
0,
|
|
4
|
+
0,
|
|
5
|
+
0,
|
|
6
|
+
0,
|
|
7
|
+
0,
|
|
8
|
+
0,
|
|
9
|
+
0,
|
|
10
|
+
0,
|
|
11
|
+
1,
|
|
12
|
+
1,
|
|
13
|
+
1,
|
|
14
|
+
1,
|
|
15
|
+
2,
|
|
16
|
+
2,
|
|
17
|
+
2,
|
|
18
|
+
2,
|
|
19
|
+
3,
|
|
20
|
+
3,
|
|
21
|
+
3,
|
|
22
|
+
3,
|
|
23
|
+
4,
|
|
24
|
+
4,
|
|
25
|
+
4,
|
|
26
|
+
4,
|
|
27
|
+
5,
|
|
28
|
+
5,
|
|
29
|
+
5,
|
|
30
|
+
5,
|
|
31
|
+
0,
|
|
32
|
+
0,
|
|
33
|
+
0,
|
|
34
|
+
0
|
|
35
|
+
]);
|
|
36
|
+
const fixedDistanceExtraBits = new Uint8Array([
|
|
37
|
+
0,
|
|
38
|
+
0,
|
|
39
|
+
0,
|
|
40
|
+
0,
|
|
41
|
+
1,
|
|
42
|
+
1,
|
|
43
|
+
2,
|
|
44
|
+
2,
|
|
45
|
+
3,
|
|
46
|
+
3,
|
|
47
|
+
4,
|
|
48
|
+
4,
|
|
49
|
+
5,
|
|
50
|
+
5,
|
|
51
|
+
6,
|
|
52
|
+
6,
|
|
53
|
+
7,
|
|
54
|
+
7,
|
|
55
|
+
8,
|
|
56
|
+
8,
|
|
57
|
+
9,
|
|
58
|
+
9,
|
|
59
|
+
10,
|
|
60
|
+
10,
|
|
61
|
+
11,
|
|
62
|
+
11,
|
|
63
|
+
12,
|
|
64
|
+
12,
|
|
65
|
+
13,
|
|
66
|
+
13,
|
|
67
|
+
0,
|
|
68
|
+
0
|
|
69
|
+
]);
|
|
70
|
+
function freb(eb, start) {
|
|
71
|
+
const base = /* @__PURE__ */ new Uint16Array(31);
|
|
72
|
+
for (let i = 0; i < 31; i++) base[i] = start += 1 << eb[i - 1];
|
|
73
|
+
const rev = new Int32Array(base[30]);
|
|
74
|
+
for (let i = 1; i < 30; i++) for (let j = base[i]; j < base[i + 1]; ++j) rev[j] = j - base[i] << 5 | i;
|
|
75
|
+
return {
|
|
76
|
+
base,
|
|
77
|
+
rev
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
const { base: fixedLength, rev: revfl } = freb(fixedLengthExtraBits, 2);
|
|
81
|
+
fixedLength[28] = 258;
|
|
82
|
+
revfl[258] = 28;
|
|
83
|
+
const { base: fixedDistance } = freb(fixedDistanceExtraBits, 0);
|
|
84
|
+
const rev = /* @__PURE__ */ new Uint16Array(32768);
|
|
85
|
+
for (let i = 0; i < 32768; i++) {
|
|
86
|
+
let x = (i & 43690) >> 1 | (i & 21845) << 1;
|
|
87
|
+
x = (x & 52428) >> 2 | (x & 13107) << 2;
|
|
88
|
+
x = (x & 61680) >> 4 | (x & 3855) << 4;
|
|
89
|
+
rev[i] = ((x & 65280) >> 8 | (x & 255) << 8) >> 1;
|
|
90
|
+
}
|
|
91
|
+
function huffMap(cd, maxBits, r) {
|
|
92
|
+
const l = new Uint16Array(maxBits);
|
|
93
|
+
for (let i = 0; i < cd.length; i++) if (cd[i]) ++l[cd[i] - 1];
|
|
94
|
+
const le = new Uint16Array(maxBits);
|
|
95
|
+
for (let i = 1; i < maxBits; i++) le[i] = le[i - 1] + l[i - 1] << 1;
|
|
96
|
+
let co;
|
|
97
|
+
if (r) {
|
|
98
|
+
co = new Uint16Array(1 << maxBits);
|
|
99
|
+
const rvb = 15 - maxBits;
|
|
100
|
+
for (let i = 0; i < cd.length; i++) if (cd[i]) {
|
|
101
|
+
const sv = i << 4 | cd[i];
|
|
102
|
+
const freeBits = maxBits - cd[i];
|
|
103
|
+
let startValue = le[cd[i] - 1]++ << freeBits;
|
|
104
|
+
for (const endValue = startValue | (1 << freeBits) - 1; startValue <= endValue; startValue++) co[rev[startValue] >> rvb] = sv;
|
|
105
|
+
}
|
|
106
|
+
} else {
|
|
107
|
+
co = new Uint16Array(cd.length);
|
|
108
|
+
for (let i = 0; i < cd.length; i++) if (cd[i]) co[i] = rev[le[cd[i] - 1]++] >> 15 - cd[i];
|
|
109
|
+
}
|
|
110
|
+
return co;
|
|
111
|
+
}
|
|
112
|
+
const fixedLengthTree = /* @__PURE__ */ new Uint8Array(288);
|
|
113
|
+
for (let i = 0; i < 144; i++) fixedLengthTree[i] = 8;
|
|
114
|
+
for (let i = 144; i < 256; i++) fixedLengthTree[i] = 9;
|
|
115
|
+
for (let i = 256; i < 280; i++) fixedLengthTree[i] = 7;
|
|
116
|
+
for (let i = 280; i < 288; i++) fixedLengthTree[i] = 8;
|
|
117
|
+
const fixedDistanceTree = /* @__PURE__ */ new Uint8Array(32);
|
|
118
|
+
for (let i = 0; i < 32; i++) fixedDistanceTree[i] = 5;
|
|
119
|
+
const fixedLengthMap = /*#__PURE__*/ huffMap(fixedLengthTree, 9, 1);
|
|
120
|
+
const fixedDistanceMap = /*#__PURE__*/ huffMap(fixedDistanceTree, 5, 1);
|
|
121
|
+
export { HUFFMAN_MAX_TABLE_SIZE, fixedDistance, fixedDistanceExtraBits, fixedDistanceMap, fixedLength, fixedLengthExtraBits, fixedLengthMap, huffMap };
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import { fixedDistance, fixedDistanceExtraBits, fixedDistanceMap, fixedLength, fixedLengthExtraBits, fixedLengthMap, huffMap } from "./gzip.huffman.mjs";
|
|
2
|
+
const codeLengthIndexMap = new Uint8Array([
|
|
3
|
+
16,
|
|
4
|
+
17,
|
|
5
|
+
18,
|
|
6
|
+
0,
|
|
7
|
+
8,
|
|
8
|
+
7,
|
|
9
|
+
9,
|
|
10
|
+
6,
|
|
11
|
+
10,
|
|
12
|
+
5,
|
|
13
|
+
11,
|
|
14
|
+
4,
|
|
15
|
+
12,
|
|
16
|
+
3,
|
|
17
|
+
13,
|
|
18
|
+
2,
|
|
19
|
+
14,
|
|
20
|
+
1,
|
|
21
|
+
15
|
|
22
|
+
]);
|
|
23
|
+
function bits(input, pos, mask) {
|
|
24
|
+
const o = pos / 8 | 0;
|
|
25
|
+
return (input[o] | input[o + 1] << 8) >> (pos & 7) & mask;
|
|
26
|
+
}
|
|
27
|
+
function bits16(d, p) {
|
|
28
|
+
const o = p / 8 | 0;
|
|
29
|
+
return (d[o] | d[o + 1] << 8 | d[o + 2] << 16) >> (p & 7);
|
|
30
|
+
}
|
|
31
|
+
function shft(p) {
|
|
32
|
+
return (p + 7) / 8 | 0;
|
|
33
|
+
}
|
|
34
|
+
function gzipStart(input, i) {
|
|
35
|
+
if (input[i++] !== 31 || input[i++] !== 139 || input[i++] !== 8) return 0;
|
|
36
|
+
const flag = input[i++];
|
|
37
|
+
i += 6;
|
|
38
|
+
if (flag & 4) i += (input[i + 10] | input[i + 11] << 8) + 2;
|
|
39
|
+
for (let zs = (flag >> 3 & 1) + (flag >> 4 & 1); zs > 0; zs -= Number(!input[i++]));
|
|
40
|
+
return i + (flag & 2);
|
|
41
|
+
}
|
|
42
|
+
function gunzip(input, output, inputIndex = 0, outputIndex = 0) {
|
|
43
|
+
let out = output ?? /* @__PURE__ */ new Uint8Array(1024);
|
|
44
|
+
if (!(input.length - inputIndex)) return out;
|
|
45
|
+
const payloadStart = gzipStart(input, inputIndex);
|
|
46
|
+
if (payloadStart === input.length - 8) return out;
|
|
47
|
+
if (payloadStart > input.length - 8) throw new Error("unexpected EOF");
|
|
48
|
+
let pos = payloadStart * 8;
|
|
49
|
+
let final = 0;
|
|
50
|
+
let lengthBits = 0;
|
|
51
|
+
let distBits = 0;
|
|
52
|
+
let lengthMap;
|
|
53
|
+
let distMap;
|
|
54
|
+
const totalBits = input.length * 8;
|
|
55
|
+
function ensureSize(length) {
|
|
56
|
+
if (!output && length > out.length) {
|
|
57
|
+
const old = out;
|
|
58
|
+
out = new Uint8Array(Math.max(old.length * 2, length));
|
|
59
|
+
out.set(old);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
do {
|
|
63
|
+
if (!lengthMap) {
|
|
64
|
+
final = bits(input, pos, 1);
|
|
65
|
+
const type = bits(input, pos + 1, 3);
|
|
66
|
+
pos += 3;
|
|
67
|
+
if (!type) {
|
|
68
|
+
const s = shft(pos) + 4;
|
|
69
|
+
const l = input[s - 4] | input[s - 3] << 8;
|
|
70
|
+
const t = s + l;
|
|
71
|
+
if (t > input.length) throw new Error("unexpected EOF");
|
|
72
|
+
ensureSize(outputIndex + l);
|
|
73
|
+
out.set(input.subarray(s, t), outputIndex);
|
|
74
|
+
outputIndex += l;
|
|
75
|
+
pos = t * 8;
|
|
76
|
+
continue;
|
|
77
|
+
} else if (type === 1) {
|
|
78
|
+
lengthMap = fixedLengthMap;
|
|
79
|
+
distMap = fixedDistanceMap;
|
|
80
|
+
lengthBits = 9;
|
|
81
|
+
distBits = 5;
|
|
82
|
+
} else if (type === 2) {
|
|
83
|
+
const hLiteral = bits(input, pos, 31) + 257;
|
|
84
|
+
const hcLengths = bits(input, pos + 10, 15) + 4;
|
|
85
|
+
const tl = hLiteral + bits(input, pos + 5, 31) + 1;
|
|
86
|
+
pos += 14;
|
|
87
|
+
const lengthDistanceTree = new Uint8Array(tl);
|
|
88
|
+
const codeLengthTree = /* @__PURE__ */ new Uint8Array(19);
|
|
89
|
+
for (let i = 0; i < hcLengths; ++i) codeLengthTree[codeLengthIndexMap[i]] = bits(input, pos + i * 3, 7);
|
|
90
|
+
pos += hcLengths * 3;
|
|
91
|
+
const codeLengthBits = Math.max(...codeLengthTree);
|
|
92
|
+
const clbMask = (1 << codeLengthBits) - 1;
|
|
93
|
+
const codeLengthMap = huffMap(codeLengthTree, codeLengthBits, 1);
|
|
94
|
+
for (let i = 0; i < tl;) {
|
|
95
|
+
const r = codeLengthMap[bits(input, pos, clbMask)];
|
|
96
|
+
pos += r & 15;
|
|
97
|
+
const symbol = r >> 4;
|
|
98
|
+
if (symbol < 16) lengthDistanceTree[i++] = symbol;
|
|
99
|
+
else {
|
|
100
|
+
let copy = 0;
|
|
101
|
+
let n = 0;
|
|
102
|
+
if (symbol === 16) {
|
|
103
|
+
n = 3 + bits(input, pos, 3);
|
|
104
|
+
pos += 2;
|
|
105
|
+
copy = lengthDistanceTree[i - 1];
|
|
106
|
+
} else if (symbol === 17) {
|
|
107
|
+
n = 3 + bits(input, pos, 7);
|
|
108
|
+
pos += 3;
|
|
109
|
+
} else if (symbol === 18) {
|
|
110
|
+
n = 11 + bits(input, pos, 127);
|
|
111
|
+
pos += 7;
|
|
112
|
+
}
|
|
113
|
+
while (n--) lengthDistanceTree[i++] = copy;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
const lengthTree = lengthDistanceTree.subarray(0, hLiteral);
|
|
117
|
+
const distanceTree = lengthDistanceTree.subarray(hLiteral);
|
|
118
|
+
lengthBits = Math.max(...lengthTree);
|
|
119
|
+
distBits = Math.max(...distanceTree);
|
|
120
|
+
lengthMap = huffMap(lengthTree, lengthBits, 1);
|
|
121
|
+
distMap = huffMap(distanceTree, distBits, 1);
|
|
122
|
+
} else throw new Error("invalid block type");
|
|
123
|
+
if (pos > totalBits) throw new Error("unexpected EOF");
|
|
124
|
+
}
|
|
125
|
+
ensureSize(outputIndex + 131072);
|
|
126
|
+
const lms = (1 << lengthBits) - 1;
|
|
127
|
+
const dms = (1 << distBits) - 1;
|
|
128
|
+
let lpos = pos;
|
|
129
|
+
for (;; lpos = pos) {
|
|
130
|
+
const code = lengthMap[bits16(input, pos) & lms];
|
|
131
|
+
const sym = code >> 4;
|
|
132
|
+
pos += code & 15;
|
|
133
|
+
if (pos > totalBits) throw new Error("unexpected EOF");
|
|
134
|
+
if (!code) throw new Error("invalid length/literal");
|
|
135
|
+
if (sym < 256) out[outputIndex++] = sym;
|
|
136
|
+
else if (sym === 256) {
|
|
137
|
+
lpos = pos;
|
|
138
|
+
lengthMap = void 0;
|
|
139
|
+
break;
|
|
140
|
+
} else {
|
|
141
|
+
let add = sym - 254;
|
|
142
|
+
if (sym > 264) {
|
|
143
|
+
const index = sym - 257;
|
|
144
|
+
const b = fixedLengthExtraBits[index];
|
|
145
|
+
add = bits(input, pos, (1 << b) - 1) + fixedLength[index];
|
|
146
|
+
pos += b;
|
|
147
|
+
}
|
|
148
|
+
if (!distMap) throw new Error("invalid distance map");
|
|
149
|
+
const d = distMap[bits16(input, pos) & dms];
|
|
150
|
+
const dsym = d >> 4;
|
|
151
|
+
if (!d) throw new Error("invalid distance");
|
|
152
|
+
pos += d & 15;
|
|
153
|
+
let dt = fixedDistance[dsym];
|
|
154
|
+
if (dsym > 3) {
|
|
155
|
+
const b = fixedDistanceExtraBits[dsym];
|
|
156
|
+
dt += bits16(input, pos) & (1 << b) - 1;
|
|
157
|
+
pos += b;
|
|
158
|
+
}
|
|
159
|
+
if (pos > totalBits) throw new Error("unexpected EOF");
|
|
160
|
+
const end = outputIndex + add;
|
|
161
|
+
if (outputIndex < dt) throw new Error("unexpected dictionary case");
|
|
162
|
+
ensureSize(end);
|
|
163
|
+
for (; outputIndex < end; outputIndex++) out[outputIndex] = out[outputIndex - dt];
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
pos = lpos;
|
|
167
|
+
if (lengthMap) final = 1;
|
|
168
|
+
} while (!final);
|
|
169
|
+
if (outputIndex < out.length) {
|
|
170
|
+
const nextBlock = Math.ceil(pos / 8) + 8;
|
|
171
|
+
gunzip(input, out, nextBlock, outputIndex);
|
|
172
|
+
}
|
|
173
|
+
if (!output) return out.subarray(0, outputIndex);
|
|
174
|
+
return out;
|
|
175
|
+
}
|
|
176
|
+
export { gunzip };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
function decompressLz4(input, outputLength) {
|
|
2
|
+
const output = new Uint8Array(outputLength);
|
|
3
|
+
try {
|
|
4
|
+
let i = 0;
|
|
5
|
+
let o = 0;
|
|
6
|
+
while (i < input.length - 8) {
|
|
7
|
+
const expectedOutputLength = input[i++] << 24 | input[i++] << 16 | input[i++] << 8 | input[i++];
|
|
8
|
+
const expectedInputLength = input[i++] << 24 | input[i++] << 16 | input[i++] << 8 | input[i++];
|
|
9
|
+
if (input.length - i < expectedInputLength) throw new Error("lz4 not hadoop");
|
|
10
|
+
if (output.length < expectedOutputLength) throw new Error("lz4 not hadoop");
|
|
11
|
+
if (lz4basic(input.subarray(i, i + expectedInputLength), output, o) !== expectedOutputLength) throw new Error("lz4 not hadoop");
|
|
12
|
+
i += expectedInputLength;
|
|
13
|
+
o += expectedOutputLength;
|
|
14
|
+
if (i === input.length) return output;
|
|
15
|
+
}
|
|
16
|
+
if (i < input.length) throw new Error("lz4 not hadoop");
|
|
17
|
+
} catch (error) {
|
|
18
|
+
if (error instanceof Error && error.message !== "lz4 not hadoop") throw error;
|
|
19
|
+
lz4basic(input, output, 0);
|
|
20
|
+
}
|
|
21
|
+
return output;
|
|
22
|
+
}
|
|
23
|
+
function decompressLz4Raw(input, outputLength) {
|
|
24
|
+
const output = new Uint8Array(outputLength);
|
|
25
|
+
lz4basic(input, output, 0);
|
|
26
|
+
return output;
|
|
27
|
+
}
|
|
28
|
+
function lz4basic(input, output, outputIndex) {
|
|
29
|
+
let len = outputIndex;
|
|
30
|
+
for (let i = 0; i < input.length;) {
|
|
31
|
+
const token = input[i++];
|
|
32
|
+
let literals = token >> 4;
|
|
33
|
+
if (literals) {
|
|
34
|
+
let byte = literals + 240;
|
|
35
|
+
while (byte === 255) literals += byte = input[i++];
|
|
36
|
+
output.set(input.subarray(i, i + literals), len);
|
|
37
|
+
len += literals;
|
|
38
|
+
i += literals;
|
|
39
|
+
if (i >= input.length) return len - outputIndex;
|
|
40
|
+
}
|
|
41
|
+
const offset = input[i++] | input[i++] << 8;
|
|
42
|
+
if (!offset || offset > len) throw new Error(`lz4 offset out of range ${offset}`);
|
|
43
|
+
let matchLength = (token & 15) + 4;
|
|
44
|
+
let byte = matchLength + 240;
|
|
45
|
+
while (byte === 255) matchLength += byte = input[i++];
|
|
46
|
+
let pos = len - offset;
|
|
47
|
+
const end = len + matchLength;
|
|
48
|
+
while (len < end) output[len++] = output[pos++];
|
|
49
|
+
}
|
|
50
|
+
return len - outputIndex;
|
|
51
|
+
}
|
|
52
|
+
export { decompressLz4, decompressLz4Raw };
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { hashParquetValue } from "../../../../hyparquet@1.26.1/node_modules/hyparquet/src/bloom.mjs";
|
|
2
|
+
import { serializeTCompactProtocol } from "./thrift.mjs";
|
|
3
|
+
const SALT = new Uint32Array([
|
|
4
|
+
1203114875,
|
|
5
|
+
1150766481,
|
|
6
|
+
2284105051,
|
|
7
|
+
2729912477,
|
|
8
|
+
1884591559,
|
|
9
|
+
770785867,
|
|
10
|
+
2667333959,
|
|
11
|
+
1550580529
|
|
12
|
+
]);
|
|
13
|
+
const BYTES_PER_BLOCK = 32;
|
|
14
|
+
const MIN_BYTES = 32;
|
|
15
|
+
const MAX_BYTES = 128 * 1024 * 1024;
|
|
16
|
+
function blockIndex(hash, numBlocks) {
|
|
17
|
+
return Number((hash >> 32n) * BigInt(numBlocks) >> 32n);
|
|
18
|
+
}
|
|
19
|
+
function blockMask(hash) {
|
|
20
|
+
const m = /* @__PURE__ */ new Uint32Array(8);
|
|
21
|
+
const low = Number(hash & 4294967295n) | 0;
|
|
22
|
+
for (let i = 0; i < 8; i++) m[i] = 1 << (Math.imul(low, SALT[i]) >>> 27);
|
|
23
|
+
return m;
|
|
24
|
+
}
|
|
25
|
+
function sbbfInsert(blocks, hash) {
|
|
26
|
+
const offset = blockIndex(hash, blocks.length >> 3) << 3;
|
|
27
|
+
const m = blockMask(hash);
|
|
28
|
+
for (let i = 0; i < 8; i++) blocks[offset + i] |= m[i];
|
|
29
|
+
}
|
|
30
|
+
function nextPowerOfTwo(n) {
|
|
31
|
+
let p = 1;
|
|
32
|
+
while (p < n) p <<= 1;
|
|
33
|
+
return p;
|
|
34
|
+
}
|
|
35
|
+
function optimalNumBytes(ndv, fpp) {
|
|
36
|
+
if (!(fpp > 0 && fpp < 1)) throw new Error(`bloom filter fpp must be in (0, 1), got ${fpp}`);
|
|
37
|
+
if (!(ndv >= 0)) throw new Error(`bloom filter ndv must be >= 0, got ${ndv}`);
|
|
38
|
+
const m = -8 * ndv / Math.log(1 - fpp ** (1 / 8));
|
|
39
|
+
let numBits = Math.ceil(m);
|
|
40
|
+
if (!isFinite(numBits) || numBits > MAX_BYTES << 3) numBits = MAX_BYTES << 3;
|
|
41
|
+
const blockBits = BYTES_PER_BLOCK << 3;
|
|
42
|
+
numBits = Math.ceil(numBits / blockBits) * blockBits;
|
|
43
|
+
let numBytes = numBits >> 3;
|
|
44
|
+
if (numBytes < MIN_BYTES) numBytes = MIN_BYTES;
|
|
45
|
+
if (numBytes < 1024) numBytes = nextPowerOfTwo(numBytes);
|
|
46
|
+
return numBytes;
|
|
47
|
+
}
|
|
48
|
+
var BloomBuilder = class {
|
|
49
|
+
constructor(element, { fpp = .01, maxBytes = 1024 * 1024 } = {}) {
|
|
50
|
+
this.element = element;
|
|
51
|
+
this.fpp = fpp;
|
|
52
|
+
this.maxBytes = maxBytes;
|
|
53
|
+
this.hashes = /* @__PURE__ */ new Set();
|
|
54
|
+
this.skipped = 0;
|
|
55
|
+
}
|
|
56
|
+
insert(value) {
|
|
57
|
+
if (value === null || value === void 0) return;
|
|
58
|
+
const h = hashParquetValue(value, this.element);
|
|
59
|
+
if (h === void 0) {
|
|
60
|
+
this.skipped++;
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
this.hashes.add(h);
|
|
64
|
+
}
|
|
65
|
+
finalize() {
|
|
66
|
+
if (this.skipped > 0 || this.hashes.size === 0) return void 0;
|
|
67
|
+
const numBytes = optimalNumBytes(this.hashes.size, this.fpp);
|
|
68
|
+
if (numBytes > this.maxBytes) return void 0;
|
|
69
|
+
const blocks = new Uint32Array(numBytes >> 2);
|
|
70
|
+
for (const h of this.hashes) sbbfInsert(blocks, h);
|
|
71
|
+
return blocks;
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
function writeBloomFilter(writer, blocks) {
|
|
75
|
+
if (blocks.length % 8 !== 0) throw new Error(`bloom filter block count must be a multiple of 8 uint32 words, got ${blocks.length}`);
|
|
76
|
+
serializeTCompactProtocol(writer, {
|
|
77
|
+
field_1: blocks.byteLength,
|
|
78
|
+
field_2: { field_1: {} },
|
|
79
|
+
field_3: { field_1: {} },
|
|
80
|
+
field_4: { field_1: {} }
|
|
81
|
+
});
|
|
82
|
+
for (let i = 0; i < blocks.length; i++) writer.appendUint32(blocks[i]);
|
|
83
|
+
}
|
|
84
|
+
function writeBlooms(writer, pageIndexes) {
|
|
85
|
+
for (const { chunk, bloomFilter } of pageIndexes) {
|
|
86
|
+
if (!bloomFilter || !chunk.meta_data) continue;
|
|
87
|
+
const offset = writer.offset;
|
|
88
|
+
writeBloomFilter(writer, bloomFilter);
|
|
89
|
+
chunk.meta_data.bloom_filter_offset = BigInt(offset);
|
|
90
|
+
chunk.meta_data.bloom_filter_length = writer.offset - offset;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
export { BloomBuilder, optimalNumBytes, sbbfInsert, writeBloomFilter, writeBlooms };
|