vendor: 808 bytes, line 1
1import{f as e}from"./useEvent-xfs0Sn4r.js";import{Co as t,ii as n,ri as r}from"./cells-Cp-G34Rz.js";import{d as i}from"./arrays-BqUx5USx.js";var a=`marimo:ai:chatState:v5`,o=e(null),s=e(null),c=t(`marimo:ai:chatOptions`,{webSearch:!1},n),l=t(`marimo:ai:includeOtherCells`,!0,n);function u(e){let t=new Map;for(let[n,r]of e.entries()){if(r.messages.length===0)continue;let e=i(r.messages,e=>e.id);t.set(n,{...r,messages:e})}return t}var d=t(a,{chats:new Map,activeChatId:null},r({toSerializable:e=>({chats:[...u(e.chats).entries()],activeChatId:e.activeChatId}),fromSerializable:e=>({chats:new Map(e.chats),activeChatId:e.activeChatId})})),f=e(e=>{let t=e(d);return t.activeChatId?t.chats.get(t.activeChatId):null},(e,t,n)=>{t(d,e=>({...e,activeChatId:n}))});export{l as a,d as i,o as n,s as o,c as r,f as t};
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.