@marimo-team/islands 0.23.3-dev43 → 0.23.3-dev45

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.
@@ -2,17 +2,17 @@ var __defProp = Object.defineProperty;
2
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
3
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
4
  import { s as __toESM, t as __commonJSMin } from "./chunk-BNovOVIE.js";
5
- import { _ as Logger, c as Objects, g as cn, h as Events, p as composeRefs, r as cva, t as Button, v as Functions } from "./button-CA5pI2YF.js";
5
+ import { _ as Logger, c as Objects, g as cn, h as Events, m as useComposedRefs, p as composeRefs, r as cva, t as Button, v as Functions } from "./button-CA5pI2YF.js";
6
6
  import { t as require_react } from "./react-DA-nE2FX.js";
7
7
  import { t as require_compiler_runtime } from "./compiler-runtime-CEbnTgxf.js";
8
8
  import { n as Copy, r as toast, t as copyToClipboard } from "./copy-TGGAUEWp.js";
9
9
  import { $ as useCellActions, $t as getTracebackInfo, A as ChevronRightIcon, Bn as import_lib, C as AccordionContent, Ft as jotaiJsonStorage, I as base64ToUint8Array, Jt as useRequestClient, Kt as getRequestClient, Lt as PluralWord, M as PinLeftIcon, Mn as FileText, Mt as useChromeActions, N as PinRightIcon, O as CheckIcon, On as NotebookPen, Pt as adaptForLocalStorage, Qt as extractAllTracebackInfo, R as extractBase64FromDataURL, Rn as Braces, S as Accordion, St as Checkbox, T as AccordionTrigger, Tn as Wrench, V as renderHTML, Y as notebookAtom, Zt as elementContainsMarimoCellFile, _n as atomWithStorage, _t as getCellDomProps, at as AnsiUp, bn as Close$1, c as Popover, cn as SCRATCH_CELL_ID, d as PopoverTrigger, dt as outputIsLoading, et as useCellIds, g as getDatasourceContext, gt as DATA_CELL_ID, hn as jsonToTSV, ht as sanitizeHtml, j as DotFilledIcon, kn as LoaderCircle, kt as goToCellLine, l as PopoverClose$1, lt as useInstallAllowed, m as useExpandedOutput, mn as jsonToMarkdown, n as MarkdownRenderer, nn as filenameAtom, on as CellOutputId, pn as jsonParseWithSpecialChar, q as getCellEditorView, s as Spinner, sn as HTMLCellId, t as toPng, tt as useCellNames, u as PopoverContent, ut as viewStateAtom, vt as displayCellName, w as AccordionItem, z as isDataURLString, zn as esm_default, zt as DATA_TYPE_ICON, __tla as __tla_0 } from "./html-to-image-DBosi5GK.js";
10
- import { u as createLucideIcon } from "./dist-ESg7xyoD.js";
10
+ import { o as useSize, u as createLucideIcon } from "./dist-ESg7xyoD.js";
11
11
  import { i as createReducerAndAtoms, r as Badge } from "./useLifecycle-smVfjLNI.js";
12
12
  import { a as ListFilter, i as Table$1, o as ChartPie, t as $896ba0a80a8f4d36$export$85fd5fdf27bacc79 } from "./useDateFormatter-B3mCQMP3.js";
13
13
  import { t as Check } from "./check-CFM2mVDr.js";
14
- import { C as $a916eb452884faea$export$b7a616150fdb9f44, F as X, L as ChevronDown, N as useDirection, S as logNever, T as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7, _ as menuItemVariants, b as menuSubTriggerVariants, c as SelectSeparator, g as menuControlVariants, h as menuControlCheckVariants, i as SelectContent, l as SelectTrigger, m as menuContentCommon, n as capitalize, o as SelectItem, p as MENU_ITEM_DISABLED, r as Select, t as Strings, u as SelectValue, v as menuLabelVariants, x as assertNever, y as menuSeparatorVariants } from "./strings-B_FOH6eV.js";
15
- import { $t as Portal, G as marked, Gt as Anchor2, Jt as Content2$1, Kt as Arrow2, Qt as Label, Xt as Item2$1, Yt as Group, Zt as ItemIndicator, _ as DropdownMenuSub, a as NumberField, an as SubContent, b as DropdownMenuTrigger, c as prettyNumber, cn as Item, d as DropdownMenuContent, dn as Search, en as RadioGroup, g as DropdownMenuSeparator, h as DropdownMenuPortal, in as Sub, l as prettyScientificNumber, ln as Root$1, m as DropdownMenuLabel, nn as Root3, o as maxFractionalDigits, on as SubTrigger, p as DropdownMenuItem, pn as ChevronRight, qt as CheckboxItem, r as Input, rn as Separator, s as prettyEngineeringNumber, sn as createMenuScope, tn as RadioItem, u as DropdownMenu, un as createRovingFocusGroupScope, v as DropdownMenuSubContent, y as DropdownMenuSubTrigger } from "./input-Drx1pguW.js";
14
+ import { C as $a916eb452884faea$export$b7a616150fdb9f44, F as X, L as ChevronDown, M as usePrevious$1, N as useDirection, S as logNever, T as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7, _ as menuItemVariants, b as menuSubTriggerVariants, c as SelectSeparator, g as menuControlVariants, h as menuControlCheckVariants, i as SelectContent, l as SelectTrigger, m as menuContentCommon, n as capitalize, o as SelectItem, p as MENU_ITEM_DISABLED, r as Select, t as Strings, u as SelectValue, v as menuLabelVariants, x as assertNever, y as menuSeparatorVariants } from "./strings-B_FOH6eV.js";
15
+ import { $t as Portal, G as marked, Gt as Anchor2, Jt as Content2$1, Kt as Arrow2, Qt as Label, Xt as Item2$2, Yt as Group, Zt as ItemIndicator, _ as DropdownMenuSub, a as NumberField, an as SubContent, b as DropdownMenuTrigger, c as prettyNumber, cn as Item, d as DropdownMenuContent, dn as Search, en as RadioGroup$2, fn as Circle, g as DropdownMenuSeparator, h as DropdownMenuPortal, in as Sub, l as prettyScientificNumber, ln as Root$1, m as DropdownMenuLabel, nn as Root3, o as maxFractionalDigits, on as SubTrigger, p as DropdownMenuItem, pn as ChevronRight, qt as CheckboxItem, r as Input, rn as Separator, s as prettyEngineeringNumber, sn as createMenuScope, tn as RadioItem, u as DropdownMenu, un as createRovingFocusGroupScope, v as DropdownMenuSubContent, y as DropdownMenuSubTrigger } from "./input-Drx1pguW.js";
16
16
  import { a as millisecondsInMinute, c as asRemoteURL, d as isUrl, h as isWasm, i as millisecondsInHour, n as constructFrom, o as millisecondsInSecond, r as millisecondsInDay, s as millisecondsInWeek, t as toDate } from "./toDate-yqOcZ_tY.js";
17
17
  import { n as clsx_default } from "./clsx-CyyyQ8Ue.js";
18
18
  import { t as require_react_dom } from "./react-dom-BWRJ_g_k.js";
@@ -34,7 +34,7 @@ import { n as formats } from "./vega-loader.browser-3_z8GoFC.js";
34
34
  import { a as getContainerWidth, n as vegaLoadData, r as createBatchedLoader, s as tooltipHandler, t as parseCsvData } from "./loader-BvW0-YWZ.js";
35
35
  import { t as useIframeCapabilities } from "./useIframeCapabilities-DbdLoEDm.js";
36
36
  import { t as useAsyncData } from "./useAsyncData-CKYzhCis.js";
37
- let CommandItem, TableHeader, usePrevious, Toggle, Download, TableBody, ChevronsDownUp, Table, ChevronsLeft, renderCellValue, SELECT_COLUMN_ID, loadTableAndRawData, ColumnChartContext, getMimeValues, TOO_MANY_ROWS, ColumnChartSpecModel, NAMELESS_COLUMN_PREFIX, generateColumns, TableCell, ChevronLeft, inferFieldTypes, CommandInput, DelayMount, slotsController, Ellipsis, Provider$1, ChevronsRight, loadTableData, getPageIndexForRow, INDEX_COLUMN_NAME, Command, filtersToFilterGroup, CommandEmpty, contextAwarePanelOpen, isStaticNotebook, DataTable, TabsList, isCellAwareAtom, Funnel, downloadBlob, ChartInfoState, Filenames, useOverflowDetection, CommandList, prettifyRowColumnCount, RenderTextWithLinks, PANEL_TYPES, getStaticVirtualFiles, ContextAwarePanelItem, EmotionCacheProvider, OutputRenderer, TabsContent, TableRow, TableHead, ArrowDownWideNarrow, downloadByURL, ChartLoadingState, useInternalStateWithSync, HtmlOutput, JsonOutput, Maps, InstallPackageButton, TabsTrigger, prettifyRowCount, Kbd, toFieldTypes, OutputArea, Tabs, ADD_PRINTING_CLASS, ChartErrorState, Slide, CommandSeparator, downloadHTMLAsImage, LazyVegaEmbed, contextAwarePanelOwner, TextWrap, Fill, ChevronsUpDown, SlotNames, Expand, contextAwarePanelType, GripHorizontal, useIntersectionObserver;
37
+ let toFieldTypes, Fill, Download, inferFieldTypes, contextAwarePanelOpen, isStaticNotebook, SlotNames, EyeOff, isCellAwareAtom, Funnel, TableHead, ChevronLeft, useIntersectionObserver, ColumnChartContext, TableHeader, ArrowDownWideNarrow, loadTableAndRawData, usePrevious, TableRow, Table, ChevronsRight, TableBody, ChevronsLeft, slotsController, Expand, TableCell, ChevronsDownUp, TOO_MANY_ROWS, NAMELESS_COLUMN_PREFIX, PANEL_TYPES, getStaticVirtualFiles, contextAwarePanelType, GripHorizontal, ColumnChartSpecModel, renderCellValue, DelayMount, INDEX_COLUMN_NAME, loadTableData, SELECT_COLUMN_ID, Filenames, useOverflowDetection, Slide, CommandItem, useInternalStateWithSync, HtmlOutput, JsonOutput, Maps, DataTable, TabsList, getMimeValues, InstallPackageButton, TabsTrigger, downloadHTMLAsImage, LazyVegaEmbed, downloadByURL, ChartLoadingState, SlideSidebar, CommandInput, Provider$1, ChevronsUpDown, Toggle, Ellipsis, OutputArea, Tabs, downloadBlob, ChartInfoState, DEFAULT_SLIDE_TYPE, Command, RadioGroup, CommandList, ADD_PRINTING_CLASS, ChartErrorState, getPageIndexForRow, SLIDE_TYPE_OPTIONS_BY_VALUE, CommandEmpty, RadioGroupItem, CommandSeparator, DEFAULT_DECK_TRANSITION, filtersToFilterGroup, OutputRenderer, TabsContent, prettifyRowColumnCount, RenderTextWithLinks, contextAwarePanelOwner, TextWrap, ContextAwarePanelItem, EmotionCacheProvider, prettifyRowCount, Kbd, generateColumns;
38
38
  let __tla = Promise.all([
39
39
  (() => {
40
40
  try {
@@ -44,7 +44,7 @@ let __tla = Promise.all([
44
44
  })()
45
45
  ]).then(async () => {
46
46
  var _a;
47
- let ArrowUpNarrowWide, BrickWall, BugPlay, ChartSpline, ExternalLink, FunnelPlus, FunnelX, ListFilterPlus, MessageCircle, Minus, Package, PanelRight, PinOff, Sparkles, SquareArrowOutUpRight, SquareStack, Terminal, TextAlignJustify, TextAlignStart, require_use_sync_external_store_shim_production, require_shim, import_react, import_jsx_runtime, CONTEXT_MENU_NAME, createContextMenuContext, createContextMenuScope, useMenuScope, ContextMenuProvider, useContextMenuContext, ContextMenu$1;
47
+ let ArrowUpNarrowWide, BrickWall, BugPlay, ChartSpline, Cookie, ExternalLink, FunnelPlus, FunnelX, LayoutTemplate, ListFilterPlus, MessageCircle, Minus, Package, PanelRightClose, PanelRightOpen, PanelRight, PinOff, Rows2, Sparkles, SquareArrowOutUpRight, SquareStack, Terminal, TextAlignJustify, TextAlignStart, require_use_sync_external_store_shim_production, require_shim, import_react, import_jsx_runtime, CONTEXT_MENU_NAME, createContextMenuContext, createContextMenuScope, useMenuScope, ContextMenuProvider, useContextMenuContext, ContextMenu$1;
48
48
  ArrowDownWideNarrow = createLucideIcon("arrow-down-wide-narrow", [
49
49
  [
50
50
  "path",
@@ -335,6 +335,50 @@ let __tla = Promise.all([
335
335
  }
336
336
  ]
337
337
  ]);
338
+ Cookie = createLucideIcon("cookie", [
339
+ [
340
+ "path",
341
+ {
342
+ d: "M12 2a10 10 0 1 0 10 10 4 4 0 0 1-5-5 4 4 0 0 1-5-5",
343
+ key: "laymnq"
344
+ }
345
+ ],
346
+ [
347
+ "path",
348
+ {
349
+ d: "M8.5 8.5v.01",
350
+ key: "ue8clq"
351
+ }
352
+ ],
353
+ [
354
+ "path",
355
+ {
356
+ d: "M16 15.5v.01",
357
+ key: "14dtrp"
358
+ }
359
+ ],
360
+ [
361
+ "path",
362
+ {
363
+ d: "M12 12v.01",
364
+ key: "u5ubse"
365
+ }
366
+ ],
367
+ [
368
+ "path",
369
+ {
370
+ d: "M11 17v.01",
371
+ key: "1hyl5a"
372
+ }
373
+ ],
374
+ [
375
+ "path",
376
+ {
377
+ d: "M7 14v.01",
378
+ key: "uct60s"
379
+ }
380
+ ]
381
+ ]);
338
382
  Download = createLucideIcon("download", [
339
383
  [
340
384
  "path",
@@ -468,6 +512,36 @@ let __tla = Promise.all([
468
512
  }
469
513
  ]
470
514
  ]);
515
+ EyeOff = createLucideIcon("eye-off", [
516
+ [
517
+ "path",
518
+ {
519
+ d: "M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",
520
+ key: "ct8e1f"
521
+ }
522
+ ],
523
+ [
524
+ "path",
525
+ {
526
+ d: "M14.084 14.158a3 3 0 0 1-4.242-4.242",
527
+ key: "151rxh"
528
+ }
529
+ ],
530
+ [
531
+ "path",
532
+ {
533
+ d: "M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",
534
+ key: "13bj9a"
535
+ }
536
+ ],
537
+ [
538
+ "path",
539
+ {
540
+ d: "m2 2 20 20",
541
+ key: "1ooewy"
542
+ }
543
+ ]
544
+ ]);
471
545
  FunnelPlus = createLucideIcon("funnel-plus", [
472
546
  [
473
547
  "path",
@@ -579,6 +653,41 @@ let __tla = Promise.all([
579
653
  }
580
654
  ]
581
655
  ]);
656
+ LayoutTemplate = createLucideIcon("layout-template", [
657
+ [
658
+ "rect",
659
+ {
660
+ width: "18",
661
+ height: "7",
662
+ x: "3",
663
+ y: "3",
664
+ rx: "1",
665
+ key: "f1a2em"
666
+ }
667
+ ],
668
+ [
669
+ "rect",
670
+ {
671
+ width: "9",
672
+ height: "7",
673
+ x: "3",
674
+ y: "14",
675
+ rx: "1",
676
+ key: "jqznyg"
677
+ }
678
+ ],
679
+ [
680
+ "rect",
681
+ {
682
+ width: "5",
683
+ height: "7",
684
+ x: "16",
685
+ y: "14",
686
+ rx: "1",
687
+ key: "q5h2i8"
688
+ }
689
+ ]
690
+ ]);
582
691
  ListFilterPlus = createLucideIcon("list-filter-plus", [
583
692
  [
584
693
  "path",
@@ -664,6 +773,60 @@ let __tla = Promise.all([
664
773
  }
665
774
  ]
666
775
  ]);
776
+ PanelRightClose = createLucideIcon("panel-right-close", [
777
+ [
778
+ "rect",
779
+ {
780
+ width: "18",
781
+ height: "18",
782
+ x: "3",
783
+ y: "3",
784
+ rx: "2",
785
+ key: "afitv7"
786
+ }
787
+ ],
788
+ [
789
+ "path",
790
+ {
791
+ d: "M15 3v18",
792
+ key: "14nvp0"
793
+ }
794
+ ],
795
+ [
796
+ "path",
797
+ {
798
+ d: "m8 9 3 3-3 3",
799
+ key: "12hl5m"
800
+ }
801
+ ]
802
+ ]);
803
+ PanelRightOpen = createLucideIcon("panel-right-open", [
804
+ [
805
+ "rect",
806
+ {
807
+ width: "18",
808
+ height: "18",
809
+ x: "3",
810
+ y: "3",
811
+ rx: "2",
812
+ key: "afitv7"
813
+ }
814
+ ],
815
+ [
816
+ "path",
817
+ {
818
+ d: "M15 3v18",
819
+ key: "14nvp0"
820
+ }
821
+ ],
822
+ [
823
+ "path",
824
+ {
825
+ d: "m10 15-3-3 3-3",
826
+ key: "1pgupc"
827
+ }
828
+ ]
829
+ ]);
667
830
  PanelRight = createLucideIcon("panel-right", [
668
831
  [
669
832
  "rect",
@@ -714,6 +877,26 @@ let __tla = Promise.all([
714
877
  }
715
878
  ]
716
879
  ]);
880
+ Rows2 = createLucideIcon("rows-2", [
881
+ [
882
+ "rect",
883
+ {
884
+ width: "18",
885
+ height: "18",
886
+ x: "3",
887
+ y: "3",
888
+ rx: "2",
889
+ key: "afitv7"
890
+ }
891
+ ],
892
+ [
893
+ "path",
894
+ {
895
+ d: "M3 12h18",
896
+ key: "1i2n21"
897
+ }
898
+ ]
899
+ ]);
717
900
  Sparkles = createLucideIcon("sparkles", [
718
901
  [
719
902
  "path",
@@ -900,9 +1083,9 @@ let __tla = Promise.all([
900
1083
  value: n2,
901
1084
  getSnapshot: t2
902
1085
  }
903
- }), d2 = i2[0].inst, h = i2[1];
1086
+ }), d2 = i2[0].inst, h2 = i2[1];
904
1087
  return s(function() {
905
- d2.value = n2, d2.getSnapshot = t2, f(d2) && h({
1088
+ d2.value = n2, d2.getSnapshot = t2, f(d2) && h2({
906
1089
  inst: d2
907
1090
  });
908
1091
  }, [
@@ -910,10 +1093,10 @@ let __tla = Promise.all([
910
1093
  n2,
911
1094
  t2
912
1095
  ]), o(function() {
913
- return f(d2) && h({
1096
+ return f(d2) && h2({
914
1097
  inst: d2
915
1098
  }), e2(function() {
916
- f(d2) && h({
1099
+ f(d2) && h2({
917
1100
  inst: d2
918
1101
  });
919
1102
  });
@@ -931,10 +1114,10 @@ let __tla = Promise.all([
931
1114
  return true;
932
1115
  }
933
1116
  }
934
- function _(e2, t2) {
1117
+ function h(e2, t2) {
935
1118
  return t2();
936
1119
  }
937
- var v = typeof window > "u" || window.document === void 0 || window.document.createElement === void 0 ? _ : d;
1120
+ var v = typeof window > "u" || window.document === void 0 || window.document.createElement === void 0 ? h : d;
938
1121
  e.useSyncExternalStore = t.useSyncExternalStore === void 0 ? v : t.useSyncExternalStore;
939
1122
  }));
940
1123
  require_shim = __commonJSMin(((e, t) => {
@@ -1074,15 +1257,15 @@ let __tla = Promise.all([
1074
1257
  });
1075
1258
  });
1076
1259
  ContextMenuLabel$1.displayName = LABEL_NAME;
1077
- var ITEM_NAME = "ContextMenuItem", ContextMenuItem$1 = import_react.forwardRef((e, t) => {
1260
+ var ITEM_NAME$1 = "ContextMenuItem", ContextMenuItem$1 = import_react.forwardRef((e, t) => {
1078
1261
  let { __scopeContextMenu: n, ...i } = e, a = useMenuScope(n);
1079
- return (0, import_jsx_runtime.jsx)(Item2$1, {
1262
+ return (0, import_jsx_runtime.jsx)(Item2$2, {
1080
1263
  ...a,
1081
1264
  ...i,
1082
1265
  ref: t
1083
1266
  });
1084
1267
  });
1085
- ContextMenuItem$1.displayName = ITEM_NAME;
1268
+ ContextMenuItem$1.displayName = ITEM_NAME$1;
1086
1269
  var CHECKBOX_ITEM_NAME = "ContextMenuCheckboxItem", ContextMenuCheckboxItem$1 = import_react.forwardRef((e, t) => {
1087
1270
  let { __scopeContextMenu: n, ...i } = e, a = useMenuScope(n);
1088
1271
  return (0, import_jsx_runtime.jsx)(CheckboxItem, {
@@ -1092,15 +1275,15 @@ let __tla = Promise.all([
1092
1275
  });
1093
1276
  });
1094
1277
  ContextMenuCheckboxItem$1.displayName = CHECKBOX_ITEM_NAME;
1095
- var RADIO_GROUP_NAME = "ContextMenuRadioGroup", ContextMenuRadioGroup$1 = import_react.forwardRef((e, t) => {
1278
+ var RADIO_GROUP_NAME$1 = "ContextMenuRadioGroup", ContextMenuRadioGroup$1 = import_react.forwardRef((e, t) => {
1096
1279
  let { __scopeContextMenu: n, ...i } = e, a = useMenuScope(n);
1097
- return (0, import_jsx_runtime.jsx)(RadioGroup, {
1280
+ return (0, import_jsx_runtime.jsx)(RadioGroup$2, {
1098
1281
  ...a,
1099
1282
  ...i,
1100
1283
  ref: t
1101
1284
  });
1102
1285
  });
1103
- ContextMenuRadioGroup$1.displayName = RADIO_GROUP_NAME;
1286
+ ContextMenuRadioGroup$1.displayName = RADIO_GROUP_NAME$1;
1104
1287
  var RADIO_ITEM_NAME = "ContextMenuRadioItem", ContextMenuRadioItem$1 = import_react.forwardRef((e, t) => {
1105
1288
  let { __scopeContextMenu: n, ...i } = e, a = useMenuScope(n);
1106
1289
  return (0, import_jsx_runtime.jsx)(RadioItem, {
@@ -1110,7 +1293,7 @@ let __tla = Promise.all([
1110
1293
  });
1111
1294
  });
1112
1295
  ContextMenuRadioItem$1.displayName = RADIO_ITEM_NAME;
1113
- var INDICATOR_NAME = "ContextMenuItemIndicator", ContextMenuItemIndicator = import_react.forwardRef((e, t) => {
1296
+ var INDICATOR_NAME$1 = "ContextMenuItemIndicator", ContextMenuItemIndicator = import_react.forwardRef((e, t) => {
1114
1297
  let { __scopeContextMenu: n, ...i } = e, a = useMenuScope(n);
1115
1298
  return (0, import_jsx_runtime.jsx)(ItemIndicator, {
1116
1299
  ...a,
@@ -1118,7 +1301,7 @@ let __tla = Promise.all([
1118
1301
  ref: t
1119
1302
  });
1120
1303
  });
1121
- ContextMenuItemIndicator.displayName = INDICATOR_NAME;
1304
+ ContextMenuItemIndicator.displayName = INDICATOR_NAME$1;
1122
1305
  var SEPARATOR_NAME = "ContextMenuSeparator", ContextMenuSeparator$1 = import_react.forwardRef((e, t) => {
1123
1306
  let { __scopeContextMenu: n, ...i } = e, a = useMenuScope(n);
1124
1307
  return (0, import_jsx_runtime.jsx)(Separator, {
@@ -1181,7 +1364,179 @@ let __tla = Promise.all([
1181
1364
  function whenTouchOrPen(e) {
1182
1365
  return (t) => t.pointerType === "mouse" ? void 0 : e(t);
1183
1366
  }
1184
- var Root2$1 = ContextMenu$1, Trigger$1 = ContextMenuTrigger$1, Portal2 = ContextMenuPortal$1, Content2 = ContextMenuContent$1, Label2 = ContextMenuLabel$1, Item2 = ContextMenuItem$1, CheckboxItem2 = ContextMenuCheckboxItem$1, RadioItem2 = ContextMenuRadioItem$1, ItemIndicator2 = ContextMenuItemIndicator, Separator2 = ContextMenuSeparator$1, SubTrigger2 = ContextMenuSubTrigger$1, SubContent2 = ContextMenuSubContent$1, TABS_NAME = "Tabs", [createTabsContext, createTabsScope] = createContextScope(TABS_NAME, [
1367
+ var Root2$2 = ContextMenu$1, Trigger$1 = ContextMenuTrigger$1, Portal2 = ContextMenuPortal$1, Content2 = ContextMenuContent$1, Label2 = ContextMenuLabel$1, Item2$1 = ContextMenuItem$1, CheckboxItem2 = ContextMenuCheckboxItem$1, RadioItem2 = ContextMenuRadioItem$1, ItemIndicator2 = ContextMenuItemIndicator, Separator2 = ContextMenuSeparator$1, SubTrigger2 = ContextMenuSubTrigger$1, SubContent2 = ContextMenuSubContent$1, RADIO_NAME = "Radio", [createRadioContext, createRadioScope] = createContextScope(RADIO_NAME), [RadioProvider, useRadioContext] = createRadioContext(RADIO_NAME), Radio = import_react.forwardRef((e, t) => {
1368
+ let { __scopeRadio: n, name: i, checked: a = false, required: o, disabled: c, value: d = "on", onCheck: f, form: h, ..._ } = e, [v, y] = import_react.useState(null), S = useComposedRefs(t, (e2) => y(e2)), w = import_react.useRef(false), E = v ? h || !!v.closest("form") : true;
1369
+ return (0, import_jsx_runtime.jsxs)(RadioProvider, {
1370
+ scope: n,
1371
+ checked: a,
1372
+ disabled: c,
1373
+ children: [
1374
+ (0, import_jsx_runtime.jsx)(Primitive$1.button, {
1375
+ type: "button",
1376
+ role: "radio",
1377
+ "aria-checked": a,
1378
+ "data-state": getState(a),
1379
+ "data-disabled": c ? "" : void 0,
1380
+ disabled: c,
1381
+ value: d,
1382
+ ..._,
1383
+ ref: S,
1384
+ onClick: composeEventHandlers(e.onClick, (e2) => {
1385
+ a || (f == null ? void 0 : f()), E && (w.current = e2.isPropagationStopped(), w.current || e2.stopPropagation());
1386
+ })
1387
+ }),
1388
+ E && (0, import_jsx_runtime.jsx)(RadioBubbleInput, {
1389
+ control: v,
1390
+ bubbles: !w.current,
1391
+ name: i,
1392
+ value: d,
1393
+ checked: a,
1394
+ required: o,
1395
+ disabled: c,
1396
+ form: h,
1397
+ style: {
1398
+ transform: "translateX(-100%)"
1399
+ }
1400
+ })
1401
+ ]
1402
+ });
1403
+ });
1404
+ Radio.displayName = RADIO_NAME;
1405
+ var INDICATOR_NAME = "RadioIndicator", RadioIndicator = import_react.forwardRef((e, t) => {
1406
+ let { __scopeRadio: n, forceMount: i, ...a } = e, o = useRadioContext(INDICATOR_NAME, n);
1407
+ return (0, import_jsx_runtime.jsx)(Presence, {
1408
+ present: i || o.checked,
1409
+ children: (0, import_jsx_runtime.jsx)(Primitive$1.span, {
1410
+ "data-state": getState(o.checked),
1411
+ "data-disabled": o.disabled ? "" : void 0,
1412
+ ...a,
1413
+ ref: t
1414
+ })
1415
+ });
1416
+ });
1417
+ RadioIndicator.displayName = INDICATOR_NAME;
1418
+ var BUBBLE_INPUT_NAME = "RadioBubbleInput", RadioBubbleInput = import_react.forwardRef(({ __scopeRadio: e, control: t, checked: n, bubbles: i = true, ...a }, o) => {
1419
+ let c = import_react.useRef(null), d = useComposedRefs(c, o), f = usePrevious$1(n), h = useSize(t);
1420
+ return import_react.useEffect(() => {
1421
+ let e2 = c.current;
1422
+ if (!e2) return;
1423
+ let t2 = window.HTMLInputElement.prototype, a2 = Object.getOwnPropertyDescriptor(t2, "checked").set;
1424
+ if (f !== n && a2) {
1425
+ let t3 = new Event("click", {
1426
+ bubbles: i
1427
+ });
1428
+ a2.call(e2, n), e2.dispatchEvent(t3);
1429
+ }
1430
+ }, [
1431
+ f,
1432
+ n,
1433
+ i
1434
+ ]), (0, import_jsx_runtime.jsx)(Primitive$1.input, {
1435
+ type: "radio",
1436
+ "aria-hidden": true,
1437
+ defaultChecked: n,
1438
+ ...a,
1439
+ tabIndex: -1,
1440
+ ref: d,
1441
+ style: {
1442
+ ...a.style,
1443
+ ...h,
1444
+ position: "absolute",
1445
+ pointerEvents: "none",
1446
+ opacity: 0,
1447
+ margin: 0
1448
+ }
1449
+ });
1450
+ });
1451
+ RadioBubbleInput.displayName = BUBBLE_INPUT_NAME;
1452
+ function getState(e) {
1453
+ return e ? "checked" : "unchecked";
1454
+ }
1455
+ var ARROW_KEYS = [
1456
+ "ArrowUp",
1457
+ "ArrowDown",
1458
+ "ArrowLeft",
1459
+ "ArrowRight"
1460
+ ], RADIO_GROUP_NAME = "RadioGroup", [createRadioGroupContext, createRadioGroupScope] = createContextScope(RADIO_GROUP_NAME, [
1461
+ createRovingFocusGroupScope,
1462
+ createRadioScope
1463
+ ]), useRovingFocusGroupScope$1 = createRovingFocusGroupScope(), useRadioScope = createRadioScope(), [RadioGroupProvider, useRadioGroupContext] = createRadioGroupContext(RADIO_GROUP_NAME), RadioGroup$1 = import_react.forwardRef((e, t) => {
1464
+ let { __scopeRadioGroup: n, name: i, defaultValue: a, value: o, required: s = false, disabled: c = false, orientation: d, dir: f, loop: h = true, onValueChange: _, ...v } = e, y = useRovingFocusGroupScope$1(n), S = useDirection(f), [w, E] = useControllableState({
1465
+ prop: o,
1466
+ defaultProp: a ?? null,
1467
+ onChange: _,
1468
+ caller: RADIO_GROUP_NAME
1469
+ });
1470
+ return (0, import_jsx_runtime.jsx)(RadioGroupProvider, {
1471
+ scope: n,
1472
+ name: i,
1473
+ required: s,
1474
+ disabled: c,
1475
+ value: w,
1476
+ onValueChange: E,
1477
+ children: (0, import_jsx_runtime.jsx)(Root$1, {
1478
+ asChild: true,
1479
+ ...y,
1480
+ orientation: d,
1481
+ dir: S,
1482
+ loop: h,
1483
+ children: (0, import_jsx_runtime.jsx)(Primitive$1.div, {
1484
+ role: "radiogroup",
1485
+ "aria-required": s,
1486
+ "aria-orientation": d,
1487
+ "data-disabled": c ? "" : void 0,
1488
+ dir: S,
1489
+ ...v,
1490
+ ref: t
1491
+ })
1492
+ })
1493
+ });
1494
+ });
1495
+ RadioGroup$1.displayName = RADIO_GROUP_NAME;
1496
+ var ITEM_NAME = "RadioGroupItem", RadioGroupItem$1 = import_react.forwardRef((e, t) => {
1497
+ let { __scopeRadioGroup: n, disabled: i, ...a } = e, o = useRadioGroupContext(ITEM_NAME, n), c = o.disabled || i, d = useRovingFocusGroupScope$1(n), f = useRadioScope(n), h = import_react.useRef(null), _ = useComposedRefs(t, h), v = o.value === a.value, y = import_react.useRef(false);
1498
+ return import_react.useEffect(() => {
1499
+ let e2 = (e3) => {
1500
+ ARROW_KEYS.includes(e3.key) && (y.current = true);
1501
+ }, t2 = () => y.current = false;
1502
+ return document.addEventListener("keydown", e2), document.addEventListener("keyup", t2), () => {
1503
+ document.removeEventListener("keydown", e2), document.removeEventListener("keyup", t2);
1504
+ };
1505
+ }, []), (0, import_jsx_runtime.jsx)(Item, {
1506
+ asChild: true,
1507
+ ...d,
1508
+ focusable: !c,
1509
+ active: v,
1510
+ children: (0, import_jsx_runtime.jsx)(Radio, {
1511
+ disabled: c,
1512
+ required: o.required,
1513
+ checked: v,
1514
+ ...f,
1515
+ ...a,
1516
+ name: o.name,
1517
+ ref: _,
1518
+ onCheck: () => o.onValueChange(a.value),
1519
+ onKeyDown: composeEventHandlers((e2) => {
1520
+ e2.key === "Enter" && e2.preventDefault();
1521
+ }),
1522
+ onFocus: composeEventHandlers(a.onFocus, () => {
1523
+ var _a2;
1524
+ y.current && ((_a2 = h.current) == null ? void 0 : _a2.click());
1525
+ })
1526
+ })
1527
+ });
1528
+ });
1529
+ RadioGroupItem$1.displayName = ITEM_NAME;
1530
+ var INDICATOR_NAME2 = "RadioGroupIndicator", RadioGroupIndicator = import_react.forwardRef((e, t) => {
1531
+ let { __scopeRadioGroup: n, ...i } = e;
1532
+ return (0, import_jsx_runtime.jsx)(RadioIndicator, {
1533
+ ...useRadioScope(n),
1534
+ ...i,
1535
+ ref: t
1536
+ });
1537
+ });
1538
+ RadioGroupIndicator.displayName = INDICATOR_NAME2;
1539
+ var Root2$1 = RadioGroup$1, Item2 = RadioGroupItem$1, Indicator = RadioGroupIndicator, TABS_NAME = "Tabs", [createTabsContext, createTabsScope] = createContextScope(TABS_NAME, [
1185
1540
  createRovingFocusGroupScope
1186
1541
  ]), useRovingFocusGroupScope = createRovingFocusGroupScope(), [TabsProvider, useTabsContext] = createTabsContext(TABS_NAME), Tabs$1 = import_react.forwardRef((e, t) => {
1187
1542
  let { __scopeTabs: n, value: i, onValueChange: a, defaultValue: o, orientation: s = "horizontal", dir: c, activationMode: d = "automatic", ...f } = e, h = useDirection(c), [_, v] = useControllableState({
@@ -5203,9 +5558,9 @@ let __tla = Promise.all([
5203
5558
  t,
5204
5559
  i.name
5205
5560
  ]), null;
5206
- }), import_compiler_runtime$45 = require_compiler_runtime();
5561
+ }), import_compiler_runtime$47 = require_compiler_runtime();
5207
5562
  EmotionCacheProvider = (e) => {
5208
- let t = (0, import_compiler_runtime$45.c)(6), { container: n, children: i } = e, a;
5563
+ let t = (0, import_compiler_runtime$47.c)(6), { container: n, children: i } = e, a;
5209
5564
  bb0: {
5210
5565
  if (!n) {
5211
5566
  let e3;
@@ -7118,33 +7473,33 @@ try {
7118
7473
  }, f = import_react.createContext(void 0), h = () => import_react.useContext(f) || d, _ = {}, v = {};
7119
7474
  function y(e2) {
7120
7475
  var _a2, _b, _c, _d;
7121
- let { children: d2, theme: h2, modeStorageKey: y2 = i, colorSchemeStorageKey: S2 = a, disableTransitionOnChange: w2 = o, storageManager: E, storageWindow: O = typeof window > "u" ? void 0 : window, documentNode: A = typeof document > "u" ? void 0 : document, colorSchemeNode: M = typeof document > "u" ? void 0 : document.documentElement, disableNestedContext: I = false, disableStyleSheetGeneration: z = false, defaultMode: U = "system", noSsr: K } = e2, q = import_react.useRef(false), J = useTheme$2(), Q = import_react.useContext(f), yj = !!Q && !I, $ = import_react.useMemo(() => h2 || (typeof n == "function" ? n() : n), [
7476
+ let { children: d2, theme: h2, modeStorageKey: y2 = i, colorSchemeStorageKey: S2 = a, disableTransitionOnChange: w2 = o, storageManager: E, storageWindow: O = typeof window > "u" ? void 0 : window, documentNode: A = typeof document > "u" ? void 0 : document, colorSchemeNode: M = typeof document > "u" ? void 0 : document.documentElement, disableNestedContext: I = false, disableStyleSheetGeneration: z = false, defaultMode: U = "system", noSsr: K } = e2, q = import_react.useRef(false), J = useTheme$2(), Q = import_react.useContext(f), _M = !!Q && !I, $ = import_react.useMemo(() => h2 || (typeof n == "function" ? n() : n), [
7122
7477
  h2
7123
- ]), bj = $[t], xj = bj || $, { colorSchemes: Sj = _, components: Cj = v, cssVarPrefix: wj } = xj, Tj = Object.keys(Sj).filter((e3) => !!Sj[e3]).join(","), Ej = import_react.useMemo(() => Tj.split(","), [
7124
- Tj
7125
- ]), Dj = typeof s == "string" ? s : s.light, Oj = typeof s == "string" ? s : s.dark, { mode: kj, setMode: Aj, systemMode: jj, lightColorScheme: Mj, darkColorScheme: Nj, colorScheme: Pj, setColorScheme: Fj } = useCurrentColorScheme({
7126
- supportedColorSchemes: Ej,
7127
- defaultLightColorScheme: Dj,
7128
- defaultDarkColorScheme: Oj,
7478
+ ]), vM = $[t], yM = vM || $, { colorSchemes: bM = _, components: xM = v, cssVarPrefix: SM } = yM, CM = Object.keys(bM).filter((e3) => !!bM[e3]).join(","), wM = import_react.useMemo(() => CM.split(","), [
7479
+ CM
7480
+ ]), TM = typeof s == "string" ? s : s.light, EM = typeof s == "string" ? s : s.dark, { mode: DM, setMode: OM, systemMode: kM, lightColorScheme: AM, darkColorScheme: jM, colorScheme: MM, setColorScheme: NM } = useCurrentColorScheme({
7481
+ supportedColorSchemes: wM,
7482
+ defaultLightColorScheme: TM,
7483
+ defaultDarkColorScheme: EM,
7129
7484
  modeStorageKey: y2,
7130
7485
  colorSchemeStorageKey: S2,
7131
- defaultMode: Sj[Dj] && Sj[Oj] ? U : ((_b = (_a2 = Sj[xj.defaultColorScheme]) == null ? void 0 : _a2.palette) == null ? void 0 : _b.mode) || ((_c = xj.palette) == null ? void 0 : _c.mode),
7486
+ defaultMode: bM[TM] && bM[EM] ? U : ((_b = (_a2 = bM[yM.defaultColorScheme]) == null ? void 0 : _a2.palette) == null ? void 0 : _b.mode) || ((_c = yM.palette) == null ? void 0 : _c.mode),
7132
7487
  storageManager: E,
7133
7488
  storageWindow: O,
7134
7489
  noSsr: K
7135
- }), Ij = kj, Lj = Pj;
7136
- yj && (Ij = Q.mode, Lj = Q.colorScheme);
7137
- let Rj = import_react.useMemo(() => {
7490
+ }), PM = DM, FM = MM;
7491
+ _M && (PM = Q.mode, FM = Q.colorScheme);
7492
+ let IM = import_react.useMemo(() => {
7138
7493
  var _a3;
7139
- let e3 = Lj || xj.defaultColorScheme, t2 = ((_a3 = xj.generateThemeVars) == null ? void 0 : _a3.call(xj)) || xj.vars, n2 = {
7140
- ...xj,
7141
- components: Cj,
7142
- colorSchemes: Sj,
7143
- cssVarPrefix: wj,
7494
+ let e3 = FM || yM.defaultColorScheme, t2 = ((_a3 = yM.generateThemeVars) == null ? void 0 : _a3.call(yM)) || yM.vars, n2 = {
7495
+ ...yM,
7496
+ components: xM,
7497
+ colorSchemes: bM,
7498
+ cssVarPrefix: SM,
7144
7499
  vars: t2
7145
7500
  };
7146
7501
  if (typeof n2.generateSpacing == "function" && (n2.spacing = n2.generateSpacing()), e3) {
7147
- let t3 = Sj[e3];
7502
+ let t3 = bM[e3];
7148
7503
  t3 && typeof t3 == "object" && Object.keys(t3).forEach((e4) => {
7149
7504
  t3[e4] && typeof t3[e4] == "object" ? n2[e4] = {
7150
7505
  ...n2[e4],
@@ -7154,31 +7509,31 @@ try {
7154
7509
  }
7155
7510
  return c ? c(n2) : n2;
7156
7511
  }, [
7157
- xj,
7158
- Lj,
7159
- Cj,
7160
- Sj,
7161
- wj
7162
- ]), zj = xj.colorSchemeSelector;
7512
+ yM,
7513
+ FM,
7514
+ xM,
7515
+ bM,
7516
+ SM
7517
+ ]), LM = yM.colorSchemeSelector;
7163
7518
  useEnhancedEffect_default(() => {
7164
- if (Lj && M && zj && zj !== "media") {
7165
- let e3 = zj, t2 = zj;
7166
- if (e3 === "class" && (t2 = ".%s"), e3 === "data" && (t2 = "[data-%s]"), (e3 == null ? void 0 : e3.startsWith("data-")) && !e3.includes("%s") && (t2 = `[${e3}="%s"]`), t2.startsWith(".")) M.classList.remove(...Ej.map((e4) => t2.substring(1).replace("%s", e4))), M.classList.add(t2.substring(1).replace("%s", Lj));
7519
+ if (FM && M && LM && LM !== "media") {
7520
+ let e3 = LM, t2 = LM;
7521
+ if (e3 === "class" && (t2 = ".%s"), e3 === "data" && (t2 = "[data-%s]"), (e3 == null ? void 0 : e3.startsWith("data-")) && !e3.includes("%s") && (t2 = `[${e3}="%s"]`), t2.startsWith(".")) M.classList.remove(...wM.map((e4) => t2.substring(1).replace("%s", e4))), M.classList.add(t2.substring(1).replace("%s", FM));
7167
7522
  else {
7168
- let e4 = t2.replace("%s", Lj).match(/\[([^\]]+)\]/);
7523
+ let e4 = t2.replace("%s", FM).match(/\[([^\]]+)\]/);
7169
7524
  if (e4) {
7170
7525
  let [t3, n2] = e4[1].split("=");
7171
- n2 || Ej.forEach((e5) => {
7172
- M.removeAttribute(t3.replace(Lj, e5));
7526
+ n2 || wM.forEach((e5) => {
7527
+ M.removeAttribute(t3.replace(FM, e5));
7173
7528
  }), M.setAttribute(t3, n2 ? n2.replace(/"|'/g, "") : "");
7174
- } else M.setAttribute(t2, Lj);
7529
+ } else M.setAttribute(t2, FM);
7175
7530
  }
7176
7531
  }
7177
7532
  }, [
7178
- Lj,
7179
- zj,
7533
+ FM,
7534
+ LM,
7180
7535
  M,
7181
- Ej
7536
+ wM
7182
7537
  ]), import_react.useEffect(() => {
7183
7538
  let e3;
7184
7539
  if (w2 && q.current && A) {
@@ -7191,48 +7546,48 @@ try {
7191
7546
  clearTimeout(e3);
7192
7547
  };
7193
7548
  }, [
7194
- Lj,
7549
+ FM,
7195
7550
  w2,
7196
7551
  A
7197
7552
  ]), import_react.useEffect(() => (q.current = true, () => {
7198
7553
  q.current = false;
7199
7554
  }), []);
7200
- let Bj = import_react.useMemo(() => ({
7201
- allColorSchemes: Ej,
7202
- colorScheme: Lj,
7203
- darkColorScheme: Nj,
7204
- lightColorScheme: Mj,
7205
- mode: Ij,
7206
- setColorScheme: Fj,
7207
- setMode: Aj,
7208
- systemMode: jj
7555
+ let RM = import_react.useMemo(() => ({
7556
+ allColorSchemes: wM,
7557
+ colorScheme: FM,
7558
+ darkColorScheme: jM,
7559
+ lightColorScheme: AM,
7560
+ mode: PM,
7561
+ setColorScheme: NM,
7562
+ setMode: OM,
7563
+ systemMode: kM
7209
7564
  }), [
7210
- Ej,
7211
- Lj,
7212
- Nj,
7213
- Mj,
7214
- Ij,
7215
- Fj,
7216
- Aj,
7217
- jj,
7218
- Rj.colorSchemeSelector
7219
- ]), Vj = true;
7220
- (z || xj.cssVariables === false || yj && (J == null ? void 0 : J.cssVarPrefix) === wj) && (Vj = false);
7221
- let Hj = (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
7565
+ wM,
7566
+ FM,
7567
+ jM,
7568
+ AM,
7569
+ PM,
7570
+ NM,
7571
+ OM,
7572
+ kM,
7573
+ IM.colorSchemeSelector
7574
+ ]), zM = true;
7575
+ (z || yM.cssVariables === false || _M && (J == null ? void 0 : J.cssVarPrefix) === SM) && (zM = false);
7576
+ let BM = (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
7222
7577
  children: [
7223
7578
  (0, import_jsx_runtime.jsx)(ThemeProvider_default, {
7224
- themeId: bj ? t : void 0,
7225
- theme: Rj,
7579
+ themeId: vM ? t : void 0,
7580
+ theme: IM,
7226
7581
  children: d2
7227
7582
  }),
7228
- Vj && (0, import_jsx_runtime.jsx)(GlobalStyles$1, {
7229
- styles: ((_d = Rj.generateStyleSheets) == null ? void 0 : _d.call(Rj)) || []
7583
+ zM && (0, import_jsx_runtime.jsx)(GlobalStyles$1, {
7584
+ styles: ((_d = IM.generateStyleSheets) == null ? void 0 : _d.call(IM)) || []
7230
7585
  })
7231
7586
  ]
7232
7587
  });
7233
- return yj ? Hj : (0, import_jsx_runtime.jsx)(f.Provider, {
7234
- value: Bj,
7235
- children: Hj
7588
+ return _M ? BM : (0, import_jsx_runtime.jsx)(f.Provider, {
7589
+ value: RM,
7590
+ children: BM
7236
7591
  });
7237
7592
  }
7238
7593
  let S = typeof s == "string" ? s : s.light, w = typeof s == "string" ? s : s.dark;
@@ -8732,10 +9087,10 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
8732
9087
  let n = useDefaultProps({
8733
9088
  props: e,
8734
9089
  name: "MuiInputBase"
8735
- }), { "aria-describedby": i, autoComplete: a, autoFocus: o, className: s, color: c, components: d = {}, componentsProps: f = {}, defaultValue: h, disabled: _, disableInjectingGlobalStyles: v, endAdornment: y, error: S, fullWidth: w = false, id: E, inputComponent: O = "input", inputProps: A = {}, inputRef: M, margin: I, maxRows: z, minRows: U, multiline: K = false, name: q, onBlur: J, onChange: Q, onClick: yj, onFocus: $, onKeyDown: bj, onKeyUp: xj, placeholder: Sj, readOnly: Cj, renderSuffix: wj, rows: Tj, size: Ej, slotProps: Dj = {}, slots: Oj = {}, startAdornment: kj, type: Aj = "text", value: jj, ...Mj } = n, Nj = A.value == null ? jj : A.value, { current: Pj } = import_react.useRef(Nj != null), Fj = import_react.useRef(), Ij = import_react.useCallback((e2) => {
8736
- }, []), Lj = useForkRef_default(Fj, M, A.ref, Ij), [Rj, zj] = import_react.useState(false), Bj = useFormControl(), Vj = formControlState({
9090
+ }), { "aria-describedby": i, autoComplete: a, autoFocus: o, className: s, color: c, components: d = {}, componentsProps: f = {}, defaultValue: h, disabled: _, disableInjectingGlobalStyles: v, endAdornment: y, error: S, fullWidth: w = false, id: E, inputComponent: O = "input", inputProps: A = {}, inputRef: M, margin: I, maxRows: z, minRows: U, multiline: K = false, name: q, onBlur: J, onChange: Q, onClick: _M, onFocus: $, onKeyDown: vM, onKeyUp: yM, placeholder: bM, readOnly: xM, renderSuffix: SM, rows: CM, size: wM, slotProps: TM = {}, slots: EM = {}, startAdornment: DM, type: OM = "text", value: kM, ...AM } = n, jM = A.value == null ? kM : A.value, { current: MM } = import_react.useRef(jM != null), NM = import_react.useRef(), PM = import_react.useCallback((e2) => {
9091
+ }, []), FM = useForkRef_default(NM, M, A.ref, PM), [IM, LM] = import_react.useState(false), RM = useFormControl(), zM = formControlState({
8737
9092
  props: n,
8738
- muiFormControl: Bj,
9093
+ muiFormControl: RM,
8739
9094
  states: [
8740
9095
  "color",
8741
9096
  "disabled",
@@ -8746,145 +9101,145 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
8746
9101
  "filled"
8747
9102
  ]
8748
9103
  });
8749
- Vj.focused = Bj ? Bj.focused : Rj, import_react.useEffect(() => {
8750
- !Bj && _ && Rj && (zj(false), J && J());
9104
+ zM.focused = RM ? RM.focused : IM, import_react.useEffect(() => {
9105
+ !RM && _ && IM && (LM(false), J && J());
8751
9106
  }, [
8752
- Bj,
9107
+ RM,
8753
9108
  _,
8754
- Rj,
9109
+ IM,
8755
9110
  J
8756
9111
  ]);
8757
- let Hj = Bj && Bj.onFilled, Uj = Bj && Bj.onEmpty, Wj = import_react.useCallback((e2) => {
8758
- isFilled(e2) ? Hj && Hj() : Uj && Uj();
9112
+ let BM = RM && RM.onFilled, VM = RM && RM.onEmpty, HM = import_react.useCallback((e2) => {
9113
+ isFilled(e2) ? BM && BM() : VM && VM();
8759
9114
  }, [
8760
- Hj,
8761
- Uj
9115
+ BM,
9116
+ VM
8762
9117
  ]);
8763
9118
  useEnhancedEffect_default$1(() => {
8764
- Pj && Wj({
8765
- value: Nj
9119
+ MM && HM({
9120
+ value: jM
8766
9121
  });
8767
9122
  }, [
8768
- Nj,
8769
- Wj,
8770
- Pj
9123
+ jM,
9124
+ HM,
9125
+ MM
8771
9126
  ]);
8772
- let Gj = (e2) => {
8773
- $ && $(e2), A.onFocus && A.onFocus(e2), Bj && Bj.onFocus ? Bj.onFocus(e2) : zj(true);
8774
- }, Kj = (e2) => {
8775
- J && J(e2), A.onBlur && A.onBlur(e2), Bj && Bj.onBlur ? Bj.onBlur(e2) : zj(false);
8776
- }, qj = (e2, ...t2) => {
8777
- if (!Pj) {
8778
- let t3 = e2.target || Fj.current;
9127
+ let UM = (e2) => {
9128
+ $ && $(e2), A.onFocus && A.onFocus(e2), RM && RM.onFocus ? RM.onFocus(e2) : LM(true);
9129
+ }, WM = (e2) => {
9130
+ J && J(e2), A.onBlur && A.onBlur(e2), RM && RM.onBlur ? RM.onBlur(e2) : LM(false);
9131
+ }, GM = (e2, ...t2) => {
9132
+ if (!MM) {
9133
+ let t3 = e2.target || NM.current;
8779
9134
  if (t3 == null) throw Error(formatMuiErrorMessage(1));
8780
- Wj({
9135
+ HM({
8781
9136
  value: t3.value
8782
9137
  });
8783
9138
  }
8784
9139
  A.onChange && A.onChange(e2, ...t2), Q && Q(e2, ...t2);
8785
9140
  };
8786
9141
  import_react.useEffect(() => {
8787
- Wj(Fj.current);
9142
+ HM(NM.current);
8788
9143
  }, []);
8789
- let Jj = (e2) => {
8790
- Fj.current && e2.currentTarget === e2.target && Fj.current.focus(), yj && yj(e2);
8791
- }, Yj = O, Xj = A;
8792
- K && Yj === "input" && (Xj = Tj ? {
9144
+ let KM = (e2) => {
9145
+ NM.current && e2.currentTarget === e2.target && NM.current.focus(), _M && _M(e2);
9146
+ }, qM = O, JM = A;
9147
+ K && qM === "input" && (JM = CM ? {
8793
9148
  type: void 0,
8794
- minRows: Tj,
8795
- maxRows: Tj,
8796
- ...Xj
9149
+ minRows: CM,
9150
+ maxRows: CM,
9151
+ ...JM
8797
9152
  } : {
8798
9153
  type: void 0,
8799
9154
  maxRows: z,
8800
9155
  minRows: U,
8801
- ...Xj
8802
- }, Yj = TextareaAutosize_default);
8803
- let Zj = (e2) => {
8804
- Wj(e2.animationName === "mui-auto-fill-cancel" ? Fj.current : {
9156
+ ...JM
9157
+ }, qM = TextareaAutosize_default);
9158
+ let YM = (e2) => {
9159
+ HM(e2.animationName === "mui-auto-fill-cancel" ? NM.current : {
8805
9160
  value: "x"
8806
9161
  });
8807
9162
  };
8808
9163
  import_react.useEffect(() => {
8809
- Bj && Bj.setAdornedStart(!!kj);
9164
+ RM && RM.setAdornedStart(!!DM);
8810
9165
  }, [
8811
- Bj,
8812
- kj
9166
+ RM,
9167
+ DM
8813
9168
  ]);
8814
- let Qj = {
9169
+ let XM = {
8815
9170
  ...n,
8816
- color: Vj.color || "primary",
8817
- disabled: Vj.disabled,
9171
+ color: zM.color || "primary",
9172
+ disabled: zM.disabled,
8818
9173
  endAdornment: y,
8819
- error: Vj.error,
8820
- focused: Vj.focused,
8821
- formControl: Bj,
9174
+ error: zM.error,
9175
+ focused: zM.focused,
9176
+ formControl: RM,
8822
9177
  fullWidth: w,
8823
- hiddenLabel: Vj.hiddenLabel,
9178
+ hiddenLabel: zM.hiddenLabel,
8824
9179
  multiline: K,
8825
- size: Vj.size,
8826
- startAdornment: kj,
8827
- type: Aj
8828
- }, $j = useUtilityClasses(Qj), eM = Oj.root || d.Root || InputBaseRoot, tM = Dj.root || f.root || {}, nM = Oj.input || d.Input || InputBaseInput;
8829
- return Xj = {
8830
- ...Xj,
8831
- ...Dj.input ?? f.input
9180
+ size: zM.size,
9181
+ startAdornment: DM,
9182
+ type: OM
9183
+ }, ZM = useUtilityClasses(XM), QM = EM.root || d.Root || InputBaseRoot, $M = TM.root || f.root || {}, eN = EM.input || d.Input || InputBaseInput;
9184
+ return JM = {
9185
+ ...JM,
9186
+ ...TM.input ?? f.input
8832
9187
  }, (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
8833
9188
  children: [
8834
9189
  !v && typeof InputGlobalStyles == "function" && (_InputGlobalStyles || (_InputGlobalStyles = (0, import_jsx_runtime.jsx)(InputGlobalStyles, {}))),
8835
- (0, import_jsx_runtime.jsxs)(eM, {
8836
- ...tM,
9190
+ (0, import_jsx_runtime.jsxs)(QM, {
9191
+ ...$M,
8837
9192
  ref: t,
8838
- onClick: Jj,
8839
- ...Mj,
8840
- ...!isHostComponent_default(eM) && {
9193
+ onClick: KM,
9194
+ ...AM,
9195
+ ...!isHostComponent_default(QM) && {
8841
9196
  ownerState: {
8842
- ...Qj,
8843
- ...tM.ownerState
9197
+ ...XM,
9198
+ ...$M.ownerState
8844
9199
  }
8845
9200
  },
8846
- className: clsx_default($j.root, tM.className, s, Cj && "MuiInputBase-readOnly"),
9201
+ className: clsx_default(ZM.root, $M.className, s, xM && "MuiInputBase-readOnly"),
8847
9202
  children: [
8848
- kj,
9203
+ DM,
8849
9204
  (0, import_jsx_runtime.jsx)(FormControlContext_default.Provider, {
8850
9205
  value: null,
8851
- children: (0, import_jsx_runtime.jsx)(nM, {
8852
- "aria-invalid": Vj.error,
9206
+ children: (0, import_jsx_runtime.jsx)(eN, {
9207
+ "aria-invalid": zM.error,
8853
9208
  "aria-describedby": i,
8854
9209
  autoComplete: a,
8855
9210
  autoFocus: o,
8856
9211
  defaultValue: h,
8857
- disabled: Vj.disabled,
9212
+ disabled: zM.disabled,
8858
9213
  id: E,
8859
- onAnimationStart: Zj,
9214
+ onAnimationStart: YM,
8860
9215
  name: q,
8861
- placeholder: Sj,
8862
- readOnly: Cj,
8863
- required: Vj.required,
8864
- rows: Tj,
8865
- value: Nj,
8866
- onKeyDown: bj,
8867
- onKeyUp: xj,
8868
- type: Aj,
8869
- ...Xj,
8870
- ...!isHostComponent_default(nM) && {
8871
- as: Yj,
9216
+ placeholder: bM,
9217
+ readOnly: xM,
9218
+ required: zM.required,
9219
+ rows: CM,
9220
+ value: jM,
9221
+ onKeyDown: vM,
9222
+ onKeyUp: yM,
9223
+ type: OM,
9224
+ ...JM,
9225
+ ...!isHostComponent_default(eN) && {
9226
+ as: qM,
8872
9227
  ownerState: {
8873
- ...Qj,
8874
- ...Xj.ownerState
9228
+ ...XM,
9229
+ ...JM.ownerState
8875
9230
  }
8876
9231
  },
8877
- ref: Lj,
8878
- className: clsx_default($j.input, Xj.className, Cj && "MuiInputBase-readOnly"),
8879
- onBlur: Kj,
8880
- onChange: qj,
8881
- onFocus: Gj
9232
+ ref: FM,
9233
+ className: clsx_default(ZM.input, JM.className, xM && "MuiInputBase-readOnly"),
9234
+ onBlur: WM,
9235
+ onChange: GM,
9236
+ onFocus: UM
8882
9237
  })
8883
9238
  }),
8884
9239
  y,
8885
- wj ? wj({
8886
- ...Vj,
8887
- startAdornment: kj
9240
+ SM ? SM({
9241
+ ...zM,
9242
+ startAdornment: DM
8888
9243
  }) : null
8889
9244
  ]
8890
9245
  })
@@ -9960,30 +10315,30 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
9960
10315
  M,
9961
10316
  i,
9962
10317
  a
9963
- ]), z = useJsonViewerStore((e2) => e2.setHover), U = useJsonViewerStore((e2) => e2.value), [K, q] = useInspect(i, t, a), [J, Q] = (0, import_react.useState)(false), yj = useJsonViewerStore((e2) => e2.onChange), $ = useTextColor(), bj = useJsonViewerStore((e2) => e2.colorspace.base0C), xj = useJsonViewerStore((e2) => e2.colorspace.base0A), Sj = useJsonViewerStore((e2) => e2.displayComma), Cj = useJsonViewerStore((e2) => e2.quotesOnKeys), wj = useJsonViewerStore((e2) => e2.rootName), Tj = U === t, Ej = Number.isInteger(Number(A)), Dj = useJsonViewerStore((e2) => e2.enableAdd), Oj = useJsonViewerStore((e2) => e2.onAdd), kj = (0, import_react.useMemo)(() => !Oj || a !== void 0 || Dj === false || v === false ? false : typeof Dj == "function" ? !!Dj(i, t) : !!(Array.isArray(t) || isPlainObject(t)), [
9964
- Oj,
10318
+ ]), z = useJsonViewerStore((e2) => e2.setHover), U = useJsonViewerStore((e2) => e2.value), [K, q] = useInspect(i, t, a), [J, Q] = (0, import_react.useState)(false), _M = useJsonViewerStore((e2) => e2.onChange), $ = useTextColor(), vM = useJsonViewerStore((e2) => e2.colorspace.base0C), yM = useJsonViewerStore((e2) => e2.colorspace.base0A), bM = useJsonViewerStore((e2) => e2.displayComma), xM = useJsonViewerStore((e2) => e2.quotesOnKeys), SM = useJsonViewerStore((e2) => e2.rootName), CM = U === t, wM = Number.isInteger(Number(A)), TM = useJsonViewerStore((e2) => e2.enableAdd), EM = useJsonViewerStore((e2) => e2.onAdd), DM = (0, import_react.useMemo)(() => !EM || a !== void 0 || TM === false || v === false ? false : typeof TM == "function" ? !!TM(i, t) : !!(Array.isArray(t) || isPlainObject(t)), [
10319
+ EM,
9965
10320
  a,
9966
10321
  i,
9967
- Dj,
10322
+ TM,
9968
10323
  v,
9969
10324
  t
9970
- ]), Aj = useJsonViewerStore((e2) => e2.enableDelete), jj = useJsonViewerStore((e2) => e2.onDelete), Mj = (0, import_react.useMemo)(() => !jj || a !== void 0 || Tj || Aj === false || v === false ? false : typeof Aj == "function" ? !!Aj(i, t) : Aj, [
9971
- jj,
10325
+ ]), OM = useJsonViewerStore((e2) => e2.enableDelete), kM = useJsonViewerStore((e2) => e2.onDelete), AM = (0, import_react.useMemo)(() => !kM || a !== void 0 || CM || OM === false || v === false ? false : typeof OM == "function" ? !!OM(i, t) : OM, [
10326
+ kM,
9972
10327
  a,
9973
- Tj,
10328
+ CM,
9974
10329
  i,
9975
- Aj,
10330
+ OM,
9976
10331
  v,
9977
10332
  t
9978
- ]), Nj = useJsonViewerStore((e2) => e2.enableClipboard), { copy: Pj, copied: Fj } = useClipboard(), Ij = useJsonViewerStore((e2) => e2.highlightUpdates), Lj = (0, import_react.useMemo)(() => !Ij || n === void 0 ? false : typeof t == typeof n ? typeof t == "number" ? isNaN(t) && isNaN(n) ? false : t !== n : Array.isArray(t) === Array.isArray(n) ? typeof t == "object" || typeof t == "function" ? false : t !== n : true : true, [
9979
- Ij,
10333
+ ]), jM = useJsonViewerStore((e2) => e2.enableClipboard), { copy: MM, copied: NM } = useClipboard(), PM = useJsonViewerStore((e2) => e2.highlightUpdates), FM = (0, import_react.useMemo)(() => !PM || n === void 0 ? false : typeof t == typeof n ? typeof t == "number" ? isNaN(t) && isNaN(n) ? false : t !== n : Array.isArray(t) === Array.isArray(n) ? typeof t == "object" || typeof t == "function" ? false : t !== n : true : true, [
10334
+ PM,
9980
10335
  n,
9981
10336
  t
9982
- ]), Rj = (0, import_react.useRef)();
10337
+ ]), IM = (0, import_react.useRef)();
9983
10338
  (0, import_react.useEffect)(() => {
9984
- Rj.current && Lj && "animate" in Rj.current && Rj.current.animate([
10339
+ IM.current && FM && "animate" in IM.current && IM.current.animate([
9985
10340
  {
9986
- backgroundColor: xj
10341
+ backgroundColor: yM
9987
10342
  },
9988
10343
  {
9989
10344
  backgroundColor: ""
@@ -9993,40 +10348,40 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
9993
10348
  easing: "ease-in"
9994
10349
  });
9995
10350
  }, [
9996
- xj,
9997
- Lj,
10351
+ yM,
10352
+ FM,
9998
10353
  n,
9999
10354
  t
10000
10355
  ]);
10001
- let zj = (0, import_react.useCallback)((e2) => {
10356
+ let LM = (0, import_react.useCallback)((e2) => {
10002
10357
  e2.preventDefault(), h && E(h(t)), Q(true);
10003
10358
  }, [
10004
10359
  h,
10005
10360
  t
10006
- ]), Bj = (0, import_react.useCallback)(() => {
10361
+ ]), RM = (0, import_react.useCallback)(() => {
10007
10362
  Q(false), E("");
10008
10363
  }, [
10009
10364
  Q,
10010
10365
  E
10011
- ]), Vj = (0, import_react.useCallback)((e2) => {
10366
+ ]), zM = (0, import_react.useCallback)((e2) => {
10012
10367
  if (Q(false), _) try {
10013
- yj(i, t, _(e2));
10368
+ _M(i, t, _(e2));
10014
10369
  } catch {
10015
10370
  }
10016
10371
  }, [
10017
10372
  Q,
10018
10373
  _,
10019
- yj,
10374
+ _M,
10020
10375
  i,
10021
10376
  t
10022
- ]), Hj = (0, import_react.useMemo)(() => J ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
10377
+ ]), BM = (0, import_react.useMemo)(() => J ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
10023
10378
  children: [
10024
10379
  (0, import_jsx_runtime.jsx)(IconBox, {
10025
10380
  children: (0, import_jsx_runtime.jsx)(CloseIcon, {
10026
10381
  sx: {
10027
10382
  fontSize: ".8rem"
10028
10383
  },
10029
- onClick: Bj
10384
+ onClick: RM
10030
10385
  })
10031
10386
  }),
10032
10387
  (0, import_jsx_runtime.jsx)(IconBox, {
@@ -10034,22 +10389,22 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
10034
10389
  sx: {
10035
10390
  fontSize: ".8rem"
10036
10391
  },
10037
- onClick: () => Vj(w)
10392
+ onClick: () => zM(w)
10038
10393
  })
10039
10394
  })
10040
10395
  ]
10041
10396
  }) : (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
10042
10397
  children: [
10043
- Nj && (0, import_jsx_runtime.jsx)(IconBox, {
10398
+ jM && (0, import_jsx_runtime.jsx)(IconBox, {
10044
10399
  onClick: (e2) => {
10045
10400
  e2.preventDefault();
10046
10401
  try {
10047
- Pj(i, t, copyString);
10402
+ MM(i, t, copyString);
10048
10403
  } catch (e3) {
10049
10404
  console.error(e3);
10050
10405
  }
10051
10406
  },
10052
- children: Fj ? (0, import_jsx_runtime.jsx)(CheckIcon$1, {
10407
+ children: NM ? (0, import_jsx_runtime.jsx)(CheckIcon$1, {
10053
10408
  sx: {
10054
10409
  fontSize: ".8rem"
10055
10410
  }
@@ -10060,16 +10415,16 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
10060
10415
  })
10061
10416
  }),
10062
10417
  f && S && h && _ && (0, import_jsx_runtime.jsx)(IconBox, {
10063
- onClick: zj,
10418
+ onClick: LM,
10064
10419
  children: (0, import_jsx_runtime.jsx)(EditIcon, {
10065
10420
  sx: {
10066
10421
  fontSize: ".8rem"
10067
10422
  }
10068
10423
  })
10069
10424
  }),
10070
- kj && (0, import_jsx_runtime.jsx)(IconBox, {
10425
+ DM && (0, import_jsx_runtime.jsx)(IconBox, {
10071
10426
  onClick: (e2) => {
10072
- e2.preventDefault(), Oj == null ? void 0 : Oj(i);
10427
+ e2.preventDefault(), EM == null ? void 0 : EM(i);
10073
10428
  },
10074
10429
  children: (0, import_jsx_runtime.jsx)(AddBoxIcon, {
10075
10430
  sx: {
@@ -10077,9 +10432,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
10077
10432
  }
10078
10433
  })
10079
10434
  }),
10080
- Mj && (0, import_jsx_runtime.jsx)(IconBox, {
10435
+ AM && (0, import_jsx_runtime.jsx)(IconBox, {
10081
10436
  onClick: (e2) => {
10082
- e2.preventDefault(), jj == null ? void 0 : jj(i, t);
10437
+ e2.preventDefault(), kM == null ? void 0 : kM(i, t);
10083
10438
  },
10084
10439
  children: (0, import_jsx_runtime.jsx)(DeleteIcon, {
10085
10440
  sx: {
@@ -10092,24 +10447,24 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
10092
10447
  f,
10093
10448
  h,
10094
10449
  _,
10095
- Fj,
10096
- Pj,
10450
+ NM,
10451
+ MM,
10097
10452
  S,
10098
10453
  J,
10099
- Nj,
10100
- kj,
10101
- Mj,
10454
+ jM,
10455
+ DM,
10456
+ AM,
10102
10457
  w,
10103
10458
  i,
10104
10459
  t,
10105
- Oj,
10106
- jj,
10107
- zj,
10108
- Bj,
10109
- Vj
10110
- ]), Uj = (0, import_react.useMemo)(() => getValueSize(t) === 0, [
10460
+ EM,
10461
+ kM,
10462
+ LM,
10463
+ RM,
10464
+ zM
10465
+ ]), VM = (0, import_react.useMemo)(() => getValueSize(t) === 0, [
10111
10466
  t
10112
- ]), Wj = !Uj && !!(c && d), Gj = useJsonViewerStore((e2) => e2.keyRenderer), Kj = (0, import_react.useMemo)(() => ({
10467
+ ]), HM = !VM && !!(c && d), UM = useJsonViewerStore((e2) => e2.keyRenderer), WM = (0, import_react.useMemo)(() => ({
10113
10468
  path: i,
10114
10469
  inspect: K,
10115
10470
  setInspect: q,
@@ -10146,13 +10501,13 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
10146
10501
  opacity: 0.8
10147
10502
  },
10148
10503
  onClick: (0, import_react.useCallback)((e2) => {
10149
- e2.isDefaultPrevented() || Uj || q((e3) => !e3);
10504
+ e2.isDefaultPrevented() || VM || q((e3) => !e3);
10150
10505
  }, [
10151
- Uj,
10506
+ VM,
10152
10507
  q
10153
10508
  ]),
10154
10509
  children: [
10155
- Wj ? K ? (0, import_jsx_runtime.jsx)(ExpandMoreIcon, {
10510
+ HM ? K ? (0, import_jsx_runtime.jsx)(ExpandMoreIcon, {
10156
10511
  className: "data-key-toggle-expanded",
10157
10512
  sx: {
10158
10513
  fontSize: ".8rem",
@@ -10170,27 +10525,27 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
10170
10525
  }
10171
10526
  }) : null,
10172
10527
  (0, import_jsx_runtime.jsx)(Box_default, {
10173
- ref: Rj,
10528
+ ref: IM,
10174
10529
  className: "data-key-key",
10175
10530
  component: "span",
10176
- children: Tj && O === 0 ? wj === false ? null : Cj ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
10531
+ children: CM && O === 0 ? SM === false ? null : xM ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
10177
10532
  children: [
10178
10533
  '"',
10179
- wj,
10534
+ SM,
10180
10535
  '"'
10181
10536
  ]
10182
10537
  }) : (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
10183
- children: wj
10184
- }) : Gj.when(Kj) ? (0, import_jsx_runtime.jsx)(Gj, {
10185
- ...Kj
10186
- }) : a === void 0 && (Ej ? (0, import_jsx_runtime.jsx)(Box_default, {
10538
+ children: SM
10539
+ }) : UM.when(WM) ? (0, import_jsx_runtime.jsx)(UM, {
10540
+ ...WM
10541
+ }) : a === void 0 && (wM ? (0, import_jsx_runtime.jsx)(Box_default, {
10187
10542
  component: "span",
10188
10543
  style: {
10189
- color: bj,
10190
- userSelect: Ej ? "none" : "auto"
10544
+ color: vM,
10545
+ userSelect: wM ? "none" : "auto"
10191
10546
  },
10192
10547
  children: A
10193
- }) : Cj ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
10548
+ }) : xM ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
10194
10549
  children: [
10195
10550
  '"',
10196
10551
  A,
@@ -10200,7 +10555,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
10200
10555
  children: A
10201
10556
  }))
10202
10557
  }),
10203
- Tj ? wj !== false && (0, import_jsx_runtime.jsx)(DataBox, {
10558
+ CM ? SM !== false && (0, import_jsx_runtime.jsx)(DataBox, {
10204
10559
  className: "data-key-colon",
10205
10560
  sx: {
10206
10561
  mr: 0.5
@@ -10213,38 +10568,38 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
10213
10568
  ".data-key-key:empty + &": {
10214
10569
  display: "none"
10215
10570
  },
10216
- userSelect: Ej ? "none" : "auto"
10571
+ userSelect: wM ? "none" : "auto"
10217
10572
  },
10218
10573
  children: ":"
10219
10574
  }),
10220
10575
  c && (0, import_jsx_runtime.jsx)(c, {
10221
- ...Kj
10576
+ ...WM
10222
10577
  }),
10223
- I && Wj && K && Hj
10578
+ I && HM && K && BM
10224
10579
  ]
10225
10580
  }),
10226
10581
  J && S ? f && (0, import_jsx_runtime.jsx)(f, {
10227
10582
  path: i,
10228
10583
  value: w,
10229
10584
  setValue: E,
10230
- abortEditing: Bj,
10231
- commitEditing: Vj
10585
+ abortEditing: RM,
10586
+ commitEditing: zM
10232
10587
  }) : s ? (0, import_jsx_runtime.jsx)(s, {
10233
- ...Kj
10588
+ ...WM
10234
10589
  }) : (0, import_jsx_runtime.jsx)(Box_default, {
10235
10590
  component: "span",
10236
10591
  className: "data-value-fallback",
10237
10592
  children: `fallback: ${t}`
10238
10593
  }),
10239
10594
  d && (0, import_jsx_runtime.jsx)(d, {
10240
- ...Kj
10595
+ ...WM
10241
10596
  }),
10242
- !o && Sj && (0, import_jsx_runtime.jsx)(DataBox, {
10597
+ !o && bM && (0, import_jsx_runtime.jsx)(DataBox, {
10243
10598
  children: ","
10244
10599
  }),
10245
- I && Wj && !K && Hj,
10246
- I && !Wj && Hj,
10247
- !I && J && Hj
10600
+ I && HM && !K && BM,
10601
+ I && !HM && BM,
10602
+ !I && J && BM
10248
10603
  ]
10249
10604
  });
10250
10605
  }, query = "(prefers-color-scheme: dark)";
@@ -10373,9 +10728,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
10373
10728
  })
10374
10729
  })
10375
10730
  });
10376
- }, import_compiler_runtime$44 = require_compiler_runtime();
10731
+ }, import_compiler_runtime$46 = require_compiler_runtime();
10377
10732
  HtmlOutput = (0, import_react.memo)((e) => {
10378
- let t = (0, import_compiler_runtime$44.c)(10), { html: n, inline: i, className: o, alwaysSanitizeHtml: s } = e, c = i === void 0 ? false : i;
10733
+ let t = (0, import_compiler_runtime$46.c)(10), { html: n, inline: i, className: o, alwaysSanitizeHtml: s } = e, c = i === void 0 ? false : i;
10379
10734
  if (!n) return null;
10380
10735
  let d = !c, f;
10381
10736
  t[0] !== o || t[1] !== c || t[2] !== d ? (f = cn(o, {
@@ -10394,9 +10749,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
10394
10749
  }), t[7] = f, t[8] = h, t[9] = _) : _ = t[9], _;
10395
10750
  });
10396
10751
  HtmlOutput.displayName = "HtmlOutput";
10397
- var import_compiler_runtime$43 = require_compiler_runtime();
10752
+ var import_compiler_runtime$45 = require_compiler_runtime();
10398
10753
  const ImageOutput = (e) => {
10399
- let t = (0, import_compiler_runtime$43.c)(8), { src: n, alt: i, width: a, height: o, className: s } = e, c = i === void 0 ? "" : i, d;
10754
+ let t = (0, import_compiler_runtime$45.c)(8), { src: n, alt: i, width: a, height: o, className: s } = e, c = i === void 0 ? "" : i, d;
10400
10755
  t[0] !== c || t[1] !== o || t[2] !== n || t[3] !== a ? (d = (0, import_jsx_runtime.jsx)("img", {
10401
10756
  src: n,
10402
10757
  alt: c,
@@ -10409,9 +10764,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
10409
10764
  children: d
10410
10765
  }), t[5] = s, t[6] = d, t[7] = f) : f = t[7], f;
10411
10766
  };
10412
- var import_compiler_runtime$42 = require_compiler_runtime();
10767
+ var import_compiler_runtime$44 = require_compiler_runtime();
10413
10768
  Kbd = (e) => {
10414
- let t = (0, import_compiler_runtime$42.c)(5), n;
10769
+ let t = (0, import_compiler_runtime$44.c)(5), n;
10415
10770
  t[0] === e.className ? n = t[1] : (n = clsx_default(e.className, "rounded-md bg-muted/40 px-2 text-[0.75rem] font-prose center border border-foreground/20 text-muted-foreground block whitespace-nowrap"), t[0] = e.className, t[1] = n);
10416
10771
  let i;
10417
10772
  return t[2] !== e.children || t[3] !== n ? (i = (0, import_jsx_runtime.jsx)("kbd", {
@@ -10419,9 +10774,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
10419
10774
  children: e.children
10420
10775
  }), t[2] = e.children, t[3] = n, t[4] = i) : i = t[4], i;
10421
10776
  };
10422
- var import_compiler_runtime$41 = require_compiler_runtime();
10777
+ var import_compiler_runtime$43 = require_compiler_runtime();
10423
10778
  const ExternalLink$1 = (e) => {
10424
- let t = (0, import_compiler_runtime$41.c)(3), { href: n, children: i } = e, a;
10779
+ let t = (0, import_compiler_runtime$43.c)(3), { href: n, children: i } = e, a;
10425
10780
  return t[0] !== i || t[1] !== n ? (a = (0, import_jsx_runtime.jsx)("a", {
10426
10781
  href: n,
10427
10782
  target: "_blank",
@@ -10592,22 +10947,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
10592
10947
  os: "os",
10593
10948
  re: "re",
10594
10949
  sys: "sys"
10595
- }, import_compiler_runtime$40 = require_compiler_runtime(), fixModeAtom = atomWithStorage("marimo:ai-autofix-mode", "autofix", jotaiJsonStorage);
10950
+ }, import_compiler_runtime$42 = require_compiler_runtime(), fixModeAtom = atomWithStorage("marimo:ai-autofix-mode", "autofix", jotaiJsonStorage);
10596
10951
  function useFixMode() {
10597
- let e = (0, import_compiler_runtime$40.c)(3), [t, n] = useAtom(fixModeAtom), i;
10952
+ let e = (0, import_compiler_runtime$42.c)(3), [t, n] = useAtom(fixModeAtom), i;
10598
10953
  return e[0] !== t || e[1] !== n ? (i = {
10599
10954
  fixMode: t,
10600
10955
  setFixMode: n
10601
10956
  }, e[0] = t, e[1] = n, e[2] = i) : i = e[2], i;
10602
10957
  }
10603
- var import_compiler_runtime$39 = require_compiler_runtime();
10958
+ var import_compiler_runtime$41 = require_compiler_runtime();
10604
10959
  const AutoFixButton = (e) => {
10605
- let t = (0, import_compiler_runtime$39.c)(21), { errors: n, cellId: i, className: o } = e, s = useStore(), { createNewCell: c } = useCellActions(), f = useAtomValue(aiEnabledAtom), h;
10606
- if (t[0] !== f || t[1] !== n) {
10960
+ let t = (0, import_compiler_runtime$41.c)(21), { errors: n, cellId: i, className: o } = e, s = useStore(), { createNewCell: c } = useCellActions(), d = useAtomValue(aiEnabledAtom), h;
10961
+ if (t[0] !== d || t[1] !== n) {
10607
10962
  let e2;
10608
- t[3] === f ? e2 = t[4] : (e2 = (e3) => getAutoFixes(e3, {
10609
- aiEnabled: f
10610
- }), t[3] = f, t[4] = e2), h = n.flatMap(e2), t[0] = f, t[1] = n, t[2] = h;
10963
+ t[3] === d ? e2 = t[4] : (e2 = (e3) => getAutoFixes(e3, {
10964
+ aiEnabled: d
10965
+ }), t[3] = d, t[4] = e2), h = n.flatMap(e2), t[0] = d, t[1] = n, t[2] = h;
10611
10966
  } else h = t[2];
10612
10967
  let _ = h, v = useSetAtom(aiCompletionCellAtom);
10613
10968
  if (_.length === 0) return null;
@@ -10632,13 +10987,13 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
10632
10987
  }
10633
10988
  }), t2 == null ? void 0 : t2.focus();
10634
10989
  }, t[5] = i, t[6] = c, t[7] = y, t[8] = v, t[9] = s, t[10] = S) : S = t[10];
10635
- let E = S, O;
10990
+ let w = S, O;
10636
10991
  t[11] === o ? O = t[12] : (O = cn("my-2", o), t[11] = o, t[12] = O);
10637
10992
  let A;
10638
- t[13] !== y.description || t[14] !== y.fixType || t[15] !== y.title || t[16] !== E ? (A = y.fixType === "ai" ? (0, import_jsx_runtime.jsx)(AIFixButton, {
10993
+ t[13] !== y.description || t[14] !== y.fixType || t[15] !== y.title || t[16] !== w ? (A = y.fixType === "ai" ? (0, import_jsx_runtime.jsx)(AIFixButton, {
10639
10994
  tooltip: y.description,
10640
- openPrompt: () => E(false),
10641
- applyAutofix: () => E(true)
10995
+ openPrompt: () => w(false),
10996
+ applyAutofix: () => w(true)
10642
10997
  }) : (0, import_jsx_runtime.jsx)(Tooltip, {
10643
10998
  content: y.description,
10644
10999
  align: "start",
@@ -10646,7 +11001,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
10646
11001
  size: "xs",
10647
11002
  variant: "outline",
10648
11003
  className: "font-normal",
10649
- onClick: () => E(false),
11004
+ onClick: () => w(false),
10650
11005
  children: [
10651
11006
  (0, import_jsx_runtime.jsx)(Wrench, {
10652
11007
  className: "h-3 w-3 mr-2"
@@ -10654,7 +11009,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
10654
11009
  y.title
10655
11010
  ]
10656
11011
  })
10657
- }), t[13] = y.description, t[14] = y.fixType, t[15] = y.title, t[16] = E, t[17] = A) : A = t[17];
11012
+ }), t[13] = y.description, t[14] = y.fixType, t[15] = y.title, t[16] = w, t[17] = A) : A = t[17];
10658
11013
  let M;
10659
11014
  return t[18] !== O || t[19] !== A ? (M = (0, import_jsx_runtime.jsx)("div", {
10660
11015
  className: O,
@@ -10663,23 +11018,23 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
10663
11018
  };
10664
11019
  var PromptIcon = Sparkles, AutofixIcon = Wrench, PromptTitle = "Suggest a prompt", AutofixTitle = "Fix with AI";
10665
11020
  const AIFixButton = (e) => {
10666
- let t = (0, import_compiler_runtime$39.c)(21), { tooltip: n, openPrompt: i, applyAutofix: a } = e, { fixMode: o, setFixMode: s } = useFixMode(), c = o === "prompt" ? i : a, f;
10667
- t[0] === o ? f = t[1] : (f = o === "prompt" ? (0, import_jsx_runtime.jsx)(PromptIcon, {
11021
+ let t = (0, import_compiler_runtime$41.c)(21), { tooltip: n, openPrompt: i, applyAutofix: a } = e, { fixMode: o, setFixMode: s } = useFixMode(), c = o === "prompt" ? i : a, d;
11022
+ t[0] === o ? d = t[1] : (d = o === "prompt" ? (0, import_jsx_runtime.jsx)(PromptIcon, {
10668
11023
  className: "h-3 w-3 mr-2 mb-0.5"
10669
11024
  }) : (0, import_jsx_runtime.jsx)(AutofixIcon, {
10670
11025
  className: "h-3 w-3 mr-2 mb-0.5"
10671
- }), t[0] = o, t[1] = f);
11026
+ }), t[0] = o, t[1] = d);
10672
11027
  let h = o === "prompt" ? PromptTitle : AutofixTitle, _;
10673
- t[2] !== c || t[3] !== f || t[4] !== h ? (_ = (0, import_jsx_runtime.jsxs)(Button, {
11028
+ t[2] !== c || t[3] !== d || t[4] !== h ? (_ = (0, import_jsx_runtime.jsxs)(Button, {
10674
11029
  size: "xs",
10675
11030
  variant: "outline",
10676
11031
  className: "font-normal rounded-r-none border-r-0",
10677
11032
  onClick: c,
10678
11033
  children: [
10679
- f,
11034
+ d,
10680
11035
  h
10681
11036
  ]
10682
- }), t[2] = c, t[3] = f, t[4] = h, t[5] = _) : _ = t[5];
11037
+ }), t[2] = c, t[3] = d, t[4] = h, t[5] = _) : _ = t[5];
10683
11038
  let v;
10684
11039
  t[6] !== _ || t[7] !== n ? (v = (0, import_jsx_runtime.jsx)(Tooltip, {
10685
11040
  content: n,
@@ -10732,7 +11087,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
10732
11087
  }), t[18] = O, t[19] = v, t[20] = A) : A = t[20], A;
10733
11088
  };
10734
11089
  var AiModeItem = (e) => {
10735
- let t = (0, import_compiler_runtime$39.c)(12), { mode: n } = e, i;
11090
+ let t = (0, import_compiler_runtime$41.c)(12), { mode: n } = e, i;
10736
11091
  t[0] === n ? i = t[1] : (i = n === "prompt" ? (0, import_jsx_runtime.jsx)(PromptIcon, {
10737
11092
  className: "h-4 w-4"
10738
11093
  }) : (0, import_jsx_runtime.jsx)(AutofixIcon, {
@@ -10769,9 +11124,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
10769
11124
  function useFilename() {
10770
11125
  return useAtomValue(filenameAtom);
10771
11126
  }
10772
- var import_compiler_runtime$37 = require_compiler_runtime();
11127
+ var import_compiler_runtime$39 = require_compiler_runtime();
10773
11128
  const CellLink = (e) => {
10774
- let t = (0, import_compiler_runtime$37.c)(12), { className: n, cellId: i, variant: o, onClick: s, formatCellName: c, skipScroll: d } = e, f = useCellNames()[i] ?? "", h = useCellIds().inOrderIds.indexOf(i), { showCellIfHidden: _ } = useCellActions(), v = c ?? _temp$4, y;
11129
+ let t = (0, import_compiler_runtime$39.c)(12), { className: n, cellId: i, variant: o, onClick: s, formatCellName: c, skipScroll: d } = e, f = useCellNames()[i] ?? "", h = useCellIds().inOrderIds.indexOf(i), { showCellIfHidden: _ } = useCellActions(), v = c ?? _temp$5, y;
10775
11130
  t[0] === n ? y = t[1] : (y = cn("inline-block cursor-pointer text-link hover:underline", n), t[0] = n, t[1] = y);
10776
11131
  let S;
10777
11132
  t[2] !== i || t[3] !== s || t[4] !== _ || t[5] !== d || t[6] !== o ? (S = (e2) => {
@@ -10782,22 +11137,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
10782
11137
  scrollAndHighlightCell(i, o, d) && (s == null ? void 0 : s());
10783
11138
  });
10784
11139
  }, t[2] = i, t[3] = s, t[4] = _, t[5] = d, t[6] = o, t[7] = S) : S = t[7];
10785
- let E = v(displayCellName(f, h)), O;
10786
- return t[8] !== y || t[9] !== S || t[10] !== E ? (O = (0, import_jsx_runtime.jsx)("div", {
11140
+ let w = v(displayCellName(f, h)), O;
11141
+ return t[8] !== y || t[9] !== S || t[10] !== w ? (O = (0, import_jsx_runtime.jsx)("div", {
10787
11142
  className: y,
10788
11143
  role: "link",
10789
11144
  tabIndex: -1,
10790
11145
  onClick: S,
10791
- children: E
10792
- }), t[8] = y, t[9] = S, t[10] = E, t[11] = O) : O = t[11], O;
11146
+ children: w
11147
+ }), t[8] = y, t[9] = S, t[10] = w, t[11] = O) : O = t[11], O;
10793
11148
  }, CellLinkError = (e) => {
10794
- let t = (0, import_compiler_runtime$37.c)(2), n;
11149
+ let t = (0, import_compiler_runtime$39.c)(2), n;
10795
11150
  return t[0] === e ? n = t[1] : (n = (0, import_jsx_runtime.jsx)(CellLink, {
10796
11151
  ...e,
10797
11152
  variant: "destructive"
10798
11153
  }), t[0] = e, t[1] = n), n;
10799
11154
  }, CellLinkTraceback = (e) => {
10800
- let t = (0, import_compiler_runtime$37.c)(10), { cellId: n, lineNumber: i } = e, a = useFilename(), o;
11155
+ let t = (0, import_compiler_runtime$39.c)(10), { cellId: n, lineNumber: i } = e, a = useFilename(), o;
10801
11156
  t[0] !== n || t[1] !== i ? (o = () => goToCellLine(n, i), t[0] = n, t[1] = i, t[2] = o) : o = t[2];
10802
11157
  let s;
10803
11158
  t[3] !== n || t[4] !== a ? (s = (e2) => n === "__scratch__" ? "scratch" : `marimo://${a || "untitled"}#cell=${e2}`, t[3] = n, t[4] = a, t[5] = s) : s = t[5];
@@ -10822,7 +11177,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
10822
11177
  o.classList.remove("focus-outline");
10823
11178
  }, 2e3)), true);
10824
11179
  }
10825
- function _temp$4(e) {
11180
+ function _temp$5(e) {
10826
11181
  return e;
10827
11182
  }
10828
11183
  const showAddPackageToast = (e, t) => {
@@ -10894,7 +11249,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
10894
11249
  value: e2
10895
11250
  });
10896
11251
  }
10897
- var import_compiler_runtime$36 = require_compiler_runtime(), ansiUp = new AnsiUp();
11252
+ var import_compiler_runtime$38 = require_compiler_runtime(), ansiUp = new AnsiUp();
10898
11253
  const cleanAnsiCodes = (e) => {
10899
11254
  let t = RegExp("\x1B\\[[0-9;]*m", "g");
10900
11255
  return e.replaceAll(t, "");
@@ -10962,7 +11317,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
10962
11317
  });
10963
11318
  }
10964
11319
  var InstallPackageLink = (e) => {
10965
- let t = (0, import_compiler_runtime$36.c)(6), { packages: n, children: i } = e, { handleInstallPackages: a } = useInstallPackages(), o;
11320
+ let t = (0, import_compiler_runtime$38.c)(6), { packages: n, children: i } = e, { handleInstallPackages: a } = useInstallPackages(), o;
10966
11321
  t[0] !== a || t[1] !== n ? (o = (e2) => {
10967
11322
  a(n), e2.preventDefault();
10968
11323
  }, t[0] = a, t[1] = n, t[2] = o) : o = t[2];
@@ -11035,15 +11390,15 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
11035
11390
  })
11036
11391
  });
11037
11392
  RenderTextWithLinks = (e) => {
11038
- let t = (0, import_compiler_runtime$36.c)(4), { text: n } = e, i;
11393
+ let t = (0, import_compiler_runtime$38.c)(4), { text: n } = e, i;
11039
11394
  t[0] === n ? i = t[1] : (i = renderTextWithReplacers(n, composeReplacers(pipInstallReplacer, urlReplacer)), t[0] = n, t[1] = i);
11040
11395
  let a = i, o;
11041
11396
  return t[2] === a ? o = t[3] : (o = (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
11042
11397
  children: a
11043
11398
  }), t[2] = a, t[3] = o), o;
11044
11399
  };
11045
- var import_compiler_runtime$35 = require_compiler_runtime(), Tip = (e) => {
11046
- let t = (0, import_compiler_runtime$35.c)(10), n = e.title ?? "Tip", i;
11400
+ var import_compiler_runtime$37 = require_compiler_runtime(), Tip = (e) => {
11401
+ let t = (0, import_compiler_runtime$37.c)(10), n = e.title ?? "Tip", i;
11047
11402
  t[0] === n ? i = t[1] : (i = (0, import_jsx_runtime.jsx)(AccordionTrigger, {
11048
11403
  className: "pt-2 pb-2 font-normal",
11049
11404
  children: n
@@ -11071,11 +11426,11 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
11071
11426
  }), t[7] = e.className, t[8] = o, t[9] = s) : s = t[9], s;
11072
11427
  };
11073
11428
  const MarimoErrorOutput = (e) => {
11074
- let t = (0, import_compiler_runtime$35.c)(31), { errors: n, cellId: i, className: o } = e, s = useChromeActions(), c = "This cell wasn't run because it has errors", f = "destructive", h = "text-error";
11075
- if (n.some(_temp$3)) c = "Interrupted";
11429
+ let t = (0, import_compiler_runtime$37.c)(31), { errors: n, cellId: i, className: o } = e, s = useChromeActions(), c = "This cell wasn't run because it has errors", d = "destructive", h = "text-error";
11430
+ if (n.some(_temp$4)) c = "Interrupted";
11076
11431
  else if (n.some(_temp2$2)) c = "An internal error occurred";
11077
- else if (n.some(_temp3$1)) c = "Ancestor prevented from running", f = "default", h = "text-secondary-foreground";
11078
- else if (n.some(_temp4)) c = "Ancestor stopped", f = "default", h = "text-secondary-foreground";
11432
+ else if (n.some(_temp3$1)) c = "Ancestor prevented from running", d = "default", h = "text-secondary-foreground";
11433
+ else if (n.some(_temp4)) c = "Ancestor stopped", d = "default", h = "text-secondary-foreground";
11079
11434
  else if (n.some(_temp5)) c = "SQL error";
11080
11435
  else {
11081
11436
  let e2;
@@ -11084,19 +11439,19 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
11084
11439
  i2 && "exception_type" in i2 && (c = i2.exception_type);
11085
11440
  }
11086
11441
  let _, v, y, S, w, E;
11087
- if (t[2] !== f || t[3] !== i || t[4] !== s || t[5] !== o || t[6] !== n || t[7] !== h || t[8] !== c) {
11088
- let e2 = n.filter(_temp7), O2 = n.filter(_temp8), A2 = n.filter(_temp9), M = n.filter(_temp0), I = n.filter(_temp1), z = n.filter(_temp10), U = n.filter(_temp11), K = n.filter(_temp12), q = n.filter(_temp13), J = n.filter(_temp14), Q = n.filter(_temp15), yj = n.filter(_temp16), $ = n.filter(_temp17), bj;
11089
- t[15] === s ? bj = t[16] : (bj = () => {
11442
+ if (t[2] !== d || t[3] !== i || t[4] !== s || t[5] !== o || t[6] !== n || t[7] !== h || t[8] !== c) {
11443
+ let e2 = n.filter(_temp7), O2 = n.filter(_temp8), A2 = n.filter(_temp9), M = n.filter(_temp0), I = n.filter(_temp1), z = n.filter(_temp10), U = n.filter(_temp11), K = n.filter(_temp12), q = n.filter(_temp13), J = n.filter(_temp14), Q = n.filter(_temp15), _M = n.filter(_temp16), $ = n.filter(_temp17), vM;
11444
+ t[15] === s ? vM = t[16] : (vM = () => {
11090
11445
  s.openApplication("scratchpad");
11091
- }, t[15] = s, t[16] = bj);
11092
- let Sj = bj, Cj = () => {
11446
+ }, t[15] = s, t[16] = vM);
11447
+ let yM = vM, xM = () => {
11093
11448
  let t2 = [];
11094
- if (Q.length > 0 || yj.length > 0) {
11449
+ if (Q.length > 0 || _M.length > 0) {
11095
11450
  let e3 = Q.some(_temp18), n2 = !e3 && Q.some(_temp19);
11096
11451
  t2.push((0, import_jsx_runtime.jsxs)("div", {
11097
11452
  children: [
11098
11453
  Q.map(_temp20),
11099
- yj.map(_temp21),
11454
+ _M.map(_temp21),
11100
11455
  e3 && (0, import_jsx_runtime.jsxs)(Button, {
11101
11456
  size: "xs",
11102
11457
  variant: "outline",
@@ -11128,7 +11483,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
11128
11483
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
11129
11484
  errors: [
11130
11485
  ...Q,
11131
- ...yj
11486
+ ..._M
11132
11487
  ],
11133
11488
  cellId: i
11134
11489
  })
@@ -11289,7 +11644,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
11289
11644
  size: "xs",
11290
11645
  variant: "link",
11291
11646
  className: "my-2 font-normal mx-0 px-0",
11292
- onClick: Sj,
11647
+ onClick: yM,
11293
11648
  children: [
11294
11649
  (0, import_jsx_runtime.jsx)(NotebookPen, {
11295
11650
  className: "h-3"
@@ -11414,13 +11769,13 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
11414
11769
  })
11415
11770
  ]
11416
11771
  }, "sql-errors")), t2;
11417
- }, wj = `font-code font-medium tracking-wide ${h}`, Tj;
11418
- t[17] !== wj || t[18] !== c ? (Tj = (0, import_jsx_runtime.jsx)(AlertTitle, {
11419
- className: wj,
11772
+ }, SM = `font-code font-medium tracking-wide ${h}`, CM;
11773
+ t[17] !== SM || t[18] !== c ? (CM = (0, import_jsx_runtime.jsx)(AlertTitle, {
11774
+ className: SM,
11420
11775
  children: c
11421
- }), t[17] = wj, t[18] = c, t[19] = Tj) : Tj = t[19];
11422
- let Ej = Tj;
11423
- _ = Alert, S = f, t[20] === o ? w = t[21] : (w = cn("border-none font-code text-sm text-[0.84375rem] px-0 text-muted-foreground normal [&:has(svg)]:pl-0 space-y-4", o), t[20] = o, t[21] = w), E = Ej, v = "flex flex-col gap-8", y = Cj(), t[2] = f, t[3] = i, t[4] = s, t[5] = o, t[6] = n, t[7] = h, t[8] = c, t[9] = _, t[10] = v, t[11] = y, t[12] = S, t[13] = w, t[14] = E;
11776
+ }), t[17] = SM, t[18] = c, t[19] = CM) : CM = t[19];
11777
+ let wM = CM;
11778
+ _ = Alert, S = d, t[20] === o ? w = t[21] : (w = cn("border-none font-code text-sm text-[0.84375rem] px-0 text-muted-foreground normal [&:has(svg)]:pl-0 space-y-4", o), t[20] = o, t[21] = w), E = wM, v = "flex flex-col gap-8", y = xM(), t[2] = d, t[3] = i, t[4] = s, t[5] = o, t[6] = n, t[7] = h, t[8] = c, t[9] = _, t[10] = v, t[11] = y, t[12] = S, t[13] = w, t[14] = E;
11424
11779
  } else _ = t[9], v = t[10], y = t[11], S = t[12], w = t[13], E = t[14];
11425
11780
  let O;
11426
11781
  t[22] !== v || t[23] !== y ? (O = (0, import_jsx_runtime.jsx)("div", {
@@ -11439,7 +11794,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
11439
11794
  ]
11440
11795
  }), t[25] = _, t[26] = S, t[27] = w, t[28] = E, t[29] = O, t[30] = A) : A = t[30], A;
11441
11796
  };
11442
- function _temp$3(e) {
11797
+ function _temp$4(e) {
11443
11798
  return e.type === "interruption";
11444
11799
  }
11445
11800
  function _temp2$2(e) {
@@ -11748,9 +12103,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
11748
12103
  })
11749
12104
  }, `sql-error-${t}`);
11750
12105
  }
11751
- var import_compiler_runtime$34 = require_compiler_runtime();
12106
+ var import_compiler_runtime$36 = require_compiler_runtime();
11752
12107
  const TextOutput = (e) => {
11753
- let t = (0, import_compiler_runtime$34.c)(13), { text: n, channel: i, wrapText: o } = e, s = i === "stdout" || i === "stderr", c;
12108
+ let t = (0, import_compiler_runtime$36.c)(13), { text: n, channel: i, wrapText: o } = e, s = i === "stdout" || i === "stderr", c;
11754
12109
  t[0] === o ? c = t[1] : (c = (e2) => (0, import_jsx_runtime.jsx)("span", {
11755
12110
  className: o ? "whitespace-pre-wrap break-words" : "whitespace-pre",
11756
12111
  children: (0, import_jsx_runtime.jsx)(RenderTextWithLinks, {
@@ -11767,17 +12122,17 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
11767
12122
  children: v
11768
12123
  }), t[10] = _, t[11] = v, t[12] = y) : y = t[12], y;
11769
12124
  };
11770
- var import_compiler_runtime$33 = require_compiler_runtime();
12125
+ var import_compiler_runtime$35 = require_compiler_runtime();
11771
12126
  const VideoOutput = (e) => {
11772
- let t = (0, import_compiler_runtime$33.c)(3), { src: n, className: i } = e, a;
12127
+ let t = (0, import_compiler_runtime$35.c)(3), { src: n, className: i } = e, a;
11773
12128
  return t[0] !== i || t[1] !== n ? (a = (0, import_jsx_runtime.jsx)("iframe", {
11774
12129
  className: i,
11775
12130
  src: n
11776
12131
  }), t[0] = i, t[1] = n, t[2] = a) : a = t[2], a;
11777
12132
  };
11778
- var import_compiler_runtime$32 = require_compiler_runtime();
12133
+ var import_compiler_runtime$34 = require_compiler_runtime();
11779
12134
  useOverflowDetection = function(e, t) {
11780
- let n = (0, import_compiler_runtime$32.c)(4), i = t === void 0 ? true : t, [a, o] = (0, import_react.useState)(false), s, c;
12135
+ let n = (0, import_compiler_runtime$34.c)(4), i = t === void 0 ? true : t, [a, o] = (0, import_react.useState)(false), s, c;
11781
12136
  return n[0] !== i || n[1] !== e ? (s = () => {
11782
12137
  let t2 = e.current;
11783
12138
  if (!t2 || !i) return;
@@ -11874,9 +12229,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
11874
12229
  LazyVegaEmbed = import_react.lazy(() => import("./react-vega-jy3CfYys.js").then((e) => ({
11875
12230
  default: e.VegaEmbed
11876
12231
  })));
11877
- var import_compiler_runtime$31 = require_compiler_runtime();
12232
+ var import_compiler_runtime$33 = require_compiler_runtime();
11878
12233
  ChartLoadingState = () => {
11879
- let e = (0, import_compiler_runtime$31.c)(1), t;
12234
+ let e = (0, import_compiler_runtime$33.c)(1), t;
11880
12235
  return e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t = (0, import_jsx_runtime.jsxs)("div", {
11881
12236
  className: "flex items-center gap-2 justify-center",
11882
12237
  children: [
@@ -11891,7 +12246,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
11891
12246
  }), e[0] = t) : t = e[0], t;
11892
12247
  };
11893
12248
  ChartErrorState = (e) => {
11894
- let t = (0, import_compiler_runtime$31.c)(2), { error: n } = e, i;
12249
+ let t = (0, import_compiler_runtime$33.c)(2), { error: n } = e, i;
11895
12250
  return t[0] === n ? i = t[1] : (i = (0, import_jsx_runtime.jsx)("div", {
11896
12251
  className: "flex items-center justify-center",
11897
12252
  children: (0, import_jsx_runtime.jsx)(ErrorBanner, {
@@ -11900,7 +12255,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
11900
12255
  }), t[0] = n, t[1] = i), i;
11901
12256
  };
11902
12257
  ChartInfoState = (e) => {
11903
- let t = (0, import_compiler_runtime$31.c)(8), { children: n, className: i } = e, o;
12258
+ let t = (0, import_compiler_runtime$33.c)(8), { children: n, className: i } = e, o;
11904
12259
  t[0] === i ? o = t[1] : (o = cn("flex flex-col items-center justify-center gap-4", i), t[0] = i, t[1] = o);
11905
12260
  let s;
11906
12261
  t[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = (0, import_jsx_runtime.jsx)(ChartPie, {
@@ -11920,11 +12275,11 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
11920
12275
  ]
11921
12276
  }), t[5] = o, t[6] = c, t[7] = d) : d = t[7], d;
11922
12277
  };
11923
- let import_compiler_runtime$30;
11924
- import_compiler_runtime$30 = require_compiler_runtime();
12278
+ let import_compiler_runtime$32;
12279
+ import_compiler_runtime$32 = require_compiler_runtime();
11925
12280
  Tabs = Root2;
11926
12281
  TabsList = import_react.forwardRef((e, t) => {
11927
- let n = (0, import_compiler_runtime$30.c)(9), i, o;
12282
+ let n = (0, import_compiler_runtime$32.c)(9), i, o;
11928
12283
  n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
11929
12284
  let s;
11930
12285
  n[3] === i ? s = n[4] : (s = cn("inline-flex max-h-14 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground", i), n[3] = i, n[4] = s);
@@ -11937,7 +12292,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
11937
12292
  });
11938
12293
  TabsList.displayName = List.displayName;
11939
12294
  TabsTrigger = import_react.forwardRef((e, t) => {
11940
- let n = (0, import_compiler_runtime$30.c)(9), i, o;
12295
+ let n = (0, import_compiler_runtime$32.c)(9), i, o;
11941
12296
  n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
11942
12297
  let s;
11943
12298
  n[3] === i ? s = n[4] : (s = cn("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm", i), n[3] = i, n[4] = s);
@@ -11950,7 +12305,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
11950
12305
  });
11951
12306
  TabsTrigger.displayName = Trigger.displayName;
11952
12307
  TabsContent = import_react.forwardRef((e, t) => {
11953
- let n = (0, import_compiler_runtime$30.c)(9), i, o;
12308
+ let n = (0, import_compiler_runtime$32.c)(9), i, o;
11954
12309
  n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
11955
12310
  let s;
11956
12311
  n[3] === i ? s = n[4] : (s = cn("mt-2 ring-offset-background focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2", i), n[3] = i, n[4] = s);
@@ -11962,9 +12317,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
11962
12317
  }), n[5] = o, n[6] = t, n[7] = s, n[8] = c) : c = n[8], c;
11963
12318
  });
11964
12319
  TabsContent.displayName = Content.displayName;
11965
- var import_compiler_runtime$29 = require_compiler_runtime();
12320
+ var import_compiler_runtime$31 = require_compiler_runtime();
11966
12321
  const WithLocale = (e) => {
11967
- let t = (0, import_compiler_runtime$29.c)(3), { children: n } = e, { locale: i } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), a;
12322
+ let t = (0, import_compiler_runtime$31.c)(3), { children: n } = e, { locale: i } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), a;
11968
12323
  return t[0] !== n || t[1] !== i ? (a = n(i), t[0] = n, t[1] = i, t[2] = a) : a = t[2], a;
11969
12324
  };
11970
12325
  function tzName(e, t, n = "long") {
@@ -12309,7 +12664,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12309
12664
  }, [
12310
12665
  h
12311
12666
  ]), k(() => {
12312
- U(6, bj);
12667
+ U(6, vM);
12313
12668
  }, []);
12314
12669
  let K = import_react.useMemo(() => ({
12315
12670
  subscribe: (e2) => (s.current.add(e2), () => s.current.delete(e2)),
@@ -12318,7 +12673,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12318
12673
  var _a2;
12319
12674
  var a2, o2, s2;
12320
12675
  if (!Object.is(n.current[e2], t2)) {
12321
- if (n.current[e2] = t2, e2 === "search") $(), Q(), U(1, yj);
12676
+ if (n.current[e2] = t2, e2 === "search") $(), Q(), U(1, _M);
12322
12677
  else if (e2 === "value") {
12323
12678
  if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
12324
12679
  let e3 = document.getElementById(I);
@@ -12326,8 +12681,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12326
12681
  }
12327
12682
  if (U(7, () => {
12328
12683
  var _a3;
12329
- n.current.selectedItemId = (_a3 = xj()) == null ? void 0 : _a3.id, K.emit();
12330
- }), i2 || U(5, bj), ((_a2 = c.current) == null ? void 0 : _a2.value) !== void 0) {
12684
+ n.current.selectedItemId = (_a3 = yM()) == null ? void 0 : _a3.id, K.emit();
12685
+ }), i2 || U(5, vM), ((_a2 = c.current) == null ? void 0 : _a2.value) !== void 0) {
12331
12686
  let e3 = t2 ?? "";
12332
12687
  (s2 = (o2 = c.current).onValueChange) == null || s2.call(o2, e3);
12333
12688
  return;
@@ -12352,12 +12707,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12352
12707
  item: (e2, t2) => (i.current.add(e2), t2 && (a.current.has(t2) ? a.current.get(t2).add(e2) : a.current.set(t2, /* @__PURE__ */ new Set([
12353
12708
  e2
12354
12709
  ]))), U(3, () => {
12355
- $(), Q(), n.current.value || yj(), K.emit();
12710
+ $(), Q(), n.current.value || _M(), K.emit();
12356
12711
  }), () => {
12357
12712
  o.current.delete(e2), i.current.delete(e2), n.current.filtered.items.delete(e2);
12358
- let t3 = xj();
12713
+ let t3 = yM();
12359
12714
  U(4, () => {
12360
- $(), (t3 == null ? void 0 : t3.getAttribute("id")) === e2 && yj(), K.emit();
12715
+ $(), (t3 == null ? void 0 : t3.getAttribute("id")) === e2 && _M(), K.emit();
12361
12716
  });
12362
12717
  }),
12363
12718
  group: (e2) => (a.current.has(e2) || a.current.set(e2, /* @__PURE__ */ new Set()), () => {
@@ -12390,7 +12745,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12390
12745
  ]);
12391
12746
  });
12392
12747
  let i2 = z.current;
12393
- Sj().sort((t3, n2) => {
12748
+ bM().sort((t3, n2) => {
12394
12749
  let i3 = t3.getAttribute("id"), a2 = n2.getAttribute("id");
12395
12750
  return (e2.get(a2) ?? 0) - (e2.get(i3) ?? 0);
12396
12751
  }).forEach((e3) => {
@@ -12402,9 +12757,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12402
12757
  t3 == null ? void 0 : t3.parentElement.appendChild(t3);
12403
12758
  });
12404
12759
  }
12405
- function yj() {
12760
+ function _M() {
12406
12761
  var _a2;
12407
- let e2 = (_a2 = Sj().find((e3) => e3.getAttribute("aria-disabled") !== "true")) == null ? void 0 : _a2.getAttribute(T);
12762
+ let e2 = (_a2 = bM().find((e3) => e3.getAttribute("aria-disabled") !== "true")) == null ? void 0 : _a2.getAttribute(T);
12408
12763
  K.setState("value", e2 || void 0);
12409
12764
  }
12410
12765
  function $() {
@@ -12425,43 +12780,43 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12425
12780
  }
12426
12781
  n.current.filtered.count = e2;
12427
12782
  }
12428
- function bj() {
12783
+ function vM() {
12429
12784
  var _a2, _b;
12430
12785
  var e2;
12431
- let t2 = xj();
12786
+ let t2 = yM();
12432
12787
  t2 && (((_a2 = t2.parentElement) == null ? void 0 : _a2.firstChild) === t2 && ((e2 = (_b = t2.closest(N$1)) == null ? void 0 : _b.querySelector(be)) == null || e2.scrollIntoView({
12433
12788
  block: "nearest"
12434
12789
  })), t2.scrollIntoView({
12435
12790
  block: "nearest"
12436
12791
  }));
12437
12792
  }
12438
- function xj() {
12793
+ function yM() {
12439
12794
  var _a2;
12440
12795
  return (_a2 = z.current) == null ? void 0 : _a2.querySelector(`${le}[aria-selected="true"]`);
12441
12796
  }
12442
- function Sj() {
12797
+ function bM() {
12443
12798
  var _a2;
12444
12799
  return Array.from(((_a2 = z.current) == null ? void 0 : _a2.querySelectorAll(ce$1)) || []);
12445
12800
  }
12446
- function Cj(e2) {
12447
- let t2 = Sj()[e2];
12801
+ function xM(e2) {
12802
+ let t2 = bM()[e2];
12448
12803
  t2 && K.setState("value", t2.getAttribute(T));
12449
12804
  }
12450
- function wj(e2) {
12805
+ function SM(e2) {
12451
12806
  var t2;
12452
- let n2 = xj(), i2 = Sj(), a2 = i2.findIndex((e3) => e3 === n2), o2 = i2[a2 + e2];
12807
+ let n2 = yM(), i2 = bM(), a2 = i2.findIndex((e3) => e3 === n2), o2 = i2[a2 + e2];
12453
12808
  (t2 = c.current) != null && t2.loop && (o2 = a2 + e2 < 0 ? i2[i2.length - 1] : a2 + e2 === i2.length ? i2[0] : i2[a2 + e2]), o2 && K.setState("value", o2.getAttribute(T));
12454
12809
  }
12455
- function Tj(e2) {
12810
+ function CM(e2) {
12456
12811
  var _a2;
12457
- let t2 = (_a2 = xj()) == null ? void 0 : _a2.closest(N$1), n2;
12812
+ let t2 = (_a2 = yM()) == null ? void 0 : _a2.closest(N$1), n2;
12458
12813
  for (; t2 && !n2; ) t2 = e2 > 0 ? we(t2, N$1) : De(t2, N$1), n2 = t2 == null ? void 0 : t2.querySelector(ce$1);
12459
- n2 ? K.setState("value", n2.getAttribute(T)) : wj(e2);
12814
+ n2 ? K.setState("value", n2.getAttribute(T)) : SM(e2);
12460
12815
  }
12461
- let Ej = () => Cj(Sj().length - 1), Dj = (e2) => {
12462
- e2.preventDefault(), e2.metaKey ? Ej() : e2.altKey ? Tj(1) : wj(1);
12463
- }, Oj = (e2) => {
12464
- e2.preventDefault(), e2.metaKey ? Cj(0) : e2.altKey ? Tj(-1) : wj(-1);
12816
+ let wM = () => xM(bM().length - 1), TM = (e2) => {
12817
+ e2.preventDefault(), e2.metaKey ? wM() : e2.altKey ? CM(1) : SM(1);
12818
+ }, EM = (e2) => {
12819
+ e2.preventDefault(), e2.metaKey ? xM(0) : e2.altKey ? CM(-1) : SM(-1);
12465
12820
  };
12466
12821
  return import_react.createElement(Primitive.div, {
12467
12822
  ref: t,
@@ -12475,27 +12830,27 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12475
12830
  if (!(e2.defaultPrevented || n2)) switch (e2.key) {
12476
12831
  case "n":
12477
12832
  case "j":
12478
- E && e2.ctrlKey && Dj(e2);
12833
+ E && e2.ctrlKey && TM(e2);
12479
12834
  break;
12480
12835
  case "ArrowDown":
12481
- Dj(e2);
12836
+ TM(e2);
12482
12837
  break;
12483
12838
  case "p":
12484
12839
  case "k":
12485
- E && e2.ctrlKey && Oj(e2);
12840
+ E && e2.ctrlKey && EM(e2);
12486
12841
  break;
12487
12842
  case "ArrowUp":
12488
- Oj(e2);
12843
+ EM(e2);
12489
12844
  break;
12490
12845
  case "Home":
12491
- e2.preventDefault(), Cj(0);
12846
+ e2.preventDefault(), xM(0);
12492
12847
  break;
12493
12848
  case "End":
12494
- e2.preventDefault(), Ej();
12849
+ e2.preventDefault(), wM();
12495
12850
  break;
12496
12851
  case "Enter": {
12497
12852
  e2.preventDefault();
12498
- let t3 = xj();
12853
+ let t3 = yM();
12499
12854
  if (t3) {
12500
12855
  let e3 = new Event(Z);
12501
12856
  t3.dispatchEvent(e3);
@@ -12515,7 +12870,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12515
12870
  }, e2))));
12516
12871
  }), he$1 = import_react.forwardRef((e, t) => {
12517
12872
  var _a2;
12518
- let n = useId$1(), i = import_react.useRef(null), a = import_react.useContext(fe), o = K$1(), c = pe(e), d = ((_a2 = c.current) == null ? void 0 : _a2.forceMount) ?? (a == null ? void 0 : a.forceMount);
12873
+ let n = useId$1(), i = import_react.useRef(null), a = import_react.useContext(fe), o = K$1(), s = pe(e), d = ((_a2 = s.current) == null ? void 0 : _a2.forceMount) ?? (a == null ? void 0 : a.forceMount);
12519
12874
  k(() => {
12520
12875
  if (!d) return o.item(n, a == null ? void 0 : a.id);
12521
12876
  }, [
@@ -12536,7 +12891,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12536
12891
  ]);
12537
12892
  function y() {
12538
12893
  var e2, t2;
12539
- S(), (t2 = (e2 = c.current).onSelect) == null || t2.call(e2, f.current);
12894
+ S(), (t2 = (e2 = s.current).onSelect) == null || t2.call(e2, f.current);
12540
12895
  }
12541
12896
  function S() {
12542
12897
  h.setState("value", f.current, true);
@@ -12557,14 +12912,14 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12557
12912
  onClick: w ? void 0 : y
12558
12913
  }, e.children);
12559
12914
  }), Ee = import_react.forwardRef((e, t) => {
12560
- let { heading: n, children: i, forceMount: a, ...o } = e, c = useId$1(), d = import_react.useRef(null), f = import_react.useRef(null), h = useId$1(), _ = K$1(), v = P$1((e2) => a || _.filter() === false ? true : e2.search ? e2.filtered.groups.has(c) : true);
12561
- k(() => _.group(c), []), ve(c, d, [
12915
+ let { heading: n, children: i, forceMount: a, ...o } = e, s = useId$1(), d = import_react.useRef(null), f = import_react.useRef(null), h = useId$1(), _ = K$1(), v = P$1((e2) => a || _.filter() === false ? true : e2.search ? e2.filtered.groups.has(s) : true);
12916
+ k(() => _.group(s), []), ve(s, d, [
12562
12917
  e.value,
12563
12918
  e.heading,
12564
12919
  f
12565
12920
  ]);
12566
12921
  let y = import_react.useMemo(() => ({
12567
- id: c,
12922
+ id: s,
12568
12923
  forceMount: a
12569
12924
  }), [
12570
12925
  a
@@ -12622,10 +12977,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12622
12977
  }
12623
12978
  });
12624
12979
  }), Ce = import_react.forwardRef((e, t) => {
12625
- let { children: n, label: i = "Suggestions", ...a } = e, o = import_react.useRef(null), c = import_react.useRef(null), d = P$1((e2) => e2.selectedItemId), f = K$1();
12980
+ let { children: n, label: i = "Suggestions", ...a } = e, o = import_react.useRef(null), s = import_react.useRef(null), d = P$1((e2) => e2.selectedItemId), f = K$1();
12626
12981
  return import_react.useEffect(() => {
12627
- if (c.current && o.current) {
12628
- let e2 = c.current, t2 = o.current, n2, i2 = new ResizeObserver(() => {
12982
+ if (s.current && o.current) {
12983
+ let e2 = s.current, t2 = o.current, n2, i2 = new ResizeObserver(() => {
12629
12984
  n2 = requestAnimationFrame(() => {
12630
12985
  let n3 = e2.offsetHeight;
12631
12986
  t2.style.setProperty("--cmdk-list-height", n3.toFixed(1) + "px");
@@ -12645,7 +13000,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12645
13000
  "aria-label": i,
12646
13001
  id: f.listId
12647
13002
  }, B(e, (e2) => import_react.createElement("div", {
12648
- ref: composeRefs(c, f.listInnerRef),
13003
+ ref: composeRefs(s, f.listInnerRef),
12649
13004
  "cmdk-list-sizer": ""
12650
13005
  }, e2)));
12651
13006
  }), xe = import_react.forwardRef((e, t) => {
@@ -12783,10 +13138,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12783
13138
  function smartMatchFilter(e, t, n) {
12784
13139
  return smartMatch(t, e) ? 1 : n && smartMatch(t, n) ? 0.8 : 0;
12785
13140
  }
12786
- let import_compiler_runtime$28;
12787
- import_compiler_runtime$28 = require_compiler_runtime();
13141
+ let import_compiler_runtime$30;
13142
+ import_compiler_runtime$30 = require_compiler_runtime();
12788
13143
  Command = import_react.forwardRef((e, t) => {
12789
- let n = (0, import_compiler_runtime$28.c)(9), i, o;
13144
+ let n = (0, import_compiler_runtime$30.c)(9), i, o;
12790
13145
  n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
12791
13146
  let s;
12792
13147
  n[3] === i ? s = n[4] : (s = cn("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground", i), n[3] = i, n[4] = s);
@@ -12800,7 +13155,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12800
13155
  });
12801
13156
  Command.displayName = _e.displayName;
12802
13157
  CommandInput = import_react.forwardRef((e, t) => {
12803
- let n = (0, import_compiler_runtime$28.c)(19), i, o, s, c;
13158
+ let n = (0, import_compiler_runtime$30.c)(19), i, o, s, c;
12804
13159
  n[0] === e ? (i = n[1], o = n[2], s = n[3], c = n[4]) : ({ className: i, icon: o, rootClassName: c, ...s } = e, n[0] = e, n[1] = i, n[2] = o, n[3] = s, n[4] = c);
12805
13160
  let d;
12806
13161
  n[5] === c ? d = n[6] : (d = cn("flex items-center border-b px-3", c), n[5] = c, n[6] = d);
@@ -12828,7 +13183,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12828
13183
  });
12829
13184
  CommandInput.displayName = _e.Input.displayName;
12830
13185
  CommandList = import_react.forwardRef((e, t) => {
12831
- let n = (0, import_compiler_runtime$28.c)(9), i, o;
13186
+ let n = (0, import_compiler_runtime$30.c)(9), i, o;
12832
13187
  n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
12833
13188
  let s;
12834
13189
  n[3] === i ? s = n[4] : (s = cn("max-h-[300px] overflow-y-auto overflow-x-hidden", i), n[3] = i, n[4] = s);
@@ -12841,7 +13196,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12841
13196
  });
12842
13197
  CommandList.displayName = _e.List.displayName;
12843
13198
  CommandEmpty = import_react.forwardRef((e, t) => {
12844
- let n = (0, import_compiler_runtime$28.c)(3), i;
13199
+ let n = (0, import_compiler_runtime$30.c)(3), i;
12845
13200
  return n[0] !== e || n[1] !== t ? (i = (0, import_jsx_runtime.jsx)(_e.Empty, {
12846
13201
  ref: t,
12847
13202
  className: "py-6 text-center text-sm",
@@ -12850,7 +13205,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12850
13205
  });
12851
13206
  CommandEmpty.displayName = _e.Empty.displayName;
12852
13207
  var CommandGroup = import_react.forwardRef((e, t) => {
12853
- let n = (0, import_compiler_runtime$28.c)(9), i, o;
13208
+ let n = (0, import_compiler_runtime$30.c)(9), i, o;
12854
13209
  n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
12855
13210
  let s;
12856
13211
  n[3] === i ? s = n[4] : (s = cn("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground", i), n[3] = i, n[4] = s);
@@ -12863,7 +13218,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12863
13218
  });
12864
13219
  CommandGroup.displayName = _e.Group.displayName;
12865
13220
  CommandSeparator = import_react.forwardRef((e, t) => {
12866
- let n = (0, import_compiler_runtime$28.c)(9), i, a;
13221
+ let n = (0, import_compiler_runtime$30.c)(9), i, a;
12867
13222
  n[0] === e ? (i = n[1], a = n[2]) : ({ className: i, ...a } = e, n[0] = e, n[1] = i, n[2] = a);
12868
13223
  let o;
12869
13224
  n[3] === i ? o = n[4] : (o = menuSeparatorVariants({
@@ -12878,7 +13233,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12878
13233
  });
12879
13234
  CommandSeparator.displayName = _e.Separator.displayName;
12880
13235
  CommandItem = import_react.forwardRef((e, t) => {
12881
- let n = (0, import_compiler_runtime$28.c)(17), i, o, s, c, d;
13236
+ let n = (0, import_compiler_runtime$30.c)(17), i, o, s, c, d;
12882
13237
  if (n[0] !== t || n[1] !== e) {
12883
13238
  let { className: f2, variant: h, inset: _, ...v } = e;
12884
13239
  i = _e.Item, o = t, n[7] !== f2 || n[8] !== _ || n[9] !== h ? (s = cn(menuItemVariants({
@@ -12895,9 +13250,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12895
13250
  }), n[11] = i, n[12] = o, n[13] = s, n[14] = c, n[15] = d, n[16] = f) : f = n[16], f;
12896
13251
  });
12897
13252
  CommandItem.displayName = _e.Item.displayName;
12898
- var import_compiler_runtime$27 = require_compiler_runtime();
13253
+ var import_compiler_runtime$29 = require_compiler_runtime();
12899
13254
  const DraggablePopover = (e) => {
12900
- let t = (0, import_compiler_runtime$27.c)(25), n, i, a;
13255
+ let t = (0, import_compiler_runtime$29.c)(25), n, i, a;
12901
13256
  t[0] === e ? (n = t[1], i = t[2], a = t[3]) : ({ children: n, className: i, ...a } = e, t[0] = e, t[1] = n, t[2] = i, t[3] = a);
12902
13257
  let o;
12903
13258
  t[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = {
@@ -13137,7 +13492,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
13137
13492
  negate: false
13138
13493
  };
13139
13494
  };
13140
- var import_compiler_runtime$26 = require_compiler_runtime(), WHITESPACE_CHARS = {
13495
+ var import_compiler_runtime$28 = require_compiler_runtime(), WHITESPACE_CHARS = {
13141
13496
  " ": {
13142
13497
  marker: "\u2423",
13143
13498
  name: "space"
@@ -13213,7 +13568,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
13213
13568
  }
13214
13569
  };
13215
13570
  function WhitespaceMarkers(e) {
13216
- let t = (0, import_compiler_runtime$26.c)(7), { value: n } = e;
13571
+ let t = (0, import_compiler_runtime$28.c)(7), { value: n } = e;
13217
13572
  if (!n) return null;
13218
13573
  let i;
13219
13574
  t[0] === n ? i = t[1] : (i = describeWhitespace(n), t[0] = n, t[1] = i);
@@ -13228,7 +13583,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
13228
13583
  }), t[4] = a, t[5] = o, t[6] = s) : s = t[6], s;
13229
13584
  }
13230
13585
  function SentinelCell(e) {
13231
- let t = (0, import_compiler_runtime$26.c)(15), { sentinel: n } = e, i = SENTINEL_CONFIG[n.type], a;
13586
+ let t = (0, import_compiler_runtime$28.c)(15), { sentinel: n } = e, i = SENTINEL_CONFIG[n.type], a;
13232
13587
  t[0] !== i || t[1] !== n.value ? (a = i.label(n.value), t[0] = i, t[1] = n.value, t[2] = a) : a = t[2];
13233
13588
  let o = a, s;
13234
13589
  t[3] !== i || t[4] !== n.value ? (s = i.tooltip(n.value), t[3] = i, t[4] = n.value, t[5] = s) : s = t[5];
@@ -15292,7 +15647,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
15292
15647
  ],
15293
15648
  unknown: []
15294
15649
  };
15295
- var import_compiler_runtime$25 = require_compiler_runtime();
15650
+ var import_compiler_runtime$27 = require_compiler_runtime();
15296
15651
  function renderFormatOptions(e, t) {
15297
15652
  var _a2, _b, _c;
15298
15653
  let n = (_a2 = e.columnDef.meta) == null ? void 0 : _a2.dataType, i = n ? formatOptions[n] : [];
@@ -15491,7 +15846,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
15491
15846
  }) : null;
15492
15847
  }
15493
15848
  const ClearFilterMenuItem = (e) => {
15494
- let t = (0, import_compiler_runtime$25.c)(5), { column: n } = e, i;
15849
+ let t = (0, import_compiler_runtime$27.c)(5), { column: n } = e, i;
15495
15850
  t[0] === n ? i = t[1] : (i = () => n.setFilterValue(void 0), t[0] = n, t[1] = i);
15496
15851
  let a;
15497
15852
  t[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = (0, import_jsx_runtime.jsx)(FunnelX, {
@@ -15521,7 +15876,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
15521
15876
  });
15522
15877
  }
15523
15878
  const FilterButtons = (e) => {
15524
- let t = (0, import_compiler_runtime$25.c)(8), { onApply: n, onClear: i, clearButtonDisabled: a } = e, o;
15879
+ let t = (0, import_compiler_runtime$27.c)(8), { onApply: n, onClear: i, clearButtonDisabled: a } = e, o;
15525
15880
  t[0] === n ? o = t[1] : (o = (0, import_jsx_runtime.jsx)(Button, {
15526
15881
  variant: "link",
15527
15882
  size: "sm",
@@ -15546,9 +15901,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
15546
15901
  ]
15547
15902
  }), t[5] = o, t[6] = s, t[7] = c) : c = t[7], c;
15548
15903
  };
15549
- var import_compiler_runtime$24 = require_compiler_runtime();
15904
+ var import_compiler_runtime$26 = require_compiler_runtime();
15550
15905
  const MimeCell = (e) => {
15551
- let t = (0, import_compiler_runtime$24.c)(6), { value: n } = e, i;
15906
+ let t = (0, import_compiler_runtime$26.c)(6), { value: n } = e, i;
15552
15907
  t[0] !== n.data || t[1] !== n.mimetype ? (i = {
15553
15908
  channel: "output",
15554
15909
  data: n.data,
@@ -16039,18 +16394,18 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
16039
16394
  ]
16040
16395
  });
16041
16396
  }, PopoverFilterByValues = ({ setIsFilterValueOpen: e, calculateTopKRows: t, column: i }) => {
16042
- let [a, o] = (0, import_react.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, import_react.useState)(""), { data: f, isPending: h, error: _ } = useAsyncData(async () => t ? (await t({
16397
+ let [a, o] = (0, import_react.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, import_react.useState)(""), { data: d, isPending: h, error: _ } = useAsyncData(async () => t ? (await t({
16043
16398
  column: i.id,
16044
16399
  k: TOP_K_ROWS
16045
16400
  })).data : null, []), v = (0, import_react.useMemo)(() => {
16046
- if (!f) return [];
16401
+ if (!d) return [];
16047
16402
  try {
16048
- return f.filter(([e2, t2]) => e2 === void 0 ? false : String(e2).toLowerCase().includes(s.toLowerCase()));
16403
+ return d.filter(([e2, t2]) => e2 === void 0 ? false : String(e2).toLowerCase().includes(s.toLowerCase()));
16049
16404
  } catch (e2) {
16050
16405
  return Logger.error("Error filtering data", e2), [];
16051
16406
  }
16052
16407
  }, [
16053
- f,
16408
+ d,
16054
16409
  s
16055
16410
  ]), y;
16056
16411
  h && (y = (0, import_jsx_runtime.jsx)(Spinner, {
@@ -16066,7 +16421,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
16066
16421
  return n ? i2.delete(e2) : i2.add(e2), i2;
16067
16422
  });
16068
16423
  }, w = (e2) => {
16069
- f && o(e2 ? new Set(v.map(([e3]) => e3)) : /* @__PURE__ */ new Set());
16424
+ d && o(e2 ? new Set(v.map(([e3]) => e3)) : /* @__PURE__ */ new Set());
16070
16425
  }, E = () => {
16071
16426
  if (a.size === 0) {
16072
16427
  i.setFilterValue(void 0);
@@ -16079,7 +16434,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
16079
16434
  operator: "in"
16080
16435
  }));
16081
16436
  };
16082
- if (f) {
16437
+ if (d) {
16083
16438
  let e2 = a.size === v.length;
16084
16439
  y = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
16085
16440
  children: [
@@ -16088,7 +16443,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
16088
16443
  shouldFilter: false,
16089
16444
  children: [
16090
16445
  (0, import_jsx_runtime.jsx)(CommandInput, {
16091
- placeholder: `Search among the top ${f.length} values`,
16446
+ placeholder: `Search among the top ${d.length} values`,
16092
16447
  autoFocus: true,
16093
16448
  onValueChange: (e3) => c(e3.trim())
16094
16449
  }),
@@ -16231,9 +16586,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
16231
16586
  let [t, n] = import_react.useState(e), [i, a] = import_react.useState(null);
16232
16587
  return e !== t && (a(t), n(e)), i;
16233
16588
  };
16234
- var import_compiler_runtime$23 = require_compiler_runtime();
16589
+ var import_compiler_runtime$25 = require_compiler_runtime();
16235
16590
  DelayMount = (e) => {
16236
- let t = (0, import_compiler_runtime$23.c)(13), { milliseconds: n, children: i, fallback: a, visibility: o, threshold: s, rootMargin: c } = e, d = o === void 0 ? false : o, f = s === void 0 ? 0 : s, h = c === void 0 ? "0px" : c, [_, v] = (0, import_react.useState)(false), [y, S] = (0, import_react.useState)(false), w;
16591
+ let t = (0, import_compiler_runtime$25.c)(13), { milliseconds: n, children: i, fallback: a, visibility: o, threshold: s, rootMargin: c } = e, d = o === void 0 ? false : o, f = s === void 0 ? 0 : s, h = c === void 0 ? "0px" : c, [_, v] = (0, import_react.useState)(false), [y, S] = (0, import_react.useState)(false), w;
16237
16592
  t[0] !== h || t[1] !== f ? (w = {
16238
16593
  threshold: f,
16239
16594
  root: null,
@@ -16264,9 +16619,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
16264
16619
  children: J
16265
16620
  }), t[10] = q, t[11] = J, t[12] = Q) : Q = t[12], Q;
16266
16621
  };
16267
- var import_compiler_runtime$22 = require_compiler_runtime();
16622
+ var import_compiler_runtime$24 = require_compiler_runtime();
16268
16623
  const DatePopover = (e) => {
16269
- let t = (0, import_compiler_runtime$22.c)(15), { date: n, type: i, children: a } = e;
16624
+ let t = (0, import_compiler_runtime$24.c)(15), { date: n, type: i, children: a } = e;
16270
16625
  if (!n || Number.isNaN(new Date(n).getTime())) return a;
16271
16626
  let o;
16272
16627
  t[0] === n ? o = t[1] : (o = new Date(n), t[0] = n, t[1] = o);
@@ -16306,7 +16661,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
16306
16661
  }), t[12] = h, t[13] = _, t[14] = v) : v = t[14], v;
16307
16662
  };
16308
16663
  var TimezoneDisplay = (e) => {
16309
- let t = (0, import_compiler_runtime$22.c)(26), { date: n } = e, { locale: i } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), a;
16664
+ let t = (0, import_compiler_runtime$24.c)(26), { date: n } = e, { locale: i } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), a;
16310
16665
  t[0] === i ? a = t[1] : (a = Intl.DateTimeFormat(i).resolvedOptions(), t[0] = i, t[1] = a);
16311
16666
  let o = a.timeZone, s = n.getUTCMilliseconds() !== 0, c;
16312
16667
  t[2] === s ? c = t[3] : (c = s ? {
@@ -16382,7 +16737,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
16382
16737
  ]
16383
16738
  }), t[23] = O, t[24] = y, t[25] = A) : A = t[25], A;
16384
16739
  }, DateDisplay = (e) => {
16385
- let t = (0, import_compiler_runtime$22.c)(6), { date: n } = e, i;
16740
+ let t = (0, import_compiler_runtime$24.c)(6), { date: n } = e, i;
16386
16741
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = {
16387
16742
  timeZone: "UTC",
16388
16743
  dateStyle: "long"
@@ -16394,7 +16749,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
16394
16749
  children: o
16395
16750
  }), t[4] = o, t[5] = s), s;
16396
16751
  }, RelativeTime = (e) => {
16397
- let t = (0, import_compiler_runtime$22.c)(6), { date: n } = e, { locale: i } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), a, o;
16752
+ let t = (0, import_compiler_runtime$24.c)(6), { date: n } = e, { locale: i } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), a, o;
16398
16753
  if (t[0] !== n || t[1] !== i) {
16399
16754
  o = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
16400
16755
  bb0: {
@@ -16446,7 +16801,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
16446
16801
  return t[4] === a ? s = t[5] : (s = (0, import_jsx_runtime.jsx)("span", {
16447
16802
  children: a
16448
16803
  }), t[4] = a, t[5] = s), s;
16449
- }, import_compiler_runtime$21 = require_compiler_runtime(), hashString = (e) => {
16804
+ }, import_compiler_runtime$23 = require_compiler_runtime(), hashString = (e) => {
16450
16805
  let t = 0;
16451
16806
  for (let n = 0; n < e.length; n++) {
16452
16807
  let i = e.charCodeAt(n);
@@ -16463,7 +16818,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
16463
16818
  return i;
16464
16819
  };
16465
16820
  const ChartSkeleton = (e) => {
16466
- let t = (0, import_compiler_runtime$21.c)(11), { seed: n, width: i, height: a } = e, o = i / 9, s = a - 15, c;
16821
+ let t = (0, import_compiler_runtime$23.c)(11), { seed: n, width: i, height: a } = e, o = i / 9, s = a - 15, c;
16467
16822
  if (t[0] !== o || t[1] !== a || t[2] !== n || t[3] !== s || t[4] !== i) {
16468
16823
  let e2 = generateHeights({
16469
16824
  numBars: 9,
@@ -16842,7 +17197,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
16842
17197
  let c = s / t.length;
16843
17198
  return Math.max(c, 1);
16844
17199
  }
16845
- let MAX_BAR_HEIGHT, BIN_END_EXTENSION_FACTOR, CONCAT_CHART_HEIGHT, CONCAT_CHART_WIDTH, CONCAT_NULL_BAR_WIDTH, BAR_COLOR, UNHOVERED_BAR_OPACITY, NULL_BAR_COLOR, import_compiler_runtime$20;
17200
+ let MAX_BAR_HEIGHT, BIN_END_EXTENSION_FACTOR, CONCAT_CHART_HEIGHT, CONCAT_CHART_WIDTH, CONCAT_NULL_BAR_WIDTH, BAR_COLOR, UNHOVERED_BAR_OPACITY, NULL_BAR_COLOR, import_compiler_runtime$22;
16846
17201
  MAX_BAR_HEIGHT = 20;
16847
17202
  BIN_END_EXTENSION_FACTOR = 0.1;
16848
17203
  CONCAT_CHART_HEIGHT = 30;
@@ -17479,11 +17834,11 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
17479
17834
  }, __publicField(_a, "EMPTY", new _a([], /* @__PURE__ */ new Map(), {}, {}, {}, {
17480
17835
  includeCharts: false
17481
17836
  })), _a);
17482
- import_compiler_runtime$20 = require_compiler_runtime();
17837
+ import_compiler_runtime$22 = require_compiler_runtime();
17483
17838
  ColumnChartContext = import_react.createContext(ColumnChartSpecModel.EMPTY);
17484
17839
  var batchedLoader = createBatchedLoader();
17485
17840
  const TableColumnSummary = (e) => {
17486
- let t = (0, import_compiler_runtime$20.c)(21), { columnId: n } = e, { locale: i } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), a = import_react.use(ColumnChartContext), { theme: o } = useTheme(), s, c, d;
17841
+ let t = (0, import_compiler_runtime$22.c)(21), { columnId: n } = e, { locale: i } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), a = import_react.use(ColumnChartContext), { theme: o } = useTheme(), s, c, d;
17487
17842
  if (t[0] !== a || t[1] !== n || t[2] !== i || t[3] !== o) {
17488
17843
  let { spec: e2, type: f2, stats: h } = a.getHeaderSummary(n), _ = null;
17489
17844
  if (e2) {
@@ -17694,8 +18049,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
17694
18049
  let a = e.at(-1);
17695
18050
  return n.push(a), n;
17696
18051
  }
17697
- var import_compiler_runtime$19 = require_compiler_runtime(), ImageWithFallback = (e) => {
17698
- let t = (0, import_compiler_runtime$19.c)(14), { url: n } = e, [i, a] = (0, import_react.useState)(false), [o, s] = (0, import_react.useState)(false);
18052
+ var import_compiler_runtime$21 = require_compiler_runtime(), ImageWithFallback = (e) => {
18053
+ let t = (0, import_compiler_runtime$21.c)(14), { url: n } = e, [i, a] = (0, import_react.useState)(false), [o, s] = (0, import_react.useState)(false);
17699
18054
  if (i) {
17700
18055
  let e2;
17701
18056
  return t[0] === n ? e2 = t[1] : (e2 = (0, import_jsx_runtime.jsx)(URLAnchor, {
@@ -17769,7 +18124,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
17769
18124
  return t.some((e2) => n.has(e2.type));
17770
18125
  }
17771
18126
  const MarkdownUrlDetector = (e) => {
17772
- let t = (0, import_compiler_runtime$19.c)(4), { content: n, parts: i } = e;
18127
+ let t = (0, import_compiler_runtime$21.c)(4), { content: n, parts: i } = e;
17773
18128
  if (isMarkdown(n)) {
17774
18129
  let e2;
17775
18130
  return t[0] === n ? e2 = t[1] : (e2 = (0, import_jsx_runtime.jsx)(MarkdownRenderer, {
@@ -17786,7 +18141,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
17786
18141
  url: e2.url
17787
18142
  }, t) : e2.value);
17788
18143
  var URLAnchor = (e) => {
17789
- let t = (0, import_compiler_runtime$19.c)(3), { url: n } = e, i;
18144
+ let t = (0, import_compiler_runtime$21.c)(3), { url: n } = e, i;
17790
18145
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = Events.stopPropagation(), t[0] = i) : i = t[0];
17791
18146
  let a;
17792
18147
  return t[1] === n ? a = t[2] : (a = (0, import_jsx_runtime.jsx)("a", {
@@ -17951,7 +18306,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
17951
18306
  enableHiding: false
17952
18307
  }), O;
17953
18308
  };
17954
- var PopoutColumn = ({ cellStyles: e, selectCell: t, rawStringValue: n, edges: i, contentClassName: o, buttonText: s, wrapped: c, children: f }) => {
18309
+ var PopoutColumn = ({ cellStyles: e, selectCell: t, rawStringValue: n, edges: i, contentClassName: o, buttonText: s, wrapped: c, children: d }) => {
17955
18310
  let h = i !== void 0 && (i.leading.length > 0 || i.trailing.length > 0) ? n.slice(i.leading.length, n.length - i.trailing.length) : n;
17956
18311
  return (0, import_jsx_runtime.jsx)(EmotionCacheProvider, {
17957
18312
  container: null,
@@ -17999,7 +18354,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
17999
18354
  })
18000
18355
  ]
18001
18356
  }),
18002
- f
18357
+ d
18003
18358
  ]
18004
18359
  })
18005
18360
  ]
@@ -18178,10 +18533,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
18178
18533
  maximumFractionDigits: maxFractionalDigits(n)
18179
18534
  }).format(e);
18180
18535
  };
18181
- let import_compiler_runtime$18;
18182
- import_compiler_runtime$18 = require_compiler_runtime();
18536
+ let import_compiler_runtime$20;
18537
+ import_compiler_runtime$20 = require_compiler_runtime();
18183
18538
  Table = import_react.forwardRef((e, t) => {
18184
- let n = (0, import_compiler_runtime$18.c)(9), i, o;
18539
+ let n = (0, import_compiler_runtime$20.c)(9), i, o;
18185
18540
  n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
18186
18541
  let s;
18187
18542
  n[3] === i ? s = n[4] : (s = cn("w-full caption-bottom text-sm", i), n[3] = i, n[4] = s);
@@ -18197,7 +18552,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
18197
18552
  });
18198
18553
  Table.displayName = "Table";
18199
18554
  TableHeader = import_react.forwardRef((e, t) => {
18200
- let n = (0, import_compiler_runtime$18.c)(9), i, o;
18555
+ let n = (0, import_compiler_runtime$20.c)(9), i, o;
18201
18556
  n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
18202
18557
  let s;
18203
18558
  n[3] === i ? s = n[4] : (s = cn("[&_tr]:border-b bg-background", i), n[3] = i, n[4] = s);
@@ -18210,7 +18565,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
18210
18565
  });
18211
18566
  TableHeader.displayName = "TableHeader";
18212
18567
  TableBody = import_react.forwardRef((e, t) => {
18213
- let n = (0, import_compiler_runtime$18.c)(9), i, o;
18568
+ let n = (0, import_compiler_runtime$20.c)(9), i, o;
18214
18569
  n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
18215
18570
  let s;
18216
18571
  n[3] === i ? s = n[4] : (s = cn("[&_tr:last-child]:border-0", i), n[3] = i, n[4] = s);
@@ -18223,7 +18578,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
18223
18578
  });
18224
18579
  TableBody.displayName = "TableBody";
18225
18580
  var TableFooter = import_react.forwardRef((e, t) => {
18226
- let n = (0, import_compiler_runtime$18.c)(9), i, o;
18581
+ let n = (0, import_compiler_runtime$20.c)(9), i, o;
18227
18582
  n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
18228
18583
  let s;
18229
18584
  n[3] === i ? s = n[4] : (s = cn("bg-primary font-medium text-primary-foreground", i), n[3] = i, n[4] = s);
@@ -18236,7 +18591,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
18236
18591
  });
18237
18592
  TableFooter.displayName = "TableFooter";
18238
18593
  TableRow = import_react.forwardRef((e, t) => {
18239
- let n = (0, import_compiler_runtime$18.c)(9), i, o;
18594
+ let n = (0, import_compiler_runtime$20.c)(9), i, o;
18240
18595
  n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
18241
18596
  let s;
18242
18597
  n[3] === i ? s = n[4] : (s = cn("border-b transition-colors bg-background hover:bg-(--slate-2) data-[state=selected]:bg-(--slate-3)", i), n[3] = i, n[4] = s);
@@ -18249,7 +18604,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
18249
18604
  });
18250
18605
  TableRow.displayName = "TableRow";
18251
18606
  TableHead = import_react.forwardRef((e, t) => {
18252
- let n = (0, import_compiler_runtime$18.c)(9), i, o;
18607
+ let n = (0, import_compiler_runtime$20.c)(9), i, o;
18253
18608
  n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
18254
18609
  let s;
18255
18610
  n[3] === i ? s = n[4] : (s = cn("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0", i), n[3] = i, n[4] = s);
@@ -18262,7 +18617,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
18262
18617
  });
18263
18618
  TableHead.displayName = "TableHead";
18264
18619
  TableCell = import_react.forwardRef((e, t) => {
18265
- let n = (0, import_compiler_runtime$18.c)(9), i, o;
18620
+ let n = (0, import_compiler_runtime$20.c)(9), i, o;
18266
18621
  n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
18267
18622
  let s;
18268
18623
  n[3] === i ? s = n[4] : (s = cn("p-1.5 align-middle [&:has([role=checkbox])]:pr-0", i), n[3] = i, n[4] = s);
@@ -18275,7 +18630,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
18275
18630
  });
18276
18631
  TableCell.displayName = "TableCell";
18277
18632
  var TableCaption = import_react.forwardRef((e, t) => {
18278
- let n = (0, import_compiler_runtime$18.c)(9), i, o;
18633
+ let n = (0, import_compiler_runtime$20.c)(9), i, o;
18279
18634
  n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
18280
18635
  let s;
18281
18636
  n[3] === i ? s = n[4] : (s = cn("mt-4 text-sm text-muted-foreground", i), n[3] = i, n[4] = s);
@@ -18488,7 +18843,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
18488
18843
  function PanelWithForwardedRef({ children: e, className: t = "", collapsedSize: n, collapsible: i, defaultSize: a, forwardedRef: o, id: s, maxSize: c, minSize: d, onCollapse: f, onExpand: h, onResize: _, order: v, style: y, tagName: S = "div", ...w }) {
18489
18844
  let E = (0, import_react.useContext)(PanelGroupContext);
18490
18845
  if (E === null) throw Error("Panel components must be rendered within a PanelGroup container");
18491
- let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: q, resizePanel: J, unregisterPanel: Q } = E, yj = useUniqueId(s), $ = (0, import_react.useRef)({
18846
+ let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: q, resizePanel: J, unregisterPanel: Q } = E, _M = useUniqueId(s), $ = (0, import_react.useRef)({
18492
18847
  callbacks: {
18493
18848
  onCollapse: f,
18494
18849
  onExpand: h,
@@ -18501,7 +18856,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
18501
18856
  maxSize: c,
18502
18857
  minSize: d
18503
18858
  },
18504
- id: yj,
18859
+ id: _M,
18505
18860
  idIsFromProps: s !== void 0,
18506
18861
  order: v
18507
18862
  });
@@ -18511,7 +18866,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
18511
18866
  let { callbacks: e2, constraints: t2 } = $.current, o2 = {
18512
18867
  ...t2
18513
18868
  };
18514
- $.current.id = yj, $.current.idIsFromProps = s !== void 0, $.current.order = v, e2.onCollapse = f, e2.onExpand = h, e2.onResize = _, t2.collapsedSize = n, t2.collapsible = i, t2.defaultSize = a, t2.maxSize = c, t2.minSize = d, (o2.collapsedSize !== t2.collapsedSize || o2.collapsible !== t2.collapsible || o2.maxSize !== t2.maxSize || o2.minSize !== t2.minSize) && K($.current, o2);
18869
+ $.current.id = _M, $.current.idIsFromProps = s !== void 0, $.current.order = v, e2.onCollapse = f, e2.onExpand = h, e2.onResize = _, t2.collapsedSize = n, t2.collapsible = i, t2.defaultSize = a, t2.maxSize = c, t2.minSize = d, (o2.collapsedSize !== t2.collapsedSize || o2.collapsible !== t2.collapsible || o2.maxSize !== t2.maxSize || o2.minSize !== t2.minSize) && K($.current, o2);
18515
18870
  }), useIsomorphicLayoutEffect$1(() => {
18516
18871
  let e2 = $.current;
18517
18872
  return q(e2), () => {
@@ -18519,7 +18874,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
18519
18874
  };
18520
18875
  }, [
18521
18876
  v,
18522
- yj,
18877
+ _M,
18523
18878
  q,
18524
18879
  Q
18525
18880
  ]), (0, import_react.useImperativeHandle)(o, () => ({
@@ -18530,7 +18885,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
18530
18885
  A($.current, e2);
18531
18886
  },
18532
18887
  getId() {
18533
- return yj;
18888
+ return _M;
18534
18889
  },
18535
18890
  getSize() {
18536
18891
  return M($.current);
@@ -18549,24 +18904,24 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
18549
18904
  A,
18550
18905
  M,
18551
18906
  U,
18552
- yj,
18907
+ _M,
18553
18908
  J
18554
18909
  ]);
18555
- let bj = I($.current, a);
18910
+ let vM = I($.current, a);
18556
18911
  return (0, import_react.createElement)(S, {
18557
18912
  ...w,
18558
18913
  children: e,
18559
18914
  className: t,
18560
- id: yj,
18915
+ id: _M,
18561
18916
  style: {
18562
- ...bj,
18917
+ ...vM,
18563
18918
  ...y
18564
18919
  },
18565
18920
  [DATA_ATTRIBUTES.groupId]: z,
18566
18921
  [DATA_ATTRIBUTES.panel]: "",
18567
18922
  [DATA_ATTRIBUTES.panelCollapsible]: i || void 0,
18568
- [DATA_ATTRIBUTES.panelId]: yj,
18569
- [DATA_ATTRIBUTES.panelSize]: parseFloat("" + bj.flexGrow).toFixed(1)
18923
+ [DATA_ATTRIBUTES.panelId]: _M,
18924
+ [DATA_ATTRIBUTES.panelSize]: parseFloat("" + vM.flexGrow).toFixed(1)
18570
18925
  });
18571
18926
  }
18572
18927
  var Panel = (0, import_react.forwardRef)((e, t) => (0, import_react.createElement)(PanelWithForwardedRef, {
@@ -19339,7 +19694,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19339
19694
  }, []), Q = (0, import_react.useCallback)((e2) => {
19340
19695
  let { layout: t2, panelDataArray: n2 } = K.current, { panelSize: i2 } = panelDataHelper(n2, e2, t2);
19341
19696
  return assert(i2 != null, `Panel size not found for panel "${e2.id}"`), i2;
19342
- }, []), yj = (0, import_react.useCallback)((e2, t2) => {
19697
+ }, []), _M = (0, import_react.useCallback)((e2, t2) => {
19343
19698
  let { panelDataArray: n2 } = K.current;
19344
19699
  return computePanelFlexBoxStyle({
19345
19700
  defaultSize: t2,
@@ -19354,10 +19709,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19354
19709
  ]), $ = (0, import_react.useCallback)((e2) => {
19355
19710
  let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
19356
19711
  return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), a2 === true && fuzzyNumbersEqual$1(o2, i2);
19357
- }, []), bj = (0, import_react.useCallback)((e2) => {
19712
+ }, []), vM = (0, import_react.useCallback)((e2) => {
19358
19713
  let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
19359
19714
  return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), !a2 || fuzzyCompareNumbers(o2, i2) > 0;
19360
- }, []), xj = (0, import_react.useCallback)((e2) => {
19715
+ }, []), yM = (0, import_react.useCallback)((e2) => {
19361
19716
  let { panelDataArray: t2 } = K.current;
19362
19717
  t2.push(e2), t2.sort((e3, t3) => {
19363
19718
  let n2 = e3.order, i2 = t3.order;
@@ -19389,7 +19744,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19389
19744
  e2.layout = [];
19390
19745
  };
19391
19746
  }, []);
19392
- let Sj = (0, import_react.useCallback)((e2) => {
19747
+ let bM = (0, import_react.useCallback)((e2) => {
19393
19748
  let t2 = false, n2 = y.current;
19394
19749
  return n2 && window.getComputedStyle(n2, null).getPropertyValue("direction") === "rtl" && (t2 = true), function(n3) {
19395
19750
  n3.preventDefault();
@@ -19407,7 +19762,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19407
19762
  }), I2 = !compareLayouts(f2, A2);
19408
19763
  (isPointerEvent(n3) || isMouseEvent(n3)) && z.current != S2 && (z.current = S2, !I2 && S2 !== 0 ? w2 ? reportConstraintsViolation(e2, S2 < 0 ? EXCEEDED_HORIZONTAL_MIN : EXCEEDED_HORIZONTAL_MAX) : reportConstraintsViolation(e2, S2 < 0 ? EXCEEDED_VERTICAL_MIN : EXCEEDED_VERTICAL_MAX) : reportConstraintsViolation(e2, 0)), I2 && (O(A2), K.current.layout = A2, d2 && d2(A2), callPanelCallbacks(h2, A2, M.current));
19409
19764
  };
19410
- }, []), Cj = (0, import_react.useCallback)((e2, t2) => {
19765
+ }, []), xM = (0, import_react.useCallback)((e2, t2) => {
19411
19766
  let { onLayout: n2 } = U.current, { layout: i2, panelDataArray: a2 } = K.current, o2 = a2.map((e3) => e3.constraints), { panelSize: s2, pivotIndices: c2 } = panelDataHelper(a2, e2, i2);
19412
19767
  assert(s2 != null, `Panel size not found for panel "${e2.id}"`);
19413
19768
  let d2 = adjustLayoutByDelta({
@@ -19419,12 +19774,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19419
19774
  trigger: "imperative-api"
19420
19775
  });
19421
19776
  compareLayouts(i2, d2) || (O(d2), K.current.layout = d2, n2 && n2(d2), callPanelCallbacks(a2, d2, M.current));
19422
- }, []), wj = (0, import_react.useCallback)((e2, t2) => {
19777
+ }, []), SM = (0, import_react.useCallback)((e2, t2) => {
19423
19778
  let { layout: n2, panelDataArray: i2 } = K.current, { collapsedSize: a2 = 0, collapsible: o2 } = t2, { collapsedSize: s2 = 0, collapsible: c2, maxSize: d2 = 100, minSize: f2 = 0 } = e2.constraints, { panelSize: h2 } = panelDataHelper(i2, e2, n2);
19424
- h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) || Cj(e2, s2) : h2 < f2 ? Cj(e2, f2) : h2 > d2 && Cj(e2, d2));
19779
+ h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) || xM(e2, s2) : h2 < f2 ? xM(e2, f2) : h2 > d2 && xM(e2, d2));
19425
19780
  }, [
19426
- Cj
19427
- ]), Tj = (0, import_react.useCallback)((e2, t2) => {
19781
+ xM
19782
+ ]), CM = (0, import_react.useCallback)((e2, t2) => {
19428
19783
  let { direction: n2 } = U.current, { layout: i2 } = K.current;
19429
19784
  if (!y.current) return;
19430
19785
  let a2 = getResizeHandleElement(e2, y.current);
@@ -19436,30 +19791,30 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19436
19791
  initialCursorPosition: o2,
19437
19792
  initialLayout: i2
19438
19793
  });
19439
- }, []), Ej = (0, import_react.useCallback)(() => {
19794
+ }, []), wM = (0, import_react.useCallback)(() => {
19440
19795
  w(null);
19441
- }, []), Dj = (0, import_react.useCallback)((e2) => {
19796
+ }, []), TM = (0, import_react.useCallback)((e2) => {
19442
19797
  let { panelDataArray: t2 } = K.current, n2 = findPanelDataIndex(t2, e2);
19443
19798
  n2 >= 0 && (t2.splice(n2, 1), delete M.current[e2.id], K.current.panelDataArrayChanged = true, A());
19444
19799
  }, [
19445
19800
  A
19446
- ]), Oj = (0, import_react.useMemo)(() => ({
19801
+ ]), EM = (0, import_react.useMemo)(() => ({
19447
19802
  collapsePanel: q,
19448
19803
  direction: i,
19449
19804
  dragState: S,
19450
19805
  expandPanel: J,
19451
19806
  getPanelSize: Q,
19452
- getPanelStyle: yj,
19807
+ getPanelStyle: _M,
19453
19808
  groupId: v,
19454
19809
  isPanelCollapsed: $,
19455
- isPanelExpanded: bj,
19456
- reevaluatePanelConstraints: wj,
19457
- registerPanel: xj,
19458
- registerResizeHandle: Sj,
19459
- resizePanel: Cj,
19460
- startDragging: Tj,
19461
- stopDragging: Ej,
19462
- unregisterPanel: Dj,
19810
+ isPanelExpanded: vM,
19811
+ reevaluatePanelConstraints: SM,
19812
+ registerPanel: yM,
19813
+ registerResizeHandle: bM,
19814
+ resizePanel: xM,
19815
+ startDragging: CM,
19816
+ stopDragging: wM,
19817
+ unregisterPanel: TM,
19463
19818
  panelGroupElement: y.current
19464
19819
  }), [
19465
19820
  q,
@@ -19467,18 +19822,18 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19467
19822
  i,
19468
19823
  J,
19469
19824
  Q,
19470
- yj,
19825
+ _M,
19471
19826
  v,
19472
19827
  $,
19473
- bj,
19474
- wj,
19475
- xj,
19476
- Sj,
19477
- Cj,
19478
- Tj,
19479
- Ej,
19480
- Dj
19481
- ]), kj = {
19828
+ vM,
19829
+ SM,
19830
+ yM,
19831
+ bM,
19832
+ xM,
19833
+ CM,
19834
+ wM,
19835
+ TM
19836
+ ]), DM = {
19482
19837
  display: "flex",
19483
19838
  flexDirection: i === "horizontal" ? "row" : "column",
19484
19839
  height: "100%",
@@ -19486,7 +19841,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19486
19841
  width: "100%"
19487
19842
  };
19488
19843
  return (0, import_react.createElement)(PanelGroupContext.Provider, {
19489
- value: Oj
19844
+ value: EM
19490
19845
  }, (0, import_react.createElement)(h, {
19491
19846
  ..._,
19492
19847
  children: t,
@@ -19494,7 +19849,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19494
19849
  id: o,
19495
19850
  ref: y,
19496
19851
  style: {
19497
- ...kj,
19852
+ ...DM,
19498
19853
  ...f
19499
19854
  },
19500
19855
  [DATA_ATTRIBUTES.group]: "",
@@ -19571,31 +19926,31 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19571
19926
  });
19572
19927
  let O = (0, import_react.useContext)(PanelGroupContext);
19573
19928
  if (O === null) throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");
19574
- let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [yj, $] = (0, import_react.useState)(false), [bj, xj] = (0, import_react.useState)(null), Sj = (0, import_react.useRef)({
19929
+ let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [_M, $] = (0, import_react.useState)(false), [vM, yM] = (0, import_react.useState)(null), bM = (0, import_react.useRef)({
19575
19930
  state: J
19576
19931
  });
19577
19932
  useIsomorphicLayoutEffect$1(() => {
19578
- Sj.current.state = J;
19933
+ bM.current.state = J;
19579
19934
  }), (0, import_react.useEffect)(() => {
19580
- if (n) xj(null);
19935
+ if (n) yM(null);
19581
19936
  else {
19582
19937
  let e2 = I(q);
19583
- xj(() => e2);
19938
+ yM(() => e2);
19584
19939
  }
19585
19940
  }, [
19586
19941
  n,
19587
19942
  q,
19588
19943
  I
19589
19944
  ]);
19590
- let Cj = (i == null ? void 0 : i.coarse) ?? 15, wj = (i == null ? void 0 : i.fine) ?? 5;
19945
+ let xM = (i == null ? void 0 : i.coarse) ?? 15, SM = (i == null ? void 0 : i.fine) ?? 5;
19591
19946
  (0, import_react.useEffect)(() => {
19592
- if (n || bj == null) return;
19947
+ if (n || vM == null) return;
19593
19948
  let e2 = w.current;
19594
19949
  assert(e2, "Element ref not attached");
19595
19950
  let t2 = false;
19596
19951
  return registerResizeHandle(q, e2, A, {
19597
- coarse: Cj,
19598
- fine: wj
19952
+ coarse: xM,
19953
+ fine: SM
19599
19954
  }, (e3, n2, i2) => {
19600
19955
  if (!n2) {
19601
19956
  Q("inactive");
@@ -19609,8 +19964,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19609
19964
  break;
19610
19965
  }
19611
19966
  case "move": {
19612
- let { state: e4 } = Sj.current;
19613
- t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'), bj(i2);
19967
+ let { state: e4 } = bM.current;
19968
+ t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'), vM(i2);
19614
19969
  break;
19615
19970
  }
19616
19971
  case "up": {
@@ -19622,22 +19977,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19622
19977
  }
19623
19978
  });
19624
19979
  }, [
19625
- Cj,
19980
+ xM,
19626
19981
  A,
19627
19982
  n,
19628
- wj,
19983
+ SM,
19629
19984
  I,
19630
19985
  q,
19631
- bj,
19986
+ vM,
19632
19987
  z,
19633
19988
  U
19634
19989
  ]), useWindowSplitterResizeHandlerBehavior({
19635
19990
  disabled: n,
19636
19991
  handleId: q,
19637
- resizeHandler: bj,
19992
+ resizeHandler: vM,
19638
19993
  panelGroupElement: K
19639
19994
  });
19640
- let Tj = {
19995
+ let CM = {
19641
19996
  touchAction: "none",
19642
19997
  userSelect: "none"
19643
19998
  };
@@ -19655,22 +20010,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19655
20010
  ref: w,
19656
20011
  role: "separator",
19657
20012
  style: {
19658
- ...Tj,
20013
+ ...CM,
19659
20014
  ..._
19660
20015
  },
19661
20016
  tabIndex: v,
19662
20017
  [DATA_ATTRIBUTES.groupDirection]: A,
19663
20018
  [DATA_ATTRIBUTES.groupId]: M,
19664
20019
  [DATA_ATTRIBUTES.resizeHandle]: "",
19665
- [DATA_ATTRIBUTES.resizeHandleActive]: J === "drag" ? "pointer" : yj ? "keyboard" : void 0,
20020
+ [DATA_ATTRIBUTES.resizeHandleActive]: J === "drag" ? "pointer" : _M ? "keyboard" : void 0,
19666
20021
  [DATA_ATTRIBUTES.resizeHandleEnabled]: !n,
19667
20022
  [DATA_ATTRIBUTES.resizeHandleId]: q,
19668
20023
  [DATA_ATTRIBUTES.resizeHandleState]: J
19669
20024
  });
19670
20025
  }
19671
20026
  PanelResizeHandle.displayName = "PanelResizeHandle";
19672
- let import_compiler_runtime$17, toggleVariants;
19673
- import_compiler_runtime$17 = require_compiler_runtime();
20027
+ let import_compiler_runtime$19, toggleVariants;
20028
+ import_compiler_runtime$19 = require_compiler_runtime();
19674
20029
  toggleVariants = cva(cn("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50", "data-[state=on]:bg-muted data-[state=on]:text-muted-foreground"), {
19675
20030
  variants: {
19676
20031
  variant: {
@@ -19690,7 +20045,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19690
20045
  }
19691
20046
  });
19692
20047
  Toggle = import_react.forwardRef((e, t) => {
19693
- let n = (0, import_compiler_runtime$17.c)(13), i, o, s, c;
20048
+ let n = (0, import_compiler_runtime$19.c)(13), i, o, s, c;
19694
20049
  n[0] === e ? (i = n[1], o = n[2], s = n[3], c = n[4]) : ({ className: i, variant: c, size: s, ...o } = e, n[0] = e, n[1] = i, n[2] = o, n[3] = s, n[4] = c);
19695
20050
  let d;
19696
20051
  n[5] !== i || n[6] !== s || n[7] !== c ? (d = cn(toggleVariants({
@@ -19717,14 +20072,14 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19717
20072
  contextAwarePanelOpen = atom(false);
19718
20073
  atom(false);
19719
20074
  isCellAwareAtom = atom(false);
19720
- var import_compiler_runtime$16 = require_compiler_runtime();
20075
+ var import_compiler_runtime$18 = require_compiler_runtime();
19721
20076
  let CellHoverTemplateFeature;
19722
20077
  PANEL_TYPES = {
19723
20078
  ROW_VIEWER: "row-viewer",
19724
20079
  COLUMN_EXPLORER: "column-explorer"
19725
20080
  };
19726
20081
  ContextAwarePanelItem = (e) => {
19727
- let t = (0, import_compiler_runtime$16.c)(2), { children: n } = e, i;
20082
+ let t = (0, import_compiler_runtime$18.c)(2), { children: n } = e, i;
19728
20083
  return t[0] === n ? i = t[1] : (i = (0, import_jsx_runtime.jsx)(ErrorBoundary, {
19729
20084
  children: (0, import_jsx_runtime.jsx)(Fill, {
19730
20085
  name: SlotNames.CONTEXT_AWARE_PANEL,
@@ -19924,9 +20279,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19924
20279
  ...e
19925
20280
  ];
19926
20281
  }
19927
- var import_compiler_runtime$15 = require_compiler_runtime();
20282
+ var import_compiler_runtime$17 = require_compiler_runtime();
19928
20283
  function useScrollContainerHeight(e) {
19929
- let t = (0, import_compiler_runtime$15.c)(8), { maxHeight: n, virtualize: i } = e, a = (0, import_react.useRef)(null), o, s;
20284
+ let t = (0, import_compiler_runtime$17.c)(8), { maxHeight: n, virtualize: i } = e, a = (0, import_react.useRef)(null), o, s;
19930
20285
  t[0] !== n || t[1] !== i ? (o = () => {
19931
20286
  if (!a.current) return;
19932
20287
  let e2 = a.current.parentElement;
@@ -20523,9 +20878,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
20523
20878
  var _a2;
20524
20879
  window.getSelection && ((_a2 = window.getSelection()) == null ? void 0 : _a2.empty());
20525
20880
  };
20526
- var import_compiler_runtime$14 = require_compiler_runtime();
20881
+ var import_compiler_runtime$16 = require_compiler_runtime();
20527
20882
  const CellSelectionProvider = (e) => {
20528
- let t = (0, import_compiler_runtime$14.c)(3), { children: n } = e, i;
20883
+ let t = (0, import_compiler_runtime$16.c)(3), { children: n } = e, i;
20529
20884
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = [
20530
20885
  cellSelectionStateAtom
20531
20886
  ], t[0] = i) : i = t[0];
@@ -21080,8 +21435,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
21080
21435
  ...e
21081
21436
  });
21082
21437
  }
21083
- var import_compiler_runtime$13 = require_compiler_runtime(), ContextMenu = Root2$1, ContextMenuTrigger = Trigger$1, ContextMenuPortal = withFullScreenAsRoot(Portal2), InternalContextMenuContent = withSmartCollisionBoundary(Content2), InternalContextMenuSubContent = withSmartCollisionBoundary(SubContent2), ContextMenuSubTrigger = import_react.forwardRef((e, t) => {
21084
- let n = (0, import_compiler_runtime$13.c)(14), i, a, o, s;
21438
+ var import_compiler_runtime$15 = require_compiler_runtime(), ContextMenu = Root2$2, ContextMenuTrigger = Trigger$1, ContextMenuPortal = withFullScreenAsRoot(Portal2), InternalContextMenuContent = withSmartCollisionBoundary(Content2), InternalContextMenuSubContent = withSmartCollisionBoundary(SubContent2), ContextMenuSubTrigger = import_react.forwardRef((e, t) => {
21439
+ let n = (0, import_compiler_runtime$15.c)(14), i, a, o, s;
21085
21440
  n[0] === e ? (i = n[1], a = n[2], o = n[3], s = n[4]) : ({ className: a, inset: o, children: i, ...s } = e, n[0] = e, n[1] = i, n[2] = a, n[3] = o, n[4] = s);
21086
21441
  let c;
21087
21442
  n[5] !== a || n[6] !== o ? (c = menuSubTriggerVariants({
@@ -21105,7 +21460,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
21105
21460
  });
21106
21461
  ContextMenuSubTrigger.displayName = SubTrigger2.displayName;
21107
21462
  var contentCommon = "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", ContextMenuSubContent = import_react.forwardRef((e, t) => {
21108
- let n = (0, import_compiler_runtime$13.c)(9), i, o;
21463
+ let n = (0, import_compiler_runtime$15.c)(9), i, o;
21109
21464
  n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
21110
21465
  let s;
21111
21466
  n[3] === i ? s = n[4] : (s = cn(menuContentCommon({
@@ -21120,7 +21475,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
21120
21475
  });
21121
21476
  ContextMenuSubContent.displayName = SubContent2.displayName;
21122
21477
  var ContextMenuContent = import_react.forwardRef((e, t) => {
21123
- let n = (0, import_compiler_runtime$13.c)(15), i, o, s;
21478
+ let n = (0, import_compiler_runtime$15.c)(15), i, o, s;
21124
21479
  n[0] === e ? (i = n[1], o = n[2], s = n[3]) : ({ className: i, scrollable: s, ...o } = e, n[0] = e, n[1] = i, n[2] = o, n[3] = s);
21125
21480
  let c = s === void 0 ? true : s, d;
21126
21481
  n[4] !== i || n[5] !== c ? (d = cn(menuContentCommon(), contentCommon, c && "overflow-auto", i), n[4] = i, n[5] = c, n[6] = d) : d = n[6];
@@ -21143,7 +21498,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
21143
21498
  });
21144
21499
  ContextMenuContent.displayName = Content2.displayName;
21145
21500
  var ContextMenuItem = import_react.forwardRef((e, t) => {
21146
- let n = (0, import_compiler_runtime$13.c)(13), i, a, o, s;
21501
+ let n = (0, import_compiler_runtime$15.c)(13), i, a, o, s;
21147
21502
  n[0] === e ? (i = n[1], a = n[2], o = n[3], s = n[4]) : ({ className: i, inset: a, variant: s, ...o } = e, n[0] = e, n[1] = i, n[2] = a, n[3] = o, n[4] = s);
21148
21503
  let c;
21149
21504
  n[5] !== i || n[6] !== a || n[7] !== s ? (c = menuItemVariants({
@@ -21152,15 +21507,15 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
21152
21507
  variant: s
21153
21508
  }), n[5] = i, n[6] = a, n[7] = s, n[8] = c) : c = n[8];
21154
21509
  let d;
21155
- return n[9] !== o || n[10] !== t || n[11] !== c ? (d = (0, import_jsx_runtime.jsx)(Item2, {
21510
+ return n[9] !== o || n[10] !== t || n[11] !== c ? (d = (0, import_jsx_runtime.jsx)(Item2$1, {
21156
21511
  ref: t,
21157
21512
  className: c,
21158
21513
  ...o
21159
21514
  }), n[9] = o, n[10] = t, n[11] = c, n[12] = d) : d = n[12], d;
21160
21515
  });
21161
- ContextMenuItem.displayName = Item2.displayName;
21516
+ ContextMenuItem.displayName = Item2$1.displayName;
21162
21517
  var ContextMenuCheckboxItem = import_react.forwardRef((e, t) => {
21163
- let n = (0, import_compiler_runtime$13.c)(15), i, a, o, s;
21518
+ let n = (0, import_compiler_runtime$15.c)(15), i, a, o, s;
21164
21519
  n[0] === e ? (i = n[1], a = n[2], o = n[3], s = n[4]) : ({ className: o, children: a, checked: i, ...s } = e, n[0] = e, n[1] = i, n[2] = a, n[3] = o, n[4] = s);
21165
21520
  let c;
21166
21521
  n[5] === o ? c = n[6] : (c = menuControlVariants({
@@ -21191,7 +21546,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
21191
21546
  });
21192
21547
  ContextMenuCheckboxItem.displayName = CheckboxItem2.displayName;
21193
21548
  var ContextMenuRadioItem = import_react.forwardRef((e, t) => {
21194
- let n = (0, import_compiler_runtime$13.c)(13), i, a, o;
21549
+ let n = (0, import_compiler_runtime$15.c)(13), i, a, o;
21195
21550
  n[0] === e ? (i = n[1], a = n[2], o = n[3]) : ({ className: a, children: i, ...o } = e, n[0] = e, n[1] = i, n[2] = a, n[3] = o);
21196
21551
  let s;
21197
21552
  n[4] === a ? s = n[5] : (s = menuControlCheckVariants({
@@ -21221,7 +21576,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
21221
21576
  });
21222
21577
  ContextMenuRadioItem.displayName = RadioItem2.displayName;
21223
21578
  var ContextMenuLabel = import_react.forwardRef((e, t) => {
21224
- let n = (0, import_compiler_runtime$13.c)(11), i, a, o;
21579
+ let n = (0, import_compiler_runtime$15.c)(11), i, a, o;
21225
21580
  n[0] === e ? (i = n[1], a = n[2], o = n[3]) : ({ className: i, inset: a, ...o } = e, n[0] = e, n[1] = i, n[2] = a, n[3] = o);
21226
21581
  let s;
21227
21582
  n[4] !== i || n[5] !== a ? (s = menuLabelVariants({
@@ -21237,7 +21592,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
21237
21592
  });
21238
21593
  ContextMenuLabel.displayName = Label2.displayName;
21239
21594
  var ContextMenuSeparator = import_react.forwardRef((e, t) => {
21240
- let n = (0, import_compiler_runtime$13.c)(9), i, o;
21595
+ let n = (0, import_compiler_runtime$15.c)(9), i, o;
21241
21596
  n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
21242
21597
  let s;
21243
21598
  n[3] === i ? s = n[4] : (s = cn(menuSeparatorVariants({
@@ -21251,9 +21606,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
21251
21606
  }), n[5] = o, n[6] = t, n[7] = s, n[8] = c) : c = n[8], c;
21252
21607
  });
21253
21608
  ContextMenuSeparator.displayName = Separator2.displayName;
21254
- var import_compiler_runtime$12 = require_compiler_runtime();
21609
+ var import_compiler_runtime$14 = require_compiler_runtime();
21255
21610
  const DataTableContextMenu = (e) => {
21256
- let t = (0, import_compiler_runtime$12.c)(12), { contextMenuRef: i, tableBody: a, tableRef: o, copyAllCells: s } = e, c;
21611
+ let t = (0, import_compiler_runtime$14.c)(12), { contextMenuRef: i, tableBody: a, tableRef: o, copyAllCells: s } = e, c;
21257
21612
  t[0] !== i || t[1] !== o ? (c = (e2) => {
21258
21613
  var _a2;
21259
21614
  let t2 = i.current;
@@ -21353,9 +21708,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
21353
21708
  ]
21354
21709
  });
21355
21710
  };
21356
- var import_compiler_runtime$11 = require_compiler_runtime();
21711
+ var import_compiler_runtime$13 = require_compiler_runtime();
21357
21712
  const CellRangeSelectionIndicator = (0, import_react.memo)((e) => {
21358
- let t = (0, import_compiler_runtime$11.c)(9), { cellId: n, className: i } = e, o;
21713
+ let t = (0, import_compiler_runtime$13.c)(9), { cellId: n, className: i } = e, o;
21359
21714
  t[0] === n ? o = t[1] : (o = createCellStateAtom(n), t[0] = n, t[1] = o);
21360
21715
  let { isSelected: s, isCopied: c } = useAtomValue(o);
21361
21716
  if (!s && !c) return null;
@@ -21368,9 +21723,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
21368
21723
  }), t[6] = n, t[7] = h, t[8] = _) : _ = t[8], _;
21369
21724
  });
21370
21725
  CellRangeSelectionIndicator.displayName = "CellRangeSelectionIndicator";
21371
- var import_compiler_runtime$10 = require_compiler_runtime();
21726
+ var import_compiler_runtime$12 = require_compiler_runtime();
21372
21727
  const useCellRangeSelection = (e) => {
21373
- let t = (0, import_compiler_runtime$10.c)(30), { table: n } = e, i = useCellSelectionReducerActions(), a;
21728
+ let t = (0, import_compiler_runtime$12.c)(30), { table: n } = e, i = useCellSelectionReducerActions(), a;
21374
21729
  t[0] !== i || t[1] !== n ? (a = () => {
21375
21730
  i.handleCopy({
21376
21731
  table: n,
@@ -21461,9 +21816,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
21461
21816
  let t = e.target;
21462
21817
  return t === e.currentTarget || !(t instanceof Element) ? false : t.closest(INTERACTIVE_SELECTOR) !== null;
21463
21818
  }
21464
- var import_compiler_runtime$9 = require_compiler_runtime(), focusedCellAtom = atom((e) => e(cellSelectionStateAtom).focusedCell);
21819
+ var import_compiler_runtime$11 = require_compiler_runtime(), focusedCellAtom = atom((e) => e(cellSelectionStateAtom).focusedCell);
21465
21820
  function useScrollIntoViewOnFocus(e) {
21466
- let t = (0, import_compiler_runtime$9.c)(2), i;
21821
+ let t = (0, import_compiler_runtime$11.c)(2), i;
21467
21822
  t[0] === e ? i = t[1] : (i = (t2) => {
21468
21823
  (t2 == null ? void 0 : t2.cellId) && setTimeout(() => {
21469
21824
  var _a2;
@@ -21667,7 +22022,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
21667
22022
  }));
21668
22023
  }
21669
22024
  const DataTablePagination = ({ table: e, tableLoading: t, showPageSizeSelector: n }) => {
21670
- let { locale: i } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), s = Math.min(e.getState().pagination.pageIndex + 1, e.getPageCount()), c = e.getPageCount(), f = e.getState().pagination.pageSize, h = (e2) => {
22025
+ let { locale: i } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), s = Math.min(e.getState().pagination.pageIndex + 1, e.getPageCount()), c = e.getPageCount(), d = e.getState().pagination.pageSize, h = (e2) => {
21671
22026
  t || e2();
21672
22027
  }, _ = [
21673
22028
  .../* @__PURE__ */ new Set([
@@ -21676,7 +22031,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
21676
22031
  25,
21677
22032
  50,
21678
22033
  100,
21679
- f
22034
+ d
21680
22035
  ])
21681
22036
  ].toSorted((e2, t2) => e2 - t2);
21682
22037
  return (0, import_jsx_runtime.jsxs)("div", {
@@ -21694,7 +22049,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
21694
22049
  type: "button",
21695
22050
  className: "border rounded justify-between pl-1.5 pr-0.5 h-6 text-xs items-center hover:bg-accent inline-flex gap-0.5",
21696
22051
  children: [
21697
- f,
22052
+ d,
21698
22053
  " / page",
21699
22054
  (0, import_jsx_runtime.jsx)(ChevronDown, {
21700
22055
  className: "h-3 w-3 opacity-50 mb-px"
@@ -21713,7 +22068,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
21713
22068
  [
21714
22069
  ..._
21715
22070
  ].map((t2) => (0, import_jsx_runtime.jsx)(DropdownMenuItem, {
21716
- className: cn("text-xs cursor-pointer", t2 === f && "font-semibold bg-accent"),
22071
+ className: cn("text-xs cursor-pointer", t2 === d && "font-semibold bg-accent"),
21717
22072
  onSelect: () => e.setPageSize(t2),
21718
22073
  onMouseDown: Events.preventFocus,
21719
22074
  children: t2
@@ -21987,9 +22342,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
21987
22342
  e === "too_many" ? "Unknown" : prettifyRowCount(e, n),
21988
22343
  `${prettyNumber(t, n)} ${new PluralWord("column").pluralize(t)}`
21989
22344
  ].join(", ");
21990
- var import_compiler_runtime$8 = require_compiler_runtime(), MAX_FRACTION_DIGITS = 3;
22345
+ var import_compiler_runtime$10 = require_compiler_runtime(), MAX_FRACTION_DIGITS = 3;
21991
22346
  const CellSelectionStats = (e) => {
21992
- let t = (0, import_compiler_runtime$8.c)(21), { table: n, className: i } = e, { locale: o } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), s = useAtomValue(selectedCellsAtom), c = countDataCellsInSelection(s);
22347
+ let t = (0, import_compiler_runtime$10.c)(21), { table: n, className: i } = e, { locale: o } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), s = useAtomValue(selectedCellsAtom), c = countDataCellsInSelection(s);
21993
22348
  if (c < 2) {
21994
22349
  let e2;
21995
22350
  t[0] === i ? e2 = t[1] : (e2 = cn("text-xs text-muted-foreground/80 italic", i), t[0] = i, t[1] = e2);
@@ -22032,7 +22387,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22032
22387
  var formatNumber = (e, t) => e.toLocaleString(t, {
22033
22388
  maximumFractionDigits: MAX_FRACTION_DIGITS
22034
22389
  }), StatSpan = (e) => {
22035
- let t = (0, import_compiler_runtime$8.c)(6), { name: n, value: i, locale: a } = e, o;
22390
+ let t = (0, import_compiler_runtime$10.c)(6), { name: n, value: i, locale: a } = e, o;
22036
22391
  t[0] !== a || t[1] !== i ? (o = formatNumber(i, a), t[0] = a, t[1] = i, t[2] = o) : o = t[2];
22037
22392
  let s;
22038
22393
  return t[3] !== n || t[4] !== o ? (s = (0, import_jsx_runtime.jsxs)("span", {
@@ -22043,18 +22398,18 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22043
22398
  ]
22044
22399
  }), t[3] = n, t[4] = o, t[5] = s) : s = t[5], s;
22045
22400
  }, CountStat = (e) => {
22046
- let t = (0, import_compiler_runtime$8.c)(3), { count: n, locale: i } = e, a;
22401
+ let t = (0, import_compiler_runtime$10.c)(3), { count: n, locale: i } = e, a;
22047
22402
  return t[0] !== n || t[1] !== i ? (a = (0, import_jsx_runtime.jsx)(StatSpan, {
22048
22403
  name: "Count",
22049
22404
  value: n,
22050
22405
  locale: i
22051
22406
  }), t[0] = n, t[1] = i, t[2] = a) : a = t[2], a;
22052
22407
  }, SumStat = (e) => {
22053
- let t = (0, import_compiler_runtime$8.c)(6), { numericValues: n, locale: i } = e;
22408
+ let t = (0, import_compiler_runtime$10.c)(6), { numericValues: n, locale: i } = e;
22054
22409
  if (n.length === 0) return null;
22055
22410
  let a, o;
22056
22411
  if (t[0] !== n) {
22057
- let e2 = n.reduce(_temp$2, 0);
22412
+ let e2 = n.reduce(_temp$3, 0);
22058
22413
  a = Number, o = e2.toFixed(MAX_FRACTION_DIGITS), t[0] = n, t[1] = a, t[2] = o;
22059
22414
  } else a = t[1], o = t[2];
22060
22415
  let s = a(o), c;
@@ -22064,7 +22419,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22064
22419
  locale: i
22065
22420
  }), t[3] = i, t[4] = s, t[5] = c) : c = t[5], c;
22066
22421
  }, AverageStat = (e) => {
22067
- let t = (0, import_compiler_runtime$8.c)(5), { numericValues: n, locale: i } = e;
22422
+ let t = (0, import_compiler_runtime$10.c)(5), { numericValues: n, locale: i } = e;
22068
22423
  if (n.length === 0) return null;
22069
22424
  let a = n.reduce(_temp2$1, 0) / n.length, o;
22070
22425
  t[0] === a ? o = t[1] : (o = a.toFixed(MAX_FRACTION_DIGITS), t[0] = a, t[1] = o);
@@ -22075,15 +22430,15 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22075
22430
  locale: i
22076
22431
  }), t[2] = s, t[3] = i, t[4] = c) : c = t[4], c;
22077
22432
  };
22078
- function _temp$2(e, t) {
22433
+ function _temp$3(e, t) {
22079
22434
  return e + t;
22080
22435
  }
22081
22436
  function _temp2$1(e, t) {
22082
22437
  return e + t;
22083
22438
  }
22084
22439
  let TableBottomBar;
22085
- TableBottomBar = ({ pagination: e, totalColumns: t, selection: n, onRowSelectionChange: i, table: s, getRowIds: c, showPageSizeSelector: f, tableLoading: h, part: _, className: v }) => {
22086
- let { locale: S } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), w = (e2) => {
22440
+ TableBottomBar = ({ pagination: e, totalColumns: t, selection: n, onRowSelectionChange: i, table: s, getRowIds: c, showPageSizeSelector: d, tableLoading: h, part: _, className: v }) => {
22441
+ let { locale: y } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), w = (e2) => {
22087
22442
  if (!i) return;
22088
22443
  if (!e2) {
22089
22444
  i({});
@@ -22127,12 +22482,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22127
22482
  (0, import_jsx_runtime.jsx)("div", {
22128
22483
  className: "flex items-center gap-1",
22129
22484
  children: (() => {
22130
- let { rowSelection: e2, cellSelection: i2 } = s.getState(), a = Object.keys(e2).length, c2 = s.getIsAllPageRowsSelected(), f2 = s.getRowCount(), h2 = a === f2, _2 = n === "single-cell" || n === "multi-cell";
22485
+ let { rowSelection: e2, cellSelection: i2 } = s.getState(), a = Object.keys(e2).length, c2 = s.getIsAllPageRowsSelected(), d2 = s.getRowCount(), h2 = a === d2, _2 = n === "single-cell" || n === "multi-cell";
22131
22486
  return _2 && (a = i2.length, c2 = false, h2 = false), c2 && !h2 ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
22132
22487
  children: [
22133
22488
  (0, import_jsx_runtime.jsxs)("span", {
22134
22489
  children: [
22135
- prettyNumber(a, S),
22490
+ prettyNumber(a, y),
22136
22491
  " selected"
22137
22492
  ]
22138
22493
  }),
@@ -22145,7 +22500,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22145
22500
  onClick: () => w(true),
22146
22501
  children: [
22147
22502
  "Select all ",
22148
- prettyNumber(f2, S)
22503
+ prettyNumber(d2, y)
22149
22504
  ]
22150
22505
  })
22151
22506
  ]
@@ -22153,7 +22508,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22153
22508
  children: [
22154
22509
  (0, import_jsx_runtime.jsxs)("span", {
22155
22510
  children: [
22156
- prettyNumber(a, S),
22511
+ prettyNumber(a, y),
22157
22512
  " selected"
22158
22513
  ]
22159
22514
  }),
@@ -22173,7 +22528,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22173
22528
  children: prettifyRowColumnCount({
22174
22529
  numRows: s.getRowCount(),
22175
22530
  totalColumns: t,
22176
- locale: S
22531
+ locale: y
22177
22532
  })
22178
22533
  });
22179
22534
  })()
@@ -22189,7 +22544,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22189
22544
  children: e && (0, import_jsx_runtime.jsx)(DataTablePagination, {
22190
22545
  table: s,
22191
22546
  tableLoading: h,
22192
- showPageSizeSelector: f
22547
+ showPageSizeSelector: d
22193
22548
  })
22194
22549
  }),
22195
22550
  (0, import_jsx_runtime.jsx)("div", {
@@ -22243,34 +22598,34 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22243
22598
  let n = URL.createObjectURL(e);
22244
22599
  downloadByURL(n, t), URL.revokeObjectURL(n);
22245
22600
  };
22246
- var import_compiler_runtime$7 = require_compiler_runtime();
22601
+ var import_compiler_runtime$9 = require_compiler_runtime();
22247
22602
  InstallPackageButton = (e) => {
22248
- let t = (0, import_compiler_runtime$7.c)(13), { packages: n, showMaxPackages: i, className: o, onInstall: s } = e, { handleInstallPackages: c } = useInstallPackages();
22603
+ let t = (0, import_compiler_runtime$9.c)(13), { packages: n, showMaxPackages: i, className: o, onInstall: s } = e, { handleInstallPackages: c } = useInstallPackages();
22249
22604
  if (!n || n.length === 0) return null;
22250
- let f;
22251
- t[0] !== c || t[1] !== s || t[2] !== n ? (f = () => {
22605
+ let d;
22606
+ t[0] !== c || t[1] !== s || t[2] !== n ? (d = () => {
22252
22607
  c(n, s);
22253
- }, t[0] = c, t[1] = s, t[2] = n, t[3] = f) : f = t[3];
22608
+ }, t[0] = c, t[1] = s, t[2] = n, t[3] = d) : d = t[3];
22254
22609
  let h;
22255
22610
  t[4] === o ? h = t[5] : (h = cn("ml-2", o), t[4] = o, t[5] = h);
22256
22611
  let _;
22257
22612
  t[6] !== n || t[7] !== i ? (_ = i ? n.slice(0, i).join(", ") : n.join(", "), t[6] = n, t[7] = i, t[8] = _) : _ = t[8];
22258
22613
  let v;
22259
- return t[9] !== f || t[10] !== h || t[11] !== _ ? (v = (0, import_jsx_runtime.jsxs)(Button, {
22614
+ return t[9] !== d || t[10] !== h || t[11] !== _ ? (v = (0, import_jsx_runtime.jsxs)(Button, {
22260
22615
  variant: "outline",
22261
22616
  size: "xs",
22262
- onClick: f,
22617
+ onClick: d,
22263
22618
  className: h,
22264
22619
  children: [
22265
22620
  "Install",
22266
22621
  " ",
22267
22622
  _
22268
22623
  ]
22269
- }), t[9] = f, t[10] = h, t[11] = _, t[12] = v) : v = t[12], v;
22624
+ }), t[9] = d, t[10] = h, t[11] = _, t[12] = v) : v = t[12], v;
22270
22625
  };
22271
- var import_compiler_runtime$6 = require_compiler_runtime();
22626
+ var import_compiler_runtime$8 = require_compiler_runtime();
22272
22627
  const MissingPackagePrompt = (e) => {
22273
- let t = (0, import_compiler_runtime$6.c)(16), { packages: n, featureName: i, description: o, onInstall: s, className: c } = e;
22628
+ let t = (0, import_compiler_runtime$8.c)(16), { packages: n, featureName: i, description: o, onInstall: s, className: c } = e;
22274
22629
  if (!useInstallAllowed()) {
22275
22630
  let e2;
22276
22631
  t[0] === c ? e2 = t[1] : (e2 = cn("text-xs", c), t[0] = c, t[1] = e2);
@@ -22305,7 +22660,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22305
22660
  ]
22306
22661
  }), t[12] = d, t[13] = h, t[14] = _, t[15] = v) : v = t[15], v;
22307
22662
  };
22308
- var import_compiler_runtime$5 = require_compiler_runtime(), FILE_TYPES = {
22663
+ var import_compiler_runtime$7 = require_compiler_runtime(), FILE_TYPES = {
22309
22664
  CSV: {
22310
22665
  label: "CSV",
22311
22666
  format: "csv",
@@ -22350,12 +22705,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22350
22705
  return ((_a2 = downloadOptions.find((t) => t.format === e)) == null ? void 0 : _a2.label) ?? e;
22351
22706
  };
22352
22707
  const ExportMenu = (e) => {
22353
- let t = (0, import_compiler_runtime$5.c)(48), { locale: n } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), [i, o] = import_react.useState(false), s = i ? "text-primary" : "text-muted-foreground", c;
22708
+ let t = (0, import_compiler_runtime$7.c)(48), { locale: n } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), [i, o] = import_react.useState(false), s = i ? "text-primary" : "text-muted-foreground", c;
22354
22709
  t[0] === s ? c = t[1] : (c = cn("print:hidden text-xs gap-1", s), t[0] = s, t[1] = c);
22355
- let f;
22356
- t[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = (0, import_jsx_runtime.jsx)(Download, {
22710
+ let d;
22711
+ t[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = (0, import_jsx_runtime.jsx)(Download, {
22357
22712
  className: "w-3.5 h-3.5"
22358
- }), t[2] = f) : f = t[2];
22713
+ }), t[2] = d) : d = t[2];
22359
22714
  let h;
22360
22715
  t[3] === c ? h = t[4] : (h = (0, import_jsx_runtime.jsxs)(Button, {
22361
22716
  "data-testid": "export-button",
@@ -22363,7 +22718,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22363
22718
  variant: "text",
22364
22719
  className: c,
22365
22720
  children: [
22366
- f,
22721
+ d,
22367
22722
  "Export"
22368
22723
  ]
22369
22724
  }), t[3] = c, t[4] = h);
@@ -22394,17 +22749,17 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22394
22749
  filename: i2.filename
22395
22750
  };
22396
22751
  }, t[5] = e, t[6] = v);
22397
- let w = v, E, O, A, M, I, z, U, K, q, J, Q, yj, $;
22398
- if (t[7] !== _ || t[8] !== n || t[9] !== i || t[10] !== w) {
22752
+ let y = v, E, O, A, M, I, z, U, K, q, J, Q, _M, $;
22753
+ if (t[7] !== _ || t[8] !== n || t[9] !== i || t[10] !== y) {
22399
22754
  let e2 = async (t2) => {
22400
- let n2 = await w(t2, () => {
22755
+ let n2 = await y(t2, () => {
22401
22756
  e2(t2);
22402
22757
  });
22403
22758
  if (!n2) return;
22404
22759
  let i2 = (n2.filename ?? "").trim(), a2 = Filenames.withoutExtension(i2) || "download";
22405
22760
  downloadByURL(n2.url, `${a2}.${t2}`);
22406
22761
  }, a = async (e3) => {
22407
- let t2 = await w(e3 === "csv" ? "csv" : "json", () => {
22762
+ let t2 = await y(e3 === "csv" ? "csv" : "json", () => {
22408
22763
  a(e3);
22409
22764
  });
22410
22765
  if (!t2) return;
@@ -22444,7 +22799,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22444
22799
  }), t[26] = s2, t[27] = c2, t[28] = K) : K = t[28], E = DropdownMenuContent, q = "bottom", J = "print:hidden", t[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Q = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
22445
22800
  className: "text-xs text-muted-foreground",
22446
22801
  children: "Download"
22447
- }), t[29] = Q) : Q = t[29], yj = downloadOptions.map((t2) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
22802
+ }), t[29] = Q) : Q = t[29], _M = downloadOptions.map((t2) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
22448
22803
  onSelect: () => {
22449
22804
  e2(t2.format);
22450
22805
  },
@@ -22497,30 +22852,30 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22497
22852
  ]
22498
22853
  })
22499
22854
  ]
22500
- }, e3.label)), t[7] = _, t[8] = n, t[9] = i, t[10] = w, t[11] = E, t[12] = O, t[13] = A, t[14] = M, t[15] = I, t[16] = z, t[17] = U, t[18] = K, t[19] = q, t[20] = J, t[21] = Q, t[22] = yj, t[23] = $;
22501
- } else E = t[11], O = t[12], A = t[13], M = t[14], I = t[15], z = t[16], U = t[17], K = t[18], q = t[19], J = t[20], Q = t[21], yj = t[22], $ = t[23];
22502
- let bj;
22503
- t[32] !== E || t[33] !== A || t[34] !== M || t[35] !== q || t[36] !== J || t[37] !== Q || t[38] !== yj || t[39] !== $ ? (bj = (0, import_jsx_runtime.jsxs)(E, {
22855
+ }, e3.label)), t[7] = _, t[8] = n, t[9] = i, t[10] = y, t[11] = E, t[12] = O, t[13] = A, t[14] = M, t[15] = I, t[16] = z, t[17] = U, t[18] = K, t[19] = q, t[20] = J, t[21] = Q, t[22] = _M, t[23] = $;
22856
+ } else E = t[11], O = t[12], A = t[13], M = t[14], I = t[15], z = t[16], U = t[17], K = t[18], q = t[19], J = t[20], Q = t[21], _M = t[22], $ = t[23];
22857
+ let vM;
22858
+ t[32] !== E || t[33] !== A || t[34] !== M || t[35] !== q || t[36] !== J || t[37] !== Q || t[38] !== _M || t[39] !== $ ? (vM = (0, import_jsx_runtime.jsxs)(E, {
22504
22859
  side: q,
22505
22860
  className: J,
22506
22861
  children: [
22507
22862
  Q,
22508
- yj,
22863
+ _M,
22509
22864
  $,
22510
22865
  A,
22511
22866
  M
22512
22867
  ]
22513
- }), t[32] = E, t[33] = A, t[34] = M, t[35] = q, t[36] = J, t[37] = Q, t[38] = yj, t[39] = $, t[40] = bj) : bj = t[40];
22514
- let xj;
22515
- return t[41] !== O || t[42] !== I || t[43] !== z || t[44] !== U || t[45] !== K || t[46] !== bj ? (xj = (0, import_jsx_runtime.jsxs)(O, {
22868
+ }), t[32] = E, t[33] = A, t[34] = M, t[35] = q, t[36] = J, t[37] = Q, t[38] = _M, t[39] = $, t[40] = vM) : vM = t[40];
22869
+ let yM;
22870
+ return t[41] !== O || t[42] !== I || t[43] !== z || t[44] !== U || t[45] !== K || t[46] !== vM ? (yM = (0, import_jsx_runtime.jsxs)(O, {
22516
22871
  modal: I,
22517
22872
  open: z,
22518
22873
  onOpenChange: U,
22519
22874
  children: [
22520
22875
  K,
22521
- bj
22876
+ vM
22522
22877
  ]
22523
- }), t[41] = O, t[42] = I, t[43] = z, t[44] = U, t[45] = K, t[46] = bj, t[47] = xj) : xj = t[47], xj;
22878
+ }), t[41] = O, t[42] = I, t[43] = z, t[44] = U, t[45] = K, t[46] = vM, t[47] = yM) : yM = t[47], yM;
22524
22879
  };
22525
22880
  function fetchJson(e) {
22526
22881
  return fetchText(e).then(jsonParseWithSpecialChar);
@@ -22534,14 +22889,14 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22534
22889
  var NOOP_ON_SEARCH = () => {
22535
22890
  };
22536
22891
  let TableTopBar;
22537
- TableTopBar = ({ enableSearch: e, searchQuery: t, onSearchQueryChange: n, reloading: i, showChartBuilder: o, isChartBuilderOpen: s, toggleDisplayHeader: c, showTableExplorer: f, togglePanel: h, isAnyPanelOpen: _, downloadAs: v }) => {
22892
+ TableTopBar = ({ enableSearch: e, searchQuery: t, onSearchQueryChange: n, reloading: i, showChartBuilder: o, isChartBuilderOpen: s, toggleDisplayHeader: c, showTableExplorer: d, togglePanel: h, isAnyPanelOpen: _, downloadAs: v }) => {
22538
22893
  let [y, S] = (0, import_react.useState)(t || ""), w = useDebounce(y, 500), E = useEvent_default(n ?? NOOP_ON_SEARCH), O = import_react.useRef(null);
22539
22894
  return (0, import_react.useEffect)(() => {
22540
22895
  E(w);
22541
22896
  }, [
22542
22897
  w,
22543
22898
  E
22544
- ]), e && n || o || f || v ? (0, import_jsx_runtime.jsxs)("div", {
22899
+ ]), e && n || o || d || v ? (0, import_jsx_runtime.jsxs)("div", {
22545
22900
  className: "flex items-center h-10 px-2 border-b gap-2",
22546
22901
  children: [
22547
22902
  n && e && (0, import_jsx_runtime.jsxs)("div", {
@@ -22591,7 +22946,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22591
22946
  "Visualize"
22592
22947
  ]
22593
22948
  }),
22594
- f && h && (0, import_jsx_runtime.jsxs)(Button, {
22949
+ d && h && (0, import_jsx_runtime.jsxs)(Button, {
22595
22950
  variant: "text",
22596
22951
  size: "xs",
22597
22952
  className: cn("print:hidden text-xs gap-1", _ ? "text-primary" : "text-muted-foreground"),
@@ -22611,22 +22966,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22611
22966
  ]
22612
22967
  }) : null;
22613
22968
  };
22614
- DataTable = (0, import_react.memo)(({ wrapperClassName: e, className: t, maxHeight: n, columns: i, data: o, rawData: s, selection: c, totalColumns: d, totalRows: f, manualSorting: h = false, sorting: _, setSorting: v, rowSelection: y, cellSelection: S, cellStyling: w, hoverTemplate: E, cellHoverTexts: O, paginationState: A, setPaginationState: M, downloadAs: I, manualPagination: z = false, pagination: U = false, onRowSelectionChange: K, onCellSelectionChange: q, getRowIds: J, enableSearch: Q = false, searchQuery: yj, onSearchQueryChange: $, showFilters: bj = false, filters: xj, onFiltersChange: Sj, reloading: Cj, freezeColumnsLeft: wj, freezeColumnsRight: Tj, toggleDisplayHeader: Ej, showChartBuilder: Dj, isChartBuilderOpen: Oj, showPageSizeSelector: kj, showTableExplorer: Aj, togglePanel: jj, isPanelOpen: Mj, isAnyPanelOpen: Nj, viewedRowIdx: Pj, onViewedRowChange: Fj }) => {
22615
- let [Ij, Lj] = import_react.useState(false), { locale: Rj } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), { columnPinning: zj, setColumnPinning: Bj } = useColumnPinning(wj, Tj);
22969
+ DataTable = (0, import_react.memo)(({ wrapperClassName: e, className: t, maxHeight: n, columns: i, data: o, rawData: s, selection: c, totalColumns: d, totalRows: f, manualSorting: h = false, sorting: _, setSorting: v, rowSelection: y, cellSelection: S, cellStyling: w, hoverTemplate: E, cellHoverTexts: O, paginationState: A, setPaginationState: M, downloadAs: I, manualPagination: z = false, pagination: U = false, onRowSelectionChange: K, onCellSelectionChange: q, getRowIds: J, enableSearch: Q = false, searchQuery: _M, onSearchQueryChange: $, showFilters: vM = false, filters: yM, onFiltersChange: bM, reloading: xM, freezeColumnsLeft: SM, freezeColumnsRight: CM, toggleDisplayHeader: wM, showChartBuilder: TM, isChartBuilderOpen: EM, showPageSizeSelector: DM, showTableExplorer: OM, togglePanel: kM, isPanelOpen: AM, isAnyPanelOpen: jM, viewedRowIdx: MM, onViewedRowChange: NM }) => {
22970
+ let [PM, FM] = import_react.useState(false), { locale: IM } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), { columnPinning: LM, setColumnPinning: RM } = useColumnPinning(SM, CM);
22616
22971
  import_react.useEffect(() => {
22617
22972
  let e2;
22618
- return Cj ? e2 = setTimeout(() => {
22619
- Lj(true);
22620
- }, 300) : Lj(false), () => {
22973
+ return xM ? e2 = setTimeout(() => {
22974
+ FM(true);
22975
+ }, 300) : FM(false), () => {
22621
22976
  e2 && clearTimeout(e2);
22622
22977
  };
22623
22978
  }, [
22624
- Cj
22979
+ xM
22625
22980
  ]);
22626
- function Vj(e2, t2) {
22981
+ function zM(e2, t2) {
22627
22982
  return A ? t2 + (z ? A.pageIndex * A.pageSize : 0) : t2;
22628
22983
  }
22629
- let Hj = useReactTable({
22984
+ let BM = useReactTable({
22630
22985
  _features: [
22631
22986
  ColumnPinning,
22632
22987
  ColumnWrappingFeature,
@@ -22650,11 +23005,11 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22650
23005
  getRowId: (e2, t2) => {
22651
23006
  let n2 = getStableRowId(e2);
22652
23007
  if (n2) return n2;
22653
- let i2 = Vj(e2, t2);
23008
+ let i2 = zM(e2, t2);
22654
23009
  return String(i2);
22655
23010
  }
22656
23011
  } : {},
22657
- locale: Rj,
23012
+ locale: IM,
22658
23013
  manualPagination: z,
22659
23014
  getPaginationRowModel: getPaginationRowModel(),
22660
23015
  ...v ? {
@@ -22664,21 +23019,21 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22664
23019
  enableMultiSort: true,
22665
23020
  getSortedRowModel: getSortedRowModel(),
22666
23021
  manualFiltering: true,
22667
- enableColumnFilters: bj,
23022
+ enableColumnFilters: vM,
22668
23023
  getFilteredRowModel: getFilteredRowModel(),
22669
- onColumnFiltersChange: Sj,
23024
+ onColumnFiltersChange: bM,
22670
23025
  onRowSelectionChange: K,
22671
23026
  onCellSelectionChange: q,
22672
23027
  enableCellSelection: c === "single-cell" || c === "multi-cell",
22673
23028
  enableMultiCellSelection: c === "multi-cell",
22674
- onColumnPinningChange: Bj,
23029
+ onColumnPinningChange: RM,
22675
23030
  enableFocusRow: true,
22676
- onFocusRowChange: Fj,
23031
+ onFocusRowChange: NM,
22677
23032
  state: {
22678
23033
  ..._ ? {
22679
23034
  sorting: _
22680
23035
  } : {},
22681
- columnFilters: xj,
23036
+ columnFilters: yM,
22682
23037
  ...A ? {
22683
23038
  pagination: A
22684
23039
  } : U && !A ? {} : {
@@ -22690,20 +23045,20 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22690
23045
  rowSelection: y ?? {},
22691
23046
  cellSelection: S ?? [],
22692
23047
  cellStyling: w,
22693
- columnPinning: zj,
23048
+ columnPinning: LM,
22694
23049
  cellHoverTemplate: E,
22695
23050
  cellHoverTexts: O ?? {}
22696
23051
  }
22697
- }), Uj = (Mj == null ? void 0 : Mj(PANEL_TYPES.ROW_VIEWER)) ?? false, Wj = !U && o.length > 100, Gj = useScrollContainerHeight({
23052
+ }), VM = (AM == null ? void 0 : AM(PANEL_TYPES.ROW_VIEWER)) ?? false, HM = !U && o.length > 100, UM = useScrollContainerHeight({
22698
23053
  maxHeight: n,
22699
- virtualize: Wj
23054
+ virtualize: HM
22700
23055
  });
22701
23056
  return (0, import_jsx_runtime.jsxs)("div", {
22702
23057
  className: cn(e, "flex flex-col space-y-1"),
22703
23058
  children: [
22704
23059
  (0, import_jsx_runtime.jsx)(FilterPills, {
22705
- filters: xj,
22706
- table: Hj
23060
+ filters: yM,
23061
+ table: BM
22707
23062
  }),
22708
23063
  (0, import_jsx_runtime.jsx)(CellSelectionProvider, {
22709
23064
  children: (0, import_jsx_runtime.jsxs)("div", {
@@ -22712,32 +23067,32 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22712
23067
  children: [
22713
23068
  (0, import_jsx_runtime.jsx)(TableTopBar, {
22714
23069
  enableSearch: Q,
22715
- searchQuery: yj,
23070
+ searchQuery: _M,
22716
23071
  onSearchQueryChange: $,
22717
- reloading: Cj,
22718
- showChartBuilder: Dj,
22719
- isChartBuilderOpen: Oj,
22720
- toggleDisplayHeader: Ej,
22721
- showTableExplorer: Aj,
22722
- togglePanel: jj,
22723
- isAnyPanelOpen: Nj,
23072
+ reloading: xM,
23073
+ showChartBuilder: TM,
23074
+ isChartBuilderOpen: EM,
23075
+ toggleDisplayHeader: wM,
23076
+ showTableExplorer: OM,
23077
+ togglePanel: kM,
23078
+ isAnyPanelOpen: jM,
22724
23079
  downloadAs: I
22725
23080
  }),
22726
23081
  (0, import_jsx_runtime.jsxs)(Table, {
22727
23082
  className: cn("relative", i.length <= 4 ? "w-auto" : "w-full"),
22728
- ref: Gj,
23083
+ ref: UM,
22729
23084
  children: [
22730
- Ij && (0, import_jsx_runtime.jsx)("thead", {
23085
+ PM && (0, import_jsx_runtime.jsx)("thead", {
22731
23086
  className: "absolute top-0 left-0 h-[3px] w-1/2 bg-primary animate-slide"
22732
23087
  }),
22733
- renderTableHeader(Hj, Wj || !!n),
23088
+ renderTableHeader(BM, HM || !!n),
22734
23089
  (0, import_jsx_runtime.jsx)(DataTableBody, {
22735
- table: Hj,
23090
+ table: BM,
22736
23091
  columns: i,
22737
- rowViewerPanelOpen: Uj,
22738
- getRowIndex: Vj,
22739
- viewedRowIdx: Pj,
22740
- virtualize: Wj
23092
+ rowViewerPanelOpen: VM,
23093
+ getRowIndex: zM,
23094
+ viewedRowIdx: MM,
23095
+ virtualize: HM
22741
23096
  })
22742
23097
  ]
22743
23098
  }),
@@ -22748,10 +23103,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22748
23103
  pagination: U,
22749
23104
  selection: c,
22750
23105
  onRowSelectionChange: K,
22751
- table: Hj,
23106
+ table: BM,
22752
23107
  getRowIds: J,
22753
- showPageSizeSelector: kj,
22754
- tableLoading: Cj
23108
+ showPageSizeSelector: DM,
23109
+ tableLoading: xM
22755
23110
  })
22756
23111
  ]
22757
23112
  })
@@ -22815,10 +23170,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22815
23170
  ]
22816
23171
  }), e.focus(), true;
22817
23172
  }
22818
- var import_compiler_runtime$3 = require_compiler_runtime(), KEY = "item";
23173
+ var import_compiler_runtime$5 = require_compiler_runtime(), KEY = "item";
22819
23174
  const MarimoTracebackOutput = (e) => {
22820
23175
  var _a2;
22821
- let t = (0, import_compiler_runtime$3.c)(47), { onRefactorWithAI: n, traceback: i, cellId: o } = e, s;
23176
+ let t = (0, import_compiler_runtime$5.c)(47), { onRefactorWithAI: n, traceback: i, cellId: o } = e, s;
22822
23177
  t[0] === i ? s = t[1] : (s = renderHTML({
22823
23178
  html: i,
22824
23179
  additionalReplacements: [
@@ -22826,82 +23181,82 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22826
23181
  replaceTracebackPrefix
22827
23182
  ]
22828
23183
  }), t[0] = i, t[1] = s);
22829
- let c = s, [f, h] = (0, import_react.useState)(true), _ = lastLine(i), y = useAtomValue(aiEnabledAtom), w;
22830
- t[2] === i ? w = t[3] : (w = (_a2 = extractAllTracebackInfo(i)) == null ? void 0 : _a2.at(0), t[2] = i, t[3] = w);
22831
- let E = w, O;
23184
+ let c = s, [d, h] = (0, import_react.useState)(true), _ = lastLine(i), v = useAtomValue(aiEnabledAtom), S;
23185
+ t[2] === i ? S = t[3] : (S = (_a2 = extractAllTracebackInfo(i)) == null ? void 0 : _a2.at(0), t[2] = i, t[3] = S);
23186
+ let E = S, O;
22832
23187
  t[4] !== o || t[5] !== E ? (O = E && E.kind === "cell" && !isWasm() && !isStaticNotebook() && o !== "__scratch__", t[4] = o, t[5] = E, t[6] = O) : O = t[6];
22833
- let A = O, I;
22834
- t[7] !== y || t[8] !== n ? (I = n && y && !isStaticNotebook(), t[7] = y, t[8] = n, t[9] = I) : I = t[9];
22835
- let z = I, U = !isStaticNotebook(), q = (e2) => {
23188
+ let A = O, M;
23189
+ t[7] !== v || t[8] !== n ? (M = n && v && !isStaticNotebook(), t[7] = v, t[8] = n, t[9] = M) : M = t[9];
23190
+ let z = M, U = !isStaticNotebook(), K = (e2) => {
22836
23191
  n == null ? void 0 : n({
22837
23192
  prompt: `My code gives the following error:
22838
23193
 
22839
23194
  ${_}`,
22840
23195
  triggerImmediately: e2
22841
23196
  });
22842
- }, [J, Q] = _.split(":", 2), yj = f ? KEY : "", $;
22843
- t[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = () => h(_temp$1), t[10] = $) : $ = t[10];
22844
- let bj = f ? "rotate-180" : "rotate-0", xj;
22845
- t[11] === bj ? xj = t[12] : (xj = cn("h-4 w-4 text-muted-foreground transition-transform duration-200 shrink-0", bj), t[11] = bj, t[12] = xj);
22846
- let Sj;
22847
- t[13] === xj ? Sj = t[14] : (Sj = (0, import_jsx_runtime.jsx)(ChevronDown, {
22848
- className: xj
22849
- }), t[13] = xj, t[14] = Sj);
22850
- let wj = J || "Error", Tj;
22851
- t[15] === wj ? Tj = t[16] : (Tj = (0, import_jsx_runtime.jsxs)("span", {
23197
+ }, [J, Q] = _.split(":", 2), _M = d ? KEY : "", $;
23198
+ t[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = () => h(_temp$2), t[10] = $) : $ = t[10];
23199
+ let vM = d ? "rotate-180" : "rotate-0", yM;
23200
+ t[11] === vM ? yM = t[12] : (yM = cn("h-4 w-4 text-muted-foreground transition-transform duration-200 shrink-0", vM), t[11] = vM, t[12] = yM);
23201
+ let bM;
23202
+ t[13] === yM ? bM = t[14] : (bM = (0, import_jsx_runtime.jsx)(ChevronDown, {
23203
+ className: yM
23204
+ }), t[13] = yM, t[14] = bM);
23205
+ let xM = J || "Error", CM;
23206
+ t[15] === xM ? CM = t[16] : (CM = (0, import_jsx_runtime.jsxs)("span", {
22852
23207
  className: "text-destructive",
22853
23208
  children: [
22854
- wj,
23209
+ xM,
22855
23210
  ":"
22856
23211
  ]
22857
- }), t[15] = wj, t[16] = Tj);
22858
- let Dj;
22859
- t[17] !== Q || t[18] !== Tj ? (Dj = (0, import_jsx_runtime.jsxs)("div", {
23212
+ }), t[15] = xM, t[16] = CM);
23213
+ let wM;
23214
+ t[17] !== Q || t[18] !== CM ? (wM = (0, import_jsx_runtime.jsxs)("div", {
22860
23215
  className: "text-sm inline font-mono",
22861
23216
  children: [
22862
- Tj,
23217
+ CM,
22863
23218
  " ",
22864
23219
  Q
22865
23220
  ]
22866
- }), t[17] = Q, t[18] = Tj, t[19] = Dj) : Dj = t[19];
22867
- let Oj;
22868
- t[20] !== Dj || t[21] !== Sj ? (Oj = (0, import_jsx_runtime.jsxs)("div", {
23221
+ }), t[17] = Q, t[18] = CM, t[19] = wM) : wM = t[19];
23222
+ let EM;
23223
+ t[20] !== wM || t[21] !== bM ? (EM = (0, import_jsx_runtime.jsxs)("div", {
22869
23224
  className: "flex gap-2 h-10 px-2 hover:bg-muted rounded-sm select-none items-center cursor-pointer transition-all",
22870
23225
  onClick: $,
22871
23226
  children: [
22872
- Sj,
22873
- Dj
23227
+ bM,
23228
+ wM
22874
23229
  ]
22875
- }), t[20] = Dj, t[21] = Sj, t[22] = Oj) : Oj = t[22];
22876
- let kj;
22877
- t[23] === c ? kj = t[24] : (kj = (0, import_jsx_runtime.jsx)(AccordionContent, {
23230
+ }), t[20] = wM, t[21] = bM, t[22] = EM) : EM = t[22];
23231
+ let DM;
23232
+ t[23] === c ? DM = t[24] : (DM = (0, import_jsx_runtime.jsx)(AccordionContent, {
22878
23233
  className: "text-muted-foreground px-4 pt-2 text-xs overflow-auto",
22879
23234
  children: c
22880
- }), t[23] = c, t[24] = kj);
22881
- let jj;
22882
- t[25] !== Oj || t[26] !== kj ? (jj = (0, import_jsx_runtime.jsxs)(AccordionItem, {
23235
+ }), t[23] = c, t[24] = DM);
23236
+ let OM;
23237
+ t[25] !== EM || t[26] !== DM ? (OM = (0, import_jsx_runtime.jsxs)(AccordionItem, {
22883
23238
  value: KEY,
22884
23239
  className: "border-none",
22885
23240
  children: [
22886
- Oj,
22887
- kj
23241
+ EM,
23242
+ DM
22888
23243
  ]
22889
- }), t[25] = Oj, t[26] = kj, t[27] = jj) : jj = t[27];
22890
- let Mj;
22891
- t[28] !== jj || t[29] !== yj ? (Mj = (0, import_jsx_runtime.jsx)(Accordion, {
23244
+ }), t[25] = EM, t[26] = DM, t[27] = OM) : OM = t[27];
23245
+ let AM;
23246
+ t[28] !== OM || t[29] !== _M ? (AM = (0, import_jsx_runtime.jsx)(Accordion, {
22892
23247
  type: "single",
22893
23248
  collapsible: true,
22894
- value: yj,
22895
- children: jj
22896
- }), t[28] = jj, t[29] = yj, t[30] = Mj) : Mj = t[30];
22897
- let Nj;
22898
- t[31] !== q || t[32] !== z ? (Nj = z && (0, import_jsx_runtime.jsx)(AIFixButton, {
23249
+ value: _M,
23250
+ children: OM
23251
+ }), t[28] = OM, t[29] = _M, t[30] = AM) : AM = t[30];
23252
+ let jM;
23253
+ t[31] !== K || t[32] !== z ? (jM = z && (0, import_jsx_runtime.jsx)(AIFixButton, {
22899
23254
  tooltip: "Fix with AI",
22900
- openPrompt: () => q(false),
22901
- applyAutofix: () => q(true)
22902
- }), t[31] = q, t[32] = z, t[33] = Nj) : Nj = t[33];
22903
- let Pj;
22904
- t[34] !== A || t[35] !== E ? (Pj = A && (0, import_jsx_runtime.jsx)(Tooltip, {
23255
+ openPrompt: () => K(false),
23256
+ applyAutofix: () => K(true)
23257
+ }), t[31] = K, t[32] = z, t[33] = jM) : jM = t[33];
23258
+ let MM;
23259
+ t[34] !== A || t[35] !== E ? (MM = A && (0, import_jsx_runtime.jsx)(Tooltip, {
22905
23260
  content: "Attach pdb to the exception point.",
22906
23261
  children: (0, import_jsx_runtime.jsxs)(Button, {
22907
23262
  size: "xs",
@@ -22918,9 +23273,9 @@ ${_}`,
22918
23273
  "Launch debugger"
22919
23274
  ]
22920
23275
  })
22921
- }), t[34] = A, t[35] = E, t[36] = Pj) : Pj = t[36];
22922
- let Fj;
22923
- t[37] !== _ || t[38] !== i ? (Fj = U && (0, import_jsx_runtime.jsxs)(DropdownMenu, {
23276
+ }), t[34] = A, t[35] = E, t[36] = MM) : MM = t[36];
23277
+ let NM;
23278
+ t[37] !== _ || t[38] !== i ? (NM = U && (0, import_jsx_runtime.jsxs)(DropdownMenu, {
22924
23279
  children: [
22925
23280
  (0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
22926
23281
  asChild: true,
@@ -22988,24 +23343,24 @@ ${_}`,
22988
23343
  ]
22989
23344
  })
22990
23345
  ]
22991
- }), t[37] = _, t[38] = i, t[39] = Fj) : Fj = t[39];
22992
- let Ij;
22993
- t[40] !== Nj || t[41] !== Pj || t[42] !== Fj ? (Ij = (0, import_jsx_runtime.jsxs)("div", {
23346
+ }), t[37] = _, t[38] = i, t[39] = NM) : NM = t[39];
23347
+ let PM;
23348
+ t[40] !== jM || t[41] !== MM || t[42] !== NM ? (PM = (0, import_jsx_runtime.jsxs)("div", {
22994
23349
  className: "flex gap-2",
22995
23350
  children: [
22996
- Nj,
22997
- Pj,
22998
- Fj
23351
+ jM,
23352
+ MM,
23353
+ NM
22999
23354
  ]
23000
- }), t[40] = Nj, t[41] = Pj, t[42] = Fj, t[43] = Ij) : Ij = t[43];
23001
- let Lj;
23002
- return t[44] !== Mj || t[45] !== Ij ? (Lj = (0, import_jsx_runtime.jsxs)("div", {
23355
+ }), t[40] = jM, t[41] = MM, t[42] = NM, t[43] = PM) : PM = t[43];
23356
+ let FM;
23357
+ return t[44] !== AM || t[45] !== PM ? (FM = (0, import_jsx_runtime.jsxs)("div", {
23003
23358
  className: "flex flex-col gap-2 min-w-full w-fit",
23004
23359
  children: [
23005
- Mj,
23006
- Ij
23360
+ AM,
23361
+ PM
23007
23362
  ]
23008
- }), t[44] = Mj, t[45] = Ij, t[46] = Lj) : Lj = t[46], Lj;
23363
+ }), t[44] = AM, t[45] = PM, t[46] = FM) : FM = t[46], FM;
23009
23364
  };
23010
23365
  function lastLine(e) {
23011
23366
  var _a2, _b;
@@ -23067,7 +23422,7 @@ ${_}`,
23067
23422
  });
23068
23423
  };
23069
23424
  var InsertBreakpointContent = () => {
23070
- let e = (0, import_compiler_runtime$3.c)(1), t;
23425
+ let e = (0, import_compiler_runtime$5.c)(1), t;
23071
23426
  return e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
23072
23427
  children: [
23073
23428
  "Insert a ",
@@ -23079,7 +23434,7 @@ ${_}`,
23079
23434
  ]
23080
23435
  }), e[0] = t) : t = e[0], t;
23081
23436
  };
23082
- function _temp$1(e) {
23437
+ function _temp$2(e) {
23083
23438
  return !e;
23084
23439
  }
23085
23440
  function renderMimeIcon(e) {
@@ -23121,9 +23476,9 @@ ${_}`,
23121
23476
  return "\u2753";
23122
23477
  }
23123
23478
  }
23124
- var import_compiler_runtime$2 = require_compiler_runtime(), METADATA_KEY = "__metadata__";
23479
+ var import_compiler_runtime$4 = require_compiler_runtime(), METADATA_KEY = "__metadata__";
23125
23480
  OutputRenderer = (0, import_react.memo)((e) => {
23126
- let t = (0, import_compiler_runtime$2.c)(54), { message: n, onRefactorWithAI: i, cellId: a, wrapText: o, metadata: s, renderFallback: c } = e, { theme: d } = useTheme(), f;
23481
+ let t = (0, import_compiler_runtime$4.c)(54), { message: n, onRefactorWithAI: i, cellId: a, wrapText: o, metadata: s, renderFallback: c } = e, { theme: d } = useTheme(), f;
23127
23482
  bb0: {
23128
23483
  let e2 = n.data;
23129
23484
  switch (n.mimetype) {
@@ -23315,11 +23670,11 @@ ${_}`,
23315
23670
  OutputRenderer.displayName = "OutputRenderer";
23316
23671
  var MimeBundleOutputRenderer = (0, import_react.memo)((e) => {
23317
23672
  var _a2;
23318
- let t = (0, import_compiler_runtime$2.c)(31), { data: n, channel: o, cellId: s } = e, c = Array.isArray(n) ? n[0] : n, { mode: d } = useAtomValue(viewStateAtom), f = d === "present" || d === "read", h = c[METADATA_KEY], _, v, y, S, w, E, O, A;
23673
+ let t = (0, import_compiler_runtime$4.c)(31), { data: n, channel: o, cellId: s } = e, c = Array.isArray(n) ? n[0] : n, { mode: d } = useAtomValue(viewStateAtom), f = d === "present" || d === "read", h = c[METADATA_KEY], _, v, y, S, w, E, O, A;
23319
23674
  if (t[0] !== f || t[1] !== s || t[2] !== o || t[3] !== h || t[4] !== c) {
23320
23675
  A = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
23321
23676
  bb0: {
23322
- let { entries: e2 } = processMimeBundle(Objects.entries(c).filter(_temp).map(_temp2)), n2 = (_a2 = e2[0]) == null ? void 0 : _a2[0];
23677
+ let { entries: e2 } = processMimeBundle(Objects.entries(c).filter(_temp$1).map(_temp2)), n2 = (_a2 = e2[0]) == null ? void 0 : _a2[0];
23323
23678
  if (!n2) {
23324
23679
  A = null;
23325
23680
  break bb0;
@@ -23386,7 +23741,7 @@ ${_}`,
23386
23741
  });
23387
23742
  MimeBundleOutputRenderer.displayName = "MimeBundleOutputRenderer";
23388
23743
  OutputArea = import_react.memo((e) => {
23389
- let t = (0, import_compiler_runtime$2.c)(17), { output: n, cellId: i, stale: o, loading: s, allowExpand: c, forceExpand: d, className: f } = e;
23744
+ let t = (0, import_compiler_runtime$4.c)(17), { output: n, cellId: i, stale: o, loading: s, allowExpand: c, forceExpand: d, className: f } = e;
23390
23745
  if (n == null || n.channel === "output" && n.data === "") return null;
23391
23746
  let h = o ? "This output is stale" : void 0, _ = c ? ExpandableOutput : Div, v;
23392
23747
  t[0] === i ? v = t[1] : (v = CellOutputId.create(i), t[0] = i, t[1] = v);
@@ -23411,7 +23766,7 @@ ${_}`,
23411
23766
  });
23412
23767
  OutputArea.displayName = "OutputArea";
23413
23768
  var Div = import_react.forwardRef((e, t) => {
23414
- let n = (0, import_compiler_runtime$2.c)(3), i;
23769
+ let n = (0, import_compiler_runtime$4.c)(3), i;
23415
23770
  return n[0] !== e || n[1] !== t ? (i = (0, import_jsx_runtime.jsx)("div", {
23416
23771
  ref: t,
23417
23772
  ...e
@@ -23419,7 +23774,7 @@ ${_}`,
23419
23774
  });
23420
23775
  Div.displayName = "Div";
23421
23776
  var ExpandableOutput = import_react.memo((e) => {
23422
- let t = (0, import_compiler_runtime$2.c)(24), { cellId: n, children: i, forceExpand: s, ...c } = e, f = (0, import_react.useRef)(null), [h, _] = useExpandedOutput(n), v = useOverflowDetection(f), { hasFullscreen: y } = useIframeCapabilities(), S;
23777
+ let t = (0, import_compiler_runtime$4.c)(24), { cellId: n, children: i, forceExpand: s, ...c } = e, d = (0, import_react.useRef)(null), [h, _] = useExpandedOutput(n), v = useOverflowDetection(d), { hasFullscreen: y } = useIframeCapabilities(), S;
23423
23778
  t[0] === y ? S = t[1] : (S = y && (0, import_jsx_runtime.jsx)(Tooltip, {
23424
23779
  content: "Fullscreen",
23425
23780
  side: "left",
@@ -23428,7 +23783,7 @@ ${_}`,
23428
23783
  className: "hover-action hover:bg-muted p-1 hover:border-border border border-transparent",
23429
23784
  onClick: async () => {
23430
23785
  var _a2;
23431
- await ((_a2 = f.current) == null ? void 0 : _a2.requestFullscreen());
23786
+ await ((_a2 = d.current) == null ? void 0 : _a2.requestFullscreen());
23432
23787
  },
23433
23788
  onMouseDown: Events.preventFocus,
23434
23789
  size: "xs",
@@ -23480,7 +23835,7 @@ ${_}`,
23480
23835
  ...c,
23481
23836
  "data-cell-role": "output",
23482
23837
  className: O,
23483
- ref: f,
23838
+ ref: d,
23484
23839
  style: A,
23485
23840
  children: i
23486
23841
  }), t[13] = i, t[14] = c, t[15] = O, t[16] = A, t[17] = M) : M = t[17];
@@ -23504,7 +23859,7 @@ ${_}`,
23504
23859
  }), t[22] = I, t[23] = U), U;
23505
23860
  });
23506
23861
  ExpandableOutput.displayName = "ExpandableOutput";
23507
- function _temp(e) {
23862
+ function _temp$1(e) {
23508
23863
  let [t] = e;
23509
23864
  return t !== METADATA_KEY;
23510
23865
  }
@@ -23530,8 +23885,8 @@ ${_}`,
23530
23885
  })
23531
23886
  }, t);
23532
23887
  }
23533
- var import_compiler_runtime$1 = require_compiler_runtime(), CopyButton = (e) => {
23534
- let t = (0, import_compiler_runtime$1.c)(8), { value: n } = e, i = typeof n == "string" && (n.startsWith("text/html:") || n.startsWith("image/") || n.startsWith("video/")), [o, s] = (0, import_react.useState)(false), c;
23888
+ var import_compiler_runtime$3 = require_compiler_runtime(), CopyButton = (e) => {
23889
+ let t = (0, import_compiler_runtime$3.c)(8), { value: n } = e, i = typeof n == "string" && (n.startsWith("text/html:") || n.startsWith("image/") || n.startsWith("video/")), [o, s] = (0, import_react.useState)(false), c;
23535
23890
  t[0] === n ? c = t[1] : (c = async (e2) => {
23536
23891
  e2.stopPropagation(), await copyToClipboard(n), s(true), setTimeout(() => s(false), 1e3);
23537
23892
  }, t[0] = n, t[1] = c);
@@ -23554,7 +23909,7 @@ ${_}`,
23554
23909
  children: h
23555
23910
  }), t[5] = d, t[6] = h, t[7] = _) : _ = t[7], _;
23556
23911
  }, JSONCopyButton = (e) => {
23557
- let t = (0, import_compiler_runtime$1.c)(5), n;
23912
+ let t = (0, import_compiler_runtime$3.c)(5), n;
23558
23913
  t[0] === e.value ? n = t[1] : (n = JSON.stringify(e.value, null, 2), t[0] = e.value, t[1] = n);
23559
23914
  let i;
23560
23915
  return t[2] !== e || t[3] !== n ? (i = (0, import_jsx_runtime.jsx)(CopyButton, {
@@ -23562,7 +23917,7 @@ ${_}`,
23562
23917
  value: n
23563
23918
  }), t[2] = e, t[3] = n, t[4] = i) : i = t[4], i;
23564
23919
  }, PyCopyButton = (e) => {
23565
- let t = (0, import_compiler_runtime$1.c)(5), n;
23920
+ let t = (0, import_compiler_runtime$3.c)(5), n;
23566
23921
  t[0] === e.value ? n = t[1] : (n = getCopyValue(e.value), t[0] = e.value, t[1] = n);
23567
23922
  let i;
23568
23923
  return t[2] !== e || t[3] !== n ? (i = (0, import_jsx_runtime.jsx)(CopyButton, {
@@ -23571,7 +23926,7 @@ ${_}`,
23571
23926
  }), t[2] = e, t[3] = n, t[4] = i) : i = t[4], i;
23572
23927
  };
23573
23928
  JsonOutput = (0, import_react.memo)((e) => {
23574
- let t = (0, import_compiler_runtime$1.c)(24), { data: n, format: i, name: o, valueTypes: s, className: c } = e, d = i === void 0 ? "auto" : i, f = o === void 0 ? false : o, h = s === void 0 ? "python" : s, { theme: _ } = useTheme();
23929
+ let t = (0, import_compiler_runtime$3.c)(24), { data: n, format: i, name: o, valueTypes: s, className: c } = e, d = i === void 0 ? "auto" : i, f = o === void 0 ? false : o, h = s === void 0 ? "python" : s, { theme: _ } = useTheme();
23575
23930
  d === "auto" && (d = inferBestFormat(n));
23576
23931
  let v;
23577
23932
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = {
@@ -23631,7 +23986,7 @@ ${_}`,
23631
23986
  return typeof e == "object" && e ? "tree" : "raw";
23632
23987
  }
23633
23988
  var COLLAPSED_TEXT_LENGTH = 100, CollapsibleTextOutput = (e) => {
23634
- let t = (0, import_compiler_runtime$1.c)(11), [n, i] = (0, import_react.useState)(true);
23989
+ let t = (0, import_compiler_runtime$3.c)(11), [n, i] = (0, import_react.useState)(true);
23635
23990
  if (e.text.length <= COLLAPSED_TEXT_LENGTH) {
23636
23991
  let n2;
23637
23992
  return t[0] === e.text ? n2 = t[1] : (n2 = (0, import_jsx_runtime.jsx)("span", {
@@ -23943,9 +24298,45 @@ ${_}`,
23943
24298
  return n <= 20 ? void 0 : n >= 50 ? 5 : 10;
23944
24299
  }
23945
24300
  }
23946
- var import_compiler_runtime = require_compiler_runtime();
24301
+ let import_compiler_runtime$2;
24302
+ import_compiler_runtime$2 = require_compiler_runtime();
24303
+ RadioGroup = import_react.forwardRef((e, t) => {
24304
+ let n = (0, import_compiler_runtime$2.c)(9), i, o;
24305
+ n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
24306
+ let s;
24307
+ n[3] === i ? s = n[4] : (s = cn("grid gap-2", i), n[3] = i, n[4] = s);
24308
+ let c;
24309
+ return n[5] !== o || n[6] !== t || n[7] !== s ? (c = (0, import_jsx_runtime.jsx)(Root2$1, {
24310
+ className: s,
24311
+ ...o,
24312
+ ref: t
24313
+ }), n[5] = o, n[6] = t, n[7] = s, n[8] = c) : c = n[8], c;
24314
+ });
24315
+ RadioGroup.displayName = Root2$1.displayName;
24316
+ RadioGroupItem = import_react.forwardRef((e, t) => {
24317
+ let n = (0, import_compiler_runtime$2.c)(13), i, o, s;
24318
+ n[0] === e ? (i = n[1], o = n[2], s = n[3]) : ({ className: o, children: i, ...s } = e, n[0] = e, n[1] = i, n[2] = o, n[3] = s);
24319
+ let c;
24320
+ n[4] === o ? c = n[5] : (c = cn("h-[16px] w-[16px] transition-shadow data-[state=unchecked]:shadow-xs-solid rounded-full border border-input text-primary ring-offset-background focus:outline-hidden focus:shadow-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:border-primary data-[state=checked]:shadow-none", o), n[4] = o, n[5] = c);
24321
+ let d;
24322
+ n[6] === i ? d = n[7] : (d = i ?? (0, import_jsx_runtime.jsx)(Indicator, {
24323
+ className: "flex items-center justify-center",
24324
+ children: (0, import_jsx_runtime.jsx)(Circle, {
24325
+ className: "h-[10px] w-[10px] fill-primary text-current"
24326
+ })
24327
+ }), n[6] = i, n[7] = d);
24328
+ let f;
24329
+ return n[8] !== s || n[9] !== t || n[10] !== c || n[11] !== d ? (f = (0, import_jsx_runtime.jsx)(Item2, {
24330
+ ref: t,
24331
+ className: c,
24332
+ ...s,
24333
+ children: d
24334
+ }), n[8] = s, n[9] = t, n[10] = c, n[11] = d, n[12] = f) : f = n[12], f;
24335
+ });
24336
+ RadioGroupItem.displayName = Item2.displayName;
24337
+ var import_compiler_runtime$1 = require_compiler_runtime();
23947
24338
  Slide = (0, import_react.memo)((e) => {
23948
- let t = (0, import_compiler_runtime.c)(6), { output: n, cellId: i, status: a } = e, o;
24339
+ let t = (0, import_compiler_runtime$1.c)(6), { output: n, cellId: i, status: a } = e, o;
23949
24340
  t[0] === a ? o = t[1] : (o = outputIsLoading(a), t[0] = a, t[1] = o);
23950
24341
  let s = o, c;
23951
24342
  return t[2] !== i || t[3] !== s || t[4] !== n ? (c = (0, import_jsx_runtime.jsx)(OutputArea, {
@@ -23958,90 +24349,413 @@ ${_}`,
23958
24349
  }), t[2] = i, t[3] = s, t[4] = n, t[5] = c) : c = t[5], c;
23959
24350
  });
23960
24351
  Slide.displayName = "Slide";
24352
+ var import_compiler_runtime = require_compiler_runtime();
24353
+ DEFAULT_SLIDE_TYPE = "slide";
24354
+ DEFAULT_DECK_TRANSITION = "slide";
24355
+ var COLLAPSED_CONFIG_WIDTH = 36;
24356
+ let SLIDE_TYPE_OPTIONS;
24357
+ SLIDE_TYPE_OPTIONS = [
24358
+ {
24359
+ value: "slide",
24360
+ label: "Slide",
24361
+ description: "A new top-level slide. Advances horizontally with the right arrow.",
24362
+ Icon: LayoutTemplate
24363
+ },
24364
+ {
24365
+ value: "sub-slide",
24366
+ label: "Sub-slide",
24367
+ description: "Stacks vertically under the previous slide. Reached with the down arrow.",
24368
+ Icon: Rows2
24369
+ },
24370
+ {
24371
+ value: "fragment",
24372
+ label: "Fragment",
24373
+ description: "Reveals step-by-step on the current slide without advancing.",
24374
+ Icon: Cookie
24375
+ },
24376
+ {
24377
+ value: "skip",
24378
+ label: "Skip",
24379
+ description: "Hidden from the presentation. Still visible here in the editor.",
24380
+ Icon: EyeOff
24381
+ }
24382
+ ];
24383
+ SLIDE_TYPE_OPTIONS_BY_VALUE = Object.fromEntries(SLIDE_TYPE_OPTIONS.map((e) => [
24384
+ e.value,
24385
+ e
24386
+ ]));
24387
+ var DECK_TRANSITION_OPTIONS = [
24388
+ {
24389
+ value: "none",
24390
+ label: "None",
24391
+ description: "No animation between slides."
24392
+ },
24393
+ {
24394
+ value: "fade",
24395
+ label: "Fade",
24396
+ description: "Cross-fade between slides."
24397
+ },
24398
+ {
24399
+ value: "slide",
24400
+ label: "Slide",
24401
+ description: "Slides move horizontally / vertically."
24402
+ },
24403
+ {
24404
+ value: "convex",
24405
+ label: "Convex",
24406
+ description: "Rotate with a convex curve."
24407
+ },
24408
+ {
24409
+ value: "concave",
24410
+ label: "Concave",
24411
+ description: "Rotate with a concave curve."
24412
+ },
24413
+ {
24414
+ value: "zoom",
24415
+ label: "Zoom",
24416
+ description: "Zoom into the next slide."
24417
+ }
24418
+ ], SlidesForm = (e) => {
24419
+ let t = (0, import_compiler_runtime.c)(11), { layout: n, setLayout: i, cellId: a } = e, o;
24420
+ t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = (0, import_jsx_runtime.jsxs)(TabsList, {
24421
+ className: "grid grid-cols-2",
24422
+ children: [
24423
+ (0, import_jsx_runtime.jsx)(TabsTrigger, {
24424
+ value: "slide",
24425
+ children: "Slide"
24426
+ }),
24427
+ (0, import_jsx_runtime.jsx)(TabsTrigger, {
24428
+ value: "deck",
24429
+ children: "Deck"
24430
+ })
24431
+ ]
24432
+ }), t[0] = o) : o = t[0];
24433
+ let s;
24434
+ t[1] !== a || t[2] !== n || t[3] !== i ? (s = (0, import_jsx_runtime.jsx)(TabsContent, {
24435
+ value: "slide",
24436
+ className: "mt-0 flex-1",
24437
+ children: (0, import_jsx_runtime.jsx)(SlideConfigForm, {
24438
+ layout: n,
24439
+ setLayout: i,
24440
+ cellId: a
24441
+ })
24442
+ }), t[1] = a, t[2] = n, t[3] = i, t[4] = s) : s = t[4];
24443
+ let c;
24444
+ t[5] !== n || t[6] !== i ? (c = (0, import_jsx_runtime.jsx)(TabsContent, {
24445
+ value: "deck",
24446
+ className: "mt-0 flex-1",
24447
+ children: (0, import_jsx_runtime.jsx)(DeckConfigForm, {
24448
+ layout: n,
24449
+ setLayout: i
24450
+ })
24451
+ }), t[5] = n, t[6] = i, t[7] = c) : c = t[7];
24452
+ let d;
24453
+ return t[8] !== s || t[9] !== c ? (d = (0, import_jsx_runtime.jsxs)(Tabs, {
24454
+ defaultValue: "slide",
24455
+ className: "flex flex-col flex-1 p-3 gap-3",
24456
+ children: [
24457
+ o,
24458
+ s,
24459
+ c
24460
+ ]
24461
+ }), t[8] = s, t[9] = c, t[10] = d) : d = t[10], d;
24462
+ }, SlideConfigForm = (e) => {
24463
+ var _a2;
24464
+ let t = (0, import_compiler_runtime.c)(13), { layout: n, setLayout: i, cellId: o } = e, s = ((_a2 = n.cells.get(o)) == null ? void 0 : _a2.type) ?? "slide", c;
24465
+ t[0] !== o || t[1] !== n || t[2] !== i ? (c = (e2) => {
24466
+ let t2 = n.cells.get(o), a = new Map(n.cells);
24467
+ a.set(o, {
24468
+ ...t2,
24469
+ type: e2
24470
+ }), i({
24471
+ ...n,
24472
+ cells: a
24473
+ });
24474
+ }, t[0] = o, t[1] = n, t[2] = i, t[3] = c) : c = t[3];
24475
+ let d = c, f;
24476
+ t[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = (0, import_jsx_runtime.jsx)("span", {
24477
+ className: "font-semibold text-sm",
24478
+ children: "Slide type"
24479
+ }), t[4] = f) : f = t[4];
24480
+ let h;
24481
+ t[5] === d ? h = t[6] : (h = (e2) => d(e2), t[5] = d, t[6] = h);
24482
+ let _;
24483
+ t[7] === s ? _ = t[8] : (_ = SLIDE_TYPE_OPTIONS.map((e2) => {
24484
+ let { value: t2, label: n2, description: i2, Icon: o2 } = e2, c2 = s === t2;
24485
+ return (0, import_jsx_runtime.jsx)(RadioGroupItem, {
24486
+ value: t2,
24487
+ className: cn("group h-auto w-full text-left rounded-md p-2.5 transition-colors shadow-none! border", "focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2", c2 ? "border-primary bg-primary/5" : "border-border bg-background hover:bg-accent/50 hover:border-foreground/30"),
24488
+ children: (0, import_jsx_runtime.jsxs)("div", {
24489
+ className: "flex items-start gap-2.5",
24490
+ children: [
24491
+ (0, import_jsx_runtime.jsx)("span", {
24492
+ className: cn("mt-0.5 flex h-6 w-6 shrink-0 items-center justify-center rounded", c2 ? "bg-primary/10 text-primary" : "bg-muted text-muted-foreground group-hover:text-foreground"),
24493
+ children: (0, import_jsx_runtime.jsx)(o2, {
24494
+ className: "h-3.5 w-3.5"
24495
+ })
24496
+ }),
24497
+ (0, import_jsx_runtime.jsxs)("div", {
24498
+ children: [
24499
+ (0, import_jsx_runtime.jsx)("p", {
24500
+ className: cn("text-sm font-medium leading-tight", c2 ? "text-primary" : "text-foreground"),
24501
+ children: n2
24502
+ }),
24503
+ (0, import_jsx_runtime.jsx)("p", {
24504
+ className: "mt-0.5 text-xs text-foreground/70",
24505
+ children: i2
24506
+ })
24507
+ ]
24508
+ })
24509
+ ]
24510
+ })
24511
+ }, t2);
24512
+ }), t[7] = s, t[8] = _);
24513
+ let v;
24514
+ return t[9] !== s || t[10] !== h || t[11] !== _ ? (v = (0, import_jsx_runtime.jsxs)("div", {
24515
+ className: "flex flex-col gap-3",
24516
+ children: [
24517
+ f,
24518
+ (0, import_jsx_runtime.jsx)(RadioGroup, {
24519
+ "aria-label": "Slide type",
24520
+ value: s,
24521
+ onValueChange: h,
24522
+ className: "flex flex-col gap-1.5",
24523
+ children: _
24524
+ })
24525
+ ]
24526
+ }), t[9] = s, t[10] = h, t[11] = _, t[12] = v) : v = t[12], v;
24527
+ }, DeckConfigForm = (e) => {
24528
+ var _a2, _b;
24529
+ let t = (0, import_compiler_runtime.c)(18), { layout: n, setLayout: i } = e, a = ((_a2 = n.deck) == null ? void 0 : _a2.transition) ?? "slide", o;
24530
+ t[0] === a ? o = t[1] : (o = (_b = DECK_TRANSITION_OPTIONS.find((e2) => e2.value === a)) == null ? void 0 : _b.description, t[0] = a, t[1] = o);
24531
+ let s = o, c;
24532
+ t[2] !== n || t[3] !== i ? (c = (e2) => {
24533
+ i({
24534
+ ...n,
24535
+ deck: {
24536
+ ...n.deck,
24537
+ transition: e2
24538
+ }
24539
+ });
24540
+ }, t[2] = n, t[3] = i, t[4] = c) : c = t[4];
24541
+ let d = c, f;
24542
+ t[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = (0, import_jsx_runtime.jsx)("label", {
24543
+ htmlFor: "deck-transition",
24544
+ className: "font-semibold text-sm text-foreground",
24545
+ children: "Transition"
24546
+ }), t[5] = f) : f = t[5];
24547
+ let h;
24548
+ t[6] === d ? h = t[7] : (h = (e2) => d(e2), t[6] = d, t[7] = h);
24549
+ let _;
24550
+ t[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = (0, import_jsx_runtime.jsx)(SelectTrigger, {
24551
+ id: "deck-transition",
24552
+ "aria-label": "Slide transition",
24553
+ children: (0, import_jsx_runtime.jsx)(SelectValue, {})
24554
+ }), t[8] = _) : _ = t[8];
24555
+ let v;
24556
+ t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = (0, import_jsx_runtime.jsx)(SelectContent, {
24557
+ children: DECK_TRANSITION_OPTIONS.map(_temp)
24558
+ }), t[9] = v) : v = t[9];
24559
+ let y;
24560
+ t[10] !== a || t[11] !== h ? (y = (0, import_jsx_runtime.jsxs)(Select, {
24561
+ value: a,
24562
+ onValueChange: h,
24563
+ children: [
24564
+ _,
24565
+ v
24566
+ ]
24567
+ }), t[10] = a, t[11] = h, t[12] = y) : y = t[12];
24568
+ let S;
24569
+ t[13] === s ? S = t[14] : (S = s && (0, import_jsx_runtime.jsx)("p", {
24570
+ className: "text-xs text-foreground/70",
24571
+ children: s
24572
+ }), t[13] = s, t[14] = S);
24573
+ let w;
24574
+ return t[15] !== y || t[16] !== S ? (w = (0, import_jsx_runtime.jsx)("div", {
24575
+ className: "flex flex-col gap-3",
24576
+ children: (0, import_jsx_runtime.jsxs)("div", {
24577
+ className: "flex flex-col gap-1.5",
24578
+ children: [
24579
+ f,
24580
+ y,
24581
+ S
24582
+ ]
24583
+ })
24584
+ }), t[15] = y, t[16] = S, t[17] = w) : w = t[17], w;
24585
+ };
24586
+ SlideSidebar = (e) => {
24587
+ let t = (0, import_compiler_runtime.c)(30), { configWidth: n, layout: i, setLayout: o, activeConfigCell: s } = e, [c, d] = (0, import_react.useState)(false), h = c ? n : COLLAPSED_CONFIG_WIDTH, _;
24588
+ t[0] === h ? _ = t[1] : (_ = {
24589
+ width: h
24590
+ }, t[0] = h, t[1] = _);
24591
+ let v = c ? "justify-between px-2" : "justify-center px-0", y;
24592
+ t[2] === v ? y = t[3] : (y = cn("flex items-center h-9 shrink-0 border-b border-border/60", v), t[2] = v, t[3] = y);
24593
+ let S;
24594
+ t[4] === c ? S = t[5] : (S = c && (0, import_jsx_runtime.jsx)("span", {
24595
+ className: "text-xs font-medium uppercase tracking-wide text-muted-foreground pl-1",
24596
+ children: "Configuration"
24597
+ }), t[4] = c, t[5] = S);
24598
+ let w = c ? "Collapse panel" : "Expand panel", E;
24599
+ t[6] === c ? E = t[7] : (E = () => d(!c), t[6] = c, t[7] = E);
24600
+ let O;
24601
+ t[8] === c ? O = t[9] : (O = c ? (0, import_jsx_runtime.jsx)(PanelRightClose, {
24602
+ className: "h-4 w-4"
24603
+ }) : (0, import_jsx_runtime.jsx)(PanelRightOpen, {
24604
+ className: "h-4 w-4"
24605
+ }), t[8] = c, t[9] = O);
24606
+ let A;
24607
+ t[10] !== c || t[11] !== E || t[12] !== O ? (A = (0, import_jsx_runtime.jsx)(Button, {
24608
+ variant: "ghost",
24609
+ size: "icon",
24610
+ className: "h-7 w-7 text-muted-foreground hover:text-foreground",
24611
+ onClick: E,
24612
+ "aria-expanded": c,
24613
+ "aria-controls": "slide-config-panel",
24614
+ children: O
24615
+ }), t[10] = c, t[11] = E, t[12] = O, t[13] = A) : A = t[13];
24616
+ let M;
24617
+ t[14] !== w || t[15] !== A ? (M = (0, import_jsx_runtime.jsx)(Tooltip, {
24618
+ content: w,
24619
+ children: A
24620
+ }), t[14] = w, t[15] = A, t[16] = M) : M = t[16];
24621
+ let I;
24622
+ t[17] !== M || t[18] !== y || t[19] !== S ? (I = (0, import_jsx_runtime.jsxs)("header", {
24623
+ className: y,
24624
+ children: [
24625
+ S,
24626
+ M
24627
+ ]
24628
+ }), t[17] = M, t[18] = y, t[19] = S, t[20] = I) : I = t[20];
24629
+ let z;
24630
+ t[21] !== s || t[22] !== c || t[23] !== i || t[24] !== o ? (z = c && (0, import_jsx_runtime.jsx)("div", {
24631
+ id: "slide-config-panel",
24632
+ className: "flex-1 overflow-y-auto overflow-x-hidden",
24633
+ children: s ? (0, import_jsx_runtime.jsx)(SlidesForm, {
24634
+ layout: i,
24635
+ setLayout: o,
24636
+ cellId: s.id
24637
+ }) : (0, import_jsx_runtime.jsxs)("div", {
24638
+ className: "flex flex-col gap-1.5 p-3 text-xs text-muted-foreground",
24639
+ children: [
24640
+ (0, import_jsx_runtime.jsx)("span", {
24641
+ className: "font-semibold text-sm text-foreground",
24642
+ children: "No slides yet"
24643
+ }),
24644
+ (0, import_jsx_runtime.jsx)("p", {
24645
+ children: "Run a cell that produces output to add it to the deck. Slide settings will appear here once a slide is selected."
24646
+ })
24647
+ ]
24648
+ })
24649
+ }), t[21] = s, t[22] = c, t[23] = i, t[24] = o, t[25] = z) : z = t[25];
24650
+ let U;
24651
+ return t[26] !== I || t[27] !== z || t[28] !== _ ? (U = (0, import_jsx_runtime.jsxs)("aside", {
24652
+ className: "h-full flex flex-col border-l border-border/60 bg-muted/20 transition-[width] duration-200 ease-out overflow-hidden",
24653
+ style: _,
24654
+ "aria-label": "Slide configuration",
24655
+ children: [
24656
+ I,
24657
+ z
24658
+ ]
24659
+ }), t[26] = I, t[27] = z, t[28] = _, t[29] = U) : U = t[29], U;
24660
+ };
24661
+ function _temp(e) {
24662
+ let { value: t, label: n } = e;
24663
+ return (0, import_jsx_runtime.jsx)(SelectItem, {
24664
+ value: t,
24665
+ children: n
24666
+ }, t);
24667
+ }
23961
24668
  });
23962
24669
  export {
23963
- CommandItem as $,
23964
- TableHeader as A,
23965
- usePrevious as B,
23966
- Toggle as C,
23967
- Download as Ct,
23968
- TableBody as D,
23969
- ChevronsDownUp as Dt,
23970
- Table as E,
23971
- ChevronsLeft as Et,
23972
- renderCellValue as F,
23973
- SELECT_COLUMN_ID as G,
23974
- loadTableAndRawData as H,
23975
- ColumnChartContext as I,
23976
- getMimeValues as J,
23977
- TOO_MANY_ROWS as K,
23978
- ColumnChartSpecModel as L,
23979
- NAMELESS_COLUMN_PREFIX as M,
23980
- generateColumns as N,
23981
- TableCell as O,
23982
- ChevronLeft as Ot,
23983
- inferFieldTypes as P,
23984
- CommandInput as Q,
23985
- DelayMount as R,
23986
- slotsController as S,
23987
- Ellipsis as St,
23988
- Provider$1 as T,
23989
- ChevronsRight as Tt,
23990
- loadTableData as U,
23991
- getPageIndexForRow as V,
23992
- INDEX_COLUMN_NAME as W,
23993
- Command as X,
23994
- filtersToFilterGroup as Y,
23995
- CommandEmpty as Z,
23996
- contextAwarePanelOpen as _,
24670
+ toFieldTypes as $,
24671
+ Fill as A,
24672
+ Download as At,
24673
+ inferFieldTypes as B,
24674
+ contextAwarePanelOpen as C,
24675
+ isStaticNotebook as Ct,
24676
+ SlotNames as D,
24677
+ EyeOff as Dt,
24678
+ isCellAwareAtom as E,
24679
+ Funnel as Et,
24680
+ TableHead as F,
24681
+ ChevronLeft as Ft,
24682
+ useIntersectionObserver as G,
24683
+ ColumnChartContext as H,
24684
+ TableHeader as I,
24685
+ ArrowDownWideNarrow as It,
24686
+ loadTableAndRawData as J,
24687
+ usePrevious as K,
24688
+ TableRow as L,
24689
+ Table as M,
24690
+ ChevronsRight as Mt,
24691
+ TableBody as N,
24692
+ ChevronsLeft as Nt,
24693
+ slotsController as O,
24694
+ Expand as Ot,
24695
+ TableCell as P,
24696
+ ChevronsDownUp as Pt,
24697
+ TOO_MANY_ROWS as Q,
24698
+ NAMELESS_COLUMN_PREFIX as R,
24699
+ PANEL_TYPES as S,
24700
+ getStaticVirtualFiles as St,
24701
+ contextAwarePanelType as T,
24702
+ GripHorizontal as Tt,
24703
+ ColumnChartSpecModel as U,
24704
+ renderCellValue as V,
24705
+ DelayMount as W,
24706
+ INDEX_COLUMN_NAME as X,
24707
+ loadTableData as Y,
24708
+ SELECT_COLUMN_ID as Z,
24709
+ Filenames as _,
23997
24710
  __tla,
23998
- isStaticNotebook as _t,
23999
- DataTable as a,
24000
- TabsList as at,
24001
- isCellAwareAtom as b,
24002
- Funnel as bt,
24003
- downloadBlob as c,
24004
- ChartInfoState as ct,
24005
- Filenames as d,
24006
- useOverflowDetection as dt,
24007
- CommandList as et,
24008
- prettifyRowColumnCount as f,
24009
- RenderTextWithLinks as ft,
24010
- PANEL_TYPES as g,
24011
- getStaticVirtualFiles as gt,
24012
- ContextAwarePanelItem as h,
24013
- EmotionCacheProvider as ht,
24014
- OutputRenderer as i,
24015
- TabsContent as it,
24016
- TableRow as j,
24017
- TableHead as k,
24018
- ArrowDownWideNarrow as kt,
24019
- downloadByURL as l,
24020
- ChartLoadingState as lt,
24021
- useInternalStateWithSync as m,
24022
- HtmlOutput as mt,
24023
- JsonOutput as n,
24024
- Maps as nt,
24025
- InstallPackageButton as o,
24026
- TabsTrigger as ot,
24027
- prettifyRowCount as p,
24028
- Kbd as pt,
24029
- toFieldTypes as q,
24030
- OutputArea as r,
24031
- Tabs as rt,
24032
- ADD_PRINTING_CLASS as s,
24033
- ChartErrorState as st,
24034
- Slide as t,
24035
- CommandSeparator as tt,
24036
- downloadHTMLAsImage as u,
24037
- LazyVegaEmbed as ut,
24038
- contextAwarePanelOwner as v,
24039
- TextWrap as vt,
24040
- Fill as w,
24041
- ChevronsUpDown as wt,
24042
- SlotNames as x,
24043
- Expand as xt,
24044
- contextAwarePanelType as y,
24045
- GripHorizontal as yt,
24046
- useIntersectionObserver as z
24711
+ useOverflowDetection as _t,
24712
+ Slide as a,
24713
+ CommandItem as at,
24714
+ useInternalStateWithSync as b,
24715
+ HtmlOutput as bt,
24716
+ JsonOutput as c,
24717
+ Maps as ct,
24718
+ DataTable as d,
24719
+ TabsList as dt,
24720
+ getMimeValues as et,
24721
+ InstallPackageButton as f,
24722
+ TabsTrigger as ft,
24723
+ downloadHTMLAsImage as g,
24724
+ LazyVegaEmbed as gt,
24725
+ downloadByURL as h,
24726
+ ChartLoadingState as ht,
24727
+ SlideSidebar as i,
24728
+ CommandInput as it,
24729
+ Provider$1 as j,
24730
+ ChevronsUpDown as jt,
24731
+ Toggle as k,
24732
+ Ellipsis as kt,
24733
+ OutputArea as l,
24734
+ Tabs as lt,
24735
+ downloadBlob as m,
24736
+ ChartInfoState as mt,
24737
+ DEFAULT_SLIDE_TYPE as n,
24738
+ Command as nt,
24739
+ RadioGroup as o,
24740
+ CommandList as ot,
24741
+ ADD_PRINTING_CLASS as p,
24742
+ ChartErrorState as pt,
24743
+ getPageIndexForRow as q,
24744
+ SLIDE_TYPE_OPTIONS_BY_VALUE as r,
24745
+ CommandEmpty as rt,
24746
+ RadioGroupItem as s,
24747
+ CommandSeparator as st,
24748
+ DEFAULT_DECK_TRANSITION as t,
24749
+ filtersToFilterGroup as tt,
24750
+ OutputRenderer as u,
24751
+ TabsContent as ut,
24752
+ prettifyRowColumnCount as v,
24753
+ RenderTextWithLinks as vt,
24754
+ contextAwarePanelOwner as w,
24755
+ TextWrap as wt,
24756
+ ContextAwarePanelItem as x,
24757
+ EmotionCacheProvider as xt,
24758
+ prettifyRowCount as y,
24759
+ Kbd as yt,
24760
+ generateColumns as z
24047
24761
  };