@marimo-team/islands 0.23.14-dev6 → 0.23.14-dev8

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.
Files changed (33) hide show
  1. package/dist/{ConnectedDataExplorerComponent-Du3_nUzI.js → ConnectedDataExplorerComponent-DXBx_nQg.js} +4 -4
  2. package/dist/{chat-ui-BZxLHwyD.js → chat-ui-DYBcNEdd.js} +81 -81
  3. package/dist/{code-visibility-C90Am97q.js → code-visibility-DKavYkBl.js} +1030 -837
  4. package/dist/{formats-d6MhLuQ9.js → formats-WsOgyW_K.js} +1 -1
  5. package/dist/{glide-data-editor-DkzAInWG.js → glide-data-editor-qpmKyAPn.js} +2 -2
  6. package/dist/{html-to-image-CGp_08St.js → html-to-image-MqcD07Bw.js} +73 -72
  7. package/dist/{input-CbEz_aj_.js → input-BSdZp5Ng.js} +1 -1
  8. package/dist/main.js +254 -254
  9. package/dist/{mermaid-CJW9vIyO.js → mermaid-D-HYBMEV.js} +2 -2
  10. package/dist/{process-output-R6JsYrv3.js → process-output-Dt3icftd.js} +1 -1
  11. package/dist/{reveal-component-C_u9FY4_.js → reveal-component-CuFatyYX.js} +5 -5
  12. package/dist/{spec-Bv-XlYiv.js → spec-CnTgI25l.js} +1 -1
  13. package/dist/{toDate-D-l5s8nn.js → toDate-D1Z7ZXWh.js} +1 -1
  14. package/dist/{useAsyncData-1Dhzjfwf.js → useAsyncData-BMc8itk2.js} +1 -1
  15. package/dist/{useDeepCompareMemoize-CDWT3BDz.js → useDeepCompareMemoize-ZwmDBRDY.js} +1 -1
  16. package/dist/{useLifecycle-AHlswLw-.js → useLifecycle-CxffarYV.js} +1 -1
  17. package/dist/{useTheme-BrYvK-_A.js → useTheme-yGsGEk82.js} +26 -24
  18. package/dist/{vega-component-Pk6lyc_a.js → vega-component-BFJTyykA.js} +5 -5
  19. package/package.json +1 -1
  20. package/src/components/chat/acp/agent-panel.tsx +35 -1
  21. package/src/components/chat/chat-panel.tsx +68 -29
  22. package/src/components/editor/actions/useNotebookActions.tsx +2 -2
  23. package/src/components/editor/chrome/wrapper/__tests__/useOpenAiAssistant.test.ts +36 -0
  24. package/src/components/editor/chrome/wrapper/useAiPanel.ts +3 -1
  25. package/src/components/editor/chrome/wrapper/useOpenAiAssistant.ts +88 -0
  26. package/src/components/editor/errors/__tests__/auto-fix.test.ts +119 -0
  27. package/src/components/editor/errors/auto-fix.tsx +108 -34
  28. package/src/components/editor/errors/fix-mode.ts +1 -1
  29. package/src/components/editor/output/MarimoTracebackOutput.tsx +10 -1
  30. package/src/components/editor/output/__tests__/traceback.test.tsx +14 -6
  31. package/src/core/ai/config.ts +2 -2
  32. package/src/core/ai/state.ts +11 -0
  33. package/src/core/codemirror/utils.ts +15 -0
@@ -6,14 +6,14 @@ import { _ as Logger, c as Objects, g as cn, h as Events, m as useComposedRefs,
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-COam1EG7.js";
9
- import { $t as extractAllTracebackInfo, A as ChevronRightIcon, An as Minus, At as goToCellLine, Bt as DATA_TYPE_ICON, C as AccordionContent, Ct as Checkbox, En as Trash2, Fn as Eye, Ft as adaptForLocalStorage, Hn as esm_default, I as base64ToUint8Array, In as ExternalLink, It as jotaiJsonStorage, M as PinLeftIcon, N as PinRightIcon, Nn as Info, Nt as useChromeActions, O as CheckIcon, Pn as FileText, Qt as elementContainsMarimoCellFile, R as extractBase64FromDataURL, Rt as PluralWord, S as Accordion, T as AccordionTrigger, Tn as Wrench, Un as import_lib, V as renderHTML, Vn as Braces, Vt as getDataTypeColor, X as notebookAtom, Yt as useRequestClient, _n as atomWithStorage, _t as DATA_CELL_ID, bn as Close$1, c as Popover, cn as HTMLCellId, d as PopoverTrigger, dt as viewStateAtom, en as getTracebackInfo, et as useCellActions, ft as outputIsLoading, g as getDatasourceContext, gt as sanitizeHtml, hn as jsonToMarkdown, j as DotFilledIcon, jn as LoaderCircle, kn as NotebookPen, l as PopoverClose, ln as SCRATCH_CELL_ID, lt as kioskModeAtom, m as useExpandedOutput, mn as jsonParseWithSpecialChar, n as Spinner, nt as useCellNames, ot as AnsiUp, q as getCellEditorView, qt as getRequestClient, r as MarkdownRenderer, rn as filenameAtom, sn as CellOutputId, t as toPng, tt as useCellIds, u as PopoverContent, ut as useInstallAllowed, vt as getCellDomProps, w as AccordionItem, yt as displayCellName, z as isDataURLString, zn as CircleX, __tla as __tla_0 } from "./html-to-image-CGp_08St.js";
9
+ import { $t as elementContainsMarimoCellFile, A as ChevronRightIcon, An as NotebookPen, At as goToCellLine, Bn as CircleX, C as AccordionContent, Ct as Checkbox, Dn as Trash2, En as Wrench, Fn as FileText, Hn as Braces, Ht as getDataTypeColor, I as base64ToUint8Array, In as Eye, It as adaptForLocalStorage, Jt as getRequestClient, Ln as ExternalLink, Lt as jotaiJsonStorage, M as PinLeftIcon, Mn as LoaderCircle, N as PinRightIcon, Nt as useChromeActions, O as CheckIcon, Pn as Info, Pt as getFeatureFlag, R as extractBase64FromDataURL, S as Accordion, T as AccordionTrigger, Un as esm_default, V as renderHTML, Vt as DATA_TYPE_ICON, Wn as import_lib, X as notebookAtom, Xt as useRequestClient, _t as DATA_CELL_ID, c as Popover, cn as CellOutputId, d as PopoverTrigger, dt as viewStateAtom, en as extractAllTracebackInfo, et as useCellActions, ft as outputIsLoading, g as getDatasourceContext, gn as jsonToMarkdown, gt as sanitizeHtml, hn as jsonParseWithSpecialChar, in as filenameAtom, j as DotFilledIcon, jn as Minus, l as PopoverClose, ln as HTMLCellId, lt as kioskModeAtom, m as useExpandedOutput, n as Spinner, nt as useCellNames, ot as AnsiUp, q as getCellEditorView, r as MarkdownRenderer, t as toPng, tn as getTracebackInfo, tt as useCellIds, u as PopoverContent, un as SCRATCH_CELL_ID, ut as useInstallAllowed, vn as atomWithStorage, vt as getCellDomProps, w as AccordionItem, xn as Close$1, yt as displayCellName, z as isDataURLString, zt as PluralWord, __tla as __tla_0 } from "./html-to-image-MqcD07Bw.js";
10
10
  import { o as useSize, u as createLucideIcon } from "./dist--2Bqjvs0.js";
11
- import { c as Calendar, i as createReducerAndAtoms, r as Badge } from "./useLifecycle-AHlswLw-.js";
11
+ import { c as Calendar, i as createReducerAndAtoms, r as Badge } from "./useLifecycle-CxffarYV.js";
12
12
  import { a as ListFilter, i as Table$1, n as $fb18d541ea1ad717$export$ad991b66133851cf, o as ChartPie, r as $5a387cc49350e6db$export$722debc0e56fea39, t as $896ba0a80a8f4d36$export$85fd5fdf27bacc79 } from "./useDateFormatter-CMnRuVmN.js";
13
13
  import { t as Check } from "./check-C9OoNtR4.js";
14
14
  import { C as logNever, E as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7, I as X, N as usePrevious$1, O as $b5e257d569688ac6$export$535bd6ca7f90a273, P as useDirection, R as ChevronDown, S as assertNever, T as $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5, _ as menuControlVariants, b as menuSeparatorVariants, f as selectStyles, g as menuControlCheckVariants, h as menuContentCommon, i as SelectContent, l as SelectTrigger, o as SelectItem, p as MENU_ITEM_DISABLED, r as Select, t as Strings, u as SelectValue, v as menuItemVariants, w as $a916eb452884faea$export$b7a616150fdb9f44, x as menuSubTriggerVariants, y as menuLabelVariants } from "./strings-Dq_j3Rxw.js";
15
- import { $ as $e93e671b31057976$export$b8473d3665f3a75a, $t as Item2$2, A as $ee014567cb39d3f0$export$ff05c3ac10437e03, At as $c87311424ea30a05$export$78551043582a6a98, B as $64fa3d84918910a7$export$4d86445c2cf5e3, Bt as $d4ee10de306f2510$export$e58f029f0fbfdb29, C as DropdownMenuTrigger, Ct as $b4b717babfbb907b$export$bebd5a1431fec25d, D as $a049562f99e7db0e$export$f9c6924e160136d1, Dt as $df56164dff5785e2$export$4338b53315abf666, E as $a049562f99e7db0e$export$eb2fcfdbd7ba97d4, Et as $8ae05eaa5c114e9c$export$7f54fc3180508a52, F as $01b77f81d0f07f68$export$75b6ee27786ba447, Ft as $65484d02dcb7eb3e$export$457c3d6518dd4c6f, G as $64fa3d84918910a7$export$ef03459518577ad4, Gt as $bdb11010cef70236$export$b4cc09c592e8fdb8, H as $64fa3d84918910a7$export$c245e6201fed2f75, Ht as $431fbd86ca7dc216$export$b204af158042fbac, I as $01b77f81d0f07f68$export$b04be29aa201d4f5, It as $3ef42575df84b30b$export$9d1611c77c2fe928, J as marked, Jt as Anchor2, K as $64fa3d84918910a7$export$fabf2dc03a41866e, Kt as $bdb11010cef70236$export$f680877a34711e37, L as $f39a9eba43920ace$export$b5d7cc18bb8d2b59, Lt as $d4ee10de306f2510$export$4282f70798064fe0, M as $514c0188e459b4c0$export$9afb8bc826b033ea, Mt as $c87311424ea30a05$export$a11b0059900ceec8, N as $d2b4bc8c273e7be6$export$24d547caef80ccd1, Nt as $c87311424ea30a05$export$fedb369cb70207f1, O as $d3e0e05bdfcf66bd$export$c24727297075ec6a, Ot as $313b98861ee5dd6c$export$d6875122194c7b44, P as $d2b4bc8c273e7be6$export$353f5b6fc5456de1, Pt as $7215afc6de606d6b$export$de79e2c695e052f3, Q as $2baaea4c71418dea$export$294aa081a6c6f55d, Qt as Group, R as $64fa3d84918910a7$export$2881499e37b75b9a, Rt as $d4ee10de306f2510$export$b4f377a2b6254582, S as DropdownMenuSubTrigger, St as $b4b717babfbb907b$export$4c063cf1350e6fed, T as $3985021b0ad6602f$export$f5b8910cec6cf069, Tt as $e9faafb641e167db$export$90fc3a17d93f704c, U as $64fa3d84918910a7$export$c62b8e45d58ddad9, Ut as $431fbd86ca7dc216$export$f21a1ffae260145a, V as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, Vt as $f4e2df6bd15f8569$export$98658e8c59125e6a, W as $64fa3d84918910a7$export$df3a06d6289f983e, Wt as $ff5963eb1fccf552$export$e08e3b67e392101e, Xt as CheckboxItem, Yt as Arrow2, Z as $d2e8511e6f209edf$export$e908e06f4b8e3402, Zt as Content2$1, _ as DropdownMenuPortal, _t as $f6c31cce2adf654f$export$45712eceda6fad21, a as NumberField, an as Root3, at as $319e236875307eab$export$a9b970dcc4ae71a9, b as DropdownMenuSub, bt as $9446cca9a3875146$export$7d15b64cf5a3a4c4, c as prettyEngineeringNumber, cn as SubContent, ct as $6c7bd7858deea686$export$cd11ab140839f11d, dn as Item, dt as $6db58dc88e78b024$export$2f817fcdc4b89ae0, en as ItemIndicator, et as $e5be200c675c3b3a$export$75ee7c75d68f5b0e, f as DropdownMenu, fn as Root$3, ft as $5b160d28a433310d$export$c17fa47878dc55b6, g as DropdownMenuLabel, gn as ChevronRight, gt as $507fabe10e71c6fb$export$630ff653c5ada6a9, h as DropdownMenuItem, hn as Circle, ht as $3ad3f6e1647bc98d$export$80f3e147d781571c, in as RadioItem, it as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, j as $514c0188e459b4c0$export$5f1af8db9871e1d6, jt as $c87311424ea30a05$export$9ac100e40613ea10, k as $ee014567cb39d3f0$export$f551688fc98f2e09, kt as $c87311424ea30a05$export$6446a186d09e379e, l as prettyNumber, ln as SubTrigger, lt as $fca6afa0e843324b$export$87b761675e8eaa10, mn as Search, mt as $9ab94262bd0047c7$export$420e68273165f4ec, nn as Portal, nt as $e5be200c675c3b3a$export$aca958c65c314e6c, on as Separator$1, ot as $f7dceffc5ad7768b$export$4e328f61c538687f, p as DropdownMenuContent, pn as createRovingFocusGroupScope, pt as $6179b936705e76d3$export$ae780daf29e6d456, qt as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, r as Input, rn as RadioGroup$2, rt as $e5be200c675c3b3a$export$dad6ae84456c676a, s as maxFractionalDigits, sn as Sub, tn as Label$1, tt as $e5be200c675c3b3a$export$a763b9476acd3eb, u as prettyScientificNumber, un as createMenuScope, ut as $fca6afa0e843324b$export$f12b703ca79dfbb1, v as DropdownMenuSeparator, vt as _class_private_field_init, w as $3985021b0ad6602f$export$37fb8590cf2c088c, wt as $99facab73266f662$export$5add1d006293d136, x as DropdownMenuSubContent, xt as $458b0a5536c1a7cf$export$40bfa8c7b0832715, yt as $ae1eeba8b9eafd08$export$5165eccb35aaadb5, z as $64fa3d84918910a7$export$29f1550f4b0d4415, zt as $d4ee10de306f2510$export$cd4e5573fbe2b576 } from "./input-CbEz_aj_.js";
16
- import { _ as isWasm, a as millisecondsInMinute, c as asRemoteURL, d as isStaticNotebook, i as millisecondsInHour, n as constructFrom, o as millisecondsInSecond, p as isUrl, r as millisecondsInDay, s as millisecondsInWeek, t as toDate } from "./toDate-D-l5s8nn.js";
15
+ import { $ as $e93e671b31057976$export$b8473d3665f3a75a, $t as Item2$2, A as $ee014567cb39d3f0$export$ff05c3ac10437e03, At as $c87311424ea30a05$export$78551043582a6a98, B as $64fa3d84918910a7$export$4d86445c2cf5e3, Bt as $d4ee10de306f2510$export$e58f029f0fbfdb29, C as DropdownMenuTrigger, Ct as $b4b717babfbb907b$export$bebd5a1431fec25d, D as $a049562f99e7db0e$export$f9c6924e160136d1, Dt as $df56164dff5785e2$export$4338b53315abf666, E as $a049562f99e7db0e$export$eb2fcfdbd7ba97d4, Et as $8ae05eaa5c114e9c$export$7f54fc3180508a52, F as $01b77f81d0f07f68$export$75b6ee27786ba447, Ft as $65484d02dcb7eb3e$export$457c3d6518dd4c6f, G as $64fa3d84918910a7$export$ef03459518577ad4, Gt as $bdb11010cef70236$export$b4cc09c592e8fdb8, H as $64fa3d84918910a7$export$c245e6201fed2f75, Ht as $431fbd86ca7dc216$export$b204af158042fbac, I as $01b77f81d0f07f68$export$b04be29aa201d4f5, It as $3ef42575df84b30b$export$9d1611c77c2fe928, J as marked, Jt as Anchor2, K as $64fa3d84918910a7$export$fabf2dc03a41866e, Kt as $bdb11010cef70236$export$f680877a34711e37, L as $f39a9eba43920ace$export$b5d7cc18bb8d2b59, Lt as $d4ee10de306f2510$export$4282f70798064fe0, M as $514c0188e459b4c0$export$9afb8bc826b033ea, Mt as $c87311424ea30a05$export$a11b0059900ceec8, N as $d2b4bc8c273e7be6$export$24d547caef80ccd1, Nt as $c87311424ea30a05$export$fedb369cb70207f1, O as $d3e0e05bdfcf66bd$export$c24727297075ec6a, Ot as $313b98861ee5dd6c$export$d6875122194c7b44, P as $d2b4bc8c273e7be6$export$353f5b6fc5456de1, Pt as $7215afc6de606d6b$export$de79e2c695e052f3, Q as $2baaea4c71418dea$export$294aa081a6c6f55d, Qt as Group, R as $64fa3d84918910a7$export$2881499e37b75b9a, Rt as $d4ee10de306f2510$export$b4f377a2b6254582, S as DropdownMenuSubTrigger, St as $b4b717babfbb907b$export$4c063cf1350e6fed, T as $3985021b0ad6602f$export$f5b8910cec6cf069, Tt as $e9faafb641e167db$export$90fc3a17d93f704c, U as $64fa3d84918910a7$export$c62b8e45d58ddad9, Ut as $431fbd86ca7dc216$export$f21a1ffae260145a, V as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, Vt as $f4e2df6bd15f8569$export$98658e8c59125e6a, W as $64fa3d84918910a7$export$df3a06d6289f983e, Wt as $ff5963eb1fccf552$export$e08e3b67e392101e, Xt as CheckboxItem, Yt as Arrow2, Z as $d2e8511e6f209edf$export$e908e06f4b8e3402, Zt as Content2$1, _ as DropdownMenuPortal, _t as $f6c31cce2adf654f$export$45712eceda6fad21, a as NumberField, an as Root3, at as $319e236875307eab$export$a9b970dcc4ae71a9, b as DropdownMenuSub, bt as $9446cca9a3875146$export$7d15b64cf5a3a4c4, c as prettyEngineeringNumber, cn as SubContent, ct as $6c7bd7858deea686$export$cd11ab140839f11d, dn as Item, dt as $6db58dc88e78b024$export$2f817fcdc4b89ae0, en as ItemIndicator, et as $e5be200c675c3b3a$export$75ee7c75d68f5b0e, f as DropdownMenu, fn as Root$3, ft as $5b160d28a433310d$export$c17fa47878dc55b6, g as DropdownMenuLabel, gn as ChevronRight, gt as $507fabe10e71c6fb$export$630ff653c5ada6a9, h as DropdownMenuItem, hn as Circle, ht as $3ad3f6e1647bc98d$export$80f3e147d781571c, in as RadioItem, it as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, j as $514c0188e459b4c0$export$5f1af8db9871e1d6, jt as $c87311424ea30a05$export$9ac100e40613ea10, k as $ee014567cb39d3f0$export$f551688fc98f2e09, kt as $c87311424ea30a05$export$6446a186d09e379e, l as prettyNumber, ln as SubTrigger, lt as $fca6afa0e843324b$export$87b761675e8eaa10, mn as Search, mt as $9ab94262bd0047c7$export$420e68273165f4ec, nn as Portal, nt as $e5be200c675c3b3a$export$aca958c65c314e6c, on as Separator$1, ot as $f7dceffc5ad7768b$export$4e328f61c538687f, p as DropdownMenuContent, pn as createRovingFocusGroupScope, pt as $6179b936705e76d3$export$ae780daf29e6d456, qt as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, r as Input, rn as RadioGroup$2, rt as $e5be200c675c3b3a$export$dad6ae84456c676a, s as maxFractionalDigits, sn as Sub, tn as Label$1, tt as $e5be200c675c3b3a$export$a763b9476acd3eb, u as prettyScientificNumber, un as createMenuScope, ut as $fca6afa0e843324b$export$f12b703ca79dfbb1, v as DropdownMenuSeparator, vt as _class_private_field_init, w as $3985021b0ad6602f$export$37fb8590cf2c088c, wt as $99facab73266f662$export$5add1d006293d136, x as DropdownMenuSubContent, xt as $458b0a5536c1a7cf$export$40bfa8c7b0832715, yt as $ae1eeba8b9eafd08$export$5165eccb35aaadb5, z as $64fa3d84918910a7$export$29f1550f4b0d4415, zt as $d4ee10de306f2510$export$cd4e5573fbe2b576 } from "./input-BSdZp5Ng.js";
16
+ import { _ as isWasm, a as millisecondsInMinute, c as asRemoteURL, d as isStaticNotebook, i as millisecondsInHour, n as constructFrom, o as millisecondsInSecond, p as isUrl, r as millisecondsInDay, s as millisecondsInWeek, t as toDate } from "./toDate-D1Z7ZXWh.js";
17
17
  import { r as Plus, t as ErrorBoundary } from "./ErrorBoundary-DE6tzZf-.js";
18
18
  import { n as clsx_default } from "./clsx-CIWA5tNO.js";
19
19
  import { t as require_react_dom } from "./react-dom-BTJzcVJ9.js";
@@ -23,18 +23,18 @@ import { a as prettyError, c as Portal$1, l as Root$4, n as ErrorBanner, o as Co
23
23
  import { a as TooltipRoot, n as TooltipContent, o as TooltipTrigger, r as TooltipPortal, t as Tooltip } from "./tooltip-Czds6Qr8.js";
24
24
  import { f as CopyClipboardIcon, t as _extends } from "./extends-9MVIxxRo.js";
25
25
  import { r as KnownQueryParams } from "./constants-T20xxyNf.js";
26
- import { C as getBuildingBlocks, S as buildStore, T as useEvent_default, _ as useAtomValue, b as atom, f as useJotaiEffect, g as useAtom, h as Provider, n as useTheme, r as aiFeaturesEnabledAtom, s as resolvedMarimoConfigAtom, v as useSetAtom, w as dequal, y as useStore } from "./useTheme-BrYvK-_A.js";
26
+ import { D as useEvent_default, E as dequal, S as atom, T as getBuildingBlocks, _ as Provider, b as useSetAtom, c as resolvedMarimoConfigAtom, i as aiModelConfiguredAtom, m as useJotaiEffect, n as useTheme, r as aiFeaturesEnabledAtom, u as userConfigAtom, v as useAtom, w as buildStore, x as useStore, y as useAtomValue } from "./useTheme-yGsGEk82.js";
27
27
  import { $ as EditorView } from "./dist-U4F-tbMs.js";
28
28
  import { t as invariant } from "./invariant-wRzNXIsJ.js";
29
29
  import { c as uniqueBy, t as Arrays } from "./arrays-sEtDRoG4.js";
30
30
  import { n as once, t as memoizeLastValue } from "./once-DPuqGUeo.js";
31
31
  import { a as parser } from "./dist-C_Y3oV3C.js";
32
- import { a as isValid, i as AlertTitle, n as Alert, t as arrow } from "./formats-d6MhLuQ9.js";
32
+ import { a as isValid, i as AlertTitle, n as Alert, t as arrow } from "./formats-WsOgyW_K.js";
33
33
  import { n as memoize$1, t as isPropValid } from "./emotion-is-prop-valid.esm-DzSb5hsH.js";
34
34
  import { n as formats } from "./vega-loader.browser-CZ-J8Py3.js";
35
35
  import { a as getContainerWidth, n as vegaLoadData, r as createBatchedLoader, s as tooltipHandler, t as parseCsvData } from "./loader-Boph2xIS.js";
36
36
  import { t as useIframeCapabilities } from "./useIframeCapabilities-DWIYvDh7.js";
37
- import { t as useAsyncData } from "./useAsyncData-1Dhzjfwf.js";
37
+ import { t as useAsyncData } from "./useAsyncData-BMc8itk2.js";
38
38
  let contextAwarePanelOpen, EmotionCacheProvider, prettifyRowCount, SELECT_COLUMN_ID, DatePicker, dateToLocalISOTime, downloadSizeLimitAtom, DelayMount, ErrorState, loadTableAndRawData, EmptyState, getPageIndexForRow, ContextMenuSeparator, isRecord, CommandEmpty, ChartErrorState, Combobox, TabsContent, ContextMenuTrigger, isNullishFilter, CommandList, LazyVegaEmbed, CommandInput, ChartInfoState, useInternalStateWithSync, Maps, ContextMenu, toFieldTypes, ContextMenuContent, getMimeValues, LoadingState, loadTableData, ContextMenuItem, hasFunctionProperty, PANEL_TYPES, HtmlOutput, useSelectList, dateToLocalISODate, Filenames, ColumnChartSpecModel, ColumnPreviewContainer, usePrevious, ComboboxItem, TabsList, DateRangePicker, Tabs, Command, TabsTrigger, smartMatch, RenderTextWithLinks, CommandSeparator, useOverflowDetection, ContextAwarePanelItem, Kbd, ADD_PRINTING_CLASS, NAMELESS_COLUMN_PREFIX, DEFAULT_SLIDE_TYPE, EyeOff, Toggle, downloadHTMLAsImage, renderCellValue, Slide, Download, PanelResizeHandle, RadioGroupItem, ChevronsRight, Table, $fae977aafc393c5c$export$588937bcd60ade55, contextAwarePanelOwner, JsonOutput, ChevronsLeft, TableBody, InstallPackageButton, TableRow, DataTable, ArrowDownWideNarrow, TableHeader, DEFAULT_DECK_TRANSITION, Funnel, slotsController, getColumnCountForDisplay, TOO_MANY_ROWS, prettifyRowColumnCount, INDEX_COLUMN_NAME, Switch, Code, Fill, OutputRenderer, ChevronLeft, TableHead, marimoVersionAtom, TextWrap, isCellAwareAtom, SLIDE_TYPE_OPTIONS_BY_VALUE, Expand, Panel, OutputArea, ChevronsDownUp, TableCell, CommandItem, ChartLoadingState, showCodeInRunModeAtom, GripHorizontal, SlotNames, SlideSidebar, Ellipsis, PanelGroup, useNotebookCodeAvailable, $fae977aafc393c5c$export$6b862160d295c8e, contextAwarePanelType, RadioGroup, ChevronsUpDown, Provider$1, downloadBlob, generateColumns, ColumnName, useIntersectionObserver, Progress, ColumnChartContext, downloadByURL, inferFieldTypes, CompactChipRow, dateToLocalISODateTime;
39
39
  let __tla = Promise.all([
40
40
  (() => {
@@ -45,7 +45,7 @@ let __tla = Promise.all([
45
45
  })()
46
46
  ]).then(async () => {
47
47
  var _a;
48
- let ArrowUpNarrowWide, BrickWall, BugPlay, ChartSpline, Columns3, Cookie, FunnelX, Keyboard, LayoutTemplate, MessageCircle, Package, PanelRightClose, PanelRightOpen, PanelRight, PinOff, Rows2, Sparkles, SquareArrowOutUpRight, SquareStack, Terminal, TextAlignJustify, 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
+ let ArrowUpNarrowWide, BrickWall, BugPlay, ChartSpline, Columns3, Cookie, FunnelX, HatGlasses, Keyboard, LayoutTemplate, MessageCircle, Package, PanelRightClose, PanelRightOpen, PanelRight, PinOff, Rows2, Sparkles, SquareArrowOutUpRight, SquareStack, Terminal, TextAlignJustify, require_use_sync_external_store_shim_production, require_shim, import_react, import_jsx_runtime, CONTEXT_MENU_NAME, createContextMenuContext, createContextMenuScope, useMenuScope, ContextMenuProvider, useContextMenuContext, ContextMenu$1;
49
49
  ArrowDownWideNarrow = createLucideIcon("arrow-down-wide-narrow", [
50
50
  [
51
51
  "path",
@@ -651,6 +651,47 @@ let __tla = Promise.all([
651
651
  }
652
652
  ]
653
653
  ]);
654
+ HatGlasses = createLucideIcon("hat-glasses", [
655
+ [
656
+ "path",
657
+ {
658
+ d: "M14 18a2 2 0 0 0-4 0",
659
+ key: "1v8fkw"
660
+ }
661
+ ],
662
+ [
663
+ "path",
664
+ {
665
+ d: "m19 11-2.11-6.657a2 2 0 0 0-2.752-1.148l-1.276.61A2 2 0 0 1 12 4H8.5a2 2 0 0 0-1.925 1.456L5 11",
666
+ key: "1fkr7p"
667
+ }
668
+ ],
669
+ [
670
+ "path",
671
+ {
672
+ d: "M2 11h20",
673
+ key: "3eubbj"
674
+ }
675
+ ],
676
+ [
677
+ "circle",
678
+ {
679
+ cx: "17",
680
+ cy: "18",
681
+ r: "3",
682
+ key: "82mm0e"
683
+ }
684
+ ],
685
+ [
686
+ "circle",
687
+ {
688
+ cx: "7",
689
+ cy: "18",
690
+ r: "3",
691
+ key: "lvkj7j"
692
+ }
693
+ ]
694
+ ]);
654
695
  Keyboard = createLucideIcon("keyboard", [
655
696
  [
656
697
  "path",
@@ -2020,21 +2061,21 @@ Defaulting to \`null\`.`;
2020
2061
  function $2f04cbc44ee30ce0$export$53a0910f038337bd(e, t, n = {}) {
2021
2062
  let { block: i = "nearest", inline: a = "nearest" } = n;
2022
2063
  if (e === t) return;
2023
- let o = e.scrollTop, s = e.scrollLeft, c = t.getBoundingClientRect(), d = e.getBoundingClientRect(), f = window.getComputedStyle(t), h = window.getComputedStyle(e), _ = document.scrollingElement || document.documentElement, v = e === _ ? 0 : d.top, y = e === _ ? e.clientHeight : d.bottom, S = e === _ ? 0 : d.left, w = e === _ ? e.clientWidth : d.right, E = parseInt(f.scrollMarginTop, 10) || 0, O = parseInt(f.scrollMarginBottom, 10) || 0, A = parseInt(f.scrollMarginLeft, 10) || 0, M = parseInt(f.scrollMarginRight, 10) || 0, I = parseInt(h.scrollPaddingTop, 10) || 0, z = parseInt(h.scrollPaddingBottom, 10) || 0, U = parseInt(h.scrollPaddingLeft, 10) || 0, K = parseInt(h.scrollPaddingRight, 10) || 0, q = parseInt(h.borderTopWidth, 10) || 0, J = parseInt(h.borderBottomWidth, 10) || 0, Q = parseInt(h.borderLeftWidth, 10) || 0, $ = parseInt(h.borderRightWidth, 10) || 0, Fq = c.top - E, Iq = c.bottom + O, Lq = c.left - A, Rq = c.right + M, zq = e === _ ? 0 : Q + $, Bq = e === _ ? 0 : q + J, Vq = e.offsetWidth - e.clientWidth - zq, Hq = e.offsetHeight - e.clientHeight - Bq, Uq = v + q + I, Wq = y - J - z - Hq, Gq = S + Q + U, Kq = w - $ - K;
2024
- h.direction === "rtl" && !$c87311424ea30a05$export$fedb369cb70207f1() ? Gq += Vq : Kq -= Vq;
2025
- let qq = Fq < Uq || Iq > Wq, Jq = Lq < Gq || Rq > Kq;
2026
- if (qq && i === "start") o += Fq - Uq;
2027
- else if (qq && i === "center") o += (Fq + Iq) / 2 - (Uq + Wq) / 2;
2028
- else if (qq && i === "end") o += Iq - Wq;
2029
- else if (qq && i === "nearest") {
2030
- let e2 = Fq - Uq, t2 = Iq - Wq;
2064
+ let o = e.scrollTop, s = e.scrollLeft, c = t.getBoundingClientRect(), d = e.getBoundingClientRect(), f = window.getComputedStyle(t), h = window.getComputedStyle(e), _ = document.scrollingElement || document.documentElement, v = e === _ ? 0 : d.top, y = e === _ ? e.clientHeight : d.bottom, S = e === _ ? 0 : d.left, w = e === _ ? e.clientWidth : d.right, E = parseInt(f.scrollMarginTop, 10) || 0, O = parseInt(f.scrollMarginBottom, 10) || 0, A = parseInt(f.scrollMarginLeft, 10) || 0, M = parseInt(f.scrollMarginRight, 10) || 0, I = parseInt(h.scrollPaddingTop, 10) || 0, z = parseInt(h.scrollPaddingBottom, 10) || 0, U = parseInt(h.scrollPaddingLeft, 10) || 0, K = parseInt(h.scrollPaddingRight, 10) || 0, q = parseInt(h.borderTopWidth, 10) || 0, J = parseInt(h.borderBottomWidth, 10) || 0, Q = parseInt(h.borderLeftWidth, 10) || 0, $ = parseInt(h.borderRightWidth, 10) || 0, Qq = c.top - E, $q = c.bottom + O, eJ = c.left - A, tJ = c.right + M, nJ = e === _ ? 0 : Q + $, rJ = e === _ ? 0 : q + J, iJ = e.offsetWidth - e.clientWidth - nJ, aJ = e.offsetHeight - e.clientHeight - rJ, oJ = v + q + I, sJ = y - J - z - aJ, cJ = S + Q + U, lJ = w - $ - K;
2065
+ h.direction === "rtl" && !$c87311424ea30a05$export$fedb369cb70207f1() ? cJ += iJ : lJ -= iJ;
2066
+ let uJ = Qq < oJ || $q > sJ, dJ = eJ < cJ || tJ > lJ;
2067
+ if (uJ && i === "start") o += Qq - oJ;
2068
+ else if (uJ && i === "center") o += (Qq + $q) / 2 - (oJ + sJ) / 2;
2069
+ else if (uJ && i === "end") o += $q - sJ;
2070
+ else if (uJ && i === "nearest") {
2071
+ let e2 = Qq - oJ, t2 = $q - sJ;
2031
2072
  o += Math.abs(e2) <= Math.abs(t2) ? e2 : t2;
2032
2073
  }
2033
- if (Jq && a === "start") s += Lq - Gq;
2034
- else if (Jq && a === "center") s += (Lq + Rq) / 2 - (Gq + Kq) / 2;
2035
- else if (Jq && a === "end") s += Rq - Kq;
2036
- else if (Jq && a === "nearest") {
2037
- let e2 = Lq - Gq, t2 = Rq - Kq;
2074
+ if (dJ && a === "start") s += eJ - cJ;
2075
+ else if (dJ && a === "center") s += (eJ + tJ) / 2 - (cJ + lJ) / 2;
2076
+ else if (dJ && a === "end") s += tJ - lJ;
2077
+ else if (dJ && a === "nearest") {
2078
+ let e2 = eJ - cJ, t2 = tJ - lJ;
2038
2079
  s += Math.abs(e2) <= Math.abs(t2) ? e2 : t2;
2039
2080
  }
2040
2081
  e.scrollTo({
@@ -5144,23 +5185,23 @@ Defaulting to \`null\`.`;
5144
5185
  }
5145
5186
  let $ = "bottom";
5146
5187
  A.axis === "top" ? A.placement === "top" ? $ = "top" : A.placement === "bottom" && ($ = "bottom") : A.crossAxis === "top" && (A.crossPlacement === "top" ? $ = "bottom" : A.crossPlacement === "bottom" && ($ = "top"));
5147
- let Fq = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f);
5148
- q[I] += Fq;
5149
- let Iq = $edcf132a9284368a$var$getMaxHeight(q, c, f, v, a, o, n.height, $, d, E, O);
5150
- y && y < Iq && (Iq = y), n.height = Math.min(n.height, Iq), q = $edcf132a9284368a$var$computePosition(t, c, n, A, J, _, f, v, S, w, d), Fq = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f), q[I] += Fq;
5151
- let Lq = {}, Rq = t[I] - q[I] - a[$edcf132a9284368a$var$AXIS[I]], zq = Rq + 0.5 * t[z], Bq = S / 2 + w, Vq = $edcf132a9284368a$var$AXIS[I] === "left" ? (a.left ?? 0) + (a.right ?? 0) : (a.top ?? 0) + (a.bottom ?? 0), Hq = n[z] - Vq - S / 2 - w;
5152
- Lq[I] = $9446cca9a3875146$export$7d15b64cf5a3a4c4($9446cca9a3875146$export$7d15b64cf5a3a4c4(zq, t[I] + S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]]), t[I] + t[z] - S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]])), Bq, Hq), { placement: U, crossPlacement: K } = A, S ? Rq = Lq[I] : K === "right" ? Rq += t[z] : K === "center" && (Rq += t[z] / 2);
5153
- let Uq = U === "left" || U === "top" ? n[M] : 0, Wq = {
5154
- x: U === "top" || U === "bottom" ? Rq : Uq,
5155
- y: U === "left" || U === "right" ? Rq : Uq
5188
+ let Qq = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f);
5189
+ q[I] += Qq;
5190
+ let $q = $edcf132a9284368a$var$getMaxHeight(q, c, f, v, a, o, n.height, $, d, E, O);
5191
+ y && y < $q && ($q = y), n.height = Math.min(n.height, $q), q = $edcf132a9284368a$var$computePosition(t, c, n, A, J, _, f, v, S, w, d), Qq = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f), q[I] += Qq;
5192
+ let eJ = {}, tJ = t[I] - q[I] - a[$edcf132a9284368a$var$AXIS[I]], nJ = tJ + 0.5 * t[z], rJ = S / 2 + w, iJ = $edcf132a9284368a$var$AXIS[I] === "left" ? (a.left ?? 0) + (a.right ?? 0) : (a.top ?? 0) + (a.bottom ?? 0), aJ = n[z] - iJ - S / 2 - w;
5193
+ eJ[I] = $9446cca9a3875146$export$7d15b64cf5a3a4c4($9446cca9a3875146$export$7d15b64cf5a3a4c4(nJ, t[I] + S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]]), t[I] + t[z] - S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]])), rJ, aJ), { placement: U, crossPlacement: K } = A, S ? tJ = eJ[I] : K === "right" ? tJ += t[z] : K === "center" && (tJ += t[z] / 2);
5194
+ let oJ = U === "left" || U === "top" ? n[M] : 0, sJ = {
5195
+ x: U === "top" || U === "bottom" ? tJ : oJ,
5196
+ y: U === "left" || U === "right" ? tJ : oJ
5156
5197
  };
5157
5198
  return {
5158
5199
  position: q,
5159
- maxHeight: Iq,
5160
- arrowOffsetLeft: Lq.left,
5161
- arrowOffsetTop: Lq.top,
5200
+ maxHeight: $q,
5201
+ arrowOffsetLeft: eJ.left,
5202
+ arrowOffsetTop: eJ.top,
5162
5203
  placement: U,
5163
- triggerAnchorPoint: Wq
5204
+ triggerAnchorPoint: sJ
5164
5205
  };
5165
5206
  }
5166
5207
  function $edcf132a9284368a$export$b3ceb0cbf1056d98(e) {
@@ -7015,7 +7056,7 @@ Defaulting to \`null\`.`;
7015
7056
  n,
7016
7057
  h
7017
7058
  ]);
7018
- let Fq = $c87311424ea30a05$export$fedb369cb70207f1() || e.type === "timeZoneName" ? {
7059
+ let Qq = $c87311424ea30a05$export$fedb369cb70207f1() || e.type === "timeZoneName" ? {
7019
7060
  role: "textbox",
7020
7061
  "aria-valuemax": null,
7021
7062
  "aria-valuemin": null,
@@ -7025,8 +7066,8 @@ Defaulting to \`null\`.`;
7025
7066
  e !== (0, import_react.useMemo)(() => t.segments.find((e2) => e2.isEditable), [
7026
7067
  t.segments
7027
7068
  ]) && !t.isInvalid && (f = void 0);
7028
- let Iq = $bdb11010cef70236$export$f680877a34711e37(), Lq = !t.isDisabled && !t.isReadOnly && e.isEditable, Rq = e.type === "literal" ? "" : s.of(e.type), zq = $313b98861ee5dd6c$export$d6875122194c7b44({
7029
- "aria-label": `${Rq}${c ? `, ${c}` : ""}${d ? ", " : ""}`,
7069
+ let $q = $bdb11010cef70236$export$f680877a34711e37(), eJ = !t.isDisabled && !t.isReadOnly && e.isEditable, tJ = e.type === "literal" ? "" : s.of(e.type), nJ = $313b98861ee5dd6c$export$d6875122194c7b44({
7070
+ "aria-label": `${tJ}${c ? `, ${c}` : ""}${d ? ", " : ""}`,
7030
7071
  "aria-labelledby": d
7031
7072
  });
7032
7073
  if (e.type === "literal") return {
@@ -7034,32 +7075,32 @@ Defaulting to \`null\`.`;
7034
7075
  "aria-hidden": true
7035
7076
  }
7036
7077
  };
7037
- let Bq = {
7078
+ let rJ = {
7038
7079
  caretColor: "transparent"
7039
7080
  };
7040
7081
  if (o === "rtl") {
7041
- Bq.unicodeBidi = "embed";
7082
+ rJ.unicodeBidi = "embed";
7042
7083
  let t2 = v[e.type];
7043
- (t2 === "numeric" || t2 === "2-digit") && (Bq.direction = "ltr");
7084
+ (t2 === "numeric" || t2 === "2-digit") && (rJ.direction = "ltr");
7044
7085
  }
7045
7086
  return {
7046
- segmentProps: $3ef42575df84b30b$export$9d1611c77c2fe928(w, zq, {
7047
- id: Iq,
7048
- ...Fq,
7087
+ segmentProps: $3ef42575df84b30b$export$9d1611c77c2fe928(w, nJ, {
7088
+ id: $q,
7089
+ ...Qq,
7049
7090
  "aria-invalid": t.isInvalid ? "true" : void 0,
7050
7091
  "aria-describedby": f,
7051
7092
  "aria-readonly": t.isReadOnly || !e.isEditable ? "true" : void 0,
7052
7093
  "data-placeholder": e.isPlaceholder || void 0,
7053
- contentEditable: Lq,
7054
- suppressContentEditableWarning: Lq,
7055
- spellCheck: Lq ? "false" : void 0,
7056
- autoCorrect: Lq ? "off" : void 0,
7057
- enterKeyHint: Lq ? "next" : void 0,
7058
- inputMode: t.isDisabled || e.type === "dayPeriod" || e.type === "era" || !Lq ? void 0 : "numeric",
7094
+ contentEditable: eJ,
7095
+ suppressContentEditableWarning: eJ,
7096
+ spellCheck: eJ ? "false" : void 0,
7097
+ autoCorrect: eJ ? "off" : void 0,
7098
+ enterKeyHint: eJ ? "next" : void 0,
7099
+ inputMode: t.isDisabled || e.type === "dayPeriod" || e.type === "era" || !eJ ? void 0 : "numeric",
7059
7100
  tabIndex: t.isDisabled ? void 0 : 0,
7060
7101
  onKeyDown: A,
7061
7102
  onFocus: Q,
7062
- style: Bq,
7103
+ style: rJ,
7063
7104
  onPointerDown(e2) {
7064
7105
  e2.stopPropagation();
7065
7106
  },
@@ -10302,12 +10343,12 @@ Defaulting to \`null\`.`;
10302
10343
  e2 = $11d87f3f76e88657$export$b4a036af3fc0b032(e2, (y == null ? void 0 : y.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec()), y && "hour" in y ? S(y.set(e2)) : S(e2);
10303
10344
  }
10304
10345
  }
10305
- let Fq = (0, import_react.useMemo)(() => w ? f && f(w) ? true : $f62d864046160412$export$eac50920cf2fd59a(w, s, c) : false, [
10346
+ let Qq = (0, import_react.useMemo)(() => w ? f && f(w) ? true : $f62d864046160412$export$eac50920cf2fd59a(w, s, c) : false, [
10306
10347
  w,
10307
10348
  f,
10308
10349
  s,
10309
10350
  c
10310
- ]), Iq = e.isInvalid || e.validationState === "invalid" || Fq, Lq = Iq ? "invalid" : null, Rq = (0, import_react.useMemo)(() => h === "visible" ? o : $131cf43a05231e1e$var$unitDuration(o), [
10351
+ ]), $q = e.isInvalid || e.validationState === "invalid" || Qq, eJ = $q ? "invalid" : null, tJ = (0, import_react.useMemo)(() => h === "visible" ? o : $131cf43a05231e1e$var$unitDuration(o), [
10311
10352
  h,
10312
10353
  o
10313
10354
  ]);
@@ -10324,8 +10365,8 @@ Defaulting to \`null\`.`;
10324
10365
  maxValue: c,
10325
10366
  focusedDate: O,
10326
10367
  timeZone: E,
10327
- validationState: Lq,
10328
- isValueInvalid: Iq,
10368
+ validationState: eJ,
10369
+ isValueInvalid: $q,
10329
10370
  setFocusedDate(e2) {
10330
10371
  Q(e2);
10331
10372
  },
@@ -10350,12 +10391,12 @@ Defaulting to \`null\`.`;
10350
10391
  }));
10351
10392
  },
10352
10393
  focusNextPage() {
10353
- let e2 = M.add(Rq);
10354
- A($f62d864046160412$export$4f5203c0d889109e(O.add(Rq), s, c)), I($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(O, e2, Rq, i, s, c), Rq, i));
10394
+ let e2 = M.add(tJ);
10395
+ A($f62d864046160412$export$4f5203c0d889109e(O.add(tJ), s, c)), I($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(O, e2, tJ, i, s, c), tJ, i));
10355
10396
  },
10356
10397
  focusPreviousPage() {
10357
- let e2 = M.subtract(Rq);
10358
- A($f62d864046160412$export$4f5203c0d889109e(O.subtract(Rq), s, c)), I($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(O, e2, Rq, i, s, c), Rq, i));
10398
+ let e2 = M.subtract(tJ);
10399
+ A($f62d864046160412$export$4f5203c0d889109e(O.subtract(tJ), s, c)), I($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(O, e2, tJ, i, s, c), tJ, i));
10359
10400
  },
10360
10401
  focusSectionStart() {
10361
10402
  o.days ? Q(M) : o.weeks ? Q($14e0f24ef4ac5c92$export$42c81a444fbfb5d4(O, i)) : (o.months || o.years) && Q($14e0f24ef4ac5c92$export$a5a3b454ada2268e(O));
@@ -10492,13 +10533,13 @@ Defaulting to \`null\`.`;
10492
10533
  end: $9a36b6ba2fb1a7c5$var$convertValue(e2.end, h == null ? void 0 : h.end)
10493
10534
  }), q(null);
10494
10535
  }
10495
- }, [$, Fq] = (0, import_react.useState)(false), { isDateUnavailable: Iq } = e, Lq = (0, import_react.useMemo)(() => !h || v ? false : Iq && (Iq(h.start) || Iq(h.end)) ? true : $f62d864046160412$export$eac50920cf2fd59a(h.start, c, d) || $f62d864046160412$export$eac50920cf2fd59a(h.end, c, d), [
10496
- Iq,
10536
+ }, [$, Qq] = (0, import_react.useState)(false), { isDateUnavailable: $q } = e, eJ = (0, import_react.useMemo)(() => !h || v ? false : $q && ($q(h.start) || $q(h.end)) ? true : $f62d864046160412$export$eac50920cf2fd59a(h.start, c, d) || $f62d864046160412$export$eac50920cf2fd59a(h.end, c, d), [
10537
+ $q,
10497
10538
  h,
10498
10539
  v,
10499
10540
  c,
10500
10541
  d
10501
- ]), Rq = e.isInvalid || e.validationState === "invalid" || Lq, zq = Rq ? "invalid" : null;
10542
+ ]), tJ = e.isInvalid || e.validationState === "invalid" || eJ, nJ = tJ ? "invalid" : null;
10502
10543
  return {
10503
10544
  ...I,
10504
10545
  value: h,
@@ -10506,8 +10547,8 @@ Defaulting to \`null\`.`;
10506
10547
  anchorDate: v,
10507
10548
  setAnchorDate: q,
10508
10549
  highlightedRange: J,
10509
- validationState: zq,
10510
- isValueInvalid: Rq,
10550
+ validationState: nJ,
10551
+ isValueInvalid: tJ,
10511
10552
  selectFocusedDate() {
10512
10553
  Q(I.focusedDate);
10513
10554
  },
@@ -10523,7 +10564,7 @@ Defaulting to \`null\`.`;
10523
10564
  return I.isInvalid(e2) || $f62d864046160412$export$eac50920cf2fd59a(e2, (_a2 = w.current) == null ? void 0 : _a2.start, (_b = w.current) == null ? void 0 : _b.end);
10524
10565
  },
10525
10566
  isDragging: $,
10526
- setDragging: Fq
10567
+ setDragging: Qq
10527
10568
  };
10528
10569
  }
10529
10570
  function $9a36b6ba2fb1a7c5$var$makeRange(e, t) {
@@ -11710,7 +11751,7 @@ Defaulting to \`null\`.`;
11710
11751
  _,
11711
11752
  S,
11712
11753
  v
11713
- ]), Fq = (0, import_react.useMemo)(() => {
11754
+ ]), Qq = (0, import_react.useMemo)(() => {
11714
11755
  let t2 = w === "h11" || w === "h12", n2 = [
11715
11756
  "era",
11716
11757
  "year",
@@ -11728,15 +11769,15 @@ Defaulting to \`null\`.`;
11728
11769
  e.maxGranularity,
11729
11770
  _,
11730
11771
  w
11731
- ]), [Iq, Lq] = (0, import_react.useState)(M), [Rq, zq] = (0, import_react.useState)(S), [Bq, Vq] = (0, import_react.useState)(w);
11732
- (M !== Iq || w !== Bq || !$14e0f24ef4ac5c92$export$dbc69fd56b53d5e(S, Rq)) && (I = new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M), Lq(M), zq(S), Vq(w), z(I));
11733
- let Hq = (t2) => {
11734
- if (!(e.isDisabled || e.isReadOnly)) if (t2 == null || t2 instanceof $f863c03ccd9aead0$export$ae165b50d181e1ef && t2.isCleared(Fq)) z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M)), O(null);
11772
+ ]), [$q, eJ] = (0, import_react.useState)(M), [tJ, nJ] = (0, import_react.useState)(S), [rJ, iJ] = (0, import_react.useState)(w);
11773
+ (M !== $q || w !== rJ || !$14e0f24ef4ac5c92$export$dbc69fd56b53d5e(S, tJ)) && (I = new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M), eJ(M), nJ(S), iJ(w), z(I));
11774
+ let aJ = (t2) => {
11775
+ if (!(e.isDisabled || e.isReadOnly)) if (t2 == null || t2 instanceof $f863c03ccd9aead0$export$ae165b50d181e1ef && t2.isCleared(Qq)) z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M)), O(null);
11735
11776
  else if (!(t2 instanceof $f863c03ccd9aead0$export$ae165b50d181e1ef)) t2 = $11d87f3f76e88657$export$b4a036af3fc0b032(t2, (h == null ? void 0 : h.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec()), z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M)), O(t2);
11736
11777
  else {
11737
- if (t2.isComplete(Fq)) {
11778
+ if (t2.isComplete(Qq)) {
11738
11779
  let e2 = t2.toValue(M ?? $);
11739
- if (t2.validate(e2, Fq)) {
11780
+ if (t2.validate(e2, Qq)) {
11740
11781
  let t3 = $11d87f3f76e88657$export$b4a036af3fc0b032(e2, (h == null ? void 0 : h.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec());
11741
11782
  if (!E || t3.compare(E) !== 0) {
11742
11783
  z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M)), O(t3);
@@ -11746,83 +11787,83 @@ Defaulting to \`null\`.`;
11746
11787
  }
11747
11788
  z(t2);
11748
11789
  }
11749
- }, Uq = (0, import_react.useMemo)(() => I.toValue(M ?? $).toDate(y), [
11790
+ }, oJ = (0, import_react.useMemo)(() => I.toValue(M ?? $).toDate(y), [
11750
11791
  I,
11751
11792
  y,
11752
11793
  M,
11753
11794
  $
11754
- ]), Wq = (0, import_react.useMemo)(() => $3c0fc76039f1c516$var$processSegments(Uq, I, J, Q, S, t, _), [
11755
- Uq,
11795
+ ]), sJ = (0, import_react.useMemo)(() => $3c0fc76039f1c516$var$processSegments(oJ, I, J, Q, S, t, _), [
11796
+ oJ,
11756
11797
  J,
11757
11798
  Q,
11758
11799
  I,
11759
11800
  S,
11760
11801
  t,
11761
11802
  _
11762
- ]), Gq = (e2, t2) => {
11763
- Hq(I.cycle(e2, t2, $, Fq));
11764
- }, Kq = (0, import_react.useMemo)(() => $35a22f14a1f04b11$export$f18627323ab57ac0(E, c, d, f, K), [
11803
+ ]), cJ = (e2, t2) => {
11804
+ aJ(I.cycle(e2, t2, $, Qq));
11805
+ }, lJ = (0, import_react.useMemo)(() => $35a22f14a1f04b11$export$f18627323ab57ac0(E, c, d, f, K), [
11765
11806
  E,
11766
11807
  c,
11767
11808
  d,
11768
11809
  f,
11769
11810
  K
11770
- ]), qq = $e5be200c675c3b3a$export$fc1a364ae1f3ff10({
11811
+ ]), uJ = $e5be200c675c3b3a$export$fc1a364ae1f3ff10({
11771
11812
  ...e,
11772
11813
  value: E,
11773
- builtinValidation: Kq
11774
- }), Jq = qq.displayValidation.isInvalid, Yq = e.validationState || (Jq ? "invalid" : null);
11814
+ builtinValidation: lJ
11815
+ }), dJ = uJ.displayValidation.isInvalid, fJ = e.validationState || (dJ ? "invalid" : null);
11775
11816
  return {
11776
- ...qq,
11817
+ ...uJ,
11777
11818
  value: M,
11778
11819
  defaultValue: e.defaultValue ?? A,
11779
- dateValue: Uq,
11820
+ dateValue: oJ,
11780
11821
  calendar: S,
11781
- setValue: Hq,
11782
- segments: Wq,
11822
+ setValue: aJ,
11823
+ segments: sJ,
11783
11824
  dateFormatter: J,
11784
- validationState: Yq,
11785
- isInvalid: Jq,
11825
+ validationState: fJ,
11826
+ isInvalid: dJ,
11786
11827
  granularity: _,
11787
11828
  maxGranularity: e.maxGranularity ?? "year",
11788
11829
  isDisabled: a,
11789
11830
  isReadOnly: o,
11790
11831
  isRequired: s,
11791
11832
  increment(e2) {
11792
- Gq(e2, 1);
11833
+ cJ(e2, 1);
11793
11834
  },
11794
11835
  decrement(e2) {
11795
- Gq(e2, -1);
11836
+ cJ(e2, -1);
11796
11837
  },
11797
11838
  incrementPage(e2) {
11798
- Gq(e2, $3c0fc76039f1c516$var$PAGE_STEP[e2] || 1);
11839
+ cJ(e2, $3c0fc76039f1c516$var$PAGE_STEP[e2] || 1);
11799
11840
  },
11800
11841
  decrementPage(e2) {
11801
- Gq(e2, -($3c0fc76039f1c516$var$PAGE_STEP[e2] || 1));
11842
+ cJ(e2, -($3c0fc76039f1c516$var$PAGE_STEP[e2] || 1));
11802
11843
  },
11803
11844
  incrementToMax(e2) {
11804
11845
  let t2 = e2 === "hour" && w === "h12" ? 11 : I.getSegmentLimits(e2).maxValue;
11805
- Hq(I.set(e2, t2, $));
11846
+ aJ(I.set(e2, t2, $));
11806
11847
  },
11807
11848
  decrementToMin(e2) {
11808
11849
  let t2 = e2 === "hour" && w === "h12" ? 12 : I.getSegmentLimits(e2).minValue;
11809
- Hq(I.set(e2, t2, $));
11850
+ aJ(I.set(e2, t2, $));
11810
11851
  },
11811
11852
  setSegment(e2, t2) {
11812
- Hq(I.set(e2, t2, $));
11853
+ aJ(I.set(e2, t2, $));
11813
11854
  },
11814
11855
  confirmPlaceholder() {
11815
- if (!(e.isDisabled || e.isReadOnly) && I.isComplete(Fq)) {
11856
+ if (!(e.isDisabled || e.isReadOnly) && I.isComplete(Qq)) {
11816
11857
  let e2 = $11d87f3f76e88657$export$b4a036af3fc0b032(I.toValue(M ?? $), (h == null ? void 0 : h.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec());
11817
11858
  (!E || e2.compare(E) !== 0) && O(e2), z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M));
11818
11859
  }
11819
11860
  },
11820
11861
  clearSegment(e2) {
11821
11862
  let t2 = I;
11822
- e2 !== "timeZoneName" && e2 !== "literal" && (t2 = I.clear(e2)), Hq(t2);
11863
+ e2 !== "timeZoneName" && e2 !== "literal" && (t2 = I.clear(e2)), aJ(t2);
11823
11864
  },
11824
11865
  formatValue(e2) {
11825
- return M ? new $fb18d541ea1ad717$export$ad991b66133851cf(t, $35a22f14a1f04b11$export$7e319ea407e63bc0(e2, K)).format(Uq) : "";
11866
+ return M ? new $fb18d541ea1ad717$export$ad991b66133851cf(t, $35a22f14a1f04b11$export$7e319ea407e63bc0(e2, K)).format(oJ) : "";
11826
11867
  },
11827
11868
  getDateFormatter(e2, t2) {
11828
11869
  return new $fb18d541ea1ad717$export$ad991b66133851cf(e2, $35a22f14a1f04b11$export$7e319ea407e63bc0({}, {
@@ -11942,7 +11983,7 @@ Defaulting to \`null\`.`;
11942
11983
  e.endName
11943
11984
  ]),
11944
11985
  builtinValidation: J
11945
- }), $ = Q.displayValidation.isInvalid, Fq = e.validationState || ($ ? "invalid" : null);
11986
+ }), $ = Q.displayValidation.isInvalid, Qq = e.validationState || ($ ? "invalid" : null);
11946
11987
  return {
11947
11988
  ...Q,
11948
11989
  value: c,
@@ -11988,7 +12029,7 @@ Defaulting to \`null\`.`;
11988
12029
  end: (w == null ? void 0 : w.end) || $35a22f14a1f04b11$export$c5221a78ef73c5e9(e.placeholderValue)
11989
12030
  }), t.setOpen(n2);
11990
12031
  },
11991
- validationState: Fq,
12032
+ validationState: Qq,
11992
12033
  isInvalid: $,
11993
12034
  formatValue(t2, n2) {
11994
12035
  if (!c || !c.start || !c.end) return null;
@@ -13945,9 +13986,9 @@ Defaulting to \`null\`.`;
13945
13986
  t,
13946
13987
  i.name
13947
13988
  ]), null;
13948
- }), import_compiler_runtime$65 = require_compiler_runtime();
13989
+ }), import_compiler_runtime$68 = require_compiler_runtime();
13949
13990
  EmotionCacheProvider = (e) => {
13950
- let t = (0, import_compiler_runtime$65.c)(6), { container: n, children: i } = e, a;
13991
+ let t = (0, import_compiler_runtime$68.c)(6), { container: n, children: i } = e, a;
13951
13992
  bb0: {
13952
13993
  if (!n) {
13953
13994
  let e3;
@@ -15860,33 +15901,33 @@ try {
15860
15901
  }, f = import_react.createContext(void 0), h = () => import_react.useContext(f) || d, _ = {}, v = {};
15861
15902
  function y(e2) {
15862
15903
  var _a2, _b, _c, _d;
15863
- 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), $ = !!Q && !I, Fq = import_react.useMemo(() => h2 || (typeof n == "function" ? n() : n), [
15904
+ 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), $ = !!Q && !I, Qq = import_react.useMemo(() => h2 || (typeof n == "function" ? n() : n), [
15864
15905
  h2
15865
- ]), Iq = Fq[t], Lq = Iq || Fq, { colorSchemes: Rq = _, components: zq = v, cssVarPrefix: Bq } = Lq, Vq = Object.keys(Rq).filter((e3) => !!Rq[e3]).join(","), Hq = import_react.useMemo(() => Vq.split(","), [
15866
- Vq
15867
- ]), Uq = typeof s == "string" ? s : s.light, Wq = typeof s == "string" ? s : s.dark, { mode: Gq, setMode: Kq, systemMode: qq, lightColorScheme: Jq, darkColorScheme: Yq, colorScheme: Xq, setColorScheme: Zq } = useCurrentColorScheme({
15868
- supportedColorSchemes: Hq,
15869
- defaultLightColorScheme: Uq,
15870
- defaultDarkColorScheme: Wq,
15906
+ ]), $q = Qq[t], eJ = $q || Qq, { colorSchemes: tJ = _, components: nJ = v, cssVarPrefix: rJ } = eJ, iJ = Object.keys(tJ).filter((e3) => !!tJ[e3]).join(","), aJ = import_react.useMemo(() => iJ.split(","), [
15907
+ iJ
15908
+ ]), oJ = typeof s == "string" ? s : s.light, sJ = typeof s == "string" ? s : s.dark, { mode: cJ, setMode: lJ, systemMode: uJ, lightColorScheme: dJ, darkColorScheme: fJ, colorScheme: pJ, setColorScheme: mJ } = useCurrentColorScheme({
15909
+ supportedColorSchemes: aJ,
15910
+ defaultLightColorScheme: oJ,
15911
+ defaultDarkColorScheme: sJ,
15871
15912
  modeStorageKey: y2,
15872
15913
  colorSchemeStorageKey: S2,
15873
- defaultMode: Rq[Uq] && Rq[Wq] ? U : ((_b = (_a2 = Rq[Lq.defaultColorScheme]) == null ? void 0 : _a2.palette) == null ? void 0 : _b.mode) || ((_c = Lq.palette) == null ? void 0 : _c.mode),
15914
+ defaultMode: tJ[oJ] && tJ[sJ] ? U : ((_b = (_a2 = tJ[eJ.defaultColorScheme]) == null ? void 0 : _a2.palette) == null ? void 0 : _b.mode) || ((_c = eJ.palette) == null ? void 0 : _c.mode),
15874
15915
  storageManager: E,
15875
15916
  storageWindow: O,
15876
15917
  noSsr: K
15877
- }), Qq = Gq, $q = Xq;
15878
- $ && (Qq = Q.mode, $q = Q.colorScheme);
15879
- let eJ = import_react.useMemo(() => {
15918
+ }), hJ = cJ, gJ = pJ;
15919
+ $ && (hJ = Q.mode, gJ = Q.colorScheme);
15920
+ let _J = import_react.useMemo(() => {
15880
15921
  var _a3;
15881
- let e3 = $q || Lq.defaultColorScheme, t2 = ((_a3 = Lq.generateThemeVars) == null ? void 0 : _a3.call(Lq)) || Lq.vars, n2 = {
15882
- ...Lq,
15883
- components: zq,
15884
- colorSchemes: Rq,
15885
- cssVarPrefix: Bq,
15922
+ let e3 = gJ || eJ.defaultColorScheme, t2 = ((_a3 = eJ.generateThemeVars) == null ? void 0 : _a3.call(eJ)) || eJ.vars, n2 = {
15923
+ ...eJ,
15924
+ components: nJ,
15925
+ colorSchemes: tJ,
15926
+ cssVarPrefix: rJ,
15886
15927
  vars: t2
15887
15928
  };
15888
15929
  if (typeof n2.generateSpacing == "function" && (n2.spacing = n2.generateSpacing()), e3) {
15889
- let t3 = Rq[e3];
15930
+ let t3 = tJ[e3];
15890
15931
  t3 && typeof t3 == "object" && Object.keys(t3).forEach((e4) => {
15891
15932
  t3[e4] && typeof t3[e4] == "object" ? n2[e4] = {
15892
15933
  ...n2[e4],
@@ -15896,31 +15937,31 @@ try {
15896
15937
  }
15897
15938
  return c ? c(n2) : n2;
15898
15939
  }, [
15899
- Lq,
15900
- $q,
15901
- zq,
15902
- Rq,
15903
- Bq
15904
- ]), tJ = Lq.colorSchemeSelector;
15940
+ eJ,
15941
+ gJ,
15942
+ nJ,
15943
+ tJ,
15944
+ rJ
15945
+ ]), vJ = eJ.colorSchemeSelector;
15905
15946
  useEnhancedEffect_default(() => {
15906
- if ($q && M && tJ && tJ !== "media") {
15907
- let e3 = tJ, t2 = tJ;
15908
- 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(...Hq.map((e4) => t2.substring(1).replace("%s", e4))), M.classList.add(t2.substring(1).replace("%s", $q));
15947
+ if (gJ && M && vJ && vJ !== "media") {
15948
+ let e3 = vJ, t2 = vJ;
15949
+ 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(...aJ.map((e4) => t2.substring(1).replace("%s", e4))), M.classList.add(t2.substring(1).replace("%s", gJ));
15909
15950
  else {
15910
- let e4 = t2.replace("%s", $q).match(/\[([^\]]+)\]/);
15951
+ let e4 = t2.replace("%s", gJ).match(/\[([^\]]+)\]/);
15911
15952
  if (e4) {
15912
15953
  let [t3, n2] = e4[1].split("=");
15913
- n2 || Hq.forEach((e5) => {
15914
- M.removeAttribute(t3.replace($q, e5));
15954
+ n2 || aJ.forEach((e5) => {
15955
+ M.removeAttribute(t3.replace(gJ, e5));
15915
15956
  }), M.setAttribute(t3, n2 ? n2.replace(/"|'/g, "") : "");
15916
- } else M.setAttribute(t2, $q);
15957
+ } else M.setAttribute(t2, gJ);
15917
15958
  }
15918
15959
  }
15919
15960
  }, [
15920
- $q,
15921
- tJ,
15961
+ gJ,
15962
+ vJ,
15922
15963
  M,
15923
- Hq
15964
+ aJ
15924
15965
  ]), import_react.useEffect(() => {
15925
15966
  let e3;
15926
15967
  if (w2 && q.current && A) {
@@ -15933,48 +15974,48 @@ try {
15933
15974
  clearTimeout(e3);
15934
15975
  };
15935
15976
  }, [
15936
- $q,
15977
+ gJ,
15937
15978
  w2,
15938
15979
  A
15939
15980
  ]), import_react.useEffect(() => (q.current = true, () => {
15940
15981
  q.current = false;
15941
15982
  }), []);
15942
- let nJ = import_react.useMemo(() => ({
15943
- allColorSchemes: Hq,
15944
- colorScheme: $q,
15945
- darkColorScheme: Yq,
15946
- lightColorScheme: Jq,
15947
- mode: Qq,
15948
- setColorScheme: Zq,
15949
- setMode: Kq,
15950
- systemMode: qq
15983
+ let yJ = import_react.useMemo(() => ({
15984
+ allColorSchemes: aJ,
15985
+ colorScheme: gJ,
15986
+ darkColorScheme: fJ,
15987
+ lightColorScheme: dJ,
15988
+ mode: hJ,
15989
+ setColorScheme: mJ,
15990
+ setMode: lJ,
15991
+ systemMode: uJ
15951
15992
  }), [
15952
- Hq,
15953
- $q,
15954
- Yq,
15955
- Jq,
15956
- Qq,
15957
- Zq,
15958
- Kq,
15959
- qq,
15960
- eJ.colorSchemeSelector
15961
- ]), rJ = true;
15962
- (z || Lq.cssVariables === false || $ && (J == null ? void 0 : J.cssVarPrefix) === Bq) && (rJ = false);
15963
- let iJ = (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
15993
+ aJ,
15994
+ gJ,
15995
+ fJ,
15996
+ dJ,
15997
+ hJ,
15998
+ mJ,
15999
+ lJ,
16000
+ uJ,
16001
+ _J.colorSchemeSelector
16002
+ ]), bJ = true;
16003
+ (z || eJ.cssVariables === false || $ && (J == null ? void 0 : J.cssVarPrefix) === rJ) && (bJ = false);
16004
+ let xJ = (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
15964
16005
  children: [
15965
16006
  (0, import_jsx_runtime.jsx)(ThemeProvider_default, {
15966
- themeId: Iq ? t : void 0,
15967
- theme: eJ,
16007
+ themeId: $q ? t : void 0,
16008
+ theme: _J,
15968
16009
  children: d2
15969
16010
  }),
15970
- rJ && (0, import_jsx_runtime.jsx)(GlobalStyles$1, {
15971
- styles: ((_d = eJ.generateStyleSheets) == null ? void 0 : _d.call(eJ)) || []
16011
+ bJ && (0, import_jsx_runtime.jsx)(GlobalStyles$1, {
16012
+ styles: ((_d = _J.generateStyleSheets) == null ? void 0 : _d.call(_J)) || []
15972
16013
  })
15973
16014
  ]
15974
16015
  });
15975
- return $ ? iJ : (0, import_jsx_runtime.jsx)(f.Provider, {
15976
- value: nJ,
15977
- children: iJ
16016
+ return $ ? xJ : (0, import_jsx_runtime.jsx)(f.Provider, {
16017
+ value: yJ,
16018
+ children: xJ
15978
16019
  });
15979
16020
  }
15980
16021
  let S = typeof s == "string" ? s : s.light, w = typeof s == "string" ? s : s.dark;
@@ -17474,10 +17515,10 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
17474
17515
  let n = useDefaultProps({
17475
17516
  props: e,
17476
17517
  name: "MuiInputBase"
17477
- }), { "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: $, onFocus: Fq, onKeyDown: Iq, onKeyUp: Lq, placeholder: Rq, readOnly: zq, renderSuffix: Bq, rows: Vq, size: Hq, slotProps: Uq = {}, slots: Wq = {}, startAdornment: Gq, type: Kq = "text", value: qq, ...Jq } = n, Yq = A.value == null ? qq : A.value, { current: Xq } = import_react.useRef(Yq != null), Zq = import_react.useRef(), Qq = import_react.useCallback((e2) => {
17478
- }, []), $q = useForkRef_default(Zq, M, A.ref, Qq), [eJ, tJ] = import_react.useState(false), nJ = useFormControl(), rJ = formControlState({
17518
+ }), { "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: $, onFocus: Qq, onKeyDown: $q, onKeyUp: eJ, placeholder: tJ, readOnly: nJ, renderSuffix: rJ, rows: iJ, size: aJ, slotProps: oJ = {}, slots: sJ = {}, startAdornment: cJ, type: lJ = "text", value: uJ, ...dJ } = n, fJ = A.value == null ? uJ : A.value, { current: pJ } = import_react.useRef(fJ != null), mJ = import_react.useRef(), hJ = import_react.useCallback((e2) => {
17519
+ }, []), gJ = useForkRef_default(mJ, M, A.ref, hJ), [_J, vJ] = import_react.useState(false), yJ = useFormControl(), bJ = formControlState({
17479
17520
  props: n,
17480
- muiFormControl: nJ,
17521
+ muiFormControl: yJ,
17481
17522
  states: [
17482
17523
  "color",
17483
17524
  "disabled",
@@ -17488,145 +17529,145 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
17488
17529
  "filled"
17489
17530
  ]
17490
17531
  });
17491
- rJ.focused = nJ ? nJ.focused : eJ, import_react.useEffect(() => {
17492
- !nJ && _ && eJ && (tJ(false), J && J());
17532
+ bJ.focused = yJ ? yJ.focused : _J, import_react.useEffect(() => {
17533
+ !yJ && _ && _J && (vJ(false), J && J());
17493
17534
  }, [
17494
- nJ,
17535
+ yJ,
17495
17536
  _,
17496
- eJ,
17537
+ _J,
17497
17538
  J
17498
17539
  ]);
17499
- let iJ = nJ && nJ.onFilled, aJ = nJ && nJ.onEmpty, oJ = import_react.useCallback((e2) => {
17500
- isFilled(e2) ? iJ && iJ() : aJ && aJ();
17540
+ let xJ = yJ && yJ.onFilled, SJ = yJ && yJ.onEmpty, CJ = import_react.useCallback((e2) => {
17541
+ isFilled(e2) ? xJ && xJ() : SJ && SJ();
17501
17542
  }, [
17502
- iJ,
17503
- aJ
17543
+ xJ,
17544
+ SJ
17504
17545
  ]);
17505
17546
  useEnhancedEffect_default$1(() => {
17506
- Xq && oJ({
17507
- value: Yq
17547
+ pJ && CJ({
17548
+ value: fJ
17508
17549
  });
17509
17550
  }, [
17510
- Yq,
17511
- oJ,
17512
- Xq
17551
+ fJ,
17552
+ CJ,
17553
+ pJ
17513
17554
  ]);
17514
- let sJ = (e2) => {
17515
- Fq && Fq(e2), A.onFocus && A.onFocus(e2), nJ && nJ.onFocus ? nJ.onFocus(e2) : tJ(true);
17516
- }, cJ = (e2) => {
17517
- J && J(e2), A.onBlur && A.onBlur(e2), nJ && nJ.onBlur ? nJ.onBlur(e2) : tJ(false);
17518
- }, lJ = (e2, ...t2) => {
17519
- if (!Xq) {
17520
- let t3 = e2.target || Zq.current;
17555
+ let wJ = (e2) => {
17556
+ Qq && Qq(e2), A.onFocus && A.onFocus(e2), yJ && yJ.onFocus ? yJ.onFocus(e2) : vJ(true);
17557
+ }, TJ = (e2) => {
17558
+ J && J(e2), A.onBlur && A.onBlur(e2), yJ && yJ.onBlur ? yJ.onBlur(e2) : vJ(false);
17559
+ }, EJ = (e2, ...t2) => {
17560
+ if (!pJ) {
17561
+ let t3 = e2.target || mJ.current;
17521
17562
  if (t3 == null) throw Error(formatMuiErrorMessage(1));
17522
- oJ({
17563
+ CJ({
17523
17564
  value: t3.value
17524
17565
  });
17525
17566
  }
17526
17567
  A.onChange && A.onChange(e2, ...t2), Q && Q(e2, ...t2);
17527
17568
  };
17528
17569
  import_react.useEffect(() => {
17529
- oJ(Zq.current);
17570
+ CJ(mJ.current);
17530
17571
  }, []);
17531
- let uJ = (e2) => {
17532
- Zq.current && e2.currentTarget === e2.target && Zq.current.focus(), $ && $(e2);
17533
- }, dJ = O, fJ = A;
17534
- K && dJ === "input" && (fJ = Vq ? {
17572
+ let DJ = (e2) => {
17573
+ mJ.current && e2.currentTarget === e2.target && mJ.current.focus(), $ && $(e2);
17574
+ }, OJ = O, kJ = A;
17575
+ K && OJ === "input" && (kJ = iJ ? {
17535
17576
  type: void 0,
17536
- minRows: Vq,
17537
- maxRows: Vq,
17538
- ...fJ
17577
+ minRows: iJ,
17578
+ maxRows: iJ,
17579
+ ...kJ
17539
17580
  } : {
17540
17581
  type: void 0,
17541
17582
  maxRows: z,
17542
17583
  minRows: U,
17543
- ...fJ
17544
- }, dJ = TextareaAutosize_default);
17545
- let pJ = (e2) => {
17546
- oJ(e2.animationName === "mui-auto-fill-cancel" ? Zq.current : {
17584
+ ...kJ
17585
+ }, OJ = TextareaAutosize_default);
17586
+ let AJ = (e2) => {
17587
+ CJ(e2.animationName === "mui-auto-fill-cancel" ? mJ.current : {
17547
17588
  value: "x"
17548
17589
  });
17549
17590
  };
17550
17591
  import_react.useEffect(() => {
17551
- nJ && nJ.setAdornedStart(!!Gq);
17592
+ yJ && yJ.setAdornedStart(!!cJ);
17552
17593
  }, [
17553
- nJ,
17554
- Gq
17594
+ yJ,
17595
+ cJ
17555
17596
  ]);
17556
- let mJ = {
17597
+ let jJ = {
17557
17598
  ...n,
17558
- color: rJ.color || "primary",
17559
- disabled: rJ.disabled,
17599
+ color: bJ.color || "primary",
17600
+ disabled: bJ.disabled,
17560
17601
  endAdornment: y,
17561
- error: rJ.error,
17562
- focused: rJ.focused,
17563
- formControl: nJ,
17602
+ error: bJ.error,
17603
+ focused: bJ.focused,
17604
+ formControl: yJ,
17564
17605
  fullWidth: w,
17565
- hiddenLabel: rJ.hiddenLabel,
17606
+ hiddenLabel: bJ.hiddenLabel,
17566
17607
  multiline: K,
17567
- size: rJ.size,
17568
- startAdornment: Gq,
17569
- type: Kq
17570
- }, hJ = useUtilityClasses(mJ), gJ = Wq.root || d.Root || InputBaseRoot, _J = Uq.root || f.root || {}, vJ = Wq.input || d.Input || InputBaseInput;
17571
- return fJ = {
17572
- ...fJ,
17573
- ...Uq.input ?? f.input
17608
+ size: bJ.size,
17609
+ startAdornment: cJ,
17610
+ type: lJ
17611
+ }, MJ = useUtilityClasses(jJ), NJ = sJ.root || d.Root || InputBaseRoot, PJ = oJ.root || f.root || {}, FJ = sJ.input || d.Input || InputBaseInput;
17612
+ return kJ = {
17613
+ ...kJ,
17614
+ ...oJ.input ?? f.input
17574
17615
  }, (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
17575
17616
  children: [
17576
17617
  !v && typeof InputGlobalStyles == "function" && (_InputGlobalStyles || (_InputGlobalStyles = (0, import_jsx_runtime.jsx)(InputGlobalStyles, {}))),
17577
- (0, import_jsx_runtime.jsxs)(gJ, {
17578
- ..._J,
17618
+ (0, import_jsx_runtime.jsxs)(NJ, {
17619
+ ...PJ,
17579
17620
  ref: t,
17580
- onClick: uJ,
17581
- ...Jq,
17582
- ...!isHostComponent_default(gJ) && {
17621
+ onClick: DJ,
17622
+ ...dJ,
17623
+ ...!isHostComponent_default(NJ) && {
17583
17624
  ownerState: {
17584
- ...mJ,
17585
- ..._J.ownerState
17625
+ ...jJ,
17626
+ ...PJ.ownerState
17586
17627
  }
17587
17628
  },
17588
- className: clsx_default(hJ.root, _J.className, s, zq && "MuiInputBase-readOnly"),
17629
+ className: clsx_default(MJ.root, PJ.className, s, nJ && "MuiInputBase-readOnly"),
17589
17630
  children: [
17590
- Gq,
17631
+ cJ,
17591
17632
  (0, import_jsx_runtime.jsx)(FormControlContext_default.Provider, {
17592
17633
  value: null,
17593
- children: (0, import_jsx_runtime.jsx)(vJ, {
17594
- "aria-invalid": rJ.error,
17634
+ children: (0, import_jsx_runtime.jsx)(FJ, {
17635
+ "aria-invalid": bJ.error,
17595
17636
  "aria-describedby": i,
17596
17637
  autoComplete: a,
17597
17638
  autoFocus: o,
17598
17639
  defaultValue: h,
17599
- disabled: rJ.disabled,
17640
+ disabled: bJ.disabled,
17600
17641
  id: E,
17601
- onAnimationStart: pJ,
17642
+ onAnimationStart: AJ,
17602
17643
  name: q,
17603
- placeholder: Rq,
17604
- readOnly: zq,
17605
- required: rJ.required,
17606
- rows: Vq,
17607
- value: Yq,
17608
- onKeyDown: Iq,
17609
- onKeyUp: Lq,
17610
- type: Kq,
17611
- ...fJ,
17612
- ...!isHostComponent_default(vJ) && {
17613
- as: dJ,
17644
+ placeholder: tJ,
17645
+ readOnly: nJ,
17646
+ required: bJ.required,
17647
+ rows: iJ,
17648
+ value: fJ,
17649
+ onKeyDown: $q,
17650
+ onKeyUp: eJ,
17651
+ type: lJ,
17652
+ ...kJ,
17653
+ ...!isHostComponent_default(FJ) && {
17654
+ as: OJ,
17614
17655
  ownerState: {
17615
- ...mJ,
17616
- ...fJ.ownerState
17656
+ ...jJ,
17657
+ ...kJ.ownerState
17617
17658
  }
17618
17659
  },
17619
- ref: $q,
17620
- className: clsx_default(hJ.input, fJ.className, zq && "MuiInputBase-readOnly"),
17621
- onBlur: cJ,
17622
- onChange: lJ,
17623
- onFocus: sJ
17660
+ ref: gJ,
17661
+ className: clsx_default(MJ.input, kJ.className, nJ && "MuiInputBase-readOnly"),
17662
+ onBlur: TJ,
17663
+ onChange: EJ,
17664
+ onFocus: wJ
17624
17665
  })
17625
17666
  }),
17626
17667
  y,
17627
- Bq ? Bq({
17628
- ...rJ,
17629
- startAdornment: Gq
17668
+ rJ ? rJ({
17669
+ ...bJ,
17670
+ startAdornment: cJ
17630
17671
  }) : null
17631
17672
  ]
17632
17673
  })
@@ -18702,30 +18743,30 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18702
18743
  M,
18703
18744
  i,
18704
18745
  a
18705
- ]), z = useJsonViewerStore((e2) => e2.setHover), U = useJsonViewerStore((e2) => e2.value), [K, q] = useInspect(i, t, a), [J, Q] = (0, import_react.useState)(false), $ = useJsonViewerStore((e2) => e2.onChange), Fq = useTextColor(), Iq = useJsonViewerStore((e2) => e2.colorspace.base0C), Lq = useJsonViewerStore((e2) => e2.colorspace.base0A), Rq = useJsonViewerStore((e2) => e2.displayComma), zq = useJsonViewerStore((e2) => e2.quotesOnKeys), Bq = useJsonViewerStore((e2) => e2.rootName), Vq = U === t, Hq = Number.isInteger(Number(A)), Uq = useJsonViewerStore((e2) => e2.enableAdd), Wq = useJsonViewerStore((e2) => e2.onAdd), Gq = (0, import_react.useMemo)(() => !Wq || a !== void 0 || Uq === false || v === false ? false : typeof Uq == "function" ? !!Uq(i, t) : !!(Array.isArray(t) || isPlainObject(t)), [
18706
- Wq,
18746
+ ]), z = useJsonViewerStore((e2) => e2.setHover), U = useJsonViewerStore((e2) => e2.value), [K, q] = useInspect(i, t, a), [J, Q] = (0, import_react.useState)(false), $ = useJsonViewerStore((e2) => e2.onChange), Qq = useTextColor(), $q = useJsonViewerStore((e2) => e2.colorspace.base0C), eJ = useJsonViewerStore((e2) => e2.colorspace.base0A), tJ = useJsonViewerStore((e2) => e2.displayComma), nJ = useJsonViewerStore((e2) => e2.quotesOnKeys), rJ = useJsonViewerStore((e2) => e2.rootName), iJ = U === t, aJ = Number.isInteger(Number(A)), oJ = useJsonViewerStore((e2) => e2.enableAdd), sJ = useJsonViewerStore((e2) => e2.onAdd), cJ = (0, import_react.useMemo)(() => !sJ || a !== void 0 || oJ === false || v === false ? false : typeof oJ == "function" ? !!oJ(i, t) : !!(Array.isArray(t) || isPlainObject(t)), [
18747
+ sJ,
18707
18748
  a,
18708
18749
  i,
18709
- Uq,
18750
+ oJ,
18710
18751
  v,
18711
18752
  t
18712
- ]), Kq = useJsonViewerStore((e2) => e2.enableDelete), qq = useJsonViewerStore((e2) => e2.onDelete), Jq = (0, import_react.useMemo)(() => !qq || a !== void 0 || Vq || Kq === false || v === false ? false : typeof Kq == "function" ? !!Kq(i, t) : Kq, [
18713
- qq,
18753
+ ]), lJ = useJsonViewerStore((e2) => e2.enableDelete), uJ = useJsonViewerStore((e2) => e2.onDelete), dJ = (0, import_react.useMemo)(() => !uJ || a !== void 0 || iJ || lJ === false || v === false ? false : typeof lJ == "function" ? !!lJ(i, t) : lJ, [
18754
+ uJ,
18714
18755
  a,
18715
- Vq,
18756
+ iJ,
18716
18757
  i,
18717
- Kq,
18758
+ lJ,
18718
18759
  v,
18719
18760
  t
18720
- ]), Yq = useJsonViewerStore((e2) => e2.enableClipboard), { copy: Xq, copied: Zq } = useClipboard(), Qq = useJsonViewerStore((e2) => e2.highlightUpdates), $q = (0, import_react.useMemo)(() => !Qq || 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, [
18721
- Qq,
18761
+ ]), fJ = useJsonViewerStore((e2) => e2.enableClipboard), { copy: pJ, copied: mJ } = useClipboard(), hJ = useJsonViewerStore((e2) => e2.highlightUpdates), gJ = (0, import_react.useMemo)(() => !hJ || 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, [
18762
+ hJ,
18722
18763
  n,
18723
18764
  t
18724
- ]), eJ = (0, import_react.useRef)();
18765
+ ]), _J = (0, import_react.useRef)();
18725
18766
  (0, import_react.useEffect)(() => {
18726
- eJ.current && $q && "animate" in eJ.current && eJ.current.animate([
18767
+ _J.current && gJ && "animate" in _J.current && _J.current.animate([
18727
18768
  {
18728
- backgroundColor: Lq
18769
+ backgroundColor: eJ
18729
18770
  },
18730
18771
  {
18731
18772
  backgroundColor: ""
@@ -18735,22 +18776,22 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18735
18776
  easing: "ease-in"
18736
18777
  });
18737
18778
  }, [
18738
- Lq,
18739
- $q,
18779
+ eJ,
18780
+ gJ,
18740
18781
  n,
18741
18782
  t
18742
18783
  ]);
18743
- let tJ = (0, import_react.useCallback)((e2) => {
18784
+ let vJ = (0, import_react.useCallback)((e2) => {
18744
18785
  e2.preventDefault(), h && E(h(t)), Q(true);
18745
18786
  }, [
18746
18787
  h,
18747
18788
  t
18748
- ]), nJ = (0, import_react.useCallback)(() => {
18789
+ ]), yJ = (0, import_react.useCallback)(() => {
18749
18790
  Q(false), E("");
18750
18791
  }, [
18751
18792
  Q,
18752
18793
  E
18753
- ]), rJ = (0, import_react.useCallback)((e2) => {
18794
+ ]), bJ = (0, import_react.useCallback)((e2) => {
18754
18795
  if (Q(false), _) try {
18755
18796
  $(i, t, _(e2));
18756
18797
  } catch {
@@ -18761,14 +18802,14 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18761
18802
  $,
18762
18803
  i,
18763
18804
  t
18764
- ]), iJ = (0, import_react.useMemo)(() => J ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
18805
+ ]), xJ = (0, import_react.useMemo)(() => J ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
18765
18806
  children: [
18766
18807
  (0, import_jsx_runtime.jsx)(IconBox, {
18767
18808
  children: (0, import_jsx_runtime.jsx)(CloseIcon, {
18768
18809
  sx: {
18769
18810
  fontSize: ".8rem"
18770
18811
  },
18771
- onClick: nJ
18812
+ onClick: yJ
18772
18813
  })
18773
18814
  }),
18774
18815
  (0, import_jsx_runtime.jsx)(IconBox, {
@@ -18776,22 +18817,22 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18776
18817
  sx: {
18777
18818
  fontSize: ".8rem"
18778
18819
  },
18779
- onClick: () => rJ(w)
18820
+ onClick: () => bJ(w)
18780
18821
  })
18781
18822
  })
18782
18823
  ]
18783
18824
  }) : (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
18784
18825
  children: [
18785
- Yq && (0, import_jsx_runtime.jsx)(IconBox, {
18826
+ fJ && (0, import_jsx_runtime.jsx)(IconBox, {
18786
18827
  onClick: (e2) => {
18787
18828
  e2.preventDefault();
18788
18829
  try {
18789
- Xq(i, t, copyString);
18830
+ pJ(i, t, copyString);
18790
18831
  } catch (e3) {
18791
18832
  console.error(e3);
18792
18833
  }
18793
18834
  },
18794
- children: Zq ? (0, import_jsx_runtime.jsx)(CheckIcon$1, {
18835
+ children: mJ ? (0, import_jsx_runtime.jsx)(CheckIcon$1, {
18795
18836
  sx: {
18796
18837
  fontSize: ".8rem"
18797
18838
  }
@@ -18802,16 +18843,16 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18802
18843
  })
18803
18844
  }),
18804
18845
  f && S && h && _ && (0, import_jsx_runtime.jsx)(IconBox, {
18805
- onClick: tJ,
18846
+ onClick: vJ,
18806
18847
  children: (0, import_jsx_runtime.jsx)(EditIcon, {
18807
18848
  sx: {
18808
18849
  fontSize: ".8rem"
18809
18850
  }
18810
18851
  })
18811
18852
  }),
18812
- Gq && (0, import_jsx_runtime.jsx)(IconBox, {
18853
+ cJ && (0, import_jsx_runtime.jsx)(IconBox, {
18813
18854
  onClick: (e2) => {
18814
- e2.preventDefault(), Wq == null ? void 0 : Wq(i);
18855
+ e2.preventDefault(), sJ == null ? void 0 : sJ(i);
18815
18856
  },
18816
18857
  children: (0, import_jsx_runtime.jsx)(AddBoxIcon, {
18817
18858
  sx: {
@@ -18819,9 +18860,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18819
18860
  }
18820
18861
  })
18821
18862
  }),
18822
- Jq && (0, import_jsx_runtime.jsx)(IconBox, {
18863
+ dJ && (0, import_jsx_runtime.jsx)(IconBox, {
18823
18864
  onClick: (e2) => {
18824
- e2.preventDefault(), qq == null ? void 0 : qq(i, t);
18865
+ e2.preventDefault(), uJ == null ? void 0 : uJ(i, t);
18825
18866
  },
18826
18867
  children: (0, import_jsx_runtime.jsx)(DeleteIcon, {
18827
18868
  sx: {
@@ -18834,24 +18875,24 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18834
18875
  f,
18835
18876
  h,
18836
18877
  _,
18837
- Zq,
18838
- Xq,
18878
+ mJ,
18879
+ pJ,
18839
18880
  S,
18840
18881
  J,
18841
- Yq,
18842
- Gq,
18843
- Jq,
18882
+ fJ,
18883
+ cJ,
18884
+ dJ,
18844
18885
  w,
18845
18886
  i,
18846
18887
  t,
18847
- Wq,
18848
- qq,
18849
- tJ,
18850
- nJ,
18851
- rJ
18852
- ]), aJ = (0, import_react.useMemo)(() => getValueSize(t) === 0, [
18888
+ sJ,
18889
+ uJ,
18890
+ vJ,
18891
+ yJ,
18892
+ bJ
18893
+ ]), SJ = (0, import_react.useMemo)(() => getValueSize(t) === 0, [
18853
18894
  t
18854
- ]), oJ = !aJ && !!(c && d), sJ = useJsonViewerStore((e2) => e2.keyRenderer), cJ = (0, import_react.useMemo)(() => ({
18895
+ ]), CJ = !SJ && !!(c && d), wJ = useJsonViewerStore((e2) => e2.keyRenderer), TJ = (0, import_react.useMemo)(() => ({
18855
18896
  path: i,
18856
18897
  inspect: K,
18857
18898
  setInspect: q,
@@ -18883,18 +18924,18 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18883
18924
  className: "data-key",
18884
18925
  sx: {
18885
18926
  lineHeight: 1.5,
18886
- color: Fq,
18927
+ color: Qq,
18887
18928
  letterSpacing: 0.5,
18888
18929
  opacity: 0.8
18889
18930
  },
18890
18931
  onClick: (0, import_react.useCallback)((e2) => {
18891
- e2.isDefaultPrevented() || aJ || q((e3) => !e3);
18932
+ e2.isDefaultPrevented() || SJ || q((e3) => !e3);
18892
18933
  }, [
18893
- aJ,
18934
+ SJ,
18894
18935
  q
18895
18936
  ]),
18896
18937
  children: [
18897
- oJ ? K ? (0, import_jsx_runtime.jsx)(ExpandMoreIcon, {
18938
+ CJ ? K ? (0, import_jsx_runtime.jsx)(ExpandMoreIcon, {
18898
18939
  className: "data-key-toggle-expanded",
18899
18940
  sx: {
18900
18941
  fontSize: ".8rem",
@@ -18912,27 +18953,27 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18912
18953
  }
18913
18954
  }) : null,
18914
18955
  (0, import_jsx_runtime.jsx)(Box_default, {
18915
- ref: eJ,
18956
+ ref: _J,
18916
18957
  className: "data-key-key",
18917
18958
  component: "span",
18918
- children: Vq && O === 0 ? Bq === false ? null : zq ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
18959
+ children: iJ && O === 0 ? rJ === false ? null : nJ ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
18919
18960
  children: [
18920
18961
  '"',
18921
- Bq,
18962
+ rJ,
18922
18963
  '"'
18923
18964
  ]
18924
18965
  }) : (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
18925
- children: Bq
18926
- }) : sJ.when(cJ) ? (0, import_jsx_runtime.jsx)(sJ, {
18927
- ...cJ
18928
- }) : a === void 0 && (Hq ? (0, import_jsx_runtime.jsx)(Box_default, {
18966
+ children: rJ
18967
+ }) : wJ.when(TJ) ? (0, import_jsx_runtime.jsx)(wJ, {
18968
+ ...TJ
18969
+ }) : a === void 0 && (aJ ? (0, import_jsx_runtime.jsx)(Box_default, {
18929
18970
  component: "span",
18930
18971
  style: {
18931
- color: Iq,
18932
- userSelect: Hq ? "none" : "auto"
18972
+ color: $q,
18973
+ userSelect: aJ ? "none" : "auto"
18933
18974
  },
18934
18975
  children: A
18935
- }) : zq ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
18976
+ }) : nJ ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
18936
18977
  children: [
18937
18978
  '"',
18938
18979
  A,
@@ -18942,7 +18983,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18942
18983
  children: A
18943
18984
  }))
18944
18985
  }),
18945
- Vq ? Bq !== false && (0, import_jsx_runtime.jsx)(DataBox, {
18986
+ iJ ? rJ !== false && (0, import_jsx_runtime.jsx)(DataBox, {
18946
18987
  className: "data-key-colon",
18947
18988
  sx: {
18948
18989
  mr: 0.5
@@ -18955,38 +18996,38 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18955
18996
  ".data-key-key:empty + &": {
18956
18997
  display: "none"
18957
18998
  },
18958
- userSelect: Hq ? "none" : "auto"
18999
+ userSelect: aJ ? "none" : "auto"
18959
19000
  },
18960
19001
  children: ":"
18961
19002
  }),
18962
19003
  c && (0, import_jsx_runtime.jsx)(c, {
18963
- ...cJ
19004
+ ...TJ
18964
19005
  }),
18965
- I && oJ && K && iJ
19006
+ I && CJ && K && xJ
18966
19007
  ]
18967
19008
  }),
18968
19009
  J && S ? f && (0, import_jsx_runtime.jsx)(f, {
18969
19010
  path: i,
18970
19011
  value: w,
18971
19012
  setValue: E,
18972
- abortEditing: nJ,
18973
- commitEditing: rJ
19013
+ abortEditing: yJ,
19014
+ commitEditing: bJ
18974
19015
  }) : s ? (0, import_jsx_runtime.jsx)(s, {
18975
- ...cJ
19016
+ ...TJ
18976
19017
  }) : (0, import_jsx_runtime.jsx)(Box_default, {
18977
19018
  component: "span",
18978
19019
  className: "data-value-fallback",
18979
19020
  children: `fallback: ${t}`
18980
19021
  }),
18981
19022
  d && (0, import_jsx_runtime.jsx)(d, {
18982
- ...cJ
19023
+ ...TJ
18983
19024
  }),
18984
- !o && Rq && (0, import_jsx_runtime.jsx)(DataBox, {
19025
+ !o && tJ && (0, import_jsx_runtime.jsx)(DataBox, {
18985
19026
  children: ","
18986
19027
  }),
18987
- I && oJ && !K && iJ,
18988
- I && !oJ && iJ,
18989
- !I && J && iJ
19028
+ I && CJ && !K && xJ,
19029
+ I && !CJ && xJ,
19030
+ !I && J && xJ
18990
19031
  ]
18991
19032
  });
18992
19033
  }, query = "(prefers-color-scheme: dark)";
@@ -19115,9 +19156,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
19115
19156
  })
19116
19157
  })
19117
19158
  });
19118
- }, import_compiler_runtime$64 = require_compiler_runtime();
19159
+ }, import_compiler_runtime$67 = require_compiler_runtime();
19119
19160
  HtmlOutput = (0, import_react.memo)((e) => {
19120
- let t = (0, import_compiler_runtime$64.c)(10), { html: n, inline: i, className: o, alwaysSanitizeHtml: s } = e, c = i === void 0 ? false : i;
19161
+ let t = (0, import_compiler_runtime$67.c)(10), { html: n, inline: i, className: o, alwaysSanitizeHtml: s } = e, c = i === void 0 ? false : i;
19121
19162
  if (!n) return null;
19122
19163
  let d = !c, f;
19123
19164
  t[0] !== o || t[1] !== c || t[2] !== d ? (f = cn(o, {
@@ -19136,9 +19177,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
19136
19177
  }), t[7] = f, t[8] = h, t[9] = _) : _ = t[9], _;
19137
19178
  });
19138
19179
  HtmlOutput.displayName = "HtmlOutput";
19139
- var import_compiler_runtime$63 = require_compiler_runtime();
19180
+ var import_compiler_runtime$66 = require_compiler_runtime();
19140
19181
  const ImageOutput = (e) => {
19141
- let t = (0, import_compiler_runtime$63.c)(10), { src: n, alt: i, width: a, height: o, className: s } = e, c = i === void 0 ? "" : i, d;
19182
+ let t = (0, import_compiler_runtime$66.c)(10), { src: n, alt: i, width: a, height: o, className: s } = e, c = i === void 0 ? "" : i, d;
19142
19183
  t[0] !== o || t[1] !== a ? (d = {}, a !== void 0 && (d.width = typeof a == "number" ? `${a}px` : a), o !== void 0 && (d.height = typeof o == "number" ? `${o}px` : o), t[0] = o, t[1] = a, t[2] = d) : d = t[2];
19143
19184
  let f;
19144
19185
  t[3] !== c || t[4] !== n || t[5] !== d ? (f = (0, import_jsx_runtime.jsx)("img", {
@@ -19152,9 +19193,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
19152
19193
  children: f
19153
19194
  }), t[7] = s, t[8] = f, t[9] = h) : h = t[9], h;
19154
19195
  };
19155
- var import_compiler_runtime$62 = require_compiler_runtime();
19196
+ var import_compiler_runtime$65 = require_compiler_runtime();
19156
19197
  Kbd = (e) => {
19157
- let t = (0, import_compiler_runtime$62.c)(5), n;
19198
+ let t = (0, import_compiler_runtime$65.c)(5), n;
19158
19199
  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);
19159
19200
  let i;
19160
19201
  return t[2] !== e.children || t[3] !== n ? (i = (0, import_jsx_runtime.jsx)("kbd", {
@@ -19162,9 +19203,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
19162
19203
  children: e.children
19163
19204
  }), t[2] = e.children, t[3] = n, t[4] = i) : i = t[4], i;
19164
19205
  };
19165
- var import_compiler_runtime$61 = require_compiler_runtime();
19206
+ var import_compiler_runtime$64 = require_compiler_runtime();
19166
19207
  const ExternalLink$1 = (e) => {
19167
- let t = (0, import_compiler_runtime$61.c)(3), { href: n, children: i } = e, a;
19208
+ let t = (0, import_compiler_runtime$64.c)(3), { href: n, children: i } = e, a;
19168
19209
  return t[0] !== i || t[1] !== n ? (a = (0, import_jsx_runtime.jsx)("a", {
19169
19210
  href: n,
19170
19211
  target: "_blank",
@@ -19198,7 +19239,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
19198
19239
  e.openApplication("packages"), focusPackagesInput();
19199
19240
  };
19200
19241
  var KEY = "marimo:ai:chatState:v5";
19201
- const aiCompletionCellAtom = atom(null);
19242
+ const aiCompletionCellAtom = atom(null), pendingAiPromptAtom = atom(null);
19202
19243
  atomWithStorage("marimo:ai:includeOtherCells", true, jotaiJsonStorage);
19203
19244
  function removeEmptyChats(e) {
19204
19245
  let t = /* @__PURE__ */ new Map();
@@ -19351,7 +19392,108 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19351
19392
  os: "os",
19352
19393
  re: "re",
19353
19394
  sys: "sys"
19354
- }, import_compiler_runtime$60 = require_compiler_runtime(), fixModeAtom = atomWithStorage("marimo:ai-autofix-mode", "autofix", jotaiJsonStorage);
19395
+ };
19396
+ const agentSessionStateAtom = atomWithStorage("marimo:acp:sessions:v1", {
19397
+ sessions: [],
19398
+ activeTabId: null
19399
+ }, jotaiJsonStorage);
19400
+ atom((e) => {
19401
+ let t = e(agentSessionStateAtom);
19402
+ return t.activeTabId && t.sessions.find((e2) => e2.tabId === t.activeTabId) || null;
19403
+ }, (e, t, n) => {
19404
+ t(agentSessionStateAtom, (e2) => ({
19405
+ ...e2,
19406
+ activeTabId: n
19407
+ }));
19408
+ });
19409
+ var import_compiler_runtime$63 = require_compiler_runtime(), getModelKeyForRole = (e) => {
19410
+ switch (e) {
19411
+ case "chat":
19412
+ return "chat_model";
19413
+ case "autocomplete":
19414
+ return "autocomplete_model";
19415
+ case "edit":
19416
+ return "edit_model";
19417
+ }
19418
+ };
19419
+ const useModelChange = () => {
19420
+ let e = (0, import_compiler_runtime$63.c)(12), [t, n] = useAtom(userConfigAtom), { saveUserConfig: i } = useRequestClient(), a;
19421
+ e[0] !== i || e[1] !== n ? (a = async (e2) => {
19422
+ await i({
19423
+ config: e2
19424
+ }).then(() => {
19425
+ n((t2) => ({
19426
+ ...t2,
19427
+ ...e2
19428
+ }));
19429
+ });
19430
+ }, e[0] = i, e[1] = n, e[2] = a) : a = e[2];
19431
+ let o = a, s;
19432
+ e[3] !== o || e[4] !== t ? (s = async (e2, n2) => {
19433
+ var _a2, _b, _c, _d, _e2;
19434
+ let i2 = getModelKeyForRole(n2);
19435
+ i2 && await o({
19436
+ ai: {
19437
+ ...t.ai,
19438
+ models: {
19439
+ custom_models: ((_b = (_a2 = t.ai) == null ? void 0 : _a2.models) == null ? void 0 : _b.custom_models) ?? [],
19440
+ displayed_models: ((_d = (_c = t.ai) == null ? void 0 : _c.models) == null ? void 0 : _d.displayed_models) ?? [],
19441
+ ...(_e2 = t.ai) == null ? void 0 : _e2.models,
19442
+ [i2]: e2
19443
+ }
19444
+ }
19445
+ });
19446
+ }, e[3] = o, e[4] = t, e[5] = s) : s = e[5];
19447
+ let c = s, d;
19448
+ e[6] !== o || e[7] !== t ? (d = async (e2) => {
19449
+ await o({
19450
+ ai: {
19451
+ ...t.ai,
19452
+ mode: e2
19453
+ }
19454
+ });
19455
+ }, e[6] = o, e[7] = t, e[8] = d) : d = e[8];
19456
+ let f = d, h;
19457
+ return e[9] !== f || e[10] !== c ? (h = {
19458
+ saveModelChange: c,
19459
+ saveModeChange: f
19460
+ }, e[9] = f, e[10] = c, e[11] = h) : h = e[11], h;
19461
+ };
19462
+ var import_compiler_runtime$62 = require_compiler_runtime();
19463
+ const aiPanelTabAtom = atomWithStorage("marimo:chrome:ai-panel-tab", "chat", jotaiJsonStorage);
19464
+ function useAiPanelTab() {
19465
+ let e = (0, import_compiler_runtime$62.c)(3), [t, n] = useAtom(aiPanelTabAtom), i;
19466
+ return e[0] !== t || e[1] !== n ? (i = {
19467
+ aiPanelTab: t,
19468
+ setAiPanelTab: n
19469
+ }, e[0] = t, e[1] = n, e[2] = i) : i = e[2], i;
19470
+ }
19471
+ var import_compiler_runtime$61 = require_compiler_runtime(), FIX_CHAT_MODE = "code_mode";
19472
+ function resolveAiPanelTab(e, t) {
19473
+ return e || (getFeatureFlag("external_agents") ? t : "chat");
19474
+ }
19475
+ function useOpenAiAssistant() {
19476
+ let e = (0, import_compiler_runtime$61.c)(6), { openApplication: t } = useChromeActions(), { setAiPanelTab: n } = useAiPanelTab(), { saveModeChange: i } = useModelChange(), a = useSetAtom(pendingAiPromptAtom), o = useStore(), s;
19477
+ return e[0] !== t || e[1] !== i || e[2] !== n || e[3] !== a || e[4] !== o ? (s = async (e2) => {
19478
+ let s2 = resolveAiPanelTab(e2.panel, o.get(aiPanelTabAtom)), c = o.get(aiModelConfiguredAtom), d = getFeatureFlag("external_agents") && o.get(agentSessionStateAtom).sessions.length > 0;
19479
+ if (!(s2 === "agents" ? d : c)) {
19480
+ toast({
19481
+ title: s2 === "agents" ? "No agent session" : "AI not configured",
19482
+ description: s2 === "agents" ? "Start an agent session or switch to the chat panel." : "Configure an AI provider and chat model to fix with AI.",
19483
+ variant: "danger"
19484
+ });
19485
+ return;
19486
+ }
19487
+ e2.panel && n(e2.panel), s2 === "chat" && await i(FIX_CHAT_MODE).catch(_temp$13), a({
19488
+ prompt: e2.prompt,
19489
+ submit: e2.submit ?? false
19490
+ }), t("ai");
19491
+ }, e[0] = t, e[1] = i, e[2] = n, e[3] = a, e[4] = o, e[5] = s) : s = e[5], useEvent_default(s);
19492
+ }
19493
+ function _temp$13() {
19494
+ return Logger.error("Failed to save mode change");
19495
+ }
19496
+ var import_compiler_runtime$60 = require_compiler_runtime(), fixModeAtom = atomWithStorage("marimo:ai-autofix-mode", "autofix", jotaiJsonStorage);
19355
19497
  function useFixMode() {
19356
19498
  let e = (0, import_compiler_runtime$60.c)(3), [t, n] = useAtom(fixModeAtom), i;
19357
19499
  return e[0] !== t || e[1] !== n ? (i = {
@@ -19360,21 +19502,38 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19360
19502
  }, e[0] = t, e[1] = n, e[2] = i) : i = e[2], i;
19361
19503
  }
19362
19504
  var import_compiler_runtime$59 = require_compiler_runtime();
19505
+ function buildFixPromptFromText(e, t, { includeDatasourceContext: n = false } = {}) {
19506
+ let i = `${t == null ? "My code gives the following error. Please fix it:" : `My cell (id: ${t}) produced the following error. Please fix it:`}
19507
+
19508
+ ${e}`;
19509
+ if (t != null && n) {
19510
+ let e2 = getDatasourceContext(t);
19511
+ e2 && (i += `
19512
+
19513
+ Database schema: ${e2}`);
19514
+ }
19515
+ return i;
19516
+ }
19517
+ function buildFixPrompt(e, t) {
19518
+ return buildFixPromptFromText(e.map((e2) => "msg" in e2 && e2.msg ? e2.msg : e2.type).join("\n"), t, {
19519
+ includeDatasourceContext: e.some((e2) => e2.type === "sql-error")
19520
+ });
19521
+ }
19363
19522
  const AutoFixButton = (e) => {
19364
- let t = (0, import_compiler_runtime$59.c)(21), { errors: n, cellId: i, className: o } = e, s = useStore(), { createNewCell: c } = useCellActions(), d = useAtomValue(aiFeaturesEnabledAtom), f;
19523
+ let t = (0, import_compiler_runtime$59.c)(26), { errors: n, cellId: i, className: o } = e, s = useStore(), { createNewCell: c } = useCellActions(), d = useAtomValue(aiFeaturesEnabledAtom), f;
19365
19524
  if (t[0] !== d || t[1] !== n) {
19366
19525
  let e2;
19367
19526
  t[3] === d ? e2 = t[4] : (e2 = (e3) => getAutoFixes(e3, {
19368
19527
  aiEnabled: d
19369
19528
  }), t[3] = d, t[4] = e2), f = n.flatMap(e2), t[0] = d, t[1] = n, t[2] = f;
19370
19529
  } else f = t[2];
19371
- let _ = f, v = useSetAtom(aiCompletionCellAtom);
19530
+ let _ = f, v = useSetAtom(aiCompletionCellAtom), y = useOpenAiAssistant();
19372
19531
  if (_.length === 0) return null;
19373
- let y = _[0], S;
19374
- t[5] !== i || t[6] !== c || t[7] !== y || t[8] !== v || t[9] !== s ? (S = (e2) => {
19532
+ let S = _[0], w;
19533
+ t[5] !== i || t[6] !== c || t[7] !== S || t[8] !== v || t[9] !== s ? (w = (e2) => {
19375
19534
  var _a2;
19376
19535
  let t2 = (_a2 = s.get(notebookAtom).cellHandles[i].current) == null ? void 0 : _a2.editorView;
19377
- y.onFix({
19536
+ S.onFix({
19378
19537
  addCodeBelow: (e3) => {
19379
19538
  c({
19380
19539
  cellId: i,
@@ -19390,63 +19549,90 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19390
19549
  triggerFix: e2
19391
19550
  }
19392
19551
  }), t2 == null ? void 0 : t2.focus();
19393
- }, t[5] = i, t[6] = c, t[7] = y, t[8] = v, t[9] = s, t[10] = S) : S = t[10];
19394
- let w = S, E;
19395
- t[11] === o ? E = t[12] : (E = cn("my-2", o), t[11] = o, t[12] = E);
19396
- let O;
19397
- t[13] !== y.description || t[14] !== y.fixType || t[15] !== y.title || t[16] !== w ? (O = y.fixType === "ai" ? (0, import_jsx_runtime.jsx)(AIFixButton, {
19398
- tooltip: y.description,
19399
- openPrompt: () => w(false),
19400
- applyAutofix: () => w(true)
19552
+ }, t[5] = i, t[6] = c, t[7] = S, t[8] = v, t[9] = s, t[10] = w) : w = t[10];
19553
+ let E = w, O;
19554
+ t[11] !== i || t[12] !== n || t[13] !== y ? (O = () => {
19555
+ y({
19556
+ prompt: buildFixPrompt(n, i)
19557
+ });
19558
+ }, t[11] = i, t[12] = n, t[13] = y, t[14] = O) : O = t[14];
19559
+ let A = O, M;
19560
+ t[15] === o ? M = t[16] : (M = cn("my-2", o), t[15] = o, t[16] = M);
19561
+ let I;
19562
+ t[17] !== S.description || t[18] !== S.fixType || t[19] !== S.title || t[20] !== E || t[21] !== A ? (I = S.fixType === "ai" ? (0, import_jsx_runtime.jsx)(AIFixButton, {
19563
+ tooltip: S.description,
19564
+ openPrompt: () => E(false),
19565
+ applyAutofix: () => E(true),
19566
+ openChat: A
19401
19567
  }) : (0, import_jsx_runtime.jsx)(Tooltip, {
19402
- content: y.description,
19568
+ content: S.description,
19403
19569
  align: "start",
19404
19570
  children: (0, import_jsx_runtime.jsxs)(Button, {
19405
19571
  size: "xs",
19406
19572
  variant: "outline",
19407
19573
  className: "font-normal",
19408
- onClick: () => w(false),
19574
+ onClick: () => E(false),
19409
19575
  children: [
19410
19576
  (0, import_jsx_runtime.jsx)(Wrench, {
19411
19577
  className: "h-3 w-3 mr-2"
19412
19578
  }),
19413
- y.title
19579
+ S.title
19414
19580
  ]
19415
19581
  })
19416
- }), t[13] = y.description, t[14] = y.fixType, t[15] = y.title, t[16] = w, t[17] = O) : O = t[17];
19417
- let A;
19418
- return t[18] !== E || t[19] !== O ? (A = (0, import_jsx_runtime.jsx)("div", {
19419
- className: E,
19420
- children: O
19421
- }), t[18] = E, t[19] = O, t[20] = A) : A = t[20], A;
19422
- };
19423
- var PromptIcon = Sparkles, AutofixIcon = Wrench, PromptTitle = "Suggest a prompt", AutofixTitle = "Fix with AI";
19582
+ }), t[17] = S.description, t[18] = S.fixType, t[19] = S.title, t[20] = E, t[21] = A, t[22] = I) : I = t[22];
19583
+ let z;
19584
+ return t[23] !== M || t[24] !== I ? (z = (0, import_jsx_runtime.jsx)("div", {
19585
+ className: M,
19586
+ children: I
19587
+ }), t[23] = M, t[24] = I, t[25] = z) : z = t[25], z;
19588
+ };
19589
+ var MODE_CONFIG = {
19590
+ autofix: {
19591
+ Icon: Wrench,
19592
+ title: "Inline AI Fix",
19593
+ description: "Apply AI fixes inline in the cell"
19594
+ },
19595
+ chat: {
19596
+ Icon: HatGlasses,
19597
+ title: "Fix with AI assistant",
19598
+ description: "Open the AI sidebar to fix"
19599
+ },
19600
+ prompt: {
19601
+ Icon: Sparkles,
19602
+ title: "Suggest a prompt",
19603
+ description: "Edit the prompt before applying"
19604
+ }
19605
+ }, FIX_MODES = [
19606
+ "autofix",
19607
+ "prompt",
19608
+ "chat"
19609
+ ];
19424
19610
  const AIFixButton = (e) => {
19425
- let t = (0, import_compiler_runtime$59.c)(21), { tooltip: n, openPrompt: i, applyAutofix: a } = e, { fixMode: o, setFixMode: s } = useFixMode(), c = o === "prompt" ? i : a, d;
19426
- t[0] === o ? d = t[1] : (d = o === "prompt" ? (0, import_jsx_runtime.jsx)(PromptIcon, {
19427
- className: "h-3 w-3 mr-2 mb-0.5"
19428
- }) : (0, import_jsx_runtime.jsx)(AutofixIcon, {
19611
+ let t = (0, import_compiler_runtime$59.c)(18), { tooltip: n, openPrompt: i, applyAutofix: a, openChat: o } = e, { fixMode: s, setFixMode: c } = useFixMode(), d = i;
19612
+ s === "chat" ? d = o : s === "autofix" && (d = a);
19613
+ let { Icon: f, title: _ } = MODE_CONFIG[s], v;
19614
+ t[0] === f ? v = t[1] : (v = (0, import_jsx_runtime.jsx)(f, {
19429
19615
  className: "h-3 w-3 mr-2 mb-0.5"
19430
- }), t[0] = o, t[1] = d);
19431
- let f = o === "prompt" ? PromptTitle : AutofixTitle, _;
19432
- t[2] !== c || t[3] !== d || t[4] !== f ? (_ = (0, import_jsx_runtime.jsxs)(Button, {
19616
+ }), t[0] = f, t[1] = v);
19617
+ let y;
19618
+ t[2] !== d || t[3] !== v || t[4] !== _ ? (y = (0, import_jsx_runtime.jsxs)(Button, {
19433
19619
  size: "xs",
19434
19620
  variant: "outline",
19435
19621
  className: "font-normal rounded-r-none border-r-0",
19436
- onClick: c,
19622
+ onClick: d,
19437
19623
  children: [
19438
- d,
19439
- f
19624
+ v,
19625
+ _
19440
19626
  ]
19441
- }), t[2] = c, t[3] = d, t[4] = f, t[5] = _) : _ = t[5];
19442
- let v;
19443
- t[6] !== _ || t[7] !== n ? (v = (0, import_jsx_runtime.jsx)(Tooltip, {
19627
+ }), t[2] = d, t[3] = v, t[4] = _, t[5] = y) : y = t[5];
19628
+ let S;
19629
+ t[6] !== y || t[7] !== n ? (S = (0, import_jsx_runtime.jsx)(Tooltip, {
19444
19630
  content: n,
19445
19631
  align: "start",
19446
- children: _
19447
- }), t[6] = _, t[7] = n, t[8] = v) : v = t[8];
19448
- let y;
19449
- t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (y = (0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
19632
+ children: y
19633
+ }), t[6] = y, t[7] = n, t[8] = S) : S = t[8];
19634
+ let w;
19635
+ t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = (0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
19450
19636
  asChild: true,
19451
19637
  children: (0, import_jsx_runtime.jsx)(Button, {
19452
19638
  size: "xs",
@@ -19457,72 +19643,72 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19457
19643
  className: "h-3 w-3"
19458
19644
  })
19459
19645
  })
19460
- }), t[9] = y) : y = t[9];
19461
- let S;
19462
- t[10] !== o || t[11] !== s ? (S = () => {
19463
- s(o === "prompt" ? "autofix" : "prompt");
19464
- }, t[10] = o, t[11] = s, t[12] = S) : S = t[12];
19465
- let w = o === "prompt" ? "autofix" : "prompt", E;
19466
- t[13] === w ? E = t[14] : (E = (0, import_jsx_runtime.jsx)(AiModeItem, {
19467
- mode: w
19468
- }), t[13] = w, t[14] = E);
19646
+ }), t[9] = w) : w = t[9];
19647
+ let E;
19648
+ t[10] !== s || t[11] !== c ? (E = FIX_MODES.map((e2) => (0, import_jsx_runtime.jsx)(DropdownMenuItem, {
19649
+ className: "flex items-center gap-2",
19650
+ onClick: () => c(e2),
19651
+ children: (0, import_jsx_runtime.jsx)(AiModeItem, {
19652
+ mode: e2,
19653
+ selected: e2 === s
19654
+ })
19655
+ }, e2)), t[10] = s, t[11] = c, t[12] = E) : E = t[12];
19469
19656
  let O;
19470
- t[15] !== S || t[16] !== E ? (O = (0, import_jsx_runtime.jsxs)(DropdownMenu, {
19657
+ t[13] === E ? O = t[14] : (O = (0, import_jsx_runtime.jsxs)(DropdownMenu, {
19471
19658
  children: [
19472
- y,
19659
+ w,
19473
19660
  (0, import_jsx_runtime.jsx)(DropdownMenuContent, {
19474
19661
  align: "end",
19475
19662
  className: "w-56",
19476
- children: (0, import_jsx_runtime.jsx)(DropdownMenuItem, {
19477
- className: "flex items-center gap-2",
19478
- onClick: S,
19479
- children: E
19480
- })
19663
+ children: E
19481
19664
  })
19482
19665
  ]
19483
- }), t[15] = S, t[16] = E, t[17] = O) : O = t[17];
19666
+ }), t[13] = E, t[14] = O);
19484
19667
  let A;
19485
- return t[18] !== O || t[19] !== v ? (A = (0, import_jsx_runtime.jsxs)("div", {
19668
+ return t[15] !== S || t[16] !== O ? (A = (0, import_jsx_runtime.jsxs)("div", {
19486
19669
  className: "flex",
19487
19670
  children: [
19488
- v,
19671
+ S,
19489
19672
  O
19490
19673
  ]
19491
- }), t[18] = O, t[19] = v, t[20] = A) : A = t[20], A;
19674
+ }), t[15] = S, t[16] = O, t[17] = A) : A = t[17], A;
19492
19675
  };
19493
19676
  var AiModeItem = (e) => {
19494
- let t = (0, import_compiler_runtime$59.c)(12), { mode: n } = e, i;
19495
- t[0] === n ? i = t[1] : (i = n === "prompt" ? (0, import_jsx_runtime.jsx)(PromptIcon, {
19496
- className: "h-4 w-4"
19497
- }) : (0, import_jsx_runtime.jsx)(AutofixIcon, {
19498
- className: "h-4 w-4"
19499
- }), t[0] = n, t[1] = i);
19500
- let a = i, o = n === "prompt" ? PromptTitle : AutofixTitle, s = n === "prompt" ? "Edit the prompt before applying" : "Apply AI fixes automatically", c;
19501
- t[2] === o ? c = t[3] : (c = (0, import_jsx_runtime.jsx)("span", {
19677
+ let t = (0, import_compiler_runtime$59.c)(15), { mode: n, selected: i } = e, { Icon: a, title: o, description: s } = MODE_CONFIG[n], c;
19678
+ t[0] === a ? c = t[1] : (c = (0, import_jsx_runtime.jsx)(a, {
19679
+ className: "h-4 w-4 shrink-0"
19680
+ }), t[0] = a, t[1] = c);
19681
+ let d;
19682
+ t[2] === o ? d = t[3] : (d = (0, import_jsx_runtime.jsx)("span", {
19502
19683
  className: "font-medium",
19503
19684
  children: o
19504
- }), t[2] = o, t[3] = c);
19505
- let d;
19506
- t[4] === s ? d = t[5] : (d = (0, import_jsx_runtime.jsx)("span", {
19685
+ }), t[2] = o, t[3] = d);
19686
+ let f;
19687
+ t[4] === s ? f = t[5] : (f = (0, import_jsx_runtime.jsx)("span", {
19507
19688
  className: "text-xs text-muted-foreground",
19508
19689
  children: s
19509
- }), t[4] = s, t[5] = d);
19510
- let f;
19511
- t[6] !== c || t[7] !== d ? (f = (0, import_jsx_runtime.jsxs)("div", {
19690
+ }), t[4] = s, t[5] = f);
19691
+ let h;
19692
+ t[6] !== d || t[7] !== f ? (h = (0, import_jsx_runtime.jsxs)("div", {
19512
19693
  className: "flex flex-col",
19513
19694
  children: [
19514
- c,
19515
- d
19695
+ d,
19696
+ f
19516
19697
  ]
19517
- }), t[6] = c, t[7] = d, t[8] = f) : f = t[8];
19518
- let h;
19519
- return t[9] !== a || t[10] !== f ? (h = (0, import_jsx_runtime.jsxs)("div", {
19520
- className: "flex items-center gap-2",
19698
+ }), t[6] = d, t[7] = f, t[8] = h) : h = t[8];
19699
+ let _;
19700
+ t[9] === i ? _ = t[10] : (_ = i && (0, import_jsx_runtime.jsx)(Check, {
19701
+ className: "h-4 w-4 ml-auto shrink-0"
19702
+ }), t[9] = i, t[10] = _);
19703
+ let v;
19704
+ return t[11] !== c || t[12] !== h || t[13] !== _ ? (v = (0, import_jsx_runtime.jsxs)("div", {
19705
+ className: "flex items-center gap-2 w-full",
19521
19706
  children: [
19522
- a,
19523
- f
19707
+ c,
19708
+ h,
19709
+ _
19524
19710
  ]
19525
- }), t[9] = a, t[10] = f, t[11] = h) : h = t[11], h;
19711
+ }), t[11] = c, t[12] = h, t[13] = _, t[14] = v) : v = t[14], v;
19526
19712
  };
19527
19713
  require_compiler_runtime();
19528
19714
  function useFilename() {
@@ -19935,18 +20121,18 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19935
20121
  }
19936
20122
  let y, S, w, E, O, A;
19937
20123
  if (t[2] !== f || t[3] !== i || t[4] !== s || t[5] !== o || t[6] !== n || t[7] !== c || t[8] !== v || t[9] !== _ || t[10] !== d) {
19938
- let e2 = n.filter(_temp8), M2 = n.filter(_temp9), I2 = n.filter(_temp0), z = n.filter(_temp1), U = n.filter(_temp10), K = n.filter(_temp11), q = n.filter(_temp12), J = n.filter(_temp13), Q = n.filter(_temp14), $ = n.filter(_temp15), Fq = n.filter(_temp16), Iq = n.filter(_temp17), Lq = n.filter(_temp18), Rq;
19939
- t[17] === s ? Rq = t[18] : (Rq = () => {
20124
+ let e2 = n.filter(_temp8), I2 = n.filter(_temp9), z2 = n.filter(_temp0), U = n.filter(_temp1), K = n.filter(_temp10), q = n.filter(_temp11), J = n.filter(_temp12), Q = n.filter(_temp13), $ = n.filter(_temp14), Qq = n.filter(_temp15), $q = n.filter(_temp16), eJ = n.filter(_temp17), tJ = n.filter(_temp18), nJ;
20125
+ t[17] === s ? nJ = t[18] : (nJ = () => {
19940
20126
  s.openApplication("scratchpad");
19941
- }, t[17] = s, t[18] = Rq);
19942
- let zq = Rq, Vq = () => {
20127
+ }, t[17] = s, t[18] = nJ);
20128
+ let rJ = nJ, iJ = () => {
19943
20129
  let t2 = [];
19944
- if (Fq.length > 0 || Iq.length > 0) {
19945
- let e3 = Fq.some(_temp19), n2 = !e3 && Fq.some(_temp20);
20130
+ if ($q.length > 0 || eJ.length > 0) {
20131
+ let e3 = $q.some(_temp19), n2 = !e3 && $q.some(_temp20);
19946
20132
  t2.push((0, import_jsx_runtime.jsxs)("div", {
19947
20133
  children: [
19948
- Fq.map(_temp21),
19949
- Iq.map(_temp22),
20134
+ $q.map(_temp21),
20135
+ eJ.map(_temp22),
19950
20136
  e3 && (0, import_jsx_runtime.jsxs)(Button, {
19951
20137
  size: "xs",
19952
20138
  variant: "outline",
@@ -19977,8 +20163,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19977
20163
  }),
19978
20164
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
19979
20165
  errors: [
19980
- ...Fq,
19981
- ...Iq
20166
+ ...$q,
20167
+ ...eJ
19982
20168
  ],
19983
20169
  cellId: i
19984
20170
  })
@@ -20031,7 +20217,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
20031
20217
  ]
20032
20218
  })
20033
20219
  ]
20034
- }, "setup-refs")), M2.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20220
+ }, "setup-refs")), I2.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20035
20221
  children: [
20036
20222
  (0, import_jsx_runtime.jsx)("p", {
20037
20223
  className: "text-muted-foreground font-medium",
@@ -20039,10 +20225,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
20039
20225
  }),
20040
20226
  (0, import_jsx_runtime.jsx)("ul", {
20041
20227
  className: "list-disc",
20042
- children: M2.flatMap(_temp24)
20228
+ children: I2.flatMap(_temp24)
20043
20229
  }),
20044
20230
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
20045
- errors: M2,
20231
+ errors: I2,
20046
20232
  cellId: i
20047
20233
  }),
20048
20234
  (0, import_jsx_runtime.jsxs)(Tip, {
@@ -20077,17 +20263,17 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
20077
20263
  ]
20078
20264
  })
20079
20265
  ]
20080
- }, "cycle")), I2.length > 0) {
20081
- let e3 = I2[0].name;
20266
+ }, "cycle")), z2.length > 0) {
20267
+ let e3 = z2[0].name;
20082
20268
  t2.push((0, import_jsx_runtime.jsxs)("div", {
20083
20269
  children: [
20084
20270
  (0, import_jsx_runtime.jsx)("p", {
20085
20271
  className: "text-muted-foreground font-medium",
20086
20272
  children: "This cell redefines variables from other cells."
20087
20273
  }),
20088
- I2.map(_temp26),
20274
+ z2.map(_temp26),
20089
20275
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
20090
- errors: I2,
20276
+ errors: z2,
20091
20277
  cellId: i
20092
20278
  }),
20093
20279
  (0, import_jsx_runtime.jsxs)(Tip, {
@@ -20139,7 +20325,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
20139
20325
  size: "xs",
20140
20326
  variant: "link",
20141
20327
  className: "my-2 font-normal mx-0 px-0",
20142
- onClick: zq,
20328
+ onClick: rJ,
20143
20329
  children: [
20144
20330
  (0, import_jsx_runtime.jsx)(NotebookPen, {
20145
20331
  className: "h-3"
@@ -20158,11 +20344,11 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
20158
20344
  ]
20159
20345
  }, "multiple-defs"));
20160
20346
  }
20161
- return z.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20347
+ return U.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20162
20348
  children: [
20163
- z.map(_temp27),
20349
+ U.map(_temp27),
20164
20350
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
20165
- errors: z,
20351
+ errors: U,
20166
20352
  cellId: i
20167
20353
  }),
20168
20354
  (0, import_jsx_runtime.jsxs)(Tip, {
@@ -20200,17 +20386,17 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
20200
20386
  ]
20201
20387
  })
20202
20388
  ]
20203
- }, "import-star")), U.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20389
+ }, "import-star")), K.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20204
20390
  children: [
20205
- U.map(_temp28),
20391
+ K.map(_temp28),
20206
20392
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
20207
- errors: U,
20393
+ errors: K,
20208
20394
  cellId: i
20209
20395
  })
20210
20396
  ]
20211
- }, "interruption")), K.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("ul", {
20397
+ }, "interruption")), q.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("ul", {
20212
20398
  children: [
20213
- K.map((e3, t3) => e3.exception_type === "NameError" && e3.msg.startsWith("name 'mo'") ? (0, import_jsx_runtime.jsx)("li", {
20399
+ q.map((e3, t3) => e3.exception_type === "NameError" && e3.msg.startsWith("name 'mo'") ? (0, import_jsx_runtime.jsx)("li", {
20214
20400
  className: "my-2",
20215
20401
  children: (0, import_jsx_runtime.jsxs)("div", {
20216
20402
  children: [
@@ -20295,61 +20481,61 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
20295
20481
  ]
20296
20482
  })
20297
20483
  }, `exception-${t3}`)),
20298
- K.some(_temp29) && (0, import_jsx_runtime.jsx)(Tip, {
20484
+ q.some(_temp29) && (0, import_jsx_runtime.jsx)(Tip, {
20299
20485
  children: "Fix the error in the mentioned cells, or handle the exceptions with try/except blocks."
20300
20486
  }),
20301
20487
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
20302
- errors: K,
20488
+ errors: q,
20303
20489
  cellId: i
20304
20490
  })
20305
20491
  ]
20306
- }, "exception")), q.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("ul", {
20492
+ }, "exception")), J.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("ul", {
20307
20493
  children: [
20308
- q.map(_temp30),
20494
+ J.map(_temp30),
20309
20495
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
20310
- errors: q,
20496
+ errors: J,
20311
20497
  cellId: i
20312
20498
  }),
20313
20499
  (0, import_jsx_runtime.jsx)(Tip, {
20314
- children: q.some(_temp31) ? "Ensure that the referenced cells define the required variables, or turn off strict execution." : "Something is wrong with your declarations. Fix any discrepancies, or turn off strict execution."
20500
+ children: J.some(_temp31) ? "Ensure that the referenced cells define the required variables, or turn off strict execution." : "Something is wrong with your declarations. Fix any discrepancies, or turn off strict execution."
20315
20501
  })
20316
20502
  ]
20317
- }, "strict-exception")), J.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20503
+ }, "strict-exception")), Q.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20318
20504
  children: [
20319
- J.map(_temp32),
20505
+ Q.map(_temp32),
20320
20506
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
20321
- errors: J,
20507
+ errors: Q,
20322
20508
  cellId: i
20323
20509
  })
20324
20510
  ]
20325
- }, "internal")), Q.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20511
+ }, "internal")), $.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20326
20512
  children: [
20327
- Q.map(_temp33),
20513
+ $.map(_temp33),
20328
20514
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
20329
- errors: Q,
20515
+ errors: $,
20330
20516
  cellId: i
20331
20517
  })
20332
20518
  ]
20333
- }, "ancestor-prevented")), $.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20519
+ }, "ancestor-prevented")), Qq.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20334
20520
  children: [
20335
- $.map(_temp34),
20521
+ Qq.map(_temp34),
20336
20522
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
20337
- errors: $,
20523
+ errors: Qq,
20338
20524
  cellId: i
20339
20525
  })
20340
20526
  ]
20341
- }, "ancestor-stopped")), Lq.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20527
+ }, "ancestor-stopped")), tJ.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20342
20528
  children: [
20343
- Lq.map(_temp35),
20529
+ tJ.map(_temp35),
20344
20530
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
20345
- errors: Lq,
20531
+ errors: tJ,
20346
20532
  cellId: i,
20347
20533
  className: "mt-2.5"
20348
20534
  })
20349
20535
  ]
20350
20536
  }, "sql-errors")), t2;
20351
- }, Hq;
20352
- t[19] === v ? Hq = t[20] : (Hq = v && (0, import_jsx_runtime.jsxs)("div", {
20537
+ }, aJ;
20538
+ t[19] === v ? aJ = t[20] : (aJ = v && (0, import_jsx_runtime.jsxs)("div", {
20353
20539
  className: "flex items-center gap-1 font-code text-[0.6875rem] uppercase tracking-wider text-muted-foreground/70",
20354
20540
  children: [
20355
20541
  v,
@@ -20361,37 +20547,37 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
20361
20547
  })
20362
20548
  })
20363
20549
  ]
20364
- }), t[19] = v, t[20] = Hq);
20365
- let Uq;
20366
- t[21] !== _ || t[22] !== d ? (Uq = d && (0, import_jsx_runtime.jsx)(AlertTitle, {
20550
+ }), t[19] = v, t[20] = aJ);
20551
+ let oJ;
20552
+ t[21] !== _ || t[22] !== d ? (oJ = d && (0, import_jsx_runtime.jsx)(AlertTitle, {
20367
20553
  className: `font-code font-medium ${_}`,
20368
20554
  children: d
20369
- }), t[21] = _, t[22] = d, t[23] = Uq) : Uq = t[23];
20370
- let Wq;
20371
- t[24] !== Hq || t[25] !== Uq ? (Wq = (0, import_jsx_runtime.jsxs)("div", {
20555
+ }), t[21] = _, t[22] = d, t[23] = oJ) : oJ = t[23];
20556
+ let sJ;
20557
+ t[24] !== aJ || t[25] !== oJ ? (sJ = (0, import_jsx_runtime.jsxs)("div", {
20372
20558
  className: "space-y-0.5",
20373
20559
  children: [
20374
- Hq,
20375
- Uq
20560
+ aJ,
20561
+ oJ
20376
20562
  ]
20377
- }), t[24] = Hq, t[25] = Uq, t[26] = Wq) : Wq = t[26];
20378
- let Gq = Wq;
20379
- y = Alert, E = f, t[27] === o ? O = t[28] : (O = cn("border-none font-code text-sm text-[0.84375rem] p-0 text-muted-foreground normal has-[svg]:pl-0 space-y-2", o), t[27] = o, t[28] = O), A = Gq, S = "flex flex-col gap-4", w = Vq(), t[2] = f, t[3] = i, t[4] = s, t[5] = o, t[6] = n, t[7] = c, t[8] = v, t[9] = _, t[10] = d, t[11] = y, t[12] = S, t[13] = w, t[14] = E, t[15] = O, t[16] = A;
20563
+ }), t[24] = aJ, t[25] = oJ, t[26] = sJ) : sJ = t[26];
20564
+ let cJ = sJ;
20565
+ y = Alert, E = f, t[27] === o ? O = t[28] : (O = cn("border-none font-code text-sm text-[0.84375rem] p-0 text-muted-foreground normal has-[svg]:pl-0 space-y-2", o), t[27] = o, t[28] = O), A = cJ, S = "flex flex-col gap-4", w = iJ(), t[2] = f, t[3] = i, t[4] = s, t[5] = o, t[6] = n, t[7] = c, t[8] = v, t[9] = _, t[10] = d, t[11] = y, t[12] = S, t[13] = w, t[14] = E, t[15] = O, t[16] = A;
20380
20566
  } else y = t[11], S = t[12], w = t[13], E = t[14], O = t[15], A = t[16];
20381
- let M;
20382
- t[29] !== S || t[30] !== w ? (M = (0, import_jsx_runtime.jsx)("div", {
20567
+ let I;
20568
+ t[29] !== S || t[30] !== w ? (I = (0, import_jsx_runtime.jsx)("div", {
20383
20569
  className: S,
20384
20570
  children: w
20385
- }), t[29] = S, t[30] = w, t[31] = M) : M = t[31];
20386
- let I;
20387
- return t[32] !== y || t[33] !== E || t[34] !== O || t[35] !== A || t[36] !== M ? (I = (0, import_jsx_runtime.jsxs)(y, {
20571
+ }), t[29] = S, t[30] = w, t[31] = I) : I = t[31];
20572
+ let z;
20573
+ return t[32] !== y || t[33] !== E || t[34] !== O || t[35] !== A || t[36] !== I ? (z = (0, import_jsx_runtime.jsxs)(y, {
20388
20574
  variant: E,
20389
20575
  className: O,
20390
20576
  children: [
20391
20577
  A,
20392
- M
20578
+ I
20393
20579
  ]
20394
- }), t[32] = y, t[33] = E, t[34] = O, t[35] = A, t[36] = M, t[37] = I) : I = t[37], I;
20580
+ }), t[32] = y, t[33] = E, t[34] = O, t[35] = A, t[36] = I, t[37] = z) : z = t[37], z;
20395
20581
  };
20396
20582
  function _temp$10(e) {
20397
20583
  return e.type === "interruption";
@@ -26434,7 +26620,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
26434
26620
  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 }) {
26435
26621
  let E = (0, import_react.useContext)(PanelGroupContext);
26436
26622
  if (E === null) throw Error("Panel components must be rendered within a PanelGroup container");
26437
- let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: q, resizePanel: J, unregisterPanel: Q } = E, $ = useUniqueId(s), Fq = (0, import_react.useRef)({
26623
+ let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: q, resizePanel: J, unregisterPanel: Q } = E, $ = useUniqueId(s), Qq = (0, import_react.useRef)({
26438
26624
  callbacks: {
26439
26625
  onCollapse: f,
26440
26626
  onExpand: h,
@@ -26454,12 +26640,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
26454
26640
  (0, import_react.useRef)({
26455
26641
  didLogMissingDefaultSizeWarning: false
26456
26642
  }), useIsomorphicLayoutEffect$1(() => {
26457
- let { callbacks: e2, constraints: t2 } = Fq.current, o2 = {
26643
+ let { callbacks: e2, constraints: t2 } = Qq.current, o2 = {
26458
26644
  ...t2
26459
26645
  };
26460
- Fq.current.id = $, Fq.current.idIsFromProps = s !== void 0, Fq.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(Fq.current, o2);
26646
+ Qq.current.id = $, Qq.current.idIsFromProps = s !== void 0, Qq.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(Qq.current, o2);
26461
26647
  }), useIsomorphicLayoutEffect$1(() => {
26462
- let e2 = Fq.current;
26648
+ let e2 = Qq.current;
26463
26649
  return q(e2), () => {
26464
26650
  Q(e2);
26465
26651
  };
@@ -26470,25 +26656,25 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
26470
26656
  Q
26471
26657
  ]), (0, import_react.useImperativeHandle)(o, () => ({
26472
26658
  collapse: () => {
26473
- O(Fq.current);
26659
+ O(Qq.current);
26474
26660
  },
26475
26661
  expand: (e2) => {
26476
- A(Fq.current, e2);
26662
+ A(Qq.current, e2);
26477
26663
  },
26478
26664
  getId() {
26479
26665
  return $;
26480
26666
  },
26481
26667
  getSize() {
26482
- return M(Fq.current);
26668
+ return M(Qq.current);
26483
26669
  },
26484
26670
  isCollapsed() {
26485
- return U(Fq.current);
26671
+ return U(Qq.current);
26486
26672
  },
26487
26673
  isExpanded() {
26488
- return !U(Fq.current);
26674
+ return !U(Qq.current);
26489
26675
  },
26490
26676
  resize: (e2) => {
26491
- J(Fq.current, e2);
26677
+ J(Qq.current, e2);
26492
26678
  }
26493
26679
  }), [
26494
26680
  O,
@@ -26498,21 +26684,21 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
26498
26684
  $,
26499
26685
  J
26500
26686
  ]);
26501
- let Iq = I(Fq.current, a);
26687
+ let $q = I(Qq.current, a);
26502
26688
  return (0, import_react.createElement)(S, {
26503
26689
  ...w,
26504
26690
  children: e,
26505
26691
  className: t,
26506
26692
  id: $,
26507
26693
  style: {
26508
- ...Iq,
26694
+ ...$q,
26509
26695
  ...y
26510
26696
  },
26511
26697
  [DATA_ATTRIBUTES.groupId]: z,
26512
26698
  [DATA_ATTRIBUTES.panel]: "",
26513
26699
  [DATA_ATTRIBUTES.panelCollapsible]: i || void 0,
26514
26700
  [DATA_ATTRIBUTES.panelId]: $,
26515
- [DATA_ATTRIBUTES.panelSize]: parseFloat("" + Iq.flexGrow).toFixed(1)
26701
+ [DATA_ATTRIBUTES.panelSize]: parseFloat("" + $q.flexGrow).toFixed(1)
26516
26702
  });
26517
26703
  }
26518
26704
  Panel = (0, import_react.forwardRef)((e, t) => (0, import_react.createElement)(PanelWithForwardedRef, {
@@ -27297,13 +27483,13 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27297
27483
  }, [
27298
27484
  S,
27299
27485
  E
27300
- ]), Fq = (0, import_react.useCallback)((e2) => {
27486
+ ]), Qq = (0, import_react.useCallback)((e2) => {
27301
27487
  let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
27302
27488
  return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), a2 === true && fuzzyNumbersEqual$1(o2, i2);
27303
- }, []), Iq = (0, import_react.useCallback)((e2) => {
27489
+ }, []), $q = (0, import_react.useCallback)((e2) => {
27304
27490
  let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
27305
27491
  return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), !a2 || fuzzyCompareNumbers(o2, i2) > 0;
27306
- }, []), Lq = (0, import_react.useCallback)((e2) => {
27492
+ }, []), eJ = (0, import_react.useCallback)((e2) => {
27307
27493
  let { panelDataArray: t2 } = K.current;
27308
27494
  t2.push(e2), t2.sort((e3, t3) => {
27309
27495
  let n2 = e3.order, i2 = t3.order;
@@ -27335,7 +27521,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27335
27521
  e2.layout = [];
27336
27522
  };
27337
27523
  }, []);
27338
- let Rq = (0, import_react.useCallback)((e2) => {
27524
+ let tJ = (0, import_react.useCallback)((e2) => {
27339
27525
  let t2 = false, n2 = y.current;
27340
27526
  return n2 && window.getComputedStyle(n2, null).getPropertyValue("direction") === "rtl" && (t2 = true), function(n3) {
27341
27527
  n3.preventDefault();
@@ -27353,7 +27539,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27353
27539
  }), I2 = !compareLayouts(f2, A2);
27354
27540
  (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));
27355
27541
  };
27356
- }, []), zq = (0, import_react.useCallback)((e2, t2) => {
27542
+ }, []), nJ = (0, import_react.useCallback)((e2, t2) => {
27357
27543
  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);
27358
27544
  assert(s2 != null, `Panel size not found for panel "${e2.id}"`);
27359
27545
  let d2 = adjustLayoutByDelta({
@@ -27365,12 +27551,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27365
27551
  trigger: "imperative-api"
27366
27552
  });
27367
27553
  compareLayouts(i2, d2) || (O(d2), K.current.layout = d2, n2 && n2(d2), callPanelCallbacks(a2, d2, M.current));
27368
- }, []), Bq = (0, import_react.useCallback)((e2, t2) => {
27554
+ }, []), rJ = (0, import_react.useCallback)((e2, t2) => {
27369
27555
  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);
27370
- h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) || zq(e2, s2) : h2 < f2 ? zq(e2, f2) : h2 > d2 && zq(e2, d2));
27556
+ h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) || nJ(e2, s2) : h2 < f2 ? nJ(e2, f2) : h2 > d2 && nJ(e2, d2));
27371
27557
  }, [
27372
- zq
27373
- ]), Vq = (0, import_react.useCallback)((e2, t2) => {
27558
+ nJ
27559
+ ]), iJ = (0, import_react.useCallback)((e2, t2) => {
27374
27560
  let { direction: n2 } = U.current, { layout: i2 } = K.current;
27375
27561
  if (!y.current) return;
27376
27562
  let a2 = getResizeHandleElement(e2, y.current);
@@ -27382,14 +27568,14 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27382
27568
  initialCursorPosition: o2,
27383
27569
  initialLayout: i2
27384
27570
  });
27385
- }, []), Hq = (0, import_react.useCallback)(() => {
27571
+ }, []), aJ = (0, import_react.useCallback)(() => {
27386
27572
  w(null);
27387
- }, []), Uq = (0, import_react.useCallback)((e2) => {
27573
+ }, []), oJ = (0, import_react.useCallback)((e2) => {
27388
27574
  let { panelDataArray: t2 } = K.current, n2 = findPanelDataIndex(t2, e2);
27389
27575
  n2 >= 0 && (t2.splice(n2, 1), delete M.current[e2.id], K.current.panelDataArrayChanged = true, A());
27390
27576
  }, [
27391
27577
  A
27392
- ]), Wq = (0, import_react.useMemo)(() => ({
27578
+ ]), sJ = (0, import_react.useMemo)(() => ({
27393
27579
  collapsePanel: q,
27394
27580
  direction: i,
27395
27581
  dragState: S,
@@ -27397,15 +27583,15 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27397
27583
  getPanelSize: Q,
27398
27584
  getPanelStyle: $,
27399
27585
  groupId: v,
27400
- isPanelCollapsed: Fq,
27401
- isPanelExpanded: Iq,
27402
- reevaluatePanelConstraints: Bq,
27403
- registerPanel: Lq,
27404
- registerResizeHandle: Rq,
27405
- resizePanel: zq,
27406
- startDragging: Vq,
27407
- stopDragging: Hq,
27408
- unregisterPanel: Uq,
27586
+ isPanelCollapsed: Qq,
27587
+ isPanelExpanded: $q,
27588
+ reevaluatePanelConstraints: rJ,
27589
+ registerPanel: eJ,
27590
+ registerResizeHandle: tJ,
27591
+ resizePanel: nJ,
27592
+ startDragging: iJ,
27593
+ stopDragging: aJ,
27594
+ unregisterPanel: oJ,
27409
27595
  panelGroupElement: y.current
27410
27596
  }), [
27411
27597
  q,
@@ -27415,16 +27601,16 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27415
27601
  Q,
27416
27602
  $,
27417
27603
  v,
27418
- Fq,
27419
- Iq,
27420
- Bq,
27421
- Lq,
27422
- Rq,
27423
- zq,
27424
- Vq,
27425
- Hq,
27426
- Uq
27427
- ]), Gq = {
27604
+ Qq,
27605
+ $q,
27606
+ rJ,
27607
+ eJ,
27608
+ tJ,
27609
+ nJ,
27610
+ iJ,
27611
+ aJ,
27612
+ oJ
27613
+ ]), cJ = {
27428
27614
  display: "flex",
27429
27615
  flexDirection: i === "horizontal" ? "row" : "column",
27430
27616
  height: "100%",
@@ -27432,7 +27618,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27432
27618
  width: "100%"
27433
27619
  };
27434
27620
  return (0, import_react.createElement)(PanelGroupContext.Provider, {
27435
- value: Wq
27621
+ value: sJ
27436
27622
  }, (0, import_react.createElement)(h, {
27437
27623
  ..._,
27438
27624
  children: t,
@@ -27440,7 +27626,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27440
27626
  id: o,
27441
27627
  ref: y,
27442
27628
  style: {
27443
- ...Gq,
27629
+ ...cJ,
27444
27630
  ...f
27445
27631
  },
27446
27632
  [DATA_ATTRIBUTES.group]: "",
@@ -27517,31 +27703,31 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27517
27703
  });
27518
27704
  let O = (0, import_react.useContext)(PanelGroupContext);
27519
27705
  if (O === null) throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");
27520
- let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [$, Fq] = (0, import_react.useState)(false), [Iq, Lq] = (0, import_react.useState)(null), Rq = (0, import_react.useRef)({
27706
+ let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [$, Qq] = (0, import_react.useState)(false), [$q, eJ] = (0, import_react.useState)(null), tJ = (0, import_react.useRef)({
27521
27707
  state: J
27522
27708
  });
27523
27709
  useIsomorphicLayoutEffect$1(() => {
27524
- Rq.current.state = J;
27710
+ tJ.current.state = J;
27525
27711
  }), (0, import_react.useEffect)(() => {
27526
- if (n) Lq(null);
27712
+ if (n) eJ(null);
27527
27713
  else {
27528
27714
  let e2 = I(q);
27529
- Lq(() => e2);
27715
+ eJ(() => e2);
27530
27716
  }
27531
27717
  }, [
27532
27718
  n,
27533
27719
  q,
27534
27720
  I
27535
27721
  ]);
27536
- let zq = (i == null ? void 0 : i.coarse) ?? 15, Bq = (i == null ? void 0 : i.fine) ?? 5;
27722
+ let nJ = (i == null ? void 0 : i.coarse) ?? 15, rJ = (i == null ? void 0 : i.fine) ?? 5;
27537
27723
  (0, import_react.useEffect)(() => {
27538
- if (n || Iq == null) return;
27724
+ if (n || $q == null) return;
27539
27725
  let e2 = w.current;
27540
27726
  assert(e2, "Element ref not attached");
27541
27727
  let t2 = false;
27542
27728
  return registerResizeHandle(q, e2, A, {
27543
- coarse: zq,
27544
- fine: Bq
27729
+ coarse: nJ,
27730
+ fine: rJ
27545
27731
  }, (e3, n2, i2) => {
27546
27732
  if (!n2) {
27547
27733
  Q("inactive");
@@ -27555,8 +27741,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27555
27741
  break;
27556
27742
  }
27557
27743
  case "move": {
27558
- let { state: e4 } = Rq.current;
27559
- t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'), Iq(i2);
27744
+ let { state: e4 } = tJ.current;
27745
+ t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'), $q(i2);
27560
27746
  break;
27561
27747
  }
27562
27748
  case "up": {
@@ -27568,22 +27754,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27568
27754
  }
27569
27755
  });
27570
27756
  }, [
27571
- zq,
27757
+ nJ,
27572
27758
  A,
27573
27759
  n,
27574
- Bq,
27760
+ rJ,
27575
27761
  I,
27576
27762
  q,
27577
- Iq,
27763
+ $q,
27578
27764
  z,
27579
27765
  U
27580
27766
  ]), useWindowSplitterResizeHandlerBehavior({
27581
27767
  disabled: n,
27582
27768
  handleId: q,
27583
- resizeHandler: Iq,
27769
+ resizeHandler: $q,
27584
27770
  panelGroupElement: K
27585
27771
  });
27586
- let Vq = {
27772
+ let iJ = {
27587
27773
  touchAction: "none",
27588
27774
  userSelect: "none"
27589
27775
  };
@@ -27593,15 +27779,15 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27593
27779
  className: t,
27594
27780
  id: a,
27595
27781
  onBlur: () => {
27596
- Fq(false), o == null ? void 0 : o();
27782
+ Qq(false), o == null ? void 0 : o();
27597
27783
  },
27598
27784
  onFocus: () => {
27599
- Fq(true), d == null ? void 0 : d();
27785
+ Qq(true), d == null ? void 0 : d();
27600
27786
  },
27601
27787
  ref: w,
27602
27788
  role: "separator",
27603
27789
  style: {
27604
- ...Vq,
27790
+ ...iJ,
27605
27791
  ..._
27606
27792
  },
27607
27793
  tabIndex: v,
@@ -27900,7 +28086,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27900
28086
  }, [
27901
28087
  h
27902
28088
  ]), k(() => {
27903
- U(6, Iq);
28089
+ U(6, $q);
27904
28090
  }, []);
27905
28091
  let K = import_react.useMemo(() => ({
27906
28092
  subscribe: (e2) => (s.current.add(e2), () => s.current.delete(e2)),
@@ -27909,7 +28095,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27909
28095
  var _a2;
27910
28096
  var a2, o2, s2;
27911
28097
  if (!Object.is(n.current[e2], t2)) {
27912
- if (n.current[e2] = t2, e2 === "search") Fq(), Q(), U(1, $);
28098
+ if (n.current[e2] = t2, e2 === "search") Qq(), Q(), U(1, $);
27913
28099
  else if (e2 === "value") {
27914
28100
  if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
27915
28101
  let e3 = document.getElementById(I);
@@ -27917,8 +28103,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27917
28103
  }
27918
28104
  if (U(7, () => {
27919
28105
  var _a3;
27920
- n.current.selectedItemId = (_a3 = Lq()) == null ? void 0 : _a3.id, K.emit();
27921
- }), i2 || U(5, Iq), ((_a2 = c.current) == null ? void 0 : _a2.value) !== void 0) {
28106
+ n.current.selectedItemId = (_a3 = eJ()) == null ? void 0 : _a3.id, K.emit();
28107
+ }), i2 || U(5, $q), ((_a2 = c.current) == null ? void 0 : _a2.value) !== void 0) {
27922
28108
  let e3 = t2 ?? "";
27923
28109
  (s2 = (o2 = c.current).onValueChange) == null || s2.call(o2, e3);
27924
28110
  return;
@@ -27943,12 +28129,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27943
28129
  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([
27944
28130
  e2
27945
28131
  ]))), U(3, () => {
27946
- Fq(), Q(), n.current.value || $(), K.emit();
28132
+ Qq(), Q(), n.current.value || $(), K.emit();
27947
28133
  }), () => {
27948
28134
  o.current.delete(e2), i.current.delete(e2), n.current.filtered.items.delete(e2);
27949
- let t3 = Lq();
28135
+ let t3 = eJ();
27950
28136
  U(4, () => {
27951
- Fq(), (t3 == null ? void 0 : t3.getAttribute("id")) === e2 && $(), K.emit();
28137
+ Qq(), (t3 == null ? void 0 : t3.getAttribute("id")) === e2 && $(), K.emit();
27952
28138
  });
27953
28139
  }),
27954
28140
  group: (e2) => (a.current.has(e2) || a.current.set(e2, /* @__PURE__ */ new Set()), () => {
@@ -27981,7 +28167,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27981
28167
  ]);
27982
28168
  });
27983
28169
  let i2 = z.current;
27984
- Rq().sort((t3, n2) => {
28170
+ tJ().sort((t3, n2) => {
27985
28171
  let i3 = t3.getAttribute("id"), a2 = n2.getAttribute("id");
27986
28172
  return (e2.get(a2) ?? 0) - (e2.get(i3) ?? 0);
27987
28173
  }).forEach((e3) => {
@@ -27995,10 +28181,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27995
28181
  }
27996
28182
  function $() {
27997
28183
  var _a2;
27998
- let e2 = (_a2 = Rq().find((e3) => e3.getAttribute("aria-disabled") !== "true")) == null ? void 0 : _a2.getAttribute(T);
28184
+ let e2 = (_a2 = tJ().find((e3) => e3.getAttribute("aria-disabled") !== "true")) == null ? void 0 : _a2.getAttribute(T);
27999
28185
  K.setState("value", e2 || void 0);
28000
28186
  }
28001
- function Fq() {
28187
+ function Qq() {
28002
28188
  var _a2, _b;
28003
28189
  if (!n.current.search || c.current.shouldFilter === false) {
28004
28190
  n.current.filtered.count = i.current.size;
@@ -28016,43 +28202,43 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
28016
28202
  }
28017
28203
  n.current.filtered.count = e2;
28018
28204
  }
28019
- function Iq() {
28205
+ function $q() {
28020
28206
  var _a2, _b;
28021
28207
  var e2;
28022
- let t2 = Lq();
28208
+ let t2 = eJ();
28023
28209
  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({
28024
28210
  block: "nearest"
28025
28211
  })), t2.scrollIntoView({
28026
28212
  block: "nearest"
28027
28213
  }));
28028
28214
  }
28029
- function Lq() {
28215
+ function eJ() {
28030
28216
  var _a2;
28031
28217
  return (_a2 = z.current) == null ? void 0 : _a2.querySelector(`${le}[aria-selected="true"]`);
28032
28218
  }
28033
- function Rq() {
28219
+ function tJ() {
28034
28220
  var _a2;
28035
28221
  return Array.from(((_a2 = z.current) == null ? void 0 : _a2.querySelectorAll(ce$1)) || []);
28036
28222
  }
28037
- function zq(e2) {
28038
- let t2 = Rq()[e2];
28223
+ function nJ(e2) {
28224
+ let t2 = tJ()[e2];
28039
28225
  t2 && K.setState("value", t2.getAttribute(T));
28040
28226
  }
28041
- function Bq(e2) {
28227
+ function rJ(e2) {
28042
28228
  var t2;
28043
- let n2 = Lq(), i2 = Rq(), a2 = i2.findIndex((e3) => e3 === n2), o2 = i2[a2 + e2];
28229
+ let n2 = eJ(), i2 = tJ(), a2 = i2.findIndex((e3) => e3 === n2), o2 = i2[a2 + e2];
28044
28230
  (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));
28045
28231
  }
28046
- function Vq(e2) {
28232
+ function iJ(e2) {
28047
28233
  var _a2;
28048
- let t2 = (_a2 = Lq()) == null ? void 0 : _a2.closest(N$1), n2;
28234
+ let t2 = (_a2 = eJ()) == null ? void 0 : _a2.closest(N$1), n2;
28049
28235
  for (; t2 && !n2; ) t2 = e2 > 0 ? we(t2, N$1) : De(t2, N$1), n2 = t2 == null ? void 0 : t2.querySelector(ce$1);
28050
- n2 ? K.setState("value", n2.getAttribute(T)) : Bq(e2);
28236
+ n2 ? K.setState("value", n2.getAttribute(T)) : rJ(e2);
28051
28237
  }
28052
- let Hq = () => zq(Rq().length - 1), Uq = (e2) => {
28053
- e2.preventDefault(), e2.metaKey ? Hq() : e2.altKey ? Vq(1) : Bq(1);
28054
- }, Wq = (e2) => {
28055
- e2.preventDefault(), e2.metaKey ? zq(0) : e2.altKey ? Vq(-1) : Bq(-1);
28238
+ let aJ = () => nJ(tJ().length - 1), oJ = (e2) => {
28239
+ e2.preventDefault(), e2.metaKey ? aJ() : e2.altKey ? iJ(1) : rJ(1);
28240
+ }, sJ = (e2) => {
28241
+ e2.preventDefault(), e2.metaKey ? nJ(0) : e2.altKey ? iJ(-1) : rJ(-1);
28056
28242
  };
28057
28243
  return import_react.createElement(Primitive.div, {
28058
28244
  ref: t,
@@ -28066,27 +28252,27 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
28066
28252
  if (!(e2.defaultPrevented || n2)) switch (e2.key) {
28067
28253
  case "n":
28068
28254
  case "j":
28069
- E && e2.ctrlKey && Uq(e2);
28255
+ E && e2.ctrlKey && oJ(e2);
28070
28256
  break;
28071
28257
  case "ArrowDown":
28072
- Uq(e2);
28258
+ oJ(e2);
28073
28259
  break;
28074
28260
  case "p":
28075
28261
  case "k":
28076
- E && e2.ctrlKey && Wq(e2);
28262
+ E && e2.ctrlKey && sJ(e2);
28077
28263
  break;
28078
28264
  case "ArrowUp":
28079
- Wq(e2);
28265
+ sJ(e2);
28080
28266
  break;
28081
28267
  case "Home":
28082
- e2.preventDefault(), zq(0);
28268
+ e2.preventDefault(), nJ(0);
28083
28269
  break;
28084
28270
  case "End":
28085
- e2.preventDefault(), Hq();
28271
+ e2.preventDefault(), aJ();
28086
28272
  break;
28087
28273
  case "Enter": {
28088
28274
  e2.preventDefault();
28089
- let t3 = Lq();
28275
+ let t3 = eJ();
28090
28276
  if (t3) {
28091
28277
  let e3 = new Event(Z);
28092
28278
  t3.dispatchEvent(e3);
@@ -28493,155 +28679,155 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
28493
28679
  onSelect: Functions.NOOP
28494
28680
  });
28495
28681
  Combobox = (e) => {
28496
- let t = (0, import_compiler_runtime$35.c)(106), n, i, o, s, c, d, f, h, _, v, y, S, w, E, O, A, M, I, z, U, K, q, J, Q;
28497
- t[0] === e ? (n = t[1], i = t[2], o = t[3], s = t[4], c = t[5], d = t[6], f = t[7], h = t[8], _ = t[9], v = t[10], y = t[11], S = t[12], w = t[13], E = t[14], O = t[15], A = t[16], M = t[17], I = t[18], z = t[19], U = t[20], K = t[21], q = t[22], J = t[23], Q = t[24]) : ({ children: n, displayValue: d, className: o, placeholder: E, value: Q, defaultValue: c, onValueChange: S, multiple: I, shouldFilter: z, filterFn: f, open: w, defaultOpen: s, onOpenChange: v, inputPlaceholder: U, search: M, onSearchChange: y, emptyState: K, chips: q, chipsClassName: i, keepPopoverOpenOnSelect: _, id: h, disabled: J, renderValue: O, ...A } = e, t[0] = e, t[1] = n, t[2] = i, t[3] = o, t[4] = s, t[5] = c, t[6] = d, t[7] = f, t[8] = h, t[9] = _, t[10] = v, t[11] = y, t[12] = S, t[13] = w, t[14] = E, t[15] = O, t[16] = A, t[17] = M, t[18] = I, t[19] = z, t[20] = U, t[21] = K, t[22] = q, t[23] = J, t[24] = Q);
28498
- let $ = I === void 0 ? false : I, Fq = z === void 0 ? true : z, Iq = U === void 0 ? "Search..." : U, Lq = K === void 0 ? "Nothing found." : K, Rq = q === void 0 ? false : q, zq = J === void 0 ? false : J, Bq = s ?? false, Vq;
28499
- t[25] !== v || t[26] !== w || t[27] !== Bq ? (Vq = {
28682
+ let t = (0, import_compiler_runtime$35.c)(106), n, i, o, s, c, d, f, h, _, v, y, S, w, E, O, A, M, I, U, K, q, J, Q, $;
28683
+ t[0] === e ? (n = t[1], i = t[2], o = t[3], s = t[4], c = t[5], d = t[6], f = t[7], h = t[8], _ = t[9], v = t[10], y = t[11], S = t[12], w = t[13], E = t[14], O = t[15], A = t[16], M = t[17], I = t[18], U = t[19], K = t[20], q = t[21], J = t[22], Q = t[23], $ = t[24]) : ({ children: n, displayValue: d, className: o, placeholder: E, value: $, defaultValue: c, onValueChange: S, multiple: I, shouldFilter: U, filterFn: f, open: w, defaultOpen: s, onOpenChange: v, inputPlaceholder: K, search: M, onSearchChange: y, emptyState: q, chips: J, chipsClassName: i, keepPopoverOpenOnSelect: _, id: h, disabled: Q, renderValue: O, ...A } = e, t[0] = e, t[1] = n, t[2] = i, t[3] = o, t[4] = s, t[5] = c, t[6] = d, t[7] = f, t[8] = h, t[9] = _, t[10] = v, t[11] = y, t[12] = S, t[13] = w, t[14] = E, t[15] = O, t[16] = A, t[17] = M, t[18] = I, t[19] = U, t[20] = K, t[21] = q, t[22] = J, t[23] = Q, t[24] = $);
28684
+ let Qq = I === void 0 ? false : I, $q = U === void 0 ? true : U, eJ = K === void 0 ? "Search..." : K, tJ = q === void 0 ? "Nothing found." : q, nJ = J === void 0 ? false : J, rJ = Q === void 0 ? false : Q, iJ = s ?? false, aJ;
28685
+ t[25] !== v || t[26] !== w || t[27] !== iJ ? (aJ = {
28500
28686
  prop: w,
28501
- defaultProp: Bq,
28687
+ defaultProp: iJ,
28502
28688
  onChange: v
28503
- }, t[25] = v, t[26] = w, t[27] = Bq, t[28] = Vq) : Vq = t[28];
28504
- let [Hq, Uq] = useControllableState(Vq), Wq = Hq === void 0 ? false : Hq, Gq;
28505
- t[29] === S ? Gq = t[30] : (Gq = (e2) => {
28689
+ }, t[25] = v, t[26] = w, t[27] = iJ, t[28] = aJ) : aJ = t[28];
28690
+ let [oJ, sJ] = useControllableState(aJ), cJ = oJ === void 0 ? false : oJ, lJ;
28691
+ t[29] === S ? lJ = t[30] : (lJ = (e2) => {
28506
28692
  S == null ? void 0 : S(e2);
28507
- }, t[29] = S, t[30] = Gq);
28508
- let Kq;
28509
- t[31] !== c || t[32] !== Gq || t[33] !== Q ? (Kq = {
28510
- prop: Q,
28693
+ }, t[29] = S, t[30] = lJ);
28694
+ let uJ;
28695
+ t[31] !== c || t[32] !== lJ || t[33] !== $ ? (uJ = {
28696
+ prop: $,
28511
28697
  defaultProp: c,
28512
- onChange: Gq
28513
- }, t[31] = c, t[32] = Gq, t[33] = Q, t[34] = Kq) : Kq = t[34];
28514
- let [qq, Jq] = useControllableState(Kq), Yq;
28515
- t[35] === qq ? Yq = t[36] : (Yq = (e2) => Array.isArray(qq) ? qq.includes(e2) : qq === e2, t[35] = qq, t[36] = Yq);
28516
- let Xq = Yq, Zq;
28517
- t[37] !== _ || t[38] !== $ || t[39] !== Uq || t[40] !== Jq || t[41] !== qq ? (Zq = (e2) => {
28698
+ onChange: lJ
28699
+ }, t[31] = c, t[32] = lJ, t[33] = $, t[34] = uJ) : uJ = t[34];
28700
+ let [dJ, fJ] = useControllableState(uJ), pJ;
28701
+ t[35] === dJ ? pJ = t[36] : (pJ = (e2) => Array.isArray(dJ) ? dJ.includes(e2) : dJ === e2, t[35] = dJ, t[36] = pJ);
28702
+ let mJ = pJ, hJ;
28703
+ t[37] !== _ || t[38] !== Qq || t[39] !== sJ || t[40] !== fJ || t[41] !== dJ ? (hJ = (e2) => {
28518
28704
  let t2 = e2;
28519
- if ($) if (Array.isArray(qq)) if (qq.includes(t2)) {
28520
- let n2 = qq.filter((t3) => t3 !== e2);
28705
+ if (Qq) if (Array.isArray(dJ)) if (dJ.includes(t2)) {
28706
+ let n2 = dJ.filter((t3) => t3 !== e2);
28521
28707
  t2 = n2.length > 0 ? n2 : [];
28522
28708
  } else t2 = [
28523
- ...qq,
28709
+ ...dJ,
28524
28710
  t2
28525
28711
  ];
28526
28712
  else t2 = [
28527
28713
  t2
28528
28714
  ];
28529
- else qq === e2 && (t2 = null);
28530
- Jq(t2), (_ ?? $) || Uq(false);
28531
- }, t[37] = _, t[38] = $, t[39] = Uq, t[40] = Jq, t[41] = qq, t[42] = Zq) : Zq = t[42];
28532
- let Qq = Zq, $q;
28533
- t[43] !== Rq || t[44] !== d || t[45] !== $ || t[46] !== E || t[47] !== qq ? ($q = () => $ && Rq && E ? E : qq == null ? E ?? "--" : Array.isArray(qq) ? qq.length === 0 ? E ?? "--" : qq.length === 1 && d !== void 0 ? d(qq[0]) : `${qq.length} selected` : d === void 0 ? E ?? "--" : d(qq), t[43] = Rq, t[44] = d, t[45] = $, t[46] = E, t[47] = qq, t[48] = $q) : $q = t[48];
28534
- let eJ = $q, tJ;
28535
- t[49] !== Qq || t[50] !== Xq ? (tJ = {
28536
- isSelected: Xq,
28537
- onSelect: Qq
28538
- }, t[49] = Qq, t[50] = Xq, t[51] = tJ) : tJ = t[51];
28539
- let nJ = tJ, rJ;
28540
- t[52] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (rJ = cn("relative"), t[52] = rJ) : rJ = t[52];
28541
- let iJ;
28542
- t[53] !== zq || t[54] !== Uq ? (iJ = (e2) => {
28543
- zq && e2 || Uq(e2);
28544
- }, t[53] = zq, t[54] = Uq, t[55] = iJ) : iJ = t[55];
28545
- let oJ = zq && "cursor-not-allowed opacity-50", cJ;
28546
- t[56] !== o || t[57] !== oJ ? (cJ = cn("flex h-6 w-fit mb-1 shadow-xs-solid items-center justify-between rounded-sm border border-input bg-transparent px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground hover:shadow-sm-solid focus:outline-hidden focus:ring-1 focus:ring-ring focus:border-primary focus:shadow-md-solid", oJ, o), t[56] = o, t[57] = oJ, t[58] = cJ) : cJ = t[58];
28547
- let lJ;
28548
- t[59] !== O || t[60] !== eJ || t[61] !== qq ? (lJ = O ? O(qq ?? null) : eJ(), t[59] = O, t[60] = eJ, t[61] = qq, t[62] = lJ) : lJ = t[62];
28549
- let uJ;
28550
- t[63] === lJ ? uJ = t[64] : (uJ = (0, import_jsx_runtime.jsx)("span", {
28715
+ else dJ === e2 && (t2 = null);
28716
+ fJ(t2), (_ ?? Qq) || sJ(false);
28717
+ }, t[37] = _, t[38] = Qq, t[39] = sJ, t[40] = fJ, t[41] = dJ, t[42] = hJ) : hJ = t[42];
28718
+ let gJ = hJ, _J;
28719
+ t[43] !== nJ || t[44] !== d || t[45] !== Qq || t[46] !== E || t[47] !== dJ ? (_J = () => Qq && nJ && E ? E : dJ == null ? E ?? "--" : Array.isArray(dJ) ? dJ.length === 0 ? E ?? "--" : dJ.length === 1 && d !== void 0 ? d(dJ[0]) : `${dJ.length} selected` : d === void 0 ? E ?? "--" : d(dJ), t[43] = nJ, t[44] = d, t[45] = Qq, t[46] = E, t[47] = dJ, t[48] = _J) : _J = t[48];
28720
+ let vJ = _J, yJ;
28721
+ t[49] !== gJ || t[50] !== mJ ? (yJ = {
28722
+ isSelected: mJ,
28723
+ onSelect: gJ
28724
+ }, t[49] = gJ, t[50] = mJ, t[51] = yJ) : yJ = t[51];
28725
+ let bJ = yJ, xJ;
28726
+ t[52] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (xJ = cn("relative"), t[52] = xJ) : xJ = t[52];
28727
+ let CJ;
28728
+ t[53] !== rJ || t[54] !== sJ ? (CJ = (e2) => {
28729
+ rJ && e2 || sJ(e2);
28730
+ }, t[53] = rJ, t[54] = sJ, t[55] = CJ) : CJ = t[55];
28731
+ let TJ = rJ && "cursor-not-allowed opacity-50", EJ;
28732
+ t[56] !== o || t[57] !== TJ ? (EJ = cn("flex h-6 w-fit mb-1 shadow-xs-solid items-center justify-between rounded-sm border border-input bg-transparent px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground hover:shadow-sm-solid focus:outline-hidden focus:ring-1 focus:ring-ring focus:border-primary focus:shadow-md-solid", TJ, o), t[56] = o, t[57] = TJ, t[58] = EJ) : EJ = t[58];
28733
+ let DJ;
28734
+ t[59] !== O || t[60] !== vJ || t[61] !== dJ ? (DJ = O ? O(dJ ?? null) : vJ(), t[59] = O, t[60] = vJ, t[61] = dJ, t[62] = DJ) : DJ = t[62];
28735
+ let OJ;
28736
+ t[63] === DJ ? OJ = t[64] : (OJ = (0, import_jsx_runtime.jsx)("span", {
28551
28737
  className: "truncate flex-1 min-w-0",
28552
- children: lJ
28553
- }), t[63] = lJ, t[64] = uJ);
28554
- let dJ;
28555
- t[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (dJ = (0, import_jsx_runtime.jsx)(ChevronDown, {
28738
+ children: DJ
28739
+ }), t[63] = DJ, t[64] = OJ);
28740
+ let kJ;
28741
+ t[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (kJ = (0, import_jsx_runtime.jsx)(ChevronDown, {
28556
28742
  className: "ml-3 w-4 h-4 opacity-50 shrink-0"
28557
- }), t[65] = dJ) : dJ = t[65];
28558
- let fJ;
28559
- t[66] !== zq || t[67] !== h || t[68] !== Wq || t[69] !== cJ || t[70] !== uJ ? (fJ = (0, import_jsx_runtime.jsx)(PopoverTrigger, {
28743
+ }), t[65] = kJ) : kJ = t[65];
28744
+ let AJ;
28745
+ t[66] !== rJ || t[67] !== h || t[68] !== cJ || t[69] !== EJ || t[70] !== OJ ? (AJ = (0, import_jsx_runtime.jsx)(PopoverTrigger, {
28560
28746
  asChild: true,
28561
28747
  children: (0, import_jsx_runtime.jsxs)("button", {
28562
28748
  id: h,
28563
28749
  type: "button",
28564
- className: cJ,
28565
- "aria-expanded": Wq,
28566
- "aria-disabled": zq,
28750
+ className: EJ,
28751
+ "aria-expanded": cJ,
28752
+ "aria-disabled": rJ,
28567
28753
  children: [
28568
- uJ,
28569
- dJ
28754
+ OJ,
28755
+ kJ
28570
28756
  ]
28571
28757
  })
28572
- }), t[66] = zq, t[67] = h, t[68] = Wq, t[69] = cJ, t[70] = uJ, t[71] = fJ) : fJ = t[71];
28573
- let pJ;
28574
- t[72] !== Iq || t[73] !== y || t[74] !== M ? (pJ = (0, import_jsx_runtime.jsx)(CommandInput, {
28575
- placeholder: Iq,
28758
+ }), t[66] = rJ, t[67] = h, t[68] = cJ, t[69] = EJ, t[70] = OJ, t[71] = AJ) : AJ = t[71];
28759
+ let jJ;
28760
+ t[72] !== eJ || t[73] !== y || t[74] !== M ? (jJ = (0, import_jsx_runtime.jsx)(CommandInput, {
28761
+ placeholder: eJ,
28576
28762
  rootClassName: "px-1 h-8",
28577
28763
  autoFocus: true,
28578
28764
  value: M,
28579
28765
  onValueChange: y
28580
- }), t[72] = Iq, t[73] = y, t[74] = M, t[75] = pJ) : pJ = t[75];
28581
- let mJ;
28582
- t[76] === Lq ? mJ = t[77] : (mJ = (0, import_jsx_runtime.jsx)(CommandEmpty, {
28583
- children: Lq
28584
- }), t[76] = Lq, t[77] = mJ);
28585
- let hJ;
28586
- t[78] !== n || t[79] !== nJ ? (hJ = (0, import_jsx_runtime.jsx)(ComboboxContext, {
28587
- value: nJ,
28766
+ }), t[72] = eJ, t[73] = y, t[74] = M, t[75] = jJ) : jJ = t[75];
28767
+ let MJ;
28768
+ t[76] === tJ ? MJ = t[77] : (MJ = (0, import_jsx_runtime.jsx)(CommandEmpty, {
28769
+ children: tJ
28770
+ }), t[76] = tJ, t[77] = MJ);
28771
+ let NJ;
28772
+ t[78] !== n || t[79] !== bJ ? (NJ = (0, import_jsx_runtime.jsx)(ComboboxContext, {
28773
+ value: bJ,
28588
28774
  children: n
28589
- }), t[78] = n, t[79] = nJ, t[80] = hJ) : hJ = t[80];
28590
- let gJ;
28591
- t[81] !== mJ || t[82] !== hJ ? (gJ = (0, import_jsx_runtime.jsxs)(CommandList, {
28775
+ }), t[78] = n, t[79] = bJ, t[80] = NJ) : NJ = t[80];
28776
+ let PJ;
28777
+ t[81] !== MJ || t[82] !== NJ ? (PJ = (0, import_jsx_runtime.jsxs)(CommandList, {
28592
28778
  className: "max-h-60 py-.5",
28593
28779
  children: [
28594
- mJ,
28595
- hJ
28780
+ MJ,
28781
+ NJ
28596
28782
  ]
28597
- }), t[81] = mJ, t[82] = hJ, t[83] = gJ) : gJ = t[83];
28598
- let _J;
28599
- t[84] !== f || t[85] !== Fq || t[86] !== pJ || t[87] !== gJ ? (_J = (0, import_jsx_runtime.jsx)(PopoverContent, {
28783
+ }), t[81] = MJ, t[82] = NJ, t[83] = PJ) : PJ = t[83];
28784
+ let FJ;
28785
+ t[84] !== f || t[85] !== $q || t[86] !== jJ || t[87] !== PJ ? (FJ = (0, import_jsx_runtime.jsx)(PopoverContent, {
28600
28786
  className: "w-full min-w-(--radix-popover-trigger-width) p-0",
28601
28787
  align: "start",
28602
28788
  children: (0, import_jsx_runtime.jsxs)(Command, {
28603
28789
  filter: f,
28604
- shouldFilter: Fq,
28790
+ shouldFilter: $q,
28605
28791
  children: [
28606
- pJ,
28607
- gJ
28792
+ jJ,
28793
+ PJ
28608
28794
  ]
28609
28795
  })
28610
- }), t[84] = f, t[85] = Fq, t[86] = pJ, t[87] = gJ, t[88] = _J) : _J = t[88];
28611
- let vJ;
28612
- t[89] !== Wq || t[90] !== iJ || t[91] !== fJ || t[92] !== _J ? (vJ = (0, import_jsx_runtime.jsxs)(Popover, {
28613
- open: Wq,
28614
- onOpenChange: iJ,
28796
+ }), t[84] = f, t[85] = $q, t[86] = jJ, t[87] = PJ, t[88] = FJ) : FJ = t[88];
28797
+ let IJ;
28798
+ t[89] !== cJ || t[90] !== CJ || t[91] !== AJ || t[92] !== FJ ? (IJ = (0, import_jsx_runtime.jsxs)(Popover, {
28799
+ open: cJ,
28800
+ onOpenChange: CJ,
28615
28801
  children: [
28616
- fJ,
28617
- _J
28802
+ AJ,
28803
+ FJ
28618
28804
  ]
28619
- }), t[89] = Wq, t[90] = iJ, t[91] = fJ, t[92] = _J, t[93] = vJ) : vJ = t[93];
28620
- let yJ;
28621
- t[94] !== Rq || t[95] !== i || t[96] !== zq || t[97] !== d || t[98] !== Qq || t[99] !== $ || t[100] !== qq ? (yJ = $ && Rq && (0, import_jsx_runtime.jsx)("div", {
28805
+ }), t[89] = cJ, t[90] = CJ, t[91] = AJ, t[92] = FJ, t[93] = IJ) : IJ = t[93];
28806
+ let LJ;
28807
+ t[94] !== nJ || t[95] !== i || t[96] !== rJ || t[97] !== d || t[98] !== gJ || t[99] !== Qq || t[100] !== dJ ? (LJ = Qq && nJ && (0, import_jsx_runtime.jsx)("div", {
28622
28808
  className: cn("flex flex-col gap-1 items-start", i),
28623
- children: Array.isArray(qq) && qq.map((e2) => e2 == null ? null : (0, import_jsx_runtime.jsxs)(Badge, {
28809
+ children: Array.isArray(dJ) && dJ.map((e2) => e2 == null ? null : (0, import_jsx_runtime.jsxs)(Badge, {
28624
28810
  variant: "secondary",
28625
28811
  children: [
28626
28812
  (d == null ? void 0 : d(e2)) ?? String(e2),
28627
28813
  (0, import_jsx_runtime.jsx)(CircleX, {
28628
28814
  onClick: () => {
28629
- zq || Qq(e2);
28815
+ rJ || gJ(e2);
28630
28816
  },
28631
- className: cn("w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer", zq && "pointer-events-none")
28817
+ className: cn("w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer", rJ && "pointer-events-none")
28632
28818
  })
28633
28819
  ]
28634
28820
  }, String(e2)))
28635
- }), t[94] = Rq, t[95] = i, t[96] = zq, t[97] = d, t[98] = Qq, t[99] = $, t[100] = qq, t[101] = yJ) : yJ = t[101];
28636
- let bJ;
28637
- return t[102] !== A || t[103] !== vJ || t[104] !== yJ ? (bJ = (0, import_jsx_runtime.jsxs)("div", {
28638
- className: rJ,
28821
+ }), t[94] = nJ, t[95] = i, t[96] = rJ, t[97] = d, t[98] = gJ, t[99] = Qq, t[100] = dJ, t[101] = LJ) : LJ = t[101];
28822
+ let RJ;
28823
+ return t[102] !== A || t[103] !== IJ || t[104] !== LJ ? (RJ = (0, import_jsx_runtime.jsxs)("div", {
28824
+ className: xJ,
28639
28825
  ...A,
28640
28826
  children: [
28641
- vJ,
28642
- yJ
28827
+ IJ,
28828
+ LJ
28643
28829
  ]
28644
- }), t[102] = A, t[103] = vJ, t[104] = yJ, t[105] = bJ) : bJ = t[105], bJ;
28830
+ }), t[102] = A, t[103] = IJ, t[104] = LJ, t[105] = RJ) : RJ = t[105], RJ;
28645
28831
  };
28646
28832
  ComboboxItem = import_react.forwardRef((e, t) => {
28647
28833
  let n = (0, import_compiler_runtime$35.c)(20), { children: i, className: o, value: s, onSelect: c, disabled: d } = e, f = typeof s == "object" && "value" in s ? s.value : String(s), h = import_react.use(ComboboxContext), _;
@@ -29378,8 +29564,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
29378
29564
  start: dateToAria(n, f),
29379
29565
  end: dateToAria(n, _)
29380
29566
  }, t[27] = n, t[28] = _, t[29] = f, t[30] = O) : O = t[30];
29381
- let A = O, I;
29382
- t[31] !== s || t[32] !== n || t[33] !== E || t[34] !== c || t[35] !== A ? (I = n === "date" ? (0, import_jsx_runtime.jsx)(DateRangePicker, {
29567
+ let A = O, M;
29568
+ t[31] !== s || t[32] !== n || t[33] !== E || t[34] !== c || t[35] !== A ? (M = n === "date" ? (0, import_jsx_runtime.jsx)(DateRangePicker, {
29383
29569
  "aria-label": "range",
29384
29570
  defaultValue: A,
29385
29571
  onChange: E,
@@ -29391,13 +29577,13 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
29391
29577
  hourCycle: 24,
29392
29578
  onChange: E,
29393
29579
  className: s
29394
- }, c), t[31] = s, t[32] = n, t[33] = E, t[34] = c, t[35] = A, t[36] = I) : I = t[36];
29395
- let z;
29396
- return t[37] !== S || t[38] !== I ? (z = (0, import_jsx_runtime.jsx)("div", {
29580
+ }, c), t[31] = s, t[32] = n, t[33] = E, t[34] = c, t[35] = A, t[36] = M) : M = t[36];
29581
+ let I;
29582
+ return t[37] !== S || t[38] !== M ? (I = (0, import_jsx_runtime.jsx)("div", {
29397
29583
  onPasteCapture: S,
29398
29584
  className: "contents",
29399
- children: I
29400
- }), t[37] = S, t[38] = I, t[39] = z) : z = t[39], z;
29585
+ children: M
29586
+ }), t[37] = S, t[38] = M, t[39] = I) : I = t[39], I;
29401
29587
  };
29402
29588
  function _temp$5(e) {
29403
29589
  return e + 1;
@@ -29697,17 +29883,17 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
29697
29883
  searchQuery: M,
29698
29884
  filteredOptions: z
29699
29885
  }, t[9] = z, t[10] = n, t[11] = _, t[12] = M, t[13] = i, t[14] = U) : U = t[14];
29700
- let { open: K, setOpen: q, repin: J, visibleOptions: Q, pinnedCount: $ } = usePinning(U), Fq;
29701
- t[15] !== c || t[16] !== s || t[17] !== o || t[18] !== a || t[19] !== y || t[20] !== i ? (Fq = {
29886
+ let { open: K, setOpen: q, repin: J, visibleOptions: Q, pinnedCount: $ } = usePinning(U), Qq;
29887
+ t[15] !== c || t[16] !== s || t[17] !== o || t[18] !== a || t[19] !== y || t[20] !== i ? (Qq = {
29702
29888
  value: i,
29703
29889
  onChange: a,
29704
29890
  multiple: o,
29705
29891
  maxSelections: s,
29706
29892
  allowSelectNone: c,
29707
29893
  selected: y
29708
- }, t[15] = c, t[16] = s, t[17] = o, t[18] = a, t[19] = y, t[20] = i, t[21] = Fq) : Fq = t[21];
29709
- let { isChecked: Iq, toggle: Lq } = useToggle(Fq), Rq;
29710
- t[22] !== z || t[23] !== s || t[24] !== o || t[25] !== a || t[26] !== n || t[27] !== M || t[28] !== i ? (Rq = {
29894
+ }, t[15] = c, t[16] = s, t[17] = o, t[18] = a, t[19] = y, t[20] = i, t[21] = Qq) : Qq = t[21];
29895
+ let { isChecked: $q, toggle: eJ } = useToggle(Qq), tJ;
29896
+ t[22] !== z || t[23] !== s || t[24] !== o || t[25] !== a || t[26] !== n || t[27] !== M || t[28] !== i ? (tJ = {
29711
29897
  value: i,
29712
29898
  onChange: a,
29713
29899
  multiple: o,
@@ -29715,24 +29901,24 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
29715
29901
  filteredOptions: z,
29716
29902
  searchQuery: M,
29717
29903
  maxSelections: s
29718
- }, t[22] = z, t[23] = s, t[24] = o, t[25] = a, t[26] = n, t[27] = M, t[28] = i, t[29] = Rq) : Rq = t[29];
29719
- let { bulkActions: zq } = useBulk(Rq), Bq;
29720
- t[30] !== J || t[31] !== I ? (Bq = (e2) => {
29904
+ }, t[22] = z, t[23] = s, t[24] = o, t[25] = a, t[26] = n, t[27] = M, t[28] = i, t[29] = tJ) : tJ = t[29];
29905
+ let { bulkActions: nJ } = useBulk(tJ), rJ;
29906
+ t[30] !== J || t[31] !== I ? (rJ = (e2) => {
29721
29907
  I(e2), e2 === "" && J();
29722
- }, t[30] = J, t[31] = I, t[32] = Bq) : Bq = t[32];
29723
- let Vq = Bq, Hq;
29724
- return t[33] !== zq || t[34] !== Iq || t[35] !== O || t[36] !== K || t[37] !== $ || t[38] !== M || t[39] !== q || t[40] !== Vq || t[41] !== Lq || t[42] !== Q ? (Hq = {
29908
+ }, t[30] = J, t[31] = I, t[32] = rJ) : rJ = t[32];
29909
+ let iJ = rJ, aJ;
29910
+ return t[33] !== nJ || t[34] !== $q || t[35] !== O || t[36] !== K || t[37] !== $ || t[38] !== M || t[39] !== q || t[40] !== iJ || t[41] !== eJ || t[42] !== Q ? (aJ = {
29725
29911
  searchQuery: M,
29726
- setSearchQuery: Vq,
29912
+ setSearchQuery: iJ,
29727
29913
  open: K,
29728
29914
  setOpen: q,
29729
29915
  visibleOptions: Q,
29730
29916
  pinnedCount: $,
29731
- isChecked: Iq,
29732
- toggle: Lq,
29733
- bulkActions: zq,
29917
+ isChecked: $q,
29918
+ toggle: eJ,
29919
+ bulkActions: nJ,
29734
29920
  labelOf: O
29735
- }, t[33] = zq, t[34] = Iq, t[35] = O, t[36] = K, t[37] = $, t[38] = M, t[39] = q, t[40] = Vq, t[41] = Lq, t[42] = Q, t[43] = Hq) : Hq = t[43], Hq;
29921
+ }, t[33] = nJ, t[34] = $q, t[35] = O, t[36] = K, t[37] = $, t[38] = M, t[39] = q, t[40] = iJ, t[41] = eJ, t[42] = Q, t[43] = aJ) : aJ = t[43], aJ;
29736
29922
  };
29737
29923
  const Sets = {
29738
29924
  merge(...e) {
@@ -30061,7 +30247,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
30061
30247
  type: S,
30062
30248
  operator: E,
30063
30249
  draft: mergeNumberTextDraft(A, I)
30064
- }), Fq = $ === void 0, Iq = Fq ? getMissingValueMessage(S, E) : "Apply filter", Lq = () => {
30250
+ }), Qq = $ === void 0, $q = Qq ? getMissingValueMessage(S, E) : "Apply filter", eJ = () => {
30065
30251
  if (!$) return;
30066
30252
  let e2 = $;
30067
30253
  t.setColumnFilters((t2) => {
@@ -30080,20 +30266,20 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
30080
30266
  value: e2
30081
30267
  }, n2;
30082
30268
  }), i();
30083
- }, Rq = () => {
30269
+ }, tJ = () => {
30084
30270
  a !== void 0 && t.setColumnFilters((e2) => e2.filter((e3, t2) => t2 !== a)), i();
30085
- }, zq = !OPERATORS_WITHOUT_VALUE.has(E), Bq = OPERATORS_BY_TYPE[S], Vq = (0, import_react.useRef)(null), Hq = (0, import_react.useRef)(null);
30271
+ }, nJ = !OPERATORS_WITHOUT_VALUE.has(E), rJ = OPERATORS_BY_TYPE[S], iJ = (0, import_react.useRef)(null), aJ = (0, import_react.useRef)(null);
30086
30272
  return (0, import_react.useEffect)(() => {
30087
30273
  var _a2, _b;
30088
- let e2 = (_a2 = Vq.current) == null ? void 0 : _a2.querySelector('input, [role="spinbutton"], [role="combobox"], button');
30089
- e2 ? e2.focus() : (_b = Hq.current) == null ? void 0 : _b.focus();
30274
+ let e2 = (_a2 = iJ.current) == null ? void 0 : _a2.querySelector('input, [role="spinbutton"], [role="combobox"], button');
30275
+ e2 ? e2.focus() : (_b = aJ.current) == null ? void 0 : _b.focus();
30090
30276
  }, [
30091
30277
  S,
30092
30278
  E
30093
30279
  ]), (0, import_jsx_runtime.jsxs)("form", {
30094
30280
  className: "flex flex-row gap-4 items-end p-3",
30095
30281
  onSubmit: (e2) => {
30096
- e2.preventDefault(), Lq();
30282
+ e2.preventDefault(), eJ();
30097
30283
  },
30098
30284
  onKeyDownCapture: (e2) => {
30099
30285
  e2.key === "Tab" && e2.stopPropagation();
@@ -30134,13 +30320,13 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
30134
30320
  onValueChange: (e2) => Q(e2),
30135
30321
  children: [
30136
30322
  (0, import_jsx_runtime.jsx)(SelectTrigger, {
30137
- ref: Hq,
30323
+ ref: aJ,
30138
30324
  id: s,
30139
30325
  className: "h-6 mb-1 bg-transparent",
30140
30326
  children: (0, import_jsx_runtime.jsx)(SelectValue, {})
30141
30327
  }),
30142
30328
  (0, import_jsx_runtime.jsx)(SelectContent, {
30143
- children: Bq.map((e2) => (0, import_jsx_runtime.jsx)(SelectItem, {
30329
+ children: rJ.map((e2) => (0, import_jsx_runtime.jsx)(SelectItem, {
30144
30330
  value: e2,
30145
30331
  children: OPERATOR_LABELS[e2]
30146
30332
  }, e2))
@@ -30149,8 +30335,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
30149
30335
  }, S)
30150
30336
  ]
30151
30337
  }),
30152
- zq && (0, import_jsx_runtime.jsxs)("div", {
30153
- ref: Vq,
30338
+ nJ && (0, import_jsx_runtime.jsxs)("div", {
30339
+ ref: iJ,
30154
30340
  className: "flex flex-col gap-1",
30155
30341
  children: [
30156
30342
  (0, import_jsx_runtime.jsx)("label", {
@@ -30177,14 +30363,14 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
30177
30363
  className: "flex gap-1 mb-1",
30178
30364
  children: [
30179
30365
  (0, import_jsx_runtime.jsx)(Tooltip, {
30180
- content: Iq,
30366
+ content: $q,
30181
30367
  children: (0, import_jsx_runtime.jsx)("span", {
30182
30368
  className: "inline-flex",
30183
30369
  children: (0, import_jsx_runtime.jsx)(Button, {
30184
30370
  type: "submit",
30185
30371
  size: "icon",
30186
30372
  variant: "ghost",
30187
- disabled: Fq,
30373
+ disabled: Qq,
30188
30374
  className: "rounded-full text-primary hover:text-primary hover:bg-primary/10",
30189
30375
  "aria-label": "Apply filter",
30190
30376
  children: (0, import_jsx_runtime.jsx)(Check, {
@@ -30216,7 +30402,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
30216
30402
  size: "icon",
30217
30403
  variant: "ghost",
30218
30404
  className: "rounded-full text-destructive hover:text-destructive hover:bg-destructive/10",
30219
- onClick: Rq,
30405
+ onClick: tJ,
30220
30406
  "aria-label": "Remove filter",
30221
30407
  children: (0, import_jsx_runtime.jsx)(Trash2, {
30222
30408
  className: "h-3.5 w-3.5",
@@ -32424,29 +32610,29 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
32424
32610
  }, t[16] = a, t[17] = J);
32425
32611
  let Q = useEvent_default(J), $;
32426
32612
  t[18] === S ? $ = t[19] : ($ = () => S(), t[18] = S, t[19] = $);
32427
- let Fq = useEvent_default($), Iq, Lq;
32428
- t[20] === S ? (Iq = t[21], Lq = t[22]) : (Iq = () => (window.addEventListener("scroll", S, {
32613
+ let Qq = useEvent_default($), $q, eJ;
32614
+ t[20] === S ? ($q = t[21], eJ = t[22]) : ($q = () => (window.addEventListener("scroll", S, {
32429
32615
  passive: true,
32430
32616
  capture: true
32431
32617
  }), window.addEventListener("resize", S), () => {
32432
32618
  window.removeEventListener("scroll", S, {
32433
32619
  capture: true
32434
32620
  }), window.removeEventListener("resize", S);
32435
- }), Lq = [
32621
+ }), eJ = [
32436
32622
  S
32437
- ], t[20] = S, t[21] = Iq, t[22] = Lq), (0, import_react.useEffect)(Iq, Lq);
32438
- let Rq, zq;
32439
- t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Rq = () => v, zq = [], t[23] = Rq, t[24] = zq) : (Rq = t[23], zq = t[24]), (0, import_react.useEffect)(Rq, zq);
32440
- let Bq;
32441
- return t[25] !== Fq || t[26] !== Q || t[27] !== q || t[28] !== U || t[29] !== S || t[30] !== d || t[31] !== o ? (Bq = {
32623
+ ], t[20] = S, t[21] = $q, t[22] = eJ), (0, import_react.useEffect)($q, eJ);
32624
+ let tJ, nJ;
32625
+ t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (tJ = () => v, nJ = [], t[23] = tJ, t[24] = nJ) : (tJ = t[23], nJ = t[24]), (0, import_react.useEffect)(tJ, nJ);
32626
+ let rJ;
32627
+ return t[25] !== Qq || t[26] !== Q || t[27] !== q || t[28] !== U || t[29] !== S || t[30] !== d || t[31] !== o ? (rJ = {
32442
32628
  tooltipState: o,
32443
32629
  tooltipContentId: d,
32444
32630
  hideTooltip: S,
32445
32631
  handleCellMouseOver: U,
32446
32632
  handleCellMouseLeave: q,
32447
32633
  handleCellFocus: Q,
32448
- handleCellBlur: Fq
32449
- }, t[25] = Fq, t[26] = Q, t[27] = q, t[28] = U, t[29] = S, t[30] = d, t[31] = o, t[32] = Bq) : Bq = t[32], Bq;
32634
+ handleCellBlur: Qq
32635
+ }, t[25] = Qq, t[26] = Q, t[27] = q, t[28] = U, t[29] = S, t[30] = d, t[31] = o, t[32] = rJ) : rJ = t[32], rJ;
32450
32636
  }
32451
32637
  var import_compiler_runtime$18 = require_compiler_runtime();
32452
32638
  const CellRangeSelectionIndicator = (0, import_react.memo)((e) => {
@@ -33872,7 +34058,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
33872
34058
  filename: i2.filename
33873
34059
  };
33874
34060
  }, t[6] = e, t[7] = O);
33875
- let A = O, M, I, z, U, K, q, J, Q, $, Fq, Iq, Lq, Rq;
34061
+ let A = O, M, I, z, U, K, q, J, Q, $, Qq, $q, eJ, tJ;
33876
34062
  if (t[8] !== S || t[9] !== c || t[10] !== n || t[11] !== A || t[12] !== d) {
33877
34063
  let e2 = async (t2) => {
33878
34064
  let n2 = labelForDownloadFormat(t2);
@@ -33938,10 +34124,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
33938
34124
  content: d,
33939
34125
  open: o2,
33940
34126
  children: h
33941
- }), t[32] = o2, t[33] = h, t[34] = d, t[35] = Q) : Q = t[35], M = DropdownMenuContent, $ = "bottom", Fq = "print:hidden", t[36] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Iq = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
34127
+ }), t[32] = o2, t[33] = h, t[34] = d, t[35] = Q) : Q = t[35], M = DropdownMenuContent, $ = "bottom", Qq = "print:hidden", t[36] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($q = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
33942
34128
  className: "text-xs text-muted-foreground",
33943
34129
  children: "Download"
33944
- }), t[36] = Iq) : Iq = t[36], Lq = downloadOptions.map((t2) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
34130
+ }), t[36] = $q) : $q = t[36], eJ = downloadOptions.map((t2) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
33945
34131
  onSelect: () => {
33946
34132
  e2(t2.format);
33947
34133
  },
@@ -33962,10 +34148,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
33962
34148
  ]
33963
34149
  })
33964
34150
  ]
33965
- }, t2.label)), t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Rq = (0, import_jsx_runtime.jsx)(DropdownMenuSeparator, {}), z = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
34151
+ }, t2.label)), t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (tJ = (0, import_jsx_runtime.jsx)(DropdownMenuSeparator, {}), z = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
33966
34152
  className: "text-xs text-muted-foreground",
33967
34153
  children: "Copy to clipboard"
33968
- }), t[37] = z, t[38] = Rq) : (z = t[37], Rq = t[38]), U = copyOptions.map((e3) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
34154
+ }), t[37] = z, t[38] = tJ) : (z = t[37], tJ = t[38]), U = copyOptions.map((e3) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
33969
34155
  onSelect: async () => {
33970
34156
  try {
33971
34157
  await a(e3.format);
@@ -33994,30 +34180,30 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
33994
34180
  ]
33995
34181
  })
33996
34182
  ]
33997
- }, e3.label)), t[8] = S, t[9] = c, t[10] = n, t[11] = A, t[12] = d, 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] = $, t[22] = Fq, t[23] = Iq, t[24] = Lq, t[25] = Rq;
33998
- } else M = t[13], I = t[14], z = t[15], U = t[16], K = t[17], q = t[18], J = t[19], Q = t[20], $ = t[21], Fq = t[22], Iq = t[23], Lq = t[24], Rq = t[25];
33999
- let zq;
34000
- t[39] !== M || t[40] !== z || t[41] !== U || t[42] !== $ || t[43] !== Fq || t[44] !== Iq || t[45] !== Lq || t[46] !== Rq ? (zq = (0, import_jsx_runtime.jsxs)(M, {
34183
+ }, e3.label)), t[8] = S, t[9] = c, t[10] = n, t[11] = A, t[12] = d, 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] = $, t[22] = Qq, t[23] = $q, t[24] = eJ, t[25] = tJ;
34184
+ } else M = t[13], I = t[14], z = t[15], U = t[16], K = t[17], q = t[18], J = t[19], Q = t[20], $ = t[21], Qq = t[22], $q = t[23], eJ = t[24], tJ = t[25];
34185
+ let nJ;
34186
+ t[39] !== M || t[40] !== z || t[41] !== U || t[42] !== $ || t[43] !== Qq || t[44] !== $q || t[45] !== eJ || t[46] !== tJ ? (nJ = (0, import_jsx_runtime.jsxs)(M, {
34001
34187
  side: $,
34002
- className: Fq,
34188
+ className: Qq,
34003
34189
  children: [
34004
- Iq,
34005
- Lq,
34006
- Rq,
34190
+ $q,
34191
+ eJ,
34192
+ tJ,
34007
34193
  z,
34008
34194
  U
34009
34195
  ]
34010
- }), t[39] = M, t[40] = z, t[41] = U, t[42] = $, t[43] = Fq, t[44] = Iq, t[45] = Lq, t[46] = Rq, t[47] = zq) : zq = t[47];
34011
- let Bq;
34012
- return t[48] !== I || t[49] !== K || t[50] !== q || t[51] !== J || t[52] !== Q || t[53] !== zq ? (Bq = (0, import_jsx_runtime.jsxs)(I, {
34196
+ }), t[39] = M, t[40] = z, t[41] = U, t[42] = $, t[43] = Qq, t[44] = $q, t[45] = eJ, t[46] = tJ, t[47] = nJ) : nJ = t[47];
34197
+ let rJ;
34198
+ return t[48] !== I || t[49] !== K || t[50] !== q || t[51] !== J || t[52] !== Q || t[53] !== nJ ? (rJ = (0, import_jsx_runtime.jsxs)(I, {
34013
34199
  modal: K,
34014
34200
  open: q,
34015
34201
  onOpenChange: J,
34016
34202
  children: [
34017
34203
  Q,
34018
- zq
34204
+ nJ
34019
34205
  ]
34020
- }), t[48] = I, t[49] = K, t[50] = q, t[51] = J, t[52] = Q, t[53] = zq, t[54] = Bq) : Bq = t[54], Bq;
34206
+ }), t[48] = I, t[49] = K, t[50] = q, t[51] = J, t[52] = Q, t[53] = nJ, t[54] = rJ) : rJ = t[54], rJ;
34021
34207
  };
34022
34208
  function fetchJson(e) {
34023
34209
  return fetchText(e).then(jsonParseWithSpecialChar);
@@ -34113,22 +34299,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
34113
34299
  ]
34114
34300
  });
34115
34301
  };
34116
- DataTable = (0, import_react.memo)(({ wrapperClassName: e, className: t, maxHeight: n, columns: i, data: o, rawData: s, selection: c, totalColumns: d, totalRows: f, sizeBytes: _, sizeBytesIsLoading: v, manualSorting: y = false, sorting: S, setSorting: w, rowSelection: E, cellSelection: O, cellStyling: A, hoverTemplate: M, cellHoverTexts: I, paginationState: z, setPaginationState: U, downloadAs: K, manualPagination: q = false, pagination: J = false, onRowSelectionChange: Q, onCellSelectionChange: $, getRowIds: Fq, showSearch: Iq = false, searchQuery: Lq, onSearchQueryChange: Rq, showFilters: zq = false, filters: Bq, onFiltersChange: Vq, calculateTopKRows: Hq, reloading: Uq, freezeColumnsLeft: Wq, freezeColumnsRight: Gq, hiddenColumns: Kq, toggleDisplayHeader: qq, showChartBuilder: Jq, isChartBuilderOpen: Yq, showPageSizeSelector: Xq, showTableExplorer: Zq, togglePanel: Qq, isPanelOpen: $q, isAnyPanelOpen: eJ, viewedRowIdx: tJ, onViewedRowChange: nJ, renderTableExplorerPanel: rJ }) => {
34117
- let iJ = isStaticNotebook(), aJ = !iJ, [oJ, sJ] = import_react.useState(false), { locale: cJ } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), { columnPinning: lJ, setColumnPinning: uJ } = useColumnPinning(Wq, Gq), { columnVisibility: dJ, setColumnVisibility: fJ } = useColumnVisibility(Kq);
34302
+ DataTable = (0, import_react.memo)(({ wrapperClassName: e, className: t, maxHeight: n, columns: i, data: o, rawData: s, selection: c, totalColumns: d, totalRows: f, sizeBytes: _, sizeBytesIsLoading: v, manualSorting: y = false, sorting: S, setSorting: w, rowSelection: E, cellSelection: O, cellStyling: A, hoverTemplate: M, cellHoverTexts: I, paginationState: z, setPaginationState: U, downloadAs: K, manualPagination: q = false, pagination: J = false, onRowSelectionChange: Q, onCellSelectionChange: $, getRowIds: Qq, showSearch: $q = false, searchQuery: eJ, onSearchQueryChange: tJ, showFilters: nJ = false, filters: rJ, onFiltersChange: iJ, calculateTopKRows: aJ, reloading: oJ, freezeColumnsLeft: sJ, freezeColumnsRight: cJ, hiddenColumns: lJ, toggleDisplayHeader: uJ, showChartBuilder: dJ, isChartBuilderOpen: fJ, showPageSizeSelector: pJ, showTableExplorer: mJ, togglePanel: hJ, isPanelOpen: gJ, isAnyPanelOpen: _J, viewedRowIdx: vJ, onViewedRowChange: yJ, renderTableExplorerPanel: bJ }) => {
34303
+ let xJ = isStaticNotebook(), SJ = !xJ, [CJ, wJ] = import_react.useState(false), { locale: TJ } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), { columnPinning: EJ, setColumnPinning: DJ } = useColumnPinning(sJ, cJ), { columnVisibility: OJ, setColumnVisibility: kJ } = useColumnVisibility(lJ);
34118
34304
  import_react.useEffect(() => {
34119
34305
  let e2;
34120
- return Uq ? e2 = setTimeout(() => {
34121
- sJ(true);
34122
- }, 300) : sJ(false), () => {
34306
+ return oJ ? e2 = setTimeout(() => {
34307
+ wJ(true);
34308
+ }, 300) : wJ(false), () => {
34123
34309
  e2 && clearTimeout(e2);
34124
34310
  };
34125
34311
  }, [
34126
- Uq
34312
+ oJ
34127
34313
  ]);
34128
- function pJ(e2, t2) {
34314
+ function AJ(e2, t2) {
34129
34315
  return z ? t2 + (q ? z.pageIndex * z.pageSize : 0) : t2;
34130
34316
  }
34131
- let mJ = useReactTable({
34317
+ let jJ = useReactTable({
34132
34318
  _features: [
34133
34319
  ColumnPinning,
34134
34320
  ColumnWrappingFeature,
@@ -34152,37 +34338,37 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
34152
34338
  getRowId: (e2, t2) => {
34153
34339
  let n2 = getStableRowId(e2);
34154
34340
  if (n2) return n2;
34155
- let i2 = pJ(e2, t2);
34341
+ let i2 = AJ(e2, t2);
34156
34342
  return String(i2);
34157
34343
  }
34158
34344
  } : {},
34159
- locale: cJ,
34345
+ locale: TJ,
34160
34346
  manualPagination: q,
34161
34347
  getPaginationRowModel: getPaginationRowModel(),
34162
34348
  ...w ? {
34163
34349
  onSortingChange: w
34164
34350
  } : {},
34165
34351
  manualSorting: y,
34166
- enableSorting: !iJ,
34352
+ enableSorting: !xJ,
34167
34353
  enableMultiSort: true,
34168
34354
  getSortedRowModel: getSortedRowModel(),
34169
34355
  manualFiltering: true,
34170
- enableColumnFilters: zq && !iJ,
34356
+ enableColumnFilters: nJ && !xJ,
34171
34357
  getFilteredRowModel: getFilteredRowModel(),
34172
- onColumnFiltersChange: Vq,
34358
+ onColumnFiltersChange: iJ,
34173
34359
  onRowSelectionChange: Q,
34174
34360
  onCellSelectionChange: $,
34175
34361
  enableCellSelection: c === "single-cell" || c === "multi-cell",
34176
34362
  enableMultiCellSelection: c === "multi-cell",
34177
- onColumnPinningChange: uJ,
34178
- onColumnVisibilityChange: fJ,
34363
+ onColumnPinningChange: DJ,
34364
+ onColumnVisibilityChange: kJ,
34179
34365
  enableFocusRow: true,
34180
- onFocusRowChange: nJ,
34366
+ onFocusRowChange: yJ,
34181
34367
  state: {
34182
34368
  ...S ? {
34183
34369
  sorting: S
34184
34370
  } : {},
34185
- columnFilters: Bq,
34371
+ columnFilters: rJ,
34186
34372
  ...z ? {
34187
34373
  pagination: z
34188
34374
  } : J && !z ? {} : {
@@ -34193,60 +34379,60 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
34193
34379
  },
34194
34380
  rowSelection: E ?? {},
34195
34381
  cellSelection: O ?? [],
34196
- columnVisibility: dJ,
34382
+ columnVisibility: OJ,
34197
34383
  cellStyling: A,
34198
- columnPinning: lJ,
34384
+ columnPinning: EJ,
34199
34385
  cellHoverTemplate: M,
34200
34386
  cellHoverTexts: I ?? {}
34201
34387
  }
34202
- }), hJ = ($q == null ? void 0 : $q(PANEL_TYPES.ROW_VIEWER)) ?? false, gJ = !J && o.length > 100, _J = useScrollContainerHeight({
34388
+ }), MJ = (gJ == null ? void 0 : gJ(PANEL_TYPES.ROW_VIEWER)) ?? false, NJ = !J && o.length > 100, PJ = useScrollContainerHeight({
34203
34389
  maxHeight: n,
34204
- virtualize: gJ
34205
- }), [vJ, yJ] = import_react.useState(null), bJ = import_react.useMemo(() => ({
34390
+ virtualize: NJ
34391
+ }), [FJ, IJ] = import_react.useState(null), LJ = import_react.useMemo(() => ({
34206
34392
  requestAddFilter: (e2) => {
34207
- let t2 = mJ.getColumn(e2.columnId);
34208
- t2 && yJ(buildEditorSnapshot(t2, {
34393
+ let t2 = jJ.getColumn(e2.columnId);
34394
+ t2 && IJ(buildEditorSnapshot(t2, {
34209
34395
  operator: e2.operator
34210
34396
  }));
34211
34397
  }
34212
34398
  }), [
34213
- mJ
34214
- ]), xJ = getUserColumnVisibilityCounts(mJ), SJ = xJ.total > 0 && xJ.visible === 0;
34399
+ jJ
34400
+ ]), RJ = getUserColumnVisibilityCounts(jJ), zJ = RJ.total > 0 && RJ.visible === 0;
34215
34401
  return (0, import_jsx_runtime.jsx)(FilterEditorProvider, {
34216
- value: bJ,
34402
+ value: LJ,
34217
34403
  children: (0, import_jsx_runtime.jsxs)("div", {
34218
34404
  className: cn(e, "flex flex-col space-y-1"),
34219
34405
  children: [
34220
34406
  (0, import_jsx_runtime.jsx)(FilterPills, {
34221
- filters: Bq,
34222
- table: mJ,
34223
- calculateTopKRows: Hq,
34224
- addFilterSnapshot: vJ,
34225
- onAddFilterSnapshotChange: yJ
34407
+ filters: rJ,
34408
+ table: jJ,
34409
+ calculateTopKRows: aJ,
34410
+ addFilterSnapshot: FJ,
34411
+ onAddFilterSnapshotChange: IJ
34226
34412
  }),
34227
- rJ == null ? void 0 : rJ(mJ),
34413
+ bJ == null ? void 0 : bJ(jJ),
34228
34414
  (0, import_jsx_runtime.jsx)(CellSelectionProvider, {
34229
34415
  children: (0, import_jsx_runtime.jsxs)("div", {
34230
34416
  part: "table-wrapper",
34231
34417
  className: cn(t || "rounded-md border overflow-hidden"),
34232
34418
  children: [
34233
- aJ && (0, import_jsx_runtime.jsx)(TableTopBar, {
34234
- table: mJ,
34235
- showSearch: Iq,
34236
- searchQuery: Lq,
34237
- onSearchQueryChange: Rq,
34238
- reloading: Uq,
34239
- showChartBuilder: Jq,
34240
- isChartBuilderOpen: Yq,
34241
- toggleDisplayHeader: qq,
34242
- showTableExplorer: Zq,
34243
- togglePanel: Qq,
34244
- isAnyPanelOpen: eJ,
34419
+ SJ && (0, import_jsx_runtime.jsx)(TableTopBar, {
34420
+ table: jJ,
34421
+ showSearch: $q,
34422
+ searchQuery: eJ,
34423
+ onSearchQueryChange: tJ,
34424
+ reloading: oJ,
34425
+ showChartBuilder: dJ,
34426
+ isChartBuilderOpen: fJ,
34427
+ toggleDisplayHeader: uJ,
34428
+ showTableExplorer: mJ,
34429
+ togglePanel: hJ,
34430
+ isAnyPanelOpen: _J,
34245
34431
  downloadAs: K,
34246
34432
  sizeBytes: _,
34247
34433
  sizeBytesIsLoading: v
34248
34434
  }),
34249
- SJ && (0, import_jsx_runtime.jsxs)(Banner, {
34435
+ zJ && (0, import_jsx_runtime.jsxs)(Banner, {
34250
34436
  className: "mb-1 mx-2 rounded flex items-center justify-between",
34251
34437
  children: [
34252
34438
  (0, import_jsx_runtime.jsx)("span", {
@@ -34255,26 +34441,26 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
34255
34441
  (0, import_jsx_runtime.jsx)(Button, {
34256
34442
  variant: "link",
34257
34443
  size: "xs",
34258
- onClick: () => mJ.resetColumnVisibility(true),
34444
+ onClick: () => jJ.resetColumnVisibility(true),
34259
34445
  children: "Unhide all"
34260
34446
  })
34261
34447
  ]
34262
34448
  }),
34263
34449
  (0, import_jsx_runtime.jsxs)(Table, {
34264
34450
  className: cn("relative", i.length <= 4 ? "w-auto" : "w-full"),
34265
- ref: _J,
34451
+ ref: PJ,
34266
34452
  children: [
34267
- oJ && (0, import_jsx_runtime.jsx)("thead", {
34453
+ CJ && (0, import_jsx_runtime.jsx)("thead", {
34268
34454
  className: "absolute top-0 left-0 h-[3px] w-1/2 bg-primary animate-slide"
34269
34455
  }),
34270
- renderTableHeader(mJ, gJ || !!n),
34456
+ renderTableHeader(jJ, NJ || !!n),
34271
34457
  (0, import_jsx_runtime.jsx)(DataTableBody, {
34272
- table: mJ,
34458
+ table: jJ,
34273
34459
  columns: i,
34274
- rowViewerPanelOpen: hJ,
34275
- getRowIndex: pJ,
34276
- viewedRowIdx: tJ,
34277
- virtualize: gJ
34460
+ rowViewerPanelOpen: MJ,
34461
+ getRowIndex: AJ,
34462
+ viewedRowIdx: vJ,
34463
+ virtualize: NJ
34278
34464
  })
34279
34465
  ]
34280
34466
  }),
@@ -34285,10 +34471,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
34285
34471
  pagination: J,
34286
34472
  selection: c,
34287
34473
  onRowSelectionChange: Q,
34288
- table: mJ,
34289
- getRowIds: Fq,
34290
- showPageSizeSelector: Xq,
34291
- tableLoading: Uq
34474
+ table: jJ,
34475
+ getRowIds: Qq,
34476
+ showPageSizeSelector: pJ,
34477
+ tableLoading: oJ
34292
34478
  })
34293
34479
  ]
34294
34480
  })
@@ -34356,7 +34542,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
34356
34542
  var import_compiler_runtime$7 = require_compiler_runtime();
34357
34543
  const MarimoTracebackOutput = (e) => {
34358
34544
  var _a2;
34359
- let t = (0, import_compiler_runtime$7.c)(45), { onRefactorWithAI: n, traceback: i, cellId: a } = e, o;
34545
+ let t = (0, import_compiler_runtime$7.c)(50), { onRefactorWithAI: n, traceback: i, cellId: a } = e, o;
34360
34546
  t[0] === i ? o = t[1] : (o = renderHTML({
34361
34547
  html: i,
34362
34548
  additionalReplacements: [
@@ -34367,11 +34553,11 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
34367
34553
  }), t[0] = i, t[1] = o);
34368
34554
  let s = o, c;
34369
34555
  t[2] === i ? c = t[3] : (c = lastLine(i), t[2] = i, t[3] = c);
34370
- let d = c, f = useAtomValue(aiFeaturesEnabledAtom), _;
34371
- t[4] === i ? _ = t[5] : (_ = (_a2 = extractAllTracebackInfo(i)) == null ? void 0 : _a2.at(0), t[4] = i, t[5] = _);
34372
- let v = _, y;
34373
- t[6] !== a || t[7] !== v ? (y = v && v.kind === "cell" && !isWasm() && !isStaticNotebook() && a !== "__scratch__", t[6] = a, t[7] = v, t[8] = y) : y = t[8];
34374
- let w = y, A;
34556
+ let d = c, f = useAtomValue(aiFeaturesEnabledAtom), _ = useOpenAiAssistant(), v;
34557
+ t[4] === i ? v = t[5] : (v = (_a2 = extractAllTracebackInfo(i)) == null ? void 0 : _a2.at(0), t[4] = i, t[5] = v);
34558
+ let y = v, w;
34559
+ t[6] !== a || t[7] !== y ? (w = y && y.kind === "cell" && !isWasm() && !isStaticNotebook() && a !== "__scratch__", t[6] = a, t[7] = y, t[8] = w) : w = t[8];
34560
+ let O = w, A;
34375
34561
  t[9] !== f || t[10] !== n ? (A = n && f && !isStaticNotebook(), t[9] = f, t[10] = n, t[11] = A) : A = t[11];
34376
34562
  let M = A, I = !isStaticNotebook(), [z, U] = (0, import_react.useState)(true), K;
34377
34563
  t[12] !== d || t[13] !== n ? (K = (e2) => {
@@ -34383,50 +34569,57 @@ ${d}`,
34383
34569
  });
34384
34570
  }, t[12] = d, t[13] = n, t[14] = K) : K = t[14];
34385
34571
  let q = K, J;
34386
- t[15] === z ? J = t[16] : (J = () => U(!z), t[15] = z, t[16] = J);
34387
- let Q = z ? "Collapse traceback" : "Expand traceback", $;
34388
- t[17] === z ? $ = t[18] : ($ = z ? (0, import_jsx_runtime.jsx)(ChevronDown, {
34572
+ t[15] !== a || t[16] !== d || t[17] !== _ ? (J = () => {
34573
+ _({
34574
+ prompt: buildFixPromptFromText(d, a)
34575
+ });
34576
+ }, t[15] = a, t[16] = d, t[17] = _, t[18] = J) : J = t[18];
34577
+ let Q = J, $;
34578
+ t[19] === z ? $ = t[20] : ($ = () => U(!z), t[19] = z, t[20] = $);
34579
+ let Qq = z ? "Collapse traceback" : "Expand traceback", $q;
34580
+ t[21] === z ? $q = t[22] : ($q = z ? (0, import_jsx_runtime.jsx)(ChevronDown, {
34389
34581
  className: "h-3 w-3"
34390
34582
  }) : (0, import_jsx_runtime.jsx)(ChevronRight, {
34391
34583
  className: "h-3 w-3"
34392
- }), t[17] = z, t[18] = $);
34393
- let Fq;
34394
- t[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Fq = (0, import_jsx_runtime.jsx)("span", {
34584
+ }), t[21] = z, t[22] = $q);
34585
+ let eJ;
34586
+ t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (eJ = (0, import_jsx_runtime.jsx)("span", {
34395
34587
  className: "text-[0.6875rem] uppercase tracking-wider",
34396
34588
  children: "Traceback"
34397
- }), t[19] = Fq) : Fq = t[19];
34398
- let Lq;
34399
- t[20] !== z || t[21] !== J || t[22] !== Q || t[23] !== $ ? (Lq = (0, import_jsx_runtime.jsxs)("button", {
34589
+ }), t[23] = eJ) : eJ = t[23];
34590
+ let tJ;
34591
+ t[24] !== z || t[25] !== $q || t[26] !== $ || t[27] !== Qq ? (tJ = (0, import_jsx_runtime.jsxs)("button", {
34400
34592
  type: "button",
34401
- onClick: J,
34593
+ onClick: $,
34402
34594
  "aria-expanded": z,
34403
- "aria-label": Q,
34595
+ "aria-label": Qq,
34404
34596
  className: "self-start flex items-center gap-1 pt-2 text-muted-foreground/70 hover:text-muted-foreground transition-colors",
34405
34597
  children: [
34406
- $,
34407
- Fq
34598
+ $q,
34599
+ eJ
34408
34600
  ]
34409
- }), t[20] = z, t[21] = J, t[22] = Q, t[23] = $, t[24] = Lq) : Lq = t[24];
34410
- let Rq;
34411
- t[25] !== s || t[26] !== z ? (Rq = z && (0, import_jsx_runtime.jsx)("div", {
34601
+ }), t[24] = z, t[25] = $q, t[26] = $, t[27] = Qq, t[28] = tJ) : tJ = t[28];
34602
+ let iJ;
34603
+ t[29] !== s || t[30] !== z ? (iJ = z && (0, import_jsx_runtime.jsx)("div", {
34412
34604
  className: "text-muted-foreground pr-4 text-xs overflow-auto",
34413
34605
  children: s
34414
- }), t[25] = s, t[26] = z, t[27] = Rq) : Rq = t[27];
34415
- let zq;
34416
- t[28] !== q || t[29] !== M ? (zq = M && (0, import_jsx_runtime.jsx)(AIFixButton, {
34606
+ }), t[29] = s, t[30] = z, t[31] = iJ) : iJ = t[31];
34607
+ let aJ;
34608
+ t[32] !== q || t[33] !== Q || t[34] !== M ? (aJ = M && (0, import_jsx_runtime.jsx)(AIFixButton, {
34417
34609
  tooltip: "Fix with AI",
34418
34610
  openPrompt: () => q(false),
34419
- applyAutofix: () => q(true)
34420
- }), t[28] = q, t[29] = M, t[30] = zq) : zq = t[30];
34421
- let Bq;
34422
- t[31] !== w || t[32] !== v ? (Bq = w && (0, import_jsx_runtime.jsx)(Tooltip, {
34611
+ applyAutofix: () => q(true),
34612
+ openChat: Q
34613
+ }), t[32] = q, t[33] = Q, t[34] = M, t[35] = aJ) : aJ = t[35];
34614
+ let oJ;
34615
+ t[36] !== O || t[37] !== y ? (oJ = O && (0, import_jsx_runtime.jsx)(Tooltip, {
34423
34616
  content: "Attach pdb to the exception point.",
34424
34617
  children: (0, import_jsx_runtime.jsxs)(Button, {
34425
34618
  size: "xs",
34426
34619
  variant: "outline",
34427
34620
  onClick: () => {
34428
34621
  getRequestClient().sendPdb({
34429
- cellId: v.cellId
34622
+ cellId: y.cellId
34430
34623
  });
34431
34624
  },
34432
34625
  children: [
@@ -34436,9 +34629,9 @@ ${d}`,
34436
34629
  "Launch debugger"
34437
34630
  ]
34438
34631
  })
34439
- }), t[31] = w, t[32] = v, t[33] = Bq) : Bq = t[33];
34440
- let Vq;
34441
- t[34] !== d || t[35] !== i ? (Vq = I && (0, import_jsx_runtime.jsxs)(DropdownMenu, {
34632
+ }), t[36] = O, t[37] = y, t[38] = oJ) : oJ = t[38];
34633
+ let sJ;
34634
+ t[39] !== d || t[40] !== i ? (sJ = I && (0, import_jsx_runtime.jsxs)(DropdownMenu, {
34442
34635
  children: [
34443
34636
  (0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
34444
34637
  asChild: true,
@@ -34506,25 +34699,25 @@ ${d}`,
34506
34699
  ]
34507
34700
  })
34508
34701
  ]
34509
- }), t[34] = d, t[35] = i, t[36] = Vq) : Vq = t[36];
34510
- let Hq;
34511
- t[37] !== zq || t[38] !== Bq || t[39] !== Vq ? (Hq = (0, import_jsx_runtime.jsxs)("div", {
34702
+ }), t[39] = d, t[40] = i, t[41] = sJ) : sJ = t[41];
34703
+ let cJ;
34704
+ t[42] !== aJ || t[43] !== oJ || t[44] !== sJ ? (cJ = (0, import_jsx_runtime.jsxs)("div", {
34512
34705
  className: "flex gap-2",
34513
34706
  children: [
34514
- zq,
34515
- Bq,
34516
- Vq
34707
+ aJ,
34708
+ oJ,
34709
+ sJ
34517
34710
  ]
34518
- }), t[37] = zq, t[38] = Bq, t[39] = Vq, t[40] = Hq) : Hq = t[40];
34519
- let Uq;
34520
- return t[41] !== Lq || t[42] !== Rq || t[43] !== Hq ? (Uq = (0, import_jsx_runtime.jsxs)("div", {
34711
+ }), t[42] = aJ, t[43] = oJ, t[44] = sJ, t[45] = cJ) : cJ = t[45];
34712
+ let lJ;
34713
+ return t[46] !== tJ || t[47] !== iJ || t[48] !== cJ ? (lJ = (0, import_jsx_runtime.jsxs)("div", {
34521
34714
  className: "flex flex-col gap-2 min-w-full w-fit",
34522
34715
  children: [
34523
- Lq,
34524
- Rq,
34525
- Hq
34716
+ tJ,
34717
+ iJ,
34718
+ cJ
34526
34719
  ]
34527
- }), t[41] = Lq, t[42] = Rq, t[43] = Hq, t[44] = Uq) : Uq = t[44], Uq;
34720
+ }), t[46] = tJ, t[47] = iJ, t[48] = cJ, t[49] = lJ) : lJ = t[49], lJ;
34528
34721
  };
34529
34722
  function lastLine(e) {
34530
34723
  var _a2, _b;
@@ -36001,7 +36194,7 @@ ${d}`,
36001
36194
  return Logger.warn("Failed to get version from mount config"), null;
36002
36195
  }
36003
36196
  }
36004
- marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.14-dev6");
36197
+ marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.14-dev8");
36005
36198
  showCodeInRunModeAtom = atom(true);
36006
36199
  atom(null);
36007
36200
  var import_compiler_runtime = require_compiler_runtime();