(function installRendererState(root, createState) { if (typeof module === 'object' && module.exports) { module.exports = { createRendererState: createState }; return; } createState(root); })(typeof window === 'undefined' ? globalThis : window, function createRendererState(root) { const state = { messages: [], contacts: [], activeMessage: 1, activeFolder: 'Inbox', activeView: 'mail', query: '', toastTimer: null, selectedIds: new Set() }; Object.defineProperty(root, 'epMailState', { value: state, enumerable: false, configurable: false, writable: false }); return state; });