const n=n=>null===n,a=n=>void 0===n,o=o=>n(o)||a(o),s=n=>o(n)?void 0:n.constructor,t=n=>s(n)===Object,r=n=>s(n)===Number&&!Number.isNaN(n),e=n=>s(n)===String,c=n=>s(n)===Boolean,u=n=>s(n)===Function,l=n=>Array.isArray(n),i=(n,a)=>Boolean(n&&a&&n instanceof a);function f(n,a,o,s){return n.addEventListener(a,o,s),()=>n.removeEventListener(a,o,s)}const b=n=>n instanceof ShadowRoot?n:n.parentNode?b(n.parentNode):null,d=(n,a,o=0,s=0,t=0,r=0)=>{const e=n.getBoundingClientRect(),c=a.getBoundingClientRect();return e.left+o<c.right+t&&e.right+o>c.left+t&&e.top+s<c.bottom+r&&e.bottom+s>c.top+r},$=(n,a,o,s)=>{const t=(s=1)=>{return t=`:not(${a}) >`.repeat(s),`${n} > ${t} ${o}, `;var t};let r=t(1);for(let n=2;n<s+1;n+=1)r+=t(n);return r.slice(0,-2)};export{n as a,t as b,o as c,e as d,l as e,a as f,u as g,r as h,i,c as j,d as k,f as l,b as m,$ as n}