"use strict"; /* eslint-disable max-len */ const path = require('path'); const fs = require('fs'); const { escape } = require('html-escaper'); 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, entrypoints, defaultSizes, mode } = {}) { return html`