(function(){"use strict";class Fn{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(t){setTimeout(()=>{throw t.stack?ae.isErrorNoTelemetry(t)?new ae(t.message+` `+t.stack):new Error(t.message+` `+t.stack):t},0)}}emit(t){this.listeners.forEach(r=>{r(t)})}onUnexpectedError(t){this.unexpectedErrorHandler(t),this.emit(t)}onUnexpectedExternalError(t){this.unexpectedErrorHandler(t)}}const xn=new Fn;function En(e){Vn(e)||xn.onUnexpectedError(e)}function ct(e){if(e instanceof Error){const{name:t,message:r}=e,s=e.stacktrace||e.stack;return{$isError:!0,name:t,message:r,stack:s,noTelemetry:ae.isErrorNoTelemetry(e)}}return e}const Fe="Canceled";function Vn(e){return e instanceof Bn?!0:e instanceof Error&&e.name===Fe&&e.message===Fe}class Bn extends Error{constructor(){super(Fe),this.name=this.message}}class ae extends Error{constructor(t){super(t),this.name="ErrorNoTelemetry"}static fromError(t){if(t instanceof ae)return t;const r=new ae;return r.message=t.message,r.stack=t.stack,r}static isErrorNoTelemetry(t){return t.name==="ErrorNoTelemetry"}}function Tn(e){const t=this;let r=!1,s;return function(){return r||(r=!0,s=e.apply(t,arguments)),s}}var Ce;(function(e){function t(p){return p&&typeof p=="object"&&typeof p[Symbol.iterator]=="function"}e.is=t;const r=Object.freeze([]);function s(){return r}e.empty=s;function*i(p){yield p}e.single=i;function a(p){return p||r}e.from=a;function o(p){return!p||p[Symbol.iterator]().next().done===!0}e.isEmpty=o;function l(p){return p[Symbol.iterator]().next().value}e.first=l;function u(p,S){for(const b of p)if(S(b))return!0;return!1}e.some=u;function c(p,S){for(const b of p)if(S(b))return b}e.find=c;function*f(p,S){for(const b of p)S(b)&&(yield b)}e.filter=f;function*h(p,S){let b=0;for(const g of p)yield S(g,b++)}e.map=h;function*d(...p){for(const S of p)for(const b of S)yield b}e.concat=d;function*C(p){for(const S of p)for(const b of S)yield b}e.concatNested=C;function v(p,S,b){let g=b;for(const m of p)g=S(g,m);return g}e.reduce=v;function A(p,S){let b=0;for(const g of p)S(g,b++)}e.forEach=A;function*M(p,S,b=p.length){for(S<0&&(S+=p.length),b<0?b+=p.length:b>p.length&&(b=p.length);Sg===m){const g=p[Symbol.iterator](),m=S[Symbol.iterator]();for(;;){const w=g.next(),N=m.next();if(w.done!==N.done)return!1;if(w.done)return!0;if(!b(w.value,N.value))return!1}}e.equals=y})(Ce||(Ce={}));function C1(e){return e}function _1(e,t){}class Un extends Error{constructor(t){super(`Encountered errors while disposing of store. Errors: [${t.join(", ")}]`),this.errors=t}}function ut(e){if(Ce.is(e)){const t=[];for(const r of e)if(r)try{r.dispose()}catch(s){t.push(s)}if(t.length===1)throw t[0];if(t.length>1)throw new Un(t);return Array.isArray(e)?[]:e}else if(e)return e.dispose(),e}function In(...e){return _e(()=>ut(e))}function _e(e){return{dispose:Tn(()=>{e()})}}class te{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){try{ut(this._toDispose.values())}finally{this._toDispose.clear()}}add(t){if(!t)return t;if(t===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?te.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(t),t}}te.DISABLE_DISPOSED_WARNING=!1;class xe{constructor(){this._store=new te,this._store}dispose(){this._store.dispose()}_register(t){if(t===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(t)}}xe.None=Object.freeze({dispose(){}});class qn{constructor(){this.dispose=()=>{},this.unset=()=>{},this.isset=()=>!1}set(t){let r=t;return this.unset=()=>r=void 0,this.isset=()=>r!==void 0,this.dispose=()=>{r&&(r(),r=void 0)},this}}class D{constructor(t){this.element=t,this.next=D.Undefined,this.prev=D.Undefined}}D.Undefined=new D(void 0);class pe{constructor(){this._first=D.Undefined,this._last=D.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===D.Undefined}clear(){let t=this._first;for(;t!==D.Undefined;){const r=t.next;t.prev=D.Undefined,t.next=D.Undefined,t=r}this._first=D.Undefined,this._last=D.Undefined,this._size=0}unshift(t){return this._insert(t,!1)}push(t){return this._insert(t,!0)}_insert(t,r){const s=new D(t);if(this._first===D.Undefined)this._first=s,this._last=s;else if(r){const a=this._last;this._last=s,s.prev=a,a.next=s}else{const a=this._first;this._first=s,s.next=a,a.prev=s}this._size+=1;let i=!1;return()=>{i||(i=!0,this._remove(s))}}shift(){if(this._first!==D.Undefined){const t=this._first.element;return this._remove(this._first),t}}pop(){if(this._last!==D.Undefined){const t=this._last.element;return this._remove(this._last),t}}_remove(t){if(t.prev!==D.Undefined&&t.next!==D.Undefined){const r=t.prev;r.next=t.next,t.next.prev=r}else t.prev===D.Undefined&&t.next===D.Undefined?(this._first=D.Undefined,this._last=D.Undefined):t.next===D.Undefined?(this._last=this._last.prev,this._last.next=D.Undefined):t.prev===D.Undefined&&(this._first=this._first.next,this._first.prev=D.Undefined);this._size-=1}*[Symbol.iterator](){let t=this._first;for(;t!==D.Undefined;)yield t.element,t=t.next}}let Hn=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function Wn(e,t){let r;return t.length===0?r=e:r=e.replace(/\{(\d+)\}/g,(s,i)=>{const a=i[0],o=t[a];let l=s;return typeof o=="string"?l=o:(typeof o=="number"||typeof o=="boolean"||o===void 0||o===null)&&(l=String(o)),l}),Hn&&(r="\uFF3B"+r.replace(/[aouei]/g,"$&$&")+"\uFF3D"),r}function $n(e,t,...r){return Wn(t,r)}function p1(e){}var Ee;const fe="en";let Ve=!1,Be=!1,Te=!1,ht=!1,Le,Ue=fe,zn,Q;const T=typeof self=="object"?self:typeof global=="object"?global:{};let U;typeof T.vscode<"u"&&typeof T.vscode.process<"u"?U=T.vscode.process:typeof process<"u"&&(U=process);const Gn=typeof((Ee=U==null?void 0:U.versions)===null||Ee===void 0?void 0:Ee.electron)=="string"&&(U==null?void 0:U.type)==="renderer";if(typeof navigator=="object"&&!Gn)Q=navigator.userAgent,Ve=Q.indexOf("Windows")>=0,Be=Q.indexOf("Macintosh")>=0,(Q.indexOf("Macintosh")>=0||Q.indexOf("iPad")>=0||Q.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Te=Q.indexOf("Linux")>=0,ht=!0,$n({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),Le=fe,Ue=Le;else if(typeof U=="object"){Ve=U.platform==="win32",Be=U.platform==="darwin",Te=U.platform==="linux",Te&&!!U.env.SNAP&&U.env.SNAP_REVISION,U.env.CI||U.env.BUILD_ARTIFACTSTAGINGDIRECTORY,Le=fe,Ue=fe;const e=U.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e),r=t.availableLanguages["*"];Le=t.locale,Ue=r||fe,zn=t._translationsConfigFile}catch{}}else console.error("Unable to resolve platform.");const de=Ve,On=Be;ht&&T.importScripts;const O=Q,jn=typeof T.postMessage=="function"&&!T.importScripts;(()=>{if(jn){const e=[];T.addEventListener("message",r=>{if(r.data&&r.data.vscodeScheduleAsyncWork)for(let s=0,i=e.length;s{const s=++t;e.push({id:s,callback:r}),T.postMessage({vscodeScheduleAsyncWork:s},"*")}}return e=>setTimeout(e)})();const Qn=!!(O&&O.indexOf("Chrome")>=0);O&&O.indexOf("Firefox")>=0,!Qn&&O&&O.indexOf("Safari")>=0,O&&O.indexOf("Edg/")>=0,O&&O.indexOf("Android")>=0;const Zn=T.performance&&typeof T.performance.now=="function";class Ne{constructor(t){this._highResolution=Zn&&t,this._startTime=this._now(),this._stopTime=-1}static create(t=!0){return new Ne(t)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?T.performance.now():Date.now()}}var Ie;(function(e){e.None=()=>xe.None;function t(b){return(g,m=null,w)=>{let N=!1,L;return L=b(_=>{if(!N)return L?L.dispose():N=!0,g.call(m,_)},null,w),N&&L.dispose(),L}}e.once=t;function r(b,g,m){return u((w,N=null,L)=>b(_=>w.call(N,g(_)),null,L),m)}e.map=r;function s(b,g,m){return u((w,N=null,L)=>b(_=>{g(_),w.call(N,_)},null,L),m)}e.forEach=s;function i(b,g,m){return u((w,N=null,L)=>b(_=>g(_)&&w.call(N,_),null,L),m)}e.filter=i;function a(b){return b}e.signal=a;function o(...b){return(g,m=null,w)=>In(...b.map(N=>N(L=>g.call(m,L),null,w)))}e.any=o;function l(b,g,m,w){let N=m;return r(b,L=>(N=g(N,L),N),w)}e.reduce=l;function u(b,g){let m;const w={onFirstListenerAdd(){m=b(N.fire,N)},onLastListenerRemove(){m==null||m.dispose()}},N=new j(w);return g==null||g.add(N),N.event}function c(b,g,m=100,w=!1,N,L){let _,E,Pe,lt=0;const g1={leakWarningThreshold:N,onFirstListenerAdd(){_=b(b1=>{lt++,E=g(E,b1),w&&!Pe&&(De.fire(E),E=void 0),clearTimeout(Pe),Pe=setTimeout(()=>{const w1=E;E=void 0,Pe=void 0,(!w||lt>1)&&De.fire(w1),lt=0},m)})},onLastListenerRemove(){_.dispose()}},De=new j(g1);return L==null||L.add(De),De.event}e.debounce=c;function f(b,g=(w,N)=>w===N,m){let w=!0,N;return i(b,L=>{const _=w||!g(L,N);return w=!1,N=L,_},m)}e.latch=f;function h(b,g,m){return[e.filter(b,g,m),e.filter(b,w=>!g(w),m)]}e.split=h;function d(b,g=!1,m=[]){let w=m.slice(),N=b(E=>{w?w.push(E):_.fire(E)});const L=()=>{w==null||w.forEach(E=>_.fire(E)),w=null},_=new j({onFirstListenerAdd(){N||(N=b(E=>_.fire(E)))},onFirstListenerDidAdd(){w&&(g?setTimeout(L):L())},onLastListenerRemove(){N&&N.dispose(),N=null}});return _.event}e.buffer=d;class C{constructor(g){this.event=g,this.disposables=new te}map(g){return new C(r(this.event,g,this.disposables))}forEach(g){return new C(s(this.event,g,this.disposables))}filter(g){return new C(i(this.event,g,this.disposables))}reduce(g,m){return new C(l(this.event,g,m,this.disposables))}latch(){return new C(f(this.event,void 0,this.disposables))}debounce(g,m=100,w=!1,N){return new C(c(this.event,g,m,w,N,this.disposables))}on(g,m,w){return this.event(g,m,w)}once(g,m,w){return t(this.event)(g,m,w)}dispose(){this.disposables.dispose()}}function v(b){return new C(b)}e.chain=v;function A(b,g,m=w=>w){const w=(...E)=>_.fire(m(...E)),N=()=>b.on(g,w),L=()=>b.removeListener(g,w),_=new j({onFirstListenerAdd:N,onLastListenerRemove:L});return _.event}e.fromNodeEventEmitter=A;function M(b,g,m=w=>w){const w=(...E)=>_.fire(m(...E)),N=()=>b.addEventListener(g,w),L=()=>b.removeEventListener(g,w),_=new j({onFirstListenerAdd:N,onLastListenerRemove:L});return _.event}e.fromDOMEventEmitter=M;function R(b){return new Promise(g=>t(b)(g))}e.toPromise=R;function P(b,g){return g(void 0),b(m=>g(m))}e.runAndSubscribe=P;function y(b,g){let m=null;function w(L){m==null||m.dispose(),m=new te,g(L,m)}w(void 0);const N=b(L=>w(L));return _e(()=>{N.dispose(),m==null||m.dispose()})}e.runAndSubscribeWithStore=y;class p{constructor(g,m){this.obs=g,this._counter=0,this._hasChanged=!1;const w={onFirstListenerAdd:()=>{g.addObserver(this)},onLastListenerRemove:()=>{g.removeObserver(this)}};this.emitter=new j(w),m&&m.add(this.emitter)}beginUpdate(g){this._counter++}handleChange(g,m){this._hasChanged=!0}endUpdate(g){--this._counter===0&&this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this.obs.get()))}}function S(b,g){return new p(b,g).emitter.event}e.fromObservable=S})(Ie||(Ie={}));class ve{constructor(t){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${t}_${ve._idPool++}`}start(t){this._stopWatch=new Ne(!0),this._listenerCount=t}stop(){if(this._stopWatch){const t=this._stopWatch.elapsed();this._elapsedOverall+=t,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${t.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}ve._idPool=0;class qe{constructor(t){this.value=t}static create(){var t;return new qe((t=new Error().stack)!==null&&t!==void 0?t:"")}print(){console.warn(this.value.split(` `).slice(2).join(` `))}}class Yn{constructor(t,r,s){this.callback=t,this.callbackThis=r,this.stack=s,this.subscription=new qn}invoke(t){this.callback.call(this.callbackThis,t)}}class j{constructor(t){var r,s;this._disposed=!1,this._options=t,this._leakageMon=void 0,this._perfMon=!((r=this._options)===null||r===void 0)&&r._profName?new ve(this._options._profName):void 0,this._deliveryQueue=(s=this._options)===null||s===void 0?void 0:s.deliveryQueue}dispose(){var t,r,s,i;this._disposed||(this._disposed=!0,this._listeners&&this._listeners.clear(),(t=this._deliveryQueue)===null||t===void 0||t.clear(this),(s=(r=this._options)===null||r===void 0?void 0:r.onLastListenerRemove)===null||s===void 0||s.call(r),(i=this._leakageMon)===null||i===void 0||i.dispose())}get event(){return this._event||(this._event=(t,r,s)=>{var i,a,o;this._listeners||(this._listeners=new pe);const l=this._listeners.isEmpty();l&&((i=this._options)===null||i===void 0?void 0:i.onFirstListenerAdd)&&this._options.onFirstListenerAdd(this);let u,c;this._leakageMon&&this._listeners.size>=30&&(c=qe.create(),u=this._leakageMon.check(c,this._listeners.size+1));const f=new Yn(t,r,c),h=this._listeners.push(f);l&&((a=this._options)===null||a===void 0?void 0:a.onFirstListenerDidAdd)&&this._options.onFirstListenerDidAdd(this),!((o=this._options)===null||o===void 0)&&o.onListenerDidAdd&&this._options.onListenerDidAdd(this,t,r);const d=f.subscription.set(()=>{u==null||u(),this._disposed||(h(),this._options&&this._options.onLastListenerRemove&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)))});return s instanceof te?s.add(d):Array.isArray(s)&&s.push(d),d}),this._event}fire(t){var r,s;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new Jn);for(const i of this._listeners)this._deliveryQueue.push(this,i,t);(r=this._perfMon)===null||r===void 0||r.start(this._deliveryQueue.size),this._deliveryQueue.deliver(),(s=this._perfMon)===null||s===void 0||s.stop()}}}class Xn{constructor(){this._queue=new pe}get size(){return this._queue.size}push(t,r,s){this._queue.push(new Kn(t,r,s))}clear(t){const r=new pe;for(const s of this._queue)s.emitter!==t&&r.push(s);this._queue=r}deliver(){for(;this._queue.size>0;){const t=this._queue.shift();try{t.listener.invoke(t.event)}catch(r){En(r)}}}}class Jn extends Xn{clear(t){this._queue.clear()}}class Kn{constructor(t,r,s){this.emitter=t,this.listener=r,this.event=s}}function er(e){let t=[],r=Object.getPrototypeOf(e);for(;Object.prototype!==r;)t=t.concat(Object.getOwnPropertyNames(r)),r=Object.getPrototypeOf(r);return t}function He(e){const t=[];for(const r of er(e))typeof e[r]=="function"&&t.push(r);return t}function tr(e,t){const r=i=>function(){const a=Array.prototype.slice.call(arguments,0);return t(i,a)},s={};for(const i of e)s[i]=r(i);return s}function nr(e,t="Unreachable"){throw new Error(t)}class rr{constructor(t){this.fn=t,this.lastCache=void 0,this.lastArgKey=void 0}get(t){const r=JSON.stringify(t);return this.lastArgKey!==r&&(this.lastArgKey=r,this.lastCache=this.fn(t)),this.lastCache}}class ft{constructor(t){this.executor=t,this._didRun=!1}hasValue(){return this._didRun}getValue(){if(!this._didRun)try{this._value=this.executor()}catch(t){this._error=t}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}var dt;function sr(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function ir(e){return e.split(/\r\n|\r|\n/)}function ar(e){for(let t=0,r=e.length;t=0;r--){const s=e.charCodeAt(r);if(s!==32&&s!==9)return r}return-1}function mt(e){return e>=65&&e<=90}function We(e){return 55296<=e&&e<=56319}function lr(e){return 56320<=e&&e<=57343}function cr(e,t){return(e-55296<<10)+(t-56320)+65536}function ur(e,t,r){const s=e.charCodeAt(r);if(We(s)&&r+1JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}')),z.cache=new rr(e=>{function t(c){const f=new Map;for(let h=0;h!c.startsWith("_")&&c in i);a.length===0&&(a=["_default"]);let o;for(const c of a){const f=t(i[c]);o=s(o,f)}const l=t(i._common),u=r(l,o);return new z(u)}),z._locales=new ft(()=>Object.keys(z.ambiguousCharacterData.getValue()).filter(e=>!e.startsWith("_")));class Z{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static getData(){return this._data||(this._data=new Set(Z.getRawData())),this._data}static isInvisibleCharacter(t){return Z.getData().has(t)}static get codePoints(){return Z.getData()}}Z._data=void 0;const dr="$initialize";class mr{constructor(t,r,s,i){this.vsWorker=t,this.req=r,this.method=s,this.args=i,this.type=0}}class gt{constructor(t,r,s,i){this.vsWorker=t,this.seq=r,this.res=s,this.err=i,this.type=1}}class gr{constructor(t,r,s,i){this.vsWorker=t,this.req=r,this.eventName=s,this.arg=i,this.type=2}}class br{constructor(t,r,s){this.vsWorker=t,this.req=r,this.event=s,this.type=3}}class wr{constructor(t,r){this.vsWorker=t,this.req=r,this.type=4}}class Cr{constructor(t){this._workerId=-1,this._handler=t,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(t){this._workerId=t}sendMessage(t,r){const s=String(++this._lastSentReq);return new Promise((i,a)=>{this._pendingReplies[s]={resolve:i,reject:a},this._send(new mr(this._workerId,s,t,r))})}listen(t,r){let s=null;const i=new j({onFirstListenerAdd:()=>{s=String(++this._lastSentReq),this._pendingEmitters.set(s,i),this._send(new gr(this._workerId,s,t,r))},onLastListenerRemove:()=>{this._pendingEmitters.delete(s),this._send(new wr(this._workerId,s)),s=null}});return i.event}handleMessage(t){!t||!t.vsWorker||this._workerId!==-1&&t.vsWorker!==this._workerId||this._handleMessage(t)}_handleMessage(t){switch(t.type){case 1:return this._handleReplyMessage(t);case 0:return this._handleRequestMessage(t);case 2:return this._handleSubscribeEventMessage(t);case 3:return this._handleEventMessage(t);case 4:return this._handleUnsubscribeEventMessage(t)}}_handleReplyMessage(t){if(!this._pendingReplies[t.seq]){console.warn("Got reply to unknown seq");return}const r=this._pendingReplies[t.seq];if(delete this._pendingReplies[t.seq],t.err){let s=t.err;t.err.$isError&&(s=new Error,s.name=t.err.name,s.message=t.err.message,s.stack=t.err.stack),r.reject(s);return}r.resolve(t.res)}_handleRequestMessage(t){const r=t.req;this._handler.handleMessage(t.method,t.args).then(i=>{this._send(new gt(this._workerId,r,i,void 0))},i=>{i.detail instanceof Error&&(i.detail=ct(i.detail)),this._send(new gt(this._workerId,r,void 0,ct(i)))})}_handleSubscribeEventMessage(t){const r=t.req,s=this._handler.handleEvent(t.eventName,t.arg)(i=>{this._send(new br(this._workerId,r,i))});this._pendingEvents.set(r,s)}_handleEventMessage(t){if(!this._pendingEmitters.has(t.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(t.req).fire(t.event)}_handleUnsubscribeEventMessage(t){if(!this._pendingEvents.has(t.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(t.req).dispose(),this._pendingEvents.delete(t.req)}_send(t){const r=[];if(t.type===0)for(let s=0;sfunction(){const l=Array.prototype.slice.call(arguments,0);return t(o,l)},i=o=>function(l){return r(o,l)},a={};for(const o of e){if(wt(o)){a[o]=i(o);continue}if(bt(o)){a[o]=r(o,void 0);continue}a[o]=s(o)}return a}class pr{constructor(t,r){this._requestHandlerFactory=r,this._requestHandler=null,this._protocol=new Cr({sendMessage:(s,i)=>{t(s,i)},handleMessage:(s,i)=>this._handleMessage(s,i),handleEvent:(s,i)=>this._handleEvent(s,i)})}onmessage(t){this._protocol.handleMessage(t)}_handleMessage(t,r){if(t===dr)return this.initialize(r[0],r[1],r[2],r[3]);if(!this._requestHandler||typeof this._requestHandler[t]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+t));try{return Promise.resolve(this._requestHandler[t].apply(this._requestHandler,r))}catch(s){return Promise.reject(s)}}_handleEvent(t,r){if(!this._requestHandler)throw new Error("Missing requestHandler");if(wt(t)){const s=this._requestHandler[t].call(this._requestHandler,r);if(typeof s!="function")throw new Error(`Missing dynamic event ${t} on request handler.`);return s}if(bt(t)){const s=this._requestHandler[t];if(typeof s!="function")throw new Error(`Missing event ${t} on request handler.`);return s}throw new Error(`Malformed event name ${t}`)}initialize(t,r,s,i){this._protocol.setWorkerId(t);const l=_r(i,(u,c)=>this._protocol.sendMessage(u,c),(u,c)=>this._protocol.listen(u,c));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(l),Promise.resolve(He(this._requestHandler))):(r&&(typeof r.baseUrl<"u"&&delete r.baseUrl,typeof r.paths<"u"&&typeof r.paths.vs<"u"&&delete r.paths.vs,typeof r.trustedTypesPolicy!==void 0&&delete r.trustedTypesPolicy,r.catchError=!0,T.require.config(r)),new Promise((u,c)=>{const f=T.require;f([s],h=>{if(this._requestHandler=h.create(l),!this._requestHandler){c(new Error("No RequestHandler!"));return}u(He(this._requestHandler))},c)}))}}class Y{constructor(t,r,s,i){this.originalStart=t,this.originalLength=r,this.modifiedStart=s,this.modifiedLength=i}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}function Ct(e,t){return(t<<5)-t+e|0}function Lr(e,t){t=Ct(149417,t);for(let r=0,s=e.length;r0||this.m_modifiedCount>0)&&this.m_changes.push(new Y(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(t,r){this.m_originalStart=Math.min(this.m_originalStart,t),this.m_modifiedStart=Math.min(this.m_modifiedStart,r),this.m_originalCount++}AddModifiedElement(t,r){this.m_originalStart=Math.min(this.m_originalStart,t),this.m_modifiedStart=Math.min(this.m_modifiedStart,r),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class X{constructor(t,r,s=null){this.ContinueProcessingPredicate=s,this._originalSequence=t,this._modifiedSequence=r;const[i,a,o]=X._getElements(t),[l,u,c]=X._getElements(r);this._hasStrings=o&&c,this._originalStringElements=i,this._originalElementsOrHash=a,this._modifiedStringElements=l,this._modifiedElementsOrHash=u,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(t){return t.length>0&&typeof t[0]=="string"}static _getElements(t){const r=t.getElements();if(X._isStringArray(r)){const s=new Int32Array(r.length);for(let i=0,a=r.length;i=t&&i>=s&&this.ElementsAreEqual(r,i);)r--,i--;if(t>r||s>i){let h;return s<=i?(oe.Assert(t===r+1,"originalStart should only be one more than originalEnd"),h=[new Y(t,0,s,i-s+1)]):t<=r?(oe.Assert(s===i+1,"modifiedStart should only be one more than modifiedEnd"),h=[new Y(t,r-t+1,s,0)]):(oe.Assert(t===r+1,"originalStart should only be one more than originalEnd"),oe.Assert(s===i+1,"modifiedStart should only be one more than modifiedEnd"),h=[]),h}const o=[0],l=[0],u=this.ComputeRecursionPoint(t,r,s,i,o,l,a),c=o[0],f=l[0];if(u!==null)return u;if(!a[0]){const h=this.ComputeDiffRecursive(t,c,s,f,a);let d=[];return a[0]?d=[new Y(c+1,r-(c+1)+1,f+1,i-(f+1)+1)]:d=this.ComputeDiffRecursive(c+1,r,f+1,i,a),this.ConcatenateChanges(h,d)}return[new Y(t,r-t+1,s,i-s+1)]}WALKTRACE(t,r,s,i,a,o,l,u,c,f,h,d,C,v,A,M,R,P){let y=null,p=null,S=new pt,b=r,g=s,m=C[0]-M[0]-i,w=-1073741824,N=this.m_forwardHistory.length-1;do{const L=m+t;L===b||L=0&&(c=this.m_forwardHistory[N],t=c[0],b=1,g=c.length-1)}while(--N>=-1);if(y=S.getReverseChanges(),P[0]){let L=C[0]+1,_=M[0]+1;if(y!==null&&y.length>0){const E=y[y.length-1];L=Math.max(L,E.getOriginalEnd()),_=Math.max(_,E.getModifiedEnd())}p=[new Y(L,d-L+1,_,A-_+1)]}else{S=new pt,b=o,g=l,m=C[0]-M[0]-u,w=1073741824,N=R?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const L=m+a;L===b||L=f[L+1]?(h=f[L+1]-1,v=h-m-u,h>w&&S.MarkNextChange(),w=h+1,S.AddOriginalElement(h+1,v+1),m=L+1-a):(h=f[L-1],v=h-m-u,h>w&&S.MarkNextChange(),w=h,S.AddModifiedElement(h+1,v+1),m=L-1-a),N>=0&&(f=this.m_reverseHistory[N],a=f[0],b=1,g=f.length-1)}while(--N>=-1);p=S.getChanges()}return this.ConcatenateChanges(y,p)}ComputeRecursionPoint(t,r,s,i,a,o,l){let u=0,c=0,f=0,h=0,d=0,C=0;t--,s--,a[0]=0,o[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const v=r-t+(i-s),A=v+1,M=new Int32Array(A),R=new Int32Array(A),P=i-s,y=r-t,p=t-s,S=r-i,g=(y-P)%2===0;M[P]=t,R[y]=r,l[0]=!1;for(let m=1;m<=v/2+1;m++){let w=0,N=0;f=this.ClipDiagonalBound(P-m,m,P,A),h=this.ClipDiagonalBound(P+m,m,P,A);for(let _=f;_<=h;_+=2){_===f||_w+N&&(w=u,N=c),!g&&Math.abs(_-y)<=m-1&&u>=R[_])return a[0]=u,o[0]=c,E<=R[_]&&1447>0&&m<=1447+1?this.WALKTRACE(P,f,h,p,y,d,C,S,M,R,u,r,a,c,i,o,g,l):null}const L=(w-t+(N-s)-m)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(w,L))return l[0]=!0,a[0]=w,o[0]=N,L>0&&1447>0&&m<=1447+1?this.WALKTRACE(P,f,h,p,y,d,C,S,M,R,u,r,a,c,i,o,g,l):(t++,s++,[new Y(t,r-t+1,s,i-s+1)]);d=this.ClipDiagonalBound(y-m,m,y,A),C=this.ClipDiagonalBound(y+m,m,y,A);for(let _=d;_<=C;_+=2){_===d||_=R[_+1]?u=R[_+1]-1:u=R[_-1],c=u-(_-y)-S;const E=u;for(;u>t&&c>s&&this.ElementsAreEqual(u,c);)u--,c--;if(R[_]=u,g&&Math.abs(_-P)<=m&&u<=M[_])return a[0]=u,o[0]=c,E>=M[_]&&1447>0&&m<=1447+1?this.WALKTRACE(P,f,h,p,y,d,C,S,M,R,u,r,a,c,i,o,g,l):null}if(m<=1447){let _=new Int32Array(h-f+2);_[0]=P-f+1,le.Copy2(M,f,_,1,h-f+1),this.m_forwardHistory.push(_),_=new Int32Array(C-d+2),_[0]=y-d+1,le.Copy2(R,d,_,1,C-d+1),this.m_reverseHistory.push(_)}}return this.WALKTRACE(P,f,h,p,y,d,C,S,M,R,u,r,a,c,i,o,g,l)}PrettifyChanges(t){for(let r=0;r0,l=s.modifiedLength>0;for(;s.originalStart+s.originalLength=0;r--){const s=t[r];let i=0,a=0;if(r>0){const h=t[r-1];i=h.originalStart+h.originalLength,a=h.modifiedStart+h.modifiedLength}const o=s.originalLength>0,l=s.modifiedLength>0;let u=0,c=this._boundaryScore(s.originalStart,s.originalLength,s.modifiedStart,s.modifiedLength);for(let h=1;;h++){const d=s.originalStart-h,C=s.modifiedStart-h;if(dc&&(c=A,u=h)}s.originalStart-=u,s.modifiedStart-=u;const f=[null];if(r>0&&this.ChangesOverlap(t[r-1],t[r],f)){t[r-1]=f[0],t.splice(r,1),r++;continue}}if(this._hasStrings)for(let r=1,s=t.length;r0&&C>u&&(u=C,c=h,f=d)}return u>0?[c,f]:null}_contiguousSequenceScore(t,r,s){let i=0;for(let a=0;a=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[t])}_OriginalRegionIsBoundary(t,r){if(this._OriginalIsBoundary(t)||this._OriginalIsBoundary(t-1))return!0;if(r>0){const s=t+r;if(this._OriginalIsBoundary(s-1)||this._OriginalIsBoundary(s))return!0}return!1}_ModifiedIsBoundary(t){return t<=0||t>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[t])}_ModifiedRegionIsBoundary(t,r){if(this._ModifiedIsBoundary(t)||this._ModifiedIsBoundary(t-1))return!0;if(r>0){const s=t+r;if(this._ModifiedIsBoundary(s-1)||this._ModifiedIsBoundary(s))return!0}return!1}_boundaryScore(t,r,s,i){const a=this._OriginalRegionIsBoundary(t,r)?1:0,o=this._ModifiedRegionIsBoundary(s,i)?1:0;return a+o}ConcatenateChanges(t,r){const s=[];if(t.length===0||r.length===0)return r.length>0?r:t;if(this.ChangesOverlap(t[t.length-1],r[0],s)){const i=new Array(t.length+r.length-1);return le.Copy(t,0,i,0,t.length-1),i[t.length-1]=s[0],le.Copy(r,1,i,t.length,r.length-1),i}else{const i=new Array(t.length+r.length);return le.Copy(t,0,i,0,t.length),le.Copy(r,0,i,t.length,r.length),i}}ChangesOverlap(t,r,s){if(oe.Assert(t.originalStart<=r.originalStart,"Left change is not less than or equal to right change"),oe.Assert(t.modifiedStart<=r.modifiedStart,"Left change is not less than or equal to right change"),t.originalStart+t.originalLength>=r.originalStart||t.modifiedStart+t.modifiedLength>=r.modifiedStart){const i=t.originalStart;let a=t.originalLength;const o=t.modifiedStart;let l=t.modifiedLength;return t.originalStart+t.originalLength>=r.originalStart&&(a=r.originalStart+r.originalLength-t.originalStart),t.modifiedStart+t.modifiedLength>=r.modifiedStart&&(l=r.modifiedStart+r.modifiedLength-t.modifiedStart),s[0]=new Y(i,a,o,l),!0}else return s[0]=null,!1}ClipDiagonalBound(t,r,s,i){if(t>=0&&t=Sr&&e<=yr||e>=Ar&&e<=kr}function Se(e,t,r,s){let i="",a=0,o=-1,l=0,u=0;for(let c=0;c<=e.length;++c){if(c2){const f=i.lastIndexOf(r);f===-1?(i="",a=0):(i=i.slice(0,f),a=i.length-1-i.lastIndexOf(r)),o=c,l=0;continue}else if(i.length!==0){i="",a=0,o=c,l=0;continue}}t&&(i+=i.length>0?`${r}..`:"..",a=2)}else i.length>0?i+=`${r}${e.slice(o+1,c)}`:i=e.slice(o+1,c),a=c-o-1;o=c,l=0}else u===J&&l!==-1?++l:l=-1}return i}function Nt(e,t){if(t===null||typeof t!="object")throw new Lt("pathObject","Object",t);const r=t.dir||t.root,s=t.base||`${t.name||""}${t.ext||""}`;return r?r===t.root?`${r}${s}`:`${r}${e}${s}`:s}const I={resolve(...e){let t="",r="",s=!1;for(let i=e.length-1;i>=-1;i--){let a;if(i>=0){if(a=e[i],V(a,"path"),a.length===0)continue}else t.length===0?a=$e():(a=vr[`=${t}`]||$e(),(a===void 0||a.slice(0,2).toLowerCase()!==t.toLowerCase()&&a.charCodeAt(2)===q)&&(a=`${t}\\`));const o=a.length;let l=0,u="",c=!1;const f=a.charCodeAt(0);if(o===1)k(f)&&(l=1,c=!0);else if(k(f))if(c=!0,k(a.charCodeAt(1))){let h=2,d=h;for(;h2&&k(a.charCodeAt(2))&&(c=!0,l=3));if(u.length>0)if(t.length>0){if(u.toLowerCase()!==t.toLowerCase())continue}else t=u;if(s){if(t.length>0)break}else if(r=`${a.slice(l)}\\${r}`,s=c,c&&t.length>0)break}return r=Se(r,!s,"\\",k),s?`${t}\\${r}`:`${t}${r}`||"."},normalize(e){V(e,"path");const t=e.length;if(t===0)return".";let r=0,s,i=!1;const a=e.charCodeAt(0);if(t===1)return ze(a)?"\\":e;if(k(a))if(i=!0,k(e.charCodeAt(1))){let l=2,u=l;for(;l2&&k(e.charCodeAt(2))&&(i=!0,r=3));let o=r0&&k(e.charCodeAt(t-1))&&(o+="\\"),s===void 0?i?`\\${o}`:o:i?`${s}\\${o}`:`${s}${o}`},isAbsolute(e){V(e,"path");const t=e.length;if(t===0)return!1;const r=e.charCodeAt(0);return k(r)||t>2&&ee(r)&&e.charCodeAt(1)===K&&k(e.charCodeAt(2))},join(...e){if(e.length===0)return".";let t,r;for(let a=0;a0&&(t===void 0?t=r=o:t+=`\\${o}`)}if(t===void 0)return".";let s=!0,i=0;if(typeof r=="string"&&k(r.charCodeAt(0))){++i;const a=r.length;a>1&&k(r.charCodeAt(1))&&(++i,a>2&&(k(r.charCodeAt(2))?++i:s=!1))}if(s){for(;i=2&&(t=`\\${t.slice(i)}`)}return I.normalize(t)},relative(e,t){if(V(e,"from"),V(t,"to"),e===t)return"";const r=I.resolve(e),s=I.resolve(t);if(r===s||(e=r.toLowerCase(),t=s.toLowerCase(),e===t))return"";let i=0;for(;ii&&e.charCodeAt(a-1)===q;)a--;const o=a-i;let l=0;for(;ll&&t.charCodeAt(u-1)===q;)u--;const c=u-l,f=of){if(t.charCodeAt(l+d)===q)return s.slice(l+d+1);if(d===2)return s.slice(l+d)}o>f&&(e.charCodeAt(i+d)===q?h=d:d===2&&(h=3)),h===-1&&(h=0)}let C="";for(d=i+h+1;d<=a;++d)(d===a||e.charCodeAt(d)===q)&&(C+=C.length===0?"..":"\\..");return l+=h,C.length>0?`${C}${s.slice(l,u)}`:(s.charCodeAt(l)===q&&++l,s.slice(l,u))},toNamespacedPath(e){if(typeof e!="string")return e;if(e.length===0)return"";const t=I.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===q){if(t.charCodeAt(1)===q){const r=t.charCodeAt(2);if(r!==Mr&&r!==J)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(ee(t.charCodeAt(0))&&t.charCodeAt(1)===K&&t.charCodeAt(2)===q)return`\\\\?\\${t}`;return e},dirname(e){V(e,"path");const t=e.length;if(t===0)return".";let r=-1,s=0;const i=e.charCodeAt(0);if(t===1)return k(i)?e:".";if(k(i)){if(r=s=1,k(e.charCodeAt(1))){let l=2,u=l;for(;l2&&k(e.charCodeAt(2))?3:2,s=r);let a=-1,o=!0;for(let l=t-1;l>=s;--l)if(k(e.charCodeAt(l))){if(!o){a=l;break}}else o=!1;if(a===-1){if(r===-1)return".";a=r}return e.slice(0,a)},basename(e,t){t!==void 0&&V(t,"ext"),V(e,"path");let r=0,s=-1,i=!0,a;if(e.length>=2&&ee(e.charCodeAt(0))&&e.charCodeAt(1)===K&&(r=2),t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,l=-1;for(a=e.length-1;a>=r;--a){const u=e.charCodeAt(a);if(k(u)){if(!i){r=a+1;break}}else l===-1&&(i=!1,l=a+1),o>=0&&(u===t.charCodeAt(o)?--o===-1&&(s=a):(o=-1,s=l))}return r===s?s=l:s===-1&&(s=e.length),e.slice(r,s)}for(a=e.length-1;a>=r;--a)if(k(e.charCodeAt(a))){if(!i){r=a+1;break}}else s===-1&&(i=!1,s=a+1);return s===-1?"":e.slice(r,s)},extname(e){V(e,"path");let t=0,r=-1,s=0,i=-1,a=!0,o=0;e.length>=2&&e.charCodeAt(1)===K&&ee(e.charCodeAt(0))&&(t=s=2);for(let l=e.length-1;l>=t;--l){const u=e.charCodeAt(l);if(k(u)){if(!a){s=l+1;break}continue}i===-1&&(a=!1,i=l+1),u===J?r===-1?r=l:o!==1&&(o=1):r!==-1&&(o=-1)}return r===-1||i===-1||o===0||o===1&&r===i-1&&r===s+1?"":e.slice(r,i)},format:Nt.bind(null,"\\"),parse(e){V(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;const r=e.length;let s=0,i=e.charCodeAt(0);if(r===1)return k(i)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(k(i)){if(s=1,k(e.charCodeAt(1))){let h=2,d=h;for(;h0&&(t.root=e.slice(0,s));let a=-1,o=s,l=-1,u=!0,c=e.length-1,f=0;for(;c>=s;--c){if(i=e.charCodeAt(c),k(i)){if(!u){o=c+1;break}continue}l===-1&&(u=!1,l=c+1),i===J?a===-1?a=c:f!==1&&(f=1):a!==-1&&(f=-1)}return l!==-1&&(a===-1||f===0||f===1&&a===l-1&&a===o+1?t.base=t.name=e.slice(o,l):(t.name=e.slice(o,a),t.base=e.slice(o,l),t.ext=e.slice(a,l))),o>0&&o!==s?t.dir=e.slice(0,o-1):t.dir=t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},H={resolve(...e){let t="",r=!1;for(let s=e.length-1;s>=-1&&!r;s--){const i=s>=0?e[s]:$e();V(i,"path"),i.length!==0&&(t=`${i}/${t}`,r=i.charCodeAt(0)===B)}return t=Se(t,!r,"/",ze),r?`/${t}`:t.length>0?t:"."},normalize(e){if(V(e,"path"),e.length===0)return".";const t=e.charCodeAt(0)===B,r=e.charCodeAt(e.length-1)===B;return e=Se(e,!t,"/",ze),e.length===0?t?"/":r?"./":".":(r&&(e+="/"),t?`/${e}`:e)},isAbsolute(e){return V(e,"path"),e.length>0&&e.charCodeAt(0)===B},join(...e){if(e.length===0)return".";let t;for(let r=0;r0&&(t===void 0?t=s:t+=`/${s}`)}return t===void 0?".":H.normalize(t)},relative(e,t){if(V(e,"from"),V(t,"to"),e===t||(e=H.resolve(e),t=H.resolve(t),e===t))return"";const r=1,s=e.length,i=s-r,a=1,o=t.length-a,l=il){if(t.charCodeAt(a+c)===B)return t.slice(a+c+1);if(c===0)return t.slice(a+c)}else i>l&&(e.charCodeAt(r+c)===B?u=c:c===0&&(u=0));let f="";for(c=r+u+1;c<=s;++c)(c===s||e.charCodeAt(c)===B)&&(f+=f.length===0?"..":"/..");return`${f}${t.slice(a+u)}`},toNamespacedPath(e){return e},dirname(e){if(V(e,"path"),e.length===0)return".";const t=e.charCodeAt(0)===B;let r=-1,s=!0;for(let i=e.length-1;i>=1;--i)if(e.charCodeAt(i)===B){if(!s){r=i;break}}else s=!1;return r===-1?t?"/":".":t&&r===1?"//":e.slice(0,r)},basename(e,t){t!==void 0&&V(t,"ext"),V(e,"path");let r=0,s=-1,i=!0,a;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,l=-1;for(a=e.length-1;a>=0;--a){const u=e.charCodeAt(a);if(u===B){if(!i){r=a+1;break}}else l===-1&&(i=!1,l=a+1),o>=0&&(u===t.charCodeAt(o)?--o===-1&&(s=a):(o=-1,s=l))}return r===s?s=l:s===-1&&(s=e.length),e.slice(r,s)}for(a=e.length-1;a>=0;--a)if(e.charCodeAt(a)===B){if(!i){r=a+1;break}}else s===-1&&(i=!1,s=a+1);return s===-1?"":e.slice(r,s)},extname(e){V(e,"path");let t=-1,r=0,s=-1,i=!0,a=0;for(let o=e.length-1;o>=0;--o){const l=e.charCodeAt(o);if(l===B){if(!i){r=o+1;break}continue}s===-1&&(i=!1,s=o+1),l===J?t===-1?t=o:a!==1&&(a=1):t!==-1&&(a=-1)}return t===-1||s===-1||a===0||a===1&&t===s-1&&t===r+1?"":e.slice(t,s)},format:Nt.bind(null,"/"),parse(e){V(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;const r=e.charCodeAt(0)===B;let s;r?(t.root="/",s=1):s=0;let i=-1,a=0,o=-1,l=!0,u=e.length-1,c=0;for(;u>=s;--u){const f=e.charCodeAt(u);if(f===B){if(!l){a=u+1;break}continue}o===-1&&(l=!1,o=u+1),f===J?i===-1?i=u:c!==1&&(c=1):i!==-1&&(c=-1)}if(o!==-1){const f=a===0&&r?1:a;i===-1||c===0||c===1&&i===o-1&&i===a+1?t.base=t.name=e.slice(f,o):(t.name=e.slice(f,i),t.base=e.slice(f,o),t.ext=e.slice(i,o))}return a>0?t.dir=e.slice(0,a-1):r&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};H.win32=I.win32=I,H.posix=I.posix=H,ne==="win32"?I.normalize:H.normalize,ne==="win32"?I.resolve:H.resolve,ne==="win32"?I.relative:H.relative,ne==="win32"?I.dirname:H.dirname,ne==="win32"?I.basename:H.basename,ne==="win32"?I.extname:H.extname,ne==="win32"?I.sep:H.sep;const Rr=/^\w[\w\d+.-]*$/,Pr=/^\//,Dr=/^\/\//;function vt(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!Rr.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path){if(e.authority){if(!Pr.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(Dr.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function Fr(e,t){return!e&&!t?"file":e}function xr(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==G&&(t=G+t):t=G;break}return t}const F="",G="/",Er=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class re{constructor(t,r,s,i,a,o=!1){typeof t=="object"?(this.scheme=t.scheme||F,this.authority=t.authority||F,this.path=t.path||F,this.query=t.query||F,this.fragment=t.fragment||F):(this.scheme=Fr(t,o),this.authority=r||F,this.path=xr(this.scheme,s||F),this.query=i||F,this.fragment=a||F,vt(this,o))}static isUri(t){return t instanceof re?!0:t?typeof t.authority=="string"&&typeof t.fragment=="string"&&typeof t.path=="string"&&typeof t.query=="string"&&typeof t.scheme=="string"&&typeof t.fsPath=="string"&&typeof t.with=="function"&&typeof t.toString=="function":!1}get fsPath(){return Ge(this,!1)}with(t){if(!t)return this;let{scheme:r,authority:s,path:i,query:a,fragment:o}=t;return r===void 0?r=this.scheme:r===null&&(r=F),s===void 0?s=this.authority:s===null&&(s=F),i===void 0?i=this.path:i===null&&(i=F),a===void 0?a=this.query:a===null&&(a=F),o===void 0?o=this.fragment:o===null&&(o=F),r===this.scheme&&s===this.authority&&i===this.path&&a===this.query&&o===this.fragment?this:new ue(r,s,i,a,o)}static parse(t,r=!1){const s=Er.exec(t);return s?new ue(s[2]||F,Ae(s[4]||F),Ae(s[5]||F),Ae(s[7]||F),Ae(s[9]||F),r):new ue(F,F,F,F,F)}static file(t){let r=F;if(de&&(t=t.replace(/\\/g,G)),t[0]===G&&t[1]===G){const s=t.indexOf(G,2);s===-1?(r=t.substring(2),t=G):(r=t.substring(2,s),t=t.substring(s)||G)}return new ue("file",r,t,F,F)}static from(t){const r=new ue(t.scheme,t.authority,t.path,t.query,t.fragment);return vt(r,!0),r}static joinPath(t,...r){if(!t.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let s;return de&&t.scheme==="file"?s=re.file(I.join(Ge(t,!0),...r)).path:s=H.join(t.path,...r),t.with({path:s})}toString(t=!1){return Oe(this,t)}toJSON(){return this}static revive(t){if(t){if(t instanceof re)return t;{const r=new ue(t);return r._formatted=t.external,r._fsPath=t._sep===St?t.fsPath:null,r}}else return t}}const St=de?1:void 0;class ue extends re{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=Ge(this,!1)),this._fsPath}toString(t=!1){return t?Oe(this,!0):(this._formatted||(this._formatted=Oe(this,!1)),this._formatted)}toJSON(){const t={$mid:1};return this._fsPath&&(t.fsPath=this._fsPath,t._sep=St),this._formatted&&(t.external=this._formatted),this.path&&(t.path=this.path),this.scheme&&(t.scheme=this.scheme),this.authority&&(t.authority=this.authority),this.query&&(t.query=this.query),this.fragment&&(t.fragment=this.fragment),t}}const At={[58]:"%3A",[47]:"%2F",[63]:"%3F",[35]:"%23",[91]:"%5B",[93]:"%5D",[64]:"%40",[33]:"%21",[36]:"%24",[38]:"%26",[39]:"%27",[40]:"%28",[41]:"%29",[42]:"%2A",[43]:"%2B",[44]:"%2C",[59]:"%3B",[61]:"%3D",[32]:"%20"};function yt(e,t){let r,s=-1;for(let i=0;i=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||a===45||a===46||a===95||a===126||t&&a===47)s!==-1&&(r+=encodeURIComponent(e.substring(s,i)),s=-1),r!==void 0&&(r+=e.charAt(i));else{r===void 0&&(r=e.substr(0,i));const o=At[a];o!==void 0?(s!==-1&&(r+=encodeURIComponent(e.substring(s,i)),s=-1),r+=o):s===-1&&(s=i)}}return s!==-1&&(r+=encodeURIComponent(e.substring(s))),r!==void 0?r:e}function Vr(e){let t;for(let r=0;r1&&e.scheme==="file"?r=`//${e.authority}${e.path}`:e.path.charCodeAt(0)===47&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&e.path.charCodeAt(2)===58?t?r=e.path.substr(1):r=e.path[1].toLowerCase()+e.path.substr(2):r=e.path,de&&(r=r.replace(/\//g,"\\")),r}function Oe(e,t){const r=t?Vr:yt;let s="",{scheme:i,authority:a,path:o,query:l,fragment:u}=e;if(i&&(s+=i,s+=":"),(a||i==="file")&&(s+=G,s+=G),a){let c=a.indexOf("@");if(c!==-1){const f=a.substr(0,c);a=a.substr(c+1),c=f.indexOf(":"),c===-1?s+=r(f,!1):(s+=r(f.substr(0,c),!1),s+=":",s+=r(f.substr(c+1),!1)),s+="@"}a=a.toLowerCase(),c=a.indexOf(":"),c===-1?s+=r(a,!1):(s+=r(a.substr(0,c),!1),s+=a.substr(c))}if(o){if(o.length>=3&&o.charCodeAt(0)===47&&o.charCodeAt(2)===58){const c=o.charCodeAt(1);c>=65&&c<=90&&(o=`/${String.fromCharCode(c+32)}:${o.substr(3)}`)}else if(o.length>=2&&o.charCodeAt(1)===58){const c=o.charCodeAt(0);c>=65&&c<=90&&(o=`${String.fromCharCode(c+32)}:${o.substr(2)}`)}s+=r(o,!0)}return l&&(s+="?",s+=r(l,!1)),u&&(s+="#",s+=t?u:yt(u,!1)),s}function kt(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+kt(e.substr(3)):e}}const Mt=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function Ae(e){return e.match(Mt)?e.replace(Mt,t=>kt(t)):e}class W{constructor(t,r){this.lineNumber=t,this.column=r}with(t=this.lineNumber,r=this.column){return t===this.lineNumber&&r===this.column?this:new W(t,r)}delta(t=0,r=0){return this.with(this.lineNumber+t,this.column+r)}equals(t){return W.equals(this,t)}static equals(t,r){return!t&&!r?!0:!!t&&!!r&&t.lineNumber===r.lineNumber&&t.column===r.column}isBefore(t){return W.isBefore(this,t)}static isBefore(t,r){return t.lineNumbers||t===s&&r>i?(this.startLineNumber=s,this.startColumn=i,this.endLineNumber=t,this.endColumn=r):(this.startLineNumber=t,this.startColumn=r,this.endLineNumber=s,this.endColumn=i)}isEmpty(){return x.isEmpty(this)}static isEmpty(t){return t.startLineNumber===t.endLineNumber&&t.startColumn===t.endColumn}containsPosition(t){return x.containsPosition(this,t)}static containsPosition(t,r){return!(r.lineNumbert.endLineNumber||r.lineNumber===t.startLineNumber&&r.columnt.endColumn)}static strictContainsPosition(t,r){return!(r.lineNumbert.endLineNumber||r.lineNumber===t.startLineNumber&&r.column<=t.startColumn||r.lineNumber===t.endLineNumber&&r.column>=t.endColumn)}containsRange(t){return x.containsRange(this,t)}static containsRange(t,r){return!(r.startLineNumbert.endLineNumber||r.endLineNumber>t.endLineNumber||r.startLineNumber===t.startLineNumber&&r.startColumnt.endColumn)}strictContainsRange(t){return x.strictContainsRange(this,t)}static strictContainsRange(t,r){return!(r.startLineNumbert.endLineNumber||r.endLineNumber>t.endLineNumber||r.startLineNumber===t.startLineNumber&&r.startColumn<=t.startColumn||r.endLineNumber===t.endLineNumber&&r.endColumn>=t.endColumn)}plusRange(t){return x.plusRange(this,t)}static plusRange(t,r){let s,i,a,o;return r.startLineNumbert.endLineNumber?(a=r.endLineNumber,o=r.endColumn):r.endLineNumber===t.endLineNumber?(a=r.endLineNumber,o=Math.max(r.endColumn,t.endColumn)):(a=t.endLineNumber,o=t.endColumn),new x(s,i,a,o)}intersectRanges(t){return x.intersectRanges(this,t)}static intersectRanges(t,r){let s=t.startLineNumber,i=t.startColumn,a=t.endLineNumber,o=t.endColumn;const l=r.startLineNumber,u=r.startColumn,c=r.endLineNumber,f=r.endColumn;return sc?(a=c,o=f):a===c&&(o=Math.min(o,f)),s>a||s===a&&i>o?null:new x(s,i,a,o)}equalsRange(t){return x.equalsRange(this,t)}static equalsRange(t,r){return!!t&&!!r&&t.startLineNumber===r.startLineNumber&&t.startColumn===r.startColumn&&t.endLineNumber===r.endLineNumber&&t.endColumn===r.endColumn}getEndPosition(){return x.getEndPosition(this)}static getEndPosition(t){return new W(t.endLineNumber,t.endColumn)}getStartPosition(){return x.getStartPosition(this)}static getStartPosition(t){return new W(t.startLineNumber,t.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(t,r){return new x(this.startLineNumber,this.startColumn,t,r)}setStartPosition(t,r){return new x(t,r,this.endLineNumber,this.endColumn)}collapseToStart(){return x.collapseToStart(this)}static collapseToStart(t){return new x(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn)}static fromPositions(t,r=t){return new x(t.lineNumber,t.column,r.lineNumber,r.column)}static lift(t){return t?new x(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):null}static isIRange(t){return t&&typeof t.startLineNumber=="number"&&typeof t.startColumn=="number"&&typeof t.endLineNumber=="number"&&typeof t.endColumn=="number"}static areIntersectingOrTouching(t,r){return!(t.endLineNumbert.startLineNumber}toJSON(){return this}}const Br=3;function Rt(e,t,r,s){return new X(e,t,r).ComputeDiff(s)}class Pt{constructor(t){const r=[],s=[];for(let i=0,a=t.length;i(t===10?"\\n":String.fromCharCode(t))+`-(${this._lineNumbers[r]},${this._columns[r]})`).join(", ")+"]"}_assertIndex(t,r){if(t<0||t>=r.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(t){return t>0&&t===this._lineNumbers.length?this.getEndLineNumber(t-1):(this._assertIndex(t,this._lineNumbers),this._lineNumbers[t])}getEndLineNumber(t){return t===-1?this.getStartLineNumber(t+1):(this._assertIndex(t,this._lineNumbers),this._charCodes[t]===10?this._lineNumbers[t]+1:this._lineNumbers[t])}getStartColumn(t){return t>0&&t===this._columns.length?this.getEndColumn(t-1):(this._assertIndex(t,this._columns),this._columns[t])}getEndColumn(t){return t===-1?this.getStartColumn(t+1):(this._assertIndex(t,this._columns),this._charCodes[t]===10?1:this._columns[t]+1)}}class me{constructor(t,r,s,i,a,o,l,u){this.originalStartLineNumber=t,this.originalStartColumn=r,this.originalEndLineNumber=s,this.originalEndColumn=i,this.modifiedStartLineNumber=a,this.modifiedStartColumn=o,this.modifiedEndLineNumber=l,this.modifiedEndColumn=u}static createFromDiffChange(t,r,s){const i=r.getStartLineNumber(t.originalStart),a=r.getStartColumn(t.originalStart),o=r.getEndLineNumber(t.originalStart+t.originalLength-1),l=r.getEndColumn(t.originalStart+t.originalLength-1),u=s.getStartLineNumber(t.modifiedStart),c=s.getStartColumn(t.modifiedStart),f=s.getEndLineNumber(t.modifiedStart+t.modifiedLength-1),h=s.getEndColumn(t.modifiedStart+t.modifiedLength-1);return new me(i,a,o,l,u,c,f,h)}}function Ur(e){if(e.length<=1)return e;const t=[e[0]];let r=t[0];for(let s=1,i=e.length;s0&&r.originalLength<20&&r.modifiedLength>0&&r.modifiedLength<20&&a()){const C=s.createCharSequence(t,r.originalStart,r.originalStart+r.originalLength-1),v=i.createCharSequence(t,r.modifiedStart,r.modifiedStart+r.modifiedLength-1);if(C.getElements().length>0&&v.getElements().length>0){let A=Rt(C,v,a,!0).changes;l&&(A=Ur(A)),d=[];for(let M=0,R=A.length;M1&&A>1;){const M=d.charCodeAt(v-2),R=C.charCodeAt(A-2);if(M!==R)break;v--,A--}(v>1||A>1)&&this._pushTrimWhitespaceCharChange(i,a+1,1,v,o+1,1,A)}{let v=Qe(d,1),A=Qe(C,1);const M=d.length+1,R=C.length+1;for(;v!0;const t=Date.now();return()=>Date.now()-t0}e.isGreaterThan=r;function s(i){return i===0}e.isNeitherLessOrGreaterThan=s,e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0})(Ft||(Ft={}));function xt(e){return e<0?0:e>255?255:e|0}function he(e){return e<0?0:e>4294967295?4294967295:e|0}class qr{constructor(t){this.values=t,this.prefixSum=new Uint32Array(t.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(t,r){t=he(t);const s=this.values,i=this.prefixSum,a=r.length;return a===0?!1:(this.values=new Uint32Array(s.length+a),this.values.set(s.subarray(0,t),0),this.values.set(s.subarray(t),t+a),this.values.set(r,t),t-1=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(t,r){return t=he(t),r=he(r),this.values[t]===r?!1:(this.values[t]=r,t-1=s.length)return!1;const a=s.length-t;return r>=a&&(r=a),r===0?!1:(this.values=new Uint32Array(s.length-r),this.values.set(s.subarray(0,t),0),this.values.set(s.subarray(t+r),t),this.prefixSum=new Uint32Array(this.values.length),t-1=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(t){return t<0?0:(t=he(t),this._getPrefixSum(t))}_getPrefixSum(t){if(t<=this.prefixSumValidIndex[0])return this.prefixSum[t];let r=this.prefixSumValidIndex[0]+1;r===0&&(this.prefixSum[0]=this.values[0],r++),t>=this.values.length&&(t=this.values.length-1);for(let s=r;s<=t;s++)this.prefixSum[s]=this.prefixSum[s-1]+this.values[s];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],t),this.prefixSum[t]}getIndexOf(t){t=Math.floor(t),this.getTotalSum();let r=0,s=this.values.length-1,i=0,a=0,o=0;for(;r<=s;)if(i=r+(s-r)/2|0,a=this.prefixSum[i],o=a-this.values[i],t=a)r=i+1;else break;return new Hr(i,t-o)}}class Hr{constructor(t,r){this.index=t,this.remainder=r,this._prefixSumIndexOfResultBrand=void 0,this.index=t,this.remainder=r}}class Wr{constructor(t,r,s,i){this._uri=t,this._lines=r,this._eol=s,this._versionId=i,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return this._cachedTextValue===null&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(t){t.eol&&t.eol!==this._eol&&(this._eol=t.eol,this._lineStarts=null);const r=t.changes;for(const s of r)this._acceptDeleteRange(s.range),this._acceptInsertText(new W(s.range.startLineNumber,s.range.startColumn),s.text);this._versionId=t.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const t=this._eol.length,r=this._lines.length,s=new Uint32Array(r);for(let i=0;i/?";function zr(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(const r of $r)e.indexOf(r)>=0||(t+="\\"+r);return t+="\\s]+)",new RegExp(t,"g")}const Et=zr();function Gr(e){let t=Et;if(e&&e instanceof RegExp)if(e.global)t=e;else{let r="g";e.ignoreCase&&(r+="i"),e.multiline&&(r+="m"),e.unicode&&(r+="u"),t=new RegExp(e.source,r)}return t.lastIndex=0,t}const Vt=new pe;Vt.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function Ze(e,t,r,s,i){if(i||(i=Ce.first(Vt)),r.length>i.maxLen){let c=e-i.maxLen/2;return c<0?c=0:s+=c,r=r.substring(c,e+i.maxLen/2),Ze(e,t,r,s,i)}const a=Date.now(),o=e-1-s;let l=-1,u=null;for(let c=1;!(Date.now()-a>=i.timeBudget);c++){const f=o-i.windowSize*c;t.lastIndex=Math.max(0,f);const h=Or(t,r,o,l);if(!h&&u||(u=h,f<=0))break;l=f}if(u){const c={word:u[0],startColumn:s+1+u.index,endColumn:s+1+u.index+u[0].length};return t.lastIndex=0,c}return null}function Or(e,t,r,s){let i;for(;i=e.exec(t);){const a=i.index||0;if(a<=r&&e.lastIndex>=r)return i;if(s>0&&a>s)return null}return null}class Ye{constructor(t){const r=xt(t);this._defaultValue=r,this._asciiMap=Ye._createAsciiMap(r),this._map=new Map}static _createAsciiMap(t){const r=new Uint8Array(256);for(let s=0;s<256;s++)r[s]=t;return r}set(t,r){const s=xt(r);t>=0&&t<256?this._asciiMap[t]=s:this._map.set(t,s)}get(t){return t>=0&&t<256?this._asciiMap[t]:this._map.get(t)||this._defaultValue}}class jr{constructor(t,r,s){const i=new Uint8Array(t*r);for(let a=0,o=t*r;ar&&(r=u),l>s&&(s=l),c>s&&(s=c)}r++,s++;const i=new jr(s,r,0);for(let a=0,o=t.length;a=this._maxCharCode?0:this._states.get(t,r)}}let Xe=null;function Zr(){return Xe===null&&(Xe=new Qr([[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]])),Xe}let be=null;function Yr(){if(be===null){be=new Ye(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 r=0;ri);if(i>0){const l=r.charCodeAt(i-1),u=r.charCodeAt(o);(l===40&&u===41||l===91&&u===93||l===123&&u===125)&&o--}return{range:{startLineNumber:s,startColumn:i+1,endLineNumber:s,endColumn:o+2},url:r.substring(i,o+1)}}static computeLinks(t,r=Zr()){const s=Yr(),i=[];for(let a=1,o=t.getLineCount();a<=o;a++){const l=t.getLineContent(a),u=l.length;let c=0,f=0,h=0,d=1,C=!1,v=!1,A=!1,M=!1;for(;c=0?(i+=s?1:-1,i<0?i=t.length-1:i%=t.length,t[i]):null}}Je.INSTANCE=new Je;const Bt=Object.freeze(function(e,t){const r=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(r)}}});var ke;(function(e){function t(r){return r===e.None||r===e.Cancelled||r instanceof Me?!0:!r||typeof r!="object"?!1:typeof r.isCancellationRequested=="boolean"&&typeof r.onCancellationRequested=="function"}e.isCancellationToken=t,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Ie.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Bt})})(ke||(ke={}));class Me{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?Bt:(this._emitter||(this._emitter=new j),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class Jr{constructor(t){this._token=void 0,this._parentListener=void 0,this._parentListener=t&&t.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new Me),this._token}cancel(){this._token?this._token instanceof Me&&this._token.cancel():this._token=ke.Cancelled}dispose(t=!1){t&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof Me&&this._token.dispose():this._token=ke.None}}class Ke{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(t,r){this._keyCodeToStr[t]=r,this._strToKeyCode[r.toLowerCase()]=t}keyCodeToStr(t){return this._keyCodeToStr[t]}strToKeyCode(t){return this._strToKeyCode[t.toLowerCase()]||0}}const Re=new Ke,et=new Ke,tt=new Ke,Kr=new Array(230),e1=Object.create(null),t1=Object.create(null);(function(){const e="",t=[[0,1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[0,1,1,"Hyper",0,e,0,e,e,e],[0,1,2,"Super",0,e,0,e,e,e],[0,1,3,"Fn",0,e,0,e,e,e],[0,1,4,"FnLock",0,e,0,e,e,e],[0,1,5,"Suspend",0,e,0,e,e,e],[0,1,6,"Resume",0,e,0,e,e,e],[0,1,7,"Turbo",0,e,0,e,e,e],[0,1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[0,1,9,"WakeUp",0,e,0,e,e,e],[31,0,10,"KeyA",31,"A",65,"VK_A",e,e],[32,0,11,"KeyB",32,"B",66,"VK_B",e,e],[33,0,12,"KeyC",33,"C",67,"VK_C",e,e],[34,0,13,"KeyD",34,"D",68,"VK_D",e,e],[35,0,14,"KeyE",35,"E",69,"VK_E",e,e],[36,0,15,"KeyF",36,"F",70,"VK_F",e,e],[37,0,16,"KeyG",37,"G",71,"VK_G",e,e],[38,0,17,"KeyH",38,"H",72,"VK_H",e,e],[39,0,18,"KeyI",39,"I",73,"VK_I",e,e],[40,0,19,"KeyJ",40,"J",74,"VK_J",e,e],[41,0,20,"KeyK",41,"K",75,"VK_K",e,e],[42,0,21,"KeyL",42,"L",76,"VK_L",e,e],[43,0,22,"KeyM",43,"M",77,"VK_M",e,e],[44,0,23,"KeyN",44,"N",78,"VK_N",e,e],[45,0,24,"KeyO",45,"O",79,"VK_O",e,e],[46,0,25,"KeyP",46,"P",80,"VK_P",e,e],[47,0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[48,0,27,"KeyR",48,"R",82,"VK_R",e,e],[49,0,28,"KeyS",49,"S",83,"VK_S",e,e],[50,0,29,"KeyT",50,"T",84,"VK_T",e,e],[51,0,30,"KeyU",51,"U",85,"VK_U",e,e],[52,0,31,"KeyV",52,"V",86,"VK_V",e,e],[53,0,32,"KeyW",53,"W",87,"VK_W",e,e],[54,0,33,"KeyX",54,"X",88,"VK_X",e,e],[55,0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[56,0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[22,0,36,"Digit1",22,"1",49,"VK_1",e,e],[23,0,37,"Digit2",23,"2",50,"VK_2",e,e],[24,0,38,"Digit3",24,"3",51,"VK_3",e,e],[25,0,39,"Digit4",25,"4",52,"VK_4",e,e],[26,0,40,"Digit5",26,"5",53,"VK_5",e,e],[27,0,41,"Digit6",27,"6",54,"VK_6",e,e],[28,0,42,"Digit7",28,"7",55,"VK_7",e,e],[29,0,43,"Digit8",29,"8",56,"VK_8",e,e],[30,0,44,"Digit9",30,"9",57,"VK_9",e,e],[21,0,45,"Digit0",21,"0",48,"VK_0",e,e],[3,1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[9,1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[2,1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[10,1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[83,0,51,"Minus",83,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[81,0,52,"Equal",81,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[87,0,53,"BracketLeft",87,"[",219,"VK_OEM_4","[","OEM_4"],[89,0,54,"BracketRight",89,"]",221,"VK_OEM_6","]","OEM_6"],[88,0,55,"Backslash",88,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,0,56,"IntlHash",0,e,0,e,e,e],[80,0,57,"Semicolon",80,";",186,"VK_OEM_1",";","OEM_1"],[90,0,58,"Quote",90,"'",222,"VK_OEM_7","'","OEM_7"],[86,0,59,"Backquote",86,"`",192,"VK_OEM_3","`","OEM_3"],[82,0,60,"Comma",82,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[84,0,61,"Period",84,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[85,0,62,"Slash",85,"/",191,"VK_OEM_2","/","OEM_2"],[8,1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",e,e],[59,1,64,"F1",59,"F1",112,"VK_F1",e,e],[60,1,65,"F2",60,"F2",113,"VK_F2",e,e],[61,1,66,"F3",61,"F3",114,"VK_F3",e,e],[62,1,67,"F4",62,"F4",115,"VK_F4",e,e],[63,1,68,"F5",63,"F5",116,"VK_F5",e,e],[64,1,69,"F6",64,"F6",117,"VK_F6",e,e],[65,1,70,"F7",65,"F7",118,"VK_F7",e,e],[66,1,71,"F8",66,"F8",119,"VK_F8",e,e],[67,1,72,"F9",67,"F9",120,"VK_F9",e,e],[68,1,73,"F10",68,"F10",121,"VK_F10",e,e],[69,1,74,"F11",69,"F11",122,"VK_F11",e,e],[70,1,75,"F12",70,"F12",123,"VK_F12",e,e],[0,1,76,"PrintScreen",0,e,0,e,e,e],[79,1,77,"ScrollLock",79,"ScrollLock",145,"VK_SCROLL",e,e],[7,1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[19,1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[14,1,80,"Home",14,"Home",36,"VK_HOME",e,e],[11,1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[20,1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[13,1,83,"End",13,"End",35,"VK_END",e,e],[12,1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[17,1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[15,1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[18,1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[16,1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[78,1,89,"NumLock",78,"NumLock",144,"VK_NUMLOCK",e,e],[108,1,90,"NumpadDivide",108,"NumPad_Divide",111,"VK_DIVIDE",e,e],[103,1,91,"NumpadMultiply",103,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[106,1,92,"NumpadSubtract",106,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[104,1,93,"NumpadAdd",104,"NumPad_Add",107,"VK_ADD",e,e],[3,1,94,"NumpadEnter",3,e,0,e,e,e],[94,1,95,"Numpad1",94,"NumPad1",97,"VK_NUMPAD1",e,e],[95,1,96,"Numpad2",95,"NumPad2",98,"VK_NUMPAD2",e,e],[96,1,97,"Numpad3",96,"NumPad3",99,"VK_NUMPAD3",e,e],[97,1,98,"Numpad4",97,"NumPad4",100,"VK_NUMPAD4",e,e],[98,1,99,"Numpad5",98,"NumPad5",101,"VK_NUMPAD5",e,e],[99,1,100,"Numpad6",99,"NumPad6",102,"VK_NUMPAD6",e,e],[100,1,101,"Numpad7",100,"NumPad7",103,"VK_NUMPAD7",e,e],[101,1,102,"Numpad8",101,"NumPad8",104,"VK_NUMPAD8",e,e],[102,1,103,"Numpad9",102,"NumPad9",105,"VK_NUMPAD9",e,e],[93,1,104,"Numpad0",93,"NumPad0",96,"VK_NUMPAD0",e,e],[107,1,105,"NumpadDecimal",107,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[92,0,106,"IntlBackslash",92,"OEM_102",226,"VK_OEM_102",e,e],[58,1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[0,1,108,"Power",0,e,0,e,e,e],[0,1,109,"NumpadEqual",0,e,0,e,e,e],[71,1,110,"F13",71,"F13",124,"VK_F13",e,e],[72,1,111,"F14",72,"F14",125,"VK_F14",e,e],[73,1,112,"F15",73,"F15",126,"VK_F15",e,e],[74,1,113,"F16",74,"F16",127,"VK_F16",e,e],[75,1,114,"F17",75,"F17",128,"VK_F17",e,e],[76,1,115,"F18",76,"F18",129,"VK_F18",e,e],[77,1,116,"F19",77,"F19",130,"VK_F19",e,e],[0,1,117,"F20",0,e,0,"VK_F20",e,e],[0,1,118,"F21",0,e,0,"VK_F21",e,e],[0,1,119,"F22",0,e,0,"VK_F22",e,e],[0,1,120,"F23",0,e,0,"VK_F23",e,e],[0,1,121,"F24",0,e,0,"VK_F24",e,e],[0,1,122,"Open",0,e,0,e,e,e],[0,1,123,"Help",0,e,0,e,e,e],[0,1,124,"Select",0,e,0,e,e,e],[0,1,125,"Again",0,e,0,e,e,e],[0,1,126,"Undo",0,e,0,e,e,e],[0,1,127,"Cut",0,e,0,e,e,e],[0,1,128,"Copy",0,e,0,e,e,e],[0,1,129,"Paste",0,e,0,e,e,e],[0,1,130,"Find",0,e,0,e,e,e],[0,1,131,"AudioVolumeMute",112,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[0,1,132,"AudioVolumeUp",113,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[0,1,133,"AudioVolumeDown",114,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[105,1,134,"NumpadComma",105,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[110,0,135,"IntlRo",110,"ABNT_C1",193,"VK_ABNT_C1",e,e],[0,1,136,"KanaMode",0,e,0,e,e,e],[0,0,137,"IntlYen",0,e,0,e,e,e],[0,1,138,"Convert",0,e,0,e,e,e],[0,1,139,"NonConvert",0,e,0,e,e,e],[0,1,140,"Lang1",0,e,0,e,e,e],[0,1,141,"Lang2",0,e,0,e,e,e],[0,1,142,"Lang3",0,e,0,e,e,e],[0,1,143,"Lang4",0,e,0,e,e,e],[0,1,144,"Lang5",0,e,0,e,e,e],[0,1,145,"Abort",0,e,0,e,e,e],[0,1,146,"Props",0,e,0,e,e,e],[0,1,147,"NumpadParenLeft",0,e,0,e,e,e],[0,1,148,"NumpadParenRight",0,e,0,e,e,e],[0,1,149,"NumpadBackspace",0,e,0,e,e,e],[0,1,150,"NumpadMemoryStore",0,e,0,e,e,e],[0,1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[0,1,152,"NumpadMemoryClear",0,e,0,e,e,e],[0,1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[0,1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[0,1,155,"NumpadClear",126,"Clear",12,"VK_CLEAR",e,e],[0,1,156,"NumpadClearEntry",0,e,0,e,e,e],[5,1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[4,1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[6,1,0,e,6,"Alt",18,"VK_MENU",e,e],[57,1,0,e,57,"Meta",0,"VK_COMMAND",e,e],[5,1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[4,1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[6,1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[57,1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[5,1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[4,1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[6,1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[57,1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[0,1,165,"BrightnessUp",0,e,0,e,e,e],[0,1,166,"BrightnessDown",0,e,0,e,e,e],[0,1,167,"MediaPlay",0,e,0,e,e,e],[0,1,168,"MediaRecord",0,e,0,e,e,e],[0,1,169,"MediaFastForward",0,e,0,e,e,e],[0,1,170,"MediaRewind",0,e,0,e,e,e],[114,1,171,"MediaTrackNext",119,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[115,1,172,"MediaTrackPrevious",120,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[116,1,173,"MediaStop",121,"MediaStop",178,"VK_MEDIA_STOP",e,e],[0,1,174,"Eject",0,e,0,e,e,e],[117,1,175,"MediaPlayPause",122,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[0,1,176,"MediaSelect",123,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[0,1,177,"LaunchMail",124,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[0,1,178,"LaunchApp2",125,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[0,1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[0,1,180,"SelectTask",0,e,0,e,e,e],[0,1,181,"LaunchScreenSaver",0,e,0,e,e,e],[0,1,182,"BrowserSearch",115,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[0,1,183,"BrowserHome",116,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[112,1,184,"BrowserBack",117,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[113,1,185,"BrowserForward",118,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[0,1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[0,1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[0,1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[0,1,189,"ZoomToggle",0,e,0,e,e,e],[0,1,190,"MailReply",0,e,0,e,e,e],[0,1,191,"MailForward",0,e,0,e,e,e],[0,1,192,"MailSend",0,e,0,e,e,e],[109,1,0,e,109,"KeyInComposition",229,e,e,e],[111,1,0,e,111,"ABNT_C2",194,"VK_ABNT_C2",e,e],[91,1,0,e,91,"OEM_8",223,"VK_OEM_8",e,e],[0,1,0,e,0,e,0,"VK_KANA",e,e],[0,1,0,e,0,e,0,"VK_HANGUL",e,e],[0,1,0,e,0,e,0,"VK_JUNJA",e,e],[0,1,0,e,0,e,0,"VK_FINAL",e,e],[0,1,0,e,0,e,0,"VK_HANJA",e,e],[0,1,0,e,0,e,0,"VK_KANJI",e,e],[0,1,0,e,0,e,0,"VK_CONVERT",e,e],[0,1,0,e,0,e,0,"VK_NONCONVERT",e,e],[0,1,0,e,0,e,0,"VK_ACCEPT",e,e],[0,1,0,e,0,e,0,"VK_MODECHANGE",e,e],[0,1,0,e,0,e,0,"VK_SELECT",e,e],[0,1,0,e,0,e,0,"VK_PRINT",e,e],[0,1,0,e,0,e,0,"VK_EXECUTE",e,e],[0,1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[0,1,0,e,0,e,0,"VK_HELP",e,e],[0,1,0,e,0,e,0,"VK_APPS",e,e],[0,1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[0,1,0,e,0,e,0,"VK_PACKET",e,e],[0,1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[0,1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[0,1,0,e,0,e,0,"VK_ATTN",e,e],[0,1,0,e,0,e,0,"VK_CRSEL",e,e],[0,1,0,e,0,e,0,"VK_EXSEL",e,e],[0,1,0,e,0,e,0,"VK_EREOF",e,e],[0,1,0,e,0,e,0,"VK_PLAY",e,e],[0,1,0,e,0,e,0,"VK_ZOOM",e,e],[0,1,0,e,0,e,0,"VK_NONAME",e,e],[0,1,0,e,0,e,0,"VK_PA1",e,e],[0,1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]],r=[],s=[];for(const i of t){const[a,o,l,u,c,f,h,d,C,v]=i;if(s[l]||(s[l]=!0,e1[u]=l,t1[u.toLowerCase()]=l),!r[c]){if(r[c]=!0,!f)throw new Error(`String representation missing for key code ${c} around scan code ${u}`);Re.define(c,f),et.define(c,C||f),tt.define(c,v||C||f)}h&&(Kr[h]=c)}})();var Tt;(function(e){function t(l){return Re.keyCodeToStr(l)}e.toString=t;function r(l){return Re.strToKeyCode(l)}e.fromString=r;function s(l){return et.keyCodeToStr(l)}e.toUserSettingsUS=s;function i(l){return tt.keyCodeToStr(l)}e.toUserSettingsGeneral=i;function a(l){return et.strToKeyCode(l)||tt.strToKeyCode(l)}e.fromUserSettings=a;function o(l){if(l>=93&&l<=108)return null;switch(l){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return Re.keyCodeToStr(l)}e.toElectronAccelerator=o})(Tt||(Tt={}));function n1(e,t){const r=(t&65535)<<16>>>0;return(e|r)>>>0}class $ extends x{constructor(t,r,s,i){super(t,r,s,i),this.selectionStartLineNumber=t,this.selectionStartColumn=r,this.positionLineNumber=s,this.positionColumn=i}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(t){return $.selectionsEqual(this,t)}static selectionsEqual(t,r){return t.selectionStartLineNumber===r.selectionStartLineNumber&&t.selectionStartColumn===r.selectionStartColumn&&t.positionLineNumber===r.positionLineNumber&&t.positionColumn===r.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(t,r){return this.getDirection()===0?new $(this.startLineNumber,this.startColumn,t,r):new $(t,r,this.startLineNumber,this.startColumn)}getPosition(){return new W(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new W(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(t,r){return this.getDirection()===0?new $(t,r,this.endLineNumber,this.endColumn):new $(this.endLineNumber,this.endColumn,t,r)}static fromPositions(t,r=t){return new $(t.lineNumber,t.column,r.lineNumber,r.column)}static fromRange(t,r){return r===0?new $(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):new $(t.endLineNumber,t.endColumn,t.startLineNumber,t.startColumn)}static liftSelection(t){return new $(t.selectionStartLineNumber,t.selectionStartColumn,t.positionLineNumber,t.positionColumn)}static selectionsArrEqual(t,r){if(t&&!r||!t&&r)return!1;if(!t&&!r)return!0;if(t.length!==r.length)return!1;for(let s=0,i=t.length;s{this._map.get(t)===r&&(this._map.delete(t),this.fire([t]))})}registerFactory(t,r){var s;(s=this._factories.get(t))===null||s===void 0||s.dispose();const i=new s1(this,t,r);return this._factories.set(t,i),_e(()=>{const a=this._factories.get(t);!a||a!==i||(this._factories.delete(t),a.dispose())})}getOrCreate(t){return nt(this,void 0,void 0,function*(){const r=this.get(t);if(r)return r;const s=this._factories.get(t);return!s||s.isResolved?null:(yield s.resolve(),this.get(t))})}get(t){return this._map.get(t)||null}isResolved(t){if(this.get(t))return!0;const s=this._factories.get(t);return!!(!s||s.isResolved)}setColorMap(t){this._colorMap=t,this._onDidChange.fire({changedLanguages:Array.from(this._map.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}}class s1 extends xe{constructor(t,r,s){super(),this._registry=t,this._languageId=r,this._factory=s,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}get isResolved(){return this._isResolved}dispose(){this._isDisposed=!0,super.dispose()}resolve(){return nt(this,void 0,void 0,function*(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise})}_create(){return nt(this,void 0,void 0,function*(){const t=yield Promise.resolve(this._factory.createTokenizationSupport());this._isResolved=!0,t&&!this._isDisposed&&this._register(this._registry.register(this._languageId,t))})}}class i1{constructor(t,r,s){this._tokenBrand=void 0,this.offset=t,this.type=r,this.language=s}toString(){return"("+this.offset+", "+this.type+")"}}var It;(function(e){const t=new Map;t.set(0,n.symbolMethod),t.set(1,n.symbolFunction),t.set(2,n.symbolConstructor),t.set(3,n.symbolField),t.set(4,n.symbolVariable),t.set(5,n.symbolClass),t.set(6,n.symbolStruct),t.set(7,n.symbolInterface),t.set(8,n.symbolModule),t.set(9,n.symbolProperty),t.set(10,n.symbolEvent),t.set(11,n.symbolOperator),t.set(12,n.symbolUnit),t.set(13,n.symbolValue),t.set(15,n.symbolEnum),t.set(14,n.symbolConstant),t.set(15,n.symbolEnum),t.set(16,n.symbolEnumMember),t.set(17,n.symbolKeyword),t.set(27,n.symbolSnippet),t.set(18,n.symbolText),t.set(19,n.symbolColor),t.set(20,n.symbolFile),t.set(21,n.symbolReference),t.set(22,n.symbolCustomColor),t.set(23,n.symbolFolder),t.set(24,n.symbolTypeParameter),t.set(25,n.account),t.set(26,n.issues);function r(a){let o=t.get(a);return o||(console.info("No codicon found for CompletionItemKind "+a),o=n.symbolProperty),o}e.toIcon=r;const s=new Map;s.set("method",0),s.set("function",1),s.set("constructor",2),s.set("field",3),s.set("variable",4),s.set("class",5),s.set("struct",6),s.set("interface",7),s.set("module",8),s.set("property",9),s.set("event",10),s.set("operator",11),s.set("unit",12),s.set("value",13),s.set("constant",14),s.set("enum",15),s.set("enum-member",16),s.set("enumMember",16),s.set("keyword",17),s.set("snippet",27),s.set("text",18),s.set("color",19),s.set("file",20),s.set("reference",21),s.set("customcolor",22),s.set("folder",23),s.set("type-parameter",24),s.set("typeParameter",24),s.set("account",25),s.set("issue",26);function i(a,o){let l=s.get(a);return typeof l>"u"&&!o&&(l=9),l}e.fromString=i})(It||(It={}));var qt;(function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"})(qt||(qt={}));var Ht;(function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"})(Ht||(Ht={}));var Wt;(function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"})(Wt||(Wt={}));var $t;(function(e){const t=new Map;t.set(0,n.symbolFile),t.set(1,n.symbolModule),t.set(2,n.symbolNamespace),t.set(3,n.symbolPackage),t.set(4,n.symbolClass),t.set(5,n.symbolMethod),t.set(6,n.symbolProperty),t.set(7,n.symbolField),t.set(8,n.symbolConstructor),t.set(9,n.symbolEnum),t.set(10,n.symbolInterface),t.set(11,n.symbolFunction),t.set(12,n.symbolVariable),t.set(13,n.symbolConstant),t.set(14,n.symbolString),t.set(15,n.symbolNumber),t.set(16,n.symbolBoolean),t.set(17,n.symbolArray),t.set(18,n.symbolObject),t.set(19,n.symbolKey),t.set(20,n.symbolNull),t.set(21,n.symbolEnumMember),t.set(22,n.symbolStruct),t.set(23,n.symbolEvent),t.set(24,n.symbolOperator),t.set(25,n.symbolTypeParameter);function r(s){let i=t.get(s);return i||(console.info("No codicon found for SymbolKind "+s),i=n.symbolProperty),i}e.toIcon=r})($t||($t={}));var zt;(function(e){function t(r){return!r||typeof r!="object"?!1:typeof r.id=="string"&&typeof r.title=="string"}e.is=t})(zt||(zt={}));var Gt;(function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"})(Gt||(Gt={})),new r1;var Ot;(function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"})(Ot||(Ot={}));var jt;(function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"})(jt||(jt={}));var Qt;(function(e){e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"})(Qt||(Qt={}));var Zt;(function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue",e[e.Snippet=27]="Snippet"})(Zt||(Zt={}));var Yt;(function(e){e[e.Deprecated=1]="Deprecated"})(Yt||(Yt={}));var Xt;(function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(Xt||(Xt={}));var Jt;(function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"})(Jt||(Jt={}));var Kt;(function(e){e[e.NotSet=0]="NotSet",e[e.ContentFlush=1]="ContentFlush",e[e.RecoverFromMarkers=2]="RecoverFromMarkers",e[e.Explicit=3]="Explicit",e[e.Paste=4]="Paste",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo"})(Kt||(Kt={}));var en;(function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(en||(en={}));var tn;(function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"})(tn||(tn={}));var nn;(function(e){e[e.None=0]="None",e[e.Keep=1]="Keep",e[e.Brackets=2]="Brackets",e[e.Advanced=3]="Advanced",e[e.Full=4]="Full"})(nn||(nn={}));var rn;(function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.autoClosingBrackets=5]="autoClosingBrackets",e[e.autoClosingDelete=6]="autoClosingDelete",e[e.autoClosingOvertype=7]="autoClosingOvertype",e[e.autoClosingQuotes=8]="autoClosingQuotes",e[e.autoIndent=9]="autoIndent",e[e.automaticLayout=10]="automaticLayout",e[e.autoSurround=11]="autoSurround",e[e.bracketPairColorization=12]="bracketPairColorization",e[e.guides=13]="guides",e[e.codeLens=14]="codeLens",e[e.codeLensFontFamily=15]="codeLensFontFamily",e[e.codeLensFontSize=16]="codeLensFontSize",e[e.colorDecorators=17]="colorDecorators",e[e.columnSelection=18]="columnSelection",e[e.comments=19]="comments",e[e.contextmenu=20]="contextmenu",e[e.copyWithSyntaxHighlighting=21]="copyWithSyntaxHighlighting",e[e.cursorBlinking=22]="cursorBlinking",e[e.cursorSmoothCaretAnimation=23]="cursorSmoothCaretAnimation",e[e.cursorStyle=24]="cursorStyle",e[e.cursorSurroundingLines=25]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=26]="cursorSurroundingLinesStyle",e[e.cursorWidth=27]="cursorWidth",e[e.disableLayerHinting=28]="disableLayerHinting",e[e.disableMonospaceOptimizations=29]="disableMonospaceOptimizations",e[e.domReadOnly=30]="domReadOnly",e[e.dragAndDrop=31]="dragAndDrop",e[e.dropIntoEditor=32]="dropIntoEditor",e[e.emptySelectionClipboard=33]="emptySelectionClipboard",e[e.experimental=34]="experimental",e[e.extraEditorClassName=35]="extraEditorClassName",e[e.fastScrollSensitivity=36]="fastScrollSensitivity",e[e.find=37]="find",e[e.fixedOverflowWidgets=38]="fixedOverflowWidgets",e[e.folding=39]="folding",e[e.foldingStrategy=40]="foldingStrategy",e[e.foldingHighlight=41]="foldingHighlight",e[e.foldingImportsByDefault=42]="foldingImportsByDefault",e[e.foldingMaximumRegions=43]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=44]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=45]="fontFamily",e[e.fontInfo=46]="fontInfo",e[e.fontLigatures=47]="fontLigatures",e[e.fontSize=48]="fontSize",e[e.fontWeight=49]="fontWeight",e[e.formatOnPaste=50]="formatOnPaste",e[e.formatOnType=51]="formatOnType",e[e.glyphMargin=52]="glyphMargin",e[e.gotoLocation=53]="gotoLocation",e[e.hideCursorInOverviewRuler=54]="hideCursorInOverviewRuler",e[e.hover=55]="hover",e[e.inDiffEditor=56]="inDiffEditor",e[e.inlineSuggest=57]="inlineSuggest",e[e.letterSpacing=58]="letterSpacing",e[e.lightbulb=59]="lightbulb",e[e.lineDecorationsWidth=60]="lineDecorationsWidth",e[e.lineHeight=61]="lineHeight",e[e.lineNumbers=62]="lineNumbers",e[e.lineNumbersMinChars=63]="lineNumbersMinChars",e[e.linkedEditing=64]="linkedEditing",e[e.links=65]="links",e[e.matchBrackets=66]="matchBrackets",e[e.minimap=67]="minimap",e[e.mouseStyle=68]="mouseStyle",e[e.mouseWheelScrollSensitivity=69]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=70]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=71]="multiCursorMergeOverlapping",e[e.multiCursorModifier=72]="multiCursorModifier",e[e.multiCursorPaste=73]="multiCursorPaste",e[e.occurrencesHighlight=74]="occurrencesHighlight",e[e.overviewRulerBorder=75]="overviewRulerBorder",e[e.overviewRulerLanes=76]="overviewRulerLanes",e[e.padding=77]="padding",e[e.parameterHints=78]="parameterHints",e[e.peekWidgetDefaultFocus=79]="peekWidgetDefaultFocus",e[e.definitionLinkOpensInPeek=80]="definitionLinkOpensInPeek",e[e.quickSuggestions=81]="quickSuggestions",e[e.quickSuggestionsDelay=82]="quickSuggestionsDelay",e[e.readOnly=83]="readOnly",e[e.renameOnType=84]="renameOnType",e[e.renderControlCharacters=85]="renderControlCharacters",e[e.renderFinalNewline=86]="renderFinalNewline",e[e.renderLineHighlight=87]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=88]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=89]="renderValidationDecorations",e[e.renderWhitespace=90]="renderWhitespace",e[e.revealHorizontalRightPadding=91]="revealHorizontalRightPadding",e[e.roundedSelection=92]="roundedSelection",e[e.rulers=93]="rulers",e[e.scrollbar=94]="scrollbar",e[e.scrollBeyondLastColumn=95]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=96]="scrollBeyondLastLine",e[e.scrollPredominantAxis=97]="scrollPredominantAxis",e[e.selectionClipboard=98]="selectionClipboard",e[e.selectionHighlight=99]="selectionHighlight",e[e.selectOnLineNumbers=100]="selectOnLineNumbers",e[e.showFoldingControls=101]="showFoldingControls",e[e.showUnused=102]="showUnused",e[e.snippetSuggestions=103]="snippetSuggestions",e[e.smartSelect=104]="smartSelect",e[e.smoothScrolling=105]="smoothScrolling",e[e.stickyTabStops=106]="stickyTabStops",e[e.stopRenderingLineAfter=107]="stopRenderingLineAfter",e[e.suggest=108]="suggest",e[e.suggestFontSize=109]="suggestFontSize",e[e.suggestLineHeight=110]="suggestLineHeight",e[e.suggestOnTriggerCharacters=111]="suggestOnTriggerCharacters",e[e.suggestSelection=112]="suggestSelection",e[e.tabCompletion=113]="tabCompletion",e[e.tabIndex=114]="tabIndex",e[e.unicodeHighlighting=115]="unicodeHighlighting",e[e.unusualLineTerminators=116]="unusualLineTerminators",e[e.useShadowDOM=117]="useShadowDOM",e[e.useTabStops=118]="useTabStops",e[e.wordSeparators=119]="wordSeparators",e[e.wordWrap=120]="wordWrap",e[e.wordWrapBreakAfterCharacters=121]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=122]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=123]="wordWrapColumn",e[e.wordWrapOverride1=124]="wordWrapOverride1",e[e.wordWrapOverride2=125]="wordWrapOverride2",e[e.wrappingIndent=126]="wrappingIndent",e[e.wrappingStrategy=127]="wrappingStrategy",e[e.showDeprecated=128]="showDeprecated",e[e.inlayHints=129]="inlayHints",e[e.editorClassName=130]="editorClassName",e[e.pixelRatio=131]="pixelRatio",e[e.tabFocusMode=132]="tabFocusMode",e[e.layoutInfo=133]="layoutInfo",e[e.wrappingInfo=134]="wrappingInfo"})(rn||(rn={}));var sn;(function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(sn||(sn={}));var an;(function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"})(an||(an={}));var on;(function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"})(on||(on={}));var ln;(function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"})(ln||(ln={}));var cn;(function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"})(cn||(cn={}));var un;(function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"})(un||(un={}));var rt;(function(e){e[e.DependsOnKbLayout=-1]="DependsOnKbLayout",e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.Digit0=21]="Digit0",e[e.Digit1=22]="Digit1",e[e.Digit2=23]="Digit2",e[e.Digit3=24]="Digit3",e[e.Digit4=25]="Digit4",e[e.Digit5=26]="Digit5",e[e.Digit6=27]="Digit6",e[e.Digit7=28]="Digit7",e[e.Digit8=29]="Digit8",e[e.Digit9=30]="Digit9",e[e.KeyA=31]="KeyA",e[e.KeyB=32]="KeyB",e[e.KeyC=33]="KeyC",e[e.KeyD=34]="KeyD",e[e.KeyE=35]="KeyE",e[e.KeyF=36]="KeyF",e[e.KeyG=37]="KeyG",e[e.KeyH=38]="KeyH",e[e.KeyI=39]="KeyI",e[e.KeyJ=40]="KeyJ",e[e.KeyK=41]="KeyK",e[e.KeyL=42]="KeyL",e[e.KeyM=43]="KeyM",e[e.KeyN=44]="KeyN",e[e.KeyO=45]="KeyO",e[e.KeyP=46]="KeyP",e[e.KeyQ=47]="KeyQ",e[e.KeyR=48]="KeyR",e[e.KeyS=49]="KeyS",e[e.KeyT=50]="KeyT",e[e.KeyU=51]="KeyU",e[e.KeyV=52]="KeyV",e[e.KeyW=53]="KeyW",e[e.KeyX=54]="KeyX",e[e.KeyY=55]="KeyY",e[e.KeyZ=56]="KeyZ",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.NumLock=78]="NumLock",e[e.ScrollLock=79]="ScrollLock",e[e.Semicolon=80]="Semicolon",e[e.Equal=81]="Equal",e[e.Comma=82]="Comma",e[e.Minus=83]="Minus",e[e.Period=84]="Period",e[e.Slash=85]="Slash",e[e.Backquote=86]="Backquote",e[e.BracketLeft=87]="BracketLeft",e[e.Backslash=88]="Backslash",e[e.BracketRight=89]="BracketRight",e[e.Quote=90]="Quote",e[e.OEM_8=91]="OEM_8",e[e.IntlBackslash=92]="IntlBackslash",e[e.Numpad0=93]="Numpad0",e[e.Numpad1=94]="Numpad1",e[e.Numpad2=95]="Numpad2",e[e.Numpad3=96]="Numpad3",e[e.Numpad4=97]="Numpad4",e[e.Numpad5=98]="Numpad5",e[e.Numpad6=99]="Numpad6",e[e.Numpad7=100]="Numpad7",e[e.Numpad8=101]="Numpad8",e[e.Numpad9=102]="Numpad9",e[e.NumpadMultiply=103]="NumpadMultiply",e[e.NumpadAdd=104]="NumpadAdd",e[e.NUMPAD_SEPARATOR=105]="NUMPAD_SEPARATOR",e[e.NumpadSubtract=106]="NumpadSubtract",e[e.NumpadDecimal=107]="NumpadDecimal",e[e.NumpadDivide=108]="NumpadDivide",e[e.KEY_IN_COMPOSITION=109]="KEY_IN_COMPOSITION",e[e.ABNT_C1=110]="ABNT_C1",e[e.ABNT_C2=111]="ABNT_C2",e[e.AudioVolumeMute=112]="AudioVolumeMute",e[e.AudioVolumeUp=113]="AudioVolumeUp",e[e.AudioVolumeDown=114]="AudioVolumeDown",e[e.BrowserSearch=115]="BrowserSearch",e[e.BrowserHome=116]="BrowserHome",e[e.BrowserBack=117]="BrowserBack",e[e.BrowserForward=118]="BrowserForward",e[e.MediaTrackNext=119]="MediaTrackNext",e[e.MediaTrackPrevious=120]="MediaTrackPrevious",e[e.MediaStop=121]="MediaStop",e[e.MediaPlayPause=122]="MediaPlayPause",e[e.LaunchMediaPlayer=123]="LaunchMediaPlayer",e[e.LaunchMail=124]="LaunchMail",e[e.LaunchApp2=125]="LaunchApp2",e[e.Clear=126]="Clear",e[e.MAX_VALUE=127]="MAX_VALUE"})(rt||(rt={}));var st;(function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"})(st||(st={}));var it;(function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"})(it||(it={}));var hn;(function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"})(hn||(hn={}));var fn;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TEXTAREA=1]="TEXTAREA",e[e.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",e[e.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",e[e.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",e[e.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",e[e.CONTENT_TEXT=6]="CONTENT_TEXT",e[e.CONTENT_EMPTY=7]="CONTENT_EMPTY",e[e.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",e[e.CONTENT_WIDGET=9]="CONTENT_WIDGET",e[e.OVERVIEW_RULER=10]="OVERVIEW_RULER",e[e.SCROLLBAR=11]="SCROLLBAR",e[e.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",e[e.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(fn||(fn={}));var dn;(function(e){e[e.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",e[e.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",e[e.TOP_CENTER=2]="TOP_CENTER"})(dn||(dn={}));var mn;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"})(mn||(mn={}));var gn;(function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.None=2]="None",e[e.LeftOfInjectedText=3]="LeftOfInjectedText",e[e.RightOfInjectedText=4]="RightOfInjectedText"})(gn||(gn={}));var bn;(function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"})(bn||(bn={}));var wn;(function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"})(wn||(wn={}));var Cn;(function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"})(Cn||(Cn={}));var _n;(function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"})(_n||(_n={}));var at;(function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"})(at||(at={}));var pn;(function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"})(pn||(pn={}));var Ln;(function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"})(Ln||(Ln={}));var Nn;(function(e){e[e.Deprecated=1]="Deprecated"})(Nn||(Nn={}));var vn;(function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"})(vn||(vn={}));var Sn;(function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"})(Sn||(Sn={}));var An;(function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(An||(An={}));var yn;(function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"})(yn||(yn={}));class we{static chord(t,r){return n1(t,r)}}we.CtrlCmd=2048,we.Shift=1024,we.Alt=512,we.WinCtrl=256;function a1(){return{editor:void 0,languages:void 0,CancellationTokenSource:Jr,Emitter:j,KeyCode:rt,KeyMod:we,Position:W,Range:x,Selection:$,SelectionDirection:at,MarkerSeverity:st,MarkerTag:it,Uri:re,Token:i1}}var kn;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"})(kn||(kn={}));var Mn;(function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"})(Mn||(Mn={}));var Rn;(function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"})(Rn||(Rn={}));function o1(e,t,r,s,i){if(s===0)return!0;const a=t.charCodeAt(s-1);if(e.get(a)!==0||a===13||a===10)return!0;if(i>0){const o=t.charCodeAt(s);if(e.get(o)!==0)return!0}return!1}function l1(e,t,r,s,i){if(s+i===r)return!0;const a=t.charCodeAt(s+i);if(e.get(a)!==0||a===13||a===10)return!0;if(i>0){const o=t.charCodeAt(s+i-1);if(e.get(o)!==0)return!0}return!1}function c1(e,t,r,s,i){return o1(e,t,r,s,i)&&l1(e,t,r,s,i)}class u1{constructor(t,r){this._wordSeparators=t,this._searchRegex=r,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(t){this._searchRegex.lastIndex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(t){const r=t.length;let s;do{if(this._prevMatchStartIndex+this._prevMatchLength===r||(s=this._searchRegex.exec(t),!s))return null;const i=s.index,a=s[0].length;if(i===this._prevMatchStartIndex&&a===this._prevMatchLength){if(a===0){ur(t,r,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=i,this._prevMatchLength=a,!this._wordSeparators||c1(this._wordSeparators,t,r,i,a))return s}while(s);return null}}class h1{static computeUnicodeHighlights(t,r,s){const i=s?s.startLineNumber:1,a=s?s.endLineNumber:t.getLineCount(),o=new Pn(r),l=o.getCandidateCodePoints();let u;l==="allNonBasicAscii"?u=new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):u=new RegExp(`${f1(Array.from(l))}`,"g");const c=new u1(null,u),f=[];let h=!1,d,C=0,v=0,A=0;e:for(let M=i,R=a;M<=R;M++){const P=t.getLineContent(M),y=P.length;c.reset(0);do if(d=c.next(P),d){let p=d.index,S=d.index+d[0].length;if(p>0){const w=P.charCodeAt(p-1);We(w)&&p--}if(S+1=w){h=!0;break e}f.push(new x(M,p+1,M,S+1))}}while(d)}return{ranges:f,hasMore:h,ambiguousCharacterCount:C,invisibleCharacterCount:v,nonBasicAsciiCharacterCount:A}}static computeUnicodeHighlightReason(t,r){const s=new Pn(r);switch(s.shouldHighlightNonBasicASCII(t,null)){case 0:return null;case 2:return{kind:1};case 3:{const a=t.codePointAt(0),o=s.ambiguousCharacters.getPrimaryConfusable(a),l=z.getLocales().filter(u=>!z.getInstance(new Set([...r.allowedLocales,u])).isAmbiguous(a));return{kind:0,confusableWith:String.fromCodePoint(o),notAmbiguousInLocales:l}}case 1:return{kind:2}}}}function f1(e,t){return`[${sr(e.map(s=>String.fromCodePoint(s)).join(""))}]`}class Pn{constructor(t){this.options=t,this.allowedCodePoints=new Set(t.allowedCodePoints),this.ambiguousCharacters=z.getInstance(new Set(t.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const t=new Set;if(this.options.invisibleCharacters)for(const r of Z.codePoints)Dn(String.fromCodePoint(r))||t.add(r);if(this.options.ambiguousCharacters)for(const r of this.ambiguousCharacters.getConfusableCodePoints())t.add(r);for(const r of this.allowedCodePoints)t.delete(r);return t}shouldHighlightNonBasicASCII(t,r){const s=t.codePointAt(0);if(this.allowedCodePoints.has(s))return 0;if(this.options.nonBasicASCII)return 1;let i=!1,a=!1;if(r)for(const o of r){const l=o.codePointAt(0),u=fr(o);i=i||u,!u&&!this.ambiguousCharacters.isAmbiguous(l)&&!Z.isInvisibleCharacter(l)&&(a=!0)}return!i&&a?0:this.options.invisibleCharacters&&!Dn(t)&&Z.isInvisibleCharacter(s)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(s)?3:0}}function Dn(e){return e===" "||e===` `||e===" "}var se=function(e,t,r,s){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function l(f){try{c(s.next(f))}catch(h){o(h)}}function u(f){try{c(s.throw(f))}catch(h){o(h)}}function c(f){f.done?a(f.value):i(f.value).then(l,u)}c((s=s.apply(e,t||[])).next())})};class d1 extends Wr{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(t){return this._lines[t-1]}getWordAtPosition(t,r){const s=Ze(t.column,Gr(r),this._lines[t.lineNumber-1],0);return s?new x(t.lineNumber,s.startColumn,t.lineNumber,s.endColumn):null}words(t){const r=this._lines,s=this._wordenize.bind(this);let i=0,a="",o=0,l=[];return{*[Symbol.iterator](){for(;;)if(othis._lines.length)r=this._lines.length,s=this._lines[r-1].length+1,i=!0;else{const a=this._lines[r-1].length+1;s<1?(s=1,i=!0):s>a&&(s=a,i=!0)}return i?{lineNumber:r,column:s}:t}}class ie{constructor(t,r){this._host=t,this._models=Object.create(null),this._foreignModuleFactory=r,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(t){return this._models[t]}_getModels(){const t=[];return Object.keys(this._models).forEach(r=>t.push(this._models[r])),t}acceptNewModel(t){this._models[t.url]=new d1(re.parse(t.url),t.lines,t.EOL,t.versionId)}acceptModelChanged(t,r){if(!this._models[t])return;this._models[t].onEvents(r)}acceptRemovedModel(t){!this._models[t]||delete this._models[t]}computeUnicodeHighlights(t,r,s){return se(this,void 0,void 0,function*(){const i=this._getModel(t);return i?h1.computeUnicodeHighlights(i,r,s):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}})}computeDiff(t,r,s,i){return se(this,void 0,void 0,function*(){const a=this._getModel(t),o=this._getModel(r);return!a||!o?null:ie.computeDiff(a,o,s,i)})}static computeDiff(t,r,s,i){const a=t.getLinesContent(),o=r.getLinesContent(),u=new Ir(a,o,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:s,shouldMakePrettyDiff:!0,maxComputationTime:i}).computeDiff(),c=u.changes.length>0?!1:this._modelsAreIdentical(t,r);return{quitEarly:u.quitEarly,identical:c,changes:u.changes}}static _modelsAreIdentical(t,r){const s=t.getLineCount(),i=r.getLineCount();if(s!==i)return!1;for(let a=1;a<=s;a++){const o=t.getLineContent(a),l=r.getLineContent(a);if(o!==l)return!1}return!0}computeMoreMinimalEdits(t,r){return se(this,void 0,void 0,function*(){const s=this._getModel(t);if(!s)return r;const i=[];let a;r=r.slice(0).sort((o,l)=>{if(o.range&&l.range)return x.compareRangesUsingStarts(o.range,l.range);const u=o.range?0:1,c=l.range?0:1;return u-c});for(let{range:o,text:l,eol:u}of r){if(typeof u=="number"&&(a=u),x.isEmpty(o)&&!l)continue;const c=s.getValueInRange(o);if(l=l.replace(/\r\n|\n|\r/g,s.eol),c===l)continue;if(Math.max(l.length,c.length)>ie._diffLimit){i.push({range:o,text:l});continue}const f=Nr(c,l,!1),h=s.offsetAt(x.lift(o).getStartPosition());for(const d of f){const C=s.positionAt(h+d.originalStart),v=s.positionAt(h+d.originalStart+d.originalLength),A={text:l.substr(d.modifiedStart,d.modifiedLength),range:{startLineNumber:C.lineNumber,startColumn:C.column,endLineNumber:v.lineNumber,endColumn:v.column}};s.getValueInRange(A.range)!==A.text&&i.push(A)}}return typeof a=="number"&&i.push({eol:a,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),i})}computeLinks(t){return se(this,void 0,void 0,function*(){const r=this._getModel(t);return r?Xr(r):null})}textualSuggest(t,r,s,i){return se(this,void 0,void 0,function*(){const a=new Ne(!0),o=new RegExp(s,i),l=new Set;e:for(const u of t){const c=this._getModel(u);if(!!c){for(const f of c.words(o))if(!(f===r||!isNaN(Number(f)))&&(l.add(f),l.size>ie._suggestionsLimit))break e}}return{words:Array.from(l),duration:a.elapsed()}})}computeWordRanges(t,r,s,i){return se(this,void 0,void 0,function*(){const a=this._getModel(t);if(!a)return Object.create(null);const o=new RegExp(s,i),l=Object.create(null);for(let u=r.startLineNumber;uthis._host.fhr(l,u)),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(o,r),Promise.resolve(He(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(t,r){if(!this._foreignModule||typeof this._foreignModule[t]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+t));try{return Promise.resolve(this._foreignModule[t].apply(this._foreignModule,r))}catch(s){return Promise.reject(s)}}}ie._diffLimit=1e5,ie._suggestionsLimit=1e4,typeof importScripts=="function"&&(T.monaco=a1());let ot=!1;function m1(e){if(ot)return;ot=!0;const t=new pr(r=>{self.postMessage(r)},r=>new ie(r,e));self.onmessage=r=>{t.onmessage(r.data)}}self.onmessage=e=>{ot||m1(null)}})();