@loaders.gl/scene 5.0.0-beta.4 → 5.0.0-beta.5

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 (177) hide show
  1. package/DRACO-README.md +1 -1
  2. package/GLTF-README.md +1 -1
  3. package/OBJ-README.md +1 -1
  4. package/README.md +6 -1
  5. package/THIRD-PARTY-NOTICES.md +6 -0
  6. package/dist/dist.dev.js +2958 -750
  7. package/dist/dist.min.js +18 -18
  8. package/dist/draco/draco-javascript-loader-with-parser.d.ts +2 -2
  9. package/dist/draco/draco-loader-types.cjs +3 -3
  10. package/dist/draco/draco-loader-types.cjs.map +2 -2
  11. package/dist/draco/draco-loader-types.d.ts +1 -1
  12. package/dist/draco/draco-loader-types.d.ts.map +1 -1
  13. package/dist/draco/draco-loader-types.js +1 -1
  14. package/dist/draco/draco-loader-types.js.map +1 -1
  15. package/dist/draco/draco-loader.d.ts +2 -2
  16. package/dist/draco/draco-wasm-loader-with-parser.d.ts +2 -2
  17. package/dist/draco/draco3d-loader-with-parser.d.ts +2 -2
  18. package/dist/draco/lib/utils/version.cjs +1 -1
  19. package/dist/draco/lib/utils/version.js +1 -1
  20. package/dist/draco-worker-node.js +400 -113
  21. package/dist/draco-worker-node.js.map +4 -4
  22. package/dist/draco-worker.js +394 -113
  23. package/dist/draco-worker.js.map +4 -4
  24. package/dist/draco-writer-worker-node.cjs +654 -85
  25. package/dist/draco-writer-worker-node.cjs.map +4 -4
  26. package/dist/draco-writer-worker.js +624 -69
  27. package/dist/draco-writer-worker.js.map +4 -4
  28. package/dist/gltf/lib/extensions/KHR_gaussian_splatting.cjs +11 -4
  29. package/dist/gltf/lib/extensions/KHR_gaussian_splatting.cjs.map +2 -2
  30. package/dist/gltf/lib/extensions/KHR_gaussian_splatting.d.ts.map +1 -1
  31. package/dist/gltf/lib/extensions/KHR_gaussian_splatting.js +12 -2
  32. package/dist/gltf/lib/extensions/KHR_gaussian_splatting.js.map +1 -1
  33. package/dist/gltf/lib/parsers/parse-gltf.cjs.map +2 -2
  34. package/dist/gltf/lib/parsers/parse-gltf.d.ts +2 -0
  35. package/dist/gltf/lib/parsers/parse-gltf.d.ts.map +1 -1
  36. package/dist/gltf/lib/parsers/parse-gltf.js.map +1 -1
  37. package/dist/gltf/lib/types/gltf-additional-extension-schemas.cjs +22 -0
  38. package/dist/gltf/lib/types/gltf-additional-extension-schemas.cjs.map +2 -2
  39. package/dist/gltf/lib/types/gltf-additional-extension-schemas.d.ts +23 -0
  40. package/dist/gltf/lib/types/gltf-additional-extension-schemas.d.ts.map +1 -1
  41. package/dist/gltf/lib/types/gltf-additional-extension-schemas.js +22 -0
  42. package/dist/gltf/lib/types/gltf-additional-extension-schemas.js.map +1 -1
  43. package/dist/gltf/lib/types/gltf-extension-schemas.cjs +8 -0
  44. package/dist/gltf/lib/types/gltf-extension-schemas.cjs.map +2 -2
  45. package/dist/gltf/lib/types/gltf-extension-schemas.d.ts +27 -0
  46. package/dist/gltf/lib/types/gltf-extension-schemas.d.ts.map +1 -1
  47. package/dist/gltf/lib/types/gltf-extension-schemas.js +8 -1
  48. package/dist/gltf/lib/types/gltf-extension-schemas.js.map +1 -1
  49. package/dist/gltf/lib/types/gltf-json-schema.cjs.map +1 -1
  50. package/dist/gltf/lib/types/gltf-json-schema.d.ts +2 -2
  51. package/dist/gltf/lib/types/gltf-json-schema.d.ts.map +1 -1
  52. package/dist/gltf/lib/types/gltf-version-zod-schemas.d.ts +34 -0
  53. package/dist/gltf/lib/types/gltf-version-zod-schemas.d.ts.map +1 -1
  54. package/dist/gltf/lib/types/gltf-zod-schema.cjs +1 -1
  55. package/dist/gltf/lib/types/gltf-zod-schema.cjs.map +2 -2
  56. package/dist/gltf/lib/types/gltf-zod-schema.d.ts +51 -0
  57. package/dist/gltf/lib/types/gltf-zod-schema.d.ts.map +1 -1
  58. package/dist/gltf/lib/types/gltf-zod-schema.js +2 -2
  59. package/dist/gltf/lib/types/gltf-zod-schema.js.map +1 -1
  60. package/dist/gltf/lib/utils/version.cjs +1 -1
  61. package/dist/gltf/lib/utils/version.js +1 -1
  62. package/dist/index.cjs +4 -1
  63. package/dist/index.cjs.map +2 -2
  64. package/dist/index.d.ts +1 -0
  65. package/dist/index.d.ts.map +1 -1
  66. package/dist/index.js +2 -1
  67. package/dist/index.js.map +1 -1
  68. package/dist/mtl-loader-types.cjs +1 -1
  69. package/dist/obj/mtl-loader-types.cjs +1 -1
  70. package/dist/obj/mtl-loader-types.js +1 -1
  71. package/dist/obj/obj-loader-types.cjs +3 -3
  72. package/dist/obj/obj-loader-types.cjs.map +2 -2
  73. package/dist/obj/obj-loader-types.d.ts +1 -1
  74. package/dist/obj/obj-loader-types.d.ts.map +1 -1
  75. package/dist/obj/obj-loader-types.js +2 -2
  76. package/dist/obj/obj-loader-types.js.map +1 -1
  77. package/dist/obj/obj-loader.cjs +5 -5
  78. package/dist/obj/obj-loader.cjs.map +2 -2
  79. package/dist/obj/obj-loader.d.ts +1 -1
  80. package/dist/obj/obj-loader.d.ts.map +1 -1
  81. package/dist/obj/obj-loader.js +1 -1
  82. package/dist/obj/obj-loader.js.map +1 -1
  83. package/dist/obj/obj-writer.cjs +1 -1
  84. package/dist/obj/obj-writer.js +1 -1
  85. package/dist/obj-loader-types.cjs +3 -3
  86. package/dist/obj-loader-types.cjs.map +2 -2
  87. package/dist/obj-loader.cjs +5 -5
  88. package/dist/obj-loader.cjs.map +2 -2
  89. package/dist/obj-worker.js +568 -287
  90. package/dist/obj-writer.cjs +1 -1
  91. package/dist/stl/parse-stl.cjs +100 -0
  92. package/dist/stl/parse-stl.cjs.map +7 -0
  93. package/dist/stl/parse-stl.d.ts +4 -0
  94. package/dist/stl/parse-stl.d.ts.map +1 -0
  95. package/dist/stl/parse-stl.js +84 -0
  96. package/dist/stl/parse-stl.js.map +1 -0
  97. package/dist/stl-loader-types.cjs +58 -0
  98. package/dist/stl-loader-types.cjs.map +7 -0
  99. package/dist/stl-loader-types.d.ts +32 -0
  100. package/dist/stl-loader-types.d.ts.map +1 -0
  101. package/dist/stl-loader-types.js +25 -0
  102. package/dist/stl-loader-types.js.map +1 -0
  103. package/dist/stl-loader.cjs +38 -0
  104. package/dist/stl-loader.cjs.map +7 -0
  105. package/dist/stl-loader.d.ts +17 -0
  106. package/dist/stl-loader.d.ts.map +1 -0
  107. package/dist/stl-loader.js +13 -0
  108. package/dist/stl-loader.js.map +1 -0
  109. package/dist/usd/index.cjs.map +1 -1
  110. package/dist/usd/index.d.ts +1 -1
  111. package/dist/usd/index.d.ts.map +1 -1
  112. package/dist/usd/lib/parse-usd.cjs +42 -5
  113. package/dist/usd/lib/parse-usd.cjs.map +2 -2
  114. package/dist/usd/lib/parse-usd.d.ts.map +1 -1
  115. package/dist/usd/lib/parse-usd.js +53 -6
  116. package/dist/usd/lib/parse-usd.js.map +1 -1
  117. package/dist/usd/lib/parse-usdc.cjs +187 -0
  118. package/dist/usd/lib/parse-usdc.cjs.map +7 -0
  119. package/dist/usd/lib/parse-usdc.d.ts +4 -0
  120. package/dist/usd/lib/parse-usdc.d.ts.map +1 -0
  121. package/dist/usd/lib/parse-usdc.js +176 -0
  122. package/dist/usd/lib/parse-usdc.js.map +1 -0
  123. package/dist/usd/lib/parse-usdz.cjs +22 -0
  124. package/dist/usd/lib/parse-usdz.cjs.map +2 -2
  125. package/dist/usd/lib/parse-usdz.d.ts.map +1 -1
  126. package/dist/usd/lib/parse-usdz.js +26 -0
  127. package/dist/usd/lib/parse-usdz.js.map +1 -1
  128. package/dist/usd/lib/usd-types.cjs.map +1 -1
  129. package/dist/usd/lib/usd-types.d.ts +14 -1
  130. package/dist/usd/lib/usd-types.d.ts.map +1 -1
  131. package/dist/usd/lib/usd-types.js +1 -1
  132. package/dist/usd/lib/usd-types.js.map +1 -1
  133. package/dist/usd/libs/README.md +27 -0
  134. package/dist/usd/libs/THREE-LICENSE +21 -0
  135. package/dist/usd/libs/usdc-parser.d.ts +78 -0
  136. package/dist/usd/libs/usdc-parser.d.ts.map +1 -0
  137. package/dist/usd/libs/usdc-parser.js +1669 -0
  138. package/dist/usd/libs/usdc-parser.js.map +1 -0
  139. package/dist/usd/usd-loader-types.cjs +4 -4
  140. package/dist/usd/usd-loader-types.cjs.map +2 -2
  141. package/dist/usd/usd-loader-types.d.ts +7 -7
  142. package/dist/usd/usd-loader-types.d.ts.map +1 -1
  143. package/dist/usd/usd-loader-types.js +6 -6
  144. package/dist/usd/usd-loader-types.js.map +1 -1
  145. package/dist/usd/usd-loader.cjs.map +1 -1
  146. package/dist/usd/usd-loader.d.ts +4 -4
  147. package/dist/usd/usd-loader.d.ts.map +1 -1
  148. package/dist/usd/usd-loader.js +2 -2
  149. package/dist/usd/usd-loader.js.map +1 -1
  150. package/dist/usd-loader-types.cjs +4 -4
  151. package/dist/usd-loader-types.cjs.map +2 -2
  152. package/dist/usd-loader.cjs.map +1 -1
  153. package/package.json +14 -8
  154. package/src/draco/draco-loader-types.ts +1 -1
  155. package/src/gltf/lib/extensions/KHR_gaussian_splatting.ts +14 -4
  156. package/src/gltf/lib/parsers/parse-gltf.ts +2 -0
  157. package/src/gltf/lib/types/gltf-additional-extension-schemas.ts +32 -0
  158. package/src/gltf/lib/types/gltf-extension-schemas.ts +12 -0
  159. package/src/gltf/lib/types/gltf-json-schema.ts +2 -1
  160. package/src/gltf/lib/types/gltf-zod-schema.ts +2 -1
  161. package/src/index.ts +3 -1
  162. package/src/obj/obj-loader-types.ts +1 -1
  163. package/src/obj/obj-loader.ts +1 -1
  164. package/src/stl/parse-stl.ts +90 -0
  165. package/src/stl-loader-types.ts +28 -0
  166. package/src/stl-loader.ts +12 -0
  167. package/src/usd/index.ts +1 -0
  168. package/src/usd/lib/parse-usd.ts +68 -7
  169. package/src/usd/lib/parse-usdc.ts +188 -0
  170. package/src/usd/lib/parse-usdz.ts +28 -0
  171. package/src/usd/lib/usd-types.ts +16 -2
  172. package/src/usd/libs/README.md +27 -0
  173. package/src/usd/libs/THREE-LICENSE +21 -0
  174. package/src/usd/libs/usdc-parser.d.ts +18 -0
  175. package/src/usd/libs/usdc-parser.js +1669 -0
  176. package/src/usd/usd-loader-types.ts +5 -5
  177. package/src/usd/usd-loader.ts +2 -2
@@ -7617,7 +7617,7 @@ var init_initialize_wasm_module = __esm({
7617
7617
 
7618
7618
  // ../core/src/worker-utils/lib/env-utils/version.ts
7619
7619
  function getVersion() {
7620
- const version2 = false ? NPM_TAG : "5.0.0-beta.4";
7620
+ const version2 = false ? NPM_TAG : "5.0.0-beta.5";
7621
7621
  globalThis._loadersgl_ = globalThis._loadersgl_ || {};
7622
7622
  globalThis._loadersgl_.version ||= version2;
7623
7623
  return version2;
@@ -7666,16 +7666,16 @@ var init_globals = __esm({
7666
7666
  }
7667
7667
  });
7668
7668
 
7669
- // ../../node_modules/@math.gl/core/dist/worker-utils/lib/node/worker_threads.js
7669
+ // ../../node_modules/@math.gl/tasks/dist/worker-utils/lib/node/worker_threads.js
7670
7670
  var import_worker_threads, parentPort;
7671
7671
  var init_worker_threads = __esm({
7672
- "../../node_modules/@math.gl/core/dist/worker-utils/lib/node/worker_threads.js"() {
7672
+ "../../node_modules/@math.gl/tasks/dist/worker-utils/lib/node/worker_threads.js"() {
7673
7673
  import_worker_threads = require("worker_threads");
7674
7674
  parentPort = import_worker_threads.parentPort;
7675
7675
  }
7676
7676
  });
7677
7677
 
7678
- // ../../node_modules/@math.gl/core/dist/worker-utils/lib/worker-utils/get-transfer-list.js
7678
+ // ../../node_modules/@math.gl/tasks/dist/worker-utils/lib/worker-utils/get-transfer-list.js
7679
7679
  function getTransferList(object2, recursive = true, transfers) {
7680
7680
  const transfersSet = transfers || /* @__PURE__ */ new Set();
7681
7681
  const seen = /* @__PURE__ */ new Set();
@@ -7726,11 +7726,11 @@ function isTransferable(object2) {
7726
7726
  return false;
7727
7727
  }
7728
7728
  var init_get_transfer_list = __esm({
7729
- "../../node_modules/@math.gl/core/dist/worker-utils/lib/worker-utils/get-transfer-list.js"() {
7729
+ "../../node_modules/@math.gl/tasks/dist/worker-utils/lib/worker-utils/get-transfer-list.js"() {
7730
7730
  }
7731
7731
  });
7732
7732
 
7733
- // ../../node_modules/@math.gl/core/dist/worker-utils/lib/worker-farm/worker-body.js
7733
+ // ../../node_modules/@math.gl/tasks/dist/worker-utils/lib/worker-farm/worker-body.js
7734
7734
  async function getParentPort() {
7735
7735
  return parentPort;
7736
7736
  }
@@ -7743,7 +7743,7 @@ function getWorkerMessageData(message) {
7743
7743
  }
7744
7744
  var onMessageWrapperMap, WorkerBody;
7745
7745
  var init_worker_body = __esm({
7746
- "../../node_modules/@math.gl/core/dist/worker-utils/lib/worker-farm/worker-body.js"() {
7746
+ "../../node_modules/@math.gl/tasks/dist/worker-utils/lib/worker-farm/worker-body.js"() {
7747
7747
  init_get_transfer_list();
7748
7748
  init_worker_threads();
7749
7749
  onMessageWrapperMap = /* @__PURE__ */ new Map();
@@ -7824,10 +7824,10 @@ var init_worker_body = __esm({
7824
7824
  }
7825
7825
  });
7826
7826
 
7827
- // ../../node_modules/@math.gl/core/dist/worker-utils/lib/async-queue/async-queue.js
7827
+ // ../../node_modules/@math.gl/tasks/dist/worker-utils/lib/async-queue/async-queue.js
7828
7828
  var AsyncQueue;
7829
7829
  var init_async_queue = __esm({
7830
- "../../node_modules/@math.gl/core/dist/worker-utils/lib/async-queue/async-queue.js"() {
7830
+ "../../node_modules/@math.gl/tasks/dist/worker-utils/lib/async-queue/async-queue.js"() {
7831
7831
  AsyncQueue = class {
7832
7832
  constructor() {
7833
7833
  this._values = [];
@@ -7896,10 +7896,10 @@ var init_async_queue = __esm({
7896
7896
  }
7897
7897
  });
7898
7898
 
7899
- // ../../node_modules/@math.gl/core/dist/worker-utils/lib/worker-api/shared-state.js
7899
+ // ../../node_modules/@math.gl/tasks/dist/worker-utils/lib/worker-api/shared-state.js
7900
7900
  var SharedWorkerState;
7901
7901
  var init_shared_state = __esm({
7902
- "../../node_modules/@math.gl/core/dist/worker-utils/lib/worker-api/shared-state.js"() {
7902
+ "../../node_modules/@math.gl/tasks/dist/worker-utils/lib/worker-api/shared-state.js"() {
7903
7903
  SharedWorkerState = class {
7904
7904
  constructor(buffer2) {
7905
7905
  if (typeof SharedArrayBuffer === "undefined" || !(buffer2 instanceof SharedArrayBuffer) || buffer2.byteLength !== 16)
@@ -7940,18 +7940,18 @@ var init_shared_state = __esm({
7940
7940
  }
7941
7941
  });
7942
7942
 
7943
- // ../../node_modules/@math.gl/core/dist/worker-utils/lib/worker-api/validate-output-ownership.js
7943
+ // ../../node_modules/@math.gl/tasks/dist/worker-utils/lib/worker-api/validate-output-ownership.js
7944
7944
  function validateOutputOwnership(ownership) {
7945
7945
  if (ownership !== void 0 && ownership !== "copy" && ownership !== "transfer") {
7946
7946
  throw new Error("Invalid worker output ownership");
7947
7947
  }
7948
7948
  }
7949
7949
  var init_validate_output_ownership = __esm({
7950
- "../../node_modules/@math.gl/core/dist/worker-utils/lib/worker-api/validate-output-ownership.js"() {
7950
+ "../../node_modules/@math.gl/tasks/dist/worker-utils/lib/worker-api/validate-output-ownership.js"() {
7951
7951
  }
7952
7952
  });
7953
7953
 
7954
- // ../../node_modules/@math.gl/core/dist/worker-utils/lib/worker-api/create-worker.js
7954
+ // ../../node_modules/@math.gl/tasks/dist/worker-utils/lib/worker-api/create-worker.js
7955
7955
  async function createWorker(process2, processInBatches, preload2) {
7956
7956
  if (!await WorkerBody.inWorkerThread()) {
7957
7957
  return;
@@ -8157,7 +8157,7 @@ function createProgressReporter() {
8157
8157
  }
8158
8158
  var requestId, activeController, activeInputBatches, activeOutputAcknowledgements;
8159
8159
  var init_create_worker = __esm({
8160
- "../../node_modules/@math.gl/core/dist/worker-utils/lib/worker-api/create-worker.js"() {
8160
+ "../../node_modules/@math.gl/tasks/dist/worker-utils/lib/worker-api/create-worker.js"() {
8161
8161
  init_shared_state();
8162
8162
  init_async_queue();
8163
8163
  init_worker_body();
@@ -8169,19 +8169,20 @@ var init_create_worker = __esm({
8169
8169
  }
8170
8170
  });
8171
8171
 
8172
- // ../../node_modules/@math.gl/core/dist/worker-utils/index.js
8172
+ // ../../node_modules/@math.gl/tasks/dist/worker-utils/index.js
8173
8173
  var import_meta3, path3, moduleUrl;
8174
8174
  var init_worker_utils = __esm({
8175
- "../../node_modules/@math.gl/core/dist/worker-utils/index.js"() {
8175
+ "../../node_modules/@math.gl/tasks/dist/worker-utils/index.js"() {
8176
8176
  init_worker_body();
8177
8177
  init_create_worker();
8178
+ init_get_transfer_list();
8178
8179
  import_meta3 = {};
8179
8180
  path3 = typeof __filename === "string" ? __filename.replace(/\\/g, "/") : "";
8180
8181
  moduleUrl = path3 ? `file://${path3.startsWith("/") ? "" : "/"}${encodeURI(path3).replace(/#/g, "%23").replace(/\?/g, "%3F")}` : import_meta3.url;
8181
8182
  }
8182
8183
  });
8183
8184
 
8184
- // ../../node_modules/@math.gl/core/dist/tasks/task-preload.js
8185
+ // ../../node_modules/@math.gl/tasks/dist/tasks/task-preload.js
8185
8186
  function preloadTaskCode(task, signal) {
8186
8187
  if (!task.preload)
8187
8188
  return Promise.resolve();
@@ -8217,23 +8218,197 @@ function withSignal(operation, signal) {
8217
8218
  }
8218
8219
  var pending, loaded;
8219
8220
  var init_task_preload = __esm({
8220
- "../../node_modules/@math.gl/core/dist/tasks/task-preload.js"() {
8221
+ "../../node_modules/@math.gl/tasks/dist/tasks/task-preload.js"() {
8221
8222
  pending = /* @__PURE__ */ new WeakMap();
8222
8223
  loaded = /* @__PURE__ */ new WeakSet();
8223
8224
  }
8224
8225
  });
8225
8226
 
8226
- // ../../node_modules/@math.gl/core/dist/tasks/task-runtime.js
8227
+ // ../../node_modules/@math.gl/tasks/dist/tasks/task-channel.js
8228
+ var TaskRequestError, TaskChannel;
8229
+ var init_task_channel = __esm({
8230
+ "../../node_modules/@math.gl/tasks/dist/tasks/task-channel.js"() {
8231
+ TaskRequestError = class extends Error {
8232
+ };
8233
+ TaskChannel = class {
8234
+ constructor(options) {
8235
+ this.options = options;
8236
+ this.nextId = 1;
8237
+ this.pending = /* @__PURE__ */ new Map();
8238
+ this.incoming = /* @__PURE__ */ new Map();
8239
+ }
8240
+ /** Send a request without serializing other in-flight requests. */
8241
+ request(operation, value, signal, transfer = []) {
8242
+ if (this.failure)
8243
+ return Promise.reject(this.failure.reason);
8244
+ if (signal == null ? void 0 : signal.aborted)
8245
+ return Promise.reject(signal.reason);
8246
+ const id = this.nextId++;
8247
+ return new Promise((resolve, reject) => {
8248
+ const abort = () => {
8249
+ const pending2 = this.pending.get(id);
8250
+ if (!pending2)
8251
+ return;
8252
+ this.pending.delete(id);
8253
+ pending2.cleanup();
8254
+ reject(signal == null ? void 0 : signal.reason);
8255
+ this.send({ source: "math.gl/tasks", kind: "cancel", id });
8256
+ };
8257
+ this.pending.set(id, {
8258
+ resolve,
8259
+ reject,
8260
+ cleanup: () => signal == null ? void 0 : signal.removeEventListener("abort", abort)
8261
+ });
8262
+ signal == null ? void 0 : signal.addEventListener("abort", abort, { once: true });
8263
+ this.send({ source: "math.gl/tasks", kind: "request", id, operation, value }, transfer);
8264
+ });
8265
+ }
8266
+ /** Send a one-way notification. */
8267
+ emit(operation, value, transfer = []) {
8268
+ if (this.failure)
8269
+ throw this.failure.reason;
8270
+ this.send({ source: "math.gl/tasks", kind: "event", id: 0, operation, value }, transfer);
8271
+ }
8272
+ /** Dispatch a transport message; unrelated protocols are ignored. */
8273
+ receive(message) {
8274
+ var _a5, _b2, _c2, _d2, _e2, _f2, _g2, _h2;
8275
+ if (this.failure || (message == null ? void 0 : message.source) !== "math.gl/tasks")
8276
+ return;
8277
+ if (message.kind === "failure") {
8278
+ const reason = new Error(((_a5 = message.error) == null ? void 0 : _a5.message) ?? "Task channel failed");
8279
+ this.close(reason);
8280
+ (_c2 = (_b2 = this.options).onFailure) == null ? void 0 : _c2.call(_b2, reason);
8281
+ } else if (message.kind === "result" || message.kind === "error") {
8282
+ const pending2 = this.pending.get(message.id);
8283
+ if (!pending2)
8284
+ return;
8285
+ this.pending.delete(message.id);
8286
+ pending2.cleanup();
8287
+ if (message.kind === "result")
8288
+ pending2.resolve(message.value);
8289
+ else {
8290
+ const error = new TaskRequestError(((_d2 = message.error) == null ? void 0 : _d2.message) ?? "Task request failed");
8291
+ error.name = ((_e2 = message.error) == null ? void 0 : _e2.name) ?? "Error";
8292
+ pending2.reject(error);
8293
+ }
8294
+ } else if (message.kind === "cancel") {
8295
+ (_f2 = this.incoming.get(message.id)) == null ? void 0 : _f2.abort(new DOMException("Task request cancelled", "AbortError"));
8296
+ } else if (message.kind === "event") {
8297
+ try {
8298
+ (_h2 = (_g2 = this.options).handleEvent) == null ? void 0 : _h2.call(_g2, message.operation, message.value);
8299
+ } catch (error) {
8300
+ this.fail(error);
8301
+ }
8302
+ } else if (message.kind === "request") {
8303
+ if (this.incoming.has(message.id)) {
8304
+ this.fail(new Error("Duplicate task request identifier"));
8305
+ return;
8306
+ }
8307
+ const controller = new AbortController();
8308
+ this.incoming.set(message.id, controller);
8309
+ void Promise.resolve().then(() => {
8310
+ controller.signal.throwIfAborted();
8311
+ return this.options.handleRequest(message.operation, message.value, controller.signal);
8312
+ }).then((value) => {
8313
+ var _a6, _b3;
8314
+ if (!controller.signal.aborted && !this.failure) {
8315
+ this.send({ source: "math.gl/tasks", kind: "result", id: message.id, value }, (_b3 = (_a6 = this.options).getResultTransferList) == null ? void 0 : _b3.call(_a6, value, message.value));
8316
+ }
8317
+ }).catch((reason) => {
8318
+ if (!controller.signal.aborted && !this.failure) {
8319
+ this.send({
8320
+ source: "math.gl/tasks",
8321
+ kind: "error",
8322
+ id: message.id,
8323
+ error: {
8324
+ name: reason instanceof Error ? reason.name : "Error",
8325
+ message: reason instanceof Error ? reason.message : String(reason)
8326
+ }
8327
+ });
8328
+ }
8329
+ }).finally(() => this.incoming.delete(message.id));
8330
+ }
8331
+ }
8332
+ /** Reject all outstanding calls with a common cause and abort incoming callbacks. */
8333
+ close(reason = new Error("Task channel closed")) {
8334
+ if (this.failure)
8335
+ return;
8336
+ this.failure = { reason };
8337
+ for (const pending2 of this.pending.values()) {
8338
+ pending2.cleanup();
8339
+ pending2.reject(reason);
8340
+ }
8341
+ this.pending.clear();
8342
+ for (const controller of this.incoming.values())
8343
+ controller.abort(reason);
8344
+ this.incoming.clear();
8345
+ }
8346
+ send(message, transfer = []) {
8347
+ if (this.failure)
8348
+ return;
8349
+ try {
8350
+ this.options.send(message, transfer);
8351
+ } catch (error) {
8352
+ this.fail(error);
8353
+ }
8354
+ }
8355
+ /** Invalidate the channel and notify the peer when the transport still works. */
8356
+ fail(reason) {
8357
+ var _a5, _b2;
8358
+ if (this.failure)
8359
+ return;
8360
+ this.close(reason);
8361
+ try {
8362
+ this.options.send({
8363
+ source: "math.gl/tasks",
8364
+ kind: "failure",
8365
+ id: 0,
8366
+ error: {
8367
+ name: reason instanceof Error ? reason.name : "Error",
8368
+ message: reason instanceof Error ? reason.message : String(reason)
8369
+ }
8370
+ }, []);
8371
+ } catch {
8372
+ }
8373
+ (_b2 = (_a5 = this.options).onFailure) == null ? void 0 : _b2.call(_a5, reason);
8374
+ }
8375
+ };
8376
+ }
8377
+ });
8378
+
8379
+ // ../../node_modules/@math.gl/tasks/dist/tasks/task-runtime.js
8227
8380
  function assertPayload(value) {
8228
8381
  if (!value || typeof value !== "object" || Object.getPrototypeOf(value) !== Object.prototype) {
8229
8382
  throw new TypeError("Task payloads must be plain objects with named fields");
8230
8383
  }
8231
8384
  }
8385
+ function clonePayload(value, ownership = "copy") {
8386
+ assertPayload(value);
8387
+ if (!["copy", "transfer", "share"].includes(ownership))
8388
+ throw new TypeError("Invalid input ownership");
8389
+ const transfer = getTransferList(value);
8390
+ if (ownership === "share" && transfer.length)
8391
+ throw new TypeError("Share requires shared storage");
8392
+ return structuredClone(value, {
8393
+ transfer: ownership === "transfer" ? transfer : []
8394
+ });
8395
+ }
8232
8396
  function taskContext(state, context = {}) {
8233
8397
  const signal = context.signal ?? new AbortController().signal;
8234
8398
  return {
8235
8399
  state,
8236
8400
  signal,
8401
+ requestHost: async (operation, payload, controls) => {
8402
+ signal.throwIfAborted();
8403
+ if (!context.requestHost)
8404
+ throw new Error("No host request handler configured");
8405
+ return context.requestHost(operation, payload, controls);
8406
+ },
8407
+ emitHost: (operation, payload) => {
8408
+ var _a5;
8409
+ signal.throwIfAborted();
8410
+ (_a5 = context.emitHost) == null ? void 0 : _a5.call(context, operation, payload);
8411
+ },
8237
8412
  throwIfAborted: () => {
8238
8413
  var _a5;
8239
8414
  signal.throwIfAborted();
@@ -8256,6 +8431,70 @@ async function initializeTaskWorker(task) {
8256
8431
  throw new Error("A task is already installed in this worker");
8257
8432
  installed = true;
8258
8433
  const runtime = new TaskRuntime(task);
8434
+ let channelStream;
8435
+ const channel = new TaskChannel({
8436
+ getResultTransferList: (value, request) => request.outputOwnership === "transfer" ? getTransferList(value) : [],
8437
+ send: (message, transfer) => {
8438
+ const snapshot = structuredClone(message, { transfer });
8439
+ void WorkerBody.postMessage("task-channel", snapshot).catch((reason) => channel.fail(reason));
8440
+ },
8441
+ handleRequest: async (operation, value, signal) => {
8442
+ var _a5;
8443
+ const request = value;
8444
+ const context = {
8445
+ signal,
8446
+ reportProgress: (progress) => channel.emit("task:progress", { id: request.progressId, progress }),
8447
+ requestHost: (operation2, payload, controls = {}) => {
8448
+ const request2 = {
8449
+ operation: operation2,
8450
+ payload: clonePayload(payload, controls.inputOwnership),
8451
+ outputOwnership: controls.outputOwnership ?? "copy"
8452
+ };
8453
+ return channel.request("task:host-request", request2, signal, getTransferList(request2));
8454
+ },
8455
+ emitHost: (operation2, payload) => channel.emit("task:host-event", { operation: operation2, payload, id: request.progressId })
8456
+ };
8457
+ switch (operation) {
8458
+ case "initialize":
8459
+ return runtime.initialize(request.input, context);
8460
+ case "process":
8461
+ return runtime.process(request.input, request.options, context);
8462
+ case "stream-open": {
8463
+ if (channelStream)
8464
+ throw new Error("A task stream is already open");
8465
+ async function* inputs() {
8466
+ while (true) {
8467
+ const result = await channel.request("task:next-input", { outputOwnership: "transfer" }, signal);
8468
+ if (result.done)
8469
+ return;
8470
+ yield result.value;
8471
+ }
8472
+ }
8473
+ channelStream = runtime.stream(inputs(), request.options, context)[Symbol.asyncIterator]();
8474
+ return {};
8475
+ }
8476
+ case "stream-next":
8477
+ if (!channelStream)
8478
+ throw new Error("No active task stream");
8479
+ return channelStream.next();
8480
+ case "stream-close":
8481
+ try {
8482
+ await ((_a5 = channelStream == null ? void 0 : channelStream.return) == null ? void 0 : _a5.call(channelStream));
8483
+ } finally {
8484
+ channelStream = void 0;
8485
+ }
8486
+ return {};
8487
+ case "destroy":
8488
+ return runtime.destroy();
8489
+ default:
8490
+ throw new Error("Unknown task channel operation");
8491
+ }
8492
+ }
8493
+ });
8494
+ await WorkerBody.addEventListener((type, payload) => {
8495
+ if (type === "task-channel")
8496
+ channel.receive(payload);
8497
+ });
8259
8498
  let streamOptions = {};
8260
8499
  return createWorker(async (request, _options, context) => {
8261
8500
  switch (request.operation) {
@@ -8287,9 +8526,10 @@ async function initializeTaskWorker(task) {
8287
8526
  }
8288
8527
  var TaskRuntime, installed;
8289
8528
  var init_task_runtime = __esm({
8290
- "../../node_modules/@math.gl/core/dist/tasks/task-runtime.js"() {
8529
+ "../../node_modules/@math.gl/tasks/dist/tasks/task-runtime.js"() {
8291
8530
  init_worker_utils();
8292
8531
  init_task_preload();
8532
+ init_task_channel();
8293
8533
  TaskRuntime = class {
8294
8534
  constructor(task) {
8295
8535
  this.task = task;
@@ -8342,13 +8582,20 @@ var init_task_runtime = __esm({
8342
8582
  }
8343
8583
  });
8344
8584
 
8345
- // ../../node_modules/@math.gl/core/dist/tasks/index.js
8585
+ // ../../node_modules/@math.gl/tasks/dist/tasks/index.js
8346
8586
  var init_tasks = __esm({
8347
- "../../node_modules/@math.gl/core/dist/tasks/index.js"() {
8587
+ "../../node_modules/@math.gl/tasks/dist/tasks/index.js"() {
8348
8588
  init_task_runtime();
8349
8589
  }
8350
8590
  });
8351
8591
 
8592
+ // ../../node_modules/@math.gl/tasks/dist/index.js
8593
+ var init_dist2 = __esm({
8594
+ "../../node_modules/@math.gl/tasks/dist/index.js"() {
8595
+ init_tasks();
8596
+ }
8597
+ });
8598
+
8352
8599
  // ../core/src/worker-utils/lib/node/worker_threads.ts
8353
8600
  var worker_threads_exports = {};
8354
8601
  __export(worker_threads_exports, {
@@ -8409,7 +8656,7 @@ var initializeTaskWorker2;
8409
8656
  var init_task_runtime2 = __esm({
8410
8657
  "../core/src/worker-utils/lib/worker-api/task-runtime.ts"() {
8411
8658
  "use strict";
8412
- init_tasks();
8659
+ init_dist2();
8413
8660
  initializeTaskWorker2 = initializeTaskWorker;
8414
8661
  }
8415
8662
  });
@@ -8968,7 +9215,7 @@ var init_vec42 = __esm({
8968
9215
  });
8969
9216
 
8970
9217
  // ../../node_modules/@math.gl/core/dist/index.js
8971
- var init_dist2 = __esm({
9218
+ var init_dist3 = __esm({
8972
9219
  "../../node_modules/@math.gl/core/dist/index.js"() {
8973
9220
  init_math_utils();
8974
9221
  init_types2();
@@ -24323,12 +24570,6 @@ function serializeArrowSchema(arrowSchema) {
24323
24570
  metadata: serializeArrowMetadata(arrowSchema.metadata)
24324
24571
  };
24325
24572
  }
24326
- function deserializeArrowSchema(schema, options) {
24327
- return new Schema2(
24328
- schema.fields.map((field) => deserializeArrowField(field, options)),
24329
- deserializeArrowMetadata(schema.metadata)
24330
- );
24331
- }
24332
24573
  function serializeArrowMetadata(arrowMetadata) {
24333
24574
  return Object.fromEntries(arrowMetadata);
24334
24575
  }
@@ -24797,7 +25038,7 @@ function getFloat16Storage(array) {
24797
25038
  var init_float162 = __esm({
24798
25039
  "../core/src/schema/float16.ts"() {
24799
25040
  "use strict";
24800
- init_dist2();
25041
+ init_dist3();
24801
25042
  }
24802
25043
  });
24803
25044
 
@@ -26018,7 +26259,29 @@ var init_draco_module_loader = __esm({
26018
26259
  }
26019
26260
  });
26020
26261
 
26021
- // ../core/src/schema-utils/lib/arrow/split-arrow-buffers.ts
26262
+ // ../../node_modules/@math.gl/arrow/dist/arrow/arrow-data.js
26263
+ function getArrowVariadicBuffers(data) {
26264
+ return data.variadicBuffers ?? [];
26265
+ }
26266
+ function createArrowData(type, offset, length, nullCount, buffers, children, dictionary, variadicBuffers) {
26267
+ return Reflect.construct(Data, [
26268
+ type,
26269
+ offset,
26270
+ length,
26271
+ nullCount,
26272
+ buffers,
26273
+ children,
26274
+ dictionary,
26275
+ variadicBuffers
26276
+ ]);
26277
+ }
26278
+ var init_arrow_data = __esm({
26279
+ "../../node_modules/@math.gl/arrow/dist/arrow/arrow-data.js"() {
26280
+ init_Arrow_node();
26281
+ }
26282
+ });
26283
+
26284
+ // ../../node_modules/@math.gl/arrow/dist/arrow/split-arrow-buffers.js
26022
26285
  function splitArrowBuffers(input, options = {}) {
26023
26286
  const context = { ...options, copies: /* @__PURE__ */ new WeakMap() };
26024
26287
  if (isArrowTable2(input)) {
@@ -26041,17 +26304,12 @@ function isArrowRecordBatch2(input) {
26041
26304
  function isArrowVector2(input) {
26042
26305
  return "data" in input && Array.isArray(input.data);
26043
26306
  }
26044
- function splitArrowTableBuffersInternal(table, options) {
26045
- const recordBatches = table.batches.map(
26046
- (recordBatch) => splitArrowRecordBatchBuffers(recordBatch, options)
26047
- );
26048
- return new Table(table.schema, recordBatches);
26307
+ function splitArrowTableBuffersInternal(arrowTable, options) {
26308
+ const recordBatches = arrowTable.batches.map((recordBatch) => splitArrowRecordBatchBuffers(recordBatch, options));
26309
+ return new Table(arrowTable.schema, recordBatches);
26049
26310
  }
26050
26311
  function splitArrowRecordBatchBuffers(recordBatch, options) {
26051
- return new RecordBatch3(
26052
- recordBatch.schema,
26053
- splitArrowDataBuffers(recordBatch.data, options)
26054
- );
26312
+ return new RecordBatch3(recordBatch.schema, splitArrowDataBuffers(recordBatch.data, options));
26055
26313
  }
26056
26314
  function splitArrowDataBuffers(data, options) {
26057
26315
  const children = data.children.map((childData) => splitArrowDataBuffers(childData, options));
@@ -26062,7 +26320,7 @@ function splitArrowDataBuffers(data, options) {
26062
26320
  [BufferType.VALIDITY]: splitArrowBuffer(data.buffers[BufferType.VALIDITY], options),
26063
26321
  [BufferType.TYPE]: splitArrowBuffer(data.buffers[BufferType.TYPE], options)
26064
26322
  };
26065
- return new Data(
26323
+ return createArrowData(
26066
26324
  data.type,
26067
26325
  data.offset,
26068
26326
  data.length,
@@ -26070,7 +26328,8 @@ function splitArrowDataBuffers(data, options) {
26070
26328
  data._nullCount,
26071
26329
  buffers,
26072
26330
  children,
26073
- dictionary
26331
+ dictionary,
26332
+ getArrowVariadicBuffers(data).map((buffer2) => splitArrowBuffer(buffer2, options))
26074
26333
  );
26075
26334
  }
26076
26335
  function splitArrowVectorBuffers(vector, options) {
@@ -26088,7 +26347,7 @@ function splitArrowBuffer(array, options) {
26088
26347
  }
26089
26348
  let copy = options.copies.get(array);
26090
26349
  if (!copy) {
26091
- copy = array.slice();
26350
+ copy = array instanceof Uint8Array ? new Uint8Array(array) : array.slice();
26092
26351
  options.copies.set(array, copy);
26093
26352
  }
26094
26353
  return copy;
@@ -26097,29 +26356,107 @@ function isArrowTypedArray(value) {
26097
26356
  return ArrayBuffer.isView(value) && !(value instanceof DataView);
26098
26357
  }
26099
26358
  var init_split_arrow_buffers = __esm({
26100
- "../core/src/schema-utils/lib/arrow/split-arrow-buffers.ts"() {
26101
- "use strict";
26359
+ "../../node_modules/@math.gl/arrow/dist/arrow/split-arrow-buffers.js"() {
26102
26360
  init_Arrow_node();
26361
+ init_arrow_data();
26362
+ }
26363
+ });
26364
+
26365
+ // ../../node_modules/@math.gl/arrow/dist/arrow/indexed-arrow-vector.js
26366
+ var init_indexed_arrow_vector = __esm({
26367
+ "../../node_modules/@math.gl/arrow/dist/arrow/indexed-arrow-vector.js"() {
26103
26368
  }
26104
26369
  });
26105
26370
 
26106
- // ../core/src/schema-utils/lib/arrow/arrow-table-transport.ts
26107
- function dehydrateArrowTable(table, options) {
26108
- const splitTable = splitArrowBuffers(table, options);
26371
+ // ../../node_modules/@math.gl/arrow/dist/arrow/indexed-arrow-table.js
26372
+ var init_indexed_arrow_table = __esm({
26373
+ "../../node_modules/@math.gl/arrow/dist/arrow/indexed-arrow-table.js"() {
26374
+ }
26375
+ });
26376
+
26377
+ // ../../node_modules/@math.gl/arrow/dist/arrow/mapped-arrow-table.js
26378
+ var init_mapped_arrow_table = __esm({
26379
+ "../../node_modules/@math.gl/arrow/dist/arrow/mapped-arrow-table.js"() {
26380
+ }
26381
+ });
26382
+
26383
+ // ../../node_modules/@math.gl/arrow/dist/arrow/rename-arrow-columns.js
26384
+ var init_rename_arrow_columns = __esm({
26385
+ "../../node_modules/@math.gl/arrow/dist/arrow/rename-arrow-columns.js"() {
26386
+ }
26387
+ });
26388
+
26389
+ // ../../node_modules/@math.gl/arrow/dist/arrow/arrow-table-transport.js
26390
+ function dehydrateArrowTable(arrowTable, options) {
26391
+ const splitTable = splitArrowBuffers(arrowTable, options);
26109
26392
  return {
26110
- shape: "arrow-table",
26111
26393
  transport: "arrow-js",
26112
- schema: serializeArrowSchema(splitTable.schema),
26113
- batches: splitTable.batches.map((recordBatch) => dehydrateArrowRecordBatch(recordBatch))
26394
+ version: 1,
26395
+ schema: tableToIPC(new Table(splitTable.schema, [])),
26396
+ metadataVersion: splitTable.schema.metadataVersion,
26397
+ batches: splitTable.batches.map((batch) => dehydrateArrowData(batch.data))
26114
26398
  };
26115
26399
  }
26116
26400
  function hydrateArrowTable(table) {
26117
- const schema = deserializeArrowSchema(table.schema);
26118
- const recordBatches = table.batches.map(
26119
- (recordBatch) => new RecordBatch3(schema, hydrateArrowData(recordBatch.data))
26120
- );
26121
- return new Table(schema, recordBatches);
26401
+ if (table.transport !== "arrow-js" || table.version !== 1) {
26402
+ throw new Error("Unsupported Arrow column-buffer transport protocol.");
26403
+ }
26404
+ const decodedSchema = tableFromIPC(table.schema).schema;
26405
+ const schema = new Schema2(decodedSchema.fields, decodedSchema.metadata, decodedSchema.dictionaries, table.metadataVersion);
26406
+ const type = new Struct(schema.fields);
26407
+ const batches = table.batches.map((data) => new RecordBatch3(schema, hydrateArrowData(data, type)));
26408
+ return new Table(schema, batches);
26409
+ }
26410
+ function dehydrateArrowData(data) {
26411
+ var _a5;
26412
+ return {
26413
+ offset: data.offset,
26414
+ length: data.length,
26415
+ nullCount: data.nullCount,
26416
+ buffers: {
26417
+ [BufferType.OFFSET]: data.buffers[BufferType.OFFSET],
26418
+ [BufferType.DATA]: data.buffers[BufferType.DATA],
26419
+ [BufferType.VALIDITY]: data.buffers[BufferType.VALIDITY],
26420
+ [BufferType.TYPE]: data.buffers[BufferType.TYPE]
26421
+ },
26422
+ children: data.children.map((child) => dehydrateArrowData(child)),
26423
+ variadicBuffers: getArrowVariadicBuffers(data),
26424
+ dictionary: (_a5 = data.dictionary) == null ? void 0 : _a5.data.map((chunk) => dehydrateArrowData(chunk))
26425
+ };
26122
26426
  }
26427
+ function hydrateArrowData(data, type) {
26428
+ const children = data.children.map((child, index2) => hydrateArrowData(child, type.children[index2].type));
26429
+ const dictionary = data.dictionary && DataType.isDictionary(type) ? new Vector(data.dictionary.map((chunk) => hydrateArrowData(chunk, type.dictionary))) : void 0;
26430
+ return createArrowData(type, data.offset, data.length, data.nullCount, data.buffers, children, dictionary, data.variadicBuffers);
26431
+ }
26432
+ var init_arrow_table_transport = __esm({
26433
+ "../../node_modules/@math.gl/arrow/dist/arrow/arrow-table-transport.js"() {
26434
+ init_Arrow_node();
26435
+ init_arrow_data();
26436
+ init_split_arrow_buffers();
26437
+ }
26438
+ });
26439
+
26440
+ // ../../node_modules/@math.gl/arrow/dist/arrow/index.js
26441
+ var init_arrow = __esm({
26442
+ "../../node_modules/@math.gl/arrow/dist/arrow/index.js"() {
26443
+ init_indexed_arrow_table();
26444
+ init_indexed_arrow_vector();
26445
+ init_mapped_arrow_table();
26446
+ init_rename_arrow_columns();
26447
+ init_split_arrow_buffers();
26448
+ init_arrow_table_transport();
26449
+ }
26450
+ });
26451
+
26452
+ // ../../node_modules/@math.gl/arrow/dist/index.js
26453
+ var init_dist4 = __esm({
26454
+ "../../node_modules/@math.gl/arrow/dist/index.js"() {
26455
+ init_arrow();
26456
+ }
26457
+ });
26458
+
26459
+ // ../core/src/arrow-worker-transport.ts
26123
26460
  function serializeArrowWorkerResult(result, options) {
26124
26461
  var _a5;
26125
26462
  if (!isArrowTableWrapper(result)) {
@@ -26150,60 +26487,10 @@ function isDehydratedArrowTableWrapper(value) {
26150
26487
  table && table.shape === "arrow-table" && table.data && table.data.transport === "arrow-js" && Array.isArray(table.data.batches)
26151
26488
  );
26152
26489
  }
26153
- function dehydrateArrowRecordBatch(recordBatch) {
26154
- return { data: dehydrateArrowData(recordBatch.data) };
26155
- }
26156
- function dehydrateArrowData(data) {
26157
- return {
26158
- type: serializeArrowType(data.type),
26159
- offset: data.offset,
26160
- length: data.length,
26161
- // @ts-expect-error _nullCount is protected. Preserve the Arrow lazy null-count state.
26162
- nullCount: data._nullCount,
26163
- buffers: {
26164
- [BufferType.OFFSET]: data.buffers[BufferType.OFFSET],
26165
- [BufferType.DATA]: data.buffers[BufferType.DATA],
26166
- [BufferType.VALIDITY]: data.buffers[BufferType.VALIDITY],
26167
- [BufferType.TYPE]: data.buffers[BufferType.TYPE]
26168
- },
26169
- children: data.children.map((childData) => dehydrateArrowData(childData)),
26170
- dictionary: data.dictionary ? dehydrateArrowVector(data.dictionary) : void 0
26171
- };
26172
- }
26173
- function dehydrateArrowVector(vector) {
26174
- return { data: vector.data.map((data) => dehydrateArrowData(data)) };
26175
- }
26176
- function hydrateArrowData(data) {
26177
- const children = data.children.map((childData) => hydrateArrowData(childData));
26178
- const dictionary = data.dictionary ? hydrateArrowVector(data.dictionary) : void 0;
26179
- return new Data(
26180
- deserializeArrowType(data.type),
26181
- data.offset,
26182
- data.length,
26183
- data.nullCount,
26184
- data.buffers,
26185
- children,
26186
- dictionary
26187
- );
26188
- }
26189
- function hydrateArrowVector(vector) {
26190
- return new Vector(vector.data.map((data) => hydrateArrowData(data)));
26191
- }
26192
- var init_arrow_table_transport = __esm({
26193
- "../core/src/schema-utils/lib/arrow/arrow-table-transport.ts"() {
26194
- "use strict";
26195
- init_Arrow_node();
26196
- init_convert_arrow_schema();
26197
- init_split_arrow_buffers();
26198
- }
26199
- });
26200
-
26201
- // ../core/src/schema-utils/arrow-transport.ts
26202
- var init_arrow_transport = __esm({
26203
- "../core/src/schema-utils/arrow-transport.ts"() {
26490
+ var init_arrow_worker_transport = __esm({
26491
+ "../core/src/arrow-worker-transport.ts"() {
26204
26492
  "use strict";
26205
- init_arrow_table_transport();
26206
- init_split_arrow_buffers();
26493
+ init_dist4();
26207
26494
  }
26208
26495
  });
26209
26496
 
@@ -26212,7 +26499,7 @@ var VERSION2;
26212
26499
  var init_version2 = __esm({
26213
26500
  "src/draco/lib/utils/version.ts"() {
26214
26501
  "use strict";
26215
- VERSION2 = true ? "5.0.0-beta.4" : "latest";
26502
+ VERSION2 = true ? "5.0.0-beta.5" : "latest";
26216
26503
  }
26217
26504
  });
26218
26505
 
@@ -26398,7 +26685,7 @@ var DracoLoader;
26398
26685
  var init_draco_loader_types = __esm({
26399
26686
  "src/draco/draco-loader-types.ts"() {
26400
26687
  "use strict";
26401
- init_arrow_transport();
26688
+ init_arrow_worker_transport();
26402
26689
  init_version2();
26403
26690
  init_draco_format();
26404
26691
  init_draco_loader_options();