db-studio 1.14.0 → 1.14.1

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 (53) hide show
  1. package/dist/index.js +2 -2
  2. package/dist/index.js.map +1 -1
  3. package/dist/web-dist/assets/{_pathlessLayout-wBh7gK9q.js → _pathlessLayout-BYQmoqT2.js} +6 -6
  4. package/dist/web-dist/assets/_pathlessLayout-CdSIARYp.js +1 -0
  5. package/dist/web-dist/assets/{_queryId-CZGDd4fs.js → _queryId-IoOxUaz6.js} +1 -1
  6. package/dist/web-dist/assets/{_table-j-6h6Om5.js → _table-BI9E6-Je.js} +1 -1
  7. package/dist/web-dist/assets/{_table-DZOIq7aF.js → _table-ClkqBjYZ.js} +1 -1
  8. package/dist/web-dist/assets/{badge-DiSuKlwP.js → badge-SEQODpjR.js} +1 -1
  9. package/dist/web-dist/assets/{browser-DdWTHJJW.js → browser-CHG4p052.js} +1 -1
  10. package/dist/web-dist/assets/{bundle-mjs-5mNXw8Uh.js → bundle-mjs-BZOM22--.js} +1 -1
  11. package/dist/web-dist/assets/code-editor-BIfiMFMb.js +9 -0
  12. package/dist/web-dist/assets/{database.store-DzuxpP71.js → database.store-OsasuLJl.js} +1 -1
  13. package/dist/web-dist/assets/{dist-Bcrd0PtF.js → dist-D_0esNxp.js} +1 -1
  14. package/dist/web-dist/assets/{format-cell-value-lejp1lDf.js → format-cell-value-D41tFXxV.js} +1 -1
  15. package/dist/web-dist/assets/{highlighted-body-OFNGDK62-Cb34z6at.js → highlighted-body-OFNGDK62-DBl3trdK.js} +1 -1
  16. package/dist/web-dist/assets/{icons-D6bNpzOL.js → icons-rRDRsZcq.js} +1 -1
  17. package/dist/web-dist/assets/index-Be5YdcX5.css +2 -0
  18. package/dist/web-dist/assets/index-CJ2YPwW4.js +36 -0
  19. package/dist/web-dist/assets/indexes-DMAVA8iJ.js +1 -0
  20. package/dist/web-dist/assets/logs-DCMuv22K.js +1 -0
  21. package/dist/web-dist/assets/{mermaid-GHXKKRXX-B5pqoNgJ.js → mermaid-GHXKKRXX-DJ7TvQxw.js} +1 -1
  22. package/dist/web-dist/assets/{middleware-CYbbS--7.js → middleware-Y6OdmOWR.js} +1 -1
  23. package/dist/web-dist/assets/{monaco-editor-C-DV5CL8.js → monaco-editor-BO3WVEVM.js} +280 -280
  24. package/dist/web-dist/assets/monaco-editor-IL9D_L0g.css +1 -0
  25. package/dist/web-dist/assets/{monitoring-DWzrlTkx.js → monitoring-BtlIcl3k.js} +1 -1
  26. package/dist/web-dist/assets/{overlay.store-TOgdd28d.js → overlay.store-DjYsesE7.js} +1 -1
  27. package/dist/web-dist/assets/{queries.store-Cul86O-l.js → queries.store-CxkLh1ra.js} +1 -1
  28. package/dist/web-dist/assets/{query-runner-BhGrHn5P.js → query-runner-keHo7IiI.js} +5 -5
  29. package/dist/web-dist/assets/{radix-ui-CtzftI1z.js → radix-ui-C1Z_SoKk.js} +1 -1
  30. package/dist/web-dist/assets/{react-B3nJmLdO.js → react-1gU4DcpZ.js} +1 -1
  31. package/dist/web-dist/assets/{react-dom-DOIt489g.js → react-dom-DkH0eaTq.js} +1 -1
  32. package/dist/web-dist/assets/{redis-value-B1T4ApeG.js → redis-value-BmLGJf9X.js} +1 -1
  33. package/dist/web-dist/assets/{rolldown-runtime-D2WZefnn.js → rolldown-runtime-DY1mqKjv.js} +1 -1
  34. package/dist/web-dist/assets/{runner-BI316iCf.js → runner-CvUPs6q4.js} +1 -1
  35. package/dist/web-dist/assets/schema-9nf0q_01.js +57 -0
  36. package/dist/web-dist/assets/schema-C-10JjXl.js +1 -0
  37. package/dist/web-dist/assets/table-C75Kr4aI.js +1 -0
  38. package/dist/web-dist/assets/tanstack-C3XvOIUf.js +11 -0
  39. package/dist/web-dist/assets/visualizer-CiiH2acP.js +1 -0
  40. package/dist/web-dist/index.html +19 -19
  41. package/package.json +2 -2
  42. package/dist/web-dist/assets/_pathlessLayout-BXxEoaJK.js +0 -1
  43. package/dist/web-dist/assets/code-editor-BXm3myTR.js +0 -9
  44. package/dist/web-dist/assets/index-B_H1M603.js +0 -36
  45. package/dist/web-dist/assets/index-DHb8byer.css +0 -2
  46. package/dist/web-dist/assets/indexes-DecPH1pX.js +0 -1
  47. package/dist/web-dist/assets/logs-CXbJheYV.js +0 -1
  48. package/dist/web-dist/assets/monaco-editor-DcHpHuJd.css +0 -1
  49. package/dist/web-dist/assets/schema-CwD_s_ox.js +0 -64
  50. package/dist/web-dist/assets/schema-D9V1P9K2.js +0 -1
  51. package/dist/web-dist/assets/table-DbvYpea0.js +0 -1
  52. package/dist/web-dist/assets/tanstack-DQKs7SF9.js +0 -11
  53. package/dist/web-dist/assets/visualizer-7aPZoUCc.js +0 -1
@@ -1,17 +1,17 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/code-editor-BXm3myTR.js","assets/rolldown-runtime-D2WZefnn.js","assets/icons-D6bNpzOL.js","assets/radix-ui-CtzftI1z.js","assets/dist-Bcrd0PtF.js","assets/monaco-editor-C-DV5CL8.js","assets/monaco-editor-DcHpHuJd.css","assets/index-B_H1M603.js","assets/tanstack-DQKs7SF9.js","assets/react-dom-DOIt489g.js","assets/overlay.store-TOgdd28d.js","assets/bundle-mjs-5mNXw8Uh.js","assets/react-B3nJmLdO.js","assets/monitoring-DWzrlTkx.js","assets/schema-CwD_s_ox.js","assets/badge-DiSuKlwP.js","assets/database.store-DzuxpP71.js","assets/format-cell-value-lejp1lDf.js","assets/middleware-CYbbS--7.js","assets/index-DHb8byer.css"])))=>i.map(i=>d[i]);
2
- import{r as P}from"./rolldown-runtime-D2WZefnn.js";import{c as Y,l as G,o as W,s as k,w as B,x as K}from"./tanstack-DQKs7SF9.js";import{L as T,Y as J,Z,ht as X,l as ee,m as re,s as se,t as te,v as ae,xt as oe}from"./icons-D6bNpzOL.js";import{kt as ne}from"./radix-ui-CtzftI1z.js";import{n as N}from"./dist-Bcrd0PtF.js";import{B as g,U as le,a as S,j as ie,n as w,o as L,r as C,t as q}from"./overlay.store-TOgdd28d.js";import{r as de}from"./monitoring-DWzrlTkx.js";import{t as D}from"./database.store-DzuxpP71.js";import{t as ce}from"./format-cell-value-lejp1lDf.js";import{a as ue}from"./monaco-editor-C-DV5CL8.js";import{H as O,K as $,S as he,d as me,f as A,x as xe}from"./index-B_H1M603.js";import{t as be}from"./queries.store-Cul86O-l.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};r.SENTRY_RELEASE={id:"db-studio@1.14.0"};var o=new r.Error().stack;o&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[o]="7684c4a0-75e2-417d-b33a-bfc7d32dde7f",r._sentryDebugIdIdentifier="sentry-dbid-7684c4a0-75e2-417d-b33a-bfc7d32dde7f")}catch{}})();var n=P(oe(),1),fe=`-- Your query here...
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/code-editor-BIfiMFMb.js","assets/rolldown-runtime-DY1mqKjv.js","assets/icons-rRDRsZcq.js","assets/radix-ui-C1Z_SoKk.js","assets/dist-D_0esNxp.js","assets/monaco-editor-BO3WVEVM.js","assets/monaco-editor-IL9D_L0g.css","assets/index-CJ2YPwW4.js","assets/tanstack-C3XvOIUf.js","assets/react-dom-DkH0eaTq.js","assets/overlay.store-DjYsesE7.js","assets/bundle-mjs-BZOM22--.js","assets/react-1gU4DcpZ.js","assets/monitoring-BtlIcl3k.js","assets/schema-9nf0q_01.js","assets/badge-SEQODpjR.js","assets/database.store-OsasuLJl.js","assets/format-cell-value-D41tFXxV.js","assets/middleware-Y6OdmOWR.js","assets/index-Be5YdcX5.css"])))=>i.map(i=>d[i]);
2
+ import{r as Y}from"./rolldown-runtime-DY1mqKjv.js";import{c as G,l as P,o as W,s as k,w as B,x as K}from"./tanstack-C3XvOIUf.js";import{L as T,Y as J,Z,ht as X,l as ee,m as re,s as se,t as te,v as ae,xt as oe}from"./icons-rRDRsZcq.js";import{kt as ne}from"./radix-ui-C1Z_SoKk.js";import{n as N}from"./dist-D_0esNxp.js";import{B as g,U as le,a as S,j as ie,n as w,o as L,r as C,t as q}from"./overlay.store-DjYsesE7.js";import{r as de}from"./monitoring-BtlIcl3k.js";import{t as D}from"./database.store-OsasuLJl.js";import{t as ce}from"./format-cell-value-D41tFXxV.js";import{a as ue}from"./monaco-editor-BO3WVEVM.js";import{G as O,Y as $,b as he,d as me,f as A,x as xe}from"./index-CJ2YPwW4.js";import{t as be}from"./queries.store-CxkLh1ra.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};r.SENTRY_RELEASE={id:"db-studio@1.14.1"};var o=new r.Error().stack;o&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[o]="0de973e3-aeb9-4d34-8ccb-ffa53152d2f6",r._sentryDebugIdIdentifier="sentry-dbid-0de973e3-aeb9-4d34-8ccb-ffa53152d2f6")}catch{}})();var n=Y(oe(),1),fe=`-- Your query here...
3
3
  `,ge=`{
4
4
  "collection": "your_collection",
5
5
  "operation": "find",
6
6
  "filter": {},
7
7
  "sort": { "_id": 1 },
8
8
  "limit": 50
9
- }`,pe="PING",e=ne(),ye=({results:r})=>{const o=(0,n.useMemo)(()=>r?.columns?r.columns.map(t=>({id:t,accessorKey:t,header:t,cell:({row:s})=>(0,e.jsx)("div",{className:"font-medium truncate text-foreground",children:ce(s.getValue(t))})})):[],[r?.columns]),a=Y({columns:o,data:r?.rows??[],getCoreRowModel:G(),columnResizeMode:"onChange",enableColumnResizing:!0}),{rows:l}=a.getRowModel(),c=(0,n.useRef)(null),m=W({count:l.length,getScrollElement:()=>c.current,estimateSize:()=>35,overscan:10}),i=m.getVirtualItems(),u=a.getAllColumns().reduce((t,s)=>t+s.getSize(),0);return(0,e.jsxs)("div",{ref:c,className:"relative h-full overflow-auto w-full bg-background text-foreground",children:[(0,e.jsx)("div",{className:"sticky top-0 z-20 bg-muted/40 border-b border-border supports-backdrop-filter:backdrop-blur-sm",style:{width:`${u}px`,minWidth:"100%"},children:a.getHeaderGroups().map(t=>(0,e.jsx)("div",{className:"flex text-xs",children:t.headers.map(s=>(0,e.jsxs)("div",{className:"shrink-0 p-2 font-semibold text-muted-foreground border-r border-border relative",style:{width:`${s.getSize()}px`},children:[s.isPlaceholder?null:k(s.column.columnDef.header,s.getContext()),(0,e.jsx)("div",{role:"presentation",onMouseDown:s.getResizeHandler(),onTouchStart:s.getResizeHandler(),className:`absolute top-0 right-0 h-full w-1 cursor-col-resize select-none touch-none hover:bg-blue-500 ${s.column.getIsResizing()?"bg-blue-500":""}`})]},s.id))},t.id))}),(0,e.jsx)("div",{style:{height:`${m.getTotalSize()}px`,width:`${u}px`,minWidth:"100%",position:"relative"},children:i.map(t=>{const s=l[t.index];return(0,e.jsx)("div",{style:{position:"absolute",top:0,left:0,width:`${u}px`,minWidth:"100%",height:`${t.size}px`,transform:`translateY(${t.start}px)`},className:"flex text-xs border-b border-border hover:bg-accent/20",children:s.getVisibleCells().map(d=>(0,e.jsx)("div",{className:"shrink-0 p-2 border-r border-border",style:{width:`${d.column.getSize()}px`},children:k(d.column.columnDef.cell,d.getContext())},d.id))},s.id)})}),l.length===0&&(0,e.jsx)("div",{className:"flex items-center justify-center h-24 text-muted-foreground",children:"No results."})]})},ve=({results:r,isLoading:o,error:a,lastExecutedQuery:l})=>{const[c]=O(L.RUNNER_STATE_KEYS.SHOW_AS),{requestAssistant:m}=$(),{openOverlay:i}=q(),u=s=>{m(s),i("chat.assistant")},t=(0,n.useMemo)(()=>a?(0,e.jsx)("div",{className:"flex h-full p-2",children:(0,e.jsxs)("div",{className:"space-y-2 text-sm",children:[(0,e.jsxs)("div",{children:["Error: ",a.message]}),(0,e.jsx)(g,{type:"button",variant:"outline",size:"sm",disabled:!l.trim(),onClick:()=>u(`Fix this failing query. Explain the cause and return the complete corrected query in a fenced code block.
9
+ }`,pe="PING",e=ne(),ye=({results:r})=>{const o=(0,n.useMemo)(()=>r?.columns?r.columns.map(t=>({id:t,accessorKey:t,header:t,cell:({row:s})=>(0,e.jsx)("div",{className:"font-medium truncate text-foreground",children:ce(s.getValue(t))})})):[],[r?.columns]),a=G({columns:o,data:r?.rows??[],getCoreRowModel:P(),columnResizeMode:"onChange",enableColumnResizing:!0}),{rows:l}=a.getRowModel(),c=(0,n.useRef)(null),m=W({count:l.length,getScrollElement:()=>c.current,estimateSize:()=>35,overscan:10}),i=m.getVirtualItems(),u=a.getAllColumns().reduce((t,s)=>t+s.getSize(),0);return(0,e.jsxs)("div",{ref:c,className:"relative h-full overflow-auto w-full bg-background text-foreground",children:[(0,e.jsx)("div",{className:"sticky top-0 z-20 bg-muted/40 border-b border-border supports-backdrop-filter:backdrop-blur-sm",style:{width:`${u}px`,minWidth:"100%"},children:a.getHeaderGroups().map(t=>(0,e.jsx)("div",{className:"flex text-xs",children:t.headers.map(s=>(0,e.jsxs)("div",{className:"shrink-0 p-2 font-semibold text-muted-foreground border-r border-border relative",style:{width:`${s.getSize()}px`},children:[s.isPlaceholder?null:k(s.column.columnDef.header,s.getContext()),(0,e.jsx)("div",{role:"presentation",onMouseDown:s.getResizeHandler(),onTouchStart:s.getResizeHandler(),className:`absolute top-0 right-0 h-full w-1 cursor-col-resize select-none touch-none hover:bg-blue-500 ${s.column.getIsResizing()?"bg-blue-500":""}`})]},s.id))},t.id))}),(0,e.jsx)("div",{style:{height:`${m.getTotalSize()}px`,width:`${u}px`,minWidth:"100%",position:"relative"},children:i.map(t=>{const s=l[t.index];return(0,e.jsx)("div",{style:{position:"absolute",top:0,left:0,width:`${u}px`,minWidth:"100%",height:`${t.size}px`,transform:`translateY(${t.start}px)`},className:"flex text-xs border-b border-border hover:bg-accent/20",children:s.getVisibleCells().map(d=>(0,e.jsx)("div",{className:"shrink-0 p-2 border-r border-border",style:{width:`${d.column.getSize()}px`},children:k(d.column.columnDef.cell,d.getContext())},d.id))},s.id)})}),l.length===0&&(0,e.jsx)("div",{className:"flex items-center justify-center h-24 text-muted-foreground",children:"No results."})]})},ve=({results:r,isLoading:o,error:a,lastExecutedQuery:l})=>{const[c]=O(L.RUNNER_STATE_KEYS.SHOW_AS),{requestAssistant:m}=$(),{openOverlay:i}=q(),u=s=>{m(s),i("chat.assistant")},t=(0,n.useMemo)(()=>a?(0,e.jsx)("div",{className:"flex h-full p-2",children:(0,e.jsxs)("div",{className:"space-y-2 text-sm",children:[(0,e.jsxs)("div",{children:["Error: ",a.message]}),(0,e.jsx)(g,{type:"button",variant:"outline",size:"sm",disabled:!l.trim(),onClick:()=>u(`Fix this failing query. Explain the cause and return the complete corrected query in a fenced code block.
10
10
 
11
11
  Query:
12
12
  ${l}
13
13
 
14
14
  Error:
15
- ${a.message}`),children:"Suggest fix"})]})}):r?.message?(0,e.jsx)("div",{className:"flex h-full p-2",children:(0,e.jsx)("p",{children:r.message})}):!r||r.rows.length===0?(0,e.jsx)("div",{className:"flex h-full p-2",children:(0,e.jsx)("p",{children:"Run the query to see the results"})}):c==="json"?(0,e.jsx)("div",{className:"p-2",children:(0,e.jsx)(he,{value:r?.rows??[],objectSortKeys:!0,displayObjectSize:!1,displayDataTypes:!1,indentWidth:14,collapsed:2,shortenTextAfterLength:100,highlightUpdates:!1,style:xe,enableClipboard:!1,className:"size-full"})}):(0,e.jsx)(ye,{results:r}),[c,r,a,l]);return(0,e.jsx)("div",{className:"absolute bottom-0 left-0 right-0 border-t border-border flex flex-col bg-background text-foreground w-full",style:{height:"calc(100vh - 400px)"},children:(0,e.jsx)("div",{className:"flex-1 overflow-auto w-full",children:o?(0,e.jsx)("div",{className:"flex items-center justify-center h-full overflow-auto",children:(0,e.jsx)(le,{size:"size-8",color:"bg-[#d4d4d4]"})}):t})})},je=({isExecutingQuery:r,handleButtonClick:o,handleFormatQuery:a,handleSaveQuery:l,handleFavorite:c,isFavorite:m,queryId:i,hasUnsavedChanges:u,queryResult:t,currentQuery:s})=>{const[d,p]=O(L.RUNNER_STATE_KEYS.SHOW_AS),{requestAssistant:y}=$(),{openOverlay:E}=q(),v=b=>{y(b),E("chat.assistant")};return(0,e.jsxs)("header",{className:"max-h-8 overflow-hidden border-b border-border w-full flex items-center justify-between bg-background text-foreground sticky top-0 left-0 right-0 z-0",children:[(0,e.jsxs)("div",{className:"flex items-center",children:[(0,e.jsxs)(g,{type:"button",variant:"default",className:"h-8! border-l-0 border-y-0 border-r border-border rounded-none bg-green-700 text-white hover:bg-green-800 gap-1 disabled:opacity-50",onClick:o,disabled:r,"aria-label":"Run the query",children:["Run",(0,e.jsx)(Z,{className:"size-3"}),(0,e.jsx)(J,{className:"size-3"})]}),(0,e.jsxs)(w,{children:[(0,e.jsx)(S,{asChild:!0,children:(0,e.jsx)(g,{type:"button",variant:"ghost",className:"h-8! border-l-0 border-y-0 border-r border-zinc-800 rounded-none","aria-label":"Generate a query with AI",onClick:()=>v("Generate a query for this database. Ask me for the goal if it is unclear."),children:(0,e.jsx)(re,{className:"size-3"})})}),(0,e.jsx)(C,{children:"Generate with AI"})]}),(0,e.jsxs)(w,{children:[(0,e.jsx)(S,{asChild:!0,children:(0,e.jsx)(g,{type:"button",variant:"ghost",className:"h-8! border-l-0 border-y-0 border-r border-zinc-800 rounded-none","aria-label":"Optimize the query with AI",disabled:!s.trim()||r,onClick:()=>v(`Suggest a faster, clearer version of this query. Explain the tradeoffs and return the complete query in a fenced code block.
15
+ ${a.message}`),children:"Suggest fix"})]})}):r?.message?(0,e.jsx)("div",{className:"flex h-full p-2",children:(0,e.jsx)("p",{children:r.message})}):!r||r.rows.length===0?(0,e.jsx)("div",{className:"flex h-full p-2",children:(0,e.jsx)("p",{children:"Run the query to see the results"})}):c==="json"?(0,e.jsx)("div",{className:"p-2",children:(0,e.jsx)(xe,{value:r?.rows??[],objectSortKeys:!0,displayObjectSize:!1,displayDataTypes:!1,indentWidth:14,collapsed:2,shortenTextAfterLength:100,highlightUpdates:!1,style:he,enableClipboard:!1,className:"size-full"})}):(0,e.jsx)(ye,{results:r}),[c,r,a,l]);return(0,e.jsx)("div",{className:"absolute bottom-0 left-0 right-0 border-t border-border flex flex-col bg-background text-foreground w-full",style:{height:"calc(100vh - 400px)"},children:(0,e.jsx)("div",{className:"flex-1 overflow-auto w-full",children:o?(0,e.jsx)("div",{className:"flex items-center justify-center h-full overflow-auto",children:(0,e.jsx)(le,{size:"size-8",color:"bg-[#d4d4d4]"})}):t})})},je=({isExecutingQuery:r,handleButtonClick:o,handleFormatQuery:a,handleSaveQuery:l,handleFavorite:c,isFavorite:m,queryId:i,hasUnsavedChanges:u,queryResult:t,currentQuery:s})=>{const[d,p]=O(L.RUNNER_STATE_KEYS.SHOW_AS),{requestAssistant:y}=$(),{openOverlay:E}=q(),v=b=>{y(b),E("chat.assistant")};return(0,e.jsxs)("header",{className:"max-h-8 overflow-hidden border-b border-border w-full flex items-center justify-between bg-background text-foreground sticky top-0 left-0 right-0 z-0",children:[(0,e.jsxs)("div",{className:"flex items-center",children:[(0,e.jsxs)(g,{type:"button",variant:"default",className:"h-8! border-l-0 border-y-0 border-r border-border rounded-none bg-green-700 text-white hover:bg-green-800 gap-1 disabled:opacity-50",onClick:o,disabled:r,"aria-label":"Run the query",children:["Run",(0,e.jsx)(Z,{className:"size-3"}),(0,e.jsx)(J,{className:"size-3"})]}),(0,e.jsxs)(w,{children:[(0,e.jsx)(S,{asChild:!0,children:(0,e.jsx)(g,{type:"button",variant:"ghost",className:"h-8! border-l-0 border-y-0 border-r border-zinc-800 rounded-none","aria-label":"Generate a query with AI",onClick:()=>v("Generate a query for this database. Ask me for the goal if it is unclear."),children:(0,e.jsx)(re,{className:"size-3"})})}),(0,e.jsx)(C,{children:"Generate with AI"})]}),(0,e.jsxs)(w,{children:[(0,e.jsx)(S,{asChild:!0,children:(0,e.jsx)(g,{type:"button",variant:"ghost",className:"h-8! border-l-0 border-y-0 border-r border-zinc-800 rounded-none","aria-label":"Optimize the query with AI",disabled:!s.trim()||r,onClick:()=>v(`Suggest a faster, clearer version of this query. Explain the tradeoffs and return the complete query in a fenced code block.
16
16
 
17
- ${s}`),children:(0,e.jsx)(te,{className:"size-3"})})}),(0,e.jsx)(C,{children:"Optimize with AI"})]}),(0,e.jsxs)(g,{type:"button",variant:"ghost",className:"h-8! border-l-0 border-y-0 border-r border-border rounded-none text-muted-foreground hover:text-foreground hover:bg-muted/60 transition-colors","aria-label":"Format the query",onClick:a,children:["Format ",(0,e.jsx)(se,{className:"size-3"})]}),(0,e.jsxs)(g,{type:"button",variant:"ghost",className:"h-8! border-l-0 border-y-0 border-r border-border rounded-none text-muted-foreground hover:text-foreground hover:bg-muted/60 transition-colors","aria-label":"Save the query",onClick:l,children:["Save ",(0,e.jsx)(ae,{className:"size-3"})]}),(0,e.jsx)(g,{type:"button",variant:"ghost",className:"h-8! border-l-0 border-y-0 border-r border-border rounded-none text-muted-foreground hover:text-foreground hover:bg-muted/60 transition-colors","aria-label":"Favorite the query",onClick:c,children:m?(0,e.jsx)(T,{className:"size-3 fill-current"}):(0,e.jsx)(T,{className:"size-3"})}),i&&u&&(0,e.jsx)("span",{className:"text-xs px-2 text-muted-foreground",children:"Unsaved changes"})]}),(0,e.jsxs)("div",{className:"flex items-center",children:[t&&(0,e.jsxs)("div",{className:"flex items-center gap-1 px-2",children:[(0,e.jsxs)("span",{className:"text-xs text-muted-foreground",children:[t.data?.duration?.toFixed(2),"ms"]}),(0,e.jsx)("span",{className:"text-xs text-muted-foreground",children:"•"}),(0,e.jsxs)("span",{className:"text-xs text-muted-foreground",children:[t.data?.rowCount??0," rows"]})]}),(0,e.jsxs)(me,{type:"single",variant:"ghost",onValueChange:b=>{b!==d&&p(b)},value:d??void 0,className:"h-8! rounded-none! border-l! border-border!",children:[(0,e.jsxs)(w,{children:[(0,e.jsx)(S,{asChild:!0,children:(0,e.jsx)(A,{value:"table","aria-label":"Toggle table",className:"rounded-none! h-8! aspect-square!","data-selected":d==="table",children:(0,e.jsx)(ee,{})})}),(0,e.jsx)(C,{children:(0,e.jsx)("p",{children:"View as a table"})})]}),(0,e.jsxs)(w,{children:[(0,e.jsx)(S,{asChild:!0,children:(0,e.jsx)(A,{value:"json","aria-label":"Toggle JSON",className:"rounded-none! h-8! aspect-square!","data-selected":d==="json",children:(0,e.jsx)(X,{})})}),(0,e.jsx)(C,{children:(0,e.jsx)("p",{children:"View as a JSON"})})]})]})]})]})},Ne=()=>{const{selectedDatabase:r,dbType:o}=D(),{mutateAsync:a,isPending:l,error:c}=B({mutationFn:async({query:i})=>(await ie({query:i,db:r})).data.data,onSuccess:()=>{o&&de.capture("query_executed",{db_type:o})}});return{executeQuery:async({query:i})=>{try{return await a({query:i})}catch{return}},isExecutingQuery:l,executeQueryError:c}},Se=(0,n.lazy)(()=>ue(()=>import("./code-editor-BXm3myTR.js").then(r=>({default:r.CodeEditor})),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]))),De=({queryId:r,initialQuery:o})=>{const a=K(),[l,c]=(0,n.useState)(void 0),{getQuery:m,updateQuery:i,toggleFavorite:u,addQuery:t}=be(),s=r?m(r):null,d=s?.isFavorite??!1,{executeQuery:p,isExecutingQuery:y,executeQueryError:E}=Ne(),[v,b]=(0,n.useState)(!1),[x,F]=(0,n.useState)(""),[H,U]=(0,n.useState)(""),{dbType:f}=D(),M=(0,n.useCallback)(()=>{if(o)return o;const h=f==="mongodb"?ge:f==="redis"?pe:fe;return s?s?.query??h:h},[s,f,o]),Q=(0,n.useCallback)(async h=>{if(!h.trim()){N.error("Query is empty!");return}const j=h.trim().match(/^\S+/)?.[0]?.toUpperCase();if(f==="redis"&&(j==="FLUSHDB"||j==="FLUSHALL")&&window.prompt(`This permanently deletes Redis data. Type ${j} to continue.`)!==j)return;U(h);const R=await p({query:h});R&&c({data:R,queryId:r??""})},[f,p,r]),V=(0,n.useCallback)(()=>{if(!x.trim()){N.error("Query is empty!");return}Q(x)},[Q,x]),I=(0,n.useCallback)(()=>{r&&(u(r),N.success(d?"Query unfavorited":"Query favorited"))},[u,r,d]),_=(0,n.useCallback)(()=>{},[]),z=(0,n.useCallback)(()=>{if(x){if(r)i(r,{query:x});else{const h=t();i(h,{query:x}),a({to:"/runner/$queryId",params:{queryId:h}})}b(!1),N.success("Query saved")}},[x,r,i,t,a]);return(0,e.jsxs)("div",{className:"flex-1 relative w-full flex flex-col",children:[(0,e.jsx)(je,{isExecutingQuery:y,handleButtonClick:V,handleFormatQuery:_,handleSaveQuery:z,handleFavorite:I,isFavorite:d,queryId:r??"",hasUnsavedChanges:v,queryResult:l??null,currentQuery:x}),(0,e.jsx)(n.Suspense,{fallback:(0,e.jsx)("div",{className:"flex-1 bg-background size-full"}),children:(0,e.jsx)(Se,{initialQuery:M(),queryId:r,savedQuery:s?.query??"",language:f==="mongodb"?"json":f==="redis"?"plaintext":"pgsql",onQueryChange:F,onUnsavedChanges:b,onExecuteQuery:Q,onFormatQuery:_,onSaveQuery:z})}),(0,e.jsx)(ve,{results:l?.data??null,isLoading:y,error:E,lastExecutedQuery:H})]})};export{De as t};
17
+ ${s}`),children:(0,e.jsx)(te,{className:"size-3"})})}),(0,e.jsx)(C,{children:"Optimize with AI"})]}),(0,e.jsxs)(g,{type:"button",variant:"ghost",className:"h-8! border-l-0 border-y-0 border-r border-border rounded-none text-muted-foreground hover:text-foreground hover:bg-muted/60 transition-colors","aria-label":"Format the query",onClick:a,children:["Format ",(0,e.jsx)(se,{className:"size-3"})]}),(0,e.jsxs)(g,{type:"button",variant:"ghost",className:"h-8! border-l-0 border-y-0 border-r border-border rounded-none text-muted-foreground hover:text-foreground hover:bg-muted/60 transition-colors","aria-label":"Save the query",onClick:l,children:["Save ",(0,e.jsx)(ae,{className:"size-3"})]}),(0,e.jsx)(g,{type:"button",variant:"ghost",className:"h-8! border-l-0 border-y-0 border-r border-border rounded-none text-muted-foreground hover:text-foreground hover:bg-muted/60 transition-colors","aria-label":"Favorite the query",onClick:c,children:m?(0,e.jsx)(T,{className:"size-3 fill-current"}):(0,e.jsx)(T,{className:"size-3"})}),i&&u&&(0,e.jsx)("span",{className:"text-xs px-2 text-muted-foreground",children:"Unsaved changes"})]}),(0,e.jsxs)("div",{className:"flex items-center",children:[t&&(0,e.jsxs)("div",{className:"flex items-center gap-1 px-2",children:[(0,e.jsxs)("span",{className:"text-xs text-muted-foreground",children:[t.data?.duration?.toFixed(2),"ms"]}),(0,e.jsx)("span",{className:"text-xs text-muted-foreground",children:"•"}),(0,e.jsxs)("span",{className:"text-xs text-muted-foreground",children:[t.data?.rowCount??0," rows"]})]}),(0,e.jsxs)(me,{type:"single",variant:"ghost",onValueChange:b=>{b!==d&&p(b)},value:d??void 0,className:"h-8! rounded-none! border-l! border-border!",children:[(0,e.jsxs)(w,{children:[(0,e.jsx)(S,{asChild:!0,children:(0,e.jsx)(A,{value:"table","aria-label":"Toggle table",className:"rounded-none! h-8! aspect-square!","data-selected":d==="table",children:(0,e.jsx)(ee,{})})}),(0,e.jsx)(C,{children:(0,e.jsx)("p",{children:"View as a table"})})]}),(0,e.jsxs)(w,{children:[(0,e.jsx)(S,{asChild:!0,children:(0,e.jsx)(A,{value:"json","aria-label":"Toggle JSON",className:"rounded-none! h-8! aspect-square!","data-selected":d==="json",children:(0,e.jsx)(X,{})})}),(0,e.jsx)(C,{children:(0,e.jsx)("p",{children:"View as a JSON"})})]})]})]})]})},Ne=()=>{const{selectedDatabase:r,dbType:o}=D(),{mutateAsync:a,isPending:l,error:c}=B({mutationFn:async({query:i})=>(await ie({query:i,db:r})).data.data,onSuccess:()=>{o&&de.capture("query_executed",{db_type:o})}});return{executeQuery:async({query:i})=>{try{return await a({query:i})}catch{return}},isExecutingQuery:l,executeQueryError:c}},Se=(0,n.lazy)(()=>ue(()=>import("./code-editor-BIfiMFMb.js").then(r=>({default:r.CodeEditor})),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]))),De=({queryId:r,initialQuery:o})=>{const a=K(),[l,c]=(0,n.useState)(void 0),{getQuery:m,updateQuery:i,toggleFavorite:u,addQuery:t}=be(),s=r?m(r):null,d=s?.isFavorite??!1,{executeQuery:p,isExecutingQuery:y,executeQueryError:E}=Ne(),[v,b]=(0,n.useState)(!1),[x,F]=(0,n.useState)(""),[U,H]=(0,n.useState)(""),{dbType:f}=D(),M=(0,n.useCallback)(()=>{if(o)return o;const h=f==="mongodb"?ge:f==="redis"?pe:fe;return s?s?.query??h:h},[s,f,o]),Q=(0,n.useCallback)(async h=>{if(!h.trim()){N.error("Query is empty!");return}const j=h.trim().match(/^\S+/)?.[0]?.toUpperCase();if(f==="redis"&&(j==="FLUSHDB"||j==="FLUSHALL")&&window.prompt(`This permanently deletes Redis data. Type ${j} to continue.`)!==j)return;H(h);const R=await p({query:h});R&&c({data:R,queryId:r??""})},[f,p,r]),V=(0,n.useCallback)(()=>{if(!x.trim()){N.error("Query is empty!");return}Q(x)},[Q,x]),I=(0,n.useCallback)(()=>{r&&(u(r),N.success(d?"Query unfavorited":"Query favorited"))},[u,r,d]),_=(0,n.useCallback)(()=>{},[]),z=(0,n.useCallback)(()=>{if(x){if(r)i(r,{query:x});else{const h=t();i(h,{query:x}),a({to:"/runner/$queryId",params:{queryId:h}})}b(!1),N.success("Query saved")}},[x,r,i,t,a]);return(0,e.jsxs)("div",{className:"flex-1 relative w-full flex flex-col",children:[(0,e.jsx)(je,{isExecutingQuery:y,handleButtonClick:V,handleFormatQuery:_,handleSaveQuery:z,handleFavorite:I,isFavorite:d,queryId:r??"",hasUnsavedChanges:v,queryResult:l??null,currentQuery:x}),(0,e.jsx)(n.Suspense,{fallback:(0,e.jsx)("div",{className:"flex-1 bg-background size-full"}),children:(0,e.jsx)(Se,{initialQuery:M(),queryId:r,savedQuery:s?.query??"",language:f==="mongodb"?"json":f==="redis"?"plaintext":"pgsql",onQueryChange:F,onUnsavedChanges:b,onExecuteQuery:Q,onFormatQuery:_,onSaveQuery:z})}),(0,e.jsx)(ve,{results:l?.data??null,isLoading:y,error:E,lastExecutedQuery:U})]})};export{De as t};
@@ -1,4 +1,4 @@
1
- import{r as lo,t as zt}from"./rolldown-runtime-D2WZefnn.js";import{xt as uo}from"./icons-D6bNpzOL.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"db-studio@1.14.0"};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e8ff2997-752d-48b4-a497-6616f3539ff3",e._sentryDebugIdIdentifier="sentry-dbid-e8ff2997-752d-48b4-a497-6616f3539ff3")}catch{}})();var Ec=zt((e=>{var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(o,a,i){var c=null;if(i!==void 0&&(c=""+i),a.key!==void 0&&(c=""+a.key),"key"in a){i={};for(var u in a)u!=="key"&&(i[u]=a[u])}else i=a;return a=i.ref,{$$typeof:t,type:o,key:c,ref:a!==void 0?a:null,props:i}}e.Fragment=n,e.jsx=r,e.jsxs=r})),Rc=zt(((e,t)=>{t.exports=Ec()})),Pc=zt((e=>{var t=uo();function n(d){var l="https://react.dev/errors/"+d;if(1<arguments.length){l+="?args[]="+encodeURIComponent(arguments[1]);for(var f=2;f<arguments.length;f++)l+="&args[]="+encodeURIComponent(arguments[f])}return"Minified React error #"+d+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var o={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for("react.portal");function i(d,l,f){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:v==null?null:""+v,children:d,containerInfo:l,implementation:f}}var c=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(d,l){if(d==="font")return"";if(typeof l=="string")return l==="use-credentials"?l:""}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,e.createPortal=function(d,l){var f=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11)throw Error(n(299));return i(d,l,null,f)},e.flushSync=function(d){var l=c.T,f=o.p;try{if(c.T=null,o.p=2,d)return d()}finally{c.T=l,o.p=f,o.d.f()}},e.preconnect=function(d,l){typeof d=="string"&&(l?(l=l.crossOrigin,l=typeof l=="string"?l==="use-credentials"?l:"":void 0):l=null,o.d.C(d,l))},e.prefetchDNS=function(d){typeof d=="string"&&o.d.D(d)},e.preinit=function(d,l){if(typeof d=="string"&&l&&typeof l.as=="string"){var f=l.as,v=u(f,l.crossOrigin),m=typeof l.integrity=="string"?l.integrity:void 0,x=typeof l.fetchPriority=="string"?l.fetchPriority:void 0;f==="style"?o.d.S(d,typeof l.precedence=="string"?l.precedence:void 0,{crossOrigin:v,integrity:m,fetchPriority:x}):f==="script"&&o.d.X(d,{crossOrigin:v,integrity:m,fetchPriority:x,nonce:typeof l.nonce=="string"?l.nonce:void 0})}},e.preinitModule=function(d,l){if(typeof d=="string")if(typeof l=="object"&&l!==null){if(l.as==null||l.as==="script"){var f=u(l.as,l.crossOrigin);o.d.M(d,{crossOrigin:f,integrity:typeof l.integrity=="string"?l.integrity:void 0,nonce:typeof l.nonce=="string"?l.nonce:void 0})}}else l??o.d.M(d)},e.preload=function(d,l){if(typeof d=="string"&&typeof l=="object"&&l!==null&&typeof l.as=="string"){var f=l.as,v=u(f,l.crossOrigin);o.d.L(d,f,{crossOrigin:v,integrity:typeof l.integrity=="string"?l.integrity:void 0,nonce:typeof l.nonce=="string"?l.nonce:void 0,type:typeof l.type=="string"?l.type:void 0,fetchPriority:typeof l.fetchPriority=="string"?l.fetchPriority:void 0,referrerPolicy:typeof l.referrerPolicy=="string"?l.referrerPolicy:void 0,imageSrcSet:typeof l.imageSrcSet=="string"?l.imageSrcSet:void 0,imageSizes:typeof l.imageSizes=="string"?l.imageSizes:void 0,media:typeof l.media=="string"?l.media:void 0})}},e.preloadModule=function(d,l){if(typeof d=="string")if(l){var f=u(l.as,l.crossOrigin);o.d.m(d,{as:typeof l.as=="string"&&l.as!=="script"?l.as:void 0,crossOrigin:f,integrity:typeof l.integrity=="string"?l.integrity:void 0})}else o.d.m(d)},e.requestFormReset=function(d){o.d.r(d)},e.unstable_batchedUpdates=function(d,l){return d(l)},e.useFormState=function(d,l,f){return c.H.useFormState(d,l,f)},e.useFormStatus=function(){return c.H.useHostTransitionStatus()},e.version="19.2.5"})),_c=zt(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}n(),t.exports=Pc()})),s=lo(uo(),1),Hv=!!(typeof window<"u"&&window.document&&window.document.createElement);function S(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function Dr(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ft(...e){return t=>{let n=!1;const r=e.map(o=>{const a=Dr(o,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let o=0;o<r.length;o++){const a=r[o];typeof a=="function"?a():Dr(e[o],null)}}}}function D(...e){return s.useCallback(ft(...e),e)}var p=Rc();function Tc(e,t){const n=s.createContext(t),r=a=>{const{children:i,...c}=a,u=s.useMemo(()=>c,Object.values(c));return(0,p.jsx)(n.Provider,{value:u,children:i})};r.displayName=e+"Provider";function o(a){const i=s.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[r,o]}function q(e,t=[]){let n=[];function r(a,i){const c=s.createContext(i),u=n.length;n=[...n,i];const d=f=>{const{scope:v,children:m,...x}=f,h=v?.[e]?.[u]||c,g=s.useMemo(()=>x,Object.values(x));return(0,p.jsx)(h.Provider,{value:g,children:m})};d.displayName=a+"Provider";function l(f,v){const m=v?.[e]?.[u]||c,x=s.useContext(m);if(x)return x;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${a}\``)}return[d,l]}const o=()=>{const a=n.map(i=>s.createContext(i));return function(c){const u=c?.[e]||a;return s.useMemo(()=>({[`__scope${e}`]:{...c,[e]:u}}),[c,u])}};return o.scopeName=e,[r,Ac(o,...t)]}function Ac(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const i=r.reduce((c,{useScope:u,scopeName:d})=>{const l=u(a)[`__scope${d}`];return{...c,...l}},{});return s.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var pt=lo(_c(),1),Y=globalThis?.document?s.useLayoutEffect:()=>{},Mc=s[" useId ".trim().toString()]||(()=>{}),Oc=0;function re(e){const[t,n]=s.useState(Mc());return Y(()=>{e||n(r=>r??String(Oc++))},[e]),e||(t?`radix-${t}`:"")}var Nc=s[" useInsertionEffect ".trim().toString()]||Y;function Q({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,a,i]=Ic({defaultProp:t,onChange:n}),c=e!==void 0,u=c?e:o;{const d=s.useRef(e!==void 0);s.useEffect(()=>{const l=d.current;l!==c&&console.warn(`${r} is changing from ${l?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=c},[c,r])}return[u,s.useCallback(d=>{if(c){const l=Dc(d)?d(e):d;l!==e&&i.current?.(l)}else a(d)},[c,e,a,i])]}function Ic({defaultProp:e,onChange:t}){const[n,r]=s.useState(e),o=s.useRef(n),a=s.useRef(t);return Nc(()=>{a.current=t},[t]),s.useEffect(()=>{o.current!==n&&(a.current?.(n),o.current=n)},[n,o]),[n,r,a]}function Dc(e){return typeof e=="function"}function ke(e){const t=jc(e),n=s.forwardRef((r,o)=>{const{children:a,...i}=r,c=s.Children.toArray(a),u=c.find(Lc);if(u){const d=u.props.children,l=c.map(f=>f===u?s.Children.count(d)>1?s.Children.only(null):s.isValidElement(d)?d.props.children:null:f);return(0,p.jsx)(t,{...i,ref:o,children:s.isValidElement(d)?s.cloneElement(d,void 0,l):null})}return(0,p.jsx)(t,{...i,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}function jc(e){const t=s.forwardRef((n,r)=>{const{children:o,...a}=n;if(s.isValidElement(o)){const i=Fc(o),c=kc(a,o.props);return o.type!==s.Fragment&&(c.ref=r?ft(r,i):i),s.cloneElement(o,c)}return s.Children.count(o)>1?s.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var fo=Symbol("radix.slottable");function po(e){const t=({children:n})=>(0,p.jsx)(p.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=fo,t}function Lc(e){return s.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===fo}function kc(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...i)=>{const c=a(...i);return o(...i),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function Fc(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var T=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const n=ke(`Primitive.${t}`),r=s.forwardRef((o,a)=>{const{asChild:i,...c}=o,u=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,p.jsx)(u,{...c,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function vo(e,t){e&&pt.flushSync(()=>e.dispatchEvent(t))}function K(e){const t=s.useRef(e);return s.useEffect(()=>{t.current=e}),s.useMemo(()=>(...n)=>t.current?.(...n),[])}function $c(e,t=globalThis?.document){const n=K(e);s.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Bc="DismissableLayer",Dn="dismissableLayer.update",Wc="dismissableLayer.pointerDownOutside",Hc="dismissableLayer.focusOutside",jr,ho=s.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Qe=s.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:c,...u}=e,d=s.useContext(ho),[l,f]=s.useState(null),v=l?.ownerDocument??globalThis?.document,[,m]=s.useState({}),x=D(t,E=>f(E)),h=Array.from(d.layers),[g]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),y=h.indexOf(g),w=l?h.indexOf(l):-1,C=d.layersWithOutsidePointerEventsDisabled.size>0,b=w>=y,P=Vc(E=>{const M=E.target,A=[...d.branches].some(O=>O.contains(M));!b||A||(o?.(E),i?.(E),E.defaultPrevented||c?.())},v),R=Kc(E=>{const M=E.target;[...d.branches].some(A=>A.contains(M))||(a?.(E),i?.(E),E.defaultPrevented||c?.())},v);return $c(E=>{w===d.layers.size-1&&(r?.(E),!E.defaultPrevented&&c&&(E.preventDefault(),c()))},v),s.useEffect(()=>{if(l)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(jr=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(l)),d.layers.add(l),Lr(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=jr)}},[l,v,n,d]),s.useEffect(()=>()=>{l&&(d.layers.delete(l),d.layersWithOutsidePointerEventsDisabled.delete(l),Lr())},[l,d]),s.useEffect(()=>{const E=()=>m({});return document.addEventListener(Dn,E),()=>document.removeEventListener(Dn,E)},[]),(0,p.jsx)(T.div,{...u,ref:x,style:{pointerEvents:C?b?"auto":"none":void 0,...e.style},onFocusCapture:S(e.onFocusCapture,R.onFocusCapture),onBlurCapture:S(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:S(e.onPointerDownCapture,P.onPointerDownCapture)})});Qe.displayName=Bc;var Gc="DismissableLayerBranch",Uc=s.forwardRef((e,t)=>{const n=s.useContext(ho),r=s.useRef(null),o=D(t,r);return s.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),(0,p.jsx)(T.div,{...e,ref:o})});Uc.displayName=Gc;function Vc(e,t=globalThis?.document){const n=K(e),r=s.useRef(!1),o=s.useRef(()=>{});return s.useEffect(()=>{const a=c=>{if(c.target&&!r.current){let u=function(){mo(Wc,n,d,{discrete:!0})};const d={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Kc(e,t=globalThis?.document){const n=K(e),r=s.useRef(!1);return s.useEffect(()=>{const o=a=>{a.target&&!r.current&&mo(Hc,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Lr(){const e=new CustomEvent(Dn);document.dispatchEvent(e)}function mo(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?vo(o,a):o.dispatchEvent(a)}var Sn="focusScope.autoFocusOnMount",En="focusScope.autoFocusOnUnmount",kr={bubbles:!1,cancelable:!0},zc="FocusScope",vt=s.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[c,u]=s.useState(null),d=K(o),l=K(a),f=s.useRef(null),v=D(t,h=>u(h)),m=s.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;s.useEffect(()=>{if(r){let h=function(C){if(m.paused||!c)return;const b=C.target;c.contains(b)?f.current=b:Pe(f.current,{select:!0})},g=function(C){if(m.paused||!c)return;const b=C.relatedTarget;b!==null&&(c.contains(b)||Pe(f.current,{select:!0}))},y=function(C){if(document.activeElement===document.body)for(const b of C)b.removedNodes.length>0&&Pe(c)};document.addEventListener("focusin",h),document.addEventListener("focusout",g);const w=new MutationObserver(y);return c&&w.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",g),w.disconnect()}}},[r,c,m.paused]),s.useEffect(()=>{if(c){$r.add(m);const h=document.activeElement;if(!c.contains(h)){const g=new CustomEvent(Sn,kr);c.addEventListener(Sn,d),c.dispatchEvent(g),g.defaultPrevented||(Yc(Jc(go(c)),{select:!0}),document.activeElement===h&&Pe(c))}return()=>{c.removeEventListener(Sn,d),setTimeout(()=>{const g=new CustomEvent(En,kr);c.addEventListener(En,l),c.dispatchEvent(g),g.defaultPrevented||Pe(h??document.body,{select:!0}),c.removeEventListener(En,l),$r.remove(m)},0)}}},[c,d,l,m]);const x=s.useCallback(h=>{if(!n&&!r||m.paused)return;const g=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,y=document.activeElement;if(g&&y){const w=h.currentTarget,[C,b]=Xc(w);C&&b?!h.shiftKey&&y===b?(h.preventDefault(),n&&Pe(C,{select:!0})):h.shiftKey&&y===C&&(h.preventDefault(),n&&Pe(b,{select:!0})):y===w&&h.preventDefault()}},[n,r,m.paused]);return(0,p.jsx)(T.div,{tabIndex:-1,...i,ref:v,onKeyDown:x})});vt.displayName=zc;function Yc(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Pe(r,{select:t}),document.activeElement!==n)return}function Xc(e){const t=go(e);return[Fr(t,e),Fr(t.reverse(),e)]}function go(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Fr(e,t){for(const n of e)if(!qc(n,{upTo:t}))return n}function qc(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Zc(e){return e instanceof HTMLInputElement&&"select"in e}function Pe(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Zc(e)&&t&&e.select()}}var $r=Qc();function Qc(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=Br(e,t),e.unshift(t)},remove(t){e=Br(e,t),e[0]?.resume()}}}function Br(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Jc(e){return e.filter(t=>t.tagName!=="A")}var el="Portal",Je=s.forwardRef((e,t)=>{const{container:n,...r}=e,[o,a]=s.useState(!1);Y(()=>a(!0),[]);const i=n||o&&globalThis?.document?.body;return i?pt.createPortal((0,p.jsx)(T.div,{...r,ref:t}),i):null});Je.displayName=el;function tl(e,t){return s.useReducer((n,r)=>t[n][r]??n,e)}var z=e=>{const{present:t,children:n}=e,r=nl(t),o=typeof n=="function"?n({present:r.isPresent}):s.Children.only(n),a=D(r.ref,rl(o));return typeof n=="function"||r.isPresent?s.cloneElement(o,{ref:a}):null};z.displayName="Presence";function nl(e){const[t,n]=s.useState(),r=s.useRef(null),o=s.useRef(e),a=s.useRef("none"),[i,c]=tl(e?"mounted":"unmounted",{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return s.useEffect(()=>{const u=Rt(r.current);a.current=i==="mounted"?u:"none"},[i]),Y(()=>{const u=r.current,d=o.current;if(d!==e){const l=a.current,f=Rt(u);e?c("MOUNT"):f==="none"||u?.display==="none"?c("UNMOUNT"):c(d&&l!==f?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),Y(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,l=v=>{const m=Rt(r.current).includes(CSS.escape(v.animationName));if(v.target===t&&m&&(c("ANIMATION_END"),!o.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},f=v=>{v.target===t&&(a.current=Rt(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",l),t.addEventListener("animationend",l),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",l),t.removeEventListener("animationend",l)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:s.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Rt(e){return e?.animationName||"none"}function rl(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Rn=0;function Yt(){s.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Wr()),document.body.insertAdjacentElement("beforeend",e[1]??Wr()),Rn++,()=>{Rn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Rn--}},[])}function Wr(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var me=function(){return me=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},me.apply(this,arguments)};function xo(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function ol(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var Nt="right-scroll-bar-position",It="width-before-scroll-bar",al="with-scroll-bars-hidden",sl="--removed-body-scroll-bar-size";function Pn(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function il(e,t){var n=(0,s.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var cl=typeof window<"u"?s.useLayoutEffect:s.useEffect,Hr=new WeakMap;function ll(e,t){var n=il(t||null,function(r){return e.forEach(function(o){return Pn(o,r)})});return cl(function(){var r=Hr.get(n);if(r){var o=new Set(r),a=new Set(e),i=n.current;o.forEach(function(c){a.has(c)||Pn(c,null)}),a.forEach(function(c){o.has(c)||Pn(c,i)})}Hr.set(n,e)},[e]),n}function ul(e){return e}function dl(e,t){t===void 0&&(t=ul);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(o){var a=t(o,r);return n.push(a),function(){n=n.filter(function(i){return i!==a})}},assignSyncMedium:function(o){for(r=!0;n.length;){var a=n;n=[],a.forEach(o)}n={push:function(i){return o(i)},filter:function(){return n}}},assignMedium:function(o){r=!0;var a=[];if(n.length){var i=n;n=[],i.forEach(o),a=n}var c=function(){var d=a;a=[],d.forEach(o)},u=function(){return Promise.resolve().then(c)};u(),n={push:function(d){a.push(d),u()},filter:function(d){return a=a.filter(d),n}}}}}function fl(e){e===void 0&&(e={});var t=dl(null);return t.options=me({async:!0,ssr:!1},e),t}var wo=function(e){var t=e.sideCar,n=xo(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return s.createElement(r,me({},n))};wo.isSideCarExport=!0;function pl(e,t){return e.useMedium(t),wo}var yo=fl(),_n=function(){},Xt=s.forwardRef(function(e,t){var n=s.useRef(null),r=s.useState({onScrollCapture:_n,onWheelCapture:_n,onTouchMoveCapture:_n}),o=r[0],a=r[1],i=e.forwardProps,c=e.children,u=e.className,d=e.removeScrollBar,l=e.enabled,f=e.shards,v=e.sideCar,m=e.noRelative,x=e.noIsolation,h=e.inert,g=e.allowPinchZoom,y=e.as,w=y===void 0?"div":y,C=e.gapMode,b=xo(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),P=v,R=ll([n,t]),E=me(me({},b),o);return s.createElement(s.Fragment,null,l&&s.createElement(P,{sideCar:yo,removeScrollBar:d,shards:f,noRelative:m,noIsolation:x,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:C}),i?s.cloneElement(s.Children.only(c),me(me({},E),{ref:R})):s.createElement(w,me({},E,{className:u,ref:R}),c))});Xt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Xt.classNames={fullWidth:It,zeroRight:Nt};var Gr,vl=function(){if(Gr)return Gr;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function hl(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=vl();return t&&e.setAttribute("nonce",t),e}function ml(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function gl(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}var xl=function(){var e=0,t=null;return{add:function(n){e==0&&(t=hl())&&(ml(t,n),gl(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},wl=function(){var e=xl();return function(t,n){s.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Co=function(){var e=wl(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},yl={left:0,top:0,right:0,gap:0},Tn=function(e){return parseInt(e||"",10)||0},Cl=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Tn(n),Tn(r),Tn(o)]},bl=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return yl;var t=Cl(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Sl=Co(),it="data-scroll-locked",El=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,c=e.gap;return n===void 0&&(n="margin"),`
1
+ import{r as lo,t as zt}from"./rolldown-runtime-DY1mqKjv.js";import{xt as uo}from"./icons-rRDRsZcq.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"db-studio@1.14.1"};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e8ff2997-752d-48b4-a497-6616f3539ff3",e._sentryDebugIdIdentifier="sentry-dbid-e8ff2997-752d-48b4-a497-6616f3539ff3")}catch{}})();var Ec=zt((e=>{var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(o,a,i){var c=null;if(i!==void 0&&(c=""+i),a.key!==void 0&&(c=""+a.key),"key"in a){i={};for(var u in a)u!=="key"&&(i[u]=a[u])}else i=a;return a=i.ref,{$$typeof:t,type:o,key:c,ref:a!==void 0?a:null,props:i}}e.Fragment=n,e.jsx=r,e.jsxs=r})),Rc=zt(((e,t)=>{t.exports=Ec()})),Pc=zt((e=>{var t=uo();function n(d){var l="https://react.dev/errors/"+d;if(1<arguments.length){l+="?args[]="+encodeURIComponent(arguments[1]);for(var f=2;f<arguments.length;f++)l+="&args[]="+encodeURIComponent(arguments[f])}return"Minified React error #"+d+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var o={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for("react.portal");function i(d,l,f){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:v==null?null:""+v,children:d,containerInfo:l,implementation:f}}var c=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(d,l){if(d==="font")return"";if(typeof l=="string")return l==="use-credentials"?l:""}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,e.createPortal=function(d,l){var f=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11)throw Error(n(299));return i(d,l,null,f)},e.flushSync=function(d){var l=c.T,f=o.p;try{if(c.T=null,o.p=2,d)return d()}finally{c.T=l,o.p=f,o.d.f()}},e.preconnect=function(d,l){typeof d=="string"&&(l?(l=l.crossOrigin,l=typeof l=="string"?l==="use-credentials"?l:"":void 0):l=null,o.d.C(d,l))},e.prefetchDNS=function(d){typeof d=="string"&&o.d.D(d)},e.preinit=function(d,l){if(typeof d=="string"&&l&&typeof l.as=="string"){var f=l.as,v=u(f,l.crossOrigin),m=typeof l.integrity=="string"?l.integrity:void 0,x=typeof l.fetchPriority=="string"?l.fetchPriority:void 0;f==="style"?o.d.S(d,typeof l.precedence=="string"?l.precedence:void 0,{crossOrigin:v,integrity:m,fetchPriority:x}):f==="script"&&o.d.X(d,{crossOrigin:v,integrity:m,fetchPriority:x,nonce:typeof l.nonce=="string"?l.nonce:void 0})}},e.preinitModule=function(d,l){if(typeof d=="string")if(typeof l=="object"&&l!==null){if(l.as==null||l.as==="script"){var f=u(l.as,l.crossOrigin);o.d.M(d,{crossOrigin:f,integrity:typeof l.integrity=="string"?l.integrity:void 0,nonce:typeof l.nonce=="string"?l.nonce:void 0})}}else l??o.d.M(d)},e.preload=function(d,l){if(typeof d=="string"&&typeof l=="object"&&l!==null&&typeof l.as=="string"){var f=l.as,v=u(f,l.crossOrigin);o.d.L(d,f,{crossOrigin:v,integrity:typeof l.integrity=="string"?l.integrity:void 0,nonce:typeof l.nonce=="string"?l.nonce:void 0,type:typeof l.type=="string"?l.type:void 0,fetchPriority:typeof l.fetchPriority=="string"?l.fetchPriority:void 0,referrerPolicy:typeof l.referrerPolicy=="string"?l.referrerPolicy:void 0,imageSrcSet:typeof l.imageSrcSet=="string"?l.imageSrcSet:void 0,imageSizes:typeof l.imageSizes=="string"?l.imageSizes:void 0,media:typeof l.media=="string"?l.media:void 0})}},e.preloadModule=function(d,l){if(typeof d=="string")if(l){var f=u(l.as,l.crossOrigin);o.d.m(d,{as:typeof l.as=="string"&&l.as!=="script"?l.as:void 0,crossOrigin:f,integrity:typeof l.integrity=="string"?l.integrity:void 0})}else o.d.m(d)},e.requestFormReset=function(d){o.d.r(d)},e.unstable_batchedUpdates=function(d,l){return d(l)},e.useFormState=function(d,l,f){return c.H.useFormState(d,l,f)},e.useFormStatus=function(){return c.H.useHostTransitionStatus()},e.version="19.2.5"})),_c=zt(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}n(),t.exports=Pc()})),s=lo(uo(),1),Hv=!!(typeof window<"u"&&window.document&&window.document.createElement);function S(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function Dr(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ft(...e){return t=>{let n=!1;const r=e.map(o=>{const a=Dr(o,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let o=0;o<r.length;o++){const a=r[o];typeof a=="function"?a():Dr(e[o],null)}}}}function D(...e){return s.useCallback(ft(...e),e)}var p=Rc();function Tc(e,t){const n=s.createContext(t),r=a=>{const{children:i,...c}=a,u=s.useMemo(()=>c,Object.values(c));return(0,p.jsx)(n.Provider,{value:u,children:i})};r.displayName=e+"Provider";function o(a){const i=s.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[r,o]}function q(e,t=[]){let n=[];function r(a,i){const c=s.createContext(i),u=n.length;n=[...n,i];const d=f=>{const{scope:v,children:m,...x}=f,h=v?.[e]?.[u]||c,g=s.useMemo(()=>x,Object.values(x));return(0,p.jsx)(h.Provider,{value:g,children:m})};d.displayName=a+"Provider";function l(f,v){const m=v?.[e]?.[u]||c,x=s.useContext(m);if(x)return x;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${a}\``)}return[d,l]}const o=()=>{const a=n.map(i=>s.createContext(i));return function(c){const u=c?.[e]||a;return s.useMemo(()=>({[`__scope${e}`]:{...c,[e]:u}}),[c,u])}};return o.scopeName=e,[r,Ac(o,...t)]}function Ac(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const i=r.reduce((c,{useScope:u,scopeName:d})=>{const l=u(a)[`__scope${d}`];return{...c,...l}},{});return s.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var pt=lo(_c(),1),Y=globalThis?.document?s.useLayoutEffect:()=>{},Mc=s[" useId ".trim().toString()]||(()=>{}),Oc=0;function re(e){const[t,n]=s.useState(Mc());return Y(()=>{e||n(r=>r??String(Oc++))},[e]),e||(t?`radix-${t}`:"")}var Nc=s[" useInsertionEffect ".trim().toString()]||Y;function Q({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,a,i]=Ic({defaultProp:t,onChange:n}),c=e!==void 0,u=c?e:o;{const d=s.useRef(e!==void 0);s.useEffect(()=>{const l=d.current;l!==c&&console.warn(`${r} is changing from ${l?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=c},[c,r])}return[u,s.useCallback(d=>{if(c){const l=Dc(d)?d(e):d;l!==e&&i.current?.(l)}else a(d)},[c,e,a,i])]}function Ic({defaultProp:e,onChange:t}){const[n,r]=s.useState(e),o=s.useRef(n),a=s.useRef(t);return Nc(()=>{a.current=t},[t]),s.useEffect(()=>{o.current!==n&&(a.current?.(n),o.current=n)},[n,o]),[n,r,a]}function Dc(e){return typeof e=="function"}function ke(e){const t=jc(e),n=s.forwardRef((r,o)=>{const{children:a,...i}=r,c=s.Children.toArray(a),u=c.find(Lc);if(u){const d=u.props.children,l=c.map(f=>f===u?s.Children.count(d)>1?s.Children.only(null):s.isValidElement(d)?d.props.children:null:f);return(0,p.jsx)(t,{...i,ref:o,children:s.isValidElement(d)?s.cloneElement(d,void 0,l):null})}return(0,p.jsx)(t,{...i,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}function jc(e){const t=s.forwardRef((n,r)=>{const{children:o,...a}=n;if(s.isValidElement(o)){const i=Fc(o),c=kc(a,o.props);return o.type!==s.Fragment&&(c.ref=r?ft(r,i):i),s.cloneElement(o,c)}return s.Children.count(o)>1?s.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var fo=Symbol("radix.slottable");function po(e){const t=({children:n})=>(0,p.jsx)(p.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=fo,t}function Lc(e){return s.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===fo}function kc(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...i)=>{const c=a(...i);return o(...i),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function Fc(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var T=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const n=ke(`Primitive.${t}`),r=s.forwardRef((o,a)=>{const{asChild:i,...c}=o,u=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,p.jsx)(u,{...c,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function vo(e,t){e&&pt.flushSync(()=>e.dispatchEvent(t))}function K(e){const t=s.useRef(e);return s.useEffect(()=>{t.current=e}),s.useMemo(()=>(...n)=>t.current?.(...n),[])}function $c(e,t=globalThis?.document){const n=K(e);s.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Bc="DismissableLayer",Dn="dismissableLayer.update",Wc="dismissableLayer.pointerDownOutside",Hc="dismissableLayer.focusOutside",jr,ho=s.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Qe=s.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:c,...u}=e,d=s.useContext(ho),[l,f]=s.useState(null),v=l?.ownerDocument??globalThis?.document,[,m]=s.useState({}),x=D(t,E=>f(E)),h=Array.from(d.layers),[g]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),y=h.indexOf(g),w=l?h.indexOf(l):-1,C=d.layersWithOutsidePointerEventsDisabled.size>0,b=w>=y,P=Vc(E=>{const M=E.target,A=[...d.branches].some(O=>O.contains(M));!b||A||(o?.(E),i?.(E),E.defaultPrevented||c?.())},v),R=Kc(E=>{const M=E.target;[...d.branches].some(A=>A.contains(M))||(a?.(E),i?.(E),E.defaultPrevented||c?.())},v);return $c(E=>{w===d.layers.size-1&&(r?.(E),!E.defaultPrevented&&c&&(E.preventDefault(),c()))},v),s.useEffect(()=>{if(l)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(jr=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(l)),d.layers.add(l),Lr(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=jr)}},[l,v,n,d]),s.useEffect(()=>()=>{l&&(d.layers.delete(l),d.layersWithOutsidePointerEventsDisabled.delete(l),Lr())},[l,d]),s.useEffect(()=>{const E=()=>m({});return document.addEventListener(Dn,E),()=>document.removeEventListener(Dn,E)},[]),(0,p.jsx)(T.div,{...u,ref:x,style:{pointerEvents:C?b?"auto":"none":void 0,...e.style},onFocusCapture:S(e.onFocusCapture,R.onFocusCapture),onBlurCapture:S(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:S(e.onPointerDownCapture,P.onPointerDownCapture)})});Qe.displayName=Bc;var Gc="DismissableLayerBranch",Uc=s.forwardRef((e,t)=>{const n=s.useContext(ho),r=s.useRef(null),o=D(t,r);return s.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),(0,p.jsx)(T.div,{...e,ref:o})});Uc.displayName=Gc;function Vc(e,t=globalThis?.document){const n=K(e),r=s.useRef(!1),o=s.useRef(()=>{});return s.useEffect(()=>{const a=c=>{if(c.target&&!r.current){let u=function(){mo(Wc,n,d,{discrete:!0})};const d={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Kc(e,t=globalThis?.document){const n=K(e),r=s.useRef(!1);return s.useEffect(()=>{const o=a=>{a.target&&!r.current&&mo(Hc,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Lr(){const e=new CustomEvent(Dn);document.dispatchEvent(e)}function mo(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?vo(o,a):o.dispatchEvent(a)}var Sn="focusScope.autoFocusOnMount",En="focusScope.autoFocusOnUnmount",kr={bubbles:!1,cancelable:!0},zc="FocusScope",vt=s.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[c,u]=s.useState(null),d=K(o),l=K(a),f=s.useRef(null),v=D(t,h=>u(h)),m=s.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;s.useEffect(()=>{if(r){let h=function(C){if(m.paused||!c)return;const b=C.target;c.contains(b)?f.current=b:Pe(f.current,{select:!0})},g=function(C){if(m.paused||!c)return;const b=C.relatedTarget;b!==null&&(c.contains(b)||Pe(f.current,{select:!0}))},y=function(C){if(document.activeElement===document.body)for(const b of C)b.removedNodes.length>0&&Pe(c)};document.addEventListener("focusin",h),document.addEventListener("focusout",g);const w=new MutationObserver(y);return c&&w.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",g),w.disconnect()}}},[r,c,m.paused]),s.useEffect(()=>{if(c){$r.add(m);const h=document.activeElement;if(!c.contains(h)){const g=new CustomEvent(Sn,kr);c.addEventListener(Sn,d),c.dispatchEvent(g),g.defaultPrevented||(Yc(Jc(go(c)),{select:!0}),document.activeElement===h&&Pe(c))}return()=>{c.removeEventListener(Sn,d),setTimeout(()=>{const g=new CustomEvent(En,kr);c.addEventListener(En,l),c.dispatchEvent(g),g.defaultPrevented||Pe(h??document.body,{select:!0}),c.removeEventListener(En,l),$r.remove(m)},0)}}},[c,d,l,m]);const x=s.useCallback(h=>{if(!n&&!r||m.paused)return;const g=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,y=document.activeElement;if(g&&y){const w=h.currentTarget,[C,b]=Xc(w);C&&b?!h.shiftKey&&y===b?(h.preventDefault(),n&&Pe(C,{select:!0})):h.shiftKey&&y===C&&(h.preventDefault(),n&&Pe(b,{select:!0})):y===w&&h.preventDefault()}},[n,r,m.paused]);return(0,p.jsx)(T.div,{tabIndex:-1,...i,ref:v,onKeyDown:x})});vt.displayName=zc;function Yc(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Pe(r,{select:t}),document.activeElement!==n)return}function Xc(e){const t=go(e);return[Fr(t,e),Fr(t.reverse(),e)]}function go(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Fr(e,t){for(const n of e)if(!qc(n,{upTo:t}))return n}function qc(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Zc(e){return e instanceof HTMLInputElement&&"select"in e}function Pe(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Zc(e)&&t&&e.select()}}var $r=Qc();function Qc(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=Br(e,t),e.unshift(t)},remove(t){e=Br(e,t),e[0]?.resume()}}}function Br(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Jc(e){return e.filter(t=>t.tagName!=="A")}var el="Portal",Je=s.forwardRef((e,t)=>{const{container:n,...r}=e,[o,a]=s.useState(!1);Y(()=>a(!0),[]);const i=n||o&&globalThis?.document?.body;return i?pt.createPortal((0,p.jsx)(T.div,{...r,ref:t}),i):null});Je.displayName=el;function tl(e,t){return s.useReducer((n,r)=>t[n][r]??n,e)}var z=e=>{const{present:t,children:n}=e,r=nl(t),o=typeof n=="function"?n({present:r.isPresent}):s.Children.only(n),a=D(r.ref,rl(o));return typeof n=="function"||r.isPresent?s.cloneElement(o,{ref:a}):null};z.displayName="Presence";function nl(e){const[t,n]=s.useState(),r=s.useRef(null),o=s.useRef(e),a=s.useRef("none"),[i,c]=tl(e?"mounted":"unmounted",{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return s.useEffect(()=>{const u=Rt(r.current);a.current=i==="mounted"?u:"none"},[i]),Y(()=>{const u=r.current,d=o.current;if(d!==e){const l=a.current,f=Rt(u);e?c("MOUNT"):f==="none"||u?.display==="none"?c("UNMOUNT"):c(d&&l!==f?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),Y(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,l=v=>{const m=Rt(r.current).includes(CSS.escape(v.animationName));if(v.target===t&&m&&(c("ANIMATION_END"),!o.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},f=v=>{v.target===t&&(a.current=Rt(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",l),t.addEventListener("animationend",l),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",l),t.removeEventListener("animationend",l)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:s.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Rt(e){return e?.animationName||"none"}function rl(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Rn=0;function Yt(){s.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Wr()),document.body.insertAdjacentElement("beforeend",e[1]??Wr()),Rn++,()=>{Rn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Rn--}},[])}function Wr(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var me=function(){return me=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},me.apply(this,arguments)};function xo(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function ol(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var Nt="right-scroll-bar-position",It="width-before-scroll-bar",al="with-scroll-bars-hidden",sl="--removed-body-scroll-bar-size";function Pn(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function il(e,t){var n=(0,s.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var cl=typeof window<"u"?s.useLayoutEffect:s.useEffect,Hr=new WeakMap;function ll(e,t){var n=il(t||null,function(r){return e.forEach(function(o){return Pn(o,r)})});return cl(function(){var r=Hr.get(n);if(r){var o=new Set(r),a=new Set(e),i=n.current;o.forEach(function(c){a.has(c)||Pn(c,null)}),a.forEach(function(c){o.has(c)||Pn(c,i)})}Hr.set(n,e)},[e]),n}function ul(e){return e}function dl(e,t){t===void 0&&(t=ul);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(o){var a=t(o,r);return n.push(a),function(){n=n.filter(function(i){return i!==a})}},assignSyncMedium:function(o){for(r=!0;n.length;){var a=n;n=[],a.forEach(o)}n={push:function(i){return o(i)},filter:function(){return n}}},assignMedium:function(o){r=!0;var a=[];if(n.length){var i=n;n=[],i.forEach(o),a=n}var c=function(){var d=a;a=[],d.forEach(o)},u=function(){return Promise.resolve().then(c)};u(),n={push:function(d){a.push(d),u()},filter:function(d){return a=a.filter(d),n}}}}}function fl(e){e===void 0&&(e={});var t=dl(null);return t.options=me({async:!0,ssr:!1},e),t}var wo=function(e){var t=e.sideCar,n=xo(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return s.createElement(r,me({},n))};wo.isSideCarExport=!0;function pl(e,t){return e.useMedium(t),wo}var yo=fl(),_n=function(){},Xt=s.forwardRef(function(e,t){var n=s.useRef(null),r=s.useState({onScrollCapture:_n,onWheelCapture:_n,onTouchMoveCapture:_n}),o=r[0],a=r[1],i=e.forwardProps,c=e.children,u=e.className,d=e.removeScrollBar,l=e.enabled,f=e.shards,v=e.sideCar,m=e.noRelative,x=e.noIsolation,h=e.inert,g=e.allowPinchZoom,y=e.as,w=y===void 0?"div":y,C=e.gapMode,b=xo(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),P=v,R=ll([n,t]),E=me(me({},b),o);return s.createElement(s.Fragment,null,l&&s.createElement(P,{sideCar:yo,removeScrollBar:d,shards:f,noRelative:m,noIsolation:x,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:C}),i?s.cloneElement(s.Children.only(c),me(me({},E),{ref:R})):s.createElement(w,me({},E,{className:u,ref:R}),c))});Xt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Xt.classNames={fullWidth:It,zeroRight:Nt};var Gr,vl=function(){if(Gr)return Gr;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function hl(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=vl();return t&&e.setAttribute("nonce",t),e}function ml(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function gl(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}var xl=function(){var e=0,t=null;return{add:function(n){e==0&&(t=hl())&&(ml(t,n),gl(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},wl=function(){var e=xl();return function(t,n){s.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Co=function(){var e=wl(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},yl={left:0,top:0,right:0,gap:0},Tn=function(e){return parseInt(e||"",10)||0},Cl=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Tn(n),Tn(r),Tn(o)]},bl=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return yl;var t=Cl(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Sl=Co(),it="data-scroll-locked",El=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,c=e.gap;return n===void 0&&(n="margin"),`
2
2
  .`.concat(al,` {
3
3
  overflow: hidden `).concat(r,`;
4
4
  padding-right: `).concat(c,"px ").concat(r,`;
@@ -1 +1 @@
1
- import{r as g}from"./rolldown-runtime-D2WZefnn.js";import{xt as y}from"./icons-D6bNpzOL.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};t.SENTRY_RELEASE={id:"db-studio@1.14.0"};var e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="786b1137-96ff-4924-892f-dc6369db556e",t._sentryDebugIdIdentifier="sentry-dbid-786b1137-96ff-4924-892f-dc6369db556e")}catch{}})();var a=g(y(),1),d=t=>{let e;const n=new Set,o=(s,u)=>{const r=typeof s=="function"?s(e):s;if(!Object.is(r,e)){const l=e;e=u??(typeof r!="object"||r===null)?r:Object.assign({},e,r),n.forEach(S=>S(e,l))}},i=()=>e,c={setState:o,getState:i,getInitialState:()=>f,subscribe:s=>(n.add(s),()=>n.delete(s))},f=e=t(o,i,c);return c},I=(t=>t?d(t):d),v=t=>t;function _(t,e=v){const n=a.useSyncExternalStore(t.subscribe,a.useCallback(()=>e(t.getState()),[t,e]),a.useCallback(()=>e(t.getInitialState()),[t,e]));return a.useDebugValue(n),n}var b=t=>{const e=I(t),n=o=>_(e,o);return Object.assign(n,e),n},D=(t=>t?b(t):b);export{D as t};
1
+ import{r as g}from"./rolldown-runtime-DY1mqKjv.js";import{xt as y}from"./icons-rRDRsZcq.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};t.SENTRY_RELEASE={id:"db-studio@1.14.1"};var e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="786b1137-96ff-4924-892f-dc6369db556e",t._sentryDebugIdIdentifier="sentry-dbid-786b1137-96ff-4924-892f-dc6369db556e")}catch{}})();var a=g(y(),1),d=t=>{let e;const n=new Set,o=(s,u)=>{const r=typeof s=="function"?s(e):s;if(!Object.is(r,e)){const l=e;e=u??(typeof r!="object"||r===null)?r:Object.assign({},e,r),n.forEach(S=>S(e,l))}},i=()=>e,c={setState:o,getState:i,getInitialState:()=>f,subscribe:s=>(n.add(s),()=>n.delete(s))},f=e=t(o,i,c);return c},I=(t=>t?d(t):d),v=t=>t;function _(t,e=v){const n=a.useSyncExternalStore(t.subscribe,a.useCallback(()=>e(t.getState()),[t,e]),a.useCallback(()=>e(t.getInitialState()),[t,e]));return a.useDebugValue(n),n}var b=t=>{const e=I(t),n=o=>_(e,o);return Object.assign(n,e),n},D=(t=>t?b(t):b);export{D as t};
@@ -1,4 +1,4 @@
1
- import{t as qf}from"./rolldown-runtime-D2WZefnn.js";import{xt as hh}from"./icons-D6bNpzOL.js";import{Ot as dh}from"./radix-ui-CtzftI1z.js";(function(){try{var X=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};X.SENTRY_RELEASE={id:"db-studio@1.14.0"};var R=new X.Error().stack;R&&(X._sentryDebugIds=X._sentryDebugIds||{},X._sentryDebugIds[R]="c0de5032-ea3e-4df9-8351-d24a4451ee03",X._sentryDebugIdIdentifier="sentry-dbid-c0de5032-ea3e-4df9-8351-d24a4451ee03")}catch{}})();var Sh=qf((X=>{function R(M,T){var E=M.length;M.push(T);l:for(;0<E;){var p=E-1>>>1,k=M[p];if(0<b(k,T))M[p]=T,M[E]=k,E=p;else break l}}function vl(M){return M.length===0?null:M[0]}function Na(M){if(M.length===0)return null;var T=M[0],E=M.pop();if(E!==T){M[0]=E;l:for(var p=0,k=M.length,Il=k>>>1;p<Il;){var bl=2*(p+1)-1,I=M[bl],G=bl+1,zl=M[G];if(0>b(I,E))G<k&&0>b(zl,I)?(M[p]=zl,M[G]=E,p=G):(M[p]=I,M[bl]=E,p=bl);else if(G<k&&0>b(zl,E))M[p]=zl,M[G]=E,p=G;else break l}}return T}function b(M,T){var E=M.sortIndex-T.sortIndex;return E!==0?E:M.id-T.id}if(X.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var Yf=performance;X.unstable_now=function(){return Yf.now()}}else{var oa=Date,vn=oa.now();X.unstable_now=function(){return oa.now()-vn}}var Zl=[],$l=[],Qf=1,gl=null,_=3,mu=!1,aa=!1,Fl=!1,ta=!1,hu=typeof setTimeout=="function"?setTimeout:null,Ut=typeof clearTimeout=="function"?clearTimeout:null,du=typeof setImmediate<"u"?setImmediate:null;function Tl(M){for(var T=vl($l);T!==null;){if(T.callback===null)Na($l);else if(T.startTime<=M)Na($l),T.sortIndex=T.expirationTime,R(Zl,T);else break;T=vl($l)}}function at(M){if(Fl=!1,Tl(M),!aa)if(vl(Zl)!==null)aa=!0,ua||(ua=!0,ia());else{var T=vl($l);T!==null&&tt(at,T.startTime-M)}}var ua=!1,ea=-1,st=5,kl=-1;function _t(){return ta?!0:!(X.unstable_now()-kl<st)}function Su(){if(ta=!1,ua){var M=X.unstable_now();kl=M;var T=!0;try{l:{aa=!1,Fl&&(Fl=!1,Ut(ea),ea=-1),mu=!0;var E=_;try{a:{for(Tl(M),gl=vl(Zl);gl!==null&&!(gl.expirationTime>M&&_t());){var p=gl.callback;if(typeof p=="function"){gl.callback=null,_=gl.priorityLevel;var k=p(gl.expirationTime<=M);if(M=X.unstable_now(),typeof k=="function"){gl.callback=k,Tl(M),T=!0;break a}gl===vl(Zl)&&Na(Zl),Tl(M)}else Na(Zl);gl=vl(Zl)}if(gl!==null)T=!0;else{var Il=vl($l);Il!==null&&tt(at,Il.startTime-M),T=!1}}break l}finally{gl=null,_=E,mu=!1}T=void 0}}finally{T?ia():ua=!1}}}var ia;if(typeof du=="function")ia=function(){du(Su)};else if(typeof MessageChannel<"u"){var Ba=new MessageChannel,Xf=Ba.port2;Ba.port1.onmessage=Su,ia=function(){Xf.postMessage(null)}}else ia=function(){hu(Su,0)};function tt(M,T){ea=hu(function(){M(X.unstable_now())},T)}X.unstable_IdlePriority=5,X.unstable_ImmediatePriority=1,X.unstable_LowPriority=4,X.unstable_NormalPriority=3,X.unstable_Profiling=null,X.unstable_UserBlockingPriority=2,X.unstable_cancelCallback=function(M){M.callback=null},X.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):st=0<M?Math.floor(1e3/M):5},X.unstable_getCurrentPriorityLevel=function(){return _},X.unstable_next=function(M){switch(_){case 1:case 2:case 3:var T=3;break;default:T=_}var E=_;_=T;try{return M()}finally{_=E}},X.unstable_requestPaint=function(){ta=!0},X.unstable_runWithPriority=function(M,T){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var E=_;_=M;try{return T()}finally{_=E}},X.unstable_scheduleCallback=function(M,T,E){var p=X.unstable_now();switch(typeof E=="object"&&E!==null?(E=E.delay,E=typeof E=="number"&&0<E?p+E:p):E=p,M){case 1:var k=-1;break;case 2:k=250;break;case 5:k=1073741823;break;case 4:k=1e4;break;default:k=5e3}return k=E+k,M={id:Qf++,callback:T,priorityLevel:M,startTime:E,expirationTime:k,sortIndex:-1},E>p?(M.sortIndex=E,R($l,M),vl(Zl)===null&&M===vl($l)&&(Fl?(Ut(ea),ea=-1):Fl=!0,tt(at,E-p))):(M.sortIndex=k,R(Zl,M),aa||mu||(aa=!0,ua||(ua=!0,ia()))),M},X.unstable_shouldYield=_t,X.unstable_wrapCallback=function(M){var T=_;return function(){var E=_;_=T;try{return M.apply(this,arguments)}finally{_=E}}}})),gh=qf(((X,R)=>{R.exports=Sh()})),bh=qf((X=>{var R=gh(),vl=hh(),Na=dh();function b(l){var a="https://react.dev/errors/"+l;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var t=2;t<arguments.length;t++)a+="&args[]="+encodeURIComponent(arguments[t])}return"Minified React error #"+l+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Yf(l){return!(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11)}function oa(l){var a=l,t=l;if(l.alternate)for(;a.return;)a=a.return;else{l=a;do a=l,(a.flags&4098)!==0&&(t=a.return),l=a.return;while(l)}return a.tag===3?t:null}function vn(l){if(l.tag===13){var a=l.memoizedState;if(a===null&&(l=l.alternate,l!==null&&(a=l.memoizedState)),a!==null)return a.dehydrated}return null}function Zl(l){if(l.tag===31){var a=l.memoizedState;if(a===null&&(l=l.alternate,l!==null&&(a=l.memoizedState)),a!==null)return a.dehydrated}return null}function $l(l){if(oa(l)!==l)throw Error(b(188))}function Qf(l){var a=l.alternate;if(!a){if(a=oa(l),a===null)throw Error(b(188));return a!==l?null:l}for(var t=l,u=a;;){var n=t.return;if(n===null)break;var f=n.alternate;if(f===null){if(u=n.return,u!==null){t=u;continue}break}if(n.child===f.child){for(f=n.child;f;){if(f===t)return $l(n),l;if(f===u)return $l(n),a;f=f.sibling}throw Error(b(188))}if(t.return!==u.return)t=n,u=f;else{for(var c=!1,e=n.child;e;){if(e===t){c=!0,t=n,u=f;break}if(e===u){c=!0,u=n,t=f;break}e=e.sibling}if(!c){for(e=f.child;e;){if(e===t){c=!0,t=f,u=n;break}if(e===u){c=!0,u=f,t=n;break}e=e.sibling}if(!c)throw Error(b(189))}}if(t.alternate!==u)throw Error(b(190))}if(t.tag!==3)throw Error(b(188));return t.stateNode.current===t?l:a}function gl(l){var a=l.tag;if(a===5||a===26||a===27||a===6)return l;for(l=l.child;l!==null;){if(a=gl(l),a!==null)return a;l=l.sibling}return null}var _=Object.assign,mu=Symbol.for("react.element"),aa=Symbol.for("react.transitional.element"),Fl=Symbol.for("react.portal"),ta=Symbol.for("react.fragment"),hu=Symbol.for("react.strict_mode"),Ut=Symbol.for("react.profiler"),du=Symbol.for("react.consumer"),Tl=Symbol.for("react.context"),at=Symbol.for("react.forward_ref"),ua=Symbol.for("react.suspense"),ea=Symbol.for("react.suspense_list"),st=Symbol.for("react.memo"),kl=Symbol.for("react.lazy"),_t=Symbol.for("react.activity"),Su=Symbol.for("react.memo_cache_sentinel"),ia=Symbol.iterator;function Ba(l){return l===null||typeof l!="object"?null:(l=ia&&l[ia]||l["@@iterator"],typeof l=="function"?l:null)}var Xf=Symbol.for("react.client.reference");function tt(l){if(l==null)return null;if(typeof l=="function")return l.$$typeof===Xf?null:l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case ta:return"Fragment";case Ut:return"Profiler";case hu:return"StrictMode";case ua:return"Suspense";case ea:return"SuspenseList";case _t:return"Activity"}if(typeof l=="object")switch(l.$$typeof){case Fl:return"Portal";case Tl:return l.displayName||"Context";case du:return(l._context.displayName||"Context")+".Consumer";case at:var a=l.render;return l=l.displayName,l||(l=a.displayName||a.name||"",l=l!==""?"ForwardRef("+l+")":"ForwardRef"),l;case st:return a=l.displayName||null,a!==null?a:tt(l.type)||"Memo";case kl:a=l._payload,l=l._init;try{return tt(l(a))}catch{}}return null}var M=Array.isArray,T=vl.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,E=Na.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,p={pending:!1,data:null,method:null,action:null},k=[],Il=-1;function bl(l){return{current:l}}function I(l){0>Il||(l.current=k[Il],k[Il]=null,Il--)}function G(l,a){Il++,k[Il]=l.current,l.current=a}var zl=bl(null),gu=bl(null),qa=bl(null),yn=bl(null);function mn(l,a){switch(G(qa,a),G(gu,l),G(zl,null),a.nodeType){case 9:case 11:l=(l=a.documentElement)&&(l=l.namespaceURI)?Dv(l):0;break;default:if(l=a.tagName,a=a.namespaceURI)a=Dv(a),l=Ov(a,l);else switch(l){case"svg":l=1;break;case"math":l=2;break;default:l=0}}I(zl),G(zl,l)}function Ht(){I(zl),I(gu),I(qa)}function Gf(l){l.memoizedState!==null&&G(yn,l);var a=zl.current,t=Ov(a,l.type);a!==t&&(G(gu,l),G(zl,t))}function hn(l){gu.current===l&&(I(zl),I(gu)),yn.current===l&&(I(yn),nn._currentValue=p)}var Zf,Pe;function ut(l){if(Zf===void 0)try{throw Error()}catch(t){var a=t.stack.trim().match(/\n( *(at )?)/);Zf=a&&a[1]||"",Pe=-1<t.stack.indexOf(`
1
+ import{t as qf}from"./rolldown-runtime-DY1mqKjv.js";import{xt as hh}from"./icons-rRDRsZcq.js";import{Ot as dh}from"./radix-ui-C1Z_SoKk.js";(function(){try{var X=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};X.SENTRY_RELEASE={id:"db-studio@1.14.1"};var R=new X.Error().stack;R&&(X._sentryDebugIds=X._sentryDebugIds||{},X._sentryDebugIds[R]="c0de5032-ea3e-4df9-8351-d24a4451ee03",X._sentryDebugIdIdentifier="sentry-dbid-c0de5032-ea3e-4df9-8351-d24a4451ee03")}catch{}})();var Sh=qf((X=>{function R(M,T){var E=M.length;M.push(T);l:for(;0<E;){var p=E-1>>>1,k=M[p];if(0<b(k,T))M[p]=T,M[E]=k,E=p;else break l}}function vl(M){return M.length===0?null:M[0]}function Na(M){if(M.length===0)return null;var T=M[0],E=M.pop();if(E!==T){M[0]=E;l:for(var p=0,k=M.length,Il=k>>>1;p<Il;){var bl=2*(p+1)-1,I=M[bl],G=bl+1,zl=M[G];if(0>b(I,E))G<k&&0>b(zl,I)?(M[p]=zl,M[G]=E,p=G):(M[p]=I,M[bl]=E,p=bl);else if(G<k&&0>b(zl,E))M[p]=zl,M[G]=E,p=G;else break l}}return T}function b(M,T){var E=M.sortIndex-T.sortIndex;return E!==0?E:M.id-T.id}if(X.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var Yf=performance;X.unstable_now=function(){return Yf.now()}}else{var oa=Date,vn=oa.now();X.unstable_now=function(){return oa.now()-vn}}var Zl=[],$l=[],Qf=1,gl=null,_=3,mu=!1,aa=!1,Fl=!1,ta=!1,hu=typeof setTimeout=="function"?setTimeout:null,Ut=typeof clearTimeout=="function"?clearTimeout:null,du=typeof setImmediate<"u"?setImmediate:null;function Tl(M){for(var T=vl($l);T!==null;){if(T.callback===null)Na($l);else if(T.startTime<=M)Na($l),T.sortIndex=T.expirationTime,R(Zl,T);else break;T=vl($l)}}function at(M){if(Fl=!1,Tl(M),!aa)if(vl(Zl)!==null)aa=!0,ua||(ua=!0,ia());else{var T=vl($l);T!==null&&tt(at,T.startTime-M)}}var ua=!1,ea=-1,st=5,kl=-1;function _t(){return ta?!0:!(X.unstable_now()-kl<st)}function Su(){if(ta=!1,ua){var M=X.unstable_now();kl=M;var T=!0;try{l:{aa=!1,Fl&&(Fl=!1,Ut(ea),ea=-1),mu=!0;var E=_;try{a:{for(Tl(M),gl=vl(Zl);gl!==null&&!(gl.expirationTime>M&&_t());){var p=gl.callback;if(typeof p=="function"){gl.callback=null,_=gl.priorityLevel;var k=p(gl.expirationTime<=M);if(M=X.unstable_now(),typeof k=="function"){gl.callback=k,Tl(M),T=!0;break a}gl===vl(Zl)&&Na(Zl),Tl(M)}else Na(Zl);gl=vl(Zl)}if(gl!==null)T=!0;else{var Il=vl($l);Il!==null&&tt(at,Il.startTime-M),T=!1}}break l}finally{gl=null,_=E,mu=!1}T=void 0}}finally{T?ia():ua=!1}}}var ia;if(typeof du=="function")ia=function(){du(Su)};else if(typeof MessageChannel<"u"){var Ba=new MessageChannel,Xf=Ba.port2;Ba.port1.onmessage=Su,ia=function(){Xf.postMessage(null)}}else ia=function(){hu(Su,0)};function tt(M,T){ea=hu(function(){M(X.unstable_now())},T)}X.unstable_IdlePriority=5,X.unstable_ImmediatePriority=1,X.unstable_LowPriority=4,X.unstable_NormalPriority=3,X.unstable_Profiling=null,X.unstable_UserBlockingPriority=2,X.unstable_cancelCallback=function(M){M.callback=null},X.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):st=0<M?Math.floor(1e3/M):5},X.unstable_getCurrentPriorityLevel=function(){return _},X.unstable_next=function(M){switch(_){case 1:case 2:case 3:var T=3;break;default:T=_}var E=_;_=T;try{return M()}finally{_=E}},X.unstable_requestPaint=function(){ta=!0},X.unstable_runWithPriority=function(M,T){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var E=_;_=M;try{return T()}finally{_=E}},X.unstable_scheduleCallback=function(M,T,E){var p=X.unstable_now();switch(typeof E=="object"&&E!==null?(E=E.delay,E=typeof E=="number"&&0<E?p+E:p):E=p,M){case 1:var k=-1;break;case 2:k=250;break;case 5:k=1073741823;break;case 4:k=1e4;break;default:k=5e3}return k=E+k,M={id:Qf++,callback:T,priorityLevel:M,startTime:E,expirationTime:k,sortIndex:-1},E>p?(M.sortIndex=E,R($l,M),vl(Zl)===null&&M===vl($l)&&(Fl?(Ut(ea),ea=-1):Fl=!0,tt(at,E-p))):(M.sortIndex=k,R(Zl,M),aa||mu||(aa=!0,ua||(ua=!0,ia()))),M},X.unstable_shouldYield=_t,X.unstable_wrapCallback=function(M){var T=_;return function(){var E=_;_=T;try{return M.apply(this,arguments)}finally{_=E}}}})),gh=qf(((X,R)=>{R.exports=Sh()})),bh=qf((X=>{var R=gh(),vl=hh(),Na=dh();function b(l){var a="https://react.dev/errors/"+l;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var t=2;t<arguments.length;t++)a+="&args[]="+encodeURIComponent(arguments[t])}return"Minified React error #"+l+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Yf(l){return!(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11)}function oa(l){var a=l,t=l;if(l.alternate)for(;a.return;)a=a.return;else{l=a;do a=l,(a.flags&4098)!==0&&(t=a.return),l=a.return;while(l)}return a.tag===3?t:null}function vn(l){if(l.tag===13){var a=l.memoizedState;if(a===null&&(l=l.alternate,l!==null&&(a=l.memoizedState)),a!==null)return a.dehydrated}return null}function Zl(l){if(l.tag===31){var a=l.memoizedState;if(a===null&&(l=l.alternate,l!==null&&(a=l.memoizedState)),a!==null)return a.dehydrated}return null}function $l(l){if(oa(l)!==l)throw Error(b(188))}function Qf(l){var a=l.alternate;if(!a){if(a=oa(l),a===null)throw Error(b(188));return a!==l?null:l}for(var t=l,u=a;;){var n=t.return;if(n===null)break;var f=n.alternate;if(f===null){if(u=n.return,u!==null){t=u;continue}break}if(n.child===f.child){for(f=n.child;f;){if(f===t)return $l(n),l;if(f===u)return $l(n),a;f=f.sibling}throw Error(b(188))}if(t.return!==u.return)t=n,u=f;else{for(var c=!1,e=n.child;e;){if(e===t){c=!0,t=n,u=f;break}if(e===u){c=!0,u=n,t=f;break}e=e.sibling}if(!c){for(e=f.child;e;){if(e===t){c=!0,t=f,u=n;break}if(e===u){c=!0,u=f,t=n;break}e=e.sibling}if(!c)throw Error(b(189))}}if(t.alternate!==u)throw Error(b(190))}if(t.tag!==3)throw Error(b(188));return t.stateNode.current===t?l:a}function gl(l){var a=l.tag;if(a===5||a===26||a===27||a===6)return l;for(l=l.child;l!==null;){if(a=gl(l),a!==null)return a;l=l.sibling}return null}var _=Object.assign,mu=Symbol.for("react.element"),aa=Symbol.for("react.transitional.element"),Fl=Symbol.for("react.portal"),ta=Symbol.for("react.fragment"),hu=Symbol.for("react.strict_mode"),Ut=Symbol.for("react.profiler"),du=Symbol.for("react.consumer"),Tl=Symbol.for("react.context"),at=Symbol.for("react.forward_ref"),ua=Symbol.for("react.suspense"),ea=Symbol.for("react.suspense_list"),st=Symbol.for("react.memo"),kl=Symbol.for("react.lazy"),_t=Symbol.for("react.activity"),Su=Symbol.for("react.memo_cache_sentinel"),ia=Symbol.iterator;function Ba(l){return l===null||typeof l!="object"?null:(l=ia&&l[ia]||l["@@iterator"],typeof l=="function"?l:null)}var Xf=Symbol.for("react.client.reference");function tt(l){if(l==null)return null;if(typeof l=="function")return l.$$typeof===Xf?null:l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case ta:return"Fragment";case Ut:return"Profiler";case hu:return"StrictMode";case ua:return"Suspense";case ea:return"SuspenseList";case _t:return"Activity"}if(typeof l=="object")switch(l.$$typeof){case Fl:return"Portal";case Tl:return l.displayName||"Context";case du:return(l._context.displayName||"Context")+".Consumer";case at:var a=l.render;return l=l.displayName,l||(l=a.displayName||a.name||"",l=l!==""?"ForwardRef("+l+")":"ForwardRef"),l;case st:return a=l.displayName||null,a!==null?a:tt(l.type)||"Memo";case kl:a=l._payload,l=l._init;try{return tt(l(a))}catch{}}return null}var M=Array.isArray,T=vl.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,E=Na.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,p={pending:!1,data:null,method:null,action:null},k=[],Il=-1;function bl(l){return{current:l}}function I(l){0>Il||(l.current=k[Il],k[Il]=null,Il--)}function G(l,a){Il++,k[Il]=l.current,l.current=a}var zl=bl(null),gu=bl(null),qa=bl(null),yn=bl(null);function mn(l,a){switch(G(qa,a),G(gu,l),G(zl,null),a.nodeType){case 9:case 11:l=(l=a.documentElement)&&(l=l.namespaceURI)?Dv(l):0;break;default:if(l=a.tagName,a=a.namespaceURI)a=Dv(a),l=Ov(a,l);else switch(l){case"svg":l=1;break;case"math":l=2;break;default:l=0}}I(zl),G(zl,l)}function Ht(){I(zl),I(gu),I(qa)}function Gf(l){l.memoizedState!==null&&G(yn,l);var a=zl.current,t=Ov(a,l.type);a!==t&&(G(gu,l),G(zl,t))}function hn(l){gu.current===l&&(I(zl),I(gu)),yn.current===l&&(I(yn),nn._currentValue=p)}var Zf,Pe;function ut(l){if(Zf===void 0)try{throw Error()}catch(t){var a=t.stack.trim().match(/\n( *(at )?)/);Zf=a&&a[1]||"",Pe=-1<t.stack.indexOf(`
2
2
  at`)?" (<anonymous>)":-1<t.stack.indexOf("@")?"@unknown:0:0":""}return`
3
3
  `+Zf+l+Pe}var Cf=!1;function jf(l,a){if(!l||Cf)return"";Cf=!0;var t=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var u={DetermineComponentFrameRoot:function(){try{if(a){var A=function(){throw Error()};if(Object.defineProperty(A.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(A,[])}catch(S){var d=S}Reflect.construct(l,[],A)}else{try{A.call()}catch(S){d=S}l.call(A.prototype)}}else{try{throw Error()}catch(S){d=S}(A=l())&&typeof A.catch=="function"&&A.catch(function(){})}}catch(S){if(S&&d&&typeof S.stack=="string")return[S.stack,d.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=u.DetermineComponentFrameRoot(),c=f[0],e=f[1];if(c&&e){var i=c.split(`
4
4
  `),h=e.split(`
@@ -1 +1 @@
1
- import{r as K}from"./rolldown-runtime-D2WZefnn.js";import{C as _,D as k,w as y}from"./tanstack-DQKs7SF9.js";import{K as E,X as P,ut as F,xt as M}from"./icons-D6bNpzOL.js";import{kt as V}from"./radix-ui-CtzftI1z.js";import{n as x}from"./dist-Bcrd0PtF.js";import{B as C,C as B,E as U,S as q,W as w,w as O,x as z}from"./overlay.store-TOgdd28d.js";import{d as L,l as N}from"./badge-DiSuKlwP.js";import{t as S}from"./database.store-DzuxpP71.js";import{F as J,I as h,L as Q,P as Y,R as G,d as H,f as $}from"./index-B_H1M603.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"db-studio@1.14.0"};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="10908c30-7d73-4560-912f-9acc3bb40fc8",e._sentryDebugIdIdentifier="sentry-dbid-10908c30-7d73-4560-912f-9acc3bb40fc8")}catch{}})();var de=({search:e,exactPattern:t,type:a})=>{const{selectedDatabase:n}=S();return _({queryKey:N.list(n,e,t,a),queryFn:async({pageParam:l})=>(await U({db:n??"",cursor:l||void 0,limit:100,search:e||void 0,exactPattern:t,type:a||void 0})).data.data,initialPageParam:"",getNextPageParam:l=>l.nextCursor??void 0,enabled:n!==null,staleTime:Number.POSITIVE_INFINITY})},ce=(e,t=!1,a="forward")=>{const{selectedDatabase:n}=S();return _({queryKey:N.detail(n,e,t,a),queryFn:async({pageParam:l})=>(await O({db:n??"",key:e??"",cursor:l||void 0,full:t,direction:a})).data.data,initialPageParam:"",getNextPageParam:l=>l.nextCursor??void 0,enabled:n!==null&&e!==null,staleTime:Number.POSITIVE_INFINITY,retry:!1})},g=e=>typeof e.details=="string"&&e.details||e.message||"Redis operation failed",ue=()=>{const{selectedDatabase:e}=S(),t=k(),a=async()=>t.invalidateQueries({queryKey:N.all}),n=y({mutationFn:o=>q({db:e??"",data:o}).then(i=>i.data.data),onSuccess:a}),l=y({mutationFn:({key:o,data:i})=>z({db:e??"",key:o,data:i}).then(d=>d.data.data),onSuccess:a}),c=y({mutationFn:({key:o,expectedRevision:i,force:d})=>B({db:e??"",key:o,expectedRevision:i,force:d}).then(u=>u.data.data),onSuccess:a});return{createKey:o=>x.promise(n.mutateAsync(o),{loading:"Creating Redis key…",success:"Redis key created",error:g}).unwrap(),applyAction:(o,i)=>x.promise(l.mutateAsync({key:o,data:i}),{loading:"Applying Redis change…",success:"Redis change applied",error:g}).unwrap(),deleteKey:(o,i,d)=>x.promise(c.mutateAsync({key:o,expectedRevision:i,force:d}),{loading:"Deleting Redis key…",success:"Redis key deleted",error:g}).unwrap(),isPending:n.isPending||l.isPending||c.isPending}},f=K(M(),1),s=V(),R=e=>{const t=e.replaceAll("-","+").replaceAll("_","/"),a=t.padEnd(Math.ceil(t.length/4)*4,"=");return Uint8Array.from(atob(a),n=>n.charCodeAt(0))},j=e=>{let t="";for(const a of e)t+=String.fromCharCode(a);return btoa(t).replaceAll("+","-").replaceAll("/","_").replaceAll("=","")},W=e=>({base64:j(new TextEncoder().encode(e)),utf8:e}),X=new TextDecoder("utf-8",{fatal:!0}),A=e=>{try{return{base64:j(e),utf8:X.decode(e)}}catch{return{base64:j(e)}}},D=e=>Array.from(e,t=>t.toString(16).padStart(2,"0")).join(""),Z=e=>{const t=e.replaceAll(/\s/g,"");return t.length%2!==0||!/^[\da-f]*$/i.test(t)?null:Uint8Array.from(t.match(/.{2}/g)?.map(a=>Number.parseInt(a,16))??[])},v=e=>{if(!e)return!1;try{return JSON.parse(e),!0}catch{return!1}},fe=({value:e,compact:t=!1,onDownload:a})=>{const n=(0,f.useMemo)(()=>R(e.base64),[e.base64]),[l,c]=(0,f.useState)(e.utf8?v(e.utf8)?"json":"text":"hex"),[o,i]=(0,f.useState)(!1),d=l==="json"&&!v(e.utf8)?e.utf8===void 0?"hex":"text":l,u=d==="hex"?D(n):d==="base64"?e.base64:d==="json"&&e.utf8?JSON.stringify(JSON.parse(e.utf8),null,2):e.utf8??"Binary value",p=async()=>{await navigator.clipboard.writeText(u),i(!0),window.setTimeout(()=>i(!1),1200)},m=()=>{const r=new Blob([new Uint8Array(n).buffer]),I=URL.createObjectURL(r),b=document.createElement("a");b.href=I,b.download="redis-value.bin",b.click(),URL.revokeObjectURL(I)};return t?(0,s.jsx)("span",{className:"truncate font-mono text-xs text-foreground",title:u,children:u||"∅"}):(0,s.jsxs)("div",{className:"overflow-hidden border border-border bg-background",children:[(0,s.jsxs)("div",{className:"flex h-10 items-center justify-between border-b border-border",children:[(0,s.jsx)(H,{type:"single",variant:"ghost",size:"sm",value:d,onValueChange:r=>r&&c(r),className:"h-full rounded-none",children:["text",...v(e.utf8)?["json"]:[],"hex","base64"].map(r=>(0,s.jsx)($,{value:r,"aria-label":`View value as ${r}`,disabled:(r==="text"||r==="json")&&e.utf8===void 0,className:"h-full rounded-none! px-3 text-[10px] uppercase tracking-wider text-muted-foreground data-[state=on]:bg-muted data-[state=on]:text-foreground",children:r},r))}),(0,s.jsxs)("div",{className:"flex",children:[(0,s.jsx)(C,{variant:"ghost",size:"icon-sm",onClick:p,"aria-label":o?"Value copied":"Copy value",children:(0,s.jsxs)("span",{className:"relative inline-flex items-center justify-center",children:[(0,s.jsx)(P,{className:w("transition-[opacity,scale,filter] duration-300 ease-[cubic-bezier(0.2,0,0,1)]",o?"scale-25 opacity-0 blur-[4px]":"scale-100 opacity-100 blur-[0px]")}),(0,s.jsx)(F,{className:w("absolute inset-0 transition-[opacity,scale,filter] duration-300 ease-[cubic-bezier(0.2,0,0,1)]",o?"scale-100 opacity-100 blur-[0px]":"scale-25 opacity-0 blur-[4px]")})]})}),(0,s.jsx)(C,{variant:"ghost",size:"icon-sm",onClick:a??m,"aria-label":"Download original bytes",children:(0,s.jsx)(E,{})})]})]}),(0,s.jsx)("pre",{className:"max-h-[55vh] min-h-32 overflow-auto whitespace-pre-wrap break-all p-3 font-mono text-xs leading-5 text-foreground",children:u})]})},T=(e,t)=>{if(t==="text")return W(e);if(t==="hex"){const a=Z(e);return a&&A(a)}try{return A(R(e))}catch{return null}},pe=({value:e,onChange:t,placeholder:a,className:n,id:l})=>{const[c,o]=(0,f.useState)(e!==null&&e.utf8===void 0?"hex":"text"),i=e===null?null:c==="text"?e.utf8??"":c==="hex"?D(R(e.base64)):e.base64,[d,u]=(0,f.useState)(i??"");(0,f.useEffect)(()=>{i!==null&&u(i)},[i]);const p=r=>{u(r),t(T(r,c))},m=r=>{o(r),e===null&&t(T(d,r))};return(0,s.jsxs)("div",{className:w("flex min-w-0",n),children:[(0,s.jsxs)(Y,{value:c,onValueChange:r=>m(r),children:[(0,s.jsx)(Q,{"aria-label":"Value encoding",className:"h-8! w-18 shrink-0 rounded-e-none border-e-0 px-1 font-mono text-[10px] uppercase",children:(0,s.jsx)(G,{})}),(0,s.jsxs)(J,{children:[(0,s.jsx)(h,{value:"text",children:"Text"}),(0,s.jsx)(h,{value:"hex",children:"Hex"}),(0,s.jsx)(h,{value:"base64",children:"Base64"})]})]}),(0,s.jsx)(L,{id:l,value:d,onChange:r=>p(r.target.value),placeholder:a,"aria-invalid":e===null||void 0,className:"rounded-s-none font-mono h-8!"})]})};export{ce as a,W as i,pe as n,ue as o,R as r,de as s,fe as t};
1
+ import{r as K}from"./rolldown-runtime-DY1mqKjv.js";import{C as _,D as k,w as y}from"./tanstack-C3XvOIUf.js";import{K as E,X as P,ut as V,xt as M}from"./icons-rRDRsZcq.js";import{kt as B}from"./radix-ui-C1Z_SoKk.js";import{n as x}from"./dist-D_0esNxp.js";import{B as C,C as F,E as U,S as q,W as w,w as z,x as O}from"./overlay.store-DjYsesE7.js";import{d as L,l as N}from"./badge-SEQODpjR.js";import{t as S}from"./database.store-OsasuLJl.js";import{B as J,L as Q,R as Y,V as G,d as H,f as $,z as h}from"./index-CJ2YPwW4.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"db-studio@1.14.1"};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d4158d2f-378b-4b30-87f4-112ee85ceff7",e._sentryDebugIdIdentifier="sentry-dbid-d4158d2f-378b-4b30-87f4-112ee85ceff7")}catch{}})();var de=({search:e,exactPattern:t,type:a})=>{const{selectedDatabase:n}=S();return _({queryKey:N.list(n,e,t,a),queryFn:async({pageParam:l})=>(await U({db:n??"",cursor:l||void 0,limit:100,search:e||void 0,exactPattern:t,type:a||void 0})).data.data,initialPageParam:"",getNextPageParam:l=>l.nextCursor??void 0,enabled:n!==null,staleTime:Number.POSITIVE_INFINITY})},ce=(e,t=!1,a="forward")=>{const{selectedDatabase:n}=S();return _({queryKey:N.detail(n,e,t,a),queryFn:async({pageParam:l})=>(await z({db:n??"",key:e??"",cursor:l||void 0,full:t,direction:a})).data.data,initialPageParam:"",getNextPageParam:l=>l.nextCursor??void 0,enabled:n!==null&&e!==null,staleTime:Number.POSITIVE_INFINITY,retry:!1})},g=e=>typeof e.details=="string"&&e.details||e.message||"Redis operation failed",ue=()=>{const{selectedDatabase:e}=S(),t=k(),a=async()=>t.invalidateQueries({queryKey:N.all}),n=y({mutationFn:o=>q({db:e??"",data:o}).then(i=>i.data.data),onSuccess:a}),l=y({mutationFn:({key:o,data:i})=>O({db:e??"",key:o,data:i}).then(d=>d.data.data),onSuccess:a}),c=y({mutationFn:({key:o,expectedRevision:i,force:d})=>F({db:e??"",key:o,expectedRevision:i,force:d}).then(u=>u.data.data),onSuccess:a});return{createKey:o=>x.promise(n.mutateAsync(o),{loading:"Creating Redis key…",success:"Redis key created",error:g}).unwrap(),applyAction:(o,i)=>x.promise(l.mutateAsync({key:o,data:i}),{loading:"Applying Redis change…",success:"Redis change applied",error:g}).unwrap(),deleteKey:(o,i,d)=>x.promise(c.mutateAsync({key:o,expectedRevision:i,force:d}),{loading:"Deleting Redis key…",success:"Redis key deleted",error:g}).unwrap(),isPending:n.isPending||l.isPending||c.isPending}},f=K(M(),1),s=B(),R=e=>{const t=e.replaceAll("-","+").replaceAll("_","/"),a=t.padEnd(Math.ceil(t.length/4)*4,"=");return Uint8Array.from(atob(a),n=>n.charCodeAt(0))},j=e=>{let t="";for(const a of e)t+=String.fromCharCode(a);return btoa(t).replaceAll("+","-").replaceAll("/","_").replaceAll("=","")},W=e=>({base64:j(new TextEncoder().encode(e)),utf8:e}),X=new TextDecoder("utf-8",{fatal:!0}),A=e=>{try{return{base64:j(e),utf8:X.decode(e)}}catch{return{base64:j(e)}}},D=e=>Array.from(e,t=>t.toString(16).padStart(2,"0")).join(""),Z=e=>{const t=e.replaceAll(/\s/g,"");return t.length%2!==0||!/^[\da-f]*$/i.test(t)?null:Uint8Array.from(t.match(/.{2}/g)?.map(a=>Number.parseInt(a,16))??[])},v=e=>{if(!e)return!1;try{return JSON.parse(e),!0}catch{return!1}},fe=({value:e,compact:t=!1,onDownload:a})=>{const n=(0,f.useMemo)(()=>R(e.base64),[e.base64]),[l,c]=(0,f.useState)(e.utf8?v(e.utf8)?"json":"text":"hex"),[o,i]=(0,f.useState)(!1),d=l==="json"&&!v(e.utf8)?e.utf8===void 0?"hex":"text":l,u=d==="hex"?D(n):d==="base64"?e.base64:d==="json"&&e.utf8?JSON.stringify(JSON.parse(e.utf8),null,2):e.utf8??"Binary value",p=async()=>{await navigator.clipboard.writeText(u),i(!0),window.setTimeout(()=>i(!1),1200)},m=()=>{const r=new Blob([new Uint8Array(n).buffer]),I=URL.createObjectURL(r),b=document.createElement("a");b.href=I,b.download="redis-value.bin",b.click(),URL.revokeObjectURL(I)};return t?(0,s.jsx)("span",{className:"truncate font-mono text-xs text-foreground",title:u,children:u||"∅"}):(0,s.jsxs)("div",{className:"overflow-hidden border border-border bg-background",children:[(0,s.jsxs)("div",{className:"flex h-10 items-center justify-between border-b border-border",children:[(0,s.jsx)(H,{type:"single",variant:"ghost",size:"sm",value:d,onValueChange:r=>r&&c(r),className:"h-full rounded-none",children:["text",...v(e.utf8)?["json"]:[],"hex","base64"].map(r=>(0,s.jsx)($,{value:r,"aria-label":`View value as ${r}`,disabled:(r==="text"||r==="json")&&e.utf8===void 0,className:"h-full rounded-none! px-3 text-[10px] uppercase tracking-wider text-muted-foreground data-[state=on]:bg-muted data-[state=on]:text-foreground",children:r},r))}),(0,s.jsxs)("div",{className:"flex",children:[(0,s.jsx)(C,{variant:"ghost",size:"icon-sm",onClick:p,"aria-label":o?"Value copied":"Copy value",children:(0,s.jsxs)("span",{className:"relative inline-flex items-center justify-center",children:[(0,s.jsx)(P,{className:w("transition-[opacity,scale,filter] duration-300 ease-[cubic-bezier(0.2,0,0,1)]",o?"scale-25 opacity-0 blur-[4px]":"scale-100 opacity-100 blur-[0px]")}),(0,s.jsx)(V,{className:w("absolute inset-0 transition-[opacity,scale,filter] duration-300 ease-[cubic-bezier(0.2,0,0,1)]",o?"scale-100 opacity-100 blur-[0px]":"scale-25 opacity-0 blur-[4px]")})]})}),(0,s.jsx)(C,{variant:"ghost",size:"icon-sm",onClick:a??m,"aria-label":"Download original bytes",children:(0,s.jsx)(E,{})})]})]}),(0,s.jsx)("pre",{className:"max-h-[55vh] min-h-32 overflow-auto whitespace-pre-wrap break-all p-3 font-mono text-xs leading-5 text-foreground",children:u})]})},T=(e,t)=>{if(t==="text")return W(e);if(t==="hex"){const a=Z(e);return a&&A(a)}try{return A(R(e))}catch{return null}},pe=({value:e,onChange:t,placeholder:a,className:n,id:l})=>{const[c,o]=(0,f.useState)(e!==null&&e.utf8===void 0?"hex":"text"),i=e===null?null:c==="text"?e.utf8??"":c==="hex"?D(R(e.base64)):e.base64,[d,u]=(0,f.useState)(i??"");(0,f.useEffect)(()=>{i!==null&&u(i)},[i]);const p=r=>{u(r),t(T(r,c))},m=r=>{o(r),e===null&&t(T(d,r))};return(0,s.jsxs)("div",{className:w("flex min-w-0",n),children:[(0,s.jsxs)(Q,{value:c,onValueChange:r=>m(r),children:[(0,s.jsx)(J,{"aria-label":"Value encoding",className:"h-8! w-18 shrink-0 rounded-e-none border-e-0 px-1 font-mono text-[10px] uppercase",children:(0,s.jsx)(G,{})}),(0,s.jsxs)(Y,{children:[(0,s.jsx)(h,{value:"text",children:"Text"}),(0,s.jsx)(h,{value:"hex",children:"Hex"}),(0,s.jsx)(h,{value:"base64",children:"Base64"})]})]}),(0,s.jsx)(L,{id:l,value:d,onChange:r=>p(r.target.value),placeholder:a,"aria-invalid":e===null||void 0,className:"rounded-s-none font-mono h-8!"})]})};export{ce as a,W as i,pe as n,ue as o,R as r,de as s,fe as t};
@@ -1 +1 @@
1
- (function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"db-studio@1.14.0"};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="6e48f7f0-cb77-4ef0-b7f8-eb7a57d4168d",e._sentryDebugIdIdentifier="sentry-dbid-6e48f7f0-cb77-4ef0-b7f8-eb7a57d4168d")}catch{}})();var s=Object.create,l=Object.defineProperty,p=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,d=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty,g=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),v=(e,t)=>{let r={};for(var a in e)l(r,a,{get:e[a],enumerable:!0});return t||l(r,Symbol.toStringTag,{value:"Module"}),r},c=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(var f=i(t),o=0,u=f.length,n;o<u;o++)n=f[o],!b.call(e,n)&&n!==r&&l(e,n,{get:(_=>t[_]).bind(null,n),enumerable:!(a=p(t,n))||a.enumerable});return e},y=(e,t,r)=>(r=e!=null?s(d(e)):{},c(t||!e||!e.__esModule||!b.call(e,"default")?l(r,"default",{value:e,enumerable:!0}):r,e));export{v as n,y as r,g as t};
1
+ (function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"db-studio@1.14.1"};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="6e48f7f0-cb77-4ef0-b7f8-eb7a57d4168d",e._sentryDebugIdIdentifier="sentry-dbid-6e48f7f0-cb77-4ef0-b7f8-eb7a57d4168d")}catch{}})();var s=Object.create,l=Object.defineProperty,p=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,d=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty,g=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),v=(e,t)=>{let r={};for(var a in e)l(r,a,{get:e[a],enumerable:!0});return t||l(r,Symbol.toStringTag,{value:"Module"}),r},c=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(var f=i(t),o=0,u=f.length,n;o<u;o++)n=f[o],!b.call(e,n)&&n!==r&&l(e,n,{get:(_=>t[_]).bind(null,n),enumerable:!(a=p(t,n))||a.enumerable});return e},y=(e,t,r)=>(r=e!=null?s(d(e)):{},c(t||!e||!e.__esModule||!b.call(e,"default")?l(r,"default",{value:e,enumerable:!0}):r,e));export{v as n,y as r,g as t};
@@ -1 +1 @@
1
- import{kt as r}from"./radix-ui-CtzftI1z.js";import{r as t}from"./index-B_H1M603.js";import{t as o}from"./query-runner-BhGrHn5P.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"db-studio@1.14.0"};var n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="983b737d-85a9-4ace-840b-0485ab4f91b3",e._sentryDebugIdIdentifier="sentry-dbid-983b737d-85a9-4ace-840b-0485ab4f91b3")}catch{}})();var i=r();function b(){const{cmd:e}=t.useSearch();return(0,i.jsx)(o,{initialQuery:e})}export{b as component};
1
+ import{kt as r}from"./radix-ui-C1Z_SoKk.js";import{r as t}from"./index-CJ2YPwW4.js";import{t as o}from"./query-runner-keHo7IiI.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"db-studio@1.14.1"};var n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="983b737d-85a9-4ace-840b-0485ab4f91b3",e._sentryDebugIdIdentifier="sentry-dbid-983b737d-85a9-4ace-840b-0485ab4f91b3")}catch{}})();var i=r();function b(){const{cmd:e}=t.useSearch();return(0,i.jsx)(o,{initialQuery:e})}export{b as component};