:))/.test(r)&&r.substring(0,self.origin.length)!==self.origin;if(!C&&this._canUseEval(e)){fetch(r).then(function(E){if(E.status!==200)throw new Error(E.statusText);return E.text()}).then(function(E){E=E+`
//# sourceURL=`+r;var R=b?self.eval(b.createScript("",E)):new Function(E);R.call(self),s()}).then(void 0,n);return}try{b&&(r=b.createScriptURL(r)),importScripts(r),s()}catch(E){n(E)}}},t}(),o=function(){function t(e){this._env=e,this._didInitialize=!1,this._didPatchNodeRequire=!1}return t.prototype._init=function(e){this._didInitialize||(this._didInitialize=!0,this._fs=e("fs"),this._vm=e("vm"),this._path=e("path"),this._crypto=e("crypto"))},t.prototype._initNodeRequire=function(e,r){var s=r.getConfig().getOptionsLiteral().nodeCachedData;if(!s||this._didPatchNodeRequire)return;this._didPatchNodeRequire=!0;var n=this,a=e("module");function l(f){var p=f.constructor,b=function(E){try{return f.require(E)}finally{}};return b.resolve=function(E,R){return p._resolveFilename(E,f,!1,R)},b.resolve.paths=function(E){return p._resolveLookupPaths(E,f)},b.main=process.mainModule,b.extensions=p._extensions,b.cache=p._cache,b}a.prototype._compile=function(f,p){var b=a.wrap(f.replace(/^#!.*/,"")),C=r.getRecorder(),E=n._getCachedDataPath(s,p),R={filename:p},I;try{var D=n._fs.readFileSync(E);I=D.slice(0,16),R.cachedData=D.slice(16),C.record(60,E)}catch{C.record(61,E)}var O=new n._vm.Script(b,R),N=O.runInThisContext(R),k=n._path.dirname(p),L=l(this),A=[this.exports,L,this,p,k,process,P,Buffer],U=N.apply(this.exports,A);return n._handleCachedData(O,b,E,!R.cachedData,r),n._verifyCachedData(O,b,E,I,r),U}},t.prototype.load=function(e,r,s,n){var a=this,l=e.getConfig().getOptionsLiteral(),f=_(e.getRecorder(),l.nodeRequire||u.global.nodeRequire),p=l.nodeInstrumenter||function(N){return N};this._init(f),this._initNodeRequire(f,e);var b=e.getRecorder();if(/^node\|/.test(r)){var C=r.split("|"),E=null;try{E=f(C[1])}catch(N){n(N);return}e.enqueueDefineAnonymousModule([],function(){return E}),s()}else{r=u.Utilities.fileUriToFilePath(this._env.isWindows,r);var R=this._path.normalize(r),I=this._getElectronRendererScriptPathOrUri(R),D=Boolean(l.nodeCachedData),O=D?this._getCachedDataPath(l.nodeCachedData,r):void 0;this._readSourceAndCachedData(R,O,b,function(N,k,L,A){if(N){n(N);return}var U;k.charCodeAt(0)===t._BOM?U=t._PREFIX+k.substring(1)+t._SUFFIX:U=t._PREFIX+k+t._SUFFIX,U=p(U,R);var T={filename:I,cachedData:L},F=a._createAndEvalScript(e,U,T,s,n);a._handleCachedData(F,U,O,D&&!L,e),a._verifyCachedData(F,U,O,A,e)})}},t.prototype._createAndEvalScript=function(e,r,s,n,a){var l=e.getRecorder();l.record(31,s.filename);var f=new this._vm.Script(r,s),p=f.runInThisContext(s),b=e.getGlobalAMDDefineFunc(),C=!1,E=function(){return C=!0,b.apply(null,arguments)};return E.amd=b.amd,p.call(u.global,e.getGlobalAMDRequireFunc(),E,s.filename,this._path.dirname(s.filename)),l.record(32,s.filename),C?n():a(new Error("Didn't receive define call in "+s.filename+"!")),f},t.prototype._getElectronRendererScriptPathOrUri=function(e){if(!this._env.isElectronRenderer)return e;var r=e.match(/^([a-z])\:(.*)/i);return r?"file:///"+(r[1].toUpperCase()+":"+r[2]).replace(/\\/g,"/"):"file://"+e},t.prototype._getCachedDataPath=function(e,r){var s=this._crypto.createHash("md5").update(r,"utf8").update(e.seed,"utf8").update(process.arch,"").digest("hex"),n=this._path.basename(r).replace(/\.js$/,"");return this._path.join(e.path,n+"-"+s+".code")},t.prototype._handleCachedData=function(e,r,s,n,a){var l=this;e.cachedDataRejected?this._fs.unlink(s,function(f){a.getRecorder().record(62,s),l._createAndWriteCachedData(e,r,s,a),f&&a.getConfig().onError(f)}):n&&this._createAndWriteCachedData(e,r,s,a)},t.prototype._createAndWriteCachedData=function(e,r,s,n){var a=this,l=Math.ceil(n.getConfig().getOptionsLiteral().nodeCachedData.writeDelay*(1+Math.random())),f=-1,p=0,b=void 0,C=function(){setTimeout(function(){b||(b=a._crypto.createHash("md5").update(r,"utf8").digest());var E=e.createCachedData();if(!(E.length===0||E.length===f||p>=5)){if(E.length<f){C();return}f=E.length,a._fs.writeFile(s,Buffer.concat([b,E]),function(R){R&&n.getConfig().onError(R),n.getRecorder().record(63,s),C()})}},l*Math.pow(4,p++))};C()},t.prototype._readSourceAndCachedData=function(e,r,s,n){if(!r)this._fs.readFile(e,{encoding:"utf8"},n);else{var a=void 0,l=void 0,f=void 0,p=2,b=function(C){C?n(C):--p===0&&n(void 0,a,l,f)};this._fs.readFile(e,{encoding:"utf8"},function(C,E){a=E,b(C)}),this._fs.readFile(r,function(C,E){!C&&E&&E.length>0?(f=E.slice(0,16),l=E.slice(16),s.record(60,r)):s.record(61,r),b()})}},t.prototype._verifyCachedData=function(e,r,s,n,a){var l=this;!n||e.cachedDataRejected||setTimeout(function(){var f=l._crypto.createHash("md5").update(r,"utf8").digest();n.equals(f)||(a.getConfig().onError(new Error("FAILED TO VERIFY CACHED DATA, deleting stale '"+s+"' now, but a RESTART IS REQUIRED")),l._fs.unlink(s,function(p){p&&a.getConfig().onError(p)}))},Math.ceil(5e3*(1+Math.random())))},t._BOM=65279,t._PREFIX="(function (require, define, __filename, __dirname) { ",t._SUFFIX=`
});`,t}();function _(t,e){if(e.__$__isRecorded)return e;var r=function(n){t.record(33,n);try{return e(n)}finally{t.record(34,n)}};return r.__$__isRecorded=!0,r}u.ensureRecordedNodeRequire=_;function i(t){return new m(t)}u.createScriptLoader=i})(y||(y={}));var y;(function(u){var m=function(){function i(t){var e=t.lastIndexOf("/");e!==-1?this.fromModulePath=t.substr(0,e+1):this.fromModulePath=""}return i._normalizeModuleId=function(t){var 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},i.prototype.resolveModule=function(t){var e=t;return u.Utilities.isAbsolutePath(e)||(u.Utilities.startsWith(e,"./")||u.Utilities.startsWith(e,"../"))&&(e=i._normalizeModuleId(this.fromModulePath+e)),e},i.ROOT=new i(""),i}();u.ModuleIdResolver=m;var d=function(){function i(t,e,r,s,n,a){this.id=t,this.strId=e,this.dependencies=r,this._callback=s,this._errorback=n,this.moduleIdResolver=a,this.exports={},this.error=null,this.exportsPassedIn=!1,this.unresolvedDependenciesCount=this.dependencies.length,this._isComplete=!1}return i._safeInvokeFunction=function(t,e){try{return{returnedValue:t.apply(u.global,e),producedError:null}}catch(r){return{returnedValue:null,producedError:r}}},i._invokeFactory=function(t,e,r,s){return t.shouldInvokeFactory(e)?t.shouldCatchError()?this._safeInvokeFunction(r,s):{returnedValue:r.apply(u.global,s),producedError:null}:{returnedValue:null,producedError:null}},i.prototype.complete=function(t,e,r,s){this._isComplete=!0;var n=null;if(this._callback)if(typeof this._callback=="function"){t.record(21,this.strId);var a=i._invokeFactory(e,this.strId,this._callback,r);n=a.producedError,t.record(22,this.strId),!n&&typeof a.returnedValue<"u"&&(!this.exportsPassedIn||u.Utilities.isEmpty(this.exports))&&(this.exports=a.returnedValue)}else this.exports=this._callback;if(n){var l=u.ensureError(n);l.phase="factory",l.moduleId=this.strId,l.neededBy=s(this.id),this.error=l,e.onError(l)}this.dependencies=null,this._callback=null,this._errorback=null,this.moduleIdResolver=null},i.prototype.onDependencyError=function(t){return this._isComplete=!0,this.error=t,this._errorback?(this._errorback(t),!0):!1},i.prototype.isComplete=function(){return this._isComplete},i}();u.Module=d;var v=function(){function i(){this._nextId=0,this._strModuleIdToIntModuleId=new Map,this._intModuleIdToStrModuleId=[],this.getModuleId("exports"),this.getModuleId("module"),this.getModuleId("require")}return i.prototype.getMaxModuleId=function(){return this._nextId},i.prototype.getModuleId=function(t){var e=this._strModuleIdToIntModuleId.get(t);return typeof e>"u"&&(e=this._nextId++,this._strModuleIdToIntModuleId.set(t,e),this._intModuleIdToStrModuleId[e]=t),e},i.prototype.getStrModuleId=function(t){return this._intModuleIdToStrModuleId[t]},i}(),c=function(){function i(t){this.id=t}return i.EXPORTS=new i(0),i.MODULE=new i(1),i.REQUIRE=new i(2),i}();u.RegularDependency=c;var o=function(){function i(t,e,r){this.id=t,this.pluginId=e,this.pluginParam=r}return i}();u.PluginDependency=o;var _=function(){function i(t,e,r,s,n){n===void 0&&(n=0),this._env=t,this._scriptLoader=e,this._loaderAvailableTimestamp=n,this._defineFunc=r,this._requireFunc=s,this._moduleIdProvider=new v,this._config=new u.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=[]}return i.prototype.reset=function(){return new i(this._env,this._scriptLoader,this._defineFunc,this._requireFunc,this._loaderAvailableTimestamp)},i.prototype.getGlobalAMDDefineFunc=function(){return this._defineFunc},i.prototype.getGlobalAMDRequireFunc=function(){return this._requireFunc},i._findRelevantLocationInStack=function(t,e){for(var r=function(R){return R.replace(/\\/g,"/")},s=r(t),n=e.split(/\n/),a=0;a<n.length;a++){var l=n[a].match(/(.*):(\d+):(\d+)\)?$/);if(l){var f=l[1],p=l[2],b=l[3],C=Math.max(f.lastIndexOf(" ")+1,f.lastIndexOf("(")+1);if(f=f.substr(C),f=r(f),f===s){var E={line:parseInt(p,10),col:parseInt(b,10)};return E.line===1&&(E.col-=53),E}}}throw new Error("Could not correlate define call site for needle "+t)},i.prototype.getBuildInfo=function(){if(!this._config.isBuild())return null;for(var t=[],e=0,r=0,s=this._modules2.length;r<s;r++){var n=this._modules2[r];if(!!n){var a=this._buildInfoPath[n.id]||null,l=this._buildInfoDefineStack[n.id]||null,f=this._buildInfoDependencies[n.id];t[e++]={id:n.strId,path:a,defineLocation:a&&l?i._findRelevantLocationInStack(a,l):null,dependencies:f,shim:null,exports:n.exports}}}return t},i.prototype.getRecorder=function(){return this._recorder||(this._config.shouldRecordStats()?this._recorder=new u.LoaderEventRecorder(this._loaderAvailableTimestamp):this._recorder=u.NullLoaderEventRecorder.INSTANCE),this._recorder},i.prototype.getLoaderEvents=function(){return this.getRecorder().getEvents()},i.prototype.enqueueDefineAnonymousModule=function(t,e){if(this._currentAnonymousDefineCall!==null)throw new Error("Can only have one anonymous define call per script file");var r=null;this._config.isBuild()&&(r=new Error("StackLocation").stack||null),this._currentAnonymousDefineCall={stack:r,dependencies:t,callback:e}},i.prototype.defineModule=function(t,e,r,s,n,a){var l=this;a===void 0&&(a=new m(t));var f=this._moduleIdProvider.getModuleId(t);if(this._modules2[f]){this._config.isDuplicateMessageIgnoredFor(t)||console.warn("Duplicate definition of module '"+t+"'");return}var p=new d(f,t,this._normalizeDependencies(e,a),r,s,a);this._modules2[f]=p,this._config.isBuild()&&(this._buildInfoDefineStack[f]=n,this._buildInfoDependencies[f]=(p.dependencies||[]).map(function(b){return l._moduleIdProvider.getStrModuleId(b.id)})),this._resolve(p)},i.prototype._normalizeDependency=function(t,e){if(t==="exports")return c.EXPORTS;if(t==="module")return c.MODULE;if(t==="require")return c.REQUIRE;var r=t.indexOf("!");if(r>=0){var s=e.resolveModule(t.substr(0,r)),n=e.resolveModule(t.substr(r+1)),a=this._moduleIdProvider.getModuleId(s+"!"+n),l=this._moduleIdProvider.getModuleId(s);return new o(a,l,n)}return new c(this._moduleIdProvider.getModuleId(e.resolveModule(t)))},i.prototype._normalizeDependencies=function(t,e){for(var r=[],s=0,n=0,a=t.length;n<a;n++)r[s++]=this._normalizeDependency(t[n],e);return r},i.prototype._relativeRequire=function(t,e,r,s){if(typeof e=="string")return this.synchronousRequire(e,t);this.defineModule(u.Utilities.generateAnonymousModule(),e,r,s,null,t)},i.prototype.synchronousRequire=function(t,e){e===void 0&&(e=new m(t));var r=this._normalizeDependency(t,e),s=this._modules2[r.id];if(!s)throw new Error("Check dependency list! Synchronous require cannot resolve module '"+t+"'. This is the first mention of this module!");if(!s.isComplete())throw new Error("Check dependency list! Synchronous require cannot resolve module '"+t+"'. This module has not been resolved completely yet.");if(s.error)throw s.error;return s.exports},i.prototype.configure=function(t,e){var r=this._config.shouldRecordStats();e?this._config=new u.Configuration(this._env,t):this._config=this._config.cloneAndMerge(t),this._config.shouldRecordStats()&&!r&&(this._recorder=null)},i.prototype.getConfig=function(){return this._config},i.prototype._onLoad=function(t){if(this._currentAnonymousDefineCall!==null){var e=this._currentAnonymousDefineCall;this._currentAnonymousDefineCall=null,this.defineModule(this._moduleIdProvider.getStrModuleId(t),e.dependencies,e.callback,null,e.stack)}},i.prototype._createLoadError=function(t,e){var r=this,s=this._moduleIdProvider.getStrModuleId(t),n=(this._inverseDependencies2[t]||[]).map(function(l){return r._moduleIdProvider.getStrModuleId(l)}),a=u.ensureError(e);return a.phase="loading",a.moduleId=s,a.neededBy=n,a},i.prototype._onLoadError=function(t,e){var r=this._createLoadError(t,e);this._modules2[t]||(this._modules2[t]=new d(t,this._moduleIdProvider.getStrModuleId(t),[],function(){},null,null));for(var s=[],n=0,a=this._moduleIdProvider.getMaxModuleId();n<a;n++)s[n]=!1;var l=!1,f=[];for(f.push(t),s[t]=!0;f.length>0;){var p=f.shift(),b=this._modules2[p];b&&(l=b.onDependencyError(r)||l);var C=this._inverseDependencies2[p];if(C)for(var n=0,a=C.length;n<a;n++){var E=C[n];s[E]||(f.push(E),s[E]=!0)}}l||this._config.onError(r)},i.prototype._hasDependencyPath=function(t,e){var r=this._modules2[t];if(!r)return!1;for(var s=[],n=0,a=this._moduleIdProvider.getMaxModuleId();n<a;n++)s[n]=!1;var l=[];for(l.push(r),s[t]=!0;l.length>0;){var f=l.shift(),p=f.dependencies;if(p)for(var n=0,a=p.length;n<a;n++){var b=p[n];if(b.id===e)return!0;var C=this._modules2[b.id];C&&!s[b.id]&&(s[b.id]=!0,l.push(C))}}return!1},i.prototype._findCyclePath=function(t,e,r){if(t===e||r===50)return[t];var s=this._modules2[t];if(!s)return null;var n=s.dependencies;if(n)for(var a=0,l=n.length;a<l;a++){var f=this._findCyclePath(n[a].id,e,r+1);if(f!==null)return f.push(t),f}return null},i.prototype._createRequire=function(t){var e=this,r=function(s,n,a){return e._relativeRequire(t,s,n,a)};return r.toUrl=function(s){return e._config.requireToUrl(t.resolveModule(s))},r.getStats=function(){return e.getLoaderEvents()},r.hasDependencyCycle=function(){return e._hasDependencyCycle},r.config=function(s,n){n===void 0&&(n=!1),e.configure(s,n)},r.__$__nodeRequire=u.global.nodeRequire,r},i.prototype._loadModule=function(t){var e=this;if(!(this._modules2[t]||this._knownModules2[t])){this._knownModules2[t]=!0;var r=this._moduleIdProvider.getStrModuleId(t),s=this._config.moduleIdToPaths(r),n=/^@[^\/]+\/[^\/]+$/;this._env.isNode&&(r.indexOf("/")===-1||n.test(r))&&s.push("node|"+r);var a=-1,l=function(f){if(a++,a>=s.length)e._onLoadError(t,f);else{var p=s[a],b=e.getRecorder();if(e._config.isBuild()&&p==="empty:"){e._buildInfoPath[t]=p,e.defineModule(e._moduleIdProvider.getStrModuleId(t),[],null,null,null),e._onLoad(t);return}b.record(10,p),e._scriptLoader.load(e,p,function(){e._config.isBuild()&&(e._buildInfoPath[t]=p),b.record(11,p),e._onLoad(t)},function(C){b.record(12,p),l(C)})}};l(null)}},i.prototype._loadPluginDependency=function(t,e){var r=this;if(!(this._modules2[e.id]||this._knownModules2[e.id])){this._knownModules2[e.id]=!0;var s=function(n){r.defineModule(r._moduleIdProvider.getStrModuleId(e.id),[],n,null,null)};s.error=function(n){r._config.onError(r._createLoadError(e.id,n))},t.load(e.pluginParam,this._createRequire(m.ROOT),s,this._config.getOptionsLiteral())}},i.prototype._resolve=function(t){var e=this,r=t.dependencies;if(r)for(var s=0,n=r.length;s<n;s++){var a=r[s];if(a===c.EXPORTS){t.exportsPassedIn=!0,t.unresolvedDependenciesCount--;continue}if(a===c.MODULE){t.unresolvedDependenciesCount--;continue}if(a===c.REQUIRE){t.unresolvedDependenciesCount--;continue}var l=this._modules2[a.id];if(l&&l.isComplete()){if(l.error){t.onDependencyError(l.error);return}t.unresolvedDependenciesCount--;continue}if(this._hasDependencyPath(a.id,t.id)){this._hasDependencyCycle=!0,console.warn("There is a dependency cycle between '"+this._moduleIdProvider.getStrModuleId(a.id)+"' and '"+this._moduleIdProvider.getStrModuleId(t.id)+"'. The cyclic path follows:");var f=this._findCyclePath(a.id,t.id,0)||[];f.reverse(),f.push(a.id),console.warn(f.map(function(C){return e._moduleIdProvider.getStrModuleId(C)}).join(` => 
`)),t.unresolvedDependenciesCount--;continue}if(this._inverseDependencies2[a.id]=this._inverseDependencies2[a.id]||[],this._inverseDependencies2[a.id].push(t.id),a instanceof o){var p=this._modules2[a.pluginId];if(p&&p.isComplete()){this._loadPluginDependency(p.exports,a);continue}var b=this._inversePluginDependencies2.get(a.pluginId);b||(b=[],this._inversePluginDependencies2.set(a.pluginId,b)),b.push(a),this._loadModule(a.pluginId);continue}this._loadModule(a.id)}t.unresolvedDependenciesCount===0&&this._onModuleComplete(t)},i.prototype._onModuleComplete=function(t){var e=this,r=this.getRecorder();if(!t.isComplete()){var s=t.dependencies,n=[];if(s)for(var a=0,l=s.length;a<l;a++){var f=s[a];if(f===c.EXPORTS){n[a]=t.exports;continue}if(f===c.MODULE){n[a]={id:t.strId,config:function(){return e._config.getConfigForModule(t.strId)}};continue}if(f===c.REQUIRE){n[a]=this._createRequire(t.moduleIdResolver);continue}var p=this._modules2[f.id];if(p){n[a]=p.exports;continue}n[a]=null}var b=function(D){return(e._inverseDependencies2[D]||[]).map(function(O){return e._moduleIdProvider.getStrModuleId(O)})};t.complete(r,this._config,n,b);var C=this._inverseDependencies2[t.id];if(this._inverseDependencies2[t.id]=null,C)for(var a=0,l=C.length;a<l;a++){var E=C[a],R=this._modules2[E];R.unresolvedDependenciesCount--,R.unresolvedDependenciesCount===0&&this._onModuleComplete(R)}var I=this._inversePluginDependencies2.get(t.id);if(I){this._inversePluginDependencies2.delete(t.id);for(var a=0,l=I.length;a<l;a++)this._loadPluginDependency(t.exports,I[a])}}},i}();u.ModuleManager=_})(y||(y={}));var S,y;(function(u){var m=new u.Environment,d=null,v=function(i,t,e){typeof i!="string"&&(e=t,t=i,i=null),(typeof t!="object"||!Array.isArray(t))&&(e=t,t=null),t||(t=["require","exports","module"]),i?d.defineModule(i,t,e,null,null):d.enqueueDefineAnonymousModule(t,e)};v.amd={jQuery:!0};var c=function(i,t){t===void 0&&(t=!1),d.configure(i,t)},o=function(){if(arguments.length===1){if(arguments[0]instanceof Object&&!Array.isArray(arguments[0])){c(arguments[0]);return}if(typeof arguments[0]=="string")return d.synchronousRequire(arguments[0])}if((arguments.length===2||arguments.length===3)&&Array.isArray(arguments[0])){d.defineModule(u.Utilities.generateAnonymousModule(),arguments[0],arguments[1],arguments[2],null);return}throw new Error("Unrecognized require call")};o.config=c,o.getConfig=function(){return d.getConfig().getOptionsLiteral()},o.reset=function(){d=d.reset()},o.getBuildInfo=function(){return d.getBuildInfo()},o.getStats=function(){return d.getLoaderEvents()},o.define=v;function _(){if(typeof u.global.require<"u"||typeof require<"u"){var i=u.global.require||require;if(typeof i=="function"&&typeof i.resolve=="function"){var t=u.ensureRecordedNodeRequire(d.getRecorder(),i);u.global.nodeRequire=t,o.nodeRequire=t,o.__$__nodeRequire=t}}m.isNode&&!m.isElectronRenderer&&!m.isElectronNodeIntegrationWebWorker?h.exports=o:(m.isElectronRenderer||(u.global.define=v),u.global.require=o)}u.init=_,(typeof u.global.define!="function"||!u.global.define.amd)&&(d=new u.ModuleManager(m,u.createScriptLoader(m),v,o,u.Utilities.getHighPerformanceTimestamp()),typeof u.global.require<"u"&&typeof u.global.require!="function"&&o.config(u.global.require),S=function(){return v.apply(null,arguments)},S.amd=v.amd,typeof doNotInitLoader>"u"&&_())})(y||(y={})),S("vs/css",["require","exports"],function(u,m){"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.load=void 0;function d(i,t,e,r){if(r=r||{},(r["vs/css"]||{}).disabled){e({});return}const n=t.toUrl(i+".css");v(i,n,()=>{e({})},a=>{typeof e.error=="function"&&e.error("Could not find "+n+".")})}m.load=d;function v(i,t,e,r){if(c(i,t)){e();return}o(i,t,e,r)}function c(i,t){const e=document.getElementsByTagName("link");for(let r=0,s=e.length;r<s;r++){const n=e[r].getAttribute("data-name"),a=e[r].getAttribute("href");if(n===i||a===t)return!0}return!1}function o(i,t,e,r){const s=document.createElement("link");s.setAttribute("rel","stylesheet"),s.setAttribute("type","text/css"),s.setAttribute("data-name",i),_(i,s,e,r),s.setAttribute("href",t),(document.head||document.getElementsByTagName("head")[0]).appendChild(s)}function _(i,t,e,r){const s=()=>{t.removeEventListener("load",n),t.removeEventListener("error",a)},n=l=>{s(),e()},a=l=>{s(),r(l)};t.addEventListener("load",n),t.addEventListener("error",a)}}),S("vs/nls",["require","exports"],function(u,m){"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.load=m.create=m.setPseudoTranslation=m.getConfiguredDefaultLocale=m.localize=void 0;let d=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;const v="i-default";function c(l,f){let p;return f.length===0?p=l:p=l.replace(/\{(\d+)\}/g,(b,C)=>{const E=C[0],R=f[E];let I=b;return typeof R=="string"?I=R:(typeof R=="number"||typeof R=="boolean"||R===void 0||R===null)&&(I=String(R)),I}),d&&(p="\uFF3B"+p.replace(/[aouei]/g,"$&$&")+"\uFF3D"),p}function o(l,f){let p=l[f];return p||(p=l["*"],p)?p:null}function _(l){return l.charAt(l.length-1)==="/"?l:l+"/"}async function i(l,f,p){const b=_(l)+_(f)+"vscode/"+_(p),C=await fetch(b);if(C.ok)return await C.json();throw new Error(`${C.status} - ${C.statusText}`)}function t(l){return function(f,p){const b=Array.prototype.slice.call(arguments,2);return c(l[f],b)}}function e(l,f,...p){return c(f,p)}m.localize=e;function r(l){}m.getConfiguredDefaultLocale=r;function s(l){d=l}m.setPseudoTranslation=s;function n(l,f){return{localize:t(f[l]),getConfiguredDefaultLocale:f.getConfiguredDefaultLocale??(p=>{})}}m.create=n;function a(l,f,p,b){const C=b["vs/nls"]??{};if(!l||l.length===0)return p({localize:e,getConfiguredDefaultLocale:()=>C.availableLanguages?.["*"]});const E=C.availableLanguages?o(C.availableLanguages,l):null,R=E===null||E===v;let I=".nls";R||(I=I+"."+E);const D=O=>{Array.isArray(O)?O.localize=t(O):O.localize=t(O[l]),O.getConfiguredDefaultLocale=()=>C.availableLanguages?.["*"],p(O)};typeof C.loadBundle=="function"?C.loadBundle(l,E,(O,N)=>{O?f([l+".nls"],D):D(N)}):C.translationServiceUrl&&!R?(async()=>{try{const O=await i(C.translationServiceUrl,E,l);return D(O)}catch(O){if(!E.includes("-"))return console.error(O),f([l+".nls"],D);try{const N=E.split("-")[0],k=await i(C.translationServiceUrl,N,l);return C.availableLanguages??={},C.availableLanguages["*"]=N,D(k)}catch(N){return console.error(N),f([l+".nls"],D)}}})():f([l+I],D,O=>{if(I===".nls"){console.error("Failed trying to load default language strings",O);return}console.error(`Failed to load message bundle for language ${E}. Falling back to the default language:`,O),f([l+".nls"],D)})}m.load=a})}}),require_bootstrap_amd=__commonJS({"out-build/bootstrap-amd.js"(g){"use strict";var h=require,w=require_loader(),P=require_bootstrap(),S=require_performance(),y=P.setupNLS();w.config({baseUrl:P.fileUriFromPath(__dirname,{isWindows:process.platform==="win32"}),catchError:!0,nodeRequire:h,"vs/nls":y,amdModulesPattern:/^vs\//,recordStats:!0}),(process.env.ELECTRON_RUN_AS_NODE||process.versions.electron)&&w.define("fs",["original-fs"],function(u){return u}),y&&y.pseudo&&w(["vs/nls"],function(u){u.setPseudoTranslation(y.pseudo)}),g.load=function(u,m,d){!u||(process.env.VSCODE_CODE_CACHE_PATH&&w.config({nodeCachedData:{path:process.env.VSCODE_CODE_CACHE_PATH,seed:u}}),m=m||function(){},d=d||function(v){console.error(v)},S.mark("code/fork/willLoadCode"),w([u],m,d))}}}),perf=require_performance();perf.mark("code/didStartMain");var path=require("path"),fs=require("fs"),os=require("os"),bootstrap=require_bootstrap(),bootstrapNode=require_bootstrap_node(),{getUserDataPath}=require_userDataPath(),{stripComments}=require_stripComments(),product=require("../product.json"),{app,protocol,crashReporter,Menu}=require("electron"),portable=bootstrapNode.configurePortable(product);bootstrap.enableASARSupport();var args=parseCLIArgs(),userDataPath=getUserDataPath(args,product.nameShort??"code-oss-dev");app.setPath("userData",userDataPath);var codeCachePath=getCodeCachePath(),argvConfig=configureCommandlineSwitchesSync(args);Menu.setApplicationMenu(null),perf.mark("code/willStartCrashReporter"),(args["crash-reporter-directory"]||argvConfig["enable-crash-reporter"]&&!args["disable-crash-reporter"])&&configureCrashReporter(),perf.mark("code/didStartCrashReporter"),portable&&portable.isPortable&&app.setAppLogsPath(path.join(userDataPath,"logs")),protocol.registerSchemesAsPrivileged([{scheme:"vscode-webview",privileges:{standard:!0,secure:!0,supportFetchAPI:!0,corsEnabled:!0,allowServiceWorkers:!0}},{scheme:"vscode-file",privileges:{secure:!0,standard:!0,supportFetchAPI:!0,corsEnabled:!0}}]),registerListeners();var nlsConfigurationPromise=void 0,metaDataFile=path.join(__dirname,"nls.metadata.json"),locale=getUserDefinedLocale(argvConfig);if(locale){const{getNLSConfiguration:g}=require_languagePacks();nlsConfigurationPromise=g(product.commit,userDataPath,metaDataFile,locale)}app.once("ready",function(){if(args.trace){const g=require("electron").contentTracing,h={categoryFilter:args["trace-category-filter"]||"*",traceOptions:args["trace-options"]||"record-until-full,enable-sampling"};g.startRecording(h).finally(()=>onReady())}else onReady()});function startup(g,h){h._languagePackSupport=!0,process.env.VSCODE_NLS_CONFIG=JSON.stringify(h),process.env.VSCODE_CODE_CACHE_PATH=g||"",perf.mark("code/willLoadMainBundle"),require_bootstrap_amd().load("vs/code/electron-main/main",()=>{perf.mark("code/didLoadMainBundle")})}async function onReady(){perf.mark("code/mainAppReady");try{const[,g]=await Promise.all([mkdirpIgnoreError(codeCachePath),resolveNlsConfiguration()]);startup(codeCachePath,g)}catch(g){console.error(g)}}function configureCommandlineSwitchesSync(g){const h=["disable-hardware-acceleration","force-color-profile"];process.platform==="linux"&&h.push("force-renderer-accessibility");const w=["enable-proposed-api","log-level"],P=readArgvConfigSync();Object.keys(P).forEach(y=>{const u=P[y];if(h.indexOf(y)!==-1)y==="force-color-profile"?u&&app.commandLine.appendSwitch(y,u):(u===!0||u==="true")&&(y==="disable-hardware-acceleration"?app.disableHardwareAcceleration():app.commandLine.appendSwitch(y));else if(w.indexOf(y)!==-1)switch(y){case"enable-proposed-api":Array.isArray(u)?u.forEach(m=>m&&typeof m=="string"&&process.argv.push("--enable-proposed-api",m)):console.error("Unexpected value for `enable-proposed-api` in argv.json. Expected array of extension ids.");break;case"log-level":typeof u=="string"&&process.argv.push("--log",u);break}}),app.commandLine.appendSwitch("disable-features","CalculateNativeWinOcclusion");const S=getJSFlags(g);return S&&app.commandLine.appendSwitch("js-flags",S),P}function readArgvConfigSync(){const g=getArgvConfigPath();let h;try{h=JSON.parse(stripComments(fs.readFileSync(g).toString()))}catch(w){w&&w.code==="ENOENT"?createDefaultArgvConfigSync(g):console.warn(`Unable to read argv.json configuration file in ${g}, falling back to defaults (${w})`)}return h||(h={}),h}function createDefaultArgvConfigSync(g){try{const h=path.dirname(g);fs.existsSync(h)||fs.mkdirSync(h);const w=["// This configuration file allows you to pass permanent command line arguments to VS Code.","// Only a subset of arguments is currently supported to reduce the likelihood of breaking","// the installation.","//","// PLEASE DO NOT CHANGE WITHOUT UNDERSTANDING THE IMPACT","//","// NOTE: Changing this file requires a restart of VS Code.","{","	// Use software rendering instead of hardware accelerated rendering.","	// This can help in cases where you see rendering issues in VS Code.",'	// "disable-hardware-acceleration": true',"}"];fs.writeFileSync(g,w.join(`
`))}catch(h){console.error(`Unable to create argv.json configuration file in ${g}, falling back to defaults (${h})`)}}function getArgvConfigPath(){const g=process.env.VSCODE_PORTABLE;if(g)return path.join(g,"argv.json");let h=product.dataFolderName;return process.env.VSCODE_DEV&&(h=`${h}-dev`),path.join(os.homedir(),h,"argv.json")}function configureCrashReporter(){let g=args["crash-reporter-directory"],h="";if(g){if(g=path.normalize(g),path.isAbsolute(g)||(console.error(`The path '${g}' specified for --crash-reporter-directory must be absolute.`),app.exit(1)),!fs.existsSync(g))try{fs.mkdirSync(g,{recursive:!0})}catch{console.error(`The path '${g}' specified for --crash-reporter-directory does not seem to exist or cannot be created.`),app.exit(1)}console.log(`Found --crash-reporter-directory argument. Setting crashDumps directory to be '${g}'`),app.setPath("crashDumps",g)}else{const y=product.appCenter;if(y){const u=process.platform==="win32",m=process.platform==="linux",d=process.platform==="darwin",v=argvConfig["crash-reporter-id"];if(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(v)){if(u)switch(process.arch){case"ia32":h=y["win32-ia32"];break;case"x64":h=y["win32-x64"];break;case"arm64":h=y["win32-arm64"];break}else if(d)if(product.darwinUniversalAssetId)h=y["darwin-universal"];else switch(process.arch){case"x64":h=y.darwin;break;case"arm64":h=y["darwin-arm64"];break}else m&&(h=y["linux-x64"]);h=h.concat("&uid=",v,"&iid=",v,"&sid=",v);const o=process.argv,_=o.indexOf("--");_===-1?o.push("--crash-reporter-id",v):o.splice(_,0,"--crash-reporter-id",v)}}}const w=(product.crashReporter?product.crashReporter.productName:void 0)||product.nameShort,P=(product.crashReporter?product.crashReporter.companyName:void 0)||"Microsoft",S=Boolean(!process.env.VSCODE_DEV&&h&&!g);crashReporter.start({companyName:P,productName:process.env.VSCODE_DEV?`${w} Dev`:w,submitURL:h,uploadToServer:S,compress:!0})}function getJSFlags(g){const h=[];return g["js-flags"]&&h.push(g["js-flags"]),g["max-memory"]&&!/max_old_space_size=(\d+)/g.exec(g["js-flags"]??"")&&h.push(`--max_old_space_size=${g["max-memory"]}`),h.length>0?h.join(" "):null}function parseCLIArgs(){return require("minimist")(process.argv,{string:["user-data-dir","locale","js-flags","max-memory","crash-reporter-directory"]})}function registerListeners(){const g=[];global.macOpenFiles=g,app.on("open-file",function(P,S){g.push(S)});const h=[],w=function(P,S){P.preventDefault(),h.push(S)};app.on("will-finish-launching",function(){app.on("open-url",w)}),global.getOpenUrls=function(){return app.removeListener("open-url",w),h}}function getCodeCachePath(){if(process.argv.indexOf("--no-cached-data")>0||process.env.VSCODE_DEV)return;const g=product.commit;if(!!g)return path.join(userDataPath,"CachedData",g)}function mkdirp(g){return new Promise((h,w)=>{fs.mkdir(g,{recursive:!0},P=>P&&P.code!=="EEXIST"?w(P):h(g))})}async function mkdirpIgnoreError(g){if(typeof g=="string")try{return await mkdirp(g),g}catch{}}async function resolveNlsConfiguration(){let g=nlsConfigurationPromise?await nlsConfigurationPromise:void 0;if(!g){let h=app.getLocale();if(!h)g={locale:"en",availableLanguages:{}};else{h=h.toLowerCase();const{getNLSConfiguration:w}=require_languagePacks();g=await w(product.commit,userDataPath,metaDataFile,h),g||(g={locale:h,availableLanguages:{}})}}return g}function getUserDefinedLocale(g){const h=args.locale;return h?h.toLowerCase():g.locale&&typeof g.locale=="string"?g.locale.toLowerCase():void 0}

//# sourceMappingURL=https://ticino.blob.core.windows.net/sourcemaps/8fa188b2b301d36553cbc9ce1b0a146ccb93351f/core/main.js.map
