libre-webui 0.2.7 → 0.2.9

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 (37) hide show
  1. package/README.md +25 -16
  2. package/backend/dist/db.d.ts.map +1 -1
  3. package/backend/dist/db.js +15 -0
  4. package/backend/dist/db.js.map +1 -1
  5. package/backend/dist/index.d.ts.map +1 -1
  6. package/backend/dist/index.js +15 -1
  7. package/backend/dist/index.js.map +1 -1
  8. package/backend/dist/routes/plugins.d.ts.map +1 -1
  9. package/backend/dist/routes/plugins.js +122 -0
  10. package/backend/dist/routes/plugins.js.map +1 -1
  11. package/backend/dist/services/pluginCredentialsService.d.ts +46 -0
  12. package/backend/dist/services/pluginCredentialsService.d.ts.map +1 -0
  13. package/backend/dist/services/pluginCredentialsService.js +175 -0
  14. package/backend/dist/services/pluginCredentialsService.js.map +1 -0
  15. package/backend/dist/services/pluginService.d.ts +7 -0
  16. package/backend/dist/services/pluginService.d.ts.map +1 -1
  17. package/backend/dist/services/pluginService.js +29 -19
  18. package/backend/dist/services/pluginService.js.map +1 -1
  19. package/frontend/dist/assets/index-C1Ba9uDt.js +25 -0
  20. package/frontend/dist/css/index-CdiWoduX.css +1 -0
  21. package/frontend/dist/index.html +4 -4
  22. package/frontend/dist/js/ArtifactContainer-BNTSGf96.js +23 -0
  23. package/frontend/dist/js/{ArtifactDemoPage-a78SI-li.js → ArtifactDemoPage-x98zuxsN.js} +1 -1
  24. package/frontend/dist/js/{ChatPage-B2zgVHii.js → ChatPage-BxamwHd3.js} +5 -5
  25. package/frontend/dist/js/ModelsPage-4CDKkZ0-.js +2 -0
  26. package/frontend/dist/js/PersonasPage-Df_20I2C.js +13 -0
  27. package/frontend/dist/js/UserManagementPage-CZc7OD7f.js +1 -0
  28. package/frontend/dist/js/{markdown-vendor-D-79K2xZ.js → markdown-vendor-DRtqGHm3.js} +1 -1
  29. package/frontend/dist/js/ui-vendor-BiDMn752.js +177 -0
  30. package/package.json +1 -1
  31. package/frontend/dist/assets/index-B7--cAul.js +0 -3
  32. package/frontend/dist/css/index-B1OjddR-.css +0 -1
  33. package/frontend/dist/js/ArtifactContainer-JjegrQBU.js +0 -23
  34. package/frontend/dist/js/ModelsPage-DT3HCDq0.js +0 -2
  35. package/frontend/dist/js/PersonasPage-CB_YxSs7.js +0 -13
  36. package/frontend/dist/js/UserManagementPage-DkARO8y3.js +0 -1
  37. package/frontend/dist/js/ui-vendor-VxSCY_bv.js +0 -177
@@ -1,13 +0,0 @@
1
- import{j as e}from"./markdown-vendor-D-79K2xZ.js";import{r as d}from"./router-vendor-B-t91v39.js";import{e as C,c as L,B as F,A as oe,o as ne}from"../assets/index-B7--cAul.js";import{j as O,ao as V,f as X,$ as G,aa as ce,c as me,Z as te,D as z,ap as xe,d as ge,aq as pe,ar as he,as as ue,H as be,T as se,z as i,X as ye,I as ke,U as fe,k as ve,S as je,W as ee,ac as Ne,aj as we,at as ae,b as Ce,C as _e}from"./ui-vendor-VxSCY_bv.js";import"./react-vendor-N--QU9DW.js";import"./utils-vendor-DNzxLBGx.js";const Se=({persona:r,onEdit:y,onDelete:_,onDownload:t,onSelect:b,onToggleFavorite:f,isSelected:v=!1,compact:h=!1})=>{const[u,M]=d.useState(null),[j,s]=d.useState(!1),[c,m]=d.useState(!1),l=!!(r.memory_settings?.enabled||r.mutation_settings?.enabled),o=d.useCallback(async()=>{if(l)try{const x=await C.getMemoryStatus(r.id);x.success&&x.data&&M(x.data)}catch(x){console.error("Failed to load memory status:",x)}},[r.id,l]);d.useEffect(()=>{o()},[o]);const N=async()=>{if(confirm("Are you sure you want to wipe all memories for this persona? This action cannot be undone.")){m(!0);try{const x=await C.wipeMemories(r.id);x.success?(i.success(`Wiped ${x.data?.deleted_count||0} memories`),await o()):i.error("Failed to wipe memories")}catch(x){i.error("Failed to wipe memories"),console.error(x)}finally{m(!1),s(!1)}}},n=async()=>{m(!0);try{const x=await C.backupPersona(r.id),R=window.URL.createObjectURL(x),S=document.createElement("a");S.href=R,S.download=`${r.name.toLowerCase().replace(/\s+/g,"-")}-backup.json`,document.body.appendChild(S),S.click(),window.URL.revokeObjectURL(R),document.body.removeChild(S),i.success("Persona backup downloaded successfully")}catch(x){i.error("Failed to backup persona"),console.error(x)}finally{m(!1),s(!1)}},w=async()=>{m(!0);try{const x=await C.exportPersonaDNA(r.id),R=window.URL.createObjectURL(x),S=document.createElement("a");S.href=R,S.download=`${r.name.toLowerCase().replace(/\s+/g,"-")}-dna.json`,document.body.appendChild(S),S.click(),window.URL.revokeObjectURL(R),document.body.removeChild(S),i.success("Persona DNA exported successfully")}catch(x){i.error("Failed to export persona DNA"),console.error(x)}finally{m(!1),s(!1)}},E=()=>r.avatar?r.avatar:`https://ui-avatars.com/api/?name=${encodeURIComponent(r.name)}&background=6366f1&color=fff&size=128`,T=x=>x<1?`${(x*1024).toFixed(0)} KB`:`${x.toFixed(1)} MB`;return h?e.jsxs("div",{className:L("group relative flex items-center gap-3 p-3 rounded-xl cursor-pointer transition-all duration-200","border border-transparent","hover:bg-gray-50 dark:hover:bg-dark-100 ophelia:hover:bg-[#1a1a1a]",v&&["bg-primary-50 dark:bg-primary-900/20 ophelia:bg-[#9333ea]/10","border-primary-200 dark:border-primary-700 ophelia:border-[#7c3aed]"]),onClick:()=>b?.(r),children:[e.jsxs("div",{className:"relative flex-shrink-0",children:[e.jsx("img",{src:E(),alt:r.name,className:"w-10 h-10 rounded-full object-cover ring-2 ring-white dark:ring-dark-100 ophelia:ring-[#0a0a0a]"}),l&&e.jsx("div",{className:"absolute -bottom-0.5 -right-0.5 w-4 h-4 bg-gradient-to-br from-purple-500 to-primary-500 rounded-full flex items-center justify-center",children:e.jsx(O,{className:"h-2.5 w-2.5 text-white"})})]}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx("h4",{className:"font-medium text-sm text-gray-900 dark:text-gray-100 ophelia:text-[#fafafa] truncate",children:r.name}),r.is_favorite&&e.jsx(V,{className:"h-3 w-3 text-amber-500 fill-amber-500 flex-shrink-0"})]}),e.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-400 ophelia:text-[#a3a3a3] truncate",children:r.model})]}),v&&e.jsx("div",{className:"flex-shrink-0",children:e.jsx("div",{className:"w-6 h-6 rounded-full bg-primary-500 dark:bg-primary-600 ophelia:bg-[#9333ea] flex items-center justify-center",children:e.jsx(X,{className:"h-3 w-3 text-white ml-0.5"})})})]}):e.jsxs("div",{className:L("group relative rounded-2xl overflow-hidden transition-all duration-300","bg-white dark:bg-dark-100 ophelia:bg-[#0a0a0a]","border border-gray-200/60 dark:border-dark-300/60 ophelia:border-[#262626]","hover:border-gray-300 dark:hover:border-dark-400 ophelia:hover:border-[#3f3f46]","shadow-sm hover:shadow-lg dark:shadow-none",v&&["ring-2 ring-primary-500 dark:ring-primary-400 ophelia:ring-[#9333ea]","border-primary-300 dark:border-primary-600 ophelia:border-[#7c3aed]"]),children:[e.jsxs("div",{className:"relative h-20",children:[r.background?e.jsx("div",{className:"absolute inset-0 bg-cover bg-center",style:{backgroundImage:`url(${r.background})`}}):e.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-primary-400 via-primary-500 to-purple-600 dark:from-primary-600 dark:via-primary-700 dark:to-purple-800 ophelia:from-[#9333ea] ophelia:via-[#7c3aed] ophelia:to-[#6d28d9]"}),e.jsx("div",{className:"absolute inset-0 bg-black/10 dark:bg-black/20"}),e.jsxs("div",{className:"absolute top-3 left-3 right-3 flex items-start justify-between",children:[e.jsx("button",{onClick:x=>{x.stopPropagation(),f?.(r)},className:L("p-1.5 rounded-full transition-all duration-200","bg-white/20 hover:bg-white/30 backdrop-blur-sm",r.is_favorite&&"bg-amber-500/80 hover:bg-amber-500"),children:e.jsx(V,{className:L("h-4 w-4",r.is_favorite?"text-white fill-white":"text-white/80 hover:text-white")})}),l&&e.jsxs("div",{className:"flex items-center gap-1 px-2 py-1 rounded-full bg-white/20 backdrop-blur-sm text-white text-[10px] font-medium",children:[e.jsx(O,{className:"h-3 w-3"}),"Enhanced"]})]})]}),e.jsx("div",{className:"relative px-4 -mt-8",children:e.jsxs("div",{className:"relative inline-block",children:[e.jsx("img",{src:E(),alt:r.name,className:"w-16 h-16 rounded-xl object-cover ring-4 ring-white dark:ring-dark-100 ophelia:ring-[#0a0a0a] shadow-lg"}),l&&e.jsx("div",{className:"absolute -bottom-1 -right-1 w-6 h-6 bg-gradient-to-br from-purple-500 to-primary-500 rounded-lg flex items-center justify-center shadow-sm",children:e.jsx(G,{className:"h-3.5 w-3.5 text-white"})})]})}),e.jsxs("div",{className:"px-4 pt-3 pb-4",children:[e.jsxs("div",{className:"mb-3",children:[e.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-gray-100 ophelia:text-[#fafafa] leading-tight",children:r.name}),e.jsxs("p",{className:"text-sm text-gray-500 dark:text-gray-400 ophelia:text-[#a3a3a3] flex items-center gap-1.5 mt-0.5",children:[e.jsx(ce,{className:"h-3.5 w-3.5"}),r.model]})]}),r.description&&e.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400 ophelia:text-[#a3a3a3] line-clamp-2 mb-3",children:r.description}),r.parameters.system_prompt&&e.jsxs("div",{className:"mb-3 p-2.5 rounded-lg bg-gray-50 dark:bg-dark-50 ophelia:bg-[#121212] border border-gray-100 dark:border-dark-200 ophelia:border-[#1a1a1a]",children:[e.jsxs("div",{className:"flex items-center gap-1.5 mb-1",children:[e.jsx(me,{className:"h-3 w-3 text-gray-400 dark:text-gray-500 ophelia:text-[#737373]"}),e.jsx("span",{className:"text-[10px] uppercase tracking-wider font-medium text-gray-400 dark:text-gray-500 ophelia:text-[#737373]",children:"System Prompt"})]}),e.jsxs("p",{className:"text-xs text-gray-600 dark:text-gray-400 ophelia:text-[#a3a3a3] line-clamp-2 italic",children:["“",r.parameters.system_prompt,"”"]})]}),e.jsxs("div",{className:"flex flex-wrap gap-1.5 mb-3",children:[e.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-1 rounded-md text-[11px] font-medium bg-gray-100 dark:bg-dark-200 ophelia:bg-[#1a1a1a] text-gray-600 dark:text-gray-400 ophelia:text-[#a3a3a3]",children:[e.jsx(te,{className:"h-3 w-3"}),r.parameters.temperature?.toFixed(1)||"0.7"]}),e.jsxs("span",{className:"inline-flex items-center px-2 py-1 rounded-md text-[11px] font-medium bg-gray-100 dark:bg-dark-200 ophelia:bg-[#1a1a1a] text-gray-600 dark:text-gray-400 ophelia:text-[#a3a3a3]",children:["Top-P ",r.parameters.top_p?.toFixed(1)||"0.9"]}),e.jsxs("span",{className:"inline-flex items-center px-2 py-1 rounded-md text-[11px] font-medium bg-gray-100 dark:bg-dark-200 ophelia:bg-[#1a1a1a] text-gray-600 dark:text-gray-400 ophelia:text-[#a3a3a3]",children:[(r.parameters.context_window||4096).toLocaleString()," ctx"]})]}),l&&u&&e.jsx("div",{className:"mb-3 p-2.5 rounded-lg bg-gradient-to-r from-primary-50 to-purple-50 dark:from-primary-900/20 dark:to-purple-900/20 ophelia:from-[#9333ea]/10 ophelia:to-[#6d28d9]/10 border border-primary-100 dark:border-primary-800/30 ophelia:border-[#7c3aed]/20",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(z,{className:"h-4 w-4 text-primary-600 dark:text-primary-400 ophelia:text-[#a855f7]"}),e.jsxs("div",{children:[e.jsxs("span",{className:"text-xs font-medium text-primary-700 dark:text-primary-300 ophelia:text-[#c084fc]",children:[u.memory_count," memories"]}),e.jsx("span",{className:"text-[10px] text-primary-600/70 dark:text-primary-400/70 ophelia:text-[#a855f7]/70 ml-2",children:T(u.size_mb)})]})]}),u.status&&e.jsx("span",{className:L("text-[10px] px-1.5 py-0.5 rounded-full font-medium",u.status==="active"?"bg-green-100 dark:bg-green-900/30 text-green-700 dark:text-green-400":"bg-gray-100 dark:bg-dark-200 text-gray-600 dark:text-gray-400"),children:u.status})]})}),e.jsxs("div",{className:"flex items-center justify-between pt-3 border-t border-gray-100 dark:border-dark-200 ophelia:border-[#1a1a1a]",children:[b&&e.jsxs(F,{onClick:()=>b(r),size:"sm",className:"bg-primary-500 hover:bg-primary-600 dark:bg-primary-600 dark:hover:bg-primary-500 ophelia:bg-[#9333ea] ophelia:hover:bg-[#a855f7] text-white px-4",children:[e.jsx(X,{className:"h-3.5 w-3.5 mr-1.5"}),"Use"]}),e.jsxs("div",{className:"flex items-center gap-1 ml-auto",children:[e.jsx("button",{onClick:()=>y(r),className:"p-2 rounded-lg text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200 ophelia:text-[#737373] ophelia:hover:text-[#e5e5e5] hover:bg-gray-100 dark:hover:bg-dark-200 ophelia:hover:bg-[#1a1a1a] transition-colors",title:"Edit persona",children:e.jsx(xe,{className:"h-4 w-4"})}),e.jsx("button",{onClick:()=>t(r),className:"p-2 rounded-lg text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200 ophelia:text-[#737373] ophelia:hover:text-[#e5e5e5] hover:bg-gray-100 dark:hover:bg-dark-200 ophelia:hover:bg-[#1a1a1a] transition-colors",title:"Download persona",children:e.jsx(ge,{className:"h-4 w-4"})}),e.jsxs("div",{className:"relative",children:[e.jsx("button",{onClick:()=>s(!j),className:"p-2 rounded-lg text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200 ophelia:text-[#737373] ophelia:hover:text-[#e5e5e5] hover:bg-gray-100 dark:hover:bg-dark-200 ophelia:hover:bg-[#1a1a1a] transition-colors",children:e.jsx(pe,{className:"h-4 w-4"})}),j&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"fixed inset-0 z-10",onClick:()=>s(!1)}),e.jsxs("div",{className:"absolute right-0 bottom-full mb-1 w-44 py-1 bg-white dark:bg-dark-100 ophelia:bg-[#0a0a0a] rounded-xl shadow-lg border border-gray-200 dark:border-dark-300 ophelia:border-[#262626] z-20",children:[l&&e.jsxs(e.Fragment,{children:[e.jsxs("button",{onClick:n,disabled:c,className:"w-full flex items-center gap-2 px-3 py-2 text-sm text-gray-700 dark:text-gray-300 ophelia:text-[#e5e5e5] hover:bg-gray-50 dark:hover:bg-dark-50 ophelia:hover:bg-[#1a1a1a] disabled:opacity-50",children:[e.jsx(he,{className:"h-4 w-4"}),"Backup"]}),e.jsxs("button",{onClick:w,disabled:c,className:"w-full flex items-center gap-2 px-3 py-2 text-sm text-gray-700 dark:text-gray-300 ophelia:text-[#e5e5e5] hover:bg-gray-50 dark:hover:bg-dark-50 ophelia:hover:bg-[#1a1a1a] disabled:opacity-50",children:[e.jsx(ue,{className:"h-4 w-4"}),"Export DNA"]}),u&&u.memory_count>0&&e.jsxs("button",{onClick:N,disabled:c,className:"w-full flex items-center gap-2 px-3 py-2 text-sm text-red-600 dark:text-red-400 hover:bg-red-50 dark:hover:bg-red-900/20 disabled:opacity-50",children:[e.jsx(be,{className:"h-4 w-4"}),"Wipe Memories"]}),e.jsx("div",{className:"my-1 border-t border-gray-100 dark:border-dark-200 ophelia:border-[#1a1a1a]"})]}),e.jsxs("button",{onClick:()=>{_(r),s(!1)},className:"w-full flex items-center gap-2 px-3 py-2 text-sm text-red-600 dark:text-red-400 hover:bg-red-50 dark:hover:bg-red-900/20",children:[e.jsx(se,{className:"h-4 w-4"}),"Delete"]})]})]})]})]})]})]})]})},Pe=({value:r,onChange:y,className:_=""})=>{const t=d.useRef(null),[b,f]=d.useState(!1),[v,h]=d.useState(!1),u=async l=>{if(!l.type.startsWith("image/")){i.error("Please select a valid image file");return}if(l.size>5*1024*1024){i.error("Background image size must be less than 5MB");return}f(!0);try{const o=new FileReader;o.onload=N=>{const n=N.target?.result;y(n),i.success("Background uploaded successfully")},o.onerror=()=>{i.error("Failed to read image file")},o.readAsDataURL(l)}catch(o){console.error("Failed to upload background:",o),i.error("Failed to upload background image")}finally{f(!1)}},M=l=>{const o=l.target.files?.[0];o&&u(o)},j=l=>{l.preventDefault(),h(!0)},s=l=>{l.preventDefault(),h(!1)},c=l=>{l.preventDefault(),h(!1);const o=l.dataTransfer.files?.[0];o&&u(o)},m=()=>{y(""),i.success("Background removed")};return e.jsx("div",{className:`space-y-4 ${_}`,children:e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-dark-600 mb-2",children:"Background Image"}),e.jsxs("div",{className:"space-y-3",children:[r?e.jsxs("div",{className:"space-y-3",children:[e.jsx("div",{className:"w-full h-32 rounded-lg bg-cover bg-center border-2 border-gray-300 dark:border-dark-300",style:{backgroundImage:`url(${r})`}}),e.jsxs("div",{className:"flex items-center gap-3 p-3 bg-gray-50 dark:bg-dark-200 rounded-lg",children:[e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"text-sm font-medium text-gray-900 dark:text-gray-100 truncate",children:"Custom background image"}),e.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-400",children:"Click to change or remove"})]}),e.jsx(F,{variant:"ghost",size:"sm",onClick:m,className:"text-red-600 hover:text-red-700 hover:bg-red-50 dark:text-red-400 dark:hover:text-red-300 dark:hover:bg-red-900/20",children:e.jsx(ye,{className:"h-4 w-4"})})]})]}):e.jsxs("div",{className:`border-2 border-dashed rounded-lg p-6 text-center cursor-pointer transition-colors ${v?"border-primary-500 bg-primary-50 dark:bg-primary-900/20":"border-gray-300 dark:border-gray-600 hover:border-gray-400 dark:hover:border-gray-500"}`,onDragOver:j,onDragLeave:s,onDrop:c,onClick:()=>t.current?.click(),children:[e.jsx(ke,{className:"h-12 w-12 mx-auto text-gray-400 dark:text-gray-500 mb-4"}),e.jsx("p",{className:"text-sm font-medium text-gray-900 dark:text-gray-100 mb-2",children:"Upload background image"}),e.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-400 mb-4",children:"Drag and drop an image or click to browse"}),e.jsxs(F,{variant:"outline",size:"sm",disabled:b,className:"mx-auto",children:[e.jsx(fe,{className:"h-4 w-4 mr-2"}),b?"Uploading...":"Choose Image"]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-xs font-medium text-gray-600 dark:text-gray-400 mb-1",children:"Or enter image URL"}),e.jsx("input",{type:"url",value:r,onChange:l=>y(l.target.value),className:"w-full px-3 py-2 text-sm border border-gray-300 dark:border-dark-300 rounded-md bg-white dark:bg-dark-50 text-gray-900 dark:text-dark-800",placeholder:"https://example.com/background.jpg"})]})]}),e.jsx("input",{ref:t,type:"file",accept:"image/*",onChange:M,className:"hidden"}),e.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-400 mt-2",children:"Supports: JPG, PNG, GIF, WebP (max 5MB). Wide landscape images work best."})]})})},J=({label:r,value:y,min:_,max:t,step:b,onChange:f,hint:v,format:h=M=>String(M),colorClass:u="text-gray-700 dark:text-dark-600"})=>{const M=(y-_)/(t-_)*100;return e.jsxs("div",{children:[e.jsxs("label",{className:L("block text-sm font-medium mb-2",u),children:[r,": ",h(y)]}),e.jsx("input",{type:"range",min:_,max:t,step:b,value:y,onChange:j=>f(parseFloat(j.target.value)),className:"w-full h-2 bg-gray-200 dark:bg-dark-200 rounded-lg appearance-none cursor-pointer slider",style:{"--progress":`${M}%`}}),v&&e.jsx("p",{className:L("text-xs mt-1",u.replace("700","500").replace("600","400")),children:v})]})},$=({label:r,checked:y,onChange:_,colorClass:t="text-gray-700 dark:text-dark-600"})=>e.jsxs("label",{className:"flex items-center gap-3 cursor-pointer",children:[e.jsx("div",{className:L("relative w-10 h-5 rounded-full transition-colors",y?"bg-primary-500 dark:bg-primary-600":"bg-gray-300 dark:bg-dark-300"),onClick:()=>_(!y),children:e.jsx("div",{className:L("absolute top-0.5 left-0.5 w-4 h-4 rounded-full bg-white shadow transition-transform",y&&"translate-x-5")})}),e.jsx("span",{className:L("text-sm font-medium",t),children:r})]}),q={name:"",description:"",model:"",parameters:{temperature:.7,top_p:.9,top_k:40,context_window:4096,max_tokens:1024,system_prompt:"",repeat_penalty:1.1,presence_penalty:0,frequency_penalty:0},avatar:"",background:"",embedding_model:"",memory_settings:{enabled:!1,max_memories:1e3,auto_cleanup:!0,retention_days:90},mutation_settings:{enabled:!1,sensitivity:"medium",auto_adapt:!0}},re=["embed","e5","bge","gte","minilm","multilingual","sentence","universal","instructor","jina","paraphrase","mpnet","contriever"],Me=({persona:r,onSubmit:y,onCancel:_})=>{const[t,b]=d.useState(q),[f,v]=d.useState([]),[h,u]=d.useState([]),[M,j]=d.useState(!1),[s,c]=d.useState(!1),[m,l]=d.useState(!1),[o,N]=d.useState(null),[n,w]=d.useState("basic"),[E,T]=d.useState(null),[x,R]=d.useState(!1),[S,H]=d.useState(!1),Y=d.useRef(!1),I=d.useCallback((a,p)=>{b(k=>({...k,[a]:p})),N(null)},[]),Z=d.useCallback((a,p)=>{b(k=>({...k,parameters:{...k.parameters,[a]:p}})),N(null)},[]),U=d.useCallback((a,p)=>{b(k=>({...k,[a]:{...k[a],...p}})),N(null)},[]),K=d.useCallback(a=>{const p=a.filter(g=>re.some(P=>g.name.toLowerCase().includes(P.toLowerCase()))).map(g=>({id:g.name,name:g.name,description:`${g.details?.parameter_size||"Unknown size"} - ${g.details?.family||"Ollama model"}`,provider:"ollama",dimensions:768,isDetectedEmbedding:!0})),k=a.filter(g=>!re.some(P=>g.name.toLowerCase().includes(P.toLowerCase()))).map(g=>({id:g.name,name:g.name,description:`${g.details?.parameter_size||"Unknown size"} - ${g.details?.family||"Other model"}`,provider:"ollama",dimensions:768,isDetectedEmbedding:!1})),D=[...p,...k].reduce((g,P)=>(g.find(W=>W.id===P.id)||g.push(P),g),[]);return D.length>0?D:[{id:"nomic-embed-text",name:"nomic-embed-text",description:"Default embedding model (install if needed)",provider:"ollama",dimensions:768}]},[]),B=d.useCallback(async()=>{if(r?.id){R(!0);try{const a=await C.getMemoryStatus(r.id);a.success&&a.data&&T(a.data)}catch(a){console.error("Failed to load memory status:",a)}finally{R(!1)}}},[r?.id]),de=async()=>{if(r?.id&&confirm("Are you sure you want to wipe all memories? This cannot be undone.")){H(!0);try{const a=await C.wipeMemories(r.id);a.success?(i.success(`Wiped ${a.data?.deleted_count||0} memories`),await B()):i.error("Failed to wipe memories")}catch{i.error("Failed to wipe memories")}finally{H(!1)}}};d.useEffect(()=>{if(Y.current)return;Y.current=!0,(async()=>{j(!0);try{const[p,k]=await Promise.all([ne.getModels(),r?Promise.resolve(null):C.getDefaultParameters()]);if(p.success&&p.data){v(p.data);const A=K(p.data);if(u(A),r){if(b({name:r.name,description:r.description||"",model:r.model,parameters:r.parameters,avatar:r.avatar||"",background:r.background||"",embedding_model:r.embedding_model||A[0]?.id||"",memory_settings:r.memory_settings||q.memory_settings,mutation_settings:r.mutation_settings||q.mutation_settings}),r.embedding_model&&!A.find(D=>D.id===r.embedding_model)){const D=r.embedding_model.split(":")[0],g=A.find(P=>P.id.startsWith(D+":")||P.id===D);g?b(P=>({...P,embedding_model:g.id})):u(P=>[...P,{id:r.embedding_model,name:r.embedding_model,description:"Previously selected model (not currently installed)",provider:"ollama",dimensions:768}])}}else{const D=k?.success?k.data:{};b(g=>({...g,parameters:{...g.parameters,...D},embedding_model:A[0]?.id||""}))}}}catch(p){console.error("Error loading data:",p)}finally{j(!1)}})()},[r,K]),d.useEffect(()=>{r?.id&&t.memory_settings?.enabled&&B()},[r?.id,t.memory_settings?.enabled,B]);const Q=async a=>{c(!0),l(a);try{const p={name:t.name,description:t.description,model:t.model,parameters:t.parameters,avatar:t.avatar,background:t.background,embedding_model:t.embedding_model,memory_settings:t.memory_settings,mutation_settings:t.mutation_settings},k=r?await C.updatePersona(r.id,p):await C.createPersona(t);k.success?(i.success(r?"Persona updated":"Persona created"),N(new Date),a&&y()):i.error(`Failed to save: ${k.error}`)}catch(p){i.error(`Failed to save: ${p instanceof Error?p.message:String(p)}`)}finally{c(!1),l(!1)}},le=d.useMemo(()=>[{id:"basic",label:"Basic",icon:ve},{id:"parameters",label:"Parameters",icon:je},{id:"memory",label:"Memory & Learning",icon:O},{id:"advanced",label:"Advanced",icon:G}],[]),ie=d.useMemo(()=>[{key:"temperature",label:"Temperature",min:0,max:2,step:.1,hint:"Controls creativity vs consistency",format:a=>a.toFixed(1)},{key:"top_p",label:"Top-P",min:0,max:1,step:.1,hint:"Controls response diversity",format:a=>a.toFixed(1)},{key:"top_k",label:"Top-K",min:1,max:100,step:1,hint:"Limits vocabulary to top-k tokens",format:a=>String(Math.round(a))},{key:"context_window",label:"Context Window",min:128,max:131072,step:128,hint:"Maximum conversation history length",format:a=>String(Math.round(a))},{key:"max_tokens",label:"Max Tokens",min:1,max:8192,step:1,hint:"Maximum response length",format:a=>String(Math.round(a))},{key:"repeat_penalty",label:"Repeat Penalty",min:.5,max:2,step:.1,hint:"Reduces repetitive responses",format:a=>a.toFixed(1)}],[]);return M?e.jsx("div",{className:"flex items-center justify-center p-8",children:e.jsxs("div",{className:"animate-pulse flex items-center gap-3",children:[e.jsx("div",{className:"w-5 h-5 border-2 border-primary-500 border-t-transparent rounded-full animate-spin"}),e.jsx("span",{className:"text-gray-600 dark:text-gray-400",children:"Loading form..."})]})}):e.jsxs("div",{className:"max-w-4xl mx-auto",children:[e.jsxs("div",{className:"mb-6",children:[e.jsx("h1",{className:"text-2xl font-bold text-gray-900 dark:text-dark-800",children:r?"Edit Persona":"Create New Persona"}),e.jsxs("div",{className:"flex items-center gap-4 mt-1",children:[e.jsx("p",{className:"text-gray-600 dark:text-dark-600",children:r?"Customize your AI persona with advanced memory, adaptive learning, and intelligent parameters":"Create a new AI persona with custom personality, memory systems, and adaptive learning capabilities"}),o&&e.jsxs("div",{className:"flex items-center gap-2 text-sm text-green-600 dark:text-green-400",children:[e.jsx("div",{className:"w-2 h-2 bg-green-500 rounded-full"}),"Saved ",o.toLocaleTimeString()]})]})]}),e.jsxs("form",{onSubmit:a=>a.preventDefault(),className:"space-y-6",children:[e.jsxs("div",{className:"bg-white dark:bg-dark-100 rounded-lg shadow-sm border border-gray-200 dark:border-dark-300",children:[e.jsx("div",{className:"flex border-b border-gray-200 dark:border-dark-300",children:le.map(a=>e.jsxs("button",{type:"button",onClick:()=>w(a.id),className:`flex items-center gap-2 px-6 py-4 text-sm font-medium transition-colors ${n===a.id?"border-b-2 border-primary-500 text-primary-600 dark:text-primary-400 bg-primary-50 dark:bg-primary-900/20":"text-gray-500 dark:text-dark-600 hover:text-gray-700 dark:hover:text-dark-800"}`,children:[e.jsx(a.icon,{className:"h-4 w-4"}),a.label]},a.id))}),e.jsxs("div",{className:"p-6",children:[n==="basic"&&e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-dark-600 mb-2",children:"Name *"}),e.jsx("input",{type:"text",value:t.name,onChange:a=>I("name",a.target.value),className:"w-full px-3 py-2 border border-gray-300 dark:border-dark-300 rounded-lg bg-white dark:bg-dark-50 text-gray-900 dark:text-dark-800 focus:ring-2 focus:ring-primary-500/20 focus:border-primary-500 transition-colors",placeholder:"Enter persona name",required:!0})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-dark-600 mb-2",children:"Model *"}),e.jsxs("select",{value:t.model,onChange:a=>I("model",a.target.value),className:"w-full px-3 py-2 border border-gray-300 dark:border-dark-300 rounded-lg bg-white dark:bg-dark-50 text-gray-900 dark:text-dark-800 focus:ring-2 focus:ring-primary-500/20 focus:border-primary-500 transition-colors",required:!0,children:[e.jsx("option",{value:"",children:"Select a model"}),f.map(a=>e.jsx("option",{value:a.name,children:a.name},a.name))]})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-dark-600 mb-2",children:"Description"}),e.jsx("textarea",{value:t.description,onChange:a=>I("description",a.target.value),className:"w-full px-3 py-2 border border-gray-300 dark:border-dark-300 rounded-lg bg-white dark:bg-dark-50 text-gray-900 dark:text-dark-800 focus:ring-2 focus:ring-primary-500/20 focus:border-primary-500 transition-colors resize-none",rows:3,placeholder:"Describe your persona..."})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[e.jsx(oe,{value:t.avatar||"",onChange:a=>I("avatar",a)}),e.jsx(Pe,{value:t.background||"",onChange:a=>I("background",a)})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-dark-600 mb-2",children:"System Prompt"}),e.jsx("textarea",{value:t.parameters.system_prompt,onChange:a=>Z("system_prompt",a.target.value),className:"w-full px-3 py-2 border border-gray-300 dark:border-dark-300 rounded-lg bg-white dark:bg-dark-50 text-gray-900 dark:text-dark-800 focus:ring-2 focus:ring-primary-500/20 focus:border-primary-500 transition-colors resize-none font-mono text-sm",rows:6,placeholder:"Enter the system prompt that defines your persona behavior..."}),e.jsx("p",{className:"text-xs text-gray-500 dark:text-dark-600 mt-2",children:"The system prompt defines how your persona will behave and respond."})]})]}),n==="parameters"&&e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:ie.map(({key:a,label:p,min:k,max:A,step:D,hint:g,format:P})=>e.jsx(J,{label:p,value:t.parameters[a]||0,min:k,max:A,step:D,hint:g,format:P,onChange:W=>Z(a,W)},a))}),n==="memory"&&e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"rounded-xl overflow-hidden border border-emerald-200/50 dark:border-emerald-700/30",children:[e.jsx("div",{className:"px-5 py-4 bg-gradient-to-r from-emerald-500 to-teal-500 dark:from-emerald-600 dark:to-teal-600",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-lg bg-white/20 flex items-center justify-center",children:e.jsx(z,{className:"h-5 w-5 text-white"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-white",children:"Memory System"}),e.jsx("p",{className:"text-xs text-white/80",children:"Persona remembers conversations over time"})]})]}),e.jsx($,{label:"",checked:t.memory_settings?.enabled||!1,onChange:a=>U("memory_settings",{enabled:a})})]})}),t.memory_settings?.enabled&&r?.id&&e.jsx("div",{className:"px-5 py-4 bg-emerald-50 dark:bg-emerald-900/20 border-b border-emerald-100 dark:border-emerald-800/30",children:x?e.jsxs("div",{className:"flex items-center gap-2 text-sm text-emerald-600 dark:text-emerald-400",children:[e.jsx(ee,{className:"h-4 w-4 animate-spin"}),"Loading memory status..."]}):E?e.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[e.jsxs("div",{className:"text-center",children:[e.jsxs("div",{className:"flex items-center justify-center gap-1 text-2xl font-bold text-emerald-700 dark:text-emerald-300",children:[e.jsx(z,{className:"h-5 w-5"}),E.memory_count.toLocaleString()]}),e.jsx("p",{className:"text-xs text-emerald-600 dark:text-emerald-400",children:"Memories"})]}),e.jsxs("div",{className:"text-center",children:[e.jsxs("div",{className:"flex items-center justify-center gap-1 text-2xl font-bold text-emerald-700 dark:text-emerald-300",children:[e.jsx(Ne,{className:"h-5 w-5"}),E.size_mb.toFixed(1)]}),e.jsx("p",{className:"text-xs text-emerald-600 dark:text-emerald-400",children:"MB Used"})]}),e.jsxs("div",{className:"text-center",children:[e.jsxs("div",{className:"flex items-center justify-center gap-1 text-2xl font-bold text-emerald-700 dark:text-emerald-300",children:[e.jsx(we,{className:"h-5 w-5"}),E.last_backup?new Date(E.last_backup).toLocaleDateString():"Never"]}),e.jsx("p",{className:"text-xs text-emerald-600 dark:text-emerald-400",children:"Last Backup"})]})]}):e.jsx("p",{className:"text-sm text-emerald-600 dark:text-emerald-400",children:"No memory data yet"})}),t.memory_settings?.enabled&&e.jsxs("div",{className:"p-5 bg-white dark:bg-dark-100 space-y-4",children:[e.jsx(J,{label:"Maximum Memories",value:t.memory_settings.max_memories,min:100,max:1e4,step:100,hint:"How many memories this persona can store",format:a=>a.toLocaleString(),colorClass:"text-emerald-700 dark:text-emerald-300",onChange:a=>U("memory_settings",{max_memories:a})}),e.jsx(J,{label:"Memory Retention",value:t.memory_settings.retention_days,min:7,max:365,step:7,hint:"Days to keep memories before cleanup",format:a=>`${Math.round(a)} days`,colorClass:"text-emerald-700 dark:text-emerald-300",onChange:a=>U("memory_settings",{retention_days:a})}),e.jsx($,{label:"Auto-cleanup old memories",checked:t.memory_settings.auto_cleanup,onChange:a=>U("memory_settings",{auto_cleanup:a}),colorClass:"text-emerald-700 dark:text-emerald-300"}),r?.id&&E&&E.memory_count>0&&e.jsx("div",{className:"pt-4 border-t border-gray-200 dark:border-dark-300",children:e.jsxs("div",{className:"flex items-center justify-between p-3 bg-red-50 dark:bg-red-900/20 rounded-lg border border-red-200 dark:border-red-800/30",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium text-red-700 dark:text-red-300",children:"Wipe All Memories"}),e.jsx("p",{className:"text-xs text-red-600 dark:text-red-400",children:"This cannot be undone"})]}),e.jsxs("button",{type:"button",onClick:de,disabled:S,className:"px-3 py-1.5 bg-red-500 hover:bg-red-600 text-white text-sm font-medium rounded-lg transition-colors disabled:opacity-50 flex items-center gap-1.5",children:[S?e.jsx(ee,{className:"h-3.5 w-3.5 animate-spin"}):e.jsx(se,{className:"h-3.5 w-3.5"}),S?"Wiping...":"Wipe"]})]})})]}),!t.memory_settings?.enabled&&e.jsx("div",{className:"p-5 bg-gray-50 dark:bg-dark-50",children:e.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400 text-center",children:"Enable the memory system to let your persona remember conversations and build context over time."})})]}),e.jsxs("div",{className:"rounded-xl overflow-hidden border border-violet-200/50 dark:border-violet-700/30",children:[e.jsx("div",{className:"px-5 py-4 bg-gradient-to-r from-violet-500 to-purple-500 dark:from-violet-600 dark:to-purple-600",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-lg bg-white/20 flex items-center justify-center",children:e.jsx(ae,{className:"h-5 w-5 text-white"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-white",children:"Adaptive Learning"}),e.jsx("p",{className:"text-xs text-white/80",children:"Persona evolves based on interactions"})]})]}),e.jsx($,{label:"",checked:t.mutation_settings?.enabled||!1,onChange:a=>U("mutation_settings",{enabled:a})})]})}),t.mutation_settings?.enabled&&e.jsxs("div",{className:"p-5 bg-white dark:bg-dark-100 space-y-5",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-violet-700 dark:text-violet-300 mb-3",children:"Learning Speed"}),e.jsx("div",{className:"grid grid-cols-3 gap-3",children:[{level:"low",icon:te,label:"Slow",desc:"Gradual changes"},{level:"medium",icon:ae,label:"Balanced",desc:"Moderate pace"},{level:"high",icon:O,label:"Fast",desc:"Quick adaptation"}].map(({level:a,icon:p,label:k,desc:A})=>e.jsxs("button",{type:"button",onClick:()=>U("mutation_settings",{sensitivity:a}),className:L("p-3 rounded-xl text-center transition-all border",t.mutation_settings?.sensitivity===a?"bg-violet-500 border-violet-500 text-white shadow-lg shadow-violet-500/25":"bg-violet-50 dark:bg-violet-900/20 border-violet-200 dark:border-violet-700/30 text-violet-700 dark:text-violet-300 hover:bg-violet-100 dark:hover:bg-violet-900/30"),children:[e.jsx(p,{className:"h-5 w-5 mx-auto mb-1"}),e.jsx("p",{className:"text-sm font-medium",children:k}),e.jsx("p",{className:"text-[10px] opacity-70",children:A})]},a))})]}),e.jsx($,{label:"Auto-adapt to user preferences",checked:t.mutation_settings.auto_adapt,onChange:a=>U("mutation_settings",{auto_adapt:a}),colorClass:"text-violet-700 dark:text-violet-300"}),e.jsxs("div",{className:"p-4 bg-violet-50 dark:bg-violet-900/20 rounded-xl",children:[e.jsxs("p",{className:"text-xs font-medium text-violet-700 dark:text-violet-300 mb-2 flex items-center gap-1.5",children:[e.jsx(G,{className:"h-3.5 w-3.5"}),"What the persona learns:"]}),e.jsxs("div",{className:"grid grid-cols-2 gap-2 text-xs text-violet-600 dark:text-violet-400",children:[e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx("div",{className:"w-1 h-1 rounded-full bg-violet-400"}),"Conversation tone"]}),e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx("div",{className:"w-1 h-1 rounded-full bg-violet-400"}),"Response style"]}),e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx("div",{className:"w-1 h-1 rounded-full bg-violet-400"}),"User preferences"]}),e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx("div",{className:"w-1 h-1 rounded-full bg-violet-400"}),"Topic interests"]})]})]})]}),!t.mutation_settings?.enabled&&e.jsx("div",{className:"p-5 bg-gray-50 dark:bg-dark-50",children:e.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400 text-center",children:"Enable adaptive learning to let your persona evolve and personalize responses based on your interactions."})})]})]}),n==="advanced"&&e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"rounded-xl p-5 bg-gradient-to-br from-primary-50 to-primary-100/50 dark:from-primary-900/30 dark:to-primary-800/20 border border-primary-200/50 dark:border-primary-700/30",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[e.jsx(z,{className:"h-5 w-5 text-primary-600 dark:text-primary-400"}),e.jsx("h3",{className:"font-semibold text-primary-900 dark:text-primary-100",children:"Embedding Model"})]}),e.jsx("p",{className:"text-xs text-primary-600 dark:text-primary-400 mb-3",children:"Select the model used for memory encoding and semantic search. Embedding models are shown first, followed by other available models."}),e.jsx("select",{value:t.embedding_model,onChange:a=>I("embedding_model",a.target.value),className:"w-full px-3 py-2.5 border border-primary-200 dark:border-primary-700 rounded-lg bg-white dark:bg-dark-50 text-gray-900 dark:text-dark-800 focus:ring-2 focus:ring-primary-500/20",children:h.length===0?e.jsx("option",{value:"",disabled:!0,children:"No models found"}):e.jsxs(e.Fragment,{children:[h.filter(a=>a.isDetectedEmbedding).length>0&&e.jsx("optgroup",{label:"Embedding Models",children:h.filter(a=>a.isDetectedEmbedding).map(a=>e.jsxs("option",{value:a.id,children:[a.name," - ",a.description]},a.id))}),h.filter(a=>!a.isDetectedEmbedding).length>0&&e.jsx("optgroup",{label:"Other Models",children:h.filter(a=>!a.isDetectedEmbedding).map(a=>e.jsxs("option",{value:a.id,children:[a.name," - ",a.description]},a.id))})]})}),h.length===0&&e.jsx("div",{className:"mt-3 p-3 bg-amber-50 dark:bg-amber-900/20 border border-amber-200 dark:border-amber-700/50 rounded-lg",children:e.jsxs("p",{className:"text-sm text-amber-800 dark:text-amber-200",children:["Install an embedding model:"," ",e.jsx("code",{className:"px-1.5 py-0.5 bg-amber-100 dark:bg-amber-900/40 rounded text-xs",children:"ollama pull nomic-embed-text"})]})}),e.jsx("p",{className:"text-[10px] text-primary-500 dark:text-primary-500 mt-2",children:"Recommended: nomic-embed-text, mxbai-embed-large, bge-m3, snowflake-arctic-embed"})]}),e.jsx("div",{className:"p-4 bg-gray-50 dark:bg-dark-50 rounded-xl border border-gray-200 dark:border-dark-300",children:e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(Ce,{className:"h-5 w-5 text-gray-400 mt-0.5 flex-shrink-0"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium text-gray-700 dark:text-gray-300",children:"About Advanced Settings"}),e.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-400 mt-1",children:"The embedding model is used by the memory system to understand semantic meaning and find relevant memories during conversations. Choose a model that matches your use case and available resources."})]})]})})]})]})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(F,{type:"button",variant:"ghost",onClick:_,disabled:s,className:"text-gray-600 dark:text-gray-400",children:"Cancel"}),e.jsxs("div",{className:"flex items-center gap-3",children:[o&&e.jsxs("div",{className:"flex items-center gap-1.5 text-sm text-emerald-600 dark:text-emerald-400",children:[e.jsx(_e,{className:"h-4 w-4"}),e.jsx("span",{children:"Saved"})]}),e.jsx(F,{type:"button",variant:"outline",onClick:()=>Q(!1),disabled:s,children:s&&!m?"Saving...":"Save"}),e.jsx(F,{type:"button",onClick:()=>Q(!0),disabled:s,children:s&&m?"Saving...":r?"Save & Close":"Create"})]})]})]})]})},Ee=({personas:r,onImport:y,onClose:_})=>{const[t,b]=d.useState(!1),[f,v]=d.useState(""),h=async s=>{try{const c=await C.exportPersona(s.id),m=new Blob([JSON.stringify(c,null,2)],{type:"application/json"}),l=URL.createObjectURL(m),o=document.createElement("a");o.href=l,o.download=`${s.name}.json`,document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL(l),i.success(`Persona "${s.name}" exported successfully`)}catch(c){const m=c instanceof Error?c.message:String(c);i.error("Failed to export persona: "+m)}},u=async()=>{try{const s=r.map(n=>C.exportPersona(n.id)),c=await Promise.all(s),m={personas:c,exportedAt:Date.now(),version:"1.0.0",count:c.length},l=new Blob([JSON.stringify(m,null,2)],{type:"application/json"}),o=URL.createObjectURL(l),N=document.createElement("a");N.href=o,N.download=`personas-export-${new Date().toISOString().split("T")[0]}.json`,document.body.appendChild(N),N.click(),document.body.removeChild(N),URL.revokeObjectURL(o),i.success(`All ${r.length} personas exported successfully`)}catch(s){const c=s instanceof Error?s.message:String(s);i.error("Failed to export personas: "+c)}},M=async()=>{if(!f.trim()){i.error("Please paste the persona JSON data");return}b(!0);try{const s=JSON.parse(f);if(s.personas&&Array.isArray(s.personas)){let c=0,m=0;for(const l of s.personas)try{await C.importPersona(l),c++}catch(o){m++,console.error("Failed to import persona:",o)}c>0?(i.success(`Successfully imported ${c} personas`),m>0&&i.error(`Failed to import ${m} personas`)):i.error("Failed to import any personas")}else await C.importPersona(s),i.success("Persona imported successfully");v(""),y()}catch(s){const c=s instanceof Error?s.message:String(s);i.error("Failed to import persona: "+c)}finally{b(!1)}},j=s=>{const c=s.target.files?.[0];if(c){const m=new FileReader;m.onload=l=>{const o=l.target?.result;typeof o=="string"&&v(o)},m.readAsText(c)}};return e.jsxs("div",{className:"max-w-4xl mx-auto",children:[e.jsxs("div",{className:"mb-6",children:[e.jsx("h1",{className:"text-2xl font-bold text-gray-900 dark:text-dark-800",children:"Import & Export Personas"}),e.jsx("p",{className:"text-gray-600 dark:text-dark-600 mt-1",children:"Export your personas to share them or import personas from others"})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[e.jsxs("div",{className:"bg-white dark:bg-dark-100 rounded-lg p-6 shadow-sm border border-gray-200 dark:border-dark-300",children:[e.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-dark-800 mb-4",children:"Export Personas"}),r.length===0?e.jsx("p",{className:"text-gray-600 dark:text-dark-600 text-center py-8",children:"No personas to export"}):e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsxs("span",{className:"text-sm text-gray-600 dark:text-dark-600",children:[r.length," persona",r.length!==1?"s":""," ","available"]}),e.jsx(F,{onClick:u,variant:"outline",size:"sm",className:"px-3 py-1",children:"Export All"})]}),e.jsx("div",{className:"space-y-2 max-h-80 overflow-y-auto",children:r.map(s=>e.jsxs("div",{className:"flex items-center justify-between p-3 bg-gray-50 dark:bg-dark-200 rounded-md",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("img",{src:s.avatar||`https://ui-avatars.com/api/?name=${encodeURIComponent(s.name)}&background=6366f1&color=fff&size=32`,alt:s.name,className:"w-8 h-8 rounded-full"}),e.jsxs("div",{children:[e.jsx("div",{className:"font-medium text-gray-900 dark:text-dark-800",children:s.name}),e.jsx("div",{className:"text-sm text-gray-500 dark:text-dark-500",children:s.model})]})]}),e.jsx(F,{onClick:()=>h(s),variant:"outline",size:"sm",className:"px-3 py-1",children:"Export"})]},s.id))})]})]}),e.jsxs("div",{className:"bg-white dark:bg-dark-100 rounded-lg p-6 shadow-sm border border-gray-200 dark:border-dark-300",children:[e.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-dark-800 mb-4",children:"Import Personas"}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-dark-700 mb-2",children:"Upload JSON File"}),e.jsx("input",{type:"file",accept:".json",onChange:j,className:"w-full px-3 py-2 border border-gray-300 dark:border-dark-300 rounded-md bg-white dark:bg-dark-50 text-gray-900 dark:text-dark-700"})]}),e.jsx("div",{className:"text-center text-gray-500 dark:text-dark-500",children:"OR"}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-dark-700 mb-2",children:"Paste JSON Data"}),e.jsx("textarea",{value:f,onChange:s=>v(s.target.value),className:"w-full px-3 py-2 border border-gray-300 dark:border-dark-300 rounded-md bg-white dark:bg-dark-50 text-gray-900 dark:text-dark-700",rows:8,placeholder:"Paste persona JSON data here..."})]}),e.jsx(F,{onClick:M,disabled:!f.trim()||t,className:"w-full",children:t?"Importing...":"Import Persona(s)"})]})]})]}),e.jsxs("div",{className:"mt-6 bg-gray-50 dark:bg-dark-200 rounded-lg p-4",children:[e.jsx("h4",{className:"text-sm font-medium text-gray-900 dark:text-dark-800 mb-2",children:"Expected JSON Format:"}),e.jsx("pre",{className:"text-xs text-gray-600 dark:text-dark-600 overflow-x-auto",children:`{
2
- "name": "Assistant Name",
3
- "description": "Brief description of the assistant's personality",
4
- "model": "model-name:version",
5
- "params": {
6
- "temperature": 0.8,
7
- "top_p": 0.9,
8
- "context_window": 4096,
9
- "system_prompt": "You are a helpful assistant with specific traits..."
10
- },
11
- "avatar": "/path/to/avatar.png",
12
- "background": "/path/to/background.png"
13
- }`})]}),e.jsx("div",{className:"mt-6 flex justify-end",children:e.jsx(F,{onClick:_,variant:"outline",children:"Close"})})]})},Fe=()=>{const[r,y]=d.useState([]),[_,t]=d.useState(!1),[b,f]=d.useState(!1),[v,h]=d.useState(null),[u,M]=d.useState(!1),j=async()=>{t(!0);try{const n=await C.getPersonas();n.success?y(n.data||[]):i.error("Failed to load personas: "+n.error)}catch(n){const w=n instanceof Error?n.message:String(n);i.error("Failed to load personas: "+w)}finally{t(!1)}};d.useEffect(()=>{j()},[]);const s=()=>{h(null),f(!0)},c=n=>{h(n),f(!0)},m=async n=>{if(confirm(`Are you sure you want to delete "${n.name}"?`))try{const w=await C.deletePersona(n.id);w.success?(i.success(`Persona "${n.name}" deleted successfully`),await j()):i.error("Failed to delete persona: "+w.error)}catch(w){const E=w instanceof Error?w.message:String(w);i.error("Failed to delete persona: "+E)}},l=async n=>{try{await C.downloadPersona(n.id,n.name),i.success(`Persona "${n.name}" downloaded successfully`)}catch(w){const E=w instanceof Error?w.message:String(w);i.error("Failed to download persona: "+E)}},o=async()=>{f(!1),h(null),await j()},N=()=>{f(!1),h(null)};return _?e.jsx("div",{className:"flex items-center justify-center p-8",children:e.jsx("div",{className:"text-gray-600 dark:text-dark-600",children:"Loading personas..."})}):b?e.jsx(Me,{persona:v,onSubmit:o,onCancel:N}):u?e.jsx(Ee,{personas:r,onImport:j,onClose:()=>M(!1)}):e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-bold text-gray-900 dark:text-dark-800",children:"Personas"}),e.jsx("p",{className:"text-gray-600 dark:text-dark-600 mt-1",children:"Create and manage AI personas with custom personalities and settings"})]}),e.jsxs("div",{className:"flex gap-3",children:[e.jsx(F,{onClick:()=>M(!0),variant:"outline",className:"px-4 py-2",children:"Import/Export"}),e.jsx(F,{onClick:s,className:"px-4 py-2",children:"Create Persona"})]})]}),e.jsx("div",{className:"bg-white dark:bg-dark-100 rounded-lg p-6 shadow-sm border border-gray-200 dark:border-dark-300",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-dark-800",children:"Your Personas"}),e.jsxs("p",{className:"text-gray-600 dark:text-dark-600",children:[r.length," ",r.length===1?"persona":"personas"," ","created"]})]}),e.jsx("div",{className:"text-3xl font-bold text-gray-900 dark:text-dark-800",children:r.length})]})}),r.length===0?e.jsxs("div",{className:"bg-white dark:bg-dark-100 rounded-lg p-12 shadow-sm border border-gray-200 dark:border-dark-300 text-center",children:[e.jsx("div",{className:"text-gray-400 dark:text-dark-500 mb-4",children:e.jsx("svg",{className:"w-16 h-16 mx-auto",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"})})}),e.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-dark-800 mb-2",children:"No personas yet"}),e.jsx("p",{className:"text-gray-600 dark:text-dark-600 mb-6",children:"Create your first persona to get started with personalized AI interactions"}),e.jsx(F,{onClick:s,className:"px-6 py-2",children:"Create Your First Persona"})]}):e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:r.map(n=>e.jsx(Se,{persona:n,onEdit:c,onDelete:m,onDownload:l},n.id))})]})},$e=()=>e.jsx("div",{className:"h-full overflow-auto",children:e.jsxs("div",{className:"max-w-6xl mx-auto p-6",children:[e.jsxs("div",{className:"text-center max-w-md mx-auto mb-8",children:[e.jsx("h2",{className:"libre-brand text-4xl sm:text-5xl font-normal text-gray-900 dark:text-dark-800 ophelia:text-[#fafafa] mb-3",style:{fontWeight:300,letterSpacing:"0.01em"},children:"Personas"}),e.jsx("p",{className:"text-gray-600 dark:text-dark-600 ophelia:text-[#a3a3a3] leading-relaxed",children:"Create and manage AI personas with custom personalities, memories, and behaviors"})]}),e.jsx(Fe,{})]})});export{$e as PersonasPage,$e as default};
@@ -1 +0,0 @@
1
- import{j as e}from"./markdown-vendor-D-79K2xZ.js";import{r as u}from"./router-vendor-B-t91v39.js";import{t as x,n as q,r as z,k as L,ap as P,T as R}from"./ui-vendor-VxSCY_bv.js";import{a as T,i as p,B as m,I as h}from"../assets/index-B7--cAul.js";import"./react-vendor-N--QU9DW.js";import"./utils-vendor-DNzxLBGx.js";const n=({children:t,htmlFor:d,className:y=""})=>e.jsx("label",{htmlFor:d,className:`text-sm font-medium text-gray-700 dark:text-gray-300 ${y}`,children:t}),b=({children:t,className:d=""})=>e.jsx("div",{className:`bg-white dark:bg-dark-25 border border-gray-200 dark:border-dark-200 rounded-xl shadow-card hover:shadow-card-hover transition-shadow duration-200 ${d}`,children:t}),v=({children:t,className:d=""})=>e.jsx("div",{className:`flex flex-col space-y-1.5 p-6 ${d}`,children:t}),f=({children:t,className:d=""})=>e.jsx("h3",{className:`text-lg font-semibold leading-none tracking-tight text-gray-900 dark:text-dark-950 ${d}`,children:t}),N=({children:t,className:d=""})=>e.jsx("p",{className:`text-sm text-gray-500 dark:text-dark-500 ${d}`,children:t}),w=({children:t,className:d=""})=>e.jsx("div",{className:`p-6 pt-0 ${d}`,children:t}),B=()=>{const[t,d]=u.useState([]),[y,U]=u.useState(!0),[C,k]=u.useState(!1),[c,j]=u.useState(null),[a,l]=u.useState({username:"",email:"",password:"",role:"user"}),{user:g}=T();u.useEffect(()=>{E()},[]);const E=async()=>{try{U(!0);const r=await p.getUsers();r.success&&r.data&&d(r.data)}catch(r){console.error("Error loading users:",r),x.error("Failed to load users")}finally{U(!1)}},F=async r=>{r.preventDefault();try{const s=await p.createUser(a);s.success&&s.data&&(d([...t,s.data]),l({username:"",email:"",password:"",role:"user"}),k(!1),x.success("User created successfully"))}catch(s){console.error("Error creating user:",s);let i="Failed to create user";s instanceof Error&&"response"in s&&(i=s.response?.data?.message||"Failed to create user"),x.error(i)}},S=async r=>{if(r.preventDefault(),!!c)try{const s={username:a.username,email:a.email,role:a.role};a.password&&a.password.trim()!==""&&(s.password=a.password);const i=await p.updateUser(c.id,s);i.success&&i.data&&(d(t.map(o=>o.id===c.id?i.data:o)),j(null),l({username:"",email:"",password:"",role:"user"}),x.success("User updated successfully"))}catch(s){console.error("Error updating user:",s);let i="Failed to update user";s instanceof Error&&"response"in s&&(i=s.response?.data?.message||"Failed to update user"),x.error(i)}},A=async(r,s)=>{if(confirm(`Are you sure you want to delete user "${s}"?`))try{(await p.deleteUser(r)).success&&(d(t.filter(o=>o.id!==r)),x.success("User deleted successfully"))}catch(i){console.error("Error deleting user:",i);let o="Failed to delete user";i instanceof Error&&"response"in i&&(o=i.response?.data?.message||"Failed to delete user"),x.error(o)}},D=r=>{j(r),l({username:r.username,email:r.email||"",password:"",role:r.role})},M=()=>{j(null),l({username:"",email:"",password:"",role:"user"})},$=()=>{l({username:"",email:"",password:"",role:"user"}),k(!1)};return y?e.jsx("div",{className:"flex items-center justify-center p-8",children:e.jsx("div",{className:"w-8 h-8 border-4 border-gray-200 dark:border-gray-600 border-t-primary-500 rounded-full animate-spin"})}):e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsx("div",{}),e.jsxs(m,{onClick:()=>k(!C),className:"flex items-center space-x-2 bg-primary-600 hover:bg-primary-700 dark:bg-primary-500 dark:hover:bg-primary-600",children:[e.jsx(q,{size:16}),e.jsx("span",{children:"Add User"})]})]}),C&&e.jsxs(b,{className:"bg-white dark:bg-dark-25 border border-gray-200 dark:border-dark-200 shadow-lg",children:[e.jsxs(v,{children:[e.jsx(f,{className:"text-gray-900 dark:text-gray-100",children:"Create New User"}),e.jsx(N,{className:"text-gray-600 dark:text-gray-400",children:"Add a new user to the system"})]}),e.jsx(w,{children:e.jsxs("form",{onSubmit:F,className:"space-y-4",children:[e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx(n,{htmlFor:"username",className:"text-gray-700 dark:text-gray-300",children:"Username"}),e.jsx(h,{id:"username",value:a.username,onChange:r=>l({...a,username:r.target.value}),required:!0,className:"bg-white dark:bg-dark-100 border-gray-300 dark:border-dark-300 text-gray-900 dark:text-gray-100"})]}),e.jsxs("div",{children:[e.jsx(n,{htmlFor:"email",className:"text-gray-700 dark:text-gray-300",children:"Email"}),e.jsx(h,{id:"email",type:"email",value:a.email,onChange:r=>l({...a,email:r.target.value}),required:!0,className:"bg-white dark:bg-dark-100 border-gray-300 dark:border-dark-300 text-gray-900 dark:text-gray-100"})]})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx(n,{htmlFor:"password",className:"text-gray-700 dark:text-gray-300",children:"Password"}),e.jsx(h,{id:"password",type:"password",value:a.password,onChange:r=>l({...a,password:r.target.value}),required:!0,className:"bg-white dark:bg-dark-100 border-gray-300 dark:border-dark-300 text-gray-900 dark:text-gray-100"})]}),e.jsxs("div",{children:[e.jsx(n,{htmlFor:"role",className:"text-gray-700 dark:text-gray-300",children:"Role"}),e.jsxs("select",{id:"role",value:a.role,onChange:r=>l({...a,role:r.target.value}),className:"w-full px-3 py-2 border border-gray-300 dark:border-dark-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary-500 bg-white dark:bg-dark-100 text-gray-900 dark:text-gray-100 transition-colors duration-200",children:[e.jsx("option",{value:"user",children:"User"}),e.jsx("option",{value:"admin",children:"Admin"})]})]})]}),e.jsxs("div",{className:"flex space-x-2",children:[e.jsx(m,{type:"submit",children:"Create User"}),e.jsx(m,{type:"button",variant:"outline",onClick:$,children:"Cancel"})]})]})})]}),c&&e.jsxs(b,{className:"bg-white dark:bg-dark-25 border border-gray-200 dark:border-dark-200 shadow-lg",children:[e.jsxs(v,{children:[e.jsxs(f,{className:"text-gray-900 dark:text-gray-100",children:["Edit User: ",c.username]}),e.jsx(N,{className:"text-gray-600 dark:text-gray-400",children:"Modify user information and permissions"})]}),e.jsx(w,{children:e.jsxs("form",{onSubmit:S,className:"space-y-4",children:[e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx(n,{htmlFor:"edit-username",className:"text-gray-700 dark:text-gray-300",children:"Username"}),e.jsx(h,{id:"edit-username",value:a.username,onChange:r=>l({...a,username:r.target.value}),required:!0,className:"bg-white dark:bg-dark-100 border-gray-300 dark:border-dark-300 text-gray-900 dark:text-gray-100"})]}),e.jsxs("div",{children:[e.jsx(n,{htmlFor:"edit-email",className:"text-gray-700 dark:text-gray-300",children:"Email"}),e.jsx(h,{id:"edit-email",type:"email",value:a.email,onChange:r=>l({...a,email:r.target.value}),required:!0,className:"bg-white dark:bg-dark-100 border-gray-300 dark:border-dark-300 text-gray-900 dark:text-gray-100"})]})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx(n,{htmlFor:"edit-password",className:"text-gray-700 dark:text-gray-300",children:"New Password (optional)"}),e.jsx(h,{id:"edit-password",type:"password",value:a.password,onChange:r=>l({...a,password:r.target.value}),placeholder:"Leave empty to keep current password",className:"bg-white dark:bg-dark-100 border-gray-300 dark:border-dark-300 text-gray-900 dark:text-gray-100"})]}),e.jsxs("div",{children:[e.jsx(n,{htmlFor:"edit-role",className:"text-gray-700 dark:text-gray-300",children:"Role"}),e.jsxs("select",{id:"edit-role",value:a.role,onChange:r=>l({...a,role:r.target.value}),disabled:c?.id===g?.id&&g?.role==="admin",className:"w-full px-3 py-2 border border-gray-300 dark:border-dark-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary-500 bg-white dark:bg-dark-100 text-gray-900 dark:text-gray-100 transition-colors duration-200 disabled:opacity-50 disabled:cursor-not-allowed",children:[e.jsx("option",{value:"user",children:"User"}),e.jsx("option",{value:"admin",children:"Admin"})]}),c?.id===g?.id&&g?.role==="admin"&&e.jsx("p",{className:"text-xs text-amber-600 dark:text-amber-400 mt-1",children:"Cannot change your own admin role to prevent lockout"})]})]}),e.jsxs("div",{className:"flex space-x-2",children:[e.jsx(m,{type:"submit",children:"Update User"}),e.jsx(m,{type:"button",variant:"outline",onClick:M,children:"Cancel"})]})]})})]}),e.jsxs(b,{className:"bg-white dark:bg-dark-25 border border-gray-200 dark:border-dark-200 shadow-lg",children:[e.jsxs(v,{children:[e.jsxs(f,{className:"text-gray-900 dark:text-gray-100",children:["All Users (",t.length,")"]}),e.jsx(N,{className:"text-gray-600 dark:text-gray-400",children:"Manage existing user accounts"})]}),e.jsx(w,{children:e.jsx("div",{className:"space-y-3",children:t.map(r=>e.jsxs("div",{className:"flex items-center justify-between p-4 bg-gray-50 dark:bg-dark-100 rounded-lg border border-gray-200 dark:border-dark-300",children:[e.jsxs("div",{className:"flex items-center space-x-3",children:[e.jsx("div",{className:"p-2 bg-primary-100 dark:bg-primary-900/20 rounded-lg",children:r.role==="admin"?e.jsx(z,{className:"h-5 w-5 text-primary-600 dark:text-primary-400"}):e.jsx(L,{className:"h-5 w-5 text-primary-600 dark:text-primary-400"})}),e.jsxs("div",{children:[e.jsxs("h3",{className:"font-medium text-gray-900 dark:text-gray-100",children:[r.username,r.id===g?.id&&e.jsx("span",{className:"ml-2 text-xs text-primary-600 dark:text-primary-400 font-normal",children:"(You)"})]}),e.jsxs("p",{className:"text-sm text-gray-600 dark:text-gray-400",children:[r.email||"No email provided"," • ",r.role]}),e.jsxs("p",{className:"text-xs text-gray-500 dark:text-gray-500",children:["Created: ",new Date(r.createdAt).toLocaleDateString()]})]})]}),e.jsxs("div",{className:"flex space-x-2",children:[e.jsx(m,{variant:"outline",size:"sm",onClick:()=>D(r),className:"text-gray-600 dark:text-gray-400 hover:text-primary-600 dark:hover:text-primary-400",children:e.jsx(P,{size:16})}),e.jsx(m,{variant:"outline",size:"sm",onClick:()=>A(r.id,r.username),disabled:r.id===g?.id,className:"text-red-600 dark:text-red-400 hover:text-red-700 dark:hover:text-red-300 hover:bg-red-50 dark:hover:bg-red-900/20",children:e.jsx(R,{size:16})})]})]},r.id))})})]})]})},O=()=>e.jsx("div",{className:"h-full overflow-auto",children:e.jsxs("div",{className:"max-w-6xl mx-auto p-6",children:[e.jsxs("div",{className:"mb-8",children:[e.jsx("h1",{className:"text-3xl font-bold text-gray-900 dark:text-gray-100 mb-2",children:"User Management"}),e.jsx("p",{className:"text-gray-700 dark:text-gray-300",children:"Manage user accounts, permissions, and access controls for your Libre WebUI instance."})]}),e.jsx(B,{})]})});export{O as UserManagementPage,O as default};
@@ -1,177 +0,0 @@
1
- import{r as d}from"./router-vendor-B-t91v39.js";let K={data:""},W=e=>{if(typeof window=="object"){let t=(e?e.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return t.nonce=window.__nonce__,t.parentNode||(e||document.head).appendChild(t),t.firstChild}return e||K},X=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Y=/\/\*[^]*?\*\/| +/g,S=/\n+/g,M=(e,t)=>{let a="",n="",c="";for(let r in e){let s=e[r];r[0]=="@"?r[1]=="i"?a=r+" "+s+";":n+=r[1]=="f"?M(s,r):r+"{"+M(s,r[1]=="k"?"":t)+"}":typeof s=="object"?n+=M(s,t?t.replace(/([^,])+/g,i=>r.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,i):i?i+" "+l:l)):r):s!=null&&(r=/^--/.test(r)?r:r.replace(/[A-Z]/g,"-$&").toLowerCase(),c+=M.p?M.p(r,s):r+":"+s+";")}return a+(t&&c?t+"{"+c+"}":c)+n},g={},P=e=>{if(typeof e=="object"){let t="";for(let a in e)t+=a+P(e[a]);return t}return e},Q=(e,t,a,n,c)=>{let r=P(e),s=g[r]||(g[r]=(l=>{let y=0,h=11;for(;y<l.length;)h=101*h+l.charCodeAt(y++)>>>0;return"go"+h})(r));if(!g[s]){let l=r!==e?e:(y=>{let h,p,k=[{}];for(;h=X.exec(y.replace(Y,""));)h[4]?k.shift():h[3]?(p=h[3].replace(S," ").trim(),k.unshift(k[0][p]=k[0][p]||{})):k[0][h[1]]=h[2].replace(S," ").trim();return k[0]})(e);g[s]=M(c?{["@keyframes "+s]:l}:l,a?"":"."+s)}let i=a&&g.g?g.g:null;return a&&(g.g=g[s]),((l,y,h,p)=>{p?y.data=y.data.replace(p,l):y.data.indexOf(l)===-1&&(y.data=h?l+y.data:y.data+l)})(g[s],t,n,i),s},J=(e,t,a)=>e.reduce((n,c,r)=>{let s=t[r];if(s&&s.call){let i=s(a),l=i&&i.props&&i.props.className||/^go/.test(i)&&i;s=l?"."+l:i&&typeof i=="object"?i.props?"":M(i,""):i===!1?"":i}return n+c+(s??"")},"");function j(e){let t=this||{},a=e.call?e(t.p):e;return Q(a.unshift?a.raw?J(a,[].slice.call(arguments,1),t.p):a.reduce((n,c)=>Object.assign(n,c&&c.call?c(t.p):c),{}):a,W(t.target),t.g,t.o,t.k)}let I,H,L;j.bind({g:1});let x=j.bind({k:1});function e1(e,t,a,n){M.p=t,I=e,H=a,L=n}function _(e,t){let a=this||{};return function(){let n=arguments;function c(r,s){let i=Object.assign({},r),l=i.className||c.className;a.p=Object.assign({theme:H&&H()},i),a.o=/ *go\d+/.test(l),i.className=j.apply(a,n)+(l?" "+l:"");let y=e;return e[0]&&(y=i.as||e,delete i.as),L&&y[0]&&L(i),I(y,i)}return c}}var t1=e=>typeof e=="function",z=(e,t)=>t1(e)?e(t):e,a1=(()=>{let e=0;return()=>(++e).toString()})(),T=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),o1=20,E="default",F=(e,t)=>{let{toastLimit:a}=e.settings;switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,a)};case 1:return{...e,toasts:e.toasts.map(s=>s.id===t.toast.id?{...s,...t.toast}:s)};case 2:let{toast:n}=t;return F(e,{type:e.toasts.find(s=>s.id===n.id)?1:0,toast:n});case 3:let{toastId:c}=t;return{...e,toasts:e.toasts.map(s=>s.id===c||c===void 0?{...s,dismissed:!0,visible:!1}:s)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(s=>s.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let r=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(s=>({...s,pauseDuration:s.pauseDuration+r}))}}},N=[],R={toasts:[],pausedAt:void 0,settings:{toastLimit:o1}},v={},U=(e,t=E)=>{v[t]=F(v[t]||R,e),N.forEach(([a,n])=>{a===t&&n(v[t])})},B=e=>Object.keys(v).forEach(t=>U(e,t)),s1=e=>Object.keys(v).find(t=>v[t].toasts.some(a=>a.id===e)),q=(e=E)=>t=>{U(t,e)},n1={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},r1=(e={},t=E)=>{let[a,n]=d.useState(v[t]||R),c=d.useRef(v[t]);d.useEffect(()=>(c.current!==v[t]&&n(v[t]),N.push([t,n]),()=>{let s=N.findIndex(([i])=>i===t);s>-1&&N.splice(s,1)}),[t]);let r=a.toasts.map(s=>{var i,l,y;return{...e,...e[s.type],...s,removeDelay:s.removeDelay||((i=e[s.type])==null?void 0:i.removeDelay)||e?.removeDelay,duration:s.duration||((l=e[s.type])==null?void 0:l.duration)||e?.duration||n1[s.type],style:{...e.style,...(y=e[s.type])==null?void 0:y.style,...s.style}}});return{...a,toasts:r}},c1=(e,t="blank",a)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...a,id:a?.id||a1()}),b=e=>(t,a)=>{let n=c1(t,e,a);return q(n.toasterId||s1(n.id))({type:2,toast:n}),n.id},u=(e,t)=>b("blank")(e,t);u.error=b("error");u.success=b("success");u.loading=b("loading");u.custom=b("custom");u.dismiss=(e,t)=>{let a={type:3,toastId:e};t?q(t)(a):B(a)};u.dismissAll=e=>u.dismiss(void 0,e);u.remove=(e,t)=>{let a={type:4,toastId:e};t?q(t)(a):B(a)};u.removeAll=e=>u.remove(void 0,e);u.promise=(e,t,a)=>{let n=u.loading(t.loading,{...a,...a?.loading});return typeof e=="function"&&(e=e()),e.then(c=>{let r=t.success?z(t.success,c):void 0;return r?u.success(r,{id:n,...a,...a?.success}):u.dismiss(n),c}).catch(c=>{let r=t.error?z(t.error,c):void 0;r?u.error(r,{id:n,...a,...a?.error}):u.dismiss(n)}),e};var i1=1e3,d1=(e,t="default")=>{let{toasts:a,pausedAt:n}=r1(e,t),c=d.useRef(new Map).current,r=d.useCallback((p,k=i1)=>{if(c.has(p))return;let m=setTimeout(()=>{c.delete(p),s({type:4,toastId:p})},k);c.set(p,m)},[]);d.useEffect(()=>{if(n)return;let p=Date.now(),k=a.map(m=>{if(m.duration===1/0)return;let w=(m.duration||0)+m.pauseDuration-(p-m.createdAt);if(w<0){m.visible&&u.dismiss(m.id);return}return setTimeout(()=>u.dismiss(m.id,t),w)});return()=>{k.forEach(m=>m&&clearTimeout(m))}},[a,n,t]);let s=d.useCallback(q(t),[t]),i=d.useCallback(()=>{s({type:5,time:Date.now()})},[s]),l=d.useCallback((p,k)=>{s({type:1,toast:{id:p,height:k}})},[s]),y=d.useCallback(()=>{n&&s({type:6,time:Date.now()})},[n,s]),h=d.useCallback((p,k)=>{let{reverseOrder:m=!1,gutter:w=8,defaultPosition:V}=k||{},C=a.filter(f=>(f.position||V)===(p.position||V)&&f.height),G=C.findIndex(f=>f.id===p.id),D=C.filter((f,A)=>A<G&&f.visible).length;return C.filter(f=>f.visible).slice(...m?[D+1]:[0,D]).reduce((f,A)=>f+(A.height||0)+w,0)},[a]);return d.useEffect(()=>{a.forEach(p=>{if(p.dismissed)r(p.id,p.removeDelay);else{let k=c.get(p.id);k&&(clearTimeout(k),c.delete(p.id))}})},[a,r]),{toasts:a,handlers:{updateHeight:l,startPause:i,endPause:y,calculateOffset:h}}},l1=x`
2
- from {
3
- transform: scale(0) rotate(45deg);
4
- opacity: 0;
5
- }
6
- to {
7
- transform: scale(1) rotate(45deg);
8
- opacity: 1;
9
- }`,y1=x`
10
- from {
11
- transform: scale(0);
12
- opacity: 0;
13
- }
14
- to {
15
- transform: scale(1);
16
- opacity: 1;
17
- }`,h1=x`
18
- from {
19
- transform: scale(0) rotate(90deg);
20
- opacity: 0;
21
- }
22
- to {
23
- transform: scale(1) rotate(90deg);
24
- opacity: 1;
25
- }`,p1=_("div")`
26
- width: 20px;
27
- opacity: 0;
28
- height: 20px;
29
- border-radius: 10px;
30
- background: ${e=>e.primary||"#ff4b4b"};
31
- position: relative;
32
- transform: rotate(45deg);
33
-
34
- animation: ${l1} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
35
- forwards;
36
- animation-delay: 100ms;
37
-
38
- &:after,
39
- &:before {
40
- content: '';
41
- animation: ${y1} 0.15s ease-out forwards;
42
- animation-delay: 150ms;
43
- position: absolute;
44
- border-radius: 3px;
45
- opacity: 0;
46
- background: ${e=>e.secondary||"#fff"};
47
- bottom: 9px;
48
- left: 4px;
49
- height: 2px;
50
- width: 12px;
51
- }
52
-
53
- &:before {
54
- animation: ${h1} 0.15s ease-out forwards;
55
- animation-delay: 180ms;
56
- transform: rotate(90deg);
57
- }
58
- `,k1=x`
59
- from {
60
- transform: rotate(0deg);
61
- }
62
- to {
63
- transform: rotate(360deg);
64
- }
65
- `,u1=_("div")`
66
- width: 12px;
67
- height: 12px;
68
- box-sizing: border-box;
69
- border: 2px solid;
70
- border-radius: 100%;
71
- border-color: ${e=>e.secondary||"#e0e0e0"};
72
- border-right-color: ${e=>e.primary||"#616161"};
73
- animation: ${k1} 1s linear infinite;
74
- `,m1=x`
75
- from {
76
- transform: scale(0) rotate(45deg);
77
- opacity: 0;
78
- }
79
- to {
80
- transform: scale(1) rotate(45deg);
81
- opacity: 1;
82
- }`,f1=x`
83
- 0% {
84
- height: 0;
85
- width: 0;
86
- opacity: 0;
87
- }
88
- 40% {
89
- height: 0;
90
- width: 6px;
91
- opacity: 1;
92
- }
93
- 100% {
94
- opacity: 1;
95
- height: 10px;
96
- }`,v1=_("div")`
97
- width: 20px;
98
- opacity: 0;
99
- height: 20px;
100
- border-radius: 10px;
101
- background: ${e=>e.primary||"#61d345"};
102
- position: relative;
103
- transform: rotate(45deg);
104
-
105
- animation: ${m1} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
106
- forwards;
107
- animation-delay: 100ms;
108
- &:after {
109
- content: '';
110
- box-sizing: border-box;
111
- animation: ${f1} 0.2s ease-out forwards;
112
- opacity: 0;
113
- animation-delay: 200ms;
114
- position: absolute;
115
- border-right: 2px solid;
116
- border-bottom: 2px solid;
117
- border-color: ${e=>e.secondary||"#fff"};
118
- bottom: 6px;
119
- left: 6px;
120
- height: 10px;
121
- width: 6px;
122
- }
123
- `,g1=_("div")`
124
- position: absolute;
125
- `,x1=_("div")`
126
- position: relative;
127
- display: flex;
128
- justify-content: center;
129
- align-items: center;
130
- min-width: 20px;
131
- min-height: 20px;
132
- `,M1=x`
133
- from {
134
- transform: scale(0.6);
135
- opacity: 0.4;
136
- }
137
- to {
138
- transform: scale(1);
139
- opacity: 1;
140
- }`,_1=_("div")`
141
- position: relative;
142
- transform: scale(0.6);
143
- opacity: 0.4;
144
- min-width: 20px;
145
- animation: ${M1} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
146
- forwards;
147
- `,b1=({toast:e})=>{let{icon:t,type:a,iconTheme:n}=e;return t!==void 0?typeof t=="string"?d.createElement(_1,null,t):t:a==="blank"?null:d.createElement(x1,null,d.createElement(u1,{...n}),a!=="loading"&&d.createElement(g1,null,a==="error"?d.createElement(p1,{...n}):d.createElement(v1,{...n})))},w1=e=>`
148
- 0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}
149
- 100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
150
- `,$1=e=>`
151
- 0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
152
- 100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}
153
- `,N1="0%{opacity:0;} 100%{opacity:1;}",z1="0%{opacity:1;} 100%{opacity:0;}",j1=_("div")`
154
- display: flex;
155
- align-items: center;
156
- background: #fff;
157
- color: #363636;
158
- line-height: 1.3;
159
- will-change: transform;
160
- box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
161
- max-width: 350px;
162
- pointer-events: auto;
163
- padding: 8px 10px;
164
- border-radius: 8px;
165
- `,q1=_("div")`
166
- display: flex;
167
- justify-content: center;
168
- margin: 4px 10px;
169
- color: inherit;
170
- flex: 1 1 auto;
171
- white-space: pre-line;
172
- `,C1=(e,t)=>{let a=e.includes("top")?1:-1,[n,c]=T()?[N1,z1]:[w1(a),$1(a)];return{animation:t?`${x(n)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${x(c)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},A1=d.memo(({toast:e,position:t,style:a,children:n})=>{let c=e.height?C1(e.position||t||"top-center",e.visible):{opacity:0},r=d.createElement(b1,{toast:e}),s=d.createElement(q1,{...e.ariaProps},z(e.message,e));return d.createElement(j1,{className:e.className,style:{...c,...a,...e.style}},typeof n=="function"?n({icon:r,message:s}):d.createElement(d.Fragment,null,r,s))});e1(d.createElement);var H1=({id:e,className:t,style:a,onHeightUpdate:n,children:c})=>{let r=d.useCallback(s=>{if(s){let i=()=>{let l=s.getBoundingClientRect().height;n(e,l)};i(),new MutationObserver(i).observe(s,{subtree:!0,childList:!0,characterData:!0})}},[e,n]);return d.createElement("div",{ref:r,className:t,style:a},c)},L1=(e,t)=>{let a=e.includes("top"),n=a?{top:0}:{bottom:0},c=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:T()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(a?1:-1)}px)`,...n,...c}},E1=j`
173
- z-index: 9999;
174
- > * {
175
- pointer-events: auto;
176
- }
177
- `,$=16,mt=({reverseOrder:e,position:t="top-center",toastOptions:a,gutter:n,children:c,toasterId:r,containerStyle:s,containerClassName:i})=>{let{toasts:l,handlers:y}=d1(a,r);return d.createElement("div",{"data-rht-toaster":r||"",style:{position:"fixed",zIndex:9999,top:$,left:$,right:$,bottom:$,pointerEvents:"none",...s},className:i,onMouseEnter:y.startPause,onMouseLeave:y.endPause},l.map(h=>{let p=h.position||t,k=y.calculateOffset(h,{reverseOrder:e,gutter:n,defaultPosition:t}),m=L1(p,k);return d.createElement(H1,{id:h.id,key:h.id,onHeightUpdate:y.updateHeight,className:h.visible?E1:"",style:m},h.type==="custom"?z(h.message,h):c?c(h):d.createElement(A1,{toast:h,position:p}))}))},ft=u;const V1=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),D1=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,a,n)=>n?n.toUpperCase():a.toLowerCase()),O=e=>{const t=D1(e);return t.charAt(0).toUpperCase()+t.slice(1)},Z=(...e)=>e.filter((t,a,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===a).join(" ").trim(),S1=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var O1={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"};const P1=d.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:a=2,absoluteStrokeWidth:n,className:c="",children:r,iconNode:s,...i},l)=>d.createElement("svg",{ref:l,...O1,width:t,height:t,stroke:e,strokeWidth:n?Number(a)*24/Number(t):a,className:Z("lucide",c),...!r&&!S1(i)&&{"aria-hidden":"true"},...i},[...s.map(([y,h])=>d.createElement(y,h)),...Array.isArray(r)?r:[r]]));const o=(e,t)=>{const a=d.forwardRef(({className:n,...c},r)=>d.createElement(P1,{ref:r,iconNode:t,className:Z(`lucide-${V1(O(e))}`,`lucide-${e}`,n),...c}));return a.displayName=O(e),a};const I1=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],vt=o("activity",I1);const T1=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]],gt=o("archive",T1);const F1=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],xt=o("arrow-down",F1);const R1=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Mt=o("arrow-right",R1);const U1=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],_t=o("book-open",U1);const B1=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],bt=o("bot",B1);const Z1=[["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"}]],wt=o("brain",Z1);const G1=[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]],$t=o("camera",G1);const K1=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Nt=o("check",K1);const W1=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],zt=o("chevron-down",W1);const X1=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],jt=o("chevron-left",X1);const Y1=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],qt=o("chevron-right",Y1);const Q1=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Ct=o("chevron-up",Q1);const J1=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],At=o("clock",J1);const ee=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],Ht=o("cloud",ee);const te=[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]],Lt=o("code-xml",te);const ae=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],Et=o("code",ae);const oe=[["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"}]],Vt=o("copy",oe);const se=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],Dt=o("cpu",se);const ne=[["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"}]],St=o("database",ne);const re=[["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"}]],Ot=o("download",re);const ce=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],Pt=o("ellipsis",ce);const ie=[["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"}]],It=o("external-link",ie);const de=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],Tt=o("eye-off",de);const le=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Ft=o("eye",le);const ye=[["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"}]],Rt=o("file-code",ye);const he=[["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:"M12 18v-6",key:"17g6i2"}],["path",{d:"m9 15 3 3 3-3",key:"1npd3o"}]],Ut=o("file-down",he);const pe=[["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 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Bt=o("file-text",pe);const ke=[["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"}]],Zt=o("file",ke);const ue=[["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"}]],Gt=o("funnel",ue);const me=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],Kt=o("gauge",me);const fe=[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]],Wt=o("git-branch",fe);const ve=[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]],Xt=o("github",ve);const ge=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],Yt=o("globe",ge);const xe=[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]],Qt=o("hard-drive",xe);const Me=[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]],Jt=o("hash",Me);const _e=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],ea=o("image",_e);const be=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],ta=o("info",be);const we=[["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"}]],aa=o("key",we);const $e=[["path",{d:"M10 8h.01",key:"1r9ogq"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M14 8h.01",key:"1primd"}],["path",{d:"M16 12h.01",key:"1l6xoz"}],["path",{d:"M18 8h.01",key:"emo2bl"}],["path",{d:"M6 8h.01",key:"x9i8wu"}],["path",{d:"M7 16h10",key:"wp8him"}],["path",{d:"M8 12h.01",key:"czm47f"}],["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}]],oa=o("keyboard",$e);const Ne=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],sa=o("layers",Ne);const ze=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],na=o("loader-circle",ze);const je=[["path",{d:"m10 17 5-5-5-5",key:"1bsop3"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}]],ra=o("log-in",je);const qe=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],ca=o("log-out",qe);const Ce=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]],ia=o("maximize-2",Ce);const Ae=[["path",{d:"M12 12v-2",key:"fwoke6"}],["path",{d:"M12 18v-2",key:"qj6yno"}],["path",{d:"M16 12v-2",key:"heuere"}],["path",{d:"M16 18v-2",key:"s1ct0w"}],["path",{d:"M2 11h1.5",key:"15p63e"}],["path",{d:"M20 18v-2",key:"12ehxp"}],["path",{d:"M20.5 11H22",key:"khsy7a"}],["path",{d:"M4 18v-2",key:"1c3oqr"}],["path",{d:"M8 12v-2",key:"1mwtfd"}],["path",{d:"M8 18v-2",key:"qcmpov"}],["rect",{x:"2",y:"6",width:"20",height:"10",rx:"2",key:"1qcswk"}]],da=o("memory-stick",Ae);const He=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],la=o("message-square",He);const Le=[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]],ya=o("minimize-2",Le);const Ee=[["path",{d:"M5 12h14",key:"1ays0h"}]],ha=o("minus",Ee);const Ve=[["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"}]],pa=o("monitor",Ve);const De=[["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"}]],ka=o("moon",De);const Se=[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]],ua=o("palette",Se);const Oe=[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]],ma=o("paperclip",Oe);const Pe=[["path",{d:"M13 21h8",key:"1jsn5i"}],["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"}]],fa=o("pen-line",Pe);const Ie=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],va=o("play",Ie);const Te=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],ga=o("plus",Te);const Fe=[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",key:"w46dr5"}]],xa=o("puzzle",Fe);const Re=[["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"}]],Ma=o("refresh-cw",Re);const Ue=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],_a=o("rotate-ccw",Ue);const Be=[["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"}]],ba=o("save",Be);const Ze=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],wa=o("search",Ze);const Ge=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],$a=o("send",Ge);const Ke=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],Na=o("server",Ke);const We=[["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"}]],za=o("settings",We);const Xe=[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]],ja=o("settings-2",Xe);const Ye=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],qa=o("shield",Ye);const Qe=[["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M12 21v-9",key:"17s77i"}],["path",{d:"M12 8V3",key:"13r4qs"}],["path",{d:"M17 16h4",key:"h1uq16"}],["path",{d:"M19 12V3",key:"o1uvq1"}],["path",{d:"M19 21v-5",key:"qua636"}],["path",{d:"M3 14h4",key:"bcjad9"}],["path",{d:"M5 10V3",key:"cb8scm"}],["path",{d:"M5 21v-7",key:"1w1uti"}]],Ca=o("sliders-vertical",Qe);const Je=[["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"}]],Aa=o("sparkles",Je);const et=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],Ha=o("square-pen",et);const tt=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],La=o("square",tt);const at=[["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"}]],Ea=o("star",at);const ot=[["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"}]],Va=o("sun",ot);const st=[["path",{d:"M14.5 2v17.5c0 1.4-1.1 2.5-2.5 2.5c-1.4 0-2.5-1.1-2.5-2.5V2",key:"125lnx"}],["path",{d:"M8.5 2h7",key:"csnxdl"}],["path",{d:"M14.5 16h-5",key:"1ox875"}]],Da=o("test-tube",st);const nt=[["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"}]],Sa=o("trash-2",nt);const rt=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],Oa=o("trending-up",rt);const ct=[["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"}]],Pa=o("triangle-alert",ct);const it=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],Ia=o("upload",it);const dt=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]],Ta=o("user-plus",dt);const lt=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],Fa=o("user",lt);const yt=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]],Ra=o("volume-2",yt);const ht=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["line",{x1:"22",x2:"16",y1:"9",y2:"15",key:"1ewh16"}],["line",{x1:"16",x2:"22",y1:"9",y2:"15",key:"5ykzw1"}]],Ua=o("volume-x",ht);const pt=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Ba=o("x",pt);const kt=[["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"}]],Za=o("zap",kt);export{wt as $,Mt as A,bt as B,Nt as C,St as D,It as E,aa as F,Xt as G,Pa as H,ea as I,Vt as J,oa as K,na as L,pa as M,mt as N,zt as O,ua as P,Ua as Q,_a as R,Ca as S,Sa as T,Ia as U,Ra as V,Ma as W,Ba as X,ba as Y,Za as Z,Ct as _,xa as a,Wt as a0,xt as a1,Lt as a2,Bt as a3,Zt as a4,_t as a5,Et as a6,ma as a7,ha as a8,$a as a9,ja as aa,Na as ab,Qt as ac,sa as ad,vt as ae,wa as af,Ht as ag,Gt as ah,da as ai,At as aj,Jt as ak,Rt as al,Da as am,Kt as an,Ea as ao,Ha as ap,Pt as aq,gt as ar,Ut as as,Oa as at,ya as au,ia as av,ta as b,la as c,Ot as d,La as e,va as f,Dt as g,Va as h,ka as i,Aa as j,Fa as k,jt as l,qt as m,ga as n,fa as o,za as p,ca as q,qa as r,$t as s,u as t,Tt as u,Ft as v,ra as w,Ta as x,Yt as y,ft as z};