2024-02-21 22:15:21 +00:00
/ * ! - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
* Copyright ( c ) Microsoft Corporation . All rights reserved .
2024-05-28 17:59:44 +00:00
* Version : 0.49 . 0 ( 383 fdf3fc0e1e1a024068b8d0fd4f3dcbae74d04 )
2024-02-21 22:15:21 +00:00
* Released under the MIT license
* https : //github.com/microsoft/vscode/blob/main/LICENSE.txt
2024-05-28 17:59:44 +00:00
* -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- - * / ( f u n c t i o n ( ) { v a r Y = [ " r e q u i r e " , " e x p o r t s " , " v s / e d i t o r / c o m m o n / c o r e / r a n g e " , " v s / e d i t o r / c o m m o n / c o r e / o f f s e t R a n g e " , " v s / e d i t o r / c o m m o n / c o r e / p o s i t i o n " , " v s / b a s e / c o m m o n / e r r o r s " , " v s / b a s e / c o m m o n / s t r i n g s " , " v s / b a s e / c o m m o n / a r r a y s " , " v s / e d i t o r / c o m m o n / d i f f / d e f a u l t L i n e s D i f f C o m p u t e r / a l g o r i t h m s / d i f f A l g o r i t h m " , " v s / b a s e / c o m m o n / a s s e r t " , " v s / b a s e / c o m m o n / e v e n t " , " v s / e d i t o r / c o m m o n / c o r e / l i n e R a n g e " , " v s / b a s e / c o m m o n / a r r a y s F i n d " , " v s / b a s e / c o m m o n / l i f e c y c l e " , " v s / b a s e / c o m m o n / o b j e c t s " , " v s / e d i t o r / c o m m o n / d i f f / d e f a u l t L i n e s D i f f C o m p u t e r / u t i l s " , " v s / e d i t o r / c o m m o n / d i f f / r a n g e M a p p i n g " , " v s / b a s e / c o m m o n / p l a t f o r m " , " v s / b a s e / c o m m o n / u r i " , " v s / n l s " , " v s / b a s e / c o m m o n / f u n c t i o n a l " , " v s / b a s e / c o m m o n / i t e r a t o r " , " v s / b a s e / c o m m o n / l i n k e d L i s t " , " v s / b a s e / c o m m o n / m a p " , " v s / b a s e / c o m m o n / s t o p w a t c h " , " v s / b a s e / c o m m o n / d i f f / d i f f " , " v s / b a s e / c o m m o n / t y p e s " , " v s / b a s e / c o m m o n / c o d i c o n s U t i l " , " v s / b a s e / c o m m o n / u i n t " , " v s / e d i t o r / c o m m o n / c o r e / c h a r a c t e r C l a s s i f i e r " , " v s / e d i t o r / c o m m o n / c o r e / t e x t L e n g t h " , " v s / e d i t o r / c o m m o n / c o r e / w o r d H e l p e r " , " v s / e d i t o r / c o m m o n / d i f f / d e f a u l t L i n e s D i f f C o m p u t e r / a l g o r i t h m s / m y e r s D i f f A l g o r i t h m " , " v s / e d i t o r / c o m m o n / d i f f / d e f a u l t L i n e s D i f f C o m p u t e r / l i n e s S l i c e C h a r S e q u e n c e " , " v s / e d i t o r / c o m m o n / d i f f / l i n e s D i f f C o m p u t e r " , " v s / b a s e / c o m m o n / c a c h e " , " v s / b a s e / c o m m o n / c o l o r " , " v s / b a s e / c o m m o n / d i f f / d i f f C h a n g e " , " v s / b a s e / c o m m o n / k e y C o d e s " , " v s / b a s e / c o m m o n / l a z y " , " v s / b a s e / c o m m o n / c a n c e l l a t i o n " , " v s / b a s e / c o m m o n / h a s h " , " v s / b a s e / c o m m o n / c o d i c o n s L i b r a r y " , " v s / b a s e / c o m m o n / c o d i c o n s " , " v s / e d i t o r / c o m m o n / c o r e / s e l e c t i o n " , " v s / e d i t o r / c o m m o n / c o r e / p o s i t i o n T o O f f s e t " , " v s / e d i t o r / c o m m o n / c o r e / t e x t E d i t " , " v s / e d i t o r / c o m m o n / c o r e / w o r d C h a r a c t e r C l a s s i f i e r " , " v s / e d i t o r / c o m m o n / d i f f / d e f a u l t L i n e s D i f f C o m p u t e r / h e u r i s t i c S e q u e n c e O p t i m i z a t i o n s " , " v s / e d i t o r / c o m m o n / d i f f / d e f a u l t L i n e s D i f f C o m p u t e r / l i n e S e q u e n c e " , " v s / e d i t o r / c o m m o n / d i f f / d e f a u l t L i n e s D i f f C o m p u t e r / a l g o r i t h m s / d y n a m i c P r o g r a m m i n g D i f f i n g " , " v s / e d i t o r / c o m m o n / d i f f / d e f a u l t L i n e s D i f f C o m p u t e r / c o m p u t e M o v e d L i n e s " , " v s / e d i t o r / c o m m o n / d i f f / d e f a u l t L i n e s D i f f C o m p u t e r / d e f a u l t L i n e s D i f f C o m p u t e r " , " v s / e d i t o r / c o m m o n / d i f f / l e g a c y L i n e s D i f f C o m p u t e r " , " v s / e d i t o r / c o m m o n / d i f f / l i n e s D i f f C o m p u t e r s " , " v s / e d i t o r / c o m m o n / l a n g u a g e s / d e f a u l t D o c u m e n t C o l o r s C o m p u t e r " , " v s / e d i t o r / c o m m o n / l a n g u a g e s / l i n k C o m p u t e r " , " v s / e d i t o r / c o m m o n / l a n g u a g e s / s u p p o r t s / i n p l a c e R e p l a c e S u p p o r t " , " v s / e d i t o r / c o m m o n / m o d e l " , " v s / e d i t o r / c o m m o n / m o d e l / p r e f i x S u m C o m p u t e r " , " v s / e d i t o r / c o m m o n / m o d e l / m i r r o r T e x t M o d e l " , " v s / e d i t o r / c o m m o n / m o d e l / t e x t M o d e l S e a r c h " , " v s / e d i t o r / c o m m o n / s e r v i c e s / f i n d S e c t i o n H e a d e r s " , " v s / e d i t o r / c o m m o n / s e r v i c e s / u n i c o d e T e x t M o d e l H i g h l i g h t e r " , " v s / e d i t o r / c o m m o n / s t a n d a l o n e / s t a n d a l o n e E n u m s " , " v s / e d i t o r / c o m m o n / t o k e n i z a t i o n R e g i s t r y " , " v s / n l s ! v s / b a s e / c o m m o n / p l a t f o r m " , " v s / n l s ! v s / b a s e / c o m m o n / w o r k e r / s i m p l e W o r k e r " , " v s / b a s e / c o m m o n / p r o c e s s " , " v s / b a s e / c o m m o n / p a t h " , " v s / n l s ! v s / e d i t o r / c o m m o n / l a n g u a g e s " , " v s / e d i t o r / c o m m o n / l a n g u a g e s " , " v s / e d i t o r / c o m m o n / s e r v i c e s / e d i t o r B a s e A p i " , " v s / b a s e / c o m m o n / w o r k e r / s i m p l e W o r k e r " , " v s / e d i t o r / c o m m o n / s e r v i c e s / e d i t o r S i m p l e W o r k e r " ] , J = f u n c t i o n ( q ) { f o r ( v a r r = [ ] , n = 0 , x = q . l e n g t h ; n < x ; n + + ) r [ n ] = Y [ q [ n ] ] ; r e t u r n r } ; c o n s t R e = t h i s , A e = t y p e o f g l o b a l = = " o b j e c t " ? g l o b a l : { } ; v a r u e ; ( f u n c t i o n ( q ) { q . g l o b a l = R e ; c l a s s r { g e t i s W i n d o w s ( ) { r e t u r n t h i s . _ d e t e c t ( ) , t h i s . _ i s W i n d o w s } g e t i s N o d e ( ) { r e t u r n t h i s . _ d e t e c t ( ) , t h i s . _ i s N o d e } g e t i s E l e c t r o n R e n d e r e r ( ) { r e t u r n t h i s . _ d e t e c t ( ) , t h i s . _ i s E l e c t r o n R e n d e r e r } g e t i s W e b W o r k e r ( ) { r e t u r n t h i s . _ d e t e c t ( ) , t h i s . _ i s W e b W o r k e r } g e t i s E l e c t r o n N o d e I n t e g r a t i o n W e b W o r k e r ( ) { r e t u r n t h i s . _ d e t e c t ( ) , t h i s . _ i s E l e c t r o n N o d e I n t e g r a t i o n W e b W o r k e r } c o n s t r u c t o r ( ) { t h i s . _ d e t e c t e d = ! 1 , t h i s . _ i s W i n d o w s = ! 1 , t h i s . _ i s N o d e = ! 1 , t h i s . _ i s E l e c t r o n R e n d e r e r = ! 1 , t h i s . _ i s W e b W o r k e r = ! 1 , t h i s . _ i s E l e c t r o n N o d e I n t e g r a t i o n W e b W o r k e r = ! 1 } _ d e t e c t ( ) { t h i s . _ d e t e c t e d | | ( t h i s . _ d e t e c t e d = ! 0 , t h i s . _ i s W i n d o w s = r . _ i s W i n d o w s ( ) , t h i s . _ i s N o d e = t y p e o f m o d u l e < " u " & & ! ! m o d u l e . e x p o r t s , t h i s . _ i s E l e c t r o n R e n d e r e r = t y p e o f p r o c e s s < " u " & & t y p e o f p r o c e s s . v e r s i o n s < " u " & & t y p e o f p r o c e s s . v e r s i o n s . e l e c t r o n < " u " & & p r o c e s s . t y p e = = = " r e n d e r e r " , t h i s . _ i s W e b W o r k e r = t y p e o f q . g l o b a l . i m p o r t S c r i p t s = = " f u n c t i o n " , t h i s . _ i s E l e c t r o n N o d e I n t e g r a t i o n W e b W o r k e r = t h i s . _ i s W e b W o r k e r & & t y p e o f p r o c e s s < " u " & & t y p e o f p r o c e s s . v e r s i o n s < " u " & & t y p e o f p r o c e s s . v e r s i o n s . e l e c t r o n < " u " & & p r o c e s s . t y p e = = = " w o r k e r " ) } s t a t i c _ i s W i n d o w s ( ) { r e t u r n t y p e o f n a v i g a t o r < " u " & & n a v i g a t o r . u s e r A g e n t & & n a v i
//# sourceURL=${m}`,(s?self.eval(s.createScript("",d)):new Function(d)).call(self),e()}).then(void 0,c);return}try{s&&(m=s.createScriptURL(m)),importScripts(m),e()}catch(d){c(d)}}}}class b{constructor(a){this._env=a,this._didInitialize=!1,this._didPatchNodeRequire=!1}_init(a){this._didInitialize||(this._didInitialize=!0,this._fs=a("fs"),this._vm=a("vm"),this._path=a("path"),this._crypto=a("crypto"))}_initNodeRequire(a,m){const{nodeCachedData:e}=m.getConfig().getOptionsLiteral();if(!e||this._didPatchNodeRequire)return;this._didPatchNodeRequire=!0;const c=this,s=a("module");function u(d){const h=d.constructor;let S=function(y){try{return d.require(y)}finally{}};return S.resolve=function(y,A){return h._resolveFilename(y,d,!1,A)},S.resolve.paths=function(y){return h._resolveLookupPaths(y,d)},S.main=process.mainModule,S.extensions=h._extensions,S.cache=h._cache,S}s.prototype._compile=function(d,h){const S=s.wrap(d.replace(/^#!.*/,"")),C=m.getRecorder(),y=c._getCachedDataPath(e,h),A={filename:h};let p;try{const N=c._fs.readFileSync(y);p=N.slice(0,16),A.cachedData=N.slice(16),C.record(60,y)}catch{C.record(61,y)}const i=new c._vm.Script(S,A),l=i.runInThisContext(A),g=c._path.dirname(h),w=u(this),_=[this.exports,w,this,h,g,process,Ae,Buffer],E=l.apply(this.exports,_);return c._handleCachedData(i,S,y,!A.cachedData,m),c._verifyCachedData(i,S,y,p,m),E}}load(a,m,e,c){const s=a.getConfig().getOptionsLiteral(),u=f(a.getRecorder(),s.nodeRequire||q.global.nodeRequire),d=s.nodeInstrumenter||function(S){return S};this._init(u),this._initNodeRequire(u,a);let h=a.getRecorder();if(/^node\|/.test(m)){let S=m.split("|"),C=null;try{C=u(S[1])}catch(y){c(y);return}a.enqueueDefineAnonymousModule([],()=>C),e()}else{m=q.Utilities.fileUriToFilePath(this._env.isWindows,m);const S=this._path.normalize(m),C=this._getElectronRendererScriptPathOrUri(S),y=!!s.nodeCachedData,A=y?this._getCachedDataPath(s.nodeCachedData,m):void 0;this._readSourceAndCachedData(S,A,h,(p,i,l,g)=>{if(p){c(p);return}let w;i.charCodeAt(0)===b._BOM?w=b._PREFIX+i.substring(1)+b._SUFFIX:w=b._PREFIX+i+b._SUFFIX,w=d(w,S);const _={filename:C,cachedData:l},E=this._createAndEvalScript(a,w,_,e,c);this._handleCachedData(E,w,A,y&&!l,a),this._verifyCachedData(E,w,A,g,a)})}}_createAndEvalScript(a,m,e,c,s){const u=a.getRecorder();u.record(31,e.filename);const d=new this._vm.Script(m,e),h=d.runInThisContext(e),S=a.getGlobalAMDDefineFunc();let C=!1;const y=function(){return C=!0,S.apply(null,arguments)};return y.amd=S.amd,h.call(q.global,a.getGlobalAMDRequireFunc(),y,e.filename,this._path.dirname(e.filename)),u.record(32,e.filename),C?c():s(new Error(`Didn't receive define call in ${e.filename}!`)),d}_getElectronRendererScriptPathOrUri(a){if(!this._env.isElectronRenderer)return a;let m=a.match(/^([a-z])\:(.*)/i);return m?`file:///${(m[1].toUpperCase()+":"+m[2]).replace(/\\/g,"/")}`:`file://${a}`}_getCachedDataPath(a,m){const e=this._crypto.createHash("md5").update(m,"utf8").update(a.seed,"utf8").update(process.arch,"").digest("hex"),c=this._path.basename(m).replace(/\.js$/,"");return this._path.join(a.path,`${c}-${e}.code`)}_handleCachedData(a,m,e,c,s){a.cachedDataRejected?this._fs.unlink(e,u=>{s.getRecorder().record(62,e),this._createAndWriteCachedData(a,m,e,s),u&&s.getConfig().onError(u)}):c&&this._createAndWriteCachedData(a,m,e,s)}_createAndWriteCachedData(a,m,e,c){let s=Math.ceil(c.getConfig().getOptionsLiteral().nodeCachedData.writeDelay*(1+Math.random())),u=-1,d=0,h;const S=()=>{setTimeout(()=>{h||(h=this._crypto.createHash("md5").update(m,"utf8").digest());const C=a.createCachedData();if(!(C.length===0||C.length===u||d>=5)){if(C.length<u){S();return}u=C.length,this._fs.writeFile(e,Buffer.concat([h,C]),y=>{y&&c.getConfig().onError(y),c.getRecorder().record(63,e),S()})}},s*Math.pow(4,d++))};S()}_readSourceAndCachedData(a,m,e,c){if(!m)this._fs.readFile(a,{encoding:"utf8"},c);else{let s,u,d,h=2;const S=C=>{C?c(C):--h===0&&c(void 0,s,u,d)};this._fs.readFile(a,{encoding:"utf8"},(C,y)=>{s=y,S(C)}),this._fs.readFile(m,(C,y)=>{!C&&y&&y.length>0?(d=y.slice(0,16),u=y.slice(16),e.record(60,m)):e.recor
} ) ; ` ;function f(o,a){if(a.__ $ __isRecorded)return a;const m=function(c){o.record(33,c);try{return a(c)}finally{o.record(34,c)}};return m.__ $ __isRecorded=!0,m}q.ensureRecordedNodeRequire=f;function v(o){return new r(o)}q.createScriptLoader=v})(ue||(ue={}));var ue;(function(q){class r{constructor(o){let a=o.lastIndexOf("/");a!==-1?this.fromModulePath=o.substr(0,a+1):this.fromModulePath=""}static _normalizeModuleId(o){let a=o,m;for(m=/ \/ \. \/ /;m.test(a);)a=a.replace(m,"/");for(a=a.replace(/^ \. \/ /g,""),m=/ \/ (([^ \/ ])|([^ \/ ][^ \/ \. ])|([^ \/ \. ][^ \/ ])|([^ \/ ][^ \/ ][^ \/ ]+)) \/ \. \. \/ /;m.test(a);)a=a.replace(m,"/");return a=a.replace(/^(([^ \/ ])|([^ \/ ][^ \/ \. ])|([^ \/ \. ][^ \/ ])|([^ \/ ][^ \/ ][^ \/ ]+)) \/ \. \. \/ /,""),a}resolveModule(o){let a=o;return q.Utilities.isAbsolutePath(a)||(q.Utilities.startsWith(a,"./")||q.Utilities.startsWith(a,"../"))&&(a=r._normalizeModuleId(this.fromModulePath+a)),a}}r.ROOT=new r(""),q.ModuleIdResolver=r;class n{constructor(o,a,m,e,c,s){this.id=o,this.strId=a,this.dependencies=m,this._callback=e,this._errorback=c,this.moduleIdResolver=s,this.exports={},this.error=null,this.exportsPassedIn=!1,this.unresolvedDependenciesCount=this.dependencies.length,this._isComplete=!1}static _safeInvokeFunction(o,a){try{return{returnedValue:o.apply(q.global,a),producedError:null}}catch(m){return{returnedValue:null,producedError:m}}}static _invokeFactory(o,a,m,e){return o.shouldInvokeFactory(a)?o.shouldCatchError()?this._safeInvokeFunction(m,e):{returnedValue:m.apply(q.global,e),producedError:null}:{returnedValue:null,producedError:null}}complete(o,a,m,e){this._isComplete=!0;let c=null;if(this._callback)if(typeof this._callback=="function"){o.record(21,this.strId);let s=n._invokeFactory(a,this.strId,this._callback,m);c=s.producedError,o.record(22,this.strId),!c&&typeof s.returnedValue<"u"&&(!this.exportsPassedIn||q.Utilities.isEmpty(this.exports))&&(this.exports=s.returnedValue)}else this.exports=this._callback;if(c){let s=q.ensureError(c);s.phase="factory",s.moduleId=this.strId,s.neededBy=e(this.id),this.error=s,a.onError(s)}this.dependencies=null,this._callback=null,this._errorback=null,this.moduleIdResolver=null}onDependencyError(o){return this._isComplete=!0,this.error=o,this._errorback?(this._errorback(o),!0):!1}isComplete(){return this._isComplete}}q.Module=n;class x{constructor(){this._nextId=0,this._strModuleIdToIntModuleId=new Map,this._intModuleIdToStrModuleId=[],this.getModuleId("exports"),this.getModuleId("module"),this.getModuleId("require")}getMaxModuleId(){return this._nextId}getModuleId(o){let a=this._strModuleIdToIntModuleId.get(o);return typeof a>"u"&&(a=this._nextId++,this._strModuleIdToIntModuleId.set(o,a),this._intModuleIdToStrModuleId[a]=o),a}getStrModuleId(o){return this._intModuleIdToStrModuleId[o]}}class R{constructor(o){this.id=o}}R.EXPORTS=new R(0),R.MODULE=new R(1),R.REQUIRE=new R(2),q.RegularDependency=R;class b{constructor(o,a,m){this.id=o,this.pluginId=a,this.pluginParam=m}}q.PluginDependency=b;class f{constructor(o,a,m,e,c=0){this._env=o,this._scriptLoader=a,this._loaderAvailableTimestamp=c,this._defineFunc=m,this._requireFunc=e,this._moduleIdProvider=new x,this._config=new q.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 f(this._env,this._scriptLoader,this._defineFunc,this._requireFunc,this._loaderAvailableTimestamp)}getGlobalAMDDefineFunc(){return this._defineFunc}getGlobalAMDRequireFunc(){return this._requireFunc}static _findRelevantLocationInStack(o,a){let m=s=>s.replace(/ \\ /g,"/"),e=m(o),c=a.split(/ \n /);for(let s=0;s<c.length;s++){let u=c[s].match(/(.*):( \d +):( \d +) \) ? $ /);if(u){let d=u[1],h=u[2],S=u[3],C=Math.max(d.lastIndexOf(" ")+1,d.lastIndexOf("(")+1);if(d=d.substr(C),d=m(d),d===e){let y={line:parseInt(h,10),col:parseInt(S,10)};return y.line===1&&(y.col-=53),y}}}throw new Error("Could no
` )),o.unresolvedDependenciesCount--;continue}if(this._inverseDependencies2[c.id]=this._inverseDependencies2[c.id]||[],this._inverseDependencies2[c.id].push(o.id),c instanceof b){let u=this._modules2[c.pluginId];if(u&&u.isComplete()){this._loadPluginDependency(u.exports,c);continue}let d=this._inversePluginDependencies2.get(c.pluginId);d||(d=[],this._inversePluginDependencies2.set(c.pluginId,d)),d.push(c),this._loadModule(c.pluginId);continue}this._loadModule(c.id)}o.unresolvedDependenciesCount===0&&this._onModuleComplete(o)}_onModuleComplete(o){let a=this.getRecorder();if(o.isComplete())return;let m=o.dependencies,e=[];if(m)for(let d=0,h=m.length;d<h;d++){let S=m[d];if(S===R.EXPORTS){e[d]=o.exports;continue}if(S===R.MODULE){e[d]={id:o.strId,config:()=>this._config.getConfigForModule(o.strId)};continue}if(S===R.REQUIRE){e[d]=this._createRequire(o.moduleIdResolver);continue}let C=this._modules2[S.id];if(C){e[d]=C.exports;continue}e[d]=null}const c=d=>(this._inverseDependencies2[d]||[]).map(h=>this._moduleIdProvider.getStrModuleId(h));o.complete(a,this._config,e,c);let s=this._inverseDependencies2[o.id];if(this._inverseDependencies2[o.id]=null,s)for(let d=0,h=s.length;d<h;d++){let S=s[d],C=this._modules2[S];C.unresolvedDependenciesCount--,C.unresolvedDependenciesCount===0&&this._onModuleComplete(C)}let u=this._inversePluginDependencies2.get(o.id);if(u){this._inversePluginDependencies2.delete(o.id);for(let d=0,h=u.length;d<h;d++)this._loadPluginDependency(o.exports,u[d])}}}q.ModuleManager=f})(ue||(ue={}));var X,ue;(function(q){const r=new q.Environment;let n=null;const x=function(v,o,a){typeof v!="string"&&(a=o,o=v,v=null),(typeof o!="object"||!Array.isArray(o))&&(a=o,o=null),o||(o=["require","exports","module"]),v?n.defineModule(v,o,a,null,null):n.enqueueDefineAnonymousModule(o,a)};x.amd={jQuery:!0};const R=function(v,o=!1){n.configure(v,o)},b=function(){if(arguments.length===1){if(arguments[0]instanceof Object&&!Array.isArray(arguments[0])){R(arguments[0]);return}if(typeof arguments[0]=="string")return n.synchronousRequire(arguments[0])}if((arguments.length===2||arguments.length===3)&&Array.isArray(arguments[0])){n.defineModule(q.Utilities.generateAnonymousModule(),arguments[0],arguments[1],arguments[2],null);return}throw new Error("Unrecognized require call")};b.config=R,b.getConfig=function(){return n.getConfig().getOptionsLiteral()},b.reset=function(){n=n.reset()},b.getBuildInfo=function(){return n.getBuildInfo()},b.getStats=function(){return n.getLoaderEvents()},b.define=x;function f(){if(typeof q.global.require<"u"||typeof require<"u"){const v=q.global.require||require;if(typeof v=="function"&&typeof v.resolve=="function"){const o=q.ensureRecordedNodeRequire(n.getRecorder(),v);q.global.nodeRequire=o,b.nodeRequire=o,b.__ $ __nodeRequire=o}}r.isNode&&!r.isElectronRenderer&&!r.isElectronNodeIntegrationWebWorker?module.exports=b:(r.isElectronRenderer||(q.global.define=x),q.global.require=b)}q.init=f,(typeof q.global.define!="function"||!q.global.define.amd)&&(n=new q.ModuleManager(r,q.createScriptLoader(r),x,b,q.Utilities.getHighPerformanceTimestamp()),typeof q.global.require<"u"&&typeof q.global.require!="function"&&b.config(q.global.require),X=function(){return x.apply(null,arguments)},X.amd=x.amd,typeof doNotInitLoader>"u"&&f())})(ue||(ue={})),X(Y[19],J([0,1]),function(q,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.localize=m,r.localize2=e,r.getConfiguredDefaultLocale=c,r.setPseudoTranslation=s,r.create=u,r.load=d;let n=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;const x="i-default";function R(h,S){let C;return S.length===0?C=h:C=h.replace(/ \{ ( \d +) \} /g,(y,A)=>{const p=A[0],i=S[p];let l=y;return typeof i=="string"?l=i:(typeof i=="number"||typeof i=="boolean"||i===void 0||i===null)&&(l=String(i)),l}),n&&(C=" \u FF3B"+C.replace(/[aouei]/g," $ & $ &")+" \u FF3D"),C}function b(h,S){let C=h[S];return C||(C=h["*"],C)?C:null}function f(h){return h.charAt(h.length-1)==="/"?h:h+"/"}async function v(h,S,C){const y=f(h)+f(S)+"vscode/"+f(C),A=await fetch(y);if(A.ok)return aw
} ) ` }});function R(){try{return(x?globalThis.eval(x.createScript("","true")):new Function("true")).call(globalThis),!0}catch{return!1}}function b(){return new Promise((m,e)=>{if(typeof globalThis.define=="function"&&globalThis.define.amd)return m();const c=r+"vs/loader.js";if(!(/^((http:)|(https:)|(file:))/.test(c)&&c.substring(0,globalThis.origin.length)!==globalThis.origin)&&R()){fetch(c).then(u=>{if(u.status!==200)throw new Error(u.statusText);return u.text()}).then(u=>{u= ` $ { u }
//# sourceURL=${c}`,(x?globalThis.eval(x.createScript("",u)):new Function(u)).call(globalThis),m()}).then(void 0,e);return}x?importScripts(x.createScriptURL(c)):importScripts(c),m()})}function f(){require.config({baseUrl:r,catchError:!0,trustedTypesPolicy:x,amdModulesPattern:/^vs\//})}function v(m){b().then(()=>{f(),require([m],function(e){setTimeout(function(){const c=e.create((s,u)=>{globalThis.postMessage(s,u)},null);for(globalThis.onmessage=s=>c.onmessage(s.data,s.ports);a.length>0;){const s=a.shift();c.onmessage(s.data,s.ports)}},0)})})}typeof globalThis.define=="function"&&globalThis.define.amd&&f();let o=!0;const a=[];globalThis.onmessage=m=>{if(!o){a.push(m);return}o=!1,v(m.data)}}(),X(Y[7],J([0,1]),function(q,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.Permutation=r.CallbackIterable=r.ArrayQueue=r.booleanComparator=r.numberComparator=r.CompareResult=void 0,r.tail=n,r.tail2=x,r.equals=R,r.removeFastWithoutKeepingOrder=b,r.binarySearch=f,r.binarySearch2=v,r.quickSelect=o,r.groupBy=a,r.groupAdjacentBy=m,r.forEachAdjacent=e,r.forEachWithNeighbors=c,r.coalesce=s,r.coalesceInPlace=u,r.isFalsyOrEmpty=d,r.isNonEmptyArray=h,r.distinct=S,r.firstOrDefault=C,r.range=y,r.arrayInsert=A,r.pushToStart=p,r.pushToEnd=i,r.pushMany=l,r.asArray=g,r.insertInto=w,r.splice=_,r.compareBy=L,r.tieBreakComparators=M,r.reverseOrder=k;function n(T,I=0){return T[T.length-(1+I)]}function x(T){if(T.length===0)throw new Error("Invalid tail call");return[T.slice(0,T.length-1),T[T.length-1]]}function R(T,I,W=(V,H)=>V===H){if(T===I)return!0;if(!T||!I||T.length!==I.length)return!1;for(let V=0,H=T.length;V<H;V++)if(!W(T[V],I[V]))return!1;return!0}function b(T,I){const W=T.length-1;I<W&&(T[I]=T[W]),T.pop()}function f(T,I,W){return v(T.length,V=>W(T[V],I))}function v(T,I){let W=0,V=T-1;for(;W<=V;){const H=(W+V)/2|0,U=I(H);if(U<0)W=H+1;else if(U>0)V=H-1;else return H}return-(W+1)}function o(T,I,W){if(T=T|0,T>=I.length)throw new TypeError("invalid index");const V=I[Math.floor(I.length*Math.random())],H=[],U=[],se=[];for(const he of I){const de=W(he,V);de<0?H.push(he):de>0?U.push(he):se.push(he)}return T<H.length?o(T,H,W):T<H.length+se.length?se[0]:o(T-(H.length+se.length),U,W)}function a(T,I){const W=[];let V;for(const H of T.slice(0).sort(I))!V||I(V[0],H)!==0?(V=[H],W.push(V)):V.push(H);return W}function*m(T,I){let W,V;for(const H of T)V!==void 0&&I(V,H)?W.push(H):(W&&(yield W),W=[H]),V=H;W&&(yield W)}function e(T,I){for(let W=0;W<=T.length;W++)I(W===0?void 0:T[W-1],W===T.length?void 0:T[W])}function c(T,I){for(let W=0;W<T.length;W++)I(W===0?void 0:T[W-1],T[W],W+1===T.length?void 0:T[W+1])}function s(T){return T.filter(I=>!!I)}function u(T){let I=0;for(let W=0;W<T.length;W++)T[W]&&(T[I]=T[W],I+=1);T.length=I}function d(T){return!Array.isArray(T)||T.length===0}function h(T){return Array.isArray(T)&&T.length>0}function S(T,I=W=>W){const W=new Set;return T.filter(V=>{const H=I(V);return W.has(H)?!1:(W.add(H),!0)})}function C(T,I){return T.length>0?T[0]:I}function y(T,I){let W=typeof I=="number"?T:0;typeof I=="number"?W=T:(W=0,I=T);const V=[];if(W<=I)for(let H=W;H<I;H++)V.push(H);else for(let H=W;H>I;H--)V.push(H);return V}function A(T,I,W){const V=T.slice(0,I),H=T.slice(I);return V.concat(W,H)}function p(T,I){const W=T.indexOf(I);W>-1&&(T.splice(W,1),T.unshift(I))}function i(T,I){const W=T.indexOf(I);W>-1&&(T.splice(W,1),T.push(I))}function l(T,I){for(const W of I)T.push(W)}function g(T){return Array.isArray(T)?T:[T]}function w(T,I,W){const V=E(T,I),H=T.length,U=W.length;T.length=H+U;for(let se=H-1;se>=V;se--)T[se+U]=T[se];for(let se=0;se<U;se++)T[se+V]=W[se]}function _(T,I,W,V){const H=E(T,I);let U=T.splice(H,W);return U===void 0&&(U=[]),w(T,H,V),U}function E(T,I){return I<0?Math.max(I+T.length,0):Math.min(I,T.length)}var N;(function(T){function I(U){return U<0}T.isLessThan=I;function W(U){return U<=0}T.isLessThanOrEqual=W;function V(U){return U>0}T.isGreaterThan=V;function H(U){return U===0}T.isNeitherLessOrGreaterThan=H,T.greaterThan=1,T.lessThan=-1,T.neitherLessOrGreaterThan=0})(N||(r.CompareResult=N={}));function L(T,I){return(
2024-02-21 22:15:21 +00:00
2024-05-28 17:59:44 +00:00
` +h.stack):new Error(h.message+ `
2024-02-21 22:15:21 +00:00
2024-05-28 17:59:44 +00:00
` +h.stack):h},0)}}emit(h){this.listeners.forEach(S=>{S(h)})}onUnexpectedError(h){this.unexpectedErrorHandler(h),this.emit(h)}onUnexpectedExternalError(h){this.unexpectedErrorHandler(h)}}r.ErrorHandler=n,r.errorHandler=new n;function x(d){v(d)||r.errorHandler.onUnexpectedError(d)}function R(d){v(d)||r.errorHandler.onUnexpectedExternalError(d)}function b(d){if(d instanceof Error){const{name:h,message:S}=d,C=d.stacktrace||d.stack;return{ $ isError:!0,name:h,message:S,stack:C,noTelemetry:s.isErrorNoTelemetry(d)}}return d}const f="Canceled";function v(d){return d instanceof o?!0:d instanceof Error&&d.name===f&&d.message===f}class o extends Error{constructor(){super(f),this.name=this.message}}r.CancellationError=o;function a(){const d=new Error(f);return d.name=d.message,d}function m(d){return d?new Error( ` Illegal argument : $ { d } ` ):new Error("Illegal argument")}function e(d){return d?new Error( ` Illegal state : $ { d } ` ):new Error("Illegal state")}class c extends Error{constructor(h){super("NotSupported"),h&&(this.message=h)}}r.NotSupportedError=c;class s extends Error{constructor(h){super(h),this.name="CodeExpectedError"}static fromError(h){if(h instanceof s)return h;const S=new s;return S.message=h.message,S.stack=h.stack,S}static isErrorNoTelemetry(h){return h.name==="CodeExpectedError"}}r.ErrorNoTelemetry=s;class u extends Error{constructor(h){super(h||"An unexpected bug occurred."),Object.setPrototypeOf(this,u.prototype)}}r.BugIndicatingError=u}),X(Y[9],J([0,1,5]),function(q,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ok=x,r.assertNever=R,r.softAssert=b,r.assertFn=f,r.checkAdjacentItems=v;function x(o,a){if(!o)throw new Error(a? ` Assertion failed ( $ { a } ) ` :"Assertion Failed")}function R(o,a="Unreachable"){throw new Error(a)}function b(o){o||(0,n.onUnexpectedError)(new n.BugIndicatingError("Soft Assertion Failed"))}function f(o){if(!o()){debugger;o(),(0,n.onUnexpectedError)(new n.BugIndicatingError("Assertion Failed"))}}function v(o,a){let m=0;for(;m<o.length-1;){const e=o[m],c=o[m+1];if(!a(e,c))return!1;m++}return!0}}),X(Y[20],J([0,1]),function(q,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.createSingleCallFunction=n;function n(x,R){const b=this;let f=!1,v;return function(){if(f)return v;if(f=!0,R)try{v=x.apply(b,arguments)}finally{R()}else v=x.apply(b,arguments);return v}}}),X(Y[21],J([0,1]),function(q,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.Iterable=void 0;var n;(function(x){function R(i){return i&&typeof i=="object"&&typeof i[Symbol.iterator]=="function"}x.is=R;const b=Object.freeze([]);function f(){return b}x.empty=f;function*v(i){yield i}x.single=v;function o(i){return R(i)?i:v(i)}x.wrap=o;function a(i){return i||b}x.from=a;function*m(i){for(let l=i.length-1;l>=0;l--)yield i[l]}x.reverse=m;function e(i){return!i||i[Symbol.iterator]().next().done===!0}x.isEmpty=e;function c(i){return i[Symbol.iterator]().next().value}x.first=c;function s(i,l){for(const g of i)if(l(g))return!0;return!1}x.some=s;function u(i,l){for(const g of i)if(l(g))return g}x.find=u;function*d(i,l){for(const g of i)l(g)&&(yield g)}x.filter=d;function*h(i,l){let g=0;for(const w of i)yield l(w,g++)}x.map=h;function*S(...i){for(const l of i)yield*l}x.concat=S;function C(i,l,g){let w=g;for(const _ of i)w=l(w,_);return w}x.reduce=C;function*y(i,l,g=i.length){for(l<0&&(l+=i.length),g<0?g+=i.length:g>i.length&&(g=i.length);l<g;l++)yield i[l]}x.slice=y;function A(i,l=Number.POSITIVE_INFINITY){const g=[];if(l===0)return[g,i];const w=i[Symbol.iterator]();for(let _=0;_<l;_++){const E=w.next();if(E.done)return[g,x.empty()];g.push(E.value)}return[g,{[Symbol.iterator](){return w}}]}x.consume=A;async function p(i){const l=[];for await(const g of i)l.push(g);return Promise.resolve(l)}x.asyncToArray=p})(n||(r.Iterable=n={}))}),X(Y[38],J([0,1]),function(q,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.KeyCodeUtils=r.IMMUTABLE_KEY_CODE_TO_CODE=r.IMMUTABLE_CODE_TO_KEY_CODE=r.NATIVE_WINDOWS_KEY_CODE_TO_KEY_CODE=r.EVENT_KEY_CODE_MAP=void 0,r.KeyChord=m;class n{constructor(){this._keyCodeT
2024-02-21 22:15:21 +00:00
` ).slice(2).join( `
2024-05-28 17:59:44 +00:00
` ))}}class d{constructor(L){this.value=L}}const h=2,S=(N,L)=>{if(N instanceof d)L(N);else for(let M=0;M<N.length;M++){const D=N[M];D&&L(D)}},C=v?new FinalizationRegistry(N=>{typeof N=="string"&&(console.warn("[LEAKING LISTENER] GC'ed a listener that was NOT yet disposed. This is where is was created:"),console.warn(N))}):void 0;class y{constructor(L){var M,D,F,k,O;this._size=0,this._options=L,this._leakageMon=c>0||!((M=this._options)===null||M===void 0)&&M.leakWarningThreshold?new s((F=(D=this._options)===null||D===void 0?void 0:D.leakWarningThreshold)!==null&&F!==void 0?F:c):void 0,this._perfMon=!((k=this._options)===null||k===void 0)&&k._profName?new e(this._options._profName):void 0,this._deliveryQueue=(O=this._options)===null||O===void 0?void 0:O.deliveryQueue}dispose(){var L,M,D,F;if(!this._disposed){if(this._disposed=!0,((L=this._deliveryQueue)===null||L===void 0?void 0:L.current)===this&&this._deliveryQueue.reset(),this._listeners){if(o){const k=this._listeners;queueMicrotask(()=>{S(k,O=>{var z;return(z=O.stack)===null||z===void 0?void 0:z.print()})})}this._listeners=void 0,this._size=0}(D=(M=this._options)===null||M===void 0?void 0:M.onDidRemoveLastListener)===null||D===void 0||D.call(M),(F=this._leakageMon)===null||F===void 0||F.dispose()}}get event(){var L;return(L=this._event)!==null&&L!==void 0||(this._event=(M,D,F)=>{var k,O,z,Q,T;if(this._leakageMon&&this._size>this._leakageMon.threshold*3)return console.warn( ` [ $ { this . _leakageMon . name } ] REFUSES to accept new listeners because it exceeded its threshold by far ` ),R.Disposable.None;if(this._disposed)return R.Disposable.None;D&&(M=M.bind(D));const I=new d(M);let W,V;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(I.stack=u.create(),W=this._leakageMon.check(I.stack,this._size+1)),o&&(I.stack=V??u.create()),this._listeners?this._listeners instanceof d?((T=this._deliveryQueue)!==null&&T!==void 0||(this._deliveryQueue=new p),this._listeners=[this._listeners,I]):this._listeners.push(I):((O=(k=this._options)===null||k===void 0?void 0:k.onWillAddFirstListener)===null||O===void 0||O.call(k,this),this._listeners=I,(Q=(z=this._options)===null||z===void 0?void 0:z.onDidAddFirstListener)===null||Q===void 0||Q.call(z,this)),this._size++;const H=(0,R.toDisposable)(()=>{C?.unregister(H),W?.(),this._removeListener(I)});if(F instanceof R.DisposableStore?F.add(H):Array.isArray(F)&&F.push(H),C){const U=new Error().stack.split( `
` ).slice(2).join( `
` ).trim();C.register(H,U,H)}return H}),this._event}_removeListener(L){var M,D,F,k;if((D=(M=this._options)===null||M===void 0?void 0:M.onWillRemoveListener)===null||D===void 0||D.call(M,this),!this._listeners)return;if(this._size===1){this._listeners=void 0,(k=(F=this._options)===null||F===void 0?void 0:F.onDidRemoveLastListener)===null||k===void 0||k.call(F,this),this._size=0;return}const O=this._listeners,z=O.indexOf(L);if(z===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,O[z]=void 0;const Q=this._deliveryQueue.current===this;if(this._size*h<=O.length){let T=0;for(let I=0;I<O.length;I++)O[I]?O[T++]=O[I]:Q&&(this._deliveryQueue.end--,T<this._deliveryQueue.i&&this._deliveryQueue.i--);O.length=T}}_deliver(L,M){var D;if(!L)return;const F=((D=this._options)===null||D===void 0?void 0:D.onListenerError)||n.onUnexpectedError;if(!F){L.value(M);return}try{L.value(M)}catch(k){F(k)}}_deliverQueue(L){const M=L.current._listeners;for(;L.i<L.end;)this._deliver(M[L.i++],L.value);L.reset()}fire(L){var M,D,F,k;if(!((M=this._deliveryQueue)===null||M===void 0)&&M.current&&(this._deliverQueue(this._deliveryQueue),(D=this._perfMon)===null||D===void 0||D.stop()),(F=this._perfMon)===null||F===void 0||F.start(this._size),this._listeners)if(this._listeners instanceof d)this._deliver(this._listeners,L);else{const O=this._deliveryQueue;O.enqueue(this,L,this._listeners.length),this._deliverQueue(O)}(k=this._perfMon)===null||k===void 0||k.stop()}hasListeners(){return this._size>0}}r.Emitter=y;const A=()=>new p;r.createEventDeliveryQueue=A;class p{constructor(){this.i=-1,this.end=0}enqueue(L,M,D){this.i=0,this.end=D,this.current=L,this.value=M}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}class i extends y{constructor(L){super(L),this._isPaused=0,this._eventQueue=new b.LinkedList,this._mergeFn=L?.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){if(this._eventQueue.size>0){const L=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(L))}}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(L){this._size&&(this._isPaused!==0?this._eventQueue.push(L):super.fire(L))}}r.PauseableEmitter=i;class l extends i{constructor(L){var M;super(L),this._delay=(M=L.delay)!==null&&M!==void 0?M:100}fire(L){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(L)}}r.DebounceEmitter=l;class g extends y{constructor(L){super(L),this._queuedEvents=[],this._mergeFn=L?.merge}fire(L){this.hasListeners()&&(this._queuedEvents.push(L),this._queuedEvents.length===1&&queueMicrotask(()=>{this._mergeFn?super.fire(this._mergeFn(this._queuedEvents)):this._queuedEvents.forEach(M=>super.fire(M)),this._queuedEvents=[]}))}}r.MicrotaskEmitter=g;class w{constructor(){this.hasListeners=!1,this.events=[],this.emitter=new y({onWillAddFirstListener:()=>this.onFirstListenerAdd(),onDidRemoveLastListener:()=>this.onLastListenerRemove()})}get event(){return this.emitter.event}add(L){const M={event:L,listener:null};this.events.push(M),this.hasListeners&&this.hook(M);const D=()=>{this.hasListeners&&this.unhook(M);const F=this.events.indexOf(M);this.events.splice(F,1)};return(0,R.toDisposable)((0,x.createSingleCallFunction)(D))}onFirstListenerAdd(){this.hasListeners=!0,this.events.forEach(L=>this.hook(L))}onLastListenerRemove(){this.hasListeners=!1,this.events.forEach(L=>this.unhook(L))}hook(L){L.listener=L.event(M=>this.emitter.fire(M))}unhook(L){var M;(M=L.listener)===null||M===void 0||M.dispose(),L.listener=null}dispose(){var L;this.emitter.dispose();for(const M of this.events)(L=M.listener)===null||L===void 0||L.dispose();this.events=[]}}r.EventMultiplexer=w;class _{constructor(){this.buffers=[]}wrapEvent(L){return(M,D,F)=>L(k=>{const O=this.buffers[this.buffers.length-1];O?O.push(()=>M.call(D,k)):M.call(D,k)},void 0,F)}bufferEvents(L){const M=[];this.
` ?(v++,o=0):o++;return new R(v,o)}constructor(f,v){this.lineCount=f,this.columnCount=v}isGreaterThanOrEqualTo(f){return this.lineCount!==f.lineCount?this.lineCount>f.lineCount:this.columnCount>=f.columnCount}createRange(f){return this.lineCount===0?new x.Range(f.lineNumber,f.column,f.lineNumber,f.column+this.columnCount):new x.Range(f.lineNumber,f.column,f.lineNumber+this.lineCount,this.columnCount+1)}addToPosition(f){return this.lineCount===0?new n.Position(f.lineNumber,f.column+this.columnCount):new n.Position(f.lineNumber+this.lineCount,this.columnCount+1)}toString(){return ` $ { this . lineCount } , $ { this . columnCount } ` }}r.TextLength=R,R.zero=new R(0,0)}),X(Y[45],J([0,1,3,30]),function(q,r,n,x){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.PositionOffsetTransformer=void 0;class R{constructor(f){this.text=f,this.lineStartOffsetByLineIdx=[],this.lineStartOffsetByLineIdx.push(0);for(let v=0;v<f.length;v++)f.charAt(v)=== `
` &&this.lineStartOffsetByLineIdx.push(v+1)}getOffset(f){return this.lineStartOffsetByLineIdx[f.lineNumber-1]+f.column-1}getOffsetRange(f){return new n.OffsetRange(this.getOffset(f.getStartPosition()),this.getOffset(f.getEndPosition()))}get textLength(){const f=this.lineStartOffsetByLineIdx.length-1;return new x.TextLength(f,this.text.length-this.lineStartOffsetByLineIdx[f])}}r.PositionOffsetTransformer=R}),X(Y[46],J([0,1,9,5,4,45,2,30]),function(q,r,n,x,R,b,f,v){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.StringText=r.AbstractText=r.SingleTextEdit=r.TextEdit=void 0;class o{constructor(u){this.edits=u,(0,n.assertFn)(()=>(0,n.checkAdjacentItems)(u,(d,h)=>d.range.getEndPosition().isBeforeOrEqual(h.range.getStartPosition())))}apply(u){let d="",h=new R.Position(1,1);for(const C of this.edits){const y=C.range,A=y.getStartPosition(),p=y.getEndPosition(),i=m(h,A);i.isEmpty()||(d+=u.getValueOfRange(i)),d+=C.text,h=p}const S=m(h,u.endPositionExclusive);return S.isEmpty()||(d+=u.getValueOfRange(S)),d}applyToString(u){const d=new c(u);return this.apply(d)}getNewRanges(){const u=[];let d=0,h=0,S=0;for(const C of this.edits){const y=v.TextLength.ofText(C.text),A=R.Position.lift({lineNumber:C.range.startLineNumber+h,column:C.range.startColumn+(C.range.startLineNumber===d?S:0)}),p=y.createRange(A);u.push(p),h=p.endLineNumber-C.range.endLineNumber,S=p.endColumn-C.range.endColumn,d=C.range.endLineNumber}return u}}r.TextEdit=o;class a{constructor(u,d){this.range=u,this.text=d}}r.SingleTextEdit=a;function m(s,u){if(s.lineNumber===u.lineNumber&&s.column===Number.MAX_SAFE_INTEGER)return f.Range.fromPositions(u,u);if(!s.isBeforeOrEqual(u))throw new x.BugIndicatingError("start must be before end");return new f.Range(s.lineNumber,s.column,u.lineNumber,u.column)}class e{get endPositionExclusive(){return this.length.addToPosition(new R.Position(1,1))}}r.AbstractText=e;class c extends e{constructor(u){super(),this.value=u,this._t=new b.PositionOffsetTransformer(this.value)}getValueOfRange(u){return this._t.getOffsetRange(u).substring(this.value)}get length(){return this._t.textLength}}r.StringText=c}),X(Y[47],J([0,1,23,29]),function(q,r,n,x){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.WordCharacterClassifier=void 0,r.getMapForWordSeparators=f;class R extends x.CharacterClassifier{constructor(o,a){super(0),this._segmenter=null,this._cachedLine=null,this._cachedSegments=[],this.intlSegmenterLocales=a,this.intlSegmenterLocales.length>0?this._segmenter=new Intl.Segmenter(this.intlSegmenterLocales,{granularity:"word"}):this._segmenter=null;for(let m=0,e=o.length;m<e;m++)this.set(o.charCodeAt(m),2);this.set(32,1),this.set(9,1)}findPrevIntlWordBeforeOrAtOffset(o,a){let m=null;for(const e of this._getIntlSegmenterWordsOnLine(o)){if(e.index>a)break;m=e}return m}findNextIntlWordAtOrAfterOffset(o,a){for(const m of this._getIntlSegmenterWordsOnLine(o))if(!(m.index<a))return m;return null}_getIntlSegmenterWordsOnLine(o){return this._segmenter?this._cachedLine===o?this._cachedSegments:(this._cachedLine=o,this._cachedSegments=this._filterWordSegments(this._segmenter.segment(o)),this._cachedSegments):[]}_filterWordSegments(o){const a=[];for(const m of o)this._isWordLike(m)&&a.push(m);return a}_isWordLike(o){return!!o.isWordLike}}r.WordCharacterClassifier=R;const b=new n.LRUCache(10);function f(v,o){const a= ` $ { v } / $ { o . join ( "," ) } ` ;let m=b.get(a);return m||(m=new R(v,o),b.set(a,m)),m}}),X(Y[31],J([0,1,21,22]),function(q,r,n,x){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.DEFAULT_WORD_REGEXP=r.USUAL_WORD_SEPARATORS=void 0,r.ensureValidWordDefinition=b,r.getWordAtText=v,r.USUAL_WORD_SEPARATORS=" ` ~ ! @ # $ % ^ & * ( ) -= + [ { ] } \ \ | ; : ' \ ",.<>/?" ; function R ( a = "" ) { let m = "(-?\\d*\\.\\d\\w*)|([^" ; for ( const e of r . USUAL _WORD _SEPARATORS ) a . indexOf ( e ) >= 0 || ( m += "\\" + e ) ; return m += "\\s]+)" , new RegExp ( m , "g" ) } r . DEFAULT _WORD _REGEXP = R ( ) ; function b ( a ) { let m = r . DEFAULT _WORD _REGEXP ; if ( a && a instanceof RegExp ) if ( a . global ) m = a ; else { let e = "g" ; a . ignoreCase && ( e += "i" ) , a . multiline && ( e += "m" ) , a . unicode && ( e += "u" ) , m = new RegExp ( a . source , e ) } return m . lastIndex = 0 ,
` )}isStronglyEqual(b,f){return this.lines[b]===this.lines[f]}}r.LineSequence=n;function x(R){let b=0;for(;b<R.length&&(R.charCodeAt(b)===32||R.charCodeAt(b)===9);)b++;return b}}),X(Y[15],J([0,1]),function(q,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.LineRangeFragment=r.Array2D=void 0,r.isSpace=x;class n{constructor(f,v){this.width=f,this.height=v,this.array=[],this.array=new Array(f*v)}get(f,v){return this.array[f+v*this.width]}set(f,v,o){this.array[f+v*this.width]=o}}r.Array2D=n;function x(b){return b===32||b===9}class R{static getKey(f){let v=this.chrKeys.get(f);return v===void 0&&(v=this.chrKeys.size,this.chrKeys.set(f,v)),v}constructor(f,v,o){this.range=f,this.lines=v,this.source=o,this.histogram=[];let a=0;for(let m=f.startLineNumber-1;m<f.endLineNumberExclusive-1;m++){const e=v[m];for(let s=0;s<e.length;s++){a++;const u=e[s],d=R.getKey(u);this.histogram[d]=(this.histogram[d]||0)+1}a++;const c=R.getKey( `
` );this.histogram[c]=(this.histogram[c]||0)+1}this.totalCount=a}computeSimilarity(f){var v,o;let a=0;const m=Math.max(this.histogram.length,f.histogram.length);for(let e=0;e<m;e++)a+=Math.abs(((v=this.histogram[e])!==null&&v!==void 0?v:0)-((o=f.histogram[e])!==null&&o!==void 0?o:0));return 1-a/(this.totalCount+f.totalCount)}}r.LineRangeFragment=R,R.chrKeys=new Map}),X(Y[50],J([0,1,3,8,15]),function(q,r,n,x,R){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.DynamicProgrammingDiffing=void 0;class b{compute(v,o,a=x.InfiniteTimeout.instance,m){if(v.length===0||o.length===0)return x.DiffAlgorithmResult.trivial(v,o);const e=new R.Array2D(v.length,o.length),c=new R.Array2D(v.length,o.length),s=new R.Array2D(v.length,o.length);for(let A=0;A<v.length;A++)for(let p=0;p<o.length;p++){if(!a.isValid())return x.DiffAlgorithmResult.trivialTimedOut(v,o);const i=A===0?0:e.get(A-1,p),l=p===0?0:e.get(A,p-1);let g;v.getElement(A)===o.getElement(p)?(A===0||p===0?g=0:g=e.get(A-1,p-1),A>0&&p>0&&c.get(A-1,p-1)===3&&(g+=s.get(A-1,p-1)),g+=m?m(A,p):1):g=-1;const w=Math.max(i,l,g);if(w===g){const _=A>0&&p>0?s.get(A-1,p-1):0;s.set(A,p,_+1),c.set(A,p,3)}else w===i?(s.set(A,p,0),c.set(A,p,1)):w===l&&(s.set(A,p,0),c.set(A,p,2));e.set(A,p,w)}const u=[];let d=v.length,h=o.length;function S(A,p){(A+1!==d||p+1!==h)&&u.push(new x.SequenceDiff(new n.OffsetRange(A+1,d),new n.OffsetRange(p+1,h))),d=A,h=p}let C=v.length-1,y=o.length-1;for(;C>=0&&y>=0;)c.get(C,y)===3?(S(C,y),C--,y--):c.get(C,y)===1?C--:y--;return S(-1,-1),u.reverse(),new x.DiffAlgorithmResult(u,!1)}}r.DynamicProgrammingDiffing=b}),X(Y[33],J([0,1,12,3,4,2,15]),function(q,r,n,x,R,b,f){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.LinesSliceCharSequence=void 0;class v{constructor(s,u,d){this.lines=s,this.considerWhitespaceChanges=d,this.elements=[],this.firstCharOffsetByLine=[],this.additionalOffsetByLine=[];let h=!1;u.start>0&&u.endExclusive>=s.length&&(u=new x.OffsetRange(u.start-1,u.endExclusive),h=!0),this.lineRange=u,this.firstCharOffsetByLine[0]=0;for(let S=this.lineRange.start;S<this.lineRange.endExclusive;S++){let C=s[S],y=0;if(h)y=C.length,C="",h=!1;else if(!d){const A=C.trimStart();y=C.length-A.length,C=A.trimEnd()}this.additionalOffsetByLine.push(y);for(let A=0;A<C.length;A++)this.elements.push(C.charCodeAt(A));S<s.length-1&&(this.elements.push(10),this.firstCharOffsetByLine[S-this.lineRange.start+1]=this.elements.length)}this.additionalOffsetByLine.push(0)}toString(){return ` Slice : "${this.text}" ` }get text(){return this.getText(new x.OffsetRange(0,this.length))}getText(s){return this.elements.slice(s.start,s.endExclusive).map(u=>String.fromCharCode(u)).join("")}getElement(s){return this.elements[s]}get length(){return this.elements.length}getBoundaryScore(s){const u=e(s>0?this.elements[s-1]:-1),d=e(s<this.elements.length?this.elements[s]:-1);if(u===7&&d===8)return 0;if(u===8)return 150;let h=0;return u!==d&&(h+=10,u===0&&d===1&&(h+=1)),h+=m(u),h+=m(d),h}translateOffset(s){if(this.lineRange.isEmpty)return new R.Position(this.lineRange.start+1,1);const u=(0,n.findLastIdxMonotonous)(this.firstCharOffsetByLine,d=>d<=s);return new R.Position(this.lineRange.start+u+1,s-this.firstCharOffsetByLine[u]+this.additionalOffsetByLine[u]+1)}translateRange(s){return b.Range.fromPositions(this.translateOffset(s.start),this.translateOffset(s.endExclusive))}findWordContaining(s){if(s<0||s>=this.elements.length||!o(this.elements[s]))return;let u=s;for(;u>0&&o(this.elements[u-1]);)u--;let d=s;for(;d<this.elements.length&&o(this.elements[d]);)d++;return new x.OffsetRange(u,d)}countLinesIn(s){return this.translateOffset(s.endExclusive).lineNumber-this.translateOffset(s.start).lineNumber}isStronglyEqual(s,u){return this.elements[s]===this.elements[u]}extendToFullLines(s){var u,d;const h=(u=(0,n.findLastMonotonous)(this.firstCharOffsetByLine,C=>C<=s.start))!==null&&u!==void 0?u:0,S=(d=(0,n.findFirstMonotonous)(this.firstCharOffsetByLine,C=>s.endExclusive<=C))!==null&&d!==void 0?d:this.elements.length;return new x.OffsetRange(h,S)}}r.LinesSliceCharSequence=v;function o(c){retur
` ).length>=15&&s(M,F=>F.length>=2)>=2}),w=C(y,w),w}function s(y,A){let p=0;for(const i of y)A(i)&&p++;return p}function u(y,A,p,i){const l=[],g=y.filter(E=>E.modified.isEmpty&&E.original.length>=3).map(E=>new m.LineRangeFragment(E.original,A,E)),w=new Set(y.filter(E=>E.original.isEmpty&&E.modified.length>=3).map(E=>new m.LineRangeFragment(E.modified,p,E))),_=new Set;for(const E of g){let N=-1,L;for(const M of w){const D=E.computeSimilarity(M);D>N&&(N=D,L=M)}if(N>.9&&L&&(w.delete(L),l.push(new x.LineRangeMapping(E.range,L.range)),_.add(E.source),_.add(L.source)),!i.isValid())return{moves:l,excludedChanges:_}}return{moves:l,excludedChanges:_}}function d(y,A,p,i,l,g){const w=[],_=new f.SetMap;for(const D of y)for(let F=D.original.startLineNumber;F<D.original.endLineNumberExclusive-2;F++){const k= ` $ { A [ F - 1 ] } : $ { A [ F + 1 - 1 ] } : $ { A [ F + 2 - 1 ] } ` ;_.add(k,{range:new v.LineRange(F,F+3)})}const E=[];y.sort((0,R.compareBy)(D=>D.modified.startLineNumber,R.numberComparator));for(const D of y){let F=[];for(let k=D.modified.startLineNumber;k<D.modified.endLineNumberExclusive-2;k++){const O= ` $ { p [ k - 1 ] } : $ { p [ k + 1 - 1 ] } : $ { p [ k + 2 - 1 ] } ` ,z=new v.LineRange(k,k+3),Q=[];_.forEach(O,({range:T})=>{for(const W of F)if(W.originalLineRange.endLineNumberExclusive+1===T.endLineNumberExclusive&&W.modifiedLineRange.endLineNumberExclusive+1===z.endLineNumberExclusive){W.originalLineRange=new v.LineRange(W.originalLineRange.startLineNumber,T.endLineNumberExclusive),W.modifiedLineRange=new v.LineRange(W.modifiedLineRange.startLineNumber,z.endLineNumberExclusive),Q.push(W);return}const I={modifiedLineRange:z,originalLineRange:T};E.push(I),Q.push(I)}),F=Q}if(!g.isValid())return[]}E.sort((0,R.reverseOrder)((0,R.compareBy)(D=>D.modifiedLineRange.length,R.numberComparator)));const N=new v.LineRangeSet,L=new v.LineRangeSet;for(const D of E){const F=D.modifiedLineRange.startLineNumber-D.originalLineRange.startLineNumber,k=N.subtractFrom(D.modifiedLineRange),O=L.subtractFrom(D.originalLineRange).getWithDelta(F),z=k.getIntersection(O);for(const Q of z.ranges){if(Q.length<3)continue;const T=Q,I=Q.delta(-F);w.push(new x.LineRangeMapping(I,T)),N.addRange(T),L.addRange(I)}}w.sort((0,R.compareBy)(D=>D.original.startLineNumber,R.numberComparator));const M=new b.MonotonousArray(y);for(let D=0;D<w.length;D++){const F=w[D],k=M.findLastMonotonous(H=>H.original.startLineNumber<=F.original.startLineNumber),O=(0,b.findLastMonotonous)(y,H=>H.modified.startLineNumber<=F.modified.startLineNumber),z=Math.max(F.original.startLineNumber-k.original.startLineNumber,F.modified.startLineNumber-O.modified.startLineNumber),Q=M.findLastMonotonous(H=>H.original.startLineNumber<F.original.endLineNumberExclusive),T=(0,b.findLastMonotonous)(y,H=>H.modified.startLineNumber<F.modified.endLineNumberExclusive),I=Math.max(Q.original.endLineNumberExclusive-F.original.endLineNumberExclusive,T.modified.endLineNumberExclusive-F.modified.endLineNumberExclusive);let W;for(W=0;W<z;W++){const H=F.original.startLineNumber-W-1,U=F.modified.startLineNumber-W-1;if(H>i.length||U>l.length||N.contains(U)||L.contains(H)||!h(i[H-1],l[U-1],g))break}W>0&&(L.addRange(new v.LineRange(F.original.startLineNumber-W,F.original.startLineNumber)),N.addRange(new v.LineRange(F.modified.startLineNumber-W,F.modified.startLineNumber)));let V;for(V=0;V<I;V++){const H=F.original.endLineNumberExclusive+V,U=F.modified.endLineNumberExclusive+V;if(H>i.length||U>l.length||N.contains(U)||L.contains(H)||!h(i[H-1],l[U-1],g))break}V>0&&(L.addRange(new v.LineRange(F.original.endLineNumberExclusive,F.original.endLineNumberExclusive+V)),N.addRange(new v.LineRange(F.modified.endLineNumberExclusive,F.modified.endLineNumberExclusive+V))),(W>0||V>0)&&(w[D]=new x.LineRangeMapping(new v.LineRange(F.original.startLineNumber-W,F.original.endLineNumberExclusive+V),new v.LineRange(F.modified.startLineNumber-W,F.modified.endLineNumberExclusive+V)))}return w}function h(y,A,p){if(y.trim()===A.trim())return!0;if(y.length>300&&A.length>300)return!1;const l=new e.MyersDiffAlgorithm().compute(new a.LinesSliceCharSequence([y],new o.OffsetRange(0,1),!1),new a.LinesSliceCharSequenc
` )>=0;let y=null;try{y=n.createRegExp(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:C,global:!0,unicode:!0})}catch{return null}if(!y)return null;let A=!this.isRegex&&!C;return A&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(A=this.matchCase),new f.SearchData(y,this.wordSeparators?(0,x.getMapForWordSeparators)(this.wordSeparators,[]):null,A?this.searchString:null)}}r.SearchParams=o;function a(S){if(!S||S.length===0)return!1;for(let C=0,y=S.length;C<y;C++){const A=S.charCodeAt(C);if(A===10)return!0;if(A===92){if(C++,C>=y)break;const p=S.charCodeAt(C);if(p===110||p===114||p===87)return!0}}return!1}function m(S,C,y){if(!y)return new f.FindMatch(S,null);const A=[];for(let p=0,i=C.length;p<i;p++)A[p]=C[p];return new f.FindMatch(S,A)}class e{constructor(C){const y=[];let A=0;for(let p=0,i=C.length;p<i;p++)C.charCodeAt(p)===10&&(y[A++]=p);this._lineFeedsOffsets=y}findLineFeedCountBeforeOffset(C){const y=this._lineFeedsOffsets;let A=0,p=y.length-1;if(p===-1||C<=y[0])return 0;for(;A<p;){const i=A+((p-A)/2>>0);y[i]>=C?p=i-1:y[i+1]>=C?(A=i,p=i):A=i+1}return A+1}}class c{static findMatches(C,y,A,p,i){const l=y.parseSearchRequest();return l?l.regex.multiline?this._doFindMatchesMultiline(C,A,new h(l.wordSeparators,l.regex),p,i):this._doFindMatchesLineByLine(C,A,l,p,i):[]}static _getMultilineMatchRange(C,y,A,p,i,l){let g,w=0;p?(w=p.findLineFeedCountBeforeOffset(i),g=y+i+w):g=y+i;let _;if(p){const M=p.findLineFeedCountBeforeOffset(i+l.length)-w;_=g+l.length+M}else _=g+l.length;const E=C.getPositionAt(g),N=C.getPositionAt(_);return new b.Range(E.lineNumber,E.column,N.lineNumber,N.column)}static _doFindMatchesMultiline(C,y,A,p,i){const l=C.getOffsetAt(y.getStartPosition()),g=C.getValueInRange(y,1),w=C.getEOL()=== ` \ r
` ?new e(g):null,_=[];let E=0,N;for(A.reset(0);N=A.next(g);)if(_[E++]=m(this._getMultilineMatchRange(C,l,g,w,N.index,N[0]),N,p),E>=i)return _;return _}static _doFindMatchesLineByLine(C,y,A,p,i){const l=[];let g=0;if(y.startLineNumber===y.endLineNumber){const _=C.getLineContent(y.startLineNumber).substring(y.startColumn-1,y.endColumn-1);return g=this._findMatchesInLine(A,_,y.startLineNumber,y.startColumn-1,g,l,p,i),l}const w=C.getLineContent(y.startLineNumber).substring(y.startColumn-1);g=this._findMatchesInLine(A,w,y.startLineNumber,y.startColumn-1,g,l,p,i);for(let _=y.startLineNumber+1;_<y.endLineNumber&&g<i;_++)g=this._findMatchesInLine(A,C.getLineContent(_),_,0,g,l,p,i);if(g<i){const _=C.getLineContent(y.endLineNumber).substring(0,y.endColumn-1);g=this._findMatchesInLine(A,_,y.endLineNumber,0,g,l,p,i)}return l}static _findMatchesInLine(C,y,A,p,i,l,g,w){const _=C.wordSeparators;if(!g&&C.simpleSearch){const L=C.simpleSearch,M=L.length,D=y.length;let F=-M;for(;(F=y.indexOf(L,F+M))!==-1;)if((!_||d(_,y,D,F,M))&&(l[i++]=new f.FindMatch(new b.Range(A,F+1+p,A,F+1+M+p),null),i>=w))return i;return i}const E=new h(C.wordSeparators,C.regex);let N;E.reset(0);do if(N=E.next(y),N&&(l[i++]=m(new b.Range(A,N.index+1+p,A,N.index+1+N[0].length+p),N,g),i>=w))return i;while(N);return i}static findNextMatch(C,y,A,p){const i=y.parseSearchRequest();if(!i)return null;const l=new h(i.wordSeparators,i.regex);return i.regex.multiline?this._doFindNextMatchMultiline(C,A,l,p):this._doFindNextMatchLineByLine(C,A,l,p)}static _doFindNextMatchMultiline(C,y,A,p){const i=new R.Position(y.lineNumber,1),l=C.getOffsetAt(i),g=C.getLineCount(),w=C.getValueInRange(new b.Range(i.lineNumber,i.column,g,C.getLineMaxColumn(g)),1),_=C.getEOL()=== ` \ r
` ?new e(w):null;A.reset(y.column-1);const E=A.next(w);return E?m(this._getMultilineMatchRange(C,l,w,_,E.index,E[0]),E,p):y.lineNumber!==1||y.column!==1?this._doFindNextMatchMultiline(C,new R.Position(1,1),A,p):null}static _doFindNextMatchLineByLine(C,y,A,p){const i=C.getLineCount(),l=y.lineNumber,g=C.getLineContent(l),w=this._findFirstMatchInLine(A,g,l,y.column,p);if(w)return w;for(let _=1;_<=i;_++){const E=(l+_-1)%i,N=C.getLineContent(E+1),L=this._findFirstMatchInLine(A,N,E+1,1,p);if(L)return L}return null}static _findFirstMatchInLine(C,y,A,p,i){C.reset(p-1);const l=C.next(y);return l?m(new b.Range(A,l.index+1,A,l.index+1+l[0].length),l,i):null}static findPreviousMatch(C,y,A,p){const i=y.parseSearchRequest();if(!i)return null;const l=new h(i.wordSeparators,i.regex);return i.regex.multiline?this._doFindPreviousMatchMultiline(C,A,l,p):this._doFindPreviousMatchLineByLine(C,A,l,p)}static _doFindPreviousMatchMultiline(C,y,A,p){const i=this._doFindMatchesMultiline(C,new b.Range(1,1,y.lineNumber,y.column),A,p,10*v);if(i.length>0)return i[i.length-1];const l=C.getLineCount();return y.lineNumber!==l||y.column!==C.getLineMaxColumn(l)?this._doFindPreviousMatchMultiline(C,new R.Position(l,C.getLineMaxColumn(l)),A,p):null}static _doFindPreviousMatchLineByLine(C,y,A,p){const i=C.getLineCount(),l=y.lineNumber,g=C.getLineContent(l).substring(0,y.column-1),w=this._findLastMatchInLine(A,g,l,p);if(w)return w;for(let _=1;_<=i;_++){const E=(i+l-_-1)%i,N=C.getLineContent(E+1),L=this._findLastMatchInLine(A,N,E+1,p);if(L)return L}return null}static _findLastMatchInLine(C,y,A,p){let i=null,l;for(C.reset(0);l=C.next(y);)i=m(new b.Range(A,l.index+1,A,l.index+1+l[0].length),l,p);return i}}r.TextModelSearch=c;function s(S,C,y,A,p){if(A===0)return!0;const i=C.charCodeAt(A-1);if(S.get(i)!==0||i===13||i===10)return!0;if(p>0){const l=C.charCodeAt(A);if(S.get(l)!==0)return!0}return!1}function u(S,C,y,A,p){if(A+p===y)return!0;const i=C.charCodeAt(A+p);if(S.get(i)!==0||i===13||i===10)return!0;if(p>0){const l=C.charCodeAt(A+p-1);if(S.get(l)!==0)return!0}return!1}function d(S,C,y,A,p){return s(S,C,y,A,p)&&u(S,C,y,A,p)}class h{constructor(C,y){this._wordSeparators=C,this._searchRegex=y,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(C){this._searchRegex.lastIndex=C,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(C){const y=C.length;let A;do{if(this._prevMatchStartIndex+this._prevMatchLength===y||(A=this._searchRegex.exec(C),!A))return null;const p=A.index,i=A[0].length;if(p===this._prevMatchStartIndex&&i===this._prevMatchLength){if(i===0){n.getNextCodePoint(C,y,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=p,this._prevMatchLength=i,!this._wordSeparators||d(this._wordSeparators,C,y,p,i))return A}while(A);return null}}r.Searcher=h}),X(Y[62],J([0,1]),function(q,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.findSectionHeaders=R;const n=/ \b MARK: \s *(.*) $ /d,x=/^-+|-+ $ /g;function R(a,m){var e;let c=[];if(m.findRegionSectionHeaders&&(!((e=m.foldingRules)===null||e===void 0)&&e.markers)){const s=b(a,m);c=c.concat(s)}if(m.findMarkSectionHeaders){const s=f(a);c=c.concat(s)}return c}function b(a,m){const e=[],c=a.getLineCount();for(let s=1;s<=c;s++){const u=a.getLineContent(s),d=u.match(m.foldingRules.markers.start);if(d){const h={startLineNumber:s,startColumn:d[0].length+1,endLineNumber:s,endColumn:u.length+1};if(h.endColumn>h.startColumn){const S={range:h,...o(u.substring(d[0].length)),shouldBeInComments:!1};(S.text||S.hasSeparatorLine)&&e.push(S)}}}return e}function f(a){const m=[],e=a.getLineCount();for(let c=1;c<=e;c++){const s=a.getLineContent(c);v(s,c,m)}return m}function v(a,m,e){n.lastIndex=0;const c=n.exec(a);if(c){const s=c.indices[1][0]+1,u=c.indices[1][1]+1,d={startLineNumber:m,startColumn:s,endLineNumber:m,endColumn:u};if(d.endColumn>d.startColumn){const h={range:d,...o(c[1]),shouldBeInComments:!0};(h.text||h.hasSeparatorLine)&&e.push(h)}}}function o(a){a=a.trim();const m=a.startsWith("-");return a=a.replace(x,""),{
` ||e===" "}}),X(Y[64],J([0,1]),function(q,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.WrappingIndent=r.TrackedRangeStickiness=r.TextEditorCursorStyle=r.TextEditorCursorBlinkingStyle=r.SymbolTag=r.SymbolKind=r.SignatureHelpTriggerKind=r.ShowLightbulbIconMode=r.SelectionDirection=r.ScrollbarVisibility=r.ScrollType=r.RenderMinimap=r.RenderLineNumbersType=r.PositionAffinity=r.PartialAcceptTriggerKind=r.OverviewRulerLane=r.OverlayWidgetPositionPreference=r.NewSymbolNameTriggerKind=r.NewSymbolNameTag=r.MouseTargetType=r.MinimapSectionHeaderStyle=r.MinimapPosition=r.MarkerTag=r.MarkerSeverity=r.KeyCode=r.InlineEditTriggerKind=r.InlineCompletionTriggerKind=r.InlayHintKind=r.InjectedTextCursorStops=r.IndentAction=r.HoverVerbosityAction=r.GlyphMarginLane=r.EndOfLineSequence=r.EndOfLinePreference=r.EditorOption=r.EditorAutoIndentStrategy=r.DocumentHighlightKind=r.DefaultEndOfLine=r.CursorChangeReason=r.ContentWidgetPositionPreference=r.CompletionTriggerKind=r.CompletionItemTag=r.CompletionItemKind=r.CompletionItemInsertTextRule=r.CodeActionTriggerType=r.AccessibilitySupport=void 0;var n;(function(t){t[t.Unknown=0]="Unknown",t[t.Disabled=1]="Disabled",t[t.Enabled=2]="Enabled"})(n||(r.AccessibilitySupport=n={}));var x;(function(t){t[t.Invoke=1]="Invoke",t[t.Auto=2]="Auto"})(x||(r.CodeActionTriggerType=x={}));var R;(function(t){t[t.None=0]="None",t[t.KeepWhitespace=1]="KeepWhitespace",t[t.InsertAsSnippet=4]="InsertAsSnippet"})(R||(r.CompletionItemInsertTextRule=R={}));var b;(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"})(b||(r.CompletionItemKind=b={}));var f;(function(t){t[t.Deprecated=1]="Deprecated"})(f||(r.CompletionItemTag=f={}));var v;(function(t){t[t.Invoke=0]="Invoke",t[t.TriggerCharacter=1]="TriggerCharacter",t[t.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(v||(r.CompletionTriggerKind=v={}));var o;(function(t){t[t.EXACT=0]="EXACT",t[t.ABOVE=1]="ABOVE",t[t.BELOW=2]="BELOW"})(o||(r.ContentWidgetPositionPreference=o={}));var a;(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"})(a||(r.CursorChangeReason=a={}));var m;(function(t){t[t.LF=1]="LF",t[t.CRLF=2]="CRLF"})(m||(r.DefaultEndOfLine=m={}));var e;(function(t){t[t.Text=0]="Text",t[t.Read=1]="Read",t[t.Write=2]="Write"})(e||(r.DocumentHighlightKind=e={}));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||(r.EditorAutoIndentStrategy=c={}));var s;(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.ariaRequired=5]="ariaRequired",t[t.autoClosingBrackets=6]="autoClosingBrackets",t[t.autoClosingComments=7]="autoClosingComments",t[t.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",t[t.autoClosingDelete=9]="autoClosingDelete",t[t.autoClosingOvertype=10]="autoClosingOvertype",t[t.autoClosingQuotes=11]="autoClosingQuotes",t[t.autoIndent=12]="autoIndent",t[t.automaticLayout=13]="automaticLayout",t[t.autoSurround=14]="autoSurround",t[t.bracketPairColorization=15]="bracketPairColorization",
2024-02-21 22:15:21 +00:00
//# sourceMappingURL=../../../../min-maps/vs/base/worker/workerMain.js.map