ipt">
        try {
            let sidebar = localStorage.getItem('sphinx-sidebar');
            const sidebar_width = localStorage.getItem('sphinx-sidebar-width');
            if (sidebar_width) {
                document.documentElement.style.setProperty('--sidebar-width', sidebar_width);
            }
{%- if theme_initial_sidebar_visibility_threshold != None %}
            // show sidebar on wide screen
            if (!sidebar && window.matchMedia('(min-width: {{ theme_initial_sidebar_visibility_thresh