@hpcc-js/react 3.2.2 → 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 +236 -232
- 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/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
|
}
|
|
@@ -381,60 +384,61 @@ 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) {
|
|
384
391
|
for (var e2 in n2) if (e2 !== "__source" && !(e2 in t2)) return !0;
|
|
385
392
|
for (var r2 in t2) if (r2 !== "__source" && n2[r2] !== t2[r2]) return !0;
|
|
386
393
|
return !1;
|
|
387
394
|
}
|
|
388
|
-
function
|
|
395
|
+
function N(n2, t2) {
|
|
389
396
|
this.props = n2, this.context = t2;
|
|
390
397
|
}
|
|
391
|
-
(
|
|
392
|
-
return
|
|
398
|
+
(N.prototype = new x()).isPureReactComponent = !0, N.prototype.shouldComponentUpdate = function(n2, t2) {
|
|
399
|
+
return E(this.props, n2) || E(this.state, t2);
|
|
393
400
|
};
|
|
394
|
-
var
|
|
401
|
+
var T = l$1.__b;
|
|
395
402
|
l$1.__b = function(n2) {
|
|
396
|
-
n2.type && n2.type.__f && n2.ref && (n2.props.ref = n2.ref, n2.ref = null),
|
|
403
|
+
n2.type && n2.type.__f && n2.ref && (n2.props.ref = n2.ref, n2.ref = null), T && T(n2);
|
|
397
404
|
};
|
|
398
|
-
var
|
|
405
|
+
var F = l$1.__e;
|
|
399
406
|
l$1.__e = function(n2, t2, e2, r2) {
|
|
400
407
|
if (n2.then) {
|
|
401
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);
|
|
402
409
|
}
|
|
403
|
-
|
|
410
|
+
F(n2, t2, e2, r2);
|
|
404
411
|
};
|
|
405
|
-
var
|
|
406
|
-
function
|
|
412
|
+
var U = l$1.unmount;
|
|
413
|
+
function V(n2, t2, e2) {
|
|
407
414
|
return n2 && (n2.__c && n2.__c.__H && (n2.__c.__H.__.forEach(function(n3) {
|
|
408
415
|
typeof n3.__c == "function" && n3.__c();
|
|
409
|
-
}), n2.__c.__H = null), (n2 =
|
|
410
|
-
|
|
411
|
-
return n3;
|
|
412
|
-
}({}, n2)).__c != null && (n2.__c.__P === e2 && (n2.__c.__P = t2), n2.__c = null), n2.__k = n2.__k && n2.__k.map(function(n3) {
|
|
413
|
-
return U(n3, t2, e2);
|
|
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);
|
|
414
418
|
})), n2;
|
|
415
419
|
}
|
|
416
|
-
function
|
|
420
|
+
function W(n2, t2, e2) {
|
|
417
421
|
return n2 && e2 && (n2.__v = null, n2.__k = n2.__k && n2.__k.map(function(n3) {
|
|
418
|
-
return
|
|
422
|
+
return W(n3, t2, e2);
|
|
419
423
|
}), n2.__c && n2.__c.__P === t2 && (n2.__e && e2.appendChild(n2.__e), n2.__c.__e = !0, n2.__c.__P = e2)), n2;
|
|
420
424
|
}
|
|
421
|
-
function
|
|
425
|
+
function P() {
|
|
422
426
|
this.__u = 0, this.o = null, this.__b = null;
|
|
423
427
|
}
|
|
424
|
-
function
|
|
428
|
+
function j(n2) {
|
|
425
429
|
var t2 = n2.__.__c;
|
|
426
430
|
return t2 && t2.__a && t2.__a(n2);
|
|
427
431
|
}
|
|
428
|
-
function
|
|
432
|
+
function B() {
|
|
429
433
|
this.i = null, this.l = null;
|
|
430
434
|
}
|
|
431
435
|
l$1.unmount = function(n2) {
|
|
432
436
|
var t2 = n2.__c;
|
|
433
|
-
t2 && t2.__R && t2.__R(), t2 && 32 & n2.__u && (n2.type = null),
|
|
434
|
-
}, (
|
|
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) {
|
|
435
439
|
var e2 = t2.__c, r2 = this;
|
|
436
440
|
r2.o == null && (r2.o = []), r2.o.push(e2);
|
|
437
|
-
var u2 =
|
|
441
|
+
var u2 = j(r2.__v), o2 = !1, i2 = function() {
|
|
438
442
|
o2 || (o2 = !0, e2.__R = null, u2 ? u2(c2) : c2());
|
|
439
443
|
};
|
|
440
444
|
e2.__R = i2;
|
|
@@ -442,76 +446,76 @@ l$1.unmount = function(n2) {
|
|
|
442
446
|
if (!--r2.__u) {
|
|
443
447
|
if (r2.state.__a) {
|
|
444
448
|
var n3 = r2.state.__a;
|
|
445
|
-
r2.__v.__k[0] =
|
|
449
|
+
r2.__v.__k[0] = W(n3, n3.__c.__P, n3.__c.__O);
|
|
446
450
|
}
|
|
447
451
|
var t3;
|
|
448
452
|
for (r2.setState({ __a: r2.__b = null }); t3 = r2.o.pop(); ) t3.forceUpdate();
|
|
449
453
|
}
|
|
450
454
|
};
|
|
451
455
|
r2.__u++ || 32 & t2.__u || r2.setState({ __a: r2.__b = r2.__v.__k[0] }), n2.then(i2, i2);
|
|
452
|
-
},
|
|
456
|
+
}, P.prototype.componentWillUnmount = function() {
|
|
453
457
|
this.o = [];
|
|
454
|
-
},
|
|
458
|
+
}, P.prototype.render = function(n2, e2) {
|
|
455
459
|
if (this.__b) {
|
|
456
460
|
if (this.__v.__k) {
|
|
457
461
|
var r2 = document.createElement("div"), o2 = this.__v.__k[0].__c;
|
|
458
|
-
this.__v.__k[0] =
|
|
462
|
+
this.__v.__k[0] = V(this.__b, r2, o2.__O = o2.__P);
|
|
459
463
|
}
|
|
460
464
|
this.__b = null;
|
|
461
465
|
}
|
|
462
|
-
var i2 = e2.__a && _$1(
|
|
463
|
-
return i2 && (i2.__u &= -33), [_$1(
|
|
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];
|
|
464
468
|
};
|
|
465
|
-
var
|
|
469
|
+
var H = function(n2, t2, e2) {
|
|
466
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; ) {
|
|
467
471
|
for (; e2.length > 3; ) e2.pop()();
|
|
468
472
|
if (e2[1] < e2[0]) break;
|
|
469
473
|
n2.i = e2 = e2[2];
|
|
470
474
|
}
|
|
471
475
|
};
|
|
472
|
-
(
|
|
473
|
-
var t2 = this, e2 =
|
|
476
|
+
(B.prototype = new x()).__a = function(n2) {
|
|
477
|
+
var t2 = this, e2 = j(t2.__v), r2 = t2.l.get(n2);
|
|
474
478
|
return r2[0]++, function(u2) {
|
|
475
479
|
var o2 = function() {
|
|
476
|
-
t2.props.revealOrder ? (r2.push(u2),
|
|
480
|
+
t2.props.revealOrder ? (r2.push(u2), H(t2, n2, r2)) : u2();
|
|
477
481
|
};
|
|
478
482
|
e2 ? e2(o2) : o2();
|
|
479
483
|
};
|
|
480
|
-
},
|
|
484
|
+
}, B.prototype.render = function(n2) {
|
|
481
485
|
this.i = null, this.l = /* @__PURE__ */ new Map();
|
|
482
|
-
var t2 = H(n2.children);
|
|
486
|
+
var t2 = H$1(n2.children);
|
|
483
487
|
n2.revealOrder && n2.revealOrder[0] === "b" && t2.reverse();
|
|
484
488
|
for (var e2 = t2.length; e2--; ) this.l.set(t2[e2], this.i = [1, 0, this.i]);
|
|
485
489
|
return n2.children;
|
|
486
|
-
},
|
|
490
|
+
}, B.prototype.componentDidUpdate = B.prototype.componentDidMount = function() {
|
|
487
491
|
var n2 = this;
|
|
488
492
|
this.l.forEach(function(t2, e2) {
|
|
489
|
-
|
|
493
|
+
H(n2, e2, t2);
|
|
490
494
|
});
|
|
491
495
|
};
|
|
492
|
-
var
|
|
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) {
|
|
493
497
|
return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(n2);
|
|
494
498
|
};
|
|
495
|
-
|
|
496
|
-
Object.defineProperty(
|
|
499
|
+
x.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(t2) {
|
|
500
|
+
Object.defineProperty(x.prototype, t2, { configurable: !0, get: function() {
|
|
497
501
|
return this["UNSAFE_" + t2];
|
|
498
502
|
}, set: function(n2) {
|
|
499
503
|
Object.defineProperty(this, t2, { configurable: !0, writable: !0, value: n2 });
|
|
500
504
|
} });
|
|
501
505
|
});
|
|
502
|
-
var
|
|
503
|
-
function en() {
|
|
504
|
-
}
|
|
506
|
+
var en = l$1.event;
|
|
505
507
|
function rn() {
|
|
506
|
-
return this.cancelBubble;
|
|
507
508
|
}
|
|
508
509
|
function un() {
|
|
510
|
+
return this.cancelBubble;
|
|
511
|
+
}
|
|
512
|
+
function on() {
|
|
509
513
|
return this.defaultPrevented;
|
|
510
514
|
}
|
|
511
515
|
l$1.event = function(n2) {
|
|
512
|
-
return
|
|
516
|
+
return en && (n2 = en(n2)), n2.persist = rn, n2.isPropagationStopped = un, n2.isDefaultPrevented = on, n2.nativeEvent = n2;
|
|
513
517
|
};
|
|
514
|
-
var
|
|
518
|
+
var ln = { enumerable: !1, configurable: !0, get: function() {
|
|
515
519
|
return this.class;
|
|
516
520
|
} }, fn = l$1.vnode;
|
|
517
521
|
l$1.vnode = function(n2) {
|
|
@@ -519,45 +523,45 @@ l$1.vnode = function(n2) {
|
|
|
519
523
|
var t2 = n3.props, e2 = n3.type, u2 = {}, o2 = e2.indexOf("-") === -1;
|
|
520
524
|
for (var i2 in t2) {
|
|
521
525
|
var c2 = t2[i2];
|
|
522
|
-
if (!(i2 === "value" && "defaultValue" in t2 && c2 == null ||
|
|
523
|
-
var
|
|
524
|
-
i2 === "defaultValue" && "value" in t2 && t2.value == null ? i2 = "value" : i2 === "download" && c2 === !0 ? c2 = "" :
|
|
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;
|
|
525
529
|
}
|
|
526
530
|
}
|
|
527
|
-
e2 == "select" && u2.multiple && Array.isArray(u2.value) && (u2.value = H(t2.children).forEach(function(n4) {
|
|
531
|
+
e2 == "select" && u2.multiple && Array.isArray(u2.value) && (u2.value = H$1(t2.children).forEach(function(n4) {
|
|
528
532
|
n4.props.selected = u2.value.indexOf(n4.props.value) != -1;
|
|
529
|
-
})), e2 == "select" && u2.defaultValue != null && (u2.value = H(t2.children).forEach(function(n4) {
|
|
533
|
+
})), e2 == "select" && u2.defaultValue != null && (u2.value = H$1(t2.children).forEach(function(n4) {
|
|
530
534
|
n4.props.selected = u2.multiple ? u2.defaultValue.indexOf(n4.props.value) != -1 : u2.defaultValue == n4.props.value;
|
|
531
|
-
})), t2.class && !t2.className ? (u2.class = t2.class, Object.defineProperty(u2, "className",
|
|
532
|
-
}(n2), n2.$$typeof =
|
|
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);
|
|
533
537
|
};
|
|
534
|
-
var
|
|
538
|
+
var an = l$1.__r;
|
|
535
539
|
l$1.__r = function(n2) {
|
|
536
|
-
|
|
540
|
+
an && an(n2), n2.__c;
|
|
537
541
|
};
|
|
538
|
-
var
|
|
542
|
+
var sn = l$1.diffed;
|
|
539
543
|
l$1.diffed = function(n2) {
|
|
540
|
-
|
|
544
|
+
sn && sn(n2);
|
|
541
545
|
var t2 = n2.props, e2 = n2.__e;
|
|
542
546
|
e2 != null && n2.type === "textarea" && "value" in t2 && t2.value !== e2.value && (e2.value = t2.value == null ? "" : t2.value);
|
|
543
547
|
};
|
|
544
|
-
function
|
|
545
|
-
return !!n2.__k && (
|
|
548
|
+
function bn(n2) {
|
|
549
|
+
return !!n2.__k && (E$1(null, n2), !0);
|
|
546
550
|
}
|
|
547
551
|
const preactShim = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
548
552
|
__proto__: null,
|
|
549
|
-
Component:
|
|
550
|
-
Fragment:
|
|
553
|
+
Component: x,
|
|
554
|
+
Fragment: k$1,
|
|
551
555
|
createElement: _$1,
|
|
552
556
|
h: _$1,
|
|
553
|
-
render:
|
|
554
|
-
unmountComponentAtNode:
|
|
557
|
+
render: E$1,
|
|
558
|
+
unmountComponentAtNode: bn,
|
|
555
559
|
useCallback: q$1,
|
|
556
560
|
useEffect: y,
|
|
557
561
|
useLayoutEffect: _,
|
|
558
|
-
useMemo: T,
|
|
559
|
-
useReducer:
|
|
560
|
-
useState:
|
|
562
|
+
useMemo: T$1,
|
|
563
|
+
useReducer: h,
|
|
564
|
+
useState: d
|
|
561
565
|
}, Symbol.toStringTag, { value: "Module" })), Image = ({
|
|
562
566
|
href,
|
|
563
567
|
x: x2,
|
|
@@ -582,7 +586,7 @@ const preactShim = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
|
|
|
582
586
|
char = "",
|
|
583
587
|
fontWeight
|
|
584
588
|
}) => {
|
|
585
|
-
const renderChar = T(() => fontFamily === "FontAwesome" ? Utility.faChar(char) : char, [char, fontFamily]);
|
|
589
|
+
const renderChar = T$1(() => fontFamily === "FontAwesome" ? Utility.faChar(char) : char, [char, fontFamily]);
|
|
586
590
|
return /* @__PURE__ */ u$1(
|
|
587
591
|
"text",
|
|
588
592
|
{
|
|
@@ -721,7 +725,7 @@ const preactShim = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
|
|
|
721
725
|
yOffset = 0,
|
|
722
726
|
cornerRadius,
|
|
723
727
|
shapeRendering
|
|
724
|
-
}) => /* @__PURE__ */ u$1(
|
|
728
|
+
}) => /* @__PURE__ */ u$1(k$1, { children: [
|
|
725
729
|
/* @__PURE__ */ u$1(
|
|
726
730
|
Shape,
|
|
727
731
|
{
|
|
@@ -771,7 +775,7 @@ const preactShim = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
|
|
|
771
775
|
},
|
|
772
776
|
cat.id
|
|
773
777
|
));
|
|
774
|
-
return /* @__PURE__ */ u$1(
|
|
778
|
+
return /* @__PURE__ */ u$1(k$1, { children: IconComponents });
|
|
775
779
|
}, TextLine = ({
|
|
776
780
|
text,
|
|
777
781
|
height = 12,
|
|
@@ -796,17 +800,17 @@ const preactShim = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
|
|
|
796
800
|
fill = "black",
|
|
797
801
|
onSizeUpdate
|
|
798
802
|
}) => {
|
|
799
|
-
const [totalWidth, setTotalWidth] =
|
|
803
|
+
const [totalWidth, setTotalWidth] = d(0), [totalHeight, setTotalHeight] = d(0);
|
|
800
804
|
y(() => {
|
|
801
805
|
onSizeUpdate && onSizeUpdate({ width: totalWidth, height: totalHeight });
|
|
802
806
|
}, [totalWidth, totalHeight, onSizeUpdate]);
|
|
803
|
-
const parts = T(() => text.split(`
|
|
807
|
+
const parts = T$1(() => text.split(`
|
|
804
808
|
`), [text]);
|
|
805
809
|
_(() => {
|
|
806
810
|
const size = Utility.textSize(parts, fontFamily, height);
|
|
807
811
|
setTotalWidth(size.width), setTotalHeight(size.height);
|
|
808
812
|
}, [fontFamily, height, parts]);
|
|
809
|
-
const TextLines = T(() => {
|
|
813
|
+
const TextLines = T$1(() => {
|
|
810
814
|
const yOffset = -(totalHeight / 2) + height / 2;
|
|
811
815
|
return parts.map((p2, i2) => /* @__PURE__ */ u$1("g", { transform: `translate(0 ${yOffset + i2 * (height + 2)})`, children: /* @__PURE__ */ u$1(
|
|
812
816
|
TextLine,
|
|
@@ -831,19 +835,19 @@ const preactShim = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
|
|
|
831
835
|
cornerRadius = 0,
|
|
832
836
|
onSizeUpdate
|
|
833
837
|
}) => {
|
|
834
|
-
const [textWidth, setTextWidthUpdate] =
|
|
838
|
+
const [textWidth, setTextWidthUpdate] = d(0), [textHeight, setTextHeightUpdate] = d(0);
|
|
835
839
|
y(() => {
|
|
836
840
|
onSizeUpdate && onSizeUpdate({ width: textWidth, height: textHeight });
|
|
837
841
|
}, [textWidth, textHeight, onSizeUpdate]);
|
|
838
842
|
const onTextSizeUpdate = q$1((size) => {
|
|
839
843
|
setTextWidthUpdate(size.width), setTextHeightUpdate(size.height);
|
|
840
|
-
}, []), w2 = textWidth + padding * 2 + strokeWidth,
|
|
841
|
-
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: [
|
|
842
846
|
/* @__PURE__ */ u$1(
|
|
843
847
|
Rectangle,
|
|
844
848
|
{
|
|
845
849
|
width: w2,
|
|
846
|
-
height:
|
|
850
|
+
height: h2,
|
|
847
851
|
fill,
|
|
848
852
|
stroke,
|
|
849
853
|
strokeWidth,
|
|
@@ -875,13 +879,13 @@ const preactShim = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
|
|
|
875
879
|
cornerRadius = 0,
|
|
876
880
|
onSizeUpdate
|
|
877
881
|
}) => {
|
|
878
|
-
const [actualWidth, setActualWidthUpdate] =
|
|
882
|
+
const [actualWidth, setActualWidthUpdate] = d(width), [actualHeight, setActualHeightUpdate] = d(height);
|
|
879
883
|
return _(() => {
|
|
880
884
|
const size = Utility.textSize(text, fontFamily, fontSize);
|
|
881
885
|
setActualWidthUpdate(size.width + padding * 2), setActualHeightUpdate(size.height + padding * 2);
|
|
882
886
|
}, [text, fontFamily, fontSize, padding]), _(() => {
|
|
883
887
|
onSizeUpdate && onSizeUpdate({ width: actualWidth, height: actualHeight });
|
|
884
|
-
}, [actualWidth, actualHeight, padding, onSizeUpdate]), /* @__PURE__ */ u$1(
|
|
888
|
+
}, [actualWidth, actualHeight, padding, onSizeUpdate]), /* @__PURE__ */ u$1(k$1, { children: [
|
|
885
889
|
/* @__PURE__ */ u$1(
|
|
886
890
|
Rectangle,
|
|
887
891
|
{
|
|
@@ -919,7 +923,7 @@ const preactShim = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
|
|
|
919
923
|
textFill = "black",
|
|
920
924
|
strokeWidth = 1,
|
|
921
925
|
cornerRadius = 0
|
|
922
|
-
}) => /* @__PURE__ */ u$1(
|
|
926
|
+
}) => /* @__PURE__ */ u$1(k$1, { children: [
|
|
923
927
|
/* @__PURE__ */ u$1(
|
|
924
928
|
Rectangle,
|
|
925
929
|
{
|
|
@@ -962,15 +966,15 @@ const preactShim = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
|
|
|
962
966
|
stroke,
|
|
963
967
|
strokeWidth,
|
|
964
968
|
strokeDasharray
|
|
965
|
-
}) => /* @__PURE__ */ u$1(
|
|
969
|
+
}) => /* @__PURE__ */ u$1(k$1, { children: [
|
|
966
970
|
/* @__PURE__ */ u$1("path", { d: path, stroke, style: { strokeWidth, strokeDasharray } }),
|
|
967
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
|
|
968
972
|
] });
|
|
969
973
|
function render(C2, props, parent, replaceNode) {
|
|
970
|
-
|
|
974
|
+
E$1(_$1(C2, props), parent, replaceNode);
|
|
971
975
|
}
|
|
972
976
|
function svgRender(C2, props, parent, replaceNode) {
|
|
973
|
-
|
|
977
|
+
E$1(_$1("svg", null, _$1(C2, props)), parent, replaceNode);
|
|
974
978
|
}
|
|
975
979
|
class HTMLAdapter extends HTMLWidget {
|
|
976
980
|
constructor(_component) {
|
|
@@ -1027,7 +1031,7 @@ const Span = ({
|
|
|
1027
1031
|
id
|
|
1028
1032
|
)
|
|
1029
1033
|
);
|
|
1030
|
-
return /* @__PURE__ */ u$1(
|
|
1034
|
+
return /* @__PURE__ */ u$1(k$1, { children: IconComponents });
|
|
1031
1035
|
}, Vertex = ({
|
|
1032
1036
|
categoryID = "",
|
|
1033
1037
|
text = "",
|
|
@@ -1050,7 +1054,7 @@ const Span = ({
|
|
|
1050
1054
|
fill: "transparent",
|
|
1051
1055
|
...icon
|
|
1052
1056
|
};
|
|
1053
|
-
const [textBoxWidth, setTextBoxWidthUpdate] =
|
|
1057
|
+
const [textBoxWidth, setTextBoxWidthUpdate] = d(0), [textBoxHeight, setTextBoxHeightUpdate] = d(0);
|
|
1054
1058
|
y(() => {
|
|
1055
1059
|
onSizeUpdate && onSizeUpdate({ width: 0, height: 0 });
|
|
1056
1060
|
}, [textBoxWidth, textBoxHeight, onSizeUpdate]);
|
|
@@ -1104,7 +1108,7 @@ const Span = ({
|
|
|
1104
1108
|
shape: "square",
|
|
1105
1109
|
...icon
|
|
1106
1110
|
};
|
|
1107
|
-
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;
|
|
1108
1112
|
return categoryID ? /* @__PURE__ */ u$1(
|
|
1109
1113
|
"g",
|
|
1110
1114
|
{
|
|
@@ -1152,7 +1156,7 @@ const Span = ({
|
|
|
1152
1156
|
)
|
|
1153
1157
|
]
|
|
1154
1158
|
}
|
|
1155
|
-
) : /* @__PURE__ */ u$1(
|
|
1159
|
+
) : /* @__PURE__ */ u$1(k$1, { children: [
|
|
1156
1160
|
/* @__PURE__ */ u$1(
|
|
1157
1161
|
"g",
|
|
1158
1162
|
{
|
|
@@ -1228,7 +1232,7 @@ const Span = ({
|
|
|
1228
1232
|
...expansionIcon
|
|
1229
1233
|
} : void 0;
|
|
1230
1234
|
let fullAnnotationWidth = 0;
|
|
1231
|
-
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]);
|
|
1232
1236
|
let labelShapeWidth = 0;
|
|
1233
1237
|
text !== "" && (labelShapeWidth = labelWidth + textPadding * 2 + textboxStrokeWidth * 2), fullAnnotationWidth += labelShapeWidth + annotationGutter;
|
|
1234
1238
|
const textOffsetX = fullAnnotationWidth - labelShapeWidth / 2, textShapeHeight = textHeight + textPadding * 2 + textboxStrokeWidth * 2, annotationArr = [];
|
|
@@ -1408,7 +1412,7 @@ const Span = ({
|
|
|
1408
1412
|
textFill: "#555555",
|
|
1409
1413
|
...subText
|
|
1410
1414
|
};
|
|
1411
|
-
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]);
|
|
1412
1416
|
let labelShapeWidth = 0;
|
|
1413
1417
|
text !== "" && (labelShapeWidth = labelWidth + textPadding * 2 + textboxStrokeWidth * 2);
|
|
1414
1418
|
let fullAnnotationWidth = labelShapeWidth + annotationGutter;
|
|
@@ -1627,7 +1631,7 @@ const Span = ({
|
|
|
1627
1631
|
fontFamily
|
|
1628
1632
|
}) => {
|
|
1629
1633
|
const tSize = Utility.textSize(text, fontFamily, fontHeight, !1);
|
|
1630
|
-
return /* @__PURE__ */ u$1(
|
|
1634
|
+
return /* @__PURE__ */ u$1(k$1, { children: [
|
|
1631
1635
|
/* @__PURE__ */ u$1(
|
|
1632
1636
|
Rectangle,
|
|
1633
1637
|
{
|