@loaders.gl/pointclouds 5.0.0-beta.7 → 5.0.0-beta.8

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 (39) hide show
  1. package/dist/dist.dev.js +837 -71
  2. package/dist/dist.min.js +20 -20
  3. package/dist/las/las-loader-shared.cjs +1 -1
  4. package/dist/las/las-loader-shared.js +1 -1
  5. package/dist/las/las-writer.cjs +1 -1
  6. package/dist/las/las-writer.js +1 -1
  7. package/dist/las/lib/laz-perf/parse-las.cjs +8 -7
  8. package/dist/las/lib/laz-perf/parse-las.cjs.map +3 -3
  9. package/dist/las/lib/laz-perf/parse-las.js +8 -7
  10. package/dist/las/lib/laz-perf/parse-las.js.map +1 -1
  11. package/dist/las/lib/laz-rs-wasm/parse-las.cjs +8 -7
  12. package/dist/las/lib/laz-rs-wasm/parse-las.cjs.map +3 -3
  13. package/dist/las/lib/laz-rs-wasm/parse-las.js +8 -7
  14. package/dist/las/lib/laz-rs-wasm/parse-las.js.map +1 -1
  15. package/dist/las-worker.js +1 -1
  16. package/dist/las-writer.cjs +1 -1
  17. package/dist/pcd/pcd-loader-types.cjs +1 -1
  18. package/dist/pcd/pcd-loader-types.js +1 -1
  19. package/dist/pcd/pcd-writer.cjs +1 -1
  20. package/dist/pcd/pcd-writer.js +1 -1
  21. package/dist/pcd-loader-types.cjs +1 -1
  22. package/dist/pcd-worker.js +37 -1
  23. package/dist/pcd-writer.cjs +1 -1
  24. package/dist/ply/lib/parse-ply-in-batches.cjs +7 -6
  25. package/dist/ply/lib/parse-ply-in-batches.cjs.map +3 -3
  26. package/dist/ply/lib/parse-ply-in-batches.d.ts.map +1 -1
  27. package/dist/ply/lib/parse-ply-in-batches.js +2 -2
  28. package/dist/ply/lib/parse-ply-in-batches.js.map +1 -1
  29. package/dist/ply/ply-loader-types.cjs +1 -1
  30. package/dist/ply/ply-loader-types.js +1 -1
  31. package/dist/ply/ply-writer.cjs +1 -1
  32. package/dist/ply/ply-writer.js +1 -1
  33. package/dist/ply-loader-types.cjs +1 -1
  34. package/dist/ply-worker.js +790 -24
  35. package/dist/ply-writer.cjs +1 -1
  36. package/package.json +3 -3
  37. package/src/las/lib/laz-perf/parse-las.ts +7 -8
  38. package/src/las/lib/laz-rs-wasm/parse-las.ts +7 -8
  39. package/src/ply/lib/parse-ply-in-batches.ts +2 -2
@@ -15,6 +15,734 @@
15
15
  __defProp(target, name, { get: all[name], enumerable: true });
16
16
  };
17
17
 
18
+ // ../../node_modules/probe.gl/dist/env/lib/globals.js
19
+ var window_, document_, process_, console_, navigator_;
20
+ var init_globals = __esm({
21
+ "../../node_modules/probe.gl/dist/env/lib/globals.js"() {
22
+ window_ = globalThis;
23
+ document_ = globalThis.document || {};
24
+ process_ = globalThis.process || {};
25
+ console_ = globalThis.console;
26
+ navigator_ = globalThis.navigator || {};
27
+ }
28
+ });
29
+
30
+ // ../../node_modules/probe.gl/dist/env/lib/is-electron.js
31
+ function isElectron(mockUserAgent) {
32
+ if (typeof window !== "undefined" && window.process?.type === "renderer") {
33
+ return true;
34
+ }
35
+ if (typeof process !== "undefined" && Boolean(process.versions?.["electron"])) {
36
+ return true;
37
+ }
38
+ const realUserAgent = typeof navigator !== "undefined" && navigator.userAgent;
39
+ const userAgent = mockUserAgent || realUserAgent;
40
+ return Boolean(userAgent && userAgent.indexOf("Electron") >= 0);
41
+ }
42
+ var init_is_electron = __esm({
43
+ "../../node_modules/probe.gl/dist/env/lib/is-electron.js"() {
44
+ }
45
+ });
46
+
47
+ // ../../node_modules/probe.gl/dist/env/lib/is-browser.js
48
+ function isBrowser() {
49
+ const isNode = (
50
+ // @ts-expect-error
51
+ typeof process === "object" && String(process) === "[object process]" && !process?.browser
52
+ );
53
+ return !isNode || isElectron();
54
+ }
55
+ var init_is_browser = __esm({
56
+ "../../node_modules/probe.gl/dist/env/lib/is-browser.js"() {
57
+ init_is_electron();
58
+ }
59
+ });
60
+
61
+ // ../../node_modules/probe.gl/dist/env/lib/get-browser.js
62
+ var init_get_browser = __esm({
63
+ "../../node_modules/probe.gl/dist/env/lib/get-browser.js"() {
64
+ init_is_browser();
65
+ init_is_electron();
66
+ init_globals();
67
+ }
68
+ });
69
+
70
+ // ../../node_modules/probe.gl/dist/env/utils/assert.js
71
+ var init_assert = __esm({
72
+ "../../node_modules/probe.gl/dist/env/utils/assert.js"() {
73
+ }
74
+ });
75
+
76
+ // ../../node_modules/probe.gl/dist/env/index.js
77
+ var VERSION;
78
+ var init_env = __esm({
79
+ "../../node_modules/probe.gl/dist/env/index.js"() {
80
+ init_globals();
81
+ init_is_browser();
82
+ init_get_browser();
83
+ init_is_electron();
84
+ init_assert();
85
+ VERSION = true ? "5.0.0" : "untranspiled source";
86
+ }
87
+ });
88
+
89
+ // ../../node_modules/probe.gl/dist/log/utils/assert.js
90
+ function assert2(condition, message) {
91
+ if (!condition) {
92
+ throw new Error(message || "Assertion failed");
93
+ }
94
+ }
95
+ var init_assert2 = __esm({
96
+ "../../node_modules/probe.gl/dist/log/utils/assert.js"() {
97
+ }
98
+ });
99
+
100
+ // ../../node_modules/probe.gl/dist/log/loggers/log-utils.js
101
+ function normalizeLogLevel(logLevel) {
102
+ if (!logLevel) {
103
+ return 0;
104
+ }
105
+ let resolvedLevel;
106
+ switch (typeof logLevel) {
107
+ case "number":
108
+ resolvedLevel = logLevel;
109
+ break;
110
+ case "object":
111
+ resolvedLevel = logLevel.logLevel || logLevel.priority || 0;
112
+ break;
113
+ default:
114
+ return 0;
115
+ }
116
+ assert2(Number.isFinite(resolvedLevel) && resolvedLevel >= 0);
117
+ return resolvedLevel;
118
+ }
119
+ function normalizeArguments(opts) {
120
+ const { logLevel, message } = opts;
121
+ opts.logLevel = normalizeLogLevel(logLevel);
122
+ const args = opts.args ? Array.from(opts.args) : [];
123
+ while (args.length && args.shift() !== message) {
124
+ }
125
+ switch (typeof logLevel) {
126
+ case "string":
127
+ case "function":
128
+ if (message !== void 0) {
129
+ args.unshift(message);
130
+ }
131
+ opts.message = logLevel;
132
+ break;
133
+ case "object":
134
+ Object.assign(opts, logLevel);
135
+ break;
136
+ default:
137
+ }
138
+ if (typeof opts.message === "function") {
139
+ opts.message = opts.message();
140
+ }
141
+ const messageType = typeof opts.message;
142
+ assert2(messageType === "string" || messageType === "object");
143
+ return Object.assign(opts, { args }, opts.opts);
144
+ }
145
+ var init_log_utils = __esm({
146
+ "../../node_modules/probe.gl/dist/log/loggers/log-utils.js"() {
147
+ init_assert2();
148
+ }
149
+ });
150
+
151
+ // ../../node_modules/probe.gl/dist/log/loggers/base-log.js
152
+ var noop, BaseLog;
153
+ var init_base_log = __esm({
154
+ "../../node_modules/probe.gl/dist/log/loggers/base-log.js"() {
155
+ init_log_utils();
156
+ noop = () => {
157
+ };
158
+ BaseLog = class {
159
+ constructor({ level = 0 } = {}) {
160
+ this.userData = {};
161
+ this._onceCache = /* @__PURE__ */ new Set();
162
+ this._level = level;
163
+ }
164
+ set level(newLevel) {
165
+ this.setLevel(newLevel);
166
+ }
167
+ get level() {
168
+ return this.getLevel();
169
+ }
170
+ setLevel(level) {
171
+ this._level = level;
172
+ return this;
173
+ }
174
+ getLevel() {
175
+ return this._level;
176
+ }
177
+ // Unconditional logging
178
+ warn(message, ...args) {
179
+ return this._log("warn", 0, message, args, { once: true });
180
+ }
181
+ error(message, ...args) {
182
+ return this._log("error", 0, message, args);
183
+ }
184
+ // Conditional logging
185
+ log(logLevel, message, ...args) {
186
+ return this._log("log", logLevel, message, args);
187
+ }
188
+ info(logLevel, message, ...args) {
189
+ return this._log("info", logLevel, message, args);
190
+ }
191
+ once(logLevel, message, ...args) {
192
+ return this._log("once", logLevel, message, args, { once: true });
193
+ }
194
+ _log(type, logLevel, message, args, options = {}) {
195
+ const normalized = normalizeArguments({
196
+ logLevel,
197
+ message,
198
+ args: this._buildArgs(logLevel, message, args),
199
+ opts: options
200
+ });
201
+ return this._createLogFunction(type, normalized, options);
202
+ }
203
+ _buildArgs(logLevel, message, args) {
204
+ return [logLevel, message, ...args];
205
+ }
206
+ _createLogFunction(type, normalized, options) {
207
+ if (!this._shouldLog(normalized.logLevel)) {
208
+ return noop;
209
+ }
210
+ const tag = this._getOnceTag(options.tag ?? normalized.tag ?? normalized.message);
211
+ if ((options.once || normalized.once) && tag !== void 0) {
212
+ if (this._onceCache.has(tag)) {
213
+ return noop;
214
+ }
215
+ this._onceCache.add(tag);
216
+ }
217
+ return this._emit(type, normalized);
218
+ }
219
+ _shouldLog(logLevel) {
220
+ return this.getLevel() >= normalizeLogLevel(logLevel);
221
+ }
222
+ _getOnceTag(tag) {
223
+ if (tag === void 0) {
224
+ return void 0;
225
+ }
226
+ try {
227
+ return typeof tag === "string" ? tag : String(tag);
228
+ } catch {
229
+ return void 0;
230
+ }
231
+ }
232
+ };
233
+ }
234
+ });
235
+
236
+ // ../../node_modules/probe.gl/dist/log/utils/local-storage.js
237
+ function getStorage(type) {
238
+ try {
239
+ const storage = window[type];
240
+ const x = "__storage_test__";
241
+ storage.setItem(x, x);
242
+ storage.removeItem(x);
243
+ return storage;
244
+ } catch (e) {
245
+ return null;
246
+ }
247
+ }
248
+ var LocalStorage;
249
+ var init_local_storage = __esm({
250
+ "../../node_modules/probe.gl/dist/log/utils/local-storage.js"() {
251
+ LocalStorage = class {
252
+ constructor(id, defaultConfig, type = "sessionStorage") {
253
+ this.storage = getStorage(type);
254
+ this.id = id;
255
+ this.config = defaultConfig;
256
+ this._loadConfiguration();
257
+ }
258
+ getConfiguration() {
259
+ return this.config;
260
+ }
261
+ setConfiguration(configuration) {
262
+ Object.assign(this.config, configuration);
263
+ if (this.storage) {
264
+ const serialized = JSON.stringify(this.config);
265
+ this.storage.setItem(this.id, serialized);
266
+ }
267
+ }
268
+ // Get config from persistent store, if available
269
+ _loadConfiguration() {
270
+ let configuration = {};
271
+ if (this.storage) {
272
+ const serializedConfiguration = this.storage.getItem(this.id);
273
+ configuration = serializedConfiguration ? JSON.parse(serializedConfiguration) : {};
274
+ }
275
+ Object.assign(this.config, configuration);
276
+ return this;
277
+ }
278
+ };
279
+ }
280
+ });
281
+
282
+ // ../../node_modules/probe.gl/dist/log/utils/formatters.js
283
+ function formatTime(ms) {
284
+ let formatted;
285
+ if (ms < 10) {
286
+ formatted = `${ms.toFixed(2)}ms`;
287
+ } else if (ms < 100) {
288
+ formatted = `${ms.toFixed(1)}ms`;
289
+ } else if (ms < 1e3) {
290
+ formatted = `${ms.toFixed(0)}ms`;
291
+ } else {
292
+ formatted = `${(ms / 1e3).toFixed(2)}s`;
293
+ }
294
+ return formatted;
295
+ }
296
+ function leftPad(string, length = 8) {
297
+ const padLength = Math.max(length - string.length, 0);
298
+ return `${" ".repeat(padLength)}${string}`;
299
+ }
300
+ var init_formatters = __esm({
301
+ "../../node_modules/probe.gl/dist/log/utils/formatters.js"() {
302
+ }
303
+ });
304
+
305
+ // ../../node_modules/probe.gl/dist/log/utils/color.js
306
+ function getColor(color) {
307
+ if (typeof color !== "string") {
308
+ return color;
309
+ }
310
+ color = color.toUpperCase();
311
+ return COLOR[color] || COLOR.WHITE;
312
+ }
313
+ function addColor(string, color, background) {
314
+ if (!isBrowser && typeof string === "string") {
315
+ if (color) {
316
+ const colorCode = getColor(color);
317
+ string = `\x1B[${colorCode}m${string}\x1B[39m`;
318
+ }
319
+ if (background) {
320
+ const colorCode = getColor(background);
321
+ string = `\x1B[${colorCode + BACKGROUND_INCREMENT}m${string}\x1B[49m`;
322
+ }
323
+ }
324
+ return string;
325
+ }
326
+ var COLOR, BACKGROUND_INCREMENT;
327
+ var init_color = __esm({
328
+ "../../node_modules/probe.gl/dist/log/utils/color.js"() {
329
+ init_env();
330
+ (function(COLOR2) {
331
+ COLOR2[COLOR2["BLACK"] = 30] = "BLACK";
332
+ COLOR2[COLOR2["RED"] = 31] = "RED";
333
+ COLOR2[COLOR2["GREEN"] = 32] = "GREEN";
334
+ COLOR2[COLOR2["YELLOW"] = 33] = "YELLOW";
335
+ COLOR2[COLOR2["BLUE"] = 34] = "BLUE";
336
+ COLOR2[COLOR2["MAGENTA"] = 35] = "MAGENTA";
337
+ COLOR2[COLOR2["CYAN"] = 36] = "CYAN";
338
+ COLOR2[COLOR2["WHITE"] = 37] = "WHITE";
339
+ COLOR2[COLOR2["BRIGHT_BLACK"] = 90] = "BRIGHT_BLACK";
340
+ COLOR2[COLOR2["BRIGHT_RED"] = 91] = "BRIGHT_RED";
341
+ COLOR2[COLOR2["BRIGHT_GREEN"] = 92] = "BRIGHT_GREEN";
342
+ COLOR2[COLOR2["BRIGHT_YELLOW"] = 93] = "BRIGHT_YELLOW";
343
+ COLOR2[COLOR2["BRIGHT_BLUE"] = 94] = "BRIGHT_BLUE";
344
+ COLOR2[COLOR2["BRIGHT_MAGENTA"] = 95] = "BRIGHT_MAGENTA";
345
+ COLOR2[COLOR2["BRIGHT_CYAN"] = 96] = "BRIGHT_CYAN";
346
+ COLOR2[COLOR2["BRIGHT_WHITE"] = 97] = "BRIGHT_WHITE";
347
+ })(COLOR || (COLOR = {}));
348
+ BACKGROUND_INCREMENT = 10;
349
+ }
350
+ });
351
+
352
+ // ../../node_modules/probe.gl/dist/log/utils/autobind.js
353
+ function autobind(obj, predefined = ["constructor"]) {
354
+ const proto = Object.getPrototypeOf(obj);
355
+ const propNames = Object.getOwnPropertyNames(proto);
356
+ const object = obj;
357
+ for (const key of propNames) {
358
+ const value = object[key];
359
+ if (typeof value === "function") {
360
+ if (!predefined.find((name) => key === name)) {
361
+ object[key] = value.bind(obj);
362
+ }
363
+ }
364
+ }
365
+ }
366
+ var init_autobind = __esm({
367
+ "../../node_modules/probe.gl/dist/log/utils/autobind.js"() {
368
+ }
369
+ });
370
+
371
+ // ../../node_modules/probe.gl/dist/log/probe.js
372
+ var Probe, probe;
373
+ var init_probe = __esm({
374
+ "../../node_modules/probe.gl/dist/log/probe.js"() {
375
+ init_env();
376
+ Probe = class {
377
+ getHighResolutionTimer() {
378
+ let timestamp;
379
+ if (isBrowser() && window_.performance) {
380
+ timestamp = window_?.performance?.now?.();
381
+ } else if ("hrtime" in process_) {
382
+ const timeParts = process_?.hrtime?.();
383
+ timestamp = timeParts[0] * 1e3 + timeParts[1] / 1e6;
384
+ } else {
385
+ timestamp = Date.now();
386
+ }
387
+ return timestamp;
388
+ }
389
+ getMemoryUsageMB() {
390
+ const performance2 = window_?.performance;
391
+ const usedJSHeapSize = performance2?.memory?.usedJSHeapSize;
392
+ if (usedJSHeapSize === void 0 || usedJSHeapSize === null) {
393
+ return null;
394
+ }
395
+ return Math.trunc(usedJSHeapSize / 1024 / 1024);
396
+ }
397
+ };
398
+ probe = new Probe();
399
+ globalThis.Probe = Probe;
400
+ globalThis.probe = probe;
401
+ }
402
+ });
403
+
404
+ // ../../node_modules/probe.gl/dist/log/loggers/probe-log.js
405
+ function decorateMessage(id, message, opts) {
406
+ if (typeof message === "string") {
407
+ const time = opts.time ? leftPad(formatTime(opts.total)) : "";
408
+ message = opts.time ? `${id}: ${time} ${message}` : `${id}: ${message}`;
409
+ message = addColor(message, opts.color, opts.background);
410
+ }
411
+ return message;
412
+ }
413
+ function getTableHeader(table) {
414
+ for (const key in table) {
415
+ for (const title in table[key]) {
416
+ return title || "untitled";
417
+ }
418
+ }
419
+ return "empty";
420
+ }
421
+ var originalConsole, DEFAULT_LOG_CONFIGURATION, ProbeLog;
422
+ var init_probe_log = __esm({
423
+ "../../node_modules/probe.gl/dist/log/loggers/probe-log.js"() {
424
+ init_env();
425
+ init_base_log();
426
+ init_local_storage();
427
+ init_formatters();
428
+ init_color();
429
+ init_autobind();
430
+ init_assert2();
431
+ init_probe();
432
+ init_log_utils();
433
+ init_log_utils();
434
+ originalConsole = {
435
+ debug: isBrowser() ? console.debug || console.log : console.log,
436
+ log: console.log,
437
+ info: console.info,
438
+ warn: console.warn,
439
+ error: console.error
440
+ };
441
+ DEFAULT_LOG_CONFIGURATION = {
442
+ enabled: true,
443
+ level: 0
444
+ };
445
+ ProbeLog = class extends BaseLog {
446
+ constructor({ id } = { id: "" }) {
447
+ super({ level: 0 });
448
+ this.VERSION = VERSION;
449
+ this._startTs = probe.getHighResolutionTimer();
450
+ this._deltaTs = probe.getHighResolutionTimer();
451
+ this.userData = {};
452
+ this.LOG_THROTTLE_TIMEOUT = 0;
453
+ this.id = id;
454
+ this.userData = {};
455
+ this._storage = new LocalStorage(`__probe-${this.id}__`, { [this.id]: DEFAULT_LOG_CONFIGURATION });
456
+ this.timeStamp(`${this.id} started`);
457
+ autobind(this);
458
+ Object.seal(this);
459
+ }
460
+ isEnabled() {
461
+ return this._getConfiguration().enabled;
462
+ }
463
+ getLevel() {
464
+ return this._getConfiguration().level;
465
+ }
466
+ /** @return milliseconds, with fractions */
467
+ getTotal() {
468
+ return Number((probe.getHighResolutionTimer() - this._startTs).toPrecision(10));
469
+ }
470
+ /** @return milliseconds, with fractions */
471
+ getDelta() {
472
+ return Number((probe.getHighResolutionTimer() - this._deltaTs).toPrecision(10));
473
+ }
474
+ /** @deprecated use logLevel */
475
+ set priority(newPriority) {
476
+ this.level = newPriority;
477
+ }
478
+ /** @deprecated use logLevel */
479
+ get priority() {
480
+ return this.level;
481
+ }
482
+ /** @deprecated use logLevel */
483
+ getPriority() {
484
+ return this.level;
485
+ }
486
+ // Configure
487
+ enable(enabled = true) {
488
+ this._updateConfiguration({ enabled });
489
+ return this;
490
+ }
491
+ setLevel(level) {
492
+ this._updateConfiguration({ level });
493
+ return this;
494
+ }
495
+ /** return the current status of the setting */
496
+ get(setting) {
497
+ return this._getConfiguration()[setting];
498
+ }
499
+ // update the status of the setting
500
+ set(setting, value) {
501
+ this._updateConfiguration({ [setting]: value });
502
+ }
503
+ /** Logs the current settings as a table */
504
+ settings() {
505
+ if (console.table) {
506
+ console.table(this._storage.config);
507
+ } else {
508
+ console.log(this._storage.config);
509
+ }
510
+ }
511
+ // Unconditional logging
512
+ assert(condition, message) {
513
+ if (!condition) {
514
+ throw new Error(message || "Assertion failed");
515
+ }
516
+ }
517
+ warn(message, ...args) {
518
+ return this._log("warn", 0, message, args, {
519
+ method: originalConsole.warn,
520
+ once: true
521
+ });
522
+ }
523
+ error(message, ...args) {
524
+ return this._log("error", 0, message, args, {
525
+ method: originalConsole.error
526
+ });
527
+ }
528
+ /** Print a deprecation warning */
529
+ deprecated(oldUsage, newUsage) {
530
+ return this.warn(`\`${oldUsage}\` is deprecated and will be removed in a later version. Use \`${newUsage}\` instead`);
531
+ }
532
+ /** Print a removal warning */
533
+ removed(oldUsage, newUsage) {
534
+ return this.error(`\`${oldUsage}\` has been removed. Use \`${newUsage}\` instead`);
535
+ }
536
+ probe(logLevel, message, ...args) {
537
+ const memoryUsageMB = probe.getMemoryUsageMB();
538
+ if (memoryUsageMB !== null) {
539
+ const memoryUsagePrefix = `${memoryUsageMB}MB `;
540
+ if (typeof message === "function") {
541
+ message = () => `${memoryUsagePrefix}${message()}`;
542
+ } else if (typeof message === "string") {
543
+ message = `${memoryUsagePrefix}${message}`;
544
+ }
545
+ }
546
+ return this._log("log", logLevel, message, args, {
547
+ method: originalConsole.log,
548
+ time: true,
549
+ once: true
550
+ });
551
+ }
552
+ log(logLevel, message, ...args) {
553
+ return this._log("log", logLevel, message, args, {
554
+ method: originalConsole.debug
555
+ });
556
+ }
557
+ info(logLevel, message, ...args) {
558
+ return this._log("info", logLevel, message, args, { method: console.info });
559
+ }
560
+ once(logLevel, message, ...args) {
561
+ return this._log("once", logLevel, message, args, {
562
+ method: originalConsole.debug || originalConsole.info,
563
+ once: true
564
+ });
565
+ }
566
+ /** Logs an object as a table */
567
+ table(logLevel, table, columns) {
568
+ if (table) {
569
+ return this._log("table", logLevel, table, columns && [columns] || [], {
570
+ method: console.table || noop,
571
+ tag: getTableHeader(table)
572
+ });
573
+ }
574
+ return noop;
575
+ }
576
+ time(logLevel, message) {
577
+ return this._log("time", logLevel, message, [], {
578
+ method: console.time ? console.time : console.info
579
+ });
580
+ }
581
+ timeEnd(logLevel, message) {
582
+ return this._log("time", logLevel, message, [], {
583
+ method: console.timeEnd ? console.timeEnd : console.info
584
+ });
585
+ }
586
+ timeStamp(logLevel, message) {
587
+ return this._log("time", logLevel, message, [], {
588
+ method: console.timeStamp || noop
589
+ });
590
+ }
591
+ group(logLevel, message, opts = { collapsed: false }) {
592
+ const method = (opts.collapsed ? console.groupCollapsed : console.group) || console.info;
593
+ return this._log("group", logLevel, message, [], { method });
594
+ }
595
+ groupCollapsed(logLevel, message, opts = {}) {
596
+ return this.group(logLevel, message, Object.assign({}, opts, { collapsed: true }));
597
+ }
598
+ groupEnd(logLevel) {
599
+ return this._log("groupEnd", logLevel, "", [], {
600
+ method: console.groupEnd || noop
601
+ });
602
+ }
603
+ // EXPERIMENTAL
604
+ withGroup(logLevel, message, func) {
605
+ this.group(logLevel, message)();
606
+ try {
607
+ func();
608
+ } finally {
609
+ this.groupEnd(logLevel)();
610
+ }
611
+ }
612
+ trace() {
613
+ if (console.trace) {
614
+ console.trace();
615
+ }
616
+ }
617
+ _shouldLog(logLevel) {
618
+ return this.isEnabled() && super._shouldLog(logLevel);
619
+ }
620
+ _emit(_type, normalized) {
621
+ const method = normalized.method;
622
+ assert2(method);
623
+ normalized.total = this.getTotal();
624
+ normalized.delta = this.getDelta();
625
+ this._deltaTs = probe.getHighResolutionTimer();
626
+ const message = decorateMessage(this.id, normalized.message, normalized);
627
+ return method.bind(console, message, ...normalized.args);
628
+ }
629
+ _getConfiguration() {
630
+ if (!this._storage.config[this.id]) {
631
+ this._updateConfiguration(DEFAULT_LOG_CONFIGURATION);
632
+ }
633
+ return this._storage.config[this.id];
634
+ }
635
+ _updateConfiguration(configuration) {
636
+ const currentConfiguration = this._storage.config[this.id] || {
637
+ ...DEFAULT_LOG_CONFIGURATION
638
+ };
639
+ this._storage.setConfiguration({
640
+ [this.id]: { ...currentConfiguration, ...configuration }
641
+ });
642
+ }
643
+ };
644
+ ProbeLog.VERSION = VERSION;
645
+ }
646
+ });
647
+
648
+ // ../../node_modules/probe.gl/dist/log/loggers/console-log.js
649
+ var init_console_log = __esm({
650
+ "../../node_modules/probe.gl/dist/log/loggers/console-log.js"() {
651
+ init_base_log();
652
+ }
653
+ });
654
+
655
+ // ../../node_modules/probe.gl/dist/log/loggers/memory-log.js
656
+ var init_memory_log = __esm({
657
+ "../../node_modules/probe.gl/dist/log/loggers/memory-log.js"() {
658
+ init_base_log();
659
+ }
660
+ });
661
+
662
+ // ../../node_modules/probe.gl/dist/log/deprecated/hi-res-timestamp.js
663
+ var init_hi_res_timestamp = __esm({
664
+ "../../node_modules/probe.gl/dist/log/deprecated/hi-res-timestamp.js"() {
665
+ init_probe();
666
+ }
667
+ });
668
+
669
+ // ../../node_modules/probe.gl/dist/log/init.js
670
+ var init_init = __esm({
671
+ "../../node_modules/probe.gl/dist/log/init.js"() {
672
+ init_probe();
673
+ if (!globalThis.probe) {
674
+ globalThis.probe = probe;
675
+ }
676
+ }
677
+ });
678
+
679
+ // ../../node_modules/probe.gl/dist/log/index.js
680
+ var log;
681
+ var init_log = __esm({
682
+ "../../node_modules/probe.gl/dist/log/index.js"() {
683
+ init_probe_log();
684
+ init_probe();
685
+ init_probe_log();
686
+ init_console_log();
687
+ init_base_log();
688
+ init_memory_log();
689
+ init_color();
690
+ init_color();
691
+ init_formatters();
692
+ init_autobind();
693
+ init_local_storage();
694
+ init_hi_res_timestamp();
695
+ init_init();
696
+ log = new ProbeLog({ id: "@probe.gl/log" });
697
+ }
698
+ });
699
+
700
+ // ../core/src/loader-utils/lib/log-utils/log.ts
701
+ function createLog() {
702
+ const log3 = new ProbeLog({ id: "loaders.gl" });
703
+ globalThis.loaders ||= {};
704
+ globalThis.loaders.log = log3;
705
+ globalThis.loaders.version = version;
706
+ globalThis.probe ||= {};
707
+ globalThis.probe.loaders = log3;
708
+ return log3;
709
+ }
710
+ function ignoreMessage() {
711
+ }
712
+ var VERSION2, version, log2, NullLog, nullLog;
713
+ var init_log2 = __esm({
714
+ "../core/src/loader-utils/lib/log-utils/log.ts"() {
715
+ "use strict";
716
+ init_log();
717
+ VERSION2 = true ? "5.0.0-beta.8" : "latest";
718
+ version = VERSION2[0] >= "0" && VERSION2[0] <= "9" ? `v${VERSION2}` : "";
719
+ log2 = createLog();
720
+ NullLog = class {
721
+ /** Discards debug messages. */
722
+ log() {
723
+ return ignoreMessage;
724
+ }
725
+ /** Discards informational messages. */
726
+ info() {
727
+ return ignoreMessage;
728
+ }
729
+ /** Discards messages marked to be emitted once. */
730
+ once() {
731
+ return ignoreMessage;
732
+ }
733
+ /** Discards warnings. */
734
+ warn() {
735
+ return ignoreMessage;
736
+ }
737
+ /** Discards errors. */
738
+ error() {
739
+ return ignoreMessage;
740
+ }
741
+ };
742
+ nullLog = new NullLog();
743
+ }
744
+ });
745
+
18
746
  // ../../node_modules/@math.gl/tasks/dist/worker-utils/lib/node/worker_threads-browser.js
19
747
  var parentPort;
20
748
  var init_worker_threads_browser = __esm({
@@ -1499,6 +2227,7 @@
1499
2227
  var init_loader_utils = __esm({
1500
2228
  "../core/src/loader-utils/index.ts"() {
1501
2229
  "use strict";
2230
+ init_log2();
1502
2231
  init_create_loader_worker();
1503
2232
  init_text_iterators();
1504
2233
  init_async_iteration();
@@ -9374,8 +10103,8 @@ return true;`);
9374
10103
  static startFooter(builder) {
9375
10104
  builder.startObject(5);
9376
10105
  }
9377
- static addVersion(builder, version) {
9378
- builder.addFieldInt16(0, version, MetadataVersion.V1);
10106
+ static addVersion(builder, version2) {
10107
+ builder.addFieldInt16(0, version2, MetadataVersion.V1);
9379
10108
  }
9380
10109
  static addSchema(builder, schemaOffset) {
9381
10110
  builder.addFieldOffset(1, schemaOffset, 0);
@@ -9621,9 +10350,9 @@ return true;`);
9621
10350
  get numDictionaries() {
9622
10351
  return this._dictionaryBatches.length;
9623
10352
  }
9624
- constructor(schema, version = MetadataVersion.V5, recordBatches, dictionaryBatches) {
10353
+ constructor(schema, version2 = MetadataVersion.V5, recordBatches, dictionaryBatches) {
9625
10354
  this.schema = schema;
9626
- this.version = version;
10355
+ this.version = version2;
9627
10356
  recordBatches && (this._recordBatches = recordBatches);
9628
10357
  dictionaryBatches && (this._dictionaryBatches = dictionaryBatches);
9629
10358
  }
@@ -9751,8 +10480,8 @@ return true;`);
9751
10480
  static startMessage(builder) {
9752
10481
  builder.startObject(5);
9753
10482
  }
9754
- static addVersion(builder, version) {
9755
- builder.addFieldInt16(0, version, MetadataVersion.V1);
10483
+ static addVersion(builder, version2) {
10484
+ builder.addFieldInt16(0, version2, MetadataVersion.V1);
9756
10485
  }
9757
10486
  static addHeaderType(builder, headerType) {
9758
10487
  builder.addFieldInt8(1, headerType, MessageHeader.NONE);
@@ -9786,9 +10515,9 @@ return true;`);
9786
10515
  static finishSizePrefixedMessageBuffer(builder, offset) {
9787
10516
  builder.finish(offset, void 0, true);
9788
10517
  }
9789
- static createMessage(builder, version, headerType, headerOffset, bodyLength, customMetadataOffset) {
10518
+ static createMessage(builder, version2, headerType, headerOffset, bodyLength, customMetadataOffset) {
9790
10519
  _Message.startMessage(builder);
9791
- _Message.addVersion(builder, version);
10520
+ _Message.addVersion(builder, version2);
9792
10521
  _Message.addHeaderType(builder, headerType);
9793
10522
  _Message.addHeader(builder, headerOffset);
9794
10523
  _Message.addBodyLength(builder, bodyLength);
@@ -10160,16 +10889,16 @@ return true;`);
10160
10889
  throw new Error(`Unrecognized Message type: { name: ${MessageHeader[type]}, type: ${type} }`);
10161
10890
  });
10162
10891
  }
10163
- function decodeSchema(_schema, dictionaries = /* @__PURE__ */ new Map(), version = MetadataVersion.V5) {
10892
+ function decodeSchema(_schema, dictionaries = /* @__PURE__ */ new Map(), version2 = MetadataVersion.V5) {
10164
10893
  const fields = decodeSchemaFields(_schema, dictionaries);
10165
- return new Schema2(fields, decodeCustomMetadata(_schema), dictionaries, version);
10894
+ return new Schema2(fields, decodeCustomMetadata(_schema), dictionaries, version2);
10166
10895
  }
10167
- function decodeRecordBatch(batch, version = MetadataVersion.V5) {
10168
- const recordBatch = new RecordBatch2(batch.length(), decodeFieldNodes(batch), decodeBuffers(batch, version), decodeBodyCompression(batch.compression()), decodeVariadicBufferCounts(batch));
10896
+ function decodeRecordBatch(batch, version2 = MetadataVersion.V5) {
10897
+ const recordBatch = new RecordBatch2(batch.length(), decodeFieldNodes(batch), decodeBuffers(batch, version2), decodeBodyCompression(batch.compression()), decodeVariadicBufferCounts(batch));
10169
10898
  return recordBatch;
10170
10899
  }
10171
- function decodeDictionaryBatch(batch, version = MetadataVersion.V5) {
10172
- return new DictionaryBatch2(RecordBatch2.decode(batch.data(), version), batch.id(), batch.isDelta());
10900
+ function decodeDictionaryBatch(batch, version2 = MetadataVersion.V5) {
10901
+ return new DictionaryBatch2(RecordBatch2.decode(batch.data(), version2), batch.id(), batch.isDelta());
10173
10902
  }
10174
10903
  function decodeBufferRegion(b) {
10175
10904
  return new BufferRegion(b.offset(), b.length());
@@ -10186,11 +10915,11 @@ return true;`);
10186
10915
  }
10187
10916
  return nodes;
10188
10917
  }
10189
- function decodeBuffers(batch, version) {
10918
+ function decodeBuffers(batch, version2) {
10190
10919
  const bufferRegions = [];
10191
10920
  for (let b, i = -1, j = -1, n = batch.buffersLength(); ++i < n; ) {
10192
10921
  if (b = batch.buffers(i)) {
10193
- if (version < MetadataVersion.V4) {
10922
+ if (version2 < MetadataVersion.V4) {
10194
10923
  b.bb_pos += 8 * (i + 1);
10195
10924
  }
10196
10925
  bufferRegions[++j] = BufferRegion.decode(b);
@@ -10515,10 +11244,10 @@ return true;`);
10515
11244
  buf = new ByteBuffer3(toUint8Array(buf));
10516
11245
  const _message = Message.getRootAsMessage(buf);
10517
11246
  const bodyLength = _message.bodyLength();
10518
- const version = _message.version();
11247
+ const version2 = _message.version();
10519
11248
  const headerType = _message.headerType();
10520
11249
  const metadata = decodeMessageCustomMetadata(_message);
10521
- const message = new _Message(bodyLength, version, headerType, void 0, metadata);
11250
+ const message = new _Message(bodyLength, version2, headerType, void 0, metadata);
10522
11251
  message._createHeader = decodeMessageHeader(_message, headerType);
10523
11252
  return message;
10524
11253
  }
@@ -10595,8 +11324,8 @@ return true;`);
10595
11324
  isDictionaryBatch() {
10596
11325
  return this.headerType === MessageHeader.DictionaryBatch;
10597
11326
  }
10598
- constructor(bodyLength, version, headerType, header, metadata) {
10599
- this._version = version;
11327
+ constructor(bodyLength, version2, headerType, header, metadata) {
11328
+ this._version = version2;
10600
11329
  this._headerType = headerType;
10601
11330
  this.body = new Uint8Array(0);
10602
11331
  this._compression = header === null || header === void 0 ? void 0 : header.compression;
@@ -17512,6 +18241,18 @@ return true;`);
17512
18241
  }
17513
18242
  });
17514
18243
 
18244
+ // ../../node_modules/@math.gl/arrow/dist/arrow/indexed-arrow-helpers.js
18245
+ var init_indexed_arrow_helpers = __esm({
18246
+ "../../node_modules/@math.gl/arrow/dist/arrow/indexed-arrow-helpers.js"() {
18247
+ }
18248
+ });
18249
+
18250
+ // ../../node_modules/@math.gl/arrow/dist/arrow/arrow-schema-utils.js
18251
+ var init_arrow_schema_utils = __esm({
18252
+ "../../node_modules/@math.gl/arrow/dist/arrow/arrow-schema-utils.js"() {
18253
+ }
18254
+ });
18255
+
17515
18256
  // ../../node_modules/@math.gl/arrow/dist/arrow/arrow-data.js
17516
18257
  function getArrowVariadicBuffers(data) {
17517
18258
  return data.variadicBuffers ?? [];
@@ -17615,27 +18356,43 @@ return true;`);
17615
18356
  }
17616
18357
  });
17617
18358
 
18359
+ // ../../node_modules/@math.gl/arrow/dist/arrow/take-arrow-rows.js
18360
+ var init_take_arrow_rows = __esm({
18361
+ "../../node_modules/@math.gl/arrow/dist/arrow/take-arrow-rows.js"() {
18362
+ init_arrow_data();
18363
+ init_split_arrow_buffers();
18364
+ }
18365
+ });
18366
+
17618
18367
  // ../../node_modules/@math.gl/arrow/dist/arrow/indexed-arrow-vector.js
17619
18368
  var init_indexed_arrow_vector = __esm({
17620
18369
  "../../node_modules/@math.gl/arrow/dist/arrow/indexed-arrow-vector.js"() {
18370
+ init_indexed_arrow_helpers();
17621
18371
  }
17622
18372
  });
17623
18373
 
17624
18374
  // ../../node_modules/@math.gl/arrow/dist/arrow/indexed-arrow-table.js
17625
18375
  var init_indexed_arrow_table = __esm({
17626
18376
  "../../node_modules/@math.gl/arrow/dist/arrow/indexed-arrow-table.js"() {
18377
+ init_indexed_arrow_helpers();
18378
+ init_arrow_schema_utils();
18379
+ init_take_arrow_rows();
18380
+ init_indexed_arrow_vector();
17627
18381
  }
17628
18382
  });
17629
18383
 
17630
18384
  // ../../node_modules/@math.gl/arrow/dist/arrow/mapped-arrow-table.js
17631
18385
  var init_mapped_arrow_table = __esm({
17632
18386
  "../../node_modules/@math.gl/arrow/dist/arrow/mapped-arrow-table.js"() {
18387
+ init_indexed_arrow_helpers();
18388
+ init_indexed_arrow_table();
17633
18389
  }
17634
18390
  });
17635
18391
 
17636
18392
  // ../../node_modules/@math.gl/arrow/dist/arrow/rename-arrow-columns.js
17637
18393
  var init_rename_arrow_columns = __esm({
17638
18394
  "../../node_modules/@math.gl/arrow/dist/arrow/rename-arrow-columns.js"() {
18395
+ init_arrow_schema_utils();
17639
18396
  }
17640
18397
  });
17641
18398
 
@@ -17689,15 +18446,23 @@ return true;`);
17689
18446
  }
17690
18447
  });
17691
18448
 
18449
+ // ../../node_modules/@math.gl/arrow/dist/arrow/arrow-column-utils.js
18450
+ var init_arrow_column_utils = __esm({
18451
+ "../../node_modules/@math.gl/arrow/dist/arrow/arrow-column-utils.js"() {
18452
+ }
18453
+ });
18454
+
17692
18455
  // ../../node_modules/@math.gl/arrow/dist/arrow/index.js
17693
18456
  var init_arrow = __esm({
17694
18457
  "../../node_modules/@math.gl/arrow/dist/arrow/index.js"() {
17695
18458
  init_indexed_arrow_table();
17696
18459
  init_indexed_arrow_vector();
17697
18460
  init_mapped_arrow_table();
18461
+ init_arrow_schema_utils();
17698
18462
  init_rename_arrow_columns();
17699
18463
  init_split_arrow_buffers();
17700
18464
  init_arrow_table_transport();
18465
+ init_arrow_column_utils();
17701
18466
  }
17702
18467
  });
17703
18468
 
@@ -19593,7 +20358,7 @@ return true;`);
19593
20358
  currentElement?.properties.push(property);
19594
20359
  break;
19595
20360
  default:
19596
- console.log("unhandled", lineType, lineValues);
20361
+ log2.log(0, "unhandled", lineType, lineValues)();
19597
20362
  }
19598
20363
  return false;
19599
20364
  });
@@ -19716,6 +20481,7 @@ return true;`);
19716
20481
  "src/ply/lib/parse-ply-in-batches.ts"() {
19717
20482
  "use strict";
19718
20483
  init_loader_utils();
20484
+ init_loader_utils();
19719
20485
  init_normalize_ply();
19720
20486
  init_parse_ply();
19721
20487
  init_parse_ply_arrow();
@@ -19750,19 +20516,19 @@ return true;`);
19750
20516
  const { PLYLoaderWithParser: PLYLoaderWithParser2 } = await Promise.resolve().then(() => (init_ply_loader(), ply_loader_exports));
19751
20517
  return PLYLoaderWithParser2;
19752
20518
  }
19753
- var VERSION, PLYLoader;
20519
+ var VERSION3, PLYLoader;
19754
20520
  var init_ply_loader_types = __esm({
19755
20521
  "src/ply/ply-loader-types.ts"() {
19756
20522
  "use strict";
19757
20523
  init_ply_format();
19758
20524
  init_arrow_worker_transport();
19759
- VERSION = true ? "5.0.0-beta.7" : "latest";
20525
+ VERSION3 = true ? "5.0.0-beta.8" : "latest";
19760
20526
  PLYLoader = {
19761
20527
  dataType: null,
19762
20528
  batchType: null,
19763
20529
  ...PLYFormat,
19764
20530
  // shapes: ['mesh', 'gltf', 'columnar-table'],
19765
- version: VERSION,
20531
+ version: VERSION3,
19766
20532
  worker: true,
19767
20533
  /** Enables the stateful input/output batch protocol on the built-in worker. */
19768
20534
  workerInBatches: true,