define("vs/initialize-BBlIwSzx",["exports","./editorWorkerHost-C04MZfrm"],(function(i,n){"use strict";let s=!1;function u(t){if(s)throw new Error("WebWorker already initialized!");s=!0;const r=new n.WebWorkerServer(e=>globalThis.postMessage(e),e=>t(e));return globalThis.onmessage=e=>{r.onmessage(e.data)},r}function a(t){let r;const e=u(c=>{const g=n.EditorWorkerHost.getChannel(c),h={host:new Proxy({},{get(z,o,k){if(o!=="then"){if(typeof o!="string")throw new Error("Not supported");return(...W)=>g.$fhr(o,W)}}}),getMirrorModels:()=>e.requestHandler.getModels()};return r=t(h),new n.EditorWorker(r)});return r}let l=!1;function d(){return l}function f(t){l=!0,self.onmessage=r=>{a(e=>t(e,r.data))}}i.initialize=f,i.isWorkerInitialized=d,i.start=a}));
