@loaders.gl/core 5.0.0-alpha.12 → 5.0.0-alpha.14
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/LICENSE +1 -1
- package/SCHEMA-README.md +9 -0
- package/SCHEMA-UTILS-README.md +11 -0
- package/dist/dist.dev.js +353 -205
- package/dist/dist.min.js +3 -3
- package/dist/index.cjs +291 -162
- package/dist/index.cjs.map +3 -3
- package/dist/index.d.ts +10 -10
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -8
- package/dist/index.js.map +1 -1
- package/dist/iterators/make-iterator/make-iterator.js +1 -1
- package/dist/iterators/make-iterator/make-iterator.js.map +1 -1
- package/dist/iterators/make-iterator/make-stream-iterator.js +1 -1
- package/dist/iterators/make-iterator/make-stream-iterator.js.map +1 -1
- package/dist/iterators/make-iterator/make-string-iterator.js +1 -1
- package/dist/iterators/make-iterator/make-string-iterator.js.map +1 -1
- package/dist/lib/api/core-api.d.ts +1 -1
- package/dist/lib/api/core-api.d.ts.map +1 -1
- package/dist/lib/api/create-data-source.d.ts +1 -1
- package/dist/lib/api/create-data-source.d.ts.map +1 -1
- package/dist/lib/api/create-data-source.js +1 -1
- package/dist/lib/api/create-data-source.js.map +1 -1
- package/dist/lib/api/encode-table.d.ts +2 -2
- package/dist/lib/api/encode-table.d.ts.map +1 -1
- package/dist/lib/api/encode-table.js +1 -1
- package/dist/lib/api/encode-table.js.map +1 -1
- package/dist/lib/api/encode.d.ts +1 -1
- package/dist/lib/api/encode.d.ts.map +1 -1
- package/dist/lib/api/encode.js +2 -2
- package/dist/lib/api/encode.js.map +1 -1
- package/dist/lib/api/load-in-batches.d.ts +1 -1
- package/dist/lib/api/load-in-batches.d.ts.map +1 -1
- package/dist/lib/api/load-in-batches.js +1 -1
- package/dist/lib/api/load-in-batches.js.map +1 -1
- package/dist/lib/api/load-loader.d.ts +1 -1
- package/dist/lib/api/load-loader.d.ts.map +1 -1
- package/dist/lib/api/load-loader.js +1 -1
- package/dist/lib/api/load-loader.js.map +1 -1
- package/dist/lib/api/load.d.ts +1 -1
- package/dist/lib/api/load.d.ts.map +1 -1
- package/dist/lib/api/load.js +1 -1
- package/dist/lib/api/load.js.map +1 -1
- package/dist/lib/api/parse-file.d.ts +1 -1
- package/dist/lib/api/parse-file.d.ts.map +1 -1
- package/dist/lib/api/parse-file.js +4 -2
- package/dist/lib/api/parse-file.js.map +1 -1
- package/dist/lib/api/parse-in-batches.d.ts +1 -1
- package/dist/lib/api/parse-in-batches.d.ts.map +1 -1
- package/dist/lib/api/parse-in-batches.js +44 -7
- package/dist/lib/api/parse-in-batches.js.map +1 -1
- package/dist/lib/api/parse-sync.d.ts +1 -1
- package/dist/lib/api/parse-sync.d.ts.map +1 -1
- package/dist/lib/api/parse-sync.js +1 -1
- package/dist/lib/api/parse-sync.js.map +1 -1
- package/dist/lib/api/parse.d.ts +1 -1
- package/dist/lib/api/parse.d.ts.map +1 -1
- package/dist/lib/api/parse.js +7 -5
- package/dist/lib/api/parse.js.map +1 -1
- package/dist/lib/api/preload.d.ts +1 -1
- package/dist/lib/api/preload.d.ts.map +1 -1
- package/dist/lib/api/preload.js.map +1 -1
- package/dist/lib/api/register-loaders.d.ts +1 -1
- package/dist/lib/api/register-loaders.d.ts.map +1 -1
- package/dist/lib/api/select-loader.d.ts +1 -1
- package/dist/lib/api/select-loader.d.ts.map +1 -1
- package/dist/lib/api/select-loader.js +1 -1
- package/dist/lib/api/select-loader.js.map +1 -1
- package/dist/lib/api/select-source.d.ts +1 -1
- package/dist/lib/api/select-source.d.ts.map +1 -1
- package/dist/lib/common.d.ts +1 -1
- package/dist/lib/common.d.ts.map +1 -1
- package/dist/lib/fetch/fetch-file.js +2 -2
- package/dist/lib/fetch/fetch-file.js.map +1 -1
- package/dist/lib/filesystems/browser-filesystem.d.ts +1 -1
- package/dist/lib/filesystems/browser-filesystem.d.ts.map +1 -1
- package/dist/lib/filesystems/browser-filesystem.js +1 -1
- package/dist/lib/filesystems/browser-filesystem.js.map +1 -1
- package/dist/lib/init.js +2 -2
- package/dist/lib/init.js.map +1 -1
- package/dist/lib/loader-utils/get-data.d.ts +1 -1
- package/dist/lib/loader-utils/get-data.d.ts.map +1 -1
- package/dist/lib/loader-utils/get-data.js +1 -1
- package/dist/lib/loader-utils/get-data.js.map +1 -1
- package/dist/lib/loader-utils/get-fetch-function.d.ts +1 -1
- package/dist/lib/loader-utils/get-fetch-function.d.ts.map +1 -1
- package/dist/lib/loader-utils/get-fetch-function.js +4 -2
- package/dist/lib/loader-utils/get-fetch-function.js.map +1 -1
- package/dist/lib/loader-utils/loader-context.d.ts +1 -1
- package/dist/lib/loader-utils/loader-context.d.ts.map +1 -1
- package/dist/lib/loader-utils/loader-context.js +5 -1
- package/dist/lib/loader-utils/loader-context.js.map +1 -1
- package/dist/lib/loader-utils/loggers.d.ts +1 -1
- package/dist/lib/loader-utils/loggers.d.ts.map +1 -1
- package/dist/lib/loader-utils/loggers.js +1 -1
- package/dist/lib/loader-utils/loggers.js.map +1 -1
- package/dist/lib/loader-utils/normalize-loader.d.ts +1 -1
- package/dist/lib/loader-utils/normalize-loader.d.ts.map +1 -1
- package/dist/lib/loader-utils/normalize-loader.js +1 -1
- package/dist/lib/loader-utils/normalize-loader.js.map +1 -1
- package/dist/lib/loader-utils/option-defaults.d.ts +1 -1
- package/dist/lib/loader-utils/option-defaults.d.ts.map +1 -1
- package/dist/lib/loader-utils/option-defaults.js +2 -1
- package/dist/lib/loader-utils/option-defaults.js.map +1 -1
- package/dist/lib/loader-utils/option-utils.d.ts +1 -1
- package/dist/lib/loader-utils/option-utils.d.ts.map +1 -1
- package/dist/lib/loader-utils/option-utils.js +2 -2
- package/dist/lib/loader-utils/option-utils.js.map +1 -1
- package/dist/lib/utils/resource-utils.js +1 -1
- package/dist/lib/utils/resource-utils.js.map +1 -1
- package/dist/lib/utils/response-utils.js +1 -1
- package/dist/lib/utils/response-utils.js.map +1 -1
- package/dist/loader-utils/format-types.d.ts +32 -0
- package/dist/loader-utils/format-types.d.ts.map +1 -0
- package/dist/loader-utils/format-types.js +5 -0
- package/dist/loader-utils/format-types.js.map +1 -0
- package/dist/loader-utils/index.cjs +12555 -0
- package/dist/loader-utils/index.cjs.map +6 -0
- package/dist/loader-utils/index.d.ts +122 -0
- package/dist/loader-utils/index.d.ts.map +1 -0
- package/dist/loader-utils/index.js +91 -0
- package/dist/loader-utils/index.js.map +1 -0
- package/dist/loader-utils/json-loader.d.ts +27 -0
- package/dist/loader-utils/json-loader.d.ts.map +1 -0
- package/dist/loader-utils/json-loader.js +32 -0
- package/dist/loader-utils/json-loader.js.map +1 -0
- package/dist/loader-utils/lib/binary-utils/array-buffer-utils.d.ts +32 -0
- package/dist/loader-utils/lib/binary-utils/array-buffer-utils.d.ts.map +1 -0
- package/dist/loader-utils/lib/binary-utils/array-buffer-utils.js +88 -0
- package/dist/loader-utils/lib/binary-utils/array-buffer-utils.js.map +1 -0
- package/dist/loader-utils/lib/binary-utils/binary-chunk-reader.d.ts +67 -0
- package/dist/loader-utils/lib/binary-utils/binary-chunk-reader.d.ts.map +1 -0
- package/dist/loader-utils/lib/binary-utils/binary-chunk-reader.js +245 -0
- package/dist/loader-utils/lib/binary-utils/binary-chunk-reader.js.map +1 -0
- package/dist/loader-utils/lib/binary-utils/dataview-copy-utils.d.ts +43 -0
- package/dist/loader-utils/lib/binary-utils/dataview-copy-utils.d.ts.map +1 -0
- package/dist/loader-utils/lib/binary-utils/dataview-copy-utils.js +92 -0
- package/dist/loader-utils/lib/binary-utils/dataview-copy-utils.js.map +1 -0
- package/dist/loader-utils/lib/binary-utils/encode-array-buffer-to-base64.d.ts +3 -0
- package/dist/loader-utils/lib/binary-utils/encode-array-buffer-to-base64.d.ts.map +1 -0
- package/dist/loader-utils/lib/binary-utils/encode-array-buffer-to-base64.js +15 -0
- package/dist/loader-utils/lib/binary-utils/encode-array-buffer-to-base64.js.map +1 -0
- package/dist/loader-utils/lib/binary-utils/get-first-characters.d.ts +17 -0
- package/dist/loader-utils/lib/binary-utils/get-first-characters.d.ts.map +1 -0
- package/dist/loader-utils/lib/binary-utils/get-first-characters.js +43 -0
- package/dist/loader-utils/lib/binary-utils/get-first-characters.js.map +1 -0
- package/dist/loader-utils/lib/binary-utils/hex-transcoder.d.ts +15 -0
- package/dist/loader-utils/lib/binary-utils/hex-transcoder.d.ts.map +1 -0
- package/dist/loader-utils/lib/binary-utils/hex-transcoder.js +51 -0
- package/dist/loader-utils/lib/binary-utils/hex-transcoder.js.map +1 -0
- package/dist/loader-utils/lib/binary-utils/memory-conversion-utils.d.ts +20 -0
- package/dist/loader-utils/lib/binary-utils/memory-conversion-utils.d.ts.map +1 -0
- package/dist/loader-utils/lib/binary-utils/memory-conversion-utils.js +82 -0
- package/dist/loader-utils/lib/binary-utils/memory-conversion-utils.js.map +1 -0
- package/dist/loader-utils/lib/binary-utils/memory-copy-utils.d.ts +25 -0
- package/dist/loader-utils/lib/binary-utils/memory-copy-utils.d.ts.map +1 -0
- package/dist/loader-utils/lib/binary-utils/memory-copy-utils.js +59 -0
- package/dist/loader-utils/lib/binary-utils/memory-copy-utils.js.map +1 -0
- package/dist/loader-utils/lib/crs/crs-reprojection.d.ts +31 -0
- package/dist/loader-utils/lib/crs/crs-reprojection.d.ts.map +1 -0
- package/dist/loader-utils/lib/crs/crs-reprojection.js +20 -0
- package/dist/loader-utils/lib/crs/crs-reprojection.js.map +1 -0
- package/dist/loader-utils/lib/env-utils/assert.d.ts +6 -0
- package/dist/loader-utils/lib/env-utils/assert.d.ts.map +1 -0
- package/dist/loader-utils/lib/env-utils/assert.js +13 -0
- package/dist/loader-utils/lib/env-utils/assert.js.map +1 -0
- package/dist/loader-utils/lib/env-utils/globals.d.ts +15 -0
- package/dist/loader-utils/lib/env-utils/globals.d.ts.map +1 -0
- package/dist/loader-utils/lib/env-utils/globals.js +28 -0
- package/dist/loader-utils/lib/env-utils/globals.js.map +1 -0
- package/dist/loader-utils/lib/file-provider/data-view-file.d.ts +40 -0
- package/dist/loader-utils/lib/file-provider/data-view-file.d.ts.map +1 -0
- package/dist/loader-utils/lib/file-provider/data-view-file.js +68 -0
- package/dist/loader-utils/lib/file-provider/data-view-file.js.map +1 -0
- package/dist/loader-utils/lib/file-provider/file-handle-file.d.ts +54 -0
- package/dist/loader-utils/lib/file-provider/file-handle-file.d.ts.map +1 -0
- package/dist/loader-utils/lib/file-provider/file-handle-file.js +102 -0
- package/dist/loader-utils/lib/file-provider/file-handle-file.js.map +1 -0
- package/dist/loader-utils/lib/file-provider/file-provider-interface.d.ts +45 -0
- package/dist/loader-utils/lib/file-provider/file-provider-interface.d.ts.map +1 -0
- package/dist/loader-utils/lib/file-provider/file-provider-interface.js +13 -0
- package/dist/loader-utils/lib/file-provider/file-provider-interface.js.map +1 -0
- package/dist/loader-utils/lib/file-provider/file-provider.d.ts +57 -0
- package/dist/loader-utils/lib/file-provider/file-provider.d.ts.map +1 -0
- package/dist/loader-utils/lib/file-provider/file-provider.js +114 -0
- package/dist/loader-utils/lib/file-provider/file-provider.js.map +1 -0
- package/dist/loader-utils/lib/files/array-buffer-file.d.ts +21 -0
- package/dist/loader-utils/lib/files/array-buffer-file.d.ts.map +1 -0
- package/dist/loader-utils/lib/files/array-buffer-file.js +36 -0
- package/dist/loader-utils/lib/files/array-buffer-file.js.map +1 -0
- package/dist/loader-utils/lib/files/blob-file.d.ts +19 -0
- package/dist/loader-utils/lib/files/blob-file.d.ts.map +1 -0
- package/dist/loader-utils/lib/files/blob-file.js +39 -0
- package/dist/loader-utils/lib/files/blob-file.js.map +1 -0
- package/dist/loader-utils/lib/files/file.d.ts +33 -0
- package/dist/loader-utils/lib/files/file.d.ts.map +1 -0
- package/dist/loader-utils/lib/files/file.js +5 -0
- package/dist/loader-utils/lib/files/file.js.map +1 -0
- package/dist/loader-utils/lib/files/http-file-transport.d.ts +37 -0
- package/dist/loader-utils/lib/files/http-file-transport.d.ts.map +1 -0
- package/dist/loader-utils/lib/files/http-file-transport.js +290 -0
- package/dist/loader-utils/lib/files/http-file-transport.js.map +1 -0
- package/dist/loader-utils/lib/files/http-file-types.d.ts +49 -0
- package/dist/loader-utils/lib/files/http-file-types.d.ts.map +1 -0
- package/dist/loader-utils/lib/files/http-file-types.js +5 -0
- package/dist/loader-utils/lib/files/http-file-types.js.map +1 -0
- package/dist/loader-utils/lib/files/http-file.d.ts +55 -0
- package/dist/loader-utils/lib/files/http-file.d.ts.map +1 -0
- package/dist/loader-utils/lib/files/http-file.js +213 -0
- package/dist/loader-utils/lib/files/http-file.js.map +1 -0
- package/dist/loader-utils/lib/files/node-file-facade.d.ts +22 -0
- package/dist/loader-utils/lib/files/node-file-facade.d.ts.map +1 -0
- package/dist/loader-utils/lib/files/node-file-facade.js +45 -0
- package/dist/loader-utils/lib/files/node-file-facade.js.map +1 -0
- package/dist/loader-utils/lib/files/sources.d.ts +1 -0
- package/dist/loader-utils/lib/files/sources.d.ts.map +1 -0
- package/dist/loader-utils/lib/files/sources.js +155 -0
- package/dist/loader-utils/lib/files/sources.js.map +1 -0
- package/dist/loader-utils/lib/filesystems/filesystem.d.ts +33 -0
- package/dist/loader-utils/lib/filesystems/filesystem.d.ts.map +1 -0
- package/dist/loader-utils/lib/filesystems/filesystem.js +5 -0
- package/dist/loader-utils/lib/filesystems/filesystem.js.map +1 -0
- package/dist/loader-utils/lib/filesystems/node-filesystem-facade.d.ts +23 -0
- package/dist/loader-utils/lib/filesystems/node-filesystem-facade.d.ts.map +1 -0
- package/dist/loader-utils/lib/filesystems/node-filesystem-facade.js +48 -0
- package/dist/loader-utils/lib/filesystems/node-filesystem-facade.js.map +1 -0
- package/dist/loader-utils/lib/iterators/async-iteration.d.ts +20 -0
- package/dist/loader-utils/lib/iterators/async-iteration.d.ts.map +1 -0
- package/dist/loader-utils/lib/iterators/async-iteration.js +102 -0
- package/dist/loader-utils/lib/iterators/async-iteration.js.map +1 -0
- package/dist/loader-utils/lib/iterators/text-iterators.d.ts +19 -0
- package/dist/loader-utils/lib/iterators/text-iterators.d.ts.map +1 -0
- package/dist/loader-utils/lib/iterators/text-iterators.js +60 -0
- package/dist/loader-utils/lib/iterators/text-iterators.js.map +1 -0
- package/dist/loader-utils/lib/javascript-utils/is-type.d.ts +59 -0
- package/dist/loader-utils/lib/javascript-utils/is-type.d.ts.map +1 -0
- package/dist/loader-utils/lib/javascript-utils/is-type.js +68 -0
- package/dist/loader-utils/lib/javascript-utils/is-type.js.map +1 -0
- package/dist/loader-utils/lib/laz/laz-arithmetic-encoder.d.ts +118 -0
- package/dist/loader-utils/lib/laz/laz-arithmetic-encoder.d.ts.map +1 -0
- package/dist/loader-utils/lib/laz/laz-arithmetic-encoder.js +427 -0
- package/dist/loader-utils/lib/laz/laz-arithmetic-encoder.js.map +1 -0
- package/dist/loader-utils/lib/laz/laz-chunk-decoder.d.ts +204 -0
- package/dist/loader-utils/lib/laz/laz-chunk-decoder.d.ts.map +1 -0
- package/dist/loader-utils/lib/laz/laz-chunk-decoder.js +4226 -0
- package/dist/loader-utils/lib/laz/laz-chunk-decoder.js.map +1 -0
- package/dist/loader-utils/lib/laz/laz-chunk-encoder.d.ts +40 -0
- package/dist/loader-utils/lib/laz/laz-chunk-encoder.d.ts.map +1 -0
- package/dist/loader-utils/lib/laz/laz-chunk-encoder.js +1518 -0
- package/dist/loader-utils/lib/laz/laz-chunk-encoder.js.map +1 -0
- package/dist/loader-utils/lib/log-utils/log.d.ts +4 -0
- package/dist/loader-utils/lib/log-utils/log.d.ts.map +1 -0
- package/dist/loader-utils/lib/log-utils/log.js +21 -0
- package/dist/loader-utils/lib/log-utils/log.js.map +1 -0
- package/dist/loader-utils/lib/module-utils/initialize-wasm-module.d.ts +10 -0
- package/dist/loader-utils/lib/module-utils/initialize-wasm-module.d.ts.map +1 -0
- package/dist/loader-utils/lib/module-utils/initialize-wasm-module.js +44 -0
- package/dist/loader-utils/lib/module-utils/initialize-wasm-module.js.map +1 -0
- package/dist/loader-utils/lib/module-utils/js-module-utils.d.ts +18 -0
- package/dist/loader-utils/lib/module-utils/js-module-utils.d.ts.map +1 -0
- package/dist/loader-utils/lib/module-utils/js-module-utils.js +40 -0
- package/dist/loader-utils/lib/module-utils/js-module-utils.js.map +1 -0
- package/dist/loader-utils/lib/node/buffer.browser.d.ts +11 -0
- package/dist/loader-utils/lib/node/buffer.browser.d.ts.map +1 -0
- package/dist/loader-utils/lib/node/buffer.browser.js +20 -0
- package/dist/loader-utils/lib/node/buffer.browser.js.map +1 -0
- package/dist/loader-utils/lib/node/buffer.d.ts +11 -0
- package/dist/loader-utils/lib/node/buffer.d.ts.map +1 -0
- package/dist/loader-utils/lib/node/buffer.js +35 -0
- package/dist/loader-utils/lib/node/buffer.js.map +1 -0
- package/dist/loader-utils/lib/node/fs.browser.d.ts +2 -0
- package/dist/loader-utils/lib/node/fs.browser.d.ts.map +1 -0
- package/dist/loader-utils/lib/node/fs.browser.js +5 -0
- package/dist/loader-utils/lib/node/fs.browser.js.map +1 -0
- package/dist/loader-utils/lib/node/promisify.d.ts +13 -0
- package/dist/loader-utils/lib/node/promisify.d.ts.map +1 -0
- package/dist/loader-utils/lib/node/promisify.js +19 -0
- package/dist/loader-utils/lib/node/promisify.js.map +1 -0
- package/dist/loader-utils/lib/node/stream.browser.d.ts +2 -0
- package/dist/loader-utils/lib/node/stream.browser.d.ts.map +1 -0
- package/dist/loader-utils/lib/node/stream.browser.js +5 -0
- package/dist/loader-utils/lib/node/stream.browser.js.map +1 -0
- package/dist/loader-utils/lib/node/stream.d.ts +6 -0
- package/dist/loader-utils/lib/node/stream.d.ts.map +1 -0
- package/dist/loader-utils/lib/node/stream.js +8 -0
- package/dist/loader-utils/lib/node/stream.js.map +1 -0
- package/dist/loader-utils/lib/option-utils/merge-options.d.ts +12 -0
- package/dist/loader-utils/lib/option-utils/merge-options.d.ts.map +1 -0
- package/dist/loader-utils/lib/option-utils/merge-options.js +34 -0
- package/dist/loader-utils/lib/option-utils/merge-options.js.map +1 -0
- package/dist/loader-utils/lib/parser-utils/parse-json.d.ts +5 -0
- package/dist/loader-utils/lib/parser-utils/parse-json.d.ts.map +1 -0
- package/dist/loader-utils/lib/parser-utils/parse-json.js +16 -0
- package/dist/loader-utils/lib/parser-utils/parse-json.js.map +1 -0
- package/dist/loader-utils/lib/path-utils/cached-uri-resolver.d.ts +35 -0
- package/dist/loader-utils/lib/path-utils/cached-uri-resolver.d.ts.map +1 -0
- package/dist/loader-utils/lib/path-utils/cached-uri-resolver.js +64 -0
- package/dist/loader-utils/lib/path-utils/cached-uri-resolver.js.map +1 -0
- package/dist/loader-utils/lib/path-utils/file-aliases.d.ts +17 -0
- package/dist/loader-utils/lib/path-utils/file-aliases.d.ts.map +1 -0
- package/dist/loader-utils/lib/path-utils/file-aliases.js +44 -0
- package/dist/loader-utils/lib/path-utils/file-aliases.js.map +1 -0
- package/dist/loader-utils/lib/path-utils/get-cwd.d.ts +3 -0
- package/dist/loader-utils/lib/path-utils/get-cwd.d.ts.map +1 -0
- package/dist/loader-utils/lib/path-utils/get-cwd.js +12 -0
- package/dist/loader-utils/lib/path-utils/get-cwd.js.map +1 -0
- package/dist/loader-utils/lib/path-utils/path.d.ts +24 -0
- package/dist/loader-utils/lib/path-utils/path.d.ts.map +1 -0
- package/dist/loader-utils/lib/path-utils/path.js +173 -0
- package/dist/loader-utils/lib/path-utils/path.js.map +1 -0
- package/dist/loader-utils/lib/request-utils/abort-utils.d.ts +5 -0
- package/dist/loader-utils/lib/request-utils/abort-utils.d.ts.map +1 -0
- package/dist/loader-utils/lib/request-utils/abort-utils.js +59 -0
- package/dist/loader-utils/lib/request-utils/abort-utils.js.map +1 -0
- package/dist/loader-utils/lib/request-utils/authentication.d.ts +56 -0
- package/dist/loader-utils/lib/request-utils/authentication.d.ts.map +1 -0
- package/dist/loader-utils/lib/request-utils/authentication.js +67 -0
- package/dist/loader-utils/lib/request-utils/authentication.js.map +1 -0
- package/dist/loader-utils/lib/request-utils/parse-content-type.d.ts +7 -0
- package/dist/loader-utils/lib/request-utils/parse-content-type.d.ts.map +1 -0
- package/dist/loader-utils/lib/request-utils/parse-content-type.js +20 -0
- package/dist/loader-utils/lib/request-utils/parse-content-type.js.map +1 -0
- package/dist/loader-utils/lib/request-utils/range-request-cache.d.ts +70 -0
- package/dist/loader-utils/lib/request-utils/range-request-cache.d.ts.map +1 -0
- package/dist/loader-utils/lib/request-utils/range-request-cache.js +203 -0
- package/dist/loader-utils/lib/request-utils/range-request-cache.js.map +1 -0
- package/dist/loader-utils/lib/request-utils/range-request-scheduler.d.ts +201 -0
- package/dist/loader-utils/lib/request-utils/range-request-scheduler.d.ts.map +1 -0
- package/dist/loader-utils/lib/request-utils/range-request-scheduler.js +636 -0
- package/dist/loader-utils/lib/request-utils/range-request-scheduler.js.map +1 -0
- package/dist/loader-utils/lib/request-utils/request-cache.d.ts +62 -0
- package/dist/loader-utils/lib/request-utils/request-cache.d.ts.map +1 -0
- package/dist/loader-utils/lib/request-utils/request-cache.js +236 -0
- package/dist/loader-utils/lib/request-utils/request-cache.js.map +1 -0
- package/dist/loader-utils/lib/request-utils/request-credentials.d.ts +139 -0
- package/dist/loader-utils/lib/request-utils/request-credentials.d.ts.map +1 -0
- package/dist/loader-utils/lib/request-utils/request-credentials.js +373 -0
- package/dist/loader-utils/lib/request-utils/request-credentials.js.map +1 -0
- package/dist/loader-utils/lib/request-utils/request-scheduler.d.ts +71 -0
- package/dist/loader-utils/lib/request-utils/request-scheduler.d.ts.map +1 -0
- package/dist/loader-utils/lib/request-utils/request-scheduler.js +174 -0
- package/dist/loader-utils/lib/request-utils/request-scheduler.js.map +1 -0
- package/dist/loader-utils/lib/scan-utils/columnar-predicate.d.ts +56 -0
- package/dist/loader-utils/lib/scan-utils/columnar-predicate.d.ts.map +1 -0
- package/dist/loader-utils/lib/scan-utils/columnar-predicate.js +261 -0
- package/dist/loader-utils/lib/scan-utils/columnar-predicate.js.map +1 -0
- package/dist/loader-utils/lib/scan-utils/experimental-scan-options.d.ts +42 -0
- package/dist/loader-utils/lib/scan-utils/experimental-scan-options.d.ts.map +1 -0
- package/dist/loader-utils/lib/scan-utils/experimental-scan-options.js +5 -0
- package/dist/loader-utils/lib/scan-utils/experimental-scan-options.js.map +1 -0
- package/dist/loader-utils/lib/scan-utils/point-cloud-query.d.ts +56 -0
- package/dist/loader-utils/lib/scan-utils/point-cloud-query.d.ts.map +1 -0
- package/dist/loader-utils/lib/scan-utils/point-cloud-query.js +86 -0
- package/dist/loader-utils/lib/scan-utils/point-cloud-query.js.map +1 -0
- package/dist/loader-utils/lib/scan-utils/raster-query.d.ts +36 -0
- package/dist/loader-utils/lib/scan-utils/raster-query.d.ts.map +1 -0
- package/dist/loader-utils/lib/scan-utils/raster-query.js +49 -0
- package/dist/loader-utils/lib/scan-utils/raster-query.js.map +1 -0
- package/dist/loader-utils/lib/scan-utils/relational-query.d.ts +75 -0
- package/dist/loader-utils/lib/scan-utils/relational-query.d.ts.map +1 -0
- package/dist/loader-utils/lib/scan-utils/relational-query.js +107 -0
- package/dist/loader-utils/lib/scan-utils/relational-query.js.map +1 -0
- package/dist/loader-utils/lib/scan-utils/scan-executor.d.ts +20 -0
- package/dist/loader-utils/lib/scan-utils/scan-executor.d.ts.map +1 -0
- package/dist/loader-utils/lib/scan-utils/scan-executor.js +183 -0
- package/dist/loader-utils/lib/scan-utils/scan-executor.js.map +1 -0
- package/dist/loader-utils/lib/scan-utils/scan-fragments.d.ts +23 -0
- package/dist/loader-utils/lib/scan-utils/scan-fragments.d.ts.map +1 -0
- package/dist/loader-utils/lib/scan-utils/scan-fragments.js +5 -0
- package/dist/loader-utils/lib/scan-utils/scan-fragments.js.map +1 -0
- package/dist/loader-utils/lib/scan-utils/scan-query-metadata.d.ts +272 -0
- package/dist/loader-utils/lib/scan-utils/scan-query-metadata.d.ts.map +1 -0
- package/dist/loader-utils/lib/scan-utils/scan-query-metadata.js +97 -0
- package/dist/loader-utils/lib/scan-utils/scan-query-metadata.js.map +1 -0
- package/dist/loader-utils/lib/scan-utils/table-query-explain.d.ts +39 -0
- package/dist/loader-utils/lib/scan-utils/table-query-explain.d.ts.map +1 -0
- package/dist/loader-utils/lib/scan-utils/table-query-explain.js +35 -0
- package/dist/loader-utils/lib/scan-utils/table-query-explain.js.map +1 -0
- package/dist/loader-utils/lib/scan-utils/table-query.d.ts +77 -0
- package/dist/loader-utils/lib/scan-utils/table-query.d.ts.map +1 -0
- package/dist/loader-utils/lib/scan-utils/table-query.js +56 -0
- package/dist/loader-utils/lib/scan-utils/table-query.js.map +1 -0
- package/dist/loader-utils/lib/scan-utils/table-scan-batch.d.ts +30 -0
- package/dist/loader-utils/lib/scan-utils/table-scan-batch.d.ts.map +1 -0
- package/dist/loader-utils/lib/scan-utils/table-scan-batch.js +161 -0
- package/dist/loader-utils/lib/scan-utils/table-scan-batch.js.map +1 -0
- package/dist/loader-utils/lib/sources/catalog-source.d.ts +36 -0
- package/dist/loader-utils/lib/sources/catalog-source.d.ts.map +1 -0
- package/dist/loader-utils/lib/sources/catalog-source.js +5 -0
- package/dist/loader-utils/lib/sources/catalog-source.js.map +1 -0
- package/dist/loader-utils/lib/sources/data-source-manager.d.ts +136 -0
- package/dist/loader-utils/lib/sources/data-source-manager.d.ts.map +1 -0
- package/dist/loader-utils/lib/sources/data-source-manager.js +376 -0
- package/dist/loader-utils/lib/sources/data-source-manager.js.map +1 -0
- package/dist/loader-utils/lib/sources/data-source.d.ts +79 -0
- package/dist/loader-utils/lib/sources/data-source.d.ts.map +1 -0
- package/dist/loader-utils/lib/sources/data-source.js +145 -0
- package/dist/loader-utils/lib/sources/data-source.js.map +1 -0
- package/dist/loader-utils/lib/sources/image-source.d.ts +55 -0
- package/dist/loader-utils/lib/sources/image-source.d.ts.map +1 -0
- package/dist/loader-utils/lib/sources/image-source.js +5 -0
- package/dist/loader-utils/lib/sources/image-source.js.map +1 -0
- package/dist/loader-utils/lib/sources/image-tile-source.d.ts +12 -0
- package/dist/loader-utils/lib/sources/image-tile-source.d.ts.map +1 -0
- package/dist/loader-utils/lib/sources/image-tile-source.js +5 -0
- package/dist/loader-utils/lib/sources/image-tile-source.js.map +1 -0
- package/dist/loader-utils/lib/sources/raster-coverage.d.ts +17 -0
- package/dist/loader-utils/lib/sources/raster-coverage.d.ts.map +1 -0
- package/dist/loader-utils/lib/sources/raster-coverage.js +62 -0
- package/dist/loader-utils/lib/sources/raster-coverage.js.map +1 -0
- package/dist/loader-utils/lib/sources/raster-region.d.ts +4 -0
- package/dist/loader-utils/lib/sources/raster-region.d.ts.map +1 -0
- package/dist/loader-utils/lib/sources/raster-region.js +22 -0
- package/dist/loader-utils/lib/sources/raster-region.js.map +1 -0
- package/dist/loader-utils/lib/sources/raster-sampling.d.ts +35 -0
- package/dist/loader-utils/lib/sources/raster-sampling.d.ts.map +1 -0
- package/dist/loader-utils/lib/sources/raster-sampling.js +152 -0
- package/dist/loader-utils/lib/sources/raster-sampling.js.map +1 -0
- package/dist/loader-utils/lib/sources/raster-source.d.ts +302 -0
- package/dist/loader-utils/lib/sources/raster-source.d.ts.map +1 -0
- package/dist/loader-utils/lib/sources/raster-source.js +20 -0
- package/dist/loader-utils/lib/sources/raster-source.js.map +1 -0
- package/dist/loader-utils/lib/sources/service-capabilities.d.ts +36 -0
- package/dist/loader-utils/lib/sources/service-capabilities.d.ts.map +1 -0
- package/dist/loader-utils/lib/sources/service-capabilities.js +5 -0
- package/dist/loader-utils/lib/sources/service-capabilities.js.map +1 -0
- package/dist/loader-utils/lib/sources/tile-grid.d.ts +46 -0
- package/dist/loader-utils/lib/sources/tile-grid.d.ts.map +1 -0
- package/dist/loader-utils/lib/sources/tile-grid.js +128 -0
- package/dist/loader-utils/lib/sources/tile-grid.js.map +1 -0
- package/dist/loader-utils/lib/sources/tile-source-adapter.d.ts +24 -0
- package/dist/loader-utils/lib/sources/tile-source-adapter.d.ts.map +1 -0
- package/dist/loader-utils/lib/sources/tile-source-adapter.js +109 -0
- package/dist/loader-utils/lib/sources/tile-source-adapter.js.map +1 -0
- package/dist/loader-utils/lib/sources/tile-source-utils.d.ts +6 -0
- package/dist/loader-utils/lib/sources/tile-source-utils.d.ts.map +1 -0
- package/dist/loader-utils/lib/sources/tile-source-utils.js +13 -0
- package/dist/loader-utils/lib/sources/tile-source-utils.js.map +1 -0
- package/dist/loader-utils/lib/sources/tile-source.d.ts +190 -0
- package/dist/loader-utils/lib/sources/tile-source.d.ts.map +1 -0
- package/dist/loader-utils/lib/sources/tile-source.js +5 -0
- package/dist/loader-utils/lib/sources/tile-source.js.map +1 -0
- package/dist/loader-utils/lib/sources/utils/image-type.d.ts +10 -0
- package/dist/loader-utils/lib/sources/utils/image-type.d.ts.map +1 -0
- package/dist/loader-utils/lib/sources/utils/image-type.js +5 -0
- package/dist/loader-utils/lib/sources/utils/image-type.js.map +1 -0
- package/dist/loader-utils/lib/sources/utils/utils.d.ts +13 -0
- package/dist/loader-utils/lib/sources/utils/utils.d.ts.map +1 -0
- package/dist/loader-utils/lib/sources/utils/utils.js +26 -0
- package/dist/loader-utils/lib/sources/utils/utils.js.map +1 -0
- package/dist/loader-utils/lib/sources/vector-source.d.ts +76 -0
- package/dist/loader-utils/lib/sources/vector-source.d.ts.map +1 -0
- package/dist/loader-utils/lib/sources/vector-source.js +5 -0
- package/dist/loader-utils/lib/sources/vector-source.js.map +1 -0
- package/dist/loader-utils/lib/sources/vector-tile-source.d.ts +15 -0
- package/dist/loader-utils/lib/sources/vector-tile-source.d.ts.map +1 -0
- package/dist/loader-utils/lib/sources/vector-tile-source.js +5 -0
- package/dist/loader-utils/lib/sources/vector-tile-source.js.map +1 -0
- package/dist/loader-utils/lib/sources/xyz-grid.d.ts +9 -0
- package/dist/loader-utils/lib/sources/xyz-grid.d.ts.map +1 -0
- package/dist/loader-utils/lib/sources/xyz-grid.js +63 -0
- package/dist/loader-utils/lib/sources/xyz-grid.js.map +1 -0
- package/dist/loader-utils/lib/worker-loader-utils/create-loader-worker.d.ts +25 -0
- package/dist/loader-utils/lib/worker-loader-utils/create-loader-worker.d.ts.map +1 -0
- package/dist/loader-utils/lib/worker-loader-utils/create-loader-worker.js +156 -0
- package/dist/loader-utils/lib/worker-loader-utils/create-loader-worker.js.map +1 -0
- package/dist/loader-utils/lib/worker-loader-utils/encode-with-worker.d.ts +8 -0
- package/dist/loader-utils/lib/worker-loader-utils/encode-with-worker.d.ts.map +1 -0
- package/dist/loader-utils/lib/worker-loader-utils/encode-with-worker.js +23 -0
- package/dist/loader-utils/lib/worker-loader-utils/encode-with-worker.js.map +1 -0
- package/dist/loader-utils/lib/worker-loader-utils/parse-with-worker.d.ts +47 -0
- package/dist/loader-utils/lib/worker-loader-utils/parse-with-worker.d.ts.map +1 -0
- package/dist/loader-utils/lib/worker-loader-utils/parse-with-worker.js +270 -0
- package/dist/loader-utils/lib/worker-loader-utils/parse-with-worker.js.map +1 -0
- package/dist/loader-utils/loader-types.d.ts +330 -0
- package/dist/loader-utils/loader-types.d.ts.map +1 -0
- package/dist/loader-utils/loader-types.js +33 -0
- package/dist/loader-utils/loader-types.js.map +1 -0
- package/dist/loader-utils/source-types.d.ts +42 -0
- package/dist/loader-utils/source-types.d.ts.map +1 -0
- package/dist/loader-utils/source-types.js +8 -0
- package/dist/loader-utils/source-types.js.map +1 -0
- package/dist/loader-utils/types.d.ts +24 -0
- package/dist/loader-utils/types.d.ts.map +1 -0
- package/dist/loader-utils/types.js +6 -0
- package/dist/loader-utils/types.js.map +1 -0
- package/dist/loader-utils/workers/json-worker.d.ts +2 -0
- package/dist/loader-utils/workers/json-worker.d.ts.map +1 -0
- package/dist/loader-utils/workers/json-worker.js +7 -0
- package/dist/loader-utils/workers/json-worker.js.map +1 -0
- package/dist/loader-utils/writer-types.d.ts +74 -0
- package/dist/loader-utils/writer-types.d.ts.map +1 -0
- package/dist/loader-utils/writer-types.js +5 -0
- package/dist/loader-utils/writer-types.js.map +1 -0
- package/dist/null-loader.d.ts +2 -2
- package/dist/null-loader.d.ts.map +1 -1
- package/dist/null-loader.js +1 -1
- package/dist/null-worker-node.js +66 -21
- package/dist/null-worker.js +65 -21
- package/dist/polyfills/buffer/btoa.node.d.ts +3 -0
- package/dist/polyfills/buffer/btoa.node.d.ts.map +1 -0
- package/dist/polyfills/buffer/btoa.node.js +13 -0
- package/dist/polyfills/buffer/btoa.node.js.map +1 -0
- package/dist/polyfills/buffer/to-array-buffer.node.d.ts +2 -0
- package/dist/polyfills/buffer/to-array-buffer.node.d.ts.map +1 -0
- package/dist/polyfills/buffer/to-array-buffer.node.js +12 -0
- package/dist/polyfills/buffer/to-array-buffer.node.js.map +1 -0
- package/dist/polyfills/crypto/node-hash.d.ts +29 -0
- package/dist/polyfills/crypto/node-hash.d.ts.map +1 -0
- package/dist/polyfills/crypto/node-hash.js +63 -0
- package/dist/polyfills/crypto/node-hash.js.map +1 -0
- package/dist/polyfills/fetch/decode-data-uri.d.ts +11 -0
- package/dist/polyfills/fetch/decode-data-uri.d.ts.map +1 -0
- package/dist/polyfills/fetch/decode-data-uri.js +63 -0
- package/dist/polyfills/fetch/decode-data-uri.js.map +1 -0
- package/dist/polyfills/fetch/fetch-polyfill.d.ts +11 -0
- package/dist/polyfills/fetch/fetch-polyfill.d.ts.map +1 -0
- package/dist/polyfills/fetch/fetch-polyfill.js +141 -0
- package/dist/polyfills/fetch/fetch-polyfill.js.map +1 -0
- package/dist/polyfills/fetch/headers-polyfill.d.ts +34 -0
- package/dist/polyfills/fetch/headers-polyfill.d.ts.map +1 -0
- package/dist/polyfills/fetch/headers-polyfill.js +105 -0
- package/dist/polyfills/fetch/headers-polyfill.js.map +1 -0
- package/dist/polyfills/fetch/response-polyfill.d.ts +22 -0
- package/dist/polyfills/fetch/response-polyfill.d.ts.map +1 -0
- package/dist/polyfills/fetch/response-polyfill.js +81 -0
- package/dist/polyfills/fetch/response-polyfill.js.map +1 -0
- package/dist/polyfills/fetch/utils/decode-data-uri.node.d.ts +11 -0
- package/dist/polyfills/fetch/utils/decode-data-uri.node.d.ts.map +1 -0
- package/dist/polyfills/fetch/utils/decode-data-uri.node.js +32 -0
- package/dist/polyfills/fetch/utils/decode-data-uri.node.js.map +1 -0
- package/dist/polyfills/file/blob-stream-controller.d.ts +29 -0
- package/dist/polyfills/file/blob-stream-controller.d.ts.map +1 -0
- package/dist/polyfills/file/blob-stream-controller.js +64 -0
- package/dist/polyfills/file/blob-stream-controller.js.map +1 -0
- package/dist/polyfills/file/blob-stream.d.ts +25 -0
- package/dist/polyfills/file/blob-stream.d.ts.map +1 -0
- package/dist/polyfills/file/blob-stream.js +38 -0
- package/dist/polyfills/file/blob-stream.js.map +1 -0
- package/dist/polyfills/file/blob.d.ts +58 -0
- package/dist/polyfills/file/blob.d.ts.map +1 -0
- package/dist/polyfills/file/blob.js +166 -0
- package/dist/polyfills/file/blob.js.map +1 -0
- package/dist/polyfills/file/file-reader.d.ts +24 -0
- package/dist/polyfills/file/file-reader.d.ts.map +1 -0
- package/dist/polyfills/file/file-reader.js +51 -0
- package/dist/polyfills/file/file-reader.js.map +1 -0
- package/dist/polyfills/file/file.d.ts +24 -0
- package/dist/polyfills/file/file.d.ts.map +1 -0
- package/dist/polyfills/file/file.js +41 -0
- package/dist/polyfills/file/file.js.map +1 -0
- package/dist/polyfills/file/install-blob-polyfills.d.ts +9 -0
- package/dist/polyfills/file/install-blob-polyfills.d.ts.map +1 -0
- package/dist/polyfills/file/install-blob-polyfills.js +14 -0
- package/dist/polyfills/file/install-blob-polyfills.js.map +1 -0
- package/dist/polyfills/file/install-file-polyfills.d.ts +3 -0
- package/dist/polyfills/file/install-file-polyfills.d.ts.map +1 -0
- package/dist/polyfills/file/install-file-polyfills.js +20 -0
- package/dist/polyfills/file/install-file-polyfills.js.map +1 -0
- package/dist/polyfills/file/readable-stream.d.ts +5 -0
- package/dist/polyfills/file/readable-stream.d.ts.map +1 -0
- package/dist/polyfills/file/readable-stream.js +8 -0
- package/dist/polyfills/file/readable-stream.js.map +1 -0
- package/dist/polyfills/filesystems/fetch-node.d.ts +8 -0
- package/dist/polyfills/filesystems/fetch-node.d.ts.map +1 -0
- package/dist/polyfills/filesystems/fetch-node.js +88 -0
- package/dist/polyfills/filesystems/fetch-node.js.map +1 -0
- package/dist/polyfills/filesystems/node-file.d.ts +15 -0
- package/dist/polyfills/filesystems/node-file.d.ts.map +1 -0
- package/dist/polyfills/filesystems/node-file.js +138 -0
- package/dist/polyfills/filesystems/node-file.js.map +1 -0
- package/dist/polyfills/filesystems/node-filesystem.d.ts +19 -0
- package/dist/polyfills/filesystems/node-filesystem.d.ts.map +1 -0
- package/dist/polyfills/filesystems/node-filesystem.js +44 -0
- package/dist/polyfills/filesystems/node-filesystem.js.map +1 -0
- package/dist/polyfills/filesystems/stream-utils.node.d.ts +18 -0
- package/dist/polyfills/filesystems/stream-utils.node.d.ts.map +1 -0
- package/dist/polyfills/filesystems/stream-utils.node.js +67 -0
- package/dist/polyfills/filesystems/stream-utils.node.js.map +1 -0
- package/dist/polyfills/images/encode-image-node.d.ts +20 -0
- package/dist/polyfills/images/encode-image-node.d.ts.map +1 -0
- package/dist/polyfills/images/encode-image-node.js +37 -0
- package/dist/polyfills/images/encode-image-node.js.map +1 -0
- package/dist/polyfills/images/image-codecs-node.d.ts +8 -0
- package/dist/polyfills/images/image-codecs-node.d.ts.map +1 -0
- package/dist/polyfills/images/image-codecs-node.js +27 -0
- package/dist/polyfills/images/image-codecs-node.js.map +1 -0
- package/dist/polyfills/images/node-image-bitmap.d.ts +38 -0
- package/dist/polyfills/images/node-image-bitmap.d.ts.map +1 -0
- package/dist/polyfills/images/node-image-bitmap.js +64 -0
- package/dist/polyfills/images/node-image-bitmap.js.map +1 -0
- package/dist/polyfills/images/node-image-formats.d.ts +3 -0
- package/dist/polyfills/images/node-image-formats.d.ts.map +1 -0
- package/dist/polyfills/images/node-image-formats.js +6 -0
- package/dist/polyfills/images/node-image-formats.js.map +1 -0
- package/dist/polyfills/images/parse-image-node.d.ts +11 -0
- package/dist/polyfills/images/parse-image-node.d.ts.map +1 -0
- package/dist/polyfills/images/parse-image-node.js +36 -0
- package/dist/polyfills/images/parse-image-node.js.map +1 -0
- package/dist/polyfills/index.browser.d.ts +8 -0
- package/dist/polyfills/index.browser.d.ts.map +1 -0
- package/dist/polyfills/index.browser.js +18 -0
- package/dist/polyfills/index.browser.js.map +1 -0
- package/dist/polyfills/index.cjs +2918 -0
- package/dist/polyfills/index.cjs.map +6 -0
- package/dist/polyfills/index.d.ts +7 -0
- package/dist/polyfills/index.d.ts.map +1 -0
- package/dist/polyfills/index.js +110 -0
- package/dist/polyfills/index.js.map +1 -0
- package/dist/polyfills/libs/encoding-indexes-asian.d.ts +10 -0
- package/dist/polyfills/libs/encoding-indexes-asian.d.ts.map +1 -0
- package/dist/polyfills/libs/encoding-indexes-asian.js +14 -0
- package/dist/polyfills/libs/encoding-indexes-asian.js.map +1 -0
- package/dist/polyfills/load-library/require-utils.node.d.ts +19 -0
- package/dist/polyfills/load-library/require-utils.node.d.ts.map +1 -0
- package/dist/polyfills/load-library/require-utils.node.js +88 -0
- package/dist/polyfills/load-library/require-utils.node.js.map +1 -0
- package/dist/polyfills/streams/make-node-stream.d.ts +10 -0
- package/dist/polyfills/streams/make-node-stream.d.ts.map +1 -0
- package/dist/polyfills/streams/make-node-stream.js +70 -0
- package/dist/polyfills/streams/make-node-stream.js.map +1 -0
- package/dist/polyfills/text-encoder/encoding-indexes.d.ts +31 -0
- package/dist/polyfills/text-encoder/encoding-indexes.d.ts.map +1 -0
- package/dist/polyfills/text-encoder/encoding-indexes.js +35 -0
- package/dist/polyfills/text-encoder/encoding-indexes.js.map +1 -0
- package/dist/polyfills/text-encoder/text-encoder.d.ts +15 -0
- package/dist/polyfills/text-encoder/text-encoder.d.ts.map +1 -0
- package/dist/polyfills/text-encoder/text-encoder.js +2778 -0
- package/dist/polyfills/text-encoder/text-encoder.js.map +1 -0
- package/dist/polyfills/utils/assert.d.ts +2 -0
- package/dist/polyfills/utils/assert.d.ts.map +1 -0
- package/dist/polyfills/utils/assert.js +9 -0
- package/dist/polyfills/utils/assert.js.map +1 -0
- package/dist/polyfills/utils/buffer-utils.d.ts +5 -0
- package/dist/polyfills/utils/buffer-utils.d.ts.map +1 -0
- package/dist/polyfills/utils/buffer-utils.js +34 -0
- package/dist/polyfills/utils/buffer-utils.js.map +1 -0
- package/dist/polyfills/utils/filesystem-types.d.ts +10 -0
- package/dist/polyfills/utils/filesystem-types.d.ts.map +1 -0
- package/dist/polyfills/utils/filesystem-types.js +5 -0
- package/dist/polyfills/utils/filesystem-types.js.map +1 -0
- package/dist/polyfills/utils/is-browser.d.ts +2 -0
- package/dist/polyfills/utils/is-browser.d.ts.map +1 -0
- package/dist/polyfills/utils/is-browser.js +8 -0
- package/dist/polyfills/utils/is-browser.js.map +1 -0
- package/dist/polyfills/utils/path-utils.d.ts +7 -0
- package/dist/polyfills/utils/path-utils.d.ts.map +1 -0
- package/dist/polyfills/utils/path-utils.js +28 -0
- package/dist/polyfills/utils/path-utils.js.map +1 -0
- package/dist/schema/categories/category-gis.d.ts +7 -0
- package/dist/schema/categories/category-gis.d.ts.map +1 -0
- package/dist/schema/categories/category-gis.js +5 -0
- package/dist/schema/categories/category-gis.js.map +1 -0
- package/dist/schema/categories/category-image.d.ts +18 -0
- package/dist/schema/categories/category-image.d.ts.map +1 -0
- package/dist/schema/categories/category-image.js +5 -0
- package/dist/schema/categories/category-image.js.map +1 -0
- package/dist/schema/categories/category-mesh.d.ts +99 -0
- package/dist/schema/categories/category-mesh.d.ts.map +1 -0
- package/dist/schema/categories/category-mesh.js +14 -0
- package/dist/schema/categories/category-mesh.js.map +1 -0
- package/dist/schema/categories/category-table.d.ts +106 -0
- package/dist/schema/categories/category-table.d.ts.map +1 -0
- package/dist/schema/categories/category-table.js +5 -0
- package/dist/schema/categories/category-table.js.map +1 -0
- package/dist/schema/categories/category-texture.d.ts +115 -0
- package/dist/schema/categories/category-texture.d.ts.map +1 -0
- package/dist/schema/categories/category-texture.js +5 -0
- package/dist/schema/categories/category-texture.js.map +1 -0
- package/dist/schema/deprecated/mesh-utils.d.ts +12 -0
- package/dist/schema/deprecated/mesh-utils.d.ts.map +1 -0
- package/dist/schema/deprecated/mesh-utils.js +37 -0
- package/dist/schema/deprecated/mesh-utils.js.map +1 -0
- package/dist/schema/float16.d.ts +19 -0
- package/dist/schema/float16.d.ts.map +1 -0
- package/dist/schema/float16.js +90 -0
- package/dist/schema/float16.js.map +1 -0
- package/dist/schema/geoarrow-metadata.schema.json +117 -0
- package/dist/schema/geometry/arrow-binary-features.d.ts +45 -0
- package/dist/schema/geometry/arrow-binary-features.d.ts.map +1 -0
- package/dist/schema/geometry/arrow-binary-features.js +5 -0
- package/dist/schema/geometry/arrow-binary-features.js.map +1 -0
- package/dist/schema/geometry/binary-features.d.ts +30 -0
- package/dist/schema/geometry/binary-features.d.ts.map +1 -0
- package/dist/schema/geometry/binary-features.js +5 -0
- package/dist/schema/geometry/binary-features.js.map +1 -0
- package/dist/schema/geometry/binary-geometries.d.ts +33 -0
- package/dist/schema/geometry/binary-geometries.d.ts.map +1 -0
- package/dist/schema/geometry/binary-geometries.js +5 -0
- package/dist/schema/geometry/binary-geometries.js.map +1 -0
- package/dist/schema/geometry/flat-geometries.d.ts +61 -0
- package/dist/schema/geometry/flat-geometries.d.ts.map +1 -0
- package/dist/schema/geometry/flat-geometries.js +5 -0
- package/dist/schema/geometry/flat-geometries.js.map +1 -0
- package/dist/schema/geometry/geoarrow.d.ts +69 -0
- package/dist/schema/geometry/geoarrow.d.ts.map +1 -0
- package/dist/schema/geometry/geoarrow.js +5 -0
- package/dist/schema/geometry/geoarrow.js.map +1 -0
- package/dist/schema/geoparquet.schema.json +222 -0
- package/dist/schema/geospatial-metadata-zod-schema.cjs +154 -0
- package/dist/schema/geospatial-metadata-zod-schema.cjs.map +6 -0
- package/dist/schema/geospatial-metadata-zod-schema.d.ts +44 -0
- package/dist/schema/geospatial-metadata-zod-schema.d.ts.map +1 -0
- package/dist/schema/geospatial-metadata-zod-schema.js +151 -0
- package/dist/schema/geospatial-metadata-zod-schema.js.map +1 -0
- package/dist/schema/index.cjs +259 -0
- package/dist/schema/index.cjs.map +6 -0
- package/dist/schema/index.d.ts +21 -0
- package/dist/schema/index.d.ts.map +1 -0
- package/dist/schema/index.js +9 -0
- package/dist/schema/index.js.map +1 -0
- package/dist/schema/metadata.d.ts +40 -0
- package/dist/schema/metadata.d.ts.map +1 -0
- package/dist/schema/metadata.js +86 -0
- package/dist/schema/metadata.js.map +1 -0
- package/dist/schema/types/batch.d.ts +37 -0
- package/dist/schema/types/batch.d.ts.map +1 -0
- package/dist/schema/types/batch.js +5 -0
- package/dist/schema/types/batch.js.map +1 -0
- package/dist/schema/types/schema.d.ts +70 -0
- package/dist/schema/types/schema.d.ts.map +1 -0
- package/dist/schema/types/schema.js +5 -0
- package/dist/schema/types/schema.js.map +1 -0
- package/dist/schema/types/types.d.ts +16 -0
- package/dist/schema/types/types.d.ts.map +1 -0
- package/dist/schema/types/types.js +6 -0
- package/dist/schema/types/types.js.map +1 -0
- package/dist/schema-utils/arrow-transport.cjs +665 -0
- package/dist/schema-utils/arrow-transport.cjs.map +6 -0
- package/dist/schema-utils/arrow-transport.d.ts +4 -0
- package/dist/schema-utils/arrow-transport.d.ts.map +1 -0
- package/dist/schema-utils/arrow-transport.js +7 -0
- package/dist/schema-utils/arrow-transport.js.map +1 -0
- package/dist/schema-utils/deprecated.d.ts +24 -0
- package/dist/schema-utils/deprecated.d.ts.map +1 -0
- package/dist/schema-utils/deprecated.js +27 -0
- package/dist/schema-utils/deprecated.js.map +1 -0
- package/dist/schema-utils/index.cjs +3423 -0
- package/dist/schema-utils/index.cjs.map +6 -0
- package/dist/schema-utils/index.d.ts +38 -0
- package/dist/schema-utils/index.d.ts.map +1 -0
- package/dist/schema-utils/index.js +77 -0
- package/dist/schema-utils/index.js.map +1 -0
- package/dist/schema-utils/lib/arrow/arrow-table-transport.d.ts +72 -0
- package/dist/schema-utils/lib/arrow/arrow-table-transport.d.ts.map +1 -0
- package/dist/schema-utils/lib/arrow/arrow-table-transport.js +162 -0
- package/dist/schema-utils/lib/arrow/arrow-table-transport.js.map +1 -0
- package/dist/schema-utils/lib/arrow/split-arrow-buffers.d.ts +33 -0
- package/dist/schema-utils/lib/arrow/split-arrow-buffers.d.ts.map +1 -0
- package/dist/schema-utils/lib/arrow/split-arrow-buffers.js +128 -0
- package/dist/schema-utils/lib/arrow/split-arrow-buffers.js.map +1 -0
- package/dist/schema-utils/lib/arrow-utils/arrow-fixed-size-list-utils.d.ts +11 -0
- package/dist/schema-utils/lib/arrow-utils/arrow-fixed-size-list-utils.d.ts.map +1 -0
- package/dist/schema-utils/lib/arrow-utils/arrow-fixed-size-list-utils.js +45 -0
- package/dist/schema-utils/lib/arrow-utils/arrow-fixed-size-list-utils.js.map +1 -0
- package/dist/schema-utils/lib/arrow-utils/arrow-list-of-fixed-size-list-utils.d.ts +11 -0
- package/dist/schema-utils/lib/arrow-utils/arrow-list-of-fixed-size-list-utils.d.ts.map +1 -0
- package/dist/schema-utils/lib/arrow-utils/arrow-list-of-fixed-size-list-utils.js +33 -0
- package/dist/schema-utils/lib/arrow-utils/arrow-list-of-fixed-size-list-utils.js.map +1 -0
- package/dist/schema-utils/lib/converters/convert.d.ts +10 -0
- package/dist/schema-utils/lib/converters/convert.d.ts.map +1 -0
- package/dist/schema-utils/lib/converters/convert.js +98 -0
- package/dist/schema-utils/lib/converters/convert.js.map +1 -0
- package/dist/schema-utils/lib/converters/converters.d.ts +3 -0
- package/dist/schema-utils/lib/converters/converters.d.ts.map +1 -0
- package/dist/schema-utils/lib/converters/converters.js +5 -0
- package/dist/schema-utils/lib/converters/converters.js.map +1 -0
- package/dist/schema-utils/lib/converters/types.d.ts +35 -0
- package/dist/schema-utils/lib/converters/types.d.ts.map +1 -0
- package/dist/schema-utils/lib/converters/types.js +5 -0
- package/dist/schema-utils/lib/converters/types.js.map +1 -0
- package/dist/schema-utils/lib/mesh/convert-mesh-to-table.d.ts +44 -0
- package/dist/schema-utils/lib/mesh/convert-mesh-to-table.d.ts.map +1 -0
- package/dist/schema-utils/lib/mesh/convert-mesh-to-table.js +187 -0
- package/dist/schema-utils/lib/mesh/convert-mesh-to-table.js.map +1 -0
- package/dist/schema-utils/lib/mesh/convert-table-to-mesh.d.ts +14 -0
- package/dist/schema-utils/lib/mesh/convert-table-to-mesh.d.ts.map +1 -0
- package/dist/schema-utils/lib/mesh/convert-table-to-mesh.js +217 -0
- package/dist/schema-utils/lib/mesh/convert-table-to-mesh.js.map +1 -0
- package/dist/schema-utils/lib/mesh/deduce-mesh-schema.d.ts +23 -0
- package/dist/schema-utils/lib/mesh/deduce-mesh-schema.d.ts.map +1 -0
- package/dist/schema-utils/lib/mesh/deduce-mesh-schema.js +72 -0
- package/dist/schema-utils/lib/mesh/deduce-mesh-schema.js.map +1 -0
- package/dist/schema-utils/lib/mesh/mesh-utils.d.ts +23 -0
- package/dist/schema-utils/lib/mesh/mesh-utils.d.ts.map +1 -0
- package/dist/schema-utils/lib/mesh/mesh-utils.js +54 -0
- package/dist/schema-utils/lib/mesh/mesh-utils.js.map +1 -0
- package/dist/schema-utils/lib/mesh/point-cloud-tiler.d.ts +98 -0
- package/dist/schema-utils/lib/mesh/point-cloud-tiler.d.ts.map +1 -0
- package/dist/schema-utils/lib/mesh/point-cloud-tiler.js +407 -0
- package/dist/schema-utils/lib/mesh/point-cloud-tiler.js.map +1 -0
- package/dist/schema-utils/lib/schema/convert-arrow-schema.d.ts +39 -0
- package/dist/schema-utils/lib/schema/convert-arrow-schema.d.ts.map +1 -0
- package/dist/schema-utils/lib/schema/convert-arrow-schema.js +441 -0
- package/dist/schema-utils/lib/schema/convert-arrow-schema.js.map +1 -0
- package/dist/schema-utils/lib/schema/data-type.d.ts +16 -0
- package/dist/schema-utils/lib/schema/data-type.d.ts.map +1 -0
- package/dist/schema-utils/lib/schema/data-type.js +102 -0
- package/dist/schema-utils/lib/schema/data-type.js.map +1 -0
- package/dist/schema-utils/lib/schema/deduce-table-schema.d.ts +14 -0
- package/dist/schema-utils/lib/schema/deduce-table-schema.d.ts.map +1 -0
- package/dist/schema-utils/lib/schema/deduce-table-schema.js +101 -0
- package/dist/schema-utils/lib/schema/deduce-table-schema.js.map +1 -0
- package/dist/schema-utils/lib/table/arrow-api/arrow-like-field.d.ts +19 -0
- package/dist/schema-utils/lib/table/arrow-api/arrow-like-field.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/arrow-api/arrow-like-field.js +37 -0
- package/dist/schema-utils/lib/table/arrow-api/arrow-like-field.js.map +1 -0
- package/dist/schema-utils/lib/table/arrow-api/arrow-like-interface.d.ts +43 -0
- package/dist/schema-utils/lib/table/arrow-api/arrow-like-interface.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/arrow-api/arrow-like-interface.js +5 -0
- package/dist/schema-utils/lib/table/arrow-api/arrow-like-interface.js.map +1 -0
- package/dist/schema-utils/lib/table/arrow-api/arrow-like-schema.d.ts +12 -0
- package/dist/schema-utils/lib/table/arrow-api/arrow-like-schema.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/arrow-api/arrow-like-schema.js +82 -0
- package/dist/schema-utils/lib/table/arrow-api/arrow-like-schema.js.map +1 -0
- package/dist/schema-utils/lib/table/arrow-api/arrow-like-table.d.ts +28 -0
- package/dist/schema-utils/lib/table/arrow-api/arrow-like-table.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/arrow-api/arrow-like-table.js +64 -0
- package/dist/schema-utils/lib/table/arrow-api/arrow-like-table.js.map +1 -0
- package/dist/schema-utils/lib/table/arrow-api/arrow-like-type.d.ts +177 -0
- package/dist/schema-utils/lib/table/arrow-api/arrow-like-type.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/arrow-api/arrow-like-type.js +441 -0
- package/dist/schema-utils/lib/table/arrow-api/arrow-like-type.js.map +1 -0
- package/dist/schema-utils/lib/table/arrow-api/enum.d.ts +92 -0
- package/dist/schema-utils/lib/table/arrow-api/enum.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/arrow-api/enum.js +98 -0
- package/dist/schema-utils/lib/table/arrow-api/enum.js.map +1 -0
- package/dist/schema-utils/lib/table/arrow-api/get-type-info.d.ts +13 -0
- package/dist/schema-utils/lib/table/arrow-api/get-type-info.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/arrow-api/get-type-info.js +28 -0
- package/dist/schema-utils/lib/table/arrow-api/get-type-info.js.map +1 -0
- package/dist/schema-utils/lib/table/arrow-api/index.d.ts +6 -0
- package/dist/schema-utils/lib/table/arrow-api/index.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/arrow-api/index.js +8 -0
- package/dist/schema-utils/lib/table/arrow-api/index.js.map +1 -0
- package/dist/schema-utils/lib/table/batch-builder/arrow-table-batch-aggregator.d.ts +10 -0
- package/dist/schema-utils/lib/table/batch-builder/arrow-table-batch-aggregator.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/batch-builder/arrow-table-batch-aggregator.js +71 -0
- package/dist/schema-utils/lib/table/batch-builder/arrow-table-batch-aggregator.js.map +1 -0
- package/dist/schema-utils/lib/table/batch-builder/arrow-table-builder.d.ts +28 -0
- package/dist/schema-utils/lib/table/batch-builder/arrow-table-builder.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/batch-builder/arrow-table-builder.js +104 -0
- package/dist/schema-utils/lib/table/batch-builder/arrow-table-builder.js.map +1 -0
- package/dist/schema-utils/lib/table/batch-builder/base-table-batch-aggregator.d.ts +19 -0
- package/dist/schema-utils/lib/table/batch-builder/base-table-batch-aggregator.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/batch-builder/base-table-batch-aggregator.js +64 -0
- package/dist/schema-utils/lib/table/batch-builder/base-table-batch-aggregator.js.map +1 -0
- package/dist/schema-utils/lib/table/batch-builder/columnar-table-batch-aggregator.d.ts +20 -0
- package/dist/schema-utils/lib/table/batch-builder/columnar-table-batch-aggregator.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/batch-builder/columnar-table-batch-aggregator.js +84 -0
- package/dist/schema-utils/lib/table/batch-builder/columnar-table-batch-aggregator.js.map +1 -0
- package/dist/schema-utils/lib/table/batch-builder/row-table-batch-aggregator.d.ts +21 -0
- package/dist/schema-utils/lib/table/batch-builder/row-table-batch-aggregator.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/batch-builder/row-table-batch-aggregator.js +86 -0
- package/dist/schema-utils/lib/table/batch-builder/row-table-batch-aggregator.js.map +1 -0
- package/dist/schema-utils/lib/table/batch-builder/table-batch-aggregator.d.ts +24 -0
- package/dist/schema-utils/lib/table/batch-builder/table-batch-aggregator.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/batch-builder/table-batch-aggregator.js +5 -0
- package/dist/schema-utils/lib/table/batch-builder/table-batch-aggregator.js.map +1 -0
- package/dist/schema-utils/lib/table/batch-builder/table-batch-builder.d.ts +52 -0
- package/dist/schema-utils/lib/table/batch-builder/table-batch-builder.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/batch-builder/table-batch-builder.js +149 -0
- package/dist/schema-utils/lib/table/batch-builder/table-batch-builder.js.map +1 -0
- package/dist/schema-utils/lib/table/batches/convert-batches.d.ts +10 -0
- package/dist/schema-utils/lib/table/batches/convert-batches.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/batches/convert-batches.js +46 -0
- package/dist/schema-utils/lib/table/batches/convert-batches.js.map +1 -0
- package/dist/schema-utils/lib/table/batches/make-arrow-batch-iterator.d.ts +17 -0
- package/dist/schema-utils/lib/table/batches/make-arrow-batch-iterator.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/batches/make-arrow-batch-iterator.js +61 -0
- package/dist/schema-utils/lib/table/batches/make-arrow-batch-iterator.js.map +1 -0
- package/dist/schema-utils/lib/table/batches/make-table-batch-iterator.d.ts +15 -0
- package/dist/schema-utils/lib/table/batches/make-table-batch-iterator.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/batches/make-table-batch-iterator.js +22 -0
- package/dist/schema-utils/lib/table/batches/make-table-batch-iterator.js.map +1 -0
- package/dist/schema-utils/lib/table/batches/make-table-from-batches.d.ts +9 -0
- package/dist/schema-utils/lib/table/batches/make-table-from-batches.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/batches/make-table-from-batches.js +63 -0
- package/dist/schema-utils/lib/table/batches/make-table-from-batches.js.map +1 -0
- package/dist/schema-utils/lib/table/query-arrow-table.d.ts +23 -0
- package/dist/schema-utils/lib/table/query-arrow-table.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/query-arrow-table.js +73 -0
- package/dist/schema-utils/lib/table/query-arrow-table.js.map +1 -0
- package/dist/schema-utils/lib/table/tables/convert-arrow-table.d.ts +24 -0
- package/dist/schema-utils/lib/table/tables/convert-arrow-table.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/tables/convert-arrow-table.js +151 -0
- package/dist/schema-utils/lib/table/tables/convert-arrow-table.js.map +1 -0
- package/dist/schema-utils/lib/table/tables/convert-table.d.ts +43 -0
- package/dist/schema-utils/lib/table/tables/convert-table.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/tables/convert-table.js +122 -0
- package/dist/schema-utils/lib/table/tables/convert-table.js.map +1 -0
- package/dist/schema-utils/lib/table/tables/make-table.d.ts +67 -0
- package/dist/schema-utils/lib/table/tables/make-table.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/tables/make-table.js +102 -0
- package/dist/schema-utils/lib/table/tables/make-table.js.map +1 -0
- package/dist/schema-utils/lib/table/tables/row-utils.d.ts +15 -0
- package/dist/schema-utils/lib/table/tables/row-utils.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/tables/row-utils.js +50 -0
- package/dist/schema-utils/lib/table/tables/row-utils.js.map +1 -0
- package/dist/schema-utils/lib/table/tables/table-accessors.d.ts +68 -0
- package/dist/schema-utils/lib/table/tables/table-accessors.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/tables/table-accessors.js +352 -0
- package/dist/schema-utils/lib/table/tables/table-accessors.js.map +1 -0
- package/dist/schema-utils/lib/table/tables/table-column.d.ts +7 -0
- package/dist/schema-utils/lib/table/tables/table-column.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/tables/table-column.js +40 -0
- package/dist/schema-utils/lib/table/tables/table-column.js.map +1 -0
- package/dist/schema-utils/lib/table/tables/table-converter/convert-tables.d.ts +9 -0
- package/dist/schema-utils/lib/table/tables/table-converter/convert-tables.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/tables/table-converter/convert-tables.js +19 -0
- package/dist/schema-utils/lib/table/tables/table-converter/convert-tables.js.map +1 -0
- package/dist/schema-utils/lib/table/tables/table-converter/table-converter.d.ts +16 -0
- package/dist/schema-utils/lib/table/tables/table-converter/table-converter.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/tables/table-converter/table-converter.js +45 -0
- package/dist/schema-utils/lib/table/tables/table-converter/table-converter.js.map +1 -0
- package/dist/schema-utils/lib/table/tables/table-types.d.ts +12 -0
- package/dist/schema-utils/lib/table/tables/table-types.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/tables/table-types.js +24 -0
- package/dist/schema-utils/lib/table/tables/table-types.js.map +1 -0
- package/dist/schema-utils/lib/utils/assert.d.ts +2 -0
- package/dist/schema-utils/lib/utils/assert.d.ts.map +1 -0
- package/dist/schema-utils/lib/utils/assert.js +12 -0
- package/dist/schema-utils/lib/utils/assert.js.map +1 -0
- package/dist/schema-utils/lib/utils/async-queue.d.ts +18 -0
- package/dist/schema-utils/lib/utils/async-queue.d.ts.map +1 -0
- package/dist/schema-utils/lib/utils/async-queue.js +96 -0
- package/dist/schema-utils/lib/utils/async-queue.js.map +1 -0
- package/dist/schema-utils/types/types.d.ts +15 -0
- package/dist/schema-utils/types/types.d.ts.map +1 -0
- package/dist/schema-utils/types/types.js +5 -0
- package/dist/schema-utils/types/types.js.map +1 -0
- package/dist/worker-utils/index.cjs +1569 -0
- package/dist/worker-utils/index.cjs.map +6 -0
- package/dist/worker-utils/index.d.ts +22 -0
- package/dist/worker-utils/index.d.ts.map +1 -0
- package/dist/worker-utils/index.js +40 -0
- package/dist/worker-utils/index.js.map +1 -0
- package/dist/worker-utils/lib/async-queue/async-queue.d.ts +32 -0
- package/dist/worker-utils/lib/async-queue/async-queue.d.ts.map +1 -0
- package/dist/worker-utils/lib/async-queue/async-queue.js +91 -0
- package/dist/worker-utils/lib/async-queue/async-queue.js.map +1 -0
- package/dist/worker-utils/lib/env-utils/assert.d.ts +3 -0
- package/dist/worker-utils/lib/env-utils/assert.d.ts.map +1 -0
- package/dist/worker-utils/lib/env-utils/assert.js +13 -0
- package/dist/worker-utils/lib/env-utils/assert.js.map +1 -0
- package/dist/worker-utils/lib/env-utils/globals.d.ts +22 -0
- package/dist/worker-utils/lib/env-utils/globals.d.ts.map +1 -0
- package/dist/worker-utils/lib/env-utils/globals.js +30 -0
- package/dist/worker-utils/lib/env-utils/globals.js.map +1 -0
- package/dist/worker-utils/lib/env-utils/version.d.ts +2 -0
- package/dist/worker-utils/lib/env-utils/version.d.ts.map +1 -0
- package/dist/worker-utils/lib/env-utils/version.js +20 -0
- package/dist/worker-utils/lib/env-utils/version.js.map +1 -0
- package/dist/worker-utils/lib/library-utils/library-utils.d.ts +42 -0
- package/dist/worker-utils/lib/library-utils/library-utils.d.ts.map +1 -0
- package/dist/worker-utils/lib/library-utils/library-utils.js +248 -0
- package/dist/worker-utils/lib/library-utils/library-utils.js.map +1 -0
- package/dist/worker-utils/lib/node/worker_threads-browser.d.ts +14 -0
- package/dist/worker-utils/lib/node/worker_threads-browser.d.ts.map +1 -0
- package/dist/worker-utils/lib/node/worker_threads-browser.js +22 -0
- package/dist/worker-utils/lib/node/worker_threads-browser.js.map +1 -0
- package/dist/worker-utils/lib/node/worker_threads.d.ts +15 -0
- package/dist/worker-utils/lib/node/worker_threads.d.ts.map +1 -0
- package/dist/worker-utils/lib/node/worker_threads.js +16 -0
- package/dist/worker-utils/lib/node/worker_threads.js.map +1 -0
- package/dist/worker-utils/lib/npm-tag.d.ts +8 -0
- package/dist/worker-utils/lib/npm-tag.d.ts.map +1 -0
- package/dist/worker-utils/lib/npm-tag.js +11 -0
- package/dist/worker-utils/lib/npm-tag.js.map +1 -0
- package/dist/worker-utils/lib/process-utils/child-process-proxy.browser.d.ts +8 -0
- package/dist/worker-utils/lib/process-utils/child-process-proxy.browser.d.ts.map +1 -0
- package/dist/worker-utils/lib/process-utils/child-process-proxy.browser.js +18 -0
- package/dist/worker-utils/lib/process-utils/child-process-proxy.browser.js.map +1 -0
- package/dist/worker-utils/lib/process-utils/child-process-proxy.d.ts +45 -0
- package/dist/worker-utils/lib/process-utils/child-process-proxy.d.ts.map +1 -0
- package/dist/worker-utils/lib/process-utils/child-process-proxy.js +123 -0
- package/dist/worker-utils/lib/process-utils/child-process-proxy.js.map +1 -0
- package/dist/worker-utils/lib/process-utils/process-utils.d.ts +2 -0
- package/dist/worker-utils/lib/process-utils/process-utils.d.ts.map +1 -0
- package/dist/worker-utils/lib/process-utils/process-utils.js +32 -0
- package/dist/worker-utils/lib/process-utils/process-utils.js.map +1 -0
- package/dist/worker-utils/lib/worker-api/create-worker.d.ts +9 -0
- package/dist/worker-utils/lib/worker-api/create-worker.d.ts.map +1 -0
- package/dist/worker-utils/lib/worker-api/create-worker.js +161 -0
- package/dist/worker-utils/lib/worker-api/create-worker.js.map +1 -0
- package/dist/worker-utils/lib/worker-api/get-worker-url.d.ts +29 -0
- package/dist/worker-utils/lib/worker-api/get-worker-url.d.ts.map +1 -0
- package/dist/worker-utils/lib/worker-api/get-worker-url.js +99 -0
- package/dist/worker-utils/lib/worker-api/get-worker-url.js.map +1 -0
- package/dist/worker-utils/lib/worker-api/process-on-worker.d.ts +50 -0
- package/dist/worker-utils/lib/worker-api/process-on-worker.d.ts.map +1 -0
- package/dist/worker-utils/lib/worker-api/process-on-worker.js +349 -0
- package/dist/worker-utils/lib/worker-api/process-on-worker.js.map +1 -0
- package/dist/worker-utils/lib/worker-api/validate-worker-version.d.ts +9 -0
- package/dist/worker-utils/lib/worker-api/validate-worker-version.d.ts.map +1 -0
- package/dist/worker-utils/lib/worker-api/validate-worker-version.js +35 -0
- package/dist/worker-utils/lib/worker-api/validate-worker-version.js.map +1 -0
- package/dist/worker-utils/lib/worker-farm/worker-body.d.ts +20 -0
- package/dist/worker-utils/lib/worker-farm/worker-body.d.ts.map +1 -0
- package/dist/worker-utils/lib/worker-farm/worker-body.js +131 -0
- package/dist/worker-utils/lib/worker-farm/worker-body.js.map +1 -0
- package/dist/worker-utils/lib/worker-farm/worker-farm.d.ts +58 -0
- package/dist/worker-utils/lib/worker-farm/worker-farm.d.ts.map +1 -0
- package/dist/worker-utils/lib/worker-farm/worker-farm.js +116 -0
- package/dist/worker-utils/lib/worker-farm/worker-farm.js.map +1 -0
- package/dist/worker-utils/lib/worker-farm/worker-job.d.ts +34 -0
- package/dist/worker-utils/lib/worker-farm/worker-job.d.ts.map +1 -0
- package/dist/worker-utils/lib/worker-farm/worker-job.js +74 -0
- package/dist/worker-utils/lib/worker-farm/worker-job.js.map +1 -0
- package/dist/worker-utils/lib/worker-farm/worker-pool.d.ts +94 -0
- package/dist/worker-utils/lib/worker-farm/worker-pool.d.ts.map +1 -0
- package/dist/worker-utils/lib/worker-farm/worker-pool.js +246 -0
- package/dist/worker-utils/lib/worker-farm/worker-pool.js.map +1 -0
- package/dist/worker-utils/lib/worker-farm/worker-thread.d.ts +67 -0
- package/dist/worker-utils/lib/worker-farm/worker-thread.d.ts.map +1 -0
- package/dist/worker-utils/lib/worker-farm/worker-thread.js +175 -0
- package/dist/worker-utils/lib/worker-farm/worker-thread.js.map +1 -0
- package/dist/worker-utils/lib/worker-utils/get-loadable-worker-url.d.ts +14 -0
- package/dist/worker-utils/lib/worker-utils/get-loadable-worker-url.d.ts.map +1 -0
- package/dist/worker-utils/lib/worker-utils/get-loadable-worker-url.js +72 -0
- package/dist/worker-utils/lib/worker-utils/get-loadable-worker-url.js.map +1 -0
- package/dist/worker-utils/lib/worker-utils/get-transfer-list.d.ts +15 -0
- package/dist/worker-utils/lib/worker-utils/get-transfer-list.d.ts.map +1 -0
- package/dist/worker-utils/lib/worker-utils/get-transfer-list.js +86 -0
- package/dist/worker-utils/lib/worker-utils/get-transfer-list.js.map +1 -0
- package/dist/worker-utils/lib/worker-utils/remove-nontransferable-options.d.ts +6 -0
- package/dist/worker-utils/lib/worker-utils/remove-nontransferable-options.d.ts.map +1 -0
- package/dist/worker-utils/lib/worker-utils/remove-nontransferable-options.js +27 -0
- package/dist/worker-utils/lib/worker-utils/remove-nontransferable-options.js.map +1 -0
- package/dist/worker-utils/null-worker-node.js +383 -0
- package/dist/worker-utils/null-worker-node.js.map +7 -0
- package/dist/worker-utils/null-worker.js +361 -0
- package/dist/worker-utils/null-worker.js.map +7 -0
- package/dist/worker-utils/types.d.ts +100 -0
- package/dist/worker-utils/types.d.ts.map +1 -0
- package/dist/worker-utils/types.js +5 -0
- package/dist/worker-utils/types.js.map +1 -0
- package/dist/worker-utils/workers/null-worker.d.ts +2 -0
- package/dist/worker-utils/workers/null-worker.d.ts.map +1 -0
- package/dist/worker-utils/workers/null-worker.js +17 -0
- package/dist/worker-utils/workers/null-worker.js.map +1 -0
- package/dist/workers/null-worker-node.js +1 -1
- package/dist/workers/null-worker-node.js.map +1 -1
- package/dist/workers/null-worker.js +1 -1
- package/dist/workers/null-worker.js.map +1 -1
- package/package.json +101 -11
- package/src/index.ts +10 -10
- package/src/iterators/make-iterator/make-iterator.ts +1 -1
- package/src/iterators/make-iterator/make-stream-iterator.ts +1 -1
- package/src/iterators/make-iterator/make-string-iterator.ts +1 -1
- package/src/lib/api/core-api.ts +1 -1
- package/src/lib/api/create-data-source.ts +2 -2
- package/src/lib/api/encode-table.ts +2 -2
- package/src/lib/api/encode.ts +3 -3
- package/src/lib/api/load-in-batches.ts +2 -2
- package/src/lib/api/load-loader.ts +2 -2
- package/src/lib/api/load.ts +2 -2
- package/src/lib/api/parse-file.ts +5 -3
- package/src/lib/api/parse-in-batches.ts +49 -11
- package/src/lib/api/parse-sync.ts +2 -2
- package/src/lib/api/parse.ts +8 -6
- package/src/lib/api/preload.ts +6 -1
- package/src/lib/api/register-loaders.ts +1 -1
- package/src/lib/api/select-loader.ts +3 -3
- package/src/lib/api/select-source.ts +1 -1
- package/src/lib/common.ts +1 -1
- package/src/lib/fetch/fetch-file.ts +2 -2
- package/src/lib/filesystems/browser-filesystem.ts +2 -2
- package/src/lib/init.ts +1 -1
- package/src/lib/loader-utils/get-data.ts +2 -2
- package/src/lib/loader-utils/get-fetch-function.ts +6 -4
- package/src/lib/loader-utils/loader-context.ts +6 -2
- package/src/lib/loader-utils/loggers.ts +1 -1
- package/src/lib/loader-utils/normalize-loader.ts +2 -2
- package/src/lib/loader-utils/option-defaults.ts +3 -2
- package/src/lib/loader-utils/option-utils.ts +2 -2
- package/src/lib/utils/resource-utils.ts +1 -1
- package/src/lib/utils/response-utils.ts +1 -1
- package/src/loader-utils/format-types.ts +49 -0
- package/src/loader-utils/index.ts +523 -0
- package/src/loader-utils/json-loader.ts +39 -0
- package/src/loader-utils/lib/binary-utils/array-buffer-utils.ts +114 -0
- package/src/loader-utils/lib/binary-utils/binary-chunk-reader.ts +297 -0
- package/src/loader-utils/lib/binary-utils/dataview-copy-utils.ts +121 -0
- package/src/loader-utils/lib/binary-utils/encode-array-buffer-to-base64.ts +17 -0
- package/src/loader-utils/lib/binary-utils/get-first-characters.ts +46 -0
- package/src/loader-utils/lib/binary-utils/hex-transcoder.ts +54 -0
- package/src/loader-utils/lib/binary-utils/memory-conversion-utils.ts +105 -0
- package/src/loader-utils/lib/binary-utils/memory-copy-utils.ts +69 -0
- package/src/loader-utils/lib/crs/crs-reprojection.ts +52 -0
- package/src/loader-utils/lib/env-utils/assert.ts +13 -0
- package/src/loader-utils/lib/env-utils/globals.ts +36 -0
- package/src/loader-utils/lib/file-provider/data-view-file.ts +83 -0
- package/src/loader-utils/lib/file-provider/file-handle-file.ts +114 -0
- package/src/loader-utils/lib/file-provider/file-provider-interface.ts +60 -0
- package/src/loader-utils/lib/file-provider/file-provider.ts +130 -0
- package/src/loader-utils/lib/files/array-buffer-file.ts +46 -0
- package/src/loader-utils/lib/files/blob-file.ts +45 -0
- package/src/loader-utils/lib/files/file.ts +39 -0
- package/src/loader-utils/lib/files/http-file-transport.ts +432 -0
- package/src/loader-utils/lib/files/http-file-types.ts +60 -0
- package/src/loader-utils/lib/files/http-file.ts +267 -0
- package/src/loader-utils/lib/files/node-file-facade.ts +57 -0
- package/src/loader-utils/lib/files/sources.ts +154 -0
- package/src/loader-utils/lib/filesystems/filesystem.ts +40 -0
- package/src/loader-utils/lib/filesystems/node-filesystem-facade.ts +65 -0
- package/src/loader-utils/lib/iterators/async-iteration.ts +136 -0
- package/src/loader-utils/lib/iterators/text-iterators.ts +76 -0
- package/src/loader-utils/lib/javascript-utils/is-type.ts +130 -0
- package/src/loader-utils/lib/laz/LASZIP-LICENSE +202 -0
- package/src/loader-utils/lib/laz/LASZIP-NOTICE +6 -0
- package/src/loader-utils/lib/laz/laz-arithmetic-encoder.ts +446 -0
- package/src/loader-utils/lib/laz/laz-chunk-decoder.ts +5251 -0
- package/src/loader-utils/lib/laz/laz-chunk-encoder.ts +1909 -0
- package/src/loader-utils/lib/log-utils/log.ts +28 -0
- package/src/loader-utils/lib/module-utils/initialize-wasm-module.ts +51 -0
- package/src/loader-utils/lib/module-utils/js-module-utils.ts +44 -0
- package/src/loader-utils/lib/node/buffer.browser.ts +22 -0
- package/src/loader-utils/lib/node/buffer.ts +40 -0
- package/src/loader-utils/lib/node/fs.browser.ts +5 -0
- package/src/loader-utils/lib/node/promisify.ts +72 -0
- package/src/loader-utils/lib/node/stream.browser.ts +5 -0
- package/src/loader-utils/lib/node/stream.ts +12 -0
- package/src/loader-utils/lib/option-utils/merge-options.ts +50 -0
- package/src/loader-utils/lib/parser-utils/parse-json.ts +16 -0
- package/src/loader-utils/lib/path-utils/cached-uri-resolver.ts +69 -0
- package/src/loader-utils/lib/path-utils/file-aliases.ts +49 -0
- package/src/loader-utils/lib/path-utils/get-cwd.ts +12 -0
- package/src/loader-utils/lib/path-utils/path.ts +173 -0
- package/src/loader-utils/lib/request-utils/abort-utils.ts +64 -0
- package/src/loader-utils/lib/request-utils/authentication.ts +134 -0
- package/src/loader-utils/lib/request-utils/parse-content-type.ts +22 -0
- package/src/loader-utils/lib/request-utils/range-request-cache.ts +279 -0
- package/src/loader-utils/lib/request-utils/range-request-scheduler.ts +899 -0
- package/src/loader-utils/lib/request-utils/request-cache.ts +296 -0
- package/src/loader-utils/lib/request-utils/request-credentials.ts +574 -0
- package/src/loader-utils/lib/request-utils/request-scheduler.ts +230 -0
- package/src/loader-utils/lib/scan-utils/columnar-predicate.ts +397 -0
- package/src/loader-utils/lib/scan-utils/experimental-scan-options.ts +46 -0
- package/src/loader-utils/lib/scan-utils/point-cloud-query.ts +176 -0
- package/src/loader-utils/lib/scan-utils/raster-query.ts +82 -0
- package/src/loader-utils/lib/scan-utils/relational-query.ts +188 -0
- package/src/loader-utils/lib/scan-utils/scan-executor.ts +208 -0
- package/src/loader-utils/lib/scan-utils/scan-fragments.ts +33 -0
- package/src/loader-utils/lib/scan-utils/scan-query-metadata.ts +439 -0
- package/src/loader-utils/lib/scan-utils/table-query-explain.ts +88 -0
- package/src/loader-utils/lib/scan-utils/table-query.ts +163 -0
- package/src/loader-utils/lib/scan-utils/table-scan-batch.ts +200 -0
- package/src/loader-utils/lib/sources/catalog-source.ts +42 -0
- package/src/loader-utils/lib/sources/data-source-manager.ts +569 -0
- package/src/loader-utils/lib/sources/data-source.ts +236 -0
- package/src/loader-utils/lib/sources/image-source.ts +66 -0
- package/src/loader-utils/lib/sources/image-tile-source.ts +22 -0
- package/src/loader-utils/lib/sources/raster-coverage.ts +92 -0
- package/src/loader-utils/lib/sources/raster-region.ts +35 -0
- package/src/loader-utils/lib/sources/raster-sampling.ts +213 -0
- package/src/loader-utils/lib/sources/raster-source.ts +344 -0
- package/src/loader-utils/lib/sources/service-capabilities.ts +50 -0
- package/src/loader-utils/lib/sources/tile-grid.ts +162 -0
- package/src/loader-utils/lib/sources/tile-source-adapter.ts +126 -0
- package/src/loader-utils/lib/sources/tile-source-utils.ts +19 -0
- package/src/loader-utils/lib/sources/tile-source.ts +198 -0
- package/src/loader-utils/lib/sources/utils/image-type.ts +14 -0
- package/src/loader-utils/lib/sources/utils/utils.ts +31 -0
- package/src/loader-utils/lib/sources/vector-source.ts +89 -0
- package/src/loader-utils/lib/sources/vector-tile-source.ts +29 -0
- package/src/loader-utils/lib/sources/xyz-grid.ts +82 -0
- package/src/loader-utils/lib/worker-loader-utils/create-loader-worker.ts +256 -0
- package/src/loader-utils/lib/worker-loader-utils/encode-with-worker.ts +28 -0
- package/src/loader-utils/lib/worker-loader-utils/parse-with-worker.ts +392 -0
- package/src/loader-utils/loader-types.ts +543 -0
- package/src/loader-utils/source-types.ts +76 -0
- package/src/loader-utils/types.ts +83 -0
- package/src/loader-utils/workers/json-worker.ts +8 -0
- package/src/loader-utils/writer-types.ts +107 -0
- package/src/null-loader.ts +2 -2
- package/src/polyfills/README.md +16 -0
- package/src/polyfills/buffer/btoa.node.ts +15 -0
- package/src/polyfills/buffer/to-array-buffer.node.ts +12 -0
- package/src/polyfills/crypto/node-hash.ts +78 -0
- package/src/polyfills/fetch/decode-data-uri.ts +71 -0
- package/src/polyfills/fetch/fetch-polyfill.ts +165 -0
- package/src/polyfills/fetch/headers-polyfill.ts +119 -0
- package/src/polyfills/fetch/response-polyfill.ts +101 -0
- package/src/polyfills/fetch/utils/decode-data-uri.node.ts +34 -0
- package/src/polyfills/file/blob-stream-controller.ts +69 -0
- package/src/polyfills/file/blob-stream.ts +40 -0
- package/src/polyfills/file/blob.ts +177 -0
- package/src/polyfills/file/file-reader.ts +59 -0
- package/src/polyfills/file/file.ts +45 -0
- package/src/polyfills/file/install-blob-polyfills.ts +17 -0
- package/src/polyfills/file/install-file-polyfills.ts +24 -0
- package/src/polyfills/file/readable-stream.ts +8 -0
- package/src/polyfills/filesystems/fetch-node.ts +98 -0
- package/src/polyfills/filesystems/node-file.ts +169 -0
- package/src/polyfills/filesystems/node-filesystem.ts +54 -0
- package/src/polyfills/filesystems/stream-utils.node.ts +81 -0
- package/src/polyfills/images/encode-image-node.ts +45 -0
- package/src/polyfills/images/encode-image.node.ts.disabled +41 -0
- package/src/polyfills/images/image-codecs-node.ts +40 -0
- package/src/polyfills/images/node-image-bitmap.ts +81 -0
- package/src/polyfills/images/node-image-formats.ts +6 -0
- package/src/polyfills/images/parse-image-node.ts +54 -0
- package/src/polyfills/images/parse-image.node.ts.disabled +55 -0
- package/src/polyfills/index.browser.ts +23 -0
- package/src/polyfills/index.ts +154 -0
- package/src/polyfills/libs/encoding-indexes-asian.js +15 -0
- package/src/polyfills/load-library/require-utils.node.ts +108 -0
- package/src/polyfills/streams/make-node-stream.ts +83 -0
- package/src/polyfills/text-encoder/encoding-indexes.ts +36 -0
- package/src/polyfills/text-encoder/text-encoder.ts +3085 -0
- package/src/polyfills/utils/assert.ts +9 -0
- package/src/polyfills/utils/buffer-utils.ts +40 -0
- package/src/polyfills/utils/filesystem-types.ts +13 -0
- package/src/polyfills/utils/is-browser.ts +8 -0
- package/src/polyfills/utils/path-utils.ts +31 -0
- package/src/polyfills/wip/fetch-browser/fetch-file.browser.d.ts +34 -0
- package/src/schema/categories/category-gis.ts +63 -0
- package/src/schema/categories/category-image.ts +23 -0
- package/src/schema/categories/category-mesh.ts +138 -0
- package/src/schema/categories/category-table.ts +125 -0
- package/src/schema/categories/category-texture.ts +259 -0
- package/src/schema/deprecated/mesh-utils.ts +46 -0
- package/src/schema/float16.ts +111 -0
- package/src/schema/geometry/arrow-binary-features.ts +54 -0
- package/src/schema/geometry/binary-features.ts +43 -0
- package/src/schema/geometry/binary-geometries.ts +45 -0
- package/src/schema/geometry/flat-geometries.ts +72 -0
- package/src/schema/geometry/geoarrow.ts +116 -0
- package/src/schema/geospatial-metadata-zod-schema.ts +163 -0
- package/src/schema/index.ts +169 -0
- package/src/schema/metadata.ts +115 -0
- package/src/schema/types/batch.ts +47 -0
- package/src/schema/types/schema.ts +86 -0
- package/src/schema/types/types.ts +52 -0
- package/src/schema-utils/arrow-transport.ts +7 -0
- package/src/schema-utils/deprecated.ts +53 -0
- package/src/schema-utils/index.ts +165 -0
- package/src/schema-utils/lib/arrow/arrow-table-transport.ts +260 -0
- package/src/schema-utils/lib/arrow/split-arrow-buffers.ts +235 -0
- package/src/schema-utils/lib/arrow-utils/arrow-fixed-size-list-utils.ts +78 -0
- package/src/schema-utils/lib/arrow-utils/arrow-list-of-fixed-size-list-utils.ts +48 -0
- package/src/schema-utils/lib/converters/convert.ts +142 -0
- package/src/schema-utils/lib/converters/converters.ts +6 -0
- package/src/schema-utils/lib/converters/types.ts +44 -0
- package/src/schema-utils/lib/mesh/convert-mesh-to-table.ts +311 -0
- package/src/schema-utils/lib/mesh/convert-table-to-mesh.ts +257 -0
- package/src/schema-utils/lib/mesh/deduce-mesh-schema.ts +85 -0
- package/src/schema-utils/lib/mesh/mesh-utils.ts +73 -0
- package/src/schema-utils/lib/mesh/point-cloud-tiler.ts +485 -0
- package/src/schema-utils/lib/schema/convert-arrow-schema.ts +552 -0
- package/src/schema-utils/lib/schema/data-type.ts +122 -0
- package/src/schema-utils/lib/schema/deduce-table-schema.ts +119 -0
- package/src/schema-utils/lib/table/arrow-api/arrow-like-field.ts +53 -0
- package/src/schema-utils/lib/table/arrow-api/arrow-like-interface.ts +84 -0
- package/src/schema-utils/lib/table/arrow-api/arrow-like-schema.ts +101 -0
- package/src/schema-utils/lib/table/arrow-api/arrow-like-table.ts +85 -0
- package/src/schema-utils/lib/table/arrow-api/arrow-like-type.ts +500 -0
- package/src/schema-utils/lib/table/arrow-api/enum.ts +99 -0
- package/src/schema-utils/lib/table/arrow-api/get-type-info.ts +38 -0
- package/src/schema-utils/lib/table/arrow-api/index.ts +50 -0
- package/src/schema-utils/lib/table/batch-builder/arrow-table-batch-aggregator-builders.ts.disabled +190 -0
- package/src/schema-utils/lib/table/batch-builder/arrow-table-batch-aggregator.ts +85 -0
- package/src/schema-utils/lib/table/batch-builder/arrow-table-builder.ts +123 -0
- package/src/schema-utils/lib/table/batch-builder/base-table-batch-aggregator.ts +82 -0
- package/src/schema-utils/lib/table/batch-builder/columnar-table-batch-aggregator.ts +104 -0
- package/src/schema-utils/lib/table/batch-builder/row-table-batch-aggregator.ts +108 -0
- package/src/schema-utils/lib/table/batch-builder/table-batch-aggregator.ts +28 -0
- package/src/schema-utils/lib/table/batch-builder/table-batch-builder.ts +185 -0
- package/src/schema-utils/lib/table/batches/convert-batches.ts +83 -0
- package/src/schema-utils/lib/table/batches/make-arrow-batch-iterator.ts +81 -0
- package/src/schema-utils/lib/table/batches/make-table-batch-iterator.ts +25 -0
- package/src/schema-utils/lib/table/batches/make-table-from-batches.ts +84 -0
- package/src/schema-utils/lib/table/query-arrow-table.ts +130 -0
- package/src/schema-utils/lib/table/tables/convert-arrow-table.ts +198 -0
- package/src/schema-utils/lib/table/tables/convert-table.ts +152 -0
- package/src/schema-utils/lib/table/tables/make-table.ts +127 -0
- package/src/schema-utils/lib/table/tables/row-utils.ts +59 -0
- package/src/schema-utils/lib/table/tables/table-accessors.ts +418 -0
- package/src/schema-utils/lib/table/tables/table-column.ts +49 -0
- package/src/schema-utils/lib/table/tables/table-converter/convert-tables.ts +35 -0
- package/src/schema-utils/lib/table/tables/table-converter/table-converter.ts +57 -0
- package/src/schema-utils/lib/table/tables/table-types.ts +37 -0
- package/src/schema-utils/lib/utils/assert.ts +12 -0
- package/src/schema-utils/lib/utils/async-queue.ts +109 -0
- package/src/schema-utils/types/types.ts +45 -0
- package/src/worker-utils/index.ts +82 -0
- package/src/worker-utils/lib/async-queue/async-queue.ts +100 -0
- package/src/worker-utils/lib/env-utils/assert.ts +14 -0
- package/src/worker-utils/lib/env-utils/globals.ts +40 -0
- package/src/worker-utils/lib/env-utils/version.ts +25 -0
- package/src/worker-utils/lib/library-utils/library-utils.ts +303 -0
- package/src/worker-utils/lib/node/worker_threads-browser.ts +34 -0
- package/src/worker-utils/lib/node/worker_threads.ts +58 -0
- package/src/worker-utils/lib/npm-tag.ts +11 -0
- package/src/worker-utils/lib/process-utils/child-process-proxy.browser.ts +23 -0
- package/src/worker-utils/lib/process-utils/child-process-proxy.ts +165 -0
- package/src/worker-utils/lib/process-utils/process-utils.ts +34 -0
- package/src/worker-utils/lib/worker-api/create-worker.ts +205 -0
- package/src/worker-utils/lib/worker-api/get-worker-url.ts +128 -0
- package/src/worker-utils/lib/worker-api/process-on-worker.ts +468 -0
- package/src/worker-utils/lib/worker-api/validate-worker-version.ts +44 -0
- package/src/worker-utils/lib/worker-farm/worker-body.ts +145 -0
- package/src/worker-utils/lib/worker-farm/worker-farm.ts +144 -0
- package/src/worker-utils/lib/worker-farm/worker-job.ts +85 -0
- package/src/worker-utils/lib/worker-farm/worker-pool.ts +316 -0
- package/src/worker-utils/lib/worker-farm/worker-thread.ts +206 -0
- package/src/worker-utils/lib/worker-utils/get-loadable-worker-url.ts +81 -0
- package/src/worker-utils/lib/worker-utils/get-transfer-list.ts +93 -0
- package/src/worker-utils/lib/worker-utils/remove-nontransferable-options.ts +27 -0
- package/src/worker-utils/types.ts +148 -0
- package/src/worker-utils/workers/null-worker.ts +20 -0
- package/src/workers/null-worker-node.ts +1 -1
- package/src/workers/null-worker.ts +1 -1
package/dist/dist.dev.js
CHANGED
|
@@ -90,14 +90,14 @@ var __exports__ = (() => {
|
|
|
90
90
|
window: () => window_
|
|
91
91
|
});
|
|
92
92
|
|
|
93
|
-
//
|
|
93
|
+
// src/loader-utils/lib/env-utils/assert.ts
|
|
94
94
|
function assert(condition, message) {
|
|
95
95
|
if (!condition) {
|
|
96
96
|
throw new Error(message || "loader assertion failed.");
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
-
//
|
|
100
|
+
// src/loader-utils/lib/env-utils/globals.ts
|
|
101
101
|
var globals = {
|
|
102
102
|
self: typeof self !== "undefined" && self,
|
|
103
103
|
window: typeof window !== "undefined" && window,
|
|
@@ -116,14 +116,14 @@ var __exports__ = (() => {
|
|
|
116
116
|
var matches = typeof process !== "undefined" && process.version && /v([0-9]*)/.exec(process.version);
|
|
117
117
|
var nodeVersion = matches && parseFloat(matches[1]) || 0;
|
|
118
118
|
|
|
119
|
-
// ../../node_modules
|
|
119
|
+
// ../../node_modules/probe.gl/dist/env/lib/globals.js
|
|
120
120
|
var window_2 = globalThis;
|
|
121
121
|
var document_2 = globalThis.document || {};
|
|
122
122
|
var process_ = globalThis.process || {};
|
|
123
123
|
var console_ = globalThis.console;
|
|
124
124
|
var navigator_ = globalThis.navigator || {};
|
|
125
125
|
|
|
126
|
-
// ../../node_modules
|
|
126
|
+
// ../../node_modules/probe.gl/dist/env/lib/is-electron.js
|
|
127
127
|
function isElectron(mockUserAgent) {
|
|
128
128
|
if (typeof window !== "undefined" && window.process?.type === "renderer") {
|
|
129
129
|
return true;
|
|
@@ -136,7 +136,7 @@ var __exports__ = (() => {
|
|
|
136
136
|
return Boolean(userAgent && userAgent.indexOf("Electron") >= 0);
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
// ../../node_modules
|
|
139
|
+
// ../../node_modules/probe.gl/dist/env/lib/is-browser.js
|
|
140
140
|
function isBrowser2() {
|
|
141
141
|
const isNode = (
|
|
142
142
|
// @ts-expect-error
|
|
@@ -145,17 +145,17 @@ var __exports__ = (() => {
|
|
|
145
145
|
return !isNode || isElectron();
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
-
// ../../node_modules
|
|
149
|
-
var VERSION = true ? "
|
|
148
|
+
// ../../node_modules/probe.gl/dist/env/index.js
|
|
149
|
+
var VERSION = true ? "5.0.0" : "untranspiled source";
|
|
150
150
|
|
|
151
|
-
// ../../node_modules
|
|
152
|
-
function
|
|
151
|
+
// ../../node_modules/probe.gl/dist/log/utils/assert.js
|
|
152
|
+
function assert3(condition, message) {
|
|
153
153
|
if (!condition) {
|
|
154
154
|
throw new Error(message || "Assertion failed");
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
157
|
|
|
158
|
-
// ../../node_modules
|
|
158
|
+
// ../../node_modules/probe.gl/dist/log/loggers/log-utils.js
|
|
159
159
|
function normalizeLogLevel(logLevel) {
|
|
160
160
|
if (!logLevel) {
|
|
161
161
|
return 0;
|
|
@@ -171,7 +171,7 @@ var __exports__ = (() => {
|
|
|
171
171
|
default:
|
|
172
172
|
return 0;
|
|
173
173
|
}
|
|
174
|
-
|
|
174
|
+
assert3(Number.isFinite(resolvedLevel) && resolvedLevel >= 0);
|
|
175
175
|
return resolvedLevel;
|
|
176
176
|
}
|
|
177
177
|
function normalizeArguments(opts) {
|
|
@@ -197,11 +197,11 @@ var __exports__ = (() => {
|
|
|
197
197
|
opts.message = opts.message();
|
|
198
198
|
}
|
|
199
199
|
const messageType = typeof opts.message;
|
|
200
|
-
|
|
200
|
+
assert3(messageType === "string" || messageType === "object");
|
|
201
201
|
return Object.assign(opts, { args }, opts.opts);
|
|
202
202
|
}
|
|
203
203
|
|
|
204
|
-
// ../../node_modules
|
|
204
|
+
// ../../node_modules/probe.gl/dist/log/loggers/base-log.js
|
|
205
205
|
var noop = () => {
|
|
206
206
|
};
|
|
207
207
|
var BaseLog = class {
|
|
@@ -280,7 +280,7 @@ var __exports__ = (() => {
|
|
|
280
280
|
}
|
|
281
281
|
};
|
|
282
282
|
|
|
283
|
-
// ../../node_modules
|
|
283
|
+
// ../../node_modules/probe.gl/dist/log/utils/local-storage.js
|
|
284
284
|
function getStorage(type) {
|
|
285
285
|
try {
|
|
286
286
|
const storage = window[type];
|
|
@@ -321,7 +321,7 @@ var __exports__ = (() => {
|
|
|
321
321
|
}
|
|
322
322
|
};
|
|
323
323
|
|
|
324
|
-
// ../../node_modules
|
|
324
|
+
// ../../node_modules/probe.gl/dist/log/utils/formatters.js
|
|
325
325
|
function formatTime(ms) {
|
|
326
326
|
let formatted;
|
|
327
327
|
if (ms < 10) {
|
|
@@ -340,7 +340,7 @@ var __exports__ = (() => {
|
|
|
340
340
|
return `${" ".repeat(padLength)}${string}`;
|
|
341
341
|
}
|
|
342
342
|
|
|
343
|
-
// ../../node_modules
|
|
343
|
+
// ../../node_modules/probe.gl/dist/log/utils/color.js
|
|
344
344
|
var COLOR;
|
|
345
345
|
(function(COLOR2) {
|
|
346
346
|
COLOR2[COLOR2["BLACK"] = 30] = "BLACK";
|
|
@@ -382,7 +382,7 @@ var __exports__ = (() => {
|
|
|
382
382
|
return string;
|
|
383
383
|
}
|
|
384
384
|
|
|
385
|
-
// ../../node_modules
|
|
385
|
+
// ../../node_modules/probe.gl/dist/log/utils/autobind.js
|
|
386
386
|
function autobind(obj, predefined = ["constructor"]) {
|
|
387
387
|
const proto = Object.getPrototypeOf(obj);
|
|
388
388
|
const propNames = Object.getOwnPropertyNames(proto);
|
|
@@ -397,21 +397,34 @@ var __exports__ = (() => {
|
|
|
397
397
|
}
|
|
398
398
|
}
|
|
399
399
|
|
|
400
|
-
// ../../node_modules
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
400
|
+
// ../../node_modules/probe.gl/dist/log/probe.js
|
|
401
|
+
var Probe = class {
|
|
402
|
+
getHighResolutionTimer() {
|
|
403
|
+
let timestamp;
|
|
404
|
+
if (isBrowser2() && window_2.performance) {
|
|
405
|
+
timestamp = window_2?.performance?.now?.();
|
|
406
|
+
} else if ("hrtime" in process_) {
|
|
407
|
+
const timeParts = process_?.hrtime?.();
|
|
408
|
+
timestamp = timeParts[0] * 1e3 + timeParts[1] / 1e6;
|
|
409
|
+
} else {
|
|
410
|
+
timestamp = Date.now();
|
|
411
|
+
}
|
|
412
|
+
return timestamp;
|
|
410
413
|
}
|
|
411
|
-
|
|
412
|
-
|
|
414
|
+
getMemoryUsageMB() {
|
|
415
|
+
const performance = window_2?.performance;
|
|
416
|
+
const usedJSHeapSize = performance?.memory?.usedJSHeapSize;
|
|
417
|
+
if (usedJSHeapSize === void 0 || usedJSHeapSize === null) {
|
|
418
|
+
return null;
|
|
419
|
+
}
|
|
420
|
+
return Math.trunc(usedJSHeapSize / 1024 / 1024);
|
|
421
|
+
}
|
|
422
|
+
};
|
|
423
|
+
var probe = new Probe();
|
|
424
|
+
globalThis.Probe = Probe;
|
|
425
|
+
globalThis.probe = probe;
|
|
413
426
|
|
|
414
|
-
// ../../node_modules
|
|
427
|
+
// ../../node_modules/probe.gl/dist/log/loggers/probe-log.js
|
|
415
428
|
var originalConsole = {
|
|
416
429
|
debug: isBrowser2() ? console.debug || console.log : console.log,
|
|
417
430
|
log: console.log,
|
|
@@ -427,8 +440,8 @@ var __exports__ = (() => {
|
|
|
427
440
|
constructor({ id } = { id: "" }) {
|
|
428
441
|
super({ level: 0 });
|
|
429
442
|
this.VERSION = VERSION;
|
|
430
|
-
this._startTs =
|
|
431
|
-
this._deltaTs =
|
|
443
|
+
this._startTs = probe.getHighResolutionTimer();
|
|
444
|
+
this._deltaTs = probe.getHighResolutionTimer();
|
|
432
445
|
this.userData = {};
|
|
433
446
|
this.LOG_THROTTLE_TIMEOUT = 0;
|
|
434
447
|
this.id = id;
|
|
@@ -446,11 +459,11 @@ var __exports__ = (() => {
|
|
|
446
459
|
}
|
|
447
460
|
/** @return milliseconds, with fractions */
|
|
448
461
|
getTotal() {
|
|
449
|
-
return Number((
|
|
462
|
+
return Number((probe.getHighResolutionTimer() - this._startTs).toPrecision(10));
|
|
450
463
|
}
|
|
451
464
|
/** @return milliseconds, with fractions */
|
|
452
465
|
getDelta() {
|
|
453
|
-
return Number((
|
|
466
|
+
return Number((probe.getHighResolutionTimer() - this._deltaTs).toPrecision(10));
|
|
454
467
|
}
|
|
455
468
|
/** @deprecated use logLevel */
|
|
456
469
|
set priority(newPriority) {
|
|
@@ -515,6 +528,15 @@ var __exports__ = (() => {
|
|
|
515
528
|
return this.error(`\`${oldUsage}\` has been removed. Use \`${newUsage}\` instead`);
|
|
516
529
|
}
|
|
517
530
|
probe(logLevel, message, ...args) {
|
|
531
|
+
const memoryUsageMB = probe.getMemoryUsageMB();
|
|
532
|
+
if (memoryUsageMB !== null) {
|
|
533
|
+
const memoryUsagePrefix = `${memoryUsageMB}MB `;
|
|
534
|
+
if (typeof message === "function") {
|
|
535
|
+
message = () => `${memoryUsagePrefix}${message()}`;
|
|
536
|
+
} else if (typeof message === "string") {
|
|
537
|
+
message = `${memoryUsagePrefix}${message}`;
|
|
538
|
+
}
|
|
539
|
+
}
|
|
518
540
|
return this._log("log", logLevel, message, args, {
|
|
519
541
|
method: originalConsole.log,
|
|
520
542
|
time: true,
|
|
@@ -591,10 +613,10 @@ var __exports__ = (() => {
|
|
|
591
613
|
}
|
|
592
614
|
_emit(_type, normalized) {
|
|
593
615
|
const method = normalized.method;
|
|
594
|
-
|
|
616
|
+
assert3(method);
|
|
595
617
|
normalized.total = this.getTotal();
|
|
596
618
|
normalized.delta = this.getDelta();
|
|
597
|
-
this._deltaTs =
|
|
619
|
+
this._deltaTs = probe.getHighResolutionTimer();
|
|
598
620
|
const message = decorateMessage(this.id, normalized.message, normalized);
|
|
599
621
|
return method.bind(console, message, ...normalized.args);
|
|
600
622
|
}
|
|
@@ -631,27 +653,29 @@ var __exports__ = (() => {
|
|
|
631
653
|
return "empty";
|
|
632
654
|
}
|
|
633
655
|
|
|
634
|
-
// ../../node_modules
|
|
635
|
-
globalThis.probe
|
|
656
|
+
// ../../node_modules/probe.gl/dist/log/init.js
|
|
657
|
+
if (!globalThis.probe) {
|
|
658
|
+
globalThis.probe = probe;
|
|
659
|
+
}
|
|
636
660
|
|
|
637
|
-
// ../../node_modules
|
|
638
|
-
var
|
|
661
|
+
// ../../node_modules/probe.gl/dist/log/index.js
|
|
662
|
+
var log = new ProbeLog({ id: "@probe.gl/log" });
|
|
639
663
|
|
|
640
|
-
//
|
|
664
|
+
// src/loader-utils/lib/log-utils/log.ts
|
|
641
665
|
var VERSION2 = typeof __VERSION__ !== "undefined" ? __VERSION__ : "latest";
|
|
642
666
|
var version = VERSION2[0] >= "0" && VERSION2[0] <= "9" ? `v${VERSION2}` : "";
|
|
643
667
|
function createLog() {
|
|
644
|
-
const
|
|
668
|
+
const log3 = new ProbeLog({ id: "loaders.gl" });
|
|
645
669
|
globalThis.loaders ||= {};
|
|
646
|
-
globalThis.loaders.log =
|
|
670
|
+
globalThis.loaders.log = log3;
|
|
647
671
|
globalThis.loaders.version = version;
|
|
648
672
|
globalThis.probe ||= {};
|
|
649
|
-
globalThis.probe.loaders =
|
|
650
|
-
return
|
|
673
|
+
globalThis.probe.loaders = log3;
|
|
674
|
+
return log3;
|
|
651
675
|
}
|
|
652
|
-
var
|
|
676
|
+
var log2 = createLog();
|
|
653
677
|
|
|
654
|
-
//
|
|
678
|
+
// src/loader-utils/lib/javascript-utils/is-type.ts
|
|
655
679
|
var isBoolean = (value) => typeof value === "boolean";
|
|
656
680
|
var isFunction = (value) => typeof value === "function";
|
|
657
681
|
var isObject = (value) => value !== null && typeof value === "object";
|
|
@@ -671,7 +695,7 @@ var __exports__ = (() => {
|
|
|
671
695
|
var isReadableStream = (value) => isReadableDOMStream(value) || isReadableNodeStream(value);
|
|
672
696
|
var isWritableStream = (value) => isWritableDOMStream(value) || isWritableNodeStream(value);
|
|
673
697
|
|
|
674
|
-
//
|
|
698
|
+
// src/loader-utils/lib/option-utils/merge-options.ts
|
|
675
699
|
function mergeOptions(baseOptions, newOptions) {
|
|
676
700
|
return mergeOptionsRecursively(baseOptions || {}, newOptions);
|
|
677
701
|
}
|
|
@@ -694,17 +718,17 @@ var __exports__ = (() => {
|
|
|
694
718
|
return options;
|
|
695
719
|
}
|
|
696
720
|
|
|
697
|
-
//
|
|
721
|
+
// src/loader-utils/lib/module-utils/js-module-utils.ts
|
|
698
722
|
function registerJSModules(modules) {
|
|
699
723
|
globalThis.loaders ||= {};
|
|
700
724
|
globalThis.loaders.modules ||= {};
|
|
701
725
|
Object.assign(globalThis.loaders.modules, modules);
|
|
702
726
|
}
|
|
703
727
|
|
|
704
|
-
//
|
|
728
|
+
// src/worker-utils/lib/npm-tag.ts
|
|
705
729
|
var NPM_TAG = "latest";
|
|
706
730
|
|
|
707
|
-
//
|
|
731
|
+
// src/worker-utils/lib/env-utils/version.ts
|
|
708
732
|
function getVersion() {
|
|
709
733
|
if (!globalThis._loadersgl_?.version) {
|
|
710
734
|
globalThis._loadersgl_ = globalThis._loadersgl_ || {};
|
|
@@ -718,14 +742,14 @@ var __exports__ = (() => {
|
|
|
718
742
|
}
|
|
719
743
|
var VERSION3 = getVersion();
|
|
720
744
|
|
|
721
|
-
//
|
|
722
|
-
function
|
|
745
|
+
// src/worker-utils/lib/env-utils/assert.ts
|
|
746
|
+
function assert4(condition, message) {
|
|
723
747
|
if (!condition) {
|
|
724
748
|
throw new Error(message || "loaders.gl assertion failed.");
|
|
725
749
|
}
|
|
726
750
|
}
|
|
727
751
|
|
|
728
|
-
//
|
|
752
|
+
// src/worker-utils/lib/env-utils/globals.ts
|
|
729
753
|
var globals2 = {
|
|
730
754
|
self: typeof self !== "undefined" && self,
|
|
731
755
|
window: typeof window !== "undefined" && window,
|
|
@@ -740,11 +764,11 @@ var __exports__ = (() => {
|
|
|
740
764
|
// @ts-ignore process.browser
|
|
741
765
|
typeof process !== "object" || String(process) !== "[object process]" || process.browser
|
|
742
766
|
);
|
|
743
|
-
var
|
|
767
|
+
var isMobile2 = typeof window !== "undefined" && typeof window.orientation !== "undefined";
|
|
744
768
|
var matches2 = typeof process !== "undefined" && process.version && /v([0-9]*)/.exec(process.version);
|
|
745
769
|
var nodeVersion2 = matches2 && parseFloat(matches2[1]) || 0;
|
|
746
770
|
|
|
747
|
-
//
|
|
771
|
+
// src/worker-utils/lib/worker-farm/worker-job.ts
|
|
748
772
|
var WorkerJob = class {
|
|
749
773
|
name;
|
|
750
774
|
workerThread;
|
|
@@ -768,6 +792,7 @@ var __exports__ = (() => {
|
|
|
768
792
|
* @param data any data structure, ideally consisting mostly of transferrable objects
|
|
769
793
|
*/
|
|
770
794
|
postMessage(type, payload) {
|
|
795
|
+
if (!this.isRunning) return;
|
|
771
796
|
this.workerThread.postMessage({
|
|
772
797
|
source: "loaders.gl",
|
|
773
798
|
// Lets worker ignore unrelated messages
|
|
@@ -803,9 +828,10 @@ var __exports__ = (() => {
|
|
|
803
828
|
if (!this.isRunning) {
|
|
804
829
|
return;
|
|
805
830
|
}
|
|
806
|
-
const error = reason ?? createAbortError(`Worker job "${this.name}" was aborted`);
|
|
807
831
|
this.workerThread.destroy();
|
|
808
|
-
this.error(
|
|
832
|
+
this.error(
|
|
833
|
+
arguments.length ? reason : createAbortError(`Worker job "${this.name}" was aborted`)
|
|
834
|
+
);
|
|
809
835
|
}
|
|
810
836
|
};
|
|
811
837
|
function createAbortError(message) {
|
|
@@ -814,7 +840,7 @@ var __exports__ = (() => {
|
|
|
814
840
|
return error;
|
|
815
841
|
}
|
|
816
842
|
|
|
817
|
-
//
|
|
843
|
+
// src/worker-utils/lib/node/worker_threads-browser.ts
|
|
818
844
|
var NodeWorker = class {
|
|
819
845
|
/** Restores the native worker constructor when this browser shim is embedded in a Node bundle. */
|
|
820
846
|
constructor(...arguments_) {
|
|
@@ -829,10 +855,10 @@ var __exports__ = (() => {
|
|
|
829
855
|
}
|
|
830
856
|
};
|
|
831
857
|
|
|
832
|
-
//
|
|
858
|
+
// src/worker-utils/lib/worker-utils/get-loadable-worker-url.ts
|
|
833
859
|
var workerURLCache = /* @__PURE__ */ new Map();
|
|
834
860
|
function getLoadableWorkerURL(props) {
|
|
835
|
-
|
|
861
|
+
assert4(props.source && !props.url || !props.source && props.url);
|
|
836
862
|
let workerURL = workerURLCache.get(props.source || props.url);
|
|
837
863
|
if (!workerURL) {
|
|
838
864
|
if (props.url) {
|
|
@@ -844,7 +870,7 @@ var __exports__ = (() => {
|
|
|
844
870
|
workerURLCache.set(props.source, workerURL);
|
|
845
871
|
}
|
|
846
872
|
}
|
|
847
|
-
|
|
873
|
+
assert4(workerURL);
|
|
848
874
|
return workerURL;
|
|
849
875
|
}
|
|
850
876
|
function getLoadableWorkerURLFromURL(url) {
|
|
@@ -867,7 +893,7 @@ var __exports__ = (() => {
|
|
|
867
893
|
}`;
|
|
868
894
|
}
|
|
869
895
|
|
|
870
|
-
//
|
|
896
|
+
// src/worker-utils/lib/worker-utils/get-transfer-list.ts
|
|
871
897
|
function getTransferList(object, recursive = true, transfers) {
|
|
872
898
|
const transfersSet = transfers || /* @__PURE__ */ new Set();
|
|
873
899
|
if (!object) {
|
|
@@ -918,7 +944,7 @@ var __exports__ = (() => {
|
|
|
918
944
|
return clone;
|
|
919
945
|
}
|
|
920
946
|
|
|
921
|
-
//
|
|
947
|
+
// src/worker-utils/lib/worker-farm/worker-thread.ts
|
|
922
948
|
var NOOP = () => {
|
|
923
949
|
};
|
|
924
950
|
var WorkerThread = class {
|
|
@@ -940,7 +966,7 @@ var __exports__ = (() => {
|
|
|
940
966
|
}
|
|
941
967
|
constructor(props) {
|
|
942
968
|
const { name, source, url, getUrl, loadWorker } = props;
|
|
943
|
-
|
|
969
|
+
assert4(source || url || getUrl || loadWorker);
|
|
944
970
|
this.name = name;
|
|
945
971
|
this.source = source;
|
|
946
972
|
this.url = url;
|
|
@@ -1066,7 +1092,7 @@ var __exports__ = (() => {
|
|
|
1066
1092
|
}
|
|
1067
1093
|
};
|
|
1068
1094
|
|
|
1069
|
-
//
|
|
1095
|
+
// src/worker-utils/lib/worker-farm/worker-pool.ts
|
|
1070
1096
|
var WorkerPool = class {
|
|
1071
1097
|
name = "unnamed";
|
|
1072
1098
|
source;
|
|
@@ -1108,9 +1134,13 @@ var __exports__ = (() => {
|
|
|
1108
1134
|
* @note Can free up significant memory
|
|
1109
1135
|
*/
|
|
1110
1136
|
destroy(reason = new Error("Worker pool was destroyed")) {
|
|
1137
|
+
this.isDestroyed = true;
|
|
1111
1138
|
this.activeJobs.forEach((job) => job.abort(reason));
|
|
1112
1139
|
const queuedJobs = this.jobQueue.splice(0);
|
|
1113
|
-
queuedJobs.forEach((queuedJob) =>
|
|
1140
|
+
queuedJobs.forEach((queuedJob) => {
|
|
1141
|
+
queuedJob.removeAbortListener();
|
|
1142
|
+
queuedJob.onReject(reason);
|
|
1143
|
+
});
|
|
1114
1144
|
this.idleQueue.forEach((worker) => worker.destroy());
|
|
1115
1145
|
this.isDestroyed = true;
|
|
1116
1146
|
}
|
|
@@ -1132,12 +1162,33 @@ var __exports__ = (() => {
|
|
|
1132
1162
|
this.onDebug = props.onDebug;
|
|
1133
1163
|
}
|
|
1134
1164
|
}
|
|
1135
|
-
async startJob(name, onMessage2 = (job, type, data) => job.done(data), onError = (job, error) => job.error(error)) {
|
|
1165
|
+
async startJob(name, onMessage2 = (job, type, data) => job.done(data), onError = (job, error) => job.error(error), signal) {
|
|
1166
|
+
if (signal?.aborted) {
|
|
1167
|
+
throw signal.reason;
|
|
1168
|
+
}
|
|
1136
1169
|
if (this.isDestroyed) {
|
|
1137
1170
|
return Promise.reject(new Error("Worker pool was destroyed"));
|
|
1138
1171
|
}
|
|
1139
1172
|
const startPromise = new Promise((onStart, onReject) => {
|
|
1140
|
-
|
|
1173
|
+
const abortQueuedJob = () => {
|
|
1174
|
+
const index = this.jobQueue.indexOf(queuedJob);
|
|
1175
|
+
if (index >= 0) {
|
|
1176
|
+
this.jobQueue.splice(index, 1);
|
|
1177
|
+
queuedJob.removeAbortListener();
|
|
1178
|
+
onReject(signal?.reason);
|
|
1179
|
+
}
|
|
1180
|
+
};
|
|
1181
|
+
const queuedJob = {
|
|
1182
|
+
name,
|
|
1183
|
+
onMessage: onMessage2,
|
|
1184
|
+
onError,
|
|
1185
|
+
onStart,
|
|
1186
|
+
onReject,
|
|
1187
|
+
signal,
|
|
1188
|
+
removeAbortListener: () => signal?.removeEventListener("abort", abortQueuedJob)
|
|
1189
|
+
};
|
|
1190
|
+
this.jobQueue.push(queuedJob);
|
|
1191
|
+
signal?.addEventListener("abort", abortQueuedJob, { once: true });
|
|
1141
1192
|
return this;
|
|
1142
1193
|
});
|
|
1143
1194
|
this._startQueuedJob();
|
|
@@ -1152,7 +1203,16 @@ var __exports__ = (() => {
|
|
|
1152
1203
|
if (!this.jobQueue.length) {
|
|
1153
1204
|
return;
|
|
1154
1205
|
}
|
|
1155
|
-
|
|
1206
|
+
let workerThread;
|
|
1207
|
+
try {
|
|
1208
|
+
workerThread = this._getAvailableWorker();
|
|
1209
|
+
} catch (error) {
|
|
1210
|
+
const queuedJob2 = this.jobQueue.shift();
|
|
1211
|
+
queuedJob2?.removeAbortListener();
|
|
1212
|
+
queuedJob2?.onReject(error);
|
|
1213
|
+
void this._startQueuedJob();
|
|
1214
|
+
return;
|
|
1215
|
+
}
|
|
1156
1216
|
if (!workerThread) {
|
|
1157
1217
|
return;
|
|
1158
1218
|
}
|
|
@@ -1165,18 +1225,27 @@ var __exports__ = (() => {
|
|
|
1165
1225
|
backlog: this.jobQueue.length
|
|
1166
1226
|
});
|
|
1167
1227
|
const job = new WorkerJob(queuedJob.name, workerThread);
|
|
1228
|
+
queuedJob.removeAbortListener();
|
|
1229
|
+
const abortJob = () => job.abort(queuedJob.signal?.reason);
|
|
1230
|
+
queuedJob.signal?.addEventListener("abort", abortJob, { once: true });
|
|
1231
|
+
if (queuedJob.signal?.aborted) abortJob();
|
|
1168
1232
|
this.activeJobs.add(job);
|
|
1169
1233
|
workerThread.ref();
|
|
1170
|
-
workerThread.onMessage = (data) =>
|
|
1234
|
+
workerThread.onMessage = (data) => {
|
|
1235
|
+
if (job.isRunning) queuedJob.onMessage(job, data.type, data.payload);
|
|
1236
|
+
};
|
|
1171
1237
|
workerThread.onError = (error) => queuedJob.onError(job, error);
|
|
1172
1238
|
queuedJob.onStart(job);
|
|
1173
1239
|
try {
|
|
1174
1240
|
await job.result;
|
|
1175
1241
|
} catch {
|
|
1176
1242
|
} finally {
|
|
1243
|
+
queuedJob.signal?.removeEventListener("abort", abortJob);
|
|
1177
1244
|
this.activeJobs.delete(job);
|
|
1178
1245
|
this.returnWorkerToQueue(workerThread);
|
|
1179
1246
|
}
|
|
1247
|
+
} else {
|
|
1248
|
+
this.returnWorkerToQueue(workerThread);
|
|
1180
1249
|
}
|
|
1181
1250
|
}
|
|
1182
1251
|
/**
|
|
@@ -1218,22 +1287,27 @@ var __exports__ = (() => {
|
|
|
1218
1287
|
if (this.count < this._getMaxConcurrency()) {
|
|
1219
1288
|
this.count++;
|
|
1220
1289
|
const name = `${this.name.toLowerCase()} (#${this.count} of ${this.maxConcurrency})`;
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1290
|
+
try {
|
|
1291
|
+
return new WorkerThread({
|
|
1292
|
+
name,
|
|
1293
|
+
source: this.source,
|
|
1294
|
+
url: this.url,
|
|
1295
|
+
getUrl: this.getUrl,
|
|
1296
|
+
loadWorker: this.loadWorker
|
|
1297
|
+
});
|
|
1298
|
+
} catch (error) {
|
|
1299
|
+
this.count--;
|
|
1300
|
+
throw error;
|
|
1301
|
+
}
|
|
1228
1302
|
}
|
|
1229
1303
|
return null;
|
|
1230
1304
|
}
|
|
1231
1305
|
_getMaxConcurrency() {
|
|
1232
|
-
return
|
|
1306
|
+
return isMobile2 ? this.maxMobileConcurrency : this.maxConcurrency;
|
|
1233
1307
|
}
|
|
1234
1308
|
};
|
|
1235
1309
|
|
|
1236
|
-
//
|
|
1310
|
+
// src/worker-utils/lib/worker-farm/worker-farm.ts
|
|
1237
1311
|
var DEFAULT_PROPS = {
|
|
1238
1312
|
maxConcurrency: 3,
|
|
1239
1313
|
maxMobileConcurrency: 1,
|
|
@@ -1337,7 +1411,7 @@ var __exports__ = (() => {
|
|
|
1337
1411
|
return loadWorkerId;
|
|
1338
1412
|
}
|
|
1339
1413
|
|
|
1340
|
-
//
|
|
1414
|
+
// src/worker-utils/lib/async-queue/async-queue.ts
|
|
1341
1415
|
var AsyncQueue = class {
|
|
1342
1416
|
_values;
|
|
1343
1417
|
_settlers;
|
|
@@ -1407,34 +1481,36 @@ var __exports__ = (() => {
|
|
|
1407
1481
|
}
|
|
1408
1482
|
};
|
|
1409
1483
|
|
|
1410
|
-
//
|
|
1484
|
+
// src/worker-utils/lib/worker-api/get-worker-url.ts
|
|
1411
1485
|
var warnedWorkerVersionFallbacks = /* @__PURE__ */ new Set();
|
|
1412
1486
|
function getWorkerName(worker) {
|
|
1413
1487
|
const warning = worker.version !== VERSION3 ? ` (worker-utils@${VERSION3})` : "";
|
|
1414
1488
|
return `${worker.name}@${worker.version}${warning}`;
|
|
1415
1489
|
}
|
|
1416
1490
|
function getCustomWorkerURL(worker, options = {}) {
|
|
1417
|
-
const workerOptions = options[worker.id] || {};
|
|
1418
1491
|
const workerFile = isBrowser3 ? worker.workerFile || `${worker.id}-worker.js` : worker.workerNode || `${worker.id}-worker-node.js`;
|
|
1419
|
-
let url =
|
|
1420
|
-
if (!url && worker.id === "compression") {
|
|
1421
|
-
url = options.workerUrl;
|
|
1422
|
-
}
|
|
1492
|
+
let url = getConfiguredWorkerURL(worker, options);
|
|
1423
1493
|
const workerType = options._workerType || options?.core?._workerType;
|
|
1424
1494
|
if (!url && workerType === "test") {
|
|
1425
1495
|
if (isBrowser3) {
|
|
1426
1496
|
url = `modules/${worker.module}/dist/${workerFile}`;
|
|
1427
1497
|
} else {
|
|
1428
|
-
|
|
1498
|
+
const workerSourceDirectory = worker.module === "core" && worker.workerNode?.startsWith("worker-utils/") ? "worker-utils/workers" : "workers";
|
|
1499
|
+
const workerSourceNode = worker.workerSourceNode || `${workerSourceDirectory}/${worker.id}-worker-node.ts`;
|
|
1500
|
+
url = `modules/${worker.module}/src/${workerSourceNode}`;
|
|
1429
1501
|
}
|
|
1430
1502
|
}
|
|
1431
1503
|
return url || null;
|
|
1432
1504
|
}
|
|
1505
|
+
function getConfiguredWorkerURL(worker, options = {}) {
|
|
1506
|
+
const workerOptions = options[worker.id] || {};
|
|
1507
|
+
return workerOptions.workerUrl || (worker.id === "compression" ? options.workerUrl : null) || null;
|
|
1508
|
+
}
|
|
1433
1509
|
function getWorkerURL(worker, options = {}) {
|
|
1434
1510
|
const customWorkerUrl = getCustomWorkerURL(worker, options);
|
|
1435
1511
|
const descriptorWorkerUrl = typeof worker.worker === "string" ? worker.worker : null;
|
|
1436
1512
|
const url = customWorkerUrl || descriptorWorkerUrl || getDefaultWorkerURL(worker, true);
|
|
1437
|
-
|
|
1513
|
+
assert4(url);
|
|
1438
1514
|
return url;
|
|
1439
1515
|
}
|
|
1440
1516
|
function getDefaultWorkerURL(worker, warn = false) {
|
|
@@ -1464,7 +1540,7 @@ var __exports__ = (() => {
|
|
|
1464
1540
|
);
|
|
1465
1541
|
}
|
|
1466
1542
|
|
|
1467
|
-
//
|
|
1543
|
+
// src/worker-utils/lib/worker-api/process-on-worker.ts
|
|
1468
1544
|
function canProcessOnWorker(worker, options) {
|
|
1469
1545
|
if (!WorkerFarm.isSupported()) {
|
|
1470
1546
|
return false;
|
|
@@ -1474,6 +1550,13 @@ var __exports__ = (() => {
|
|
|
1474
1550
|
(worker.worker || worker.loadWorker || workerOptions?.workerUrl) && options?.worker
|
|
1475
1551
|
);
|
|
1476
1552
|
}
|
|
1553
|
+
function canProcessOnWorkerInBatches(worker, options = {}) {
|
|
1554
|
+
if (!canProcessOnWorker(worker, options)) return false;
|
|
1555
|
+
if (options.workerInBatches !== void 0) return options.workerInBatches;
|
|
1556
|
+
return Boolean(
|
|
1557
|
+
worker.workerInBatches && !options.source && !getConfiguredWorkerURL(worker, options)
|
|
1558
|
+
);
|
|
1559
|
+
}
|
|
1477
1560
|
async function processOnWorker(worker, data, options = {}, context = {}, jobContext = {}) {
|
|
1478
1561
|
throwIfAborted(options.signal);
|
|
1479
1562
|
const name = getWorkerName(worker);
|
|
@@ -1483,15 +1566,13 @@ var __exports__ = (() => {
|
|
|
1483
1566
|
const job = await workerPool.startJob(
|
|
1484
1567
|
jobName,
|
|
1485
1568
|
// eslint-disable-next-line
|
|
1486
|
-
onMessage.bind(null, context)
|
|
1569
|
+
onMessage.bind(null, context, options),
|
|
1570
|
+
void 0,
|
|
1571
|
+
options.signal
|
|
1487
1572
|
);
|
|
1488
|
-
const abortJob = () => job.abort(getAbortReason(options.signal));
|
|
1489
|
-
options.signal?.addEventListener("abort", abortJob, { once: true });
|
|
1490
|
-
if (options.signal?.aborted) {
|
|
1491
|
-
abortJob();
|
|
1492
|
-
}
|
|
1493
1573
|
try {
|
|
1494
|
-
|
|
1574
|
+
if (options.signal?.aborted) job.abort(getAbortReason(options.signal));
|
|
1575
|
+
const { signal: _signal, onProgress: _onProgress, ...workerOptions } = options;
|
|
1495
1576
|
const transferableOptions = getTransferListForWriter(workerOptions);
|
|
1496
1577
|
const transferableContext = getTransferListForWriter(jobContext);
|
|
1497
1578
|
if (job.isRunning) {
|
|
@@ -1503,8 +1584,9 @@ var __exports__ = (() => {
|
|
|
1503
1584
|
}
|
|
1504
1585
|
const result = await job.result;
|
|
1505
1586
|
return result.result;
|
|
1506
|
-
}
|
|
1507
|
-
|
|
1587
|
+
} catch (error) {
|
|
1588
|
+
job.abort(error);
|
|
1589
|
+
throw error;
|
|
1508
1590
|
}
|
|
1509
1591
|
}
|
|
1510
1592
|
function processOnWorkerInBatches(worker, input, options = {}, context = {}, jobContext = {}) {
|
|
@@ -1519,8 +1601,15 @@ var __exports__ = (() => {
|
|
|
1519
1601
|
const inputIterator = getAsyncIterator(input);
|
|
1520
1602
|
let outputFinished = false;
|
|
1521
1603
|
let inputFinished = false;
|
|
1604
|
+
let inputCleanupRequested = false;
|
|
1522
1605
|
let inputRequest = Promise.resolve();
|
|
1523
1606
|
const batchJobFailed = new Error("Worker batch job failed");
|
|
1607
|
+
const closeJobInput = () => {
|
|
1608
|
+
if (!inputFinished && !inputCleanupRequested) {
|
|
1609
|
+
inputCleanupRequested = true;
|
|
1610
|
+
closeInputIterator(inputIterator);
|
|
1611
|
+
}
|
|
1612
|
+
};
|
|
1524
1613
|
const finishOutput = () => {
|
|
1525
1614
|
if (!outputFinished) {
|
|
1526
1615
|
outputFinished = true;
|
|
@@ -1538,8 +1627,12 @@ var __exports__ = (() => {
|
|
|
1538
1627
|
options.jobName || worker.name,
|
|
1539
1628
|
(activeJob, type, payload) => {
|
|
1540
1629
|
switch (type) {
|
|
1630
|
+
case "progress":
|
|
1631
|
+
reportProgress(activeJob, options, payload);
|
|
1632
|
+
break;
|
|
1541
1633
|
case "input-request":
|
|
1542
1634
|
inputRequest = inputRequest.then(async () => {
|
|
1635
|
+
if (!activeJob.isRunning) return;
|
|
1543
1636
|
const nextBatch = await inputIterator.next();
|
|
1544
1637
|
if (!activeJob.isRunning) {
|
|
1545
1638
|
return;
|
|
@@ -1566,7 +1659,7 @@ var __exports__ = (() => {
|
|
|
1566
1659
|
break;
|
|
1567
1660
|
}
|
|
1568
1661
|
case "process":
|
|
1569
|
-
void onMessage(context, activeJob, type, payload);
|
|
1662
|
+
void onMessage(context, options, activeJob, type, payload);
|
|
1570
1663
|
break;
|
|
1571
1664
|
default: {
|
|
1572
1665
|
const error = new Error(`Unexpected worker batch message: ${type}`);
|
|
@@ -1575,16 +1668,19 @@ var __exports__ = (() => {
|
|
|
1575
1668
|
break;
|
|
1576
1669
|
}
|
|
1577
1670
|
}
|
|
1578
|
-
}
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
}
|
|
1585
|
-
void job.result.catch(
|
|
1671
|
+
},
|
|
1672
|
+
void 0,
|
|
1673
|
+
options.signal
|
|
1674
|
+
).catch((error) => {
|
|
1675
|
+
closeJobInput();
|
|
1676
|
+
throw error;
|
|
1677
|
+
});
|
|
1678
|
+
void job.result.catch((error) => {
|
|
1679
|
+
failOutput(error);
|
|
1680
|
+
closeJobInput();
|
|
1681
|
+
});
|
|
1586
1682
|
try {
|
|
1587
|
-
const { signal: _signal, ...workerOptions } = options;
|
|
1683
|
+
const { signal: _signal, onProgress: _onProgress, ...workerOptions } = options;
|
|
1588
1684
|
if (job.isRunning) {
|
|
1589
1685
|
job.postMessage("process-in-batches", {
|
|
1590
1686
|
options: getTransferListForWriter(workerOptions),
|
|
@@ -1606,13 +1702,10 @@ var __exports__ = (() => {
|
|
|
1606
1702
|
}
|
|
1607
1703
|
await job.result;
|
|
1608
1704
|
} finally {
|
|
1609
|
-
options.signal?.removeEventListener("abort", abortJob);
|
|
1610
1705
|
if (job.isRunning) {
|
|
1611
1706
|
job.abort(createAbortError2("Worker batch iterator was closed"));
|
|
1612
1707
|
}
|
|
1613
|
-
|
|
1614
|
-
closeInputIterator(inputIterator);
|
|
1615
|
-
}
|
|
1708
|
+
closeJobInput();
|
|
1616
1709
|
}
|
|
1617
1710
|
}
|
|
1618
1711
|
function throwIfAborted(signal) {
|
|
@@ -1622,7 +1715,7 @@ var __exports__ = (() => {
|
|
|
1622
1715
|
throw getAbortReason(signal);
|
|
1623
1716
|
}
|
|
1624
1717
|
function getAbortReason(signal) {
|
|
1625
|
-
return signal
|
|
1718
|
+
return signal ? signal.reason : createAbortError2("Worker job was aborted");
|
|
1626
1719
|
}
|
|
1627
1720
|
function createAbortError2(message) {
|
|
1628
1721
|
const error = new Error(message);
|
|
@@ -1661,8 +1754,11 @@ var __exports__ = (() => {
|
|
|
1661
1754
|
}
|
|
1662
1755
|
return { name, url: getWorkerURL(worker, options) };
|
|
1663
1756
|
}
|
|
1664
|
-
async function onMessage(context, job, type, payload) {
|
|
1757
|
+
async function onMessage(context, options, job, type, payload) {
|
|
1665
1758
|
switch (type) {
|
|
1759
|
+
case "progress":
|
|
1760
|
+
reportProgress(job, options, payload);
|
|
1761
|
+
break;
|
|
1666
1762
|
case "done":
|
|
1667
1763
|
job.done(payload);
|
|
1668
1764
|
break;
|
|
@@ -1670,13 +1766,18 @@ var __exports__ = (() => {
|
|
|
1670
1766
|
job.error(new Error(payload.error));
|
|
1671
1767
|
break;
|
|
1672
1768
|
case "process":
|
|
1673
|
-
const { id, input, options } = payload;
|
|
1769
|
+
const { id, input, options: processOptions } = payload;
|
|
1674
1770
|
try {
|
|
1675
1771
|
if (!context.process) {
|
|
1676
1772
|
job.postMessage("error", { id, error: "Worker not set up to process on main thread" });
|
|
1677
1773
|
return;
|
|
1678
1774
|
}
|
|
1679
|
-
const result = await context.process(
|
|
1775
|
+
const result = await context.process(
|
|
1776
|
+
input,
|
|
1777
|
+
{ ...processOptions, signal: options.signal, onProgress: options.onProgress },
|
|
1778
|
+
void 0,
|
|
1779
|
+
payload.context || {}
|
|
1780
|
+
);
|
|
1680
1781
|
job.postMessage("done", { id, result });
|
|
1681
1782
|
} catch (error) {
|
|
1682
1783
|
const message = error instanceof Error ? error.message : "unknown error";
|
|
@@ -1687,10 +1788,18 @@ var __exports__ = (() => {
|
|
|
1687
1788
|
console.warn(`process-on-worker: unknown message ${type}`);
|
|
1688
1789
|
}
|
|
1689
1790
|
}
|
|
1791
|
+
function reportProgress(job, options, payload) {
|
|
1792
|
+
if (!job.isRunning || !payload.progress) return;
|
|
1793
|
+
try {
|
|
1794
|
+
options.onProgress?.(payload.progress);
|
|
1795
|
+
} catch (error) {
|
|
1796
|
+
job.abort(error);
|
|
1797
|
+
}
|
|
1798
|
+
}
|
|
1690
1799
|
|
|
1691
|
-
//
|
|
1800
|
+
// src/worker-utils/lib/worker-api/validate-worker-version.ts
|
|
1692
1801
|
function validateWorkerVersion(worker, coreVersion = VERSION3) {
|
|
1693
|
-
|
|
1802
|
+
assert4(worker, "no worker provided");
|
|
1694
1803
|
const workerVersion = worker.version;
|
|
1695
1804
|
if (!coreVersion || !workerVersion) {
|
|
1696
1805
|
return false;
|
|
@@ -1698,7 +1807,7 @@ var __exports__ = (() => {
|
|
|
1698
1807
|
return true;
|
|
1699
1808
|
}
|
|
1700
1809
|
|
|
1701
|
-
//
|
|
1810
|
+
// src/loader-utils/lib/worker-loader-utils/parse-with-worker.ts
|
|
1702
1811
|
function canParseWithWorker(loader, options) {
|
|
1703
1812
|
const workerUrl = options?.[loader.id]?.workerUrl;
|
|
1704
1813
|
if (options?.core?.worker === false || !(loader.worker || loader.loadWorker || workerUrl))
|
|
@@ -1720,6 +1829,15 @@ var __exports__ = (() => {
|
|
|
1720
1829
|
}
|
|
1721
1830
|
return Boolean(canProcessOnWorker(loader, workerOptions));
|
|
1722
1831
|
}
|
|
1832
|
+
function canParseWithWorkerInBatches(loader, options) {
|
|
1833
|
+
const parquetOptions = options?.parquet;
|
|
1834
|
+
if (loader.id === "parquet" && typeof parquetOptions?.keyRetriever === "function") {
|
|
1835
|
+
return false;
|
|
1836
|
+
}
|
|
1837
|
+
return Boolean(
|
|
1838
|
+
loader.workerInBatches && canParseWithWorker(loader, options) && canProcessOnWorkerInBatches(loader, getWorkerOptions(options))
|
|
1839
|
+
);
|
|
1840
|
+
}
|
|
1723
1841
|
function shouldParseWithWorker(loader, data, options, context, estimateLoader = loader) {
|
|
1724
1842
|
if (!canParseWithWorker(loader, options)) {
|
|
1725
1843
|
return false;
|
|
@@ -1738,11 +1856,15 @@ var __exports__ = (() => {
|
|
|
1738
1856
|
}
|
|
1739
1857
|
}
|
|
1740
1858
|
async function parseWithWorker(loader, data, options, context, parseOnMainThread, signal) {
|
|
1741
|
-
const workerSignal = signal || getWorkerAbortSignal(options);
|
|
1859
|
+
const workerSignal = signal || getWorkerAbortSignal(options) || context?.signal;
|
|
1742
1860
|
const result = await processOnWorker(
|
|
1743
1861
|
loader,
|
|
1744
1862
|
data,
|
|
1745
|
-
{
|
|
1863
|
+
{
|
|
1864
|
+
...getWorkerOptions(options, loader),
|
|
1865
|
+
signal: workerSignal,
|
|
1866
|
+
onProgress: options?.onProgress || context?.reportProgress
|
|
1867
|
+
},
|
|
1746
1868
|
{
|
|
1747
1869
|
process: async (input, processOptions, _workerContext, parseContext) => {
|
|
1748
1870
|
if (!parseOnMainThread) {
|
|
@@ -1764,11 +1886,15 @@ var __exports__ = (() => {
|
|
|
1764
1886
|
return isLoaderWithWorkerResultDeserializer(loader) ? loader.deserializeWorkerResult(result, options, context) : result;
|
|
1765
1887
|
}
|
|
1766
1888
|
async function* parseWithWorkerInBatches(loader, inputIterator, options, context, parseOnMainThread, signal) {
|
|
1767
|
-
const workerSignal = signal || getWorkerAbortSignal(options);
|
|
1889
|
+
const workerSignal = signal || getWorkerAbortSignal(options) || context?.signal;
|
|
1768
1890
|
const outputIterator = processOnWorkerInBatches(
|
|
1769
1891
|
loader,
|
|
1770
1892
|
inputIterator,
|
|
1771
|
-
{
|
|
1893
|
+
{
|
|
1894
|
+
...getWorkerOptions(options, loader),
|
|
1895
|
+
signal: workerSignal,
|
|
1896
|
+
onProgress: options?.onProgress || context?.reportProgress
|
|
1897
|
+
},
|
|
1772
1898
|
{
|
|
1773
1899
|
process: async (input, processOptions, _workerContext, parseContext) => {
|
|
1774
1900
|
if (!parseOnMainThread) {
|
|
@@ -1792,6 +1918,7 @@ var __exports__ = (() => {
|
|
|
1792
1918
|
}
|
|
1793
1919
|
}
|
|
1794
1920
|
function getWorkerAbortSignal(options) {
|
|
1921
|
+
if (options?.signal) return options.signal;
|
|
1795
1922
|
const parquetSignal = options?.parquet?.signal;
|
|
1796
1923
|
if (typeof AbortSignal !== "undefined" && parquetSignal instanceof AbortSignal) {
|
|
1797
1924
|
return parquetSignal;
|
|
@@ -1835,10 +1962,15 @@ var __exports__ = (() => {
|
|
|
1835
1962
|
function getWorkerOptions(options = {}, loader) {
|
|
1836
1963
|
const optionsToSerialize = {
|
|
1837
1964
|
...options,
|
|
1965
|
+
signal: void 0,
|
|
1966
|
+
onProgress: void 0,
|
|
1838
1967
|
...options.core ? { core: { ...options.core, authentications: void 0 } } : {}
|
|
1839
1968
|
};
|
|
1840
1969
|
const serializedOptions = JSON.parse(
|
|
1841
|
-
JSON.stringify(optionsToSerialize, (_key, value) =>
|
|
1970
|
+
JSON.stringify(optionsToSerialize, (_key, value) => {
|
|
1971
|
+
if (typeof AbortSignal !== "undefined" && value instanceof AbortSignal) return void 0;
|
|
1972
|
+
return typeof value === "bigint" ? null : value;
|
|
1973
|
+
})
|
|
1842
1974
|
);
|
|
1843
1975
|
restoreBigIntOptions(optionsToSerialize, serializedOptions);
|
|
1844
1976
|
const workerOptions = {
|
|
@@ -1865,7 +1997,17 @@ var __exports__ = (() => {
|
|
|
1865
1997
|
if (!context) {
|
|
1866
1998
|
return {};
|
|
1867
1999
|
}
|
|
1868
|
-
const {
|
|
2000
|
+
const {
|
|
2001
|
+
fetch: fetch2,
|
|
2002
|
+
loaders,
|
|
2003
|
+
coreApi: coreApi2,
|
|
2004
|
+
signal,
|
|
2005
|
+
reportProgress: reportProgress2,
|
|
2006
|
+
_parse,
|
|
2007
|
+
_parseSync,
|
|
2008
|
+
_parseInBatches,
|
|
2009
|
+
...serializableContext
|
|
2010
|
+
} = context;
|
|
1869
2011
|
return JSON.parse(JSON.stringify(serializableContext));
|
|
1870
2012
|
}
|
|
1871
2013
|
function shouldParseCSVWithWorker(options) {
|
|
@@ -1876,7 +2018,7 @@ var __exports__ = (() => {
|
|
|
1876
2018
|
return typeof loader.deserializeWorkerResult === "function";
|
|
1877
2019
|
}
|
|
1878
2020
|
|
|
1879
|
-
//
|
|
2021
|
+
// src/loader-utils/lib/worker-loader-utils/encode-with-worker.ts
|
|
1880
2022
|
function canEncodeWithWorker(writer, options) {
|
|
1881
2023
|
if (!WorkerFarm.isSupported()) {
|
|
1882
2024
|
return false;
|
|
@@ -1889,7 +2031,7 @@ var __exports__ = (() => {
|
|
|
1889
2031
|
return Boolean(writer.worker && useWorkers);
|
|
1890
2032
|
}
|
|
1891
2033
|
|
|
1892
|
-
//
|
|
2034
|
+
// src/loader-utils/lib/binary-utils/array-buffer-utils.ts
|
|
1893
2035
|
function compareArrayBuffers(arrayBuffer1, arrayBuffer2, byteLength) {
|
|
1894
2036
|
byteLength = byteLength || arrayBuffer1.byteLength;
|
|
1895
2037
|
if (arrayBuffer1.byteLength < byteLength || arrayBuffer2.byteLength < byteLength) {
|
|
@@ -1921,7 +2063,7 @@ var __exports__ = (() => {
|
|
|
1921
2063
|
return result.buffer;
|
|
1922
2064
|
}
|
|
1923
2065
|
|
|
1924
|
-
//
|
|
2066
|
+
// src/loader-utils/lib/binary-utils/encode-array-buffer-to-base64.ts
|
|
1925
2067
|
function encodeArrayBufferToBase64(arrayBuffer) {
|
|
1926
2068
|
const bytes = new Uint8Array(arrayBuffer);
|
|
1927
2069
|
const encodedChunks = [];
|
|
@@ -1934,7 +2076,7 @@ var __exports__ = (() => {
|
|
|
1934
2076
|
return encodedChunks.join("");
|
|
1935
2077
|
}
|
|
1936
2078
|
|
|
1937
|
-
//
|
|
2079
|
+
// src/loader-utils/lib/iterators/text-iterators.ts
|
|
1938
2080
|
async function* makeTextDecoderIterator(arrayBufferIterator, options = {}) {
|
|
1939
2081
|
const textDecoder = new TextDecoder(void 0, options);
|
|
1940
2082
|
for await (const arrayBuffer of arrayBufferIterator) {
|
|
@@ -1972,7 +2114,7 @@ var __exports__ = (() => {
|
|
|
1972
2114
|
}
|
|
1973
2115
|
}
|
|
1974
2116
|
|
|
1975
|
-
//
|
|
2117
|
+
// src/loader-utils/lib/iterators/async-iteration.ts
|
|
1976
2118
|
async function forEach(iterable, visitor) {
|
|
1977
2119
|
const iterator = toAsyncIterator(iterable);
|
|
1978
2120
|
while (true) {
|
|
@@ -2042,7 +2184,7 @@ var __exports__ = (() => {
|
|
|
2042
2184
|
};
|
|
2043
2185
|
}
|
|
2044
2186
|
|
|
2045
|
-
// ../../node_modules
|
|
2187
|
+
// ../../node_modules/probe.gl/dist/stats/utils/hi-res-timestamp.js
|
|
2046
2188
|
function getHiResTimestamp2() {
|
|
2047
2189
|
let timestamp;
|
|
2048
2190
|
if (typeof window !== "undefined" && window.performance) {
|
|
@@ -2056,7 +2198,7 @@ var __exports__ = (() => {
|
|
|
2056
2198
|
return timestamp;
|
|
2057
2199
|
}
|
|
2058
2200
|
|
|
2059
|
-
// ../../node_modules
|
|
2201
|
+
// ../../node_modules/probe.gl/dist/stats/lib/stat.js
|
|
2060
2202
|
var Stat = class {
|
|
2061
2203
|
constructor(name, type) {
|
|
2062
2204
|
this.sampleSize = 1;
|
|
@@ -2177,7 +2319,7 @@ var __exports__ = (() => {
|
|
|
2177
2319
|
}
|
|
2178
2320
|
};
|
|
2179
2321
|
|
|
2180
|
-
// ../../node_modules
|
|
2322
|
+
// ../../node_modules/probe.gl/dist/stats/lib/stats.js
|
|
2181
2323
|
var Stats = class {
|
|
2182
2324
|
constructor(options) {
|
|
2183
2325
|
this.stats = {};
|
|
@@ -2235,7 +2377,7 @@ var __exports__ = (() => {
|
|
|
2235
2377
|
}
|
|
2236
2378
|
};
|
|
2237
2379
|
|
|
2238
|
-
//
|
|
2380
|
+
// src/loader-utils/lib/request-utils/request-scheduler.ts
|
|
2239
2381
|
var STAT_QUEUED_REQUESTS = "Queued Requests";
|
|
2240
2382
|
var STAT_ACTIVE_REQUESTS = "Active Requests";
|
|
2241
2383
|
var STAT_CANCELLED_REQUESTS = "Cancelled Requests";
|
|
@@ -2390,7 +2532,7 @@ var __exports__ = (() => {
|
|
|
2390
2532
|
}
|
|
2391
2533
|
};
|
|
2392
2534
|
|
|
2393
|
-
//
|
|
2535
|
+
// src/loader-utils/lib/request-utils/authentication.ts
|
|
2394
2536
|
function resolveCredentials(credentials, authentications = []) {
|
|
2395
2537
|
if (credentials.every(isAuthentication)) return credentials;
|
|
2396
2538
|
return credentials.map((credential, index) => {
|
|
@@ -2440,7 +2582,7 @@ var __exports__ = (() => {
|
|
|
2440
2582
|
return (credential.type === "header" || credential.type === "query-parameter") && typeof credential.name === "string" && (typeof credential.token === "string" || typeof credential.token === "function") && Array.isArray(credential.refreshStatusCodes);
|
|
2441
2583
|
}
|
|
2442
2584
|
|
|
2443
|
-
//
|
|
2585
|
+
// src/loader-utils/lib/request-utils/request-credentials.ts
|
|
2444
2586
|
var AUTHENTICATED_FETCH = /* @__PURE__ */ Symbol("loaders.gl.authenticated-fetch");
|
|
2445
2587
|
var refreshPromises = /* @__PURE__ */ new WeakMap();
|
|
2446
2588
|
function createAuthenticatedFetch(options) {
|
|
@@ -2473,7 +2615,7 @@ var __exports__ = (() => {
|
|
|
2473
2615
|
for (const credential of requestCredentials) normalizeRequestOrigins(credential.origins);
|
|
2474
2616
|
const authenticatedFetch = async (url, requestOptions = {}) => {
|
|
2475
2617
|
requestOptions = mergeFetchOptions(fetchOptions, requestOptions);
|
|
2476
|
-
|
|
2618
|
+
requestOptions.signal?.throwIfAborted();
|
|
2477
2619
|
if (!credentials.length) return baseFetch(url, requestOptions);
|
|
2478
2620
|
const resolvedURL = parseHTTPURL(url);
|
|
2479
2621
|
const authorization = resolvedURL ? await authorizeRequest(resolvedURL, requestOptions, tokenCredentials) : { url, options: requestOptions, credentials: [] };
|
|
@@ -2489,7 +2631,7 @@ var __exports__ = (() => {
|
|
|
2489
2631
|
(credential) => credential.refreshStatusCodes?.includes(response.status)
|
|
2490
2632
|
);
|
|
2491
2633
|
if (!refreshableCredentials.length && !shouldRetrySignature) return response;
|
|
2492
|
-
|
|
2634
|
+
requestOptions.signal?.throwIfAborted();
|
|
2493
2635
|
const refreshedTokens = /* @__PURE__ */ new Map();
|
|
2494
2636
|
await Promise.all(
|
|
2495
2637
|
refreshableCredentials.map(async ({ credential }) => {
|
|
@@ -2500,7 +2642,7 @@ var __exports__ = (() => {
|
|
|
2500
2642
|
if (!refreshedTokens.size && !shouldRetrySignature) return response;
|
|
2501
2643
|
await response.body?.cancel().catch(() => {
|
|
2502
2644
|
});
|
|
2503
|
-
|
|
2645
|
+
requestOptions.signal?.throwIfAborted();
|
|
2504
2646
|
const replayAuthorization = resolvedURL ? await authorizeRequest(
|
|
2505
2647
|
resolvedURL,
|
|
2506
2648
|
requestOptions,
|
|
@@ -2541,7 +2683,7 @@ var __exports__ = (() => {
|
|
|
2541
2683
|
for (const credential of credentials) {
|
|
2542
2684
|
const origin = getRequestOrigin(request.url);
|
|
2543
2685
|
if (!origin || !normalizeRequestOrigins(credential.origins).includes(origin)) continue;
|
|
2544
|
-
|
|
2686
|
+
signal?.throwIfAborted();
|
|
2545
2687
|
const authenticatedRequest = await credential.authenticate({
|
|
2546
2688
|
url: request.url,
|
|
2547
2689
|
options: { ...request.options, headers: new Headers(request.options.headers) },
|
|
@@ -2557,7 +2699,7 @@ var __exports__ = (() => {
|
|
|
2557
2699
|
};
|
|
2558
2700
|
appliedCredentials.push(credential);
|
|
2559
2701
|
}
|
|
2560
|
-
|
|
2702
|
+
signal?.throwIfAborted();
|
|
2561
2703
|
return { ...request, credentials: appliedCredentials };
|
|
2562
2704
|
}
|
|
2563
2705
|
function getRequestOrigin(url) {
|
|
@@ -2647,11 +2789,8 @@ var __exports__ = (() => {
|
|
|
2647
2789
|
if (!["GET", "HEAD", "OPTIONS", "PUT", "DELETE"].includes(method)) return false;
|
|
2648
2790
|
return !(options.body && typeof ReadableStream !== "undefined" && options.body instanceof ReadableStream);
|
|
2649
2791
|
}
|
|
2650
|
-
function createAbortError3() {
|
|
2651
|
-
return new DOMException("The operation was aborted.", "AbortError");
|
|
2652
|
-
}
|
|
2653
2792
|
|
|
2654
|
-
//
|
|
2793
|
+
// src/loader-utils/lib/path-utils/file-aliases.ts
|
|
2655
2794
|
var pathPrefix = "";
|
|
2656
2795
|
var fileAliases = {};
|
|
2657
2796
|
function setPathPrefix(prefix) {
|
|
@@ -2673,7 +2812,7 @@ var __exports__ = (() => {
|
|
|
2673
2812
|
return filename2;
|
|
2674
2813
|
}
|
|
2675
2814
|
|
|
2676
|
-
//
|
|
2815
|
+
// src/loader-utils/lib/path-utils/path.ts
|
|
2677
2816
|
var path_exports = {};
|
|
2678
2817
|
__export(path_exports, {
|
|
2679
2818
|
dirname: () => dirname,
|
|
@@ -2682,7 +2821,7 @@ var __exports__ = (() => {
|
|
|
2682
2821
|
resolve: () => resolve
|
|
2683
2822
|
});
|
|
2684
2823
|
|
|
2685
|
-
//
|
|
2824
|
+
// src/loader-utils/lib/path-utils/get-cwd.ts
|
|
2686
2825
|
function getCWD() {
|
|
2687
2826
|
if (typeof process !== "undefined" && typeof process.cwd !== "undefined") {
|
|
2688
2827
|
return process.cwd();
|
|
@@ -2691,7 +2830,7 @@ var __exports__ = (() => {
|
|
|
2691
2830
|
return pathname?.slice(0, pathname.lastIndexOf("/") + 1) || "";
|
|
2692
2831
|
}
|
|
2693
2832
|
|
|
2694
|
-
//
|
|
2833
|
+
// src/loader-utils/lib/path-utils/path.ts
|
|
2695
2834
|
function filename(url) {
|
|
2696
2835
|
const slashIndex = url ? url.lastIndexOf("/") : -1;
|
|
2697
2836
|
return slashIndex >= 0 ? url.substr(slashIndex + 1) : url;
|
|
@@ -2816,7 +2955,7 @@ var __exports__ = (() => {
|
|
|
2816
2955
|
return res;
|
|
2817
2956
|
}
|
|
2818
2957
|
|
|
2819
|
-
//
|
|
2958
|
+
// src/loader-utils/json-loader.ts
|
|
2820
2959
|
var VERSION4 = typeof __VERSION__ !== "undefined" ? __VERSION__ : "latest";
|
|
2821
2960
|
var JSONLoader = {
|
|
2822
2961
|
dataType: null,
|
|
@@ -2839,12 +2978,12 @@ var __exports__ = (() => {
|
|
|
2839
2978
|
return JSON.parse(text);
|
|
2840
2979
|
}
|
|
2841
2980
|
|
|
2842
|
-
//
|
|
2981
|
+
// src/loader-utils/lib/node/buffer.browser.ts
|
|
2843
2982
|
function toArrayBuffer(buffer) {
|
|
2844
2983
|
return buffer;
|
|
2845
2984
|
}
|
|
2846
2985
|
|
|
2847
|
-
//
|
|
2986
|
+
// src/loader-utils/lib/binary-utils/memory-conversion-utils.ts
|
|
2848
2987
|
function isBuffer(value) {
|
|
2849
2988
|
return value && typeof value === "object" && value.isBuffer;
|
|
2850
2989
|
}
|
|
@@ -2901,7 +3040,7 @@ var __exports__ = (() => {
|
|
|
2901
3040
|
return new Uint8Array(data);
|
|
2902
3041
|
}
|
|
2903
3042
|
|
|
2904
|
-
//
|
|
3043
|
+
// src/loader-utils/lib/files/blob-file.ts
|
|
2905
3044
|
var BlobFile = class {
|
|
2906
3045
|
handle;
|
|
2907
3046
|
size;
|
|
@@ -2934,7 +3073,7 @@ var __exports__ = (() => {
|
|
|
2934
3073
|
}
|
|
2935
3074
|
};
|
|
2936
3075
|
|
|
2937
|
-
//
|
|
3076
|
+
// src/loader-utils/lib/files/node-file-facade.ts
|
|
2938
3077
|
var NOT_IMPLEMENTED = new Error("Not implemented");
|
|
2939
3078
|
var NodeFileFacade = class {
|
|
2940
3079
|
handle;
|
|
@@ -2948,7 +3087,9 @@ var __exports__ = (() => {
|
|
|
2948
3087
|
if (isBrowser) {
|
|
2949
3088
|
throw new Error("Can't instantiate NodeFile in browser.");
|
|
2950
3089
|
}
|
|
2951
|
-
throw new Error(
|
|
3090
|
+
throw new Error(
|
|
3091
|
+
"Can't instantiate NodeFile. Make sure to import @loaders.gl/core/polyfills first."
|
|
3092
|
+
);
|
|
2952
3093
|
}
|
|
2953
3094
|
/** Read data */
|
|
2954
3095
|
async read(start, length) {
|
|
@@ -2975,7 +3116,7 @@ var __exports__ = (() => {
|
|
|
2975
3116
|
}
|
|
2976
3117
|
};
|
|
2977
3118
|
|
|
2978
|
-
//
|
|
3119
|
+
// src/loader-utils/source-types.ts
|
|
2979
3120
|
function isSourceLoader(loader) {
|
|
2980
3121
|
return Boolean(loader && typeof loader === "object" && "createDataSource" in loader);
|
|
2981
3122
|
}
|
|
@@ -3225,7 +3366,7 @@ var __exports__ = (() => {
|
|
|
3225
3366
|
};
|
|
3226
3367
|
}
|
|
3227
3368
|
};
|
|
3228
|
-
var
|
|
3369
|
+
var ConsoleLog2 = class {
|
|
3229
3370
|
/** Console-like object used for message output. */
|
|
3230
3371
|
console;
|
|
3231
3372
|
/** Messages already emitted through `once`. */
|
|
@@ -3274,7 +3415,7 @@ var __exports__ = (() => {
|
|
|
3274
3415
|
ignoreRegisteredLoaders: void 0,
|
|
3275
3416
|
nothrow: false,
|
|
3276
3417
|
shape: void 0,
|
|
3277
|
-
log: new
|
|
3418
|
+
log: new ConsoleLog2(),
|
|
3278
3419
|
// A probe.gl compatible (`log.log()()` syntax) that just logs to console
|
|
3279
3420
|
useLocalLibraries: false,
|
|
3280
3421
|
subloaders: void 0,
|
|
@@ -3282,6 +3423,7 @@ var __exports__ = (() => {
|
|
|
3282
3423
|
worker: true,
|
|
3283
3424
|
// By default, use worker if provided by loader.
|
|
3284
3425
|
workerThreshold: 0.1,
|
|
3426
|
+
workerInBatches: void 0,
|
|
3285
3427
|
maxConcurrency: 3,
|
|
3286
3428
|
// How many worker instances should be created for each loader.
|
|
3287
3429
|
maxMobileConcurrency: 1,
|
|
@@ -3457,7 +3599,7 @@ var __exports__ = (() => {
|
|
|
3457
3599
|
const prefix = id ? `${id}.` : "";
|
|
3458
3600
|
for (const key in options) {
|
|
3459
3601
|
const isSubOptions = !id && isObject(options[key]);
|
|
3460
|
-
const isBaseUriOption =
|
|
3602
|
+
const isBaseUriOption = !id && ["baseUri", "signal", "onProgress"].includes(key);
|
|
3461
3603
|
const isWorkerUrlOption = key === "workerUrl" && id;
|
|
3462
3604
|
if (!(key in defaultOptions) && !isBaseUriOption && !isWorkerUrlOption) {
|
|
3463
3605
|
if (key in deprecatedOptions) {
|
|
@@ -3763,7 +3905,7 @@ var __exports__ = (() => {
|
|
|
3763
3905
|
reason = reason || (loader ? `matched fallback MIME type ${type}` : "");
|
|
3764
3906
|
}
|
|
3765
3907
|
if (reason) {
|
|
3766
|
-
|
|
3908
|
+
log2.log(1, `selectLoader selected ${loader?.name}: ${reason}.`);
|
|
3767
3909
|
}
|
|
3768
3910
|
return loader;
|
|
3769
3911
|
}
|
|
@@ -4171,11 +4313,13 @@ var __exports__ = (() => {
|
|
|
4171
4313
|
} else {
|
|
4172
4314
|
fetchFunction = fetchFile;
|
|
4173
4315
|
}
|
|
4316
|
+
const signal = loaderOptions.signal || context?.signal;
|
|
4317
|
+
const requestOptions = isObject(fetchOption) ? fetchOption : void 0;
|
|
4174
4318
|
return createAuthenticatedFetch({
|
|
4175
4319
|
fetch: fetchFunction,
|
|
4176
4320
|
credentials: loaderOptions.core?.credentials || [],
|
|
4177
4321
|
authentications: loaderOptions.core?.authentications,
|
|
4178
|
-
fetchOptions:
|
|
4322
|
+
fetchOptions: signal ? { ...requestOptions, signal } : requestOptions
|
|
4179
4323
|
});
|
|
4180
4324
|
}
|
|
4181
4325
|
|
|
@@ -4398,6 +4542,7 @@ var __exports__ = (() => {
|
|
|
4398
4542
|
loaders = void 0;
|
|
4399
4543
|
}
|
|
4400
4544
|
options = options || {};
|
|
4545
|
+
(options.signal || context?.signal)?.throwIfAborted();
|
|
4401
4546
|
const url = file.url || "";
|
|
4402
4547
|
const typedLoaders = loaders;
|
|
4403
4548
|
const candidateLoaders = getLoadersFromContext(typedLoaders, context);
|
|
@@ -4426,6 +4571,7 @@ var __exports__ = (() => {
|
|
|
4426
4571
|
return await parseFileWithLoader(loader, file, strictOptions, context);
|
|
4427
4572
|
}
|
|
4428
4573
|
async function parseFileWithLoader(loader, file, options, context) {
|
|
4574
|
+
(options.signal || context.signal)?.throwIfAborted();
|
|
4429
4575
|
validateWorkerVersion(loader);
|
|
4430
4576
|
options = mergeOptions(loader.options, options);
|
|
4431
4577
|
const loaderWithParser = await getLoaderImplementation(loader, options, context.url);
|
|
@@ -4499,48 +4645,6 @@ var __exports__ = (() => {
|
|
|
4499
4645
|
);
|
|
4500
4646
|
}
|
|
4501
4647
|
|
|
4502
|
-
// ../schema-utils/src/lib/table/tables/table-accessors.ts
|
|
4503
|
-
function isTable(table) {
|
|
4504
|
-
const shape = typeof table === "object" && table?.shape;
|
|
4505
|
-
switch (shape) {
|
|
4506
|
-
case "array-row-table":
|
|
4507
|
-
case "object-row-table":
|
|
4508
|
-
return Array.isArray(table.data);
|
|
4509
|
-
case "geojson-table":
|
|
4510
|
-
return Array.isArray(table.features);
|
|
4511
|
-
case "columnar-table":
|
|
4512
|
-
return Boolean(table.data && typeof table.data === "object");
|
|
4513
|
-
case "arrow-table":
|
|
4514
|
-
return Boolean(table?.data?.numRows !== void 0);
|
|
4515
|
-
default:
|
|
4516
|
-
return false;
|
|
4517
|
-
}
|
|
4518
|
-
}
|
|
4519
|
-
function getTableLength(table) {
|
|
4520
|
-
switch (table.shape) {
|
|
4521
|
-
case "array-row-table":
|
|
4522
|
-
case "object-row-table":
|
|
4523
|
-
return table.data.length;
|
|
4524
|
-
case "geojson-table":
|
|
4525
|
-
return table.features.length;
|
|
4526
|
-
case "arrow-table":
|
|
4527
|
-
const arrowTable = table.data;
|
|
4528
|
-
return arrowTable.numRows;
|
|
4529
|
-
case "columnar-table":
|
|
4530
|
-
for (const column of Object.values(table.data)) {
|
|
4531
|
-
return column.length || 0;
|
|
4532
|
-
}
|
|
4533
|
-
return 0;
|
|
4534
|
-
default:
|
|
4535
|
-
throw new Error("table");
|
|
4536
|
-
}
|
|
4537
|
-
}
|
|
4538
|
-
|
|
4539
|
-
// ../schema-utils/src/lib/table/batches/make-table-batch-iterator.ts
|
|
4540
|
-
function makeBatchFromTable(table) {
|
|
4541
|
-
return { ...table, length: getTableLength(table), batchType: "data" };
|
|
4542
|
-
}
|
|
4543
|
-
|
|
4544
4648
|
// src/lib/api/parse-in-batches.ts
|
|
4545
4649
|
async function parseInBatches(data, loaders, options, context) {
|
|
4546
4650
|
const loaderArray = Array.isArray(loaders) ? loaders : void 0;
|
|
@@ -4549,8 +4653,10 @@ var __exports__ = (() => {
|
|
|
4549
4653
|
options = loaders;
|
|
4550
4654
|
loaders = void 0;
|
|
4551
4655
|
}
|
|
4656
|
+
(options?.signal || context?.signal)?.throwIfAborted();
|
|
4552
4657
|
data = await data;
|
|
4553
4658
|
options = options || {};
|
|
4659
|
+
(options.signal || context?.signal)?.throwIfAborted();
|
|
4554
4660
|
const url = getResourceUrl(data);
|
|
4555
4661
|
const loader = await selectLoader(data, loaders, options);
|
|
4556
4662
|
if (!loader) {
|
|
@@ -4600,7 +4706,7 @@ var __exports__ = (() => {
|
|
|
4600
4706
|
options?.core?.transforms || []
|
|
4601
4707
|
);
|
|
4602
4708
|
if (loader.parseInBatches) {
|
|
4603
|
-
if (
|
|
4709
|
+
if (canParseWithWorkerInBatches(loader, options)) {
|
|
4604
4710
|
return parseWithWorkerInBatches(loader, transformedIterator, options, context, parse);
|
|
4605
4711
|
}
|
|
4606
4712
|
return loader.parseInBatches(transformedIterator, options, context);
|
|
@@ -4620,7 +4726,7 @@ var __exports__ = (() => {
|
|
|
4620
4726
|
yield batch;
|
|
4621
4727
|
}
|
|
4622
4728
|
function convertDataToBatch(parsedData, loader) {
|
|
4623
|
-
const batch = isTable(parsedData) ?
|
|
4729
|
+
const batch = isTable(parsedData) ? { ...parsedData, length: getTableLength(parsedData), batchType: "data" } : {
|
|
4624
4730
|
shape: "unknown",
|
|
4625
4731
|
batchType: "data",
|
|
4626
4732
|
data: parsedData,
|
|
@@ -4629,6 +4735,41 @@ var __exports__ = (() => {
|
|
|
4629
4735
|
batch.mimeType = loader.mimeTypes[0];
|
|
4630
4736
|
return batch;
|
|
4631
4737
|
}
|
|
4738
|
+
function isTable(value) {
|
|
4739
|
+
if (!value || typeof value !== "object" || !("shape" in value)) {
|
|
4740
|
+
return false;
|
|
4741
|
+
}
|
|
4742
|
+
const table = value;
|
|
4743
|
+
switch (table.shape) {
|
|
4744
|
+
case "array-row-table":
|
|
4745
|
+
case "object-row-table":
|
|
4746
|
+
return Array.isArray(table.data);
|
|
4747
|
+
case "geojson-table":
|
|
4748
|
+
return Array.isArray(table.features);
|
|
4749
|
+
case "columnar-table":
|
|
4750
|
+
return Boolean(table.data && typeof table.data === "object");
|
|
4751
|
+
case "arrow-table":
|
|
4752
|
+
return Boolean(table.data && typeof table.data === "object" && "numRows" in table.data);
|
|
4753
|
+
default:
|
|
4754
|
+
return false;
|
|
4755
|
+
}
|
|
4756
|
+
}
|
|
4757
|
+
function getTableLength(table) {
|
|
4758
|
+
switch (table.shape) {
|
|
4759
|
+
case "array-row-table":
|
|
4760
|
+
case "object-row-table":
|
|
4761
|
+
return table.data.length;
|
|
4762
|
+
case "geojson-table":
|
|
4763
|
+
return table.features.length;
|
|
4764
|
+
case "arrow-table":
|
|
4765
|
+
return table.data.numRows;
|
|
4766
|
+
case "columnar-table":
|
|
4767
|
+
for (const column of Object.values(table.data)) {
|
|
4768
|
+
return column.length || 0;
|
|
4769
|
+
}
|
|
4770
|
+
return 0;
|
|
4771
|
+
}
|
|
4772
|
+
}
|
|
4632
4773
|
async function applyInputTransforms(inputIterator, transforms = []) {
|
|
4633
4774
|
let iteratorChain = inputIterator;
|
|
4634
4775
|
for await (const transformBatches of transforms) {
|
|
@@ -4820,6 +4961,8 @@ var __exports__ = (() => {
|
|
|
4820
4961
|
if (parentContext) {
|
|
4821
4962
|
return {
|
|
4822
4963
|
...parentContext,
|
|
4964
|
+
signal: options.signal || parentContext.signal,
|
|
4965
|
+
reportProgress: options.onProgress || parentContext.reportProgress,
|
|
4823
4966
|
coreApi: parentContext.coreApi || context.coreApi || coreApi,
|
|
4824
4967
|
_parse: parentContext._parse || context._parse,
|
|
4825
4968
|
fetch: getFetchFunction(options, parentContext)
|
|
@@ -4827,6 +4970,8 @@ var __exports__ = (() => {
|
|
|
4827
4970
|
}
|
|
4828
4971
|
const newContext = {
|
|
4829
4972
|
...context,
|
|
4973
|
+
signal: options.signal || context.signal,
|
|
4974
|
+
reportProgress: options.onProgress || context.reportProgress,
|
|
4830
4975
|
fetch: getFetchFunction(options, context),
|
|
4831
4976
|
coreApi: context.coreApi || coreApi
|
|
4832
4977
|
};
|
|
@@ -4864,8 +5009,10 @@ var __exports__ = (() => {
|
|
|
4864
5009
|
options = loaders;
|
|
4865
5010
|
loaders = void 0;
|
|
4866
5011
|
}
|
|
5012
|
+
(options?.signal || context?.signal)?.throwIfAborted();
|
|
4867
5013
|
data = await data;
|
|
4868
5014
|
options = options || {};
|
|
5015
|
+
(options.signal || context?.signal)?.throwIfAborted();
|
|
4869
5016
|
const url = getResourceUrl(data);
|
|
4870
5017
|
const typedLoaders = loaders;
|
|
4871
5018
|
const candidateLoaders = getLoadersFromContext(typedLoaders, context);
|
|
@@ -4894,6 +5041,7 @@ var __exports__ = (() => {
|
|
|
4894
5041
|
return await parseWithLoader(loader, data, strictOptions, context);
|
|
4895
5042
|
}
|
|
4896
5043
|
async function parseWithLoader(loader, data, options, context) {
|
|
5044
|
+
(options.signal || context.signal)?.throwIfAborted();
|
|
4897
5045
|
validateWorkerVersion(loader);
|
|
4898
5046
|
options = mergeOptions(loader.options, options);
|
|
4899
5047
|
if (isResponse(data)) {
|