jQuery(document).ready(function(d){d("body").hasClass("dina-dark")&&d(".btn-di-toggle").addClass("di-toggle-light"),!localStorage.getItem("dina-mode")&&d("body").hasClass("dina-dark-os")&&(window.matchMedia("(prefers-color-scheme: dark)").matches?(d("body").addClass("dina-dark"),d("body").removeClass("dina-light"),d(".btn-di-toggle").addClass("di-toggle-light")):(d("body").removeClass("dina-dark"),d("body").addClass("dina-light"),d(".btn-di-toggle").removeClass("di-toggle-light"))),localStorage.getItem("dina-mode")&&("dina-dark"==localStorage.getItem("dina-mode")?(d("body").addClass("dina-dark"),d("body").removeClass("dina-light"),d(".btn-di-toggle").addClass("di-toggle-light")):(d("body").removeClass("dina-dark"),d("body").addClass("dina-light"),d(".btn-di-toggle").removeClass("di-toggle-light"))),d(".btn-di-toggle").on("click",function(){d(this).toggleClass("di-toggle-light"),d("body").hasClass("dina-dark")?(d("body").removeClass("dina-dark"),d("body").addClass("dina-light"),localStorage.setItem("dina-mode","dina-light")):(d("body").addClass("dina-dark"),d("body").removeClass("dina-light"),localStorage.setItem("dina-mode","dina-dark"))})});