ener('alpine:initialized', () => {
        console.log("alpine initialized")
        {% for level,message in get_flashed_messages(with_categories=True)[:5] %}
          {% if level == "message" %}
            {% set level = "success" %}
          {% endif %}
          toast("{{message}}","{{level}}")
        {% endfor %}
      })
    </script>
    <script>
      if (window.innerWidth >= 1024) {
        {%if layout["sidebar-open"]%}
          sidebarOpen=true
        {%else%}
          sidebarOpen=false
    