@loaders.gl/tiles 3.4.0-alpha.3 → 3.4.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dist.min.js +69 -289
- package/dist/es5/tileset/format-i3s/i3s-pending-tiles-register.js.map +1 -1
- package/dist/es5/tileset/format-i3s/i3s-tile-manager.js.map +1 -1
- package/dist/es5/tileset/format-i3s/i3s-tileset-traverser.js.map +1 -1
- package/dist/es5/tileset/helpers/bounding-volume.js.map +1 -1
- package/dist/es5/tileset/helpers/frame-state.js.map +1 -1
- package/dist/es5/tileset/helpers/i3s-lod.js.map +1 -1
- package/dist/es5/tileset/helpers/tiles-3d-lod.js.map +1 -1
- package/dist/es5/tileset/helpers/transform-utils.js.map +1 -1
- package/dist/es5/tileset/helpers/zoom.js.map +1 -1
- package/dist/es5/tileset/tile-3d.js.map +1 -1
- package/dist/es5/tileset/tileset-3d.js.map +1 -1
- package/dist/es5/tileset/tileset-cache.js.map +1 -1
- package/dist/es5/tileset/tileset-traverser.js.map +1 -1
- package/dist/es5/utils/managed-array.js.map +1 -1
- package/dist/esm/tileset/format-i3s/i3s-pending-tiles-register.js.map +1 -1
- package/dist/esm/tileset/format-i3s/i3s-tile-manager.js.map +1 -1
- package/dist/esm/tileset/format-i3s/i3s-tileset-traverser.js.map +1 -1
- package/dist/esm/tileset/helpers/bounding-volume.js.map +1 -1
- package/dist/esm/tileset/helpers/frame-state.js.map +1 -1
- package/dist/esm/tileset/helpers/i3s-lod.js.map +1 -1
- package/dist/esm/tileset/helpers/tiles-3d-lod.js.map +1 -1
- package/dist/esm/tileset/helpers/transform-utils.js.map +1 -1
- package/dist/esm/tileset/helpers/zoom.js.map +1 -1
- package/dist/esm/tileset/tile-3d.js.map +1 -1
- package/dist/esm/tileset/tileset-3d.js.map +1 -1
- package/dist/esm/tileset/tileset-cache.js.map +1 -1
- package/dist/esm/tileset/tileset-traverser.js.map +1 -1
- package/dist/esm/utils/managed-array.js.map +1 -1
- package/package.json +4 -4
package/dist/dist.min.js
CHANGED
|
@@ -3394,7 +3394,7 @@
|
|
|
3394
3394
|
}
|
|
3395
3395
|
});
|
|
3396
3396
|
|
|
3397
|
-
// node_modules/@probe.gl/stats/dist/utils/hi-res-timestamp.js
|
|
3397
|
+
// ../../node_modules/@probe.gl/stats/dist/utils/hi-res-timestamp.js
|
|
3398
3398
|
function getHiResTimestamp() {
|
|
3399
3399
|
let timestamp;
|
|
3400
3400
|
if (typeof window !== "undefined" && window.performance) {
|
|
@@ -3408,14 +3408,14 @@
|
|
|
3408
3408
|
return timestamp;
|
|
3409
3409
|
}
|
|
3410
3410
|
var init_hi_res_timestamp = __esm({
|
|
3411
|
-
"node_modules/@probe.gl/stats/dist/utils/hi-res-timestamp.js"() {
|
|
3411
|
+
"../../node_modules/@probe.gl/stats/dist/utils/hi-res-timestamp.js"() {
|
|
3412
3412
|
}
|
|
3413
3413
|
});
|
|
3414
3414
|
|
|
3415
|
-
// node_modules/@probe.gl/stats/dist/lib/stat.js
|
|
3415
|
+
// ../../node_modules/@probe.gl/stats/dist/lib/stat.js
|
|
3416
3416
|
var Stat;
|
|
3417
3417
|
var init_stat = __esm({
|
|
3418
|
-
"node_modules/@probe.gl/stats/dist/lib/stat.js"() {
|
|
3418
|
+
"../../node_modules/@probe.gl/stats/dist/lib/stat.js"() {
|
|
3419
3419
|
init_defineProperty();
|
|
3420
3420
|
init_hi_res_timestamp();
|
|
3421
3421
|
Stat = class {
|
|
@@ -3531,10 +3531,10 @@
|
|
|
3531
3531
|
}
|
|
3532
3532
|
});
|
|
3533
3533
|
|
|
3534
|
-
// node_modules/@probe.gl/stats/dist/lib/stats.js
|
|
3534
|
+
// ../../node_modules/@probe.gl/stats/dist/lib/stats.js
|
|
3535
3535
|
var Stats;
|
|
3536
3536
|
var init_stats = __esm({
|
|
3537
|
-
"node_modules/@probe.gl/stats/dist/lib/stats.js"() {
|
|
3537
|
+
"../../node_modules/@probe.gl/stats/dist/lib/stats.js"() {
|
|
3538
3538
|
init_defineProperty();
|
|
3539
3539
|
init_stat();
|
|
3540
3540
|
Stats = class {
|
|
@@ -3584,29 +3584,28 @@
|
|
|
3584
3584
|
stats.forEach((stat) => this._getOrCreate(stat));
|
|
3585
3585
|
}
|
|
3586
3586
|
_getOrCreate(stat) {
|
|
3587
|
-
if (!stat || !stat.name) {
|
|
3588
|
-
return null;
|
|
3589
|
-
}
|
|
3590
3587
|
const {
|
|
3591
3588
|
name,
|
|
3592
3589
|
type
|
|
3593
3590
|
} = stat;
|
|
3594
|
-
|
|
3591
|
+
let result = this.stats[name];
|
|
3592
|
+
if (!result) {
|
|
3595
3593
|
if (stat instanceof Stat) {
|
|
3596
|
-
|
|
3594
|
+
result = stat;
|
|
3597
3595
|
} else {
|
|
3598
|
-
|
|
3596
|
+
result = new Stat(name, type);
|
|
3599
3597
|
}
|
|
3598
|
+
this.stats[name] = result;
|
|
3600
3599
|
}
|
|
3601
|
-
return
|
|
3600
|
+
return result;
|
|
3602
3601
|
}
|
|
3603
3602
|
};
|
|
3604
3603
|
}
|
|
3605
3604
|
});
|
|
3606
3605
|
|
|
3607
|
-
// node_modules/@probe.gl/stats/dist/index.js
|
|
3606
|
+
// ../../node_modules/@probe.gl/stats/dist/index.js
|
|
3608
3607
|
var init_dist = __esm({
|
|
3609
|
-
"node_modules/@probe.gl/stats/dist/index.js"() {
|
|
3608
|
+
"../../node_modules/@probe.gl/stats/dist/index.js"() {
|
|
3610
3609
|
init_stats();
|
|
3611
3610
|
init_stat();
|
|
3612
3611
|
init_hi_res_timestamp();
|
|
@@ -4252,230 +4251,11 @@
|
|
|
4252
4251
|
}
|
|
4253
4252
|
});
|
|
4254
4253
|
|
|
4255
|
-
// ../loader-utils/node_modules/@probe.gl/stats/dist/utils/hi-res-timestamp.js
|
|
4256
|
-
function getHiResTimestamp2() {
|
|
4257
|
-
let timestamp;
|
|
4258
|
-
if (typeof window !== "undefined" && window.performance) {
|
|
4259
|
-
timestamp = window.performance.now();
|
|
4260
|
-
} else if (typeof process !== "undefined" && process.hrtime) {
|
|
4261
|
-
const timeParts = process.hrtime();
|
|
4262
|
-
timestamp = timeParts[0] * 1e3 + timeParts[1] / 1e6;
|
|
4263
|
-
} else {
|
|
4264
|
-
timestamp = Date.now();
|
|
4265
|
-
}
|
|
4266
|
-
return timestamp;
|
|
4267
|
-
}
|
|
4268
|
-
var init_hi_res_timestamp2 = __esm({
|
|
4269
|
-
"../loader-utils/node_modules/@probe.gl/stats/dist/utils/hi-res-timestamp.js"() {
|
|
4270
|
-
}
|
|
4271
|
-
});
|
|
4272
|
-
|
|
4273
|
-
// ../loader-utils/node_modules/@probe.gl/stats/dist/lib/stat.js
|
|
4274
|
-
var Stat2;
|
|
4275
|
-
var init_stat2 = __esm({
|
|
4276
|
-
"../loader-utils/node_modules/@probe.gl/stats/dist/lib/stat.js"() {
|
|
4277
|
-
init_defineProperty();
|
|
4278
|
-
init_hi_res_timestamp2();
|
|
4279
|
-
Stat2 = class {
|
|
4280
|
-
constructor(name, type) {
|
|
4281
|
-
_defineProperty(this, "name", void 0);
|
|
4282
|
-
_defineProperty(this, "type", void 0);
|
|
4283
|
-
_defineProperty(this, "sampleSize", 1);
|
|
4284
|
-
_defineProperty(this, "time", 0);
|
|
4285
|
-
_defineProperty(this, "count", 0);
|
|
4286
|
-
_defineProperty(this, "samples", 0);
|
|
4287
|
-
_defineProperty(this, "lastTiming", 0);
|
|
4288
|
-
_defineProperty(this, "lastSampleTime", 0);
|
|
4289
|
-
_defineProperty(this, "lastSampleCount", 0);
|
|
4290
|
-
_defineProperty(this, "_count", 0);
|
|
4291
|
-
_defineProperty(this, "_time", 0);
|
|
4292
|
-
_defineProperty(this, "_samples", 0);
|
|
4293
|
-
_defineProperty(this, "_startTime", 0);
|
|
4294
|
-
_defineProperty(this, "_timerPending", false);
|
|
4295
|
-
this.name = name;
|
|
4296
|
-
this.type = type;
|
|
4297
|
-
this.reset();
|
|
4298
|
-
}
|
|
4299
|
-
reset() {
|
|
4300
|
-
this.time = 0;
|
|
4301
|
-
this.count = 0;
|
|
4302
|
-
this.samples = 0;
|
|
4303
|
-
this.lastTiming = 0;
|
|
4304
|
-
this.lastSampleTime = 0;
|
|
4305
|
-
this.lastSampleCount = 0;
|
|
4306
|
-
this._count = 0;
|
|
4307
|
-
this._time = 0;
|
|
4308
|
-
this._samples = 0;
|
|
4309
|
-
this._startTime = 0;
|
|
4310
|
-
this._timerPending = false;
|
|
4311
|
-
return this;
|
|
4312
|
-
}
|
|
4313
|
-
setSampleSize(samples) {
|
|
4314
|
-
this.sampleSize = samples;
|
|
4315
|
-
return this;
|
|
4316
|
-
}
|
|
4317
|
-
incrementCount() {
|
|
4318
|
-
this.addCount(1);
|
|
4319
|
-
return this;
|
|
4320
|
-
}
|
|
4321
|
-
decrementCount() {
|
|
4322
|
-
this.subtractCount(1);
|
|
4323
|
-
return this;
|
|
4324
|
-
}
|
|
4325
|
-
addCount(value) {
|
|
4326
|
-
this._count += value;
|
|
4327
|
-
this._samples++;
|
|
4328
|
-
this._checkSampling();
|
|
4329
|
-
return this;
|
|
4330
|
-
}
|
|
4331
|
-
subtractCount(value) {
|
|
4332
|
-
this._count -= value;
|
|
4333
|
-
this._samples++;
|
|
4334
|
-
this._checkSampling();
|
|
4335
|
-
return this;
|
|
4336
|
-
}
|
|
4337
|
-
addTime(time) {
|
|
4338
|
-
this._time += time;
|
|
4339
|
-
this.lastTiming = time;
|
|
4340
|
-
this._samples++;
|
|
4341
|
-
this._checkSampling();
|
|
4342
|
-
return this;
|
|
4343
|
-
}
|
|
4344
|
-
timeStart() {
|
|
4345
|
-
this._startTime = getHiResTimestamp2();
|
|
4346
|
-
this._timerPending = true;
|
|
4347
|
-
return this;
|
|
4348
|
-
}
|
|
4349
|
-
timeEnd() {
|
|
4350
|
-
if (!this._timerPending) {
|
|
4351
|
-
return this;
|
|
4352
|
-
}
|
|
4353
|
-
this.addTime(getHiResTimestamp2() - this._startTime);
|
|
4354
|
-
this._timerPending = false;
|
|
4355
|
-
this._checkSampling();
|
|
4356
|
-
return this;
|
|
4357
|
-
}
|
|
4358
|
-
getSampleAverageCount() {
|
|
4359
|
-
return this.sampleSize > 0 ? this.lastSampleCount / this.sampleSize : 0;
|
|
4360
|
-
}
|
|
4361
|
-
getSampleAverageTime() {
|
|
4362
|
-
return this.sampleSize > 0 ? this.lastSampleTime / this.sampleSize : 0;
|
|
4363
|
-
}
|
|
4364
|
-
getSampleHz() {
|
|
4365
|
-
return this.lastSampleTime > 0 ? this.sampleSize / (this.lastSampleTime / 1e3) : 0;
|
|
4366
|
-
}
|
|
4367
|
-
getAverageCount() {
|
|
4368
|
-
return this.samples > 0 ? this.count / this.samples : 0;
|
|
4369
|
-
}
|
|
4370
|
-
getAverageTime() {
|
|
4371
|
-
return this.samples > 0 ? this.time / this.samples : 0;
|
|
4372
|
-
}
|
|
4373
|
-
getHz() {
|
|
4374
|
-
return this.time > 0 ? this.samples / (this.time / 1e3) : 0;
|
|
4375
|
-
}
|
|
4376
|
-
_checkSampling() {
|
|
4377
|
-
if (this._samples === this.sampleSize) {
|
|
4378
|
-
this.lastSampleTime = this._time;
|
|
4379
|
-
this.lastSampleCount = this._count;
|
|
4380
|
-
this.count += this._count;
|
|
4381
|
-
this.time += this._time;
|
|
4382
|
-
this.samples += this._samples;
|
|
4383
|
-
this._time = 0;
|
|
4384
|
-
this._count = 0;
|
|
4385
|
-
this._samples = 0;
|
|
4386
|
-
}
|
|
4387
|
-
}
|
|
4388
|
-
};
|
|
4389
|
-
}
|
|
4390
|
-
});
|
|
4391
|
-
|
|
4392
|
-
// ../loader-utils/node_modules/@probe.gl/stats/dist/lib/stats.js
|
|
4393
|
-
var Stats2;
|
|
4394
|
-
var init_stats2 = __esm({
|
|
4395
|
-
"../loader-utils/node_modules/@probe.gl/stats/dist/lib/stats.js"() {
|
|
4396
|
-
init_defineProperty();
|
|
4397
|
-
init_stat2();
|
|
4398
|
-
Stats2 = class {
|
|
4399
|
-
constructor(options) {
|
|
4400
|
-
_defineProperty(this, "id", void 0);
|
|
4401
|
-
_defineProperty(this, "stats", {});
|
|
4402
|
-
this.id = options.id;
|
|
4403
|
-
this.stats = {};
|
|
4404
|
-
this._initializeStats(options.stats);
|
|
4405
|
-
Object.seal(this);
|
|
4406
|
-
}
|
|
4407
|
-
get(name) {
|
|
4408
|
-
let type = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "count";
|
|
4409
|
-
return this._getOrCreate({
|
|
4410
|
-
name,
|
|
4411
|
-
type
|
|
4412
|
-
});
|
|
4413
|
-
}
|
|
4414
|
-
get size() {
|
|
4415
|
-
return Object.keys(this.stats).length;
|
|
4416
|
-
}
|
|
4417
|
-
reset() {
|
|
4418
|
-
for (const stat of Object.values(this.stats)) {
|
|
4419
|
-
stat.reset();
|
|
4420
|
-
}
|
|
4421
|
-
return this;
|
|
4422
|
-
}
|
|
4423
|
-
forEach(fn) {
|
|
4424
|
-
for (const stat of Object.values(this.stats)) {
|
|
4425
|
-
fn(stat);
|
|
4426
|
-
}
|
|
4427
|
-
}
|
|
4428
|
-
getTable() {
|
|
4429
|
-
const table = {};
|
|
4430
|
-
this.forEach((stat) => {
|
|
4431
|
-
table[stat.name] = {
|
|
4432
|
-
time: stat.time || 0,
|
|
4433
|
-
count: stat.count || 0,
|
|
4434
|
-
average: stat.getAverageTime() || 0,
|
|
4435
|
-
hz: stat.getHz() || 0
|
|
4436
|
-
};
|
|
4437
|
-
});
|
|
4438
|
-
return table;
|
|
4439
|
-
}
|
|
4440
|
-
_initializeStats() {
|
|
4441
|
-
let stats = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
|
|
4442
|
-
stats.forEach((stat) => this._getOrCreate(stat));
|
|
4443
|
-
}
|
|
4444
|
-
_getOrCreate(stat) {
|
|
4445
|
-
if (!stat || !stat.name) {
|
|
4446
|
-
return null;
|
|
4447
|
-
}
|
|
4448
|
-
const {
|
|
4449
|
-
name,
|
|
4450
|
-
type
|
|
4451
|
-
} = stat;
|
|
4452
|
-
if (!this.stats[name]) {
|
|
4453
|
-
if (stat instanceof Stat2) {
|
|
4454
|
-
this.stats[name] = stat;
|
|
4455
|
-
} else {
|
|
4456
|
-
this.stats[name] = new Stat2(name, type);
|
|
4457
|
-
}
|
|
4458
|
-
}
|
|
4459
|
-
return this.stats[name] || null;
|
|
4460
|
-
}
|
|
4461
|
-
};
|
|
4462
|
-
}
|
|
4463
|
-
});
|
|
4464
|
-
|
|
4465
|
-
// ../loader-utils/node_modules/@probe.gl/stats/dist/index.js
|
|
4466
|
-
var init_dist2 = __esm({
|
|
4467
|
-
"../loader-utils/node_modules/@probe.gl/stats/dist/index.js"() {
|
|
4468
|
-
init_stats2();
|
|
4469
|
-
init_stat2();
|
|
4470
|
-
init_hi_res_timestamp2();
|
|
4471
|
-
}
|
|
4472
|
-
});
|
|
4473
|
-
|
|
4474
4254
|
// ../loader-utils/src/lib/request-utils/request-scheduler.ts
|
|
4475
4255
|
var STAT_QUEUED_REQUESTS, STAT_ACTIVE_REQUESTS, STAT_CANCELLED_REQUESTS, STAT_QUEUED_REQUESTS_EVER, STAT_ACTIVE_REQUESTS_EVER, DEFAULT_PROPS2, RequestScheduler;
|
|
4476
4256
|
var init_request_scheduler = __esm({
|
|
4477
4257
|
"../loader-utils/src/lib/request-utils/request-scheduler.ts"() {
|
|
4478
|
-
|
|
4258
|
+
init_dist();
|
|
4479
4259
|
STAT_QUEUED_REQUESTS = "Queued Requests";
|
|
4480
4260
|
STAT_ACTIVE_REQUESTS = "Active Requests";
|
|
4481
4261
|
STAT_CANCELLED_REQUESTS = "Cancelled Requests";
|
|
@@ -4493,7 +4273,7 @@
|
|
|
4493
4273
|
this.requestMap = new Map();
|
|
4494
4274
|
this.deferredUpdate = null;
|
|
4495
4275
|
this.props = { ...DEFAULT_PROPS2, ...props };
|
|
4496
|
-
this.stats = new
|
|
4276
|
+
this.stats = new Stats({ id: this.props.id });
|
|
4497
4277
|
this.stats.get(STAT_QUEUED_REQUESTS);
|
|
4498
4278
|
this.stats.get(STAT_ACTIVE_REQUESTS);
|
|
4499
4279
|
this.stats.get(STAT_CANCELLED_REQUESTS);
|
|
@@ -5907,7 +5687,7 @@
|
|
|
5907
5687
|
}
|
|
5908
5688
|
});
|
|
5909
5689
|
|
|
5910
|
-
//
|
|
5690
|
+
// ../../node_modules/@probe.gl/env/dist/lib/is-electron.js
|
|
5911
5691
|
function isElectron(mockUserAgent) {
|
|
5912
5692
|
if (typeof window !== "undefined" && typeof window.process === "object" && window.process.type === "renderer") {
|
|
5913
5693
|
return true;
|
|
@@ -5923,54 +5703,54 @@
|
|
|
5923
5703
|
return false;
|
|
5924
5704
|
}
|
|
5925
5705
|
var init_is_electron = __esm({
|
|
5926
|
-
"
|
|
5706
|
+
"../../node_modules/@probe.gl/env/dist/lib/is-electron.js"() {
|
|
5927
5707
|
}
|
|
5928
5708
|
});
|
|
5929
5709
|
|
|
5930
|
-
//
|
|
5710
|
+
// ../../node_modules/@probe.gl/env/dist/lib/is-browser.js
|
|
5931
5711
|
function isBrowser3() {
|
|
5932
5712
|
const isNode = typeof process === "object" && String(process) === "[object process]" && !process.browser;
|
|
5933
5713
|
return !isNode || isElectron();
|
|
5934
5714
|
}
|
|
5935
5715
|
var init_is_browser = __esm({
|
|
5936
|
-
"
|
|
5716
|
+
"../../node_modules/@probe.gl/env/dist/lib/is-browser.js"() {
|
|
5937
5717
|
init_is_electron();
|
|
5938
5718
|
}
|
|
5939
5719
|
});
|
|
5940
5720
|
|
|
5941
|
-
//
|
|
5942
|
-
var
|
|
5721
|
+
// ../../node_modules/@probe.gl/env/dist/lib/globals.js
|
|
5722
|
+
var self_3, window_3, document_3, process_, console_, navigator_;
|
|
5943
5723
|
var init_globals3 = __esm({
|
|
5944
|
-
"
|
|
5945
|
-
|
|
5946
|
-
|
|
5947
|
-
|
|
5948
|
-
|
|
5949
|
-
|
|
5950
|
-
|
|
5724
|
+
"../../node_modules/@probe.gl/env/dist/lib/globals.js"() {
|
|
5725
|
+
self_3 = globalThis.self || globalThis.window || globalThis.global;
|
|
5726
|
+
window_3 = globalThis.window || globalThis.self || globalThis.global;
|
|
5727
|
+
document_3 = globalThis.document || {};
|
|
5728
|
+
process_ = globalThis.process || {};
|
|
5729
|
+
console_ = globalThis.console;
|
|
5730
|
+
navigator_ = globalThis.navigator || {};
|
|
5951
5731
|
}
|
|
5952
5732
|
});
|
|
5953
5733
|
|
|
5954
|
-
//
|
|
5734
|
+
// ../../node_modules/@probe.gl/env/dist/utils/globals.js
|
|
5955
5735
|
var VERSION2, isBrowser4;
|
|
5956
5736
|
var init_globals4 = __esm({
|
|
5957
|
-
"
|
|
5737
|
+
"../../node_modules/@probe.gl/env/dist/utils/globals.js"() {
|
|
5958
5738
|
init_is_browser();
|
|
5959
5739
|
VERSION2 = typeof __VERSION__ !== "undefined" ? __VERSION__ : "untranspiled source";
|
|
5960
5740
|
isBrowser4 = isBrowser3();
|
|
5961
5741
|
}
|
|
5962
5742
|
});
|
|
5963
5743
|
|
|
5964
|
-
//
|
|
5965
|
-
var
|
|
5966
|
-
"
|
|
5744
|
+
// ../../node_modules/@probe.gl/env/dist/index.js
|
|
5745
|
+
var init_dist2 = __esm({
|
|
5746
|
+
"../../node_modules/@probe.gl/env/dist/index.js"() {
|
|
5967
5747
|
init_globals4();
|
|
5968
5748
|
init_globals3();
|
|
5969
5749
|
init_is_browser();
|
|
5970
5750
|
}
|
|
5971
5751
|
});
|
|
5972
5752
|
|
|
5973
|
-
//
|
|
5753
|
+
// ../../node_modules/@probe.gl/log/dist/utils/local-storage.js
|
|
5974
5754
|
function getStorage(type) {
|
|
5975
5755
|
try {
|
|
5976
5756
|
const storage = window[type];
|
|
@@ -5984,7 +5764,7 @@
|
|
|
5984
5764
|
}
|
|
5985
5765
|
var LocalStorage;
|
|
5986
5766
|
var init_local_storage = __esm({
|
|
5987
|
-
"
|
|
5767
|
+
"../../node_modules/@probe.gl/log/dist/utils/local-storage.js"() {
|
|
5988
5768
|
init_defineProperty();
|
|
5989
5769
|
LocalStorage = class {
|
|
5990
5770
|
constructor(id, defaultConfig) {
|
|
@@ -6020,7 +5800,7 @@
|
|
|
6020
5800
|
}
|
|
6021
5801
|
});
|
|
6022
5802
|
|
|
6023
|
-
//
|
|
5803
|
+
// ../../node_modules/@probe.gl/log/dist/utils/formatters.js
|
|
6024
5804
|
function formatTime(ms) {
|
|
6025
5805
|
let formatted;
|
|
6026
5806
|
if (ms < 10) {
|
|
@@ -6051,11 +5831,11 @@
|
|
|
6051
5831
|
return ["".concat(message, " %c+"), style];
|
|
6052
5832
|
}
|
|
6053
5833
|
var init_formatters = __esm({
|
|
6054
|
-
"
|
|
5834
|
+
"../../node_modules/@probe.gl/log/dist/utils/formatters.js"() {
|
|
6055
5835
|
}
|
|
6056
5836
|
});
|
|
6057
5837
|
|
|
6058
|
-
//
|
|
5838
|
+
// ../../node_modules/@probe.gl/log/dist/utils/color.js
|
|
6059
5839
|
function getColor(color) {
|
|
6060
5840
|
if (typeof color !== "string") {
|
|
6061
5841
|
return color;
|
|
@@ -6078,8 +5858,8 @@
|
|
|
6078
5858
|
}
|
|
6079
5859
|
var COLOR, BACKGROUND_INCREMENT;
|
|
6080
5860
|
var init_color = __esm({
|
|
6081
|
-
"
|
|
6082
|
-
|
|
5861
|
+
"../../node_modules/@probe.gl/log/dist/utils/color.js"() {
|
|
5862
|
+
init_dist2();
|
|
6083
5863
|
(function(COLOR2) {
|
|
6084
5864
|
COLOR2[COLOR2["BLACK"] = 30] = "BLACK";
|
|
6085
5865
|
COLOR2[COLOR2["RED"] = 31] = "RED";
|
|
@@ -6102,7 +5882,7 @@
|
|
|
6102
5882
|
}
|
|
6103
5883
|
});
|
|
6104
5884
|
|
|
6105
|
-
//
|
|
5885
|
+
// ../../node_modules/@probe.gl/log/dist/utils/autobind.js
|
|
6106
5886
|
function autobind(obj) {
|
|
6107
5887
|
let predefined = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ["constructor"];
|
|
6108
5888
|
const proto = Object.getPrototypeOf(obj);
|
|
@@ -6118,43 +5898,43 @@
|
|
|
6118
5898
|
}
|
|
6119
5899
|
}
|
|
6120
5900
|
var init_autobind = __esm({
|
|
6121
|
-
"
|
|
5901
|
+
"../../node_modules/@probe.gl/log/dist/utils/autobind.js"() {
|
|
6122
5902
|
}
|
|
6123
5903
|
});
|
|
6124
5904
|
|
|
6125
|
-
//
|
|
5905
|
+
// ../../node_modules/@probe.gl/log/dist/utils/assert.js
|
|
6126
5906
|
function assert4(condition, message) {
|
|
6127
5907
|
if (!condition) {
|
|
6128
5908
|
throw new Error(message || "Assertion failed");
|
|
6129
5909
|
}
|
|
6130
5910
|
}
|
|
6131
5911
|
var init_assert4 = __esm({
|
|
6132
|
-
"
|
|
5912
|
+
"../../node_modules/@probe.gl/log/dist/utils/assert.js"() {
|
|
6133
5913
|
}
|
|
6134
5914
|
});
|
|
6135
5915
|
|
|
6136
|
-
//
|
|
6137
|
-
function
|
|
5916
|
+
// ../../node_modules/@probe.gl/log/dist/utils/hi-res-timestamp.js
|
|
5917
|
+
function getHiResTimestamp2() {
|
|
6138
5918
|
let timestamp;
|
|
6139
|
-
if (isBrowser3() &&
|
|
5919
|
+
if (isBrowser3() && window_3.performance) {
|
|
6140
5920
|
var _window$performance, _window$performance$n;
|
|
6141
|
-
timestamp =
|
|
6142
|
-
} else if ("hrtime" in
|
|
5921
|
+
timestamp = window_3 === null || window_3 === void 0 ? void 0 : (_window$performance = window_3.performance) === null || _window$performance === void 0 ? void 0 : (_window$performance$n = _window$performance.now) === null || _window$performance$n === void 0 ? void 0 : _window$performance$n.call(_window$performance);
|
|
5922
|
+
} else if ("hrtime" in process_) {
|
|
6143
5923
|
var _process$hrtime;
|
|
6144
|
-
const timeParts =
|
|
5924
|
+
const timeParts = process_ === null || process_ === void 0 ? void 0 : (_process$hrtime = process_.hrtime) === null || _process$hrtime === void 0 ? void 0 : _process$hrtime.call(process_);
|
|
6145
5925
|
timestamp = timeParts[0] * 1e3 + timeParts[1] / 1e6;
|
|
6146
5926
|
} else {
|
|
6147
5927
|
timestamp = Date.now();
|
|
6148
5928
|
}
|
|
6149
5929
|
return timestamp;
|
|
6150
5930
|
}
|
|
6151
|
-
var
|
|
6152
|
-
"
|
|
6153
|
-
|
|
5931
|
+
var init_hi_res_timestamp2 = __esm({
|
|
5932
|
+
"../../node_modules/@probe.gl/log/dist/utils/hi-res-timestamp.js"() {
|
|
5933
|
+
init_dist2();
|
|
6154
5934
|
}
|
|
6155
5935
|
});
|
|
6156
5936
|
|
|
6157
|
-
//
|
|
5937
|
+
// ../../node_modules/@probe.gl/log/dist/log.js
|
|
6158
5938
|
function noop() {
|
|
6159
5939
|
}
|
|
6160
5940
|
function normalizeLogLevel(logLevel) {
|
|
@@ -6261,15 +6041,15 @@
|
|
|
6261
6041
|
}
|
|
6262
6042
|
var originalConsole, DEFAULT_LOG_CONFIGURATION, cache, ONCE, Log;
|
|
6263
6043
|
var init_log = __esm({
|
|
6264
|
-
"
|
|
6044
|
+
"../../node_modules/@probe.gl/log/dist/log.js"() {
|
|
6265
6045
|
init_defineProperty();
|
|
6266
|
-
|
|
6046
|
+
init_dist2();
|
|
6267
6047
|
init_local_storage();
|
|
6268
6048
|
init_formatters();
|
|
6269
6049
|
init_color();
|
|
6270
6050
|
init_autobind();
|
|
6271
6051
|
init_assert4();
|
|
6272
|
-
|
|
6052
|
+
init_hi_res_timestamp2();
|
|
6273
6053
|
originalConsole = {
|
|
6274
6054
|
debug: isBrowser3() ? console.debug || console.log : console.log,
|
|
6275
6055
|
log: console.log,
|
|
@@ -6294,8 +6074,8 @@
|
|
|
6294
6074
|
};
|
|
6295
6075
|
_defineProperty(this, "id", void 0);
|
|
6296
6076
|
_defineProperty(this, "VERSION", VERSION2);
|
|
6297
|
-
_defineProperty(this, "_startTs",
|
|
6298
|
-
_defineProperty(this, "_deltaTs",
|
|
6077
|
+
_defineProperty(this, "_startTs", getHiResTimestamp2());
|
|
6078
|
+
_defineProperty(this, "_deltaTs", getHiResTimestamp2());
|
|
6299
6079
|
_defineProperty(this, "_storage", void 0);
|
|
6300
6080
|
_defineProperty(this, "userData", {});
|
|
6301
6081
|
_defineProperty(this, "LOG_THROTTLE_TIMEOUT", 0);
|
|
@@ -6319,10 +6099,10 @@
|
|
|
6319
6099
|
return this._storage.config.level;
|
|
6320
6100
|
}
|
|
6321
6101
|
getTotal() {
|
|
6322
|
-
return Number((
|
|
6102
|
+
return Number((getHiResTimestamp2() - this._startTs).toPrecision(10));
|
|
6323
6103
|
}
|
|
6324
6104
|
getDelta() {
|
|
6325
|
-
return Number((
|
|
6105
|
+
return Number((getHiResTimestamp2() - this._deltaTs).toPrecision(10));
|
|
6326
6106
|
}
|
|
6327
6107
|
set priority(newPriority) {
|
|
6328
6108
|
this.level = newPriority;
|
|
@@ -6481,11 +6261,11 @@
|
|
|
6481
6261
|
assert4(method);
|
|
6482
6262
|
opts.total = this.getTotal();
|
|
6483
6263
|
opts.delta = this.getDelta();
|
|
6484
|
-
this._deltaTs =
|
|
6264
|
+
this._deltaTs = getHiResTimestamp2();
|
|
6485
6265
|
const tag = opts.tag || opts.message;
|
|
6486
6266
|
if (opts.once && tag) {
|
|
6487
6267
|
if (!cache[tag]) {
|
|
6488
|
-
cache[tag] =
|
|
6268
|
+
cache[tag] = getHiResTimestamp2();
|
|
6489
6269
|
} else {
|
|
6490
6270
|
return noop;
|
|
6491
6271
|
}
|
|
@@ -6500,10 +6280,10 @@
|
|
|
6500
6280
|
}
|
|
6501
6281
|
});
|
|
6502
6282
|
|
|
6503
|
-
//
|
|
6283
|
+
// ../../node_modules/@probe.gl/log/dist/index.js
|
|
6504
6284
|
var dist_default;
|
|
6505
|
-
var
|
|
6506
|
-
"
|
|
6285
|
+
var init_dist3 = __esm({
|
|
6286
|
+
"../../node_modules/@probe.gl/log/dist/index.js"() {
|
|
6507
6287
|
init_log();
|
|
6508
6288
|
init_log();
|
|
6509
6289
|
dist_default = new Log({
|
|
@@ -6516,7 +6296,7 @@
|
|
|
6516
6296
|
var probeLog, NullLog, ConsoleLog;
|
|
6517
6297
|
var init_loggers = __esm({
|
|
6518
6298
|
"../core/src/lib/loader-utils/loggers.ts"() {
|
|
6519
|
-
|
|
6299
|
+
init_dist3();
|
|
6520
6300
|
probeLog = new Log({ id: "loaders.gl" });
|
|
6521
6301
|
NullLog = class {
|
|
6522
6302
|
log() {
|
|
@@ -6759,7 +6539,7 @@
|
|
|
6759
6539
|
var log;
|
|
6760
6540
|
var init_log2 = __esm({
|
|
6761
6541
|
"../core/src/lib/utils/log.ts"() {
|
|
6762
|
-
|
|
6542
|
+
init_dist3();
|
|
6763
6543
|
log = new Log({ id: "loaders.gl" });
|
|
6764
6544
|
}
|
|
6765
6545
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i3s-pending-tiles-register.js","names":["I3SPendingTilesRegister","_classCallCheck2","default","_defineProperty2","Map","_createClass2","key","value","register","viewportId","frameNumber","viewportMap","frameNumberMap","get","oldCount","set","deregister","isZero","_this$frameNumberMap$","count","exports"],"sources":["../../../../src/tileset/format-i3s/i3s-pending-tiles-register.ts"],"sourcesContent":["/**\n * Counter to register pending tile headers for the particular frameNumber\n * Until all tiles are loaded we won't call `onTraversalEnd` callback\n */\nexport class I3SPendingTilesRegister {\n private frameNumberMap: Map<string, Map<number, number>> = new Map();\n\n /**\n * Register a new pending tile header for the particular frameNumber\n * @param viewportId\n * @param frameNumber\n */\n register(viewportId: string, frameNumber: number) {\n const viewportMap = this.frameNumberMap.get(viewportId) || new Map();\n const oldCount = viewportMap.get(frameNumber) || 0;\n viewportMap.set(frameNumber, oldCount + 1);\n this.frameNumberMap.set(viewportId, viewportMap);\n }\n\n /**\n * Deregister a pending tile header for the particular frameNumber\n * @param viewportId\n * @param frameNumber\n */\n deregister(viewportId: string, frameNumber: number) {\n const viewportMap = this.frameNumberMap.get(viewportId);\n if (!viewportMap) {\n return;\n }\n const oldCount = viewportMap.get(frameNumber) || 1;\n viewportMap.set(frameNumber, oldCount - 1);\n }\n\n /**\n * Check is there are no pending tile headers registered for the particular frameNumber\n * @param viewportId\n * @param frameNumber\n * @returns\n */\n isZero(viewportId: string, frameNumber: number) {\n const count = this.frameNumberMap.get(viewportId)?.get(frameNumber) || 0;\n return count === 0;\n }\n}\n"],"mappings":";;;;;;;;;;IAIaA,uBAAuB;EAAA,SAAAA,wBAAA;IAAA,IAAAC,gBAAA,CAAAC,OAAA,QAAAF,uBAAA;IAAA,IAAAG,gBAAA,CAAAD,OAAA,0BACyB,IAAIE,GAAG,
|
|
1
|
+
{"version":3,"file":"i3s-pending-tiles-register.js","names":["I3SPendingTilesRegister","_classCallCheck2","default","_defineProperty2","Map","_createClass2","key","value","register","viewportId","frameNumber","viewportMap","frameNumberMap","get","oldCount","set","deregister","isZero","_this$frameNumberMap$","count","exports"],"sources":["../../../../src/tileset/format-i3s/i3s-pending-tiles-register.ts"],"sourcesContent":["/**\n * Counter to register pending tile headers for the particular frameNumber\n * Until all tiles are loaded we won't call `onTraversalEnd` callback\n */\nexport class I3SPendingTilesRegister {\n private frameNumberMap: Map<string, Map<number, number>> = new Map();\n\n /**\n * Register a new pending tile header for the particular frameNumber\n * @param viewportId\n * @param frameNumber\n */\n register(viewportId: string, frameNumber: number) {\n const viewportMap = this.frameNumberMap.get(viewportId) || new Map();\n const oldCount = viewportMap.get(frameNumber) || 0;\n viewportMap.set(frameNumber, oldCount + 1);\n this.frameNumberMap.set(viewportId, viewportMap);\n }\n\n /**\n * Deregister a pending tile header for the particular frameNumber\n * @param viewportId\n * @param frameNumber\n */\n deregister(viewportId: string, frameNumber: number) {\n const viewportMap = this.frameNumberMap.get(viewportId);\n if (!viewportMap) {\n return;\n }\n const oldCount = viewportMap.get(frameNumber) || 1;\n viewportMap.set(frameNumber, oldCount - 1);\n }\n\n /**\n * Check is there are no pending tile headers registered for the particular frameNumber\n * @param viewportId\n * @param frameNumber\n * @returns\n */\n isZero(viewportId: string, frameNumber: number) {\n const count = this.frameNumberMap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A,qBAAA,CAAqCL,GAAG,CAACH,WAAW,CAAC,KAAI,CAAC;MACxE,OAAOS,KAAK,KAAK,CAAC;IACpB;EAAC;EAAA,OAAAnB,uBAAA;AAAA;AAAAoB,OAAA,CAAApB,uBAAA,GAAAA,uBAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i3s-tile-manager.js","names":["_i3sPendingTilesRegister","require","STATUS","REQUESTED","COMPLETED","ERROR","I3STileManager","_classCallCheck2","default","_defineProperty2","I3SPendingTilesRegister","_statusMap","_createClass2","key","value","add","request","callback","frameState","_this","frameNumber","id","viewport","status","pendingTilesRegister","register","then","data","_this$_statusMap$key$","actualFrameNumber","deregister","catch","error","_this$_statusMap$key$2","update","_this$_statusMap$key$3","newFrameNumber","newViewportId","find","hasPendingTiles","viewportId","isZero","exports"],"sources":["../../../../src/tileset/format-i3s/i3s-tile-manager.ts"],"sourcesContent":["import {FrameState} from '../helpers/frame-state';\nimport {I3SPendingTilesRegister} from './i3s-pending-tiles-register';\n\nconst STATUS = {\n REQUESTED: 'REQUESTED',\n COMPLETED: 'COMPLETED',\n ERROR: 'ERROR'\n};\n\n// A helper class to manage tile metadata fetching\nexport class I3STileManager {\n private _statusMap: object;\n private pendingTilesRegister = new I3SPendingTilesRegister();\n\n constructor() {\n this._statusMap = {};\n }\n\n /**\n * Add request to map\n * @param request - node metadata request\n * @param key - unique key\n * @param callback - callback after request completed\n * @param frameState - frameState data\n */\n add(request, key, callback, frameState: FrameState) {\n if (!this._statusMap[key]) {\n const {\n frameNumber,\n viewport: {id}\n } = frameState;\n this._statusMap[key] = {request, callback, key, frameState, status: STATUS.REQUESTED};\n // Register pending request for the frameNumber\n this.pendingTilesRegister.register(id, frameNumber);\n request()\n .then((data) => {\n this._statusMap[key].status = STATUS.COMPLETED;\n const {\n frameNumber: actualFrameNumber,\n viewport: {id}\n } = this._statusMap[key].frameState;\n // Deregister pending request for the frameNumber\n this.pendingTilesRegister.deregister(id, actualFrameNumber);\n this._statusMap[key].callback(data, frameState);\n })\n .catch((error) => {\n this._statusMap[key].status = STATUS.ERROR;\n const {\n frameNumber: actualFrameNumber,\n viewport: {id}\n } = this._statusMap[key].frameState;\n // Deregister pending request for the frameNumber\n this.pendingTilesRegister.deregister(id, actualFrameNumber);\n callback(error);\n });\n }\n }\n\n /**\n * Update request if it is still actual for the new frameState\n * @param key - unique key\n * @param frameState - frameState data\n */\n update(key, frameState: FrameState) {\n if (this._statusMap[key]) {\n // Deregister pending request for the old frameNumber\n const {\n frameNumber,\n viewport: {id}\n } = this._statusMap[key].frameState;\n this.pendingTilesRegister.deregister(id, frameNumber);\n\n // Register pending request for the new frameNumber\n const {\n frameNumber: newFrameNumber,\n viewport: {id: newViewportId}\n } = frameState;\n this.pendingTilesRegister.register(newViewportId, newFrameNumber);\n this._statusMap[key].frameState = frameState;\n }\n }\n\n /**\n * Find request in the map\n * @param key - unique key\n * @returns\n */\n find(key) {\n return this._statusMap[key];\n }\n\n /**\n * Check it there are pending tile headers for the particular frameNumber\n * @param viewportId\n * @param frameNumber\n * @returns\n */\n hasPendingTiles(viewportId: string, frameNumber: number): boolean {\n return !this.pendingTilesRegister.isZero(viewportId, frameNumber);\n }\n}\n"],"mappings":";;;;;;;;;;AACA,IAAAA,wBAAA,GAAAC,OAAA;AAEA,IAAMC,MAAM,GAAG;EACbC,SAAS,EAAE,WAAW;EACtBC,SAAS,EAAE,WAAW;EACtBC,KAAK,EAAE;AACT,CAAC;AAAC,IAGWC,cAAc;EAIzB,SAAAA,eAAA,EAAc;IAAA,IAAAC,gBAAA,CAAAC,OAAA,QAAAF,cAAA;IAAA,IAAAG,gBAAA,CAAAD,OAAA;IAAA,IAAAC,gBAAA,CAAAD,OAAA,gCAFiB,IAAIE,gDAAuB,
|
|
1
|
+
{"version":3,"file":"i3s-tile-manager.js","names":["_i3sPendingTilesRegister","require","STATUS","REQUESTED","COMPLETED","ERROR","I3STileManager","_classCallCheck2","default","_defineProperty2","I3SPendingTilesRegister","_statusMap","_createClass2","key","value","add","request","callback","frameState","_this","frameNumber","id","viewport","status","pendingTilesRegister","register","then","data","_this$_statusMap$key$","actualFrameNumber","deregister","catch","error","_this$_statusMap$key$2","update","_this$_statusMap$key$3","newFrameNumber","newViewportId","find","hasPendingTiles","viewportId","isZero","exports"],"sources":["../../../../src/tileset/format-i3s/i3s-tile-manager.ts"],"sourcesContent":["import {FrameState} from '../helpers/frame-state';\nimport {I3SPendingTilesRegister} from './i3s-pending-tiles-register';\n\nconst STATUS = {\n REQUESTED: 'REQUESTED',\n COMPLETED: 'COMPLETED',\n ERROR: 'ERROR'\n};\n\n// A helper class to manage tile metadata fetching\nexport class I3STileManager {\n private _statusMap: object;\n private pendingTilesRegister = new I3SPendingTilesRegister();\n\n constructor() {\n this._statusMap = {};\n }\n\n /**\n * Add request to map\n * @param request - node metadata request\n * @param key - unique key\n * @param callback - callback after request completed\n * @param frameState - frameState data\n */\n add(request, key, callback, frameState: FrameState) {\n if (!this._statusMap[key]) {\n const {\n frameNumber,\n viewport: {id}\n } = frameState;\n this._statusMap[key] = {request, callback, key, frameState, status: STATUS.REQUESTED};\n // Register pending request for the frameNumber\n this.pendingTilesRegister.register(id, frameNumber);\n request()\n .then((data) => {\n this._statusMap[key].status = STATUS.COMPLETED;\n const {\n frameNumber: actualFrameNumber,\n viewport: {id}\n } = this._statusMap[key].frameState;\n // Deregister pending request for the frameNumber\n this.pendingTilesRegister.deregister(id, actualFrameNumber);\n this._statusMap[key].callback(data, frameState);\n })\n .catch((error) => {\n this._statusMap[key].status = STATUS.ERROR;\n const {\n frameNumber: actualFrameNumber,\n viewport: {id}\n } = this._statusMap[key].frameState;\n // Deregister pending request for the frameNumber\n this.pendingTilesRegister.deregister(id, actualFrameNumber);\n callback(error);\n });\n }\n }\n\n /**\n * Update request if it is still actual for the new frameState\n * @param key - unique key\n * @param frameState - frameState data\n */\n update(key, frameState: FrameState) {\n if (this._statusMap[key]) {\n // Deregister pending request for the old frameNumber\n const {\n frameNumber,\n viewport: {id}\n } = this._statusMap[key].frameState;\n this.pendingTilesRegister.deregister(id, frameNumber);\n\n // Register pending request for the new frameNumber\n const {\n frameNumber: newFrameNumber,\n viewport: {id: newViewportId}\n } = frameState;\n this.pendingTilesRegister.register(newViewportId, newFrameNumber);\n this._statusMap[key].frameState = frameState;\n }\n }\n\n /**\n * Find request in the map\n * @param key - unique key\n * @returns\n */\n find(key) {\n return this._statusMap[key];\n }\n\n /**\n * Check it there are pending tile headers for the particular frameNumber\n * @param viewportId\n * @param frameNumber\n * @returns\n */\n hasPendingTiles(viewportId: string, frameNumber: number): boolean {\n return !this.pendingTilesRegister.isZero(viewportId, frameNumber);\n }\n}\n"],"mappings":";;;;;;;;;;AACA,IAAAA,wBAAA,GAAAC,OAAA;AAEA,IAAMC,MAAM,GAAG;EACbC,SAAS,EAAE,WAAW;EACtBC,SAAS,EAAE,WAAW;EACtBC,KAAK,EAAE;AACT,CAAC;AAAC,IAGWC,cAAc;EAIzB,SAAAA,eAAA,EAAc;IAAA,IAAAC,gBAAA,CAAAC,OAAA,QAAAF,cAAA;IAAA,IAAAG,gBAAA,CAAAD,OAAA;IAAA,IAAAC,gBAAA,CAAAD,OAAA,gCAFiB,IAAIE,gDAAuB,CAAC,CAAC;IAG1D,IAAI,CAACC,UAAU,GAAG,CAAC,CAAC;EACtB;EAAC,IAAAC,aAAA,CAAAJ,OAAA,EAAAF,cAAA;IAAAO,GAAA;IAAAC,KAAA,EASD,SAAAC,IAAIC,OAAO,EAAEH,GAAG,EAAEI,QAAQ,EAAEC,UAAsB,EAAE;MAAA,IAAAC,KAAA;MAClD,IAAI,CAAC,IAAI,CAACR,UAAU,CAACE,GAAG,CAAC,EAAE;QACzB,IACEO,WAAW,GAETF,UAAU,CAFZE,WAAW;UACAC,EAAE,GACXH,UAAU,CADZI,QAAQ,CAAGD,EAAE;QAEf,IAAI,CAACV,UAAU,CAACE,GAAG,CAAC,GAAG;UAACG,OAAO,EAAPA,OAAO;UAAEC,QAA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