1function s(e){const t=e.system??e.system_health;return t?{cpu_percent:Number(t.cpu_percent??0),memory_percent:Number(t.memory_percent??0),disk_percent:Number(t.disk_percent??0),health_score:Number(e.health_score??t.health_score??0),uptime_hours:Number(t.uptime_hours??0)}:null}function o(e){const t=e.services_summary;return t?{healthy:Number(t.healthy??0),total:Number(t.total??0)}:null}function u(e){const t=e.ai_systems;return Array.isArray(t)?t.slice(0,6).map(r=>({name:String(r.name??"Service"),description:r.description?String(r.description):void 0,status:r.status?String(r.status):void 0,response_time_ms:r.response_time_ms!=null?Number(r.response_time_ms):void 0})):[]}function c(e){const t=e.users,r=e.revenue;return[{id:"users",label:"Total users",value:String((t==null?void 0:t.total)??e.total_users??0),delta:null},{id:"active",label:"Active today",value:String((t==null?void 0:t.active_today)??e.active_today??0),delta:null},{id:"mrr",label:"MRR",value:a((r==null?void 0:r.mrr)??e.mrr),delta:null}]}function m(e){if(!e)return[];const t=[];return e.cpu_percent>80&&t.push({id:"cpu-high",level:e.cpu_percent>90?"critical":"warning",title:"High CPU usage",description:`CPU at ${e.cpu_percent}%`}),e.memory_percent>80&&t.push({id:"memory-high",level:e.memory_percent>90?"critical":"warning",title:"High memory usage",description:`Memory at ${e.memory_percent}%`}),e.disk_percent>90&&t.push({id:"disk-high",level:"critical",title:"Disk nearly full",description:`Disk at ${e.disk_percent}%`}),e.health_score>0&&e.health_score<70&&t.push({id:"health-low",level:"warning",title:"System health degraded",de
1scription:`Health score ${e.health_score}%`}),t}function a(e){if(e==null||e==="")return"â";const t=Number(e);return Number.isFinite(t)?`$${t.toLocaleString(void 0,{maximumFractionDigits:0})}`:String(e)}function h(e){if(!e||typeof e!="object")return[];const t=e,r=t.summary??t,i=[];return r.total_reads_this_month!=null&&i.push({label:"Reads this month",value:Number(r.total_reads_this_month).toLocaleString()}),r.total_writes_this_month!=null&&i.push({label:"Writes this month",value:Number(r.total_writes_this_month).toLocaleString()}),Array.isArray(r.platforms_at_risk)&&i.push({label:"Platforms at risk",value:String(r.platforms_at_risk.length)}),i.length?i.slice(0,8):Object.entries(r).slice(0,8).map(([l,n])=>({label:l.replace(/_/g," "),value:n==null?"â":String(n)}))}export{s as a,c as b,o as c,m as d,h as f,u as p};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.