let e=require("vue");function t(t,n,r){function i(e){let i=e.target;i.shadowRoot&&e.composed&&(i=e.composedPath()[0]||i);let a=[t[0]?.value,t[1]?.value?.getPopupElement()];n.value&&a.every(e=>e&&!e.contains(i)&&e!==i)&&r(!1)}(0,e.onMounted)(()=>{window.addEventListener(`mousedown`,i)}),(0,e.onBeforeUnmount)(()=>{window.removeEventListener(`mousedown`,i)})}exports.default=t;