import React from 'react'
import ReactDOM from 'react-dom/client'
import { BrowserRouter } from 'react-router-dom'
import App from './App.jsx'
import './index.css'
import { MockStoreProvider } from './data/mockStore'
import { AuthProvider } from './context/AuthContext'
import { ThemeProvider } from './context/ThemeContext'

import { Analytics } from "@vercel/analytics/react"

// Hidden Console Signature
try {
  const _0x1a = String.fromCharCode(66, 117, 105, 108, 116, 32, 98, 121, 32, 83, 97, 116, 121, 97, 109, 32, 82, 97, 115, 116, 111, 103, 105);
  const _0x1b = String.fromCharCode(55357, 56640, 32, 82, 101, 97, 100, 121, 32, 102, 111, 114, 32, 108, 105, 102, 116, 111, 102, 102);
  console.log(`%c ${_0x1a} %c ${_0x1b} `, "color: #22c55e; background: #1c1917; padding: 4px; border-radius: 4px; font-weight: bold;", "color: #3b82f6; font-weight: bold;");
} catch (e) {}

ReactDOM.createRoot(document.getElementById('root')).render(
  <React.StrictMode>
    <Analytics />
    <BrowserRouter>
      <MockStoreProvider>
        <AuthProvider>
          <ThemeProvider>
            <App />
          </ThemeProvider>
        </AuthProvider>
      </MockStoreProvider>
    </BrowserRouter>
  </React.StrictMode>,
)
