const e=require(`../constants/vite.constants.cjs`);var t=class{worker;constructor(e){this.worker=e}postMessage(e){this.worker.postMessage(e)}terminate(){this.worker.terminate()}onMessage(t){e.isNode?this.worker.on(`message`,t):this.worker.onmessage=e=>t(e.data)}onError(t){e.isNode?this.worker.on(`error`,t):this.worker.onerror=t}};exports.WorkerWrapper=t;