(()=>{"use strict";const e=document,t=e.querySelector.bind(e);!function(){let e=0;const n=setInterval(()=>{e++;const i=t('iframe[name="editor-canvas"]'),c=i?.contentDocument?.body;c&&(clearInterval(n),c.setAttribute("id","html")),e>100&&clearInterval(n)},300)}(),e.addEventListener("click",e=>{const t=e?.target;if(t instanceof HTMLElement&&t.matches(".notice-dismiss")){e.preventDefault();const n=t.parentNode,i=n?.getAttribute("id");if(!n?.matches(".notice.is-dismissible")||!i)return;fetch(window.ajaxurl,{method:"POST",credentials:"same-origin",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"},body:"action=dnh_dismiss_notice&id="+i})}})})();