@hpcc-js/react 3.2.1 → 3.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +350 -347
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +2 -2
- package/dist/index.umd.cjs.map +1 -1
- package/package.json +6 -6
- package/src/ImageChar.tsx +3 -4
- package/src/edge.tsx +2 -2
- package/src/icon.tsx +3 -3
- package/src/image.tsx +2 -2
- package/src/shape.tsx +5 -5
- package/src/span.tsx +2 -2
- package/src/subgraph.tsx +2 -2
- package/src/text.tsx +20 -21
- package/src/vertex.tsx +7 -8
- package/src/vertex2.tsx +3 -4
- package/src/vertex3.tsx +4 -5
- package/src/vertex4.tsx +4 -5
- package/types/ImageChar.d.ts +2 -2
- package/types/edge.d.ts +2 -2
- package/types/icon.d.ts +3 -3
- package/types/image.d.ts +2 -2
- package/types/shape.d.ts +5 -5
- package/types/span.d.ts +2 -2
- package/types/subgraph.d.ts +2 -2
- package/types/text.d.ts +6 -6
- package/types/vertex.d.ts +3 -3
- package/types/vertex2.d.ts +2 -2
- package/types/vertex3.d.ts +3 -3
- package/types/vertex4.d.ts +3 -3
package/dist/index.js
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import { Utility, Palette, HTMLWidget, SVGWidget } from "@hpcc-js/common";
|
|
2
2
|
const PKG_NAME = "@hpcc-js/react", PKG_VERSION = "3.1.1", BUILD_VERSION = "3.2.1";
|
|
3
|
-
var n, l$1, u$2, i$1, o$1,
|
|
3
|
+
var n, l$1, u$2, i$1, r$1, o$1, e$1, f$2, c$1, s$1, a$1, p$1 = {}, y$1 = [], v$1 = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, w$1 = Array.isArray;
|
|
4
4
|
function d$1(n2, l2) {
|
|
5
5
|
for (var u2 in l2) n2[u2] = l2[u2];
|
|
6
6
|
return n2;
|
|
7
7
|
}
|
|
8
|
-
function
|
|
8
|
+
function g$1(n2) {
|
|
9
9
|
n2 && n2.parentNode && n2.parentNode.removeChild(n2);
|
|
10
10
|
}
|
|
11
11
|
function _$1(l2, u2, t2) {
|
|
12
|
-
var i2,
|
|
13
|
-
for (
|
|
14
|
-
if (arguments.length > 2 && (
|
|
15
|
-
return
|
|
12
|
+
var i2, r2, o2, e2 = {};
|
|
13
|
+
for (o2 in u2) o2 == "key" ? i2 = u2[o2] : o2 == "ref" ? r2 = u2[o2] : e2[o2] = u2[o2];
|
|
14
|
+
if (arguments.length > 2 && (e2.children = arguments.length > 3 ? n.call(arguments, 2) : t2), typeof l2 == "function" && l2.defaultProps != null) for (o2 in l2.defaultProps) e2[o2] == null && (e2[o2] = l2.defaultProps[o2]);
|
|
15
|
+
return m$1(l2, e2, i2, r2, null);
|
|
16
16
|
}
|
|
17
|
-
function
|
|
18
|
-
var
|
|
19
|
-
return
|
|
17
|
+
function m$1(n2, t2, i2, r2, o2) {
|
|
18
|
+
var e2 = { type: n2, props: t2, key: i2, ref: r2, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: o2 ?? ++u$2, __i: -1, __u: 0 };
|
|
19
|
+
return o2 == null && l$1.vnode != null && l$1.vnode(e2), e2;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function k$1(n2) {
|
|
22
22
|
return n2.children;
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function x(n2, l2) {
|
|
25
25
|
this.props = n2, this.context = l2;
|
|
26
26
|
}
|
|
27
|
-
function
|
|
28
|
-
if (l2 == null) return n2.__ ?
|
|
27
|
+
function S(n2, l2) {
|
|
28
|
+
if (l2 == null) return n2.__ ? S(n2.__, n2.__i + 1) : null;
|
|
29
29
|
for (var u2; l2 < n2.__k.length; l2++) if ((u2 = n2.__k[l2]) != null && u2.__e != null) return u2.__e;
|
|
30
|
-
return typeof n2.type == "function" ?
|
|
30
|
+
return typeof n2.type == "function" ? S(n2) : null;
|
|
31
31
|
}
|
|
32
32
|
function C$1(n2) {
|
|
33
33
|
var l2, u2;
|
|
@@ -39,67 +39,67 @@ function C$1(n2) {
|
|
|
39
39
|
return C$1(n2);
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
function
|
|
43
|
-
(!n2.__d && (n2.__d = !0) && i$1.push(n2) &&
|
|
42
|
+
function M(n2) {
|
|
43
|
+
(!n2.__d && (n2.__d = !0) && i$1.push(n2) && !$.__r++ || r$1 != l$1.debounceRendering) && ((r$1 = l$1.debounceRendering) || o$1)($);
|
|
44
44
|
}
|
|
45
|
-
function
|
|
46
|
-
var n2, u2, t2, o2, r2,
|
|
47
|
-
|
|
48
|
-
M$1.__r = 0;
|
|
45
|
+
function $() {
|
|
46
|
+
for (var n2, u2, t2, r2, o2, f2, c2, s2 = 1; i$1.length; ) i$1.length > s2 && i$1.sort(e$1), n2 = i$1.shift(), s2 = i$1.length, n2.__d && (t2 = void 0, o2 = (r2 = (u2 = n2).__v).__e, f2 = [], c2 = [], u2.__P && ((t2 = d$1({}, r2)).__v = r2.__v + 1, l$1.vnode && l$1.vnode(t2), O(u2.__P, t2, r2, u2.__n, u2.__P.namespaceURI, 32 & r2.__u ? [o2] : null, f2, o2 ?? S(r2), !!(32 & r2.__u), c2), t2.__v = r2.__v, t2.__.__k[t2.__i] = t2, z$1(f2, t2, c2), t2.__e != o2 && C$1(t2)));
|
|
47
|
+
$.__r = 0;
|
|
49
48
|
}
|
|
50
|
-
function
|
|
51
|
-
var a2,
|
|
52
|
-
for (
|
|
53
|
-
u2.
|
|
49
|
+
function I(n2, l2, u2, t2, i2, r2, o2, e2, f2, c2, s2) {
|
|
50
|
+
var a2, h2, v2, w2, d2, g2, _2 = t2 && t2.__k || y$1, m2 = l2.length;
|
|
51
|
+
for (f2 = P$1(u2, l2, _2, f2, m2), a2 = 0; a2 < m2; a2++) (v2 = u2.__k[a2]) != null && (h2 = v2.__i == -1 ? p$1 : _2[v2.__i] || p$1, v2.__i = a2, g2 = O(n2, v2, h2, i2, r2, o2, e2, f2, c2, s2), w2 = v2.__e, v2.ref && h2.ref != v2.ref && (h2.ref && q$2(h2.ref, null, v2), s2.push(v2.ref, v2.__c || w2, v2)), d2 == null && w2 != null && (d2 = w2), 4 & v2.__u || h2.__k === v2.__k ? f2 = A(v2, f2, n2) : typeof v2.type == "function" && g2 !== void 0 ? f2 = g2 : w2 && (f2 = w2.nextSibling), v2.__u &= -7);
|
|
52
|
+
return u2.__e = d2, f2;
|
|
54
53
|
}
|
|
55
|
-
function
|
|
56
|
-
var
|
|
57
|
-
for (n2.__k =
|
|
58
|
-
if (
|
|
54
|
+
function P$1(n2, l2, u2, t2, i2) {
|
|
55
|
+
var r2, o2, e2, f2, c2, s2 = u2.length, a2 = s2, h2 = 0;
|
|
56
|
+
for (n2.__k = new Array(i2), r2 = 0; r2 < i2; r2++) (o2 = l2[r2]) != null && typeof o2 != "boolean" && typeof o2 != "function" ? (f2 = r2 + h2, (o2 = n2.__k[r2] = typeof o2 == "string" || typeof o2 == "number" || typeof o2 == "bigint" || o2.constructor == String ? m$1(null, o2, null, null, null) : w$1(o2) ? m$1(k$1, { children: o2 }, null, null, null) : o2.constructor == null && o2.__b > 0 ? m$1(o2.type, o2.props, o2.key, o2.ref ? o2.ref : null, o2.__v) : o2).__ = n2, o2.__b = n2.__b + 1, e2 = null, (c2 = o2.__i = L(o2, u2, f2, a2)) != -1 && (a2--, (e2 = u2[c2]) && (e2.__u |= 2)), e2 == null || e2.__v == null ? (c2 == -1 && (i2 > s2 ? h2-- : i2 < s2 && h2++), typeof o2.type != "function" && (o2.__u |= 4)) : c2 != f2 && (c2 == f2 - 1 ? h2-- : c2 == f2 + 1 ? h2++ : (c2 > f2 ? h2-- : h2++, o2.__u |= 4))) : n2.__k[r2] = null;
|
|
57
|
+
if (a2) for (r2 = 0; r2 < s2; r2++) (e2 = u2[r2]) != null && !(2 & e2.__u) && (e2.__e == t2 && (t2 = S(e2)), B$2(e2, e2));
|
|
58
|
+
return t2;
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function A(n2, l2, u2) {
|
|
61
61
|
var t2, i2;
|
|
62
62
|
if (typeof n2.type == "function") {
|
|
63
|
-
for (t2 = n2.__k, i2 = 0; t2 && i2 < t2.length; i2++) t2[i2] && (t2[i2].__ = n2, l2 =
|
|
63
|
+
for (t2 = n2.__k, i2 = 0; t2 && i2 < t2.length; i2++) t2[i2] && (t2[i2].__ = n2, l2 = A(t2[i2], l2, u2));
|
|
64
64
|
return l2;
|
|
65
65
|
}
|
|
66
|
-
n2.__e != l2 && (l2 && n2.type && !u2.contains(l2) && (l2 =
|
|
66
|
+
n2.__e != l2 && (l2 && n2.type && !u2.contains(l2) && (l2 = S(n2)), u2.insertBefore(n2.__e, l2 || null), l2 = n2.__e);
|
|
67
67
|
do
|
|
68
68
|
l2 = l2 && l2.nextSibling;
|
|
69
|
-
while (l2 != null && l2.nodeType
|
|
69
|
+
while (l2 != null && l2.nodeType == 8);
|
|
70
70
|
return l2;
|
|
71
71
|
}
|
|
72
|
-
function H(n2, l2) {
|
|
73
|
-
return l2 = l2 || [], n2 == null || typeof n2 == "boolean" || (
|
|
74
|
-
H(n3, l2);
|
|
72
|
+
function H$1(n2, l2) {
|
|
73
|
+
return l2 = l2 || [], n2 == null || typeof n2 == "boolean" || (w$1(n2) ? n2.some(function(n3) {
|
|
74
|
+
H$1(n3, l2);
|
|
75
75
|
}) : l2.push(n2)), l2;
|
|
76
76
|
}
|
|
77
77
|
function L(n2, l2, u2, t2) {
|
|
78
|
-
var i2 = n2.key,
|
|
79
|
-
if (
|
|
80
|
-
if (
|
|
81
|
-
if (
|
|
82
|
-
if ((
|
|
83
|
-
|
|
78
|
+
var i2, r2, o2 = n2.key, e2 = n2.type, f2 = l2[u2];
|
|
79
|
+
if (f2 === null && n2.key == null || f2 && o2 == f2.key && e2 == f2.type && !(2 & f2.__u)) return u2;
|
|
80
|
+
if (t2 > (f2 != null && !(2 & f2.__u) ? 1 : 0)) for (i2 = u2 - 1, r2 = u2 + 1; i2 >= 0 || r2 < l2.length; ) {
|
|
81
|
+
if (i2 >= 0) {
|
|
82
|
+
if ((f2 = l2[i2]) && !(2 & f2.__u) && o2 == f2.key && e2 == f2.type) return i2;
|
|
83
|
+
i2--;
|
|
84
84
|
}
|
|
85
|
-
if (
|
|
86
|
-
if ((
|
|
87
|
-
|
|
85
|
+
if (r2 < l2.length) {
|
|
86
|
+
if ((f2 = l2[r2]) && !(2 & f2.__u) && o2 == f2.key && e2 == f2.type) return r2;
|
|
87
|
+
r2++;
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
return -1;
|
|
91
91
|
}
|
|
92
|
-
function T$
|
|
93
|
-
l2[0]
|
|
92
|
+
function T$2(n2, l2, u2) {
|
|
93
|
+
l2[0] == "-" ? n2.setProperty(l2, u2 ?? "") : n2[l2] = u2 == null ? "" : typeof u2 != "number" || v$1.test(l2) ? u2 : u2 + "px";
|
|
94
94
|
}
|
|
95
|
-
function
|
|
96
|
-
var
|
|
97
|
-
n: if (l2
|
|
95
|
+
function j$2(n2, l2, u2, t2, i2) {
|
|
96
|
+
var r2;
|
|
97
|
+
n: if (l2 == "style") if (typeof u2 == "string") n2.style.cssText = u2;
|
|
98
98
|
else {
|
|
99
|
-
if (typeof t2 == "string" && (n2.style.cssText = t2 = ""), t2) for (l2 in t2) u2 && l2 in u2 || T$
|
|
100
|
-
if (u2) for (l2 in u2) t2 && u2[l2]
|
|
99
|
+
if (typeof t2 == "string" && (n2.style.cssText = t2 = ""), t2) for (l2 in t2) u2 && l2 in u2 || T$2(n2.style, l2, "");
|
|
100
|
+
if (u2) for (l2 in u2) t2 && u2[l2] == t2[l2] || T$2(n2.style, l2, u2[l2]);
|
|
101
101
|
}
|
|
102
|
-
else if (l2[0]
|
|
102
|
+
else if (l2[0] == "o" && l2[1] == "n") r2 = l2 != (l2 = l2.replace(f$2, "$1")), l2 = l2.toLowerCase() in n2 || l2 == "onFocusOut" || l2 == "onFocusIn" ? l2.toLowerCase().slice(2) : l2.slice(2), n2.l || (n2.l = {}), n2.l[l2 + r2] = u2, u2 ? t2 ? u2.u = t2.u : (u2.u = c$1, n2.addEventListener(l2, r2 ? a$1 : s$1, r2)) : n2.removeEventListener(l2, r2 ? a$1 : s$1, r2);
|
|
103
103
|
else {
|
|
104
104
|
if (i2 == "http://www.w3.org/2000/svg") l2 = l2.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
|
|
105
105
|
else if (l2 != "width" && l2 != "height" && l2 != "href" && l2 != "list" && l2 != "form" && l2 != "tabIndex" && l2 != "download" && l2 != "rowSpan" && l2 != "colSpan" && l2 != "role" && l2 != "popover" && l2 in n2) try {
|
|
@@ -107,57 +107,57 @@ function A(n2, l2, u2, t2, i2) {
|
|
|
107
107
|
break n;
|
|
108
108
|
} catch {
|
|
109
109
|
}
|
|
110
|
-
typeof u2 == "function" || (u2 == null || u2 === !1 && l2[4]
|
|
110
|
+
typeof u2 == "function" || (u2 == null || u2 === !1 && l2[4] != "-" ? n2.removeAttribute(l2) : n2.setAttribute(l2, l2 == "popover" && u2 == 1 ? "" : u2));
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
function F$1(n2) {
|
|
114
114
|
return function(u2) {
|
|
115
115
|
if (this.l) {
|
|
116
116
|
var t2 = this.l[u2.type + n2];
|
|
117
|
-
if (u2.t == null) u2.t =
|
|
117
|
+
if (u2.t == null) u2.t = c$1++;
|
|
118
118
|
else if (u2.t < t2.u) return;
|
|
119
|
-
return l$1.event
|
|
119
|
+
return t2(l$1.event ? l$1.event(u2) : u2);
|
|
120
120
|
}
|
|
121
121
|
};
|
|
122
122
|
}
|
|
123
|
-
function O
|
|
124
|
-
var a2, h2,
|
|
125
|
-
if (u2.constructor
|
|
126
|
-
128 & t2.__u && (c2 = !!(32 & t2.__u),
|
|
127
|
-
n: if (typeof
|
|
128
|
-
if (
|
|
123
|
+
function O(n2, u2, t2, i2, r2, o2, e2, f2, c2, s2) {
|
|
124
|
+
var a2, h2, p2, y2, v2, _2, m2, b, S2, C2, M2, $2, P2, A2, H2, L2, T2, j2 = u2.type;
|
|
125
|
+
if (u2.constructor != null) return null;
|
|
126
|
+
128 & t2.__u && (c2 = !!(32 & t2.__u), o2 = [f2 = u2.__e = t2.__e]), (a2 = l$1.__b) && a2(u2);
|
|
127
|
+
n: if (typeof j2 == "function") try {
|
|
128
|
+
if (b = u2.props, S2 = "prototype" in j2 && j2.prototype.render, C2 = (a2 = j2.contextType) && i2[a2.__c], M2 = a2 ? C2 ? C2.props.value : a2.__ : i2, t2.__c ? m2 = (h2 = u2.__c = t2.__c).__ = h2.__E : (S2 ? u2.__c = h2 = new j2(b, M2) : (u2.__c = h2 = new x(b, M2), h2.constructor = j2, h2.render = D$1), C2 && C2.sub(h2), h2.props = b, h2.state || (h2.state = {}), h2.context = M2, h2.__n = i2, p2 = h2.__d = !0, h2.__h = [], h2._sb = []), S2 && h2.__s == null && (h2.__s = h2.state), S2 && j2.getDerivedStateFromProps != null && (h2.__s == h2.state && (h2.__s = d$1({}, h2.__s)), d$1(h2.__s, j2.getDerivedStateFromProps(b, h2.__s))), y2 = h2.props, v2 = h2.state, h2.__v = u2, p2) S2 && j2.getDerivedStateFromProps == null && h2.componentWillMount != null && h2.componentWillMount(), S2 && h2.componentDidMount != null && h2.__h.push(h2.componentDidMount);
|
|
129
129
|
else {
|
|
130
|
-
if (
|
|
131
|
-
for (u2.__v
|
|
130
|
+
if (S2 && j2.getDerivedStateFromProps == null && b !== y2 && h2.componentWillReceiveProps != null && h2.componentWillReceiveProps(b, M2), !h2.__e && h2.shouldComponentUpdate != null && h2.shouldComponentUpdate(b, h2.__s, M2) === !1 || u2.__v == t2.__v) {
|
|
131
|
+
for (u2.__v != t2.__v && (h2.props = b, h2.state = h2.__s, h2.__d = !1), u2.__e = t2.__e, u2.__k = t2.__k, u2.__k.some(function(n3) {
|
|
132
132
|
n3 && (n3.__ = u2);
|
|
133
|
-
}),
|
|
134
|
-
h2._sb = [], h2.__h.length &&
|
|
133
|
+
}), $2 = 0; $2 < h2._sb.length; $2++) h2.__h.push(h2._sb[$2]);
|
|
134
|
+
h2._sb = [], h2.__h.length && e2.push(h2);
|
|
135
135
|
break n;
|
|
136
136
|
}
|
|
137
|
-
h2.componentWillUpdate != null && h2.componentWillUpdate(
|
|
138
|
-
h2.componentDidUpdate(
|
|
137
|
+
h2.componentWillUpdate != null && h2.componentWillUpdate(b, h2.__s, M2), S2 && h2.componentDidUpdate != null && h2.__h.push(function() {
|
|
138
|
+
h2.componentDidUpdate(y2, v2, _2);
|
|
139
139
|
});
|
|
140
140
|
}
|
|
141
|
-
if (h2.context =
|
|
142
|
-
for (h2.state = h2.__s, h2.__d = !1,
|
|
141
|
+
if (h2.context = M2, h2.props = b, h2.__P = n2, h2.__e = !1, P2 = l$1.__r, A2 = 0, S2) {
|
|
142
|
+
for (h2.state = h2.__s, h2.__d = !1, P2 && P2(u2), a2 = h2.render(h2.props, h2.state, h2.context), H2 = 0; H2 < h2._sb.length; H2++) h2.__h.push(h2._sb[H2]);
|
|
143
143
|
h2._sb = [];
|
|
144
144
|
} else do
|
|
145
|
-
h2.__d = !1,
|
|
146
|
-
while (h2.__d && ++
|
|
147
|
-
h2.state = h2.__s, h2.getChildContext != null && (i2 = d$1(d$1({}, i2), h2.getChildContext())),
|
|
145
|
+
h2.__d = !1, P2 && P2(u2), a2 = h2.render(h2.props, h2.state, h2.context), h2.state = h2.__s;
|
|
146
|
+
while (h2.__d && ++A2 < 25);
|
|
147
|
+
h2.state = h2.__s, h2.getChildContext != null && (i2 = d$1(d$1({}, i2), h2.getChildContext())), S2 && !p2 && h2.getSnapshotBeforeUpdate != null && (_2 = h2.getSnapshotBeforeUpdate(y2, v2)), L2 = a2, a2 != null && a2.type === k$1 && a2.key == null && (L2 = N$1(a2.props.children)), f2 = I(n2, w$1(L2) ? L2 : [L2], u2, t2, i2, r2, o2, e2, f2, c2, s2), h2.base = u2.__e, u2.__u &= -161, h2.__h.length && e2.push(h2), m2 && (h2.__E = h2.__ = null);
|
|
148
148
|
} catch (n3) {
|
|
149
|
-
if (u2.__v = null, c2 ||
|
|
150
|
-
for (u2.__u |= c2 ? 160 : 128;
|
|
151
|
-
|
|
152
|
-
} else
|
|
149
|
+
if (u2.__v = null, c2 || o2 != null) if (n3.then) {
|
|
150
|
+
for (u2.__u |= c2 ? 160 : 128; f2 && f2.nodeType == 8 && f2.nextSibling; ) f2 = f2.nextSibling;
|
|
151
|
+
o2[o2.indexOf(f2)] = null, u2.__e = f2;
|
|
152
|
+
} else for (T2 = o2.length; T2--; ) g$1(o2[T2]);
|
|
153
|
+
else u2.__e = t2.__e, u2.__k = t2.__k;
|
|
153
154
|
l$1.__e(n3, u2, t2);
|
|
154
155
|
}
|
|
155
|
-
else
|
|
156
|
-
(a2 = l$1.diffed) && a2(u2);
|
|
156
|
+
else o2 == null && u2.__v == t2.__v ? (u2.__k = t2.__k, u2.__e = t2.__e) : f2 = u2.__e = V$1(t2.__e, u2, t2, i2, r2, o2, e2, c2, s2);
|
|
157
|
+
return (a2 = l$1.diffed) && a2(u2), 128 & u2.__u ? void 0 : f2;
|
|
157
158
|
}
|
|
158
|
-
function
|
|
159
|
-
|
|
160
|
-
for (var i2 = 0; i2 < t2.length; i2++) E(t2[i2], t2[++i2], t2[++i2]);
|
|
159
|
+
function z$1(n2, u2, t2) {
|
|
160
|
+
for (var i2 = 0; i2 < t2.length; i2++) q$2(t2[i2], t2[++i2], t2[++i2]);
|
|
161
161
|
l$1.__c && l$1.__c(u2, n2), n2.some(function(u3) {
|
|
162
162
|
try {
|
|
163
163
|
n2 = u3.__h, u3.__h = [], n2.some(function(n3) {
|
|
@@ -168,36 +168,39 @@ function j$1(n2, u2, t2) {
|
|
|
168
168
|
}
|
|
169
169
|
});
|
|
170
170
|
}
|
|
171
|
-
function
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
171
|
+
function N$1(n2) {
|
|
172
|
+
return typeof n2 != "object" || n2 == null || n2.__b && n2.__b > 0 ? n2 : w$1(n2) ? n2.map(N$1) : d$1({}, n2);
|
|
173
|
+
}
|
|
174
|
+
function V$1(u2, t2, i2, r2, o2, e2, f2, c2, s2) {
|
|
175
|
+
var a2, h2, y2, v2, d2, _2, m2, b = i2.props, k2 = t2.props, x2 = t2.type;
|
|
176
|
+
if (x2 == "svg" ? o2 = "http://www.w3.org/2000/svg" : x2 == "math" ? o2 = "http://www.w3.org/1998/Math/MathML" : o2 || (o2 = "http://www.w3.org/1999/xhtml"), e2 != null) {
|
|
177
|
+
for (a2 = 0; a2 < e2.length; a2++) if ((d2 = e2[a2]) && "setAttribute" in d2 == !!x2 && (x2 ? d2.localName == x2 : d2.nodeType == 3)) {
|
|
178
|
+
u2 = d2, e2[a2] = null;
|
|
176
179
|
break;
|
|
177
180
|
}
|
|
178
181
|
}
|
|
179
182
|
if (u2 == null) {
|
|
180
|
-
if (
|
|
181
|
-
u2 = document.createElementNS(
|
|
183
|
+
if (x2 == null) return document.createTextNode(k2);
|
|
184
|
+
u2 = document.createElementNS(o2, x2, k2.is && k2), c2 && (l$1.__m && l$1.__m(t2, e2), c2 = !1), e2 = null;
|
|
182
185
|
}
|
|
183
|
-
if (
|
|
186
|
+
if (x2 == null) b === k2 || c2 && u2.data == k2 || (u2.data = k2);
|
|
184
187
|
else {
|
|
185
|
-
if (
|
|
186
|
-
for (a2 in
|
|
187
|
-
if (a2 == "dangerouslySetInnerHTML")
|
|
188
|
+
if (e2 = e2 && n.call(u2.childNodes), b = i2.props || p$1, !c2 && e2 != null) for (b = {}, a2 = 0; a2 < u2.attributes.length; a2++) b[(d2 = u2.attributes[a2]).name] = d2.value;
|
|
189
|
+
for (a2 in b) if (d2 = b[a2], a2 != "children") {
|
|
190
|
+
if (a2 == "dangerouslySetInnerHTML") y2 = d2;
|
|
188
191
|
else if (!(a2 in k2)) {
|
|
189
192
|
if (a2 == "value" && "defaultValue" in k2 || a2 == "checked" && "defaultChecked" in k2) continue;
|
|
190
|
-
|
|
193
|
+
j$2(u2, a2, null, d2, o2);
|
|
191
194
|
}
|
|
192
195
|
}
|
|
193
|
-
for (a2 in k2)
|
|
194
|
-
if (
|
|
195
|
-
else if (
|
|
196
|
-
c2 || (a2 = "value",
|
|
196
|
+
for (a2 in k2) d2 = k2[a2], a2 == "children" ? v2 = d2 : a2 == "dangerouslySetInnerHTML" ? h2 = d2 : a2 == "value" ? _2 = d2 : a2 == "checked" ? m2 = d2 : c2 && typeof d2 != "function" || b[a2] === d2 || j$2(u2, a2, d2, b[a2], o2);
|
|
197
|
+
if (h2) c2 || y2 && (h2.__html == y2.__html || h2.__html == u2.innerHTML) || (u2.innerHTML = h2.__html), t2.__k = [];
|
|
198
|
+
else if (y2 && (u2.innerHTML = ""), I(t2.type == "template" ? u2.content : u2, w$1(v2) ? v2 : [v2], t2, i2, r2, x2 == "foreignObject" ? "http://www.w3.org/1999/xhtml" : o2, e2, f2, e2 ? e2[0] : i2.__k && S(i2, 0), c2, s2), e2 != null) for (a2 = e2.length; a2--; ) g$1(e2[a2]);
|
|
199
|
+
c2 || (a2 = "value", x2 == "progress" && _2 == null ? u2.removeAttribute("value") : _2 != null && (_2 !== u2[a2] || x2 == "progress" && !_2 || x2 == "option" && _2 != b[a2]) && j$2(u2, a2, _2, b[a2], o2), a2 = "checked", m2 != null && m2 != u2[a2] && j$2(u2, a2, m2, b[a2], o2));
|
|
197
200
|
}
|
|
198
201
|
return u2;
|
|
199
202
|
}
|
|
200
|
-
function
|
|
203
|
+
function q$2(n2, u2, t2) {
|
|
201
204
|
try {
|
|
202
205
|
if (typeof n2 == "function") {
|
|
203
206
|
var i2 = typeof n2.__u == "function";
|
|
@@ -207,9 +210,9 @@ function E(n2, u2, t2) {
|
|
|
207
210
|
l$1.__e(n3, t2);
|
|
208
211
|
}
|
|
209
212
|
}
|
|
210
|
-
function
|
|
211
|
-
var i2,
|
|
212
|
-
if (l$1.unmount && l$1.unmount(n2), (i2 = n2.ref) && (i2.current && i2.current
|
|
213
|
+
function B$2(n2, u2, t2) {
|
|
214
|
+
var i2, r2;
|
|
215
|
+
if (l$1.unmount && l$1.unmount(n2), (i2 = n2.ref) && (i2.current && i2.current != n2.__e || q$2(i2, null, u2)), (i2 = n2.__c) != null) {
|
|
213
216
|
if (i2.componentWillUnmount) try {
|
|
214
217
|
i2.componentWillUnmount();
|
|
215
218
|
} catch (n3) {
|
|
@@ -217,55 +220,55 @@ function N(n2, u2, t2) {
|
|
|
217
220
|
}
|
|
218
221
|
i2.base = i2.__P = null;
|
|
219
222
|
}
|
|
220
|
-
if (i2 = n2.__k) for (
|
|
221
|
-
t2 ||
|
|
223
|
+
if (i2 = n2.__k) for (r2 = 0; r2 < i2.length; r2++) i2[r2] && B$2(i2[r2], u2, t2 || typeof n2.type != "function");
|
|
224
|
+
t2 || g$1(n2.__e), n2.__c = n2.__ = n2.__e = void 0;
|
|
222
225
|
}
|
|
223
|
-
function
|
|
226
|
+
function D$1(n2, l2, u2) {
|
|
224
227
|
return this.constructor(n2, u2);
|
|
225
228
|
}
|
|
226
|
-
function
|
|
227
|
-
var o2,
|
|
228
|
-
l$1.__ && l$1.__(u2, t2),
|
|
229
|
+
function E$1(u2, t2, i2) {
|
|
230
|
+
var r2, o2, e2, f2;
|
|
231
|
+
t2 == document && (t2 = document.documentElement), l$1.__ && l$1.__(u2, t2), o2 = (r2 = typeof i2 == "function") ? null : i2 && i2.__k || t2.__k, e2 = [], f2 = [], O(t2, u2 = (!r2 && i2 || t2).__k = _$1(k$1, null, [u2]), o2 || p$1, p$1, t2.namespaceURI, !r2 && i2 ? [i2] : o2 ? null : t2.firstChild ? n.call(t2.childNodes) : null, e2, !r2 && i2 ? i2 : o2 ? o2.__e : t2.firstChild, r2, f2), z$1(e2, u2, f2);
|
|
229
232
|
}
|
|
230
|
-
n =
|
|
231
|
-
for (var i2,
|
|
232
|
-
if ((
|
|
233
|
+
n = y$1.slice, l$1 = { __e: function(n2, l2, u2, t2) {
|
|
234
|
+
for (var i2, r2, o2; l2 = l2.__; ) if ((i2 = l2.__c) && !i2.__) try {
|
|
235
|
+
if ((r2 = i2.constructor) && r2.getDerivedStateFromError != null && (i2.setState(r2.getDerivedStateFromError(n2)), o2 = i2.__d), i2.componentDidCatch != null && (i2.componentDidCatch(n2, t2 || {}), o2 = i2.__d), o2) return i2.__E = i2;
|
|
233
236
|
} catch (l3) {
|
|
234
237
|
n2 = l3;
|
|
235
238
|
}
|
|
236
239
|
throw n2;
|
|
237
|
-
} }, u$2 = 0,
|
|
240
|
+
} }, u$2 = 0, x.prototype.setState = function(n2, l2) {
|
|
238
241
|
var u2;
|
|
239
|
-
u2 = this.__s != null && this.__s
|
|
240
|
-
},
|
|
241
|
-
this.__v && (this.__e = !0, n2 && this.__h.push(n2),
|
|
242
|
-
},
|
|
242
|
+
u2 = this.__s != null && this.__s != this.state ? this.__s : this.__s = d$1({}, this.state), typeof n2 == "function" && (n2 = n2(d$1({}, u2), this.props)), n2 && d$1(u2, n2), n2 != null && this.__v && (l2 && this._sb.push(l2), M(this));
|
|
243
|
+
}, x.prototype.forceUpdate = function(n2) {
|
|
244
|
+
this.__v && (this.__e = !0, n2 && this.__h.push(n2), M(this));
|
|
245
|
+
}, x.prototype.render = k$1, i$1 = [], o$1 = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, e$1 = function(n2, l2) {
|
|
243
246
|
return n2.__v.__b - l2.__v.__b;
|
|
244
|
-
},
|
|
247
|
+
}, $.__r = 0, f$2 = /(PointerCapture)$|Capture$/i, c$1 = 0, s$1 = F$1(!1), a$1 = F$1(!0);
|
|
245
248
|
var f$1 = 0;
|
|
246
249
|
function u$1(e2, t2, n2, o2, i2, u2) {
|
|
247
250
|
t2 || (t2 = {});
|
|
248
|
-
var a2, c2,
|
|
249
|
-
"ref" in
|
|
250
|
-
var
|
|
251
|
-
if (typeof e2 == "function" && (a2 = e2.defaultProps)) for (c2 in a2)
|
|
252
|
-
return l$1.vnode && l$1.vnode(
|
|
251
|
+
var a2, c2, p2 = t2;
|
|
252
|
+
if ("ref" in p2) for (c2 in p2 = {}, t2) c2 == "ref" ? a2 = t2[c2] : p2[c2] = t2[c2];
|
|
253
|
+
var l2 = { type: e2, props: p2, key: n2, ref: a2, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --f$1, __i: -1, __u: 0, __source: i2, __self: u2 };
|
|
254
|
+
if (typeof e2 == "function" && (a2 = e2.defaultProps)) for (c2 in a2) p2[c2] === void 0 && (p2[c2] = a2[c2]);
|
|
255
|
+
return l$1.vnode && l$1.vnode(l2), l2;
|
|
253
256
|
}
|
|
254
257
|
var t, r, u, i, o = 0, f = [], c = l$1, e = c.__b, a = c.__r, v = c.diffed, l = c.__c, m = c.unmount, s = c.__;
|
|
255
|
-
function
|
|
258
|
+
function p(n2, t2) {
|
|
256
259
|
c.__h && c.__h(r, n2, o || t2), o = 0;
|
|
257
260
|
var u2 = r.__H || (r.__H = { __: [], __h: [] });
|
|
258
261
|
return n2 >= u2.__.length && u2.__.push({}), u2.__[n2];
|
|
259
262
|
}
|
|
260
|
-
function
|
|
261
|
-
return o = 1,
|
|
263
|
+
function d(n2) {
|
|
264
|
+
return o = 1, h(D, n2);
|
|
262
265
|
}
|
|
263
|
-
function
|
|
264
|
-
var o2 =
|
|
266
|
+
function h(n2, u2, i2) {
|
|
267
|
+
var o2 = p(t++, 2);
|
|
265
268
|
if (o2.t = n2, !o2.__c && (o2.__ = [i2 ? i2(u2) : D(void 0, u2), function(n3) {
|
|
266
269
|
var t2 = o2.__N ? o2.__N[0] : o2.__[0], r2 = o2.t(t2, n3);
|
|
267
270
|
t2 !== r2 && (o2.__N = [r2, o2.__[1]], o2.__c.setState({}));
|
|
268
|
-
}], o2.__c = r, !r.
|
|
271
|
+
}], o2.__c = r, !r.__f)) {
|
|
269
272
|
var f2 = function(n3, t2, r2) {
|
|
270
273
|
if (!o2.__c.__H) return !0;
|
|
271
274
|
var u3 = o2.__c.__H.__.filter(function(n4) {
|
|
@@ -282,7 +285,7 @@ function p(n2, u2, i2) {
|
|
|
282
285
|
}
|
|
283
286
|
}), c2 && c2.call(this, n3, t2, r2) || i3;
|
|
284
287
|
};
|
|
285
|
-
r.
|
|
288
|
+
r.__f = !0;
|
|
286
289
|
var c2 = r.shouldComponentUpdate, e2 = r.componentWillUpdate;
|
|
287
290
|
r.componentWillUpdate = function(n3, t2, r2) {
|
|
288
291
|
if (this.__e) {
|
|
@@ -295,25 +298,25 @@ function p(n2, u2, i2) {
|
|
|
295
298
|
return o2.__N || o2.__;
|
|
296
299
|
}
|
|
297
300
|
function y(n2, u2) {
|
|
298
|
-
var i2 =
|
|
299
|
-
!c.__s && C(i2.__H, u2) && (i2.__ = n2, i2.
|
|
301
|
+
var i2 = p(t++, 3);
|
|
302
|
+
!c.__s && C(i2.__H, u2) && (i2.__ = n2, i2.u = u2, r.__H.__h.push(i2));
|
|
300
303
|
}
|
|
301
304
|
function _(n2, u2) {
|
|
302
|
-
var i2 =
|
|
303
|
-
!c.__s && C(i2.__H, u2) && (i2.__ = n2, i2.
|
|
305
|
+
var i2 = p(t++, 4);
|
|
306
|
+
!c.__s && C(i2.__H, u2) && (i2.__ = n2, i2.u = u2, r.__h.push(i2));
|
|
304
307
|
}
|
|
305
|
-
function T(n2, r2) {
|
|
306
|
-
var u2 =
|
|
308
|
+
function T$1(n2, r2) {
|
|
309
|
+
var u2 = p(t++, 7);
|
|
307
310
|
return C(u2.__H, r2) && (u2.__ = n2(), u2.__H = r2, u2.__h = n2), u2.__;
|
|
308
311
|
}
|
|
309
312
|
function q$1(n2, t2) {
|
|
310
|
-
return o = 8, T(function() {
|
|
313
|
+
return o = 8, T$1(function() {
|
|
311
314
|
return n2;
|
|
312
315
|
}, t2);
|
|
313
316
|
}
|
|
314
|
-
function j() {
|
|
317
|
+
function j$1() {
|
|
315
318
|
for (var n2; n2 = f.shift(); ) if (n2.__P && n2.__H) try {
|
|
316
|
-
n2.__H.__h.forEach(z
|
|
319
|
+
n2.__H.__h.forEach(z), n2.__H.__h.forEach(B$1), n2.__H.__h = [];
|
|
317
320
|
} catch (t2) {
|
|
318
321
|
n2.__H.__h = [], c.__e(t2, n2.__v);
|
|
319
322
|
}
|
|
@@ -326,18 +329,18 @@ c.__b = function(n2) {
|
|
|
326
329
|
a && a(n2), t = 0;
|
|
327
330
|
var i2 = (r = n2.__c).__H;
|
|
328
331
|
i2 && (u === r ? (i2.__h = [], r.__h = [], i2.__.forEach(function(n3) {
|
|
329
|
-
n3.__N && (n3.__ = n3.__N), n3.
|
|
330
|
-
})) : (i2.__h.forEach(z
|
|
332
|
+
n3.__N && (n3.__ = n3.__N), n3.u = n3.__N = void 0;
|
|
333
|
+
})) : (i2.__h.forEach(z), i2.__h.forEach(B$1), i2.__h = [], t = 0)), u = r;
|
|
331
334
|
}, c.diffed = function(n2) {
|
|
332
335
|
v && v(n2);
|
|
333
336
|
var t2 = n2.__c;
|
|
334
|
-
t2 && t2.__H && (t2.__H.__h.length && (f.push(t2) !== 1 && i === c.requestAnimationFrame || ((i = c.requestAnimationFrame) || w)(j)), t2.__H.__.forEach(function(n3) {
|
|
335
|
-
n3.
|
|
337
|
+
t2 && t2.__H && (t2.__H.__h.length && (f.push(t2) !== 1 && i === c.requestAnimationFrame || ((i = c.requestAnimationFrame) || w)(j$1)), t2.__H.__.forEach(function(n3) {
|
|
338
|
+
n3.u && (n3.__H = n3.u), n3.u = void 0;
|
|
336
339
|
})), u = r = null;
|
|
337
340
|
}, c.__c = function(n2, t2) {
|
|
338
341
|
t2.some(function(n3) {
|
|
339
342
|
try {
|
|
340
|
-
n3.__h.forEach(z
|
|
343
|
+
n3.__h.forEach(z), n3.__h = n3.__h.filter(function(n4) {
|
|
341
344
|
return !n4.__ || B$1(n4);
|
|
342
345
|
});
|
|
343
346
|
} catch (r2) {
|
|
@@ -351,7 +354,7 @@ c.__b = function(n2) {
|
|
|
351
354
|
var t2, r2 = n2.__c;
|
|
352
355
|
r2 && r2.__H && (r2.__H.__.forEach(function(n3) {
|
|
353
356
|
try {
|
|
354
|
-
z
|
|
357
|
+
z(n3);
|
|
355
358
|
} catch (n4) {
|
|
356
359
|
t2 = n4;
|
|
357
360
|
}
|
|
@@ -364,7 +367,7 @@ function w(n2) {
|
|
|
364
367
|
}, u2 = setTimeout(r2, 100);
|
|
365
368
|
k && (t2 = requestAnimationFrame(r2));
|
|
366
369
|
}
|
|
367
|
-
function z
|
|
370
|
+
function z(n2) {
|
|
368
371
|
var t2 = r, u2 = n2.__c;
|
|
369
372
|
typeof u2 == "function" && (n2.__c = void 0, u2()), r = t2;
|
|
370
373
|
}
|
|
@@ -380,7 +383,186 @@ function C(n2, t2) {
|
|
|
380
383
|
function D(n2, t2) {
|
|
381
384
|
return typeof t2 == "function" ? t2(n2) : t2;
|
|
382
385
|
}
|
|
383
|
-
|
|
386
|
+
function g(n2, t2) {
|
|
387
|
+
for (var e2 in t2) n2[e2] = t2[e2];
|
|
388
|
+
return n2;
|
|
389
|
+
}
|
|
390
|
+
function E(n2, t2) {
|
|
391
|
+
for (var e2 in n2) if (e2 !== "__source" && !(e2 in t2)) return !0;
|
|
392
|
+
for (var r2 in t2) if (r2 !== "__source" && n2[r2] !== t2[r2]) return !0;
|
|
393
|
+
return !1;
|
|
394
|
+
}
|
|
395
|
+
function N(n2, t2) {
|
|
396
|
+
this.props = n2, this.context = t2;
|
|
397
|
+
}
|
|
398
|
+
(N.prototype = new x()).isPureReactComponent = !0, N.prototype.shouldComponentUpdate = function(n2, t2) {
|
|
399
|
+
return E(this.props, n2) || E(this.state, t2);
|
|
400
|
+
};
|
|
401
|
+
var T = l$1.__b;
|
|
402
|
+
l$1.__b = function(n2) {
|
|
403
|
+
n2.type && n2.type.__f && n2.ref && (n2.props.ref = n2.ref, n2.ref = null), T && T(n2);
|
|
404
|
+
};
|
|
405
|
+
var F = l$1.__e;
|
|
406
|
+
l$1.__e = function(n2, t2, e2, r2) {
|
|
407
|
+
if (n2.then) {
|
|
408
|
+
for (var u2, o2 = t2; o2 = o2.__; ) if ((u2 = o2.__c) && u2.__c) return t2.__e == null && (t2.__e = e2.__e, t2.__k = e2.__k), u2.__c(n2, t2);
|
|
409
|
+
}
|
|
410
|
+
F(n2, t2, e2, r2);
|
|
411
|
+
};
|
|
412
|
+
var U = l$1.unmount;
|
|
413
|
+
function V(n2, t2, e2) {
|
|
414
|
+
return n2 && (n2.__c && n2.__c.__H && (n2.__c.__H.__.forEach(function(n3) {
|
|
415
|
+
typeof n3.__c == "function" && n3.__c();
|
|
416
|
+
}), n2.__c.__H = null), (n2 = g({}, n2)).__c != null && (n2.__c.__P === e2 && (n2.__c.__P = t2), n2.__c.__e = !0, n2.__c = null), n2.__k = n2.__k && n2.__k.map(function(n3) {
|
|
417
|
+
return V(n3, t2, e2);
|
|
418
|
+
})), n2;
|
|
419
|
+
}
|
|
420
|
+
function W(n2, t2, e2) {
|
|
421
|
+
return n2 && e2 && (n2.__v = null, n2.__k = n2.__k && n2.__k.map(function(n3) {
|
|
422
|
+
return W(n3, t2, e2);
|
|
423
|
+
}), n2.__c && n2.__c.__P === t2 && (n2.__e && e2.appendChild(n2.__e), n2.__c.__e = !0, n2.__c.__P = e2)), n2;
|
|
424
|
+
}
|
|
425
|
+
function P() {
|
|
426
|
+
this.__u = 0, this.o = null, this.__b = null;
|
|
427
|
+
}
|
|
428
|
+
function j(n2) {
|
|
429
|
+
var t2 = n2.__.__c;
|
|
430
|
+
return t2 && t2.__a && t2.__a(n2);
|
|
431
|
+
}
|
|
432
|
+
function B() {
|
|
433
|
+
this.i = null, this.l = null;
|
|
434
|
+
}
|
|
435
|
+
l$1.unmount = function(n2) {
|
|
436
|
+
var t2 = n2.__c;
|
|
437
|
+
t2 && t2.__R && t2.__R(), t2 && 32 & n2.__u && (n2.type = null), U && U(n2);
|
|
438
|
+
}, (P.prototype = new x()).__c = function(n2, t2) {
|
|
439
|
+
var e2 = t2.__c, r2 = this;
|
|
440
|
+
r2.o == null && (r2.o = []), r2.o.push(e2);
|
|
441
|
+
var u2 = j(r2.__v), o2 = !1, i2 = function() {
|
|
442
|
+
o2 || (o2 = !0, e2.__R = null, u2 ? u2(c2) : c2());
|
|
443
|
+
};
|
|
444
|
+
e2.__R = i2;
|
|
445
|
+
var c2 = function() {
|
|
446
|
+
if (!--r2.__u) {
|
|
447
|
+
if (r2.state.__a) {
|
|
448
|
+
var n3 = r2.state.__a;
|
|
449
|
+
r2.__v.__k[0] = W(n3, n3.__c.__P, n3.__c.__O);
|
|
450
|
+
}
|
|
451
|
+
var t3;
|
|
452
|
+
for (r2.setState({ __a: r2.__b = null }); t3 = r2.o.pop(); ) t3.forceUpdate();
|
|
453
|
+
}
|
|
454
|
+
};
|
|
455
|
+
r2.__u++ || 32 & t2.__u || r2.setState({ __a: r2.__b = r2.__v.__k[0] }), n2.then(i2, i2);
|
|
456
|
+
}, P.prototype.componentWillUnmount = function() {
|
|
457
|
+
this.o = [];
|
|
458
|
+
}, P.prototype.render = function(n2, e2) {
|
|
459
|
+
if (this.__b) {
|
|
460
|
+
if (this.__v.__k) {
|
|
461
|
+
var r2 = document.createElement("div"), o2 = this.__v.__k[0].__c;
|
|
462
|
+
this.__v.__k[0] = V(this.__b, r2, o2.__O = o2.__P);
|
|
463
|
+
}
|
|
464
|
+
this.__b = null;
|
|
465
|
+
}
|
|
466
|
+
var i2 = e2.__a && _$1(k$1, null, n2.fallback);
|
|
467
|
+
return i2 && (i2.__u &= -33), [_$1(k$1, null, e2.__a ? null : n2.children), i2];
|
|
468
|
+
};
|
|
469
|
+
var H = function(n2, t2, e2) {
|
|
470
|
+
if (++e2[1] === e2[0] && n2.l.delete(t2), n2.props.revealOrder && (n2.props.revealOrder[0] !== "t" || !n2.l.size)) for (e2 = n2.i; e2; ) {
|
|
471
|
+
for (; e2.length > 3; ) e2.pop()();
|
|
472
|
+
if (e2[1] < e2[0]) break;
|
|
473
|
+
n2.i = e2 = e2[2];
|
|
474
|
+
}
|
|
475
|
+
};
|
|
476
|
+
(B.prototype = new x()).__a = function(n2) {
|
|
477
|
+
var t2 = this, e2 = j(t2.__v), r2 = t2.l.get(n2);
|
|
478
|
+
return r2[0]++, function(u2) {
|
|
479
|
+
var o2 = function() {
|
|
480
|
+
t2.props.revealOrder ? (r2.push(u2), H(t2, n2, r2)) : u2();
|
|
481
|
+
};
|
|
482
|
+
e2 ? e2(o2) : o2();
|
|
483
|
+
};
|
|
484
|
+
}, B.prototype.render = function(n2) {
|
|
485
|
+
this.i = null, this.l = /* @__PURE__ */ new Map();
|
|
486
|
+
var t2 = H$1(n2.children);
|
|
487
|
+
n2.revealOrder && n2.revealOrder[0] === "b" && t2.reverse();
|
|
488
|
+
for (var e2 = t2.length; e2--; ) this.l.set(t2[e2], this.i = [1, 0, this.i]);
|
|
489
|
+
return n2.children;
|
|
490
|
+
}, B.prototype.componentDidUpdate = B.prototype.componentDidMount = function() {
|
|
491
|
+
var n2 = this;
|
|
492
|
+
this.l.forEach(function(t2, e2) {
|
|
493
|
+
H(n2, e2, t2);
|
|
494
|
+
});
|
|
495
|
+
};
|
|
496
|
+
var q = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, G = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, J = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, K = /[A-Z0-9]/g, Q = typeof document < "u", X = function(n2) {
|
|
497
|
+
return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(n2);
|
|
498
|
+
};
|
|
499
|
+
x.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(t2) {
|
|
500
|
+
Object.defineProperty(x.prototype, t2, { configurable: !0, get: function() {
|
|
501
|
+
return this["UNSAFE_" + t2];
|
|
502
|
+
}, set: function(n2) {
|
|
503
|
+
Object.defineProperty(this, t2, { configurable: !0, writable: !0, value: n2 });
|
|
504
|
+
} });
|
|
505
|
+
});
|
|
506
|
+
var en = l$1.event;
|
|
507
|
+
function rn() {
|
|
508
|
+
}
|
|
509
|
+
function un() {
|
|
510
|
+
return this.cancelBubble;
|
|
511
|
+
}
|
|
512
|
+
function on() {
|
|
513
|
+
return this.defaultPrevented;
|
|
514
|
+
}
|
|
515
|
+
l$1.event = function(n2) {
|
|
516
|
+
return en && (n2 = en(n2)), n2.persist = rn, n2.isPropagationStopped = un, n2.isDefaultPrevented = on, n2.nativeEvent = n2;
|
|
517
|
+
};
|
|
518
|
+
var ln = { enumerable: !1, configurable: !0, get: function() {
|
|
519
|
+
return this.class;
|
|
520
|
+
} }, fn = l$1.vnode;
|
|
521
|
+
l$1.vnode = function(n2) {
|
|
522
|
+
typeof n2.type == "string" && function(n3) {
|
|
523
|
+
var t2 = n3.props, e2 = n3.type, u2 = {}, o2 = e2.indexOf("-") === -1;
|
|
524
|
+
for (var i2 in t2) {
|
|
525
|
+
var c2 = t2[i2];
|
|
526
|
+
if (!(i2 === "value" && "defaultValue" in t2 && c2 == null || Q && i2 === "children" && e2 === "noscript" || i2 === "class" || i2 === "className")) {
|
|
527
|
+
var l2 = i2.toLowerCase();
|
|
528
|
+
i2 === "defaultValue" && "value" in t2 && t2.value == null ? i2 = "value" : i2 === "download" && c2 === !0 ? c2 = "" : l2 === "translate" && c2 === "no" ? c2 = !1 : l2[0] === "o" && l2[1] === "n" ? l2 === "ondoubleclick" ? i2 = "ondblclick" : l2 !== "onchange" || e2 !== "input" && e2 !== "textarea" || X(t2.type) ? l2 === "onfocus" ? i2 = "onfocusin" : l2 === "onblur" ? i2 = "onfocusout" : J.test(i2) && (i2 = l2) : l2 = i2 = "oninput" : o2 && G.test(i2) ? i2 = i2.replace(K, "-$&").toLowerCase() : c2 === null && (c2 = void 0), l2 === "oninput" && u2[i2 = l2] && (i2 = "oninputCapture"), u2[i2] = c2;
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
e2 == "select" && u2.multiple && Array.isArray(u2.value) && (u2.value = H$1(t2.children).forEach(function(n4) {
|
|
532
|
+
n4.props.selected = u2.value.indexOf(n4.props.value) != -1;
|
|
533
|
+
})), e2 == "select" && u2.defaultValue != null && (u2.value = H$1(t2.children).forEach(function(n4) {
|
|
534
|
+
n4.props.selected = u2.multiple ? u2.defaultValue.indexOf(n4.props.value) != -1 : u2.defaultValue == n4.props.value;
|
|
535
|
+
})), t2.class && !t2.className ? (u2.class = t2.class, Object.defineProperty(u2, "className", ln)) : (t2.className && !t2.class || t2.class && t2.className) && (u2.class = u2.className = t2.className), n3.props = u2;
|
|
536
|
+
}(n2), n2.$$typeof = q, fn && fn(n2);
|
|
537
|
+
};
|
|
538
|
+
var an = l$1.__r;
|
|
539
|
+
l$1.__r = function(n2) {
|
|
540
|
+
an && an(n2), n2.__c;
|
|
541
|
+
};
|
|
542
|
+
var sn = l$1.diffed;
|
|
543
|
+
l$1.diffed = function(n2) {
|
|
544
|
+
sn && sn(n2);
|
|
545
|
+
var t2 = n2.props, e2 = n2.__e;
|
|
546
|
+
e2 != null && n2.type === "textarea" && "value" in t2 && t2.value !== e2.value && (e2.value = t2.value == null ? "" : t2.value);
|
|
547
|
+
};
|
|
548
|
+
function bn(n2) {
|
|
549
|
+
return !!n2.__k && (E$1(null, n2), !0);
|
|
550
|
+
}
|
|
551
|
+
const preactShim = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
552
|
+
__proto__: null,
|
|
553
|
+
Component: x,
|
|
554
|
+
Fragment: k$1,
|
|
555
|
+
createElement: _$1,
|
|
556
|
+
h: _$1,
|
|
557
|
+
render: E$1,
|
|
558
|
+
unmountComponentAtNode: bn,
|
|
559
|
+
useCallback: q$1,
|
|
560
|
+
useEffect: y,
|
|
561
|
+
useLayoutEffect: _,
|
|
562
|
+
useMemo: T$1,
|
|
563
|
+
useReducer: h,
|
|
564
|
+
useState: d
|
|
565
|
+
}, Symbol.toStringTag, { value: "Module" })), Image = ({
|
|
384
566
|
href,
|
|
385
567
|
x: x2,
|
|
386
568
|
y: y2 = 0,
|
|
@@ -404,7 +586,7 @@ const Image = ({
|
|
|
404
586
|
char = "",
|
|
405
587
|
fontWeight
|
|
406
588
|
}) => {
|
|
407
|
-
const renderChar = T(() => fontFamily === "FontAwesome" ? Utility.faChar(char) : char, [char, fontFamily]);
|
|
589
|
+
const renderChar = T$1(() => fontFamily === "FontAwesome" ? Utility.faChar(char) : char, [char, fontFamily]);
|
|
408
590
|
return /* @__PURE__ */ u$1(
|
|
409
591
|
"text",
|
|
410
592
|
{
|
|
@@ -543,7 +725,7 @@ const Image = ({
|
|
|
543
725
|
yOffset = 0,
|
|
544
726
|
cornerRadius,
|
|
545
727
|
shapeRendering
|
|
546
|
-
}) => /* @__PURE__ */ u$1(
|
|
728
|
+
}) => /* @__PURE__ */ u$1(k$1, { children: [
|
|
547
729
|
/* @__PURE__ */ u$1(
|
|
548
730
|
Shape,
|
|
549
731
|
{
|
|
@@ -593,7 +775,7 @@ const Image = ({
|
|
|
593
775
|
},
|
|
594
776
|
cat.id
|
|
595
777
|
));
|
|
596
|
-
return /* @__PURE__ */ u$1(
|
|
778
|
+
return /* @__PURE__ */ u$1(k$1, { children: IconComponents });
|
|
597
779
|
}, TextLine = ({
|
|
598
780
|
text,
|
|
599
781
|
height = 12,
|
|
@@ -618,17 +800,17 @@ const Image = ({
|
|
|
618
800
|
fill = "black",
|
|
619
801
|
onSizeUpdate
|
|
620
802
|
}) => {
|
|
621
|
-
const [totalWidth, setTotalWidth] =
|
|
803
|
+
const [totalWidth, setTotalWidth] = d(0), [totalHeight, setTotalHeight] = d(0);
|
|
622
804
|
y(() => {
|
|
623
805
|
onSizeUpdate && onSizeUpdate({ width: totalWidth, height: totalHeight });
|
|
624
806
|
}, [totalWidth, totalHeight, onSizeUpdate]);
|
|
625
|
-
const parts = T(() => text.split(`
|
|
807
|
+
const parts = T$1(() => text.split(`
|
|
626
808
|
`), [text]);
|
|
627
809
|
_(() => {
|
|
628
810
|
const size = Utility.textSize(parts, fontFamily, height);
|
|
629
811
|
setTotalWidth(size.width), setTotalHeight(size.height);
|
|
630
812
|
}, [fontFamily, height, parts]);
|
|
631
|
-
const TextLines = T(() => {
|
|
813
|
+
const TextLines = T$1(() => {
|
|
632
814
|
const yOffset = -(totalHeight / 2) + height / 2;
|
|
633
815
|
return parts.map((p2, i2) => /* @__PURE__ */ u$1("g", { transform: `translate(0 ${yOffset + i2 * (height + 2)})`, children: /* @__PURE__ */ u$1(
|
|
634
816
|
TextLine,
|
|
@@ -653,19 +835,19 @@ const Image = ({
|
|
|
653
835
|
cornerRadius = 0,
|
|
654
836
|
onSizeUpdate
|
|
655
837
|
}) => {
|
|
656
|
-
const [textWidth, setTextWidthUpdate] =
|
|
838
|
+
const [textWidth, setTextWidthUpdate] = d(0), [textHeight, setTextHeightUpdate] = d(0);
|
|
657
839
|
y(() => {
|
|
658
840
|
onSizeUpdate && onSizeUpdate({ width: textWidth, height: textHeight });
|
|
659
841
|
}, [textWidth, textHeight, onSizeUpdate]);
|
|
660
842
|
const onTextSizeUpdate = q$1((size) => {
|
|
661
843
|
setTextWidthUpdate(size.width), setTextHeightUpdate(size.height);
|
|
662
|
-
}, []), w2 = textWidth + padding * 2 + strokeWidth,
|
|
663
|
-
return /* @__PURE__ */ u$1(
|
|
844
|
+
}, []), w2 = textWidth + padding * 2 + strokeWidth, h2 = textHeight + padding * 2 + strokeWidth, textOffsetY = Math.floor(height / 10);
|
|
845
|
+
return /* @__PURE__ */ u$1(k$1, { children: [
|
|
664
846
|
/* @__PURE__ */ u$1(
|
|
665
847
|
Rectangle,
|
|
666
848
|
{
|
|
667
849
|
width: w2,
|
|
668
|
-
height:
|
|
850
|
+
height: h2,
|
|
669
851
|
fill,
|
|
670
852
|
stroke,
|
|
671
853
|
strokeWidth,
|
|
@@ -697,13 +879,13 @@ const Image = ({
|
|
|
697
879
|
cornerRadius = 0,
|
|
698
880
|
onSizeUpdate
|
|
699
881
|
}) => {
|
|
700
|
-
const [actualWidth, setActualWidthUpdate] =
|
|
882
|
+
const [actualWidth, setActualWidthUpdate] = d(width), [actualHeight, setActualHeightUpdate] = d(height);
|
|
701
883
|
return _(() => {
|
|
702
884
|
const size = Utility.textSize(text, fontFamily, fontSize);
|
|
703
885
|
setActualWidthUpdate(size.width + padding * 2), setActualHeightUpdate(size.height + padding * 2);
|
|
704
886
|
}, [text, fontFamily, fontSize, padding]), _(() => {
|
|
705
887
|
onSizeUpdate && onSizeUpdate({ width: actualWidth, height: actualHeight });
|
|
706
|
-
}, [actualWidth, actualHeight, padding, onSizeUpdate]), /* @__PURE__ */ u$1(
|
|
888
|
+
}, [actualWidth, actualHeight, padding, onSizeUpdate]), /* @__PURE__ */ u$1(k$1, { children: [
|
|
707
889
|
/* @__PURE__ */ u$1(
|
|
708
890
|
Rectangle,
|
|
709
891
|
{
|
|
@@ -741,7 +923,7 @@ const Image = ({
|
|
|
741
923
|
textFill = "black",
|
|
742
924
|
strokeWidth = 1,
|
|
743
925
|
cornerRadius = 0
|
|
744
|
-
}) => /* @__PURE__ */ u$1(
|
|
926
|
+
}) => /* @__PURE__ */ u$1(k$1, { children: [
|
|
745
927
|
/* @__PURE__ */ u$1(
|
|
746
928
|
Rectangle,
|
|
747
929
|
{
|
|
@@ -784,15 +966,15 @@ const Image = ({
|
|
|
784
966
|
stroke,
|
|
785
967
|
strokeWidth,
|
|
786
968
|
strokeDasharray
|
|
787
|
-
}) => /* @__PURE__ */ u$1(
|
|
969
|
+
}) => /* @__PURE__ */ u$1(k$1, { children: [
|
|
788
970
|
/* @__PURE__ */ u$1("path", { d: path, stroke, style: { strokeWidth, strokeDasharray } }),
|
|
789
971
|
label && labelPos && labelPos.length === 2 ? /* @__PURE__ */ u$1("g", { transform: `translate(${labelPos[0]} ${labelPos[1]})`, children: /* @__PURE__ */ u$1(Text, { text: label, fill: labelFill, height: labelHeight }) }) : void 0
|
|
790
972
|
] });
|
|
791
973
|
function render(C2, props, parent, replaceNode) {
|
|
792
|
-
|
|
974
|
+
E$1(_$1(C2, props), parent, replaceNode);
|
|
793
975
|
}
|
|
794
976
|
function svgRender(C2, props, parent, replaceNode) {
|
|
795
|
-
|
|
977
|
+
E$1(_$1("svg", null, _$1(C2, props)), parent, replaceNode);
|
|
796
978
|
}
|
|
797
979
|
class HTMLAdapter extends HTMLWidget {
|
|
798
980
|
constructor(_component) {
|
|
@@ -849,7 +1031,7 @@ const Span = ({
|
|
|
849
1031
|
id
|
|
850
1032
|
)
|
|
851
1033
|
);
|
|
852
|
-
return /* @__PURE__ */ u$1(
|
|
1034
|
+
return /* @__PURE__ */ u$1(k$1, { children: IconComponents });
|
|
853
1035
|
}, Vertex = ({
|
|
854
1036
|
categoryID = "",
|
|
855
1037
|
text = "",
|
|
@@ -872,7 +1054,7 @@ const Span = ({
|
|
|
872
1054
|
fill: "transparent",
|
|
873
1055
|
...icon
|
|
874
1056
|
};
|
|
875
|
-
const [textBoxWidth, setTextBoxWidthUpdate] =
|
|
1057
|
+
const [textBoxWidth, setTextBoxWidthUpdate] = d(0), [textBoxHeight, setTextBoxHeightUpdate] = d(0);
|
|
876
1058
|
y(() => {
|
|
877
1059
|
onSizeUpdate && onSizeUpdate({ width: 0, height: 0 });
|
|
878
1060
|
}, [textBoxWidth, textBoxHeight, onSizeUpdate]);
|
|
@@ -926,7 +1108,7 @@ const Span = ({
|
|
|
926
1108
|
shape: "square",
|
|
927
1109
|
...icon
|
|
928
1110
|
};
|
|
929
|
-
const textBoxHeight = textHeight + textPadding * 2, { width } = T(() => Utility.textSize(text, textFontFamily, textHeight, !1), [text, textFontFamily, textHeight]), stepSize = annotationsHeight, textboxStrokeWidth = 1, halfTextboxHeight = textBoxHeight / 2, offsetX = 0, offsetY = -(icon.height * 2 / 6 + textHeight + 8) / 2, iconOffsetX = -icon.height / 2, iconOffsetY = 0, textboxOffsetX = Math.ceil(width / 2 + textPadding), textboxOffsetY = halfTextboxHeight - icon.height / 2, annotationOffsetX = stepSize / 2, annotationOffsetY = halfTextboxHeight;
|
|
1111
|
+
const textBoxHeight = textHeight + textPadding * 2, { width } = T$1(() => Utility.textSize(text, textFontFamily, textHeight, !1), [text, textFontFamily, textHeight]), stepSize = annotationsHeight, textboxStrokeWidth = 1, halfTextboxHeight = textBoxHeight / 2, offsetX = 0, offsetY = -(icon.height * 2 / 6 + textHeight + 8) / 2, iconOffsetX = -icon.height / 2, iconOffsetY = 0, textboxOffsetX = Math.ceil(width / 2 + textPadding), textboxOffsetY = halfTextboxHeight - icon.height / 2, annotationOffsetX = stepSize / 2, annotationOffsetY = halfTextboxHeight;
|
|
930
1112
|
return categoryID ? /* @__PURE__ */ u$1(
|
|
931
1113
|
"g",
|
|
932
1114
|
{
|
|
@@ -974,7 +1156,7 @@ const Span = ({
|
|
|
974
1156
|
)
|
|
975
1157
|
]
|
|
976
1158
|
}
|
|
977
|
-
) : /* @__PURE__ */ u$1(
|
|
1159
|
+
) : /* @__PURE__ */ u$1(k$1, { children: [
|
|
978
1160
|
/* @__PURE__ */ u$1(
|
|
979
1161
|
"g",
|
|
980
1162
|
{
|
|
@@ -1050,7 +1232,7 @@ const Span = ({
|
|
|
1050
1232
|
...expansionIcon
|
|
1051
1233
|
} : void 0;
|
|
1052
1234
|
let fullAnnotationWidth = 0;
|
|
1053
|
-
const annoOffsetY = 0, labelWidth = T(() => Utility.textSize(text, textFontFamily, textHeight, !1).width, [text, textFontFamily, textHeight]);
|
|
1235
|
+
const annoOffsetY = 0, labelWidth = T$1(() => Utility.textSize(text, textFontFamily, textHeight, !1).width, [text, textFontFamily, textHeight]);
|
|
1054
1236
|
let labelShapeWidth = 0;
|
|
1055
1237
|
text !== "" && (labelShapeWidth = labelWidth + textPadding * 2 + textboxStrokeWidth * 2), fullAnnotationWidth += labelShapeWidth + annotationGutter;
|
|
1056
1238
|
const textOffsetX = fullAnnotationWidth - labelShapeWidth / 2, textShapeHeight = textHeight + textPadding * 2 + textboxStrokeWidth * 2, annotationArr = [];
|
|
@@ -1230,7 +1412,7 @@ const Span = ({
|
|
|
1230
1412
|
textFill: "#555555",
|
|
1231
1413
|
...subText
|
|
1232
1414
|
};
|
|
1233
|
-
const annoOffsetY = 0, labelWidth = T(() => Utility.textSize(text, textFontFamily, textHeight, !1).width, [text, textFontFamily, textHeight]);
|
|
1415
|
+
const annoOffsetY = 0, labelWidth = T$1(() => Utility.textSize(text, textFontFamily, textHeight, !1).width, [text, textFontFamily, textHeight]);
|
|
1234
1416
|
let labelShapeWidth = 0;
|
|
1235
1417
|
text !== "" && (labelShapeWidth = labelWidth + textPadding * 2 + textboxStrokeWidth * 2);
|
|
1236
1418
|
let fullAnnotationWidth = labelShapeWidth + annotationGutter;
|
|
@@ -1449,7 +1631,7 @@ const Span = ({
|
|
|
1449
1631
|
fontFamily
|
|
1450
1632
|
}) => {
|
|
1451
1633
|
const tSize = Utility.textSize(text, fontFamily, fontHeight, !1);
|
|
1452
|
-
return /* @__PURE__ */ u$1(
|
|
1634
|
+
return /* @__PURE__ */ u$1(k$1, { children: [
|
|
1453
1635
|
/* @__PURE__ */ u$1(
|
|
1454
1636
|
Rectangle,
|
|
1455
1637
|
{
|
|
@@ -1475,185 +1657,6 @@ const Span = ({
|
|
|
1475
1657
|
)
|
|
1476
1658
|
] });
|
|
1477
1659
|
};
|
|
1478
|
-
function g(n2, t2) {
|
|
1479
|
-
for (var e2 in n2) if (e2 !== "__source" && !(e2 in t2)) return !0;
|
|
1480
|
-
for (var r2 in t2) if (r2 !== "__source" && n2[r2] !== t2[r2]) return !0;
|
|
1481
|
-
return !1;
|
|
1482
|
-
}
|
|
1483
|
-
function I(n2, t2) {
|
|
1484
|
-
this.props = n2, this.context = t2;
|
|
1485
|
-
}
|
|
1486
|
-
(I.prototype = new k$1()).isPureReactComponent = !0, I.prototype.shouldComponentUpdate = function(n2, t2) {
|
|
1487
|
-
return g(this.props, n2) || g(this.state, t2);
|
|
1488
|
-
};
|
|
1489
|
-
var M = l$1.__b;
|
|
1490
|
-
l$1.__b = function(n2) {
|
|
1491
|
-
n2.type && n2.type.__f && n2.ref && (n2.props.ref = n2.ref, n2.ref = null), M && M(n2);
|
|
1492
|
-
};
|
|
1493
|
-
var O = l$1.__e;
|
|
1494
|
-
l$1.__e = function(n2, t2, e2, r2) {
|
|
1495
|
-
if (n2.then) {
|
|
1496
|
-
for (var u2, o2 = t2; o2 = o2.__; ) if ((u2 = o2.__c) && u2.__c) return t2.__e == null && (t2.__e = e2.__e, t2.__k = e2.__k), u2.__c(n2, t2);
|
|
1497
|
-
}
|
|
1498
|
-
O(n2, t2, e2, r2);
|
|
1499
|
-
};
|
|
1500
|
-
var F = l$1.unmount;
|
|
1501
|
-
function U(n2, t2, e2) {
|
|
1502
|
-
return n2 && (n2.__c && n2.__c.__H && (n2.__c.__H.__.forEach(function(n3) {
|
|
1503
|
-
typeof n3.__c == "function" && n3.__c();
|
|
1504
|
-
}), n2.__c.__H = null), (n2 = function(n3, t3) {
|
|
1505
|
-
for (var e3 in t3) n3[e3] = t3[e3];
|
|
1506
|
-
return n3;
|
|
1507
|
-
}({}, n2)).__c != null && (n2.__c.__P === e2 && (n2.__c.__P = t2), n2.__c = null), n2.__k = n2.__k && n2.__k.map(function(n3) {
|
|
1508
|
-
return U(n3, t2, e2);
|
|
1509
|
-
})), n2;
|
|
1510
|
-
}
|
|
1511
|
-
function V(n2, t2, e2) {
|
|
1512
|
-
return n2 && e2 && (n2.__v = null, n2.__k = n2.__k && n2.__k.map(function(n3) {
|
|
1513
|
-
return V(n3, t2, e2);
|
|
1514
|
-
}), n2.__c && n2.__c.__P === t2 && (n2.__e && e2.appendChild(n2.__e), n2.__c.__e = !0, n2.__c.__P = e2)), n2;
|
|
1515
|
-
}
|
|
1516
|
-
function W() {
|
|
1517
|
-
this.__u = 0, this.o = null, this.__b = null;
|
|
1518
|
-
}
|
|
1519
|
-
function P(n2) {
|
|
1520
|
-
var t2 = n2.__.__c;
|
|
1521
|
-
return t2 && t2.__a && t2.__a(n2);
|
|
1522
|
-
}
|
|
1523
|
-
function z() {
|
|
1524
|
-
this.i = null, this.l = null;
|
|
1525
|
-
}
|
|
1526
|
-
l$1.unmount = function(n2) {
|
|
1527
|
-
var t2 = n2.__c;
|
|
1528
|
-
t2 && t2.__R && t2.__R(), t2 && 32 & n2.__u && (n2.type = null), F && F(n2);
|
|
1529
|
-
}, (W.prototype = new k$1()).__c = function(n2, t2) {
|
|
1530
|
-
var e2 = t2.__c, r2 = this;
|
|
1531
|
-
r2.o == null && (r2.o = []), r2.o.push(e2);
|
|
1532
|
-
var u2 = P(r2.__v), o2 = !1, i2 = function() {
|
|
1533
|
-
o2 || (o2 = !0, e2.__R = null, u2 ? u2(c2) : c2());
|
|
1534
|
-
};
|
|
1535
|
-
e2.__R = i2;
|
|
1536
|
-
var c2 = function() {
|
|
1537
|
-
if (!--r2.__u) {
|
|
1538
|
-
if (r2.state.__a) {
|
|
1539
|
-
var n3 = r2.state.__a;
|
|
1540
|
-
r2.__v.__k[0] = V(n3, n3.__c.__P, n3.__c.__O);
|
|
1541
|
-
}
|
|
1542
|
-
var t3;
|
|
1543
|
-
for (r2.setState({ __a: r2.__b = null }); t3 = r2.o.pop(); ) t3.forceUpdate();
|
|
1544
|
-
}
|
|
1545
|
-
};
|
|
1546
|
-
r2.__u++ || 32 & t2.__u || r2.setState({ __a: r2.__b = r2.__v.__k[0] }), n2.then(i2, i2);
|
|
1547
|
-
}, W.prototype.componentWillUnmount = function() {
|
|
1548
|
-
this.o = [];
|
|
1549
|
-
}, W.prototype.render = function(n2, e2) {
|
|
1550
|
-
if (this.__b) {
|
|
1551
|
-
if (this.__v.__k) {
|
|
1552
|
-
var r2 = document.createElement("div"), o2 = this.__v.__k[0].__c;
|
|
1553
|
-
this.__v.__k[0] = U(this.__b, r2, o2.__O = o2.__P);
|
|
1554
|
-
}
|
|
1555
|
-
this.__b = null;
|
|
1556
|
-
}
|
|
1557
|
-
var i2 = e2.__a && _$1(b, null, n2.fallback);
|
|
1558
|
-
return i2 && (i2.__u &= -33), [_$1(b, null, e2.__a ? null : n2.children), i2];
|
|
1559
|
-
};
|
|
1560
|
-
var B = function(n2, t2, e2) {
|
|
1561
|
-
if (++e2[1] === e2[0] && n2.l.delete(t2), n2.props.revealOrder && (n2.props.revealOrder[0] !== "t" || !n2.l.size)) for (e2 = n2.i; e2; ) {
|
|
1562
|
-
for (; e2.length > 3; ) e2.pop()();
|
|
1563
|
-
if (e2[1] < e2[0]) break;
|
|
1564
|
-
n2.i = e2 = e2[2];
|
|
1565
|
-
}
|
|
1566
|
-
};
|
|
1567
|
-
(z.prototype = new k$1()).__a = function(n2) {
|
|
1568
|
-
var t2 = this, e2 = P(t2.__v), r2 = t2.l.get(n2);
|
|
1569
|
-
return r2[0]++, function(u2) {
|
|
1570
|
-
var o2 = function() {
|
|
1571
|
-
t2.props.revealOrder ? (r2.push(u2), B(t2, n2, r2)) : u2();
|
|
1572
|
-
};
|
|
1573
|
-
e2 ? e2(o2) : o2();
|
|
1574
|
-
};
|
|
1575
|
-
}, z.prototype.render = function(n2) {
|
|
1576
|
-
this.i = null, this.l = /* @__PURE__ */ new Map();
|
|
1577
|
-
var t2 = H(n2.children);
|
|
1578
|
-
n2.revealOrder && n2.revealOrder[0] === "b" && t2.reverse();
|
|
1579
|
-
for (var e2 = t2.length; e2--; ) this.l.set(t2[e2], this.i = [1, 0, this.i]);
|
|
1580
|
-
return n2.children;
|
|
1581
|
-
}, z.prototype.componentDidUpdate = z.prototype.componentDidMount = function() {
|
|
1582
|
-
var n2 = this;
|
|
1583
|
-
this.l.forEach(function(t2, e2) {
|
|
1584
|
-
B(n2, e2, t2);
|
|
1585
|
-
});
|
|
1586
|
-
};
|
|
1587
|
-
var $ = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, q = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, G = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, J = /[A-Z0-9]/g, K = typeof document < "u", Q = function(n2) {
|
|
1588
|
-
return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(n2);
|
|
1589
|
-
};
|
|
1590
|
-
k$1.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(t2) {
|
|
1591
|
-
Object.defineProperty(k$1.prototype, t2, { configurable: !0, get: function() {
|
|
1592
|
-
return this["UNSAFE_" + t2];
|
|
1593
|
-
}, set: function(n2) {
|
|
1594
|
-
Object.defineProperty(this, t2, { configurable: !0, writable: !0, value: n2 });
|
|
1595
|
-
} });
|
|
1596
|
-
});
|
|
1597
|
-
var tn = l$1.event;
|
|
1598
|
-
function en() {
|
|
1599
|
-
}
|
|
1600
|
-
function rn() {
|
|
1601
|
-
return this.cancelBubble;
|
|
1602
|
-
}
|
|
1603
|
-
function un() {
|
|
1604
|
-
return this.defaultPrevented;
|
|
1605
|
-
}
|
|
1606
|
-
l$1.event = function(n2) {
|
|
1607
|
-
return tn && (n2 = tn(n2)), n2.persist = en, n2.isPropagationStopped = rn, n2.isDefaultPrevented = un, n2.nativeEvent = n2;
|
|
1608
|
-
};
|
|
1609
|
-
var cn = { enumerable: !1, configurable: !0, get: function() {
|
|
1610
|
-
return this.class;
|
|
1611
|
-
} }, fn = l$1.vnode;
|
|
1612
|
-
l$1.vnode = function(n2) {
|
|
1613
|
-
typeof n2.type == "string" && function(n3) {
|
|
1614
|
-
var t2 = n3.props, e2 = n3.type, u2 = {}, o2 = e2.indexOf("-") === -1;
|
|
1615
|
-
for (var i2 in t2) {
|
|
1616
|
-
var c2 = t2[i2];
|
|
1617
|
-
if (!(i2 === "value" && "defaultValue" in t2 && c2 == null || K && i2 === "children" && e2 === "noscript" || i2 === "class" || i2 === "className")) {
|
|
1618
|
-
var f2 = i2.toLowerCase();
|
|
1619
|
-
i2 === "defaultValue" && "value" in t2 && t2.value == null ? i2 = "value" : i2 === "download" && c2 === !0 ? c2 = "" : f2 === "translate" && c2 === "no" ? c2 = !1 : f2[0] === "o" && f2[1] === "n" ? f2 === "ondoubleclick" ? i2 = "ondblclick" : f2 !== "onchange" || e2 !== "input" && e2 !== "textarea" || Q(t2.type) ? f2 === "onfocus" ? i2 = "onfocusin" : f2 === "onblur" ? i2 = "onfocusout" : G.test(i2) && (i2 = f2) : f2 = i2 = "oninput" : o2 && q.test(i2) ? i2 = i2.replace(J, "-$&").toLowerCase() : c2 === null && (c2 = void 0), f2 === "oninput" && u2[i2 = f2] && (i2 = "oninputCapture"), u2[i2] = c2;
|
|
1620
|
-
}
|
|
1621
|
-
}
|
|
1622
|
-
e2 == "select" && u2.multiple && Array.isArray(u2.value) && (u2.value = H(t2.children).forEach(function(n4) {
|
|
1623
|
-
n4.props.selected = u2.value.indexOf(n4.props.value) != -1;
|
|
1624
|
-
})), e2 == "select" && u2.defaultValue != null && (u2.value = H(t2.children).forEach(function(n4) {
|
|
1625
|
-
n4.props.selected = u2.multiple ? u2.defaultValue.indexOf(n4.props.value) != -1 : u2.defaultValue == n4.props.value;
|
|
1626
|
-
})), t2.class && !t2.className ? (u2.class = t2.class, Object.defineProperty(u2, "className", cn)) : (t2.className && !t2.class || t2.class && t2.className) && (u2.class = u2.className = t2.className), n3.props = u2;
|
|
1627
|
-
}(n2), n2.$$typeof = $, fn && fn(n2);
|
|
1628
|
-
};
|
|
1629
|
-
var ln = l$1.__r;
|
|
1630
|
-
l$1.__r = function(n2) {
|
|
1631
|
-
ln && ln(n2), n2.__c;
|
|
1632
|
-
};
|
|
1633
|
-
var an = l$1.diffed;
|
|
1634
|
-
l$1.diffed = function(n2) {
|
|
1635
|
-
an && an(n2);
|
|
1636
|
-
var t2 = n2.props, e2 = n2.__e;
|
|
1637
|
-
e2 != null && n2.type === "textarea" && "value" in t2 && t2.value !== e2.value && (e2.value = t2.value == null ? "" : t2.value);
|
|
1638
|
-
};
|
|
1639
|
-
function _n(n2) {
|
|
1640
|
-
return !!n2.__k && (q$2(null, n2), !0);
|
|
1641
|
-
}
|
|
1642
|
-
const preactShim = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1643
|
-
__proto__: null,
|
|
1644
|
-
Component: k$1,
|
|
1645
|
-
Fragment: b,
|
|
1646
|
-
createElement: _$1,
|
|
1647
|
-
h: _$1,
|
|
1648
|
-
render: q$2,
|
|
1649
|
-
unmountComponentAtNode: _n,
|
|
1650
|
-
useCallback: q$1,
|
|
1651
|
-
useEffect: y,
|
|
1652
|
-
useLayoutEffect: _,
|
|
1653
|
-
useMemo: T,
|
|
1654
|
-
useReducer: p,
|
|
1655
|
-
useState: h
|
|
1656
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
1657
1660
|
export {
|
|
1658
1661
|
Annotations,
|
|
1659
1662
|
BUILD_VERSION,
|