db-studio 1.13.0 → 1.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +105 -84
- package/dist/index.js.map +1 -1
- package/dist/web-dist/assets/_pathlessLayout-BXxEoaJK.js +1 -0
- package/dist/web-dist/assets/{_pathlessLayout-zxU06-pr.js → _pathlessLayout-wBh7gK9q.js} +61 -61
- package/dist/web-dist/assets/_queryId-CZGDd4fs.js +1 -0
- package/dist/web-dist/assets/_table-DZOIq7aF.js +1 -0
- package/dist/web-dist/assets/_table-j-6h6Om5.js +1 -0
- package/dist/web-dist/assets/badge-DiSuKlwP.js +1 -0
- package/dist/web-dist/assets/browser-DdWTHJJW.js +1 -0
- package/dist/web-dist/assets/{bundle-mjs-uZfDJfiH.js → bundle-mjs-5mNXw8Uh.js} +1 -1
- package/dist/web-dist/assets/{code-editor-CuKFGk5C.js → code-editor-BXm3myTR.js} +2 -2
- package/dist/web-dist/assets/database.store-DzuxpP71.js +1 -0
- package/dist/web-dist/assets/{dist-BeZAMt_p.js → dist-Bcrd0PtF.js} +1 -1
- package/dist/web-dist/assets/{format-cell-value-wHw1lD8Z.js → format-cell-value-lejp1lDf.js} +1 -1
- package/dist/web-dist/assets/highlighted-body-OFNGDK62-Cb34z6at.js +1 -0
- package/dist/web-dist/assets/icons-D6bNpzOL.js +1 -0
- package/dist/web-dist/assets/index-B_H1M603.js +36 -0
- package/dist/web-dist/assets/index-DHb8byer.css +2 -0
- package/dist/web-dist/assets/{indexes-CNKwQMi3.js → indexes-DecPH1pX.js} +1 -1
- package/dist/web-dist/assets/{logs-BYKvN4gr.js → logs-CXbJheYV.js} +1 -1
- package/dist/web-dist/assets/mermaid-GHXKKRXX-B5pqoNgJ.js +1 -0
- package/dist/web-dist/assets/{middleware-CPy2Suyk.js → middleware-CYbbS--7.js} +1 -1
- package/dist/web-dist/assets/{monaco-editor-VzUhCCqE.js → monaco-editor-C-DV5CL8.js} +36 -36
- package/dist/web-dist/assets/monitoring-DWzrlTkx.js +22 -0
- package/dist/web-dist/assets/overlay.store-TOgdd28d.js +11 -0
- package/dist/web-dist/assets/{queries.store-DFbzjjlv.js → queries.store-Cul86O-l.js} +1 -1
- package/dist/web-dist/assets/query-runner-BhGrHn5P.js +17 -0
- package/dist/web-dist/assets/radix-ui-CtzftI1z.js +51 -0
- package/dist/web-dist/assets/react-B3nJmLdO.js +1 -0
- package/dist/web-dist/assets/{react-dom-t511kH7T.js → react-dom-DOIt489g.js} +1 -1
- package/dist/web-dist/assets/redis-value-B1T4ApeG.js +1 -0
- package/dist/web-dist/assets/{rolldown-runtime-Bc_uOZR3.js → rolldown-runtime-D2WZefnn.js} +1 -1
- package/dist/web-dist/assets/runner-BI316iCf.js +1 -0
- package/dist/web-dist/assets/schema-CwD_s_ox.js +64 -0
- package/dist/web-dist/assets/{schema-Bv15Fk7L.js → schema-D9V1P9K2.js} +1 -1
- package/dist/web-dist/assets/{table-B-C0yxvL.js → table-DbvYpea0.js} +1 -1
- package/dist/web-dist/assets/tanstack-DQKs7SF9.js +11 -0
- package/dist/web-dist/assets/{visualizer-DOCDtIMq.js → visualizer-7aPZoUCc.js} +1 -1
- package/dist/web-dist/index.html +18 -18
- package/package.json +3 -3
- package/dist/web-dist/assets/_pathlessLayout-GynxlRL_.js +0 -1
- package/dist/web-dist/assets/_queryId-BRuHa3fh.js +0 -1
- package/dist/web-dist/assets/_table-8IAksPyY.js +0 -1
- package/dist/web-dist/assets/_table-CtfVc03T.js +0 -1
- package/dist/web-dist/assets/ai-assistant-CpA6z3NH.js +0 -1
- package/dist/web-dist/assets/browser-BGLz7ANr.js +0 -1
- package/dist/web-dist/assets/database.store-B5cSp4MJ.js +0 -1
- package/dist/web-dist/assets/highlighted-body-OFNGDK62-BQA5yQZx.js +0 -1
- package/dist/web-dist/assets/icons-DMY0-Mbl.js +0 -1
- package/dist/web-dist/assets/index-BsliTpNZ.js +0 -35
- package/dist/web-dist/assets/index-Cyl_0l9I.css +0 -2
- package/dist/web-dist/assets/mermaid-GHXKKRXX-BKNFWsy1.js +0 -1
- package/dist/web-dist/assets/monitoring-B3eHd8rg.js +0 -22
- package/dist/web-dist/assets/popover-C6AOV9WB.js +0 -1
- package/dist/web-dist/assets/query-runner-RUXGiIf2.js +0 -17
- package/dist/web-dist/assets/radix-ui-CCBRgLy1.js +0 -51
- package/dist/web-dist/assets/react-frqLVtia.js +0 -1
- package/dist/web-dist/assets/redis-value-Lhzkhu4Q.js +0 -1
- package/dist/web-dist/assets/runner-lxnLCgPi.js +0 -1
- package/dist/web-dist/assets/schema-By474UiK.js +0 -64
- package/dist/web-dist/assets/tanstack-BfT_e-Qv.js +0 -10
- package/dist/web-dist/assets/tooltip-Dd1J4hNt.js +0 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
import{kt as t}from"./radix-ui-
|
|
1
|
+
import{kt as t}from"./radix-ui-CtzftI1z.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]="07120c1d-e93d-4e68-9f6a-f49e48e019ec",e._sentryDebugIdIdentifier="sentry-dbid-07120c1d-e93d-4e68-9f6a-f49e48e019ec")}catch{}})();var i=t();function o(){return(0,i.jsx)("main",{className:"flex-1 flex items-center justify-center",children:"Visualizer will be available soon!"})}export{o as component};
|
package/dist/web-dist/index.html
CHANGED
|
@@ -5,25 +5,25 @@
|
|
|
5
5
|
<link rel="icon" type="image/png" href="/favicon.png" />
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
7
|
<title>db-studio</title>
|
|
8
|
-
<script type="module" crossorigin src="/assets/index-
|
|
9
|
-
<link rel="modulepreload" crossorigin href="/assets/rolldown-runtime-
|
|
10
|
-
<link rel="modulepreload" crossorigin href="/assets/icons-
|
|
11
|
-
<link rel="modulepreload" crossorigin href="/assets/radix-ui-
|
|
12
|
-
<link rel="modulepreload" crossorigin href="/assets/tanstack-
|
|
13
|
-
<link rel="modulepreload" crossorigin href="/assets/react-dom-
|
|
14
|
-
<link rel="modulepreload" crossorigin href="/assets/dist-
|
|
15
|
-
<link rel="modulepreload" crossorigin href="/assets/bundle-mjs-
|
|
16
|
-
<link rel="modulepreload" crossorigin href="/assets/react-
|
|
17
|
-
<link rel="modulepreload" crossorigin href="/assets/monitoring-
|
|
18
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
19
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
20
|
-
<link rel="modulepreload" crossorigin href="/assets/database.store-
|
|
21
|
-
<link rel="modulepreload" crossorigin href="/assets/format-cell-value-
|
|
22
|
-
<link rel="modulepreload" crossorigin href="/assets/schema-
|
|
23
|
-
<link rel="modulepreload" crossorigin href="/assets/middleware-
|
|
24
|
-
<link rel="modulepreload" crossorigin href="/assets/monaco-editor-
|
|
8
|
+
<script type="module" crossorigin src="/assets/index-B_H1M603.js"></script>
|
|
9
|
+
<link rel="modulepreload" crossorigin href="/assets/rolldown-runtime-D2WZefnn.js">
|
|
10
|
+
<link rel="modulepreload" crossorigin href="/assets/icons-D6bNpzOL.js">
|
|
11
|
+
<link rel="modulepreload" crossorigin href="/assets/radix-ui-CtzftI1z.js">
|
|
12
|
+
<link rel="modulepreload" crossorigin href="/assets/tanstack-DQKs7SF9.js">
|
|
13
|
+
<link rel="modulepreload" crossorigin href="/assets/react-dom-DOIt489g.js">
|
|
14
|
+
<link rel="modulepreload" crossorigin href="/assets/dist-Bcrd0PtF.js">
|
|
15
|
+
<link rel="modulepreload" crossorigin href="/assets/bundle-mjs-5mNXw8Uh.js">
|
|
16
|
+
<link rel="modulepreload" crossorigin href="/assets/react-B3nJmLdO.js">
|
|
17
|
+
<link rel="modulepreload" crossorigin href="/assets/monitoring-DWzrlTkx.js">
|
|
18
|
+
<link rel="modulepreload" crossorigin href="/assets/overlay.store-TOgdd28d.js">
|
|
19
|
+
<link rel="modulepreload" crossorigin href="/assets/badge-DiSuKlwP.js">
|
|
20
|
+
<link rel="modulepreload" crossorigin href="/assets/database.store-DzuxpP71.js">
|
|
21
|
+
<link rel="modulepreload" crossorigin href="/assets/format-cell-value-lejp1lDf.js">
|
|
22
|
+
<link rel="modulepreload" crossorigin href="/assets/schema-CwD_s_ox.js">
|
|
23
|
+
<link rel="modulepreload" crossorigin href="/assets/middleware-CYbbS--7.js">
|
|
24
|
+
<link rel="modulepreload" crossorigin href="/assets/monaco-editor-C-DV5CL8.js">
|
|
25
25
|
<link rel="stylesheet" crossorigin href="/assets/monaco-editor-DcHpHuJd.css">
|
|
26
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
26
|
+
<link rel="stylesheet" crossorigin href="/assets/index-DHb8byer.css">
|
|
27
27
|
</head>
|
|
28
28
|
<body>
|
|
29
29
|
<div id="root"></div>
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "db-studio",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.14.0",
|
|
5
5
|
"description": "Modern database client for PostgreSQL with spreadsheet-like grid, AI-powered SQL assistance, ER diagrams, fast data browsing and editing. CLI tool, upcoming desktop & web versions.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"database client",
|
|
@@ -83,10 +83,10 @@
|
|
|
83
83
|
"@types/mssql": "^12.3.0",
|
|
84
84
|
"@types/node": "^26.0.0",
|
|
85
85
|
"@types/pg": "^8.16.0",
|
|
86
|
-
"@vitest/coverage-v8": "^
|
|
86
|
+
"@vitest/coverage-v8": "^5.0.0",
|
|
87
87
|
"tsup": "^8.5.1",
|
|
88
88
|
"tsx": "^4.7.1",
|
|
89
89
|
"typescript": "^7.0.2",
|
|
90
|
-
"vitest": "^
|
|
90
|
+
"vitest": "^5.0.0"
|
|
91
91
|
}
|
|
92
92
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{y as n}from"./tanstack-BfT_e-Qv.js";import{kt as o}from"./radix-ui-CCBRgLy1.js";import{t as s}from"./database.store-B5cSp4MJ.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.13.0"};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="c160e4b5-cfce-47d0-aacd-374b8722ee42",e._sentryDebugIdIdentifier="sentry-dbid-c160e4b5-cfce-47d0-aacd-374b8722ee42")}catch{}})();var r=o();function c(){const{dbType:e}=s();return e==="redis"?(0,r.jsx)(n,{to:"/browser"}):(0,r.jsx)("main",{className:"flex-1 flex items-center justify-center",children:"Select a tab to get started"})}export{c as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{kt as r}from"./radix-ui-CCBRgLy1.js";import{n as t}from"./index-BsliTpNZ.js";import{t as o}from"./query-runner-RUXGiIf2.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.13.0"};var n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="962c6269-adf8-4153-9ffa-756f6406fb52",e._sentryDebugIdIdentifier="sentry-dbid-962c6269-adf8-4153-9ffa-756f6406fb52")}catch{}})();var f=r();function a(){const{queryId:e}=t.useParams();return(0,f.jsx)(o,{queryId:e})}export{a as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{kt as n}from"./radix-ui-CCBRgLy1.js";import{u as o,y as r}from"./index-BsliTpNZ.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.13.0"};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="34e61373-91ce-45f7-910c-354499f037f0",e._sentryDebugIdIdentifier="sentry-dbid-34e61373-91ce-45f7-910c-354499f037f0")}catch{}})();var s=n();function a(){const{table:e}=r.useParams();return(0,s.jsx)(o,{tableName:e})}export{a as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{kt as o}from"./radix-ui-CCBRgLy1.js";import{t as r}from"./schema-By474UiK.js";import{t as a}from"./index-BsliTpNZ.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.13.0"};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ede7ac3b-b221-48fa-ac54-fca7dc384c23",e._sentryDebugIdIdentifier="sentry-dbid-ede7ac3b-b221-48fa-ac54-fca7dc384c23")}catch{}})();var n=o();function c(){const{table:e}=a.useParams();return(0,n.jsx)("main",{className:"flex-1 flex flex-col overflow-hidden",children:(0,n.jsx)(r,{tableName:e})})}export{c as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t}from"./react-frqLVtia.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.13.0"};var d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="c87ebf4f-37fd-4b0d-b784-8d9d53b951b5",e._sentryDebugIdIdentifier="sentry-dbid-c87ebf4f-37fd-4b0d-b784-8d9d53b951b5")}catch{}})();var r=t()(e=>({pendingPrompt:null,requestAssistant:d=>e({pendingPrompt:d}),consumePrompt:()=>e({pendingPrompt:null})}));export{r as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as me}from"./rolldown-runtime-Bc_uOZR3.js";import{b as he}from"./tanstack-BfT_e-Qv.js";import{H as xe,_ as ee,a as _,b as fe,et as be,g as ge,h as B,m as pe,s as ve,st as je,ut as ye,z as Ne}from"./icons-DMY0-Mbl.js";import{kt as ke}from"./radix-ui-CCBRgLy1.js";import{n as we}from"./dist-BeZAMt_p.js";import{C as Se,H as Ce,R as Re,U as q,i as Z,n as Q,t as W,z as m}from"./tooltip-Dd1J4hNt.js";import{a as De,d as J,i as _e,r as Me,t as Le}from"./popover-C6AOV9WB.js";import{t as Te}from"./database.store-B5cSp4MJ.js";import{F as ie,O as Ee,P as $e,_ as Fe,c as Oe,d as ze,f as Ae,g as Pe,h as Ie,j as I,l as Y,m as Be,o as X,p as Je,s as Ke,v as He}from"./index-BsliTpNZ.js";import{t as Ue}from"./queries.store-DFbzjjlv.js";import{a as Ge,i as Ve,n as S,o as qe,r as Ze,t as D}from"./redis-value-Lhzkhu4Q.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};s.SENTRY_RELEASE={id:"db-studio@1.13.0"};var r=new s.Error().stack;r&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[r]="b27bba5c-31bf-4477-aee8-51c16f452d35",s._sentryDebugIdIdentifier="sentry-dbid-b27bba5c-31bf-4477-aee8-51c16f452d35")}catch{}})();var g=me(ye(),1),e=ke(),le=({text:s,label:r,className:t})=>{const[a,i]=(0,g.useState)(!1);return(0,e.jsxs)(W,{children:[(0,e.jsx)(Z,{asChild:!0,children:(0,e.jsx)(m,{variant:"ghost",size:"icon-sm",className:t,onClick:async()=>{await navigator.clipboard.writeText(typeof s=="function"?s():s),i(!0),window.setTimeout(()=>i(!1),1200)},"aria-label":r,children:a?(0,e.jsx)(be,{}):(0,e.jsx)(xe,{})})}),(0,e.jsx)(Q,{children:a?"Copied":r})]})},Qe=[{label:"60s",ttlMs:6e4},{label:"10m",ttlMs:6e5},{label:"1h",ttlMs:36e5},{label:"1d",ttlMs:864e5},{label:"7d",ttlMs:6048e5}],We=s=>s===null?"—":s<1024?`${s} B`:s<1048576?`${(s/1024).toFixed(1)} KiB`:`${(s/1048576).toFixed(1)} MiB`,Ye=s=>{const r=Math.max(0,Math.ceil(s/1e3));if(r<60)return`${r}s`;const t=Math.floor(r/60);if(t<60)return`${t}m ${r%60}s`;const a=Math.floor(t/60);return a<24?`${a}h ${t%60}m`:`${Math.floor(a/24)}d ${a%24}h`},Xe=s=>{const[,r]=(0,g.useReducer)(t=>t+1,0);(0,g.useEffect)(()=>{if(!s)return;const t=window.setInterval(r,1e3);return()=>window.clearInterval(t)},[s])},es=({detail:s,label:r,loadedCount:t,fetchedAt:a,isFetching:i,pending:n,command:l,act:o,onRefresh:d,onOpenRunner:h,onDelete:c})=>{const[b,u]=(0,g.useState)(s.key),[M,H]=(0,g.useState)("");Xe(s.ttlMs>0);const C=s.ttlMs>0?s.ttlMs-(Date.now()-a):s.ttlMs,N=s.ttlMs===-1,x=!N&&C<=0,A=[{name:"TTL",value:N?"∞":x?"expired":Ye(C),hint:N?"No expiry — the key persists until deleted.":x?"The TTL elapsed; Redis has evicted or is about to evict this key.":`Expires ${new Date(a+s.ttlMs).toLocaleString()}`,alert:x},{name:"MEM",value:We(s.memoryBytes),hint:"Approximate memory usage reported by MEMORY USAGE."},{name:"LEN",value:s.length?.toLocaleString()??"—",hint:t!==null&&s.length!==null?`${t.toLocaleString()} of ${s.length.toLocaleString()} entries loaded in this view.`:"Length reported by Redis (entries, or bytes for strings)."},{name:"REV",value:s.revision.slice(0,8),hint:"Optimistic-lock revision. Writes are rejected when the key changed since this fetch."},{name:"AT",value:new Date(a).toLocaleTimeString(),hint:"When this snapshot was fetched from Redis."}];return(0,e.jsx)("header",{className:"border-b border-border",children:(0,e.jsxs)("div",{className:"flex min-h-10 items-stretch justify-between",children:[(0,e.jsxs)("div",{className:"flex min-w-0 flex-1 items-stretch overflow-x-auto",children:[(0,e.jsxs)("div",{className:"flex min-w-0 max-w-[min(36rem,45vw)] shrink items-center gap-1 px-3 py-1.5",children:[(0,e.jsx)("code",{className:"min-w-0 truncate text-sm text-foreground",title:r,children:r||"(empty key)"}),(0,e.jsx)(le,{text:s.key.utf8??s.key.base64,label:"Copy key name",className:"shrink-0 text-muted-foreground"}),(0,e.jsx)(De,{variant:"outline",className:"h-4 shrink-0 rounded-sm px-1.5 text-[8px] font-normal uppercase text-muted-foreground",children:s.type})]}),A.map(({name:v,value:P,hint:L,alert:T},E)=>(0,e.jsxs)(W,{children:[(0,e.jsx)(Z,{asChild:!0,children:(0,e.jsxs)("div",{className:q("flex shrink-0 cursor-default items-center gap-1.5 border-s border-border px-2 text-[10px]",E===A.length-1&&"border-e"),children:[(0,e.jsx)("span",{className:"text-muted-foreground",children:v}),(0,e.jsx)("span",{className:q("tabular-nums",T?"text-destructive":"text-foreground"),children:P})]})}),(0,e.jsx)(Q,{side:"bottom",children:L})]},v))]}),(0,e.jsxs)("div",{className:"flex shrink-0 items-stretch",children:[(0,e.jsxs)(m,{variant:"ghost",size:"sm",className:"h-auto rounded-none border-y-0 border-s border-e-0 border-border px-2",onClick:d,disabled:i,children:[(0,e.jsx)(ge,{className:q(i&&"animate-spin")})," Refresh"]}),l&&(0,e.jsxs)(W,{children:[(0,e.jsx)(Z,{asChild:!0,children:(0,e.jsxs)(m,{variant:"ghost",size:"sm",className:"h-auto rounded-none border-y-0 border-s border-e-0 border-border px-2",onClick:h,children:[(0,e.jsx)(ve,{})," Runner"]})}),(0,e.jsxs)(Q,{side:"bottom",children:["Open in the query runner as ",(0,e.jsx)("code",{className:"font-mono",children:l})]})]}),(0,e.jsxs)(Le,{children:[(0,e.jsx)(_e,{asChild:!0,children:(0,e.jsxs)(m,{variant:"ghost",size:"sm",className:"h-auto rounded-none border-y-0 border-s border-e-0 border-border px-2",children:[(0,e.jsx)(fe,{})," Edit"]})}),(0,e.jsx)(Me,{align:"end",className:"w-72 rounded-sm p-3 font-mono",children:(0,e.jsxs)(Oe,{className:"gap-4",children:[(0,e.jsxs)(X,{className:"gap-1.5",children:[(0,e.jsx)(Y,{htmlFor:"redis-key-rename",children:"Rename key"}),(0,e.jsxs)("form",{className:"flex",onSubmit:v=>{v.preventDefault(),!(b===null||b.base64===s.key.base64||n)&&o({action:"rename",newKey:b})},children:[(0,e.jsx)(S,{id:"redis-key-rename",value:b,onChange:u,className:"rounded-e-none font-mono"}),(0,e.jsx)(m,{type:"submit",size:"icon",className:"h-auto self-stretch rounded-s-none border-0 bg-clip-border",disabled:b===null||b.base64===s.key.base64||n,"aria-label":"Rename key",children:(0,e.jsx)(je,{})})]})]}),(0,e.jsxs)(X,{className:"gap-1.5",children:[(0,e.jsx)(Y,{htmlFor:"redis-key-ttl-operation",children:"TTL in seconds"}),(0,e.jsxs)("form",{className:"flex",onSubmit:v=>{v.preventDefault(),!n&&o({action:"setTtl",ttlMs:M?Number(M)*1e3:null})},children:[(0,e.jsx)(J,{id:"redis-key-ttl-operation",type:"number",min:1,value:M,onChange:v=>H(v.target.value),placeholder:s.ttlMs>0?String(Math.ceil(s.ttlMs/1e3)):"Persistent",className:"rounded-e-none font-mono"}),(0,e.jsx)(m,{type:"submit",className:"h-auto self-stretch rounded-s-none border-0 bg-clip-border",disabled:n,children:"Apply"})]}),(0,e.jsxs)("div",{className:"flex flex-wrap gap-1",children:[Qe.map(v=>(0,e.jsx)(m,{type:"button",variant:"outline",size:"xs",disabled:n,onClick:()=>o({action:"setTtl",ttlMs:v.ttlMs}),children:v.label},v.label)),(0,e.jsx)(m,{type:"button",variant:"outline",size:"xs",disabled:n||N,onClick:()=>o({action:"setTtl",ttlMs:null}),children:"Persist"})]}),(0,e.jsx)(Ke,{children:"Leave empty to persist the key."})]})]})})]}),(0,e.jsxs)(m,{variant:"destructive",size:"sm",className:"h-auto rounded-none border-y-0 border-s border-e-0 border-border px-2",disabled:n,onClick:c,children:[(0,e.jsx)(_,{})," Delete"]})]})]})})},w=Ve(""),j=s=>s.utf8??`base64:${s.base64}`,$=(s,...r)=>r.some(t=>String(t).toLowerCase().includes(s)),F=s=>{switch(s.kind){case"string":return JSON.stringify(j(s.value),null,2);case"hash":return JSON.stringify(Object.fromEntries(s.entries.map(r=>[j(r.field),j(r.value)])),null,2);case"list":return JSON.stringify(s.entries.map(r=>j(r.value)),null,2);case"set":return JSON.stringify(s.members.map(j),null,2);case"zset":return JSON.stringify(s.entries.map(r=>({member:j(r.member),score:r.score})),null,2);case"stream":return JSON.stringify(s.entries.map(r=>({id:r.id,fields:Object.fromEntries(r.fields.map(t=>[j(t.field),j(t.value)]))})),null,2);default:return""}},K=(s,r)=>{const[t,a]=(0,g.useState)(s),[i,n]=(0,g.useState)(r);return i!==r&&(n(r),a(s)),[t,a]},O=({filtered:s})=>(0,e.jsx)("div",{className:"flex h-10 items-center justify-center px-2 text-xs text-muted-foreground",children:s?"No loaded entries match the filter.":"No entries loaded."}),z=({filter:s,onFilterChange:r,shownCount:t,loadedCount:a,totalCount:i,copyJson:n,extra:l,header:o,children:d,footer:h})=>(0,e.jsxs)("div",{className:"overflow-hidden border border-border",children:[(0,e.jsxs)("div",{className:"flex h-8 items-center gap-1 border-b border-border bg-muted/10 px-1",children:[(0,e.jsx)(pe,{className:"ms-1 size-3 shrink-0 text-muted-foreground"}),(0,e.jsx)(J,{variant:"outline",value:s,onChange:c=>r(c.target.value),placeholder:"Filter loaded entries","aria-label":"Filter loaded entries",className:"h-6 flex-1 rounded-none border-none px-1 font-mono focus-visible:ring-0"}),l,(0,e.jsx)("span",{className:"shrink-0 px-1 text-[10px] tabular-nums text-muted-foreground",children:s?`${t} / ${a}`:i!==null&&i>a?`${a.toLocaleString()} of ${i.toLocaleString()}`:a.toLocaleString()}),(0,e.jsx)(le,{text:n,label:"Copy loaded entries as JSON"})]}),o,d,h]}),se=({labels:s,onSave:r,pending:t,score:a=!1})=>{const[i,n]=(0,g.useState)(w),[l,o]=(0,g.useState)(w),[d,h]=(0,g.useState)("0"),c=i===null||!a&&l===null,b=async u=>{u.preventDefault(),!(i===null||l===null)&&await r(i,a?Number(d):l)&&(n(w),o(w),h("0"))};return(0,e.jsxs)("form",{onSubmit:b,className:"grid grid-cols-[1fr_1fr_auto] items-center gap-2 border-t border-border bg-muted/10 p-2",children:[(0,e.jsx)(S,{value:i,onChange:n,placeholder:s[0]}),a?(0,e.jsx)(J,{type:"number",step:"any",value:d,onChange:u=>h(u.target.value),placeholder:s[1],className:"font-mono"}):(0,e.jsx)(S,{value:l,onChange:o,placeholder:s[1]}),(0,e.jsxs)(m,{type:"submit",disabled:t||c,children:[(0,e.jsx)(ee,{})," Add"]})]})},ss=({value:s,truncated:r,act:t,pending:a,onLoadFull:i,onDownload:n})=>{const[l,o]=K(s,s.base64),d=l!==null&&l.base64!==s.base64;return(0,e.jsxs)("div",{className:"space-y-3",children:[r&&(0,e.jsxs)("div",{className:"grid gap-2 border-b border-border pb-3 sm:grid-cols-[1fr_auto] sm:items-center",children:[(0,e.jsx)(I,{variant:"warning",title:"Preview truncated",message:"Load the full value before editing (up to the 8 MiB response cap).",className:"rounded-sm"}),(0,e.jsx)(m,{variant:"outline",onClick:i,children:"Load full"})]}),(0,e.jsx)(D,{value:s,onDownload:n}),(0,e.jsxs)("form",{onSubmit:h=>{h.preventDefault(),l!==null&&d&&t({action:"setString",value:l})},className:"border border-border p-3",children:[(0,e.jsxs)(X,{className:"gap-1.5",children:[(0,e.jsx)(Y,{htmlFor:"redis-string-value",children:"Replace value"}),(0,e.jsx)(S,{id:"redis-string-value",value:l,onChange:o})]}),(0,e.jsxs)(m,{type:"submit",className:"mt-3",disabled:r||a||!d,children:[(0,e.jsx)(B,{})," Save value"]})]})]})},rs=({field:s,value:r,act:t,pending:a})=>{const[i,n]=K(r,r.base64),l=i!==null&&i.base64!==r.base64;return(0,e.jsxs)("div",{className:"grid min-h-8 grid-cols-[minmax(10rem,0.7fr)_1fr_5rem] items-center gap-2 border-b border-border px-2 py-1",children:[(0,e.jsx)(D,{value:s,compact:!0}),(0,e.jsx)(S,{value:i,onChange:n}),(0,e.jsxs)("div",{className:"flex",children:[(0,e.jsx)(m,{variant:"ghost",size:"icon-sm",className:l?"text-primary":void 0,disabled:a||!l,onClick:()=>i!==null&&t({action:"upsertHash",field:s,value:i}),"aria-label":"Save hash value",children:(0,e.jsx)(B,{})}),(0,e.jsx)(m,{variant:"ghost",size:"icon-sm",className:"text-muted-foreground hover:text-destructive",disabled:a,onClick:()=>t({action:"deleteHash",field:s}),"aria-label":"Delete hash field",children:(0,e.jsx)(_,{})})]})]})},ts=({value:s,total:r,act:t,pending:a})=>{const[i,n]=(0,g.useState)(""),l=i.trim().toLowerCase(),o=l?s.entries.filter(d=>$(l,j(d.field),j(d.value))):s.entries;return(0,e.jsx)(z,{filter:i,onFilterChange:n,shownCount:o.length,loadedCount:s.entries.length,totalCount:r,copyJson:()=>F(s),header:(0,e.jsxs)("div",{className:"grid h-8 grid-cols-[minmax(10rem,0.7fr)_1fr_5rem] items-center border-b border-border bg-muted/20 px-2 text-[10px] uppercase tracking-wider text-muted-foreground",children:[(0,e.jsx)("span",{children:"Field"}),(0,e.jsx)("span",{children:"Value"}),(0,e.jsx)("span",{})]}),footer:(0,e.jsx)(se,{labels:["field","value"],pending:a,onSave:(d,h)=>t({action:"upsertHash",field:d,value:h})}),children:o.length===0?(0,e.jsx)(O,{filtered:l.length>0}):o.map(d=>(0,e.jsx)(rs,{field:d.field,value:d.value,act:t,pending:a},d.field.base64))})},as=({index:s,value:r,revision:t,act:a,pending:i})=>{const[n,l]=K(r,`${t}:${r.base64}`),o=n!==null&&n.base64!==r.base64;return(0,e.jsxs)("div",{className:"grid min-h-8 grid-cols-[3rem_1fr_5rem] items-center gap-2 border-b border-border px-2 py-1",children:[(0,e.jsx)("code",{className:"text-xs text-muted-foreground",children:s}),(0,e.jsx)(S,{value:n,onChange:l}),(0,e.jsxs)("div",{className:"flex",children:[(0,e.jsx)(m,{variant:"ghost",size:"icon-sm",className:o?"text-primary":void 0,disabled:i||!o,onClick:()=>n!==null&&a({action:"setList",index:s,value:n}),"aria-label":`Save list item ${s}`,children:(0,e.jsx)(B,{})}),(0,e.jsx)(m,{variant:"ghost",size:"icon-sm",className:"text-muted-foreground hover:text-destructive",disabled:i,onClick:()=>a({action:"deleteList",index:s}),"aria-label":`Delete list item ${s}`,children:(0,e.jsx)(_,{})})]})]})},ns=({value:s,revision:r,total:t,act:a,pending:i})=>{const[n,l]=(0,g.useState)(""),[o,d]=(0,g.useState)(w),h=n.trim().toLowerCase(),c=h?s.entries.filter(u=>$(h,u.index,j(u.value))):s.entries,b=async u=>{o!==null&&await a({action:"pushList",side:u,value:o})&&d(w)};return(0,e.jsx)(z,{filter:n,onFilterChange:l,shownCount:c.length,loadedCount:s.entries.length,totalCount:t,copyJson:()=>F(s),header:(0,e.jsxs)("div",{className:"grid h-8 grid-cols-[3rem_1fr_5rem] items-center border-b border-border bg-muted/20 px-2 text-[10px] uppercase tracking-wider text-muted-foreground",children:[(0,e.jsx)("span",{children:"Index"}),(0,e.jsx)("span",{children:"Value"}),(0,e.jsx)("span",{})]}),footer:(0,e.jsxs)("form",{onSubmit:u=>{u.preventDefault(),b("right")},className:"grid grid-cols-[1fr_auto_auto] items-center gap-2 border-t border-border bg-muted/10 p-2",children:[(0,e.jsx)(S,{value:o,onChange:d,placeholder:"new item"}),(0,e.jsx)(m,{type:"button",variant:"outline",disabled:i||o===null,onClick:()=>b("left"),children:"Push left"}),(0,e.jsx)(m,{type:"submit",disabled:i||o===null,children:"Push right"})]}),children:c.length===0?(0,e.jsx)(O,{filtered:h.length>0}):c.map(u=>(0,e.jsx)(as,{index:u.index,value:u.value,revision:r,act:a,pending:i},u.index))})},is=({value:s,total:r,act:t,pending:a})=>{const[i,n]=(0,g.useState)(""),[l,o]=(0,g.useState)(w),d=i.trim().toLowerCase(),h=d?s.members.filter(c=>$(d,j(c))):s.members;return(0,e.jsx)(z,{filter:i,onFilterChange:n,shownCount:h.length,loadedCount:s.members.length,totalCount:r,copyJson:()=>F(s),header:(0,e.jsxs)("div",{className:"grid h-8 grid-cols-[1fr_2rem] items-center border-b border-border bg-muted/20 px-2 text-[10px] uppercase tracking-wider text-muted-foreground",children:[(0,e.jsx)("span",{children:"Member"}),(0,e.jsx)("span",{})]}),footer:(0,e.jsxs)("form",{onSubmit:async c=>{c.preventDefault(),l!==null&&await t({action:"addSet",member:l})&&o(w)},className:"grid grid-cols-[1fr_auto] items-center gap-2 border-t border-border bg-muted/10 p-2",children:[(0,e.jsx)(S,{value:l,onChange:o,placeholder:"new member"}),(0,e.jsxs)(m,{type:"submit",disabled:a||l===null,children:[(0,e.jsx)(ee,{})," Add member"]})]}),children:h.length===0?(0,e.jsx)(O,{filtered:d.length>0}):h.map(c=>(0,e.jsxs)("div",{className:"flex min-h-8 items-center gap-2 border-b border-border px-2 py-1",children:[(0,e.jsx)("span",{className:"min-w-0 flex-1",children:(0,e.jsx)(D,{value:c,compact:!0})}),(0,e.jsx)(m,{variant:"ghost",size:"icon-sm",className:"text-muted-foreground hover:text-destructive",disabled:a,onClick:()=>t({action:"removeSet",member:c}),"aria-label":"Remove set member",children:(0,e.jsx)(_,{})})]},c.base64))})},ls=({member:s,score:r,act:t,pending:a})=>{const[i,n]=K(String(r),String(r)),l=Number(i),o=i!==String(r);return(0,e.jsxs)("div",{className:"grid min-h-8 grid-cols-[1fr_8rem_5rem] items-center gap-2 border-b border-border px-2 py-1",children:[(0,e.jsx)(D,{value:s,compact:!0}),(0,e.jsx)(J,{inputMode:"decimal",value:i,onChange:d=>n(d.target.value),"aria-label":"Sorted set score",className:"font-mono"}),(0,e.jsxs)("div",{className:"flex",children:[(0,e.jsx)(m,{variant:"ghost",size:"icon-sm",className:o?"text-primary":void 0,disabled:a||!o||!Number.isFinite(l),onClick:()=>t({action:"upsertZset",member:s,score:l}),"aria-label":"Save sorted set score",children:(0,e.jsx)(B,{})}),(0,e.jsx)(m,{variant:"ghost",size:"icon-sm",className:"text-muted-foreground hover:text-destructive",disabled:a,onClick:()=>t({action:"removeZset",member:s}),"aria-label":"Remove sorted set member",children:(0,e.jsx)(_,{})})]})]})},os=({value:s,total:r,act:t,pending:a})=>{const[i,n]=(0,g.useState)(""),l=i.trim().toLowerCase(),o=l?s.entries.filter(d=>$(l,j(d.member),d.score)):s.entries;return(0,e.jsx)(z,{filter:i,onFilterChange:n,shownCount:o.length,loadedCount:s.entries.length,totalCount:r,copyJson:()=>F(s),header:(0,e.jsxs)("div",{className:"grid h-8 grid-cols-[1fr_8rem_5rem] items-center border-b border-border bg-muted/20 px-2 text-[10px] uppercase tracking-wider text-muted-foreground",children:[(0,e.jsx)("span",{children:"Member"}),(0,e.jsx)("span",{children:"Score"}),(0,e.jsx)("span",{})]}),footer:(0,e.jsx)(se,{score:!0,labels:["member","score"],pending:a,onSave:(d,h)=>t({action:"upsertZset",member:d,score:h})}),children:o.length===0?(0,e.jsx)(O,{filtered:l.length>0}):o.map(d=>(0,e.jsx)(ls,{member:d.member,score:d.score,act:t,pending:a},d.member.base64))})},ds=({value:s,total:r,act:t,pending:a,direction:i,onDirectionChange:n})=>{const[l,o]=(0,g.useState)(""),d=l.trim().toLowerCase(),h=d?s.entries.filter(c=>$(d,c.id,...c.fields.flatMap(b=>[j(b.field),j(b.value)]))):s.entries;return(0,e.jsx)(z,{filter:l,onFilterChange:o,shownCount:h.length,loadedCount:s.entries.length,totalCount:r,copyJson:()=>F(s),extra:(0,e.jsxs)($e,{type:"single",variant:"ghost",size:"sm",value:i,onValueChange:c=>c&&n(c),"aria-label":"Stream order",className:"shrink-0 rounded-none",children:[(0,e.jsx)(ie,{value:"forward",className:"h-6 rounded-none px-2 text-[10px]",children:"Oldest first"}),(0,e.jsx)(ie,{value:"backward",className:"h-6 rounded-none px-2 text-[10px]",children:"Newest first"})]}),header:(0,e.jsxs)("div",{className:"grid h-8 grid-cols-[10rem_1fr_2rem] items-center border-b border-border bg-muted/20 px-2 text-[10px] uppercase tracking-wider text-muted-foreground",children:[(0,e.jsx)("span",{children:"Entry ID"}),(0,e.jsx)("span",{children:"Fields"}),(0,e.jsx)("span",{})]}),footer:(0,e.jsx)(se,{labels:["field","value"],pending:a,onSave:(c,b)=>t({action:"appendStream",id:"*",fields:[{field:c,value:b}]})}),children:h.length===0?(0,e.jsx)(O,{filtered:d.length>0}):h.map(c=>(0,e.jsxs)("div",{className:"grid grid-cols-[10rem_1fr_2rem] border-b border-border",children:[(0,e.jsx)("code",{className:"border-e border-border px-2 py-1.5 text-xs text-primary",children:c.id}),(0,e.jsx)("div",{className:"grid gap-1 px-2 py-1.5",children:c.fields.map(b=>(0,e.jsxs)("div",{className:"grid grid-cols-[minmax(8rem,0.4fr)_1fr] gap-3",children:[(0,e.jsx)(D,{value:b.field,compact:!0}),(0,e.jsx)(D,{value:b.value,compact:!0})]},b.field.base64))}),(0,e.jsx)(m,{variant:"ghost",size:"icon-sm",className:"rounded-none text-muted-foreground hover:text-destructive",disabled:a,onClick:()=>t({action:"deleteStream",id:c.id}),"aria-label":`Delete stream entry ${c.id}`,children:(0,e.jsx)(_,{})})]},c.id))})},cs=({detail:s,act:r,pending:t,onLoadFull:a,onDownload:i,streamDirection:n,onStreamDirectionChange:l})=>{const o=s.value;switch(o.kind){case"string":return(0,e.jsx)(ss,{value:o.value,truncated:o.truncated,act:r,pending:t,onLoadFull:a,onDownload:i});case"hash":return(0,e.jsx)(ts,{value:o,total:s.length,act:r,pending:t});case"list":return(0,e.jsx)(ns,{value:o,revision:s.revision,total:s.length,act:r,pending:t});case"set":return(0,e.jsx)(is,{value:o,total:s.length,act:r,pending:t});case"zset":return(0,e.jsx)(os,{value:o,total:s.length,act:r,pending:t});case"stream":return(0,e.jsx)(ds,{value:o,total:s.length,act:r,pending:t,direction:n,onDirectionChange:l});default:return(0,e.jsx)(I,{variant:"info",title:"Metadata only",message:"This Redis module type cannot be edited in this release.",className:"rounded-sm"})}},us=s=>{if(s.key.utf8===void 0)return null;const r=JSON.stringify(s.key.utf8);switch(s.type){case"string":return`GET ${r}`;case"hash":return`HGETALL ${r}`;case"list":return`LRANGE ${r} 0 -1`;case"set":return`SMEMBERS ${r}`;case"zset":return`ZRANGE ${r} 0 -1 WITHSCORES`;case"stream":return`XRANGE ${r} - + COUNT 100`;default:return null}},ms=s=>{switch(s.value.kind){case"hash":case"list":case"zset":case"stream":return s.value.entries.length;case"set":return s.value.members.length;default:return null}},hs=()=>{const s=he(),{selectedDatabase:r}=Te(),{openOverlay:t}=Re(),{addQuery:a,updateQuery:i}=Ue(),[n,l]=Ee("key"),[o,d]=(0,g.useState)(null),[h,c]=(0,g.useState)(null),b=h===n?"backward":"forward",u=Ge(n,o===n,b),{applyAction:M,deleteKey:H,isPending:C}=qe(),N=u.data?.pages,x=N?.[0],[A,v]=(0,g.useState)(!1),[P,L]=(0,g.useState)(null),T=x?.key.utf8??(x?`binary:${x.key.base64}`:""),E=x?us(x):null,R=(0,g.useMemo)(()=>{if(!x||!N||N.length===1)return x;const f=structuredClone(x);for(const p of N.slice(1))f.value.kind==="hash"&&p.value.kind==="hash"&&f.value.entries.push(...p.value.entries),f.value.kind==="list"&&p.value.kind==="list"&&f.value.entries.push(...p.value.entries),f.value.kind==="set"&&p.value.kind==="set"&&f.value.members.push(...p.value.members),f.value.kind==="zset"&&p.value.kind==="zset"&&f.value.entries.push(...p.value.entries),f.value.kind==="stream"&&p.value.kind==="stream"&&f.value.entries.push(...p.value.entries);return f},[x,N]),U=R?ms(R):null,G=async(f,p=!1)=>{if(!n||!x)return!1;try{const k=await M(n,{expectedRevision:x.revision,force:p,operation:f});return L(null),k.deleted?l(null):(k.key.base64||"-")!==n&&l(k.key.base64||"-"),!0}catch(k){return k.status===409&&L(f),!1}},oe=()=>{if(!E)return;const f=a(`redis: ${T.slice(0,40)}`);i(f,{query:E}),s({to:"/runner/$queryId",params:{queryId:f}})},de=async()=>{if(!n||!x||x.type!=="string")return;const f=[];let p=0,k=!0;for(;k;){const y=(await Se({db:r??"",key:n,offset:p,expectedRevision:x.revision})).data.data;if(f.push(Ze(y.chunk.base64)),k=y.hasMore,y.hasMore&&(y.nextOffset===null||y.nextOffset<=p))throw new Error("Redis download made no forward progress");p=y.nextOffset??p}const ce=f.reduce((y,ue)=>y+ue.length,0),te=new Uint8Array(ce);let ae=0;for(const y of f)te.set(y,ae),ae+=y.length;const ne=URL.createObjectURL(new Blob([te.buffer])),V=document.createElement("a");V.href=ne,V.download=`${x.key.utf8?.replaceAll(/[^\w.-]+/g,"_")||"redis-value"}.bin`,V.click(),URL.revokeObjectURL(ne)};if(!n)return(0,e.jsx)("main",{className:"flex flex-1 items-center justify-center bg-background font-mono",children:(0,e.jsxs)("div",{className:"max-w-sm text-center",children:[(0,e.jsx)(Ne,{className:"mx-auto mb-3 size-5 text-muted-foreground"}),(0,e.jsx)("h1",{className:"text-sm font-medium text-foreground",children:"No key selected"}),(0,e.jsx)("p",{className:"mt-1 text-xs leading-5 text-muted-foreground",children:"Select a key from the navigator or create one to inspect its value."}),(0,e.jsxs)(m,{variant:"outline",className:"mt-3",onClick:()=>t("redis-browser.create-key"),children:[(0,e.jsx)(ee,{})," Create key"]})]})});if(u.isLoading)return(0,e.jsx)("main",{className:"flex flex-1 items-center justify-center",children:(0,e.jsx)(Ce,{})});if(u.error||!x||!R)return(0,e.jsx)("main",{className:"flex flex-1 items-center justify-center bg-background p-4",children:(0,e.jsxs)("div",{className:"w-full max-w-md text-center",children:[(0,e.jsx)(I,{variant:"error",title:"Unable to load key",message:u.error?.message??"The key no longer exists.",className:"rounded-sm text-start"}),(0,e.jsx)(m,{variant:"outline",className:"mt-4",onClick:()=>l(null),children:"Back to keyspace"})]})});const re=R.length!==null&&U!==null?Math.max(0,R.length-U):null;return(0,e.jsxs)("main",{className:"flex min-h-0 flex-1 flex-col bg-background font-mono",children:[(0,e.jsx)(es,{detail:x,label:T,loadedCount:U,fetchedAt:u.dataUpdatedAt,isFetching:u.isFetching,pending:C,command:E,act:G,onRefresh:()=>u.refetch(),onOpenRunner:oe,onDelete:()=>v(!0)},x.key.base64),(0,e.jsx)(ze,{open:A,onOpenChange:v,children:(0,e.jsxs)(Be,{children:[(0,e.jsxs)(Fe,{children:[(0,e.jsx)(He,{children:"Delete key"}),(0,e.jsxs)(Ie,{children:["Are you sure you want to delete"," ",(0,e.jsx)("code",{className:"break-all text-foreground",children:T||"(empty key)"}),"? This action cannot be undone."]})]}),(0,e.jsxs)(Pe,{children:[(0,e.jsx)(Je,{children:"Cancel"}),(0,e.jsx)(Ae,{variant:"destructive",onClick:async()=>{v(!1);try{await H(n,x.revision),l(null)}catch{}},children:"Delete"})]})]})}),P&&(0,e.jsxs)("div",{className:"grid gap-2 border-b border-border p-2 sm:grid-cols-[1fr_auto] sm:items-center",children:[(0,e.jsx)(I,{variant:"warning",title:"Revision conflict",message:"This key changed on the server. Reload it or overwrite with the pending change.",className:"rounded-sm py-2"}),(0,e.jsxs)("div",{className:"flex gap-2",children:[(0,e.jsx)(m,{variant:"outline",onClick:()=>{L(null),u.refetch()},children:"Reload"}),(0,e.jsx)(m,{disabled:C,onClick:()=>G(P,!0),children:"Overwrite"})]})]}),(0,e.jsx)("div",{className:"min-h-0 flex-1 overflow-auto",children:(0,e.jsxs)("section",{className:"p-3",children:[(0,e.jsx)(cs,{detail:R,act:G,pending:C,onLoadFull:()=>d(n),onDownload:()=>{we.promise(de(),{loading:"Downloading original Redis bytes…",success:"Redis value downloaded",error:f=>f.message||"Download failed"})},streamDirection:b,onStreamDirectionChange:f=>c(f==="backward"?n:null)},x.key.base64),u.hasNextPage&&(0,e.jsx)(m,{variant:"outline",className:"mt-3 w-full",onClick:()=>u.fetchNextPage(),disabled:u.isFetchingNextPage,children:u.isFetchingNextPage?"Loading…":x.type==="stream"&&b==="backward"?"Load 100 older entries":`Load next 100${re!==null?` (${re.toLocaleString()} remaining)`:""}`})]})})]})},Ss=hs;export{Ss as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as b}from"./react-frqLVtia.js";import{c as s}from"./monitoring-B3eHd8rg.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.13.0"};var d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="ea4f520c-525f-4917-95ad-bbd2b9c2d8e2",e._sentryDebugIdIdentifier="sentry-dbid-ea4f520c-525f-4917-95ad-bbd2b9c2d8e2")}catch{}})();var r=b()((e,d)=>({selectedDatabase:null,setSelectedDatabase:t=>{e({selectedDatabase:t});const{dbType:a}=d();t&&a&&s.capture("db_selected",{db_type:a})},dbType:null,setDbType:t=>{e({dbType:t}),t&&s.capture("db_connected",{db_type:t})}}));export{r as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as g}from"./rolldown-runtime-Bc_uOZR3.js";import{ut as m}from"./icons-DMY0-Mbl.js";import{kt as _}from"./radix-ui-CCBRgLy1.js";import{i as h,n as p,r as y}from"./_pathlessLayout-zxU06-pr.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.13.0"};var r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="0abc388c-ad30-4145-a1b7-a5c481be4bdd",e._sentryDebugIdIdentifier="sentry-dbid-0abc388c-ad30-4145-a1b7-a5c481be4bdd")}catch{}})();var s=g(m(),1),E=_(),N=({code:e,language:r,raw:t,className:n,startLine:u,lineNumbers:l,...b})=>{let{shikiTheme:o}=(0,s.useContext)(h),a=y(),[f,i]=(0,s.useState)(t);return(0,s.useEffect)(()=>{if(!a){i(t);return}let d=a.highlight({code:e,language:r,themes:o},c=>{i(c)});d&&i(d)},[e,r,o,a,t]),(0,E.jsx)(p,{className:n,language:r,lineNumbers:l,result:f,startLine:u,...b})};export{N as HighlightedCodeBlockBody};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as ee,t as B}from"./rolldown-runtime-Bc_uOZR3.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};a.SENTRY_RELEASE={id:"db-studio@1.13.0"};var u=new a.Error().stack;u&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[u]="bd71e1cf-e0ea-44d3-8f8b-7a546b5897be",a._sentryDebugIdIdentifier="sentry-dbid-bd71e1cf-e0ea-44d3-8f8b-7a546b5897be")}catch{}})();var te=B((a=>{var u=Symbol.for("react.transitional.element"),h=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),m=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),b=Symbol.for("react.consumer"),w=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),R=Symbol.for("react.activity"),$=Symbol.iterator;function H(e){return e===null||typeof e!="object"?null:(e=$&&e[$]||e["@@iterator"],typeof e=="function"?e:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},N=Object.assign,O={};function k(e,t,o){this.props=e,this.context=t,this.refs=O,this.updater=o||C}k.prototype.isReactComponent={},k.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},k.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function V(){}V.prototype=k.prototype;function S(e,t,o){this.props=e,this.context=t,this.refs=O,this.updater=o||C}var j=S.prototype=new V;j.constructor=S,N(j,k.prototype),j.isPureReactComponent=!0;var I=Array.isArray;function x(){}var s={H:null,A:null,T:null,S:null},D=Object.prototype.hasOwnProperty;function z(e,t,o){var n=o.ref;return{$$typeof:u,type:e,key:t,ref:n!==void 0?n:null,props:o}}function K(e,t){return z(e.type,t,e.props)}function q(e){return typeof e=="object"&&e!==null&&e.$$typeof===u}function G(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(o){return t[o]})}var Y=/\/+/g;function L(e,t){return typeof e=="object"&&e!==null&&e.key!=null?G(""+e.key):t.toString(36)}function X(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(x,x):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function _(e,t,o,n,i){var c=typeof e;(c==="undefined"||c==="boolean")&&(e=null);var d=!1;if(e===null)d=!0;else switch(c){case"bigint":case"string":case"number":d=!0;break;case"object":switch(e.$$typeof){case u:case h:d=!0;break;case E:return d=e._init,_(d(e._payload),t,o,n,i)}}if(d)return i=i(e),d=n===""?"."+L(e,0):n,I(i)?(o="",d!=null&&(o=d.replace(Y,"$&/")+"/"),_(i,t,o,"",function(F){return F})):i!=null&&(q(i)&&(i=K(i,o+(i.key==null||e&&e.key===i.key?"":(""+i.key).replace(Y,"$&/")+"/")+d)),t.push(i)),1;d=0;var p=n===""?".":n+":";if(I(e))for(var y=0;y<e.length;y++)n=e[y],c=p+L(n,y),d+=_(n,t,o,c,i);else if(y=H(e),typeof y=="function")for(e=y.call(e),y=0;!(n=e.next()).done;)n=n.value,c=p+L(n,y++),d+=_(n,t,o,c,i);else if(c==="object"){if(typeof e.then=="function")return _(X(e),t,o,n,i);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return d}function A(e,t,o){if(e==null)return e;var n=[],i=0;return _(e,n,"","",function(c){return t.call(o,c,i++)}),n}function J(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(o){(e._status===0||e._status===-1)&&(e._status=1,e._result=o)},function(o){(e._status===0||e._status===-1)&&(e._status=2,e._result=o)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var U=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Q={map:A,forEach:function(e,t,o){A(e,function(){t.apply(this,arguments)},o)},count:function(e){var t=0;return A(e,function(){t++}),t},toArray:function(e){return A(e,function(t){return t})||[]},only:function(e){if(!q(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};a.Activity=R,a.Children=Q,a.Component=k,a.Fragment=v,a.Profiler=l,a.PureComponent=S,a.StrictMode=m,a.Suspense=M,a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,a.__COMPILER_RUNTIME={__proto__:null,c:function(e){return s.H.useMemoCache(e)}},a.cache=function(e){return function(){return e.apply(null,arguments)}},a.cacheSignal=function(){return null},a.cloneElement=function(e,t,o){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var n=N({},e.props),i=e.key;if(t!=null)for(c in t.key!==void 0&&(i=""+t.key),t)!D.call(t,c)||c==="key"||c==="__self"||c==="__source"||c==="ref"&&t.ref===void 0||(n[c]=t[c]);var c=arguments.length-2;if(c===1)n.children=o;else if(1<c){for(var d=Array(c),p=0;p<c;p++)d[p]=arguments[p+2];n.children=d}return z(e.type,i,n)},a.createContext=function(e){return e={$$typeof:w,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:b,_context:e},e},a.createElement=function(e,t,o){var n,i={},c=null;if(t!=null)for(n in t.key!==void 0&&(c=""+t.key),t)D.call(t,n)&&n!=="key"&&n!=="__self"&&n!=="__source"&&(i[n]=t[n]);var d=arguments.length-2;if(d===1)i.children=o;else if(1<d){for(var p=Array(d),y=0;y<d;y++)p[y]=arguments[y+2];i.children=p}if(e&&e.defaultProps)for(n in d=e.defaultProps,d)i[n]===void 0&&(i[n]=d[n]);return z(e,c,i)},a.createRef=function(){return{current:null}},a.forwardRef=function(e){return{$$typeof:T,render:e}},a.isValidElement=q,a.lazy=function(e){return{$$typeof:E,_payload:{_status:-1,_result:e},_init:J}},a.memo=function(e,t){return{$$typeof:g,type:e,compare:t===void 0?null:t}},a.startTransition=function(e){var t=s.T,o={};s.T=o;try{var n=e(),i=s.S;i!==null&&i(o,n),typeof n=="object"&&n!==null&&typeof n.then=="function"&&n.then(x,U)}catch(c){U(c)}finally{t!==null&&o.types!==null&&(t.types=o.types),s.T=t}},a.unstable_useCacheRefresh=function(){return s.H.useCacheRefresh()},a.use=function(e){return s.H.use(e)},a.useActionState=function(e,t,o){return s.H.useActionState(e,t,o)},a.useCallback=function(e,t){return s.H.useCallback(e,t)},a.useContext=function(e){return s.H.useContext(e)},a.useDebugValue=function(){},a.useDeferredValue=function(e,t){return s.H.useDeferredValue(e,t)},a.useEffect=function(e,t){return s.H.useEffect(e,t)},a.useEffectEvent=function(e){return s.H.useEffectEvent(e)},a.useId=function(){return s.H.useId()},a.useImperativeHandle=function(e,t,o){return s.H.useImperativeHandle(e,t,o)},a.useInsertionEffect=function(e,t){return s.H.useInsertionEffect(e,t)},a.useLayoutEffect=function(e,t){return s.H.useLayoutEffect(e,t)},a.useMemo=function(e,t){return s.H.useMemo(e,t)},a.useOptimistic=function(e,t){return s.H.useOptimistic(e,t)},a.useReducer=function(e,t,o){return s.H.useReducer(e,t,o)},a.useRef=function(e){return s.H.useRef(e)},a.useState=function(e){return s.H.useState(e)},a.useSyncExternalStore=function(e,t,o){return s.H.useSyncExternalStore(e,t,o)},a.useTransition=function(){return s.H.useTransition()},a.version="19.2.5"})),ae=B(((a,u)=>{u.exports=te()})),f=ee(ae(),1),Z=(...a)=>a.filter((u,h,v)=>!!u&&u.trim()!==""&&v.indexOf(u)===h).join(" ").trim(),re=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ne=a=>a.replace(/^([A-Z])|[\s-_]+(\w)/g,(u,h,v)=>v?v.toUpperCase():h.toLowerCase()),W=a=>{const u=ne(a);return u.charAt(0).toUpperCase()+u.slice(1)},P={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},oe=a=>{for(const u in a)if(u.startsWith("aria-")||u==="role"||u==="title")return!0;return!1},ie=(0,f.createContext)({}),ce=()=>(0,f.useContext)(ie),ue=(0,f.forwardRef)(({color:a,size:u,strokeWidth:h,absoluteStrokeWidth:v,className:m="",children:l,iconNode:b,...w},T)=>{const{size:M=24,strokeWidth:g=2,absoluteStrokeWidth:E=!1,color:R="currentColor",className:$=""}=ce()??{},H=v??E?Number(h??g)*24/Number(u??M):h??g;return(0,f.createElement)("svg",{ref:T,...P,width:u??M??P.width,height:u??M??P.height,stroke:a??R,strokeWidth:H,className:Z("lucide",$,m),...!l&&!oe(w)&&{"aria-hidden":"true"},...w},[...b.map(([C,N])=>(0,f.createElement)(C,N)),...Array.isArray(l)?l:[l]])}),r=(a,u)=>{const h=(0,f.forwardRef)(({className:v,...m},l)=>(0,f.createElement)(ue,{ref:l,iconNode:u,className:Z(`lucide-${re(W(a))}`,`lucide-${a}`,v),...m}));return h.displayName=W(a),h},se=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],m1=r("arrow-down",se),de=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],M1=r("arrow-left",de),ye=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],w1=r("arrow-right",ye),he=[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]],g1=r("arrow-up-down",he),ve=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],E1=r("arrow-up",ve),pe=[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]],$1=r("braces",pe),le=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],C1=r("brain",le),fe=[["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z",key:"uouzyp"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4",key:"1b0z45"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]],N1=r("bug",fe),ke=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],A1=r("calendar",ke),_e=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],b1=r("check",_e),me=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],T1=r("chevron-down",me),Me=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],R1=r("chevron-left",Me),we=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],H1=r("chevron-right",we),ge=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],S1=r("chevron-up",ge),Ee=[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]],j1=r("chevrons-left",Ee),$e=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],x1=r("chevrons-up-down",$e),Ce=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],z1=r("circle-alert",Ce),Ne=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],q1=r("circle-check",Ne),Ae=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2",key:"4jdomd"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v4",key:"3hqy98"}],["path",{d:"M21 14H11",key:"1bme5i"}],["path",{d:"m15 10-4 4 4 4",key:"5dvupr"}]],L1=r("clipboard-copy",Ae),be=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],P1=r("clock",be),Te=[["path",{d:"M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3",key:"11bfej"}]],O1=r("command",Te),Re=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],V1=r("copy",Re),He=[["path",{d:"M20 4v7a4 4 0 0 1-4 4H4",key:"6o5b7l"}],["path",{d:"m9 10-5 5 5 5",key:"1kshq7"}]],I1=r("corner-down-left",He),Se=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],D1=r("database",Se),je=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 15 21.84",key:"14ibmq"}],["path",{d:"M21 5V8",key:"1marbg"}],["path",{d:"M21 12L18 17H22L19 22",key:"zafso"}],["path",{d:"M3 12A9 3 0 0 0 14.59 14.87",key:"1y4wr8"}]],Y1=r("database-zap",je),xe=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],U1=r("download",xe),ze=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]],W1=r("ellipsis-vertical",ze),qe=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],B1=r("external-link",qe),Le=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]],Z1=r("file-code",Le),Pe=[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],K1=r("folder-plus",Pe),Oe=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],G1=r("folder",Oe),Ve=[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],X1=r("funnel",Ve),Ie=[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]],J1=r("heart",Ie),De=[["path",{d:"M6 16c5 0 7-8 12-8a4 4 0 0 1 0 8c-5 0-7-8-12-8a4 4 0 1 0 0 8",key:"18ogeb"}]],Q1=r("infinity",De),Ye=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],F1=r("info",Ye),Ue=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],et=r("key",Ue),We=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],tt=r("key-round",We),Be=[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]],at=r("link",Be),Ze=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],rt=r("loader-circle",Ze),Ke=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],nt=r("monitor",Ke),Ge=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],ot=r("moon",Ge),Xe=[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z",key:"1fd625"}]],it=r("octagon-alert",Xe),Je=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],ct=r("panel-left",Je),Qe=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],ut=r("pencil",Qe),Fe=[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89",key:"znwnzq"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11",key:"c9qhm2"}]],st=r("pin-off",Fe),e1=[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]],dt=r("pin",e1),t1=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],yt=r("plus",t1),a1=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],ht=r("refresh-cw",a1),r1=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],vt=r("save",r1),n1=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],pt=r("search",n1),o1=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],lt=r("settings",o1),i1=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],ft=r("sparkles",i1),c1=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],kt=r("square",c1),u1=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],_t=r("star",u1),s1=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],mt=r("sun",s1),d1=[["path",{d:"M12 3v18",key:"108xh3"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}]],Mt=r("table",d1),y1=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],wt=r("terminal",y1),h1=[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 19H3",key:"z6ezky"}]],gt=r("text-align-start",h1),v1=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Et=r("trash-2",v1),p1=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],$t=r("triangle-alert",p1),l1=[["path",{d:"M12 4v16",key:"1654pz"}],["path",{d:"M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2",key:"e0r10z"}],["path",{d:"M9 20h6",key:"s66wpe"}]],Ct=r("type",l1),f1=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Nt=r("x",f1),k1=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],At=r("zap",k1);export{T1 as $,Q1 as A,D1 as B,ot as C,tt as D,at as E,Z1 as F,L1 as G,V1 as H,B1 as I,x1 as J,q1 as K,W1 as L,X1 as M,G1 as N,et as O,K1 as P,R1 as Q,U1 as R,it as S,rt as T,O1 as U,I1 as V,P1 as W,S1 as X,j1 as Y,H1 as Z,yt as _,Et as a,E1 as at,ut as b,Mt as c,M1 as ct,kt as d,b1 as et,ft as f,ht as g,vt as h,$t as i,$1 as it,J1 as j,F1 as k,mt as l,m1 as lt,pt as m,Nt as n,N1 as nt,gt as o,g1 as ot,lt as p,z1 as q,Ct as r,C1 as rt,wt as s,w1 as st,At as t,A1 as tt,_t as u,ae as ut,dt as v,nt as w,ct as x,st as y,Y1 as z};
|