fuxi-topology 0.2.7 → 0.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
- import { EventEmitter as le, Graphics as L, Sprite as gn, Texture as ne, Rectangle as Lt, Container as R, Point as Vr, MeshRope as Xr, TilingSprite as mn, TextStyle as qr, Text as vn, Assets as gi, BlurFilter as Jr, Filter as G, GlProgram as U, UniformGroup as H, ColorMatrixFilter as mi, Application as Kr } from "pixi.js";
1
+ import { EventEmitter as le, Graphics as L, Sprite as gn, Texture as ne, Rectangle as Lt, Container as R, Point as qr, MeshRope as Vr, TilingSprite as mn, TextStyle as Xr, Text as vn, Assets as gi, BlurFilter as Jr, Filter as G, GlProgram as U, UniformGroup as H, ColorMatrixFilter as mi, Application as Kr } from "pixi.js";
2
2
  import dt from "pathfinding";
3
3
  import { zoom as Zr, ZoomTransform as Ut, zoomTransform as Qr, zoomIdentity as es } from "d3-zoom";
4
- import { ZoomTransform as md } from "d3-zoom";
4
+ import { ZoomTransform as xd } from "d3-zoom";
5
5
  function xn(t) {
6
6
  return typeof t > "u" || t === null;
7
7
  }
@@ -41,15 +41,15 @@ function yn(t, e) {
41
41
 
42
42
  ` + t.mark.snippet), n + " " + i) : n;
43
43
  }
44
- function Xe(t, e) {
44
+ function Ve(t, e) {
45
45
  Error.call(this), this.name = "YAMLException", this.reason = t, this.mark = e, this.message = yn(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
46
46
  }
47
- Xe.prototype = Object.create(Error.prototype);
48
- Xe.prototype.constructor = Xe;
49
- Xe.prototype.toString = function(e) {
47
+ Ve.prototype = Object.create(Error.prototype);
48
+ Ve.prototype.constructor = Ve;
49
+ Ve.prototype.toString = function(e) {
50
50
  return this.name + ": " + yn(this, e);
51
51
  };
52
- var M = Xe;
52
+ var M = Ve;
53
53
  function Ht(t, e, i, n, r) {
54
54
  var s = "", o = "", a = Math.floor(r / 2) - 1;
55
55
  return n - e > a && (s = " ... ", e = n - a + s.length), i - n > a && (o = " ...", i = n + a - o.length), {
@@ -491,7 +491,7 @@ var Rn = new T("tag:yaml.org,2002:binary", {
491
491
  predicate: Bs,
492
492
  represent: Ys
493
493
  }), Ws = Object.prototype.hasOwnProperty, js = Object.prototype.toString;
494
- function Vs(t) {
494
+ function qs(t) {
495
495
  if (t === null) return !0;
496
496
  var e = [], i, n, r, s, o, a = t;
497
497
  for (i = 0, n = a.length; i < n; i += 1) {
@@ -506,19 +506,19 @@ function Vs(t) {
506
506
  }
507
507
  return !0;
508
508
  }
509
- function Xs(t) {
509
+ function Vs(t) {
510
510
  return t !== null ? t : [];
511
511
  }
512
512
  var Dn = new T("tag:yaml.org,2002:omap", {
513
513
  kind: "sequence",
514
- resolve: Vs,
515
- construct: Xs
516
- }), qs = Object.prototype.toString;
514
+ resolve: qs,
515
+ construct: Vs
516
+ }), Xs = Object.prototype.toString;
517
517
  function Js(t) {
518
518
  if (t === null) return !0;
519
519
  var e, i, n, r, s, o = t;
520
520
  for (s = new Array(o.length), e = 0, i = o.length; e < i; e += 1) {
521
- if (n = o[e], qs.call(n) !== "[object Object]" || (r = Object.keys(n), r.length !== 1)) return !1;
521
+ if (n = o[e], Xs.call(n) !== "[object Object]" || (r = Object.keys(n), r.length !== 1)) return !1;
522
522
  s[e] = [r[0], n[r[0]]];
523
523
  }
524
524
  return !0;
@@ -963,7 +963,7 @@ function _o(t) {
963
963
  else
964
964
  return;
965
965
  }
966
- function Vn(t, e) {
966
+ function qn(t, e) {
967
967
  t = String(t), e = e || {}, t.length !== 0 && (t.charCodeAt(t.length - 1) !== 10 && t.charCodeAt(t.length - 1) !== 13 && (t += `
968
968
  `), t.charCodeAt(0) === 65279 && (t = t.slice(1)));
969
969
  var i = new lo(t, e), n = t.indexOf("\0");
@@ -975,24 +975,24 @@ function Vn(t, e) {
975
975
  }
976
976
  function wo(t, e, i) {
977
977
  e !== null && typeof e == "object" && typeof i > "u" && (i = e, e = null);
978
- var n = Vn(t, i);
978
+ var n = qn(t, i);
979
979
  if (typeof e != "function")
980
980
  return n;
981
981
  for (var r = 0, s = n.length; r < s; r += 1)
982
982
  e(n[r]);
983
983
  }
984
984
  function So(t, e) {
985
- var i = Vn(t, e);
985
+ var i = qn(t, e);
986
986
  if (i.length !== 0) {
987
987
  if (i.length === 1)
988
988
  return i[0];
989
989
  throw new M("expected a single document in the stream, but found more");
990
990
  }
991
991
  }
992
- var bo = wo, Co = So, Xn = {
992
+ var bo = wo, Co = So, Vn = {
993
993
  loadAll: bo,
994
994
  load: Co
995
- }, qn = Object.prototype.toString, Jn = Object.prototype.hasOwnProperty, wi = 65279, Io = 9, qe = 10, Ao = 13, To = 32, Oo = 33, Po = 34, Zt = 35, Mo = 37, Eo = 38, Lo = 39, ko = 42, Kn = 44, Fo = 45, _t = 58, Ro = 61, Do = 62, zo = 63, No = 64, Zn = 91, Qn = 93, $o = 96, er = 123, Go = 124, tr = 125, P = {};
995
+ }, Xn = Object.prototype.toString, Jn = Object.prototype.hasOwnProperty, wi = 65279, Io = 9, Xe = 10, Ao = 13, To = 32, Oo = 33, Po = 34, Zt = 35, Mo = 37, Eo = 38, Lo = 39, ko = 42, Kn = 44, Fo = 45, _t = 58, Ro = 61, Do = 62, zo = 63, No = 64, Zn = 91, Qn = 93, $o = 96, er = 123, Go = 124, tr = 125, P = {};
996
996
  P[0] = "\\0";
997
997
  P[7] = "\\a";
998
998
  P[8] = "\\b";
@@ -1060,7 +1060,7 @@ function Qt(t, e) {
1060
1060
  return `
1061
1061
  ` + A.repeat(" ", t.indent * e);
1062
1062
  }
1063
- function Vo(t, e) {
1063
+ function qo(t, e) {
1064
1064
  var i, n, r;
1065
1065
  for (i = 0, n = t.implicitTypes.length; i < n; i += 1)
1066
1066
  if (r = t.implicitTypes[i], r.resolve(e))
@@ -1074,7 +1074,7 @@ function Ke(t) {
1074
1074
  return 32 <= t && t <= 126 || 161 <= t && t <= 55295 && t !== 8232 && t !== 8233 || 57344 <= t && t <= 65533 && t !== wi || 65536 <= t && t <= 1114111;
1075
1075
  }
1076
1076
  function Yi(t) {
1077
- return Ke(t) && t !== wi && t !== Ao && t !== qe;
1077
+ return Ke(t) && t !== wi && t !== Ao && t !== Xe;
1078
1078
  }
1079
1079
  function Bi(t, e, i) {
1080
1080
  var n = Yi(t), r = n && !wt(t);
@@ -1086,10 +1086,10 @@ function Bi(t, e, i) {
1086
1086
  ) : n && t !== Kn && t !== Zn && t !== Qn && t !== er && t !== tr) && t !== Zt && !(e === _t && !r) || Yi(e) && !wt(e) && t === Zt || e === _t && r
1087
1087
  );
1088
1088
  }
1089
- function Xo(t) {
1089
+ function Vo(t) {
1090
1090
  return Ke(t) && t !== wi && !wt(t) && t !== Fo && t !== zo && t !== _t && t !== Kn && t !== Zn && t !== Qn && t !== er && t !== tr && t !== Zt && t !== Eo && t !== ko && t !== Oo && t !== Go && t !== Ro && t !== Do && t !== Lo && t !== Po && t !== Mo && t !== No && t !== $o;
1091
1091
  }
1092
- function qo(t) {
1092
+ function Xo(t) {
1093
1093
  return !wt(t) && t !== _t;
1094
1094
  }
1095
1095
  function Ye(t, e) {
@@ -1102,7 +1102,7 @@ function ir(t) {
1102
1102
  }
1103
1103
  var nr = 1, ei = 2, rr = 3, sr = 4, Le = 5;
1104
1104
  function Jo(t, e, i, n, r, s, o, a) {
1105
- var c, l = 0, h = null, u = !1, f = !1, d = n !== -1, p = -1, m = Xo(Ye(t, 0)) && qo(Ye(t, t.length - 1));
1105
+ var c, l = 0, h = null, u = !1, f = !1, d = n !== -1, p = -1, m = Vo(Ye(t, 0)) && Xo(Ye(t, t.length - 1));
1106
1106
  if (e || o)
1107
1107
  for (c = 0; c < t.length; l >= 65536 ? c += 2 : c++) {
1108
1108
  if (l = Ye(t, c), !Ke(l))
@@ -1111,7 +1111,7 @@ function Jo(t, e, i, n, r, s, o, a) {
1111
1111
  }
1112
1112
  else {
1113
1113
  for (c = 0; c < t.length; l >= 65536 ? c += 2 : c++) {
1114
- if (l = Ye(t, c), l === qe)
1114
+ if (l = Ye(t, c), l === Xe)
1115
1115
  u = !0, d && (f = f || // Foldable line = too long, and not more-indented.
1116
1116
  c - p - 1 > n && t[p + 1] !== " ", p = c);
1117
1117
  else if (!Ke(l))
@@ -1130,7 +1130,7 @@ function Ko(t, e, i, n, r) {
1130
1130
  return t.quotingType === Je ? '"' + e + '"' : "'" + e + "'";
1131
1131
  var s = t.indent * Math.max(1, i), o = t.lineWidth === -1 ? -1 : Math.max(Math.min(t.lineWidth, 40), t.lineWidth - s), a = n || t.flowLevel > -1 && i >= t.flowLevel;
1132
1132
  function c(l) {
1133
- return Vo(t, l);
1133
+ return qo(t, l);
1134
1134
  }
1135
1135
  switch (Jo(
1136
1136
  e,
@@ -1173,16 +1173,16 @@ function Zo(t, e) {
1173
1173
  for (var i = /(\n+)([^\n]*)/g, n = (function() {
1174
1174
  var l = t.indexOf(`
1175
1175
  `);
1176
- return l = l !== -1 ? l : t.length, i.lastIndex = l, Vi(t.slice(0, l), e);
1176
+ return l = l !== -1 ? l : t.length, i.lastIndex = l, qi(t.slice(0, l), e);
1177
1177
  })(), r = t[0] === `
1178
1178
  ` || t[0] === " ", s, o; o = i.exec(t); ) {
1179
1179
  var a = o[1], c = o[2];
1180
1180
  s = c[0] === " ", n += a + (!r && !s && c !== "" ? `
1181
- ` : "") + Vi(c, e), r = s;
1181
+ ` : "") + qi(c, e), r = s;
1182
1182
  }
1183
1183
  return n;
1184
1184
  }
1185
- function Vi(t, e) {
1185
+ function qi(t, e) {
1186
1186
  if (t === "" || t[0] === " ") return t;
1187
1187
  for (var i = / [^ ]/g, n, r = 0, s, o = 0, a = 0, c = ""; n = i.exec(t); )
1188
1188
  a = n.index, a - r > e && (s = o > r ? o : a, c += `
@@ -1202,10 +1202,10 @@ function ea(t, e, i) {
1202
1202
  a = i[s], t.replacer && (a = t.replacer.call(i, String(s), a)), (re(t, e, a, !1, !1) || typeof a > "u" && re(t, e, null, !1, !1)) && (n !== "" && (n += "," + (t.condenseFlow ? "" : " ")), n += t.dump);
1203
1203
  t.tag = r, t.dump = "[" + n + "]";
1204
1204
  }
1205
- function Xi(t, e, i, n) {
1205
+ function Vi(t, e, i, n) {
1206
1206
  var r = "", s = t.tag, o, a, c;
1207
1207
  for (o = 0, a = i.length; o < a; o += 1)
1208
- c = i[o], t.replacer && (c = t.replacer.call(i, String(o), c)), (re(t, e + 1, c, !0, !0, !1, !0) || typeof c > "u" && re(t, e + 1, null, !0, !0, !1, !0)) && ((!n || r !== "") && (r += Qt(t, e)), t.dump && qe === t.dump.charCodeAt(0) ? r += "-" : r += "- ", r += t.dump);
1208
+ c = i[o], t.replacer && (c = t.replacer.call(i, String(o), c)), (re(t, e + 1, c, !0, !0, !1, !0) || typeof c > "u" && re(t, e + 1, null, !0, !0, !1, !0)) && ((!n || r !== "") && (r += Qt(t, e)), t.dump && Xe === t.dump.charCodeAt(0) ? r += "-" : r += "- ", r += t.dump);
1209
1209
  t.tag = s, t.dump = r || "[]";
1210
1210
  }
1211
1211
  function ta(t, e, i) {
@@ -1223,15 +1223,15 @@ function ia(t, e, i, n) {
1223
1223
  else if (t.sortKeys)
1224
1224
  throw new M("sortKeys must be a boolean or a function");
1225
1225
  for (a = 0, c = o.length; a < c; a += 1)
1226
- f = "", (!n || r !== "") && (f += Qt(t, e)), l = o[a], h = i[l], t.replacer && (h = t.replacer.call(i, l, h)), re(t, e + 1, l, !0, !0, !0) && (u = t.tag !== null && t.tag !== "?" || t.dump && t.dump.length > 1024, u && (t.dump && qe === t.dump.charCodeAt(0) ? f += "?" : f += "? "), f += t.dump, u && (f += Qt(t, e)), re(t, e + 1, h, !0, u) && (t.dump && qe === t.dump.charCodeAt(0) ? f += ":" : f += ": ", f += t.dump, r += f));
1226
+ f = "", (!n || r !== "") && (f += Qt(t, e)), l = o[a], h = i[l], t.replacer && (h = t.replacer.call(i, l, h)), re(t, e + 1, l, !0, !0, !0) && (u = t.tag !== null && t.tag !== "?" || t.dump && t.dump.length > 1024, u && (t.dump && Xe === t.dump.charCodeAt(0) ? f += "?" : f += "? "), f += t.dump, u && (f += Qt(t, e)), re(t, e + 1, h, !0, u) && (t.dump && Xe === t.dump.charCodeAt(0) ? f += ":" : f += ": ", f += t.dump, r += f));
1227
1227
  t.tag = s, t.dump = r || "{}";
1228
1228
  }
1229
- function qi(t, e, i) {
1229
+ function Xi(t, e, i) {
1230
1230
  var n, r, s, o, a, c;
1231
1231
  for (r = i ? t.explicitTypes : t.implicitTypes, s = 0, o = r.length; s < o; s += 1)
1232
1232
  if (a = r[s], (a.instanceOf || a.predicate) && (!a.instanceOf || typeof e == "object" && e instanceof a.instanceOf) && (!a.predicate || a.predicate(e))) {
1233
1233
  if (i ? a.multi && a.representName ? t.tag = a.representName(e) : t.tag = a.tag : t.tag = "?", a.represent) {
1234
- if (c = t.styleMap[a.tag] || a.defaultStyle, qn.call(a.represent) === "[object Function]")
1234
+ if (c = t.styleMap[a.tag] || a.defaultStyle, Xn.call(a.represent) === "[object Function]")
1235
1235
  n = a.represent(e, c);
1236
1236
  else if (Jn.call(a.represent, c))
1237
1237
  n = a.represent[c](e, c);
@@ -1244,8 +1244,8 @@ function qi(t, e, i) {
1244
1244
  return !1;
1245
1245
  }
1246
1246
  function re(t, e, i, n, r, s, o) {
1247
- t.tag = null, t.dump = i, qi(t, i, !1) || qi(t, i, !0);
1248
- var a = qn.call(t.dump), c = n, l;
1247
+ t.tag = null, t.dump = i, Xi(t, i, !1) || Xi(t, i, !0);
1248
+ var a = Xn.call(t.dump), c = n, l;
1249
1249
  n && (n = t.flowLevel < 0 || t.flowLevel > e);
1250
1250
  var h = a === "[object Object]" || a === "[object Array]", u, f;
1251
1251
  if (h && (u = t.duplicates.indexOf(i), f = u !== -1), (t.tag !== null && t.tag !== "?" || f || t.indent !== 2 && e > 0) && (r = !1), f && t.usedDuplicates[u])
@@ -1254,7 +1254,7 @@ function re(t, e, i, n, r, s, o) {
1254
1254
  if (h && f && !t.usedDuplicates[u] && (t.usedDuplicates[u] = !0), a === "[object Object]")
1255
1255
  n && Object.keys(t.dump).length !== 0 ? (ia(t, e, t.dump, r), f && (t.dump = "&ref_" + u + t.dump)) : (ta(t, e, t.dump), f && (t.dump = "&ref_" + u + " " + t.dump));
1256
1256
  else if (a === "[object Array]")
1257
- n && t.dump.length !== 0 ? (t.noArrayIndent && !o && e > 0 ? Xi(t, e - 1, t.dump, r) : Xi(t, e, t.dump, r), f && (t.dump = "&ref_" + u + t.dump)) : (ea(t, e, t.dump), f && (t.dump = "&ref_" + u + " " + t.dump));
1257
+ n && t.dump.length !== 0 ? (t.noArrayIndent && !o && e > 0 ? Vi(t, e - 1, t.dump, r) : Vi(t, e, t.dump, r), f && (t.dump = "&ref_" + u + t.dump)) : (ea(t, e, t.dump), f && (t.dump = "&ref_" + u + " " + t.dump));
1258
1258
  else if (a === "[object String]")
1259
1259
  t.tag !== "?" && Ko(t, t.dump, e, s, c);
1260
1260
  else {
@@ -1303,7 +1303,7 @@ function Si(t, e) {
1303
1303
  throw new Error("Function yaml." + t + " is removed in js-yaml 4. Use yaml." + e + " instead, which is now safe by default.");
1304
1304
  };
1305
1305
  }
1306
- var aa = T, ca = _n, la = Cn, ha = Pn, ua = Mn, fa = xi, da = Xn.load, pa = Xn.loadAll, ga = oa.dump, ma = M, va = {
1306
+ var aa = T, ca = _n, la = Cn, ha = Pn, ua = Mn, fa = xi, da = Vn.load, pa = Vn.loadAll, ga = oa.dump, ma = M, va = {
1307
1307
  binary: Rn,
1308
1308
  float: On,
1309
1309
  map: bn,
@@ -1582,8 +1582,8 @@ class Ie extends le {
1582
1582
  this.clear(), this.removeAllListeners();
1583
1583
  }
1584
1584
  }
1585
- const Re = Math.PI / 4, ar = Math.PI / 6, we = Math.sin(ar), St = Math.cos(ar), g = 100, mf = g * Math.sqrt(2) * St, vf = g * Math.sqrt(2) * we, xf = g * Math.sqrt(2) * St, cr = g * Math.sqrt(2) * we;
1586
- function yf() {
1585
+ const Re = Math.PI / 4, ar = Math.PI / 6, we = Math.sin(ar), St = Math.cos(ar), g = 100, Af = g * Math.sqrt(2) * St, Tf = g * Math.sqrt(2) * we, Of = g * Math.sqrt(2) * St, cr = g * Math.sqrt(2) * we;
1586
+ function Pf() {
1587
1587
  const t = g * Math.sqrt(2) * St, e = g * Math.sqrt(2) * we, i = g * Math.sqrt(2) * St, n = g * Math.sqrt(2) * we;
1588
1588
  return {
1589
1589
  horizontal: t,
@@ -1597,11 +1597,11 @@ function lr() {
1597
1597
  return { skewX: e, skewY: i };
1598
1598
  }
1599
1599
  const hr = lr(), ur = hr.skewX, fr = hr.skewY, dr = Math.cos(fr), pr = Math.sin(fr), gr = Math.sin(ur), mr = Math.cos(ur), Ft = dr * mr - gr * pr, ii = mr / Ft, ni = -pr / Ft, ri = -gr / Ft, si = dr / Ft, bi = Math.atan2(ri, si), Ci = Math.atan2(ni, ii), Ii = Math.sqrt(ii * ii + ni * ni), D = Math.sqrt(ri * ri + si * si);
1600
- function _f(t, e, i = 0) {
1600
+ function Mf(t, e, i = 0) {
1601
1601
  const n = (t - e) * Math.cos(Re), r = (t + e) * we - i;
1602
1602
  return { x: n, y: r };
1603
1603
  }
1604
- function wf(t, e) {
1604
+ function Ef(t, e) {
1605
1605
  const i = Math.cos(Re), n = we, r = (t / i + e / n) / 2, s = (e / n - t / i) / 2;
1606
1606
  return { x: r, y: s, z: 0 };
1607
1607
  }
@@ -1967,7 +1967,7 @@ class Fa extends he {
1967
1967
  }
1968
1968
  if (!this.rope || this.points.length !== e.length) {
1969
1969
  this.destroyRope(), this.points = e.map(
1970
- (r) => new Vr(r.x * g, r.y * g)
1970
+ (r) => new qr(r.x * g, r.y * g)
1971
1971
  );
1972
1972
  const i = this.options.mode === "dashed", n = i ? Ea({
1973
1973
  color: this.options.color,
@@ -1978,7 +1978,7 @@ class Fa extends he {
1978
1978
  gradient: this.options.mode === "flow",
1979
1979
  width: this.options.width
1980
1980
  });
1981
- if (this.rope = new Xr({
1981
+ if (this.rope = new Vr({
1982
1982
  texture: n,
1983
1983
  points: this.points,
1984
1984
  textureScale: i ? 1 : 0
@@ -2214,7 +2214,7 @@ class za extends he {
2214
2214
  position: "x",
2215
2215
  depth: 0,
2216
2216
  zIndex: 0
2217
- }), this.container = new R(), Te(this.container, "text", e.id), this.textStyle = new qr({
2217
+ }), this.container = new R(), Te(this.container, "text", e.id), this.textStyle = new Xr({
2218
2218
  fontSize: this.options.fontSize,
2219
2219
  fill: this.options.color,
2220
2220
  fontWeight: this.options.fontWeight,
@@ -2653,7 +2653,7 @@ let ja = class extends he {
2653
2653
  this.removeAllListeners(), this.container.destroy();
2654
2654
  }
2655
2655
  };
2656
- class Va extends Ie {
2656
+ class qa extends Ie {
2657
2657
  constructor(e) {
2658
2658
  super(e, "image");
2659
2659
  }
@@ -2661,7 +2661,7 @@ class Va extends Ie {
2661
2661
  return new ja(e);
2662
2662
  }
2663
2663
  }
2664
- class Xa {
2664
+ class Va {
2665
2665
  id;
2666
2666
  name;
2667
2667
  userData;
@@ -2757,7 +2757,7 @@ class Xa {
2757
2757
  this._childGroups.clear(), this.container.destroy({ children: !1 });
2758
2758
  }
2759
2759
  }
2760
- const qa = 1e4;
2760
+ const Xa = 1e4;
2761
2761
  class Ja extends le {
2762
2762
  _host;
2763
2763
  _groups = [];
@@ -2950,13 +2950,13 @@ class Ja extends le {
2950
2950
  }
2951
2951
  // ======== internal ========
2952
2952
  _createGroup(e, i, n = !0, r = !1, s, o) {
2953
- const a = new Xa(e, i, n, r, s);
2953
+ const a = new Va(e, i, n, r, s);
2954
2954
  return this._groups.push(a), this._map.set(e, a), o ? (this._map.get(o)._addSubGroup(a), this._parentGroup.set(e, o)) : (this._host.addChild(a.container), this._rootOrder.push(e), this._syncRootZ()), this._emit("group:added", a), a;
2955
2955
  }
2956
2956
  /** 根级统一 zIndex 分配:每个根级项目(分组或松散元素)按顺序获得 i * Z_SPAN */
2957
2957
  _syncRootZ() {
2958
2958
  for (let e = 0; e < this._rootOrder.length; e++) {
2959
- const i = this._rootOrder[e], n = e * qa, r = this._map.get(i);
2959
+ const i = this._rootOrder[e], n = e * Xa, r = this._map.get(i);
2960
2960
  if (r)
2961
2961
  r.container.zIndex = n;
2962
2962
  else {
@@ -3027,7 +3027,7 @@ class Ja extends le {
3027
3027
  this._looseGraphics.clear(), this._rootOrder = [], this.removeAllListeners();
3028
3028
  }
3029
3029
  }
3030
- function bf(t, e) {
3030
+ function kf(t, e) {
3031
3031
  const i = e?.strength ?? 4, n = e?.quality ?? 4;
3032
3032
  return {
3033
3033
  postProcessId: t,
@@ -3162,7 +3162,7 @@ class Qa extends G {
3162
3162
  this.resources.bloomUniforms.uniforms.uRadius = e;
3163
3163
  }
3164
3164
  }
3165
- function Cf(t, e) {
3165
+ function Ff(t, e) {
3166
3166
  const i = e?.threshold ?? 0.5, n = e?.intensity ?? 1, r = e?.radius ?? 2, s = e?.samples ?? 3;
3167
3167
  return {
3168
3168
  postProcessId: t,
@@ -3179,7 +3179,7 @@ function Ki(t, e) {
3179
3179
  const i = e.brightness ?? 1, n = e.contrast ?? 0, r = e.saturate ?? 0, s = e.hue ?? 0;
3180
3180
  t.reset(), i !== 1 && t.brightness(i, !0), n !== 0 && t.contrast(n, !0), r !== 0 && t.saturate(r, !0), s !== 0 && t.hue(s, !0);
3181
3181
  }
3182
- function If(t, e) {
3182
+ function Rf(t, e) {
3183
3183
  const i = {
3184
3184
  brightness: e?.brightness ?? 1,
3185
3185
  contrast: e?.contrast ?? 0,
@@ -3307,7 +3307,7 @@ class ic extends G {
3307
3307
  i[0] = e[0], i[1] = e[1], i[2] = e[2];
3308
3308
  }
3309
3309
  }
3310
- function Af(t, e) {
3310
+ function Df(t, e) {
3311
3311
  const i = e?.radius ?? 0.3, n = e?.softness ?? 0.5, r = e?.intensity ?? 0.8, s = e?.color ?? [0, 0, 0];
3312
3312
  return {
3313
3313
  postProcessId: t,
@@ -3396,7 +3396,7 @@ class sc extends G {
3396
3396
  this.resources.pixelateUniforms.uniforms.uPixelSize = e;
3397
3397
  }
3398
3398
  }
3399
- function Tf(t, e) {
3399
+ function zf(t, e) {
3400
3400
  const i = e?.pixelSize ?? 8;
3401
3401
  return {
3402
3402
  postProcessId: t,
@@ -3501,7 +3501,7 @@ class cc extends G {
3501
3501
  this.resources.noiseUniforms.uniforms.uSeed = e;
3502
3502
  }
3503
3503
  }
3504
- function Of(t, e) {
3504
+ function Nf(t, e) {
3505
3505
  const i = e?.intensity ?? 0.15;
3506
3506
  let n = e?.animated ?? !0;
3507
3507
  return {
@@ -3604,7 +3604,7 @@ class uc extends G {
3604
3604
  this.resources.chromaticUniforms.uniforms.uOffset = e;
3605
3605
  }
3606
3606
  }
3607
- function Pf(t, e) {
3607
+ function $f(t, e) {
3608
3608
  const i = e?.offset ?? 3;
3609
3609
  return {
3610
3610
  postProcessId: t,
@@ -3713,7 +3713,7 @@ class pc extends G {
3713
3713
  this.resources.scanlinesUniforms.uniforms.uOffset = e;
3714
3714
  }
3715
3715
  }
3716
- function Mf(t, e) {
3716
+ function Gf(t, e) {
3717
3717
  const i = e?.lineWidth ?? 2, n = e?.intensity ?? 0.3;
3718
3718
  let r = e?.animated ?? !1, s = e?.speed ?? 0.5, o = 0;
3719
3719
  return {
@@ -3859,7 +3859,7 @@ class vc extends G {
3859
3859
  this.resources.godRaysUniforms.uniforms.uWeight = e;
3860
3860
  }
3861
3861
  }
3862
- function Ef(t, e) {
3862
+ function Uf(t, e) {
3863
3863
  const i = e?.centerX ?? 0.5, n = e?.centerY ?? 0.5, r = e?.intensity ?? 0.3, s = e?.decay ?? 0.96, o = e?.density ?? 1, a = e?.weight ?? 0.5;
3864
3864
  return {
3865
3865
  postProcessId: t,
@@ -3951,7 +3951,7 @@ class _c extends G {
3951
3951
  this.resources.grayscaleUniforms.uniforms.uAmount = e;
3952
3952
  }
3953
3953
  }
3954
- function Lf(t, e) {
3954
+ function Hf(t, e) {
3955
3955
  const i = e?.amount ?? 1;
3956
3956
  return {
3957
3957
  postProcessId: t,
@@ -4051,7 +4051,7 @@ class bc extends G {
4051
4051
  this.resources.sharpenUniforms.uniforms.uStrength = e;
4052
4052
  }
4053
4053
  }
4054
- function kf(t, e) {
4054
+ function Yf(t, e) {
4055
4055
  const i = e?.strength ?? 0.5;
4056
4056
  return {
4057
4057
  postProcessId: t,
@@ -4142,7 +4142,7 @@ class Ac extends G {
4142
4142
  this.resources.invertUniforms.uniforms.uAmount = e;
4143
4143
  }
4144
4144
  }
4145
- function Ff(t, e) {
4145
+ function Bf(t, e) {
4146
4146
  const i = e?.amount ?? 1;
4147
4147
  return {
4148
4148
  postProcessId: t,
@@ -4378,16 +4378,16 @@ async function Lc(t, e) {
4378
4378
  { x: 0, y: h },
4379
4379
  { x: l, y: h }
4380
4380
  ];
4381
- let V = 1 / 0, X = 1 / 0, ue = -1 / 0, fe = -1 / 0;
4381
+ let q = 1 / 0, V = 1 / 0, ue = -1 / 0, fe = -1 / 0;
4382
4382
  for (const { x: I, y: te } of ee) {
4383
4383
  const pe = I - a, ge = te - c, me = (p * pe - d * ge) / j, ve = (-f * pe + u * ge) / j;
4384
- V = Math.min(V, me), X = Math.min(X, ve), ue = Math.max(ue, me), fe = Math.max(fe, ve);
4384
+ q = Math.min(q, me), V = Math.min(V, ve), ue = Math.max(ue, me), fe = Math.max(fe, ve);
4385
4385
  }
4386
- const q = g * 2, de = {
4387
- x: Math.floor((V - q) / g) * g,
4388
- y: Math.floor((X - q) / g) * g,
4389
- width: Math.ceil((ue - V + q * 2) / g) * g,
4390
- height: Math.ceil((fe - X + q * 2) / g) * g
4386
+ const X = g * 2, de = {
4387
+ x: Math.floor((q - X) / g) * g,
4388
+ y: Math.floor((V - X) / g) * g,
4389
+ width: Math.ceil((ue - q + X * 2) / g) * g,
4390
+ height: Math.ceil((fe - V + X * 2) / g) * g
4391
4391
  }, $ = await Ec(t), O = [];
4392
4392
  O.push(
4393
4393
  '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"',
@@ -4516,7 +4516,7 @@ class De extends le {
4516
4516
  _isActive = !1;
4517
4517
  _cameraHandler;
4518
4518
  constructor(e, i, n, r) {
4519
- super(), this.id = e, this.app = i, this.icons = n, this.states = r, this.postprocess = new Ti(), this.projectionContainer = new R(), this.layer = new Ja(this.projectionContainer), this.lines = new Ra(this), this.nodes = new Oa(this), this.texts = new Na(this), this.rects = new Ga(this), this.fences = new Ya(this), this.waves = new Wa(this), this.images = new Va(this), this.grid = new Da();
4519
+ super(), this.id = e, this.app = i, this.icons = n, this.states = r, this.postprocess = new Ti(), this.projectionContainer = new R(), this.layer = new Ja(this.projectionContainer), this.lines = new Ra(this), this.nodes = new Oa(this), this.texts = new Na(this), this.rects = new Ga(this), this.fences = new Ya(this), this.waves = new Wa(this), this.images = new qa(this), this.grid = new Da();
4520
4520
  const { skewX: s, skewY: o } = lr();
4521
4521
  this.projectionContainer.sortableChildren = !0, this.projectionContainer.skew.set(s, o), this.projectionContainer.scale.set(De.DEFAULT_ZOOM), this.projectionContainer.position.set(i.screen.width / 2, i.screen.height / 2), this.projectionContainer.addChild(this.grid.getGraphics()), this.grid.getGraphics().zIndex = -1, this.registerItem(this.grid);
4522
4522
  }
@@ -4689,10 +4689,10 @@ class De extends le {
4689
4689
  }
4690
4690
  getViewRect() {
4691
4691
  const { width: e, height: i } = this.app.screen, n = this.projectionContainer, r = n.skew.x, s = n.skew.y, o = n.scale.x, a = n.scale.y, c = Math.cos(s) * o, l = Math.sin(s) * o, h = Math.sin(r) * a, u = Math.cos(r) * a, f = n.x, d = n.y, p = c * u - l * h, m = u / p, v = -l / p, _ = -h / p, x = c / p, w = (ue, fe) => {
4692
- const q = ue - f, de = fe - d;
4693
- return { x: m * q + _ * de, y: v * q + x * de };
4694
- }, S = w(0, 0), b = w(e, 0), E = w(0, i), N = w(e, i), j = Math.min(S.x, b.x, E.x, N.x), ee = Math.min(S.y, b.y, E.y, N.y), V = Math.max(S.x, b.x, E.x, N.x), X = Math.max(S.y, b.y, E.y, N.y);
4695
- return { x: j, y: ee, width: V - j, height: X - ee };
4692
+ const X = ue - f, de = fe - d;
4693
+ return { x: m * X + _ * de, y: v * X + x * de };
4694
+ }, S = w(0, 0), b = w(e, 0), E = w(0, i), N = w(e, i), j = Math.min(S.x, b.x, E.x, N.x), ee = Math.min(S.y, b.y, E.y, N.y), q = Math.max(S.x, b.x, E.x, N.x), V = Math.max(S.y, b.y, E.y, N.y);
4695
+ return { x: j, y: ee, width: q - j, height: V - ee };
4696
4696
  }
4697
4697
  /**
4698
4698
  * 计算场景中所有内容的包围盒(projectionContainer 本地坐标系)
@@ -4931,7 +4931,7 @@ class $c extends le {
4931
4931
  }
4932
4932
  }
4933
4933
  const Wt = /* @__PURE__ */ new WeakMap();
4934
- function Rf(t, e, i) {
4934
+ function Gc(t, e, i) {
4935
4935
  const n = i?.frequency ?? 2, r = i?.minAlpha ?? 0.2, s = i?.maxAlpha ?? 1;
4936
4936
  return {
4937
4937
  stateId: t,
@@ -4952,7 +4952,7 @@ function Rf(t, e, i) {
4952
4952
  };
4953
4953
  }
4954
4954
  const ot = /* @__PURE__ */ new WeakMap();
4955
- function Df(t, e, i) {
4955
+ function Uc(t, e, i) {
4956
4956
  const n = i?.frequency ?? 2, r = i?.height ?? 12;
4957
4957
  return {
4958
4958
  stateId: t,
@@ -4974,19 +4974,19 @@ function Df(t, e, i) {
4974
4974
  }
4975
4975
  };
4976
4976
  }
4977
- const Ve = /* @__PURE__ */ new WeakMap();
4977
+ const qe = /* @__PURE__ */ new WeakMap();
4978
4978
  function Rt(t) {
4979
- const e = t.getGraphics(), i = (Ve.get(e) ?? 0) + 1;
4980
- if (Ve.set(e, i), i > 1) return;
4979
+ const e = t.getGraphics(), i = (qe.get(e) ?? 0) + 1;
4980
+ if (qe.set(e, i), i > 1) return;
4981
4981
  const n = e.getLocalBounds(), r = 100, s = 80, o = Math.min(n.x, -r) - s, a = Math.min(n.y, -r) - s, c = Math.max(n.x + n.width, r) + s, l = Math.max(n.y + n.height, r) + s;
4982
4982
  e.filterArea = new Lt(o, a, c - o, l - a);
4983
4983
  }
4984
4984
  function Dt(t) {
4985
- const e = t.getGraphics(), i = (Ve.get(e) ?? 1) - 1;
4986
- i <= 0 ? (Ve.delete(e), e.filterArea = void 0) : Ve.set(e, i);
4985
+ const e = t.getGraphics(), i = (qe.get(e) ?? 1) - 1;
4986
+ i <= 0 ? (qe.delete(e), e.filterArea = void 0) : qe.set(e, i);
4987
4987
  }
4988
4988
  const jt = /* @__PURE__ */ new WeakMap();
4989
- function zf(t, e, i) {
4989
+ function Hc(t, e, i) {
4990
4990
  const n = i?.brightness ?? 1.5;
4991
4991
  return {
4992
4992
  stateId: t,
@@ -5004,26 +5004,26 @@ function zf(t, e, i) {
5004
5004
  }
5005
5005
  };
5006
5006
  }
5007
- const Vt = /* @__PURE__ */ new WeakMap();
5008
- function Nf(t, e, i) {
5007
+ const qt = /* @__PURE__ */ new WeakMap();
5008
+ function Yc(t, e, i) {
5009
5009
  const n = Math.max(0, Math.min(1, i?.brightness ?? 0.5));
5010
5010
  return {
5011
5011
  stateId: t,
5012
5012
  type: e,
5013
5013
  onEnter(r) {
5014
5014
  const s = r.getGraphics(), o = new mi();
5015
- o.brightness(n, !1), Vt.set(r, o), Rt(r), s.filters = [...s.filters ?? [], o];
5015
+ o.brightness(n, !1), qt.set(r, o), Rt(r), s.filters = [...s.filters ?? [], o];
5016
5016
  },
5017
5017
  onLeave(r) {
5018
- const s = Vt.get(r);
5018
+ const s = qt.get(r);
5019
5019
  if (s) {
5020
5020
  const o = r.getGraphics();
5021
- o.filters = (o.filters ?? []).filter((a) => a !== s), Dt(r), Vt.delete(r);
5021
+ o.filters = (o.filters ?? []).filter((a) => a !== s), Dt(r), qt.delete(r);
5022
5022
  }
5023
5023
  }
5024
5024
  };
5025
5025
  }
5026
- const Gc = (
5026
+ const Bc = (
5027
5027
  /* glsl */
5028
5028
  `
5029
5029
  in vec2 aPosition;
@@ -5053,7 +5053,7 @@ void main(void)
5053
5053
  }
5054
5054
  `
5055
5055
  );
5056
- function Uc(t) {
5056
+ function Wc(t) {
5057
5057
  const e = Math.max(8, Math.round(t * 3)), i = Math.max(2, Math.round(t)), n = e * i;
5058
5058
  return (
5059
5059
  /* glsl */
@@ -5104,11 +5104,11 @@ void main(void)
5104
5104
  `
5105
5105
  );
5106
5106
  }
5107
- class Hc extends G {
5107
+ class jc extends G {
5108
5108
  constructor(e = {}) {
5109
5109
  const i = e.quality ?? 4, n = e.distance ?? 10, r = e.color ?? [1, 1, 0], s = e.outerStrength ?? 4, o = U.from({
5110
- vertex: Gc,
5111
- fragment: Uc(i),
5110
+ vertex: Bc,
5111
+ fragment: Wc(i),
5112
5112
  name: "glow-filter"
5113
5113
  });
5114
5114
  super({
@@ -5148,20 +5148,20 @@ class Hc extends G {
5148
5148
  }
5149
5149
  }
5150
5150
  const at = /* @__PURE__ */ new WeakMap();
5151
- function Yc(t) {
5151
+ function qc(t) {
5152
5152
  return [
5153
5153
  (t >> 16 & 255) / 255,
5154
5154
  (t >> 8 & 255) / 255,
5155
5155
  (t & 255) / 255
5156
5156
  ];
5157
5157
  }
5158
- function $f(t, e, i) {
5159
- const n = i?.color ?? 16776960, r = i?.distance ?? 10, [s, o] = i?.strength ?? [2, 6], a = i?.frequency ?? 1.5, c = i?.quality ?? 4, l = Yc(n);
5158
+ function Vc(t, e, i) {
5159
+ const n = i?.color ?? 16776960, r = i?.distance ?? 10, [s, o] = i?.strength ?? [2, 6], a = i?.frequency ?? 1.5, c = i?.quality ?? 4, l = qc(n);
5160
5160
  return {
5161
5161
  stateId: t,
5162
5162
  type: e,
5163
5163
  onEnter(h) {
5164
- const u = h.getGraphics(), f = new Hc({
5164
+ const u = h.getGraphics(), f = new jc({
5165
5165
  color: l,
5166
5166
  distance: r,
5167
5167
  outerStrength: s,
@@ -5186,7 +5186,7 @@ function $f(t, e, i) {
5186
5186
  };
5187
5187
  }
5188
5188
  const ct = /* @__PURE__ */ new WeakMap();
5189
- function Gf(t, e, i) {
5189
+ function Xc(t, e, i) {
5190
5190
  const n = i?.frequency ?? 1.2, r = i?.minScale ?? 0.92, s = i?.maxScale ?? 1.08;
5191
5191
  return {
5192
5192
  stateId: t,
@@ -5208,7 +5208,7 @@ function Gf(t, e, i) {
5208
5208
  }
5209
5209
  };
5210
5210
  }
5211
- const Bc = (
5211
+ const Jc = (
5212
5212
  /* glsl */
5213
5213
  `
5214
5214
  in vec2 aPosition;
@@ -5237,7 +5237,7 @@ void main(void)
5237
5237
  vTextureCoord = filterTextureCoord();
5238
5238
  }
5239
5239
  `
5240
- ), Wc = (
5240
+ ), Kc = (
5241
5241
  /* glsl */
5242
5242
  `
5243
5243
  precision highp float;
@@ -5272,12 +5272,12 @@ void main(void)
5272
5272
  }
5273
5273
  `
5274
5274
  );
5275
- class jc extends G {
5275
+ class Zc extends G {
5276
5276
  _angle;
5277
5277
  constructor(e = {}) {
5278
5278
  const i = e.width ?? 0.35, n = e.intensity ?? 0.6, r = e.angle ?? Math.PI / 6, s = U.from({
5279
- vertex: Bc,
5280
- fragment: Wc,
5279
+ vertex: Jc,
5280
+ fragment: Kc,
5281
5281
  name: "shimmer-filter"
5282
5282
  });
5283
5283
  super({
@@ -5320,13 +5320,13 @@ class jc extends G {
5320
5320
  }
5321
5321
  }
5322
5322
  const lt = /* @__PURE__ */ new WeakMap();
5323
- function Uf(t, e, i) {
5323
+ function Qc(t, e, i) {
5324
5324
  const n = i?.frequency ?? 0.8, r = i?.width ?? 0.35, s = i?.intensity ?? 0.6, o = i?.angle ?? Math.PI / 6;
5325
5325
  return {
5326
5326
  stateId: t,
5327
5327
  type: e,
5328
5328
  onEnter(a) {
5329
- const c = new jc({ width: r, intensity: s, angle: o }), l = a.getGraphics();
5329
+ const c = new Zc({ width: r, intensity: s, angle: o }), l = a.getGraphics();
5330
5330
  Rt(a), l.filters = [...l.filters ?? [], c];
5331
5331
  const h = Math.abs(Math.cos(o)) + Math.abs(Math.sin(o));
5332
5332
  lt.set(a, { elapsed: 0, filter: c, maxProj: h });
@@ -5347,34 +5347,58 @@ function Uf(t, e, i) {
5347
5347
  }
5348
5348
  };
5349
5349
  }
5350
- const Xt = /* @__PURE__ */ new WeakMap();
5351
- function Hf(t, e, i) {
5350
+ const Vt = /* @__PURE__ */ new WeakMap();
5351
+ function el(t, e, i) {
5352
5352
  const n = i?.color ?? 16711680;
5353
5353
  return {
5354
5354
  stateId: t,
5355
5355
  type: e,
5356
5356
  onEnter(r) {
5357
5357
  const s = r.getGraphics();
5358
- Xt.set(r, s.tint), s.tint = n;
5358
+ Vt.set(r, s.tint), s.tint = n;
5359
5359
  },
5360
5360
  onLeave(r) {
5361
- const s = Xt.get(r);
5362
- s !== void 0 && (r.getGraphics().tint = s, Xt.delete(r));
5361
+ const s = Vt.get(r);
5362
+ s !== void 0 && (r.getGraphics().tint = s, Vt.delete(r));
5363
5363
  }
5364
5364
  };
5365
5365
  }
5366
- class Vc extends le {
5366
+ class tl extends le {
5367
5367
  states = /* @__PURE__ */ new Map();
5368
5368
  /** stateId → 该状态下所有的插件定义 */
5369
5369
  plugins = /* @__PURE__ */ new Map();
5370
5370
  /** 添加或批量添加状态 */
5371
5371
  add(e) {
5372
5372
  for (const i of Array.isArray(e) ? e : [e]) {
5373
- const n = this.states.has(i.id);
5374
- this.states.set(i.id, i), this.emit(n ? "state:updated" : "state:added", i);
5373
+ const n = this.states.has(i.id), r = this.states.get(i.id), s = this._mergeItem(r, i);
5374
+ this.states.set(s.id, s), s.effects && s.effects.length > 0 && this._applyEffectPlugins(s), this.emit(n ? "state:updated" : "state:added", s);
5375
5375
  }
5376
5376
  return this;
5377
5377
  }
5378
+ /**
5379
+ * 合并新旧 StateItem:
5380
+ * - 平字段 type/effect/options 转为 effects 条目后追加
5381
+ * - 若 raw 已带 effects 数组则替换
5382
+ * - name / description / weight 以最后一次为准
5383
+ */
5384
+ _mergeItem(e, i) {
5385
+ const n = e?.effects ?? [];
5386
+ let r;
5387
+ if (i.effects)
5388
+ r = i.effects;
5389
+ else if (i.type && i.effect) {
5390
+ const s = il(i);
5391
+ r = [...n, s];
5392
+ } else
5393
+ r = n;
5394
+ return {
5395
+ id: i.id,
5396
+ name: i.name ?? e?.name,
5397
+ description: i.description ?? e?.description,
5398
+ weight: i.weight ?? e?.weight,
5399
+ effects: r
5400
+ };
5401
+ }
5378
5402
  /** 删除状态(同时清除关联的插件) */
5379
5403
  remove(e) {
5380
5404
  return this.states.delete(e) ? (this.plugins.delete(e), this.emit("state:removed", { id: e }), !0) : !1;
@@ -5391,7 +5415,7 @@ class Vc extends le {
5391
5415
  clear() {
5392
5416
  this.states.clear(), this.plugins.clear(), this.emit("states:cleared");
5393
5417
  }
5394
- /** 注册状态插件 */
5418
+ /** 注册状态插件(高级 API,自定义行为) */
5395
5419
  registerPlugin(e) {
5396
5420
  const i = this.plugins.get(e.stateId) ?? [];
5397
5421
  return i.push(e), this.plugins.set(e.stateId, i), this;
@@ -5417,7 +5441,7 @@ class Vc extends le {
5417
5441
  sortByWeight(e) {
5418
5442
  return [...e].sort((i, n) => this.getWeight(i) - this.getWeight(n));
5419
5443
  }
5420
- /** 序列化(仅元数据,插件为运行时代码不参与序列化) */
5444
+ /** 序列化(包含 effects 数组) */
5421
5445
  toJSON() {
5422
5446
  return this.getAll();
5423
5447
  }
@@ -5431,14 +5455,81 @@ class Vc extends le {
5431
5455
  fromYAML(e) {
5432
5456
  this.fromJSON(Ce(e));
5433
5457
  }
5458
+ /**
5459
+ * 将 effects 数组转换为内部插件并注册
5460
+ * @internal
5461
+ */
5462
+ _applyEffectPlugins(e) {
5463
+ const i = e.effects;
5464
+ if (i) {
5465
+ this.plugins.delete(e.id);
5466
+ for (const n of i) {
5467
+ const r = nl(e.id, n), s = this.plugins.get(e.id) ?? [];
5468
+ s.push(r), this.plugins.set(e.id, s);
5469
+ }
5470
+ }
5471
+ }
5434
5472
  destroy() {
5435
5473
  this.clear(), this.removeAllListeners();
5436
5474
  }
5437
5475
  }
5476
+ function il(t) {
5477
+ const e = { type: t.type, effect: t.effect };
5478
+ return t.options && Object.assign(e, t.options), e;
5479
+ }
5480
+ function nl(t, e) {
5481
+ const i = e.type;
5482
+ switch (e.effect) {
5483
+ case "blink":
5484
+ return Gc(t, i, {
5485
+ frequency: e.frequency,
5486
+ minAlpha: e.minAlpha,
5487
+ maxAlpha: e.maxAlpha
5488
+ });
5489
+ case "bounce":
5490
+ return Uc(t, i, {
5491
+ frequency: e.frequency,
5492
+ height: e.height
5493
+ });
5494
+ case "brighten":
5495
+ return Hc(t, i, {
5496
+ brightness: e.brightness
5497
+ });
5498
+ case "darken":
5499
+ return Yc(t, i, {
5500
+ brightness: e.brightness
5501
+ });
5502
+ case "glow":
5503
+ return Vc(t, i, {
5504
+ color: e.color,
5505
+ distance: e.distance,
5506
+ strength: e.strength,
5507
+ frequency: e.frequency,
5508
+ quality: e.quality
5509
+ });
5510
+ case "heartbeat":
5511
+ return Xc(t, i, {
5512
+ frequency: e.frequency,
5513
+ minScale: e.minScale,
5514
+ maxScale: e.maxScale
5515
+ });
5516
+ case "shimmer":
5517
+ return Qc(t, i, {
5518
+ frequency: e.frequency,
5519
+ width: e.width,
5520
+ intensity: e.intensity,
5521
+ angle: e.angle
5522
+ });
5523
+ case "tint":
5524
+ return el(t, i, {
5525
+ color: e.color
5526
+ });
5527
+ }
5528
+ }
5438
5529
  class _r extends le {
5439
5530
  _app;
5440
5531
  icons = new $c();
5441
- states = new Vc();
5532
+ states = new tl();
5442
5533
  scenes = /* @__PURE__ */ new Map();
5443
5534
  _activeSceneId = null;
5444
5535
  _isReady = !1;
@@ -5528,14 +5619,14 @@ class _r extends le {
5528
5619
  const me = x * pe + S * ge, ve = w * pe + b * ge;
5529
5620
  me < E && (E = me), ve < N && (N = ve), me > j && (j = me), ve > ee && (ee = ve);
5530
5621
  }
5531
- const V = j - E, X = ee - N, ue = (E + j) / 2, fe = (N + ee) / 2, q = f - l - a, de = d - o - c;
5622
+ const q = j - E, V = ee - N, ue = (E + j) / 2, fe = (N + ee) / 2, X = f - l - a, de = d - o - c;
5532
5623
  let $;
5533
- if (V <= 0 && X <= 0)
5624
+ if (q <= 0 && V <= 0)
5534
5625
  $ = De.DEFAULT_ZOOM;
5535
- else if (q <= 0 || de <= 0)
5626
+ else if (X <= 0 || de <= 0)
5536
5627
  $ = De.DEFAULT_ZOOM;
5537
5628
  else {
5538
- const pe = V > 0 ? q / V : 1 / 0, ge = X > 0 ? de / X : 1 / 0;
5629
+ const pe = q > 0 ? X / q : 1 / 0, ge = V > 0 ? de / V : 1 / 0;
5539
5630
  $ = Math.min(pe, ge);
5540
5631
  }
5541
5632
  $ = Math.max(0.05, Math.min($, 10));
@@ -5698,18 +5789,18 @@ class Pe extends Oe {
5698
5789
  n.eventMode = "none", n.cursor = "default", this.activeItems.delete(e);
5699
5790
  }
5700
5791
  }
5701
- const Xc = {
5792
+ const rl = {
5702
5793
  padding: 6,
5703
5794
  radius: 6,
5704
5795
  color: 4886754,
5705
5796
  lineWidth: 2,
5706
5797
  alpha: 0.8
5707
5798
  };
5708
- class qc {
5799
+ class sl {
5709
5800
  graphics;
5710
5801
  draw(e, i) {
5711
5802
  this.destroy();
5712
- const { padding: n, radius: r, color: s, lineWidth: o, alpha: a } = { ...Xc, ...i }, c = e.getLocalBounds(), l = new L();
5803
+ const { padding: n, radius: r, color: s, lineWidth: o, alpha: a } = { ...rl, ...i }, c = e.getLocalBounds(), l = new L();
5713
5804
  l.roundRect(c.x - n, c.y - n, c.width + n * 2, c.height + n * 2, r), l.stroke({ color: s, width: o, alpha: a }), l.position.copyFrom(e.position), l.skew.copyFrom(e.skew), l.scale.copyFrom(e.scale), e.parent?.addChild(l), this.graphics = l;
5714
5805
  }
5715
5806
  updatePosition(e) {
@@ -5724,7 +5815,7 @@ class qc {
5724
5815
  }
5725
5816
  class Ue extends Oe {
5726
5817
  selected = null;
5727
- highlight = new qc();
5818
+ highlight = new sl();
5728
5819
  dragStates = /* @__PURE__ */ new Map();
5729
5820
  snapDelta(e) {
5730
5821
  return e;
@@ -5834,53 +5925,53 @@ function zt(t) {
5834
5925
  var e = t += "", i = e.indexOf(":");
5835
5926
  return i >= 0 && (e = t.slice(0, i)) !== "xmlns" && (t = t.slice(i + 1)), Zi.hasOwnProperty(e) ? { space: Zi[e], local: t } : t;
5836
5927
  }
5837
- function Jc(t) {
5928
+ function ol(t) {
5838
5929
  return function() {
5839
5930
  var e = this.ownerDocument, i = this.namespaceURI;
5840
5931
  return i === ci && e.documentElement.namespaceURI === ci ? e.createElement(t) : e.createElementNS(i, t);
5841
5932
  };
5842
5933
  }
5843
- function Kc(t) {
5934
+ function al(t) {
5844
5935
  return function() {
5845
5936
  return this.ownerDocument.createElementNS(t.space, t.local);
5846
5937
  };
5847
5938
  }
5848
5939
  function wr(t) {
5849
5940
  var e = zt(t);
5850
- return (e.local ? Kc : Jc)(e);
5941
+ return (e.local ? al : ol)(e);
5851
5942
  }
5852
- function Zc() {
5943
+ function cl() {
5853
5944
  }
5854
5945
  function Pi(t) {
5855
- return t == null ? Zc : function() {
5946
+ return t == null ? cl : function() {
5856
5947
  return this.querySelector(t);
5857
5948
  };
5858
5949
  }
5859
- function Qc(t) {
5950
+ function ll(t) {
5860
5951
  typeof t != "function" && (t = Pi(t));
5861
5952
  for (var e = this._groups, i = e.length, n = new Array(i), r = 0; r < i; ++r)
5862
5953
  for (var s = e[r], o = s.length, a = n[r] = new Array(o), c, l, h = 0; h < o; ++h)
5863
5954
  (c = s[h]) && (l = t.call(c, c.__data__, h, s)) && ("__data__" in c && (l.__data__ = c.__data__), a[h] = l);
5864
5955
  return new z(n, this._parents);
5865
5956
  }
5866
- function el(t) {
5957
+ function hl(t) {
5867
5958
  return t == null ? [] : Array.isArray(t) ? t : Array.from(t);
5868
5959
  }
5869
- function tl() {
5960
+ function ul() {
5870
5961
  return [];
5871
5962
  }
5872
5963
  function Sr(t) {
5873
- return t == null ? tl : function() {
5964
+ return t == null ? ul : function() {
5874
5965
  return this.querySelectorAll(t);
5875
5966
  };
5876
5967
  }
5877
- function il(t) {
5968
+ function fl(t) {
5878
5969
  return function() {
5879
- return el(t.apply(this, arguments));
5970
+ return hl(t.apply(this, arguments));
5880
5971
  };
5881
5972
  }
5882
- function nl(t) {
5883
- typeof t == "function" ? t = il(t) : t = Sr(t);
5973
+ function dl(t) {
5974
+ typeof t == "function" ? t = fl(t) : t = Sr(t);
5884
5975
  for (var e = this._groups, i = e.length, n = [], r = [], s = 0; s < i; ++s)
5885
5976
  for (var o = e[s], a = o.length, c, l = 0; l < a; ++l)
5886
5977
  (c = o[l]) && (n.push(t.call(c, c.__data__, l, o)), r.push(c));
@@ -5896,31 +5987,31 @@ function Cr(t) {
5896
5987
  return e.matches(t);
5897
5988
  };
5898
5989
  }
5899
- var rl = Array.prototype.find;
5900
- function sl(t) {
5990
+ var pl = Array.prototype.find;
5991
+ function gl(t) {
5901
5992
  return function() {
5902
- return rl.call(this.children, t);
5993
+ return pl.call(this.children, t);
5903
5994
  };
5904
5995
  }
5905
- function ol() {
5996
+ function ml() {
5906
5997
  return this.firstElementChild;
5907
5998
  }
5908
- function al(t) {
5909
- return this.select(t == null ? ol : sl(typeof t == "function" ? t : Cr(t)));
5999
+ function vl(t) {
6000
+ return this.select(t == null ? ml : gl(typeof t == "function" ? t : Cr(t)));
5910
6001
  }
5911
- var cl = Array.prototype.filter;
5912
- function ll() {
6002
+ var xl = Array.prototype.filter;
6003
+ function yl() {
5913
6004
  return Array.from(this.children);
5914
6005
  }
5915
- function hl(t) {
6006
+ function _l(t) {
5916
6007
  return function() {
5917
- return cl.call(this.children, t);
6008
+ return xl.call(this.children, t);
5918
6009
  };
5919
6010
  }
5920
- function ul(t) {
5921
- return this.selectAll(t == null ? ll : hl(typeof t == "function" ? t : Cr(t)));
6011
+ function wl(t) {
6012
+ return this.selectAll(t == null ? yl : _l(typeof t == "function" ? t : Cr(t)));
5922
6013
  }
5923
- function fl(t) {
6014
+ function Sl(t) {
5924
6015
  typeof t != "function" && (t = br(t));
5925
6016
  for (var e = this._groups, i = e.length, n = new Array(i), r = 0; r < i; ++r)
5926
6017
  for (var s = e[r], o = s.length, a = n[r] = [], c, l = 0; l < o; ++l)
@@ -5930,7 +6021,7 @@ function fl(t) {
5930
6021
  function Ir(t) {
5931
6022
  return new Array(t.length);
5932
6023
  }
5933
- function dl() {
6024
+ function bl() {
5934
6025
  return new z(this._enter || this._groups.map(Ir), this._parents);
5935
6026
  }
5936
6027
  function At(t, e) {
@@ -5951,18 +6042,18 @@ At.prototype = {
5951
6042
  return this._parent.querySelectorAll(t);
5952
6043
  }
5953
6044
  };
5954
- function pl(t) {
6045
+ function Cl(t) {
5955
6046
  return function() {
5956
6047
  return t;
5957
6048
  };
5958
6049
  }
5959
- function gl(t, e, i, n, r, s) {
6050
+ function Il(t, e, i, n, r, s) {
5960
6051
  for (var o = 0, a, c = e.length, l = s.length; o < l; ++o)
5961
6052
  (a = e[o]) ? (a.__data__ = s[o], n[o] = a) : i[o] = new At(t, s[o]);
5962
6053
  for (; o < c; ++o)
5963
6054
  (a = e[o]) && (r[o] = a);
5964
6055
  }
5965
- function ml(t, e, i, n, r, s, o) {
6056
+ function Al(t, e, i, n, r, s, o) {
5966
6057
  var a, c, l = /* @__PURE__ */ new Map(), h = e.length, u = s.length, f = new Array(h), d;
5967
6058
  for (a = 0; a < h; ++a)
5968
6059
  (c = e[a]) && (f[a] = d = o.call(c, c.__data__, a, e) + "", l.has(d) ? r[a] = c : l.set(d, c));
@@ -5971,15 +6062,15 @@ function ml(t, e, i, n, r, s, o) {
5971
6062
  for (a = 0; a < h; ++a)
5972
6063
  (c = e[a]) && l.get(f[a]) === c && (r[a] = c);
5973
6064
  }
5974
- function vl(t) {
6065
+ function Tl(t) {
5975
6066
  return t.__data__;
5976
6067
  }
5977
- function xl(t, e) {
5978
- if (!arguments.length) return Array.from(this, vl);
5979
- var i = e ? ml : gl, n = this._parents, r = this._groups;
5980
- typeof t != "function" && (t = pl(t));
6068
+ function Ol(t, e) {
6069
+ if (!arguments.length) return Array.from(this, Tl);
6070
+ var i = e ? Al : Il, n = this._parents, r = this._groups;
6071
+ typeof t != "function" && (t = Cl(t));
5981
6072
  for (var s = r.length, o = new Array(s), a = new Array(s), c = new Array(s), l = 0; l < s; ++l) {
5982
- var h = n[l], u = r[l], f = u.length, d = yl(t.call(h, h && h.__data__, l, n)), p = d.length, m = a[l] = new Array(p), v = o[l] = new Array(p), _ = c[l] = new Array(f);
6073
+ var h = n[l], u = r[l], f = u.length, d = Pl(t.call(h, h && h.__data__, l, n)), p = d.length, m = a[l] = new Array(p), v = o[l] = new Array(p), _ = c[l] = new Array(f);
5983
6074
  i(h, u, m, v, _, d, e);
5984
6075
  for (var x = 0, w = 0, S, b; x < p; ++x)
5985
6076
  if (S = m[x]) {
@@ -5989,17 +6080,17 @@ function xl(t, e) {
5989
6080
  }
5990
6081
  return o = new z(o, n), o._enter = a, o._exit = c, o;
5991
6082
  }
5992
- function yl(t) {
6083
+ function Pl(t) {
5993
6084
  return typeof t == "object" && "length" in t ? t : Array.from(t);
5994
6085
  }
5995
- function _l() {
6086
+ function Ml() {
5996
6087
  return new z(this._exit || this._groups.map(Ir), this._parents);
5997
6088
  }
5998
- function wl(t, e, i) {
6089
+ function El(t, e, i) {
5999
6090
  var n = this.enter(), r = this, s = this.exit();
6000
6091
  return typeof t == "function" ? (n = t(n), n && (n = n.selection())) : n = n.append(t + ""), e != null && (r = e(r), r && (r = r.selection())), i == null ? s.remove() : i(s), n && r ? n.merge(r).order() : r;
6001
6092
  }
6002
- function Sl(t) {
6093
+ function Ll(t) {
6003
6094
  for (var e = t.selection ? t.selection() : t, i = this._groups, n = e._groups, r = i.length, s = n.length, o = Math.min(r, s), a = new Array(r), c = 0; c < o; ++c)
6004
6095
  for (var l = i[c], h = n[c], u = l.length, f = a[c] = new Array(u), d, p = 0; p < u; ++p)
6005
6096
  (d = l[p] || h[p]) && (f[p] = d);
@@ -6007,14 +6098,14 @@ function Sl(t) {
6007
6098
  a[c] = i[c];
6008
6099
  return new z(a, this._parents);
6009
6100
  }
6010
- function bl() {
6101
+ function kl() {
6011
6102
  for (var t = this._groups, e = -1, i = t.length; ++e < i; )
6012
6103
  for (var n = t[e], r = n.length - 1, s = n[r], o; --r >= 0; )
6013
6104
  (o = n[r]) && (s && o.compareDocumentPosition(s) ^ 4 && s.parentNode.insertBefore(o, s), s = o);
6014
6105
  return this;
6015
6106
  }
6016
- function Cl(t) {
6017
- t || (t = Il);
6107
+ function Fl(t) {
6108
+ t || (t = Rl);
6018
6109
  function e(u, f) {
6019
6110
  return u && f ? t(u.__data__, f.__data__) : !u - !f;
6020
6111
  }
@@ -6025,17 +6116,17 @@ function Cl(t) {
6025
6116
  }
6026
6117
  return new z(r, this._parents).order();
6027
6118
  }
6028
- function Il(t, e) {
6119
+ function Rl(t, e) {
6029
6120
  return t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN;
6030
6121
  }
6031
- function Al() {
6122
+ function Dl() {
6032
6123
  var t = arguments[0];
6033
6124
  return arguments[0] = this, t.apply(null, arguments), this;
6034
6125
  }
6035
- function Tl() {
6126
+ function zl() {
6036
6127
  return Array.from(this);
6037
6128
  }
6038
- function Ol() {
6129
+ function Nl() {
6039
6130
  for (var t = this._groups, e = 0, i = t.length; e < i; ++e)
6040
6131
  for (var n = t[e], r = 0, s = n.length; r < s; ++r) {
6041
6132
  var o = n[r];
@@ -6043,103 +6134,103 @@ function Ol() {
6043
6134
  }
6044
6135
  return null;
6045
6136
  }
6046
- function Pl() {
6137
+ function $l() {
6047
6138
  let t = 0;
6048
6139
  for (const e of this) ++t;
6049
6140
  return t;
6050
6141
  }
6051
- function Ml() {
6142
+ function Gl() {
6052
6143
  return !this.node();
6053
6144
  }
6054
- function El(t) {
6145
+ function Ul(t) {
6055
6146
  for (var e = this._groups, i = 0, n = e.length; i < n; ++i)
6056
6147
  for (var r = e[i], s = 0, o = r.length, a; s < o; ++s)
6057
6148
  (a = r[s]) && t.call(a, a.__data__, s, r);
6058
6149
  return this;
6059
6150
  }
6060
- function Ll(t) {
6151
+ function Hl(t) {
6061
6152
  return function() {
6062
6153
  this.removeAttribute(t);
6063
6154
  };
6064
6155
  }
6065
- function kl(t) {
6156
+ function Yl(t) {
6066
6157
  return function() {
6067
6158
  this.removeAttributeNS(t.space, t.local);
6068
6159
  };
6069
6160
  }
6070
- function Fl(t, e) {
6161
+ function Bl(t, e) {
6071
6162
  return function() {
6072
6163
  this.setAttribute(t, e);
6073
6164
  };
6074
6165
  }
6075
- function Rl(t, e) {
6166
+ function Wl(t, e) {
6076
6167
  return function() {
6077
6168
  this.setAttributeNS(t.space, t.local, e);
6078
6169
  };
6079
6170
  }
6080
- function Dl(t, e) {
6171
+ function jl(t, e) {
6081
6172
  return function() {
6082
6173
  var i = e.apply(this, arguments);
6083
6174
  i == null ? this.removeAttribute(t) : this.setAttribute(t, i);
6084
6175
  };
6085
6176
  }
6086
- function zl(t, e) {
6177
+ function ql(t, e) {
6087
6178
  return function() {
6088
6179
  var i = e.apply(this, arguments);
6089
6180
  i == null ? this.removeAttributeNS(t.space, t.local) : this.setAttributeNS(t.space, t.local, i);
6090
6181
  };
6091
6182
  }
6092
- function Nl(t, e) {
6183
+ function Vl(t, e) {
6093
6184
  var i = zt(t);
6094
6185
  if (arguments.length < 2) {
6095
6186
  var n = this.node();
6096
6187
  return i.local ? n.getAttributeNS(i.space, i.local) : n.getAttribute(i);
6097
6188
  }
6098
- return this.each((e == null ? i.local ? kl : Ll : typeof e == "function" ? i.local ? zl : Dl : i.local ? Rl : Fl)(i, e));
6189
+ return this.each((e == null ? i.local ? Yl : Hl : typeof e == "function" ? i.local ? ql : jl : i.local ? Wl : Bl)(i, e));
6099
6190
  }
6100
6191
  function Ar(t) {
6101
6192
  return t.ownerDocument && t.ownerDocument.defaultView || t.document && t || t.defaultView;
6102
6193
  }
6103
- function $l(t) {
6194
+ function Xl(t) {
6104
6195
  return function() {
6105
6196
  this.style.removeProperty(t);
6106
6197
  };
6107
6198
  }
6108
- function Gl(t, e, i) {
6199
+ function Jl(t, e, i) {
6109
6200
  return function() {
6110
6201
  this.style.setProperty(t, e, i);
6111
6202
  };
6112
6203
  }
6113
- function Ul(t, e, i) {
6204
+ function Kl(t, e, i) {
6114
6205
  return function() {
6115
6206
  var n = e.apply(this, arguments);
6116
6207
  n == null ? this.style.removeProperty(t) : this.style.setProperty(t, n, i);
6117
6208
  };
6118
6209
  }
6119
- function Hl(t, e, i) {
6120
- return arguments.length > 1 ? this.each((e == null ? $l : typeof e == "function" ? Ul : Gl)(t, e, i ?? "")) : $e(this.node(), t);
6210
+ function Zl(t, e, i) {
6211
+ return arguments.length > 1 ? this.each((e == null ? Xl : typeof e == "function" ? Kl : Jl)(t, e, i ?? "")) : $e(this.node(), t);
6121
6212
  }
6122
6213
  function $e(t, e) {
6123
6214
  return t.style.getPropertyValue(e) || Ar(t).getComputedStyle(t, null).getPropertyValue(e);
6124
6215
  }
6125
- function Yl(t) {
6216
+ function Ql(t) {
6126
6217
  return function() {
6127
6218
  delete this[t];
6128
6219
  };
6129
6220
  }
6130
- function Bl(t, e) {
6221
+ function eh(t, e) {
6131
6222
  return function() {
6132
6223
  this[t] = e;
6133
6224
  };
6134
6225
  }
6135
- function Wl(t, e) {
6226
+ function th(t, e) {
6136
6227
  return function() {
6137
6228
  var i = e.apply(this, arguments);
6138
6229
  i == null ? delete this[t] : this[t] = i;
6139
6230
  };
6140
6231
  }
6141
- function jl(t, e) {
6142
- return arguments.length > 1 ? this.each((e == null ? Yl : typeof e == "function" ? Wl : Bl)(t, e)) : this.node()[t];
6232
+ function ih(t, e) {
6233
+ return arguments.length > 1 ? this.each((e == null ? Ql : typeof e == "function" ? th : eh)(t, e)) : this.node()[t];
6143
6234
  }
6144
6235
  function Tr(t) {
6145
6236
  return t.trim().split(/^|\s+/);
@@ -6169,123 +6260,123 @@ function Pr(t, e) {
6169
6260
  function Mr(t, e) {
6170
6261
  for (var i = Mi(t), n = -1, r = e.length; ++n < r; ) i.remove(e[n]);
6171
6262
  }
6172
- function Vl(t) {
6263
+ function nh(t) {
6173
6264
  return function() {
6174
6265
  Pr(this, t);
6175
6266
  };
6176
6267
  }
6177
- function Xl(t) {
6268
+ function rh(t) {
6178
6269
  return function() {
6179
6270
  Mr(this, t);
6180
6271
  };
6181
6272
  }
6182
- function ql(t, e) {
6273
+ function sh(t, e) {
6183
6274
  return function() {
6184
6275
  (e.apply(this, arguments) ? Pr : Mr)(this, t);
6185
6276
  };
6186
6277
  }
6187
- function Jl(t, e) {
6278
+ function oh(t, e) {
6188
6279
  var i = Tr(t + "");
6189
6280
  if (arguments.length < 2) {
6190
6281
  for (var n = Mi(this.node()), r = -1, s = i.length; ++r < s; ) if (!n.contains(i[r])) return !1;
6191
6282
  return !0;
6192
6283
  }
6193
- return this.each((typeof e == "function" ? ql : e ? Vl : Xl)(i, e));
6284
+ return this.each((typeof e == "function" ? sh : e ? nh : rh)(i, e));
6194
6285
  }
6195
- function Kl() {
6286
+ function ah() {
6196
6287
  this.textContent = "";
6197
6288
  }
6198
- function Zl(t) {
6289
+ function ch(t) {
6199
6290
  return function() {
6200
6291
  this.textContent = t;
6201
6292
  };
6202
6293
  }
6203
- function Ql(t) {
6294
+ function lh(t) {
6204
6295
  return function() {
6205
6296
  var e = t.apply(this, arguments);
6206
6297
  this.textContent = e ?? "";
6207
6298
  };
6208
6299
  }
6209
- function eh(t) {
6210
- return arguments.length ? this.each(t == null ? Kl : (typeof t == "function" ? Ql : Zl)(t)) : this.node().textContent;
6300
+ function hh(t) {
6301
+ return arguments.length ? this.each(t == null ? ah : (typeof t == "function" ? lh : ch)(t)) : this.node().textContent;
6211
6302
  }
6212
- function th() {
6303
+ function uh() {
6213
6304
  this.innerHTML = "";
6214
6305
  }
6215
- function ih(t) {
6306
+ function fh(t) {
6216
6307
  return function() {
6217
6308
  this.innerHTML = t;
6218
6309
  };
6219
6310
  }
6220
- function nh(t) {
6311
+ function dh(t) {
6221
6312
  return function() {
6222
6313
  var e = t.apply(this, arguments);
6223
6314
  this.innerHTML = e ?? "";
6224
6315
  };
6225
6316
  }
6226
- function rh(t) {
6227
- return arguments.length ? this.each(t == null ? th : (typeof t == "function" ? nh : ih)(t)) : this.node().innerHTML;
6317
+ function ph(t) {
6318
+ return arguments.length ? this.each(t == null ? uh : (typeof t == "function" ? dh : fh)(t)) : this.node().innerHTML;
6228
6319
  }
6229
- function sh() {
6320
+ function gh() {
6230
6321
  this.nextSibling && this.parentNode.appendChild(this);
6231
6322
  }
6232
- function oh() {
6233
- return this.each(sh);
6323
+ function mh() {
6324
+ return this.each(gh);
6234
6325
  }
6235
- function ah() {
6326
+ function vh() {
6236
6327
  this.previousSibling && this.parentNode.insertBefore(this, this.parentNode.firstChild);
6237
6328
  }
6238
- function ch() {
6239
- return this.each(ah);
6329
+ function xh() {
6330
+ return this.each(vh);
6240
6331
  }
6241
- function lh(t) {
6332
+ function yh(t) {
6242
6333
  var e = typeof t == "function" ? t : wr(t);
6243
6334
  return this.select(function() {
6244
6335
  return this.appendChild(e.apply(this, arguments));
6245
6336
  });
6246
6337
  }
6247
- function hh() {
6338
+ function _h() {
6248
6339
  return null;
6249
6340
  }
6250
- function uh(t, e) {
6251
- var i = typeof t == "function" ? t : wr(t), n = e == null ? hh : typeof e == "function" ? e : Pi(e);
6341
+ function wh(t, e) {
6342
+ var i = typeof t == "function" ? t : wr(t), n = e == null ? _h : typeof e == "function" ? e : Pi(e);
6252
6343
  return this.select(function() {
6253
6344
  return this.insertBefore(i.apply(this, arguments), n.apply(this, arguments) || null);
6254
6345
  });
6255
6346
  }
6256
- function fh() {
6347
+ function Sh() {
6257
6348
  var t = this.parentNode;
6258
6349
  t && t.removeChild(this);
6259
6350
  }
6260
- function dh() {
6261
- return this.each(fh);
6351
+ function bh() {
6352
+ return this.each(Sh);
6262
6353
  }
6263
- function ph() {
6354
+ function Ch() {
6264
6355
  var t = this.cloneNode(!1), e = this.parentNode;
6265
6356
  return e ? e.insertBefore(t, this.nextSibling) : t;
6266
6357
  }
6267
- function gh() {
6358
+ function Ih() {
6268
6359
  var t = this.cloneNode(!0), e = this.parentNode;
6269
6360
  return e ? e.insertBefore(t, this.nextSibling) : t;
6270
6361
  }
6271
- function mh(t) {
6272
- return this.select(t ? gh : ph);
6362
+ function Ah(t) {
6363
+ return this.select(t ? Ih : Ch);
6273
6364
  }
6274
- function vh(t) {
6365
+ function Th(t) {
6275
6366
  return arguments.length ? this.property("__data__", t) : this.node().__data__;
6276
6367
  }
6277
- function xh(t) {
6368
+ function Oh(t) {
6278
6369
  return function(e) {
6279
6370
  t.call(this, e, this.__data__);
6280
6371
  };
6281
6372
  }
6282
- function yh(t) {
6373
+ function Ph(t) {
6283
6374
  return t.trim().split(/^|\s+/).map(function(e) {
6284
6375
  var i = "", n = e.indexOf(".");
6285
6376
  return n >= 0 && (i = e.slice(n + 1), e = e.slice(0, n)), { type: e, name: i };
6286
6377
  });
6287
6378
  }
6288
- function _h(t) {
6379
+ function Mh(t) {
6289
6380
  return function() {
6290
6381
  var e = this.__on;
6291
6382
  if (e) {
@@ -6295,9 +6386,9 @@ function _h(t) {
6295
6386
  }
6296
6387
  };
6297
6388
  }
6298
- function wh(t, e, i) {
6389
+ function Eh(t, e, i) {
6299
6390
  return function() {
6300
- var n = this.__on, r, s = xh(e);
6391
+ var n = this.__on, r, s = Oh(e);
6301
6392
  if (n) {
6302
6393
  for (var o = 0, a = n.length; o < a; ++o)
6303
6394
  if ((r = n[o]).type === t.type && r.name === t.name) {
@@ -6308,8 +6399,8 @@ function wh(t, e, i) {
6308
6399
  this.addEventListener(t.type, s, i), r = { type: t.type, name: t.name, value: e, listener: s, options: i }, n ? n.push(r) : this.__on = [r];
6309
6400
  };
6310
6401
  }
6311
- function Sh(t, e, i) {
6312
- var n = yh(t + ""), r, s = n.length, o;
6402
+ function Lh(t, e, i) {
6403
+ var n = Ph(t + ""), r, s = n.length, o;
6313
6404
  if (arguments.length < 2) {
6314
6405
  var a = this.node().__on;
6315
6406
  if (a) {
@@ -6320,27 +6411,27 @@ function Sh(t, e, i) {
6320
6411
  }
6321
6412
  return;
6322
6413
  }
6323
- for (a = e ? wh : _h, r = 0; r < s; ++r) this.each(a(n[r], e, i));
6414
+ for (a = e ? Eh : Mh, r = 0; r < s; ++r) this.each(a(n[r], e, i));
6324
6415
  return this;
6325
6416
  }
6326
6417
  function Er(t, e, i) {
6327
6418
  var n = Ar(t), r = n.CustomEvent;
6328
6419
  typeof r == "function" ? r = new r(e, i) : (r = n.document.createEvent("Event"), i ? (r.initEvent(e, i.bubbles, i.cancelable), r.detail = i.detail) : r.initEvent(e, !1, !1)), t.dispatchEvent(r);
6329
6420
  }
6330
- function bh(t, e) {
6421
+ function kh(t, e) {
6331
6422
  return function() {
6332
6423
  return Er(this, t, e);
6333
6424
  };
6334
6425
  }
6335
- function Ch(t, e) {
6426
+ function Fh(t, e) {
6336
6427
  return function() {
6337
6428
  return Er(this, t, e.apply(this, arguments));
6338
6429
  };
6339
6430
  }
6340
- function Ih(t, e) {
6341
- return this.each((typeof e == "function" ? Ch : bh)(t, e));
6431
+ function Rh(t, e) {
6432
+ return this.each((typeof e == "function" ? Fh : kh)(t, e));
6342
6433
  }
6343
- function* Ah() {
6434
+ function* Dh() {
6344
6435
  for (var t = this._groups, e = 0, i = t.length; e < i; ++e)
6345
6436
  for (var n = t[e], r = 0, s = n.length, o; r < s; ++r)
6346
6437
  (o = n[r]) && (yield o);
@@ -6352,51 +6443,51 @@ function z(t, e) {
6352
6443
  function nt() {
6353
6444
  return new z([[document.documentElement]], Lr);
6354
6445
  }
6355
- function Th() {
6446
+ function zh() {
6356
6447
  return this;
6357
6448
  }
6358
6449
  z.prototype = nt.prototype = {
6359
6450
  constructor: z,
6360
- select: Qc,
6361
- selectAll: nl,
6362
- selectChild: al,
6363
- selectChildren: ul,
6364
- filter: fl,
6365
- data: xl,
6366
- enter: dl,
6367
- exit: _l,
6368
- join: wl,
6369
- merge: Sl,
6370
- selection: Th,
6371
- order: bl,
6372
- sort: Cl,
6373
- call: Al,
6374
- nodes: Tl,
6375
- node: Ol,
6376
- size: Pl,
6377
- empty: Ml,
6378
- each: El,
6379
- attr: Nl,
6380
- style: Hl,
6381
- property: jl,
6382
- classed: Jl,
6383
- text: eh,
6384
- html: rh,
6385
- raise: oh,
6386
- lower: ch,
6387
- append: lh,
6388
- insert: uh,
6389
- remove: dh,
6390
- clone: mh,
6391
- datum: vh,
6392
- on: Sh,
6393
- dispatch: Ih,
6394
- [Symbol.iterator]: Ah
6451
+ select: ll,
6452
+ selectAll: dl,
6453
+ selectChild: vl,
6454
+ selectChildren: wl,
6455
+ filter: Sl,
6456
+ data: Ol,
6457
+ enter: bl,
6458
+ exit: Ml,
6459
+ join: El,
6460
+ merge: Ll,
6461
+ selection: zh,
6462
+ order: kl,
6463
+ sort: Fl,
6464
+ call: Dl,
6465
+ nodes: zl,
6466
+ node: Nl,
6467
+ size: $l,
6468
+ empty: Gl,
6469
+ each: Ul,
6470
+ attr: Vl,
6471
+ style: Zl,
6472
+ property: ih,
6473
+ classed: oh,
6474
+ text: hh,
6475
+ html: ph,
6476
+ raise: mh,
6477
+ lower: xh,
6478
+ append: yh,
6479
+ insert: wh,
6480
+ remove: bh,
6481
+ clone: Ah,
6482
+ datum: Th,
6483
+ on: Lh,
6484
+ dispatch: Rh,
6485
+ [Symbol.iterator]: Dh
6395
6486
  };
6396
- function Oh(t) {
6487
+ function Nh(t) {
6397
6488
  return typeof t == "string" ? new z([[document.querySelector(t)]], [document.documentElement]) : new z([[t]], Lr);
6398
6489
  }
6399
- var Ph = { value: () => {
6490
+ var $h = { value: () => {
6400
6491
  } };
6401
6492
  function kr() {
6402
6493
  for (var t = 0, e = arguments.length, i = {}, n; t < e; ++t) {
@@ -6408,7 +6499,7 @@ function kr() {
6408
6499
  function pt(t) {
6409
6500
  this._ = t;
6410
6501
  }
6411
- function Mh(t, e) {
6502
+ function Gh(t, e) {
6412
6503
  return t.trim().split(/^|\s+/).map(function(i) {
6413
6504
  var n = "", r = i.indexOf(".");
6414
6505
  if (r >= 0 && (n = i.slice(r + 1), i = i.slice(0, r)), i && !e.hasOwnProperty(i)) throw new Error("unknown type: " + i);
@@ -6418,9 +6509,9 @@ function Mh(t, e) {
6418
6509
  pt.prototype = kr.prototype = {
6419
6510
  constructor: pt,
6420
6511
  on: function(t, e) {
6421
- var i = this._, n = Mh(t + "", i), r, s = -1, o = n.length;
6512
+ var i = this._, n = Gh(t + "", i), r, s = -1, o = n.length;
6422
6513
  if (arguments.length < 2) {
6423
- for (; ++s < o; ) if ((r = (t = n[s]).type) && (r = Eh(i[r], t.name))) return r;
6514
+ for (; ++s < o; ) if ((r = (t = n[s]).type) && (r = Uh(i[r], t.name))) return r;
6424
6515
  return;
6425
6516
  }
6426
6517
  if (e != null && typeof e != "function") throw new Error("invalid callback: " + e);
@@ -6444,7 +6535,7 @@ pt.prototype = kr.prototype = {
6444
6535
  for (var n = this._[t], r = 0, s = n.length; r < s; ++r) n[r].value.apply(e, i);
6445
6536
  }
6446
6537
  };
6447
- function Eh(t, e) {
6538
+ function Uh(t, e) {
6448
6539
  for (var i = 0, n = t.length, r; i < n; ++i)
6449
6540
  if ((r = t[i]).name === e)
6450
6541
  return r.value;
@@ -6452,7 +6543,7 @@ function Eh(t, e) {
6452
6543
  function Qi(t, e, i) {
6453
6544
  for (var n = 0, r = t.length; n < r; ++n)
6454
6545
  if (t[n].name === e) {
6455
- t[n] = Ph, t = t.slice(0, n).concat(t.slice(n + 1));
6546
+ t[n] = $h, t = t.slice(0, n).concat(t.slice(n + 1));
6456
6547
  break;
6457
6548
  }
6458
6549
  return i != null && t.push({ name: e, value: i }), t;
@@ -6461,9 +6552,9 @@ var Ge = 0, Be = 0, He = 0, Fr = 1e3, Tt, We, Ot = 0, Se = 0, Nt = 0, Qe = typeo
6461
6552
  setTimeout(t, 17);
6462
6553
  };
6463
6554
  function Ei() {
6464
- return Se || (Rr(Lh), Se = Qe.now() + Nt);
6555
+ return Se || (Rr(Hh), Se = Qe.now() + Nt);
6465
6556
  }
6466
- function Lh() {
6557
+ function Hh() {
6467
6558
  Se = 0;
6468
6559
  }
6469
6560
  function Pt() {
@@ -6483,7 +6574,7 @@ function Dr(t, e, i) {
6483
6574
  var n = new Pt();
6484
6575
  return n.restart(t, e, i), n;
6485
6576
  }
6486
- function kh() {
6577
+ function Yh() {
6487
6578
  Ei(), ++Ge;
6488
6579
  for (var t = Tt, e; t; )
6489
6580
  (e = Se - t._time) >= 0 && t._call.call(void 0, e), t = t._next;
@@ -6492,16 +6583,16 @@ function kh() {
6492
6583
  function en() {
6493
6584
  Se = (Ot = Qe.now()) + Nt, Ge = Be = 0;
6494
6585
  try {
6495
- kh();
6586
+ Yh();
6496
6587
  } finally {
6497
- Ge = 0, Rh(), Se = 0;
6588
+ Ge = 0, Wh(), Se = 0;
6498
6589
  }
6499
6590
  }
6500
- function Fh() {
6591
+ function Bh() {
6501
6592
  var t = Qe.now(), e = t - Ot;
6502
6593
  e > Fr && (Nt -= e, Ot = t);
6503
6594
  }
6504
- function Rh() {
6595
+ function Wh() {
6505
6596
  for (var t, e = Tt, i, n = 1 / 0; e; )
6506
6597
  e._call ? (n > e._time && (n = e._time), t = e, e = e._next) : (i = e._next, e._next = null, e = t ? t._next = i : Tt = i);
6507
6598
  We = t, li(n);
@@ -6510,7 +6601,7 @@ function li(t) {
6510
6601
  if (!Ge) {
6511
6602
  Be && (Be = clearTimeout(Be));
6512
6603
  var e = t - Se;
6513
- e > 24 ? (t < 1 / 0 && (Be = setTimeout(en, t - Qe.now() - Nt)), He && (He = clearInterval(He))) : (He || (Ot = Qe.now(), He = setInterval(Fh, Fr)), Ge = 1, Rr(en));
6604
+ e > 24 ? (t < 1 / 0 && (Be = setTimeout(en, t - Qe.now() - Nt)), He && (He = clearInterval(He))) : (He || (Ot = Qe.now(), He = setInterval(Bh, Fr)), Ge = 1, Rr(en));
6514
6605
  }
6515
6606
  }
6516
6607
  function tn(t, e, i) {
@@ -6519,19 +6610,19 @@ function tn(t, e, i) {
6519
6610
  n.stop(), t(r + e);
6520
6611
  }, e, i), n;
6521
6612
  }
6522
- var Dh = kr("start", "end", "cancel", "interrupt"), zh = [], zr = 0, nn = 1, hi = 2, gt = 3, rn = 4, ui = 5, mt = 6;
6613
+ var jh = kr("start", "end", "cancel", "interrupt"), qh = [], zr = 0, nn = 1, hi = 2, gt = 3, rn = 4, ui = 5, mt = 6;
6523
6614
  function $t(t, e, i, n, r, s) {
6524
6615
  var o = t.__transition;
6525
6616
  if (!o) t.__transition = {};
6526
6617
  else if (i in o) return;
6527
- Nh(t, i, {
6618
+ Vh(t, i, {
6528
6619
  name: e,
6529
6620
  index: n,
6530
6621
  // For context during callback.
6531
6622
  group: r,
6532
6623
  // For context during callback.
6533
- on: Dh,
6534
- tween: zh,
6624
+ on: jh,
6625
+ tween: qh,
6535
6626
  time: s.time,
6536
6627
  delay: s.delay,
6537
6628
  duration: s.duration,
@@ -6555,7 +6646,7 @@ function W(t, e) {
6555
6646
  if (!i || !(i = i[e])) throw new Error("transition not found");
6556
6647
  return i;
6557
6648
  }
6558
- function Nh(t, e, i) {
6649
+ function Vh(t, e, i) {
6559
6650
  var n = t.__transition, r;
6560
6651
  n[e] = i, i.timer = Dr(s, 0, i.time);
6561
6652
  function s(l) {
@@ -6588,7 +6679,7 @@ function Nh(t, e, i) {
6588
6679
  delete t.__transition;
6589
6680
  }
6590
6681
  }
6591
- function $h(t, e) {
6682
+ function Xh(t, e) {
6592
6683
  var i = t.__transition, n, r, s = !0, o;
6593
6684
  if (i) {
6594
6685
  e = e == null ? null : e + "";
@@ -6602,9 +6693,9 @@ function $h(t, e) {
6602
6693
  s && delete t.__transition;
6603
6694
  }
6604
6695
  }
6605
- function Gh(t) {
6696
+ function Jh(t) {
6606
6697
  return this.each(function() {
6607
- $h(this, t);
6698
+ Xh(this, t);
6608
6699
  });
6609
6700
  }
6610
6701
  function ki(t, e, i) {
@@ -6617,7 +6708,7 @@ function Nr(t, e) {
6617
6708
  }
6618
6709
  function rt() {
6619
6710
  }
6620
- var et = 0.7, Mt = 1 / et, ze = "\\s*([+-]?\\d+)\\s*", tt = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", Z = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", Uh = /^#([0-9a-f]{3,8})$/, Hh = new RegExp(`^rgb\\(${ze},${ze},${ze}\\)$`), Yh = new RegExp(`^rgb\\(${Z},${Z},${Z}\\)$`), Bh = new RegExp(`^rgba\\(${ze},${ze},${ze},${tt}\\)$`), Wh = new RegExp(`^rgba\\(${Z},${Z},${Z},${tt}\\)$`), jh = new RegExp(`^hsl\\(${tt},${Z},${Z}\\)$`), Vh = new RegExp(`^hsla\\(${tt},${Z},${Z},${tt}\\)$`), sn = {
6711
+ var et = 0.7, Mt = 1 / et, ze = "\\s*([+-]?\\d+)\\s*", tt = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", Z = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", Kh = /^#([0-9a-f]{3,8})$/, Zh = new RegExp(`^rgb\\(${ze},${ze},${ze}\\)$`), Qh = new RegExp(`^rgb\\(${Z},${Z},${Z}\\)$`), eu = new RegExp(`^rgba\\(${ze},${ze},${ze},${tt}\\)$`), tu = new RegExp(`^rgba\\(${Z},${Z},${Z},${tt}\\)$`), iu = new RegExp(`^hsl\\(${tt},${Z},${Z}\\)$`), nu = new RegExp(`^hsla\\(${tt},${Z},${Z},${tt}\\)$`), sn = {
6621
6712
  aliceblue: 15792383,
6622
6713
  antiquewhite: 16444375,
6623
6714
  aqua: 65535,
@@ -6777,18 +6868,18 @@ ki(rt, it, {
6777
6868
  hex: on,
6778
6869
  // Deprecated! Use color.formatHex.
6779
6870
  formatHex: on,
6780
- formatHex8: Xh,
6781
- formatHsl: qh,
6871
+ formatHex8: ru,
6872
+ formatHsl: su,
6782
6873
  formatRgb: an,
6783
6874
  toString: an
6784
6875
  });
6785
6876
  function on() {
6786
6877
  return this.rgb().formatHex();
6787
6878
  }
6788
- function Xh() {
6879
+ function ru() {
6789
6880
  return this.rgb().formatHex8();
6790
6881
  }
6791
- function qh() {
6882
+ function su() {
6792
6883
  return $r(this).formatHsl();
6793
6884
  }
6794
6885
  function an() {
@@ -6796,7 +6887,7 @@ function an() {
6796
6887
  }
6797
6888
  function it(t) {
6798
6889
  var e, i;
6799
- return t = (t + "").trim().toLowerCase(), (e = Uh.exec(t)) ? (i = e[1].length, e = parseInt(e[1], 16), i === 6 ? cn(e) : i === 3 ? new F(e >> 8 & 15 | e >> 4 & 240, e >> 4 & 15 | e & 240, (e & 15) << 4 | e & 15, 1) : i === 8 ? ht(e >> 24 & 255, e >> 16 & 255, e >> 8 & 255, (e & 255) / 255) : i === 4 ? ht(e >> 12 & 15 | e >> 8 & 240, e >> 8 & 15 | e >> 4 & 240, e >> 4 & 15 | e & 240, ((e & 15) << 4 | e & 15) / 255) : null) : (e = Hh.exec(t)) ? new F(e[1], e[2], e[3], 1) : (e = Yh.exec(t)) ? new F(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, 1) : (e = Bh.exec(t)) ? ht(e[1], e[2], e[3], e[4]) : (e = Wh.exec(t)) ? ht(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, e[4]) : (e = jh.exec(t)) ? un(e[1], e[2] / 100, e[3] / 100, 1) : (e = Vh.exec(t)) ? un(e[1], e[2] / 100, e[3] / 100, e[4]) : sn.hasOwnProperty(t) ? cn(sn[t]) : t === "transparent" ? new F(NaN, NaN, NaN, 0) : null;
6890
+ return t = (t + "").trim().toLowerCase(), (e = Kh.exec(t)) ? (i = e[1].length, e = parseInt(e[1], 16), i === 6 ? cn(e) : i === 3 ? new F(e >> 8 & 15 | e >> 4 & 240, e >> 4 & 15 | e & 240, (e & 15) << 4 | e & 15, 1) : i === 8 ? ht(e >> 24 & 255, e >> 16 & 255, e >> 8 & 255, (e & 255) / 255) : i === 4 ? ht(e >> 12 & 15 | e >> 8 & 240, e >> 8 & 15 | e >> 4 & 240, e >> 4 & 15 | e & 240, ((e & 15) << 4 | e & 15) / 255) : null) : (e = Zh.exec(t)) ? new F(e[1], e[2], e[3], 1) : (e = Qh.exec(t)) ? new F(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, 1) : (e = eu.exec(t)) ? ht(e[1], e[2], e[3], e[4]) : (e = tu.exec(t)) ? ht(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, e[4]) : (e = iu.exec(t)) ? un(e[1], e[2] / 100, e[3] / 100, 1) : (e = nu.exec(t)) ? un(e[1], e[2] / 100, e[3] / 100, e[4]) : sn.hasOwnProperty(t) ? cn(sn[t]) : t === "transparent" ? new F(NaN, NaN, NaN, 0) : null;
6800
6891
  }
6801
6892
  function cn(t) {
6802
6893
  return new F(t >> 16 & 255, t >> 8 & 255, t & 255, 1);
@@ -6804,11 +6895,11 @@ function cn(t) {
6804
6895
  function ht(t, e, i, n) {
6805
6896
  return n <= 0 && (t = e = i = NaN), new F(t, e, i, n);
6806
6897
  }
6807
- function Jh(t) {
6898
+ function ou(t) {
6808
6899
  return t instanceof rt || (t = it(t)), t ? (t = t.rgb(), new F(t.r, t.g, t.b, t.opacity)) : new F();
6809
6900
  }
6810
6901
  function fi(t, e, i, n) {
6811
- return arguments.length === 1 ? Jh(t) : new F(t, e, i, n ?? 1);
6902
+ return arguments.length === 1 ? ou(t) : new F(t, e, i, n ?? 1);
6812
6903
  }
6813
6904
  function F(t, e, i, n) {
6814
6905
  this.r = +t, this.g = +e, this.b = +i, this.opacity = +n;
@@ -6832,14 +6923,14 @@ ki(F, fi, Nr(rt, {
6832
6923
  hex: ln,
6833
6924
  // Deprecated! Use color.formatHex.
6834
6925
  formatHex: ln,
6835
- formatHex8: Kh,
6926
+ formatHex8: au,
6836
6927
  formatRgb: hn,
6837
6928
  toString: hn
6838
6929
  }));
6839
6930
  function ln() {
6840
6931
  return `#${xe(this.r)}${xe(this.g)}${xe(this.b)}`;
6841
6932
  }
6842
- function Kh() {
6933
+ function au() {
6843
6934
  return `#${xe(this.r)}${xe(this.g)}${xe(this.b)}${xe((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
6844
6935
  }
6845
6936
  function hn() {
@@ -6866,13 +6957,13 @@ function $r(t) {
6866
6957
  var e = t.r / 255, i = t.g / 255, n = t.b / 255, r = Math.min(e, i, n), s = Math.max(e, i, n), o = NaN, a = s - r, c = (s + r) / 2;
6867
6958
  return a ? (e === s ? o = (i - n) / a + (i < n) * 6 : i === s ? o = (n - e) / a + 2 : o = (e - i) / a + 4, a /= c < 0.5 ? s + r : 2 - s - r, o *= 60) : a = c > 0 && c < 1 ? 0 : o, new B(o, a, c, t.opacity);
6868
6959
  }
6869
- function Zh(t, e, i, n) {
6960
+ function cu(t, e, i, n) {
6870
6961
  return arguments.length === 1 ? $r(t) : new B(t, e, i, n ?? 1);
6871
6962
  }
6872
6963
  function B(t, e, i, n) {
6873
6964
  this.h = +t, this.s = +e, this.l = +i, this.opacity = +n;
6874
6965
  }
6875
- ki(B, Zh, Nr(rt, {
6966
+ ki(B, cu, Nr(rt, {
6876
6967
  brighter(t) {
6877
6968
  return t = t == null ? Mt : Math.pow(Mt, t), new B(this.h, this.s, this.l * t, this.opacity);
6878
6969
  },
@@ -6882,9 +6973,9 @@ ki(B, Zh, Nr(rt, {
6882
6973
  rgb() {
6883
6974
  var t = this.h % 360 + (this.h < 0) * 360, e = isNaN(t) || isNaN(this.s) ? 0 : this.s, i = this.l, n = i + (i < 0.5 ? i : 1 - i) * e, r = 2 * i - n;
6884
6975
  return new F(
6885
- qt(t >= 240 ? t - 240 : t + 120, r, n),
6886
- qt(t, r, n),
6887
- qt(t < 120 ? t + 240 : t - 120, r, n),
6976
+ Xt(t >= 240 ? t - 240 : t + 120, r, n),
6977
+ Xt(t, r, n),
6978
+ Xt(t < 120 ? t + 240 : t - 120, r, n),
6888
6979
  this.opacity
6889
6980
  );
6890
6981
  },
@@ -6905,31 +6996,31 @@ function fn(t) {
6905
6996
  function ut(t) {
6906
6997
  return Math.max(0, Math.min(1, t || 0));
6907
6998
  }
6908
- function qt(t, e, i) {
6999
+ function Xt(t, e, i) {
6909
7000
  return (t < 60 ? e + (i - e) * t / 60 : t < 180 ? i : t < 240 ? e + (i - e) * (240 - t) / 60 : e) * 255;
6910
7001
  }
6911
7002
  const Gr = (t) => () => t;
6912
- function Qh(t, e) {
7003
+ function lu(t, e) {
6913
7004
  return function(i) {
6914
7005
  return t + i * e;
6915
7006
  };
6916
7007
  }
6917
- function eu(t, e, i) {
7008
+ function hu(t, e, i) {
6918
7009
  return t = Math.pow(t, i), e = Math.pow(e, i) - t, i = 1 / i, function(n) {
6919
7010
  return Math.pow(t + n * e, i);
6920
7011
  };
6921
7012
  }
6922
- function tu(t) {
7013
+ function uu(t) {
6923
7014
  return (t = +t) == 1 ? Ur : function(e, i) {
6924
- return i - e ? eu(e, i, t) : Gr(isNaN(e) ? i : e);
7015
+ return i - e ? hu(e, i, t) : Gr(isNaN(e) ? i : e);
6925
7016
  };
6926
7017
  }
6927
7018
  function Ur(t, e) {
6928
7019
  var i = e - t;
6929
- return i ? Qh(t, i) : Gr(isNaN(t) ? e : t);
7020
+ return i ? lu(t, i) : Gr(isNaN(t) ? e : t);
6930
7021
  }
6931
7022
  const dn = (function t(e) {
6932
- var i = tu(e);
7023
+ var i = uu(e);
6933
7024
  function n(r, s) {
6934
7025
  var o = i((r = fi(r)).r, (s = fi(s)).r), a = i(r.g, s.g), c = i(r.b, s.b), l = Ur(r.opacity, s.opacity);
6935
7026
  return function(h) {
@@ -6944,21 +7035,21 @@ function oe(t, e) {
6944
7035
  };
6945
7036
  }
6946
7037
  var di = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, Jt = new RegExp(di.source, "g");
6947
- function iu(t) {
7038
+ function fu(t) {
6948
7039
  return function() {
6949
7040
  return t;
6950
7041
  };
6951
7042
  }
6952
- function nu(t) {
7043
+ function du(t) {
6953
7044
  return function(e) {
6954
7045
  return t(e) + "";
6955
7046
  };
6956
7047
  }
6957
- function ru(t, e) {
7048
+ function pu(t, e) {
6958
7049
  var i = di.lastIndex = Jt.lastIndex = 0, n, r, s, o = -1, a = [], c = [];
6959
7050
  for (t = t + "", e = e + ""; (n = di.exec(t)) && (r = Jt.exec(e)); )
6960
7051
  (s = r.index) > i && (s = e.slice(i, s), a[o] ? a[o] += s : a[++o] = s), (n = n[0]) === (r = r[0]) ? a[o] ? a[o] += r : a[++o] = r : (a[++o] = null, c.push({ i: o, x: oe(n, r) })), i = Jt.lastIndex;
6961
- return i < e.length && (s = e.slice(i), a[o] ? a[o] += s : a[++o] = s), a.length < 2 ? c[0] ? nu(c[0].x) : iu(e) : (e = c.length, function(l) {
7052
+ return i < e.length && (s = e.slice(i), a[o] ? a[o] += s : a[++o] = s), a.length < 2 ? c[0] ? du(c[0].x) : fu(e) : (e = c.length, function(l) {
6962
7053
  for (var h = 0, u; h < e; ++h) a[(u = c[h]).i] = u.x(l);
6963
7054
  return a.join("");
6964
7055
  });
@@ -6983,11 +7074,11 @@ function Hr(t, e, i, n, r, s) {
6983
7074
  };
6984
7075
  }
6985
7076
  var ft;
6986
- function su(t) {
7077
+ function gu(t) {
6987
7078
  const e = new (typeof DOMMatrix == "function" ? DOMMatrix : WebKitCSSMatrix)(t + "");
6988
7079
  return e.isIdentity ? pi : Hr(e.a, e.b, e.c, e.d, e.e, e.f);
6989
7080
  }
6990
- function ou(t) {
7081
+ function mu(t) {
6991
7082
  return t == null || (ft || (ft = document.createElementNS("http://www.w3.org/2000/svg", "g")), ft.setAttribute("transform", t), !(t = ft.transform.baseVal.consolidate())) ? pi : (t = t.matrix, Hr(t.a, t.b, t.c, t.d, t.e, t.f));
6992
7083
  }
6993
7084
  function Yr(t, e, i, n) {
@@ -7020,8 +7111,8 @@ function Yr(t, e, i, n) {
7020
7111
  };
7021
7112
  };
7022
7113
  }
7023
- var au = Yr(su, "px, ", "px)", "deg)"), cu = Yr(ou, ", ", ")", ")");
7024
- function lu(t, e) {
7114
+ var vu = Yr(gu, "px, ", "px)", "deg)"), xu = Yr(mu, ", ", ")", ")");
7115
+ function yu(t, e) {
7025
7116
  var i, n;
7026
7117
  return function() {
7027
7118
  var r = Q(this, t), s = r.tween;
@@ -7036,7 +7127,7 @@ function lu(t, e) {
7036
7127
  r.tween = n;
7037
7128
  };
7038
7129
  }
7039
- function hu(t, e, i) {
7130
+ function _u(t, e, i) {
7040
7131
  var n, r;
7041
7132
  if (typeof i != "function") throw new Error();
7042
7133
  return function() {
@@ -7053,7 +7144,7 @@ function hu(t, e, i) {
7053
7144
  s.tween = r;
7054
7145
  };
7055
7146
  }
7056
- function uu(t, e) {
7147
+ function wu(t, e) {
7057
7148
  var i = this._id;
7058
7149
  if (t += "", arguments.length < 2) {
7059
7150
  for (var n = W(this.node(), i).tween, r = 0, s = n.length, o; r < s; ++r)
@@ -7061,7 +7152,7 @@ function uu(t, e) {
7061
7152
  return o.value;
7062
7153
  return null;
7063
7154
  }
7064
- return this.each((e == null ? lu : hu)(i, t, e));
7155
+ return this.each((e == null ? yu : _u)(i, t, e));
7065
7156
  }
7066
7157
  function Fi(t, e, i) {
7067
7158
  var n = t._id;
@@ -7074,141 +7165,141 @@ function Fi(t, e, i) {
7074
7165
  }
7075
7166
  function Br(t, e) {
7076
7167
  var i;
7077
- return (typeof e == "number" ? oe : e instanceof it ? dn : (i = it(e)) ? (e = i, dn) : ru)(t, e);
7168
+ return (typeof e == "number" ? oe : e instanceof it ? dn : (i = it(e)) ? (e = i, dn) : pu)(t, e);
7078
7169
  }
7079
- function fu(t) {
7170
+ function Su(t) {
7080
7171
  return function() {
7081
7172
  this.removeAttribute(t);
7082
7173
  };
7083
7174
  }
7084
- function du(t) {
7175
+ function bu(t) {
7085
7176
  return function() {
7086
7177
  this.removeAttributeNS(t.space, t.local);
7087
7178
  };
7088
7179
  }
7089
- function pu(t, e, i) {
7180
+ function Cu(t, e, i) {
7090
7181
  var n, r = i + "", s;
7091
7182
  return function() {
7092
7183
  var o = this.getAttribute(t);
7093
7184
  return o === r ? null : o === n ? s : s = e(n = o, i);
7094
7185
  };
7095
7186
  }
7096
- function gu(t, e, i) {
7187
+ function Iu(t, e, i) {
7097
7188
  var n, r = i + "", s;
7098
7189
  return function() {
7099
7190
  var o = this.getAttributeNS(t.space, t.local);
7100
7191
  return o === r ? null : o === n ? s : s = e(n = o, i);
7101
7192
  };
7102
7193
  }
7103
- function mu(t, e, i) {
7194
+ function Au(t, e, i) {
7104
7195
  var n, r, s;
7105
7196
  return function() {
7106
7197
  var o, a = i(this), c;
7107
7198
  return a == null ? void this.removeAttribute(t) : (o = this.getAttribute(t), c = a + "", o === c ? null : o === n && c === r ? s : (r = c, s = e(n = o, a)));
7108
7199
  };
7109
7200
  }
7110
- function vu(t, e, i) {
7201
+ function Tu(t, e, i) {
7111
7202
  var n, r, s;
7112
7203
  return function() {
7113
7204
  var o, a = i(this), c;
7114
7205
  return a == null ? void this.removeAttributeNS(t.space, t.local) : (o = this.getAttributeNS(t.space, t.local), c = a + "", o === c ? null : o === n && c === r ? s : (r = c, s = e(n = o, a)));
7115
7206
  };
7116
7207
  }
7117
- function xu(t, e) {
7118
- var i = zt(t), n = i === "transform" ? cu : Br;
7119
- return this.attrTween(t, typeof e == "function" ? (i.local ? vu : mu)(i, n, Fi(this, "attr." + t, e)) : e == null ? (i.local ? du : fu)(i) : (i.local ? gu : pu)(i, n, e));
7208
+ function Ou(t, e) {
7209
+ var i = zt(t), n = i === "transform" ? xu : Br;
7210
+ return this.attrTween(t, typeof e == "function" ? (i.local ? Tu : Au)(i, n, Fi(this, "attr." + t, e)) : e == null ? (i.local ? bu : Su)(i) : (i.local ? Iu : Cu)(i, n, e));
7120
7211
  }
7121
- function yu(t, e) {
7212
+ function Pu(t, e) {
7122
7213
  return function(i) {
7123
7214
  this.setAttribute(t, e.call(this, i));
7124
7215
  };
7125
7216
  }
7126
- function _u(t, e) {
7217
+ function Mu(t, e) {
7127
7218
  return function(i) {
7128
7219
  this.setAttributeNS(t.space, t.local, e.call(this, i));
7129
7220
  };
7130
7221
  }
7131
- function wu(t, e) {
7222
+ function Eu(t, e) {
7132
7223
  var i, n;
7133
7224
  function r() {
7134
7225
  var s = e.apply(this, arguments);
7135
- return s !== n && (i = (n = s) && _u(t, s)), i;
7226
+ return s !== n && (i = (n = s) && Mu(t, s)), i;
7136
7227
  }
7137
7228
  return r._value = e, r;
7138
7229
  }
7139
- function Su(t, e) {
7230
+ function Lu(t, e) {
7140
7231
  var i, n;
7141
7232
  function r() {
7142
7233
  var s = e.apply(this, arguments);
7143
- return s !== n && (i = (n = s) && yu(t, s)), i;
7234
+ return s !== n && (i = (n = s) && Pu(t, s)), i;
7144
7235
  }
7145
7236
  return r._value = e, r;
7146
7237
  }
7147
- function bu(t, e) {
7238
+ function ku(t, e) {
7148
7239
  var i = "attr." + t;
7149
7240
  if (arguments.length < 2) return (i = this.tween(i)) && i._value;
7150
7241
  if (e == null) return this.tween(i, null);
7151
7242
  if (typeof e != "function") throw new Error();
7152
7243
  var n = zt(t);
7153
- return this.tween(i, (n.local ? wu : Su)(n, e));
7244
+ return this.tween(i, (n.local ? Eu : Lu)(n, e));
7154
7245
  }
7155
- function Cu(t, e) {
7246
+ function Fu(t, e) {
7156
7247
  return function() {
7157
7248
  Li(this, t).delay = +e.apply(this, arguments);
7158
7249
  };
7159
7250
  }
7160
- function Iu(t, e) {
7251
+ function Ru(t, e) {
7161
7252
  return e = +e, function() {
7162
7253
  Li(this, t).delay = e;
7163
7254
  };
7164
7255
  }
7165
- function Au(t) {
7256
+ function Du(t) {
7166
7257
  var e = this._id;
7167
- return arguments.length ? this.each((typeof t == "function" ? Cu : Iu)(e, t)) : W(this.node(), e).delay;
7258
+ return arguments.length ? this.each((typeof t == "function" ? Fu : Ru)(e, t)) : W(this.node(), e).delay;
7168
7259
  }
7169
- function Tu(t, e) {
7260
+ function zu(t, e) {
7170
7261
  return function() {
7171
7262
  Q(this, t).duration = +e.apply(this, arguments);
7172
7263
  };
7173
7264
  }
7174
- function Ou(t, e) {
7265
+ function Nu(t, e) {
7175
7266
  return e = +e, function() {
7176
7267
  Q(this, t).duration = e;
7177
7268
  };
7178
7269
  }
7179
- function Pu(t) {
7270
+ function $u(t) {
7180
7271
  var e = this._id;
7181
- return arguments.length ? this.each((typeof t == "function" ? Tu : Ou)(e, t)) : W(this.node(), e).duration;
7272
+ return arguments.length ? this.each((typeof t == "function" ? zu : Nu)(e, t)) : W(this.node(), e).duration;
7182
7273
  }
7183
- function Mu(t, e) {
7274
+ function Gu(t, e) {
7184
7275
  if (typeof e != "function") throw new Error();
7185
7276
  return function() {
7186
7277
  Q(this, t).ease = e;
7187
7278
  };
7188
7279
  }
7189
- function Eu(t) {
7280
+ function Uu(t) {
7190
7281
  var e = this._id;
7191
- return arguments.length ? this.each(Mu(e, t)) : W(this.node(), e).ease;
7282
+ return arguments.length ? this.each(Gu(e, t)) : W(this.node(), e).ease;
7192
7283
  }
7193
- function Lu(t, e) {
7284
+ function Hu(t, e) {
7194
7285
  return function() {
7195
7286
  var i = e.apply(this, arguments);
7196
7287
  if (typeof i != "function") throw new Error();
7197
7288
  Q(this, t).ease = i;
7198
7289
  };
7199
7290
  }
7200
- function ku(t) {
7291
+ function Yu(t) {
7201
7292
  if (typeof t != "function") throw new Error();
7202
- return this.each(Lu(this._id, t));
7293
+ return this.each(Hu(this._id, t));
7203
7294
  }
7204
- function Fu(t) {
7295
+ function Bu(t) {
7205
7296
  typeof t != "function" && (t = br(t));
7206
7297
  for (var e = this._groups, i = e.length, n = new Array(i), r = 0; r < i; ++r)
7207
7298
  for (var s = e[r], o = s.length, a = n[r] = [], c, l = 0; l < o; ++l)
7208
7299
  (c = s[l]) && t.call(c, c.__data__, l, s) && a.push(c);
7209
7300
  return new se(n, this._parents, this._name, this._id);
7210
7301
  }
7211
- function Ru(t) {
7302
+ function Wu(t) {
7212
7303
  if (t._id !== this._id) throw new Error();
7213
7304
  for (var e = this._groups, i = t._groups, n = e.length, r = i.length, s = Math.min(n, r), o = new Array(n), a = 0; a < s; ++a)
7214
7305
  for (var c = e[a], l = i[a], h = c.length, u = o[a] = new Array(h), f, d = 0; d < h; ++d)
@@ -7217,34 +7308,34 @@ function Ru(t) {
7217
7308
  o[a] = e[a];
7218
7309
  return new se(o, this._parents, this._name, this._id);
7219
7310
  }
7220
- function Du(t) {
7311
+ function ju(t) {
7221
7312
  return (t + "").trim().split(/^|\s+/).every(function(e) {
7222
7313
  var i = e.indexOf(".");
7223
7314
  return i >= 0 && (e = e.slice(0, i)), !e || e === "start";
7224
7315
  });
7225
7316
  }
7226
- function zu(t, e, i) {
7227
- var n, r, s = Du(e) ? Li : Q;
7317
+ function qu(t, e, i) {
7318
+ var n, r, s = ju(e) ? Li : Q;
7228
7319
  return function() {
7229
7320
  var o = s(this, t), a = o.on;
7230
7321
  a !== n && (r = (n = a).copy()).on(e, i), o.on = r;
7231
7322
  };
7232
7323
  }
7233
- function Nu(t, e) {
7324
+ function Vu(t, e) {
7234
7325
  var i = this._id;
7235
- return arguments.length < 2 ? W(this.node(), i).on.on(t) : this.each(zu(i, t, e));
7326
+ return arguments.length < 2 ? W(this.node(), i).on.on(t) : this.each(qu(i, t, e));
7236
7327
  }
7237
- function $u(t) {
7328
+ function Xu(t) {
7238
7329
  return function() {
7239
7330
  var e = this.parentNode;
7240
7331
  for (var i in this.__transition) if (+i !== t) return;
7241
7332
  e && e.removeChild(this);
7242
7333
  };
7243
7334
  }
7244
- function Gu() {
7245
- return this.on("end.remove", $u(this._id));
7335
+ function Ju() {
7336
+ return this.on("end.remove", Xu(this._id));
7246
7337
  }
7247
- function Uu(t) {
7338
+ function Ku(t) {
7248
7339
  var e = this._name, i = this._id;
7249
7340
  typeof t != "function" && (t = Pi(t));
7250
7341
  for (var n = this._groups, r = n.length, s = new Array(r), o = 0; o < r; ++o)
@@ -7252,7 +7343,7 @@ function Uu(t) {
7252
7343
  (h = a[f]) && (u = t.call(h, h.__data__, f, a)) && ("__data__" in h && (u.__data__ = h.__data__), l[f] = u, $t(l[f], e, i, f, l, W(h, i)));
7253
7344
  return new se(s, this._parents, e, i);
7254
7345
  }
7255
- function Hu(t) {
7346
+ function Zu(t) {
7256
7347
  var e = this._name, i = this._id;
7257
7348
  typeof t != "function" && (t = Sr(t));
7258
7349
  for (var n = this._groups, r = n.length, s = [], o = [], a = 0; a < r; ++a)
@@ -7264,11 +7355,11 @@ function Hu(t) {
7264
7355
  }
7265
7356
  return new se(s, o, e, i);
7266
7357
  }
7267
- var Yu = nt.prototype.constructor;
7268
- function Bu() {
7269
- return new Yu(this._groups, this._parents);
7358
+ var Qu = nt.prototype.constructor;
7359
+ function ef() {
7360
+ return new Qu(this._groups, this._parents);
7270
7361
  }
7271
- function Wu(t, e) {
7362
+ function tf(t, e) {
7272
7363
  var i, n, r;
7273
7364
  return function() {
7274
7365
  var s = $e(this, t), o = (this.style.removeProperty(t), $e(this, t));
@@ -7280,86 +7371,86 @@ function Wr(t) {
7280
7371
  this.style.removeProperty(t);
7281
7372
  };
7282
7373
  }
7283
- function ju(t, e, i) {
7374
+ function nf(t, e, i) {
7284
7375
  var n, r = i + "", s;
7285
7376
  return function() {
7286
7377
  var o = $e(this, t);
7287
7378
  return o === r ? null : o === n ? s : s = e(n = o, i);
7288
7379
  };
7289
7380
  }
7290
- function Vu(t, e, i) {
7381
+ function rf(t, e, i) {
7291
7382
  var n, r, s;
7292
7383
  return function() {
7293
7384
  var o = $e(this, t), a = i(this), c = a + "";
7294
7385
  return a == null && (c = a = (this.style.removeProperty(t), $e(this, t))), o === c ? null : o === n && c === r ? s : (r = c, s = e(n = o, a));
7295
7386
  };
7296
7387
  }
7297
- function Xu(t, e) {
7388
+ function sf(t, e) {
7298
7389
  var i, n, r, s = "style." + e, o = "end." + s, a;
7299
7390
  return function() {
7300
7391
  var c = Q(this, t), l = c.on, h = c.value[s] == null ? a || (a = Wr(e)) : void 0;
7301
7392
  (l !== i || r !== h) && (n = (i = l).copy()).on(o, r = h), c.on = n;
7302
7393
  };
7303
7394
  }
7304
- function qu(t, e, i) {
7305
- var n = (t += "") == "transform" ? au : Br;
7306
- return e == null ? this.styleTween(t, Wu(t, n)).on("end.style." + t, Wr(t)) : typeof e == "function" ? this.styleTween(t, Vu(t, n, Fi(this, "style." + t, e))).each(Xu(this._id, t)) : this.styleTween(t, ju(t, n, e), i).on("end.style." + t, null);
7395
+ function of(t, e, i) {
7396
+ var n = (t += "") == "transform" ? vu : Br;
7397
+ return e == null ? this.styleTween(t, tf(t, n)).on("end.style." + t, Wr(t)) : typeof e == "function" ? this.styleTween(t, rf(t, n, Fi(this, "style." + t, e))).each(sf(this._id, t)) : this.styleTween(t, nf(t, n, e), i).on("end.style." + t, null);
7307
7398
  }
7308
- function Ju(t, e, i) {
7399
+ function af(t, e, i) {
7309
7400
  return function(n) {
7310
7401
  this.style.setProperty(t, e.call(this, n), i);
7311
7402
  };
7312
7403
  }
7313
- function Ku(t, e, i) {
7404
+ function cf(t, e, i) {
7314
7405
  var n, r;
7315
7406
  function s() {
7316
7407
  var o = e.apply(this, arguments);
7317
- return o !== r && (n = (r = o) && Ju(t, o, i)), n;
7408
+ return o !== r && (n = (r = o) && af(t, o, i)), n;
7318
7409
  }
7319
7410
  return s._value = e, s;
7320
7411
  }
7321
- function Zu(t, e, i) {
7412
+ function lf(t, e, i) {
7322
7413
  var n = "style." + (t += "");
7323
7414
  if (arguments.length < 2) return (n = this.tween(n)) && n._value;
7324
7415
  if (e == null) return this.tween(n, null);
7325
7416
  if (typeof e != "function") throw new Error();
7326
- return this.tween(n, Ku(t, e, i ?? ""));
7417
+ return this.tween(n, cf(t, e, i ?? ""));
7327
7418
  }
7328
- function Qu(t) {
7419
+ function hf(t) {
7329
7420
  return function() {
7330
7421
  this.textContent = t;
7331
7422
  };
7332
7423
  }
7333
- function ef(t) {
7424
+ function uf(t) {
7334
7425
  return function() {
7335
7426
  var e = t(this);
7336
7427
  this.textContent = e ?? "";
7337
7428
  };
7338
7429
  }
7339
- function tf(t) {
7340
- return this.tween("text", typeof t == "function" ? ef(Fi(this, "text", t)) : Qu(t == null ? "" : t + ""));
7430
+ function ff(t) {
7431
+ return this.tween("text", typeof t == "function" ? uf(Fi(this, "text", t)) : hf(t == null ? "" : t + ""));
7341
7432
  }
7342
- function nf(t) {
7433
+ function df(t) {
7343
7434
  return function(e) {
7344
7435
  this.textContent = t.call(this, e);
7345
7436
  };
7346
7437
  }
7347
- function rf(t) {
7438
+ function pf(t) {
7348
7439
  var e, i;
7349
7440
  function n() {
7350
7441
  var r = t.apply(this, arguments);
7351
- return r !== i && (e = (i = r) && nf(r)), e;
7442
+ return r !== i && (e = (i = r) && df(r)), e;
7352
7443
  }
7353
7444
  return n._value = t, n;
7354
7445
  }
7355
- function sf(t) {
7446
+ function gf(t) {
7356
7447
  var e = "text";
7357
7448
  if (arguments.length < 1) return (e = this.tween(e)) && e._value;
7358
7449
  if (t == null) return this.tween(e, null);
7359
7450
  if (typeof t != "function") throw new Error();
7360
- return this.tween(e, rf(t));
7451
+ return this.tween(e, pf(t));
7361
7452
  }
7362
- function of() {
7453
+ function mf() {
7363
7454
  for (var t = this._name, e = this._id, i = jr(), n = this._groups, r = n.length, s = 0; s < r; ++s)
7364
7455
  for (var o = n[s], a = o.length, c, l = 0; l < a; ++l)
7365
7456
  if (c = o[l]) {
@@ -7373,7 +7464,7 @@ function of() {
7373
7464
  }
7374
7465
  return new se(n, this._parents, t, i);
7375
7466
  }
7376
- function af() {
7467
+ function vf() {
7377
7468
  var t, e, i = this, n = i._id, r = i.size();
7378
7469
  return new Promise(function(s, o) {
7379
7470
  var a = { value: o }, c = { value: function() {
@@ -7385,73 +7476,73 @@ function af() {
7385
7476
  }), r === 0 && s();
7386
7477
  });
7387
7478
  }
7388
- var cf = 0;
7479
+ var xf = 0;
7389
7480
  function se(t, e, i, n) {
7390
7481
  this._groups = t, this._parents = e, this._name = i, this._id = n;
7391
7482
  }
7392
7483
  function jr() {
7393
- return ++cf;
7484
+ return ++xf;
7394
7485
  }
7395
7486
  var ie = nt.prototype;
7396
7487
  se.prototype = {
7397
7488
  constructor: se,
7398
- select: Uu,
7399
- selectAll: Hu,
7489
+ select: Ku,
7490
+ selectAll: Zu,
7400
7491
  selectChild: ie.selectChild,
7401
7492
  selectChildren: ie.selectChildren,
7402
- filter: Fu,
7403
- merge: Ru,
7404
- selection: Bu,
7405
- transition: of,
7493
+ filter: Bu,
7494
+ merge: Wu,
7495
+ selection: ef,
7496
+ transition: mf,
7406
7497
  call: ie.call,
7407
7498
  nodes: ie.nodes,
7408
7499
  node: ie.node,
7409
7500
  size: ie.size,
7410
7501
  empty: ie.empty,
7411
7502
  each: ie.each,
7412
- on: Nu,
7413
- attr: xu,
7414
- attrTween: bu,
7415
- style: qu,
7416
- styleTween: Zu,
7417
- text: tf,
7418
- textTween: sf,
7419
- remove: Gu,
7420
- tween: uu,
7421
- delay: Au,
7422
- duration: Pu,
7423
- ease: Eu,
7424
- easeVarying: ku,
7425
- end: af,
7503
+ on: Vu,
7504
+ attr: Ou,
7505
+ attrTween: ku,
7506
+ style: of,
7507
+ styleTween: lf,
7508
+ text: ff,
7509
+ textTween: gf,
7510
+ remove: Ju,
7511
+ tween: wu,
7512
+ delay: Du,
7513
+ duration: $u,
7514
+ ease: Uu,
7515
+ easeVarying: Yu,
7516
+ end: vf,
7426
7517
  [Symbol.iterator]: ie[Symbol.iterator]
7427
7518
  };
7428
- function lf(t) {
7519
+ function yf(t) {
7429
7520
  return ((t *= 2) <= 1 ? t * t * t : (t -= 2) * t * t + 2) / 2;
7430
7521
  }
7431
- var hf = {
7522
+ var _f = {
7432
7523
  time: null,
7433
7524
  // Set on use.
7434
7525
  delay: 0,
7435
7526
  duration: 250,
7436
- ease: lf
7527
+ ease: yf
7437
7528
  };
7438
- function uf(t, e) {
7529
+ function wf(t, e) {
7439
7530
  for (var i; !(i = t.__transition) || !(i = i[e]); )
7440
7531
  if (!(t = t.parentNode))
7441
7532
  throw new Error(`transition ${e} not found`);
7442
7533
  return i;
7443
7534
  }
7444
- function ff(t) {
7535
+ function Sf(t) {
7445
7536
  var e, i;
7446
- t instanceof se ? (e = t._id, t = t._name) : (e = jr(), (i = hf).time = Ei(), t = t == null ? null : t + "");
7537
+ t instanceof se ? (e = t._id, t = t._name) : (e = jr(), (i = _f).time = Ei(), t = t == null ? null : t + "");
7447
7538
  for (var n = this._groups, r = n.length, s = 0; s < r; ++s)
7448
7539
  for (var o = n[s], a = o.length, c, l = 0; l < a; ++l)
7449
- (c = o[l]) && $t(c, t, e, l, o, i || uf(c, e));
7540
+ (c = o[l]) && $t(c, t, e, l, o, i || wf(c, e));
7450
7541
  return new se(n, this._parents, t, e);
7451
7542
  }
7452
- nt.prototype.interrupt = Gh;
7453
- nt.prototype.transition = ff;
7454
- class Yf extends Oi {
7543
+ nt.prototype.interrupt = Jh;
7544
+ nt.prototype.transition = Sf;
7545
+ class Wf extends Oi {
7455
7546
  name = "viewport";
7456
7547
  minScale;
7457
7548
  maxScale;
@@ -7483,7 +7574,7 @@ class Yf extends Oi {
7483
7574
  }, r.on("pointerdown", this._stageDown), this.d3Zoom = Zr().scaleExtent([this.minScale, this.maxScale]).filter((a) => a.button || a.ctrlKey && a.type !== "wheel" ? !1 : a.type === "wheel" || a.type === "dblclick" ? !0 : this._dragEnabled && !this._hitObject).on("zoom", (a) => {
7484
7575
  const { x: c, y: l, k: h } = a.transform;
7485
7576
  s.scale.set(h), s.position.set(c, l);
7486
- }), this.d3Sel = Oh(n), this.d3Sel.call(this.d3Zoom);
7577
+ }), this.d3Sel = Nh(n), this.d3Sel.call(this.d3Zoom);
7487
7578
  const o = new Ut(s.scale.x, s.x, s.y);
7488
7579
  this.d3Sel.call(this.d3Zoom.transform, o), e.setCameraHandler((a) => {
7489
7580
  if (!this.d3Sel || !this.d3Zoom) {
@@ -7524,7 +7615,7 @@ class Yf extends Oi {
7524
7615
  this.d3Sel.call(this.d3Zoom.transform, new Ut(n, e, i));
7525
7616
  }
7526
7617
  }
7527
- class Bf extends Ue {
7618
+ class jf extends Ue {
7528
7619
  name = "node-editor";
7529
7620
  targetType = "node";
7530
7621
  get highlightOptions() {
@@ -7549,7 +7640,7 @@ class Bf extends Ue {
7549
7640
  e.setOptions({ x: e.x, y: e.y }), i.lines?.redrawLinesForNode(e.id);
7550
7641
  }
7551
7642
  }
7552
- class Wf extends Oe {
7643
+ class qf extends Oe {
7553
7644
  name = "line-editor";
7554
7645
  editStates = /* @__PURE__ */ new Map();
7555
7646
  selectedLineId = null;
@@ -7709,7 +7800,7 @@ class Wf extends Oe {
7709
7800
  return r.length - 1;
7710
7801
  }
7711
7802
  }
7712
- class jf extends Ue {
7803
+ class Vf extends Ue {
7713
7804
  name = "text-editor";
7714
7805
  targetType = "text";
7715
7806
  step;
@@ -7736,7 +7827,7 @@ class jf extends Ue {
7736
7827
  e.setOptions({ x: i, y: n });
7737
7828
  }
7738
7829
  }
7739
- class Vf extends Ue {
7830
+ class Xf extends Ue {
7740
7831
  name = "rect-drag";
7741
7832
  targetType = "rect";
7742
7833
  step;
@@ -7770,7 +7861,7 @@ class Vf extends Ue {
7770
7861
  };
7771
7862
  }
7772
7863
  }
7773
- class Xf extends Oe {
7864
+ class Jf extends Oe {
7774
7865
  name = "rect-resize";
7775
7866
  resizeHandles;
7776
7867
  activeRect = null;
@@ -7905,7 +7996,7 @@ class Xf extends Oe {
7905
7996
  c < h && (c = h), l < h && (l = h), e.setOptions({ x: o, y: a, width: c, height: l }), this.drawResizeHandles(e);
7906
7997
  }
7907
7998
  }
7908
- class qf extends Ue {
7999
+ class Kf extends Ue {
7909
8000
  name = "image-editor";
7910
8001
  targetType = "image";
7911
8002
  get highlightOptions() {
@@ -7937,7 +8028,7 @@ class qf extends Ue {
7937
8028
  };
7938
8029
  }
7939
8030
  }
7940
- class Jf extends Ue {
8031
+ class Zf extends Ue {
7941
8032
  name = "fence-editor";
7942
8033
  targetType = "fence";
7943
8034
  /** 围栏不显示选中高亮框(由 FenceEndpointPlugin 提供可视化) */
@@ -7971,7 +8062,7 @@ class Jf extends Ue {
7971
8062
  };
7972
8063
  }
7973
8064
  }
7974
- class Kf extends Oe {
8065
+ class Qf extends Oe {
7975
8066
  name = "fence-endpoint";
7976
8067
  handleContainer;
7977
8068
  activeFence = null;
@@ -8164,7 +8255,7 @@ class Kf extends Oe {
8164
8255
  e.setOptions({ height: h }), this.drawHandles(e);
8165
8256
  }
8166
8257
  }
8167
- class Zf extends Ue {
8258
+ class ed extends Ue {
8168
8259
  name = "wave-editor";
8169
8260
  targetType = "wave";
8170
8261
  get highlightOptions() {
@@ -8196,7 +8287,7 @@ class Zf extends Ue {
8196
8287
  };
8197
8288
  }
8198
8289
  }
8199
- class Qf extends Oe {
8290
+ class td extends Oe {
8200
8291
  name = "wave-resize";
8201
8292
  resizeHandles;
8202
8293
  activeWave = null;
@@ -8339,7 +8430,7 @@ class Qf extends Oe {
8339
8430
  c < h && (c = h), l < h && (l = h), e.setOptions({ width: c, height: l }), this.drawResizeHandles(e);
8340
8431
  }
8341
8432
  }
8342
- class ed extends Pe {
8433
+ class id extends Pe {
8343
8434
  name = "node-runtime";
8344
8435
  targetType = "node";
8345
8436
  getCollection(e) {
@@ -8349,7 +8440,7 @@ class ed extends Pe {
8349
8440
  return e.id;
8350
8441
  }
8351
8442
  }
8352
- class td extends Pe {
8443
+ class nd extends Pe {
8353
8444
  name = "line-runtime";
8354
8445
  targetType = "line";
8355
8446
  getCollection(e) {
@@ -8359,7 +8450,7 @@ class td extends Pe {
8359
8450
  return e.id;
8360
8451
  }
8361
8452
  }
8362
- class id extends Pe {
8453
+ class rd extends Pe {
8363
8454
  name = "text-runtime";
8364
8455
  targetType = "text";
8365
8456
  getCollection(e) {
@@ -8369,7 +8460,7 @@ class id extends Pe {
8369
8460
  return e.id;
8370
8461
  }
8371
8462
  }
8372
- class nd extends Pe {
8463
+ class sd extends Pe {
8373
8464
  name = "rect-runtime";
8374
8465
  targetType = "rect";
8375
8466
  getCollection(e) {
@@ -8379,7 +8470,7 @@ class nd extends Pe {
8379
8470
  return e.id;
8380
8471
  }
8381
8472
  }
8382
- class rd extends Pe {
8473
+ class od extends Pe {
8383
8474
  name = "image-runtime";
8384
8475
  targetType = "image";
8385
8476
  getCollection(e) {
@@ -8389,7 +8480,7 @@ class rd extends Pe {
8389
8480
  return e.id;
8390
8481
  }
8391
8482
  }
8392
- class sd extends Pe {
8483
+ class ad extends Pe {
8393
8484
  name = "fence-runtime";
8394
8485
  targetType = "fence";
8395
8486
  getCollection(e) {
@@ -8399,7 +8490,7 @@ class sd extends Pe {
8399
8490
  return e.id;
8400
8491
  }
8401
8492
  }
8402
- class od extends Pe {
8493
+ class cd extends Pe {
8403
8494
  name = "wave-runtime";
8404
8495
  targetType = "wave";
8405
8496
  getCollection(e) {
@@ -8515,7 +8606,7 @@ class Me extends Oi {
8515
8606
  return { x: Math.round(n.x / g), y: Math.round(n.y / g) };
8516
8607
  }
8517
8608
  }
8518
- class ad extends Me {
8609
+ class ld extends Me {
8519
8610
  name = "text-creator";
8520
8611
  _defaults = {};
8521
8612
  _previewId = null;
@@ -8567,7 +8658,7 @@ class ad extends Me {
8567
8658
  !e || !this._handlers || (e.off("globalpointermove", this._handlers.onMove), e.off("pointerdown", this._handlers.onDown), e.cursor = "default", this._handlers = null);
8568
8659
  }
8569
8660
  }
8570
- class cd extends Me {
8661
+ class hd extends Me {
8571
8662
  name = "rect-creator";
8572
8663
  _defaults = {};
8573
8664
  _previewId = null;
@@ -8624,7 +8715,7 @@ class cd extends Me {
8624
8715
  !e || !this._handlers || (e.off("pointerdown", this._handlers.onDown), e.off("globalpointermove", this._handlers.onMove), e.off("pointerup", this._handlers.onUp), e.off("pointerupoutside", this._handlers.onUp), e.cursor = "default", this._handlers = null);
8625
8716
  }
8626
8717
  }
8627
- class ld extends Me {
8718
+ class ud extends Me {
8628
8719
  name = "line-creator";
8629
8720
  _defaults = {};
8630
8721
  _previewId = null;
@@ -8682,7 +8773,7 @@ class ld extends Me {
8682
8773
  !e || !this._handlers || (e.off("pointerdown", this._handlers.onDown), e.off("globalpointermove", this._handlers.onMove), e.off("pointerup", this._handlers.onUp), e.off("pointerupoutside", this._handlers.onUp), e.cursor = "default", this._handlers = null);
8683
8774
  }
8684
8775
  }
8685
- class hd extends Me {
8776
+ class fd extends Me {
8686
8777
  name = "node-creator";
8687
8778
  _defaults = {};
8688
8779
  _previewId = null;
@@ -8754,7 +8845,7 @@ class hd extends Me {
8754
8845
  !e || !this._handlers || (e.off("globalpointermove", this._handlers.onMove), e.off("pointerdown", this._handlers.onDown), e.cursor = "default", this._handlers = null);
8755
8846
  }
8756
8847
  }
8757
- class ud extends Me {
8848
+ class dd extends Me {
8758
8849
  name = "fence-creator";
8759
8850
  _defaults = {};
8760
8851
  _previewId = null;
@@ -8804,7 +8895,7 @@ class ud extends Me {
8804
8895
  !e || !this._handlers || (e.off("globalpointermove", this._handlers.onMove), e.off("pointerdown", this._handlers.onDown), e.cursor = "default", this._handlers = null);
8805
8896
  }
8806
8897
  }
8807
- class fd extends Me {
8898
+ class pd extends Me {
8808
8899
  name = "wave-creator";
8809
8900
  _defaults = {};
8810
8901
  _previewId = null;
@@ -8854,7 +8945,7 @@ class fd extends Me {
8854
8945
  !e || !this._handlers || (e.off("globalpointermove", this._handlers.onMove), e.off("pointerdown", this._handlers.onDown), e.cursor = "default", this._handlers = null);
8855
8946
  }
8856
8947
  }
8857
- class dd extends Me {
8948
+ class gd extends Me {
8858
8949
  name = "image-creator";
8859
8950
  _defaults = {};
8860
8951
  _previewId = null;
@@ -8914,74 +9005,74 @@ export {
8914
9005
  Me as BaseCreatorPlugin,
8915
9006
  St as COS_ELEVATION,
8916
9007
  ar as ELEVATION,
8917
- ud as FenceCreatorPlugin,
8918
- Jf as FenceEditorPlugin,
8919
- Kf as FenceEndpointPlugin,
8920
- sd as FenceRuntimePlugin,
8921
- Xa as GroupElement,
9008
+ dd as FenceCreatorPlugin,
9009
+ Zf as FenceEditorPlugin,
9010
+ Qf as FenceEndpointPlugin,
9011
+ ad as FenceRuntimePlugin,
9012
+ Va as GroupElement,
8922
9013
  Nc as HitTestPlugin,
8923
9014
  ur as ISOMETRIC_SKEW_X,
8924
9015
  fr as ISOMETRIC_SKEW_Y,
8925
9016
  $c as IconManager,
8926
- dd as ImageCreatorPlugin,
8927
- qf as ImageEditorPlugin,
8928
- rd as ImageRuntimePlugin,
9017
+ gd as ImageCreatorPlugin,
9018
+ Kf as ImageEditorPlugin,
9019
+ od as ImageRuntimePlugin,
8929
9020
  Pe as InteractiveRuntimePlugin,
8930
9021
  Ja as LayerManager,
8931
- ld as LineCreatorPlugin,
8932
- Wf as LineEditorPlugin,
8933
- td as LineRuntimePlugin,
8934
- hd as NodeCreatorPlugin,
8935
- Bf as NodeEditorPlugin,
8936
- ed as NodeRuntimePlugin,
9022
+ ud as LineCreatorPlugin,
9023
+ qf as LineEditorPlugin,
9024
+ nd as LineRuntimePlugin,
9025
+ fd as NodeCreatorPlugin,
9026
+ jf as NodeEditorPlugin,
9027
+ id as NodeRuntimePlugin,
8937
9028
  Ti as PostProcessManager,
8938
- cd as RectCreatorPlugin,
8939
- Vf as RectDragPlugin,
8940
- Xf as RectResizePlugin,
8941
- nd as RectRuntimePlugin,
9029
+ hd as RectCreatorPlugin,
9030
+ Xf as RectDragPlugin,
9031
+ Jf as RectResizePlugin,
9032
+ sd as RectRuntimePlugin,
8942
9033
  we as SIN_ELEVATION,
8943
9034
  De as Scene,
8944
9035
  Oe as SceneAwarePlugin,
8945
9036
  Ue as SelectableEditorPlugin,
8946
- qc as SelectionHighlight,
8947
- Vc as StateManager,
8948
- xf as TILE_HDIAGONAL,
8949
- vf as TILE_HEIGHT,
9037
+ sl as SelectionHighlight,
9038
+ tl as StateManager,
9039
+ Of as TILE_HDIAGONAL,
9040
+ Tf as TILE_HEIGHT,
8950
9041
  g as TILE_SIZE,
8951
9042
  cr as TILE_VDIAGONAL,
8952
- mf as TILE_WIDTH,
8953
- ad as TextCreatorPlugin,
8954
- jf as TextEditorPlugin,
8955
- id as TextRuntimePlugin,
9043
+ Af as TILE_WIDTH,
9044
+ ld as TextCreatorPlugin,
9045
+ Vf as TextEditorPlugin,
9046
+ rd as TextRuntimePlugin,
8956
9047
  _r as Topology,
8957
- Yf as ViewportPlugin,
8958
- fd as WaveCreatorPlugin,
8959
- Zf as WaveEditorPlugin,
8960
- Qf as WaveResizePlugin,
8961
- od as WaveRuntimePlugin,
8962
- md as ZoomTransform,
9048
+ Wf as ViewportPlugin,
9049
+ pd as WaveCreatorPlugin,
9050
+ ed as WaveEditorPlugin,
9051
+ td as WaveResizePlugin,
9052
+ cd as WaveRuntimePlugin,
9053
+ xd as ZoomTransform,
8963
9054
  lr as calculateIsometricSkew,
8964
- yf as calculateIsometricTileDiagonals,
8965
- Rf as createBlinkStatePlugin,
8966
- Cf as createBloomPostProcess,
8967
- bf as createBlurPostProcess,
8968
- Df as createBounceStatePlugin,
8969
- zf as createBrightenStatePlugin,
8970
- Pf as createChromaticAberrationPostProcess,
8971
- If as createColorAdjustPostProcess,
8972
- Nf as createDarkenStatePlugin,
8973
- $f as createGlowStatePlugin,
8974
- Ef as createGodRaysPostProcess,
8975
- Lf as createGrayscalePostProcess,
8976
- Gf as createHeartbeatStatePlugin,
8977
- Ff as createInvertPostProcess,
8978
- Of as createNoisePostProcess,
8979
- Tf as createPixelatePostProcess,
8980
- Mf as createScanlinesPostProcess,
8981
- kf as createSharpenPostProcess,
8982
- Uf as createShimmerStatePlugin,
8983
- Hf as createTintStatePlugin,
8984
- Af as createVignettePostProcess,
9055
+ Pf as calculateIsometricTileDiagonals,
9056
+ Gc as createBlinkStatePlugin,
9057
+ Ff as createBloomPostProcess,
9058
+ kf as createBlurPostProcess,
9059
+ Uc as createBounceStatePlugin,
9060
+ Hc as createBrightenStatePlugin,
9061
+ $f as createChromaticAberrationPostProcess,
9062
+ Rf as createColorAdjustPostProcess,
9063
+ Yc as createDarkenStatePlugin,
9064
+ Vc as createGlowStatePlugin,
9065
+ Uf as createGodRaysPostProcess,
9066
+ Hf as createGrayscalePostProcess,
9067
+ Xc as createHeartbeatStatePlugin,
9068
+ Bf as createInvertPostProcess,
9069
+ Nf as createNoisePostProcess,
9070
+ zf as createPixelatePostProcess,
9071
+ Gf as createScanlinesPostProcess,
9072
+ Yf as createSharpenPostProcess,
9073
+ Qc as createShimmerStatePlugin,
9074
+ el as createTintStatePlugin,
9075
+ Df as createVignettePostProcess,
8985
9076
  _r as default,
8986
9077
  It as downloadFile,
8987
9078
  ba as findPath,
@@ -8989,11 +9080,11 @@ export {
8989
9080
  Ca as getBoundingBox,
8990
9081
  Ia as getBoundingBoxSize,
8991
9082
  Ta as getItemMetadata,
8992
- wf as isometricToWorld,
9083
+ Ef as isometricToWorld,
8993
9084
  Aa as normalizePositionFromOrigin,
8994
9085
  Ce as parseYaml,
8995
9086
  wa as pointToSegmentDist,
8996
- _f as projectToIsometric,
9087
+ Mf as projectToIsometric,
8997
9088
  Te as setItemMetadata,
8998
9089
  J as snapToTile,
8999
9090
  vr as sortByPosition,