@navaramap/worker 0.0.0 → 0.0.2
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/README.md +2 -2
- package/dist/index.js +691 -693
- package/dist/index.umd.cjs +3 -3
- package/package.json +5 -5
- package/src/pool.test.ts +6 -15
package/dist/index.js
CHANGED
|
@@ -1,35 +1,31 @@
|
|
|
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, TransferableMartini as s, TransferablePolygonBatchedFeature as c, TransferablePolylineBatchedFeature as l, TransferableRasterDEMData as u, TransferableTile as d, UpsamplableTerrainGeometry as f, constructPolygonBatchedFeature as p, constructPolylineBatchedFeature as m, constructQuantizedMeshTerrainMesh as h, constructTerrainMesh as g, parseMvtTile as _, upsampleQuantizedMeshTerrainMesh as v, upsampleTerrainMesh as y } from "@navaramap/engine-worker";
|
|
3
3
|
//#region \0rolldown/runtime.js
|
|
4
|
-
var b = Object.create, x = Object.defineProperty,
|
|
5
|
-
if (t && typeof t == "object" || typeof t == "function") for (var i =
|
|
4
|
+
var b = Object.create, x = Object.defineProperty, S = Object.getOwnPropertyDescriptor, C = Object.getOwnPropertyNames, w = Object.getPrototypeOf, T = Object.prototype.hasOwnProperty, E = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), ee = (e, t, n, r) => {
|
|
5
|
+
if (t && typeof t == "object" || typeof t == "function") for (var i = C(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !T.call(e, s) && s !== n && x(e, s, {
|
|
6
6
|
get: ((e) => t[e]).bind(null, s),
|
|
7
|
-
enumerable: !(r =
|
|
7
|
+
enumerable: !(r = S(t, s)) || r.enumerable
|
|
8
8
|
});
|
|
9
9
|
return e;
|
|
10
|
-
},
|
|
10
|
+
}, te = (e, t, n) => (n = e == null ? {} : b(w(e)), ee(t || !e || !e.__esModule ? x(n, "default", {
|
|
11
11
|
value: e,
|
|
12
12
|
enumerable: !0
|
|
13
|
-
}) : n, e)),
|
|
14
|
-
function
|
|
15
|
-
if (!e)
|
|
16
|
-
if (re) throw Error(ie);
|
|
17
|
-
var n = typeof t == "function" ? t() : t, r = n ? `${ie}: ${n}` : ie;
|
|
18
|
-
throw Error(r);
|
|
19
|
-
}
|
|
13
|
+
}) : n, e)), ne = "Invariant failed";
|
|
14
|
+
function re(e, t) {
|
|
15
|
+
if (!e) throw Error(ne);
|
|
20
16
|
}
|
|
21
17
|
//#endregion
|
|
22
18
|
//#region __vite-browser-external
|
|
23
|
-
var
|
|
19
|
+
var D = /* @__PURE__ */ E(((e, t) => {
|
|
24
20
|
t.exports = {};
|
|
25
|
-
})),
|
|
21
|
+
})), ie = /* @__PURE__ */ E(((e, t) => {
|
|
26
22
|
var n = function(e) {
|
|
27
23
|
return e !== void 0 && e.versions != null && e.versions.node != null && e + "" == "[object process]";
|
|
28
24
|
};
|
|
29
25
|
t.exports.isNode = n, t.exports.platform = typeof process < "u" && n(process) ? "node" : "browser";
|
|
30
|
-
var r = t.exports.platform === "node" &&
|
|
31
|
-
t.exports.isMainThread = t.exports.platform === "node" ? (!r || r.isMainThread) && !process.connected : typeof Window < "u", t.exports.cpus = t.exports.platform === "browser" ? self.navigator.hardwareConcurrency :
|
|
32
|
-
})),
|
|
26
|
+
var r = t.exports.platform === "node" && D();
|
|
27
|
+
t.exports.isMainThread = t.exports.platform === "node" ? (!r || r.isMainThread) && !process.connected : typeof Window < "u", t.exports.cpus = t.exports.platform === "browser" ? self.navigator.hardwareConcurrency : D().cpus().length;
|
|
28
|
+
})), ae = /* @__PURE__ */ E(((e) => {
|
|
33
29
|
function t(e, a) {
|
|
34
30
|
var o = this;
|
|
35
31
|
if (!(this instanceof t)) throw SyntaxError("Constructor must be called with the new operator");
|
|
@@ -121,7 +117,7 @@ var E = /* @__PURE__ */ T(((e, t) => {
|
|
|
121
117
|
this.message = e || "timeout exceeded", this.stack = (/* @__PURE__ */ Error()).stack;
|
|
122
118
|
}
|
|
123
119
|
i.prototype = /* @__PURE__ */ Error(), i.prototype.constructor = Error, i.prototype.name = "TimeoutError", t.TimeoutError = i, e.Promise = t;
|
|
124
|
-
})),
|
|
120
|
+
})), oe = /* @__PURE__ */ E(((e) => {
|
|
125
121
|
e.validateOptions = function(e, t, n) {
|
|
126
122
|
if (e) {
|
|
127
123
|
var r = e ? Object.keys(e) : [], i = r.find((e) => !t.includes(e));
|
|
@@ -163,10 +159,10 @@ var E = /* @__PURE__ */ T(((e, t) => {
|
|
|
163
159
|
"resourceLimits",
|
|
164
160
|
"name"
|
|
165
161
|
];
|
|
166
|
-
})),
|
|
167
|
-
t.exports = "!function(e,n){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=n():\"function\"==typeof define&&define.amd?define(n):(e=\"undefined\"!=typeof globalThis?globalThis:e||self).worker=n()}(this,
|
|
168
|
-
})),
|
|
169
|
-
var { Promise: n } =
|
|
162
|
+
})), se = /* @__PURE__ */ E(((e, t) => {
|
|
163
|
+
t.exports = "!function(e,n){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=n():\"function\"==typeof define&&define.amd?define(n):(e=\"undefined\"!=typeof globalThis?globalThis:e||self).worker=n()}(this,function(){\"use strict\";function e(n){return e=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},e(n)}function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,\"default\")?e.default:e}var t={};var r=function(e,n){this.message=e,this.transfer=n},o={};function i(e,n){var t=this;if(!(this instanceof i))throw new SyntaxError(\"Constructor must be called with the new operator\");if(\"function\"!=typeof e)throw new SyntaxError(\"Function parameter handler(resolve, reject) missing\");var r=[],o=[];this.resolved=!1,this.rejected=!1,this.pending=!0,this[Symbol.toStringTag]=\"Promise\";var a=function(e,n){r.push(e),o.push(n)};this.then=function(e,n){return new i(function(t,r){var o=e?s(e,t,r):t,i=n?s(n,t,r):r;a(o,i)},t)};var f=function(e){return t.resolved=!0,t.rejected=!1,t.pending=!1,r.forEach(function(n){n(e)}),a=function(n,t){n(e)},f=d=function(){},t},d=function(e){return t.resolved=!1,t.rejected=!0,t.pending=!1,o.forEach(function(n){n(e)}),a=function(n,t){t(e)},f=d=function(){},t};this.cancel=function(){return n?n.cancel():d(new u),t},this.timeout=function(e){if(n)n.timeout(e);else{var r=setTimeout(function(){d(new c(\"Promise timed out after \"+e+\" ms\"))},e);t.always(function(){clearTimeout(r)})}return t},e(function(e){f(e)},function(e){d(e)})}function s(e,n,t){return function(r){try{var o=e(r);o&&\"function\"==typeof o.then&&\"function\"==typeof o.catch?o.then(n,t):n(o)}catch(e){t(e)}}}function u(e){this.message=e||\"promise cancelled\",this.stack=(new Error).stack}function c(e){this.message=e||\"timeout exceeded\",this.stack=(new Error).stack}return i.prototype.catch=function(e){return this.then(null,e)},i.prototype.always=function(e){return this.then(e,e)},i.prototype.finally=function(e){var n=this,t=function(){return new i(function(e){return e()}).then(e).then(function(){return n})};return this.then(t,t)},i.all=function(e){return new i(function(n,t){var r=e.length,o=[];r?e.forEach(function(e,i){e.then(function(e){o[i]=e,0==--r&&n(o)},function(e){r=0,t(e)})}):n(o)})},i.defer=function(){var e={};return e.promise=new i(function(n,t){e.resolve=n,e.reject=t}),e},u.prototype=new Error,u.prototype.constructor=Error,u.prototype.name=\"CancellationError\",i.CancellationError=u,c.prototype=new Error,c.prototype.constructor=Error,c.prototype.name=\"TimeoutError\",i.TimeoutError=c,o.Promise=i,function(n){var t=r,i=o.Promise,s=\"__workerpool-cleanup__\",u={exit:function(){}},c={addAbortListener:function(e){u.abortListeners.push(e)},emit:u.emit};if(\"undefined\"!=typeof self&&\"function\"==typeof postMessage&&\"function\"==typeof addEventListener)u.on=function(e,n){addEventListener(e,function(e){n(e.data)})},u.send=function(e,n){n?postMessage(e,n):postMessage(e)};else{if(\"undefined\"==typeof process)throw new Error(\"Script must be executed as a worker\");var a;try{a=require(\"worker_threads\")}catch(n){if(\"object\"!==e(n)||null===n||\"MODULE_NOT_FOUND\"!==n.code)throw n}if(a&&null!==a.parentPort){var f=a.parentPort;u.send=f.postMessage.bind(f),u.on=f.on.bind(f),u.exit=process.exit.bind(process)}else u.on=process.on.bind(process),u.send=function(e){process.send(e)},u.on(\"disconnect\",function(){process.exit(1)}),u.exit=process.exit.bind(process)}function d(e){return e&&e.toJSON?JSON.parse(JSON.stringify(e)):JSON.parse(JSON.stringify(e,Object.getOwnPropertyNames(e)))}function l(e){return e&&\"function\"==typeof e.then&&\"function\"==typeof e.catch}u.methods={},u.methods.run=function(e,n){var t=new Function(\"return (\"+e+\").apply(this, arguments);\");return t.worker=c,t.apply(t,n)},u.methods.methods=function(){return Object.keys(u.methods)},u.terminationHandler=void 0,u.abortListenerTimeout=1e3,u.abortListeners=[],u.terminateAndExit=function(e){var n=function(){u.exit(e)};if(!u.terminationHandler)return n();var t=u.terminationHandler(e);return l(t)?(t.then(n,n),t):(n(),new i(function(e,n){n(new Error(\"Worker terminating\"))}))},u.cleanup=function(e){if(!u.abortListeners.length)return u.send({id:e,method:s,error:d(new Error(\"Worker terminating\"))}),new i(function(e){e()});var n,t=u.abortListeners.map(function(e){return e()}),r=new i(function(e,t){n=setTimeout(function(){t(new Error(\"Timeout occurred waiting for abort handler, killing worker\"))},u.abortListenerTimeout)}),o=i.all(t).then(function(){clearTimeout(n),u.abortListeners.length&&(u.abortListeners=[])},function(){clearTimeout(n),u.exit()});return new i(function(e,n){o.then(e,n),r.then(e,n)}).then(function(){u.send({id:e,method:s,error:null})},function(n){u.send({id:e,method:s,error:n?d(n):null})})};var p=null;u.on(\"message\",function(e){if(\"__workerpool-terminate__\"===e)return u.terminateAndExit(0);if(e.method===s)return u.cleanup(e.id);try{var n=u.methods[e.method];if(!n)throw new Error('Unknown method \"'+e.method+'\"');p=e.id;var r=n.apply(n,e.params);l(r)?r.then(function(n){n instanceof t?u.send({id:e.id,result:n.message,error:null},n.transfer):u.send({id:e.id,result:n,error:null}),p=null}).catch(function(n){u.send({id:e.id,result:null,error:d(n)}),p=null}):(r instanceof t?u.send({id:e.id,result:r.message,error:null},r.transfer):u.send({id:e.id,result:r,error:null}),p=null)}catch(n){u.send({id:e.id,result:null,error:d(n)})}}),u.register=function(e,n){if(e)for(var t in e)e.hasOwnProperty(t)&&(u.methods[t]=e[t],u.methods[t].worker=c);n&&(u.terminationHandler=n.onTerminate,u.abortListenerTimeout=n.abortListenerTimeout||1e3),u.send(\"ready\")},u.emit=function(e){if(p){if(e instanceof t)return void u.send({id:p,isEvent:!0,payload:e.message},e.transfer);u.send({id:p,isEvent:!0,payload:e})}},n.add=u.register,n.emit=u.emit}(t),n(t)});\n//# sourceMappingURL=worker.min.js.map\n";
|
|
164
|
+
})), ce = /* @__PURE__ */ E(((e, t) => {
|
|
165
|
+
var { Promise: n } = ae(), r = ie(), { validateOptions: i, forkOptsNames: a, workerThreadOptsNames: o, workerOptsNames: s } = oe(), c = "__workerpool-terminate__", l = "__workerpool-cleanup__";
|
|
170
166
|
function u() {
|
|
171
167
|
var e = f();
|
|
172
168
|
if (!e) throw Error("WorkerPool: workerType = 'thread' is not supported, Node >= 11.7.0 required");
|
|
@@ -177,7 +173,7 @@ var E = /* @__PURE__ */ T(((e, t) => {
|
|
|
177
173
|
}
|
|
178
174
|
function f() {
|
|
179
175
|
try {
|
|
180
|
-
return
|
|
176
|
+
return D();
|
|
181
177
|
} catch (e) {
|
|
182
178
|
if (typeof e == "object" && e && e.code === "MODULE_NOT_FOUND") return null;
|
|
183
179
|
throw e;
|
|
@@ -187,17 +183,17 @@ var E = /* @__PURE__ */ T(((e, t) => {
|
|
|
187
183
|
if (r.platform === "browser") {
|
|
188
184
|
if (typeof Blob > "u") throw Error("Blob not supported by the browser");
|
|
189
185
|
if (!window.URL || typeof window.URL.createObjectURL != "function") throw Error("URL.createObjectURL not supported by the browser");
|
|
190
|
-
var e = new Blob([
|
|
186
|
+
var e = new Blob([se()], { type: "text/javascript" });
|
|
191
187
|
return window.URL.createObjectURL(e);
|
|
192
188
|
} else return __dirname + "/worker.js";
|
|
193
189
|
}
|
|
194
190
|
function m(e, t) {
|
|
195
191
|
if (t.workerType === "web") return d(), h(e, t.workerOpts, Worker);
|
|
196
192
|
if (t.workerType === "thread") return n = u(), g(e, n, t);
|
|
197
|
-
if (t.workerType === "process" || !t.workerType) return _(e, v(t),
|
|
193
|
+
if (t.workerType === "process" || !t.workerType) return _(e, v(t), D());
|
|
198
194
|
if (r.platform === "browser") return d(), h(e, t.workerOpts, Worker);
|
|
199
195
|
var n = f();
|
|
200
|
-
return n ? g(e, n, t) : _(e, v(t),
|
|
196
|
+
return n ? g(e, n, t) : _(e, v(t), D());
|
|
201
197
|
}
|
|
202
198
|
function h(e, t, n) {
|
|
203
199
|
i(t, s, "workerOpts");
|
|
@@ -269,7 +265,7 @@ var E = /* @__PURE__ */ T(((e, t) => {
|
|
|
269
265
|
}
|
|
270
266
|
if (e.method === l) {
|
|
271
267
|
var i = n.tracking[e.id];
|
|
272
|
-
i !== void 0 && (e.error ? (clearTimeout(i.timeoutId), i.resolver.reject(y(e.error))) : (n.tracking && clearTimeout(i.timeoutId), i.resolver.reject(new
|
|
268
|
+
i !== void 0 && (e.error ? (clearTimeout(i.timeoutId), i.resolver.reject(y(e.error))) : (n.tracking && clearTimeout(i.timeoutId), i.resolver.reject(new S(i.error)))), delete n.tracking[t];
|
|
273
269
|
}
|
|
274
270
|
}
|
|
275
271
|
});
|
|
@@ -282,10 +278,10 @@ var E = /* @__PURE__ */ T(((e, t) => {
|
|
|
282
278
|
}
|
|
283
279
|
var o = this.worker;
|
|
284
280
|
this.worker.on("error", function(e) {
|
|
285
|
-
i(new
|
|
281
|
+
i(new C("Workerpool Worker error: " + (e && e.message ? e.message : String(e || "Unknown worker error")), e));
|
|
286
282
|
}), this.worker.on("exit", function(e, t) {
|
|
287
283
|
var r = "Workerpool Worker terminated Unexpectedly\n";
|
|
288
|
-
r += " exitCode: `" + e + "`\n", r += " signalCode: `" + t + "`\n", r += " workerpool.script: `" + n.script + "`\n", r += " spawnArgs: `" + o.spawnargs + "`\n", r += " spawnfile: `" + o.spawnfile + "`\n", r += " stdout: `" + o.stdout + "`\n", r += " stderr: `" + o.stderr + "`\n", i(new
|
|
284
|
+
r += " exitCode: `" + e + "`\n", r += " signalCode: `" + t + "`\n", r += " workerpool.script: `" + n.script + "`\n", r += " spawnArgs: `" + o.spawnargs + "`\n", r += " spawnfile: `" + o.spawnfile + "`\n", r += " stdout: `" + o.stdout + "`\n", r += " stderr: `" + o.stderr + "`\n", i(new C(r));
|
|
289
285
|
}), this.processing = Object.create(null), this.tracking = Object.create(null), this.terminating = !1, this.terminated = !1, this.cleaning = !1, this.terminationHandler = null, this.lastId = 0;
|
|
290
286
|
}
|
|
291
287
|
x.prototype.methods = function() {
|
|
@@ -306,7 +302,7 @@ var E = /* @__PURE__ */ T(((e, t) => {
|
|
|
306
302
|
},
|
|
307
303
|
transfer: i && i.transfer
|
|
308
304
|
};
|
|
309
|
-
this.terminated ? r.reject(new
|
|
305
|
+
this.terminated ? r.reject(new C("Worker is terminated")) : this.worker.ready ? this.worker.send(o.message, o.transfer) : this.requestQueue.push(o);
|
|
310
306
|
var s = this;
|
|
311
307
|
return r.promise.catch(function(e) {
|
|
312
308
|
if (e instanceof n.CancellationError || e instanceof n.TimeoutError) return s.tracking[a] = {
|
|
@@ -315,7 +311,7 @@ var E = /* @__PURE__ */ T(((e, t) => {
|
|
|
315
311
|
options: i,
|
|
316
312
|
error: e
|
|
317
313
|
}, delete s.processing[a], s.tracking[a].resolver.promise = s.tracking[a].resolver.promise.catch(function(e) {
|
|
318
|
-
if (delete s.tracking[a], e instanceof
|
|
314
|
+
if (delete s.tracking[a], e instanceof S) throw e.error;
|
|
319
315
|
return s.terminateAndNotify(!0).then(function() {
|
|
320
316
|
throw e;
|
|
321
317
|
}, function(e) {
|
|
@@ -330,7 +326,7 @@ var E = /* @__PURE__ */ T(((e, t) => {
|
|
|
330
326
|
throw e;
|
|
331
327
|
});
|
|
332
328
|
}, x.prototype.busy = function() {
|
|
333
|
-
return this.cleaning || Object.keys(this.processing).length > 0;
|
|
329
|
+
return this.cleaning || Object.keys(this.processing).length > 0 || Object.keys(this.tracking).length > 0;
|
|
334
330
|
}, x.prototype.terminate = function(e, t) {
|
|
335
331
|
var n = this;
|
|
336
332
|
if (e) {
|
|
@@ -366,16 +362,16 @@ var E = /* @__PURE__ */ T(((e, t) => {
|
|
|
366
362
|
e ? r.reject(e) : r.resolve(t);
|
|
367
363
|
}), r.promise;
|
|
368
364
|
};
|
|
369
|
-
function
|
|
365
|
+
function S(e) {
|
|
370
366
|
this.error = e, this.stack = (/* @__PURE__ */ Error()).stack;
|
|
371
367
|
}
|
|
372
|
-
var
|
|
368
|
+
var C = class extends Error {
|
|
373
369
|
constructor(e, t) {
|
|
374
370
|
super(e || "worker terminated"), this.cause = t;
|
|
375
371
|
}
|
|
376
372
|
};
|
|
377
|
-
t.exports = x, t.exports._tryRequireWorkerThreads = f, t.exports._setupProcessWorker = _, t.exports._setupBrowserWorker = h, t.exports._setupWorkerThreadWorker = g, t.exports.ensureWorkerThreads = u, t.exports.TerminateError =
|
|
378
|
-
})),
|
|
373
|
+
t.exports = x, t.exports._tryRequireWorkerThreads = f, t.exports._setupProcessWorker = _, t.exports._setupBrowserWorker = h, t.exports._setupWorkerThreadWorker = g, t.exports.ensureWorkerThreads = u, t.exports.TerminateError = C;
|
|
374
|
+
})), le = /* @__PURE__ */ E(((e, t) => {
|
|
379
375
|
function n() {
|
|
380
376
|
this.tasks = [];
|
|
381
377
|
}
|
|
@@ -407,21 +403,20 @@ var E = /* @__PURE__ */ T(((e, t) => {
|
|
|
407
403
|
FIFOQueue: n,
|
|
408
404
|
LIFOQueue: r
|
|
409
405
|
};
|
|
410
|
-
})),
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
function r() {
|
|
406
|
+
})), ue = /* @__PURE__ */ E(((e, t) => {
|
|
407
|
+
t.exports = n;
|
|
408
|
+
function n() {
|
|
414
409
|
this.ports = Object.create(null), this.length = 0;
|
|
415
410
|
}
|
|
416
|
-
|
|
411
|
+
n.prototype.nextAvailableStartingAt = function(e) {
|
|
417
412
|
for (; this.ports[e] === !0;) e++;
|
|
418
|
-
if (e >=
|
|
413
|
+
if (e >= 65535) throw Error("WorkerPool debug port limit reached: " + e + ">= 65535");
|
|
419
414
|
return this.ports[e] = !0, this.length++, e;
|
|
420
|
-
},
|
|
415
|
+
}, n.prototype.releasePort = function(e) {
|
|
421
416
|
delete this.ports[e], this.length--;
|
|
422
417
|
};
|
|
423
|
-
})),
|
|
424
|
-
var { Promise: n } =
|
|
418
|
+
})), de = /* @__PURE__ */ E(((e, t) => {
|
|
419
|
+
var { Promise: n } = ae(), r = ce(), i = ie(), { FIFOQueue: a, LIFOQueue: o } = le(), s = new (ue())();
|
|
425
420
|
function c(e, t) {
|
|
426
421
|
typeof e == "string" ? this.script = e || null : (this.script = null, t = e), this.workers = [], this.taskQueue = this._createQueue(t && t.queueStrategy || "fifo"), t ||= {}, this.forkArgs = Object.freeze(t.forkArgs || []), this.forkOpts = Object.freeze(t.forkOpts || {}), this.workerOpts = Object.freeze(t.workerOpts || {}), this.workerThreadOpts = Object.freeze(t.workerThreadOpts || {}), this.debugPortStart = t.debugPortStart || 43210, this.nodeWorker = t.nodeWorker, this.workerType = t.workerType || t.nodeWorker || "auto", this.maxQueueSize = t.maxQueueSize || Infinity, this.workerTerminateTimeout = t.workerTerminateTimeout || 1e3, this.onCreateWorker = t.onCreateWorker || (() => null), this.onTerminateWorker = t.onTerminateWorker || (() => null), this.emitStdStreams = t.emitStdStreams || !1, t && "maxWorkers" in t ? (l(t.maxWorkers), this.maxWorkers = t.maxWorkers) : this.maxWorkers = Math.max((i.cpus || 4) - 1, 1), t && "minWorkers" in t && (t.minWorkers === "max" ? this.minWorkers = this.maxWorkers : (u(t.minWorkers), this.minWorkers = t.minWorkers, this.maxWorkers = Math.max(this.minWorkers, this.maxWorkers)), this._ensureMinWorkers()), this._boundNext = this._next.bind(this), this.workerType === "thread" && r.ensureWorkerThreads();
|
|
427
422
|
}
|
|
@@ -575,13 +570,13 @@ var E = /* @__PURE__ */ T(((e, t) => {
|
|
|
575
570
|
return Math.round(e) == e;
|
|
576
571
|
}
|
|
577
572
|
t.exports = c;
|
|
578
|
-
})),
|
|
573
|
+
})), fe = /* @__PURE__ */ E(((e, t) => {
|
|
579
574
|
function n(e, t) {
|
|
580
575
|
this.message = e, this.transfer = t;
|
|
581
576
|
}
|
|
582
577
|
t.exports = n;
|
|
583
|
-
})),
|
|
584
|
-
var t =
|
|
578
|
+
})), pe = /* @__PURE__ */ E(((e) => {
|
|
579
|
+
var t = fe(), n = ae().Promise, r = "__workerpool-terminate__", i = "__workerpool-cleanup__", a = 1e3, o = { exit: function() {} }, s = {
|
|
585
580
|
addAbortListener: function(e) {
|
|
586
581
|
o.abortListeners.push(e);
|
|
587
582
|
},
|
|
@@ -597,7 +592,7 @@ var E = /* @__PURE__ */ T(((e, t) => {
|
|
|
597
592
|
else if (typeof process < "u") {
|
|
598
593
|
var c;
|
|
599
594
|
try {
|
|
600
|
-
c =
|
|
595
|
+
c = D();
|
|
601
596
|
} catch (e) {
|
|
602
597
|
if (!(typeof e == "object" && e && e.code === "MODULE_NOT_FOUND")) throw e;
|
|
603
598
|
}
|
|
@@ -641,11 +636,11 @@ var E = /* @__PURE__ */ T(((e, t) => {
|
|
|
641
636
|
var t = function() {
|
|
642
637
|
o.exit();
|
|
643
638
|
}, r = function() {
|
|
644
|
-
o.abortListeners.length
|
|
639
|
+
o.abortListeners.length && (o.abortListeners = []);
|
|
645
640
|
};
|
|
646
641
|
let a = o.abortListeners.map((e) => e()), s, c = new n((e, t) => {
|
|
647
642
|
s = setTimeout(function() {
|
|
648
|
-
t(/* @__PURE__ */ Error("Timeout
|
|
643
|
+
t(/* @__PURE__ */ Error("Timeout occurred waiting for abort handler, killing worker"));
|
|
649
644
|
}, o.abortListenerTimeout);
|
|
650
645
|
}), l = n.all(a).then(function() {
|
|
651
646
|
clearTimeout(s), r();
|
|
@@ -730,32 +725,32 @@ var E = /* @__PURE__ */ T(((e, t) => {
|
|
|
730
725
|
});
|
|
731
726
|
}
|
|
732
727
|
}, e !== void 0 && (e.add = o.register, e.emit = o.emit);
|
|
733
|
-
})),
|
|
734
|
-
var { platform: t, isMainThread: n, cpus: r } =
|
|
728
|
+
})), me = /* @__PURE__ */ te((/* @__PURE__ */ E(((e) => {
|
|
729
|
+
var { platform: t, isMainThread: n, cpus: r } = ie(), { TerminateError: i } = ce();
|
|
735
730
|
function a(e, t) {
|
|
736
|
-
return new (
|
|
731
|
+
return new (de())(e, t);
|
|
737
732
|
}
|
|
738
733
|
e.pool = a;
|
|
739
734
|
function o(e, t) {
|
|
740
|
-
|
|
735
|
+
pe().add(e, t);
|
|
741
736
|
}
|
|
742
737
|
e.worker = o;
|
|
743
|
-
var { Promise: s } =
|
|
744
|
-
e.Transfer =
|
|
745
|
-
})))(), 1),
|
|
738
|
+
var { Promise: s } = ae();
|
|
739
|
+
e.Transfer = fe();
|
|
740
|
+
})))(), 1), he = 5e3, ge = 3e4, _e = (e) => me.pool(e, {
|
|
746
741
|
maxWorkers: 1,
|
|
747
742
|
minWorkers: 0,
|
|
748
|
-
workerTerminateTimeout:
|
|
743
|
+
workerTerminateTimeout: ge,
|
|
749
744
|
workerOpts: { type: void 0 }
|
|
750
|
-
}),
|
|
745
|
+
}), ve = class {
|
|
751
746
|
url;
|
|
752
747
|
maxWorkerHeapBytes;
|
|
753
748
|
slots;
|
|
754
749
|
idleSweepTimer;
|
|
755
750
|
terminated = !1;
|
|
756
751
|
constructor(e, t, n) {
|
|
757
|
-
|
|
758
|
-
pool:
|
|
752
|
+
re(t > 0, "maxWorkers must be a positive number."), this.url = e, this.maxWorkerHeapBytes = n?.maxWorkerHeapBytes ?? 268435456, this.slots = Array.from({ length: t }, () => ({
|
|
753
|
+
pool: _e(e),
|
|
759
754
|
tasksSinceSpawn: 0,
|
|
760
755
|
inflight: 0,
|
|
761
756
|
draining: !1,
|
|
@@ -824,7 +819,7 @@ var E = /* @__PURE__ */ T(((e, t) => {
|
|
|
824
819
|
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());
|
|
825
820
|
}
|
|
826
821
|
recycleSlot(e) {
|
|
827
|
-
e.pool.terminate(), e.pool =
|
|
822
|
+
e.pool.terminate(), e.pool = _e(this.url), e.tasksSinceSpawn = 0, e.draining = !1, e.lastHeapBytes = void 0, this.warmSlot(e).catch(() => void 0);
|
|
828
823
|
}
|
|
829
824
|
warmSlot(e) {
|
|
830
825
|
e.inflight++;
|
|
@@ -863,22 +858,22 @@ var E = /* @__PURE__ */ T(((e, t) => {
|
|
|
863
858
|
this.idleSweepTimer !== void 0 && clearTimeout(this.idleSweepTimer), this.idleSweepTimer = setTimeout(() => {
|
|
864
859
|
this.idleSweepTimer = void 0;
|
|
865
860
|
for (let e of this.slots) e.tasksSinceSpawn > 0 && e.inflight === 0 && this.recycleSlot(e);
|
|
866
|
-
},
|
|
861
|
+
}, he);
|
|
867
862
|
}
|
|
868
863
|
};
|
|
869
864
|
//#endregion
|
|
870
865
|
//#region ../navara_core/dist/index.js
|
|
871
|
-
function
|
|
866
|
+
function ye(e) {
|
|
872
867
|
return e != null;
|
|
873
868
|
}
|
|
874
|
-
var
|
|
869
|
+
var be = class {
|
|
875
870
|
x;
|
|
876
871
|
y;
|
|
877
872
|
z;
|
|
878
873
|
constructor(e) {
|
|
879
874
|
this.x = e.x, this.y = e.y, this.z = e.z;
|
|
880
875
|
}
|
|
881
|
-
},
|
|
876
|
+
}, xe = class {
|
|
882
877
|
vertices;
|
|
883
878
|
uvs;
|
|
884
879
|
indices;
|
|
@@ -893,7 +888,7 @@ var Se = class {
|
|
|
893
888
|
skirt_normals;
|
|
894
889
|
watermask;
|
|
895
890
|
constructor(e) {
|
|
896
|
-
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
|
|
891
|
+
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()), e.hasWatermask() && (this.watermask = e.transferWatermask());
|
|
897
892
|
}
|
|
898
893
|
transferVertices() {
|
|
899
894
|
throw Error();
|
|
@@ -934,7 +929,7 @@ var Se = class {
|
|
|
934
929
|
hasWatermask() {
|
|
935
930
|
return this.watermask !== void 0;
|
|
936
931
|
}
|
|
937
|
-
},
|
|
932
|
+
}, Se = class {
|
|
938
933
|
east;
|
|
939
934
|
north;
|
|
940
935
|
south;
|
|
@@ -942,7 +937,7 @@ var Se = class {
|
|
|
942
937
|
constructor(e) {
|
|
943
938
|
this.east = e.east, this.north = e.north, this.south = e.south, this.west = e.west;
|
|
944
939
|
}
|
|
945
|
-
},
|
|
940
|
+
}, Ce = class {
|
|
946
941
|
extent;
|
|
947
942
|
position_3d_high;
|
|
948
943
|
position_3d_high_size;
|
|
@@ -969,11 +964,11 @@ var Se = class {
|
|
|
969
964
|
outline_batch_index_size;
|
|
970
965
|
constructor(e) {
|
|
971
966
|
let t = e.extent;
|
|
972
|
-
this.extent = t ? new
|
|
967
|
+
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;
|
|
973
968
|
let n = e.outline();
|
|
974
969
|
n && (this.outline_position = n.position()?.slice(), this.outline_position_size = n.position_size(), this.outline_scale_normal_and_cap = n.scale_normal_and_cap()?.slice(), this.outline_scale_normal_and_cap_size = n.scale_normal_and_cap_size(), this.outline_skip_indices = n.skip_indices()?.slice(), this.outline_batch_index = n.batch_index()?.slice(), this.outline_batch_index_size = n.batch_index_size(), n.free());
|
|
975
970
|
}
|
|
976
|
-
},
|
|
971
|
+
}, we = class {
|
|
977
972
|
extent;
|
|
978
973
|
position;
|
|
979
974
|
position_size;
|
|
@@ -1006,18 +1001,18 @@ var Se = class {
|
|
|
1006
1001
|
indices;
|
|
1007
1002
|
constructor(e) {
|
|
1008
1003
|
let t = e.extent;
|
|
1009
|
-
this.extent = t ? new
|
|
1004
|
+
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_normals = e.start_normals()?.slice(), this.start_normals_size = e.start_normals_size(), this.end_normal_and_texture_coordinate_normalization_x = e.end_normal_and_texture_coordinate_normalization_x()?.slice(), this.end_normal_and_texture_coordinate_normalization_x_size = e.end_normal_and_texture_coordinate_normalization_x_size(), this.right_normal_and_texture_coordinate_normalization_y = e.right_normal_and_texture_coordinate_normalization_y().slice(), this.right_normal_and_texture_coordinate_normalization_y_size = e.right_normal_and_texture_coordinate_normalization_y_size(), this.batch_id = e.batch_id()?.slice(), this.batch_id_size = e.batch_id_size(), this.batch_index = e.batch_index()?.slice(), this.batch_index_size = e.batch_index_size(), this.indices = e.indices().slice();
|
|
1010
1005
|
}
|
|
1011
1006
|
};
|
|
1012
|
-
function
|
|
1007
|
+
function Te(e, t) {
|
|
1013
1008
|
return e == null || t == null ? NaN : e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN;
|
|
1014
1009
|
}
|
|
1015
|
-
function
|
|
1010
|
+
function Ee(e, t) {
|
|
1016
1011
|
return e == null || t == null ? NaN : t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN;
|
|
1017
1012
|
}
|
|
1018
|
-
function
|
|
1013
|
+
function De(e) {
|
|
1019
1014
|
let t, n, r;
|
|
1020
|
-
e.length === 2 ? (t = e ===
|
|
1015
|
+
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);
|
|
1021
1016
|
function i(e, r, i = 0, a = e.length) {
|
|
1022
1017
|
if (i < a) {
|
|
1023
1018
|
if (t(r, r) !== 0) return a;
|
|
@@ -1048,26 +1043,26 @@ function ke(e) {
|
|
|
1048
1043
|
right: a
|
|
1049
1044
|
};
|
|
1050
1045
|
}
|
|
1051
|
-
function
|
|
1046
|
+
function Oe() {
|
|
1052
1047
|
return 0;
|
|
1053
1048
|
}
|
|
1054
|
-
function
|
|
1049
|
+
function ke(e) {
|
|
1055
1050
|
return e === null ? NaN : +e;
|
|
1056
1051
|
}
|
|
1057
|
-
var
|
|
1058
|
-
|
|
1059
|
-
var
|
|
1060
|
-
function
|
|
1052
|
+
var Ae = De(Te);
|
|
1053
|
+
Ae.right, Ae.left, De(ke).center;
|
|
1054
|
+
var je = { value: () => {} };
|
|
1055
|
+
function Me() {
|
|
1061
1056
|
for (var e = 0, t = arguments.length, n = {}, r; e < t; ++e) {
|
|
1062
1057
|
if (!(r = arguments[e] + "") || r in n || /[\s.]/.test(r)) throw Error("illegal type: " + r);
|
|
1063
1058
|
n[r] = [];
|
|
1064
1059
|
}
|
|
1065
|
-
return new
|
|
1060
|
+
return new Ne(n);
|
|
1066
1061
|
}
|
|
1067
|
-
function
|
|
1062
|
+
function Ne(e) {
|
|
1068
1063
|
this._ = e;
|
|
1069
1064
|
}
|
|
1070
|
-
function
|
|
1065
|
+
function Pe(e, t) {
|
|
1071
1066
|
return e.trim().split(/^|\s+/).map(function(e) {
|
|
1072
1067
|
var n = "", r = e.indexOf(".");
|
|
1073
1068
|
if (r >= 0 && (n = e.slice(r + 1), e = e.slice(0, r)), e && !t.hasOwnProperty(e)) throw Error("unknown type: " + e);
|
|
@@ -1077,23 +1072,23 @@ function Ie(e, t) {
|
|
|
1077
1072
|
};
|
|
1078
1073
|
});
|
|
1079
1074
|
}
|
|
1080
|
-
|
|
1081
|
-
constructor:
|
|
1075
|
+
Ne.prototype = Me.prototype = {
|
|
1076
|
+
constructor: Ne,
|
|
1082
1077
|
on: function(e, t) {
|
|
1083
|
-
var n = this._, r =
|
|
1078
|
+
var n = this._, r = Pe(e + "", n), i, a = -1, o = r.length;
|
|
1084
1079
|
if (arguments.length < 2) {
|
|
1085
|
-
for (; ++a < o;) if ((i = (e = r[a]).type) && (i =
|
|
1080
|
+
for (; ++a < o;) if ((i = (e = r[a]).type) && (i = Fe(n[i], e.name))) return i;
|
|
1086
1081
|
return;
|
|
1087
1082
|
}
|
|
1088
1083
|
if (t != null && typeof t != "function") throw Error("invalid callback: " + t);
|
|
1089
|
-
for (; ++a < o;) if (i = (e = r[a]).type) n[i] =
|
|
1090
|
-
else if (t == null) for (i in n) n[i] =
|
|
1084
|
+
for (; ++a < o;) if (i = (e = r[a]).type) n[i] = Ie(n[i], e.name, t);
|
|
1085
|
+
else if (t == null) for (i in n) n[i] = Ie(n[i], e.name, null);
|
|
1091
1086
|
return this;
|
|
1092
1087
|
},
|
|
1093
1088
|
copy: function() {
|
|
1094
1089
|
var e = {}, t = this._;
|
|
1095
1090
|
for (var n in t) e[n] = t[n].slice();
|
|
1096
|
-
return new
|
|
1091
|
+
return new Ne(e);
|
|
1097
1092
|
},
|
|
1098
1093
|
call: function(e, t) {
|
|
1099
1094
|
if ((i = arguments.length - 2) > 0) for (var n = Array(i), r = 0, i, a; r < i; ++r) n[r] = arguments[r + 2];
|
|
@@ -1105,12 +1100,12 @@ Fe.prototype = Pe.prototype = {
|
|
|
1105
1100
|
for (var r = this._[e], i = 0, a = r.length; i < a; ++i) r[i].value.apply(t, n);
|
|
1106
1101
|
}
|
|
1107
1102
|
};
|
|
1108
|
-
function
|
|
1103
|
+
function Fe(e, t) {
|
|
1109
1104
|
for (var n = 0, r = e.length, i; n < r; ++n) if ((i = e[n]).name === t) return i.value;
|
|
1110
1105
|
}
|
|
1111
|
-
function
|
|
1106
|
+
function Ie(e, t, n) {
|
|
1112
1107
|
for (var r = 0, i = e.length; r < i; ++r) if (e[r].name === t) {
|
|
1113
|
-
e[r] =
|
|
1108
|
+
e[r] = je, e = e.slice(0, r).concat(e.slice(r + 1));
|
|
1114
1109
|
break;
|
|
1115
1110
|
}
|
|
1116
1111
|
return n != null && e.push({
|
|
@@ -1118,117 +1113,117 @@ function Re(e, t, n) {
|
|
|
1118
1113
|
value: n
|
|
1119
1114
|
}), e;
|
|
1120
1115
|
}
|
|
1121
|
-
var
|
|
1116
|
+
var Le = {
|
|
1122
1117
|
svg: "http://www.w3.org/2000/svg",
|
|
1123
1118
|
xhtml: "http://www.w3.org/1999/xhtml",
|
|
1124
1119
|
xlink: "http://www.w3.org/1999/xlink",
|
|
1125
1120
|
xml: "http://www.w3.org/XML/1998/namespace",
|
|
1126
1121
|
xmlns: "http://www.w3.org/2000/xmlns/"
|
|
1127
1122
|
};
|
|
1128
|
-
function
|
|
1123
|
+
function Re(e) {
|
|
1129
1124
|
var t = e += "", n = t.indexOf(":");
|
|
1130
|
-
return n >= 0 && (t = e.slice(0, n)) !== "xmlns" && (e = e.slice(n + 1)),
|
|
1131
|
-
space:
|
|
1125
|
+
return n >= 0 && (t = e.slice(0, n)) !== "xmlns" && (e = e.slice(n + 1)), Le.hasOwnProperty(t) ? {
|
|
1126
|
+
space: Le[t],
|
|
1132
1127
|
local: e
|
|
1133
1128
|
} : e;
|
|
1134
1129
|
}
|
|
1135
|
-
function
|
|
1130
|
+
function ze(e) {
|
|
1136
1131
|
return function() {
|
|
1137
1132
|
var t = this.ownerDocument, n = this.namespaceURI;
|
|
1138
1133
|
return n === "http://www.w3.org/1999/xhtml" && t.documentElement.namespaceURI === "http://www.w3.org/1999/xhtml" ? t.createElement(e) : t.createElementNS(n, e);
|
|
1139
1134
|
};
|
|
1140
1135
|
}
|
|
1141
|
-
function
|
|
1136
|
+
function Be(e) {
|
|
1142
1137
|
return function() {
|
|
1143
1138
|
return this.ownerDocument.createElementNS(e.space, e.local);
|
|
1144
1139
|
};
|
|
1145
1140
|
}
|
|
1146
|
-
function
|
|
1147
|
-
var t =
|
|
1148
|
-
return (t.local ?
|
|
1141
|
+
function Ve(e) {
|
|
1142
|
+
var t = Re(e);
|
|
1143
|
+
return (t.local ? Be : ze)(t);
|
|
1149
1144
|
}
|
|
1150
|
-
function
|
|
1151
|
-
function
|
|
1152
|
-
return e == null ?
|
|
1145
|
+
function He() {}
|
|
1146
|
+
function Ue(e) {
|
|
1147
|
+
return e == null ? He : function() {
|
|
1153
1148
|
return this.querySelector(e);
|
|
1154
1149
|
};
|
|
1155
1150
|
}
|
|
1156
|
-
function
|
|
1157
|
-
typeof e != "function" && (e =
|
|
1151
|
+
function We(e) {
|
|
1152
|
+
typeof e != "function" && (e = Ue(e));
|
|
1158
1153
|
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);
|
|
1159
|
-
return new
|
|
1154
|
+
return new k(r, this._parents);
|
|
1160
1155
|
}
|
|
1161
|
-
function
|
|
1156
|
+
function Ge(e) {
|
|
1162
1157
|
return e == null ? [] : Array.isArray(e) ? e : Array.from(e);
|
|
1163
1158
|
}
|
|
1164
|
-
function
|
|
1159
|
+
function Ke() {
|
|
1165
1160
|
return [];
|
|
1166
1161
|
}
|
|
1167
|
-
function
|
|
1168
|
-
return e == null ?
|
|
1162
|
+
function qe(e) {
|
|
1163
|
+
return e == null ? Ke : function() {
|
|
1169
1164
|
return this.querySelectorAll(e);
|
|
1170
1165
|
};
|
|
1171
1166
|
}
|
|
1172
|
-
function
|
|
1167
|
+
function Je(e) {
|
|
1173
1168
|
return function() {
|
|
1174
|
-
return
|
|
1169
|
+
return Ge(e.apply(this, arguments));
|
|
1175
1170
|
};
|
|
1176
1171
|
}
|
|
1177
|
-
function
|
|
1178
|
-
e = typeof e == "function" ?
|
|
1172
|
+
function Ye(e) {
|
|
1173
|
+
e = typeof e == "function" ? Je(e) : qe(e);
|
|
1179
1174
|
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));
|
|
1180
|
-
return new
|
|
1175
|
+
return new k(r, i);
|
|
1181
1176
|
}
|
|
1182
|
-
function
|
|
1177
|
+
function Xe(e) {
|
|
1183
1178
|
return function() {
|
|
1184
1179
|
return this.matches(e);
|
|
1185
1180
|
};
|
|
1186
1181
|
}
|
|
1187
|
-
function
|
|
1182
|
+
function Ze(e) {
|
|
1188
1183
|
return function(t) {
|
|
1189
1184
|
return t.matches(e);
|
|
1190
1185
|
};
|
|
1191
1186
|
}
|
|
1192
|
-
var
|
|
1193
|
-
function
|
|
1187
|
+
var Qe = Array.prototype.find;
|
|
1188
|
+
function $e(e) {
|
|
1194
1189
|
return function() {
|
|
1195
|
-
return
|
|
1190
|
+
return Qe.call(this.children, e);
|
|
1196
1191
|
};
|
|
1197
1192
|
}
|
|
1198
|
-
function
|
|
1193
|
+
function et() {
|
|
1199
1194
|
return this.firstElementChild;
|
|
1200
1195
|
}
|
|
1201
|
-
function
|
|
1202
|
-
return this.select(e == null ?
|
|
1196
|
+
function tt(e) {
|
|
1197
|
+
return this.select(e == null ? et : $e(typeof e == "function" ? e : Ze(e)));
|
|
1203
1198
|
}
|
|
1204
|
-
var
|
|
1205
|
-
function
|
|
1199
|
+
var nt = Array.prototype.filter;
|
|
1200
|
+
function rt() {
|
|
1206
1201
|
return Array.from(this.children);
|
|
1207
1202
|
}
|
|
1208
|
-
function
|
|
1203
|
+
function it(e) {
|
|
1209
1204
|
return function() {
|
|
1210
|
-
return
|
|
1205
|
+
return nt.call(this.children, e);
|
|
1211
1206
|
};
|
|
1212
1207
|
}
|
|
1213
|
-
function
|
|
1214
|
-
return this.selectAll(e == null ?
|
|
1208
|
+
function at(e) {
|
|
1209
|
+
return this.selectAll(e == null ? rt : it(typeof e == "function" ? e : Ze(e)));
|
|
1215
1210
|
}
|
|
1216
|
-
function
|
|
1217
|
-
typeof e != "function" && (e =
|
|
1211
|
+
function ot(e) {
|
|
1212
|
+
typeof e != "function" && (e = Xe(e));
|
|
1218
1213
|
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);
|
|
1219
|
-
return new
|
|
1214
|
+
return new k(r, this._parents);
|
|
1220
1215
|
}
|
|
1221
|
-
function
|
|
1216
|
+
function st(e) {
|
|
1222
1217
|
return Array(e.length);
|
|
1223
1218
|
}
|
|
1224
|
-
function
|
|
1225
|
-
return new
|
|
1219
|
+
function ct() {
|
|
1220
|
+
return new k(this._enter || this._groups.map(st), this._parents);
|
|
1226
1221
|
}
|
|
1227
|
-
function
|
|
1222
|
+
function lt(e, t) {
|
|
1228
1223
|
this.ownerDocument = e.ownerDocument, this.namespaceURI = e.namespaceURI, this._next = null, this._parent = e, this.__data__ = t;
|
|
1229
1224
|
}
|
|
1230
|
-
|
|
1231
|
-
constructor:
|
|
1225
|
+
lt.prototype = {
|
|
1226
|
+
constructor: lt,
|
|
1232
1227
|
appendChild: function(e) {
|
|
1233
1228
|
return this._parent.insertBefore(e, this._next);
|
|
1234
1229
|
},
|
|
@@ -1242,59 +1237,59 @@ dt.prototype = {
|
|
|
1242
1237
|
return this._parent.querySelectorAll(e);
|
|
1243
1238
|
}
|
|
1244
1239
|
};
|
|
1245
|
-
function
|
|
1240
|
+
function ut(e) {
|
|
1246
1241
|
return function() {
|
|
1247
1242
|
return e;
|
|
1248
1243
|
};
|
|
1249
1244
|
}
|
|
1250
|
-
function
|
|
1251
|
-
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
|
|
1245
|
+
function dt(e, t, n, r, i, a) {
|
|
1246
|
+
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]);
|
|
1252
1247
|
for (; o < c; ++o) (s = t[o]) && (i[o] = s);
|
|
1253
1248
|
}
|
|
1254
|
-
function
|
|
1249
|
+
function ft(e, t, n, r, i, a, o) {
|
|
1255
1250
|
var s, c, l = /* @__PURE__ */ new Map(), u = t.length, d = a.length, f = Array(u), p;
|
|
1256
1251
|
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));
|
|
1257
|
-
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
|
|
1252
|
+
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]);
|
|
1258
1253
|
for (s = 0; s < u; ++s) (c = t[s]) && l.get(f[s]) === c && (i[s] = c);
|
|
1259
1254
|
}
|
|
1260
|
-
function
|
|
1255
|
+
function pt(e) {
|
|
1261
1256
|
return e.__data__;
|
|
1262
1257
|
}
|
|
1263
|
-
function
|
|
1264
|
-
if (!arguments.length) return Array.from(this,
|
|
1265
|
-
var n = t ?
|
|
1266
|
-
typeof e != "function" && (e =
|
|
1258
|
+
function mt(e, t) {
|
|
1259
|
+
if (!arguments.length) return Array.from(this, pt);
|
|
1260
|
+
var n = t ? ft : dt, r = this._parents, i = this._groups;
|
|
1261
|
+
typeof e != "function" && (e = ut(e));
|
|
1267
1262
|
for (var a = i.length, o = Array(a), s = Array(a), c = Array(a), l = 0; l < a; ++l) {
|
|
1268
|
-
var u = r[l], d = i[l], f = d.length, p =
|
|
1263
|
+
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);
|
|
1269
1264
|
n(u, d, h, g, c[l] = Array(f), p, t);
|
|
1270
1265
|
for (var _ = 0, v = 0, y, b; _ < m; ++_) if (y = h[_]) {
|
|
1271
1266
|
for (_ >= v && (v = _ + 1); !(b = g[v]) && ++v < m;);
|
|
1272
1267
|
y._next = b || null;
|
|
1273
1268
|
}
|
|
1274
1269
|
}
|
|
1275
|
-
return o = new
|
|
1270
|
+
return o = new k(o, r), o._enter = s, o._exit = c, o;
|
|
1276
1271
|
}
|
|
1277
|
-
function
|
|
1272
|
+
function ht(e) {
|
|
1278
1273
|
return typeof e == "object" && "length" in e ? e : Array.from(e);
|
|
1279
1274
|
}
|
|
1280
|
-
function
|
|
1281
|
-
return new
|
|
1275
|
+
function gt() {
|
|
1276
|
+
return new k(this._exit || this._groups.map(st), this._parents);
|
|
1282
1277
|
}
|
|
1283
|
-
function
|
|
1278
|
+
function _t(e, t, n) {
|
|
1284
1279
|
var r = this.enter(), i = this, a = this.exit();
|
|
1285
1280
|
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;
|
|
1286
1281
|
}
|
|
1287
|
-
function
|
|
1282
|
+
function vt(e) {
|
|
1288
1283
|
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);
|
|
1289
1284
|
for (; c < i; ++c) s[c] = n[c];
|
|
1290
|
-
return new
|
|
1285
|
+
return new k(s, this._parents);
|
|
1291
1286
|
}
|
|
1292
|
-
function
|
|
1287
|
+
function yt() {
|
|
1293
1288
|
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);
|
|
1294
1289
|
return this;
|
|
1295
1290
|
}
|
|
1296
|
-
function
|
|
1297
|
-
e ||=
|
|
1291
|
+
function bt(e) {
|
|
1292
|
+
e ||= xt;
|
|
1298
1293
|
function t(t, n) {
|
|
1299
1294
|
return t && n ? e(t.__data__, n.__data__) : !t - !n;
|
|
1300
1295
|
}
|
|
@@ -1302,131 +1297,131 @@ function St(e) {
|
|
|
1302
1297
|
for (var o = n[a], s = o.length, c = i[a] = Array(s), l, u = 0; u < s; ++u) (l = o[u]) && (c[u] = l);
|
|
1303
1298
|
c.sort(t);
|
|
1304
1299
|
}
|
|
1305
|
-
return new
|
|
1300
|
+
return new k(i, this._parents).order();
|
|
1306
1301
|
}
|
|
1307
|
-
function
|
|
1302
|
+
function xt(e, t) {
|
|
1308
1303
|
return e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN;
|
|
1309
1304
|
}
|
|
1310
|
-
function
|
|
1305
|
+
function St() {
|
|
1311
1306
|
var e = arguments[0];
|
|
1312
1307
|
return arguments[0] = this, e.apply(null, arguments), this;
|
|
1313
1308
|
}
|
|
1314
|
-
function
|
|
1309
|
+
function Ct() {
|
|
1315
1310
|
return Array.from(this);
|
|
1316
1311
|
}
|
|
1317
|
-
function
|
|
1312
|
+
function wt() {
|
|
1318
1313
|
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) {
|
|
1319
1314
|
var o = r[i];
|
|
1320
1315
|
if (o) return o;
|
|
1321
1316
|
}
|
|
1322
1317
|
return null;
|
|
1323
1318
|
}
|
|
1324
|
-
function
|
|
1319
|
+
function Tt() {
|
|
1325
1320
|
let e = 0;
|
|
1326
1321
|
for (let t of this) ++e;
|
|
1327
1322
|
return e;
|
|
1328
1323
|
}
|
|
1329
|
-
function
|
|
1324
|
+
function Et() {
|
|
1330
1325
|
return !this.node();
|
|
1331
1326
|
}
|
|
1332
|
-
function
|
|
1327
|
+
function Dt(e) {
|
|
1333
1328
|
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);
|
|
1334
1329
|
return this;
|
|
1335
1330
|
}
|
|
1336
|
-
function
|
|
1331
|
+
function Ot(e) {
|
|
1337
1332
|
return function() {
|
|
1338
1333
|
this.removeAttribute(e);
|
|
1339
1334
|
};
|
|
1340
1335
|
}
|
|
1341
|
-
function
|
|
1336
|
+
function kt(e) {
|
|
1342
1337
|
return function() {
|
|
1343
1338
|
this.removeAttributeNS(e.space, e.local);
|
|
1344
1339
|
};
|
|
1345
1340
|
}
|
|
1346
|
-
function
|
|
1341
|
+
function At(e, t) {
|
|
1347
1342
|
return function() {
|
|
1348
1343
|
this.setAttribute(e, t);
|
|
1349
1344
|
};
|
|
1350
1345
|
}
|
|
1351
|
-
function
|
|
1346
|
+
function jt(e, t) {
|
|
1352
1347
|
return function() {
|
|
1353
1348
|
this.setAttributeNS(e.space, e.local, t);
|
|
1354
1349
|
};
|
|
1355
1350
|
}
|
|
1356
|
-
function
|
|
1351
|
+
function Mt(e, t) {
|
|
1357
1352
|
return function() {
|
|
1358
1353
|
var n = t.apply(this, arguments);
|
|
1359
1354
|
n == null ? this.removeAttribute(e) : this.setAttribute(e, n);
|
|
1360
1355
|
};
|
|
1361
1356
|
}
|
|
1362
|
-
function
|
|
1357
|
+
function Nt(e, t) {
|
|
1363
1358
|
return function() {
|
|
1364
1359
|
var n = t.apply(this, arguments);
|
|
1365
1360
|
n == null ? this.removeAttributeNS(e.space, e.local) : this.setAttributeNS(e.space, e.local, n);
|
|
1366
1361
|
};
|
|
1367
1362
|
}
|
|
1368
|
-
function
|
|
1369
|
-
var n =
|
|
1363
|
+
function Pt(e, t) {
|
|
1364
|
+
var n = Re(e);
|
|
1370
1365
|
if (arguments.length < 2) {
|
|
1371
1366
|
var r = this.node();
|
|
1372
1367
|
return n.local ? r.getAttributeNS(n.space, n.local) : r.getAttribute(n);
|
|
1373
1368
|
}
|
|
1374
|
-
return this.each((t == null ? n.local ?
|
|
1369
|
+
return this.each((t == null ? n.local ? kt : Ot : typeof t == "function" ? n.local ? Nt : Mt : n.local ? jt : At)(n, t));
|
|
1375
1370
|
}
|
|
1376
|
-
function
|
|
1371
|
+
function Ft(e) {
|
|
1377
1372
|
return e.ownerDocument && e.ownerDocument.defaultView || e.document && e || e.defaultView;
|
|
1378
1373
|
}
|
|
1379
|
-
function
|
|
1374
|
+
function It(e) {
|
|
1380
1375
|
return function() {
|
|
1381
1376
|
this.style.removeProperty(e);
|
|
1382
1377
|
};
|
|
1383
1378
|
}
|
|
1384
|
-
function
|
|
1379
|
+
function Lt(e, t, n) {
|
|
1385
1380
|
return function() {
|
|
1386
1381
|
this.style.setProperty(e, t, n);
|
|
1387
1382
|
};
|
|
1388
1383
|
}
|
|
1389
|
-
function
|
|
1384
|
+
function Rt(e, t, n) {
|
|
1390
1385
|
return function() {
|
|
1391
1386
|
var r = t.apply(this, arguments);
|
|
1392
1387
|
r == null ? this.style.removeProperty(e) : this.style.setProperty(e, r, n);
|
|
1393
1388
|
};
|
|
1394
1389
|
}
|
|
1395
|
-
function
|
|
1396
|
-
return arguments.length > 1 ? this.each((t == null ?
|
|
1390
|
+
function zt(e, t, n) {
|
|
1391
|
+
return arguments.length > 1 ? this.each((t == null ? It : typeof t == "function" ? Rt : Lt)(e, t, n ?? "")) : O(this.node(), e);
|
|
1397
1392
|
}
|
|
1398
|
-
function
|
|
1399
|
-
return e.style.getPropertyValue(t) ||
|
|
1393
|
+
function O(e, t) {
|
|
1394
|
+
return e.style.getPropertyValue(t) || Ft(e).getComputedStyle(e, null).getPropertyValue(t);
|
|
1400
1395
|
}
|
|
1401
|
-
function
|
|
1396
|
+
function Bt(e) {
|
|
1402
1397
|
return function() {
|
|
1403
1398
|
delete this[e];
|
|
1404
1399
|
};
|
|
1405
1400
|
}
|
|
1406
|
-
function
|
|
1401
|
+
function Vt(e, t) {
|
|
1407
1402
|
return function() {
|
|
1408
1403
|
this[e] = t;
|
|
1409
1404
|
};
|
|
1410
1405
|
}
|
|
1411
|
-
function
|
|
1406
|
+
function Ht(e, t) {
|
|
1412
1407
|
return function() {
|
|
1413
1408
|
var n = t.apply(this, arguments);
|
|
1414
1409
|
n == null ? delete this[e] : this[e] = n;
|
|
1415
1410
|
};
|
|
1416
1411
|
}
|
|
1417
|
-
function
|
|
1418
|
-
return arguments.length > 1 ? this.each((t == null ?
|
|
1412
|
+
function Ut(e, t) {
|
|
1413
|
+
return arguments.length > 1 ? this.each((t == null ? Bt : typeof t == "function" ? Ht : Vt)(e, t)) : this.node()[e];
|
|
1419
1414
|
}
|
|
1420
|
-
function
|
|
1415
|
+
function Wt(e) {
|
|
1421
1416
|
return e.trim().split(/^|\s+/);
|
|
1422
1417
|
}
|
|
1423
|
-
function
|
|
1424
|
-
return e.classList || new
|
|
1418
|
+
function Gt(e) {
|
|
1419
|
+
return e.classList || new Kt(e);
|
|
1425
1420
|
}
|
|
1426
|
-
function
|
|
1427
|
-
this._node = e, this._names =
|
|
1421
|
+
function Kt(e) {
|
|
1422
|
+
this._node = e, this._names = Wt(e.getAttribute("class") || "");
|
|
1428
1423
|
}
|
|
1429
|
-
|
|
1424
|
+
Kt.prototype = {
|
|
1430
1425
|
add: function(e) {
|
|
1431
1426
|
this._names.indexOf(e) < 0 && (this._names.push(e), this._node.setAttribute("class", this._names.join(" ")));
|
|
1432
1427
|
},
|
|
@@ -1438,121 +1433,123 @@ Jt.prototype = {
|
|
|
1438
1433
|
return this._names.indexOf(e) >= 0;
|
|
1439
1434
|
}
|
|
1440
1435
|
};
|
|
1441
|
-
function
|
|
1442
|
-
for (var n =
|
|
1436
|
+
function qt(e, t) {
|
|
1437
|
+
for (var n = Gt(e), r = -1, i = t.length; ++r < i;) n.add(t[r]);
|
|
1443
1438
|
}
|
|
1444
|
-
function
|
|
1445
|
-
for (var n =
|
|
1439
|
+
function Jt(e, t) {
|
|
1440
|
+
for (var n = Gt(e), r = -1, i = t.length; ++r < i;) n.remove(t[r]);
|
|
1446
1441
|
}
|
|
1447
|
-
function
|
|
1442
|
+
function Yt(e) {
|
|
1448
1443
|
return function() {
|
|
1449
|
-
|
|
1444
|
+
qt(this, e);
|
|
1450
1445
|
};
|
|
1451
1446
|
}
|
|
1452
|
-
function
|
|
1447
|
+
function Xt(e) {
|
|
1453
1448
|
return function() {
|
|
1454
|
-
|
|
1449
|
+
Jt(this, e);
|
|
1455
1450
|
};
|
|
1456
1451
|
}
|
|
1457
|
-
function
|
|
1452
|
+
function Zt(e, t) {
|
|
1458
1453
|
return function() {
|
|
1459
|
-
(t.apply(this, arguments) ?
|
|
1454
|
+
(t.apply(this, arguments) ? qt : Jt)(this, e);
|
|
1460
1455
|
};
|
|
1461
1456
|
}
|
|
1462
|
-
function
|
|
1463
|
-
var n =
|
|
1457
|
+
function Qt(e, t) {
|
|
1458
|
+
var n = Wt(e + "");
|
|
1464
1459
|
if (arguments.length < 2) {
|
|
1465
|
-
for (var r =
|
|
1460
|
+
for (var r = Gt(this.node()), i = -1, a = n.length; ++i < a;) if (!r.contains(n[i])) return !1;
|
|
1466
1461
|
return !0;
|
|
1467
1462
|
}
|
|
1468
|
-
return this.each((typeof t == "function" ?
|
|
1463
|
+
return this.each((typeof t == "function" ? Zt : t ? Yt : Xt)(n, t));
|
|
1469
1464
|
}
|
|
1470
|
-
function
|
|
1465
|
+
function $t() {
|
|
1471
1466
|
this.textContent = "";
|
|
1472
1467
|
}
|
|
1473
|
-
function
|
|
1468
|
+
function en(e) {
|
|
1474
1469
|
return function() {
|
|
1475
1470
|
this.textContent = e;
|
|
1476
1471
|
};
|
|
1477
1472
|
}
|
|
1478
|
-
function
|
|
1473
|
+
function tn(e) {
|
|
1479
1474
|
return function() {
|
|
1480
|
-
|
|
1475
|
+
var t = e.apply(this, arguments);
|
|
1476
|
+
this.textContent = t ?? "";
|
|
1481
1477
|
};
|
|
1482
1478
|
}
|
|
1483
|
-
function
|
|
1484
|
-
return arguments.length ? this.each(e == null ?
|
|
1479
|
+
function nn(e) {
|
|
1480
|
+
return arguments.length ? this.each(e == null ? $t : (typeof e == "function" ? tn : en)(e)) : this.node().textContent;
|
|
1485
1481
|
}
|
|
1486
|
-
function
|
|
1482
|
+
function rn() {
|
|
1487
1483
|
this.innerHTML = "";
|
|
1488
1484
|
}
|
|
1489
|
-
function
|
|
1485
|
+
function an(e) {
|
|
1490
1486
|
return function() {
|
|
1491
1487
|
this.innerHTML = e;
|
|
1492
1488
|
};
|
|
1493
1489
|
}
|
|
1494
|
-
function
|
|
1490
|
+
function on(e) {
|
|
1495
1491
|
return function() {
|
|
1496
|
-
|
|
1492
|
+
var t = e.apply(this, arguments);
|
|
1493
|
+
this.innerHTML = t ?? "";
|
|
1497
1494
|
};
|
|
1498
1495
|
}
|
|
1499
|
-
function
|
|
1500
|
-
return arguments.length ? this.each(e == null ?
|
|
1496
|
+
function sn(e) {
|
|
1497
|
+
return arguments.length ? this.each(e == null ? rn : (typeof e == "function" ? on : an)(e)) : this.node().innerHTML;
|
|
1501
1498
|
}
|
|
1502
|
-
function
|
|
1499
|
+
function cn() {
|
|
1503
1500
|
this.nextSibling && this.parentNode.appendChild(this);
|
|
1504
1501
|
}
|
|
1505
|
-
function
|
|
1506
|
-
return this.each(
|
|
1502
|
+
function ln() {
|
|
1503
|
+
return this.each(cn);
|
|
1507
1504
|
}
|
|
1508
|
-
function
|
|
1505
|
+
function un() {
|
|
1509
1506
|
this.previousSibling && this.parentNode.insertBefore(this, this.parentNode.firstChild);
|
|
1510
1507
|
}
|
|
1511
|
-
function
|
|
1512
|
-
return this.each(
|
|
1508
|
+
function dn() {
|
|
1509
|
+
return this.each(un);
|
|
1513
1510
|
}
|
|
1514
|
-
function
|
|
1515
|
-
var t = typeof e == "function" ? e :
|
|
1511
|
+
function fn(e) {
|
|
1512
|
+
var t = typeof e == "function" ? e : Ve(e);
|
|
1516
1513
|
return this.select(function() {
|
|
1517
1514
|
return this.appendChild(t.apply(this, arguments));
|
|
1518
1515
|
});
|
|
1519
1516
|
}
|
|
1520
|
-
function
|
|
1517
|
+
function pn() {
|
|
1521
1518
|
return null;
|
|
1522
1519
|
}
|
|
1523
|
-
function
|
|
1524
|
-
var n = typeof e == "function" ? e :
|
|
1520
|
+
function mn(e, t) {
|
|
1521
|
+
var n = typeof e == "function" ? e : Ve(e), r = t == null ? pn : typeof t == "function" ? t : Ue(t);
|
|
1525
1522
|
return this.select(function() {
|
|
1526
1523
|
return this.insertBefore(n.apply(this, arguments), r.apply(this, arguments) || null);
|
|
1527
1524
|
});
|
|
1528
1525
|
}
|
|
1529
|
-
function
|
|
1526
|
+
function hn() {
|
|
1530
1527
|
var e = this.parentNode;
|
|
1531
1528
|
e && e.removeChild(this);
|
|
1532
1529
|
}
|
|
1533
|
-
function
|
|
1534
|
-
return this.each(
|
|
1530
|
+
function gn() {
|
|
1531
|
+
return this.each(hn);
|
|
1535
1532
|
}
|
|
1536
|
-
function
|
|
1533
|
+
function _n() {
|
|
1537
1534
|
var e = this.cloneNode(!1), t = this.parentNode;
|
|
1538
1535
|
return t ? t.insertBefore(e, this.nextSibling) : e;
|
|
1539
1536
|
}
|
|
1540
|
-
function
|
|
1537
|
+
function vn() {
|
|
1541
1538
|
var e = this.cloneNode(!0), t = this.parentNode;
|
|
1542
1539
|
return t ? t.insertBefore(e, this.nextSibling) : e;
|
|
1543
1540
|
}
|
|
1544
|
-
function
|
|
1545
|
-
return this.select(e ?
|
|
1541
|
+
function yn(e) {
|
|
1542
|
+
return this.select(e ? vn : _n);
|
|
1546
1543
|
}
|
|
1547
|
-
function
|
|
1544
|
+
function bn(e) {
|
|
1548
1545
|
return arguments.length ? this.property("__data__", e) : this.node().__data__;
|
|
1549
1546
|
}
|
|
1550
|
-
function
|
|
1547
|
+
function xn(e) {
|
|
1551
1548
|
return function(t) {
|
|
1552
1549
|
e.call(this, t, this.__data__);
|
|
1553
1550
|
};
|
|
1554
1551
|
}
|
|
1555
|
-
function
|
|
1552
|
+
function Sn(e) {
|
|
1556
1553
|
return e.trim().split(/^|\s+/).map(function(e) {
|
|
1557
1554
|
var t = "", n = e.indexOf(".");
|
|
1558
1555
|
return n >= 0 && (t = e.slice(n + 1), e = e.slice(0, n)), {
|
|
@@ -1561,7 +1558,7 @@ function wn(e) {
|
|
|
1561
1558
|
};
|
|
1562
1559
|
});
|
|
1563
1560
|
}
|
|
1564
|
-
function
|
|
1561
|
+
function Cn(e) {
|
|
1565
1562
|
return function() {
|
|
1566
1563
|
var t = this.__on;
|
|
1567
1564
|
if (t) {
|
|
@@ -1570,9 +1567,9 @@ function Tn(e) {
|
|
|
1570
1567
|
}
|
|
1571
1568
|
};
|
|
1572
1569
|
}
|
|
1573
|
-
function
|
|
1570
|
+
function wn(e, t, n) {
|
|
1574
1571
|
return function() {
|
|
1575
|
-
var r = this.__on, i, a =
|
|
1572
|
+
var r = this.__on, i, a = xn(t);
|
|
1576
1573
|
if (r) {
|
|
1577
1574
|
for (var o = 0, s = r.length; o < s; ++o) if ((i = r[o]).type === e.type && i.name === e.name) {
|
|
1578
1575
|
this.removeEventListener(i.type, i.listener, i.options), this.addEventListener(i.type, i.listener = a, i.options = n), i.value = t;
|
|
@@ -1588,8 +1585,8 @@ function En(e, t, n) {
|
|
|
1588
1585
|
}, r ? r.push(i) : this.__on = [i];
|
|
1589
1586
|
};
|
|
1590
1587
|
}
|
|
1591
|
-
function
|
|
1592
|
-
var r =
|
|
1588
|
+
function Tn(e, t, n) {
|
|
1589
|
+
var r = Sn(e + ""), i, a = r.length, o;
|
|
1593
1590
|
if (arguments.length < 2) {
|
|
1594
1591
|
var s = this.node().__on;
|
|
1595
1592
|
if (s) {
|
|
@@ -1597,87 +1594,87 @@ function Dn(e, t, n) {
|
|
|
1597
1594
|
}
|
|
1598
1595
|
return;
|
|
1599
1596
|
}
|
|
1600
|
-
for (s = t ?
|
|
1597
|
+
for (s = t ? wn : Cn, i = 0; i < a; ++i) this.each(s(r[i], t, n));
|
|
1601
1598
|
return this;
|
|
1602
1599
|
}
|
|
1603
|
-
function
|
|
1604
|
-
var r =
|
|
1600
|
+
function En(e, t, n) {
|
|
1601
|
+
var r = Ft(e), i = r.CustomEvent;
|
|
1605
1602
|
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);
|
|
1606
1603
|
}
|
|
1607
|
-
function
|
|
1604
|
+
function Dn(e, t) {
|
|
1608
1605
|
return function() {
|
|
1609
|
-
return
|
|
1606
|
+
return En(this, e, t);
|
|
1610
1607
|
};
|
|
1611
1608
|
}
|
|
1612
|
-
function
|
|
1609
|
+
function On(e, t) {
|
|
1613
1610
|
return function() {
|
|
1614
|
-
return
|
|
1611
|
+
return En(this, e, t.apply(this, arguments));
|
|
1615
1612
|
};
|
|
1616
1613
|
}
|
|
1617
|
-
function
|
|
1618
|
-
return this.each((typeof t == "function" ?
|
|
1614
|
+
function kn(e, t) {
|
|
1615
|
+
return this.each((typeof t == "function" ? On : Dn)(e, t));
|
|
1619
1616
|
}
|
|
1620
|
-
function*
|
|
1617
|
+
function* An() {
|
|
1621
1618
|
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);
|
|
1622
1619
|
}
|
|
1623
|
-
var
|
|
1624
|
-
function
|
|
1620
|
+
var jn = [null];
|
|
1621
|
+
function k(e, t) {
|
|
1625
1622
|
this._groups = e, this._parents = t;
|
|
1626
1623
|
}
|
|
1627
|
-
function
|
|
1628
|
-
return new
|
|
1624
|
+
function A() {
|
|
1625
|
+
return new k([[document.documentElement]], jn);
|
|
1629
1626
|
}
|
|
1630
|
-
function
|
|
1627
|
+
function Mn() {
|
|
1631
1628
|
return this;
|
|
1632
1629
|
}
|
|
1633
|
-
|
|
1634
|
-
constructor:
|
|
1635
|
-
select:
|
|
1636
|
-
selectAll:
|
|
1637
|
-
selectChild:
|
|
1638
|
-
selectChildren:
|
|
1639
|
-
filter:
|
|
1640
|
-
data:
|
|
1641
|
-
enter:
|
|
1642
|
-
exit:
|
|
1643
|
-
join:
|
|
1644
|
-
merge:
|
|
1645
|
-
selection:
|
|
1646
|
-
order:
|
|
1647
|
-
sort:
|
|
1648
|
-
call:
|
|
1649
|
-
nodes:
|
|
1650
|
-
node:
|
|
1651
|
-
size:
|
|
1652
|
-
empty:
|
|
1653
|
-
each:
|
|
1654
|
-
attr:
|
|
1655
|
-
style:
|
|
1656
|
-
property:
|
|
1657
|
-
classed:
|
|
1658
|
-
text:
|
|
1659
|
-
html:
|
|
1660
|
-
raise:
|
|
1661
|
-
lower:
|
|
1662
|
-
append:
|
|
1663
|
-
insert:
|
|
1664
|
-
remove:
|
|
1665
|
-
clone:
|
|
1666
|
-
datum:
|
|
1667
|
-
on:
|
|
1668
|
-
dispatch:
|
|
1669
|
-
[Symbol.iterator]:
|
|
1630
|
+
k.prototype = A.prototype = {
|
|
1631
|
+
constructor: k,
|
|
1632
|
+
select: We,
|
|
1633
|
+
selectAll: Ye,
|
|
1634
|
+
selectChild: tt,
|
|
1635
|
+
selectChildren: at,
|
|
1636
|
+
filter: ot,
|
|
1637
|
+
data: mt,
|
|
1638
|
+
enter: ct,
|
|
1639
|
+
exit: gt,
|
|
1640
|
+
join: _t,
|
|
1641
|
+
merge: vt,
|
|
1642
|
+
selection: Mn,
|
|
1643
|
+
order: yt,
|
|
1644
|
+
sort: bt,
|
|
1645
|
+
call: St,
|
|
1646
|
+
nodes: Ct,
|
|
1647
|
+
node: wt,
|
|
1648
|
+
size: Tt,
|
|
1649
|
+
empty: Et,
|
|
1650
|
+
each: Dt,
|
|
1651
|
+
attr: Pt,
|
|
1652
|
+
style: zt,
|
|
1653
|
+
property: Ut,
|
|
1654
|
+
classed: Qt,
|
|
1655
|
+
text: nn,
|
|
1656
|
+
html: sn,
|
|
1657
|
+
raise: ln,
|
|
1658
|
+
lower: dn,
|
|
1659
|
+
append: fn,
|
|
1660
|
+
insert: mn,
|
|
1661
|
+
remove: gn,
|
|
1662
|
+
clone: yn,
|
|
1663
|
+
datum: bn,
|
|
1664
|
+
on: Tn,
|
|
1665
|
+
dispatch: kn,
|
|
1666
|
+
[Symbol.iterator]: An
|
|
1670
1667
|
};
|
|
1671
|
-
function
|
|
1668
|
+
function Nn(e, t, n) {
|
|
1672
1669
|
e.prototype = t.prototype = n, n.constructor = e;
|
|
1673
1670
|
}
|
|
1674
|
-
function
|
|
1671
|
+
function Pn(e, t) {
|
|
1675
1672
|
var n = Object.create(e.prototype);
|
|
1676
1673
|
for (var r in t) n[r] = t[r];
|
|
1677
1674
|
return n;
|
|
1678
1675
|
}
|
|
1679
|
-
function
|
|
1680
|
-
var
|
|
1676
|
+
function j() {}
|
|
1677
|
+
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 = {
|
|
1681
1678
|
aliceblue: 15792383,
|
|
1682
1679
|
antiquewhite: 16444375,
|
|
1683
1680
|
aqua: 65535,
|
|
@@ -1827,84 +1824,84 @@ var j = .7, Ln = 1 / j, M = "\\s*([+-]?\\d+)\\s*", N = "\\s*([+-]?(?:\\d*\\.)?\\
|
|
|
1827
1824
|
yellow: 16776960,
|
|
1828
1825
|
yellowgreen: 10145074
|
|
1829
1826
|
};
|
|
1830
|
-
|
|
1827
|
+
Nn(j, I, {
|
|
1831
1828
|
copy(e) {
|
|
1832
1829
|
return Object.assign(new this.constructor(), this, e);
|
|
1833
1830
|
},
|
|
1834
1831
|
displayable() {
|
|
1835
1832
|
return this.rgb().displayable();
|
|
1836
1833
|
},
|
|
1837
|
-
hex:
|
|
1838
|
-
formatHex:
|
|
1839
|
-
formatHex8:
|
|
1840
|
-
formatHsl:
|
|
1841
|
-
formatRgb:
|
|
1842
|
-
toString:
|
|
1834
|
+
hex: Wn,
|
|
1835
|
+
formatHex: Wn,
|
|
1836
|
+
formatHex8: Gn,
|
|
1837
|
+
formatHsl: Kn,
|
|
1838
|
+
formatRgb: qn,
|
|
1839
|
+
toString: qn
|
|
1843
1840
|
});
|
|
1844
|
-
function
|
|
1841
|
+
function Wn() {
|
|
1845
1842
|
return this.rgb().formatHex();
|
|
1846
1843
|
}
|
|
1847
|
-
function
|
|
1844
|
+
function Gn() {
|
|
1848
1845
|
return this.rgb().formatHex8();
|
|
1849
1846
|
}
|
|
1850
|
-
function
|
|
1851
|
-
return
|
|
1847
|
+
function Kn() {
|
|
1848
|
+
return rr(this).formatHsl();
|
|
1852
1849
|
}
|
|
1853
|
-
function
|
|
1850
|
+
function qn() {
|
|
1854
1851
|
return this.rgb().formatRgb();
|
|
1855
1852
|
}
|
|
1856
|
-
function
|
|
1853
|
+
function I(e) {
|
|
1857
1854
|
var t, n;
|
|
1858
|
-
return e = (e + "").trim().toLowerCase(), (t =
|
|
1855
|
+
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;
|
|
1859
1856
|
}
|
|
1860
|
-
function
|
|
1861
|
-
return new
|
|
1857
|
+
function Jn(e) {
|
|
1858
|
+
return new L(e >> 16 & 255, e >> 8 & 255, e & 255, 1);
|
|
1862
1859
|
}
|
|
1863
|
-
function
|
|
1864
|
-
return r <= 0 && (e = t = n = NaN), new
|
|
1860
|
+
function Yn(e, t, n, r) {
|
|
1861
|
+
return r <= 0 && (e = t = n = NaN), new L(e, t, n, r);
|
|
1865
1862
|
}
|
|
1866
|
-
function
|
|
1867
|
-
return e instanceof
|
|
1863
|
+
function Xn(e) {
|
|
1864
|
+
return e instanceof j || (e = I(e)), e ? (e = e.rgb(), new L(e.r, e.g, e.b, e.opacity)) : new L();
|
|
1868
1865
|
}
|
|
1869
|
-
function
|
|
1870
|
-
return arguments.length === 1 ?
|
|
1866
|
+
function Zn(e, t, n, r) {
|
|
1867
|
+
return arguments.length === 1 ? Xn(e) : new L(e, t, n, r ?? 1);
|
|
1871
1868
|
}
|
|
1872
|
-
function
|
|
1869
|
+
function L(e, t, n, r) {
|
|
1873
1870
|
this.r = +e, this.g = +t, this.b = +n, this.opacity = +r;
|
|
1874
1871
|
}
|
|
1875
|
-
|
|
1872
|
+
Nn(L, Zn, Pn(j, {
|
|
1876
1873
|
brighter(e) {
|
|
1877
|
-
return e = e == null ?
|
|
1874
|
+
return e = e == null ? Fn : Fn ** +e, new L(this.r * e, this.g * e, this.b * e, this.opacity);
|
|
1878
1875
|
},
|
|
1879
1876
|
darker(e) {
|
|
1880
|
-
return e = e == null ?
|
|
1877
|
+
return e = e == null ? M : M ** +e, new L(this.r * e, this.g * e, this.b * e, this.opacity);
|
|
1881
1878
|
},
|
|
1882
1879
|
rgb() {
|
|
1883
1880
|
return this;
|
|
1884
1881
|
},
|
|
1885
1882
|
clamp() {
|
|
1886
|
-
return new
|
|
1883
|
+
return new L(R(this.r), R(this.g), R(this.b), tr(this.opacity));
|
|
1887
1884
|
},
|
|
1888
1885
|
displayable() {
|
|
1889
1886
|
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;
|
|
1890
1887
|
},
|
|
1891
|
-
hex:
|
|
1892
|
-
formatHex:
|
|
1893
|
-
formatHex8:
|
|
1894
|
-
formatRgb:
|
|
1895
|
-
toString:
|
|
1888
|
+
hex: Qn,
|
|
1889
|
+
formatHex: Qn,
|
|
1890
|
+
formatHex8: $n,
|
|
1891
|
+
formatRgb: er,
|
|
1892
|
+
toString: er
|
|
1896
1893
|
}));
|
|
1897
|
-
function
|
|
1894
|
+
function Qn() {
|
|
1898
1895
|
return `#${z(this.r)}${z(this.g)}${z(this.b)}`;
|
|
1899
1896
|
}
|
|
1900
|
-
function
|
|
1897
|
+
function $n() {
|
|
1901
1898
|
return `#${z(this.r)}${z(this.g)}${z(this.b)}${z((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
|
|
1902
1899
|
}
|
|
1903
|
-
function
|
|
1904
|
-
let e =
|
|
1900
|
+
function er() {
|
|
1901
|
+
let e = tr(this.opacity);
|
|
1905
1902
|
return `${e === 1 ? "rgb(" : "rgba("}${R(this.r)}, ${R(this.g)}, ${R(this.b)}${e === 1 ? ")" : `, ${e})`}`;
|
|
1906
1903
|
}
|
|
1907
|
-
function
|
|
1904
|
+
function tr(e) {
|
|
1908
1905
|
return isNaN(e) ? 1 : Math.max(0, Math.min(1, e));
|
|
1909
1906
|
}
|
|
1910
1907
|
function R(e) {
|
|
@@ -1913,78 +1910,78 @@ function R(e) {
|
|
|
1913
1910
|
function z(e) {
|
|
1914
1911
|
return e = R(e), (e < 16 ? "0" : "") + e.toString(16);
|
|
1915
1912
|
}
|
|
1916
|
-
function
|
|
1913
|
+
function nr(e, t, n, r) {
|
|
1917
1914
|
return r <= 0 ? e = t = n = NaN : n <= 0 || n >= 1 ? e = t = NaN : t <= 0 && (e = NaN), new B(e, t, n, r);
|
|
1918
1915
|
}
|
|
1919
|
-
function
|
|
1916
|
+
function rr(e) {
|
|
1920
1917
|
if (e instanceof B) return new B(e.h, e.s, e.l, e.opacity);
|
|
1921
|
-
if (e instanceof
|
|
1918
|
+
if (e instanceof j || (e = I(e)), !e) return new B();
|
|
1922
1919
|
if (e instanceof B) return e;
|
|
1923
1920
|
e = e.rgb();
|
|
1924
1921
|
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;
|
|
1925
1922
|
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);
|
|
1926
1923
|
}
|
|
1927
|
-
function
|
|
1928
|
-
return arguments.length === 1 ?
|
|
1924
|
+
function ir(e, t, n, r) {
|
|
1925
|
+
return arguments.length === 1 ? rr(e) : new B(e, t, n, r ?? 1);
|
|
1929
1926
|
}
|
|
1930
1927
|
function B(e, t, n, r) {
|
|
1931
1928
|
this.h = +e, this.s = +t, this.l = +n, this.opacity = +r;
|
|
1932
1929
|
}
|
|
1933
|
-
|
|
1930
|
+
Nn(B, ir, Pn(j, {
|
|
1934
1931
|
brighter(e) {
|
|
1935
|
-
return e = e == null ?
|
|
1932
|
+
return e = e == null ? Fn : Fn ** +e, new B(this.h, this.s, this.l * e, this.opacity);
|
|
1936
1933
|
},
|
|
1937
1934
|
darker(e) {
|
|
1938
|
-
return e = e == null ?
|
|
1935
|
+
return e = e == null ? M : M ** +e, new B(this.h, this.s, this.l * e, this.opacity);
|
|
1939
1936
|
},
|
|
1940
1937
|
rgb() {
|
|
1941
1938
|
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;
|
|
1942
|
-
return new
|
|
1939
|
+
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);
|
|
1943
1940
|
},
|
|
1944
1941
|
clamp() {
|
|
1945
|
-
return new B(
|
|
1942
|
+
return new B(ar(this.h), or(this.s), or(this.l), tr(this.opacity));
|
|
1946
1943
|
},
|
|
1947
1944
|
displayable() {
|
|
1948
1945
|
return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1;
|
|
1949
1946
|
},
|
|
1950
1947
|
formatHsl() {
|
|
1951
|
-
let e =
|
|
1952
|
-
return `${e === 1 ? "hsl(" : "hsla("}${
|
|
1948
|
+
let e = tr(this.opacity);
|
|
1949
|
+
return `${e === 1 ? "hsl(" : "hsla("}${ar(this.h)}, ${or(this.s) * 100}%, ${or(this.l) * 100}%${e === 1 ? ")" : `, ${e})`}`;
|
|
1953
1950
|
}
|
|
1954
1951
|
}));
|
|
1955
|
-
function
|
|
1952
|
+
function ar(e) {
|
|
1956
1953
|
return e = (e || 0) % 360, e < 0 ? e + 360 : e;
|
|
1957
1954
|
}
|
|
1958
|
-
function
|
|
1955
|
+
function or(e) {
|
|
1959
1956
|
return Math.max(0, Math.min(1, e || 0));
|
|
1960
1957
|
}
|
|
1961
|
-
function
|
|
1958
|
+
function sr(e, t, n) {
|
|
1962
1959
|
return (e < 60 ? t + (n - t) * e / 60 : e < 180 ? n : e < 240 ? t + (n - t) * (240 - e) / 60 : t) * 255;
|
|
1963
1960
|
}
|
|
1964
|
-
var
|
|
1965
|
-
function
|
|
1961
|
+
var cr = (e) => () => e;
|
|
1962
|
+
function lr(e, t) {
|
|
1966
1963
|
return function(n) {
|
|
1967
1964
|
return e + n * t;
|
|
1968
1965
|
};
|
|
1969
1966
|
}
|
|
1970
|
-
function
|
|
1967
|
+
function ur(e, t, n) {
|
|
1971
1968
|
return e **= +n, t = t ** +n - e, n = 1 / n, function(r) {
|
|
1972
1969
|
return (e + r * t) ** +n;
|
|
1973
1970
|
};
|
|
1974
1971
|
}
|
|
1975
|
-
function
|
|
1976
|
-
return (e = +e) == 1 ?
|
|
1977
|
-
return n - t ?
|
|
1972
|
+
function dr(e) {
|
|
1973
|
+
return (e = +e) == 1 ? fr : function(t, n) {
|
|
1974
|
+
return n - t ? ur(t, n, e) : cr(isNaN(t) ? n : t);
|
|
1978
1975
|
};
|
|
1979
1976
|
}
|
|
1980
|
-
function
|
|
1977
|
+
function fr(e, t) {
|
|
1981
1978
|
var n = t - e;
|
|
1982
|
-
return n ?
|
|
1979
|
+
return n ? lr(e, n) : cr(isNaN(e) ? t : e);
|
|
1983
1980
|
}
|
|
1984
|
-
var
|
|
1985
|
-
var n =
|
|
1981
|
+
var pr = (function e(t) {
|
|
1982
|
+
var n = dr(t);
|
|
1986
1983
|
function r(e, t) {
|
|
1987
|
-
var r = n((e =
|
|
1984
|
+
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);
|
|
1988
1985
|
return function(t) {
|
|
1989
1986
|
return e.r = r(t), e.g = i(t), e.b = a(t), e.opacity = o(t), e + "";
|
|
1990
1987
|
};
|
|
@@ -1996,29 +1993,29 @@ function V(e, t) {
|
|
|
1996
1993
|
return e * (1 - n) + t * n;
|
|
1997
1994
|
};
|
|
1998
1995
|
}
|
|
1999
|
-
var
|
|
2000
|
-
function
|
|
1996
|
+
var mr = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, hr = new RegExp(mr.source, "g");
|
|
1997
|
+
function gr(e) {
|
|
2001
1998
|
return function() {
|
|
2002
1999
|
return e;
|
|
2003
2000
|
};
|
|
2004
2001
|
}
|
|
2005
|
-
function
|
|
2002
|
+
function _r(e) {
|
|
2006
2003
|
return function(t) {
|
|
2007
2004
|
return e(t) + "";
|
|
2008
2005
|
};
|
|
2009
2006
|
}
|
|
2010
|
-
function
|
|
2011
|
-
var n =
|
|
2012
|
-
for (e += "", t += ""; (r =
|
|
2007
|
+
function vr(e, t) {
|
|
2008
|
+
var n = mr.lastIndex = hr.lastIndex = 0, r, i, a, o = -1, s = [], c = [];
|
|
2009
|
+
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({
|
|
2013
2010
|
i: o,
|
|
2014
2011
|
x: V(r, i)
|
|
2015
|
-
})), n =
|
|
2016
|
-
return n < t.length && (a = t.slice(n), s[o] ? s[o] += a : s[++o] = a), s.length < 2 ? c[0] ?
|
|
2012
|
+
})), n = hr.lastIndex;
|
|
2013
|
+
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) {
|
|
2017
2014
|
for (var n = 0, r; n < t; ++n) s[(r = c[n]).i] = r.x(e);
|
|
2018
2015
|
return s.join("");
|
|
2019
2016
|
});
|
|
2020
2017
|
}
|
|
2021
|
-
var
|
|
2018
|
+
var yr = 180 / Math.PI, br = {
|
|
2022
2019
|
translateX: 0,
|
|
2023
2020
|
translateY: 0,
|
|
2024
2021
|
rotate: 0,
|
|
@@ -2026,26 +2023,26 @@ var br = 180 / Math.PI, xr = {
|
|
|
2026
2023
|
scaleX: 1,
|
|
2027
2024
|
scaleY: 1
|
|
2028
2025
|
};
|
|
2029
|
-
function
|
|
2026
|
+
function xr(e, t, n, r, i, a) {
|
|
2030
2027
|
var o, s, c;
|
|
2031
2028
|
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), {
|
|
2032
2029
|
translateX: i,
|
|
2033
2030
|
translateY: a,
|
|
2034
|
-
rotate: Math.atan2(t, e) *
|
|
2035
|
-
skewX: Math.atan(c) *
|
|
2031
|
+
rotate: Math.atan2(t, e) * yr,
|
|
2032
|
+
skewX: Math.atan(c) * yr,
|
|
2036
2033
|
scaleX: o,
|
|
2037
2034
|
scaleY: s
|
|
2038
2035
|
};
|
|
2039
2036
|
}
|
|
2040
|
-
var
|
|
2041
|
-
function
|
|
2037
|
+
var Sr;
|
|
2038
|
+
function Cr(e) {
|
|
2042
2039
|
let t = new (typeof DOMMatrix == "function" ? DOMMatrix : WebKitCSSMatrix)(e + "");
|
|
2043
|
-
return t.isIdentity ?
|
|
2040
|
+
return t.isIdentity ? br : xr(t.a, t.b, t.c, t.d, t.e, t.f);
|
|
2044
2041
|
}
|
|
2045
|
-
function
|
|
2046
|
-
return e == null || (
|
|
2042
|
+
function wr(e) {
|
|
2043
|
+
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));
|
|
2047
2044
|
}
|
|
2048
|
-
function
|
|
2045
|
+
function Tr(e, t, n, r) {
|
|
2049
2046
|
function i(e) {
|
|
2050
2047
|
return e.length ? e.pop() + " " : "";
|
|
2051
2048
|
}
|
|
@@ -2093,73 +2090,73 @@ function Er(e, t, n, r) {
|
|
|
2093
2090
|
};
|
|
2094
2091
|
};
|
|
2095
2092
|
}
|
|
2096
|
-
var
|
|
2093
|
+
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) {
|
|
2097
2094
|
setTimeout(e, 17);
|
|
2098
2095
|
};
|
|
2099
|
-
function
|
|
2100
|
-
return W ||= (
|
|
2096
|
+
function Fr() {
|
|
2097
|
+
return W ||= (Pr(Ir), G.now() + Nr);
|
|
2101
2098
|
}
|
|
2102
|
-
function
|
|
2099
|
+
function Ir() {
|
|
2103
2100
|
W = 0;
|
|
2104
2101
|
}
|
|
2105
|
-
function
|
|
2102
|
+
function Lr() {
|
|
2106
2103
|
this._call = this._time = this._next = null;
|
|
2107
2104
|
}
|
|
2108
|
-
|
|
2109
|
-
constructor:
|
|
2105
|
+
Lr.prototype = Rr.prototype = {
|
|
2106
|
+
constructor: Lr,
|
|
2110
2107
|
restart: function(e, t, n) {
|
|
2111
2108
|
if (typeof e != "function") throw TypeError("callback is not a function");
|
|
2112
|
-
n = (n == null ?
|
|
2109
|
+
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();
|
|
2113
2110
|
},
|
|
2114
2111
|
stop: function() {
|
|
2115
|
-
this._call && (this._call = null, this._time = Infinity,
|
|
2112
|
+
this._call && (this._call = null, this._time = Infinity, Ur());
|
|
2116
2113
|
}
|
|
2117
2114
|
};
|
|
2118
|
-
function
|
|
2119
|
-
var r = new
|
|
2115
|
+
function Rr(e, t, n) {
|
|
2116
|
+
var r = new Lr();
|
|
2120
2117
|
return r.restart(e, t, n), r;
|
|
2121
2118
|
}
|
|
2122
|
-
function
|
|
2123
|
-
|
|
2124
|
-
for (var e =
|
|
2119
|
+
function zr() {
|
|
2120
|
+
Fr(), ++H;
|
|
2121
|
+
for (var e = jr, t; e;) (t = W - e._time) >= 0 && e._call.call(void 0, t), e = e._next;
|
|
2125
2122
|
--H;
|
|
2126
2123
|
}
|
|
2127
|
-
function
|
|
2128
|
-
W = (
|
|
2124
|
+
function Br() {
|
|
2125
|
+
W = (Mr = G.now()) + Nr, H = Or = 0;
|
|
2129
2126
|
try {
|
|
2130
|
-
|
|
2127
|
+
zr();
|
|
2131
2128
|
} finally {
|
|
2132
|
-
H = 0,
|
|
2129
|
+
H = 0, Hr(), W = 0;
|
|
2133
2130
|
}
|
|
2134
2131
|
}
|
|
2135
|
-
function
|
|
2136
|
-
var e = G.now(), t = e -
|
|
2137
|
-
t >
|
|
2132
|
+
function Vr() {
|
|
2133
|
+
var e = G.now(), t = e - Mr;
|
|
2134
|
+
t > Ar && (Nr -= t, Mr = e);
|
|
2138
2135
|
}
|
|
2139
|
-
function
|
|
2140
|
-
for (var e, t =
|
|
2141
|
-
U = e,
|
|
2136
|
+
function Hr() {
|
|
2137
|
+
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);
|
|
2138
|
+
U = e, Ur(r);
|
|
2142
2139
|
}
|
|
2143
|
-
function
|
|
2144
|
-
H || (
|
|
2140
|
+
function Ur(e) {
|
|
2141
|
+
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)));
|
|
2145
2142
|
}
|
|
2146
|
-
function
|
|
2147
|
-
var r = new
|
|
2143
|
+
function Wr(e, t, n) {
|
|
2144
|
+
var r = new Lr();
|
|
2148
2145
|
return t = t == null ? 0 : +t, r.restart((n) => {
|
|
2149
2146
|
r.stop(), e(n + t);
|
|
2150
2147
|
}, t, n), r;
|
|
2151
2148
|
}
|
|
2152
|
-
var
|
|
2153
|
-
function
|
|
2149
|
+
var Gr = Me("start", "end", "cancel", "interrupt"), Kr = [];
|
|
2150
|
+
function qr(e, t, n, r, i, a) {
|
|
2154
2151
|
var o = e.__transition;
|
|
2155
2152
|
if (!o) e.__transition = {};
|
|
2156
2153
|
else if (n in o) return;
|
|
2157
|
-
|
|
2154
|
+
Yr(e, n, {
|
|
2158
2155
|
name: t,
|
|
2159
2156
|
index: r,
|
|
2160
2157
|
group: i,
|
|
2161
|
-
on:
|
|
2162
|
-
tween:
|
|
2158
|
+
on: Gr,
|
|
2159
|
+
tween: Kr,
|
|
2163
2160
|
time: a.time,
|
|
2164
2161
|
delay: a.delay,
|
|
2165
2162
|
duration: a.duration,
|
|
@@ -2168,7 +2165,7 @@ function Jr(e, t, n, r, i, a) {
|
|
|
2168
2165
|
state: 0
|
|
2169
2166
|
});
|
|
2170
2167
|
}
|
|
2171
|
-
function
|
|
2168
|
+
function Jr(e, t) {
|
|
2172
2169
|
var n = q(e, t);
|
|
2173
2170
|
if (n.state > 0) throw Error("too late; already scheduled");
|
|
2174
2171
|
return n;
|
|
@@ -2183,9 +2180,9 @@ function q(e, t) {
|
|
|
2183
2180
|
if (!n || !(n = n[t])) throw Error("transition not found");
|
|
2184
2181
|
return n;
|
|
2185
2182
|
}
|
|
2186
|
-
function
|
|
2183
|
+
function Yr(e, t, n) {
|
|
2187
2184
|
var r = e.__transition, i;
|
|
2188
|
-
r[t] = n, n.timer =
|
|
2185
|
+
r[t] = n, n.timer = Rr(a, 0, n.time);
|
|
2189
2186
|
function a(e) {
|
|
2190
2187
|
n.state = 1, n.timer.restart(o, n.delay, n.time), n.delay <= e && o(e - n.delay);
|
|
2191
2188
|
}
|
|
@@ -2193,10 +2190,10 @@ function Xr(e, t, n) {
|
|
|
2193
2190
|
var l, u, d, f;
|
|
2194
2191
|
if (n.state !== 1) return c();
|
|
2195
2192
|
for (l in r) if (f = r[l], f.name === n.name) {
|
|
2196
|
-
if (f.state === 3) return
|
|
2193
|
+
if (f.state === 3) return Wr(o);
|
|
2197
2194
|
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]);
|
|
2198
2195
|
}
|
|
2199
|
-
if (
|
|
2196
|
+
if (Wr(function() {
|
|
2200
2197
|
n.state === 3 && (n.state = 4, n.timer.restart(s, n.delay, n.time), s(a));
|
|
2201
2198
|
}), n.state = 2, n.on.call("start", e, e.__data__, n.index, n.group), n.state === 2) {
|
|
2202
2199
|
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);
|
|
@@ -2212,7 +2209,7 @@ function Xr(e, t, n) {
|
|
|
2212
2209
|
delete e.__transition;
|
|
2213
2210
|
}
|
|
2214
2211
|
}
|
|
2215
|
-
function
|
|
2212
|
+
function Xr(e, t) {
|
|
2216
2213
|
var n = e.__transition, r, i, a = !0, o;
|
|
2217
2214
|
if (n) {
|
|
2218
2215
|
for (o in t = t == null ? null : t + "", n) {
|
|
@@ -2225,12 +2222,12 @@ function Zr(e, t) {
|
|
|
2225
2222
|
a && delete e.__transition;
|
|
2226
2223
|
}
|
|
2227
2224
|
}
|
|
2228
|
-
function
|
|
2225
|
+
function Zr(e) {
|
|
2229
2226
|
return this.each(function() {
|
|
2230
|
-
|
|
2227
|
+
Xr(this, e);
|
|
2231
2228
|
});
|
|
2232
2229
|
}
|
|
2233
|
-
function
|
|
2230
|
+
function Qr(e, t) {
|
|
2234
2231
|
var n, r;
|
|
2235
2232
|
return function() {
|
|
2236
2233
|
var i = K(this, e), a = i.tween;
|
|
@@ -2244,7 +2241,7 @@ function $r(e, t) {
|
|
|
2244
2241
|
i.tween = r;
|
|
2245
2242
|
};
|
|
2246
2243
|
}
|
|
2247
|
-
function
|
|
2244
|
+
function $r(e, t, n) {
|
|
2248
2245
|
var r, i;
|
|
2249
2246
|
if (typeof n != "function") throw Error();
|
|
2250
2247
|
return function() {
|
|
@@ -2263,15 +2260,15 @@ function ei(e, t, n) {
|
|
|
2263
2260
|
a.tween = i;
|
|
2264
2261
|
};
|
|
2265
2262
|
}
|
|
2266
|
-
function
|
|
2263
|
+
function ei(e, t) {
|
|
2267
2264
|
var n = this._id;
|
|
2268
2265
|
if (e += "", arguments.length < 2) {
|
|
2269
2266
|
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;
|
|
2270
2267
|
return null;
|
|
2271
2268
|
}
|
|
2272
|
-
return this.each((t == null ?
|
|
2269
|
+
return this.each((t == null ? Qr : $r)(n, e, t));
|
|
2273
2270
|
}
|
|
2274
|
-
function
|
|
2271
|
+
function ti(e, t, n) {
|
|
2275
2272
|
var r = e._id;
|
|
2276
2273
|
return e.each(function() {
|
|
2277
2274
|
var e = K(this, r);
|
|
@@ -2280,286 +2277,287 @@ function ni(e, t, n) {
|
|
|
2280
2277
|
return q(e, r).value[t];
|
|
2281
2278
|
};
|
|
2282
2279
|
}
|
|
2283
|
-
function
|
|
2280
|
+
function ni(e, t) {
|
|
2284
2281
|
var n;
|
|
2285
|
-
return (typeof t == "number" ? V : t instanceof
|
|
2282
|
+
return (typeof t == "number" ? V : t instanceof I ? pr : (n = I(t)) ? (t = n, pr) : vr)(e, t);
|
|
2286
2283
|
}
|
|
2287
|
-
function
|
|
2284
|
+
function ri(e) {
|
|
2288
2285
|
return function() {
|
|
2289
2286
|
this.removeAttribute(e);
|
|
2290
2287
|
};
|
|
2291
2288
|
}
|
|
2292
|
-
function
|
|
2289
|
+
function ii(e) {
|
|
2293
2290
|
return function() {
|
|
2294
2291
|
this.removeAttributeNS(e.space, e.local);
|
|
2295
2292
|
};
|
|
2296
2293
|
}
|
|
2297
|
-
function
|
|
2294
|
+
function ai(e, t, n) {
|
|
2298
2295
|
var r, i = n + "", a;
|
|
2299
2296
|
return function() {
|
|
2300
2297
|
var o = this.getAttribute(e);
|
|
2301
2298
|
return o === i ? null : o === r ? a : a = t(r = o, n);
|
|
2302
2299
|
};
|
|
2303
2300
|
}
|
|
2304
|
-
function
|
|
2301
|
+
function oi(e, t, n) {
|
|
2305
2302
|
var r, i = n + "", a;
|
|
2306
2303
|
return function() {
|
|
2307
2304
|
var o = this.getAttributeNS(e.space, e.local);
|
|
2308
2305
|
return o === i ? null : o === r ? a : a = t(r = o, n);
|
|
2309
2306
|
};
|
|
2310
2307
|
}
|
|
2311
|
-
function
|
|
2308
|
+
function si(e, t, n) {
|
|
2312
2309
|
var r, i, a;
|
|
2313
2310
|
return function() {
|
|
2314
2311
|
var o, s = n(this), c;
|
|
2315
2312
|
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)));
|
|
2316
2313
|
};
|
|
2317
2314
|
}
|
|
2318
|
-
function
|
|
2315
|
+
function ci(e, t, n) {
|
|
2319
2316
|
var r, i, a;
|
|
2320
2317
|
return function() {
|
|
2321
2318
|
var o, s = n(this), c;
|
|
2322
2319
|
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)));
|
|
2323
2320
|
};
|
|
2324
2321
|
}
|
|
2325
|
-
function
|
|
2326
|
-
var n =
|
|
2327
|
-
return this.attrTween(e, typeof t == "function" ? (n.local ?
|
|
2322
|
+
function li(e, t) {
|
|
2323
|
+
var n = Re(e), r = n === "transform" ? Dr : ni;
|
|
2324
|
+
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));
|
|
2328
2325
|
}
|
|
2329
|
-
function
|
|
2326
|
+
function ui(e, t) {
|
|
2330
2327
|
return function(n) {
|
|
2331
2328
|
this.setAttribute(e, t.call(this, n));
|
|
2332
2329
|
};
|
|
2333
2330
|
}
|
|
2334
|
-
function
|
|
2331
|
+
function di(e, t) {
|
|
2335
2332
|
return function(n) {
|
|
2336
2333
|
this.setAttributeNS(e.space, e.local, t.call(this, n));
|
|
2337
2334
|
};
|
|
2338
2335
|
}
|
|
2339
|
-
function
|
|
2336
|
+
function fi(e, t) {
|
|
2340
2337
|
var n, r;
|
|
2341
2338
|
function i() {
|
|
2342
2339
|
var i = t.apply(this, arguments);
|
|
2343
|
-
return i !== r && (n = (r = i) &&
|
|
2340
|
+
return i !== r && (n = (r = i) && di(e, i)), n;
|
|
2344
2341
|
}
|
|
2345
2342
|
return i._value = t, i;
|
|
2346
2343
|
}
|
|
2347
|
-
function
|
|
2344
|
+
function pi(e, t) {
|
|
2348
2345
|
var n, r;
|
|
2349
2346
|
function i() {
|
|
2350
2347
|
var i = t.apply(this, arguments);
|
|
2351
|
-
return i !== r && (n = (r = i) &&
|
|
2348
|
+
return i !== r && (n = (r = i) && ui(e, i)), n;
|
|
2352
2349
|
}
|
|
2353
2350
|
return i._value = t, i;
|
|
2354
2351
|
}
|
|
2355
|
-
function
|
|
2352
|
+
function mi(e, t) {
|
|
2356
2353
|
var n = "attr." + e;
|
|
2357
2354
|
if (arguments.length < 2) return (n = this.tween(n)) && n._value;
|
|
2358
2355
|
if (t == null) return this.tween(n, null);
|
|
2359
2356
|
if (typeof t != "function") throw Error();
|
|
2360
|
-
var r =
|
|
2361
|
-
return this.tween(n, (r.local ?
|
|
2357
|
+
var r = Re(e);
|
|
2358
|
+
return this.tween(n, (r.local ? fi : pi)(r, t));
|
|
2362
2359
|
}
|
|
2363
|
-
function
|
|
2360
|
+
function hi(e, t) {
|
|
2364
2361
|
return function() {
|
|
2365
|
-
|
|
2362
|
+
Jr(this, e).delay = +t.apply(this, arguments);
|
|
2366
2363
|
};
|
|
2367
2364
|
}
|
|
2368
|
-
function
|
|
2365
|
+
function gi(e, t) {
|
|
2369
2366
|
return t = +t, function() {
|
|
2370
|
-
|
|
2367
|
+
Jr(this, e).delay = t;
|
|
2371
2368
|
};
|
|
2372
2369
|
}
|
|
2373
|
-
function
|
|
2370
|
+
function _i(e) {
|
|
2374
2371
|
var t = this._id;
|
|
2375
|
-
return arguments.length ? this.each((typeof e == "function" ?
|
|
2372
|
+
return arguments.length ? this.each((typeof e == "function" ? hi : gi)(t, e)) : q(this.node(), t).delay;
|
|
2376
2373
|
}
|
|
2377
|
-
function
|
|
2374
|
+
function vi(e, t) {
|
|
2378
2375
|
return function() {
|
|
2379
2376
|
K(this, e).duration = +t.apply(this, arguments);
|
|
2380
2377
|
};
|
|
2381
2378
|
}
|
|
2382
|
-
function
|
|
2379
|
+
function yi(e, t) {
|
|
2383
2380
|
return t = +t, function() {
|
|
2384
2381
|
K(this, e).duration = t;
|
|
2385
2382
|
};
|
|
2386
2383
|
}
|
|
2387
|
-
function
|
|
2384
|
+
function bi(e) {
|
|
2388
2385
|
var t = this._id;
|
|
2389
|
-
return arguments.length ? this.each((typeof e == "function" ?
|
|
2386
|
+
return arguments.length ? this.each((typeof e == "function" ? vi : yi)(t, e)) : q(this.node(), t).duration;
|
|
2390
2387
|
}
|
|
2391
|
-
function
|
|
2388
|
+
function xi(e, t) {
|
|
2392
2389
|
if (typeof t != "function") throw Error();
|
|
2393
2390
|
return function() {
|
|
2394
2391
|
K(this, e).ease = t;
|
|
2395
2392
|
};
|
|
2396
2393
|
}
|
|
2397
|
-
function
|
|
2394
|
+
function Si(e) {
|
|
2398
2395
|
var t = this._id;
|
|
2399
|
-
return arguments.length ? this.each(
|
|
2396
|
+
return arguments.length ? this.each(xi(t, e)) : q(this.node(), t).ease;
|
|
2400
2397
|
}
|
|
2401
|
-
function
|
|
2398
|
+
function Ci(e, t) {
|
|
2402
2399
|
return function() {
|
|
2403
2400
|
var n = t.apply(this, arguments);
|
|
2404
2401
|
if (typeof n != "function") throw Error();
|
|
2405
2402
|
K(this, e).ease = n;
|
|
2406
2403
|
};
|
|
2407
2404
|
}
|
|
2408
|
-
function
|
|
2405
|
+
function wi(e) {
|
|
2409
2406
|
if (typeof e != "function") throw Error();
|
|
2410
|
-
return this.each(
|
|
2407
|
+
return this.each(Ci(this._id, e));
|
|
2411
2408
|
}
|
|
2412
|
-
function
|
|
2413
|
-
typeof e != "function" && (e =
|
|
2409
|
+
function Ti(e) {
|
|
2410
|
+
typeof e != "function" && (e = Xe(e));
|
|
2414
2411
|
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);
|
|
2415
2412
|
return new J(r, this._parents, this._name, this._id);
|
|
2416
2413
|
}
|
|
2417
|
-
function
|
|
2414
|
+
function Ei(e) {
|
|
2418
2415
|
if (e._id !== this._id) throw Error();
|
|
2419
2416
|
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);
|
|
2420
2417
|
for (; s < r; ++s) o[s] = t[s];
|
|
2421
2418
|
return new J(o, this._parents, this._name, this._id);
|
|
2422
2419
|
}
|
|
2423
|
-
function
|
|
2420
|
+
function Di(e) {
|
|
2424
2421
|
return (e + "").trim().split(/^|\s+/).every(function(e) {
|
|
2425
2422
|
var t = e.indexOf(".");
|
|
2426
2423
|
return t >= 0 && (e = e.slice(0, t)), !e || e === "start";
|
|
2427
2424
|
});
|
|
2428
2425
|
}
|
|
2429
|
-
function
|
|
2430
|
-
var r, i, a =
|
|
2426
|
+
function Oi(e, t, n) {
|
|
2427
|
+
var r, i, a = Di(t) ? Jr : K;
|
|
2431
2428
|
return function() {
|
|
2432
2429
|
var o = a(this, e), s = o.on;
|
|
2433
2430
|
s !== r && (i = (r = s).copy()).on(t, n), o.on = i;
|
|
2434
2431
|
};
|
|
2435
2432
|
}
|
|
2436
|
-
function
|
|
2433
|
+
function ki(e, t) {
|
|
2437
2434
|
var n = this._id;
|
|
2438
|
-
return arguments.length < 2 ? q(this.node(), n).on.on(e) : this.each(
|
|
2435
|
+
return arguments.length < 2 ? q(this.node(), n).on.on(e) : this.each(Oi(n, e, t));
|
|
2439
2436
|
}
|
|
2440
|
-
function
|
|
2437
|
+
function Ai(e) {
|
|
2441
2438
|
return function() {
|
|
2442
2439
|
var t = this.parentNode;
|
|
2443
2440
|
for (var n in this.__transition) if (+n !== e) return;
|
|
2444
2441
|
t && t.removeChild(this);
|
|
2445
2442
|
};
|
|
2446
2443
|
}
|
|
2447
|
-
function
|
|
2448
|
-
return this.on("end.remove",
|
|
2444
|
+
function ji() {
|
|
2445
|
+
return this.on("end.remove", Ai(this._id));
|
|
2449
2446
|
}
|
|
2450
|
-
function
|
|
2447
|
+
function Mi(e) {
|
|
2451
2448
|
var t = this._name, n = this._id;
|
|
2452
|
-
typeof e != "function" && (e =
|
|
2453
|
-
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,
|
|
2449
|
+
typeof e != "function" && (e = Ue(e));
|
|
2450
|
+
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)));
|
|
2454
2451
|
return new J(a, this._parents, t, n);
|
|
2455
2452
|
}
|
|
2456
|
-
function
|
|
2453
|
+
function Ni(e) {
|
|
2457
2454
|
var t = this._name, n = this._id;
|
|
2458
|
-
typeof e != "function" && (e =
|
|
2455
|
+
typeof e != "function" && (e = qe(e));
|
|
2459
2456
|
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]) {
|
|
2460
|
-
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]) &&
|
|
2457
|
+
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);
|
|
2461
2458
|
a.push(f), o.push(u);
|
|
2462
2459
|
}
|
|
2463
2460
|
return new J(a, o, t, n);
|
|
2464
2461
|
}
|
|
2465
|
-
var
|
|
2466
|
-
function
|
|
2467
|
-
return new
|
|
2462
|
+
var Pi = A.prototype.constructor;
|
|
2463
|
+
function Fi() {
|
|
2464
|
+
return new Pi(this._groups, this._parents);
|
|
2468
2465
|
}
|
|
2469
|
-
function
|
|
2466
|
+
function Ii(e, t) {
|
|
2470
2467
|
var n, r, i;
|
|
2471
2468
|
return function() {
|
|
2472
|
-
var a =
|
|
2469
|
+
var a = O(this, e), o = (this.style.removeProperty(e), O(this, e));
|
|
2473
2470
|
return a === o ? null : a === n && o === r ? i : i = t(n = a, r = o);
|
|
2474
2471
|
};
|
|
2475
2472
|
}
|
|
2476
|
-
function
|
|
2473
|
+
function Li(e) {
|
|
2477
2474
|
return function() {
|
|
2478
2475
|
this.style.removeProperty(e);
|
|
2479
2476
|
};
|
|
2480
2477
|
}
|
|
2481
|
-
function
|
|
2478
|
+
function Ri(e, t, n) {
|
|
2482
2479
|
var r, i = n + "", a;
|
|
2483
2480
|
return function() {
|
|
2484
|
-
var o =
|
|
2481
|
+
var o = O(this, e);
|
|
2485
2482
|
return o === i ? null : o === r ? a : a = t(r = o, n);
|
|
2486
2483
|
};
|
|
2487
2484
|
}
|
|
2488
|
-
function
|
|
2485
|
+
function zi(e, t, n) {
|
|
2489
2486
|
var r, i, a;
|
|
2490
2487
|
return function() {
|
|
2491
|
-
var o =
|
|
2492
|
-
return s ?? (c = s = (this.style.removeProperty(e),
|
|
2488
|
+
var o = O(this, e), s = n(this), c = s + "";
|
|
2489
|
+
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));
|
|
2493
2490
|
};
|
|
2494
2491
|
}
|
|
2495
|
-
function
|
|
2492
|
+
function Bi(e, t) {
|
|
2496
2493
|
var n, r, i, a = "style." + t, o = "end." + a, s;
|
|
2497
2494
|
return function() {
|
|
2498
|
-
var c = K(this, e), l = c.on, u = c.value[a] == null ? s ||=
|
|
2495
|
+
var c = K(this, e), l = c.on, u = c.value[a] == null ? s ||= Li(t) : void 0;
|
|
2499
2496
|
(l !== n || i !== u) && (r = (n = l).copy()).on(o, i = u), c.on = r;
|
|
2500
2497
|
};
|
|
2501
2498
|
}
|
|
2502
|
-
function
|
|
2503
|
-
var r = (e += "") == "transform" ?
|
|
2504
|
-
return t == null ? this.styleTween(e,
|
|
2499
|
+
function Vi(e, t, n) {
|
|
2500
|
+
var r = (e += "") == "transform" ? Er : ni;
|
|
2501
|
+
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);
|
|
2505
2502
|
}
|
|
2506
|
-
function
|
|
2503
|
+
function Hi(e, t, n) {
|
|
2507
2504
|
return function(r) {
|
|
2508
2505
|
this.style.setProperty(e, t.call(this, r), n);
|
|
2509
2506
|
};
|
|
2510
2507
|
}
|
|
2511
|
-
function
|
|
2508
|
+
function Ui(e, t, n) {
|
|
2512
2509
|
var r, i;
|
|
2513
2510
|
function a() {
|
|
2514
2511
|
var a = t.apply(this, arguments);
|
|
2515
|
-
return a !== i && (r = (i = a) &&
|
|
2512
|
+
return a !== i && (r = (i = a) && Hi(e, a, n)), r;
|
|
2516
2513
|
}
|
|
2517
2514
|
return a._value = t, a;
|
|
2518
2515
|
}
|
|
2519
|
-
function
|
|
2516
|
+
function Wi(e, t, n) {
|
|
2520
2517
|
var r = "style." + (e += "");
|
|
2521
2518
|
if (arguments.length < 2) return (r = this.tween(r)) && r._value;
|
|
2522
2519
|
if (t == null) return this.tween(r, null);
|
|
2523
2520
|
if (typeof t != "function") throw Error();
|
|
2524
|
-
return this.tween(r,
|
|
2521
|
+
return this.tween(r, Ui(e, t, n ?? ""));
|
|
2525
2522
|
}
|
|
2526
|
-
function
|
|
2523
|
+
function Gi(e) {
|
|
2527
2524
|
return function() {
|
|
2528
2525
|
this.textContent = e;
|
|
2529
2526
|
};
|
|
2530
2527
|
}
|
|
2531
|
-
function
|
|
2528
|
+
function Ki(e) {
|
|
2532
2529
|
return function() {
|
|
2533
|
-
|
|
2530
|
+
var t = e(this);
|
|
2531
|
+
this.textContent = t ?? "";
|
|
2534
2532
|
};
|
|
2535
2533
|
}
|
|
2536
|
-
function
|
|
2537
|
-
return this.tween("text", typeof e == "function" ?
|
|
2534
|
+
function qi(e) {
|
|
2535
|
+
return this.tween("text", typeof e == "function" ? Ki(ti(this, "text", e)) : Gi(e == null ? "" : e + ""));
|
|
2538
2536
|
}
|
|
2539
|
-
function
|
|
2537
|
+
function Ji(e) {
|
|
2540
2538
|
return function(t) {
|
|
2541
2539
|
this.textContent = e.call(this, t);
|
|
2542
2540
|
};
|
|
2543
2541
|
}
|
|
2544
|
-
function
|
|
2542
|
+
function Yi(e) {
|
|
2545
2543
|
var t, n;
|
|
2546
2544
|
function r() {
|
|
2547
2545
|
var r = e.apply(this, arguments);
|
|
2548
|
-
return r !== n && (t = (n = r) &&
|
|
2546
|
+
return r !== n && (t = (n = r) && Ji(r)), t;
|
|
2549
2547
|
}
|
|
2550
2548
|
return r._value = e, r;
|
|
2551
2549
|
}
|
|
2552
|
-
function
|
|
2550
|
+
function Xi(e) {
|
|
2553
2551
|
var t = "text";
|
|
2554
2552
|
if (arguments.length < 1) return (t = this.tween(t)) && t._value;
|
|
2555
2553
|
if (e == null) return this.tween(t, null);
|
|
2556
2554
|
if (typeof e != "function") throw Error();
|
|
2557
|
-
return this.tween(t,
|
|
2555
|
+
return this.tween(t, Yi(e));
|
|
2558
2556
|
}
|
|
2559
|
-
function
|
|
2560
|
-
for (var e = this._name, t = this._id, n =
|
|
2557
|
+
function Zi() {
|
|
2558
|
+
for (var e = this._name, t = this._id, n = ta(), 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]) {
|
|
2561
2559
|
var u = q(c, t);
|
|
2562
|
-
|
|
2560
|
+
qr(c, e, n, l, o, {
|
|
2563
2561
|
time: u.time + u.delay + u.duration,
|
|
2564
2562
|
delay: 0,
|
|
2565
2563
|
duration: u.duration,
|
|
@@ -2568,7 +2566,7 @@ function Qi() {
|
|
|
2568
2566
|
}
|
|
2569
2567
|
return new J(r, this._parents, e, n);
|
|
2570
2568
|
}
|
|
2571
|
-
function
|
|
2569
|
+
function Qi() {
|
|
2572
2570
|
var e, t, n = this, r = n._id, i = n.size();
|
|
2573
2571
|
return new Promise(function(a, o) {
|
|
2574
2572
|
var s = { value: o }, c = { value: function() {
|
|
@@ -2580,71 +2578,71 @@ function $i() {
|
|
|
2580
2578
|
}), i === 0 && a();
|
|
2581
2579
|
});
|
|
2582
2580
|
}
|
|
2583
|
-
var
|
|
2581
|
+
var $i = 0;
|
|
2584
2582
|
function J(e, t, n, r) {
|
|
2585
2583
|
this._groups = e, this._parents = t, this._name = n, this._id = r;
|
|
2586
2584
|
}
|
|
2587
|
-
function
|
|
2588
|
-
return
|
|
2585
|
+
function ea(e) {
|
|
2586
|
+
return A().transition(e);
|
|
2589
2587
|
}
|
|
2590
|
-
function
|
|
2591
|
-
return
|
|
2588
|
+
function ta() {
|
|
2589
|
+
return ++$i;
|
|
2592
2590
|
}
|
|
2593
|
-
var Y =
|
|
2594
|
-
J.prototype =
|
|
2591
|
+
var Y = A.prototype;
|
|
2592
|
+
J.prototype = ea.prototype = {
|
|
2595
2593
|
constructor: J,
|
|
2596
|
-
select:
|
|
2597
|
-
selectAll:
|
|
2594
|
+
select: Mi,
|
|
2595
|
+
selectAll: Ni,
|
|
2598
2596
|
selectChild: Y.selectChild,
|
|
2599
2597
|
selectChildren: Y.selectChildren,
|
|
2600
|
-
filter:
|
|
2601
|
-
merge:
|
|
2602
|
-
selection:
|
|
2603
|
-
transition:
|
|
2598
|
+
filter: Ti,
|
|
2599
|
+
merge: Ei,
|
|
2600
|
+
selection: Fi,
|
|
2601
|
+
transition: Zi,
|
|
2604
2602
|
call: Y.call,
|
|
2605
2603
|
nodes: Y.nodes,
|
|
2606
2604
|
node: Y.node,
|
|
2607
2605
|
size: Y.size,
|
|
2608
2606
|
empty: Y.empty,
|
|
2609
2607
|
each: Y.each,
|
|
2610
|
-
on:
|
|
2611
|
-
attr:
|
|
2612
|
-
attrTween:
|
|
2613
|
-
style:
|
|
2614
|
-
styleTween:
|
|
2615
|
-
text:
|
|
2616
|
-
textTween:
|
|
2617
|
-
remove:
|
|
2618
|
-
tween:
|
|
2619
|
-
delay:
|
|
2620
|
-
duration:
|
|
2621
|
-
ease:
|
|
2622
|
-
easeVarying:
|
|
2623
|
-
end:
|
|
2608
|
+
on: ki,
|
|
2609
|
+
attr: li,
|
|
2610
|
+
attrTween: mi,
|
|
2611
|
+
style: Vi,
|
|
2612
|
+
styleTween: Wi,
|
|
2613
|
+
text: qi,
|
|
2614
|
+
textTween: Xi,
|
|
2615
|
+
remove: ji,
|
|
2616
|
+
tween: ei,
|
|
2617
|
+
delay: _i,
|
|
2618
|
+
duration: bi,
|
|
2619
|
+
ease: Si,
|
|
2620
|
+
easeVarying: wi,
|
|
2621
|
+
end: Qi,
|
|
2624
2622
|
[Symbol.iterator]: Y[Symbol.iterator]
|
|
2625
2623
|
};
|
|
2626
|
-
function
|
|
2624
|
+
function na(e) {
|
|
2627
2625
|
return ((e *= 2) <= 1 ? e * e * e : (e -= 2) * e * e + 2) / 2;
|
|
2628
2626
|
}
|
|
2629
|
-
var
|
|
2627
|
+
var ra = {
|
|
2630
2628
|
time: null,
|
|
2631
2629
|
delay: 0,
|
|
2632
2630
|
duration: 250,
|
|
2633
|
-
ease:
|
|
2631
|
+
ease: na
|
|
2634
2632
|
};
|
|
2635
|
-
function
|
|
2633
|
+
function ia(e, t) {
|
|
2636
2634
|
for (var n; !(n = e.__transition) || !(n = n[t]);) if (!(e = e.parentNode)) throw Error(`transition ${t} not found`);
|
|
2637
2635
|
return n;
|
|
2638
2636
|
}
|
|
2639
|
-
function
|
|
2637
|
+
function aa(e) {
|
|
2640
2638
|
var t, n;
|
|
2641
|
-
e instanceof J ? (t = e._id, e = e._name) : (t =
|
|
2642
|
-
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]) &&
|
|
2639
|
+
e instanceof J ? (t = e._id, e = e._name) : (t = ta(), (n = ra).time = Fr(), e = e == null ? null : e + "");
|
|
2640
|
+
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 || ia(c, t));
|
|
2643
2641
|
return new J(r, this._parents, e, t);
|
|
2644
2642
|
}
|
|
2645
|
-
|
|
2646
|
-
var { abs:
|
|
2647
|
-
["w", "e"].map(
|
|
2643
|
+
A.prototype.interrupt = Zr, A.prototype.transition = aa;
|
|
2644
|
+
var { abs: oa, max: sa, min: ca } = Math;
|
|
2645
|
+
["w", "e"].map(la), ["n", "s"].map(la), [
|
|
2648
2646
|
"n",
|
|
2649
2647
|
"w",
|
|
2650
2648
|
"e",
|
|
@@ -2653,39 +2651,39 @@ var { abs: sa, max: ca, min: la } = Math;
|
|
|
2653
2651
|
"ne",
|
|
2654
2652
|
"sw",
|
|
2655
2653
|
"se"
|
|
2656
|
-
].map(
|
|
2657
|
-
function
|
|
2654
|
+
].map(la);
|
|
2655
|
+
function la(e) {
|
|
2658
2656
|
return { type: e };
|
|
2659
2657
|
}
|
|
2660
|
-
function
|
|
2658
|
+
function ua(e) {
|
|
2661
2659
|
return Math.abs(e = Math.round(e)) >= 1e21 ? e.toLocaleString("en").replace(/,/g, "") : e.toString(10);
|
|
2662
2660
|
}
|
|
2663
|
-
function
|
|
2664
|
-
if ((
|
|
2665
|
-
var n, r = e.slice(0, n);
|
|
2661
|
+
function da(e, t) {
|
|
2662
|
+
if (!isFinite(e) || e === 0) return null;
|
|
2663
|
+
var n = (e = t ? e.toExponential(t - 1) : e.toExponential()).indexOf("e"), r = e.slice(0, n);
|
|
2666
2664
|
return [r.length > 1 ? r[0] + r.slice(2) : r, +e.slice(n + 1)];
|
|
2667
2665
|
}
|
|
2668
|
-
function
|
|
2669
|
-
return e =
|
|
2666
|
+
function fa(e) {
|
|
2667
|
+
return e = da(Math.abs(e)), e ? e[1] : NaN;
|
|
2670
2668
|
}
|
|
2671
|
-
function
|
|
2669
|
+
function pa(e, t) {
|
|
2672
2670
|
return function(n, r) {
|
|
2673
2671
|
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];
|
|
2674
2672
|
return a.reverse().join(t);
|
|
2675
2673
|
};
|
|
2676
2674
|
}
|
|
2677
|
-
function
|
|
2675
|
+
function ma(e) {
|
|
2678
2676
|
return function(t) {
|
|
2679
2677
|
return t.replace(/[0-9]/g, function(t) {
|
|
2680
2678
|
return e[+t];
|
|
2681
2679
|
});
|
|
2682
2680
|
};
|
|
2683
2681
|
}
|
|
2684
|
-
var
|
|
2685
|
-
function
|
|
2686
|
-
if (!(t =
|
|
2682
|
+
var ha = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
|
|
2683
|
+
function ga(e) {
|
|
2684
|
+
if (!(t = ha.exec(e))) throw Error("invalid format: " + e);
|
|
2687
2685
|
var t;
|
|
2688
|
-
return new
|
|
2686
|
+
return new _a({
|
|
2689
2687
|
fill: t[1],
|
|
2690
2688
|
align: t[2],
|
|
2691
2689
|
sign: t[3],
|
|
@@ -2698,14 +2696,14 @@ function _a(e) {
|
|
|
2698
2696
|
type: t[10]
|
|
2699
2697
|
});
|
|
2700
2698
|
}
|
|
2701
|
-
|
|
2702
|
-
function
|
|
2699
|
+
ga.prototype = _a.prototype;
|
|
2700
|
+
function _a(e) {
|
|
2703
2701
|
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 + "";
|
|
2704
2702
|
}
|
|
2705
|
-
|
|
2703
|
+
_a.prototype.toString = function() {
|
|
2706
2704
|
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;
|
|
2707
2705
|
};
|
|
2708
|
-
function
|
|
2706
|
+
function va(e) {
|
|
2709
2707
|
out: for (var t = e.length, n = 1, r = -1, i; n < t; ++n) switch (e[n]) {
|
|
2710
2708
|
case ".":
|
|
2711
2709
|
r = i = n;
|
|
@@ -2720,38 +2718,38 @@ function ya(e) {
|
|
|
2720
2718
|
}
|
|
2721
2719
|
return r > 0 ? e.slice(0, r) + e.slice(i + 1) : e;
|
|
2722
2720
|
}
|
|
2723
|
-
var
|
|
2724
|
-
function
|
|
2725
|
-
var n =
|
|
2726
|
-
if (!n) return
|
|
2727
|
-
var r = n[0], i = n[1], a = i - (
|
|
2728
|
-
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") +
|
|
2721
|
+
var ya;
|
|
2722
|
+
function ba(e, t) {
|
|
2723
|
+
var n = da(e, t);
|
|
2724
|
+
if (!n) return ya = void 0, e.toPrecision(t);
|
|
2725
|
+
var r = n[0], i = n[1], a = i - (ya = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1, o = r.length;
|
|
2726
|
+
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") + da(e, Math.max(0, t + a - 1))[0];
|
|
2729
2727
|
}
|
|
2730
|
-
function
|
|
2731
|
-
var n =
|
|
2728
|
+
function xa(e, t) {
|
|
2729
|
+
var n = da(e, t);
|
|
2732
2730
|
if (!n) return e + "";
|
|
2733
2731
|
var r = n[0], i = n[1];
|
|
2734
2732
|
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");
|
|
2735
2733
|
}
|
|
2736
|
-
var
|
|
2734
|
+
var Sa = {
|
|
2737
2735
|
"%": (e, t) => (e * 100).toFixed(t),
|
|
2738
2736
|
b: (e) => Math.round(e).toString(2),
|
|
2739
2737
|
c: (e) => e + "",
|
|
2740
|
-
d:
|
|
2738
|
+
d: ua,
|
|
2741
2739
|
e: (e, t) => e.toExponential(t),
|
|
2742
2740
|
f: (e, t) => e.toFixed(t),
|
|
2743
2741
|
g: (e, t) => e.toPrecision(t),
|
|
2744
2742
|
o: (e) => Math.round(e).toString(8),
|
|
2745
|
-
p: (e, t) =>
|
|
2746
|
-
r:
|
|
2747
|
-
s:
|
|
2743
|
+
p: (e, t) => xa(e * 100, t),
|
|
2744
|
+
r: xa,
|
|
2745
|
+
s: ba,
|
|
2748
2746
|
X: (e) => Math.round(e).toString(16).toUpperCase(),
|
|
2749
2747
|
x: (e) => Math.round(e).toString(16)
|
|
2750
2748
|
};
|
|
2751
|
-
function
|
|
2749
|
+
function Ca(e) {
|
|
2752
2750
|
return e;
|
|
2753
2751
|
}
|
|
2754
|
-
var
|
|
2752
|
+
var wa = Array.prototype.map, Ta = [
|
|
2755
2753
|
"y",
|
|
2756
2754
|
"z",
|
|
2757
2755
|
"a",
|
|
@@ -2770,53 +2768,53 @@ var Ta = Array.prototype.map, Ea = [
|
|
|
2770
2768
|
"Z",
|
|
2771
2769
|
"Y"
|
|
2772
2770
|
];
|
|
2773
|
-
function
|
|
2774
|
-
var t = e.grouping === void 0 || e.thousands === void 0 ?
|
|
2775
|
-
function l(e) {
|
|
2776
|
-
e =
|
|
2777
|
-
var
|
|
2778
|
-
|
|
2779
|
-
var
|
|
2780
|
-
|
|
2781
|
-
function
|
|
2782
|
-
var n =
|
|
2783
|
-
if (
|
|
2771
|
+
function Ea(e) {
|
|
2772
|
+
var t = e.grouping === void 0 || e.thousands === void 0 ? Ca : pa(wa.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 ? Ca : ma(wa.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 + "";
|
|
2773
|
+
function l(e, l) {
|
|
2774
|
+
e = ga(e);
|
|
2775
|
+
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;
|
|
2776
|
+
y === "n" ? (g = !0, y = "g") : Sa[y] || (_ === void 0 && (_ = 12), v = !0, y = "g"), (m || u === "0" && d === "=") && (m = !0, u = "0", d = "=");
|
|
2777
|
+
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 = Sa[y], C = /[defgprs%]/.test(y);
|
|
2778
|
+
_ = _ === void 0 ? 6 : /[gprs]/.test(y) ? Math.max(1, Math.min(21, _)) : Math.max(0, Math.min(20, _));
|
|
2779
|
+
function w(e) {
|
|
2780
|
+
var n = b, r = x, o, l, p;
|
|
2781
|
+
if (y === "c") r = S(e) + r, e = "";
|
|
2784
2782
|
else {
|
|
2785
2783
|
e = +e;
|
|
2786
|
-
var
|
|
2787
|
-
if (e = isNaN(e) ? c :
|
|
2788
|
-
for (o = -1,
|
|
2789
|
-
r = (
|
|
2784
|
+
var w = e < 0 || 1 / e < 0;
|
|
2785
|
+
if (e = isNaN(e) ? c : S(Math.abs(e), _), v && (e = va(e)), w && +e == 0 && f !== "+" && (w = !1), n = (w ? f === "(" ? f : s : f === "-" || f === "(" ? "" : f) + n, r = (y === "s" && !isNaN(e) && ya !== void 0 ? Ta[8 + ya / 3] : "") + r + (w && f === "(" ? ")" : ""), C) {
|
|
2786
|
+
for (o = -1, l = e.length; ++o < l;) if (p = e.charCodeAt(o), 48 > p || p > 57) {
|
|
2787
|
+
r = (p === 46 ? i + e.slice(o + 1) : e.slice(o)) + r, e = e.slice(0, o);
|
|
2790
2788
|
break;
|
|
2791
2789
|
}
|
|
2792
2790
|
}
|
|
2793
2791
|
}
|
|
2794
|
-
|
|
2795
|
-
var
|
|
2796
|
-
switch (
|
|
2792
|
+
g && !m && (e = t(e, Infinity));
|
|
2793
|
+
var T = n.length + e.length + r.length, E = T < h ? Array(h - T + 1).join(u) : "";
|
|
2794
|
+
switch (g && m && (e = t(E + e, E.length ? h - r.length : Infinity), E = ""), d) {
|
|
2797
2795
|
case "<":
|
|
2798
|
-
e = n + e + r +
|
|
2796
|
+
e = n + e + r + E;
|
|
2799
2797
|
break;
|
|
2800
2798
|
case "=":
|
|
2801
|
-
e = n +
|
|
2799
|
+
e = n + E + e + r;
|
|
2802
2800
|
break;
|
|
2803
2801
|
case "^":
|
|
2804
|
-
e =
|
|
2802
|
+
e = E.slice(0, T = E.length >> 1) + n + e + r + E.slice(T);
|
|
2805
2803
|
break;
|
|
2806
2804
|
default:
|
|
2807
|
-
e =
|
|
2805
|
+
e = E + n + e + r;
|
|
2808
2806
|
break;
|
|
2809
2807
|
}
|
|
2810
2808
|
return a(e);
|
|
2811
2809
|
}
|
|
2812
|
-
return
|
|
2810
|
+
return w.toString = function() {
|
|
2813
2811
|
return e + "";
|
|
2814
|
-
},
|
|
2812
|
+
}, w;
|
|
2815
2813
|
}
|
|
2816
2814
|
function u(e, t) {
|
|
2817
|
-
var n =
|
|
2815
|
+
var n = Math.max(-8, Math.min(8, Math.floor(fa(t) / 3))) * 3, r = 10 ** -n, i = l((e = ga(e), e.type = "f", e), { suffix: Ta[8 + n / 3] });
|
|
2818
2816
|
return function(e) {
|
|
2819
|
-
return
|
|
2817
|
+
return i(r * e);
|
|
2820
2818
|
};
|
|
2821
2819
|
}
|
|
2822
2820
|
return {
|
|
@@ -2824,14 +2822,14 @@ function Da(e) {
|
|
|
2824
2822
|
formatPrefix: u
|
|
2825
2823
|
};
|
|
2826
2824
|
}
|
|
2827
|
-
var
|
|
2828
|
-
|
|
2825
|
+
var Da;
|
|
2826
|
+
Oa({
|
|
2829
2827
|
thousands: ",",
|
|
2830
2828
|
grouping: [3],
|
|
2831
2829
|
currency: ["$", ""]
|
|
2832
2830
|
});
|
|
2833
|
-
function
|
|
2834
|
-
return
|
|
2831
|
+
function Oa(e) {
|
|
2832
|
+
return Da = Ea(e), Da.format, Da.formatPrefix, Da;
|
|
2835
2833
|
}
|
|
2836
2834
|
function X(e, t, n) {
|
|
2837
2835
|
this.k = e, this.x = t, this.y = n;
|
|
@@ -2872,16 +2870,16 @@ X.prototype = {
|
|
|
2872
2870
|
return "translate(" + this.x + "," + this.y + ") scale(" + this.k + ")";
|
|
2873
2871
|
}
|
|
2874
2872
|
};
|
|
2875
|
-
var
|
|
2876
|
-
|
|
2877
|
-
function
|
|
2878
|
-
for (; !e.__zoom;) if (!(e = e.parentNode)) return
|
|
2873
|
+
var ka = new X(1, 0, 0);
|
|
2874
|
+
Aa.prototype = X.prototype;
|
|
2875
|
+
function Aa(e) {
|
|
2876
|
+
for (; !e.__zoom;) if (!(e = e.parentNode)) return ka;
|
|
2879
2877
|
return e.__zoom;
|
|
2880
2878
|
}
|
|
2881
2879
|
//#endregion
|
|
2882
2880
|
//#region src/helpers/transferConstructedPolygonGeometry.ts
|
|
2883
|
-
function
|
|
2884
|
-
let t = new
|
|
2881
|
+
function ja(e) {
|
|
2882
|
+
let t = new Ce(e);
|
|
2885
2883
|
return {
|
|
2886
2884
|
result: t,
|
|
2887
2885
|
transfers: [
|
|
@@ -2897,38 +2895,38 @@ function Ma(e) {
|
|
|
2897
2895
|
t.outline_scale_normal_and_cap?.buffer,
|
|
2898
2896
|
t.outline_skip_indices?.buffer,
|
|
2899
2897
|
t.outline_batch_index?.buffer
|
|
2900
|
-
].filter(
|
|
2898
|
+
].filter(ye)
|
|
2901
2899
|
};
|
|
2902
2900
|
}
|
|
2903
2901
|
//#endregion
|
|
2904
2902
|
//#region src/utils/toTransferableTileLike.ts
|
|
2905
2903
|
function Z(e) {
|
|
2906
|
-
return new d(
|
|
2904
|
+
return new d(Ma(e.coords), e.max_height, e.min_height, e.cached_mesh_handle ? Na(e.cached_mesh_handle) : void 0);
|
|
2907
2905
|
}
|
|
2908
|
-
function
|
|
2906
|
+
function Ma(e) {
|
|
2909
2907
|
return new o(e.x, e.y, e.z);
|
|
2910
2908
|
}
|
|
2911
|
-
function
|
|
2909
|
+
function Na(e) {
|
|
2912
2910
|
return new t(e.vertices, e.indices, e.uvs, e.heights);
|
|
2913
2911
|
}
|
|
2914
2912
|
//#endregion
|
|
2915
2913
|
//#region src/utils/toUpsamplableTerrainGeometryLike.ts
|
|
2916
|
-
function
|
|
2914
|
+
function Pa(e) {
|
|
2917
2915
|
return new f(e.uvs, e.indices, e.heights, e.normals, e.watermask);
|
|
2918
2916
|
}
|
|
2919
2917
|
//#endregion
|
|
2920
2918
|
//#region src/utils/toExtentRadianF32Like.ts
|
|
2921
|
-
function
|
|
2919
|
+
function Fa(e) {
|
|
2922
2920
|
return new r(e.west, e.south, e.east, e.north);
|
|
2923
2921
|
}
|
|
2924
2922
|
//#endregion
|
|
2925
2923
|
//#region src/utils/toPolygonMaterialLike.ts
|
|
2926
|
-
function
|
|
2924
|
+
function Ia(e) {
|
|
2927
2925
|
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__);
|
|
2928
2926
|
}
|
|
2929
2927
|
//#endregion
|
|
2930
2928
|
//#region src/utils/toTransferablePolygonBatchedFeatureLike.ts
|
|
2931
|
-
function
|
|
2929
|
+
function La(e) {
|
|
2932
2930
|
let t = new c(e.crs, e.length);
|
|
2933
2931
|
return t.setOuterRing(e.outer_ring.length, (t) => {
|
|
2934
2932
|
t.set(e.outer_ring);
|
|
@@ -2952,28 +2950,28 @@ function Ra(e) {
|
|
|
2952
2950
|
}
|
|
2953
2951
|
//#endregion
|
|
2954
2952
|
//#region src/tasks/waitWasm.ts
|
|
2955
|
-
var
|
|
2953
|
+
var Ra;
|
|
2956
2954
|
async function Q() {
|
|
2957
|
-
return
|
|
2955
|
+
return Ra ??= e(), Ra;
|
|
2958
2956
|
}
|
|
2959
|
-
async function
|
|
2960
|
-
if (!
|
|
2961
|
-
let { memory: e } = await
|
|
2957
|
+
async function za() {
|
|
2958
|
+
if (!Ra) return 0;
|
|
2959
|
+
let { memory: e } = await Ra;
|
|
2962
2960
|
return e.buffer.byteLength;
|
|
2963
2961
|
}
|
|
2964
2962
|
//#endregion
|
|
2965
2963
|
//#region src/tasks/constructPolygonBatchedFeature.ts
|
|
2966
|
-
async function
|
|
2964
|
+
async function Ba(e, t, n, r) {
|
|
2967
2965
|
await Q();
|
|
2968
|
-
let i = p(
|
|
2966
|
+
let i = p(La(e), Ia(t), n, r ? Fa(r) : void 0);
|
|
2969
2967
|
if (!i) return;
|
|
2970
|
-
let { result: a, transfers: o } =
|
|
2968
|
+
let { result: a, transfers: o } = ja(i);
|
|
2971
2969
|
return i.free(), $(a, o);
|
|
2972
2970
|
}
|
|
2973
2971
|
//#endregion
|
|
2974
2972
|
//#region src/helpers/transferConstructedPolylineGeometry.ts
|
|
2975
|
-
function
|
|
2976
|
-
let t = new
|
|
2973
|
+
function Va(e) {
|
|
2974
|
+
let t = new we(e);
|
|
2977
2975
|
return {
|
|
2978
2976
|
result: t,
|
|
2979
2977
|
transfers: [
|
|
@@ -2992,17 +2990,17 @@ function Ha(e) {
|
|
|
2992
2990
|
t.batch_id?.buffer,
|
|
2993
2991
|
t.batch_index?.buffer,
|
|
2994
2992
|
t.indices.buffer
|
|
2995
|
-
].filter(
|
|
2993
|
+
].filter(ye)
|
|
2996
2994
|
};
|
|
2997
2995
|
}
|
|
2998
2996
|
//#endregion
|
|
2999
2997
|
//#region src/utils/toPolylineMaterialLike.ts
|
|
3000
|
-
function
|
|
2998
|
+
function Ha(e) {
|
|
3001
2999
|
return new a(e.show, e.castShadow, e.receiveShadow, e.color, e.clampToGround, e.tiled, e.height, e.width, e.maxWidth, e.__internal__);
|
|
3002
3000
|
}
|
|
3003
3001
|
//#endregion
|
|
3004
3002
|
//#region src/utils/toTransferablePolylineBatchedFeatureLike.ts
|
|
3005
|
-
function
|
|
3003
|
+
function Ua(e) {
|
|
3006
3004
|
let t = new l(e.crs, e.length);
|
|
3007
3005
|
return t.setPoints(e.points.length, (t) => {
|
|
3008
3006
|
t.set(e.points);
|
|
@@ -3016,17 +3014,17 @@ function Wa(e) {
|
|
|
3016
3014
|
}
|
|
3017
3015
|
//#endregion
|
|
3018
3016
|
//#region src/tasks/constructPolylineBatchedFeature.ts
|
|
3019
|
-
async function
|
|
3017
|
+
async function Wa(e, t, n) {
|
|
3020
3018
|
await Q();
|
|
3021
|
-
let r = m(
|
|
3019
|
+
let r = m(Ua(e), Ha(t), n);
|
|
3022
3020
|
if (!r) return;
|
|
3023
|
-
let { result: i, transfers: a } =
|
|
3021
|
+
let { result: i, transfers: a } = Va(r);
|
|
3024
3022
|
return r.free(), $(i, a);
|
|
3025
3023
|
}
|
|
3026
3024
|
//#endregion
|
|
3027
3025
|
//#region src/helpers/transferReturnedConstructedTerrainMesh.ts
|
|
3028
|
-
function
|
|
3029
|
-
let t = new
|
|
3026
|
+
function Ga(e) {
|
|
3027
|
+
let t = new xe(e), n = [
|
|
3030
3028
|
t.vertices.buffer,
|
|
3031
3029
|
t.uvs.buffer,
|
|
3032
3030
|
t.indices.buffer,
|
|
@@ -3039,26 +3037,26 @@ function Ka(e) {
|
|
|
3039
3037
|
}
|
|
3040
3038
|
//#endregion
|
|
3041
3039
|
//#region src/tasks/constructQuantizedMeshTerrainMesh.ts
|
|
3042
|
-
async function
|
|
3040
|
+
async function Ka(e, t, n, r, i, a) {
|
|
3043
3041
|
await Q();
|
|
3044
|
-
let o = h(e, Z(t), n, r, i, a), { result: s, transfers: c } =
|
|
3042
|
+
let o = h(e, Z(t), n, r, i, a), { result: s, transfers: c } = Ga(o);
|
|
3045
3043
|
return o.free(), $({ result: s }, [...c]);
|
|
3046
3044
|
}
|
|
3047
3045
|
//#endregion
|
|
3048
3046
|
//#region src/utils/toTransferableRasterDEMDataLike.ts
|
|
3049
|
-
function
|
|
3047
|
+
function qa(e) {
|
|
3050
3048
|
return new u(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));
|
|
3051
3049
|
}
|
|
3052
3050
|
//#endregion
|
|
3053
3051
|
//#region src/tasks/constructTerrainMesh.ts
|
|
3054
|
-
async function
|
|
3052
|
+
async function Ja(e, t, n, r, i, a) {
|
|
3055
3053
|
await Q();
|
|
3056
|
-
let o = r + 1, c = s.fromSize(o), l = g(e, Z(t),
|
|
3054
|
+
let o = r + 1, c = s.fromSize(o), l = g(e, Z(t), qa(n), c, i, a), { result: u, transfers: d } = Ga(l);
|
|
3057
3055
|
return l.free(), $({ result: u }, [...d]);
|
|
3058
3056
|
}
|
|
3059
3057
|
//#endregion
|
|
3060
3058
|
//#region src/tasks/getImageDataFromBlob.ts
|
|
3061
|
-
async function
|
|
3059
|
+
async function Ya(e) {
|
|
3062
3060
|
let t = await createImageBitmap(e);
|
|
3063
3061
|
try {
|
|
3064
3062
|
let e = new OffscreenCanvas(t.width, t.height).getContext("2d");
|
|
@@ -3072,7 +3070,7 @@ async function Xa(e) {
|
|
|
3072
3070
|
}
|
|
3073
3071
|
//#endregion
|
|
3074
3072
|
//#region src/tasks/getImageDataFromImageBitmap.ts
|
|
3075
|
-
async function
|
|
3073
|
+
async function Xa(e, t) {
|
|
3076
3074
|
try {
|
|
3077
3075
|
let n = t.getContext("2d");
|
|
3078
3076
|
if (n === null) throw Error("failed to get context of canvas");
|
|
@@ -3083,9 +3081,9 @@ async function Za(e, t) {
|
|
|
3083
3081
|
}
|
|
3084
3082
|
//#endregion
|
|
3085
3083
|
//#region src/tasks/parseMvtTile.ts
|
|
3086
|
-
async function
|
|
3084
|
+
async function Za(e, t, n, r, i, a, o) {
|
|
3087
3085
|
await Q();
|
|
3088
|
-
let s = _(e, t, n, r, i ?
|
|
3086
|
+
let s = _(e, t, n, r, i ? Fa(i) : void 0, a, o), c, l, u, d, f;
|
|
3089
3087
|
try {
|
|
3090
3088
|
c = s.f64_stream(), l = s.f32_stream(), u = s.u32_stream(), d = s.u8_stream(), f = s.meta();
|
|
3091
3089
|
} finally {
|
|
@@ -3106,56 +3104,56 @@ async function Qa(e, t, n, r, i, a, o) {
|
|
|
3106
3104
|
}
|
|
3107
3105
|
//#endregion
|
|
3108
3106
|
//#region src/tasks/upsampleQuantizedMeshTerrainMesh.ts
|
|
3109
|
-
async function
|
|
3107
|
+
async function Qa(e, t, n, r, i, a, o) {
|
|
3110
3108
|
await Q();
|
|
3111
|
-
let s = v(Z(e), Z(t),
|
|
3109
|
+
let s = v(Z(e), Z(t), Pa(n), r, i, a, o), { result: c, transfers: l } = Ga(s);
|
|
3112
3110
|
return s.free(), $(c, l);
|
|
3113
3111
|
}
|
|
3114
3112
|
//#endregion
|
|
3115
3113
|
//#region src/tasks/upsampleTerrainMesh.ts
|
|
3116
|
-
async function
|
|
3114
|
+
async function $a(e, t, n, r, i, a, o) {
|
|
3117
3115
|
await Q();
|
|
3118
|
-
let s = y(Z(e), Z(t),
|
|
3116
|
+
let s = y(Z(e), Z(t), qa(n), Pa(r), i, a, o), { result: c, transfers: l } = Ga(s);
|
|
3119
3117
|
return s.free(), $(c, l);
|
|
3120
3118
|
}
|
|
3121
3119
|
//#endregion
|
|
3122
3120
|
//#region src/tasks/index.ts
|
|
3123
|
-
async function
|
|
3121
|
+
async function eo() {
|
|
3124
3122
|
await Q();
|
|
3125
3123
|
}
|
|
3126
|
-
var
|
|
3127
|
-
constructTerrainMesh:
|
|
3128
|
-
constructQuantizedMeshTerrainMesh:
|
|
3129
|
-
upsampleTerrainMesh:
|
|
3130
|
-
upsampleQuantizedMeshTerrainMesh:
|
|
3131
|
-
getImageDataFromImageBitmap:
|
|
3132
|
-
getImageDataFromBlob:
|
|
3133
|
-
constructPolygonBatchedFeature:
|
|
3134
|
-
constructPolylineBatchedFeature:
|
|
3135
|
-
parseMvtTile:
|
|
3136
|
-
warmUp:
|
|
3137
|
-
getWasmMemoryUsage:
|
|
3138
|
-
}, $ = (e, t) => new
|
|
3139
|
-
function
|
|
3140
|
-
|
|
3124
|
+
var to = {
|
|
3125
|
+
constructTerrainMesh: Ja,
|
|
3126
|
+
constructQuantizedMeshTerrainMesh: Ka,
|
|
3127
|
+
upsampleTerrainMesh: $a,
|
|
3128
|
+
upsampleQuantizedMeshTerrainMesh: Qa,
|
|
3129
|
+
getImageDataFromImageBitmap: Xa,
|
|
3130
|
+
getImageDataFromBlob: Ya,
|
|
3131
|
+
constructPolygonBatchedFeature: Ba,
|
|
3132
|
+
constructPolylineBatchedFeature: Wa,
|
|
3133
|
+
parseMvtTile: Za,
|
|
3134
|
+
warmUp: eo,
|
|
3135
|
+
getWasmMemoryUsage: za
|
|
3136
|
+
}, $ = (e, t) => new me.Transfer(e, t), no = !1, ro = (...e) => (no ||= (me.worker(to), io(), !0), me.worker(...e));
|
|
3137
|
+
function io() {
|
|
3138
|
+
to.warmUp.worker?.addAbortListener(async () => {});
|
|
3141
3139
|
}
|
|
3142
3140
|
//#endregion
|
|
3143
3141
|
//#region src/pool.ts
|
|
3144
|
-
var { initializeWorkerPool:
|
|
3142
|
+
var { initializeWorkerPool: ao, terminateWorkerPool: oo, warmUpWorkerPool: so, worker: co, workerPoolStats: lo, workerPoolHeapStats: uo, probeWorkerPoolHeap: fo } = (() => {
|
|
3145
3143
|
let e;
|
|
3146
3144
|
return {
|
|
3147
3145
|
initializeWorkerPool: (t, n, r) => {
|
|
3148
3146
|
if (e) throw Error("Worker pool has already been initialized.");
|
|
3149
3147
|
e = {
|
|
3150
|
-
pool: new
|
|
3148
|
+
pool: new ve(t, n.total, r),
|
|
3151
3149
|
manager: n
|
|
3152
3150
|
};
|
|
3153
3151
|
},
|
|
3154
3152
|
terminateWorkerPool: () => {
|
|
3155
3153
|
e &&= (e.pool.terminate(), void 0);
|
|
3156
3154
|
},
|
|
3157
|
-
warmUpWorkerPool: () => (
|
|
3158
|
-
worker: () => (
|
|
3155
|
+
warmUpWorkerPool: () => (re(e, "initializeWorkerPool() must be invoked first."), e.pool.warmUp()),
|
|
3156
|
+
worker: () => (re(e, "initializeWorkerPool() must be invoked first."), {
|
|
3159
3157
|
pool: e.pool,
|
|
3160
3158
|
manager: e.manager
|
|
3161
3159
|
}),
|
|
@@ -3163,12 +3161,12 @@ var { initializeWorkerPool: oo, terminateWorkerPool: so, warmUpWorkerPool: co, w
|
|
|
3163
3161
|
workerPoolHeapStats: () => e?.pool.heapStats(),
|
|
3164
3162
|
probeWorkerPoolHeap: () => e?.pool.probeHeap()
|
|
3165
3163
|
};
|
|
3166
|
-
})(),
|
|
3167
|
-
let { pool: e, manager: t } =
|
|
3164
|
+
})(), po = () => {
|
|
3165
|
+
let { pool: e, manager: t } = co();
|
|
3168
3166
|
return t.canIncrement() && e.canAcceptTasks();
|
|
3169
3167
|
};
|
|
3170
|
-
function
|
|
3171
|
-
let { pool: r, manager: i } =
|
|
3168
|
+
function mo(e, t, n) {
|
|
3169
|
+
let { pool: r, manager: i } = co();
|
|
3172
3170
|
i.increment();
|
|
3173
3171
|
try {
|
|
3174
3172
|
return r.exec(e, t, n).then((e) => (i.decrement(), e)).catch((e) => {
|
|
@@ -3180,7 +3178,7 @@ function ho(e, t, n) {
|
|
|
3180
3178
|
}
|
|
3181
3179
|
//#endregion
|
|
3182
3180
|
//#region src/manager.ts
|
|
3183
|
-
var
|
|
3181
|
+
var ho = (e) => {
|
|
3184
3182
|
let t = 0, n = () => t !== e, r = () => t !== 0;
|
|
3185
3183
|
return {
|
|
3186
3184
|
total: e,
|
|
@@ -3200,4 +3198,4 @@ var go = (e) => {
|
|
|
3200
3198
|
};
|
|
3201
3199
|
};
|
|
3202
3200
|
//#endregion
|
|
3203
|
-
export {
|
|
3201
|
+
export { po as canWorkerProcessImmediately, ho as createConcurrencyManager, ao as initializeWorkerPool, fo as probeWorkerPoolHeap, mo as queueTask, ro as registerTasks, oo as terminateWorkerPool, $ as transfer, so as warmUpWorkerPool, uo as workerPoolHeapStats, lo as workerPoolStats };
|