(()=>{"use strict";var e={921(){}},t={};(function n(o){var s=t[o];if(void 0!==s)return s.exports;var a=t[o]={exports:{}};return e[o](a,a.exports,n),a.exports})(921);!function(e){function t(){const t=document.querySelector("#wpadminbar");if(!t)return;const o=document.querySelector("#wpwrap"),s=document.querySelector("#adminmenu"),a="dismissible-card__close-icon";function r(e){const n=t.querySelectorAll("#wp-admin-bar-blog a");for(let t=0;t<n.length;t++)n[t].setAttribute("aria-expanded",e)}!function(){const e=document.querySelector(".wp-submenu .current > a");if(!e)return;e.focus({preventScroll:!0})}(),r("false");const i=t.querySelector("#wp-admin-bar-blog.my-sites > a");function c(n){if(e(window).width()>782)return n.stopImmediatePropagation(),!0;n.preventDefault(),e("#wp-admin-bar-menu-toggle").off("click.wp-responsive");const s=t.querySelectorAll(".hover"),a=s.length;for(let e=0;e<a;e++)s[e].classList.remove("hover");if(o.classList.toggle("wp-responsive-open"),o.classList.contains("wp-responsive-open")){r("true");const e=document.querySelector("#adminmenu a");e&&e.focus()}else r("false")}if(i&&!document.body.classList.contains("wpcom-admin-interface")&&(e("#wp-admin-bar-blog.my-sites > a").off("click.wp-responsive"),i.removeAttribute("aria-haspopup"),i.addEventListener("click",c),document.addEventListener("click",function(e){const t=!!e.target.closest("#wp-admin-bar-blog > a"),n=document.getElementById("adminmenu").contains(e.target),s=o.classList.contains("wp-responsive-open");!s||t||n||c(e)})),s){const e=s.querySelector("#collapse-button");e&&e.addEventListener("click",function(e){setTimeout(function(){var t;t=e.target.parentNode.getAttribute("aria-expanded"),n("POST",ajaxurl,"application/x-www-form-urlencoded; charset=UTF-8","action=sidebar_state&expanded="+t)},50)}),s.addEventListener("click",function(e){if(e.target.classList.contains(a)||e.target.closest("."+a)){e.preventDefault();const t=document.getElementById("toplevel_page_site-notices");t&&(t.style.display="none");const o=e.target;n("POST",ajaxurl,"application/x-www-form-urlencoded; charset=UTF-8","id="+encodeURIComponent(o.dataset.feature_id)+"&feature_class="+encodeURIComponent(o.dataset.feature_class)+"&action=jitm_dismiss&_ajax_nonce="+jetpackAdminMenu.jitmDismissNonce)}})}}function n(e,t,n,o=null,s=null){const a=new XMLHttpRequest;a.open(e,t,!0),a.setRequestHeader("X-Requested-With","XMLHttpRequest"),n&&a.setRequestHeader("Content-Type",n),a.withCredentials=!0,s&&(a.onreadystatechange=function(){s(a)}),a.send(o)}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",t):t()}(jQuery)})();