').appendTo(document.body)),new MutationObserver(function(e){$.each(e,function(e,t){var a;"attributes"==t.type?(a="true"==$(t.target).attr("aria-hidden"))!=i&&(a?n&&n.remove():n=$("
").attr("class","ui-widget-overlay datepicker").appendTo(o.document.body).click(function(e){$(this).remove(),v&&$.datepicker._hideDatepicker()}),i=a):t.addedNodes.length&&(o.UI.bootstrap_style(t.target),v)&&(o.$("select.ui-datepicker-month",t.target).on("change",function(){$.datepicker._selectMonthYear($.datepicker._lastInput,this,"M")}),o.$("select.ui-datepicker-year",t.target).on("change",function(){$.datepicker._selectMonthYear($.datepicker._lastInput,this,"Y")}))})}).observe(this,{childList:!0,subtree:!1,attributes:!0,attributeFilter:["aria-hidden"]})})},this.bootstrap_style=E,this.toggle_list_selection=function(e,t){$(e).is(".active")&&Ee("list-selection",$("#"+t).toggleClass("withselection").is(".withselection"))},this.get_screen_mode=function(){return m},this.is_mobile=I,this.is_touch=Ce,Z(),"print"!=rcmail.env.action&&(r=rcmail.get_cookie("colorMode"),u=window.matchMedia("(prefers-color-scheme: dark)"),R=function(){rcmail.set_cookie("colorMode","",new Date)},e=function(){try{$(this.contentWindow.document).find("html")["dark"==h?"addClass":"removeClass"]("dark-mode")}catch(e){}},!(t=function(){"dark"==h?($("#taskmenu a.theme").removeClass("dark").addClass("light").find("span").text(rcmail.gettext("lightmode")),$("html").addClass("dark-mode")):($("#taskmenu a.theme").removeClass("light").addClass("dark").find("span").text(rcmail.gettext("darkmode")),$("html").removeClass("dark-mode")),te(m),$("iframe").each(e)})===rcmail.env.dark_mode_support?"dark"==r&&(R(),$("iframe").each(e)):($("#taskmenu a.theme").on("click",function(){h=$(this).is(".dark")?"dark":"light",t(),rcmail.set_cookie("colorMode",h,!1)}),u.addListener(function(e){h=e.matches?"dark":"light",t(),R()}),r?h=r:u.matches&&(h="dark"),t(),$("iframe").on("load",e))),g.last_selected=$("#layout > div.selected")[0],!g.last_selected&&_.content.length&&$.each(["sidebar","list","content"],function(){if(_[this].length)return g.last_selected=_[this][0],_[this].addClass("selected"),!1}),$(window).on("resize",function(){clearTimeout(g.resize_timeout),g.resize_timeout=setTimeout(function(){T()},25)}),g.open_window=rcmail.open_window,rcmail.open_window=xe,rcmail.addEventListener("message",se).addEventListener("menu-open",ce).addEventListener("menu-close",ce).addEventListener("editor-init",J).addEventListener("autocomplete_create",Q).addEventListener("googiespell_create",Q).addEventListener("setquota",ge).addEventListener("enable-command",X).addEventListener("destroy-entity-selector",function(e){de(e.name)}).addEventListener("clonerow",be).addEventListener("init",G),(_.list.length||_.content.length)&&I()&&(n=[],$("[data-fab]").each(function(){var e=$(this),t=e.data("fab-task")||"*",a=e.data("fab-action")||"*";"*"!=t&&t!=rcmail.env.task||"*"!=a&&a!=rcmail.env.action&&("none"!=a||rcmail.env.action)||n.push(C(e,!1,!1,!0))}),n.length)&&$('