var nl=Object.defineProperty;var il=(Me,be,me)=>be in Me?nl(Me,be,{enumerable:!0,configurable:!0,writable:!0,value:me}):Me[be]=me;var Mt=(Me,be,me)=>(il(Me,typeof be!="symbol"?be+"":be,me),me);var ve=(Me,be,me)=>new Promise((Pt,Qe)=>{var ir=we=>{try{ht(me.next(we))}catch(Tt){Qe(Tt)}},ar=we=>{try{ht(me.throw(we))}catch(Tt){Qe(Tt)}},ht=we=>we.done?Pt(we.value):Promise.resolve(we.value).then(ir,ar);ht((me=me.apply(Me,be)).next())});(function(){"use strict";class Me{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(t){setTimeout(()=>{throw 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 be=new Me;function me(e){ir(e)||be.onUnexpectedError(e)}function Pt(e){if(e instanceof Error){let{name:t,message:r}=e;const n=e.stacktrace||e.stack;return{$isError:!0,name:t,message:r,stack:n}}return e}const Qe="Canceled";function ir(e){return e instanceof ar?!0:e instanceof Error&&e.name===Qe&&e.message===Qe}class ar extends Error{constructor(){super(Qe),this.name=this.message}}function ht(e){const t=this;let r=!1,n;return function(){return r||(r=!0,n=e.apply(t,arguments)),n}}var we;(function(e){function t(w){return w&&typeof w=="object"&&typeof w[Symbol.iterator]=="function"}e.is=t;const r=Object.freeze([]);function n(){return r}e.empty=n;function*i(w){yield w}e.single=i;function s(w){return w||r}e.from=s;function o(w){return!w||w[Symbol.iterator]().next().done===!0}e.isEmpty=o;function l(w){return w[Symbol.iterator]().next().value}e.first=l;function u(w,v){for(const S of w)if(v(S))return!0;return!1}e.some=u;function c(w,v){for(const S of w)if(v(S))return S}e.find=c;function*h(w,v){for(const S of w)v(S)&&(yield S)}e.filter=h;function*f(w,v){let S=0;for(const A of w)yield v(A,S++)}e.map=f;function*d(...w){for(const v of w)for(const S of v)yield S}e.concat=d;function*m(w){for(const v of w)for(const S of v)yield S}e.concatNested=m;function b(w,v,S){let A=S;for(const y of w)A=v(A,y);return A}e.reduce=b;function*p(w,v,S=w.length){for(v<0&&(v+=w.length),S<0?S+=w.length:S>w.length&&(S=w.length);vA===y){const A=w[Symbol.iterator](),y=v[Symbol.iterator]();for(;;){const C=A.next(),_=y.next();if(C.done!==_.done)return!1;if(C.done)return!0;if(!S(C.value,_.value))return!1}}e.equals=N})(we||(we={}));function Tt(e){return e}function al(e,t){}class La extends Error{constructor(t){super(`Encountered errors while disposing of store. Errors: [${t.join(", ")}]`),this.errors=t}}function on(e){if(we.is(e)){let t=[];for(const r of e)if(r)try{r.dispose()}catch(n){t.push(n)}if(t.length===1)throw t[0];if(t.length>1)throw new La(t);return Array.isArray(e)?[]:e}else if(e)return e.dispose(),e}function ka(...e){return Et(()=>on(e))}function Et(e){return{dispose:ht(()=>{e()})}}class Ke{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){try{on(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?Ke.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}}Ke.DISABLE_DISPOSED_WARNING=!1;class sr{constructor(){this._store=new Ke,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)}}sr.None=Object.freeze({dispose(){}});class xa{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 z{constructor(t){this.element=t,this.next=z.Undefined,this.prev=z.Undefined}}z.Undefined=new z(void 0);class ln{constructor(){this._first=z.Undefined,this._last=z.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===z.Undefined}clear(){let t=this._first;for(;t!==z.Undefined;){const r=t.next;t.prev=z.Undefined,t.next=z.Undefined,t=r}this._first=z.Undefined,this._last=z.Undefined,this._size=0}unshift(t){return this._insert(t,!1)}push(t){return this._insert(t,!0)}_insert(t,r){const n=new z(t);if(this._first===z.Undefined)this._first=n,this._last=n;else if(r){const s=this._last;this._last=n,n.prev=s,s.next=n}else{const s=this._first;this._first=n,n.next=s,s.prev=n}this._size+=1;let i=!1;return()=>{i||(i=!0,this._remove(n))}}shift(){if(this._first!==z.Undefined){const t=this._first.element;return this._remove(this._first),t}}pop(){if(this._last!==z.Undefined){const t=this._last.element;return this._remove(this._last),t}}_remove(t){if(t.prev!==z.Undefined&&t.next!==z.Undefined){const r=t.prev;r.next=t.next,t.next.prev=r}else t.prev===z.Undefined&&t.next===z.Undefined?(this._first=z.Undefined,this._last=z.Undefined):t.next===z.Undefined?(this._last=this._last.prev,this._last.next=z.Undefined):t.prev===z.Undefined&&(this._first=this._first.next,this._first.prev=z.Undefined);this._size-=1}*[Symbol.iterator](){let t=this._first;for(;t!==z.Undefined;)yield t.element,t=t.next}}var or;const Ft="en";let lr=!1,ur=!1,cr=!1,un=!1,Vt,fr=Ft,Ma,Ve;const ee=typeof self=="object"?self:typeof global=="object"?global:{};let te;typeof ee.vscode!="undefined"&&typeof ee.vscode.process!="undefined"?te=ee.vscode.process:typeof process!="undefined"&&(te=process);const Pa=typeof((or=te==null?void 0:te.versions)===null||or===void 0?void 0:or.electron)=="string"&&(te==null?void 0:te.type)==="renderer";if(typeof navigator=="object"&&!Pa)Ve=navigator.userAgent,lr=Ve.indexOf("Windows")>=0,ur=Ve.indexOf("Macintosh")>=0,(Ve.indexOf("Macintosh")>=0||Ve.indexOf("iPad")>=0||Ve.indexOf("iPhone")>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>0,cr=Ve.indexOf("Linux")>=0,un=!0,Vt=navigator.language,fr=Vt;else if(typeof te=="object"){lr=te.platform==="win32",ur=te.platform==="darwin",cr=te.platform==="linux",cr&&te.env.SNAP&&te.env.SNAP_REVISION,te.env.CI||te.env.BUILD_ARTIFACTSTAGINGDIRECTORY,Vt=Ft,fr=Ft;const e=te.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e),r=t.availableLanguages["*"];Vt=t.locale,fr=r||Ft,Ma=t._translationsConfigFile}catch(t){}}else console.error("Unable to resolve platform.");const dt=lr,Ta=ur;un&&ee.importScripts;const Se=Ve;(()=>{if(typeof ee.postMessage=="function"&&!ee.importScripts){let e=[];ee.addEventListener("message",r=>{if(r.data&&r.data.vscodeScheduleAsyncWork)for(let n=0,i=e.length;n{const n=++t;e.push({id:n,callback:r}),ee.postMessage({vscodeScheduleAsyncWork:n},"*")}}return e=>setTimeout(e)})();const Ea=!!(Se&&Se.indexOf("Chrome")>=0);Se&&Se.indexOf("Firefox")>=0,!Ea&&Se&&Se.indexOf("Safari")>=0,Se&&Se.indexOf("Edg/")>=0,Se&&Se.indexOf("Android")>=0;const Fa=ee.performance&&typeof ee.performance.now=="function";class It{constructor(t){this._highResolution=Fa&&t,this._startTime=this._now(),this._stopTime=-1}static create(t=!0){return new It(t)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?ee.performance.now():Date.now()}}var hr;(function(e){e.None=()=>sr.None;function t(S){return(A,y=null,C)=>{let _=!1,L;return L=S(M=>{if(!_)return L?L.dispose():_=!0,A.call(y,M)},null,C),_&&L.dispose(),L}}e.once=t;function r(S,A,y){return u((C,_=null,L)=>S(M=>C.call(_,A(M)),null,L),y)}e.map=r;function n(S,A,y){return u((C,_=null,L)=>S(M=>{A(M),C.call(_,M)},null,L),y)}e.forEach=n;function i(S,A,y){return u((C,_=null,L)=>S(M=>A(M)&&C.call(_,M),null,L),y)}e.filter=i;function s(S){return S}e.signal=s;function o(...S){return(A,y=null,C)=>ka(...S.map(_=>_(L=>A.call(y,L),null,C)))}e.any=o;function l(S,A,y,C){let _=y;return r(S,L=>(_=A(_,L),_),C)}e.reduce=l;function u(S,A){let y;const C={onFirstListenerAdd(){y=S(_.fire,_)},onLastListenerRemove(){y.dispose()}},_=new Pe(C);return A&&A.add(_),_.event}function c(S,A,y=100,C=!1,_,L){let M,E,P,R=0;const B={leakWarningThreshold:_,onFirstListenerAdd(){M=S(H=>{R++,E=A(E,H),C&&!P&&(X.fire(E),E=void 0),clearTimeout(P),P=setTimeout(()=>{const T=E;E=void 0,P=void 0,(!C||R>1)&&X.fire(T),R=0},y)})},onLastListenerRemove(){M.dispose()}},X=new Pe(B);return L&&L.add(X),X.event}e.debounce=c;function h(S,A=(C,_)=>C===_,y){let C=!0,_;return i(S,L=>{const M=C||!A(L,_);return C=!1,_=L,M},y)}e.latch=h;function f(S,A,y){return[e.filter(S,A,y),e.filter(S,C=>!A(C),y)]}e.split=f;function d(S,A=!1,y=[]){let C=y.slice(),_=S(E=>{C?C.push(E):M.fire(E)});const L=()=>{C&&C.forEach(E=>M.fire(E)),C=null},M=new Pe({onFirstListenerAdd(){_||(_=S(E=>M.fire(E)))},onFirstListenerDidAdd(){C&&(A?setTimeout(L):L())},onLastListenerRemove(){_&&_.dispose(),_=null}});return M.event}e.buffer=d;class m{constructor(A){this.event=A}map(A){return new m(r(this.event,A))}forEach(A){return new m(n(this.event,A))}filter(A){return new m(i(this.event,A))}reduce(A,y){return new m(l(this.event,A,y))}latch(){return new m(h(this.event))}debounce(A,y=100,C=!1,_){return new m(c(this.event,A,y,C,_))}on(A,y,C){return this.event(A,y,C)}once(A,y,C){return t(this.event)(A,y,C)}}function b(S){return new m(S)}e.chain=b;function p(S,A,y=C=>C){const C=(...E)=>M.fire(y(...E)),_=()=>S.on(A,C),L=()=>S.removeListener(A,C),M=new Pe({onFirstListenerAdd:_,onLastListenerRemove:L});return M.event}e.fromNodeEventEmitter=p;function g(S,A,y=C=>C){const C=(...E)=>M.fire(y(...E)),_=()=>S.addEventListener(A,C),L=()=>S.removeEventListener(A,C),M=new Pe({onFirstListenerAdd:_,onLastListenerRemove:L});return M.event}e.fromDOMEventEmitter=g;function N(S){return new Promise(A=>t(S)(A))}e.toPromise=N;function w(S,A){return A(void 0),S(y=>A(y))}e.runAndSubscribe=w;function v(S,A){let y=null;function C(L){y==null||y.dispose(),y=new Ke,A(L,y)}C(void 0);const _=S(L=>C(L));return Et(()=>{_.dispose(),y==null||y.dispose()})}e.runAndSubscribeWithStore=v})(hr||(hr={}));class Rt{constructor(t){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${t}_${Rt._idPool++}`}start(t){this._stopWatch=new It(!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}}}Rt._idPool=0;class dr{constructor(t){this.value=t}static create(){var t;return new dr((t=new Error().stack)!==null&&t!==void 0?t:"")}print(){console.warn(this.value.split(` `).slice(2).join(` `))}}class Va{constructor(t,r,n){this.callback=t,this.callbackThis=r,this.stack=n,this.subscription=new xa}invoke(t){this.callback.call(this.callbackThis,t)}}class Pe{constructor(t){var r;this._disposed=!1,this._options=t,this._leakageMon=void 0,this._perfMon=!((r=this._options)===null||r===void 0)&&r._profName?new Rt(this._options._profName):void 0}dispose(){var t,r,n,i;this._disposed||(this._disposed=!0,this._listeners&&this._listeners.clear(),(t=this._deliveryQueue)===null||t===void 0||t.clear(),(n=(r=this._options)===null||r===void 0?void 0:r.onLastListenerRemove)===null||n===void 0||n.call(r),(i=this._leakageMon)===null||i===void 0||i.dispose())}get event(){return this._event||(this._event=(t,r,n)=>{var i,s,o;this._listeners||(this._listeners=new ln);const l=this._listeners.isEmpty();l&&(!((i=this._options)===null||i===void 0)&&i.onFirstListenerAdd)&&this._options.onFirstListenerAdd(this);let u,c;this._leakageMon&&this._listeners.size>=30&&(c=dr.create(),u=this._leakageMon.check(c,this._listeners.size+1));const h=new Va(t,r,c),f=this._listeners.push(h);l&&(!((s=this._options)===null||s===void 0)&&s.onFirstListenerDidAdd)&&this._options.onFirstListenerDidAdd(this),!((o=this._options)===null||o===void 0)&&o.onListenerDidAdd&&this._options.onListenerDidAdd(this,t,r);const d=h.subscription.set(()=>{u&&u(),this._disposed||(f(),this._options&&this._options.onLastListenerRemove&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)))});return n instanceof Ke?n.add(d):Array.isArray(n)&&n.push(d),d}),this._event}fire(t){var r,n;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new ln);for(let i of this._listeners)this._deliveryQueue.push([i,t]);for((r=this._perfMon)===null||r===void 0||r.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[i,s]=this._deliveryQueue.shift();try{i.invoke(s)}catch(o){me(o)}}(n=this._perfMon)===null||n===void 0||n.stop()}}}function Ia(e){let t=[],r=Object.getPrototypeOf(e);for(;Object.prototype!==r;)t=t.concat(Object.getOwnPropertyNames(r)),r=Object.getPrototypeOf(r);return t}function mr(e){const t=[];for(const r of Ia(e))typeof e[r]=="function"&&t.push(r);return t}function Ra(e,t){const r=i=>function(){const s=Array.prototype.slice.call(arguments,0);return t(i,s)};let n={};for(const i of e)n[i]=r(i);return n}function Da(e,t="Unreachable"){throw new Error(t)}class Oa{constructor(t){this.computeFn=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.computeFn(t)),this.lastCache}}class cn{constructor(t){this.executor=t,this._didRun=!1}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 fn;function Ua(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function ja(e){return e.split(/\r\n|\r|\n/)}function Ba(e){for(let t=0,r=e.length;t=0;r--){const n=e.charCodeAt(r);if(n!==32&&n!==9)return r}return-1}function hn(e){return e>=65&&e<=90}function gr(e){return 55296<=e&&e<=56319}function Wa(e){return 56320<=e&&e<=57343}function qa(e,t){return(e-55296<<10)+(t-56320)+65536}function Ha(e,t,r){const n=e.charCodeAt(r);if(gr(n)&&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]}')),ge.cache=new Oa(e=>{function t(c){const h=new Map;for(let f=0;f!c.startsWith("_")&&c in i);s.length===0&&(s=["_default"]);let o;for(const c of s){const h=t(i[c]);o=n(o,h)}const l=t(i._common),u=r(l,o);return new ge(u)}),ge._locales=new cn(()=>Object.keys(ge.ambiguousCharacterData.getValue()).filter(e=>!e.startsWith("_")));class Ie{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(Ie.getRawData())),this._data}static isInvisibleCharacter(t){return Ie.getData().has(t)}static get codePoints(){return Ie.getData()}}Ie._data=void 0;const Ja="$initialize";class Za{constructor(t,r,n,i){this.vsWorker=t,this.req=r,this.method=n,this.args=i,this.type=0}}class dn{constructor(t,r,n,i){this.vsWorker=t,this.seq=r,this.res=n,this.err=i,this.type=1}}class Xa{constructor(t,r,n,i){this.vsWorker=t,this.req=r,this.eventName=n,this.arg=i,this.type=2}}class Ya{constructor(t,r,n){this.vsWorker=t,this.req=r,this.event=n,this.type=3}}class Qa{constructor(t,r){this.vsWorker=t,this.req=r,this.type=4}}class Ka{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 n=String(++this._lastSentReq);return new Promise((i,s)=>{this._pendingReplies[n]={resolve:i,reject:s},this._send(new Za(this._workerId,n,t,r))})}listen(t,r){let n=null;const i=new Pe({onFirstListenerAdd:()=>{n=String(++this._lastSentReq),this._pendingEmitters.set(n,i),this._send(new Xa(this._workerId,n,t,r))},onLastListenerRemove:()=>{this._pendingEmitters.delete(n),this._send(new Qa(this._workerId,n)),n=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}let r=this._pendingReplies[t.seq];if(delete this._pendingReplies[t.seq],t.err){let n=t.err;t.err.$isError&&(n=new Error,n.name=t.err.name,n.message=t.err.message,n.stack=t.err.stack),r.reject(n);return}r.resolve(t.res)}_handleRequestMessage(t){let r=t.req;this._handler.handleMessage(t.method,t.args).then(i=>{this._send(new dn(this._workerId,r,i,void 0))},i=>{i.detail instanceof Error&&(i.detail=Pt(i.detail)),this._send(new dn(this._workerId,r,void 0,Pt(i)))})}_handleSubscribeEventMessage(t){const r=t.req,n=this._handler.handleEvent(t.eventName,t.arg)(i=>{this._send(new Ya(this._workerId,r,i))});this._pendingEvents.set(r,n)}_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){let r=[];if(t.type===0)for(let n=0;nfunction(){const l=Array.prototype.slice.call(arguments,0);return t(o,l)},i=o=>function(l){return r(o,l)};let s={};for(const o of e){if(gn(o)){s[o]=i(o);continue}if(mn(o)){s[o]=r(o,void 0);continue}s[o]=n(o)}return s}class ts{constructor(t,r){this._requestHandlerFactory=r,this._requestHandler=null,this._protocol=new Ka({sendMessage:(n,i)=>{t(n,i)},handleMessage:(n,i)=>this._handleMessage(n,i),handleEvent:(n,i)=>this._handleEvent(n,i)})}onmessage(t){this._protocol.handleMessage(t)}_handleMessage(t,r){if(t===Ja)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(n){return Promise.reject(n)}}_handleEvent(t,r){if(!this._requestHandler)throw new Error("Missing requestHandler");if(gn(t)){const n=this._requestHandler[t].call(this._requestHandler,r);if(typeof n!="function")throw new Error(`Missing dynamic event ${t} on request handler.`);return n}if(mn(t)){const n=this._requestHandler[t];if(typeof n!="function")throw new Error(`Missing event ${t} on request handler.`);return n}throw new Error(`Malformed event name ${t}`)}initialize(t,r,n,i){this._protocol.setWorkerId(t);const l=es(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(mr(this._requestHandler))):(r&&(typeof r.baseUrl!="undefined"&&delete r.baseUrl,typeof r.paths!="undefined"&&typeof r.paths.vs!="undefined"&&delete r.paths.vs,typeof r.trustedTypesPolicy!==void 0&&delete r.trustedTypesPolicy,r.catchError=!0,ee.require.config(r)),new Promise((u,c)=>{const h=ee.require;h([n],f=>{if(this._requestHandler=f.create(l),!this._requestHandler){c(new Error("No RequestHandler!"));return}u(mr(this._requestHandler))},c)}))}}class Re{constructor(t,r,n,i){this.originalStart=t,this.originalLength=r,this.modifiedStart=n,this.modifiedLength=i}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}function pn(e,t){return(t<<5)-t+e|0}function rs(e,t){t=pn(149417,t);for(let r=0,n=e.length;r0||this.m_modifiedCount>0)&&this.m_changes.push(new Re(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 De{constructor(t,r,n=null){this.ContinueProcessingPredicate=n,this._originalSequence=t,this._modifiedSequence=r;const[i,s,o]=De._getElements(t),[l,u,c]=De._getElements(r);this._hasStrings=o&&c,this._originalStringElements=i,this._originalElementsOrHash=s,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(De._isStringArray(r)){const n=new Int32Array(r.length);for(let i=0,s=r.length;i=t&&i>=n&&this.ElementsAreEqual(r,i);)r--,i--;if(t>r||n>i){let f;return n<=i?(et.Assert(t===r+1,"originalStart should only be one more than originalEnd"),f=[new Re(t,0,n,i-n+1)]):t<=r?(et.Assert(n===i+1,"modifiedStart should only be one more than modifiedEnd"),f=[new Re(t,r-t+1,n,0)]):(et.Assert(t===r+1,"originalStart should only be one more than originalEnd"),et.Assert(n===i+1,"modifiedStart should only be one more than modifiedEnd"),f=[]),f}const o=[0],l=[0],u=this.ComputeRecursionPoint(t,r,n,i,o,l,s),c=o[0],h=l[0];if(u!==null)return u;if(!s[0]){const f=this.ComputeDiffRecursive(t,c,n,h,s);let d=[];return s[0]?d=[new Re(c+1,r-(c+1)+1,h+1,i-(h+1)+1)]:d=this.ComputeDiffRecursive(c+1,r,h+1,i,s),this.ConcatenateChanges(f,d)}return[new Re(t,r-t+1,n,i-n+1)]}WALKTRACE(t,r,n,i,s,o,l,u,c,h,f,d,m,b,p,g,N,w){let v=null,S=null,A=new bn,y=r,C=n,_=m[0]-g[0]-i,L=-1073741824,M=this.m_forwardHistory.length-1;do{const E=_+t;E===y||E=0&&(c=this.m_forwardHistory[M],t=c[0],y=1,C=c.length-1)}while(--M>=-1);if(v=A.getReverseChanges(),w[0]){let E=m[0]+1,P=g[0]+1;if(v!==null&&v.length>0){const R=v[v.length-1];E=Math.max(E,R.getOriginalEnd()),P=Math.max(P,R.getModifiedEnd())}S=[new Re(E,d-E+1,P,p-P+1)]}else{A=new bn,y=o,C=l,_=m[0]-g[0]-u,L=1073741824,M=N?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const E=_+s;E===y||E=h[E+1]?(f=h[E+1]-1,b=f-_-u,f>L&&A.MarkNextChange(),L=f+1,A.AddOriginalElement(f+1,b+1),_=E+1-s):(f=h[E-1],b=f-_-u,f>L&&A.MarkNextChange(),L=f,A.AddModifiedElement(f+1,b+1),_=E-1-s),M>=0&&(h=this.m_reverseHistory[M],s=h[0],y=1,C=h.length-1)}while(--M>=-1);S=A.getChanges()}return this.ConcatenateChanges(v,S)}ComputeRecursionPoint(t,r,n,i,s,o,l){let u=0,c=0,h=0,f=0,d=0,m=0;t--,n--,s[0]=0,o[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const b=r-t+(i-n),p=b+1,g=new Int32Array(p),N=new Int32Array(p),w=i-n,v=r-t,S=t-n,A=r-i,C=(v-w)%2===0;g[w]=t,N[v]=r,l[0]=!1;for(let _=1;_<=b/2+1;_++){let L=0,M=0;h=this.ClipDiagonalBound(w-_,_,w,p),f=this.ClipDiagonalBound(w+_,_,w,p);for(let P=h;P<=f;P+=2){P===h||PL+M&&(L=u,M=c),!C&&Math.abs(P-v)<=_-1&&u>=N[P])return s[0]=u,o[0]=c,R<=N[P]&&1447>0&&_<=1447+1?this.WALKTRACE(w,h,f,S,v,d,m,A,g,N,u,r,s,c,i,o,C,l):null}const E=(L-t+(M-n)-_)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(L,E))return l[0]=!0,s[0]=L,o[0]=M,E>0&&1447>0&&_<=1447+1?this.WALKTRACE(w,h,f,S,v,d,m,A,g,N,u,r,s,c,i,o,C,l):(t++,n++,[new Re(t,r-t+1,n,i-n+1)]);d=this.ClipDiagonalBound(v-_,_,v,p),m=this.ClipDiagonalBound(v+_,_,v,p);for(let P=d;P<=m;P+=2){P===d||P=N[P+1]?u=N[P+1]-1:u=N[P-1],c=u-(P-v)-A;const R=u;for(;u>t&&c>n&&this.ElementsAreEqual(u,c);)u--,c--;if(N[P]=u,C&&Math.abs(P-w)<=_&&u<=g[P])return s[0]=u,o[0]=c,R>=g[P]&&1447>0&&_<=1447+1?this.WALKTRACE(w,h,f,S,v,d,m,A,g,N,u,r,s,c,i,o,C,l):null}if(_<=1447){let P=new Int32Array(f-h+2);P[0]=w-h+1,tt.Copy2(g,h,P,1,f-h+1),this.m_forwardHistory.push(P),P=new Int32Array(m-d+2),P[0]=v-d+1,tt.Copy2(N,d,P,1,m-d+1),this.m_reverseHistory.push(P)}}return this.WALKTRACE(w,h,f,S,v,d,m,A,g,N,u,r,s,c,i,o,C,l)}PrettifyChanges(t){for(let r=0;r0,l=n.modifiedLength>0;for(;n.originalStart+n.originalLength=0;r--){const n=t[r];let i=0,s=0;if(r>0){const f=t[r-1];i=f.originalStart+f.originalLength,s=f.modifiedStart+f.modifiedLength}const o=n.originalLength>0,l=n.modifiedLength>0;let u=0,c=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength);for(let f=1;;f++){const d=n.originalStart-f,m=n.modifiedStart-f;if(dc&&(c=p,u=f)}n.originalStart-=u,n.modifiedStart-=u;const h=[null];if(r>0&&this.ChangesOverlap(t[r-1],t[r],h)){t[r-1]=h[0],t.splice(r,1),r++;continue}}if(this._hasStrings)for(let r=1,n=t.length;r0&&m>u&&(u=m,c=f,h=d)}return u>0?[c,h]:null}_contiguousSequenceScore(t,r,n){let i=0;for(let s=0;s=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 n=t+r;if(this._OriginalIsBoundary(n-1)||this._OriginalIsBoundary(n))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 n=t+r;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1}_boundaryScore(t,r,n,i){const s=this._OriginalRegionIsBoundary(t,r)?1:0,o=this._ModifiedRegionIsBoundary(n,i)?1:0;return s+o}ConcatenateChanges(t,r){let n=[];if(t.length===0||r.length===0)return r.length>0?r:t;if(this.ChangesOverlap(t[t.length-1],r[0],n)){const i=new Array(t.length+r.length-1);return tt.Copy(t,0,i,0,t.length-1),i[t.length-1]=n[0],tt.Copy(r,1,i,t.length,r.length-1),i}else{const i=new Array(t.length+r.length);return tt.Copy(t,0,i,0,t.length),tt.Copy(r,0,i,t.length,r.length),i}}ChangesOverlap(t,r,n){if(et.Assert(t.originalStart<=r.originalStart,"Left change is not less than or equal to right change"),et.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 s=t.originalLength;const o=t.modifiedStart;let l=t.modifiedLength;return t.originalStart+t.originalLength>=r.originalStart&&(s=r.originalStart+r.originalLength-t.originalStart),t.modifiedStart+t.modifiedLength>=r.modifiedStart&&(l=r.modifiedStart+r.modifiedLength-t.modifiedStart),n[0]=new Re(i,s,o,l),!0}else return n[0]=null,!1}ClipDiagonalBound(t,r,n,i){if(t>=0&&t=as&&e<=os||e>=ss&&e<=ls}function Dt(e,t,r,n){let i="",s=0,o=-1,l=0,u=0;for(let c=0;c<=e.length;++c){if(c2){const h=i.lastIndexOf(r);h===-1?(i="",s=0):(i=i.slice(0,h),s=i.length-1-i.lastIndexOf(r)),o=c,l=0;continue}else if(i.length!==0){i="",s=0,o=c,l=0;continue}}t&&(i+=i.length>0?`${r}..`:"..",s=2)}else i.length>0?i+=`${r}${e.slice(o+1,c)}`:i=e.slice(o+1,c),s=c-o-1;o=c,l=0}else u===Oe&&l!==-1?++l:l=-1}return i}function yn(e,t){if(t===null||typeof t!="object")throw new wn("pathObject","Object",t);const r=t.dir||t.root,n=t.base||`${t.name||""}${t.ext||""}`;return r?r===t.root?`${r}${n}`:`${r}${e}${n}`:n}const ae={resolve(...e){let t="",r="",n=!1;for(let i=e.length-1;i>=-1;i--){let s;if(i>=0){if(s=e[i],J(s,"path"),s.length===0)continue}else t.length===0?s=pr():(s=is[`=${t}`]||pr(),(s===void 0||s.slice(0,2).toLowerCase()!==t.toLowerCase()&&s.charCodeAt(2)===se)&&(s=`${t}\\`));const o=s.length;let l=0,u="",c=!1;const h=s.charCodeAt(0);if(o===1)j(h)&&(l=1,c=!0);else if(j(h))if(c=!0,j(s.charCodeAt(1))){let f=2,d=f;for(;f2&&j(s.charCodeAt(2))&&(c=!0,l=3));if(u.length>0)if(t.length>0){if(u.toLowerCase()!==t.toLowerCase())continue}else t=u;if(n){if(t.length>0)break}else if(r=`${s.slice(l)}\\${r}`,n=c,c&&t.length>0)break}return r=Dt(r,!n,"\\",j),n?`${t}\\${r}`:`${t}${r}`||"."},normalize(e){J(e,"path");const t=e.length;if(t===0)return".";let r=0,n,i=!1;const s=e.charCodeAt(0);if(t===1)return vr(s)?"\\":e;if(j(s))if(i=!0,j(e.charCodeAt(1))){let l=2,u=l;for(;l2&&j(e.charCodeAt(2))&&(i=!0,r=3));let o=r0&&j(e.charCodeAt(t-1))&&(o+="\\"),n===void 0?i?`\\${o}`:o:i?`${n}\\${o}`:`${n}${o}`},isAbsolute(e){J(e,"path");const t=e.length;if(t===0)return!1;const r=e.charCodeAt(0);return j(r)||t>2&&je(r)&&e.charCodeAt(1)===Ue&&j(e.charCodeAt(2))},join(...e){if(e.length===0)return".";let t,r;for(let s=0;s0&&(t===void 0?t=r=o:t+=`\\${o}`)}if(t===void 0)return".";let n=!0,i=0;if(typeof r=="string"&&j(r.charCodeAt(0))){++i;const s=r.length;s>1&&j(r.charCodeAt(1))&&(++i,s>2&&(j(r.charCodeAt(2))?++i:n=!1))}if(n){for(;i=2&&(t=`\\${t.slice(i)}`)}return ae.normalize(t)},relative(e,t){if(J(e,"from"),J(t,"to"),e===t)return"";const r=ae.resolve(e),n=ae.resolve(t);if(r===n||(e=r.toLowerCase(),t=n.toLowerCase(),e===t))return"";let i=0;for(;ii&&e.charCodeAt(s-1)===se;)s--;const o=s-i;let l=0;for(;ll&&t.charCodeAt(u-1)===se;)u--;const c=u-l,h=oh){if(t.charCodeAt(l+d)===se)return n.slice(l+d+1);if(d===2)return n.slice(l+d)}o>h&&(e.charCodeAt(i+d)===se?f=d:d===2&&(f=3)),f===-1&&(f=0)}let m="";for(d=i+f+1;d<=s;++d)(d===s||e.charCodeAt(d)===se)&&(m+=m.length===0?"..":"\\..");return l+=f,m.length>0?`${m}${n.slice(l,u)}`:(n.charCodeAt(l)===se&&++l,n.slice(l,u))},toNamespacedPath(e){if(typeof e!="string")return e;if(e.length===0)return"";const t=ae.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===se){if(t.charCodeAt(1)===se){const r=t.charCodeAt(2);if(r!==us&&r!==Oe)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(je(t.charCodeAt(0))&&t.charCodeAt(1)===Ue&&t.charCodeAt(2)===se)return`\\\\?\\${t}`;return e},dirname(e){J(e,"path");const t=e.length;if(t===0)return".";let r=-1,n=0;const i=e.charCodeAt(0);if(t===1)return j(i)?e:".";if(j(i)){if(r=n=1,j(e.charCodeAt(1))){let l=2,u=l;for(;l2&&j(e.charCodeAt(2))?3:2,n=r);let s=-1,o=!0;for(let l=t-1;l>=n;--l)if(j(e.charCodeAt(l))){if(!o){s=l;break}}else o=!1;if(s===-1){if(r===-1)return".";s=r}return e.slice(0,s)},basename(e,t){t!==void 0&&J(t,"ext"),J(e,"path");let r=0,n=-1,i=!0,s;if(e.length>=2&&je(e.charCodeAt(0))&&e.charCodeAt(1)===Ue&&(r=2),t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,l=-1;for(s=e.length-1;s>=r;--s){const u=e.charCodeAt(s);if(j(u)){if(!i){r=s+1;break}}else l===-1&&(i=!1,l=s+1),o>=0&&(u===t.charCodeAt(o)?--o===-1&&(n=s):(o=-1,n=l))}return r===n?n=l:n===-1&&(n=e.length),e.slice(r,n)}for(s=e.length-1;s>=r;--s)if(j(e.charCodeAt(s))){if(!i){r=s+1;break}}else n===-1&&(i=!1,n=s+1);return n===-1?"":e.slice(r,n)},extname(e){J(e,"path");let t=0,r=-1,n=0,i=-1,s=!0,o=0;e.length>=2&&e.charCodeAt(1)===Ue&&je(e.charCodeAt(0))&&(t=n=2);for(let l=e.length-1;l>=t;--l){const u=e.charCodeAt(l);if(j(u)){if(!s){n=l+1;break}continue}i===-1&&(s=!1,i=l+1),u===Oe?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===n+1?"":e.slice(r,i)},format:yn.bind(null,"\\"),parse(e){J(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;const r=e.length;let n=0,i=e.charCodeAt(0);if(r===1)return j(i)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(j(i)){if(n=1,j(e.charCodeAt(1))){let f=2,d=f;for(;f0&&(t.root=e.slice(0,n));let s=-1,o=n,l=-1,u=!0,c=e.length-1,h=0;for(;c>=n;--c){if(i=e.charCodeAt(c),j(i)){if(!u){o=c+1;break}continue}l===-1&&(u=!1,l=c+1),i===Oe?s===-1?s=c:h!==1&&(h=1):s!==-1&&(h=-1)}return l!==-1&&(s===-1||h===0||h===1&&s===l-1&&s===o+1?t.base=t.name=e.slice(o,l):(t.name=e.slice(o,s),t.base=e.slice(o,l),t.ext=e.slice(s,l))),o>0&&o!==n?t.dir=e.slice(0,o-1):t.dir=t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},oe={resolve(...e){let t="",r=!1;for(let n=e.length-1;n>=-1&&!r;n--){const i=n>=0?e[n]:pr();J(i,"path"),i.length!==0&&(t=`${i}/${t}`,r=i.charCodeAt(0)===Q)}return t=Dt(t,!r,"/",vr),r?`/${t}`:t.length>0?t:"."},normalize(e){if(J(e,"path"),e.length===0)return".";const t=e.charCodeAt(0)===Q,r=e.charCodeAt(e.length-1)===Q;return e=Dt(e,!t,"/",vr),e.length===0?t?"/":r?"./":".":(r&&(e+="/"),t?`/${e}`:e)},isAbsolute(e){return J(e,"path"),e.length>0&&e.charCodeAt(0)===Q},join(...e){if(e.length===0)return".";let t;for(let r=0;r0&&(t===void 0?t=n:t+=`/${n}`)}return t===void 0?".":oe.normalize(t)},relative(e,t){if(J(e,"from"),J(t,"to"),e===t||(e=oe.resolve(e),t=oe.resolve(t),e===t))return"";const r=1,n=e.length,i=n-r,s=1,o=t.length-s,l=il){if(t.charCodeAt(s+c)===Q)return t.slice(s+c+1);if(c===0)return t.slice(s+c)}else i>l&&(e.charCodeAt(r+c)===Q?u=c:c===0&&(u=0));let h="";for(c=r+u+1;c<=n;++c)(c===n||e.charCodeAt(c)===Q)&&(h+=h.length===0?"..":"/..");return`${h}${t.slice(s+u)}`},toNamespacedPath(e){return e},dirname(e){if(J(e,"path"),e.length===0)return".";const t=e.charCodeAt(0)===Q;let r=-1,n=!0;for(let i=e.length-1;i>=1;--i)if(e.charCodeAt(i)===Q){if(!n){r=i;break}}else n=!1;return r===-1?t?"/":".":t&&r===1?"//":e.slice(0,r)},basename(e,t){t!==void 0&&J(t,"ext"),J(e,"path");let r=0,n=-1,i=!0,s;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,l=-1;for(s=e.length-1;s>=0;--s){const u=e.charCodeAt(s);if(u===Q){if(!i){r=s+1;break}}else l===-1&&(i=!1,l=s+1),o>=0&&(u===t.charCodeAt(o)?--o===-1&&(n=s):(o=-1,n=l))}return r===n?n=l:n===-1&&(n=e.length),e.slice(r,n)}for(s=e.length-1;s>=0;--s)if(e.charCodeAt(s)===Q){if(!i){r=s+1;break}}else n===-1&&(i=!1,n=s+1);return n===-1?"":e.slice(r,n)},extname(e){J(e,"path");let t=-1,r=0,n=-1,i=!0,s=0;for(let o=e.length-1;o>=0;--o){const l=e.charCodeAt(o);if(l===Q){if(!i){r=o+1;break}continue}n===-1&&(i=!1,n=o+1),l===Oe?t===-1?t=o:s!==1&&(s=1):t!==-1&&(s=-1)}return t===-1||n===-1||s===0||s===1&&t===n-1&&t===r+1?"":e.slice(t,n)},format:yn.bind(null,"/"),parse(e){J(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;const r=e.charCodeAt(0)===Q;let n;r?(t.root="/",n=1):n=0;let i=-1,s=0,o=-1,l=!0,u=e.length-1,c=0;for(;u>=n;--u){const h=e.charCodeAt(u);if(h===Q){if(!l){s=u+1;break}continue}o===-1&&(l=!1,o=u+1),h===Oe?i===-1?i=u:c!==1&&(c=1):i!==-1&&(c=-1)}if(o!==-1){const h=s===0&&r?1:s;i===-1||c===0||c===1&&i===o-1&&i===s+1?t.base=t.name=e.slice(h,o):(t.name=e.slice(h,i),t.base=e.slice(h,o),t.ext=e.slice(i,o))}return s>0?t.dir=e.slice(0,s-1):r&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};oe.win32=ae.win32=ae,oe.posix=ae.posix=oe,qe==="win32"?ae.normalize:oe.normalize,qe==="win32"?ae.resolve:oe.resolve,qe==="win32"?ae.relative:oe.relative,qe==="win32"?ae.dirname:oe.dirname,qe==="win32"?ae.basename:oe.basename,qe==="win32"?ae.extname:oe.extname,qe==="win32"?ae.sep:oe.sep;const cs=/^\w[\w\d+.-]*$/,fs=/^\//,hs=/^\/\//;function Cn(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&&!cs.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path){if(e.authority){if(!fs.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(hs.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 ds(e,t){return!e&&!t?"file":e}function ms(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==ye&&(t=ye+t):t=ye;break}return t}const G="",ye="/",gs=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;let br=class nr{constructor(t,r,n,i,s,o=!1){typeof t=="object"?(this.scheme=t.scheme||G,this.authority=t.authority||G,this.path=t.path||G,this.query=t.query||G,this.fragment=t.fragment||G):(this.scheme=ds(t,o),this.authority=r||G,this.path=ms(this.scheme,n||G),this.query=i||G,this.fragment=s||G,Cn(this,o))}static isUri(t){return t instanceof nr?!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 wr(this,!1)}with(t){if(!t)return this;let{scheme:r,authority:n,path:i,query:s,fragment:o}=t;return r===void 0?r=this.scheme:r===null&&(r=G),n===void 0?n=this.authority:n===null&&(n=G),i===void 0?i=this.path:i===null&&(i=G),s===void 0?s=this.query:s===null&&(s=G),o===void 0?o=this.fragment:o===null&&(o=G),r===this.scheme&&n===this.authority&&i===this.path&&s===this.query&&o===this.fragment?this:new nt(r,n,i,s,o)}static parse(t,r=!1){const n=gs.exec(t);return n?new nt(n[2]||G,Ot(n[4]||G),Ot(n[5]||G),Ot(n[7]||G),Ot(n[9]||G),r):new nt(G,G,G,G,G)}static file(t){let r=G;if(dt&&(t=t.replace(/\\/g,ye)),t[0]===ye&&t[1]===ye){const n=t.indexOf(ye,2);n===-1?(r=t.substring(2),t=ye):(r=t.substring(2,n),t=t.substring(n)||ye)}return new nt("file",r,t,G,G)}static from(t){const r=new nt(t.scheme,t.authority,t.path,t.query,t.fragment);return Cn(r,!0),r}static joinPath(t,...r){if(!t.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let n;return dt&&t.scheme==="file"?n=nr.file(ae.join(wr(t,!0),...r)).path:n=oe.join(t.path,...r),t.with({path:n})}toString(t=!1){return yr(this,t)}toJSON(){return this}static revive(t){if(t){if(t instanceof nr)return t;{const r=new nt(t);return r._formatted=t.external,r._fsPath=t._sep===_n?t.fsPath:null,r}}else return t}};const _n=dt?1:void 0;class nt extends br{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=wr(this,!1)),this._fsPath}toString(t=!1){return t?yr(this,!0):(this._formatted||(this._formatted=yr(this,!1)),this._formatted)}toJSON(){const t={$mid:1};return this._fsPath&&(t.fsPath=this._fsPath,t._sep=_n),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 Sn={[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 An(e,t){let r,n=-1;for(let i=0;i=97&&s<=122||s>=65&&s<=90||s>=48&&s<=57||s===45||s===46||s===95||s===126||t&&s===47)n!==-1&&(r+=encodeURIComponent(e.substring(n,i)),n=-1),r!==void 0&&(r+=e.charAt(i));else{r===void 0&&(r=e.substr(0,i));const o=Sn[s];o!==void 0?(n!==-1&&(r+=encodeURIComponent(e.substring(n,i)),n=-1),r+=o):n===-1&&(n=i)}}return n!==-1&&(r+=encodeURIComponent(e.substring(n))),r!==void 0?r:e}function ps(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,dt&&(r=r.replace(/\//g,"\\")),r}function yr(e,t){const r=t?ps:An;let n="",{scheme:i,authority:s,path:o,query:l,fragment:u}=e;if(i&&(n+=i,n+=":"),(s||i==="file")&&(n+=ye,n+=ye),s){let c=s.indexOf("@");if(c!==-1){const h=s.substr(0,c);s=s.substr(c+1),c=h.indexOf(":"),c===-1?n+=r(h,!1):(n+=r(h.substr(0,c),!1),n+=":",n+=r(h.substr(c+1),!1)),n+="@"}s=s.toLowerCase(),c=s.indexOf(":"),c===-1?n+=r(s,!1):(n+=r(s.substr(0,c),!1),n+=s.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)}`)}n+=r(o,!0)}return l&&(n+="?",n+=r(l,!1)),u&&(n+="#",n+=t?u:An(u,!1)),n}function Nn(e){try{return decodeURIComponent(e)}catch(t){return e.length>3?e.substr(0,3)+Nn(e.substr(3)):e}}const Ln=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function Ot(e){return e.match(Ln)?e.replace(Ln,t=>Nn(t)):e}let He=class Ye{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 Ye(t,r)}delta(t=0,r=0){return this.with(this.lineNumber+t,this.column+r)}equals(t){return Ye.equals(this,t)}static equals(t,r){return!t&&!r?!0:!!t&&!!r&&t.lineNumber===r.lineNumber&&t.column===r.column}isBefore(t){return Ye.isBefore(this,t)}static isBefore(t,r){return t.lineNumbern||t===n&&r>i?(this.startLineNumber=n,this.startColumn=i,this.endLineNumber=t,this.endColumn=r):(this.startLineNumber=t,this.startColumn=r,this.endLineNumber=n,this.endColumn=i)}isEmpty(){return K.isEmpty(this)}static isEmpty(t){return t.startLineNumber===t.endLineNumber&&t.startColumn===t.endColumn}containsPosition(t){return K.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 K.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 K.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 K.plusRange(this,t)}static plusRange(t,r){let n,i,s,o;return r.startLineNumbert.endLineNumber?(s=r.endLineNumber,o=r.endColumn):r.endLineNumber===t.endLineNumber?(s=r.endLineNumber,o=Math.max(r.endColumn,t.endColumn)):(s=t.endLineNumber,o=t.endColumn),new K(n,i,s,o)}intersectRanges(t){return K.intersectRanges(this,t)}static intersectRanges(t,r){let n=t.startLineNumber,i=t.startColumn,s=t.endLineNumber,o=t.endColumn,l=r.startLineNumber,u=r.startColumn,c=r.endLineNumber,h=r.endColumn;return nc?(s=c,o=h):s===c&&(o=Math.min(o,h)),n>s||n===s&&i>o?null:new K(n,i,s,o)}equalsRange(t){return K.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 K.getEndPosition(this)}static getEndPosition(t){return new He(t.endLineNumber,t.endColumn)}getStartPosition(){return K.getStartPosition(this)}static getStartPosition(t){return new He(t.startLineNumber,t.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(t,r){return new K(this.startLineNumber,this.startColumn,t,r)}setStartPosition(t,r){return new K(t,r,this.endLineNumber,this.endColumn)}collapseToStart(){return K.collapseToStart(this)}static collapseToStart(t){return new K(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn)}static fromPositions(t,r=t){return new K(t.lineNumber,t.column,r.lineNumber,r.column)}static lift(t){return t?new K(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 vs=3;function kn(e,t,r,n){return new De(e,t,r).ComputeDiff(n)}class xn{constructor(t){const r=[],n=[];for(let i=0,s=t.length;i0&&r.originalLength<20&&r.modifiedLength>0&&r.modifiedLength<20&&s()){const m=n.createCharSequence(t,r.originalStart,r.originalStart+r.originalLength-1),b=i.createCharSequence(t,r.modifiedStart,r.modifiedStart+r.modifiedLength-1);let p=kn(m,b,s,!0).changes;l&&(p=ws(p)),d=[];for(let g=0,N=p.length;g1&&p>1;){const g=d.charCodeAt(b-2),N=m.charCodeAt(p-2);if(g!==N)break;b--,p--}(b>1||p>1)&&this._pushTrimWhitespaceCharChange(i,s+1,1,b,o+1,1,p)}{let b=_r(d,1),p=_r(m,1);const g=d.length+1,N=m.length+1;for(;b!0;const t=Date.now();return()=>Date.now()-t255?255:e|0}function it(e){return e<0?0:e>4294967295?4294967295:e|0}class Cs{constructor(t){this.values=t,this.prefixSum=new Uint32Array(t.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(t,r){t=it(t);const n=this.values,i=this.prefixSum,s=r.length;return s===0?!1:(this.values=new Uint32Array(n.length+s),this.values.set(n.subarray(0,t),0),this.values.set(n.subarray(t),t+s),this.values.set(r,t),t-1=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(t,r){return t=it(t),r=it(r),this.values[t]===r?!1:(this.values[t]=r,t-1=n.length)return!1;const s=n.length-t;return r>=s&&(r=s),r===0?!1:(this.values=new Uint32Array(n.length-r),this.values.set(n.subarray(0,t),0),this.values.set(n.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=it(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 n=r;n<=t;n++)this.prefixSum[n]=this.prefixSum[n-1]+this.values[n];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],t),this.prefixSum[t]}getIndexOf(t){t=Math.floor(t),this.getTotalSum();let r=0,n=this.values.length-1,i=0,s=0,o=0;for(;r<=n;)if(i=r+(n-r)/2|0,s=this.prefixSum[i],o=s-this.values[i],t=s)r=i+1;else break;return new _s(i,t-o)}}class _s{constructor(t,r){this.index=t,this.remainder=r,this._prefixSumIndexOfResultBrand=void 0,this.index=t,this.remainder=r}}class Ss{constructor(t,r,n,i){this._uri=t,this._lines=r,this._eol=n,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 n of r)this._acceptDeleteRange(n.range),this._acceptInsertText(new He(n.range.startLineNumber,n.range.startColumn),n.text);this._versionId=t.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const t=this._eol.length,r=this._lines.length,n=new Uint32Array(r);for(let i=0;i/?";function Ns(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(const r of As)e.indexOf(r)>=0||(t+="\\"+r);return t+="\\s]+)",new RegExp(t,"g")}const Tn=Ns();function Ls(e){let t=Tn;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 ks={maxLen:1e3,windowSize:15,timeBudget:150};function Sr(e,t,r,n,i=ks){if(r.length>i.maxLen){let c=e-i.maxLen/2;return c<0?c=0:n+=c,r=r.substring(c,e+i.maxLen/2),Sr(e,t,r,n,i)}const s=Date.now(),o=e-1-n;let l=-1,u=null;for(let c=1;!(Date.now()-s>=i.timeBudget);c++){const h=o-i.windowSize*c;t.lastIndex=Math.max(0,h);const f=xs(t,r,o,l);if(!f&&u||(u=f,h<=0))break;l=h}if(u){const c={word:u[0],startColumn:n+1+u.index,endColumn:n+1+u.index+u[0].length};return t.lastIndex=0,c}return null}function xs(e,t,r,n){let i;for(;i=e.exec(t);){const s=i.index||0;if(s<=r&&e.lastIndex>=r)return i;if(n>0&&s>n)return null}return null}class Ar{constructor(t){const r=Pn(t);this._defaultValue=r,this._asciiMap=Ar._createAsciiMap(r),this._map=new Map}static _createAsciiMap(t){const r=new Uint8Array(256);for(let n=0;n<256;n++)r[n]=t;return r}set(t,r){const n=Pn(r);t>=0&&t<256?this._asciiMap[t]=n:this._map.set(t,n)}get(t){return t>=0&&t<256?this._asciiMap[t]:this._map.get(t)||this._defaultValue}}class Ms{constructor(t,r,n){const i=new Uint8Array(t*r);for(let s=0,o=t*r;sr&&(r=u),l>n&&(n=l),c>n&&(n=c)}r++,n++;const i=new Ms(n,r,0);for(let s=0,o=t.length;s=this._maxCharCode?0:this._states.get(t,r)}}let Nr=null;function Ts(){return Nr===null&&(Nr=new Ps([[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]])),Nr}let pt=null;function Es(){if(pt===null){pt=new Ar(0);const e=` <>'"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…`;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:n,startColumn:i+1,endLineNumber:n,endColumn:o+2},url:r.substring(i,o+1)}}static computeLinks(t,r=Ts()){const n=Es(),i=[];for(let s=1,o=t.getLineCount();s<=o;s++){const l=t.getLineContent(s),u=l.length;let c=0,h=0,f=0,d=1,m=!1,b=!1,p=!1,g=!1;for(;c=0?(i+=n?1:-1,i<0?i=t.length-1:i%=t.length,t[i]):null}}Lr.INSTANCE=new Lr;const En=Object.freeze(function(e,t){const r=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(r)}}});var jt;(function(e){function t(r){return r===e.None||r===e.Cancelled||r instanceof Bt?!0:!r||typeof r!="object"?!1:typeof r.isCancellationRequested=="boolean"&&typeof r.onCancellationRequested=="function"}e.isCancellationToken=t,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:hr.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:En})})(jt||(jt={}));class Bt{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?En:(this._emitter||(this._emitter=new Pe),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class Vs{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 Bt),this._token}cancel(){this._token?this._token instanceof Bt&&this._token.cancel():this._token=jt.Cancelled}dispose(t=!1){t&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof Bt&&this._token.dispose():this._token=jt.None}}class kr{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 $t=new kr,xr=new kr,Mr=new kr,Is=new Array(230),Rs=Object.create(null),Ds=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]];let r=[],n=[];for(const i of t){const[s,o,l,u,c,h,f,d,m,b]=i;if(n[l]||(n[l]=!0,Rs[u]=l,Ds[u.toLowerCase()]=l),!r[c]){if(r[c]=!0,!h)throw new Error(`String representation missing for key code ${c} around scan code ${u}`);$t.define(c,h),xr.define(c,m||h),Mr.define(c,b||m||h)}f&&(Is[f]=c)}})();var Fn;(function(e){function t(l){return $t.keyCodeToStr(l)}e.toString=t;function r(l){return $t.strToKeyCode(l)}e.fromString=r;function n(l){return xr.keyCodeToStr(l)}e.toUserSettingsUS=n;function i(l){return Mr.keyCodeToStr(l)}e.toUserSettingsGeneral=i;function s(l){return xr.strToKeyCode(l)||Mr.strToKeyCode(l)}e.fromUserSettings=s;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 $t.keyCodeToStr(l)}e.toElectronAccelerator=o})(Fn||(Fn={}));function Os(e,t){const r=(t&65535)<<16>>>0;return(e|r)>>>0}class ce extends ze{constructor(t,r,n,i){super(t,r,n,i),this.selectionStartLineNumber=t,this.selectionStartColumn=r,this.positionLineNumber=n,this.positionColumn=i}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(t){return ce.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 ce(this.startLineNumber,this.startColumn,t,r):new ce(t,r,this.startLineNumber,this.startColumn)}getPosition(){return new He(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new He(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(t,r){return this.getDirection()===0?new ce(t,r,this.endLineNumber,this.endColumn):new ce(this.endLineNumber,this.endColumn,t,r)}static fromPositions(t,r=t){return new ce(t.lineNumber,t.column,r.lineNumber,r.column)}static fromRange(t,r){return r===0?new ce(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):new ce(t.endLineNumber,t.endColumn,t.startLineNumber,t.startColumn)}static liftSelection(t){return new ce(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 n=0,i=t.length;n{this._map.get(t)===r&&(this._map.delete(t),this.fire([t]))})}registerFactory(t,r){var n;(n=this._factories.get(t))===null||n===void 0||n.dispose();const i=new js(this,t,r);return this._factories.set(t,i),Et(()=>{const s=this._factories.get(t);!s||s!==i||(this._factories.delete(t),s.dispose())})}getOrCreate(t){return Pr(this,void 0,void 0,function*(){const r=this.get(t);if(r)return r;const n=this._factories.get(t);return!n||n.isResolved?null:(yield n.resolve(),this.get(t))})}get(t){return this._map.get(t)||null}isResolved(t){if(this.get(t))return!0;const n=this._factories.get(t);return!!(!n||n.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 js extends sr{constructor(t,r,n){super(),this._registry=t,this._languageId=r,this._factory=n,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}get isResolved(){return this._isResolved}dispose(){this._isDisposed=!0,super.dispose()}resolve(){return Pr(this,void 0,void 0,function*(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise})}_create(){return Pr(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 a{constructor(t,r,n){this.id=t,this.definition=r,this.description=n,a._allCodicons.push(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}static getAll(){return a._allCodicons}}a._allCodicons=[],a.add=new a("add",{fontCharacter:"\\ea60"}),a.plus=new a("plus",a.add.definition),a.gistNew=new a("gist-new",a.add.definition),a.repoCreate=new a("repo-create",a.add.definition),a.lightbulb=new a("lightbulb",{fontCharacter:"\\ea61"}),a.lightBulb=new a("light-bulb",{fontCharacter:"\\ea61"}),a.repo=new a("repo",{fontCharacter:"\\ea62"}),a.repoDelete=new a("repo-delete",{fontCharacter:"\\ea62"}),a.gistFork=new a("gist-fork",{fontCharacter:"\\ea63"}),a.repoForked=new a("repo-forked",{fontCharacter:"\\ea63"}),a.gitPullRequest=new a("git-pull-request",{fontCharacter:"\\ea64"}),a.gitPullRequestAbandoned=new a("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),a.recordKeys=new a("record-keys",{fontCharacter:"\\ea65"}),a.keyboard=new a("keyboard",{fontCharacter:"\\ea65"}),a.tag=new a("tag",{fontCharacter:"\\ea66"}),a.tagAdd=new a("tag-add",{fontCharacter:"\\ea66"}),a.tagRemove=new a("tag-remove",{fontCharacter:"\\ea66"}),a.person=new a("person",{fontCharacter:"\\ea67"}),a.personFollow=new a("person-follow",{fontCharacter:"\\ea67"}),a.personOutline=new a("person-outline",{fontCharacter:"\\ea67"}),a.personFilled=new a("person-filled",{fontCharacter:"\\ea67"}),a.gitBranch=new a("git-branch",{fontCharacter:"\\ea68"}),a.gitBranchCreate=new a("git-branch-create",{fontCharacter:"\\ea68"}),a.gitBranchDelete=new a("git-branch-delete",{fontCharacter:"\\ea68"}),a.sourceControl=new a("source-control",{fontCharacter:"\\ea68"}),a.mirror=new a("mirror",{fontCharacter:"\\ea69"}),a.mirrorPublic=new a("mirror-public",{fontCharacter:"\\ea69"}),a.star=new a("star",{fontCharacter:"\\ea6a"}),a.starAdd=new a("star-add",{fontCharacter:"\\ea6a"}),a.starDelete=new a("star-delete",{fontCharacter:"\\ea6a"}),a.starEmpty=new a("star-empty",{fontCharacter:"\\ea6a"}),a.comment=new a("comment",{fontCharacter:"\\ea6b"}),a.commentAdd=new a("comment-add",{fontCharacter:"\\ea6b"}),a.alert=new a("alert",{fontCharacter:"\\ea6c"}),a.warning=new a("warning",{fontCharacter:"\\ea6c"}),a.search=new a("search",{fontCharacter:"\\ea6d"}),a.searchSave=new a("search-save",{fontCharacter:"\\ea6d"}),a.logOut=new a("log-out",{fontCharacter:"\\ea6e"}),a.signOut=new a("sign-out",{fontCharacter:"\\ea6e"}),a.logIn=new a("log-in",{fontCharacter:"\\ea6f"}),a.signIn=new a("sign-in",{fontCharacter:"\\ea6f"}),a.eye=new a("eye",{fontCharacter:"\\ea70"}),a.eyeUnwatch=new a("eye-unwatch",{fontCharacter:"\\ea70"}),a.eyeWatch=new a("eye-watch",{fontCharacter:"\\ea70"}),a.circleFilled=new a("circle-filled",{fontCharacter:"\\ea71"}),a.primitiveDot=new a("primitive-dot",{fontCharacter:"\\ea71"}),a.closeDirty=new a("close-dirty",{fontCharacter:"\\ea71"}),a.debugBreakpoint=new a("debug-breakpoint",{fontCharacter:"\\ea71"}),a.debugBreakpointDisabled=new a("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),a.debugHint=new a("debug-hint",{fontCharacter:"\\ea71"}),a.primitiveSquare=new a("primitive-square",{fontCharacter:"\\ea72"}),a.edit=new a("edit",{fontCharacter:"\\ea73"}),a.pencil=new a("pencil",{fontCharacter:"\\ea73"}),a.info=new a("info",{fontCharacter:"\\ea74"}),a.issueOpened=new a("issue-opened",{fontCharacter:"\\ea74"}),a.gistPrivate=new a("gist-private",{fontCharacter:"\\ea75"}),a.gitForkPrivate=new a("git-fork-private",{fontCharacter:"\\ea75"}),a.lock=new a("lock",{fontCharacter:"\\ea75"}),a.mirrorPrivate=new a("mirror-private",{fontCharacter:"\\ea75"}),a.close=new a("close",{fontCharacter:"\\ea76"}),a.removeClose=new a("remove-close",{fontCharacter:"\\ea76"}),a.x=new a("x",{fontCharacter:"\\ea76"}),a.repoSync=new a("repo-sync",{fontCharacter:"\\ea77"}),a.sync=new a("sync",{fontCharacter:"\\ea77"}),a.clone=new a("clone",{fontCharacter:"\\ea78"}),a.desktopDownload=new a("desktop-download",{fontCharacter:"\\ea78"}),a.beaker=new a("beaker",{fontCharacter:"\\ea79"}),a.microscope=new a("microscope",{fontCharacter:"\\ea79"}),a.vm=new a("vm",{fontCharacter:"\\ea7a"}),a.deviceDesktop=new a("device-desktop",{fontCharacter:"\\ea7a"}),a.file=new a("file",{fontCharacter:"\\ea7b"}),a.fileText=new a("file-text",{fontCharacter:"\\ea7b"}),a.more=new a("more",{fontCharacter:"\\ea7c"}),a.ellipsis=new a("ellipsis",{fontCharacter:"\\ea7c"}),a.kebabHorizontal=new a("kebab-horizontal",{fontCharacter:"\\ea7c"}),a.mailReply=new a("mail-reply",{fontCharacter:"\\ea7d"}),a.reply=new a("reply",{fontCharacter:"\\ea7d"}),a.organization=new a("organization",{fontCharacter:"\\ea7e"}),a.organizationFilled=new a("organization-filled",{fontCharacter:"\\ea7e"}),a.organizationOutline=new a("organization-outline",{fontCharacter:"\\ea7e"}),a.newFile=new a("new-file",{fontCharacter:"\\ea7f"}),a.fileAdd=new a("file-add",{fontCharacter:"\\ea7f"}),a.newFolder=new a("new-folder",{fontCharacter:"\\ea80"}),a.fileDirectoryCreate=new a("file-directory-create",{fontCharacter:"\\ea80"}),a.trash=new a("trash",{fontCharacter:"\\ea81"}),a.trashcan=new a("trashcan",{fontCharacter:"\\ea81"}),a.history=new a("history",{fontCharacter:"\\ea82"}),a.clock=new a("clock",{fontCharacter:"\\ea82"}),a.folder=new a("folder",{fontCharacter:"\\ea83"}),a.fileDirectory=new a("file-directory",{fontCharacter:"\\ea83"}),a.symbolFolder=new a("symbol-folder",{fontCharacter:"\\ea83"}),a.logoGithub=new a("logo-github",{fontCharacter:"\\ea84"}),a.markGithub=new a("mark-github",{fontCharacter:"\\ea84"}),a.github=new a("github",{fontCharacter:"\\ea84"}),a.terminal=new a("terminal",{fontCharacter:"\\ea85"}),a.console=new a("console",{fontCharacter:"\\ea85"}),a.repl=new a("repl",{fontCharacter:"\\ea85"}),a.zap=new a("zap",{fontCharacter:"\\ea86"}),a.symbolEvent=new a("symbol-event",{fontCharacter:"\\ea86"}),a.error=new a("error",{fontCharacter:"\\ea87"}),a.stop=new a("stop",{fontCharacter:"\\ea87"}),a.variable=new a("variable",{fontCharacter:"\\ea88"}),a.symbolVariable=new a("symbol-variable",{fontCharacter:"\\ea88"}),a.array=new a("array",{fontCharacter:"\\ea8a"}),a.symbolArray=new a("symbol-array",{fontCharacter:"\\ea8a"}),a.symbolModule=new a("symbol-module",{fontCharacter:"\\ea8b"}),a.symbolPackage=new a("symbol-package",{fontCharacter:"\\ea8b"}),a.symbolNamespace=new a("symbol-namespace",{fontCharacter:"\\ea8b"}),a.symbolObject=new a("symbol-object",{fontCharacter:"\\ea8b"}),a.symbolMethod=new a("symbol-method",{fontCharacter:"\\ea8c"}),a.symbolFunction=new a("symbol-function",{fontCharacter:"\\ea8c"}),a.symbolConstructor=new a("symbol-constructor",{fontCharacter:"\\ea8c"}),a.symbolBoolean=new a("symbol-boolean",{fontCharacter:"\\ea8f"}),a.symbolNull=new a("symbol-null",{fontCharacter:"\\ea8f"}),a.symbolNumeric=new a("symbol-numeric",{fontCharacter:"\\ea90"}),a.symbolNumber=new a("symbol-number",{fontCharacter:"\\ea90"}),a.symbolStructure=new a("symbol-structure",{fontCharacter:"\\ea91"}),a.symbolStruct=new a("symbol-struct",{fontCharacter:"\\ea91"}),a.symbolParameter=new a("symbol-parameter",{fontCharacter:"\\ea92"}),a.symbolTypeParameter=new a("symbol-type-parameter",{fontCharacter:"\\ea92"}),a.symbolKey=new a("symbol-key",{fontCharacter:"\\ea93"}),a.symbolText=new a("symbol-text",{fontCharacter:"\\ea93"}),a.symbolReference=new a("symbol-reference",{fontCharacter:"\\ea94"}),a.goToFile=new a("go-to-file",{fontCharacter:"\\ea94"}),a.symbolEnum=new a("symbol-enum",{fontCharacter:"\\ea95"}),a.symbolValue=new a("symbol-value",{fontCharacter:"\\ea95"}),a.symbolRuler=new a("symbol-ruler",{fontCharacter:"\\ea96"}),a.symbolUnit=new a("symbol-unit",{fontCharacter:"\\ea96"}),a.activateBreakpoints=new a("activate-breakpoints",{fontCharacter:"\\ea97"}),a.archive=new a("archive",{fontCharacter:"\\ea98"}),a.arrowBoth=new a("arrow-both",{fontCharacter:"\\ea99"}),a.arrowDown=new a("arrow-down",{fontCharacter:"\\ea9a"}),a.arrowLeft=new a("arrow-left",{fontCharacter:"\\ea9b"}),a.arrowRight=new a("arrow-right",{fontCharacter:"\\ea9c"}),a.arrowSmallDown=new a("arrow-small-down",{fontCharacter:"\\ea9d"}),a.arrowSmallLeft=new a("arrow-small-left",{fontCharacter:"\\ea9e"}),a.arrowSmallRight=new a("arrow-small-right",{fontCharacter:"\\ea9f"}),a.arrowSmallUp=new a("arrow-small-up",{fontCharacter:"\\eaa0"}),a.arrowUp=new a("arrow-up",{fontCharacter:"\\eaa1"}),a.bell=new a("bell",{fontCharacter:"\\eaa2"}),a.bold=new a("bold",{fontCharacter:"\\eaa3"}),a.book=new a("book",{fontCharacter:"\\eaa4"}),a.bookmark=new a("bookmark",{fontCharacter:"\\eaa5"}),a.debugBreakpointConditionalUnverified=new a("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),a.debugBreakpointConditional=new a("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),a.debugBreakpointConditionalDisabled=new a("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),a.debugBreakpointDataUnverified=new a("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),a.debugBreakpointData=new a("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),a.debugBreakpointDataDisabled=new a("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),a.debugBreakpointLogUnverified=new a("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),a.debugBreakpointLog=new a("debug-breakpoint-log",{fontCharacter:"\\eaab"}),a.debugBreakpointLogDisabled=new a("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),a.briefcase=new a("briefcase",{fontCharacter:"\\eaac"}),a.broadcast=new a("broadcast",{fontCharacter:"\\eaad"}),a.browser=new a("browser",{fontCharacter:"\\eaae"}),a.bug=new a("bug",{fontCharacter:"\\eaaf"}),a.calendar=new a("calendar",{fontCharacter:"\\eab0"}),a.caseSensitive=new a("case-sensitive",{fontCharacter:"\\eab1"}),a.check=new a("check",{fontCharacter:"\\eab2"}),a.checklist=new a("checklist",{fontCharacter:"\\eab3"}),a.chevronDown=new a("chevron-down",{fontCharacter:"\\eab4"}),a.dropDownButton=new a("drop-down-button",a.chevronDown.definition),a.chevronLeft=new a("chevron-left",{fontCharacter:"\\eab5"}),a.chevronRight=new a("chevron-right",{fontCharacter:"\\eab6"}),a.chevronUp=new a("chevron-up",{fontCharacter:"\\eab7"}),a.chromeClose=new a("chrome-close",{fontCharacter:"\\eab8"}),a.chromeMaximize=new a("chrome-maximize",{fontCharacter:"\\eab9"}),a.chromeMinimize=new a("chrome-minimize",{fontCharacter:"\\eaba"}),a.chromeRestore=new a("chrome-restore",{fontCharacter:"\\eabb"}),a.circleOutline=new a("circle-outline",{fontCharacter:"\\eabc"}),a.debugBreakpointUnverified=new a("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),a.circleSlash=new a("circle-slash",{fontCharacter:"\\eabd"}),a.circuitBoard=new a("circuit-board",{fontCharacter:"\\eabe"}),a.clearAll=new a("clear-all",{fontCharacter:"\\eabf"}),a.clippy=new a("clippy",{fontCharacter:"\\eac0"}),a.closeAll=new a("close-all",{fontCharacter:"\\eac1"}),a.cloudDownload=new a("cloud-download",{fontCharacter:"\\eac2"}),a.cloudUpload=new a("cloud-upload",{fontCharacter:"\\eac3"}),a.code=new a("code",{fontCharacter:"\\eac4"}),a.collapseAll=new a("collapse-all",{fontCharacter:"\\eac5"}),a.colorMode=new a("color-mode",{fontCharacter:"\\eac6"}),a.commentDiscussion=new a("comment-discussion",{fontCharacter:"\\eac7"}),a.compareChanges=new a("compare-changes",{fontCharacter:"\\eafd"}),a.creditCard=new a("credit-card",{fontCharacter:"\\eac9"}),a.dash=new a("dash",{fontCharacter:"\\eacc"}),a.dashboard=new a("dashboard",{fontCharacter:"\\eacd"}),a.database=new a("database",{fontCharacter:"\\eace"}),a.debugContinue=new a("debug-continue",{fontCharacter:"\\eacf"}),a.debugDisconnect=new a("debug-disconnect",{fontCharacter:"\\ead0"}),a.debugPause=new a("debug-pause",{fontCharacter:"\\ead1"}),a.debugRestart=new a("debug-restart",{fontCharacter:"\\ead2"}),a.debugStart=new a("debug-start",{fontCharacter:"\\ead3"}),a.debugStepInto=new a("debug-step-into",{fontCharacter:"\\ead4"}),a.debugStepOut=new a("debug-step-out",{fontCharacter:"\\ead5"}),a.debugStepOver=new a("debug-step-over",{fontCharacter:"\\ead6"}),a.debugStop=new a("debug-stop",{fontCharacter:"\\ead7"}),a.debug=new a("debug",{fontCharacter:"\\ead8"}),a.deviceCameraVideo=new a("device-camera-video",{fontCharacter:"\\ead9"}),a.deviceCamera=new a("device-camera",{fontCharacter:"\\eada"}),a.deviceMobile=new a("device-mobile",{fontCharacter:"\\eadb"}),a.diffAdded=new a("diff-added",{fontCharacter:"\\eadc"}),a.diffIgnored=new a("diff-ignored",{fontCharacter:"\\eadd"}),a.diffModified=new a("diff-modified",{fontCharacter:"\\eade"}),a.diffRemoved=new a("diff-removed",{fontCharacter:"\\eadf"}),a.diffRenamed=new a("diff-renamed",{fontCharacter:"\\eae0"}),a.diff=new a("diff",{fontCharacter:"\\eae1"}),a.discard=new a("discard",{fontCharacter:"\\eae2"}),a.editorLayout=new a("editor-layout",{fontCharacter:"\\eae3"}),a.emptyWindow=new a("empty-window",{fontCharacter:"\\eae4"}),a.exclude=new a("exclude",{fontCharacter:"\\eae5"}),a.extensions=new a("extensions",{fontCharacter:"\\eae6"}),a.eyeClosed=new a("eye-closed",{fontCharacter:"\\eae7"}),a.fileBinary=new a("file-binary",{fontCharacter:"\\eae8"}),a.fileCode=new a("file-code",{fontCharacter:"\\eae9"}),a.fileMedia=new a("file-media",{fontCharacter:"\\eaea"}),a.filePdf=new a("file-pdf",{fontCharacter:"\\eaeb"}),a.fileSubmodule=new a("file-submodule",{fontCharacter:"\\eaec"}),a.fileSymlinkDirectory=new a("file-symlink-directory",{fontCharacter:"\\eaed"}),a.fileSymlinkFile=new a("file-symlink-file",{fontCharacter:"\\eaee"}),a.fileZip=new a("file-zip",{fontCharacter:"\\eaef"}),a.files=new a("files",{fontCharacter:"\\eaf0"}),a.filter=new a("filter",{fontCharacter:"\\eaf1"}),a.flame=new a("flame",{fontCharacter:"\\eaf2"}),a.foldDown=new a("fold-down",{fontCharacter:"\\eaf3"}),a.foldUp=new a("fold-up",{fontCharacter:"\\eaf4"}),a.fold=new a("fold",{fontCharacter:"\\eaf5"}),a.folderActive=new a("folder-active",{fontCharacter:"\\eaf6"}),a.folderOpened=new a("folder-opened",{fontCharacter:"\\eaf7"}),a.gear=new a("gear",{fontCharacter:"\\eaf8"}),a.gift=new a("gift",{fontCharacter:"\\eaf9"}),a.gistSecret=new a("gist-secret",{fontCharacter:"\\eafa"}),a.gist=new a("gist",{fontCharacter:"\\eafb"}),a.gitCommit=new a("git-commit",{fontCharacter:"\\eafc"}),a.gitCompare=new a("git-compare",{fontCharacter:"\\eafd"}),a.gitMerge=new a("git-merge",{fontCharacter:"\\eafe"}),a.githubAction=new a("github-action",{fontCharacter:"\\eaff"}),a.githubAlt=new a("github-alt",{fontCharacter:"\\eb00"}),a.globe=new a("globe",{fontCharacter:"\\eb01"}),a.grabber=new a("grabber",{fontCharacter:"\\eb02"}),a.graph=new a("graph",{fontCharacter:"\\eb03"}),a.gripper=new a("gripper",{fontCharacter:"\\eb04"}),a.heart=new a("heart",{fontCharacter:"\\eb05"}),a.home=new a("home",{fontCharacter:"\\eb06"}),a.horizontalRule=new a("horizontal-rule",{fontCharacter:"\\eb07"}),a.hubot=new a("hubot",{fontCharacter:"\\eb08"}),a.inbox=new a("inbox",{fontCharacter:"\\eb09"}),a.issueClosed=new a("issue-closed",{fontCharacter:"\\eba4"}),a.issueReopened=new a("issue-reopened",{fontCharacter:"\\eb0b"}),a.issues=new a("issues",{fontCharacter:"\\eb0c"}),a.italic=new a("italic",{fontCharacter:"\\eb0d"}),a.jersey=new a("jersey",{fontCharacter:"\\eb0e"}),a.json=new a("json",{fontCharacter:"\\eb0f"}),a.kebabVertical=new a("kebab-vertical",{fontCharacter:"\\eb10"}),a.key=new a("key",{fontCharacter:"\\eb11"}),a.law=new a("law",{fontCharacter:"\\eb12"}),a.lightbulbAutofix=new a("lightbulb-autofix",{fontCharacter:"\\eb13"}),a.linkExternal=new a("link-external",{fontCharacter:"\\eb14"}),a.link=new a("link",{fontCharacter:"\\eb15"}),a.listOrdered=new a("list-ordered",{fontCharacter:"\\eb16"}),a.listUnordered=new a("list-unordered",{fontCharacter:"\\eb17"}),a.liveShare=new a("live-share",{fontCharacter:"\\eb18"}),a.loading=new a("loading",{fontCharacter:"\\eb19"}),a.location=new a("location",{fontCharacter:"\\eb1a"}),a.mailRead=new a("mail-read",{fontCharacter:"\\eb1b"}),a.mail=new a("mail",{fontCharacter:"\\eb1c"}),a.markdown=new a("markdown",{fontCharacter:"\\eb1d"}),a.megaphone=new a("megaphone",{fontCharacter:"\\eb1e"}),a.mention=new a("mention",{fontCharacter:"\\eb1f"}),a.milestone=new a("milestone",{fontCharacter:"\\eb20"}),a.mortarBoard=new a("mortar-board",{fontCharacter:"\\eb21"}),a.move=new a("move",{fontCharacter:"\\eb22"}),a.multipleWindows=new a("multiple-windows",{fontCharacter:"\\eb23"}),a.mute=new a("mute",{fontCharacter:"\\eb24"}),a.noNewline=new a("no-newline",{fontCharacter:"\\eb25"}),a.note=new a("note",{fontCharacter:"\\eb26"}),a.octoface=new a("octoface",{fontCharacter:"\\eb27"}),a.openPreview=new a("open-preview",{fontCharacter:"\\eb28"}),a.package_=new a("package",{fontCharacter:"\\eb29"}),a.paintcan=new a("paintcan",{fontCharacter:"\\eb2a"}),a.pin=new a("pin",{fontCharacter:"\\eb2b"}),a.play=new a("play",{fontCharacter:"\\eb2c"}),a.run=new a("run",{fontCharacter:"\\eb2c"}),a.plug=new a("plug",{fontCharacter:"\\eb2d"}),a.preserveCase=new a("preserve-case",{fontCharacter:"\\eb2e"}),a.preview=new a("preview",{fontCharacter:"\\eb2f"}),a.project=new a("project",{fontCharacter:"\\eb30"}),a.pulse=new a("pulse",{fontCharacter:"\\eb31"}),a.question=new a("question",{fontCharacter:"\\eb32"}),a.quote=new a("quote",{fontCharacter:"\\eb33"}),a.radioTower=new a("radio-tower",{fontCharacter:"\\eb34"}),a.reactions=new a("reactions",{fontCharacter:"\\eb35"}),a.references=new a("references",{fontCharacter:"\\eb36"}),a.refresh=new a("refresh",{fontCharacter:"\\eb37"}),a.regex=new a("regex",{fontCharacter:"\\eb38"}),a.remoteExplorer=new a("remote-explorer",{fontCharacter:"\\eb39"}),a.remote=new a("remote",{fontCharacter:"\\eb3a"}),a.remove=new a("remove",{fontCharacter:"\\eb3b"}),a.replaceAll=new a("replace-all",{fontCharacter:"\\eb3c"}),a.replace=new a("replace",{fontCharacter:"\\eb3d"}),a.repoClone=new a("repo-clone",{fontCharacter:"\\eb3e"}),a.repoForcePush=new a("repo-force-push",{fontCharacter:"\\eb3f"}),a.repoPull=new a("repo-pull",{fontCharacter:"\\eb40"}),a.repoPush=new a("repo-push",{fontCharacter:"\\eb41"}),a.report=new a("report",{fontCharacter:"\\eb42"}),a.requestChanges=new a("request-changes",{fontCharacter:"\\eb43"}),a.rocket=new a("rocket",{fontCharacter:"\\eb44"}),a.rootFolderOpened=new a("root-folder-opened",{fontCharacter:"\\eb45"}),a.rootFolder=new a("root-folder",{fontCharacter:"\\eb46"}),a.rss=new a("rss",{fontCharacter:"\\eb47"}),a.ruby=new a("ruby",{fontCharacter:"\\eb48"}),a.saveAll=new a("save-all",{fontCharacter:"\\eb49"}),a.saveAs=new a("save-as",{fontCharacter:"\\eb4a"}),a.save=new a("save",{fontCharacter:"\\eb4b"}),a.screenFull=new a("screen-full",{fontCharacter:"\\eb4c"}),a.screenNormal=new a("screen-normal",{fontCharacter:"\\eb4d"}),a.searchStop=new a("search-stop",{fontCharacter:"\\eb4e"}),a.server=new a("server",{fontCharacter:"\\eb50"}),a.settingsGear=new a("settings-gear",{fontCharacter:"\\eb51"}),a.settings=new a("settings",{fontCharacter:"\\eb52"}),a.shield=new a("shield",{fontCharacter:"\\eb53"}),a.smiley=new a("smiley",{fontCharacter:"\\eb54"}),a.sortPrecedence=new a("sort-precedence",{fontCharacter:"\\eb55"}),a.splitHorizontal=new a("split-horizontal",{fontCharacter:"\\eb56"}),a.splitVertical=new a("split-vertical",{fontCharacter:"\\eb57"}),a.squirrel=new a("squirrel",{fontCharacter:"\\eb58"}),a.starFull=new a("star-full",{fontCharacter:"\\eb59"}),a.starHalf=new a("star-half",{fontCharacter:"\\eb5a"}),a.symbolClass=new a("symbol-class",{fontCharacter:"\\eb5b"}),a.symbolColor=new a("symbol-color",{fontCharacter:"\\eb5c"}),a.symbolCustomColor=new a("symbol-customcolor",{fontCharacter:"\\eb5c"}),a.symbolConstant=new a("symbol-constant",{fontCharacter:"\\eb5d"}),a.symbolEnumMember=new a("symbol-enum-member",{fontCharacter:"\\eb5e"}),a.symbolField=new a("symbol-field",{fontCharacter:"\\eb5f"}),a.symbolFile=new a("symbol-file",{fontCharacter:"\\eb60"}),a.symbolInterface=new a("symbol-interface",{fontCharacter:"\\eb61"}),a.symbolKeyword=new a("symbol-keyword",{fontCharacter:"\\eb62"}),a.symbolMisc=new a("symbol-misc",{fontCharacter:"\\eb63"}),a.symbolOperator=new a("symbol-operator",{fontCharacter:"\\eb64"}),a.symbolProperty=new a("symbol-property",{fontCharacter:"\\eb65"}),a.wrench=new a("wrench",{fontCharacter:"\\eb65"}),a.wrenchSubaction=new a("wrench-subaction",{fontCharacter:"\\eb65"}),a.symbolSnippet=new a("symbol-snippet",{fontCharacter:"\\eb66"}),a.tasklist=new a("tasklist",{fontCharacter:"\\eb67"}),a.telescope=new a("telescope",{fontCharacter:"\\eb68"}),a.textSize=new a("text-size",{fontCharacter:"\\eb69"}),a.threeBars=new a("three-bars",{fontCharacter:"\\eb6a"}),a.thumbsdown=new a("thumbsdown",{fontCharacter:"\\eb6b"}),a.thumbsup=new a("thumbsup",{fontCharacter:"\\eb6c"}),a.tools=new a("tools",{fontCharacter:"\\eb6d"}),a.triangleDown=new a("triangle-down",{fontCharacter:"\\eb6e"}),a.triangleLeft=new a("triangle-left",{fontCharacter:"\\eb6f"}),a.triangleRight=new a("triangle-right",{fontCharacter:"\\eb70"}),a.triangleUp=new a("triangle-up",{fontCharacter:"\\eb71"}),a.twitter=new a("twitter",{fontCharacter:"\\eb72"}),a.unfold=new a("unfold",{fontCharacter:"\\eb73"}),a.unlock=new a("unlock",{fontCharacter:"\\eb74"}),a.unmute=new a("unmute",{fontCharacter:"\\eb75"}),a.unverified=new a("unverified",{fontCharacter:"\\eb76"}),a.verified=new a("verified",{fontCharacter:"\\eb77"}),a.versions=new a("versions",{fontCharacter:"\\eb78"}),a.vmActive=new a("vm-active",{fontCharacter:"\\eb79"}),a.vmOutline=new a("vm-outline",{fontCharacter:"\\eb7a"}),a.vmRunning=new a("vm-running",{fontCharacter:"\\eb7b"}),a.watch=new a("watch",{fontCharacter:"\\eb7c"}),a.whitespace=new a("whitespace",{fontCharacter:"\\eb7d"}),a.wholeWord=new a("whole-word",{fontCharacter:"\\eb7e"}),a.window=new a("window",{fontCharacter:"\\eb7f"}),a.wordWrap=new a("word-wrap",{fontCharacter:"\\eb80"}),a.zoomIn=new a("zoom-in",{fontCharacter:"\\eb81"}),a.zoomOut=new a("zoom-out",{fontCharacter:"\\eb82"}),a.listFilter=new a("list-filter",{fontCharacter:"\\eb83"}),a.listFlat=new a("list-flat",{fontCharacter:"\\eb84"}),a.listSelection=new a("list-selection",{fontCharacter:"\\eb85"}),a.selection=new a("selection",{fontCharacter:"\\eb85"}),a.listTree=new a("list-tree",{fontCharacter:"\\eb86"}),a.debugBreakpointFunctionUnverified=new a("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),a.debugBreakpointFunction=new a("debug-breakpoint-function",{fontCharacter:"\\eb88"}),a.debugBreakpointFunctionDisabled=new a("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),a.debugStackframeActive=new a("debug-stackframe-active",{fontCharacter:"\\eb89"}),a.debugStackframeDot=new a("debug-stackframe-dot",{fontCharacter:"\\eb8a"}),a.debugStackframe=new a("debug-stackframe",{fontCharacter:"\\eb8b"}),a.debugStackframeFocused=new a("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),a.debugBreakpointUnsupported=new a("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),a.symbolString=new a("symbol-string",{fontCharacter:"\\eb8d"}),a.debugReverseContinue=new a("debug-reverse-continue",{fontCharacter:"\\eb8e"}),a.debugStepBack=new a("debug-step-back",{fontCharacter:"\\eb8f"}),a.debugRestartFrame=new a("debug-restart-frame",{fontCharacter:"\\eb90"}),a.callIncoming=new a("call-incoming",{fontCharacter:"\\eb92"}),a.callOutgoing=new a("call-outgoing",{fontCharacter:"\\eb93"}),a.menu=new a("menu",{fontCharacter:"\\eb94"}),a.expandAll=new a("expand-all",{fontCharacter:"\\eb95"}),a.feedback=new a("feedback",{fontCharacter:"\\eb96"}),a.groupByRefType=new a("group-by-ref-type",{fontCharacter:"\\eb97"}),a.ungroupByRefType=new a("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),a.account=new a("account",{fontCharacter:"\\eb99"}),a.bellDot=new a("bell-dot",{fontCharacter:"\\eb9a"}),a.debugConsole=new a("debug-console",{fontCharacter:"\\eb9b"}),a.library=new a("library",{fontCharacter:"\\eb9c"}),a.output=new a("output",{fontCharacter:"\\eb9d"}),a.runAll=new a("run-all",{fontCharacter:"\\eb9e"}),a.syncIgnored=new a("sync-ignored",{fontCharacter:"\\eb9f"}),a.pinned=new a("pinned",{fontCharacter:"\\eba0"}),a.githubInverted=new a("github-inverted",{fontCharacter:"\\eba1"}),a.debugAlt=new a("debug-alt",{fontCharacter:"\\eb91"}),a.serverProcess=new a("server-process",{fontCharacter:"\\eba2"}),a.serverEnvironment=new a("server-environment",{fontCharacter:"\\eba3"}),a.pass=new a("pass",{fontCharacter:"\\eba4"}),a.stopCircle=new a("stop-circle",{fontCharacter:"\\eba5"}),a.playCircle=new a("play-circle",{fontCharacter:"\\eba6"}),a.record=new a("record",{fontCharacter:"\\eba7"}),a.debugAltSmall=new a("debug-alt-small",{fontCharacter:"\\eba8"}),a.vmConnect=new a("vm-connect",{fontCharacter:"\\eba9"}),a.cloud=new a("cloud",{fontCharacter:"\\ebaa"}),a.merge=new a("merge",{fontCharacter:"\\ebab"}),a.exportIcon=new a("export",{fontCharacter:"\\ebac"}),a.graphLeft=new a("graph-left",{fontCharacter:"\\ebad"}),a.magnet=new a("magnet",{fontCharacter:"\\ebae"}),a.notebook=new a("notebook",{fontCharacter:"\\ebaf"}),a.redo=new a("redo",{fontCharacter:"\\ebb0"}),a.checkAll=new a("check-all",{fontCharacter:"\\ebb1"}),a.pinnedDirty=new a("pinned-dirty",{fontCharacter:"\\ebb2"}),a.passFilled=new a("pass-filled",{fontCharacter:"\\ebb3"}),a.circleLargeFilled=new a("circle-large-filled",{fontCharacter:"\\ebb4"}),a.circleLargeOutline=new a("circle-large-outline",{fontCharacter:"\\ebb5"}),a.combine=new a("combine",{fontCharacter:"\\ebb6"}),a.gather=new a("gather",{fontCharacter:"\\ebb6"}),a.table=new a("table",{fontCharacter:"\\ebb7"}),a.variableGroup=new a("variable-group",{fontCharacter:"\\ebb8"}),a.typeHierarchy=new a("type-hierarchy",{fontCharacter:"\\ebb9"}),a.typeHierarchySub=new a("type-hierarchy-sub",{fontCharacter:"\\ebba"}),a.typeHierarchySuper=new a("type-hierarchy-super",{fontCharacter:"\\ebbb"}),a.gitPullRequestCreate=new a("git-pull-request-create",{fontCharacter:"\\ebbc"}),a.runAbove=new a("run-above",{fontCharacter:"\\ebbd"}),a.runBelow=new a("run-below",{fontCharacter:"\\ebbe"}),a.notebookTemplate=new a("notebook-template",{fontCharacter:"\\ebbf"}),a.debugRerun=new a("debug-rerun",{fontCharacter:"\\ebc0"}),a.workspaceTrusted=new a("workspace-trusted",{fontCharacter:"\\ebc1"}),a.workspaceUntrusted=new a("workspace-untrusted",{fontCharacter:"\\ebc2"}),a.workspaceUnspecified=new a("workspace-unspecified",{fontCharacter:"\\ebc3"}),a.terminalCmd=new a("terminal-cmd",{fontCharacter:"\\ebc4"}),a.terminalDebian=new a("terminal-debian",{fontCharacter:"\\ebc5"}),a.terminalLinux=new a("terminal-linux",{fontCharacter:"\\ebc6"}),a.terminalPowershell=new a("terminal-powershell",{fontCharacter:"\\ebc7"}),a.terminalTmux=new a("terminal-tmux",{fontCharacter:"\\ebc8"}),a.terminalUbuntu=new a("terminal-ubuntu",{fontCharacter:"\\ebc9"}),a.terminalBash=new a("terminal-bash",{fontCharacter:"\\ebca"}),a.arrowSwap=new a("arrow-swap",{fontCharacter:"\\ebcb"}),a.copy=new a("copy",{fontCharacter:"\\ebcc"}),a.personAdd=new a("person-add",{fontCharacter:"\\ebcd"}),a.filterFilled=new a("filter-filled",{fontCharacter:"\\ebce"}),a.wand=new a("wand",{fontCharacter:"\\ebcf"}),a.debugLineByLine=new a("debug-line-by-line",{fontCharacter:"\\ebd0"}),a.inspect=new a("inspect",{fontCharacter:"\\ebd1"}),a.layers=new a("layers",{fontCharacter:"\\ebd2"}),a.layersDot=new a("layers-dot",{fontCharacter:"\\ebd3"}),a.layersActive=new a("layers-active",{fontCharacter:"\\ebd4"}),a.compass=new a("compass",{fontCharacter:"\\ebd5"}),a.compassDot=new a("compass-dot",{fontCharacter:"\\ebd6"}),a.compassActive=new a("compass-active",{fontCharacter:"\\ebd7"}),a.azure=new a("azure",{fontCharacter:"\\ebd8"}),a.issueDraft=new a("issue-draft",{fontCharacter:"\\ebd9"}),a.gitPullRequestClosed=new a("git-pull-request-closed",{fontCharacter:"\\ebda"}),a.gitPullRequestDraft=new a("git-pull-request-draft",{fontCharacter:"\\ebdb"}),a.debugAll=new a("debug-all",{fontCharacter:"\\ebdc"}),a.debugCoverage=new a("debug-coverage",{fontCharacter:"\\ebdd"}),a.runErrors=new a("run-errors",{fontCharacter:"\\ebde"}),a.folderLibrary=new a("folder-library",{fontCharacter:"\\ebdf"}),a.debugContinueSmall=new a("debug-continue-small",{fontCharacter:"\\ebe0"}),a.beakerStop=new a("beaker-stop",{fontCharacter:"\\ebe1"}),a.graphLine=new a("graph-line",{fontCharacter:"\\ebe2"}),a.graphScatter=new a("graph-scatter",{fontCharacter:"\\ebe3"}),a.pieChart=new a("pie-chart",{fontCharacter:"\\ebe4"}),a.bracket=new a("bracket",a.json.definition),a.bracketDot=new a("bracket-dot",{fontCharacter:"\\ebe5"}),a.bracketError=new a("bracket-error",{fontCharacter:"\\ebe6"}),a.lockSmall=new a("lock-small",{fontCharacter:"\\ebe7"}),a.azureDevops=new a("azure-devops",{fontCharacter:"\\ebe8"}),a.verifiedFilled=new a("verified-filled",{fontCharacter:"\\ebe9"}),a.newLine=new a("newline",{fontCharacter:"\\ebea"}),a.layout=new a("layout",{fontCharacter:"\\ebeb"}),a.layoutActivitybarLeft=new a("layout-activitybar-left",{fontCharacter:"\\ebec"}),a.layoutActivitybarRight=new a("layout-activitybar-right",{fontCharacter:"\\ebed"}),a.layoutPanelLeft=new a("layout-panel-left",{fontCharacter:"\\ebee"}),a.layoutPanelCenter=new a("layout-panel-center",{fontCharacter:"\\ebef"}),a.layoutPanelJustify=new a("layout-panel-justify",{fontCharacter:"\\ebf0"}),a.layoutPanelRight=new a("layout-panel-right",{fontCharacter:"\\ebf1"}),a.layoutPanel=new a("layout-panel",{fontCharacter:"\\ebf2"}),a.layoutSidebarLeft=new a("layout-sidebar-left",{fontCharacter:"\\ebf3"}),a.layoutSidebarRight=new a("layout-sidebar-right",{fontCharacter:"\\ebf4"}),a.layoutStatusbar=new a("layout-statusbar",{fontCharacter:"\\ebf5"}),a.layoutMenubar=new a("layout-menubar",{fontCharacter:"\\ebf6"}),a.layoutCentered=new a("layout-centered",{fontCharacter:"\\ebf7"}),a.target=new a("target",{fontCharacter:"\\ebf8"}),a.indent=new a("indent",{fontCharacter:"\\ebf9"}),a.recordSmall=new a("record-small",{fontCharacter:"\\ebfa"}),a.errorSmall=new a("error-small",{fontCharacter:"\\ebfb"}),a.arrowCircleDown=new a("arrow-circle-down",{fontCharacter:"\\ebfc"}),a.arrowCircleLeft=new a("arrow-circle-left",{fontCharacter:"\\ebfd"}),a.arrowCircleRight=new a("arrow-circle-right",{fontCharacter:"\\ebfe"}),a.arrowCircleUp=new a("arrow-circle-up",{fontCharacter:"\\ebff"}),a.dialogError=new a("dialog-error",a.error.definition),a.dialogWarning=new a("dialog-warning",a.warning.definition),a.dialogInfo=new a("dialog-info",a.info.definition),a.dialogClose=new a("dialog-close",a.close.definition),a.treeItemExpanded=new a("tree-item-expanded",a.chevronDown.definition),a.treeFilterOnTypeOn=new a("tree-filter-on-type-on",a.listFilter.definition),a.treeFilterOnTypeOff=new a("tree-filter-on-type-off",a.listSelection.definition),a.treeFilterClear=new a("tree-filter-clear",a.close.definition),a.treeItemLoading=new a("tree-item-loading",a.loading.definition),a.menuSelection=new a("menu-selection",a.check.definition),a.menuSubmenu=new a("menu-submenu",a.chevronRight.definition),a.menuBarMore=new a("menubar-more",a.more.definition),a.scrollbarButtonLeft=new a("scrollbar-button-left",a.triangleLeft.definition),a.scrollbarButtonRight=new a("scrollbar-button-right",a.triangleRight.definition),a.scrollbarButtonUp=new a("scrollbar-button-up",a.triangleUp.definition),a.scrollbarButtonDown=new a("scrollbar-button-down",a.triangleDown.definition),a.toolBarMore=new a("toolbar-more",a.more.definition),a.quickInputBack=new a("quick-input-back",a.arrowLeft.definition);var Vn;(function(e){e.iconNameSegment="[A-Za-z0-9]+",e.iconNameExpression="[A-Za-z0-9-]+",e.iconModifierExpression="~[A-Za-z]+",e.iconNameCharacter="[A-Za-z0-9~-]";const t=new RegExp(`^(${e.iconNameExpression})(${e.iconModifierExpression})?$`);function r(s){if(s instanceof a)return["codicon","codicon-"+s.id];const o=t.exec(s.id);if(!o)return r(a.error);let[,l,u]=o;const c=["codicon","codicon-"+l];return u&&c.push("codicon-modifier-"+u.substr(1)),c}e.asClassNameArray=r;function n(s){return r(s).join(" ")}e.asClassName=n;function i(s){return"."+r(s).join(".")}e.asCSSSelector=i})(Vn||(Vn={}));class Bs{constructor(t,r,n){this._tokenBrand=void 0,this.offset=t,this.type=r,this.language=n}toString(){return"("+this.offset+", "+this.type+")"}}var In;(function(e){const t=new Map;t.set(0,a.symbolMethod),t.set(1,a.symbolFunction),t.set(2,a.symbolConstructor),t.set(3,a.symbolField),t.set(4,a.symbolVariable),t.set(5,a.symbolClass),t.set(6,a.symbolStruct),t.set(7,a.symbolInterface),t.set(8,a.symbolModule),t.set(9,a.symbolProperty),t.set(10,a.symbolEvent),t.set(11,a.symbolOperator),t.set(12,a.symbolUnit),t.set(13,a.symbolValue),t.set(15,a.symbolEnum),t.set(14,a.symbolConstant),t.set(15,a.symbolEnum),t.set(16,a.symbolEnumMember),t.set(17,a.symbolKeyword),t.set(27,a.symbolSnippet),t.set(18,a.symbolText),t.set(19,a.symbolColor),t.set(20,a.symbolFile),t.set(21,a.symbolReference),t.set(22,a.symbolCustomColor),t.set(23,a.symbolFolder),t.set(24,a.symbolTypeParameter),t.set(25,a.account),t.set(26,a.issues);function r(s){let o=t.get(s);return o||(console.info("No codicon found for CompletionItemKind "+s),o=a.symbolProperty),o}e.toIcon=r;const n=new Map;n.set("method",0),n.set("function",1),n.set("constructor",2),n.set("field",3),n.set("variable",4),n.set("class",5),n.set("struct",6),n.set("interface",7),n.set("module",8),n.set("property",9),n.set("event",10),n.set("operator",11),n.set("unit",12),n.set("value",13),n.set("constant",14),n.set("enum",15),n.set("enum-member",16),n.set("enumMember",16),n.set("keyword",17),n.set("snippet",27),n.set("text",18),n.set("color",19),n.set("file",20),n.set("reference",21),n.set("customcolor",22),n.set("folder",23),n.set("type-parameter",24),n.set("typeParameter",24),n.set("account",25),n.set("issue",26);function i(s,o){let l=n.get(s);return typeof l=="undefined"&&!o&&(l=9),l}e.fromString=i})(In||(In={}));var Rn;(function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"})(Rn||(Rn={}));var Dn;(function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"})(Dn||(Dn={}));var On;(function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"})(On||(On={}));var Un;(function(e){const t=new Map;t.set(0,a.symbolFile),t.set(1,a.symbolModule),t.set(2,a.symbolNamespace),t.set(3,a.symbolPackage),t.set(4,a.symbolClass),t.set(5,a.symbolMethod),t.set(6,a.symbolProperty),t.set(7,a.symbolField),t.set(8,a.symbolConstructor),t.set(9,a.symbolEnum),t.set(10,a.symbolInterface),t.set(11,a.symbolFunction),t.set(12,a.symbolVariable),t.set(13,a.symbolConstant),t.set(14,a.symbolString),t.set(15,a.symbolNumber),t.set(16,a.symbolBoolean),t.set(17,a.symbolArray),t.set(18,a.symbolObject),t.set(19,a.symbolKey),t.set(20,a.symbolNull),t.set(21,a.symbolEnumMember),t.set(22,a.symbolStruct),t.set(23,a.symbolEvent),t.set(24,a.symbolOperator),t.set(25,a.symbolTypeParameter);function r(n){let i=t.get(n);return i||(console.info("No codicon found for SymbolKind "+n),i=a.symbolProperty),i}e.toIcon=r})(Un||(Un={}));var jn;(function(e){function t(r){return!r||typeof r!="object"?!1:typeof r.id=="string"&&typeof r.title=="string"}e.is=t})(jn||(jn={}));var Bn;(function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"})(Bn||(Bn={})),new Us;var $n;(function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"})($n||($n={}));var Wn;(function(e){e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"})(Wn||(Wn={}));var qn;(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"})(qn||(qn={}));var Hn;(function(e){e[e.Deprecated=1]="Deprecated"})(Hn||(Hn={}));var zn;(function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(zn||(zn={}));var Gn;(function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"})(Gn||(Gn={}));var Jn;(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"})(Jn||(Jn={}));var Zn;(function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(Zn||(Zn={}));var Xn;(function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"})(Xn||(Xn={}));var Yn;(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"})(Yn||(Yn={}));var Qn;(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.emptySelectionClipboard=32]="emptySelectionClipboard",e[e.extraEditorClassName=33]="extraEditorClassName",e[e.fastScrollSensitivity=34]="fastScrollSensitivity",e[e.find=35]="find",e[e.fixedOverflowWidgets=36]="fixedOverflowWidgets",e[e.folding=37]="folding",e[e.foldingStrategy=38]="foldingStrategy",e[e.foldingHighlight=39]="foldingHighlight",e[e.foldingImportsByDefault=40]="foldingImportsByDefault",e[e.foldingMaximumRegions=41]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=42]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=43]="fontFamily",e[e.fontInfo=44]="fontInfo",e[e.fontLigatures=45]="fontLigatures",e[e.fontSize=46]="fontSize",e[e.fontWeight=47]="fontWeight",e[e.formatOnPaste=48]="formatOnPaste",e[e.formatOnType=49]="formatOnType",e[e.glyphMargin=50]="glyphMargin",e[e.gotoLocation=51]="gotoLocation",e[e.hideCursorInOverviewRuler=52]="hideCursorInOverviewRuler",e[e.hover=53]="hover",e[e.inDiffEditor=54]="inDiffEditor",e[e.inlineSuggest=55]="inlineSuggest",e[e.letterSpacing=56]="letterSpacing",e[e.lightbulb=57]="lightbulb",e[e.lineDecorationsWidth=58]="lineDecorationsWidth",e[e.lineHeight=59]="lineHeight",e[e.lineNumbers=60]="lineNumbers",e[e.lineNumbersMinChars=61]="lineNumbersMinChars",e[e.linkedEditing=62]="linkedEditing",e[e.links=63]="links",e[e.matchBrackets=64]="matchBrackets",e[e.minimap=65]="minimap",e[e.mouseStyle=66]="mouseStyle",e[e.mouseWheelScrollSensitivity=67]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=68]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=69]="multiCursorMergeOverlapping",e[e.multiCursorModifier=70]="multiCursorModifier",e[e.multiCursorPaste=71]="multiCursorPaste",e[e.occurrencesHighlight=72]="occurrencesHighlight",e[e.overviewRulerBorder=73]="overviewRulerBorder",e[e.overviewRulerLanes=74]="overviewRulerLanes",e[e.padding=75]="padding",e[e.parameterHints=76]="parameterHints",e[e.peekWidgetDefaultFocus=77]="peekWidgetDefaultFocus",e[e.definitionLinkOpensInPeek=78]="definitionLinkOpensInPeek",e[e.quickSuggestions=79]="quickSuggestions",e[e.quickSuggestionsDelay=80]="quickSuggestionsDelay",e[e.readOnly=81]="readOnly",e[e.renameOnType=82]="renameOnType",e[e.renderControlCharacters=83]="renderControlCharacters",e[e.renderFinalNewline=84]="renderFinalNewline",e[e.renderLineHighlight=85]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=86]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=87]="renderValidationDecorations",e[e.renderWhitespace=88]="renderWhitespace",e[e.revealHorizontalRightPadding=89]="revealHorizontalRightPadding",e[e.roundedSelection=90]="roundedSelection",e[e.rulers=91]="rulers",e[e.scrollbar=92]="scrollbar",e[e.scrollBeyondLastColumn=93]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=94]="scrollBeyondLastLine",e[e.scrollPredominantAxis=95]="scrollPredominantAxis",e[e.selectionClipboard=96]="selectionClipboard",e[e.selectionHighlight=97]="selectionHighlight",e[e.selectOnLineNumbers=98]="selectOnLineNumbers",e[e.showFoldingControls=99]="showFoldingControls",e[e.showUnused=100]="showUnused",e[e.snippetSuggestions=101]="snippetSuggestions",e[e.smartSelect=102]="smartSelect",e[e.smoothScrolling=103]="smoothScrolling",e[e.stickyTabStops=104]="stickyTabStops",e[e.stopRenderingLineAfter=105]="stopRenderingLineAfter",e[e.suggest=106]="suggest",e[e.suggestFontSize=107]="suggestFontSize",e[e.suggestLineHeight=108]="suggestLineHeight",e[e.suggestOnTriggerCharacters=109]="suggestOnTriggerCharacters",e[e.suggestSelection=110]="suggestSelection",e[e.tabCompletion=111]="tabCompletion",e[e.tabIndex=112]="tabIndex",e[e.unicodeHighlighting=113]="unicodeHighlighting",e[e.unusualLineTerminators=114]="unusualLineTerminators",e[e.useShadowDOM=115]="useShadowDOM",e[e.useTabStops=116]="useTabStops",e[e.wordSeparators=117]="wordSeparators",e[e.wordWrap=118]="wordWrap",e[e.wordWrapBreakAfterCharacters=119]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=120]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=121]="wordWrapColumn",e[e.wordWrapOverride1=122]="wordWrapOverride1",e[e.wordWrapOverride2=123]="wordWrapOverride2",e[e.wrappingIndent=124]="wrappingIndent",e[e.wrappingStrategy=125]="wrappingStrategy",e[e.showDeprecated=126]="showDeprecated",e[e.inlayHints=127]="inlayHints",e[e.editorClassName=128]="editorClassName",e[e.pixelRatio=129]="pixelRatio",e[e.tabFocusMode=130]="tabFocusMode",e[e.layoutInfo=131]="layoutInfo",e[e.wrappingInfo=132]="wrappingInfo"})(Qn||(Qn={}));var Kn;(function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(Kn||(Kn={}));var ei;(function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"})(ei||(ei={}));var ti;(function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"})(ti||(ti={}));var ri;(function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"})(ri||(ri={}));var ni;(function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"})(ni||(ni={}));var ii;(function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"})(ii||(ii={}));var Tr;(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"})(Tr||(Tr={}));var Er;(function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"})(Er||(Er={}));var Fr;(function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"})(Fr||(Fr={}));var ai;(function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"})(ai||(ai={}));var si;(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"})(si||(si={}));var oi;(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"})(oi||(oi={}));var li;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"})(li||(li={}));var ui;(function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.None=2]="None"})(ui||(ui={}));var ci;(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"})(ci||(ci={}));var fi;(function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"})(fi||(fi={}));var hi;(function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"})(hi||(hi={}));var di;(function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"})(di||(di={}));var Vr;(function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"})(Vr||(Vr={}));var mi;(function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"})(mi||(mi={}));var gi;(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"})(gi||(gi={}));var pi;(function(e){e[e.Deprecated=1]="Deprecated"})(pi||(pi={}));var vi;(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"})(vi||(vi={}));var bi;(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"})(bi||(bi={}));var wi;(function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(wi||(wi={}));var yi;(function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"})(yi||(yi={}));class vt{static chord(t,r){return Os(t,r)}}vt.CtrlCmd=2048,vt.Shift=1024,vt.Alt=512,vt.WinCtrl=256;function $s(){return{editor:void 0,languages:void 0,CancellationTokenSource:Vs,Emitter:Pe,KeyCode:Tr,KeyMod:vt,Position:He,Range:ze,Selection:ce,SelectionDirection:Vr,MarkerSeverity:Er,MarkerTag:Fr,Uri:br,Token:Bs}}var Ci;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"})(Ci||(Ci={}));var _i;(function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"})(_i||(_i={}));var Si;(function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"})(Si||(Si={}));function Ws(e,t,r,n,i){if(n===0)return!0;const s=t.charCodeAt(n-1);if(e.get(s)!==0||s===13||s===10)return!0;if(i>0){const o=t.charCodeAt(n);if(e.get(o)!==0)return!0}return!1}function qs(e,t,r,n,i){if(n+i===r)return!0;const s=t.charCodeAt(n+i);if(e.get(s)!==0||s===13||s===10)return!0;if(i>0){const o=t.charCodeAt(n+i-1);if(e.get(o)!==0)return!0}return!1}function Hs(e,t,r,n,i){return Ws(e,t,r,n,i)&&qs(e,t,r,n,i)}class zs{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 n;do{if(this._prevMatchStartIndex+this._prevMatchLength===r||(n=this._searchRegex.exec(t),!n))return null;const i=n.index,s=n[0].length;if(i===this._prevMatchStartIndex&&s===this._prevMatchLength){if(s===0){Ha(t,r,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=i,this._prevMatchLength=s,!this._wordSeparators||Hs(this._wordSeparators,t,r,i,s))return n}while(n);return null}}class Gs{static computeUnicodeHighlights(t,r,n){const i=n?n.startLineNumber:1,s=n?n.endLineNumber:t.getLineCount(),o=new Ai(r),l=o.getCandidateCodePoints();let u;l==="allNonBasicAscii"?u=new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):u=new RegExp(`${Js(Array.from(l))}`,"g");const c=new zs(null,u),h=[];let f=!1,d,m=0,b=0,p=0;e:for(let g=i,N=s;g<=N;g++){const w=t.getLineContent(g),v=w.length;c.reset(0);do if(d=c.next(w),d){let S=d.index,A=d.index+d[0].length;if(S>0){const L=w.charCodeAt(S-1);gr(L)&&S--}if(A+1=L){f=!0;break e}h.push(new ze(g,S+1,g,A+1))}}while(d)}return{ranges:h,hasMore:f,ambiguousCharacterCount:m,invisibleCharacterCount:b,nonBasicAsciiCharacterCount:p}}static computeUnicodeHighlightReason(t,r){const n=new Ai(r);switch(n.shouldHighlightNonBasicASCII(t,null)){case 0:return null;case 2:return{kind:1};case 3:{const s=t.codePointAt(0),o=n.ambiguousCharacters.getPrimaryConfusable(s),l=ge.getLocales().filter(u=>!ge.getInstance(new Set([...r.allowedLocales,u])).isAmbiguous(s));return{kind:0,confusableWith:String.fromCodePoint(o),notAmbiguousInLocales:l}}case 1:return{kind:2}}}}function Js(e,t){return`[${Ua(e.map(n=>String.fromCodePoint(n)).join(""))}]`}class Ai{constructor(t){this.options=t,this.allowedCodePoints=new Set(t.allowedCodePoints),this.ambiguousCharacters=ge.getInstance(new Set(t.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const t=new Set;if(this.options.invisibleCharacters)for(const r of Ie.codePoints)Ni(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 n=t.codePointAt(0);if(this.allowedCodePoints.has(n))return 0;if(this.options.nonBasicASCII)return 1;let i=!1,s=!1;if(r)for(let o of r){const l=o.codePointAt(0),u=Ga(o);i=i||u,!u&&!this.ambiguousCharacters.isAmbiguous(l)&&!Ie.isInvisibleCharacter(l)&&(s=!0)}return!i&&s?0:this.options.invisibleCharacters&&!Ni(t)&&Ie.isInvisibleCharacter(n)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(n)?3:0}}function Ni(e){return e===" "||e===` `||e===" "}var Ge=function(e,t,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function l(h){try{c(n.next(h))}catch(f){o(f)}}function u(h){try{c(n.throw(h))}catch(f){o(f)}}function c(h){h.done?s(h.value):i(h.value).then(l,u)}c((n=n.apply(e,t||[])).next())})};class Zs extends Ss{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 n=Sr(t.column,Ls(r),this._lines[t.lineNumber-1],0);return n?new ze(t.lineNumber,n.startColumn,t.lineNumber,n.endColumn):null}words(t){const r=this._lines,n=this._wordenize.bind(this);let i=0,s="",o=0,l=[];return{*[Symbol.iterator](){for(;;)if(othis._lines.length)r=this._lines.length,n=this._lines[r-1].length+1,i=!0;else{const s=this._lines[r-1].length+1;n<1?(n=1,i=!0):n>s&&(n=s,i=!0)}return i?{lineNumber:r,column:n}:t}}class at{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 Zs(br.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,n){return Ge(this,void 0,void 0,function*(){const i=this._getModel(t);return i?Gs.computeUnicodeHighlights(i,r,n):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}})}computeDiff(t,r,n,i){return Ge(this,void 0,void 0,function*(){const s=this._getModel(t),o=this._getModel(r);if(!s||!o)return null;const l=s.getLinesContent(),u=o.getLinesContent(),h=new ys(l,u,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:n,shouldMakePrettyDiff:!0,maxComputationTime:i}).computeDiff(),f=h.changes.length>0?!1:this._modelsAreIdentical(s,o);return{quitEarly:h.quitEarly,identical:f,changes:h.changes}})}_modelsAreIdentical(t,r){const n=t.getLineCount(),i=r.getLineCount();if(n!==i)return!1;for(let s=1;s<=n;s++){const o=t.getLineContent(s),l=r.getLineContent(s);if(o!==l)return!1}return!0}computeMoreMinimalEdits(t,r){return Ge(this,void 0,void 0,function*(){const n=this._getModel(t);if(!n)return r;const i=[];let s;r=r.slice(0).sort((o,l)=>{if(o.range&&l.range)return ze.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"&&(s=u),ze.isEmpty(o)&&!l)continue;const c=n.getValueInRange(o);if(l=l.replace(/\r\n|\n|\r/g,n.eol),c===l)continue;if(Math.max(l.length,c.length)>at._diffLimit){i.push({range:o,text:l});continue}const h=ns(c,l,!1),f=n.offsetAt(ze.lift(o).getStartPosition());for(const d of h){const m=n.positionAt(f+d.originalStart),b=n.positionAt(f+d.originalStart+d.originalLength),p={text:l.substr(d.modifiedStart,d.modifiedLength),range:{startLineNumber:m.lineNumber,startColumn:m.column,endLineNumber:b.lineNumber,endColumn:b.column}};n.getValueInRange(p.range)!==p.text&&i.push(p)}}return typeof s=="number"&&i.push({eol:s,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),i})}computeLinks(t){return Ge(this,void 0,void 0,function*(){const r=this._getModel(t);return r?Fs(r):null})}textualSuggest(t,r,n,i){return Ge(this,void 0,void 0,function*(){const s=new It(!0),o=new RegExp(n,i),l=new Set;e:for(let u of t){const c=this._getModel(u);if(c){for(let h of c.words(o))if(!(h===r||!isNaN(Number(h)))&&(l.add(h),l.size>at._suggestionsLimit))break e}}return{words:Array.from(l),duration:s.elapsed()}})}computeWordRanges(t,r,n,i){return Ge(this,void 0,void 0,function*(){const s=this._getModel(t);if(!s)return Object.create(null);const o=new RegExp(n,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(mr(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(n){return Promise.reject(n)}}}at._diffLimit=1e5,at._suggestionsLimit=1e4,typeof importScripts=="function"&&(ee.monaco=$s());let Ir=!1;function Li(e){if(Ir)return;Ir=!0;const t=new ts(r=>{self.postMessage(r)},r=>new at(r,e));self.onmessage=r=>{t.onmessage(r.data)}}self.onmessage=e=>{Ir||Li(null)};/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/function Rr(e,t){t===void 0&&(t=!1);var r=e.length,n=0,i="",s=0,o=16,l=0,u=0,c=0,h=0,f=0;function d(v,S){for(var A=0,y=0;A=48&&C<=57)y=y*16+C-48;else if(C>=65&&C<=70)y=y*16+C-65+10;else if(C>=97&&C<=102)y=y*16+C-97+10;else break;n++,A++}return A=r){v+=e.substring(S,n),f=2;break}var A=e.charCodeAt(n);if(A===34){v+=e.substring(S,n),n++;break}if(A===92){if(v+=e.substring(S,n),n++,n>=r){f=2;break}var y=e.charCodeAt(n++);switch(y){case 34:v+='"';break;case 92:v+="\\";break;case 47:v+="/";break;case 98:v+="\b";break;case 102:v+="\f";break;case 110:v+=` `;break;case 114:v+="\r";break;case 116:v+=" ";break;case 117:var C=d(4,!0);C>=0?v+=String.fromCharCode(C):f=4;break;default:f=5}S=n;continue}if(A>=0&&A<=31)if(bt(A)){v+=e.substring(S,n),f=2;break}else f=6;n++}return v}function g(){if(i="",f=0,s=n,u=l,h=c,n>=r)return s=r,o=17;var v=e.charCodeAt(n);if(Dr(v)){do n++,i+=String.fromCharCode(v),v=e.charCodeAt(n);while(Dr(v));return o=15}if(bt(v))return n++,i+=String.fromCharCode(v),v===13&&e.charCodeAt(n)===10&&(n++,i+=` `),l++,c=n,o=14;switch(v){case 123:return n++,o=1;case 125:return n++,o=2;case 91:return n++,o=3;case 93:return n++,o=4;case 58:return n++,o=6;case 44:return n++,o=5;case 34:return n++,i=p(),o=10;case 47:var S=n-1;if(e.charCodeAt(n+1)===47){for(n+=2;n=12&&v<=15);return v}return{setPosition:m,getPosition:function(){return n},scan:t?w:g,getToken:function(){return o},getTokenValue:function(){return i},getTokenOffset:function(){return s},getTokenLength:function(){return n-s},getTokenStartLine:function(){return u},getTokenStartCharacter:function(){return s-h},getTokenError:function(){return f}}}function Dr(e){return e===32||e===9||e===11||e===12||e===160||e===5760||e>=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function bt(e){return e===10||e===13||e===8232||e===8233}function st(e){return e>=48&&e<=57}function Xs(e,t,r){var n,i,s,o,l;if(t){for(o=t.offset,l=o+t.length,s=o;s>0&&!ki(e,s-1);)s--;for(var u=l;uo)&&e.substring(R,B)!==P&&N.push({offset:R,length:B-R,content:P})}var v=g();if(v!==17){var S=m.getTokenOffset()+s,A=Or(d,n);w(A,s,S)}for(;v!==17;){for(var y=m.getTokenOffset()+m.getTokenLength()+s,C=g(),_="",L=!1;!h&&(C===12||C===13);){var M=m.getTokenOffset()+s;w(" ",y,M),y=m.getTokenOffset()+m.getTokenLength()+s,L=C===12,_=L?p():"",C=g()}if(C===2)v!==1&&(f--,_=p());else if(C===4)v!==3&&(f--,_=p());else{switch(v){case 3:case 1:f++,_=p();break;case 5:case 12:_=p();break;case 13:h?_=p():L||(_=" ");break;case 6:L||(_=" ");break;case 10:if(C===6){L||(_="");break}case 7:case 8:case 9:case 11:case 2:case 4:C===12||C===13?L||(_=" "):C!==5&&C!==17&&(b=!0);break;case 16:b=!0;break}h&&(C===12||C===13)&&(_=p())}C===17&&(_=r.insertFinalNewline?c:"");var E=m.getTokenOffset()+s;w(_,y,E),v=C}return N}function Or(e,t){for(var r="",n=0;n=e.offset&&t0)for(var P=n.getToken();P!==17;){if(M.indexOf(P)!==-1){N();break}else if(E.indexOf(P)!==-1)break;P=N()}}function v(L){var M=n.getTokenValue();return L?f(M):l(M),N(),!0}function S(){switch(n.getToken()){case 11:var L=n.getTokenValue(),M=Number(L);isNaN(M)&&(w(2),M=0),f(M);break;case 7:f(null);break;case 8:f(!0);break;case 9:f(!1);break;default:return!1}return N(),!0}function A(){return n.getToken()!==10?(w(3,[],[2,5]),!1):(v(!1),n.getToken()===6?(d(":"),N(),_()||w(4,[],[2,5])):w(5,[],[2,5]),!0)}function y(){o(),N();for(var L=!1;n.getToken()!==2&&n.getToken()!==17;){if(n.getToken()===5){if(L||w(4,[],[]),d(","),N(),n.getToken()===2&&g)break}else L&&w(6,[],[]);A()||w(4,[],[2,5]),L=!0}return u(),n.getToken()!==2?w(7,[2],[]):N(),!0}function C(){c(),N();for(var L=!1;n.getToken()!==4&&n.getToken()!==17;){if(n.getToken()===5){if(L||w(4,[],[]),d(","),N(),n.getToken()===4&&g)break}else L&&w(6,[],[]);_()||w(4,[],[4,5]),L=!0}return h(),n.getToken()!==4?w(8,[4],[]):N(),!0}function _(){switch(n.getToken()){case 3:return C();case 1:return y();case 10:return v(!0);default:return S()}}return N(),n.getToken()===17?r.allowEmptyContent?!0:(w(4,[],[]),!1):_()?(n.getToken()!==17&&w(9,[],[]),!0):(w(4,[],[]),!1)}var ot=Rr,ro=Ks,no=Mi,io=xi,ao=Ur;function so(e,t,r){return Xs(e,t,r)}function wt(e,t){if(e===t)return!0;if(e==null||t===null||t===void 0||typeof e!=typeof t||typeof e!="object"||Array.isArray(e)!==Array.isArray(t))return!1;var r,n;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(r=0;r0?e.lastIndexOf(t)===r:r===0?e===t:!1}function qt(e){var t="";lo(e,"(?i)")&&(e=e.substring(4),t="i");try{return new RegExp(e,t+"u")}catch(r){try{return new RegExp(e,t)}catch(n){return}}}var Pi;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647})(Pi||(Pi={}));var Ht;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647})(Ht||(Ht={}));var Ce;(function(e){function t(n,i){return n===Number.MAX_VALUE&&(n=Ht.MAX_VALUE),i===Number.MAX_VALUE&&(i=Ht.MAX_VALUE),{line:n,character:i}}e.create=t;function r(n){var i=n;return k.objectLiteral(i)&&k.uinteger(i.line)&&k.uinteger(i.character)}e.is=r})(Ce||(Ce={}));var q;(function(e){function t(n,i,s,o){if(k.uinteger(n)&&k.uinteger(i)&&k.uinteger(s)&&k.uinteger(o))return{start:Ce.create(n,i),end:Ce.create(s,o)};if(Ce.is(n)&&Ce.is(i))return{start:n,end:i};throw new Error("Range#create called with invalid arguments["+n+", "+i+", "+s+", "+o+"]")}e.create=t;function r(n){var i=n;return k.objectLiteral(i)&&Ce.is(i.start)&&Ce.is(i.end)}e.is=r})(q||(q={}));var Ct;(function(e){function t(n,i){return{uri:n,range:i}}e.create=t;function r(n){var i=n;return k.defined(i)&&q.is(i.range)&&(k.string(i.uri)||k.undefined(i.uri))}e.is=r})(Ct||(Ct={}));var Ti;(function(e){function t(n,i,s,o){return{targetUri:n,targetRange:i,targetSelectionRange:s,originSelectionRange:o}}e.create=t;function r(n){var i=n;return k.defined(i)&&q.is(i.targetRange)&&k.string(i.targetUri)&&(q.is(i.targetSelectionRange)||k.undefined(i.targetSelectionRange))&&(q.is(i.originSelectionRange)||k.undefined(i.originSelectionRange))}e.is=r})(Ti||(Ti={}));var jr;(function(e){function t(n,i,s,o){return{red:n,green:i,blue:s,alpha:o}}e.create=t;function r(n){var i=n;return k.numberRange(i.red,0,1)&&k.numberRange(i.green,0,1)&&k.numberRange(i.blue,0,1)&&k.numberRange(i.alpha,0,1)}e.is=r})(jr||(jr={}));var Ei;(function(e){function t(n,i){return{range:n,color:i}}e.create=t;function r(n){var i=n;return q.is(i.range)&&jr.is(i.color)}e.is=r})(Ei||(Ei={}));var Fi;(function(e){function t(n,i,s){return{label:n,textEdit:i,additionalTextEdits:s}}e.create=t;function r(n){var i=n;return k.string(i.label)&&(k.undefined(i.textEdit)||_e.is(i))&&(k.undefined(i.additionalTextEdits)||k.typedArray(i.additionalTextEdits,_e.is))}e.is=r})(Fi||(Fi={}));var _t;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(_t||(_t={}));var Vi;(function(e){function t(n,i,s,o,l){var u={startLine:n,endLine:i};return k.defined(s)&&(u.startCharacter=s),k.defined(o)&&(u.endCharacter=o),k.defined(l)&&(u.kind=l),u}e.create=t;function r(n){var i=n;return k.uinteger(i.startLine)&&k.uinteger(i.startLine)&&(k.undefined(i.startCharacter)||k.uinteger(i.startCharacter))&&(k.undefined(i.endCharacter)||k.uinteger(i.endCharacter))&&(k.undefined(i.kind)||k.string(i.kind))}e.is=r})(Vi||(Vi={}));var Br;(function(e){function t(n,i){return{location:n,message:i}}e.create=t;function r(n){var i=n;return k.defined(i)&&Ct.is(i.location)&&k.string(i.message)}e.is=r})(Br||(Br={}));var he;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(he||(he={}));var Ii;(function(e){e.Unnecessary=1,e.Deprecated=2})(Ii||(Ii={}));var Ri;(function(e){function t(r){var n=r;return n!=null&&k.string(n.href)}e.is=t})(Ri||(Ri={}));var Ee;(function(e){function t(n,i,s,o,l,u){var c={range:n,message:i};return k.defined(s)&&(c.severity=s),k.defined(o)&&(c.code=o),k.defined(l)&&(c.source=l),k.defined(u)&&(c.relatedInformation=u),c}e.create=t;function r(n){var i,s=n;return k.defined(s)&&q.is(s.range)&&k.string(s.message)&&(k.number(s.severity)||k.undefined(s.severity))&&(k.integer(s.code)||k.string(s.code)||k.undefined(s.code))&&(k.undefined(s.codeDescription)||k.string((i=s.codeDescription)===null||i===void 0?void 0:i.href))&&(k.string(s.source)||k.undefined(s.source))&&(k.undefined(s.relatedInformation)||k.typedArray(s.relatedInformation,Br.is))}e.is=r})(Ee||(Ee={}));var St;(function(e){function t(n,i){for(var s=[],o=2;o0&&(l.arguments=s),l}e.create=t;function r(n){var i=n;return k.defined(i)&&k.string(i.title)&&k.string(i.command)}e.is=r})(St||(St={}));var _e;(function(e){function t(s,o){return{range:s,newText:o}}e.replace=t;function r(s,o){return{range:{start:s,end:s},newText:o}}e.insert=r;function n(s){return{range:s,newText:""}}e.del=n;function i(s){var o=s;return k.objectLiteral(o)&&k.string(o.newText)&&q.is(o.range)}e.is=i})(_e||(_e={}));var lt;(function(e){function t(n,i,s){var o={label:n};return i!==void 0&&(o.needsConfirmation=i),s!==void 0&&(o.description=s),o}e.create=t;function r(n){var i=n;return i!==void 0&&k.objectLiteral(i)&&k.string(i.label)&&(k.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(k.string(i.description)||i.description===void 0)}e.is=r})(lt||(lt={}));var ne;(function(e){function t(r){var n=r;return typeof n=="string"}e.is=t})(ne||(ne={}));var Be;(function(e){function t(s,o,l){return{range:s,newText:o,annotationId:l}}e.replace=t;function r(s,o,l){return{range:{start:s,end:s},newText:o,annotationId:l}}e.insert=r;function n(s,o){return{range:s,newText:"",annotationId:o}}e.del=n;function i(s){var o=s;return _e.is(o)&&(lt.is(o.annotationId)||ne.is(o.annotationId))}e.is=i})(Be||(Be={}));var zt;(function(e){function t(n,i){return{textDocument:n,edits:i}}e.create=t;function r(n){var i=n;return k.defined(i)&&Jt.is(i.textDocument)&&Array.isArray(i.edits)}e.is=r})(zt||(zt={}));var At;(function(e){function t(n,i,s){var o={kind:"create",uri:n};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(o.options=i),s!==void 0&&(o.annotationId=s),o}e.create=t;function r(n){var i=n;return i&&i.kind==="create"&&k.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||k.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||k.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||ne.is(i.annotationId))}e.is=r})(At||(At={}));var Nt;(function(e){function t(n,i,s,o){var l={kind:"rename",oldUri:n,newUri:i};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(l.options=s),o!==void 0&&(l.annotationId=o),l}e.create=t;function r(n){var i=n;return i&&i.kind==="rename"&&k.string(i.oldUri)&&k.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||k.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||k.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||ne.is(i.annotationId))}e.is=r})(Nt||(Nt={}));var Lt;(function(e){function t(n,i,s){var o={kind:"delete",uri:n};return i!==void 0&&(i.recursive!==void 0||i.ignoreIfNotExists!==void 0)&&(o.options=i),s!==void 0&&(o.annotationId=s),o}e.create=t;function r(n){var i=n;return i&&i.kind==="delete"&&k.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||k.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||k.boolean(i.options.ignoreIfNotExists)))&&(i.annotationId===void 0||ne.is(i.annotationId))}e.is=r})(Lt||(Lt={}));var $r;(function(e){function t(r){var n=r;return n&&(n.changes!==void 0||n.documentChanges!==void 0)&&(n.documentChanges===void 0||n.documentChanges.every(function(i){return k.string(i.kind)?At.is(i)||Nt.is(i)||Lt.is(i):zt.is(i)}))}e.is=t})($r||($r={}));var Gt=function(){function e(t,r){this.edits=t,this.changeAnnotations=r}return e.prototype.insert=function(t,r,n){var i,s;if(n===void 0?i=_e.insert(t,r):ne.is(n)?(s=n,i=Be.insert(t,r,n)):(this.assertChangeAnnotations(this.changeAnnotations),s=this.changeAnnotations.manage(n),i=Be.insert(t,r,s)),this.edits.push(i),s!==void 0)return s},e.prototype.replace=function(t,r,n){var i,s;if(n===void 0?i=_e.replace(t,r):ne.is(n)?(s=n,i=Be.replace(t,r,n)):(this.assertChangeAnnotations(this.changeAnnotations),s=this.changeAnnotations.manage(n),i=Be.replace(t,r,s)),this.edits.push(i),s!==void 0)return s},e.prototype.delete=function(t,r){var n,i;if(r===void 0?n=_e.del(t):ne.is(r)?(i=r,n=Be.del(t,r)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(r),n=Be.del(t,i)),this.edits.push(n),i!==void 0)return i},e.prototype.add=function(t){this.edits.push(t)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(t){if(t===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),Di=function(){function e(t){this._annotations=t===void 0?Object.create(null):t,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(t,r){var n;if(ne.is(t)?n=t:(n=this.nextId(),r=t),this._annotations[n]!==void 0)throw new Error("Id "+n+" is already in use.");if(r===void 0)throw new Error("No annotation provided for id "+n);return this._annotations[n]=r,this._size++,n},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();(function(){function e(t){var r=this;this._textEditChanges=Object.create(null),t!==void 0?(this._workspaceEdit=t,t.documentChanges?(this._changeAnnotations=new Di(t.changeAnnotations),t.changeAnnotations=this._changeAnnotations.all(),t.documentChanges.forEach(function(n){if(zt.is(n)){var i=new Gt(n.edits,r._changeAnnotations);r._textEditChanges[n.textDocument.uri]=i}})):t.changes&&Object.keys(t.changes).forEach(function(n){var i=new Gt(t.changes[n]);r._textEditChanges[n]=i})):this._workspaceEdit={}}return Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(t){if(Jt.is(t)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var r={uri:t.uri,version:t.version},n=this._textEditChanges[r.uri];if(!n){var i=[],s={textDocument:r,edits:i};this._workspaceEdit.documentChanges.push(s),n=new Gt(i,this._changeAnnotations),this._textEditChanges[r.uri]=n}return n}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var n=this._textEditChanges[t];if(!n){var i=[];this._workspaceEdit.changes[t]=i,n=new Gt(i),this._textEditChanges[t]=n}return n}},e.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new Di,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(t,r,n){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i;lt.is(r)||ne.is(r)?i=r:n=r;var s,o;if(i===void 0?s=At.create(t,n):(o=ne.is(i)?i:this._changeAnnotations.manage(i),s=At.create(t,n,o)),this._workspaceEdit.documentChanges.push(s),o!==void 0)return o},e.prototype.renameFile=function(t,r,n,i){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var s;lt.is(n)||ne.is(n)?s=n:i=n;var o,l;if(s===void 0?o=Nt.create(t,r,i):(l=ne.is(s)?s:this._changeAnnotations.manage(s),o=Nt.create(t,r,i,l)),this._workspaceEdit.documentChanges.push(o),l!==void 0)return l},e.prototype.deleteFile=function(t,r,n){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i;lt.is(r)||ne.is(r)?i=r:n=r;var s,o;if(i===void 0?s=Lt.create(t,n):(o=ne.is(i)?i:this._changeAnnotations.manage(i),s=Lt.create(t,n,o)),this._workspaceEdit.documentChanges.push(s),o!==void 0)return o},e})();var Oi;(function(e){function t(n){return{uri:n}}e.create=t;function r(n){var i=n;return k.defined(i)&&k.string(i.uri)}e.is=r})(Oi||(Oi={}));var Ui;(function(e){function t(n,i){return{uri:n,version:i}}e.create=t;function r(n){var i=n;return k.defined(i)&&k.string(i.uri)&&k.integer(i.version)}e.is=r})(Ui||(Ui={}));var Jt;(function(e){function t(n,i){return{uri:n,version:i}}e.create=t;function r(n){var i=n;return k.defined(i)&&k.string(i.uri)&&(i.version===null||k.integer(i.version))}e.is=r})(Jt||(Jt={}));var ji;(function(e){function t(n,i,s,o){return{uri:n,languageId:i,version:s,text:o}}e.create=t;function r(n){var i=n;return k.defined(i)&&k.string(i.uri)&&k.string(i.languageId)&&k.integer(i.version)&&k.string(i.text)}e.is=r})(ji||(ji={}));var Fe;(function(e){e.PlainText="plaintext",e.Markdown="markdown"})(Fe||(Fe={})),function(e){function t(r){var n=r;return n===e.PlainText||n===e.Markdown}e.is=t}(Fe||(Fe={}));var Wr;(function(e){function t(r){var n=r;return k.objectLiteral(r)&&Fe.is(n.kind)&&k.string(n.value)}e.is=t})(Wr||(Wr={}));var de;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(de||(de={}));var Y;(function(e){e.PlainText=1,e.Snippet=2})(Y||(Y={}));var Bi;(function(e){e.Deprecated=1})(Bi||(Bi={}));var $i;(function(e){function t(n,i,s){return{newText:n,insert:i,replace:s}}e.create=t;function r(n){var i=n;return i&&k.string(i.newText)&&q.is(i.insert)&&q.is(i.replace)}e.is=r})($i||($i={}));var Wi;(function(e){e.asIs=1,e.adjustIndentation=2})(Wi||(Wi={}));var qr;(function(e){function t(r){return{label:r}}e.create=t})(qr||(qr={}));var qi;(function(e){function t(r,n){return{items:r||[],isIncomplete:!!n}}e.create=t})(qi||(qi={}));var Zt;(function(e){function t(n){return n.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=t;function r(n){var i=n;return k.string(i)||k.objectLiteral(i)&&k.string(i.language)&&k.string(i.value)}e.is=r})(Zt||(Zt={}));var Hi;(function(e){function t(r){var n=r;return!!n&&k.objectLiteral(n)&&(Wr.is(n.contents)||Zt.is(n.contents)||k.typedArray(n.contents,Zt.is))&&(r.range===void 0||q.is(r.range))}e.is=t})(Hi||(Hi={}));var zi;(function(e){function t(r,n){return n?{label:r,documentation:n}:{label:r}}e.create=t})(zi||(zi={}));var Gi;(function(e){function t(r,n){for(var i=[],s=2;s=0;h--){var f=u[h],d=s.offsetAt(f.range.start),m=s.offsetAt(f.range.end);if(m<=c)l=l.substring(0,d)+f.newText+l.substring(m,l.length);else throw new Error("Overlapping edit");c=d}return l}e.applyEdits=n;function i(s,o){if(s.length<=1)return s;var l=s.length/2|0,u=s.slice(0,l),c=s.slice(l);i(u,o),i(c,o);for(var h=0,f=0,d=0;h0&&t.push(r.length),this._lineOffsets=t}return this._lineOffsets},e.prototype.positionAt=function(t){t=Math.max(Math.min(t,this._content.length),0);var r=this.getLineOffsets(),n=0,i=r.length;if(i===0)return Ce.create(0,t);for(;nt?i=s:n=s+1}var o=n-1;return Ce.create(o,t-r[o])},e.prototype.offsetAt=function(t){var r=this.getLineOffsets();if(t.line>=r.length)return this._content.length;if(t.line<0)return 0;var n=r[t.line],i=t.line+1e?n=s:r=s+1}let i=r-1;return{line:i,character:e-t[i]}}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let r=t[e.line],n=e.line+1{let d=h.range.start.line-f.range.start.line;return d===0?h.range.start.character-f.range.start.character:d}),u=0;const c=[];for(const h of l){let f=i.offsetAt(h.range.start);if(fu&&c.push(o.substring(u,f)),h.newText.length&&c.push(h.newText),u=i.offsetAt(h.range.end)}return c.push(o.substr(u)),c.join("")}e.applyEdits=n})(Hr||(Hr={}));function zr(e,t){if(e.length<=1)return e;const r=e.length/2|0,n=e.slice(0,r),i=e.slice(r);zr(n,t),zr(i,t);let s=0,o=0,l=0;for(;sr.line||t.line===r.line&&t.character>r.character?{start:r,end:t}:e}function co(e){const t=oa(e.range);return t!==e.range?{newText:e.newText,range:t}:e}var $;(function(e){e[e.Undefined=0]="Undefined",e[e.EnumValueMismatch=1]="EnumValueMismatch",e[e.Deprecated=2]="Deprecated",e[e.UnexpectedEndOfComment=257]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=258]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=259]="UnexpectedEndOfNumber",e[e.InvalidUnicode=260]="InvalidUnicode",e[e.InvalidEscapeCharacter=261]="InvalidEscapeCharacter",e[e.InvalidCharacter=262]="InvalidCharacter",e[e.PropertyExpected=513]="PropertyExpected",e[e.CommaExpected=514]="CommaExpected",e[e.ColonExpected=515]="ColonExpected",e[e.ValueExpected=516]="ValueExpected",e[e.CommaOrCloseBacketExpected=517]="CommaOrCloseBacketExpected",e[e.CommaOrCloseBraceExpected=518]="CommaOrCloseBraceExpected",e[e.TrailingComma=519]="TrailingComma",e[e.DuplicateKey=520]="DuplicateKey",e[e.CommentNotPermitted=521]="CommentNotPermitted",e[e.SchemaResolveError=768]="SchemaResolveError"})($||($={}));var la;(function(e){e.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[Fe.Markdown,Fe.PlainText],commitCharactersSupport:!0}}}}})(la||(la={}));function fo(e,t){let r;return t.length===0?r=e:r=e.replace(/\{(\d+)\}/g,(n,i)=>{let s=i[0];return typeof t[s]!="undefined"?t[s]:n}),r}function ho(e,t,...r){return fo(t,r)}function kt(e){return ho}var Je=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),I=kt(),mo={"color-hex":{errorMessage:I("colorHexFormatWarning","Invalid color format. Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA."),pattern:/^#([0-9A-Fa-f]{3,4}|([0-9A-Fa-f]{2}){3,4})$/},"date-time":{errorMessage:I("dateTimeFormatWarning","String is not a RFC3339 date-time."),pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},date:{errorMessage:I("dateFormatWarning","String is not a RFC3339 date."),pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/i},time:{errorMessage:I("timeFormatWarning","String is not a RFC3339 time."),pattern:/^([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},email:{errorMessage:I("emailFormatWarning","String is not an e-mail address."),pattern:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}))$/},hostname:{errorMessage:I("hostnameFormatWarning","String is not a hostname."),pattern:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i},ipv4:{errorMessage:I("ipv4FormatWarning","String is not an IPv4 address."),pattern:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/},ipv6:{errorMessage:I("ipv6FormatWarning","String is not an IPv6 address."),pattern:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i}},Ze=function(){function e(t,r,n){n===void 0&&(n=0),this.offset=r,this.length=n,this.parent=t}return Object.defineProperty(e.prototype,"children",{get:function(){return[]},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return"type: "+this.type+" ("+this.offset+"/"+this.length+")"+(this.parent?" parent: {"+this.parent.toString()+"}":"")},e}(),go=function(e){Je(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i.type="null",i.value=null,i}return t}(Ze),ua=function(e){Je(t,e);function t(r,n,i){var s=e.call(this,r,i)||this;return s.type="boolean",s.value=n,s}return t}(Ze),po=function(e){Je(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i.type="array",i.items=[],i}return Object.defineProperty(t.prototype,"children",{get:function(){return this.items},enumerable:!1,configurable:!0}),t}(Ze),vo=function(e){Je(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i.type="number",i.isInteger=!0,i.value=Number.NaN,i}return t}(Ze),Gr=function(e){Je(t,e);function t(r,n,i){var s=e.call(this,r,n,i)||this;return s.type="string",s.value="",s}return t}(Ze),bo=function(e){Je(t,e);function t(r,n,i){var s=e.call(this,r,n)||this;return s.type="property",s.colonOffset=-1,s.keyNode=i,s}return Object.defineProperty(t.prototype,"children",{get:function(){return this.valueNode?[this.keyNode,this.valueNode]:[this.keyNode]},enumerable:!1,configurable:!0}),t}(Ze),wo=function(e){Je(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i.type="object",i.properties=[],i}return Object.defineProperty(t.prototype,"children",{get:function(){return this.properties},enumerable:!1,configurable:!0}),t}(Ze);function le(e){return Ae(e)?e?{}:{not:{}}:e}var ca;(function(e){e[e.Key=0]="Key",e[e.Enum=1]="Enum"})(ca||(ca={}));var yo=function(){function e(t,r){t===void 0&&(t=-1),this.focusOffset=t,this.exclude=r,this.schemas=[]}return e.prototype.add=function(t){this.schemas.push(t)},e.prototype.merge=function(t){Array.prototype.push.apply(this.schemas,t.schemas)},e.prototype.include=function(t){return(this.focusOffset===-1||fa(t,this.focusOffset))&&t!==this.exclude},e.prototype.newSub=function(){return new e(-1,this.exclude)},e}(),Jr=function(){function e(){}return Object.defineProperty(e.prototype,"schemas",{get:function(){return[]},enumerable:!1,configurable:!0}),e.prototype.add=function(t){},e.prototype.merge=function(t){},e.prototype.include=function(t){return!0},e.prototype.newSub=function(){return this},e.instance=new e,e}(),ue=function(){function e(){this.problems=[],this.propertiesMatches=0,this.propertiesValueMatches=0,this.primaryValueMatches=0,this.enumValueMatch=!1,this.enumValues=void 0}return e.prototype.hasProblems=function(){return!!this.problems.length},e.prototype.mergeAll=function(t){for(var r=0,n=t;r=e.offset&&t0?H={schema:V,validationResult:D,matchingSchemas:U}:W===0&&(H.matchingSchemas.merge(U),H.validationResult.mergeEnumValues(D))}}return X.length>1&&B&&r.problems.push({location:{offset:i.offset,length:1},message:I("oneOfWarning","Matches multiple schemas when only one must validate.")}),H&&(r.merge(H.validationResult),r.propertiesMatches+=H.validationResult.propertiesMatches,r.propertiesValueMatches+=H.validationResult.propertiesValueMatches,n.merge(H.matchingSchemas)),X.length};Array.isArray(t.anyOf)&&S(t.anyOf,!1),Array.isArray(t.oneOf)&&S(t.oneOf,!0);var A=function(R){var B=new ue,X=n.newSub();re(i,le(R),B,X),r.merge(B),r.propertiesMatches+=B.propertiesMatches,r.propertiesValueMatches+=B.propertiesValueMatches,n.merge(X)},y=function(R,B,X){var H=le(R),T=new ue,x=n.newSub();re(i,H,T,x),n.merge(x),T.hasProblems()?X&&A(X):B&&A(B)},C=le(t.if);if(C&&y(C,le(t.then),le(t.else)),Array.isArray(t.enum)){for(var _=Xe(i),L=!1,M=0,E=t.enum;M=C&&d.problems.push({location:{offset:h.offset,length:h.length},message:I("exclusiveMaximumWarning","Value is above the exclusive maximum of {0}.",C)});var _=A(f.minimum,f.exclusiveMinimum);fe(_)&&b<_&&d.problems.push({location:{offset:h.offset,length:h.length},message:I("minimumWarning","Value is below the minimum of {0}.",_)});var L=A(f.maximum,f.exclusiveMaximum);fe(L)&&b>L&&d.problems.push({location:{offset:h.offset,length:h.length},message:I("maximumWarning","Value is above the maximum of {0}.",L)})}function l(h,f,d,m){if(fe(f.minLength)&&h.value.lengthf.maxLength&&d.problems.push({location:{offset:h.offset,length:h.length},message:I("maxLengthWarning","String is longer than the maximum length of {0}.",f.maxLength)}),oo(f.pattern)){var b=qt(f.pattern);b!=null&&b.test(h.value)||d.problems.push({location:{offset:h.offset,length:h.length},message:f.patternErrorMessage||f.errorMessage||I("patternWarning",'String does not match the pattern of "{0}".',f.pattern)})}if(f.format)switch(f.format){case"uri":case"uri-reference":{var p=void 0;if(!h.value)p=I("uriEmpty","URI expected.");else{var g=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/.exec(h.value);g?!g[2]&&f.format==="uri"&&(p=I("uriSchemeMissing","URI with a scheme is expected.")):p=I("uriMissing","URI is expected.")}p&&d.problems.push({location:{offset:h.offset,length:h.length},message:f.patternErrorMessage||f.errorMessage||I("uriFormatWarning","String is not a URI: {0}",p)})}break;case"color-hex":case"date-time":case"date":case"time":case"email":case"hostname":case"ipv4":case"ipv6":var N=mo[f.format];(!h.value||!N.pattern.exec(h.value))&&d.problems.push({location:{offset:h.offset,length:h.length},message:f.patternErrorMessage||f.errorMessage||N.errorMessage})}}function u(h,f,d,m){if(Array.isArray(f.items)){for(var b=f.items,p=0;p=b.length&&d.propertiesValueMatches++}if(h.items.length>b.length)if(typeof f.additionalItems=="object")for(var S=b.length;Sf.maxItems&&d.problems.push({location:{offset:h.offset,length:h.length},message:I("maxItemsWarning","Array has too many items. Expected {0} or fewer.",f.maxItems)}),f.uniqueItems===!0){var M=Xe(h),E=M.some(function(P,R){return R!==M.lastIndexOf(P)});E&&d.problems.push({location:{offset:h.offset,length:h.length},message:I("uniqueItemsWarning","Array has duplicate items.")})}}function c(h,f,d,m){for(var b=Object.create(null),p=[],g=0,N=h.properties;g=0;)p.splice(sn,1),sn=p.indexOf(Na)};if(f.properties)for(var M=0,E=Object.keys(f.properties);M0)for(var W=0,ke=p;Wf.maxProperties&&d.problems.push({location:{offset:h.offset,length:h.length},message:I("MaxPropWarning","Object has more properties than limit of {0}.",f.maxProperties)}),fe(f.minProperties)&&h.properties.length0){for(E--;E>0&&/\s/.test(i.charAt(E));)E--;P=E+1}if(u(y,C,E,P),_&&f(_,!1),L.length+M.length>0)for(var R=s.getToken();R!==17;){if(L.indexOf(R)!==-1){l();break}else if(M.indexOf(R)!==-1)break;R=l()}return _}function h(){switch(s.getTokenError()){case 4:return c(I("InvalidUnicode","Invalid unicode sequence in string."),$.InvalidUnicode),!0;case 5:return c(I("InvalidEscapeCharacter","Invalid escape character in string."),$.InvalidEscapeCharacter),!0;case 3:return c(I("UnexpectedEndOfNumber","Unexpected end of number."),$.UnexpectedEndOfNumber),!0;case 1:return c(I("UnexpectedEndOfComment","Unexpected end of comment."),$.UnexpectedEndOfComment),!0;case 2:return c(I("UnexpectedEndOfString","Unexpected end of string."),$.UnexpectedEndOfString),!0;case 6:return c(I("InvalidCharacter","Invalid characters in string. Control characters must be escaped."),$.InvalidCharacter),!0}return!1}function f(y,C){return y.length=s.getTokenOffset()+s.getTokenLength()-y.offset,C&&l(),y}function d(y){if(s.getToken()===3){var C=new po(y,s.getTokenOffset());l();for(var _=!1;s.getToken()!==4&&s.getToken()!==17;){if(s.getToken()===5){_||c(I("ValueExpected","Value expected"),$.ValueExpected);var L=s.getTokenOffset();if(l(),s.getToken()===4){_&&u(I("TrailingComma","Trailing comma"),$.TrailingComma,L,L+1);continue}}else _&&c(I("ExpectedComma","Expected comma"),$.CommaExpected);var M=v(C);M?C.items.push(M):c(I("PropertyExpected","Value expected"),$.ValueExpected,void 0,[],[4,5]),_=!0}return s.getToken()!==4?c(I("ExpectedCloseBracket","Expected comma or closing bracket"),$.CommaOrCloseBacketExpected,C):f(C,!0)}}var m=new Gr(void 0,0,0);function b(y,C){var _=new bo(y,s.getTokenOffset(),m),L=g(_);if(!L)if(s.getToken()===16){c(I("DoubleQuotesExpected","Property keys must be doublequoted"),$.Undefined);var M=new Gr(_,s.getTokenOffset(),s.getTokenLength());M.value=s.getTokenValue(),L=M,l()}else return;_.keyNode=L;var E=C[L.value];if(E?(u(I("DuplicateKeyWarning","Duplicate object key"),$.DuplicateKey,_.keyNode.offset,_.keyNode.offset+_.keyNode.length,he.Warning),typeof E=="object"&&u(I("DuplicateKeyWarning","Duplicate object key"),$.DuplicateKey,E.keyNode.offset,E.keyNode.offset+E.keyNode.length,he.Warning),C[L.value]=!0):C[L.value]=_,s.getToken()===6)_.colonOffset=s.getTokenOffset(),l();else if(c(I("ColonExpected","Colon expected"),$.ColonExpected),s.getToken()===10&&e.positionAt(L.offset+L.length).line=0;r--){var n=this.contributions[r].resolveCompletion;if(n){var i=n(t);if(i)return i}}return this.promiseConstructor.resolve(t)},e.prototype.doComplete=function(t,r,n){var i=this,s={items:[],isIncomplete:!1},o=t.getText(),l=t.offsetAt(r),u=n.getNodeFromOffset(l,!0);if(this.isInComment(t,u?u.offset:0,l))return Promise.resolve(s);if(u&&l===u.offset+u.length&&l>0){var c=o[l-1];(u.type==="object"&&c==="}"||u.type==="array"&&c==="]")&&(u=u.parent)}var h=this.getCurrentWord(t,l),f;if(u&&(u.type==="string"||u.type==="number"||u.type==="boolean"||u.type==="null"))f=q.create(t.positionAt(u.offset),t.positionAt(u.offset+u.length));else{var d=l-h.length;d>0&&o[d-1]==='"'&&d--,f=q.create(t.positionAt(d),r)}var m={},b={add:function(p){var g=p.label,N=m[g];if(N)N.documentation||(N.documentation=p.documentation),N.detail||(N.detail=p.detail);else{if(g=g.replace(/[\n]/g,"↵"),g.length>60){var w=g.substr(0,57).trim()+"...";m[w]||(g=w)}f&&p.insertText!==void 0&&(p.textEdit=_e.replace(f,p.insertText)),p.label=g,m[g]=p,s.items.push(p)}},setAsIncomplete:function(){s.isIncomplete=!0},error:function(p){console.error(p)},log:function(p){console.log(p)},getNumberOfProposals:function(){return s.items.length}};return this.schemaService.getSchemaForResource(t.uri,n).then(function(p){var g=[],N=!0,w="",v=void 0;if(u&&u.type==="string"){var S=u.parent;S&&S.type==="property"&&S.keyNode===u&&(N=!S.valueNode,v=S,w=o.substr(u.offset+1,u.length-2),S&&(u=S.parent))}if(u&&u.type==="object"){if(u.offset===l)return s;var A=u.properties;A.forEach(function(L){(!v||v!==L)&&(m[L.keyNode.value]=qr.create("__"))});var y="";N&&(y=i.evaluateSeparatorAfter(t,t.offsetAt(f.end))),p?i.getPropertyCompletions(p,n,u,N,y,b):i.getSchemaLessPropertyCompletions(n,u,w,b);var C=Zr(u);i.contributions.forEach(function(L){var M=L.collectPropertyCompletions(t.uri,C,h,N,y==="",b);M&&g.push(M)}),!p&&h.length>0&&o.charAt(l-h.length-1)!=='"'&&(b.add({kind:de.Property,label:i.getLabelForValue(h),insertText:i.getInsertTextForProperty(h,void 0,!1,y),insertTextFormat:Y.Snippet,documentation:""}),b.setAsIncomplete())}var _={};return p?i.getValueCompletions(p,n,u,l,t,b,_):i.getSchemaLessValueCompletions(n,u,l,t,b),i.contributions.length>0&&i.getContributedValueCompletions(n,u,l,t,b,g),i.promiseConstructor.all(g).then(function(){if(b.getNumberOfProposals()===0){var L=l;u&&(u.type==="string"||u.type==="number"||u.type==="boolean"||u.type==="null")&&(L=u.offset+u.length);var M=i.evaluateSeparatorAfter(t,L);i.addFillerValueCompletions(_,M,b)}return s})})},e.prototype.getPropertyCompletions=function(t,r,n,i,s,o){var l=this,u=r.getMatchingSchemas(t.schema,n.offset);u.forEach(function(c){if(c.node===n&&!c.inverted){var h=c.schema.properties;h&&Object.keys(h).forEach(function(p){var g=h[p];if(typeof g=="object"&&!g.deprecationMessage&&!g.doNotSuggest){var N={kind:de.Property,label:p,insertText:l.getInsertTextForProperty(p,g,i,s),insertTextFormat:Y.Snippet,filterText:l.getFilterTextForValue(p),documentation:l.fromMarkup(g.markdownDescription)||g.description||""};g.suggestSortText!==void 0&&(N.sortText=g.suggestSortText),N.insertText&&yt(N.insertText,"$1".concat(s))&&(N.command={title:"Suggest",command:"editor.action.triggerSuggest"}),o.add(N)}});var f=c.schema.propertyNames;if(typeof f=="object"&&!f.deprecationMessage&&!f.doNotSuggest){var d=function(p,g){g===void 0&&(g=void 0);var N={kind:de.Property,label:p,insertText:l.getInsertTextForProperty(p,void 0,i,s),insertTextFormat:Y.Snippet,filterText:l.getFilterTextForValue(p),documentation:g||l.fromMarkup(f.markdownDescription)||f.description||""};f.suggestSortText!==void 0&&(N.sortText=f.suggestSortText),N.insertText&&yt(N.insertText,"$1".concat(s))&&(N.command={title:"Suggest",command:"editor.action.triggerSuggest"}),o.add(N)};if(f.enum)for(var m=0;m(r.colonOffset||0)){var h=r.valueNode;if(h&&(n>h.offset+h.length||h.type==="object"||h.type==="array"))return;var f=r.keyNode.value;t.visit(function(m){return m.type==="property"&&m.keyNode.value===f&&m.valueNode&&c(m.valueNode),!0}),f==="$schema"&&r.parent&&!r.parent.parent&&this.addDollarSchemaCompletions(u,s)}if(r.type==="array")if(r.parent&&r.parent.type==="property"){var d=r.parent.keyNode.value;t.visit(function(m){return m.type==="property"&&m.keyNode.value===d&&m.valueNode&&m.valueNode.type==="array"&&m.valueNode.items.forEach(c),!0})}else r.items.forEach(c)},e.prototype.getValueCompletions=function(t,r,n,i,s,o,l){var u=i,c=void 0,h=void 0;if(n&&(n.type==="string"||n.type==="number"||n.type==="boolean"||n.type==="null")&&(u=n.offset+n.length,h=n,n=n.parent),!n){this.addSchemaValueCompletions(t.schema,"",o,l);return}if(n.type==="property"&&i>(n.colonOffset||0)){var f=n.valueNode;if(f&&i>f.offset+f.length)return;c=n.keyNode.value,n=n.parent}if(n&&(c!==void 0||n.type==="array")){for(var d=this.evaluateSeparatorAfter(s,u),m=r.getMatchingSchemas(t.schema,n.offset,h),b=0,p=m;b(r.colonOffset||0)){var l=r.keyNode.value,u=r.valueNode;if((!u||n<=u.offset+u.length)&&r.parent){var c=Zr(r.parent);this.contributions.forEach(function(h){var f=h.collectValueCompletions(i.uri,c,l,s);f&&o.push(f)})}}},e.prototype.addSchemaValueCompletions=function(t,r,n,i){var s=this;typeof t=="object"&&(this.addEnumValueCompletions(t,r,n),this.addDefaultValueCompletions(t,r,n),this.collectTypes(t,i),Array.isArray(t.allOf)&&t.allOf.forEach(function(o){return s.addSchemaValueCompletions(o,r,n,i)}),Array.isArray(t.anyOf)&&t.anyOf.forEach(function(o){return s.addSchemaValueCompletions(o,r,n,i)}),Array.isArray(t.oneOf)&&t.oneOf.forEach(function(o){return s.addSchemaValueCompletions(o,r,n,i)}))},e.prototype.addDefaultValueCompletions=function(t,r,n,i){var s=this;i===void 0&&(i=0);var o=!1;if(Te(t.default)){for(var l=t.type,u=t.default,c=i;c>0;c--)u=[u],l="array";n.add({kind:this.getSuggestionKind(l),label:this.getLabelForValue(u),insertText:this.getInsertTextForValue(u,r),insertTextFormat:Y.Snippet,detail:Yr("json.suggest.default","Default value")}),o=!0}Array.isArray(t.examples)&&t.examples.forEach(function(h){for(var f=t.type,d=h,m=i;m>0;m--)d=[d],f="array";n.add({kind:s.getSuggestionKind(f),label:s.getLabelForValue(d),insertText:s.getInsertTextForValue(d,r),insertTextFormat:Y.Snippet}),o=!0}),Array.isArray(t.defaultSnippets)&&t.defaultSnippets.forEach(function(h){var f=t.type,d=h.body,m=h.label,b,p;if(Te(d)){t.type;for(var g=i;g>0;g--)d=[d];b=s.getInsertTextForSnippetValue(d,r),p=s.getFilterTextForSnippetValue(d),m=m||s.getLabelForSnippetValue(d)}else if(typeof h.bodyText=="string"){for(var N="",w="",v="",g=i;g>0;g--)N=N+v+`[ `,w=w+` `+v+"]",v+=" ",f="array";b=N+v+h.bodyText.split(` `).join(` `+v)+w+r,m=m||b,p=b.replace(/[\n]/g,"")}else return;n.add({kind:s.getSuggestionKind(f),label:m,documentation:s.fromMarkup(h.markdownDescription)||h.description,insertText:b,insertTextFormat:Y.Snippet,filterText:p}),o=!0}),!o&&typeof t.items=="object"&&!Array.isArray(t.items)&&i<5&&this.addDefaultValueCompletions(t.items,r,n,i+1)},e.prototype.addEnumValueCompletions=function(t,r,n){if(Te(t.const)&&n.add({kind:this.getSuggestionKind(t.type),label:this.getLabelForValue(t.const),insertText:this.getInsertTextForValue(t.const,r),insertTextFormat:Y.Snippet,documentation:this.fromMarkup(t.markdownDescription)||t.description}),Array.isArray(t.enum))for(var i=0,s=t.enum.length;i0?r[0]:void 0}if(!t)return de.Value;switch(t){case"string":return de.Value;case"object":return de.Module;case"property":return de.Property;default:return de.Value}},e.prototype.getLabelTextForMatchingNode=function(t,r){switch(t.type){case"array":return"[]";case"object":return"{}";default:var n=r.getText().substr(t.offset,t.length);return n}},e.prototype.getInsertTextForMatchingNode=function(t,r,n){switch(t.type){case"array":return this.getInsertTextForValue([],n);case"object":return this.getInsertTextForValue({},n);default:var i=r.getText().substr(t.offset,t.length)+n;return this.getInsertTextForPlainText(i)}},e.prototype.getInsertTextForProperty=function(t,r,n,i){var s=this.getInsertTextForValue(t,"");if(!n)return s;var o=s+": ",l,u=0;if(r){if(Array.isArray(r.defaultSnippets)){if(r.defaultSnippets.length===1){var c=r.defaultSnippets[0].body;Te(c)&&(l=this.getInsertTextForSnippetValue(c,""))}u+=r.defaultSnippets.length}if(r.enum&&(!l&&r.enum.length===1&&(l=this.getInsertTextForGuessedValue(r.enum[0],"")),u+=r.enum.length),Te(r.default)&&(l||(l=this.getInsertTextForGuessedValue(r.default,"")),u++),Array.isArray(r.examples)&&r.examples.length&&(l||(l=this.getInsertTextForGuessedValue(r.examples[0],"")),u+=r.examples.length),u===0){var h=Array.isArray(r.type)?r.type[0]:r.type;switch(h||(r.properties?h="object":r.items&&(h="array")),h){case"boolean":l="$1";break;case"string":l='"$1"';break;case"object":l="{$1}";break;case"array":l="[$1]";break;case"number":case"integer":l="${1:0}";break;case"null":l="${1:null}";break;default:return s}}}return(!l||u>1)&&(l="$1"),o+l+i},e.prototype.getCurrentWord=function(t,r){for(var n=r-1,i=t.getText();n>=0&&` \r\v":{[,]}`.indexOf(i.charAt(n))===-1;)n--;return i.substring(n+1,r)},e.prototype.evaluateSeparatorAfter=function(t,r){var n=ot(t.getText(),!0);n.setPosition(r);var i=n.scan();switch(i){case 5:case 2:case 4:case 17:return"";default:return","}},e.prototype.findItemAtOffset=function(t,r,n){for(var i=ot(r.getText(),!0),s=t.items,o=s.length-1;o>=0;o--){var l=s[o];if(n>l.offset+l.length){i.setPosition(l.offset+l.length);var u=i.scan();return u===5&&n>=i.getTokenOffset()+i.getTokenLength()?o+1:o}else if(n>=l.offset)return o}return 0},e.prototype.isInComment=function(t,r,n){var i=ot(t.getText(),!1);i.setPosition(r);for(var s=i.scan();s!==17&&i.getTokenOffset()+i.getTokenLength()s.offset+1&&i=0;f--){var d=this.contributions[f],m=d.getInfoContribution(t.uri,h);if(m)return m.then(function(b){return c(b)})}return this.schemaService.getSchemaForResource(t.uri,n).then(function(b){if(b&&s){var p=n.getMatchingSchemas(b.schema,s.offset),g=void 0,N=void 0,w=void 0,v=void 0;p.every(function(A){if(A.node===s&&!A.inverted&&A.schema&&(g=g||A.schema.title,N=N||A.schema.markdownDescription||Qr(A.schema.description),A.schema.enum)){var y=A.schema.enum.indexOf(Xe(s));A.schema.markdownEnumDescriptions?w=A.schema.markdownEnumDescriptions[y]:A.schema.enumDescriptions&&(w=Qr(A.schema.enumDescriptions[y])),w&&(v=A.schema.enum[y],typeof v!="string"&&(v=JSON.stringify(v)))}return!0});var S="";return g&&(S=Qr(g)),N&&(S.length>0&&(S+=` `),S+=N),w&&(S.length>0&&(S+=` `),S+="`".concat(No(v),"`: ").concat(w)),c([S])}return null})},e}();function Qr(e){if(e){var t=e.replace(/([^\n\r])(\r?\n)([^\n\r])/gm,`$1 $3`);return t.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function No(e){return e.indexOf("`")!==-1?"`` "+e+" ``":e}var Lo=kt(),ko=function(){function e(t,r){this.jsonSchemaService=t,this.promise=r,this.validationEnabled=!0}return e.prototype.configure=function(t){t&&(this.validationEnabled=t.validate!==!1,this.commentSeverity=t.allowComments?void 0:he.Error)},e.prototype.doValidation=function(t,r,n,i){var s=this;if(!this.validationEnabled)return this.promise.resolve([]);var o=[],l={},u=function(d){var m=d.range.start.line+" "+d.range.start.character+" "+d.message;l[m]||(l[m]=!0,o.push(d))},c=function(d){var m=n!=null&&n.trailingCommas?Qt(n.trailingCommas):he.Error,b=n!=null&&n.comments?Qt(n.comments):s.commentSeverity,p=n!=null&&n.schemaValidation?Qt(n.schemaValidation):he.Warning,g=n!=null&&n.schemaRequest?Qt(n.schemaRequest):he.Warning;if(d){if(d.errors.length&&r.root&&g){var N=r.root,w=N.type==="object"?N.properties[0]:void 0;if(w&&w.keyNode.value==="$schema"){var v=w.valueNode||w,S=q.create(t.positionAt(v.offset),t.positionAt(v.offset+v.length));u(Ee.create(S,d.errors[0],g,$.SchemaResolveError))}else{var S=q.create(t.positionAt(N.offset),t.positionAt(N.offset+1));u(Ee.create(S,d.errors[0],g,$.SchemaResolveError))}}else if(p){var A=r.validate(t,d.schema,p);A&&A.forEach(u)}da(d.schema)&&(b=void 0),ma(d.schema)&&(m=void 0)}for(var y=0,C=r.syntaxErrors;y=Kt&&e<=To?e-Kt+10:0)}function Eo(e){if(e[0]==="#")switch(e.length){case 4:return{red:Z(e.charCodeAt(1))*17/255,green:Z(e.charCodeAt(2))*17/255,blue:Z(e.charCodeAt(3))*17/255,alpha:1};case 5:return{red:Z(e.charCodeAt(1))*17/255,green:Z(e.charCodeAt(2))*17/255,blue:Z(e.charCodeAt(3))*17/255,alpha:Z(e.charCodeAt(4))*17/255};case 7:return{red:(Z(e.charCodeAt(1))*16+Z(e.charCodeAt(2)))/255,green:(Z(e.charCodeAt(3))*16+Z(e.charCodeAt(4)))/255,blue:(Z(e.charCodeAt(5))*16+Z(e.charCodeAt(6)))/255,alpha:1};case 9:return{red:(Z(e.charCodeAt(1))*16+Z(e.charCodeAt(2)))/255,green:(Z(e.charCodeAt(3))*16+Z(e.charCodeAt(4)))/255,blue:(Z(e.charCodeAt(5))*16+Z(e.charCodeAt(6)))/255,alpha:(Z(e.charCodeAt(7))*16+Z(e.charCodeAt(8)))/255}}}var Fo=function(){function e(t){this.schemaService=t}return e.prototype.findDocumentSymbols=function(t,r,n){var i=this;n===void 0&&(n={resultLimit:Number.MAX_VALUE});var s=r.root;if(!s)return[];var o=n.resultLimit||Number.MAX_VALUE,l=t.uri;if((l==="vscode://defaultsettings/keybindings.json"||yt(l.toLowerCase(),"/user/keybindings.json"))&&s.type==="array"){for(var u=[],c=0,h=s.items;c0){o--;var M=Ct.create(t.uri,$e(t,_)),E=C?C+"."+_.keyNode.value:_.keyNode.value;v.push({name:i.getKeyLabel(_),kind:i.getSymbolKind(L.type),location:M,containerName:C}),g.push({node:L,containerName:E})}else w=!0})};N0){o--;var E=$e(t,L),P=E,R=String(M),B={name:R,kind:i.getSymbolKind(L.type),range:E,selectionRange:P,children:[]};_.push(B),w.push({result:B.children,node:L})}else S=!0}):C.type==="object"&&C.properties.forEach(function(L){var M=L.valueNode;if(M)if(o>0){o--;var E=$e(t,L),P=$e(t,L.keyNode),R=[],B={name:i.getKeyLabel(L),kind:i.getSymbolKind(M.type),range:E,selectionRange:P,children:R,detail:i.getDetail(M)};_.push(B),w.push({result:R,node:M})}else S=!0})};v{var e={470:n=>{function i(l){if(typeof l!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(l))}function s(l,u){for(var c,h="",f=0,d=-1,m=0,b=0;b<=l.length;++b){if(b2){var p=h.lastIndexOf("/");if(p!==h.length-1){p===-1?(h="",f=0):f=(h=h.slice(0,p)).length-1-h.lastIndexOf("/"),d=b,m=0;continue}}else if(h.length===2||h.length===1){h="",f=0,d=b,m=0;continue}}u&&(h.length>0?h+="/..":h="..",f=2)}else h.length>0?h+="/"+l.slice(d+1,b):h=l.slice(d+1,b),f=b-d-1;d=b,m=0}else c===46&&m!==-1?++m:m=-1}return h}var o={resolve:function(){for(var l,u="",c=!1,h=arguments.length-1;h>=-1&&!c;h--){var f;h>=0?f=arguments[h]:(l===void 0&&(l=process.cwd()),f=l),i(f),f.length!==0&&(u=f+"/"+u,c=f.charCodeAt(0)===47)}return u=s(u,!c),c?u.length>0?"/"+u:"/":u.length>0?u:"."},normalize:function(l){if(i(l),l.length===0)return".";var u=l.charCodeAt(0)===47,c=l.charCodeAt(l.length-1)===47;return(l=s(l,!u)).length!==0||u||(l="."),l.length>0&&c&&(l+="/"),u?"/"+l:l},isAbsolute:function(l){return i(l),l.length>0&&l.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var l,u=0;u0&&(l===void 0?l=c:l+="/"+c)}return l===void 0?".":o.normalize(l)},relative:function(l,u){if(i(l),i(u),l===u||(l=o.resolve(l))===(u=o.resolve(u)))return"";for(var c=1;cb){if(u.charCodeAt(d+g)===47)return u.slice(d+g+1);if(g===0)return u.slice(d+g)}else f>b&&(l.charCodeAt(c+g)===47?p=g:g===0&&(p=0));break}var N=l.charCodeAt(c+g);if(N!==u.charCodeAt(d+g))break;N===47&&(p=g)}var w="";for(g=c+p+1;g<=h;++g)g!==h&&l.charCodeAt(g)!==47||(w.length===0?w+="..":w+="/..");return w.length>0?w+u.slice(d+p):(d+=p,u.charCodeAt(d)===47&&++d,u.slice(d))},_makeLong:function(l){return l},dirname:function(l){if(i(l),l.length===0)return".";for(var u=l.charCodeAt(0),c=u===47,h=-1,f=!0,d=l.length-1;d>=1;--d)if((u=l.charCodeAt(d))===47){if(!f){h=d;break}}else f=!1;return h===-1?c?"/":".":c&&h===1?"//":l.slice(0,h)},basename:function(l,u){if(u!==void 0&&typeof u!="string")throw new TypeError('"ext" argument must be a string');i(l);var c,h=0,f=-1,d=!0;if(u!==void 0&&u.length>0&&u.length<=l.length){if(u.length===l.length&&u===l)return"";var m=u.length-1,b=-1;for(c=l.length-1;c>=0;--c){var p=l.charCodeAt(c);if(p===47){if(!d){h=c+1;break}}else b===-1&&(d=!1,b=c+1),m>=0&&(p===u.charCodeAt(m)?--m==-1&&(f=c):(m=-1,f=b))}return h===f?f=b:f===-1&&(f=l.length),l.slice(h,f)}for(c=l.length-1;c>=0;--c)if(l.charCodeAt(c)===47){if(!d){h=c+1;break}}else f===-1&&(d=!1,f=c+1);return f===-1?"":l.slice(h,f)},extname:function(l){i(l);for(var u=-1,c=0,h=-1,f=!0,d=0,m=l.length-1;m>=0;--m){var b=l.charCodeAt(m);if(b!==47)h===-1&&(f=!1,h=m+1),b===46?u===-1?u=m:d!==1&&(d=1):u!==-1&&(d=-1);else if(!f){c=m+1;break}}return u===-1||h===-1||d===0||d===1&&u===h-1&&u===c+1?"":l.slice(u,h)},format:function(l){if(l===null||typeof l!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof l);return function(u,c){var h=c.dir||c.root,f=c.base||(c.name||"")+(c.ext||"");return h?h===c.root?h+f:h+"/"+f:f}(0,l)},parse:function(l){i(l);var u={root:"",dir:"",base:"",ext:"",name:""};if(l.length===0)return u;var c,h=l.charCodeAt(0),f=h===47;f?(u.root="/",c=1):c=0;for(var d=-1,m=0,b=-1,p=!0,g=l.length-1,N=0;g>=c;--g)if((h=l.charCodeAt(g))!==47)b===-1&&(p=!1,b=g+1),h===46?d===-1?d=g:N!==1&&(N=1):d!==-1&&(N=-1);else if(!p){m=g+1;break}return d===-1||b===-1||N===0||N===1&&d===b-1&&d===m+1?b!==-1&&(u.base=u.name=m===0&&f?l.slice(1,b):l.slice(m,b)):(m===0&&f?(u.name=l.slice(1,d),u.base=l.slice(1,b)):(u.name=l.slice(m,d),u.base=l.slice(m,b)),u.ext=l.slice(d,b)),m>0?u.dir=l.slice(0,m-1):f&&(u.dir="/"),u},sep:"/",delimiter:":",win32:null,posix:null};o.posix=o,n.exports=o},447:(n,i,s)=>{var o;if(s.r(i),s.d(i,{URI:()=>w,Utils:()=>R}),typeof process=="object")o=process.platform==="win32";else if(typeof navigator=="object"){var l=navigator.userAgent;o=l.indexOf("Windows")>=0}var u,c,h=(u=function(T,x){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(F,V){F.__proto__=V}||function(F,V){for(var D in V)Object.prototype.hasOwnProperty.call(V,D)&&(F[D]=V[D])})(T,x)},function(T,x){if(typeof x!="function"&&x!==null)throw new TypeError("Class extends value "+String(x)+" is not a constructor or null");function F(){this.constructor=T}u(T,x),T.prototype=x===null?Object.create(x):(F.prototype=x.prototype,new F)}),f=/^\w[\w\d+.-]*$/,d=/^\//,m=/^\/\//;function b(T,x){if(!T.scheme&&x)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'.concat(T.authority,'", path: "').concat(T.path,'", query: "').concat(T.query,'", fragment: "').concat(T.fragment,'"}'));if(T.scheme&&!f.test(T.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(T.path){if(T.authority){if(!d.test(T.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(m.test(T.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}var p="",g="/",N=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,w=function(){function T(x,F,V,D,U,W){W===void 0&&(W=!1),typeof x=="object"?(this.scheme=x.scheme||p,this.authority=x.authority||p,this.path=x.path||p,this.query=x.query||p,this.fragment=x.fragment||p):(this.scheme=function(ke,ie){return ke||ie?ke:"file"}(x,W),this.authority=F||p,this.path=function(ke,ie){switch(ke){case"https":case"http":case"file":ie?ie[0]!==g&&(ie=g+ie):ie=g}return ie}(this.scheme,V||p),this.query=D||p,this.fragment=U||p,b(this,W))}return T.isUri=function(x){return x instanceof T||!!x&&typeof x.authority=="string"&&typeof x.fragment=="string"&&typeof x.path=="string"&&typeof x.query=="string"&&typeof x.scheme=="string"&&typeof x.fsPath=="string"&&typeof x.with=="function"&&typeof x.toString=="function"},Object.defineProperty(T.prototype,"fsPath",{get:function(){return _(this,!1)},enumerable:!1,configurable:!0}),T.prototype.with=function(x){if(!x)return this;var F=x.scheme,V=x.authority,D=x.path,U=x.query,W=x.fragment;return F===void 0?F=this.scheme:F===null&&(F=p),V===void 0?V=this.authority:V===null&&(V=p),D===void 0?D=this.path:D===null&&(D=p),U===void 0?U=this.query:U===null&&(U=p),W===void 0?W=this.fragment:W===null&&(W=p),F===this.scheme&&V===this.authority&&D===this.path&&U===this.query&&W===this.fragment?this:new S(F,V,D,U,W)},T.parse=function(x,F){F===void 0&&(F=!1);var V=N.exec(x);return V?new S(V[2]||p,P(V[4]||p),P(V[5]||p),P(V[7]||p),P(V[9]||p),F):new S(p,p,p,p,p)},T.file=function(x){var F=p;if(o&&(x=x.replace(/\\/g,g)),x[0]===g&&x[1]===g){var V=x.indexOf(g,2);V===-1?(F=x.substring(2),x=g):(F=x.substring(2,V),x=x.substring(V)||g)}return new S("file",F,x,p,p)},T.from=function(x){var F=new S(x.scheme,x.authority,x.path,x.query,x.fragment);return b(F,!0),F},T.prototype.toString=function(x){return x===void 0&&(x=!1),L(this,x)},T.prototype.toJSON=function(){return this},T.revive=function(x){if(x){if(x instanceof T)return x;var F=new S(x);return F._formatted=x.external,F._fsPath=x._sep===v?x.fsPath:null,F}return x},T}(),v=o?1:void 0,S=function(T){function x(){var F=T!==null&&T.apply(this,arguments)||this;return F._formatted=null,F._fsPath=null,F}return h(x,T),Object.defineProperty(x.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=_(this,!1)),this._fsPath},enumerable:!1,configurable:!0}),x.prototype.toString=function(F){return F===void 0&&(F=!1),F?L(this,!0):(this._formatted||(this._formatted=L(this,!1)),this._formatted)},x.prototype.toJSON=function(){var F={$mid:1};return this._fsPath&&(F.fsPath=this._fsPath,F._sep=v),this._formatted&&(F.external=this._formatted),this.path&&(F.path=this.path),this.scheme&&(F.scheme=this.scheme),this.authority&&(F.authority=this.authority),this.query&&(F.query=this.query),this.fragment&&(F.fragment=this.fragment),F},x}(w),A=((c={})[58]="%3A",c[47]="%2F",c[63]="%3F",c[35]="%23",c[91]="%5B",c[93]="%5D",c[64]="%40",c[33]="%21",c[36]="%24",c[38]="%26",c[39]="%27",c[40]="%28",c[41]="%29",c[42]="%2A",c[43]="%2B",c[44]="%2C",c[59]="%3B",c[61]="%3D",c[32]="%20",c);function y(T,x){for(var F=void 0,V=-1,D=0;D=97&&U<=122||U>=65&&U<=90||U>=48&&U<=57||U===45||U===46||U===95||U===126||x&&U===47)V!==-1&&(F+=encodeURIComponent(T.substring(V,D)),V=-1),F!==void 0&&(F+=T.charAt(D));else{F===void 0&&(F=T.substr(0,D));var W=A[U];W!==void 0?(V!==-1&&(F+=encodeURIComponent(T.substring(V,D)),V=-1),F+=W):V===-1&&(V=D)}}return V!==-1&&(F+=encodeURIComponent(T.substring(V))),F!==void 0?F:T}function C(T){for(var x=void 0,F=0;F1&&T.scheme==="file"?"//".concat(T.authority).concat(T.path):T.path.charCodeAt(0)===47&&(T.path.charCodeAt(1)>=65&&T.path.charCodeAt(1)<=90||T.path.charCodeAt(1)>=97&&T.path.charCodeAt(1)<=122)&&T.path.charCodeAt(2)===58?x?T.path.substr(1):T.path[1].toLowerCase()+T.path.substr(2):T.path,o&&(F=F.replace(/\//g,"\\")),F}function L(T,x){var F=x?C:y,V="",D=T.scheme,U=T.authority,W=T.path,ke=T.query,ie=T.fragment;if(D&&(V+=D,V+=":"),(U||D==="file")&&(V+=g,V+=g),U){var pe=U.indexOf("@");if(pe!==-1){var ft=U.substr(0,pe);U=U.substr(pe+1),(pe=ft.indexOf(":"))===-1?V+=F(ft,!1):(V+=F(ft.substr(0,pe),!1),V+=":",V+=F(ft.substr(pe+1),!1)),V+="@"}(pe=(U=U.toLowerCase()).indexOf(":"))===-1?V+=F(U,!1):(V+=F(U.substr(0,pe),!1),V+=U.substr(pe))}if(W){if(W.length>=3&&W.charCodeAt(0)===47&&W.charCodeAt(2)===58)(xe=W.charCodeAt(1))>=65&&xe<=90&&(W="/".concat(String.fromCharCode(xe+32),":").concat(W.substr(3)));else if(W.length>=2&&W.charCodeAt(1)===58){var xe;(xe=W.charCodeAt(0))>=65&&xe<=90&&(W="".concat(String.fromCharCode(xe+32),":").concat(W.substr(2)))}V+=F(W,!0)}return ke&&(V+="?",V+=F(ke,!1)),ie&&(V+="#",V+=x?ie:y(ie,!1)),V}function M(T){try{return decodeURIComponent(T)}catch(x){return T.length>3?T.substr(0,3)+M(T.substr(3)):T}}var E=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function P(T){return T.match(E)?T.replace(E,function(x){return M(x)}):T}var R,B=s(470),X=function(T,x,F){if(F||arguments.length===2)for(var V,D=0,U=x.length;D{for(var s in i)r.o(i,s)&&!r.o(n,s)&&Object.defineProperty(n,s,{enumerable:!0,get:i[s]})},r.o=(n,i)=>Object.prototype.hasOwnProperty.call(n,i),r.r=n=>{typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},r(447)})();var{URI:ct,Utils:ol}=va;function Io(e,t){if(typeof e!="string")throw new TypeError("Expected a string");for(var r=String(e),n="",i=t?!!t.extended:!1,s=t?!!t.globstar:!1,o=!1,l=t&&typeof t.flags=="string"?t.flags:"",u,c=0,h=r.length;c1&&(f==="/"||f===void 0||f==="{"||f===",")&&(m==="/"||m===void 0||m===","||m==="}");b?(m==="/"?c++:f==="/"&&n.endsWith("\\/")&&(n=n.substr(0,n.length-2)),n+="((?:[^/]*(?:/|$))*)"):n+="([^/]*)"}break;default:n+=u}return(!l||!~l.indexOf("g"))&&(n="^"+n+"$"),new RegExp(n,l)}var Le=kt(),Ro="!",Do="/",Oo=function(){function e(t,r){this.globWrappers=[];try{for(var n=0,i=t;n0&&(s[0]===Do&&(s=s.substring(1)),this.globWrappers.push({regexp:Io("**/"+s,{extended:!0,globstar:!0}),include:o}))}this.uris=r}catch(l){this.globWrappers.length=0,this.uris=[]}}return e.prototype.matchesPattern=function(t){for(var r=!1,n=0,i=this.globWrappers;n0;)this.callOnDispose.pop()()},e.prototype.onResourceChange=function(t){var r=this;this.cachedSchemaForResource=void 0;var n=!1;t=We(t);for(var i=[t],s=Object.keys(this.schemasById).map(function(c){return r.schemasById[c]});i.length;)for(var o=i.pop(),l=0;l1&&(i=s[1]),yt(i,".")&&(i=i.substr(0,i.length-1)),new xt({},[Le("json.schema.nocontent","Unable to load schema from '{0}': {1}.",rr(t),i)])})},e.prototype.resolveSchemaContent=function(t,r){var n=this,i=t.errors.slice(0),s=t.schema;if(s.$schema){var o=We(s.$schema);if(o==="http://json-schema.org/draft-03/schema")return this.promise.resolve(new ba({},[Le("json.schema.draft03.notsupported","Draft-03 schemas are not supported.")]));o==="https://json-schema.org/draft/2019-09/schema"?i.push(Le("json.schema.draft201909.notsupported","Draft 2019-09 schemas are not yet fully supported.")):o==="https://json-schema.org/draft/2020-12/schema"&&i.push(Le("json.schema.draft202012.notsupported","Draft 2020-12 schemas are not yet fully supported."))}var l=this.contextService,u=function(p,g){g=decodeURIComponent(g);var N=p;return g[0]==="/"&&(g=g.substring(1)),g.split("/").some(function(w){return w=w.replace(/~1/g,"/").replace(/~0/g,"~"),N=N[w],!N}),N},c=function(p,g,N){return g.anchors||(g.anchors=b(p)),g.anchors.get(N)},h=function(p,g){for(var N in g)g.hasOwnProperty(N)&&!p.hasOwnProperty(N)&&N!=="id"&&N!=="$id"&&(p[N]=g[N])},f=function(p,g,N,w){var v;w===void 0||w.length===0?v=g:w.charAt(0)==="/"?v=u(g,w):v=c(g,N,w),v?h(p,v):i.push(Le("json.schema.invalidid","$ref '{0}' in '{1}' can not be resolved.",w,N.uri))},d=function(p,g,N,w){l&&!/^[A-Za-z][A-Za-z0-9+\-.+]*:\/\/.*/.test(g)&&(g=l.resolveRelativePath(g,w.uri)),g=We(g);var v=n.getOrAddSchemaHandle(g);return v.getUnresolvedSchema().then(function(S){if(w.dependencies.add(g),S.errors.length){var A=N?g+"#"+N:g;i.push(Le("json.schema.problemloadingref","Problems loading reference '{0}': {1}",A,S.errors[0]))}return f(p,S.schema,v,N),m(p,S.schema,v)})},m=function(p,g,N){var w=[];return n.traverseNodes(p,function(v){for(var S=new Set;v.$ref;){var A=v.$ref,y=A.split("#",2);if(delete v.$ref,y[0].length>0){w.push(d(v,y[0],y[1],N));return}else if(!S.has(A)){var C=y[1];f(v,g,N,C),S.add(A)}}}),n.promise.all(w)},b=function(p){var g=new Map;return n.traverseNodes(p,function(N){var w=N.$id||N.id;if(typeof w=="string"&&w.charAt(0)==="#"){var v=w.substring(1);g.has(v)?i.push(Le("json.schema.duplicateid","Duplicate id declaration: '{0}'",w)):g.set(v,N)}}),g};return m(s,s,r).then(function(p){return new ba(s,i)})},e.prototype.traverseNodes=function(t,r){if(!t||typeof t!="object")return Promise.resolve(null);for(var n=new Set,i=function(){for(var c=[],h=0;h0?this.createCombinedSchema(t,s).getResolvedSchema():this.promise.resolve(void 0);return this.cachedSchemaForResource={resource:t,resolvedSchema:o},o},e.prototype.createCombinedSchema=function(t,r){if(r.length===1)return this.getOrAddSchemaHandle(r[0]);var n="schemaservice://combinedSchema/"+encodeURIComponent(t),i={allOf:r.map(function(s){return{$ref:s}})};return this.addSchemaHandle(n,i)},e.prototype.getMatchingSchemas=function(t,r,n){if(n){var i=n.id||"schemaservice://untitled/matchingSchemas/"+Bo++,s=this.addSchemaHandle(i,n);return s.getResolvedSchema().then(function(o){return r.getMatchingSchemas(o.schema).filter(function(l){return!l.inverted})})}return this.getSchemaForResource(t.uri,r).then(function(o){return o?r.getMatchingSchemas(o.schema).filter(function(l){return!l.inverted}):[]})},e}(),Bo=0;function We(e){try{return ct.parse(e).toString()}catch(t){return e}}function $o(e){try{return ct.parse(e).with({fragment:null,query:null}).toString()}catch(t){return e}}function rr(e){try{var t=ct.parse(e);if(t.scheme==="file")return t.fsPath}catch(r){}return e}function Wo(e,t){var r=[],n=[],i=[],s=-1,o=ot(e.getText(),!1),l=o.scan();function u(M){r.push(M),n.push(i.length)}for(;l!==17;){switch(l){case 1:case 3:{var c=e.positionAt(o.getTokenOffset()).line,h={startLine:c,endLine:c,kind:l===1?"object":"array"};i.push(h);break}case 2:case 4:{var f=l===2?"object":"array";if(i.length>0&&i[i.length-1].kind===f){var h=i.pop(),d=e.positionAt(o.getTokenOffset()).line;h&&d>h.startLine+1&&s!==h.startLine&&(h.endLine=d-1,u(h),s=h.startLine)}break}case 13:{var c=e.positionAt(o.getTokenOffset()).line,m=e.positionAt(o.getTokenOffset()+o.getTokenLength()).line;o.getTokenError()===1&&c+1=0&&i[g].kind!==_t.Region;)g--;if(g>=0){var h=i[g];i.length=g,d>h.startLine&&s!==h.startLine&&(h.endLine=d,u(h),s=h.startLine)}}}break}}l=o.scan()}var N=t&&t.rangeLimit;if(typeof N!="number"||r.length<=N)return r;t&&t.onRangeLimitExceeded&&t.onRangeLimitExceeded(e.uri);for(var w=[],v=0,S=n;vN){C=g;break}y+=_}}for(var L=[],g=0;g=f&&u<=d&&h.push(i(f,d)),h.push(i(c.offset,c.offset+c.length));break;case"number":case"boolean":case"null":case"property":h.push(i(c.offset,c.offset+c.length));break}if(c.type==="property"||c.parent&&c.parent.type==="array"){var m=o(c.offset+c.length,5);m!==-1&&h.push(i(c.offset,m))}c=c.parent}for(var b=void 0,p=h.length-1;p>=0;p--)b=Xt.create(h[p],b);return b||(b=Xt.create(q.create(l,l))),b}function i(l,u){return q.create(e.positionAt(l),e.positionAt(u))}var s=ot(e.getText(),!0);function o(l,u){s.setPosition(l);var c=s.scan();return c===u?s.getTokenOffset()+s.getTokenLength():-1}return t.map(n)}function Ho(e,t){var r=[];return t.visit(function(n){var i;if(n.type==="property"&&n.keyNode.value==="$ref"&&((i=n.valueNode)===null||i===void 0?void 0:i.type)==="string"){var s=n.valueNode.value,o=Go(t,s);if(o){var l=e.positionAt(o.offset);r.push({target:"".concat(e.uri,"#").concat(l.line+1,",").concat(l.character+1),range:zo(e,n.valueNode)})}}return!0}),Promise.resolve(r)}function zo(e,t){return q.create(e.positionAt(t.offset+1),e.positionAt(t.offset+t.length-1))}function Go(e,t){var r=Jo(t);return r?tn(r,e.root):null}function tn(e,t){if(!t)return null;if(e.length===0)return t;var r=e.shift();if(t&&t.type==="object"){var n=t.properties.find(function(o){return o.keyNode.value===r});return n?tn(e,n.valueNode):null}else if(t&&t.type==="array"&&r.match(/^(0|[1-9][0-9]*)$/)){var i=Number.parseInt(r),s=t.items[i];return s?tn(e,s):null}return null}function Jo(e){return e==="#"?[]:e[0]!=="#"||e[1]!=="/"?null:e.substring(2).split(/\//).map(Zo)}function Zo(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function Xo(e){var t=e.promiseConstructor||Promise,r=new jo(e.schemaRequestService,e.workspaceContext,t);r.setSchemaContributions(Kr);var n=new So(r,e.contributions,t,e.clientCapabilities),i=new Ao(r,e.contributions,t),s=new Fo(r),o=new ko(r,t);return{configure:function(l){r.clearExternalSchemas(),l.schemas&&l.schemas.forEach(function(u){r.registerExternalSchema(u.uri,u.fileMatch,u.schema)}),o.configure(l)},resetSchema:function(l){return r.onResourceChange(l)},doValidation:o.doValidation.bind(o),getLanguageStatus:o.getLanguageStatus.bind(o),parseJSONDocument:function(l){return _o(l,{collectComments:!0})},newJSONDocument:function(l,u){return Co(l,u)},getMatchingSchemas:r.getMatchingSchemas.bind(r),doResolve:n.doResolve.bind(n),doComplete:n.doComplete.bind(n),findDocumentSymbols:s.findDocumentSymbols.bind(s),findDocumentSymbols2:s.findDocumentSymbols2.bind(s),findDocumentColors:s.findDocumentColors.bind(s),getColorPresentations:s.getColorPresentations.bind(s),doHover:i.doHover.bind(i),getFoldingRanges:Wo,getSelectionRanges:qo,findDefinition:function(){return Promise.resolve([])},findLinks:Ho,format:function(l,u,c){var h=void 0;if(u){var f=l.offsetAt(u.start),d=l.offsetAt(u.end)-f;h={offset:f,length:d}}var m={tabSize:c?c.tabSize:4,insertSpaces:(c==null?void 0:c.insertSpaces)===!0,insertFinalNewline:(c==null?void 0:c.insertFinalNewline)===!0,eol:` `};return so(l.getText(),h,m).map(function(b){return _e.replace(q.create(l.positionAt(b.offset),l.positionAt(b.offset+b.length)),b.content)})}}}var wa;typeof fetch!="undefined"&&(wa=function(e){return fetch(e).then(t=>t.text())});var Yo=class{constructor(e,t){Mt(this,"_ctx");Mt(this,"_languageService");Mt(this,"_languageSettings");Mt(this,"_languageId");this._ctx=e,this._languageSettings=t.languageSettings,this._languageId=t.languageId,this._languageService=Xo({workspaceContext:{resolveRelativePath:(r,n)=>{const i=n.substr(0,n.lastIndexOf("/")+1);return el(i,r)}},schemaRequestService:t.enableSchemaRequest?wa:void 0}),this._languageService.configure(this._languageSettings)}doValidation(e){return ve(this,null,function*(){let t=this._getTextDocument(e);if(t){let r=this._languageService.parseJSONDocument(t);return this._languageService.doValidation(t,r,this._languageSettings)}return Promise.resolve([])})}doComplete(e,t){return ve(this,null,function*(){let r=this._getTextDocument(e);if(!r)return null;let n=this._languageService.parseJSONDocument(r);return this._languageService.doComplete(r,t,n)})}doResolve(e){return ve(this,null,function*(){return this._languageService.doResolve(e)})}doHover(e,t){return ve(this,null,function*(){let r=this._getTextDocument(e);if(!r)return null;let n=this._languageService.parseJSONDocument(r);return this._languageService.doHover(r,t,n)})}format(e,t,r){return ve(this,null,function*(){let n=this._getTextDocument(e);if(!n)return[];let i=this._languageService.format(n,t,r);return Promise.resolve(i)})}resetSchema(e){return ve(this,null,function*(){return Promise.resolve(this._languageService.resetSchema(e))})}findDocumentSymbols(e){return ve(this,null,function*(){let t=this._getTextDocument(e);if(!t)return[];let r=this._languageService.parseJSONDocument(t),n=this._languageService.findDocumentSymbols(t,r);return Promise.resolve(n)})}findDocumentColors(e){return ve(this,null,function*(){let t=this._getTextDocument(e);if(!t)return[];let r=this._languageService.parseJSONDocument(t),n=this._languageService.findDocumentColors(t,r);return Promise.resolve(n)})}getColorPresentations(e,t,r){return ve(this,null,function*(){let n=this._getTextDocument(e);if(!n)return[];let i=this._languageService.parseJSONDocument(n),s=this._languageService.getColorPresentations(n,i,t,r);return Promise.resolve(s)})}getFoldingRanges(e,t){return ve(this,null,function*(){let r=this._getTextDocument(e);if(!r)return[];let n=this._languageService.getFoldingRanges(r,t);return Promise.resolve(n)})}getSelectionRanges(e,t){return ve(this,null,function*(){let r=this._getTextDocument(e);if(!r)return[];let n=this._languageService.parseJSONDocument(r),i=this._languageService.getSelectionRanges(r,t,n);return Promise.resolve(i)})}_getTextDocument(e){let t=this._ctx.getMirrorModels();for(let r of t)if(r.uri.toString()===e)return Hr.create(e,this._languageId,r.version,r.getValue());return null}},Qo="/".charCodeAt(0),rn=".".charCodeAt(0);function Ko(e){return e.charCodeAt(0)===Qo}function el(e,t){if(Ko(t)){const r=ct.parse(e),n=t.split("/");return r.with({path:ya(n)}).toString()}return tl(e,t)}function ya(e){const t=[];for(const n of e)n.length===0||n.length===1&&n.charCodeAt(0)===rn||(n.length===2&&n.charCodeAt(0)===rn&&n.charCodeAt(1)===rn?t.pop():t.push(n));e.length>1&&e[e.length-1].length===0&&t.push("");let r=t.join("/");return e[0].length===0&&(r="/"+r),r}function tl(e,...t){const r=ct.parse(e),n=r.path.split("/");for(let i of t)n.push(...i.split("/"));return r.with({path:ya(n)}).toString()}self.onmessage=()=>{Li((e,t)=>new Yo(e,t))}})();