import{ar as _}from"./antd-vue-vendor-CDWW6V_M.js";import"./vue-vendor-CxLCUzY4.js";const n=typeof window=="undefined";function t(e){for(const i of e){const r=i.target.__resizeListeners__||[];r.length&&r.forEach(s=>{s()})}}function c(e,i){n||(e.__resizeListeners__||(e.__resizeListeners__=[],e.__ro__=new _(t),e.__ro__.observe(e)),e.__resizeListeners__.push(i))}function d(e,i){!e||!e.__resizeListeners__||(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(i),1),e.__resizeListeners__.length||e.__ro__.disconnect())}function z(){const e=document.createEvent("HTMLEvents");e.initEvent("resize",!0,!0),e.eventType="message",window.dispatchEvent(e)}export{c as addResizeListener,d as removeResizeListener,z as triggerWindowResize};
