mirror of
https://litchi.icu/ngc2207/judge.git
synced 2025-05-19 01:27:39 +00:00
24 lines
276 KiB
JavaScript
24 lines
276 KiB
JavaScript
|
/*!-----------------------------------------------------------
|
||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||
|
* Version: 0.36.1(6c56744c3419458f0dd48864520b759d1a3a1ca8)
|
||
|
* Released under the MIT license
|
||
|
* https://github.com/microsoft/vscode/blob/main/LICENSE.txt
|
||
|
*-----------------------------------------------------------*/(function(){var X=["require","exports","vs/editor/common/core/range","vs/editor/common/core/position","vs/base/common/strings","vs/base/common/platform","vs/editor/common/diff/algorithms/diffAlgorithm","vs/base/common/event","vs/base/common/errors","vs/base/common/assert","vs/base/common/lifecycle","vs/base/common/objects","vs/base/common/uri","vs/base/common/functional","vs/base/common/iterator","vs/base/common/linkedList","vs/base/common/diff/diff","vs/base/common/types","vs/base/common/uint","vs/editor/common/core/characterClassifier","vs/editor/common/core/wordHelper","vs/editor/common/diff/linesDiffComputer","vs/base/common/stopwatch","vs/nls","vs/base/common/arrays","vs/base/common/cache","vs/base/common/diff/diffChange","vs/base/common/keyCodes","vs/base/common/lazy","vs/base/common/hash","vs/base/common/codicons","vs/editor/common/core/selection","vs/editor/common/core/wordCharacterClassifier","vs/editor/common/diff/algorithms/joinSequenceDiffs","vs/editor/common/diff/algorithms/myersDiffAlgorithm","vs/editor/common/diff/algorithms/utils","vs/editor/common/diff/algorithms/dynamicProgrammingDiffing","vs/editor/common/diff/smartLinesDiffComputer","vs/editor/common/diff/standardLinesDiffComputer","vs/editor/common/diff/linesDiffComputers","vs/editor/common/languages/linkComputer","vs/editor/common/languages/supports/inplaceReplaceSupport","vs/editor/common/model","vs/editor/common/model/prefixSumComputer","vs/editor/common/model/mirrorTextModel","vs/editor/common/model/textModelSearch","vs/editor/common/services/unicodeTextModelHighlighter","vs/editor/common/standalone/standaloneEnums","vs/nls!vs/base/common/platform","vs/base/common/process","vs/base/common/path","vs/base/common/cancellation","vs/editor/common/tokenizationRegistry","vs/editor/common/languages","vs/editor/common/services/editorBaseApi","vs/nls!vs/base/common/worker/simpleWorker","vs/base/common/worker/simpleWorker","vs/editor/common/services/editorSimpleWorker"],Q=function(U){for(var n=[],A=0,M=U.length;A<M;A++)n[A]=X[U[A]];return n},Ee=this,Re=typeof global=="object"?global:{},se;(function(U){U.global=Ee;var n=function(){function A(){this._detected=!1,this._isWindows=!1,this._isNode=!1,this._isElectronRenderer=!1,this._isWebWorker=!1,this._isElectronNodeIntegrationWebWorker=!1}return Object.defineProperty(A.prototype,"isWindows",{get:function(){return this._detect(),this._isWindows},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"isNode",{get:function(){return this._detect(),this._isNode},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"isElectronRenderer",{get:function(){return this._detect(),this._isElectronRenderer},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"isWebWorker",{get:function(){return this._detect(),this._isWebWorker},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"isElectronNodeIntegrationWebWorker",{get:function(){return this._detect(),this._isElectronNodeIntegrationWebWorker},enumerable:!1,configurable:!0}),A.prototype._detect=function(){this._detected||(this._detected=!0,this._isWindows=A._isWindows(),this._isNode=typeof module<"u"&&!!module.exports,this._isElectronRenderer=typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.electron<"u"&&process.type==="renderer",this._isWebWorker=typeof U.global.importScripts=="function",this._isElectronNodeIntegrationWebWorker=this._isWebWorker&&typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.electron<"u"&&process.type==="worker")},A._isWindows=function(){return typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.indexOf("Windows")>=0?!0:typeof process<"u"?process.platform==="win32":!1},A}();U.Environment=n})(se||(se={}));var se;(function(U){var n=function(){function i(u,y,v){this.type=u,this.detail=y,this.timestamp=v}return i}();U.LoaderEvent=n;var A=function(){function i(u){this._events=[new n(1,"",u)]}return i.prototype.record=function(u,y){this._events.push(new n(u,y,U.Utilities.getHighPerforman
|
||
|
//# sourceURL=`+N;var l=_?self.eval(_.createScript("",w)):new Function(w);l.call(self),e()}).then(void 0,C);return}try{_&&(N=_.createScriptURL(N)),importScripts(N),e()}catch(w){C(w)}}},o}(),u=function(){function o(f){this._env=f,this._didInitialize=!1,this._didPatchNodeRequire=!1}return o.prototype._init=function(f){this._didInitialize||(this._didInitialize=!0,this._fs=f("fs"),this._vm=f("vm"),this._path=f("path"),this._crypto=f("crypto"))},o.prototype._initNodeRequire=function(f,N){var e=N.getConfig().getOptionsLiteral().nodeCachedData;if(!e||this._didPatchNodeRequire)return;this._didPatchNodeRequire=!0;var C=this,h=f("module");function b(L){var S=L.constructor,_=function(w){try{return L.require(w)}finally{}};return _.resolve=function(w,l){return S._resolveFilename(w,L,!1,l)},_.resolve.paths=function(w){return S._resolveLookupPaths(w,L)},_.main=process.mainModule,_.extensions=S._extensions,_.cache=S._cache,_}h.prototype._compile=function(L,S){var _=h.wrap(L.replace(/^#!.*/,"")),m=N.getRecorder(),w=C._getCachedDataPath(e,S),l={filename:S},g;try{var r=C._fs.readFileSync(w);g=r.slice(0,16),l.cachedData=r.slice(16),m.record(60,w)}catch{m.record(61,w)}var a=new C._vm.Script(_,l),s=a.runInThisContext(l),c=C._path.dirname(S),d=b(this),p=[this.exports,d,this,S,c,process,Re,Buffer],E=s.apply(this.exports,p);return C._handleCachedData(a,_,w,!l.cachedData,N),C._verifyCachedData(a,_,w,g,N),E}},o.prototype.load=function(f,N,e,C){var h=this,b=f.getConfig().getOptionsLiteral(),L=y(f.getRecorder(),b.nodeRequire||U.global.nodeRequire),S=b.nodeInstrumenter||function(s){return s};this._init(L),this._initNodeRequire(L,f);var _=f.getRecorder();if(/^node\|/.test(N)){var m=N.split("|"),w=null;try{w=L(m[1])}catch(s){C(s);return}f.enqueueDefineAnonymousModule([],function(){return w}),e()}else{N=U.Utilities.fileUriToFilePath(this._env.isWindows,N);var l=this._path.normalize(N),g=this._getElectronRendererScriptPathOrUri(l),r=Boolean(b.nodeCachedData),a=r?this._getCachedDataPath(b.nodeCachedData,N):void 0;this._readSourceAndCachedData(l,a,_,function(s,c,d,p){if(s){C(s);return}var E;c.charCodeAt(0)===o._BOM?E=o._PREFIX+c.substring(1)+o._SUFFIX:E=o._PREFIX+c+o._SUFFIX,E=S(E,l);var R={filename:g,cachedData:d},D=h._createAndEvalScript(f,E,R,e,C);h._handleCachedData(D,E,a,r&&!d,f),h._verifyCachedData(D,E,a,p,f)})}},o.prototype._createAndEvalScript=function(f,N,e,C,h){var b=f.getRecorder();b.record(31,e.filename);var L=new this._vm.Script(N,e),S=L.runInThisContext(e),_=f.getGlobalAMDDefineFunc(),m=!1,w=function(){return m=!0,_.apply(null,arguments)};return w.amd=_.amd,S.call(U.global,f.getGlobalAMDRequireFunc(),w,e.filename,this._path.dirname(e.filename)),b.record(32,e.filename),m?C():h(new Error("Didn't receive define call in "+e.filename+"!")),L},o.prototype._getElectronRendererScriptPathOrUri=function(f){if(!this._env.isElectronRenderer)return f;var N=f.match(/^([a-z])\:(.*)/i);return N?"file:///"+(N[1].toUpperCase()+":"+N[2]).replace(/\\/g,"/"):"file://"+f},o.prototype._getCachedDataPath=function(f,N){var e=this._crypto.createHash("md5").update(N,"utf8").update(f.seed,"utf8").update(process.arch,"").digest("hex"),C=this._path.basename(N).replace(/\.js$/,"");return this._path.join(f.path,C+"-"+e+".code")},o.prototype._handleCachedData=function(f,N,e,C,h){var b=this;f.cachedDataRejected?this._fs.unlink(e,function(L){h.getRecorder().record(62,e),b._createAndWriteCachedData(f,N,e,h),L&&h.getConfig().onError(L)}):C&&this._createAndWriteCachedData(f,N,e,h)},o.prototype._createAndWriteCachedData=function(f,N,e,C){var h=this,b=Math.ceil(C.getConfig().getOptionsLiteral().nodeCachedData.writeDelay*(1+Math.random())),L=-1,S=0,_=void 0,m=function(){setTimeout(function(){_||(_=h._crypto.createHash("md5").update(N,"utf8").digest());var w=f.createCachedData();if(!(w.length===0||w.length===L||S>=5)){if(w.length<L){m();return}L=w.length,h._fs.writeFile(e,Buffer.concat([_,w]),function(l){l&&C.getConfig().onError(l),C.getRecorder().record(63,e),m()})}},b*Math.pow(4,S++))};m()},o.prototype._readSourceAndCachedData=function(f,N,e,C){if(!N)this._fs.readFile(f,{encoding:
|
||
|
});`,o}();function y(o,f){if(f.__$__isRecorded)return f;var N=function(C){o.record(33,C);try{return f(C)}finally{o.record(34,C)}};return N.__$__isRecorded=!0,N}U.ensureRecordedNodeRequire=y;function v(o){return new n(o)}U.createScriptLoader=v})(se||(se={}));var se;(function(U){var n=function(){function v(o){var f=o.lastIndexOf("/");f!==-1?this.fromModulePath=o.substr(0,f+1):this.fromModulePath=""}return v._normalizeModuleId=function(o){var f=o,N;for(N=/\/\.\//;N.test(f);)f=f.replace(N,"/");for(f=f.replace(/^\.\//g,""),N=/\/(([^\/])|([^\/][^\/\.])|([^\/\.][^\/])|([^\/][^\/][^\/]+))\/\.\.\//;N.test(f);)f=f.replace(N,"/");return f=f.replace(/^(([^\/])|([^\/][^\/\.])|([^\/\.][^\/])|([^\/][^\/][^\/]+))\/\.\.\//,""),f},v.prototype.resolveModule=function(o){var f=o;return U.Utilities.isAbsolutePath(f)||(U.Utilities.startsWith(f,"./")||U.Utilities.startsWith(f,"../"))&&(f=v._normalizeModuleId(this.fromModulePath+f)),f},v.ROOT=new v(""),v}();U.ModuleIdResolver=n;var A=function(){function v(o,f,N,e,C,h){this.id=o,this.strId=f,this.dependencies=N,this._callback=e,this._errorback=C,this.moduleIdResolver=h,this.exports={},this.error=null,this.exportsPassedIn=!1,this.unresolvedDependenciesCount=this.dependencies.length,this._isComplete=!1}return v._safeInvokeFunction=function(o,f){try{return{returnedValue:o.apply(U.global,f),producedError:null}}catch(N){return{returnedValue:null,producedError:N}}},v._invokeFactory=function(o,f,N,e){return o.shouldInvokeFactory(f)?o.shouldCatchError()?this._safeInvokeFunction(N,e):{returnedValue:N.apply(U.global,e),producedError:null}:{returnedValue:null,producedError:null}},v.prototype.complete=function(o,f,N,e){this._isComplete=!0;var C=null;if(this._callback)if(typeof this._callback=="function"){o.record(21,this.strId);var h=v._invokeFactory(f,this.strId,this._callback,N);C=h.producedError,o.record(22,this.strId),!C&&typeof h.returnedValue<"u"&&(!this.exportsPassedIn||U.Utilities.isEmpty(this.exports))&&(this.exports=h.returnedValue)}else this.exports=this._callback;if(C){var b=U.ensureError(C);b.phase="factory",b.moduleId=this.strId,b.neededBy=e(this.id),this.error=b,f.onError(b)}this.dependencies=null,this._callback=null,this._errorback=null,this.moduleIdResolver=null},v.prototype.onDependencyError=function(o){return this._isComplete=!0,this.error=o,this._errorback?(this._errorback(o),!0):!1},v.prototype.isComplete=function(){return this._isComplete},v}();U.Module=A;var M=function(){function v(){this._nextId=0,this._strModuleIdToIntModuleId=new Map,this._intModuleIdToStrModuleId=[],this.getModuleId("exports"),this.getModuleId("module"),this.getModuleId("require")}return v.prototype.getMaxModuleId=function(){return this._nextId},v.prototype.getModuleId=function(o){var f=this._strModuleIdToIntModuleId.get(o);return typeof f>"u"&&(f=this._nextId++,this._strModuleIdToIntModuleId.set(o,f),this._intModuleIdToStrModuleId[f]=o),f},v.prototype.getStrModuleId=function(o){return this._intModuleIdToStrModuleId[o]},v}(),i=function(){function v(o){this.id=o}return v.EXPORTS=new v(0),v.MODULE=new v(1),v.REQUIRE=new v(2),v}();U.RegularDependency=i;var u=function(){function v(o,f,N){this.id=o,this.pluginId=f,this.pluginParam=N}return v}();U.PluginDependency=u;var y=function(){function v(o,f,N,e,C){C===void 0&&(C=0),this._env=o,this._scriptLoader=f,this._loaderAvailableTimestamp=C,this._defineFunc=N,this._requireFunc=e,this._moduleIdProvider=new M,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 v.prototype.reset=function(){return new v(this._env,this._scriptLoader,this._defineFunc,this._requireFunc,this._loaderAvailableTimestamp)},v.prototype.getGlobalAMDDefineFunc=function(){return this._defineFunc},v.prototype.getGlobalAMDRequireFunc=function(){return this._requireFunc},v._findRelevantLocationInStack=function(o,f){for(var N=function
|
||
|
`)),o.unresolvedDependenciesCount--;continue}if(this._inverseDependencies2[h.id]=this._inverseDependencies2[h.id]||[],this._inverseDependencies2[h.id].push(o.id),h instanceof u){var S=this._modules2[h.pluginId];if(S&&S.isComplete()){this._loadPluginDependency(S.exports,h);continue}var _=this._inversePluginDependencies2.get(h.pluginId);_||(_=[],this._inversePluginDependencies2.set(h.pluginId,_)),_.push(h),this._loadModule(h.pluginId);continue}this._loadModule(h.id)}o.unresolvedDependenciesCount===0&&this._onModuleComplete(o)},v.prototype._onModuleComplete=function(o){var f=this,N=this.getRecorder();if(!o.isComplete()){var e=o.dependencies,C=[];if(e)for(var h=0,b=e.length;h<b;h++){var L=e[h];if(L===i.EXPORTS){C[h]=o.exports;continue}if(L===i.MODULE){C[h]={id:o.strId,config:function(){return f._config.getConfigForModule(o.strId)}};continue}if(L===i.REQUIRE){C[h]=this._createRequire(o.moduleIdResolver);continue}var S=this._modules2[L.id];if(S){C[h]=S.exports;continue}C[h]=null}var _=function(r){return(f._inverseDependencies2[r]||[]).map(function(a){return f._moduleIdProvider.getStrModuleId(a)})};o.complete(N,this._config,C,_);var m=this._inverseDependencies2[o.id];if(this._inverseDependencies2[o.id]=null,m)for(var h=0,b=m.length;h<b;h++){var w=m[h],l=this._modules2[w];l.unresolvedDependenciesCount--,l.unresolvedDependenciesCount===0&&this._onModuleComplete(l)}var g=this._inversePluginDependencies2.get(o.id);if(g){this._inversePluginDependencies2.delete(o.id);for(var h=0,b=g.length;h<b;h++)this._loadPluginDependency(o.exports,g[h])}}},v}();U.ModuleManager=y})(se||(se={}));var Y,se;(function(U){var n=new U.Environment,A=null,M=function(v,o,f){typeof v!="string"&&(f=o,o=v,v=null),(typeof o!="object"||!Array.isArray(o))&&(f=o,o=null),o||(o=["require","exports","module"]),v?A.defineModule(v,o,f,null,null):A.enqueueDefineAnonymousModule(o,f)};M.amd={jQuery:!0};var i=function(v,o){o===void 0&&(o=!1),A.configure(v,o)},u=function(){if(arguments.length===1){if(arguments[0]instanceof Object&&!Array.isArray(arguments[0])){i(arguments[0]);return}if(typeof arguments[0]=="string")return A.synchronousRequire(arguments[0])}if((arguments.length===2||arguments.length===3)&&Array.isArray(arguments[0])){A.defineModule(U.Utilities.generateAnonymousModule(),arguments[0],arguments[1],arguments[2],null);return}throw new Error("Unrecognized require call")};u.config=i,u.getConfig=function(){return A.getConfig().getOptionsLiteral()},u.reset=function(){A=A.reset()},u.getBuildInfo=function(){return A.getBuildInfo()},u.getStats=function(){return A.getLoaderEvents()},u.define=M;function y(){if(typeof U.global.require<"u"||typeof require<"u"){var v=U.global.require||require;if(typeof v=="function"&&typeof v.resolve=="function"){var o=U.ensureRecordedNodeRequire(A.getRecorder(),v);U.global.nodeRequire=o,u.nodeRequire=o,u.__$__nodeRequire=o}}n.isNode&&!n.isElectronRenderer&&!n.isElectronNodeIntegrationWebWorker?module.exports=u:(n.isElectronRenderer||(U.global.define=M),U.global.require=u)}U.init=y,(typeof U.global.define!="function"||!U.global.define.amd)&&(A=new U.ModuleManager(n,U.createScriptLoader(n),M,u,U.Utilities.getHighPerformanceTimestamp()),typeof U.global.require<"u"&&typeof U.global.require!="function"&&u.config(U.global.require),Y=function(){return M.apply(null,arguments)},Y.amd=M.amd,typeof doNotInitLoader>"u"&&y())})(se||(se={}));var fe=this&&this.__awaiter||function(U,n,A,M){function i(u){return u instanceof A?u:new A(function(y){y(u)})}return new(A||(A=Promise))(function(u,y){function v(N){try{f(M.next(N))}catch(e){y(e)}}function o(N){try{f(M.throw(N))}catch(e){y(e)}}function f(N){N.done?u(N.value):i(N.value).then(v,o)}f((M=M.apply(U,n||[])).next())})};Y(X[23],Q([0,1]),function(U,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.load=n.create=n.setPseudoTranslation=n.getConfiguredDefaultLocale=n.localize=void 0;let A=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;const M="i-default";function i(b,L){let S;return L.length===0?S=b:S=b.replace(/\{(\d+)\}/g,(_,m)=>{const w=m[0],l=L[w];le
|
||
|
})`}}):void 0;function u(){try{return(i?self.eval(i.createScript("","true")):new Function("true")).call(self),!0}catch{return!1}}function y(){return new Promise((e,C)=>{if(typeof self.define=="function"&&self.define.amd)return e();const h=M+"vs/loader.js";if(!(/^((http:)|(https:)|(file:))/.test(h)&&h.substring(0,self.origin.length)!==self.origin)&&u()){fetch(h).then(L=>{if(L.status!==200)throw new Error(L.statusText);return L.text()}).then(L=>{L=`${L}
|
||
|
//# sourceURL=${h}`,(i?self.eval(i.createScript("",L)):new Function(L)).call(self),e()}).then(void 0,C);return}i?importScripts(i.createScriptURL(h)):importScripts(h),e()})}function v(){require.config({baseUrl:M,catchError:!0,trustedTypesPolicy:i,amdModulesPattern:/^vs\//})}function o(e){y().then(()=>{v(),require([e],function(C){setTimeout(function(){const h=C.create((b,L)=>{self.postMessage(b,L)},null);for(self.onmessage=b=>h.onmessage(b.data,b.ports);N.length>0;)self.onmessage(N.shift())},0)})})}typeof self.define=="function"&&self.define.amd&&v();let f=!0;const N=[];self.onmessage=e=>{if(!f){N.push(e);return}f=!1,o(e.data)}}(),Y(X[24],Q([0,1]),function(U,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.CallbackIterable=n.ArrayQueue=n.findMinBy=n.findLastMaxBy=n.findMaxBy=n.numberComparator=n.compareBy=n.CompareResult=n.splice=n.insertInto=n.asArray=n.pushMany=n.pushToEnd=n.pushToStart=n.arrayInsert=n.range=n.firstOrDefault=n.lastIndex=n.findLast=n.distinct=n.isNonEmptyArray=n.isFalsyOrEmpty=n.coalesceInPlace=n.coalesce=n.groupBy=n.quickSelect=n.findFirstInSorted=n.binarySearch2=n.binarySearch=n.removeFastWithoutKeepingOrder=n.equals=n.tail2=n.tail=void 0;function A(k,T=0){return k[k.length-(1+T)]}n.tail=A;function M(k){if(k.length===0)throw new Error("Invalid tail call");return[k.slice(0,k.length-1),k[k.length-1]]}n.tail2=M;function i(k,T,I=(V,t)=>V===t){if(k===T)return!0;if(!k||!T||k.length!==T.length)return!1;for(let V=0,t=k.length;V<t;V++)if(!I(k[V],T[V]))return!1;return!0}n.equals=i;function u(k,T){const I=k.length-1;T<I&&(k[T]=k[I]),k.pop()}n.removeFastWithoutKeepingOrder=u;function y(k,T,I){return v(k.length,V=>I(k[V],T))}n.binarySearch=y;function v(k,T){let I=0,V=k-1;for(;I<=V;){const t=(I+V)/2|0,ne=T(t);if(ne<0)I=t+1;else if(ne>0)V=t-1;else return t}return-(I+1)}n.binarySearch2=v;function o(k,T){let I=0,V=k.length;if(V===0)return 0;for(;I<V;){const t=Math.floor((I+V)/2);T(k[t])?V=t:I=t+1}return I}n.findFirstInSorted=o;function f(k,T,I){if(k=k|0,k>=T.length)throw new TypeError("invalid index");const V=T[Math.floor(T.length*Math.random())],t=[],ne=[],oe=[];for(const de of T){const Le=I(de,V);Le<0?t.push(de):Le>0?ne.push(de):oe.push(de)}return k<t.length?f(k,t,I):k<t.length+oe.length?oe[0]:f(k-(t.length+oe.length),ne,I)}n.quickSelect=f;function N(k,T){const I=[];let V;for(const t of k.slice(0).sort(T))!V||T(V[0],t)!==0?(V=[t],I.push(V)):V.push(t);return I}n.groupBy=N;function e(k){return k.filter(T=>!!T)}n.coalesce=e;function C(k){let T=0;for(let I=0;I<k.length;I++)k[I]&&(k[T]=k[I],T+=1);k.length=T}n.coalesceInPlace=C;function h(k){return!Array.isArray(k)||k.length===0}n.isFalsyOrEmpty=h;function b(k){return Array.isArray(k)&&k.length>0}n.isNonEmptyArray=b;function L(k,T=I=>I){const I=new Set;return k.filter(V=>{const t=T(V);return I.has(t)?!1:(I.add(t),!0)})}n.distinct=L;function S(k,T){const I=_(k,T);if(I!==-1)return k[I]}n.findLast=S;function _(k,T){for(let I=k.length-1;I>=0;I--){const V=k[I];if(T(V))return I}return-1}n.lastIndex=_;function m(k,T){return k.length>0?k[0]:T}n.firstOrDefault=m;function w(k,T){let I=typeof T=="number"?k:0;typeof T=="number"?I=k:(I=0,T=k);const V=[];if(I<=T)for(let t=I;t<T;t++)V.push(t);else for(let t=I;t>T;t--)V.push(t);return V}n.range=w;function l(k,T,I){const V=k.slice(0,T),t=k.slice(T);return V.concat(I,t)}n.arrayInsert=l;function g(k,T){const I=k.indexOf(T);I>-1&&(k.splice(I,1),k.unshift(T))}n.pushToStart=g;function r(k,T){const I=k.indexOf(T);I>-1&&(k.splice(I,1),k.push(T))}n.pushToEnd=r;function a(k,T){for(const I of T)k.push(I)}n.pushMany=a;function s(k){return Array.isArray(k)?k:[k]}n.asArray=s;function c(k,T,I){const V=p(k,T),t=k.length,ne=I.length;k.length=t+ne;for(let oe=t-1;oe>=V;oe--)k[oe+ne]=k[oe];for(let oe=0;oe<ne;oe++)k[oe+V]=I[oe]}n.insertInto=c;function d(k,T,I,V){const t=p(k,T),ne=k.splice(t,I);return c(k,t,V),ne}n.splice=d;function p(k,T){return T<0?Math.max(T+k.length,0):Math.min(T,k.length)}var E;(function(k){function T(t){return t<0}k.isLessThan=T;function I(t){return t>0}k.isGreaterThan=I;function V(t){return t===0}k.isNeitherLessOrGreat
|
||
|
|
||
|
`+S.stack):new Error(S.message+`
|
||
|
|
||
|
`+S.stack):S},0)}}c(S){this.b.forEach(_=>{_(S)})}onUnexpectedError(S){this.a(S),this.c(S)}onUnexpectedExternalError(S){this.a(S)}}n.ErrorHandler=A,n.errorHandler=new A;function M(L){v(L)||n.errorHandler.onUnexpectedError(L)}n.onUnexpectedError=M;function i(L){v(L)||n.errorHandler.onUnexpectedExternalError(L)}n.onUnexpectedExternalError=i;function u(L){if(L instanceof Error){const{name:S,message:_}=L,m=L.stacktrace||L.stack;return{$isError:!0,name:S,message:_,stack:m,noTelemetry:h.isErrorNoTelemetry(L)}}return L}n.transformErrorForSerialization=u;const y="Canceled";function v(L){return L instanceof o?!0:L instanceof Error&&L.name===y&&L.message===y}n.isCancellationError=v;class o extends Error{constructor(){super(y),this.name=this.message}}n.CancellationError=o;function f(){const L=new Error(y);return L.name=L.message,L}n.canceled=f;function N(L){return L?new Error(`Illegal argument: ${L}`):new Error("Illegal argument")}n.illegalArgument=N;function e(L){return L?new Error(`Illegal state: ${L}`):new Error("Illegal state")}n.illegalState=e;class C extends Error{constructor(S){super("NotSupported"),S&&(this.message=S)}}n.NotSupportedError=C;class h extends Error{constructor(S){super(S),this.name="CodeExpectedError"}static fromError(S){if(S instanceof h)return S;const _=new h;return _.message=S.message,_.stack=S.stack,_}static isErrorNoTelemetry(S){return S.name==="CodeExpectedError"}}n.ErrorNoTelemetry=h;class b extends Error{constructor(S){super(S||"An unexpected bug occurred."),Object.setPrototypeOf(this,b.prototype);debugger}}n.BugIndicatingError=b}),Y(X[9],Q([0,1,8]),function(U,n,A){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.checkAdjacentItems=n.assertFn=n.assertNever=n.ok=void 0;function M(v,o){if(!v)throw new Error(o?`Assertion failed (${o})`:"Assertion Failed")}n.ok=M;function i(v,o="Unreachable"){throw new Error(o)}n.assertNever=i;function u(v){if(!v()){debugger;v(),(0,A.onUnexpectedError)(new A.BugIndicatingError("Assertion Failed"))}}n.assertFn=u;function y(v,o){let f=0;for(;f<v.length-1;){const N=v[f],e=v[f+1];if(!o(N,e))return!1;f++}return!0}n.checkAdjacentItems=y}),Y(X[13],Q([0,1]),function(U,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.once=void 0;function A(M){const i=this;let u=!1,y;return function(){return u||(u=!0,y=M.apply(i,arguments)),y}}n.once=A}),Y(X[14],Q([0,1]),function(U,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Iterable=void 0;var A;(function(M){function i(l){return l&&typeof l=="object"&&typeof l[Symbol.iterator]=="function"}M.is=i;const u=Object.freeze([]);function y(){return u}M.empty=y;function*v(l){yield l}M.single=v;function o(l){return i(l)?l:v(l)}M.wrap=o;function f(l){return l||u}M.from=f;function N(l){return!l||l[Symbol.iterator]().next().done===!0}M.isEmpty=N;function e(l){return l[Symbol.iterator]().next().value}M.first=e;function C(l,g){for(const r of l)if(g(r))return!0;return!1}M.some=C;function h(l,g){for(const r of l)if(g(r))return r}M.find=h;function*b(l,g){for(const r of l)g(r)&&(yield r)}M.filter=b;function*L(l,g){let r=0;for(const a of l)yield g(a,r++)}M.map=L;function*S(...l){for(const g of l)for(const r of g)yield r}M.concat=S;function _(l,g,r){let a=r;for(const s of l)a=g(a,s);return a}M.reduce=_;function*m(l,g,r=l.length){for(g<0&&(g+=l.length),r<0?r+=l.length:r>l.length&&(r=l.length);g<r;g++)yield l[g]}M.slice=m;function w(l,g=Number.POSITIVE_INFINITY){const r=[];if(g===0)return[r,l];const a=l[Symbol.iterator]();for(let s=0;s<g;s++){const c=a.next();if(c.done)return[r,M.empty()];r.push(c.value)}return[r,{[Symbol.iterator](){return a}}]}M.consume=w})(A=n.Iterable||(n.Iterable={}))}),Y(X[27],Q([0,1]),function(U,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.KeyChord=n.KeyCodeUtils=n.IMMUTABLE_KEY_CODE_TO_CODE=n.IMMUTABLE_CODE_TO_KEY_CODE=n.NATIVE_WINDOWS_KEY_CODE_TO_KEY_CODE=n.EVENT_KEY_CODE_MAP=void 0;class A{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(C,h){this._keyCodeToStr[C]=h,this._strToKeyCode[h.toLowerCase()]=C}keyCodeToStr(C){return this._key
|
||
|
`.charCodeAt(0),s+=1)}}getElement(g){return this.b[g]}get length(){return this.b.length}getBoundaryScore(g){const r=m(g>0?this.b[g-1]:-1),a=m(g<this.b.length?this.b[g]:-1);if(r===6&&a===7)return 0;let s=0;return r!==a&&(s+=10,a===1&&(s+=1)),s+=_(r),s+=_(a),s}translateOffset(g){let r=0,a=this.c.length;for(;r<a;){const c=Math.floor((r+a)/2);this.c[c]>g?a=c:r=c+1}const s=r===0?0:this.c[r-1];return new M.Position(r+1,g-s+1)}translateRange(g){return i.Range.fromPositions(this.translateOffset(g.start),this.translateOffset(g.endExclusive))}}const S={[0]:0,[1]:0,[2]:0,[3]:10,[4]:2,[5]:3,[6]:10,[7]:10};function _(l){return S[l]}function m(l){return l===10?7:l===13?6:w(l)?5:l>=97&&l<=122?0:l>=65&&l<=90?1:l>=48&&l<=57?2:l===-1?3:4}function w(l){return l===32||l===9}}),Y(X[39],Q([0,1,37,38]),function(U,n,A,M){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.linesDiffComputers=void 0,n.linesDiffComputers={smart:new A.SmartLinesDiffComputer,experimental:new M.StandardLinesDiffComputer}}),Y(X[40],Q([0,1,19]),function(U,n,A){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.computeLinks=n.LinkComputer=n.StateMachine=void 0;class M{constructor(C,h,b){const L=new Uint8Array(C*h);for(let S=0,_=C*h;S<_;S++)L[S]=b;this.a=L,this.rows=C,this.cols=h}get(C,h){return this.a[C*this.cols+h]}set(C,h,b){this.a[C*this.cols+h]=b}}class i{constructor(C){let h=0,b=0;for(let S=0,_=C.length;S<_;S++){const[m,w,l]=C[S];w>h&&(h=w),m>b&&(b=m),l>b&&(b=l)}h++,b++;const L=new M(b,h,0);for(let S=0,_=C.length;S<_;S++){const[m,w,l]=C[S];L.set(m,w,l)}this.a=L,this.b=h}nextState(C,h){return h<0||h>=this.b?0:this.a.get(C,h)}}n.StateMachine=i;let u=null;function y(){return u===null&&(u=new i([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),u}let v=null;function o(){if(v===null){v=new A.CharacterClassifier(0);const e=` <>'"\u3001\u3002\uFF61\uFF64\uFF0C\uFF0E\uFF1A\uFF1B\u2018\u3008\u300C\u300E\u3014\uFF08\uFF3B\uFF5B\uFF62\uFF63\uFF5D\uFF3D\uFF09\u3015\u300F\u300D\u3009\u2019\uFF40\uFF5E\u2026`;for(let h=0;h<e.length;h++)v.set(e.charCodeAt(h),1);const C=".,;:";for(let h=0;h<C.length;h++)v.set(C.charCodeAt(h),2)}return v}class f{static a(C,h,b,L,S){let _=S-1;do{const m=h.charCodeAt(_);if(C.get(m)!==2)break;_--}while(_>L);if(L>0){const m=h.charCodeAt(L-1),w=h.charCodeAt(_);(m===40&&w===41||m===91&&w===93||m===123&&w===125)&&_--}return{range:{startLineNumber:b,startColumn:L+1,endLineNumber:b,endColumn:_+2},url:h.substring(L,_+1)}}static computeLinks(C,h=y()){const b=o(),L=[];for(let S=1,_=C.getLineCount();S<=_;S++){const m=C.getLineContent(S),w=m.length;let l=0,g=0,r=0,a=1,s=!1,c=!1,d=!1,p=!1;for(;l<w;){let E=!1;const R=m.charCodeAt(l);if(a===13){let D;switch(R){case 40:s=!0,D=0;break;case 41:D=s?0:1;break;case 91:d=!0,c=!0,D=0;break;case 93:d=!1,D=c?0:1;break;case 123:p=!0,D=0;break;case 125:D=p?0:1;break;case 39:case 34:case 96:r===R?D=1:r===39||r===34||r===96?D=0:D=1;break;case 42:D=r===42?1:0;break;case 124:D=r===124?1:0;break;case 32:D=d?0:1;break;default:D=b.get(R)}D===1&&(L.push(f.a(b,m,S,g,l)),E=!0)}else if(a===12){let D;R===91?(c=!0,D=0):D=b.get(R),D===1?E=!0:a=13}else a=h.nextState(a,R),a===0&&(E=!0);E&&(a=1,s=!1,c=!1,p=!1,g=l+1,r=R),l++}a===13&&L.push(f.a(b,m,S,g,w))}return L}}n.LinkComputer=f;function N(e){return!e||typeof e.getLineCount!="function"||typeof e.getLineContent!="function"?[]:f.computeLinks(e)}n.computeLinks=N}),Y(X[41],Q([0,1]),function(U,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.BasicInplaceReplace=void 0;class A{constructor(){this.c=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(i,u,y,v,o){if(i&&u){const f=this.a(u,o);if(f)return{range:i,value:f}}if(y&&v){const f=this.a(v,o);if(f)return{range:y,value:f}}return null}a(i,u){const y=this.b(i,u);return y!==null?y:this.d(i,u)}b(i,u){const y=Math.pow(10,i.length-(i.last
|
||
|
`)>=0;let w=null;try{w=A.createRegExp(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:m,global:!0,unicode:!0})}catch{return null}if(!w)return null;let l=!this.isRegex&&!m;return l&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(l=this.matchCase),new y.SearchData(w,this.wordSeparators?(0,M.getMapForWordSeparators)(this.wordSeparators):null,l?this.searchString:null)}}n.SearchParams=o;function f(_){if(!_||_.length===0)return!1;for(let m=0,w=_.length;m<w;m++){const l=_.charCodeAt(m);if(l===10)return!0;if(l===92){if(m++,m>=w)break;const g=_.charCodeAt(m);if(g===110||g===114||g===87)return!0}}return!1}n.isMultilineRegexSource=f;function N(_,m,w){if(!w)return new y.FindMatch(_,null);const l=[];for(let g=0,r=m.length;g<r;g++)l[g]=m[g];return new y.FindMatch(_,l)}n.createFindMatch=N;class e{constructor(m){const w=[];let l=0;for(let g=0,r=m.length;g<r;g++)m.charCodeAt(g)===10&&(w[l++]=g);this.a=w}findLineFeedCountBeforeOffset(m){const w=this.a;let l=0,g=w.length-1;if(g===-1||m<=w[0])return 0;for(;l<g;){const r=l+((g-l)/2>>0);w[r]>=m?g=r-1:w[r+1]>=m?(l=r,g=r):l=r+1}return l+1}}class C{static findMatches(m,w,l,g,r){const a=w.parseSearchRequest();return a?a.regex.multiline?this.b(m,l,new S(a.wordSeparators,a.regex),g,r):this.c(m,l,a,g,r):[]}static a(m,w,l,g,r,a){let s,c=0;g?(c=g.findLineFeedCountBeforeOffset(r),s=w+r+c):s=w+r;let d;if(g){const D=g.findLineFeedCountBeforeOffset(r+a.length)-c;d=s+a.length+D}else d=s+a.length;const p=m.getPositionAt(s),E=m.getPositionAt(d);return new u.Range(p.lineNumber,p.column,E.lineNumber,E.column)}static b(m,w,l,g,r){const a=m.getOffsetAt(w.getStartPosition()),s=m.getValueInRange(w,1),c=m.getEOL()===`\r
|
||
|
`?new e(s):null,d=[];let p=0,E;for(l.reset(0);E=l.next(s);)if(d[p++]=N(this.a(m,a,s,c,E.index,E[0]),E,g),p>=r)return d;return d}static c(m,w,l,g,r){const a=[];let s=0;if(w.startLineNumber===w.endLineNumber){const d=m.getLineContent(w.startLineNumber).substring(w.startColumn-1,w.endColumn-1);return s=this.d(l,d,w.startLineNumber,w.startColumn-1,s,a,g,r),a}const c=m.getLineContent(w.startLineNumber).substring(w.startColumn-1);s=this.d(l,c,w.startLineNumber,w.startColumn-1,s,a,g,r);for(let d=w.startLineNumber+1;d<w.endLineNumber&&s<r;d++)s=this.d(l,m.getLineContent(d),d,0,s,a,g,r);if(s<r){const d=m.getLineContent(w.endLineNumber).substring(0,w.endColumn-1);s=this.d(l,d,w.endLineNumber,0,s,a,g,r)}return a}static d(m,w,l,g,r,a,s,c){const d=m.wordSeparators;if(!s&&m.simpleSearch){const R=m.simpleSearch,D=R.length,F=w.length;let W=-D;for(;(W=w.indexOf(R,W+D))!==-1;)if((!d||L(d,w,F,W,D))&&(a[r++]=new y.FindMatch(new u.Range(l,W+1+g,l,W+1+D+g),null),r>=c))return r;return r}const p=new S(m.wordSeparators,m.regex);let E;p.reset(0);do if(E=p.next(w),E&&(a[r++]=N(new u.Range(l,E.index+1+g,l,E.index+1+E[0].length+g),E,s),r>=c))return r;while(E);return r}static findNextMatch(m,w,l,g){const r=w.parseSearchRequest();if(!r)return null;const a=new S(r.wordSeparators,r.regex);return r.regex.multiline?this.e(m,l,a,g):this.f(m,l,a,g)}static e(m,w,l,g){const r=new i.Position(w.lineNumber,1),a=m.getOffsetAt(r),s=m.getLineCount(),c=m.getValueInRange(new u.Range(r.lineNumber,r.column,s,m.getLineMaxColumn(s)),1),d=m.getEOL()===`\r
|
||
|
`?new e(c):null;l.reset(w.column-1);const p=l.next(c);return p?N(this.a(m,a,c,d,p.index,p[0]),p,g):w.lineNumber!==1||w.column!==1?this.e(m,new i.Position(1,1),l,g):null}static f(m,w,l,g){const r=m.getLineCount(),a=w.lineNumber,s=m.getLineContent(a),c=this.g(l,s,a,w.column,g);if(c)return c;for(let d=1;d<=r;d++){const p=(a+d-1)%r,E=m.getLineContent(p+1),R=this.g(l,E,p+1,1,g);if(R)return R}return null}static g(m,w,l,g,r){m.reset(g-1);const a=m.next(w);return a?N(new u.Range(l,a.index+1,l,a.index+1+a[0].length),a,r):null}static findPreviousMatch(m,w,l,g){const r=w.parseSearchRequest();if(!r)return null;const a=new S(r.wordSeparators,r.regex);return r.regex.multiline?this.h(m,l,a,g):this.j(m,l,a,g)}static h(m,w,l,g){const r=this.b(m,new u.Range(1,1,w.lineNumber,w.column),l,g,10*v);if(r.length>0)return r[r.length-1];const a=m.getLineCount();return w.lineNumber!==a||w.column!==m.getLineMaxColumn(a)?this.h(m,new i.Position(a,m.getLineMaxColumn(a)),l,g):null}static j(m,w,l,g){const r=m.getLineCount(),a=w.lineNumber,s=m.getLineContent(a).substring(0,w.column-1),c=this.k(l,s,a,g);if(c)return c;for(let d=1;d<=r;d++){const p=(r+a-d-1)%r,E=m.getLineContent(p+1),R=this.k(l,E,p+1,g);if(R)return R}return null}static k(m,w,l,g){let r=null,a;for(m.reset(0);a=m.next(w);)r=N(new u.Range(l,a.index+1,l,a.index+1+a[0].length),a,g);return r}}n.TextModelSearch=C;function h(_,m,w,l,g){if(l===0)return!0;const r=m.charCodeAt(l-1);if(_.get(r)!==0||r===13||r===10)return!0;if(g>0){const a=m.charCodeAt(l);if(_.get(a)!==0)return!0}return!1}function b(_,m,w,l,g){if(l+g===w)return!0;const r=m.charCodeAt(l+g);if(_.get(r)!==0||r===13||r===10)return!0;if(g>0){const a=m.charCodeAt(l+g-1);if(_.get(a)!==0)return!0}return!1}function L(_,m,w,l,g){return h(_,m,w,l,g)&&b(_,m,w,l,g)}n.isValidMatch=L;class S{constructor(m,w){this._wordSeparators=m,this.a=w,this.b=-1,this.c=0}reset(m){this.a.lastIndex=m,this.b=-1,this.c=0}next(m){const w=m.length;let l;do{if(this.b+this.c===w||(l=this.a.exec(m),!l))return null;const g=l.index,r=l[0].length;if(g===this.b&&r===this.c){if(r===0){A.getNextCodePoint(m,w,this.a.lastIndex)>65535?this.a.lastIndex+=2:this.a.lastIndex+=1;continue}return null}if(this.b=g,this.c=r,!this._wordSeparators||L(this._wordSeparators,m,w,g,r))return l}while(l);return null}}n.Searcher=S}),Y(X[46],Q([0,1,2,45,4,9,20]),function(U,n,A,M,i,u,y){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.UnicodeTextModelHighlighter=void 0;class v{static computeUnicodeHighlights(C,h,b){const L=b?b.startLineNumber:1,S=b?b.endLineNumber:C.getLineCount(),_=new f(h),m=_.getCandidateCodePoints();let w;m==="allNonBasicAscii"?w=new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):w=new RegExp(`${o(Array.from(m))}`,"g");const l=new M.Searcher(null,w),g=[];let r=!1,a,s=0,c=0,d=0;e:for(let p=L,E=S;p<=E;p++){const R=C.getLineContent(p),D=R.length;l.reset(0);do if(a=l.next(R),a){let F=a.index,W=a.index+a[0].length;if(F>0){const k=R.charCodeAt(F-1);i.isHighSurrogate(k)&&F--}if(W+1<D){const k=R.charCodeAt(W-1);i.isHighSurrogate(k)&&W++}const B=R.substring(F,W);let q=(0,y.getWordAtText)(F+1,y.DEFAULT_WORD_REGEXP,R,0);q&&q.endColumn<=F+1&&(q=null);const G=_.shouldHighlightNonBasicASCII(B,q?q.word:null);if(G!==0){G===3?s++:G===2?c++:G===1?d++:(0,u.assertNever)(G);const k=1e3;if(g.length>=k){r=!0;break e}g.push(new A.Range(p,F+1,p,W+1))}}while(a)}return{ranges:g,hasMore:r,ambiguousCharacterCount:s,invisibleCharacterCount:c,nonBasicAsciiCharacterCount:d}}static computeUnicodeHighlightReason(C,h){const b=new f(h);switch(b.shouldHighlightNonBasicASCII(C,null)){case 0:return null;case 2:return{kind:1};case 3:{const S=C.codePointAt(0),_=b.ambiguousCharacters.getPrimaryConfusable(S),m=i.AmbiguousCharacters.getLocales().filter(w=>!i.AmbiguousCharacters.getInstance(new Set([...h.allowedLocales,w])).isAmbiguous(S));return{kind:0,confusableWith:String.fromCodePoint(_),notAmbiguousInLocales:m}}case 1:return{kind:2}}}}n.UnicodeTextModelHighlighter=v;function o(e,C){return`[${i.escapeRegExpCharacters(e.map(b=>String.fromCodePoint(b)).join(""))}]`}class f{constructor(C){this.b=C,this.a=new Set(C.all
|
||
|
`||e===" "}}),Y(X[47],Q([0,1]),function(U,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.WrappingIndent=n.TrackedRangeStickiness=n.TextEditorCursorStyle=n.TextEditorCursorBlinkingStyle=n.SymbolTag=n.SymbolKind=n.SignatureHelpTriggerKind=n.SelectionDirection=n.ScrollbarVisibility=n.ScrollType=n.RenderMinimap=n.RenderLineNumbersType=n.PositionAffinity=n.OverviewRulerLane=n.OverlayWidgetPositionPreference=n.MouseTargetType=n.MinimapPosition=n.MarkerTag=n.MarkerSeverity=n.KeyCode=n.InlineCompletionTriggerKind=n.InlayHintKind=n.InjectedTextCursorStops=n.IndentAction=n.EndOfLineSequence=n.EndOfLinePreference=n.EditorOption=n.EditorAutoIndentStrategy=n.DocumentHighlightKind=n.DefaultEndOfLine=n.CursorChangeReason=n.ContentWidgetPositionPreference=n.CompletionTriggerKind=n.CompletionItemTag=n.CompletionItemKind=n.CompletionItemInsertTextRule=n.CodeActionTriggerType=n.AccessibilitySupport=void 0;var A;(function(t){t[t.Unknown=0]="Unknown",t[t.Disabled=1]="Disabled",t[t.Enabled=2]="Enabled"})(A=n.AccessibilitySupport||(n.AccessibilitySupport={}));var M;(function(t){t[t.Invoke=1]="Invoke",t[t.Auto=2]="Auto"})(M=n.CodeActionTriggerType||(n.CodeActionTriggerType={}));var i;(function(t){t[t.None=0]="None",t[t.KeepWhitespace=1]="KeepWhitespace",t[t.InsertAsSnippet=4]="InsertAsSnippet"})(i=n.CompletionItemInsertTextRule||(n.CompletionItemInsertTextRule={}));var u;(function(t){t[t.Method=0]="Method",t[t.Function=1]="Function",t[t.Constructor=2]="Constructor",t[t.Field=3]="Field",t[t.Variable=4]="Variable",t[t.Class=5]="Class",t[t.Struct=6]="Struct",t[t.Interface=7]="Interface",t[t.Module=8]="Module",t[t.Property=9]="Property",t[t.Event=10]="Event",t[t.Operator=11]="Operator",t[t.Unit=12]="Unit",t[t.Value=13]="Value",t[t.Constant=14]="Constant",t[t.Enum=15]="Enum",t[t.EnumMember=16]="EnumMember",t[t.Keyword=17]="Keyword",t[t.Text=18]="Text",t[t.Color=19]="Color",t[t.File=20]="File",t[t.Reference=21]="Reference",t[t.Customcolor=22]="Customcolor",t[t.Folder=23]="Folder",t[t.TypeParameter=24]="TypeParameter",t[t.User=25]="User",t[t.Issue=26]="Issue",t[t.Snippet=27]="Snippet"})(u=n.CompletionItemKind||(n.CompletionItemKind={}));var y;(function(t){t[t.Deprecated=1]="Deprecated"})(y=n.CompletionItemTag||(n.CompletionItemTag={}));var v;(function(t){t[t.Invoke=0]="Invoke",t[t.TriggerCharacter=1]="TriggerCharacter",t[t.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(v=n.CompletionTriggerKind||(n.CompletionTriggerKind={}));var o;(function(t){t[t.EXACT=0]="EXACT",t[t.ABOVE=1]="ABOVE",t[t.BELOW=2]="BELOW"})(o=n.ContentWidgetPositionPreference||(n.ContentWidgetPositionPreference={}));var f;(function(t){t[t.NotSet=0]="NotSet",t[t.ContentFlush=1]="ContentFlush",t[t.RecoverFromMarkers=2]="RecoverFromMarkers",t[t.Explicit=3]="Explicit",t[t.Paste=4]="Paste",t[t.Undo=5]="Undo",t[t.Redo=6]="Redo"})(f=n.CursorChangeReason||(n.CursorChangeReason={}));var N;(function(t){t[t.LF=1]="LF",t[t.CRLF=2]="CRLF"})(N=n.DefaultEndOfLine||(n.DefaultEndOfLine={}));var e;(function(t){t[t.Text=0]="Text",t[t.Read=1]="Read",t[t.Write=2]="Write"})(e=n.DocumentHighlightKind||(n.DocumentHighlightKind={}));var C;(function(t){t[t.None=0]="None",t[t.Keep=1]="Keep",t[t.Brackets=2]="Brackets",t[t.Advanced=3]="Advanced",t[t.Full=4]="Full"})(C=n.EditorAutoIndentStrategy||(n.EditorAutoIndentStrategy={}));var h;(function(t){t[t.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",t[t.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",t[t.accessibilitySupport=2]="accessibilitySupport",t[t.accessibilityPageSize=3]="accessibilityPageSize",t[t.ariaLabel=4]="ariaLabel",t[t.autoClosingBrackets=5]="autoClosingBrackets",t[t.autoClosingDelete=6]="autoClosingDelete",t[t.autoClosingOvertype=7]="autoClosingOvertype",t[t.autoClosingQuotes=8]="autoClosingQuotes",t[t.autoIndent=9]="autoIndent",t[t.automaticLayout=10]="automaticLayout",t[t.autoSurround=11]="autoSurround",t[t.bracketPairColorization=12]="bracketPairColorization",t[t.guides=13]="guides",t[t.codeLens=14]="codeLens",t[t.codeLensFontFamily=15]="codeLensFontFamily",t[t.codeLensFo
|
||
|
`).slice(2).join(`
|
||
|
`))}}class b{constructor(d,p,E){this.callback=d,this.callbackThis=p,this.stack=E,this.subscription=new i.SafeDisposable}invoke(d){this.callback.call(this.callbackThis,d)}}class L{constructor(d){var p,E,R,D,F;this.j=!1,this.d=d,this.f=e>0||((p=this.d)===null||p===void 0?void 0:p.leakWarningThreshold)?new C((R=(E=this.d)===null||E===void 0?void 0:E.leakWarningThreshold)!==null&&R!==void 0?R:e):void 0,this.g=!((D=this.d)===null||D===void 0)&&D._profName?new N(this.d._profName):void 0,this.m=(F=this.d)===null||F===void 0?void 0:F.deliveryQueue}dispose(){var d,p,E,R;if(!this.j){if(this.j=!0,this.n){if(v){const D=Array.from(this.n);queueMicrotask(()=>{var F;for(const W of D)W.subscription.isset()&&(W.subscription.unset(),(F=W.stack)===null||F===void 0||F.print())})}this.n.clear()}(d=this.m)===null||d===void 0||d.clear(this),(E=(p=this.d)===null||p===void 0?void 0:p.onDidRemoveLastListener)===null||E===void 0||E.call(p),(R=this.f)===null||R===void 0||R.dispose()}}get event(){return this.l||(this.l=(d,p,E)=>{var R,D,F;if(this.n||(this.n=new u.LinkedList),this.f&&this.n.size>this.f.threshold*3)return console.warn(`[${this.f.name}] REFUSES to accept new listeners because it exceeded its threshold by far`),i.Disposable.None;const W=this.n.isEmpty();W&&((R=this.d)===null||R===void 0?void 0:R.onWillAddFirstListener)&&this.d.onWillAddFirstListener(this);let B,q;this.f&&this.n.size>=Math.ceil(this.f.threshold*.2)&&(q=h.create(),B=this.f.check(q,this.n.size+1)),v&&(q=q??h.create());const G=new b(d,p,q),k=this.n.push(G);W&&((D=this.d)===null||D===void 0?void 0:D.onDidAddFirstListener)&&this.d.onDidAddFirstListener(this),!((F=this.d)===null||F===void 0)&&F.onDidAddListener&&this.d.onDidAddListener(this,d,p);const T=G.subscription.set(()=>{var I,V;B?.(),this.j||((V=(I=this.d)===null||I===void 0?void 0:I.onWillRemoveListener)===null||V===void 0||V.call(I,this),k(),this.d&&this.d.onDidRemoveLastListener&&(this.n&&!this.n.isEmpty()||this.d.onDidRemoveLastListener(this)))});return E instanceof i.DisposableStore?E.add(T):Array.isArray(E)&&E.push(T),T}),this.l}fire(d){var p,E;if(this.n){this.m||(this.m=new _);for(const R of this.n)this.m.push(this,R,d);(p=this.g)===null||p===void 0||p.start(this.m.size),this.m.deliver(),(E=this.g)===null||E===void 0||E.stop()}}hasListeners(){return this.n?!this.n.isEmpty():!1}}n.Emitter=L;class S{constructor(){this.c=new u.LinkedList}get size(){return this.c.size}push(d,p,E){this.c.push(new m(d,p,E))}clear(d){const p=new u.LinkedList;for(const E of this.c)E.emitter!==d&&p.push(E);this.c=p}deliver(){for(;this.c.size>0;){const d=this.c.shift();try{d.listener.invoke(d.event)}catch(p){(0,A.onUnexpectedError)(p)}}}}n.EventDeliveryQueue=S;class _ extends S{clear(d){this.c.clear()}}class m{constructor(d,p,E){this.emitter=d,this.listener=p,this.event=E}}class w extends L{constructor(d){super(d),this.c=0,this.h=new u.LinkedList,this.k=d?.merge}pause(){this.c++}resume(){if(this.c!==0&&--this.c===0)if(this.k){if(this.h.size>0){const d=Array.from(this.h);this.h.clear(),super.fire(this.k(d))}}else for(;!this.c&&this.h.size!==0;)super.fire(this.h.shift())}fire(d){this.n&&(this.c!==0?this.h.push(d):super.fire(d))}}n.PauseableEmitter=w;class l extends w{constructor(d){var p;super(d),this.o=(p=d.delay)!==null&&p!==void 0?p:100}fire(d){this.p||(this.pause(),this.p=setTimeout(()=>{this.p=void 0,this.resume()},this.o)),super.fire(d)}}n.DebounceEmitter=l;class g extends L{constructor(d){super(d),this.c=[],this.h=d?.merge}fire(d){!this.hasListeners()||(this.c.push(d),this.c.length===1&&queueMicrotask(()=>{this.h?super.fire(this.h(this.c)):this.c.forEach(p=>super.fire(p)),this.c=[]}))}}n.MicrotaskEmitter=g;class r{constructor(){this.d=!1,this.f=[],this.c=new L({onWillAddFirstListener:()=>this.g(),onDidRemoveLastListener:()=>this.h()})}get event(){return this.c.event}add(d){const p={event:d,listener:null};this.f.push(p),this.d&&this.j(p);const E=()=>{this.d&&this.k(p);const R=this.f.indexOf(p);this.f.splice(R,1)};return(0,i.toDisposable)((0,M.once)(E))}g(){this.d=!0,this.f.forEach(d=>this.j(d))}h(){this.d=!1,this.f.forEach(d=>this.k(d
|
||
|
|
||
|
//# sourceMappingURL=../../../../min-maps/vs/base/worker/workerMain.js.map
|