@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.
Files changed (1314) hide show
  1. package/LICENSE +1 -1
  2. package/SCHEMA-README.md +9 -0
  3. package/SCHEMA-UTILS-README.md +11 -0
  4. package/dist/dist.dev.js +353 -205
  5. package/dist/dist.min.js +3 -3
  6. package/dist/index.cjs +291 -162
  7. package/dist/index.cjs.map +3 -3
  8. package/dist/index.d.ts +10 -10
  9. package/dist/index.d.ts.map +1 -1
  10. package/dist/index.js +8 -8
  11. package/dist/index.js.map +1 -1
  12. package/dist/iterators/make-iterator/make-iterator.js +1 -1
  13. package/dist/iterators/make-iterator/make-iterator.js.map +1 -1
  14. package/dist/iterators/make-iterator/make-stream-iterator.js +1 -1
  15. package/dist/iterators/make-iterator/make-stream-iterator.js.map +1 -1
  16. package/dist/iterators/make-iterator/make-string-iterator.js +1 -1
  17. package/dist/iterators/make-iterator/make-string-iterator.js.map +1 -1
  18. package/dist/lib/api/core-api.d.ts +1 -1
  19. package/dist/lib/api/core-api.d.ts.map +1 -1
  20. package/dist/lib/api/create-data-source.d.ts +1 -1
  21. package/dist/lib/api/create-data-source.d.ts.map +1 -1
  22. package/dist/lib/api/create-data-source.js +1 -1
  23. package/dist/lib/api/create-data-source.js.map +1 -1
  24. package/dist/lib/api/encode-table.d.ts +2 -2
  25. package/dist/lib/api/encode-table.d.ts.map +1 -1
  26. package/dist/lib/api/encode-table.js +1 -1
  27. package/dist/lib/api/encode-table.js.map +1 -1
  28. package/dist/lib/api/encode.d.ts +1 -1
  29. package/dist/lib/api/encode.d.ts.map +1 -1
  30. package/dist/lib/api/encode.js +2 -2
  31. package/dist/lib/api/encode.js.map +1 -1
  32. package/dist/lib/api/load-in-batches.d.ts +1 -1
  33. package/dist/lib/api/load-in-batches.d.ts.map +1 -1
  34. package/dist/lib/api/load-in-batches.js +1 -1
  35. package/dist/lib/api/load-in-batches.js.map +1 -1
  36. package/dist/lib/api/load-loader.d.ts +1 -1
  37. package/dist/lib/api/load-loader.d.ts.map +1 -1
  38. package/dist/lib/api/load-loader.js +1 -1
  39. package/dist/lib/api/load-loader.js.map +1 -1
  40. package/dist/lib/api/load.d.ts +1 -1
  41. package/dist/lib/api/load.d.ts.map +1 -1
  42. package/dist/lib/api/load.js +1 -1
  43. package/dist/lib/api/load.js.map +1 -1
  44. package/dist/lib/api/parse-file.d.ts +1 -1
  45. package/dist/lib/api/parse-file.d.ts.map +1 -1
  46. package/dist/lib/api/parse-file.js +4 -2
  47. package/dist/lib/api/parse-file.js.map +1 -1
  48. package/dist/lib/api/parse-in-batches.d.ts +1 -1
  49. package/dist/lib/api/parse-in-batches.d.ts.map +1 -1
  50. package/dist/lib/api/parse-in-batches.js +44 -7
  51. package/dist/lib/api/parse-in-batches.js.map +1 -1
  52. package/dist/lib/api/parse-sync.d.ts +1 -1
  53. package/dist/lib/api/parse-sync.d.ts.map +1 -1
  54. package/dist/lib/api/parse-sync.js +1 -1
  55. package/dist/lib/api/parse-sync.js.map +1 -1
  56. package/dist/lib/api/parse.d.ts +1 -1
  57. package/dist/lib/api/parse.d.ts.map +1 -1
  58. package/dist/lib/api/parse.js +7 -5
  59. package/dist/lib/api/parse.js.map +1 -1
  60. package/dist/lib/api/preload.d.ts +1 -1
  61. package/dist/lib/api/preload.d.ts.map +1 -1
  62. package/dist/lib/api/preload.js.map +1 -1
  63. package/dist/lib/api/register-loaders.d.ts +1 -1
  64. package/dist/lib/api/register-loaders.d.ts.map +1 -1
  65. package/dist/lib/api/select-loader.d.ts +1 -1
  66. package/dist/lib/api/select-loader.d.ts.map +1 -1
  67. package/dist/lib/api/select-loader.js +1 -1
  68. package/dist/lib/api/select-loader.js.map +1 -1
  69. package/dist/lib/api/select-source.d.ts +1 -1
  70. package/dist/lib/api/select-source.d.ts.map +1 -1
  71. package/dist/lib/common.d.ts +1 -1
  72. package/dist/lib/common.d.ts.map +1 -1
  73. package/dist/lib/fetch/fetch-file.js +2 -2
  74. package/dist/lib/fetch/fetch-file.js.map +1 -1
  75. package/dist/lib/filesystems/browser-filesystem.d.ts +1 -1
  76. package/dist/lib/filesystems/browser-filesystem.d.ts.map +1 -1
  77. package/dist/lib/filesystems/browser-filesystem.js +1 -1
  78. package/dist/lib/filesystems/browser-filesystem.js.map +1 -1
  79. package/dist/lib/init.js +2 -2
  80. package/dist/lib/init.js.map +1 -1
  81. package/dist/lib/loader-utils/get-data.d.ts +1 -1
  82. package/dist/lib/loader-utils/get-data.d.ts.map +1 -1
  83. package/dist/lib/loader-utils/get-data.js +1 -1
  84. package/dist/lib/loader-utils/get-data.js.map +1 -1
  85. package/dist/lib/loader-utils/get-fetch-function.d.ts +1 -1
  86. package/dist/lib/loader-utils/get-fetch-function.d.ts.map +1 -1
  87. package/dist/lib/loader-utils/get-fetch-function.js +4 -2
  88. package/dist/lib/loader-utils/get-fetch-function.js.map +1 -1
  89. package/dist/lib/loader-utils/loader-context.d.ts +1 -1
  90. package/dist/lib/loader-utils/loader-context.d.ts.map +1 -1
  91. package/dist/lib/loader-utils/loader-context.js +5 -1
  92. package/dist/lib/loader-utils/loader-context.js.map +1 -1
  93. package/dist/lib/loader-utils/loggers.d.ts +1 -1
  94. package/dist/lib/loader-utils/loggers.d.ts.map +1 -1
  95. package/dist/lib/loader-utils/loggers.js +1 -1
  96. package/dist/lib/loader-utils/loggers.js.map +1 -1
  97. package/dist/lib/loader-utils/normalize-loader.d.ts +1 -1
  98. package/dist/lib/loader-utils/normalize-loader.d.ts.map +1 -1
  99. package/dist/lib/loader-utils/normalize-loader.js +1 -1
  100. package/dist/lib/loader-utils/normalize-loader.js.map +1 -1
  101. package/dist/lib/loader-utils/option-defaults.d.ts +1 -1
  102. package/dist/lib/loader-utils/option-defaults.d.ts.map +1 -1
  103. package/dist/lib/loader-utils/option-defaults.js +2 -1
  104. package/dist/lib/loader-utils/option-defaults.js.map +1 -1
  105. package/dist/lib/loader-utils/option-utils.d.ts +1 -1
  106. package/dist/lib/loader-utils/option-utils.d.ts.map +1 -1
  107. package/dist/lib/loader-utils/option-utils.js +2 -2
  108. package/dist/lib/loader-utils/option-utils.js.map +1 -1
  109. package/dist/lib/utils/resource-utils.js +1 -1
  110. package/dist/lib/utils/resource-utils.js.map +1 -1
  111. package/dist/lib/utils/response-utils.js +1 -1
  112. package/dist/lib/utils/response-utils.js.map +1 -1
  113. package/dist/loader-utils/format-types.d.ts +32 -0
  114. package/dist/loader-utils/format-types.d.ts.map +1 -0
  115. package/dist/loader-utils/format-types.js +5 -0
  116. package/dist/loader-utils/format-types.js.map +1 -0
  117. package/dist/loader-utils/index.cjs +12555 -0
  118. package/dist/loader-utils/index.cjs.map +6 -0
  119. package/dist/loader-utils/index.d.ts +122 -0
  120. package/dist/loader-utils/index.d.ts.map +1 -0
  121. package/dist/loader-utils/index.js +91 -0
  122. package/dist/loader-utils/index.js.map +1 -0
  123. package/dist/loader-utils/json-loader.d.ts +27 -0
  124. package/dist/loader-utils/json-loader.d.ts.map +1 -0
  125. package/dist/loader-utils/json-loader.js +32 -0
  126. package/dist/loader-utils/json-loader.js.map +1 -0
  127. package/dist/loader-utils/lib/binary-utils/array-buffer-utils.d.ts +32 -0
  128. package/dist/loader-utils/lib/binary-utils/array-buffer-utils.d.ts.map +1 -0
  129. package/dist/loader-utils/lib/binary-utils/array-buffer-utils.js +88 -0
  130. package/dist/loader-utils/lib/binary-utils/array-buffer-utils.js.map +1 -0
  131. package/dist/loader-utils/lib/binary-utils/binary-chunk-reader.d.ts +67 -0
  132. package/dist/loader-utils/lib/binary-utils/binary-chunk-reader.d.ts.map +1 -0
  133. package/dist/loader-utils/lib/binary-utils/binary-chunk-reader.js +245 -0
  134. package/dist/loader-utils/lib/binary-utils/binary-chunk-reader.js.map +1 -0
  135. package/dist/loader-utils/lib/binary-utils/dataview-copy-utils.d.ts +43 -0
  136. package/dist/loader-utils/lib/binary-utils/dataview-copy-utils.d.ts.map +1 -0
  137. package/dist/loader-utils/lib/binary-utils/dataview-copy-utils.js +92 -0
  138. package/dist/loader-utils/lib/binary-utils/dataview-copy-utils.js.map +1 -0
  139. package/dist/loader-utils/lib/binary-utils/encode-array-buffer-to-base64.d.ts +3 -0
  140. package/dist/loader-utils/lib/binary-utils/encode-array-buffer-to-base64.d.ts.map +1 -0
  141. package/dist/loader-utils/lib/binary-utils/encode-array-buffer-to-base64.js +15 -0
  142. package/dist/loader-utils/lib/binary-utils/encode-array-buffer-to-base64.js.map +1 -0
  143. package/dist/loader-utils/lib/binary-utils/get-first-characters.d.ts +17 -0
  144. package/dist/loader-utils/lib/binary-utils/get-first-characters.d.ts.map +1 -0
  145. package/dist/loader-utils/lib/binary-utils/get-first-characters.js +43 -0
  146. package/dist/loader-utils/lib/binary-utils/get-first-characters.js.map +1 -0
  147. package/dist/loader-utils/lib/binary-utils/hex-transcoder.d.ts +15 -0
  148. package/dist/loader-utils/lib/binary-utils/hex-transcoder.d.ts.map +1 -0
  149. package/dist/loader-utils/lib/binary-utils/hex-transcoder.js +51 -0
  150. package/dist/loader-utils/lib/binary-utils/hex-transcoder.js.map +1 -0
  151. package/dist/loader-utils/lib/binary-utils/memory-conversion-utils.d.ts +20 -0
  152. package/dist/loader-utils/lib/binary-utils/memory-conversion-utils.d.ts.map +1 -0
  153. package/dist/loader-utils/lib/binary-utils/memory-conversion-utils.js +82 -0
  154. package/dist/loader-utils/lib/binary-utils/memory-conversion-utils.js.map +1 -0
  155. package/dist/loader-utils/lib/binary-utils/memory-copy-utils.d.ts +25 -0
  156. package/dist/loader-utils/lib/binary-utils/memory-copy-utils.d.ts.map +1 -0
  157. package/dist/loader-utils/lib/binary-utils/memory-copy-utils.js +59 -0
  158. package/dist/loader-utils/lib/binary-utils/memory-copy-utils.js.map +1 -0
  159. package/dist/loader-utils/lib/crs/crs-reprojection.d.ts +31 -0
  160. package/dist/loader-utils/lib/crs/crs-reprojection.d.ts.map +1 -0
  161. package/dist/loader-utils/lib/crs/crs-reprojection.js +20 -0
  162. package/dist/loader-utils/lib/crs/crs-reprojection.js.map +1 -0
  163. package/dist/loader-utils/lib/env-utils/assert.d.ts +6 -0
  164. package/dist/loader-utils/lib/env-utils/assert.d.ts.map +1 -0
  165. package/dist/loader-utils/lib/env-utils/assert.js +13 -0
  166. package/dist/loader-utils/lib/env-utils/assert.js.map +1 -0
  167. package/dist/loader-utils/lib/env-utils/globals.d.ts +15 -0
  168. package/dist/loader-utils/lib/env-utils/globals.d.ts.map +1 -0
  169. package/dist/loader-utils/lib/env-utils/globals.js +28 -0
  170. package/dist/loader-utils/lib/env-utils/globals.js.map +1 -0
  171. package/dist/loader-utils/lib/file-provider/data-view-file.d.ts +40 -0
  172. package/dist/loader-utils/lib/file-provider/data-view-file.d.ts.map +1 -0
  173. package/dist/loader-utils/lib/file-provider/data-view-file.js +68 -0
  174. package/dist/loader-utils/lib/file-provider/data-view-file.js.map +1 -0
  175. package/dist/loader-utils/lib/file-provider/file-handle-file.d.ts +54 -0
  176. package/dist/loader-utils/lib/file-provider/file-handle-file.d.ts.map +1 -0
  177. package/dist/loader-utils/lib/file-provider/file-handle-file.js +102 -0
  178. package/dist/loader-utils/lib/file-provider/file-handle-file.js.map +1 -0
  179. package/dist/loader-utils/lib/file-provider/file-provider-interface.d.ts +45 -0
  180. package/dist/loader-utils/lib/file-provider/file-provider-interface.d.ts.map +1 -0
  181. package/dist/loader-utils/lib/file-provider/file-provider-interface.js +13 -0
  182. package/dist/loader-utils/lib/file-provider/file-provider-interface.js.map +1 -0
  183. package/dist/loader-utils/lib/file-provider/file-provider.d.ts +57 -0
  184. package/dist/loader-utils/lib/file-provider/file-provider.d.ts.map +1 -0
  185. package/dist/loader-utils/lib/file-provider/file-provider.js +114 -0
  186. package/dist/loader-utils/lib/file-provider/file-provider.js.map +1 -0
  187. package/dist/loader-utils/lib/files/array-buffer-file.d.ts +21 -0
  188. package/dist/loader-utils/lib/files/array-buffer-file.d.ts.map +1 -0
  189. package/dist/loader-utils/lib/files/array-buffer-file.js +36 -0
  190. package/dist/loader-utils/lib/files/array-buffer-file.js.map +1 -0
  191. package/dist/loader-utils/lib/files/blob-file.d.ts +19 -0
  192. package/dist/loader-utils/lib/files/blob-file.d.ts.map +1 -0
  193. package/dist/loader-utils/lib/files/blob-file.js +39 -0
  194. package/dist/loader-utils/lib/files/blob-file.js.map +1 -0
  195. package/dist/loader-utils/lib/files/file.d.ts +33 -0
  196. package/dist/loader-utils/lib/files/file.d.ts.map +1 -0
  197. package/dist/loader-utils/lib/files/file.js +5 -0
  198. package/dist/loader-utils/lib/files/file.js.map +1 -0
  199. package/dist/loader-utils/lib/files/http-file-transport.d.ts +37 -0
  200. package/dist/loader-utils/lib/files/http-file-transport.d.ts.map +1 -0
  201. package/dist/loader-utils/lib/files/http-file-transport.js +290 -0
  202. package/dist/loader-utils/lib/files/http-file-transport.js.map +1 -0
  203. package/dist/loader-utils/lib/files/http-file-types.d.ts +49 -0
  204. package/dist/loader-utils/lib/files/http-file-types.d.ts.map +1 -0
  205. package/dist/loader-utils/lib/files/http-file-types.js +5 -0
  206. package/dist/loader-utils/lib/files/http-file-types.js.map +1 -0
  207. package/dist/loader-utils/lib/files/http-file.d.ts +55 -0
  208. package/dist/loader-utils/lib/files/http-file.d.ts.map +1 -0
  209. package/dist/loader-utils/lib/files/http-file.js +213 -0
  210. package/dist/loader-utils/lib/files/http-file.js.map +1 -0
  211. package/dist/loader-utils/lib/files/node-file-facade.d.ts +22 -0
  212. package/dist/loader-utils/lib/files/node-file-facade.d.ts.map +1 -0
  213. package/dist/loader-utils/lib/files/node-file-facade.js +45 -0
  214. package/dist/loader-utils/lib/files/node-file-facade.js.map +1 -0
  215. package/dist/loader-utils/lib/files/sources.d.ts +1 -0
  216. package/dist/loader-utils/lib/files/sources.d.ts.map +1 -0
  217. package/dist/loader-utils/lib/files/sources.js +155 -0
  218. package/dist/loader-utils/lib/files/sources.js.map +1 -0
  219. package/dist/loader-utils/lib/filesystems/filesystem.d.ts +33 -0
  220. package/dist/loader-utils/lib/filesystems/filesystem.d.ts.map +1 -0
  221. package/dist/loader-utils/lib/filesystems/filesystem.js +5 -0
  222. package/dist/loader-utils/lib/filesystems/filesystem.js.map +1 -0
  223. package/dist/loader-utils/lib/filesystems/node-filesystem-facade.d.ts +23 -0
  224. package/dist/loader-utils/lib/filesystems/node-filesystem-facade.d.ts.map +1 -0
  225. package/dist/loader-utils/lib/filesystems/node-filesystem-facade.js +48 -0
  226. package/dist/loader-utils/lib/filesystems/node-filesystem-facade.js.map +1 -0
  227. package/dist/loader-utils/lib/iterators/async-iteration.d.ts +20 -0
  228. package/dist/loader-utils/lib/iterators/async-iteration.d.ts.map +1 -0
  229. package/dist/loader-utils/lib/iterators/async-iteration.js +102 -0
  230. package/dist/loader-utils/lib/iterators/async-iteration.js.map +1 -0
  231. package/dist/loader-utils/lib/iterators/text-iterators.d.ts +19 -0
  232. package/dist/loader-utils/lib/iterators/text-iterators.d.ts.map +1 -0
  233. package/dist/loader-utils/lib/iterators/text-iterators.js +60 -0
  234. package/dist/loader-utils/lib/iterators/text-iterators.js.map +1 -0
  235. package/dist/loader-utils/lib/javascript-utils/is-type.d.ts +59 -0
  236. package/dist/loader-utils/lib/javascript-utils/is-type.d.ts.map +1 -0
  237. package/dist/loader-utils/lib/javascript-utils/is-type.js +68 -0
  238. package/dist/loader-utils/lib/javascript-utils/is-type.js.map +1 -0
  239. package/dist/loader-utils/lib/laz/laz-arithmetic-encoder.d.ts +118 -0
  240. package/dist/loader-utils/lib/laz/laz-arithmetic-encoder.d.ts.map +1 -0
  241. package/dist/loader-utils/lib/laz/laz-arithmetic-encoder.js +427 -0
  242. package/dist/loader-utils/lib/laz/laz-arithmetic-encoder.js.map +1 -0
  243. package/dist/loader-utils/lib/laz/laz-chunk-decoder.d.ts +204 -0
  244. package/dist/loader-utils/lib/laz/laz-chunk-decoder.d.ts.map +1 -0
  245. package/dist/loader-utils/lib/laz/laz-chunk-decoder.js +4226 -0
  246. package/dist/loader-utils/lib/laz/laz-chunk-decoder.js.map +1 -0
  247. package/dist/loader-utils/lib/laz/laz-chunk-encoder.d.ts +40 -0
  248. package/dist/loader-utils/lib/laz/laz-chunk-encoder.d.ts.map +1 -0
  249. package/dist/loader-utils/lib/laz/laz-chunk-encoder.js +1518 -0
  250. package/dist/loader-utils/lib/laz/laz-chunk-encoder.js.map +1 -0
  251. package/dist/loader-utils/lib/log-utils/log.d.ts +4 -0
  252. package/dist/loader-utils/lib/log-utils/log.d.ts.map +1 -0
  253. package/dist/loader-utils/lib/log-utils/log.js +21 -0
  254. package/dist/loader-utils/lib/log-utils/log.js.map +1 -0
  255. package/dist/loader-utils/lib/module-utils/initialize-wasm-module.d.ts +10 -0
  256. package/dist/loader-utils/lib/module-utils/initialize-wasm-module.d.ts.map +1 -0
  257. package/dist/loader-utils/lib/module-utils/initialize-wasm-module.js +44 -0
  258. package/dist/loader-utils/lib/module-utils/initialize-wasm-module.js.map +1 -0
  259. package/dist/loader-utils/lib/module-utils/js-module-utils.d.ts +18 -0
  260. package/dist/loader-utils/lib/module-utils/js-module-utils.d.ts.map +1 -0
  261. package/dist/loader-utils/lib/module-utils/js-module-utils.js +40 -0
  262. package/dist/loader-utils/lib/module-utils/js-module-utils.js.map +1 -0
  263. package/dist/loader-utils/lib/node/buffer.browser.d.ts +11 -0
  264. package/dist/loader-utils/lib/node/buffer.browser.d.ts.map +1 -0
  265. package/dist/loader-utils/lib/node/buffer.browser.js +20 -0
  266. package/dist/loader-utils/lib/node/buffer.browser.js.map +1 -0
  267. package/dist/loader-utils/lib/node/buffer.d.ts +11 -0
  268. package/dist/loader-utils/lib/node/buffer.d.ts.map +1 -0
  269. package/dist/loader-utils/lib/node/buffer.js +35 -0
  270. package/dist/loader-utils/lib/node/buffer.js.map +1 -0
  271. package/dist/loader-utils/lib/node/fs.browser.d.ts +2 -0
  272. package/dist/loader-utils/lib/node/fs.browser.d.ts.map +1 -0
  273. package/dist/loader-utils/lib/node/fs.browser.js +5 -0
  274. package/dist/loader-utils/lib/node/fs.browser.js.map +1 -0
  275. package/dist/loader-utils/lib/node/promisify.d.ts +13 -0
  276. package/dist/loader-utils/lib/node/promisify.d.ts.map +1 -0
  277. package/dist/loader-utils/lib/node/promisify.js +19 -0
  278. package/dist/loader-utils/lib/node/promisify.js.map +1 -0
  279. package/dist/loader-utils/lib/node/stream.browser.d.ts +2 -0
  280. package/dist/loader-utils/lib/node/stream.browser.d.ts.map +1 -0
  281. package/dist/loader-utils/lib/node/stream.browser.js +5 -0
  282. package/dist/loader-utils/lib/node/stream.browser.js.map +1 -0
  283. package/dist/loader-utils/lib/node/stream.d.ts +6 -0
  284. package/dist/loader-utils/lib/node/stream.d.ts.map +1 -0
  285. package/dist/loader-utils/lib/node/stream.js +8 -0
  286. package/dist/loader-utils/lib/node/stream.js.map +1 -0
  287. package/dist/loader-utils/lib/option-utils/merge-options.d.ts +12 -0
  288. package/dist/loader-utils/lib/option-utils/merge-options.d.ts.map +1 -0
  289. package/dist/loader-utils/lib/option-utils/merge-options.js +34 -0
  290. package/dist/loader-utils/lib/option-utils/merge-options.js.map +1 -0
  291. package/dist/loader-utils/lib/parser-utils/parse-json.d.ts +5 -0
  292. package/dist/loader-utils/lib/parser-utils/parse-json.d.ts.map +1 -0
  293. package/dist/loader-utils/lib/parser-utils/parse-json.js +16 -0
  294. package/dist/loader-utils/lib/parser-utils/parse-json.js.map +1 -0
  295. package/dist/loader-utils/lib/path-utils/cached-uri-resolver.d.ts +35 -0
  296. package/dist/loader-utils/lib/path-utils/cached-uri-resolver.d.ts.map +1 -0
  297. package/dist/loader-utils/lib/path-utils/cached-uri-resolver.js +64 -0
  298. package/dist/loader-utils/lib/path-utils/cached-uri-resolver.js.map +1 -0
  299. package/dist/loader-utils/lib/path-utils/file-aliases.d.ts +17 -0
  300. package/dist/loader-utils/lib/path-utils/file-aliases.d.ts.map +1 -0
  301. package/dist/loader-utils/lib/path-utils/file-aliases.js +44 -0
  302. package/dist/loader-utils/lib/path-utils/file-aliases.js.map +1 -0
  303. package/dist/loader-utils/lib/path-utils/get-cwd.d.ts +3 -0
  304. package/dist/loader-utils/lib/path-utils/get-cwd.d.ts.map +1 -0
  305. package/dist/loader-utils/lib/path-utils/get-cwd.js +12 -0
  306. package/dist/loader-utils/lib/path-utils/get-cwd.js.map +1 -0
  307. package/dist/loader-utils/lib/path-utils/path.d.ts +24 -0
  308. package/dist/loader-utils/lib/path-utils/path.d.ts.map +1 -0
  309. package/dist/loader-utils/lib/path-utils/path.js +173 -0
  310. package/dist/loader-utils/lib/path-utils/path.js.map +1 -0
  311. package/dist/loader-utils/lib/request-utils/abort-utils.d.ts +5 -0
  312. package/dist/loader-utils/lib/request-utils/abort-utils.d.ts.map +1 -0
  313. package/dist/loader-utils/lib/request-utils/abort-utils.js +59 -0
  314. package/dist/loader-utils/lib/request-utils/abort-utils.js.map +1 -0
  315. package/dist/loader-utils/lib/request-utils/authentication.d.ts +56 -0
  316. package/dist/loader-utils/lib/request-utils/authentication.d.ts.map +1 -0
  317. package/dist/loader-utils/lib/request-utils/authentication.js +67 -0
  318. package/dist/loader-utils/lib/request-utils/authentication.js.map +1 -0
  319. package/dist/loader-utils/lib/request-utils/parse-content-type.d.ts +7 -0
  320. package/dist/loader-utils/lib/request-utils/parse-content-type.d.ts.map +1 -0
  321. package/dist/loader-utils/lib/request-utils/parse-content-type.js +20 -0
  322. package/dist/loader-utils/lib/request-utils/parse-content-type.js.map +1 -0
  323. package/dist/loader-utils/lib/request-utils/range-request-cache.d.ts +70 -0
  324. package/dist/loader-utils/lib/request-utils/range-request-cache.d.ts.map +1 -0
  325. package/dist/loader-utils/lib/request-utils/range-request-cache.js +203 -0
  326. package/dist/loader-utils/lib/request-utils/range-request-cache.js.map +1 -0
  327. package/dist/loader-utils/lib/request-utils/range-request-scheduler.d.ts +201 -0
  328. package/dist/loader-utils/lib/request-utils/range-request-scheduler.d.ts.map +1 -0
  329. package/dist/loader-utils/lib/request-utils/range-request-scheduler.js +636 -0
  330. package/dist/loader-utils/lib/request-utils/range-request-scheduler.js.map +1 -0
  331. package/dist/loader-utils/lib/request-utils/request-cache.d.ts +62 -0
  332. package/dist/loader-utils/lib/request-utils/request-cache.d.ts.map +1 -0
  333. package/dist/loader-utils/lib/request-utils/request-cache.js +236 -0
  334. package/dist/loader-utils/lib/request-utils/request-cache.js.map +1 -0
  335. package/dist/loader-utils/lib/request-utils/request-credentials.d.ts +139 -0
  336. package/dist/loader-utils/lib/request-utils/request-credentials.d.ts.map +1 -0
  337. package/dist/loader-utils/lib/request-utils/request-credentials.js +373 -0
  338. package/dist/loader-utils/lib/request-utils/request-credentials.js.map +1 -0
  339. package/dist/loader-utils/lib/request-utils/request-scheduler.d.ts +71 -0
  340. package/dist/loader-utils/lib/request-utils/request-scheduler.d.ts.map +1 -0
  341. package/dist/loader-utils/lib/request-utils/request-scheduler.js +174 -0
  342. package/dist/loader-utils/lib/request-utils/request-scheduler.js.map +1 -0
  343. package/dist/loader-utils/lib/scan-utils/columnar-predicate.d.ts +56 -0
  344. package/dist/loader-utils/lib/scan-utils/columnar-predicate.d.ts.map +1 -0
  345. package/dist/loader-utils/lib/scan-utils/columnar-predicate.js +261 -0
  346. package/dist/loader-utils/lib/scan-utils/columnar-predicate.js.map +1 -0
  347. package/dist/loader-utils/lib/scan-utils/experimental-scan-options.d.ts +42 -0
  348. package/dist/loader-utils/lib/scan-utils/experimental-scan-options.d.ts.map +1 -0
  349. package/dist/loader-utils/lib/scan-utils/experimental-scan-options.js +5 -0
  350. package/dist/loader-utils/lib/scan-utils/experimental-scan-options.js.map +1 -0
  351. package/dist/loader-utils/lib/scan-utils/point-cloud-query.d.ts +56 -0
  352. package/dist/loader-utils/lib/scan-utils/point-cloud-query.d.ts.map +1 -0
  353. package/dist/loader-utils/lib/scan-utils/point-cloud-query.js +86 -0
  354. package/dist/loader-utils/lib/scan-utils/point-cloud-query.js.map +1 -0
  355. package/dist/loader-utils/lib/scan-utils/raster-query.d.ts +36 -0
  356. package/dist/loader-utils/lib/scan-utils/raster-query.d.ts.map +1 -0
  357. package/dist/loader-utils/lib/scan-utils/raster-query.js +49 -0
  358. package/dist/loader-utils/lib/scan-utils/raster-query.js.map +1 -0
  359. package/dist/loader-utils/lib/scan-utils/relational-query.d.ts +75 -0
  360. package/dist/loader-utils/lib/scan-utils/relational-query.d.ts.map +1 -0
  361. package/dist/loader-utils/lib/scan-utils/relational-query.js +107 -0
  362. package/dist/loader-utils/lib/scan-utils/relational-query.js.map +1 -0
  363. package/dist/loader-utils/lib/scan-utils/scan-executor.d.ts +20 -0
  364. package/dist/loader-utils/lib/scan-utils/scan-executor.d.ts.map +1 -0
  365. package/dist/loader-utils/lib/scan-utils/scan-executor.js +183 -0
  366. package/dist/loader-utils/lib/scan-utils/scan-executor.js.map +1 -0
  367. package/dist/loader-utils/lib/scan-utils/scan-fragments.d.ts +23 -0
  368. package/dist/loader-utils/lib/scan-utils/scan-fragments.d.ts.map +1 -0
  369. package/dist/loader-utils/lib/scan-utils/scan-fragments.js +5 -0
  370. package/dist/loader-utils/lib/scan-utils/scan-fragments.js.map +1 -0
  371. package/dist/loader-utils/lib/scan-utils/scan-query-metadata.d.ts +272 -0
  372. package/dist/loader-utils/lib/scan-utils/scan-query-metadata.d.ts.map +1 -0
  373. package/dist/loader-utils/lib/scan-utils/scan-query-metadata.js +97 -0
  374. package/dist/loader-utils/lib/scan-utils/scan-query-metadata.js.map +1 -0
  375. package/dist/loader-utils/lib/scan-utils/table-query-explain.d.ts +39 -0
  376. package/dist/loader-utils/lib/scan-utils/table-query-explain.d.ts.map +1 -0
  377. package/dist/loader-utils/lib/scan-utils/table-query-explain.js +35 -0
  378. package/dist/loader-utils/lib/scan-utils/table-query-explain.js.map +1 -0
  379. package/dist/loader-utils/lib/scan-utils/table-query.d.ts +77 -0
  380. package/dist/loader-utils/lib/scan-utils/table-query.d.ts.map +1 -0
  381. package/dist/loader-utils/lib/scan-utils/table-query.js +56 -0
  382. package/dist/loader-utils/lib/scan-utils/table-query.js.map +1 -0
  383. package/dist/loader-utils/lib/scan-utils/table-scan-batch.d.ts +30 -0
  384. package/dist/loader-utils/lib/scan-utils/table-scan-batch.d.ts.map +1 -0
  385. package/dist/loader-utils/lib/scan-utils/table-scan-batch.js +161 -0
  386. package/dist/loader-utils/lib/scan-utils/table-scan-batch.js.map +1 -0
  387. package/dist/loader-utils/lib/sources/catalog-source.d.ts +36 -0
  388. package/dist/loader-utils/lib/sources/catalog-source.d.ts.map +1 -0
  389. package/dist/loader-utils/lib/sources/catalog-source.js +5 -0
  390. package/dist/loader-utils/lib/sources/catalog-source.js.map +1 -0
  391. package/dist/loader-utils/lib/sources/data-source-manager.d.ts +136 -0
  392. package/dist/loader-utils/lib/sources/data-source-manager.d.ts.map +1 -0
  393. package/dist/loader-utils/lib/sources/data-source-manager.js +376 -0
  394. package/dist/loader-utils/lib/sources/data-source-manager.js.map +1 -0
  395. package/dist/loader-utils/lib/sources/data-source.d.ts +79 -0
  396. package/dist/loader-utils/lib/sources/data-source.d.ts.map +1 -0
  397. package/dist/loader-utils/lib/sources/data-source.js +145 -0
  398. package/dist/loader-utils/lib/sources/data-source.js.map +1 -0
  399. package/dist/loader-utils/lib/sources/image-source.d.ts +55 -0
  400. package/dist/loader-utils/lib/sources/image-source.d.ts.map +1 -0
  401. package/dist/loader-utils/lib/sources/image-source.js +5 -0
  402. package/dist/loader-utils/lib/sources/image-source.js.map +1 -0
  403. package/dist/loader-utils/lib/sources/image-tile-source.d.ts +12 -0
  404. package/dist/loader-utils/lib/sources/image-tile-source.d.ts.map +1 -0
  405. package/dist/loader-utils/lib/sources/image-tile-source.js +5 -0
  406. package/dist/loader-utils/lib/sources/image-tile-source.js.map +1 -0
  407. package/dist/loader-utils/lib/sources/raster-coverage.d.ts +17 -0
  408. package/dist/loader-utils/lib/sources/raster-coverage.d.ts.map +1 -0
  409. package/dist/loader-utils/lib/sources/raster-coverage.js +62 -0
  410. package/dist/loader-utils/lib/sources/raster-coverage.js.map +1 -0
  411. package/dist/loader-utils/lib/sources/raster-region.d.ts +4 -0
  412. package/dist/loader-utils/lib/sources/raster-region.d.ts.map +1 -0
  413. package/dist/loader-utils/lib/sources/raster-region.js +22 -0
  414. package/dist/loader-utils/lib/sources/raster-region.js.map +1 -0
  415. package/dist/loader-utils/lib/sources/raster-sampling.d.ts +35 -0
  416. package/dist/loader-utils/lib/sources/raster-sampling.d.ts.map +1 -0
  417. package/dist/loader-utils/lib/sources/raster-sampling.js +152 -0
  418. package/dist/loader-utils/lib/sources/raster-sampling.js.map +1 -0
  419. package/dist/loader-utils/lib/sources/raster-source.d.ts +302 -0
  420. package/dist/loader-utils/lib/sources/raster-source.d.ts.map +1 -0
  421. package/dist/loader-utils/lib/sources/raster-source.js +20 -0
  422. package/dist/loader-utils/lib/sources/raster-source.js.map +1 -0
  423. package/dist/loader-utils/lib/sources/service-capabilities.d.ts +36 -0
  424. package/dist/loader-utils/lib/sources/service-capabilities.d.ts.map +1 -0
  425. package/dist/loader-utils/lib/sources/service-capabilities.js +5 -0
  426. package/dist/loader-utils/lib/sources/service-capabilities.js.map +1 -0
  427. package/dist/loader-utils/lib/sources/tile-grid.d.ts +46 -0
  428. package/dist/loader-utils/lib/sources/tile-grid.d.ts.map +1 -0
  429. package/dist/loader-utils/lib/sources/tile-grid.js +128 -0
  430. package/dist/loader-utils/lib/sources/tile-grid.js.map +1 -0
  431. package/dist/loader-utils/lib/sources/tile-source-adapter.d.ts +24 -0
  432. package/dist/loader-utils/lib/sources/tile-source-adapter.d.ts.map +1 -0
  433. package/dist/loader-utils/lib/sources/tile-source-adapter.js +109 -0
  434. package/dist/loader-utils/lib/sources/tile-source-adapter.js.map +1 -0
  435. package/dist/loader-utils/lib/sources/tile-source-utils.d.ts +6 -0
  436. package/dist/loader-utils/lib/sources/tile-source-utils.d.ts.map +1 -0
  437. package/dist/loader-utils/lib/sources/tile-source-utils.js +13 -0
  438. package/dist/loader-utils/lib/sources/tile-source-utils.js.map +1 -0
  439. package/dist/loader-utils/lib/sources/tile-source.d.ts +190 -0
  440. package/dist/loader-utils/lib/sources/tile-source.d.ts.map +1 -0
  441. package/dist/loader-utils/lib/sources/tile-source.js +5 -0
  442. package/dist/loader-utils/lib/sources/tile-source.js.map +1 -0
  443. package/dist/loader-utils/lib/sources/utils/image-type.d.ts +10 -0
  444. package/dist/loader-utils/lib/sources/utils/image-type.d.ts.map +1 -0
  445. package/dist/loader-utils/lib/sources/utils/image-type.js +5 -0
  446. package/dist/loader-utils/lib/sources/utils/image-type.js.map +1 -0
  447. package/dist/loader-utils/lib/sources/utils/utils.d.ts +13 -0
  448. package/dist/loader-utils/lib/sources/utils/utils.d.ts.map +1 -0
  449. package/dist/loader-utils/lib/sources/utils/utils.js +26 -0
  450. package/dist/loader-utils/lib/sources/utils/utils.js.map +1 -0
  451. package/dist/loader-utils/lib/sources/vector-source.d.ts +76 -0
  452. package/dist/loader-utils/lib/sources/vector-source.d.ts.map +1 -0
  453. package/dist/loader-utils/lib/sources/vector-source.js +5 -0
  454. package/dist/loader-utils/lib/sources/vector-source.js.map +1 -0
  455. package/dist/loader-utils/lib/sources/vector-tile-source.d.ts +15 -0
  456. package/dist/loader-utils/lib/sources/vector-tile-source.d.ts.map +1 -0
  457. package/dist/loader-utils/lib/sources/vector-tile-source.js +5 -0
  458. package/dist/loader-utils/lib/sources/vector-tile-source.js.map +1 -0
  459. package/dist/loader-utils/lib/sources/xyz-grid.d.ts +9 -0
  460. package/dist/loader-utils/lib/sources/xyz-grid.d.ts.map +1 -0
  461. package/dist/loader-utils/lib/sources/xyz-grid.js +63 -0
  462. package/dist/loader-utils/lib/sources/xyz-grid.js.map +1 -0
  463. package/dist/loader-utils/lib/worker-loader-utils/create-loader-worker.d.ts +25 -0
  464. package/dist/loader-utils/lib/worker-loader-utils/create-loader-worker.d.ts.map +1 -0
  465. package/dist/loader-utils/lib/worker-loader-utils/create-loader-worker.js +156 -0
  466. package/dist/loader-utils/lib/worker-loader-utils/create-loader-worker.js.map +1 -0
  467. package/dist/loader-utils/lib/worker-loader-utils/encode-with-worker.d.ts +8 -0
  468. package/dist/loader-utils/lib/worker-loader-utils/encode-with-worker.d.ts.map +1 -0
  469. package/dist/loader-utils/lib/worker-loader-utils/encode-with-worker.js +23 -0
  470. package/dist/loader-utils/lib/worker-loader-utils/encode-with-worker.js.map +1 -0
  471. package/dist/loader-utils/lib/worker-loader-utils/parse-with-worker.d.ts +47 -0
  472. package/dist/loader-utils/lib/worker-loader-utils/parse-with-worker.d.ts.map +1 -0
  473. package/dist/loader-utils/lib/worker-loader-utils/parse-with-worker.js +270 -0
  474. package/dist/loader-utils/lib/worker-loader-utils/parse-with-worker.js.map +1 -0
  475. package/dist/loader-utils/loader-types.d.ts +330 -0
  476. package/dist/loader-utils/loader-types.d.ts.map +1 -0
  477. package/dist/loader-utils/loader-types.js +33 -0
  478. package/dist/loader-utils/loader-types.js.map +1 -0
  479. package/dist/loader-utils/source-types.d.ts +42 -0
  480. package/dist/loader-utils/source-types.d.ts.map +1 -0
  481. package/dist/loader-utils/source-types.js +8 -0
  482. package/dist/loader-utils/source-types.js.map +1 -0
  483. package/dist/loader-utils/types.d.ts +24 -0
  484. package/dist/loader-utils/types.d.ts.map +1 -0
  485. package/dist/loader-utils/types.js +6 -0
  486. package/dist/loader-utils/types.js.map +1 -0
  487. package/dist/loader-utils/workers/json-worker.d.ts +2 -0
  488. package/dist/loader-utils/workers/json-worker.d.ts.map +1 -0
  489. package/dist/loader-utils/workers/json-worker.js +7 -0
  490. package/dist/loader-utils/workers/json-worker.js.map +1 -0
  491. package/dist/loader-utils/writer-types.d.ts +74 -0
  492. package/dist/loader-utils/writer-types.d.ts.map +1 -0
  493. package/dist/loader-utils/writer-types.js +5 -0
  494. package/dist/loader-utils/writer-types.js.map +1 -0
  495. package/dist/null-loader.d.ts +2 -2
  496. package/dist/null-loader.d.ts.map +1 -1
  497. package/dist/null-loader.js +1 -1
  498. package/dist/null-worker-node.js +66 -21
  499. package/dist/null-worker.js +65 -21
  500. package/dist/polyfills/buffer/btoa.node.d.ts +3 -0
  501. package/dist/polyfills/buffer/btoa.node.d.ts.map +1 -0
  502. package/dist/polyfills/buffer/btoa.node.js +13 -0
  503. package/dist/polyfills/buffer/btoa.node.js.map +1 -0
  504. package/dist/polyfills/buffer/to-array-buffer.node.d.ts +2 -0
  505. package/dist/polyfills/buffer/to-array-buffer.node.d.ts.map +1 -0
  506. package/dist/polyfills/buffer/to-array-buffer.node.js +12 -0
  507. package/dist/polyfills/buffer/to-array-buffer.node.js.map +1 -0
  508. package/dist/polyfills/crypto/node-hash.d.ts +29 -0
  509. package/dist/polyfills/crypto/node-hash.d.ts.map +1 -0
  510. package/dist/polyfills/crypto/node-hash.js +63 -0
  511. package/dist/polyfills/crypto/node-hash.js.map +1 -0
  512. package/dist/polyfills/fetch/decode-data-uri.d.ts +11 -0
  513. package/dist/polyfills/fetch/decode-data-uri.d.ts.map +1 -0
  514. package/dist/polyfills/fetch/decode-data-uri.js +63 -0
  515. package/dist/polyfills/fetch/decode-data-uri.js.map +1 -0
  516. package/dist/polyfills/fetch/fetch-polyfill.d.ts +11 -0
  517. package/dist/polyfills/fetch/fetch-polyfill.d.ts.map +1 -0
  518. package/dist/polyfills/fetch/fetch-polyfill.js +141 -0
  519. package/dist/polyfills/fetch/fetch-polyfill.js.map +1 -0
  520. package/dist/polyfills/fetch/headers-polyfill.d.ts +34 -0
  521. package/dist/polyfills/fetch/headers-polyfill.d.ts.map +1 -0
  522. package/dist/polyfills/fetch/headers-polyfill.js +105 -0
  523. package/dist/polyfills/fetch/headers-polyfill.js.map +1 -0
  524. package/dist/polyfills/fetch/response-polyfill.d.ts +22 -0
  525. package/dist/polyfills/fetch/response-polyfill.d.ts.map +1 -0
  526. package/dist/polyfills/fetch/response-polyfill.js +81 -0
  527. package/dist/polyfills/fetch/response-polyfill.js.map +1 -0
  528. package/dist/polyfills/fetch/utils/decode-data-uri.node.d.ts +11 -0
  529. package/dist/polyfills/fetch/utils/decode-data-uri.node.d.ts.map +1 -0
  530. package/dist/polyfills/fetch/utils/decode-data-uri.node.js +32 -0
  531. package/dist/polyfills/fetch/utils/decode-data-uri.node.js.map +1 -0
  532. package/dist/polyfills/file/blob-stream-controller.d.ts +29 -0
  533. package/dist/polyfills/file/blob-stream-controller.d.ts.map +1 -0
  534. package/dist/polyfills/file/blob-stream-controller.js +64 -0
  535. package/dist/polyfills/file/blob-stream-controller.js.map +1 -0
  536. package/dist/polyfills/file/blob-stream.d.ts +25 -0
  537. package/dist/polyfills/file/blob-stream.d.ts.map +1 -0
  538. package/dist/polyfills/file/blob-stream.js +38 -0
  539. package/dist/polyfills/file/blob-stream.js.map +1 -0
  540. package/dist/polyfills/file/blob.d.ts +58 -0
  541. package/dist/polyfills/file/blob.d.ts.map +1 -0
  542. package/dist/polyfills/file/blob.js +166 -0
  543. package/dist/polyfills/file/blob.js.map +1 -0
  544. package/dist/polyfills/file/file-reader.d.ts +24 -0
  545. package/dist/polyfills/file/file-reader.d.ts.map +1 -0
  546. package/dist/polyfills/file/file-reader.js +51 -0
  547. package/dist/polyfills/file/file-reader.js.map +1 -0
  548. package/dist/polyfills/file/file.d.ts +24 -0
  549. package/dist/polyfills/file/file.d.ts.map +1 -0
  550. package/dist/polyfills/file/file.js +41 -0
  551. package/dist/polyfills/file/file.js.map +1 -0
  552. package/dist/polyfills/file/install-blob-polyfills.d.ts +9 -0
  553. package/dist/polyfills/file/install-blob-polyfills.d.ts.map +1 -0
  554. package/dist/polyfills/file/install-blob-polyfills.js +14 -0
  555. package/dist/polyfills/file/install-blob-polyfills.js.map +1 -0
  556. package/dist/polyfills/file/install-file-polyfills.d.ts +3 -0
  557. package/dist/polyfills/file/install-file-polyfills.d.ts.map +1 -0
  558. package/dist/polyfills/file/install-file-polyfills.js +20 -0
  559. package/dist/polyfills/file/install-file-polyfills.js.map +1 -0
  560. package/dist/polyfills/file/readable-stream.d.ts +5 -0
  561. package/dist/polyfills/file/readable-stream.d.ts.map +1 -0
  562. package/dist/polyfills/file/readable-stream.js +8 -0
  563. package/dist/polyfills/file/readable-stream.js.map +1 -0
  564. package/dist/polyfills/filesystems/fetch-node.d.ts +8 -0
  565. package/dist/polyfills/filesystems/fetch-node.d.ts.map +1 -0
  566. package/dist/polyfills/filesystems/fetch-node.js +88 -0
  567. package/dist/polyfills/filesystems/fetch-node.js.map +1 -0
  568. package/dist/polyfills/filesystems/node-file.d.ts +15 -0
  569. package/dist/polyfills/filesystems/node-file.d.ts.map +1 -0
  570. package/dist/polyfills/filesystems/node-file.js +138 -0
  571. package/dist/polyfills/filesystems/node-file.js.map +1 -0
  572. package/dist/polyfills/filesystems/node-filesystem.d.ts +19 -0
  573. package/dist/polyfills/filesystems/node-filesystem.d.ts.map +1 -0
  574. package/dist/polyfills/filesystems/node-filesystem.js +44 -0
  575. package/dist/polyfills/filesystems/node-filesystem.js.map +1 -0
  576. package/dist/polyfills/filesystems/stream-utils.node.d.ts +18 -0
  577. package/dist/polyfills/filesystems/stream-utils.node.d.ts.map +1 -0
  578. package/dist/polyfills/filesystems/stream-utils.node.js +67 -0
  579. package/dist/polyfills/filesystems/stream-utils.node.js.map +1 -0
  580. package/dist/polyfills/images/encode-image-node.d.ts +20 -0
  581. package/dist/polyfills/images/encode-image-node.d.ts.map +1 -0
  582. package/dist/polyfills/images/encode-image-node.js +37 -0
  583. package/dist/polyfills/images/encode-image-node.js.map +1 -0
  584. package/dist/polyfills/images/image-codecs-node.d.ts +8 -0
  585. package/dist/polyfills/images/image-codecs-node.d.ts.map +1 -0
  586. package/dist/polyfills/images/image-codecs-node.js +27 -0
  587. package/dist/polyfills/images/image-codecs-node.js.map +1 -0
  588. package/dist/polyfills/images/node-image-bitmap.d.ts +38 -0
  589. package/dist/polyfills/images/node-image-bitmap.d.ts.map +1 -0
  590. package/dist/polyfills/images/node-image-bitmap.js +64 -0
  591. package/dist/polyfills/images/node-image-bitmap.js.map +1 -0
  592. package/dist/polyfills/images/node-image-formats.d.ts +3 -0
  593. package/dist/polyfills/images/node-image-formats.d.ts.map +1 -0
  594. package/dist/polyfills/images/node-image-formats.js +6 -0
  595. package/dist/polyfills/images/node-image-formats.js.map +1 -0
  596. package/dist/polyfills/images/parse-image-node.d.ts +11 -0
  597. package/dist/polyfills/images/parse-image-node.d.ts.map +1 -0
  598. package/dist/polyfills/images/parse-image-node.js +36 -0
  599. package/dist/polyfills/images/parse-image-node.js.map +1 -0
  600. package/dist/polyfills/index.browser.d.ts +8 -0
  601. package/dist/polyfills/index.browser.d.ts.map +1 -0
  602. package/dist/polyfills/index.browser.js +18 -0
  603. package/dist/polyfills/index.browser.js.map +1 -0
  604. package/dist/polyfills/index.cjs +2918 -0
  605. package/dist/polyfills/index.cjs.map +6 -0
  606. package/dist/polyfills/index.d.ts +7 -0
  607. package/dist/polyfills/index.d.ts.map +1 -0
  608. package/dist/polyfills/index.js +110 -0
  609. package/dist/polyfills/index.js.map +1 -0
  610. package/dist/polyfills/libs/encoding-indexes-asian.d.ts +10 -0
  611. package/dist/polyfills/libs/encoding-indexes-asian.d.ts.map +1 -0
  612. package/dist/polyfills/libs/encoding-indexes-asian.js +14 -0
  613. package/dist/polyfills/libs/encoding-indexes-asian.js.map +1 -0
  614. package/dist/polyfills/load-library/require-utils.node.d.ts +19 -0
  615. package/dist/polyfills/load-library/require-utils.node.d.ts.map +1 -0
  616. package/dist/polyfills/load-library/require-utils.node.js +88 -0
  617. package/dist/polyfills/load-library/require-utils.node.js.map +1 -0
  618. package/dist/polyfills/streams/make-node-stream.d.ts +10 -0
  619. package/dist/polyfills/streams/make-node-stream.d.ts.map +1 -0
  620. package/dist/polyfills/streams/make-node-stream.js +70 -0
  621. package/dist/polyfills/streams/make-node-stream.js.map +1 -0
  622. package/dist/polyfills/text-encoder/encoding-indexes.d.ts +31 -0
  623. package/dist/polyfills/text-encoder/encoding-indexes.d.ts.map +1 -0
  624. package/dist/polyfills/text-encoder/encoding-indexes.js +35 -0
  625. package/dist/polyfills/text-encoder/encoding-indexes.js.map +1 -0
  626. package/dist/polyfills/text-encoder/text-encoder.d.ts +15 -0
  627. package/dist/polyfills/text-encoder/text-encoder.d.ts.map +1 -0
  628. package/dist/polyfills/text-encoder/text-encoder.js +2778 -0
  629. package/dist/polyfills/text-encoder/text-encoder.js.map +1 -0
  630. package/dist/polyfills/utils/assert.d.ts +2 -0
  631. package/dist/polyfills/utils/assert.d.ts.map +1 -0
  632. package/dist/polyfills/utils/assert.js +9 -0
  633. package/dist/polyfills/utils/assert.js.map +1 -0
  634. package/dist/polyfills/utils/buffer-utils.d.ts +5 -0
  635. package/dist/polyfills/utils/buffer-utils.d.ts.map +1 -0
  636. package/dist/polyfills/utils/buffer-utils.js +34 -0
  637. package/dist/polyfills/utils/buffer-utils.js.map +1 -0
  638. package/dist/polyfills/utils/filesystem-types.d.ts +10 -0
  639. package/dist/polyfills/utils/filesystem-types.d.ts.map +1 -0
  640. package/dist/polyfills/utils/filesystem-types.js +5 -0
  641. package/dist/polyfills/utils/filesystem-types.js.map +1 -0
  642. package/dist/polyfills/utils/is-browser.d.ts +2 -0
  643. package/dist/polyfills/utils/is-browser.d.ts.map +1 -0
  644. package/dist/polyfills/utils/is-browser.js +8 -0
  645. package/dist/polyfills/utils/is-browser.js.map +1 -0
  646. package/dist/polyfills/utils/path-utils.d.ts +7 -0
  647. package/dist/polyfills/utils/path-utils.d.ts.map +1 -0
  648. package/dist/polyfills/utils/path-utils.js +28 -0
  649. package/dist/polyfills/utils/path-utils.js.map +1 -0
  650. package/dist/schema/categories/category-gis.d.ts +7 -0
  651. package/dist/schema/categories/category-gis.d.ts.map +1 -0
  652. package/dist/schema/categories/category-gis.js +5 -0
  653. package/dist/schema/categories/category-gis.js.map +1 -0
  654. package/dist/schema/categories/category-image.d.ts +18 -0
  655. package/dist/schema/categories/category-image.d.ts.map +1 -0
  656. package/dist/schema/categories/category-image.js +5 -0
  657. package/dist/schema/categories/category-image.js.map +1 -0
  658. package/dist/schema/categories/category-mesh.d.ts +99 -0
  659. package/dist/schema/categories/category-mesh.d.ts.map +1 -0
  660. package/dist/schema/categories/category-mesh.js +14 -0
  661. package/dist/schema/categories/category-mesh.js.map +1 -0
  662. package/dist/schema/categories/category-table.d.ts +106 -0
  663. package/dist/schema/categories/category-table.d.ts.map +1 -0
  664. package/dist/schema/categories/category-table.js +5 -0
  665. package/dist/schema/categories/category-table.js.map +1 -0
  666. package/dist/schema/categories/category-texture.d.ts +115 -0
  667. package/dist/schema/categories/category-texture.d.ts.map +1 -0
  668. package/dist/schema/categories/category-texture.js +5 -0
  669. package/dist/schema/categories/category-texture.js.map +1 -0
  670. package/dist/schema/deprecated/mesh-utils.d.ts +12 -0
  671. package/dist/schema/deprecated/mesh-utils.d.ts.map +1 -0
  672. package/dist/schema/deprecated/mesh-utils.js +37 -0
  673. package/dist/schema/deprecated/mesh-utils.js.map +1 -0
  674. package/dist/schema/float16.d.ts +19 -0
  675. package/dist/schema/float16.d.ts.map +1 -0
  676. package/dist/schema/float16.js +90 -0
  677. package/dist/schema/float16.js.map +1 -0
  678. package/dist/schema/geoarrow-metadata.schema.json +117 -0
  679. package/dist/schema/geometry/arrow-binary-features.d.ts +45 -0
  680. package/dist/schema/geometry/arrow-binary-features.d.ts.map +1 -0
  681. package/dist/schema/geometry/arrow-binary-features.js +5 -0
  682. package/dist/schema/geometry/arrow-binary-features.js.map +1 -0
  683. package/dist/schema/geometry/binary-features.d.ts +30 -0
  684. package/dist/schema/geometry/binary-features.d.ts.map +1 -0
  685. package/dist/schema/geometry/binary-features.js +5 -0
  686. package/dist/schema/geometry/binary-features.js.map +1 -0
  687. package/dist/schema/geometry/binary-geometries.d.ts +33 -0
  688. package/dist/schema/geometry/binary-geometries.d.ts.map +1 -0
  689. package/dist/schema/geometry/binary-geometries.js +5 -0
  690. package/dist/schema/geometry/binary-geometries.js.map +1 -0
  691. package/dist/schema/geometry/flat-geometries.d.ts +61 -0
  692. package/dist/schema/geometry/flat-geometries.d.ts.map +1 -0
  693. package/dist/schema/geometry/flat-geometries.js +5 -0
  694. package/dist/schema/geometry/flat-geometries.js.map +1 -0
  695. package/dist/schema/geometry/geoarrow.d.ts +69 -0
  696. package/dist/schema/geometry/geoarrow.d.ts.map +1 -0
  697. package/dist/schema/geometry/geoarrow.js +5 -0
  698. package/dist/schema/geometry/geoarrow.js.map +1 -0
  699. package/dist/schema/geoparquet.schema.json +222 -0
  700. package/dist/schema/geospatial-metadata-zod-schema.cjs +154 -0
  701. package/dist/schema/geospatial-metadata-zod-schema.cjs.map +6 -0
  702. package/dist/schema/geospatial-metadata-zod-schema.d.ts +44 -0
  703. package/dist/schema/geospatial-metadata-zod-schema.d.ts.map +1 -0
  704. package/dist/schema/geospatial-metadata-zod-schema.js +151 -0
  705. package/dist/schema/geospatial-metadata-zod-schema.js.map +1 -0
  706. package/dist/schema/index.cjs +259 -0
  707. package/dist/schema/index.cjs.map +6 -0
  708. package/dist/schema/index.d.ts +21 -0
  709. package/dist/schema/index.d.ts.map +1 -0
  710. package/dist/schema/index.js +9 -0
  711. package/dist/schema/index.js.map +1 -0
  712. package/dist/schema/metadata.d.ts +40 -0
  713. package/dist/schema/metadata.d.ts.map +1 -0
  714. package/dist/schema/metadata.js +86 -0
  715. package/dist/schema/metadata.js.map +1 -0
  716. package/dist/schema/types/batch.d.ts +37 -0
  717. package/dist/schema/types/batch.d.ts.map +1 -0
  718. package/dist/schema/types/batch.js +5 -0
  719. package/dist/schema/types/batch.js.map +1 -0
  720. package/dist/schema/types/schema.d.ts +70 -0
  721. package/dist/schema/types/schema.d.ts.map +1 -0
  722. package/dist/schema/types/schema.js +5 -0
  723. package/dist/schema/types/schema.js.map +1 -0
  724. package/dist/schema/types/types.d.ts +16 -0
  725. package/dist/schema/types/types.d.ts.map +1 -0
  726. package/dist/schema/types/types.js +6 -0
  727. package/dist/schema/types/types.js.map +1 -0
  728. package/dist/schema-utils/arrow-transport.cjs +665 -0
  729. package/dist/schema-utils/arrow-transport.cjs.map +6 -0
  730. package/dist/schema-utils/arrow-transport.d.ts +4 -0
  731. package/dist/schema-utils/arrow-transport.d.ts.map +1 -0
  732. package/dist/schema-utils/arrow-transport.js +7 -0
  733. package/dist/schema-utils/arrow-transport.js.map +1 -0
  734. package/dist/schema-utils/deprecated.d.ts +24 -0
  735. package/dist/schema-utils/deprecated.d.ts.map +1 -0
  736. package/dist/schema-utils/deprecated.js +27 -0
  737. package/dist/schema-utils/deprecated.js.map +1 -0
  738. package/dist/schema-utils/index.cjs +3423 -0
  739. package/dist/schema-utils/index.cjs.map +6 -0
  740. package/dist/schema-utils/index.d.ts +38 -0
  741. package/dist/schema-utils/index.d.ts.map +1 -0
  742. package/dist/schema-utils/index.js +77 -0
  743. package/dist/schema-utils/index.js.map +1 -0
  744. package/dist/schema-utils/lib/arrow/arrow-table-transport.d.ts +72 -0
  745. package/dist/schema-utils/lib/arrow/arrow-table-transport.d.ts.map +1 -0
  746. package/dist/schema-utils/lib/arrow/arrow-table-transport.js +162 -0
  747. package/dist/schema-utils/lib/arrow/arrow-table-transport.js.map +1 -0
  748. package/dist/schema-utils/lib/arrow/split-arrow-buffers.d.ts +33 -0
  749. package/dist/schema-utils/lib/arrow/split-arrow-buffers.d.ts.map +1 -0
  750. package/dist/schema-utils/lib/arrow/split-arrow-buffers.js +128 -0
  751. package/dist/schema-utils/lib/arrow/split-arrow-buffers.js.map +1 -0
  752. package/dist/schema-utils/lib/arrow-utils/arrow-fixed-size-list-utils.d.ts +11 -0
  753. package/dist/schema-utils/lib/arrow-utils/arrow-fixed-size-list-utils.d.ts.map +1 -0
  754. package/dist/schema-utils/lib/arrow-utils/arrow-fixed-size-list-utils.js +45 -0
  755. package/dist/schema-utils/lib/arrow-utils/arrow-fixed-size-list-utils.js.map +1 -0
  756. package/dist/schema-utils/lib/arrow-utils/arrow-list-of-fixed-size-list-utils.d.ts +11 -0
  757. package/dist/schema-utils/lib/arrow-utils/arrow-list-of-fixed-size-list-utils.d.ts.map +1 -0
  758. package/dist/schema-utils/lib/arrow-utils/arrow-list-of-fixed-size-list-utils.js +33 -0
  759. package/dist/schema-utils/lib/arrow-utils/arrow-list-of-fixed-size-list-utils.js.map +1 -0
  760. package/dist/schema-utils/lib/converters/convert.d.ts +10 -0
  761. package/dist/schema-utils/lib/converters/convert.d.ts.map +1 -0
  762. package/dist/schema-utils/lib/converters/convert.js +98 -0
  763. package/dist/schema-utils/lib/converters/convert.js.map +1 -0
  764. package/dist/schema-utils/lib/converters/converters.d.ts +3 -0
  765. package/dist/schema-utils/lib/converters/converters.d.ts.map +1 -0
  766. package/dist/schema-utils/lib/converters/converters.js +5 -0
  767. package/dist/schema-utils/lib/converters/converters.js.map +1 -0
  768. package/dist/schema-utils/lib/converters/types.d.ts +35 -0
  769. package/dist/schema-utils/lib/converters/types.d.ts.map +1 -0
  770. package/dist/schema-utils/lib/converters/types.js +5 -0
  771. package/dist/schema-utils/lib/converters/types.js.map +1 -0
  772. package/dist/schema-utils/lib/mesh/convert-mesh-to-table.d.ts +44 -0
  773. package/dist/schema-utils/lib/mesh/convert-mesh-to-table.d.ts.map +1 -0
  774. package/dist/schema-utils/lib/mesh/convert-mesh-to-table.js +187 -0
  775. package/dist/schema-utils/lib/mesh/convert-mesh-to-table.js.map +1 -0
  776. package/dist/schema-utils/lib/mesh/convert-table-to-mesh.d.ts +14 -0
  777. package/dist/schema-utils/lib/mesh/convert-table-to-mesh.d.ts.map +1 -0
  778. package/dist/schema-utils/lib/mesh/convert-table-to-mesh.js +217 -0
  779. package/dist/schema-utils/lib/mesh/convert-table-to-mesh.js.map +1 -0
  780. package/dist/schema-utils/lib/mesh/deduce-mesh-schema.d.ts +23 -0
  781. package/dist/schema-utils/lib/mesh/deduce-mesh-schema.d.ts.map +1 -0
  782. package/dist/schema-utils/lib/mesh/deduce-mesh-schema.js +72 -0
  783. package/dist/schema-utils/lib/mesh/deduce-mesh-schema.js.map +1 -0
  784. package/dist/schema-utils/lib/mesh/mesh-utils.d.ts +23 -0
  785. package/dist/schema-utils/lib/mesh/mesh-utils.d.ts.map +1 -0
  786. package/dist/schema-utils/lib/mesh/mesh-utils.js +54 -0
  787. package/dist/schema-utils/lib/mesh/mesh-utils.js.map +1 -0
  788. package/dist/schema-utils/lib/mesh/point-cloud-tiler.d.ts +98 -0
  789. package/dist/schema-utils/lib/mesh/point-cloud-tiler.d.ts.map +1 -0
  790. package/dist/schema-utils/lib/mesh/point-cloud-tiler.js +407 -0
  791. package/dist/schema-utils/lib/mesh/point-cloud-tiler.js.map +1 -0
  792. package/dist/schema-utils/lib/schema/convert-arrow-schema.d.ts +39 -0
  793. package/dist/schema-utils/lib/schema/convert-arrow-schema.d.ts.map +1 -0
  794. package/dist/schema-utils/lib/schema/convert-arrow-schema.js +441 -0
  795. package/dist/schema-utils/lib/schema/convert-arrow-schema.js.map +1 -0
  796. package/dist/schema-utils/lib/schema/data-type.d.ts +16 -0
  797. package/dist/schema-utils/lib/schema/data-type.d.ts.map +1 -0
  798. package/dist/schema-utils/lib/schema/data-type.js +102 -0
  799. package/dist/schema-utils/lib/schema/data-type.js.map +1 -0
  800. package/dist/schema-utils/lib/schema/deduce-table-schema.d.ts +14 -0
  801. package/dist/schema-utils/lib/schema/deduce-table-schema.d.ts.map +1 -0
  802. package/dist/schema-utils/lib/schema/deduce-table-schema.js +101 -0
  803. package/dist/schema-utils/lib/schema/deduce-table-schema.js.map +1 -0
  804. package/dist/schema-utils/lib/table/arrow-api/arrow-like-field.d.ts +19 -0
  805. package/dist/schema-utils/lib/table/arrow-api/arrow-like-field.d.ts.map +1 -0
  806. package/dist/schema-utils/lib/table/arrow-api/arrow-like-field.js +37 -0
  807. package/dist/schema-utils/lib/table/arrow-api/arrow-like-field.js.map +1 -0
  808. package/dist/schema-utils/lib/table/arrow-api/arrow-like-interface.d.ts +43 -0
  809. package/dist/schema-utils/lib/table/arrow-api/arrow-like-interface.d.ts.map +1 -0
  810. package/dist/schema-utils/lib/table/arrow-api/arrow-like-interface.js +5 -0
  811. package/dist/schema-utils/lib/table/arrow-api/arrow-like-interface.js.map +1 -0
  812. package/dist/schema-utils/lib/table/arrow-api/arrow-like-schema.d.ts +12 -0
  813. package/dist/schema-utils/lib/table/arrow-api/arrow-like-schema.d.ts.map +1 -0
  814. package/dist/schema-utils/lib/table/arrow-api/arrow-like-schema.js +82 -0
  815. package/dist/schema-utils/lib/table/arrow-api/arrow-like-schema.js.map +1 -0
  816. package/dist/schema-utils/lib/table/arrow-api/arrow-like-table.d.ts +28 -0
  817. package/dist/schema-utils/lib/table/arrow-api/arrow-like-table.d.ts.map +1 -0
  818. package/dist/schema-utils/lib/table/arrow-api/arrow-like-table.js +64 -0
  819. package/dist/schema-utils/lib/table/arrow-api/arrow-like-table.js.map +1 -0
  820. package/dist/schema-utils/lib/table/arrow-api/arrow-like-type.d.ts +177 -0
  821. package/dist/schema-utils/lib/table/arrow-api/arrow-like-type.d.ts.map +1 -0
  822. package/dist/schema-utils/lib/table/arrow-api/arrow-like-type.js +441 -0
  823. package/dist/schema-utils/lib/table/arrow-api/arrow-like-type.js.map +1 -0
  824. package/dist/schema-utils/lib/table/arrow-api/enum.d.ts +92 -0
  825. package/dist/schema-utils/lib/table/arrow-api/enum.d.ts.map +1 -0
  826. package/dist/schema-utils/lib/table/arrow-api/enum.js +98 -0
  827. package/dist/schema-utils/lib/table/arrow-api/enum.js.map +1 -0
  828. package/dist/schema-utils/lib/table/arrow-api/get-type-info.d.ts +13 -0
  829. package/dist/schema-utils/lib/table/arrow-api/get-type-info.d.ts.map +1 -0
  830. package/dist/schema-utils/lib/table/arrow-api/get-type-info.js +28 -0
  831. package/dist/schema-utils/lib/table/arrow-api/get-type-info.js.map +1 -0
  832. package/dist/schema-utils/lib/table/arrow-api/index.d.ts +6 -0
  833. package/dist/schema-utils/lib/table/arrow-api/index.d.ts.map +1 -0
  834. package/dist/schema-utils/lib/table/arrow-api/index.js +8 -0
  835. package/dist/schema-utils/lib/table/arrow-api/index.js.map +1 -0
  836. package/dist/schema-utils/lib/table/batch-builder/arrow-table-batch-aggregator.d.ts +10 -0
  837. package/dist/schema-utils/lib/table/batch-builder/arrow-table-batch-aggregator.d.ts.map +1 -0
  838. package/dist/schema-utils/lib/table/batch-builder/arrow-table-batch-aggregator.js +71 -0
  839. package/dist/schema-utils/lib/table/batch-builder/arrow-table-batch-aggregator.js.map +1 -0
  840. package/dist/schema-utils/lib/table/batch-builder/arrow-table-builder.d.ts +28 -0
  841. package/dist/schema-utils/lib/table/batch-builder/arrow-table-builder.d.ts.map +1 -0
  842. package/dist/schema-utils/lib/table/batch-builder/arrow-table-builder.js +104 -0
  843. package/dist/schema-utils/lib/table/batch-builder/arrow-table-builder.js.map +1 -0
  844. package/dist/schema-utils/lib/table/batch-builder/base-table-batch-aggregator.d.ts +19 -0
  845. package/dist/schema-utils/lib/table/batch-builder/base-table-batch-aggregator.d.ts.map +1 -0
  846. package/dist/schema-utils/lib/table/batch-builder/base-table-batch-aggregator.js +64 -0
  847. package/dist/schema-utils/lib/table/batch-builder/base-table-batch-aggregator.js.map +1 -0
  848. package/dist/schema-utils/lib/table/batch-builder/columnar-table-batch-aggregator.d.ts +20 -0
  849. package/dist/schema-utils/lib/table/batch-builder/columnar-table-batch-aggregator.d.ts.map +1 -0
  850. package/dist/schema-utils/lib/table/batch-builder/columnar-table-batch-aggregator.js +84 -0
  851. package/dist/schema-utils/lib/table/batch-builder/columnar-table-batch-aggregator.js.map +1 -0
  852. package/dist/schema-utils/lib/table/batch-builder/row-table-batch-aggregator.d.ts +21 -0
  853. package/dist/schema-utils/lib/table/batch-builder/row-table-batch-aggregator.d.ts.map +1 -0
  854. package/dist/schema-utils/lib/table/batch-builder/row-table-batch-aggregator.js +86 -0
  855. package/dist/schema-utils/lib/table/batch-builder/row-table-batch-aggregator.js.map +1 -0
  856. package/dist/schema-utils/lib/table/batch-builder/table-batch-aggregator.d.ts +24 -0
  857. package/dist/schema-utils/lib/table/batch-builder/table-batch-aggregator.d.ts.map +1 -0
  858. package/dist/schema-utils/lib/table/batch-builder/table-batch-aggregator.js +5 -0
  859. package/dist/schema-utils/lib/table/batch-builder/table-batch-aggregator.js.map +1 -0
  860. package/dist/schema-utils/lib/table/batch-builder/table-batch-builder.d.ts +52 -0
  861. package/dist/schema-utils/lib/table/batch-builder/table-batch-builder.d.ts.map +1 -0
  862. package/dist/schema-utils/lib/table/batch-builder/table-batch-builder.js +149 -0
  863. package/dist/schema-utils/lib/table/batch-builder/table-batch-builder.js.map +1 -0
  864. package/dist/schema-utils/lib/table/batches/convert-batches.d.ts +10 -0
  865. package/dist/schema-utils/lib/table/batches/convert-batches.d.ts.map +1 -0
  866. package/dist/schema-utils/lib/table/batches/convert-batches.js +46 -0
  867. package/dist/schema-utils/lib/table/batches/convert-batches.js.map +1 -0
  868. package/dist/schema-utils/lib/table/batches/make-arrow-batch-iterator.d.ts +17 -0
  869. package/dist/schema-utils/lib/table/batches/make-arrow-batch-iterator.d.ts.map +1 -0
  870. package/dist/schema-utils/lib/table/batches/make-arrow-batch-iterator.js +61 -0
  871. package/dist/schema-utils/lib/table/batches/make-arrow-batch-iterator.js.map +1 -0
  872. package/dist/schema-utils/lib/table/batches/make-table-batch-iterator.d.ts +15 -0
  873. package/dist/schema-utils/lib/table/batches/make-table-batch-iterator.d.ts.map +1 -0
  874. package/dist/schema-utils/lib/table/batches/make-table-batch-iterator.js +22 -0
  875. package/dist/schema-utils/lib/table/batches/make-table-batch-iterator.js.map +1 -0
  876. package/dist/schema-utils/lib/table/batches/make-table-from-batches.d.ts +9 -0
  877. package/dist/schema-utils/lib/table/batches/make-table-from-batches.d.ts.map +1 -0
  878. package/dist/schema-utils/lib/table/batches/make-table-from-batches.js +63 -0
  879. package/dist/schema-utils/lib/table/batches/make-table-from-batches.js.map +1 -0
  880. package/dist/schema-utils/lib/table/query-arrow-table.d.ts +23 -0
  881. package/dist/schema-utils/lib/table/query-arrow-table.d.ts.map +1 -0
  882. package/dist/schema-utils/lib/table/query-arrow-table.js +73 -0
  883. package/dist/schema-utils/lib/table/query-arrow-table.js.map +1 -0
  884. package/dist/schema-utils/lib/table/tables/convert-arrow-table.d.ts +24 -0
  885. package/dist/schema-utils/lib/table/tables/convert-arrow-table.d.ts.map +1 -0
  886. package/dist/schema-utils/lib/table/tables/convert-arrow-table.js +151 -0
  887. package/dist/schema-utils/lib/table/tables/convert-arrow-table.js.map +1 -0
  888. package/dist/schema-utils/lib/table/tables/convert-table.d.ts +43 -0
  889. package/dist/schema-utils/lib/table/tables/convert-table.d.ts.map +1 -0
  890. package/dist/schema-utils/lib/table/tables/convert-table.js +122 -0
  891. package/dist/schema-utils/lib/table/tables/convert-table.js.map +1 -0
  892. package/dist/schema-utils/lib/table/tables/make-table.d.ts +67 -0
  893. package/dist/schema-utils/lib/table/tables/make-table.d.ts.map +1 -0
  894. package/dist/schema-utils/lib/table/tables/make-table.js +102 -0
  895. package/dist/schema-utils/lib/table/tables/make-table.js.map +1 -0
  896. package/dist/schema-utils/lib/table/tables/row-utils.d.ts +15 -0
  897. package/dist/schema-utils/lib/table/tables/row-utils.d.ts.map +1 -0
  898. package/dist/schema-utils/lib/table/tables/row-utils.js +50 -0
  899. package/dist/schema-utils/lib/table/tables/row-utils.js.map +1 -0
  900. package/dist/schema-utils/lib/table/tables/table-accessors.d.ts +68 -0
  901. package/dist/schema-utils/lib/table/tables/table-accessors.d.ts.map +1 -0
  902. package/dist/schema-utils/lib/table/tables/table-accessors.js +352 -0
  903. package/dist/schema-utils/lib/table/tables/table-accessors.js.map +1 -0
  904. package/dist/schema-utils/lib/table/tables/table-column.d.ts +7 -0
  905. package/dist/schema-utils/lib/table/tables/table-column.d.ts.map +1 -0
  906. package/dist/schema-utils/lib/table/tables/table-column.js +40 -0
  907. package/dist/schema-utils/lib/table/tables/table-column.js.map +1 -0
  908. package/dist/schema-utils/lib/table/tables/table-converter/convert-tables.d.ts +9 -0
  909. package/dist/schema-utils/lib/table/tables/table-converter/convert-tables.d.ts.map +1 -0
  910. package/dist/schema-utils/lib/table/tables/table-converter/convert-tables.js +19 -0
  911. package/dist/schema-utils/lib/table/tables/table-converter/convert-tables.js.map +1 -0
  912. package/dist/schema-utils/lib/table/tables/table-converter/table-converter.d.ts +16 -0
  913. package/dist/schema-utils/lib/table/tables/table-converter/table-converter.d.ts.map +1 -0
  914. package/dist/schema-utils/lib/table/tables/table-converter/table-converter.js +45 -0
  915. package/dist/schema-utils/lib/table/tables/table-converter/table-converter.js.map +1 -0
  916. package/dist/schema-utils/lib/table/tables/table-types.d.ts +12 -0
  917. package/dist/schema-utils/lib/table/tables/table-types.d.ts.map +1 -0
  918. package/dist/schema-utils/lib/table/tables/table-types.js +24 -0
  919. package/dist/schema-utils/lib/table/tables/table-types.js.map +1 -0
  920. package/dist/schema-utils/lib/utils/assert.d.ts +2 -0
  921. package/dist/schema-utils/lib/utils/assert.d.ts.map +1 -0
  922. package/dist/schema-utils/lib/utils/assert.js +12 -0
  923. package/dist/schema-utils/lib/utils/assert.js.map +1 -0
  924. package/dist/schema-utils/lib/utils/async-queue.d.ts +18 -0
  925. package/dist/schema-utils/lib/utils/async-queue.d.ts.map +1 -0
  926. package/dist/schema-utils/lib/utils/async-queue.js +96 -0
  927. package/dist/schema-utils/lib/utils/async-queue.js.map +1 -0
  928. package/dist/schema-utils/types/types.d.ts +15 -0
  929. package/dist/schema-utils/types/types.d.ts.map +1 -0
  930. package/dist/schema-utils/types/types.js +5 -0
  931. package/dist/schema-utils/types/types.js.map +1 -0
  932. package/dist/worker-utils/index.cjs +1569 -0
  933. package/dist/worker-utils/index.cjs.map +6 -0
  934. package/dist/worker-utils/index.d.ts +22 -0
  935. package/dist/worker-utils/index.d.ts.map +1 -0
  936. package/dist/worker-utils/index.js +40 -0
  937. package/dist/worker-utils/index.js.map +1 -0
  938. package/dist/worker-utils/lib/async-queue/async-queue.d.ts +32 -0
  939. package/dist/worker-utils/lib/async-queue/async-queue.d.ts.map +1 -0
  940. package/dist/worker-utils/lib/async-queue/async-queue.js +91 -0
  941. package/dist/worker-utils/lib/async-queue/async-queue.js.map +1 -0
  942. package/dist/worker-utils/lib/env-utils/assert.d.ts +3 -0
  943. package/dist/worker-utils/lib/env-utils/assert.d.ts.map +1 -0
  944. package/dist/worker-utils/lib/env-utils/assert.js +13 -0
  945. package/dist/worker-utils/lib/env-utils/assert.js.map +1 -0
  946. package/dist/worker-utils/lib/env-utils/globals.d.ts +22 -0
  947. package/dist/worker-utils/lib/env-utils/globals.d.ts.map +1 -0
  948. package/dist/worker-utils/lib/env-utils/globals.js +30 -0
  949. package/dist/worker-utils/lib/env-utils/globals.js.map +1 -0
  950. package/dist/worker-utils/lib/env-utils/version.d.ts +2 -0
  951. package/dist/worker-utils/lib/env-utils/version.d.ts.map +1 -0
  952. package/dist/worker-utils/lib/env-utils/version.js +20 -0
  953. package/dist/worker-utils/lib/env-utils/version.js.map +1 -0
  954. package/dist/worker-utils/lib/library-utils/library-utils.d.ts +42 -0
  955. package/dist/worker-utils/lib/library-utils/library-utils.d.ts.map +1 -0
  956. package/dist/worker-utils/lib/library-utils/library-utils.js +248 -0
  957. package/dist/worker-utils/lib/library-utils/library-utils.js.map +1 -0
  958. package/dist/worker-utils/lib/node/worker_threads-browser.d.ts +14 -0
  959. package/dist/worker-utils/lib/node/worker_threads-browser.d.ts.map +1 -0
  960. package/dist/worker-utils/lib/node/worker_threads-browser.js +22 -0
  961. package/dist/worker-utils/lib/node/worker_threads-browser.js.map +1 -0
  962. package/dist/worker-utils/lib/node/worker_threads.d.ts +15 -0
  963. package/dist/worker-utils/lib/node/worker_threads.d.ts.map +1 -0
  964. package/dist/worker-utils/lib/node/worker_threads.js +16 -0
  965. package/dist/worker-utils/lib/node/worker_threads.js.map +1 -0
  966. package/dist/worker-utils/lib/npm-tag.d.ts +8 -0
  967. package/dist/worker-utils/lib/npm-tag.d.ts.map +1 -0
  968. package/dist/worker-utils/lib/npm-tag.js +11 -0
  969. package/dist/worker-utils/lib/npm-tag.js.map +1 -0
  970. package/dist/worker-utils/lib/process-utils/child-process-proxy.browser.d.ts +8 -0
  971. package/dist/worker-utils/lib/process-utils/child-process-proxy.browser.d.ts.map +1 -0
  972. package/dist/worker-utils/lib/process-utils/child-process-proxy.browser.js +18 -0
  973. package/dist/worker-utils/lib/process-utils/child-process-proxy.browser.js.map +1 -0
  974. package/dist/worker-utils/lib/process-utils/child-process-proxy.d.ts +45 -0
  975. package/dist/worker-utils/lib/process-utils/child-process-proxy.d.ts.map +1 -0
  976. package/dist/worker-utils/lib/process-utils/child-process-proxy.js +123 -0
  977. package/dist/worker-utils/lib/process-utils/child-process-proxy.js.map +1 -0
  978. package/dist/worker-utils/lib/process-utils/process-utils.d.ts +2 -0
  979. package/dist/worker-utils/lib/process-utils/process-utils.d.ts.map +1 -0
  980. package/dist/worker-utils/lib/process-utils/process-utils.js +32 -0
  981. package/dist/worker-utils/lib/process-utils/process-utils.js.map +1 -0
  982. package/dist/worker-utils/lib/worker-api/create-worker.d.ts +9 -0
  983. package/dist/worker-utils/lib/worker-api/create-worker.d.ts.map +1 -0
  984. package/dist/worker-utils/lib/worker-api/create-worker.js +161 -0
  985. package/dist/worker-utils/lib/worker-api/create-worker.js.map +1 -0
  986. package/dist/worker-utils/lib/worker-api/get-worker-url.d.ts +29 -0
  987. package/dist/worker-utils/lib/worker-api/get-worker-url.d.ts.map +1 -0
  988. package/dist/worker-utils/lib/worker-api/get-worker-url.js +99 -0
  989. package/dist/worker-utils/lib/worker-api/get-worker-url.js.map +1 -0
  990. package/dist/worker-utils/lib/worker-api/process-on-worker.d.ts +50 -0
  991. package/dist/worker-utils/lib/worker-api/process-on-worker.d.ts.map +1 -0
  992. package/dist/worker-utils/lib/worker-api/process-on-worker.js +349 -0
  993. package/dist/worker-utils/lib/worker-api/process-on-worker.js.map +1 -0
  994. package/dist/worker-utils/lib/worker-api/validate-worker-version.d.ts +9 -0
  995. package/dist/worker-utils/lib/worker-api/validate-worker-version.d.ts.map +1 -0
  996. package/dist/worker-utils/lib/worker-api/validate-worker-version.js +35 -0
  997. package/dist/worker-utils/lib/worker-api/validate-worker-version.js.map +1 -0
  998. package/dist/worker-utils/lib/worker-farm/worker-body.d.ts +20 -0
  999. package/dist/worker-utils/lib/worker-farm/worker-body.d.ts.map +1 -0
  1000. package/dist/worker-utils/lib/worker-farm/worker-body.js +131 -0
  1001. package/dist/worker-utils/lib/worker-farm/worker-body.js.map +1 -0
  1002. package/dist/worker-utils/lib/worker-farm/worker-farm.d.ts +58 -0
  1003. package/dist/worker-utils/lib/worker-farm/worker-farm.d.ts.map +1 -0
  1004. package/dist/worker-utils/lib/worker-farm/worker-farm.js +116 -0
  1005. package/dist/worker-utils/lib/worker-farm/worker-farm.js.map +1 -0
  1006. package/dist/worker-utils/lib/worker-farm/worker-job.d.ts +34 -0
  1007. package/dist/worker-utils/lib/worker-farm/worker-job.d.ts.map +1 -0
  1008. package/dist/worker-utils/lib/worker-farm/worker-job.js +74 -0
  1009. package/dist/worker-utils/lib/worker-farm/worker-job.js.map +1 -0
  1010. package/dist/worker-utils/lib/worker-farm/worker-pool.d.ts +94 -0
  1011. package/dist/worker-utils/lib/worker-farm/worker-pool.d.ts.map +1 -0
  1012. package/dist/worker-utils/lib/worker-farm/worker-pool.js +246 -0
  1013. package/dist/worker-utils/lib/worker-farm/worker-pool.js.map +1 -0
  1014. package/dist/worker-utils/lib/worker-farm/worker-thread.d.ts +67 -0
  1015. package/dist/worker-utils/lib/worker-farm/worker-thread.d.ts.map +1 -0
  1016. package/dist/worker-utils/lib/worker-farm/worker-thread.js +175 -0
  1017. package/dist/worker-utils/lib/worker-farm/worker-thread.js.map +1 -0
  1018. package/dist/worker-utils/lib/worker-utils/get-loadable-worker-url.d.ts +14 -0
  1019. package/dist/worker-utils/lib/worker-utils/get-loadable-worker-url.d.ts.map +1 -0
  1020. package/dist/worker-utils/lib/worker-utils/get-loadable-worker-url.js +72 -0
  1021. package/dist/worker-utils/lib/worker-utils/get-loadable-worker-url.js.map +1 -0
  1022. package/dist/worker-utils/lib/worker-utils/get-transfer-list.d.ts +15 -0
  1023. package/dist/worker-utils/lib/worker-utils/get-transfer-list.d.ts.map +1 -0
  1024. package/dist/worker-utils/lib/worker-utils/get-transfer-list.js +86 -0
  1025. package/dist/worker-utils/lib/worker-utils/get-transfer-list.js.map +1 -0
  1026. package/dist/worker-utils/lib/worker-utils/remove-nontransferable-options.d.ts +6 -0
  1027. package/dist/worker-utils/lib/worker-utils/remove-nontransferable-options.d.ts.map +1 -0
  1028. package/dist/worker-utils/lib/worker-utils/remove-nontransferable-options.js +27 -0
  1029. package/dist/worker-utils/lib/worker-utils/remove-nontransferable-options.js.map +1 -0
  1030. package/dist/worker-utils/null-worker-node.js +383 -0
  1031. package/dist/worker-utils/null-worker-node.js.map +7 -0
  1032. package/dist/worker-utils/null-worker.js +361 -0
  1033. package/dist/worker-utils/null-worker.js.map +7 -0
  1034. package/dist/worker-utils/types.d.ts +100 -0
  1035. package/dist/worker-utils/types.d.ts.map +1 -0
  1036. package/dist/worker-utils/types.js +5 -0
  1037. package/dist/worker-utils/types.js.map +1 -0
  1038. package/dist/worker-utils/workers/null-worker.d.ts +2 -0
  1039. package/dist/worker-utils/workers/null-worker.d.ts.map +1 -0
  1040. package/dist/worker-utils/workers/null-worker.js +17 -0
  1041. package/dist/worker-utils/workers/null-worker.js.map +1 -0
  1042. package/dist/workers/null-worker-node.js +1 -1
  1043. package/dist/workers/null-worker-node.js.map +1 -1
  1044. package/dist/workers/null-worker.js +1 -1
  1045. package/dist/workers/null-worker.js.map +1 -1
  1046. package/package.json +101 -11
  1047. package/src/index.ts +10 -10
  1048. package/src/iterators/make-iterator/make-iterator.ts +1 -1
  1049. package/src/iterators/make-iterator/make-stream-iterator.ts +1 -1
  1050. package/src/iterators/make-iterator/make-string-iterator.ts +1 -1
  1051. package/src/lib/api/core-api.ts +1 -1
  1052. package/src/lib/api/create-data-source.ts +2 -2
  1053. package/src/lib/api/encode-table.ts +2 -2
  1054. package/src/lib/api/encode.ts +3 -3
  1055. package/src/lib/api/load-in-batches.ts +2 -2
  1056. package/src/lib/api/load-loader.ts +2 -2
  1057. package/src/lib/api/load.ts +2 -2
  1058. package/src/lib/api/parse-file.ts +5 -3
  1059. package/src/lib/api/parse-in-batches.ts +49 -11
  1060. package/src/lib/api/parse-sync.ts +2 -2
  1061. package/src/lib/api/parse.ts +8 -6
  1062. package/src/lib/api/preload.ts +6 -1
  1063. package/src/lib/api/register-loaders.ts +1 -1
  1064. package/src/lib/api/select-loader.ts +3 -3
  1065. package/src/lib/api/select-source.ts +1 -1
  1066. package/src/lib/common.ts +1 -1
  1067. package/src/lib/fetch/fetch-file.ts +2 -2
  1068. package/src/lib/filesystems/browser-filesystem.ts +2 -2
  1069. package/src/lib/init.ts +1 -1
  1070. package/src/lib/loader-utils/get-data.ts +2 -2
  1071. package/src/lib/loader-utils/get-fetch-function.ts +6 -4
  1072. package/src/lib/loader-utils/loader-context.ts +6 -2
  1073. package/src/lib/loader-utils/loggers.ts +1 -1
  1074. package/src/lib/loader-utils/normalize-loader.ts +2 -2
  1075. package/src/lib/loader-utils/option-defaults.ts +3 -2
  1076. package/src/lib/loader-utils/option-utils.ts +2 -2
  1077. package/src/lib/utils/resource-utils.ts +1 -1
  1078. package/src/lib/utils/response-utils.ts +1 -1
  1079. package/src/loader-utils/format-types.ts +49 -0
  1080. package/src/loader-utils/index.ts +523 -0
  1081. package/src/loader-utils/json-loader.ts +39 -0
  1082. package/src/loader-utils/lib/binary-utils/array-buffer-utils.ts +114 -0
  1083. package/src/loader-utils/lib/binary-utils/binary-chunk-reader.ts +297 -0
  1084. package/src/loader-utils/lib/binary-utils/dataview-copy-utils.ts +121 -0
  1085. package/src/loader-utils/lib/binary-utils/encode-array-buffer-to-base64.ts +17 -0
  1086. package/src/loader-utils/lib/binary-utils/get-first-characters.ts +46 -0
  1087. package/src/loader-utils/lib/binary-utils/hex-transcoder.ts +54 -0
  1088. package/src/loader-utils/lib/binary-utils/memory-conversion-utils.ts +105 -0
  1089. package/src/loader-utils/lib/binary-utils/memory-copy-utils.ts +69 -0
  1090. package/src/loader-utils/lib/crs/crs-reprojection.ts +52 -0
  1091. package/src/loader-utils/lib/env-utils/assert.ts +13 -0
  1092. package/src/loader-utils/lib/env-utils/globals.ts +36 -0
  1093. package/src/loader-utils/lib/file-provider/data-view-file.ts +83 -0
  1094. package/src/loader-utils/lib/file-provider/file-handle-file.ts +114 -0
  1095. package/src/loader-utils/lib/file-provider/file-provider-interface.ts +60 -0
  1096. package/src/loader-utils/lib/file-provider/file-provider.ts +130 -0
  1097. package/src/loader-utils/lib/files/array-buffer-file.ts +46 -0
  1098. package/src/loader-utils/lib/files/blob-file.ts +45 -0
  1099. package/src/loader-utils/lib/files/file.ts +39 -0
  1100. package/src/loader-utils/lib/files/http-file-transport.ts +432 -0
  1101. package/src/loader-utils/lib/files/http-file-types.ts +60 -0
  1102. package/src/loader-utils/lib/files/http-file.ts +267 -0
  1103. package/src/loader-utils/lib/files/node-file-facade.ts +57 -0
  1104. package/src/loader-utils/lib/files/sources.ts +154 -0
  1105. package/src/loader-utils/lib/filesystems/filesystem.ts +40 -0
  1106. package/src/loader-utils/lib/filesystems/node-filesystem-facade.ts +65 -0
  1107. package/src/loader-utils/lib/iterators/async-iteration.ts +136 -0
  1108. package/src/loader-utils/lib/iterators/text-iterators.ts +76 -0
  1109. package/src/loader-utils/lib/javascript-utils/is-type.ts +130 -0
  1110. package/src/loader-utils/lib/laz/LASZIP-LICENSE +202 -0
  1111. package/src/loader-utils/lib/laz/LASZIP-NOTICE +6 -0
  1112. package/src/loader-utils/lib/laz/laz-arithmetic-encoder.ts +446 -0
  1113. package/src/loader-utils/lib/laz/laz-chunk-decoder.ts +5251 -0
  1114. package/src/loader-utils/lib/laz/laz-chunk-encoder.ts +1909 -0
  1115. package/src/loader-utils/lib/log-utils/log.ts +28 -0
  1116. package/src/loader-utils/lib/module-utils/initialize-wasm-module.ts +51 -0
  1117. package/src/loader-utils/lib/module-utils/js-module-utils.ts +44 -0
  1118. package/src/loader-utils/lib/node/buffer.browser.ts +22 -0
  1119. package/src/loader-utils/lib/node/buffer.ts +40 -0
  1120. package/src/loader-utils/lib/node/fs.browser.ts +5 -0
  1121. package/src/loader-utils/lib/node/promisify.ts +72 -0
  1122. package/src/loader-utils/lib/node/stream.browser.ts +5 -0
  1123. package/src/loader-utils/lib/node/stream.ts +12 -0
  1124. package/src/loader-utils/lib/option-utils/merge-options.ts +50 -0
  1125. package/src/loader-utils/lib/parser-utils/parse-json.ts +16 -0
  1126. package/src/loader-utils/lib/path-utils/cached-uri-resolver.ts +69 -0
  1127. package/src/loader-utils/lib/path-utils/file-aliases.ts +49 -0
  1128. package/src/loader-utils/lib/path-utils/get-cwd.ts +12 -0
  1129. package/src/loader-utils/lib/path-utils/path.ts +173 -0
  1130. package/src/loader-utils/lib/request-utils/abort-utils.ts +64 -0
  1131. package/src/loader-utils/lib/request-utils/authentication.ts +134 -0
  1132. package/src/loader-utils/lib/request-utils/parse-content-type.ts +22 -0
  1133. package/src/loader-utils/lib/request-utils/range-request-cache.ts +279 -0
  1134. package/src/loader-utils/lib/request-utils/range-request-scheduler.ts +899 -0
  1135. package/src/loader-utils/lib/request-utils/request-cache.ts +296 -0
  1136. package/src/loader-utils/lib/request-utils/request-credentials.ts +574 -0
  1137. package/src/loader-utils/lib/request-utils/request-scheduler.ts +230 -0
  1138. package/src/loader-utils/lib/scan-utils/columnar-predicate.ts +397 -0
  1139. package/src/loader-utils/lib/scan-utils/experimental-scan-options.ts +46 -0
  1140. package/src/loader-utils/lib/scan-utils/point-cloud-query.ts +176 -0
  1141. package/src/loader-utils/lib/scan-utils/raster-query.ts +82 -0
  1142. package/src/loader-utils/lib/scan-utils/relational-query.ts +188 -0
  1143. package/src/loader-utils/lib/scan-utils/scan-executor.ts +208 -0
  1144. package/src/loader-utils/lib/scan-utils/scan-fragments.ts +33 -0
  1145. package/src/loader-utils/lib/scan-utils/scan-query-metadata.ts +439 -0
  1146. package/src/loader-utils/lib/scan-utils/table-query-explain.ts +88 -0
  1147. package/src/loader-utils/lib/scan-utils/table-query.ts +163 -0
  1148. package/src/loader-utils/lib/scan-utils/table-scan-batch.ts +200 -0
  1149. package/src/loader-utils/lib/sources/catalog-source.ts +42 -0
  1150. package/src/loader-utils/lib/sources/data-source-manager.ts +569 -0
  1151. package/src/loader-utils/lib/sources/data-source.ts +236 -0
  1152. package/src/loader-utils/lib/sources/image-source.ts +66 -0
  1153. package/src/loader-utils/lib/sources/image-tile-source.ts +22 -0
  1154. package/src/loader-utils/lib/sources/raster-coverage.ts +92 -0
  1155. package/src/loader-utils/lib/sources/raster-region.ts +35 -0
  1156. package/src/loader-utils/lib/sources/raster-sampling.ts +213 -0
  1157. package/src/loader-utils/lib/sources/raster-source.ts +344 -0
  1158. package/src/loader-utils/lib/sources/service-capabilities.ts +50 -0
  1159. package/src/loader-utils/lib/sources/tile-grid.ts +162 -0
  1160. package/src/loader-utils/lib/sources/tile-source-adapter.ts +126 -0
  1161. package/src/loader-utils/lib/sources/tile-source-utils.ts +19 -0
  1162. package/src/loader-utils/lib/sources/tile-source.ts +198 -0
  1163. package/src/loader-utils/lib/sources/utils/image-type.ts +14 -0
  1164. package/src/loader-utils/lib/sources/utils/utils.ts +31 -0
  1165. package/src/loader-utils/lib/sources/vector-source.ts +89 -0
  1166. package/src/loader-utils/lib/sources/vector-tile-source.ts +29 -0
  1167. package/src/loader-utils/lib/sources/xyz-grid.ts +82 -0
  1168. package/src/loader-utils/lib/worker-loader-utils/create-loader-worker.ts +256 -0
  1169. package/src/loader-utils/lib/worker-loader-utils/encode-with-worker.ts +28 -0
  1170. package/src/loader-utils/lib/worker-loader-utils/parse-with-worker.ts +392 -0
  1171. package/src/loader-utils/loader-types.ts +543 -0
  1172. package/src/loader-utils/source-types.ts +76 -0
  1173. package/src/loader-utils/types.ts +83 -0
  1174. package/src/loader-utils/workers/json-worker.ts +8 -0
  1175. package/src/loader-utils/writer-types.ts +107 -0
  1176. package/src/null-loader.ts +2 -2
  1177. package/src/polyfills/README.md +16 -0
  1178. package/src/polyfills/buffer/btoa.node.ts +15 -0
  1179. package/src/polyfills/buffer/to-array-buffer.node.ts +12 -0
  1180. package/src/polyfills/crypto/node-hash.ts +78 -0
  1181. package/src/polyfills/fetch/decode-data-uri.ts +71 -0
  1182. package/src/polyfills/fetch/fetch-polyfill.ts +165 -0
  1183. package/src/polyfills/fetch/headers-polyfill.ts +119 -0
  1184. package/src/polyfills/fetch/response-polyfill.ts +101 -0
  1185. package/src/polyfills/fetch/utils/decode-data-uri.node.ts +34 -0
  1186. package/src/polyfills/file/blob-stream-controller.ts +69 -0
  1187. package/src/polyfills/file/blob-stream.ts +40 -0
  1188. package/src/polyfills/file/blob.ts +177 -0
  1189. package/src/polyfills/file/file-reader.ts +59 -0
  1190. package/src/polyfills/file/file.ts +45 -0
  1191. package/src/polyfills/file/install-blob-polyfills.ts +17 -0
  1192. package/src/polyfills/file/install-file-polyfills.ts +24 -0
  1193. package/src/polyfills/file/readable-stream.ts +8 -0
  1194. package/src/polyfills/filesystems/fetch-node.ts +98 -0
  1195. package/src/polyfills/filesystems/node-file.ts +169 -0
  1196. package/src/polyfills/filesystems/node-filesystem.ts +54 -0
  1197. package/src/polyfills/filesystems/stream-utils.node.ts +81 -0
  1198. package/src/polyfills/images/encode-image-node.ts +45 -0
  1199. package/src/polyfills/images/encode-image.node.ts.disabled +41 -0
  1200. package/src/polyfills/images/image-codecs-node.ts +40 -0
  1201. package/src/polyfills/images/node-image-bitmap.ts +81 -0
  1202. package/src/polyfills/images/node-image-formats.ts +6 -0
  1203. package/src/polyfills/images/parse-image-node.ts +54 -0
  1204. package/src/polyfills/images/parse-image.node.ts.disabled +55 -0
  1205. package/src/polyfills/index.browser.ts +23 -0
  1206. package/src/polyfills/index.ts +154 -0
  1207. package/src/polyfills/libs/encoding-indexes-asian.js +15 -0
  1208. package/src/polyfills/load-library/require-utils.node.ts +108 -0
  1209. package/src/polyfills/streams/make-node-stream.ts +83 -0
  1210. package/src/polyfills/text-encoder/encoding-indexes.ts +36 -0
  1211. package/src/polyfills/text-encoder/text-encoder.ts +3085 -0
  1212. package/src/polyfills/utils/assert.ts +9 -0
  1213. package/src/polyfills/utils/buffer-utils.ts +40 -0
  1214. package/src/polyfills/utils/filesystem-types.ts +13 -0
  1215. package/src/polyfills/utils/is-browser.ts +8 -0
  1216. package/src/polyfills/utils/path-utils.ts +31 -0
  1217. package/src/polyfills/wip/fetch-browser/fetch-file.browser.d.ts +34 -0
  1218. package/src/schema/categories/category-gis.ts +63 -0
  1219. package/src/schema/categories/category-image.ts +23 -0
  1220. package/src/schema/categories/category-mesh.ts +138 -0
  1221. package/src/schema/categories/category-table.ts +125 -0
  1222. package/src/schema/categories/category-texture.ts +259 -0
  1223. package/src/schema/deprecated/mesh-utils.ts +46 -0
  1224. package/src/schema/float16.ts +111 -0
  1225. package/src/schema/geometry/arrow-binary-features.ts +54 -0
  1226. package/src/schema/geometry/binary-features.ts +43 -0
  1227. package/src/schema/geometry/binary-geometries.ts +45 -0
  1228. package/src/schema/geometry/flat-geometries.ts +72 -0
  1229. package/src/schema/geometry/geoarrow.ts +116 -0
  1230. package/src/schema/geospatial-metadata-zod-schema.ts +163 -0
  1231. package/src/schema/index.ts +169 -0
  1232. package/src/schema/metadata.ts +115 -0
  1233. package/src/schema/types/batch.ts +47 -0
  1234. package/src/schema/types/schema.ts +86 -0
  1235. package/src/schema/types/types.ts +52 -0
  1236. package/src/schema-utils/arrow-transport.ts +7 -0
  1237. package/src/schema-utils/deprecated.ts +53 -0
  1238. package/src/schema-utils/index.ts +165 -0
  1239. package/src/schema-utils/lib/arrow/arrow-table-transport.ts +260 -0
  1240. package/src/schema-utils/lib/arrow/split-arrow-buffers.ts +235 -0
  1241. package/src/schema-utils/lib/arrow-utils/arrow-fixed-size-list-utils.ts +78 -0
  1242. package/src/schema-utils/lib/arrow-utils/arrow-list-of-fixed-size-list-utils.ts +48 -0
  1243. package/src/schema-utils/lib/converters/convert.ts +142 -0
  1244. package/src/schema-utils/lib/converters/converters.ts +6 -0
  1245. package/src/schema-utils/lib/converters/types.ts +44 -0
  1246. package/src/schema-utils/lib/mesh/convert-mesh-to-table.ts +311 -0
  1247. package/src/schema-utils/lib/mesh/convert-table-to-mesh.ts +257 -0
  1248. package/src/schema-utils/lib/mesh/deduce-mesh-schema.ts +85 -0
  1249. package/src/schema-utils/lib/mesh/mesh-utils.ts +73 -0
  1250. package/src/schema-utils/lib/mesh/point-cloud-tiler.ts +485 -0
  1251. package/src/schema-utils/lib/schema/convert-arrow-schema.ts +552 -0
  1252. package/src/schema-utils/lib/schema/data-type.ts +122 -0
  1253. package/src/schema-utils/lib/schema/deduce-table-schema.ts +119 -0
  1254. package/src/schema-utils/lib/table/arrow-api/arrow-like-field.ts +53 -0
  1255. package/src/schema-utils/lib/table/arrow-api/arrow-like-interface.ts +84 -0
  1256. package/src/schema-utils/lib/table/arrow-api/arrow-like-schema.ts +101 -0
  1257. package/src/schema-utils/lib/table/arrow-api/arrow-like-table.ts +85 -0
  1258. package/src/schema-utils/lib/table/arrow-api/arrow-like-type.ts +500 -0
  1259. package/src/schema-utils/lib/table/arrow-api/enum.ts +99 -0
  1260. package/src/schema-utils/lib/table/arrow-api/get-type-info.ts +38 -0
  1261. package/src/schema-utils/lib/table/arrow-api/index.ts +50 -0
  1262. package/src/schema-utils/lib/table/batch-builder/arrow-table-batch-aggregator-builders.ts.disabled +190 -0
  1263. package/src/schema-utils/lib/table/batch-builder/arrow-table-batch-aggregator.ts +85 -0
  1264. package/src/schema-utils/lib/table/batch-builder/arrow-table-builder.ts +123 -0
  1265. package/src/schema-utils/lib/table/batch-builder/base-table-batch-aggregator.ts +82 -0
  1266. package/src/schema-utils/lib/table/batch-builder/columnar-table-batch-aggregator.ts +104 -0
  1267. package/src/schema-utils/lib/table/batch-builder/row-table-batch-aggregator.ts +108 -0
  1268. package/src/schema-utils/lib/table/batch-builder/table-batch-aggregator.ts +28 -0
  1269. package/src/schema-utils/lib/table/batch-builder/table-batch-builder.ts +185 -0
  1270. package/src/schema-utils/lib/table/batches/convert-batches.ts +83 -0
  1271. package/src/schema-utils/lib/table/batches/make-arrow-batch-iterator.ts +81 -0
  1272. package/src/schema-utils/lib/table/batches/make-table-batch-iterator.ts +25 -0
  1273. package/src/schema-utils/lib/table/batches/make-table-from-batches.ts +84 -0
  1274. package/src/schema-utils/lib/table/query-arrow-table.ts +130 -0
  1275. package/src/schema-utils/lib/table/tables/convert-arrow-table.ts +198 -0
  1276. package/src/schema-utils/lib/table/tables/convert-table.ts +152 -0
  1277. package/src/schema-utils/lib/table/tables/make-table.ts +127 -0
  1278. package/src/schema-utils/lib/table/tables/row-utils.ts +59 -0
  1279. package/src/schema-utils/lib/table/tables/table-accessors.ts +418 -0
  1280. package/src/schema-utils/lib/table/tables/table-column.ts +49 -0
  1281. package/src/schema-utils/lib/table/tables/table-converter/convert-tables.ts +35 -0
  1282. package/src/schema-utils/lib/table/tables/table-converter/table-converter.ts +57 -0
  1283. package/src/schema-utils/lib/table/tables/table-types.ts +37 -0
  1284. package/src/schema-utils/lib/utils/assert.ts +12 -0
  1285. package/src/schema-utils/lib/utils/async-queue.ts +109 -0
  1286. package/src/schema-utils/types/types.ts +45 -0
  1287. package/src/worker-utils/index.ts +82 -0
  1288. package/src/worker-utils/lib/async-queue/async-queue.ts +100 -0
  1289. package/src/worker-utils/lib/env-utils/assert.ts +14 -0
  1290. package/src/worker-utils/lib/env-utils/globals.ts +40 -0
  1291. package/src/worker-utils/lib/env-utils/version.ts +25 -0
  1292. package/src/worker-utils/lib/library-utils/library-utils.ts +303 -0
  1293. package/src/worker-utils/lib/node/worker_threads-browser.ts +34 -0
  1294. package/src/worker-utils/lib/node/worker_threads.ts +58 -0
  1295. package/src/worker-utils/lib/npm-tag.ts +11 -0
  1296. package/src/worker-utils/lib/process-utils/child-process-proxy.browser.ts +23 -0
  1297. package/src/worker-utils/lib/process-utils/child-process-proxy.ts +165 -0
  1298. package/src/worker-utils/lib/process-utils/process-utils.ts +34 -0
  1299. package/src/worker-utils/lib/worker-api/create-worker.ts +205 -0
  1300. package/src/worker-utils/lib/worker-api/get-worker-url.ts +128 -0
  1301. package/src/worker-utils/lib/worker-api/process-on-worker.ts +468 -0
  1302. package/src/worker-utils/lib/worker-api/validate-worker-version.ts +44 -0
  1303. package/src/worker-utils/lib/worker-farm/worker-body.ts +145 -0
  1304. package/src/worker-utils/lib/worker-farm/worker-farm.ts +144 -0
  1305. package/src/worker-utils/lib/worker-farm/worker-job.ts +85 -0
  1306. package/src/worker-utils/lib/worker-farm/worker-pool.ts +316 -0
  1307. package/src/worker-utils/lib/worker-farm/worker-thread.ts +206 -0
  1308. package/src/worker-utils/lib/worker-utils/get-loadable-worker-url.ts +81 -0
  1309. package/src/worker-utils/lib/worker-utils/get-transfer-list.ts +93 -0
  1310. package/src/worker-utils/lib/worker-utils/remove-nontransferable-options.ts +27 -0
  1311. package/src/worker-utils/types.ts +148 -0
  1312. package/src/worker-utils/workers/null-worker.ts +20 -0
  1313. package/src/workers/null-worker-node.ts +1 -1
  1314. package/src/workers/null-worker.ts +1 -1
@@ -0,0 +1,1569 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // dist/worker-utils/index.js
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
+ AsyncQueue: () => AsyncQueue,
24
+ ChildProcessProxy: () => ChildProcessProxy,
25
+ NullWorker: () => NullWorker,
26
+ WorkerBody: () => WorkerBody,
27
+ WorkerFarm: () => WorkerFarm,
28
+ WorkerJob: () => WorkerJob,
29
+ WorkerPool: () => WorkerPool,
30
+ WorkerThread: () => WorkerThread,
31
+ assert: () => assert,
32
+ canProcessOnWorker: () => canProcessOnWorker,
33
+ canProcessOnWorkerInBatches: () => canProcessOnWorkerInBatches,
34
+ createWorker: () => createWorker,
35
+ extractLoadLibraryOptions: () => extractLoadLibraryOptions,
36
+ getLibraryUrl: () => getLibraryUrl,
37
+ getTransferList: () => getTransferList,
38
+ getTransferListForWriter: () => getTransferListForWriter,
39
+ getWorkerURL: () => getWorkerURL,
40
+ isBrowser: () => isBrowser,
41
+ isWorker: () => isWorker,
42
+ loadLibrary: () => loadLibrary,
43
+ preloadWorker: () => preloadWorker,
44
+ processOnWorker: () => processOnWorker,
45
+ processOnWorkerInBatches: () => processOnWorkerInBatches,
46
+ validateWorkerVersion: () => validateWorkerVersion
47
+ });
48
+ module.exports = __toCommonJS(index_exports);
49
+
50
+ // dist/worker-utils/lib/npm-tag.js
51
+ var NPM_TAG = "latest";
52
+
53
+ // dist/worker-utils/lib/env-utils/version.js
54
+ function getVersion() {
55
+ var _a;
56
+ if (!((_a = globalThis._loadersgl_) == null ? void 0 : _a.version)) {
57
+ globalThis._loadersgl_ = globalThis._loadersgl_ || {};
58
+ if (false) {
59
+ globalThis._loadersgl_.version = NPM_TAG;
60
+ } else {
61
+ globalThis._loadersgl_.version = "5.0.0-alpha.14";
62
+ }
63
+ }
64
+ return globalThis._loadersgl_.version;
65
+ }
66
+ var VERSION = getVersion();
67
+
68
+ // dist/worker-utils/lib/env-utils/assert.js
69
+ function assert(condition, message) {
70
+ if (!condition) {
71
+ throw new Error(message || "loaders.gl assertion failed.");
72
+ }
73
+ }
74
+
75
+ // dist/worker-utils/lib/env-utils/globals.js
76
+ var globals = {
77
+ self: typeof self !== "undefined" && self,
78
+ window: typeof window !== "undefined" && window,
79
+ global: typeof global !== "undefined" && global,
80
+ document: typeof document !== "undefined" && document
81
+ };
82
+ var self_ = globals.self || globals.window || globals.global || {};
83
+ var window_ = globals.window || globals.self || globals.global || {};
84
+ var global_ = globals.global || globals.self || globals.window || {};
85
+ var document_ = globals.document || {};
86
+ var isBrowser = (
87
+ // @ts-ignore process.browser
88
+ typeof process !== "object" || String(process) !== "[object process]" || process.browser
89
+ );
90
+ var isWorker = typeof importScripts === "function";
91
+ var isMobile = typeof window !== "undefined" && typeof window.orientation !== "undefined";
92
+ var matches = typeof process !== "undefined" && process.version && /v([0-9]*)/.exec(process.version);
93
+ var nodeVersion = matches && parseFloat(matches[1]) || 0;
94
+
95
+ // dist/worker-utils/lib/worker-farm/worker-job.js
96
+ var WorkerJob = class {
97
+ name;
98
+ workerThread;
99
+ isRunning = true;
100
+ /** Promise that resolves when Job is done */
101
+ result;
102
+ _resolve = () => {
103
+ };
104
+ _reject = () => {
105
+ };
106
+ constructor(jobName, workerThread) {
107
+ this.name = jobName;
108
+ this.workerThread = workerThread;
109
+ this.result = new Promise((resolve, reject) => {
110
+ this._resolve = resolve;
111
+ this._reject = reject;
112
+ });
113
+ }
114
+ /**
115
+ * Send a message to the job's worker thread
116
+ * @param data any data structure, ideally consisting mostly of transferrable objects
117
+ */
118
+ postMessage(type, payload) {
119
+ if (!this.isRunning)
120
+ return;
121
+ this.workerThread.postMessage({
122
+ source: "loaders.gl",
123
+ // Lets worker ignore unrelated messages
124
+ type,
125
+ payload
126
+ });
127
+ }
128
+ /**
129
+ * Call to resolve the `result` Promise with the supplied value
130
+ */
131
+ done(value) {
132
+ if (!this.isRunning) {
133
+ return;
134
+ }
135
+ this.isRunning = false;
136
+ this._resolve(value);
137
+ }
138
+ /**
139
+ * Call to reject the `result` Promise with the supplied error
140
+ */
141
+ error(error) {
142
+ if (!this.isRunning) {
143
+ return;
144
+ }
145
+ this.isRunning = false;
146
+ this._reject(error);
147
+ }
148
+ /**
149
+ * Terminates the worker executing this job and rejects its result.
150
+ * @param reason Abort reason supplied by the caller, or a cross-runtime `AbortError`.
151
+ */
152
+ abort(reason) {
153
+ if (!this.isRunning) {
154
+ return;
155
+ }
156
+ this.workerThread.destroy();
157
+ this.error(arguments.length ? reason : createAbortError(`Worker job "${this.name}" was aborted`));
158
+ }
159
+ };
160
+ function createAbortError(message) {
161
+ const error = new Error(message);
162
+ error.name = "AbortError";
163
+ return error;
164
+ }
165
+
166
+ // dist/worker-utils/lib/node/worker_threads-browser.js
167
+ var NodeWorker = class {
168
+ /** Restores the native worker constructor when this browser shim is embedded in a Node bundle. */
169
+ constructor(...arguments_) {
170
+ var _a;
171
+ const runtimeProcess = globalThis.process;
172
+ const WorkerConstructor = (_a = runtimeProcess == null ? void 0 : runtimeProcess.getBuiltinModule) == null ? void 0 : _a.call(runtimeProcess, "node:worker_threads").Worker;
173
+ if (WorkerConstructor) {
174
+ return new WorkerConstructor(...arguments_);
175
+ }
176
+ }
177
+ /** No-op browser fallback matching the native Worker API. */
178
+ terminate() {
179
+ }
180
+ };
181
+ var parentPort = null;
182
+
183
+ // dist/worker-utils/lib/worker-utils/get-loadable-worker-url.js
184
+ var workerURLCache = /* @__PURE__ */ new Map();
185
+ function getLoadableWorkerURL(props) {
186
+ assert(props.source && !props.url || !props.source && props.url);
187
+ let workerURL = workerURLCache.get(props.source || props.url);
188
+ if (!workerURL) {
189
+ if (props.url) {
190
+ workerURL = getLoadableWorkerURLFromURL(props.url);
191
+ workerURLCache.set(props.url, workerURL);
192
+ }
193
+ if (props.source) {
194
+ workerURL = getLoadableWorkerURLFromSource(props.source);
195
+ workerURLCache.set(props.source, workerURL);
196
+ }
197
+ }
198
+ assert(workerURL);
199
+ return workerURL;
200
+ }
201
+ function getLoadableWorkerURLFromURL(url) {
202
+ if (!url.startsWith("http")) {
203
+ return url;
204
+ }
205
+ const workerSource = buildScriptSource(url);
206
+ return getLoadableWorkerURLFromSource(workerSource);
207
+ }
208
+ function getLoadableWorkerURLFromSource(workerSource) {
209
+ const blob = new Blob([workerSource], { type: "application/javascript" });
210
+ return URL.createObjectURL(blob);
211
+ }
212
+ function buildScriptSource(workerUrl) {
213
+ return `try {
214
+ importScripts('${workerUrl}');
215
+ } catch (error) {
216
+ console.error(error);
217
+ throw error;
218
+ }`;
219
+ }
220
+
221
+ // dist/worker-utils/lib/worker-utils/get-transfer-list.js
222
+ function getTransferList(object, recursive = true, transfers) {
223
+ const transfersSet = transfers || /* @__PURE__ */ new Set();
224
+ if (!object) {
225
+ } else if (isTransferable(object)) {
226
+ transfersSet.add(object);
227
+ } else if (isTransferable(object.buffer)) {
228
+ transfersSet.add(object.buffer);
229
+ } else if (ArrayBuffer.isView(object)) {
230
+ } else if (recursive && typeof object === "object") {
231
+ for (const key in object) {
232
+ getTransferList(object[key], recursive, transfersSet);
233
+ }
234
+ }
235
+ return transfers === void 0 ? Array.from(transfersSet) : [];
236
+ }
237
+ function isTransferable(object) {
238
+ if (!object) {
239
+ return false;
240
+ }
241
+ if (object instanceof ArrayBuffer) {
242
+ return true;
243
+ }
244
+ if (typeof MessagePort !== "undefined" && object instanceof MessagePort) {
245
+ return true;
246
+ }
247
+ if (typeof ImageBitmap !== "undefined" && object instanceof ImageBitmap) {
248
+ return true;
249
+ }
250
+ if (typeof OffscreenCanvas !== "undefined" && object instanceof OffscreenCanvas) {
251
+ return true;
252
+ }
253
+ return false;
254
+ }
255
+ function getTransferListForWriter(object) {
256
+ if (object === null) {
257
+ return {};
258
+ }
259
+ const clone = Object.assign({}, object);
260
+ Object.keys(clone).forEach((key) => {
261
+ if (typeof object[key] === "object" && !ArrayBuffer.isView(object[key]) && !(object[key] instanceof Array)) {
262
+ clone[key] = getTransferListForWriter(object[key]);
263
+ } else if (typeof clone[key] === "function" || clone[key] instanceof RegExp) {
264
+ clone[key] = {};
265
+ } else {
266
+ clone[key] = object[key];
267
+ }
268
+ });
269
+ return clone;
270
+ }
271
+
272
+ // dist/worker-utils/lib/worker-farm/worker-thread.js
273
+ var NOOP = () => {
274
+ };
275
+ var WorkerThread = class {
276
+ name;
277
+ source;
278
+ url;
279
+ /** Lazily resolves the classic worker URL used as a fallback. */
280
+ getUrl;
281
+ /** Creates a browser Worker directly. */
282
+ loadWorker;
283
+ terminated = false;
284
+ worker;
285
+ onMessage;
286
+ onError;
287
+ _loadableURL = "";
288
+ /** Checks if workers are supported on this platform */
289
+ static isSupported() {
290
+ return typeof Worker !== "undefined" && isBrowser || typeof NodeWorker !== "undefined" && !isBrowser;
291
+ }
292
+ constructor(props) {
293
+ const { name, source, url, getUrl, loadWorker } = props;
294
+ assert(source || url || getUrl || loadWorker);
295
+ this.name = name;
296
+ this.source = source;
297
+ this.url = url;
298
+ this.getUrl = getUrl;
299
+ this.loadWorker = loadWorker;
300
+ this.onMessage = NOOP;
301
+ this.onError = (error) => console.log(error);
302
+ this.worker = isBrowser ? this._createBrowserWorker() : this._createNodeWorker();
303
+ }
304
+ /**
305
+ * Terminate this worker thread
306
+ * @note Can free up significant memory
307
+ */
308
+ destroy() {
309
+ this.onMessage = NOOP;
310
+ this.onError = NOOP;
311
+ this.worker.terminate();
312
+ this.terminated = true;
313
+ }
314
+ /** Keeps this worker from preventing Node.js process exit while idle. */
315
+ unref() {
316
+ if (!isBrowser && typeof this.worker.unref === "function") {
317
+ this.worker.unref();
318
+ }
319
+ }
320
+ /** Keeps this worker alive while it is actively processing a job. */
321
+ ref() {
322
+ if (!isBrowser && typeof this.worker.ref === "function") {
323
+ this.worker.ref();
324
+ }
325
+ }
326
+ get isRunning() {
327
+ return Boolean(this.onMessage);
328
+ }
329
+ /**
330
+ * Send a message to this worker thread
331
+ * @param data any data structure, ideally consisting mostly of transferrable objects
332
+ * @param transferList If not supplied, calculated automatically by traversing data
333
+ */
334
+ postMessage(data, transferList) {
335
+ transferList = transferList || getTransferList(data);
336
+ this.worker.postMessage(data, transferList);
337
+ }
338
+ // PRIVATE
339
+ /**
340
+ * Generate a standard Error from an ErrorEvent
341
+ * @param event
342
+ */
343
+ _getErrorFromErrorEvent(event) {
344
+ let message = "Failed to load ";
345
+ message += `worker ${this.name} from ${this.url || "built-in worker factory"}. `;
346
+ if (event.message) {
347
+ message += `${event.message} in `;
348
+ }
349
+ if (event.lineno) {
350
+ message += `:${event.lineno}:${event.colno}`;
351
+ }
352
+ return new Error(message);
353
+ }
354
+ /**
355
+ * Creates a worker thread on the browser
356
+ */
357
+ _createBrowserWorker() {
358
+ var _a;
359
+ if (this.loadWorker) {
360
+ try {
361
+ const worker2 = this.loadWorker();
362
+ if (worker2) {
363
+ return this._initializeBrowserWorker(worker2);
364
+ }
365
+ } catch (error) {
366
+ if (!this.source && !this.url && !this.getUrl) {
367
+ throw error;
368
+ }
369
+ }
370
+ }
371
+ const url = this.url || ((_a = this.getUrl) == null ? void 0 : _a.call(this));
372
+ this._loadableURL = getLoadableWorkerURL({ source: this.source, url });
373
+ const worker = new Worker(this._loadableURL, { name: this.name });
374
+ return this._initializeBrowserWorker(worker);
375
+ }
376
+ /** Attaches protocol handlers to a browser worker. */
377
+ _initializeBrowserWorker(worker) {
378
+ worker.onmessage = (event) => {
379
+ if (!event.data) {
380
+ this.onError(new Error("No data received"));
381
+ } else {
382
+ this.onMessage(event.data);
383
+ }
384
+ };
385
+ worker.onerror = (error) => {
386
+ this.onError(this._getErrorFromErrorEvent(error));
387
+ this.terminated = true;
388
+ };
389
+ worker.onmessageerror = (event) => console.error(event);
390
+ return worker;
391
+ }
392
+ /**
393
+ * Creates a worker thread in node.js
394
+ * @todo https://nodejs.org/api/async_hooks.html#async-resource-worker-pool
395
+ */
396
+ _createNodeWorker() {
397
+ let worker;
398
+ if (this.url) {
399
+ const absolute = this.url.includes(":/") || this.url.startsWith("/");
400
+ const url = absolute ? this.url : `./${this.url}`;
401
+ const workerUrl = url.startsWith("file:") ? new URL(url) : url;
402
+ const type = this.url.endsWith(".ts") || this.url.endsWith(".mjs") ? "module" : "commonjs";
403
+ worker = new NodeWorker(workerUrl, { eval: false, type });
404
+ } else if (this.source) {
405
+ worker = new NodeWorker(this.source, { eval: true });
406
+ } else {
407
+ throw new Error("no worker");
408
+ }
409
+ worker.on("message", (data) => {
410
+ this.onMessage(data);
411
+ });
412
+ worker.on("error", (error) => {
413
+ this.onError(error);
414
+ });
415
+ worker.on("exit", (_code) => {
416
+ });
417
+ return worker;
418
+ }
419
+ };
420
+
421
+ // dist/worker-utils/lib/worker-farm/worker-pool.js
422
+ var WorkerPool = class {
423
+ name = "unnamed";
424
+ source;
425
+ // | Function;
426
+ url;
427
+ /** Lazily resolves a classic worker fallback URL. */
428
+ getUrl;
429
+ /** Creates a browser Worker directly. */
430
+ loadWorker;
431
+ maxConcurrency = 1;
432
+ maxMobileConcurrency = 1;
433
+ onDebug = () => {
434
+ };
435
+ reuseWorkers = true;
436
+ props = {};
437
+ jobQueue = [];
438
+ idleQueue = [];
439
+ activeJobs = /* @__PURE__ */ new Set();
440
+ count = 0;
441
+ isDestroyed = false;
442
+ /** Checks if workers are supported on this platform */
443
+ static isSupported() {
444
+ return WorkerThread.isSupported();
445
+ }
446
+ /**
447
+ * @param processor - worker function
448
+ * @param maxConcurrency - max count of workers
449
+ */
450
+ constructor(props) {
451
+ this.source = props.source;
452
+ this.url = props.url;
453
+ this.getUrl = props.getUrl;
454
+ this.loadWorker = props.loadWorker;
455
+ this.setProps(props);
456
+ }
457
+ /**
458
+ * Terminates all workers in the pool and aborts active jobs.
459
+ * @param reason Optional error delivered to active jobs.
460
+ * @note Can free up significant memory
461
+ */
462
+ destroy(reason = new Error("Worker pool was destroyed")) {
463
+ this.isDestroyed = true;
464
+ this.activeJobs.forEach((job) => job.abort(reason));
465
+ const queuedJobs = this.jobQueue.splice(0);
466
+ queuedJobs.forEach((queuedJob) => {
467
+ queuedJob.removeAbortListener();
468
+ queuedJob.onReject(reason);
469
+ });
470
+ this.idleQueue.forEach((worker) => worker.destroy());
471
+ this.isDestroyed = true;
472
+ }
473
+ setProps(props) {
474
+ this.props = { ...this.props, ...props };
475
+ if (props.name !== void 0) {
476
+ this.name = props.name;
477
+ }
478
+ if (props.maxConcurrency !== void 0) {
479
+ this.maxConcurrency = props.maxConcurrency;
480
+ }
481
+ if (props.maxMobileConcurrency !== void 0) {
482
+ this.maxMobileConcurrency = props.maxMobileConcurrency;
483
+ }
484
+ if (props.reuseWorkers !== void 0) {
485
+ this.reuseWorkers = props.reuseWorkers;
486
+ }
487
+ if (props.onDebug !== void 0) {
488
+ this.onDebug = props.onDebug;
489
+ }
490
+ }
491
+ async startJob(name, onMessage2 = (job, type, data) => job.done(data), onError = (job, error) => job.error(error), signal) {
492
+ if (signal == null ? void 0 : signal.aborted) {
493
+ throw signal.reason;
494
+ }
495
+ if (this.isDestroyed) {
496
+ return Promise.reject(new Error("Worker pool was destroyed"));
497
+ }
498
+ const startPromise = new Promise((onStart, onReject) => {
499
+ const abortQueuedJob = () => {
500
+ const index = this.jobQueue.indexOf(queuedJob);
501
+ if (index >= 0) {
502
+ this.jobQueue.splice(index, 1);
503
+ queuedJob.removeAbortListener();
504
+ onReject(signal == null ? void 0 : signal.reason);
505
+ }
506
+ };
507
+ const queuedJob = {
508
+ name,
509
+ onMessage: onMessage2,
510
+ onError,
511
+ onStart,
512
+ onReject,
513
+ signal,
514
+ removeAbortListener: () => signal == null ? void 0 : signal.removeEventListener("abort", abortQueuedJob)
515
+ };
516
+ this.jobQueue.push(queuedJob);
517
+ signal == null ? void 0 : signal.addEventListener("abort", abortQueuedJob, { once: true });
518
+ return this;
519
+ });
520
+ this._startQueuedJob();
521
+ return await startPromise;
522
+ }
523
+ // PRIVATE
524
+ /**
525
+ * Starts first queued job if worker is available or can be created
526
+ * Called when job is started and whenever a worker returns to the idleQueue
527
+ */
528
+ async _startQueuedJob() {
529
+ var _a, _b, _c;
530
+ if (!this.jobQueue.length) {
531
+ return;
532
+ }
533
+ let workerThread;
534
+ try {
535
+ workerThread = this._getAvailableWorker();
536
+ } catch (error) {
537
+ const queuedJob2 = this.jobQueue.shift();
538
+ queuedJob2 == null ? void 0 : queuedJob2.removeAbortListener();
539
+ queuedJob2 == null ? void 0 : queuedJob2.onReject(error);
540
+ void this._startQueuedJob();
541
+ return;
542
+ }
543
+ if (!workerThread) {
544
+ return;
545
+ }
546
+ const queuedJob = this.jobQueue.shift();
547
+ if (queuedJob) {
548
+ this.onDebug({
549
+ message: "Starting job",
550
+ name: queuedJob.name,
551
+ workerThread,
552
+ backlog: this.jobQueue.length
553
+ });
554
+ const job = new WorkerJob(queuedJob.name, workerThread);
555
+ queuedJob.removeAbortListener();
556
+ const abortJob = () => {
557
+ var _a2;
558
+ return job.abort((_a2 = queuedJob.signal) == null ? void 0 : _a2.reason);
559
+ };
560
+ (_a = queuedJob.signal) == null ? void 0 : _a.addEventListener("abort", abortJob, { once: true });
561
+ if ((_b = queuedJob.signal) == null ? void 0 : _b.aborted)
562
+ abortJob();
563
+ this.activeJobs.add(job);
564
+ workerThread.ref();
565
+ workerThread.onMessage = (data) => {
566
+ if (job.isRunning)
567
+ queuedJob.onMessage(job, data.type, data.payload);
568
+ };
569
+ workerThread.onError = (error) => queuedJob.onError(job, error);
570
+ queuedJob.onStart(job);
571
+ try {
572
+ await job.result;
573
+ } catch {
574
+ } finally {
575
+ (_c = queuedJob.signal) == null ? void 0 : _c.removeEventListener("abort", abortJob);
576
+ this.activeJobs.delete(job);
577
+ this.returnWorkerToQueue(workerThread);
578
+ }
579
+ } else {
580
+ this.returnWorkerToQueue(workerThread);
581
+ }
582
+ }
583
+ /**
584
+ * Returns a worker to the idle queue
585
+ * Destroys the worker if
586
+ * - pool is destroyed
587
+ * - if this pool doesn't reuse workers
588
+ * - if maxConcurrency has been lowered
589
+ * @param worker
590
+ */
591
+ returnWorkerToQueue(worker) {
592
+ const shouldDestroyWorker = (
593
+ // Aborted jobs terminate their worker immediately.
594
+ worker.terminated || // If the pool is destroyed, there is no reason to keep the worker around
595
+ this.isDestroyed || // If the app has disabled worker reuse, any completed workers should be destroyed
596
+ !this.reuseWorkers || // If concurrency has been lowered, this worker might be surplus to requirements
597
+ this.count > this._getMaxConcurrency()
598
+ );
599
+ if (shouldDestroyWorker) {
600
+ if (!worker.terminated) {
601
+ worker.destroy();
602
+ }
603
+ this.count--;
604
+ } else {
605
+ worker.unref();
606
+ this.idleQueue.push(worker);
607
+ }
608
+ if (!this.isDestroyed) {
609
+ this._startQueuedJob();
610
+ }
611
+ }
612
+ /**
613
+ * Returns idle worker or creates new worker if maxConcurrency has not been reached
614
+ */
615
+ _getAvailableWorker() {
616
+ if (this.idleQueue.length > 0) {
617
+ return this.idleQueue.shift() || null;
618
+ }
619
+ if (this.count < this._getMaxConcurrency()) {
620
+ this.count++;
621
+ const name = `${this.name.toLowerCase()} (#${this.count} of ${this.maxConcurrency})`;
622
+ try {
623
+ return new WorkerThread({
624
+ name,
625
+ source: this.source,
626
+ url: this.url,
627
+ getUrl: this.getUrl,
628
+ loadWorker: this.loadWorker
629
+ });
630
+ } catch (error) {
631
+ this.count--;
632
+ throw error;
633
+ }
634
+ }
635
+ return null;
636
+ }
637
+ _getMaxConcurrency() {
638
+ return isMobile ? this.maxMobileConcurrency : this.maxConcurrency;
639
+ }
640
+ };
641
+
642
+ // dist/worker-utils/lib/worker-farm/worker-farm.js
643
+ var DEFAULT_PROPS = {
644
+ maxConcurrency: 3,
645
+ maxMobileConcurrency: 1,
646
+ reuseWorkers: true,
647
+ onDebug: () => {
648
+ }
649
+ };
650
+ var loadWorkerIds = /* @__PURE__ */ new WeakMap();
651
+ var nextLoadWorkerId = 1;
652
+ var WorkerFarm = class _WorkerFarm {
653
+ props;
654
+ workerPools = /* @__PURE__ */ new Map();
655
+ // singleton
656
+ static _workerFarm;
657
+ /** Checks if workers are supported on this platform */
658
+ static isSupported() {
659
+ return WorkerThread.isSupported();
660
+ }
661
+ /** Get the singleton instance of the global worker farm */
662
+ static getWorkerFarm(props = {}) {
663
+ _WorkerFarm._workerFarm = _WorkerFarm._workerFarm || new _WorkerFarm({});
664
+ _WorkerFarm._workerFarm.setProps(props);
665
+ return _WorkerFarm._workerFarm;
666
+ }
667
+ /** get global instance with WorkerFarm.getWorkerFarm() */
668
+ constructor(props) {
669
+ this.props = { ...DEFAULT_PROPS };
670
+ this.setProps(props);
671
+ this.workerPools = /* @__PURE__ */ new Map();
672
+ }
673
+ /**
674
+ * Terminate all workers in the farm and abort active jobs.
675
+ * @param reason Optional error delivered to active jobs.
676
+ * @note Can free up significant memory
677
+ */
678
+ destroy(reason) {
679
+ for (const workerPool of this.workerPools.values()) {
680
+ workerPool.destroy(reason);
681
+ }
682
+ this.workerPools = /* @__PURE__ */ new Map();
683
+ }
684
+ /**
685
+ * Set props used when initializing worker pools
686
+ * @param props
687
+ */
688
+ setProps(props) {
689
+ this.props = { ...this.props, ...props };
690
+ for (const workerPool of this.workerPools.values()) {
691
+ workerPool.setProps(this._getWorkerPoolProps());
692
+ }
693
+ }
694
+ /**
695
+ * Returns a worker pool for the specified worker
696
+ * @param options Worker target used to identify and initialize the pool.
697
+ * @param options.name Worker name used as the base pool identity.
698
+ * @param options.url Worker script URL.
699
+ * @param options.source Inline worker source.
700
+ * @param options.loadWorker Built-in browser worker factory.
701
+ * @example
702
+ * const job = WorkerFarm.getWorkerFarm().getWorkerPool({name, url}).startJob(...);
703
+ */
704
+ getWorkerPool(options) {
705
+ const { name, source, url, getUrl, loadWorker } = options;
706
+ const workerPoolKey = getWorkerPoolKey(options);
707
+ let workerPool = this.workerPools.get(workerPoolKey);
708
+ if (!workerPool) {
709
+ workerPool = new WorkerPool({
710
+ name,
711
+ source,
712
+ url,
713
+ getUrl,
714
+ loadWorker
715
+ });
716
+ workerPool.setProps(this._getWorkerPoolProps());
717
+ this.workerPools.set(workerPoolKey, workerPool);
718
+ }
719
+ return workerPool;
720
+ }
721
+ _getWorkerPoolProps() {
722
+ return {
723
+ maxConcurrency: this.props.maxConcurrency,
724
+ maxMobileConcurrency: this.props.maxMobileConcurrency,
725
+ reuseWorkers: this.props.reuseWorkers,
726
+ onDebug: this.props.onDebug
727
+ };
728
+ }
729
+ };
730
+ function getWorkerPoolKey(options) {
731
+ const { name, source, url, urlKey, loadWorker } = options;
732
+ const sourceKey = source ? `source:${source}` : "";
733
+ const urlKeyPart = url || urlKey ? `url:${url || urlKey}` : "";
734
+ const loadWorkerKey = loadWorker ? `loadWorker:${getLoadWorkerId(loadWorker)}` : "";
735
+ return [name, sourceKey, urlKeyPart, loadWorkerKey].filter(Boolean).join("|");
736
+ }
737
+ function getLoadWorkerId(loadWorker) {
738
+ let loadWorkerId = loadWorkerIds.get(loadWorker);
739
+ if (!loadWorkerId) {
740
+ loadWorkerId = nextLoadWorkerId++;
741
+ loadWorkerIds.set(loadWorker, loadWorkerId);
742
+ }
743
+ return loadWorkerId;
744
+ }
745
+
746
+ // dist/worker-utils/lib/worker-farm/worker-body.js
747
+ async function getParentPort() {
748
+ return parentPort;
749
+ }
750
+ var onMessageWrapperMap = /* @__PURE__ */ new Map();
751
+ var WorkerBody = class {
752
+ /** Check that we are actually in a worker thread */
753
+ static async inWorkerThread() {
754
+ return typeof self !== "undefined" || Boolean(await getParentPort());
755
+ }
756
+ /*
757
+ * (type: WorkerMessageType, payload: WorkerMessagePayload) => any
758
+ */
759
+ static set onmessage(onMessage2) {
760
+ async function handleMessage(message) {
761
+ const parentPort2 = await getParentPort();
762
+ const { type, payload } = parentPort2 ? message : message.data;
763
+ onMessage2(type, payload);
764
+ }
765
+ getParentPort().then((parentPort2) => {
766
+ if (parentPort2) {
767
+ parentPort2.on("message", (message) => {
768
+ handleMessage(message);
769
+ });
770
+ parentPort2.on("exit", () => console.debug("Node worker closing"));
771
+ } else {
772
+ globalThis.onmessage = handleMessage;
773
+ }
774
+ });
775
+ }
776
+ static async addEventListener(onMessage2) {
777
+ let onMessageWrapper = onMessageWrapperMap.get(onMessage2);
778
+ if (!onMessageWrapper) {
779
+ onMessageWrapper = (message) => {
780
+ const messageData = getWorkerMessageData(message);
781
+ if (!messageData) {
782
+ return;
783
+ }
784
+ onMessage2(messageData.type, messageData.payload);
785
+ };
786
+ onMessageWrapperMap.set(onMessage2, onMessageWrapper);
787
+ }
788
+ const parentPort2 = await getParentPort();
789
+ if (parentPort2) {
790
+ parentPort2.on("message", onMessageWrapper);
791
+ } else {
792
+ globalThis.addEventListener("message", onMessageWrapper);
793
+ }
794
+ }
795
+ static async removeEventListener(onMessage2) {
796
+ const onMessageWrapper = onMessageWrapperMap.get(onMessage2);
797
+ onMessageWrapperMap.delete(onMessage2);
798
+ if (!onMessageWrapper) {
799
+ return;
800
+ }
801
+ const parentPort2 = await getParentPort();
802
+ if (parentPort2) {
803
+ parentPort2.off("message", onMessageWrapper);
804
+ } else {
805
+ globalThis.removeEventListener("message", onMessageWrapper);
806
+ }
807
+ }
808
+ /**
809
+ * Send a message from a worker to creating thread (main thread)
810
+ * @param type
811
+ * @param payload
812
+ */
813
+ static async postMessage(type, payload) {
814
+ const data = { source: "loaders.gl", type, payload };
815
+ const transferList = getTransferList(payload);
816
+ const parentPort2 = await getParentPort();
817
+ if (parentPort2) {
818
+ parentPort2.postMessage(data, transferList);
819
+ } else {
820
+ globalThis.postMessage(data, transferList);
821
+ }
822
+ }
823
+ };
824
+ function getWorkerMessageData(message) {
825
+ if (!message || typeof message !== "object") {
826
+ return null;
827
+ }
828
+ const messageData = "data" in message && message.type === "message" ? message.data : message;
829
+ return messageData && typeof messageData.source === "string" && messageData.source.startsWith("loaders.gl") ? messageData : null;
830
+ }
831
+
832
+ // dist/worker-utils/lib/async-queue/async-queue.js
833
+ var AsyncQueue = class {
834
+ _values;
835
+ _settlers;
836
+ _closed;
837
+ constructor() {
838
+ this._values = [];
839
+ this._settlers = [];
840
+ this._closed = false;
841
+ }
842
+ /** Return an async iterator for this queue */
843
+ [Symbol.asyncIterator]() {
844
+ return this;
845
+ }
846
+ /** Push a new value - the async iterator will yield a promise resolved to this value */
847
+ push(value) {
848
+ return this.enqueue(value);
849
+ }
850
+ /**
851
+ * Push a new value - the async iterator will yield a promise resolved to this value
852
+ * Add an error - the async iterator will yield a promise rejected with this value
853
+ */
854
+ enqueue(value) {
855
+ if (this._closed) {
856
+ throw new Error("Closed");
857
+ }
858
+ if (this._settlers.length > 0) {
859
+ if (this._values.length > 0) {
860
+ throw new Error("Illegal internal state");
861
+ }
862
+ const settler = this._settlers.shift();
863
+ if (value instanceof Error) {
864
+ settler.reject(value);
865
+ } else {
866
+ settler.resolve({ value });
867
+ }
868
+ } else {
869
+ this._values.push(value);
870
+ }
871
+ }
872
+ /** Indicate that we not waiting for more values - The async iterator will be done */
873
+ close() {
874
+ while (this._settlers.length > 0) {
875
+ const settler = this._settlers.shift();
876
+ settler.resolve({ done: true });
877
+ }
878
+ this._closed = true;
879
+ }
880
+ // ITERATOR IMPLEMENTATION
881
+ /** @returns a Promise for an IteratorResult */
882
+ next() {
883
+ if (this._values.length > 0) {
884
+ const value = this._values.shift();
885
+ if (value instanceof Error) {
886
+ return Promise.reject(value);
887
+ }
888
+ return Promise.resolve({ done: false, value });
889
+ }
890
+ if (this._closed) {
891
+ if (this._settlers.length > 0) {
892
+ throw new Error("Illegal internal state");
893
+ }
894
+ return Promise.resolve({ done: true, value: void 0 });
895
+ }
896
+ return new Promise((resolve, reject) => {
897
+ this._settlers.push({ resolve, reject });
898
+ });
899
+ }
900
+ };
901
+
902
+ // dist/worker-utils/lib/worker-api/get-worker-url.js
903
+ var warnedWorkerVersionFallbacks = /* @__PURE__ */ new Set();
904
+ function getWorkerName(worker) {
905
+ const warning = worker.version !== VERSION ? ` (worker-utils@${VERSION})` : "";
906
+ return `${worker.name}@${worker.version}${warning}`;
907
+ }
908
+ function getCustomWorkerURL(worker, options = {}) {
909
+ var _a, _b;
910
+ const workerFile = isBrowser ? worker.workerFile || `${worker.id}-worker.js` : worker.workerNode || `${worker.id}-worker-node.js`;
911
+ let url = getConfiguredWorkerURL(worker, options);
912
+ const workerType = options._workerType || ((_a = options == null ? void 0 : options.core) == null ? void 0 : _a._workerType);
913
+ if (!url && workerType === "test") {
914
+ if (isBrowser) {
915
+ url = `modules/${worker.module}/dist/${workerFile}`;
916
+ } else {
917
+ const workerSourceDirectory = worker.module === "core" && ((_b = worker.workerNode) == null ? void 0 : _b.startsWith("worker-utils/")) ? "worker-utils/workers" : "workers";
918
+ const workerSourceNode = worker.workerSourceNode || `${workerSourceDirectory}/${worker.id}-worker-node.ts`;
919
+ url = `modules/${worker.module}/src/${workerSourceNode}`;
920
+ }
921
+ }
922
+ return url || null;
923
+ }
924
+ function getConfiguredWorkerURL(worker, options = {}) {
925
+ const workerOptions = options[worker.id] || {};
926
+ return workerOptions.workerUrl || (worker.id === "compression" ? options.workerUrl : null) || null;
927
+ }
928
+ function getWorkerURL(worker, options = {}) {
929
+ const customWorkerUrl = getCustomWorkerURL(worker, options);
930
+ const descriptorWorkerUrl = typeof worker.worker === "string" ? worker.worker : null;
931
+ const url = customWorkerUrl || descriptorWorkerUrl || getDefaultWorkerURL(worker, true);
932
+ assert(url);
933
+ return url;
934
+ }
935
+ function getDefaultWorkerURL(worker, warn = false) {
936
+ const workerFile = isBrowser ? worker.workerFile || `${worker.id}-worker.js` : worker.workerNode || `${worker.id}-worker-node.js`;
937
+ let version = worker.version;
938
+ if (version === "latest") {
939
+ version = NPM_TAG;
940
+ }
941
+ const versionTag = version ? `@${version}` : "";
942
+ const url = `https://unpkg.com/@loaders.gl/${worker.module}${versionTag}/dist/${workerFile}`;
943
+ if (warn) {
944
+ warnIfUsingNpmTagFallback(worker, url);
945
+ }
946
+ return url;
947
+ }
948
+ function warnIfUsingNpmTagFallback(worker, url) {
949
+ if (worker.version !== "latest") {
950
+ return;
951
+ }
952
+ const workerId = `${worker.module}:${worker.id}`;
953
+ if (warnedWorkerVersionFallbacks.has(workerId)) {
954
+ return;
955
+ }
956
+ warnedWorkerVersionFallbacks.add(workerId);
957
+ console.warn(`loaders.gl: ${worker.name} loader worker version is "latest" because __VERSION__ was not injected. Fetching ${url} from CDN.`);
958
+ }
959
+
960
+ // dist/worker-utils/lib/worker-api/process-on-worker.js
961
+ function canProcessOnWorker(worker, options) {
962
+ if (!WorkerFarm.isSupported()) {
963
+ return false;
964
+ }
965
+ const workerOptions = options == null ? void 0 : options[worker.id];
966
+ return Boolean((worker.worker || worker.loadWorker || (workerOptions == null ? void 0 : workerOptions.workerUrl)) && (options == null ? void 0 : options.worker));
967
+ }
968
+ function canProcessOnWorkerInBatches(worker, options = {}) {
969
+ if (!canProcessOnWorker(worker, options))
970
+ return false;
971
+ if (options.workerInBatches !== void 0)
972
+ return options.workerInBatches;
973
+ return Boolean(worker.workerInBatches && !options.source && !getConfiguredWorkerURL(worker, options));
974
+ }
975
+ async function processOnWorker(worker, data, options = {}, context = {}, jobContext = {}) {
976
+ var _a;
977
+ throwIfAborted(options.signal);
978
+ const name = getWorkerName(worker);
979
+ const workerFarm = WorkerFarm.getWorkerFarm(options);
980
+ const workerPool = workerFarm.getWorkerPool(getWorkerPoolTarget(worker, options, name));
981
+ const jobName = options.jobName || worker.name;
982
+ const job = await workerPool.startJob(
983
+ jobName,
984
+ // eslint-disable-next-line
985
+ onMessage.bind(null, context, options),
986
+ void 0,
987
+ options.signal
988
+ );
989
+ try {
990
+ if ((_a = options.signal) == null ? void 0 : _a.aborted)
991
+ job.abort(getAbortReason(options.signal));
992
+ const { signal: _signal, onProgress: _onProgress, ...workerOptions } = options;
993
+ const transferableOptions = getTransferListForWriter(workerOptions);
994
+ const transferableContext = getTransferListForWriter(jobContext);
995
+ if (job.isRunning) {
996
+ job.postMessage("process", {
997
+ input: data,
998
+ options: transferableOptions,
999
+ context: transferableContext
1000
+ });
1001
+ }
1002
+ const result = await job.result;
1003
+ return result.result;
1004
+ } catch (error) {
1005
+ job.abort(error);
1006
+ throw error;
1007
+ }
1008
+ }
1009
+ function processOnWorkerInBatches(worker, input, options = {}, context = {}, jobContext = {}) {
1010
+ return processOnWorkerInBatchesIterator(worker, input, options, context, jobContext);
1011
+ }
1012
+ async function* processOnWorkerInBatchesIterator(worker, input, options, context, jobContext) {
1013
+ throwIfAborted(options.signal);
1014
+ const name = getWorkerName(worker);
1015
+ const workerFarm = WorkerFarm.getWorkerFarm(options);
1016
+ const workerPool = workerFarm.getWorkerPool(getWorkerPoolTarget(worker, options, name));
1017
+ const outputBatches = new AsyncQueue();
1018
+ const inputIterator = getAsyncIterator(input);
1019
+ let outputFinished = false;
1020
+ let inputFinished = false;
1021
+ let inputCleanupRequested = false;
1022
+ let inputRequest = Promise.resolve();
1023
+ const batchJobFailed = new Error("Worker batch job failed");
1024
+ const closeJobInput = () => {
1025
+ if (!inputFinished && !inputCleanupRequested) {
1026
+ inputCleanupRequested = true;
1027
+ closeInputIterator(inputIterator);
1028
+ }
1029
+ };
1030
+ const finishOutput = () => {
1031
+ if (!outputFinished) {
1032
+ outputFinished = true;
1033
+ outputBatches.close();
1034
+ }
1035
+ };
1036
+ const failOutput = (_error) => {
1037
+ if (!outputFinished) {
1038
+ outputFinished = true;
1039
+ outputBatches.enqueue(batchJobFailed);
1040
+ outputBatches.close();
1041
+ }
1042
+ };
1043
+ const job = await workerPool.startJob(options.jobName || worker.name, (activeJob, type, payload) => {
1044
+ switch (type) {
1045
+ case "progress":
1046
+ reportProgress(activeJob, options, payload);
1047
+ break;
1048
+ case "input-request":
1049
+ inputRequest = inputRequest.then(async () => {
1050
+ if (!activeJob.isRunning)
1051
+ return;
1052
+ const nextBatch = await inputIterator.next();
1053
+ if (!activeJob.isRunning) {
1054
+ return;
1055
+ }
1056
+ if (nextBatch.done) {
1057
+ inputFinished = true;
1058
+ activeJob.postMessage("input-done", {});
1059
+ } else {
1060
+ activeJob.postMessage("input-batch", { input: nextBatch.value });
1061
+ }
1062
+ }).catch((error) => activeJob.abort(error));
1063
+ break;
1064
+ case "output-batch":
1065
+ outputBatches.push(payload.result);
1066
+ break;
1067
+ case "done":
1068
+ activeJob.done(payload);
1069
+ finishOutput();
1070
+ break;
1071
+ case "error": {
1072
+ const error = new Error(payload.error || "Worker batch processing failed");
1073
+ activeJob.error(error);
1074
+ failOutput(error);
1075
+ break;
1076
+ }
1077
+ case "process":
1078
+ void onMessage(context, options, activeJob, type, payload);
1079
+ break;
1080
+ default: {
1081
+ const error = new Error(`Unexpected worker batch message: ${type}`);
1082
+ activeJob.error(error);
1083
+ failOutput(error);
1084
+ break;
1085
+ }
1086
+ }
1087
+ }, void 0, options.signal).catch((error) => {
1088
+ closeJobInput();
1089
+ throw error;
1090
+ });
1091
+ void job.result.catch((error) => {
1092
+ failOutput(error);
1093
+ closeJobInput();
1094
+ });
1095
+ try {
1096
+ const { signal: _signal, onProgress: _onProgress, ...workerOptions } = options;
1097
+ if (job.isRunning) {
1098
+ job.postMessage("process-in-batches", {
1099
+ options: getTransferListForWriter(workerOptions),
1100
+ context: getTransferListForWriter(jobContext)
1101
+ });
1102
+ }
1103
+ try {
1104
+ for await (const outputBatch of outputBatches) {
1105
+ yield outputBatch;
1106
+ if (job.isRunning) {
1107
+ job.postMessage("output-ack", {});
1108
+ }
1109
+ }
1110
+ } catch (error) {
1111
+ if (error === batchJobFailed) {
1112
+ await job.result;
1113
+ }
1114
+ throw error;
1115
+ }
1116
+ await job.result;
1117
+ } finally {
1118
+ if (job.isRunning) {
1119
+ job.abort(createAbortError2("Worker batch iterator was closed"));
1120
+ }
1121
+ closeJobInput();
1122
+ }
1123
+ }
1124
+ function throwIfAborted(signal) {
1125
+ if (!(signal == null ? void 0 : signal.aborted)) {
1126
+ return;
1127
+ }
1128
+ throw getAbortReason(signal);
1129
+ }
1130
+ function getAbortReason(signal) {
1131
+ return signal ? signal.reason : createAbortError2("Worker job was aborted");
1132
+ }
1133
+ function createAbortError2(message) {
1134
+ const error = new Error(message);
1135
+ error.name = "AbortError";
1136
+ return error;
1137
+ }
1138
+ function getAsyncIterator(input) {
1139
+ if (Symbol.asyncIterator in input) {
1140
+ return input[Symbol.asyncIterator]();
1141
+ }
1142
+ return (async function* iterateSynchronously() {
1143
+ yield* input;
1144
+ })();
1145
+ }
1146
+ function closeInputIterator(inputIterator) {
1147
+ var _a;
1148
+ try {
1149
+ void Promise.resolve((_a = inputIterator.return) == null ? void 0 : _a.call(inputIterator)).catch(() => void 0);
1150
+ } catch {
1151
+ }
1152
+ }
1153
+ async function preloadWorker(worker, options = {}, preloadOptions = {}) {
1154
+ var _a;
1155
+ const name = getWorkerName(worker);
1156
+ const workerFarm = WorkerFarm.getWorkerFarm(options);
1157
+ const workerPool = workerFarm.getWorkerPool(getWorkerPoolTarget(worker, options, name));
1158
+ const count = preloadOptions.count ?? options.maxConcurrency ?? ((_a = options.core) == null ? void 0 : _a.maxConcurrency) ?? 1;
1159
+ const preloadJobs = Array.from({ length: count }, async () => {
1160
+ const job = await workerPool.startJob(`${worker.name} preload`, onPreloadMessage);
1161
+ job.postMessage("preload", {});
1162
+ return await job.result;
1163
+ });
1164
+ await Promise.all(preloadJobs);
1165
+ }
1166
+ function getWorkerPoolTarget(worker, options, name) {
1167
+ if (options.source) {
1168
+ return { name, source: options.source };
1169
+ }
1170
+ const customWorkerUrl = getCustomWorkerURL(worker, options);
1171
+ if (customWorkerUrl) {
1172
+ return { name, url: customWorkerUrl };
1173
+ }
1174
+ if (isBrowser && worker.loadWorker) {
1175
+ return {
1176
+ name,
1177
+ loadWorker: worker.loadWorker,
1178
+ getUrl: () => getWorkerURL(worker, options),
1179
+ urlKey: getDefaultWorkerURL(worker)
1180
+ };
1181
+ }
1182
+ return { name, url: getWorkerURL(worker, options) };
1183
+ }
1184
+ async function onMessage(context, options, job, type, payload) {
1185
+ switch (type) {
1186
+ case "progress":
1187
+ reportProgress(job, options, payload);
1188
+ break;
1189
+ case "done":
1190
+ job.done(payload);
1191
+ break;
1192
+ case "error":
1193
+ job.error(new Error(payload.error));
1194
+ break;
1195
+ case "process":
1196
+ const { id, input, options: processOptions } = payload;
1197
+ try {
1198
+ if (!context.process) {
1199
+ job.postMessage("error", { id, error: "Worker not set up to process on main thread" });
1200
+ return;
1201
+ }
1202
+ const result = await context.process(input, { ...processOptions, signal: options.signal, onProgress: options.onProgress }, void 0, payload.context || {});
1203
+ job.postMessage("done", { id, result });
1204
+ } catch (error) {
1205
+ const message = error instanceof Error ? error.message : "unknown error";
1206
+ job.postMessage("error", { id, error: message });
1207
+ }
1208
+ break;
1209
+ default:
1210
+ console.warn(`process-on-worker: unknown message ${type}`);
1211
+ }
1212
+ }
1213
+ function onPreloadMessage(job, type, payload) {
1214
+ switch (type) {
1215
+ case "done":
1216
+ job.done(payload);
1217
+ break;
1218
+ case "error":
1219
+ job.error(new Error(payload.error));
1220
+ break;
1221
+ default:
1222
+ console.warn(`process-on-worker: unknown preload message ${type}`);
1223
+ }
1224
+ }
1225
+ function reportProgress(job, options, payload) {
1226
+ var _a;
1227
+ if (!job.isRunning || !payload.progress)
1228
+ return;
1229
+ try {
1230
+ (_a = options.onProgress) == null ? void 0 : _a.call(options, payload.progress);
1231
+ } catch (error) {
1232
+ job.abort(error);
1233
+ }
1234
+ }
1235
+
1236
+ // dist/worker-utils/lib/worker-api/create-worker.js
1237
+ var requestId = 0;
1238
+ var activeInputBatches = null;
1239
+ var activeOutputAcknowledgements = null;
1240
+ async function createWorker(process2, processInBatches) {
1241
+ if (!await WorkerBody.inWorkerThread()) {
1242
+ return;
1243
+ }
1244
+ const context = {
1245
+ process: processOnMainThread
1246
+ };
1247
+ WorkerBody.onmessage = async (type, payload) => {
1248
+ const reporter = type === "process" || type === "process-in-batches" ? createProgressReporter() : void 0;
1249
+ const jobContext = { ...context, reportProgress: reporter == null ? void 0 : reporter.report };
1250
+ try {
1251
+ switch (type) {
1252
+ case "preload":
1253
+ WorkerBody.postMessage("done", {});
1254
+ break;
1255
+ case "process":
1256
+ if (!process2) {
1257
+ throw new Error("Worker does not support atomic processing");
1258
+ }
1259
+ const result = await process2(payload.input, payload.options || {}, jobContext, payload.context || {});
1260
+ reporter == null ? void 0 : reporter.finish();
1261
+ WorkerBody.postMessage("done", { result });
1262
+ break;
1263
+ case "process-in-batches":
1264
+ if (!processInBatches) {
1265
+ throw new Error("Worker does not support batched processing");
1266
+ }
1267
+ const inputBatches = new AsyncQueue();
1268
+ const outputAcknowledgements = new AsyncQueue();
1269
+ activeInputBatches = inputBatches;
1270
+ activeOutputAcknowledgements = outputAcknowledgements;
1271
+ try {
1272
+ const resultIterator = processInBatches(createDemandDrivenIterator(inputBatches), payload.options || {}, jobContext, payload.context || {});
1273
+ for await (const batch of resultIterator) {
1274
+ await WorkerBody.postMessage("output-batch", { result: batch });
1275
+ await outputAcknowledgements.next();
1276
+ }
1277
+ reporter == null ? void 0 : reporter.finish();
1278
+ await WorkerBody.postMessage("done", {});
1279
+ } finally {
1280
+ activeInputBatches = null;
1281
+ activeOutputAcknowledgements = null;
1282
+ }
1283
+ break;
1284
+ case "input-batch":
1285
+ if (!activeInputBatches) {
1286
+ throw new Error("Worker has no active batched processing session");
1287
+ }
1288
+ activeInputBatches.push(payload.input);
1289
+ break;
1290
+ case "input-done":
1291
+ if (!activeInputBatches) {
1292
+ throw new Error("Worker has no active batched processing session");
1293
+ }
1294
+ activeInputBatches.close();
1295
+ break;
1296
+ case "output-ack":
1297
+ if (!activeOutputAcknowledgements) {
1298
+ throw new Error("Worker has no active batched processing session");
1299
+ }
1300
+ activeOutputAcknowledgements.push(void 0);
1301
+ break;
1302
+ default:
1303
+ }
1304
+ } catch (error) {
1305
+ reporter == null ? void 0 : reporter.finish();
1306
+ const message = error instanceof Error ? error.message : "";
1307
+ WorkerBody.postMessage("error", { error: message });
1308
+ }
1309
+ };
1310
+ }
1311
+ async function* createDemandDrivenIterator(inputBatches) {
1312
+ while (true) {
1313
+ await WorkerBody.postMessage("input-request", {});
1314
+ const nextBatch = await inputBatches.next();
1315
+ if (nextBatch.done) {
1316
+ return;
1317
+ }
1318
+ yield nextBatch.value;
1319
+ }
1320
+ }
1321
+ function processOnMainThread(arrayBuffer, options = {}, jobContext = {}) {
1322
+ return new Promise((resolve, reject) => {
1323
+ const id = requestId++;
1324
+ const onMessage2 = (type, payload2) => {
1325
+ if (payload2.id !== id) {
1326
+ return;
1327
+ }
1328
+ switch (type) {
1329
+ case "done":
1330
+ WorkerBody.removeEventListener(onMessage2);
1331
+ resolve(payload2.result);
1332
+ break;
1333
+ case "error":
1334
+ WorkerBody.removeEventListener(onMessage2);
1335
+ reject(payload2.error);
1336
+ break;
1337
+ default:
1338
+ }
1339
+ };
1340
+ WorkerBody.addEventListener(onMessage2);
1341
+ const payload = { id, input: arrayBuffer, options, context: jobContext };
1342
+ WorkerBody.postMessage("process", payload);
1343
+ });
1344
+ }
1345
+ function createProgressReporter() {
1346
+ let pending;
1347
+ let finished = false;
1348
+ let scheduled = false;
1349
+ const flush = () => {
1350
+ scheduled = false;
1351
+ if (pending) {
1352
+ WorkerBody.postMessage("progress", { progress: pending });
1353
+ pending = void 0;
1354
+ }
1355
+ };
1356
+ return {
1357
+ /** Records progress while retaining phase transitions. */
1358
+ report(progress) {
1359
+ if (finished)
1360
+ return;
1361
+ if (pending && pending.phase !== progress.phase)
1362
+ flush();
1363
+ pending = { ...progress };
1364
+ if (!scheduled) {
1365
+ scheduled = true;
1366
+ setTimeout(flush, 0);
1367
+ }
1368
+ },
1369
+ /** Flushes final progress and suppresses reports from stale callbacks. */
1370
+ finish() {
1371
+ flush();
1372
+ finished = true;
1373
+ }
1374
+ };
1375
+ }
1376
+
1377
+ // dist/worker-utils/lib/worker-api/validate-worker-version.js
1378
+ function validateWorkerVersion(worker, coreVersion = VERSION) {
1379
+ assert(worker, "no worker provided");
1380
+ const workerVersion = worker.version;
1381
+ if (!coreVersion || !workerVersion) {
1382
+ return false;
1383
+ }
1384
+ return true;
1385
+ }
1386
+
1387
+ // dist/worker-utils/lib/library-utils/library-utils.js
1388
+ var loadLibraryPromises = {};
1389
+ function extractLoadLibraryOptions(options = {}) {
1390
+ var _a, _b;
1391
+ const useLocalLibraries = options.useLocalLibraries ?? ((_a = options.core) == null ? void 0 : _a.useLocalLibraries);
1392
+ const CDN = getCDNOption(options.CDN, (_b = options.core) == null ? void 0 : _b.CDN);
1393
+ const modules = options.modules;
1394
+ return {
1395
+ ...useLocalLibraries !== void 0 ? { useLocalLibraries } : {},
1396
+ ...CDN !== void 0 ? { CDN } : {},
1397
+ ...modules !== void 0 ? { modules } : {}
1398
+ };
1399
+ }
1400
+ function getCDNOption(cdn, coreCDN) {
1401
+ if (typeof cdn === "string" || cdn === null) {
1402
+ return cdn;
1403
+ }
1404
+ if (typeof coreCDN === "string" || coreCDN === null) {
1405
+ return coreCDN;
1406
+ }
1407
+ return void 0;
1408
+ }
1409
+ async function loadLibrary(libraryUrl, moduleName = null, options = {}, libraryName = null, moduleLibraryName = null) {
1410
+ var _a, _b;
1411
+ let moduleLibraryUrl = libraryUrl;
1412
+ if (moduleName) {
1413
+ const requestedLibraryName = libraryName || libraryUrl;
1414
+ const injectedLibrary = (_a = options.modules) == null ? void 0 : _a[requestedLibraryName];
1415
+ if (injectedLibrary !== void 0 && typeof injectedLibrary !== "string") {
1416
+ return injectedLibrary;
1417
+ }
1418
+ libraryUrl = getLibraryUrl(libraryUrl, moduleName, options, libraryName);
1419
+ const hasLibraryOverride = typeof injectedLibrary === "string";
1420
+ moduleLibraryUrl = moduleLibraryName && (!hasLibraryOverride || typeof ((_b = options.modules) == null ? void 0 : _b[moduleLibraryName]) === "string") ? getLibraryUrl(moduleLibraryName, moduleName, options, moduleLibraryName) : libraryUrl;
1421
+ }
1422
+ const cacheKey = getLibraryCacheKey(libraryUrl, moduleLibraryUrl, isWorker);
1423
+ loadLibraryPromises[cacheKey] = // eslint-disable-next-line @typescript-eslint/no-misused-promises
1424
+ loadLibraryPromises[cacheKey] || loadLibraryFromFile(libraryUrl, moduleLibraryUrl);
1425
+ return await loadLibraryPromises[cacheKey];
1426
+ }
1427
+ function getLibraryCacheKey(libraryUrl, moduleLibraryUrl, worker) {
1428
+ return worker ? JSON.stringify([libraryUrl, moduleLibraryUrl]) : libraryUrl;
1429
+ }
1430
+ function getLibraryUrl(library, moduleName, options = {}, libraryName = null) {
1431
+ if (options == null ? void 0 : options.core) {
1432
+ throw new Error("loadLibrary: options.core must be pre-normalized");
1433
+ }
1434
+ libraryName = libraryName || library;
1435
+ const modules = options.modules || {};
1436
+ if (typeof modules[libraryName] === "string") {
1437
+ return modules[libraryName];
1438
+ }
1439
+ if (!options.useLocalLibraries && library.startsWith("http")) {
1440
+ return library;
1441
+ }
1442
+ if (!isBrowser) {
1443
+ return `modules/${moduleName}/dist/libs/${libraryName}`;
1444
+ }
1445
+ if (options.CDN) {
1446
+ if (typeof options.CDN !== "string") {
1447
+ throw new Error("loadLibrary: options.CDN must be a string or null");
1448
+ }
1449
+ assert(options.CDN.startsWith("http"));
1450
+ return `${options.CDN}/${moduleName}@${VERSION}/dist/libs/${libraryName}`;
1451
+ }
1452
+ if (isWorker) {
1453
+ return libraryName.endsWith(".mjs") ? `./libs/${libraryName}` : `../src/libs/${libraryName}`;
1454
+ }
1455
+ return `modules/${moduleName}/src/libs/${libraryName}`;
1456
+ }
1457
+ async function loadLibraryFromFile(libraryUrl, moduleLibraryUrl) {
1458
+ if (libraryUrl.endsWith("wasm")) {
1459
+ return await loadAsArrayBuffer(libraryUrl);
1460
+ }
1461
+ if (!isBrowser) {
1462
+ const { requireFromFile } = globalThis.loaders || {};
1463
+ try {
1464
+ const result = await (requireFromFile == null ? void 0 : requireFromFile(libraryUrl));
1465
+ if (result || !libraryUrl.includes("/dist/libs/")) {
1466
+ return result;
1467
+ }
1468
+ return await (requireFromFile == null ? void 0 : requireFromFile(libraryUrl.replace("/dist/libs/", "/src/libs/")));
1469
+ } catch (error) {
1470
+ if (libraryUrl.includes("/dist/libs/")) {
1471
+ try {
1472
+ return await (requireFromFile == null ? void 0 : requireFromFile(libraryUrl.replace("/dist/libs/", "/src/libs/")));
1473
+ } catch {
1474
+ }
1475
+ }
1476
+ console.error(error);
1477
+ return null;
1478
+ }
1479
+ }
1480
+ if (isWorker) {
1481
+ return loadLibraryInWorker(libraryUrl, moduleLibraryUrl);
1482
+ }
1483
+ const scriptSource = await loadAsText(libraryUrl);
1484
+ return loadLibraryFromString(scriptSource, libraryUrl);
1485
+ }
1486
+ async function loadLibraryInWorker(libraryUrl, moduleLibraryUrl = libraryUrl) {
1487
+ try {
1488
+ importScripts();
1489
+ } catch {
1490
+ const moduleUrl = new URL(moduleLibraryUrl, globalThis.location.href).href;
1491
+ const library = await import(
1492
+ /* @vite-ignore */
1493
+ moduleUrl
1494
+ );
1495
+ return library.default ?? library;
1496
+ }
1497
+ return importScripts(libraryUrl);
1498
+ }
1499
+ function loadLibraryFromString(scriptSource, id) {
1500
+ const script = document.createElement("script");
1501
+ script.id = id;
1502
+ try {
1503
+ script.appendChild(document.createTextNode(scriptSource));
1504
+ } catch (_e) {
1505
+ script.text = scriptSource;
1506
+ }
1507
+ document.body.appendChild(script);
1508
+ return null;
1509
+ }
1510
+ async function loadAsArrayBuffer(url) {
1511
+ const { readFileAsArrayBuffer } = globalThis.loaders || {};
1512
+ if (isBrowser || !readFileAsArrayBuffer || url.startsWith("http")) {
1513
+ const response = await fetch(url);
1514
+ return await response.arrayBuffer();
1515
+ }
1516
+ try {
1517
+ return await readFileAsArrayBuffer(url);
1518
+ } catch {
1519
+ if (url.includes("/dist/libs/")) {
1520
+ return await readFileAsArrayBuffer(url.replace("/dist/libs/", "/src/libs/"));
1521
+ }
1522
+ throw new Error(`Failed to load ArrayBuffer from ${url}`);
1523
+ }
1524
+ }
1525
+ async function loadAsText(url) {
1526
+ const { readFileAsText } = globalThis.loaders || {};
1527
+ if (isBrowser || !readFileAsText || url.startsWith("http")) {
1528
+ const response = await fetch(url);
1529
+ return await response.text();
1530
+ }
1531
+ try {
1532
+ return await readFileAsText(url);
1533
+ } catch {
1534
+ if (url.includes("/dist/libs/")) {
1535
+ return await readFileAsText(url.replace("/dist/libs/", "/src/libs/"));
1536
+ }
1537
+ throw new Error(`Failed to load text from ${url}`);
1538
+ }
1539
+ }
1540
+
1541
+ // dist/worker-utils/lib/process-utils/child-process-proxy.browser.js
1542
+ var ChildProcessProxy = class {
1543
+ constructor() {
1544
+ throw new Error("ChildProcessProxy is not available in browser environments");
1545
+ }
1546
+ async start(props) {
1547
+ return await Promise.resolve({});
1548
+ }
1549
+ async stop() {
1550
+ return await Promise.resolve();
1551
+ }
1552
+ async exit() {
1553
+ return await Promise.resolve();
1554
+ }
1555
+ };
1556
+
1557
+ // dist/worker-utils/index.js
1558
+ var NullWorker = {
1559
+ id: "null",
1560
+ name: "null",
1561
+ module: "core",
1562
+ workerFile: "worker-utils/null-worker.js",
1563
+ workerNode: "worker-utils/null-worker-node.js",
1564
+ version: VERSION,
1565
+ options: {
1566
+ null: {}
1567
+ }
1568
+ };
1569
+ //# sourceMappingURL=index.cjs.map