import{a as e}from"./chunk-BNv3lrIs.js";import{n as t}from"./jsx-runtime-pmtNMKr4.js";import{t as n}from"./setPrototypeOf-Cn_CdjzQ.js";function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,n(e,t)}function i(e){return e&&e.ownerDocument||document}var a=!!(typeof window<`u`&&window.document&&window.document.createElement),o=!1,s=!1;try{var c={get passive(){return o=!0},get once(){return s=o=!0}};a&&(window.addEventListener(`test`,c,c),window.removeEventListener(`test`,c,!0))}catch{}function l(e,t,n,r){if(r&&typeof r!=`boolean`&&!s){var i=r.once,a=r.capture,c=n;!s&&i&&(c=n.__once||function e(r){this.removeEventListener(t,e,a),n.call(this,r)},n.__once=c),e.addEventListener(t,c,o?r:a)}e.addEventListener(t,n,r)}function u(e,t,n,r){var i=r&&typeof r!=`boolean`?r.capture:r;e.removeEventListener(t,n,i),n.__once&&e.removeEventListener(t,n.__once,i)}function d(e,t,n,r){return l(e,t,n,r),function(){u(e,t,n,r)}}var f=e(t()),p=e=>!e||typeof e==`function`?e:t=>{e.current=t};function m(e,t){let n=p(e),r=p(t);return e=>{n&&n(e),r&&r(e)}}function h(e,t){return(0,f.useMemo)(()=>m(e,t),[e,t])}var g=Function.prototype.bind.call(Function.prototype.call,[].slice);function _(e,t){return g(e.querySelectorAll(t))}export{l as a,r as c,u as i,h as n,a as o,d as r,i as s,_ as t};