module.exports=[289288,a=>{"use strict";function b(a,b){if(!b||("win32"===a?!(/^[a-zA-Z]:[\\/]/.test(b)||/^\\\\/.test(b)):!b.startsWith("/")))throw Error("path must be absolute")}let c=["code","code-insiders","cursor","windsurf","subl","zed","idea","webstorm","pycharm","goland","rubymine","phpstorm","clion","rider"],d={code:"vscode","code-insiders":"vscode-insiders",cursor:"cursor",windsurf:"windsurf",zed:"zed"};a.s(["buildEditorCommand",0,function(a,d,e){if(!c.includes(d))throw Error(`Editor command '${d}' is not allowed`);return b(a,e),{command:d,args:[e]}},"buildEditorUrlOpenCommand",0,function(a,e,f){if(!c.includes(e))throw Error(`Editor command '${e}' is not allowed`);b(a,f);let g=d[e];if(!g)throw Error(`Editor '${e}' has no URL scheme`);let h=`${g}://file${"win32"===a?"/"+f.replace(/\\/g,"/"):f}`;return"darwin"===a?{command:"open",args:[h]}:"win32"===a?{command:"rundll32",args:["url.dll,FileProtocolHandler",h]}:{command:"xdg-open",args:[h]}},"buildFileManagerCommand",0,function(a,c){return(b(a,c),"darwin"===a)?{command:"open",args:[c]}:"win32"===a?{command:"explorer",args:[c]}:{command:"xdg-open",args:[c]}}])}];

//# sourceMappingURL=src_lib_open-targets_ts_12a-_~u._.js.map