<script>{!! file_get_contents(resource_path('js/theme-manager.js')) !!}</script>
<script>
    try { localStorage.setItem('theme', window.ThemeManager.getPreference()); } catch (error) {}
</script>
<script>
    window.addEventListener('theme-changed', (event) => {
        if (window.ThemeManager) window.ThemeManager.setPreference(event.detail);
    });
</script>
