(()=>{"use strict";var e={23:e=>{e.exports=require("util")},154:e=>{e.exports=require("vm")},250:e=>{e.exports=require("dns")},317:e=>{e.exports=require("child_process")},360:function(e,t,r){var n,o=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),u=this&&this.__importStar||(n=function(e){return n=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},n(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=n(e),u=0;u<r.length;u++)"default"!==r[u]&&o(t,e,r[u]);return i(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.CodeExecutorOutputChannel=void 0;const s=u(r(398));class c{static instance;static getInstance(){return c.instance||(this.instance=s.window.createOutputChannel("Cascade JS Code Execution",{log:!0})),this.instance}}t.CodeExecutorOutputChannel=c},398:e=>{e.exports=require("vscode")},434:e=>{e.exports=require("events")},480:e=>{e.exports=require("querystring")},611:e=>{e.exports=require("http")},692:e=>{e.exports=require("https")},857:e=>{e.exports=require("os")},896:e=>{e.exports=require("fs")},927:function(e,t,r){var n,o=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),u=this&&this.__importStar||(n=function(e){return n=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},n(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=n(e),u=0;u<r.length;u++)"default"!==r[u]&&o(t,e,r[u]);return i(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.activate=async function(e){const t=s.commands.registerCommand("windsurf-code-executor.executeCode",async e=>{const t=c.CodeExecutorOutputChannel.getInstance(),r=[],n={...globalThis,toolkit:l,...p,require:e=>{if(p.hasOwnProperty(e))return p[e];throw new Error(`Module ${e} is not allowed in sandbox`)},output:e=>{r.push(e),t.appendLine(e)}},o=a.createContext(n),i=`(async () => { ${e} })();`;try{const e=new a.Script(i);await e.runInContext(o)}catch(e){const t=e?.message??String(e);r.push(`CODE ERROR: ${t}`)}return r.join("\n")});e.subscriptions.push(t)},t.deactivate=function(){};const s=u(r(398)),c=r(360),a=u(r(154)),l={},p={fs:r(896),path:r(928),util:r(23),child_process:r(317),os:r(857),http:r(611),https:r(692),dns:r(250),querystring:r(480),events:r(434),vscode:s}},928:e=>{e.exports=require("path")}},t={},r=function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}(927),n=exports;for(var o in r)n[o]=r[o];r.__esModule&&Object.defineProperty(n,"__esModule",{value:!0})})();
//# sourceMappingURL=https://main.vscode-cdn.net/sourcemaps/94ec85969ebc38d14c35c87a0284fafd84bff116/extensions/windsurf-code-executor/dist/extension.js.map