n.jsdelivr.net/npm/chart.js"></script>
  <script>
    const state = {
      rawText: '',
      rows: [],
      headers: [],
      hasHeader: true,
      delimiter: 'auto',
      labelColumn: 0,
      chartType: 'line',
      datasets: [],
      valueColumn: 1,
      datasetColors: {},
      palette: 'vibrant',
      baseColor: '#6b76ff',
      canvasBg: '#0b0f20',
      textColor: '#f1f3ff'
    };

    
    let chart = null;

    
    const $ = (sel) => document.querySelector(sel);
    const $$ = (sel) => A