import { api } from "../lib/api.js"; import { emit, on } from "../lib/bus.js"; class ConversationInspector extends HTMLElement { constructor() { super(); this.attachShadow({ mode: "open" }); this.chatId = null; this.messages = []; this.runs = []; this.rowOrder = []; this.rowMap = new Map(); this.heights = new Map(); this._playing = false; this._playIdx = 0; this._timer = null; this.shadowRoot.innerHTML = `