From e616a5b72c33cb4a9a871e49632e4e3e7c70ed1f Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Sat, 10 Aug 2024 07:41:07 +0000 Subject: [PATCH 1/2] fix: upgrade preact from 10.22.0 to 10.22.1 Snyk has created this PR to upgrade preact from 10.22.0 to 10.22.1. See this package in npm: preact See this project in Snyk: https://app.snyk.io/org/lorenzoatbeis/project/1d6fd8a7-e509-4c3b-805c-ebb33f5711cf?utm_source=github&utm_medium=referral&page=upgrade-pr --- src/inspect_ai/_view/www/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/inspect_ai/_view/www/package.json b/src/inspect_ai/_view/www/package.json index c69be31ed..5d59c41c8 100644 --- a/src/inspect_ai/_view/www/package.json +++ b/src/inspect_ai/_view/www/package.json @@ -31,7 +31,7 @@ "htm": "^3.1.1", "json": "^11.0.0", "json5": "^2.2.3", - "preact": "^10.22.0", + "preact": "^10.22.1", "prismjs": "^1.29.0", "showdown": "^2.1.0" } From bc2b4844ae8b7b1cc424be61495ba0eeb8b1d7f3 Mon Sep 17 00:00:00 2001 From: Ed Saunders Date: Mon, 12 Aug 2024 12:35:40 +0000 Subject: [PATCH 2/2] Update build for upgraded preact --- src/inspect_ai/_view/www/dist/assets/index.js | 297 +++++++++--------- src/inspect_ai/_view/www/yarn.lock | 8 +- 2 files changed, 156 insertions(+), 149 deletions(-) diff --git a/src/inspect_ai/_view/www/dist/assets/index.js b/src/inspect_ai/_view/www/dist/assets/index.js index 013b275e4..e92393e41 100644 --- a/src/inspect_ai/_view/www/dist/assets/index.js +++ b/src/inspect_ai/_view/www/dist/assets/index.js @@ -47,7 +47,7 @@ function w$1(n2) { var l2 = n2.parentNode; l2 && l2.removeChild(n2); } -function _$1(l2, u2, t2) { +function _(l2, u2, t2) { var i2, o2, r2, f2 = {}; for (r2 in u2) "key" == r2 ? i2 = u2[r2] : "ref" == r2 ? o2 = u2[r2] : f2[r2] = u2[r2]; if (arguments.length > 2 && (f2.children = arguments.length > 3 ? n$2.call(arguments, 2) : t2), "function" == typeof l2 && null != l2.defaultProps) for (r2 in l2.defaultProps) void 0 === f2[r2] && (f2[r2] = l2.defaultProps[r2]); @@ -66,10 +66,10 @@ function k$1(n2) { function b(n2, l2) { this.props = n2, this.context = l2; } -function x$1(n2, l2) { - if (null == l2) return n2.__ ? x$1(n2.__, n2.__i + 1) : null; +function x(n2, l2) { + if (null == l2) return n2.__ ? x(n2.__, n2.__i + 1) : null; for (var u2; l2 < n2.__k.length; l2++) if (null != (u2 = n2.__k[l2]) && null != u2.__e) return u2.__e; - return "function" == typeof n2.type ? x$1(n2) : null; + return "function" == typeof n2.type ? x(n2) : null; } function C$1(n2) { var l2, u2; @@ -86,18 +86,18 @@ function M(n2) { } function P() { var n2, u2, t2, o2, r2, e2, c2, s2; - for (i$1.sort(f$1); n2 = i$1.shift(); ) n2.__d && (u2 = i$1.length, o2 = void 0, e2 = (r2 = (t2 = n2).__v).__e, c2 = [], s2 = [], t2.__P && ((o2 = d$1({}, r2)).__v = r2.__v + 1, l$1.vnode && l$1.vnode(o2), O(t2.__P, o2, r2, t2.__n, t2.__P.namespaceURI, 32 & r2.__u ? [e2] : null, c2, null == e2 ? x$1(r2) : e2, !!(32 & r2.__u), s2), o2.__v = r2.__v, o2.__.__k[o2.__i] = o2, j$1(c2, o2, s2), o2.__e != e2 && C$1(o2)), i$1.length > u2 && i$1.sort(f$1)); + for (i$1.sort(f$1); n2 = i$1.shift(); ) n2.__d && (u2 = i$1.length, o2 = void 0, e2 = (r2 = (t2 = n2).__v).__e, c2 = [], s2 = [], t2.__P && ((o2 = d$1({}, r2)).__v = r2.__v + 1, l$1.vnode && l$1.vnode(o2), O(t2.__P, o2, r2, t2.__n, t2.__P.namespaceURI, 32 & r2.__u ? [e2] : null, c2, null == e2 ? x(r2) : e2, !!(32 & r2.__u), s2), o2.__v = r2.__v, o2.__.__k[o2.__i] = o2, j$1(c2, o2, s2), o2.__e != e2 && C$1(o2)), i$1.length > u2 && i$1.sort(f$1)); P.__r = 0; } function S(n2, l2, u2, t2, i2, o2, r2, f2, e2, c2, s2) { var a2, v2, y2, d2, w2, _2 = t2 && t2.__k || p$1, g2 = l2.length; - for (u2.__d = e2, $(u2, l2, _2), e2 = u2.__d, a2 = 0; a2 < g2; a2++) null != (y2 = u2.__k[a2]) && "boolean" != typeof y2 && "function" != typeof y2 && (v2 = -1 === y2.__i ? h$1 : _2[y2.__i] || h$1, y2.__i = a2, O(n2, y2, v2, i2, o2, r2, f2, e2, c2, s2), d2 = y2.__e, y2.ref && v2.ref != y2.ref && (v2.ref && N(v2.ref, null, y2), s2.push(y2.ref, y2.__c || d2, y2)), null == w2 && null != d2 && (w2 = d2), 65536 & y2.__u || v2.__k === y2.__k ? (e2 && !e2.isConnected && (e2 = x$1(v2)), e2 = I(y2, e2, n2)) : "function" == typeof y2.type && void 0 !== y2.__d ? e2 = y2.__d : d2 && (e2 = d2.nextSibling), y2.__d = void 0, y2.__u &= -196609); + for (u2.__d = e2, $(u2, l2, _2), e2 = u2.__d, a2 = 0; a2 < g2; a2++) null != (y2 = u2.__k[a2]) && "boolean" != typeof y2 && "function" != typeof y2 && (v2 = -1 === y2.__i ? h$1 : _2[y2.__i] || h$1, y2.__i = a2, O(n2, y2, v2, i2, o2, r2, f2, e2, c2, s2), d2 = y2.__e, y2.ref && v2.ref != y2.ref && (v2.ref && N(v2.ref, null, y2), s2.push(y2.ref, y2.__c || d2, y2)), null == w2 && null != d2 && (w2 = d2), 65536 & y2.__u || v2.__k === y2.__k ? e2 = I(y2, e2, n2) : "function" == typeof y2.type && void 0 !== y2.__d ? e2 = y2.__d : d2 && (e2 = d2.nextSibling), y2.__d = void 0, y2.__u &= -196609); u2.__d = e2, u2.__e = w2; } function $(n2, l2, u2) { var t2, i2, o2, r2, f2, e2 = l2.length, c2 = u2.length, s2 = c2, a2 = 0; - for (n2.__k = [], t2 = 0; t2 < e2; t2++) r2 = t2 + a2, null != (i2 = n2.__k[t2] = null == (i2 = l2[t2]) || "boolean" == typeof i2 || "function" == typeof i2 ? null : "string" == typeof i2 || "number" == typeof i2 || "bigint" == typeof i2 || i2.constructor == String ? g(null, i2, null, null, null) : y$1(i2) ? g(k$1, { children: i2 }, null, null, null) : void 0 === i2.constructor && i2.__b > 0 ? g(i2.type, i2.props, i2.key, i2.ref ? i2.ref : null, i2.__v) : i2) ? (i2.__ = n2, i2.__b = n2.__b + 1, f2 = L(i2, u2, r2, s2), i2.__i = f2, o2 = null, -1 !== f2 && (s2--, (o2 = u2[f2]) && (o2.__u |= 131072)), null == o2 || null === o2.__v ? (-1 == f2 && a2--, "function" != typeof i2.type && (i2.__u |= 65536)) : f2 !== r2 && (f2 === r2 + 1 ? a2++ : f2 > r2 ? s2 > e2 - r2 ? a2 += f2 - r2 : a2-- : f2 < r2 ? f2 == r2 - 1 && (a2 = f2 - r2) : a2 = 0, f2 !== t2 + a2 && (i2.__u |= 65536))) : (o2 = u2[r2]) && null == o2.key && o2.__e && 0 == (131072 & o2.__u) && (o2.__e == n2.__d && (n2.__d = x$1(o2)), V(o2, o2, false), u2[r2] = null, s2--); - if (s2) for (t2 = 0; t2 < c2; t2++) null != (o2 = u2[t2]) && 0 == (131072 & o2.__u) && (o2.__e == n2.__d && (n2.__d = x$1(o2)), V(o2, o2)); + for (n2.__k = [], t2 = 0; t2 < e2; t2++) r2 = t2 + a2, null != (i2 = n2.__k[t2] = null == (i2 = l2[t2]) || "boolean" == typeof i2 || "function" == typeof i2 ? null : "string" == typeof i2 || "number" == typeof i2 || "bigint" == typeof i2 || i2.constructor == String ? g(null, i2, null, null, null) : y$1(i2) ? g(k$1, { children: i2 }, null, null, null) : void 0 === i2.constructor && i2.__b > 0 ? g(i2.type, i2.props, i2.key, i2.ref ? i2.ref : null, i2.__v) : i2) ? (i2.__ = n2, i2.__b = n2.__b + 1, f2 = L(i2, u2, r2, s2), i2.__i = f2, o2 = null, -1 !== f2 && (s2--, (o2 = u2[f2]) && (o2.__u |= 131072)), null == o2 || null === o2.__v ? (-1 == f2 && a2--, "function" != typeof i2.type && (i2.__u |= 65536)) : f2 !== r2 && (f2 == r2 - 1 ? a2 = f2 - r2 : f2 == r2 + 1 ? a2++ : f2 > r2 ? s2 > e2 - r2 ? a2 += f2 - r2 : a2-- : f2 < r2 && a2++, f2 !== t2 + a2 && (i2.__u |= 65536))) : (o2 = u2[r2]) && null == o2.key && o2.__e && 0 == (131072 & o2.__u) && (o2.__e == n2.__d && (n2.__d = x(o2)), V(o2, o2, false), u2[r2] = null, s2--); + if (s2) for (t2 = 0; t2 < c2; t2++) null != (o2 = u2[t2]) && 0 == (131072 & o2.__u) && (o2.__e == n2.__d && (n2.__d = x(o2)), V(o2, o2)); } function I(n2, l2, u2) { var t2, i2; @@ -105,7 +105,7 @@ function I(n2, l2, u2) { for (t2 = n2.__k, i2 = 0; t2 && i2 < t2.length; i2++) t2[i2] && (t2[i2].__ = n2, l2 = I(t2[i2], l2, u2)); return l2; } - n2.__e != l2 && (u2.insertBefore(n2.__e, l2 || null), l2 = n2.__e); + n2.__e != l2 && (l2 && n2.type && !u2.contains(l2) && (l2 = x(n2)), u2.insertBefore(n2.__e, l2 || null), l2 = n2.__e); do { l2 = l2 && l2.nextSibling; } while (null != l2 && 8 === l2.nodeType); @@ -126,28 +126,28 @@ function L(n2, l2, u2, t2) { } return -1; } -function T(n2, l2, u2) { +function T$1(n2, l2, u2) { "-" === l2[0] ? n2.setProperty(l2, null == u2 ? "" : u2) : n2[l2] = null == u2 ? "" : "number" != typeof u2 || v$1.test(l2) ? u2 : u2 + "px"; } -function A(n2, l2, u2, t2, i2) { +function A$1(n2, l2, u2, t2, i2) { var o2; n: if ("style" === l2) if ("string" == typeof u2) n2.style.cssText = u2; else { - if ("string" == typeof t2 && (n2.style.cssText = t2 = ""), t2) for (l2 in t2) u2 && l2 in u2 || T(n2.style, l2, ""); - if (u2) for (l2 in u2) t2 && u2[l2] === t2[l2] || T(n2.style, l2, u2[l2]); + if ("string" == typeof t2 && (n2.style.cssText = t2 = ""), t2) for (l2 in t2) u2 && l2 in u2 || T$1(n2.style, l2, ""); + if (u2) for (l2 in u2) t2 && u2[l2] === t2[l2] || T$1(n2.style, l2, u2[l2]); } else if ("o" === l2[0] && "n" === l2[1]) o2 = l2 !== (l2 = l2.replace(/(PointerCapture)$|Capture$/i, "$1")), l2 = l2.toLowerCase() in n2 || "onFocusOut" === l2 || "onFocusIn" === l2 ? l2.toLowerCase().slice(2) : l2.slice(2), n2.l || (n2.l = {}), n2.l[l2 + o2] = u2, u2 ? t2 ? u2.u = t2.u : (u2.u = e$3, n2.addEventListener(l2, o2 ? s$1 : c$2, o2)) : n2.removeEventListener(l2, o2 ? s$1 : c$2, o2); else { if ("http://www.w3.org/2000/svg" == i2) l2 = l2.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s"); - else if ("width" != l2 && "height" != l2 && "href" != l2 && "list" != l2 && "form" != l2 && "tabIndex" != l2 && "download" != l2 && "rowSpan" != l2 && "colSpan" != l2 && "role" != l2 && l2 in n2) try { + else if ("width" != l2 && "height" != l2 && "href" != l2 && "list" != l2 && "form" != l2 && "tabIndex" != l2 && "download" != l2 && "rowSpan" != l2 && "colSpan" != l2 && "role" != l2 && "popover" != l2 && l2 in n2) try { n2[l2] = null == u2 ? "" : u2; break n; } catch (n3) { } - "function" == typeof u2 || (null == u2 || false === u2 && "-" !== l2[4] ? n2.removeAttribute(l2) : n2.setAttribute(l2, u2)); + "function" == typeof u2 || (null == u2 || false === u2 && "-" !== l2[4] ? n2.removeAttribute(l2) : n2.setAttribute(l2, "popover" == l2 && 1 == u2 ? "" : u2)); } } -function F$1(n2) { +function F(n2) { return function(u2) { if (this.l) { var t2 = this.l[u2.type + n2]; @@ -158,32 +158,36 @@ function F$1(n2) { }; } function O(n2, u2, t2, i2, o2, r2, f2, e2, c2, s2) { - var a2, h2, p2, v2, w2, _2, g2, m2, x2, C2, M2, P2, $2, I2, H, L2 = u2.type; + var a2, h2, p2, v2, w2, _2, g2, m2, x2, C2, M2, P2, $2, I2, H, L2, T2 = u2.type; if (void 0 !== u2.constructor) return null; 128 & t2.__u && (c2 = !!(32 & t2.__u), r2 = [e2 = u2.__e = t2.__e]), (a2 = l$1.__b) && a2(u2); - n: if ("function" == typeof L2) try { - if (m2 = u2.props, x2 = (a2 = L2.contextType) && i2[a2.__c], C2 = a2 ? x2 ? x2.props.value : a2.__ : i2, t2.__c ? g2 = (h2 = u2.__c = t2.__c).__ = h2.__E : ("prototype" in L2 && L2.prototype.render ? u2.__c = h2 = new L2(m2, C2) : (u2.__c = h2 = new b(m2, C2), h2.constructor = L2, h2.render = q$1), x2 && x2.sub(h2), h2.props = m2, h2.state || (h2.state = {}), h2.context = C2, h2.__n = i2, p2 = h2.__d = true, h2.__h = [], h2._sb = []), null == h2.__s && (h2.__s = h2.state), null != L2.getDerivedStateFromProps && (h2.__s == h2.state && (h2.__s = d$1({}, h2.__s)), d$1(h2.__s, L2.getDerivedStateFromProps(m2, h2.__s))), v2 = h2.props, w2 = h2.state, h2.__v = u2, p2) null == L2.getDerivedStateFromProps && null != h2.componentWillMount && h2.componentWillMount(), null != h2.componentDidMount && h2.__h.push(h2.componentDidMount); + n: if ("function" == typeof T2) try { + if (m2 = u2.props, x2 = "prototype" in T2 && T2.prototype.render, C2 = (a2 = T2.contextType) && i2[a2.__c], M2 = a2 ? C2 ? C2.props.value : a2.__ : i2, t2.__c ? g2 = (h2 = u2.__c = t2.__c).__ = h2.__E : (x2 ? u2.__c = h2 = new T2(m2, M2) : (u2.__c = h2 = new b(m2, M2), h2.constructor = T2, h2.render = q$1), C2 && C2.sub(h2), h2.props = m2, h2.state || (h2.state = {}), h2.context = M2, h2.__n = i2, p2 = h2.__d = true, h2.__h = [], h2._sb = []), x2 && null == h2.__s && (h2.__s = h2.state), x2 && null != T2.getDerivedStateFromProps && (h2.__s == h2.state && (h2.__s = d$1({}, h2.__s)), d$1(h2.__s, T2.getDerivedStateFromProps(m2, h2.__s))), v2 = h2.props, w2 = h2.state, h2.__v = u2, p2) x2 && null == T2.getDerivedStateFromProps && null != h2.componentWillMount && h2.componentWillMount(), x2 && null != h2.componentDidMount && h2.__h.push(h2.componentDidMount); else { - if (null == L2.getDerivedStateFromProps && m2 !== v2 && null != h2.componentWillReceiveProps && h2.componentWillReceiveProps(m2, C2), !h2.__e && (null != h2.shouldComponentUpdate && false === h2.shouldComponentUpdate(m2, h2.__s, C2) || u2.__v === t2.__v)) { + if (x2 && null == T2.getDerivedStateFromProps && m2 !== v2 && null != h2.componentWillReceiveProps && h2.componentWillReceiveProps(m2, M2), !h2.__e && (null != h2.shouldComponentUpdate && false === h2.shouldComponentUpdate(m2, h2.__s, M2) || u2.__v === t2.__v)) { for (u2.__v !== t2.__v && (h2.props = m2, h2.state = h2.__s, h2.__d = false), u2.__e = t2.__e, u2.__k = t2.__k, u2.__k.forEach(function(n3) { n3 && (n3.__ = u2); - }), M2 = 0; M2 < h2._sb.length; M2++) h2.__h.push(h2._sb[M2]); + }), P2 = 0; P2 < h2._sb.length; P2++) h2.__h.push(h2._sb[P2]); h2._sb = [], h2.__h.length && f2.push(h2); break n; } - null != h2.componentWillUpdate && h2.componentWillUpdate(m2, h2.__s, C2), null != h2.componentDidUpdate && h2.__h.push(function() { + null != h2.componentWillUpdate && h2.componentWillUpdate(m2, h2.__s, M2), x2 && null != h2.componentDidUpdate && h2.__h.push(function() { h2.componentDidUpdate(v2, w2, _2); }); } - if (h2.context = C2, h2.props = m2, h2.__P = n2, h2.__e = false, P2 = l$1.__r, $2 = 0, "prototype" in L2 && L2.prototype.render) { - for (h2.state = h2.__s, h2.__d = false, P2 && P2(u2), a2 = h2.render(h2.props, h2.state, h2.context), I2 = 0; I2 < h2._sb.length; I2++) h2.__h.push(h2._sb[I2]); + if (h2.context = M2, h2.props = m2, h2.__P = n2, h2.__e = false, $2 = l$1.__r, I2 = 0, x2) { + for (h2.state = h2.__s, h2.__d = false, $2 && $2(u2), a2 = h2.render(h2.props, h2.state, h2.context), H = 0; H < h2._sb.length; H++) h2.__h.push(h2._sb[H]); h2._sb = []; } else do { - h2.__d = false, P2 && P2(u2), a2 = h2.render(h2.props, h2.state, h2.context), h2.state = h2.__s; - } while (h2.__d && ++$2 < 25); - h2.state = h2.__s, null != h2.getChildContext && (i2 = d$1(d$1({}, i2), h2.getChildContext())), p2 || null == h2.getSnapshotBeforeUpdate || (_2 = h2.getSnapshotBeforeUpdate(v2, w2)), S(n2, y$1(H = null != a2 && a2.type === k$1 && null == a2.key ? a2.props.children : a2) ? H : [H], u2, t2, i2, o2, r2, f2, e2, c2, s2), h2.base = u2.__e, u2.__u &= -161, h2.__h.length && f2.push(h2), g2 && (h2.__E = h2.__ = null); + h2.__d = false, $2 && $2(u2), a2 = h2.render(h2.props, h2.state, h2.context), h2.state = h2.__s; + } while (h2.__d && ++I2 < 25); + h2.state = h2.__s, null != h2.getChildContext && (i2 = d$1(d$1({}, i2), h2.getChildContext())), x2 && !p2 && null != h2.getSnapshotBeforeUpdate && (_2 = h2.getSnapshotBeforeUpdate(v2, w2)), S(n2, y$1(L2 = null != a2 && a2.type === k$1 && null == a2.key ? a2.props.children : a2) ? L2 : [L2], u2, t2, i2, o2, r2, f2, e2, c2, s2), h2.base = u2.__e, u2.__u &= -161, h2.__h.length && f2.push(h2), g2 && (h2.__E = h2.__ = null); } catch (n3) { - u2.__v = null, c2 || null != r2 ? (u2.__e = e2, u2.__u |= c2 ? 160 : 32, r2[r2.indexOf(e2)] = null) : (u2.__e = t2.__e, u2.__k = t2.__k), l$1.__e(n3, u2, t2); + if (u2.__v = null, c2 || null != r2) { + for (u2.__u |= c2 ? 160 : 32; e2 && 8 === e2.nodeType && e2.nextSibling; ) e2 = e2.nextSibling; + r2[r2.indexOf(e2)] = null, u2.__e = e2; + } else u2.__e = t2.__e, u2.__k = t2.__k; + l$1.__e(n3, u2, t2); } else null == r2 && u2.__v === t2.__v ? (u2.__k = t2.__k, u2.__e = t2.__e) : u2.__e = z$1(t2.__e, u2, t2, i2, o2, r2, f2, c2, s2); (a2 = l$1.diffed) && a2(u2); @@ -220,18 +224,21 @@ function z$1(l2, u2, t2, i2, o2, r2, f2, e2, c2) { else if ("dangerouslySetInnerHTML" == s2) p2 = d2; else if ("key" !== s2 && !(s2 in k2)) { if ("value" == s2 && "defaultValue" in k2 || "checked" == s2 && "defaultChecked" in k2) continue; - A(l2, s2, null, d2, o2); + A$1(l2, s2, null, d2, o2); } - for (s2 in k2) d2 = k2[s2], "children" == s2 ? v2 = d2 : "dangerouslySetInnerHTML" == s2 ? a2 = d2 : "value" == s2 ? _2 = d2 : "checked" == s2 ? g2 = d2 : "key" === s2 || e2 && "function" != typeof d2 || m2[s2] === d2 || A(l2, s2, d2, m2[s2], o2); + for (s2 in k2) d2 = k2[s2], "children" == s2 ? v2 = d2 : "dangerouslySetInnerHTML" == s2 ? a2 = d2 : "value" == s2 ? _2 = d2 : "checked" == s2 ? g2 = d2 : "key" === s2 || e2 && "function" != typeof d2 || m2[s2] === d2 || A$1(l2, s2, d2, m2[s2], o2); if (a2) e2 || p2 && (a2.__html === p2.__html || a2.__html === l2.innerHTML) || (l2.innerHTML = a2.__html), u2.__k = []; - else if (p2 && (l2.innerHTML = ""), S(l2, y$1(v2) ? v2 : [v2], u2, t2, i2, "foreignObject" === b2 ? "http://www.w3.org/1999/xhtml" : o2, r2, f2, r2 ? r2[0] : t2.__k && x$1(t2, 0), e2, c2), null != r2) for (s2 = r2.length; s2--; ) null != r2[s2] && w$1(r2[s2]); - e2 || (s2 = "value", void 0 !== _2 && (_2 !== l2[s2] || "progress" === b2 && !_2 || "option" === b2 && _2 !== m2[s2]) && A(l2, s2, _2, m2[s2], o2), s2 = "checked", void 0 !== g2 && g2 !== l2[s2] && A(l2, s2, g2, m2[s2], o2)); + else if (p2 && (l2.innerHTML = ""), S(l2, y$1(v2) ? v2 : [v2], u2, t2, i2, "foreignObject" === b2 ? "http://www.w3.org/1999/xhtml" : o2, r2, f2, r2 ? r2[0] : t2.__k && x(t2, 0), e2, c2), null != r2) for (s2 = r2.length; s2--; ) null != r2[s2] && w$1(r2[s2]); + e2 || (s2 = "value", void 0 !== _2 && (_2 !== l2[s2] || "progress" === b2 && !_2 || "option" === b2 && _2 !== m2[s2]) && A$1(l2, s2, _2, m2[s2], o2), s2 = "checked", void 0 !== g2 && g2 !== l2[s2] && A$1(l2, s2, g2, m2[s2], o2)); } return l2; } function N(n2, u2, t2) { try { - "function" == typeof n2 ? n2(u2) : n2.current = u2; + if ("function" == typeof n2) { + var i2 = "function" == typeof n2.__u; + i2 && n2.__u(), i2 && null == u2 || (n2.__u = n2(u2)); + } else n2.current = u2; } catch (n3) { l$1.__e(n3, t2); } @@ -254,7 +261,7 @@ function q$1(n2, l2, u2) { } function B$1(u2, t2, i2) { var o2, r2, f2, e2; - l$1.__ && l$1.__(u2, t2), r2 = (o2 = "function" == typeof i2) ? null : t2.__k, f2 = [], e2 = [], O(t2, u2 = (!o2 && i2 || t2).__k = _$1(k$1, null, [u2]), r2 || h$1, h$1, t2.namespaceURI, !o2 && i2 ? [i2] : r2 ? null : t2.firstChild ? n$2.call(t2.childNodes) : null, f2, !o2 && i2 ? i2 : r2 ? r2.__e : t2.firstChild, o2, e2), j$1(f2, u2, e2); + l$1.__ && l$1.__(u2, t2), r2 = (o2 = "function" == typeof i2) ? null : t2.__k, f2 = [], e2 = [], O(t2, u2 = (!o2 && i2 || t2).__k = _(k$1, null, [u2]), r2 || h$1, h$1, t2.namespaceURI, !o2 && i2 ? [i2] : r2 ? null : t2.firstChild ? n$2.call(t2.childNodes) : null, f2, !o2 && i2 ? i2 : r2 ? r2.__e : t2.firstChild, o2, e2), j$1(f2, u2, e2); } n$2 = p$1.slice, l$1 = { __e: function(n2, l2, u2, t2) { for (var i2, o2, r2; l2 = l2.__; ) if ((i2 = l2.__c) && !i2.__) try { @@ -270,7 +277,7 @@ n$2 = p$1.slice, l$1 = { __e: function(n2, l2, u2, t2) { this.__v && (this.__e = true, n2 && this.__h.push(n2), M(this)); }, b.prototype.render = k$1, i$1 = [], r$2 = "function" == typeof Promise ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, f$1 = function(n2, l2) { return n2.__v.__b - l2.__v.__b; -}, P.__r = 0, e$3 = 0, c$2 = F$1(false), s$1 = F$1(true); +}, P.__r = 0, e$3 = 0, c$2 = F(false), s$1 = F(true); var n$1 = function(t2, s2, r2, e2) { var u2; s2[0] = 0; @@ -292,7 +299,7 @@ function e$2(s2) { return p2(), h2; }(s2)), r2), arguments, [])).length > 1 ? r2 : r2[0]; } -var m$1 = e$2.bind(_$1); +var m$1 = e$2.bind(_); var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {}; function getDefaultExportFromCjs(x2) { return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2; @@ -5988,17 +5995,17 @@ class Toast extends BaseComponent { } enableDismissTrigger(Toast); defineJQueryPlugin(Toast); -var t$1, r$1, u, i, o = 0, f = [], c$1 = [], e$1 = l$1, a = e$1.__b, v = e$1.__r, l = e$1.diffed, m = e$1.__c, s = e$1.unmount, d = e$1.__; -function h(n2, t2) { - e$1.__h && e$1.__h(r$1, n2, o || t2), o = 0; +var t$1, r$1, u, i, o = 0, f = [], c$1 = l$1, e$1 = c$1.__b, a = c$1.__r, v = c$1.diffed, l = c$1.__c, m = c$1.unmount, s = c$1.__; +function d(n2, t2) { + c$1.__h && c$1.__h(r$1, n2, o || t2), o = 0; var u2 = r$1.__H || (r$1.__H = { __: [], __h: [] }); - return n2 >= u2.__.length && u2.__.push({ __V: c$1 }), u2.__[n2]; + return n2 >= u2.__.length && u2.__.push({}), u2.__[n2]; } -function p(n2) { - return o = 1, y(D, n2); +function h(n2) { + return o = 1, p(D, n2); } -function y(n2, u2, i2) { - var o2 = h(t$1++, 2); +function p(n2, u2, i2) { + var o2 = d(t$1++, 2); if (o2.t = n2, !o2.__c && (o2.__ = [D(void 0, u2), function(n3) { var t2 = o2.__N ? o2.__N[0] : o2.__[0], r2 = o2.t(t2, n3); t2 !== r2 && (o2.__N = [r2, o2.__[1]], o2.__c.setState({})); @@ -6031,21 +6038,21 @@ function y(n2, u2, i2) { } return o2.__N || o2.__; } -function _(n2, u2) { - var i2 = h(t$1++, 3); - !e$1.__s && C(i2.__H, u2) && (i2.__ = n2, i2.i = u2, r$1.__H.__h.push(i2)); +function y(n2, u2) { + var i2 = d(t$1++, 3); + !c$1.__s && C(i2.__H, u2) && (i2.__ = n2, i2.i = u2, r$1.__H.__h.push(i2)); } -function F(n2) { - return o = 5, q(function() { +function A(n2) { + return o = 5, T(function() { return { current: n2 }; }, []); } -function q(n2, r2) { - var u2 = h(t$1++, 7); - return C(u2.__H, r2) ? (u2.__V = n2(), u2.i = r2, u2.__h = n2, u2.__V) : u2.__; +function T(n2, r2) { + var u2 = d(t$1++, 7); + return C(u2.__H, r2) && (u2.__ = n2(), u2.__H = r2, u2.__h = n2), u2.__; } -function x(n2, t2) { - return o = 8, q(function() { +function q(n2, t2) { + return o = 8, T(function() { return n2; }, t2); } @@ -6053,26 +6060,26 @@ function j() { for (var n2; n2 = f.shift(); ) if (n2.__P && n2.__H) try { n2.__H.__h.forEach(z), n2.__H.__h.forEach(B), n2.__H.__h = []; } catch (t2) { - n2.__H.__h = [], e$1.__e(t2, n2.__v); + n2.__H.__h = [], c$1.__e(t2, n2.__v); } } -e$1.__b = function(n2) { - r$1 = null, a && a(n2); -}, e$1.__ = function(n2, t2) { - n2 && t2.__k && t2.__k.__m && (n2.__m = t2.__k.__m), d && d(n2, t2); -}, e$1.__r = function(n2) { - v && v(n2), t$1 = 0; +c$1.__b = function(n2) { + r$1 = null, e$1 && e$1(n2); +}, c$1.__ = function(n2, t2) { + n2 && t2.__k && t2.__k.__m && (n2.__m = t2.__k.__m), s && s(n2, t2); +}, c$1.__r = function(n2) { + a && a(n2), t$1 = 0; var i2 = (r$1 = n2.__c).__H; i2 && (u === r$1 ? (i2.__h = [], r$1.__h = [], i2.__.forEach(function(n3) { - n3.__N && (n3.__ = n3.__N), n3.__V = c$1, n3.__N = n3.i = void 0; + n3.__N && (n3.__ = n3.__N), n3.i = n3.__N = void 0; })) : (i2.__h.forEach(z), i2.__h.forEach(B), i2.__h = [], t$1 = 0)), u = r$1; -}, e$1.diffed = function(n2) { - l && l(n2); +}, c$1.diffed = function(n2) { + v && v(n2); var t2 = n2.__c; - t2 && t2.__H && (t2.__H.__h.length && (1 !== f.push(t2) && i === e$1.requestAnimationFrame || ((i = e$1.requestAnimationFrame) || w)(j)), t2.__H.__.forEach(function(n3) { - n3.i && (n3.__H = n3.i), n3.__V !== c$1 && (n3.__ = n3.__V), n3.i = void 0, n3.__V = c$1; + t2 && t2.__H && (t2.__H.__h.length && (1 !== f.push(t2) && i === c$1.requestAnimationFrame || ((i = c$1.requestAnimationFrame) || w)(j)), t2.__H.__.forEach(function(n3) { + n3.i && (n3.__H = n3.i), n3.i = void 0; })), u = r$1 = null; -}, e$1.__c = function(n2, t2) { +}, c$1.__c = function(n2, t2) { t2.some(function(n3) { try { n3.__h.forEach(z), n3.__h = n3.__h.filter(function(n4) { @@ -6081,11 +6088,11 @@ e$1.__b = function(n2) { } catch (r2) { t2.some(function(n4) { n4.__h && (n4.__h = []); - }), t2 = [], e$1.__e(r2, n3.__v); + }), t2 = [], c$1.__e(r2, n3.__v); } - }), m && m(n2, t2); -}, e$1.unmount = function(n2) { - s && s(n2); + }), l && l(n2, t2); +}, c$1.unmount = function(n2) { + m && m(n2); var t2, r2 = n2.__c; r2 && r2.__H && (r2.__H.__.forEach(function(n3) { try { @@ -6093,7 +6100,7 @@ e$1.__b = function(n2) { } catch (n4) { t2 = n4; } - }), r2.__H = void 0, t2 && e$1.__e(t2, r2.__v)); + }), r2.__H = void 0, t2 && c$1.__e(t2, r2.__v)); }; var k = "function" == typeof requestAnimationFrame; function w(n2) { @@ -8726,7 +8733,7 @@ const ToolButton = ({ name, classes, icon: icon2, onclick, ...rest }) => { ...rest }; const iconEl = icon2 ? m$1`` : ""; - return _$1("button", attr, m$1`${iconEl}${name}`); + return _("button", attr, m$1`${iconEl}${name}`); }; const asyncJsonParse = (text) => { return new Promise((resolve, reject) => { @@ -14690,14 +14697,14 @@ const messageRenderers = { } }; const ExpandablePanel = ({ collapse, border, lines = 7, children }) => { - const [collapsed, setCollapsed] = p(collapse); - const [showToggle, setShowToggle] = p(false); - const contentsRef = F(); - const observerRef = F(); - _(() => { + const [collapsed, setCollapsed] = h(collapse); + const [showToggle, setShowToggle] = h(false); + const contentsRef = A(); + const observerRef = A(); + y(() => { setCollapsed(collapse); }, [children, collapse]); - _(() => { + y(() => { const checkScrollable = () => { if (collapse && contentsRef.current) { const isScrollable = contentsRef.current.offsetHeight < contentsRef.current.scrollHeight; @@ -14933,8 +14940,8 @@ const ToolInput = ({ type, contents }) => { if (typeof contents === "object" || Array.isArray(contents)) { contents = JSON.stringify(contents); } - const toolInputRef = F(); - q(() => { + const toolInputRef = A(); + T(() => { const tokens = Prism.languages[type]; if (toolInputRef.current && tokens) { const html = Prism.highlight(contents, tokens, type); @@ -16523,10 +16530,10 @@ const SampleDisplay = ({ const msgTabId = `${baseId}-messages`; const scoringTabId = `${baseId}-scoring`; const metdataTabId = `${baseId}-metadata`; - _(() => { + y(() => { setSelectedTab(msgTabId); }, [sample]); - const [selectedTab, setSelectedTab] = p(void 0); + const [selectedTab, setSelectedTab] = h(void 0); const onSelectedTab = (e2) => { const id3 = e2.currentTarget.id; setSelectedTab(id3); @@ -16731,7 +16738,7 @@ const SampleDialog = (props) => { if (!sample) { return m$1`<${LargeModal} id=${id2} title="No Sample"><${EmptyPanel}>No Sample Selected`; } - const tools = q(() => { + const tools = T(() => { const nextTool = { label: "Next Sample", icon: icons.next, @@ -16749,7 +16756,7 @@ const SampleDialog = (props) => { right: [nextTool] }; }, [prevSample, nextSample]); - const handleKeyUp = x( + const handleKeyUp = q( (e2) => { switch (e2.key) { case "ArrowRight": @@ -16872,7 +16879,7 @@ const SampleList = (props) => { const heightForType = (type) => { return type === "sample" ? kSampleHeight : kSeparatorHeight; }; - const rowMap = q(() => { + const rowMap = T(() => { return items.reduce((values, current, index) => { const height = heightForType(current.type); const previous = values.length > 0 ? values[values.length - 1] : void 0; @@ -16885,7 +16892,7 @@ const SampleList = (props) => { return values; }, []); }, [items]); - _(() => { + y(() => { const listEl = listRef.current; if (listEl) { const selected = rowMap[selectedIndex]; @@ -17128,12 +17135,12 @@ const SamplesTab = (props) => { selectedScore //setSelectedScore, } = props; - const [selectedIndex, setSelectedIndex] = p(0); - const [filteredSamples, setFilteredSamples] = p([]); - const [items, setItems] = p([]); - const sampleListRef = F(); - const sampleDialogRef = F(); - _(() => { + const [selectedIndex, setSelectedIndex] = h(0); + const [filteredSamples, setFilteredSamples] = h([]); + const [items, setItems] = h([]); + const sampleListRef = A(); + const sampleDialogRef = A(); + y(() => { setFilteredSamples( (samples || []).filter((sample) => { if (epoch && epoch !== "all") { @@ -17149,14 +17156,14 @@ const SamplesTab = (props) => { }) ); }, [samples, filter, sort$1, epoch]); - const showSample = x(() => { + const showSample = q(() => { const dialogEl = sampleDialogRef.current; if (dialogEl) { const modal = new Modal(dialogEl.base); modal.show(); } }, [sampleDialogRef]); - const hideSample = x(() => { + const hideSample = q(() => { const dialogEl = sampleDialogRef.current; if (dialogEl && dialogEl.base) { const modal = Modal.getInstance(dialogEl.base); @@ -17165,7 +17172,7 @@ const SamplesTab = (props) => { } } }, [sampleDialogRef]); - _(() => { + y(() => { const dialogEl = sampleDialogRef.current; if (dialogEl) { dialogEl.base.addEventListener("hidden.bs.modal", () => { @@ -17176,7 +17183,7 @@ const SamplesTab = (props) => { }); } }, [sampleDialogRef, sampleListRef]); - _(() => { + y(() => { const { sorted, order: order2 } = sort(sort$1, filteredSamples, sampleDescriptor); const sampleProcessor = getSampleProcessor( filteredSamples, @@ -17201,10 +17208,10 @@ const SamplesTab = (props) => { } return items2; }, [filteredSamples, sort$1, epoch, sampleDescriptor]); - _(() => { + y(() => { hideSample(); }, [items]); - const nextSampleIndex = x(() => { + const nextSampleIndex = q(() => { for (let i2 = selectedIndex + 1; i2 < items.length; i2++) { if (items[i2].type === "sample") { return i2; @@ -17212,7 +17219,7 @@ const SamplesTab = (props) => { } return -1; }, [selectedIndex, items]); - const previousSampleIndex = x(() => { + const previousSampleIndex = q(() => { for (let i2 = selectedIndex - 1; i2 >= 0; i2--) { if (items[i2].type === "sample") { return i2; @@ -17220,13 +17227,13 @@ const SamplesTab = (props) => { } return -1; }, [selectedIndex, items]); - const nextSample = x(() => { + const nextSample = q(() => { const next = nextSampleIndex(); if (next > -1) { setSelectedIndex(next); } }, [selectedIndex, filteredSamples, nextSampleIndex]); - const previousSample = x(() => { + const previousSample = q(() => { const prev = previousSampleIndex(); if (prev > -1) { setSelectedIndex(prev); @@ -18008,32 +18015,32 @@ const kPrismRenderMaxSize = 25e4; const kJsonMaxSize = 1e7; const WorkSpace = (props) => { var _a, _b; - const divRef = F(); - const codeRef = F(); + const divRef = A(); + const codeRef = A(); const workspaceLog = props.log; - const [currentTaskId, setCurrentTaskId] = p( + const [currentTaskId, setCurrentTaskId] = h( (_b = (_a = workspaceLog == null ? void 0 : workspaceLog.contents) == null ? void 0 : _a.eval) == null ? void 0 : _b.run_id ); - const [selectedTab, setSelectedTab] = p(kEvalTabId); - const [scores, setScores] = p([]); - const [score, setScore] = p(void 0); - const [samplesDesc, setSamplesDesc] = p(void 0); - const [filter, setFilter] = p({}); - const [epoch, setEpoch] = p("all"); - const [sort2, setSort] = p(kDefaultSort); - const [renderedCode, setRenderedCode] = p(false); + const [selectedTab, setSelectedTab] = h(kEvalTabId); + const [scores, setScores] = h([]); + const [score, setScore] = h(void 0); + const [samplesDesc, setSamplesDesc] = h(void 0); + const [filter, setFilter] = h({}); + const [epoch, setEpoch] = h("all"); + const [sort2, setSort] = h(kDefaultSort); + const [renderedCode, setRenderedCode] = h(false); const afterBodyElements = []; const context = { afterBody: (el) => { afterBodyElements.push(el); } }; - const clearSampleTools = x(() => { + const clearSampleTools = q(() => { setEpoch("all"); setFilter({}); setSort(kDefaultSort); }, [setEpoch, setFilter, setSort]); - _(() => { + y(() => { var _a2, _b2; if (workspaceLog.contents && ((_a2 = workspaceLog.contents.eval) == null ? void 0 : _a2.run_id) !== currentTaskId) { const defaultTab = ((_b2 = workspaceLog.contents) == null ? void 0 : _b2.status) !== "error" ? kEvalTabId : kInfoTabId; @@ -18043,7 +18050,7 @@ const WorkSpace = (props) => { } } }, [workspaceLog, divRef, currentTaskId, setSelectedTab]); - _(() => { + y(() => { var _a2, _b2, _c, _d; const scorer = ((_b2 = (_a2 = workspaceLog == null ? void 0 : workspaceLog.contents) == null ? void 0 : _a2.results) == null ? void 0 : _b2.scores[0]) ? { name: workspaceLog.contents.results.scores[0].name, @@ -18067,10 +18074,10 @@ const WorkSpace = (props) => { clearSampleTools(); setRenderedCode(false); }, [workspaceLog, setScores, setScore, setEpoch, setFilter, setRenderedCode]); - _(() => { + y(() => { clearSampleTools(); }, [score]); - _(() => { + y(() => { var _a2, _b2, _c, _d; const sampleDescriptor = samplesDescriptor( score, @@ -18081,11 +18088,11 @@ const WorkSpace = (props) => { ); setSamplesDesc(sampleDescriptor); }, [workspaceLog, score, scores, setSamplesDesc]); - _(() => { + y(() => { var _a2, _b2; setCurrentTaskId((_b2 = (_a2 = workspaceLog.contents) == null ? void 0 : _a2.eval) == null ? void 0 : _b2.run_id); }, [workspaceLog]); - const tabs = q(() => { + const tabs = T(() => { var _a2, _b2, _c, _d, _e; const resolvedTabs = {}; if (((_a2 = workspaceLog.contents) == null ? void 0 : _a2.status) !== "error") { @@ -18256,7 +18263,7 @@ const WorkSpace = (props) => { renderedCode, setRenderedCode ]); - const copyFeedback = x( + const copyFeedback = q( (e2) => { const textEl = e2.currentTarget.querySelector(".task-btn-copy-content"); const iconEl = e2.currentTarget.querySelector("i.bi"); @@ -18373,8 +18380,8 @@ const WorkspaceDisplay = ({ } }; const FindBand = ({ hideBand }) => { - const searchBoxRef = F(); - _(() => { + const searchBoxRef = A(); + y(() => { searchBoxRef.current.focus(); }, []); const searchTerm = () => { @@ -18514,28 +18521,28 @@ const FindBand = ({ hideBand }) => { }; function App({ api: api2, pollForLogs = true }) { var _a, _b, _c, _d, _e, _f, _g; - const [selected, setSelected] = p(-1); - const [pendingLog, setPendingLog] = p(void 0); - const [logs, setLogs] = p({ log_dir: "", files: [] }); - const [logHeaders, setLogHeaders] = p({}); - const [offcanvas, setOffcanvas] = p(false); - const [currentLog, setCurrentLog] = p({ + const [selected, setSelected] = h(-1); + const [pendingLog, setPendingLog] = h(void 0); + const [logs, setLogs] = h({ log_dir: "", files: [] }); + const [logHeaders, setLogHeaders] = h({}); + const [offcanvas, setOffcanvas] = h(false); + const [currentLog, setCurrentLog] = h({ contents: void 0, name: void 0, raw: void 0 }); - const [status, setStatus] = p({ + const [status, setStatus] = h({ loading: true, error: void 0 }); - const [headersLoading, setHeadersLoading] = p(false); - const [capabilities, setCapabilities] = p({ + const [headersLoading, setHeadersLoading] = h(false); + const [capabilities, setCapabilities] = h({ downloadFiles: true, webWorkers: true }); - const [showFind, setShowFind] = p(false); - const mainAppRef = F(); - _(async () => { + const [showFind, setShowFind] = h(false); + const mainAppRef = A(); + y(async () => { setHeadersLoading(true); const chunkSize = 12; const fileLists = []; @@ -18564,7 +18571,7 @@ function App({ api: api2, pollForLogs = true }) { } setHeadersLoading(false); }, [logs, setStatus, setLogHeaders, setHeadersLoading]); - const filteredLogs = q(() => { + const filteredLogs = T(() => { const notRunning = Object.keys(logHeaders).filter((key2) => { return logHeaders[key2].status !== "started"; }); @@ -18576,7 +18583,7 @@ function App({ api: api2, pollForLogs = true }) { files }; }, [logHeaders, logs]); - _(async () => { + y(async () => { const targetLog = filteredLogs.files[selected]; if (targetLog && (!currentLog || currentLog.name !== targetLog.name)) { try { @@ -18608,7 +18615,7 @@ function App({ api: api2, pollForLogs = true }) { setCurrentLog, setStatus ]); - const loadLogsImpl = x(async () => { + const loadLogsImpl = q(async () => { try { const result = await api2.eval_logs(); if (result) { @@ -18621,13 +18628,13 @@ function App({ api: api2, pollForLogs = true }) { setStatus({ loading: false, error: e2 }); } }, []); - const loadLogs = x( + const loadLogs = q( throttle(() => { loadLogsImpl(); }, 5e3), [loadLogsImpl] ); - _(async () => { + y(async () => { if (pendingLog) { const index = filteredLogs.files.findIndex((val) => { return pendingLog.endsWith(val.name); @@ -18644,7 +18651,7 @@ function App({ api: api2, pollForLogs = true }) { } } }, [pendingLog, filteredLogs, setSelected, setPendingLog, loadLogs]); - const onMessage = q(() => { + const onMessage = T(() => { return async (e2) => { const type = e2.data.type || e2.data.message; switch (type) { @@ -18657,13 +18664,13 @@ function App({ api: api2, pollForLogs = true }) { } }; }, [setPendingLog]); - _(() => { + y(() => { window.addEventListener("message", onMessage); return () => { window.removeEventListener("message", onMessage); }; }, [onMessage]); - _(async () => { + y(async () => { const urlParams = new URLSearchParams(window.location.search); const bodyEl = document.querySelector("body"); const isVSCode = !!bodyEl.getAttributeNames().find((attr) => { @@ -18739,7 +18746,7 @@ function App({ api: api2, pollForLogs = true }) { }} /> ` : ""; - const workspace = q(() => { + const workspace = T(() => { if (status.error) { return m$1`<${ErrorPanel} title="An error occurred while loading this task." @@ -18760,7 +18767,7 @@ function App({ api: api2, pollForLogs = true }) { }, [logs, currentLog, selected, fullScreen, offcanvas, status]); const fullScreenClz = fullScreen ? " full-screen" : ""; const offcanvasClz = offcanvas ? " off-canvas" : ""; - const hideFind = x(() => { + const hideFind = q(() => { clearDocumentSelection(); if (showFind) { setShowFind(false); diff --git a/src/inspect_ai/_view/www/yarn.lock b/src/inspect_ai/_view/www/yarn.lock index 72c9c2a32..88c8aa8d9 100644 --- a/src/inspect_ai/_view/www/yarn.lock +++ b/src/inspect_ai/_view/www/yarn.lock @@ -835,10 +835,10 @@ postcss@^8.4.38: picocolors "^1.0.0" source-map-js "^1.2.0" -preact@^10.22.0: - version "10.22.0" - resolved "https://registry.yarnpkg.com/preact/-/preact-10.22.0.tgz#a50f38006ae438d255e2631cbdaf7488e6dd4e16" - integrity sha512-RRurnSjJPj4rp5K6XoP45Ui33ncb7e4H7WiOHVpjbkvqvA3U+N8Z6Qbo0AE6leGYBV66n8EhEaFixvIu3SkxFw== +preact@^10.22.1: + version "10.23.1" + resolved "https://registry.yarnpkg.com/preact/-/preact-10.23.1.tgz#d400107289bc979881c5212cb5f5cd22cd1dc38c" + integrity sha512-O5UdRsNh4vdZaTieWe3XOgSpdMAmkIYBCT3VhQDlKrzyCm8lUYsk0fmVEvoQQifoOjFRTaHZO69ylrzTW2BH+A== prelude-ls@^1.2.1: version "1.2.1"