import{aL as h,M as o,aJ as O,aI as S,_ as T,aO as b,aP as l}from"./custom-element.js";function n(a,f){return a===f||a?.[l]===f}function x(a={},f,i,c){var d=h.r,w=T;return o(()=>{var s,r;return O(()=>{s=r,r=c?.()||[],S(()=>{a!==i(...r)&&(f(a,...r),s&&n(i(...s),a)&&f(null,...s))})}),()=>{let t=w;for(;t!==d&&t.parent!==null&&t.parent.f&b;)t=t.parent;const p=()=>{r&&n(i(...r),a)&&f(null,...r)},u=t.teardown;t.teardown=()=>{p(),u?.()}}}),a}export{x as b};
//# sourceMappingURL=this.js.map
