@access-ci/ui 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +53 -39
- package/dist/access-ci-ui.js +391 -335
- package/dist/access-ci-ui.umd.cjs +2 -2
- package/package.json +1 -1
package/dist/access-ci-ui.js
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
var I, u,
|
|
1
|
+
var I, u, ue, P, Z, de, R, L = {}, pe = [], $e = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Q = Array.isArray;
|
|
2
2
|
function C(t, e) {
|
|
3
3
|
for (var n in e)
|
|
4
4
|
t[n] = e[n];
|
|
5
5
|
return t;
|
|
6
6
|
}
|
|
7
|
-
function
|
|
7
|
+
function he(t) {
|
|
8
8
|
var e = t.parentNode;
|
|
9
9
|
e && e.removeChild(t);
|
|
10
10
|
}
|
|
11
|
-
function
|
|
12
|
-
var
|
|
13
|
-
for (
|
|
14
|
-
|
|
15
|
-
if (arguments.length > 2 && (
|
|
16
|
-
for (
|
|
17
|
-
r
|
|
18
|
-
return T(t,
|
|
19
|
-
}
|
|
20
|
-
function T(t, e, n,
|
|
21
|
-
var
|
|
22
|
-
return
|
|
23
|
-
}
|
|
24
|
-
function
|
|
11
|
+
function Pe(t, e, n) {
|
|
12
|
+
var i, _, r, c = {};
|
|
13
|
+
for (r in e)
|
|
14
|
+
r == "key" ? i = e[r] : r == "ref" ? _ = e[r] : c[r] = e[r];
|
|
15
|
+
if (arguments.length > 2 && (c.children = arguments.length > 3 ? I.call(arguments, 2) : n), typeof t == "function" && t.defaultProps != null)
|
|
16
|
+
for (r in t.defaultProps)
|
|
17
|
+
c[r] === void 0 && (c[r] = t.defaultProps[r]);
|
|
18
|
+
return T(t, c, i, _, null);
|
|
19
|
+
}
|
|
20
|
+
function T(t, e, n, i, _) {
|
|
21
|
+
var r = { type: t, props: e, key: n, ref: i, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, __h: null, constructor: void 0, __v: _ ?? ++ue };
|
|
22
|
+
return _ == null && u.vnode != null && u.vnode(r), r;
|
|
23
|
+
}
|
|
24
|
+
function z(t) {
|
|
25
25
|
return t.children;
|
|
26
26
|
}
|
|
27
27
|
function U(t, e) {
|
|
28
28
|
this.props = t, this.context = e;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function F(t, e) {
|
|
31
31
|
if (e == null)
|
|
32
|
-
return t.__ ?
|
|
32
|
+
return t.__ ? F(t.__, t.__.__k.indexOf(t) + 1) : null;
|
|
33
33
|
for (var n; e < t.__k.length; e++)
|
|
34
34
|
if ((n = t.__k[e]) != null && n.__e != null)
|
|
35
35
|
return n.__e;
|
|
36
|
-
return typeof t.type == "function" ?
|
|
36
|
+
return typeof t.type == "function" ? F(t) : null;
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function fe(t) {
|
|
39
39
|
var e, n;
|
|
40
40
|
if ((t = t.__) != null && t.__c != null) {
|
|
41
41
|
for (t.__e = t.__c.base = null, e = 0; e < t.__k.length; e++)
|
|
@@ -43,80 +43,80 @@ function de(t) {
|
|
|
43
43
|
t.__e = t.__c.base = n.__e;
|
|
44
44
|
break;
|
|
45
45
|
}
|
|
46
|
-
return
|
|
46
|
+
return fe(t);
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
function
|
|
50
|
-
(!t.__d && (t.__d = !0) && P.push(t) && !
|
|
49
|
+
function ee(t) {
|
|
50
|
+
(!t.__d && (t.__d = !0) && P.push(t) && !V.__r++ || Z !== u.debounceRendering) && ((Z = u.debounceRendering) || de)(V);
|
|
51
51
|
}
|
|
52
|
-
function
|
|
53
|
-
var t, e, n,
|
|
52
|
+
function V() {
|
|
53
|
+
var t, e, n, i, _, r, c, l, a;
|
|
54
54
|
for (P.sort(R); t = P.shift(); )
|
|
55
|
-
t.__d && (e = P.length,
|
|
56
|
-
|
|
57
|
-
}
|
|
58
|
-
function
|
|
59
|
-
var
|
|
60
|
-
for (n.__k = [],
|
|
61
|
-
(
|
|
62
|
-
for (n.__e = H,
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
function he(t, e, n) {
|
|
66
|
-
for (var c, a = t.__k, o = 0; a && o < a.length; o++)
|
|
67
|
-
(c = a[o]) && (c.__ = t, e = typeof c.type == "function" ? he(c, e, n) : ve(n, c.__e, e));
|
|
68
|
-
return e;
|
|
55
|
+
t.__d && (e = P.length, i = void 0, _ = void 0, r = void 0, l = (c = (n = t).__v).__e, (a = n.__P) && (i = [], _ = [], (r = C({}, c)).__v = c.__v + 1, J(a, c, r, n.__n, a.ownerSVGElement !== void 0, c.__h != null ? [l] : null, i, l ?? F(c), c.__h, _), be(i, c, _), c.__e != l && fe(c)), P.length > e && P.sort(R));
|
|
56
|
+
V.__r = 0;
|
|
57
|
+
}
|
|
58
|
+
function me(t, e, n, i, _, r, c, l, a, g, p) {
|
|
59
|
+
var o, h, f, s, d, H, m, b, w, M, k = 0, S = i && i.__k || pe, E = S.length, $ = E, y = e.length;
|
|
60
|
+
for (n.__k = [], o = 0; o < y; o++)
|
|
61
|
+
(s = n.__k[o] = (s = e[o]) == null || typeof s == "boolean" || typeof s == "function" ? null : typeof s == "string" || typeof s == "number" || typeof s == "bigint" ? T(null, s, null, null, s) : Q(s) ? T(z, { children: s }, null, null, null) : s.__b > 0 ? T(s.type, s.props, s.key, s.ref ? s.ref : null, s.__v) : s) != null && (s.__ = n, s.__b = n.__b + 1, (b = ze(s, S, m = o + k, $)) === -1 ? f = L : (f = S[b] || L, S[b] = void 0, $--), J(t, s, f, _, r, c, l, a, g, p), d = s.__e, (h = s.ref) && f.ref != h && (f.ref && K(f.ref, null, s), p.push(h, s.__c || d, s)), d != null && (H == null && (H = d), M = !(w = f === L || f.__v === null) && b === m, w ? b == -1 && k-- : b !== m && (b === m + 1 ? (k++, M = !0) : b > m ? $ > y - m ? (k += b - m, M = !0) : k-- : k = b < m && b == m - 1 ? b - m : 0), m = o + k, M = M || b == o && !w, typeof s.type != "function" || b === m && f.__k !== s.__k ? typeof s.type == "function" || M ? s.__d !== void 0 ? (a = s.__d, s.__d = void 0) : a = d.nextSibling : a = ge(t, d, a) : a = ve(s, a, t), typeof n.type == "function" && (n.__d = a)));
|
|
62
|
+
for (n.__e = H, o = E; o--; )
|
|
63
|
+
S[o] != null && (typeof n.type == "function" && S[o].__e != null && S[o].__e == n.__d && (n.__d = S[o].__e.nextSibling), xe(S[o], S[o]));
|
|
69
64
|
}
|
|
70
65
|
function ve(t, e, n) {
|
|
66
|
+
for (var i, _ = t.__k, r = 0; _ && r < _.length; r++)
|
|
67
|
+
(i = _[r]) && (i.__ = t, e = typeof i.type == "function" ? ve(i, e, n) : ge(n, i.__e, e));
|
|
68
|
+
return e;
|
|
69
|
+
}
|
|
70
|
+
function ge(t, e, n) {
|
|
71
71
|
return n == null || n.parentNode !== t ? t.insertBefore(e, null) : e == n && e.parentNode != null || t.insertBefore(e, n), e.nextSibling;
|
|
72
72
|
}
|
|
73
|
-
function
|
|
74
|
-
var
|
|
75
|
-
if (
|
|
73
|
+
function ze(t, e, n, i) {
|
|
74
|
+
var _ = t.key, r = t.type, c = n - 1, l = n + 1, a = e[n];
|
|
75
|
+
if (a === null || a && _ == a.key && r === a.type)
|
|
76
76
|
return n;
|
|
77
|
-
if (
|
|
78
|
-
for (;
|
|
79
|
-
if (
|
|
80
|
-
if ((
|
|
81
|
-
return
|
|
82
|
-
|
|
77
|
+
if (i > (a != null ? 1 : 0))
|
|
78
|
+
for (; c >= 0 || l < e.length; ) {
|
|
79
|
+
if (c >= 0) {
|
|
80
|
+
if ((a = e[c]) && _ == a.key && r === a.type)
|
|
81
|
+
return c;
|
|
82
|
+
c--;
|
|
83
83
|
}
|
|
84
|
-
if (
|
|
85
|
-
if ((
|
|
86
|
-
return
|
|
87
|
-
|
|
84
|
+
if (l < e.length) {
|
|
85
|
+
if ((a = e[l]) && _ == a.key && r === a.type)
|
|
86
|
+
return l;
|
|
87
|
+
l++;
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
return -1;
|
|
91
91
|
}
|
|
92
|
-
function
|
|
93
|
-
var
|
|
94
|
-
for (
|
|
95
|
-
|
|
96
|
-
for (
|
|
97
|
-
|
|
92
|
+
function Le(t, e, n, i, _) {
|
|
93
|
+
var r;
|
|
94
|
+
for (r in n)
|
|
95
|
+
r === "children" || r === "key" || r in e || B(t, r, null, n[r], i);
|
|
96
|
+
for (r in e)
|
|
97
|
+
_ && typeof e[r] != "function" || r === "children" || r === "key" || r === "value" || r === "checked" || n[r] === e[r] || B(t, r, e[r], n[r], i);
|
|
98
98
|
}
|
|
99
|
-
function
|
|
100
|
-
e[0] === "-" ? t.setProperty(e, n ?? "") : t[e] = n == null ? "" : typeof n != "number" ||
|
|
99
|
+
function te(t, e, n) {
|
|
100
|
+
e[0] === "-" ? t.setProperty(e, n ?? "") : t[e] = n == null ? "" : typeof n != "number" || $e.test(e) ? n : n + "px";
|
|
101
101
|
}
|
|
102
|
-
function
|
|
103
|
-
var
|
|
102
|
+
function B(t, e, n, i, _) {
|
|
103
|
+
var r;
|
|
104
104
|
e:
|
|
105
105
|
if (e === "style")
|
|
106
106
|
if (typeof n == "string")
|
|
107
107
|
t.style.cssText = n;
|
|
108
108
|
else {
|
|
109
|
-
if (typeof
|
|
110
|
-
for (e in
|
|
111
|
-
n && e in n ||
|
|
109
|
+
if (typeof i == "string" && (t.style.cssText = i = ""), i)
|
|
110
|
+
for (e in i)
|
|
111
|
+
n && e in n || te(t.style, e, "");
|
|
112
112
|
if (n)
|
|
113
113
|
for (e in n)
|
|
114
|
-
|
|
114
|
+
i && n[e] === i[e] || te(t.style, e, n[e]);
|
|
115
115
|
}
|
|
116
116
|
else if (e[0] === "o" && e[1] === "n")
|
|
117
|
-
|
|
117
|
+
r = e !== (e = e.replace(/Capture$/, "")), e = e.toLowerCase() in t ? e.toLowerCase().slice(2) : e.slice(2), t.l || (t.l = {}), t.l[e + r] = n, n ? i || t.addEventListener(e, r ? oe : ne, r) : t.removeEventListener(e, r ? oe : ne, r);
|
|
118
118
|
else if (e !== "dangerouslySetInnerHTML") {
|
|
119
|
-
if (
|
|
119
|
+
if (_)
|
|
120
120
|
e = e.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
|
|
121
121
|
else if (e !== "width" && e !== "height" && e !== "href" && e !== "list" && e !== "form" && e !== "tabIndex" && e !== "download" && e !== "rowSpan" && e !== "colSpan" && e in t)
|
|
122
122
|
try {
|
|
@@ -127,204 +127,204 @@ function F(t, e, n, c, a) {
|
|
|
127
127
|
typeof n == "function" || (n == null || n === !1 && e[4] !== "-" ? t.removeAttribute(e) : t.setAttribute(e, n));
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
|
-
function
|
|
130
|
+
function ne(t) {
|
|
131
131
|
return this.l[t.type + !1](u.event ? u.event(t) : t);
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function oe(t) {
|
|
134
134
|
return this.l[t.type + !0](u.event ? u.event(t) : t);
|
|
135
135
|
}
|
|
136
|
-
function
|
|
137
|
-
var p,
|
|
136
|
+
function J(t, e, n, i, _, r, c, l, a, g) {
|
|
137
|
+
var p, o, h, f, s, d, H, m, b, w, M, k, S, E, $, y = e.type;
|
|
138
138
|
if (e.constructor !== void 0)
|
|
139
139
|
return null;
|
|
140
|
-
n.__h != null && (
|
|
140
|
+
n.__h != null && (a = n.__h, l = e.__e = n.__e, e.__h = null, r = [l]), (p = u.__b) && p(e);
|
|
141
141
|
try {
|
|
142
142
|
e:
|
|
143
143
|
if (typeof y == "function") {
|
|
144
|
-
if (
|
|
145
|
-
y.getDerivedStateFromProps == null &&
|
|
144
|
+
if (m = e.props, b = (p = y.contextType) && i[p.__c], w = p ? b ? b.props.value : p.__ : i, n.__c ? H = (o = e.__c = n.__c).__ = o.__E : ("prototype" in y && y.prototype.render ? e.__c = o = new y(m, w) : (e.__c = o = new U(m, w), o.constructor = y, o.render = Ae), b && b.sub(o), o.props = m, o.state || (o.state = {}), o.context = w, o.__n = i, h = o.__d = !0, o.__h = [], o._sb = []), o.__s == null && (o.__s = o.state), y.getDerivedStateFromProps != null && (o.__s == o.state && (o.__s = C({}, o.__s)), C(o.__s, y.getDerivedStateFromProps(m, o.__s))), f = o.props, s = o.state, o.__v = e, h)
|
|
145
|
+
y.getDerivedStateFromProps == null && o.componentWillMount != null && o.componentWillMount(), o.componentDidMount != null && o.__h.push(o.componentDidMount);
|
|
146
146
|
else {
|
|
147
|
-
if (y.getDerivedStateFromProps == null &&
|
|
148
|
-
for (e.__v !== n.__v && (
|
|
147
|
+
if (y.getDerivedStateFromProps == null && m !== f && o.componentWillReceiveProps != null && o.componentWillReceiveProps(m, w), !o.__e && (o.shouldComponentUpdate != null && o.shouldComponentUpdate(m, o.__s, w) === !1 || e.__v === n.__v)) {
|
|
148
|
+
for (e.__v !== n.__v && (o.props = m, o.state = o.__s, o.__d = !1), e.__e = n.__e, e.__k = n.__k, e.__k.forEach(function(A) {
|
|
149
149
|
A && (A.__ = e);
|
|
150
|
-
}), M = 0; M <
|
|
151
|
-
|
|
152
|
-
|
|
150
|
+
}), M = 0; M < o._sb.length; M++)
|
|
151
|
+
o.__h.push(o._sb[M]);
|
|
152
|
+
o._sb = [], o.__h.length && c.push(o);
|
|
153
153
|
break e;
|
|
154
154
|
}
|
|
155
|
-
|
|
156
|
-
|
|
155
|
+
o.componentWillUpdate != null && o.componentWillUpdate(m, o.__s, w), o.componentDidUpdate != null && o.__h.push(function() {
|
|
156
|
+
o.componentDidUpdate(f, s, d);
|
|
157
157
|
});
|
|
158
158
|
}
|
|
159
|
-
if (
|
|
160
|
-
for (
|
|
161
|
-
|
|
162
|
-
|
|
159
|
+
if (o.context = w, o.props = m, o.__P = t, o.__e = !1, k = u.__r, S = 0, "prototype" in y && y.prototype.render) {
|
|
160
|
+
for (o.state = o.__s, o.__d = !1, k && k(e), p = o.render(o.props, o.state, o.context), E = 0; E < o._sb.length; E++)
|
|
161
|
+
o.__h.push(o._sb[E]);
|
|
162
|
+
o._sb = [];
|
|
163
163
|
} else
|
|
164
164
|
do
|
|
165
|
-
|
|
166
|
-
while (
|
|
167
|
-
|
|
165
|
+
o.__d = !1, k && k(e), p = o.render(o.props, o.state, o.context), o.state = o.__s;
|
|
166
|
+
while (o.__d && ++S < 25);
|
|
167
|
+
o.state = o.__s, o.getChildContext != null && (i = C(C({}, i), o.getChildContext())), h || o.getSnapshotBeforeUpdate == null || (d = o.getSnapshotBeforeUpdate(f, s)), me(t, Q($ = p != null && p.type === z && p.key == null ? p.props.children : p) ? $ : [$], e, n, i, _, r, c, l, a, g), o.base = e.__e, e.__h = null, o.__h.length && c.push(o), H && (o.__E = o.__ = null);
|
|
168
168
|
} else
|
|
169
|
-
|
|
169
|
+
r == null && e.__v === n.__v ? (e.__k = n.__k, e.__e = n.__e) : e.__e = Ne(n.__e, e, n, i, _, r, c, a, g);
|
|
170
170
|
(p = u.diffed) && p(e);
|
|
171
171
|
} catch (A) {
|
|
172
|
-
e.__v = null, (
|
|
172
|
+
e.__v = null, (a || r != null) && (e.__e = l, e.__h = !!a, r[r.indexOf(l)] = null), u.__e(A, e, n);
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
|
-
function
|
|
176
|
-
for (var
|
|
177
|
-
|
|
178
|
-
u.__c && u.__c(e, t), t.some(function(
|
|
175
|
+
function be(t, e, n) {
|
|
176
|
+
for (var i = 0; i < n.length; i++)
|
|
177
|
+
K(n[i], n[++i], n[++i]);
|
|
178
|
+
u.__c && u.__c(e, t), t.some(function(_) {
|
|
179
179
|
try {
|
|
180
|
-
t =
|
|
181
|
-
|
|
180
|
+
t = _.__h, _.__h = [], t.some(function(r) {
|
|
181
|
+
r.call(_);
|
|
182
182
|
});
|
|
183
|
-
} catch (
|
|
184
|
-
u.__e(
|
|
183
|
+
} catch (r) {
|
|
184
|
+
u.__e(r, _.__v);
|
|
185
185
|
}
|
|
186
186
|
});
|
|
187
187
|
}
|
|
188
|
-
function
|
|
189
|
-
var
|
|
190
|
-
if (
|
|
191
|
-
for (;
|
|
192
|
-
if ((
|
|
193
|
-
t =
|
|
188
|
+
function Ne(t, e, n, i, _, r, c, l, a) {
|
|
189
|
+
var g, p, o, h = n.props, f = e.props, s = e.type, d = 0;
|
|
190
|
+
if (s === "svg" && (_ = !0), r != null) {
|
|
191
|
+
for (; d < r.length; d++)
|
|
192
|
+
if ((g = r[d]) && "setAttribute" in g == !!s && (s ? g.localName === s : g.nodeType === 3)) {
|
|
193
|
+
t = g, r[d] = null;
|
|
194
194
|
break;
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
197
|
if (t == null) {
|
|
198
|
-
if (
|
|
198
|
+
if (s === null)
|
|
199
199
|
return document.createTextNode(f);
|
|
200
|
-
t =
|
|
200
|
+
t = _ ? document.createElementNS("http://www.w3.org/2000/svg", s) : document.createElement(s, f.is && f), r = null, l = !1;
|
|
201
201
|
}
|
|
202
|
-
if (
|
|
203
|
-
|
|
202
|
+
if (s === null)
|
|
203
|
+
h === f || l && t.data === f || (t.data = f);
|
|
204
204
|
else {
|
|
205
|
-
if (
|
|
206
|
-
if (
|
|
207
|
-
for (
|
|
208
|
-
|
|
209
|
-
(
|
|
205
|
+
if (r = r && I.call(t.childNodes), p = (h = n.props || L).dangerouslySetInnerHTML, o = f.dangerouslySetInnerHTML, !l) {
|
|
206
|
+
if (r != null)
|
|
207
|
+
for (h = {}, d = 0; d < t.attributes.length; d++)
|
|
208
|
+
h[t.attributes[d].name] = t.attributes[d].value;
|
|
209
|
+
(o || p) && (o && (p && o.__html == p.__html || o.__html === t.innerHTML) || (t.innerHTML = o && o.__html || ""));
|
|
210
210
|
}
|
|
211
|
-
if (
|
|
211
|
+
if (Le(t, f, h, _, l), o)
|
|
212
212
|
e.__k = [];
|
|
213
|
-
else if (
|
|
214
|
-
for (
|
|
215
|
-
|
|
216
|
-
|
|
213
|
+
else if (me(t, Q(d = e.props.children) ? d : [d], e, n, i, _ && s !== "foreignObject", r, c, r ? r[0] : n.__k && F(n, 0), l, a), r != null)
|
|
214
|
+
for (d = r.length; d--; )
|
|
215
|
+
r[d] != null && he(r[d]);
|
|
216
|
+
l || ("value" in f && (d = f.value) !== void 0 && (d !== t.value || s === "progress" && !d || s === "option" && d !== h.value) && B(t, "value", d, h.value, !1), "checked" in f && (d = f.checked) !== void 0 && d !== t.checked && B(t, "checked", d, h.checked, !1));
|
|
217
217
|
}
|
|
218
218
|
return t;
|
|
219
219
|
}
|
|
220
|
-
function
|
|
220
|
+
function K(t, e, n) {
|
|
221
221
|
try {
|
|
222
222
|
typeof t == "function" ? t(e) : t.current = e;
|
|
223
|
-
} catch (
|
|
224
|
-
u.__e(
|
|
223
|
+
} catch (i) {
|
|
224
|
+
u.__e(i, n);
|
|
225
225
|
}
|
|
226
226
|
}
|
|
227
|
-
function
|
|
228
|
-
var
|
|
229
|
-
if (u.unmount && u.unmount(t), (
|
|
230
|
-
if (
|
|
227
|
+
function xe(t, e, n) {
|
|
228
|
+
var i, _;
|
|
229
|
+
if (u.unmount && u.unmount(t), (i = t.ref) && (i.current && i.current !== t.__e || K(i, null, e)), (i = t.__c) != null) {
|
|
230
|
+
if (i.componentWillUnmount)
|
|
231
231
|
try {
|
|
232
|
-
|
|
233
|
-
} catch (
|
|
234
|
-
u.__e(
|
|
232
|
+
i.componentWillUnmount();
|
|
233
|
+
} catch (r) {
|
|
234
|
+
u.__e(r, e);
|
|
235
235
|
}
|
|
236
|
-
|
|
236
|
+
i.base = i.__P = null, t.__c = void 0;
|
|
237
237
|
}
|
|
238
|
-
if (
|
|
239
|
-
for (
|
|
240
|
-
|
|
241
|
-
n || t.__e == null ||
|
|
238
|
+
if (i = t.__k)
|
|
239
|
+
for (_ = 0; _ < i.length; _++)
|
|
240
|
+
i[_] && xe(i[_], e, n || typeof t.type != "function");
|
|
241
|
+
n || t.__e == null || he(t.__e), t.__ = t.__e = t.__d = void 0;
|
|
242
242
|
}
|
|
243
|
-
function
|
|
243
|
+
function Ae(t, e, n) {
|
|
244
244
|
return this.constructor(t, n);
|
|
245
245
|
}
|
|
246
|
-
function
|
|
247
|
-
var
|
|
248
|
-
u.__ && u.__(t, e),
|
|
246
|
+
function Te(t, e, n) {
|
|
247
|
+
var i, _, r, c;
|
|
248
|
+
u.__ && u.__(t, e), _ = (i = typeof n == "function") ? null : n && n.__k || e.__k, r = [], c = [], J(e, t = (!i && n || e).__k = Pe(z, null, [t]), _ || L, L, e.ownerSVGElement !== void 0, !i && n ? [n] : _ ? null : e.firstChild ? I.call(e.childNodes) : null, r, !i && n ? n : _ ? _.__e : e.firstChild, i, c), be(r, t, c);
|
|
249
249
|
}
|
|
250
|
-
I =
|
|
251
|
-
for (var
|
|
252
|
-
if ((
|
|
250
|
+
I = pe.slice, u = { __e: function(t, e, n, i) {
|
|
251
|
+
for (var _, r, c; e = e.__; )
|
|
252
|
+
if ((_ = e.__c) && !_.__)
|
|
253
253
|
try {
|
|
254
|
-
if ((
|
|
255
|
-
return
|
|
256
|
-
} catch (
|
|
257
|
-
t =
|
|
254
|
+
if ((r = _.constructor) && r.getDerivedStateFromError != null && (_.setState(r.getDerivedStateFromError(t)), c = _.__d), _.componentDidCatch != null && (_.componentDidCatch(t, i || {}), c = _.__d), c)
|
|
255
|
+
return _.__E = _;
|
|
256
|
+
} catch (l) {
|
|
257
|
+
t = l;
|
|
258
258
|
}
|
|
259
259
|
throw t;
|
|
260
|
-
} },
|
|
260
|
+
} }, ue = 0, U.prototype.setState = function(t, e) {
|
|
261
261
|
var n;
|
|
262
|
-
n = this.__s != null && this.__s !== this.state ? this.__s : this.__s = C({}, this.state), typeof t == "function" && (t = t(C({}, n), this.props)), t && C(n, t), t != null && this.__v && (e && this._sb.push(e),
|
|
262
|
+
n = this.__s != null && this.__s !== this.state ? this.__s : this.__s = C({}, this.state), typeof t == "function" && (t = t(C({}, n), this.props)), t && C(n, t), t != null && this.__v && (e && this._sb.push(e), ee(this));
|
|
263
263
|
}, U.prototype.forceUpdate = function(t) {
|
|
264
|
-
this.__v && (this.__e = !0, t && this.__h.push(t),
|
|
265
|
-
}, U.prototype.render =
|
|
264
|
+
this.__v && (this.__e = !0, t && this.__h.push(t), ee(this));
|
|
265
|
+
}, U.prototype.render = z, P = [], de = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, R = function(t, e) {
|
|
266
266
|
return t.__v.__b - e.__v.__b;
|
|
267
|
-
},
|
|
268
|
-
var
|
|
269
|
-
function
|
|
270
|
-
u.__h && u.__h(
|
|
271
|
-
var n =
|
|
267
|
+
}, V.__r = 0;
|
|
268
|
+
var N, x, W, re, j = 0, ye = [], D = [], ie = u.__b, _e = u.__r, ce = u.diffed, le = u.__c, se = u.unmount;
|
|
269
|
+
function X(t, e) {
|
|
270
|
+
u.__h && u.__h(x, t, j || e), j = 0;
|
|
271
|
+
var n = x.__H || (x.__H = { __: [], __h: [] });
|
|
272
272
|
return t >= n.__.length && n.__.push({ __V: D }), n.__[t];
|
|
273
273
|
}
|
|
274
|
-
function
|
|
275
|
-
return j = 1,
|
|
276
|
-
}
|
|
277
|
-
function
|
|
278
|
-
var
|
|
279
|
-
if (
|
|
280
|
-
var
|
|
281
|
-
|
|
282
|
-
}],
|
|
283
|
-
var
|
|
284
|
-
if (!
|
|
274
|
+
function we(t) {
|
|
275
|
+
return j = 1, Ue(Se, t);
|
|
276
|
+
}
|
|
277
|
+
function Ue(t, e, n) {
|
|
278
|
+
var i = X(N++, 2);
|
|
279
|
+
if (i.t = t, !i.__c && (i.__ = [n ? n(e) : Se(void 0, e), function(l) {
|
|
280
|
+
var a = i.__N ? i.__N[0] : i.__[0], g = i.t(a, l);
|
|
281
|
+
a !== g && (i.__N = [g, i.__[1]], i.__c.setState({}));
|
|
282
|
+
}], i.__c = x, !x.u)) {
|
|
283
|
+
var _ = function(l, a, g) {
|
|
284
|
+
if (!i.__c.__H)
|
|
285
285
|
return !0;
|
|
286
|
-
var p =
|
|
287
|
-
return
|
|
286
|
+
var p = i.__c.__H.__.filter(function(h) {
|
|
287
|
+
return h.__c;
|
|
288
288
|
});
|
|
289
|
-
if (p.every(function(
|
|
290
|
-
return !
|
|
289
|
+
if (p.every(function(h) {
|
|
290
|
+
return !h.__N;
|
|
291
291
|
}))
|
|
292
|
-
return !
|
|
293
|
-
var
|
|
294
|
-
return p.forEach(function(
|
|
295
|
-
if (
|
|
296
|
-
var f =
|
|
297
|
-
|
|
292
|
+
return !r || r.call(this, l, a, g);
|
|
293
|
+
var o = !1;
|
|
294
|
+
return p.forEach(function(h) {
|
|
295
|
+
if (h.__N) {
|
|
296
|
+
var f = h.__[0];
|
|
297
|
+
h.__ = h.__N, h.__N = void 0, f !== h.__[0] && (o = !0);
|
|
298
298
|
}
|
|
299
|
-
}), !(!
|
|
299
|
+
}), !(!o && i.__c.props === l) && (!r || r.call(this, l, a, g));
|
|
300
300
|
};
|
|
301
|
-
|
|
302
|
-
var
|
|
303
|
-
|
|
301
|
+
x.u = !0;
|
|
302
|
+
var r = x.shouldComponentUpdate, c = x.componentWillUpdate;
|
|
303
|
+
x.componentWillUpdate = function(l, a, g) {
|
|
304
304
|
if (this.__e) {
|
|
305
|
-
var p =
|
|
306
|
-
|
|
305
|
+
var p = r;
|
|
306
|
+
r = void 0, _(l, a, g), r = p;
|
|
307
307
|
}
|
|
308
|
-
|
|
309
|
-
},
|
|
308
|
+
c && c.call(this, l, a, g);
|
|
309
|
+
}, x.shouldComponentUpdate = _;
|
|
310
310
|
}
|
|
311
|
-
return
|
|
311
|
+
return i.__N || i.__;
|
|
312
312
|
}
|
|
313
|
-
function
|
|
314
|
-
var n =
|
|
315
|
-
!u.__s &&
|
|
313
|
+
function ke(t, e) {
|
|
314
|
+
var n = X(N++, 3);
|
|
315
|
+
!u.__s && Ve(n.__H, e) && (n.__ = t, n.i = e, x.__H.__h.push(n));
|
|
316
316
|
}
|
|
317
|
-
function
|
|
318
|
-
var t =
|
|
317
|
+
function De() {
|
|
318
|
+
var t = X(N++, 11);
|
|
319
319
|
if (!t.__) {
|
|
320
|
-
for (var e =
|
|
320
|
+
for (var e = x.__v; e !== null && !e.__m && e.__ !== null; )
|
|
321
321
|
e = e.__;
|
|
322
322
|
var n = e.__m || (e.__m = [0, 0]);
|
|
323
323
|
t.__ = "P" + n[0] + "-" + n[1]++;
|
|
324
324
|
}
|
|
325
325
|
return t.__;
|
|
326
326
|
}
|
|
327
|
-
function
|
|
327
|
+
function Oe() {
|
|
328
328
|
for (var t; t = ye.shift(); )
|
|
329
329
|
if (t.__P && t.__H)
|
|
330
330
|
try {
|
|
@@ -334,199 +334,251 @@ function Te() {
|
|
|
334
334
|
}
|
|
335
335
|
}
|
|
336
336
|
u.__b = function(t) {
|
|
337
|
-
|
|
337
|
+
x = null, ie && ie(t);
|
|
338
338
|
}, u.__r = function(t) {
|
|
339
|
-
|
|
340
|
-
var e = (
|
|
341
|
-
e && (W ===
|
|
339
|
+
_e && _e(t), N = 0;
|
|
340
|
+
var e = (x = t.__c).__H;
|
|
341
|
+
e && (W === x ? (e.__h = [], x.__h = [], e.__.forEach(function(n) {
|
|
342
342
|
n.__N && (n.__ = n.__N), n.__V = D, n.__N = n.i = void 0;
|
|
343
|
-
})) : (e.__h.forEach(O), e.__h.forEach(q), e.__h = [],
|
|
343
|
+
})) : (e.__h.forEach(O), e.__h.forEach(q), e.__h = [], N = 0)), W = x;
|
|
344
344
|
}, u.diffed = function(t) {
|
|
345
345
|
ce && ce(t);
|
|
346
346
|
var e = t.__c;
|
|
347
|
-
e && e.__H && (e.__H.__h.length && (ye.push(e) !== 1 &&
|
|
347
|
+
e && e.__H && (e.__H.__h.length && (ye.push(e) !== 1 && re === u.requestAnimationFrame || ((re = u.requestAnimationFrame) || Fe)(Oe)), e.__H.__.forEach(function(n) {
|
|
348
348
|
n.i && (n.__H = n.i), n.__V !== D && (n.__ = n.__V), n.i = void 0, n.__V = D;
|
|
349
|
-
})), W =
|
|
349
|
+
})), W = x = null;
|
|
350
350
|
}, u.__c = function(t, e) {
|
|
351
351
|
e.some(function(n) {
|
|
352
352
|
try {
|
|
353
|
-
n.__h.forEach(O), n.__h = n.__h.filter(function(
|
|
354
|
-
return !
|
|
353
|
+
n.__h.forEach(O), n.__h = n.__h.filter(function(i) {
|
|
354
|
+
return !i.__ || q(i);
|
|
355
355
|
});
|
|
356
|
-
} catch (
|
|
357
|
-
e.some(function(
|
|
358
|
-
|
|
359
|
-
}), e = [], u.__e(
|
|
356
|
+
} catch (i) {
|
|
357
|
+
e.some(function(_) {
|
|
358
|
+
_.__h && (_.__h = []);
|
|
359
|
+
}), e = [], u.__e(i, n.__v);
|
|
360
360
|
}
|
|
361
|
-
}),
|
|
361
|
+
}), le && le(t, e);
|
|
362
362
|
}, u.unmount = function(t) {
|
|
363
|
-
|
|
363
|
+
se && se(t);
|
|
364
364
|
var e, n = t.__c;
|
|
365
|
-
n && n.__H && (n.__H.__.forEach(function(
|
|
365
|
+
n && n.__H && (n.__H.__.forEach(function(i) {
|
|
366
366
|
try {
|
|
367
|
-
O(
|
|
368
|
-
} catch (
|
|
369
|
-
e =
|
|
367
|
+
O(i);
|
|
368
|
+
} catch (_) {
|
|
369
|
+
e = _;
|
|
370
370
|
}
|
|
371
371
|
}), n.__H = void 0, e && u.__e(e, n.__v));
|
|
372
372
|
};
|
|
373
|
-
var
|
|
374
|
-
function
|
|
373
|
+
var ae = typeof requestAnimationFrame == "function";
|
|
374
|
+
function Fe(t) {
|
|
375
375
|
var e, n = function() {
|
|
376
|
-
clearTimeout(
|
|
377
|
-
},
|
|
378
|
-
|
|
376
|
+
clearTimeout(i), ae && cancelAnimationFrame(e), setTimeout(t);
|
|
377
|
+
}, i = setTimeout(n, 100);
|
|
378
|
+
ae && (e = requestAnimationFrame(n));
|
|
379
379
|
}
|
|
380
380
|
function O(t) {
|
|
381
|
-
var e =
|
|
382
|
-
typeof n == "function" && (t.__c = void 0, n()),
|
|
381
|
+
var e = x, n = t.__c;
|
|
382
|
+
typeof n == "function" && (t.__c = void 0, n()), x = e;
|
|
383
383
|
}
|
|
384
384
|
function q(t) {
|
|
385
|
-
var e =
|
|
386
|
-
t.__c = t.__(),
|
|
385
|
+
var e = x;
|
|
386
|
+
t.__c = t.__(), x = e;
|
|
387
387
|
}
|
|
388
|
-
function
|
|
389
|
-
return !t || t.length !== e.length || e.some(function(n,
|
|
390
|
-
return n !== t[
|
|
388
|
+
function Ve(t, e) {
|
|
389
|
+
return !t || t.length !== e.length || e.some(function(n, i) {
|
|
390
|
+
return n !== t[i];
|
|
391
391
|
});
|
|
392
392
|
}
|
|
393
|
-
function
|
|
393
|
+
function Se(t, e) {
|
|
394
394
|
return typeof e == "function" ? e(t) : e;
|
|
395
395
|
}
|
|
396
|
-
const
|
|
396
|
+
const Me = `:host{--teal-100: #cee8e9;--teal-600: #107180;--teal-700: #1a5b6e;--color: white;--padding: 30px;--offset: 0px;--outline: white}:host,:host button{font-family:Archivo,sans-serif}.universal{--background: var(--teal-700);--border: rgba(19, 133, 151, .35)}.site{--background: var(--teal-600);--border: #157688}.site ul ul{--border: rgba(19, 133, 151, .35)}.menu ul,.menu li{list-style-type:none;margin:0;padding:0}.menu a{text-decoration:none}.item{background:transparent;border:0 none transparent;border-radius:0;box-sizing:border-box;cursor:pointer;display:block;text-align:left;width:100%}.item{font-size:14px;font-weight:600;line-height:21px;padding:13.5px var(--padding) 13.5px}.menu>ul>li>.item{font-weight:800}.item,.menu>.expanded{border-bottom:1px solid var(--border)}.expanded,.icon-search .item,.menu li:last-child>.item,.menu>.collapsed{border-bottom:0 none transparent}.menu>button{text-transform:uppercase}.menu button{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'><path fill='white' d='M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8L32 192c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z'/></svg>");background-position:calc(100% - var(--padding) - var(--offset)) center;background-repeat:no-repeat;background-size:14px 24px}.menu button.expanded{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'><path fill='white' d='m 182.62211,201.27501 c -12.5,-12.5 -32.8,-12.5 -45.3,0 L 9.322106,329.275 c -9.19999996,9.2 -11.9,22.9 -6.9,34.9 5,12 16.6,19.8 29.6,19.8 l 256.000004,-0.1 c 12.9,0 24.6,-7.8 29.6,-19.8 5,-12 2.2,-25.7 -6.9,-34.9 l -128,-127.99999 z'/></svg>")}.menu button,.menu ul li{background-color:var(--background)}.menu button,.menu ul li a{color:var(--color)}.menu ul li li{background-color:#fff}.menu ul li li a{color:#138597}.icon>.item{background-position:calc(var(--padding) + var(--offset)) center;background-repeat:no-repeat;background-size:14px 14px;text-indent:-99999px}.icon-home>.item{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512' fill='white'><path d='M543.8 287.6c17 0 32-14 32-32.1c1-9-3-17-11-24L512 185V64c0-17.7-14.3-32-32-32H448c-17.7 0-32 14.3-32 32v36.7L309.5 7c-6-5-14-7-21-7s-15 1-22 8L10 231.5c-7 7-10 15-10 24c0 18 14 32.1 32 32.1h32v69.7c-.1 .9-.1 1.8-.1 2.8V472c0 22.1 17.9 40 40 40h16c1.2 0 2.4-.1 3.6-.2c1.5 .1 3 .2 4.5 .2H160h24c22.1 0 40-17.9 40-40V448 384c0-17.7 14.3-32 32-32h64c17.7 0 32 14.3 32 32v64 24c0 22.1 17.9 40 40 40h24 32.5c1.4 0 2.8 0 4.2-.1c1.1 .1 2.2 .1 3.3 .1h16c22.1 0 40-17.9 40-40V455.8c.3-2.6 .5-5.3 .5-8.1l-.7-160.2h32z'/></svg>")}.icon-search>.item{background-image:url("data:image/svg+xml;utf8,<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='18' height='18' viewBox='0 0 100 100'><path fill='white' class='st0' d='M98.22,92.72l-5.48,5.47c-1.8,1.82-4.74,1.82-6.55,0L66.9,78.9c-0.87-0.87-1.35-2.05-1.35-3.29v-3.15 c-6.83,5.34-15.42,8.51-24.76,8.51c-22.23,0-40.24-18.01-40.24-40.24S18.55,0.49,40.78,0.49S81.02,18.5,81.02,40.73 c0,9.34-3.18,17.94-8.51,24.76h3.15c1.24,0,2.42,0.48,3.29,1.35l19.29,19.29C100.03,87.95,100.03,90.89,98.22,92.72z M65.54,40.73 c0-13.7-11.08-24.76-24.76-24.76c-13.7,0-24.76,11.08-24.76,24.76c0,13.7,11.08,24.76,24.76,24.76 C54.47,65.49,65.54,54.41,65.54,40.73z'></path></svg>")}.icon-hamburger>.item,.icon-hamburger>.item.expanded{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='white'><path d='M24 6h-24v-4h24v4zm0 4h-24v4h24v-4zm0 8h-24v4h24v-4z'/></svg>")}.track .item{text-transform:uppercase;padding-top:5px;padding-bottom:5px}.track:not(.grow) .item{border-bottom:0 none transparent}.track.grow .item{padding-bottom:10px}.hamburger>button{display:none}.footer{background-color:var(--teal-700);color:#fff}.columns{margin:0 auto;padding:50px var(--padding) 36px;width:var(--width)}.column{padding-bottom:14px}.footer a,.footer a:visited{color:#fff;text-decoration:none}.footer a:active,.footer a:focus,.footer a:hover{color:var(--teal-100);text-decoration:underline}.footer h2{font-size:14px;font-weight:800;margin:0}.footer ul{margin:0;padding:0}.footer li{font-size:14px;font-weight:600;list-style-type:none;padding:14px 0 0}@media (min-width: 600px){:host{--padding: calc((100% - var(--width)) / 2);--offset: 7px;--width: 540px}}@media (min-width: 768px){:host{--width: 712px}.columns{display:flex;flex-direction:row;flex-wrap:wrap;padding:50px 0 10px}.column{padding-bottom:40px;padding-right:20px;width:calc((var(--width) - 60px) / 4)}.column:nth-child(4),.column:last-child{padding-right:0}}@media (min-width: 900px){:host{--padding: 10px;--offset: 0px;--width: 840px}.site{--background: white;--color: var(--teal-600);--outline: var(--teal-700);--padding: 20px;border-bottom:1px solid #d9d9d9;border-top:3px solid var(--teal-700)}.site>ul{justify-content:end}.menu>button{display:none}.menu>ul{display:flex;flex-direction:row;margin:0 auto;width:calc(var(--width) + (2 * var(--padding)))}.item,.track .item{border-bottom:0 none transparent;padding-top:12px;padding-bottom:12px}.site .item{font-size:16px}.grow{flex:1 0 auto}.universal{background-color:var(--teal-700)}.icon>.item{background-position:center center;width:56px}.menu button,.menu button.expanded{background-image:none}.hamburger>button{display:block}.menu>ul>li{display:flex;flex-direction:row;justify-content:start;position:relative}.menu>ul>li.grow>.item{flex:0 1 0}.menu>ul>li>.expanded,.menu>ul>li>.item:active,.menu>ul>li>.item:focus,.menu>ul>li>.item:hover{background-color:var(--teal-600);color:#fff;outline:0 none transparent}.menu>ul>li>.item:focus-visible{outline:3px solid var(--outline);outline-offset:-3px;z-index:1000}.menu>ul ul{background-color:var(--teal-600);padding:10px 0;position:absolute;right:0;top:48px;z-index:9999}.menu>ul ul li{background-color:var(--teal-600)}.menu>ul ul .item{color:#fff;white-space:nowrap;padding:5px 20px}.menu>ul ul .item:active,.menu>ul ul .item:focus,.menu>ul ul .item:hover{color:#cee8e9;outline:0 none transparent;text-decoration:underline}.menu>ul ul .item:focus-visible{outline:3px solid white;outline-offset:-3px;z-index:1000}.menu>ul>li>.item{line-height:24px}}@media (min-width: 1024px){:host{--width: 940px}}@media (min-width: 1280px){:host{--width: 1180px}.columns{flex-wrap:nowrap;padding:72px 0 0}.column{padding-bottom:72px;width:calc((var(--width) - 120px) / 7)}.column:nth-child(4){padding-right:20px}}
|
|
397
397
|
`;
|
|
398
|
-
var
|
|
399
|
-
function
|
|
400
|
-
var
|
|
401
|
-
for (
|
|
402
|
-
|
|
403
|
-
var
|
|
404
|
-
if (typeof t == "function" && (
|
|
405
|
-
for (
|
|
406
|
-
|
|
407
|
-
return u.vnode && u.vnode(
|
|
408
|
-
}
|
|
409
|
-
const
|
|
398
|
+
var Be = 0;
|
|
399
|
+
function v(t, e, n, i, _, r) {
|
|
400
|
+
var c, l, a = {};
|
|
401
|
+
for (l in e)
|
|
402
|
+
l == "ref" ? c = e[l] : a[l] = e[l];
|
|
403
|
+
var g = { type: t, props: a, key: n, ref: c, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, __h: null, constructor: void 0, __v: --Be, __source: _, __self: r };
|
|
404
|
+
if (typeof t == "function" && (c = t.defaultProps))
|
|
405
|
+
for (l in c)
|
|
406
|
+
a[l] === void 0 && (a[l] = c[l]);
|
|
407
|
+
return u.vnode && u.vnode(g), g;
|
|
408
|
+
}
|
|
409
|
+
const G = (t = 900) => document.body.clientWidth >= t ? "desktop" : "mobile", He = (t = 900) => {
|
|
410
|
+
const [e, n] = we(G(t));
|
|
411
|
+
return ke(() => {
|
|
412
|
+
window.addEventListener("resize", () => n(G(t)));
|
|
413
|
+
}, []), e;
|
|
414
|
+
}, Ce = ({
|
|
410
415
|
autoOpenMode: t,
|
|
411
416
|
classes: e = "",
|
|
412
417
|
href: n = "",
|
|
413
|
-
html:
|
|
414
|
-
items:
|
|
415
|
-
mode:
|
|
416
|
-
name:
|
|
417
|
-
open:
|
|
418
|
-
parentId:
|
|
419
|
-
setOpen:
|
|
418
|
+
html: i = "",
|
|
419
|
+
items: _,
|
|
420
|
+
mode: r,
|
|
421
|
+
name: c,
|
|
422
|
+
open: l,
|
|
423
|
+
parentId: a = "root",
|
|
424
|
+
setOpen: g
|
|
420
425
|
}) => {
|
|
421
|
-
const p =
|
|
422
|
-
...
|
|
423
|
-
[
|
|
426
|
+
const p = De(), o = l[a] == p, h = o || t == r, f = () => g({
|
|
427
|
+
...l,
|
|
428
|
+
[a]: o ? null : p
|
|
424
429
|
});
|
|
425
|
-
if (
|
|
426
|
-
return
|
|
430
|
+
if (i)
|
|
431
|
+
return v("div", {
|
|
427
432
|
dangerouslySetInnerHTML: {
|
|
428
|
-
__html:
|
|
433
|
+
__html: i
|
|
429
434
|
}
|
|
430
435
|
});
|
|
431
436
|
if (n)
|
|
432
|
-
return
|
|
437
|
+
return v("a", {
|
|
433
438
|
href: n,
|
|
434
|
-
class: `
|
|
435
|
-
children:
|
|
439
|
+
class: `item ${e || ""}`,
|
|
440
|
+
children: c
|
|
436
441
|
});
|
|
437
|
-
if (
|
|
438
|
-
return
|
|
439
|
-
children: [
|
|
440
|
-
"aria-expanded":
|
|
442
|
+
if (_)
|
|
443
|
+
return v(z, {
|
|
444
|
+
children: [c && v("button", {
|
|
445
|
+
"aria-expanded": h,
|
|
441
446
|
"aria-controls": p,
|
|
442
|
-
class: `
|
|
447
|
+
class: `item ${h ? "expanded" : "collapsed"}`,
|
|
443
448
|
onClick: f,
|
|
444
|
-
children:
|
|
445
|
-
}),
|
|
449
|
+
children: c
|
|
450
|
+
}), v("ul", {
|
|
446
451
|
class: e,
|
|
447
452
|
id: p,
|
|
448
|
-
hidden: !
|
|
449
|
-
"aria-hidden": !
|
|
450
|
-
children:
|
|
451
|
-
autoOpenMode:
|
|
452
|
-
classes:
|
|
453
|
+
hidden: !h,
|
|
454
|
+
"aria-hidden": !h,
|
|
455
|
+
children: _.map(({
|
|
456
|
+
autoOpenMode: s,
|
|
457
|
+
classes: d,
|
|
453
458
|
href: H,
|
|
454
|
-
html:
|
|
455
|
-
items:
|
|
456
|
-
name:
|
|
457
|
-
}) =>
|
|
458
|
-
class:
|
|
459
|
-
children:
|
|
460
|
-
autoOpenMode:
|
|
459
|
+
html: m,
|
|
460
|
+
items: b,
|
|
461
|
+
name: w
|
|
462
|
+
}) => v("li", {
|
|
463
|
+
class: d || "",
|
|
464
|
+
children: v(Ce, {
|
|
465
|
+
autoOpenMode: s,
|
|
461
466
|
href: H,
|
|
462
|
-
html:
|
|
463
|
-
items:
|
|
464
|
-
mode:
|
|
465
|
-
name:
|
|
466
|
-
open:
|
|
467
|
+
html: m,
|
|
468
|
+
items: b,
|
|
469
|
+
mode: r,
|
|
470
|
+
name: w,
|
|
471
|
+
open: l,
|
|
467
472
|
parentId: p,
|
|
468
|
-
setOpen:
|
|
473
|
+
setOpen: g
|
|
469
474
|
})
|
|
470
475
|
}))
|
|
471
476
|
})]
|
|
472
477
|
});
|
|
473
|
-
},
|
|
478
|
+
}, Ee = ({
|
|
474
479
|
classes: t,
|
|
475
480
|
items: e,
|
|
476
481
|
name: n,
|
|
477
|
-
target:
|
|
482
|
+
target: i
|
|
478
483
|
}) => {
|
|
479
|
-
const
|
|
480
|
-
return
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
}),
|
|
484
|
-
key:
|
|
484
|
+
const _ = He(), [r, c] = we({});
|
|
485
|
+
return ke(() => {
|
|
486
|
+
document.body.addEventListener("click", (l) => {
|
|
487
|
+
l.target != i && G() == "desktop" && c({});
|
|
488
|
+
}), i.addEventListener("keydown", ({
|
|
489
|
+
key: l
|
|
485
490
|
}) => {
|
|
486
|
-
|
|
491
|
+
l == "Escape" && c({});
|
|
487
492
|
});
|
|
488
|
-
}, []),
|
|
489
|
-
children: [
|
|
490
|
-
class: `
|
|
491
|
-
children:
|
|
493
|
+
}, []), v(z, {
|
|
494
|
+
children: [v("nav", {
|
|
495
|
+
class: `menu ${t || ""}`,
|
|
496
|
+
children: v(Ce, {
|
|
492
497
|
autoOpenMode: "desktop",
|
|
493
498
|
items: e,
|
|
494
|
-
mode:
|
|
499
|
+
mode: _,
|
|
495
500
|
name: n,
|
|
496
|
-
open:
|
|
497
|
-
setOpen:
|
|
501
|
+
open: r,
|
|
502
|
+
setOpen: c
|
|
503
|
+
})
|
|
504
|
+
}), v("style", {
|
|
505
|
+
children: Me
|
|
506
|
+
})]
|
|
507
|
+
});
|
|
508
|
+
}, Ie = ({
|
|
509
|
+
items: t
|
|
510
|
+
}) => {
|
|
511
|
+
const e = He(768), n = t.map(({
|
|
512
|
+
name: i,
|
|
513
|
+
href: _,
|
|
514
|
+
items: r
|
|
515
|
+
}) => {
|
|
516
|
+
if (e == "mobile")
|
|
517
|
+
for (; !_; )
|
|
518
|
+
_ = r[0].href, r = r[0];
|
|
519
|
+
return _ ? v("div", {
|
|
520
|
+
class: "column",
|
|
521
|
+
children: v("h2", {
|
|
522
|
+
children: v("a", {
|
|
523
|
+
href: _,
|
|
524
|
+
children: i
|
|
525
|
+
})
|
|
498
526
|
})
|
|
499
|
-
})
|
|
500
|
-
|
|
527
|
+
}) : v("div", {
|
|
528
|
+
class: "column",
|
|
529
|
+
children: [v("h2", {
|
|
530
|
+
children: i
|
|
531
|
+
}), v("ul", {
|
|
532
|
+
children: r.map(({
|
|
533
|
+
name: c,
|
|
534
|
+
href: l
|
|
535
|
+
}) => v("li", {
|
|
536
|
+
children: v("a", {
|
|
537
|
+
href: l,
|
|
538
|
+
children: c
|
|
539
|
+
})
|
|
540
|
+
}))
|
|
541
|
+
})]
|
|
542
|
+
});
|
|
543
|
+
});
|
|
544
|
+
return v(z, {
|
|
545
|
+
children: [v("nav", {
|
|
546
|
+
class: "footer",
|
|
547
|
+
children: v("div", {
|
|
548
|
+
class: "columns",
|
|
549
|
+
children: n
|
|
550
|
+
})
|
|
551
|
+
}), v("style", {
|
|
552
|
+
children: Me
|
|
501
553
|
})]
|
|
502
554
|
});
|
|
503
|
-
},
|
|
555
|
+
}, We = [{
|
|
504
556
|
name: "Allocations",
|
|
505
557
|
href: "https://allocations.access-ci.org/",
|
|
506
|
-
classes: "
|
|
558
|
+
classes: "track"
|
|
507
559
|
}, {
|
|
508
560
|
name: "Support",
|
|
509
561
|
href: "https://support.access-ci.org/",
|
|
510
|
-
classes: "
|
|
562
|
+
classes: "track"
|
|
511
563
|
}, {
|
|
512
564
|
name: "Operations",
|
|
513
565
|
href: "https://operations.access-ci.org/",
|
|
514
|
-
classes: "
|
|
566
|
+
classes: "track"
|
|
515
567
|
}, {
|
|
516
568
|
name: "Metrics",
|
|
517
569
|
href: "https://metrics.access-ci.org/",
|
|
518
|
-
classes: "
|
|
570
|
+
classes: "track grow"
|
|
519
571
|
}, {
|
|
520
572
|
name: "ACCESS Home",
|
|
521
573
|
href: "https://access-ci.org/",
|
|
522
|
-
classes: "
|
|
574
|
+
classes: "icon icon-home"
|
|
523
575
|
}, {
|
|
524
576
|
name: "Search",
|
|
525
577
|
href: "https://support.access-ci.org/knowledge-base",
|
|
526
|
-
classes: "
|
|
578
|
+
classes: "icon icon-search"
|
|
527
579
|
}, {
|
|
528
580
|
name: "Menu",
|
|
529
|
-
classes: "
|
|
581
|
+
classes: "icon icon-hamburger hamburger",
|
|
530
582
|
autoOpenMode: "mobile",
|
|
531
583
|
items: [{
|
|
532
584
|
name: "About",
|
|
@@ -550,7 +602,7 @@ const we = ({
|
|
|
550
602
|
name: "Resource Providers",
|
|
551
603
|
href: "https://access-ci.org/resource-providers/"
|
|
552
604
|
}]
|
|
553
|
-
}],
|
|
605
|
+
}], Re = {
|
|
554
606
|
name: "My ACCESS",
|
|
555
607
|
items: [{
|
|
556
608
|
name: "Allocations",
|
|
@@ -571,11 +623,11 @@ const we = ({
|
|
|
571
623
|
name: "Log out",
|
|
572
624
|
href: "https://cilogon.org/logout/?skin=access"
|
|
573
625
|
}]
|
|
574
|
-
},
|
|
626
|
+
}, je = {
|
|
575
627
|
name: "Login",
|
|
576
628
|
items: [{
|
|
577
629
|
name: "Login",
|
|
578
|
-
href: "https://cilogon.org
|
|
630
|
+
href: "https://cilogon.org/?skin=access"
|
|
579
631
|
}, {
|
|
580
632
|
name: "Questions",
|
|
581
633
|
href: "https://identity.access-ci.org/"
|
|
@@ -586,49 +638,53 @@ const we = ({
|
|
|
586
638
|
name: "Reset Password",
|
|
587
639
|
href: "https://identity.access-ci.orgg/password-reset"
|
|
588
640
|
}]
|
|
589
|
-
},
|
|
641
|
+
}, Y = (t, e) => {
|
|
590
642
|
const n = e.attachShadow({
|
|
591
643
|
mode: "open"
|
|
592
644
|
});
|
|
593
|
-
|
|
594
|
-
},
|
|
645
|
+
Te(t, n);
|
|
646
|
+
}, qe = ({
|
|
595
647
|
items: t,
|
|
596
648
|
isLoggedIn: e,
|
|
597
649
|
loginUrl: n,
|
|
598
|
-
logoutUrl:
|
|
599
|
-
target:
|
|
650
|
+
logoutUrl: i,
|
|
651
|
+
target: _
|
|
600
652
|
} = {}) => {
|
|
601
653
|
if (e === void 0 && (e = document.cookie.split("; ").includes("SESSaccesscisso=1")), t === void 0) {
|
|
602
|
-
const
|
|
603
|
-
...e ?
|
|
654
|
+
const r = {
|
|
655
|
+
...e ? Re : je
|
|
604
656
|
};
|
|
605
|
-
|
|
606
|
-
...
|
|
607
|
-
href:
|
|
608
|
-
})), t = [...
|
|
657
|
+
r.items = r.items.map((c) => ({
|
|
658
|
+
...c,
|
|
659
|
+
href: c.name == "Login" && n || c.name == "Log out" && i || c.href
|
|
660
|
+
})), t = [...We, r];
|
|
609
661
|
}
|
|
610
|
-
|
|
611
|
-
classes: "
|
|
662
|
+
Y(v(Ee, {
|
|
663
|
+
classes: "universal",
|
|
612
664
|
items: t,
|
|
613
665
|
name: "ACCESS Menu",
|
|
614
|
-
target:
|
|
615
|
-
}),
|
|
616
|
-
},
|
|
666
|
+
target: _
|
|
667
|
+
}), _);
|
|
668
|
+
}, Ge = ({
|
|
617
669
|
items: t,
|
|
618
670
|
siteName: e,
|
|
619
671
|
target: n
|
|
620
|
-
}) => {
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
672
|
+
}) => Y(v(Ee, {
|
|
673
|
+
classes: "site",
|
|
674
|
+
items: t,
|
|
675
|
+
name: `${e} Menu`,
|
|
676
|
+
target: n
|
|
677
|
+
}), n), Qe = ({
|
|
678
|
+
items: t,
|
|
679
|
+
target: e
|
|
680
|
+
}) => Y(v(Ie, {
|
|
681
|
+
items: t
|
|
682
|
+
}), e);
|
|
628
683
|
export {
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
Re as
|
|
632
|
-
|
|
633
|
-
We as
|
|
684
|
+
Qe as footerMenus,
|
|
685
|
+
je as loginMenuItem,
|
|
686
|
+
Re as myAccessMenuItem,
|
|
687
|
+
Ge as siteMenus,
|
|
688
|
+
We as universalMenuItems,
|
|
689
|
+
qe as universalMenus
|
|
634
690
|
};
|