@navaramap/core 0.0.0

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 (67) hide show
  1. package/LICENSE +8 -0
  2. package/README.md +3 -0
  3. package/dist/index.d.ts +605 -0
  4. package/dist/index.js +3042 -0
  5. package/dist/index.umd.cjs +1 -0
  6. package/package.json +38 -0
  7. package/src/abstracts/index.ts +1 -0
  8. package/src/abstracts/vec3.ts +15 -0
  9. package/src/assertions.ts +15 -0
  10. package/src/batch/attribute.test.ts +20 -0
  11. package/src/batch/attribute.ts +14 -0
  12. package/src/batch/index.ts +1 -0
  13. package/src/color/Color.ts +10 -0
  14. package/src/color/ColorMap.ts +86 -0
  15. package/src/color/index.ts +3 -0
  16. package/src/color/types.ts +4 -0
  17. package/src/constants/image.ts +1 -0
  18. package/src/constants/index.ts +1 -0
  19. package/src/error.ts +11 -0
  20. package/src/event/EventManager.test.ts +539 -0
  21. package/src/event/EventManager.ts +387 -0
  22. package/src/event/TransactionManager.test.ts +126 -0
  23. package/src/event/TransactionManager.ts +78 -0
  24. package/src/event/index.ts +2 -0
  25. package/src/event/mock.ts +36 -0
  26. package/src/eventHandler.ts +52 -0
  27. package/src/globe/Globe.ts +156 -0
  28. package/src/globe/index.ts +1 -0
  29. package/src/id.ts +9 -0
  30. package/src/index.ts +15 -0
  31. package/src/namedIndexMap.test.ts +268 -0
  32. package/src/namedIndexMap.ts +50 -0
  33. package/src/observed.ts +30 -0
  34. package/src/plugin.ts +15 -0
  35. package/src/time.ts +3 -0
  36. package/src/types/buffer.ts +4 -0
  37. package/src/types/camera.ts +16 -0
  38. package/src/types/cameraFrustum.ts +5 -0
  39. package/src/types/feature.ts +1 -0
  40. package/src/types/index.ts +13 -0
  41. package/src/types/layer.ts +1 -0
  42. package/src/types/plane.ts +5 -0
  43. package/src/types/ray.ts +5 -0
  44. package/src/types/tile.ts +1 -0
  45. package/src/types/transform.ts +5 -0
  46. package/src/types/unit.ts +7 -0
  47. package/src/types/utils.ts +20 -0
  48. package/src/types/vec.ts +9 -0
  49. package/src/types/window.ts +5 -0
  50. package/src/utils/ExtentRadianF32Like.ts +17 -0
  51. package/src/utils/FloatAttributeLike.ts +17 -0
  52. package/src/utils/ReturnedConstructedTerrainMeshLike.ts +92 -0
  53. package/src/utils/TransferableMartiniLike.ts +21 -0
  54. package/src/utils/TransferableRasterDEMDataLike.ts +36 -0
  55. package/src/utils/TransferableTileLike.ts +53 -0
  56. package/src/utils/UpsamplableTerrainGeometryLike.ts +26 -0
  57. package/src/utils/Vec3Like.ts +15 -0
  58. package/src/utils/index.ts +9 -0
  59. package/src/utils/polygon/ConstructedPolygonGeometryLike.ts +70 -0
  60. package/src/utils/polygon/PolygonMaterialLike.ts +37 -0
  61. package/src/utils/polygon/TransferablePolygonBatchedFeatureLike.ts +73 -0
  62. package/src/utils/polygon/index.ts +3 -0
  63. package/src/utils/polyline/ConstructedPolylineGeometryLike.ts +77 -0
  64. package/src/utils/polyline/PolylineMaterialLike.ts +31 -0
  65. package/src/utils/polyline/TransferablePolylineBatchedFeatureLike.ts +43 -0
  66. package/src/utils/polyline/index.ts +3 -0
  67. package/src/vite-env.d.ts +1 -0
package/dist/index.js ADDED
@@ -0,0 +1,3042 @@
1
+ import { Vec3 as e } from "@navaramap/engine";
2
+ //#region src/id.ts
3
+ function t(e) {
4
+ return `${e.ind}_${e.gen}`;
5
+ }
6
+ function n(e) {
7
+ return !!e && typeof e == "object" && "ind" in e && "gen" in e;
8
+ }
9
+ //#endregion
10
+ //#region src/event/TransactionManager.ts
11
+ var r = class {
12
+ record = {};
13
+ getOrInsert(e) {
14
+ return this.record[e] || (this.record[e] = new i(e)), this.record[e];
15
+ }
16
+ }, i = class e {
17
+ id;
18
+ continuable;
19
+ currentPending;
20
+ next;
21
+ parent;
22
+ constructor(e, t = !0) {
23
+ this.id = e, this.continuable = t;
24
+ }
25
+ then(t) {
26
+ if (this.next || (this.next = new e(this.id, !1), this.next.parent = this), !this.currentPending && this.continuable) {
27
+ this.continuable = !1, this.next.continuable = !1;
28
+ let e = () => {
29
+ this.currentPending = void 0, this.next && (this.next.continuable = !0);
30
+ }, n = (t) => {
31
+ console.error(`Transaction "${this.id}" callback failed:`, t), e();
32
+ };
33
+ try {
34
+ this.currentPending = t().then(e, n);
35
+ } catch (e) {
36
+ n(e);
37
+ }
38
+ }
39
+ return this.next;
40
+ }
41
+ end() {
42
+ if (!this.continuable) return;
43
+ let e = this.parent;
44
+ if (!e) {
45
+ this.continuable = !0;
46
+ return;
47
+ }
48
+ for (this.continuable = !1; e.parent;) e = e.parent;
49
+ e.continuable = !0;
50
+ }
51
+ }, a = (e) => {
52
+ e && "free" in e && e.free instanceof Function && e.free();
53
+ }, o = (e) => {
54
+ let { event: r } = e;
55
+ if (n(r)) return t(r);
56
+ }, s = class {
57
+ stacks = {
58
+ camera_transform_updated: [],
59
+ camera_frustum_updated: [],
60
+ data_requested: [],
61
+ data_requester_removed: [],
62
+ mesh_added: [],
63
+ mesh_updated: [],
64
+ mesh_removed: [],
65
+ object_transform_updated: [],
66
+ renderable_feature_added: [],
67
+ renderable_feature_changed: [],
68
+ renderable_feature_removed: [],
69
+ texture_fragment_removed: [],
70
+ texture_fragment_requested: [],
71
+ update_sample_terrain_height: [],
72
+ worker_task_delegated: [],
73
+ worker_task_removed: [],
74
+ hillshade_backfilled: [],
75
+ hillshade_canceled: []
76
+ };
77
+ addedEventIds = /* @__PURE__ */ new Map();
78
+ transactionManager = new r();
79
+ needsUpdate() {
80
+ return Object.values(this.stacks).some((e) => !!e.length);
81
+ }
82
+ pushEvents(e) {
83
+ if (e) for (let t of Object.keys(this.stacks)) {
84
+ let n = e[`take_${t}`].call(e);
85
+ n && (Array.isArray(n) ? this.stacks[t].push(...n) : this.stacks[t].push(n));
86
+ }
87
+ }
88
+ forEachStack(e, t, n = 100) {
89
+ let r = 0;
90
+ for (let i of this.stacks[e]) {
91
+ if (r === n) break;
92
+ t(i), a(i), r++;
93
+ }
94
+ this.stacks[e].splice(0, r);
95
+ }
96
+ async forEachStackAsync(e, t, n = 100, r) {
97
+ let i = [], o = 0, s = [];
98
+ for (let a of this.stacks[e]) {
99
+ if (o === n) break;
100
+ let e = a;
101
+ if (r && !r(e)) {
102
+ o++;
103
+ continue;
104
+ }
105
+ i.push(t(e)), s.push(o), o++;
106
+ }
107
+ let c = [], l = 0;
108
+ for (let t of s) {
109
+ let n = t - l;
110
+ c.push(this.stacks[e][n]), this.stacks[e].splice(n, 1), l++;
111
+ }
112
+ let u = await Promise.allSettled(i);
113
+ for (let t of u) t.status === "rejected" && console.error(`Event handler for "${e}" failed:`, t.reason);
114
+ for (let e of c) a(e);
115
+ }
116
+ removeDuplicatedTransactionEvents(e) {
117
+ let r = /* @__PURE__ */ new Map(), i = e.change ? /* @__PURE__ */ new Map() : null;
118
+ this.stacks[e.add.key].forEach((e, i) => {
119
+ if (n(e)) {
120
+ let n = t(e);
121
+ r.set(n, i);
122
+ }
123
+ }), i && e.change && this.stacks[e.change.key].forEach((e, r) => {
124
+ if (n(e)) {
125
+ let n = t(e);
126
+ i.set(n, r);
127
+ }
128
+ });
129
+ let a = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set();
130
+ this.stacks[e.remove.key].forEach((c, l) => {
131
+ if (!n(c)) return;
132
+ let u = t(c), d = r.get(u), f = !1;
133
+ if (d !== void 0 && (a.add(d), f = !0), i && e.change) {
134
+ let e = i.get(u);
135
+ e !== void 0 && o.add(e);
136
+ }
137
+ f && s.add(l);
138
+ }), a.size > 0 && this.removeStacksByIndices(e.add.key, a), o.size > 0 && e.change && this.removeStacksByIndices(e.change.key, o), s.size > 0 && this.removeStacksByIndices(e.remove.key, s);
139
+ }
140
+ removeStacksByIndices(e, t) {
141
+ let n = [...t].sort((e, t) => t - e);
142
+ for (let t of n) a(this.stacks[e][t]), this.stacks[e].splice(t, 1);
143
+ }
144
+ processTransactionEvents(e, t, n, r) {
145
+ let { shouldProcess: i, generateEventId: a = o, onAbort: s } = r ?? {};
146
+ this.removeDuplicatedTransactionEvents(t);
147
+ let c = this.addedEventIds.get(e) ?? /* @__PURE__ */ new Set();
148
+ this.addedEventIds.set(e, c);
149
+ let l = this.transactionManager.getOrInsert(e).then(() => this.forEachStackAsync(t.add.key, (e) => (s && c.add(a({
150
+ type: "add",
151
+ event: e
152
+ })), n({
153
+ type: "add",
154
+ event: e
155
+ })), t.add.max, i ? (e) => i({
156
+ type: "add",
157
+ event: e
158
+ }) : void 0)).then(() => (s && c.clear(), this.forEachStackAsync(t.remove.key, (e) => n({
159
+ type: "remove",
160
+ event: e
161
+ }), t.remove.max, i ? (e) => i({
162
+ type: "remove",
163
+ event: e
164
+ }) : void 0)));
165
+ if (s && c.size) for (let n of this.stacks[t.remove.key]) {
166
+ if (!n) continue;
167
+ let t = n, r = a({
168
+ type: "remove",
169
+ event: t
170
+ });
171
+ if (r && c.has(r)) {
172
+ try {
173
+ Promise.resolve(s(t)).catch((t) => {
174
+ console.error(`onAbort handler for "${e}" failed:`, t);
175
+ });
176
+ } catch (t) {
177
+ console.error(`onAbort handler for "${e}" failed:`, t);
178
+ }
179
+ c.delete(r);
180
+ }
181
+ }
182
+ if (t.change) {
183
+ let e = t.change;
184
+ l.then(() => this.forEachStackAsync(e.key, (e) => n({
185
+ type: "change",
186
+ event: e
187
+ }), e.max, i ? (e) => i({
188
+ type: "change",
189
+ event: e
190
+ }) : void 0)).end();
191
+ } else l.end();
192
+ }
193
+ };
194
+ //#endregion
195
+ //#region src/assertions.ts
196
+ function c(e) {}
197
+ function l(e) {
198
+ return e != null;
199
+ }
200
+ function u(e) {
201
+ return e !== void 0;
202
+ }
203
+ function d(e) {
204
+ return e !== !1;
205
+ }
206
+ //#endregion
207
+ //#region src/utils/TransferableTileLike.ts
208
+ var f = class {
209
+ cached_mesh_handle;
210
+ coords;
211
+ max_height;
212
+ min_height;
213
+ constructor(e) {
214
+ this.cached_mesh_handle = e.cached_mesh_handle ? new m(e.cached_mesh_handle) : void 0, this.coords = new p(e.coords), this.max_height = e.max_height, this.min_height = e.min_height;
215
+ }
216
+ free() {}
217
+ }, p = class {
218
+ x;
219
+ y;
220
+ z;
221
+ constructor(e) {
222
+ this.x = e.x, this.y = e.y, this.z = e.z;
223
+ }
224
+ }, m = class {
225
+ vertices;
226
+ uvs;
227
+ indices;
228
+ heights;
229
+ constructor(e) {
230
+ this.vertices = e.vertices, this.uvs = e.uvs, this.indices = e.indices, this.heights = e.heights;
231
+ }
232
+ free() {}
233
+ }, h = class e {
234
+ coords;
235
+ size;
236
+ constructor(e, t) {
237
+ this.coords = e, this.size = t;
238
+ }
239
+ transfer_coords() {
240
+ return this.coords;
241
+ }
242
+ clone() {
243
+ return new e(this.coords.slice(), this.size);
244
+ }
245
+ }, g = class {
246
+ uvs;
247
+ indices;
248
+ heights;
249
+ normals;
250
+ watermask;
251
+ constructor(e, t, n, r, i) {
252
+ this.uvs = e, this.indices = t, this.heights = n, this.normals = r, this.watermask = i;
253
+ }
254
+ }, _ = class {
255
+ decoder;
256
+ constructor(e) {
257
+ this.decoder = new v(e);
258
+ }
259
+ }, v = class {
260
+ b_scaler;
261
+ boundary;
262
+ epsilon;
263
+ g_scaler;
264
+ max_offset;
265
+ min_offset;
266
+ offset;
267
+ r_scaler;
268
+ constructor(e) {
269
+ this.b_scaler = e.b_scaler, this.boundary = e.boundary, this.epsilon = e.epsilon, this.g_scaler = e.g_scaler, this.max_offset = e.max_offset, this.min_offset = e.min_offset, this.offset = e.offset, this.r_scaler = e.r_scaler;
270
+ }
271
+ }, y = class {
272
+ x;
273
+ y;
274
+ z;
275
+ constructor(e) {
276
+ this.x = e.x, this.y = e.y, this.z = e.z;
277
+ }
278
+ }, ee = class {
279
+ vertices;
280
+ uvs;
281
+ indices;
282
+ heights;
283
+ max_height;
284
+ min_height;
285
+ rtc_translation;
286
+ normals;
287
+ skirt_vertices;
288
+ skirt_uvs;
289
+ skirt_indices;
290
+ skirt_normals;
291
+ watermask;
292
+ constructor(e) {
293
+ this.vertices = e.transferVertices(), this.uvs = e.transferUvs(), this.indices = e.transferIndices(), this.heights = e.transferHeights(), this.max_height = e.max_height, this.min_height = e.min_height, this.rtc_translation = e.rtc_translation ? new y(e.rtc_translation) : void 0, e.hasNormals() && (this.normals = e.transferNormals()), e.hasSkirt() && (this.skirt_vertices = e.transferSkirtVertices(), this.skirt_uvs = e.transferSkirtUvs(), this.skirt_indices = e.transferSkirtIndices(), this.skirt_normals = e.transferSkirtNormals()), e.hasWatermask() && (this.watermask = e.transferWatermask());
294
+ }
295
+ transferVertices() {
296
+ throw Error();
297
+ }
298
+ transferUvs() {
299
+ throw Error();
300
+ }
301
+ transferIndices() {
302
+ throw Error();
303
+ }
304
+ transferHeights() {
305
+ throw Error();
306
+ }
307
+ transferNormals() {
308
+ throw Error();
309
+ }
310
+ transferSkirtVertices() {
311
+ throw Error();
312
+ }
313
+ transferSkirtUvs() {
314
+ throw Error();
315
+ }
316
+ transferSkirtIndices() {
317
+ throw Error();
318
+ }
319
+ transferSkirtNormals() {
320
+ throw Error();
321
+ }
322
+ transferWatermask() {
323
+ throw Error();
324
+ }
325
+ hasSkirt() {
326
+ return this.skirt_vertices !== void 0 && this.skirt_uvs !== void 0 && this.skirt_indices !== void 0;
327
+ }
328
+ hasNormals() {
329
+ return this.normals !== void 0;
330
+ }
331
+ hasWatermask() {
332
+ return this.watermask !== void 0;
333
+ }
334
+ }, te = class {
335
+ batch_ids;
336
+ batch_indices;
337
+ crs;
338
+ expected_winding_orders;
339
+ holes;
340
+ holes_boundaries;
341
+ holes_sizes;
342
+ holes_total_sizes;
343
+ length;
344
+ outer_ring;
345
+ outer_ring_sizes;
346
+ constructor(e) {
347
+ this.batch_ids = e.transferBatchIds(), this.batch_indices = e.transferBatchIndices(), this.crs = e.crs(), this.expected_winding_orders = e.transferExpectedWindingOrders(), this.holes = e.transferHoles(), this.holes_boundaries = e.transferHolesBoundaries(), this.holes_sizes = e.transferHolesSizes(), this.holes_total_sizes = e.transferHolesTotalSizes(), this.length = e.length(), this.outer_ring = e.transferOuterRing(), this.outer_ring_sizes = e.transferOuterRingSizes();
348
+ }
349
+ setBatchIds(e, t) {}
350
+ setBatchIndices(e, t) {}
351
+ setExpectedWindingOrders(e, t) {}
352
+ setOuterRing(e, t) {}
353
+ setOuterRingSizes(e, t) {}
354
+ setHoles(e, t) {}
355
+ setHolesBoundaries(e, t) {}
356
+ setHolesSizes(e, t) {}
357
+ setHolesTotalSizes(e, t) {}
358
+ transferBatchIds() {
359
+ throw Error();
360
+ }
361
+ transferBatchIndices() {
362
+ throw Error();
363
+ }
364
+ transferExpectedWindingOrders() {
365
+ throw Error();
366
+ }
367
+ transferOuterRing() {
368
+ throw Error();
369
+ }
370
+ transferOuterRingSizes() {
371
+ throw Error();
372
+ }
373
+ transferHoles() {
374
+ throw Error();
375
+ }
376
+ transferHolesBoundaries() {
377
+ throw Error();
378
+ }
379
+ transferHolesSizes() {
380
+ throw Error();
381
+ }
382
+ transferHolesTotalSizes() {
383
+ throw Error();
384
+ }
385
+ }, ne = class {
386
+ clampToGround;
387
+ tiled;
388
+ castShadow;
389
+ receiveShadow;
390
+ color;
391
+ extrudedHeight;
392
+ height;
393
+ show;
394
+ perPositionHeight;
395
+ wireframe;
396
+ outline;
397
+ __internal__;
398
+ constructor(e) {
399
+ this.clampToGround = e.clampToGround, this.tiled = e.tiled, this.receiveShadow = e.receiveShadow, this.castShadow = e.castShadow, this.color = e.color, this.extrudedHeight = e.extrudedHeight, this.height = e.height, this.show = e.show, this.perPositionHeight = e.perPositionHeight, this.wireframe = e.wireframe, this.outline = e.outline;
400
+ }
401
+ free() {}
402
+ }, b = class {
403
+ east;
404
+ north;
405
+ south;
406
+ west;
407
+ constructor(e) {
408
+ this.east = e.east, this.north = e.north, this.south = e.south, this.west = e.west;
409
+ }
410
+ }, x = class {
411
+ extent;
412
+ position_3d_high;
413
+ position_3d_high_size;
414
+ position_3d_low;
415
+ position_3d_low_size;
416
+ position;
417
+ position_size;
418
+ normal;
419
+ normal_size;
420
+ scale_normal_and_cap;
421
+ scale_normal_and_cap_size;
422
+ batch_id;
423
+ batch_id_size;
424
+ batch_index;
425
+ batch_index_size;
426
+ indices;
427
+ rtc_translation;
428
+ outline_position;
429
+ outline_position_size;
430
+ outline_scale_normal_and_cap;
431
+ outline_scale_normal_and_cap_size;
432
+ outline_skip_indices;
433
+ outline_batch_index;
434
+ outline_batch_index_size;
435
+ constructor(e) {
436
+ let t = e.extent;
437
+ this.extent = t ? new b(t) : void 0, this.position_3d_high = e.position_3d_high()?.slice(), this.position_3d_high_size = e.position_3d_high_size(), this.position_3d_low = e.position_3d_low()?.slice(), this.position_3d_low_size = e.position_3d_low_size(), this.position = e.position()?.slice(), this.position_size = e.position_size(), this.normal = e.normal()?.slice(), this.normal_size = e.normal_size(), this.scale_normal_and_cap = e.scale_normal_and_cap()?.slice(), this.scale_normal_and_cap_size = e.scale_normal_and_cap_size(), this.batch_id = e.batch_id()?.slice(), this.batch_id_size = e.batch_id_size(), this.batch_index = e.batch_index()?.slice(), this.batch_index_size = e.batch_index_size(), this.indices = e.indices().slice(), this.rtc_translation = e.rtc_translation ? new y(e.rtc_translation) : void 0;
438
+ let n = e.outline();
439
+ n && (this.outline_position = n.position()?.slice(), this.outline_position_size = n.position_size(), this.outline_scale_normal_and_cap = n.scale_normal_and_cap()?.slice(), this.outline_scale_normal_and_cap_size = n.scale_normal_and_cap_size(), this.outline_skip_indices = n.skip_indices()?.slice(), this.outline_batch_index = n.batch_index()?.slice(), this.outline_batch_index_size = n.batch_index_size(), n.free());
440
+ }
441
+ }, S = class {
442
+ points;
443
+ points_sizes;
444
+ batch_ids;
445
+ batch_indices;
446
+ crs;
447
+ length;
448
+ constructor(e) {
449
+ this.points = e.transferPoints(), this.points_sizes = e.transferPointsSizes(), this.batch_ids = e.transferBatchIds(), this.batch_indices = e.transferBatchIndices(), this.crs = e.crs(), this.length = e.length();
450
+ }
451
+ setPoints(e, t) {}
452
+ setPointsSizes(e, t) {}
453
+ setBatchIds(e, t) {}
454
+ setBatchIndices(e, t) {}
455
+ transferPoints() {
456
+ throw Error();
457
+ }
458
+ transferPointsSizes() {
459
+ throw Error();
460
+ }
461
+ transferBatchIds() {
462
+ throw Error();
463
+ }
464
+ transferBatchIndices() {
465
+ throw Error();
466
+ }
467
+ }, C = class {
468
+ clampToGround;
469
+ tiled;
470
+ castShadow;
471
+ receiveShadow;
472
+ color;
473
+ height;
474
+ width;
475
+ maxWidth;
476
+ show;
477
+ __internal__;
478
+ constructor(e) {
479
+ this.clampToGround = e.clampToGround, this.tiled = e.tiled, this.receiveShadow = e.receiveShadow, this.castShadow = e.castShadow, this.color = e.color, this.width = e.width, this.maxWidth = e.maxWidth, this.height = e.height, this.show = e.show;
480
+ }
481
+ free() {}
482
+ }, re = class {
483
+ extent;
484
+ position;
485
+ position_size;
486
+ position_high;
487
+ position_high_size;
488
+ position_low;
489
+ position_low_size;
490
+ start;
491
+ start_size;
492
+ start_high;
493
+ start_high_size;
494
+ start_low;
495
+ start_low_size;
496
+ forward_offset;
497
+ forward_offset_size;
498
+ end_high;
499
+ end_high_size;
500
+ end_low;
501
+ end_low_size;
502
+ start_normals;
503
+ start_normals_size;
504
+ end_normal_and_texture_coordinate_normalization_x;
505
+ end_normal_and_texture_coordinate_normalization_x_size;
506
+ right_normal_and_texture_coordinate_normalization_y;
507
+ right_normal_and_texture_coordinate_normalization_y_size;
508
+ batch_id;
509
+ batch_id_size;
510
+ batch_index;
511
+ batch_index_size;
512
+ indices;
513
+ constructor(e) {
514
+ let t = e.extent;
515
+ this.extent = t ? new b(t) : void 0, this.position = e.position().slice(), this.position_size = e.position_size(), this.position_high = e.position_high()?.slice(), this.position_high_size = e.position_high_size(), this.position_low = e.position_low()?.slice(), this.position_low_size = e.position_low_size(), this.start = e.start()?.slice(), this.start_size = e.start_size(), this.start_high = e.start_high()?.slice(), this.start_high_size = e.start_high_size(), this.start_low = e.start_low()?.slice(), this.start_low_size = e.start_low_size(), this.forward_offset = e.forward_offset()?.slice(), this.forward_offset_size = e.forward_offset_size(), this.end_high = e.end_high()?.slice(), this.end_high_size = e.end_high_size(), this.end_low = e.end_low()?.slice(), this.end_low_size = e.end_low_size(), this.start_normals = e.start_normals()?.slice(), this.start_normals_size = e.start_normals_size(), this.end_normal_and_texture_coordinate_normalization_x = e.end_normal_and_texture_coordinate_normalization_x()?.slice(), this.end_normal_and_texture_coordinate_normalization_x_size = e.end_normal_and_texture_coordinate_normalization_x_size(), this.right_normal_and_texture_coordinate_normalization_y = e.right_normal_and_texture_coordinate_normalization_y().slice(), this.right_normal_and_texture_coordinate_normalization_y_size = e.right_normal_and_texture_coordinate_normalization_y_size(), this.batch_id = e.batch_id()?.slice(), this.batch_id_size = e.batch_id_size(), this.batch_index = e.batch_index()?.slice(), this.batch_index_size = e.batch_index_size(), this.indices = e.indices().slice();
516
+ }
517
+ }, ie = ["png", "webp"], ae = class {
518
+ events = {};
519
+ onceEvents = {};
520
+ on(e, t) {
521
+ this.events[e] || (this.events[e] = /* @__PURE__ */ new Set()), this.events[e].add(t);
522
+ }
523
+ off(e, t) {
524
+ this.events[e]?.delete(t), this.onceEvents[e]?.delete(t);
525
+ }
526
+ clear(e) {
527
+ this.events[e]?.clear(), this.onceEvents[e]?.clear();
528
+ }
529
+ size(e) {
530
+ return this.events[e]?.size || this.onceEvents[e]?.size;
531
+ }
532
+ once(e, t) {
533
+ this.onceEvents[e] || (this.onceEvents[e] = /* @__PURE__ */ new Set()), this.onceEvents[e].add(t);
534
+ }
535
+ emit(e, ...t) {
536
+ this.events[e]?.forEach((e) => e(...t)), this.onceEvents[e]?.size && (this.onceEvents[e]?.forEach((e) => e(...t)), this.onceEvents[e]?.clear());
537
+ }
538
+ }, oe = (e, t, n) => {
539
+ let r = t.length;
540
+ for (let i = 0; i < r; i++) n[i] = e[t[i]];
541
+ }, se = class extends Error {
542
+ constructor(e) {
543
+ super(e ?? "Unimplemented");
544
+ }
545
+ }, ce = class extends Error {
546
+ constructor(e) {
547
+ super(e ?? "Unreachable");
548
+ }
549
+ }, le = class {
550
+ list = [];
551
+ indexMap = {};
552
+ add(e) {
553
+ this.assertUnique(e.name);
554
+ let t = this.list.length;
555
+ this.list.push(e), this.indexMap[e.name] = t;
556
+ }
557
+ insertBefore(e, t) {
558
+ let n = this.findIndex(e);
559
+ return this.insertAt(n, t);
560
+ }
561
+ insertAfter(e, t) {
562
+ let n = this.findIndex(e);
563
+ return this.insertAt(n + 1, t);
564
+ }
565
+ insertAt(e, t) {
566
+ if (this.assertUnique(t.name), e < 0 || e > this.list.length) throw RangeError(`index out of range: ${e}`);
567
+ this.list.splice(e, 0, t);
568
+ for (let t = e; t < this.list.length; t++) this.indexMap[this.list[t].name] = t;
569
+ return e;
570
+ }
571
+ findIndex(e) {
572
+ let t = this.indexMap[e];
573
+ if (t === void 0) throw Error(`target not found: ${e}`);
574
+ return t;
575
+ }
576
+ assertUnique(e) {
577
+ if (this.indexMap[e] !== void 0) throw Error(`duplicate name: ${e}`);
578
+ }
579
+ }, ue = class extends ae {
580
+ _value;
581
+ constructor(e) {
582
+ super(), this._value = e;
583
+ }
584
+ get value() {
585
+ return this._value;
586
+ }
587
+ set value(e) {
588
+ this._value = e, this.emit("changed", e);
589
+ }
590
+ changed(e) {
591
+ let t = (n) => {
592
+ e(n), this.off("changed", t);
593
+ };
594
+ this.on("changed", t);
595
+ }
596
+ }, de = class {
597
+ value;
598
+ constructor(t, n, r) {
599
+ this.value = new e(t, n, r);
600
+ }
601
+ copy(e, t, n) {
602
+ this.value.x = e, this.value.y = t, this.value.z = n;
603
+ }
604
+ };
605
+ //#endregion
606
+ //#region ../../node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/ascending.js
607
+ function fe(e, t) {
608
+ return e == null || t == null ? NaN : e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN;
609
+ }
610
+ //#endregion
611
+ //#region ../../node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/descending.js
612
+ function pe(e, t) {
613
+ return e == null || t == null ? NaN : t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN;
614
+ }
615
+ //#endregion
616
+ //#region ../../node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/bisector.js
617
+ function me(e) {
618
+ let t, n, r;
619
+ e.length === 2 ? (t = e === fe || e === pe ? e : he, n = e, r = e) : (t = fe, n = (t, n) => fe(e(t), n), r = (t, n) => e(t) - n);
620
+ function i(e, r, i = 0, a = e.length) {
621
+ if (i < a) {
622
+ if (t(r, r) !== 0) return a;
623
+ do {
624
+ let t = i + a >>> 1;
625
+ n(e[t], r) < 0 ? i = t + 1 : a = t;
626
+ } while (i < a);
627
+ }
628
+ return i;
629
+ }
630
+ function a(e, r, i = 0, a = e.length) {
631
+ if (i < a) {
632
+ if (t(r, r) !== 0) return a;
633
+ do {
634
+ let t = i + a >>> 1;
635
+ n(e[t], r) <= 0 ? i = t + 1 : a = t;
636
+ } while (i < a);
637
+ }
638
+ return i;
639
+ }
640
+ function o(e, t, n = 0, a = e.length) {
641
+ let o = i(e, t, n, a - 1);
642
+ return o > n && r(e[o - 1], t) > -r(e[o], t) ? o - 1 : o;
643
+ }
644
+ return {
645
+ left: i,
646
+ center: o,
647
+ right: a
648
+ };
649
+ }
650
+ function he() {
651
+ return 0;
652
+ }
653
+ //#endregion
654
+ //#region ../../node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/number.js
655
+ function ge(e) {
656
+ return e === null ? NaN : +e;
657
+ }
658
+ //#endregion
659
+ //#region ../../node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/bisect.js
660
+ var _e = me(fe), ve = _e.right;
661
+ _e.left, me(ge).center;
662
+ //#endregion
663
+ //#region ../../node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/ticks.js
664
+ var ye = Math.sqrt(50), be = Math.sqrt(10), xe = Math.sqrt(2);
665
+ function Se(e, t, n) {
666
+ let r = (t - e) / Math.max(0, n), i = Math.floor(Math.log10(r)), a = r / 10 ** i, o = a >= ye ? 10 : a >= be ? 5 : a >= xe ? 2 : 1, s, c, l;
667
+ return i < 0 ? (l = 10 ** -i / o, s = Math.round(e * l), c = Math.round(t * l), s / l < e && ++s, c / l > t && --c, l = -l) : (l = 10 ** i * o, s = Math.round(e / l), c = Math.round(t / l), s * l < e && ++s, c * l > t && --c), c < s && .5 <= n && n < 2 ? Se(e, t, n * 2) : [
668
+ s,
669
+ c,
670
+ l
671
+ ];
672
+ }
673
+ function Ce(e, t, n) {
674
+ if (t = +t, e = +e, n = +n, !(n > 0)) return [];
675
+ if (e === t) return [e];
676
+ let r = t < e, [i, a, o] = r ? Se(t, e, n) : Se(e, t, n);
677
+ if (!(a >= i)) return [];
678
+ let s = a - i + 1, c = Array(s);
679
+ if (r) if (o < 0) for (let e = 0; e < s; ++e) c[e] = (a - e) / -o;
680
+ else for (let e = 0; e < s; ++e) c[e] = (a - e) * o;
681
+ else if (o < 0) for (let e = 0; e < s; ++e) c[e] = (i + e) / -o;
682
+ else for (let e = 0; e < s; ++e) c[e] = (i + e) * o;
683
+ return c;
684
+ }
685
+ function we(e, t, n) {
686
+ return t = +t, e = +e, n = +n, Se(e, t, n)[2];
687
+ }
688
+ function Te(e, t, n) {
689
+ t = +t, e = +e, n = +n;
690
+ let r = t < e, i = r ? we(t, e, n) : we(e, t, n);
691
+ return (r ? -1 : 1) * (i < 0 ? 1 / -i : i);
692
+ }
693
+ //#endregion
694
+ //#region ../../node_modules/.pnpm/d3-dispatch@3.0.1/node_modules/d3-dispatch/src/dispatch.js
695
+ var Ee = { value: () => {} };
696
+ function De() {
697
+ for (var e = 0, t = arguments.length, n = {}, r; e < t; ++e) {
698
+ if (!(r = arguments[e] + "") || r in n || /[\s.]/.test(r)) throw Error("illegal type: " + r);
699
+ n[r] = [];
700
+ }
701
+ return new Oe(n);
702
+ }
703
+ function Oe(e) {
704
+ this._ = e;
705
+ }
706
+ function ke(e, t) {
707
+ return e.trim().split(/^|\s+/).map(function(e) {
708
+ var n = "", r = e.indexOf(".");
709
+ if (r >= 0 && (n = e.slice(r + 1), e = e.slice(0, r)), e && !t.hasOwnProperty(e)) throw Error("unknown type: " + e);
710
+ return {
711
+ type: e,
712
+ name: n
713
+ };
714
+ });
715
+ }
716
+ Oe.prototype = De.prototype = {
717
+ constructor: Oe,
718
+ on: function(e, t) {
719
+ var n = this._, r = ke(e + "", n), i, a = -1, o = r.length;
720
+ if (arguments.length < 2) {
721
+ for (; ++a < o;) if ((i = (e = r[a]).type) && (i = Ae(n[i], e.name))) return i;
722
+ return;
723
+ }
724
+ if (t != null && typeof t != "function") throw Error("invalid callback: " + t);
725
+ for (; ++a < o;) if (i = (e = r[a]).type) n[i] = je(n[i], e.name, t);
726
+ else if (t == null) for (i in n) n[i] = je(n[i], e.name, null);
727
+ return this;
728
+ },
729
+ copy: function() {
730
+ var e = {}, t = this._;
731
+ for (var n in t) e[n] = t[n].slice();
732
+ return new Oe(e);
733
+ },
734
+ call: function(e, t) {
735
+ if ((i = arguments.length - 2) > 0) for (var n = Array(i), r = 0, i, a; r < i; ++r) n[r] = arguments[r + 2];
736
+ if (!this._.hasOwnProperty(e)) throw Error("unknown type: " + e);
737
+ for (a = this._[e], r = 0, i = a.length; r < i; ++r) a[r].value.apply(t, n);
738
+ },
739
+ apply: function(e, t, n) {
740
+ if (!this._.hasOwnProperty(e)) throw Error("unknown type: " + e);
741
+ for (var r = this._[e], i = 0, a = r.length; i < a; ++i) r[i].value.apply(t, n);
742
+ }
743
+ };
744
+ function Ae(e, t) {
745
+ for (var n = 0, r = e.length, i; n < r; ++n) if ((i = e[n]).name === t) return i.value;
746
+ }
747
+ function je(e, t, n) {
748
+ for (var r = 0, i = e.length; r < i; ++r) if (e[r].name === t) {
749
+ e[r] = Ee, e = e.slice(0, r).concat(e.slice(r + 1));
750
+ break;
751
+ }
752
+ return n != null && e.push({
753
+ name: t,
754
+ value: n
755
+ }), e;
756
+ }
757
+ var Me = {
758
+ svg: "http://www.w3.org/2000/svg",
759
+ xhtml: "http://www.w3.org/1999/xhtml",
760
+ xlink: "http://www.w3.org/1999/xlink",
761
+ xml: "http://www.w3.org/XML/1998/namespace",
762
+ xmlns: "http://www.w3.org/2000/xmlns/"
763
+ };
764
+ //#endregion
765
+ //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/namespace.js
766
+ function Ne(e) {
767
+ var t = e += "", n = t.indexOf(":");
768
+ return n >= 0 && (t = e.slice(0, n)) !== "xmlns" && (e = e.slice(n + 1)), Me.hasOwnProperty(t) ? {
769
+ space: Me[t],
770
+ local: e
771
+ } : e;
772
+ }
773
+ //#endregion
774
+ //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/creator.js
775
+ function Pe(e) {
776
+ return function() {
777
+ var t = this.ownerDocument, n = this.namespaceURI;
778
+ return n === "http://www.w3.org/1999/xhtml" && t.documentElement.namespaceURI === "http://www.w3.org/1999/xhtml" ? t.createElement(e) : t.createElementNS(n, e);
779
+ };
780
+ }
781
+ function Fe(e) {
782
+ return function() {
783
+ return this.ownerDocument.createElementNS(e.space, e.local);
784
+ };
785
+ }
786
+ function Ie(e) {
787
+ var t = Ne(e);
788
+ return (t.local ? Fe : Pe)(t);
789
+ }
790
+ //#endregion
791
+ //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selector.js
792
+ function Le() {}
793
+ function Re(e) {
794
+ return e == null ? Le : function() {
795
+ return this.querySelector(e);
796
+ };
797
+ }
798
+ //#endregion
799
+ //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/select.js
800
+ function ze(e) {
801
+ typeof e != "function" && (e = Re(e));
802
+ for (var t = this._groups, n = t.length, r = Array(n), i = 0; i < n; ++i) for (var a = t[i], o = a.length, s = r[i] = Array(o), c, l, u = 0; u < o; ++u) (c = a[u]) && (l = e.call(c, c.__data__, u, a)) && ("__data__" in c && (l.__data__ = c.__data__), s[u] = l);
803
+ return new T(r, this._parents);
804
+ }
805
+ //#endregion
806
+ //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/array.js
807
+ function Be(e) {
808
+ return e == null ? [] : Array.isArray(e) ? e : Array.from(e);
809
+ }
810
+ //#endregion
811
+ //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selectorAll.js
812
+ function Ve() {
813
+ return [];
814
+ }
815
+ function He(e) {
816
+ return e == null ? Ve : function() {
817
+ return this.querySelectorAll(e);
818
+ };
819
+ }
820
+ //#endregion
821
+ //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/selectAll.js
822
+ function Ue(e) {
823
+ return function() {
824
+ return Be(e.apply(this, arguments));
825
+ };
826
+ }
827
+ function We(e) {
828
+ e = typeof e == "function" ? Ue(e) : He(e);
829
+ for (var t = this._groups, n = t.length, r = [], i = [], a = 0; a < n; ++a) for (var o = t[a], s = o.length, c, l = 0; l < s; ++l) (c = o[l]) && (r.push(e.call(c, c.__data__, l, o)), i.push(c));
830
+ return new T(r, i);
831
+ }
832
+ //#endregion
833
+ //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/matcher.js
834
+ function Ge(e) {
835
+ return function() {
836
+ return this.matches(e);
837
+ };
838
+ }
839
+ function Ke(e) {
840
+ return function(t) {
841
+ return t.matches(e);
842
+ };
843
+ }
844
+ //#endregion
845
+ //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/selectChild.js
846
+ var qe = Array.prototype.find;
847
+ function Je(e) {
848
+ return function() {
849
+ return qe.call(this.children, e);
850
+ };
851
+ }
852
+ function Ye() {
853
+ return this.firstElementChild;
854
+ }
855
+ function Xe(e) {
856
+ return this.select(e == null ? Ye : Je(typeof e == "function" ? e : Ke(e)));
857
+ }
858
+ //#endregion
859
+ //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/selectChildren.js
860
+ var Ze = Array.prototype.filter;
861
+ function Qe() {
862
+ return Array.from(this.children);
863
+ }
864
+ function $e(e) {
865
+ return function() {
866
+ return Ze.call(this.children, e);
867
+ };
868
+ }
869
+ function et(e) {
870
+ return this.selectAll(e == null ? Qe : $e(typeof e == "function" ? e : Ke(e)));
871
+ }
872
+ //#endregion
873
+ //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/filter.js
874
+ function tt(e) {
875
+ typeof e != "function" && (e = Ge(e));
876
+ for (var t = this._groups, n = t.length, r = Array(n), i = 0; i < n; ++i) for (var a = t[i], o = a.length, s = r[i] = [], c, l = 0; l < o; ++l) (c = a[l]) && e.call(c, c.__data__, l, a) && s.push(c);
877
+ return new T(r, this._parents);
878
+ }
879
+ //#endregion
880
+ //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/sparse.js
881
+ function nt(e) {
882
+ return Array(e.length);
883
+ }
884
+ //#endregion
885
+ //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/enter.js
886
+ function rt() {
887
+ return new T(this._enter || this._groups.map(nt), this._parents);
888
+ }
889
+ function it(e, t) {
890
+ this.ownerDocument = e.ownerDocument, this.namespaceURI = e.namespaceURI, this._next = null, this._parent = e, this.__data__ = t;
891
+ }
892
+ it.prototype = {
893
+ constructor: it,
894
+ appendChild: function(e) {
895
+ return this._parent.insertBefore(e, this._next);
896
+ },
897
+ insertBefore: function(e, t) {
898
+ return this._parent.insertBefore(e, t);
899
+ },
900
+ querySelector: function(e) {
901
+ return this._parent.querySelector(e);
902
+ },
903
+ querySelectorAll: function(e) {
904
+ return this._parent.querySelectorAll(e);
905
+ }
906
+ };
907
+ //#endregion
908
+ //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/constant.js
909
+ function at(e) {
910
+ return function() {
911
+ return e;
912
+ };
913
+ }
914
+ //#endregion
915
+ //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/data.js
916
+ function ot(e, t, n, r, i, a) {
917
+ for (var o = 0, s, c = t.length, l = a.length; o < l; ++o) (s = t[o]) ? (s.__data__ = a[o], r[o] = s) : n[o] = new it(e, a[o]);
918
+ for (; o < c; ++o) (s = t[o]) && (i[o] = s);
919
+ }
920
+ function st(e, t, n, r, i, a, o) {
921
+ var s, c, l = /* @__PURE__ */ new Map(), u = t.length, d = a.length, f = Array(u), p;
922
+ for (s = 0; s < u; ++s) (c = t[s]) && (f[s] = p = o.call(c, c.__data__, s, t) + "", l.has(p) ? i[s] = c : l.set(p, c));
923
+ for (s = 0; s < d; ++s) p = o.call(e, a[s], s, a) + "", (c = l.get(p)) ? (r[s] = c, c.__data__ = a[s], l.delete(p)) : n[s] = new it(e, a[s]);
924
+ for (s = 0; s < u; ++s) (c = t[s]) && l.get(f[s]) === c && (i[s] = c);
925
+ }
926
+ function ct(e) {
927
+ return e.__data__;
928
+ }
929
+ function lt(e, t) {
930
+ if (!arguments.length) return Array.from(this, ct);
931
+ var n = t ? st : ot, r = this._parents, i = this._groups;
932
+ typeof e != "function" && (e = at(e));
933
+ for (var a = i.length, o = Array(a), s = Array(a), c = Array(a), l = 0; l < a; ++l) {
934
+ var u = r[l], d = i[l], f = d.length, p = ut(e.call(u, u && u.__data__, l, r)), m = p.length, h = s[l] = Array(m), g = o[l] = Array(m);
935
+ n(u, d, h, g, c[l] = Array(f), p, t);
936
+ for (var _ = 0, v = 0, y, ee; _ < m; ++_) if (y = h[_]) {
937
+ for (_ >= v && (v = _ + 1); !(ee = g[v]) && ++v < m;);
938
+ y._next = ee || null;
939
+ }
940
+ }
941
+ return o = new T(o, r), o._enter = s, o._exit = c, o;
942
+ }
943
+ function ut(e) {
944
+ return typeof e == "object" && "length" in e ? e : Array.from(e);
945
+ }
946
+ //#endregion
947
+ //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/exit.js
948
+ function dt() {
949
+ return new T(this._exit || this._groups.map(nt), this._parents);
950
+ }
951
+ //#endregion
952
+ //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/join.js
953
+ function ft(e, t, n) {
954
+ var r = this.enter(), i = this, a = this.exit();
955
+ return typeof e == "function" ? (r = e(r), r &&= r.selection()) : r = r.append(e + ""), t != null && (i = t(i), i &&= i.selection()), n == null ? a.remove() : n(a), r && i ? r.merge(i).order() : i;
956
+ }
957
+ //#endregion
958
+ //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/merge.js
959
+ function pt(e) {
960
+ for (var t = e.selection ? e.selection() : e, n = this._groups, r = t._groups, i = n.length, a = r.length, o = Math.min(i, a), s = Array(i), c = 0; c < o; ++c) for (var l = n[c], u = r[c], d = l.length, f = s[c] = Array(d), p, m = 0; m < d; ++m) (p = l[m] || u[m]) && (f[m] = p);
961
+ for (; c < i; ++c) s[c] = n[c];
962
+ return new T(s, this._parents);
963
+ }
964
+ //#endregion
965
+ //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/order.js
966
+ function mt() {
967
+ for (var e = this._groups, t = -1, n = e.length; ++t < n;) for (var r = e[t], i = r.length - 1, a = r[i], o; --i >= 0;) (o = r[i]) && (a && o.compareDocumentPosition(a) ^ 4 && a.parentNode.insertBefore(o, a), a = o);
968
+ return this;
969
+ }
970
+ //#endregion
971
+ //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/sort.js
972
+ function ht(e) {
973
+ e ||= gt;
974
+ function t(t, n) {
975
+ return t && n ? e(t.__data__, n.__data__) : !t - !n;
976
+ }
977
+ for (var n = this._groups, r = n.length, i = Array(r), a = 0; a < r; ++a) {
978
+ for (var o = n[a], s = o.length, c = i[a] = Array(s), l, u = 0; u < s; ++u) (l = o[u]) && (c[u] = l);
979
+ c.sort(t);
980
+ }
981
+ return new T(i, this._parents).order();
982
+ }
983
+ function gt(e, t) {
984
+ return e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN;
985
+ }
986
+ //#endregion
987
+ //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/call.js
988
+ function _t() {
989
+ var e = arguments[0];
990
+ return arguments[0] = this, e.apply(null, arguments), this;
991
+ }
992
+ //#endregion
993
+ //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/nodes.js
994
+ function vt() {
995
+ return Array.from(this);
996
+ }
997
+ //#endregion
998
+ //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/node.js
999
+ function yt() {
1000
+ for (var e = this._groups, t = 0, n = e.length; t < n; ++t) for (var r = e[t], i = 0, a = r.length; i < a; ++i) {
1001
+ var o = r[i];
1002
+ if (o) return o;
1003
+ }
1004
+ return null;
1005
+ }
1006
+ //#endregion
1007
+ //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/size.js
1008
+ function bt() {
1009
+ let e = 0;
1010
+ for (let t of this) ++e;
1011
+ return e;
1012
+ }
1013
+ //#endregion
1014
+ //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/empty.js
1015
+ function xt() {
1016
+ return !this.node();
1017
+ }
1018
+ //#endregion
1019
+ //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/each.js
1020
+ function St(e) {
1021
+ for (var t = this._groups, n = 0, r = t.length; n < r; ++n) for (var i = t[n], a = 0, o = i.length, s; a < o; ++a) (s = i[a]) && e.call(s, s.__data__, a, i);
1022
+ return this;
1023
+ }
1024
+ //#endregion
1025
+ //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/attr.js
1026
+ function Ct(e) {
1027
+ return function() {
1028
+ this.removeAttribute(e);
1029
+ };
1030
+ }
1031
+ function wt(e) {
1032
+ return function() {
1033
+ this.removeAttributeNS(e.space, e.local);
1034
+ };
1035
+ }
1036
+ function Tt(e, t) {
1037
+ return function() {
1038
+ this.setAttribute(e, t);
1039
+ };
1040
+ }
1041
+ function Et(e, t) {
1042
+ return function() {
1043
+ this.setAttributeNS(e.space, e.local, t);
1044
+ };
1045
+ }
1046
+ function Dt(e, t) {
1047
+ return function() {
1048
+ var n = t.apply(this, arguments);
1049
+ n == null ? this.removeAttribute(e) : this.setAttribute(e, n);
1050
+ };
1051
+ }
1052
+ function Ot(e, t) {
1053
+ return function() {
1054
+ var n = t.apply(this, arguments);
1055
+ n == null ? this.removeAttributeNS(e.space, e.local) : this.setAttributeNS(e.space, e.local, n);
1056
+ };
1057
+ }
1058
+ function kt(e, t) {
1059
+ var n = Ne(e);
1060
+ if (arguments.length < 2) {
1061
+ var r = this.node();
1062
+ return n.local ? r.getAttributeNS(n.space, n.local) : r.getAttribute(n);
1063
+ }
1064
+ return this.each((t == null ? n.local ? wt : Ct : typeof t == "function" ? n.local ? Ot : Dt : n.local ? Et : Tt)(n, t));
1065
+ }
1066
+ //#endregion
1067
+ //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/window.js
1068
+ function At(e) {
1069
+ return e.ownerDocument && e.ownerDocument.defaultView || e.document && e || e.defaultView;
1070
+ }
1071
+ //#endregion
1072
+ //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/style.js
1073
+ function jt(e) {
1074
+ return function() {
1075
+ this.style.removeProperty(e);
1076
+ };
1077
+ }
1078
+ function Mt(e, t, n) {
1079
+ return function() {
1080
+ this.style.setProperty(e, t, n);
1081
+ };
1082
+ }
1083
+ function Nt(e, t, n) {
1084
+ return function() {
1085
+ var r = t.apply(this, arguments);
1086
+ r == null ? this.style.removeProperty(e) : this.style.setProperty(e, r, n);
1087
+ };
1088
+ }
1089
+ function Pt(e, t, n) {
1090
+ return arguments.length > 1 ? this.each((t == null ? jt : typeof t == "function" ? Nt : Mt)(e, t, n ?? "")) : w(this.node(), e);
1091
+ }
1092
+ function w(e, t) {
1093
+ return e.style.getPropertyValue(t) || At(e).getComputedStyle(e, null).getPropertyValue(t);
1094
+ }
1095
+ //#endregion
1096
+ //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/property.js
1097
+ function Ft(e) {
1098
+ return function() {
1099
+ delete this[e];
1100
+ };
1101
+ }
1102
+ function It(e, t) {
1103
+ return function() {
1104
+ this[e] = t;
1105
+ };
1106
+ }
1107
+ function Lt(e, t) {
1108
+ return function() {
1109
+ var n = t.apply(this, arguments);
1110
+ n == null ? delete this[e] : this[e] = n;
1111
+ };
1112
+ }
1113
+ function Rt(e, t) {
1114
+ return arguments.length > 1 ? this.each((t == null ? Ft : typeof t == "function" ? Lt : It)(e, t)) : this.node()[e];
1115
+ }
1116
+ //#endregion
1117
+ //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/classed.js
1118
+ function zt(e) {
1119
+ return e.trim().split(/^|\s+/);
1120
+ }
1121
+ function Bt(e) {
1122
+ return e.classList || new Vt(e);
1123
+ }
1124
+ function Vt(e) {
1125
+ this._node = e, this._names = zt(e.getAttribute("class") || "");
1126
+ }
1127
+ Vt.prototype = {
1128
+ add: function(e) {
1129
+ this._names.indexOf(e) < 0 && (this._names.push(e), this._node.setAttribute("class", this._names.join(" ")));
1130
+ },
1131
+ remove: function(e) {
1132
+ var t = this._names.indexOf(e);
1133
+ t >= 0 && (this._names.splice(t, 1), this._node.setAttribute("class", this._names.join(" ")));
1134
+ },
1135
+ contains: function(e) {
1136
+ return this._names.indexOf(e) >= 0;
1137
+ }
1138
+ };
1139
+ function Ht(e, t) {
1140
+ for (var n = Bt(e), r = -1, i = t.length; ++r < i;) n.add(t[r]);
1141
+ }
1142
+ function Ut(e, t) {
1143
+ for (var n = Bt(e), r = -1, i = t.length; ++r < i;) n.remove(t[r]);
1144
+ }
1145
+ function Wt(e) {
1146
+ return function() {
1147
+ Ht(this, e);
1148
+ };
1149
+ }
1150
+ function Gt(e) {
1151
+ return function() {
1152
+ Ut(this, e);
1153
+ };
1154
+ }
1155
+ function Kt(e, t) {
1156
+ return function() {
1157
+ (t.apply(this, arguments) ? Ht : Ut)(this, e);
1158
+ };
1159
+ }
1160
+ function qt(e, t) {
1161
+ var n = zt(e + "");
1162
+ if (arguments.length < 2) {
1163
+ for (var r = Bt(this.node()), i = -1, a = n.length; ++i < a;) if (!r.contains(n[i])) return !1;
1164
+ return !0;
1165
+ }
1166
+ return this.each((typeof t == "function" ? Kt : t ? Wt : Gt)(n, t));
1167
+ }
1168
+ //#endregion
1169
+ //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/text.js
1170
+ function Jt() {
1171
+ this.textContent = "";
1172
+ }
1173
+ function Yt(e) {
1174
+ return function() {
1175
+ this.textContent = e;
1176
+ };
1177
+ }
1178
+ function Xt(e) {
1179
+ return function() {
1180
+ this.textContent = e.apply(this, arguments) ?? "";
1181
+ };
1182
+ }
1183
+ function Zt(e) {
1184
+ return arguments.length ? this.each(e == null ? Jt : (typeof e == "function" ? Xt : Yt)(e)) : this.node().textContent;
1185
+ }
1186
+ //#endregion
1187
+ //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/html.js
1188
+ function Qt() {
1189
+ this.innerHTML = "";
1190
+ }
1191
+ function $t(e) {
1192
+ return function() {
1193
+ this.innerHTML = e;
1194
+ };
1195
+ }
1196
+ function en(e) {
1197
+ return function() {
1198
+ this.innerHTML = e.apply(this, arguments) ?? "";
1199
+ };
1200
+ }
1201
+ function tn(e) {
1202
+ return arguments.length ? this.each(e == null ? Qt : (typeof e == "function" ? en : $t)(e)) : this.node().innerHTML;
1203
+ }
1204
+ //#endregion
1205
+ //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/raise.js
1206
+ function nn() {
1207
+ this.nextSibling && this.parentNode.appendChild(this);
1208
+ }
1209
+ function rn() {
1210
+ return this.each(nn);
1211
+ }
1212
+ //#endregion
1213
+ //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/lower.js
1214
+ function an() {
1215
+ this.previousSibling && this.parentNode.insertBefore(this, this.parentNode.firstChild);
1216
+ }
1217
+ function on() {
1218
+ return this.each(an);
1219
+ }
1220
+ //#endregion
1221
+ //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/append.js
1222
+ function sn(e) {
1223
+ var t = typeof e == "function" ? e : Ie(e);
1224
+ return this.select(function() {
1225
+ return this.appendChild(t.apply(this, arguments));
1226
+ });
1227
+ }
1228
+ //#endregion
1229
+ //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/insert.js
1230
+ function cn() {
1231
+ return null;
1232
+ }
1233
+ function ln(e, t) {
1234
+ var n = typeof e == "function" ? e : Ie(e), r = t == null ? cn : typeof t == "function" ? t : Re(t);
1235
+ return this.select(function() {
1236
+ return this.insertBefore(n.apply(this, arguments), r.apply(this, arguments) || null);
1237
+ });
1238
+ }
1239
+ //#endregion
1240
+ //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/remove.js
1241
+ function un() {
1242
+ var e = this.parentNode;
1243
+ e && e.removeChild(this);
1244
+ }
1245
+ function dn() {
1246
+ return this.each(un);
1247
+ }
1248
+ //#endregion
1249
+ //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/clone.js
1250
+ function fn() {
1251
+ var e = this.cloneNode(!1), t = this.parentNode;
1252
+ return t ? t.insertBefore(e, this.nextSibling) : e;
1253
+ }
1254
+ function pn() {
1255
+ var e = this.cloneNode(!0), t = this.parentNode;
1256
+ return t ? t.insertBefore(e, this.nextSibling) : e;
1257
+ }
1258
+ function mn(e) {
1259
+ return this.select(e ? pn : fn);
1260
+ }
1261
+ //#endregion
1262
+ //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/datum.js
1263
+ function hn(e) {
1264
+ return arguments.length ? this.property("__data__", e) : this.node().__data__;
1265
+ }
1266
+ //#endregion
1267
+ //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/on.js
1268
+ function gn(e) {
1269
+ return function(t) {
1270
+ e.call(this, t, this.__data__);
1271
+ };
1272
+ }
1273
+ function _n(e) {
1274
+ return e.trim().split(/^|\s+/).map(function(e) {
1275
+ var t = "", n = e.indexOf(".");
1276
+ return n >= 0 && (t = e.slice(n + 1), e = e.slice(0, n)), {
1277
+ type: e,
1278
+ name: t
1279
+ };
1280
+ });
1281
+ }
1282
+ function vn(e) {
1283
+ return function() {
1284
+ var t = this.__on;
1285
+ if (t) {
1286
+ for (var n = 0, r = -1, i = t.length, a; n < i; ++n) a = t[n], (!e.type || a.type === e.type) && a.name === e.name ? this.removeEventListener(a.type, a.listener, a.options) : t[++r] = a;
1287
+ ++r ? t.length = r : delete this.__on;
1288
+ }
1289
+ };
1290
+ }
1291
+ function yn(e, t, n) {
1292
+ return function() {
1293
+ var r = this.__on, i, a = gn(t);
1294
+ if (r) {
1295
+ for (var o = 0, s = r.length; o < s; ++o) if ((i = r[o]).type === e.type && i.name === e.name) {
1296
+ this.removeEventListener(i.type, i.listener, i.options), this.addEventListener(i.type, i.listener = a, i.options = n), i.value = t;
1297
+ return;
1298
+ }
1299
+ }
1300
+ this.addEventListener(e.type, a, n), i = {
1301
+ type: e.type,
1302
+ name: e.name,
1303
+ value: t,
1304
+ listener: a,
1305
+ options: n
1306
+ }, r ? r.push(i) : this.__on = [i];
1307
+ };
1308
+ }
1309
+ function bn(e, t, n) {
1310
+ var r = _n(e + ""), i, a = r.length, o;
1311
+ if (arguments.length < 2) {
1312
+ var s = this.node().__on;
1313
+ if (s) {
1314
+ for (var c = 0, l = s.length, u; c < l; ++c) for (i = 0, u = s[c]; i < a; ++i) if ((o = r[i]).type === u.type && o.name === u.name) return u.value;
1315
+ }
1316
+ return;
1317
+ }
1318
+ for (s = t ? yn : vn, i = 0; i < a; ++i) this.each(s(r[i], t, n));
1319
+ return this;
1320
+ }
1321
+ //#endregion
1322
+ //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/dispatch.js
1323
+ function xn(e, t, n) {
1324
+ var r = At(e), i = r.CustomEvent;
1325
+ typeof i == "function" ? i = new i(t, n) : (i = r.document.createEvent("Event"), n ? (i.initEvent(t, n.bubbles, n.cancelable), i.detail = n.detail) : i.initEvent(t, !1, !1)), e.dispatchEvent(i);
1326
+ }
1327
+ function Sn(e, t) {
1328
+ return function() {
1329
+ return xn(this, e, t);
1330
+ };
1331
+ }
1332
+ function Cn(e, t) {
1333
+ return function() {
1334
+ return xn(this, e, t.apply(this, arguments));
1335
+ };
1336
+ }
1337
+ function wn(e, t) {
1338
+ return this.each((typeof t == "function" ? Cn : Sn)(e, t));
1339
+ }
1340
+ //#endregion
1341
+ //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/iterator.js
1342
+ function* Tn() {
1343
+ for (var e = this._groups, t = 0, n = e.length; t < n; ++t) for (var r = e[t], i = 0, a = r.length, o; i < a; ++i) (o = r[i]) && (yield o);
1344
+ }
1345
+ //#endregion
1346
+ //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/index.js
1347
+ var En = [null];
1348
+ function T(e, t) {
1349
+ this._groups = e, this._parents = t;
1350
+ }
1351
+ function E() {
1352
+ return new T([[document.documentElement]], En);
1353
+ }
1354
+ function Dn() {
1355
+ return this;
1356
+ }
1357
+ T.prototype = E.prototype = {
1358
+ constructor: T,
1359
+ select: ze,
1360
+ selectAll: We,
1361
+ selectChild: Xe,
1362
+ selectChildren: et,
1363
+ filter: tt,
1364
+ data: lt,
1365
+ enter: rt,
1366
+ exit: dt,
1367
+ join: ft,
1368
+ merge: pt,
1369
+ selection: Dn,
1370
+ order: mt,
1371
+ sort: ht,
1372
+ call: _t,
1373
+ nodes: vt,
1374
+ node: yt,
1375
+ size: bt,
1376
+ empty: xt,
1377
+ each: St,
1378
+ attr: kt,
1379
+ style: Pt,
1380
+ property: Rt,
1381
+ classed: qt,
1382
+ text: Zt,
1383
+ html: tn,
1384
+ raise: rn,
1385
+ lower: on,
1386
+ append: sn,
1387
+ insert: ln,
1388
+ remove: dn,
1389
+ clone: mn,
1390
+ datum: hn,
1391
+ on: bn,
1392
+ dispatch: wn,
1393
+ [Symbol.iterator]: Tn
1394
+ };
1395
+ //#endregion
1396
+ //#region ../../node_modules/.pnpm/d3-color@3.1.0/node_modules/d3-color/src/define.js
1397
+ function On(e, t, n) {
1398
+ e.prototype = t.prototype = n, n.constructor = e;
1399
+ }
1400
+ function kn(e, t) {
1401
+ var n = Object.create(e.prototype);
1402
+ for (var r in t) n[r] = t[r];
1403
+ return n;
1404
+ }
1405
+ //#endregion
1406
+ //#region ../../node_modules/.pnpm/d3-color@3.1.0/node_modules/d3-color/src/color.js
1407
+ function D() {}
1408
+ var O = .7, An = 1 / O, k = "\\s*([+-]?\\d+)\\s*", A = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", j = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", jn = /^#([0-9a-f]{3,8})$/, Mn = RegExp(`^rgb\\(${k},${k},${k}\\)$`), Nn = RegExp(`^rgb\\(${j},${j},${j}\\)$`), Pn = RegExp(`^rgba\\(${k},${k},${k},${A}\\)$`), Fn = RegExp(`^rgba\\(${j},${j},${j},${A}\\)$`), In = RegExp(`^hsl\\(${A},${j},${j}\\)$`), Ln = RegExp(`^hsla\\(${A},${j},${j},${A}\\)$`), Rn = {
1409
+ aliceblue: 15792383,
1410
+ antiquewhite: 16444375,
1411
+ aqua: 65535,
1412
+ aquamarine: 8388564,
1413
+ azure: 15794175,
1414
+ beige: 16119260,
1415
+ bisque: 16770244,
1416
+ black: 0,
1417
+ blanchedalmond: 16772045,
1418
+ blue: 255,
1419
+ blueviolet: 9055202,
1420
+ brown: 10824234,
1421
+ burlywood: 14596231,
1422
+ cadetblue: 6266528,
1423
+ chartreuse: 8388352,
1424
+ chocolate: 13789470,
1425
+ coral: 16744272,
1426
+ cornflowerblue: 6591981,
1427
+ cornsilk: 16775388,
1428
+ crimson: 14423100,
1429
+ cyan: 65535,
1430
+ darkblue: 139,
1431
+ darkcyan: 35723,
1432
+ darkgoldenrod: 12092939,
1433
+ darkgray: 11119017,
1434
+ darkgreen: 25600,
1435
+ darkgrey: 11119017,
1436
+ darkkhaki: 12433259,
1437
+ darkmagenta: 9109643,
1438
+ darkolivegreen: 5597999,
1439
+ darkorange: 16747520,
1440
+ darkorchid: 10040012,
1441
+ darkred: 9109504,
1442
+ darksalmon: 15308410,
1443
+ darkseagreen: 9419919,
1444
+ darkslateblue: 4734347,
1445
+ darkslategray: 3100495,
1446
+ darkslategrey: 3100495,
1447
+ darkturquoise: 52945,
1448
+ darkviolet: 9699539,
1449
+ deeppink: 16716947,
1450
+ deepskyblue: 49151,
1451
+ dimgray: 6908265,
1452
+ dimgrey: 6908265,
1453
+ dodgerblue: 2003199,
1454
+ firebrick: 11674146,
1455
+ floralwhite: 16775920,
1456
+ forestgreen: 2263842,
1457
+ fuchsia: 16711935,
1458
+ gainsboro: 14474460,
1459
+ ghostwhite: 16316671,
1460
+ gold: 16766720,
1461
+ goldenrod: 14329120,
1462
+ gray: 8421504,
1463
+ green: 32768,
1464
+ greenyellow: 11403055,
1465
+ grey: 8421504,
1466
+ honeydew: 15794160,
1467
+ hotpink: 16738740,
1468
+ indianred: 13458524,
1469
+ indigo: 4915330,
1470
+ ivory: 16777200,
1471
+ khaki: 15787660,
1472
+ lavender: 15132410,
1473
+ lavenderblush: 16773365,
1474
+ lawngreen: 8190976,
1475
+ lemonchiffon: 16775885,
1476
+ lightblue: 11393254,
1477
+ lightcoral: 15761536,
1478
+ lightcyan: 14745599,
1479
+ lightgoldenrodyellow: 16448210,
1480
+ lightgray: 13882323,
1481
+ lightgreen: 9498256,
1482
+ lightgrey: 13882323,
1483
+ lightpink: 16758465,
1484
+ lightsalmon: 16752762,
1485
+ lightseagreen: 2142890,
1486
+ lightskyblue: 8900346,
1487
+ lightslategray: 7833753,
1488
+ lightslategrey: 7833753,
1489
+ lightsteelblue: 11584734,
1490
+ lightyellow: 16777184,
1491
+ lime: 65280,
1492
+ limegreen: 3329330,
1493
+ linen: 16445670,
1494
+ magenta: 16711935,
1495
+ maroon: 8388608,
1496
+ mediumaquamarine: 6737322,
1497
+ mediumblue: 205,
1498
+ mediumorchid: 12211667,
1499
+ mediumpurple: 9662683,
1500
+ mediumseagreen: 3978097,
1501
+ mediumslateblue: 8087790,
1502
+ mediumspringgreen: 64154,
1503
+ mediumturquoise: 4772300,
1504
+ mediumvioletred: 13047173,
1505
+ midnightblue: 1644912,
1506
+ mintcream: 16121850,
1507
+ mistyrose: 16770273,
1508
+ moccasin: 16770229,
1509
+ navajowhite: 16768685,
1510
+ navy: 128,
1511
+ oldlace: 16643558,
1512
+ olive: 8421376,
1513
+ olivedrab: 7048739,
1514
+ orange: 16753920,
1515
+ orangered: 16729344,
1516
+ orchid: 14315734,
1517
+ palegoldenrod: 15657130,
1518
+ palegreen: 10025880,
1519
+ paleturquoise: 11529966,
1520
+ palevioletred: 14381203,
1521
+ papayawhip: 16773077,
1522
+ peachpuff: 16767673,
1523
+ peru: 13468991,
1524
+ pink: 16761035,
1525
+ plum: 14524637,
1526
+ powderblue: 11591910,
1527
+ purple: 8388736,
1528
+ rebeccapurple: 6697881,
1529
+ red: 16711680,
1530
+ rosybrown: 12357519,
1531
+ royalblue: 4286945,
1532
+ saddlebrown: 9127187,
1533
+ salmon: 16416882,
1534
+ sandybrown: 16032864,
1535
+ seagreen: 3050327,
1536
+ seashell: 16774638,
1537
+ sienna: 10506797,
1538
+ silver: 12632256,
1539
+ skyblue: 8900331,
1540
+ slateblue: 6970061,
1541
+ slategray: 7372944,
1542
+ slategrey: 7372944,
1543
+ snow: 16775930,
1544
+ springgreen: 65407,
1545
+ steelblue: 4620980,
1546
+ tan: 13808780,
1547
+ teal: 32896,
1548
+ thistle: 14204888,
1549
+ tomato: 16737095,
1550
+ turquoise: 4251856,
1551
+ violet: 15631086,
1552
+ wheat: 16113331,
1553
+ white: 16777215,
1554
+ whitesmoke: 16119285,
1555
+ yellow: 16776960,
1556
+ yellowgreen: 10145074
1557
+ };
1558
+ On(D, M, {
1559
+ copy(e) {
1560
+ return Object.assign(new this.constructor(), this, e);
1561
+ },
1562
+ displayable() {
1563
+ return this.rgb().displayable();
1564
+ },
1565
+ hex: zn,
1566
+ formatHex: zn,
1567
+ formatHex8: Bn,
1568
+ formatHsl: Vn,
1569
+ formatRgb: Hn,
1570
+ toString: Hn
1571
+ });
1572
+ function zn() {
1573
+ return this.rgb().formatHex();
1574
+ }
1575
+ function Bn() {
1576
+ return this.rgb().formatHex8();
1577
+ }
1578
+ function Vn() {
1579
+ return Zn(this).formatHsl();
1580
+ }
1581
+ function Hn() {
1582
+ return this.rgb().formatRgb();
1583
+ }
1584
+ function M(e) {
1585
+ var t, n;
1586
+ return e = (e + "").trim().toLowerCase(), (t = jn.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? Un(t) : n === 3 ? new N(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? Wn(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? Wn(t >> 12 & 15 | t >> 8 & 240, t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, ((t & 15) << 4 | t & 15) / 255) : null) : (t = Mn.exec(e)) ? new N(t[1], t[2], t[3], 1) : (t = Nn.exec(e)) ? new N(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = Pn.exec(e)) ? Wn(t[1], t[2], t[3], t[4]) : (t = Fn.exec(e)) ? Wn(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = In.exec(e)) ? Xn(t[1], t[2] / 100, t[3] / 100, 1) : (t = Ln.exec(e)) ? Xn(t[1], t[2] / 100, t[3] / 100, t[4]) : Rn.hasOwnProperty(e) ? Un(Rn[e]) : e === "transparent" ? new N(NaN, NaN, NaN, 0) : null;
1587
+ }
1588
+ function Un(e) {
1589
+ return new N(e >> 16 & 255, e >> 8 & 255, e & 255, 1);
1590
+ }
1591
+ function Wn(e, t, n, r) {
1592
+ return r <= 0 && (e = t = n = NaN), new N(e, t, n, r);
1593
+ }
1594
+ function Gn(e) {
1595
+ return e instanceof D || (e = M(e)), e ? (e = e.rgb(), new N(e.r, e.g, e.b, e.opacity)) : new N();
1596
+ }
1597
+ function Kn(e, t, n, r) {
1598
+ return arguments.length === 1 ? Gn(e) : new N(e, t, n, r ?? 1);
1599
+ }
1600
+ function N(e, t, n, r) {
1601
+ this.r = +e, this.g = +t, this.b = +n, this.opacity = +r;
1602
+ }
1603
+ On(N, Kn, kn(D, {
1604
+ brighter(e) {
1605
+ return e = e == null ? An : An ** +e, new N(this.r * e, this.g * e, this.b * e, this.opacity);
1606
+ },
1607
+ darker(e) {
1608
+ return e = e == null ? O : O ** +e, new N(this.r * e, this.g * e, this.b * e, this.opacity);
1609
+ },
1610
+ rgb() {
1611
+ return this;
1612
+ },
1613
+ clamp() {
1614
+ return new N(F(this.r), F(this.g), F(this.b), P(this.opacity));
1615
+ },
1616
+ displayable() {
1617
+ return -.5 <= this.r && this.r < 255.5 && -.5 <= this.g && this.g < 255.5 && -.5 <= this.b && this.b < 255.5 && 0 <= this.opacity && this.opacity <= 1;
1618
+ },
1619
+ hex: qn,
1620
+ formatHex: qn,
1621
+ formatHex8: Jn,
1622
+ formatRgb: Yn,
1623
+ toString: Yn
1624
+ }));
1625
+ function qn() {
1626
+ return `#${I(this.r)}${I(this.g)}${I(this.b)}`;
1627
+ }
1628
+ function Jn() {
1629
+ return `#${I(this.r)}${I(this.g)}${I(this.b)}${I((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
1630
+ }
1631
+ function Yn() {
1632
+ let e = P(this.opacity);
1633
+ return `${e === 1 ? "rgb(" : "rgba("}${F(this.r)}, ${F(this.g)}, ${F(this.b)}${e === 1 ? ")" : `, ${e})`}`;
1634
+ }
1635
+ function P(e) {
1636
+ return isNaN(e) ? 1 : Math.max(0, Math.min(1, e));
1637
+ }
1638
+ function F(e) {
1639
+ return Math.max(0, Math.min(255, Math.round(e) || 0));
1640
+ }
1641
+ function I(e) {
1642
+ return e = F(e), (e < 16 ? "0" : "") + e.toString(16);
1643
+ }
1644
+ function Xn(e, t, n, r) {
1645
+ return r <= 0 ? e = t = n = NaN : n <= 0 || n >= 1 ? e = t = NaN : t <= 0 && (e = NaN), new L(e, t, n, r);
1646
+ }
1647
+ function Zn(e) {
1648
+ if (e instanceof L) return new L(e.h, e.s, e.l, e.opacity);
1649
+ if (e instanceof D || (e = M(e)), !e) return new L();
1650
+ if (e instanceof L) return e;
1651
+ e = e.rgb();
1652
+ var t = e.r / 255, n = e.g / 255, r = e.b / 255, i = Math.min(t, n, r), a = Math.max(t, n, r), o = NaN, s = a - i, c = (a + i) / 2;
1653
+ return s ? (o = t === a ? (n - r) / s + (n < r) * 6 : n === a ? (r - t) / s + 2 : (t - n) / s + 4, s /= c < .5 ? a + i : 2 - a - i, o *= 60) : s = c > 0 && c < 1 ? 0 : o, new L(o, s, c, e.opacity);
1654
+ }
1655
+ function Qn(e, t, n, r) {
1656
+ return arguments.length === 1 ? Zn(e) : new L(e, t, n, r ?? 1);
1657
+ }
1658
+ function L(e, t, n, r) {
1659
+ this.h = +e, this.s = +t, this.l = +n, this.opacity = +r;
1660
+ }
1661
+ On(L, Qn, kn(D, {
1662
+ brighter(e) {
1663
+ return e = e == null ? An : An ** +e, new L(this.h, this.s, this.l * e, this.opacity);
1664
+ },
1665
+ darker(e) {
1666
+ return e = e == null ? O : O ** +e, new L(this.h, this.s, this.l * e, this.opacity);
1667
+ },
1668
+ rgb() {
1669
+ var e = this.h % 360 + (this.h < 0) * 360, t = isNaN(e) || isNaN(this.s) ? 0 : this.s, n = this.l, r = n + (n < .5 ? n : 1 - n) * t, i = 2 * n - r;
1670
+ return new N(er(e >= 240 ? e - 240 : e + 120, i, r), er(e, i, r), er(e < 120 ? e + 240 : e - 120, i, r), this.opacity);
1671
+ },
1672
+ clamp() {
1673
+ return new L($n(this.h), R(this.s), R(this.l), P(this.opacity));
1674
+ },
1675
+ displayable() {
1676
+ return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1;
1677
+ },
1678
+ formatHsl() {
1679
+ let e = P(this.opacity);
1680
+ return `${e === 1 ? "hsl(" : "hsla("}${$n(this.h)}, ${R(this.s) * 100}%, ${R(this.l) * 100}%${e === 1 ? ")" : `, ${e})`}`;
1681
+ }
1682
+ }));
1683
+ function $n(e) {
1684
+ return e = (e || 0) % 360, e < 0 ? e + 360 : e;
1685
+ }
1686
+ function R(e) {
1687
+ return Math.max(0, Math.min(1, e || 0));
1688
+ }
1689
+ function er(e, t, n) {
1690
+ return (e < 60 ? t + (n - t) * e / 60 : e < 180 ? n : e < 240 ? t + (n - t) * (240 - e) / 60 : t) * 255;
1691
+ }
1692
+ //#endregion
1693
+ //#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/constant.js
1694
+ var tr = (e) => () => e;
1695
+ //#endregion
1696
+ //#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/color.js
1697
+ function nr(e, t) {
1698
+ return function(n) {
1699
+ return e + n * t;
1700
+ };
1701
+ }
1702
+ function rr(e, t, n) {
1703
+ return e **= +n, t = t ** +n - e, n = 1 / n, function(r) {
1704
+ return (e + r * t) ** +n;
1705
+ };
1706
+ }
1707
+ function ir(e) {
1708
+ return (e = +e) == 1 ? ar : function(t, n) {
1709
+ return n - t ? rr(t, n, e) : tr(isNaN(t) ? n : t);
1710
+ };
1711
+ }
1712
+ function ar(e, t) {
1713
+ var n = t - e;
1714
+ return n ? nr(e, n) : tr(isNaN(e) ? t : e);
1715
+ }
1716
+ //#endregion
1717
+ //#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/rgb.js
1718
+ var z = (function e(t) {
1719
+ var n = ir(t);
1720
+ function r(e, t) {
1721
+ var r = n((e = Kn(e)).r, (t = Kn(t)).r), i = n(e.g, t.g), a = n(e.b, t.b), o = ar(e.opacity, t.opacity);
1722
+ return function(t) {
1723
+ return e.r = r(t), e.g = i(t), e.b = a(t), e.opacity = o(t), e + "";
1724
+ };
1725
+ }
1726
+ return r.gamma = e, r;
1727
+ })(1);
1728
+ //#endregion
1729
+ //#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/numberArray.js
1730
+ function or(e, t) {
1731
+ t ||= [];
1732
+ var n = e ? Math.min(t.length, e.length) : 0, r = t.slice(), i;
1733
+ return function(a) {
1734
+ for (i = 0; i < n; ++i) r[i] = e[i] * (1 - a) + t[i] * a;
1735
+ return r;
1736
+ };
1737
+ }
1738
+ function sr(e) {
1739
+ return ArrayBuffer.isView(e) && !(e instanceof DataView);
1740
+ }
1741
+ //#endregion
1742
+ //#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/array.js
1743
+ function cr(e, t) {
1744
+ var n = t ? t.length : 0, r = e ? Math.min(n, e.length) : 0, i = Array(r), a = Array(n), o;
1745
+ for (o = 0; o < r; ++o) i[o] = V(e[o], t[o]);
1746
+ for (; o < n; ++o) a[o] = t[o];
1747
+ return function(e) {
1748
+ for (o = 0; o < r; ++o) a[o] = i[o](e);
1749
+ return a;
1750
+ };
1751
+ }
1752
+ //#endregion
1753
+ //#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/date.js
1754
+ function lr(e, t) {
1755
+ var n = /* @__PURE__ */ new Date();
1756
+ return e = +e, t = +t, function(r) {
1757
+ return n.setTime(e * (1 - r) + t * r), n;
1758
+ };
1759
+ }
1760
+ //#endregion
1761
+ //#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/number.js
1762
+ function B(e, t) {
1763
+ return e = +e, t = +t, function(n) {
1764
+ return e * (1 - n) + t * n;
1765
+ };
1766
+ }
1767
+ //#endregion
1768
+ //#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/object.js
1769
+ function ur(e, t) {
1770
+ var n = {}, r = {}, i;
1771
+ for (i in (typeof e != "object" || !e) && (e = {}), (typeof t != "object" || !t) && (t = {}), t) i in e ? n[i] = V(e[i], t[i]) : r[i] = t[i];
1772
+ return function(e) {
1773
+ for (i in n) r[i] = n[i](e);
1774
+ return r;
1775
+ };
1776
+ }
1777
+ //#endregion
1778
+ //#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/string.js
1779
+ var dr = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, fr = new RegExp(dr.source, "g");
1780
+ function pr(e) {
1781
+ return function() {
1782
+ return e;
1783
+ };
1784
+ }
1785
+ function mr(e) {
1786
+ return function(t) {
1787
+ return e(t) + "";
1788
+ };
1789
+ }
1790
+ function hr(e, t) {
1791
+ var n = dr.lastIndex = fr.lastIndex = 0, r, i, a, o = -1, s = [], c = [];
1792
+ for (e += "", t += ""; (r = dr.exec(e)) && (i = fr.exec(t));) (a = i.index) > n && (a = t.slice(n, a), s[o] ? s[o] += a : s[++o] = a), (r = r[0]) === (i = i[0]) ? s[o] ? s[o] += i : s[++o] = i : (s[++o] = null, c.push({
1793
+ i: o,
1794
+ x: B(r, i)
1795
+ })), n = fr.lastIndex;
1796
+ return n < t.length && (a = t.slice(n), s[o] ? s[o] += a : s[++o] = a), s.length < 2 ? c[0] ? mr(c[0].x) : pr(t) : (t = c.length, function(e) {
1797
+ for (var n = 0, r; n < t; ++n) s[(r = c[n]).i] = r.x(e);
1798
+ return s.join("");
1799
+ });
1800
+ }
1801
+ //#endregion
1802
+ //#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/value.js
1803
+ function V(e, t) {
1804
+ var n = typeof t, r;
1805
+ return t == null || n === "boolean" ? tr(t) : (n === "number" ? B : n === "string" ? (r = M(t)) ? (t = r, z) : hr : t instanceof M ? z : t instanceof Date ? lr : sr(t) ? or : Array.isArray(t) ? cr : typeof t.valueOf != "function" && typeof t.toString != "function" || isNaN(t) ? ur : B)(e, t);
1806
+ }
1807
+ //#endregion
1808
+ //#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/round.js
1809
+ function gr(e, t) {
1810
+ return e = +e, t = +t, function(n) {
1811
+ return Math.round(e * (1 - n) + t * n);
1812
+ };
1813
+ }
1814
+ //#endregion
1815
+ //#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/transform/decompose.js
1816
+ var _r = 180 / Math.PI, vr = {
1817
+ translateX: 0,
1818
+ translateY: 0,
1819
+ rotate: 0,
1820
+ skewX: 0,
1821
+ scaleX: 1,
1822
+ scaleY: 1
1823
+ };
1824
+ function yr(e, t, n, r, i, a) {
1825
+ var o, s, c;
1826
+ return (o = Math.sqrt(e * e + t * t)) && (e /= o, t /= o), (c = e * n + t * r) && (n -= e * c, r -= t * c), (s = Math.sqrt(n * n + r * r)) && (n /= s, r /= s, c /= s), e * r < t * n && (e = -e, t = -t, c = -c, o = -o), {
1827
+ translateX: i,
1828
+ translateY: a,
1829
+ rotate: Math.atan2(t, e) * _r,
1830
+ skewX: Math.atan(c) * _r,
1831
+ scaleX: o,
1832
+ scaleY: s
1833
+ };
1834
+ }
1835
+ //#endregion
1836
+ //#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/transform/parse.js
1837
+ var br;
1838
+ function xr(e) {
1839
+ let t = new (typeof DOMMatrix == "function" ? DOMMatrix : WebKitCSSMatrix)(e + "");
1840
+ return t.isIdentity ? vr : yr(t.a, t.b, t.c, t.d, t.e, t.f);
1841
+ }
1842
+ function Sr(e) {
1843
+ return e == null || (br ||= document.createElementNS("http://www.w3.org/2000/svg", "g"), br.setAttribute("transform", e), !(e = br.transform.baseVal.consolidate())) ? vr : (e = e.matrix, yr(e.a, e.b, e.c, e.d, e.e, e.f));
1844
+ }
1845
+ //#endregion
1846
+ //#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/transform/index.js
1847
+ function Cr(e, t, n, r) {
1848
+ function i(e) {
1849
+ return e.length ? e.pop() + " " : "";
1850
+ }
1851
+ function a(e, r, i, a, o, s) {
1852
+ if (e !== i || r !== a) {
1853
+ var c = o.push("translate(", null, t, null, n);
1854
+ s.push({
1855
+ i: c - 4,
1856
+ x: B(e, i)
1857
+ }, {
1858
+ i: c - 2,
1859
+ x: B(r, a)
1860
+ });
1861
+ } else (i || a) && o.push("translate(" + i + t + a + n);
1862
+ }
1863
+ function o(e, t, n, a) {
1864
+ e === t ? t && n.push(i(n) + "rotate(" + t + r) : (e - t > 180 ? t += 360 : t - e > 180 && (e += 360), a.push({
1865
+ i: n.push(i(n) + "rotate(", null, r) - 2,
1866
+ x: B(e, t)
1867
+ }));
1868
+ }
1869
+ function s(e, t, n, a) {
1870
+ e === t ? t && n.push(i(n) + "skewX(" + t + r) : a.push({
1871
+ i: n.push(i(n) + "skewX(", null, r) - 2,
1872
+ x: B(e, t)
1873
+ });
1874
+ }
1875
+ function c(e, t, n, r, a, o) {
1876
+ if (e !== n || t !== r) {
1877
+ var s = a.push(i(a) + "scale(", null, ",", null, ")");
1878
+ o.push({
1879
+ i: s - 4,
1880
+ x: B(e, n)
1881
+ }, {
1882
+ i: s - 2,
1883
+ x: B(t, r)
1884
+ });
1885
+ } else (n !== 1 || r !== 1) && a.push(i(a) + "scale(" + n + "," + r + ")");
1886
+ }
1887
+ return function(t, n) {
1888
+ var r = [], i = [];
1889
+ return t = e(t), n = e(n), a(t.translateX, t.translateY, n.translateX, n.translateY, r, i), o(t.rotate, n.rotate, r, i), s(t.skewX, n.skewX, r, i), c(t.scaleX, t.scaleY, n.scaleX, n.scaleY, r, i), t = n = null, function(e) {
1890
+ for (var t = -1, n = i.length, a; ++t < n;) r[(a = i[t]).i] = a.x(e);
1891
+ return r.join("");
1892
+ };
1893
+ };
1894
+ }
1895
+ var wr = Cr(xr, "px, ", "px)", "deg)"), Tr = Cr(Sr, ", ", ")", ")");
1896
+ //#endregion
1897
+ //#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/quantize.js
1898
+ function Er(e, t) {
1899
+ for (var n = Array(t), r = 0; r < t; ++r) n[r] = e(r / (t - 1));
1900
+ return n;
1901
+ }
1902
+ //#endregion
1903
+ //#region ../../node_modules/.pnpm/d3-timer@3.0.1/node_modules/d3-timer/src/timer.js
1904
+ var H = 0, Dr = 0, Or = 0, kr = 1e3, Ar, U, jr = 0, W = 0, Mr = 0, G = typeof performance == "object" && performance.now ? performance : Date, Nr = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(e) {
1905
+ setTimeout(e, 17);
1906
+ };
1907
+ function Pr() {
1908
+ return W ||= (Nr(Fr), G.now() + Mr);
1909
+ }
1910
+ function Fr() {
1911
+ W = 0;
1912
+ }
1913
+ function Ir() {
1914
+ this._call = this._time = this._next = null;
1915
+ }
1916
+ Ir.prototype = Lr.prototype = {
1917
+ constructor: Ir,
1918
+ restart: function(e, t, n) {
1919
+ if (typeof e != "function") throw TypeError("callback is not a function");
1920
+ n = (n == null ? Pr() : +n) + (t == null ? 0 : +t), !this._next && U !== this && (U ? U._next = this : Ar = this, U = this), this._call = e, this._time = n, Hr();
1921
+ },
1922
+ stop: function() {
1923
+ this._call && (this._call = null, this._time = Infinity, Hr());
1924
+ }
1925
+ };
1926
+ function Lr(e, t, n) {
1927
+ var r = new Ir();
1928
+ return r.restart(e, t, n), r;
1929
+ }
1930
+ function Rr() {
1931
+ Pr(), ++H;
1932
+ for (var e = Ar, t; e;) (t = W - e._time) >= 0 && e._call.call(void 0, t), e = e._next;
1933
+ --H;
1934
+ }
1935
+ function zr() {
1936
+ W = (jr = G.now()) + Mr, H = Dr = 0;
1937
+ try {
1938
+ Rr();
1939
+ } finally {
1940
+ H = 0, Vr(), W = 0;
1941
+ }
1942
+ }
1943
+ function Br() {
1944
+ var e = G.now(), t = e - jr;
1945
+ t > kr && (Mr -= t, jr = e);
1946
+ }
1947
+ function Vr() {
1948
+ for (var e, t = Ar, n, r = Infinity; t;) t._call ? (r > t._time && (r = t._time), e = t, t = t._next) : (n = t._next, t._next = null, t = e ? e._next = n : Ar = n);
1949
+ U = e, Hr(r);
1950
+ }
1951
+ function Hr(e) {
1952
+ H || (Dr &&= clearTimeout(Dr), e - W > 24 ? (e < Infinity && (Dr = setTimeout(zr, e - G.now() - Mr)), Or &&= clearInterval(Or)) : (Or ||= (jr = G.now(), setInterval(Br, kr)), H = 1, Nr(zr)));
1953
+ }
1954
+ //#endregion
1955
+ //#region ../../node_modules/.pnpm/d3-timer@3.0.1/node_modules/d3-timer/src/timeout.js
1956
+ function Ur(e, t, n) {
1957
+ var r = new Ir();
1958
+ return t = t == null ? 0 : +t, r.restart((n) => {
1959
+ r.stop(), e(n + t);
1960
+ }, t, n), r;
1961
+ }
1962
+ //#endregion
1963
+ //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/schedule.js
1964
+ var Wr = De("start", "end", "cancel", "interrupt"), Gr = [];
1965
+ function Kr(e, t, n, r, i, a) {
1966
+ var o = e.__transition;
1967
+ if (!o) e.__transition = {};
1968
+ else if (n in o) return;
1969
+ Jr(e, n, {
1970
+ name: t,
1971
+ index: r,
1972
+ group: i,
1973
+ on: Wr,
1974
+ tween: Gr,
1975
+ time: a.time,
1976
+ delay: a.delay,
1977
+ duration: a.duration,
1978
+ ease: a.ease,
1979
+ timer: null,
1980
+ state: 0
1981
+ });
1982
+ }
1983
+ function qr(e, t) {
1984
+ var n = q(e, t);
1985
+ if (n.state > 0) throw Error("too late; already scheduled");
1986
+ return n;
1987
+ }
1988
+ function K(e, t) {
1989
+ var n = q(e, t);
1990
+ if (n.state > 3) throw Error("too late; already running");
1991
+ return n;
1992
+ }
1993
+ function q(e, t) {
1994
+ var n = e.__transition;
1995
+ if (!n || !(n = n[t])) throw Error("transition not found");
1996
+ return n;
1997
+ }
1998
+ function Jr(e, t, n) {
1999
+ var r = e.__transition, i;
2000
+ r[t] = n, n.timer = Lr(a, 0, n.time);
2001
+ function a(e) {
2002
+ n.state = 1, n.timer.restart(o, n.delay, n.time), n.delay <= e && o(e - n.delay);
2003
+ }
2004
+ function o(a) {
2005
+ var l, u, d, f;
2006
+ if (n.state !== 1) return c();
2007
+ for (l in r) if (f = r[l], f.name === n.name) {
2008
+ if (f.state === 3) return Ur(o);
2009
+ f.state === 4 ? (f.state = 6, f.timer.stop(), f.on.call("interrupt", e, e.__data__, f.index, f.group), delete r[l]) : +l < t && (f.state = 6, f.timer.stop(), f.on.call("cancel", e, e.__data__, f.index, f.group), delete r[l]);
2010
+ }
2011
+ if (Ur(function() {
2012
+ n.state === 3 && (n.state = 4, n.timer.restart(s, n.delay, n.time), s(a));
2013
+ }), n.state = 2, n.on.call("start", e, e.__data__, n.index, n.group), n.state === 2) {
2014
+ for (n.state = 3, i = Array(d = n.tween.length), l = 0, u = -1; l < d; ++l) (f = n.tween[l].value.call(e, e.__data__, n.index, n.group)) && (i[++u] = f);
2015
+ i.length = u + 1;
2016
+ }
2017
+ }
2018
+ function s(t) {
2019
+ for (var r = t < n.duration ? n.ease.call(null, t / n.duration) : (n.timer.restart(c), n.state = 5, 1), a = -1, o = i.length; ++a < o;) i[a].call(e, r);
2020
+ n.state === 5 && (n.on.call("end", e, e.__data__, n.index, n.group), c());
2021
+ }
2022
+ function c() {
2023
+ for (var i in n.state = 6, n.timer.stop(), delete r[t], r) return;
2024
+ delete e.__transition;
2025
+ }
2026
+ }
2027
+ //#endregion
2028
+ //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/interrupt.js
2029
+ function Yr(e, t) {
2030
+ var n = e.__transition, r, i, a = !0, o;
2031
+ if (n) {
2032
+ for (o in t = t == null ? null : t + "", n) {
2033
+ if ((r = n[o]).name !== t) {
2034
+ a = !1;
2035
+ continue;
2036
+ }
2037
+ i = r.state > 2 && r.state < 5, r.state = 6, r.timer.stop(), r.on.call(i ? "interrupt" : "cancel", e, e.__data__, r.index, r.group), delete n[o];
2038
+ }
2039
+ a && delete e.__transition;
2040
+ }
2041
+ }
2042
+ //#endregion
2043
+ //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/selection/interrupt.js
2044
+ function Xr(e) {
2045
+ return this.each(function() {
2046
+ Yr(this, e);
2047
+ });
2048
+ }
2049
+ //#endregion
2050
+ //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/tween.js
2051
+ function Zr(e, t) {
2052
+ var n, r;
2053
+ return function() {
2054
+ var i = K(this, e), a = i.tween;
2055
+ if (a !== n) {
2056
+ r = n = a;
2057
+ for (var o = 0, s = r.length; o < s; ++o) if (r[o].name === t) {
2058
+ r = r.slice(), r.splice(o, 1);
2059
+ break;
2060
+ }
2061
+ }
2062
+ i.tween = r;
2063
+ };
2064
+ }
2065
+ function Qr(e, t, n) {
2066
+ var r, i;
2067
+ if (typeof n != "function") throw Error();
2068
+ return function() {
2069
+ var a = K(this, e), o = a.tween;
2070
+ if (o !== r) {
2071
+ i = (r = o).slice();
2072
+ for (var s = {
2073
+ name: t,
2074
+ value: n
2075
+ }, c = 0, l = i.length; c < l; ++c) if (i[c].name === t) {
2076
+ i[c] = s;
2077
+ break;
2078
+ }
2079
+ c === l && i.push(s);
2080
+ }
2081
+ a.tween = i;
2082
+ };
2083
+ }
2084
+ function $r(e, t) {
2085
+ var n = this._id;
2086
+ if (e += "", arguments.length < 2) {
2087
+ for (var r = q(this.node(), n).tween, i = 0, a = r.length, o; i < a; ++i) if ((o = r[i]).name === e) return o.value;
2088
+ return null;
2089
+ }
2090
+ return this.each((t == null ? Zr : Qr)(n, e, t));
2091
+ }
2092
+ function ei(e, t, n) {
2093
+ var r = e._id;
2094
+ return e.each(function() {
2095
+ var e = K(this, r);
2096
+ (e.value ||= {})[t] = n.apply(this, arguments);
2097
+ }), function(e) {
2098
+ return q(e, r).value[t];
2099
+ };
2100
+ }
2101
+ //#endregion
2102
+ //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/interpolate.js
2103
+ function ti(e, t) {
2104
+ var n;
2105
+ return (typeof t == "number" ? B : t instanceof M ? z : (n = M(t)) ? (t = n, z) : hr)(e, t);
2106
+ }
2107
+ //#endregion
2108
+ //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/attr.js
2109
+ function ni(e) {
2110
+ return function() {
2111
+ this.removeAttribute(e);
2112
+ };
2113
+ }
2114
+ function ri(e) {
2115
+ return function() {
2116
+ this.removeAttributeNS(e.space, e.local);
2117
+ };
2118
+ }
2119
+ function ii(e, t, n) {
2120
+ var r, i = n + "", a;
2121
+ return function() {
2122
+ var o = this.getAttribute(e);
2123
+ return o === i ? null : o === r ? a : a = t(r = o, n);
2124
+ };
2125
+ }
2126
+ function ai(e, t, n) {
2127
+ var r, i = n + "", a;
2128
+ return function() {
2129
+ var o = this.getAttributeNS(e.space, e.local);
2130
+ return o === i ? null : o === r ? a : a = t(r = o, n);
2131
+ };
2132
+ }
2133
+ function oi(e, t, n) {
2134
+ var r, i, a;
2135
+ return function() {
2136
+ var o, s = n(this), c;
2137
+ return s == null ? void this.removeAttribute(e) : (o = this.getAttribute(e), c = s + "", o === c ? null : o === r && c === i ? a : (i = c, a = t(r = o, s)));
2138
+ };
2139
+ }
2140
+ function si(e, t, n) {
2141
+ var r, i, a;
2142
+ return function() {
2143
+ var o, s = n(this), c;
2144
+ return s == null ? void this.removeAttributeNS(e.space, e.local) : (o = this.getAttributeNS(e.space, e.local), c = s + "", o === c ? null : o === r && c === i ? a : (i = c, a = t(r = o, s)));
2145
+ };
2146
+ }
2147
+ function ci(e, t) {
2148
+ var n = Ne(e), r = n === "transform" ? Tr : ti;
2149
+ return this.attrTween(e, typeof t == "function" ? (n.local ? si : oi)(n, r, ei(this, "attr." + e, t)) : t == null ? (n.local ? ri : ni)(n) : (n.local ? ai : ii)(n, r, t));
2150
+ }
2151
+ //#endregion
2152
+ //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/attrTween.js
2153
+ function li(e, t) {
2154
+ return function(n) {
2155
+ this.setAttribute(e, t.call(this, n));
2156
+ };
2157
+ }
2158
+ function ui(e, t) {
2159
+ return function(n) {
2160
+ this.setAttributeNS(e.space, e.local, t.call(this, n));
2161
+ };
2162
+ }
2163
+ function di(e, t) {
2164
+ var n, r;
2165
+ function i() {
2166
+ var i = t.apply(this, arguments);
2167
+ return i !== r && (n = (r = i) && ui(e, i)), n;
2168
+ }
2169
+ return i._value = t, i;
2170
+ }
2171
+ function fi(e, t) {
2172
+ var n, r;
2173
+ function i() {
2174
+ var i = t.apply(this, arguments);
2175
+ return i !== r && (n = (r = i) && li(e, i)), n;
2176
+ }
2177
+ return i._value = t, i;
2178
+ }
2179
+ function pi(e, t) {
2180
+ var n = "attr." + e;
2181
+ if (arguments.length < 2) return (n = this.tween(n)) && n._value;
2182
+ if (t == null) return this.tween(n, null);
2183
+ if (typeof t != "function") throw Error();
2184
+ var r = Ne(e);
2185
+ return this.tween(n, (r.local ? di : fi)(r, t));
2186
+ }
2187
+ //#endregion
2188
+ //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/delay.js
2189
+ function mi(e, t) {
2190
+ return function() {
2191
+ qr(this, e).delay = +t.apply(this, arguments);
2192
+ };
2193
+ }
2194
+ function hi(e, t) {
2195
+ return t = +t, function() {
2196
+ qr(this, e).delay = t;
2197
+ };
2198
+ }
2199
+ function gi(e) {
2200
+ var t = this._id;
2201
+ return arguments.length ? this.each((typeof e == "function" ? mi : hi)(t, e)) : q(this.node(), t).delay;
2202
+ }
2203
+ //#endregion
2204
+ //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/duration.js
2205
+ function _i(e, t) {
2206
+ return function() {
2207
+ K(this, e).duration = +t.apply(this, arguments);
2208
+ };
2209
+ }
2210
+ function vi(e, t) {
2211
+ return t = +t, function() {
2212
+ K(this, e).duration = t;
2213
+ };
2214
+ }
2215
+ function yi(e) {
2216
+ var t = this._id;
2217
+ return arguments.length ? this.each((typeof e == "function" ? _i : vi)(t, e)) : q(this.node(), t).duration;
2218
+ }
2219
+ //#endregion
2220
+ //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/ease.js
2221
+ function bi(e, t) {
2222
+ if (typeof t != "function") throw Error();
2223
+ return function() {
2224
+ K(this, e).ease = t;
2225
+ };
2226
+ }
2227
+ function xi(e) {
2228
+ var t = this._id;
2229
+ return arguments.length ? this.each(bi(t, e)) : q(this.node(), t).ease;
2230
+ }
2231
+ //#endregion
2232
+ //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/easeVarying.js
2233
+ function Si(e, t) {
2234
+ return function() {
2235
+ var n = t.apply(this, arguments);
2236
+ if (typeof n != "function") throw Error();
2237
+ K(this, e).ease = n;
2238
+ };
2239
+ }
2240
+ function Ci(e) {
2241
+ if (typeof e != "function") throw Error();
2242
+ return this.each(Si(this._id, e));
2243
+ }
2244
+ //#endregion
2245
+ //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/filter.js
2246
+ function wi(e) {
2247
+ typeof e != "function" && (e = Ge(e));
2248
+ for (var t = this._groups, n = t.length, r = Array(n), i = 0; i < n; ++i) for (var a = t[i], o = a.length, s = r[i] = [], c, l = 0; l < o; ++l) (c = a[l]) && e.call(c, c.__data__, l, a) && s.push(c);
2249
+ return new J(r, this._parents, this._name, this._id);
2250
+ }
2251
+ //#endregion
2252
+ //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/merge.js
2253
+ function Ti(e) {
2254
+ if (e._id !== this._id) throw Error();
2255
+ for (var t = this._groups, n = e._groups, r = t.length, i = n.length, a = Math.min(r, i), o = Array(r), s = 0; s < a; ++s) for (var c = t[s], l = n[s], u = c.length, d = o[s] = Array(u), f, p = 0; p < u; ++p) (f = c[p] || l[p]) && (d[p] = f);
2256
+ for (; s < r; ++s) o[s] = t[s];
2257
+ return new J(o, this._parents, this._name, this._id);
2258
+ }
2259
+ //#endregion
2260
+ //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/on.js
2261
+ function Ei(e) {
2262
+ return (e + "").trim().split(/^|\s+/).every(function(e) {
2263
+ var t = e.indexOf(".");
2264
+ return t >= 0 && (e = e.slice(0, t)), !e || e === "start";
2265
+ });
2266
+ }
2267
+ function Di(e, t, n) {
2268
+ var r, i, a = Ei(t) ? qr : K;
2269
+ return function() {
2270
+ var o = a(this, e), s = o.on;
2271
+ s !== r && (i = (r = s).copy()).on(t, n), o.on = i;
2272
+ };
2273
+ }
2274
+ function Oi(e, t) {
2275
+ var n = this._id;
2276
+ return arguments.length < 2 ? q(this.node(), n).on.on(e) : this.each(Di(n, e, t));
2277
+ }
2278
+ //#endregion
2279
+ //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/remove.js
2280
+ function ki(e) {
2281
+ return function() {
2282
+ var t = this.parentNode;
2283
+ for (var n in this.__transition) if (+n !== e) return;
2284
+ t && t.removeChild(this);
2285
+ };
2286
+ }
2287
+ function Ai() {
2288
+ return this.on("end.remove", ki(this._id));
2289
+ }
2290
+ //#endregion
2291
+ //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/select.js
2292
+ function ji(e) {
2293
+ var t = this._name, n = this._id;
2294
+ typeof e != "function" && (e = Re(e));
2295
+ for (var r = this._groups, i = r.length, a = Array(i), o = 0; o < i; ++o) for (var s = r[o], c = s.length, l = a[o] = Array(c), u, d, f = 0; f < c; ++f) (u = s[f]) && (d = e.call(u, u.__data__, f, s)) && ("__data__" in u && (d.__data__ = u.__data__), l[f] = d, Kr(l[f], t, n, f, l, q(u, n)));
2296
+ return new J(a, this._parents, t, n);
2297
+ }
2298
+ //#endregion
2299
+ //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/selectAll.js
2300
+ function Mi(e) {
2301
+ var t = this._name, n = this._id;
2302
+ typeof e != "function" && (e = He(e));
2303
+ for (var r = this._groups, i = r.length, a = [], o = [], s = 0; s < i; ++s) for (var c = r[s], l = c.length, u, d = 0; d < l; ++d) if (u = c[d]) {
2304
+ for (var f = e.call(u, u.__data__, d, c), p, m = q(u, n), h = 0, g = f.length; h < g; ++h) (p = f[h]) && Kr(p, t, n, h, f, m);
2305
+ a.push(f), o.push(u);
2306
+ }
2307
+ return new J(a, o, t, n);
2308
+ }
2309
+ //#endregion
2310
+ //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/selection.js
2311
+ var Ni = E.prototype.constructor;
2312
+ function Pi() {
2313
+ return new Ni(this._groups, this._parents);
2314
+ }
2315
+ //#endregion
2316
+ //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/style.js
2317
+ function Fi(e, t) {
2318
+ var n, r, i;
2319
+ return function() {
2320
+ var a = w(this, e), o = (this.style.removeProperty(e), w(this, e));
2321
+ return a === o ? null : a === n && o === r ? i : i = t(n = a, r = o);
2322
+ };
2323
+ }
2324
+ function Ii(e) {
2325
+ return function() {
2326
+ this.style.removeProperty(e);
2327
+ };
2328
+ }
2329
+ function Li(e, t, n) {
2330
+ var r, i = n + "", a;
2331
+ return function() {
2332
+ var o = w(this, e);
2333
+ return o === i ? null : o === r ? a : a = t(r = o, n);
2334
+ };
2335
+ }
2336
+ function Ri(e, t, n) {
2337
+ var r, i, a;
2338
+ return function() {
2339
+ var o = w(this, e), s = n(this), c = s + "";
2340
+ return s ?? (c = s = (this.style.removeProperty(e), w(this, e))), o === c ? null : o === r && c === i ? a : (i = c, a = t(r = o, s));
2341
+ };
2342
+ }
2343
+ function zi(e, t) {
2344
+ var n, r, i, a = "style." + t, o = "end." + a, s;
2345
+ return function() {
2346
+ var c = K(this, e), l = c.on, u = c.value[a] == null ? s ||= Ii(t) : void 0;
2347
+ (l !== n || i !== u) && (r = (n = l).copy()).on(o, i = u), c.on = r;
2348
+ };
2349
+ }
2350
+ function Bi(e, t, n) {
2351
+ var r = (e += "") == "transform" ? wr : ti;
2352
+ return t == null ? this.styleTween(e, Fi(e, r)).on("end.style." + e, Ii(e)) : typeof t == "function" ? this.styleTween(e, Ri(e, r, ei(this, "style." + e, t))).each(zi(this._id, e)) : this.styleTween(e, Li(e, r, t), n).on("end.style." + e, null);
2353
+ }
2354
+ //#endregion
2355
+ //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/styleTween.js
2356
+ function Vi(e, t, n) {
2357
+ return function(r) {
2358
+ this.style.setProperty(e, t.call(this, r), n);
2359
+ };
2360
+ }
2361
+ function Hi(e, t, n) {
2362
+ var r, i;
2363
+ function a() {
2364
+ var a = t.apply(this, arguments);
2365
+ return a !== i && (r = (i = a) && Vi(e, a, n)), r;
2366
+ }
2367
+ return a._value = t, a;
2368
+ }
2369
+ function Ui(e, t, n) {
2370
+ var r = "style." + (e += "");
2371
+ if (arguments.length < 2) return (r = this.tween(r)) && r._value;
2372
+ if (t == null) return this.tween(r, null);
2373
+ if (typeof t != "function") throw Error();
2374
+ return this.tween(r, Hi(e, t, n ?? ""));
2375
+ }
2376
+ //#endregion
2377
+ //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/text.js
2378
+ function Wi(e) {
2379
+ return function() {
2380
+ this.textContent = e;
2381
+ };
2382
+ }
2383
+ function Gi(e) {
2384
+ return function() {
2385
+ this.textContent = e(this) ?? "";
2386
+ };
2387
+ }
2388
+ function Ki(e) {
2389
+ return this.tween("text", typeof e == "function" ? Gi(ei(this, "text", e)) : Wi(e == null ? "" : e + ""));
2390
+ }
2391
+ //#endregion
2392
+ //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/textTween.js
2393
+ function qi(e) {
2394
+ return function(t) {
2395
+ this.textContent = e.call(this, t);
2396
+ };
2397
+ }
2398
+ function Ji(e) {
2399
+ var t, n;
2400
+ function r() {
2401
+ var r = e.apply(this, arguments);
2402
+ return r !== n && (t = (n = r) && qi(r)), t;
2403
+ }
2404
+ return r._value = e, r;
2405
+ }
2406
+ function Yi(e) {
2407
+ var t = "text";
2408
+ if (arguments.length < 1) return (t = this.tween(t)) && t._value;
2409
+ if (e == null) return this.tween(t, null);
2410
+ if (typeof e != "function") throw Error();
2411
+ return this.tween(t, Ji(e));
2412
+ }
2413
+ //#endregion
2414
+ //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/transition.js
2415
+ function Xi() {
2416
+ for (var e = this._name, t = this._id, n = ea(), r = this._groups, i = r.length, a = 0; a < i; ++a) for (var o = r[a], s = o.length, c, l = 0; l < s; ++l) if (c = o[l]) {
2417
+ var u = q(c, t);
2418
+ Kr(c, e, n, l, o, {
2419
+ time: u.time + u.delay + u.duration,
2420
+ delay: 0,
2421
+ duration: u.duration,
2422
+ ease: u.ease
2423
+ });
2424
+ }
2425
+ return new J(r, this._parents, e, n);
2426
+ }
2427
+ //#endregion
2428
+ //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/end.js
2429
+ function Zi() {
2430
+ var e, t, n = this, r = n._id, i = n.size();
2431
+ return new Promise(function(a, o) {
2432
+ var s = { value: o }, c = { value: function() {
2433
+ --i === 0 && a();
2434
+ } };
2435
+ n.each(function() {
2436
+ var n = K(this, r), i = n.on;
2437
+ i !== e && (t = (e = i).copy(), t._.cancel.push(s), t._.interrupt.push(s), t._.end.push(c)), n.on = t;
2438
+ }), i === 0 && a();
2439
+ });
2440
+ }
2441
+ //#endregion
2442
+ //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/index.js
2443
+ var Qi = 0;
2444
+ function J(e, t, n, r) {
2445
+ this._groups = e, this._parents = t, this._name = n, this._id = r;
2446
+ }
2447
+ function $i(e) {
2448
+ return E().transition(e);
2449
+ }
2450
+ function ea() {
2451
+ return ++Qi;
2452
+ }
2453
+ var Y = E.prototype;
2454
+ J.prototype = $i.prototype = {
2455
+ constructor: J,
2456
+ select: ji,
2457
+ selectAll: Mi,
2458
+ selectChild: Y.selectChild,
2459
+ selectChildren: Y.selectChildren,
2460
+ filter: wi,
2461
+ merge: Ti,
2462
+ selection: Pi,
2463
+ transition: Xi,
2464
+ call: Y.call,
2465
+ nodes: Y.nodes,
2466
+ node: Y.node,
2467
+ size: Y.size,
2468
+ empty: Y.empty,
2469
+ each: Y.each,
2470
+ on: Oi,
2471
+ attr: ci,
2472
+ attrTween: pi,
2473
+ style: Bi,
2474
+ styleTween: Ui,
2475
+ text: Ki,
2476
+ textTween: Yi,
2477
+ remove: Ai,
2478
+ tween: $r,
2479
+ delay: gi,
2480
+ duration: yi,
2481
+ ease: xi,
2482
+ easeVarying: Ci,
2483
+ end: Zi,
2484
+ [Symbol.iterator]: Y[Symbol.iterator]
2485
+ };
2486
+ //#endregion
2487
+ //#region ../../node_modules/.pnpm/d3-ease@3.0.1/node_modules/d3-ease/src/cubic.js
2488
+ function ta(e) {
2489
+ return ((e *= 2) <= 1 ? e * e * e : (e -= 2) * e * e + 2) / 2;
2490
+ }
2491
+ //#endregion
2492
+ //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/selection/transition.js
2493
+ var na = {
2494
+ time: null,
2495
+ delay: 0,
2496
+ duration: 250,
2497
+ ease: ta
2498
+ };
2499
+ function ra(e, t) {
2500
+ for (var n; !(n = e.__transition) || !(n = n[t]);) if (!(e = e.parentNode)) throw Error(`transition ${t} not found`);
2501
+ return n;
2502
+ }
2503
+ function ia(e) {
2504
+ var t, n;
2505
+ e instanceof J ? (t = e._id, e = e._name) : (t = ea(), (n = na).time = Pr(), e = e == null ? null : e + "");
2506
+ for (var r = this._groups, i = r.length, a = 0; a < i; ++a) for (var o = r[a], s = o.length, c, l = 0; l < s; ++l) (c = o[l]) && Kr(c, e, t, l, o, n || ra(c, t));
2507
+ return new J(r, this._parents, e, t);
2508
+ }
2509
+ E.prototype.interrupt = Xr, E.prototype.transition = ia;
2510
+ //#endregion
2511
+ //#region ../../node_modules/.pnpm/d3-brush@3.0.0/node_modules/d3-brush/src/brush.js
2512
+ var { abs: aa, max: oa, min: sa } = Math;
2513
+ ["w", "e"].map(ca), ["n", "s"].map(ca), [
2514
+ "n",
2515
+ "w",
2516
+ "e",
2517
+ "s",
2518
+ "nw",
2519
+ "ne",
2520
+ "sw",
2521
+ "se"
2522
+ ].map(ca);
2523
+ function ca(e) {
2524
+ return { type: e };
2525
+ }
2526
+ //#endregion
2527
+ //#region ../../node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatDecimal.js
2528
+ function la(e) {
2529
+ return Math.abs(e = Math.round(e)) >= 1e21 ? e.toLocaleString("en").replace(/,/g, "") : e.toString(10);
2530
+ }
2531
+ function ua(e, t) {
2532
+ if ((n = (e = t ? e.toExponential(t - 1) : e.toExponential()).indexOf("e")) < 0) return null;
2533
+ var n, r = e.slice(0, n);
2534
+ return [r.length > 1 ? r[0] + r.slice(2) : r, +e.slice(n + 1)];
2535
+ }
2536
+ //#endregion
2537
+ //#region ../../node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/exponent.js
2538
+ function X(e) {
2539
+ return e = ua(Math.abs(e)), e ? e[1] : NaN;
2540
+ }
2541
+ //#endregion
2542
+ //#region ../../node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatGroup.js
2543
+ function da(e, t) {
2544
+ return function(n, r) {
2545
+ for (var i = n.length, a = [], o = 0, s = e[0], c = 0; i > 0 && s > 0 && (c + s + 1 > r && (s = Math.max(1, r - c)), a.push(n.substring(i -= s, i + s)), !((c += s + 1) > r));) s = e[o = (o + 1) % e.length];
2546
+ return a.reverse().join(t);
2547
+ };
2548
+ }
2549
+ //#endregion
2550
+ //#region ../../node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatNumerals.js
2551
+ function fa(e) {
2552
+ return function(t) {
2553
+ return t.replace(/[0-9]/g, function(t) {
2554
+ return e[+t];
2555
+ });
2556
+ };
2557
+ }
2558
+ //#endregion
2559
+ //#region ../../node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatSpecifier.js
2560
+ var pa = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
2561
+ function ma(e) {
2562
+ if (!(t = pa.exec(e))) throw Error("invalid format: " + e);
2563
+ var t;
2564
+ return new ha({
2565
+ fill: t[1],
2566
+ align: t[2],
2567
+ sign: t[3],
2568
+ symbol: t[4],
2569
+ zero: t[5],
2570
+ width: t[6],
2571
+ comma: t[7],
2572
+ precision: t[8] && t[8].slice(1),
2573
+ trim: t[9],
2574
+ type: t[10]
2575
+ });
2576
+ }
2577
+ ma.prototype = ha.prototype;
2578
+ function ha(e) {
2579
+ this.fill = e.fill === void 0 ? " " : e.fill + "", this.align = e.align === void 0 ? ">" : e.align + "", this.sign = e.sign === void 0 ? "-" : e.sign + "", this.symbol = e.symbol === void 0 ? "" : e.symbol + "", this.zero = !!e.zero, this.width = e.width === void 0 ? void 0 : +e.width, this.comma = !!e.comma, this.precision = e.precision === void 0 ? void 0 : +e.precision, this.trim = !!e.trim, this.type = e.type === void 0 ? "" : e.type + "";
2580
+ }
2581
+ ha.prototype.toString = function() {
2582
+ return this.fill + this.align + this.sign + this.symbol + (this.zero ? "0" : "") + (this.width === void 0 ? "" : Math.max(1, this.width | 0)) + (this.comma ? "," : "") + (this.precision === void 0 ? "" : "." + Math.max(0, this.precision | 0)) + (this.trim ? "~" : "") + this.type;
2583
+ };
2584
+ //#endregion
2585
+ //#region ../../node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatTrim.js
2586
+ function ga(e) {
2587
+ out: for (var t = e.length, n = 1, r = -1, i; n < t; ++n) switch (e[n]) {
2588
+ case ".":
2589
+ r = i = n;
2590
+ break;
2591
+ case "0":
2592
+ r === 0 && (r = n), i = n;
2593
+ break;
2594
+ default:
2595
+ if (!+e[n]) break out;
2596
+ r > 0 && (r = 0);
2597
+ break;
2598
+ }
2599
+ return r > 0 ? e.slice(0, r) + e.slice(i + 1) : e;
2600
+ }
2601
+ //#endregion
2602
+ //#region ../../node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatPrefixAuto.js
2603
+ var _a;
2604
+ function va(e, t) {
2605
+ var n = ua(e, t);
2606
+ if (!n) return e + "";
2607
+ var r = n[0], i = n[1], a = i - (_a = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1, o = r.length;
2608
+ return a === o ? r : a > o ? r + Array(a - o + 1).join("0") : a > 0 ? r.slice(0, a) + "." + r.slice(a) : "0." + Array(1 - a).join("0") + ua(e, Math.max(0, t + a - 1))[0];
2609
+ }
2610
+ //#endregion
2611
+ //#region ../../node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatRounded.js
2612
+ function ya(e, t) {
2613
+ var n = ua(e, t);
2614
+ if (!n) return e + "";
2615
+ var r = n[0], i = n[1];
2616
+ return i < 0 ? "0." + Array(-i).join("0") + r : r.length > i + 1 ? r.slice(0, i + 1) + "." + r.slice(i + 1) : r + Array(i - r.length + 2).join("0");
2617
+ }
2618
+ //#endregion
2619
+ //#region ../../node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatTypes.js
2620
+ var ba = {
2621
+ "%": (e, t) => (e * 100).toFixed(t),
2622
+ b: (e) => Math.round(e).toString(2),
2623
+ c: (e) => e + "",
2624
+ d: la,
2625
+ e: (e, t) => e.toExponential(t),
2626
+ f: (e, t) => e.toFixed(t),
2627
+ g: (e, t) => e.toPrecision(t),
2628
+ o: (e) => Math.round(e).toString(8),
2629
+ p: (e, t) => ya(e * 100, t),
2630
+ r: ya,
2631
+ s: va,
2632
+ X: (e) => Math.round(e).toString(16).toUpperCase(),
2633
+ x: (e) => Math.round(e).toString(16)
2634
+ };
2635
+ //#endregion
2636
+ //#region ../../node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/identity.js
2637
+ function xa(e) {
2638
+ return e;
2639
+ }
2640
+ //#endregion
2641
+ //#region ../../node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/locale.js
2642
+ var Sa = Array.prototype.map, Ca = [
2643
+ "y",
2644
+ "z",
2645
+ "a",
2646
+ "f",
2647
+ "p",
2648
+ "n",
2649
+ "µ",
2650
+ "m",
2651
+ "",
2652
+ "k",
2653
+ "M",
2654
+ "G",
2655
+ "T",
2656
+ "P",
2657
+ "E",
2658
+ "Z",
2659
+ "Y"
2660
+ ];
2661
+ function wa(e) {
2662
+ var t = e.grouping === void 0 || e.thousands === void 0 ? xa : da(Sa.call(e.grouping, Number), e.thousands + ""), n = e.currency === void 0 ? "" : e.currency[0] + "", r = e.currency === void 0 ? "" : e.currency[1] + "", i = e.decimal === void 0 ? "." : e.decimal + "", a = e.numerals === void 0 ? xa : fa(Sa.call(e.numerals, String)), o = e.percent === void 0 ? "%" : e.percent + "", s = e.minus === void 0 ? "−" : e.minus + "", c = e.nan === void 0 ? "NaN" : e.nan + "";
2663
+ function l(e) {
2664
+ e = ma(e);
2665
+ var l = e.fill, u = e.align, d = e.sign, f = e.symbol, p = e.zero, m = e.width, h = e.comma, g = e.precision, _ = e.trim, v = e.type;
2666
+ v === "n" ? (h = !0, v = "g") : ba[v] || (g === void 0 && (g = 12), _ = !0, v = "g"), (p || l === "0" && u === "=") && (p = !0, l = "0", u = "=");
2667
+ var y = f === "$" ? n : f === "#" && /[boxX]/.test(v) ? "0" + v.toLowerCase() : "", ee = f === "$" ? r : /[%p]/.test(v) ? o : "", te = ba[v], ne = /[defgprs%]/.test(v);
2668
+ g = g === void 0 ? 6 : /[gprs]/.test(v) ? Math.max(1, Math.min(21, g)) : Math.max(0, Math.min(20, g));
2669
+ function b(e) {
2670
+ var n = y, r = ee, o, f, b;
2671
+ if (v === "c") r = te(e) + r, e = "";
2672
+ else {
2673
+ e = +e;
2674
+ var x = e < 0 || 1 / e < 0;
2675
+ if (e = isNaN(e) ? c : te(Math.abs(e), g), _ && (e = ga(e)), x && +e == 0 && d !== "+" && (x = !1), n = (x ? d === "(" ? d : s : d === "-" || d === "(" ? "" : d) + n, r = (v === "s" ? Ca[8 + _a / 3] : "") + r + (x && d === "(" ? ")" : ""), ne) {
2676
+ for (o = -1, f = e.length; ++o < f;) if (b = e.charCodeAt(o), 48 > b || b > 57) {
2677
+ r = (b === 46 ? i + e.slice(o + 1) : e.slice(o)) + r, e = e.slice(0, o);
2678
+ break;
2679
+ }
2680
+ }
2681
+ }
2682
+ h && !p && (e = t(e, Infinity));
2683
+ var S = n.length + e.length + r.length, C = S < m ? Array(m - S + 1).join(l) : "";
2684
+ switch (h && p && (e = t(C + e, C.length ? m - r.length : Infinity), C = ""), u) {
2685
+ case "<":
2686
+ e = n + e + r + C;
2687
+ break;
2688
+ case "=":
2689
+ e = n + C + e + r;
2690
+ break;
2691
+ case "^":
2692
+ e = C.slice(0, S = C.length >> 1) + n + e + r + C.slice(S);
2693
+ break;
2694
+ default:
2695
+ e = C + n + e + r;
2696
+ break;
2697
+ }
2698
+ return a(e);
2699
+ }
2700
+ return b.toString = function() {
2701
+ return e + "";
2702
+ }, b;
2703
+ }
2704
+ function u(e, t) {
2705
+ var n = l((e = ma(e), e.type = "f", e)), r = Math.max(-8, Math.min(8, Math.floor(X(t) / 3))) * 3, i = 10 ** -r, a = Ca[8 + r / 3];
2706
+ return function(e) {
2707
+ return n(i * e) + a;
2708
+ };
2709
+ }
2710
+ return {
2711
+ format: l,
2712
+ formatPrefix: u
2713
+ };
2714
+ }
2715
+ //#endregion
2716
+ //#region ../../node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/defaultLocale.js
2717
+ var Ta, Ea, Da;
2718
+ Oa({
2719
+ thousands: ",",
2720
+ grouping: [3],
2721
+ currency: ["$", ""]
2722
+ });
2723
+ function Oa(e) {
2724
+ return Ta = wa(e), Ea = Ta.format, Da = Ta.formatPrefix, Ta;
2725
+ }
2726
+ //#endregion
2727
+ //#region ../../node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/precisionFixed.js
2728
+ function ka(e) {
2729
+ return Math.max(0, -X(Math.abs(e)));
2730
+ }
2731
+ //#endregion
2732
+ //#region ../../node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/precisionPrefix.js
2733
+ function Aa(e, t) {
2734
+ return Math.max(0, Math.max(-8, Math.min(8, Math.floor(X(t) / 3))) * 3 - X(Math.abs(e)));
2735
+ }
2736
+ //#endregion
2737
+ //#region ../../node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/precisionRound.js
2738
+ function ja(e, t) {
2739
+ return e = Math.abs(e), t = Math.abs(t) - e, Math.max(0, X(t) - X(e)) + 1;
2740
+ }
2741
+ //#endregion
2742
+ //#region ../../node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/init.js
2743
+ function Ma(e, t) {
2744
+ switch (arguments.length) {
2745
+ case 0: break;
2746
+ case 1:
2747
+ this.range(e);
2748
+ break;
2749
+ default:
2750
+ this.range(t).domain(e);
2751
+ break;
2752
+ }
2753
+ return this;
2754
+ }
2755
+ //#endregion
2756
+ //#region ../../node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/constant.js
2757
+ function Na(e) {
2758
+ return function() {
2759
+ return e;
2760
+ };
2761
+ }
2762
+ //#endregion
2763
+ //#region ../../node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/number.js
2764
+ function Pa(e) {
2765
+ return +e;
2766
+ }
2767
+ //#endregion
2768
+ //#region ../../node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/continuous.js
2769
+ var Fa = [0, 1];
2770
+ function Z(e) {
2771
+ return e;
2772
+ }
2773
+ function Ia(e, t) {
2774
+ return (t -= e = +e) ? function(n) {
2775
+ return (n - e) / t;
2776
+ } : Na(isNaN(t) ? NaN : .5);
2777
+ }
2778
+ function La(e, t) {
2779
+ var n;
2780
+ return e > t && (n = e, e = t, t = n), function(n) {
2781
+ return Math.max(e, Math.min(t, n));
2782
+ };
2783
+ }
2784
+ function Ra(e, t, n) {
2785
+ var r = e[0], i = e[1], a = t[0], o = t[1];
2786
+ return i < r ? (r = Ia(i, r), a = n(o, a)) : (r = Ia(r, i), a = n(a, o)), function(e) {
2787
+ return a(r(e));
2788
+ };
2789
+ }
2790
+ function za(e, t, n) {
2791
+ var r = Math.min(e.length, t.length) - 1, i = Array(r), a = Array(r), o = -1;
2792
+ for (e[r] < e[0] && (e = e.slice().reverse(), t = t.slice().reverse()); ++o < r;) i[o] = Ia(e[o], e[o + 1]), a[o] = n(t[o], t[o + 1]);
2793
+ return function(t) {
2794
+ var n = ve(e, t, 1, r) - 1;
2795
+ return a[n](i[n](t));
2796
+ };
2797
+ }
2798
+ function Ba(e, t) {
2799
+ return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown());
2800
+ }
2801
+ function Va() {
2802
+ var e = Fa, t = Fa, n = V, r, i, a, o = Z, s, c, l;
2803
+ function u() {
2804
+ var n = Math.min(e.length, t.length);
2805
+ return o !== Z && (o = La(e[0], e[n - 1])), s = n > 2 ? za : Ra, c = l = null, d;
2806
+ }
2807
+ function d(i) {
2808
+ return i == null || isNaN(i = +i) ? a : (c ||= s(e.map(r), t, n))(r(o(i)));
2809
+ }
2810
+ return d.invert = function(n) {
2811
+ return o(i((l ||= s(t, e.map(r), B))(n)));
2812
+ }, d.domain = function(t) {
2813
+ return arguments.length ? (e = Array.from(t, Pa), u()) : e.slice();
2814
+ }, d.range = function(e) {
2815
+ return arguments.length ? (t = Array.from(e), u()) : t.slice();
2816
+ }, d.rangeRound = function(e) {
2817
+ return t = Array.from(e), n = gr, u();
2818
+ }, d.clamp = function(e) {
2819
+ return arguments.length ? (o = e ? !0 : Z, u()) : o !== Z;
2820
+ }, d.interpolate = function(e) {
2821
+ return arguments.length ? (n = e, u()) : n;
2822
+ }, d.unknown = function(e) {
2823
+ return arguments.length ? (a = e, d) : a;
2824
+ }, function(e, t) {
2825
+ return r = e, i = t, u();
2826
+ };
2827
+ }
2828
+ function Ha() {
2829
+ return Va()(Z, Z);
2830
+ }
2831
+ //#endregion
2832
+ //#region ../../node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/tickFormat.js
2833
+ function Ua(e, t, n, r) {
2834
+ var i = Te(e, t, n), a;
2835
+ switch (r = ma(r ?? ",f"), r.type) {
2836
+ case "s":
2837
+ var o = Math.max(Math.abs(e), Math.abs(t));
2838
+ return r.precision == null && !isNaN(a = Aa(i, o)) && (r.precision = a), Da(r, o);
2839
+ case "":
2840
+ case "e":
2841
+ case "g":
2842
+ case "p":
2843
+ case "r":
2844
+ r.precision == null && !isNaN(a = ja(i, Math.max(Math.abs(e), Math.abs(t)))) && (r.precision = a - (r.type === "e"));
2845
+ break;
2846
+ case "f":
2847
+ case "%":
2848
+ r.precision == null && !isNaN(a = ka(i)) && (r.precision = a - (r.type === "%") * 2);
2849
+ break;
2850
+ }
2851
+ return Ea(r);
2852
+ }
2853
+ //#endregion
2854
+ //#region ../../node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/linear.js
2855
+ function Wa(e) {
2856
+ var t = e.domain;
2857
+ return e.ticks = function(e) {
2858
+ var n = t();
2859
+ return Ce(n[0], n[n.length - 1], e ?? 10);
2860
+ }, e.tickFormat = function(e, n) {
2861
+ var r = t();
2862
+ return Ua(r[0], r[r.length - 1], e ?? 10, n);
2863
+ }, e.nice = function(n) {
2864
+ n ??= 10;
2865
+ var r = t(), i = 0, a = r.length - 1, o = r[i], s = r[a], c, l, u = 10;
2866
+ for (s < o && (l = o, o = s, s = l, l = i, i = a, a = l); u-- > 0;) {
2867
+ if (l = we(o, s, n), l === c) return r[i] = o, r[a] = s, t(r);
2868
+ if (l > 0) o = Math.floor(o / l) * l, s = Math.ceil(s / l) * l;
2869
+ else if (l < 0) o = Math.ceil(o * l) / l, s = Math.floor(s * l) / l;
2870
+ else break;
2871
+ c = l;
2872
+ }
2873
+ return e;
2874
+ }, e;
2875
+ }
2876
+ function Ga() {
2877
+ var e = Ha();
2878
+ return e.copy = function() {
2879
+ return Ba(e, Ga());
2880
+ }, Ma.apply(e, arguments), Wa(e);
2881
+ }
2882
+ //#endregion
2883
+ //#region ../../node_modules/.pnpm/d3-zoom@3.0.0/node_modules/d3-zoom/src/transform.js
2884
+ function Q(e, t, n) {
2885
+ this.k = e, this.x = t, this.y = n;
2886
+ }
2887
+ Q.prototype = {
2888
+ constructor: Q,
2889
+ scale: function(e) {
2890
+ return e === 1 ? this : new Q(this.k * e, this.x, this.y);
2891
+ },
2892
+ translate: function(e, t) {
2893
+ return e === 0 & t === 0 ? this : new Q(this.k, this.x + this.k * e, this.y + this.k * t);
2894
+ },
2895
+ apply: function(e) {
2896
+ return [e[0] * this.k + this.x, e[1] * this.k + this.y];
2897
+ },
2898
+ applyX: function(e) {
2899
+ return e * this.k + this.x;
2900
+ },
2901
+ applyY: function(e) {
2902
+ return e * this.k + this.y;
2903
+ },
2904
+ invert: function(e) {
2905
+ return [(e[0] - this.x) / this.k, (e[1] - this.y) / this.k];
2906
+ },
2907
+ invertX: function(e) {
2908
+ return (e - this.x) / this.k;
2909
+ },
2910
+ invertY: function(e) {
2911
+ return (e - this.y) / this.k;
2912
+ },
2913
+ rescaleX: function(e) {
2914
+ return e.copy().domain(e.range().map(this.invertX, this).map(e.invert, e));
2915
+ },
2916
+ rescaleY: function(e) {
2917
+ return e.copy().domain(e.range().map(this.invertY, this).map(e.invert, e));
2918
+ },
2919
+ toString: function() {
2920
+ return "translate(" + this.x + "," + this.y + ") scale(" + this.k + ")";
2921
+ }
2922
+ };
2923
+ var Ka = new Q(1, 0, 0);
2924
+ qa.prototype = Q.prototype;
2925
+ function qa(e) {
2926
+ for (; !e.__zoom;) if (!(e = e.parentNode)) return Ka;
2927
+ return e.__zoom;
2928
+ }
2929
+ //#endregion
2930
+ //#region ../../node_modules/.pnpm/tiny-invariant@1.3.3/node_modules/tiny-invariant/dist/esm/tiny-invariant.js
2931
+ var Ja = !0, Ya = "Invariant failed";
2932
+ function $(e, t) {
2933
+ if (!e) {
2934
+ if (Ja) throw Error(Ya);
2935
+ var n = typeof t == "function" ? t() : t, r = n ? `${Ya}: ${n}` : Ya;
2936
+ throw Error(r);
2937
+ }
2938
+ }
2939
+ //#endregion
2940
+ //#region src/color/ColorMap.ts
2941
+ var Xa = class {
2942
+ lut;
2943
+ constructor(e, t, n) {
2944
+ this.type = e, this.name = t, $(n.length > 1), this.lut = n.map((e) => Array.isArray(e) ? e : e.srgb().toArray());
2945
+ }
2946
+ #e;
2947
+ linear(e) {
2948
+ this.buildLinear(), $(this.#e);
2949
+ let t = this.#e(e);
2950
+ return $(t != null), t;
2951
+ }
2952
+ buildLinear() {
2953
+ this.#e ??= Ga().domain(Er(V(0, 1), this.lut.length)).range(this.lut).clamp(!0);
2954
+ }
2955
+ get count() {
2956
+ return this.lut.length;
2957
+ }
2958
+ ticks(e, t) {
2959
+ return Ga().domain(e).ticks(t);
2960
+ }
2961
+ quantize(e) {
2962
+ return $(e > 1), [...Array(e)].map((t, n) => this.linear(n / (e - 1)));
2963
+ }
2964
+ createImage() {
2965
+ let e = document.createElement("canvas");
2966
+ e.width = this.lut.length, e.height = 1;
2967
+ let t = e.getContext("2d");
2968
+ return $(t != null), this.lut.forEach(([e, n, r], i) => {
2969
+ t.fillStyle = Kn(e * 255, n * 255, r * 255).toString(), t.fillRect(i, 0, 1, 1);
2970
+ }), e;
2971
+ }
2972
+ flatten() {
2973
+ let e = new Float32Array(this.lut.length * 3);
2974
+ for (let t = 0; t < this.lut.length; t++) e[t * 3] = this.lut[t][0], e[t * 3 + 1] = this.lut[t][1], e[t * 3 + 2] = this.lut[t][2];
2975
+ return e;
2976
+ }
2977
+ }, Za = class {}, Qa = class {
2978
+ handler;
2979
+ _elevationColormap;
2980
+ constructor(e, t) {
2981
+ this.handler = e, this.setOptions(t);
2982
+ }
2983
+ setOptions(e) {
2984
+ e?.maxSse != null && (this.maxSse = e.maxSse), e?.segments != null && (this.segments = e.segments), e?.color != null && (this.color = e.color), e?.hideUnderground != null && (this.hideUnderground = e.hideUnderground), e?.useNormal != null && (this.useNormal = e.useNormal), e?.transparent != null && (this.transparent = e.transparent), e?.opacity != null && (this.opacity = e.opacity), e?.wireframe != null && (this.wireframe = e.wireframe), e?.elevationColormap != null && (this.elevationColormap = e.elevationColormap);
2985
+ }
2986
+ get maxSse() {
2987
+ return this.handler.getMaxSse() ?? 2;
2988
+ }
2989
+ set maxSse(e) {
2990
+ this.handler.setMaxSse(e);
2991
+ }
2992
+ get segments() {
2993
+ return this.handler.getSegments() ?? 64;
2994
+ }
2995
+ set segments(e) {
2996
+ this.handler.setSegments(e);
2997
+ }
2998
+ get color() {
2999
+ return this.handler.getColor();
3000
+ }
3001
+ set color(e) {
3002
+ this.handler.setColor(e);
3003
+ }
3004
+ get hideUnderground() {
3005
+ return this.handler.getHideUnderground() ?? !0;
3006
+ }
3007
+ set hideUnderground(e) {
3008
+ this.handler.setHideUnderground(e);
3009
+ }
3010
+ get useNormal() {
3011
+ return this.handler.getUseNormal() ?? !1;
3012
+ }
3013
+ set useNormal(e) {
3014
+ this.handler.setUseNormal(e);
3015
+ }
3016
+ get transparent() {
3017
+ return this.handler.getTransparent() ?? !1;
3018
+ }
3019
+ set transparent(e) {
3020
+ this.handler.setTransparent(e);
3021
+ }
3022
+ get opacity() {
3023
+ return this.handler.getOpacity() ?? 1;
3024
+ }
3025
+ set opacity(e) {
3026
+ this.handler.setOpacity(e);
3027
+ }
3028
+ get wireframe() {
3029
+ return this.handler.getWireframe() ?? !1;
3030
+ }
3031
+ set wireframe(e) {
3032
+ this.handler.setWireframe(e);
3033
+ }
3034
+ get elevationColormap() {
3035
+ return this._elevationColormap;
3036
+ }
3037
+ set elevationColormap(e) {
3038
+ this._elevationColormap = e, this.handler.setElevationColormap(e);
3039
+ }
3040
+ }, $a = class {};
3041
+ //#endregion
3042
+ export { de as BaseAbstractedVec3, m as CachedMeshHandleLike, Za as Color, Xa as ColorMap, x as ConstructedPolygonGeometryLike, re as ConstructedPolylineGeometryLike, v as ElevationDecoderLike, ae as EventHandler, s as EventManager, b as ExtentRadianF32Like, Qa as Globe, ie as IMAGE_EXTENSIONS, le as NamedIndexMap, ue as Observed, $a as Plugin, ne as PolygonMaterialLike, C as PolylineMaterialLike, ee as ReturnedConstructedTerrainMeshLike, p as TileXYZLike, i as Transaction, r as TransactionManager, h as TransferableMartiniLike, te as TransferablePolygonBatchedFeatureLike, S as TransferablePolylineBatchedFeatureLike, _ as TransferableRasterDEMDataLike, f as TransferableTileLike, se as Unimplemented, ce as Unreachable, g as UpsamplableTerrainGeometryLike, y as Vec3Like, c as assertType, t as generate_id_from_entity, n as isEntityEvent, d as isNotFalse, l as isNotNullish, u as isNotUndefined, oe as setBatchedValuesToBatchedAttribute };