"use strict"; /* eslint-disable max-len */ const path = require('path'); const fs = require('fs'); const _ = require('lodash'); const projectRoot = path.resolve(__dirname, '..'); const assetsRoot = path.join(projectRoot, 'public'); exports.renderViewer = renderViewer; /** * Escapes `<` characters in JSON to safely use it in ``; } else { return ``; } } function renderViewer({ title, enableWebSocket, chartData, defaultSizes, mode } = {}) { return html`