summaryrefslogtreecommitdiff
path: root/out/_next/static/chunks/pages
diff options
context:
space:
mode:
Diffstat (limited to 'out/_next/static/chunks/pages')
-rw-r--r--out/_next/static/chunks/pages/_app-3e86b1cac997ecd07336.js (renamed from out/_next/static/chunks/pages/_app-6ba3a11e93bdf6a85175.js)662
-rw-r--r--out/_next/static/chunks/pages/_error-f5e67a79c709c2df06b8.js (renamed from out/_next/static/chunks/pages/_error-a0e21b9b223f827fe1f2.js)144
-rw-r--r--out/_next/static/chunks/pages/index-2b9ae36e1ad717aff37d.js (renamed from out/_next/static/chunks/pages/index-958f6f947d7cdc797980.js)1622
3 files changed, 1438 insertions, 990 deletions
diff --git a/out/_next/static/chunks/pages/_app-6ba3a11e93bdf6a85175.js b/out/_next/static/chunks/pages/_app-3e86b1cac997ecd07336.js
index a3444a1..12e97d4 100644
--- a/out/_next/static/chunks/pages/_app-6ba3a11e93bdf6a85175.js
+++ b/out/_next/static/chunks/pages/_app-3e86b1cac997ecd07336.js
@@ -1,20 +1,18 @@
;(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([
[888],
{
- 6156: function (r, e, t) {
+ 22122: function (r, e, t) {
'use strict'
- function n(r, e, t) {
- return (
- e in r
- ? Object.defineProperty(r, e, {
- value: t,
- enumerable: !0,
- configurable: !0,
- writable: !0,
- })
- : (r[e] = t),
- r
- )
+ function n() {
+ return (n =
+ Object.assign ||
+ function (r) {
+ for (var e = 1; e < arguments.length; e++) {
+ var t = arguments[e]
+ for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (r[n] = t[n])
+ }
+ return r
+ }).apply(this, arguments)
}
t.d(e, {
Z: function () {
@@ -22,7 +20,7 @@
},
})
},
- 4738: function (r, e, t) {
+ 24738: function (r, e, t) {
'use strict'
t.d(e, {
SG: function () {
@@ -32,10 +30,10 @@
return y
},
})
- var n = t(3808),
- o = t(4461),
- a = t(658),
- i = t(7294),
+ var n = t(73808),
+ o = t(84461),
+ a = t(80658),
+ i = t(67294),
s = 'chakra-ui-light',
l = 'chakra-ui-dark',
c = { classList: { add: a.ZT, remove: a.ZT } }
@@ -155,7 +153,7 @@
n.Ts
n.Ts
},
- 4577: function (r, e, t) {
+ 94577: function (r, e, t) {
'use strict'
t.d(e, {
vc: function () {
@@ -168,7 +166,7 @@
return l
},
})
- var n = t(7294),
+ var n = t(67294),
o = { prefix: Math.round(1e10 * Math.random()), current: 0 },
a = n.createContext(o),
i = n.memo((r) => {
@@ -189,7 +187,7 @@
return n.useMemo(() => t.map((r) => r + '-' + a), [a, t])
}
},
- 4288: function (r, e, t) {
+ 34288: function (r, e, t) {
'use strict'
t.d(e, {
L: function () {
@@ -199,9 +197,9 @@
return l
},
})
- var n = t(3808),
- o = t(8500),
- a = t(7294),
+ var n = t(73808),
+ o = t(28500),
+ a = t(67294),
[i, s] = (0, o.k)({ strict: !1, name: 'PortalManagerContext' })
function l(r) {
var { children: e, zIndex: t } = r
@@ -209,14 +207,14 @@
}
n.Ts && (l.displayName = 'PortalManager')
},
- 8500: function (r, e, t) {
+ 28500: function (r, e, t) {
'use strict'
t.d(e, {
k: function () {
return o
},
})
- var n = t(7294)
+ var n = t(67294)
function o(r) {
void 0 === r && (r = {})
var {
@@ -247,7 +245,7 @@
)
}
},
- 3205: function (r, e, t) {
+ 13205: function (r, e, t) {
'use strict'
t.d(e, {
Oq: function () {
@@ -293,19 +291,19 @@
return q
},
QX: function () {
- return X
+ return G
},
vs: function () {
return Y
},
eR: function () {
- return G
+ return X
},
cp: function () {
return U
},
})
- var n = t(3808)
+ var n = t(73808)
function o(r) {
var { scale: e, transform: t, compose: o } = r
return (r, a) => {
@@ -943,7 +941,7 @@
listStyleImage: !0,
listStyleImg: R.prop('listStyleImage'),
},
- J = t(5505),
+ J = t(4651),
N = {
border: '0px',
clip: 'rect(0, 0, 0, 0)',
@@ -1057,7 +1055,7 @@
pe: q.paddingInlineEnd,
paddingEnd: q.paddingInlineEnd,
})
- var X = {
+ var G = {
textDecorationColor: R.colors('textDecorationColor'),
textDecoration: !0,
textDecor: { property: 'textDecoration' },
@@ -1080,7 +1078,7 @@
scale: R.prop(['--chakra-scale-x', '--chakra-scale-y']),
rotate: R.degreeT('--chakra-rotate'),
},
- G = {
+ X = {
transition: !0,
transitionDelay: !0,
animation: !0,
@@ -1120,14 +1118,14 @@
},
}
},
- 5608: function (r, e, t) {
+ 55608: function (r, e, t) {
'use strict'
t.d(e, {
c0: function () {
return C
},
})
- var n = t(3808)
+ var n = t(73808)
function o(r) {
return (0, n.Kn)(r) && r.reference ? r.reference : String(r)
}
@@ -1190,7 +1188,7 @@
}),
{ add: i, subtract: s, multiply: l, divide: c, negate: u },
),
- f = t(8456)
+ f = t(88456)
function p(r) {
var e = (function (r, e) {
return void 0 === e && (e = '-'), r.replace(/\s+/g, e)
@@ -1278,7 +1276,7 @@
return { cssVars: { [a]: e }, cssMap: { [n]: { value: e, var: a, varRef: i } } }
},
},
- x = t(5505)
+ x = t(4651)
var w = [
'colors',
'borders',
@@ -1352,19 +1350,19 @@
)
}
},
- 3565: function (r, e, t) {
+ 33565: function (r, e, t) {
'use strict'
t.d(e, {
i: function () {
return f
},
})
- var n = t(3808),
- o = t(658),
- a = t(8554),
+ var n = t(73808),
+ o = t(80658),
+ a = t(38554),
i = t.n(a),
- s = t(8680),
- l = t(5503),
+ s = t(28680),
+ l = t(25503),
c = (r, e) => r.startsWith('--') && (0, n.HD)(e) && !(0, n.FS)(e),
u = (r, e) => {
var t, n
@@ -1446,7 +1444,7 @@
9421: function (r, e, t) {
'use strict'
t.d(e, {
- iv: function () {
+ css: function () {
return n.i
},
isStyleProp: function () {
@@ -1462,9 +1460,9 @@
return s.c0
},
})
- t(3205)
- var n = t(3565),
- o = t(1664)
+ t(13205)
+ var n = t(33565),
+ o = t(41664)
t.o(o, 'isStyleProp') &&
t.d(e, {
isStyleProp: function () {
@@ -1495,7 +1493,7 @@
return o.useTheme
},
})
- var a = t(7759)
+ var a = t(87759)
t.o(a, 'isStyleProp') &&
t.d(e, {
isStyleProp: function () {
@@ -1526,10 +1524,10 @@
return a.useTheme
},
})
- var i = t(5503),
- s = t(5608)
+ var i = t(25503),
+ s = t(55608)
},
- 8680: function (r, e, t) {
+ 28680: function (r, e, t) {
'use strict'
t.d(e, {
v: function () {
@@ -1539,7 +1537,7 @@
return f
},
})
- var n = t(5505),
+ var n = t(4651),
o = (r) => r + ':focus &, ' + r + '[data-focus] &',
a = (r) => r + ':active &, ' + r + '[data-active] &',
i = (r) => r + ':disabled &, ' + r + '[data-disabled] &',
@@ -1599,7 +1597,7 @@
},
f = (0, n.Yd)(d)
},
- 5503: function (r, e, t) {
+ 25503: function (r, e, t) {
'use strict'
t.d(e, {
Ul: function () {
@@ -1615,11 +1613,11 @@
return h
},
})
- var n = t(8554),
+ var n = t(38554),
o = t.n(n),
- a = t(5505),
- i = t(3205),
- s = t(8680)
+ a = t(4651),
+ i = t(13205),
+ s = t(28680)
function l() {
return (l =
Object.assign ||
@@ -1658,9 +1656,9 @@
p = l({}, c, s.v),
h = (r) => r in p
},
- 1664: function () {},
- 7759: function () {},
- 9676: function (r, e, t) {
+ 41664: function () {},
+ 87759: function () {},
+ 29676: function (r, e, t) {
'use strict'
t.d(e, {
f6: function () {
@@ -1679,21 +1677,21 @@
return b
},
})
- var n = t(4738),
+ var n = t(24738),
o = t(9421),
- a = t(5505),
- i = t(658),
- s = t(8500),
- l = t(2544),
- c = t(917),
- u = t(7294),
+ a = t(4651),
+ i = t(80658),
+ s = t(28500),
+ l = t(30495),
+ c = t(70917),
+ u = t(67294),
d = (r) => {
var { cssVarsRoot: e = ':host, :root', theme: t, children: n } = r,
a = u.useMemo(() => (0, o.toCSSVar)(t), [t])
return u.createElement(
l.a,
{ theme: a },
- u.createElement(c.xB, { styles: (r) => ({ [e]: r.__cssVars }) }),
+ u.createElement(c.Global, { styles: (r) => ({ [e]: r.__cssVars }) }),
n,
)
}
@@ -1712,16 +1710,16 @@
}),
b = () => {
var { colorMode: r } = (0, n.If)()
- return u.createElement(c.xB, {
+ return u.createElement(c.Global, {
styles: (e) => {
var t = (0, a.Wf)(e, 'styles.global'),
n = (0, i.Pu)(t, { theme: e, colorMode: r })
- if (n) return (0, o.iv)(n)(e)
+ if (n) return (0, o.css)(n)(e)
},
})
}
},
- 3108: function (r, e, t) {
+ 63108: function (r, e, t) {
'use strict'
function n(r, e) {
return (t) => ('dark' === t.colorMode ? e : r)
@@ -1739,7 +1737,7 @@
},
})
},
- 3035: function (r, e, t) {
+ 83035: function (r, e, t) {
'use strict'
t.d(e, {
Z: function () {
@@ -1768,10 +1766,10 @@
icon: { fontSize: '1.25em' },
},
},
- o = t(7621),
+ o = t(17621),
a = t.n(o),
- i = t(5505),
- s = t(3808),
+ i = t(4651),
+ s = t(73808),
l = (r, e, t) => {
var n = (0, i.Wf)(r, 'colors.' + e, e)
return a()(n).isValid() ? n : t
@@ -1828,7 +1826,7 @@
})(r.colors)
: e
}
- var p = t(3108)
+ var p = t(63108)
function h(r) {
var { theme: e, colorScheme: t } = r,
n = l(e, t + '.100', t),
@@ -1887,7 +1885,7 @@
},
defaultProps: { variant: 'subtle', colorScheme: 'blue' },
},
- g = t(4681)
+ g = t(54681)
function m(r) {
return {
transform: 'translate(25%, 25%)',
@@ -2254,11 +2252,11 @@
return r
}).apply(this, arguments)
}
- function X(r) {
+ function G(r) {
return 'full' === r ? { dialog: { maxW: '100vw', h: '100vh' } } : { dialog: { maxW: r } }
}
var Y = { bg: 'blackAlpha.600', zIndex: 'overlay' },
- G = { display: 'flex', zIndex: 'modal', justifyContent: 'center' }
+ X = { display: 'flex', zIndex: 'modal', justifyContent: 'center' }
function U(r) {
var { isFullHeight: e } = r
return q({}, e && { height: '100vh' }, {
@@ -2277,7 +2275,7 @@
parts: V.parts,
baseStyle: (r) => ({
overlay: Y,
- dialogContainer: G,
+ dialogContainer: X,
dialog: U(r),
header: K,
closeButton: Q,
@@ -2285,12 +2283,12 @@
footer: er,
}),
sizes: {
- xs: X('xs'),
- sm: X('md'),
- md: X('lg'),
- lg: X('2xl'),
- xl: X('4xl'),
- full: X('full'),
+ xs: G('xs'),
+ sm: G('md'),
+ md: G('lg'),
+ lg: G('2xl'),
+ xl: G('4xl'),
+ full: G('full'),
},
defaultProps: { size: 'xs' },
},
@@ -2543,7 +2541,7 @@
divider: xr,
}),
},
- kr = t(5268)
+ kr = t(35268)
function _r() {
return (_r =
Object.assign ||
@@ -2720,7 +2718,7 @@
}),
})
}
- var Xr = {
+ var Gr = {
parts: ['container', 'control', 'label'],
baseStyle: (r) => ({ label: j.baseStyle(r).label, control: qr(r) }),
sizes: {
@@ -2730,9 +2728,9 @@
},
defaultProps: { size: 'md', colorScheme: 'blue' },
},
- Yr = t(8554)
- function Gr() {
- return (Gr =
+ Yr = t(38554)
+ function Xr() {
+ return (Xr =
Object.assign ||
function (r) {
for (var e = 1; e < arguments.length; e++) {
@@ -2743,7 +2741,7 @@
}).apply(this, arguments)
}
function Ur(r) {
- return Gr({}, dr.baseStyle.field, {
+ return Xr({}, dr.baseStyle.field, {
appearance: 'none',
paddingBottom: '1px',
lineHeight: 'normal',
@@ -2766,9 +2764,9 @@
variants: dr.variants,
defaultProps: dr.defaultProps,
},
- re = t(917),
+ re = t(70917),
ee = (r, e) =>
- (0, re.F4)({
+ (0, re.keyframes)({
from: { borderColor: r, background: r },
to: { borderColor: e, background: e },
}),
@@ -3307,7 +3305,7 @@
PinInput: Fr,
Popover: Jr,
Progress: Zr,
- Radio: Xr,
+ Radio: Gr,
Select: Qr,
Skeleton: te,
SkipLink: ne,
@@ -3345,7 +3343,7 @@
FormError: { parts: ['text', 'icon'], baseStyle: (r) => ({ text: ze(r), icon: Re(r) }) },
}
},
- 2009: function (r, e, t) {
+ 42009: function (r, e, t) {
'use strict'
t.d(e, {
Z: function () {
@@ -3359,7 +3357,7 @@
'4px': '4px solid',
'8px': '8px solid',
},
- o = t(658)
+ o = t(80658)
function a() {
return (a =
Object.assign ||
@@ -3629,8 +3627,8 @@
'dark-lg':
'rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px',
},
- d = t(4681),
- f = t(4514),
+ d = t(54681),
+ f = t(54514),
p = {
property: {
common:
@@ -3697,11 +3695,11 @@
},
colors: l,
},
- t(5268).Z,
+ t(35268).Z,
{ sizes: d.Z, shadows: u, space: f.W, borders: n, transition: p },
)
},
- 4681: function (r, e, t) {
+ 54681: function (r, e, t) {
'use strict'
function n() {
return (n =
@@ -3716,7 +3714,7 @@
}
var o = n(
{},
- t(4514).W,
+ t(54514).W,
{
max: 'max-content',
min: 'min-content',
@@ -3740,7 +3738,7 @@
)
e.Z = o
},
- 4514: function (r, e, t) {
+ 54514: function (r, e, t) {
'use strict'
t.d(e, {
W: function () {
@@ -3783,7 +3781,7 @@
96: '24rem',
}
},
- 5268: function (r, e) {
+ 35268: function (r, e) {
'use strict'
e.Z = {
letterSpacings: {
@@ -3845,12 +3843,12 @@
},
}
},
- 4806: function (r, e, t) {
+ 84806: function (r, e, t) {
'use strict'
- var n = t(3035),
- o = t(2009),
- a = t(1926),
- i = t(3025)
+ var n = t(83035),
+ o = t(42009),
+ a = t(41926),
+ i = t(93025)
function s() {
return (s =
Object.assign ||
@@ -3875,9 +3873,9 @@
})
e.Z = l
},
- 1926: function (r, e, t) {
+ 41926: function (r, e, t) {
'use strict'
- var n = t(3108),
+ var n = t(63108),
o = {
global: (r) => ({
body: {
@@ -3897,8 +3895,8 @@
}
e.Z = o
},
- 3025: function () {},
- 7277: function (r, e, t) {
+ 93025: function () {},
+ 27277: function (r, e, t) {
'use strict'
function n(r) {
var e = null == r ? 0 : r.length
@@ -3936,7 +3934,7 @@
},
})
},
- 3808: function (r, e, t) {
+ 73808: function (r, e, t) {
'use strict'
function n(r) {
return 'number' === typeof r
@@ -4004,7 +4002,7 @@
var f = !1,
p = !1
},
- 8456: function (r, e, t) {
+ 88456: function (r, e, t) {
'use strict'
t.d(e, {
px: function () {
@@ -4014,9 +4012,9 @@
return d
},
})
- var n = t(7277),
- o = t(3808),
- a = t(5505)
+ var n = t(27277),
+ o = t(73808),
+ a = t(4651)
function i(r) {
if (null == r) return r
var { unitless: e } = (function (r) {
@@ -4110,7 +4108,7 @@
}
}
},
- 4461: function (r, e, t) {
+ 84461: function (r, e, t) {
'use strict'
function n(r) {
var e
@@ -4182,7 +4180,7 @@
return 0 !== r.button
}
},
- 658: function (r, e, t) {
+ 80658: function (r, e, t) {
'use strict'
t.d(e, {
Pu: function () {
@@ -4207,7 +4205,7 @@
return p
},
})
- var n = t(3808)
+ var n = t(73808)
function o(r) {
for (var e = arguments.length, t = new Array(e > 1 ? e - 1 : 0), o = 1; o < e; o++)
t[o - 1] = arguments[o]
@@ -4262,7 +4260,7 @@
return 0
}
},
- 5505: function (r, e, t) {
+ 4651: function (r, e, t) {
'use strict'
t.d(e, {
CE: function () {
@@ -4293,7 +4291,7 @@
return d
},
})
- t(8554)
+ t(38554)
function n(r, e) {
var t = {}
return (
@@ -4359,14 +4357,14 @@
return null != (n = null == (o = r.__cssMap[e + '.' + t]) ? void 0 : o.varRef) ? n : t
}
},
- 9152: function (r, e, t) {
+ 28204: function (r, e, t) {
'use strict'
t.d(e, {
Z: function () {
return er
},
})
- var n = t(1526),
+ var n = t(11526),
o = Math.abs,
a = String.fromCharCode
function i(r) {
@@ -4713,7 +4711,7 @@
switch (_()) {
case 42:
case 47:
- p(X(F(k(), C()), e, t), u)
+ p(G(F(k(), C()), e, t), u)
break
default:
I += '/'
@@ -4789,13 +4787,13 @@
(C = i(w > 0 ? m[k] + ' ' + _ : s(_, /&\f/g, m[k]))) && (p[S++] = C)
return x(r, e, t, 0 === a ? J : d, p, h, b)
}
- function X(r, e, t) {
+ function G(r, e, t) {
return x(r, e, t, W, a(v), u(r, 2, -2), 0)
}
function Y(r, e, t, n) {
return x(r, e, t, N, u(r, 0, n), u(r, n + 1, -1), n)
}
- var G = function (r, e) {
+ var X = function (r, e) {
return R(
(function (r, e) {
var t = -1,
@@ -4832,7 +4830,7 @@
if (!(t = t.parent)) return
if ((1 !== r.props.length || 58 === e.charCodeAt(0) || U.get(t)) && !n) {
U.set(r, !0)
- for (var o = [], a = G(e, o), i = t.props, s = 0, l = 0; s < a.length; s++)
+ for (var o = [], a = X(e, o), i = t.props, s = 0, l = 0; s < a.length; s++)
for (var c = 0; c < i.length; c++, l++)
r.props[l] = o[s] ? a[s].replace(/&\f/g, i[c]) : i[c] + ' ' + a[s]
}
@@ -4944,7 +4942,7 @@
return h.sheet.hydrate(l), h
}
},
- 7866: function (r, e) {
+ 67866: function (r, e) {
'use strict'
e.Z = function (r) {
var e = Object.create(null)
@@ -4953,33 +4951,41 @@
}
}
},
- 2544: function (r, e, t) {
+ 30495: function (r, e, t) {
'use strict'
t.d(e, {
+ C: function () {
+ return h
+ },
+ E: function () {
+ return k
+ },
T: function () {
- return c
+ return g
},
a: function () {
- return d
+ return y
+ },
+ b: function () {
+ return x
+ },
+ c: function () {
+ return S
+ },
+ h: function () {
+ return f
+ },
+ u: function () {
+ return m
},
w: function () {
- return l
+ return b
},
})
- var n = t(7294),
- o = t(9152)
- function a() {
- return (a =
- Object.assign ||
- function (r) {
- for (var e = 1; e < arguments.length; e++) {
- var t = arguments[e]
- for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (r[n] = t[n])
- }
- return r
- }).apply(this, arguments)
- }
- var i = function (r) {
+ var n = t(67294),
+ o = t(28204),
+ a = t(22122),
+ i = function (r) {
var e = new WeakMap()
return function (t) {
if (e.has(t)) return e.get(t)
@@ -4987,52 +4993,134 @@
return e.set(t, n), n
}
},
- s =
- (t(4199),
- Object.prototype.hasOwnProperty,
- (0, n.createContext)(
- 'undefined' !== typeof HTMLElement ? (0, o.Z)({ key: 'css' }) : null,
- )),
- l =
- (s.Provider,
- function (r) {
- return (0, n.forwardRef)(function (e, t) {
- var o = (0, n.useContext)(s)
- return r(e, o, t)
- })
- }),
- c = (0, n.createContext)({}),
- u = i(function (r) {
+ s = t(8679),
+ l = t.n(s),
+ c = function (r, e) {
+ return l()(r, e)
+ },
+ u = t(70444),
+ d = t(94199),
+ f = Object.prototype.hasOwnProperty,
+ p = (0, n.createContext)(
+ 'undefined' !== typeof HTMLElement ? (0, o.Z)({ key: 'css' }) : null,
+ ),
+ h = p.Provider,
+ b = function (r) {
+ return (0, n.forwardRef)(function (e, t) {
+ var o = (0, n.useContext)(p)
+ return r(e, o, t)
+ })
+ },
+ g = (0, n.createContext)({}),
+ m = function () {
+ return (0, n.useContext)(g)
+ },
+ v = i(function (r) {
return i(function (e) {
return (function (r, e) {
- return 'function' === typeof e ? e(r) : a({}, r, e)
+ return 'function' === typeof e ? e(r) : (0, a.Z)({}, r, e)
})(r, e)
})
}),
- d = function (r) {
- var e = (0, n.useContext)(c)
+ y = function (r) {
+ var e = (0, n.useContext)(g)
return (
- r.theme !== e && (e = u(e)(r.theme)),
- (0, n.createElement)(c.Provider, { value: e }, r.children)
+ r.theme !== e && (e = v(e)(r.theme)),
+ (0, n.createElement)(g.Provider, { value: e }, r.children)
)
}
+ function x(r) {
+ var e = r.displayName || r.name || 'Component',
+ t = function (e, t) {
+ var o = (0, n.useContext)(g)
+ return (0, n.createElement)(r, (0, a.Z)({ theme: o, ref: t }, e))
+ },
+ o = (0, n.forwardRef)(t)
+ return (o.displayName = 'WithTheme(' + e + ')'), c(o, r)
+ }
+ var w = '__EMOTION_TYPE_PLEASE_DO_NOT_USE__',
+ S = function (r, e) {
+ var t = {}
+ for (var n in e) f.call(e, n) && (t[n] = e[n])
+ return (t[w] = r), t
+ },
+ k = b(function (r, e, t) {
+ var o = r.css
+ 'string' === typeof o && void 0 !== e.registered[o] && (o = e.registered[o])
+ var a = r[w],
+ i = [o],
+ s = ''
+ 'string' === typeof r.className
+ ? (s = (0, u.f)(e.registered, i, r.className))
+ : null != r.className && (s = r.className + ' ')
+ var l = (0, d.O)(
+ i,
+ void 0,
+ 'function' === typeof o || Array.isArray(o) ? (0, n.useContext)(g) : void 0,
+ )
+ ;(0, u.M)(e, l, 'string' === typeof a)
+ s += e.key + '-' + l.name
+ var c = {}
+ for (var p in r) f.call(r, p) && 'css' !== p && p !== w && (c[p] = r[p])
+ return (c.ref = t), (c.className = s), (0, n.createElement)(a, c)
+ })
},
- 917: function (r, e, t) {
+ 70917: function (r, e, t) {
'use strict'
- t.d(e, {
- xB: function () {
- return l
- },
- F4: function () {
- return u
- },
- })
- var n = t(7294),
- o = (t(9152), t(2544)),
- a = (t(8679), t(444)),
- i = t(4199),
- s = t(1526),
- l = (0, o.w)(function (r, e) {
+ t.r(e),
+ t.d(e, {
+ CacheProvider: function () {
+ return o.C
+ },
+ ThemeContext: function () {
+ return o.T
+ },
+ ThemeProvider: function () {
+ return o.a
+ },
+ useTheme: function () {
+ return o.u
+ },
+ withEmotionCache: function () {
+ return o.w
+ },
+ withTheme: function () {
+ return o.b
+ },
+ ClassNames: function () {
+ return h
+ },
+ Global: function () {
+ return c
+ },
+ createElement: function () {
+ return l
+ },
+ css: function () {
+ return u
+ },
+ jsx: function () {
+ return l
+ },
+ keyframes: function () {
+ return d
+ },
+ })
+ var n = t(67294),
+ o = (t(28204), t(30495)),
+ a = (t(8679), t(70444)),
+ i = t(94199),
+ s = t(11526),
+ l = function (r, e) {
+ var t = arguments
+ if (null == e || !o.h.call(e, 'css')) return n.createElement.apply(void 0, t)
+ var a = t.length,
+ i = new Array(a)
+ ;(i[0] = o.E), (i[1] = (0, o.c)(r, e))
+ for (var s = 2; s < a; s++) i[s] = t[s]
+ return n.createElement.apply(null, i)
+ },
+ c = (0, o.w)(function (r, e) {
var t = r.styles,
l = (0, i.O)(
[t],
@@ -5081,24 +5169,67 @@
null
)
})
- function c() {
+ function u() {
for (var r = arguments.length, e = new Array(r), t = 0; t < r; t++) e[t] = arguments[t]
return (0, i.O)(e)
}
- var u = function () {
- var r = c.apply(void 0, arguments),
- e = 'animation-' + r.name
- return {
- name: e,
- styles: '@keyframes ' + e + '{' + r.styles + '}',
- anim: 1,
- toString: function () {
- return '_EMO_' + this.name + '_' + this.styles + '_EMO_'
- },
+ var d = function () {
+ var r = u.apply(void 0, arguments),
+ e = 'animation-' + r.name
+ return {
+ name: e,
+ styles: '@keyframes ' + e + '{' + r.styles + '}',
+ anim: 1,
+ toString: function () {
+ return '_EMO_' + this.name + '_' + this.styles + '_EMO_'
+ },
+ }
+ },
+ f = function r(e) {
+ for (var t = e.length, n = 0, o = ''; n < t; n++) {
+ var a = e[n]
+ if (null != a) {
+ var i = void 0
+ switch (typeof a) {
+ case 'boolean':
+ break
+ case 'object':
+ if (Array.isArray(a)) i = r(a)
+ else for (var s in ((i = ''), a)) a[s] && s && (i && (i += ' '), (i += s))
+ break
+ default:
+ i = a
+ }
+ i && (o && (o += ' '), (o += i))
+ }
+ }
+ return o
}
- }
+ function p(r, e, t) {
+ var n = [],
+ o = (0, a.f)(r, n, t)
+ return n.length < 2 ? t : o + e(n)
+ }
+ var h = (0, o.w)(function (r, e) {
+ var t = function () {
+ for (var r = arguments.length, t = new Array(r), n = 0; n < r; n++) t[n] = arguments[n]
+ var o = (0, i.O)(t, e.registered)
+ return (0, a.M)(e, o, !1), e.key + '-' + o.name
+ },
+ s = {
+ css: t,
+ cx: function () {
+ for (var r = arguments.length, n = new Array(r), o = 0; o < r; o++)
+ n[o] = arguments[o]
+ return p(e.registered, t, f(n))
+ },
+ theme: (0, n.useContext)(o.T),
+ },
+ l = r.children(s)
+ return !0, l
+ })
},
- 4199: function (r, e, t) {
+ 94199: function (r, e, t) {
'use strict'
t.d(e, {
O: function () {
@@ -5180,7 +5311,7 @@
strokeOpacity: 1,
strokeWidth: 1,
},
- a = t(7866),
+ a = t(67866),
i = /[A-Z]|^ms/g,
s = /_EMO_([^_]+?)_([^]*?)_EMO_/g,
l = function (r) {
@@ -5277,7 +5408,7 @@
return { name: n(a) + c, styles: a, next: p }
}
},
- 1526: function (r, e, t) {
+ 11526: function (r, e, t) {
'use strict'
t.d(e, {
m: function () {
@@ -5352,7 +5483,7 @@
)
})()
},
- 444: function (r, e, t) {
+ 70444: function (r, e, t) {
'use strict'
t.d(e, {
f: function () {
@@ -5387,7 +5518,7 @@
},
8679: function (r, e, t) {
'use strict'
- var n = t(9864),
+ var n = t(59864),
o = {
childContextTypes: !0,
contextType: !0,
@@ -5457,7 +5588,7 @@
return e
}
},
- 8554: function (r, e, t) {
+ 38554: function (r, e, t) {
r = t.nmd(r)
var n = '__lodash_hash_undefined__',
o = 9007199254740991,
@@ -5566,7 +5697,7 @@
Z = Date.now,
V = pr(p, 'Map'),
q = pr(Object, 'create'),
- X = (function () {
+ G = (function () {
function r() {}
return function (e) {
if (!Cr(e)) return {}
@@ -5584,7 +5715,7 @@
this.set(n[0], n[1])
}
}
- function G(r) {
+ function X(r) {
var e = -1,
t = null == r ? 0 : r.length
for (this.clear(); ++e < t; ) {
@@ -5601,7 +5732,7 @@
}
}
function K(r) {
- var e = (this.__data__ = new G(r))
+ var e = (this.__data__ = new X(r))
this.size = e.size
}
function Q(r, e) {
@@ -5666,30 +5797,30 @@
var t = this.__data__
return (this.size += this.has(r) ? 0 : 1), (t[r] = q && void 0 === e ? n : e), this
}),
- (G.prototype.clear = function () {
+ (X.prototype.clear = function () {
;(this.__data__ = []), (this.size = 0)
}),
- (G.prototype.delete = function (r) {
+ (X.prototype.delete = function (r) {
var e = this.__data__,
t = tr(e, r)
return !(t < 0) && (t == e.length - 1 ? e.pop() : J.call(e, t, 1), --this.size, !0)
}),
- (G.prototype.get = function (r) {
+ (X.prototype.get = function (r) {
var e = this.__data__,
t = tr(e, r)
return t < 0 ? void 0 : e[t][1]
}),
- (G.prototype.has = function (r) {
+ (X.prototype.has = function (r) {
return tr(this.__data__, r) > -1
}),
- (G.prototype.set = function (r, e) {
+ (X.prototype.set = function (r, e) {
var t = this.__data__,
n = tr(t, r)
return n < 0 ? (++this.size, t.push([r, e])) : (t[n][1] = e), this
}),
(U.prototype.clear = function () {
;(this.size = 0),
- (this.__data__ = { hash: new Y(), map: new (V || G)(), string: new Y() })
+ (this.__data__ = { hash: new Y(), map: new (V || X)(), string: new Y() })
}),
(U.prototype.delete = function (r) {
var e = fr(this, r).delete(r)
@@ -5707,7 +5838,7 @@
return t.set(r, e), (this.size += t.size == n ? 0 : 1), this
}),
(K.prototype.clear = function () {
- ;(this.__data__ = new G()), (this.size = 0)
+ ;(this.__data__ = new X()), (this.size = 0)
}),
(K.prototype.delete = function (r) {
var e = this.__data__,
@@ -5722,7 +5853,7 @@
}),
(K.prototype.set = function (r, e) {
var t = this.__data__
- if (t instanceof G) {
+ if (t instanceof X) {
var n = t.__data__
if (!V || n.length < 199) return n.push([r, e]), (this.size = ++t.size), this
t = this.__data__ = new U(n)
@@ -5870,7 +6001,7 @@
})(l))
: (Cr(l) && !kr(l)) ||
(d = (function (r) {
- return 'function' != typeof r.constructor || br(r) ? {} : X(M(r))
+ return 'function' != typeof r.constructor || br(r) ? {} : G(M(r))
})(c)))
: (f = !1)
}
@@ -6054,7 +6185,7 @@
}
r.exports = Br
},
- 9200: function (r, e, t) {
+ 29200: function (r, e, t) {
'use strict'
t.r(e),
t.d(e, {
@@ -6062,10 +6193,10 @@
return F
},
})
- var n = t(6156),
- o = t(5893),
- a = (t(2702), t(4806)),
- i = t(3808),
+ var n = t(26265),
+ o = t(85893),
+ a = (t(82702), t(84806)),
+ i = t(73808),
s = [
'borders',
'breakpoints',
@@ -6089,8 +6220,8 @@
function l(r) {
return !!(0, i.Kn)(r) && s.every((e) => Object.prototype.hasOwnProperty.call(r, e))
}
- var c = t(658),
- u = t(8554),
+ var c = t(80658),
+ u = t(38554),
d = t.n(u)
function f() {
for (var r = arguments.length, e = new Array(r), t = 0; t < r; t++) e[t] = arguments[t]
@@ -6104,17 +6235,17 @@
return d()({}, t, n, p)
}
}
- var h = t(917),
- b = t(7294),
+ var h = t(70917),
+ b = t(67294),
g = () =>
- b.createElement(h.xB, {
+ b.createElement(h.Global, {
styles:
'\n html {\n line-height: 1.5;\n -webkit-text-size-adjust: 100%;\n font-family: system-ui, sans-serif;\n -webkit-font-smoothing: antialiased;\n text-rendering: optimizeLegibility; \n -moz-osx-font-smoothing: grayscale; \n touch-action: manipulation; \n }\n\n body {\n position: relative;\n min-height: 100%;\n font-feature-settings: \'kern\';\n }\n\n *,\n *::before,\n *::after {\n border-width: 0;\n border-style: solid;\n box-sizing: border-box;\n }\n\n main {\n display: block;\n }\n\n hr {\n border-top-width: 1px;\n box-sizing: content-box;\n height: 0;\n overflow: visible;\n }\n\n pre,\n code,\n kbd,\n samp {\n font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;\n font-size: 1em;\n }\n\n a {\n background-color: transparent;\n color: inherit;\n text-decoration: inherit;\n }\n\n abbr[title] {\n border-bottom: none;\n text-decoration: underline;\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n }\n\n b,\n strong {\n font-weight: bold;\n }\n\n small {\n font-size: 80%;\n }\n\n sub,\n sup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n }\n\n sub {\n bottom: -0.25em;\n }\n\n sup {\n top: -0.5em;\n }\n\n img {\n border-style: none;\n }\n\n button,\n input,\n optgroup,\n select,\n textarea {\n font-family: inherit;\n font-size: 100%;\n line-height: 1.15;\n margin: 0;\n }\n\n button,\n input {\n overflow: visible;\n }\n\n button,\n select {\n text-transform: none;\n }\n\n button::-moz-focus-inner,\n [type="button"]::-moz-focus-inner,\n [type="reset"]::-moz-focus-inner,\n [type="submit"]::-moz-focus-inner {\n border-style: none;\n padding: 0;\n }\n\n fieldset {\n padding: 0.35em 0.75em 0.625em;\n }\n\n legend {\n box-sizing: border-box;\n color: inherit;\n display: table;\n max-width: 100%;\n padding: 0;\n white-space: normal;\n }\n\n progress {\n vertical-align: baseline;\n }\n\n textarea {\n overflow: auto;\n }\n\n [type="checkbox"],\n [type="radio"] {\n box-sizing: border-box;\n padding: 0;\n }\n\n [type="number"]::-webkit-inner-spin-button,\n [type="number"]::-webkit-outer-spin-button {\n -webkit-appearance: none !important;\n }\n\n input[type="number"] {\n -moz-appearance: textfield;\n }\n\n [type="search"] {\n -webkit-appearance: textfield;\n outline-offset: -2px;\n }\n\n [type="search"]::-webkit-search-decoration {\n -webkit-appearance: none !important;\n }\n\n ::-webkit-file-upload-button {\n -webkit-appearance: button;\n font: inherit;\n }\n\n details {\n display: block;\n }\n\n summary {\n display: list-item;\n }\n\n template {\n display: none;\n }\n\n [hidden] {\n display: none !important;\n }\n\n body,\n blockquote,\n dl,\n dd,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n hr,\n figure,\n p,\n pre {\n margin: 0;\n }\n\n button {\n background: transparent;\n padding: 0;\n }\n\n fieldset {\n margin: 0;\n padding: 0;\n }\n\n ol,\n ul {\n margin: 0;\n padding: 0;\n }\n\n textarea {\n resize: vertical;\n }\n\n button,\n [role="button"] {\n cursor: pointer;\n }\n\n button::-moz-focus-inner {\n border: 0 !important;\n }\n\n table {\n border-collapse: collapse;\n }\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n font-size: inherit;\n font-weight: inherit;\n }\n\n button,\n input,\n optgroup,\n select,\n textarea {\n padding: 0;\n line-height: inherit;\n color: inherit;\n }\n\n img,\n svg,\n video,\n canvas,\n audio,\n iframe,\n embed,\n object {\n display: block;\n vertical-align: middle;\n }\n\n img,\n video {\n max-width: 100%;\n height: auto;\n }\n\n [data-js-focus-visible] :focus:not([data-focus-visible-added]) {\n outline: none;\n box-shadow: none;\n }\n\n select::-ms-expand {\n display: none;\n }\n ',
}),
- m = t(4288),
- v = t(9676),
- y = t(4738),
- x = t(4461),
+ m = t(34288),
+ v = t(29676),
+ y = t(24738),
+ x = t(84461),
w = {
body: { classList: { add() {}, remove() {} } },
addEventListener() {},
@@ -6182,7 +6313,7 @@
}
i.Ts && (C.displayName = 'EnvironmentContext'),
i.Ts && (A.displayName = 'EnvironmentProvider')
- var E = t(4577),
+ var E = t(94577),
z = (r) => {
var {
children: e,
@@ -6210,8 +6341,8 @@
),
)
},
- R = t(4533),
- B = t(9356)
+ R = t(54533),
+ B = t(29356)
function j(r, e) {
var t = Object.keys(r)
if (Object.getOwnPropertySymbols) {
@@ -6433,14 +6564,14 @@
})
}
},
- 9356: function (r, e, t) {
+ 29356: function (r, e, t) {
'use strict'
t.d(e, {
N: function () {
return n
},
})
- var n = (0, t(7294).createContext)({
+ var n = (0, t(67294).createContext)({
emacsTheme: {
base1: '#1c1f24',
base2: '#21272d',
@@ -6472,7 +6603,7 @@
setHighlightColor: null,
})
},
- 6374: function (r, e, t) {
+ 76374: function (r, e, t) {
'use strict'
function n(r, e, t) {
;(r.prototype = e.prototype = t), (t.constructor = r)
@@ -6892,7 +7023,7 @@
}),
)
},
- 2210: function (r, e) {
+ 62210: function (r, e) {
'use strict'
e.Z = function (r) {
return function () {
@@ -6900,7 +7031,7 @@
}
}
},
- 6033: function (r, e, t) {
+ 16033: function (r, e, t) {
'use strict'
function n(r, e) {
return (
@@ -6917,14 +7048,14 @@
},
})
},
- 3028: function (r, e, t) {
+ 73028: function (r, e, t) {
'use strict'
t.d(e, {
ZP: function () {
return c
},
})
- var n = t(6374)
+ var n = t(76374)
function o(r, e, t, n, o) {
var a = r * r,
i = a * r
@@ -6936,7 +7067,7 @@
6
)
}
- var a = t(2210)
+ var a = t(62210)
function i(r, e) {
return function (t) {
return r + t * e
@@ -7021,14 +7152,14 @@
}
})
},
- 370: function (r, e, t) {
+ 10370: function (r, e, t) {
'use strict'
t.d(e, {
Z: function () {
return i
},
})
- var n = t(6033),
+ var n = t(16033),
o = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,
a = new RegExp(o.source, 'g')
function i(r, e) {
@@ -7069,15 +7200,15 @@
)
}
},
- 4533: function (r, e, t) {
+ 54533: function (r, e, t) {
'use strict'
t.d(e, {
Z: function () {
return f
},
})
- var n = t(6374),
- o = t(3028)
+ var n = t(76374),
+ o = t(73028)
function a(r, e) {
var t,
n = e ? e.length : 0,
@@ -7101,7 +7232,7 @@
}
)
}
- var s = t(6033)
+ var s = t(16033)
function l(r, e) {
var t,
n = {},
@@ -7115,8 +7246,8 @@
return o
}
}
- var c = t(370),
- u = t(2210)
+ var c = t(10370),
+ u = t(62210)
function d(r, e) {
e || (e = [])
var t,
@@ -7154,16 +7285,37 @@
: d))(r, e)
}
},
- 6363: function (r, e, t) {
+ 76363: function (r, e, t) {
;(window.__NEXT_P = window.__NEXT_P || []).push([
'/_app',
function () {
- return t(9200)
+ return t(29200)
},
])
},
- 2702: function () {},
- 9921: function (r, e) {
+ 82702: function () {},
+ 26265: function (r, e, t) {
+ 'use strict'
+ function n(r, e, t) {
+ return (
+ e in r
+ ? Object.defineProperty(r, e, {
+ value: t,
+ enumerable: !0,
+ configurable: !0,
+ writable: !0,
+ })
+ : (r[e] = t),
+ r
+ )
+ }
+ t.d(e, {
+ Z: function () {
+ return n
+ },
+ })
+ },
+ 69921: function (r, e) {
'use strict'
var t = 'function' === typeof Symbol && Symbol.for,
n = t ? Symbol.for('react.element') : 60103,
@@ -7292,11 +7444,11 @@
}),
(e.typeOf = w)
},
- 9864: function (r, e, t) {
+ 59864: function (r, e, t) {
'use strict'
- r.exports = t(9921)
+ r.exports = t(69921)
},
- 7621: function (r, e, t) {
+ 17621: function (r, e, t) {
var n
!(function (o) {
var a = /^\s+/,
@@ -8130,7 +8282,7 @@
return r((r.s = e))
}
r.O(0, [774, 179], function () {
- return e(6363), e(4651)
+ return e(76363), e(34651)
})
var t = r.O()
_N_E = t
diff --git a/out/_next/static/chunks/pages/_error-a0e21b9b223f827fe1f2.js b/out/_next/static/chunks/pages/_error-f5e67a79c709c2df06b8.js
index 2460d3f..3d18290 100644
--- a/out/_next/static/chunks/pages/_error-a0e21b9b223f827fe1f2.js
+++ b/out/_next/static/chunks/pages/_error-f5e67a79c709c2df06b8.js
@@ -1,56 +1,14 @@
;(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([
[820],
{
- 3646: function (e, t, n) {
- var r = n(7228)
- e.exports = function (e) {
- if (Array.isArray(e)) return r(e)
- }
- },
- 9713: function (e) {
- e.exports = function (e, t, n) {
- return (
- t in e
- ? Object.defineProperty(e, t, {
- value: n,
- enumerable: !0,
- configurable: !0,
- writable: !0,
- })
- : (e[t] = n),
- e
- )
- }
- },
- 6860: function (e) {
- e.exports = function (e) {
- if ('undefined' !== typeof Symbol && Symbol.iterator in Object(e)) return Array.from(e)
- }
- },
- 8206: function (e) {
- e.exports = function () {
- throw new TypeError(
- 'Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.',
- )
- }
- },
- 319: function (e, t, n) {
- var r = n(3646),
- a = n(6860),
- o = n(379),
- i = n(8206)
- e.exports = function (e) {
- return r(e) || a(e) || o(e) || i()
- }
- },
- 3398: function (e, t, n) {
+ 23398: function (e, t, n) {
'use strict'
var r
;(t.__esModule = !0), (t.AmpStateContext = void 0)
- var a = ((r = n(7294)) && r.__esModule ? r : { default: r }).default.createContext({})
+ var a = ((r = n(67294)) && r.__esModule ? r : { default: r }).default.createContext({})
t.AmpStateContext = a
},
- 6393: function (e, t, n) {
+ 76393: function (e, t, n) {
'use strict'
;(t.__esModule = !0),
(t.isInAmpMode = i),
@@ -58,8 +16,8 @@
return i(a.default.useContext(o.AmpStateContext))
})
var r,
- a = (r = n(7294)) && r.__esModule ? r : { default: r },
- o = n(3398)
+ a = (r = n(67294)) && r.__esModule ? r : { default: r },
+ o = n(23398)
function i() {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
t = e.ampFirst,
@@ -71,9 +29,9 @@
return n || (a && i)
}
},
- 2775: function (e, t, n) {
+ 92775: function (e, t, n) {
'use strict'
- var r = n(9713)
+ var r = n(61682)
function a(e, t) {
var n = Object.keys(e)
if (Object.getOwnPropertySymbols) {
@@ -103,11 +61,11 @@
}
;(n.default = e), t && t.set(e, n)
return n
- })(n(7294)),
- u = (o = n(3244)) && o.__esModule ? o : { default: o },
- c = n(3398),
- s = n(1165),
- l = n(6393)
+ })(n(67294)),
+ u = (o = n(73244)) && o.__esModule ? o : { default: o },
+ c = n(23398),
+ s = n(41165),
+ l = n(76393)
function f() {
if ('function' !== typeof WeakMap) return null
var e = new WeakMap()
@@ -233,14 +191,14 @@
}
t.default = m
},
- 3244: function (e, t, n) {
+ 73244: function (e, t, n) {
'use strict'
- var r = n(319),
- a = n(4575),
- o = n(3913),
- i = (n(1506), n(2205)),
- u = n(8585),
- c = n(9754)
+ var r = n(83115),
+ a = n(2553),
+ o = n(62012),
+ i = (n(50450), n(9807)),
+ u = n(27690),
+ c = n(99828)
function s(e) {
var t = (function () {
if ('undefined' === typeof Reflect || !Reflect.construct) return !1
@@ -263,7 +221,7 @@
}
}
;(t.__esModule = !0), (t.default = void 0)
- var l = n(7294),
+ var l = n(67294),
f = (function (e) {
i(n, e)
var t = s(n)
@@ -321,11 +279,11 @@
},
3359: function (e, t, n) {
'use strict'
- var r = n(4575),
- a = n(3913),
- o = n(2205),
- i = n(8585),
- u = n(9754)
+ var r = n(2553),
+ a = n(62012),
+ o = n(9807),
+ i = n(27690),
+ u = n(99828)
function c(e) {
var t = (function () {
if ('undefined' === typeof Reflect || !Reflect.construct) return !1
@@ -347,10 +305,10 @@
return i(this, n)
}
}
- var s = n(5318)
+ var s = n(62426)
;(t.__esModule = !0), (t.default = void 0)
- var l = s(n(7294)),
- f = s(n(2775)),
+ var l = s(n(67294)),
+ f = s(n(92775)),
d = {
400: 'Bad Request',
404: 'This page could not be found',
@@ -471,7 +429,7 @@
},
}
},
- 4977: function (e, t, n) {
+ 14977: function (e, t, n) {
;(window.__NEXT_P = window.__NEXT_P || []).push([
'/_error',
function () {
@@ -479,10 +437,52 @@
},
])
},
+ 38164: function (e, t, n) {
+ var r = n(54360)
+ e.exports = function (e) {
+ if (Array.isArray(e)) return r(e)
+ }
+ },
+ 61682: function (e) {
+ e.exports = function (e, t, n) {
+ return (
+ t in e
+ ? Object.defineProperty(e, t, {
+ value: n,
+ enumerable: !0,
+ configurable: !0,
+ writable: !0,
+ })
+ : (e[t] = n),
+ e
+ )
+ }
+ },
+ 27381: function (e) {
+ e.exports = function (e) {
+ if ('undefined' !== typeof Symbol && Symbol.iterator in Object(e)) return Array.from(e)
+ }
+ },
+ 95725: function (e) {
+ e.exports = function () {
+ throw new TypeError(
+ 'Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.',
+ )
+ }
+ },
+ 83115: function (e, t, n) {
+ var r = n(38164),
+ a = n(27381),
+ o = n(73585),
+ i = n(95725)
+ e.exports = function (e) {
+ return r(e) || a(e) || o(e) || i()
+ }
+ },
},
function (e) {
e.O(0, [774, 888, 179], function () {
- return (t = 4977), e((e.s = t))
+ return (t = 14977), e((e.s = t))
var t
})
var t = e.O()
diff --git a/out/_next/static/chunks/pages/index-958f6f947d7cdc797980.js b/out/_next/static/chunks/pages/index-2b9ae36e1ad717aff37d.js
index 8def0bf..2f612cd 100644
--- a/out/_next/static/chunks/pages/index-958f6f947d7cdc797980.js
+++ b/out/_next/static/chunks/pages/index-2b9ae36e1ad717aff37d.js
@@ -6,23 +6,23 @@
t.r(n),
t.d(n, {
Graph: function () {
- return je
+ return Ce
},
GraphPage: function () {
- return pe
+ return be
},
default: function () {
- return fe
+ return ve
},
})
- var r = t(7757),
+ var r = t(809),
i = t.n(r),
- o = t(2137),
- l = t(5893),
- a = t(7329),
- s = t(6156),
- c = t(4699),
- u = t(7294)
+ o = t(92447),
+ l = t(85893),
+ s = t(59999),
+ a = t(26265),
+ c = t(64121),
+ u = t(67294)
function d(e, n) {
var t,
r = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {},
@@ -30,12 +30,12 @@
o = i.get(),
l = void 0 !== o ? o : n
l !== o && i.update(l)
- var a = (0, u.useState)(l),
- s = a[0],
- c = a[1]
+ var s = (0, u.useState)(l),
+ a = s[0],
+ c = s[1]
;(0, u.useEffect)(
function () {
- s !== l && c(l)
+ a !== l && c(l)
},
[e],
)
@@ -47,7 +47,7 @@
})
: (c(e), i.update(e))
}
- return [s, d]
+ return [a, d]
}
function h(e, n) {
return {
@@ -63,12 +63,12 @@
},
}
}
- var g = t(4533),
- x = t(4309),
- f = t(2351),
- p = t(980),
- j = t(8017),
- m = t(6194),
+ var g = t(54533),
+ f = t(54309),
+ x = t(20233),
+ p = t(40980),
+ j = t(48017),
+ m = t(36194),
v = [],
b = {}
for (var C in m.oY)
@@ -93,8 +93,8 @@
gravity: 0.3,
gravityOn: !0,
},
- O = { orphans: !1, parents: !0, tags: [], nodes: [], links: [], date: [] },
- N = {
+ I = { orphans: !1, parents: !0, tags: [], nodes: [], links: [], date: [] },
+ O = {
particles: !1,
particlesNumber: 0,
particlesWidth: 4,
@@ -141,34 +141,36 @@
citeLinkColor: 'gray.600',
citeNodeColor: 'black',
},
- I = { follow: 'zoom', localSame: 'add', zoomPadding: 200, zoomSpeed: 2e3 },
- z = { highlight: 'hover', local: 'click', follow: 'double' },
- L = t(7375),
- D = t(3924),
- R = t(3986),
- T = t(9641),
- P = t(7546),
- Z = t(3441),
- E = t(6569),
- H = t(4189),
- F = t(454),
- A = t(8420),
- B = t(6699),
- V = t(155),
- M = t(6769),
- X = t(336),
- W = t(2026),
- _ = t(4096),
- U = t(4115),
- Q = t(8134),
- q = t(8235),
- G = t(7273),
- K = t(5267),
- J = t(6049),
- Y = t(3014),
- $ = t(6658),
- ee = t(9356)
- function ne(e, n) {
+ N = { follow: 'zoom', localSame: 'add', zoomPadding: 200, zoomSpeed: 2e3 },
+ L = { highlight: 'hover', local: 'click', follow: 'double' },
+ z = t(38347),
+ T = t(93924),
+ R = t(83986),
+ D = t(48931),
+ P = t(67546),
+ E = t(93441),
+ Z = t(6569),
+ H = t(24189),
+ B = t(2827),
+ A = t(90454),
+ F = t(48420),
+ M = t(96699),
+ V = t(40155),
+ X = t(56769),
+ W = t(336),
+ _ = t(72026),
+ U = t(94096),
+ Q = t(64115),
+ q = t(88134),
+ K = t(48235),
+ G = t(67273),
+ J = t(15267),
+ Y = t(46049),
+ $ = t(95818),
+ ee = t(47647),
+ ne = t(86658),
+ te = t(29356)
+ function re(e, n) {
var t = Object.keys(e)
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e)
@@ -180,41 +182,44 @@
}
return t
}
- function te(e) {
+ function ie(e) {
for (var n = 1; n < arguments.length; n++) {
var t = null != arguments[n] ? arguments[n] : {}
n % 2
- ? ne(Object(t), !0).forEach(function (n) {
- ;(0, s.Z)(e, n, t[n])
+ ? re(Object(t), !0).forEach(function (n) {
+ ;(0, a.Z)(e, n, t[n])
})
: Object.getOwnPropertyDescriptors
? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t))
- : ne(Object(t)).forEach(function (n) {
+ : re(Object(t)).forEach(function (n) {
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n))
})
}
return e
}
- var re = function (e) {
+ var oe = function (e) {
var n = e.physics,
t = e.setPhysics,
r = e.threeDim,
i = e.setThreeDim,
o = e.filter,
- s = e.setFilter,
+ a = e.setFilter,
d = e.visuals,
h = e.setVisuals,
g = e.mouse,
- x = e.setMouse,
- f = e.behavior,
+ f = e.setMouse,
+ x = e.behavior,
p = e.setBehavior,
- m = (0, u.useState)(!0),
- v = m[0],
- b = m[1],
- C = (0, u.useContext)(ee.N),
- y = C.highlightColor,
- k = C.setHighlightColor,
- w = [
+ m = e.tags,
+ v = e.tagColors,
+ b = e.setTagColors,
+ C = (0, u.useState)(!0),
+ y = C[0],
+ k = C[1],
+ w = (0, u.useContext)(te.N),
+ H = w.highlightColor,
+ B = w.setHighlightColor,
+ $ = [
'red.500',
'orange.500',
'yellow.500',
@@ -223,9 +228,6 @@
'blue.500',
'pink.500',
'purple.500',
- 'gray.400',
- 'gray.500',
- 'gray.600',
'white',
'gray.100',
'gray.200',
@@ -240,25 +242,25 @@
]
return (0, l.jsxs)(l.Fragment, {
children: [
- (0, l.jsx)(F.R, {
- in: !v,
+ (0, l.jsx)(A.R, {
+ in: !y,
children: (0, l.jsx)(j.xu, {
position: 'absolute',
zIndex: 'overlay',
marginTop: 10,
marginLeft: 10,
- display: v ? 'none' : 'block',
- children: (0, l.jsx)(A.h, {
+ display: y ? 'none' : 'block',
+ children: (0, l.jsx)(F.h, {
'aria-label': 'Settings',
- icon: (0, l.jsx)(D.e, {}),
+ icon: (0, l.jsx)(T.e, {}),
onClick: function () {
- return b(!0)
+ return k(!0)
},
}),
}),
}),
- (0, l.jsx)(F.R, {
- in: v,
+ (0, l.jsx)(A.R, {
+ in: y,
children: (0, l.jsxs)(j.xu, {
bg: 'alt.100',
w: 'xs',
@@ -278,7 +280,7 @@
paddingRight: 2,
paddingTop: 1,
children: [
- (0, l.jsx)(B.u, {
+ (0, l.jsx)(M.u, {
label: '2D',
children: (0, l.jsx)(V.z, {
onClick: function () {
@@ -293,156 +295,201 @@
display: 'flex',
alignItems: 'center',
children: [
- (0, l.jsx)(B.u, {
+ (0, l.jsx)(M.u, {
label: 'Reset settings to defaults',
- children: (0, l.jsx)(A.h, {
+ children: (0, l.jsx)(F.h, {
'aria-label': 'Reset Defaults',
icon: (0, l.jsx)(R.A, {}),
onClick: function () {
- h(N), s(O), x(z), t(S), p(I)
+ h(O), a(I), f(L), t(S), p(N)
},
variant: 'none',
size: 'sm',
}),
}),
- (0, l.jsx)(A.h, {
+ (0, l.jsx)(F.h, {
size: 'sm',
- icon: (0, l.jsx)(T.T, {}),
+ icon: (0, l.jsx)(D.T, {}),
'aria-label': 'Close Tweak Panel',
variant: 'ghost',
onClick: function () {
- return b(!1)
+ return k(!1)
},
}),
],
}),
],
}),
- (0, l.jsx)($.ZP, {
+ (0, l.jsx)(ne.ZP, {
autoHeight: !0,
autoHeightMax: 600,
autoHide: !0,
renderThumbVertical: function (e) {
var n = e.style,
- t = (0, L.Z)(e, ['style'])
+ t = (0, z.Z)(e, ['style'])
return (0, l.jsx)(
j.xu,
- te(
- te({}, t),
+ ie(
+ ie({}, t),
{},
- { style: te(te({}, n), {}, { borderRadius: 10 }), bg: y },
+ { style: ie(ie({}, n), {}, { borderRadius: 10 }), bg: H },
),
)
},
- children: (0, l.jsxs)(M.UQ, {
+ children: (0, l.jsxs)(X.UQ, {
allowMultiple: !0,
allowToggle: !0,
color: 'black',
children: [
- (0, l.jsxs)(M.Qd, {
+ (0, l.jsxs)(X.Qd, {
children: [
- (0, l.jsxs)(M.KF, {
+ (0, l.jsxs)(X.KF, {
children: [
- (0, l.jsx)(M.XE, { marginRight: 2 }),
- (0, l.jsx)(X.X, { size: 'sm', children: 'Filter' }),
+ (0, l.jsx)(X.XE, { marginRight: 2 }),
+ (0, l.jsx)(W.X, { size: 'sm', children: 'Filter' }),
],
}),
- (0, l.jsx)(M.Hk, {
- children: (0, l.jsxs)(W.gC, {
- spacing: 2,
- justifyContent: 'flex-start',
- divider: (0, l.jsx)(W.cX, { borderColor: 'gray.500' }),
- align: 'stretch',
- paddingLeft: 7,
- color: 'gray.800',
- children: [
- (0, l.jsxs)(_.k, {
- justifyContent: 'space-between',
- children: [
- (0, l.jsx)(U.x, { children: 'Orphans' }),
- (0, l.jsx)(Q.r, {
- onChange: function () {
- s(te(te({}, o), {}, { orphans: !o.orphans }))
- },
- isChecked: o.orphans,
- }),
- ],
- }),
- (0, l.jsxs)(_.k, {
- justifyContent: 'space-between',
- children: [
- (0, l.jsx)(U.x, {
- children: 'Link nodes with parent file',
- }),
- (0, l.jsx)(Q.r, {
- onChange: function () {
- s(te(te({}, o), {}, { parents: !o.parents }))
- },
- isChecked: o.parents,
- }),
- ],
- }),
- ],
- }),
+ (0, l.jsxs)(X.Hk, {
+ children: [
+ (0, l.jsxs)(_.gC, {
+ spacing: 2,
+ justifyContent: 'flex-start',
+ divider: (0, l.jsx)(_.cX, { borderColor: 'gray.500' }),
+ align: 'stretch',
+ paddingLeft: 7,
+ color: 'gray.800',
+ children: [
+ (0, l.jsxs)(U.k, {
+ justifyContent: 'space-between',
+ children: [
+ (0, l.jsx)(Q.x, { children: 'Orphans' }),
+ (0, l.jsx)(q.r, {
+ onChange: function () {
+ a(ie(ie({}, o), {}, { orphans: !o.orphans }))
+ },
+ isChecked: o.orphans,
+ }),
+ ],
+ }),
+ (0, l.jsxs)(U.k, {
+ justifyContent: 'space-between',
+ children: [
+ (0, l.jsx)(Q.x, {
+ children: 'Link nodes with parent file',
+ }),
+ (0, l.jsx)(q.r, {
+ onChange: function () {
+ a(ie(ie({}, o), {}, { parents: !o.parents }))
+ },
+ isChecked: o.parents,
+ }),
+ ],
+ }),
+ ],
+ }),
+ (0, l.jsxs)(X.UQ, {
+ padding: 0,
+ allowToggle: !0,
+ allowMultiple: !0,
+ paddingLeft: 3,
+ children: [
+ (0, l.jsxs)(X.Qd, {
+ children: [
+ (0, l.jsxs)(X.KF, {
+ children: ['Tag filters', (0, l.jsx)(X.XE, {})],
+ }),
+ (0, l.jsx)(X.Hk, {
+ pr: 0,
+ mr: 0,
+ children: (0, l.jsx)(ue, {
+ highlightColor: H,
+ filter: o,
+ setFilter: a,
+ tags: m,
+ }),
+ }),
+ ],
+ }),
+ (0, l.jsxs)(X.Qd, {
+ children: [
+ (0, l.jsxs)(X.KF, {
+ children: ['Tag Colors', (0, l.jsx)(X.XE, {})],
+ }),
+ (0, l.jsx)(X.Hk, {
+ pr: 0,
+ mr: 0,
+ children: (0, l.jsx)(de, {
+ tags: m,
+ colorList: $,
+ tagColors: v,
+ setTagColors: b,
+ highlightColor: H,
+ }),
+ }),
+ ],
+ }),
+ ],
+ }),
+ ],
}),
],
}),
- (0, l.jsxs)(M.Qd, {
+ (0, l.jsxs)(X.Qd, {
children: [
- (0, l.jsx)(M.KF, {
+ (0, l.jsx)(X.KF, {
display: 'flex',
justifyContent: 'space-between',
children: (0, l.jsxs)(j.xu, {
display: 'flex',
children: [
- (0, l.jsx)(M.XE, { marginRight: 2 }),
- (0, l.jsx)(X.X, { size: 'sm', children: 'Physics' }),
+ (0, l.jsx)(X.XE, { marginRight: 2 }),
+ (0, l.jsx)(W.X, { size: 'sm', children: 'Physics' }),
],
}),
}),
- (0, l.jsxs)(M.Hk, {
+ (0, l.jsxs)(X.Hk, {
children: [
- (0, l.jsxs)(W.gC, {
+ (0, l.jsxs)(_.gC, {
spacing: 2,
justifyContent: 'flex-start',
- divider: (0, l.jsx)(W.cX, { borderColor: 'gray.500' }),
+ divider: (0, l.jsx)(_.cX, { borderColor: 'gray.500' }),
align: 'stretch',
paddingLeft: 7,
color: 'gray.800',
children: [
- (0, l.jsx)(le, {
+ (0, l.jsx)(ae, {
label: 'Gravity',
value: n.gravityOn,
onChange: function () {
- return t(te(te({}, n), {}, { gravityOn: !n.gravityOn }))
+ return t(ie(ie({}, n), {}, { gravityOn: !n.gravityOn }))
},
- children: (0, l.jsx)(oe, {
+ children: (0, l.jsx)(se, {
label: 'Strength',
value: 10 * n.gravity,
onChange: function (e) {
- return t(te(te({}, n), {}, { gravity: e / 10 }))
+ return t(ie(ie({}, n), {}, { gravity: e / 10 }))
},
}),
}),
- (0, l.jsx)(oe, {
+ (0, l.jsx)(se, {
value: -n.charge / 100,
onChange: function (e) {
- return t(te(te({}, n), {}, { charge: -100 * e }))
+ return t(ie(ie({}, n), {}, { charge: -100 * e }))
},
label: 'Repulsive Force',
}),
- (0, l.jsx)(le, {
+ (0, l.jsx)(ae, {
label: 'Collision',
infoText: 'Perfomance sap, disable if slow',
value: n.collision,
onChange: function () {
- return t(te(te({}, n), {}, { collision: !n.collision }))
+ return t(ie(ie({}, n), {}, { collision: !n.collision }))
},
- children: (0, l.jsx)(oe, {
+ children: (0, l.jsx)(se, {
value: n.collisionStrength / 5,
onChange: function (e) {
return t(
- te(te({}, n), {}, { collisionStrength: 5 * e }),
+ ie(ie({}, n), {}, { collisionStrength: 5 * e }),
)
},
label: 'Collision Radius',
@@ -450,18 +497,18 @@
'Easy with this one, high values can lead to a real jiggly mess',
}),
}),
- (0, l.jsx)(oe, {
+ (0, l.jsx)(se, {
value: 5 * n.linkStrength,
onChange: function (e) {
- return t(te(te({}, n), {}, { linkStrength: e / 5 }))
+ return t(ie(ie({}, n), {}, { linkStrength: e / 5 }))
},
label: 'Link Force',
}),
- (0, l.jsx)(oe, {
+ (0, l.jsx)(se, {
label: 'Link Iterations',
value: n.linkIts,
onChange: function (e) {
- return t(te(te({}, n), {}, { linkIts: e }))
+ return t(ie(ie({}, n), {}, { linkIts: e }))
},
min: 0,
max: 6,
@@ -469,54 +516,54 @@
infoText:
'How many links down the line the physics of a single node affects (Slow)',
}),
- (0, l.jsx)(oe, {
+ (0, l.jsx)(se, {
label: 'Viscosity',
value: 10 * n.velocityDecay,
onChange: function (e) {
- return t(te(te({}, n), {}, { velocityDecay: e / 10 }))
+ return t(ie(ie({}, n), {}, { velocityDecay: e / 10 }))
},
}),
],
}),
(0, l.jsx)(j.xu, {
- children: (0, l.jsx)(M.UQ, {
+ children: (0, l.jsx)(X.UQ, {
paddingLeft: 3,
allowToggle: !0,
- children: (0, l.jsxs)(M.Qd, {
+ children: (0, l.jsxs)(X.Qd, {
children: [
- (0, l.jsxs)(M.KF, {
+ (0, l.jsxs)(X.KF, {
children: [
- (0, l.jsx)(U.x, { children: 'Advanced' }),
- (0, l.jsx)(M.XE, { marginRight: 2 }),
+ (0, l.jsx)(Q.x, { children: 'Advanced' }),
+ (0, l.jsx)(X.XE, { marginRight: 2 }),
],
}),
- (0, l.jsx)(M.Hk, {
- children: (0, l.jsxs)(W.gC, {
+ (0, l.jsx)(X.Hk, {
+ children: (0, l.jsxs)(_.gC, {
spacing: 2,
justifyContent: 'flex-start',
- divider: (0, l.jsx)(W.cX, {
+ divider: (0, l.jsx)(_.cX, {
borderColor: 'gray.500',
}),
align: 'stretch',
paddingLeft: 3,
color: 'gray.800',
children: [
- (0, l.jsx)(oe, {
+ (0, l.jsx)(se, {
label: 'Stabilization rate',
value: 50 * n.alphaDecay,
onChange: function (e) {
return t(
- te(te({}, n), {}, { alphaDecay: e / 50 }),
+ ie(ie({}, n), {}, { alphaDecay: e / 50 }),
)
},
}),
- (0, l.jsx)(le, {
+ (0, l.jsx)(ae, {
label: 'Center nodes',
value: n.centering,
onChange: function () {
return t(
- te(
- te({}, n),
+ ie(
+ ie({}, n),
{},
{ centering: !n.centering },
),
@@ -524,14 +571,14 @@
},
infoText:
'Keeps the nodes in the center of the viewport. If disabled you can drag the nodes anywhere you want.',
- children: (0, l.jsx)(oe, {
+ children: (0, l.jsx)(se, {
label: 'Centering Strength',
value: n.centeringStrength,
max: 2,
step: 0.01,
onChange: function (e) {
return t(
- te(te({}, n), {}, { centeringStrength: e }),
+ ie(ie({}, n), {}, { centeringStrength: e }),
)
},
}),
@@ -547,54 +594,54 @@
}),
],
}),
- (0, l.jsxs)(M.Qd, {
+ (0, l.jsxs)(X.Qd, {
children: [
- (0, l.jsxs)(M.KF, {
+ (0, l.jsxs)(X.KF, {
children: [
- (0, l.jsx)(M.XE, { marginRight: 2 }),
- (0, l.jsx)(X.X, { size: 'sm', children: 'Visual' }),
+ (0, l.jsx)(X.XE, { marginRight: 2 }),
+ (0, l.jsx)(W.X, { size: 'sm', children: 'Visual' }),
],
}),
- (0, l.jsx)(M.Hk, {
- children: (0, l.jsxs)(W.gC, {
+ (0, l.jsx)(X.Hk, {
+ children: (0, l.jsxs)(_.gC, {
justifyContent: 'flex-start',
align: 'stretch',
children: [
- (0, l.jsx)(M.UQ, {
+ (0, l.jsx)(X.UQ, {
allowToggle: !0,
defaultIndex: [0],
paddingLeft: 3,
- children: (0, l.jsxs)(M.Qd, {
+ children: (0, l.jsxs)(X.Qd, {
children: [
- (0, l.jsx)(M.KF, {
- children: (0, l.jsxs)(_.k, {
+ (0, l.jsx)(X.KF, {
+ children: (0, l.jsxs)(U.k, {
justifyContent: 'space-between',
w: '100%',
children: [
- (0, l.jsx)(U.x, { children: 'Colors' }),
- (0, l.jsx)(M.XE, { marginRight: 2 }),
+ (0, l.jsx)(Q.x, { children: 'Colors' }),
+ (0, l.jsx)(X.XE, { marginRight: 2 }),
],
}),
}),
- (0, l.jsx)(M.Hk, {
- children: (0, l.jsx)(W.gC, {
+ (0, l.jsx)(X.Hk, {
+ children: (0, l.jsx)(_.gC, {
spacing: 2,
justifyContent: 'flex-start',
- divider: (0, l.jsx)(W.cX, {
+ divider: (0, l.jsx)(_.cX, {
borderColor: 'gray.500',
}),
align: 'stretch',
color: 'gray.800',
children: (0, l.jsxs)(j.xu, {
children: [
- (0, l.jsxs)(_.k, {
+ (0, l.jsxs)(U.k, {
alignItems: 'center',
justifyContent: 'space-between',
children: [
- (0, l.jsx)(U.x, { children: 'Nodes' }),
- (0, l.jsx)(B.u, {
+ (0, l.jsx)(Q.x, { children: 'Nodes' }),
+ (0, l.jsx)(M.u, {
label: 'Shuffle node colors',
- children: (0, l.jsx)(A.h, {
+ children: (0, l.jsx)(F.h, {
'aria-label': 'Shuffle node colors',
size: 'sm',
icon: (0, l.jsx)(P.n, {}),
@@ -607,8 +654,8 @@
? e
: []
h(
- te(
- te({}, d),
+ ie(
+ ie({}, d),
{},
{
nodeColorScheme: n
@@ -632,11 +679,11 @@
},
}),
}),
- (0, l.jsx)(B.u, {
+ (0, l.jsx)(M.u, {
label: 'Cycle node colors',
- children: (0, l.jsx)(A.h, {
+ children: (0, l.jsx)(F.h, {
'aria-label': 'Shift node colors',
- icon: (0, l.jsx)(Z.L, {}),
+ icon: (0, l.jsx)(E.L, {}),
size: 'sm',
variant: 'ghost',
onClick: function () {
@@ -647,12 +694,12 @@
? e
: []
h(
- te(
- te({}, d),
+ ie(
+ ie({}, d),
{},
{
nodeColorScheme: [].concat(
- (0, a.Z)(n.slice(1, n.length)),
+ (0, s.Z)(n.slice(1, n.length)),
[n[0]],
),
},
@@ -661,18 +708,18 @@
},
}),
}),
- (0, l.jsxs)(q.v2, {
+ (0, l.jsxs)(K.v2, {
placement: 'right',
closeOnSelect: !1,
matchWidth: !0,
children: [
- (0, l.jsx)(q.j2, {
+ (0, l.jsx)(K.j2, {
width: 20,
as: V.z,
colorScheme: '',
color: 'black',
- rightIcon: (0, l.jsx)(E.v, {}),
- children: (0, l.jsx)(_.k, {
+ rightIcon: (0, l.jsx)(Z.v, {}),
+ children: (0, l.jsx)(U.k, {
height: 6,
width: 6,
flexDirection: 'column',
@@ -695,27 +742,27 @@
(0, l.jsxs)(G.h, {
children: [
' ',
- (0, l.jsx)(q.qy, {
+ (0, l.jsx)(K.qy, {
minW: 10,
zIndex: 'popover',
bgColor: 'gray.200',
- children: (0, l.jsx)(q.__, {
+ children: (0, l.jsx)(K.__, {
width: 500,
type: 'checkbox',
defaultValue: d.nodeColorScheme,
onChange: function (e) {
e.length &&
h(
- te(
- te({}, d),
+ ie(
+ ie({}, d),
{},
{ nodeColorScheme: e },
),
)
},
- children: w.map(function (e) {
+ children: $.map(function (e) {
return (0, l.jsx)(
- q.ii,
+ K.ii,
{
isChecked:
d.nodeColorScheme.some(
@@ -757,19 +804,19 @@
}),
],
}),
- (0, l.jsxs)(_.k, {
+ (0, l.jsxs)(U.k, {
alignItems: 'center',
justifyContent: 'space-between',
children: [
- (0, l.jsx)(U.x, { children: 'Links' }),
- (0, l.jsxs)(q.v2, {
+ (0, l.jsx)(Q.x, { children: 'Links' }),
+ (0, l.jsxs)(K.v2, {
placement: 'right',
children: [
- (0, l.jsx)(q.j2, {
+ (0, l.jsx)(K.j2, {
as: V.z,
colorScheme: '',
color: 'black',
- rightIcon: (0, l.jsx)(E.v, {}),
+ rightIcon: (0, l.jsx)(Z.v, {}),
children: (0, l.jsx)(j.xu, {
children: d.linkColorScheme
? (0, l.jsx)(j.xu, {
@@ -778,7 +825,7 @@
height: 6,
width: 6,
})
- : (0, l.jsx)(_.k, {
+ : (0, l.jsx)(U.k, {
height: 6,
width: 6,
flexDirection: 'column',
@@ -802,16 +849,16 @@
(0, l.jsxs)(G.h, {
children: [
' ',
- (0, l.jsxs)(q.qy, {
+ (0, l.jsxs)(K.qy, {
minW: 10,
zIndex: 'popover',
bgColor: 'gray.200',
children: [
- (0, l.jsx)(q.sN, {
+ (0, l.jsx)(K.sN, {
onClick: function () {
return h(
- te(
- te({}, d),
+ ie(
+ ie({}, d),
{},
{ linkColorScheme: '' },
),
@@ -820,7 +867,7 @@
justifyContent: 'space-between',
alignItems: 'center',
display: 'flex',
- children: (0, l.jsx)(_.k, {
+ children: (0, l.jsx)(U.k, {
height: 6,
width: 6,
flexDirection: 'column',
@@ -841,14 +888,14 @@
),
}),
}),
- w.map(function (e) {
+ $.map(function (e) {
return (0, l.jsx)(
- q.sN,
+ K.sN,
{
onClick: function () {
return h(
- te(
- te({}, d),
+ ie(
+ ie({}, d),
{},
{
linkColorScheme: e,
@@ -878,21 +925,21 @@
}),
],
}),
- (0, l.jsxs)(_.k, {
+ (0, l.jsxs)(U.k, {
alignItems: 'center',
justifyContent: 'space-between',
children: [
- (0, l.jsx)(U.x, { children: 'Accent' }),
- (0, l.jsxs)(q.v2, {
+ (0, l.jsx)(Q.x, { children: 'Accent' }),
+ (0, l.jsxs)(K.v2, {
placement: 'right',
children: [
- (0, l.jsx)(q.j2, {
+ (0, l.jsx)(K.j2, {
as: V.z,
colorScheme: '',
color: 'black',
- rightIcon: (0, l.jsx)(E.v, {}),
+ rightIcon: (0, l.jsx)(Z.v, {}),
children: (0, l.jsx)(j.xu, {
- bgColor: y,
+ bgColor: H,
borderRadius: 'sm',
height: 6,
width: 6,
@@ -901,16 +948,16 @@
(0, l.jsxs)(G.h, {
children: [
' ',
- (0, l.jsx)(q.qy, {
+ (0, l.jsx)(K.qy, {
minW: 10,
zIndex: 'popover',
bgColor: 'gray.200',
- children: w.map(function (e) {
+ children: $.map(function (e) {
return (0, l.jsx)(
- q.sN,
+ K.sN,
{
onClick: function () {
- return k(e)
+ return B(e)
},
justifyContent:
'space-between',
@@ -933,32 +980,32 @@
}),
],
}),
- (0, l.jsx)(ae, {
- colorList: w,
+ (0, l.jsx)(ce, {
+ colorList: $,
label: 'Link highlight',
visuals: d,
setVisuals: h,
value: 'linkHighlight',
visValue: d.linkHighlight,
}),
- (0, l.jsx)(ae, {
- colorList: w,
+ (0, l.jsx)(ce, {
+ colorList: $,
label: 'Node highlight',
visuals: d,
setVisuals: h,
value: 'nodeHighlight',
visValue: d.nodeHighlight,
}),
- (0, l.jsx)(ae, {
- colorList: w,
+ (0, l.jsx)(ce, {
+ colorList: $,
label: 'Background',
visuals: d,
setVisuals: h,
value: 'backgroundColor',
visValue: d.backgroundColor,
}),
- (0, l.jsx)(ae, {
- colorList: w,
+ (0, l.jsx)(ce, {
+ colorList: $,
label: 'Emacs node',
visuals: d,
setVisuals: h,
@@ -972,103 +1019,103 @@
],
}),
}),
- (0, l.jsxs)(W.gC, {
+ (0, l.jsxs)(_.gC, {
spacing: 2,
justifyContent: 'flex-start',
- divider: (0, l.jsx)(W.cX, { borderColor: 'gray.500' }),
+ divider: (0, l.jsx)(_.cX, { borderColor: 'gray.500' }),
align: 'stretch',
paddingLeft: 7,
color: 'gray.800',
children: [
- (0, l.jsx)(oe, {
+ (0, l.jsx)(se, {
label: 'Node size',
value: d.nodeRel,
onChange: function (e) {
- return h(te(te({}, d), {}, { nodeRel: e }))
+ return h(ie(ie({}, d), {}, { nodeRel: e }))
},
}),
r &&
(0, l.jsxs)(l.Fragment, {
children: [
- (0, l.jsx)(oe, {
+ (0, l.jsx)(se, {
label: 'Node opacity',
value: d.nodeOpacity,
min: 0,
max: 1,
onChange: function (e) {
- return h(te(te({}, d), {}, { nodeOpacity: e }))
+ return h(ie(ie({}, d), {}, { nodeOpacity: e }))
},
}),
- (0, l.jsx)(oe, {
+ (0, l.jsx)(se, {
label: 'Node resolution',
value: d.nodeResolution,
min: 5,
max: 32,
step: 1,
onChange: function (e) {
- return h(te(te({}, d), {}, { nodeResolution: e }))
+ return h(ie(ie({}, d), {}, { nodeResolution: e }))
},
}),
],
}),
- (0, l.jsx)(oe, {
+ (0, l.jsx)(se, {
label: 'Link width',
value: d.linkWidth,
onChange: function (e) {
- return h(te(te({}, d), {}, { linkWidth: e }))
+ return h(ie(ie({}, d), {}, { linkWidth: e }))
},
}),
r &&
- (0, l.jsx)(oe, {
+ (0, l.jsx)(se, {
label: 'Link opacity',
min: 0,
max: 1,
value: d.linkOpacity,
onChange: function (e) {
- return h(te(te({}, d), {}, { linkOpacity: e }))
+ return h(ie(ie({}, d), {}, { linkOpacity: e }))
},
}),
- (0, l.jsxs)(le, {
+ (0, l.jsxs)(ae, {
label: 'Dash cite links',
infoText:
'Add dashes to citation links made with org-roam-bibtex',
value: d.citeDashes,
onChange: function () {
return h(
- te(te({}, d), {}, { citeDashes: !d.citeDashes }),
+ ie(ie({}, d), {}, { citeDashes: !d.citeDashes }),
)
},
children: [
- (0, l.jsx)(oe, {
+ (0, l.jsx)(se, {
label: 'Dash length',
value: d.citeDashLength / 10,
onChange: function (e) {
return h(
- te(te({}, d), {}, { citeDashLength: 10 * e }),
+ ie(ie({}, d), {}, { citeDashLength: 10 * e }),
)
},
}),
- (0, l.jsx)(oe, {
+ (0, l.jsx)(se, {
label: 'Gap length',
value: d.citeGapLength / 5,
onChange: function (e) {
return h(
- te(te({}, d), {}, { citeGapLength: 5 * e }),
+ ie(ie({}, d), {}, { citeGapLength: 5 * e }),
)
},
}),
],
}),
- (0, l.jsx)(ae, {
- colorList: w,
+ (0, l.jsx)(ce, {
+ colorList: $,
label: 'Citation node color',
visuals: d,
setVisuals: h,
value: 'citeNodeColor',
visValue: d.citeNodeColor,
}),
- (0, l.jsx)(ae, {
- colorList: w,
+ (0, l.jsx)(ce, {
+ colorList: $,
label: 'Citationlink color',
visuals: d,
setVisuals: h,
@@ -1077,19 +1124,19 @@
}),
(0, l.jsxs)(j.xu, {
children: [
- (0, l.jsxs)(_.k, {
+ (0, l.jsxs)(U.k, {
alignItems: 'center',
justifyContent: 'space-between',
children: [
- (0, l.jsx)(U.x, { children: 'Labels' }),
- (0, l.jsxs)(q.v2, {
+ (0, l.jsx)(Q.x, { children: 'Labels' }),
+ (0, l.jsxs)(K.v2, {
placement: 'right',
children: [
- (0, l.jsx)(q.j2, {
+ (0, l.jsx)(K.j2, {
as: V.z,
colorScheme: '',
color: 'black',
- rightIcon: (0, l.jsx)(E.v, {}),
+ rightIcon: (0, l.jsx)(Z.v, {}),
children: d.labels
? d.labels < 2
? 'On Highlight'
@@ -1099,38 +1146,38 @@
(0, l.jsxs)(G.h, {
children: [
' ',
- (0, l.jsxs)(q.qy, {
+ (0, l.jsxs)(K.qy, {
zIndex: 'popover',
bgColor: 'gray.200',
children: [
- (0, l.jsx)(q.sN, {
+ (0, l.jsx)(K.sN, {
onClick: function () {
return h(
- te(te({}, d), {}, { labels: 0 }),
+ ie(ie({}, d), {}, { labels: 0 }),
)
},
children: 'Never',
}),
- (0, l.jsx)(q.sN, {
+ (0, l.jsx)(K.sN, {
onClick: function () {
return h(
- te(te({}, d), {}, { labels: 1 }),
+ ie(ie({}, d), {}, { labels: 1 }),
)
},
children: 'On Highlight',
}),
- (0, l.jsx)(q.sN, {
+ (0, l.jsx)(K.sN, {
onClick: function () {
return h(
- te(te({}, d), {}, { labels: 2 }),
+ ie(ie({}, d), {}, { labels: 2 }),
)
},
children: 'Always',
}),
- (0, l.jsx)(q.sN, {
+ (0, l.jsx)(K.sN, {
onClick: function () {
return h(
- te(te({}, d), {}, { labels: 3 }),
+ ie(ie({}, d), {}, { labels: 3 }),
)
},
children: 'Always (even in 3D)',
@@ -1143,48 +1190,48 @@
}),
],
}),
- (0, l.jsx)(K.U, {
+ (0, l.jsx)(J.U, {
in: d.labels > 0,
animateOpacity: !0,
- children: (0, l.jsxs)(W.gC, {
+ children: (0, l.jsxs)(_.gC, {
spacing: 1,
justifyContent: 'flex-start',
- divider: (0, l.jsx)(W.cX, {
+ divider: (0, l.jsx)(_.cX, {
borderColor: 'gray.400',
}),
align: 'stretch',
paddingLeft: 2,
color: 'gray.800',
children: [
- (0, l.jsx)(ae, {
- colorList: w,
+ (0, l.jsx)(ce, {
+ colorList: $,
label: 'Text',
visuals: d,
setVisuals: h,
value: 'labelTextColor',
visValue: d.labelTextColor,
}),
- (0, l.jsx)(ae, {
- colorList: w,
+ (0, l.jsx)(ce, {
+ colorList: $,
label: 'Text',
visuals: d,
setVisuals: h,
value: 'labelBackgroundColor',
visValue: d.labelBackgroundColor,
}),
- (0, l.jsx)(K.U, {
+ (0, l.jsx)(J.U, {
in: !!d.labelBackgroundColor,
animateOpacity: !0,
children: (0, l.jsx)(j.xu, {
paddingTop: 2,
- children: (0, l.jsx)(oe, {
+ children: (0, l.jsx)(se, {
label: 'Background opacity',
value: d.labelBackgroundOpacity,
onChange: function (e) {
console.log(d.labelBackgroundOpacity),
h(
- te(
- te({}, d),
+ ie(
+ ie({}, d),
{},
{ labelBackgroundOpacity: e },
),
@@ -1196,18 +1243,18 @@
}),
}),
}),
- (0, l.jsx)(K.U, {
+ (0, l.jsx)(J.U, {
in: d.labels > 1,
animateOpacity: !0,
children: (0, l.jsx)(j.xu, {
paddingTop: 2,
- children: (0, l.jsx)(oe, {
+ children: (0, l.jsx)(se, {
label: 'Label Appearance Scale',
value: 5 * d.labelScale,
onChange: function (e) {
return h(
- te(
- te({}, d),
+ ie(
+ ie({}, d),
{},
{ labelScale: e / 5 },
),
@@ -1221,34 +1268,34 @@
}),
],
}),
- (0, l.jsxs)(le, {
+ (0, l.jsxs)(ae, {
label: 'Link arrows',
value: d.arrows,
onChange: function () {
- return h(te(te({}, d), {}, { arrows: !d.arrows }))
+ return h(ie(ie({}, d), {}, { arrows: !d.arrows }))
},
children: [
- (0, l.jsx)(oe, {
+ (0, l.jsx)(se, {
label: 'Arrow size',
value: d.arrowsLength / 10,
onChange: function (e) {
return h(
- te(te({}, d), {}, { arrowsLength: 10 * e }),
+ ie(ie({}, d), {}, { arrowsLength: 10 * e }),
)
},
}),
- (0, l.jsx)(oe, {
+ (0, l.jsx)(se, {
label: 'Arrow Position',
value: d.arrowsPos,
min: 0,
max: 1,
step: 0.01,
onChange: function (e) {
- return h(te(te({}, d), {}, { arrowsPos: e }))
+ return h(ie(ie({}, d), {}, { arrowsPos: e }))
},
}),
- (0, l.jsx)(ae, {
- colorList: w,
+ (0, l.jsx)(ce, {
+ colorList: $,
label: 'Arrow Color',
visuals: d,
setVisuals: h,
@@ -1257,68 +1304,68 @@
}),
],
}),
- (0, l.jsxs)(le, {
+ (0, l.jsxs)(ae, {
label: 'Directional Particles',
value: d.particles,
onChange: function () {
- return h(te(te({}, d), {}, { particles: !d.particles }))
+ return h(ie(ie({}, d), {}, { particles: !d.particles }))
},
children: [
- (0, l.jsx)(oe, {
+ (0, l.jsx)(se, {
label: 'Particle Number',
value: d.particlesNumber,
max: 5,
step: 1,
onChange: function (e) {
- return h(te(te({}, d), {}, { particlesNumber: e }))
+ return h(ie(ie({}, d), {}, { particlesNumber: e }))
},
}),
- (0, l.jsx)(oe, {
+ (0, l.jsx)(se, {
label: 'Particle Size',
value: d.particlesWidth,
onChange: function (e) {
- return h(te(te({}, d), {}, { particlesWidth: e }))
+ return h(ie(ie({}, d), {}, { particlesWidth: e }))
},
}),
],
}),
- (0, l.jsx)(le, {
+ (0, l.jsx)(ae, {
label: 'Highlight',
onChange: function () {
- return h(te(te({}, d), {}, { highlight: !d.highlight }))
+ return h(ie(ie({}, d), {}, { highlight: !d.highlight }))
},
value: d.highlight,
- children: (0, l.jsxs)(W.gC, {
+ children: (0, l.jsxs)(_.gC, {
spacing: 1,
justifyContent: 'flex-start',
- divider: (0, l.jsx)(W.cX, { borderColor: 'gray.400' }),
+ divider: (0, l.jsx)(_.cX, { borderColor: 'gray.400' }),
align: 'stretch',
paddingLeft: 0,
children: [
- (0, l.jsx)(oe, {
+ (0, l.jsx)(se, {
label: 'Highlight Link Thickness',
value: d.highlightLinkSize,
onChange: function (e) {
return h(
- te(te({}, d), {}, { highlightLinkSize: e }),
+ ie(ie({}, d), {}, { highlightLinkSize: e }),
)
},
}),
- (0, l.jsx)(oe, {
+ (0, l.jsx)(se, {
label: 'Highlight Node Size',
value: d.highlightNodeSize,
onChange: function (e) {
return h(
- te(te({}, d), {}, { highlightNodeSize: e }),
+ ie(ie({}, d), {}, { highlightNodeSize: e }),
)
},
}),
- (0, l.jsxs)(le, {
+ (0, l.jsxs)(ae, {
label: 'Highlight Animation',
onChange: function () {
h(
- te(
- te({}, d),
+ ie(
+ ie({}, d),
{},
{ highlightAnim: !d.highlightAnim },
),
@@ -1326,11 +1373,11 @@
},
value: d.highlightAnim,
children: [
- (0, l.jsx)(oe, {
+ (0, l.jsx)(se, {
label: 'Animation speed',
onChange: function (e) {
return h(
- te(te({}, d), {}, { animationSpeed: e }),
+ ie(ie({}, d), {}, { animationSpeed: e }),
)
},
value: d.animationSpeed,
@@ -1340,12 +1387,12 @@
max: 1e3,
step: 10,
}),
- (0, l.jsx)(J.Ph, {
+ (0, l.jsx)(Y.Ph, {
placeholder: d.algorithmName,
onChange: function (e) {
h(
- te(
- te({}, d),
+ ie(
+ ie({}, d),
{},
{ algorithmName: e.target.value },
),
@@ -1368,45 +1415,45 @@
}),
],
}),
- (0, l.jsxs)(M.Qd, {
+ (0, l.jsxs)(X.Qd, {
children: [
- (0, l.jsxs)(M.KF, {
+ (0, l.jsxs)(X.KF, {
children: [
- (0, l.jsx)(M.XE, { marginRight: 2 }),
- (0, l.jsx)(X.X, { size: 'sm', children: 'Behavior' }),
+ (0, l.jsx)(X.XE, { marginRight: 2 }),
+ (0, l.jsx)(W.X, { size: 'sm', children: 'Behavior' }),
],
}),
- (0, l.jsx)(M.Hk, {
- children: (0, l.jsxs)(W.gC, {
+ (0, l.jsx)(X.Hk, {
+ children: (0, l.jsxs)(_.gC, {
spacing: 2,
justifyContent: 'flex-start',
- divider: (0, l.jsx)(W.cX, { borderColor: 'gray.500' }),
+ divider: (0, l.jsx)(_.cX, { borderColor: 'gray.500' }),
align: 'stretch',
paddingLeft: 7,
color: 'gray.800',
children: [
- (0, l.jsxs)(_.k, {
+ (0, l.jsxs)(U.k, {
alignItems: 'center',
justifyContent: 'space-between',
children: [
- (0, l.jsxs)(_.k, {
+ (0, l.jsxs)(U.k, {
children: [
- (0, l.jsx)(U.x, { children: 'Expand Node' }),
- (0, l.jsx)(ie, {
+ (0, l.jsx)(Q.x, { children: 'Expand Node' }),
+ (0, l.jsx)(le, {
infoText:
'View only the node and its direct neighbors',
}),
],
}),
- (0, l.jsxs)(q.v2, {
+ (0, l.jsxs)(K.v2, {
placement: 'right',
children: [
- (0, l.jsx)(q.j2, {
+ (0, l.jsx)(K.j2, {
as: V.z,
- rightIcon: (0, l.jsx)(E.v, {}),
+ rightIcon: (0, l.jsx)(Z.v, {}),
colorScheme: '',
color: 'black',
- children: (0, l.jsx)(U.x, {
+ children: (0, l.jsx)(Q.x, {
children: g.local
? g.local[0].toUpperCase() + g.local.slice(1)
: 'Never',
@@ -1415,36 +1462,36 @@
(0, l.jsxs)(G.h, {
children: [
' ',
- (0, l.jsxs)(q.qy, {
+ (0, l.jsxs)(K.qy, {
zIndex: 'popover',
bgColor: 'gray.200',
children: [
- (0, l.jsx)(q.sN, {
+ (0, l.jsx)(K.sN, {
onClick: function () {
- return x(te(te({}, g), {}, { local: '' }))
+ return f(ie(ie({}, g), {}, { local: '' }))
},
children: 'Never',
}),
- (0, l.jsx)(q.sN, {
+ (0, l.jsx)(K.sN, {
onClick: function () {
- return x(
- te(te({}, g), {}, { local: 'click' }),
+ return f(
+ ie(ie({}, g), {}, { local: 'click' }),
)
},
children: 'Click',
}),
- (0, l.jsx)(q.sN, {
+ (0, l.jsx)(K.sN, {
onClick: function () {
- return x(
- te(te({}, g), {}, { local: 'double' }),
+ return f(
+ ie(ie({}, g), {}, { local: 'double' }),
)
},
children: 'Double Click',
}),
- (0, l.jsx)(q.sN, {
+ (0, l.jsx)(K.sN, {
onClick: function () {
- return x(
- te(te({}, g), {}, { local: 'right' }),
+ return f(
+ ie(ie({}, g), {}, { local: 'right' }),
)
},
children: 'Right Click',
@@ -1457,20 +1504,20 @@
}),
],
}),
- (0, l.jsxs)(_.k, {
+ (0, l.jsxs)(U.k, {
alignItems: 'center',
justifyContent: 'space-between',
children: [
- (0, l.jsx)(U.x, { children: 'Open in Emacs' }),
- (0, l.jsxs)(q.v2, {
+ (0, l.jsx)(Q.x, { children: 'Open in Emacs' }),
+ (0, l.jsxs)(K.v2, {
placement: 'right',
children: [
- (0, l.jsx)(q.j2, {
+ (0, l.jsx)(K.j2, {
as: V.z,
- rightIcon: (0, l.jsx)(E.v, {}),
+ rightIcon: (0, l.jsx)(Z.v, {}),
colorScheme: '',
color: 'black',
- children: (0, l.jsx)(U.x, {
+ children: (0, l.jsx)(Q.x, {
children: g.follow
? g.follow[0].toUpperCase() + g.follow.slice(1)
: 'Never',
@@ -1479,36 +1526,36 @@
(0, l.jsxs)(G.h, {
children: [
' ',
- (0, l.jsxs)(q.qy, {
+ (0, l.jsxs)(K.qy, {
bgColor: 'gray.200',
zIndex: 'popover',
children: [
- (0, l.jsx)(q.sN, {
+ (0, l.jsx)(K.sN, {
onClick: function () {
- return x(te(te({}, g), {}, { follow: '' }))
+ return f(ie(ie({}, g), {}, { follow: '' }))
},
children: 'Never',
}),
- (0, l.jsx)(q.sN, {
+ (0, l.jsx)(K.sN, {
onClick: function () {
- return x(
- te(te({}, g), {}, { follow: 'click' }),
+ return f(
+ ie(ie({}, g), {}, { follow: 'click' }),
)
},
children: 'Click',
}),
- (0, l.jsx)(q.sN, {
+ (0, l.jsx)(K.sN, {
onClick: function () {
- return x(
- te(te({}, g), {}, { follow: 'double' }),
+ return f(
+ ie(ie({}, g), {}, { follow: 'double' }),
)
},
children: 'Double Click',
}),
- (0, l.jsx)(q.sN, {
+ (0, l.jsx)(K.sN, {
onClick: function () {
- return x(
- te(te({}, g), {}, { follow: 'right' }),
+ return f(
+ ie(ie({}, g), {}, { follow: 'right' }),
)
},
children: 'Right Click',
@@ -1521,43 +1568,43 @@
}),
],
}),
- (0, l.jsxs)(_.k, {
+ (0, l.jsxs)(U.k, {
alignItems: 'center',
justifyContent: 'space-between',
children: [
- (0, l.jsx)(U.x, { children: 'Follow Emacs by...' }),
- (0, l.jsxs)(q.v2, {
+ (0, l.jsx)(Q.x, { children: 'Follow Emacs by...' }),
+ (0, l.jsxs)(K.v2, {
placement: 'right',
children: [
- (0, l.jsx)(q.j2, {
+ (0, l.jsx)(K.j2, {
as: V.z,
- rightIcon: (0, l.jsx)(E.v, {}),
+ rightIcon: (0, l.jsx)(Z.v, {}),
colorScheme: '',
color: 'black',
- children: (0, l.jsx)(U.x, {
+ children: (0, l.jsx)(Q.x, {
children:
- f.follow[0].toUpperCase() + f.follow.slice(1),
+ x.follow[0].toUpperCase() + x.follow.slice(1),
}),
}),
(0, l.jsxs)(G.h, {
children: [
' ',
- (0, l.jsxs)(q.qy, {
+ (0, l.jsxs)(K.qy, {
bgColor: 'gray.200',
zIndex: 'popover',
children: [
- (0, l.jsx)(q.sN, {
+ (0, l.jsx)(K.sN, {
onClick: function () {
return p(
- te(te({}, f), {}, { follow: 'local' }),
+ ie(ie({}, x), {}, { follow: 'local' }),
)
},
children: 'Opening the local graph',
}),
- (0, l.jsx)(q.sN, {
+ (0, l.jsx)(K.sN, {
onClick: function () {
return p(
- te(te({}, f), {}, { follow: 'zoom' }),
+ ie(ie({}, x), {}, { follow: 'zoom' }),
)
},
children: 'Zooming to the current node',
@@ -1570,24 +1617,24 @@
}),
],
}),
- (0, l.jsx)(oe, {
+ (0, l.jsx)(se, {
label: 'Zoom speed',
- value: f.zoomSpeed,
+ value: x.zoomSpeed,
min: 0,
max: 4e3,
step: 100,
onChange: function (e) {
- return p(te(te({}, f), {}, { zoomSpeed: e }))
+ return p(ie(ie({}, x), {}, { zoomSpeed: e }))
},
}),
- (0, l.jsx)(oe, {
+ (0, l.jsx)(se, {
label: 'Zoom padding',
- value: f.zoomPadding,
+ value: x.zoomPadding,
min: 0,
max: 400,
step: 1,
onChange: function (e) {
- return p(te(te({}, f), {}, { zoomPadding: e }))
+ return p(ie(ie({}, x), {}, { zoomPadding: e }))
},
infoText:
'How much to zoom out to accomodate all nodes when changing the view.',
@@ -1606,11 +1653,11 @@
],
})
},
- ie = function (e) {
+ le = function (e) {
var n = e.infoText
return (0, l.jsx)(j.xu, {
paddingLeft: '1',
- children: (0, l.jsx)(B.u, {
+ children: (0, l.jsx)(M.u, {
label: n,
placement: 'top',
color: 'gray.100',
@@ -1620,46 +1667,46 @@
}),
})
},
- oe = function (e) {
+ se = function (e) {
var n = e.min,
t = void 0 === n ? 0 : n,
r = e.max,
i = void 0 === r ? 10 : r,
o = e.step,
- a = void 0 === o ? 0.1 : o,
- s = e.value,
- c = void 0 === s ? 1 : s,
- d = (0, L.Z)(e, ['min', 'max', 'step', 'value']),
+ s = void 0 === o ? 0.1 : o,
+ a = e.value,
+ c = void 0 === a ? 1 : a,
+ d = (0, z.Z)(e, ['min', 'max', 'step', 'value']),
h = d.onChange,
g = d.label,
- x = d.infoText,
- f = (0, u.useContext)(ee.N).highlightColor
+ f = d.infoText,
+ x = (0, u.useContext)(te.N).highlightColor
return (0, l.jsxs)(j.xu, {
children: [
(0, l.jsxs)(j.xu, {
display: 'flex',
alignItems: 'flex-end',
- children: [(0, l.jsx)(U.x, { children: g }), x && (0, l.jsx)(ie, { infoText: x })],
+ children: [(0, l.jsx)(Q.x, { children: g }), f && (0, l.jsx)(le, { infoText: f })],
}),
- (0, l.jsxs)(Y.iR, {
+ (0, l.jsxs)($.iR, {
value: c,
onChange: h,
min: t,
max: i,
- step: a,
+ step: s,
children: [
- (0, l.jsx)(Y.Uj, { children: (0, l.jsx)(Y.Ms, {}) }),
- (0, l.jsx)(B.u, {
- bg: f,
+ (0, l.jsx)($.Uj, { children: (0, l.jsx)($.Ms, {}) }),
+ (0, l.jsx)(M.u, {
+ bg: x,
label: c.toFixed(1),
- children: (0, l.jsx)(Y.gs, { bg: 'white' }),
+ children: (0, l.jsx)($.gs, { bg: 'white' }),
}),
],
}),
],
})
},
- le = function (e) {
+ ae = function (e) {
var n = e.value,
t = e.onChange,
r = e.label,
@@ -1677,14 +1724,14 @@
display: 'flex',
alignItems: 'center',
children: [
- (0, l.jsx)(U.x, { children: r }),
- i && (0, l.jsx)(ie, { infoText: i }),
+ (0, l.jsx)(Q.x, { children: r }),
+ i && (0, l.jsx)(le, { infoText: i }),
],
}),
- (0, l.jsx)(Q.r, { isChecked: !!n, onChange: t }),
+ (0, l.jsx)(q.r, { isChecked: !!n, onChange: t }),
],
}),
- (0, l.jsx)(K.U, {
+ (0, l.jsx)(J.U, {
in: !!n,
animateOpacity: !0,
children: (0, l.jsx)(j.xu, {
@@ -1697,26 +1744,26 @@
],
})
},
- ae = function (e) {
+ ce = function (e) {
var n = e.label,
t = e.colorList,
r = e.value,
i = e.visuals,
o = e.visValue,
- a = e.setVisuals
- return (0, l.jsxs)(_.k, {
+ s = e.setVisuals
+ return (0, l.jsxs)(U.k, {
alignItems: 'center',
justifyContent: 'space-between',
children: [
- (0, l.jsx)(U.x, { children: n }),
- (0, l.jsxs)(q.v2, {
+ (0, l.jsx)(Q.x, { children: n }),
+ (0, l.jsxs)(K.v2, {
placement: 'right',
children: [
- (0, l.jsx)(q.j2, {
+ (0, l.jsx)(K.j2, {
as: V.z,
colorScheme: '',
color: 'black',
- rightIcon: (0, l.jsx)(E.v, {}),
+ rightIcon: (0, l.jsx)(Z.v, {}),
children: (0, l.jsx)(j.xu, {
bgColor: o,
borderRadius: 'sm',
@@ -1727,14 +1774,14 @@
(0, l.jsxs)(G.h, {
children: [
' ',
- (0, l.jsxs)(q.qy, {
+ (0, l.jsxs)(K.qy, {
minW: 10,
zIndex: 'popover',
bgColor: 'gray.200',
children: [
- (0, l.jsx)(q.sN, {
+ (0, l.jsx)(K.sN, {
onClick: function () {
- return a(te(te({}, i), {}, (0, s.Z)({}, r, '')))
+ return s(ie(ie({}, i), {}, (0, a.Z)({}, r, '')))
},
justifyContent: 'space-between',
alignItems: 'center',
@@ -1743,10 +1790,10 @@
}),
t.map(function (e) {
return (0, l.jsx)(
- q.sN,
+ K.sN,
{
onClick: function () {
- return a(te(te({}, i), {}, (0, s.Z)({}, r, e)))
+ return s(ie(ie({}, i), {}, (0, a.Z)({}, r, e)))
},
justifyContent: 'space-between',
alignItems: 'center',
@@ -1770,9 +1817,214 @@
],
})
},
- se = t(1122),
- ce = t(2003)
- function ue(e, n) {
+ ue = function (e) {
+ var n = e.filter,
+ t = e.setFilter,
+ r = e.tags,
+ i = e.highlightColor,
+ o = r.map(function (e) {
+ return { value: e, label: e }
+ }),
+ s = (0, u.useState)([]),
+ a = s[0],
+ c = s[1]
+ return (0, l.jsx)(ee.CUIAutoComplete, {
+ items: o,
+ label: 'Add tag to filter',
+ placeholder: ' ',
+ onCreateItem: function (e) {
+ return null
+ },
+ disableCreateItem: !0,
+ selectedItems: a,
+ onSelectedItemsChange: function (e) {
+ e.selectedItems &&
+ (c(e.selectedItems),
+ t(
+ ie(
+ ie({}, n),
+ {},
+ {
+ tags: a.map(function (e) {
+ return e.value
+ }),
+ },
+ ),
+ ))
+ },
+ listItemStyleProps: { overflow: 'hidden' },
+ highlightItemBg: 'gray.400',
+ toggleButtonStyleProps: { variant: 'outline' },
+ inputStyleProps: { focusBorderColor: i, color: 'gray.800', borderColor: 'gray.600' },
+ tagStyleProps: {
+ rounded: 'full',
+ bg: i,
+ height: 8,
+ paddingLeft: 4,
+ fontWeight: 'bold',
+ },
+ hideToggleButton: !0,
+ itemRenderer: function (e) {
+ return e.label
+ },
+ })
+ },
+ de = function (e) {
+ var n = e.colorList,
+ t = e.tagColors,
+ r = e.setTagColors,
+ i = e.highlightColor,
+ o = e.tags.map(function (e) {
+ return { value: e, label: e }
+ }),
+ s = (0, u.useState)([]),
+ c = s[0],
+ d = s[1]
+ return (0, l.jsxs)(j.xu, {
+ children: [
+ (0, l.jsx)(ee.CUIAutoComplete, {
+ items: o,
+ label: 'Add tag to filter',
+ placeholder: ' ',
+ disableCreateItem: !0,
+ selectedItems: c,
+ onSelectedItemsChange: function (e) {
+ e.selectedItems &&
+ (d(Array.from(new Set(e.selectedItems))),
+ r(
+ Object.fromEntries(
+ Array.from(new Set(e.selectedItems)).map(function (e) {
+ var n
+ return [
+ e.label,
+ null !== (n = t[e.label]) && void 0 !== n ? n : 'gray.600',
+ ]
+ }),
+ ),
+ ))
+ },
+ listItemStyleProps: { overflow: 'hidden' },
+ highlightItemBg: 'gray.400',
+ toggleButtonStyleProps: { variant: 'outline' },
+ inputStyleProps: {
+ focusBorderColor: i,
+ color: 'gray.800',
+ borderColor: 'gray.600',
+ },
+ tagStyleProps: {
+ display: 'none',
+ rounded: 'full',
+ bg: i,
+ height: 8,
+ paddingLeft: 4,
+ fontWeight: 'bold',
+ },
+ hideToggleButton: !0,
+ itemRenderer: function (e) {
+ return e.label
+ },
+ }),
+ (0, l.jsx)(_.gC, {
+ spacing: 2,
+ justifyContent: 'flex-start',
+ divider: (0, l.jsx)(_.cX, { borderColor: 'gray.500' }),
+ align: 'stretch',
+ color: 'gray.800',
+ children: Object.keys(t).map(function (e) {
+ return (0, l.jsxs)(
+ U.k,
+ {
+ alignItems: 'center',
+ justifyContent: 'space-between',
+ width: '100%',
+ pl: 2,
+ children: [
+ (0, l.jsx)(j.xu, {
+ width: '100%',
+ children: (0, l.jsx)(Q.x, { fontWeight: 'bold', children: e }),
+ }),
+ (0, l.jsxs)(K.v2, {
+ isLazy: !0,
+ placement: 'right',
+ children: [
+ (0, l.jsx)(K.j2, {
+ as: V.z,
+ colorScheme: '',
+ color: 'black',
+ children: (0, l.jsx)(j.xu, {
+ bgColor: t[e],
+ borderRadius: 'sm',
+ height: 6,
+ width: 6,
+ }),
+ }),
+ (0, l.jsxs)(G.h, {
+ children: [
+ ' ',
+ (0, l.jsx)(K.qy, {
+ minW: 10,
+ zIndex: 'popover',
+ bgColor: 'gray.200',
+ children: n.map(function (n) {
+ return (0, l.jsx)(
+ K.sN,
+ {
+ onClick: function () {
+ return r(ie(ie({}, t), {}, (0, a.Z)({}, e, n)))
+ },
+ justifyContent: 'space-between',
+ alignItems: 'center',
+ display: 'flex',
+ children: (0, l.jsx)(j.xu, {
+ bgColor: n,
+ borderRadius: 'sm',
+ height: 6,
+ width: 6,
+ }),
+ },
+ n,
+ )
+ }),
+ }),
+ ],
+ }),
+ ],
+ }),
+ (0, l.jsx)(F.h, {
+ 'aria-label': 'Delete tag color',
+ variant: 'ghost',
+ icon: (0, l.jsx)(B.p, {}),
+ onClick: function () {
+ r(
+ Object.fromEntries(
+ Array.from(new Set(c)).map(function (e) {
+ var n
+ return [
+ e.label,
+ null !== (n = t[e.label]) && void 0 !== n ? n : 'gray.600',
+ ]
+ }),
+ ),
+ ),
+ d(
+ c.filter(function (n) {
+ return n.value !== e
+ }),
+ )
+ },
+ }),
+ ],
+ },
+ e,
+ )
+ }),
+ }),
+ ],
+ })
+ },
+ he = t(31122),
+ ge = t(22003)
+ function fe(e, n) {
var t = Object.keys(e)
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e)
@@ -1784,25 +2036,25 @@
}
return t
}
- function de(e) {
+ function xe(e) {
for (var n = 1; n < arguments.length; n++) {
var t = null != arguments[n] ? arguments[n] : {}
n % 2
- ? ue(Object(t), !0).forEach(function (n) {
- ;(0, s.Z)(e, n, t[n])
+ ? fe(Object(t), !0).forEach(function (n) {
+ ;(0, a.Z)(e, n, t[n])
})
: Object.getOwnPropertyDescriptors
? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t))
- : ue(Object(t)).forEach(function (n) {
+ : fe(Object(t)).forEach(function (n) {
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n))
})
}
return e
}
- var he = t.e(4).then(t.bind(t, 7004)),
- ge = t.g.window ? t(1957).f$ : null,
- xe = t.g.window ? t(1957).s6 : null
- function fe() {
+ var pe = t.e(4).then(t.bind(t, 57004)),
+ je = t.g.window ? t(61957).f$ : null,
+ me = t.g.window ? t(61957).s6 : null
+ function ve() {
var e = (0, u.useState)(!1),
n = e[0],
t = e[1]
@@ -1810,64 +2062,69 @@
(0, u.useEffect)(function () {
t(!0)
}, []),
- n ? (0, l.jsx)(pe, {}) : null
+ n ? (0, l.jsx)(be, {}) : null
)
}
- function pe() {
+ function be() {
var e = d('physics', S),
n = (0, c.Z)(e, 2),
t = n[0],
r = n[1],
- i = d('filter', O),
+ i = d('filter', I),
o = (0, c.Z)(i, 2),
h = o[0],
g = o[1],
- x = d('visuals', N),
- f = (0, c.Z)(x, 2),
- p = f[0],
- m = f[1],
+ f = d('visuals', O),
+ x = (0, c.Z)(f, 2),
+ p = x[0],
+ m = x[1],
v = (0, u.useState)(null),
b = v[0],
C = v[1],
y = (0, u.useState)(null),
k = y[0],
w = y[1],
- L = d('behavior', I),
- D = (0, c.Z)(L, 2),
- R = D[0],
- T = D[1],
- P = d('mouse', z),
- Z = (0, c.Z)(P, 2),
- E = Z[0],
- H = Z[1],
- F = (0, u.useRef)({}),
+ z = d('behavior', N),
+ T = (0, c.Z)(z, 2),
+ R = T[0],
+ D = T[1],
+ P = d('mouse', L),
+ E = (0, c.Z)(P, 2),
+ Z = E[0],
+ H = E[1],
+ B = (0, u.useRef)({}),
A = (0, u.useRef)({}),
- B = (0, u.useContext)(ee.N).setEmacsTheme,
+ F = (0, u.useRef)([]),
+ M = (0, u.useContext)(te.N).setEmacsTheme,
V = d('3d', !1),
- M = (0, c.Z)(V, 2),
- X = M[0],
- W = M[1],
- _ = (0, u.useState)({ nodeIds: [] }),
- U = _[0],
- Q = _[1],
- q = (0, u.useRef)({ nodeIds: [] }),
- G = (0, u.useRef)(I)
- G.current = R
- var K = (0, u.useRef)(null),
- J = (0, u.useRef)(null)
- q.current = U
- var Y = function (e, n) {
+ X = (0, c.Z)(V, 2),
+ W = X[0],
+ _ = X[1],
+ U = d('tagCols', {}),
+ Q = (0, c.Z)(U, 2),
+ q = Q[0],
+ K = Q[1],
+ G = (0, u.useState)({ nodeIds: [] }),
+ J = G[0],
+ Y = G[1],
+ $ = (0, u.useRef)({ nodeIds: [] }),
+ ee = (0, u.useRef)(N)
+ ee.current = R
+ var ne = (0, u.useRef)(null),
+ re = (0, u.useRef)(null)
+ $.current = J
+ var ie = function (e, n) {
var t,
r = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : 2e3,
i = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : 200,
- o = K.current,
- l = q.current,
- s = G.current,
+ o = ne.current,
+ l = $.current,
+ a = ee.current,
c = null !== (t = A.current[n]) && void 0 !== t ? t : [],
u = Object.fromEntries(
[n]
.concat(
- (0, a.Z)(
+ (0, s.Z)(
c.flatMap(function (e) {
return [e.source, e.target]
}),
@@ -1880,15 +2137,15 @@
return 'zoom' === e
? (console.log(l),
l.nodeIds.length &&
- (console.log('emptying'), console.log('scope ' + l.nodeIds), Q({ nodeIds: [] })),
+ (console.log('emptying'), console.log('scope ' + l.nodeIds), Y({ nodeIds: [] })),
void setTimeout(function () {
return o.zoomToFit(r, i, function (e) {
return u[e.id]
})
}, 50))
: l.nodeIds.length
- ? 'add' !== s.localSame
- ? (Q({ nodeIds: [n] }),
+ ? 'add' !== a.localSame
+ ? (Y({ nodeIds: [n] }),
void setTimeout(function () {
o.centerAt(0, 0, r)
}, 50))
@@ -1896,46 +2153,47 @@
l.nodeIds.some(function (e) {
return u[e]
})
- ? (Q(function (e) {
- return de(de({}, e), {}, { nodeIds: [].concat((0, a.Z)(e.nodeIds), [n]) })
+ ? (Y(function (e) {
+ return xe(xe({}, e), {}, { nodeIds: [].concat((0, s.Z)(e.nodeIds), [n]) })
}),
void setTimeout(function () {
return o.zoomToFit(r, i, function (e) {
return u[e.id]
})
}, 50))
- : (Q({ nodeIds: [n] }),
+ : (Y({ nodeIds: [n] }),
void setTimeout(function () {
o.centerAt(0, 0, r)
}, 50))
- : (Q({ nodeIds: [n] }),
+ : (Y({ nodeIds: [n] }),
void setTimeout(function () {
o.centerAt(0, 0, r)
}, 50))
}
return (
(0, u.useEffect)(function () {
- ;(J.current = new ce.Z('ws://localhost:35903')),
- J.current.addEventListener('open', function (e) {
+ ;(re.current = new ge.Z('ws://localhost:35903')),
+ re.current.addEventListener('open', function (e) {
console.log('Connection with Emacs established')
}),
- J.current.addEventListener('message', function (e) {
- K.current
- var n = G.current,
+ re.current.addEventListener('message', function (e) {
+ ne.current
+ var n = ee.current,
t = JSON.parse(e.data)
switch (t.type) {
case 'graphdata':
return (function (e) {
+ F.current = e.tags
var n = e.nodes.reduce(function (e, n) {
var t
- return de(
- de({}, e),
+ return xe(
+ xe({}, e),
{},
- (0, s.Z)(
+ (0, a.Z)(
{},
n.file,
[].concat(
- (0, a.Z)(null !== (t = e[n.file]) && void 0 !== t ? t : []),
+ (0, s.Z)(null !== (t = e[n.file]) && void 0 !== t ? t : []),
[n],
),
),
@@ -1956,53 +2214,53 @@
})
: []
})
- F.current = Object.fromEntries(
+ B.current = Object.fromEntries(
e.nodes.map(function (e) {
return [e.id, e]
}),
)
- var r = [].concat((0, a.Z)(e.links), (0, a.Z)(t)).filter(function (e) {
+ var r = [].concat((0, s.Z)(e.links), (0, s.Z)(t)).filter(function (e) {
var n = e.source,
t = e.target
- return F.current[n] && F.current[t]
+ return B.current[n] && B.current[t]
})
A.current = r.reduce(function (e, n) {
var t, r, i
- return de(
- de({}, e),
+ return xe(
+ xe({}, e),
{},
((i = {}),
- (0, s.Z)(
+ (0, a.Z)(
i,
n.source,
[].concat(
- (0, a.Z)(null !== (t = e[n.source]) && void 0 !== t ? t : []),
+ (0, s.Z)(null !== (t = e[n.source]) && void 0 !== t ? t : []),
[n],
),
),
- (0, s.Z)(
+ (0, a.Z)(
i,
n.target,
[].concat(
- (0, a.Z)(null !== (r = e[n.target]) && void 0 !== r ? r : []),
+ (0, s.Z)(null !== (r = e[n.target]) && void 0 !== r ? r : []),
[n],
),
),
i),
)
}, {})
- var i = de(de({}, e), {}, { links: r }),
+ var i = xe(xe({}, e), {}, { links: r }),
o = JSON.parse(JSON.stringify(i))
C(o)
})(t.data)
case 'theme':
- return B(t.data)
+ return M(t.data)
case 'command':
switch (t.data.commandName) {
case 'local':
var r = R.zoomSpeed,
i = R.zoomPadding
- Y('local', t.data.id, r, i), w(t.data.id)
+ ie('local', t.data.id, r, i), w(t.data.id)
break
case 'zoom':
var o,
@@ -2015,10 +2273,10 @@
(null === t || void 0 === t || null === (l = t.data) || void 0 === l
? void 0
: l.padding) || n.zoomPadding
- Y('zoom', t.data.id, c, u), w(t.data.id)
+ ie('zoom', t.data.id, c, u), w(t.data.id)
break
case 'follow':
- Y(n.follow, t.data.id, n.zoomSpeed, n.zoomPadding), w(t.data.id)
+ ie(n.follow, t.data.id, n.zoomSpeed, n.zoomPadding), w(t.data.id)
break
default:
return console.error('unknown message type', t.type)
@@ -2034,48 +2292,55 @@
height: '100%',
children: [
(0, l.jsx)(
- re,
- de(
+ oe,
+ xe(
+ xe(
+ {},
+ {
+ physics: t,
+ setPhysics: r,
+ threeDim: W,
+ setThreeDim: _,
+ filter: h,
+ setFilter: g,
+ visuals: p,
+ setVisuals: m,
+ mouse: Z,
+ setMouse: H,
+ behavior: R,
+ setBehavior: D,
+ tagColors: q,
+ setTagColors: K,
+ },
+ ),
{},
- {
- physics: t,
- setPhysics: r,
- threeDim: X,
- setThreeDim: W,
- filter: h,
- setFilter: g,
- visuals: p,
- setVisuals: m,
- mouse: E,
- setMouse: H,
- behavior: R,
- setBehavior: T,
- },
+ { tags: F.current },
),
),
(0, l.jsx)(j.xu, {
position: 'absolute',
alignItems: 'top',
children: (0, l.jsx)(
- je,
- de(
+ Ce,
+ xe(
{
- ref: K,
- nodeById: F.current,
+ ref: ne,
+ nodeById: B.current,
linksByNodeId: A.current,
- webSocket: J.current,
+ webSocket: re.current,
},
{
physics: t,
graphData: b,
- threeDim: X,
+ threeDim: W,
emacsNodeId: k,
filter: h,
visuals: p,
behavior: R,
- mouse: E,
- scope: U,
- setScope: Q,
+ mouse: Z,
+ scope: J,
+ setScope: Y,
+ tagColors: q,
},
),
),
@@ -2085,10 +2350,10 @@
: null
)
}
- var je = (0, u.forwardRef)(function (e, n) {
+ var Ce = (0, u.forwardRef)(function (e, n) {
var t = e.physics,
r = e.graphData,
- s = e.threeDim,
+ a = e.threeDim,
d = e.linksByNodeId,
h = e.filter,
j = e.emacsNodeId,
@@ -2098,21 +2363,22 @@
C = e.scope,
y = e.setScope,
k = e.webSocket,
- S = (0, x.iP)(),
- O = (0, c.Z)(S, 2),
+ S = e.tagColors,
+ I = (0, f.iP)(),
+ O = (0, c.Z)(I, 2),
N = O[0],
- I = O[1],
+ L = O[1],
z = (0, u.useState)(null),
- L = z[0],
- D = z[1],
- R = (0, p.useTheme)(),
- T = (0, u.useContext)(ee.N).emacsTheme,
- P = function (e, n) {
+ T = z[0],
+ R = z[1],
+ D = (0, p.useTheme)(),
+ P = (0, u.useContext)(te.N).emacsTheme,
+ E = function (e, n) {
switch (e) {
case b.local:
if (C.nodeIds.includes(n.id)) break
y(function (e) {
- return de(de({}, e), {}, { nodeIds: [].concat((0, a.Z)(e.nodeIds), [n.id]) })
+ return xe(xe({}, e), {}, { nodeIds: [].concat((0, s.Z)(e.nodeIds), [n.id]) })
})
break
case b.follow:
@@ -2122,12 +2388,12 @@
Z = (0, u.useRef)(null)
;(0, u.useEffect)(
function () {
- j && D(m[j])
+ j && R(m[j])
},
[j],
),
- (Z.current = L)
- var E = (0, u.useMemo)(
+ (Z.current = T)
+ var H = (0, u.useMemo)(
function () {
if (!Z.current) return {}
var e = d[Z.current.id]
@@ -2135,7 +2401,7 @@
? Object.fromEntries(
[Z.current.id]
.concat(
- (0, a.Z)(
+ (0, s.Z)(
e.flatMap(function (e) {
return [e.source, e.target]
}),
@@ -2149,30 +2415,45 @@
},
[Z.current, d],
),
- H = (0, u.useMemo)(
+ B = (0, u.useMemo)(
function () {
var e = r.nodes.filter(function (e) {
var n,
- t = null !== (n = d[e.id]) && void 0 !== n ? n : []
- return (
- !h.orphans ||
- (h.parents
- ? 0 !== t.length
- : 0 !== t.length &&
- t.some(function (e) {
- return !['parent', 'ref'].includes(e.type)
- }))
- )
+ t = e,
+ r = null !== (n = d[t.id]) && void 0 !== n ? n : []
+ return h.tags.length && t.tags.length
+ ? !h.tags.some(function (e) {
+ return t.tags.indexOf(e) > -1
+ })
+ : !h.orphans ||
+ (h.parents
+ ? 0 !== r.length
+ : 0 !== r.length &&
+ r.some(function (e) {
+ return !['parent', 'ref'].includes(e.type)
+ }))
}),
- n =
- (e.map(function (e) {
- return e.id
- }),
- r.links.filter(function (e) {
- var n = e
- return h.parents || 'parent' !== n.type
- })),
- t = e.filter(function (e) {
+ n = e.map(function (e) {
+ return e.id
+ })
+ return {
+ filteredNodes: e,
+ filteredLinks: r.links.filter(function (e) {
+ if (h.tags.length) {
+ var t = 'object' === typeof e.source ? e.source.id : e.source,
+ r = 'object' === typeof e.target ? e.target.id : e.target
+ return n.includes(t) && n.includes(r)
+ }
+ var i = e
+ return h.parents || 'parent' !== i.type
+ }),
+ }
+ },
+ [h, r],
+ ),
+ A = (0, u.useMemo)(
+ function () {
+ var e = B.filteredNodes.filter(function (e) {
var n,
t = null !== (n = d[e.id]) && void 0 !== n ? n : []
return (
@@ -2182,15 +2463,17 @@
})
)
}),
- i = t.map(function (e) {
+ n = e.map(function (e) {
return e.id
}),
- o = n.filter(function (e) {
- var n = 'object' === typeof e.source ? e.source.id : e.source,
- t = 'object' === typeof e.target ? e.target.id : e.target
- return i.includes(n) && i.includes(t)
+ t = B.filteredLinks.filter(function (e) {
+ var t = 'object' === typeof e.source ? e.source.id : e.source,
+ r = 'object' === typeof e.target ? e.target.id : e.target
+ return n.includes(t) && n.includes(r)
})
- return 0 === C.nodeIds.length ? { nodes: e, links: n } : { nodes: t, links: o }
+ return 0 === C.nodeIds.length
+ ? { nodes: B.filteredNodes, links: B.filteredLinks }
+ : { nodes: e, links: t }
},
[h, C, r],
)
@@ -2202,14 +2485,14 @@
for (;;)
switch ((e.prev = e.next)) {
case 0:
- return (r = n.current), (e.next = 3), he
+ return (r = n.current), (e.next = 3), pe
case 3:
;(o = e.sent),
t.gravityOn
? (r.d3Force('x', o.forceX().strength(t.gravity)),
r.d3Force('y', o.forceY().strength(t.gravity)),
- s && r.d3Force('z', o.forceZ().strength(t.gravity)))
- : (r.d3Force('x', null), r.d3Force('y', null), s && r.d3Force('z', null)),
+ a && r.d3Force('z', o.forceZ().strength(t.gravity)))
+ : (r.d3Force('x', null), r.d3Force('y', null), a && r.d3Force('z', null)),
t.centering
? r.d3Force('center', o.forceCenter().strength(t.centeringStrength))
: r.d3Force('center', null),
@@ -2236,42 +2519,42 @@
[t],
)
var F = (0, u.useRef)(0),
- A = (0, u.useState)(1),
- B = A[0],
- V = A[1],
- M = (0, f._7)(
+ M = (0, u.useState)(1),
+ V = M[0],
+ X = M[1],
+ W = (0, x._7)(
function (e) {
- return V(e)
+ return X(e)
},
{ duration: v.animationSpeed, algorithm: w[v.algorithmName] },
),
- X = (0, c.Z)(M, 2),
- W = X[0],
- _ = X[1],
- U = (0, f._7)(
+ _ = (0, c.Z)(W, 2),
+ U = _[0],
+ Q = _[1],
+ q = (0, x._7)(
function (e) {
- return V(Math.min(B, -1 * (e - 1)))
+ return X(Math.min(V, -1 * (e - 1)))
},
{ duration: v.animationSpeed, algorithm: w[v.algorithmName] },
),
- Q = (0, c.Z)(U, 2),
- q = Q[0],
- G = Q[1],
- K = (0, u.useRef)(null)
+ K = (0, c.Z)(q, 2),
+ G = K[0],
+ J = K[1],
+ Y = (0, u.useRef)(null)
;(0, u.useEffect)(
function () {
- if ((L && (K.current = L), !v.highlightAnim)) return V(L ? 1 : 0)
- L ? W() : (_(), B > 0.5 ? q() : V(0))
+ if ((T && (Y.current = T), !v.highlightAnim)) return X(T ? 1 : 0)
+ T ? U() : (Q(), V > 0.5 ? G() : X(0))
},
- [L],
+ [T],
)
- var J = function (e) {
- if (R)
+ var $ = function (e) {
+ if (D)
return e.split('.').reduce(function (e, n) {
return e[n]
- }, R.colors)
+ }, D.colors)
},
- Y = (0, u.useMemo)(
+ ee = (0, u.useMemo)(
function () {
var e = v.nodeColorScheme.concat(
v.linkColorScheme || [],
@@ -2282,30 +2565,30 @@
)
return Object.fromEntries(
e.map(function (n) {
- var t = J(n),
+ var t = $(n),
r = e.map(function (e) {
- return [e, g.Z(t, J(e))]
+ return [e, g.Z(t, $(e))]
})
return [n, Object.fromEntries(r)]
}),
)
},
- [v.nodeColorScheme, v.linkHighlight, v.nodeHighlight, v.linkColorScheme, T],
+ [v.nodeColorScheme, v.linkHighlight, v.nodeHighlight, v.linkColorScheme, P],
),
- $ = (0, u.useMemo)(
+ ne = (0, u.useMemo)(
function () {
var e,
n,
t,
r =
- null !== (e = d[null === (n = K.current) || void 0 === n ? void 0 : n.id]) &&
+ null !== (e = d[null === (n = Y.current) || void 0 === n ? void 0 : n.id]) &&
void 0 !== e
? e
: []
return Object.fromEntries(
- [null === (t = K.current) || void 0 === t ? void 0 : t.id]
+ [null === (t = Y.current) || void 0 === t ? void 0 : t.id]
.concat(
- (0, a.Z)(
+ (0, s.Z)(
r.flatMap(function (e) {
return [e.source, e.target]
}),
@@ -2316,36 +2599,36 @@
}),
)
},
- [JSON.stringify(L), K.current],
+ [JSON.stringify(T), Y.current],
),
- ne = function (e) {
+ re = function (e) {
var n,
t,
r,
i,
o,
l,
- a =
+ s =
null !== (n = null === (t = d[e]) || void 0 === t ? void 0 : t.length) &&
void 0 !== n
? n
: 0,
- s = a
+ a = s
? null === (r = d[e]) || void 0 === r
? void 0
: r.filter(function (e) {
return 'parent' === e.type || 'cite' === e.type
}).length
: 0,
- c = h.parents ? a : a - s
+ c = h.parents ? s : s - a
return v.nodeColorScheme[
((i = c), (o = 0), (l = v.nodeColorScheme.length - 1), Math.min(Math.max(i, o), l))
]
},
- te = function (e, n) {
- return d[e] > d[n] ? ne(e) : ne(n)
+ ie = function (e, n) {
+ return d[e] > d[n] ? re(e) : re(n)
},
- re = function (e, n) {
+ oe = function (e, n) {
return (
'rgba(' +
(e = e.replace('#', ''))
@@ -2358,36 +2641,49 @@
')'
)
},
- ie = (0, u.useMemo)(
+ le = (0, u.useMemo)(
function () {
- return J(v.labelTextColor)
+ return $(v.labelTextColor)
},
- [v.labelTextColor, T],
+ [v.labelTextColor, P],
),
- oe = (0, u.useMemo)(
+ se = (0, u.useMemo)(
function () {
- return J(v.labelBackgroundColor)
+ return $(v.labelBackgroundColor)
},
- [v.labelBackgroundColor, T],
+ [v.labelBackgroundColor, P],
),
- le = {
- graphData: H,
+ ae = {
+ graphData: A,
width: N,
- height: I,
- backgroundColor: R.colors.gray[v.backgroundColor],
+ height: L,
+ backgroundColor: D.colors.gray[v.backgroundColor],
nodeLabel: function (e) {
return e.title
},
nodeColor: function (e) {
return (function (e) {
- var n = E[e.id] || $[e.id]
- return v.emacsNodeColor && e.id === j
- ? J(v.emacsNodeColor)
- : v.citeNodeColor && e.properties.ROAM_REFS
- ? J(v.citeNodeColor)
+ var n = H[e.id] || ne[e.id]
+ if (v.emacsNodeColor && e.id === j) return $(v.emacsNodeColor)
+ if (
+ S &&
+ e.tags.some(function (e) {
+ return S[e]
+ })
+ ) {
+ var t =
+ S[
+ e.tags.filter(function (e) {
+ return S[e]
+ })[0]
+ ]
+ return $(t)
+ }
+ return v.citeNodeColor && e.properties.ROAM_REFS
+ ? $(v.citeNodeColor)
: n && v.nodeHighlight
- ? Y[ne(e.id)][v.nodeHighlight](B)
- : J(ne(e.id))
+ ? ee[re(e.id)][v.nodeHighlight](V)
+ : $(re(e.id))
})(e)
},
nodeRelSize: v.nodeRel,
@@ -2401,37 +2697,37 @@
: 0
return (
(3 + t.length - (h.parents ? 0 : r)) *
- (E[e.id] || $[e.id] ? 1 + B * (v.highlightNodeSize - 1) : 1)
+ (H[e.id] || ne[e.id] ? 1 + V * (v.highlightNodeSize - 1) : 1)
)
},
nodeCanvasObject: function (e, n, t) {
if (e && v.labels) {
- var r = $[e.id]
- if (!(t <= v.labelScale || 1 === v.labels) || E[e.id] || r) {
+ var r = ne[e.id]
+ if (!(t <= v.labelScale || 1 === v.labels) || H[e.id] || r) {
var i = e.title,
o = i.substring(0, Math.min(i.length, 40)),
l = 12 / t,
- s = [1.1 * n.measureText(o).width, l].map(function (e) {
+ a = [1.1 * n.measureText(o).width, l].map(function (e) {
return e + 0.5 * l
}),
c = Math.min((3 * (t - v.labelScale)) / v.labelScale, 1),
u = function () {
return 1 === v.labels || t <= v.labelScale
- ? B
- : E[e.id] || $[e.id]
- ? Math.max(c, B)
- : 1 * c * (-1 * (0.5 * B - 1))
+ ? V
+ : H[e.id] || ne[e.id]
+ ? Math.max(c, V)
+ : 1 * c * (-1 * (0.5 * V - 1))
}
if (v.labelBackgroundColor && v.labelBackgroundOpacity) {
var d = u() * v.labelBackgroundOpacity,
- h = re(oe, d)
+ h = oe(se, d)
;(n.fillStyle = h),
- n.fillRect.apply(n, [e.x - s[0] / 2, e.y - s[1] / 2].concat((0, a.Z)(s)))
+ n.fillRect.apply(n, [e.x - a[0] / 2, e.y - a[1] / 2].concat((0, s.Z)(a)))
}
var g = u()
;(n.textAlign = 'center'), (n.textBaseline = 'middle')
- var x = re(ie, g)
- ;(n.fillStyle = x),
+ var f = oe(le, g)
+ ;(n.fillStyle = f),
(n.font = ''.concat(l, 'px Sans-Serif')),
n.fillText(o, e.x, e.y)
}
@@ -2445,43 +2741,43 @@
linkDirectionalArrowRelPos: v.arrowsPos,
linkDirectionalArrowColor: v.arrowsColor
? function (e) {
- return J(v.arrowsColor)
+ return $(v.arrowsColor)
}
: void 0,
linkColor: function (e) {
var n = 'object' === typeof e.source ? e.source.id : e.source,
t = 'object' === typeof e.target ? e.target.id : e.target,
- r = me(e, Z.current),
- i = me(e, K.current),
+ r = ye(e, Z.current),
+ i = ye(e, Y.current),
o = r || i,
l = e
return v.citeLinkColor && 'cite' === l.type
- ? J(v.citeLinkColor)
+ ? $(v.citeLinkColor)
: (function (e, n, t) {
if (!v.linkHighlight && !v.linkColorScheme && !t) {
- var r = te(e, n)
- return J(r)
+ var r = ie(e, n)
+ return $(r)
}
if (!t && !v.linkColorScheme) {
- var i = te(e, n)
- return J(i)
+ var i = ie(e, n)
+ return $(i)
}
- if (!t) return J(v.linkColorScheme)
+ if (!t) return $(v.linkColorScheme)
if (!v.linkHighlight && !v.linkColorScheme) {
- var o = te(e, n)
- return J(o)
+ var o = ie(e, n)
+ return $(o)
}
return v.linkHighlight
? v.linkColorScheme
- ? Y[v.linkColorScheme][v.linkHighlight](B)
- : Y[te(e, n)][v.linkHighlight](B)
- : J(v.linkColorScheme)
+ ? ee[v.linkColorScheme][v.linkHighlight](V)
+ : ee[ie(e, n)][v.linkHighlight](V)
+ : $(v.linkColorScheme)
})(n, t, o)
},
linkWidth: function (e) {
- var n = me(e, Z.current),
- t = me(e, K.current)
- return n || t ? v.linkWidth * (1 + B * (v.highlightLinkSize - 1)) : v.linkWidth
+ var n = ye(e, Z.current),
+ t = ye(e, Y.current)
+ return n || t ? v.linkWidth * (1 + V * (v.highlightLinkSize - 1)) : v.linkWidth
},
linkDirectionalParticleWidth: v.particlesWidth,
d3AlphaDecay: t.alphaDecay,
@@ -2489,41 +2785,41 @@
d3VelocityDecay: t.velocityDecay,
onNodeClick: function (e, n) {
var t = n.timeStamp - F.current < 400
- return (F.current = n.timeStamp), P(t ? 'double' : 'click', e)
+ return (F.current = n.timeStamp), E(t ? 'double' : 'click', e)
},
onBackgroundClick: function () {
- D(null),
+ R(null),
0 !== C.nodeIds.length &&
y(function (e) {
- return de(de({}, e), {}, { nodeIds: [] })
+ return xe(xe({}, e), {}, { nodeIds: [] })
})
},
onNodeHover: function (e) {
- v.highlight && (L || (G(), V(0)), D(e))
+ v.highlight && (T || (J(), X(0)), R(e))
},
onNodeRightClick: function (e) {
- P('right', e)
+ E('right', e)
},
}
return (0, l.jsx)('div', {
- children: s
+ children: a
? (0, l.jsx)(
- xe,
- de(
- de({ ref: n }, le),
+ me,
+ xe(
+ xe({ ref: n }, ae),
{},
{
nodeThreeObjectExtend: !0,
- backgroundColor: R.colors.white,
+ backgroundColor: D.colors.white,
nodeOpacity: v.nodeOpacity,
nodeResolution: v.nodeResolution,
linkOpacity: v.linkOpacity,
nodeThreeObject: function (e) {
- if (v.labels && (!(v.labels < 3) || E[e.id])) {
- var n = new se.Z(e.title.substring(0, 40))
+ if (v.labels && (!(v.labels < 3) || H[e.id])) {
+ var n = new he.Z(e.title.substring(0, 40))
return (
- (n.color = J(v.labelTextColor)),
- (n.backgroundColor = J(v.labelBackgroundColor)),
+ (n.color = $(v.labelTextColor)),
+ (n.backgroundColor = $(v.labelBackgroundColor)),
(n.padding = 2),
(n.textHeight = 8),
n
@@ -2534,9 +2830,9 @@
),
)
: (0, l.jsx)(
- ge,
- de(
- de({ ref: n }, le),
+ je,
+ xe(
+ xe({ ref: n }, ae),
{},
{
linkLineDash: function (e) {
@@ -2550,14 +2846,14 @@
),
})
})
- function me(e, n) {
+ function ye(e, n) {
return (
e.source.id === (null === n || void 0 === n ? void 0 : n.id) ||
e.target.id === (null === n || void 0 === n ? void 0 : n.id)
)
}
},
- 5301: function (e, n, t) {
+ 45301: function (e, n, t) {
;(window.__NEXT_P = window.__NEXT_P || []).push([
'/',
function () {
@@ -2567,8 +2863,8 @@
},
},
function (e) {
- e.O(0, [774, 737, 446, 906, 888, 179], function () {
- return (n = 5301), e((e.s = n))
+ e.O(0, [774, 737, 446, 13, 888, 179], function () {
+ return (n = 45301), e((e.s = n))
var n
})
var n = e.O()