@malloy-publisher/sdk 0.0.74 → 0.0.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/api.d.ts +44 -0
- package/dist/index.cjs.js +5 -5
- package/dist/index.es.js +491 -490
- package/package.json +1 -1
- package/src/components/MutableNotebook/MutableNotebook.tsx +1 -0
package/dist/index.es.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as w, jsx as u, Fragment as we } from "react/jsx-runtime";
|
|
2
2
|
import * as E from "react";
|
|
3
3
|
import N, { createContext as Or, useContext as Nr, lazy as Vs, Suspense as Fs, useEffect as Tt, useState as Mt, useRef as Ri, useCallback as _i, isValidElement as sr, cloneElement as ar, Children as ql, useMemo as Kl } from "react";
|
|
4
4
|
import { unstable_createGetCssVar as Ql, createSpacing as Yl, useTheme as Xl, unstable_memoTheme as Jl, Box as zs, Stack as Ai, createStack as Zl, keyframes as Ho, shouldForwardProp as ec, alpha as gt } from "@mui/system";
|
|
5
5
|
import tc from "@emotion/styled";
|
|
6
6
|
import { ThemeContext as nc } from "@emotion/react";
|
|
7
|
-
import { styled as Rt, Card as Zt, CardContent as en, CardMedia as rc, Typography as A, Box as Y, CircularProgress as oc, Stack as ae, CardActions as Mr, Tooltip as xe, IconButton as fe, Collapse as xt, Divider as $e, Button as He, Tabs as ic, Tab as sc, List as Lr, ListItem as tn, ListItemText as St, Table as _n, TableBody as An, TableRow as at, TableCell as ne, TableHead as fr, Dialog as ln, DialogTitle as cn, DialogContent as un, TableContainer as Uo, Paper as
|
|
7
|
+
import { styled as Rt, Card as Zt, CardContent as en, CardMedia as rc, Typography as A, Box as Y, CircularProgress as oc, Stack as ae, CardActions as Mr, Tooltip as xe, IconButton as fe, Collapse as xt, Divider as $e, Button as He, Tabs as ic, Tab as sc, List as Lr, ListItem as tn, ListItemText as St, Table as _n, TableBody as An, TableRow as at, TableCell as ne, TableHead as fr, Dialog as ln, DialogTitle as cn, DialogContent as un, TableContainer as Uo, Paper as wo, Grid as be, DialogActions as Hs, FormControl as Us, Chip as lr, Menu as Go, MenuItem as dn, DialogContentText as ac, Container as lc, ListItemIcon as Oi, TextField as cc, FormControlLabel as uc, Switch as dc, ListItemButton as Gs } from "@mui/material";
|
|
8
8
|
import ge from "axios";
|
|
9
9
|
import { QueryClient as pc, useQuery as hc, useMutation as mc } from "@tanstack/react-query";
|
|
10
10
|
import * as fc from "@malloydata/malloy-query-builder";
|
|
11
11
|
import { MalloyExplorerProvider as gc, ResizableCollapsiblePanel as Ni, SourcePanel as bc, QueryPanel as yc, ResultPanel as xc } from "@malloydata/malloy-explorer";
|
|
12
12
|
import Wo from "markdown-to-jsx";
|
|
13
|
-
import { ExpandLess as Sc, ExpandMore as Cc, Add as
|
|
13
|
+
import { ExpandLess as Sc, ExpandMore as Cc, Add as wc, Launch as vc } from "@mui/icons-material";
|
|
14
14
|
import { useNavigate as kc, useParams as Ic } from "react-router-dom";
|
|
15
15
|
import { animated as Ec, useSpring as Tc } from "@react-spring/web";
|
|
16
16
|
import Jn from "react-dom";
|
|
@@ -300,7 +300,7 @@ const $r = {
|
|
|
300
300
|
}
|
|
301
301
|
})
|
|
302
302
|
};
|
|
303
|
-
function
|
|
303
|
+
function wt(e, t, n) {
|
|
304
304
|
const r = e.theme || {};
|
|
305
305
|
if (Array.isArray(t)) {
|
|
306
306
|
const i = r.breakpoints || Fi;
|
|
@@ -350,7 +350,7 @@ function gr(e, t, n, r = n) {
|
|
|
350
350
|
let o;
|
|
351
351
|
return typeof e == "function" ? o = e(n) : Array.isArray(e) ? o = e[n] || r : o = Dr(e, n) || r, t && (o = t(o, r, e)), o;
|
|
352
352
|
}
|
|
353
|
-
function
|
|
353
|
+
function ve(e) {
|
|
354
354
|
const {
|
|
355
355
|
prop: t,
|
|
356
356
|
cssProperty: n = e.prop,
|
|
@@ -360,7 +360,7 @@ function we(e) {
|
|
|
360
360
|
if (s[t] == null)
|
|
361
361
|
return null;
|
|
362
362
|
const a = s[t], l = s.theme, c = Dr(l, r) || {};
|
|
363
|
-
return
|
|
363
|
+
return wt(s, a, (p) => {
|
|
364
364
|
let m = gr(c, o, p);
|
|
365
365
|
return p === m && typeof p == "string" && (m = gr(c, o, `${t}${p === "default" ? "" : rt(p)}`, p)), n === !1 ? m : {
|
|
366
366
|
[n]: m
|
|
@@ -421,7 +421,7 @@ function Yc(e, t, n, r) {
|
|
|
421
421
|
if (!t.includes(n))
|
|
422
422
|
return null;
|
|
423
423
|
const o = Kc(n), i = Qc(o, r), s = e[n];
|
|
424
|
-
return
|
|
424
|
+
return wt(e, s, i);
|
|
425
425
|
}
|
|
426
426
|
function Qs(e, t) {
|
|
427
427
|
const n = Qo(e.theme);
|
|
@@ -447,7 +447,7 @@ function Ze(e) {
|
|
|
447
447
|
return typeof e != "number" ? e : `${e}px solid`;
|
|
448
448
|
}
|
|
449
449
|
function tt(e, t) {
|
|
450
|
-
return
|
|
450
|
+
return ve({
|
|
451
451
|
prop: e,
|
|
452
452
|
themeKey: "borders",
|
|
453
453
|
transform: t
|
|
@@ -458,7 +458,7 @@ const Xc = tt("border", Ze), Jc = tt("borderTop", Ze), Zc = tt("borderRight", Ze
|
|
|
458
458
|
const t = Fn(e.theme, "shape.borderRadius", 4), n = (r) => ({
|
|
459
459
|
borderRadius: zn(t, r)
|
|
460
460
|
});
|
|
461
|
-
return
|
|
461
|
+
return wt(e, e.borderRadius, n);
|
|
462
462
|
}
|
|
463
463
|
return null;
|
|
464
464
|
};
|
|
@@ -470,7 +470,7 @@ const Vr = (e) => {
|
|
|
470
470
|
const t = Fn(e.theme, "spacing", 8), n = (r) => ({
|
|
471
471
|
gap: zn(t, r)
|
|
472
472
|
});
|
|
473
|
-
return
|
|
473
|
+
return wt(e, e.gap, n);
|
|
474
474
|
}
|
|
475
475
|
return null;
|
|
476
476
|
};
|
|
@@ -481,7 +481,7 @@ const Fr = (e) => {
|
|
|
481
481
|
const t = Fn(e.theme, "spacing", 8), n = (r) => ({
|
|
482
482
|
columnGap: zn(t, r)
|
|
483
483
|
});
|
|
484
|
-
return
|
|
484
|
+
return wt(e, e.columnGap, n);
|
|
485
485
|
}
|
|
486
486
|
return null;
|
|
487
487
|
};
|
|
@@ -492,45 +492,45 @@ const zr = (e) => {
|
|
|
492
492
|
const t = Fn(e.theme, "spacing", 8), n = (r) => ({
|
|
493
493
|
rowGap: zn(t, r)
|
|
494
494
|
});
|
|
495
|
-
return
|
|
495
|
+
return wt(e, e.rowGap, n);
|
|
496
496
|
}
|
|
497
497
|
return null;
|
|
498
498
|
};
|
|
499
499
|
zr.propTypes = {};
|
|
500
500
|
zr.filterProps = ["rowGap"];
|
|
501
|
-
const cu =
|
|
501
|
+
const cu = ve({
|
|
502
502
|
prop: "gridColumn"
|
|
503
|
-
}), uu =
|
|
503
|
+
}), uu = ve({
|
|
504
504
|
prop: "gridRow"
|
|
505
|
-
}), du =
|
|
505
|
+
}), du = ve({
|
|
506
506
|
prop: "gridAutoFlow"
|
|
507
|
-
}), pu =
|
|
507
|
+
}), pu = ve({
|
|
508
508
|
prop: "gridAutoColumns"
|
|
509
|
-
}), hu =
|
|
509
|
+
}), hu = ve({
|
|
510
510
|
prop: "gridAutoRows"
|
|
511
|
-
}), mu =
|
|
511
|
+
}), mu = ve({
|
|
512
512
|
prop: "gridTemplateColumns"
|
|
513
|
-
}), fu =
|
|
513
|
+
}), fu = ve({
|
|
514
514
|
prop: "gridTemplateRows"
|
|
515
|
-
}), gu =
|
|
515
|
+
}), gu = ve({
|
|
516
516
|
prop: "gridTemplateAreas"
|
|
517
|
-
}), bu =
|
|
517
|
+
}), bu = ve({
|
|
518
518
|
prop: "gridArea"
|
|
519
519
|
});
|
|
520
520
|
Br(Vr, Fr, zr, cu, uu, du, pu, hu, mu, fu, gu, bu);
|
|
521
521
|
function rn(e, t) {
|
|
522
522
|
return t === "grey" ? t : e;
|
|
523
523
|
}
|
|
524
|
-
const yu =
|
|
524
|
+
const yu = ve({
|
|
525
525
|
prop: "color",
|
|
526
526
|
themeKey: "palette",
|
|
527
527
|
transform: rn
|
|
528
|
-
}), xu =
|
|
528
|
+
}), xu = ve({
|
|
529
529
|
prop: "bgcolor",
|
|
530
530
|
cssProperty: "backgroundColor",
|
|
531
531
|
themeKey: "palette",
|
|
532
532
|
transform: rn
|
|
533
|
-
}), Su =
|
|
533
|
+
}), Su = ve({
|
|
534
534
|
prop: "backgroundColor",
|
|
535
535
|
themeKey: "palette",
|
|
536
536
|
transform: rn
|
|
@@ -539,7 +539,7 @@ Br(yu, xu, Su);
|
|
|
539
539
|
function We(e) {
|
|
540
540
|
return e <= 1 && e !== 0 ? `${e * 100}%` : e;
|
|
541
541
|
}
|
|
542
|
-
const Cu =
|
|
542
|
+
const Cu = ve({
|
|
543
543
|
prop: "width",
|
|
544
544
|
transform: We
|
|
545
545
|
}), Yo = (e) => {
|
|
@@ -554,38 +554,38 @@ const Cu = we({
|
|
|
554
554
|
maxWidth: We(n)
|
|
555
555
|
};
|
|
556
556
|
};
|
|
557
|
-
return
|
|
557
|
+
return wt(e, e.maxWidth, t);
|
|
558
558
|
}
|
|
559
559
|
return null;
|
|
560
560
|
};
|
|
561
561
|
Yo.filterProps = ["maxWidth"];
|
|
562
|
-
const
|
|
562
|
+
const wu = ve({
|
|
563
563
|
prop: "minWidth",
|
|
564
564
|
transform: We
|
|
565
|
-
}),
|
|
565
|
+
}), vu = ve({
|
|
566
566
|
prop: "height",
|
|
567
567
|
transform: We
|
|
568
|
-
}), ku =
|
|
568
|
+
}), ku = ve({
|
|
569
569
|
prop: "maxHeight",
|
|
570
570
|
transform: We
|
|
571
|
-
}), Iu =
|
|
571
|
+
}), Iu = ve({
|
|
572
572
|
prop: "minHeight",
|
|
573
573
|
transform: We
|
|
574
574
|
});
|
|
575
|
-
|
|
575
|
+
ve({
|
|
576
576
|
prop: "size",
|
|
577
577
|
cssProperty: "width",
|
|
578
578
|
transform: We
|
|
579
579
|
});
|
|
580
|
-
|
|
580
|
+
ve({
|
|
581
581
|
prop: "size",
|
|
582
582
|
cssProperty: "height",
|
|
583
583
|
transform: We
|
|
584
584
|
});
|
|
585
|
-
const Eu =
|
|
585
|
+
const Eu = ve({
|
|
586
586
|
prop: "boxSizing"
|
|
587
587
|
});
|
|
588
|
-
Br(Cu, Yo,
|
|
588
|
+
Br(Cu, Yo, wu, vu, ku, Iu, Eu);
|
|
589
589
|
const Hr = {
|
|
590
590
|
// borders
|
|
591
591
|
border: {
|
|
@@ -904,7 +904,7 @@ function Ru() {
|
|
|
904
904
|
[n]: r
|
|
905
905
|
};
|
|
906
906
|
const m = Dr(o, c) || {};
|
|
907
|
-
return p ? p(s) :
|
|
907
|
+
return p ? p(s) : wt(s, r, (f) => {
|
|
908
908
|
let b = gr(m, d, f);
|
|
909
909
|
return f === b && typeof f == "string" && (b = gr(m, d, `${n}${f === "default" ? "" : rt(f)}`, f)), l === !1 ? b : {
|
|
910
910
|
[l]: b
|
|
@@ -936,7 +936,7 @@ function Ru() {
|
|
|
936
936
|
if (i[m])
|
|
937
937
|
p = En(p, e(m, h, o, i));
|
|
938
938
|
else {
|
|
939
|
-
const f =
|
|
939
|
+
const f = wt({
|
|
940
940
|
theme: o
|
|
941
941
|
}, h, (b) => ({
|
|
942
942
|
[m]: b
|
|
@@ -991,7 +991,7 @@ function Pt(e) {
|
|
|
991
991
|
const Ou = (e) => {
|
|
992
992
|
const t = Pt(e);
|
|
993
993
|
return t.values.slice(0, 3).map((n, r) => t.type.includes("hsl") && r !== 0 ? `${n}%` : n).join(" ");
|
|
994
|
-
},
|
|
994
|
+
}, wn = (e, t) => {
|
|
995
995
|
try {
|
|
996
996
|
return Ou(e);
|
|
997
997
|
} catch {
|
|
@@ -1020,13 +1020,13 @@ function Ys(e) {
|
|
|
1020
1020
|
values: l
|
|
1021
1021
|
});
|
|
1022
1022
|
}
|
|
1023
|
-
function
|
|
1023
|
+
function vo(e) {
|
|
1024
1024
|
e = Pt(e);
|
|
1025
1025
|
let t = e.type === "hsl" || e.type === "hsla" ? Pt(Ys(e)).values : e.values;
|
|
1026
1026
|
return t = t.map((n) => (e.type !== "color" && (n /= 255), n <= 0.03928 ? n / 12.92 : ((n + 0.055) / 1.055) ** 2.4)), Number((0.2126 * t[0] + 0.7152 * t[1] + 0.0722 * t[2]).toFixed(3));
|
|
1027
1027
|
}
|
|
1028
1028
|
function Nu(e, t) {
|
|
1029
|
-
const n =
|
|
1029
|
+
const n = vo(e), r = vo(t);
|
|
1030
1030
|
return (Math.max(n, r) + 0.05) / (Math.min(n, r) + 0.05);
|
|
1031
1031
|
}
|
|
1032
1032
|
function ko(e, t) {
|
|
@@ -1073,7 +1073,7 @@ function oe(e, t, n) {
|
|
|
1073
1073
|
}
|
|
1074
1074
|
}
|
|
1075
1075
|
function Mu(e, t = 0.15) {
|
|
1076
|
-
return
|
|
1076
|
+
return vo(e) > 0.5 ? Jo(e, t) : Zo(e, t);
|
|
1077
1077
|
}
|
|
1078
1078
|
function er(e, t, n) {
|
|
1079
1079
|
try {
|
|
@@ -1687,36 +1687,36 @@ function ld(e, t = {}) {
|
|
|
1687
1687
|
} = i;
|
|
1688
1688
|
if (Object.entries(b || {}).forEach(([C, k]) => {
|
|
1689
1689
|
const {
|
|
1690
|
-
vars:
|
|
1690
|
+
vars: v,
|
|
1691
1691
|
css: P,
|
|
1692
1692
|
varsWithDefaults: M
|
|
1693
1693
|
} = lo(k, t);
|
|
1694
1694
|
m = qe(m, M), h[C] = {
|
|
1695
1695
|
css: P,
|
|
1696
|
-
vars:
|
|
1696
|
+
vars: v
|
|
1697
1697
|
};
|
|
1698
1698
|
}), f) {
|
|
1699
1699
|
const {
|
|
1700
1700
|
css: C,
|
|
1701
1701
|
vars: k,
|
|
1702
|
-
varsWithDefaults:
|
|
1702
|
+
varsWithDefaults: v
|
|
1703
1703
|
} = lo(f, t);
|
|
1704
|
-
m = qe(m,
|
|
1704
|
+
m = qe(m, v), h[a] = {
|
|
1705
1705
|
css: C,
|
|
1706
1706
|
vars: k
|
|
1707
1707
|
};
|
|
1708
1708
|
}
|
|
1709
1709
|
function y(C, k) {
|
|
1710
|
-
let
|
|
1711
|
-
if (o === "class" && (
|
|
1712
|
-
if (
|
|
1710
|
+
let v = o;
|
|
1711
|
+
if (o === "class" && (v = ".%s"), o === "data" && (v = "[data-%s]"), o?.startsWith("data-") && !o.includes("%s") && (v = `[${o}="%s"]`), C) {
|
|
1712
|
+
if (v === "media")
|
|
1713
1713
|
return e.defaultColorScheme === C ? ":root" : {
|
|
1714
1714
|
[`@media (prefers-color-scheme: ${i[C]?.palette?.mode || C})`]: {
|
|
1715
1715
|
":root": k
|
|
1716
1716
|
}
|
|
1717
1717
|
};
|
|
1718
|
-
if (
|
|
1719
|
-
return e.defaultColorScheme === C ? `:root, ${
|
|
1718
|
+
if (v)
|
|
1719
|
+
return e.defaultColorScheme === C ? `:root, ${v.replace("%s", String(C))}` : v.replace("%s", String(C));
|
|
1720
1720
|
}
|
|
1721
1721
|
return ":root";
|
|
1722
1722
|
}
|
|
@@ -1734,14 +1734,14 @@ function ld(e, t = {}) {
|
|
|
1734
1734
|
},
|
|
1735
1735
|
generateStyleSheets: () => {
|
|
1736
1736
|
const C = [], k = e.defaultColorScheme || "light";
|
|
1737
|
-
function
|
|
1737
|
+
function v(V, F) {
|
|
1738
1738
|
Object.keys(F).length && C.push(typeof V == "string" ? {
|
|
1739
1739
|
[V]: {
|
|
1740
1740
|
...F
|
|
1741
1741
|
}
|
|
1742
1742
|
} : V);
|
|
1743
1743
|
}
|
|
1744
|
-
|
|
1744
|
+
v(n(void 0, {
|
|
1745
1745
|
...d
|
|
1746
1746
|
}), d);
|
|
1747
1747
|
const {
|
|
@@ -1757,7 +1757,7 @@ function ld(e, t = {}) {
|
|
|
1757
1757
|
} : {
|
|
1758
1758
|
...V
|
|
1759
1759
|
};
|
|
1760
|
-
|
|
1760
|
+
v(n(k, {
|
|
1761
1761
|
...g
|
|
1762
1762
|
}), g);
|
|
1763
1763
|
}
|
|
@@ -1770,7 +1770,7 @@ function ld(e, t = {}) {
|
|
|
1770
1770
|
} : {
|
|
1771
1771
|
...F
|
|
1772
1772
|
};
|
|
1773
|
-
|
|
1773
|
+
v(n(V, {
|
|
1774
1774
|
...R
|
|
1775
1775
|
}), R);
|
|
1776
1776
|
}), C;
|
|
@@ -2015,11 +2015,11 @@ function xd(e, t) {
|
|
|
2015
2015
|
// No need to clone deep
|
|
2016
2016
|
});
|
|
2017
2017
|
}
|
|
2018
|
-
const Sd = 0.2, Cd = 0.14,
|
|
2018
|
+
const Sd = 0.2, Cd = 0.14, wd = 0.12;
|
|
2019
2019
|
function pe(...e) {
|
|
2020
|
-
return [`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Sd})`, `${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Cd})`, `${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${
|
|
2020
|
+
return [`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Sd})`, `${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Cd})`, `${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${wd})`].join(",");
|
|
2021
2021
|
}
|
|
2022
|
-
const
|
|
2022
|
+
const vd = ["none", pe(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), pe(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), pe(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), pe(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), pe(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), pe(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), pe(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), pe(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), pe(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), pe(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), pe(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), pe(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), pe(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), pe(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), pe(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), pe(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), pe(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), pe(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), pe(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), pe(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), pe(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), pe(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), pe(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), pe(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)], kd = {
|
|
2023
2023
|
// This is the most common easing curve.
|
|
2024
2024
|
easeInOut: "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
2025
2025
|
// Objects enter the screen at full velocity from off-screen and
|
|
@@ -2130,7 +2130,7 @@ function Io(e = {}, ...t) {
|
|
|
2130
2130
|
mixins: bd(p.breakpoints, r),
|
|
2131
2131
|
palette: d,
|
|
2132
2132
|
// Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol.
|
|
2133
|
-
shadows:
|
|
2133
|
+
shadows: vd.slice(),
|
|
2134
2134
|
typography: xd(d, a),
|
|
2135
2135
|
transitions: Ed(s),
|
|
2136
2136
|
zIndex: {
|
|
@@ -2237,11 +2237,11 @@ function Ld(e, t) {
|
|
|
2237
2237
|
function I(e, t, n) {
|
|
2238
2238
|
!e[t] && n && (e[t] = n);
|
|
2239
2239
|
}
|
|
2240
|
-
function
|
|
2240
|
+
function vn(e) {
|
|
2241
2241
|
return typeof e != "string" || !e.startsWith("hsl") ? e : Ys(e);
|
|
2242
2242
|
}
|
|
2243
2243
|
function ut(e, t) {
|
|
2244
|
-
`${t}Channel` in e || (e[`${t}Channel`] = vn(
|
|
2244
|
+
`${t}Channel` in e || (e[`${t}Channel`] = wn(vn(e[t])));
|
|
2245
2245
|
}
|
|
2246
2246
|
function $d(e) {
|
|
2247
2247
|
return typeof e == "number" ? `${e}px` : typeof e == "string" || typeof e == "function" || Array.isArray(e) ? e : "8px";
|
|
@@ -2343,10 +2343,10 @@ function Bd(e = {}, ...t) {
|
|
|
2343
2343
|
}
|
|
2344
2344
|
ut(g.background, "default"), ut(g.background, "paper"), ut(g.common, "background"), ut(g.common, "onBackground"), ut(g, "divider"), Object.keys(g).forEach((O) => {
|
|
2345
2345
|
const D = g[O];
|
|
2346
|
-
O !== "tonalOffset" && D && typeof D == "object" && (D.main && I(g[O], "mainChannel", vn(
|
|
2346
|
+
O !== "tonalOffset" && D && typeof D == "object" && (D.main && I(g[O], "mainChannel", wn(vn(D.main))), D.light && I(g[O], "lightChannel", wn(vn(D.light))), D.dark && I(g[O], "darkChannel", wn(vn(D.dark))), D.contrastText && I(g[O], "contrastTextChannel", wn(vn(D.contrastText))), O === "text" && (ut(g[O], "primary"), ut(g[O], "secondary")), O === "action" && (D.active && ut(g[O], "active"), D.selected && ut(g[O], "selected")));
|
|
2347
2347
|
});
|
|
2348
2348
|
}), k = t.reduce((F, g) => qe(F, g), k);
|
|
2349
|
-
const
|
|
2349
|
+
const v = {
|
|
2350
2350
|
prefix: i,
|
|
2351
2351
|
disableCssColorScheme: o,
|
|
2352
2352
|
shouldSkipGeneratingVar: s,
|
|
@@ -2355,7 +2355,7 @@ function Bd(e = {}, ...t) {
|
|
|
2355
2355
|
vars: P,
|
|
2356
2356
|
generateThemeVars: M,
|
|
2357
2357
|
generateStyleSheets: V
|
|
2358
|
-
} = ld(k,
|
|
2358
|
+
} = ld(k, v);
|
|
2359
2359
|
return k.vars = P, Object.entries(k.colorSchemes[k.defaultColorScheme]).forEach(([F, g]) => {
|
|
2360
2360
|
k[F] = g;
|
|
2361
2361
|
}), k.generateThemeVars = M, k.generateStyleSheets = V, k.generateSpacing = function() {
|
|
@@ -2505,7 +2505,7 @@ function Gd(e = {}) {
|
|
|
2505
2505
|
Ud(a, t, n);
|
|
2506
2506
|
}
|
|
2507
2507
|
return (a, l = {}) => {
|
|
2508
|
-
Xu(a, (
|
|
2508
|
+
Xu(a, (v) => v.filter((P) => P !== pn));
|
|
2509
2509
|
const {
|
|
2510
2510
|
name: c,
|
|
2511
2511
|
slot: d,
|
|
@@ -2526,22 +2526,22 @@ function Gd(e = {}) {
|
|
|
2526
2526
|
shouldForwardProp: x,
|
|
2527
2527
|
label: Wd(),
|
|
2528
2528
|
...f
|
|
2529
|
-
}), C = (
|
|
2530
|
-
if (
|
|
2531
|
-
return
|
|
2532
|
-
if (typeof
|
|
2529
|
+
}), C = (v) => {
|
|
2530
|
+
if (v.__emotion_real === v)
|
|
2531
|
+
return v;
|
|
2532
|
+
if (typeof v == "function")
|
|
2533
2533
|
return function(M) {
|
|
2534
|
-
return cr(M,
|
|
2534
|
+
return cr(M, v);
|
|
2535
2535
|
};
|
|
2536
|
-
if (ft(
|
|
2537
|
-
const P = Fd(
|
|
2536
|
+
if (ft(v)) {
|
|
2537
|
+
const P = Fd(v);
|
|
2538
2538
|
return P.variants ? function(V) {
|
|
2539
2539
|
return cr(V, P);
|
|
2540
2540
|
} : P.style;
|
|
2541
2541
|
}
|
|
2542
|
-
return
|
|
2543
|
-
}, k = (...
|
|
2544
|
-
const P = [], M =
|
|
2542
|
+
return v;
|
|
2543
|
+
}, k = (...v) => {
|
|
2544
|
+
const P = [], M = v.map(C), V = [];
|
|
2545
2545
|
if (P.push(i), c && h && V.push(function(O) {
|
|
2546
2546
|
const j = O.theme.components?.[c]?.styleOverrides;
|
|
2547
2547
|
if (!j)
|
|
@@ -2733,7 +2733,7 @@ const Jd = (e) => {
|
|
|
2733
2733
|
}, y = {};
|
|
2734
2734
|
d || (y.viewBox = m);
|
|
2735
2735
|
const x = Jd(b);
|
|
2736
|
-
return /* @__PURE__ */
|
|
2736
|
+
return /* @__PURE__ */ w(Zd, {
|
|
2737
2737
|
as: a,
|
|
2738
2738
|
className: Ce(x.root, i),
|
|
2739
2739
|
focusable: "false",
|
|
@@ -5661,10 +5661,10 @@ let Ct = class extends Error {
|
|
|
5661
5661
|
super(t), this.name = "ShikiError";
|
|
5662
5662
|
}
|
|
5663
5663
|
};
|
|
5664
|
-
function
|
|
5664
|
+
function wp() {
|
|
5665
5665
|
return 2147483648;
|
|
5666
5666
|
}
|
|
5667
|
-
function
|
|
5667
|
+
function vp() {
|
|
5668
5668
|
return typeof performance < "u" ? performance.now() : Date.now();
|
|
5669
5669
|
}
|
|
5670
5670
|
const kp = (e, t) => e + (t - e % t) % t;
|
|
@@ -5686,7 +5686,7 @@ async function Ip(e) {
|
|
|
5686
5686
|
function a(h) {
|
|
5687
5687
|
const f = r.HEAPU8.length;
|
|
5688
5688
|
h = h >>> 0;
|
|
5689
|
-
const b =
|
|
5689
|
+
const b = wp();
|
|
5690
5690
|
if (h > b)
|
|
5691
5691
|
return !1;
|
|
5692
5692
|
for (let y = 1; y <= 4; y *= 2) {
|
|
@@ -5718,8 +5718,8 @@ async function Ip(e) {
|
|
|
5718
5718
|
S += String.fromCharCode((C & 31) << 6 | k);
|
|
5719
5719
|
continue;
|
|
5720
5720
|
}
|
|
5721
|
-
const
|
|
5722
|
-
if ((C & 240) === 224 ? C = (C & 15) << 12 | k << 6 |
|
|
5721
|
+
const v = h[f++] & 63;
|
|
5722
|
+
if ((C & 240) === 224 ? C = (C & 15) << 12 | k << 6 | v : C = (C & 7) << 18 | k << 12 | v << 6 | h[f++] & 63, C < 65536)
|
|
5723
5723
|
S += String.fromCharCode(C);
|
|
5724
5724
|
else {
|
|
5725
5725
|
const P = C - 65536;
|
|
@@ -5732,7 +5732,7 @@ async function Ip(e) {
|
|
|
5732
5732
|
return h ? c(r.HEAPU8, h, f) : "";
|
|
5733
5733
|
}
|
|
5734
5734
|
const p = {
|
|
5735
|
-
emscripten_get_now:
|
|
5735
|
+
emscripten_get_now: vp,
|
|
5736
5736
|
emscripten_memcpy_big: i,
|
|
5737
5737
|
emscripten_resize_heap: a,
|
|
5738
5738
|
fd_write: () => 0
|
|
@@ -6469,27 +6469,27 @@ function th(e, t, n, r) {
|
|
|
6469
6469
|
function _o(e, t, n) {
|
|
6470
6470
|
if (t.repository && t.repository[e]) {
|
|
6471
6471
|
const r = t.repository[e];
|
|
6472
|
-
|
|
6472
|
+
wr([r], t, n);
|
|
6473
6473
|
}
|
|
6474
6474
|
}
|
|
6475
6475
|
function pr(e, t) {
|
|
6476
|
-
e.selfGrammar.patterns && Array.isArray(e.selfGrammar.patterns) &&
|
|
6476
|
+
e.selfGrammar.patterns && Array.isArray(e.selfGrammar.patterns) && wr(
|
|
6477
6477
|
e.selfGrammar.patterns,
|
|
6478
6478
|
{ ...e, repository: e.selfGrammar.repository },
|
|
6479
6479
|
t
|
|
6480
|
-
), e.selfGrammar.injections &&
|
|
6480
|
+
), e.selfGrammar.injections && wr(
|
|
6481
6481
|
Object.values(e.selfGrammar.injections),
|
|
6482
6482
|
{ ...e, repository: e.selfGrammar.repository },
|
|
6483
6483
|
t
|
|
6484
6484
|
);
|
|
6485
6485
|
}
|
|
6486
|
-
function
|
|
6486
|
+
function wr(e, t, n) {
|
|
6487
6487
|
for (const r of e) {
|
|
6488
6488
|
if (n.visitedRule.has(r))
|
|
6489
6489
|
continue;
|
|
6490
6490
|
n.visitedRule.add(r);
|
|
6491
6491
|
const o = r.repository ? pa({}, t.repository, r.repository) : t.repository;
|
|
6492
|
-
Array.isArray(r.patterns) &&
|
|
6492
|
+
Array.isArray(r.patterns) && wr(r.patterns, { ...t, repository: o }, n);
|
|
6493
6493
|
const i = r.include;
|
|
6494
6494
|
if (!i)
|
|
6495
6495
|
continue;
|
|
@@ -6551,7 +6551,7 @@ function Ca(e) {
|
|
|
6551
6551
|
return new sh(n, r);
|
|
6552
6552
|
}
|
|
6553
6553
|
}
|
|
6554
|
-
var ah = /\\(\d+)/, as = /\\(\d+)/g, lh = -1,
|
|
6554
|
+
var ah = /\\(\d+)/, as = /\\(\d+)/g, lh = -1, wa = -2;
|
|
6555
6555
|
var Gn = class {
|
|
6556
6556
|
$location;
|
|
6557
6557
|
id;
|
|
@@ -6679,7 +6679,7 @@ var Gn = class {
|
|
|
6679
6679
|
}
|
|
6680
6680
|
return this._end.hasBackReferences && (this.applyEndPatternLast ? this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length() - 1, t) : this._cachedCompiledPatterns.setSource(0, t)), this._cachedCompiledPatterns;
|
|
6681
6681
|
}
|
|
6682
|
-
},
|
|
6682
|
+
}, vr = class extends Gn {
|
|
6683
6683
|
_begin;
|
|
6684
6684
|
beginCaptures;
|
|
6685
6685
|
whileCaptures;
|
|
@@ -6690,7 +6690,7 @@ var Gn = class {
|
|
|
6690
6690
|
_cachedCompiledPatterns;
|
|
6691
6691
|
_cachedCompiledWhilePatterns;
|
|
6692
6692
|
constructor(e, t, n, r, o, i, s, a, l) {
|
|
6693
|
-
super(e, t, n, r), this._begin = new Mn(o, this.id), this.beginCaptures = i, this.whileCaptures = a, this._while = new Mn(s,
|
|
6693
|
+
super(e, t, n, r), this._begin = new Mn(o, this.id), this.beginCaptures = i, this.whileCaptures = a, this._while = new Mn(s, wa), this.whileHasBackReferences = this._while.hasBackReferences, this.patterns = l.patterns, this.hasMissingPatterns = l.hasMissingPatterns, this._cachedCompiledPatterns = null, this._cachedCompiledWhilePatterns = null;
|
|
6694
6694
|
}
|
|
6695
6695
|
dispose() {
|
|
6696
6696
|
this._cachedCompiledPatterns && (this._cachedCompiledPatterns.dispose(), this._cachedCompiledPatterns = null), this._cachedCompiledWhilePatterns && (this._cachedCompiledWhilePatterns.dispose(), this._cachedCompiledWhilePatterns = null);
|
|
@@ -6730,7 +6730,7 @@ var Gn = class {
|
|
|
6730
6730
|
_getCachedCompiledWhilePatterns(e, t) {
|
|
6731
6731
|
return this._cachedCompiledWhilePatterns || (this._cachedCompiledWhilePatterns = new Ln(), this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences ? this._while.clone() : this._while)), this._while.hasBackReferences && this._cachedCompiledWhilePatterns.setSource(0, t || ""), this._cachedCompiledWhilePatterns;
|
|
6732
6732
|
}
|
|
6733
|
-
},
|
|
6733
|
+
}, va = class De {
|
|
6734
6734
|
static createCaptureRule(t, n, r, o, i) {
|
|
6735
6735
|
return t.registerRule((s) => new ch(n, s, r, o, i));
|
|
6736
6736
|
}
|
|
@@ -6755,7 +6755,7 @@ var Gn = class {
|
|
|
6755
6755
|
De._compilePatterns(i, n, r)
|
|
6756
6756
|
);
|
|
6757
6757
|
}
|
|
6758
|
-
return t.while ? new
|
|
6758
|
+
return t.while ? new vr(
|
|
6759
6759
|
t.$vscodeTextmateLocation,
|
|
6760
6760
|
t.id,
|
|
6761
6761
|
t.name,
|
|
@@ -6834,7 +6834,7 @@ var Gn = class {
|
|
|
6834
6834
|
if (l !== -1) {
|
|
6835
6835
|
const c = n.getRule(l);
|
|
6836
6836
|
let d = !1;
|
|
6837
|
-
if ((c instanceof ls || c instanceof Ao || c instanceof
|
|
6837
|
+
if ((c instanceof ls || c instanceof Ao || c instanceof vr) && c.hasMissingPatterns && c.patterns.length === 0 && (d = !0), d)
|
|
6838
6838
|
continue;
|
|
6839
6839
|
o.push(l);
|
|
6840
6840
|
}
|
|
@@ -7106,25 +7106,25 @@ function Ia(e, t, n, r, o, i, s, a) {
|
|
|
7106
7106
|
k,
|
|
7107
7107
|
k
|
|
7108
7108
|
), x instanceof Ao) {
|
|
7109
|
-
const
|
|
7109
|
+
const v = x;
|
|
7110
7110
|
kn(
|
|
7111
7111
|
e,
|
|
7112
7112
|
t,
|
|
7113
7113
|
n,
|
|
7114
7114
|
o,
|
|
7115
7115
|
i,
|
|
7116
|
-
|
|
7116
|
+
v.beginCaptures,
|
|
7117
7117
|
f
|
|
7118
7118
|
), i.produce(o, f[0].end), d = f[0].end;
|
|
7119
|
-
const P =
|
|
7119
|
+
const P = v.getContentName(
|
|
7120
7120
|
t.content,
|
|
7121
7121
|
f
|
|
7122
7122
|
), M = k.pushAttributed(
|
|
7123
7123
|
P,
|
|
7124
7124
|
e
|
|
7125
7125
|
);
|
|
7126
|
-
if (o = o.withContentNameScopesList(M),
|
|
7127
|
-
|
|
7126
|
+
if (o = o.withContentNameScopesList(M), v.endHasBackReferences && (o = o.withEndRule(
|
|
7127
|
+
v.getEndWithResolvedBackReferences(
|
|
7128
7128
|
t.content,
|
|
7129
7129
|
f
|
|
7130
7130
|
)
|
|
@@ -7132,26 +7132,26 @@ function Ia(e, t, n, r, o, i, s, a) {
|
|
|
7132
7132
|
o = o.pop(), i.produce(o, l), c = !0;
|
|
7133
7133
|
return;
|
|
7134
7134
|
}
|
|
7135
|
-
} else if (x instanceof
|
|
7136
|
-
const
|
|
7135
|
+
} else if (x instanceof vr) {
|
|
7136
|
+
const v = x;
|
|
7137
7137
|
kn(
|
|
7138
7138
|
e,
|
|
7139
7139
|
t,
|
|
7140
7140
|
n,
|
|
7141
7141
|
o,
|
|
7142
7142
|
i,
|
|
7143
|
-
|
|
7143
|
+
v.beginCaptures,
|
|
7144
7144
|
f
|
|
7145
7145
|
), i.produce(o, f[0].end), d = f[0].end;
|
|
7146
|
-
const P =
|
|
7146
|
+
const P = v.getContentName(
|
|
7147
7147
|
t.content,
|
|
7148
7148
|
f
|
|
7149
7149
|
), M = k.pushAttributed(
|
|
7150
7150
|
P,
|
|
7151
7151
|
e
|
|
7152
7152
|
);
|
|
7153
|
-
if (o = o.withContentNameScopesList(M),
|
|
7154
|
-
|
|
7153
|
+
if (o = o.withContentNameScopesList(M), v.whileHasBackReferences && (o = o.withEndRule(
|
|
7154
|
+
v.getWhileWithResolvedBackReferences(
|
|
7155
7155
|
t.content,
|
|
7156
7156
|
f
|
|
7157
7157
|
)
|
|
@@ -7180,7 +7180,7 @@ function hh(e, t, n, r, o, i) {
|
|
|
7180
7180
|
const a = [];
|
|
7181
7181
|
for (let l = o; l; l = l.pop()) {
|
|
7182
7182
|
const c = l.getRule(e);
|
|
7183
|
-
c instanceof
|
|
7183
|
+
c instanceof vr && a.push({
|
|
7184
7184
|
rule: c,
|
|
7185
7185
|
stack: l
|
|
7186
7186
|
});
|
|
@@ -7188,7 +7188,7 @@ function hh(e, t, n, r, o, i) {
|
|
|
7188
7188
|
for (let l = a.pop(); l; l = a.pop()) {
|
|
7189
7189
|
const { ruleScanner: c, findOptions: d } = bh(l.rule, e, l.stack.endRule, n, r === s), p = c.findNextMatchSync(t, r, d);
|
|
7190
7190
|
if (p) {
|
|
7191
|
-
if (p.ruleId !==
|
|
7191
|
+
if (p.ruleId !== wa) {
|
|
7192
7192
|
o = l.stack.pop();
|
|
7193
7193
|
break;
|
|
7194
7194
|
}
|
|
@@ -7312,7 +7312,7 @@ function xh(e, t, n, r, o, i, s, a) {
|
|
|
7312
7312
|
);
|
|
7313
7313
|
}
|
|
7314
7314
|
function ds(e, t, n, r, o) {
|
|
7315
|
-
const i = Cr(t, kr), s =
|
|
7315
|
+
const i = Cr(t, kr), s = va.getCompiledRuleId(n, r, o.repository);
|
|
7316
7316
|
for (const a of i)
|
|
7317
7317
|
e.push({
|
|
7318
7318
|
debugSelector: t,
|
|
@@ -7453,7 +7453,7 @@ var Ch = class {
|
|
|
7453
7453
|
};
|
|
7454
7454
|
}
|
|
7455
7455
|
_tokenize(e, t, n, r) {
|
|
7456
|
-
this._rootId === -1 && (this._rootId =
|
|
7456
|
+
this._rootId === -1 && (this._rootId = va.getCompiledRuleId(
|
|
7457
7457
|
this._grammar.repository.$self,
|
|
7458
7458
|
this,
|
|
7459
7459
|
this._grammar.repository
|
|
@@ -7495,7 +7495,7 @@ var Ch = class {
|
|
|
7495
7495
|
o = !1, t.reset();
|
|
7496
7496
|
e = e + `
|
|
7497
7497
|
`;
|
|
7498
|
-
const i = this.createOnigString(e), s = i.content.length, a = new
|
|
7498
|
+
const i = this.createOnigString(e), s = i.content.length, a = new vh(
|
|
7499
7499
|
n,
|
|
7500
7500
|
e,
|
|
7501
7501
|
this._tokenTypeMatchers,
|
|
@@ -7776,7 +7776,7 @@ var Tn = class st {
|
|
|
7776
7776
|
Tn.fromExtension(r, n.contentNameScopesList)
|
|
7777
7777
|
);
|
|
7778
7778
|
}
|
|
7779
|
-
},
|
|
7779
|
+
}, wh = class {
|
|
7780
7780
|
balancedBracketScopes;
|
|
7781
7781
|
unbalancedBracketScopes;
|
|
7782
7782
|
allowAny = !1;
|
|
@@ -7802,7 +7802,7 @@ var Tn = class st {
|
|
|
7802
7802
|
return !0;
|
|
7803
7803
|
return this.allowAny;
|
|
7804
7804
|
}
|
|
7805
|
-
},
|
|
7805
|
+
}, vh = class {
|
|
7806
7806
|
constructor(e, t, n, r) {
|
|
7807
7807
|
this.balancedBracketSelectors = r, this._emitBinaryTokens = e, this._tokenTypeOverrides = n, this._lineText = null, this._tokens = [], this._binaryTokens = [], this._lastTokenEndIndex = 0;
|
|
7808
7808
|
}
|
|
@@ -7987,7 +7987,7 @@ var Tn = class st {
|
|
|
7987
7987
|
n,
|
|
7988
7988
|
r.embeddedLanguages,
|
|
7989
7989
|
r.tokenTypes,
|
|
7990
|
-
new
|
|
7990
|
+
new wh(
|
|
7991
7991
|
r.balancedBracketSelectors || [],
|
|
7992
7992
|
r.unbalancedBracketSelectors || []
|
|
7993
7993
|
)
|
|
@@ -8115,13 +8115,13 @@ Ue.prototype.property = "";
|
|
|
8115
8115
|
Ue.prototype.spaceSeparated = !1;
|
|
8116
8116
|
Ue.prototype.space = void 0;
|
|
8117
8117
|
let Th = 0;
|
|
8118
|
-
const
|
|
8118
|
+
const U = zt(), ke = zt(), Pa = zt(), T = zt(), se = zt(), on = zt(), Ge = zt();
|
|
8119
8119
|
function zt() {
|
|
8120
8120
|
return 2 ** ++Th;
|
|
8121
8121
|
}
|
|
8122
8122
|
const $o = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8123
8123
|
__proto__: null,
|
|
8124
|
-
boolean:
|
|
8124
|
+
boolean: U,
|
|
8125
8125
|
booleanish: ke,
|
|
8126
8126
|
commaOrSpaceSeparated: Ge,
|
|
8127
8127
|
commaSeparated: on,
|
|
@@ -8250,38 +8250,38 @@ const Ph = yn({
|
|
|
8250
8250
|
accessKey: se,
|
|
8251
8251
|
action: null,
|
|
8252
8252
|
allow: null,
|
|
8253
|
-
allowFullScreen:
|
|
8254
|
-
allowPaymentRequest:
|
|
8255
|
-
allowUserMedia:
|
|
8253
|
+
allowFullScreen: U,
|
|
8254
|
+
allowPaymentRequest: U,
|
|
8255
|
+
allowUserMedia: U,
|
|
8256
8256
|
alt: null,
|
|
8257
8257
|
as: null,
|
|
8258
|
-
async:
|
|
8258
|
+
async: U,
|
|
8259
8259
|
autoCapitalize: null,
|
|
8260
8260
|
autoComplete: se,
|
|
8261
|
-
autoFocus:
|
|
8262
|
-
autoPlay:
|
|
8261
|
+
autoFocus: U,
|
|
8262
|
+
autoPlay: U,
|
|
8263
8263
|
blocking: se,
|
|
8264
8264
|
capture: null,
|
|
8265
8265
|
charSet: null,
|
|
8266
|
-
checked:
|
|
8266
|
+
checked: U,
|
|
8267
8267
|
cite: null,
|
|
8268
8268
|
className: se,
|
|
8269
8269
|
cols: T,
|
|
8270
8270
|
colSpan: null,
|
|
8271
8271
|
content: null,
|
|
8272
8272
|
contentEditable: ke,
|
|
8273
|
-
controls:
|
|
8273
|
+
controls: U,
|
|
8274
8274
|
controlsList: se,
|
|
8275
8275
|
coords: T | on,
|
|
8276
8276
|
crossOrigin: null,
|
|
8277
8277
|
data: null,
|
|
8278
8278
|
dateTime: null,
|
|
8279
8279
|
decoding: null,
|
|
8280
|
-
default:
|
|
8281
|
-
defer:
|
|
8280
|
+
default: U,
|
|
8281
|
+
defer: U,
|
|
8282
8282
|
dir: null,
|
|
8283
8283
|
dirName: null,
|
|
8284
|
-
disabled:
|
|
8284
|
+
disabled: U,
|
|
8285
8285
|
download: Pa,
|
|
8286
8286
|
draggable: ke,
|
|
8287
8287
|
encType: null,
|
|
@@ -8291,11 +8291,11 @@ const Ph = yn({
|
|
|
8291
8291
|
formAction: null,
|
|
8292
8292
|
formEncType: null,
|
|
8293
8293
|
formMethod: null,
|
|
8294
|
-
formNoValidate:
|
|
8294
|
+
formNoValidate: U,
|
|
8295
8295
|
formTarget: null,
|
|
8296
8296
|
headers: se,
|
|
8297
8297
|
height: T,
|
|
8298
|
-
hidden:
|
|
8298
|
+
hidden: U,
|
|
8299
8299
|
high: T,
|
|
8300
8300
|
href: null,
|
|
8301
8301
|
hrefLang: null,
|
|
@@ -8304,15 +8304,15 @@ const Ph = yn({
|
|
|
8304
8304
|
id: null,
|
|
8305
8305
|
imageSizes: null,
|
|
8306
8306
|
imageSrcSet: null,
|
|
8307
|
-
inert:
|
|
8307
|
+
inert: U,
|
|
8308
8308
|
inputMode: null,
|
|
8309
8309
|
integrity: null,
|
|
8310
8310
|
is: null,
|
|
8311
|
-
isMap:
|
|
8311
|
+
isMap: U,
|
|
8312
8312
|
itemId: null,
|
|
8313
8313
|
itemProp: se,
|
|
8314
8314
|
itemRef: se,
|
|
8315
|
-
itemScope:
|
|
8315
|
+
itemScope: U,
|
|
8316
8316
|
itemType: se,
|
|
8317
8317
|
kind: null,
|
|
8318
8318
|
label: null,
|
|
@@ -8320,7 +8320,7 @@ const Ph = yn({
|
|
|
8320
8320
|
language: null,
|
|
8321
8321
|
list: null,
|
|
8322
8322
|
loading: null,
|
|
8323
|
-
loop:
|
|
8323
|
+
loop: U,
|
|
8324
8324
|
low: T,
|
|
8325
8325
|
manifest: null,
|
|
8326
8326
|
max: null,
|
|
@@ -8329,12 +8329,12 @@ const Ph = yn({
|
|
|
8329
8329
|
method: null,
|
|
8330
8330
|
min: null,
|
|
8331
8331
|
minLength: T,
|
|
8332
|
-
multiple:
|
|
8333
|
-
muted:
|
|
8332
|
+
multiple: U,
|
|
8333
|
+
muted: U,
|
|
8334
8334
|
name: null,
|
|
8335
8335
|
nonce: null,
|
|
8336
|
-
noModule:
|
|
8337
|
-
noValidate:
|
|
8336
|
+
noModule: U,
|
|
8337
|
+
noValidate: U,
|
|
8338
8338
|
onAbort: null,
|
|
8339
8339
|
onAfterPrint: null,
|
|
8340
8340
|
onAuxClick: null,
|
|
@@ -8423,31 +8423,31 @@ const Ph = yn({
|
|
|
8423
8423
|
onVolumeChange: null,
|
|
8424
8424
|
onWaiting: null,
|
|
8425
8425
|
onWheel: null,
|
|
8426
|
-
open:
|
|
8426
|
+
open: U,
|
|
8427
8427
|
optimum: T,
|
|
8428
8428
|
pattern: null,
|
|
8429
8429
|
ping: se,
|
|
8430
8430
|
placeholder: null,
|
|
8431
|
-
playsInline:
|
|
8431
|
+
playsInline: U,
|
|
8432
8432
|
popover: null,
|
|
8433
8433
|
popoverTarget: null,
|
|
8434
8434
|
popoverTargetAction: null,
|
|
8435
8435
|
poster: null,
|
|
8436
8436
|
preload: null,
|
|
8437
|
-
readOnly:
|
|
8437
|
+
readOnly: U,
|
|
8438
8438
|
referrerPolicy: null,
|
|
8439
8439
|
rel: se,
|
|
8440
|
-
required:
|
|
8441
|
-
reversed:
|
|
8440
|
+
required: U,
|
|
8441
|
+
reversed: U,
|
|
8442
8442
|
rows: T,
|
|
8443
8443
|
rowSpan: T,
|
|
8444
8444
|
sandbox: se,
|
|
8445
8445
|
scope: null,
|
|
8446
|
-
scoped:
|
|
8447
|
-
seamless:
|
|
8448
|
-
selected:
|
|
8449
|
-
shadowRootClonable:
|
|
8450
|
-
shadowRootDelegatesFocus:
|
|
8446
|
+
scoped: U,
|
|
8447
|
+
seamless: U,
|
|
8448
|
+
selected: U,
|
|
8449
|
+
shadowRootClonable: U,
|
|
8450
|
+
shadowRootDelegatesFocus: U,
|
|
8451
8451
|
shadowRootMode: null,
|
|
8452
8452
|
shape: null,
|
|
8453
8453
|
size: T,
|
|
@@ -8467,7 +8467,7 @@ const Ph = yn({
|
|
|
8467
8467
|
title: null,
|
|
8468
8468
|
translate: null,
|
|
8469
8469
|
type: null,
|
|
8470
|
-
typeMustMatch:
|
|
8470
|
+
typeMustMatch: U,
|
|
8471
8471
|
useMap: null,
|
|
8472
8472
|
value: ke,
|
|
8473
8473
|
width: T,
|
|
@@ -8513,9 +8513,9 @@ const Ph = yn({
|
|
|
8513
8513
|
// `<object>`
|
|
8514
8514
|
color: null,
|
|
8515
8515
|
// `<font>` and `<hr>`. Use CSS instead
|
|
8516
|
-
compact:
|
|
8516
|
+
compact: U,
|
|
8517
8517
|
// Lists. Use CSS to reduce space between items instead
|
|
8518
|
-
declare:
|
|
8518
|
+
declare: U,
|
|
8519
8519
|
// `<object>`
|
|
8520
8520
|
event: null,
|
|
8521
8521
|
// `<script>`
|
|
@@ -8539,13 +8539,13 @@ const Ph = yn({
|
|
|
8539
8539
|
// `<body>`
|
|
8540
8540
|
marginWidth: T,
|
|
8541
8541
|
// `<body>`
|
|
8542
|
-
noResize:
|
|
8542
|
+
noResize: U,
|
|
8543
8543
|
// `<frame>`
|
|
8544
|
-
noHref:
|
|
8544
|
+
noHref: U,
|
|
8545
8545
|
// `<area>`. Use no href instead of an explicit `nohref`
|
|
8546
|
-
noShade:
|
|
8546
|
+
noShade: U,
|
|
8547
8547
|
// `<hr>`. Use background-color and height instead of borders
|
|
8548
|
-
noWrap:
|
|
8548
|
+
noWrap: U,
|
|
8549
8549
|
// `<td>` and `<th>`
|
|
8550
8550
|
object: null,
|
|
8551
8551
|
// `<applet>`
|
|
@@ -8585,8 +8585,8 @@ const Ph = yn({
|
|
|
8585
8585
|
allowTransparency: null,
|
|
8586
8586
|
autoCorrect: null,
|
|
8587
8587
|
autoSave: null,
|
|
8588
|
-
disablePictureInPicture:
|
|
8589
|
-
disableRemotePlayback:
|
|
8588
|
+
disablePictureInPicture: U,
|
|
8589
|
+
disableRemotePlayback: U,
|
|
8590
8590
|
prefix: null,
|
|
8591
8591
|
property: null,
|
|
8592
8592
|
results: T,
|
|
@@ -8821,7 +8821,7 @@ const Ph = yn({
|
|
|
8821
8821
|
dur: null,
|
|
8822
8822
|
divisor: T,
|
|
8823
8823
|
dominantBaseline: null,
|
|
8824
|
-
download:
|
|
8824
|
+
download: U,
|
|
8825
8825
|
dx: null,
|
|
8826
8826
|
dy: null,
|
|
8827
8827
|
edgeMode: null,
|
|
@@ -9814,15 +9814,15 @@ function Ss(e, t, n) {
|
|
|
9814
9814
|
const Cm = ja({
|
|
9815
9815
|
body: km,
|
|
9816
9816
|
colgroup: Im,
|
|
9817
|
-
head:
|
|
9818
|
-
html:
|
|
9817
|
+
head: vm,
|
|
9818
|
+
html: wm,
|
|
9819
9819
|
tbody: Em
|
|
9820
9820
|
});
|
|
9821
|
-
function
|
|
9821
|
+
function wm(e) {
|
|
9822
9822
|
const t = Ne(e, -1);
|
|
9823
9823
|
return !t || t.type !== "comment";
|
|
9824
9824
|
}
|
|
9825
|
-
function
|
|
9825
|
+
function vm(e) {
|
|
9826
9826
|
const t = /* @__PURE__ */ new Set();
|
|
9827
9827
|
for (const r of e.children)
|
|
9828
9828
|
if (r.type === "element" && (r.tagName === "base" || r.tagName === "title")) {
|
|
@@ -10364,7 +10364,7 @@ function Xm(e, t) {
|
|
|
10364
10364
|
position: e.length
|
|
10365
10365
|
};
|
|
10366
10366
|
}
|
|
10367
|
-
function
|
|
10367
|
+
function ws(e, t) {
|
|
10368
10368
|
let n = 1;
|
|
10369
10369
|
const r = e[t + n++];
|
|
10370
10370
|
let o;
|
|
@@ -10408,7 +10408,7 @@ function Jm(e) {
|
|
|
10408
10408
|
value: { type: "named", name: $t[o - 30] }
|
|
10409
10409
|
});
|
|
10410
10410
|
else if (o === 38) {
|
|
10411
|
-
const [i, s] =
|
|
10411
|
+
const [i, s] = ws(e, n);
|
|
10412
10412
|
s && t.push({
|
|
10413
10413
|
type: "setForegroundColor",
|
|
10414
10414
|
value: s
|
|
@@ -10423,7 +10423,7 @@ function Jm(e) {
|
|
|
10423
10423
|
value: { type: "named", name: $t[o - 40] }
|
|
10424
10424
|
});
|
|
10425
10425
|
else if (o === 48) {
|
|
10426
|
-
const [i, s] =
|
|
10426
|
+
const [i, s] = ws(e, n);
|
|
10427
10427
|
s && t.push({
|
|
10428
10428
|
type: "setBackgroundColor",
|
|
10429
10429
|
value: s
|
|
@@ -10640,11 +10640,11 @@ function Tr(e, t, n, r, o) {
|
|
|
10640
10640
|
let y, x, S;
|
|
10641
10641
|
o.includeExplanation && (y = t.tokenizeLine(f, c), x = y.tokens, S = 0);
|
|
10642
10642
|
const C = t.tokenizeLine2(f, c, a), k = C.tokens.length / 2;
|
|
10643
|
-
for (let
|
|
10644
|
-
const P = C.tokens[2 *
|
|
10643
|
+
for (let v = 0; v < k; v++) {
|
|
10644
|
+
const P = C.tokens[2 * v], M = v + 1 < k ? C.tokens[2 * v + 2] : f.length;
|
|
10645
10645
|
if (P === M)
|
|
10646
10646
|
continue;
|
|
10647
|
-
const V = C.tokens[2 *
|
|
10647
|
+
const V = C.tokens[2 * v + 1], F = Lt(
|
|
10648
10648
|
r[hn.getForeground(V)],
|
|
10649
10649
|
i
|
|
10650
10650
|
), g = hn.getFontStyle(V), R = {
|
|
@@ -10714,15 +10714,15 @@ function lf(e, t) {
|
|
|
10714
10714
|
}
|
|
10715
10715
|
return n;
|
|
10716
10716
|
}
|
|
10717
|
-
function
|
|
10717
|
+
function vs(e, t) {
|
|
10718
10718
|
return e === t || t.substring(0, e.length) === e && t[e.length] === ".";
|
|
10719
10719
|
}
|
|
10720
10720
|
function cf(e, t, n) {
|
|
10721
|
-
if (!
|
|
10721
|
+
if (!vs(e[e.length - 1], t))
|
|
10722
10722
|
return !1;
|
|
10723
10723
|
let r = e.length - 2, o = n.length - 1;
|
|
10724
10724
|
for (; r >= 0 && o >= 0; )
|
|
10725
|
-
|
|
10725
|
+
vs(e[r], n[o]) && (r -= 1), o -= 1;
|
|
10726
10726
|
return r === -1;
|
|
10727
10727
|
}
|
|
10728
10728
|
function uf(e, t, n) {
|
|
@@ -10971,8 +10971,8 @@ function hf(e, t, n, r = $n(e)) {
|
|
|
10971
10971
|
S.htmlStyle;
|
|
10972
10972
|
const k = Gm(S.htmlStyle || Ga(S));
|
|
10973
10973
|
k && (C.properties.style = k);
|
|
10974
|
-
for (const
|
|
10975
|
-
C =
|
|
10974
|
+
for (const v of o)
|
|
10975
|
+
C = v?.span?.call(m, C, b + 1, x, y, S) || C;
|
|
10976
10976
|
a === "inline" ? s.children.push(C) : a === "classic" && y.children.push(C), x += S.content.length;
|
|
10977
10977
|
}
|
|
10978
10978
|
if (a === "classic") {
|
|
@@ -11350,7 +11350,7 @@ async function Cf(e = {}) {
|
|
|
11350
11350
|
getInternalContext: () => t
|
|
11351
11351
|
};
|
|
11352
11352
|
}
|
|
11353
|
-
function
|
|
11353
|
+
function wf(e, t, n) {
|
|
11354
11354
|
let r, o, i;
|
|
11355
11355
|
{
|
|
11356
11356
|
const a = e;
|
|
@@ -11397,7 +11397,7 @@ function vf(e, t, n) {
|
|
|
11397
11397
|
}
|
|
11398
11398
|
return s;
|
|
11399
11399
|
}
|
|
11400
|
-
const
|
|
11400
|
+
const vf = /* @__PURE__ */ wf({
|
|
11401
11401
|
langs: xp,
|
|
11402
11402
|
themes: Cp,
|
|
11403
11403
|
engine: () => da(import("./wasm-DQxwEHae.js"))
|
|
@@ -12011,7 +12011,7 @@ const wf = /* @__PURE__ */ vf({
|
|
|
12011
12011
|
]
|
|
12012
12012
|
}
|
|
12013
12013
|
}
|
|
12014
|
-
}, Xa = "catppuccin-latte", Ef =
|
|
12014
|
+
}, Xa = "catppuccin-latte", Ef = vf({
|
|
12015
12015
|
themes: [Xa],
|
|
12016
12016
|
langs: [
|
|
12017
12017
|
"sql",
|
|
@@ -12091,7 +12091,7 @@ function nt() {
|
|
|
12091
12091
|
}
|
|
12092
12092
|
function je({ error: e, context: t }) {
|
|
12093
12093
|
const n = e.data?.message || "Unknown Error";
|
|
12094
|
-
return /* @__PURE__ */
|
|
12094
|
+
return /* @__PURE__ */ w(we, { children: [
|
|
12095
12095
|
t && /* @__PURE__ */ u(A, { variant: "body2", sx: { p: "10px", m: "auto" }, children: t }),
|
|
12096
12096
|
/* @__PURE__ */ u(
|
|
12097
12097
|
"pre",
|
|
@@ -12116,7 +12116,7 @@ function ze({
|
|
|
12116
12116
|
spacing: i = 2,
|
|
12117
12117
|
textVariant: s = "body2"
|
|
12118
12118
|
}) {
|
|
12119
|
-
const a = /* @__PURE__ */
|
|
12119
|
+
const a = /* @__PURE__ */ w(
|
|
12120
12120
|
Y,
|
|
12121
12121
|
{
|
|
12122
12122
|
sx: {
|
|
@@ -12247,7 +12247,7 @@ function Nf({
|
|
|
12247
12247
|
p
|
|
12248
12248
|
)
|
|
12249
12249
|
});
|
|
12250
|
-
return /* @__PURE__ */
|
|
12250
|
+
return /* @__PURE__ */ w(we, { children: [
|
|
12251
12251
|
!l && !c && /* @__PURE__ */ u(ze, { text: "Fetching Query Results..." }),
|
|
12252
12252
|
l && /* @__PURE__ */ u(Fs, { fallback: /* @__PURE__ */ u("div", { children: "Loading..." }), children: /* @__PURE__ */ u(Af, { result: a.data.result }) }),
|
|
12253
12253
|
c && /* @__PURE__ */ u(
|
|
@@ -12291,7 +12291,7 @@ function Lf({
|
|
|
12291
12291
|
y(C);
|
|
12292
12292
|
});
|
|
12293
12293
|
}
|
|
12294
|
-
}, [l]), /* @__PURE__ */ u(
|
|
12294
|
+
}, [l]), /* @__PURE__ */ u(we, { children: /* @__PURE__ */ w(
|
|
12295
12295
|
Mf,
|
|
12296
12296
|
{
|
|
12297
12297
|
variant: "outlined",
|
|
@@ -12300,7 +12300,7 @@ function Lf({
|
|
|
12300
12300
|
borderRadius: "0px"
|
|
12301
12301
|
},
|
|
12302
12302
|
children: [
|
|
12303
|
-
/* @__PURE__ */
|
|
12303
|
+
/* @__PURE__ */ w(
|
|
12304
12304
|
ae,
|
|
12305
12305
|
{
|
|
12306
12306
|
sx: {
|
|
@@ -12318,7 +12318,7 @@ function Lf({
|
|
|
12318
12318
|
children: `${a ? "" : "View >"} ${n}`
|
|
12319
12319
|
}
|
|
12320
12320
|
),
|
|
12321
|
-
/* @__PURE__ */
|
|
12321
|
+
/* @__PURE__ */ w(Mr, { sx: { padding: "0px" }, children: [
|
|
12322
12322
|
!o && /* @__PURE__ */ u(
|
|
12323
12323
|
xe,
|
|
12324
12324
|
{
|
|
@@ -12355,9 +12355,9 @@ function Lf({
|
|
|
12355
12355
|
]
|
|
12356
12356
|
}
|
|
12357
12357
|
),
|
|
12358
|
-
/* @__PURE__ */
|
|
12358
|
+
/* @__PURE__ */ w(xt, { in: p, timeout: "auto", unmountOnExit: !0, children: [
|
|
12359
12359
|
/* @__PURE__ */ u($e, {}),
|
|
12360
|
-
/* @__PURE__ */
|
|
12360
|
+
/* @__PURE__ */ w(
|
|
12361
12361
|
ae,
|
|
12362
12362
|
{
|
|
12363
12363
|
sx: {
|
|
@@ -12400,9 +12400,9 @@ function Lf({
|
|
|
12400
12400
|
}
|
|
12401
12401
|
)
|
|
12402
12402
|
] }),
|
|
12403
|
-
/* @__PURE__ */
|
|
12403
|
+
/* @__PURE__ */ w(xt, { in: c, timeout: "auto", unmountOnExit: !0, children: [
|
|
12404
12404
|
/* @__PURE__ */ u($e, { sx: { mb: "4px" } }),
|
|
12405
|
-
b && /* @__PURE__ */
|
|
12405
|
+
b && /* @__PURE__ */ w(we, { children: [
|
|
12406
12406
|
/* @__PURE__ */ u(
|
|
12407
12407
|
ae,
|
|
12408
12408
|
{
|
|
@@ -12528,7 +12528,7 @@ function el({
|
|
|
12528
12528
|
);
|
|
12529
12529
|
return N.useEffect(() => {
|
|
12530
12530
|
o && o(i);
|
|
12531
|
-
}, [i, o]), /* @__PURE__ */
|
|
12531
|
+
}, [i, o]), /* @__PURE__ */ w(Oe, { variant: "outlined", children: [
|
|
12532
12532
|
/* @__PURE__ */ u(Ke, { children: /* @__PURE__ */ u(
|
|
12533
12533
|
Ai,
|
|
12534
12534
|
{
|
|
@@ -12547,7 +12547,7 @@ function el({
|
|
|
12547
12547
|
)) })
|
|
12548
12548
|
}
|
|
12549
12549
|
) }),
|
|
12550
|
-
/* @__PURE__ */ u(Yr, { children: /* @__PURE__ */
|
|
12550
|
+
/* @__PURE__ */ u(Yr, { children: /* @__PURE__ */ w(Ai, { spacing: 2, component: "section", children: [
|
|
12551
12551
|
/* @__PURE__ */ u(
|
|
12552
12552
|
tl,
|
|
12553
12553
|
{
|
|
@@ -12641,7 +12641,7 @@ function tl({
|
|
|
12641
12641
|
flexDirection: "column",
|
|
12642
12642
|
height: "100%"
|
|
12643
12643
|
},
|
|
12644
|
-
children: /* @__PURE__ */
|
|
12644
|
+
children: /* @__PURE__ */ w(
|
|
12645
12645
|
"div",
|
|
12646
12646
|
{
|
|
12647
12647
|
style: {
|
|
@@ -12740,9 +12740,9 @@ function P0({
|
|
|
12740
12740
|
error: S,
|
|
12741
12741
|
context: `${m} > ${e}`
|
|
12742
12742
|
}
|
|
12743
|
-
)) : /* @__PURE__ */
|
|
12744
|
-
/* @__PURE__ */
|
|
12745
|
-
/* @__PURE__ */
|
|
12743
|
+
)) : /* @__PURE__ */ w(Oe, { variant: "outlined", children: [
|
|
12744
|
+
/* @__PURE__ */ w(Ke, { children: [
|
|
12745
|
+
/* @__PURE__ */ w(
|
|
12746
12746
|
ae,
|
|
12747
12747
|
{
|
|
12748
12748
|
sx: {
|
|
@@ -12763,19 +12763,19 @@ function P0({
|
|
|
12763
12763
|
minHeight: 36
|
|
12764
12764
|
},
|
|
12765
12765
|
children: b.sourceInfos.map((C, k) => {
|
|
12766
|
-
let
|
|
12766
|
+
let v;
|
|
12767
12767
|
try {
|
|
12768
|
-
|
|
12768
|
+
v = JSON.parse(C);
|
|
12769
12769
|
} catch {
|
|
12770
|
-
|
|
12770
|
+
v = { name: String(k) };
|
|
12771
12771
|
}
|
|
12772
12772
|
return /* @__PURE__ */ u(
|
|
12773
12773
|
sc,
|
|
12774
12774
|
{
|
|
12775
|
-
label:
|
|
12775
|
+
label: v.name || `Source ${k + 1}`,
|
|
12776
12776
|
sx: { minHeight: 36 }
|
|
12777
12777
|
},
|
|
12778
|
-
|
|
12778
|
+
v.name || k
|
|
12779
12779
|
);
|
|
12780
12780
|
})
|
|
12781
12781
|
}
|
|
@@ -12809,9 +12809,9 @@ function P0({
|
|
|
12809
12809
|
]
|
|
12810
12810
|
}
|
|
12811
12811
|
),
|
|
12812
|
-
/* @__PURE__ */
|
|
12812
|
+
/* @__PURE__ */ w(xt, { in: i, timeout: "auto", unmountOnExit: !0, children: [
|
|
12813
12813
|
/* @__PURE__ */ u($e, {}),
|
|
12814
|
-
/* @__PURE__ */
|
|
12814
|
+
/* @__PURE__ */ w(
|
|
12815
12815
|
ae,
|
|
12816
12816
|
{
|
|
12817
12817
|
sx: {
|
|
@@ -12854,7 +12854,7 @@ function P0({
|
|
|
12854
12854
|
] }),
|
|
12855
12855
|
/* @__PURE__ */ u($e, {})
|
|
12856
12856
|
] }),
|
|
12857
|
-
/* @__PURE__ */ u(Yr, { children: /* @__PURE__ */
|
|
12857
|
+
/* @__PURE__ */ u(Yr, { children: /* @__PURE__ */ w(ae, { spacing: 2, component: "section", children: [
|
|
12858
12858
|
Array.isArray(b.sourceInfos) && b.sourceInfos.length > 0 && /* @__PURE__ */ u(
|
|
12859
12859
|
tl,
|
|
12860
12860
|
{
|
|
@@ -12866,7 +12866,7 @@ function P0({
|
|
|
12866
12866
|
}
|
|
12867
12867
|
}
|
|
12868
12868
|
),
|
|
12869
|
-
b.queries?.length > 0 && /* @__PURE__ */
|
|
12869
|
+
b.queries?.length > 0 && /* @__PURE__ */ w(
|
|
12870
12870
|
Oe,
|
|
12871
12871
|
{
|
|
12872
12872
|
variant: "outlined",
|
|
@@ -12929,15 +12929,15 @@ function rl({
|
|
|
12929
12929
|
l(!1);
|
|
12930
12930
|
return;
|
|
12931
12931
|
}
|
|
12932
|
-
const k = t - 20,
|
|
12933
|
-
i < k && m(i + 20), l(
|
|
12932
|
+
const k = t - 20, v = i > k;
|
|
12933
|
+
i < k && m(i + 20), l(v);
|
|
12934
12934
|
}, [i, h, t]), !e)
|
|
12935
12935
|
return null;
|
|
12936
12936
|
const x = /* @__PURE__ */ u(ze, { text: "Loading...", centered: !0, size: 32 }), S = h ? r ? n - 40 : t - 40 : void 0, C = p ? {
|
|
12937
12937
|
minHeight: `${p}px`,
|
|
12938
12938
|
height: "100%"
|
|
12939
12939
|
} : { height: "100%" };
|
|
12940
|
-
return /* @__PURE__ */ u(
|
|
12940
|
+
return /* @__PURE__ */ u(we, { children: /* @__PURE__ */ w(
|
|
12941
12941
|
Y,
|
|
12942
12942
|
{
|
|
12943
12943
|
ref: d,
|
|
@@ -13036,8 +13036,8 @@ function Qf({
|
|
|
13036
13036
|
Ft(n, "typescript").then((x) => {
|
|
13037
13037
|
f(x);
|
|
13038
13038
|
});
|
|
13039
|
-
}, [n]), e.type === "markdown" && /* @__PURE__ */ u(Oe, { variant: "outlined", children: /* @__PURE__ */ u(Ke, { children: /* @__PURE__ */ u(Wo, { children: e.text }) }) }) || e.type === "code" && /* @__PURE__ */
|
|
13040
|
-
(!o || !s && e.result) && /* @__PURE__ */
|
|
13039
|
+
}, [n]), e.type === "markdown" && /* @__PURE__ */ u(Oe, { variant: "outlined", children: /* @__PURE__ */ u(Ke, { children: /* @__PURE__ */ u(Wo, { children: e.text }) }) }) || e.type === "code" && /* @__PURE__ */ w(Oe, { variant: "outlined", sx: { height: "auto" }, children: [
|
|
13040
|
+
(!o || !s && e.result) && /* @__PURE__ */ w(
|
|
13041
13041
|
ae,
|
|
13042
13042
|
{
|
|
13043
13043
|
sx: {
|
|
@@ -13046,11 +13046,11 @@ function Qf({
|
|
|
13046
13046
|
ml: "8px"
|
|
13047
13047
|
},
|
|
13048
13048
|
children: [
|
|
13049
|
-
/* @__PURE__ */
|
|
13049
|
+
/* @__PURE__ */ w(ae, { sx: { flexDirection: "row" }, children: [
|
|
13050
13050
|
e.newSources && e.newSources.length > 0 && /* @__PURE__ */ u(A, { variant: "overline", children: /* @__PURE__ */ u("b", { children: "Data source" }) }),
|
|
13051
13051
|
e.result && /* @__PURE__ */ u(A, { variant: "overline", fontWeight: "bold", children: "Results" })
|
|
13052
13052
|
] }),
|
|
13053
|
-
/* @__PURE__ */ u(ae, { sx: { flexDirection: "row" }, children: /* @__PURE__ */
|
|
13053
|
+
/* @__PURE__ */ u(ae, { sx: { flexDirection: "row" }, children: /* @__PURE__ */ w(
|
|
13054
13054
|
Mr,
|
|
13055
13055
|
{
|
|
13056
13056
|
sx: {
|
|
@@ -13123,7 +13123,7 @@ function Qf({
|
|
|
13123
13123
|
]
|
|
13124
13124
|
}
|
|
13125
13125
|
),
|
|
13126
|
-
/* @__PURE__ */ u(xt, { in: c, timeout: "auto", unmountOnExit: !0, children: /* @__PURE__ */
|
|
13126
|
+
/* @__PURE__ */ u(xt, { in: c, timeout: "auto", unmountOnExit: !0, children: /* @__PURE__ */ w(
|
|
13127
13127
|
ae,
|
|
13128
13128
|
{
|
|
13129
13129
|
sx: {
|
|
@@ -13161,7 +13161,7 @@ function Qf({
|
|
|
13161
13161
|
]
|
|
13162
13162
|
}
|
|
13163
13163
|
) }),
|
|
13164
|
-
/* @__PURE__ */
|
|
13164
|
+
/* @__PURE__ */ w(xt, { in: a, timeout: "auto", unmountOnExit: !0, children: [
|
|
13165
13165
|
/* @__PURE__ */ u("style", { children: Kf }),
|
|
13166
13166
|
/* @__PURE__ */ u(
|
|
13167
13167
|
ae,
|
|
@@ -13207,7 +13207,7 @@ function Qf({
|
|
|
13207
13207
|
)
|
|
13208
13208
|
}
|
|
13209
13209
|
),
|
|
13210
|
-
e.result && !b && /* @__PURE__ */ u(
|
|
13210
|
+
e.result && !b && /* @__PURE__ */ u(we, { children: /* @__PURE__ */ u(
|
|
13211
13211
|
rl,
|
|
13212
13212
|
{
|
|
13213
13213
|
result: e.result,
|
|
@@ -13246,9 +13246,9 @@ function Xf({
|
|
|
13246
13246
|
x
|
|
13247
13247
|
)).data
|
|
13248
13248
|
});
|
|
13249
|
-
return /* @__PURE__ */
|
|
13250
|
-
/* @__PURE__ */
|
|
13251
|
-
/* @__PURE__ */
|
|
13249
|
+
return /* @__PURE__ */ w(Oe, { variant: "outlined", children: [
|
|
13250
|
+
/* @__PURE__ */ w(Ke, { children: [
|
|
13251
|
+
/* @__PURE__ */ w(
|
|
13252
13252
|
ae,
|
|
13253
13253
|
{
|
|
13254
13254
|
sx: {
|
|
@@ -13286,7 +13286,7 @@ function Xf({
|
|
|
13286
13286
|
]
|
|
13287
13287
|
}
|
|
13288
13288
|
),
|
|
13289
|
-
/* @__PURE__ */ u(xt, { in: i, timeout: "auto", unmountOnExit: !0, children: /* @__PURE__ */
|
|
13289
|
+
/* @__PURE__ */ u(xt, { in: i, timeout: "auto", unmountOnExit: !0, children: /* @__PURE__ */ w(
|
|
13290
13290
|
ae,
|
|
13291
13291
|
{
|
|
13292
13292
|
sx: {
|
|
@@ -13326,7 +13326,7 @@ function Xf({
|
|
|
13326
13326
|
}
|
|
13327
13327
|
) })
|
|
13328
13328
|
] }),
|
|
13329
|
-
/* @__PURE__ */ u(Yr, { children: /* @__PURE__ */
|
|
13329
|
+
/* @__PURE__ */ u(Yr, { children: /* @__PURE__ */ w(ae, { spacing: 2, component: "section", children: [
|
|
13330
13330
|
!f && !b && /* @__PURE__ */ u(ze, { text: "Fetching Notebook..." }),
|
|
13331
13331
|
f && h.notebookCells?.map((x, S) => /* @__PURE__ */ u(
|
|
13332
13332
|
Qf,
|
|
@@ -13344,7 +13344,7 @@ function Xf({
|
|
|
13344
13344
|
},
|
|
13345
13345
|
S
|
|
13346
13346
|
)),
|
|
13347
|
-
b && y.status === 404 && /* @__PURE__ */
|
|
13347
|
+
b && y.status === 404 && /* @__PURE__ */ w(A, { variant: "body2", children: [
|
|
13348
13348
|
/* @__PURE__ */ u("code", { children: `${c} > ${d} > ${e}` }),
|
|
13349
13349
|
" ",
|
|
13350
13350
|
"not found."
|
|
@@ -13577,7 +13577,7 @@ function rg() {
|
|
|
13577
13577
|
a
|
|
13578
13578
|
)
|
|
13579
13579
|
});
|
|
13580
|
-
return /* @__PURE__ */ u(Oe, { variant: "outlined", sx: { width: "100%" }, children: /* @__PURE__ */
|
|
13580
|
+
return /* @__PURE__ */ u(Oe, { variant: "outlined", sx: { width: "100%" }, children: /* @__PURE__ */ w(Ke, { children: [
|
|
13581
13581
|
/* @__PURE__ */ u(A, { variant: "overline", fontWeight: "bold", children: "Package Config" }),
|
|
13582
13582
|
/* @__PURE__ */ u($e, {}),
|
|
13583
13583
|
/* @__PURE__ */ u(
|
|
@@ -13587,7 +13587,7 @@ function rg() {
|
|
|
13587
13587
|
maxHeight: "200px",
|
|
13588
13588
|
overflowY: "auto"
|
|
13589
13589
|
},
|
|
13590
|
-
children: /* @__PURE__ */
|
|
13590
|
+
children: /* @__PURE__ */ w(Lr, { dense: !0, disablePadding: !0, children: [
|
|
13591
13591
|
/* @__PURE__ */ u(tn, { dense: !0, disablePadding: !0, children: /* @__PURE__ */ u(
|
|
13592
13592
|
St,
|
|
13593
13593
|
{
|
|
@@ -13606,7 +13606,7 @@ function rg() {
|
|
|
13606
13606
|
},
|
|
13607
13607
|
secondary: r.data.description
|
|
13608
13608
|
}
|
|
13609
|
-
) }) || /* @__PURE__ */
|
|
13609
|
+
) }) || /* @__PURE__ */ w(
|
|
13610
13610
|
tn,
|
|
13611
13611
|
{
|
|
13612
13612
|
disablePadding: !0,
|
|
@@ -13640,7 +13640,7 @@ function rg() {
|
|
|
13640
13640
|
}
|
|
13641
13641
|
const og = new ia(new Be());
|
|
13642
13642
|
function ig({ connection: e }) {
|
|
13643
|
-
return /* @__PURE__ */
|
|
13643
|
+
return /* @__PURE__ */ w(at, { children: [
|
|
13644
13644
|
/* @__PURE__ */ u(ne, { children: /* @__PURE__ */ u(A, { variant: "body2", children: e.name }) }),
|
|
13645
13645
|
/* @__PURE__ */ u(ne, { children: /* @__PURE__ */ u(A, { variant: "body2", children: e.type }) })
|
|
13646
13646
|
] }, e.name);
|
|
@@ -13650,10 +13650,10 @@ function sg() {
|
|
|
13650
13650
|
queryKey: ["connections", e],
|
|
13651
13651
|
queryFn: (i) => og.listConnections(e, i)
|
|
13652
13652
|
});
|
|
13653
|
-
return /* @__PURE__ */ u(Oe, { variant: "outlined", sx: { width: "100%" }, children: /* @__PURE__ */
|
|
13653
|
+
return /* @__PURE__ */ u(Oe, { variant: "outlined", sx: { width: "100%" }, children: /* @__PURE__ */ w(Ke, { children: [
|
|
13654
13654
|
/* @__PURE__ */ u(A, { variant: "overline", fontWeight: "bold", children: "Database Connections" }),
|
|
13655
13655
|
/* @__PURE__ */ u($e, {}),
|
|
13656
|
-
/* @__PURE__ */
|
|
13656
|
+
/* @__PURE__ */ w(
|
|
13657
13657
|
Y,
|
|
13658
13658
|
{
|
|
13659
13659
|
sx: {
|
|
@@ -13662,8 +13662,8 @@ function sg() {
|
|
|
13662
13662
|
},
|
|
13663
13663
|
children: [
|
|
13664
13664
|
!n && !r && /* @__PURE__ */ u(A, { variant: "body2", sx: { m: "auto" }, children: "Fetching Connections..." }),
|
|
13665
|
-
n && t.data.length > 0 && /* @__PURE__ */ u(_n, { size: "small", children: /* @__PURE__ */
|
|
13666
|
-
/* @__PURE__ */
|
|
13665
|
+
n && t.data.length > 0 && /* @__PURE__ */ u(_n, { size: "small", children: /* @__PURE__ */ w(An, { children: [
|
|
13666
|
+
/* @__PURE__ */ w(at, { children: [
|
|
13667
13667
|
/* @__PURE__ */ u(ne, { children: /* @__PURE__ */ u(A, { variant: "subtitle2", fontWeight: "bold", children: "Connection Name" }) }),
|
|
13668
13668
|
/* @__PURE__ */ u(ne, { children: /* @__PURE__ */ u(A, { variant: "subtitle2", fontWeight: "bold", children: "Type" }) })
|
|
13669
13669
|
] }),
|
|
@@ -13697,11 +13697,11 @@ function lg() {
|
|
|
13697
13697
|
f
|
|
13698
13698
|
)
|
|
13699
13699
|
}), h = (f) => f >= 1024 * 1024 * 1024 * 1024 ? `${(f / (1024 * 1024 * 1024)).toFixed(2)} T` : f >= 1024 * 1024 * 1024 ? `${(f / (1024 * 1024 * 1024)).toFixed(2)} G` : f >= 1024 * 1024 ? `${(f / (1024 * 1024)).toFixed(2)} M` : `${(f / 1024).toFixed(2)} K`;
|
|
13700
|
-
return /* @__PURE__ */
|
|
13701
|
-
/* @__PURE__ */ u(Oe, { variant: "outlined", sx: { width: "100%" }, children: /* @__PURE__ */
|
|
13700
|
+
return /* @__PURE__ */ w(we, { children: [
|
|
13701
|
+
/* @__PURE__ */ u(Oe, { variant: "outlined", sx: { width: "100%" }, children: /* @__PURE__ */ w(Ke, { children: [
|
|
13702
13702
|
/* @__PURE__ */ u(A, { variant: "overline", fontWeight: "bold", children: "Embedded Databases" }),
|
|
13703
13703
|
/* @__PURE__ */ u($e, {}),
|
|
13704
|
-
/* @__PURE__ */
|
|
13704
|
+
/* @__PURE__ */ w(
|
|
13705
13705
|
Y,
|
|
13706
13706
|
{
|
|
13707
13707
|
sx: {
|
|
@@ -13717,12 +13717,12 @@ function lg() {
|
|
|
13717
13717
|
context: `${e} > ${t} > Databases`
|
|
13718
13718
|
}
|
|
13719
13719
|
),
|
|
13720
|
-
m && c.data.length > 0 && /* @__PURE__ */
|
|
13721
|
-
/* @__PURE__ */ u(fr, { children: /* @__PURE__ */
|
|
13720
|
+
m && c.data.length > 0 && /* @__PURE__ */ w(_n, { size: "small", children: [
|
|
13721
|
+
/* @__PURE__ */ u(fr, { children: /* @__PURE__ */ w(at, { children: [
|
|
13722
13722
|
/* @__PURE__ */ u(ne, { children: "Name" }),
|
|
13723
13723
|
/* @__PURE__ */ u(ne, { align: "right", children: "Rows" })
|
|
13724
13724
|
] }) }),
|
|
13725
|
-
/* @__PURE__ */ u(An, { children: c.data.map((f) => /* @__PURE__ */
|
|
13725
|
+
/* @__PURE__ */ u(An, { children: c.data.map((f) => /* @__PURE__ */ w(
|
|
13726
13726
|
at,
|
|
13727
13727
|
{
|
|
13728
13728
|
onClick: () => a(f),
|
|
@@ -13740,14 +13740,14 @@ function lg() {
|
|
|
13740
13740
|
}
|
|
13741
13741
|
)
|
|
13742
13742
|
] }) }),
|
|
13743
|
-
/* @__PURE__ */
|
|
13743
|
+
/* @__PURE__ */ w(ln, { open: r, onClose: l, maxWidth: "sm", fullWidth: !0, children: [
|
|
13744
13744
|
/* @__PURE__ */ u(cn, { children: i?.path }),
|
|
13745
|
-
/* @__PURE__ */ u(un, { children: i?.info?.columns && /* @__PURE__ */ u(Uo, { children: /* @__PURE__ */
|
|
13746
|
-
/* @__PURE__ */ u(fr, { children: /* @__PURE__ */
|
|
13745
|
+
/* @__PURE__ */ u(un, { children: i?.info?.columns && /* @__PURE__ */ u(Uo, { children: /* @__PURE__ */ w(_n, { size: "small", children: [
|
|
13746
|
+
/* @__PURE__ */ u(fr, { children: /* @__PURE__ */ w(at, { children: [
|
|
13747
13747
|
/* @__PURE__ */ u(ne, { children: "Column" }),
|
|
13748
13748
|
/* @__PURE__ */ u(ne, { children: "Type" })
|
|
13749
13749
|
] }) }),
|
|
13750
|
-
/* @__PURE__ */ u(An, { children: i.info.columns.map((f) => /* @__PURE__ */
|
|
13750
|
+
/* @__PURE__ */ u(An, { children: i.info.columns.map((f) => /* @__PURE__ */ w(at, { children: [
|
|
13751
13751
|
/* @__PURE__ */ u(ne, { component: "th", scope: "row", children: f.name }),
|
|
13752
13752
|
/* @__PURE__ */ u(ne, { children: f.type })
|
|
13753
13753
|
] }, f.name)) })
|
|
@@ -13804,7 +13804,7 @@ const Ts = {
|
|
|
13804
13804
|
}, _r = N.createContext(null);
|
|
13805
13805
|
var cg = function(t) {
|
|
13806
13806
|
return t.scrollTop;
|
|
13807
|
-
}, In = "unmounted", Ot = "exited", Nt = "entering", Jt = "entered", Vo = "exiting",
|
|
13807
|
+
}, In = "unmounted", Ot = "exited", Nt = "entering", Jt = "entered", Vo = "exiting", vt = /* @__PURE__ */ function(e) {
|
|
13808
13808
|
al(t, e);
|
|
13809
13809
|
function t(r, o) {
|
|
13810
13810
|
var i;
|
|
@@ -13932,11 +13932,11 @@ var cg = function(t) {
|
|
|
13932
13932
|
);
|
|
13933
13933
|
}, t;
|
|
13934
13934
|
}(N.Component);
|
|
13935
|
-
|
|
13936
|
-
|
|
13935
|
+
vt.contextType = _r;
|
|
13936
|
+
vt.propTypes = {};
|
|
13937
13937
|
function Xt() {
|
|
13938
13938
|
}
|
|
13939
|
-
|
|
13939
|
+
vt.defaultProps = {
|
|
13940
13940
|
in: !1,
|
|
13941
13941
|
mountOnEnter: !1,
|
|
13942
13942
|
unmountOnExit: !1,
|
|
@@ -13950,11 +13950,11 @@ wt.defaultProps = {
|
|
|
13950
13950
|
onExiting: Xt,
|
|
13951
13951
|
onExited: Xt
|
|
13952
13952
|
};
|
|
13953
|
-
|
|
13954
|
-
|
|
13955
|
-
|
|
13956
|
-
|
|
13957
|
-
|
|
13953
|
+
vt.UNMOUNTED = In;
|
|
13954
|
+
vt.EXITED = Ot;
|
|
13955
|
+
vt.ENTERING = Nt;
|
|
13956
|
+
vt.ENTERED = Jt;
|
|
13957
|
+
vt.EXITING = Vo;
|
|
13958
13958
|
function ug(e) {
|
|
13959
13959
|
if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
13960
13960
|
return e;
|
|
@@ -14206,7 +14206,7 @@ const xg = (e) => {
|
|
|
14206
14206
|
height: "100%"
|
|
14207
14207
|
}
|
|
14208
14208
|
}]
|
|
14209
|
-
}),
|
|
14209
|
+
}), wg = de("div", {
|
|
14210
14210
|
name: "MuiCollapse",
|
|
14211
14211
|
slot: "WrapperInner"
|
|
14212
14212
|
})({
|
|
@@ -14242,8 +14242,8 @@ const xg = (e) => {
|
|
|
14242
14242
|
style: S,
|
|
14243
14243
|
timeout: C = ea.standard,
|
|
14244
14244
|
// eslint-disable-next-line react/prop-types
|
|
14245
|
-
TransitionComponent: k =
|
|
14246
|
-
...
|
|
14245
|
+
TransitionComponent: k = vt,
|
|
14246
|
+
...v
|
|
14247
14247
|
} = r, P = {
|
|
14248
14248
|
...r,
|
|
14249
14249
|
orientation: x,
|
|
@@ -14253,7 +14253,7 @@ const xg = (e) => {
|
|
|
14253
14253
|
const _e = K.current;
|
|
14254
14254
|
Le === void 0 ? B(_e) : B(_e, Le);
|
|
14255
14255
|
}
|
|
14256
|
-
}, ue = () => g.current ? g.current[D ? "clientWidth" : "clientHeight"] : 0,
|
|
14256
|
+
}, ue = () => g.current ? g.current[D ? "clientWidth" : "clientHeight"] : 0, G = ce((B, Le) => {
|
|
14257
14257
|
g.current && D && (g.current.style.position = "absolute"), B.style[j] = O, p && p(B, Le);
|
|
14258
14258
|
}), X = ce((B, Le) => {
|
|
14259
14259
|
const _e = ue();
|
|
@@ -14274,7 +14274,7 @@ const xg = (e) => {
|
|
|
14274
14274
|
} else
|
|
14275
14275
|
B.style.transitionDuration = typeof Qe == "string" ? Qe : `${Qe}ms`;
|
|
14276
14276
|
B.style[j] = `${_e}px`, B.style.transitionTimingFunction = $, h && h(B, Le);
|
|
14277
|
-
}),
|
|
14277
|
+
}), H = ce((B, Le) => {
|
|
14278
14278
|
B.style[j] = "auto", m && m(B, Le);
|
|
14279
14279
|
}), Q = ce((B) => {
|
|
14280
14280
|
B.style[j] = `${ue()}px`, f && f(B);
|
|
@@ -14298,8 +14298,8 @@ const xg = (e) => {
|
|
|
14298
14298
|
});
|
|
14299
14299
|
return /* @__PURE__ */ u(k, {
|
|
14300
14300
|
in: d,
|
|
14301
|
-
onEnter:
|
|
14302
|
-
onEntered:
|
|
14301
|
+
onEnter: G,
|
|
14302
|
+
onEntered: H,
|
|
14303
14303
|
onEntering: X,
|
|
14304
14304
|
onExit: Q,
|
|
14305
14305
|
onExited: Z,
|
|
@@ -14309,7 +14309,7 @@ const xg = (e) => {
|
|
|
14309
14309
|
},
|
|
14310
14310
|
nodeRef: K,
|
|
14311
14311
|
timeout: C === "auto" ? null : C,
|
|
14312
|
-
...
|
|
14312
|
+
...v,
|
|
14313
14313
|
children: (B, {
|
|
14314
14314
|
ownerState: Le,
|
|
14315
14315
|
..._e
|
|
@@ -14336,7 +14336,7 @@ const xg = (e) => {
|
|
|
14336
14336
|
},
|
|
14337
14337
|
className: M.wrapper,
|
|
14338
14338
|
ref: g,
|
|
14339
|
-
children: /* @__PURE__ */ u(
|
|
14339
|
+
children: /* @__PURE__ */ u(wg, {
|
|
14340
14340
|
ownerState: {
|
|
14341
14341
|
...P,
|
|
14342
14342
|
state: B
|
|
@@ -14349,9 +14349,9 @@ const xg = (e) => {
|
|
|
14349
14349
|
});
|
|
14350
14350
|
});
|
|
14351
14351
|
Dn && (Dn.muiSupportAuto = !0);
|
|
14352
|
-
const
|
|
14352
|
+
const vg = /* @__PURE__ */ E.createContext(void 0);
|
|
14353
14353
|
function kg() {
|
|
14354
|
-
return E.useContext(
|
|
14354
|
+
return E.useContext(vg);
|
|
14355
14355
|
}
|
|
14356
14356
|
function _s(e) {
|
|
14357
14357
|
try {
|
|
@@ -14549,7 +14549,7 @@ const Je = bn("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
|
|
|
14549
14549
|
}, [l]);
|
|
14550
14550
|
const m = E.useRef(!1), h = cl(), f = E.useRef(null), b = E.useRef(null), y = E.useCallback((k) => {
|
|
14551
14551
|
const {
|
|
14552
|
-
pulsate:
|
|
14552
|
+
pulsate: v,
|
|
14553
14553
|
rippleX: P,
|
|
14554
14554
|
rippleY: M,
|
|
14555
14555
|
rippleSize: V,
|
|
@@ -14565,19 +14565,19 @@ const Je = bn("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
|
|
|
14565
14565
|
childPulsate: Ce(i.childPulsate, Je.childPulsate)
|
|
14566
14566
|
},
|
|
14567
14567
|
timeout: Fo,
|
|
14568
|
-
pulsate:
|
|
14568
|
+
pulsate: v,
|
|
14569
14569
|
rippleX: P,
|
|
14570
14570
|
rippleY: M,
|
|
14571
14571
|
rippleSize: V
|
|
14572
14572
|
}, d.current)]), d.current += 1, p.current = F;
|
|
14573
|
-
}, [i]), x = E.useCallback((k = {},
|
|
14573
|
+
}, [i]), x = E.useCallback((k = {}, v = {}, P = () => {
|
|
14574
14574
|
}) => {
|
|
14575
14575
|
const {
|
|
14576
14576
|
pulsate: M = !1,
|
|
14577
|
-
center: V = o ||
|
|
14577
|
+
center: V = o || v.pulsate,
|
|
14578
14578
|
fakeElement: F = !1
|
|
14579
14579
|
// For test purposes
|
|
14580
|
-
} =
|
|
14580
|
+
} = v;
|
|
14581
14581
|
if (k?.type === "mousedown" && m.current) {
|
|
14582
14582
|
m.current = !1;
|
|
14583
14583
|
return;
|
|
@@ -14626,14 +14626,14 @@ const Je = bn("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
|
|
|
14626
14626
|
x({}, {
|
|
14627
14627
|
pulsate: !0
|
|
14628
14628
|
});
|
|
14629
|
-
}, [x]), C = E.useCallback((k,
|
|
14629
|
+
}, [x]), C = E.useCallback((k, v) => {
|
|
14630
14630
|
if (h.clear(), k?.type === "touchend" && f.current) {
|
|
14631
14631
|
f.current(), f.current = null, h.start(0, () => {
|
|
14632
|
-
C(k,
|
|
14632
|
+
C(k, v);
|
|
14633
14633
|
});
|
|
14634
14634
|
return;
|
|
14635
14635
|
}
|
|
14636
|
-
f.current = null, c((P) => P.length > 0 ? P.slice(1) : P), p.current =
|
|
14636
|
+
f.current = null, c((P) => P.length > 0 ? P.slice(1) : P), p.current = v;
|
|
14637
14637
|
}, [h]);
|
|
14638
14638
|
return E.useImperativeHandle(n, () => ({
|
|
14639
14639
|
pulsate: S,
|
|
@@ -14727,7 +14727,7 @@ const $g = bn("MuiButtonBase", ["root", "disabled", "focusVisible"]), Dg = (e) =
|
|
|
14727
14727
|
onDragLeave: S,
|
|
14728
14728
|
onFocus: C,
|
|
14729
14729
|
onFocusVisible: k,
|
|
14730
|
-
onKeyDown:
|
|
14730
|
+
onKeyDown: v,
|
|
14731
14731
|
onKeyUp: P,
|
|
14732
14732
|
onMouseDown: M,
|
|
14733
14733
|
onMouseLeave: V,
|
|
@@ -14740,19 +14740,19 @@ const $g = bn("MuiButtonBase", ["root", "disabled", "focusVisible"]), Dg = (e) =
|
|
|
14740
14740
|
touchRippleRef: K,
|
|
14741
14741
|
type: q,
|
|
14742
14742
|
...ce
|
|
14743
|
-
} = r, ue = E.useRef(null),
|
|
14744
|
-
c &&
|
|
14743
|
+
} = r, ue = E.useRef(null), G = Ig(), X = xr(G.ref, K), [H, Q] = E.useState(!1);
|
|
14744
|
+
c && H && Q(!1), E.useImperativeHandle(o, () => ({
|
|
14745
14745
|
focusVisible: () => {
|
|
14746
14746
|
Q(!0), ue.current.focus();
|
|
14747
14747
|
}
|
|
14748
14748
|
}), []);
|
|
14749
|
-
const Z =
|
|
14749
|
+
const Z = G.shouldMount && !d && !c;
|
|
14750
14750
|
E.useEffect(() => {
|
|
14751
|
-
|
|
14752
|
-
}, [d, m,
|
|
14753
|
-
const ye = pt(
|
|
14754
|
-
|
|
14755
|
-
}, p), Qe = pt(
|
|
14751
|
+
H && m && !d && G.pulsate();
|
|
14752
|
+
}, [d, m, H, G]);
|
|
14753
|
+
const ye = pt(G, "start", M, p), ee = pt(G, "stop", x, p), B = pt(G, "stop", S, p), Le = pt(G, "stop", F, p), _e = pt(G, "stop", (z) => {
|
|
14754
|
+
H && z.preventDefault(), V && V(z);
|
|
14755
|
+
}, p), Qe = pt(G, "start", O, p), $ = pt(G, "stop", g, p), _ = pt(G, "stop", R, p), ie = pt(G, "stop", (z) => {
|
|
14756
14756
|
_s(z.target) || Q(!1), b && b(z);
|
|
14757
14757
|
}, !1), kt = ur((z) => {
|
|
14758
14758
|
ue.current || (ue.current = z.currentTarget), _s(z.target) && (Q(!0), k && k(z)), C && C(z);
|
|
@@ -14760,12 +14760,12 @@ const $g = bn("MuiButtonBase", ["root", "disabled", "focusVisible"]), Dg = (e) =
|
|
|
14760
14760
|
const z = ue.current;
|
|
14761
14761
|
return l && l !== "button" && !(z.tagName === "A" && z.href);
|
|
14762
14762
|
}, Zr = ur((z) => {
|
|
14763
|
-
m && !z.repeat &&
|
|
14764
|
-
|
|
14765
|
-
}), z.target === z.currentTarget && lt() && z.key === " " && z.preventDefault(),
|
|
14763
|
+
m && !z.repeat && H && z.key === " " && G.stop(z, () => {
|
|
14764
|
+
G.start(z);
|
|
14765
|
+
}), z.target === z.currentTarget && lt() && z.key === " " && z.preventDefault(), v && v(z), z.target === z.currentTarget && lt() && z.key === "Enter" && !c && (z.preventDefault(), y && y(z));
|
|
14766
14766
|
}), eo = ur((z) => {
|
|
14767
|
-
m && z.key === " " &&
|
|
14768
|
-
|
|
14767
|
+
m && z.key === " " && H && !z.defaultPrevented && G.stop(z, () => {
|
|
14768
|
+
G.pulsate(z);
|
|
14769
14769
|
}), P && P(z), y && z.target === z.currentTarget && lt() && z.key === " " && !z.defaultPrevented && y(z);
|
|
14770
14770
|
});
|
|
14771
14771
|
let Ut = l;
|
|
@@ -14781,9 +14781,9 @@ const $g = bn("MuiButtonBase", ["root", "disabled", "focusVisible"]), Dg = (e) =
|
|
|
14781
14781
|
disableTouchRipple: p,
|
|
14782
14782
|
focusRipple: m,
|
|
14783
14783
|
tabIndex: D,
|
|
14784
|
-
focusVisible:
|
|
14784
|
+
focusVisible: H
|
|
14785
14785
|
}, no = Dg(Qn);
|
|
14786
|
-
return /* @__PURE__ */
|
|
14786
|
+
return /* @__PURE__ */ w(Bg, {
|
|
14787
14787
|
as: Ut,
|
|
14788
14788
|
className: Ce(no.root, a),
|
|
14789
14789
|
ownerState: Qn,
|
|
@@ -15015,7 +15015,7 @@ const Wg = (e) => {
|
|
|
15015
15015
|
readOnly: S,
|
|
15016
15016
|
required: C = !1,
|
|
15017
15017
|
tabIndex: k,
|
|
15018
|
-
type:
|
|
15018
|
+
type: v,
|
|
15019
15019
|
value: P,
|
|
15020
15020
|
slots: M = {},
|
|
15021
15021
|
slotProps: V = {},
|
|
@@ -15035,22 +15035,22 @@ const Wg = (e) => {
|
|
|
15035
15035
|
};
|
|
15036
15036
|
let q = a;
|
|
15037
15037
|
O && typeof q > "u" && (q = O.disabled);
|
|
15038
|
-
const ce =
|
|
15038
|
+
const ce = v === "checkbox" || v === "radio", ue = {
|
|
15039
15039
|
...t,
|
|
15040
15040
|
checked: g,
|
|
15041
15041
|
disabled: q,
|
|
15042
15042
|
disableFocusRipple: l,
|
|
15043
15043
|
edge: c
|
|
15044
|
-
},
|
|
15044
|
+
}, G = Wg(ue), X = {
|
|
15045
15045
|
slots: M,
|
|
15046
15046
|
slotProps: {
|
|
15047
15047
|
input: m,
|
|
15048
15048
|
...V
|
|
15049
15049
|
}
|
|
15050
|
-
}, [
|
|
15050
|
+
}, [H, Q] = zo("root", {
|
|
15051
15051
|
ref: n,
|
|
15052
15052
|
elementType: qg,
|
|
15053
|
-
className:
|
|
15053
|
+
className: G.root,
|
|
15054
15054
|
shouldForwardComponentProp: !0,
|
|
15055
15055
|
externalForwardedProps: {
|
|
15056
15056
|
...X,
|
|
@@ -15077,7 +15077,7 @@ const Wg = (e) => {
|
|
|
15077
15077
|
}), [Z, ye] = zo("input", {
|
|
15078
15078
|
ref: h,
|
|
15079
15079
|
elementType: Kg,
|
|
15080
|
-
className:
|
|
15080
|
+
className: G.input,
|
|
15081
15081
|
externalForwardedProps: X,
|
|
15082
15082
|
getSlotProps: (ee) => ({
|
|
15083
15083
|
...ee,
|
|
@@ -15096,13 +15096,13 @@ const Wg = (e) => {
|
|
|
15096
15096
|
readOnly: S,
|
|
15097
15097
|
required: C,
|
|
15098
15098
|
tabIndex: k,
|
|
15099
|
-
type:
|
|
15100
|
-
...
|
|
15099
|
+
type: v,
|
|
15100
|
+
...v === "checkbox" && P === void 0 ? {} : {
|
|
15101
15101
|
value: P
|
|
15102
15102
|
}
|
|
15103
15103
|
}
|
|
15104
15104
|
});
|
|
15105
|
-
return /* @__PURE__ */
|
|
15105
|
+
return /* @__PURE__ */ w(H, {
|
|
15106
15106
|
...Q,
|
|
15107
15107
|
children: [/* @__PURE__ */ u(Z, {
|
|
15108
15108
|
...ye
|
|
@@ -15230,7 +15230,7 @@ const nb = (e) => {
|
|
|
15230
15230
|
color: i,
|
|
15231
15231
|
indeterminate: a,
|
|
15232
15232
|
size: d
|
|
15233
|
-
}, C = nb(S), k = f.input ?? c, [
|
|
15233
|
+
}, C = nb(S), k = f.input ?? c, [v, P] = zo("root", {
|
|
15234
15234
|
ref: n,
|
|
15235
15235
|
elementType: rb,
|
|
15236
15236
|
className: Ce(C.root, m),
|
|
@@ -15258,7 +15258,7 @@ const nb = (e) => {
|
|
|
15258
15258
|
}
|
|
15259
15259
|
}
|
|
15260
15260
|
});
|
|
15261
|
-
return /* @__PURE__ */ u(
|
|
15261
|
+
return /* @__PURE__ */ u(v, {
|
|
15262
15262
|
...P,
|
|
15263
15263
|
classes: C
|
|
15264
15264
|
});
|
|
@@ -15694,7 +15694,7 @@ const fb = () => (Ms += 1, `mui-tree-view-${Ms}`), Si = ({
|
|
|
15694
15694
|
propsEnhancers: C
|
|
15695
15695
|
} = t(e), {
|
|
15696
15696
|
interactions: k,
|
|
15697
|
-
status:
|
|
15697
|
+
status: v
|
|
15698
15698
|
} = pb({
|
|
15699
15699
|
itemId: h,
|
|
15700
15700
|
children: b
|
|
@@ -15709,13 +15709,13 @@ const fb = () => (Ms += 1, `mui-tree-view-${Ms}`), Si = ({
|
|
|
15709
15709
|
}, j = ($) => (_) => {
|
|
15710
15710
|
if ($.onFocus?.(_), _.defaultMuiPrevented)
|
|
15711
15711
|
return;
|
|
15712
|
-
const ie = !
|
|
15713
|
-
!
|
|
15712
|
+
const ie = !v.disabled || r;
|
|
15713
|
+
!v.focused && ie && _.currentTarget === _.target && c.focusItem(_, h);
|
|
15714
15714
|
}, K = ($) => (_) => {
|
|
15715
15715
|
if ($.onBlur?.(_), _.defaultMuiPrevented)
|
|
15716
15716
|
return;
|
|
15717
15717
|
const ie = c.getItemDOMElement(h);
|
|
15718
|
-
|
|
15718
|
+
v.editing || // we can exit the editing state by clicking outside the input (within the Tree Item) or by pressing Enter or Escape -> we don't want to remove the focused item from the state in these cases
|
|
15719
15719
|
// we can also exit the editing state by clicking on the root itself -> want to remove the focused item from the state in this case
|
|
15720
15720
|
_.relatedTarget && jn(_.relatedTarget, ie) && (_.target && _.target?.dataset?.element === "labelInput" && jn(_.target, ie) || _.relatedTarget?.dataset?.element === "labelInput") || c.removeFocusedItem();
|
|
15721
15721
|
}, q = ($) => (_) => {
|
|
@@ -15724,26 +15724,26 @@ const fb = () => (Ms += 1, `mui-tree-view-${Ms}`), Si = ({
|
|
|
15724
15724
|
$.onDoubleClick?.(_), !_.defaultMuiPrevented && k.toggleItemEditing();
|
|
15725
15725
|
}, ue = ($) => (_) => {
|
|
15726
15726
|
$.onClick?.(_), n?.(_, h), !(_.defaultMuiPrevented || g.current?.contains(_.target)) && (a === "content" && k.handleExpansion(_), s || k.handleSelection(_));
|
|
15727
|
-
}, U = ($) => (_) => {
|
|
15728
|
-
$.onMouseDown?.(_), !_.defaultMuiPrevented && (_.shiftKey || _.ctrlKey || _.metaKey || w.disabled) && _.preventDefault();
|
|
15729
|
-
}, X = ($) => (_) => {
|
|
15730
|
-
$.onChange?.(_), !_.defaultMuiPrevented && (i || w.disabled || k.handleCheckboxSelection(_));
|
|
15731
15727
|
}, G = ($) => (_) => {
|
|
15728
|
+
$.onMouseDown?.(_), !_.defaultMuiPrevented && (_.shiftKey || _.ctrlKey || _.metaKey || v.disabled) && _.preventDefault();
|
|
15729
|
+
}, X = ($) => (_) => {
|
|
15730
|
+
$.onChange?.(_), !_.defaultMuiPrevented && (i || v.disabled || k.handleCheckboxSelection(_));
|
|
15731
|
+
}, H = ($) => (_) => {
|
|
15732
15732
|
$.onClick?.(_), !_.defaultMuiPrevented && a === "iconContainer" && k.handleExpansion(_);
|
|
15733
15733
|
};
|
|
15734
15734
|
return {
|
|
15735
15735
|
getRootProps: ($ = {}) => {
|
|
15736
15736
|
const _ = L({}, Xe(e), Xe($));
|
|
15737
15737
|
let ie;
|
|
15738
|
-
|
|
15738
|
+
v.selected ? ie = !0 : i || v.disabled ? ie = void 0 : ie = !1;
|
|
15739
15739
|
const kt = L({}, _, {
|
|
15740
15740
|
ref: V,
|
|
15741
15741
|
role: "treeitem",
|
|
15742
15742
|
tabIndex: O,
|
|
15743
15743
|
id: R,
|
|
15744
|
-
"aria-expanded":
|
|
15744
|
+
"aria-expanded": v.expandable ? v.expanded : void 0,
|
|
15745
15745
|
"aria-selected": ie,
|
|
15746
|
-
"aria-disabled":
|
|
15746
|
+
"aria-disabled": v.disabled || void 0
|
|
15747
15747
|
}, $, {
|
|
15748
15748
|
onFocus: j(_),
|
|
15749
15749
|
onBlur: K(_),
|
|
@@ -15761,8 +15761,8 @@ const fb = () => (Ms += 1, `mui-tree-view-${Ms}`), Si = ({
|
|
|
15761
15761
|
const _ = Xe($), ie = L({}, _, $, {
|
|
15762
15762
|
ref: F,
|
|
15763
15763
|
onClick: ue(_),
|
|
15764
|
-
onMouseDown:
|
|
15765
|
-
status:
|
|
15764
|
+
onMouseDown: G(_),
|
|
15765
|
+
status: v
|
|
15766
15766
|
});
|
|
15767
15767
|
o && (ie.indentationAtItemLevel = !0);
|
|
15768
15768
|
const kt = C.content?.(L({}, D, {
|
|
@@ -15775,7 +15775,7 @@ const fb = () => (Ms += 1, `mui-tree-view-${Ms}`), Si = ({
|
|
|
15775
15775
|
unmountOnExit: !0,
|
|
15776
15776
|
component: "ul",
|
|
15777
15777
|
role: "group",
|
|
15778
|
-
in:
|
|
15778
|
+
in: v.expanded,
|
|
15779
15779
|
children: b
|
|
15780
15780
|
}, $);
|
|
15781
15781
|
return o && (ie.indentationAtItemLevel = !0), ie;
|
|
@@ -15783,7 +15783,7 @@ const fb = () => (Ms += 1, `mui-tree-view-${Ms}`), Si = ({
|
|
|
15783
15783
|
getIconContainerProps: ($ = {}) => {
|
|
15784
15784
|
const _ = Xe($);
|
|
15785
15785
|
return L({}, _, $, {
|
|
15786
|
-
onClick:
|
|
15786
|
+
onClick: H(_)
|
|
15787
15787
|
});
|
|
15788
15788
|
},
|
|
15789
15789
|
getCheckboxProps: ($ = {}) => {
|
|
@@ -15791,8 +15791,8 @@ const fb = () => (Ms += 1, `mui-tree-view-${Ms}`), Si = ({
|
|
|
15791
15791
|
return L({}, _, {
|
|
15792
15792
|
visible: s,
|
|
15793
15793
|
ref: g,
|
|
15794
|
-
checked:
|
|
15795
|
-
disabled: i ||
|
|
15794
|
+
checked: v.selected,
|
|
15795
|
+
disabled: i || v.disabled,
|
|
15796
15796
|
tabIndex: -1
|
|
15797
15797
|
}, $, {
|
|
15798
15798
|
onChange: X(_)
|
|
@@ -15804,7 +15804,7 @@ const fb = () => (Ms += 1, `mui-tree-view-${Ms}`), Si = ({
|
|
|
15804
15804
|
}, $, {
|
|
15805
15805
|
onDoubleClick: ce(_)
|
|
15806
15806
|
});
|
|
15807
|
-
return c.isTreeViewEditable && (ie.editable =
|
|
15807
|
+
return c.isTreeViewEditable && (ie.editable = v.editable), ie;
|
|
15808
15808
|
},
|
|
15809
15809
|
getLabelInputProps: ($ = {}) => {
|
|
15810
15810
|
const _ = Xe($), ie = C.labelInput?.({
|
|
@@ -15822,7 +15822,7 @@ const fb = () => (Ms += 1, `mui-tree-view-${Ms}`), Si = ({
|
|
|
15822
15822
|
return L({}, $, ie);
|
|
15823
15823
|
},
|
|
15824
15824
|
rootRef: V,
|
|
15825
|
-
status:
|
|
15825
|
+
status: v,
|
|
15826
15826
|
publicAPI: d
|
|
15827
15827
|
};
|
|
15828
15828
|
}, bb = gb;
|
|
@@ -15840,34 +15840,34 @@ function xl(e) {
|
|
|
15840
15840
|
expansion: {
|
|
15841
15841
|
expansionTrigger: s
|
|
15842
15842
|
}
|
|
15843
|
-
} = Ht(), a = t.isItemExpandable(e), l = t.isItemExpanded(e), c = t.isItemFocused(e), d = t.isItemSelected(e), p = t.isItemDisabled(e), m = t?.isItemBeingEdited ? t?.isItemBeingEdited(e) : !1, h = t.isItemEditable ? t.isItemEditable(e) : !1, f = (
|
|
15843
|
+
} = Ht(), a = t.isItemExpandable(e), l = t.isItemExpanded(e), c = t.isItemFocused(e), d = t.isItemSelected(e), p = t.isItemDisabled(e), m = t?.isItemBeingEdited ? t?.isItemBeingEdited(e) : !1, h = t.isItemEditable ? t.isItemEditable(e) : !1, f = (v) => {
|
|
15844
15844
|
if (!p) {
|
|
15845
|
-
c || t.focusItem(
|
|
15846
|
-
const P = r && (
|
|
15847
|
-
a && !(P && t.isItemExpanded(e)) && t.toggleItemExpansion(
|
|
15845
|
+
c || t.focusItem(v, e);
|
|
15846
|
+
const P = r && (v.shiftKey || v.ctrlKey || v.metaKey);
|
|
15847
|
+
a && !(P && t.isItemExpanded(e)) && t.toggleItemExpansion(v, e);
|
|
15848
15848
|
}
|
|
15849
|
-
}, b = (
|
|
15850
|
-
p || (c || t.focusItem(
|
|
15851
|
-
event:
|
|
15849
|
+
}, b = (v) => {
|
|
15850
|
+
p || (c || t.focusItem(v, e), r && (v.shiftKey || v.ctrlKey || v.metaKey) ? v.shiftKey ? t.expandSelectionRange(v, e) : t.selectItem({
|
|
15851
|
+
event: v,
|
|
15852
15852
|
itemId: e,
|
|
15853
15853
|
keepExistingSelection: !0
|
|
15854
15854
|
}) : t.selectItem({
|
|
15855
|
-
event:
|
|
15855
|
+
event: v,
|
|
15856
15856
|
itemId: e,
|
|
15857
15857
|
shouldBeSelected: !0
|
|
15858
15858
|
}));
|
|
15859
|
-
}, y = (
|
|
15859
|
+
}, y = (v) => {
|
|
15860
15860
|
if (i || p)
|
|
15861
15861
|
return;
|
|
15862
|
-
const P =
|
|
15863
|
-
r && P ? t.expandSelectionRange(
|
|
15864
|
-
event:
|
|
15862
|
+
const P = v.nativeEvent.shiftKey;
|
|
15863
|
+
r && P ? t.expandSelectionRange(v, e) : t.selectItem({
|
|
15864
|
+
event: v,
|
|
15865
15865
|
itemId: e,
|
|
15866
15866
|
keepExistingSelection: r,
|
|
15867
|
-
shouldBeSelected:
|
|
15867
|
+
shouldBeSelected: v.target.checked
|
|
15868
15868
|
});
|
|
15869
|
-
}, x = (
|
|
15870
|
-
(
|
|
15869
|
+
}, x = (v) => {
|
|
15870
|
+
(v.shiftKey || v.ctrlKey || v.metaKey || p) && v.preventDefault();
|
|
15871
15871
|
}, S = () => {
|
|
15872
15872
|
jt(t, et) && t.isItemEditable(e) && (t.isItemBeingEdited(e) ? t.setEditedItemId(null) : t.setEditedItemId(e));
|
|
15873
15873
|
};
|
|
@@ -15887,11 +15887,11 @@ function xl(e) {
|
|
|
15887
15887
|
preventSelection: x,
|
|
15888
15888
|
expansionTrigger: s,
|
|
15889
15889
|
toggleItemEditing: S,
|
|
15890
|
-
handleSaveItemLabel: (
|
|
15891
|
-
jt(t, et) && t.isItemBeingEditedRef(e) && (t.updateItemLabel(e, P), S(), t.focusItem(
|
|
15890
|
+
handleSaveItemLabel: (v, P) => {
|
|
15891
|
+
jt(t, et) && t.isItemBeingEditedRef(e) && (t.updateItemLabel(e, P), S(), t.focusItem(v, e));
|
|
15892
15892
|
},
|
|
15893
|
-
handleCancelItemLabelEditing: (
|
|
15894
|
-
jt(t, et) && t.isItemBeingEditedRef(e) && (S(), t.focusItem(
|
|
15893
|
+
handleCancelItemLabelEditing: (v) => {
|
|
15894
|
+
jt(t, et) && t.isItemBeingEditedRef(e) && (S(), t.focusItem(v, e));
|
|
15895
15895
|
}
|
|
15896
15896
|
};
|
|
15897
15897
|
}
|
|
@@ -15984,7 +15984,7 @@ const Sb = de("input", {
|
|
|
15984
15984
|
focused: S,
|
|
15985
15985
|
editing: C,
|
|
15986
15986
|
editable: k,
|
|
15987
|
-
disableSelection:
|
|
15987
|
+
disableSelection: v,
|
|
15988
15988
|
checkboxSelection: P,
|
|
15989
15989
|
handleExpansion: M,
|
|
15990
15990
|
handleSelection: V,
|
|
@@ -15993,16 +15993,16 @@ const Sb = de("input", {
|
|
|
15993
15993
|
preventSelection: R,
|
|
15994
15994
|
expansionTrigger: O,
|
|
15995
15995
|
toggleItemEditing: D
|
|
15996
|
-
} = xl(c), j = a || s || i, K = E.useRef(null), q = (
|
|
15997
|
-
R(
|
|
15998
|
-
}, ce = (
|
|
15999
|
-
g?.(
|
|
16000
|
-
}, ue = (
|
|
16001
|
-
|
|
15996
|
+
} = xl(c), j = a || s || i, K = E.useRef(null), q = (G) => {
|
|
15997
|
+
R(G), p && p(G);
|
|
15998
|
+
}, ce = (G) => {
|
|
15999
|
+
g?.(G, c), !K.current?.contains(G.target) && (O === "content" && M(G), P || V(G), d && d(G));
|
|
16000
|
+
}, ue = (G) => {
|
|
16001
|
+
G.defaultMuiPrevented || D();
|
|
16002
16002
|
};
|
|
16003
16003
|
return (
|
|
16004
16004
|
/* eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions -- Key event is handled by the TreeView */
|
|
16005
|
-
/* @__PURE__ */
|
|
16005
|
+
/* @__PURE__ */ w("div", L({}, f, {
|
|
16006
16006
|
className: Ce(r.root, o, y && r.expanded, x && r.selected, S && r.focused, b && r.disabled, C && r.editing, k && r.editable),
|
|
16007
16007
|
onClick: ce,
|
|
16008
16008
|
onMouseDown: q,
|
|
@@ -16014,7 +16014,7 @@ const Sb = de("input", {
|
|
|
16014
16014
|
className: r.checkbox,
|
|
16015
16015
|
checked: x,
|
|
16016
16016
|
onChange: F,
|
|
16017
|
-
disabled: b ||
|
|
16017
|
+
disabled: b || v,
|
|
16018
16018
|
ref: K,
|
|
16019
16019
|
tabIndex: -1
|
|
16020
16020
|
}), C ? /* @__PURE__ */ u(Sb, L({}, h, {
|
|
@@ -16028,7 +16028,7 @@ const Sb = de("input", {
|
|
|
16028
16028
|
})), m && /* @__PURE__ */ u(xb, L({}, m))]
|
|
16029
16029
|
}))
|
|
16030
16030
|
);
|
|
16031
|
-
}), Ls = (e) => e,
|
|
16031
|
+
}), Ls = (e) => e, wb = () => {
|
|
16032
16032
|
let e = Ls;
|
|
16033
16033
|
return {
|
|
16034
16034
|
configure(t) {
|
|
@@ -16041,7 +16041,7 @@ const Sb = de("input", {
|
|
|
16041
16041
|
e = Ls;
|
|
16042
16042
|
}
|
|
16043
16043
|
};
|
|
16044
|
-
},
|
|
16044
|
+
}, vb = wb(), kb = {
|
|
16045
16045
|
active: "active",
|
|
16046
16046
|
checked: "checked",
|
|
16047
16047
|
completed: "completed",
|
|
@@ -16057,7 +16057,7 @@ const Sb = de("input", {
|
|
|
16057
16057
|
};
|
|
16058
16058
|
function Ci(e, t, n = "Mui") {
|
|
16059
16059
|
const r = kb[t];
|
|
16060
|
-
return r ? `${n}-${r}` : `${
|
|
16060
|
+
return r ? `${n}-${r}` : `${vb.generate(e)}-${t}`;
|
|
16061
16061
|
}
|
|
16062
16062
|
function Cl(e, t, n = "Mui") {
|
|
16063
16063
|
const r = {};
|
|
@@ -16068,12 +16068,12 @@ function Cl(e, t, n = "Mui") {
|
|
|
16068
16068
|
function Ib(e) {
|
|
16069
16069
|
return Ci("MuiTreeItem", e);
|
|
16070
16070
|
}
|
|
16071
|
-
const ht = Cl("MuiTreeItem", ["root", "groupTransition", "content", "expanded", "selected", "focused", "disabled", "iconContainer", "label", "checkbox", "labelInput", "editable", "editing", "dragAndDropOverlay"]),
|
|
16071
|
+
const ht = Cl("MuiTreeItem", ["root", "groupTransition", "content", "expanded", "selected", "focused", "disabled", "iconContainer", "label", "checkbox", "labelInput", "editable", "editing", "dragAndDropOverlay"]), wl = le(/* @__PURE__ */ u("path", {
|
|
16072
16072
|
d: "M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"
|
|
16073
|
-
})),
|
|
16073
|
+
})), vl = le(/* @__PURE__ */ u("path", {
|
|
16074
16074
|
d: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"
|
|
16075
16075
|
}));
|
|
16076
|
-
function
|
|
16076
|
+
function wi(e) {
|
|
16077
16077
|
const {
|
|
16078
16078
|
children: t,
|
|
16079
16079
|
itemId: n
|
|
@@ -16087,7 +16087,7 @@ function vi(e) {
|
|
|
16087
16087
|
instance: o
|
|
16088
16088
|
});
|
|
16089
16089
|
}
|
|
16090
|
-
|
|
16090
|
+
wi.propTypes = {
|
|
16091
16091
|
// ----------------------------- Warning --------------------------------
|
|
16092
16092
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
16093
16093
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -16246,7 +16246,7 @@ const Eb = ["children", "className", "slots", "slotProps", "ContentComponent", "
|
|
|
16246
16246
|
ContentProps: S,
|
|
16247
16247
|
itemId: C,
|
|
16248
16248
|
id: k,
|
|
16249
|
-
label:
|
|
16249
|
+
label: v,
|
|
16250
16250
|
onClick: P,
|
|
16251
16251
|
onMouseDown: M,
|
|
16252
16252
|
onBlur: V,
|
|
@@ -16261,12 +16261,12 @@ const Eb = ["children", "className", "slots", "slotProps", "ContentComponent", "
|
|
|
16261
16261
|
handleCancelItemLabelEditing: ce,
|
|
16262
16262
|
handleSaveItemLabel: ue
|
|
16263
16263
|
} = xl(C), {
|
|
16264
|
-
contentRef:
|
|
16264
|
+
contentRef: G,
|
|
16265
16265
|
rootRef: X,
|
|
16266
|
-
propsEnhancers:
|
|
16267
|
-
} = o(m), Q = E.useRef(null), Z = E.useRef(null), ye = mn(n, X, Q), ee = mn(S?.ref,
|
|
16268
|
-
expandIcon: b?.expandIcon ?? r.slots.expandIcon ??
|
|
16269
|
-
collapseIcon: b?.collapseIcon ?? r.slots.collapseIcon ??
|
|
16266
|
+
propsEnhancers: H
|
|
16267
|
+
} = o(m), Q = E.useRef(null), Z = E.useRef(null), ye = mn(n, X, Q), ee = mn(S?.ref, G, Z), B = {
|
|
16268
|
+
expandIcon: b?.expandIcon ?? r.slots.expandIcon ?? wl,
|
|
16269
|
+
collapseIcon: b?.collapseIcon ?? r.slots.collapseIcon ?? vl,
|
|
16270
16270
|
endIcon: b?.endIcon ?? r.slots.endIcon,
|
|
16271
16271
|
icon: b?.icon,
|
|
16272
16272
|
groupTransition: b?.groupTransition
|
|
@@ -16330,18 +16330,18 @@ const Eb = ["children", "className", "slots", "slotProps", "ContentComponent", "
|
|
|
16330
16330
|
handleSaveItemLabel: ue,
|
|
16331
16331
|
handleCancelItemLabelEditing: ce
|
|
16332
16332
|
}
|
|
16333
|
-
}, Gl =
|
|
16333
|
+
}, Gl = H.root?.(L({}, Xn, {
|
|
16334
16334
|
externalEventHandlers: Xe(g)
|
|
16335
|
-
})) ?? {}, Wl =
|
|
16335
|
+
})) ?? {}, Wl = H.content?.(L({}, Xn, {
|
|
16336
16336
|
externalEventHandlers: Xe(S)
|
|
16337
|
-
})) ?? {}, Ti =
|
|
16337
|
+
})) ?? {}, Ti = H.dragAndDropOverlay?.(L({}, Xn, {
|
|
16338
16338
|
externalEventHandlers: {}
|
|
16339
|
-
})) ?? {}, Pi =
|
|
16339
|
+
})) ?? {}, Pi = H.labelInput?.(L({}, Xn, {
|
|
16340
16340
|
externalEventHandlers: {}
|
|
16341
16341
|
})) ?? {};
|
|
16342
|
-
return /* @__PURE__ */ u(
|
|
16342
|
+
return /* @__PURE__ */ u(wi, {
|
|
16343
16343
|
itemId: C,
|
|
16344
|
-
children: /* @__PURE__ */
|
|
16344
|
+
children: /* @__PURE__ */ w(Ob, L({
|
|
16345
16345
|
className: Ce($.root, f),
|
|
16346
16346
|
role: "treeitem",
|
|
16347
16347
|
"aria-expanded": _e ? R : void 0,
|
|
@@ -16374,7 +16374,7 @@ const Eb = ["children", "className", "slots", "slotProps", "ContentComponent", "
|
|
|
16374
16374
|
labelInput: $.labelInput,
|
|
16375
16375
|
checkbox: $.checkbox
|
|
16376
16376
|
},
|
|
16377
|
-
label:
|
|
16377
|
+
label: v,
|
|
16378
16378
|
itemId: C,
|
|
16379
16379
|
onClick: P,
|
|
16380
16380
|
onMouseDown: M,
|
|
@@ -16402,8 +16402,8 @@ function $b(e) {
|
|
|
16402
16402
|
slotProps: n,
|
|
16403
16403
|
status: r
|
|
16404
16404
|
} = e, o = Ht(), i = L({}, o.icons.slots, {
|
|
16405
|
-
expandIcon: o.icons.slots.expandIcon ??
|
|
16406
|
-
collapseIcon: o.icons.slots.collapseIcon ??
|
|
16405
|
+
expandIcon: o.icons.slots.expandIcon ?? wl,
|
|
16406
|
+
collapseIcon: o.icons.slots.collapseIcon ?? vl
|
|
16407
16407
|
}), s = o.icons.slotProps;
|
|
16408
16408
|
let a;
|
|
16409
16409
|
t?.icon ? a = "icon" : r.expandable ? r.expanded ? a = "collapseIcon" : a = "expandIcon" : a = "endIcon";
|
|
@@ -16655,7 +16655,7 @@ const Il = ({
|
|
|
16655
16655
|
};
|
|
16656
16656
|
};
|
|
16657
16657
|
Il.params = {};
|
|
16658
|
-
const
|
|
16658
|
+
const vi = ({
|
|
16659
16659
|
params: e,
|
|
16660
16660
|
state: t,
|
|
16661
16661
|
setState: n
|
|
@@ -16677,17 +16677,17 @@ const wi = ({
|
|
|
16677
16677
|
}
|
|
16678
16678
|
};
|
|
16679
16679
|
};
|
|
16680
|
-
|
|
16680
|
+
vi.params = {
|
|
16681
16681
|
id: !0
|
|
16682
16682
|
};
|
|
16683
|
-
|
|
16683
|
+
vi.getInitialState = ({
|
|
16684
16684
|
id: e
|
|
16685
16685
|
}) => ({
|
|
16686
16686
|
id: {
|
|
16687
16687
|
treeId: e ?? void 0
|
|
16688
16688
|
}
|
|
16689
16689
|
});
|
|
16690
|
-
const Wb = [kl, Il,
|
|
16690
|
+
const Wb = [kl, Il, vi], qb = ["slots", "slotProps", "apiRef", "experimentalFeatures"], Kb = (e) => {
|
|
16691
16691
|
let {
|
|
16692
16692
|
props: {
|
|
16693
16693
|
slots: t,
|
|
@@ -16901,8 +16901,8 @@ const Xb = ({
|
|
|
16901
16901
|
}) => {
|
|
16902
16902
|
const i = E.useCallback((x) => n.items.itemMetaMap[x], [n.items.itemMetaMap]), s = E.useCallback((x) => n.items.itemMap[x], [n.items.itemMap]), a = E.useCallback(() => {
|
|
16903
16903
|
const x = (S) => {
|
|
16904
|
-
const C = n.items.itemMap[S], k = yt(C, ey),
|
|
16905
|
-
return
|
|
16904
|
+
const C = n.items.itemMap[S], k = yt(C, ey), v = n.items.itemOrderedChildrenIds[S];
|
|
16905
|
+
return v && (k.children = v.map(x)), k;
|
|
16906
16906
|
};
|
|
16907
16907
|
return n.items.itemOrderedChildrenIds[nn].map(x);
|
|
16908
16908
|
}, [n.items.itemMap, n.items.itemOrderedChildrenIds]), l = E.useCallback((x) => {
|
|
@@ -17129,8 +17129,8 @@ const mr = (e) => Array.isArray(e) ? e : e != null ? [e] : [], Co = (e) => {
|
|
|
17129
17129
|
return;
|
|
17130
17130
|
let C;
|
|
17131
17131
|
if (x) {
|
|
17132
|
-
const k = mr(n.selectedItems.value),
|
|
17133
|
-
|
|
17132
|
+
const k = mr(n.selectedItems.value), v = e.isItemSelected(y);
|
|
17133
|
+
v && (S === !1 || S == null) ? C = k.filter((P) => P !== y) : !v && (S === !0 || S == null) ? C = [y].concat(k) : C = k;
|
|
17134
17134
|
} else
|
|
17135
17135
|
S === !1 || S == null && e.isItemSelected(y) ? C = t.multiSelect ? [] : null : C = t.multiSelect ? [y] : y;
|
|
17136
17136
|
s(b, C), r.current = y, o.current = {};
|
|
@@ -17139,8 +17139,8 @@ const mr = (e) => Array.isArray(e) ? e : e != null ? [e] : [], Co = (e) => {
|
|
|
17139
17139
|
return;
|
|
17140
17140
|
let S = mr(n.selectedItems.value).slice();
|
|
17141
17141
|
Object.keys(o.current).length > 0 && (S = S.filter((P) => !o.current[P]));
|
|
17142
|
-
const C = Co(S), k = hb(e, y, x),
|
|
17143
|
-
S = S.concat(
|
|
17142
|
+
const C = Co(S), k = hb(e, y, x), v = k.filter((P) => !C[P]);
|
|
17143
|
+
S = S.concat(v), s(b, S), o.current = Co(k);
|
|
17144
17144
|
};
|
|
17145
17145
|
return {
|
|
17146
17146
|
getRootProps: () => ({
|
|
@@ -17617,9 +17617,9 @@ const gy = pl(), by = (e) => {
|
|
|
17617
17617
|
d: "M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"
|
|
17618
17618
|
}, "0"), /* @__PURE__ */ u("path", {
|
|
17619
17619
|
d: "M14 17H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z"
|
|
17620
|
-
}, "1")]),
|
|
17620
|
+
}, "1")]), wy = le(/* @__PURE__ */ u("path", {
|
|
17621
17621
|
d: "M19 15v4H5v-4zm1-2H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-6c0-.55-.45-1-1-1M7 18.5c-.82 0-1.5-.67-1.5-1.5s.68-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5M19 5v4H5V5zm1-2H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1V4c0-.55-.45-1-1-1M7 8.5c-.82 0-1.5-.67-1.5-1.5S6.18 5.5 7 5.5s1.5.68 1.5 1.5S7.83 8.5 7 8.5"
|
|
17622
|
-
})),
|
|
17622
|
+
})), vy = le(/* @__PURE__ */ u("path", {
|
|
17623
17623
|
d: "M15 4v2h3v12h-3v2h5V4zM4 20h5v-2H6V6h3V4H4z"
|
|
17624
17624
|
}));
|
|
17625
17625
|
function Al({
|
|
@@ -17647,7 +17647,7 @@ function Iy(e) {
|
|
|
17647
17647
|
return /* @__PURE__ */ u(ky, { style: t, ...e });
|
|
17648
17648
|
}
|
|
17649
17649
|
function Ey({ item: e, ...t }) {
|
|
17650
|
-
const n = /* @__PURE__ */
|
|
17650
|
+
const n = /* @__PURE__ */ w(
|
|
17651
17651
|
Vb,
|
|
17652
17652
|
{
|
|
17653
17653
|
...t,
|
|
@@ -17657,7 +17657,7 @@ function Ey({ item: e, ...t }) {
|
|
|
17657
17657
|
color: e.error ? "error.main" : "grey.600"
|
|
17658
17658
|
},
|
|
17659
17659
|
children: [
|
|
17660
|
-
e.fileType === "directory" && /* @__PURE__ */ u(Sy, {}) || e.fileType === "notebook" && /* @__PURE__ */ u(Cy, {}) || e.fileType === "model" && /* @__PURE__ */ u(
|
|
17660
|
+
e.fileType === "directory" && /* @__PURE__ */ u(Sy, {}) || e.fileType === "notebook" && /* @__PURE__ */ u(Cy, {}) || e.fileType === "model" && /* @__PURE__ */ u(vy, {}) || e.fileType == "database" && /* @__PURE__ */ u(wy, {}) || /* @__PURE__ */ u(il, {}),
|
|
17661
17661
|
/* @__PURE__ */ u(
|
|
17662
17662
|
A,
|
|
17663
17663
|
{
|
|
@@ -17689,8 +17689,8 @@ const Ty = E.forwardRef(function(t, n) {
|
|
|
17689
17689
|
disabled: a,
|
|
17690
17690
|
rootRef: n
|
|
17691
17691
|
}), y = b.getItem(o);
|
|
17692
|
-
return f.selected = !1, f.focused = !1, /* @__PURE__ */ u(
|
|
17693
|
-
/* @__PURE__ */
|
|
17692
|
+
return f.selected = !1, f.focused = !1, /* @__PURE__ */ u(wi, { itemId: o, children: /* @__PURE__ */ w(Bb, { ...c(l), children: [
|
|
17693
|
+
/* @__PURE__ */ w(
|
|
17694
17694
|
jb,
|
|
17695
17695
|
{
|
|
17696
17696
|
...d(),
|
|
@@ -17762,10 +17762,10 @@ function Ay({ navigate: e }) {
|
|
|
17762
17762
|
queryKey: ["models", t, n, r],
|
|
17763
17763
|
queryFn: (l) => Ry.listModels(t, n, r, l)
|
|
17764
17764
|
});
|
|
17765
|
-
return /* @__PURE__ */ u(Oe, { variant: "outlined", sx: { width: "100%" }, children: /* @__PURE__ */
|
|
17765
|
+
return /* @__PURE__ */ u(Oe, { variant: "outlined", sx: { width: "100%" }, children: /* @__PURE__ */ w(Ke, { children: [
|
|
17766
17766
|
/* @__PURE__ */ u(A, { variant: "overline", fontWeight: "bold", children: "Semantic Models" }),
|
|
17767
17767
|
/* @__PURE__ */ u($e, {}),
|
|
17768
|
-
/* @__PURE__ */
|
|
17768
|
+
/* @__PURE__ */ w(
|
|
17769
17769
|
Y,
|
|
17770
17770
|
{
|
|
17771
17771
|
sx: {
|
|
@@ -17806,10 +17806,10 @@ function My({ navigate: e }) {
|
|
|
17806
17806
|
l
|
|
17807
17807
|
)
|
|
17808
17808
|
});
|
|
17809
|
-
return /* @__PURE__ */ u(Oe, { variant: "outlined", sx: { width: "100%" }, children: /* @__PURE__ */
|
|
17809
|
+
return /* @__PURE__ */ u(Oe, { variant: "outlined", sx: { width: "100%" }, children: /* @__PURE__ */ w(Ke, { children: [
|
|
17810
17810
|
/* @__PURE__ */ u(A, { variant: "overline", fontWeight: "bold", children: "Notebooks" }),
|
|
17811
17811
|
/* @__PURE__ */ u($e, {}),
|
|
17812
|
-
/* @__PURE__ */
|
|
17812
|
+
/* @__PURE__ */ w(
|
|
17813
17813
|
Y,
|
|
17814
17814
|
{
|
|
17815
17815
|
sx: {
|
|
@@ -17856,7 +17856,7 @@ function $y() {
|
|
|
17856
17856
|
error: s,
|
|
17857
17857
|
context: `${e} > ${t} > Schedules`
|
|
17858
17858
|
}
|
|
17859
|
-
) : r.data.length ? /* @__PURE__ */ u(Oe, { variant: "outlined", sx: { padding: "10px", width: "100%" }, children: /* @__PURE__ */
|
|
17859
|
+
) : r.data.length ? /* @__PURE__ */ u(Oe, { variant: "outlined", sx: { padding: "10px", width: "100%" }, children: /* @__PURE__ */ w(Ke, { children: [
|
|
17860
17860
|
/* @__PURE__ */ u(A, { variant: "overline", fontWeight: "bold", children: "Scheduler" }),
|
|
17861
17861
|
/* @__PURE__ */ u($e, {}),
|
|
17862
17862
|
/* @__PURE__ */ u(
|
|
@@ -17867,8 +17867,8 @@ function $y() {
|
|
|
17867
17867
|
maxHeight: "200px",
|
|
17868
17868
|
overflowY: "auto"
|
|
17869
17869
|
},
|
|
17870
|
-
children: /* @__PURE__ */ u(Uo, { component:
|
|
17871
|
-
/* @__PURE__ */ u(fr, { children: /* @__PURE__ */
|
|
17870
|
+
children: /* @__PURE__ */ u(Uo, { component: wo, children: /* @__PURE__ */ w(_n, { sx: { minWidth: 300 }, size: "small", children: [
|
|
17871
|
+
/* @__PURE__ */ u(fr, { children: /* @__PURE__ */ w(at, { children: [
|
|
17872
17872
|
/* @__PURE__ */ u(ne, { align: "left", children: "Resource" }),
|
|
17873
17873
|
/* @__PURE__ */ u(ne, { align: "left", children: "Schedule" }),
|
|
17874
17874
|
/* @__PURE__ */ u(ne, { align: "left", children: "Action" }),
|
|
@@ -17876,7 +17876,7 @@ function $y() {
|
|
|
17876
17876
|
/* @__PURE__ */ u(ne, { align: "left", children: "Last Run" }),
|
|
17877
17877
|
/* @__PURE__ */ u(ne, { align: "left", children: "Status" })
|
|
17878
17878
|
] }) }),
|
|
17879
|
-
/* @__PURE__ */ u(An, { children: r.data.map((a) => /* @__PURE__ */
|
|
17879
|
+
/* @__PURE__ */ u(An, { children: r.data.map((a) => /* @__PURE__ */ w(
|
|
17880
17880
|
at,
|
|
17881
17881
|
{
|
|
17882
17882
|
sx: {
|
|
@@ -17904,7 +17904,7 @@ const Dy = "README.malloynb";
|
|
|
17904
17904
|
function R0({ navigate: e }) {
|
|
17905
17905
|
return e || (e = (t) => {
|
|
17906
17906
|
window.location.href = t;
|
|
17907
|
-
}), /* @__PURE__ */
|
|
17907
|
+
}), /* @__PURE__ */ w(be, { container: !0, spacing: 2, columns: 12, children: [
|
|
17908
17908
|
/* @__PURE__ */ u(be, { size: { xs: 12, md: 4 }, children: /* @__PURE__ */ u(rg, {}) }),
|
|
17909
17909
|
/* @__PURE__ */ u(be, { size: { xs: 12, md: 4 }, children: /* @__PURE__ */ u(My, { navigate: e }) }),
|
|
17910
17910
|
/* @__PURE__ */ u(be, { size: { xs: 12, md: 4 }, children: /* @__PURE__ */ u(Ay, { navigate: e }) }),
|
|
@@ -17980,7 +17980,7 @@ function jy({
|
|
|
17980
17980
|
}) {
|
|
17981
17981
|
const [m, h] = N.useState(t), [f, b] = N.useState(n), [y, x] = N.useState(), [S] = N.useState(), [C, k] = N.useState(
|
|
17982
17982
|
Pn()
|
|
17983
|
-
), [
|
|
17983
|
+
), [v, P] = N.useState(!1), [M, V] = N.useState(
|
|
17984
17984
|
e.sourceName ? s.findIndex(
|
|
17985
17985
|
(Z) => Z.sourceInfo.name === e.sourceName
|
|
17986
17986
|
) : 0
|
|
@@ -18027,7 +18027,7 @@ function jy({
|
|
|
18027
18027
|
}
|
|
18028
18028
|
)
|
|
18029
18029
|
}
|
|
18030
|
-
) }) }), ue = /* @__PURE__ */
|
|
18030
|
+
) }) }), ue = /* @__PURE__ */ w(
|
|
18031
18031
|
ln,
|
|
18032
18032
|
{
|
|
18033
18033
|
open: O,
|
|
@@ -18035,16 +18035,16 @@ function jy({
|
|
|
18035
18035
|
children: [
|
|
18036
18036
|
/* @__PURE__ */ u(cn, { children: "Confirm Delete" }),
|
|
18037
18037
|
/* @__PURE__ */ u(un, { children: /* @__PURE__ */ u(A, { children: "Are you sure you want to delete this cell?" }) }),
|
|
18038
|
-
/* @__PURE__ */
|
|
18038
|
+
/* @__PURE__ */ w(Hs, { children: [
|
|
18039
18039
|
/* @__PURE__ */ u(He, { onClick: () => D(!1), children: "Cancel" }),
|
|
18040
18040
|
/* @__PURE__ */ u(He, { onClick: j, color: "error", children: "Delete" })
|
|
18041
18041
|
] })
|
|
18042
18042
|
]
|
|
18043
18043
|
}
|
|
18044
|
-
),
|
|
18044
|
+
), G = e.isMarkdown ? /* @__PURE__ */ w(we, { children: [
|
|
18045
18045
|
i ? /* @__PURE__ */ u(xe, { title: "Save", children: /* @__PURE__ */ u(fe, { size: "small", onClick: l, children: /* @__PURE__ */ u(ir, {}) }) }) : /* @__PURE__ */ u(xe, { title: "Edit", children: /* @__PURE__ */ u(fe, { size: "small", onClick: c, children: /* @__PURE__ */ u(Ds, {}) }) }),
|
|
18046
18046
|
!i && ce
|
|
18047
|
-
] }) : /* @__PURE__ */
|
|
18047
|
+
] }) : /* @__PURE__ */ w(we, { children: [
|
|
18048
18048
|
!o && /* @__PURE__ */ u(xe, { title: m ? "Hide Code" : "View Code", children: /* @__PURE__ */ u(
|
|
18049
18049
|
fe,
|
|
18050
18050
|
{
|
|
@@ -18083,7 +18083,7 @@ function jy({
|
|
|
18083
18083
|
) }),
|
|
18084
18084
|
!o && /* @__PURE__ */ u(xe, { title: "Edit", children: /* @__PURE__ */ u(fe, { size: "small", onClick: c, children: /* @__PURE__ */ u(Ds, {}) }) }),
|
|
18085
18085
|
!o && ce
|
|
18086
|
-
] }), X = o || i,
|
|
18086
|
+
] }), X = o || i, H = i ? /* @__PURE__ */ u(xe, { title: "Save", children: /* @__PURE__ */ u(fe, { size: "small", onClick: l, children: /* @__PURE__ */ u(ir, {}) }) }) : o ? /* @__PURE__ */ u(xe, { title: "Save", children: /* @__PURE__ */ u(
|
|
18087
18087
|
fe,
|
|
18088
18088
|
{
|
|
18089
18089
|
size: "small",
|
|
@@ -18092,7 +18092,7 @@ function jy({
|
|
|
18092
18092
|
},
|
|
18093
18093
|
children: /* @__PURE__ */ u(ir, {})
|
|
18094
18094
|
}
|
|
18095
|
-
) }) : null, Q =
|
|
18095
|
+
) }) : null, Q = v && /* @__PURE__ */ u(
|
|
18096
18096
|
Y,
|
|
18097
18097
|
{
|
|
18098
18098
|
sx: {
|
|
@@ -18110,14 +18110,14 @@ function jy({
|
|
|
18110
18110
|
boxShadow: 1,
|
|
18111
18111
|
zIndex: 10
|
|
18112
18112
|
},
|
|
18113
|
-
children: !X && /* @__PURE__ */
|
|
18113
|
+
children: !X && /* @__PURE__ */ w(we, { children: [
|
|
18114
18114
|
p(!0),
|
|
18115
18115
|
p(!1),
|
|
18116
|
-
|
|
18117
|
-
] }) ||
|
|
18116
|
+
G
|
|
18117
|
+
] }) || H
|
|
18118
18118
|
}
|
|
18119
18119
|
);
|
|
18120
|
-
return /* @__PURE__ */
|
|
18120
|
+
return /* @__PURE__ */ w(
|
|
18121
18121
|
Oe,
|
|
18122
18122
|
{
|
|
18123
18123
|
sx: {
|
|
@@ -18134,7 +18134,7 @@ function jy({
|
|
|
18134
18134
|
},
|
|
18135
18135
|
children: [
|
|
18136
18136
|
Q,
|
|
18137
|
-
e.isMarkdown ? /* @__PURE__ */ u(
|
|
18137
|
+
e.isMarkdown ? /* @__PURE__ */ u(we, { children: i ? /* @__PURE__ */ u(
|
|
18138
18138
|
Pc,
|
|
18139
18139
|
{
|
|
18140
18140
|
value: F,
|
|
@@ -18144,7 +18144,7 @@ function jy({
|
|
|
18144
18144
|
g(Z), R(Z);
|
|
18145
18145
|
},
|
|
18146
18146
|
onBlur: () => {
|
|
18147
|
-
q(),
|
|
18147
|
+
q(), v || l();
|
|
18148
18148
|
}
|
|
18149
18149
|
}
|
|
18150
18150
|
) : /* @__PURE__ */ u(
|
|
@@ -18164,7 +18164,7 @@ function jy({
|
|
|
18164
18164
|
"& pre, & code": { mt: 0.5, mb: 0.5 },
|
|
18165
18165
|
"& blockquote": { mt: 0.5, mb: 0.5 }
|
|
18166
18166
|
},
|
|
18167
|
-
children: F ? /* @__PURE__ */ u(Y, { onClick: c, sx: { cursor: "pointer" }, children: /* @__PURE__ */ u(Wo, { children: F }) }) : /* @__PURE__ */
|
|
18167
|
+
children: F ? /* @__PURE__ */ u(Y, { onClick: c, sx: { cursor: "pointer" }, children: /* @__PURE__ */ u(Wo, { children: F }) }) : /* @__PURE__ */ w(Y, { onClick: c, sx: { cursor: "pointer" }, children: [
|
|
18168
18168
|
/* @__PURE__ */ u(
|
|
18169
18169
|
A,
|
|
18170
18170
|
{
|
|
@@ -18190,7 +18190,7 @@ function jy({
|
|
|
18190
18190
|
)
|
|
18191
18191
|
] })
|
|
18192
18192
|
}
|
|
18193
|
-
) }) : /* @__PURE__ */
|
|
18193
|
+
) }) : /* @__PURE__ */ w(we, { children: [
|
|
18194
18194
|
/* @__PURE__ */ u(xt, { in: f, timeout: "auto", unmountOnExit: !0, children: /* @__PURE__ */ u(
|
|
18195
18195
|
ae,
|
|
18196
18196
|
{
|
|
@@ -18240,7 +18240,7 @@ function jy({
|
|
|
18240
18240
|
)
|
|
18241
18241
|
}
|
|
18242
18242
|
) }),
|
|
18243
|
-
o && (K ? /* @__PURE__ */
|
|
18243
|
+
o && (K ? /* @__PURE__ */ w(we, { children: [
|
|
18244
18244
|
/* @__PURE__ */ u(
|
|
18245
18245
|
A,
|
|
18246
18246
|
{
|
|
@@ -18279,7 +18279,7 @@ function jy({
|
|
|
18279
18279
|
maxHeight: 800
|
|
18280
18280
|
}
|
|
18281
18281
|
) }),
|
|
18282
|
-
!o && !e.result && /* @__PURE__ */
|
|
18282
|
+
!o && !e.result && /* @__PURE__ */ w(Y, { onClick: c, sx: { cursor: "pointer" }, children: [
|
|
18283
18283
|
/* @__PURE__ */ u(
|
|
18284
18284
|
A,
|
|
18285
18285
|
{
|
|
@@ -18371,10 +18371,10 @@ function Gy({
|
|
|
18371
18371
|
error: c,
|
|
18372
18372
|
context: `${n} > ${r} > Model Picker`
|
|
18373
18373
|
}
|
|
18374
|
-
) : /* @__PURE__ */
|
|
18375
|
-
/* @__PURE__ */
|
|
18374
|
+
) : /* @__PURE__ */ w(we, { children: [
|
|
18375
|
+
/* @__PURE__ */ w(Us, { fullWidth: !0, children: [
|
|
18376
18376
|
s && /* @__PURE__ */ u(A, { children: "Loading..." }),
|
|
18377
|
-
/* @__PURE__ */
|
|
18377
|
+
/* @__PURE__ */ w(ae, { direction: "row", spacing: 1, children: [
|
|
18378
18378
|
d.map((x) => /* @__PURE__ */ u(
|
|
18379
18379
|
lr,
|
|
18380
18380
|
{
|
|
@@ -18397,7 +18397,7 @@ function Gy({
|
|
|
18397
18397
|
)
|
|
18398
18398
|
] })
|
|
18399
18399
|
] }),
|
|
18400
|
-
/* @__PURE__ */
|
|
18400
|
+
/* @__PURE__ */ w(
|
|
18401
18401
|
Go,
|
|
18402
18402
|
{
|
|
18403
18403
|
anchorEl: m,
|
|
@@ -18430,15 +18430,15 @@ function A0({
|
|
|
18430
18430
|
);
|
|
18431
18431
|
const [m, h] = N.useState(), [f, b] = N.useState(), [y, x] = N.useState(), [S, C] = N.useState(
|
|
18432
18432
|
[]
|
|
18433
|
-
), [k,
|
|
18433
|
+
), [k, v] = N.useState(
|
|
18434
18434
|
null
|
|
18435
18435
|
), [P, M] = N.useState(null), V = !!k, F = () => {
|
|
18436
|
-
|
|
18437
|
-
}, g = (X,
|
|
18438
|
-
m.insertCell(
|
|
18436
|
+
v(null), M(null);
|
|
18437
|
+
}, g = (X, H) => {
|
|
18438
|
+
m.insertCell(H, {
|
|
18439
18439
|
isMarkdown: X,
|
|
18440
18440
|
value: ""
|
|
18441
|
-
}), q(), X ? x(
|
|
18441
|
+
}), q(), X ? x(H) : b(H), F();
|
|
18442
18442
|
}, [R, O] = N.useState(!1), D = () => {
|
|
18443
18443
|
O(!0);
|
|
18444
18444
|
}, j = (X) => {
|
|
@@ -18452,16 +18452,16 @@ function A0({
|
|
|
18452
18452
|
if (!m)
|
|
18453
18453
|
return;
|
|
18454
18454
|
(async () => {
|
|
18455
|
-
const
|
|
18455
|
+
const H = new Map(
|
|
18456
18456
|
S.map(({ modelPath: ye, sourceInfos: ee }) => [
|
|
18457
18457
|
ye,
|
|
18458
18458
|
ee
|
|
18459
18459
|
])
|
|
18460
18460
|
), Q = [], Z = [];
|
|
18461
18461
|
for (const ye of m.getModels())
|
|
18462
|
-
|
|
18462
|
+
H.has(ye) ? Q.push({
|
|
18463
18463
|
modelPath: ye,
|
|
18464
|
-
sourceInfos:
|
|
18464
|
+
sourceInfos: H.get(ye)
|
|
18465
18465
|
}) : (console.log("Fetching model from Publisher", ye), Z.push(
|
|
18466
18466
|
Wy.getModel(
|
|
18467
18467
|
i,
|
|
@@ -18501,20 +18501,20 @@ function A0({
|
|
|
18501
18501
|
}, [e, d, p]), !m)
|
|
18502
18502
|
return /* @__PURE__ */ u("div", { children: "Loading..." });
|
|
18503
18503
|
const ce = (X) => {
|
|
18504
|
-
const
|
|
18504
|
+
const H = [];
|
|
18505
18505
|
for (const Q of X)
|
|
18506
18506
|
for (const Z of Q.sourceInfos)
|
|
18507
|
-
|
|
18507
|
+
H.push({
|
|
18508
18508
|
modelPath: Q.modelPath,
|
|
18509
18509
|
sourceInfo: Z
|
|
18510
18510
|
});
|
|
18511
|
-
return
|
|
18512
|
-
}, ue = (X,
|
|
18511
|
+
return H;
|
|
18512
|
+
}, ue = (X, H) => /* @__PURE__ */ u(
|
|
18513
18513
|
He,
|
|
18514
18514
|
{
|
|
18515
18515
|
size: "small",
|
|
18516
18516
|
startIcon: /* @__PURE__ */ u(tg, {}),
|
|
18517
|
-
onClick: () => g(X,
|
|
18517
|
+
onClick: () => g(X, H),
|
|
18518
18518
|
variant: "contained",
|
|
18519
18519
|
sx: {
|
|
18520
18520
|
backgroundColor: "#fff",
|
|
@@ -18527,7 +18527,7 @@ function A0({
|
|
|
18527
18527
|
},
|
|
18528
18528
|
children: X ? "Markdown" : "Explore"
|
|
18529
18529
|
}
|
|
18530
|
-
),
|
|
18530
|
+
), G = /* @__PURE__ */ w(
|
|
18531
18531
|
Y,
|
|
18532
18532
|
{
|
|
18533
18533
|
sx: {
|
|
@@ -18542,9 +18542,9 @@ function A0({
|
|
|
18542
18542
|
]
|
|
18543
18543
|
}
|
|
18544
18544
|
);
|
|
18545
|
-
return /* @__PURE__ */
|
|
18546
|
-
/* @__PURE__ */
|
|
18547
|
-
/* @__PURE__ */
|
|
18545
|
+
return /* @__PURE__ */ w(Oe, { variant: "outlined", children: [
|
|
18546
|
+
/* @__PURE__ */ w(Ke, { children: [
|
|
18547
|
+
/* @__PURE__ */ w(
|
|
18548
18548
|
Yt,
|
|
18549
18549
|
{
|
|
18550
18550
|
sx: {
|
|
@@ -18553,7 +18553,7 @@ function A0({
|
|
|
18553
18553
|
alignItems: "center"
|
|
18554
18554
|
},
|
|
18555
18555
|
children: [
|
|
18556
|
-
/* @__PURE__ */
|
|
18556
|
+
/* @__PURE__ */ w(Yt, { direction: "row", spacing: 1, alignItems: "center", children: [
|
|
18557
18557
|
/* @__PURE__ */ u(
|
|
18558
18558
|
A,
|
|
18559
18559
|
{
|
|
@@ -18580,7 +18580,7 @@ function A0({
|
|
|
18580
18580
|
}
|
|
18581
18581
|
)
|
|
18582
18582
|
] }),
|
|
18583
|
-
/* @__PURE__ */
|
|
18583
|
+
/* @__PURE__ */ w(Yt, { sx: { display: "flex", flexDirection: "row", gap: 1 }, children: [
|
|
18584
18584
|
/* @__PURE__ */ u(
|
|
18585
18585
|
Y,
|
|
18586
18586
|
{
|
|
@@ -18593,7 +18593,7 @@ function A0({
|
|
|
18593
18593
|
children: /* @__PURE__ */ u(qy, { notebookData: m })
|
|
18594
18594
|
}
|
|
18595
18595
|
),
|
|
18596
|
-
/* @__PURE__ */
|
|
18596
|
+
/* @__PURE__ */ w(
|
|
18597
18597
|
Y,
|
|
18598
18598
|
{
|
|
18599
18599
|
sx: {
|
|
@@ -18612,19 +18612,19 @@ function A0({
|
|
|
18612
18612
|
children: "Delete"
|
|
18613
18613
|
}
|
|
18614
18614
|
),
|
|
18615
|
-
/* @__PURE__ */
|
|
18615
|
+
/* @__PURE__ */ w(
|
|
18616
18616
|
ln,
|
|
18617
18617
|
{
|
|
18618
18618
|
open: R,
|
|
18619
18619
|
onClose: K,
|
|
18620
18620
|
children: [
|
|
18621
18621
|
/* @__PURE__ */ u(cn, { children: "Delete Notebook" }),
|
|
18622
|
-
/* @__PURE__ */ u(un, { children: /* @__PURE__ */
|
|
18622
|
+
/* @__PURE__ */ u(un, { children: /* @__PURE__ */ w(ac, { children: [
|
|
18623
18623
|
'Are you sure you want to delete the notebook "',
|
|
18624
18624
|
e,
|
|
18625
18625
|
'"? This action cannot be undone.'
|
|
18626
18626
|
] }) }),
|
|
18627
|
-
/* @__PURE__ */
|
|
18627
|
+
/* @__PURE__ */ w(Hs, { children: [
|
|
18628
18628
|
/* @__PURE__ */ u(
|
|
18629
18629
|
He,
|
|
18630
18630
|
{
|
|
@@ -18656,7 +18656,7 @@ function A0({
|
|
|
18656
18656
|
}
|
|
18657
18657
|
),
|
|
18658
18658
|
/* @__PURE__ */ u($e, {}),
|
|
18659
|
-
/* @__PURE__ */
|
|
18659
|
+
/* @__PURE__ */ w(
|
|
18660
18660
|
Yt,
|
|
18661
18661
|
{
|
|
18662
18662
|
sx: {
|
|
@@ -18680,8 +18680,8 @@ function A0({
|
|
|
18680
18680
|
}
|
|
18681
18681
|
)
|
|
18682
18682
|
] }),
|
|
18683
|
-
/* @__PURE__ */ u(Yr, { children: /* @__PURE__ */
|
|
18684
|
-
m.getCells().length === 0 && /* @__PURE__ */
|
|
18683
|
+
/* @__PURE__ */ u(Yr, { children: /* @__PURE__ */ w(Yt, { children: [
|
|
18684
|
+
m.getCells().length === 0 && /* @__PURE__ */ w(we, { children: [
|
|
18685
18685
|
/* @__PURE__ */ u(
|
|
18686
18686
|
A,
|
|
18687
18687
|
{
|
|
@@ -18703,39 +18703,40 @@ function A0({
|
|
|
18703
18703
|
}
|
|
18704
18704
|
)
|
|
18705
18705
|
] }),
|
|
18706
|
-
m.getCells().map((X,
|
|
18706
|
+
m.getCells().map((X, H) => /* @__PURE__ */ u(
|
|
18707
18707
|
N.Fragment,
|
|
18708
18708
|
{
|
|
18709
18709
|
children: /* @__PURE__ */ u(
|
|
18710
18710
|
jy,
|
|
18711
18711
|
{
|
|
18712
18712
|
cell: X,
|
|
18713
|
-
addButtonCallback: (Q) => ue(Q,
|
|
18713
|
+
addButtonCallback: (Q) => ue(Q, H),
|
|
18714
18714
|
sourceAndPaths: ce(S),
|
|
18715
18715
|
expandCodeCell: t,
|
|
18716
18716
|
expandEmbedding: n,
|
|
18717
18717
|
hideEmbeddingIcons: r,
|
|
18718
|
-
editingMarkdown: y ===
|
|
18719
|
-
editingMalloy: f ===
|
|
18718
|
+
editingMarkdown: y === H,
|
|
18719
|
+
editingMalloy: f === H,
|
|
18720
18720
|
onDelete: () => {
|
|
18721
|
-
h(m.deleteCell(
|
|
18721
|
+
h(m.deleteCell(H)), q();
|
|
18722
18722
|
},
|
|
18723
18723
|
onCellChange: (Q) => {
|
|
18724
|
-
h(m.setCell(
|
|
18724
|
+
h(m.setCell(H, Q)), q();
|
|
18725
18725
|
},
|
|
18726
18726
|
onEdit: () => {
|
|
18727
|
-
X.isMarkdown ? x(
|
|
18727
|
+
X.isMarkdown ? x(H) : b(H);
|
|
18728
18728
|
},
|
|
18729
18729
|
onClose: () => {
|
|
18730
18730
|
X.isMarkdown ? x(void 0) : b(void 0);
|
|
18731
18731
|
}
|
|
18732
|
-
}
|
|
18732
|
+
},
|
|
18733
|
+
`${H}-${X.isMarkdown}-${e}-${i}-${s}`
|
|
18733
18734
|
)
|
|
18734
18735
|
},
|
|
18735
|
-
`${
|
|
18736
|
+
`${H}-${m.getCells().length}`
|
|
18736
18737
|
)),
|
|
18737
|
-
|
|
18738
|
-
/* @__PURE__ */
|
|
18738
|
+
G,
|
|
18739
|
+
/* @__PURE__ */ w(
|
|
18739
18740
|
Go,
|
|
18740
18741
|
{
|
|
18741
18742
|
anchorEl: k,
|
|
@@ -18788,7 +18789,7 @@ function Ky({
|
|
|
18788
18789
|
const { notebookStorage: t, userContext: n } = Ll(), [r, o] = N.useState([]);
|
|
18789
18790
|
return N.useEffect(() => {
|
|
18790
18791
|
t && n && o(t.listNotebooks(n));
|
|
18791
|
-
}, [t, n]), /* @__PURE__ */
|
|
18792
|
+
}, [t, n]), /* @__PURE__ */ w(we, { children: [
|
|
18792
18793
|
/* @__PURE__ */ u($e, {}),
|
|
18793
18794
|
/* @__PURE__ */ u(
|
|
18794
18795
|
Y,
|
|
@@ -18807,7 +18808,7 @@ function Ky({
|
|
|
18807
18808
|
borderRadius: "4px"
|
|
18808
18809
|
}
|
|
18809
18810
|
},
|
|
18810
|
-
children: /* @__PURE__ */
|
|
18811
|
+
children: /* @__PURE__ */ w(Lr, { dense: !0, children: [
|
|
18811
18812
|
r.length === 0 && /* @__PURE__ */ u(tn, { children: /* @__PURE__ */ u(
|
|
18812
18813
|
St,
|
|
18813
18814
|
{
|
|
@@ -18840,9 +18841,9 @@ function Yy() {
|
|
|
18840
18841
|
queryKey: ["about", e],
|
|
18841
18842
|
queryFn: (i) => Qy.getProject(e, !1, i)
|
|
18842
18843
|
});
|
|
18843
|
-
return /* @__PURE__ */
|
|
18844
|
+
return /* @__PURE__ */ w(we, { children: [
|
|
18844
18845
|
!n && !r && /* @__PURE__ */ u(ze, { text: "Fetching About..." }),
|
|
18845
|
-
n && /* @__PURE__ */
|
|
18846
|
+
n && /* @__PURE__ */ w(Oe, { variant: "outlined", sx: { p: 2 }, children: [
|
|
18846
18847
|
/* @__PURE__ */ u(A, { variant: "overline", fontWeight: "bold", sx: { mb: 1 }, children: "Readme" }),
|
|
18847
18848
|
/* @__PURE__ */ u(Oe, { sx: { p: 1 }, children: /* @__PURE__ */ u(Wo, { children: t.data.readme }) })
|
|
18848
18849
|
] }),
|
|
@@ -18855,9 +18856,9 @@ function Jy({ navigate: e }) {
|
|
|
18855
18856
|
queryKey: ["packages", t],
|
|
18856
18857
|
queryFn: (s) => Xy.listPackages(t, s)
|
|
18857
18858
|
});
|
|
18858
|
-
return /* @__PURE__ */
|
|
18859
|
+
return /* @__PURE__ */ w(we, { children: [
|
|
18859
18860
|
!r && !o && /* @__PURE__ */ u(ze, { text: "Fetching Packages..." }),
|
|
18860
|
-
r && /* @__PURE__ */
|
|
18861
|
+
r && /* @__PURE__ */ w(Oe, { variant: "outlined", sx: { p: 2 }, children: [
|
|
18861
18862
|
/* @__PURE__ */ u(A, { variant: "overline", fontWeight: "bold", sx: { mb: 1 }, children: "Packages" }),
|
|
18862
18863
|
/* @__PURE__ */ u(be, { container: !0, spacing: 2, columns: 12, children: n.data.sort((s, a) => s.name.localeCompare(a.name)).map((s) => /* @__PURE__ */ u(
|
|
18863
18864
|
be,
|
|
@@ -18876,7 +18877,7 @@ function Jy({ navigate: e }) {
|
|
|
18876
18877
|
}
|
|
18877
18878
|
},
|
|
18878
18879
|
onClick: (a) => e(s.name + "/", a),
|
|
18879
|
-
children: /* @__PURE__ */
|
|
18880
|
+
children: /* @__PURE__ */ w(Ke, { children: [
|
|
18880
18881
|
/* @__PURE__ */ u(
|
|
18881
18882
|
A,
|
|
18882
18883
|
{
|
|
@@ -18927,7 +18928,7 @@ function O0({
|
|
|
18927
18928
|
return /* @__PURE__ */ u($l.Provider, { value: { projectName: t }, children: e });
|
|
18928
18929
|
}
|
|
18929
18930
|
function N0({ navigate: e }) {
|
|
18930
|
-
return /* @__PURE__ */
|
|
18931
|
+
return /* @__PURE__ */ w(be, { container: !0, spacing: 2, columns: 12, children: [
|
|
18931
18932
|
/* @__PURE__ */ u(be, { size: { xs: 12, md: 12 }, children: /* @__PURE__ */ u(Jy, { navigate: e }) }),
|
|
18932
18933
|
/* @__PURE__ */ u(be, { size: { xs: 12, md: 12 }, children: /* @__PURE__ */ u(Yy, {}) })
|
|
18933
18934
|
] });
|
|
@@ -18962,9 +18963,9 @@ function M0({ navigate: e }) {
|
|
|
18962
18963
|
queryKey: ["projects"],
|
|
18963
18964
|
queryFn: (i) => o0.listProjects(i)
|
|
18964
18965
|
});
|
|
18965
|
-
return r ? /* @__PURE__ */ u(je, { error: o, context: "Projects List" }) : n ? /* @__PURE__ */
|
|
18966
|
-
/* @__PURE__ */
|
|
18967
|
-
/* @__PURE__ */
|
|
18966
|
+
return r ? /* @__PURE__ */ u(je, { error: o, context: "Projects List" }) : n ? /* @__PURE__ */ w(lc, { maxWidth: "lg", sx: { py: 4 }, children: [
|
|
18967
|
+
/* @__PURE__ */ w(Y, { sx: { textAlign: "center", mb: 6 }, children: [
|
|
18968
|
+
/* @__PURE__ */ w(
|
|
18968
18969
|
ae,
|
|
18969
18970
|
{
|
|
18970
18971
|
direction: "row",
|
|
@@ -19002,7 +19003,7 @@ function M0({ navigate: e }) {
|
|
|
19002
19003
|
}
|
|
19003
19004
|
)
|
|
19004
19005
|
] }),
|
|
19005
|
-
/* @__PURE__ */
|
|
19006
|
+
/* @__PURE__ */ w(be, { container: !0, spacing: 3, sx: { mb: 6 }, children: [
|
|
19006
19007
|
/* @__PURE__ */ u(be, { size: { xs: 12, md: 4 }, children: /* @__PURE__ */ u(
|
|
19007
19008
|
Zt,
|
|
19008
19009
|
{
|
|
@@ -19022,8 +19023,8 @@ function M0({ navigate: e }) {
|
|
|
19022
19023
|
boxShadow: 2
|
|
19023
19024
|
}
|
|
19024
19025
|
},
|
|
19025
|
-
children: /* @__PURE__ */
|
|
19026
|
-
/* @__PURE__ */
|
|
19026
|
+
children: /* @__PURE__ */ w(en, { sx: { p: 3 }, children: [
|
|
19027
|
+
/* @__PURE__ */ w(
|
|
19027
19028
|
ae,
|
|
19028
19029
|
{
|
|
19029
19030
|
direction: "row",
|
|
@@ -19081,8 +19082,8 @@ function M0({ navigate: e }) {
|
|
|
19081
19082
|
boxShadow: 2
|
|
19082
19083
|
}
|
|
19083
19084
|
},
|
|
19084
|
-
children: /* @__PURE__ */
|
|
19085
|
-
/* @__PURE__ */
|
|
19085
|
+
children: /* @__PURE__ */ w(en, { sx: { p: 3 }, children: [
|
|
19086
|
+
/* @__PURE__ */ w(
|
|
19086
19087
|
ae,
|
|
19087
19088
|
{
|
|
19088
19089
|
direction: "row",
|
|
@@ -19140,8 +19141,8 @@ function M0({ navigate: e }) {
|
|
|
19140
19141
|
boxShadow: 2
|
|
19141
19142
|
}
|
|
19142
19143
|
},
|
|
19143
|
-
children: /* @__PURE__ */
|
|
19144
|
-
/* @__PURE__ */
|
|
19144
|
+
children: /* @__PURE__ */ w(en, { sx: { p: 3 }, children: [
|
|
19145
|
+
/* @__PURE__ */ w(
|
|
19145
19146
|
ae,
|
|
19146
19147
|
{
|
|
19147
19148
|
direction: "row",
|
|
@@ -19182,9 +19183,9 @@ function M0({ navigate: e }) {
|
|
|
19182
19183
|
) })
|
|
19183
19184
|
] }),
|
|
19184
19185
|
/* @__PURE__ */ u($e, { sx: { my: 4 } }),
|
|
19185
|
-
t.data.length > 0 ? /* @__PURE__ */
|
|
19186
|
-
/* @__PURE__ */
|
|
19187
|
-
/* @__PURE__ */
|
|
19186
|
+
t.data.length > 0 ? /* @__PURE__ */ w(we, { children: [
|
|
19187
|
+
/* @__PURE__ */ w(Y, { sx: { textAlign: "center", mb: 4 }, children: [
|
|
19188
|
+
/* @__PURE__ */ w(
|
|
19188
19189
|
ae,
|
|
19189
19190
|
{
|
|
19190
19191
|
direction: "row",
|
|
@@ -19224,7 +19225,7 @@ function M0({ navigate: e }) {
|
|
|
19224
19225
|
}
|
|
19225
19226
|
},
|
|
19226
19227
|
onClick: (s) => e(`/${i.name}/`, s),
|
|
19227
|
-
children: /* @__PURE__ */
|
|
19228
|
+
children: /* @__PURE__ */ w(en, { sx: { p: 3, textAlign: "center" }, children: [
|
|
19228
19229
|
/* @__PURE__ */ u(
|
|
19229
19230
|
n0,
|
|
19230
19231
|
{
|
|
@@ -19269,8 +19270,8 @@ function M0({ navigate: e }) {
|
|
|
19269
19270
|
},
|
|
19270
19271
|
i.name
|
|
19271
19272
|
)) })
|
|
19272
|
-
] }) : /* @__PURE__ */
|
|
19273
|
-
/* @__PURE__ */
|
|
19273
|
+
] }) : /* @__PURE__ */ w(Y, { sx: { textAlign: "center", mb: 4 }, children: [
|
|
19274
|
+
/* @__PURE__ */ w(
|
|
19274
19275
|
ae,
|
|
19275
19276
|
{
|
|
19276
19277
|
direction: "row",
|
|
@@ -19322,7 +19323,7 @@ function M0({ navigate: e }) {
|
|
|
19322
19323
|
borderTop: 1,
|
|
19323
19324
|
borderColor: "divider"
|
|
19324
19325
|
},
|
|
19325
|
-
children: /* @__PURE__ */
|
|
19326
|
+
children: /* @__PURE__ */ w(A, { variant: "body2", color: "text.secondary", children: [
|
|
19326
19327
|
"Publisher is built on fully open infrastructure and designed for the AI era. Join the",
|
|
19327
19328
|
" ",
|
|
19328
19329
|
/* @__PURE__ */ u(
|
|
@@ -19365,7 +19366,7 @@ function L0() {
|
|
|
19365
19366
|
S
|
|
19366
19367
|
), r("");
|
|
19367
19368
|
};
|
|
19368
|
-
return !e || !t ? null : /* @__PURE__ */
|
|
19369
|
+
return !e || !t ? null : /* @__PURE__ */ w(we, { children: [
|
|
19369
19370
|
/* @__PURE__ */ u(
|
|
19370
19371
|
He,
|
|
19371
19372
|
{
|
|
@@ -19385,7 +19386,7 @@ function L0() {
|
|
|
19385
19386
|
children: "Analyze Package"
|
|
19386
19387
|
}
|
|
19387
19388
|
),
|
|
19388
|
-
/* @__PURE__ */
|
|
19389
|
+
/* @__PURE__ */ w(
|
|
19389
19390
|
Go,
|
|
19390
19391
|
{
|
|
19391
19392
|
id: "basic-menu",
|
|
@@ -19397,7 +19398,7 @@ function L0() {
|
|
|
19397
19398
|
sx: { py: 0.5 }
|
|
19398
19399
|
},
|
|
19399
19400
|
children: [
|
|
19400
|
-
/* @__PURE__ */
|
|
19401
|
+
/* @__PURE__ */ w(
|
|
19401
19402
|
dn,
|
|
19402
19403
|
{
|
|
19403
19404
|
onClick: () => {
|
|
@@ -19405,15 +19406,15 @@ function L0() {
|
|
|
19405
19406
|
},
|
|
19406
19407
|
sx: { py: 1, px: 2 },
|
|
19407
19408
|
children: [
|
|
19408
|
-
/* @__PURE__ */ u(Oi, { children: /* @__PURE__ */ u(
|
|
19409
|
-
/* @__PURE__ */
|
|
19409
|
+
/* @__PURE__ */ u(Oi, { children: /* @__PURE__ */ u(wc, { fontSize: "small" }) }),
|
|
19410
|
+
/* @__PURE__ */ w(St, { children: [
|
|
19410
19411
|
/* @__PURE__ */ u(A, { variant: "body2", fontWeight: 500, children: "New Workbook" }),
|
|
19411
19412
|
/* @__PURE__ */ u(A, { variant: "caption", color: "text.secondary", children: "Create a new analysis workbook" })
|
|
19412
19413
|
] })
|
|
19413
19414
|
]
|
|
19414
19415
|
}
|
|
19415
19416
|
),
|
|
19416
|
-
/* @__PURE__ */
|
|
19417
|
+
/* @__PURE__ */ w(
|
|
19417
19418
|
dn,
|
|
19418
19419
|
{
|
|
19419
19420
|
onClick: () => {
|
|
@@ -19421,8 +19422,8 @@ function L0() {
|
|
|
19421
19422
|
},
|
|
19422
19423
|
sx: { py: 1, px: 2 },
|
|
19423
19424
|
children: [
|
|
19424
|
-
/* @__PURE__ */ u(Oi, { children: /* @__PURE__ */ u(
|
|
19425
|
-
/* @__PURE__ */
|
|
19425
|
+
/* @__PURE__ */ u(Oi, { children: /* @__PURE__ */ u(vc, { fontSize: "small" }) }),
|
|
19426
|
+
/* @__PURE__ */ w(St, { children: [
|
|
19426
19427
|
/* @__PURE__ */ u(A, { variant: "body2", fontWeight: 500, children: "Open Workbook" }),
|
|
19427
19428
|
/* @__PURE__ */ u(A, { variant: "caption", color: "text.secondary", children: "Open an existing workbook" })
|
|
19428
19429
|
] })
|
|
@@ -19432,7 +19433,7 @@ function L0() {
|
|
|
19432
19433
|
]
|
|
19433
19434
|
}
|
|
19434
19435
|
),
|
|
19435
|
-
/* @__PURE__ */
|
|
19436
|
+
/* @__PURE__ */ w(
|
|
19436
19437
|
ln,
|
|
19437
19438
|
{
|
|
19438
19439
|
open: s,
|
|
@@ -19440,11 +19441,11 @@ function L0() {
|
|
|
19440
19441
|
maxWidth: "sm",
|
|
19441
19442
|
fullWidth: !0,
|
|
19442
19443
|
children: [
|
|
19443
|
-
/* @__PURE__ */
|
|
19444
|
+
/* @__PURE__ */ w(cn, { sx: { pb: 1, pt: 2, px: 2 }, children: [
|
|
19444
19445
|
/* @__PURE__ */ u(A, { variant: "h6", fontWeight: 600, sx: { mb: 0.5 }, children: "Create New Workbook" }),
|
|
19445
19446
|
/* @__PURE__ */ u(A, { variant: "body2", color: "text.secondary", children: "Start a new analysis workbook to explore your data" })
|
|
19446
19447
|
] }),
|
|
19447
|
-
/* @__PURE__ */ u(un, { sx: { px: 2, pb: 2 }, children: /* @__PURE__ */
|
|
19448
|
+
/* @__PURE__ */ u(un, { sx: { px: 2, pb: 2 }, children: /* @__PURE__ */ w(ae, { spacing: 2, sx: { mt: 1 }, children: [
|
|
19448
19449
|
/* @__PURE__ */ u(Us, { fullWidth: !0, children: /* @__PURE__ */ u(
|
|
19449
19450
|
cc,
|
|
19450
19451
|
{
|
|
@@ -19457,7 +19458,7 @@ function L0() {
|
|
|
19457
19458
|
size: "small"
|
|
19458
19459
|
}
|
|
19459
19460
|
) }),
|
|
19460
|
-
/* @__PURE__ */
|
|
19461
|
+
/* @__PURE__ */ w(ae, { direction: "row", spacing: 1, justifyContent: "flex-end", children: [
|
|
19461
19462
|
/* @__PURE__ */ u(
|
|
19462
19463
|
He,
|
|
19463
19464
|
{
|
|
@@ -19482,7 +19483,7 @@ function L0() {
|
|
|
19482
19483
|
]
|
|
19483
19484
|
}
|
|
19484
19485
|
),
|
|
19485
|
-
/* @__PURE__ */
|
|
19486
|
+
/* @__PURE__ */ w(
|
|
19486
19487
|
ln,
|
|
19487
19488
|
{
|
|
19488
19489
|
open: l,
|
|
@@ -19490,7 +19491,7 @@ function L0() {
|
|
|
19490
19491
|
maxWidth: "md",
|
|
19491
19492
|
fullWidth: !0,
|
|
19492
19493
|
children: [
|
|
19493
|
-
/* @__PURE__ */
|
|
19494
|
+
/* @__PURE__ */ w(cn, { sx: { pb: 1, pt: 2, px: 2 }, children: [
|
|
19494
19495
|
/* @__PURE__ */ u(A, { variant: "h6", fontWeight: 600, sx: { mb: 0.5 }, children: "Open Workbook" }),
|
|
19495
19496
|
/* @__PURE__ */ u(A, { variant: "body2", color: "text.secondary", children: "Select an existing workbook to continue your analysis" })
|
|
19496
19497
|
] }),
|
|
@@ -19522,9 +19523,9 @@ function $0({
|
|
|
19522
19523
|
queryKey: ["tablePath", t, e],
|
|
19523
19524
|
queryFn: (h) => Ei.listSchemas(t, e, h)
|
|
19524
19525
|
});
|
|
19525
|
-
return /* @__PURE__ */
|
|
19526
|
-
/* @__PURE__ */ u(be, { size: { xs: 12, md: 6 }, children: /* @__PURE__ */
|
|
19527
|
-
/* @__PURE__ */
|
|
19526
|
+
return /* @__PURE__ */ w(be, { container: !0, spacing: 2, children: [
|
|
19527
|
+
/* @__PURE__ */ u(be, { size: { xs: 12, md: 6 }, children: /* @__PURE__ */ w(wo, { sx: { p: 2 }, children: [
|
|
19528
|
+
/* @__PURE__ */ w(
|
|
19528
19529
|
Y,
|
|
19529
19530
|
{
|
|
19530
19531
|
sx: {
|
|
@@ -19552,7 +19553,7 @@ function $0({
|
|
|
19552
19553
|
}
|
|
19553
19554
|
),
|
|
19554
19555
|
/* @__PURE__ */ u($e, {}),
|
|
19555
|
-
/* @__PURE__ */
|
|
19556
|
+
/* @__PURE__ */ w(Y, { sx: { mt: "10px", maxHeight: "600px", overflowY: "auto" }, children: [
|
|
19556
19557
|
m && /* @__PURE__ */ u(ze, { text: "Fetching Table Paths..." }),
|
|
19557
19558
|
d && /* @__PURE__ */ u(
|
|
19558
19559
|
je,
|
|
@@ -19577,7 +19578,7 @@ function $0({
|
|
|
19577
19578
|
) })
|
|
19578
19579
|
] })
|
|
19579
19580
|
] }) }),
|
|
19580
|
-
/* @__PURE__ */ u(be, { size: { xs: 12, md: 6 }, children: o && /* @__PURE__ */ u(
|
|
19581
|
+
/* @__PURE__ */ u(be, { size: { xs: 12, md: 6 }, children: o && /* @__PURE__ */ u(wo, { sx: { p: 2 }, children: /* @__PURE__ */ u(
|
|
19581
19582
|
a0,
|
|
19582
19583
|
{
|
|
19583
19584
|
connectionName: e,
|
|
@@ -19620,8 +19621,8 @@ function s0({
|
|
|
19620
19621
|
d
|
|
19621
19622
|
)
|
|
19622
19623
|
});
|
|
19623
|
-
return s && i && console.log(i), /* @__PURE__ */
|
|
19624
|
-
/* @__PURE__ */
|
|
19624
|
+
return s && i && console.log(i), /* @__PURE__ */ w(ln, { open: !0, onClose: r, maxWidth: "sm", fullWidth: !0, children: [
|
|
19625
|
+
/* @__PURE__ */ w(cn, { children: [
|
|
19625
19626
|
"Table: ",
|
|
19626
19627
|
t,
|
|
19627
19628
|
".",
|
|
@@ -19658,7 +19659,7 @@ function s0({
|
|
|
19658
19659
|
}
|
|
19659
19660
|
)
|
|
19660
19661
|
] }),
|
|
19661
|
-
/* @__PURE__ */
|
|
19662
|
+
/* @__PURE__ */ w(un, { children: [
|
|
19662
19663
|
c && /* @__PURE__ */ u(ze, { text: "Fetching Table Details..." }),
|
|
19663
19664
|
a && /* @__PURE__ */ u(
|
|
19664
19665
|
je,
|
|
@@ -19667,18 +19668,18 @@ function s0({
|
|
|
19667
19668
|
context: `${o} > ${e} > ${t}.${n}`
|
|
19668
19669
|
}
|
|
19669
19670
|
),
|
|
19670
|
-
s && i && /* @__PURE__ */ u(Uo, { children: /* @__PURE__ */
|
|
19671
|
+
s && i && /* @__PURE__ */ u(Uo, { children: /* @__PURE__ */ w(
|
|
19671
19672
|
_n,
|
|
19672
19673
|
{
|
|
19673
19674
|
size: "small",
|
|
19674
19675
|
sx: { "& .MuiTableCell-root": { padding: "10px" } },
|
|
19675
19676
|
children: [
|
|
19676
|
-
/* @__PURE__ */ u(fr, { children: /* @__PURE__ */
|
|
19677
|
+
/* @__PURE__ */ u(fr, { children: /* @__PURE__ */ w(at, { children: [
|
|
19677
19678
|
/* @__PURE__ */ u(ne, { children: "NAME" }),
|
|
19678
19679
|
/* @__PURE__ */ u(ne, { children: "TYPE" })
|
|
19679
19680
|
] }) }),
|
|
19680
19681
|
/* @__PURE__ */ u(An, { children: i.data.columns?.map(
|
|
19681
|
-
(d) => /* @__PURE__ */
|
|
19682
|
+
(d) => /* @__PURE__ */ w(at, { children: [
|
|
19682
19683
|
/* @__PURE__ */ u(ne, { children: d.name }),
|
|
19683
19684
|
/* @__PURE__ */ u(ne, { children: d.type })
|
|
19684
19685
|
] }, d.name)
|
|
@@ -19703,13 +19704,13 @@ function a0({
|
|
|
19703
19704
|
c
|
|
19704
19705
|
)
|
|
19705
19706
|
});
|
|
19706
|
-
return /* @__PURE__ */
|
|
19707
|
-
/* @__PURE__ */
|
|
19707
|
+
return /* @__PURE__ */ w(we, { children: [
|
|
19708
|
+
/* @__PURE__ */ w(A, { variant: "overline", fontWeight: "bold", children: [
|
|
19708
19709
|
"Tables in ",
|
|
19709
19710
|
t
|
|
19710
19711
|
] }),
|
|
19711
19712
|
/* @__PURE__ */ u($e, {}),
|
|
19712
|
-
/* @__PURE__ */
|
|
19713
|
+
/* @__PURE__ */ w(Y, { sx: { mt: "10px", maxHeight: "600px", overflowY: "auto" }, children: [
|
|
19713
19714
|
l && /* @__PURE__ */ u(ze, { text: "Fetching Tables..." }),
|
|
19714
19715
|
s && /* @__PURE__ */ u(
|
|
19715
19716
|
je,
|