@navaramap/worker 0.2.0 → 0.3.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.
- package/dist/index.js +708 -682
- package/dist/index.umd.cjs +2 -2
- package/dist/manager.d.ts +11 -1
- package/dist/pool.d.ts +11 -3
- package/dist/recyclingPool.d.ts +15 -0
- package/package.json +4 -4
- package/src/helpers/transferConstructedPolylineGeometry.ts +5 -3
- package/src/helpers/transferReturnedConstructedTerrainMesh.ts +1 -0
- package/src/manager.test.ts +5 -1
- package/src/manager.ts +18 -5
- package/src/pool.test.ts +9 -2
- package/src/pool.ts +107 -29
- package/src/poolLease.test.ts +152 -0
- package/src/recyclingPool.test.ts +104 -2
- package/src/recyclingPool.ts +101 -8
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "@navaramap/engine";
|
|
2
2
|
import e, { CachedMeshHandle as t, ElevationDecoder as n, ExtentRadianF32 as r, PolygonMaterial as i, PolylineMaterial as a, TileXYZ as o, TransferablePolygonBatchedFeature as s, TransferablePolylineBatchedFeature as c, TransferableRasterDEMData as l, TransferableTile as u, UpsamplableTerrainGeometry as d, constructPolygonBatchedFeature as f, constructPolylineBatchedFeature as p, constructQuantizedMeshTerrainMesh as m, constructTerrainMesh as h, parseMvtTile as g, upsampleQuantizedMeshTerrainMesh as _, upsampleTerrainMesh as v } from "@navaramap/engine-worker";
|
|
3
|
-
|
|
4
|
-
var y = Object.create, b = Object.defineProperty, x = Object.getOwnPropertyDescriptor, S = Object.getOwnPropertyNames, C = Object.getPrototypeOf, w = Object.prototype.hasOwnProperty, T = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), E = (e, t, n, r) => {
|
|
3
|
+
// \0rolldown/runtime.js
|
|
4
|
+
var y = Object.create, b = Object.defineProperty, x = Object.getOwnPropertyDescriptor, S = Object.getOwnPropertyNames, C = Object.getPrototypeOf, w = Object.prototype.hasOwnProperty, T = (e, t) => () => (t || (e((t = { exports: {} }).exports, t, t.exports), e = null), t.exports), E = (e, t, n, r) => {
|
|
5
5
|
if (t && typeof t == "object" || typeof t == "function") for (var i = S(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !w.call(e, s) && s !== n && b(e, s, {
|
|
6
6
|
get: ((e) => t[e]).bind(null, s),
|
|
7
7
|
enumerable: !(r = x(t, s)) || r.enumerable
|
|
@@ -14,8 +14,7 @@ var y = Object.create, b = Object.defineProperty, x = Object.getOwnPropertyDescr
|
|
|
14
14
|
function ne(e, t) {
|
|
15
15
|
if (!e) throw Error(te);
|
|
16
16
|
}
|
|
17
|
-
|
|
18
|
-
//#region __vite-browser-external
|
|
17
|
+
// __vite-browser-external
|
|
19
18
|
var D = /* @__PURE__ */ T(((e, t) => {
|
|
20
19
|
t.exports = {};
|
|
21
20
|
})), re = /* @__PURE__ */ T(((e, t) => {
|
|
@@ -744,12 +743,15 @@ var D = /* @__PURE__ */ T(((e, t) => {
|
|
|
744
743
|
e.worker = o;
|
|
745
744
|
var { Promise: s } = ie();
|
|
746
745
|
e.Transfer = de();
|
|
747
|
-
})))(), 1), me = 5e3, he = 3e4, ge = (e) =>
|
|
746
|
+
})))(), 1), me = 5e3, he = 3e4, ge = (e) => {
|
|
747
|
+
let { activeTasks: t, pendingTasks: n } = e.pool.stats();
|
|
748
|
+
return Math.max(e.inflight, t + n);
|
|
749
|
+
}, _e = (e) => pe.pool(e, {
|
|
748
750
|
maxWorkers: 1,
|
|
749
751
|
minWorkers: 0,
|
|
750
752
|
workerTerminateTimeout: he,
|
|
751
753
|
workerOpts: { type: void 0 }
|
|
752
|
-
}),
|
|
754
|
+
}), ve = class {
|
|
753
755
|
url;
|
|
754
756
|
maxWorkerHeapBytes;
|
|
755
757
|
slots;
|
|
@@ -757,9 +759,11 @@ var D = /* @__PURE__ */ T(((e, t) => {
|
|
|
757
759
|
terminated = !1;
|
|
758
760
|
constructor(e, t, n) {
|
|
759
761
|
ne(t > 0, "maxWorkers must be a positive number."), this.url = e, this.maxWorkerHeapBytes = n?.maxWorkerHeapBytes ?? 268435456, this.slots = Array.from({ length: t }, () => ({
|
|
760
|
-
pool:
|
|
762
|
+
pool: _e(e),
|
|
761
763
|
tasksSinceSpawn: 0,
|
|
762
764
|
inflight: 0,
|
|
765
|
+
internal: 0,
|
|
766
|
+
reserved: !1,
|
|
763
767
|
draining: !1,
|
|
764
768
|
probing: !1,
|
|
765
769
|
lastHeapBytes: void 0
|
|
@@ -786,7 +790,34 @@ var D = /* @__PURE__ */ T(((e, t) => {
|
|
|
786
790
|
});
|
|
787
791
|
}
|
|
788
792
|
canAcceptTasks() {
|
|
789
|
-
return this.slots.some((e) => !e.draining);
|
|
793
|
+
return this.slots.some((e) => !e.draining && !e.reserved);
|
|
794
|
+
}
|
|
795
|
+
setReservedSlots(e) {
|
|
796
|
+
let t = Math.max(0, Math.min(e, this.slots.length - 1)), n = this.reservedSlots();
|
|
797
|
+
for (; n < t;) {
|
|
798
|
+
let e, t = Infinity;
|
|
799
|
+
for (let n of this.slots) {
|
|
800
|
+
if (n.reserved) continue;
|
|
801
|
+
let r = ge(n);
|
|
802
|
+
r < t && (e = n, t = r);
|
|
803
|
+
}
|
|
804
|
+
if (!e) break;
|
|
805
|
+
e.reserved = !0, n++;
|
|
806
|
+
}
|
|
807
|
+
for (let e of this.slots) {
|
|
808
|
+
if (n <= t) break;
|
|
809
|
+
e.reserved && (e.reserved = !1, n--);
|
|
810
|
+
}
|
|
811
|
+
}
|
|
812
|
+
reservedSlots() {
|
|
813
|
+
let e = 0;
|
|
814
|
+
for (let t of this.slots) t.reserved && e++;
|
|
815
|
+
return e;
|
|
816
|
+
}
|
|
817
|
+
load() {
|
|
818
|
+
let e = 0;
|
|
819
|
+
for (let t of this.slots) e += Math.max(0, ge(t) - t.internal);
|
|
820
|
+
return e;
|
|
790
821
|
}
|
|
791
822
|
stats() {
|
|
792
823
|
let e = {
|
|
@@ -819,19 +850,24 @@ var D = /* @__PURE__ */ T(((e, t) => {
|
|
|
819
850
|
for (let e of this.slots) e.pool.terminate();
|
|
820
851
|
}
|
|
821
852
|
pickSlot() {
|
|
822
|
-
let e = this.slots.filter((e) => !e.draining);
|
|
823
|
-
|
|
853
|
+
let e = this.slots.filter((e) => !e.reserved), t = e.filter((e) => !e.draining), n = t.length > 0 ? t : e, r = n[0], i = ge(r);
|
|
854
|
+
for (let e of n) {
|
|
855
|
+
let t = ge(e);
|
|
856
|
+
t < i && (r = e, i = t);
|
|
857
|
+
}
|
|
858
|
+
return r;
|
|
824
859
|
}
|
|
825
860
|
onSettled(e) {
|
|
826
861
|
e.inflight--, !this.terminated && (e.tasksSinceSpawn++, e.tasksSinceSpawn >= 128 && (e.draining = !0), e.draining && e.inflight === 0 ? this.recycleSlot(e) : e.draining || this.probeSlot(e), this.armIdleSweep());
|
|
827
862
|
}
|
|
828
863
|
recycleSlot(e) {
|
|
829
|
-
e.pool.terminate(), e.pool =
|
|
864
|
+
e.pool.terminate(), e.pool = _e(this.url), e.tasksSinceSpawn = 0, e.draining = !1, e.lastHeapBytes = void 0, this.warmSlot(e).catch(() => void 0);
|
|
830
865
|
}
|
|
831
866
|
warmSlot(e) {
|
|
832
|
-
|
|
867
|
+
if (this.terminated) return Promise.resolve();
|
|
868
|
+
e.inflight++, e.internal++;
|
|
833
869
|
let t = () => {
|
|
834
|
-
e.inflight--, !this.terminated && e.draining && e.inflight === 0 && this.recycleSlot(e);
|
|
870
|
+
e.inflight--, e.internal--, !this.terminated && e.draining && e.inflight === 0 && this.recycleSlot(e);
|
|
835
871
|
};
|
|
836
872
|
return new Promise((n, r) => {
|
|
837
873
|
try {
|
|
@@ -847,9 +883,9 @@ var D = /* @__PURE__ */ T(((e, t) => {
|
|
|
847
883
|
}
|
|
848
884
|
probeSlot(e) {
|
|
849
885
|
if (e.probing) return;
|
|
850
|
-
e.probing = !0, e.inflight++;
|
|
886
|
+
e.probing = !0, e.inflight++, e.internal++;
|
|
851
887
|
let t = (t) => {
|
|
852
|
-
e.probing = !1, e.inflight--, !this.terminated && (t && (e.draining = !0), e.draining && e.inflight === 0 && this.recycleSlot(e));
|
|
888
|
+
e.probing = !1, e.inflight--, e.internal--, !this.terminated && (t && (e.draining = !0), e.draining && e.inflight === 0 && this.recycleSlot(e));
|
|
853
889
|
};
|
|
854
890
|
try {
|
|
855
891
|
e.pool.exec("getWasmMemoryUsage").then((n) => {
|
|
@@ -868,19 +904,18 @@ var D = /* @__PURE__ */ T(((e, t) => {
|
|
|
868
904
|
}, me);
|
|
869
905
|
}
|
|
870
906
|
};
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
function ve(e) {
|
|
907
|
+
// ../navara_core/dist/index.js
|
|
908
|
+
function ye(e) {
|
|
874
909
|
return e != null;
|
|
875
910
|
}
|
|
876
|
-
var
|
|
911
|
+
var be = class {
|
|
877
912
|
x;
|
|
878
913
|
y;
|
|
879
914
|
z;
|
|
880
915
|
constructor(e) {
|
|
881
916
|
this.x = e.x, this.y = e.y, this.z = e.z;
|
|
882
917
|
}
|
|
883
|
-
},
|
|
918
|
+
}, xe = class {
|
|
884
919
|
vertices;
|
|
885
920
|
uvs;
|
|
886
921
|
indices;
|
|
@@ -893,9 +928,10 @@ var ye = class {
|
|
|
893
928
|
skirt_uvs;
|
|
894
929
|
skirt_indices;
|
|
895
930
|
skirt_normals;
|
|
931
|
+
skirt_heights;
|
|
896
932
|
watermask;
|
|
897
933
|
constructor(e) {
|
|
898
|
-
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
|
|
934
|
+
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 be(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(), this.skirt_heights = e.transferSkirtHeights()), e.hasWatermask() && (this.watermask = e.transferWatermask());
|
|
899
935
|
}
|
|
900
936
|
transferVertices() {
|
|
901
937
|
throw Error();
|
|
@@ -924,6 +960,9 @@ var ye = class {
|
|
|
924
960
|
transferSkirtNormals() {
|
|
925
961
|
throw Error();
|
|
926
962
|
}
|
|
963
|
+
transferSkirtHeights() {
|
|
964
|
+
throw Error();
|
|
965
|
+
}
|
|
927
966
|
transferWatermask() {
|
|
928
967
|
throw Error();
|
|
929
968
|
}
|
|
@@ -936,7 +975,7 @@ var ye = class {
|
|
|
936
975
|
hasWatermask() {
|
|
937
976
|
return this.watermask !== void 0;
|
|
938
977
|
}
|
|
939
|
-
},
|
|
978
|
+
}, Se = class {
|
|
940
979
|
east;
|
|
941
980
|
north;
|
|
942
981
|
south;
|
|
@@ -944,7 +983,7 @@ var ye = class {
|
|
|
944
983
|
constructor(e) {
|
|
945
984
|
this.east = e.east, this.north = e.north, this.south = e.south, this.west = e.west;
|
|
946
985
|
}
|
|
947
|
-
},
|
|
986
|
+
}, Ce = class {
|
|
948
987
|
extent;
|
|
949
988
|
position_3d_high;
|
|
950
989
|
position_3d_high_size;
|
|
@@ -975,11 +1014,11 @@ var ye = class {
|
|
|
975
1014
|
outline_batch_index_size;
|
|
976
1015
|
constructor(e) {
|
|
977
1016
|
let t = e.extent;
|
|
978
|
-
this.extent = t ? new
|
|
1017
|
+
this.extent = t ? new Se(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 be(e.rtc_translation) : void 0;
|
|
979
1018
|
let n = e.outline();
|
|
980
1019
|
n && (this.outline_position = n.position()?.slice(), this.outline_position_size = n.position_size(), this.outline_position_3d_high = n.position_3d_high()?.slice(), this.outline_position_3d_high_size = n.position_3d_high_size(), this.outline_position_3d_low = n.position_3d_low()?.slice(), this.outline_position_3d_low_size = n.position_3d_low_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());
|
|
981
1020
|
}
|
|
982
|
-
},
|
|
1021
|
+
}, we = class {
|
|
983
1022
|
extent;
|
|
984
1023
|
position;
|
|
985
1024
|
position_size;
|
|
@@ -999,31 +1038,33 @@ var ye = class {
|
|
|
999
1038
|
end_high_size;
|
|
1000
1039
|
end_low;
|
|
1001
1040
|
end_low_size;
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1041
|
+
start_normal_and_length_high;
|
|
1042
|
+
start_normal_and_length_high_size;
|
|
1043
|
+
end_normal_and_segment_length;
|
|
1044
|
+
end_normal_and_segment_length_size;
|
|
1045
|
+
right_normal_and_line_length;
|
|
1046
|
+
right_normal_and_line_length_size;
|
|
1008
1047
|
batch_id;
|
|
1009
1048
|
batch_id_size;
|
|
1010
1049
|
batch_index;
|
|
1011
1050
|
batch_index_size;
|
|
1012
1051
|
indices;
|
|
1052
|
+
line_segments;
|
|
1053
|
+
line_distance_and_ends;
|
|
1013
1054
|
constructor(e) {
|
|
1014
1055
|
let t = e.extent;
|
|
1015
|
-
this.extent = t ? new
|
|
1056
|
+
this.extent = t ? new Se(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_normal_and_length_high = e.start_normal_and_length_high()?.slice(), this.start_normal_and_length_high_size = e.start_normal_and_length_high_size(), this.end_normal_and_segment_length = e.end_normal_and_segment_length()?.slice(), this.end_normal_and_segment_length_size = e.end_normal_and_segment_length_size(), this.right_normal_and_line_length = e.right_normal_and_line_length().slice(), this.right_normal_and_line_length_size = e.right_normal_and_line_length_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.line_segments = e.line_segments()?.slice(), this.line_distance_and_ends = e.line_distance_and_ends()?.slice();
|
|
1016
1057
|
}
|
|
1017
1058
|
};
|
|
1018
|
-
function
|
|
1059
|
+
function Te(e, t) {
|
|
1019
1060
|
return e == null || t == null ? NaN : e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN;
|
|
1020
1061
|
}
|
|
1021
|
-
function
|
|
1062
|
+
function Ee(e, t) {
|
|
1022
1063
|
return e == null || t == null ? NaN : t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN;
|
|
1023
1064
|
}
|
|
1024
|
-
function
|
|
1065
|
+
function De(e) {
|
|
1025
1066
|
let t, n, r;
|
|
1026
|
-
e.length === 2 ? (t = e ===
|
|
1067
|
+
e.length === 2 ? (t = e === Te || e === Ee ? e : Oe, n = e, r = e) : (t = Te, n = (t, n) => Te(e(t), n), r = (t, n) => e(t) - n);
|
|
1027
1068
|
function i(e, r, i = 0, a = e.length) {
|
|
1028
1069
|
if (i < a) {
|
|
1029
1070
|
if (t(r, r) !== 0) return a;
|
|
@@ -1054,26 +1095,26 @@ function Ee(e) {
|
|
|
1054
1095
|
right: a
|
|
1055
1096
|
};
|
|
1056
1097
|
}
|
|
1057
|
-
function
|
|
1098
|
+
function Oe() {
|
|
1058
1099
|
return 0;
|
|
1059
1100
|
}
|
|
1060
|
-
function
|
|
1101
|
+
function ke(e) {
|
|
1061
1102
|
return e === null ? NaN : +e;
|
|
1062
1103
|
}
|
|
1063
|
-
var
|
|
1064
|
-
|
|
1065
|
-
var
|
|
1066
|
-
function
|
|
1104
|
+
var Ae = De(Te);
|
|
1105
|
+
Ae.right, Ae.left, De(ke).center;
|
|
1106
|
+
var je = { value: () => {} };
|
|
1107
|
+
function Me() {
|
|
1067
1108
|
for (var e = 0, t = arguments.length, n = {}, r; e < t; ++e) {
|
|
1068
1109
|
if (!(r = arguments[e] + "") || r in n || /[\s.]/.test(r)) throw Error("illegal type: " + r);
|
|
1069
1110
|
n[r] = [];
|
|
1070
1111
|
}
|
|
1071
|
-
return new
|
|
1112
|
+
return new Ne(n);
|
|
1072
1113
|
}
|
|
1073
|
-
function
|
|
1114
|
+
function Ne(e) {
|
|
1074
1115
|
this._ = e;
|
|
1075
1116
|
}
|
|
1076
|
-
function
|
|
1117
|
+
function Pe(e, t) {
|
|
1077
1118
|
return e.trim().split(/^|\s+/).map(function(e) {
|
|
1078
1119
|
var n = "", r = e.indexOf(".");
|
|
1079
1120
|
if (r >= 0 && (n = e.slice(r + 1), e = e.slice(0, r)), e && !t.hasOwnProperty(e)) throw Error("unknown type: " + e);
|
|
@@ -1083,23 +1124,23 @@ function Ne(e, t) {
|
|
|
1083
1124
|
};
|
|
1084
1125
|
});
|
|
1085
1126
|
}
|
|
1086
|
-
|
|
1087
|
-
constructor:
|
|
1127
|
+
Ne.prototype = Me.prototype = {
|
|
1128
|
+
constructor: Ne,
|
|
1088
1129
|
on: function(e, t) {
|
|
1089
|
-
var n = this._, r =
|
|
1130
|
+
var n = this._, r = Pe(e + "", n), i, a = -1, o = r.length;
|
|
1090
1131
|
if (arguments.length < 2) {
|
|
1091
|
-
for (; ++a < o;) if ((i = (e = r[a]).type) && (i =
|
|
1092
|
-
|
|
1132
|
+
for (; ++a < o;) if ((i = (e = r[a]).type) && (i = Fe(n[i], e.name))) return i;
|
|
1133
|
+
} else {
|
|
1134
|
+
if (t != null && typeof t != "function") throw Error("invalid callback: " + t);
|
|
1135
|
+
for (; ++a < o;) if (i = (e = r[a]).type) n[i] = Ie(n[i], e.name, t);
|
|
1136
|
+
else if (t == null) for (i in n) n[i] = Ie(n[i], e.name, null);
|
|
1137
|
+
return this;
|
|
1093
1138
|
}
|
|
1094
|
-
if (t != null && typeof t != "function") throw Error("invalid callback: " + t);
|
|
1095
|
-
for (; ++a < o;) if (i = (e = r[a]).type) n[i] = Fe(n[i], e.name, t);
|
|
1096
|
-
else if (t == null) for (i in n) n[i] = Fe(n[i], e.name, null);
|
|
1097
|
-
return this;
|
|
1098
1139
|
},
|
|
1099
1140
|
copy: function() {
|
|
1100
1141
|
var e = {}, t = this._;
|
|
1101
1142
|
for (var n in t) e[n] = t[n].slice();
|
|
1102
|
-
return new
|
|
1143
|
+
return new Ne(e);
|
|
1103
1144
|
},
|
|
1104
1145
|
call: function(e, t) {
|
|
1105
1146
|
if ((i = arguments.length - 2) > 0) for (var n = Array(i), r = 0, i, a; r < i; ++r) n[r] = arguments[r + 2];
|
|
@@ -1111,12 +1152,12 @@ Me.prototype = je.prototype = {
|
|
|
1111
1152
|
for (var r = this._[e], i = 0, a = r.length; i < a; ++i) r[i].value.apply(t, n);
|
|
1112
1153
|
}
|
|
1113
1154
|
};
|
|
1114
|
-
function
|
|
1155
|
+
function Fe(e, t) {
|
|
1115
1156
|
for (var n = 0, r = e.length, i; n < r; ++n) if ((i = e[n]).name === t) return i.value;
|
|
1116
1157
|
}
|
|
1117
|
-
function
|
|
1158
|
+
function Ie(e, t, n) {
|
|
1118
1159
|
for (var r = 0, i = e.length; r < i; ++r) if (e[r].name === t) {
|
|
1119
|
-
e[r] =
|
|
1160
|
+
e[r] = je, e = e.slice(0, r).concat(e.slice(r + 1));
|
|
1120
1161
|
break;
|
|
1121
1162
|
}
|
|
1122
1163
|
return n != null && e.push({
|
|
@@ -1124,117 +1165,117 @@ function Fe(e, t, n) {
|
|
|
1124
1165
|
value: n
|
|
1125
1166
|
}), e;
|
|
1126
1167
|
}
|
|
1127
|
-
var
|
|
1168
|
+
var Le = {
|
|
1128
1169
|
svg: "http://www.w3.org/2000/svg",
|
|
1129
1170
|
xhtml: "http://www.w3.org/1999/xhtml",
|
|
1130
1171
|
xlink: "http://www.w3.org/1999/xlink",
|
|
1131
1172
|
xml: "http://www.w3.org/XML/1998/namespace",
|
|
1132
1173
|
xmlns: "http://www.w3.org/2000/xmlns/"
|
|
1133
1174
|
};
|
|
1134
|
-
function
|
|
1175
|
+
function Re(e) {
|
|
1135
1176
|
var t = e += "", n = t.indexOf(":");
|
|
1136
|
-
return n >= 0 && (t = e.slice(0, n)) !== "xmlns" && (e = e.slice(n + 1)),
|
|
1137
|
-
space:
|
|
1177
|
+
return n >= 0 && (t = e.slice(0, n)) !== "xmlns" && (e = e.slice(n + 1)), Le.hasOwnProperty(t) ? {
|
|
1178
|
+
space: Le[t],
|
|
1138
1179
|
local: e
|
|
1139
1180
|
} : e;
|
|
1140
1181
|
}
|
|
1141
|
-
function
|
|
1182
|
+
function ze(e) {
|
|
1142
1183
|
return function() {
|
|
1143
1184
|
var t = this.ownerDocument, n = this.namespaceURI;
|
|
1144
1185
|
return n === "http://www.w3.org/1999/xhtml" && t.documentElement.namespaceURI === "http://www.w3.org/1999/xhtml" ? t.createElement(e) : t.createElementNS(n, e);
|
|
1145
1186
|
};
|
|
1146
1187
|
}
|
|
1147
|
-
function
|
|
1188
|
+
function Be(e) {
|
|
1148
1189
|
return function() {
|
|
1149
1190
|
return this.ownerDocument.createElementNS(e.space, e.local);
|
|
1150
1191
|
};
|
|
1151
1192
|
}
|
|
1152
|
-
function
|
|
1153
|
-
var t =
|
|
1154
|
-
return (t.local ?
|
|
1193
|
+
function Ve(e) {
|
|
1194
|
+
var t = Re(e);
|
|
1195
|
+
return (t.local ? Be : ze)(t);
|
|
1155
1196
|
}
|
|
1156
|
-
function
|
|
1157
|
-
function
|
|
1158
|
-
return e == null ?
|
|
1197
|
+
function He() {}
|
|
1198
|
+
function Ue(e) {
|
|
1199
|
+
return e == null ? He : function() {
|
|
1159
1200
|
return this.querySelector(e);
|
|
1160
1201
|
};
|
|
1161
1202
|
}
|
|
1162
|
-
function
|
|
1163
|
-
typeof e != "function" && (e =
|
|
1203
|
+
function We(e) {
|
|
1204
|
+
typeof e != "function" && (e = Ue(e));
|
|
1164
1205
|
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);
|
|
1165
1206
|
return new k(r, this._parents);
|
|
1166
1207
|
}
|
|
1167
|
-
function
|
|
1208
|
+
function Ge(e) {
|
|
1168
1209
|
return e == null ? [] : Array.isArray(e) ? e : Array.from(e);
|
|
1169
1210
|
}
|
|
1170
|
-
function
|
|
1211
|
+
function Ke() {
|
|
1171
1212
|
return [];
|
|
1172
1213
|
}
|
|
1173
|
-
function
|
|
1174
|
-
return e == null ?
|
|
1214
|
+
function qe(e) {
|
|
1215
|
+
return e == null ? Ke : function() {
|
|
1175
1216
|
return this.querySelectorAll(e);
|
|
1176
1217
|
};
|
|
1177
1218
|
}
|
|
1178
|
-
function
|
|
1219
|
+
function Je(e) {
|
|
1179
1220
|
return function() {
|
|
1180
|
-
return
|
|
1221
|
+
return Ge(e.apply(this, arguments));
|
|
1181
1222
|
};
|
|
1182
1223
|
}
|
|
1183
|
-
function
|
|
1184
|
-
e = typeof e == "function" ?
|
|
1224
|
+
function Ye(e) {
|
|
1225
|
+
e = typeof e == "function" ? Je(e) : qe(e);
|
|
1185
1226
|
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));
|
|
1186
1227
|
return new k(r, i);
|
|
1187
1228
|
}
|
|
1188
|
-
function
|
|
1229
|
+
function Xe(e) {
|
|
1189
1230
|
return function() {
|
|
1190
1231
|
return this.matches(e);
|
|
1191
1232
|
};
|
|
1192
1233
|
}
|
|
1193
|
-
function
|
|
1234
|
+
function Ze(e) {
|
|
1194
1235
|
return function(t) {
|
|
1195
1236
|
return t.matches(e);
|
|
1196
1237
|
};
|
|
1197
1238
|
}
|
|
1198
|
-
var
|
|
1199
|
-
function
|
|
1239
|
+
var Qe = Array.prototype.find;
|
|
1240
|
+
function $e(e) {
|
|
1200
1241
|
return function() {
|
|
1201
|
-
return
|
|
1242
|
+
return Qe.call(this.children, e);
|
|
1202
1243
|
};
|
|
1203
1244
|
}
|
|
1204
|
-
function
|
|
1245
|
+
function et() {
|
|
1205
1246
|
return this.firstElementChild;
|
|
1206
1247
|
}
|
|
1207
|
-
function
|
|
1208
|
-
return this.select(e == null ?
|
|
1248
|
+
function tt(e) {
|
|
1249
|
+
return this.select(e == null ? et : $e(typeof e == "function" ? e : Ze(e)));
|
|
1209
1250
|
}
|
|
1210
|
-
var
|
|
1211
|
-
function
|
|
1251
|
+
var nt = Array.prototype.filter;
|
|
1252
|
+
function rt() {
|
|
1212
1253
|
return Array.from(this.children);
|
|
1213
1254
|
}
|
|
1214
|
-
function
|
|
1255
|
+
function it(e) {
|
|
1215
1256
|
return function() {
|
|
1216
|
-
return
|
|
1257
|
+
return nt.call(this.children, e);
|
|
1217
1258
|
};
|
|
1218
1259
|
}
|
|
1219
|
-
function it(e) {
|
|
1220
|
-
return this.selectAll(e == null ? nt : rt(typeof e == "function" ? e : Xe(e)));
|
|
1221
|
-
}
|
|
1222
1260
|
function at(e) {
|
|
1223
|
-
typeof e
|
|
1261
|
+
return this.selectAll(e == null ? rt : it(typeof e == "function" ? e : Ze(e)));
|
|
1262
|
+
}
|
|
1263
|
+
function ot(e) {
|
|
1264
|
+
typeof e != "function" && (e = Xe(e));
|
|
1224
1265
|
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);
|
|
1225
1266
|
return new k(r, this._parents);
|
|
1226
1267
|
}
|
|
1227
|
-
function
|
|
1268
|
+
function st(e) {
|
|
1228
1269
|
return Array(e.length);
|
|
1229
1270
|
}
|
|
1230
|
-
function
|
|
1231
|
-
return new k(this._enter || this._groups.map(
|
|
1271
|
+
function ct() {
|
|
1272
|
+
return new k(this._enter || this._groups.map(st), this._parents);
|
|
1232
1273
|
}
|
|
1233
|
-
function
|
|
1274
|
+
function lt(e, t) {
|
|
1234
1275
|
this.ownerDocument = e.ownerDocument, this.namespaceURI = e.namespaceURI, this._next = null, this._parent = e, this.__data__ = t;
|
|
1235
1276
|
}
|
|
1236
|
-
|
|
1237
|
-
constructor:
|
|
1277
|
+
lt.prototype = {
|
|
1278
|
+
constructor: lt,
|
|
1238
1279
|
appendChild: function(e) {
|
|
1239
1280
|
return this._parent.insertBefore(e, this._next);
|
|
1240
1281
|
},
|
|
@@ -1248,30 +1289,30 @@ ct.prototype = {
|
|
|
1248
1289
|
return this._parent.querySelectorAll(e);
|
|
1249
1290
|
}
|
|
1250
1291
|
};
|
|
1251
|
-
function
|
|
1292
|
+
function ut(e) {
|
|
1252
1293
|
return function() {
|
|
1253
1294
|
return e;
|
|
1254
1295
|
};
|
|
1255
1296
|
}
|
|
1256
|
-
function
|
|
1257
|
-
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
|
|
1297
|
+
function dt(e, t, n, r, i, a) {
|
|
1298
|
+
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 lt(e, a[o]);
|
|
1258
1299
|
for (; o < c; ++o) (s = t[o]) && (i[o] = s);
|
|
1259
1300
|
}
|
|
1260
|
-
function
|
|
1301
|
+
function ft(e, t, n, r, i, a, o) {
|
|
1261
1302
|
var s, c, l = /* @__PURE__ */ new Map(), u = t.length, d = a.length, f = Array(u), p;
|
|
1262
1303
|
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));
|
|
1263
|
-
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
|
|
1304
|
+
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 lt(e, a[s]);
|
|
1264
1305
|
for (s = 0; s < u; ++s) (c = t[s]) && l.get(f[s]) === c && (i[s] = c);
|
|
1265
1306
|
}
|
|
1266
|
-
function
|
|
1307
|
+
function pt(e) {
|
|
1267
1308
|
return e.__data__;
|
|
1268
1309
|
}
|
|
1269
|
-
function
|
|
1270
|
-
if (!arguments.length) return Array.from(this,
|
|
1271
|
-
var n = t ?
|
|
1272
|
-
typeof e != "function" && (e =
|
|
1310
|
+
function mt(e, t) {
|
|
1311
|
+
if (!arguments.length) return Array.from(this, pt);
|
|
1312
|
+
var n = t ? ft : dt, r = this._parents, i = this._groups;
|
|
1313
|
+
typeof e != "function" && (e = ut(e));
|
|
1273
1314
|
for (var a = i.length, o = Array(a), s = Array(a), c = Array(a), l = 0; l < a; ++l) {
|
|
1274
|
-
var u = r[l], d = i[l], f = d.length, p =
|
|
1315
|
+
var u = r[l], d = i[l], f = d.length, p = ht(e.call(u, u && u.__data__, l, r)), m = p.length, h = s[l] = Array(m), g = o[l] = Array(m);
|
|
1275
1316
|
n(u, d, h, g, c[l] = Array(f), p, t);
|
|
1276
1317
|
for (var _ = 0, v = 0, y, b; _ < m; ++_) if (y = h[_]) {
|
|
1277
1318
|
for (_ >= v && (v = _ + 1); !(b = g[v]) && ++v < m;);
|
|
@@ -1280,27 +1321,27 @@ function pt(e, t) {
|
|
|
1280
1321
|
}
|
|
1281
1322
|
return o = new k(o, r), o._enter = s, o._exit = c, o;
|
|
1282
1323
|
}
|
|
1283
|
-
function
|
|
1324
|
+
function ht(e) {
|
|
1284
1325
|
return typeof e == "object" && "length" in e ? e : Array.from(e);
|
|
1285
1326
|
}
|
|
1286
|
-
function
|
|
1287
|
-
return new k(this._exit || this._groups.map(
|
|
1327
|
+
function gt() {
|
|
1328
|
+
return new k(this._exit || this._groups.map(st), this._parents);
|
|
1288
1329
|
}
|
|
1289
|
-
function
|
|
1330
|
+
function _t(e, t, n) {
|
|
1290
1331
|
var r = this.enter(), i = this, a = this.exit();
|
|
1291
1332
|
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;
|
|
1292
1333
|
}
|
|
1293
|
-
function
|
|
1334
|
+
function vt(e) {
|
|
1294
1335
|
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);
|
|
1295
1336
|
for (; c < i; ++c) s[c] = n[c];
|
|
1296
1337
|
return new k(s, this._parents);
|
|
1297
1338
|
}
|
|
1298
|
-
function
|
|
1339
|
+
function yt() {
|
|
1299
1340
|
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);
|
|
1300
1341
|
return this;
|
|
1301
1342
|
}
|
|
1302
|
-
function
|
|
1303
|
-
e ||=
|
|
1343
|
+
function bt(e) {
|
|
1344
|
+
e ||= xt;
|
|
1304
1345
|
function t(t, n) {
|
|
1305
1346
|
return t && n ? e(t.__data__, n.__data__) : !t - !n;
|
|
1306
1347
|
}
|
|
@@ -1310,129 +1351,129 @@ function yt(e) {
|
|
|
1310
1351
|
}
|
|
1311
1352
|
return new k(i, this._parents).order();
|
|
1312
1353
|
}
|
|
1313
|
-
function
|
|
1354
|
+
function xt(e, t) {
|
|
1314
1355
|
return e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN;
|
|
1315
1356
|
}
|
|
1316
|
-
function
|
|
1357
|
+
function St() {
|
|
1317
1358
|
var e = arguments[0];
|
|
1318
1359
|
return arguments[0] = this, e.apply(null, arguments), this;
|
|
1319
1360
|
}
|
|
1320
|
-
function
|
|
1361
|
+
function Ct() {
|
|
1321
1362
|
return Array.from(this);
|
|
1322
1363
|
}
|
|
1323
|
-
function
|
|
1364
|
+
function wt() {
|
|
1324
1365
|
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) {
|
|
1325
1366
|
var o = r[i];
|
|
1326
1367
|
if (o) return o;
|
|
1327
1368
|
}
|
|
1328
1369
|
return null;
|
|
1329
1370
|
}
|
|
1330
|
-
function
|
|
1371
|
+
function Tt() {
|
|
1331
1372
|
let e = 0;
|
|
1332
1373
|
for (let t of this) ++e;
|
|
1333
1374
|
return e;
|
|
1334
1375
|
}
|
|
1335
|
-
function
|
|
1376
|
+
function Et() {
|
|
1336
1377
|
return !this.node();
|
|
1337
1378
|
}
|
|
1338
|
-
function
|
|
1379
|
+
function Dt(e) {
|
|
1339
1380
|
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);
|
|
1340
1381
|
return this;
|
|
1341
1382
|
}
|
|
1342
|
-
function
|
|
1383
|
+
function Ot(e) {
|
|
1343
1384
|
return function() {
|
|
1344
1385
|
this.removeAttribute(e);
|
|
1345
1386
|
};
|
|
1346
1387
|
}
|
|
1347
|
-
function
|
|
1388
|
+
function kt(e) {
|
|
1348
1389
|
return function() {
|
|
1349
1390
|
this.removeAttributeNS(e.space, e.local);
|
|
1350
1391
|
};
|
|
1351
1392
|
}
|
|
1352
|
-
function
|
|
1393
|
+
function At(e, t) {
|
|
1353
1394
|
return function() {
|
|
1354
1395
|
this.setAttribute(e, t);
|
|
1355
1396
|
};
|
|
1356
1397
|
}
|
|
1357
|
-
function
|
|
1398
|
+
function jt(e, t) {
|
|
1358
1399
|
return function() {
|
|
1359
1400
|
this.setAttributeNS(e.space, e.local, t);
|
|
1360
1401
|
};
|
|
1361
1402
|
}
|
|
1362
|
-
function
|
|
1403
|
+
function Mt(e, t) {
|
|
1363
1404
|
return function() {
|
|
1364
1405
|
var n = t.apply(this, arguments);
|
|
1365
1406
|
n == null ? this.removeAttribute(e) : this.setAttribute(e, n);
|
|
1366
1407
|
};
|
|
1367
1408
|
}
|
|
1368
|
-
function
|
|
1409
|
+
function Nt(e, t) {
|
|
1369
1410
|
return function() {
|
|
1370
1411
|
var n = t.apply(this, arguments);
|
|
1371
1412
|
n == null ? this.removeAttributeNS(e.space, e.local) : this.setAttributeNS(e.space, e.local, n);
|
|
1372
1413
|
};
|
|
1373
1414
|
}
|
|
1374
|
-
function
|
|
1375
|
-
var n =
|
|
1415
|
+
function Pt(e, t) {
|
|
1416
|
+
var n = Re(e);
|
|
1376
1417
|
if (arguments.length < 2) {
|
|
1377
1418
|
var r = this.node();
|
|
1378
1419
|
return n.local ? r.getAttributeNS(n.space, n.local) : r.getAttribute(n);
|
|
1379
1420
|
}
|
|
1380
|
-
return this.each((t == null ? n.local ?
|
|
1421
|
+
return this.each((t == null ? n.local ? kt : Ot : typeof t == "function" ? n.local ? Nt : Mt : n.local ? jt : At)(n, t));
|
|
1381
1422
|
}
|
|
1382
|
-
function
|
|
1423
|
+
function Ft(e) {
|
|
1383
1424
|
return e.ownerDocument && e.ownerDocument.defaultView || e.document && e || e.defaultView;
|
|
1384
1425
|
}
|
|
1385
|
-
function
|
|
1426
|
+
function It(e) {
|
|
1386
1427
|
return function() {
|
|
1387
1428
|
this.style.removeProperty(e);
|
|
1388
1429
|
};
|
|
1389
1430
|
}
|
|
1390
|
-
function
|
|
1431
|
+
function Lt(e, t, n) {
|
|
1391
1432
|
return function() {
|
|
1392
1433
|
this.style.setProperty(e, t, n);
|
|
1393
1434
|
};
|
|
1394
1435
|
}
|
|
1395
|
-
function
|
|
1436
|
+
function Rt(e, t, n) {
|
|
1396
1437
|
return function() {
|
|
1397
1438
|
var r = t.apply(this, arguments);
|
|
1398
1439
|
r == null ? this.style.removeProperty(e) : this.style.setProperty(e, r, n);
|
|
1399
1440
|
};
|
|
1400
1441
|
}
|
|
1401
|
-
function
|
|
1402
|
-
return arguments.length > 1 ? this.each((t == null ?
|
|
1442
|
+
function zt(e, t, n) {
|
|
1443
|
+
return arguments.length > 1 ? this.each((t == null ? It : typeof t == "function" ? Rt : Lt)(e, t, n ?? "")) : O(this.node(), e);
|
|
1403
1444
|
}
|
|
1404
1445
|
function O(e, t) {
|
|
1405
|
-
return e.style.getPropertyValue(t) ||
|
|
1446
|
+
return e.style.getPropertyValue(t) || Ft(e).getComputedStyle(e, null).getPropertyValue(t);
|
|
1406
1447
|
}
|
|
1407
|
-
function
|
|
1448
|
+
function Bt(e) {
|
|
1408
1449
|
return function() {
|
|
1409
1450
|
delete this[e];
|
|
1410
1451
|
};
|
|
1411
1452
|
}
|
|
1412
|
-
function
|
|
1453
|
+
function Vt(e, t) {
|
|
1413
1454
|
return function() {
|
|
1414
1455
|
this[e] = t;
|
|
1415
1456
|
};
|
|
1416
1457
|
}
|
|
1417
|
-
function
|
|
1458
|
+
function Ht(e, t) {
|
|
1418
1459
|
return function() {
|
|
1419
1460
|
var n = t.apply(this, arguments);
|
|
1420
1461
|
n == null ? delete this[e] : this[e] = n;
|
|
1421
1462
|
};
|
|
1422
1463
|
}
|
|
1423
|
-
function
|
|
1424
|
-
return arguments.length > 1 ? this.each((t == null ?
|
|
1425
|
-
}
|
|
1426
|
-
function Ut(e) {
|
|
1427
|
-
return e.trim().split(/^|\s+/);
|
|
1464
|
+
function Ut(e, t) {
|
|
1465
|
+
return arguments.length > 1 ? this.each((t == null ? Bt : typeof t == "function" ? Ht : Vt)(e, t)) : this.node()[e];
|
|
1428
1466
|
}
|
|
1429
1467
|
function Wt(e) {
|
|
1430
|
-
return e.
|
|
1468
|
+
return e.trim().split(/^|\s+/);
|
|
1431
1469
|
}
|
|
1432
1470
|
function Gt(e) {
|
|
1433
|
-
|
|
1471
|
+
return e.classList || new Kt(e);
|
|
1472
|
+
}
|
|
1473
|
+
function Kt(e) {
|
|
1474
|
+
this._node = e, this._names = Wt(e.getAttribute("class") || "");
|
|
1434
1475
|
}
|
|
1435
|
-
|
|
1476
|
+
Kt.prototype = {
|
|
1436
1477
|
add: function(e) {
|
|
1437
1478
|
this._names.indexOf(e) < 0 && (this._names.push(e), this._node.setAttribute("class", this._names.join(" ")));
|
|
1438
1479
|
},
|
|
@@ -1444,123 +1485,123 @@ Gt.prototype = {
|
|
|
1444
1485
|
return this._names.indexOf(e) >= 0;
|
|
1445
1486
|
}
|
|
1446
1487
|
};
|
|
1447
|
-
function Kt(e, t) {
|
|
1448
|
-
for (var n = Wt(e), r = -1, i = t.length; ++r < i;) n.add(t[r]);
|
|
1449
|
-
}
|
|
1450
1488
|
function qt(e, t) {
|
|
1451
|
-
for (var n =
|
|
1489
|
+
for (var n = Gt(e), r = -1, i = t.length; ++r < i;) n.add(t[r]);
|
|
1452
1490
|
}
|
|
1453
|
-
function Jt(e) {
|
|
1454
|
-
|
|
1455
|
-
Kt(this, e);
|
|
1456
|
-
};
|
|
1491
|
+
function Jt(e, t) {
|
|
1492
|
+
for (var n = Gt(e), r = -1, i = t.length; ++r < i;) n.remove(t[r]);
|
|
1457
1493
|
}
|
|
1458
1494
|
function Yt(e) {
|
|
1459
1495
|
return function() {
|
|
1460
1496
|
qt(this, e);
|
|
1461
1497
|
};
|
|
1462
1498
|
}
|
|
1463
|
-
function Xt(e
|
|
1499
|
+
function Xt(e) {
|
|
1464
1500
|
return function() {
|
|
1465
|
-
(
|
|
1501
|
+
Jt(this, e);
|
|
1466
1502
|
};
|
|
1467
1503
|
}
|
|
1468
1504
|
function Zt(e, t) {
|
|
1469
|
-
|
|
1505
|
+
return function() {
|
|
1506
|
+
(t.apply(this, arguments) ? qt : Jt)(this, e);
|
|
1507
|
+
};
|
|
1508
|
+
}
|
|
1509
|
+
function Qt(e, t) {
|
|
1510
|
+
var n = Wt(e + "");
|
|
1470
1511
|
if (arguments.length < 2) {
|
|
1471
|
-
for (var r =
|
|
1512
|
+
for (var r = Gt(this.node()), i = -1, a = n.length; ++i < a;) if (!r.contains(n[i])) return !1;
|
|
1472
1513
|
return !0;
|
|
1473
1514
|
}
|
|
1474
|
-
return this.each((typeof t == "function" ?
|
|
1515
|
+
return this.each((typeof t == "function" ? Zt : t ? Yt : Xt)(n, t));
|
|
1475
1516
|
}
|
|
1476
|
-
function
|
|
1517
|
+
function $t() {
|
|
1477
1518
|
this.textContent = "";
|
|
1478
1519
|
}
|
|
1479
|
-
function
|
|
1520
|
+
function en(e) {
|
|
1480
1521
|
return function() {
|
|
1481
1522
|
this.textContent = e;
|
|
1482
1523
|
};
|
|
1483
1524
|
}
|
|
1484
|
-
function
|
|
1525
|
+
function tn(e) {
|
|
1485
1526
|
return function() {
|
|
1486
1527
|
var t = e.apply(this, arguments);
|
|
1487
1528
|
this.textContent = t ?? "";
|
|
1488
1529
|
};
|
|
1489
1530
|
}
|
|
1490
|
-
function
|
|
1491
|
-
return arguments.length ? this.each(e == null ?
|
|
1531
|
+
function nn(e) {
|
|
1532
|
+
return arguments.length ? this.each(e == null ? $t : (typeof e == "function" ? tn : en)(e)) : this.node().textContent;
|
|
1492
1533
|
}
|
|
1493
|
-
function
|
|
1534
|
+
function rn() {
|
|
1494
1535
|
this.innerHTML = "";
|
|
1495
1536
|
}
|
|
1496
|
-
function
|
|
1537
|
+
function an(e) {
|
|
1497
1538
|
return function() {
|
|
1498
1539
|
this.innerHTML = e;
|
|
1499
1540
|
};
|
|
1500
1541
|
}
|
|
1501
|
-
function
|
|
1542
|
+
function on(e) {
|
|
1502
1543
|
return function() {
|
|
1503
1544
|
var t = e.apply(this, arguments);
|
|
1504
1545
|
this.innerHTML = t ?? "";
|
|
1505
1546
|
};
|
|
1506
1547
|
}
|
|
1507
|
-
function
|
|
1508
|
-
return arguments.length ? this.each(e == null ?
|
|
1509
|
-
}
|
|
1510
|
-
function sn() {
|
|
1511
|
-
this.nextSibling && this.parentNode.appendChild(this);
|
|
1548
|
+
function sn(e) {
|
|
1549
|
+
return arguments.length ? this.each(e == null ? rn : (typeof e == "function" ? on : an)(e)) : this.node().innerHTML;
|
|
1512
1550
|
}
|
|
1513
1551
|
function cn() {
|
|
1514
|
-
|
|
1552
|
+
this.nextSibling && this.parentNode.appendChild(this);
|
|
1515
1553
|
}
|
|
1516
1554
|
function ln() {
|
|
1517
|
-
|
|
1555
|
+
return this.each(cn);
|
|
1518
1556
|
}
|
|
1519
1557
|
function un() {
|
|
1520
|
-
|
|
1558
|
+
this.previousSibling && this.parentNode.insertBefore(this, this.parentNode.firstChild);
|
|
1521
1559
|
}
|
|
1522
|
-
function dn(
|
|
1523
|
-
|
|
1560
|
+
function dn() {
|
|
1561
|
+
return this.each(un);
|
|
1562
|
+
}
|
|
1563
|
+
function fn(e) {
|
|
1564
|
+
var t = typeof e == "function" ? e : Ve(e);
|
|
1524
1565
|
return this.select(function() {
|
|
1525
1566
|
return this.appendChild(t.apply(this, arguments));
|
|
1526
1567
|
});
|
|
1527
1568
|
}
|
|
1528
|
-
function
|
|
1569
|
+
function pn() {
|
|
1529
1570
|
return null;
|
|
1530
1571
|
}
|
|
1531
|
-
function
|
|
1532
|
-
var n = typeof e == "function" ? e :
|
|
1572
|
+
function mn(e, t) {
|
|
1573
|
+
var n = typeof e == "function" ? e : Ve(e), r = t == null ? pn : typeof t == "function" ? t : Ue(t);
|
|
1533
1574
|
return this.select(function() {
|
|
1534
1575
|
return this.insertBefore(n.apply(this, arguments), r.apply(this, arguments) || null);
|
|
1535
1576
|
});
|
|
1536
1577
|
}
|
|
1537
|
-
function
|
|
1578
|
+
function hn() {
|
|
1538
1579
|
var e = this.parentNode;
|
|
1539
1580
|
e && e.removeChild(this);
|
|
1540
1581
|
}
|
|
1541
|
-
function hn() {
|
|
1542
|
-
return this.each(mn);
|
|
1543
|
-
}
|
|
1544
1582
|
function gn() {
|
|
1583
|
+
return this.each(hn);
|
|
1584
|
+
}
|
|
1585
|
+
function _n() {
|
|
1545
1586
|
var e = this.cloneNode(!1), t = this.parentNode;
|
|
1546
1587
|
return t ? t.insertBefore(e, this.nextSibling) : e;
|
|
1547
1588
|
}
|
|
1548
|
-
function
|
|
1589
|
+
function vn() {
|
|
1549
1590
|
var e = this.cloneNode(!0), t = this.parentNode;
|
|
1550
1591
|
return t ? t.insertBefore(e, this.nextSibling) : e;
|
|
1551
1592
|
}
|
|
1552
|
-
function vn(e) {
|
|
1553
|
-
return this.select(e ? _n : gn);
|
|
1554
|
-
}
|
|
1555
1593
|
function yn(e) {
|
|
1556
|
-
return
|
|
1594
|
+
return this.select(e ? vn : _n);
|
|
1557
1595
|
}
|
|
1558
1596
|
function bn(e) {
|
|
1597
|
+
return arguments.length ? this.property("__data__", e) : this.node().__data__;
|
|
1598
|
+
}
|
|
1599
|
+
function xn(e) {
|
|
1559
1600
|
return function(t) {
|
|
1560
1601
|
e.call(this, t, this.__data__);
|
|
1561
1602
|
};
|
|
1562
1603
|
}
|
|
1563
|
-
function
|
|
1604
|
+
function Sn(e) {
|
|
1564
1605
|
return e.trim().split(/^|\s+/).map(function(e) {
|
|
1565
1606
|
var t = "", n = e.indexOf(".");
|
|
1566
1607
|
return n >= 0 && (t = e.slice(n + 1), e = e.slice(0, n)), {
|
|
@@ -1569,7 +1610,7 @@ function xn(e) {
|
|
|
1569
1610
|
};
|
|
1570
1611
|
});
|
|
1571
1612
|
}
|
|
1572
|
-
function
|
|
1613
|
+
function Cn(e) {
|
|
1573
1614
|
return function() {
|
|
1574
1615
|
var t = this.__on;
|
|
1575
1616
|
if (t) {
|
|
@@ -1578,9 +1619,9 @@ function Sn(e) {
|
|
|
1578
1619
|
}
|
|
1579
1620
|
};
|
|
1580
1621
|
}
|
|
1581
|
-
function
|
|
1622
|
+
function wn(e, t, n) {
|
|
1582
1623
|
return function() {
|
|
1583
|
-
var r = this.__on, i, a =
|
|
1624
|
+
var r = this.__on, i, a = xn(t);
|
|
1584
1625
|
if (r) {
|
|
1585
1626
|
for (var o = 0, s = r.length; o < s; ++o) if ((i = r[o]).type === e.type && i.name === e.name) {
|
|
1586
1627
|
this.removeEventListener(i.type, i.listener, i.options), this.addEventListener(i.type, i.listener = a, i.options = n), i.value = t;
|
|
@@ -1596,96 +1637,96 @@ function Cn(e, t, n) {
|
|
|
1596
1637
|
}, r ? r.push(i) : this.__on = [i];
|
|
1597
1638
|
};
|
|
1598
1639
|
}
|
|
1599
|
-
function
|
|
1600
|
-
var r =
|
|
1640
|
+
function Tn(e, t, n) {
|
|
1641
|
+
var r = Sn(e + ""), i, a = r.length, o;
|
|
1601
1642
|
if (arguments.length < 2) {
|
|
1602
1643
|
var s = this.node().__on;
|
|
1603
1644
|
if (s) {
|
|
1604
1645
|
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;
|
|
1605
1646
|
}
|
|
1606
|
-
|
|
1647
|
+
} else {
|
|
1648
|
+
for (s = t ? wn : Cn, i = 0; i < a; ++i) this.each(s(r[i], t, n));
|
|
1649
|
+
return this;
|
|
1607
1650
|
}
|
|
1608
|
-
for (s = t ? Cn : Sn, i = 0; i < a; ++i) this.each(s(r[i], t, n));
|
|
1609
|
-
return this;
|
|
1610
1651
|
}
|
|
1611
|
-
function
|
|
1612
|
-
var r =
|
|
1652
|
+
function En(e, t, n) {
|
|
1653
|
+
var r = Ft(e), i = r.CustomEvent;
|
|
1613
1654
|
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);
|
|
1614
1655
|
}
|
|
1615
|
-
function
|
|
1656
|
+
function Dn(e, t) {
|
|
1616
1657
|
return function() {
|
|
1617
|
-
return
|
|
1658
|
+
return En(this, e, t);
|
|
1618
1659
|
};
|
|
1619
1660
|
}
|
|
1620
|
-
function
|
|
1661
|
+
function On(e, t) {
|
|
1621
1662
|
return function() {
|
|
1622
|
-
return
|
|
1663
|
+
return En(this, e, t.apply(this, arguments));
|
|
1623
1664
|
};
|
|
1624
1665
|
}
|
|
1625
|
-
function
|
|
1626
|
-
return this.each((typeof t == "function" ?
|
|
1666
|
+
function kn(e, t) {
|
|
1667
|
+
return this.each((typeof t == "function" ? On : Dn)(e, t));
|
|
1627
1668
|
}
|
|
1628
|
-
function*
|
|
1669
|
+
function* An() {
|
|
1629
1670
|
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);
|
|
1630
1671
|
}
|
|
1631
|
-
var
|
|
1672
|
+
var jn = [null];
|
|
1632
1673
|
function k(e, t) {
|
|
1633
1674
|
this._groups = e, this._parents = t;
|
|
1634
1675
|
}
|
|
1635
1676
|
function A() {
|
|
1636
|
-
return new k([[document.documentElement]],
|
|
1677
|
+
return new k([[document.documentElement]], jn);
|
|
1637
1678
|
}
|
|
1638
|
-
function
|
|
1679
|
+
function Mn() {
|
|
1639
1680
|
return this;
|
|
1640
1681
|
}
|
|
1641
1682
|
k.prototype = A.prototype = {
|
|
1642
1683
|
constructor: k,
|
|
1643
|
-
select:
|
|
1644
|
-
selectAll:
|
|
1645
|
-
selectChild:
|
|
1646
|
-
selectChildren:
|
|
1647
|
-
filter:
|
|
1648
|
-
data:
|
|
1649
|
-
enter:
|
|
1650
|
-
exit:
|
|
1651
|
-
join:
|
|
1652
|
-
merge:
|
|
1653
|
-
selection:
|
|
1654
|
-
order:
|
|
1655
|
-
sort:
|
|
1656
|
-
call:
|
|
1657
|
-
nodes:
|
|
1658
|
-
node:
|
|
1659
|
-
size:
|
|
1660
|
-
empty:
|
|
1661
|
-
each:
|
|
1662
|
-
attr:
|
|
1663
|
-
style:
|
|
1664
|
-
property:
|
|
1665
|
-
classed:
|
|
1666
|
-
text:
|
|
1667
|
-
html:
|
|
1668
|
-
raise:
|
|
1669
|
-
lower:
|
|
1670
|
-
append:
|
|
1671
|
-
insert:
|
|
1672
|
-
remove:
|
|
1673
|
-
clone:
|
|
1674
|
-
datum:
|
|
1675
|
-
on:
|
|
1676
|
-
dispatch:
|
|
1677
|
-
[Symbol.iterator]:
|
|
1684
|
+
select: We,
|
|
1685
|
+
selectAll: Ye,
|
|
1686
|
+
selectChild: tt,
|
|
1687
|
+
selectChildren: at,
|
|
1688
|
+
filter: ot,
|
|
1689
|
+
data: mt,
|
|
1690
|
+
enter: ct,
|
|
1691
|
+
exit: gt,
|
|
1692
|
+
join: _t,
|
|
1693
|
+
merge: vt,
|
|
1694
|
+
selection: Mn,
|
|
1695
|
+
order: yt,
|
|
1696
|
+
sort: bt,
|
|
1697
|
+
call: St,
|
|
1698
|
+
nodes: Ct,
|
|
1699
|
+
node: wt,
|
|
1700
|
+
size: Tt,
|
|
1701
|
+
empty: Et,
|
|
1702
|
+
each: Dt,
|
|
1703
|
+
attr: Pt,
|
|
1704
|
+
style: zt,
|
|
1705
|
+
property: Ut,
|
|
1706
|
+
classed: Qt,
|
|
1707
|
+
text: nn,
|
|
1708
|
+
html: sn,
|
|
1709
|
+
raise: ln,
|
|
1710
|
+
lower: dn,
|
|
1711
|
+
append: fn,
|
|
1712
|
+
insert: mn,
|
|
1713
|
+
remove: gn,
|
|
1714
|
+
clone: yn,
|
|
1715
|
+
datum: bn,
|
|
1716
|
+
on: Tn,
|
|
1717
|
+
dispatch: kn,
|
|
1718
|
+
[Symbol.iterator]: An
|
|
1678
1719
|
};
|
|
1679
|
-
function
|
|
1720
|
+
function Nn(e, t, n) {
|
|
1680
1721
|
e.prototype = t.prototype = n, n.constructor = e;
|
|
1681
1722
|
}
|
|
1682
|
-
function
|
|
1723
|
+
function Pn(e, t) {
|
|
1683
1724
|
var n = Object.create(e.prototype);
|
|
1684
1725
|
for (var r in t) n[r] = t[r];
|
|
1685
1726
|
return n;
|
|
1686
1727
|
}
|
|
1687
1728
|
function j() {}
|
|
1688
|
-
var M = .7,
|
|
1729
|
+
var M = .7, Fn = 1 / M, N = "\\s*([+-]?\\d+)\\s*", P = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", F = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", In = /^#([0-9a-f]{3,8})$/, Ln = RegExp(`^rgb\\(${N},${N},${N}\\)$`), Rn = RegExp(`^rgb\\(${F},${F},${F}\\)$`), zn = RegExp(`^rgba\\(${N},${N},${N},${P}\\)$`), Bn = RegExp(`^rgba\\(${F},${F},${F},${P}\\)$`), Vn = RegExp(`^hsl\\(${P},${F},${F}\\)$`), Hn = RegExp(`^hsla\\(${P},${F},${F},${P}\\)$`), Un = {
|
|
1689
1730
|
aliceblue: 15792383,
|
|
1690
1731
|
antiquewhite: 16444375,
|
|
1691
1732
|
aqua: 65535,
|
|
@@ -1835,54 +1876,54 @@ var M = .7, Pn = 1 / M, N = "\\s*([+-]?\\d+)\\s*", P = "\\s*([+-]?(?:\\d*\\.)?\\
|
|
|
1835
1876
|
yellow: 16776960,
|
|
1836
1877
|
yellowgreen: 10145074
|
|
1837
1878
|
};
|
|
1838
|
-
|
|
1879
|
+
Nn(j, I, {
|
|
1839
1880
|
copy(e) {
|
|
1840
1881
|
return Object.assign(new this.constructor(), this, e);
|
|
1841
1882
|
},
|
|
1842
1883
|
displayable() {
|
|
1843
1884
|
return this.rgb().displayable();
|
|
1844
1885
|
},
|
|
1845
|
-
hex:
|
|
1846
|
-
formatHex:
|
|
1847
|
-
formatHex8:
|
|
1848
|
-
formatHsl:
|
|
1849
|
-
formatRgb:
|
|
1850
|
-
toString:
|
|
1886
|
+
hex: Wn,
|
|
1887
|
+
formatHex: Wn,
|
|
1888
|
+
formatHex8: Gn,
|
|
1889
|
+
formatHsl: Kn,
|
|
1890
|
+
formatRgb: qn,
|
|
1891
|
+
toString: qn
|
|
1851
1892
|
});
|
|
1852
|
-
function Un() {
|
|
1853
|
-
return this.rgb().formatHex();
|
|
1854
|
-
}
|
|
1855
1893
|
function Wn() {
|
|
1856
|
-
return this.rgb().
|
|
1894
|
+
return this.rgb().formatHex();
|
|
1857
1895
|
}
|
|
1858
1896
|
function Gn() {
|
|
1859
|
-
return
|
|
1897
|
+
return this.rgb().formatHex8();
|
|
1860
1898
|
}
|
|
1861
1899
|
function Kn() {
|
|
1900
|
+
return rr(this).formatHsl();
|
|
1901
|
+
}
|
|
1902
|
+
function qn() {
|
|
1862
1903
|
return this.rgb().formatRgb();
|
|
1863
1904
|
}
|
|
1864
1905
|
function I(e) {
|
|
1865
1906
|
var t, n;
|
|
1866
|
-
return e = (e + "").trim().toLowerCase(), (t =
|
|
1907
|
+
return e = (e + "").trim().toLowerCase(), (t = In.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? Jn(t) : n === 3 ? new L(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? Yn(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? Yn(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 = Ln.exec(e)) ? new L(t[1], t[2], t[3], 1) : (t = Rn.exec(e)) ? new L(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = zn.exec(e)) ? Yn(t[1], t[2], t[3], t[4]) : (t = Bn.exec(e)) ? Yn(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = Vn.exec(e)) ? nr(t[1], t[2] / 100, t[3] / 100, 1) : (t = Hn.exec(e)) ? nr(t[1], t[2] / 100, t[3] / 100, t[4]) : Un.hasOwnProperty(e) ? Jn(Un[e]) : e === "transparent" ? new L(NaN, NaN, NaN, 0) : null;
|
|
1867
1908
|
}
|
|
1868
|
-
function
|
|
1909
|
+
function Jn(e) {
|
|
1869
1910
|
return new L(e >> 16 & 255, e >> 8 & 255, e & 255, 1);
|
|
1870
1911
|
}
|
|
1871
|
-
function
|
|
1912
|
+
function Yn(e, t, n, r) {
|
|
1872
1913
|
return r <= 0 && (e = t = n = NaN), new L(e, t, n, r);
|
|
1873
1914
|
}
|
|
1874
|
-
function
|
|
1915
|
+
function Xn(e) {
|
|
1875
1916
|
return e instanceof j || (e = I(e)), e ? (e = e.rgb(), new L(e.r, e.g, e.b, e.opacity)) : new L();
|
|
1876
1917
|
}
|
|
1877
|
-
function
|
|
1878
|
-
return arguments.length === 1 ?
|
|
1918
|
+
function Zn(e, t, n, r) {
|
|
1919
|
+
return arguments.length === 1 ? Xn(e) : new L(e, t, n, r ?? 1);
|
|
1879
1920
|
}
|
|
1880
1921
|
function L(e, t, n, r) {
|
|
1881
1922
|
this.r = +e, this.g = +t, this.b = +n, this.opacity = +r;
|
|
1882
1923
|
}
|
|
1883
|
-
|
|
1924
|
+
Nn(L, Zn, Pn(j, {
|
|
1884
1925
|
brighter(e) {
|
|
1885
|
-
return e = e == null ?
|
|
1926
|
+
return e = e == null ? Fn : Fn ** +e, new L(this.r * e, this.g * e, this.b * e, this.opacity);
|
|
1886
1927
|
},
|
|
1887
1928
|
darker(e) {
|
|
1888
1929
|
return e = e == null ? M : M ** +e, new L(this.r * e, this.g * e, this.b * e, this.opacity);
|
|
@@ -1891,28 +1932,28 @@ Mn(L, Xn, Nn(j, {
|
|
|
1891
1932
|
return this;
|
|
1892
1933
|
},
|
|
1893
1934
|
clamp() {
|
|
1894
|
-
return new L(R(this.r), R(this.g), R(this.b),
|
|
1935
|
+
return new L(R(this.r), R(this.g), R(this.b), tr(this.opacity));
|
|
1895
1936
|
},
|
|
1896
1937
|
displayable() {
|
|
1897
1938
|
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;
|
|
1898
1939
|
},
|
|
1899
|
-
hex:
|
|
1900
|
-
formatHex:
|
|
1901
|
-
formatHex8:
|
|
1902
|
-
formatRgb:
|
|
1903
|
-
toString:
|
|
1940
|
+
hex: Qn,
|
|
1941
|
+
formatHex: Qn,
|
|
1942
|
+
formatHex8: $n,
|
|
1943
|
+
formatRgb: er,
|
|
1944
|
+
toString: er
|
|
1904
1945
|
}));
|
|
1905
|
-
function
|
|
1946
|
+
function Qn() {
|
|
1906
1947
|
return `#${z(this.r)}${z(this.g)}${z(this.b)}`;
|
|
1907
1948
|
}
|
|
1908
|
-
function
|
|
1949
|
+
function $n() {
|
|
1909
1950
|
return `#${z(this.r)}${z(this.g)}${z(this.b)}${z((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
|
|
1910
1951
|
}
|
|
1911
|
-
function
|
|
1912
|
-
let e =
|
|
1952
|
+
function er() {
|
|
1953
|
+
let e = tr(this.opacity);
|
|
1913
1954
|
return `${e === 1 ? "rgb(" : "rgba("}${R(this.r)}, ${R(this.g)}, ${R(this.b)}${e === 1 ? ")" : `, ${e})`}`;
|
|
1914
1955
|
}
|
|
1915
|
-
function
|
|
1956
|
+
function tr(e) {
|
|
1916
1957
|
return isNaN(e) ? 1 : Math.max(0, Math.min(1, e));
|
|
1917
1958
|
}
|
|
1918
1959
|
function R(e) {
|
|
@@ -1921,10 +1962,10 @@ function R(e) {
|
|
|
1921
1962
|
function z(e) {
|
|
1922
1963
|
return e = R(e), (e < 16 ? "0" : "") + e.toString(16);
|
|
1923
1964
|
}
|
|
1924
|
-
function
|
|
1965
|
+
function nr(e, t, n, r) {
|
|
1925
1966
|
return r <= 0 ? e = t = n = NaN : n <= 0 || n >= 1 ? e = t = NaN : t <= 0 && (e = NaN), new B(e, t, n, r);
|
|
1926
1967
|
}
|
|
1927
|
-
function
|
|
1968
|
+
function rr(e) {
|
|
1928
1969
|
if (e instanceof B) return new B(e.h, e.s, e.l, e.opacity);
|
|
1929
1970
|
if (e instanceof j || (e = I(e)), !e) return new B();
|
|
1930
1971
|
if (e instanceof B) return e;
|
|
@@ -1932,67 +1973,67 @@ function nr(e) {
|
|
|
1932
1973
|
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;
|
|
1933
1974
|
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 B(o, s, c, e.opacity);
|
|
1934
1975
|
}
|
|
1935
|
-
function
|
|
1936
|
-
return arguments.length === 1 ?
|
|
1976
|
+
function ir(e, t, n, r) {
|
|
1977
|
+
return arguments.length === 1 ? rr(e) : new B(e, t, n, r ?? 1);
|
|
1937
1978
|
}
|
|
1938
1979
|
function B(e, t, n, r) {
|
|
1939
1980
|
this.h = +e, this.s = +t, this.l = +n, this.opacity = +r;
|
|
1940
1981
|
}
|
|
1941
|
-
|
|
1982
|
+
Nn(B, ir, Pn(j, {
|
|
1942
1983
|
brighter(e) {
|
|
1943
|
-
return e = e == null ?
|
|
1984
|
+
return e = e == null ? Fn : Fn ** +e, new B(this.h, this.s, this.l * e, this.opacity);
|
|
1944
1985
|
},
|
|
1945
1986
|
darker(e) {
|
|
1946
1987
|
return e = e == null ? M : M ** +e, new B(this.h, this.s, this.l * e, this.opacity);
|
|
1947
1988
|
},
|
|
1948
1989
|
rgb() {
|
|
1949
1990
|
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;
|
|
1950
|
-
return new L(
|
|
1991
|
+
return new L(sr(e >= 240 ? e - 240 : e + 120, i, r), sr(e, i, r), sr(e < 120 ? e + 240 : e - 120, i, r), this.opacity);
|
|
1951
1992
|
},
|
|
1952
1993
|
clamp() {
|
|
1953
|
-
return new B(
|
|
1994
|
+
return new B(ar(this.h), or(this.s), or(this.l), tr(this.opacity));
|
|
1954
1995
|
},
|
|
1955
1996
|
displayable() {
|
|
1956
1997
|
return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1;
|
|
1957
1998
|
},
|
|
1958
1999
|
formatHsl() {
|
|
1959
|
-
let e =
|
|
1960
|
-
return `${e === 1 ? "hsl(" : "hsla("}${
|
|
2000
|
+
let e = tr(this.opacity);
|
|
2001
|
+
return `${e === 1 ? "hsl(" : "hsla("}${ar(this.h)}, ${or(this.s) * 100}%, ${or(this.l) * 100}%${e === 1 ? ")" : `, ${e})`}`;
|
|
1961
2002
|
}
|
|
1962
2003
|
}));
|
|
1963
|
-
function
|
|
2004
|
+
function ar(e) {
|
|
1964
2005
|
return e = (e || 0) % 360, e < 0 ? e + 360 : e;
|
|
1965
2006
|
}
|
|
1966
|
-
function
|
|
2007
|
+
function or(e) {
|
|
1967
2008
|
return Math.max(0, Math.min(1, e || 0));
|
|
1968
2009
|
}
|
|
1969
|
-
function
|
|
2010
|
+
function sr(e, t, n) {
|
|
1970
2011
|
return (e < 60 ? t + (n - t) * e / 60 : e < 180 ? n : e < 240 ? t + (n - t) * (240 - e) / 60 : t) * 255;
|
|
1971
2012
|
}
|
|
1972
|
-
var
|
|
1973
|
-
function
|
|
2013
|
+
var cr = (e) => () => e;
|
|
2014
|
+
function lr(e, t) {
|
|
1974
2015
|
return function(n) {
|
|
1975
2016
|
return e + n * t;
|
|
1976
2017
|
};
|
|
1977
2018
|
}
|
|
1978
|
-
function
|
|
2019
|
+
function ur(e, t, n) {
|
|
1979
2020
|
return e **= +n, t = t ** +n - e, n = 1 / n, function(r) {
|
|
1980
2021
|
return (e + r * t) ** +n;
|
|
1981
2022
|
};
|
|
1982
2023
|
}
|
|
1983
|
-
function
|
|
1984
|
-
return (e = +e) == 1 ?
|
|
1985
|
-
return n - t ?
|
|
2024
|
+
function dr(e) {
|
|
2025
|
+
return (e = +e) == 1 ? fr : function(t, n) {
|
|
2026
|
+
return n - t ? ur(t, n, e) : cr(isNaN(t) ? n : t);
|
|
1986
2027
|
};
|
|
1987
2028
|
}
|
|
1988
|
-
function
|
|
2029
|
+
function fr(e, t) {
|
|
1989
2030
|
var n = t - e;
|
|
1990
|
-
return n ?
|
|
2031
|
+
return n ? lr(e, n) : cr(isNaN(e) ? t : e);
|
|
1991
2032
|
}
|
|
1992
|
-
var
|
|
1993
|
-
var n =
|
|
2033
|
+
var pr = (function e(t) {
|
|
2034
|
+
var n = dr(t);
|
|
1994
2035
|
function r(e, t) {
|
|
1995
|
-
var r = n((e =
|
|
2036
|
+
var r = n((e = Zn(e)).r, (t = Zn(t)).r), i = n(e.g, t.g), a = n(e.b, t.b), o = fr(e.opacity, t.opacity);
|
|
1996
2037
|
return function(t) {
|
|
1997
2038
|
return e.r = r(t), e.g = i(t), e.b = a(t), e.opacity = o(t), e + "";
|
|
1998
2039
|
};
|
|
@@ -2004,29 +2045,29 @@ function V(e, t) {
|
|
|
2004
2045
|
return e * (1 - n) + t * n;
|
|
2005
2046
|
};
|
|
2006
2047
|
}
|
|
2007
|
-
var
|
|
2008
|
-
function
|
|
2048
|
+
var mr = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, hr = new RegExp(mr.source, "g");
|
|
2049
|
+
function gr(e) {
|
|
2009
2050
|
return function() {
|
|
2010
2051
|
return e;
|
|
2011
2052
|
};
|
|
2012
2053
|
}
|
|
2013
|
-
function
|
|
2054
|
+
function _r(e) {
|
|
2014
2055
|
return function(t) {
|
|
2015
2056
|
return e(t) + "";
|
|
2016
2057
|
};
|
|
2017
2058
|
}
|
|
2018
|
-
function
|
|
2019
|
-
var n =
|
|
2020
|
-
for (e += "", t += ""; (r =
|
|
2059
|
+
function vr(e, t) {
|
|
2060
|
+
var n = mr.lastIndex = hr.lastIndex = 0, r, i, a, o = -1, s = [], c = [];
|
|
2061
|
+
for (e += "", t += ""; (r = mr.exec(e)) && (i = hr.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({
|
|
2021
2062
|
i: o,
|
|
2022
2063
|
x: V(r, i)
|
|
2023
|
-
})), n =
|
|
2024
|
-
return n < t.length && (a = t.slice(n), s[o] ? s[o] += a : s[++o] = a), s.length < 2 ? c[0] ?
|
|
2064
|
+
})), n = hr.lastIndex;
|
|
2065
|
+
return n < t.length && (a = t.slice(n), s[o] ? s[o] += a : s[++o] = a), s.length < 2 ? c[0] ? _r(c[0].x) : gr(t) : (t = c.length, function(e) {
|
|
2025
2066
|
for (var n = 0, r; n < t; ++n) s[(r = c[n]).i] = r.x(e);
|
|
2026
2067
|
return s.join("");
|
|
2027
2068
|
});
|
|
2028
2069
|
}
|
|
2029
|
-
var
|
|
2070
|
+
var yr = 180 / Math.PI, br = {
|
|
2030
2071
|
translateX: 0,
|
|
2031
2072
|
translateY: 0,
|
|
2032
2073
|
rotate: 0,
|
|
@@ -2034,26 +2075,26 @@ var vr = 180 / Math.PI, yr = {
|
|
|
2034
2075
|
scaleX: 1,
|
|
2035
2076
|
scaleY: 1
|
|
2036
2077
|
};
|
|
2037
|
-
function
|
|
2078
|
+
function xr(e, t, n, r, i, a) {
|
|
2038
2079
|
var o, s, c;
|
|
2039
2080
|
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), {
|
|
2040
2081
|
translateX: i,
|
|
2041
2082
|
translateY: a,
|
|
2042
|
-
rotate: Math.atan2(t, e) *
|
|
2043
|
-
skewX: Math.atan(c) *
|
|
2083
|
+
rotate: Math.atan2(t, e) * yr,
|
|
2084
|
+
skewX: Math.atan(c) * yr,
|
|
2044
2085
|
scaleX: o,
|
|
2045
2086
|
scaleY: s
|
|
2046
2087
|
};
|
|
2047
2088
|
}
|
|
2048
|
-
var
|
|
2049
|
-
function
|
|
2089
|
+
var Sr;
|
|
2090
|
+
function Cr(e) {
|
|
2050
2091
|
let t = new (typeof DOMMatrix == "function" ? DOMMatrix : WebKitCSSMatrix)(e + "");
|
|
2051
|
-
return t.isIdentity ?
|
|
2092
|
+
return t.isIdentity ? br : xr(t.a, t.b, t.c, t.d, t.e, t.f);
|
|
2052
2093
|
}
|
|
2053
|
-
function
|
|
2054
|
-
return e == null || (
|
|
2094
|
+
function wr(e) {
|
|
2095
|
+
return e == null || (Sr ||= document.createElementNS("http://www.w3.org/2000/svg", "g"), Sr.setAttribute("transform", e), !(e = Sr.transform.baseVal.consolidate())) ? br : (e = e.matrix, xr(e.a, e.b, e.c, e.d, e.e, e.f));
|
|
2055
2096
|
}
|
|
2056
|
-
function
|
|
2097
|
+
function Tr(e, t, n, r) {
|
|
2057
2098
|
function i(e) {
|
|
2058
2099
|
return e.length ? e.pop() + " " : "";
|
|
2059
2100
|
}
|
|
@@ -2101,73 +2142,73 @@ function wr(e, t, n, r) {
|
|
|
2101
2142
|
};
|
|
2102
2143
|
};
|
|
2103
2144
|
}
|
|
2104
|
-
var
|
|
2145
|
+
var Er = Tr(Cr, "px, ", "px)", "deg)"), Dr = Tr(wr, ", ", ")", ")"), H = 0, Or = 0, kr = 0, Ar = 1e3, jr, U, Mr = 0, W = 0, Nr = 0, G = typeof performance == "object" && performance.now ? performance : Date, Pr = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(e) {
|
|
2105
2146
|
setTimeout(e, 17);
|
|
2106
2147
|
};
|
|
2107
|
-
function Pr() {
|
|
2108
|
-
return W ||= (Nr(Fr), G.now() + Mr);
|
|
2109
|
-
}
|
|
2110
2148
|
function Fr() {
|
|
2111
|
-
W
|
|
2149
|
+
return W ||= (Pr(Ir), G.now() + Nr);
|
|
2112
2150
|
}
|
|
2113
2151
|
function Ir() {
|
|
2152
|
+
W = 0;
|
|
2153
|
+
}
|
|
2154
|
+
function Lr() {
|
|
2114
2155
|
this._call = this._time = this._next = null;
|
|
2115
2156
|
}
|
|
2116
|
-
|
|
2117
|
-
constructor:
|
|
2157
|
+
Lr.prototype = Rr.prototype = {
|
|
2158
|
+
constructor: Lr,
|
|
2118
2159
|
restart: function(e, t, n) {
|
|
2119
2160
|
if (typeof e != "function") throw TypeError("callback is not a function");
|
|
2120
|
-
n = (n == null ?
|
|
2161
|
+
n = (n == null ? Fr() : +n) + (t == null ? 0 : +t), !this._next && U !== this && (U ? U._next = this : jr = this, U = this), this._call = e, this._time = n, Ur();
|
|
2121
2162
|
},
|
|
2122
2163
|
stop: function() {
|
|
2123
|
-
this._call && (this._call = null, this._time = Infinity,
|
|
2164
|
+
this._call && (this._call = null, this._time = Infinity, Ur());
|
|
2124
2165
|
}
|
|
2125
2166
|
};
|
|
2126
|
-
function
|
|
2127
|
-
var r = new
|
|
2167
|
+
function Rr(e, t, n) {
|
|
2168
|
+
var r = new Lr();
|
|
2128
2169
|
return r.restart(e, t, n), r;
|
|
2129
2170
|
}
|
|
2130
|
-
function
|
|
2131
|
-
|
|
2132
|
-
for (var e =
|
|
2171
|
+
function zr() {
|
|
2172
|
+
Fr(), ++H;
|
|
2173
|
+
for (var e = jr, t; e;) (t = W - e._time) >= 0 && e._call.call(void 0, t), e = e._next;
|
|
2133
2174
|
--H;
|
|
2134
2175
|
}
|
|
2135
|
-
function
|
|
2136
|
-
W = (
|
|
2176
|
+
function Br() {
|
|
2177
|
+
W = (Mr = G.now()) + Nr, H = Or = 0;
|
|
2137
2178
|
try {
|
|
2138
|
-
|
|
2179
|
+
zr();
|
|
2139
2180
|
} finally {
|
|
2140
|
-
H = 0,
|
|
2181
|
+
H = 0, Hr(), W = 0;
|
|
2141
2182
|
}
|
|
2142
2183
|
}
|
|
2143
|
-
function Br() {
|
|
2144
|
-
var e = G.now(), t = e - jr;
|
|
2145
|
-
t > kr && (Mr -= t, jr = e);
|
|
2146
|
-
}
|
|
2147
2184
|
function Vr() {
|
|
2148
|
-
|
|
2149
|
-
|
|
2185
|
+
var e = G.now(), t = e - Mr;
|
|
2186
|
+
t > Ar && (Nr -= t, Mr = e);
|
|
2187
|
+
}
|
|
2188
|
+
function Hr() {
|
|
2189
|
+
for (var e, t = jr, 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 : jr = n);
|
|
2190
|
+
U = e, Ur(r);
|
|
2150
2191
|
}
|
|
2151
|
-
function
|
|
2152
|
-
H || (
|
|
2192
|
+
function Ur(e) {
|
|
2193
|
+
H || (Or &&= clearTimeout(Or), e - W > 24 ? (e < Infinity && (Or = setTimeout(Br, e - G.now() - Nr)), kr &&= clearInterval(kr)) : (kr ||= (Mr = G.now(), setInterval(Vr, Ar)), H = 1, Pr(Br)));
|
|
2153
2194
|
}
|
|
2154
|
-
function
|
|
2155
|
-
var r = new
|
|
2195
|
+
function Wr(e, t, n) {
|
|
2196
|
+
var r = new Lr();
|
|
2156
2197
|
return t = t == null ? 0 : +t, r.restart((n) => {
|
|
2157
2198
|
r.stop(), e(n + t);
|
|
2158
2199
|
}, t, n), r;
|
|
2159
2200
|
}
|
|
2160
|
-
var
|
|
2161
|
-
function
|
|
2201
|
+
var Gr = Me("start", "end", "cancel", "interrupt"), Kr = [];
|
|
2202
|
+
function qr(e, t, n, r, i, a) {
|
|
2162
2203
|
var o = e.__transition;
|
|
2163
2204
|
if (!o) e.__transition = {};
|
|
2164
2205
|
else if (n in o) return;
|
|
2165
|
-
|
|
2206
|
+
Yr(e, n, {
|
|
2166
2207
|
name: t,
|
|
2167
2208
|
index: r,
|
|
2168
2209
|
group: i,
|
|
2169
|
-
on:
|
|
2170
|
-
tween:
|
|
2210
|
+
on: Gr,
|
|
2211
|
+
tween: Kr,
|
|
2171
2212
|
time: a.time,
|
|
2172
2213
|
delay: a.delay,
|
|
2173
2214
|
duration: a.duration,
|
|
@@ -2176,7 +2217,7 @@ function Kr(e, t, n, r, i, a) {
|
|
|
2176
2217
|
state: 0
|
|
2177
2218
|
});
|
|
2178
2219
|
}
|
|
2179
|
-
function
|
|
2220
|
+
function Jr(e, t) {
|
|
2180
2221
|
var n = q(e, t);
|
|
2181
2222
|
if (n.state > 0) throw Error("too late; already scheduled");
|
|
2182
2223
|
return n;
|
|
@@ -2191,9 +2232,9 @@ function q(e, t) {
|
|
|
2191
2232
|
if (!n || !(n = n[t])) throw Error("transition not found");
|
|
2192
2233
|
return n;
|
|
2193
2234
|
}
|
|
2194
|
-
function
|
|
2235
|
+
function Yr(e, t, n) {
|
|
2195
2236
|
var r = e.__transition, i;
|
|
2196
|
-
r[t] = n, n.timer =
|
|
2237
|
+
r[t] = n, n.timer = Rr(a, 0, n.time);
|
|
2197
2238
|
function a(e) {
|
|
2198
2239
|
n.state = 1, n.timer.restart(o, n.delay, n.time), n.delay <= e && o(e - n.delay);
|
|
2199
2240
|
}
|
|
@@ -2201,10 +2242,10 @@ function Jr(e, t, n) {
|
|
|
2201
2242
|
var l, u, d, f;
|
|
2202
2243
|
if (n.state !== 1) return c();
|
|
2203
2244
|
for (l in r) if (f = r[l], f.name === n.name) {
|
|
2204
|
-
if (f.state === 3) return
|
|
2245
|
+
if (f.state === 3) return Wr(o);
|
|
2205
2246
|
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]);
|
|
2206
2247
|
}
|
|
2207
|
-
if (
|
|
2248
|
+
if (Wr(function() {
|
|
2208
2249
|
n.state === 3 && (n.state = 4, n.timer.restart(s, n.delay, n.time), s(a));
|
|
2209
2250
|
}), n.state = 2, n.on.call("start", e, e.__data__, n.index, n.group), n.state === 2) {
|
|
2210
2251
|
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);
|
|
@@ -2220,25 +2261,19 @@ function Jr(e, t, n) {
|
|
|
2220
2261
|
delete e.__transition;
|
|
2221
2262
|
}
|
|
2222
2263
|
}
|
|
2223
|
-
function
|
|
2264
|
+
function Xr(e, t) {
|
|
2224
2265
|
var n = e.__transition, r, i, a = !0, o;
|
|
2225
2266
|
if (n) {
|
|
2226
|
-
for (o in t = t == null ? null : t + "", n)
|
|
2227
|
-
if ((r = n[o]).name !== t) {
|
|
2228
|
-
a = !1;
|
|
2229
|
-
continue;
|
|
2230
|
-
}
|
|
2231
|
-
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];
|
|
2232
|
-
}
|
|
2267
|
+
for (o in t = t == null ? null : t + "", n) (r = n[o]).name === t ? (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]) : a = !1;
|
|
2233
2268
|
a && delete e.__transition;
|
|
2234
2269
|
}
|
|
2235
2270
|
}
|
|
2236
|
-
function
|
|
2271
|
+
function Zr(e) {
|
|
2237
2272
|
return this.each(function() {
|
|
2238
|
-
|
|
2273
|
+
Xr(this, e);
|
|
2239
2274
|
});
|
|
2240
2275
|
}
|
|
2241
|
-
function
|
|
2276
|
+
function Qr(e, t) {
|
|
2242
2277
|
var n, r;
|
|
2243
2278
|
return function() {
|
|
2244
2279
|
var i = K(this, e), a = i.tween;
|
|
@@ -2252,7 +2287,7 @@ function Zr(e, t) {
|
|
|
2252
2287
|
i.tween = r;
|
|
2253
2288
|
};
|
|
2254
2289
|
}
|
|
2255
|
-
function
|
|
2290
|
+
function $r(e, t, n) {
|
|
2256
2291
|
var r, i;
|
|
2257
2292
|
if (typeof n != "function") throw Error();
|
|
2258
2293
|
return function() {
|
|
@@ -2271,15 +2306,15 @@ function Qr(e, t, n) {
|
|
|
2271
2306
|
a.tween = i;
|
|
2272
2307
|
};
|
|
2273
2308
|
}
|
|
2274
|
-
function
|
|
2309
|
+
function ei(e, t) {
|
|
2275
2310
|
var n = this._id;
|
|
2276
2311
|
if (e += "", arguments.length < 2) {
|
|
2277
2312
|
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;
|
|
2278
2313
|
return null;
|
|
2279
2314
|
}
|
|
2280
|
-
return this.each((t == null ?
|
|
2315
|
+
return this.each((t == null ? Qr : $r)(n, e, t));
|
|
2281
2316
|
}
|
|
2282
|
-
function
|
|
2317
|
+
function ti(e, t, n) {
|
|
2283
2318
|
var r = e._id;
|
|
2284
2319
|
return e.each(function() {
|
|
2285
2320
|
var e = K(this, r);
|
|
@@ -2288,287 +2323,287 @@ function ei(e, t, n) {
|
|
|
2288
2323
|
return q(e, r).value[t];
|
|
2289
2324
|
};
|
|
2290
2325
|
}
|
|
2291
|
-
function
|
|
2326
|
+
function ni(e, t) {
|
|
2292
2327
|
var n;
|
|
2293
|
-
return (typeof t == "number" ? V : t instanceof I ?
|
|
2328
|
+
return (typeof t == "number" ? V : t instanceof I ? pr : (n = I(t)) ? (t = n, pr) : vr)(e, t);
|
|
2294
2329
|
}
|
|
2295
|
-
function
|
|
2330
|
+
function ri(e) {
|
|
2296
2331
|
return function() {
|
|
2297
2332
|
this.removeAttribute(e);
|
|
2298
2333
|
};
|
|
2299
2334
|
}
|
|
2300
|
-
function
|
|
2335
|
+
function ii(e) {
|
|
2301
2336
|
return function() {
|
|
2302
2337
|
this.removeAttributeNS(e.space, e.local);
|
|
2303
2338
|
};
|
|
2304
2339
|
}
|
|
2305
|
-
function
|
|
2340
|
+
function ai(e, t, n) {
|
|
2306
2341
|
var r, i = n + "", a;
|
|
2307
2342
|
return function() {
|
|
2308
2343
|
var o = this.getAttribute(e);
|
|
2309
2344
|
return o === i ? null : o === r ? a : a = t(r = o, n);
|
|
2310
2345
|
};
|
|
2311
2346
|
}
|
|
2312
|
-
function
|
|
2347
|
+
function oi(e, t, n) {
|
|
2313
2348
|
var r, i = n + "", a;
|
|
2314
2349
|
return function() {
|
|
2315
2350
|
var o = this.getAttributeNS(e.space, e.local);
|
|
2316
2351
|
return o === i ? null : o === r ? a : a = t(r = o, n);
|
|
2317
2352
|
};
|
|
2318
2353
|
}
|
|
2319
|
-
function
|
|
2354
|
+
function si(e, t, n) {
|
|
2320
2355
|
var r, i, a;
|
|
2321
2356
|
return function() {
|
|
2322
2357
|
var o, s = n(this), c;
|
|
2323
2358
|
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)));
|
|
2324
2359
|
};
|
|
2325
2360
|
}
|
|
2326
|
-
function
|
|
2361
|
+
function ci(e, t, n) {
|
|
2327
2362
|
var r, i, a;
|
|
2328
2363
|
return function() {
|
|
2329
2364
|
var o, s = n(this), c;
|
|
2330
2365
|
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)));
|
|
2331
2366
|
};
|
|
2332
2367
|
}
|
|
2333
|
-
function ci(e, t) {
|
|
2334
|
-
var n = Le(e), r = n === "transform" ? Er : ti;
|
|
2335
|
-
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));
|
|
2336
|
-
}
|
|
2337
2368
|
function li(e, t) {
|
|
2369
|
+
var n = Re(e), r = n === "transform" ? Dr : ni;
|
|
2370
|
+
return this.attrTween(e, typeof t == "function" ? (n.local ? ci : si)(n, r, ti(this, "attr." + e, t)) : t == null ? (n.local ? ii : ri)(n) : (n.local ? oi : ai)(n, r, t));
|
|
2371
|
+
}
|
|
2372
|
+
function ui(e, t) {
|
|
2338
2373
|
return function(n) {
|
|
2339
2374
|
this.setAttribute(e, t.call(this, n));
|
|
2340
2375
|
};
|
|
2341
2376
|
}
|
|
2342
|
-
function
|
|
2377
|
+
function di(e, t) {
|
|
2343
2378
|
return function(n) {
|
|
2344
2379
|
this.setAttributeNS(e.space, e.local, t.call(this, n));
|
|
2345
2380
|
};
|
|
2346
2381
|
}
|
|
2347
|
-
function
|
|
2382
|
+
function fi(e, t) {
|
|
2348
2383
|
var n, r;
|
|
2349
2384
|
function i() {
|
|
2350
2385
|
var i = t.apply(this, arguments);
|
|
2351
|
-
return i !== r && (n = (r = i) &&
|
|
2386
|
+
return i !== r && (n = (r = i) && di(e, i)), n;
|
|
2352
2387
|
}
|
|
2353
2388
|
return i._value = t, i;
|
|
2354
2389
|
}
|
|
2355
|
-
function
|
|
2390
|
+
function pi(e, t) {
|
|
2356
2391
|
var n, r;
|
|
2357
2392
|
function i() {
|
|
2358
2393
|
var i = t.apply(this, arguments);
|
|
2359
|
-
return i !== r && (n = (r = i) &&
|
|
2394
|
+
return i !== r && (n = (r = i) && ui(e, i)), n;
|
|
2360
2395
|
}
|
|
2361
2396
|
return i._value = t, i;
|
|
2362
2397
|
}
|
|
2363
|
-
function
|
|
2398
|
+
function mi(e, t) {
|
|
2364
2399
|
var n = "attr." + e;
|
|
2365
2400
|
if (arguments.length < 2) return (n = this.tween(n)) && n._value;
|
|
2366
2401
|
if (t == null) return this.tween(n, null);
|
|
2367
2402
|
if (typeof t != "function") throw Error();
|
|
2368
|
-
var r =
|
|
2369
|
-
return this.tween(n, (r.local ?
|
|
2403
|
+
var r = Re(e);
|
|
2404
|
+
return this.tween(n, (r.local ? fi : pi)(r, t));
|
|
2370
2405
|
}
|
|
2371
|
-
function
|
|
2406
|
+
function hi(e, t) {
|
|
2372
2407
|
return function() {
|
|
2373
|
-
|
|
2408
|
+
Jr(this, e).delay = +t.apply(this, arguments);
|
|
2374
2409
|
};
|
|
2375
2410
|
}
|
|
2376
|
-
function
|
|
2411
|
+
function gi(e, t) {
|
|
2377
2412
|
return t = +t, function() {
|
|
2378
|
-
|
|
2413
|
+
Jr(this, e).delay = t;
|
|
2379
2414
|
};
|
|
2380
2415
|
}
|
|
2381
|
-
function
|
|
2416
|
+
function _i(e) {
|
|
2382
2417
|
var t = this._id;
|
|
2383
|
-
return arguments.length ? this.each((typeof e == "function" ?
|
|
2418
|
+
return arguments.length ? this.each((typeof e == "function" ? hi : gi)(t, e)) : q(this.node(), t).delay;
|
|
2384
2419
|
}
|
|
2385
|
-
function
|
|
2420
|
+
function vi(e, t) {
|
|
2386
2421
|
return function() {
|
|
2387
2422
|
K(this, e).duration = +t.apply(this, arguments);
|
|
2388
2423
|
};
|
|
2389
2424
|
}
|
|
2390
|
-
function
|
|
2425
|
+
function yi(e, t) {
|
|
2391
2426
|
return t = +t, function() {
|
|
2392
2427
|
K(this, e).duration = t;
|
|
2393
2428
|
};
|
|
2394
2429
|
}
|
|
2395
|
-
function
|
|
2430
|
+
function bi(e) {
|
|
2396
2431
|
var t = this._id;
|
|
2397
|
-
return arguments.length ? this.each((typeof e == "function" ?
|
|
2432
|
+
return arguments.length ? this.each((typeof e == "function" ? vi : yi)(t, e)) : q(this.node(), t).duration;
|
|
2398
2433
|
}
|
|
2399
|
-
function
|
|
2434
|
+
function xi(e, t) {
|
|
2400
2435
|
if (typeof t != "function") throw Error();
|
|
2401
2436
|
return function() {
|
|
2402
2437
|
K(this, e).ease = t;
|
|
2403
2438
|
};
|
|
2404
2439
|
}
|
|
2405
|
-
function
|
|
2440
|
+
function Si(e) {
|
|
2406
2441
|
var t = this._id;
|
|
2407
|
-
return arguments.length ? this.each(
|
|
2442
|
+
return arguments.length ? this.each(xi(t, e)) : q(this.node(), t).ease;
|
|
2408
2443
|
}
|
|
2409
|
-
function
|
|
2444
|
+
function Ci(e, t) {
|
|
2410
2445
|
return function() {
|
|
2411
2446
|
var n = t.apply(this, arguments);
|
|
2412
2447
|
if (typeof n != "function") throw Error();
|
|
2413
2448
|
K(this, e).ease = n;
|
|
2414
2449
|
};
|
|
2415
2450
|
}
|
|
2416
|
-
function
|
|
2451
|
+
function wi(e) {
|
|
2417
2452
|
if (typeof e != "function") throw Error();
|
|
2418
|
-
return this.each(
|
|
2453
|
+
return this.each(Ci(this._id, e));
|
|
2419
2454
|
}
|
|
2420
|
-
function
|
|
2421
|
-
typeof e != "function" && (e =
|
|
2455
|
+
function Ti(e) {
|
|
2456
|
+
typeof e != "function" && (e = Xe(e));
|
|
2422
2457
|
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);
|
|
2423
2458
|
return new J(r, this._parents, this._name, this._id);
|
|
2424
2459
|
}
|
|
2425
|
-
function
|
|
2460
|
+
function Ei(e) {
|
|
2426
2461
|
if (e._id !== this._id) throw Error();
|
|
2427
2462
|
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);
|
|
2428
2463
|
for (; s < r; ++s) o[s] = t[s];
|
|
2429
2464
|
return new J(o, this._parents, this._name, this._id);
|
|
2430
2465
|
}
|
|
2431
|
-
function
|
|
2466
|
+
function Di(e) {
|
|
2432
2467
|
return (e + "").trim().split(/^|\s+/).every(function(e) {
|
|
2433
2468
|
var t = e.indexOf(".");
|
|
2434
2469
|
return t >= 0 && (e = e.slice(0, t)), !e || e === "start";
|
|
2435
2470
|
});
|
|
2436
2471
|
}
|
|
2437
|
-
function
|
|
2438
|
-
var r, i, a =
|
|
2472
|
+
function Oi(e, t, n) {
|
|
2473
|
+
var r, i, a = Di(t) ? Jr : K;
|
|
2439
2474
|
return function() {
|
|
2440
2475
|
var o = a(this, e), s = o.on;
|
|
2441
2476
|
s !== r && (i = (r = s).copy()).on(t, n), o.on = i;
|
|
2442
2477
|
};
|
|
2443
2478
|
}
|
|
2444
|
-
function
|
|
2479
|
+
function ki(e, t) {
|
|
2445
2480
|
var n = this._id;
|
|
2446
|
-
return arguments.length < 2 ? q(this.node(), n).on.on(e) : this.each(
|
|
2481
|
+
return arguments.length < 2 ? q(this.node(), n).on.on(e) : this.each(Oi(n, e, t));
|
|
2447
2482
|
}
|
|
2448
|
-
function
|
|
2483
|
+
function Ai(e) {
|
|
2449
2484
|
return function() {
|
|
2450
2485
|
var t = this.parentNode;
|
|
2451
2486
|
for (var n in this.__transition) if (+n !== e) return;
|
|
2452
2487
|
t && t.removeChild(this);
|
|
2453
2488
|
};
|
|
2454
2489
|
}
|
|
2455
|
-
function
|
|
2456
|
-
return this.on("end.remove",
|
|
2490
|
+
function ji() {
|
|
2491
|
+
return this.on("end.remove", Ai(this._id));
|
|
2457
2492
|
}
|
|
2458
|
-
function
|
|
2493
|
+
function Mi(e) {
|
|
2459
2494
|
var t = this._name, n = this._id;
|
|
2460
|
-
typeof e != "function" && (e =
|
|
2461
|
-
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,
|
|
2495
|
+
typeof e != "function" && (e = Ue(e));
|
|
2496
|
+
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, qr(l[f], t, n, f, l, q(u, n)));
|
|
2462
2497
|
return new J(a, this._parents, t, n);
|
|
2463
2498
|
}
|
|
2464
|
-
function
|
|
2499
|
+
function Ni(e) {
|
|
2465
2500
|
var t = this._name, n = this._id;
|
|
2466
|
-
typeof e != "function" && (e =
|
|
2501
|
+
typeof e != "function" && (e = qe(e));
|
|
2467
2502
|
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]) {
|
|
2468
|
-
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]) &&
|
|
2503
|
+
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]) && qr(p, t, n, h, f, m);
|
|
2469
2504
|
a.push(f), o.push(u);
|
|
2470
2505
|
}
|
|
2471
2506
|
return new J(a, o, t, n);
|
|
2472
2507
|
}
|
|
2473
|
-
var
|
|
2474
|
-
function
|
|
2475
|
-
return new
|
|
2508
|
+
var Pi = A.prototype.constructor;
|
|
2509
|
+
function Fi() {
|
|
2510
|
+
return new Pi(this._groups, this._parents);
|
|
2476
2511
|
}
|
|
2477
|
-
function
|
|
2512
|
+
function Ii(e, t) {
|
|
2478
2513
|
var n, r, i;
|
|
2479
2514
|
return function() {
|
|
2480
2515
|
var a = O(this, e), o = (this.style.removeProperty(e), O(this, e));
|
|
2481
2516
|
return a === o ? null : a === n && o === r ? i : i = t(n = a, r = o);
|
|
2482
2517
|
};
|
|
2483
2518
|
}
|
|
2484
|
-
function
|
|
2519
|
+
function Li(e) {
|
|
2485
2520
|
return function() {
|
|
2486
2521
|
this.style.removeProperty(e);
|
|
2487
2522
|
};
|
|
2488
2523
|
}
|
|
2489
|
-
function
|
|
2524
|
+
function Ri(e, t, n) {
|
|
2490
2525
|
var r, i = n + "", a;
|
|
2491
2526
|
return function() {
|
|
2492
2527
|
var o = O(this, e);
|
|
2493
2528
|
return o === i ? null : o === r ? a : a = t(r = o, n);
|
|
2494
2529
|
};
|
|
2495
2530
|
}
|
|
2496
|
-
function
|
|
2531
|
+
function zi(e, t, n) {
|
|
2497
2532
|
var r, i, a;
|
|
2498
2533
|
return function() {
|
|
2499
2534
|
var o = O(this, e), s = n(this), c = s + "";
|
|
2500
2535
|
return s ?? (c = s = (this.style.removeProperty(e), O(this, e))), o === c ? null : o === r && c === i ? a : (i = c, a = t(r = o, s));
|
|
2501
2536
|
};
|
|
2502
2537
|
}
|
|
2503
|
-
function
|
|
2538
|
+
function Bi(e, t) {
|
|
2504
2539
|
var n, r, i, a = "style." + t, o = "end." + a, s;
|
|
2505
2540
|
return function() {
|
|
2506
|
-
var c = K(this, e), l = c.on, u = c.value[a] == null ? s ||=
|
|
2541
|
+
var c = K(this, e), l = c.on, u = c.value[a] == null ? s ||= Li(t) : void 0;
|
|
2507
2542
|
(l !== n || i !== u) && (r = (n = l).copy()).on(o, i = u), c.on = r;
|
|
2508
2543
|
};
|
|
2509
2544
|
}
|
|
2510
|
-
function Bi(e, t, n) {
|
|
2511
|
-
var r = (e += "") == "transform" ? Tr : ti;
|
|
2512
|
-
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);
|
|
2513
|
-
}
|
|
2514
2545
|
function Vi(e, t, n) {
|
|
2546
|
+
var r = (e += "") == "transform" ? Er : ni;
|
|
2547
|
+
return t == null ? this.styleTween(e, Ii(e, r)).on("end.style." + e, Li(e)) : typeof t == "function" ? this.styleTween(e, zi(e, r, ti(this, "style." + e, t))).each(Bi(this._id, e)) : this.styleTween(e, Ri(e, r, t), n).on("end.style." + e, null);
|
|
2548
|
+
}
|
|
2549
|
+
function Hi(e, t, n) {
|
|
2515
2550
|
return function(r) {
|
|
2516
2551
|
this.style.setProperty(e, t.call(this, r), n);
|
|
2517
2552
|
};
|
|
2518
2553
|
}
|
|
2519
|
-
function
|
|
2554
|
+
function Ui(e, t, n) {
|
|
2520
2555
|
var r, i;
|
|
2521
2556
|
function a() {
|
|
2522
2557
|
var a = t.apply(this, arguments);
|
|
2523
|
-
return a !== i && (r = (i = a) &&
|
|
2558
|
+
return a !== i && (r = (i = a) && Hi(e, a, n)), r;
|
|
2524
2559
|
}
|
|
2525
2560
|
return a._value = t, a;
|
|
2526
2561
|
}
|
|
2527
|
-
function
|
|
2562
|
+
function Wi(e, t, n) {
|
|
2528
2563
|
var r = "style." + (e += "");
|
|
2529
2564
|
if (arguments.length < 2) return (r = this.tween(r)) && r._value;
|
|
2530
2565
|
if (t == null) return this.tween(r, null);
|
|
2531
2566
|
if (typeof t != "function") throw Error();
|
|
2532
|
-
return this.tween(r,
|
|
2567
|
+
return this.tween(r, Ui(e, t, n ?? ""));
|
|
2533
2568
|
}
|
|
2534
|
-
function
|
|
2569
|
+
function Gi(e) {
|
|
2535
2570
|
return function() {
|
|
2536
2571
|
this.textContent = e;
|
|
2537
2572
|
};
|
|
2538
2573
|
}
|
|
2539
|
-
function
|
|
2574
|
+
function Ki(e) {
|
|
2540
2575
|
return function() {
|
|
2541
2576
|
var t = e(this);
|
|
2542
2577
|
this.textContent = t ?? "";
|
|
2543
2578
|
};
|
|
2544
2579
|
}
|
|
2545
|
-
function Ki(e) {
|
|
2546
|
-
return this.tween("text", typeof e == "function" ? Gi(ei(this, "text", e)) : Wi(e == null ? "" : e + ""));
|
|
2547
|
-
}
|
|
2548
2580
|
function qi(e) {
|
|
2581
|
+
return this.tween("text", typeof e == "function" ? Ki(ti(this, "text", e)) : Gi(e == null ? "" : e + ""));
|
|
2582
|
+
}
|
|
2583
|
+
function Ji(e) {
|
|
2549
2584
|
return function(t) {
|
|
2550
2585
|
this.textContent = e.call(this, t);
|
|
2551
2586
|
};
|
|
2552
2587
|
}
|
|
2553
|
-
function
|
|
2588
|
+
function Yi(e) {
|
|
2554
2589
|
var t, n;
|
|
2555
2590
|
function r() {
|
|
2556
2591
|
var r = e.apply(this, arguments);
|
|
2557
|
-
return r !== n && (t = (n = r) &&
|
|
2592
|
+
return r !== n && (t = (n = r) && Ji(r)), t;
|
|
2558
2593
|
}
|
|
2559
2594
|
return r._value = e, r;
|
|
2560
2595
|
}
|
|
2561
|
-
function
|
|
2596
|
+
function Xi(e) {
|
|
2562
2597
|
var t = "text";
|
|
2563
2598
|
if (arguments.length < 1) return (t = this.tween(t)) && t._value;
|
|
2564
2599
|
if (e == null) return this.tween(t, null);
|
|
2565
2600
|
if (typeof e != "function") throw Error();
|
|
2566
|
-
return this.tween(t,
|
|
2601
|
+
return this.tween(t, Yi(e));
|
|
2567
2602
|
}
|
|
2568
|
-
function
|
|
2569
|
-
for (var e = this._name, t = this._id, n =
|
|
2603
|
+
function Zi() {
|
|
2604
|
+
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]) {
|
|
2570
2605
|
var u = q(c, t);
|
|
2571
|
-
|
|
2606
|
+
qr(c, e, n, l, o, {
|
|
2572
2607
|
time: u.time + u.delay + u.duration,
|
|
2573
2608
|
delay: 0,
|
|
2574
2609
|
duration: u.duration,
|
|
@@ -2577,7 +2612,7 @@ function Xi() {
|
|
|
2577
2612
|
}
|
|
2578
2613
|
return new J(r, this._parents, e, n);
|
|
2579
2614
|
}
|
|
2580
|
-
function
|
|
2615
|
+
function Qi() {
|
|
2581
2616
|
var e, t, n = this, r = n._id, i = n.size();
|
|
2582
2617
|
return new Promise(function(a, o) {
|
|
2583
2618
|
var s = { value: o }, c = { value: function() {
|
|
@@ -2589,68 +2624,68 @@ function Zi() {
|
|
|
2589
2624
|
}), i === 0 && a();
|
|
2590
2625
|
});
|
|
2591
2626
|
}
|
|
2592
|
-
var
|
|
2627
|
+
var $i = 0;
|
|
2593
2628
|
function J(e, t, n, r) {
|
|
2594
2629
|
this._groups = e, this._parents = t, this._name = n, this._id = r;
|
|
2595
2630
|
}
|
|
2596
|
-
function
|
|
2597
|
-
return
|
|
2631
|
+
function ea() {
|
|
2632
|
+
return ++$i;
|
|
2598
2633
|
}
|
|
2599
2634
|
var Y = A.prototype;
|
|
2600
2635
|
J.prototype = {
|
|
2601
2636
|
constructor: J,
|
|
2602
|
-
select:
|
|
2603
|
-
selectAll:
|
|
2637
|
+
select: Mi,
|
|
2638
|
+
selectAll: Ni,
|
|
2604
2639
|
selectChild: Y.selectChild,
|
|
2605
2640
|
selectChildren: Y.selectChildren,
|
|
2606
|
-
filter:
|
|
2607
|
-
merge:
|
|
2608
|
-
selection:
|
|
2609
|
-
transition:
|
|
2641
|
+
filter: Ti,
|
|
2642
|
+
merge: Ei,
|
|
2643
|
+
selection: Fi,
|
|
2644
|
+
transition: Zi,
|
|
2610
2645
|
call: Y.call,
|
|
2611
2646
|
nodes: Y.nodes,
|
|
2612
2647
|
node: Y.node,
|
|
2613
2648
|
size: Y.size,
|
|
2614
2649
|
empty: Y.empty,
|
|
2615
2650
|
each: Y.each,
|
|
2616
|
-
on:
|
|
2617
|
-
attr:
|
|
2618
|
-
attrTween:
|
|
2619
|
-
style:
|
|
2620
|
-
styleTween:
|
|
2621
|
-
text:
|
|
2622
|
-
textTween:
|
|
2623
|
-
remove:
|
|
2624
|
-
tween:
|
|
2625
|
-
delay:
|
|
2626
|
-
duration:
|
|
2627
|
-
ease:
|
|
2628
|
-
easeVarying:
|
|
2629
|
-
end:
|
|
2651
|
+
on: ki,
|
|
2652
|
+
attr: li,
|
|
2653
|
+
attrTween: mi,
|
|
2654
|
+
style: Vi,
|
|
2655
|
+
styleTween: Wi,
|
|
2656
|
+
text: qi,
|
|
2657
|
+
textTween: Xi,
|
|
2658
|
+
remove: ji,
|
|
2659
|
+
tween: ei,
|
|
2660
|
+
delay: _i,
|
|
2661
|
+
duration: bi,
|
|
2662
|
+
ease: Si,
|
|
2663
|
+
easeVarying: wi,
|
|
2664
|
+
end: Qi,
|
|
2630
2665
|
[Symbol.iterator]: Y[Symbol.iterator]
|
|
2631
2666
|
};
|
|
2632
|
-
function
|
|
2667
|
+
function ta(e) {
|
|
2633
2668
|
return ((e *= 2) <= 1 ? e * e * e : (e -= 2) * e * e + 2) / 2;
|
|
2634
2669
|
}
|
|
2635
|
-
var
|
|
2670
|
+
var na = {
|
|
2636
2671
|
time: null,
|
|
2637
2672
|
delay: 0,
|
|
2638
2673
|
duration: 250,
|
|
2639
|
-
ease:
|
|
2674
|
+
ease: ta
|
|
2640
2675
|
};
|
|
2641
|
-
function
|
|
2676
|
+
function ra(e, t) {
|
|
2642
2677
|
for (var n; !(n = e.__transition) || !(n = n[t]);) if (!(e = e.parentNode)) throw Error(`transition ${t} not found`);
|
|
2643
2678
|
return n;
|
|
2644
2679
|
}
|
|
2645
|
-
function
|
|
2680
|
+
function ia(e) {
|
|
2646
2681
|
var t, n;
|
|
2647
|
-
e instanceof J ? (t = e._id, e = e._name) : (t =
|
|
2648
|
-
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]) &&
|
|
2682
|
+
e instanceof J ? (t = e._id, e = e._name) : (t = ea(), (n = na).time = Fr(), e = e == null ? null : e + "");
|
|
2683
|
+
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]) && qr(c, e, t, l, o, n || ra(c, t));
|
|
2649
2684
|
return new J(r, this._parents, e, t);
|
|
2650
2685
|
}
|
|
2651
|
-
A.prototype.interrupt =
|
|
2652
|
-
var { abs:
|
|
2653
|
-
["w", "e"].map(
|
|
2686
|
+
A.prototype.interrupt = Zr, A.prototype.transition = ia;
|
|
2687
|
+
var { abs: aa, max: oa, min: sa } = Math;
|
|
2688
|
+
["w", "e"].map(ca), ["n", "s"].map(ca), [
|
|
2654
2689
|
"n",
|
|
2655
2690
|
"w",
|
|
2656
2691
|
"e",
|
|
@@ -2659,39 +2694,39 @@ var { abs: ia, max: aa, min: oa } = Math;
|
|
|
2659
2694
|
"ne",
|
|
2660
2695
|
"sw",
|
|
2661
2696
|
"se"
|
|
2662
|
-
].map(
|
|
2663
|
-
function
|
|
2697
|
+
].map(ca);
|
|
2698
|
+
function ca(e) {
|
|
2664
2699
|
return { type: e };
|
|
2665
2700
|
}
|
|
2666
|
-
function
|
|
2701
|
+
function la(e) {
|
|
2667
2702
|
return Math.abs(e = Math.round(e)) >= 1e21 ? e.toLocaleString("en").replace(/,/g, "") : e.toString(10);
|
|
2668
2703
|
}
|
|
2669
|
-
function
|
|
2704
|
+
function ua(e, t) {
|
|
2670
2705
|
if (!isFinite(e) || e === 0) return null;
|
|
2671
2706
|
var n = (e = t ? e.toExponential(t - 1) : e.toExponential()).indexOf("e"), r = e.slice(0, n);
|
|
2672
2707
|
return [r.length > 1 ? r[0] + r.slice(2) : r, +e.slice(n + 1)];
|
|
2673
2708
|
}
|
|
2674
|
-
function
|
|
2675
|
-
return e =
|
|
2709
|
+
function da(e) {
|
|
2710
|
+
return e = ua(Math.abs(e)), e ? e[1] : NaN;
|
|
2676
2711
|
}
|
|
2677
|
-
function
|
|
2712
|
+
function fa(e, t) {
|
|
2678
2713
|
return function(n, r) {
|
|
2679
2714
|
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];
|
|
2680
2715
|
return a.reverse().join(t);
|
|
2681
2716
|
};
|
|
2682
2717
|
}
|
|
2683
|
-
function
|
|
2718
|
+
function pa(e) {
|
|
2684
2719
|
return function(t) {
|
|
2685
2720
|
return t.replace(/[0-9]/g, function(t) {
|
|
2686
2721
|
return e[+t];
|
|
2687
2722
|
});
|
|
2688
2723
|
};
|
|
2689
2724
|
}
|
|
2690
|
-
var
|
|
2691
|
-
function
|
|
2692
|
-
if (!(t =
|
|
2725
|
+
var ma = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
|
|
2726
|
+
function ha(e) {
|
|
2727
|
+
if (!(t = ma.exec(e))) throw Error("invalid format: " + e);
|
|
2693
2728
|
var t;
|
|
2694
|
-
return new
|
|
2729
|
+
return new ga({
|
|
2695
2730
|
fill: t[1],
|
|
2696
2731
|
align: t[2],
|
|
2697
2732
|
sign: t[3],
|
|
@@ -2704,14 +2739,14 @@ function ma(e) {
|
|
|
2704
2739
|
type: t[10]
|
|
2705
2740
|
});
|
|
2706
2741
|
}
|
|
2707
|
-
|
|
2708
|
-
function
|
|
2742
|
+
ha.prototype = ga.prototype;
|
|
2743
|
+
function ga(e) {
|
|
2709
2744
|
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 + "";
|
|
2710
2745
|
}
|
|
2711
|
-
|
|
2746
|
+
ga.prototype.toString = function() {
|
|
2712
2747
|
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;
|
|
2713
2748
|
};
|
|
2714
|
-
function
|
|
2749
|
+
function _a(e) {
|
|
2715
2750
|
out: for (var t = e.length, n = 1, r = -1, i; n < t; ++n) switch (e[n]) {
|
|
2716
2751
|
case ".":
|
|
2717
2752
|
r = i = n;
|
|
@@ -2725,38 +2760,38 @@ function ga(e) {
|
|
|
2725
2760
|
}
|
|
2726
2761
|
return r > 0 ? e.slice(0, r) + e.slice(i + 1) : e;
|
|
2727
2762
|
}
|
|
2728
|
-
var
|
|
2729
|
-
function va(e, t) {
|
|
2730
|
-
var n = la(e, t);
|
|
2731
|
-
if (!n) return _a = void 0, e.toPrecision(t);
|
|
2732
|
-
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;
|
|
2733
|
-
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") + la(e, Math.max(0, t + a - 1))[0];
|
|
2734
|
-
}
|
|
2763
|
+
var va;
|
|
2735
2764
|
function ya(e, t) {
|
|
2736
|
-
var n =
|
|
2765
|
+
var n = ua(e, t);
|
|
2766
|
+
if (!n) return va = void 0, e.toPrecision(t);
|
|
2767
|
+
var r = n[0], i = n[1], a = i - (va = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1, o = r.length;
|
|
2768
|
+
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];
|
|
2769
|
+
}
|
|
2770
|
+
function ba(e, t) {
|
|
2771
|
+
var n = ua(e, t);
|
|
2737
2772
|
if (!n) return e + "";
|
|
2738
2773
|
var r = n[0], i = n[1];
|
|
2739
2774
|
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");
|
|
2740
2775
|
}
|
|
2741
|
-
var
|
|
2776
|
+
var xa = {
|
|
2742
2777
|
"%": (e, t) => (e * 100).toFixed(t),
|
|
2743
2778
|
b: (e) => Math.round(e).toString(2),
|
|
2744
2779
|
c: (e) => e + "",
|
|
2745
|
-
d:
|
|
2780
|
+
d: la,
|
|
2746
2781
|
e: (e, t) => e.toExponential(t),
|
|
2747
2782
|
f: (e, t) => e.toFixed(t),
|
|
2748
2783
|
g: (e, t) => e.toPrecision(t),
|
|
2749
2784
|
o: (e) => Math.round(e).toString(8),
|
|
2750
|
-
p: (e, t) =>
|
|
2751
|
-
r:
|
|
2752
|
-
s:
|
|
2785
|
+
p: (e, t) => ba(e * 100, t),
|
|
2786
|
+
r: ba,
|
|
2787
|
+
s: ya,
|
|
2753
2788
|
X: (e) => Math.round(e).toString(16).toUpperCase(),
|
|
2754
2789
|
x: (e) => Math.round(e).toString(16)
|
|
2755
2790
|
};
|
|
2756
|
-
function
|
|
2791
|
+
function Sa(e) {
|
|
2757
2792
|
return e;
|
|
2758
2793
|
}
|
|
2759
|
-
var
|
|
2794
|
+
var Ca = Array.prototype.map, wa = [
|
|
2760
2795
|
"y",
|
|
2761
2796
|
"z",
|
|
2762
2797
|
"a",
|
|
@@ -2775,13 +2810,13 @@ var Sa = Array.prototype.map, Ca = [
|
|
|
2775
2810
|
"Z",
|
|
2776
2811
|
"Y"
|
|
2777
2812
|
];
|
|
2778
|
-
function
|
|
2779
|
-
var t = e.grouping === void 0 || e.thousands === void 0 ?
|
|
2813
|
+
function Ta(e) {
|
|
2814
|
+
var t = e.grouping === void 0 || e.thousands === void 0 ? Sa : fa(Ca.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 ? Sa : pa(Ca.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 + "";
|
|
2780
2815
|
function l(e, l) {
|
|
2781
|
-
e =
|
|
2816
|
+
e = ha(e);
|
|
2782
2817
|
var u = e.fill, d = e.align, f = e.sign, p = e.symbol, m = e.zero, h = e.width, g = e.comma, _ = e.precision, v = e.trim, y = e.type;
|
|
2783
|
-
y === "n" ? (g = !0, y = "g") :
|
|
2784
|
-
var b = (l && l.prefix !== void 0 ? l.prefix : "") + (p === "$" ? n : p === "#" && /[boxX]/.test(y) ? "0" + y.toLowerCase() : ""), x = (p === "$" ? r : /[%p]/.test(y) ? o : "") + (l && l.suffix !== void 0 ? l.suffix : ""), S =
|
|
2818
|
+
y === "n" ? (g = !0, y = "g") : xa[y] || (_ === void 0 && (_ = 12), v = !0, y = "g"), (m || u === "0" && d === "=") && (m = !0, u = "0", d = "=");
|
|
2819
|
+
var b = (l && l.prefix !== void 0 ? l.prefix : "") + (p === "$" ? n : p === "#" && /[boxX]/.test(y) ? "0" + y.toLowerCase() : ""), x = (p === "$" ? r : /[%p]/.test(y) ? o : "") + (l && l.suffix !== void 0 ? l.suffix : ""), S = xa[y], C = /[defgprs%]/.test(y);
|
|
2785
2820
|
_ = _ === void 0 ? 6 : /[gprs]/.test(y) ? Math.max(1, Math.min(21, _)) : Math.max(0, Math.min(20, _));
|
|
2786
2821
|
function w(e) {
|
|
2787
2822
|
var n = b, r = x, o, l, p;
|
|
@@ -2789,7 +2824,7 @@ function wa(e) {
|
|
|
2789
2824
|
else {
|
|
2790
2825
|
e = +e;
|
|
2791
2826
|
var w = e < 0 || 1 / e < 0;
|
|
2792
|
-
if (e = isNaN(e) ? c : S(Math.abs(e), _), v && (e =
|
|
2827
|
+
if (e = isNaN(e) ? c : S(Math.abs(e), _), v && (e = _a(e)), w && +e == 0 && f !== "+" && (w = !1), n = (w ? f === "(" ? f : s : f === "-" || f === "(" ? "" : f) + n, r = (y === "s" && !isNaN(e) && va !== void 0 ? wa[8 + va / 3] : "") + r + (w && f === "(" ? ")" : ""), C) {
|
|
2793
2828
|
for (o = -1, l = e.length; ++o < l;) if (p = e.charCodeAt(o), 48 > p || p > 57) {
|
|
2794
2829
|
r = (p === 46 ? i + e.slice(o + 1) : e.slice(o)) + r, e = e.slice(0, o);
|
|
2795
2830
|
break;
|
|
@@ -2817,7 +2852,7 @@ function wa(e) {
|
|
|
2817
2852
|
}, w;
|
|
2818
2853
|
}
|
|
2819
2854
|
function u(e, t) {
|
|
2820
|
-
var n = Math.max(-8, Math.min(8, Math.floor(
|
|
2855
|
+
var n = Math.max(-8, Math.min(8, Math.floor(da(t) / 3))) * 3, r = 10 ** -n, i = l((e = ha(e), e.type = "f", e), { suffix: wa[8 + n / 3] });
|
|
2821
2856
|
return function(e) {
|
|
2822
2857
|
return i(r * e);
|
|
2823
2858
|
};
|
|
@@ -2827,14 +2862,14 @@ function wa(e) {
|
|
|
2827
2862
|
formatPrefix: u
|
|
2828
2863
|
};
|
|
2829
2864
|
}
|
|
2830
|
-
var
|
|
2831
|
-
|
|
2865
|
+
var Ea;
|
|
2866
|
+
Da({
|
|
2832
2867
|
thousands: ",",
|
|
2833
2868
|
grouping: [3],
|
|
2834
2869
|
currency: ["$", ""]
|
|
2835
2870
|
});
|
|
2836
|
-
function
|
|
2837
|
-
return
|
|
2871
|
+
function Da(e) {
|
|
2872
|
+
return Ea = Ta(e), Ea.format, Ea.formatPrefix, Ea;
|
|
2838
2873
|
}
|
|
2839
2874
|
function X(e, t, n) {
|
|
2840
2875
|
this.k = e, this.x = t, this.y = n;
|
|
@@ -2875,16 +2910,15 @@ X.prototype = {
|
|
|
2875
2910
|
return "translate(" + this.x + "," + this.y + ") scale(" + this.k + ")";
|
|
2876
2911
|
}
|
|
2877
2912
|
};
|
|
2878
|
-
var
|
|
2879
|
-
|
|
2880
|
-
function
|
|
2881
|
-
for (; !e.__zoom;) if (!(e = e.parentNode)) return
|
|
2913
|
+
var Oa = new X(1, 0, 0);
|
|
2914
|
+
ka.prototype = X.prototype;
|
|
2915
|
+
function ka(e) {
|
|
2916
|
+
for (; !e.__zoom;) if (!(e = e.parentNode)) return Oa;
|
|
2882
2917
|
return e.__zoom;
|
|
2883
2918
|
}
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
let t = new Se(e);
|
|
2919
|
+
// src/helpers/transferConstructedPolygonGeometry.ts
|
|
2920
|
+
function Aa(e) {
|
|
2921
|
+
let t = new Ce(e);
|
|
2888
2922
|
return {
|
|
2889
2923
|
result: t,
|
|
2890
2924
|
transfers: [
|
|
@@ -2902,38 +2936,33 @@ function ka(e) {
|
|
|
2902
2936
|
t.outline_scale_normal_and_cap?.buffer,
|
|
2903
2937
|
t.outline_skip_indices?.buffer,
|
|
2904
2938
|
t.outline_batch_index?.buffer
|
|
2905
|
-
].filter(
|
|
2939
|
+
].filter(ye)
|
|
2906
2940
|
};
|
|
2907
2941
|
}
|
|
2908
|
-
|
|
2909
|
-
//#region src/utils/toTransferableTileLike.ts
|
|
2942
|
+
// src/utils/toTransferableTileLike.ts
|
|
2910
2943
|
function Z(e) {
|
|
2911
|
-
return new u(
|
|
2944
|
+
return new u(ja(e.coords), e.max_height, e.min_height, e.cached_mesh_handle ? Ma(e.cached_mesh_handle) : void 0);
|
|
2912
2945
|
}
|
|
2913
|
-
function
|
|
2946
|
+
function ja(e) {
|
|
2914
2947
|
return new o(e.x, e.y, e.z);
|
|
2915
2948
|
}
|
|
2916
|
-
function
|
|
2949
|
+
function Ma(e) {
|
|
2917
2950
|
return new t(e.vertices, e.indices, e.uvs, e.heights);
|
|
2918
2951
|
}
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
function Ma(e) {
|
|
2952
|
+
// src/utils/toUpsamplableTerrainGeometryLike.ts
|
|
2953
|
+
function Na(e) {
|
|
2922
2954
|
return new d(e.uvs, e.indices, e.heights, e.normals, e.watermask);
|
|
2923
2955
|
}
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
function Na(e) {
|
|
2956
|
+
// src/utils/toExtentRadianF32Like.ts
|
|
2957
|
+
function Pa(e) {
|
|
2927
2958
|
return new r(e.west, e.south, e.east, e.north);
|
|
2928
2959
|
}
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
function Pa(e) {
|
|
2960
|
+
// src/utils/toPolygonMaterialLike.ts
|
|
2961
|
+
function Fa(e) {
|
|
2932
2962
|
return new i(e.show, e.castShadow, e.receiveShadow, e.color, e.clampToGround, e.tiled, e.height, e.extrudedHeight, e.wireframe, e.outline, e.perPositionHeight, e.__internal__);
|
|
2933
2963
|
}
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
function Fa(e) {
|
|
2964
|
+
// src/utils/toTransferablePolygonBatchedFeatureLike.ts
|
|
2965
|
+
function Ia(e) {
|
|
2937
2966
|
let t = new s(e.crs, e.length);
|
|
2938
2967
|
return t.setOuterRing(e.outer_ring.length, (t) => {
|
|
2939
2968
|
t.set(e.outer_ring);
|
|
@@ -2955,34 +2984,31 @@ function Fa(e) {
|
|
|
2955
2984
|
t.set(e.batch_indices);
|
|
2956
2985
|
}), t;
|
|
2957
2986
|
}
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
var Ia;
|
|
2987
|
+
// src/tasks/waitWasm.ts
|
|
2988
|
+
var La;
|
|
2961
2989
|
async function Q() {
|
|
2962
|
-
return
|
|
2990
|
+
return La ??= e(), La;
|
|
2963
2991
|
}
|
|
2964
|
-
var
|
|
2965
|
-
function
|
|
2966
|
-
|
|
2992
|
+
var Ra = [];
|
|
2993
|
+
function za(e) {
|
|
2994
|
+
Ra.push(e);
|
|
2967
2995
|
}
|
|
2968
|
-
async function
|
|
2969
|
-
let e =
|
|
2970
|
-
for (let t of
|
|
2996
|
+
async function Ba() {
|
|
2997
|
+
let e = La ? (await La).memory.buffer.byteLength : 0;
|
|
2998
|
+
for (let t of Ra) e += t();
|
|
2971
2999
|
return e;
|
|
2972
3000
|
}
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
async function Ba(e, t, n, r) {
|
|
3001
|
+
// src/tasks/constructPolygonBatchedFeature.ts
|
|
3002
|
+
async function Va(e, t, n, r) {
|
|
2976
3003
|
await Q();
|
|
2977
|
-
let i = f(
|
|
3004
|
+
let i = f(Ia(e), Fa(t), n, r ? Pa(r) : void 0);
|
|
2978
3005
|
if (!i) return;
|
|
2979
|
-
let { result: a, transfers: o } =
|
|
3006
|
+
let { result: a, transfers: o } = Aa(i);
|
|
2980
3007
|
return i.free(), $(a, o);
|
|
2981
3008
|
}
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
let t = new Ce(e);
|
|
3009
|
+
// src/helpers/transferConstructedPolylineGeometry.ts
|
|
3010
|
+
function Ha(e) {
|
|
3011
|
+
let t = new we(e);
|
|
2986
3012
|
return {
|
|
2987
3013
|
result: t,
|
|
2988
3014
|
transfers: [
|
|
@@ -2994,24 +3020,24 @@ function Va(e) {
|
|
|
2994
3020
|
t.start_low?.buffer,
|
|
2995
3021
|
t.end_high?.buffer,
|
|
2996
3022
|
t.end_low?.buffer,
|
|
2997
|
-
t.
|
|
3023
|
+
t.start_normal_and_length_high?.buffer,
|
|
2998
3024
|
t.forward_offset?.buffer,
|
|
2999
|
-
t.
|
|
3000
|
-
t.
|
|
3025
|
+
t.end_normal_and_segment_length?.buffer,
|
|
3026
|
+
t.right_normal_and_line_length.buffer,
|
|
3001
3027
|
t.batch_id?.buffer,
|
|
3002
3028
|
t.batch_index?.buffer,
|
|
3003
|
-
t.indices.buffer
|
|
3004
|
-
|
|
3029
|
+
t.indices.buffer,
|
|
3030
|
+
t.line_segments?.buffer,
|
|
3031
|
+
t.line_distance_and_ends?.buffer
|
|
3032
|
+
].filter(ye)
|
|
3005
3033
|
};
|
|
3006
3034
|
}
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
function Ha(e) {
|
|
3035
|
+
// src/utils/toPolylineMaterialLike.ts
|
|
3036
|
+
function Ua(e) {
|
|
3010
3037
|
return new a(e.show, e.castShadow, e.receiveShadow, e.color, e.clampToGround, e.tiled, e.height, e.width, e.maxWidth, e.__internal__);
|
|
3011
3038
|
}
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
function Ua(e) {
|
|
3039
|
+
// src/utils/toTransferablePolylineBatchedFeatureLike.ts
|
|
3040
|
+
function Wa(e) {
|
|
3015
3041
|
let t = new c(e.crs, e.length);
|
|
3016
3042
|
return t.setPoints(e.points.length, (t) => {
|
|
3017
3043
|
t.set(e.points);
|
|
@@ -3025,51 +3051,45 @@ function Ua(e) {
|
|
|
3025
3051
|
t.set(e.ring_flags);
|
|
3026
3052
|
}), t;
|
|
3027
3053
|
}
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
async function Wa(e, t, n) {
|
|
3054
|
+
// src/tasks/constructPolylineBatchedFeature.ts
|
|
3055
|
+
async function Ga(e, t, n) {
|
|
3031
3056
|
await Q();
|
|
3032
|
-
let r = p(
|
|
3057
|
+
let r = p(Wa(e), Ua(t), n);
|
|
3033
3058
|
if (!r) return;
|
|
3034
|
-
let { result: i, transfers: a } =
|
|
3059
|
+
let { result: i, transfers: a } = Ha(r);
|
|
3035
3060
|
return r.free(), $(i, a);
|
|
3036
3061
|
}
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
let t = new be(e), n = [
|
|
3062
|
+
// src/helpers/transferReturnedConstructedTerrainMesh.ts
|
|
3063
|
+
function Ka(e) {
|
|
3064
|
+
let t = new xe(e), n = [
|
|
3041
3065
|
t.vertices.buffer,
|
|
3042
3066
|
t.uvs.buffer,
|
|
3043
3067
|
t.indices.buffer,
|
|
3044
3068
|
t.heights.buffer
|
|
3045
3069
|
];
|
|
3046
|
-
return t.normals && n.push(t.normals.buffer), t.skirt_vertices && n.push(t.skirt_vertices.buffer), t.skirt_uvs && n.push(t.skirt_uvs.buffer), t.skirt_indices && n.push(t.skirt_indices.buffer), t.skirt_normals && n.push(t.skirt_normals.buffer), t.watermask && n.push(t.watermask.buffer), {
|
|
3070
|
+
return t.normals && n.push(t.normals.buffer), t.skirt_vertices && n.push(t.skirt_vertices.buffer), t.skirt_uvs && n.push(t.skirt_uvs.buffer), t.skirt_indices && n.push(t.skirt_indices.buffer), t.skirt_normals && n.push(t.skirt_normals.buffer), t.skirt_heights && n.push(t.skirt_heights.buffer), t.watermask && n.push(t.watermask.buffer), {
|
|
3047
3071
|
result: t,
|
|
3048
3072
|
transfers: n
|
|
3049
3073
|
};
|
|
3050
3074
|
}
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
async function Ka(e, t, n, r, i, a, o, s) {
|
|
3075
|
+
// src/tasks/constructQuantizedMeshTerrainMesh.ts
|
|
3076
|
+
async function qa(e, t, n, r, i, a, o, s) {
|
|
3054
3077
|
await Q();
|
|
3055
|
-
let c = m(e, Z(t), n, r, i, a, o, s), { result: l, transfers: u } =
|
|
3078
|
+
let c = m(e, Z(t), n, r, i, a, o, s), { result: l, transfers: u } = Ka(c);
|
|
3056
3079
|
return c.free(), $({ result: l }, [...u]);
|
|
3057
3080
|
}
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
function qa(e) {
|
|
3081
|
+
// src/utils/toTransferableRasterDEMDataLike.ts
|
|
3082
|
+
function Ja(e) {
|
|
3061
3083
|
return new l(new n(e.decoder.r_scaler, e.decoder.g_scaler, e.decoder.b_scaler, e.decoder.offset, e.decoder.max_offset, e.decoder.min_offset, e.decoder.boundary, e.decoder.epsilon));
|
|
3062
3084
|
}
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
async function Ja(e, t, n, r, i, a, o, s) {
|
|
3085
|
+
// src/tasks/constructTerrainMesh.ts
|
|
3086
|
+
async function Ya(e, t, n, r, i, a, o, s) {
|
|
3066
3087
|
await Q();
|
|
3067
|
-
let c = h(e, Z(t),
|
|
3088
|
+
let c = h(e, Z(t), Ja(n), r + 1, i, a, o, s), { result: l, transfers: u } = Ka(c);
|
|
3068
3089
|
return c.free(), $({ result: l }, [...u]);
|
|
3069
3090
|
}
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
async function Ya(e) {
|
|
3091
|
+
// src/tasks/getImageDataFromBlob.ts
|
|
3092
|
+
async function Xa(e) {
|
|
3073
3093
|
let t = await createImageBitmap(e);
|
|
3074
3094
|
try {
|
|
3075
3095
|
let e = new OffscreenCanvas(t.width, t.height).getContext("2d");
|
|
@@ -3081,9 +3101,8 @@ async function Ya(e) {
|
|
|
3081
3101
|
t.close();
|
|
3082
3102
|
}
|
|
3083
3103
|
}
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
async function Xa(e, t) {
|
|
3104
|
+
// src/tasks/getImageDataFromImageBitmap.ts
|
|
3105
|
+
async function Za(e, t) {
|
|
3087
3106
|
try {
|
|
3088
3107
|
let n = t.getContext("2d");
|
|
3089
3108
|
if (n === null) throw Error("failed to get context of canvas");
|
|
@@ -3092,11 +3111,10 @@ async function Xa(e, t) {
|
|
|
3092
3111
|
e.close();
|
|
3093
3112
|
}
|
|
3094
3113
|
}
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
async function Za(e, t, n, r, i, a, o) {
|
|
3114
|
+
// src/tasks/parseMvtTile.ts
|
|
3115
|
+
async function Qa(e, t, n, r, i, a, o) {
|
|
3098
3116
|
await Q();
|
|
3099
|
-
let s = g(e, t, n, r, i ?
|
|
3117
|
+
let s = g(e, t, n, r, i ? Pa(i) : void 0, a, o), c, l, u, d, f;
|
|
3100
3118
|
try {
|
|
3101
3119
|
c = s.f64_stream(), l = s.f32_stream(), u = s.u32_stream(), d = s.u8_stream(), f = s.meta();
|
|
3102
3120
|
} finally {
|
|
@@ -3115,58 +3133,71 @@ async function Za(e, t, n, r, i, a, o) {
|
|
|
3115
3133
|
d.buffer
|
|
3116
3134
|
]);
|
|
3117
3135
|
}
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
async function Qa(e, t, n, r, i, a, o, s, c) {
|
|
3136
|
+
// src/tasks/upsampleQuantizedMeshTerrainMesh.ts
|
|
3137
|
+
async function $a(e, t, n, r, i, a, o, s, c) {
|
|
3121
3138
|
await Q();
|
|
3122
|
-
let l = _(Z(e), Z(t),
|
|
3139
|
+
let l = _(Z(e), Z(t), Na(n), r, i, a, o, s, c), { result: u, transfers: d } = Ka(l);
|
|
3123
3140
|
return l.free(), $(u, d);
|
|
3124
3141
|
}
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
async function $a(e, t, n, r, i, a, o, s, c, l) {
|
|
3142
|
+
// src/tasks/upsampleTerrainMesh.ts
|
|
3143
|
+
async function eo(e, t, n, r, i, a, o, s, c, l) {
|
|
3128
3144
|
await Q();
|
|
3129
|
-
let u = v(Z(e), Z(t),
|
|
3145
|
+
let u = v(Z(e), Z(t), Ja(n), r, i + 1, a, o, s, c, l), { result: d, transfers: f } = Ka(u);
|
|
3130
3146
|
return u.free(), $(d, f);
|
|
3131
3147
|
}
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
async function eo() {
|
|
3148
|
+
// src/tasks/index.ts
|
|
3149
|
+
async function to() {
|
|
3135
3150
|
await Q();
|
|
3136
3151
|
}
|
|
3137
|
-
var
|
|
3138
|
-
constructTerrainMesh:
|
|
3139
|
-
constructQuantizedMeshTerrainMesh:
|
|
3140
|
-
upsampleTerrainMesh:
|
|
3141
|
-
upsampleQuantizedMeshTerrainMesh:
|
|
3142
|
-
getImageDataFromImageBitmap:
|
|
3143
|
-
getImageDataFromBlob:
|
|
3144
|
-
constructPolygonBatchedFeature:
|
|
3145
|
-
constructPolylineBatchedFeature:
|
|
3146
|
-
parseMvtTile:
|
|
3147
|
-
warmUp:
|
|
3148
|
-
getWasmMemoryUsage:
|
|
3149
|
-
}, $ = (e, t) => new pe.Transfer(e, t),
|
|
3150
|
-
function
|
|
3151
|
-
|
|
3152
|
-
}
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
let e;
|
|
3152
|
+
var no = {
|
|
3153
|
+
constructTerrainMesh: Ya,
|
|
3154
|
+
constructQuantizedMeshTerrainMesh: qa,
|
|
3155
|
+
upsampleTerrainMesh: eo,
|
|
3156
|
+
upsampleQuantizedMeshTerrainMesh: $a,
|
|
3157
|
+
getImageDataFromImageBitmap: Za,
|
|
3158
|
+
getImageDataFromBlob: Xa,
|
|
3159
|
+
constructPolygonBatchedFeature: Va,
|
|
3160
|
+
constructPolylineBatchedFeature: Ga,
|
|
3161
|
+
parseMvtTile: Qa,
|
|
3162
|
+
warmUp: to,
|
|
3163
|
+
getWasmMemoryUsage: Ba
|
|
3164
|
+
}, $ = (e, t) => new pe.Transfer(e, t), ro = !1, io = (...e) => (ro ||= (pe.worker(no), ao(), !0), pe.worker(...e));
|
|
3165
|
+
function ao() {
|
|
3166
|
+
no.warmUp.worker?.addAbortListener(async () => {});
|
|
3167
|
+
}
|
|
3168
|
+
// src/pool.ts
|
|
3169
|
+
var oo = "The worker pool is not acquired: call acquireWorkerPool() first, and do not use the pool after its last holder released it.", { acquireWorkerPool: so, workerPoolHolders: co, warmUpWorkerPool: lo, canWorkerPoolAcceptTasks: uo, workerPoolLoad: fo, reserveWorkerCore: po, workerPoolReservedSlots: mo, worker: ho, workerPoolStats: go, workerPoolHeapStats: _o, probeWorkerPoolHeap: vo } = (() => {
|
|
3170
|
+
let e, t = 0, n = 0;
|
|
3157
3171
|
return {
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
e = {
|
|
3161
|
-
pool: new
|
|
3162
|
-
manager:
|
|
3172
|
+
acquireWorkerPool: (r, i, a) => {
|
|
3173
|
+
let o = !e;
|
|
3174
|
+
e ? (i.total !== e.manager.total || a?.maxWorkerHeapBytes !== e.maxWorkerHeapBytes) && console.warn(`The shared worker pool keeps its size (${e.manager.total}) and worker heap budget (${e.maxWorkerHeapBytes ?? "default"}); this claim asked for ${i.total} and ${a?.maxWorkerHeapBytes ?? "default"}.`) : (e = {
|
|
3175
|
+
pool: new ve(r, i.total, a),
|
|
3176
|
+
manager: i,
|
|
3177
|
+
maxWorkerHeapBytes: a?.maxWorkerHeapBytes
|
|
3178
|
+
}, e.pool.setReservedSlots(t)), n++;
|
|
3179
|
+
let s = !1;
|
|
3180
|
+
return {
|
|
3181
|
+
manager: e.manager,
|
|
3182
|
+
created: o,
|
|
3183
|
+
release: () => {
|
|
3184
|
+
s || (s = !0, n--, n === 0 && e && (e.pool.terminate(), e = void 0));
|
|
3185
|
+
}
|
|
3163
3186
|
};
|
|
3164
3187
|
},
|
|
3165
|
-
|
|
3166
|
-
|
|
3188
|
+
workerPoolHolders: () => n,
|
|
3189
|
+
warmUpWorkerPool: () => (ne(e, oo), e.pool.warmUp()),
|
|
3190
|
+
canWorkerPoolAcceptTasks: () => e?.pool.canAcceptTasks() ?? !0,
|
|
3191
|
+
workerPoolLoad: () => e?.pool.load() ?? 0,
|
|
3192
|
+
reserveWorkerCore: () => {
|
|
3193
|
+
t++, e?.pool.setReservedSlots(t);
|
|
3194
|
+
let n = !1;
|
|
3195
|
+
return () => {
|
|
3196
|
+
n || (n = !0, t--, e?.pool.setReservedSlots(t));
|
|
3197
|
+
};
|
|
3167
3198
|
},
|
|
3168
|
-
|
|
3169
|
-
worker: () => (ne(e,
|
|
3199
|
+
workerPoolReservedSlots: () => e?.pool.reservedSlots() ?? 0,
|
|
3200
|
+
worker: () => (ne(e, oo), {
|
|
3170
3201
|
pool: e.pool,
|
|
3171
3202
|
manager: e.manager
|
|
3172
3203
|
}),
|
|
@@ -3174,12 +3205,9 @@ var { initializeWorkerPool: ao, terminateWorkerPool: oo, warmUpWorkerPool: so, w
|
|
|
3174
3205
|
workerPoolHeapStats: () => e?.pool.heapStats(),
|
|
3175
3206
|
probeWorkerPoolHeap: () => e?.pool.probeHeap()
|
|
3176
3207
|
};
|
|
3177
|
-
})()
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
};
|
|
3181
|
-
function mo(e, t, n) {
|
|
3182
|
-
let { pool: r, manager: i } = co();
|
|
3208
|
+
})();
|
|
3209
|
+
function yo(e, t, n) {
|
|
3210
|
+
let { pool: r, manager: i } = ho();
|
|
3183
3211
|
i.increment();
|
|
3184
3212
|
try {
|
|
3185
3213
|
return r.exec(e, t, n).then((e) => (i.decrement(), e)).catch((e) => {
|
|
@@ -3189,16 +3217,15 @@ function mo(e, t, n) {
|
|
|
3189
3217
|
throw i.decrement(), e;
|
|
3190
3218
|
}
|
|
3191
3219
|
}
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
let t = 0, n = () => t !== e, r = () => t !== 0;
|
|
3220
|
+
// src/manager.ts
|
|
3221
|
+
var bo = (e) => {
|
|
3222
|
+
let t = 0, n = () => t < e, r = () => t > 0;
|
|
3196
3223
|
return {
|
|
3197
3224
|
total: e,
|
|
3198
3225
|
actives: () => t,
|
|
3199
|
-
idles: () => e - t,
|
|
3226
|
+
idles: () => Math.max(0, e - t),
|
|
3200
3227
|
increment: () => {
|
|
3201
|
-
|
|
3228
|
+
t++;
|
|
3202
3229
|
},
|
|
3203
3230
|
decrement: () => {
|
|
3204
3231
|
r() && t--;
|
|
@@ -3210,5 +3237,4 @@ var ho = (e) => {
|
|
|
3210
3237
|
}
|
|
3211
3238
|
};
|
|
3212
3239
|
};
|
|
3213
|
-
|
|
3214
|
-
export { po as canWorkerProcessImmediately, ho as createConcurrencyManager, ao as initializeWorkerPool, fo as probeWorkerPoolHeap, mo as queueTask, ro as registerTasks, Ra as registerWasmMemoryProbe, oo as terminateWorkerPool, $ as transfer, so as warmUpWorkerPool, uo as workerPoolHeapStats, lo as workerPoolStats };
|
|
3240
|
+
export { so as acquireWorkerPool, uo as canWorkerPoolAcceptTasks, bo as createConcurrencyManager, vo as probeWorkerPoolHeap, yo as queueTask, io as registerTasks, za as registerWasmMemoryProbe, po as reserveWorkerCore, $ as transfer, lo as warmUpWorkerPool, _o as workerPoolHeapStats, co as workerPoolHolders, fo as workerPoolLoad, mo as workerPoolReservedSlots, go as workerPoolStats };
|