@malloy-publisher/sdk 0.0.53 → 0.0.55

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,10 +1,10 @@
1
- import { jsxs as I, jsx as d, Fragment as xe } from "react/jsx-runtime";
1
+ import { jsxs as k, jsx as d, Fragment as xe } from "react/jsx-runtime";
2
2
  import * as E from "react";
3
3
  import O, { createContext as Rr, useContext as _r, lazy as Ms, Suspense as Ls, useEffect as Tt, useState as Mt, useRef as Ii, useCallback as Ei, isValidElement as or, cloneElement as ir, Children as Ul, useMemo as Hl } from "react";
4
4
  import { unstable_createGetCssVar as Gl, createSpacing as Wl, useTheme as ql, unstable_memoTheme as Kl, Box as $s, Stack as Ti, createStack as Ql, keyframes as Vo, shouldForwardProp as Yl, alpha as gt } from "@mui/system";
5
5
  import Xl from "@emotion/styled";
6
6
  import { ThemeContext as Jl } from "@emotion/react";
7
- import { styled as Rt, Card as Ds, CardContent as Bs, CardMedia as Zl, Typography as D, Box as Z, CircularProgress as ec, Stack as $e, CardActions as Ar, Tooltip as ge, IconButton as he, Collapse as xt, Divider as De, Button as nt, Tabs as tc, Tab as nc, List as Or, ListItem as Zt, ListItemText as St, Table as Pn, TableBody as Rn, TableRow as at, TableCell as ne, TableHead as pr, Dialog as sn, DialogTitle as an, DialogContent as ln, TableContainer as Fo, Paper as xo, Grid as Ne, DialogActions as js, FormControl as Vs, Chip as rc, Menu as zo, MenuItem as cn, DialogContentText as oc, ListItemIcon as Pi, TextField as ic, FormControlLabel as sc, Switch as ac, ListItemButton as Fs } from "@mui/material";
7
+ import { styled as Rt, Card as Ds, CardContent as Bs, CardMedia as Zl, Typography as N, Box as Z, CircularProgress as ec, Stack as Te, CardActions as Ar, Tooltip as ge, IconButton as he, Collapse as xt, Divider as De, Button as Ze, Tabs as tc, Tab as nc, List as Or, ListItem as Zt, ListItemText as St, Table as Pn, TableBody as Rn, TableRow as at, TableCell as ne, TableHead as pr, Dialog as sn, DialogTitle as an, DialogContent as ln, TableContainer as Fo, Paper as xo, Grid as Me, DialogActions as js, FormControl as Vs, Chip as rc, Menu as zo, MenuItem as cn, DialogContentText as oc, ListItemIcon as Pi, TextField as ic, FormControlLabel as sc, Switch as ac, ListItemButton as Fs } from "@mui/material";
8
8
  import me from "axios";
9
9
  import { QueryClient as lc, useQuery as cc, useMutation as uc } from "@tanstack/react-query";
10
10
  import * as dc from "@malloydata/malloy-query-builder";
@@ -446,14 +446,14 @@ function Lr(...e) {
446
446
  function Je(e) {
447
447
  return typeof e != "number" ? e : `${e}px solid`;
448
448
  }
449
- function et(e, t) {
449
+ function tt(e, t) {
450
450
  return Se({
451
451
  prop: e,
452
452
  themeKey: "borders",
453
453
  transform: t
454
454
  });
455
455
  }
456
- const Wc = et("border", Je), qc = et("borderTop", Je), Kc = et("borderRight", Je), Qc = et("borderBottom", Je), Yc = et("borderLeft", Je), Xc = et("borderColor"), Jc = et("borderTopColor"), Zc = et("borderRightColor"), eu = et("borderBottomColor"), tu = et("borderLeftColor"), nu = et("outline", Je), ru = et("outlineColor"), $r = (e) => {
456
+ const Wc = tt("border", Je), qc = tt("borderTop", Je), Kc = tt("borderRight", Je), Qc = tt("borderBottom", Je), Yc = tt("borderLeft", Je), Xc = tt("borderColor"), Jc = tt("borderTopColor"), Zc = tt("borderRightColor"), eu = tt("borderBottomColor"), tu = tt("borderLeftColor"), nu = tt("outline", Je), ru = tt("outlineColor"), $r = (e) => {
457
457
  if (e.borderRadius !== void 0 && e.borderRadius !== null) {
458
458
  const t = jn(e.theme, "shape.borderRadius", 4), n = (r) => ({
459
459
  borderRadius: Vn(t, r)
@@ -1689,9 +1689,9 @@ function rd(e, t = {}) {
1689
1689
  const {
1690
1690
  vars: w,
1691
1691
  css: P,
1692
- varsWithDefaults: N
1692
+ varsWithDefaults: M
1693
1693
  } = io(v, t);
1694
- m = We(m, N), h[C] = {
1694
+ m = We(m, M), h[C] = {
1695
1695
  css: P,
1696
1696
  vars: w
1697
1697
  };
@@ -1746,7 +1746,7 @@ function rd(e, t = {}) {
1746
1746
  }), u);
1747
1747
  const {
1748
1748
  [v]: P,
1749
- ...N
1749
+ ...M
1750
1750
  } = h;
1751
1751
  if (P) {
1752
1752
  const {
@@ -1761,7 +1761,7 @@ function rd(e, t = {}) {
1761
1761
  ...g
1762
1762
  }), g);
1763
1763
  }
1764
- return Object.entries(N).forEach(([V, {
1764
+ return Object.entries(M).forEach(([V, {
1765
1765
  css: F
1766
1766
  }]) => {
1767
1767
  const g = i[V]?.palette?.mode, R = !r && g ? {
@@ -2234,7 +2234,7 @@ function _d(e, t) {
2234
2234
  e[n] || (e[n] = {});
2235
2235
  });
2236
2236
  }
2237
- function k(e, t, n) {
2237
+ function I(e, t, n) {
2238
2238
  !e[t] && n && (e[t] = n);
2239
2239
  }
2240
2240
  function Cn(e) {
@@ -2328,22 +2328,22 @@ function Nd(e = {}, ...t) {
2328
2328
  };
2329
2329
  Object.keys(v.colorSchemes).forEach((F) => {
2330
2330
  const g = v.colorSchemes[F].palette, R = (A) => {
2331
- const $ = A.split("-"), j = $[1], K = $[2];
2331
+ const D = A.split("-"), j = D[1], K = D[2];
2332
2332
  return m(A, g[j][K]);
2333
2333
  };
2334
- if (g.mode === "light" && (k(g.common, "background", "#fff"), k(g.common, "onBackground", "#000")), g.mode === "dark" && (k(g.common, "background", "#000"), k(g.common, "onBackground", "#fff")), _d(g, ["Alert", "AppBar", "Avatar", "Button", "Chip", "FilledInput", "LinearProgress", "Skeleton", "Slider", "SnackbarContent", "SpeedDialAction", "StepConnector", "StepContent", "Switch", "TableCell", "Tooltip"]), g.mode === "light") {
2335
- k(g.Alert, "errorColor", re(g.error.light, 0.6)), k(g.Alert, "infoColor", re(g.info.light, 0.6)), k(g.Alert, "successColor", re(g.success.light, 0.6)), k(g.Alert, "warningColor", re(g.warning.light, 0.6)), k(g.Alert, "errorFilledBg", R("palette-error-main")), k(g.Alert, "infoFilledBg", R("palette-info-main")), k(g.Alert, "successFilledBg", R("palette-success-main")), k(g.Alert, "warningFilledBg", R("palette-warning-main")), k(g.Alert, "errorFilledColor", ot(() => g.getContrastText(g.error.main))), k(g.Alert, "infoFilledColor", ot(() => g.getContrastText(g.info.main))), k(g.Alert, "successFilledColor", ot(() => g.getContrastText(g.success.main))), k(g.Alert, "warningFilledColor", ot(() => g.getContrastText(g.warning.main))), k(g.Alert, "errorStandardBg", oe(g.error.light, 0.9)), k(g.Alert, "infoStandardBg", oe(g.info.light, 0.9)), k(g.Alert, "successStandardBg", oe(g.success.light, 0.9)), k(g.Alert, "warningStandardBg", oe(g.warning.light, 0.9)), k(g.Alert, "errorIconColor", R("palette-error-main")), k(g.Alert, "infoIconColor", R("palette-info-main")), k(g.Alert, "successIconColor", R("palette-success-main")), k(g.Alert, "warningIconColor", R("palette-warning-main")), k(g.AppBar, "defaultBg", R("palette-grey-100")), k(g.Avatar, "defaultBg", R("palette-grey-400")), k(g.Button, "inheritContainedBg", R("palette-grey-300")), k(g.Button, "inheritContainedHoverBg", R("palette-grey-A100")), k(g.Chip, "defaultBorder", R("palette-grey-400")), k(g.Chip, "defaultAvatarColor", R("palette-grey-700")), k(g.Chip, "defaultIconColor", R("palette-grey-700")), k(g.FilledInput, "bg", "rgba(0, 0, 0, 0.06)"), k(g.FilledInput, "hoverBg", "rgba(0, 0, 0, 0.09)"), k(g.FilledInput, "disabledBg", "rgba(0, 0, 0, 0.12)"), k(g.LinearProgress, "primaryBg", oe(g.primary.main, 0.62)), k(g.LinearProgress, "secondaryBg", oe(g.secondary.main, 0.62)), k(g.LinearProgress, "errorBg", oe(g.error.main, 0.62)), k(g.LinearProgress, "infoBg", oe(g.info.main, 0.62)), k(g.LinearProgress, "successBg", oe(g.success.main, 0.62)), k(g.LinearProgress, "warningBg", oe(g.warning.main, 0.62)), k(g.Skeleton, "bg", `rgba(${R("palette-text-primaryChannel")} / 0.11)`), k(g.Slider, "primaryTrack", oe(g.primary.main, 0.62)), k(g.Slider, "secondaryTrack", oe(g.secondary.main, 0.62)), k(g.Slider, "errorTrack", oe(g.error.main, 0.62)), k(g.Slider, "infoTrack", oe(g.info.main, 0.62)), k(g.Slider, "successTrack", oe(g.success.main, 0.62)), k(g.Slider, "warningTrack", oe(g.warning.main, 0.62));
2334
+ if (g.mode === "light" && (I(g.common, "background", "#fff"), I(g.common, "onBackground", "#000")), g.mode === "dark" && (I(g.common, "background", "#000"), I(g.common, "onBackground", "#fff")), _d(g, ["Alert", "AppBar", "Avatar", "Button", "Chip", "FilledInput", "LinearProgress", "Skeleton", "Slider", "SnackbarContent", "SpeedDialAction", "StepConnector", "StepContent", "Switch", "TableCell", "Tooltip"]), g.mode === "light") {
2335
+ I(g.Alert, "errorColor", re(g.error.light, 0.6)), I(g.Alert, "infoColor", re(g.info.light, 0.6)), I(g.Alert, "successColor", re(g.success.light, 0.6)), I(g.Alert, "warningColor", re(g.warning.light, 0.6)), I(g.Alert, "errorFilledBg", R("palette-error-main")), I(g.Alert, "infoFilledBg", R("palette-info-main")), I(g.Alert, "successFilledBg", R("palette-success-main")), I(g.Alert, "warningFilledBg", R("palette-warning-main")), I(g.Alert, "errorFilledColor", ot(() => g.getContrastText(g.error.main))), I(g.Alert, "infoFilledColor", ot(() => g.getContrastText(g.info.main))), I(g.Alert, "successFilledColor", ot(() => g.getContrastText(g.success.main))), I(g.Alert, "warningFilledColor", ot(() => g.getContrastText(g.warning.main))), I(g.Alert, "errorStandardBg", oe(g.error.light, 0.9)), I(g.Alert, "infoStandardBg", oe(g.info.light, 0.9)), I(g.Alert, "successStandardBg", oe(g.success.light, 0.9)), I(g.Alert, "warningStandardBg", oe(g.warning.light, 0.9)), I(g.Alert, "errorIconColor", R("palette-error-main")), I(g.Alert, "infoIconColor", R("palette-info-main")), I(g.Alert, "successIconColor", R("palette-success-main")), I(g.Alert, "warningIconColor", R("palette-warning-main")), I(g.AppBar, "defaultBg", R("palette-grey-100")), I(g.Avatar, "defaultBg", R("palette-grey-400")), I(g.Button, "inheritContainedBg", R("palette-grey-300")), I(g.Button, "inheritContainedHoverBg", R("palette-grey-A100")), I(g.Chip, "defaultBorder", R("palette-grey-400")), I(g.Chip, "defaultAvatarColor", R("palette-grey-700")), I(g.Chip, "defaultIconColor", R("palette-grey-700")), I(g.FilledInput, "bg", "rgba(0, 0, 0, 0.06)"), I(g.FilledInput, "hoverBg", "rgba(0, 0, 0, 0.09)"), I(g.FilledInput, "disabledBg", "rgba(0, 0, 0, 0.12)"), I(g.LinearProgress, "primaryBg", oe(g.primary.main, 0.62)), I(g.LinearProgress, "secondaryBg", oe(g.secondary.main, 0.62)), I(g.LinearProgress, "errorBg", oe(g.error.main, 0.62)), I(g.LinearProgress, "infoBg", oe(g.info.main, 0.62)), I(g.LinearProgress, "successBg", oe(g.success.main, 0.62)), I(g.LinearProgress, "warningBg", oe(g.warning.main, 0.62)), I(g.Skeleton, "bg", `rgba(${R("palette-text-primaryChannel")} / 0.11)`), I(g.Slider, "primaryTrack", oe(g.primary.main, 0.62)), I(g.Slider, "secondaryTrack", oe(g.secondary.main, 0.62)), I(g.Slider, "errorTrack", oe(g.error.main, 0.62)), I(g.Slider, "infoTrack", oe(g.info.main, 0.62)), I(g.Slider, "successTrack", oe(g.success.main, 0.62)), I(g.Slider, "warningTrack", oe(g.warning.main, 0.62));
2336
2336
  const A = Jn(g.background.default, 0.8);
2337
- k(g.SnackbarContent, "bg", A), k(g.SnackbarContent, "color", ot(() => g.getContrastText(A))), k(g.SpeedDialAction, "fabHoverBg", Jn(g.background.paper, 0.15)), k(g.StepConnector, "border", R("palette-grey-400")), k(g.StepContent, "border", R("palette-grey-400")), k(g.Switch, "defaultColor", R("palette-common-white")), k(g.Switch, "defaultDisabledColor", R("palette-grey-100")), k(g.Switch, "primaryDisabledColor", oe(g.primary.main, 0.62)), k(g.Switch, "secondaryDisabledColor", oe(g.secondary.main, 0.62)), k(g.Switch, "errorDisabledColor", oe(g.error.main, 0.62)), k(g.Switch, "infoDisabledColor", oe(g.info.main, 0.62)), k(g.Switch, "successDisabledColor", oe(g.success.main, 0.62)), k(g.Switch, "warningDisabledColor", oe(g.warning.main, 0.62)), k(g.TableCell, "border", oe(Xn(g.divider, 1), 0.88)), k(g.Tooltip, "bg", Xn(g.grey[700], 0.92));
2337
+ I(g.SnackbarContent, "bg", A), I(g.SnackbarContent, "color", ot(() => g.getContrastText(A))), I(g.SpeedDialAction, "fabHoverBg", Jn(g.background.paper, 0.15)), I(g.StepConnector, "border", R("palette-grey-400")), I(g.StepContent, "border", R("palette-grey-400")), I(g.Switch, "defaultColor", R("palette-common-white")), I(g.Switch, "defaultDisabledColor", R("palette-grey-100")), I(g.Switch, "primaryDisabledColor", oe(g.primary.main, 0.62)), I(g.Switch, "secondaryDisabledColor", oe(g.secondary.main, 0.62)), I(g.Switch, "errorDisabledColor", oe(g.error.main, 0.62)), I(g.Switch, "infoDisabledColor", oe(g.info.main, 0.62)), I(g.Switch, "successDisabledColor", oe(g.success.main, 0.62)), I(g.Switch, "warningDisabledColor", oe(g.warning.main, 0.62)), I(g.TableCell, "border", oe(Xn(g.divider, 1), 0.88)), I(g.Tooltip, "bg", Xn(g.grey[700], 0.92));
2338
2338
  }
2339
2339
  if (g.mode === "dark") {
2340
- k(g.Alert, "errorColor", oe(g.error.light, 0.6)), k(g.Alert, "infoColor", oe(g.info.light, 0.6)), k(g.Alert, "successColor", oe(g.success.light, 0.6)), k(g.Alert, "warningColor", oe(g.warning.light, 0.6)), k(g.Alert, "errorFilledBg", R("palette-error-dark")), k(g.Alert, "infoFilledBg", R("palette-info-dark")), k(g.Alert, "successFilledBg", R("palette-success-dark")), k(g.Alert, "warningFilledBg", R("palette-warning-dark")), k(g.Alert, "errorFilledColor", ot(() => g.getContrastText(g.error.dark))), k(g.Alert, "infoFilledColor", ot(() => g.getContrastText(g.info.dark))), k(g.Alert, "successFilledColor", ot(() => g.getContrastText(g.success.dark))), k(g.Alert, "warningFilledColor", ot(() => g.getContrastText(g.warning.dark))), k(g.Alert, "errorStandardBg", re(g.error.light, 0.9)), k(g.Alert, "infoStandardBg", re(g.info.light, 0.9)), k(g.Alert, "successStandardBg", re(g.success.light, 0.9)), k(g.Alert, "warningStandardBg", re(g.warning.light, 0.9)), k(g.Alert, "errorIconColor", R("palette-error-main")), k(g.Alert, "infoIconColor", R("palette-info-main")), k(g.Alert, "successIconColor", R("palette-success-main")), k(g.Alert, "warningIconColor", R("palette-warning-main")), k(g.AppBar, "defaultBg", R("palette-grey-900")), k(g.AppBar, "darkBg", R("palette-background-paper")), k(g.AppBar, "darkColor", R("palette-text-primary")), k(g.Avatar, "defaultBg", R("palette-grey-600")), k(g.Button, "inheritContainedBg", R("palette-grey-800")), k(g.Button, "inheritContainedHoverBg", R("palette-grey-700")), k(g.Chip, "defaultBorder", R("palette-grey-700")), k(g.Chip, "defaultAvatarColor", R("palette-grey-300")), k(g.Chip, "defaultIconColor", R("palette-grey-300")), k(g.FilledInput, "bg", "rgba(255, 255, 255, 0.09)"), k(g.FilledInput, "hoverBg", "rgba(255, 255, 255, 0.13)"), k(g.FilledInput, "disabledBg", "rgba(255, 255, 255, 0.12)"), k(g.LinearProgress, "primaryBg", re(g.primary.main, 0.5)), k(g.LinearProgress, "secondaryBg", re(g.secondary.main, 0.5)), k(g.LinearProgress, "errorBg", re(g.error.main, 0.5)), k(g.LinearProgress, "infoBg", re(g.info.main, 0.5)), k(g.LinearProgress, "successBg", re(g.success.main, 0.5)), k(g.LinearProgress, "warningBg", re(g.warning.main, 0.5)), k(g.Skeleton, "bg", `rgba(${R("palette-text-primaryChannel")} / 0.13)`), k(g.Slider, "primaryTrack", re(g.primary.main, 0.5)), k(g.Slider, "secondaryTrack", re(g.secondary.main, 0.5)), k(g.Slider, "errorTrack", re(g.error.main, 0.5)), k(g.Slider, "infoTrack", re(g.info.main, 0.5)), k(g.Slider, "successTrack", re(g.success.main, 0.5)), k(g.Slider, "warningTrack", re(g.warning.main, 0.5));
2340
+ I(g.Alert, "errorColor", oe(g.error.light, 0.6)), I(g.Alert, "infoColor", oe(g.info.light, 0.6)), I(g.Alert, "successColor", oe(g.success.light, 0.6)), I(g.Alert, "warningColor", oe(g.warning.light, 0.6)), I(g.Alert, "errorFilledBg", R("palette-error-dark")), I(g.Alert, "infoFilledBg", R("palette-info-dark")), I(g.Alert, "successFilledBg", R("palette-success-dark")), I(g.Alert, "warningFilledBg", R("palette-warning-dark")), I(g.Alert, "errorFilledColor", ot(() => g.getContrastText(g.error.dark))), I(g.Alert, "infoFilledColor", ot(() => g.getContrastText(g.info.dark))), I(g.Alert, "successFilledColor", ot(() => g.getContrastText(g.success.dark))), I(g.Alert, "warningFilledColor", ot(() => g.getContrastText(g.warning.dark))), I(g.Alert, "errorStandardBg", re(g.error.light, 0.9)), I(g.Alert, "infoStandardBg", re(g.info.light, 0.9)), I(g.Alert, "successStandardBg", re(g.success.light, 0.9)), I(g.Alert, "warningStandardBg", re(g.warning.light, 0.9)), I(g.Alert, "errorIconColor", R("palette-error-main")), I(g.Alert, "infoIconColor", R("palette-info-main")), I(g.Alert, "successIconColor", R("palette-success-main")), I(g.Alert, "warningIconColor", R("palette-warning-main")), I(g.AppBar, "defaultBg", R("palette-grey-900")), I(g.AppBar, "darkBg", R("palette-background-paper")), I(g.AppBar, "darkColor", R("palette-text-primary")), I(g.Avatar, "defaultBg", R("palette-grey-600")), I(g.Button, "inheritContainedBg", R("palette-grey-800")), I(g.Button, "inheritContainedHoverBg", R("palette-grey-700")), I(g.Chip, "defaultBorder", R("palette-grey-700")), I(g.Chip, "defaultAvatarColor", R("palette-grey-300")), I(g.Chip, "defaultIconColor", R("palette-grey-300")), I(g.FilledInput, "bg", "rgba(255, 255, 255, 0.09)"), I(g.FilledInput, "hoverBg", "rgba(255, 255, 255, 0.13)"), I(g.FilledInput, "disabledBg", "rgba(255, 255, 255, 0.12)"), I(g.LinearProgress, "primaryBg", re(g.primary.main, 0.5)), I(g.LinearProgress, "secondaryBg", re(g.secondary.main, 0.5)), I(g.LinearProgress, "errorBg", re(g.error.main, 0.5)), I(g.LinearProgress, "infoBg", re(g.info.main, 0.5)), I(g.LinearProgress, "successBg", re(g.success.main, 0.5)), I(g.LinearProgress, "warningBg", re(g.warning.main, 0.5)), I(g.Skeleton, "bg", `rgba(${R("palette-text-primaryChannel")} / 0.13)`), I(g.Slider, "primaryTrack", re(g.primary.main, 0.5)), I(g.Slider, "secondaryTrack", re(g.secondary.main, 0.5)), I(g.Slider, "errorTrack", re(g.error.main, 0.5)), I(g.Slider, "infoTrack", re(g.info.main, 0.5)), I(g.Slider, "successTrack", re(g.success.main, 0.5)), I(g.Slider, "warningTrack", re(g.warning.main, 0.5));
2341
2341
  const A = Jn(g.background.default, 0.98);
2342
- k(g.SnackbarContent, "bg", A), k(g.SnackbarContent, "color", ot(() => g.getContrastText(A))), k(g.SpeedDialAction, "fabHoverBg", Jn(g.background.paper, 0.15)), k(g.StepConnector, "border", R("palette-grey-600")), k(g.StepContent, "border", R("palette-grey-600")), k(g.Switch, "defaultColor", R("palette-grey-300")), k(g.Switch, "defaultDisabledColor", R("palette-grey-600")), k(g.Switch, "primaryDisabledColor", re(g.primary.main, 0.55)), k(g.Switch, "secondaryDisabledColor", re(g.secondary.main, 0.55)), k(g.Switch, "errorDisabledColor", re(g.error.main, 0.55)), k(g.Switch, "infoDisabledColor", re(g.info.main, 0.55)), k(g.Switch, "successDisabledColor", re(g.success.main, 0.55)), k(g.Switch, "warningDisabledColor", re(g.warning.main, 0.55)), k(g.TableCell, "border", re(Xn(g.divider, 1), 0.68)), k(g.Tooltip, "bg", Xn(g.grey[700], 0.92));
2342
+ I(g.SnackbarContent, "bg", A), I(g.SnackbarContent, "color", ot(() => g.getContrastText(A))), I(g.SpeedDialAction, "fabHoverBg", Jn(g.background.paper, 0.15)), I(g.StepConnector, "border", R("palette-grey-600")), I(g.StepContent, "border", R("palette-grey-600")), I(g.Switch, "defaultColor", R("palette-grey-300")), I(g.Switch, "defaultDisabledColor", R("palette-grey-600")), I(g.Switch, "primaryDisabledColor", re(g.primary.main, 0.55)), I(g.Switch, "secondaryDisabledColor", re(g.secondary.main, 0.55)), I(g.Switch, "errorDisabledColor", re(g.error.main, 0.55)), I(g.Switch, "infoDisabledColor", re(g.info.main, 0.55)), I(g.Switch, "successDisabledColor", re(g.success.main, 0.55)), I(g.Switch, "warningDisabledColor", re(g.warning.main, 0.55)), I(g.TableCell, "border", re(Xn(g.divider, 1), 0.68)), I(g.Tooltip, "bg", Xn(g.grey[700], 0.92));
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((A) => {
2345
- const $ = g[A];
2346
- A !== "tonalOffset" && $ && typeof $ == "object" && ($.main && k(g[A], "mainChannel", Sn(Cn($.main))), $.light && k(g[A], "lightChannel", Sn(Cn($.light))), $.dark && k(g[A], "darkChannel", Sn(Cn($.dark))), $.contrastText && k(g[A], "contrastTextChannel", Sn(Cn($.contrastText))), A === "text" && (ut(g[A], "primary"), ut(g[A], "secondary")), A === "action" && ($.active && ut(g[A], "active"), $.selected && ut(g[A], "selected")));
2345
+ const D = g[A];
2346
+ A !== "tonalOffset" && D && typeof D == "object" && (D.main && I(g[A], "mainChannel", Sn(Cn(D.main))), D.light && I(g[A], "lightChannel", Sn(Cn(D.light))), D.dark && I(g[A], "darkChannel", Sn(Cn(D.dark))), D.contrastText && I(g[A], "contrastTextChannel", Sn(Cn(D.contrastText))), A === "text" && (ut(g[A], "primary"), ut(g[A], "secondary")), A === "action" && (D.active && ut(g[A], "active"), D.selected && ut(g[A], "selected")));
2347
2347
  });
2348
2348
  }), v = t.reduce((F, g) => We(F, g), v);
2349
2349
  const w = {
@@ -2353,12 +2353,12 @@ function Nd(e = {}, ...t) {
2353
2353
  getSelector: Rd(v)
2354
2354
  }, {
2355
2355
  vars: P,
2356
- generateThemeVars: N,
2356
+ generateThemeVars: M,
2357
2357
  generateStyleSheets: V
2358
2358
  } = rd(v, w);
2359
2359
  return v.vars = P, Object.entries(v.colorSchemes[v.defaultColorScheme]).forEach(([F, g]) => {
2360
2360
  v[F] = g;
2361
- }), v.generateThemeVars = N, v.generateStyleSheets = V, v.generateSpacing = function() {
2361
+ }), v.generateThemeVars = M, v.generateStyleSheets = V, v.generateSpacing = function() {
2362
2362
  return Wl(c.spacing, Wo(this));
2363
2363
  }, v.getColorSchemeSelector = id(a), v.spacing = v.generateSpacing(), v.shouldSkipGeneratingVar = s, v.unstable_sxConfig = {
2364
2364
  ...Vr,
@@ -2530,8 +2530,8 @@ function Vd(e = {}) {
2530
2530
  if (w.__emotion_real === w)
2531
2531
  return w;
2532
2532
  if (typeof w == "function")
2533
- return function(N) {
2534
- return sr(N, w);
2533
+ return function(M) {
2534
+ return sr(M, w);
2535
2535
  };
2536
2536
  if (ft(w)) {
2537
2537
  const P = $d(w);
@@ -2541,7 +2541,7 @@ function Vd(e = {}) {
2541
2541
  }
2542
2542
  return w;
2543
2543
  }, v = (...w) => {
2544
- const P = [], N = w.map(C), V = [];
2544
+ const P = [], M = w.map(C), V = [];
2545
2545
  if (P.push(i), c && h && V.push(function(A) {
2546
2546
  const j = A.theme.components?.[c]?.styleOverrides;
2547
2547
  if (!j)
@@ -2553,12 +2553,12 @@ function Vd(e = {}) {
2553
2553
  }), c && !y && V.push(function(A) {
2554
2554
  const j = A.theme?.components?.[c]?.variants;
2555
2555
  return j ? ea(A, j) : null;
2556
- }), b || V.push(un), Array.isArray(N[0])) {
2557
- const R = N.shift(), A = new Array(P.length).fill(""), $ = new Array(V.length).fill("");
2556
+ }), b || V.push(un), Array.isArray(M[0])) {
2557
+ const R = M.shift(), A = new Array(P.length).fill(""), D = new Array(V.length).fill("");
2558
2558
  let j;
2559
- j = [...A, ...R, ...$], j.raw = [...A, ...R.raw, ...$], P.unshift(j);
2559
+ j = [...A, ...R, ...D], j.raw = [...A, ...R.raw, ...D], P.unshift(j);
2560
2560
  }
2561
- const F = [...P, ...N, ...V], g = S(...F);
2561
+ const F = [...P, ...M, ...V], g = S(...F);
2562
2562
  return a.muiName && (g.muiName = a.muiName), g;
2563
2563
  };
2564
2564
  return S.withConfig && (v.withConfig = S.withConfig), v;
@@ -2733,7 +2733,7 @@ const qd = (e) => {
2733
2733
  }, b = {};
2734
2734
  u || (b.viewBox = m);
2735
2735
  const x = qd(y);
2736
- return /* @__PURE__ */ I(Kd, {
2736
+ return /* @__PURE__ */ k(Kd, {
2737
2737
  as: a,
2738
2738
  className: be(x.root, i),
2739
2739
  focusable: "false",
@@ -2751,7 +2751,7 @@ const qd = (e) => {
2751
2751
  });
2752
2752
  });
2753
2753
  vo.muiName = "SvgIcon";
2754
- function _e(e, t) {
2754
+ function Ae(e, t) {
2755
2755
  function n(r, o) {
2756
2756
  return /* @__PURE__ */ d(vo, {
2757
2757
  "data-testid": void 0,
@@ -2863,9 +2863,9 @@ function Xd(e, t) {
2863
2863
  }
2864
2864
  };
2865
2865
  }
2866
- const zr = _e(/* @__PURE__ */ d("path", {
2866
+ const zr = Ae(/* @__PURE__ */ d("path", {
2867
2867
  d: "M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"
2868
- })), Fn = _e(/* @__PURE__ */ d("path", {
2868
+ })), Fn = Ae(/* @__PURE__ */ d("path", {
2869
2869
  d: "M17 7h-4v2h4c1.65 0 3 1.35 3 3s-1.35 3-3 3h-4v2h4c2.76 0 5-2.24 5-5s-2.24-5-5-5m-6 8H7c-1.65 0-3-1.35-3-3s1.35-3 3-3h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4zm-3-4h8v2H8z"
2870
2870
  })), ye = "http://localhost/api/v0".replace(/\/+$/, "");
2871
2871
  class _t {
@@ -5746,14 +5746,14 @@ async function Sp(e) {
5746
5746
  }
5747
5747
  return await m(), r;
5748
5748
  }
5749
- var Cp = Object.defineProperty, wp = (e, t, n) => t in e ? Cp(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Pe = (e, t, n) => (wp(e, typeof t != "symbol" ? t + "" : t, n), n);
5750
- let Oe = null;
5749
+ var Cp = Object.defineProperty, wp = (e, t, n) => t in e ? Cp(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Re = (e, t, n) => (wp(e, typeof t != "symbol" ? t + "" : t, n), n);
5750
+ let Ne = null;
5751
5751
  function vp(e) {
5752
5752
  throw new ri(e.UTF8ToString(e.getLastOnigError()));
5753
5753
  }
5754
5754
  class Hr {
5755
5755
  constructor(t) {
5756
- Pe(this, "utf16Length"), Pe(this, "utf8Length"), Pe(this, "utf16Value"), Pe(this, "utf8Value"), Pe(this, "utf16OffsetToUtf8"), Pe(this, "utf8OffsetToUtf16");
5756
+ Re(this, "utf16Length"), Re(this, "utf8Length"), Re(this, "utf16Value"), Re(this, "utf8Value"), Re(this, "utf16OffsetToUtf8"), Re(this, "utf8OffsetToUtf16");
5757
5757
  const n = t.length, r = Hr._utf8ByteLength(t), o = r !== n, i = o ? new Uint32Array(n + 1) : null;
5758
5758
  o && (i[n] = r);
5759
5759
  const s = o ? new Uint32Array(r + 1) : null;
@@ -5791,11 +5791,11 @@ class Hr {
5791
5791
  }
5792
5792
  const it = class {
5793
5793
  constructor(e) {
5794
- if (Pe(this, "id", ++it.LAST_ID), Pe(this, "_onigBinding"), Pe(this, "content"), Pe(this, "utf16Length"), Pe(this, "utf8Length"), Pe(this, "utf16OffsetToUtf8"), Pe(this, "utf8OffsetToUtf16"), Pe(this, "ptr"), !Oe)
5794
+ if (Re(this, "id", ++it.LAST_ID), Re(this, "_onigBinding"), Re(this, "content"), Re(this, "utf16Length"), Re(this, "utf8Length"), Re(this, "utf16OffsetToUtf8"), Re(this, "utf8OffsetToUtf16"), Re(this, "ptr"), !Ne)
5795
5795
  throw new ri("Must invoke loadWasm first.");
5796
- this._onigBinding = Oe, this.content = e;
5796
+ this._onigBinding = Ne, this.content = e;
5797
5797
  const t = new Hr(e);
5798
- this.utf16Length = t.utf16Length, this.utf8Length = t.utf8Length, this.utf16OffsetToUtf8 = t.utf16OffsetToUtf8, this.utf8OffsetToUtf16 = t.utf8OffsetToUtf16, this.utf8Length < 1e4 && !it._sharedPtrInUse ? (it._sharedPtr || (it._sharedPtr = Oe.omalloc(1e4)), it._sharedPtrInUse = !0, Oe.HEAPU8.set(t.utf8Value, it._sharedPtr), this.ptr = it._sharedPtr) : this.ptr = t.createString(Oe);
5798
+ this.utf16Length = t.utf16Length, this.utf8Length = t.utf8Length, this.utf16OffsetToUtf8 = t.utf16OffsetToUtf8, this.utf8OffsetToUtf16 = t.utf8OffsetToUtf16, this.utf8Length < 1e4 && !it._sharedPtrInUse ? (it._sharedPtr || (it._sharedPtr = Ne.omalloc(1e4)), it._sharedPtrInUse = !0, Ne.HEAPU8.set(t.utf8Value, it._sharedPtr), this.ptr = it._sharedPtr) : this.ptr = t.createString(Ne);
5799
5799
  }
5800
5800
  convertUtf8OffsetToUtf16(e) {
5801
5801
  return this.utf8OffsetToUtf16 ? e < 0 ? 0 : e > this.utf8Length ? this.utf16Length : this.utf8OffsetToUtf16[e] : e;
@@ -5808,26 +5808,26 @@ const it = class {
5808
5808
  }
5809
5809
  };
5810
5810
  let zn = it;
5811
- Pe(zn, "LAST_ID", 0);
5812
- Pe(zn, "_sharedPtr", 0);
5813
- Pe(zn, "_sharedPtrInUse", !1);
5811
+ Re(zn, "LAST_ID", 0);
5812
+ Re(zn, "_sharedPtr", 0);
5813
+ Re(zn, "_sharedPtrInUse", !1);
5814
5814
  class kp {
5815
5815
  constructor(t) {
5816
- if (Pe(this, "_onigBinding"), Pe(this, "_ptr"), !Oe)
5816
+ if (Re(this, "_onigBinding"), Re(this, "_ptr"), !Ne)
5817
5817
  throw new ri("Must invoke loadWasm first.");
5818
5818
  const n = [], r = [];
5819
5819
  for (let a = 0, l = t.length; a < l; a++) {
5820
5820
  const c = new Hr(t[a]);
5821
- n[a] = c.createString(Oe), r[a] = c.utf8Length;
5821
+ n[a] = c.createString(Ne), r[a] = c.utf8Length;
5822
5822
  }
5823
- const o = Oe.omalloc(4 * t.length);
5824
- Oe.HEAPU32.set(n, o / 4);
5825
- const i = Oe.omalloc(4 * t.length);
5826
- Oe.HEAPU32.set(r, i / 4);
5827
- const s = Oe.createOnigScanner(o, i, t.length);
5823
+ const o = Ne.omalloc(4 * t.length);
5824
+ Ne.HEAPU32.set(n, o / 4);
5825
+ const i = Ne.omalloc(4 * t.length);
5826
+ Ne.HEAPU32.set(r, i / 4);
5827
+ const s = Ne.createOnigScanner(o, i, t.length);
5828
5828
  for (let a = 0, l = t.length; a < l; a++)
5829
- Oe.ofree(n[a]);
5830
- Oe.ofree(i), Oe.ofree(o), s === 0 && vp(Oe), this._onigBinding = Oe, this._ptr = s;
5829
+ Ne.ofree(n[a]);
5830
+ Ne.ofree(i), Ne.ofree(o), s === 0 && vp(Ne), this._onigBinding = Ne, this._ptr = s;
5831
5831
  }
5832
5832
  dispose() {
5833
5833
  this._onigBinding.freeOnigScanner(this._ptr);
@@ -5882,7 +5882,7 @@ function _p(e) {
5882
5882
  if (Zn)
5883
5883
  return Zn;
5884
5884
  async function t() {
5885
- Oe = await Sp(async (n) => {
5885
+ Ne = await Sp(async (n) => {
5886
5886
  let r = e;
5887
5887
  return r = await r, typeof r == "function" && (r = await r(n)), typeof r == "function" && (r = await r(n)), Ip(r) ? r = await r.instantiator(n) : Ep(r) ? r = await r.default(n) : (Tp(r) && (r = r.data), Pp(r) ? typeof WebAssembly.instantiateStreaming == "function" ? r = await Ap(r)(n) : r = await Op(r)(n) : Rp(r) ? r = await ao(r)(n) : r instanceof WebAssembly.Module ? r = await ao(r)(n) : "default" in r && r.default instanceof WebAssembly.Module && (r = await ao(r.default)(n))), "instance" in r && (r = r.instance), "exports" in r && (r = r.exports), r;
5888
5888
  });
@@ -6730,7 +6730,7 @@ var Un = class {
6730
6730
  _getCachedCompiledWhilePatterns(e, t) {
6731
6731
  return this._cachedCompiledWhilePatterns || (this._cachedCompiledWhilePatterns = new Nn(), this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences ? this._while.clone() : this._while)), this._while.hasBackReferences && this._cachedCompiledWhilePatterns.setSource(0, t || "￿"), this._cachedCompiledWhilePatterns;
6732
6732
  }
6733
- }, xa = class Le {
6733
+ }, xa = class $e {
6734
6734
  static createCaptureRule(t, n, r, o, i) {
6735
6735
  return t.registerRule((s) => new oh(n, s, r, o, i));
6736
6736
  }
@@ -6742,7 +6742,7 @@ var Un = class {
6742
6742
  t.id,
6743
6743
  t.name,
6744
6744
  t.match,
6745
- Le._compileCaptures(t.captures, n, r)
6745
+ $e._compileCaptures(t.captures, n, r)
6746
6746
  );
6747
6747
  if (typeof t.begin > "u") {
6748
6748
  t.repository && (r = la({}, r, t.repository));
@@ -6752,7 +6752,7 @@ var Un = class {
6752
6752
  t.id,
6753
6753
  t.name,
6754
6754
  t.contentName,
6755
- Le._compilePatterns(i, n, r)
6755
+ $e._compilePatterns(i, n, r)
6756
6756
  );
6757
6757
  }
6758
6758
  return t.while ? new Sr(
@@ -6761,21 +6761,21 @@ var Un = class {
6761
6761
  t.name,
6762
6762
  t.contentName,
6763
6763
  t.begin,
6764
- Le._compileCaptures(t.beginCaptures || t.captures, n, r),
6764
+ $e._compileCaptures(t.beginCaptures || t.captures, n, r),
6765
6765
  t.while,
6766
- Le._compileCaptures(t.whileCaptures || t.captures, n, r),
6767
- Le._compilePatterns(t.patterns, n, r)
6766
+ $e._compileCaptures(t.whileCaptures || t.captures, n, r),
6767
+ $e._compilePatterns(t.patterns, n, r)
6768
6768
  ) : new Po(
6769
6769
  t.$vscodeTextmateLocation,
6770
6770
  t.id,
6771
6771
  t.name,
6772
6772
  t.contentName,
6773
6773
  t.begin,
6774
- Le._compileCaptures(t.beginCaptures || t.captures, n, r),
6774
+ $e._compileCaptures(t.beginCaptures || t.captures, n, r),
6775
6775
  t.end,
6776
- Le._compileCaptures(t.endCaptures || t.captures, n, r),
6776
+ $e._compileCaptures(t.endCaptures || t.captures, n, r),
6777
6777
  t.applyEndPatternLast,
6778
- Le._compilePatterns(t.patterns, n, r)
6778
+ $e._compilePatterns(t.patterns, n, r)
6779
6779
  );
6780
6780
  }), t.id;
6781
6781
  }
@@ -6796,7 +6796,7 @@ var Un = class {
6796
6796
  continue;
6797
6797
  const a = parseInt(s, 10);
6798
6798
  let l = 0;
6799
- t[s].patterns && (l = Le.getCompiledRuleId(t[s], n, r)), o[a] = Le.createCaptureRule(n, t[s].$vscodeTextmateLocation, t[s].name, t[s].contentName, l);
6799
+ t[s].patterns && (l = $e.getCompiledRuleId(t[s], n, r)), o[a] = $e.createCaptureRule(n, t[s].$vscodeTextmateLocation, t[s].name, t[s].contentName, l);
6800
6800
  }
6801
6801
  }
6802
6802
  return o;
@@ -6812,11 +6812,11 @@ var Un = class {
6812
6812
  switch (c.kind) {
6813
6813
  case 0:
6814
6814
  case 1:
6815
- l = Le.getCompiledRuleId(r[a.include], n, r);
6815
+ l = $e.getCompiledRuleId(r[a.include], n, r);
6816
6816
  break;
6817
6817
  case 2:
6818
6818
  let u = r[c.ruleName];
6819
- u && (l = Le.getCompiledRuleId(u, n, r));
6819
+ u && (l = $e.getCompiledRuleId(u, n, r));
6820
6820
  break;
6821
6821
  case 3:
6822
6822
  case 4:
@@ -6824,13 +6824,13 @@ var Un = class {
6824
6824
  if (h)
6825
6825
  if (m) {
6826
6826
  let f = h.repository[m];
6827
- f && (l = Le.getCompiledRuleId(f, n, h.repository));
6827
+ f && (l = $e.getCompiledRuleId(f, n, h.repository));
6828
6828
  } else
6829
- l = Le.getCompiledRuleId(h.repository.$self, n, h.repository);
6829
+ l = $e.getCompiledRuleId(h.repository.$self, n, h.repository);
6830
6830
  break;
6831
6831
  }
6832
6832
  } else
6833
- l = Le.getCompiledRuleId(a, n, r);
6833
+ l = $e.getCompiledRuleId(a, n, r);
6834
6834
  if (l !== -1) {
6835
6835
  const c = n.getRule(l);
6836
6836
  let u = !1;
@@ -7119,11 +7119,11 @@ function Ca(e, t, n, r, o, i, s, a) {
7119
7119
  const P = w.getContentName(
7120
7120
  t.content,
7121
7121
  f
7122
- ), N = v.pushAttributed(
7122
+ ), M = v.pushAttributed(
7123
7123
  P,
7124
7124
  e
7125
7125
  );
7126
- if (o = o.withContentNameScopesList(N), w.endHasBackReferences && (o = o.withEndRule(
7126
+ if (o = o.withContentNameScopesList(M), w.endHasBackReferences && (o = o.withEndRule(
7127
7127
  w.getEndWithResolvedBackReferences(
7128
7128
  t.content,
7129
7129
  f
@@ -7146,11 +7146,11 @@ function Ca(e, t, n, r, o, i, s, a) {
7146
7146
  const P = w.getContentName(
7147
7147
  t.content,
7148
7148
  f
7149
- ), N = v.pushAttributed(
7149
+ ), M = v.pushAttributed(
7150
7150
  P,
7151
7151
  e
7152
7152
  );
7153
- if (o = o.withContentNameScopesList(N), w.whileHasBackReferences && (o = o.withEndRule(
7153
+ if (o = o.withContentNameScopesList(M), w.whileHasBackReferences && (o = o.withEndRule(
7154
7154
  w.getWhileWithResolvedBackReferences(
7155
7155
  t.content,
7156
7156
  f
@@ -9711,7 +9711,7 @@ function si(e) {
9711
9711
  function ms(e) {
9712
9712
  return e.replace(tm, "") === "";
9713
9713
  }
9714
- const Ae = Ma(1), Na = Ma(-1), nm = [];
9714
+ const Oe = Ma(1), Na = Ma(-1), nm = [];
9715
9715
  function Ma(e) {
9716
9716
  return t;
9717
9717
  function t(n, r, o) {
@@ -9752,63 +9752,63 @@ const ai = La({
9752
9752
  tr: fm
9753
9753
  });
9754
9754
  function mo(e, t, n) {
9755
- const r = Ae(n, t, !0);
9755
+ const r = Oe(n, t, !0);
9756
9756
  return !r || r.type !== "comment" && !(r.type === "text" && si(r.value.charAt(0)));
9757
9757
  }
9758
9758
  function om(e, t, n) {
9759
- const r = Ae(n, t);
9759
+ const r = Oe(n, t);
9760
9760
  return !r || r.type !== "comment";
9761
9761
  }
9762
9762
  function im(e, t, n) {
9763
- const r = Ae(n, t);
9763
+ const r = Oe(n, t);
9764
9764
  return !r || r.type !== "comment";
9765
9765
  }
9766
9766
  function sm(e, t, n) {
9767
- const r = Ae(n, t);
9767
+ const r = Oe(n, t);
9768
9768
  return r ? r.type === "element" && (r.tagName === "address" || r.tagName === "article" || r.tagName === "aside" || r.tagName === "blockquote" || r.tagName === "details" || r.tagName === "div" || r.tagName === "dl" || r.tagName === "fieldset" || r.tagName === "figcaption" || r.tagName === "figure" || r.tagName === "footer" || r.tagName === "form" || r.tagName === "h1" || r.tagName === "h2" || r.tagName === "h3" || r.tagName === "h4" || r.tagName === "h5" || r.tagName === "h6" || r.tagName === "header" || r.tagName === "hgroup" || r.tagName === "hr" || r.tagName === "main" || r.tagName === "menu" || r.tagName === "nav" || r.tagName === "ol" || r.tagName === "p" || r.tagName === "pre" || r.tagName === "section" || r.tagName === "table" || r.tagName === "ul") : !n || // Confusing parent.
9769
9769
  !(n.type === "element" && (n.tagName === "a" || n.tagName === "audio" || n.tagName === "del" || n.tagName === "ins" || n.tagName === "map" || n.tagName === "noscript" || n.tagName === "video"));
9770
9770
  }
9771
9771
  function am(e, t, n) {
9772
- const r = Ae(n, t);
9772
+ const r = Oe(n, t);
9773
9773
  return !r || r.type === "element" && r.tagName === "li";
9774
9774
  }
9775
9775
  function lm(e, t, n) {
9776
- const r = Ae(n, t);
9776
+ const r = Oe(n, t);
9777
9777
  return !!(r && r.type === "element" && (r.tagName === "dt" || r.tagName === "dd"));
9778
9778
  }
9779
9779
  function cm(e, t, n) {
9780
- const r = Ae(n, t);
9780
+ const r = Oe(n, t);
9781
9781
  return !r || r.type === "element" && (r.tagName === "dt" || r.tagName === "dd");
9782
9782
  }
9783
9783
  function fs(e, t, n) {
9784
- const r = Ae(n, t);
9784
+ const r = Oe(n, t);
9785
9785
  return !r || r.type === "element" && (r.tagName === "rp" || r.tagName === "rt");
9786
9786
  }
9787
9787
  function um(e, t, n) {
9788
- const r = Ae(n, t);
9788
+ const r = Oe(n, t);
9789
9789
  return !r || r.type === "element" && r.tagName === "optgroup";
9790
9790
  }
9791
9791
  function dm(e, t, n) {
9792
- const r = Ae(n, t);
9792
+ const r = Oe(n, t);
9793
9793
  return !r || r.type === "element" && (r.tagName === "option" || r.tagName === "optgroup");
9794
9794
  }
9795
9795
  function pm(e, t, n) {
9796
- const r = Ae(n, t);
9796
+ const r = Oe(n, t);
9797
9797
  return !!(r && r.type === "element" && (r.tagName === "tbody" || r.tagName === "tfoot"));
9798
9798
  }
9799
9799
  function hm(e, t, n) {
9800
- const r = Ae(n, t);
9800
+ const r = Oe(n, t);
9801
9801
  return !r || r.type === "element" && (r.tagName === "tbody" || r.tagName === "tfoot");
9802
9802
  }
9803
9803
  function mm(e, t, n) {
9804
- return !Ae(n, t);
9804
+ return !Oe(n, t);
9805
9805
  }
9806
9806
  function fm(e, t, n) {
9807
- const r = Ae(n, t);
9807
+ const r = Oe(n, t);
9808
9808
  return !r || r.type === "element" && r.tagName === "tr";
9809
9809
  }
9810
9810
  function gs(e, t, n) {
9811
- const r = Ae(n, t);
9811
+ const r = Oe(n, t);
9812
9812
  return !r || r.type === "element" && (r.tagName === "td" || r.tagName === "th");
9813
9813
  }
9814
9814
  const gm = La({
@@ -9819,7 +9819,7 @@ const gm = La({
9819
9819
  tbody: Cm
9820
9820
  });
9821
9821
  function ym(e) {
9822
- const t = Ae(e, -1);
9822
+ const t = Oe(e, -1);
9823
9823
  return !t || t.type !== "comment";
9824
9824
  }
9825
9825
  function bm(e) {
@@ -9833,15 +9833,15 @@ function bm(e) {
9833
9833
  return !n || n.type === "element";
9834
9834
  }
9835
9835
  function xm(e) {
9836
- const t = Ae(e, -1, !0);
9836
+ const t = Oe(e, -1, !0);
9837
9837
  return !t || t.type !== "comment" && !(t.type === "text" && si(t.value.charAt(0))) && !(t.type === "element" && (t.tagName === "meta" || t.tagName === "link" || t.tagName === "script" || t.tagName === "style" || t.tagName === "template"));
9838
9838
  }
9839
9839
  function Sm(e, t, n) {
9840
- const r = Na(n, t), o = Ae(e, -1, !0);
9840
+ const r = Na(n, t), o = Oe(e, -1, !0);
9841
9841
  return n && r && r.type === "element" && r.tagName === "colgroup" && ai(r, n.children.indexOf(r), n) ? !1 : !!(o && o.type === "element" && o.tagName === "col");
9842
9842
  }
9843
9843
  function Cm(e, t, n) {
9844
- const r = Na(n, t), o = Ae(e, -1);
9844
+ const r = Na(n, t), o = Oe(e, -1);
9845
9845
  return n && r && r.type === "element" && (r.tagName === "thead" || r.tagName === "tbody") && ai(r, n.children.indexOf(r), n) ? !1 : !!(o && o.type === "element" && o.tagName === "tr");
9846
9846
  }
9847
9847
  const nr = {
@@ -10641,14 +10641,14 @@ function kr(e, t, n, r, o) {
10641
10641
  o.includeExplanation && (b = t.tokenizeLine(f, c), x = b.tokens, S = 0);
10642
10642
  const C = t.tokenizeLine2(f, c, a), v = C.tokens.length / 2;
10643
10643
  for (let w = 0; w < v; w++) {
10644
- const P = C.tokens[2 * w], N = w + 1 < v ? C.tokens[2 * w + 2] : f.length;
10645
- if (P === N)
10644
+ const P = C.tokens[2 * w], M = w + 1 < v ? C.tokens[2 * w + 2] : f.length;
10645
+ if (P === M)
10646
10646
  continue;
10647
10647
  const V = C.tokens[2 * w + 1], F = Lt(
10648
10648
  r[dn.getForeground(V)],
10649
10649
  i
10650
10650
  ), g = dn.getFontStyle(V), R = {
10651
- content: f.substring(P, N),
10651
+ content: f.substring(P, M),
10652
10652
  offset: y + P,
10653
10653
  color: F,
10654
10654
  fontStyle: g
@@ -10674,13 +10674,13 @@ function kr(e, t, n, r, o) {
10674
10674
  });
10675
10675
  }
10676
10676
  R.explanation = [];
10677
- let $ = 0;
10678
- for (; P + $ < N; ) {
10677
+ let D = 0;
10678
+ for (; P + D < M; ) {
10679
10679
  const j = x[S], K = f.substring(
10680
10680
  j.startIndex,
10681
10681
  j.endIndex
10682
10682
  );
10683
- $ += K.length, R.explanation.push({
10683
+ D += K.length, R.explanation.push({
10684
10684
  content: K,
10685
10685
  scopes: o.includeExplanation === "scopeName" ? tf(
10686
10686
  j.scopes
@@ -12037,7 +12037,7 @@ async function Ft(e, t) {
12037
12037
  theme: qa
12038
12038
  });
12039
12039
  }
12040
- const Re = Rt(Ds)({
12040
+ const _e = Rt(Ds)({
12041
12041
  display: "flex",
12042
12042
  flexDirection: "column",
12043
12043
  height: "100%"
@@ -12071,7 +12071,7 @@ Rt("div")({
12071
12071
  height: "100%",
12072
12072
  flex: "0 0 auto"
12073
12073
  });
12074
- const kf = _e([/* @__PURE__ */ d("path", {
12074
+ const kf = Ae([/* @__PURE__ */ d("path", {
12075
12075
  d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H5V5h14z"
12076
12076
  }, "0"), /* @__PURE__ */ d("path", {
12077
12077
  d: "M7 12h2v5H7zm8-5h2v10h-2zm-4 7h2v3h-2zm0-4h2v2h-2z"
@@ -12083,7 +12083,7 @@ const kf = _e([/* @__PURE__ */ d("path", {
12083
12083
  versionId: n,
12084
12084
  children: r
12085
12085
  }) => /* @__PURE__ */ d(Ka.Provider, { value: { projectName: e, packageName: t, versionId: n }, children: r });
12086
- function tt() {
12086
+ function nt() {
12087
12087
  const e = _r(Ka);
12088
12088
  if (!e)
12089
12089
  throw new Error("usePackage must be used within a PackageProvider");
@@ -12091,8 +12091,8 @@ function tt() {
12091
12091
  }
12092
12092
  function je({ error: e, context: t }) {
12093
12093
  const n = e.data?.message || "Unknown Error";
12094
- return /* @__PURE__ */ I(xe, { children: [
12095
- t && /* @__PURE__ */ d(D, { variant: "body2", sx: { p: "10px", m: "auto" }, children: t }),
12094
+ return /* @__PURE__ */ k(xe, { children: [
12095
+ t && /* @__PURE__ */ d(N, { variant: "body2", sx: { p: "10px", m: "auto" }, children: t }),
12096
12096
  /* @__PURE__ */ d(
12097
12097
  "pre",
12098
12098
  {
@@ -12116,7 +12116,7 @@ function ze({
12116
12116
  spacing: i = 2,
12117
12117
  textVariant: s = "body2"
12118
12118
  }) {
12119
- const a = /* @__PURE__ */ I(
12119
+ const a = /* @__PURE__ */ k(
12120
12120
  Z,
12121
12121
  {
12122
12122
  sx: {
@@ -12127,7 +12127,7 @@ function ze({
12127
12127
  },
12128
12128
  children: [
12129
12129
  /* @__PURE__ */ d(ec, { size: t, color: n, thickness: r }),
12130
- e && /* @__PURE__ */ d(D, { variant: s, color: "text.secondary", children: e })
12130
+ e && /* @__PURE__ */ d(N, { variant: s, color: "text.secondary", children: e })
12131
12131
  ]
12132
12132
  }
12133
12133
  );
@@ -12226,7 +12226,7 @@ function Pf({
12226
12226
  sourceName: n,
12227
12227
  queryName: r
12228
12228
  }) {
12229
- const { projectName: o, packageName: i, versionId: s } = tt(), { data: a, isSuccess: l, isError: c, error: u } = Ve({
12229
+ const { projectName: o, packageName: i, versionId: s } = nt(), { data: a, isSuccess: l, isError: c, error: u } = Ve({
12230
12230
  queryKey: [
12231
12231
  "queryResult",
12232
12232
  o,
@@ -12248,7 +12248,7 @@ function Pf({
12248
12248
  p
12249
12249
  )
12250
12250
  });
12251
- return /* @__PURE__ */ I(xe, { children: [
12251
+ return /* @__PURE__ */ k(xe, { children: [
12252
12252
  !l && !c && /* @__PURE__ */ d(ze, { text: "Fetching Query Results..." }),
12253
12253
  l && /* @__PURE__ */ d(Ls, { fallback: /* @__PURE__ */ d("div", { children: "Loading..." }), children: /* @__PURE__ */ d(Ef, { result: a.data.result }) }),
12254
12254
  c && /* @__PURE__ */ d(
@@ -12292,7 +12292,7 @@ function _f({
12292
12292
  b(C);
12293
12293
  });
12294
12294
  }
12295
- }, [l]), /* @__PURE__ */ d(xe, { children: /* @__PURE__ */ I(
12295
+ }, [l]), /* @__PURE__ */ d(xe, { children: /* @__PURE__ */ k(
12296
12296
  Rf,
12297
12297
  {
12298
12298
  variant: "outlined",
@@ -12301,8 +12301,8 @@ function _f({
12301
12301
  borderRadius: "0px"
12302
12302
  },
12303
12303
  children: [
12304
- /* @__PURE__ */ I(
12305
- $e,
12304
+ /* @__PURE__ */ k(
12305
+ Te,
12306
12306
  {
12307
12307
  sx: {
12308
12308
  display: "flex",
@@ -12312,14 +12312,14 @@ function _f({
12312
12312
  },
12313
12313
  children: [
12314
12314
  /* @__PURE__ */ d(
12315
- D,
12315
+ N,
12316
12316
  {
12317
12317
  variant: "subtitle2",
12318
12318
  sx: { mt: "auto", mb: "auto" },
12319
12319
  children: `${a ? "" : "View >"} ${n}`
12320
12320
  }
12321
12321
  ),
12322
- /* @__PURE__ */ I(Ar, { sx: { padding: "0px" }, children: [
12322
+ /* @__PURE__ */ k(Ar, { sx: { padding: "0px" }, children: [
12323
12323
  !o && /* @__PURE__ */ d(
12324
12324
  ge,
12325
12325
  {
@@ -12356,10 +12356,10 @@ function _f({
12356
12356
  ]
12357
12357
  }
12358
12358
  ),
12359
- /* @__PURE__ */ I(xt, { in: p, timeout: "auto", unmountOnExit: !0, children: [
12359
+ /* @__PURE__ */ k(xt, { in: p, timeout: "auto", unmountOnExit: !0, children: [
12360
12360
  /* @__PURE__ */ d(De, {}),
12361
- /* @__PURE__ */ I(
12362
- $e,
12361
+ /* @__PURE__ */ k(
12362
+ Te,
12363
12363
  {
12364
12364
  sx: {
12365
12365
  p: "10px",
@@ -12369,7 +12369,7 @@ function _f({
12369
12369
  },
12370
12370
  children: [
12371
12371
  /* @__PURE__ */ d(
12372
- D,
12372
+ N,
12373
12373
  {
12374
12374
  sx: {
12375
12375
  fontSize: "12px",
@@ -12401,11 +12401,11 @@ function _f({
12401
12401
  }
12402
12402
  )
12403
12403
  ] }),
12404
- /* @__PURE__ */ I(xt, { in: c, timeout: "auto", unmountOnExit: !0, children: [
12404
+ /* @__PURE__ */ k(xt, { in: c, timeout: "auto", unmountOnExit: !0, children: [
12405
12405
  /* @__PURE__ */ d(De, { sx: { mb: "4px" } }),
12406
- y && /* @__PURE__ */ I(xe, { children: [
12406
+ y && /* @__PURE__ */ k(xe, { children: [
12407
12407
  /* @__PURE__ */ d(
12408
- $e,
12408
+ Te,
12409
12409
  {
12410
12410
  sx: {
12411
12411
  borderRadius: 0,
@@ -12413,7 +12413,7 @@ function _f({
12413
12413
  justifyContent: "space-between"
12414
12414
  },
12415
12415
  children: /* @__PURE__ */ d(
12416
- D,
12416
+ N,
12417
12417
  {
12418
12418
  fontSize: "12px",
12419
12419
  sx: {
@@ -12496,7 +12496,7 @@ const Df = new ia(new Be()), Bf = ce($s)(({ theme: e }) => ({
12496
12496
  gap: e.spacing(0.5),
12497
12497
  borderBottom: `1px solid ${e.palette.divider}`,
12498
12498
  minHeight: 36
12499
- })), jf = ce(nt)(
12499
+ })), jf = ce(Ze)(
12500
12500
  ({ theme: e, selected: t }) => ({
12501
12501
  minHeight: 36,
12502
12502
  padding: e.spacing(0.5, 2),
@@ -12529,7 +12529,7 @@ function Ya({
12529
12529
  );
12530
12530
  return O.useEffect(() => {
12531
12531
  o && o(i);
12532
- }, [i, o]), /* @__PURE__ */ I(Re, { variant: "outlined", children: [
12532
+ }, [i, o]), /* @__PURE__ */ k(_e, { variant: "outlined", children: [
12533
12533
  /* @__PURE__ */ d(qe, { children: /* @__PURE__ */ d(
12534
12534
  Ti,
12535
12535
  {
@@ -12548,7 +12548,7 @@ function Ya({
12548
12548
  )) })
12549
12549
  }
12550
12550
  ) }),
12551
- /* @__PURE__ */ d(qr, { children: /* @__PURE__ */ I(Ti, { spacing: 2, component: "section", children: [
12551
+ /* @__PURE__ */ d(qr, { children: /* @__PURE__ */ k(Ti, { spacing: 2, component: "section", children: [
12552
12552
  /* @__PURE__ */ d(
12553
12553
  Xa,
12554
12554
  {
@@ -12581,7 +12581,7 @@ function Xa({
12581
12581
  O.useEffect(() => {
12582
12582
  t && t(r);
12583
12583
  }, [t, r]);
12584
- const { projectName: a, packageName: l, versionId: c } = tt(), u = If({
12584
+ const { projectName: a, packageName: l, versionId: c } = nt(), u = If({
12585
12585
  mutationFn: (f, y) => {
12586
12586
  const b = new dc.ASTQuery({
12587
12587
  source: e.sourceInfo,
@@ -12642,7 +12642,7 @@ function Xa({
12642
12642
  flexDirection: "column",
12643
12643
  height: "100%"
12644
12644
  },
12645
- children: /* @__PURE__ */ I(
12645
+ children: /* @__PURE__ */ k(
12646
12646
  "div",
12647
12647
  {
12648
12648
  style: {
@@ -12719,7 +12719,7 @@ function y0({
12719
12719
  expandEmbeddings: r,
12720
12720
  hideEmbeddingIcons: o
12721
12721
  }) {
12722
- const [i, s] = O.useState(!1), [a, l] = O.useState(), [c, u] = O.useState(0), { projectName: p, packageName: m, versionId: h } = tt(), f = Ff(e);
12722
+ const [i, s] = O.useState(!1), [a, l] = O.useState(), [c, u] = O.useState(0), { projectName: p, packageName: m, versionId: h } = nt(), f = Ff(e);
12723
12723
  Tt(() => {
12724
12724
  Ft(f, "typescript").then((C) => {
12725
12725
  l(C);
@@ -12741,10 +12741,10 @@ function y0({
12741
12741
  error: S,
12742
12742
  context: `${m} > ${e}`
12743
12743
  }
12744
- )) : /* @__PURE__ */ I(Re, { variant: "outlined", children: [
12745
- /* @__PURE__ */ I(qe, { children: [
12746
- /* @__PURE__ */ I(
12747
- $e,
12744
+ )) : /* @__PURE__ */ k(_e, { variant: "outlined", children: [
12745
+ /* @__PURE__ */ k(qe, { children: [
12746
+ /* @__PURE__ */ k(
12747
+ Te,
12748
12748
  {
12749
12749
  sx: {
12750
12750
  flexDirection: "row",
@@ -12810,10 +12810,10 @@ function y0({
12810
12810
  ]
12811
12811
  }
12812
12812
  ),
12813
- /* @__PURE__ */ I(xt, { in: i, timeout: "auto", unmountOnExit: !0, children: [
12813
+ /* @__PURE__ */ k(xt, { in: i, timeout: "auto", unmountOnExit: !0, children: [
12814
12814
  /* @__PURE__ */ d(De, {}),
12815
- /* @__PURE__ */ I(
12816
- $e,
12815
+ /* @__PURE__ */ k(
12816
+ Te,
12817
12817
  {
12818
12818
  sx: {
12819
12819
  p: "10px",
@@ -12823,7 +12823,7 @@ function y0({
12823
12823
  },
12824
12824
  children: [
12825
12825
  /* @__PURE__ */ d(
12826
- D,
12826
+ N,
12827
12827
  {
12828
12828
  sx: {
12829
12829
  fontSize: "12px",
@@ -12855,7 +12855,7 @@ function y0({
12855
12855
  ] }),
12856
12856
  /* @__PURE__ */ d(De, {})
12857
12857
  ] }),
12858
- /* @__PURE__ */ d(qr, { children: /* @__PURE__ */ I($e, { spacing: 2, component: "section", children: [
12858
+ /* @__PURE__ */ d(qr, { children: /* @__PURE__ */ k(Te, { spacing: 2, component: "section", children: [
12859
12859
  Array.isArray(y.sourceInfos) && y.sourceInfos.length > 0 && /* @__PURE__ */ d(
12860
12860
  Xa,
12861
12861
  {
@@ -12867,14 +12867,14 @@ function y0({
12867
12867
  }
12868
12868
  }
12869
12869
  ),
12870
- y.queries?.length > 0 && /* @__PURE__ */ I(
12871
- Re,
12870
+ y.queries?.length > 0 && /* @__PURE__ */ k(
12871
+ _e,
12872
12872
  {
12873
12873
  variant: "outlined",
12874
12874
  sx: { padding: "0px 10px 0px 10px" },
12875
12875
  children: [
12876
- /* @__PURE__ */ d(qe, { sx: { p: "10px" }, children: /* @__PURE__ */ d(D, { variant: "subtitle1", children: "Named Queries" }) }),
12877
- /* @__PURE__ */ d($e, { spacing: 1, component: "section", children: y.queries.map((C) => /* @__PURE__ */ d(
12876
+ /* @__PURE__ */ d(qe, { sx: { p: "10px" }, children: /* @__PURE__ */ d(N, { variant: "subtitle1", children: "Named Queries" }) }),
12877
+ /* @__PURE__ */ d(Te, { spacing: 1, component: "section", children: y.queries.map((C) => /* @__PURE__ */ d(
12878
12878
  _f,
12879
12879
  {
12880
12880
  modelPath: e,
@@ -12902,7 +12902,7 @@ function Ff(e) {
12902
12902
  accessToken={accessToken}
12903
12903
  />`;
12904
12904
  }
12905
- const Ja = _e(/* @__PURE__ */ d("path", {
12905
+ const Ja = Ae(/* @__PURE__ */ d("path", {
12906
12906
  d: "M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z"
12907
12907
  })), zf = Ms(() => import("./RenderedResult-DXlUZo0k.js"));
12908
12908
  function Za({
@@ -12938,7 +12938,7 @@ function Za({
12938
12938
  minHeight: `${p}px`,
12939
12939
  height: "100%"
12940
12940
  } : { height: "100%" };
12941
- return /* @__PURE__ */ d(xe, { children: /* @__PURE__ */ I(
12941
+ return /* @__PURE__ */ d(xe, { children: /* @__PURE__ */ k(
12942
12942
  Z,
12943
12943
  {
12944
12944
  ref: u,
@@ -13037,88 +13037,95 @@ function Hf({
13037
13037
  Ft(n, "typescript").then((x) => {
13038
13038
  f(x);
13039
13039
  });
13040
- }, [n]), e.type === "markdown" && /* @__PURE__ */ d(Re, { variant: "outlined", children: /* @__PURE__ */ d(qe, { children: /* @__PURE__ */ d(Uo, { children: e.text }) }) }) || e.type === "code" && /* @__PURE__ */ I(Re, { variant: "outlined", sx: { height: "auto" }, children: [
13041
- (!o || !s && e.result) && /* @__PURE__ */ d(
13042
- $e,
13040
+ }, [n]), e.type === "markdown" && /* @__PURE__ */ d(_e, { variant: "outlined", children: /* @__PURE__ */ d(qe, { children: /* @__PURE__ */ d(Uo, { children: e.text }) }) }) || e.type === "code" && /* @__PURE__ */ k(_e, { variant: "outlined", sx: { height: "auto" }, children: [
13041
+ (!o || !s && e.result) && /* @__PURE__ */ k(
13042
+ Te,
13043
13043
  {
13044
13044
  sx: {
13045
13045
  flexDirection: "row",
13046
- justifyContent: "right"
13046
+ justifyContent: "space-between",
13047
+ ml: "8px"
13047
13048
  },
13048
- children: /* @__PURE__ */ I(
13049
- Ar,
13050
- {
13051
- sx: {
13052
- padding: "0px 8px 0px 8px",
13053
- mb: "auto",
13054
- mt: "auto"
13055
- },
13056
- children: [
13057
- e.newSources && e.newSources.length > 0 && /* @__PURE__ */ d(ge, { title: "Explore Data Sources", children: /* @__PURE__ */ d(
13058
- he,
13059
- {
13060
- size: "small",
13061
- onClick: () => {
13062
- b(!y), u(!1), l(!1);
13063
- },
13064
- children: /* @__PURE__ */ d(
13065
- "svg",
13066
- {
13067
- width: "24",
13068
- height: "24",
13069
- viewBox: "0 0 24 24",
13070
- fill: "none",
13071
- xmlns: "http://www.w3.org/2000/svg",
13072
- children: /* @__PURE__ */ d(
13073
- "path",
13074
- {
13075
- d: "M3 3h18v18H3V3zm2 2v14h14V5H5zm2 2h10v2H7V7zm0 4h10v2H7v-2zm0 4h10v2H7v-2z",
13076
- fill: "currentColor"
13077
- }
13078
- )
13079
- }
13080
- )
13081
- }
13082
- ) }),
13083
- !o && /* @__PURE__ */ d(
13084
- ge,
13085
- {
13086
- title: a ? "Hide Code" : "View Code",
13087
- children: /* @__PURE__ */ d(
13088
- he,
13089
- {
13090
- size: "small",
13091
- onClick: () => {
13092
- l(!a);
13093
- },
13094
- children: /* @__PURE__ */ d(Ja, {})
13095
- }
13096
- )
13097
- }
13098
- ),
13099
- !s && e.result && /* @__PURE__ */ d(
13100
- ge,
13101
- {
13102
- title: c ? "Hide Embedding" : "View Embedding",
13103
- children: /* @__PURE__ */ d(
13104
- he,
13105
- {
13106
- size: "small",
13107
- onClick: () => {
13108
- u(!c);
13109
- },
13110
- children: /* @__PURE__ */ d(Fn, {})
13111
- }
13112
- )
13113
- }
13114
- )
13115
- ]
13116
- }
13117
- )
13049
+ children: [
13050
+ /* @__PURE__ */ k(Te, { sx: { flexDirection: "row" }, children: [
13051
+ e.newSources && e.newSources.length > 0 && /* @__PURE__ */ d(N, { variant: "overline", children: /* @__PURE__ */ d("b", { children: "Data source" }) }),
13052
+ e.result && /* @__PURE__ */ d(N, { variant: "overline", fontWeight: "bold", children: "Results" })
13053
+ ] }),
13054
+ /* @__PURE__ */ d(Te, { sx: { flexDirection: "row" }, children: /* @__PURE__ */ k(
13055
+ Ar,
13056
+ {
13057
+ sx: {
13058
+ padding: "0px 8px 0px 8px",
13059
+ mb: "auto",
13060
+ mt: "auto"
13061
+ },
13062
+ children: [
13063
+ e.newSources && e.newSources.length > 0 && /* @__PURE__ */ d(ge, { title: "Explore Data Sources", children: /* @__PURE__ */ d(
13064
+ he,
13065
+ {
13066
+ size: "small",
13067
+ onClick: () => {
13068
+ b(!y), u(!1), l(!1);
13069
+ },
13070
+ children: /* @__PURE__ */ d(
13071
+ "svg",
13072
+ {
13073
+ width: "24",
13074
+ height: "24",
13075
+ viewBox: "0 0 24 24",
13076
+ fill: "none",
13077
+ xmlns: "http://www.w3.org/2000/svg",
13078
+ children: /* @__PURE__ */ d(
13079
+ "path",
13080
+ {
13081
+ d: "M3 3h18v18H3V3zm2 2v14h14V5H5zm2 2h10v2H7V7zm0 4h10v2H7v-2zm0 4h10v2H7v-2z",
13082
+ fill: "currentColor"
13083
+ }
13084
+ )
13085
+ }
13086
+ )
13087
+ }
13088
+ ) }),
13089
+ !o && /* @__PURE__ */ d(
13090
+ ge,
13091
+ {
13092
+ title: a ? "Hide Code" : "View Code",
13093
+ children: /* @__PURE__ */ d(
13094
+ he,
13095
+ {
13096
+ size: "small",
13097
+ onClick: () => {
13098
+ l(!a);
13099
+ },
13100
+ children: /* @__PURE__ */ d(Ja, {})
13101
+ }
13102
+ )
13103
+ }
13104
+ ),
13105
+ !s && e.result && /* @__PURE__ */ d(
13106
+ ge,
13107
+ {
13108
+ title: c ? "Hide Embedding" : "View Embedding",
13109
+ children: /* @__PURE__ */ d(
13110
+ he,
13111
+ {
13112
+ size: "small",
13113
+ onClick: () => {
13114
+ u(!c);
13115
+ },
13116
+ children: /* @__PURE__ */ d(Fn, {})
13117
+ }
13118
+ )
13119
+ }
13120
+ )
13121
+ ]
13122
+ }
13123
+ ) })
13124
+ ]
13118
13125
  }
13119
13126
  ),
13120
- /* @__PURE__ */ d(xt, { in: c, timeout: "auto", unmountOnExit: !0, children: /* @__PURE__ */ I(
13121
- $e,
13127
+ /* @__PURE__ */ d(xt, { in: c, timeout: "auto", unmountOnExit: !0, children: /* @__PURE__ */ k(
13128
+ Te,
13122
13129
  {
13123
13130
  sx: {
13124
13131
  p: "8px",
@@ -13128,7 +13135,7 @@ function Hf({
13128
13135
  },
13129
13136
  children: [
13130
13137
  /* @__PURE__ */ d(
13131
- D,
13138
+ N,
13132
13139
  {
13133
13140
  component: "div",
13134
13141
  sx: {
@@ -13155,10 +13162,10 @@ function Hf({
13155
13162
  ]
13156
13163
  }
13157
13164
  ) }),
13158
- /* @__PURE__ */ I(xt, { in: a, timeout: "auto", unmountOnExit: !0, children: [
13165
+ /* @__PURE__ */ k(xt, { in: a, timeout: "auto", unmountOnExit: !0, children: [
13159
13166
  /* @__PURE__ */ d("style", { children: Uf }),
13160
13167
  /* @__PURE__ */ d(
13161
- $e,
13168
+ Te,
13162
13169
  {
13163
13170
  sx: {
13164
13171
  mx: "8px",
@@ -13219,7 +13226,7 @@ function Wf({
13219
13226
  expandEmbeddings: r,
13220
13227
  hideEmbeddingIcons: o
13221
13228
  }) {
13222
- const [i, s] = O.useState(!1), [a, l] = O.useState(), { projectName: c, packageName: u, versionId: p } = tt(), m = Kf(e, !0);
13229
+ const [i, s] = O.useState(!1), [a, l] = O.useState(), { projectName: c, packageName: u, versionId: p } = nt(), m = Kf(e, !0);
13223
13230
  Tt(() => {
13224
13231
  Ft(m, "typescript").then((x) => {
13225
13232
  l(x);
@@ -13240,17 +13247,17 @@ function Wf({
13240
13247
  x
13241
13248
  )).data
13242
13249
  });
13243
- return /* @__PURE__ */ I(Re, { variant: "outlined", children: [
13244
- /* @__PURE__ */ I(qe, { children: [
13245
- /* @__PURE__ */ I(
13246
- $e,
13250
+ return /* @__PURE__ */ k(_e, { variant: "outlined", children: [
13251
+ /* @__PURE__ */ k(qe, { children: [
13252
+ /* @__PURE__ */ k(
13253
+ Te,
13247
13254
  {
13248
13255
  sx: {
13249
13256
  flexDirection: "row",
13250
13257
  justifyContent: "space-between"
13251
13258
  },
13252
13259
  children: [
13253
- /* @__PURE__ */ d(D, { variant: "overline", fontWeight: "bold", children: "Notebook" }),
13260
+ /* @__PURE__ */ d(N, { variant: "overline", fontWeight: "bold", children: "Notebook" }),
13254
13261
  !o && /* @__PURE__ */ d(
13255
13262
  Ar,
13256
13263
  {
@@ -13280,8 +13287,8 @@ function Wf({
13280
13287
  ]
13281
13288
  }
13282
13289
  ),
13283
- /* @__PURE__ */ d(xt, { in: i, timeout: "auto", unmountOnExit: !0, children: /* @__PURE__ */ I(
13284
- $e,
13290
+ /* @__PURE__ */ d(xt, { in: i, timeout: "auto", unmountOnExit: !0, children: /* @__PURE__ */ k(
13291
+ Te,
13285
13292
  {
13286
13293
  sx: {
13287
13294
  borderRadius: 0,
@@ -13290,7 +13297,7 @@ function Wf({
13290
13297
  },
13291
13298
  children: [
13292
13299
  /* @__PURE__ */ d(
13293
- D,
13300
+ N,
13294
13301
  {
13295
13302
  sx: {
13296
13303
  fontSize: "12px",
@@ -13320,7 +13327,7 @@ function Wf({
13320
13327
  }
13321
13328
  ) })
13322
13329
  ] }),
13323
- /* @__PURE__ */ d(qr, { children: /* @__PURE__ */ I($e, { spacing: 2, component: "section", children: [
13330
+ /* @__PURE__ */ d(qr, { children: /* @__PURE__ */ k(Te, { spacing: 2, component: "section", children: [
13324
13331
  !f && !y && /* @__PURE__ */ d(ze, { text: "Fetching Notebook..." }),
13325
13332
  f && h.notebookCells?.map((x, S) => /* @__PURE__ */ d(
13326
13333
  Hf,
@@ -13338,7 +13345,7 @@ function Wf({
13338
13345
  },
13339
13346
  S
13340
13347
  )),
13341
- y && b.status === 404 && /* @__PURE__ */ I(D, { variant: "body2", children: [
13348
+ y && b.status === 404 && /* @__PURE__ */ k(N, { variant: "body2", children: [
13342
13349
  /* @__PURE__ */ d("code", { children: `${c} > ${u} > ${e}` }),
13343
13350
  " ",
13344
13351
  "not found."
@@ -13406,7 +13413,7 @@ class Qf {
13406
13413
  localStorage.setItem(i, s), localStorage.removeItem(o);
13407
13414
  }
13408
13415
  }
13409
- const Yf = _e(/* @__PURE__ */ d("path", {
13416
+ const Yf = Ae(/* @__PURE__ */ d("path", {
13410
13417
  d: "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"
13411
13418
  })), Yt = Ql({
13412
13419
  createStyledComponent: ce("div", {
@@ -13557,11 +13564,11 @@ import {${t.sourceName}}" from '${t.modelPath}'"
13557
13564
  return new Tn(t, n, o);
13558
13565
  }
13559
13566
  }
13560
- const tl = _e(/* @__PURE__ */ d("path", {
13567
+ const tl = Ae(/* @__PURE__ */ d("path", {
13561
13568
  d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"
13562
13569
  })), Xf = new ra(new Be());
13563
13570
  function Jf() {
13564
- const { projectName: e, packageName: t, versionId: n } = tt(), { data: r, isSuccess: o, isError: i, error: s } = Ve({
13571
+ const { projectName: e, packageName: t, versionId: n } = nt(), { data: r, isSuccess: o, isError: i, error: s } = Ve({
13565
13572
  queryKey: ["package", e, t, n],
13566
13573
  queryFn: (a) => Xf.getPackage(
13567
13574
  e,
@@ -13571,8 +13578,8 @@ function Jf() {
13571
13578
  a
13572
13579
  )
13573
13580
  });
13574
- return /* @__PURE__ */ d(Re, { variant: "outlined", sx: { width: "100%" }, children: /* @__PURE__ */ I(qe, { children: [
13575
- /* @__PURE__ */ d(D, { variant: "overline", fontWeight: "bold", children: "Package Config" }),
13581
+ return /* @__PURE__ */ d(_e, { variant: "outlined", sx: { width: "100%" }, children: /* @__PURE__ */ k(qe, { children: [
13582
+ /* @__PURE__ */ d(N, { variant: "overline", fontWeight: "bold", children: "Package Config" }),
13576
13583
  /* @__PURE__ */ d(De, {}),
13577
13584
  /* @__PURE__ */ d(
13578
13585
  Z,
@@ -13581,7 +13588,7 @@ function Jf() {
13581
13588
  maxHeight: "200px",
13582
13589
  overflowY: "auto"
13583
13590
  },
13584
- children: /* @__PURE__ */ I(Or, { dense: !0, disablePadding: !0, children: [
13591
+ children: /* @__PURE__ */ k(Or, { dense: !0, disablePadding: !0, children: [
13585
13592
  /* @__PURE__ */ d(Zt, { dense: !0, disablePadding: !0, children: /* @__PURE__ */ d(
13586
13593
  St,
13587
13594
  {
@@ -13600,7 +13607,7 @@ function Jf() {
13600
13607
  },
13601
13608
  secondary: r.data.description
13602
13609
  }
13603
- ) }) || /* @__PURE__ */ I(
13610
+ ) }) || /* @__PURE__ */ k(
13604
13611
  Zt,
13605
13612
  {
13606
13613
  disablePadding: !0,
@@ -13634,20 +13641,20 @@ function Jf() {
13634
13641
  }
13635
13642
  const Zf = new ta(new Be());
13636
13643
  function eg({ connection: e }) {
13637
- return /* @__PURE__ */ I(at, { children: [
13638
- /* @__PURE__ */ d(ne, { children: /* @__PURE__ */ d(D, { variant: "body2", children: e.name }) }),
13639
- /* @__PURE__ */ d(ne, { children: /* @__PURE__ */ d(D, { variant: "body2", children: e.type }) })
13644
+ return /* @__PURE__ */ k(at, { children: [
13645
+ /* @__PURE__ */ d(ne, { children: /* @__PURE__ */ d(N, { variant: "body2", children: e.name }) }),
13646
+ /* @__PURE__ */ d(ne, { children: /* @__PURE__ */ d(N, { variant: "body2", children: e.type }) })
13640
13647
  ] }, e.name);
13641
13648
  }
13642
13649
  function tg() {
13643
- const { projectName: e } = tt(), { data: t, isSuccess: n, isError: r, error: o } = Ve({
13650
+ const { projectName: e } = nt(), { data: t, isSuccess: n, isError: r, error: o } = Ve({
13644
13651
  queryKey: ["connections", e],
13645
13652
  queryFn: (i) => Zf.listConnections(e, i)
13646
13653
  });
13647
- return /* @__PURE__ */ d(Re, { variant: "outlined", sx: { width: "100%" }, children: /* @__PURE__ */ I(qe, { children: [
13648
- /* @__PURE__ */ d(D, { variant: "overline", fontWeight: "bold", children: "Database Connections" }),
13654
+ return /* @__PURE__ */ d(_e, { variant: "outlined", sx: { width: "100%" }, children: /* @__PURE__ */ k(qe, { children: [
13655
+ /* @__PURE__ */ d(N, { variant: "overline", fontWeight: "bold", children: "Database Connections" }),
13649
13656
  /* @__PURE__ */ d(De, {}),
13650
- /* @__PURE__ */ I(
13657
+ /* @__PURE__ */ k(
13651
13658
  Z,
13652
13659
  {
13653
13660
  sx: {
@@ -13655,15 +13662,15 @@ function tg() {
13655
13662
  overflowY: "auto"
13656
13663
  },
13657
13664
  children: [
13658
- !n && !r && /* @__PURE__ */ d(D, { variant: "body2", sx: { m: "auto" }, children: "Fetching Connections..." }),
13659
- n && t.data.length > 0 && /* @__PURE__ */ d(Pn, { size: "small", children: /* @__PURE__ */ I(Rn, { children: [
13660
- /* @__PURE__ */ I(at, { children: [
13661
- /* @__PURE__ */ d(ne, { children: /* @__PURE__ */ d(D, { variant: "subtitle2", fontWeight: "bold", children: "Connection Name" }) }),
13662
- /* @__PURE__ */ d(ne, { children: /* @__PURE__ */ d(D, { variant: "subtitle2", fontWeight: "bold", children: "Type" }) })
13665
+ !n && !r && /* @__PURE__ */ d(N, { variant: "body2", sx: { m: "auto" }, children: "Fetching Connections..." }),
13666
+ n && t.data.length > 0 && /* @__PURE__ */ d(Pn, { size: "small", children: /* @__PURE__ */ k(Rn, { children: [
13667
+ /* @__PURE__ */ k(at, { children: [
13668
+ /* @__PURE__ */ d(ne, { children: /* @__PURE__ */ d(N, { variant: "subtitle2", fontWeight: "bold", children: "Connection Name" }) }),
13669
+ /* @__PURE__ */ d(ne, { children: /* @__PURE__ */ d(N, { variant: "subtitle2", fontWeight: "bold", children: "Type" }) })
13663
13670
  ] }),
13664
13671
  t.data.map((i) => /* @__PURE__ */ d(eg, { connection: i }, i.name))
13665
13672
  ] }) }),
13666
- n && t.data.length === 0 && /* @__PURE__ */ d(D, { variant: "body2", children: "No Connections" }),
13673
+ n && t.data.length === 0 && /* @__PURE__ */ d(N, { variant: "body2", children: "No Connections" }),
13667
13674
  r && /* @__PURE__ */ d(
13668
13675
  je,
13669
13676
  {
@@ -13678,7 +13685,7 @@ function tg() {
13678
13685
  }
13679
13686
  const ng = new np(new Be());
13680
13687
  function rg() {
13681
- const { projectName: e, packageName: t, versionId: n } = tt(), [r, o] = O.useState(!1), [i, s] = O.useState(null), a = (f) => {
13688
+ const { projectName: e, packageName: t, versionId: n } = nt(), [r, o] = O.useState(!1), [i, s] = O.useState(null), a = (f) => {
13682
13689
  s(f), o(!0);
13683
13690
  }, l = () => {
13684
13691
  o(!1), s(null);
@@ -13691,11 +13698,11 @@ function rg() {
13691
13698
  f
13692
13699
  )
13693
13700
  }), 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`;
13694
- return /* @__PURE__ */ I(xe, { children: [
13695
- /* @__PURE__ */ d(Re, { variant: "outlined", sx: { width: "100%" }, children: /* @__PURE__ */ I(qe, { children: [
13696
- /* @__PURE__ */ d(D, { variant: "overline", fontWeight: "bold", children: "Embedded Databases" }),
13701
+ return /* @__PURE__ */ k(xe, { children: [
13702
+ /* @__PURE__ */ d(_e, { variant: "outlined", sx: { width: "100%" }, children: /* @__PURE__ */ k(qe, { children: [
13703
+ /* @__PURE__ */ d(N, { variant: "overline", fontWeight: "bold", children: "Embedded Databases" }),
13697
13704
  /* @__PURE__ */ d(De, {}),
13698
- /* @__PURE__ */ I(
13705
+ /* @__PURE__ */ k(
13699
13706
  Z,
13700
13707
  {
13701
13708
  sx: {
@@ -13711,12 +13718,12 @@ function rg() {
13711
13718
  context: `${e} > ${t} > Databases`
13712
13719
  }
13713
13720
  ),
13714
- m && c.data.length > 0 && /* @__PURE__ */ I(Pn, { size: "small", children: [
13715
- /* @__PURE__ */ d(pr, { children: /* @__PURE__ */ I(at, { children: [
13721
+ m && c.data.length > 0 && /* @__PURE__ */ k(Pn, { size: "small", children: [
13722
+ /* @__PURE__ */ d(pr, { children: /* @__PURE__ */ k(at, { children: [
13716
13723
  /* @__PURE__ */ d(ne, { children: "Name" }),
13717
13724
  /* @__PURE__ */ d(ne, { align: "right", children: "Rows" })
13718
13725
  ] }) }),
13719
- /* @__PURE__ */ d(Rn, { children: c.data.map((f) => /* @__PURE__ */ I(
13726
+ /* @__PURE__ */ d(Rn, { children: c.data.map((f) => /* @__PURE__ */ k(
13720
13727
  at,
13721
13728
  {
13722
13729
  onClick: () => a(f),
@@ -13729,19 +13736,19 @@ function rg() {
13729
13736
  f.path
13730
13737
  )) })
13731
13738
  ] }),
13732
- m && c.data.length === 0 && /* @__PURE__ */ d(D, { variant: "body2", sx: { m: "auto" }, children: "No databases found" })
13739
+ m && c.data.length === 0 && /* @__PURE__ */ d(N, { variant: "body2", sx: { m: "auto" }, children: "No databases found" })
13733
13740
  ]
13734
13741
  }
13735
13742
  )
13736
13743
  ] }) }),
13737
- /* @__PURE__ */ I(sn, { open: r, onClose: l, maxWidth: "sm", fullWidth: !0, children: [
13744
+ /* @__PURE__ */ k(sn, { open: r, onClose: l, maxWidth: "sm", fullWidth: !0, children: [
13738
13745
  /* @__PURE__ */ d(an, { children: i?.path }),
13739
- /* @__PURE__ */ d(ln, { children: i?.info?.columns && /* @__PURE__ */ d(Fo, { children: /* @__PURE__ */ I(Pn, { size: "small", children: [
13740
- /* @__PURE__ */ d(pr, { children: /* @__PURE__ */ I(at, { children: [
13746
+ /* @__PURE__ */ d(ln, { children: i?.info?.columns && /* @__PURE__ */ d(Fo, { children: /* @__PURE__ */ k(Pn, { size: "small", children: [
13747
+ /* @__PURE__ */ d(pr, { children: /* @__PURE__ */ k(at, { children: [
13741
13748
  /* @__PURE__ */ d(ne, { children: "Column" }),
13742
13749
  /* @__PURE__ */ d(ne, { children: "Type" })
13743
13750
  ] }) }),
13744
- /* @__PURE__ */ d(Rn, { children: i.info.columns.map((f) => /* @__PURE__ */ I(at, { children: [
13751
+ /* @__PURE__ */ d(Rn, { children: i.info.columns.map((f) => /* @__PURE__ */ k(at, { children: [
13745
13752
  /* @__PURE__ */ d(ne, { component: "th", scope: "row", children: f.name }),
13746
13753
  /* @__PURE__ */ d(ne, { children: f.type })
13747
13754
  ] }, f.name)) })
@@ -13758,14 +13765,14 @@ function bt(e, t) {
13758
13765
  }
13759
13766
  return n;
13760
13767
  }
13761
- function M() {
13762
- return M = Object.assign ? Object.assign.bind() : function(e) {
13768
+ function L() {
13769
+ return L = Object.assign ? Object.assign.bind() : function(e) {
13763
13770
  for (var t = 1; t < arguments.length; t++) {
13764
13771
  var n = arguments[t];
13765
13772
  for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
13766
13773
  }
13767
13774
  return e;
13768
- }, M.apply(null, arguments);
13775
+ }, L.apply(null, arguments);
13769
13776
  }
13770
13777
  function Lo() {
13771
13778
  return Lo = Object.assign ? Object.assign.bind() : function(e) {
@@ -14242,19 +14249,19 @@ const mg = (e) => {
14242
14249
  ...r,
14243
14250
  orientation: x,
14244
14251
  collapsedSize: a
14245
- }, N = mg(P), V = Ld(), F = il(), g = E.useRef(null), R = E.useRef(), A = typeof a == "number" ? `${a}px` : a, $ = x === "horizontal", j = $ ? "width" : "height", K = E.useRef(null), q = gr(n, K), ae = (B) => (Me) => {
14252
+ }, M = mg(P), V = Ld(), F = il(), g = E.useRef(null), R = E.useRef(), A = typeof a == "number" ? `${a}px` : a, D = x === "horizontal", j = D ? "width" : "height", K = E.useRef(null), q = gr(n, K), ae = (B) => (Le) => {
14246
14253
  if (B) {
14247
- const Te = K.current;
14248
- Me === void 0 ? B(Te) : B(Te, Me);
14254
+ const Pe = K.current;
14255
+ Le === void 0 ? B(Pe) : B(Pe, Le);
14249
14256
  }
14250
- }, le = () => g.current ? g.current[$ ? "clientWidth" : "clientHeight"] : 0, H = ae((B, Me) => {
14251
- g.current && $ && (g.current.style.position = "absolute"), B.style[j] = A, p && p(B, Me);
14252
- }), Y = ae((B, Me) => {
14253
- const Te = le();
14254
- g.current && $ && (g.current.style.position = "");
14257
+ }, le = () => g.current ? g.current[D ? "clientWidth" : "clientHeight"] : 0, H = ae((B, Le) => {
14258
+ g.current && D && (g.current.style.position = "absolute"), B.style[j] = A, p && p(B, Le);
14259
+ }), Y = ae((B, Le) => {
14260
+ const Pe = le();
14261
+ g.current && D && (g.current.style.position = "");
14255
14262
  const {
14256
14263
  duration: Ke,
14257
- easing: L
14264
+ easing: $
14258
14265
  } = Is({
14259
14266
  style: S,
14260
14267
  timeout: C,
@@ -14263,18 +14270,18 @@ const mg = (e) => {
14263
14270
  mode: "enter"
14264
14271
  });
14265
14272
  if (C === "auto") {
14266
- const _ = V.transitions.getAutoHeightDuration(Te);
14273
+ const _ = V.transitions.getAutoHeightDuration(Pe);
14267
14274
  B.style.transitionDuration = `${_}ms`, R.current = _;
14268
14275
  } else
14269
14276
  B.style.transitionDuration = typeof Ke == "string" ? Ke : `${Ke}ms`;
14270
- B.style[j] = `${Te}px`, B.style.transitionTimingFunction = L, h && h(B, Me);
14271
- }), G = ae((B, Me) => {
14272
- B.style[j] = "auto", m && m(B, Me);
14277
+ B.style[j] = `${Pe}px`, B.style.transitionTimingFunction = $, h && h(B, Le);
14278
+ }), G = ae((B, Le) => {
14279
+ B.style[j] = "auto", m && m(B, Le);
14273
14280
  }), Q = ae((B) => {
14274
14281
  B.style[j] = `${le()}px`, f && f(B);
14275
14282
  }), J = ae(y), fe = ae((B) => {
14276
- const Me = le(), {
14277
- duration: Te,
14283
+ const Le = le(), {
14284
+ duration: Pe,
14278
14285
  easing: Ke
14279
14286
  } = Is({
14280
14287
  style: S,
@@ -14284,10 +14291,10 @@ const mg = (e) => {
14284
14291
  mode: "exit"
14285
14292
  });
14286
14293
  if (C === "auto") {
14287
- const L = V.transitions.getAutoHeightDuration(Me);
14288
- B.style.transitionDuration = `${L}ms`, R.current = L;
14294
+ const $ = V.transitions.getAutoHeightDuration(Le);
14295
+ B.style.transitionDuration = `${$}ms`, R.current = $;
14289
14296
  } else
14290
- B.style.transitionDuration = typeof Te == "string" ? Te : `${Te}ms`;
14297
+ B.style.transitionDuration = typeof Pe == "string" ? Pe : `${Pe}ms`;
14291
14298
  B.style[j] = A, B.style.transitionTimingFunction = Ke, b && b(B);
14292
14299
  });
14293
14300
  return /* @__PURE__ */ d(v, {
@@ -14305,16 +14312,16 @@ const mg = (e) => {
14305
14312
  timeout: C === "auto" ? null : C,
14306
14313
  ...w,
14307
14314
  children: (B, {
14308
- ownerState: Me,
14309
- ...Te
14315
+ ownerState: Le,
14316
+ ...Pe
14310
14317
  }) => /* @__PURE__ */ d(fg, {
14311
14318
  as: l,
14312
- className: be(N.root, s, {
14313
- entered: N.entered,
14314
- exited: !u && A === "0px" && N.hidden
14319
+ className: be(M.root, s, {
14320
+ entered: M.entered,
14321
+ exited: !u && A === "0px" && M.hidden
14315
14322
  }[B]),
14316
14323
  style: {
14317
- [$ ? "minWidth" : "minHeight"]: A,
14324
+ [D ? "minWidth" : "minHeight"]: A,
14318
14325
  ...S
14319
14326
  },
14320
14327
  ref: q,
@@ -14322,20 +14329,20 @@ const mg = (e) => {
14322
14329
  ...P,
14323
14330
  state: B
14324
14331
  },
14325
- ...Te,
14332
+ ...Pe,
14326
14333
  children: /* @__PURE__ */ d(gg, {
14327
14334
  ownerState: {
14328
14335
  ...P,
14329
14336
  state: B
14330
14337
  },
14331
- className: N.wrapper,
14338
+ className: M.wrapper,
14332
14339
  ref: g,
14333
14340
  children: /* @__PURE__ */ d(yg, {
14334
14341
  ownerState: {
14335
14342
  ...P,
14336
14343
  state: B
14337
14344
  },
14338
- className: N.wrapperInner,
14345
+ className: M.wrapperInner,
14339
14346
  children: i
14340
14347
  })
14341
14348
  })
@@ -14545,7 +14552,7 @@ const Xe = fn("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
14545
14552
  const {
14546
14553
  pulsate: w,
14547
14554
  rippleX: P,
14548
- rippleY: N,
14555
+ rippleY: M,
14549
14556
  rippleSize: V,
14550
14557
  cb: F
14551
14558
  } = v;
@@ -14561,13 +14568,13 @@ const Xe = fn("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
14561
14568
  timeout: Bo,
14562
14569
  pulsate: w,
14563
14570
  rippleX: P,
14564
- rippleY: N,
14571
+ rippleY: M,
14565
14572
  rippleSize: V
14566
14573
  }, u.current)]), u.current += 1, p.current = F;
14567
14574
  }, [i]), x = E.useCallback((v = {}, w = {}, P = () => {
14568
14575
  }) => {
14569
14576
  const {
14570
- pulsate: N = !1,
14577
+ pulsate: M = !1,
14571
14578
  center: V = o || w.pulsate,
14572
14579
  fakeElement: F = !1
14573
14580
  // For test purposes
@@ -14583,36 +14590,36 @@ const Xe = fn("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
14583
14590
  left: 0,
14584
14591
  top: 0
14585
14592
  };
14586
- let A, $, j;
14593
+ let A, D, j;
14587
14594
  if (V || v === void 0 || v.clientX === 0 && v.clientY === 0 || !v.clientX && !v.touches)
14588
- A = Math.round(R.width / 2), $ = Math.round(R.height / 2);
14595
+ A = Math.round(R.width / 2), D = Math.round(R.height / 2);
14589
14596
  else {
14590
14597
  const {
14591
14598
  clientX: K,
14592
14599
  clientY: q
14593
14600
  } = v.touches && v.touches.length > 0 ? v.touches[0] : v;
14594
- A = Math.round(K - R.left), $ = Math.round(q - R.top);
14601
+ A = Math.round(K - R.left), D = Math.round(q - R.top);
14595
14602
  }
14596
14603
  if (V)
14597
14604
  j = Math.sqrt((2 * R.width ** 2 + R.height ** 2) / 3), j % 2 === 0 && (j += 1);
14598
14605
  else {
14599
- const K = Math.max(Math.abs((g ? g.clientWidth : 0) - A), A) * 2 + 2, q = Math.max(Math.abs((g ? g.clientHeight : 0) - $), $) * 2 + 2;
14606
+ const K = Math.max(Math.abs((g ? g.clientWidth : 0) - A), A) * 2 + 2, q = Math.max(Math.abs((g ? g.clientHeight : 0) - D), D) * 2 + 2;
14600
14607
  j = Math.sqrt(K ** 2 + q ** 2);
14601
14608
  }
14602
14609
  v?.touches ? f.current === null && (f.current = () => {
14603
14610
  b({
14604
- pulsate: N,
14611
+ pulsate: M,
14605
14612
  rippleX: A,
14606
- rippleY: $,
14613
+ rippleY: D,
14607
14614
  rippleSize: j,
14608
14615
  cb: P
14609
14616
  });
14610
14617
  }, h.start(vg, () => {
14611
14618
  f.current && (f.current(), f.current = null);
14612
14619
  })) : b({
14613
- pulsate: N,
14620
+ pulsate: M,
14614
14621
  rippleX: A,
14615
- rippleY: $,
14622
+ rippleY: D,
14616
14623
  rippleSize: j,
14617
14624
  cb: P
14618
14625
  });
@@ -14723,13 +14730,13 @@ const Ag = fn("MuiButtonBase", ["root", "disabled", "focusVisible"]), Og = (e) =
14723
14730
  onFocusVisible: v,
14724
14731
  onKeyDown: w,
14725
14732
  onKeyUp: P,
14726
- onMouseDown: N,
14733
+ onMouseDown: M,
14727
14734
  onMouseLeave: V,
14728
14735
  onMouseUp: F,
14729
14736
  onTouchEnd: g,
14730
14737
  onTouchMove: R,
14731
14738
  onTouchStart: A,
14732
- tabIndex: $ = 0,
14739
+ tabIndex: D = 0,
14733
14740
  TouchRippleProps: j,
14734
14741
  touchRippleRef: K,
14735
14742
  type: q,
@@ -14744,9 +14751,9 @@ const Ag = fn("MuiButtonBase", ["root", "disabled", "focusVisible"]), Og = (e) =
14744
14751
  E.useEffect(() => {
14745
14752
  G && m && !u && H.pulsate();
14746
14753
  }, [u, m, G, H]);
14747
- const fe = pt(H, "start", N, p), ee = pt(H, "stop", x, p), B = pt(H, "stop", S, p), Me = pt(H, "stop", F, p), Te = pt(H, "stop", (z) => {
14754
+ const fe = pt(H, "start", M, p), ee = pt(H, "stop", x, p), B = pt(H, "stop", S, p), Le = pt(H, "stop", F, p), Pe = pt(H, "stop", (z) => {
14748
14755
  G && z.preventDefault(), V && V(z);
14749
- }, p), Ke = pt(H, "start", A, p), L = pt(H, "stop", g, p), _ = pt(H, "stop", R, p), ie = pt(H, "stop", (z) => {
14756
+ }, p), Ke = pt(H, "start", A, p), $ = pt(H, "stop", g, p), _ = pt(H, "stop", R, p), ie = pt(H, "stop", (z) => {
14750
14757
  Es(z.target) || Q(!1), y && y(z);
14751
14758
  }, !1), kt = ar((z) => {
14752
14759
  le.current || (le.current = z.currentTarget), Es(z.target) && (Q(!0), v && v(z)), C && C(z);
@@ -14774,10 +14781,10 @@ const Ag = fn("MuiButtonBase", ["root", "disabled", "focusVisible"]), Og = (e) =
14774
14781
  disableRipple: u,
14775
14782
  disableTouchRipple: p,
14776
14783
  focusRipple: m,
14777
- tabIndex: $,
14784
+ tabIndex: D,
14778
14785
  focusVisible: G
14779
14786
  }, Zr = Og(qn);
14780
- return /* @__PURE__ */ I(Ng, {
14787
+ return /* @__PURE__ */ k(Ng, {
14781
14788
  as: Ht,
14782
14789
  className: be(Zr.root, a),
14783
14790
  ownerState: qn,
@@ -14788,14 +14795,14 @@ const Ag = fn("MuiButtonBase", ["root", "disabled", "focusVisible"]), Og = (e) =
14788
14795
  onKeyDown: Yr,
14789
14796
  onKeyUp: Xr,
14790
14797
  onMouseDown: fe,
14791
- onMouseLeave: Te,
14792
- onMouseUp: Me,
14798
+ onMouseLeave: Pe,
14799
+ onMouseUp: Le,
14793
14800
  onDragLeave: B,
14794
- onTouchEnd: L,
14801
+ onTouchEnd: $,
14795
14802
  onTouchMove: _,
14796
14803
  onTouchStart: Ke,
14797
14804
  ref: Jr,
14798
- tabIndex: c ? -1 : $,
14805
+ tabIndex: c ? -1 : D,
14799
14806
  type: q,
14800
14807
  ...ct,
14801
14808
  ...ae,
@@ -15011,13 +15018,13 @@ const Fg = (e) => {
15011
15018
  tabIndex: v,
15012
15019
  type: w,
15013
15020
  value: P,
15014
- slots: N = {},
15021
+ slots: M = {},
15015
15022
  slotProps: V = {},
15016
15023
  ...F
15017
15024
  } = t, [g, R] = Qd({
15018
15025
  controlled: o,
15019
15026
  default: !!s
15020
- }), A = xg(), $ = (ee) => {
15027
+ }), A = xg(), D = (ee) => {
15021
15028
  x && x(ee), A && A.onFocus && A.onFocus(ee);
15022
15029
  }, j = (ee) => {
15023
15030
  y && y(ee), A && A.onBlur && A.onBlur(ee);
@@ -15036,7 +15043,7 @@ const Fg = (e) => {
15036
15043
  disableFocusRipple: l,
15037
15044
  edge: c
15038
15045
  }, H = Fg(le), Y = {
15039
- slots: N,
15046
+ slots: M,
15040
15047
  slotProps: {
15041
15048
  input: m,
15042
15049
  ...V
@@ -15054,7 +15061,7 @@ const Fg = (e) => {
15054
15061
  getSlotProps: (ee) => ({
15055
15062
  ...ee,
15056
15063
  onFocus: (B) => {
15057
- ee.onFocus?.(B), $(B);
15064
+ ee.onFocus?.(B), D(B);
15058
15065
  },
15059
15066
  onBlur: (B) => {
15060
15067
  ee.onBlur?.(B), j(B);
@@ -15096,17 +15103,17 @@ const Fg = (e) => {
15096
15103
  }
15097
15104
  }
15098
15105
  });
15099
- return /* @__PURE__ */ I(G, {
15106
+ return /* @__PURE__ */ k(G, {
15100
15107
  ...Q,
15101
15108
  children: [/* @__PURE__ */ d(J, {
15102
15109
  ...fe
15103
15110
  }), g ? i : u]
15104
15111
  });
15105
- }), Gg = _e(/* @__PURE__ */ d("path", {
15112
+ }), Gg = Ae(/* @__PURE__ */ d("path", {
15106
15113
  d: "M19 5v14H5V5h14m0-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-2z"
15107
- })), Wg = _e(/* @__PURE__ */ d("path", {
15114
+ })), Wg = Ae(/* @__PURE__ */ d("path", {
15108
15115
  d: "M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"
15109
- })), qg = _e(/* @__PURE__ */ d("path", {
15116
+ })), qg = Ae(/* @__PURE__ */ d("path", {
15110
15117
  d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"
15111
15118
  }));
15112
15119
  function Kg(e) {
@@ -15444,14 +15451,14 @@ const Ut = () => {
15444
15451
  } : {}
15445
15452
  }
15446
15453
  };
15447
- }, Ze = ({
15454
+ }, et = ({
15448
15455
  instance: e,
15449
15456
  state: t,
15450
15457
  setState: n,
15451
15458
  params: r
15452
15459
  }) => {
15453
15460
  const o = E.useRef(t.editedItemId), i = (p) => o.current === p, s = (p) => {
15454
- n((m) => M({}, m, {
15461
+ n((m) => L({}, m, {
15455
15462
  editedItemId: p
15456
15463
  })), o.current = p;
15457
15464
  }, a = (p) => p === t.editedItemId, l = !!r.isItemEditable, c = (p) => {
@@ -15465,10 +15472,10 @@ const Ut = () => {
15465
15472
  `));
15466
15473
  n((h) => {
15467
15474
  const f = h.items.itemMetaMap[p];
15468
- return f.label !== m ? M({}, h, {
15469
- items: M({}, h.items, {
15470
- itemMetaMap: M({}, h.items.itemMetaMap, {
15471
- [p]: M({}, f, {
15475
+ return f.label !== m ? L({}, h, {
15476
+ items: L({}, h.items, {
15477
+ itemMetaMap: L({}, h.items.itemMetaMap, {
15478
+ [p]: L({}, f, {
15472
15479
  label: m
15473
15480
  })
15474
15481
  })
@@ -15490,20 +15497,20 @@ const Ut = () => {
15490
15497
  }
15491
15498
  };
15492
15499
  };
15493
- Ze.itemPlugin = sy;
15494
- Ze.getDefaultizedParams = ({
15500
+ et.itemPlugin = sy;
15501
+ et.getDefaultizedParams = ({
15495
15502
  params: e,
15496
15503
  experimentalFeatures: t
15497
15504
  }) => {
15498
15505
  const n = t?.labelEditing;
15499
- return M({}, e, {
15506
+ return L({}, e, {
15500
15507
  isItemEditable: n ? e.isItemEditable ?? !1 : !1
15501
15508
  });
15502
15509
  };
15503
- Ze.getInitialState = () => ({
15510
+ et.getInitialState = () => ({
15504
15511
  editedItemId: null
15505
15512
  });
15506
- Ze.params = {
15513
+ et.params = {
15507
15514
  onItemLabelChange: !0,
15508
15515
  isItemEditable: !0
15509
15516
  };
@@ -15552,7 +15559,7 @@ const jt = (e, t) => e.getAvailablePlugins().has(t), ul = (e) => Array.isArray(e
15552
15559
  shouldBeSelected: h.target.checked
15553
15560
  });
15554
15561
  }, c = () => {
15555
- jt(n, Ze) && n.isItemEditable(e) && (n.isItemBeingEdited(e) ? n.setEditedItemId(null) : n.setEditedItemId(e));
15562
+ jt(n, et) && n.isItemEditable(e) && (n.isItemBeingEdited(e) ? n.setEditedItemId(null) : n.setEditedItemId(e));
15556
15563
  };
15557
15564
  return {
15558
15565
  interactions: {
@@ -15561,10 +15568,10 @@ const jt = (e, t) => e.getAvailablePlugins().has(t), ul = (e) => Array.isArray(e
15561
15568
  handleCheckboxSelection: l,
15562
15569
  toggleItemEditing: c,
15563
15570
  handleSaveItemLabel: (h, f) => {
15564
- jt(n, Ze) && n.isItemBeingEditedRef(e) && (n.updateItemLabel(e, f), c(), n.focusItem(h, e));
15571
+ jt(n, et) && n.isItemBeingEditedRef(e) && (n.updateItemLabel(e, f), c(), n.focusItem(h, e));
15565
15572
  },
15566
15573
  handleCancelItemLabelEditing: (h) => {
15567
- jt(n, Ze) && n.isItemBeingEditedRef(e) && (c(), n.focusItem(h, e));
15574
+ jt(n, et) && n.isItemBeingEditedRef(e) && (c(), n.focusItem(h, e));
15568
15575
  }
15569
15576
  },
15570
15577
  status: i,
@@ -15692,45 +15699,45 @@ const uy = () => (_s += 1, `mui-tree-view-${_s}`), gi = ({
15692
15699
  } = ay({
15693
15700
  itemId: h,
15694
15701
  children: y
15695
- }), P = E.useRef(null), N = E.useRef(null), V = pn(b, x, P), F = pn(S, N), g = E.useRef(null), R = gi({
15702
+ }), P = E.useRef(null), M = E.useRef(null), V = pn(b, x, P), F = pn(S, M), g = E.useRef(null), R = gi({
15696
15703
  itemId: h,
15697
15704
  treeId: l,
15698
15705
  id: m
15699
- }), A = c.canItemBeTabbed(h) ? 0 : -1, $ = {
15706
+ }), A = c.canItemBeTabbed(h) ? 0 : -1, D = {
15700
15707
  rootRefObject: P,
15701
- contentRefObject: N,
15708
+ contentRefObject: M,
15702
15709
  interactions: v
15703
- }, j = (L) => (_) => {
15704
- if (L.onFocus?.(_), _.defaultMuiPrevented)
15710
+ }, j = ($) => (_) => {
15711
+ if ($.onFocus?.(_), _.defaultMuiPrevented)
15705
15712
  return;
15706
15713
  const ie = !w.disabled || r;
15707
15714
  !w.focused && ie && _.currentTarget === _.target && c.focusItem(_, h);
15708
- }, K = (L) => (_) => {
15709
- if (L.onBlur?.(_), _.defaultMuiPrevented)
15715
+ }, K = ($) => (_) => {
15716
+ if ($.onBlur?.(_), _.defaultMuiPrevented)
15710
15717
  return;
15711
15718
  const ie = c.getItemDOMElement(h);
15712
15719
  w.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
15713
15720
  // 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
15714
15721
  _.relatedTarget && Dn(_.relatedTarget, ie) && (_.target && _.target?.dataset?.element === "labelInput" && Dn(_.target, ie) || _.relatedTarget?.dataset?.element === "labelInput") || c.removeFocusedItem();
15715
- }, q = (L) => (_) => {
15716
- L.onKeyDown?.(_), !(_.defaultMuiPrevented || _.target?.dataset?.element === "labelInput") && c.handleItemKeyDown(_, h);
15717
- }, ae = (L) => (_) => {
15718
- L.onDoubleClick?.(_), !_.defaultMuiPrevented && v.toggleItemEditing();
15719
- }, le = (L) => (_) => {
15720
- L.onClick?.(_), n?.(_, h), !(_.defaultMuiPrevented || g.current?.contains(_.target)) && (a === "content" && v.handleExpansion(_), s || v.handleSelection(_));
15721
- }, H = (L) => (_) => {
15722
- L.onMouseDown?.(_), !_.defaultMuiPrevented && (_.shiftKey || _.ctrlKey || _.metaKey || w.disabled) && _.preventDefault();
15723
- }, Y = (L) => (_) => {
15724
- L.onChange?.(_), !_.defaultMuiPrevented && (i || w.disabled || v.handleCheckboxSelection(_));
15725
- }, G = (L) => (_) => {
15726
- L.onClick?.(_), !_.defaultMuiPrevented && a === "iconContainer" && v.handleExpansion(_);
15722
+ }, q = ($) => (_) => {
15723
+ $.onKeyDown?.(_), !(_.defaultMuiPrevented || _.target?.dataset?.element === "labelInput") && c.handleItemKeyDown(_, h);
15724
+ }, ae = ($) => (_) => {
15725
+ $.onDoubleClick?.(_), !_.defaultMuiPrevented && v.toggleItemEditing();
15726
+ }, le = ($) => (_) => {
15727
+ $.onClick?.(_), n?.(_, h), !(_.defaultMuiPrevented || g.current?.contains(_.target)) && (a === "content" && v.handleExpansion(_), s || v.handleSelection(_));
15728
+ }, H = ($) => (_) => {
15729
+ $.onMouseDown?.(_), !_.defaultMuiPrevented && (_.shiftKey || _.ctrlKey || _.metaKey || w.disabled) && _.preventDefault();
15730
+ }, Y = ($) => (_) => {
15731
+ $.onChange?.(_), !_.defaultMuiPrevented && (i || w.disabled || v.handleCheckboxSelection(_));
15732
+ }, G = ($) => (_) => {
15733
+ $.onClick?.(_), !_.defaultMuiPrevented && a === "iconContainer" && v.handleExpansion(_);
15727
15734
  };
15728
15735
  return {
15729
- getRootProps: (L = {}) => {
15730
- const _ = M({}, Ye(e), Ye(L));
15736
+ getRootProps: ($ = {}) => {
15737
+ const _ = L({}, Ye(e), Ye($));
15731
15738
  let ie;
15732
15739
  w.selected ? ie = !0 : i || w.disabled ? ie = void 0 : ie = !1;
15733
- const kt = M({}, _, {
15740
+ const kt = L({}, _, {
15734
15741
  ref: V,
15735
15742
  role: "treeitem",
15736
15743
  tabIndex: A,
@@ -15738,7 +15745,7 @@ const uy = () => (_s += 1, `mui-tree-view-${_s}`), gi = ({
15738
15745
  "aria-expanded": w.expandable ? w.expanded : void 0,
15739
15746
  "aria-selected": ie,
15740
15747
  "aria-disabled": w.disabled || void 0
15741
- }, L, {
15748
+ }, $, {
15742
15749
  onFocus: j(_),
15743
15750
  onBlur: K(_),
15744
15751
  onKeyDown: q(_)
@@ -15746,74 +15753,74 @@ const uy = () => (_s += 1, `mui-tree-view-${_s}`), gi = ({
15746
15753
  o && (kt.style = {
15747
15754
  "--TreeView-itemDepth": typeof p == "function" ? p(h) : p
15748
15755
  });
15749
- const lt = C.root?.(M({}, $, {
15756
+ const lt = C.root?.(L({}, D, {
15750
15757
  externalEventHandlers: _
15751
15758
  })) ?? {};
15752
- return M({}, kt, lt);
15759
+ return L({}, kt, lt);
15753
15760
  },
15754
- getContentProps: (L = {}) => {
15755
- const _ = Ye(L), ie = M({}, _, L, {
15761
+ getContentProps: ($ = {}) => {
15762
+ const _ = Ye($), ie = L({}, _, $, {
15756
15763
  ref: F,
15757
15764
  onClick: le(_),
15758
15765
  onMouseDown: H(_),
15759
15766
  status: w
15760
15767
  });
15761
15768
  o && (ie.indentationAtItemLevel = !0);
15762
- const kt = C.content?.(M({}, $, {
15769
+ const kt = C.content?.(L({}, D, {
15763
15770
  externalEventHandlers: _
15764
15771
  })) ?? {};
15765
- return M({}, ie, kt);
15772
+ return L({}, ie, kt);
15766
15773
  },
15767
- getGroupTransitionProps: (L = {}) => {
15768
- const _ = Ye(L), ie = M({}, _, {
15774
+ getGroupTransitionProps: ($ = {}) => {
15775
+ const _ = Ye($), ie = L({}, _, {
15769
15776
  unmountOnExit: !0,
15770
15777
  component: "ul",
15771
15778
  role: "group",
15772
15779
  in: w.expanded,
15773
15780
  children: y
15774
- }, L);
15781
+ }, $);
15775
15782
  return o && (ie.indentationAtItemLevel = !0), ie;
15776
15783
  },
15777
- getIconContainerProps: (L = {}) => {
15778
- const _ = Ye(L);
15779
- return M({}, _, L, {
15784
+ getIconContainerProps: ($ = {}) => {
15785
+ const _ = Ye($);
15786
+ return L({}, _, $, {
15780
15787
  onClick: G(_)
15781
15788
  });
15782
15789
  },
15783
- getCheckboxProps: (L = {}) => {
15784
- const _ = Ye(L);
15785
- return M({}, _, {
15790
+ getCheckboxProps: ($ = {}) => {
15791
+ const _ = Ye($);
15792
+ return L({}, _, {
15786
15793
  visible: s,
15787
15794
  ref: g,
15788
15795
  checked: w.selected,
15789
15796
  disabled: i || w.disabled,
15790
15797
  tabIndex: -1
15791
- }, L, {
15798
+ }, $, {
15792
15799
  onChange: Y(_)
15793
15800
  });
15794
15801
  },
15795
- getLabelProps: (L = {}) => {
15796
- const _ = M({}, Ye(L)), ie = M({}, _, {
15802
+ getLabelProps: ($ = {}) => {
15803
+ const _ = L({}, Ye($)), ie = L({}, _, {
15797
15804
  children: f
15798
- }, L, {
15805
+ }, $, {
15799
15806
  onDoubleClick: ae(_)
15800
15807
  });
15801
15808
  return c.isTreeViewEditable && (ie.editable = w.editable), ie;
15802
15809
  },
15803
- getLabelInputProps: (L = {}) => {
15804
- const _ = Ye(L), ie = C.labelInput?.({
15810
+ getLabelInputProps: ($ = {}) => {
15811
+ const _ = Ye($), ie = C.labelInput?.({
15805
15812
  rootRefObject: P,
15806
- contentRefObject: N,
15813
+ contentRefObject: M,
15807
15814
  externalEventHandlers: _,
15808
15815
  interactions: v
15809
15816
  }) ?? {};
15810
- return M({}, L, ie);
15817
+ return L({}, $, ie);
15811
15818
  },
15812
- getDragAndDropOverlayProps: (L = {}) => {
15813
- const _ = Ye(L), ie = C.dragAndDropOverlay?.(M({}, $, {
15819
+ getDragAndDropOverlayProps: ($ = {}) => {
15820
+ const _ = Ye($), ie = C.dragAndDropOverlay?.(L({}, D, {
15814
15821
  externalEventHandlers: _
15815
15822
  })) ?? {};
15816
- return M({}, L, ie);
15823
+ return L({}, $, ie);
15817
15824
  },
15818
15825
  rootRef: V,
15819
15826
  status: w,
@@ -15863,7 +15870,7 @@ function fl(e) {
15863
15870
  }, x = (w) => {
15864
15871
  (w.shiftKey || w.ctrlKey || w.metaKey || p) && w.preventDefault();
15865
15872
  }, S = () => {
15866
- jt(t, Ze) && t.isItemEditable(e) && (t.isItemBeingEdited(e) ? t.setEditedItemId(null) : t.setEditedItemId(e));
15873
+ jt(t, et) && t.isItemEditable(e) && (t.isItemBeingEdited(e) ? t.setEditedItemId(null) : t.setEditedItemId(e));
15867
15874
  };
15868
15875
  return {
15869
15876
  disabled: p,
@@ -15882,10 +15889,10 @@ function fl(e) {
15882
15889
  expansionTrigger: s,
15883
15890
  toggleItemEditing: S,
15884
15891
  handleSaveItemLabel: (w, P) => {
15885
- jt(t, Ze) && t.isItemBeingEditedRef(e) && (t.updateItemLabel(e, P), S(), t.focusItem(w, e));
15892
+ jt(t, et) && t.isItemBeingEditedRef(e) && (t.updateItemLabel(e, P), S(), t.focusItem(w, e));
15886
15893
  },
15887
15894
  handleCancelItemLabelEditing: (w) => {
15888
- jt(t, Ze) && t.isItemBeingEditedRef(e) && (S(), t.focusItem(w, e));
15895
+ jt(t, et) && t.isItemBeingEditedRef(e) && (S(), t.focusItem(w, e));
15889
15896
  }
15890
15897
  };
15891
15898
  }
@@ -15940,7 +15947,7 @@ const hy = ce("div", {
15940
15947
  }]
15941
15948
  }));
15942
15949
  function my(e) {
15943
- return e.action == null ? null : /* @__PURE__ */ d(hy, M({}, e));
15950
+ return e.action == null ? null : /* @__PURE__ */ d(hy, L({}, e));
15944
15951
  }
15945
15952
  const fy = ce("input", {
15946
15953
  name: "MuiTreeItem2",
@@ -15948,7 +15955,7 @@ const fy = ce("input", {
15948
15955
  overridesResolver: (e, t) => t.labelInput
15949
15956
  })(({
15950
15957
  theme: e
15951
- }) => M({}, e.typography.body1, {
15958
+ }) => L({}, e.typography.body1, {
15952
15959
  width: "100%",
15953
15960
  backgroundColor: e.palette.background.paper,
15954
15961
  borderRadius: e.shape.borderRadius,
@@ -15980,23 +15987,23 @@ const fy = ce("input", {
15980
15987
  editable: v,
15981
15988
  disableSelection: w,
15982
15989
  checkboxSelection: P,
15983
- handleExpansion: N,
15990
+ handleExpansion: M,
15984
15991
  handleSelection: V,
15985
15992
  handleCheckboxSelection: F,
15986
15993
  handleContentClick: g,
15987
15994
  preventSelection: R,
15988
15995
  expansionTrigger: A,
15989
- toggleItemEditing: $
15996
+ toggleItemEditing: D
15990
15997
  } = fl(c), j = a || s || i, K = E.useRef(null), q = (H) => {
15991
15998
  R(H), p && p(H);
15992
15999
  }, ae = (H) => {
15993
- g?.(H, c), !K.current?.contains(H.target) && (A === "content" && N(H), P || V(H), u && u(H));
16000
+ g?.(H, c), !K.current?.contains(H.target) && (A === "content" && M(H), P || V(H), u && u(H));
15994
16001
  }, le = (H) => {
15995
- H.defaultMuiPrevented || $();
16002
+ H.defaultMuiPrevented || D();
15996
16003
  };
15997
16004
  return (
15998
16005
  /* eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions -- Key event is handled by the TreeView */
15999
- /* @__PURE__ */ I("div", M({}, f, {
16006
+ /* @__PURE__ */ k("div", L({}, f, {
16000
16007
  className: be(r.root, o, b && r.expanded, x && r.selected, S && r.focused, y && r.disabled, C && r.editing, v && r.editable),
16001
16008
  onClick: ae,
16002
16009
  onMouseDown: q,
@@ -16011,15 +16018,15 @@ const fy = ce("input", {
16011
16018
  disabled: y || w,
16012
16019
  ref: K,
16013
16020
  tabIndex: -1
16014
- }), C ? /* @__PURE__ */ d(fy, M({}, h, {
16021
+ }), C ? /* @__PURE__ */ d(fy, L({}, h, {
16015
16022
  className: r.labelInput
16016
- })) : /* @__PURE__ */ d("div", M({
16023
+ })) : /* @__PURE__ */ d("div", L({
16017
16024
  className: r.label
16018
16025
  }, v && {
16019
16026
  onDoubleClick: le
16020
16027
  }, {
16021
16028
  children: l
16022
- })), m && /* @__PURE__ */ d(my, M({}, m))]
16029
+ })), m && /* @__PURE__ */ d(my, L({}, m))]
16023
16030
  }))
16024
16031
  );
16025
16032
  }), As = (e) => e, yy = () => {
@@ -16062,9 +16069,9 @@ function yl(e, t, n = "Mui") {
16062
16069
  function Sy(e) {
16063
16070
  return yi("MuiTreeItem", e);
16064
16071
  }
16065
- const ht = yl("MuiTreeItem", ["root", "groupTransition", "content", "expanded", "selected", "focused", "disabled", "iconContainer", "label", "checkbox", "labelInput", "editable", "editing", "dragAndDropOverlay"]), bl = _e(/* @__PURE__ */ d("path", {
16072
+ const ht = yl("MuiTreeItem", ["root", "groupTransition", "content", "expanded", "selected", "focused", "disabled", "iconContainer", "label", "checkbox", "labelInput", "editable", "editing", "dragAndDropOverlay"]), bl = Ae(/* @__PURE__ */ d("path", {
16066
16073
  d: "M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"
16067
- })), xl = _e(/* @__PURE__ */ d("path", {
16074
+ })), xl = Ae(/* @__PURE__ */ d("path", {
16068
16075
  d: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"
16069
16076
  }));
16070
16077
  function bi(e) {
@@ -16176,7 +16183,7 @@ const Cy = ["children", "className", "slots", "slotProps", "ContentComponent", "
16176
16183
  fontSize: 18
16177
16184
  }
16178
16185
  },
16179
- [`& .${ht.label}`]: M({
16186
+ [`& .${ht.label}`]: L({
16180
16187
  width: "100%",
16181
16188
  boxSizing: "border-box",
16182
16189
  // prevent width + padding to overflow
@@ -16242,13 +16249,13 @@ const Cy = ["children", "className", "slots", "slotProps", "ContentComponent", "
16242
16249
  id: v,
16243
16250
  label: w,
16244
16251
  onClick: P,
16245
- onMouseDown: N,
16252
+ onMouseDown: M,
16246
16253
  onBlur: V,
16247
16254
  onKeyDown: F
16248
16255
  } = m, g = bt(m, Cy), {
16249
16256
  expanded: R,
16250
16257
  focused: A,
16251
- selected: $,
16258
+ selected: D,
16252
16259
  disabled: j,
16253
16260
  editing: K,
16254
16261
  handleExpansion: q,
@@ -16264,17 +16271,17 @@ const Cy = ["children", "className", "slots", "slotProps", "ContentComponent", "
16264
16271
  endIcon: y?.endIcon ?? r.slots.endIcon,
16265
16272
  icon: y?.icon,
16266
16273
  groupTransition: y?.groupTransition
16267
- }, Me = (X) => Array.isArray(X) ? X.length > 0 && X.some(Me) : !!X, Te = Me(h), Ke = M({}, m, {
16274
+ }, Le = (X) => Array.isArray(X) ? X.length > 0 && X.some(Le) : !!X, Pe = Le(h), Ke = L({}, m, {
16268
16275
  expanded: R,
16269
16276
  focused: A,
16270
- selected: $,
16277
+ selected: D,
16271
16278
  disabled: j,
16272
16279
  indentationAtItemLevel: s
16273
- }), L = Ey(Ke), _ = B.groupTransition ?? void 0, ie = Bt({
16280
+ }), $ = Ey(Ke), _ = B.groupTransition ?? void 0, ie = Bt({
16274
16281
  elementType: _,
16275
16282
  ownerState: {},
16276
16283
  externalSlotProps: b?.groupTransition,
16277
- additionalProps: M({
16284
+ additionalProps: L({
16278
16285
  unmountOnExit: !0,
16279
16286
  in: R,
16280
16287
  component: "ul",
@@ -16282,27 +16289,27 @@ const Cy = ["children", "className", "slots", "slotProps", "ContentComponent", "
16282
16289
  }, s ? {
16283
16290
  indentationAtItemLevel: !0
16284
16291
  } : {}),
16285
- className: L.groupTransition
16292
+ className: $.groupTransition
16286
16293
  }), kt = (X) => {
16287
16294
  l === "iconContainer" && q(X);
16288
16295
  }, lt = R ? B.collapseIcon : B.expandIcon, Yr = Bt({
16289
16296
  elementType: lt,
16290
16297
  ownerState: {},
16291
- externalSlotProps: (X) => R ? M({}, mt(r.slotProps.collapseIcon, X), mt(b?.collapseIcon, X)) : M({}, mt(r.slotProps.expandIcon, X), mt(b?.expandIcon, X)),
16298
+ externalSlotProps: (X) => R ? L({}, mt(r.slotProps.collapseIcon, X), mt(b?.collapseIcon, X)) : L({}, mt(r.slotProps.expandIcon, X), mt(b?.expandIcon, X)),
16292
16299
  additionalProps: {
16293
16300
  onClick: kt
16294
16301
  }
16295
- }), Xr = bt(Yr, wy), Ht = Te && lt ? /* @__PURE__ */ d(lt, M({}, Xr)) : null, ct = Te ? void 0 : B.endIcon, Jr = Bt({
16302
+ }), Xr = bt(Yr, wy), Ht = Pe && lt ? /* @__PURE__ */ d(lt, L({}, Xr)) : null, ct = Pe ? void 0 : B.endIcon, Jr = Bt({
16296
16303
  elementType: ct,
16297
16304
  ownerState: {},
16298
- externalSlotProps: (X) => Te ? {} : M({}, mt(r.slotProps.endIcon, X), mt(b?.endIcon, X))
16299
- }), qn = bt(Jr, vy), Zr = ct ? /* @__PURE__ */ d(ct, M({}, qn)) : null, z = B.icon, Nl = Bt({
16305
+ externalSlotProps: (X) => Pe ? {} : L({}, mt(r.slotProps.endIcon, X), mt(b?.endIcon, X))
16306
+ }), qn = bt(Jr, vy), Zr = ct ? /* @__PURE__ */ d(ct, L({}, qn)) : null, z = B.icon, Nl = Bt({
16300
16307
  elementType: z,
16301
16308
  ownerState: {},
16302
16309
  externalSlotProps: b?.icon
16303
- }), Ml = bt(Nl, ky), Ll = z ? /* @__PURE__ */ d(z, M({}, Ml)) : null;
16310
+ }), Ml = bt(Nl, ky), Ll = z ? /* @__PURE__ */ d(z, L({}, Ml)) : null;
16304
16311
  let Kn;
16305
- $ ? Kn = !0 : a || j ? Kn = void 0 : Kn = !1;
16312
+ D ? Kn = !0 : a || j ? Kn = void 0 : Kn = !1;
16306
16313
  function $l(X) {
16307
16314
  !A && (!j || i) && X.currentTarget === X.target && u.focusItem(X, C);
16308
16315
  }
@@ -16324,21 +16331,21 @@ const Cy = ["children", "className", "slots", "slotProps", "ContentComponent", "
16324
16331
  handleSaveItemLabel: le,
16325
16332
  handleCancelItemLabelEditing: ae
16326
16333
  }
16327
- }, Fl = G.root?.(M({}, Qn, {
16334
+ }, Fl = G.root?.(L({}, Qn, {
16328
16335
  externalEventHandlers: Ye(g)
16329
- })) ?? {}, zl = G.content?.(M({}, Qn, {
16336
+ })) ?? {}, zl = G.content?.(L({}, Qn, {
16330
16337
  externalEventHandlers: Ye(S)
16331
- })) ?? {}, vi = G.dragAndDropOverlay?.(M({}, Qn, {
16338
+ })) ?? {}, vi = G.dragAndDropOverlay?.(L({}, Qn, {
16332
16339
  externalEventHandlers: {}
16333
- })) ?? {}, ki = G.labelInput?.(M({}, Qn, {
16340
+ })) ?? {}, ki = G.labelInput?.(L({}, Qn, {
16334
16341
  externalEventHandlers: {}
16335
16342
  })) ?? {};
16336
16343
  return /* @__PURE__ */ d(bi, {
16337
16344
  itemId: C,
16338
- children: /* @__PURE__ */ I(Ty, M({
16339
- className: be(L.root, f),
16345
+ children: /* @__PURE__ */ k(Ty, L({
16346
+ className: be($.root, f),
16340
16347
  role: "treeitem",
16341
- "aria-expanded": Te ? R : void 0,
16348
+ "aria-expanded": Pe ? R : void 0,
16342
16349
  "aria-selected": Kn,
16343
16350
  "aria-disabled": j || void 0,
16344
16351
  id: jl,
@@ -16349,29 +16356,29 @@ const Cy = ["children", "className", "slots", "slotProps", "ContentComponent", "
16349
16356
  onBlur: Dl,
16350
16357
  onKeyDown: Bl,
16351
16358
  ref: fe,
16352
- style: s ? M({}, g.style, {
16359
+ style: s ? L({}, g.style, {
16353
16360
  "--TreeView-itemDepth": typeof p == "function" ? p(C) : p
16354
16361
  }) : g.style
16355
16362
  }, Fl, {
16356
- children: [/* @__PURE__ */ d(Py, M({
16363
+ children: [/* @__PURE__ */ d(Py, L({
16357
16364
  as: x,
16358
16365
  classes: {
16359
- root: L.content,
16360
- expanded: L.expanded,
16361
- selected: L.selected,
16362
- focused: L.focused,
16363
- disabled: L.disabled,
16364
- editable: L.editable,
16365
- editing: L.editing,
16366
- iconContainer: L.iconContainer,
16367
- label: L.label,
16368
- labelInput: L.labelInput,
16369
- checkbox: L.checkbox
16366
+ root: $.content,
16367
+ expanded: $.expanded,
16368
+ selected: $.selected,
16369
+ focused: $.focused,
16370
+ disabled: $.disabled,
16371
+ editable: $.editable,
16372
+ editing: $.editing,
16373
+ iconContainer: $.iconContainer,
16374
+ label: $.label,
16375
+ labelInput: $.labelInput,
16376
+ checkbox: $.checkbox
16370
16377
  },
16371
16378
  label: w,
16372
16379
  itemId: C,
16373
16380
  onClick: P,
16374
- onMouseDown: N,
16381
+ onMouseDown: M,
16375
16382
  icon: Ll,
16376
16383
  expansionIcon: Ht,
16377
16384
  displayIcon: Zr,
@@ -16382,7 +16389,7 @@ const Cy = ["children", "className", "slots", "slotProps", "ContentComponent", "
16382
16389
  labelInputProps: ki
16383
16390
  }, {
16384
16391
  ref: ee
16385
- })), h && /* @__PURE__ */ d(Ry, M({
16392
+ })), h && /* @__PURE__ */ d(Ry, L({
16386
16393
  as: _
16387
16394
  }, ie, {
16388
16395
  children: h
@@ -16395,7 +16402,7 @@ function Ay(e) {
16395
16402
  slots: t,
16396
16403
  slotProps: n,
16397
16404
  status: r
16398
- } = e, o = Ut(), i = M({}, o.icons.slots, {
16405
+ } = e, o = Ut(), i = L({}, o.icons.slots, {
16399
16406
  expandIcon: o.icons.slots.expandIcon ?? bl,
16400
16407
  collapseIcon: o.icons.slots.collapseIcon ?? xl
16401
16408
  }), s = o.icons.slotProps;
@@ -16403,11 +16410,11 @@ function Ay(e) {
16403
16410
  t?.icon ? a = "icon" : r.expandable ? r.expanded ? a = "collapseIcon" : a = "expandIcon" : a = "endIcon";
16404
16411
  const l = t?.[a] ?? i[a], c = Bt({
16405
16412
  elementType: l,
16406
- externalSlotProps: (u) => M({}, mt(s[a], u), mt(n?.[a], u)),
16413
+ externalSlotProps: (u) => L({}, mt(s[a], u), mt(n?.[a], u)),
16407
16414
  // TODO: Add proper ownerState
16408
16415
  ownerState: {}
16409
16416
  });
16410
- return l ? /* @__PURE__ */ d(l, M({}, c)) : null;
16417
+ return l ? /* @__PURE__ */ d(l, L({}, c)) : null;
16411
16418
  }
16412
16419
  const Oy = ["visible"], Ny = ce("li", {
16413
16420
  name: "MuiTreeItem2",
@@ -16495,7 +16502,7 @@ const Oy = ["visible"], Ny = ce("li", {
16495
16502
  shouldForwardProp: (e) => Et(e) && e !== "editable"
16496
16503
  })(({
16497
16504
  theme: e
16498
- }) => M({
16505
+ }) => L({
16499
16506
  width: "100%",
16500
16507
  boxSizing: "border-box",
16501
16508
  // prevent width + padding to overflow
@@ -16547,7 +16554,7 @@ ce(/* @__PURE__ */ E.forwardRef((e, t) => {
16547
16554
  const {
16548
16555
  visible: n
16549
16556
  } = e, r = bt(e, Oy);
16550
- return n ? /* @__PURE__ */ d(sl, M({}, r, {
16557
+ return n ? /* @__PURE__ */ d(sl, L({}, r, {
16551
16558
  ref: t
16552
16559
  })) : null;
16553
16560
  }), {
@@ -16578,7 +16585,7 @@ const By = (e, t) => {
16578
16585
  return [s, {
16579
16586
  value: l,
16580
16587
  setControlledValue: (c) => {
16581
- a.isControlled || o((u) => M({}, u, {
16588
+ a.isControlled || o((u) => L({}, u, {
16582
16589
  [s]: c
16583
16590
  }));
16584
16591
  }
@@ -16655,8 +16662,8 @@ const xi = ({
16655
16662
  setState: n
16656
16663
  }) => {
16657
16664
  E.useEffect(() => {
16658
- n((o) => o.id.treeId === e.id && o.id.treeId !== void 0 ? o : M({}, o, {
16659
- id: M({}, o.id, {
16665
+ n((o) => o.id.treeId === e.id && o.id.treeId !== void 0 ? o : L({}, o, {
16666
+ id: L({}, o.id, {
16660
16667
  treeId: e.id ?? uy()
16661
16668
  })
16662
16669
  }));
@@ -16804,11 +16811,11 @@ const Wy = ({
16804
16811
  rootRef: f
16805
16812
  }), [x, S] = E.useState(() => {
16806
16813
  const P = {};
16807
- return r.forEach((N) => {
16808
- N.getInitialState && Object.assign(P, N.getInitialState(o));
16814
+ return r.forEach((M) => {
16815
+ M.getInitialState && Object.assign(P, M.getInitialState(o));
16809
16816
  }), P;
16810
16817
  }), C = [], v = (P) => {
16811
- const N = P({
16818
+ const M = P({
16812
16819
  instance: m,
16813
16820
  params: o,
16814
16821
  slots: l,
@@ -16820,18 +16827,18 @@ const Wy = ({
16820
16827
  models: u,
16821
16828
  plugins: r
16822
16829
  });
16823
- N.getRootProps && C.push(N.getRootProps), N.publicAPI && Object.assign(h, N.publicAPI), N.instance && Object.assign(m, N.instance), N.contextValue && Object.assign(b, N.contextValue);
16830
+ M.getRootProps && C.push(M.getRootProps), M.publicAPI && Object.assign(h, M.publicAPI), M.instance && Object.assign(m, M.instance), M.contextValue && Object.assign(b, M.contextValue);
16824
16831
  };
16825
16832
  return r.forEach(v), {
16826
16833
  getRootProps: (P = {}) => {
16827
- const N = M({
16834
+ const M = L({
16828
16835
  role: "tree"
16829
16836
  }, i, P, {
16830
16837
  ref: y
16831
16838
  });
16832
16839
  return C.forEach((V) => {
16833
- Object.assign(N, V(P));
16834
- }), N;
16840
+ Object.assign(M, V(P));
16841
+ }), M;
16835
16842
  },
16836
16843
  rootRef: y,
16837
16844
  contextValue: b,
@@ -16936,7 +16943,7 @@ const Wy = ({
16936
16943
  S.itemMetaMap[C.id] || qy(e, "removeItem", {
16937
16944
  id: C.id
16938
16945
  });
16939
- }), M({}, x, {
16946
+ }), L({}, x, {
16940
16947
  items: S
16941
16948
  });
16942
16949
  });
@@ -16995,7 +17002,7 @@ Gn.getInitialState = (e) => ({
16995
17002
  });
16996
17003
  Gn.getDefaultizedParams = ({
16997
17004
  params: e
16998
- }) => M({}, e, {
17005
+ }) => L({}, e, {
16999
17006
  disabledItemsFocusable: e.disabledItemsFocusable ?? !1,
17000
17007
  itemChildrenIndentation: e.itemChildrenIndentation ?? "12px"
17001
17008
  });
@@ -17077,7 +17084,7 @@ Kr.models = {
17077
17084
  const Xy = [];
17078
17085
  Kr.getDefaultizedParams = ({
17079
17086
  params: e
17080
- }) => M({}, e, {
17087
+ }) => L({}, e, {
17081
17088
  defaultExpandedItems: e.defaultExpandedItems ?? Xy
17082
17089
  });
17083
17090
  Kr.params = {
@@ -17191,7 +17198,7 @@ Qr.models = {
17191
17198
  const Jy = [];
17192
17199
  Qr.getDefaultizedParams = ({
17193
17200
  params: e
17194
- }) => M({}, e, {
17201
+ }) => L({}, e, {
17195
17202
  disableSelection: e.disableSelection ?? !1,
17196
17203
  multiSelect: e.multiSelect ?? !1,
17197
17204
  checkboxSelection: e.checkboxSelection ?? !1,
@@ -17309,7 +17316,7 @@ const ob = {
17309
17316
  }) => {
17310
17317
  const s = sb(e, o.selectedItems.value), a = on((b) => {
17311
17318
  const x = typeof b == "function" ? b(n.focusedItemId) : b;
17312
- n.focusedItemId !== x && r((S) => M({}, S, {
17319
+ n.focusedItemId !== x && r((S) => L({}, S, {
17313
17320
  focusedItemId: x
17314
17321
  }));
17315
17322
  }), l = E.useCallback(() => !!i.current && i.current.contains(vl(Zy(i.current))), [i]), c = E.useCallback((b) => n.focusedItemId === b && l(), [n.focusedItemId, l]), u = (b) => {
@@ -17409,7 +17416,7 @@ const kl = ({
17409
17416
  // If the focused item has children, we expand it.
17410
17417
  // If the focused item has no children, we select it.
17411
17418
  case h === "Enter": {
17412
- jt(e, Ze) && e.isItemEditable(p) && !e.isItemBeingEdited(p) ? e.setEditedItemId(p) : l(p) ? (e.toggleItemExpansion(u, p), u.preventDefault()) : a(p) && (t.multiSelect ? (u.preventDefault(), e.selectItem({
17419
+ jt(e, et) && e.isItemEditable(p) && !e.isItemBeingEdited(p) ? e.setEditedItemId(p) : l(p) ? (e.toggleItemExpansion(u, p), u.preventDefault()) : a(p) && (t.multiSelect ? (u.preventDefault(), e.selectItem({
17413
17420
  event: u,
17414
17421
  itemId: p,
17415
17422
  keepExistingSelection: !0
@@ -17509,7 +17516,7 @@ const Il = ({
17509
17516
  }
17510
17517
  });
17511
17518
  Il.params = {};
17512
- const lb = [Gn, Kr, Qr, Si, kl, Il, Ze], cb = ["ownerState"];
17519
+ const lb = [Gn, Kr, Qr, Si, kl, Il, et], cb = ["ownerState"];
17513
17520
  function ub({
17514
17521
  slots: e,
17515
17522
  slotProps: t,
@@ -17535,7 +17542,7 @@ function ub({
17535
17542
  slots: e,
17536
17543
  slotProps: t
17537
17544
  }) : null, [i, e, t]);
17538
- return /* @__PURE__ */ d(s, M({}, l, {
17545
+ return /* @__PURE__ */ d(s, L({}, l, {
17539
17546
  children: c
17540
17547
  }));
17541
17548
  }
@@ -17597,7 +17604,7 @@ const db = ll(), pb = (e) => {
17597
17604
  });
17598
17605
  return /* @__PURE__ */ d(iy, {
17599
17606
  value: i,
17600
- children: /* @__PURE__ */ d(u, M({}, p, {
17607
+ children: /* @__PURE__ */ d(u, L({}, p, {
17601
17608
  children: /* @__PURE__ */ d(El, {
17602
17609
  slots: a,
17603
17610
  slotProps: l,
@@ -17605,15 +17612,15 @@ const db = ll(), pb = (e) => {
17605
17612
  })
17606
17613
  }))
17607
17614
  });
17608
- }), fb = _e(/* @__PURE__ */ d("path", {
17615
+ }), fb = Ae(/* @__PURE__ */ d("path", {
17609
17616
  d: "m9.17 6 2 2H20v10H4V6zM10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8z"
17610
- })), gb = _e([/* @__PURE__ */ d("path", {
17617
+ })), gb = Ae([/* @__PURE__ */ d("path", {
17611
17618
  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"
17612
17619
  }, "0"), /* @__PURE__ */ d("path", {
17613
17620
  d: "M14 17H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z"
17614
- }, "1")]), yb = _e(/* @__PURE__ */ d("path", {
17621
+ }, "1")]), yb = Ae(/* @__PURE__ */ d("path", {
17615
17622
  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"
17616
- })), bb = _e(/* @__PURE__ */ d("path", {
17623
+ })), bb = Ae(/* @__PURE__ */ d("path", {
17617
17624
  d: "M15 4v2h3v12h-3v2h5V4zM4 20h5v-2H6V6h3V4H4z"
17618
17625
  }));
17619
17626
  function Tl({
@@ -17641,7 +17648,7 @@ function Sb(e) {
17641
17648
  return /* @__PURE__ */ d(xb, { style: t, ...e });
17642
17649
  }
17643
17650
  function Cb({ item: e, ...t }) {
17644
- const n = /* @__PURE__ */ I(
17651
+ const n = /* @__PURE__ */ k(
17645
17652
  Ly,
17646
17653
  {
17647
17654
  ...t,
@@ -17653,7 +17660,7 @@ function Cb({ item: e, ...t }) {
17653
17660
  children: [
17654
17661
  e.fileType === "directory" && /* @__PURE__ */ d(fb, {}) || e.fileType === "notebook" && /* @__PURE__ */ d(gb, {}) || e.fileType === "model" && /* @__PURE__ */ d(bb, {}) || e.fileType == "database" && /* @__PURE__ */ d(yb, {}) || /* @__PURE__ */ d(tl, {}),
17655
17662
  /* @__PURE__ */ d(
17656
- D,
17663
+ N,
17657
17664
  {
17658
17665
  variant: "body2",
17659
17666
  sx: { marginLeft: "5px" },
@@ -17683,8 +17690,8 @@ const wb = E.forwardRef(function(t, n) {
17683
17690
  disabled: a,
17684
17691
  rootRef: n
17685
17692
  }), b = y.getItem(o);
17686
- return f.selected = !1, f.focused = !1, /* @__PURE__ */ d(bi, { itemId: o, children: /* @__PURE__ */ I(Ny, { ...c(l), children: [
17687
- /* @__PURE__ */ I(
17693
+ return f.selected = !1, f.focused = !1, /* @__PURE__ */ d(bi, { itemId: o, children: /* @__PURE__ */ k(Ny, { ...c(l), children: [
17694
+ /* @__PURE__ */ k(
17688
17695
  My,
17689
17696
  {
17690
17697
  ...u(),
@@ -17752,14 +17759,14 @@ function Pl(e, t, n) {
17752
17759
  }
17753
17760
  const kb = new Ur(new Be()), Ib = ["notebooks/", "models/"];
17754
17761
  function Eb({ navigate: e }) {
17755
- const { projectName: t, packageName: n, versionId: r } = tt(), { data: o, isError: i, error: s, isSuccess: a } = Ve({
17762
+ const { projectName: t, packageName: n, versionId: r } = nt(), { data: o, isError: i, error: s, isSuccess: a } = Ve({
17756
17763
  queryKey: ["models", t, n, r],
17757
17764
  queryFn: (l) => kb.listModels(t, n, r, l)
17758
17765
  });
17759
- return /* @__PURE__ */ d(Re, { variant: "outlined", sx: { width: "100%" }, children: /* @__PURE__ */ I(qe, { children: [
17760
- /* @__PURE__ */ d(D, { variant: "overline", fontWeight: "bold", children: "Semantic Models" }),
17766
+ return /* @__PURE__ */ d(_e, { variant: "outlined", sx: { width: "100%" }, children: /* @__PURE__ */ k(qe, { children: [
17767
+ /* @__PURE__ */ d(N, { variant: "overline", fontWeight: "bold", children: "Semantic Models" }),
17761
17768
  /* @__PURE__ */ d(De, {}),
17762
- /* @__PURE__ */ I(
17769
+ /* @__PURE__ */ k(
17763
17770
  Z,
17764
17771
  {
17765
17772
  sx: {
@@ -17783,7 +17790,7 @@ function Eb({ navigate: e }) {
17783
17790
  defaultExpandedItems: Ib
17784
17791
  }
17785
17792
  ),
17786
- a && o.data.length === 0 && /* @__PURE__ */ d(D, { variant: "body2", children: "No models found" })
17793
+ a && o.data.length === 0 && /* @__PURE__ */ d(N, { variant: "body2", children: "No models found" })
17787
17794
  ]
17788
17795
  }
17789
17796
  )
@@ -17791,7 +17798,7 @@ function Eb({ navigate: e }) {
17791
17798
  }
17792
17799
  const Tb = new na(new Be()), Pb = ["notebooks/"];
17793
17800
  function Rb({ navigate: e }) {
17794
- const { projectName: t, packageName: n, versionId: r } = tt(), { data: o, isError: i, error: s, isSuccess: a } = Ve({
17801
+ const { projectName: t, packageName: n, versionId: r } = nt(), { data: o, isError: i, error: s, isSuccess: a } = Ve({
17795
17802
  queryKey: ["notebooks", t, n, r],
17796
17803
  queryFn: (l) => Tb.listNotebooks(
17797
17804
  t,
@@ -17800,10 +17807,10 @@ function Rb({ navigate: e }) {
17800
17807
  l
17801
17808
  )
17802
17809
  });
17803
- return /* @__PURE__ */ d(Re, { variant: "outlined", sx: { width: "100%" }, children: /* @__PURE__ */ I(qe, { children: [
17804
- /* @__PURE__ */ d(D, { variant: "overline", fontWeight: "bold", children: "Notebooks" }),
17810
+ return /* @__PURE__ */ d(_e, { variant: "outlined", sx: { width: "100%" }, children: /* @__PURE__ */ k(qe, { children: [
17811
+ /* @__PURE__ */ d(N, { variant: "overline", fontWeight: "bold", children: "Notebooks" }),
17805
17812
  /* @__PURE__ */ d(De, {}),
17806
- /* @__PURE__ */ I(
17813
+ /* @__PURE__ */ k(
17807
17814
  Z,
17808
17815
  {
17809
17816
  sx: {
@@ -17827,7 +17834,7 @@ function Rb({ navigate: e }) {
17827
17834
  navigate: e
17828
17835
  }
17829
17836
  ),
17830
- a && o.data.length === 0 && /* @__PURE__ */ d(D, { variant: "body2", children: "No notebooks found" })
17837
+ a && o.data.length === 0 && /* @__PURE__ */ d(N, { variant: "body2", children: "No notebooks found" })
17831
17838
  ]
17832
17839
  }
17833
17840
  )
@@ -17835,7 +17842,7 @@ function Rb({ navigate: e }) {
17835
17842
  }
17836
17843
  const _b = new dp(new Be());
17837
17844
  function Ab() {
17838
- const { projectName: e, packageName: t, versionId: n } = tt(), { data: r, isError: o, isLoading: i, error: s } = Ve({
17845
+ const { projectName: e, packageName: t, versionId: n } = nt(), { data: r, isError: o, isLoading: i, error: s } = Ve({
17839
17846
  queryKey: ["schedules", e, t, n],
17840
17847
  queryFn: (a) => _b.listSchedules(
17841
17848
  e,
@@ -17850,8 +17857,8 @@ function Ab() {
17850
17857
  error: s,
17851
17858
  context: `${e} > ${t} > Schedules`
17852
17859
  }
17853
- ) : r.data.length ? /* @__PURE__ */ d(Re, { variant: "outlined", sx: { padding: "10px", width: "100%" }, children: /* @__PURE__ */ I(qe, { children: [
17854
- /* @__PURE__ */ d(D, { variant: "overline", fontWeight: "bold", children: "Scheduler" }),
17860
+ ) : r.data.length ? /* @__PURE__ */ d(_e, { variant: "outlined", sx: { padding: "10px", width: "100%" }, children: /* @__PURE__ */ k(qe, { children: [
17861
+ /* @__PURE__ */ d(N, { variant: "overline", fontWeight: "bold", children: "Scheduler" }),
17855
17862
  /* @__PURE__ */ d(De, {}),
17856
17863
  /* @__PURE__ */ d(
17857
17864
  Z,
@@ -17861,8 +17868,8 @@ function Ab() {
17861
17868
  maxHeight: "200px",
17862
17869
  overflowY: "auto"
17863
17870
  },
17864
- children: /* @__PURE__ */ d(Fo, { component: xo, children: /* @__PURE__ */ I(Pn, { sx: { minWidth: 300 }, size: "small", children: [
17865
- /* @__PURE__ */ d(pr, { children: /* @__PURE__ */ I(at, { children: [
17871
+ children: /* @__PURE__ */ d(Fo, { component: xo, children: /* @__PURE__ */ k(Pn, { sx: { minWidth: 300 }, size: "small", children: [
17872
+ /* @__PURE__ */ d(pr, { children: /* @__PURE__ */ k(at, { children: [
17866
17873
  /* @__PURE__ */ d(ne, { align: "left", children: "Resource" }),
17867
17874
  /* @__PURE__ */ d(ne, { align: "left", children: "Schedule" }),
17868
17875
  /* @__PURE__ */ d(ne, { align: "left", children: "Action" }),
@@ -17870,7 +17877,7 @@ function Ab() {
17870
17877
  /* @__PURE__ */ d(ne, { align: "left", children: "Last Run" }),
17871
17878
  /* @__PURE__ */ d(ne, { align: "left", children: "Status" })
17872
17879
  ] }) }),
17873
- /* @__PURE__ */ d(Rn, { children: r.data.map((a) => /* @__PURE__ */ I(
17880
+ /* @__PURE__ */ d(Rn, { children: r.data.map((a) => /* @__PURE__ */ k(
17874
17881
  at,
17875
17882
  {
17876
17883
  sx: {
@@ -17898,14 +17905,14 @@ const Ob = "README.malloynb";
17898
17905
  function b0({ navigate: e }) {
17899
17906
  return e || (e = (t) => {
17900
17907
  window.location.href = t;
17901
- }), /* @__PURE__ */ I(Ne, { container: !0, spacing: 2, columns: 12, children: [
17902
- /* @__PURE__ */ d(Ne, { size: { xs: 12, md: 4 }, children: /* @__PURE__ */ d(Jf, {}) }),
17903
- /* @__PURE__ */ d(Ne, { size: { xs: 12, md: 4 }, children: /* @__PURE__ */ d(Rb, { navigate: e }) }),
17904
- /* @__PURE__ */ d(Ne, { size: { xs: 12, md: 4 }, children: /* @__PURE__ */ d(Eb, { navigate: e }) }),
17905
- /* @__PURE__ */ d(Ne, { size: { xs: 12, md: 6 }, children: /* @__PURE__ */ d(rg, {}) }),
17906
- /* @__PURE__ */ d(Ne, { size: { xs: 12, md: 6 }, children: /* @__PURE__ */ d(tg, {}) }),
17907
- /* @__PURE__ */ d(Ne, { size: { xs: 12, md: 12 }, children: /* @__PURE__ */ d(Ab, {}) }),
17908
- /* @__PURE__ */ d(Ne, { size: { xs: 12, md: 12 }, children: /* @__PURE__ */ d(
17908
+ }), /* @__PURE__ */ k(Me, { container: !0, spacing: 2, columns: 12, children: [
17909
+ /* @__PURE__ */ d(Me, { size: { xs: 12, md: 4 }, children: /* @__PURE__ */ d(Jf, {}) }),
17910
+ /* @__PURE__ */ d(Me, { size: { xs: 12, md: 4 }, children: /* @__PURE__ */ d(Rb, { navigate: e }) }),
17911
+ /* @__PURE__ */ d(Me, { size: { xs: 12, md: 4 }, children: /* @__PURE__ */ d(Eb, { navigate: e }) }),
17912
+ /* @__PURE__ */ d(Me, { size: { xs: 12, md: 6 }, children: /* @__PURE__ */ d(rg, {}) }),
17913
+ /* @__PURE__ */ d(Me, { size: { xs: 12, md: 6 }, children: /* @__PURE__ */ d(tg, {}) }),
17914
+ /* @__PURE__ */ d(Me, { size: { xs: 12, md: 12 }, children: /* @__PURE__ */ d(Ab, {}) }),
17915
+ /* @__PURE__ */ d(Me, { size: { xs: 12, md: 12 }, children: /* @__PURE__ */ d(
17909
17916
  Wf,
17910
17917
  {
17911
17918
  notebookPath: Ob,
@@ -17929,9 +17936,9 @@ const Rl = Rr(void 0), x0 = ({
17929
17936
  if (e === void 0)
17930
17937
  throw new Error("useServer must be used within a ServerProvider");
17931
17938
  return e;
17932
- }, rr = _e(/* @__PURE__ */ d("path", {
17939
+ }, rr = Ae(/* @__PURE__ */ d("path", {
17933
17940
  d: "M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"
17934
- })), Ns = _e(/* @__PURE__ */ d("path", {
17941
+ })), Ns = Ae(/* @__PURE__ */ d("path", {
17935
17942
  d: "m14.06 9.02.92.92L5.92 19H5v-.92zM17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29m-3.6 3.19L3 17.25V21h3.75L17.81 9.94z"
17936
17943
  }));
17937
17944
  function Nb({
@@ -17974,7 +17981,7 @@ function Mb({
17974
17981
  }) {
17975
17982
  const [m, h] = O.useState(t), [f, y] = O.useState(n), [b, x] = O.useState(), [S] = O.useState(), [C, v] = O.useState(
17976
17983
  En()
17977
- ), [w, P] = O.useState(!1), [N, V] = O.useState(
17984
+ ), [w, P] = O.useState(!1), [M, V] = O.useState(
17978
17985
  e.sourceName ? s.findIndex(
17979
17986
  (J) => J.sourceInfo.name === e.sourceName
17980
17987
  ) : 0
@@ -17990,10 +17997,10 @@ function Mb({
17990
17997
  });
17991
17998
  const R = Lb((J) => {
17992
17999
  a({ ...e, value: J });
17993
- }), [A, $] = Mt(!1), j = () => {
17994
- u(), $(!1);
18000
+ }), [A, D] = Mt(!1), j = () => {
18001
+ u(), D(!1);
17995
18002
  }, K = s.length === 0, q = () => {
17996
- const J = s[N], fe = J?.modelPath || e.modelPath || "", ee = J?.sourceInfo.name || e.sourceName || "";
18003
+ const J = s[M], fe = J?.modelPath || e.modelPath || "", ee = J?.sourceInfo.name || e.sourceName || "";
17997
18004
  a({
17998
18005
  ...e,
17999
18006
  value: C.query,
@@ -18002,7 +18009,7 @@ function Mb({
18002
18009
  sourceName: ee,
18003
18010
  modelPath: fe
18004
18011
  });
18005
- }, ae = /* @__PURE__ */ d(ge, { title: "Delete Cell", children: /* @__PURE__ */ d(he, { size: "small", onClick: () => $(!0), children: /* @__PURE__ */ d(
18012
+ }, ae = /* @__PURE__ */ d(ge, { title: "Delete Cell", children: /* @__PURE__ */ d(he, { size: "small", onClick: () => D(!0), children: /* @__PURE__ */ d(
18006
18013
  "svg",
18007
18014
  {
18008
18015
  width: "20",
@@ -18021,24 +18028,24 @@ function Mb({
18021
18028
  }
18022
18029
  )
18023
18030
  }
18024
- ) }) }), le = /* @__PURE__ */ I(
18031
+ ) }) }), le = /* @__PURE__ */ k(
18025
18032
  sn,
18026
18033
  {
18027
18034
  open: A,
18028
- onClose: () => $(!1),
18035
+ onClose: () => D(!1),
18029
18036
  children: [
18030
18037
  /* @__PURE__ */ d(an, { children: "Confirm Delete" }),
18031
- /* @__PURE__ */ d(ln, { children: /* @__PURE__ */ d(D, { children: "Are you sure you want to delete this cell?" }) }),
18032
- /* @__PURE__ */ I(js, { children: [
18033
- /* @__PURE__ */ d(nt, { onClick: () => $(!1), children: "Cancel" }),
18034
- /* @__PURE__ */ d(nt, { onClick: j, color: "error", children: "Delete" })
18038
+ /* @__PURE__ */ d(ln, { children: /* @__PURE__ */ d(N, { children: "Are you sure you want to delete this cell?" }) }),
18039
+ /* @__PURE__ */ k(js, { children: [
18040
+ /* @__PURE__ */ d(Ze, { onClick: () => D(!1), children: "Cancel" }),
18041
+ /* @__PURE__ */ d(Ze, { onClick: j, color: "error", children: "Delete" })
18035
18042
  ] })
18036
18043
  ]
18037
18044
  }
18038
- ), H = e.isMarkdown ? /* @__PURE__ */ I(xe, { children: [
18045
+ ), H = e.isMarkdown ? /* @__PURE__ */ k(xe, { children: [
18039
18046
  i ? /* @__PURE__ */ d(ge, { title: "Save", children: /* @__PURE__ */ d(he, { size: "small", onClick: l, children: /* @__PURE__ */ d(rr, {}) }) }) : /* @__PURE__ */ d(ge, { title: "Edit", children: /* @__PURE__ */ d(he, { size: "small", onClick: c, children: /* @__PURE__ */ d(Ns, {}) }) }),
18040
18047
  !i && ae
18041
- ] }) : /* @__PURE__ */ I(xe, { children: [
18048
+ ] }) : /* @__PURE__ */ k(xe, { children: [
18042
18049
  !o && /* @__PURE__ */ d(ge, { title: m ? "Hide Code" : "View Code", children: /* @__PURE__ */ d(
18043
18050
  he,
18044
18051
  {
@@ -18104,15 +18111,15 @@ function Mb({
18104
18111
  boxShadow: 1,
18105
18112
  zIndex: 10
18106
18113
  },
18107
- children: !Y && /* @__PURE__ */ I(xe, { children: [
18114
+ children: !Y && /* @__PURE__ */ k(xe, { children: [
18108
18115
  p(!0),
18109
18116
  p(!1),
18110
18117
  H
18111
18118
  ] }) || G
18112
18119
  }
18113
18120
  );
18114
- return /* @__PURE__ */ I(
18115
- Re,
18121
+ return /* @__PURE__ */ k(
18122
+ _e,
18116
18123
  {
18117
18124
  sx: {
18118
18125
  position: "relative",
@@ -18158,9 +18165,9 @@ function Mb({
18158
18165
  "& pre, & code": { mt: 0.5, mb: 0.5 },
18159
18166
  "& blockquote": { mt: 0.5, mb: 0.5 }
18160
18167
  },
18161
- children: F ? /* @__PURE__ */ d(Z, { onClick: c, sx: { cursor: "pointer" }, children: /* @__PURE__ */ d(Uo, { children: F }) }) : /* @__PURE__ */ I(Z, { onClick: c, sx: { cursor: "pointer" }, children: [
18168
+ children: F ? /* @__PURE__ */ d(Z, { onClick: c, sx: { cursor: "pointer" }, children: /* @__PURE__ */ d(Uo, { children: F }) }) : /* @__PURE__ */ k(Z, { onClick: c, sx: { cursor: "pointer" }, children: [
18162
18169
  /* @__PURE__ */ d(
18163
- D,
18170
+ N,
18164
18171
  {
18165
18172
  sx: {
18166
18173
  p: 2,
@@ -18172,7 +18179,7 @@ function Mb({
18172
18179
  }
18173
18180
  ),
18174
18181
  /* @__PURE__ */ d(
18175
- D,
18182
+ N,
18176
18183
  {
18177
18184
  sx: {
18178
18185
  mb: 2,
@@ -18184,9 +18191,9 @@ function Mb({
18184
18191
  )
18185
18192
  ] })
18186
18193
  }
18187
- ) }) : /* @__PURE__ */ I(xe, { children: [
18194
+ ) }) : /* @__PURE__ */ k(xe, { children: [
18188
18195
  /* @__PURE__ */ d(xt, { in: f, timeout: "auto", unmountOnExit: !0, children: /* @__PURE__ */ d(
18189
- $e,
18196
+ Te,
18190
18197
  {
18191
18198
  sx: {
18192
18199
  p: "10px",
@@ -18195,7 +18202,7 @@ function Mb({
18195
18202
  justifyContent: "space-between"
18196
18203
  },
18197
18204
  children: /* @__PURE__ */ d(
18198
- D,
18205
+ N,
18199
18206
  {
18200
18207
  component: "div",
18201
18208
  sx: {
@@ -18210,7 +18217,7 @@ function Mb({
18210
18217
  }
18211
18218
  ) }),
18212
18219
  /* @__PURE__ */ d(xt, { in: m, timeout: "auto", unmountOnExit: !0, children: /* @__PURE__ */ d(
18213
- $e,
18220
+ Te,
18214
18221
  {
18215
18222
  sx: {
18216
18223
  p: "10px",
@@ -18219,7 +18226,7 @@ function Mb({
18219
18226
  justifyContent: "space-between"
18220
18227
  },
18221
18228
  children: /* @__PURE__ */ d(
18222
- D,
18229
+ N,
18223
18230
  {
18224
18231
  component: "div",
18225
18232
  className: "content",
@@ -18234,9 +18241,9 @@ function Mb({
18234
18241
  )
18235
18242
  }
18236
18243
  ) }),
18237
- o && (K ? /* @__PURE__ */ I(xe, { children: [
18244
+ o && (K ? /* @__PURE__ */ k(xe, { children: [
18238
18245
  /* @__PURE__ */ d(
18239
- D,
18246
+ N,
18240
18247
  {
18241
18248
  sx: {
18242
18249
  p: 2,
@@ -18248,7 +18255,7 @@ function Mb({
18248
18255
  }
18249
18256
  ),
18250
18257
  /* @__PURE__ */ d(
18251
- D,
18258
+ N,
18252
18259
  {
18253
18260
  sx: { mb: 2, textAlign: "center", variant: "body2" },
18254
18261
  children: "Please add a model import above."
@@ -18265,7 +18272,7 @@ function Mb({
18265
18272
  onSourceChange: V
18266
18273
  }
18267
18274
  )),
18268
- !o && e.result && /* @__PURE__ */ d(Re, { variant: "outlined", sx: { borderRadius: 0 }, children: /* @__PURE__ */ d(
18275
+ !o && e.result && /* @__PURE__ */ d(_e, { variant: "outlined", sx: { borderRadius: 0 }, children: /* @__PURE__ */ d(
18269
18276
  Za,
18270
18277
  {
18271
18278
  result: e.result,
@@ -18273,9 +18280,9 @@ function Mb({
18273
18280
  maxHeight: 800
18274
18281
  }
18275
18282
  ) }),
18276
- !o && !e.result && /* @__PURE__ */ I(Z, { onClick: c, sx: { cursor: "pointer" }, children: [
18283
+ !o && !e.result && /* @__PURE__ */ k(Z, { onClick: c, sx: { cursor: "pointer" }, children: [
18277
18284
  /* @__PURE__ */ d(
18278
- D,
18285
+ N,
18279
18286
  {
18280
18287
  sx: {
18281
18288
  p: 2,
@@ -18287,7 +18294,7 @@ function Mb({
18287
18294
  }
18288
18295
  ),
18289
18296
  /* @__PURE__ */ d(
18290
- D,
18297
+ N,
18291
18298
  {
18292
18299
  sx: { mb: 2, textAlign: "center", variant: "body2" },
18293
18300
  children: "Click to edit."
@@ -18333,16 +18340,16 @@ function Al() {
18333
18340
  );
18334
18341
  return e;
18335
18342
  }
18336
- const Db = _e(/* @__PURE__ */ d("path", {
18343
+ const Db = Ae(/* @__PURE__ */ d("path", {
18337
18344
  d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
18338
- })), Bb = _e(/* @__PURE__ */ d("path", {
18345
+ })), Bb = Ae(/* @__PURE__ */ d("path", {
18339
18346
  d: "M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3zM7 9l1.41 1.41L11 7.83V16h2V7.83l2.59 2.58L17 9l-5-5z"
18340
18347
  })), jb = new Ur(new Be());
18341
18348
  function Vb({
18342
18349
  initialSelectedModels: e,
18343
18350
  onModelChange: t
18344
18351
  }) {
18345
- const { projectName: n, packageName: r, versionId: o } = tt(), { data: i, isLoading: s, isSuccess: a, isError: l, error: c } = Ve({
18352
+ const { projectName: n, packageName: r, versionId: o } = nt(), { data: i, isLoading: s, isSuccess: a, isError: l, error: c } = Ve({
18346
18353
  queryKey: ["models", n, r, o],
18347
18354
  queryFn: (x) => jb.listModels(n, r, o, x)
18348
18355
  }), [u, p] = O.useState(
@@ -18365,10 +18372,10 @@ function Vb({
18365
18372
  error: c,
18366
18373
  context: `${n} > ${r} > Model Picker`
18367
18374
  }
18368
- ) : /* @__PURE__ */ I(xe, { children: [
18369
- /* @__PURE__ */ I(Vs, { fullWidth: !0, children: [
18370
- s && /* @__PURE__ */ d(D, { children: "Loading..." }),
18371
- /* @__PURE__ */ I($e, { direction: "row", spacing: 1, children: [
18375
+ ) : /* @__PURE__ */ k(xe, { children: [
18376
+ /* @__PURE__ */ k(Vs, { fullWidth: !0, children: [
18377
+ s && /* @__PURE__ */ d(N, { children: "Loading..." }),
18378
+ /* @__PURE__ */ k(Te, { direction: "row", spacing: 1, children: [
18372
18379
  u.map((x) => /* @__PURE__ */ d(
18373
18380
  rc,
18374
18381
  {
@@ -18380,7 +18387,7 @@ function Vb({
18380
18387
  x
18381
18388
  )),
18382
18389
  /* @__PURE__ */ d(
18383
- nt,
18390
+ Ze,
18384
18391
  {
18385
18392
  size: "small",
18386
18393
  startIcon: /* @__PURE__ */ d(Bb, {}),
@@ -18391,16 +18398,16 @@ function Vb({
18391
18398
  )
18392
18399
  ] })
18393
18400
  ] }),
18394
- /* @__PURE__ */ I(
18401
+ /* @__PURE__ */ k(
18395
18402
  zo,
18396
18403
  {
18397
18404
  anchorEl: m,
18398
18405
  open: !!m,
18399
18406
  onClose: () => h(null),
18400
18407
  children: [
18401
- /* @__PURE__ */ d(D, { variant: "subtitle2", sx: { ml: 1 }, children: "Models" }),
18408
+ /* @__PURE__ */ d(N, { variant: "subtitle2", sx: { ml: 1 }, children: "Models" }),
18402
18409
  /* @__PURE__ */ d(De, {}),
18403
- b.length === 0 ? /* @__PURE__ */ d(cn, { disabled: !0, children: "No models available" }) : b.map((x) => /* @__PURE__ */ d(cn, { onClick: () => y(x), children: /* @__PURE__ */ d(D, { variant: "body2", children: x }) }, x))
18410
+ b.length === 0 ? /* @__PURE__ */ d(cn, { disabled: !0, children: "No models available" }) : b.map((x) => /* @__PURE__ */ d(cn, { onClick: () => y(x), children: /* @__PURE__ */ d(N, { variant: "body2", children: x }) }, x))
18404
18411
  ]
18405
18412
  }
18406
18413
  )
@@ -18413,7 +18420,7 @@ function S0({
18413
18420
  expandEmbeddings: n,
18414
18421
  hideEmbeddingIcons: r
18415
18422
  }) {
18416
- const o = el(), { projectName: i, packageName: s, versionId: a } = tt(), { server: l, accessToken: c } = Ci(), { notebookStorage: u, userContext: p } = Al();
18423
+ const o = el(), { projectName: i, packageName: s, versionId: a } = nt(), { server: l, accessToken: c } = Ci(), { notebookStorage: u, userContext: p } = Al();
18417
18424
  if (!i || !s)
18418
18425
  throw new Error(
18419
18426
  "Project and package must be provided via PubliserPackageProvider"
@@ -18426,14 +18433,14 @@ function S0({
18426
18433
  []
18427
18434
  ), [v, w] = O.useState(
18428
18435
  null
18429
- ), [P, N] = O.useState(null), V = !!v, F = () => {
18430
- w(null), N(null);
18436
+ ), [P, M] = O.useState(null), V = !!v, F = () => {
18437
+ w(null), M(null);
18431
18438
  }, g = (Y, G) => {
18432
18439
  m.insertCell(G, {
18433
18440
  isMarkdown: Y,
18434
18441
  value: ""
18435
18442
  }), q(), Y ? x(G) : y(G), F();
18436
- }, [R, A] = O.useState(!1), $ = () => {
18443
+ }, [R, A] = O.useState(!1), D = () => {
18437
18444
  A(!0);
18438
18445
  }, j = (Y) => {
18439
18446
  e && u && p && u.deleteNotebook(p, e), A(!1), o(`/${i}/${s}`, Y);
@@ -18493,7 +18500,7 @@ function S0({
18493
18500
  });
18494
18501
  return G;
18495
18502
  }, le = (Y, G) => /* @__PURE__ */ d(
18496
- nt,
18503
+ Ze,
18497
18504
  {
18498
18505
  size: "small",
18499
18506
  startIcon: /* @__PURE__ */ d(Yf, {}),
@@ -18510,7 +18517,7 @@ function S0({
18510
18517
  },
18511
18518
  children: Y ? "Markdown" : "Explore"
18512
18519
  }
18513
- ), H = /* @__PURE__ */ I(
18520
+ ), H = /* @__PURE__ */ k(
18514
18521
  Z,
18515
18522
  {
18516
18523
  sx: {
@@ -18525,9 +18532,9 @@ function S0({
18525
18532
  ]
18526
18533
  }
18527
18534
  );
18528
- return /* @__PURE__ */ I(Re, { variant: "outlined", children: [
18529
- /* @__PURE__ */ I(qe, { children: [
18530
- /* @__PURE__ */ I(
18535
+ return /* @__PURE__ */ k(_e, { variant: "outlined", children: [
18536
+ /* @__PURE__ */ k(qe, { children: [
18537
+ /* @__PURE__ */ k(
18531
18538
  Yt,
18532
18539
  {
18533
18540
  sx: {
@@ -18536,9 +18543,9 @@ function S0({
18536
18543
  alignItems: "center"
18537
18544
  },
18538
18545
  children: [
18539
- /* @__PURE__ */ I(Yt, { direction: "row", spacing: 1, alignItems: "center", children: [
18546
+ /* @__PURE__ */ k(Yt, { direction: "row", spacing: 1, alignItems: "center", children: [
18540
18547
  /* @__PURE__ */ d(
18541
- D,
18548
+ N,
18542
18549
  {
18543
18550
  variant: "overline",
18544
18551
  sx: {
@@ -18550,7 +18557,7 @@ function S0({
18550
18557
  }
18551
18558
  ),
18552
18559
  /* @__PURE__ */ d(
18553
- D,
18560
+ N,
18554
18561
  {
18555
18562
  variant: "subtitle2",
18556
18563
  sx: {
@@ -18563,7 +18570,7 @@ function S0({
18563
18570
  }
18564
18571
  )
18565
18572
  ] }),
18566
- /* @__PURE__ */ I(Yt, { sx: { display: "flex", flexDirection: "row", gap: 1 }, children: [
18573
+ /* @__PURE__ */ k(Yt, { sx: { display: "flex", flexDirection: "row", gap: 1 }, children: [
18567
18574
  /* @__PURE__ */ d(
18568
18575
  Z,
18569
18576
  {
@@ -18576,7 +18583,7 @@ function S0({
18576
18583
  children: /* @__PURE__ */ d(zb, { notebookData: m })
18577
18584
  }
18578
18585
  ),
18579
- /* @__PURE__ */ I(
18586
+ /* @__PURE__ */ k(
18580
18587
  Z,
18581
18588
  {
18582
18589
  sx: {
@@ -18587,29 +18594,29 @@ function S0({
18587
18594
  },
18588
18595
  children: [
18589
18596
  /* @__PURE__ */ d(
18590
- nt,
18597
+ Ze,
18591
18598
  {
18592
18599
  color: "error",
18593
- onClick: $,
18600
+ onClick: D,
18594
18601
  size: "small",
18595
18602
  children: "Delete"
18596
18603
  }
18597
18604
  ),
18598
- /* @__PURE__ */ I(
18605
+ /* @__PURE__ */ k(
18599
18606
  sn,
18600
18607
  {
18601
18608
  open: R,
18602
18609
  onClose: K,
18603
18610
  children: [
18604
18611
  /* @__PURE__ */ d(an, { children: "Delete Notebook" }),
18605
- /* @__PURE__ */ d(ln, { children: /* @__PURE__ */ I(oc, { children: [
18612
+ /* @__PURE__ */ d(ln, { children: /* @__PURE__ */ k(oc, { children: [
18606
18613
  'Are you sure you want to delete the notebook "',
18607
18614
  e,
18608
18615
  '"? This action cannot be undone.'
18609
18616
  ] }) }),
18610
- /* @__PURE__ */ I(js, { children: [
18617
+ /* @__PURE__ */ k(js, { children: [
18611
18618
  /* @__PURE__ */ d(
18612
- nt,
18619
+ Ze,
18613
18620
  {
18614
18621
  onClick: K,
18615
18622
  color: "primary",
@@ -18618,7 +18625,7 @@ function S0({
18618
18625
  }
18619
18626
  ),
18620
18627
  /* @__PURE__ */ d(
18621
- nt,
18628
+ Ze,
18622
18629
  {
18623
18630
  onClick: (Y) => j(Y),
18624
18631
  color: "error",
@@ -18639,7 +18646,7 @@ function S0({
18639
18646
  }
18640
18647
  ),
18641
18648
  /* @__PURE__ */ d(De, {}),
18642
- /* @__PURE__ */ I(
18649
+ /* @__PURE__ */ k(
18643
18650
  Yt,
18644
18651
  {
18645
18652
  sx: {
@@ -18663,10 +18670,10 @@ function S0({
18663
18670
  }
18664
18671
  )
18665
18672
  ] }),
18666
- /* @__PURE__ */ d(qr, { children: /* @__PURE__ */ I(Yt, { children: [
18667
- m.getCells().length === 0 && /* @__PURE__ */ I(xe, { children: [
18673
+ /* @__PURE__ */ d(qr, { children: /* @__PURE__ */ k(Yt, { children: [
18674
+ m.getCells().length === 0 && /* @__PURE__ */ k(xe, { children: [
18668
18675
  /* @__PURE__ */ d(
18669
- D,
18676
+ N,
18670
18677
  {
18671
18678
  sx: {
18672
18679
  textAlign: "center",
@@ -18678,7 +18685,7 @@ function S0({
18678
18685
  }
18679
18686
  ),
18680
18687
  /* @__PURE__ */ d(
18681
- D,
18688
+ N,
18682
18689
  {
18683
18690
  variant: "body2",
18684
18691
  sx: { textAlign: "center", mb: 2, variant: "body2" },
@@ -18718,7 +18725,7 @@ function S0({
18718
18725
  `${G}-${m.getCells().length}`
18719
18726
  )),
18720
18727
  H,
18721
- /* @__PURE__ */ I(
18728
+ /* @__PURE__ */ k(
18722
18729
  zo,
18723
18730
  {
18724
18731
  anchorEl: v,
@@ -18755,7 +18762,7 @@ function zb({
18755
18762
  notebookData: e
18756
18763
  }) {
18757
18764
  const [t, n] = O.useState(!1);
18758
- return /* @__PURE__ */ d(nt, { color: "primary", onClick: async () => {
18765
+ return /* @__PURE__ */ d(Ze, { color: "primary", onClick: async () => {
18759
18766
  if (!e) return;
18760
18767
  const o = e.toMalloyNotebook();
18761
18768
  try {
@@ -18771,7 +18778,7 @@ function Ub({
18771
18778
  const { notebookStorage: t, userContext: n } = Al(), [r, o] = O.useState([]);
18772
18779
  return O.useEffect(() => {
18773
18780
  t && n && o(t.listNotebooks(n));
18774
- }, [t, n]), /* @__PURE__ */ I(xe, { children: [
18781
+ }, [t, n]), /* @__PURE__ */ k(xe, { children: [
18775
18782
  /* @__PURE__ */ d(De, {}),
18776
18783
  /* @__PURE__ */ d(
18777
18784
  Z,
@@ -18790,7 +18797,7 @@ function Ub({
18790
18797
  borderRadius: "4px"
18791
18798
  }
18792
18799
  },
18793
- children: /* @__PURE__ */ I(Or, { dense: !0, children: [
18800
+ children: /* @__PURE__ */ k(Or, { dense: !0, children: [
18794
18801
  r.length === 0 && /* @__PURE__ */ d(Zt, { children: /* @__PURE__ */ d(
18795
18802
  St,
18796
18803
  {
@@ -18823,11 +18830,11 @@ function Gb() {
18823
18830
  queryKey: ["about", e],
18824
18831
  queryFn: (i) => Hb.getProject(e, !1, i)
18825
18832
  });
18826
- return /* @__PURE__ */ I(xe, { children: [
18833
+ return /* @__PURE__ */ k(xe, { children: [
18827
18834
  !n && !r && /* @__PURE__ */ d(ze, { text: "Fetching About..." }),
18828
- n && /* @__PURE__ */ I(Re, { variant: "outlined", sx: { p: 2 }, children: [
18829
- /* @__PURE__ */ d(D, { variant: "overline", fontWeight: "bold", sx: { mb: 1 }, children: "Readme" }),
18830
- /* @__PURE__ */ d(Re, { sx: { p: 1 }, children: /* @__PURE__ */ d(Uo, { children: t.data.readme }) })
18835
+ n && /* @__PURE__ */ k(_e, { variant: "outlined", sx: { p: 2 }, children: [
18836
+ /* @__PURE__ */ d(N, { variant: "overline", fontWeight: "bold", sx: { mb: 1 }, children: "Readme" }),
18837
+ /* @__PURE__ */ d(_e, { sx: { p: 1 }, children: /* @__PURE__ */ d(Uo, { children: t.data.readme }) })
18831
18838
  ] }),
18832
18839
  r && /* @__PURE__ */ d(je, { error: o, context: `${e} > About` })
18833
18840
  ] });
@@ -18838,16 +18845,16 @@ function qb({ navigate: e }) {
18838
18845
  queryKey: ["packages", t],
18839
18846
  queryFn: (s) => Wb.listPackages(t, s)
18840
18847
  });
18841
- return /* @__PURE__ */ I(xe, { children: [
18848
+ return /* @__PURE__ */ k(xe, { children: [
18842
18849
  !r && !o && /* @__PURE__ */ d(ze, { text: "Fetching Packages..." }),
18843
- r && /* @__PURE__ */ I(Re, { variant: "outlined", sx: { p: 2 }, children: [
18844
- /* @__PURE__ */ d(D, { variant: "overline", fontWeight: "bold", sx: { mb: 1 }, children: "Packages" }),
18845
- /* @__PURE__ */ d(Ne, { container: !0, spacing: 2, columns: 12, children: n.data.sort((s, a) => s.name.localeCompare(a.name)).map((s) => /* @__PURE__ */ d(
18846
- Ne,
18850
+ r && /* @__PURE__ */ k(_e, { variant: "outlined", sx: { p: 2 }, children: [
18851
+ /* @__PURE__ */ d(N, { variant: "overline", fontWeight: "bold", sx: { mb: 1 }, children: "Packages" }),
18852
+ /* @__PURE__ */ d(Me, { container: !0, spacing: 2, columns: 12, children: n.data.sort((s, a) => s.name.localeCompare(a.name)).map((s) => /* @__PURE__ */ d(
18853
+ Me,
18847
18854
  {
18848
18855
  size: { xs: 12, sm: 12, md: 12, lg: 4 },
18849
18856
  children: /* @__PURE__ */ d(
18850
- Re,
18857
+ _e,
18851
18858
  {
18852
18859
  variant: "outlined",
18853
18860
  sx: {
@@ -18859,9 +18866,9 @@ function qb({ navigate: e }) {
18859
18866
  }
18860
18867
  },
18861
18868
  onClick: (a) => e(s.name + "/", a),
18862
- children: /* @__PURE__ */ I(qe, { children: [
18869
+ children: /* @__PURE__ */ k(qe, { children: [
18863
18870
  /* @__PURE__ */ d(
18864
- D,
18871
+ N,
18865
18872
  {
18866
18873
  variant: "overline",
18867
18874
  color: "primary.main",
@@ -18875,7 +18882,7 @@ function qb({ navigate: e }) {
18875
18882
  maxHeight: "120px",
18876
18883
  overflowY: "auto"
18877
18884
  },
18878
- children: /* @__PURE__ */ d(D, { variant: "body2", children: s.description })
18885
+ children: /* @__PURE__ */ d(N, { variant: "body2", children: s.description })
18879
18886
  }
18880
18887
  )
18881
18888
  ] })
@@ -18910,9 +18917,9 @@ function C0({
18910
18917
  return /* @__PURE__ */ d(Ol.Provider, { value: { projectName: t }, children: e });
18911
18918
  }
18912
18919
  function w0({ navigate: e }) {
18913
- return /* @__PURE__ */ I(Ne, { container: !0, spacing: 2, columns: 12, children: [
18914
- /* @__PURE__ */ d(Ne, { size: { xs: 12, md: 12 }, children: /* @__PURE__ */ d(qb, { navigate: e }) }),
18915
- /* @__PURE__ */ d(Ne, { size: { xs: 12, md: 12 }, children: /* @__PURE__ */ d(Gb, {}) })
18920
+ return /* @__PURE__ */ k(Me, { container: !0, spacing: 2, columns: 12, children: [
18921
+ /* @__PURE__ */ d(Me, { size: { xs: 12, md: 12 }, children: /* @__PURE__ */ d(qb, { navigate: e }) }),
18922
+ /* @__PURE__ */ d(Me, { size: { xs: 12, md: 12 }, children: /* @__PURE__ */ d(Gb, {}) })
18916
18923
  ] });
18917
18924
  }
18918
18925
  const Kb = new oa(new Be());
@@ -18921,15 +18928,15 @@ function v0({ navigate: e }) {
18921
18928
  queryKey: ["projects"],
18922
18929
  queryFn: (i) => Kb.listProjects(i)
18923
18930
  });
18924
- return r ? /* @__PURE__ */ d(je, { error: o, context: "Projects List" }) : n ? t.data.length === 0 ? /* @__PURE__ */ d(D, { variant: "h4", children: "No projects found" }) : t.data.length === 1 ? (e(`/${t.data[0].name}/`), /* @__PURE__ */ d(xe, {})) : /* @__PURE__ */ d(
18925
- Ne,
18931
+ return r ? /* @__PURE__ */ d(je, { error: o, context: "Projects List" }) : n ? t.data.length === 0 ? /* @__PURE__ */ d(N, { variant: "h4", children: "No projects found" }) : t.data.length === 1 ? (e(`/${t.data[0].name}/`), /* @__PURE__ */ d(xe, {})) : /* @__PURE__ */ d(
18932
+ Me,
18926
18933
  {
18927
18934
  container: !0,
18928
18935
  spacing: 2,
18929
18936
  columns: 12,
18930
18937
  sx: { mb: (i) => i.spacing(2) },
18931
- children: t.data.map((i) => /* @__PURE__ */ d(Ne, { children: /* @__PURE__ */ d(
18932
- D,
18938
+ children: t.data.map((i) => /* @__PURE__ */ d(Me, { children: /* @__PURE__ */ d(
18939
+ N,
18933
18940
  {
18934
18941
  variant: "h1",
18935
18942
  onClick: (s) => e(`/${i.name}/`, s),
@@ -18962,115 +18969,136 @@ function k0({
18962
18969
  S
18963
18970
  ), r("");
18964
18971
  };
18965
- return /* @__PURE__ */ I(xe, { children: [
18972
+ return /* @__PURE__ */ k(xe, { children: [
18966
18973
  /* @__PURE__ */ d(
18967
- nt,
18974
+ Ze,
18968
18975
  {
18969
18976
  "aria-controls": p ? "basic-menu" : void 0,
18970
18977
  "aria-haspopup": "true",
18971
18978
  "aria-expanded": p ? "true" : void 0,
18972
18979
  onClick: m,
18973
- sx: { height: "40px" },
18980
+ variant: "contained",
18981
+ sx: {
18982
+ height: "40px",
18983
+ px: 2,
18984
+ backgroundColor: "#fbbb04",
18985
+ "&:hover": {
18986
+ backgroundColor: "#eab308"
18987
+ }
18988
+ },
18974
18989
  children: "Analyze Package"
18975
18990
  }
18976
18991
  ),
18977
- /* @__PURE__ */ I(
18992
+ /* @__PURE__ */ k(
18978
18993
  zo,
18979
18994
  {
18980
18995
  id: "basic-menu",
18981
18996
  anchorEl: o,
18982
18997
  open: p,
18983
18998
  onClose: h,
18984
- slotProps: {
18985
- list: {
18986
- "aria-labelledby": "basic-button"
18987
- }
18999
+ MenuListProps: {
19000
+ "aria-labelledby": "basic-button",
19001
+ sx: { py: 0.5 }
18988
19002
  },
18989
19003
  children: [
18990
- /* @__PURE__ */ I(
19004
+ /* @__PURE__ */ k(
18991
19005
  cn,
18992
19006
  {
18993
19007
  onClick: () => {
18994
19008
  a(!0), h();
18995
19009
  },
19010
+ sx: { py: 1, px: 2 },
18996
19011
  children: [
18997
19012
  /* @__PURE__ */ d(Pi, { children: /* @__PURE__ */ d(bc, { fontSize: "small" }) }),
18998
- /* @__PURE__ */ d(St, { children: /* @__PURE__ */ d(D, { variant: "body2", children: "New Workbook" }) })
19013
+ /* @__PURE__ */ k(St, { children: [
19014
+ /* @__PURE__ */ d(N, { variant: "body2", fontWeight: 500, children: "New Workbook" }),
19015
+ /* @__PURE__ */ d(N, { variant: "caption", color: "text.secondary", children: "Create a new analysis workbook" })
19016
+ ] })
18999
19017
  ]
19000
19018
  }
19001
19019
  ),
19002
- /* @__PURE__ */ I(
19020
+ /* @__PURE__ */ k(
19003
19021
  cn,
19004
19022
  {
19005
19023
  onClick: () => {
19006
19024
  c(!0), h();
19007
19025
  },
19026
+ sx: { py: 1, px: 2 },
19008
19027
  children: [
19009
19028
  /* @__PURE__ */ d(Pi, { children: /* @__PURE__ */ d(xc, { fontSize: "small" }) }),
19010
- /* @__PURE__ */ d(St, { children: /* @__PURE__ */ d(D, { variant: "body2", children: "Open Workbook" }) })
19029
+ /* @__PURE__ */ k(St, { children: [
19030
+ /* @__PURE__ */ d(N, { variant: "body2", fontWeight: 500, children: "Open Workbook" }),
19031
+ /* @__PURE__ */ d(N, { variant: "caption", color: "text.secondary", children: "Open an existing workbook" })
19032
+ ] })
19011
19033
  ]
19012
19034
  }
19013
19035
  )
19014
19036
  ]
19015
19037
  }
19016
19038
  ),
19017
- /* @__PURE__ */ I(
19039
+ /* @__PURE__ */ k(
19018
19040
  sn,
19019
19041
  {
19020
19042
  open: s,
19021
19043
  onClose: y,
19022
- sx: {
19023
- "& .MuiDialog-paper": {
19024
- width: "100%",
19025
- maxWidth: "300px"
19026
- }
19027
- },
19044
+ maxWidth: "sm",
19045
+ fullWidth: !0,
19028
19046
  children: [
19029
- /* @__PURE__ */ d(an, { variant: "subtitle1", sx: { fontWeight: "medium" }, children: "Create Workbook" }),
19030
- /* @__PURE__ */ d(ln, { children: /* @__PURE__ */ I(
19031
- Vs,
19032
- {
19033
- sx: {
19034
- width: "100%",
19035
- display: "flex",
19036
- alignItems: "center",
19037
- gap: 2
19038
- },
19039
- children: [
19040
- /* @__PURE__ */ d(
19041
- ic,
19042
- {
19043
- label: "Workbook Name",
19044
- value: n,
19045
- onChange: (S) => r(S.target.value),
19046
- sx: {
19047
- width: "100%",
19048
- maxWidth: "400px",
19049
- mt: 1
19050
- }
19051
- }
19052
- ),
19053
- /* @__PURE__ */ d(nt, { onClick: (S) => x(S), children: "Create" })
19054
- ]
19055
- }
19056
- ) })
19047
+ /* @__PURE__ */ k(an, { sx: { pb: 1, pt: 2, px: 2 }, children: [
19048
+ /* @__PURE__ */ d(N, { variant: "h6", fontWeight: 600, sx: { mb: 0.5 }, children: "Create New Workbook" }),
19049
+ /* @__PURE__ */ d(N, { variant: "body2", color: "text.secondary", children: "Start a new analysis workbook to explore your data" })
19050
+ ] }),
19051
+ /* @__PURE__ */ d(ln, { sx: { px: 2, pb: 2 }, children: /* @__PURE__ */ k(Te, { spacing: 2, sx: { mt: 1 }, children: [
19052
+ /* @__PURE__ */ d(Vs, { fullWidth: !0, children: /* @__PURE__ */ d(
19053
+ ic,
19054
+ {
19055
+ label: "Workbook Name",
19056
+ value: n,
19057
+ onChange: (S) => r(S.target.value),
19058
+ placeholder: "Enter workbook name...",
19059
+ fullWidth: !0,
19060
+ autoFocus: !0,
19061
+ size: "small"
19062
+ }
19063
+ ) }),
19064
+ /* @__PURE__ */ k(Te, { direction: "row", spacing: 1, justifyContent: "flex-end", children: [
19065
+ /* @__PURE__ */ d(
19066
+ Ze,
19067
+ {
19068
+ onClick: y,
19069
+ variant: "outlined",
19070
+ size: "small",
19071
+ children: "Cancel"
19072
+ }
19073
+ ),
19074
+ /* @__PURE__ */ d(
19075
+ Ze,
19076
+ {
19077
+ onClick: (S) => x(S),
19078
+ variant: "contained",
19079
+ disabled: !n.trim(),
19080
+ size: "small",
19081
+ children: "Create Workbook"
19082
+ }
19083
+ )
19084
+ ] })
19085
+ ] }) })
19057
19086
  ]
19058
19087
  }
19059
19088
  ),
19060
- /* @__PURE__ */ I(
19089
+ /* @__PURE__ */ k(
19061
19090
  sn,
19062
19091
  {
19063
19092
  open: l,
19064
19093
  onClose: f,
19065
- sx: {
19066
- "& .MuiDialog-paper": {
19067
- width: "100%",
19068
- maxWidth: "300px"
19069
- }
19070
- },
19094
+ maxWidth: "md",
19095
+ fullWidth: !0,
19071
19096
  children: [
19072
- /* @__PURE__ */ d(an, { variant: "subtitle1", sx: { fontWeight: "medium" }, children: "Open Workbook" }),
19073
- /* @__PURE__ */ d(ln, { children: /* @__PURE__ */ d(
19097
+ /* @__PURE__ */ k(an, { sx: { pb: 1, pt: 2, px: 2 }, children: [
19098
+ /* @__PURE__ */ d(N, { variant: "h6", fontWeight: 600, sx: { mb: 0.5 }, children: "Open Workbook" }),
19099
+ /* @__PURE__ */ d(N, { variant: "body2", color: "text.secondary", children: "Select an existing workbook to continue your analysis" })
19100
+ ] }),
19101
+ /* @__PURE__ */ d(ln, { sx: { px: 2, pb: 2 }, children: /* @__PURE__ */ d(
19074
19102
  $b,
19075
19103
  {
19076
19104
  notebookStorage: new Qf(),
@@ -19098,9 +19126,9 @@ function I0({
19098
19126
  queryKey: ["tablePath", t, e],
19099
19127
  queryFn: (h) => wi.listSchemas(t, e, h)
19100
19128
  });
19101
- return /* @__PURE__ */ I(Ne, { container: !0, spacing: 2, children: [
19102
- /* @__PURE__ */ d(Ne, { size: { xs: 12, md: 6 }, children: /* @__PURE__ */ I(xo, { sx: { p: 2 }, children: [
19103
- /* @__PURE__ */ I(
19129
+ return /* @__PURE__ */ k(Me, { container: !0, spacing: 2, children: [
19130
+ /* @__PURE__ */ d(Me, { size: { xs: 12, md: 6 }, children: /* @__PURE__ */ k(xo, { sx: { p: 2 }, children: [
19131
+ /* @__PURE__ */ k(
19104
19132
  Z,
19105
19133
  {
19106
19134
  sx: {
@@ -19110,7 +19138,7 @@ function I0({
19110
19138
  mb: 1
19111
19139
  },
19112
19140
  children: [
19113
- /* @__PURE__ */ d(D, { variant: "overline", fontWeight: "bold", children: "Table Paths" }),
19141
+ /* @__PURE__ */ d(N, { variant: "overline", fontWeight: "bold", children: "Table Paths" }),
19114
19142
  /* @__PURE__ */ d(
19115
19143
  sc,
19116
19144
  {
@@ -19128,7 +19156,7 @@ function I0({
19128
19156
  }
19129
19157
  ),
19130
19158
  /* @__PURE__ */ d(De, {}),
19131
- /* @__PURE__ */ I(Z, { sx: { mt: "10px", maxHeight: "600px", overflowY: "auto" }, children: [
19159
+ /* @__PURE__ */ k(Z, { sx: { mt: "10px", maxHeight: "600px", overflowY: "auto" }, children: [
19132
19160
  m && /* @__PURE__ */ d(ze, { text: "Fetching Table Paths..." }),
19133
19161
  u && /* @__PURE__ */ d(
19134
19162
  je,
@@ -19137,7 +19165,7 @@ function I0({
19137
19165
  context: `${t} > ${e}`
19138
19166
  }
19139
19167
  ),
19140
- c && l.data.length === 0 && /* @__PURE__ */ d(D, { variant: "body2", children: "No Schemas" }),
19168
+ c && l.data.length === 0 && /* @__PURE__ */ d(N, { variant: "body2", children: "No Schemas" }),
19141
19169
  c && l.data.length > 0 && /* @__PURE__ */ d(Or, { dense: !0, disablePadding: !0, children: l.data.filter(
19142
19170
  ({ isHidden: h }) => s || !h
19143
19171
  ).sort((h, f) => h.isDefault === f.isDefault ? 0 : h.isDefault ? -1 : 1).map(
@@ -19153,7 +19181,7 @@ function I0({
19153
19181
  ) })
19154
19182
  ] })
19155
19183
  ] }) }),
19156
- /* @__PURE__ */ d(Ne, { size: { xs: 12, md: 6 }, children: o && /* @__PURE__ */ d(xo, { sx: { p: 2 }, children: /* @__PURE__ */ d(
19184
+ /* @__PURE__ */ d(Me, { size: { xs: 12, md: 6 }, children: o && /* @__PURE__ */ d(xo, { sx: { p: 2 }, children: /* @__PURE__ */ d(
19157
19185
  Yb,
19158
19186
  {
19159
19187
  connectionName: e,
@@ -19196,14 +19224,14 @@ function Qb({
19196
19224
  u
19197
19225
  )
19198
19226
  });
19199
- return s && i && console.log(i), /* @__PURE__ */ I(sn, { open: !0, onClose: r, maxWidth: "sm", fullWidth: !0, children: [
19200
- /* @__PURE__ */ I(an, { children: [
19227
+ return s && i && console.log(i), /* @__PURE__ */ k(sn, { open: !0, onClose: r, maxWidth: "sm", fullWidth: !0, children: [
19228
+ /* @__PURE__ */ k(an, { children: [
19201
19229
  "Table: ",
19202
19230
  t,
19203
19231
  ".",
19204
19232
  n,
19205
19233
  /* @__PURE__ */ d(
19206
- D,
19234
+ N,
19207
19235
  {
19208
19236
  fontSize: "large",
19209
19237
  variant: "body2",
@@ -19234,7 +19262,7 @@ function Qb({
19234
19262
  }
19235
19263
  )
19236
19264
  ] }),
19237
- /* @__PURE__ */ I(ln, { children: [
19265
+ /* @__PURE__ */ k(ln, { children: [
19238
19266
  c && /* @__PURE__ */ d(ze, { text: "Fetching Table Details..." }),
19239
19267
  a && /* @__PURE__ */ d(
19240
19268
  je,
@@ -19243,18 +19271,18 @@ function Qb({
19243
19271
  context: `${o} > ${e} > ${t}.${n}`
19244
19272
  }
19245
19273
  ),
19246
- s && i && /* @__PURE__ */ d(Fo, { children: /* @__PURE__ */ I(
19274
+ s && i && /* @__PURE__ */ d(Fo, { children: /* @__PURE__ */ k(
19247
19275
  Pn,
19248
19276
  {
19249
19277
  size: "small",
19250
19278
  sx: { "& .MuiTableCell-root": { padding: "10px" } },
19251
19279
  children: [
19252
- /* @__PURE__ */ d(pr, { children: /* @__PURE__ */ I(at, { children: [
19280
+ /* @__PURE__ */ d(pr, { children: /* @__PURE__ */ k(at, { children: [
19253
19281
  /* @__PURE__ */ d(ne, { children: "NAME" }),
19254
19282
  /* @__PURE__ */ d(ne, { children: "TYPE" })
19255
19283
  ] }) }),
19256
19284
  /* @__PURE__ */ d(Rn, { children: i.data.columns?.map(
19257
- (u) => /* @__PURE__ */ I(at, { children: [
19285
+ (u) => /* @__PURE__ */ k(at, { children: [
19258
19286
  /* @__PURE__ */ d(ne, { children: u.name }),
19259
19287
  /* @__PURE__ */ d(ne, { children: u.type })
19260
19288
  ] }, u.name)
@@ -19279,13 +19307,13 @@ function Yb({
19279
19307
  c
19280
19308
  )
19281
19309
  });
19282
- return /* @__PURE__ */ I(xe, { children: [
19283
- /* @__PURE__ */ I(D, { variant: "overline", fontWeight: "bold", children: [
19310
+ return /* @__PURE__ */ k(xe, { children: [
19311
+ /* @__PURE__ */ k(N, { variant: "overline", fontWeight: "bold", children: [
19284
19312
  "Tables in ",
19285
19313
  t
19286
19314
  ] }),
19287
19315
  /* @__PURE__ */ d(De, {}),
19288
- /* @__PURE__ */ I(Z, { sx: { mt: "10px", maxHeight: "600px", overflowY: "auto" }, children: [
19316
+ /* @__PURE__ */ k(Z, { sx: { mt: "10px", maxHeight: "600px", overflowY: "auto" }, children: [
19289
19317
  l && /* @__PURE__ */ d(ze, { text: "Fetching Tables..." }),
19290
19318
  s && /* @__PURE__ */ d(
19291
19319
  je,
@@ -19294,7 +19322,7 @@ function Yb({
19294
19322
  context: `${r} > ${e} > ${t}`
19295
19323
  }
19296
19324
  ),
19297
- i && o.data.length === 0 && /* @__PURE__ */ d(D, { variant: "body2", children: "No Tables" }),
19325
+ i && o.data.length === 0 && /* @__PURE__ */ d(N, { variant: "body2", children: "No Tables" }),
19298
19326
  i && o.data.length > 0 && /* @__PURE__ */ d(Or, { dense: !0, disablePadding: !0, children: o.data.map((c) => /* @__PURE__ */ d(
19299
19327
  Fs,
19300
19328
  {
@@ -19328,9 +19356,9 @@ export {
19328
19356
  Xa as SourceExplorerComponent,
19329
19357
  Ya as SourcesExplorer,
19330
19358
  Al as useNotebookStorage,
19331
- tt as usePackage,
19359
+ nt as usePackage,
19332
19360
  Wn as useProject,
19333
- tt as usePublisherPackage,
19361
+ nt as usePublisherPackage,
19334
19362
  el as useRouterClickHandler,
19335
19363
  Ci as useServer
19336
19364
  };