geonodes-web-render 0.3.16 → 0.3.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/embed.css +1 -1
- package/dist/embed.js +520 -516
- package/dist/types/gn/components/GeometryNodesFlow.d.ts +1 -1
- package/package.json +1 -1
package/dist/embed.js
CHANGED
|
@@ -138,7 +138,7 @@ function F(e) {
|
|
|
138
138
|
function I(e) {
|
|
139
139
|
typeof e != "function" && (e = F(e));
|
|
140
140
|
for (var t = this._groups, n = t.length, r = Array(n), i = 0; i < n; ++i) for (var a = t[i], o = a.length, s = r[i] = Array(o), c, l, u = 0; u < o; ++u) (c = a[u]) && (l = e.call(c, c.__data__, u, a)) && ("__data__" in c && (l.__data__ = c.__data__), s[u] = l);
|
|
141
|
-
return new
|
|
141
|
+
return new Mt(r, this._parents);
|
|
142
142
|
}
|
|
143
143
|
//#endregion
|
|
144
144
|
//#region node_modules/d3-selection/src/array.js
|
|
@@ -165,7 +165,7 @@ function z(e) {
|
|
|
165
165
|
function B(e) {
|
|
166
166
|
e = typeof e == "function" ? z(e) : ee(e);
|
|
167
167
|
for (var t = this._groups, n = t.length, r = [], i = [], a = 0; a < n; ++a) for (var o = t[a], s = o.length, c, l = 0; l < s; ++l) (c = o[l]) && (r.push(e.call(c, c.__data__, l, o)), i.push(c));
|
|
168
|
-
return new
|
|
168
|
+
return new Mt(r, i);
|
|
169
169
|
}
|
|
170
170
|
//#endregion
|
|
171
171
|
//#region node_modules/d3-selection/src/matcher.js
|
|
@@ -187,21 +187,21 @@ function W(e) {
|
|
|
187
187
|
return U.call(this.children, e);
|
|
188
188
|
};
|
|
189
189
|
}
|
|
190
|
-
function
|
|
190
|
+
function te() {
|
|
191
191
|
return this.firstElementChild;
|
|
192
192
|
}
|
|
193
|
-
function
|
|
194
|
-
return this.select(e == null ?
|
|
193
|
+
function ne(e) {
|
|
194
|
+
return this.select(e == null ? te : W(typeof e == "function" ? e : H(e)));
|
|
195
195
|
}
|
|
196
196
|
//#endregion
|
|
197
197
|
//#region node_modules/d3-selection/src/selection/selectChildren.js
|
|
198
|
-
var
|
|
198
|
+
var G = Array.prototype.filter;
|
|
199
199
|
function re() {
|
|
200
200
|
return Array.from(this.children);
|
|
201
201
|
}
|
|
202
202
|
function ie(e) {
|
|
203
203
|
return function() {
|
|
204
|
-
return
|
|
204
|
+
return G.call(this.children, e);
|
|
205
205
|
};
|
|
206
206
|
}
|
|
207
207
|
function ae(e) {
|
|
@@ -212,7 +212,7 @@ function ae(e) {
|
|
|
212
212
|
function oe(e) {
|
|
213
213
|
typeof e != "function" && (e = V(e));
|
|
214
214
|
for (var t = this._groups, n = t.length, r = Array(n), i = 0; i < n; ++i) for (var a = t[i], o = a.length, s = r[i] = [], c, l = 0; l < o; ++l) (c = a[l]) && e.call(c, c.__data__, l, a) && s.push(c);
|
|
215
|
-
return new
|
|
215
|
+
return new Mt(r, this._parents);
|
|
216
216
|
}
|
|
217
217
|
//#endregion
|
|
218
218
|
//#region node_modules/d3-selection/src/selection/sparse.js
|
|
@@ -222,7 +222,7 @@ function se(e) {
|
|
|
222
222
|
//#endregion
|
|
223
223
|
//#region node_modules/d3-selection/src/selection/enter.js
|
|
224
224
|
function ce() {
|
|
225
|
-
return new
|
|
225
|
+
return new Mt(this._enter || this._groups.map(se), this._parents);
|
|
226
226
|
}
|
|
227
227
|
function le(e, t) {
|
|
228
228
|
this.ownerDocument = e.ownerDocument, this.namespaceURI = e.namespaceURI, this._next = null, this._parent = e, this.__data__ = t;
|
|
@@ -276,7 +276,7 @@ function me(e, t) {
|
|
|
276
276
|
y._next = b || null;
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
|
-
return o = new
|
|
279
|
+
return o = new Mt(o, r), o._enter = s, o._exit = c, o;
|
|
280
280
|
}
|
|
281
281
|
function he(e) {
|
|
282
282
|
return typeof e == "object" && "length" in e ? e : Array.from(e);
|
|
@@ -284,7 +284,7 @@ function he(e) {
|
|
|
284
284
|
//#endregion
|
|
285
285
|
//#region node_modules/d3-selection/src/selection/exit.js
|
|
286
286
|
function ge() {
|
|
287
|
-
return new
|
|
287
|
+
return new Mt(this._exit || this._groups.map(se), this._parents);
|
|
288
288
|
}
|
|
289
289
|
//#endregion
|
|
290
290
|
//#region node_modules/d3-selection/src/selection/join.js
|
|
@@ -297,7 +297,7 @@ function _e(e, t, n) {
|
|
|
297
297
|
function ve(e) {
|
|
298
298
|
for (var t = e.selection ? e.selection() : e, n = this._groups, r = t._groups, i = n.length, a = r.length, o = Math.min(i, a), s = Array(i), c = 0; c < o; ++c) for (var l = n[c], u = r[c], d = l.length, f = s[c] = Array(d), p, m = 0; m < d; ++m) (p = l[m] || u[m]) && (f[m] = p);
|
|
299
299
|
for (; c < i; ++c) s[c] = n[c];
|
|
300
|
-
return new
|
|
300
|
+
return new Mt(s, this._parents);
|
|
301
301
|
}
|
|
302
302
|
//#endregion
|
|
303
303
|
//#region node_modules/d3-selection/src/selection/order.js
|
|
@@ -316,7 +316,7 @@ function be(e) {
|
|
|
316
316
|
for (var o = n[a], s = o.length, c = i[a] = Array(s), l, u = 0; u < s; ++u) (l = o[u]) && (c[u] = l);
|
|
317
317
|
c.sort(t);
|
|
318
318
|
}
|
|
319
|
-
return new
|
|
319
|
+
return new Mt(i, this._parents).order();
|
|
320
320
|
}
|
|
321
321
|
function xe(e, t) {
|
|
322
322
|
return e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN;
|
|
@@ -685,20 +685,20 @@ function* At() {
|
|
|
685
685
|
//#endregion
|
|
686
686
|
//#region node_modules/d3-selection/src/selection/index.js
|
|
687
687
|
var jt = [null];
|
|
688
|
-
function
|
|
688
|
+
function Mt(e, t) {
|
|
689
689
|
this._groups = e, this._parents = t;
|
|
690
690
|
}
|
|
691
|
-
function Mt() {
|
|
692
|
-
return new K([[document.documentElement]], jt);
|
|
693
|
-
}
|
|
694
691
|
function Nt() {
|
|
692
|
+
return new Mt([[document.documentElement]], jt);
|
|
693
|
+
}
|
|
694
|
+
function Pt() {
|
|
695
695
|
return this;
|
|
696
696
|
}
|
|
697
|
-
|
|
698
|
-
constructor:
|
|
697
|
+
Mt.prototype = Nt.prototype = {
|
|
698
|
+
constructor: Mt,
|
|
699
699
|
select: I,
|
|
700
700
|
selectAll: B,
|
|
701
|
-
selectChild:
|
|
701
|
+
selectChild: ne,
|
|
702
702
|
selectChildren: ae,
|
|
703
703
|
filter: oe,
|
|
704
704
|
data: me,
|
|
@@ -706,7 +706,7 @@ K.prototype = Mt.prototype = {
|
|
|
706
706
|
exit: ge,
|
|
707
707
|
join: _e,
|
|
708
708
|
merge: ve,
|
|
709
|
-
selection:
|
|
709
|
+
selection: Pt,
|
|
710
710
|
order: ye,
|
|
711
711
|
sort: be,
|
|
712
712
|
call: Se,
|
|
@@ -734,20 +734,20 @@ K.prototype = Mt.prototype = {
|
|
|
734
734
|
};
|
|
735
735
|
//#endregion
|
|
736
736
|
//#region node_modules/d3-selection/src/select.js
|
|
737
|
-
function
|
|
738
|
-
return typeof e == "string" ? new
|
|
737
|
+
function K(e) {
|
|
738
|
+
return typeof e == "string" ? new Mt([[document.querySelector(e)]], [document.documentElement]) : new Mt([[e]], jt);
|
|
739
739
|
}
|
|
740
740
|
//#endregion
|
|
741
741
|
//#region node_modules/d3-selection/src/sourceEvent.js
|
|
742
|
-
function
|
|
742
|
+
function Ft(e) {
|
|
743
743
|
let t;
|
|
744
744
|
for (; t = e.sourceEvent;) e = t;
|
|
745
745
|
return e;
|
|
746
746
|
}
|
|
747
747
|
//#endregion
|
|
748
748
|
//#region node_modules/d3-selection/src/pointer.js
|
|
749
|
-
function
|
|
750
|
-
if (e =
|
|
749
|
+
function It(e, t) {
|
|
750
|
+
if (e = Ft(e), t === void 0 && (t = e.currentTarget), t) {
|
|
751
751
|
var n = t.ownerSVGElement || t;
|
|
752
752
|
if (n.createSVGPoint) {
|
|
753
753
|
var r = n.createSVGPoint();
|
|
@@ -762,34 +762,34 @@ function Ft(e, t) {
|
|
|
762
762
|
}
|
|
763
763
|
//#endregion
|
|
764
764
|
//#region node_modules/d3-drag/src/noevent.js
|
|
765
|
-
var
|
|
765
|
+
var Lt = { passive: !1 }, Rt = {
|
|
766
766
|
capture: !0,
|
|
767
767
|
passive: !1
|
|
768
768
|
};
|
|
769
|
-
function
|
|
769
|
+
function zt(e) {
|
|
770
770
|
e.stopImmediatePropagation();
|
|
771
771
|
}
|
|
772
|
-
function
|
|
772
|
+
function Bt(e) {
|
|
773
773
|
e.preventDefault(), e.stopImmediatePropagation();
|
|
774
774
|
}
|
|
775
775
|
//#endregion
|
|
776
776
|
//#region node_modules/d3-drag/src/nodrag.js
|
|
777
|
-
function
|
|
778
|
-
var t = e.document.documentElement, n =
|
|
779
|
-
"onselectstart" in t ? n.on("selectstart.drag",
|
|
777
|
+
function Vt(e) {
|
|
778
|
+
var t = e.document.documentElement, n = K(e).on("dragstart.drag", Bt, Rt);
|
|
779
|
+
"onselectstart" in t ? n.on("selectstart.drag", Bt, Rt) : (t.__noselect = t.style.MozUserSelect, t.style.MozUserSelect = "none");
|
|
780
780
|
}
|
|
781
|
-
function
|
|
782
|
-
var n = e.document.documentElement, r =
|
|
783
|
-
t && (r.on("click.drag",
|
|
781
|
+
function Ht(e, t) {
|
|
782
|
+
var n = e.document.documentElement, r = K(e).on("dragstart.drag", null);
|
|
783
|
+
t && (r.on("click.drag", Bt, Rt), setTimeout(function() {
|
|
784
784
|
r.on("click.drag", null);
|
|
785
785
|
}, 0)), "onselectstart" in n ? r.on("selectstart.drag", null) : (n.style.MozUserSelect = n.__noselect, delete n.__noselect);
|
|
786
786
|
}
|
|
787
787
|
//#endregion
|
|
788
788
|
//#region node_modules/d3-drag/src/constant.js
|
|
789
|
-
var
|
|
789
|
+
var Ut = (e) => () => e;
|
|
790
790
|
//#endregion
|
|
791
791
|
//#region node_modules/d3-drag/src/event.js
|
|
792
|
-
function
|
|
792
|
+
function Wt(e, { sourceEvent: t, subject: n, target: r, identifier: i, active: a, x: o, y: s, dx: c, dy: l, dispatch: u }) {
|
|
793
793
|
Object.defineProperties(this, {
|
|
794
794
|
type: {
|
|
795
795
|
value: e,
|
|
@@ -844,67 +844,67 @@ function Ut(e, { sourceEvent: t, subject: n, target: r, identifier: i, active: a
|
|
|
844
844
|
_: { value: u }
|
|
845
845
|
});
|
|
846
846
|
}
|
|
847
|
-
|
|
847
|
+
Wt.prototype.on = function() {
|
|
848
848
|
var e = this._.on.apply(this._, arguments);
|
|
849
849
|
return e === this._ ? this : e;
|
|
850
850
|
};
|
|
851
851
|
//#endregion
|
|
852
852
|
//#region node_modules/d3-drag/src/drag.js
|
|
853
|
-
function
|
|
853
|
+
function Gt(e) {
|
|
854
854
|
return !e.ctrlKey && !e.button;
|
|
855
855
|
}
|
|
856
|
-
function
|
|
856
|
+
function Kt() {
|
|
857
857
|
return this.parentNode;
|
|
858
858
|
}
|
|
859
|
-
function
|
|
859
|
+
function qt(e, t) {
|
|
860
860
|
return t ?? {
|
|
861
861
|
x: e.x,
|
|
862
862
|
y: e.y
|
|
863
863
|
};
|
|
864
864
|
}
|
|
865
|
-
function
|
|
865
|
+
function Jt() {
|
|
866
866
|
return navigator.maxTouchPoints || "ontouchstart" in this;
|
|
867
867
|
}
|
|
868
|
-
function
|
|
869
|
-
var e =
|
|
868
|
+
function Yt() {
|
|
869
|
+
var e = Gt, t = Kt, n = qt, r = Jt, i = {}, a = w("start", "drag", "end"), o = 0, s, c, l, u, d = 0;
|
|
870
870
|
function f(e) {
|
|
871
|
-
e.on("mousedown.drag", p).filter(r).on("touchstart.drag", g).on("touchmove.drag", _,
|
|
871
|
+
e.on("mousedown.drag", p).filter(r).on("touchstart.drag", g).on("touchmove.drag", _, Lt).on("touchend.drag touchcancel.drag", v).style("touch-action", "none").style("-webkit-tap-highlight-color", "rgba(0,0,0,0)");
|
|
872
872
|
}
|
|
873
873
|
function p(n, r) {
|
|
874
874
|
if (!(u || !e.call(this, n, r))) {
|
|
875
875
|
var i = y(this, t.call(this, n, r), n, r, "mouse");
|
|
876
|
-
i && (
|
|
876
|
+
i && (K(n.view).on("mousemove.drag", m, Rt).on("mouseup.drag", h, Rt), Vt(n.view), zt(n), l = !1, s = n.clientX, c = n.clientY, i("start", n));
|
|
877
877
|
}
|
|
878
878
|
}
|
|
879
879
|
function m(e) {
|
|
880
|
-
if (
|
|
880
|
+
if (Bt(e), !l) {
|
|
881
881
|
var t = e.clientX - s, n = e.clientY - c;
|
|
882
882
|
l = t * t + n * n > d;
|
|
883
883
|
}
|
|
884
884
|
i.mouse("drag", e);
|
|
885
885
|
}
|
|
886
886
|
function h(e) {
|
|
887
|
-
|
|
887
|
+
K(e.view).on("mousemove.drag mouseup.drag", null), Ht(e.view, l), Bt(e), i.mouse("end", e);
|
|
888
888
|
}
|
|
889
889
|
function g(n, r) {
|
|
890
890
|
if (e.call(this, n, r)) {
|
|
891
891
|
var i = n.changedTouches, a = t.call(this, n, r), o = i.length, s, c;
|
|
892
|
-
for (s = 0; s < o; ++s) (c = y(this, a, n, r, i[s].identifier, i[s])) && (
|
|
892
|
+
for (s = 0; s < o; ++s) (c = y(this, a, n, r, i[s].identifier, i[s])) && (zt(n), c("start", n, i[s]));
|
|
893
893
|
}
|
|
894
894
|
}
|
|
895
895
|
function _(e) {
|
|
896
896
|
var t = e.changedTouches, n = t.length, r, a;
|
|
897
|
-
for (r = 0; r < n; ++r) (a = i[t[r].identifier]) && (
|
|
897
|
+
for (r = 0; r < n; ++r) (a = i[t[r].identifier]) && (Bt(e), a("drag", e, t[r]));
|
|
898
898
|
}
|
|
899
899
|
function v(e) {
|
|
900
900
|
var t = e.changedTouches, n = t.length, r, a;
|
|
901
901
|
for (u && clearTimeout(u), u = setTimeout(function() {
|
|
902
902
|
u = null;
|
|
903
|
-
}, 500), r = 0; r < n; ++r) (a = i[t[r].identifier]) && (
|
|
903
|
+
}, 500), r = 0; r < n; ++r) (a = i[t[r].identifier]) && (zt(e), a("end", e, t[r]));
|
|
904
904
|
}
|
|
905
905
|
function y(e, t, r, s, c, l) {
|
|
906
|
-
var u = a.copy(), d =
|
|
907
|
-
if ((h = n.call(e, new
|
|
906
|
+
var u = a.copy(), d = It(l || r, t), p, m, h;
|
|
907
|
+
if ((h = n.call(e, new Wt("beforestart", {
|
|
908
908
|
sourceEvent: r,
|
|
909
909
|
target: f,
|
|
910
910
|
identifier: c,
|
|
@@ -922,10 +922,10 @@ function Jt() {
|
|
|
922
922
|
break;
|
|
923
923
|
case "end": delete i[c], --o;
|
|
924
924
|
case "drag":
|
|
925
|
-
d =
|
|
925
|
+
d = It(l || a, t), _ = o;
|
|
926
926
|
break;
|
|
927
927
|
}
|
|
928
|
-
u.call(r, e, new
|
|
928
|
+
u.call(r, e, new Wt(r, {
|
|
929
929
|
sourceEvent: a,
|
|
930
930
|
subject: h,
|
|
931
931
|
target: f,
|
|
@@ -940,13 +940,13 @@ function Jt() {
|
|
|
940
940
|
};
|
|
941
941
|
}
|
|
942
942
|
return f.filter = function(t) {
|
|
943
|
-
return arguments.length ? (e = typeof t == "function" ? t :
|
|
943
|
+
return arguments.length ? (e = typeof t == "function" ? t : Ut(!!t), f) : e;
|
|
944
944
|
}, f.container = function(e) {
|
|
945
|
-
return arguments.length ? (t = typeof e == "function" ? e :
|
|
945
|
+
return arguments.length ? (t = typeof e == "function" ? e : Ut(e), f) : t;
|
|
946
946
|
}, f.subject = function(e) {
|
|
947
|
-
return arguments.length ? (n = typeof e == "function" ? e :
|
|
947
|
+
return arguments.length ? (n = typeof e == "function" ? e : Ut(e), f) : n;
|
|
948
948
|
}, f.touchable = function(e) {
|
|
949
|
-
return arguments.length ? (r = typeof e == "function" ? e :
|
|
949
|
+
return arguments.length ? (r = typeof e == "function" ? e : Ut(!!e), f) : r;
|
|
950
950
|
}, f.on = function() {
|
|
951
951
|
var e = a.on.apply(a, arguments);
|
|
952
952
|
return e === a ? f : e;
|
|
@@ -956,18 +956,18 @@ function Jt() {
|
|
|
956
956
|
}
|
|
957
957
|
//#endregion
|
|
958
958
|
//#region node_modules/d3-color/src/define.js
|
|
959
|
-
function
|
|
959
|
+
function Xt(e, t, n) {
|
|
960
960
|
e.prototype = t.prototype = n, n.constructor = e;
|
|
961
961
|
}
|
|
962
|
-
function
|
|
962
|
+
function Zt(e, t) {
|
|
963
963
|
var n = Object.create(e.prototype);
|
|
964
964
|
for (var r in t) n[r] = t[r];
|
|
965
965
|
return n;
|
|
966
966
|
}
|
|
967
967
|
//#endregion
|
|
968
968
|
//#region node_modules/d3-color/src/color.js
|
|
969
|
-
function
|
|
970
|
-
var
|
|
969
|
+
function Qt() {}
|
|
970
|
+
var $t = .7, en = 1 / $t, tn = "\\s*([+-]?\\d+)\\s*", nn = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", rn = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", an = /^#([0-9a-f]{3,8})$/, on = RegExp(`^rgb\\(${tn},${tn},${tn}\\)$`), sn = RegExp(`^rgb\\(${rn},${rn},${rn}\\)$`), cn = RegExp(`^rgba\\(${tn},${tn},${tn},${nn}\\)$`), ln = RegExp(`^rgba\\(${rn},${rn},${rn},${nn}\\)$`), un = RegExp(`^hsl\\(${nn},${rn},${rn}\\)$`), dn = RegExp(`^hsla\\(${nn},${rn},${rn},${nn}\\)$`), fn = {
|
|
971
971
|
aliceblue: 15792383,
|
|
972
972
|
antiquewhite: 16444375,
|
|
973
973
|
aqua: 65535,
|
|
@@ -1117,170 +1117,170 @@ var Qt = .7, $t = 1 / Qt, en = "\\s*([+-]?\\d+)\\s*", tn = "\\s*([+-]?(?:\\d*\\.
|
|
|
1117
1117
|
yellow: 16776960,
|
|
1118
1118
|
yellowgreen: 10145074
|
|
1119
1119
|
};
|
|
1120
|
-
|
|
1120
|
+
Xt(Qt, _n, {
|
|
1121
1121
|
copy(e) {
|
|
1122
1122
|
return Object.assign(new this.constructor(), this, e);
|
|
1123
1123
|
},
|
|
1124
1124
|
displayable() {
|
|
1125
1125
|
return this.rgb().displayable();
|
|
1126
1126
|
},
|
|
1127
|
-
hex:
|
|
1128
|
-
formatHex:
|
|
1129
|
-
formatHex8:
|
|
1130
|
-
formatHsl:
|
|
1131
|
-
formatRgb:
|
|
1132
|
-
toString:
|
|
1127
|
+
hex: pn,
|
|
1128
|
+
formatHex: pn,
|
|
1129
|
+
formatHex8: mn,
|
|
1130
|
+
formatHsl: hn,
|
|
1131
|
+
formatRgb: gn,
|
|
1132
|
+
toString: gn
|
|
1133
1133
|
});
|
|
1134
|
-
function fn() {
|
|
1135
|
-
return this.rgb().formatHex();
|
|
1136
|
-
}
|
|
1137
1134
|
function pn() {
|
|
1138
|
-
return this.rgb().
|
|
1135
|
+
return this.rgb().formatHex();
|
|
1139
1136
|
}
|
|
1140
1137
|
function mn() {
|
|
1141
|
-
return
|
|
1138
|
+
return this.rgb().formatHex8();
|
|
1142
1139
|
}
|
|
1143
1140
|
function hn() {
|
|
1141
|
+
return kn(this).formatHsl();
|
|
1142
|
+
}
|
|
1143
|
+
function gn() {
|
|
1144
1144
|
return this.rgb().formatRgb();
|
|
1145
1145
|
}
|
|
1146
|
-
function
|
|
1146
|
+
function _n(e) {
|
|
1147
1147
|
var t, n;
|
|
1148
|
-
return e = (e + "").trim().toLowerCase(), (t =
|
|
1148
|
+
return e = (e + "").trim().toLowerCase(), (t = an.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? vn(t) : n === 3 ? new q(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? yn(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? yn(t >> 12 & 15 | t >> 8 & 240, t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, ((t & 15) << 4 | t & 15) / 255) : null) : (t = on.exec(e)) ? new q(t[1], t[2], t[3], 1) : (t = sn.exec(e)) ? new q(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = cn.exec(e)) ? yn(t[1], t[2], t[3], t[4]) : (t = ln.exec(e)) ? yn(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = un.exec(e)) ? On(t[1], t[2] / 100, t[3] / 100, 1) : (t = dn.exec(e)) ? On(t[1], t[2] / 100, t[3] / 100, t[4]) : fn.hasOwnProperty(e) ? vn(fn[e]) : e === "transparent" ? new q(NaN, NaN, NaN, 0) : null;
|
|
1149
1149
|
}
|
|
1150
|
-
function
|
|
1151
|
-
return new
|
|
1150
|
+
function vn(e) {
|
|
1151
|
+
return new q(e >> 16 & 255, e >> 8 & 255, e & 255, 1);
|
|
1152
1152
|
}
|
|
1153
|
-
function
|
|
1154
|
-
return r <= 0 && (e = t = n = NaN), new
|
|
1153
|
+
function yn(e, t, n, r) {
|
|
1154
|
+
return r <= 0 && (e = t = n = NaN), new q(e, t, n, r);
|
|
1155
1155
|
}
|
|
1156
|
-
function
|
|
1157
|
-
return e instanceof
|
|
1156
|
+
function bn(e) {
|
|
1157
|
+
return e instanceof Qt || (e = _n(e)), e ? (e = e.rgb(), new q(e.r, e.g, e.b, e.opacity)) : new q();
|
|
1158
1158
|
}
|
|
1159
|
-
function
|
|
1160
|
-
return arguments.length === 1 ?
|
|
1159
|
+
function xn(e, t, n, r) {
|
|
1160
|
+
return arguments.length === 1 ? bn(e) : new q(e, t, n, r ?? 1);
|
|
1161
1161
|
}
|
|
1162
|
-
function
|
|
1162
|
+
function q(e, t, n, r) {
|
|
1163
1163
|
this.r = +e, this.g = +t, this.b = +n, this.opacity = +r;
|
|
1164
1164
|
}
|
|
1165
|
-
|
|
1165
|
+
Xt(q, xn, Zt(Qt, {
|
|
1166
1166
|
brighter(e) {
|
|
1167
|
-
return e = e == null ?
|
|
1167
|
+
return e = e == null ? en : en ** +e, new q(this.r * e, this.g * e, this.b * e, this.opacity);
|
|
1168
1168
|
},
|
|
1169
1169
|
darker(e) {
|
|
1170
|
-
return e = e == null ?
|
|
1170
|
+
return e = e == null ? $t : $t ** +e, new q(this.r * e, this.g * e, this.b * e, this.opacity);
|
|
1171
1171
|
},
|
|
1172
1172
|
rgb() {
|
|
1173
1173
|
return this;
|
|
1174
1174
|
},
|
|
1175
1175
|
clamp() {
|
|
1176
|
-
return new
|
|
1176
|
+
return new q(En(this.r), En(this.g), En(this.b), Tn(this.opacity));
|
|
1177
1177
|
},
|
|
1178
1178
|
displayable() {
|
|
1179
1179
|
return -.5 <= this.r && this.r < 255.5 && -.5 <= this.g && this.g < 255.5 && -.5 <= this.b && this.b < 255.5 && 0 <= this.opacity && this.opacity <= 1;
|
|
1180
1180
|
},
|
|
1181
|
-
hex:
|
|
1182
|
-
formatHex:
|
|
1183
|
-
formatHex8:
|
|
1184
|
-
formatRgb:
|
|
1185
|
-
toString:
|
|
1181
|
+
hex: Sn,
|
|
1182
|
+
formatHex: Sn,
|
|
1183
|
+
formatHex8: Cn,
|
|
1184
|
+
formatRgb: wn,
|
|
1185
|
+
toString: wn
|
|
1186
1186
|
}));
|
|
1187
|
-
function xn() {
|
|
1188
|
-
return `#${En(this.r)}${En(this.g)}${En(this.b)}`;
|
|
1189
|
-
}
|
|
1190
1187
|
function Sn() {
|
|
1191
|
-
return `#${
|
|
1188
|
+
return `#${Dn(this.r)}${Dn(this.g)}${Dn(this.b)}`;
|
|
1192
1189
|
}
|
|
1193
1190
|
function Cn() {
|
|
1194
|
-
|
|
1195
|
-
return `${e === 1 ? "rgb(" : "rgba("}${Tn(this.r)}, ${Tn(this.g)}, ${Tn(this.b)}${e === 1 ? ")" : `, ${e})`}`;
|
|
1191
|
+
return `#${Dn(this.r)}${Dn(this.g)}${Dn(this.b)}${Dn((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
|
|
1196
1192
|
}
|
|
1197
|
-
function wn(
|
|
1198
|
-
|
|
1193
|
+
function wn() {
|
|
1194
|
+
let e = Tn(this.opacity);
|
|
1195
|
+
return `${e === 1 ? "rgb(" : "rgba("}${En(this.r)}, ${En(this.g)}, ${En(this.b)}${e === 1 ? ")" : `, ${e})`}`;
|
|
1199
1196
|
}
|
|
1200
1197
|
function Tn(e) {
|
|
1201
|
-
return Math.max(0, Math.min(
|
|
1198
|
+
return isNaN(e) ? 1 : Math.max(0, Math.min(1, e));
|
|
1202
1199
|
}
|
|
1203
1200
|
function En(e) {
|
|
1204
|
-
return
|
|
1201
|
+
return Math.max(0, Math.min(255, Math.round(e) || 0));
|
|
1205
1202
|
}
|
|
1206
|
-
function Dn(e
|
|
1207
|
-
return
|
|
1203
|
+
function Dn(e) {
|
|
1204
|
+
return e = En(e), (e < 16 ? "0" : "") + e.toString(16);
|
|
1208
1205
|
}
|
|
1209
|
-
function On(e) {
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1206
|
+
function On(e, t, n, r) {
|
|
1207
|
+
return r <= 0 ? e = t = n = NaN : n <= 0 || n >= 1 ? e = t = NaN : t <= 0 && (e = NaN), new jn(e, t, n, r);
|
|
1208
|
+
}
|
|
1209
|
+
function kn(e) {
|
|
1210
|
+
if (e instanceof jn) return new jn(e.h, e.s, e.l, e.opacity);
|
|
1211
|
+
if (e instanceof Qt || (e = _n(e)), !e) return new jn();
|
|
1212
|
+
if (e instanceof jn) return e;
|
|
1213
1213
|
e = e.rgb();
|
|
1214
1214
|
var t = e.r / 255, n = e.g / 255, r = e.b / 255, i = Math.min(t, n, r), a = Math.max(t, n, r), o = NaN, s = a - i, c = (a + i) / 2;
|
|
1215
|
-
return s ? (o = t === a ? (n - r) / s + (n < r) * 6 : n === a ? (r - t) / s + 2 : (t - n) / s + 4, s /= c < .5 ? a + i : 2 - a - i, o *= 60) : s = c > 0 && c < 1 ? 0 : o, new
|
|
1216
|
-
}
|
|
1217
|
-
function kn(e, t, n, r) {
|
|
1218
|
-
return arguments.length === 1 ? On(e) : new An(e, t, n, r ?? 1);
|
|
1215
|
+
return s ? (o = t === a ? (n - r) / s + (n < r) * 6 : n === a ? (r - t) / s + 2 : (t - n) / s + 4, s /= c < .5 ? a + i : 2 - a - i, o *= 60) : s = c > 0 && c < 1 ? 0 : o, new jn(o, s, c, e.opacity);
|
|
1219
1216
|
}
|
|
1220
1217
|
function An(e, t, n, r) {
|
|
1218
|
+
return arguments.length === 1 ? kn(e) : new jn(e, t, n, r ?? 1);
|
|
1219
|
+
}
|
|
1220
|
+
function jn(e, t, n, r) {
|
|
1221
1221
|
this.h = +e, this.s = +t, this.l = +n, this.opacity = +r;
|
|
1222
1222
|
}
|
|
1223
|
-
|
|
1223
|
+
Xt(jn, An, Zt(Qt, {
|
|
1224
1224
|
brighter(e) {
|
|
1225
|
-
return e = e == null ?
|
|
1225
|
+
return e = e == null ? en : en ** +e, new jn(this.h, this.s, this.l * e, this.opacity);
|
|
1226
1226
|
},
|
|
1227
1227
|
darker(e) {
|
|
1228
|
-
return e = e == null ?
|
|
1228
|
+
return e = e == null ? $t : $t ** +e, new jn(this.h, this.s, this.l * e, this.opacity);
|
|
1229
1229
|
},
|
|
1230
1230
|
rgb() {
|
|
1231
1231
|
var e = this.h % 360 + (this.h < 0) * 360, t = isNaN(e) || isNaN(this.s) ? 0 : this.s, n = this.l, r = n + (n < .5 ? n : 1 - n) * t, i = 2 * n - r;
|
|
1232
|
-
return new
|
|
1232
|
+
return new q(Pn(e >= 240 ? e - 240 : e + 120, i, r), Pn(e, i, r), Pn(e < 120 ? e + 240 : e - 120, i, r), this.opacity);
|
|
1233
1233
|
},
|
|
1234
1234
|
clamp() {
|
|
1235
|
-
return new
|
|
1235
|
+
return new jn(Mn(this.h), Nn(this.s), Nn(this.l), Tn(this.opacity));
|
|
1236
1236
|
},
|
|
1237
1237
|
displayable() {
|
|
1238
1238
|
return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1;
|
|
1239
1239
|
},
|
|
1240
1240
|
formatHsl() {
|
|
1241
|
-
let e =
|
|
1242
|
-
return `${e === 1 ? "hsl(" : "hsla("}${
|
|
1241
|
+
let e = Tn(this.opacity);
|
|
1242
|
+
return `${e === 1 ? "hsl(" : "hsla("}${Mn(this.h)}, ${Nn(this.s) * 100}%, ${Nn(this.l) * 100}%${e === 1 ? ")" : `, ${e})`}`;
|
|
1243
1243
|
}
|
|
1244
1244
|
}));
|
|
1245
|
-
function
|
|
1245
|
+
function Mn(e) {
|
|
1246
1246
|
return e = (e || 0) % 360, e < 0 ? e + 360 : e;
|
|
1247
1247
|
}
|
|
1248
|
-
function
|
|
1248
|
+
function Nn(e) {
|
|
1249
1249
|
return Math.max(0, Math.min(1, e || 0));
|
|
1250
1250
|
}
|
|
1251
|
-
function
|
|
1251
|
+
function Pn(e, t, n) {
|
|
1252
1252
|
return (e < 60 ? t + (n - t) * e / 60 : e < 180 ? n : e < 240 ? t + (n - t) * (240 - e) / 60 : t) * 255;
|
|
1253
1253
|
}
|
|
1254
1254
|
//#endregion
|
|
1255
1255
|
//#region node_modules/d3-interpolate/src/constant.js
|
|
1256
|
-
var
|
|
1256
|
+
var Fn = (e) => () => e;
|
|
1257
1257
|
//#endregion
|
|
1258
1258
|
//#region node_modules/d3-interpolate/src/color.js
|
|
1259
|
-
function
|
|
1259
|
+
function In(e, t) {
|
|
1260
1260
|
return function(n) {
|
|
1261
1261
|
return e + n * t;
|
|
1262
1262
|
};
|
|
1263
1263
|
}
|
|
1264
|
-
function
|
|
1264
|
+
function Ln(e, t, n) {
|
|
1265
1265
|
return e **= +n, t = t ** +n - e, n = 1 / n, function(r) {
|
|
1266
1266
|
return (e + r * t) ** +n;
|
|
1267
1267
|
};
|
|
1268
1268
|
}
|
|
1269
|
-
function
|
|
1270
|
-
return (e = +e) == 1 ?
|
|
1271
|
-
return n - t ?
|
|
1269
|
+
function Rn(e) {
|
|
1270
|
+
return (e = +e) == 1 ? zn : function(t, n) {
|
|
1271
|
+
return n - t ? Ln(t, n, e) : Fn(isNaN(t) ? n : t);
|
|
1272
1272
|
};
|
|
1273
1273
|
}
|
|
1274
|
-
function
|
|
1274
|
+
function zn(e, t) {
|
|
1275
1275
|
var n = t - e;
|
|
1276
|
-
return n ?
|
|
1276
|
+
return n ? In(e, n) : Fn(isNaN(e) ? t : e);
|
|
1277
1277
|
}
|
|
1278
1278
|
//#endregion
|
|
1279
1279
|
//#region node_modules/d3-interpolate/src/rgb.js
|
|
1280
|
-
var
|
|
1281
|
-
var n =
|
|
1280
|
+
var Bn = (function e(t) {
|
|
1281
|
+
var n = Rn(t);
|
|
1282
1282
|
function r(e, t) {
|
|
1283
|
-
var r = n((e =
|
|
1283
|
+
var r = n((e = xn(e)).r, (t = xn(t)).r), i = n(e.g, t.g), a = n(e.b, t.b), o = zn(e.opacity, t.opacity);
|
|
1284
1284
|
return function(t) {
|
|
1285
1285
|
return e.r = r(t), e.g = i(t), e.b = a(t), e.opacity = o(t), e + "";
|
|
1286
1286
|
};
|
|
@@ -1289,7 +1289,7 @@ var zn = (function e(t) {
|
|
|
1289
1289
|
})(1);
|
|
1290
1290
|
//#endregion
|
|
1291
1291
|
//#region node_modules/d3-interpolate/src/numberArray.js
|
|
1292
|
-
function
|
|
1292
|
+
function Vn(e, t) {
|
|
1293
1293
|
t ||= [];
|
|
1294
1294
|
var n = e ? Math.min(t.length, e.length) : 0, r = t.slice(), i;
|
|
1295
1295
|
return function(a) {
|
|
@@ -1297,14 +1297,14 @@ function Bn(e, t) {
|
|
|
1297
1297
|
return r;
|
|
1298
1298
|
};
|
|
1299
1299
|
}
|
|
1300
|
-
function
|
|
1300
|
+
function Hn(e) {
|
|
1301
1301
|
return ArrayBuffer.isView(e) && !(e instanceof DataView);
|
|
1302
1302
|
}
|
|
1303
1303
|
//#endregion
|
|
1304
1304
|
//#region node_modules/d3-interpolate/src/array.js
|
|
1305
|
-
function
|
|
1305
|
+
function Un(e, t) {
|
|
1306
1306
|
var n = t ? t.length : 0, r = e ? Math.min(n, e.length) : 0, i = Array(r), a = Array(n), o;
|
|
1307
|
-
for (o = 0; o < r; ++o) i[o] =
|
|
1307
|
+
for (o = 0; o < r; ++o) i[o] = Qn(e[o], t[o]);
|
|
1308
1308
|
for (; o < n; ++o) a[o] = t[o];
|
|
1309
1309
|
return function(e) {
|
|
1310
1310
|
for (o = 0; o < r; ++o) a[o] = i[o](e);
|
|
@@ -1313,7 +1313,7 @@ function Hn(e, t) {
|
|
|
1313
1313
|
}
|
|
1314
1314
|
//#endregion
|
|
1315
1315
|
//#region node_modules/d3-interpolate/src/date.js
|
|
1316
|
-
function
|
|
1316
|
+
function Wn(e, t) {
|
|
1317
1317
|
var n = /* @__PURE__ */ new Date();
|
|
1318
1318
|
return e = +e, t = +t, function(r) {
|
|
1319
1319
|
return n.setTime(e * (1 - r) + t * r), n;
|
|
@@ -1321,16 +1321,16 @@ function Un(e, t) {
|
|
|
1321
1321
|
}
|
|
1322
1322
|
//#endregion
|
|
1323
1323
|
//#region node_modules/d3-interpolate/src/number.js
|
|
1324
|
-
function
|
|
1324
|
+
function Gn(e, t) {
|
|
1325
1325
|
return e = +e, t = +t, function(n) {
|
|
1326
1326
|
return e * (1 - n) + t * n;
|
|
1327
1327
|
};
|
|
1328
1328
|
}
|
|
1329
1329
|
//#endregion
|
|
1330
1330
|
//#region node_modules/d3-interpolate/src/object.js
|
|
1331
|
-
function
|
|
1331
|
+
function Kn(e, t) {
|
|
1332
1332
|
var n = {}, r = {}, i;
|
|
1333
|
-
for (i in (typeof e != "object" || !e) && (e = {}), (typeof t != "object" || !t) && (t = {}), t) i in e ? n[i] =
|
|
1333
|
+
for (i in (typeof e != "object" || !e) && (e = {}), (typeof t != "object" || !t) && (t = {}), t) i in e ? n[i] = Qn(e[i], t[i]) : r[i] = t[i];
|
|
1334
1334
|
return function(e) {
|
|
1335
1335
|
for (i in n) r[i] = n[i](e);
|
|
1336
1336
|
return r;
|
|
@@ -1338,37 +1338,37 @@ function Gn(e, t) {
|
|
|
1338
1338
|
}
|
|
1339
1339
|
//#endregion
|
|
1340
1340
|
//#region node_modules/d3-interpolate/src/string.js
|
|
1341
|
-
var
|
|
1342
|
-
function
|
|
1341
|
+
var qn = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, Jn = new RegExp(qn.source, "g");
|
|
1342
|
+
function Yn(e) {
|
|
1343
1343
|
return function() {
|
|
1344
1344
|
return e;
|
|
1345
1345
|
};
|
|
1346
1346
|
}
|
|
1347
|
-
function
|
|
1347
|
+
function Xn(e) {
|
|
1348
1348
|
return function(t) {
|
|
1349
1349
|
return e(t) + "";
|
|
1350
1350
|
};
|
|
1351
1351
|
}
|
|
1352
|
-
function
|
|
1353
|
-
var n =
|
|
1354
|
-
for (e += "", t += ""; (r =
|
|
1352
|
+
function Zn(e, t) {
|
|
1353
|
+
var n = qn.lastIndex = Jn.lastIndex = 0, r, i, a, o = -1, s = [], c = [];
|
|
1354
|
+
for (e += "", t += ""; (r = qn.exec(e)) && (i = Jn.exec(t));) (a = i.index) > n && (a = t.slice(n, a), s[o] ? s[o] += a : s[++o] = a), (r = r[0]) === (i = i[0]) ? s[o] ? s[o] += i : s[++o] = i : (s[++o] = null, c.push({
|
|
1355
1355
|
i: o,
|
|
1356
|
-
x:
|
|
1357
|
-
})), n =
|
|
1358
|
-
return n < t.length && (a = t.slice(n), s[o] ? s[o] += a : s[++o] = a), s.length < 2 ? c[0] ?
|
|
1356
|
+
x: Gn(r, i)
|
|
1357
|
+
})), n = Jn.lastIndex;
|
|
1358
|
+
return n < t.length && (a = t.slice(n), s[o] ? s[o] += a : s[++o] = a), s.length < 2 ? c[0] ? Xn(c[0].x) : Yn(t) : (t = c.length, function(e) {
|
|
1359
1359
|
for (var n = 0, r; n < t; ++n) s[(r = c[n]).i] = r.x(e);
|
|
1360
1360
|
return s.join("");
|
|
1361
1361
|
});
|
|
1362
1362
|
}
|
|
1363
1363
|
//#endregion
|
|
1364
1364
|
//#region node_modules/d3-interpolate/src/value.js
|
|
1365
|
-
function
|
|
1365
|
+
function Qn(e, t) {
|
|
1366
1366
|
var n = typeof t, r;
|
|
1367
|
-
return t == null || n === "boolean" ?
|
|
1367
|
+
return t == null || n === "boolean" ? Fn(t) : (n === "number" ? Gn : n === "string" ? (r = _n(t)) ? (t = r, Bn) : Zn : t instanceof _n ? Bn : t instanceof Date ? Wn : Hn(t) ? Vn : Array.isArray(t) ? Un : typeof t.valueOf != "function" && typeof t.toString != "function" || isNaN(t) ? Kn : Gn)(e, t);
|
|
1368
1368
|
}
|
|
1369
1369
|
//#endregion
|
|
1370
1370
|
//#region node_modules/d3-interpolate/src/transform/decompose.js
|
|
1371
|
-
var
|
|
1371
|
+
var $n = 180 / Math.PI, er = {
|
|
1372
1372
|
translateX: 0,
|
|
1373
1373
|
translateY: 0,
|
|
1374
1374
|
rotate: 0,
|
|
@@ -1376,30 +1376,30 @@ var Qn = 180 / Math.PI, $n = {
|
|
|
1376
1376
|
scaleX: 1,
|
|
1377
1377
|
scaleY: 1
|
|
1378
1378
|
};
|
|
1379
|
-
function
|
|
1379
|
+
function tr(e, t, n, r, i, a) {
|
|
1380
1380
|
var o, s, c;
|
|
1381
1381
|
return (o = Math.sqrt(e * e + t * t)) && (e /= o, t /= o), (c = e * n + t * r) && (n -= e * c, r -= t * c), (s = Math.sqrt(n * n + r * r)) && (n /= s, r /= s, c /= s), e * r < t * n && (e = -e, t = -t, c = -c, o = -o), {
|
|
1382
1382
|
translateX: i,
|
|
1383
1383
|
translateY: a,
|
|
1384
|
-
rotate: Math.atan2(t, e) *
|
|
1385
|
-
skewX: Math.atan(c) *
|
|
1384
|
+
rotate: Math.atan2(t, e) * $n,
|
|
1385
|
+
skewX: Math.atan(c) * $n,
|
|
1386
1386
|
scaleX: o,
|
|
1387
1387
|
scaleY: s
|
|
1388
1388
|
};
|
|
1389
1389
|
}
|
|
1390
1390
|
//#endregion
|
|
1391
1391
|
//#region node_modules/d3-interpolate/src/transform/parse.js
|
|
1392
|
-
var
|
|
1393
|
-
function
|
|
1392
|
+
var nr;
|
|
1393
|
+
function rr(e) {
|
|
1394
1394
|
let t = new (typeof DOMMatrix == "function" ? DOMMatrix : WebKitCSSMatrix)(e + "");
|
|
1395
|
-
return t.isIdentity ?
|
|
1395
|
+
return t.isIdentity ? er : tr(t.a, t.b, t.c, t.d, t.e, t.f);
|
|
1396
1396
|
}
|
|
1397
|
-
function
|
|
1398
|
-
return e == null || (
|
|
1397
|
+
function ir(e) {
|
|
1398
|
+
return e == null || (nr ||= document.createElementNS("http://www.w3.org/2000/svg", "g"), nr.setAttribute("transform", e), !(e = nr.transform.baseVal.consolidate())) ? er : (e = e.matrix, tr(e.a, e.b, e.c, e.d, e.e, e.f));
|
|
1399
1399
|
}
|
|
1400
1400
|
//#endregion
|
|
1401
1401
|
//#region node_modules/d3-interpolate/src/transform/index.js
|
|
1402
|
-
function
|
|
1402
|
+
function ar(e, t, n, r) {
|
|
1403
1403
|
function i(e) {
|
|
1404
1404
|
return e.length ? e.pop() + " " : "";
|
|
1405
1405
|
}
|
|
@@ -1408,23 +1408,23 @@ function ir(e, t, n, r) {
|
|
|
1408
1408
|
var c = o.push("translate(", null, t, null, n);
|
|
1409
1409
|
s.push({
|
|
1410
1410
|
i: c - 4,
|
|
1411
|
-
x:
|
|
1411
|
+
x: Gn(e, i)
|
|
1412
1412
|
}, {
|
|
1413
1413
|
i: c - 2,
|
|
1414
|
-
x:
|
|
1414
|
+
x: Gn(r, a)
|
|
1415
1415
|
});
|
|
1416
1416
|
} else (i || a) && o.push("translate(" + i + t + a + n);
|
|
1417
1417
|
}
|
|
1418
1418
|
function o(e, t, n, a) {
|
|
1419
1419
|
e === t ? t && n.push(i(n) + "rotate(" + t + r) : (e - t > 180 ? t += 360 : t - e > 180 && (e += 360), a.push({
|
|
1420
1420
|
i: n.push(i(n) + "rotate(", null, r) - 2,
|
|
1421
|
-
x:
|
|
1421
|
+
x: Gn(e, t)
|
|
1422
1422
|
}));
|
|
1423
1423
|
}
|
|
1424
1424
|
function s(e, t, n, a) {
|
|
1425
1425
|
e === t ? t && n.push(i(n) + "skewX(" + t + r) : a.push({
|
|
1426
1426
|
i: n.push(i(n) + "skewX(", null, r) - 2,
|
|
1427
|
-
x:
|
|
1427
|
+
x: Gn(e, t)
|
|
1428
1428
|
});
|
|
1429
1429
|
}
|
|
1430
1430
|
function c(e, t, n, r, a, o) {
|
|
@@ -1432,10 +1432,10 @@ function ir(e, t, n, r) {
|
|
|
1432
1432
|
var s = a.push(i(a) + "scale(", null, ",", null, ")");
|
|
1433
1433
|
o.push({
|
|
1434
1434
|
i: s - 4,
|
|
1435
|
-
x:
|
|
1435
|
+
x: Gn(e, n)
|
|
1436
1436
|
}, {
|
|
1437
1437
|
i: s - 2,
|
|
1438
|
-
x:
|
|
1438
|
+
x: Gn(t, r)
|
|
1439
1439
|
});
|
|
1440
1440
|
} else (n !== 1 || r !== 1) && a.push(i(a) + "scale(" + n + "," + r + ")");
|
|
1441
1441
|
}
|
|
@@ -1447,20 +1447,20 @@ function ir(e, t, n, r) {
|
|
|
1447
1447
|
};
|
|
1448
1448
|
};
|
|
1449
1449
|
}
|
|
1450
|
-
var
|
|
1451
|
-
function
|
|
1450
|
+
var or = ar(rr, "px, ", "px)", "deg)"), sr = ar(ir, ", ", ")", ")"), cr = 1e-12;
|
|
1451
|
+
function lr(e) {
|
|
1452
1452
|
return ((e = Math.exp(e)) + 1 / e) / 2;
|
|
1453
1453
|
}
|
|
1454
|
-
function
|
|
1454
|
+
function ur(e) {
|
|
1455
1455
|
return ((e = Math.exp(e)) - 1 / e) / 2;
|
|
1456
1456
|
}
|
|
1457
|
-
function
|
|
1457
|
+
function dr(e) {
|
|
1458
1458
|
return ((e = Math.exp(2 * e)) - 1) / (e + 1);
|
|
1459
1459
|
}
|
|
1460
|
-
var
|
|
1460
|
+
var fr = (function e(t, n, r) {
|
|
1461
1461
|
function i(e, i) {
|
|
1462
1462
|
var a = e[0], o = e[1], s = e[2], c = i[0], l = i[1], u = i[2], d = c - a, f = l - o, p = d * d + f * f, m, h;
|
|
1463
|
-
if (p <
|
|
1463
|
+
if (p < cr) h = Math.log(u / s) / t, m = function(e) {
|
|
1464
1464
|
return [
|
|
1465
1465
|
a + e * d,
|
|
1466
1466
|
o + e * f,
|
|
@@ -1470,11 +1470,11 @@ var dr = (function e(t, n, r) {
|
|
|
1470
1470
|
else {
|
|
1471
1471
|
var g = Math.sqrt(p), _ = (u * u - s * s + r * p) / (2 * s * n * g), v = (u * u - s * s - r * p) / (2 * u * n * g), y = Math.log(Math.sqrt(_ * _ + 1) - _);
|
|
1472
1472
|
h = (Math.log(Math.sqrt(v * v + 1) - v) - y) / t, m = function(e) {
|
|
1473
|
-
var r = e * h, i =
|
|
1473
|
+
var r = e * h, i = lr(y), c = s / (n * g) * (i * dr(t * r + y) - ur(y));
|
|
1474
1474
|
return [
|
|
1475
1475
|
a + c * d,
|
|
1476
1476
|
o + c * f,
|
|
1477
|
-
s * i /
|
|
1477
|
+
s * i / lr(t * r + y)
|
|
1478
1478
|
];
|
|
1479
1479
|
};
|
|
1480
1480
|
}
|
|
@@ -1484,77 +1484,77 @@ var dr = (function e(t, n, r) {
|
|
|
1484
1484
|
var n = Math.max(.001, +t), r = n * n;
|
|
1485
1485
|
return e(n, r, r * r);
|
|
1486
1486
|
}, i;
|
|
1487
|
-
})(Math.SQRT2, 2, 4),
|
|
1487
|
+
})(Math.SQRT2, 2, 4), pr = 0, mr = 0, hr = 0, gr = 1e3, _r, vr, yr = 0, br = 0, xr = 0, Sr = typeof performance == "object" && performance.now ? performance : Date, Cr = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(e) {
|
|
1488
1488
|
setTimeout(e, 17);
|
|
1489
1489
|
};
|
|
1490
|
-
function Cr() {
|
|
1491
|
-
return yr ||= (Sr(wr), xr.now() + br);
|
|
1492
|
-
}
|
|
1493
1490
|
function wr() {
|
|
1494
|
-
|
|
1491
|
+
return br ||= (Cr(Tr), Sr.now() + xr);
|
|
1495
1492
|
}
|
|
1496
1493
|
function Tr() {
|
|
1494
|
+
br = 0;
|
|
1495
|
+
}
|
|
1496
|
+
function Er() {
|
|
1497
1497
|
this._call = this._time = this._next = null;
|
|
1498
1498
|
}
|
|
1499
|
-
|
|
1500
|
-
constructor:
|
|
1499
|
+
Er.prototype = Dr.prototype = {
|
|
1500
|
+
constructor: Er,
|
|
1501
1501
|
restart: function(e, t, n) {
|
|
1502
1502
|
if (typeof e != "function") throw TypeError("callback is not a function");
|
|
1503
|
-
n = (n == null ?
|
|
1503
|
+
n = (n == null ? wr() : +n) + (t == null ? 0 : +t), !this._next && vr !== this && (vr ? vr._next = this : _r = this, vr = this), this._call = e, this._time = n, Mr();
|
|
1504
1504
|
},
|
|
1505
1505
|
stop: function() {
|
|
1506
|
-
this._call && (this._call = null, this._time = Infinity,
|
|
1506
|
+
this._call && (this._call = null, this._time = Infinity, Mr());
|
|
1507
1507
|
}
|
|
1508
1508
|
};
|
|
1509
|
-
function
|
|
1510
|
-
var r = new
|
|
1509
|
+
function Dr(e, t, n) {
|
|
1510
|
+
var r = new Er();
|
|
1511
1511
|
return r.restart(e, t, n), r;
|
|
1512
1512
|
}
|
|
1513
|
-
function Dr() {
|
|
1514
|
-
Cr(), ++fr;
|
|
1515
|
-
for (var e = gr, t; e;) (t = yr - e._time) >= 0 && e._call.call(void 0, t), e = e._next;
|
|
1516
|
-
--fr;
|
|
1517
|
-
}
|
|
1518
1513
|
function Or() {
|
|
1519
|
-
|
|
1514
|
+
wr(), ++pr;
|
|
1515
|
+
for (var e = _r, t; e;) (t = br - e._time) >= 0 && e._call.call(void 0, t), e = e._next;
|
|
1516
|
+
--pr;
|
|
1517
|
+
}
|
|
1518
|
+
function kr() {
|
|
1519
|
+
br = (yr = Sr.now()) + xr, pr = mr = 0;
|
|
1520
1520
|
try {
|
|
1521
|
-
|
|
1521
|
+
Or();
|
|
1522
1522
|
} finally {
|
|
1523
|
-
|
|
1523
|
+
pr = 0, jr(), br = 0;
|
|
1524
1524
|
}
|
|
1525
1525
|
}
|
|
1526
|
-
function kr() {
|
|
1527
|
-
var e = xr.now(), t = e - vr;
|
|
1528
|
-
t > hr && (br -= t, vr = e);
|
|
1529
|
-
}
|
|
1530
1526
|
function Ar() {
|
|
1531
|
-
|
|
1532
|
-
|
|
1527
|
+
var e = Sr.now(), t = e - yr;
|
|
1528
|
+
t > gr && (xr -= t, yr = e);
|
|
1533
1529
|
}
|
|
1534
|
-
function jr(
|
|
1535
|
-
|
|
1530
|
+
function jr() {
|
|
1531
|
+
for (var e, t = _r, n, r = Infinity; t;) t._call ? (r > t._time && (r = t._time), e = t, t = t._next) : (n = t._next, t._next = null, t = e ? e._next = n : _r = n);
|
|
1532
|
+
vr = e, Mr(r);
|
|
1533
|
+
}
|
|
1534
|
+
function Mr(e) {
|
|
1535
|
+
pr || (mr &&= clearTimeout(mr), e - br > 24 ? (e < Infinity && (mr = setTimeout(kr, e - Sr.now() - xr)), hr &&= clearInterval(hr)) : (hr ||= (yr = Sr.now(), setInterval(Ar, gr)), pr = 1, Cr(kr)));
|
|
1536
1536
|
}
|
|
1537
1537
|
//#endregion
|
|
1538
1538
|
//#region node_modules/d3-timer/src/timeout.js
|
|
1539
|
-
function
|
|
1540
|
-
var r = new
|
|
1539
|
+
function Nr(e, t, n) {
|
|
1540
|
+
var r = new Er();
|
|
1541
1541
|
return t = t == null ? 0 : +t, r.restart((n) => {
|
|
1542
1542
|
r.stop(), e(n + t);
|
|
1543
1543
|
}, t, n), r;
|
|
1544
1544
|
}
|
|
1545
1545
|
//#endregion
|
|
1546
1546
|
//#region node_modules/d3-transition/src/transition/schedule.js
|
|
1547
|
-
var
|
|
1548
|
-
function
|
|
1547
|
+
var Pr = w("start", "end", "cancel", "interrupt"), Fr = [];
|
|
1548
|
+
function Ir(e, t, n, r, i, a) {
|
|
1549
1549
|
var o = e.__transition;
|
|
1550
1550
|
if (!o) e.__transition = {};
|
|
1551
1551
|
else if (n in o) return;
|
|
1552
|
-
|
|
1552
|
+
Br(e, n, {
|
|
1553
1553
|
name: t,
|
|
1554
1554
|
index: r,
|
|
1555
1555
|
group: i,
|
|
1556
|
-
on:
|
|
1557
|
-
tween:
|
|
1556
|
+
on: Pr,
|
|
1557
|
+
tween: Fr,
|
|
1558
1558
|
time: a.time,
|
|
1559
1559
|
delay: a.delay,
|
|
1560
1560
|
duration: a.duration,
|
|
@@ -1563,24 +1563,24 @@ function Fr(e, t, n, r, i, a) {
|
|
|
1563
1563
|
state: 0
|
|
1564
1564
|
});
|
|
1565
1565
|
}
|
|
1566
|
-
function
|
|
1567
|
-
var n =
|
|
1566
|
+
function Lr(e, t) {
|
|
1567
|
+
var n = zr(e, t);
|
|
1568
1568
|
if (n.state > 0) throw Error("too late; already scheduled");
|
|
1569
1569
|
return n;
|
|
1570
1570
|
}
|
|
1571
|
-
function
|
|
1572
|
-
var n =
|
|
1571
|
+
function Rr(e, t) {
|
|
1572
|
+
var n = zr(e, t);
|
|
1573
1573
|
if (n.state > 3) throw Error("too late; already running");
|
|
1574
1574
|
return n;
|
|
1575
1575
|
}
|
|
1576
|
-
function
|
|
1576
|
+
function zr(e, t) {
|
|
1577
1577
|
var n = e.__transition;
|
|
1578
1578
|
if (!n || !(n = n[t])) throw Error("transition not found");
|
|
1579
1579
|
return n;
|
|
1580
1580
|
}
|
|
1581
|
-
function
|
|
1581
|
+
function Br(e, t, n) {
|
|
1582
1582
|
var r = e.__transition, i;
|
|
1583
|
-
r[t] = n, n.timer =
|
|
1583
|
+
r[t] = n, n.timer = Dr(a, 0, n.time);
|
|
1584
1584
|
function a(e) {
|
|
1585
1585
|
n.state = 1, n.timer.restart(o, n.delay, n.time), n.delay <= e && o(e - n.delay);
|
|
1586
1586
|
}
|
|
@@ -1588,10 +1588,10 @@ function zr(e, t, n) {
|
|
|
1588
1588
|
var l, u, d, f;
|
|
1589
1589
|
if (n.state !== 1) return c();
|
|
1590
1590
|
for (l in r) if (f = r[l], f.name === n.name) {
|
|
1591
|
-
if (f.state === 3) return
|
|
1591
|
+
if (f.state === 3) return Nr(o);
|
|
1592
1592
|
f.state === 4 ? (f.state = 6, f.timer.stop(), f.on.call("interrupt", e, e.__data__, f.index, f.group), delete r[l]) : +l < t && (f.state = 6, f.timer.stop(), f.on.call("cancel", e, e.__data__, f.index, f.group), delete r[l]);
|
|
1593
1593
|
}
|
|
1594
|
-
if (
|
|
1594
|
+
if (Nr(function() {
|
|
1595
1595
|
n.state === 3 && (n.state = 4, n.timer.restart(s, n.delay, n.time), s(a));
|
|
1596
1596
|
}), n.state = 2, n.on.call("start", e, e.__data__, n.index, n.group), n.state === 2) {
|
|
1597
1597
|
for (n.state = 3, i = Array(d = n.tween.length), l = 0, u = -1; l < d; ++l) (f = n.tween[l].value.call(e, e.__data__, n.index, n.group)) && (i[++u] = f);
|
|
@@ -1609,7 +1609,7 @@ function zr(e, t, n) {
|
|
|
1609
1609
|
}
|
|
1610
1610
|
//#endregion
|
|
1611
1611
|
//#region node_modules/d3-transition/src/interrupt.js
|
|
1612
|
-
function
|
|
1612
|
+
function Vr(e, t) {
|
|
1613
1613
|
var n = e.__transition, r, i, a = !0, o;
|
|
1614
1614
|
if (n) {
|
|
1615
1615
|
for (o in t = t == null ? null : t + "", n) {
|
|
@@ -1624,17 +1624,17 @@ function Br(e, t) {
|
|
|
1624
1624
|
}
|
|
1625
1625
|
//#endregion
|
|
1626
1626
|
//#region node_modules/d3-transition/src/selection/interrupt.js
|
|
1627
|
-
function
|
|
1627
|
+
function Hr(e) {
|
|
1628
1628
|
return this.each(function() {
|
|
1629
|
-
|
|
1629
|
+
Vr(this, e);
|
|
1630
1630
|
});
|
|
1631
1631
|
}
|
|
1632
1632
|
//#endregion
|
|
1633
1633
|
//#region node_modules/d3-transition/src/transition/tween.js
|
|
1634
|
-
function
|
|
1634
|
+
function Ur(e, t) {
|
|
1635
1635
|
var n, r;
|
|
1636
1636
|
return function() {
|
|
1637
|
-
var i =
|
|
1637
|
+
var i = Rr(this, e), a = i.tween;
|
|
1638
1638
|
if (a !== n) {
|
|
1639
1639
|
r = n = a;
|
|
1640
1640
|
for (var o = 0, s = r.length; o < s; ++o) if (r[o].name === t) {
|
|
@@ -1645,11 +1645,11 @@ function Hr(e, t) {
|
|
|
1645
1645
|
i.tween = r;
|
|
1646
1646
|
};
|
|
1647
1647
|
}
|
|
1648
|
-
function
|
|
1648
|
+
function Wr(e, t, n) {
|
|
1649
1649
|
var r, i;
|
|
1650
1650
|
if (typeof n != "function") throw Error();
|
|
1651
1651
|
return function() {
|
|
1652
|
-
var a =
|
|
1652
|
+
var a = Rr(this, e), o = a.tween;
|
|
1653
1653
|
if (o !== r) {
|
|
1654
1654
|
i = (r = o).slice();
|
|
1655
1655
|
for (var s = {
|
|
@@ -1664,439 +1664,439 @@ function Ur(e, t, n) {
|
|
|
1664
1664
|
a.tween = i;
|
|
1665
1665
|
};
|
|
1666
1666
|
}
|
|
1667
|
-
function
|
|
1667
|
+
function Gr(e, t) {
|
|
1668
1668
|
var n = this._id;
|
|
1669
1669
|
if (e += "", arguments.length < 2) {
|
|
1670
|
-
for (var r =
|
|
1670
|
+
for (var r = zr(this.node(), n).tween, i = 0, a = r.length, o; i < a; ++i) if ((o = r[i]).name === e) return o.value;
|
|
1671
1671
|
return null;
|
|
1672
1672
|
}
|
|
1673
|
-
return this.each((t == null ?
|
|
1673
|
+
return this.each((t == null ? Ur : Wr)(n, e, t));
|
|
1674
1674
|
}
|
|
1675
|
-
function
|
|
1675
|
+
function Kr(e, t, n) {
|
|
1676
1676
|
var r = e._id;
|
|
1677
1677
|
return e.each(function() {
|
|
1678
|
-
var e =
|
|
1678
|
+
var e = Rr(this, r);
|
|
1679
1679
|
(e.value ||= {})[t] = n.apply(this, arguments);
|
|
1680
1680
|
}), function(e) {
|
|
1681
|
-
return
|
|
1681
|
+
return zr(e, r).value[t];
|
|
1682
1682
|
};
|
|
1683
1683
|
}
|
|
1684
1684
|
//#endregion
|
|
1685
1685
|
//#region node_modules/d3-transition/src/transition/interpolate.js
|
|
1686
|
-
function
|
|
1686
|
+
function qr(e, t) {
|
|
1687
1687
|
var n;
|
|
1688
|
-
return (typeof t == "number" ?
|
|
1688
|
+
return (typeof t == "number" ? Gn : t instanceof _n ? Bn : (n = _n(t)) ? (t = n, Bn) : Zn)(e, t);
|
|
1689
1689
|
}
|
|
1690
1690
|
//#endregion
|
|
1691
1691
|
//#region node_modules/d3-transition/src/transition/attr.js
|
|
1692
|
-
function
|
|
1692
|
+
function Jr(e) {
|
|
1693
1693
|
return function() {
|
|
1694
1694
|
this.removeAttribute(e);
|
|
1695
1695
|
};
|
|
1696
1696
|
}
|
|
1697
|
-
function
|
|
1697
|
+
function Yr(e) {
|
|
1698
1698
|
return function() {
|
|
1699
1699
|
this.removeAttributeNS(e.space, e.local);
|
|
1700
1700
|
};
|
|
1701
1701
|
}
|
|
1702
|
-
function
|
|
1702
|
+
function Xr(e, t, n) {
|
|
1703
1703
|
var r, i = n + "", a;
|
|
1704
1704
|
return function() {
|
|
1705
1705
|
var o = this.getAttribute(e);
|
|
1706
1706
|
return o === i ? null : o === r ? a : a = t(r = o, n);
|
|
1707
1707
|
};
|
|
1708
1708
|
}
|
|
1709
|
-
function
|
|
1709
|
+
function Zr(e, t, n) {
|
|
1710
1710
|
var r, i = n + "", a;
|
|
1711
1711
|
return function() {
|
|
1712
1712
|
var o = this.getAttributeNS(e.space, e.local);
|
|
1713
1713
|
return o === i ? null : o === r ? a : a = t(r = o, n);
|
|
1714
1714
|
};
|
|
1715
1715
|
}
|
|
1716
|
-
function
|
|
1716
|
+
function Qr(e, t, n) {
|
|
1717
1717
|
var r, i, a;
|
|
1718
1718
|
return function() {
|
|
1719
1719
|
var o, s = n(this), c;
|
|
1720
1720
|
return s == null ? void this.removeAttribute(e) : (o = this.getAttribute(e), c = s + "", o === c ? null : o === r && c === i ? a : (i = c, a = t(r = o, s)));
|
|
1721
1721
|
};
|
|
1722
1722
|
}
|
|
1723
|
-
function
|
|
1723
|
+
function $r(e, t, n) {
|
|
1724
1724
|
var r, i, a;
|
|
1725
1725
|
return function() {
|
|
1726
1726
|
var o, s = n(this), c;
|
|
1727
1727
|
return s == null ? void this.removeAttributeNS(e.space, e.local) : (o = this.getAttributeNS(e.space, e.local), c = s + "", o === c ? null : o === r && c === i ? a : (i = c, a = t(r = o, s)));
|
|
1728
1728
|
};
|
|
1729
1729
|
}
|
|
1730
|
-
function
|
|
1731
|
-
var n = A(e), r = n === "transform" ?
|
|
1732
|
-
return this.attrTween(e, typeof t == "function" ? (n.local ?
|
|
1730
|
+
function ei(e, t) {
|
|
1731
|
+
var n = A(e), r = n === "transform" ? sr : qr;
|
|
1732
|
+
return this.attrTween(e, typeof t == "function" ? (n.local ? $r : Qr)(n, r, Kr(this, "attr." + e, t)) : t == null ? (n.local ? Yr : Jr)(n) : (n.local ? Zr : Xr)(n, r, t));
|
|
1733
1733
|
}
|
|
1734
1734
|
//#endregion
|
|
1735
1735
|
//#region node_modules/d3-transition/src/transition/attrTween.js
|
|
1736
|
-
function
|
|
1736
|
+
function ti(e, t) {
|
|
1737
1737
|
return function(n) {
|
|
1738
1738
|
this.setAttribute(e, t.call(this, n));
|
|
1739
1739
|
};
|
|
1740
1740
|
}
|
|
1741
|
-
function
|
|
1741
|
+
function ni(e, t) {
|
|
1742
1742
|
return function(n) {
|
|
1743
1743
|
this.setAttributeNS(e.space, e.local, t.call(this, n));
|
|
1744
1744
|
};
|
|
1745
1745
|
}
|
|
1746
|
-
function
|
|
1746
|
+
function ri(e, t) {
|
|
1747
1747
|
var n, r;
|
|
1748
1748
|
function i() {
|
|
1749
1749
|
var i = t.apply(this, arguments);
|
|
1750
|
-
return i !== r && (n = (r = i) &&
|
|
1750
|
+
return i !== r && (n = (r = i) && ni(e, i)), n;
|
|
1751
1751
|
}
|
|
1752
1752
|
return i._value = t, i;
|
|
1753
1753
|
}
|
|
1754
|
-
function
|
|
1754
|
+
function ii(e, t) {
|
|
1755
1755
|
var n, r;
|
|
1756
1756
|
function i() {
|
|
1757
1757
|
var i = t.apply(this, arguments);
|
|
1758
|
-
return i !== r && (n = (r = i) &&
|
|
1758
|
+
return i !== r && (n = (r = i) && ti(e, i)), n;
|
|
1759
1759
|
}
|
|
1760
1760
|
return i._value = t, i;
|
|
1761
1761
|
}
|
|
1762
|
-
function
|
|
1762
|
+
function ai(e, t) {
|
|
1763
1763
|
var n = "attr." + e;
|
|
1764
1764
|
if (arguments.length < 2) return (n = this.tween(n)) && n._value;
|
|
1765
1765
|
if (t == null) return this.tween(n, null);
|
|
1766
1766
|
if (typeof t != "function") throw Error();
|
|
1767
1767
|
var r = A(e);
|
|
1768
|
-
return this.tween(n, (r.local ?
|
|
1768
|
+
return this.tween(n, (r.local ? ri : ii)(r, t));
|
|
1769
1769
|
}
|
|
1770
1770
|
//#endregion
|
|
1771
1771
|
//#region node_modules/d3-transition/src/transition/delay.js
|
|
1772
|
-
function
|
|
1772
|
+
function oi(e, t) {
|
|
1773
1773
|
return function() {
|
|
1774
|
-
|
|
1774
|
+
Lr(this, e).delay = +t.apply(this, arguments);
|
|
1775
1775
|
};
|
|
1776
1776
|
}
|
|
1777
|
-
function
|
|
1777
|
+
function si(e, t) {
|
|
1778
1778
|
return t = +t, function() {
|
|
1779
|
-
|
|
1779
|
+
Lr(this, e).delay = t;
|
|
1780
1780
|
};
|
|
1781
1781
|
}
|
|
1782
|
-
function
|
|
1782
|
+
function ci(e) {
|
|
1783
1783
|
var t = this._id;
|
|
1784
|
-
return arguments.length ? this.each((typeof e == "function" ?
|
|
1784
|
+
return arguments.length ? this.each((typeof e == "function" ? oi : si)(t, e)) : zr(this.node(), t).delay;
|
|
1785
1785
|
}
|
|
1786
1786
|
//#endregion
|
|
1787
1787
|
//#region node_modules/d3-transition/src/transition/duration.js
|
|
1788
|
-
function
|
|
1788
|
+
function li(e, t) {
|
|
1789
1789
|
return function() {
|
|
1790
|
-
|
|
1790
|
+
Rr(this, e).duration = +t.apply(this, arguments);
|
|
1791
1791
|
};
|
|
1792
1792
|
}
|
|
1793
|
-
function
|
|
1793
|
+
function ui(e, t) {
|
|
1794
1794
|
return t = +t, function() {
|
|
1795
|
-
|
|
1795
|
+
Rr(this, e).duration = t;
|
|
1796
1796
|
};
|
|
1797
1797
|
}
|
|
1798
|
-
function
|
|
1798
|
+
function di(e) {
|
|
1799
1799
|
var t = this._id;
|
|
1800
|
-
return arguments.length ? this.each((typeof e == "function" ?
|
|
1800
|
+
return arguments.length ? this.each((typeof e == "function" ? li : ui)(t, e)) : zr(this.node(), t).duration;
|
|
1801
1801
|
}
|
|
1802
1802
|
//#endregion
|
|
1803
1803
|
//#region node_modules/d3-transition/src/transition/ease.js
|
|
1804
|
-
function
|
|
1804
|
+
function fi(e, t) {
|
|
1805
1805
|
if (typeof t != "function") throw Error();
|
|
1806
1806
|
return function() {
|
|
1807
|
-
|
|
1807
|
+
Rr(this, e).ease = t;
|
|
1808
1808
|
};
|
|
1809
1809
|
}
|
|
1810
|
-
function
|
|
1810
|
+
function pi(e) {
|
|
1811
1811
|
var t = this._id;
|
|
1812
|
-
return arguments.length ? this.each(
|
|
1812
|
+
return arguments.length ? this.each(fi(t, e)) : zr(this.node(), t).ease;
|
|
1813
1813
|
}
|
|
1814
1814
|
//#endregion
|
|
1815
1815
|
//#region node_modules/d3-transition/src/transition/easeVarying.js
|
|
1816
|
-
function
|
|
1816
|
+
function mi(e, t) {
|
|
1817
1817
|
return function() {
|
|
1818
1818
|
var n = t.apply(this, arguments);
|
|
1819
1819
|
if (typeof n != "function") throw Error();
|
|
1820
|
-
|
|
1820
|
+
Rr(this, e).ease = n;
|
|
1821
1821
|
};
|
|
1822
1822
|
}
|
|
1823
|
-
function
|
|
1823
|
+
function hi(e) {
|
|
1824
1824
|
if (typeof e != "function") throw Error();
|
|
1825
|
-
return this.each(
|
|
1825
|
+
return this.each(mi(this._id, e));
|
|
1826
1826
|
}
|
|
1827
1827
|
//#endregion
|
|
1828
1828
|
//#region node_modules/d3-transition/src/transition/filter.js
|
|
1829
|
-
function
|
|
1829
|
+
function gi(e) {
|
|
1830
1830
|
typeof e != "function" && (e = V(e));
|
|
1831
1831
|
for (var t = this._groups, n = t.length, r = Array(n), i = 0; i < n; ++i) for (var a = t[i], o = a.length, s = r[i] = [], c, l = 0; l < o; ++l) (c = a[l]) && e.call(c, c.__data__, l, a) && s.push(c);
|
|
1832
|
-
return new
|
|
1832
|
+
return new Gi(r, this._parents, this._name, this._id);
|
|
1833
1833
|
}
|
|
1834
1834
|
//#endregion
|
|
1835
1835
|
//#region node_modules/d3-transition/src/transition/merge.js
|
|
1836
|
-
function
|
|
1836
|
+
function _i(e) {
|
|
1837
1837
|
if (e._id !== this._id) throw Error();
|
|
1838
1838
|
for (var t = this._groups, n = e._groups, r = t.length, i = n.length, a = Math.min(r, i), o = Array(r), s = 0; s < a; ++s) for (var c = t[s], l = n[s], u = c.length, d = o[s] = Array(u), f, p = 0; p < u; ++p) (f = c[p] || l[p]) && (d[p] = f);
|
|
1839
1839
|
for (; s < r; ++s) o[s] = t[s];
|
|
1840
|
-
return new
|
|
1840
|
+
return new Gi(o, this._parents, this._name, this._id);
|
|
1841
1841
|
}
|
|
1842
1842
|
//#endregion
|
|
1843
1843
|
//#region node_modules/d3-transition/src/transition/on.js
|
|
1844
|
-
function
|
|
1844
|
+
function vi(e) {
|
|
1845
1845
|
return (e + "").trim().split(/^|\s+/).every(function(e) {
|
|
1846
1846
|
var t = e.indexOf(".");
|
|
1847
1847
|
return t >= 0 && (e = e.slice(0, t)), !e || e === "start";
|
|
1848
1848
|
});
|
|
1849
1849
|
}
|
|
1850
|
-
function
|
|
1851
|
-
var r, i, a =
|
|
1850
|
+
function yi(e, t, n) {
|
|
1851
|
+
var r, i, a = vi(t) ? Lr : Rr;
|
|
1852
1852
|
return function() {
|
|
1853
1853
|
var o = a(this, e), s = o.on;
|
|
1854
1854
|
s !== r && (i = (r = s).copy()).on(t, n), o.on = i;
|
|
1855
1855
|
};
|
|
1856
1856
|
}
|
|
1857
|
-
function
|
|
1857
|
+
function bi(e, t) {
|
|
1858
1858
|
var n = this._id;
|
|
1859
|
-
return arguments.length < 2 ?
|
|
1859
|
+
return arguments.length < 2 ? zr(this.node(), n).on.on(e) : this.each(yi(n, e, t));
|
|
1860
1860
|
}
|
|
1861
1861
|
//#endregion
|
|
1862
1862
|
//#region node_modules/d3-transition/src/transition/remove.js
|
|
1863
|
-
function
|
|
1863
|
+
function xi(e) {
|
|
1864
1864
|
return function() {
|
|
1865
1865
|
var t = this.parentNode;
|
|
1866
1866
|
for (var n in this.__transition) if (+n !== e) return;
|
|
1867
1867
|
t && t.removeChild(this);
|
|
1868
1868
|
};
|
|
1869
1869
|
}
|
|
1870
|
-
function
|
|
1871
|
-
return this.on("end.remove",
|
|
1870
|
+
function Si() {
|
|
1871
|
+
return this.on("end.remove", xi(this._id));
|
|
1872
1872
|
}
|
|
1873
1873
|
//#endregion
|
|
1874
1874
|
//#region node_modules/d3-transition/src/transition/select.js
|
|
1875
|
-
function
|
|
1875
|
+
function Ci(e) {
|
|
1876
1876
|
var t = this._name, n = this._id;
|
|
1877
1877
|
typeof e != "function" && (e = F(e));
|
|
1878
|
-
for (var r = this._groups, i = r.length, a = Array(i), o = 0; o < i; ++o) for (var s = r[o], c = s.length, l = a[o] = Array(c), u, d, f = 0; f < c; ++f) (u = s[f]) && (d = e.call(u, u.__data__, f, s)) && ("__data__" in u && (d.__data__ = u.__data__), l[f] = d,
|
|
1879
|
-
return new
|
|
1878
|
+
for (var r = this._groups, i = r.length, a = Array(i), o = 0; o < i; ++o) for (var s = r[o], c = s.length, l = a[o] = Array(c), u, d, f = 0; f < c; ++f) (u = s[f]) && (d = e.call(u, u.__data__, f, s)) && ("__data__" in u && (d.__data__ = u.__data__), l[f] = d, Ir(l[f], t, n, f, l, zr(u, n)));
|
|
1879
|
+
return new Gi(a, this._parents, t, n);
|
|
1880
1880
|
}
|
|
1881
1881
|
//#endregion
|
|
1882
1882
|
//#region node_modules/d3-transition/src/transition/selectAll.js
|
|
1883
|
-
function
|
|
1883
|
+
function wi(e) {
|
|
1884
1884
|
var t = this._name, n = this._id;
|
|
1885
1885
|
typeof e != "function" && (e = ee(e));
|
|
1886
1886
|
for (var r = this._groups, i = r.length, a = [], o = [], s = 0; s < i; ++s) for (var c = r[s], l = c.length, u, d = 0; d < l; ++d) if (u = c[d]) {
|
|
1887
|
-
for (var f = e.call(u, u.__data__, d, c), p, m =
|
|
1887
|
+
for (var f = e.call(u, u.__data__, d, c), p, m = zr(u, n), h = 0, g = f.length; h < g; ++h) (p = f[h]) && Ir(p, t, n, h, f, m);
|
|
1888
1888
|
a.push(f), o.push(u);
|
|
1889
1889
|
}
|
|
1890
|
-
return new
|
|
1890
|
+
return new Gi(a, o, t, n);
|
|
1891
1891
|
}
|
|
1892
1892
|
//#endregion
|
|
1893
1893
|
//#region node_modules/d3-transition/src/transition/selection.js
|
|
1894
|
-
var
|
|
1895
|
-
function
|
|
1896
|
-
return new
|
|
1894
|
+
var Ti = Nt.prototype.constructor;
|
|
1895
|
+
function Ei() {
|
|
1896
|
+
return new Ti(this._groups, this._parents);
|
|
1897
1897
|
}
|
|
1898
1898
|
//#endregion
|
|
1899
1899
|
//#region node_modules/d3-transition/src/transition/style.js
|
|
1900
|
-
function
|
|
1900
|
+
function Di(e, t) {
|
|
1901
1901
|
var n, r, i;
|
|
1902
1902
|
return function() {
|
|
1903
1903
|
var a = Be(this, e), o = (this.style.removeProperty(e), Be(this, e));
|
|
1904
1904
|
return a === o ? null : a === n && o === r ? i : i = t(n = a, r = o);
|
|
1905
1905
|
};
|
|
1906
1906
|
}
|
|
1907
|
-
function
|
|
1907
|
+
function Oi(e) {
|
|
1908
1908
|
return function() {
|
|
1909
1909
|
this.style.removeProperty(e);
|
|
1910
1910
|
};
|
|
1911
1911
|
}
|
|
1912
|
-
function
|
|
1912
|
+
function ki(e, t, n) {
|
|
1913
1913
|
var r, i = n + "", a;
|
|
1914
1914
|
return function() {
|
|
1915
1915
|
var o = Be(this, e);
|
|
1916
1916
|
return o === i ? null : o === r ? a : a = t(r = o, n);
|
|
1917
1917
|
};
|
|
1918
1918
|
}
|
|
1919
|
-
function
|
|
1919
|
+
function Ai(e, t, n) {
|
|
1920
1920
|
var r, i, a;
|
|
1921
1921
|
return function() {
|
|
1922
1922
|
var o = Be(this, e), s = n(this), c = s + "";
|
|
1923
1923
|
return s ?? (c = s = (this.style.removeProperty(e), Be(this, e))), o === c ? null : o === r && c === i ? a : (i = c, a = t(r = o, s));
|
|
1924
1924
|
};
|
|
1925
1925
|
}
|
|
1926
|
-
function
|
|
1926
|
+
function ji(e, t) {
|
|
1927
1927
|
var n, r, i, a = "style." + t, o = "end." + a, s;
|
|
1928
1928
|
return function() {
|
|
1929
|
-
var c =
|
|
1929
|
+
var c = Rr(this, e), l = c.on, u = c.value[a] == null ? s ||= Oi(t) : void 0;
|
|
1930
1930
|
(l !== n || i !== u) && (r = (n = l).copy()).on(o, i = u), c.on = r;
|
|
1931
1931
|
};
|
|
1932
1932
|
}
|
|
1933
|
-
function
|
|
1934
|
-
var r = (e += "") == "transform" ?
|
|
1935
|
-
return t == null ? this.styleTween(e,
|
|
1933
|
+
function Mi(e, t, n) {
|
|
1934
|
+
var r = (e += "") == "transform" ? or : qr;
|
|
1935
|
+
return t == null ? this.styleTween(e, Di(e, r)).on("end.style." + e, Oi(e)) : typeof t == "function" ? this.styleTween(e, Ai(e, r, Kr(this, "style." + e, t))).each(ji(this._id, e)) : this.styleTween(e, ki(e, r, t), n).on("end.style." + e, null);
|
|
1936
1936
|
}
|
|
1937
1937
|
//#endregion
|
|
1938
1938
|
//#region node_modules/d3-transition/src/transition/styleTween.js
|
|
1939
|
-
function
|
|
1939
|
+
function Ni(e, t, n) {
|
|
1940
1940
|
return function(r) {
|
|
1941
1941
|
this.style.setProperty(e, t.call(this, r), n);
|
|
1942
1942
|
};
|
|
1943
1943
|
}
|
|
1944
|
-
function
|
|
1944
|
+
function Pi(e, t, n) {
|
|
1945
1945
|
var r, i;
|
|
1946
1946
|
function a() {
|
|
1947
1947
|
var a = t.apply(this, arguments);
|
|
1948
|
-
return a !== i && (r = (i = a) &&
|
|
1948
|
+
return a !== i && (r = (i = a) && Ni(e, a, n)), r;
|
|
1949
1949
|
}
|
|
1950
1950
|
return a._value = t, a;
|
|
1951
1951
|
}
|
|
1952
|
-
function
|
|
1952
|
+
function Fi(e, t, n) {
|
|
1953
1953
|
var r = "style." + (e += "");
|
|
1954
1954
|
if (arguments.length < 2) return (r = this.tween(r)) && r._value;
|
|
1955
1955
|
if (t == null) return this.tween(r, null);
|
|
1956
1956
|
if (typeof t != "function") throw Error();
|
|
1957
|
-
return this.tween(r,
|
|
1957
|
+
return this.tween(r, Pi(e, t, n ?? ""));
|
|
1958
1958
|
}
|
|
1959
1959
|
//#endregion
|
|
1960
1960
|
//#region node_modules/d3-transition/src/transition/text.js
|
|
1961
|
-
function
|
|
1961
|
+
function Ii(e) {
|
|
1962
1962
|
return function() {
|
|
1963
1963
|
this.textContent = e;
|
|
1964
1964
|
};
|
|
1965
1965
|
}
|
|
1966
|
-
function
|
|
1966
|
+
function Li(e) {
|
|
1967
1967
|
return function() {
|
|
1968
1968
|
var t = e(this);
|
|
1969
1969
|
this.textContent = t ?? "";
|
|
1970
1970
|
};
|
|
1971
1971
|
}
|
|
1972
|
-
function
|
|
1973
|
-
return this.tween("text", typeof e == "function" ?
|
|
1972
|
+
function Ri(e) {
|
|
1973
|
+
return this.tween("text", typeof e == "function" ? Li(Kr(this, "text", e)) : Ii(e == null ? "" : e + ""));
|
|
1974
1974
|
}
|
|
1975
1975
|
//#endregion
|
|
1976
1976
|
//#region node_modules/d3-transition/src/transition/textTween.js
|
|
1977
|
-
function
|
|
1977
|
+
function zi(e) {
|
|
1978
1978
|
return function(t) {
|
|
1979
1979
|
this.textContent = e.call(this, t);
|
|
1980
1980
|
};
|
|
1981
1981
|
}
|
|
1982
|
-
function
|
|
1982
|
+
function Bi(e) {
|
|
1983
1983
|
var t, n;
|
|
1984
1984
|
function r() {
|
|
1985
1985
|
var r = e.apply(this, arguments);
|
|
1986
|
-
return r !== n && (t = (n = r) &&
|
|
1986
|
+
return r !== n && (t = (n = r) && zi(r)), t;
|
|
1987
1987
|
}
|
|
1988
1988
|
return r._value = e, r;
|
|
1989
1989
|
}
|
|
1990
|
-
function
|
|
1990
|
+
function Vi(e) {
|
|
1991
1991
|
var t = "text";
|
|
1992
1992
|
if (arguments.length < 1) return (t = this.tween(t)) && t._value;
|
|
1993
1993
|
if (e == null) return this.tween(t, null);
|
|
1994
1994
|
if (typeof e != "function") throw Error();
|
|
1995
|
-
return this.tween(t,
|
|
1995
|
+
return this.tween(t, Bi(e));
|
|
1996
1996
|
}
|
|
1997
1997
|
//#endregion
|
|
1998
1998
|
//#region node_modules/d3-transition/src/transition/transition.js
|
|
1999
|
-
function
|
|
2000
|
-
for (var e = this._name, t = this._id, n =
|
|
2001
|
-
var u =
|
|
2002
|
-
|
|
1999
|
+
function Hi() {
|
|
2000
|
+
for (var e = this._name, t = this._id, n = qi(), r = this._groups, i = r.length, a = 0; a < i; ++a) for (var o = r[a], s = o.length, c, l = 0; l < s; ++l) if (c = o[l]) {
|
|
2001
|
+
var u = zr(c, t);
|
|
2002
|
+
Ir(c, e, n, l, o, {
|
|
2003
2003
|
time: u.time + u.delay + u.duration,
|
|
2004
2004
|
delay: 0,
|
|
2005
2005
|
duration: u.duration,
|
|
2006
2006
|
ease: u.ease
|
|
2007
2007
|
});
|
|
2008
2008
|
}
|
|
2009
|
-
return new
|
|
2009
|
+
return new Gi(r, this._parents, e, n);
|
|
2010
2010
|
}
|
|
2011
2011
|
//#endregion
|
|
2012
2012
|
//#region node_modules/d3-transition/src/transition/end.js
|
|
2013
|
-
function
|
|
2013
|
+
function Ui() {
|
|
2014
2014
|
var e, t, n = this, r = n._id, i = n.size();
|
|
2015
2015
|
return new Promise(function(a, o) {
|
|
2016
2016
|
var s = { value: o }, c = { value: function() {
|
|
2017
2017
|
--i === 0 && a();
|
|
2018
2018
|
} };
|
|
2019
2019
|
n.each(function() {
|
|
2020
|
-
var n =
|
|
2020
|
+
var n = Rr(this, r), i = n.on;
|
|
2021
2021
|
i !== e && (t = (e = i).copy(), t._.cancel.push(s), t._.interrupt.push(s), t._.end.push(c)), n.on = t;
|
|
2022
2022
|
}), i === 0 && a();
|
|
2023
2023
|
});
|
|
2024
2024
|
}
|
|
2025
2025
|
//#endregion
|
|
2026
2026
|
//#region node_modules/d3-transition/src/transition/index.js
|
|
2027
|
-
var
|
|
2028
|
-
function
|
|
2027
|
+
var Wi = 0;
|
|
2028
|
+
function Gi(e, t, n, r) {
|
|
2029
2029
|
this._groups = e, this._parents = t, this._name = n, this._id = r;
|
|
2030
2030
|
}
|
|
2031
|
-
function
|
|
2032
|
-
return
|
|
2033
|
-
}
|
|
2034
|
-
function
|
|
2035
|
-
return ++
|
|
2036
|
-
}
|
|
2037
|
-
var
|
|
2038
|
-
|
|
2039
|
-
constructor:
|
|
2040
|
-
select:
|
|
2041
|
-
selectAll:
|
|
2042
|
-
selectChild:
|
|
2043
|
-
selectChildren:
|
|
2044
|
-
filter:
|
|
2045
|
-
merge:
|
|
2046
|
-
selection:
|
|
2047
|
-
transition:
|
|
2048
|
-
call:
|
|
2049
|
-
nodes:
|
|
2050
|
-
node:
|
|
2051
|
-
size:
|
|
2052
|
-
empty:
|
|
2053
|
-
each:
|
|
2054
|
-
on:
|
|
2055
|
-
attr:
|
|
2056
|
-
attrTween:
|
|
2057
|
-
style:
|
|
2058
|
-
styleTween:
|
|
2059
|
-
text:
|
|
2060
|
-
textTween:
|
|
2061
|
-
remove:
|
|
2062
|
-
tween:
|
|
2063
|
-
delay:
|
|
2064
|
-
duration:
|
|
2065
|
-
ease:
|
|
2066
|
-
easeVarying:
|
|
2067
|
-
end:
|
|
2068
|
-
[Symbol.iterator]:
|
|
2031
|
+
function Ki(e) {
|
|
2032
|
+
return Nt().transition(e);
|
|
2033
|
+
}
|
|
2034
|
+
function qi() {
|
|
2035
|
+
return ++Wi;
|
|
2036
|
+
}
|
|
2037
|
+
var Ji = Nt.prototype;
|
|
2038
|
+
Gi.prototype = Ki.prototype = {
|
|
2039
|
+
constructor: Gi,
|
|
2040
|
+
select: Ci,
|
|
2041
|
+
selectAll: wi,
|
|
2042
|
+
selectChild: Ji.selectChild,
|
|
2043
|
+
selectChildren: Ji.selectChildren,
|
|
2044
|
+
filter: gi,
|
|
2045
|
+
merge: _i,
|
|
2046
|
+
selection: Ei,
|
|
2047
|
+
transition: Hi,
|
|
2048
|
+
call: Ji.call,
|
|
2049
|
+
nodes: Ji.nodes,
|
|
2050
|
+
node: Ji.node,
|
|
2051
|
+
size: Ji.size,
|
|
2052
|
+
empty: Ji.empty,
|
|
2053
|
+
each: Ji.each,
|
|
2054
|
+
on: bi,
|
|
2055
|
+
attr: ei,
|
|
2056
|
+
attrTween: ai,
|
|
2057
|
+
style: Mi,
|
|
2058
|
+
styleTween: Fi,
|
|
2059
|
+
text: Ri,
|
|
2060
|
+
textTween: Vi,
|
|
2061
|
+
remove: Si,
|
|
2062
|
+
tween: Gr,
|
|
2063
|
+
delay: ci,
|
|
2064
|
+
duration: di,
|
|
2065
|
+
ease: pi,
|
|
2066
|
+
easeVarying: hi,
|
|
2067
|
+
end: Ui,
|
|
2068
|
+
[Symbol.iterator]: Ji[Symbol.iterator]
|
|
2069
2069
|
};
|
|
2070
2070
|
//#endregion
|
|
2071
2071
|
//#region node_modules/d3-ease/src/cubic.js
|
|
2072
|
-
function
|
|
2072
|
+
function Yi(e) {
|
|
2073
2073
|
return ((e *= 2) <= 1 ? e * e * e : (e -= 2) * e * e + 2) / 2;
|
|
2074
2074
|
}
|
|
2075
2075
|
//#endregion
|
|
2076
2076
|
//#region node_modules/d3-transition/src/selection/transition.js
|
|
2077
|
-
var
|
|
2077
|
+
var Xi = {
|
|
2078
2078
|
time: null,
|
|
2079
2079
|
delay: 0,
|
|
2080
2080
|
duration: 250,
|
|
2081
|
-
ease:
|
|
2081
|
+
ease: Yi
|
|
2082
2082
|
};
|
|
2083
|
-
function
|
|
2083
|
+
function Zi(e, t) {
|
|
2084
2084
|
for (var n; !(n = e.__transition) || !(n = n[t]);) if (!(e = e.parentNode)) throw Error(`transition ${t} not found`);
|
|
2085
2085
|
return n;
|
|
2086
2086
|
}
|
|
2087
|
-
function
|
|
2087
|
+
function Qi(e) {
|
|
2088
2088
|
var t, n;
|
|
2089
|
-
e instanceof
|
|
2090
|
-
for (var r = this._groups, i = r.length, a = 0; a < i; ++a) for (var o = r[a], s = o.length, c, l = 0; l < s; ++l) (c = o[l]) &&
|
|
2091
|
-
return new
|
|
2089
|
+
e instanceof Gi ? (t = e._id, e = e._name) : (t = qi(), (n = Xi).time = wr(), e = e == null ? null : e + "");
|
|
2090
|
+
for (var r = this._groups, i = r.length, a = 0; a < i; ++a) for (var o = r[a], s = o.length, c, l = 0; l < s; ++l) (c = o[l]) && Ir(c, e, t, l, o, n || Zi(c, t));
|
|
2091
|
+
return new Gi(r, this._parents, e, t);
|
|
2092
2092
|
}
|
|
2093
|
-
|
|
2093
|
+
Nt.prototype.interrupt = Hr, Nt.prototype.transition = Qi;
|
|
2094
2094
|
//#endregion
|
|
2095
2095
|
//#region node_modules/d3-zoom/src/constant.js
|
|
2096
|
-
var
|
|
2096
|
+
var $i = (e) => () => e;
|
|
2097
2097
|
//#endregion
|
|
2098
2098
|
//#region node_modules/d3-zoom/src/event.js
|
|
2099
|
-
function
|
|
2099
|
+
function ea(e, { sourceEvent: t, target: n, transform: r, dispatch: i }) {
|
|
2100
2100
|
Object.defineProperties(this, {
|
|
2101
2101
|
type: {
|
|
2102
2102
|
value: e,
|
|
@@ -2123,16 +2123,16 @@ function $i(e, { sourceEvent: t, target: n, transform: r, dispatch: i }) {
|
|
|
2123
2123
|
}
|
|
2124
2124
|
//#endregion
|
|
2125
2125
|
//#region node_modules/d3-zoom/src/transform.js
|
|
2126
|
-
function
|
|
2126
|
+
function ta(e, t, n) {
|
|
2127
2127
|
this.k = e, this.x = t, this.y = n;
|
|
2128
2128
|
}
|
|
2129
|
-
|
|
2130
|
-
constructor:
|
|
2129
|
+
ta.prototype = {
|
|
2130
|
+
constructor: ta,
|
|
2131
2131
|
scale: function(e) {
|
|
2132
|
-
return e === 1 ? this : new
|
|
2132
|
+
return e === 1 ? this : new ta(this.k * e, this.x, this.y);
|
|
2133
2133
|
},
|
|
2134
2134
|
translate: function(e, t) {
|
|
2135
|
-
return e === 0 & t === 0 ? this : new
|
|
2135
|
+
return e === 0 & t === 0 ? this : new ta(this.k, this.x + this.k * e, this.y + this.k * t);
|
|
2136
2136
|
},
|
|
2137
2137
|
apply: function(e) {
|
|
2138
2138
|
return [e[0] * this.k + this.x, e[1] * this.k + this.y];
|
|
@@ -2162,50 +2162,50 @@ ea.prototype = {
|
|
|
2162
2162
|
return "translate(" + this.x + "," + this.y + ") scale(" + this.k + ")";
|
|
2163
2163
|
}
|
|
2164
2164
|
};
|
|
2165
|
-
var
|
|
2166
|
-
|
|
2167
|
-
function
|
|
2168
|
-
for (; !e.__zoom;) if (!(e = e.parentNode)) return
|
|
2165
|
+
var na = new ta(1, 0, 0);
|
|
2166
|
+
ra.prototype = ta.prototype;
|
|
2167
|
+
function ra(e) {
|
|
2168
|
+
for (; !e.__zoom;) if (!(e = e.parentNode)) return na;
|
|
2169
2169
|
return e.__zoom;
|
|
2170
2170
|
}
|
|
2171
2171
|
//#endregion
|
|
2172
2172
|
//#region node_modules/d3-zoom/src/noevent.js
|
|
2173
|
-
function
|
|
2173
|
+
function ia(e) {
|
|
2174
2174
|
e.stopImmediatePropagation();
|
|
2175
2175
|
}
|
|
2176
|
-
function
|
|
2176
|
+
function aa(e) {
|
|
2177
2177
|
e.preventDefault(), e.stopImmediatePropagation();
|
|
2178
2178
|
}
|
|
2179
2179
|
//#endregion
|
|
2180
2180
|
//#region node_modules/d3-zoom/src/zoom.js
|
|
2181
|
-
function
|
|
2181
|
+
function oa(e) {
|
|
2182
2182
|
return (!e.ctrlKey || e.type === "wheel") && !e.button;
|
|
2183
2183
|
}
|
|
2184
|
-
function
|
|
2184
|
+
function sa() {
|
|
2185
2185
|
var e = this;
|
|
2186
2186
|
return e instanceof SVGElement ? (e = e.ownerSVGElement || e, e.hasAttribute("viewBox") ? (e = e.viewBox.baseVal, [[e.x, e.y], [e.x + e.width, e.y + e.height]]) : [[0, 0], [e.width.baseVal.value, e.height.baseVal.value]]) : [[0, 0], [e.clientWidth, e.clientHeight]];
|
|
2187
2187
|
}
|
|
2188
|
-
function
|
|
2189
|
-
return this.__zoom ||
|
|
2188
|
+
function ca() {
|
|
2189
|
+
return this.__zoom || na;
|
|
2190
2190
|
}
|
|
2191
|
-
function
|
|
2191
|
+
function la(e) {
|
|
2192
2192
|
return -e.deltaY * (e.deltaMode === 1 ? .05 : e.deltaMode ? 1 : .002) * (e.ctrlKey ? 10 : 1);
|
|
2193
2193
|
}
|
|
2194
|
-
function
|
|
2194
|
+
function ua() {
|
|
2195
2195
|
return navigator.maxTouchPoints || "ontouchstart" in this;
|
|
2196
2196
|
}
|
|
2197
|
-
function
|
|
2197
|
+
function da(e, t, n) {
|
|
2198
2198
|
var r = e.invertX(t[0][0]) - n[0][0], i = e.invertX(t[1][0]) - n[1][0], a = e.invertY(t[0][1]) - n[0][1], o = e.invertY(t[1][1]) - n[1][1];
|
|
2199
2199
|
return e.translate(i > r ? (r + i) / 2 : Math.min(0, r) || Math.max(0, i), o > a ? (a + o) / 2 : Math.min(0, a) || Math.max(0, o));
|
|
2200
2200
|
}
|
|
2201
|
-
function
|
|
2202
|
-
var e =
|
|
2201
|
+
function fa() {
|
|
2202
|
+
var e = oa, t = sa, n = da, r = la, i = ua, a = [0, Infinity], o = [[-Infinity, -Infinity], [Infinity, Infinity]], s = 250, c = fr, l = w("start", "zoom", "end"), u, d, f, p = 500, m = 150, h = 0, g = 10;
|
|
2203
2203
|
function _(e) {
|
|
2204
|
-
e.property("__zoom",
|
|
2204
|
+
e.property("__zoom", ca).on("wheel.zoom", T, { passive: !1 }).on("mousedown.zoom", E).on("dblclick.zoom", D).filter(i).on("touchstart.zoom", O).on("touchmove.zoom", k).on("touchend.zoom touchcancel.zoom", A).style("-webkit-tap-highlight-color", "rgba(0,0,0,0)");
|
|
2205
2205
|
}
|
|
2206
2206
|
_.transform = function(e, t, n, r) {
|
|
2207
2207
|
var i = e.selection ? e.selection() : e;
|
|
2208
|
-
i.property("__zoom",
|
|
2208
|
+
i.property("__zoom", ca), e === i ? i.interrupt().each(function() {
|
|
2209
2209
|
S(this, arguments).event(r).start().zoom(null, typeof t == "function" ? t.apply(this, arguments) : t).end();
|
|
2210
2210
|
}) : x(e, t, n, r);
|
|
2211
2211
|
}, _.scaleBy = function(e, t, n, r) {
|
|
@@ -2224,15 +2224,15 @@ function da() {
|
|
|
2224
2224
|
}, _.translateTo = function(e, r, i, a, s) {
|
|
2225
2225
|
_.transform(e, function() {
|
|
2226
2226
|
var e = t.apply(this, arguments), s = this.__zoom, c = a == null ? b(e) : typeof a == "function" ? a.apply(this, arguments) : a;
|
|
2227
|
-
return n(
|
|
2227
|
+
return n(na.translate(c[0], c[1]).scale(s.k).translate(typeof r == "function" ? -r.apply(this, arguments) : -r, typeof i == "function" ? -i.apply(this, arguments) : -i), e, o);
|
|
2228
2228
|
}, a, s);
|
|
2229
2229
|
};
|
|
2230
2230
|
function v(e, t) {
|
|
2231
|
-
return t = Math.max(a[0], Math.min(a[1], t)), t === e.k ? e : new
|
|
2231
|
+
return t = Math.max(a[0], Math.min(a[1], t)), t === e.k ? e : new ta(t, e.x, e.y);
|
|
2232
2232
|
}
|
|
2233
2233
|
function y(e, t, n) {
|
|
2234
2234
|
var r = t[0] - n[0] * e.k, i = t[1] - n[1] * e.k;
|
|
2235
|
-
return r === e.x && i === e.y ? e : new
|
|
2235
|
+
return r === e.x && i === e.y ? e : new ta(e.k, r, i);
|
|
2236
2236
|
}
|
|
2237
2237
|
function b(e) {
|
|
2238
2238
|
return [(+e[0][0] + +e[1][0]) / 2, (+e[0][1] + +e[1][1]) / 2];
|
|
@@ -2248,7 +2248,7 @@ function da() {
|
|
|
2248
2248
|
if (e === 1) e = f;
|
|
2249
2249
|
else {
|
|
2250
2250
|
var t = p(e), n = u / t[2];
|
|
2251
|
-
e = new
|
|
2251
|
+
e = new ta(n, l[0] - t[0] * n, l[1] - t[1] * n);
|
|
2252
2252
|
}
|
|
2253
2253
|
o.zoom(null, e);
|
|
2254
2254
|
};
|
|
@@ -2274,8 +2274,8 @@ function da() {
|
|
|
2274
2274
|
return --this.active === 0 && (delete this.that.__zooming, this.emit("end")), this;
|
|
2275
2275
|
},
|
|
2276
2276
|
emit: function(e) {
|
|
2277
|
-
var t =
|
|
2278
|
-
l.call(e, this.that, new
|
|
2277
|
+
var t = K(this.that).datum();
|
|
2278
|
+
l.call(e, this.that, new ea(e, {
|
|
2279
2279
|
sourceEvent: this.sourceEvent,
|
|
2280
2280
|
target: _,
|
|
2281
2281
|
type: e,
|
|
@@ -2286,53 +2286,53 @@ function da() {
|
|
|
2286
2286
|
};
|
|
2287
2287
|
function T(t, ...i) {
|
|
2288
2288
|
if (!e.apply(this, arguments)) return;
|
|
2289
|
-
var s = S(this, i).event(t), c = this.__zoom, l = Math.max(a[0], Math.min(a[1], c.k * 2 ** r.apply(this, arguments))), u =
|
|
2289
|
+
var s = S(this, i).event(t), c = this.__zoom, l = Math.max(a[0], Math.min(a[1], c.k * 2 ** r.apply(this, arguments))), u = It(t);
|
|
2290
2290
|
if (s.wheel) (s.mouse[0][0] !== u[0] || s.mouse[0][1] !== u[1]) && (s.mouse[1] = c.invert(s.mouse[0] = u)), clearTimeout(s.wheel);
|
|
2291
2291
|
else if (c.k === l) return;
|
|
2292
|
-
else s.mouse = [u, c.invert(u)],
|
|
2293
|
-
|
|
2292
|
+
else s.mouse = [u, c.invert(u)], Vr(this), s.start();
|
|
2293
|
+
aa(t), s.wheel = setTimeout(d, m), s.zoom("mouse", n(y(v(c, l), s.mouse[0], s.mouse[1]), s.extent, o));
|
|
2294
2294
|
function d() {
|
|
2295
2295
|
s.wheel = null, s.end();
|
|
2296
2296
|
}
|
|
2297
2297
|
}
|
|
2298
2298
|
function E(t, ...r) {
|
|
2299
2299
|
if (f || !e.apply(this, arguments)) return;
|
|
2300
|
-
var i = t.currentTarget, a = S(this, r, !0).event(t), s =
|
|
2301
|
-
|
|
2300
|
+
var i = t.currentTarget, a = S(this, r, !0).event(t), s = K(t.view).on("mousemove.zoom", d, !0).on("mouseup.zoom", p, !0), c = It(t, i), l = t.clientX, u = t.clientY;
|
|
2301
|
+
Vt(t.view), ia(t), a.mouse = [c, this.__zoom.invert(c)], Vr(this), a.start();
|
|
2302
2302
|
function d(e) {
|
|
2303
|
-
if (
|
|
2303
|
+
if (aa(e), !a.moved) {
|
|
2304
2304
|
var t = e.clientX - l, r = e.clientY - u;
|
|
2305
2305
|
a.moved = t * t + r * r > h;
|
|
2306
2306
|
}
|
|
2307
|
-
a.event(e).zoom("mouse", n(y(a.that.__zoom, a.mouse[0] =
|
|
2307
|
+
a.event(e).zoom("mouse", n(y(a.that.__zoom, a.mouse[0] = It(e, i), a.mouse[1]), a.extent, o));
|
|
2308
2308
|
}
|
|
2309
2309
|
function p(e) {
|
|
2310
|
-
s.on("mousemove.zoom mouseup.zoom", null),
|
|
2310
|
+
s.on("mousemove.zoom mouseup.zoom", null), Ht(e.view, a.moved), aa(e), a.event(e).end();
|
|
2311
2311
|
}
|
|
2312
2312
|
}
|
|
2313
2313
|
function D(r, ...i) {
|
|
2314
2314
|
if (e.apply(this, arguments)) {
|
|
2315
|
-
var a = this.__zoom, c =
|
|
2316
|
-
|
|
2315
|
+
var a = this.__zoom, c = It(r.changedTouches ? r.changedTouches[0] : r, this), l = a.invert(c), u = a.k * (r.shiftKey ? .5 : 2), d = n(y(v(a, u), c, l), t.apply(this, i), o);
|
|
2316
|
+
aa(r), s > 0 ? K(this).transition().duration(s).call(x, d, c, r) : K(this).call(_.transform, d, c, r);
|
|
2317
2317
|
}
|
|
2318
2318
|
}
|
|
2319
2319
|
function O(t, ...n) {
|
|
2320
2320
|
if (e.apply(this, arguments)) {
|
|
2321
2321
|
var r = t.touches, i = r.length, a = S(this, n, t.changedTouches.length === i).event(t), o, s, c, l;
|
|
2322
|
-
for (
|
|
2322
|
+
for (ia(t), s = 0; s < i; ++s) c = r[s], l = It(c, this), l = [
|
|
2323
2323
|
l,
|
|
2324
2324
|
this.__zoom.invert(l),
|
|
2325
2325
|
c.identifier
|
|
2326
2326
|
], a.touch0 ? !a.touch1 && a.touch0[2] !== l[2] && (a.touch1 = l, a.taps = 0) : (a.touch0 = l, o = !0, a.taps = 1 + !!u);
|
|
2327
2327
|
u &&= clearTimeout(u), o && (a.taps < 2 && (d = l[0], u = setTimeout(function() {
|
|
2328
2328
|
u = null;
|
|
2329
|
-
}, p)),
|
|
2329
|
+
}, p)), Vr(this), a.start());
|
|
2330
2330
|
}
|
|
2331
2331
|
}
|
|
2332
2332
|
function k(e, ...t) {
|
|
2333
2333
|
if (this.__zooming) {
|
|
2334
2334
|
var r = S(this, t).event(e), i = e.changedTouches, a = i.length, s, c, l, u;
|
|
2335
|
-
for (
|
|
2335
|
+
for (aa(e), s = 0; s < a; ++s) c = i[s], l = It(c, this), r.touch0 && r.touch0[2] === c.identifier ? r.touch0[0] = l : r.touch1 && r.touch1[2] === c.identifier && (r.touch1[0] = l);
|
|
2336
2336
|
if (c = r.that.__zoom, r.touch1) {
|
|
2337
2337
|
var d = r.touch0[0], f = r.touch0[1], p = r.touch1[0], m = r.touch1[1], h = (h = p[0] - d[0]) * h + (h = p[1] - d[1]) * h, g = (g = m[0] - f[0]) * g + (g = m[1] - f[1]) * g;
|
|
2338
2338
|
c = v(c, Math.sqrt(h / g)), l = [(d[0] + p[0]) / 2, (d[1] + p[1]) / 2], u = [(f[0] + m[0]) / 2, (f[1] + m[1]) / 2];
|
|
@@ -2344,24 +2344,24 @@ function da() {
|
|
|
2344
2344
|
function A(e, ...t) {
|
|
2345
2345
|
if (this.__zooming) {
|
|
2346
2346
|
var n = S(this, t).event(e), r = e.changedTouches, i = r.length, a, o;
|
|
2347
|
-
for (
|
|
2347
|
+
for (ia(e), f && clearTimeout(f), f = setTimeout(function() {
|
|
2348
2348
|
f = null;
|
|
2349
2349
|
}, p), a = 0; a < i; ++a) o = r[a], n.touch0 && n.touch0[2] === o.identifier ? delete n.touch0 : n.touch1 && n.touch1[2] === o.identifier && delete n.touch1;
|
|
2350
2350
|
if (n.touch1 && !n.touch0 && (n.touch0 = n.touch1, delete n.touch1), n.touch0) n.touch0[1] = this.__zoom.invert(n.touch0[0]);
|
|
2351
|
-
else if (n.end(), n.taps === 2 && (o =
|
|
2352
|
-
var s =
|
|
2351
|
+
else if (n.end(), n.taps === 2 && (o = It(o, this), Math.hypot(d[0] - o[0], d[1] - o[1]) < g)) {
|
|
2352
|
+
var s = K(this).on("dblclick.zoom");
|
|
2353
2353
|
s && s.apply(this, arguments);
|
|
2354
2354
|
}
|
|
2355
2355
|
}
|
|
2356
2356
|
}
|
|
2357
2357
|
return _.wheelDelta = function(e) {
|
|
2358
|
-
return arguments.length ? (r = typeof e == "function" ? e :
|
|
2358
|
+
return arguments.length ? (r = typeof e == "function" ? e : $i(+e), _) : r;
|
|
2359
2359
|
}, _.filter = function(t) {
|
|
2360
|
-
return arguments.length ? (e = typeof t == "function" ? t :
|
|
2360
|
+
return arguments.length ? (e = typeof t == "function" ? t : $i(!!t), _) : e;
|
|
2361
2361
|
}, _.touchable = function(e) {
|
|
2362
|
-
return arguments.length ? (i = typeof e == "function" ? e :
|
|
2362
|
+
return arguments.length ? (i = typeof e == "function" ? e : $i(!!e), _) : i;
|
|
2363
2363
|
}, _.extent = function(e) {
|
|
2364
|
-
return arguments.length ? (t = typeof e == "function" ? e :
|
|
2364
|
+
return arguments.length ? (t = typeof e == "function" ? e : $i([[+e[0][0], +e[0][1]], [+e[1][0], +e[1][1]]]), _) : t;
|
|
2365
2365
|
}, _.scaleExtent = function(e) {
|
|
2366
2366
|
return arguments.length ? (a[0] = +e[0], a[1] = +e[1], _) : [a[0], a[1]];
|
|
2367
2367
|
}, _.translateExtent = function(e) {
|
|
@@ -2383,7 +2383,7 @@ function da() {
|
|
|
2383
2383
|
}
|
|
2384
2384
|
//#endregion
|
|
2385
2385
|
//#region node_modules/@xyflow/system/dist/esm/index.js
|
|
2386
|
-
var
|
|
2386
|
+
var J = {
|
|
2387
2387
|
error001: (e = "react") => `Seems like you have not used zustand provider as an ancestor. Help: https://${e}flow.dev/error#001`,
|
|
2388
2388
|
error002: () => "It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",
|
|
2389
2389
|
error003: (e) => `Node type "${e}" not found. Using fallback type "default".`,
|
|
@@ -2547,14 +2547,14 @@ function Pa({ nodeId: e, nextPosition: t, nodeLookup: n, nodeOrigin: r = [0, 0],
|
|
|
2547
2547
|
x: 0,
|
|
2548
2548
|
y: 0
|
|
2549
2549
|
}, u = o.origin ?? r, d = o.extent || i;
|
|
2550
|
-
if (o.extent === "parent" && !o.expandParent) if (!s) a?.("005",
|
|
2550
|
+
if (o.extent === "parent" && !o.expandParent) if (!s) a?.("005", J.error005());
|
|
2551
2551
|
else {
|
|
2552
2552
|
let e = s.measured.width, t = s.measured.height;
|
|
2553
2553
|
e && t && (d = [[c, l], [c + e, l + t]]);
|
|
2554
2554
|
}
|
|
2555
2555
|
else s && ao(o.extent) && (d = [[o.extent[0][0] + c, o.extent[0][1] + l], [o.extent[1][0] + c, o.extent[1][1] + l]]);
|
|
2556
2556
|
let f = ao(d) ? La(t, d, o.measured) : t;
|
|
2557
|
-
return (o.measured.width === void 0 || o.measured.height === void 0) && a?.("015",
|
|
2557
|
+
return (o.measured.width === void 0 || o.measured.height === void 0) && a?.("015", J.error015()), {
|
|
2558
2558
|
position: {
|
|
2559
2559
|
x: f.x - c + (o.measured.width ?? 0) * u[0],
|
|
2560
2560
|
y: f.y - l + (o.measured.height ?? 0) * u[1]
|
|
@@ -2887,7 +2887,7 @@ function Do({ sourceNode: e, targetNode: t, width: n, height: r, transform: i })
|
|
|
2887
2887
|
}, Ua(a)) > 0;
|
|
2888
2888
|
}
|
|
2889
2889
|
var Oo = ({ source: e, sourceHandle: t, target: n, targetHandle: r }) => `xy-edge__${e}${t || ""}-${n}${r || ""}`, ko = (e, t) => t.some((t) => t.source === e.source && t.target === e.target && (t.sourceHandle === e.sourceHandle || !t.sourceHandle && !e.sourceHandle) && (t.targetHandle === e.targetHandle || !t.targetHandle && !e.targetHandle)), Ao = (e, t, n = {}) => {
|
|
2890
|
-
if (!e.source || !e.target) return n.onError?.("006",
|
|
2890
|
+
if (!e.source || !e.target) return n.onError?.("006", J.error006()), t;
|
|
2891
2891
|
let r = n.getEdgeId || Oo, i;
|
|
2892
2892
|
return i = wa(e) ? { ...e } : {
|
|
2893
2893
|
...e,
|
|
@@ -3072,7 +3072,7 @@ function zo(e) {
|
|
|
3072
3072
|
let { sourceNode: t, targetNode: n } = e;
|
|
3073
3073
|
if (!Ro(t) || !Ro(n)) return null;
|
|
3074
3074
|
let r = t.internals.handleBounds || Bo(t.handles), i = n.internals.handleBounds || Bo(n.handles), a = Ho(r?.source ?? [], e.sourceHandle), o = Ho(e.connectionMode === ga.Strict ? i?.target ?? [] : (i?.target ?? []).concat(i?.source ?? []), e.targetHandle);
|
|
3075
|
-
if (!a || !o) return e.onError?.("008",
|
|
3075
|
+
if (!a || !o) return e.onError?.("008", J.error008(a ? "target" : "source", {
|
|
3076
3076
|
id: e.id,
|
|
3077
3077
|
sourceHandle: e.sourceHandle,
|
|
3078
3078
|
targetHandle: e.targetHandle
|
|
@@ -3473,7 +3473,7 @@ function ms({ onNodeMouseDown: e, getStoreItems: t, onDragStart: n, onDrag: r, o
|
|
|
3473
3473
|
y: 0
|
|
3474
3474
|
}, u = null, d = !1, f = null, p = !1, m = !1, h = null;
|
|
3475
3475
|
function g({ noDragClassName: g, handleSelector: _, domNode: v, isSelectable: y, nodeId: b, nodeClickDistance: x = 0 }) {
|
|
3476
|
-
f =
|
|
3476
|
+
f = K(v);
|
|
3477
3477
|
function S({ x: e, y: n }) {
|
|
3478
3478
|
let { nodeLookup: i, nodeExtent: o, snapGrid: c, snapToGrid: l, nodeOrigin: u, onNodeDrag: d, onSelectionDrag: f, onError: p, updateNodePositions: g } = t();
|
|
3479
3479
|
a = {
|
|
@@ -3551,7 +3551,7 @@ function ms({ onNodeMouseDown: e, getStoreItems: t, onDragStart: n, onDrag: r, o
|
|
|
3551
3551
|
n?.(r.sourceEvent, s, e, t), h?.(r.sourceEvent, e, t), b || g?.(r.sourceEvent, t);
|
|
3552
3552
|
}
|
|
3553
3553
|
}
|
|
3554
|
-
let T =
|
|
3554
|
+
let T = Yt().clickDistance(x).on("start", (e) => {
|
|
3555
3555
|
let { domNode: n, nodeDragThreshold: r, transform: i, snapGrid: o, snapToGrid: s } = t();
|
|
3556
3556
|
u = n?.getBoundingClientRect() || null, p = !1, m = !1, h = e.sourceEvent, r === 0 && w(e), a = po(e.sourceEvent, {
|
|
3557
3557
|
transform: i,
|
|
@@ -3777,13 +3777,13 @@ var ws = {
|
|
|
3777
3777
|
isValid: Cs
|
|
3778
3778
|
};
|
|
3779
3779
|
function Ts({ domNode: e, panZoom: t, getTransform: n, getViewScale: r }) {
|
|
3780
|
-
let i =
|
|
3780
|
+
let i = K(e);
|
|
3781
3781
|
function a({ translateExtent: e, width: a, height: o, zoomStep: s = 1, pannable: c = !0, zoomable: l = !0, inversePan: u = !1 }) {
|
|
3782
3782
|
let d = (e) => {
|
|
3783
3783
|
if (e.sourceEvent.type !== "wheel" || !t) return;
|
|
3784
3784
|
let r = n(), i = e.sourceEvent.ctrlKey && io() ? 10 : 1, a = -e.sourceEvent.deltaY * (e.sourceEvent.deltaMode === 1 ? .05 : e.sourceEvent.deltaMode ? 1 : .002) * s, o = r[2] * 2 ** (a * i);
|
|
3785
3785
|
t.scaleTo(o);
|
|
3786
|
-
}, f = [0, 0], p =
|
|
3786
|
+
}, f = [0, 0], p = fa().on("start", (e) => {
|
|
3787
3787
|
(e.sourceEvent.type === "mousedown" || e.sourceEvent.type === "touchstart") && (f = [e.sourceEvent.clientX ?? e.sourceEvent.touches[0].clientX, e.sourceEvent.clientY ?? e.sourceEvent.touches[0].clientY]);
|
|
3788
3788
|
}).on("zoom", c ? (i) => {
|
|
3789
3789
|
let s = n();
|
|
@@ -3808,14 +3808,14 @@ function Ts({ domNode: e, panZoom: t, getTransform: n, getViewScale: r }) {
|
|
|
3808
3808
|
return {
|
|
3809
3809
|
update: a,
|
|
3810
3810
|
destroy: o,
|
|
3811
|
-
pointer:
|
|
3811
|
+
pointer: It
|
|
3812
3812
|
};
|
|
3813
3813
|
}
|
|
3814
3814
|
var Es = (e) => ({
|
|
3815
3815
|
x: e.x,
|
|
3816
3816
|
y: e.y,
|
|
3817
3817
|
zoom: e.k
|
|
3818
|
-
}), Ds = ({ x: e, y: t, zoom: n }) =>
|
|
3818
|
+
}), Ds = ({ x: e, y: t, zoom: n }) => na.translate(e, t).scale(n), Os = (e, t) => e.target.closest(`.${t}`), ks = (e, t) => t === 2 && Array.isArray(e) && e.includes(2), As = (e) => ((e *= 2) <= 1 ? e * e * e : (e -= 2) * e * e + 2) / 2, js = (e, t = 0, n = As, r = () => {}) => {
|
|
3819
3819
|
let i = typeof t == "number" && t > 0;
|
|
3820
3820
|
return i || r(), i ? e.transition().duration(t).ease(n).on("end", r) : e;
|
|
3821
3821
|
}, Ms = (e) => {
|
|
@@ -3828,7 +3828,7 @@ function Ns({ zoomPanValues: e, noWheelClassName: t, d3Selection: n, d3Zoom: r,
|
|
|
3828
3828
|
u.preventDefault(), u.stopImmediatePropagation();
|
|
3829
3829
|
let d = n.property("__zoom").k || 1;
|
|
3830
3830
|
if (u.ctrlKey && o) {
|
|
3831
|
-
let e =
|
|
3831
|
+
let e = It(u), t = d * 2 ** Ms(u);
|
|
3832
3832
|
r.scaleTo(n, t, e, u);
|
|
3833
3833
|
return;
|
|
3834
3834
|
}
|
|
@@ -3893,7 +3893,7 @@ function zs({ domNode: e, minZoom: t, maxZoom: n, translateExtent: r, viewport:
|
|
|
3893
3893
|
timerId: void 0,
|
|
3894
3894
|
panScrollTimeout: void 0,
|
|
3895
3895
|
isPanScrolling: !1
|
|
3896
|
-
}, u = e.getBoundingClientRect(), d =
|
|
3896
|
+
}, u = e.getBoundingClientRect(), d = fa().scaleExtent([t, n]).translateExtent(r), f = K(e).call(d);
|
|
3897
3897
|
v({
|
|
3898
3898
|
x: i.x,
|
|
3899
3899
|
y: i.y,
|
|
@@ -3903,7 +3903,7 @@ function zs({ domNode: e, minZoom: t, maxZoom: n, translateExtent: r, viewport:
|
|
|
3903
3903
|
d.wheelDelta(Ms);
|
|
3904
3904
|
async function h(e, t) {
|
|
3905
3905
|
return f ? new Promise((n) => {
|
|
3906
|
-
d?.interpolate(t?.interpolate === "linear" ?
|
|
3906
|
+
d?.interpolate(t?.interpolate === "linear" ? Qn : fr).transform(js(f, t?.duration, t?.ease, () => n(!0)), e);
|
|
3907
3907
|
}) : !1;
|
|
3908
3908
|
}
|
|
3909
3909
|
function g({ noWheelClassName: e, noPanClassName: t, onPaneContextMenu: n, userSelectionActive: r, panOnScroll: i, panOnDrag: u, panOnScrollMode: h, panOnScrollSpeed: g, preventScrolling: v, zoomOnPinch: y, zoomOnScroll: b, zoomOnDoubleClick: x, zoomActivationKeyPressed: S, lib: C, onTransformChange: w, connectionInProgress: T, paneClickDistance: E, selectionOnDrag: D }) {
|
|
@@ -3983,7 +3983,7 @@ function zs({ domNode: e, minZoom: t, maxZoom: n, translateExtent: r, viewport:
|
|
|
3983
3983
|
}
|
|
3984
3984
|
}
|
|
3985
3985
|
function x() {
|
|
3986
|
-
let e = f ?
|
|
3986
|
+
let e = f ? ra(f.node()) : {
|
|
3987
3987
|
x: 0,
|
|
3988
3988
|
y: 0,
|
|
3989
3989
|
k: 1
|
|
@@ -3996,12 +3996,12 @@ function zs({ domNode: e, minZoom: t, maxZoom: n, translateExtent: r, viewport:
|
|
|
3996
3996
|
}
|
|
3997
3997
|
async function S(e, t) {
|
|
3998
3998
|
return f ? new Promise((n) => {
|
|
3999
|
-
d?.interpolate(t?.interpolate === "linear" ?
|
|
3999
|
+
d?.interpolate(t?.interpolate === "linear" ? Qn : fr).scaleTo(js(f, t?.duration, t?.ease, () => n(!0)), e);
|
|
4000
4000
|
}) : !1;
|
|
4001
4001
|
}
|
|
4002
4002
|
async function C(e, t) {
|
|
4003
4003
|
return f ? new Promise((n) => {
|
|
4004
|
-
d?.interpolate(t?.interpolate === "linear" ?
|
|
4004
|
+
d?.interpolate(t?.interpolate === "linear" ? Qn : fr).scaleBy(js(f, t?.duration, t?.ease, () => n(!0)), e);
|
|
4005
4005
|
}) : !1;
|
|
4006
4006
|
}
|
|
4007
4007
|
function w(e) {
|
|
@@ -4115,7 +4115,7 @@ function Xs(e, t, n) {
|
|
|
4115
4115
|
return [[r - s, i - c], [r + a - s, i + o - c]];
|
|
4116
4116
|
}
|
|
4117
4117
|
function Zs({ domNode: e, nodeId: t, getStoreItems: n, onChange: r, onEnd: i }) {
|
|
4118
|
-
let a =
|
|
4118
|
+
let a = K(e), o = {
|
|
4119
4119
|
controlDirection: Hs("bottom-right"),
|
|
4120
4120
|
boundaries: {
|
|
4121
4121
|
minWidth: 0,
|
|
@@ -4134,7 +4134,7 @@ function Zs({ domNode: e, nodeId: t, getStoreItems: n, onChange: r, onEnd: i })
|
|
|
4134
4134
|
keepAspectRatio: c,
|
|
4135
4135
|
controlDirection: Hs(e)
|
|
4136
4136
|
};
|
|
4137
|
-
let g, _ = null, v = [], y, b, x, S = !1, C =
|
|
4137
|
+
let g, _ = null, v = [], y, b, x, S = !1, C = Yt().on("start", (e) => {
|
|
4138
4138
|
let { nodeLookup: r, transform: i, snapGrid: a, snapToGrid: o, nodeOrigin: s, paneDomNode: c } = n();
|
|
4139
4139
|
if (g = r.get(t), !g) return;
|
|
4140
4140
|
_ = c?.getBoundingClientRect() ?? null;
|
|
@@ -4299,7 +4299,7 @@ function X(e, t) {
|
|
|
4299
4299
|
}
|
|
4300
4300
|
//#endregion
|
|
4301
4301
|
//#region node_modules/@xyflow/react/dist/esm/index.js
|
|
4302
|
-
var uc = t(null), dc = uc.Provider, fc =
|
|
4302
|
+
var uc = t(null), dc = uc.Provider, fc = J.error001("react");
|
|
4303
4303
|
function Z(e, t) {
|
|
4304
4304
|
let n = o(uc);
|
|
4305
4305
|
if (n === null) throw Error(fc);
|
|
@@ -4902,7 +4902,7 @@ function pl(e) {
|
|
|
4902
4902
|
let n = () => {
|
|
4903
4903
|
if (!e.current || !(e.current.checkVisibility?.() ?? !0)) return !1;
|
|
4904
4904
|
let n = mo(e.current);
|
|
4905
|
-
(n.height === 0 || n.width === 0) && t.getState().onError?.("004",
|
|
4905
|
+
(n.height === 0 || n.width === 0) && t.getState().onError?.("004", J.error004()), t.setState({
|
|
4906
4906
|
width: n.width || 500,
|
|
4907
4907
|
height: n.height || 500
|
|
4908
4908
|
});
|
|
@@ -5177,7 +5177,7 @@ function xl({ isSelecting: e, selectionKeyPressed: t, selectionMode: n = va.Full
|
|
|
5177
5177
|
function Sl({ id: e, store: t, unselect: n = !1, nodeRef: r }) {
|
|
5178
5178
|
let { addSelectedNodes: i, unselectNodesAndEdges: a, multiSelectionActive: o, nodeLookup: s, onError: c } = t.getState(), l = s.get(e);
|
|
5179
5179
|
if (!l) {
|
|
5180
|
-
c?.("012",
|
|
5180
|
+
c?.("012", J.error012(e));
|
|
5181
5181
|
return;
|
|
5182
5182
|
}
|
|
5183
5183
|
t.setState({ nodesSelectionActive: !1 }), l.selected ? (n || l.selected && o) && (a({
|
|
@@ -5270,7 +5270,7 @@ var Ol = () => o(El), kl = (e) => ({
|
|
|
5270
5270
|
};
|
|
5271
5271
|
function jl({ type: e = "source", position: t = Y.Top, isValidConnection: n, isConnectable: r = !0, isConnectableStart: i = !0, isConnectableEnd: a = !0, id: o, onConnect: s, children: c, className: l, onMouseDown: u, onTouchStart: d, ...f }, p) {
|
|
5272
5272
|
let m = o || null, h = e === "target", _ = Q(), v = Ol(), { connectOnClick: y, noPanClassName: b, rfId: x } = Z(kl, X), { connectingFrom: C, connectingTo: w, clickConnecting: T, isPossibleEndHandle: E, connectionInProcess: D, clickConnectionInProcess: O, valid: k } = Z(Al(v, m, e), X);
|
|
5273
|
-
v || _.getState().onError?.("010",
|
|
5273
|
+
v || _.getState().onError?.("010", J.error010());
|
|
5274
5274
|
let A = (e) => {
|
|
5275
5275
|
let { defaultEdgeOptions: t, onConnect: n, hasDefaultEdges: r } = _.getState(), i = {
|
|
5276
5276
|
...t,
|
|
@@ -5496,7 +5496,7 @@ var Hl = typeof window < "u" ? window : void 0, Ul = (e) => ({
|
|
|
5496
5496
|
userSelectionActive: e.userSelectionActive
|
|
5497
5497
|
});
|
|
5498
5498
|
function Wl({ children: e, onPaneClick: t, onPaneMouseEnter: n, onPaneMouseMove: r, onPaneMouseLeave: i, onPaneContextMenu: a, onPaneScroll: o, paneClickDistance: s, deleteKeyCode: c, selectionKeyCode: l, selectionOnDrag: u, selectionMode: d, onSelectionStart: f, onSelectionEnd: p, multiSelectionKeyCode: m, panActivationKeyCode: h, zoomActivationKeyCode: v, elementsSelectable: y, zoomOnScroll: b, zoomOnPinch: x, panOnScroll: S, panOnScrollSpeed: C, panOnScrollMode: w, zoomOnDoubleClick: T, panOnDrag: E, autoPanOnSelection: D, defaultViewport: O, translateExtent: k, minZoom: A, maxZoom: j, preventScrolling: M, onSelectionContextMenu: N, noWheelClassName: P, noPanClassName: F, disableKeyboardA11y: I, onViewportChange: L, isControlledViewport: R }) {
|
|
5499
|
-
let { nodesSelectionActive: ee, userSelectionActive: z } = Z(Ul, X), B = zc(l, { target: Hl }), V = zc(h, { target: Hl }), H = V || E, U = V || S, W = u && H !== !0,
|
|
5499
|
+
let { nodesSelectionActive: ee, userSelectionActive: z } = Z(Ul, X), B = zc(l, { target: Hl }), V = zc(h, { target: Hl }), H = V || E, U = V || S, W = u && H !== !0, te = B || z || W;
|
|
5500
5500
|
return fl({
|
|
5501
5501
|
deleteKeyCode: c,
|
|
5502
5502
|
multiSelectionKeyCode: m
|
|
@@ -5533,7 +5533,7 @@ function Wl({ children: e, onPaneClick: t, onPaneMouseEnter: n, onPaneMouseMove:
|
|
|
5533
5533
|
onPaneScroll: o,
|
|
5534
5534
|
panOnDrag: H,
|
|
5535
5535
|
autoPanOnSelection: D,
|
|
5536
|
-
isSelecting: !!
|
|
5536
|
+
isSelecting: !!te,
|
|
5537
5537
|
selectionMode: d,
|
|
5538
5538
|
selectionKeyPressed: B,
|
|
5539
5539
|
paneClickDistance: s,
|
|
@@ -5604,7 +5604,7 @@ function Zl({ id: e, onClick: t, onMouseEnter: n, onMouseMove: r, onMouseLeave:
|
|
|
5604
5604
|
isParent: r
|
|
5605
5605
|
};
|
|
5606
5606
|
}, X), w = b.type || "default", T = _?.[w] || Rl[w];
|
|
5607
|
-
T === void 0 && (y?.("003",
|
|
5607
|
+
T === void 0 && (y?.("003", J.error003(w)), w = "default", T = _?.default || Rl.default);
|
|
5608
5608
|
let E = !!(b.draggable || s && b.draggable === void 0), D = !!(b.selectable || c && b.selectable === void 0), O = !!(b.connectable || l && b.connectable === void 0), k = !!(b.focusable || u && b.focusable === void 0), A = Q(), j = so(b), M = Xl({
|
|
5609
5609
|
node: b,
|
|
5610
5610
|
nodeType: w,
|
|
@@ -5804,7 +5804,7 @@ var ru = ({ color: e = "none", strokeWidth: t = 1 }) => g("polyline", {
|
|
|
5804
5804
|
};
|
|
5805
5805
|
function ou(e) {
|
|
5806
5806
|
let t = Q();
|
|
5807
|
-
return u(() => Object.prototype.hasOwnProperty.call(au, e) ? au[e] : (t.getState().onError?.("009",
|
|
5807
|
+
return u(() => Object.prototype.hasOwnProperty.call(au, e) ? au[e] : (t.getState().onError?.("009", J.error009(e)), null), [e]);
|
|
5808
5808
|
}
|
|
5809
5809
|
var su = ({ id: e, type: t, color: n, width: r = 12.5, height: i = 12.5, markerUnits: a = "strokeWidth", strokeWidth: o, orient: s = "auto-start-reverse" }) => {
|
|
5810
5810
|
let c = ou(t);
|
|
@@ -6193,7 +6193,7 @@ function Lu({ id: e, edgesFocusable: t, edgesReconnectable: n, elementsSelectabl
|
|
|
6193
6193
|
...E
|
|
6194
6194
|
} : E;
|
|
6195
6195
|
let O = E.type || "default", k = x?.[O] || Au[O];
|
|
6196
|
-
k === void 0 && (w?.("011",
|
|
6196
|
+
k === void 0 && (w?.("011", J.error011(O)), O = "default", k = x?.default || Au.default);
|
|
6197
6197
|
let A = !!(E.focusable || t && E.focusable === void 0), j = h !== void 0 && (E.reconnectable || n && E.reconnectable === void 0), M = !!(E.selectable || r && E.selectable === void 0), N = d(null), [P, F] = f(!1), [I, L] = f(!1), R = Q(), { zIndex: ee, sourceX: z, sourceY: B, targetX: V, targetY: H, sourcePosition: U, targetPosition: W } = Z(a((t) => {
|
|
6198
6198
|
let n = t.nodeLookup.get(E.source), r = t.nodeLookup.get(E.target);
|
|
6199
6199
|
if (!n || !r) return {
|
|
@@ -6227,9 +6227,9 @@ function Lu({ id: e, edgesFocusable: t, edgesReconnectable: n, elementsSelectabl
|
|
|
6227
6227
|
E.targetHandle,
|
|
6228
6228
|
E.selected,
|
|
6229
6229
|
E.zIndex
|
|
6230
|
-
]), X),
|
|
6230
|
+
]), X), te = u(() => E.markerStart ? `url('#${Uo(E.markerStart, b)}')` : void 0, [E.markerStart, b]), ne = u(() => E.markerEnd ? `url('#${Uo(E.markerEnd, b)}')` : void 0, [E.markerEnd, b]);
|
|
6231
6231
|
if (E.hidden || z === null || B === null || V === null || H === null) return null;
|
|
6232
|
-
let
|
|
6232
|
+
let G = (t) => {
|
|
6233
6233
|
let { addSelectedEdges: n, unselectNodesAndEdges: r, multiSelectionActive: a } = R.getState();
|
|
6234
6234
|
M && (R.setState({ nodesSelectionActive: !1 }), E.selected && a ? (r({
|
|
6235
6235
|
nodes: [],
|
|
@@ -6262,7 +6262,7 @@ function Lu({ id: e, edgesFocusable: t, edgesReconnectable: n, elementsSelectabl
|
|
|
6262
6262
|
selectable: M
|
|
6263
6263
|
}
|
|
6264
6264
|
]),
|
|
6265
|
-
onClick:
|
|
6265
|
+
onClick: G,
|
|
6266
6266
|
onDoubleClick: re,
|
|
6267
6267
|
onContextMenu: ie,
|
|
6268
6268
|
onMouseEnter: ae,
|
|
@@ -6308,8 +6308,8 @@ function Lu({ id: e, edgesFocusable: t, edgesReconnectable: n, elementsSelectabl
|
|
|
6308
6308
|
style: E.style,
|
|
6309
6309
|
sourceHandleId: E.sourceHandle,
|
|
6310
6310
|
targetHandleId: E.targetHandle,
|
|
6311
|
-
markerStart:
|
|
6312
|
-
markerEnd:
|
|
6311
|
+
markerStart: te,
|
|
6312
|
+
markerEnd: ne,
|
|
6313
6313
|
pathOptions: "pathOptions" in E ? E.pathOptions : void 0,
|
|
6314
6314
|
interactionWidth: E.interactionWidth
|
|
6315
6315
|
}), j && g(Iu, {
|
|
@@ -6491,7 +6491,7 @@ function ed(e = $u) {
|
|
|
6491
6491
|
if (process.env.NODE_ENV === "development") {
|
|
6492
6492
|
let r = new Set([...Object.keys(t.current), ...Object.keys(e)]);
|
|
6493
6493
|
for (let i of r) if (t.current[i] !== e[i]) {
|
|
6494
|
-
n.getState().onError?.("002",
|
|
6494
|
+
n.getState().onError?.("002", J.error002());
|
|
6495
6495
|
break;
|
|
6496
6496
|
}
|
|
6497
6497
|
t.current = e;
|
|
@@ -6503,18 +6503,18 @@ function td() {
|
|
|
6503
6503
|
c(() => {
|
|
6504
6504
|
if (process.env.NODE_ENV === "development" && !t.current) {
|
|
6505
6505
|
let n = document.querySelector(".react-flow__pane");
|
|
6506
|
-
n && window.getComputedStyle(n).zIndex !== "1" && e.getState().onError?.("013",
|
|
6506
|
+
n && window.getComputedStyle(n).zIndex !== "1" && e.getState().onError?.("013", J.error013("react")), t.current = !0;
|
|
6507
6507
|
}
|
|
6508
6508
|
}, []);
|
|
6509
6509
|
}
|
|
6510
|
-
function nd({ nodeTypes: e, edgeTypes: t, onInit: n, onNodeClick: r, onEdgeClick: i, onNodeDoubleClick: a, onEdgeDoubleClick: o, onNodeMouseEnter: s, onNodeMouseMove: c, onNodeMouseLeave: l, onNodeContextMenu: u, onSelectionContextMenu: d, onSelectionStart: f, onSelectionEnd: p, connectionLineType: m, connectionLineStyle: h, connectionLineComponent: v, connectionLineContainerStyle: y, selectionKeyCode: b, selectionOnDrag: x, selectionMode: S, multiSelectionKeyCode: C, panActivationKeyCode: w, zoomActivationKeyCode: T, deleteKeyCode: E, onlyRenderVisibleElements: D, elementsSelectable: O, defaultViewport: k, translateExtent: A, minZoom: j, maxZoom: M, preventScrolling: N, defaultMarkerColor: P, zoomOnScroll: F, zoomOnPinch: I, panOnScroll: L, panOnScrollSpeed: R, panOnScrollMode: ee, zoomOnDoubleClick: z, panOnDrag: B, autoPanOnSelection: V, onPaneClick: H, onPaneMouseEnter: U, onPaneMouseMove: W, onPaneMouseLeave:
|
|
6510
|
+
function nd({ nodeTypes: e, edgeTypes: t, onInit: n, onNodeClick: r, onEdgeClick: i, onNodeDoubleClick: a, onEdgeDoubleClick: o, onNodeMouseEnter: s, onNodeMouseMove: c, onNodeMouseLeave: l, onNodeContextMenu: u, onSelectionContextMenu: d, onSelectionStart: f, onSelectionEnd: p, connectionLineType: m, connectionLineStyle: h, connectionLineComponent: v, connectionLineContainerStyle: y, selectionKeyCode: b, selectionOnDrag: x, selectionMode: S, multiSelectionKeyCode: C, panActivationKeyCode: w, zoomActivationKeyCode: T, deleteKeyCode: E, onlyRenderVisibleElements: D, elementsSelectable: O, defaultViewport: k, translateExtent: A, minZoom: j, maxZoom: M, preventScrolling: N, defaultMarkerColor: P, zoomOnScroll: F, zoomOnPinch: I, panOnScroll: L, panOnScrollSpeed: R, panOnScrollMode: ee, zoomOnDoubleClick: z, panOnDrag: B, autoPanOnSelection: V, onPaneClick: H, onPaneMouseEnter: U, onPaneMouseMove: W, onPaneMouseLeave: te, onPaneScroll: ne, onPaneContextMenu: G, paneClickDistance: re, nodeClickDistance: ie, onEdgeContextMenu: ae, onEdgeMouseEnter: oe, onEdgeMouseMove: se, onEdgeMouseLeave: ce, reconnectRadius: le, onReconnect: ue, onReconnectStart: de, onReconnectEnd: fe, noDragClassName: pe, noWheelClassName: me, noPanClassName: he, disableKeyboardA11y: ge, nodeExtent: _e, rfId: ve, viewport: ye, onViewportChange: be }) {
|
|
6511
6511
|
return ed(e), ed(t), td(), Wu(n), Ku(ye), g(Gl, {
|
|
6512
6512
|
onPaneClick: H,
|
|
6513
6513
|
onPaneMouseEnter: U,
|
|
6514
6514
|
onPaneMouseMove: W,
|
|
6515
|
-
onPaneMouseLeave:
|
|
6516
|
-
onPaneContextMenu:
|
|
6517
|
-
onPaneScroll:
|
|
6515
|
+
onPaneMouseLeave: te,
|
|
6516
|
+
onPaneContextMenu: G,
|
|
6517
|
+
onPaneScroll: ne,
|
|
6518
6518
|
paneClickDistance: re,
|
|
6519
6519
|
deleteKeyCode: E,
|
|
6520
6520
|
selectionKeyCode: b,
|
|
@@ -6929,8 +6929,8 @@ var ld = {
|
|
|
6929
6929
|
position: "relative",
|
|
6930
6930
|
zIndex: 0
|
|
6931
6931
|
};
|
|
6932
|
-
function ud({ nodes: e, edges: t, defaultNodes: n, defaultEdges: r, className: i, nodeTypes: o, edgeTypes: s, onNodeClick: c, onEdgeClick: l, onInit: u, onMove: d, onMoveStart: f, onMoveEnd: p, onConnect: m, onConnectStart: h, onConnectEnd: v, onClickConnectStart: y, onClickConnectEnd: b, onNodeMouseEnter: x, onNodeMouseMove: C, onNodeMouseLeave: w, onNodeContextMenu: T, onNodeDoubleClick: E, onNodeDragStart: D, onNodeDrag: O, onNodeDragStop: k, onNodesDelete: A, onEdgesDelete: j, onDelete: M, onSelectionChange: N, onSelectionDragStart: P, onSelectionDrag: F, onSelectionDragStop: I, onSelectionContextMenu: L, onSelectionStart: R, onSelectionEnd: ee, onBeforeDelete: z, connectionMode: B, connectionLineType: V = ba.Bezier, connectionLineStyle: H, connectionLineComponent: U, connectionLineContainerStyle: W, deleteKeyCode:
|
|
6933
|
-
let
|
|
6932
|
+
function ud({ nodes: e, edges: t, defaultNodes: n, defaultEdges: r, className: i, nodeTypes: o, edgeTypes: s, onNodeClick: c, onEdgeClick: l, onInit: u, onMove: d, onMoveStart: f, onMoveEnd: p, onConnect: m, onConnectStart: h, onConnectEnd: v, onClickConnectStart: y, onClickConnectEnd: b, onNodeMouseEnter: x, onNodeMouseMove: C, onNodeMouseLeave: w, onNodeContextMenu: T, onNodeDoubleClick: E, onNodeDragStart: D, onNodeDrag: O, onNodeDragStop: k, onNodesDelete: A, onEdgesDelete: j, onDelete: M, onSelectionChange: N, onSelectionDragStart: P, onSelectionDrag: F, onSelectionDragStop: I, onSelectionContextMenu: L, onSelectionStart: R, onSelectionEnd: ee, onBeforeDelete: z, connectionMode: B, connectionLineType: V = ba.Bezier, connectionLineStyle: H, connectionLineComponent: U, connectionLineContainerStyle: W, deleteKeyCode: te = "Backspace", selectionKeyCode: ne = "Shift", selectionOnDrag: G = !1, selectionMode: re = va.Full, panActivationKeyCode: ie = "Space", multiSelectionKeyCode: ae = io() ? "Meta" : "Control", zoomActivationKeyCode: oe = io() ? "Meta" : "Control", snapToGrid: se, snapGrid: ce, onlyRenderVisibleElements: le = !1, selectNodesOnDrag: ue, nodesDraggable: de, autoPanOnNodeFocus: fe, nodesConnectable: pe, nodesFocusable: me, nodeOrigin: he = Ac, edgesFocusable: ge, edgesReconnectable: _e, elementsSelectable: ve = !0, defaultViewport: ye = jc, minZoom: be = .5, maxZoom: xe = 2, translateExtent: Se = pa, preventScrolling: Ce = !0, nodeExtent: we, defaultMarkerColor: Te = "#b1b1b7", zoomOnScroll: Ee = !0, zoomOnPinch: De = !0, panOnScroll: Oe = !1, panOnScrollSpeed: ke = .5, panOnScrollMode: Ae = _a.Free, zoomOnDoubleClick: je = !0, panOnDrag: Me = !0, onPaneClick: Ne, onPaneMouseEnter: Pe, onPaneMouseMove: Fe, onPaneMouseLeave: Ie, onPaneScroll: Le, onPaneContextMenu: Re, paneClickDistance: ze = 1, nodeClickDistance: Be = 0, children: Ve, onReconnect: He, onReconnectStart: Ue, onReconnectEnd: We, onEdgeContextMenu: Ge, onEdgeDoubleClick: Ke, onEdgeMouseEnter: qe, onEdgeMouseMove: Je, onEdgeMouseLeave: Ye, reconnectRadius: Xe = 10, onNodesChange: Ze, onEdgesChange: Qe, noDragClassName: $e = "nodrag", noWheelClassName: et = "nowheel", noPanClassName: tt = "nopan", fitView: nt, fitViewOptions: rt, connectOnClick: it, attributionPosition: at, proOptions: ot, defaultEdgeOptions: st, elevateNodesOnSelect: ct = !0, elevateEdgesOnSelect: lt = !1, disableKeyboardA11y: ut = !1, autoPanOnConnect: dt, autoPanOnNodeDrag: ft, autoPanOnSelection: pt = !0, autoPanSpeed: mt, connectionRadius: ht, isValidConnection: gt, onError: _t, style: vt, id: yt, nodeDragThreshold: bt, connectionDragThreshold: xt, viewport: St, onViewportChange: Ct, width: wt, height: Tt, colorMode: Et = "light", debug: Dt, onScroll: Ot, ariaLabelConfig: kt, zIndexMode: At = "basic", ...jt }, Mt) {
|
|
6933
|
+
let Nt = yt || "1", Pt = Lc(Et), K = a((e) => {
|
|
6934
6934
|
e.currentTarget.scrollTo({
|
|
6935
6935
|
top: 0,
|
|
6936
6936
|
left: 0,
|
|
@@ -6940,16 +6940,16 @@ function ud({ nodes: e, edges: t, defaultNodes: n, defaultEdges: r, className: i
|
|
|
6940
6940
|
return g("div", {
|
|
6941
6941
|
"data-testid": "rf__wrapper",
|
|
6942
6942
|
...jt,
|
|
6943
|
-
onScroll:
|
|
6943
|
+
onScroll: K,
|
|
6944
6944
|
style: {
|
|
6945
6945
|
...vt,
|
|
6946
6946
|
...ld
|
|
6947
6947
|
},
|
|
6948
|
-
ref:
|
|
6948
|
+
ref: Mt,
|
|
6949
6949
|
className: S([
|
|
6950
6950
|
"react-flow",
|
|
6951
6951
|
i,
|
|
6952
|
-
|
|
6952
|
+
Pt
|
|
6953
6953
|
]),
|
|
6954
6954
|
id: yt,
|
|
6955
6955
|
role: "application",
|
|
@@ -7012,7 +7012,7 @@ function ud({ nodes: e, edges: t, defaultNodes: n, defaultEdges: r, className: i
|
|
|
7012
7012
|
onMoveEnd: p,
|
|
7013
7013
|
noPanClassName: tt,
|
|
7014
7014
|
nodeOrigin: he,
|
|
7015
|
-
rfId:
|
|
7015
|
+
rfId: Nt,
|
|
7016
7016
|
autoPanOnConnect: dt,
|
|
7017
7017
|
autoPanOnNodeDrag: ft,
|
|
7018
7018
|
autoPanSpeed: mt,
|
|
@@ -7042,10 +7042,10 @@ function ud({ nodes: e, edges: t, defaultNodes: n, defaultEdges: r, className: i
|
|
|
7042
7042
|
connectionLineStyle: H,
|
|
7043
7043
|
connectionLineComponent: U,
|
|
7044
7044
|
connectionLineContainerStyle: W,
|
|
7045
|
-
selectionKeyCode:
|
|
7046
|
-
selectionOnDrag:
|
|
7045
|
+
selectionKeyCode: ne,
|
|
7046
|
+
selectionOnDrag: G,
|
|
7047
7047
|
selectionMode: re,
|
|
7048
|
-
deleteKeyCode:
|
|
7048
|
+
deleteKeyCode: te,
|
|
7049
7049
|
multiSelectionKeyCode: ae,
|
|
7050
7050
|
panActivationKeyCode: ie,
|
|
7051
7051
|
zoomActivationKeyCode: oe,
|
|
@@ -7087,7 +7087,7 @@ function ud({ nodes: e, edges: t, defaultNodes: n, defaultEdges: r, className: i
|
|
|
7087
7087
|
noDragClassName: $e,
|
|
7088
7088
|
noWheelClassName: et,
|
|
7089
7089
|
noPanClassName: tt,
|
|
7090
|
-
rfId:
|
|
7090
|
+
rfId: Nt,
|
|
7091
7091
|
disableKeyboardA11y: ut,
|
|
7092
7092
|
nodeExtent: we,
|
|
7093
7093
|
viewport: St,
|
|
@@ -7100,7 +7100,7 @@ function ud({ nodes: e, edges: t, defaultNodes: n, defaultEdges: r, className: i
|
|
|
7100
7100
|
position: at
|
|
7101
7101
|
}),
|
|
7102
7102
|
g(xc, {
|
|
7103
|
-
rfId:
|
|
7103
|
+
rfId: Nt,
|
|
7104
7104
|
disableKeyboardA11y: ut
|
|
7105
7105
|
})
|
|
7106
7106
|
]
|
|
@@ -7133,7 +7133,7 @@ var md = (e) => (t) => {
|
|
|
7133
7133
|
function hd(e = { includeHiddenNodes: !1 }) {
|
|
7134
7134
|
return Z(md(e));
|
|
7135
7135
|
}
|
|
7136
|
-
|
|
7136
|
+
J.error014();
|
|
7137
7137
|
function gd({ dimensions: e, lineWidth: t, variant: n, className: r }) {
|
|
7138
7138
|
return g("path", {
|
|
7139
7139
|
strokeWidth: t,
|
|
@@ -7411,7 +7411,7 @@ var Rd = i(Ld), zd = i(Id), Bd = 200, Vd = 150, Hd = (e) => !e.hidden, Ud = (e)
|
|
|
7411
7411
|
};
|
|
7412
7412
|
}, Wd = "react-flow__minimap-desc";
|
|
7413
7413
|
function Gd({ style: e, className: t, nodeStrokeColor: n, nodeColor: r, nodeClassName: i = "", nodeBorderRadius: o = 5, nodeStrokeWidth: s, nodeComponent: l, bgColor: u, maskColor: f, maskStrokeColor: p, maskStrokeWidth: m, position: h = "bottom-right", onClick: v, onNodeClick: y, pannable: b = !1, zoomable: x = !1, ariaLabel: C, inversePan: w, zoomStep: T = 1, offsetScale: E = 5 }) {
|
|
7414
|
-
let D = Q(), O = d(null), { boundingRect: k, viewBB: A, rfId: j, panZoom: M, translateExtent: N, flowWidth: P, flowHeight: F, ariaLabelConfig: I } = Z(Ud, X), L = e?.width ?? Bd, R = e?.height ?? Vd, ee = k.width / L, z = k.height / R, B = Math.max(ee, z), V = B * L, H = B * R, U = E * B, W = k.x - (V - k.width) / 2 - U,
|
|
7414
|
+
let D = Q(), O = d(null), { boundingRect: k, viewBB: A, rfId: j, panZoom: M, translateExtent: N, flowWidth: P, flowHeight: F, ariaLabelConfig: I } = Z(Ud, X), L = e?.width ?? Bd, R = e?.height ?? Vd, ee = k.width / L, z = k.height / R, B = Math.max(ee, z), V = B * L, H = B * R, U = E * B, W = k.x - (V - k.width) / 2 - U, te = k.y - (H - k.height) / 2 - U, ne = V + U * 2, G = H + U * 2, re = `${Wd}-${j}`, ie = d(0), ae = d();
|
|
7415
7415
|
ie.current = B, c(() => {
|
|
7416
7416
|
if (O.current && M) return ae.current = Ts({
|
|
7417
7417
|
domNode: O.current,
|
|
@@ -7467,7 +7467,7 @@ function Gd({ style: e, className: t, nodeStrokeColor: n, nodeColor: r, nodeClas
|
|
|
7467
7467
|
children: _("svg", {
|
|
7468
7468
|
width: L,
|
|
7469
7469
|
height: R,
|
|
7470
|
-
viewBox: `${W} ${
|
|
7470
|
+
viewBox: `${W} ${te} ${ne} ${G}`,
|
|
7471
7471
|
className: "react-flow__minimap-svg",
|
|
7472
7472
|
role: "img",
|
|
7473
7473
|
"aria-labelledby": re,
|
|
@@ -7489,7 +7489,7 @@ function Gd({ style: e, className: t, nodeStrokeColor: n, nodeColor: r, nodeClas
|
|
|
7489
7489
|
}),
|
|
7490
7490
|
g("path", {
|
|
7491
7491
|
className: "react-flow__minimap-mask",
|
|
7492
|
-
d: `M${W - U},${
|
|
7492
|
+
d: `M${W - U},${te - U}h${ne + U * 2}v${G + U * 2}h${-ne - U * 2}z
|
|
7493
7493
|
M${A.x},${A.y}h${A.width}v${A.height}h${-A.width}z`,
|
|
7494
7494
|
fillRule: "evenodd",
|
|
7495
7495
|
pointerEvents: "none"
|
|
@@ -8916,26 +8916,26 @@ var _p = {
|
|
|
8916
8916
|
nodeFrame: gp
|
|
8917
8917
|
}, vp = { padding: .08 };
|
|
8918
8918
|
function yp(e) {
|
|
8919
|
-
let { nodes: t, edges: n, jsonText: r, breadcrumbs: i, onNavigate: o, onSelectionIds: s, onCopiedMagicString: l, interaction: u = "always" } = e, { fitView: p, getNodes: m, getNodesBounds: h } = ll(), v = hd(), y = d(null), b = d(!1), x = d([]), [S, C] = f(null), [w, T] = f(!1), [E, D] = f(!1), O = d(null), [k, A] = f(
|
|
8919
|
+
let { nodes: t, edges: n, jsonText: r, breadcrumbs: i, onNavigate: o, onSelectionIds: s, onCopiedMagicString: l, interaction: u = "always" } = e, { fitView: p, getNodes: m, getNodesBounds: h } = ll(), v = hd(), y = d(null), b = d(!1), x = d([]), [S, C] = f(null), [w, T] = f(!1), [E, D] = f(!1), O = d(null), [k, A] = f("mouse"), [j, M] = f(!1), [N, P] = f(!1), F = d([]), [I, L, R] = fd(t), [ee, z, B] = pd(n), [V, H] = f(void 0);
|
|
8920
8920
|
c(() => {
|
|
8921
8921
|
if (!v) return;
|
|
8922
8922
|
let e = h(m());
|
|
8923
|
-
|
|
8923
|
+
H([[e.x, e.y], [e.x + e.width, e.y + e.height]]);
|
|
8924
8924
|
}, [
|
|
8925
8925
|
v,
|
|
8926
8926
|
t,
|
|
8927
8927
|
m,
|
|
8928
8928
|
h
|
|
8929
8929
|
]), c(() => {
|
|
8930
|
-
|
|
8930
|
+
L(t), s?.([]), b.current = !1, p(vp);
|
|
8931
8931
|
}, [
|
|
8932
8932
|
t,
|
|
8933
|
-
|
|
8933
|
+
L,
|
|
8934
8934
|
s,
|
|
8935
8935
|
p
|
|
8936
8936
|
]), c(() => {
|
|
8937
|
-
|
|
8938
|
-
}, [n,
|
|
8937
|
+
z(n);
|
|
8938
|
+
}, [n, z]), c(() => {
|
|
8939
8939
|
let e = y.current;
|
|
8940
8940
|
if (!e) return;
|
|
8941
8941
|
let t = new ResizeObserver(() => {
|
|
@@ -8943,19 +8943,19 @@ function yp(e) {
|
|
|
8943
8943
|
});
|
|
8944
8944
|
return t.observe(e), () => t.disconnect();
|
|
8945
8945
|
}, [p]);
|
|
8946
|
-
let
|
|
8946
|
+
let U = a((e) => {
|
|
8947
8947
|
e && (b.current = !0);
|
|
8948
|
-
}, []),
|
|
8948
|
+
}, []), W = a(({ nodes: e }) => {
|
|
8949
8949
|
let t = e.map((e) => e.id);
|
|
8950
8950
|
x.current = t, s?.(t);
|
|
8951
|
-
}, [s]),
|
|
8951
|
+
}, [s]), te = a((e) => {
|
|
8952
8952
|
e.preventDefault();
|
|
8953
8953
|
let t = y.current?.getBoundingClientRect();
|
|
8954
8954
|
C({
|
|
8955
8955
|
x: e.clientX - (t?.left ?? 0),
|
|
8956
8956
|
y: e.clientY - (t?.top ?? 0)
|
|
8957
8957
|
});
|
|
8958
|
-
}, []),
|
|
8958
|
+
}, []), ne = a(async () => {
|
|
8959
8959
|
C(null);
|
|
8960
8960
|
try {
|
|
8961
8961
|
let e = JSON.parse(r), t = new Set(x.current.map(Number).filter(Number.isFinite)), n = t.size > 0 ? Df(e, t) : e, i = await jf(JSON.stringify(n));
|
|
@@ -8963,19 +8963,23 @@ function yp(e) {
|
|
|
8963
8963
|
l();
|
|
8964
8964
|
return;
|
|
8965
8965
|
}
|
|
8966
|
-
|
|
8967
|
-
|
|
8966
|
+
F.current.forEach(clearTimeout), P(!1), M(!0), F.current = [setTimeout(() => P(!0), 2500), setTimeout(() => {
|
|
8967
|
+
M(!1), P(!1);
|
|
8968
8968
|
}, 3e3)];
|
|
8969
8969
|
} catch {}
|
|
8970
8970
|
}, [r, l]);
|
|
8971
|
-
c(() => () =>
|
|
8971
|
+
c(() => () => F.current.forEach(clearTimeout), []), c(() => () => {
|
|
8972
8972
|
O.current && clearTimeout(O.current);
|
|
8973
8973
|
}, []);
|
|
8974
|
-
let G = u === "hybrid",
|
|
8975
|
-
!
|
|
8976
|
-
|
|
8974
|
+
let G = u === "hybrid", re = u === "always" || G && w, ie = re && k === "mouse", ae = re && k === "trackpad", oe = [1], se = a((e) => {
|
|
8975
|
+
if (!e.ctrlKey) {
|
|
8976
|
+
let t = e.deltaMode === 0 && (e.deltaX !== 0 || !Number.isInteger(e.deltaY) || Math.abs(e.deltaY) < 40) ? "trackpad" : "mouse";
|
|
8977
|
+
A((e) => e === t ? e : t);
|
|
8978
|
+
}
|
|
8979
|
+
G && !w && !e.ctrlKey && (D(!0), O.current && clearTimeout(O.current), O.current = setTimeout(() => D(!1), 1600));
|
|
8980
|
+
}, [G, w]), ce = a((e) => {
|
|
8977
8981
|
G && e.button === 0 && (T(!0), D(!1));
|
|
8978
|
-
}, [G]),
|
|
8982
|
+
}, [G]), le = a(() => {
|
|
8979
8983
|
G && T(!1);
|
|
8980
8984
|
}, [G]);
|
|
8981
8985
|
return c(() => {
|
|
@@ -8994,36 +8998,36 @@ function yp(e) {
|
|
|
8994
8998
|
height: "100%",
|
|
8995
8999
|
position: "relative"
|
|
8996
9000
|
},
|
|
8997
|
-
onContextMenu:
|
|
8998
|
-
onPointerDown:
|
|
8999
|
-
onPointerLeave:
|
|
9000
|
-
onWheel:
|
|
9001
|
+
onContextMenu: te,
|
|
9002
|
+
onPointerDown: ce,
|
|
9003
|
+
onPointerLeave: le,
|
|
9004
|
+
onWheel: se,
|
|
9001
9005
|
children: [
|
|
9002
9006
|
/* @__PURE__ */ _(dd, {
|
|
9003
|
-
nodes:
|
|
9004
|
-
edges:
|
|
9005
|
-
onNodesChange:
|
|
9006
|
-
onEdgesChange:
|
|
9007
|
-
onSelectionChange:
|
|
9008
|
-
onMoveStart:
|
|
9007
|
+
nodes: I,
|
|
9008
|
+
edges: ee,
|
|
9009
|
+
onNodesChange: R,
|
|
9010
|
+
onEdgesChange: B,
|
|
9011
|
+
onSelectionChange: W,
|
|
9012
|
+
onMoveStart: U,
|
|
9009
9013
|
nodeTypes: _p,
|
|
9010
9014
|
fitView: !0,
|
|
9011
9015
|
fitViewOptions: vp,
|
|
9012
9016
|
minZoom: .2,
|
|
9013
|
-
translateExtent:
|
|
9017
|
+
translateExtent: V,
|
|
9014
9018
|
nodesDraggable: !1,
|
|
9015
9019
|
nodesConnectable: !1,
|
|
9016
9020
|
elementsSelectable: !0,
|
|
9017
9021
|
nodesFocusable: !1,
|
|
9018
9022
|
edgesFocusable: !1,
|
|
9019
9023
|
selectNodesOnDrag: !1,
|
|
9020
|
-
selectionOnDrag:
|
|
9024
|
+
selectionOnDrag: !0,
|
|
9021
9025
|
selectionMode: va.Partial,
|
|
9022
9026
|
connectOnClick: !1,
|
|
9023
|
-
panOnDrag:
|
|
9024
|
-
|
|
9025
|
-
|
|
9026
|
-
preventScrolling:
|
|
9027
|
+
panOnDrag: oe,
|
|
9028
|
+
zoomOnScroll: ie,
|
|
9029
|
+
panOnScroll: ae,
|
|
9030
|
+
preventScrolling: re,
|
|
9027
9031
|
zoomOnDoubleClick: !1,
|
|
9028
9032
|
children: [
|
|
9029
9033
|
/* @__PURE__ */ g(Sd, {
|
|
@@ -9037,7 +9041,7 @@ function yp(e) {
|
|
|
9037
9041
|
children: /* @__PURE__ */ g("div", {
|
|
9038
9042
|
className: "gn-zoom-hint",
|
|
9039
9043
|
role: "status",
|
|
9040
|
-
children: "Click to
|
|
9044
|
+
children: "Click to pan & zoom"
|
|
9041
9045
|
})
|
|
9042
9046
|
}) : null,
|
|
9043
9047
|
/* @__PURE__ */ g(Sc, {
|
|
@@ -9046,7 +9050,7 @@ function yp(e) {
|
|
|
9046
9050
|
className: "gn-top-left",
|
|
9047
9051
|
children: [/* @__PURE__ */ _("span", {
|
|
9048
9052
|
className: "gn-version-badge",
|
|
9049
|
-
children: ["node-web-render v", "0.3.
|
|
9053
|
+
children: ["node-web-render v", "0.3.18"]
|
|
9050
9054
|
}), i.length > 1 ? /* @__PURE__ */ g("nav", {
|
|
9051
9055
|
className: "gn-breadcrumbs",
|
|
9052
9056
|
"aria-label": "Node group path",
|
|
@@ -9087,12 +9091,12 @@ function yp(e) {
|
|
|
9087
9091
|
type: "button",
|
|
9088
9092
|
className: "gn-context-menu__item",
|
|
9089
9093
|
role: "menuitem",
|
|
9090
|
-
onClick:
|
|
9094
|
+
onClick: ne,
|
|
9091
9095
|
children: "Copy selected nodes to Tree Clipper magic string"
|
|
9092
9096
|
})
|
|
9093
9097
|
}) : null,
|
|
9094
|
-
|
|
9095
|
-
className: `gn-context-toast${
|
|
9098
|
+
j || N ? /* @__PURE__ */ g("div", {
|
|
9099
|
+
className: `gn-context-toast${N ? " gnwr-leaving" : ""}`,
|
|
9096
9100
|
role: "status",
|
|
9097
9101
|
children: "Copied Tree Clipper magic string"
|
|
9098
9102
|
}) : null
|