Visualize waveform decomposition/synthesis.
Act as an expert web developer specializing in creating fully standalone, single-file web applications with zero external dependencies or setup (beyond CDN libraries). Your task is to create the complete HTML, CSS3 (inline `<style>`), and modern ES6 JavaScript (inline `<script>`) code for the following application, delivered as a single, self-contained HTML file: **App Title:** Fourier Series Explorer **Main Purpose:** Visualize waveform decomposition/synthesis. **Key Features to Implement:** * Select/draw waveform * Harmonic controls * Animation of components/sum * Frequency spectrum chart * Ability to handle user input via interactive controls (sliders, forms, buttons, drag-drop, etc., as appropriate).
Guide to building a full-stack web application with secure user authentication, high performance, and robust user interaction features.
Formats AI responses for low cognitive load, high clarity, and concrete structure.