"use strict";var __getOwnPropNames=Object.getOwnPropertyNames,__commonJS=(R,E)=>function(){return E||(0,R[__getOwnPropNames(R)[0]])((E={exports:{}}).exports,E),E.exports},require_performance=__commonJS({"out-build/vs/base/common/performance.js"(R,E){"use strict";(function(){function b(o){const p=[];typeof o=="number"&&p.push("code/timeOrigin",o);function m(h){p.push(h,Date.now())}function _(){const h=[];for(let i=0;i
=0?!0:typeof process<"u"?process.platform==="win32":!1}}o.Environment=p})(y||(y={}));var y;(function(o){class p{constructor(i,c,f){this.type=i,this.detail=c,this.timestamp=f}}o.LoaderEvent=p;class m{constructor(i){this._events=[new p(1,"",i)]}record(i,c){this._events.push(new p(i,c,o.Utilities.getHighPerformanceTimestamp()))}getEvents(){return this._events}}o.LoaderEventRecorder=m;class _{record(i,c){}getEvents(){return[]}}_.INSTANCE=new _,o.NullLoaderEventRecorder=_})(y||(y={}));var y;(function(o){class p{static fileUriToFilePath(_,h){if(h=decodeURI(h).replace(/%23/g,"#"),_){if(/^file:\/\/\//.test(h))return h.substr(8);if(/^file:\/\//.test(h))return h.substr(5)}else if(/^file:\/\//.test(h))return h.substr(7);return h}static startsWith(_,h){return _.length>=h.length&&_.substr(0,h.length)===h}static endsWith(_,h){return _.length>=h.length&&_.substr(_.length-h.length)===h}static containsQueryString(_){return/^[^\#]*\?/gi.test(_)}static isAbsolutePath(_){return/^((http:\/\/)|(https:\/\/)|(file:\/\/)|(\/))/.test(_)}static forEachProperty(_,h){if(_){let i;for(i in _)_.hasOwnProperty(i)&&h(i,_[i])}}static isEmpty(_){let h=!0;return p.forEachProperty(_,()=>{h=!1}),h}static recursiveClone(_){if(!_||typeof _!="object"||_ instanceof RegExp||!Array.isArray(_)&&Object.getPrototypeOf(_)!==Object.prototype)return _;let h=Array.isArray(_)?[]:{};return p.forEachProperty(_,(i,c)=>{c&&typeof c=="object"?h[i]=p.recursiveClone(c):h[i]=c}),h}static generateAnonymousModule(){return"===anonymous"+p.NEXT_ANONYMOUS_ID+++"==="}static isAnonymousModule(_){return p.startsWith(_,"===anonymous")}static getHighPerformanceTimestamp(){return this.PERFORMANCE_NOW_PROBED||(this.PERFORMANCE_NOW_PROBED=!0,this.HAS_PERFORMANCE_NOW=o.global.performance&&typeof o.global.performance.now=="function"),this.HAS_PERFORMANCE_NOW?o.global.performance.now():Date.now()}}p.NEXT_ANONYMOUS_ID=1,p.PERFORMANCE_NOW_PROBED=!1,p.HAS_PERFORMANCE_NOW=!1,o.Utilities=p})(y||(y={}));var y;(function(o){function p(h){if(h instanceof Error)return h;const i=new Error(h.message||String(h)||"Unknown Error");return h.stack&&(i.stack=h.stack),i}o.ensureError=p;class m{static validateConfigurationOptions(i){function c(f){if(f.phase==="loading"){console.error('Loading "'+f.moduleId+'" failed'),console.error(f),console.error("Here are the modules that depend on it:"),console.error(f.neededBy);return}if(f.phase==="factory"){console.error('The factory function of "'+f.moduleId+'" has thrown an exception'),console.error(f),console.error("Here are the modules that depend on it:"),console.error(f.neededBy);return}}if(i=i||{},typeof i.baseUrl!="string"&&(i.baseUrl=""),typeof i.isBuild!="boolean"&&(i.isBuild=!1),typeof i.paths!="object"&&(i.paths={}),typeof i.config!="object"&&(i.config={}),typeof i.catchError>"u"&&(i.catchError=!1),typeof i.recordStats>"u"&&(i.recordStats=!1),typeof i.urlArgs!="string"&&(i.urlArgs=""),typeof i.onError!="function"&&(i.onError=c),Array.isArray(i.ignoreDuplicateModules)||(i.ignoreDuplicateModules=[]),i.baseUrl.length>0&&(o.Utilities.endsWith(i.baseUrl,"/")||(i.baseUrl+="/")),typeof i.cspNonce!="string"&&(i.cspNonce=""),typeof i.preferScriptTags>"u"&&(i.preferScriptTags=!1),i.nodeCachedData&&typeof i.nodeCachedData=="object"&&(typeof i.nodeCachedData.seed!="string"&&(i.nodeCachedData.seed="seed"),(typeof i.nodeCachedData.writeDelay!="number"||i.nodeCachedData.writeDelay<0)&&(i.nodeCachedData.writeDelay=1e3*7),!i.nodeCachedData.path||typeof i.nodeCachedData.path!="string")){const f=p(new Error("INVALID cached data configuration, 'path' MUST be set"));f.phase="configuration",i.onError(f),i.nodeCachedData=void 0}return i}static mergeConfigurationOptions(i=null,c=null){let f=o.Utilities.recursiveClone(c||{});return o.Utilities.forEachProperty(i,(t,e)=>{t==="ignoreDuplicateModules"&&typeof f.ignoreDuplicateModules<"u"?f.ignoreDuplicateModules=f.ignoreDuplicateModules.concat(e):t==="paths"&&typeof f.paths<"u"?o.Utilities.forEachProperty(e,(r,n)=>f.paths[r]=n):t==="config"&&typeof f.config<"u"?o.Utilities.forEachProperty(e,(r,n)=>f.config[r]=n):f[t]=o.Utilities.recursiveClone(e)}),m.validateConfigurationOptions(f)}}o.ConfigurationOptionsUtil=m;class _{constructor(i,c){if(this._env=i,this.options=m.mergeConfigurationOptions(c),this._createIgnoreDuplicateModulesMap(),this._createSortedPathsRules(),this.options.baseUrl===""&&this.options.nodeRequire&&this.options.nodeRequire.main&&this.options.nodeRequire.main.filename&&this._env.isNode){let f=this.options.nodeRequire.main.filename,t=Math.max(f.lastIndexOf("/"),f.lastIndexOf("\\"));this.options.baseUrl=f.substring(0,t+1)}}_createIgnoreDuplicateModulesMap(){this.ignoreDuplicateModulesMap={};for(let i=0;i{Array.isArray(c)?this.sortedPathsRules.push({from:i,to:c}):this.sortedPathsRules.push({from:i,to:[c]})}),this.sortedPathsRules.sort((i,c)=>c.from.length-i.from.length)}cloneAndMerge(i){return new _(this._env,m.mergeConfigurationOptions(i,this.options))}getOptionsLiteral(){return this.options}_applyPaths(i){let c;for(let f=0,t=this.sortedPathsRules.length;fthis.triggerCallback(r),u=>this.triggerErrorback(r,u))}triggerCallback(e){let r=this._callbackMap[e];delete this._callbackMap[e];for(let n=0;n{e.removeEventListener("load",l),e.removeEventListener("error",u)},l=a=>{s(),r()},u=a=>{s(),n(a)};e.addEventListener("load",l),e.addEventListener("error",u)}load(e,r,n,s){if(/^node\|/.test(r)){let l=e.getConfig().getOptionsLiteral(),u=c(e.getRecorder(),l.nodeRequire||o.global.nodeRequire),a=r.split("|"),d=null;try{d=u(a[1])}catch(g){s(g);return}e.enqueueDefineAnonymousModule([],()=>d),n()}else{let l=document.createElement("script");l.setAttribute("async","async"),l.setAttribute("type","text/javascript"),this.attachListeners(l,n,s);const{trustedTypesPolicy:u}=e.getConfig().getOptionsLiteral();u&&(r=u.createScriptURL(r)),l.setAttribute("src",r);const{cspNonce:a}=e.getConfig().getOptionsLiteral();a&&l.setAttribute("nonce",a),document.getElementsByTagName("head")[0].appendChild(l)}}}function _(t){const{trustedTypesPolicy:e}=t.getConfig().getOptionsLiteral();try{return(e?self.eval(e.createScript("","true")):new Function("true")).call(self),!0}catch{return!1}}class h{constructor(){this._cachedCanUseEval=null}_canUseEval(e){return this._cachedCanUseEval===null&&(this._cachedCanUseEval=_(e)),this._cachedCanUseEval}load(e,r,n,s){if(/^node\|/.test(r)){const l=e.getConfig().getOptionsLiteral(),u=c(e.getRecorder(),l.nodeRequire||o.global.nodeRequire),a=r.split("|");let d=null;try{d=u(a[1])}catch(g){s(g);return}e.enqueueDefineAnonymousModule([],function(){return d}),n()}else{const{trustedTypesPolicy:l}=e.getConfig().getOptionsLiteral();if(!(/^((http:)|(https:)|(file:))/.test(r)&&r.substring(0,self.origin.length)!==self.origin)&&this._canUseEval(e)){fetch(r).then(a=>{if(a.status!==200)throw new Error(a.statusText);return a.text()}).then(a=>{a=`${a}
//# sourceURL=${r}`,(l?self.eval(l.createScript("",a)):new Function(a)).call(self),n()}).then(void 0,s);return}try{l&&(r=l.createScriptURL(r)),importScripts(r),n()}catch(a){s(a)}}}}class i{constructor(e){this._env=e,this._didInitialize=!1,this._didPatchNodeRequire=!1}_init(e){this._didInitialize||(this._didInitialize=!0,this._fs=e("fs"),this._vm=e("vm"),this._path=e("path"),this._crypto=e("crypto"))}_initNodeRequire(e,r){const{nodeCachedData:n}=r.getConfig().getOptionsLiteral();if(!n||this._didPatchNodeRequire)return;this._didPatchNodeRequire=!0;const s=this,l=e("module");function u(a){const d=a.constructor;let g=function(P){try{return a.require(P)}finally{}};return g.resolve=function(P,I){return d._resolveFilename(P,a,!1,I)},g.resolve.paths=function(P){return d._resolveLookupPaths(P,a)},g.main=process.mainModule,g.extensions=d._extensions,g.cache=d._cache,g}l.prototype._compile=function(a,d){const g=l.wrap(a.replace(/^#!.*/,"")),v=r.getRecorder(),P=s._getCachedDataPath(n,d),I={filename:d};let D;try{const N=s._fs.readFileSync(P);D=N.slice(0,16),I.cachedData=N.slice(16),v.record(60,P)}catch{v.record(61,P)}const w=new s._vm.Script(g,I),U=w.runInThisContext(I),q=s._path.dirname(d),S=u(this),T=[this.exports,S,this,d,q,process,C,Buffer],k=U.apply(this.exports,T);return s._handleCachedData(w,g,P,!I.cachedData,r),s._verifyCachedData(w,g,P,D,r),k}}load(e,r,n,s){const l=e.getConfig().getOptionsLiteral(),u=c(e.getRecorder(),l.nodeRequire||o.global.nodeRequire),a=l.nodeInstrumenter||function(g){return g};this._init(u),this._initNodeRequire(u,e);let d=e.getRecorder();if(/^node\|/.test(r)){let g=r.split("|"),v=null;try{v=u(g[1])}catch(P){s(P);return}e.enqueueDefineAnonymousModule([],()=>v),n()}else{r=o.Utilities.fileUriToFilePath(this._env.isWindows,r);const g=this._path.normalize(r),v=this._getElectronRendererScriptPathOrUri(g),P=!!l.nodeCachedData,I=P?this._getCachedDataPath(l.nodeCachedData,r):void 0;this._readSourceAndCachedData(g,I,d,(D,w,U,q)=>{if(D){s(D);return}let S;w.charCodeAt(0)===i._BOM?S=i._PREFIX+w.substring(1)+i._SUFFIX:S=i._PREFIX+w+i._SUFFIX,S=a(S,g);const T={filename:v,cachedData:U},k=this._createAndEvalScript(e,S,T,n,s);this._handleCachedData(k,S,I,P&&!U,e),this._verifyCachedData(k,S,I,q,e)})}}_createAndEvalScript(e,r,n,s,l){const u=e.getRecorder();u.record(31,n.filename);const a=new this._vm.Script(r,n),d=a.runInThisContext(n),g=e.getGlobalAMDDefineFunc();let v=!1;const P=function(){return v=!0,g.apply(null,arguments)};return P.amd=g.amd,d.call(o.global,e.getGlobalAMDRequireFunc(),P,n.filename,this._path.dirname(n.filename)),u.record(32,n.filename),v?s():l(new Error(`Didn't receive define call in ${n.filename}!`)),a}_getElectronRendererScriptPathOrUri(e){if(!this._env.isElectronRenderer)return e;let r=e.match(/^([a-z])\:(.*)/i);return r?`file:///${(r[1].toUpperCase()+":"+r[2]).replace(/\\/g,"/")}`:`file://${e}`}_getCachedDataPath(e,r){const n=this._crypto.createHash("md5").update(r,"utf8").update(e.seed,"utf8").update(process.arch,"").digest("hex"),s=this._path.basename(r).replace(/\.js$/,"");return this._path.join(e.path,`${s}-${n}.code`)}_handleCachedData(e,r,n,s,l){e.cachedDataRejected?this._fs.unlink(n,u=>{l.getRecorder().record(62,n),this._createAndWriteCachedData(e,r,n,l),u&&l.getConfig().onError(u)}):s&&this._createAndWriteCachedData(e,r,n,l)}_createAndWriteCachedData(e,r,n,s){let l=Math.ceil(s.getConfig().getOptionsLiteral().nodeCachedData.writeDelay*(1+Math.random())),u=-1,a=0,d;const g=()=>{setTimeout(()=>{d||(d=this._crypto.createHash("md5").update(r,"utf8").digest());const v=e.createCachedData();if(!(v.length===0||v.length===u||a>=5)){if(v.length{P&&s.getConfig().onError(P),s.getRecorder().record(63,n),g()})}},l*Math.pow(4,a++))};g()}_readSourceAndCachedData(e,r,n,s){if(!r)this._fs.readFile(e,{encoding:"utf8"},s);else{let l,u,a,d=2;const g=v=>{v?s(v):--d===0&&s(void 0,l,u,a)};this._fs.readFile(e,{encoding:"utf8"},(v,P)=>{l=P,g(v)}),this._fs.readFile(r,(v,P)=>{!v&&P&&P.length>0?(a=P.slice(0,16),u=P.slice(16),n.record(60,r)):n.record(61,r),g()})}}_verifyCachedData(e,r,n,s,l){s&&(e.cachedDataRejected||setTimeout(()=>{const u=this._crypto.createHash("md5").update(r,"utf8").digest();s.equals(u)||(l.getConfig().onError(new Error(`FAILED TO VERIFY CACHED DATA, deleting stale '${n}' now, but a RESTART IS REQUIRED`)),this._fs.unlink(n,a=>{a&&l.getConfig().onError(a)}))},Math.ceil(5e3*(1+Math.random()))))}}i._BOM=65279,i._PREFIX="(function (require, define, __filename, __dirname) { ",i._SUFFIX=`
});`;function c(t,e){if(e.__$__isRecorded)return e;const r=function(s){t.record(33,s);try{return e(s)}finally{t.record(34,s)}};return r.__$__isRecorded=!0,r}o.ensureRecordedNodeRequire=c;function f(t){return new p(t)}o.createScriptLoader=f})(y||(y={}));var y;(function(o){class p{constructor(t){let e=t.lastIndexOf("/");e!==-1?this.fromModulePath=t.substr(0,e+1):this.fromModulePath=""}static _normalizeModuleId(t){let e=t,r;for(r=/\/\.\//;r.test(e);)e=e.replace(r,"/");for(e=e.replace(/^\.\//g,""),r=/\/(([^\/])|([^\/][^\/\.])|([^\/\.][^\/])|([^\/][^\/][^\/]+))\/\.\.\//;r.test(e);)e=e.replace(r,"/");return e=e.replace(/^(([^\/])|([^\/][^\/\.])|([^\/\.][^\/])|([^\/][^\/][^\/]+))\/\.\.\//,""),e}resolveModule(t){let e=t;return o.Utilities.isAbsolutePath(e)||(o.Utilities.startsWith(e,"./")||o.Utilities.startsWith(e,"../"))&&(e=p._normalizeModuleId(this.fromModulePath+e)),e}}p.ROOT=new p(""),o.ModuleIdResolver=p;class m{constructor(t,e,r,n,s,l){this.id=t,this.strId=e,this.dependencies=r,this._callback=n,this._errorback=s,this.moduleIdResolver=l,this.exports={},this.error=null,this.exportsPassedIn=!1,this.unresolvedDependenciesCount=this.dependencies.length,this._isComplete=!1}static _safeInvokeFunction(t,e){try{return{returnedValue:t.apply(o.global,e),producedError:null}}catch(r){return{returnedValue:null,producedError:r}}}static _invokeFactory(t,e,r,n){return t.shouldInvokeFactory(e)?t.shouldCatchError()?this._safeInvokeFunction(r,n):{returnedValue:r.apply(o.global,n),producedError:null}:{returnedValue:null,producedError:null}}complete(t,e,r,n){this._isComplete=!0;let s=null;if(this._callback)if(typeof this._callback=="function"){t.record(21,this.strId);let l=m._invokeFactory(e,this.strId,this._callback,r);s=l.producedError,t.record(22,this.strId),!s&&typeof l.returnedValue<"u"&&(!this.exportsPassedIn||o.Utilities.isEmpty(this.exports))&&(this.exports=l.returnedValue)}else this.exports=this._callback;if(s){let l=o.ensureError(s);l.phase="factory",l.moduleId=this.strId,l.neededBy=n(this.id),this.error=l,e.onError(l)}this.dependencies=null,this._callback=null,this._errorback=null,this.moduleIdResolver=null}onDependencyError(t){return this._isComplete=!0,this.error=t,this._errorback?(this._errorback(t),!0):!1}isComplete(){return this._isComplete}}o.Module=m;class _{constructor(){this._nextId=0,this._strModuleIdToIntModuleId=new Map,this._intModuleIdToStrModuleId=[],this.getModuleId("exports"),this.getModuleId("module"),this.getModuleId("require")}getMaxModuleId(){return this._nextId}getModuleId(t){let e=this._strModuleIdToIntModuleId.get(t);return typeof e>"u"&&(e=this._nextId++,this._strModuleIdToIntModuleId.set(t,e),this._intModuleIdToStrModuleId[e]=t),e}getStrModuleId(t){return this._intModuleIdToStrModuleId[t]}}class h{constructor(t){this.id=t}}h.EXPORTS=new h(0),h.MODULE=new h(1),h.REQUIRE=new h(2),o.RegularDependency=h;class i{constructor(t,e,r){this.id=t,this.pluginId=e,this.pluginParam=r}}o.PluginDependency=i;class c{constructor(t,e,r,n,s=0){this._env=t,this._scriptLoader=e,this._loaderAvailableTimestamp=s,this._defineFunc=r,this._requireFunc=n,this._moduleIdProvider=new _,this._config=new o.Configuration(this._env),this._hasDependencyCycle=!1,this._modules2=[],this._knownModules2=[],this._inverseDependencies2=[],this._inversePluginDependencies2=new Map,this._currentAnonymousDefineCall=null,this._recorder=null,this._buildInfoPath=[],this._buildInfoDefineStack=[],this._buildInfoDependencies=[],this._requireFunc.moduleManager=this}reset(){return new c(this._env,this._scriptLoader,this._defineFunc,this._requireFunc,this._loaderAvailableTimestamp)}getGlobalAMDDefineFunc(){return this._defineFunc}getGlobalAMDRequireFunc(){return this._requireFunc}static _findRelevantLocationInStack(t,e){let r=l=>l.replace(/\\/g,"/"),n=r(t),s=e.split(/\n/);for(let l=0;lthis._moduleIdProvider.getStrModuleId(d.id))),this._resolve(a)}_normalizeDependency(t,e){if(t==="exports")return h.EXPORTS;if(t==="module")return h.MODULE;if(t==="require")return h.REQUIRE;let r=t.indexOf("!");if(r>=0){let n=e.resolveModule(t.substr(0,r)),s=e.resolveModule(t.substr(r+1)),l=this._moduleIdProvider.getModuleId(n+"!"+s),u=this._moduleIdProvider.getModuleId(n);return new i(l,u,s)}return new h(this._moduleIdProvider.getModuleId(e.resolveModule(t)))}_normalizeDependencies(t,e){let r=[],n=0;for(let s=0,l=t.length;sthis._moduleIdProvider.getStrModuleId(l));const s=o.ensureError(e);return s.phase="loading",s.moduleId=r,s.neededBy=n,s}_onLoadError(t,e){const r=this._createLoadError(t,e);this._modules2[t]||(this._modules2[t]=new m(t,this._moduleIdProvider.getStrModuleId(t),[],()=>{},null,null));let n=[];for(let u=0,a=this._moduleIdProvider.getMaxModuleId();u0;){let u=l.shift(),a=this._modules2[u];a&&(s=a.onDependencyError(r)||s);let d=this._inverseDependencies2[u];if(d)for(let g=0,v=d.length;g0;){let u=s.shift().dependencies;if(u)for(let a=0,d=u.length;athis._relativeRequire(t,r,n,s);return e.toUrl=r=>this._config.requireToUrl(t.resolveModule(r)),e.getStats=()=>this.getLoaderEvents(),e.hasDependencyCycle=()=>this._hasDependencyCycle,e.config=(r,n=!1)=>{this.configure(r,n)},e.__$__nodeRequire=o.global.nodeRequire,e}_loadModule(t){if(this._modules2[t]||this._knownModules2[t])return;this._knownModules2[t]=!0;let e=this._moduleIdProvider.getStrModuleId(t),r=this._config.moduleIdToPaths(e),n=/^@[^\/]+\/[^\/]+$/;this._env.isNode&&(e.indexOf("/")===-1||n.test(e))&&r.push("node|"+e);let s=-1,l=u=>{if(s++,s>=r.length)this._onLoadError(t,u);else{let a=r[s],d=this.getRecorder();if(this._config.isBuild()&&a==="empty:"){this._buildInfoPath[t]=a,this.defineModule(this._moduleIdProvider.getStrModuleId(t),[],null,null,null),this._onLoad(t);return}d.record(10,a),this._scriptLoader.load(this,a,()=>{this._config.isBuild()&&(this._buildInfoPath[t]=a),d.record(11,a),this._onLoad(t)},g=>{d.record(12,a),l(g)})}};l(null)}_loadPluginDependency(t,e){if(this._modules2[e.id]||this._knownModules2[e.id])return;this._knownModules2[e.id]=!0;let r=n=>{this.defineModule(this._moduleIdProvider.getStrModuleId(e.id),[],n,null,null)};r.error=n=>{this._config.onError(this._createLoadError(e.id,n))},t.load(e.pluginParam,this._createRequire(p.ROOT),r,this._config.getOptionsLiteral())}_resolve(t){let e=t.dependencies;if(e)for(let r=0,n=e.length;rthis._moduleIdProvider.getStrModuleId(a)).join(` =>
`)),t.unresolvedDependenciesCount--;continue}if(this._inverseDependencies2[s.id]=this._inverseDependencies2[s.id]||[],this._inverseDependencies2[s.id].push(t.id),s instanceof i){let u=this._modules2[s.pluginId];if(u&&u.isComplete()){this._loadPluginDependency(u.exports,s);continue}let a=this._inversePluginDependencies2.get(s.pluginId);a||(a=[],this._inversePluginDependencies2.set(s.pluginId,a)),a.push(s),this._loadModule(s.pluginId);continue}this._loadModule(s.id)}t.unresolvedDependenciesCount===0&&this._onModuleComplete(t)}_onModuleComplete(t){let e=this.getRecorder();if(t.isComplete())return;let r=t.dependencies,n=[];if(r)for(let a=0,d=r.length;athis._config.getConfigForModule(t.strId)};continue}if(g===h.REQUIRE){n[a]=this._createRequire(t.moduleIdResolver);continue}let v=this._modules2[g.id];if(v){n[a]=v.exports;continue}n[a]=null}const s=a=>(this._inverseDependencies2[a]||[]).map(d=>this._moduleIdProvider.getStrModuleId(d));t.complete(e,this._config,n,s);let l=this._inverseDependencies2[t.id];if(this._inverseDependencies2[t.id]=null,l)for(let a=0,d=l.length;a"u"&&c())})(y||(y={})),O("vs/css",["require","exports"],function(o,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.load=m;function m(f,t,e,r){if(r=r||{},(r["vs/css"]||{}).disabled){e({});return}const s=t.toUrl(f+".css");_(f,s,()=>{e({})},l=>{typeof e.error=="function"&&e.error("Could not find "+s+".")})}function _(f,t,e,r){if(h(f,t)){e();return}i(f,t,e,r)}function h(f,t){const e=window.document.getElementsByTagName("link");for(let r=0,n=e.length;r{t.removeEventListener("load",s),t.removeEventListener("error",l)},s=u=>{n(),e()},l=u=>{n(),r(u)};t.addEventListener("load",s),t.addEventListener("error",l)}}),O("vs/nls",["require","exports"],function(o,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.localize=r,p.localize2=n,p.getConfiguredDefaultLocale=s,p.setPseudoTranslation=l,p.create=u,p.load=a;let m=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;const _="i-default";function h(d,g){let v;return g.length===0?v=d:v=d.replace(/\{(\d+)\}/g,(P,I)=>{const D=I[0],w=g[D];let U=P;return typeof w=="string"?U=w:(typeof w=="number"||typeof w=="boolean"||w===void 0||w===null)&&(U=String(w)),U}),m&&(v="\uFF3B"+v.replace(/[aouei]/g,"$&$&")+"\uFF3D"),v}function i(d,g){let v=d[g];return v||(v=d["*"],v)?v:null}function c(d){return d.charAt(d.length-1)==="/"?d:d+"/"}async function f(d,g,v){const P=c(d)+c(g)+"vscode/"+c(v),I=await fetch(P);if(I.ok)return await I.json();throw new Error(`${I.status} - ${I.statusText}`)}function t(d){return function(g,v){const P=Array.prototype.slice.call(arguments,2);return h(d[g],P)}}function e(d){return(g,v,...P)=>({value:h(d[g],P),original:h(v,P)})}function r(d,g,...v){return h(g,v)}function n(d,g,...v){const P=h(g,v);return{value:P,original:P}}function s(d){}function l(d){m=d}function u(d,g){return{localize:t(g[d]),localize2:e(g[d]),getConfiguredDefaultLocale:g.getConfiguredDefaultLocale??(v=>{})}}function a(d,g,v,P){const I=P["vs/nls"]??{};if(!d||d.length===0)return v({localize:r,localize2:n,getConfiguredDefaultLocale:()=>I.availableLanguages?.["*"]});const D=I.availableLanguages?i(I.availableLanguages,d):null,w=D===null||D===_;let U=".nls";w||(U=U+"."+D);const q=S=>{Array.isArray(S)?(S.localize=t(S),S.localize2=e(S)):(S.localize=t(S[d]),S.localize2=e(S[d])),S.getConfiguredDefaultLocale=()=>I.availableLanguages?.["*"],v(S)};typeof I.loadBundle=="function"?I.loadBundle(d,D,(S,T)=>{S?g([d+".nls"],q):q(T)}):I.translationServiceUrl&&!w?(async()=>{try{const S=await f(I.translationServiceUrl,D,d);return q(S)}catch(S){if(!D.includes("-"))return console.error(S),g([d+".nls"],q);try{const T=D.split("-")[0],k=await f(I.translationServiceUrl,T,d);return I.availableLanguages??={},I.availableLanguages["*"]=T,q(k)}catch(T){return console.error(T),g([d+".nls"],q)}}})():g([d+U],q,S=>{if(U===".nls"){console.error("Failed trying to load default language strings",S);return}console.error(`Failed to load message bundle for language ${D}. Falling back to the default language:`,S),g([d+".nls"],q)})}})}}),require_bootstrap=__commonJS({"out-build/bootstrap.js"(R,E){"use strict";(function(b,C){typeof R=="object"?E.exports=C():b.MonacoBootstrap=C()})(R,function(){const b=typeof require=="function"?require("module"):void 0,C=typeof require=="function"?require("path"):void 0,O=typeof require=="function"?require("fs"):void 0,y=typeof require=="function"?require("util"):void 0;if(Error.stackTraceLimit=100,typeof process<"u"&&!process.env.VSCODE_HANDLES_SIGPIPE){let t=!1;process.on("SIGPIPE",()=>{t||(t=!0,console.error(new Error("Unexpected SIGPIPE")))})}function o(){if(!C||!b||typeof process>"u"){console.warn("enableASARSupport() is only available in node.js environments");return}const t=C.join(__dirname,"../node_modules"),e=`${t}.asar`,r=b._resolveLookupPaths;b._resolveLookupPaths=function(n,s){const l=r(n,s);if(Array.isArray(l)){for(let u=0,a=l.length;u0&&r.charAt(0)!=="/"&&(r=`/${r}`);let n;return e.isWindows&&r.startsWith("//")?n=encodeURI(`${e.scheme||"file"}:${r}`):n=encodeURI(`${e.scheme||"file"}://${e.fallbackAuthority||""}${r}`),n.replace(/#/g,"%23")}function m(){const t=h();let e={availableLanguages:{}};if(t&&t.env.VSCODE_NLS_CONFIG)try{e=JSON.parse(t.env.VSCODE_NLS_CONFIG)}catch{}if(e._resolvedLanguagePackCoreLocation){const r=Object.create(null);e.loadBundle=function(n,s,l){const u=r[n];if(u){l(void 0,u);return}c(e._resolvedLanguagePackCoreLocation,`${n.replace(/\//g,"!")}.nls.json`).then(function(a){const d=JSON.parse(a);r[n]=d,l(void 0,d)}).catch(a=>{try{e._corruptedFile&&f(e._corruptedFile,"corrupted").catch(function(d){console.error(d)})}finally{l(a,void 0)}})}}return e}function _(){return(typeof self=="object"?self:typeof global=="object"?global:{}).vscode}function h(){const t=_();if(t)return t.process;if(typeof process<"u")return process}function i(){const t=_();if(t)return t.ipcRenderer}async function c(...t){const e=i();if(e)return e.invoke("vscode:readNlsFile",...t);if(O&&C&&y)return(await y.promisify(O.readFile)(C.join(...t))).toString();throw new Error("Unsupported operation (read NLS files)")}function f(t,e){const r=i();if(r)return r.invoke("vscode:writeNlsFile",t,e);if(O&&y)return y.promisify(O.writeFile)(t,e);throw new Error("Unsupported operation (write NLS files)")}return{enableASARSupport:o,setupNLS:m,fileUriFromPath:p}})}}),require_bootstrap_amd=__commonJS({"out-build/bootstrap-amd.js"(R){"use strict";var E=require;if(globalThis._VSCODE_NODE_MODULES=new Proxy(Object.create(null),{get:(o,p)=>E(String(p))}),globalThis._VSCODE_PRODUCT_JSON=require("../product.json"),process.env.VSCODE_DEV)try{const o=require("../product.overrides.json");globalThis._VSCODE_PRODUCT_JSON=Object.assign(globalThis._VSCODE_PRODUCT_JSON,o)}catch{}globalThis._VSCODE_PACKAGE_JSON=require("../package.json");var b=require_loader(),C=require_bootstrap(),O=require_performance(),y=C.setupNLS();b.config({baseUrl:C.fileUriFromPath(__dirname,{isWindows:process.platform==="win32"}),catchError:!0,nodeRequire:E,"vs/nls":y,amdModulesPattern:/(^vs\/)|(^external\/)|(^proto\/)/,recordStats:!0}),(process.env.ELECTRON_RUN_AS_NODE||process.versions.electron)&&b.define("fs",["original-fs"],function(o){return o}),y&&y.pseudo&&b(["vs/nls"],function(o){o.setPseudoTranslation(!!y.pseudo)}),R.load=function(o,p,m){o&&(process.env.VSCODE_CODE_CACHE_PATH&&b.config({nodeCachedData:{path:process.env.VSCODE_CODE_CACHE_PATH,seed:o}}),p=p||function(){},m=m||function(_){console.error(_)},O.mark("code/fork/willLoadCode"),b([o],p,m))}}}),perf=require_performance(),performance2=require("perf_hooks").performance,product=require("../product.json"),readline=require("readline"),http=require("http");perf.mark("code/server/start"),global.vscodeServerStartTime=performance2.now();async function start(){const E=require("minimist")(process.argv.slice(2),{boolean:["start-server","list-extensions","print-ip-address","help","version","accept-server-license-terms","update-extensions"],string:["install-extension","install-builtin-extension","uninstall-extension","locate-extension","socket-path","host","port","compatibility"],alias:{help:"h",version:"v"}});["host","port","accept-server-license-terms"].forEach(r=>{if(!E[r]){const n=process.env[`VSCODE_SERVER_${r.toUpperCase().replace("-","_")}`];n&&(E[r]=n)}});const b=["list-extensions","locate-extension"],C=["install-extension","install-builtin-extension","uninstall-extension","update-extensions"];if(E.help||E.version||b.some(r=>!!E[r])||C.some(r=>!!E[r])&&!E["start-server"]){loadCode().then(r=>{r.spawnCli()});return}let y=null,o=null;const p=()=>(o||(o=loadCode().then(async r=>{const n=await r.createServer(c);return y=n,n})),o),m=require("http"),_=require("os");if(Array.isArray(product.serverLicense)&&product.serverLicense.length&&(console.log(product.serverLicense.join(`
`)),product.serverLicensePrompt&&E["accept-server-license-terms"]!==!0)){hasStdinWithoutTty()&&(console.log("To accept the license terms, start the server with --accept-server-license-terms"),process.exit(1));try{await prompt(product.serverLicensePrompt)||process.exit(1)}catch(r){console.log(r),process.exit(1)}}let h=!0,i=!0,c=null;const f=m.createServer(async(r,n)=>(h&&(h=!1,perf.mark("code/server/firstRequest")),(await p()).handleRequest(r,n)));f.on("upgrade",async(r,n)=>(i&&(i=!1,perf.mark("code/server/firstWebSocket")),(await p()).handleUpgrade(r,n))),f.on("error",async r=>(await p()).handleServerError(r));const t=sanitizeStringArg(E.host)||(E.compatibility!=="1.63"?"localhost":void 0),e=E["socket-path"]?{path:sanitizeStringArg(E["socket-path"])}:{host:t,port:await parsePort(t,sanitizeStringArg(E.port))};f.listen(e,async()=>{let r=Array.isArray(product.serverGreeting)&&product.serverGreeting.length?`
${product.serverGreeting.join(`
`)}
`:"";if(typeof e.port=="number"&&E["print-ip-address"]){const n=_.networkInterfaces();Object.keys(n).forEach(function(s){n[s]?.forEach(function(l){!l.internal&&l.family==="IPv4"&&(r+=`IP Address: ${l.address}
`)})})}if(c=f.address(),c===null)throw new Error("Unexpected server address");r+=`Server bound to ${typeof c=="string"?c:`${c.address}:${c.port} (${c.family})`}
`,r+=`Extension host agent listening on ${typeof c=="string"?c:c.port}
`,console.log(r),perf.mark("code/server/started"),global.vscodeServerListenTime=performance2.now(),await p()}),process.on("exit",()=>{f.close(),y&&y.dispose()})}function sanitizeStringArg(R){return Array.isArray(R)&&(R=R.pop()),typeof R=="string"?R:void 0}async function parsePort(R,E){if(E){let b;if(E.match(/^\d+$/))return parseInt(E,10);if(b=parseRange(E)){const C=await findFreePort(R,b.start,b.end);if(C!==void 0)return C;console.warn(`--port: Could not find free port in range: ${b.start} - ${b.end} (inclusive).`),process.exit(1)}else console.warn(`--port "${E}" is not a valid number or range. Ranges must be in the form 'from-to' with 'from' an integer larger than 0 and not larger than 'end'.`),process.exit(1)}return 8e3}function parseRange(R){const E=R.match(/^(\d+)-(\d+)$/);if(E){const b=parseInt(E[1],10),C=parseInt(E[2],10);if(b>0&&b<=C&&C<=65535)return{start:b,end:C}}}async function findFreePort(R,E,b){const C=O=>new Promise(y=>{const o=http.createServer();o.listen(O,R,()=>{o.close(),y(!0)}).on("error",()=>{y(!1)})});for(let O=E;O<=b;O++)if(await C(O))return O}function loadCode(){return new Promise((R,E)=>{const b=require("path");delete process.env.ELECTRON_RUN_AS_NODE,process.env.VSCODE_HANDLES_SIGPIPE="true",process.env.VSCODE_DEV?(process.env.VSCODE_INJECT_NODE_MODULE_LOOKUP_PATH=process.env.VSCODE_INJECT_NODE_MODULE_LOOKUP_PATH||b.join(__dirname,"..","remote","node_modules"),require_bootstrap_node().injectNodeModuleLookupPath(process.env.VSCODE_INJECT_NODE_MODULE_LOOKUP_PATH)):delete process.env.VSCODE_INJECT_NODE_MODULE_LOOKUP_PATH,require_bootstrap_amd().load("vs/server/node/server.main",R,E)})}function hasStdinWithoutTty(){try{return!process.stdin.isTTY}catch{}return!1}function prompt(R){const E=readline.createInterface({input:process.stdin,output:process.stdout});return new Promise((b,C)=>{E.question(R+" ",async function(O){E.close();const y=O.toString().trim().toLowerCase();y===""||y==="y"||y==="yes"?b(!0):y==="n"||y==="no"?b(!1):(process.stdout.write(`
Invalid Response. Answer either yes (y, yes) or no (n, no)
`),b(await prompt(R)))})})}start();
//# sourceMappingURL=https://cursor-sourcemaps.s3.amazonaws.com/sourcemaps/1aa253fa263df64530be0cab8b4e791d45a1a820/core/server-main.js.map