function r(i){let s=[],n={};for(let e of i||[]){let t=String(e.studioTestCaseId!=null&&String(e.studioTestCaseId).trim()!==""?e.studioTestCaseId:e.sessionId||"").trim();if(!t)continue;s.push(t);let o=Number(e.updatedAt)||0;n[t]={ts:o,activeStageIndex:typeof e.activeStageIndex=="number"&&Number.isFinite(e.activeStageIndex)?e.activeStageIndex:null,activeNode:e.activeNode!=null?String(e.activeNode):null}}return{liveIdList:s,progressByKey:n}}export{r as missionControlFromRunningSessionStates};
