/*!--------------------------------------------------------
 * Copyright (C) Microsoft Corporation. All rights reserved.
 *--------------------------------------------------------*/
(function(){var e=["exports","require","vs/base/common/lifecycle","vs/base/common/event","vs/base/common/platform","vs/base/common/errors","vs/base/common/objects","vs/base/common/cancellation","vs/base/common/types","vs/base/common/uri","vs/base/common/async","vs/base/common/functional","vs/base/common/buffer","vs/base/common/path","vs/nls!vs/base/node/processes","vs/base/common/strings","vs/base/common/linkedList","vs/base/common/iterator","vs/base/common/amd","vs/base/common/console","vs/base/node/decoder","vs/base/parts/ipc/common/ipc","vs/base/common/process","vs/base/common/extpath","vs/base/node/processes","child_process","vs/base/parts/ipc/node/ipc.cp","vs/platform/instantiation/common/instantiation","vs/platform/log/common/log","vs/platform/telemetry/node/appInsightsAppender","vs/platform/telemetry/node/telemetryIpc","string_decoder","fs","vs/workbench/contrib/debug/node/telemetryApp","applicationinsights","vs/nls!vs/workbench/contrib/debug/node/telemetryApp","vs/nls"],t=function(t){
for(var n=[],s=0,r=t.length;s<r;s++)n[s]=e[t[s]];return n};define(e[12],t([1,0]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n="undefined"!=typeof Buffer;class s{static alloc(e){return new s(n?Buffer.allocUnsafe(e):new Uint8Array(e))}static wrap(e){return new s(e)}static fromString(e){return new s(Buffer.from(e))}static concat(e,t){if(void 0===t){t=0;for(let n=0,s=e.length;n<s;n++)t+=e[n].byteLength}const n=s.alloc(t);let r=0;for(let t=0,s=e.length;t<s;t++){const s=e[t];n.set(s,r),r+=s.byteLength}return n}constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}toString(){return this.buffer.toString()}slice(e,t){return new s(this.buffer.slice(e,t))}set(e,t){this.buffer.set(e.buffer,t)}readUint32BE(e){return function(e,t){return e[t]*Math.pow(2,24)+e[t+1]*Math.pow(2,16)+e[t+2]*Math.pow(2,8)+e[t+3]}(this.buffer,e)}writeUint32BE(e,t){!function(e,t,n){e[n+3]=t,t>>>=8,e[n+2]=t,t>>>=8,e[n+1]=t,t>>>=8,e[n]=t}(this.buffer,e,t)}readUint8(e){return function(e,t){
return e[t]}(this.buffer,e)}writeUint8(e,t){!function(e,t,n){e[n]=t}(this.buffer,e,t)}}t.VSBuffer=s}),define(e[5],t([1,0]),function(e,t){"use strict";function n(e){return e instanceof Error&&e.name===r&&e.message===r}Object.defineProperty(t,"__esModule",{value:!0});class s{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{if(e.stack)throw new Error(e.message+"\n\n"+e.stack);throw e},0)}}addListener(e){return this.listeners.push(e),()=>{this._removeListener(e)}}emit(e){this.listeners.forEach(t=>{t(e)})}_removeListener(e){this.listeners.splice(this.listeners.indexOf(e),1)}setUnexpectedErrorHandler(e){this.unexpectedErrorHandler=e}getUnexpectedErrorHandler(){return this.unexpectedErrorHandler}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}}t.ErrorHandler=s,t.errorHandler=new s,t.setUnexpectedErrorHandler=function(e){t.errorHandler.setUnexpectedErrorHandler(e)},t.onUnexpectedError=function(e){
n(e)||t.errorHandler.onUnexpectedError(e)},t.onUnexpectedExternalError=function(e){n(e)||t.errorHandler.onUnexpectedExternalError(e)},t.transformErrorForSerialization=function(e){if(e instanceof Error){let{name:t,message:n}=e;return{$isError:!0,name:t,message:n,stack:e.stacktrace||e.stack}}return e};const r="Canceled";t.isPromiseCanceledError=n,t.canceled=function(){const e=new Error(r);return e.name=e.message,e},t.illegalArgument=function(e){return e?new Error(`Illegal argument: ${e}`):new Error("Illegal argument")},t.illegalState=function(e){return e?new Error(`Illegal state: ${e}`):new Error("Illegal state")},t.readonly=function(e){return e?new Error(`readonly property '${e} cannot be changed'`):new Error("readonly property cannot be changed")},t.disposed=function(e){const t=new Error(`${e} has been disposed`);return t.name="DISPOSED",t},t.getErrorMessage=function(e){return e?e.message?e.message:e.stack?e.stack.split("\n")[0]:String(e):"Error"}}),define(e[11],t([1,0]),function(e,t){"use strict"
;Object.defineProperty(t,"__esModule",{value:!0}),t.once=function(e){const t=this;let n,s=!1;return function(){return s?n:(s=!0,n=e.apply(t,arguments))}}}),define(e[17],t([1,0]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FIN={done:!0,value:void 0};var n;!function(e){function n(e,t){for(let n=e.next();!n.done;n=e.next())t(n.value)}const s={next:()=>t.FIN};e.empty=function(){return s},e.fromArray=function(e,n=0,s=e.length){return{next:()=>n>=s?t.FIN:{done:!1,value:e[n++]}}},e.from=function(t){return t?Array.isArray(t)?e.fromArray(t):t:e.empty()},e.map=function(e,n){return{next(){const s=e.next();return s.done?t.FIN:{done:!1,value:n(s.value)}}}},e.filter=function(e,n){return{next(){for(;;){const s=e.next();if(s.done)return t.FIN;if(n(s.value))return{done:!1,value:s.value}}}}},e.forEach=n,e.collect=function(e){const t=[];return n(e,e=>t.push(e)),t}}(n=t.Iterator||(t.Iterator={})),t.getSequenceIterator=function(e){return Array.isArray(e)?n.fromArray(e):e};class s{
constructor(e,t=0,n=e.length,s=t-1){this.items=e,this.start=t,this.end=n,this.index=s}first(){return this.index=this.start,this.current()}next(){return this.index=Math.min(this.index+1,this.end),this.current()}current(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]}}t.ArrayIterator=s;class r extends s{constructor(e,t=0,n=e.length,s=t-1){super(e,t,n,s)}current(){return super.current()}previous(){return this.index=Math.max(this.index-1,this.start-1),this.current()}first(){return this.index=this.start,this.current()}last(){return this.index=this.end-1,this.current()}parent(){return null}}t.ArrayNavigator=r;class i{constructor(e,t){this.iterator=e,this.fn=t}next(){return this.fn(this.iterator.next())}}t.MappedIterator=i;class o extends i{constructor(e,t){super(e,t),this.navigator=e}current(){return this.fn(this.navigator.current())}previous(){return this.fn(this.navigator.previous())}parent(){return this.fn(this.navigator.parent())}first(){
return this.fn(this.navigator.first())}last(){return this.fn(this.navigator.last())}next(){return this.fn(this.navigator.next())}}t.MappedNavigator=o}),define(e[2],t([1,0,11]),function(e,t,n){"use strict";function s(e,...t){if(Array.isArray(e))return e.forEach(e=>e&&e.dispose()),[];if(0!==t.length)return s(e),s(t),[];if(e)return e.dispose(),e}Object.defineProperty(t,"__esModule",{value:!0}),t.isDisposable=function(e){return"function"==typeof e.dispose&&0===e.dispose.length},t.dispose=s,t.combinedDisposable=function(e){return{dispose:()=>s(e)}},t.toDisposable=function(e){return{dispose(){e()}}};class r{constructor(){this._toDispose=[],this._lifecycle_disposable_isDisposed=!1}get toDispose(){return this._toDispose}dispose(){this._lifecycle_disposable_isDisposed=!0,this._toDispose=s(this._toDispose)}_register(e){return this._lifecycle_disposable_isDisposed?(console.warn("Registering disposable on object that has already been disposed."),e.dispose()):this._toDispose.push(e),e}}r.None=Object.freeze({dispose(){}}),
t.Disposable=r;class i{constructor(){this.references=Object.create(null)}acquire(e){let t=this.references[e];t||(t=this.references[e]={counter:0,object:this.createReferencedObject(e)});const{object:s}=t,r=n.once(()=>{0==--t.counter&&(this.destroyReferencedObject(e,t.object),delete this.references[e])});return t.counter++,{object:s,dispose:r}}}t.ReferenceCollection=i;class o{constructor(e){this.object=e}dispose(){}}t.ImmortalReference=o}),define(e[16],t([1,0,17]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class s{constructor(e){this.element=e}}class r{constructor(){this._size=0}get size(){return this._size}isEmpty(){return!this._first}clear(){this._first=void 0,this._last=void 0,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const n=new s(e);if(this._first)if(t){const e=this._last;this._last=n,n.prev=e,e.next=n}else{const e=this._first;this._first=n,n.next=e,e.prev=n}else this._first=n,this._last=n;return this._size+=1,
this._remove.bind(this,n)}shift(){if(this._first){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last){const e=this._last.element;return this._remove(this._last),e}}_remove(e){let t=this._first;for(;t instanceof s;){if(t===e){if(t.prev&&t.next){const e=t.prev;e.next=t.next,t.next.prev=e}else t.prev||t.next?t.next?t.prev||(this._first=this._first.next,this._first.prev=void 0):(this._last=this._last.prev,this._last.next=void 0):(this._first=void 0,this._last=void 0);this._size-=1;break}t=t.next}}iterator(){let e,t=this._first;return{next:()=>t?(e?e.value=t.element:e={done:!1,value:t.element},t=t.next,e):n.FIN}}toArray(){const e=[];for(let t=this._first;t instanceof s;t=t.next)e.push(t.element);return e}}t.LinkedList=r});var n=this&&this.__awaiter||function(e,t,n,s){return new(n||(n=Promise))(function(r,i){function o(e){try{l(s.next(e))}catch(e){i(e)}}function c(e){try{l(s.throw(e))}catch(e){i(e)}}function l(e){e.done?r(e.value):new n(function(t){t(e.value)}).then(o,c)}
l((s=s.apply(e,t||[])).next())})};define(e[3],t([1,0,5,11,2,16]),function(e,t,s,r,i,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c;!function(e){function t(e){return(t,n=null,s)=>{let r,i=!1;return r=e(e=>{if(!i)return r?r.dispose():i=!0,t.call(n,e)},null,s),i&&r.dispose(),r}}function n(e,t){return c((n,s=null,r)=>e(e=>n.call(s,t(e)),null,r))}function s(e,t){return c((n,s=null,r)=>e(e=>{t(e),n.call(s,e)},null,r))}function r(e,t){return c((n,s=null,r)=>e(e=>t(e)&&n.call(s,e),null,r))}function o(e,t,s){let r=s;return n(e,e=>r=t(r,e))}function c(e){let t;const n=new u({onFirstListenerAdd(){t=e(n.fire,n)},onLastListenerRemove(){t.dispose()}});return n.event}function l(e){let t,n=!0;return r(e,e=>{const s=n||e!==t;return n=!1,t=e,s})}const a={dispose(){}};e.None=function(){return a},e.once=t,e.map=n,e.forEach=s,e.filter=r,e.signal=function(e){return e},e.any=function(...e){return(t,n=null,s)=>i.combinedDisposable(e.map(e=>e(e=>t.call(n,e),null,s)))},e.reduce=o,e.snapshot=c,
e.debounce=function(e,t,n=100,s=!1,r){let i,o=void 0,c=void 0,l=0;const a=new u({leakWarningThreshold:r,onFirstListenerAdd(){i=e(e=>{l++,o=t(o,e),s&&!c&&a.fire(o),clearTimeout(c),c=setTimeout(()=>{const e=o;o=void 0,c=void 0,(!s||l>1)&&a.fire(e),l=0},n)})},onLastListenerRemove(){i.dispose()}});return a.event},e.stopwatch=function(e){const s=(new Date).getTime();return n(t(e),e=>(new Date).getTime()-s)},e.latch=l,e.buffer=function(e,t=!1,n=[]){let s=n.slice(),r=e(e=>{s?s.push(e):o.fire(e)});const i=()=>{s&&s.forEach(e=>o.fire(e)),s=null},o=new u({onFirstListenerAdd(){r||(r=e(e=>o.fire(e)))},onFirstListenerDidAdd(){s&&(t?setTimeout(i):i())},onLastListenerRemove(){r&&r.dispose(),r=null}});return o.event},e.echo=function(e,t=!1,n=[]){n=n.slice(),e(e=>{n.push(e),r.fire(e)});const s=(e,t)=>n.forEach(n=>e.call(t,n)),r=new u({onListenerDidAdd(e,n,r){t?setTimeout(()=>s(n,r)):s(n,r)}});return r.event};class h{constructor(e){this.event=e}map(e){return new h(n(this.event,e))}forEach(e){return new h(s(this.event,e))}
filter(e){return new h(r(this.event,e))}reduce(e,t){return new h(o(this.event,e,t))}latch(){return new h(l(this.event))}on(e,t,n){return this.event(e,t,n)}once(e,n,s){return t(this.event)(e,n,s)}}e.chain=function(e){return new h(e)},e.fromNodeEventEmitter=function(e,t,n=(e=>e)){const s=(...e)=>r.fire(n(...e)),r=new u({onFirstListenerAdd:()=>e.on(t,s),onLastListenerRemove:()=>e.removeListener(t,s)});return r.event},e.fromPromise=function(e){const t=new u;let n=!1;return e.then(void 0,()=>null).then(()=>{n?t.fire(void 0):setTimeout(()=>t.fire(void 0),0)}),n=!0,t.event},e.toPromise=function(e){return new Promise(n=>t(e)(n))}}(c=t.Event||(t.Event={}));let l=-1;t.setGlobalLeakWarningThreshold=function(e){const t=l;return l=e,{dispose(){l=t}}};class a{constructor(e,t=Math.random().toString(18).slice(2,5)){this.customThreshold=e,this.name=t,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(e){let t=l;if("number"==typeof this.customThreshold&&(t=this.customThreshold),t<=0||e<t)return
;this._stacks||(this._stacks=new Map);const n=(new Error).stack.split("\n").slice(3).join("\n"),s=this._stacks.get(n)||0;if(this._stacks.set(n,s+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=.5*t;let n,s=0;this._stacks.forEach((e,t)=>{(!n||s<e)&&(n=t,s=e)}),console.warn(`[${this.name}] potential listener LEAK detected, having ${e} listeners already. MOST frequent listener (${s}):`),console.warn(n)}return()=>{const e=this._stacks.get(n)||0;this._stacks.set(n,e-1)}}}class u{constructor(e){this._disposed=!1,this._options=e,this._leakageMon=l>0?new a(this._options&&this._options.leakWarningThreshold):void 0}get event(){return this._event||(this._event=((e,t,n)=>{this._listeners||(this._listeners=new o.LinkedList);const s=this._listeners.isEmpty();s&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const r=this._listeners.push(t?[e,t]:e);s&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),
this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,e,t);let i;this._leakageMon&&(i=this._leakageMon.check(this._listeners.size));let c;return c={dispose:()=>{if(i&&i(),c.dispose=u._noop,!this._disposed&&(r(),this._options&&this._options.onLastListenerRemove)){this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)}}},Array.isArray(n)&&n.push(c),c})),this._event}fire(e){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=[]);for(let t=this._listeners.iterator(),n=t.next();!n.done;n=t.next())this._deliveryQueue.push([n.value,e]);for(;this._deliveryQueue.length>0;){const[e,t]=this._deliveryQueue.shift();try{"function"==typeof e?e.call(void 0,t):e[0].call(e[1],t)}catch(e){s.onUnexpectedError(e)}}}}dispose(){this._listeners&&(this._listeners=void 0),this._deliveryQueue&&(this._deliveryQueue.length=0),this._leakageMon&&this._leakageMon.dispose(),this._disposed=!0}}u._noop=function(){},t.Emitter=u;class h extends u{fireAsync(e){
return n(this,void 0,void 0,function*(){if(this._listeners){this._asyncDeliveryQueue||(this._asyncDeliveryQueue=[]);for(let t=this._listeners.iterator(),n=t.next();!n.done;n=t.next()){const t=[];this._asyncDeliveryQueue.push([n.value,e(t,"function"==typeof n.value?n.value:n.value[0]),t])}for(;this._asyncDeliveryQueue.length>0;){const[e,t,n]=this._asyncDeliveryQueue.shift();try{"function"==typeof e?e.call(void 0,t):e[0].call(e[1],t)}catch(e){s.onUnexpectedError(e);continue}Object.freeze(n),yield Promise.all(n)}}})}}t.AsyncEmitter=h;class f{constructor(){this.hasListeners=!1,this.events=[],this.emitter=new u({onFirstListenerAdd:()=>this.onFirstListenerAdd(),onLastListenerRemove:()=>this.onLastListenerRemove()})}get event(){return this.emitter.event}add(e){const t={event:e,listener:null};this.events.push(t),this.hasListeners&&this.hook(t);return i.toDisposable(r.once(()=>{this.hasListeners&&this.unhook(t);const e=this.events.indexOf(t);this.events.splice(e,1)}))}onFirstListenerAdd(){this.hasListeners=!0,
this.events.forEach(e=>this.hook(e))}onLastListenerRemove(){this.hasListeners=!1,this.events.forEach(e=>this.unhook(e))}hook(e){e.listener=e.event(e=>this.emitter.fire(e))}unhook(e){e.listener&&e.listener.dispose(),e.listener=null}dispose(){this.emitter.dispose()}}t.EventMultiplexer=f;class d{constructor(){this.buffers=[]}wrapEvent(e){return(t,n,s)=>e(e=>{const s=this.buffers[this.buffers.length-1];s?s.push(()=>t.call(n,e)):t.call(n,e)},void 0,s)}bufferEvents(e){const t=[];this.buffers.push(t);const n=e();return this.buffers.pop(),t.forEach(e=>e()),n}}t.EventBufferer=d;class p{constructor(){this.listening=!1,this.inputEvent=c.None,this.inputEventListener=i.Disposable.None,this.emitter=new u({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),
this.inputEventListener=e(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}t.Relay=p}),define(e[7],t([1,0,3]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=Object.freeze(function(e,t){const n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}});var r;!function(e){e.isCancellationToken=function(t){return t===e.None||t===e.Cancelled||t instanceof i||!(!t||"object"!=typeof t)&&"boolean"==typeof t.isCancellationRequested&&"function"==typeof t.onCancellationRequested},e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:n.Event.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:s})}(r=t.CancellationToken||(t.CancellationToken={}));class i{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?s:(this._emitter||(this._emitter=new n.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class o{get token(){return this._token||(this._token=new i),this._token}cancel(){this._token?this._token instanceof i&&this._token.cancel():this._token=r.Cancelled}dispose(){this._token?this._token instanceof i&&this._token.dispose():this._token=r.None}}t.CancellationTokenSource=o}),define(e[10],t([1,0,7,5,3,2]),function(e,t,s,r,i,o){"use strict";function c(e){return e&&"function"==typeof e.then}function l(e){const t=new s.CancellationTokenSource,n=e(t.token),i=new Promise((e,s)=>{t.token.onCancellationRequested(()=>{s(r.canceled())}),Promise.resolve(n).then(n=>{t.dispose(),e(n)},e=>{t.dispose(),s(e)})});return new class{cancel(){t.cancel()}then(e,t){return i.then(e,t)}catch(e){return this.then(void 0,e)}finally(e){return i.finally(e)}}}function a(e,t){return t?new Promise((n,s)=>{const i=setTimeout(n,e)
;t.onCancellationRequested(()=>{clearTimeout(i),s(r.canceled())})}):l(t=>a(e,t))}function u(e){function t(i){void 0!==i&&null!==i&&n.push(i);const o=s<r?e[s++]():null;return o?o.then(t):Promise.resolve(n)}const n=[];let s=0;const r=e.length;return Promise.resolve(null).then(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.isThenable=c,t.createCancelablePromise=l,t.asPromise=function(e){return new Promise((t,n)=>{const s=e();c(s)?s.then(t,n):t(s)})};class h{constructor(){this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}queue(e){if(this.activePromise){if(this.queuedPromiseFactory=e,!this.queuedPromise){const e=()=>{this.queuedPromise=null;const e=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=null,e};this.queuedPromise=new Promise(t=>{this.activePromise.then(e,e).then(t)})}return new Promise((e,t)=>{this.queuedPromise.then(e,t)})}return this.activePromise=e(),new Promise((e,t)=>{this.activePromise.then(t=>{this.activePromise=null,e(t)},e=>{
this.activePromise=null,t(e)})})}}t.Throttler=h;class f{constructor(){this.current=Promise.resolve(null)}queue(e){return this.current=this.current.then(()=>e())}}t.Sequencer=f;class d{constructor(e){this.defaultDelay=e,this.timeout=null,this.completionPromise=null,this.doResolve=null,this.task=null}trigger(e,t=this.defaultDelay){return this.task=e,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise((e,t)=>{this.doResolve=e,this.doReject=t}).then(()=>{this.completionPromise=null,this.doResolve=null;const e=this.task;return this.task=null,e()})),this.timeout=setTimeout(()=>{this.timeout=null,this.doResolve(null)},t),this.completionPromise}isTriggered(){return null!==this.timeout}cancel(){this.cancelTimeout(),this.completionPromise&&(this.doReject(r.canceled()),this.completionPromise=null)}cancelTimeout(){null!==this.timeout&&(clearTimeout(this.timeout),this.timeout=null)}dispose(){this.cancelTimeout()}}t.Delayer=d;class p{constructor(e){this.delayer=new d(e),this.throttler=new h}
trigger(e,t){return this.delayer.trigger(()=>this.throttler.queue(e),t)}isTriggered(){return this.delayer.isTriggered()}cancel(){this.delayer.cancel()}dispose(){this.delayer.dispose()}}t.ThrottledDelayer=p;class g{constructor(){this._isOpen=!1,this._promise=new Promise((e,t)=>{this._completePromise=e})}isOpen(){return this._isOpen}open(){this._isOpen=!0,this._completePromise(!0)}wait(){return this._promise}}t.Barrier=g,t.timeout=a,t.disposableTimeout=function(e,t=0){const n=setTimeout(e,t);return o.toDisposable(()=>clearTimeout(n))},t.ignoreErrors=function(e){return e.then(void 0,e=>void 0)},t.sequence=u,t.first=function(e,t=(e=>!!e),n=null){let s=0;const r=e.length,i=()=>{if(s>=r)return Promise.resolve(n);const o=e[s++];return Promise.resolve(o()).then(e=>t(e)?Promise.resolve(e):i())};return i()};class m{constructor(e){this._size=0,this.maxDegreeOfParalellism=e,this.outstandingPromises=[],this.runningPromises=0,this._onFinished=new i.Emitter}get onFinished(){return this._onFinished.event}get size(){
return this._size}queue(e){return this._size++,new Promise((t,n)=>{this.outstandingPromises.push({factory:e,c:t,e:n}),this.consume()})}consume(){for(;this.outstandingPromises.length&&this.runningPromises<this.maxDegreeOfParalellism;){const e=this.outstandingPromises.shift();this.runningPromises++;const t=e.factory();t.then(e.c,e.e),t.then(()=>this.consumed(),()=>this.consumed())}}consumed(){this._size--,this.runningPromises--,this.outstandingPromises.length>0?this.consume():this._onFinished.fire()}dispose(){this._onFinished.dispose()}}t.Limiter=m;class v extends m{constructor(){super(1)}}t.Queue=v;class y{constructor(){this.queues=Object.create(null)}queueFor(e){const t=e.toString();if(!this.queues[t]){const e=new v;e.onFinished(()=>{e.dispose(),delete this.queues[t]}),this.queues[t]=e}return this.queues[t]}}t.ResourceQueue=y;class C extends o.Disposable{constructor(e,t){super(),this._token=-1,"function"==typeof e&&"number"==typeof t&&this.setIfNotSet(e,t)}dispose(){this.cancel(),super.dispose()}cancel(){
-1!==this._token&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(e,t){this.cancel(),this._token=setTimeout(()=>{this._token=-1,e()},t)}setIfNotSet(e,t){-1===this._token&&(this._token=setTimeout(()=>{this._token=-1,e()},t))}}t.TimeoutTimer=C;class b extends o.Disposable{constructor(){super(),this._token=-1}dispose(){this.cancel(),super.dispose()}cancel(){-1!==this._token&&(clearInterval(this._token),this._token=-1)}cancelAndSet(e,t){this.cancel(),this._token=setInterval(()=>{e()},t)}}t.IntervalTimer=b;class w{constructor(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(e=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)}isScheduled(){return-1!==this.timeoutToken}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){this.runner&&this.runner()}}t.RunOnceScheduler=w
;class _ extends w{constructor(e,t){super(e,t),this.units=[]}work(e){this.units.push(e),this.isScheduled()||this.schedule()}doRun(){const e=this.units;this.units=[],this.runner&&this.runner(e)}dispose(){this.units=[],super.dispose()}}t.RunOnceWorker=_,t.nfcall=function(e,...t){return new Promise((n,s)=>e(...t,(e,t)=>e?s(e):n(t)))},t.ninvoke=function(e,t,...n){return new Promise((s,r)=>t.call(e,...n,(e,t)=>e?r(e):s(t)))},function(){if("function"!=typeof requestIdleCallback||"function"!=typeof cancelIdleCallback){const e=Object.freeze({didTimeout:!0,timeRemaining:()=>15});t.runWhenIdle=(t=>{const n=setTimeout(()=>t(e));let s=!1;return{dispose(){s||(s=!0,clearTimeout(n))}}})}else t.runWhenIdle=((e,t)=>{const n=requestIdleCallback(e,"number"==typeof t?{timeout:t}:void 0);let s=!1;return{dispose(){s||(s=!0,cancelIdleCallback(n))}}})}();class A{constructor(e){this._didRun=!1,this._executor=(()=>{try{this._value=e()}catch(e){this._error=e}finally{this._didRun=!0}}),this._handle=t.runWhenIdle(()=>this._executor())}
dispose(){this._handle.dispose()}getValue(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value}}t.IdleValue=A,t.retry=function(e,t,s){return n(this,void 0,void 0,function*(){let n;for(let r=0;r<s;r++)try{return yield e()}catch(e){n=e,yield a(t)}return Promise.reject(n)})}}),define(e[4],t([1,0]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=!1,s=!1,r=!1,i=!1,o=!1,c=void 0,l="en",a=void 0;const u="undefined"!=typeof process&&void 0!==process.versions&&void 0!==process.versions.electron&&"renderer"===process.type;if("object"!=typeof navigator||u){if("object"==typeof process){n="win32"===process.platform,s="darwin"===process.platform,r="linux"===process.platform,c="en",l="en";const e=process.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e),n=t.availableLanguages["*"];c=t.locale,l=n||"en",a=t._translationsConfigFile}catch(e){}i=!0}}else{const e=navigator.userAgent;n=e.indexOf("Windows")>=0,s=e.indexOf("Macintosh")>=0,
r=e.indexOf("Linux")>=0,o=!0,l=c=navigator.language}!function(e){e[e.Web=0]="Web",e[e.Mac=1]="Mac",e[e.Linux=2]="Linux",e[e.Windows=3]="Windows"}(t.Platform||(t.Platform={})),t.PlatformToString=function(e){switch(e){case 0:return"Web";case 1:return"Mac";case 2:return"Linux";case 3:return"Windows"}};let h=0;i&&(s?h=1:n?h=3:r&&(h=2)),t.isWindows=n,t.isMacintosh=s,t.isLinux=r,t.isNative=i,t.isWeb=o,t.platform=h,t.isRootUser=function(){return i&&!n&&0===process.getuid()},t.language=l;!function(e){e.value=function(){return t.language},e.isDefaultVariant=function(){return 2===t.language.length?"en"===t.language:t.language.length>=3&&"e"===t.language[0]&&"n"===t.language[1]&&"-"===t.language[2]},e.isDefault=function(){return"en"===t.language}}(t.Language||(t.Language={})),t.locale=c,t.translationsConfigFile=a;const f="object"==typeof self?self:"object"==typeof global?global:{};t.globals=f;let d=null;t.setImmediate=function(e){
return null===d&&(d=t.globals.setImmediate?t.globals.setImmediate.bind(t.globals):"undefined"!=typeof process&&"function"==typeof process.nextTick?process.nextTick.bind(process):t.globals.setTimeout.bind(t.globals)),d(e)};!function(e){e[e.Windows=1]="Windows",e[e.Macintosh=2]="Macintosh",e[e.Linux=3]="Linux"}(t.OperatingSystem||(t.OperatingSystem={})),t.OS=s?2:n?1:3}),define(e[22],t([1,0,4]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s="undefined"==typeof process?{cwd:()=>"/",env:Object.create(null),get platform(){return n.isWindows?"win32":n.isMacintosh?"darwin":"linux"},nextTick:e=>n.setImmediate(e)}:process;t.cwd=s.cwd,t.env=s.env,t.platform=s.platform,t.nextTick=s.nextTick}),define(e[13],t([1,0,22]),function(e,t,n){"use strict";function s(e,t){if("string"!=typeof e)throw new m(t,"string",e)}function r(e){return e===p||e===g}function i(e){return e===p}function o(e){return e>=a&&e<=h||e>=u&&e<=f}function c(e,t,n,s){let r,i="",o=0,c=-1,l=0
;for(let a=0;a<=e.length;++a){if(a<e.length)r=e.charCodeAt(a);else{if(s(r))break;r=p}if(s(r)){if(c===a-1||1===l);else if(c!==a-1&&2===l){if(i.length<2||2!==o||i.charCodeAt(i.length-1)!==d||i.charCodeAt(i.length-2)!==d){if(i.length>2){const e=i.lastIndexOf(n);-1===e?(i="",o=0):o=(i=i.slice(0,e)).length-1-i.lastIndexOf(n),c=a,l=0;continue}if(2===i.length||1===i.length){i="",o=0,c=a,l=0;continue}}t&&(i.length>0?i+=`${n}..`:i="..",o=2)}else i.length>0?i+=n+e.slice(c+1,a):i=e.slice(c+1,a),o=a-c-1;c=a,l=0}else r===d&&-1!==l?++l:l=-1}return i}function l(e,t){const n=t.dir||t.root,s=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+s:n+e+s:s}Object.defineProperty(t,"__esModule",{value:!0});const a=65,u=97,h=90,f=122,d=46,p=47,g=92;class m extends Error{constructor(e,t,n){let s;"string"==typeof t&&0===t.indexOf("not ")?(s="must not be",t=t.replace(/^not /,"")):s="must be";let r=`The "${e}" ${-1!==e.indexOf(".")?"property":"argument"} ${s} of type ${t}`;super(r+=`. Received type ${typeof n}`)}}t.win32={
resolve(...e){let t="",i="",l=!1;for(let c=e.length-1;c>=-1;c--){let a;if(c>=0?a=e[c]:t?void 0!==(a=n.env["="+t]||n.cwd())&&a.slice(0,3).toLowerCase()===t.toLowerCase()+"\\"||(a=t+"\\"):a=n.cwd(),s(a,"path"),0===a.length)continue;const u=a.length;let h=0,f="",d=!1;const p=a.charCodeAt(0);if(u>1)if(r(p))if(d=!0,r(a.charCodeAt(1))){let e=2,t=e;for(;e<u&&!r(a.charCodeAt(e));++e);if(e<u&&e!==t){const n=a.slice(t,e);for(t=e;e<u&&r(a.charCodeAt(e));++e);if(e<u&&e!==t){for(t=e;e<u&&!r(a.charCodeAt(e));++e);e===u?(f="\\\\"+n+"\\"+a.slice(t),h=e):e!==t&&(f="\\\\"+n+"\\"+a.slice(t,e),h=e)}}}else h=1;else o(p)&&58===a.charCodeAt(1)&&(f=a.slice(0,2),h=2,u>2&&r(a.charCodeAt(2))&&(d=!0,h=3));else r(p)&&(h=1,d=!0);if(!(f.length>0&&t.length>0&&f.toLowerCase()!==t.toLowerCase())&&(0===t.length&&f.length>0&&(t=f),l||(i=a.slice(h)+"\\"+i,l=d),t.length>0&&l))break}return i=c(i,!l,"\\",r),t+(l?"\\":"")+i||"."},normalize(e){s(e,"path");const t=e.length;if(0===t)return".";let n,i=0,l=!1;const a=e.charCodeAt(0)
;if(t>1)if(r(a))if(l=!0,r(e.charCodeAt(1))){let s=2,o=s;for(;s<t&&!r(e.charCodeAt(s));++s);if(s<t&&s!==o){const c=e.slice(o,s);for(o=s;s<t&&r(e.charCodeAt(s));++s);if(s<t&&s!==o){for(o=s;s<t&&!r(e.charCodeAt(s));++s);if(s===t)return"\\\\"+c+"\\"+e.slice(o)+"\\";s!==o&&(n="\\\\"+c+"\\"+e.slice(o,s),i=s)}}}else i=1;else o(a)&&58===e.charCodeAt(1)&&(n=e.slice(0,2),i=2,t>2&&r(e.charCodeAt(2))&&(l=!0,i=3));else if(r(a))return"\\";let u;return 0!==(u=i<t?c(e.slice(i),!l,"\\",r):"").length||l||(u="."),u.length>0&&r(e.charCodeAt(t-1))&&(u+="\\"),void 0===n?l?u.length>0?"\\"+u:"\\":u.length>0?u:"":l?u.length>0?n+"\\"+u:n+"\\":u.length>0?n+u:n},isAbsolute(e){s(e,"path");const t=e.length;if(0===t)return!1;const n=e.charCodeAt(0);return!!r(n)||!!(o(n)&&t>2&&58===e.charCodeAt(1)&&r(e.charCodeAt(2)))},join(...e){if(0===e.length)return".";let n,i;for(let t=0;t<e.length;++t){const r=e[t];s(r,"path"),r.length>0&&(void 0===n?n=i=r:n+="\\"+r)}if(void 0===n)return".";let o=!0,c=0;if("string"==typeof i&&r(i.charCodeAt(0))){++c
;const e=i.length;e>1&&r(i.charCodeAt(1))&&(++c,e>2&&(r(i.charCodeAt(2))?++c:o=!1))}if(o){for(;c<n.length&&r(n.charCodeAt(c));++c);c>=2&&(n="\\"+n.slice(c))}return t.win32.normalize(n)},relative(e,n){if(s(e,"from"),s(n,"to"),e===n)return"";const r=t.win32.resolve(e),i=t.win32.resolve(n);if(r===i)return"";if(e=r.toLowerCase(),n=i.toLowerCase(),e===n)return"";let o=0;for(;o<e.length&&e.charCodeAt(o)===g;++o);let c=e.length;for(;c-1>o&&e.charCodeAt(c-1)===g;--c);const l=c-o;let a=0;for(;a<n.length&&n.charCodeAt(a)===g;++a);let u=n.length;for(;u-1>a&&n.charCodeAt(u-1)===g;--u);const h=u-a,f=l<h?l:h;let d=-1,p=0;for(;p<=f;++p){if(p===f){if(h>f){if(n.charCodeAt(a+p)===g)return i.slice(a+p+1);if(2===p)return i.slice(a+p)}l>f&&(e.charCodeAt(o+p)===g?d=p:2===p&&(d=3));break}const t=e.charCodeAt(o+p);if(t!==n.charCodeAt(a+p))break;t===g&&(d=p)}if(p!==f&&-1===d)return i;let m="";for(-1===d&&(d=0),p=o+d+1;p<=c;++p)p!==c&&e.charCodeAt(p)!==g||(0===m.length?m+="..":m+="\\..");return m.length>0?m+i.slice(a+d,u):(a+=d,
i.charCodeAt(a)===g&&++a,i.slice(a,u))},toNamespacedPath(e){if("string"!=typeof e)return e;if(0===e.length)return"";const n=t.win32.resolve(e);if(n.length>=3)if(n.charCodeAt(0)===g){if(n.charCodeAt(1)===g){const e=n.charCodeAt(2);if(63!==e&&e!==d)return"\\\\?\\UNC\\"+n.slice(2)}}else if(o(n.charCodeAt(0))&&58===n.charCodeAt(1)&&n.charCodeAt(2)===g)return"\\\\?\\"+n;return e},dirname(e){s(e,"path");const t=e.length;if(0===t)return".";let n=-1,i=-1,c=!0,l=0;const a=e.charCodeAt(0);if(t>1)if(r(a)){if(n=l=1,r(e.charCodeAt(1))){let s=2,i=s;for(;s<t&&!r(e.charCodeAt(s));++s);if(s<t&&s!==i){for(i=s;s<t&&r(e.charCodeAt(s));++s);if(s<t&&s!==i){for(i=s;s<t&&!r(e.charCodeAt(s));++s);if(s===t)return e;s!==i&&(n=l=s+1)}}}}else o(a)&&58===e.charCodeAt(1)&&(n=l=2,t>2&&r(e.charCodeAt(2))&&(n=l=3));else if(r(a))return e;for(let n=t-1;n>=l;--n)if(r(e.charCodeAt(n))){if(!c){i=n;break}}else c=!1;if(-1===i){if(-1===n)return".";i=n}return e.slice(0,i)},basename(e,t){void 0!==t&&s(t,"ext"),s(e,"path");let n,i=0,c=-1,l=!0
;if(e.length>=2){o(e.charCodeAt(0))&&58===e.charCodeAt(1)&&(i=2)}if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";let s=t.length-1,o=-1;for(n=e.length-1;n>=i;--n){const a=e.charCodeAt(n);if(r(a)){if(!l){i=n+1;break}}else-1===o&&(l=!1,o=n+1),s>=0&&(a===t.charCodeAt(s)?-1==--s&&(c=n):(s=-1,c=o))}return i===c?c=o:-1===c&&(c=e.length),e.slice(i,c)}for(n=e.length-1;n>=i;--n)if(r(e.charCodeAt(n))){if(!l){i=n+1;break}}else-1===c&&(l=!1,c=n+1);return-1===c?"":e.slice(i,c)},extname(e){s(e,"path");let t=0,n=-1,i=0,c=-1,l=!0,a=0;e.length>=2&&58===e.charCodeAt(1)&&o(e.charCodeAt(0))&&(t=i=2);for(let s=e.length-1;s>=t;--s){const t=e.charCodeAt(s);if(r(t)){if(!l){i=s+1;break}}else-1===c&&(l=!1,c=s+1),t===d?-1===n?n=s:1!==a&&(a=1):-1!==n&&(a=-1)}return-1===n||-1===c||0===a||1===a&&n===c-1&&n===i+1?"":e.slice(n,c)},format(e){if(null===e||"object"!=typeof e)throw new m("pathObject","Object",e);return l("\\",e)},parse(e){s(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""}
;if(0===e.length)return t;const n=e.length;let i=0,c=e.charCodeAt(0);if(n>1){if(r(c)){if(i=1,r(e.charCodeAt(1))){let t=2,s=t;for(;t<n&&!r(e.charCodeAt(t));++t);if(t<n&&t!==s){for(s=t;t<n&&r(e.charCodeAt(t));++t);if(t<n&&t!==s){for(s=t;t<n&&!r(e.charCodeAt(t));++t);t===n?i=t:t!==s&&(i=t+1)}}}}else if(o(c)&&58===e.charCodeAt(1)){if(i=2,!(n>2))return t.root=t.dir=e,t;if(r(e.charCodeAt(2))){if(3===n)return t.root=t.dir=e,t;i=3}}}else if(r(c))return t.root=t.dir=e,t;i>0&&(t.root=e.slice(0,i));let l=-1,a=i,u=-1,h=!0,f=e.length-1,p=0;for(;f>=i;--f)if(c=e.charCodeAt(f),r(c)){if(!h){a=f+1;break}}else-1===u&&(h=!1,u=f+1),c===d?-1===l?l=f:1!==p&&(p=1):-1!==l&&(p=-1);return-1===l||-1===u||0===p||1===p&&l===u-1&&l===a+1?-1!==u&&(t.base=t.name=e.slice(a,u)):(t.name=e.slice(a,l),t.base=e.slice(a,u),t.ext=e.slice(l,u)),t.dir=a>0&&a!==i?e.slice(0,a-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},t.posix={resolve(...e){let t="",r=!1;for(let i=e.length-1;i>=-1&&!r;i--){let o;s(o=i>=0?e[i]:n.cwd(),"path"),
0!==o.length&&(t=o+"/"+t,r=o.charCodeAt(0)===p)}return t=c(t,!r,"/",i),r?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize(e){if(s(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===p,n=e.charCodeAt(e.length-1)===p;return 0!==(e=c(e,!t,"/",i)).length||t||(e="."),e.length>0&&n&&(e+="/"),t?"/"+e:e},isAbsolute:e=>(s(e,"path"),e.length>0&&e.charCodeAt(0)===p),join(...e){if(0===e.length)return".";let n;for(let t=0;t<e.length;++t){const e=arguments[t];s(e,"path"),e.length>0&&(void 0===n?n=e:n+="/"+e)}return void 0===n?".":t.posix.normalize(n)},relative(e,n){if(s(e,"from"),s(n,"to"),e===n)return"";if(e=t.posix.resolve(e),n=t.posix.resolve(n),e===n)return"";let r=1;for(;r<e.length&&e.charCodeAt(r)===p;++r);const i=e.length,o=i-r;let c=1;for(;c<n.length&&n.charCodeAt(c)===p;++c);const l=n.length-c,a=o<l?o:l;let u=-1,h=0;for(;h<=a;++h){if(h===a){if(l>a){if(n.charCodeAt(c+h)===p)return n.slice(c+h+1);if(0===h)return n.slice(c+h)}else o>a&&(e.charCodeAt(r+h)===p?u=h:0===h&&(u=0));break}const t=e.charCodeAt(r+h)
;if(t!==n.charCodeAt(c+h))break;t===p&&(u=h)}let f="";for(h=r+u+1;h<=i;++h)h!==i&&e.charCodeAt(h)!==p||(0===f.length?f+="..":f+="/..");return f.length>0?f+n.slice(c+u):(c+=u,n.charCodeAt(c)===p&&++c,n.slice(c))},toNamespacedPath:e=>e,dirname(e){if(s(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===p;let n=-1,r=!0;for(let t=e.length-1;t>=1;--t)if(e.charCodeAt(t)===p){if(!r){n=t;break}}else r=!1;return-1===n?t?"/":".":t&&1===n?"//":e.slice(0,n)},basename(e,t){void 0!==t&&s(t,"ext"),s(e,"path");let n,r=0,i=-1,o=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";let s=t.length-1,c=-1;for(n=e.length-1;n>=0;--n){const l=e.charCodeAt(n);if(l===p){if(!o){r=n+1;break}}else-1===c&&(o=!1,c=n+1),s>=0&&(l===t.charCodeAt(s)?-1==--s&&(i=n):(s=-1,i=c))}return r===i?i=c:-1===i&&(i=e.length),e.slice(r,i)}for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===p){if(!o){r=n+1;break}}else-1===i&&(o=!1,i=n+1);return-1===i?"":e.slice(r,i)},extname(e){s(e,"path");let t=-1,n=0,r=-1,i=!0,o=0
;for(let s=e.length-1;s>=0;--s){const c=e.charCodeAt(s);if(c!==p)-1===r&&(i=!1,r=s+1),c===d?-1===t?t=s:1!==o&&(o=1):-1!==t&&(o=-1);else if(!i){n=s+1;break}}return-1===t||-1===r||0===o||1===o&&t===r-1&&t===n+1?"":e.slice(t,r)},format(e){if(null===e||"object"!=typeof e)throw new m("pathObject","Object",e);return l("/",e)},parse(e){s(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.charCodeAt(0)===p;let r;n?(t.root="/",r=1):r=0;let i=-1,o=0,c=-1,l=!0,a=e.length-1,u=0;for(;a>=r;--a){const t=e.charCodeAt(a);if(t!==p)-1===c&&(l=!1,c=a+1),t===d?-1===i?i=a:1!==u&&(u=1):-1!==i&&(u=-1);else if(!l){o=a+1;break}}return-1===i||-1===c||0===u||1===u&&i===c-1&&i===o+1?-1!==c&&(t.base=t.name=0===o&&n?e.slice(1,c):e.slice(o,c)):(0===o&&n?(t.name=e.slice(1,i),t.base=e.slice(1,c)):(t.name=e.slice(o,i),t.base=e.slice(o,c)),t.ext=e.slice(i,c)),o>0?t.dir=e.slice(0,o-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null},t.posix.win32=t.win32.win32=t.win32,
t.posix.posix=t.win32.posix=t.posix,t.normalize="win32"===n.platform?t.win32.normalize:t.posix.normalize,t.isAbsolute="win32"===n.platform?t.win32.isAbsolute:t.posix.isAbsolute,t.join="win32"===n.platform?t.win32.join:t.posix.join,t.resolve="win32"===n.platform?t.win32.resolve:t.posix.resolve,t.relative="win32"===n.platform?t.win32.relative:t.posix.relative,t.dirname="win32"===n.platform?t.win32.dirname:t.posix.dirname,t.basename="win32"===n.platform?t.win32.basename:t.posix.basename,t.extname="win32"===n.platform?t.win32.extname:t.posix.extname,t.format="win32"===n.platform?t.win32.format:t.posix.format,t.parse="win32"===n.platform?t.win32.parse:t.posix.parse,t.toNamespacedPath="win32"===n.platform?t.win32.toNamespacedPath:t.posix.toNamespacedPath,t.sep="win32"===n.platform?t.win32.sep:t.posix.sep,t.delimiter="win32"===n.platform?t.win32.delimiter:t.posix.delimiter}),define(e[15],t([1,0]),function(e,t){"use strict";function n(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\[\]\(\)\#]/g,"\\$&")}function s(e,t){
if(!e||!t)return e;const n=t.length;if(0===n||0===e.length)return e;let s=0;for(;e.indexOf(t,s)===s;)s+=n;return e.substring(s)}function r(e,t){if(!e||!t)return e;const n=t.length,s=e.length;if(0===n||0===s)return e;let r=s,i=-1;for(;;){if(-1===(i=e.lastIndexOf(t,r-1))||i+n!==r)break;if(0===i)return"";r=i}return e.substring(0,r)}function i(e,t){return e<t?-1:e>t?1:0}function o(e){return e>=97&&e<=122}function c(e){return e>=65&&e<=90}function l(e){return o(e)||c(e)}function a(e,t,n=e.length){if("string"!=typeof e||"string"!=typeof t)return!1;for(let s=0;s<n;s++){const n=e.charCodeAt(s),r=t.charCodeAt(s);if(n!==r)if(l(n)&&l(r)){const e=Math.abs(n-r);if(0!==e&&32!==e)return!1}else if(String.fromCharCode(n).toLowerCase()!==String.fromCharCode(r).toLowerCase())return!1}return!0}function u(e,t,n,s,r,i){for(;t<n&&r<i;){if(e[t]!==s[r])return!1;t+=1,r+=1}return!0}function h(e){return(e=+e)>=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}function f(e){return!!(e&&e.length>0&&65279===e.charCodeAt(0))}
Object.defineProperty(t,"__esModule",{value:!0}),t.empty="",t.isFalsyOrWhitespace=function(e){return!e||"string"!=typeof e||0===e.trim().length},t.pad=function(e,t,n="0"){const s=""+e,r=[s];for(let e=s.length;e<t;e++)r.push(n);return r.reverse().join("")};const d=/{(\d+)}/g;t.format=function(e,...t){return 0===t.length?e:e.replace(d,function(e,n){const s=parseInt(n,10);return isNaN(s)||s<0||s>=t.length?e:t[s]})},t.escape=function(e){return e.replace(/[<>&]/g,function(e){switch(e){case"<":return"&lt;";case">":return"&gt;";case"&":return"&amp;";default:return e}})},t.escapeRegExpCharacters=n,t.trim=function(e,t=" "){return r(s(e,t),t)},t.ltrim=s,t.rtrim=r,t.convertSimple2RegExpPattern=function(e){return e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")},t.stripWildcards=function(e){return e.replace(/\*/g,"")},t.startsWith=function(e,t){if(e.length<t.length)return!1;if(e===t)return!0;for(let n=0;n<t.length;n++)if(e[n]!==t[n])return!1;return!0},t.endsWith=function(e,t){
const n=e.length-t.length;return n>0?e.indexOf(t,n)===n:0===n&&e===t},t.createRegExp=function(e,t,s={}){if(!e)throw new Error("Cannot create regex from empty string");t||(e=n(e)),s.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));let r="";return s.global&&(r+="g"),s.matchCase||(r+="i"),s.multiline&&(r+="m"),s.unicode&&(r+="u"),new RegExp(e,r)},t.regExpLeadsToEndlessLoop=function(e){return"^"!==e.source&&"^$"!==e.source&&"$"!==e.source&&"^\\s*$"!==e.source&&!(!e.exec("")||0!==e.lastIndex)},t.regExpContainsBackreference=function(e){return!!e.match(/([^\\]|^)(\\\\)*\\\d+/)},t.regExpFlags=function(e){return(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")},t.firstNonWhitespaceIndex=function(e){for(let t=0,n=e.length;t<n;t++){const n=e.charCodeAt(t);if(32!==n&&9!==n)return t}return-1},t.getLeadingWhitespace=function(e,t=0,n=e.length){for(let s=t;s<n;s++){const n=e.charCodeAt(s);if(32!==n&&9!==n)return e.substring(t,s)}return e.substring(t,n)
},t.lastNonWhitespaceIndex=function(e,t=e.length-1){for(let n=t;n>=0;n--){const t=e.charCodeAt(n);if(32!==t&&9!==t)return n}return-1},t.compare=i,t.compareIgnoreCase=function(e,t){const n=Math.min(e.length,t.length);for(let s=0;s<n;s++){let n=e.charCodeAt(s),r=t.charCodeAt(s);if(n===r)continue;c(n)&&(n+=32),c(r)&&(r+=32);const l=n-r;if(0!==l)return o(n)&&o(r)?l:i(e.toLowerCase(),t.toLowerCase())}return e.length<t.length?-1:e.length>t.length?1:0},t.isLowerAsciiLetter=o,t.isUpperAsciiLetter=c,t.equalsIgnoreCase=function(e,t){return(e?e.length:0)===(t?t.length:0)&&a(e,t)},t.startsWithIgnoreCase=function(e,t){const n=t.length;return!(t.length>e.length)&&a(e,t,n)},t.commonPrefixLength=function(e,t){let n,s=Math.min(e.length,t.length);for(n=0;n<s;n++)if(e.charCodeAt(n)!==t.charCodeAt(n))return n;return s},t.commonSuffixLength=function(e,t){let n,s=Math.min(e.length,t.length);const r=e.length-1,i=t.length-1;for(n=0;n<s;n++)if(e.charCodeAt(r-n)!==t.charCodeAt(i-n))return n;return s},t.overlap=function(e,t){
const n=e.length;let s=t.length,r=n-s;if(0===r)return e===t?n:0;for(r<0&&(s+=r,r=0);r<n&&s>0;){if(u(e,r,n,t,0,s))return s;s-=1,r+=1}return 0},t.isHighSurrogate=function(e){return 55296<=e&&e<=56319},t.isLowSurrogate=function(e){return 56320<=e&&e<=57343};const p=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;t.containsRTL=function(e){return p.test(e)};const g=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEF8]|\uD83E[\uDD00-\uDDE6])/;t.containsEmoji=function(e){return g.test(e)}
;const m=/^[\t\n\r\x20-\x7E]*$/;t.isBasicASCII=function(e){return m.test(e)},t.containsFullWidthCharacter=function(e){for(let t=0,n=e.length;t<n;t++)if(h(e.charCodeAt(t)))return!0;return!1},t.isFullWidthCharacter=h,t.lcut=function(e,n){if(e.length<n)return e;const s=/\b/g;let r=0;for(;s.test(e)&&!(e.length-s.lastIndex<n);)r=s.lastIndex,s.lastIndex+=1;return e.substring(r).replace(/^\s/,t.empty)};const v=/\x1B\x5B[12]?K/g,y=/\x1b\[\d+m/g,C=/\x1b\[0?m/g;t.removeAnsiEscapeCodes=function(e){return e&&(e=(e=(e=e.replace(v,"")).replace(y,"")).replace(C,"")),e},t.removeAccents=function(){if("function"!=typeof String.prototype.normalize)return function(e){return e};{const e=/[\u0300-\u036f]/g;return function(n){return n.normalize("NFD").replace(e,t.empty)}}}(),t.UTF8_BOM_CHARACTER=String.fromCharCode(65279),t.startsWithUTF8BOM=f,t.stripUTF8BOM=function(e){return f(e)?e.substr(1):e},t.safeBtoa=function(e){return btoa(encodeURIComponent(e))},t.repeat=function(e,t){let n="";for(let s=0;s<t;s++)n+=e;return n},
t.fuzzyContains=function(e,t){if(!e||!t)return!1;if(e.length<t.length)return!1;const n=t.length,s=e.toLowerCase();let r=0,i=-1;for(;r<n;){const e=s.indexOf(t[r],i+1);if(e<0)return!1;i=e,r++}return!0},t.containsUppercaseCharacter=function(e,t=!1){return!!e&&(t&&(e=e.replace(/\\./g,"")),e.toLowerCase()!==e)},t.uppercaseFirstLetter=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},t.getNLines=function(e,t=1){if(0===t)return"";let n=-1;do{n=e.indexOf("\n",n+1),t--}while(t>0&&n>=0);return n>=0?e.substr(0,n):e}}),define(e[23],t([1,0,4,15,13]),function(e,t,n,s,r){"use strict";function i(e){return 47===e||92===e}function o(e){return e>=65&&e<=90||e>=97&&e<=122}Object.defineProperty(t,"__esModule",{value:!0}),t.toSlashes=function(e){return e.replace(/[\\/]/g,r.posix.sep)},t.getRoot=function(e,t=r.posix.sep){if(!e)return"";const n=e.length,s=e.charCodeAt(0);if(i(s)){if(i(e.charCodeAt(1))&&!i(e.charCodeAt(2))){let s=3;const r=s;for(;s<n&&!i(e.charCodeAt(s));s++);
if(r!==s&&!i(e.charCodeAt(s+1)))for(s+=1;s<n;s++)if(i(e.charCodeAt(s)))return e.slice(0,s+1).replace(/[\\/]/g,t)}return t}if(o(s)&&58===e.charCodeAt(1))return i(e.charCodeAt(2))?e.slice(0,2)+t:e.slice(0,2);let c=e.indexOf("://");if(-1!==c)for(c+=3;c<n;c++)if(i(e.charCodeAt(c)))return e.slice(0,c+1);return""},t.isUNC=function(e){if(!n.isWindows)return!1;if(!e||e.length<5)return!1;let t=e.charCodeAt(0);if(92!==t)return!1;if(92!==(t=e.charCodeAt(1)))return!1;let s=2;const r=s;for(;s<e.length&&92!==(t=e.charCodeAt(s));s++);return r!==s&&(t=e.charCodeAt(s+1),!isNaN(t)&&92!==t)};const c=n.isWindows?/[\\/:\*\?"<>\|]/g:/[\\/]/g,l=/^(con|prn|aux|clock\$|nul|lpt[0-9]|com[0-9])$/i;t.isValidBasename=function(e){return!(!e||0===e.length||/^\s+$/.test(e)||(c.lastIndex=0,c.test(e)||n.isWindows&&l.test(e)||"."===e||".."===e||n.isWindows&&"."===e[e.length-1]||n.isWindows&&e.length!==e.trim().length||e.length>255))},t.isEqual=function(e,t,n){const r=e===t;return!n||r?r:!(!e||!t)&&s.equalsIgnoreCase(e,t)},
t.isEqualOrParent=function(e,t,n,i=r.sep){if(e===t)return!0;if(!e||!t)return!1;if(t.length>e.length)return!1;if(n){if(!s.startsWithIgnoreCase(e,t))return!1;if(t.length===e.length)return!0;let n=t.length;return t.charAt(t.length-1)===i&&n--,e.charAt(n)===i}return t.charAt(t.length-1)!==i&&(t+=i),0===e.indexOf(t)},t.isWindowsDriveLetter=o}),define(e[8],t([1,0]),function(e,t){"use strict";function n(e){return Array.isArray?Array.isArray(e):!(!e||typeof e.length!==a.number||e.constructor!==Array)}function s(e){return typeof e===a.string||e instanceof String}function r(e){return!(typeof e!==a.object||null===e||Array.isArray(e)||e instanceof RegExp||e instanceof Date)}function i(e){return typeof e===a.undefined}function o(e){return i(e)||null===e}function c(e){return typeof e===a.function}function l(e,t){if(s(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(c(t)){try{if(e instanceof t)return}catch(e){}if(!o(e)&&e.constructor===t)return
;if(1===t.length&&!0===t.call(void 0,e))return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}Object.defineProperty(t,"__esModule",{value:!0});const a={number:"number",string:"string",undefined:"undefined",object:"object",function:"function"};t.isArray=n,t.isString=s,t.isStringArray=function(e){return n(e)&&e.every(e=>s(e))},t.isObject=r,t.isNumber=function(e){return(typeof e===a.number||e instanceof Number)&&!isNaN(e)},t.isBoolean=function(e){return!0===e||!1===e},t.isUndefined=i,t.isUndefinedOrNull=o;const u=Object.prototype.hasOwnProperty;t.isEmptyObject=function(e){if(!r(e))return!1;for(let t in e)if(u.call(e,t))return!1;return!0},t.isFunction=c,t.areFunctions=function(...e){return e.length>0&&e.every(c)},t.validateConstraints=function(e,t){const n=Math.min(e.length,t.length);for(let s=0;s<n;s++)l(e[s],t[s])},t.validateConstraint=l,t.create=function(e,...t){if(function(e){
return"function"==typeof e&&e.hasOwnProperty("prototype")&&!e.hasOwnProperty("arguments")}(e))return new e(...t);{const n=Object.create(e.prototype);return e.apply(n,t),n}},t.getAllPropertyNames=function(e){let t=[],n=Object.getPrototypeOf(e);for(;Object.prototype!==n;)t=t.concat(Object.getOwnPropertyNames(n)),n=Object.getPrototypeOf(n);return t},t.withNullAsUndefined=function(e){return null===e?void 0:e},t.withUndefinedAsNull=function(e){return void 0===e?null:e}}),define(e[6],t([1,0,8]),function(e,t,n){"use strict";function s(e){if(!e||"object"!=typeof e)return e;if(e instanceof RegExp)return e;const t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(n=>{e[n]&&"object"==typeof e[n]?t[n]=s(e[n]):t[n]=e[n]}),t}function r(e,t,s){if(n.isUndefinedOrNull(e))return e;const i=t(e);if(void 0!==i)return i;if(n.isArray(e)){const n=[];for(const i of e)n.push(r(i,t,s));return n}if(n.isObject(e)){if(s.has(e))throw new Error("Cannot clone recursive data-structure");s.add(e);const n={}
;for(let i in e)c.call(e,i)&&(n[i]=r(e[i],t,s));return s.delete(e),n}return e}function i(e,t,s=!0){return n.isObject(e)?(n.isObject(t)&&Object.keys(t).forEach(r=>{r in e?s&&(n.isObject(e[r])&&n.isObject(t[r])?i(e[r],t[r],s):e[r]=t[r]):e[r]=t[r]}),e):t}function o(e,t){if(e===t)return!0;if(null===e||void 0===e||null===t||void 0===t)return!1;if(typeof e!=typeof t)return!1;if("object"!=typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;let n,s;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(!o(e[n],t[n]))return!1}else{const r=[];for(s in e)r.push(s);r.sort();const i=[];for(s in t)i.push(s);if(i.sort(),!o(r,i))return!1;for(n=0;n<r.length;n++)if(!o(e[r[n]],t[r[n]]))return!1}return!0}Object.defineProperty(t,"__esModule",{value:!0}),t.deepClone=s,t.deepFreeze=function(e){if(!e||"object"!=typeof e)return e;const t=[e];for(;t.length>0;){const e=t.shift();Object.freeze(e);for(const n in e)if(c.call(e,n)){const s=e[n];"object"!=typeof s||Object.isFrozen(s)||t.push(s)}}
return e};const c=Object.prototype.hasOwnProperty;t.cloneAndChange=function(e,t){return r(e,t,new Set)},t.mixin=i,t.assign=function(e,...t){return t.forEach(t=>Object.keys(t).forEach(n=>e[n]=t[n])),e},t.equals=o,t.createKeywordMatcher=function(e,t=!1){t&&(e=e.map(function(e){return e.toLowerCase()}));const n=function(e){const t={};for(const n of e)t[n]=!0;return t}(e);return t?function(e){return void 0!==n[e.toLowerCase()]&&n.hasOwnProperty(e.toLowerCase())}:function(e){return void 0!==n[e]&&n.hasOwnProperty(e)}},t.safeStringify=function(e){const t=[];return JSON.stringify(e,(e,s)=>{if(n.isObject(s)||Array.isArray(s)){if(-1!==t.indexOf(s))return"[Circular]";t.push(s)}return s})},t.getOrDefault=function(e,t,n){const s=t(e);return void 0===s?n:s},t.distinct=function(e,t){const n=Object.create(null);return e&&t?(Object.keys(t).forEach(s=>{const r=e[s],i=t[s];o(r,i)||(n[s]=i)}),n):n}}),define(e[9],t([1,0,4]),function(e,t,n){"use strict";function s(e,t){let n=void 0,s=-1;for(let r=0;r<e.length;r++){
const i=e.charCodeAt(r);if(i>=97&&i<=122||i>=65&&i<=90||i>=48&&i<=57||45===i||46===i||95===i||126===i||t&&47===i)-1!==s&&(n+=encodeURIComponent(e.substring(s,r)),s=-1),void 0!==n&&(n+=e.charAt(r));else{void 0===n&&(n=e.substr(0,r));const t=g[i];void 0!==t?(-1!==s&&(n+=encodeURIComponent(e.substring(s,r)),s=-1),n+=t):-1===s&&(s=r)}}return-1!==s&&(n+=encodeURIComponent(e.substring(s))),void 0!==n?n:e}function r(e){let t;return t=e.authority&&e.path.length>1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?e.path[1].toLowerCase()+e.path.substr(2):e.path,n.isWindows&&(t=t.replace(/\//g,"\\")),t}function i(e,t){const n=t?function(e){let t=void 0;for(let n=0;n<e.length;n++){const s=e.charCodeAt(n);35===s||63===s?(void 0===t&&(t=e.substr(0,n)),t+=g[s]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}:s;let r="",{scheme:i,authority:o,path:c,query:l,fragment:a}=e
;if(i&&(r+=i,r+=":"),(o||"file"===i)&&(r+=h,r+=h),o){let e=o.indexOf("@");if(-1!==e){const t=o.substr(0,e);o=o.substr(e+1),-1===(e=t.indexOf(":"))?r+=n(t,!1):(r+=n(t.substr(0,e),!1),r+=":",r+=n(t.substr(e+1),!1)),r+="@"}-1===(e=(o=o.toLowerCase()).indexOf(":"))?r+=n(o,!1):(r+=n(o.substr(0,e),!1),r+=o.substr(e))}if(c){if(c.length>=3&&47===c.charCodeAt(0)&&58===c.charCodeAt(2)){const e=c.charCodeAt(1);e>=65&&e<=90&&(c=`/${String.fromCharCode(e+32)}:${c.substr(3)}`)}else if(c.length>=2&&58===c.charCodeAt(1)){const e=c.charCodeAt(0);e>=65&&e<=90&&(c=`${String.fromCharCode(e+32)}:${c.substr(2)}`)}r+=n(c,!0)}return l&&(r+="?",r+=n(l,!1)),a&&(r+="#",r+=t?a:s(a,!1)),r}Object.defineProperty(t,"__esModule",{value:!0});const o=/^\w[\w\d+.-]*$/,c=/^\//,l=/^\/\//;let a=!0;t.setUriThrowOnMissingScheme=function(e){const t=a;return a=e,t};const u="",h="/",f=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class d{static isUri(e){
return e instanceof d||!!e&&("string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"function"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString)}constructor(e,t,n,s,r,i=!1){"object"==typeof e?(this.scheme=e.scheme||u,this.authority=e.authority||u,this.path=e.path||u,this.query=e.query||u,this.fragment=e.fragment||u):(this.scheme=function(e,t){return t||a?e||u:(e||(console.trace("BAD uri lacks scheme, falling back to file-scheme."),e="file"),e)}(e,i),this.authority=t||u,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==h&&(t=h+t):t=h}return t}(this.scheme,n||u),this.query=s||u,this.fragment=r||u,function(e,t){if(!e.scheme){if(t||a)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`)
;console.warn(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`)}if(e.scheme&&!o.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!c.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(l.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 ("//")')}(this,i))}get fsPath(){return r(this)}with(e){if(!e)return this;let{scheme:t,authority:n,path:s,query:r,fragment:i}=e;return void 0===t?t=this.scheme:null===t&&(t=u),void 0===n?n=this.authority:null===n&&(n=u),void 0===s?s=this.path:null===s&&(s=u),void 0===r?r=this.query:null===r&&(r=u),void 0===i?i=this.fragment:null===i&&(i=u),
t===this.scheme&&n===this.authority&&s===this.path&&r===this.query&&i===this.fragment?this:new p(t,n,s,r,i)}static parse(e,t=!1){const n=f.exec(e);return n?new p(n[2]||u,decodeURIComponent(n[4]||u),decodeURIComponent(n[5]||u),decodeURIComponent(n[7]||u),decodeURIComponent(n[9]||u),t):new p(u,u,u,u,u)}static file(e){let t=u;if(n.isWindows&&(e=e.replace(/\\/g,h)),e[0]===h&&e[1]===h){const n=e.indexOf(h,2);-1===n?(t=e.substring(2),e=h):(t=e.substring(2,n),e=e.substring(n)||h)}return new p("file",t,e,u,u)}static from(e){return new p(e.scheme,e.authority,e.path,e.query,e.fragment)}toString(e=!1){return i(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof d)return e;{const t=new p(e);return t._fsPath=e.fsPath,t._formatted=e.external,t}}return e}}t.URI=d;class p extends d{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=r(this)),this._fsPath}toString(e=!1){return e?i(this,!0):(this._formatted||(this._formatted=i(this,!1)),
this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}const g={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"}}),define(e[18],t([1,0,9]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPathFromAmdModule=function(e,t){return n.URI.parse(e.toUrl(t)).fsPath}}),define(e[19],t([1,0,9]),function(e,t,n){"use strict";function s(e){const t=[];let n;try{const s=JSON.parse(e.arguments),r=s[s.length-1];r&&r.__$stack&&(s.pop(),n=r.__$stack),t.push(...s)}catch(n){t.push("Unable to log remote console arguments",e.arguments)}return{args:t,stack:n}}function r(e){if("string"!=typeof e)return r(s(e).stack)
;const t=e;if(t){const e=i(t),s=/at [^\/]*((?:(?:[a-zA-Z]+:)|(?:[\/])|(?:\\\\))(?:.+)):(\d+):(\d+)/.exec(e||"");if(s&&4===s.length)return{uri:n.URI.file(s[1]),line:Number(s[2]),column:Number(s[3])}}}function i(e){if(!e)return e;const t=e.indexOf("\n");return-1===t?e:e.substring(0,t)}function o(e){return`color: ${e}`}Object.defineProperty(t,"__esModule",{value:!0}),t.isRemoteConsoleLog=function(e){const t=e;return t&&"string"==typeof t.type&&"string"==typeof t.severity},t.parse=s,t.getFirstFrame=r,t.log=function(e,t){const{args:n,stack:r}=s(e),c="string"==typeof n[0]&&1===n.length;let l=i(r);l&&(l=`(${l.trim()})`);let a=[];a="string"==typeof n[0]?l&&c?[`%c[${t}] %c${n[0]} %c${l}`,o("blue"),o("black"),o("grey")]:[`%c[${t}] %c${n[0]}`,o("blue"),o("black"),...n.slice(1)]:[`%c[${t}]%`,o("blue"),...n],l&&!c&&a.push(l),console[e.severity].apply(console,a)}}),define(e[20],t([1,0,31]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class s{constructor(e="utf8"){
this.stringDecoder=new n.StringDecoder(e),this.remaining=null}write(e){const t=[],n=this.remaining?this.remaining+this.stringDecoder.write(e):this.stringDecoder.write(e);if(n.length<1)return t;let s,r=0,i=r;for(;i<n.length;)if(13===(s=n.charCodeAt(i))||10===s){if(t.push(n.substring(r,i)),++i<n.length){const e=s;s=n.charCodeAt(i),(13===e&&10===s||10===e&&13===s)&&i++}r=i}else i++;return this.remaining=r<n.length?n.substr(r):null,t}end(){return this.remaining}}t.LineDecoder=s}),define(e[21],t([1,0,3,2,10,7,5,12]),function(e,t,s,r,i,o,c,l){"use strict";function a(e){const t=l.VSBuffer.alloc(4);return t.writeUint32BE(e,0),t}function u(e){return e.read(4).readUint32BE(0)}function h(e){const t=l.VSBuffer.alloc(1);return t.writeUint8(e,0),t}function f(e,t){if(void 0===t)e.write(C.Undefined);else if("string"==typeof t){const n=l.VSBuffer.fromString(t);e.write(C.String),e.write(a(n.byteLength)),e.write(n)}else if(b&&Buffer.isBuffer(t)){const n=l.VSBuffer.wrap(t);e.write(C.Buffer),e.write(a(n.byteLength)),e.write(n)
}else if(t instanceof l.VSBuffer)e.write(C.VSBuffer),e.write(a(t.byteLength)),e.write(t);else if(Array.isArray(t)){e.write(C.Array),e.write(a(t.length));for(const n of t)f(e,n)}else{const n=l.VSBuffer.fromString(JSON.stringify(t));e.write(C.Object),e.write(a(n.byteLength)),e.write(n)}}function d(e){switch(e.read(1).readUint8(0)){case y.Undefined:return;case y.String:return e.read(u(e)).toString();case y.Buffer:return e.read(u(e)).buffer;case y.VSBuffer:return e.read(u(e));case y.Array:{const t=u(e),n=[];for(let s=0;s<t;s++)n.push(d(e));return n}case y.Object:return JSON.parse(e.read(u(e)).toString())}}function p(e){return{call:(t,n,s)=>e.then(e=>e.call(t,n,s)),listen(t,n){const r=new s.Relay;return e.then(e=>r.input=e.listen(t,n)),r.event}}}Object.defineProperty(t,"__esModule",{value:!0});!function(e){e[e.Promise=100]="Promise",e[e.PromiseCancel=101]="PromiseCancel",e[e.EventListen=102]="EventListen",e[e.EventDispose=103]="EventDispose"}(t.RequestType||(t.RequestType={}));!function(e){
e[e.Initialize=200]="Initialize",e[e.PromiseSuccess=201]="PromiseSuccess",e[e.PromiseError=202]="PromiseError",e[e.PromiseErrorObj=203]="PromiseErrorObj",e[e.EventFire=204]="EventFire"}(t.ResponseType||(t.ResponseType={}));var g;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Idle=1]="Idle"}(g||(g={}));class m{constructor(e){this.buffer=e,this.pos=0}read(e){const t=this.buffer.slice(this.pos,this.pos+e);return this.pos+=t.byteLength,t}}class v{constructor(){this.buffers=[]}get buffer(){return l.VSBuffer.concat(this.buffers)}write(e){this.buffers.push(e)}}var y;!function(e){e[e.Undefined=0]="Undefined",e[e.String=1]="String",e[e.Buffer=2]="Buffer",e[e.VSBuffer=3]="VSBuffer",e[e.Array=4]="Array",e[e.Object=5]="Object"}(y||(y={}));const C={Undefined:h(y.Undefined),String:h(y.String),Buffer:h(y.Buffer),VSBuffer:h(y.VSBuffer),Array:h(y.Array),Object:h(y.Object)},b="undefined"!=typeof Buffer;class w{constructor(e,t){this.protocol=e,this.ctx=t,this.channels=new Map,this.activeRequests=new Map,
this.protocolListener=this.protocol.onMessage(e=>this.onRawMessage(e)),this.sendResponse({type:200})}registerChannel(e,t){this.channels.set(e,t)}sendResponse(e){switch(e.type){case 200:return this.send([e.type]);case 201:case 202:case 204:case 203:return this.send([e.type,e.id],e.data)}}send(e,t){const n=new v;f(n,e),f(n,t),this.sendBuffer(n.buffer)}sendBuffer(e){try{this.protocol.send(e)}catch(e){}}onRawMessage(e){const t=new m(e),n=d(t),s=d(t),r=n[0];switch(r){case 100:return this.onPromise({type:r,id:n[1],channelName:n[2],name:n[3],arg:s});case 102:return this.onEventListen({type:r,id:n[1],channelName:n[2],name:n[3],arg:s});case 101:case 103:return this.disposeActiveRequest({type:r,id:n[1]})}}onPromise(e){const t=this.channels.get(e.channelName);if(!t)throw new Error("Unknown channel");const n=new o.CancellationTokenSource;let s;try{s=t.call(this.ctx,e.name,e.arg,n.token)}catch(e){s=Promise.reject(e)}const i=e.id;s.then(t=>{this.sendResponse({id:i,data:t,type:201}),this.activeRequests.delete(e.id)},t=>{
t instanceof Error?this.sendResponse({id:i,data:{message:t.message,name:t.name,stack:t.stack?t.stack.split?t.stack.split("\n"):t.stack:void 0},type:202}):this.sendResponse({id:i,data:t,type:203}),this.activeRequests.delete(e.id)});const c=r.toDisposable(()=>n.cancel());this.activeRequests.set(e.id,c)}onEventListen(e){const t=this.channels.get(e.channelName);if(!t)throw new Error("Unknown channel");const n=e.id,s=t.listen(this.ctx,e.name,e.arg)(e=>this.sendResponse({id:n,data:e,type:204}));this.activeRequests.set(e.id,s)}disposeActiveRequest(e){const t=this.activeRequests.get(e.id);t&&(t.dispose(),this.activeRequests.delete(e.id))}dispose(){this.protocolListener&&(this.protocolListener.dispose(),this.protocolListener=null),this.activeRequests.forEach(e=>e.dispose()),this.activeRequests.clear()}}t.ChannelServer=w;class _{constructor(e){this.protocol=e,this.state=g.Uninitialized,this.activeRequests=new Set,this.handlers=new Map,this.lastRequestId=0,this._onDidInitialize=new s.Emitter,
this.onDidInitialize=this._onDidInitialize.event,this.protocolListener=this.protocol.onMessage(e=>this.onBuffer(e))}getChannel(e){const t=this;return{call:(n,s,r)=>t.requestPromise(e,n,s,r),listen:(n,s)=>t.requestEvent(e,n,s)}}requestPromise(e,t,n,s=o.CancellationToken.None){const l=this.lastRequestId++,a={id:l,type:100,channelName:e,name:t,arg:n};if(s.isCancellationRequested)return Promise.reject(c.canceled());let u;return new Promise((e,t)=>{if(s.isCancellationRequested)return t(c.canceled());let n=i.createCancelablePromise(e=>this.whenInitialized());n.then(()=>{n=null;this.handlers.set(l,n=>{switch(n.type){case 201:this.handlers.delete(l),e(n.data);break;case 202:this.handlers.delete(l);const s=new Error(n.data.message);s.stack=n.data.stack,s.name=n.data.name,t(s);break;case 203:this.handlers.delete(l),t(n.data)}}),this.sendRequest(a)});const o=()=>{n?(n.cancel(),n=null):this.sendRequest({id:l,type:101}),t(c.canceled())},h=s.onCancellationRequested(o);u=r.combinedDisposable([r.toDisposable(o),h]),
this.activeRequests.add(u)}).finally(()=>this.activeRequests.delete(u))}requestEvent(e,t,n){const r=this.lastRequestId++,o={id:r,type:102,channelName:e,name:t,arg:n};let c=null;const l=new s.Emitter({onFirstListenerAdd:()=>{(c=i.createCancelablePromise(e=>this.whenInitialized())).then(()=>{c=null,this.activeRequests.add(l),this.sendRequest(o)})},onLastListenerRemove:()=>{c?(c.cancel(),c=null):(this.activeRequests.delete(l),this.sendRequest({id:r,type:103}))}});return this.handlers.set(r,e=>l.fire(e.data)),l.event}sendRequest(e){switch(e.type){case 100:case 102:return this.send([e.type,e.id,e.channelName,e.name],e.arg);case 101:case 103:return this.send([e.type,e.id])}}send(e,t){const n=new v;f(n,e),f(n,t),this.sendBuffer(n.buffer)}sendBuffer(e){try{this.protocol.send(e)}catch(e){}}onBuffer(e){const t=new m(e),n=d(t),s=d(t);switch(n[0]){case 200:return this.onResponse({type:n[0]});case 201:case 202:case 204:case 203:return this.onResponse({type:n[0],id:n[1],data:s})}}onResponse(e){
if(200===e.type)return this.state=g.Idle,void this._onDidInitialize.fire();const t=this.handlers.get(e.id);t&&t(e)}whenInitialized(){return this.state===g.Idle?Promise.resolve():s.Event.toPromise(this.onDidInitialize)}dispose(){this.protocolListener&&(this.protocolListener.dispose(),this.protocolListener=null),this.activeRequests.forEach(e=>e.dispose()),this.activeRequests.clear()}}t.ChannelClient=_;class A{constructor(e){this.channels=new Map,this._connections=new Set,this._onDidChangeConnections=new s.Emitter,this.onDidChangeConnections=this._onDidChangeConnections.event,e(({protocol:e,onDidClientDisconnect:t})=>{s.Event.once(e.onMessage)(n=>{const s=d(new m(n)),r=new w(e,s),i=new _(e);this.channels.forEach((e,t)=>r.registerChannel(t,e));const o={channelClient:i,ctx:s};this._connections.add(o),this._onDidChangeConnections.fire(o),t(()=>{r.dispose(),i.dispose(),this._connections.delete(o)})})})}get connections(){const e=[];return this._connections.forEach(t=>e.push(t)),e}getChannel(e,t){const n=this;return{
call:(s,r,i)=>p(t.routeCall(n,s,r).then(t=>t.channelClient.getChannel(e))).call(s,r,i),listen:(s,r)=>p(t.routeEvent(n,s,r).then(t=>t.channelClient.getChannel(e))).listen(s,r)}}registerChannel(e,t){this.channels.set(e,t)}dispose(){this.channels.clear(),this._connections.clear(),this._onDidChangeConnections.dispose()}}t.IPCServer=A;class E{constructor(e,t){const n=new v;f(n,t),e.send(n.buffer),this.channelClient=new _(e),this.channelServer=new w(e,t)}getChannel(e){return this.channelClient.getChannel(e)}registerChannel(e,t){this.channelServer.registerChannel(e,t)}dispose(){this.channelClient.dispose(),this.channelServer.dispose()}}t.IPCClient=E,t.getDelayedChannel=p,t.getNextTickChannel=function(e){let t=!1;return{call:(n,s,r)=>t?e.call(n,s,r):i.timeout(0).then(()=>t=!0).then(()=>e.call(n,s,r)),listen(n,r){if(t)return e.listen(n,r);const o=new s.Relay;return i.timeout(0).then(()=>t=!0).then(()=>o.input=e.listen(n,r)),o.event}}};class x{constructor(e){this.fn=e}routeCall(e){return this.route(e)}routeEvent(e){
return this.route(e)}route(e){return n(this,void 0,void 0,function*(){for(const t of e.connections)if(yield Promise.resolve(this.fn(t.ctx)))return Promise.resolve(t);return yield s.Event.toPromise(e.onDidChangeConnections),yield this.route(e)})}}t.StaticRouter=x}),define(e[14],t([36,35]),function(e,t){return e.create("vs/base/node/processes",t)}),define(e[24],t([1,0,13,32,25,14,8,6,23,4,20,18]),function(e,t,n,s,r,i,o,c,l,a,u,h){"use strict";function f(t,n){if(a.isWindows)try{const e={stdio:["pipe","pipe","ignore"]};n&&(e.cwd=n),r.execFileSync("taskkill",["/T","/F","/PID",t.pid.toString()],e)}catch(e){return{success:!1,error:e,code:e.status?function(e){switch(e){case 0:return 0;case 1:return 2;case 128:return 3;default:return 1}}(e.status):1}}else if(a.isLinux||a.isMacintosh)try{const n=h.getPathFromAmdModule(e,"vs/base/node/terminateProcess.sh"),s=r.spawnSync(n,[t.pid.toString()]);if(s.error)return{success:!1,error:s.error}}catch(e){return{success:!1,error:e}}else t.kill("SIGKILL");return{success:!0}}
function d(){return process.env.comspec||"cmd.exe"}Object.defineProperty(t,"__esModule",{value:!0}),t.terminateProcess=f,t.getWindowsShell=d;class p{constructor(e,t,n,s){if(void 0!==t&&void 0!==n&&void 0!==s)this.cmd=e,this.args=t,this.shell=n,this.options=s;else{const t=e;this.cmd=t.command,this.shell=t.isShellCommand,this.args=t.args.slice(0),this.options=t.options||{}}if(this.childProcess=null,this.terminateRequested=!1,this.options.env){const e=Object.create(null);Object.keys(process.env).forEach(t=>{e[t]=process.env[t]}),Object.keys(this.options.env).forEach(t=>{e[t]=this.options.env[t]}),this.options.env=e}}getSanitizedCommand(){let e=this.cmd.toLowerCase();const t=e.lastIndexOf(n.sep);return-1!==t&&(e=e.substring(t+1)),p.WellKnowCommands[e]?e:"other"}start(e){return a.isWindows&&(this.options&&this.options.cwd&&l.isUNC(this.options.cwd)||!this.options&&l.isUNC(process.cwd()))?Promise.reject(new Error(i.localize(0,null))):this.useExec().then(t=>{let n,s;const i=new Promise((e,t)=>{n=e,s=t});if(t){
let t=this.cmd;this.args&&(t=t+" "+this.args.join(" ")),this.childProcess=r.exec(t,this.options,(t,r,i)=>{this.childProcess=null;const o=t;o&&o.killed?s({killed:this.terminateRequested,stdout:r.toString(),stderr:i.toString()}):this.handleExec(n,e,t,r,i)})}else{let t=null;if(this.shell&&a.isWindows){const e=c.deepClone(this.options);e.windowsVerbatimArguments=!0,e.detached=!1;let n=!1,s=!1;const i=[];let o=this.ensureQuotes(this.cmd);i.push(o.value),n=o.quoted,this.args&&this.args.forEach(e=>{o=this.ensureQuotes(e),i.push(o.value),s=s&&o.quoted});const l=["/s","/c"];n?s?l.push('"'+i.join(" ")+'"'):i.length>1?l.push('"'+i[0]+'" '+i.slice(1).join(" ")):l.push('"'+i[0]+'"'):l.push(i.join(" ")),t=r.spawn(d(),l,e)}else this.cmd&&(t=r.spawn(this.cmd,this.args,this.options));t&&(this.childProcess=t,this.childProcessPromise=Promise.resolve(t),this.pidResolve&&(this.pidResolve(o.isNumber(t.pid)?t.pid:-1),this.pidResolve=void 0),t.on("error",e=>{this.childProcess=null,s({terminated:this.terminateRequested,error:e})}),
t.pid&&(this.childProcess.on("close",t=>{this.childProcess=null,this.childProcessPromise=null,this.handleClose(t,n,e,s);const r={terminated:this.terminateRequested};o.isNumber(t)&&(r.cmdCode=t),n(r)}),this.handleSpawn(t,n,e,s,!0)))}return i})}handleClose(e,t,n,s){}ensureQuotes(e){return p.regexp.test(e)?{value:'"'+e+'"',quoted:!0}:{value:e,quoted:e.length>0&&'"'===e[0]&&'"'===e[e.length-1]}}get pid(){return this.childProcessPromise?this.childProcessPromise.then(e=>e.pid,e=>-1):new Promise(e=>{this.pidResolve=e})}terminate(){return this.childProcessPromise?this.childProcessPromise.then(e=>{this.terminateRequested=!0;const t=f(e,this.options.cwd);return t.success&&(this.childProcess=null),t},e=>({success:!0})):Promise.resolve({success:!0})}useExec(){return new Promise((e,t)=>{if(!this.shell||!a.isWindows)return e(!1);const n=r.spawn(d(),["/s","/c"]);n.on("error",t=>e(!0)),n.on("exit",t=>e(!1))})}}p.WellKnowCommands={ant:!0,cmake:!0,eslint:!0,gradle:!0,grunt:!0,gulp:!0,jake:!0,jenkins:!0,jshint:!0,make:!0,
maven:!0,msbuild:!0,msc:!0,nmake:!0,npm:!0,rake:!0,tsc:!0,xbuild:!0},p.regexp=/^[^"].* .*[^"]/,t.AbstractProcess=p;class g extends p{constructor(e,t,n,s){super(e,t,n,s)}handleExec(e,t,n,s,r){[s,r].forEach((e,n)=>{const s=new u.LineDecoder;s.write(e).forEach(e=>{t({line:e,source:0===n?0:1})});const r=s.end();r&&t({line:r,source:0===n?0:1})}),e({terminated:this.terminateRequested,error:n})}handleSpawn(e,t,n,s,r){this.stdoutLineDecoder=new u.LineDecoder,this.stderrLineDecoder=new u.LineDecoder,e.stdout.on("data",e=>{this.stdoutLineDecoder.write(e).forEach(e=>n({line:e,source:0}))}),e.stderr.on("data",e=>{this.stderrLineDecoder.write(e).forEach(e=>n({line:e,source:1}))})}handleClose(e,t,n,s){[this.stdoutLineDecoder.end(),this.stderrLineDecoder.end()].forEach((e,t)=>{e&&n({line:e,source:0===t?0:1})})}}t.LineProcess=g,t.createQueuedSender=function(e){let t=[],n=!1;const s=function(r){n?t.push(r):e.send(r,e=>{if(e&&console.error(e),n=!1,t.length>0){const e=t.slice(0);t=[],e.forEach(e=>s(e))}})&&!a.isWindows||(n=!0)}
;return{send:s}};!function(e){e.findExecutable=function(e,t,r){if(n.isAbsolute(e))return e;if(void 0===t&&(t=process.cwd()),"."!==n.dirname(e))return n.join(t,e);if(void 0===r&&o.isString(process.env.PATH)&&(r=process.env.PATH.split(n.delimiter)),void 0===r||0===r.length)return n.join(t,e);for(let i of r){let r;if(r=n.isAbsolute(i)?n.join(i,e):n.join(t,i,e),s.existsSync(r))return r;let o=r+".com";if(s.existsSync(o))return o;if(o=r+".exe",s.existsSync(o))return o}return n.join(t,e)}}(t.win32||(t.win32={}))}),define(e[26],t([1,0,25,2,10,6,3,24,21,19,7,5,12]),function(e,t,n,s,r,i,o,c,l,a,u,h,f){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class d extends l.ChannelServer{constructor(e){super({send:e=>{try{process.send&&process.send(e.buffer.toString("base64"))}catch(e){}},onMessage:o.Event.fromNodeEventEmitter(process,"message",e=>f.VSBuffer.wrap(Buffer.from(e,"base64")))},e),process.once("disconnect",()=>this.dispose())}}t.Server=d;class p{constructor(e,t){this.modulePath=e,this.options=t,
this.activeRequests=new Set,this.channels=new Map,this._onDidProcessExit=new o.Emitter,this.onDidProcessExit=this._onDidProcessExit.event;const n=t&&t.timeout?t.timeout:6e4;this.disposeDelayer=new r.Delayer(n),this.child=null,this._client=null}getChannel(e){const t=this;return{call:(n,s,r)=>t.requestPromise(e,n,s,r),listen:(n,s)=>t.requestEvent(e,n,s)}}requestPromise(e,t,n,i=u.CancellationToken.None){if(!this.disposeDelayer)return Promise.reject(new Error("disposed"));if(i.isCancellationRequested)return Promise.reject(h.canceled());this.disposeDelayer.cancel();const o=this.getCachedChannel(e),c=r.createCancelablePromise(e=>o.call(t,n,e)),l=i.onCancellationRequested(()=>c.cancel()),a=s.toDisposable(()=>c.cancel());return this.activeRequests.add(a),c.finally(()=>{l.dispose(),this.activeRequests.delete(a),0===this.activeRequests.size&&this.disposeDelayer.trigger(()=>this.disposeClient())}),c}requestEvent(e,t,n){if(!this.disposeDelayer)return o.Event.None;this.disposeDelayer.cancel();let s;const r=new o.Emitter({
onFirstListenerAdd:()=>{const i=this.getCachedChannel(e).listen(t,n);s=i(r.fire,r),this.activeRequests.add(s)},onLastListenerRemove:()=>{this.activeRequests.delete(s),s.dispose(),0===this.activeRequests.size&&this.disposeDelayer&&this.disposeDelayer.trigger(()=>this.disposeClient())}});return r.event}get client(){if(!this._client){const e=this.options&&this.options.args?this.options.args:[],t=Object.create(null);t.env=i.assign(i.deepClone(process.env),{VSCODE_PARENT_PID:String(process.pid)}),this.options&&this.options.env&&(t.env=i.assign(t.env,this.options.env)),this.options&&this.options.freshExecArgv&&(t.execArgv=[]),this.options&&"number"==typeof this.options.debug&&(t.execArgv=["--nolazy","--inspect="+this.options.debug]),this.options&&"number"==typeof this.options.debugBrk&&(t.execArgv=["--nolazy","--inspect-brk="+this.options.debugBrk]),this.child=n.fork(this.modulePath,e,t);const r=new o.Emitter;o.Event.fromNodeEventEmitter(this.child,"message",e=>e)(e=>{
a.isRemoteConsoleLog(e)?a.log(e,`IPC Library: ${this.options.serverName}`):r.fire(f.VSBuffer.wrap(Buffer.from(e,"base64")))});const u=this.options.useQueue?c.createQueuedSender(this.child):this.child,h={send:e=>this.child&&this.child.connected&&u.send(e.buffer.toString("base64")),onMessage:r.event};this._client=new l.ChannelClient(h);const d=()=>this.disposeClient();process.once("exit",d),this.child.on("error",e=>console.warn('IPC "'+this.options.serverName+'" errored with '+e)),this.child.on("exit",(e,t)=>{process.removeListener("exit",d),this.activeRequests.forEach(e=>s.dispose(e)),this.activeRequests.clear(),0!==e&&"SIGTERM"!==t&&console.warn('IPC "'+this.options.serverName+'" crashed with exit code '+e+" and signal "+t),this.disposeDelayer&&this.disposeDelayer.cancel(),this.disposeClient(),this._onDidProcessExit.fire({code:e,signal:t})})}return this._client}getCachedChannel(e){let t=this.channels.get(e);return t||(t=this.client.getChannel(e),this.channels.set(e,t)),t}disposeClient(){
this._client&&(this.child&&(this.child.kill(),this.child=null),this._client=null,this.channels.clear())}dispose(){this._onDidProcessExit.dispose(),this.disposeDelayer.cancel(),this.disposeDelayer=null,this.disposeClient(),this.activeRequests.clear()}}t.Client=p}),define(e[27],t([1,0]),function(e,t){"use strict";function n(e,t,n,s){t[r.DI_TARGET]===t?t[r.DI_DEPENDENCIES].push({id:e,index:n,optional:s}):(t[r.DI_DEPENDENCIES]=[{id:e,index:n,optional:s}],t[r.DI_TARGET]=t)}function s(e){if(r.serviceIds.has(e))return r.serviceIds.get(e);const t=function(e,s,r){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");n(t,e,r,!1)};return t.toString=(()=>e),r.serviceIds.set(e,t),t}Object.defineProperty(t,"__esModule",{value:!0});var r;!function(e){e.serviceIds=new Map,e.DI_TARGET="$di$target",e.DI_DEPENDENCIES="$di$dependencies",e.getServiceDependencies=function(t){return t[e.DI_DEPENDENCIES]||[]}}(r=t._util||(t._util={})),
t.IInstantiationService=s("instantiationService"),t.createDecorator=s,t.optional=function(e){return function(t,s,r){if(3!==arguments.length)throw new Error("@optional-decorator can only be used to decorate a parameter");n(e,t,r,!0)}}}),define(e[28],t([1,0,27,2,4,3]),function(e,t,n,s,r,i){"use strict";function o(){return(new Date).toISOString()}Object.defineProperty(t,"__esModule",{value:!0}),t.ILogService=n.createDecorator("logService");var c;!function(e){e[e.Trace=0]="Trace",e[e.Debug=1]="Debug",e[e.Info=2]="Info",e[e.Warning=3]="Warning",e[e.Error=4]="Error",e[e.Critical=5]="Critical",e[e.Off=6]="Off"}(c=t.LogLevel||(t.LogLevel={})),t.DEFAULT_LOG_LEVEL=c.Info;class l extends s.Disposable{constructor(){super(...arguments),this.level=t.DEFAULT_LOG_LEVEL,this._onDidChangeLogLevel=this._register(new i.Emitter),this.onDidChangeLogLevel=this._onDidChangeLogLevel.event}setLevel(e){this.level!==e&&(this.level=e,this._onDidChangeLogLevel.fire(this.level))}getLevel(){return this.level}}t.AbstractLogService=l
;class a extends l{constructor(e=t.DEFAULT_LOG_LEVEL){super(),this.setLevel(e),this.useColors=!r.isWindows}trace(e,...t){this.getLevel()<=c.Trace&&(this.useColors?console.log(`[90m[main ${o()}][0m`,e,...t):console.log(`[main ${o()}]`,e,...t))}debug(e,...t){this.getLevel()<=c.Debug&&(this.useColors?console.log(`[90m[main ${o()}][0m`,e,...t):console.log(`[main ${o()}]`,e,...t))}info(e,...t){this.getLevel()<=c.Info&&(this.useColors?console.log(`[90m[main ${o()}][0m`,e,...t):console.log(`[main ${o()}]`,e,...t))}warn(e,...t){this.getLevel()<=c.Warning&&(this.useColors?console.warn(`[93m[main ${o()}][0m`,e,...t):console.warn(`[main ${o()}]`,e,...t))}error(e,...t){this.getLevel()<=c.Error&&(this.useColors?console.error(`[91m[main ${o()}][0m`,e,...t):console.error(`[main ${o()}]`,e,...t))}critical(e,...t){this.getLevel()<=c.Critical&&(this.useColors?console.error(`[90m[main ${o()}][0m`,e,...t):console.error(`[main ${o()}]`,e,...t))}dispose(){}}t.ConsoleLogMainService=a;class u extends l{
constructor(e=t.DEFAULT_LOG_LEVEL){super(),this.setLevel(e)}trace(e,...t){this.getLevel()<=c.Trace&&console.log("%cTRACE","color: #888",e,...t)}debug(e,...t){this.getLevel()<=c.Debug&&console.log("%cDEBUG","background: #eee; color: #888",e,...t)}info(e,...t){this.getLevel()<=c.Info&&console.log("%c INFO","color: #33f",e,...t)}warn(e,...t){this.getLevel()<=c.Warning&&console.log("%c WARN","color: #993",e,...t)}error(e,...t){this.getLevel()<=c.Error&&console.log("%c  ERR","color: #f33",e,...t)}critical(e,...t){this.getLevel()<=c.Critical&&console.log("%cCRITI","background: #f33; color: white",e,...t)}dispose(){}}t.ConsoleLogService=u;class h extends l{constructor(e){super(),this.logServices=e,e.length&&this.setLevel(e[0].getLevel())}setLevel(e){for(const t of this.logServices)t.setLevel(e);super.setLevel(e)}trace(e,...t){for(const n of this.logServices)n.trace(e,...t)}debug(e,...t){for(const n of this.logServices)n.debug(e,...t)}info(e,...t){for(const n of this.logServices)n.info(e,...t)}warn(e,...t){
for(const n of this.logServices)n.warn(e,...t)}error(e,...t){for(const n of this.logServices)n.error(e,...t)}critical(e,...t){for(const n of this.logServices)n.critical(e,...t)}dispose(){for(const e of this.logServices)e.dispose()}}t.MultiplexLogService=h;class f extends s.Disposable{constructor(e){super(),this.logService=e,this._register(e)}get onDidChangeLogLevel(){return this.logService.onDidChangeLogLevel}setLevel(e){this.logService.setLevel(e)}getLevel(){return this.logService.getLevel()}trace(e,...t){this.logService.trace(e,...t)}debug(e,...t){this.logService.debug(e,...t)}info(e,...t){this.logService.info(e,...t)}warn(e,...t){this.logService.warn(e,...t)}error(e,...t){this.logService.error(e,...t)}critical(e,...t){this.logService.critical(e,...t)}}t.DelegatedLogService=f;class d{constructor(){this.onDidChangeLogLevel=(new i.Emitter).event}setLevel(e){}getLevel(){return c.Info}trace(e,...t){}debug(e,...t){}info(e,...t){}warn(e,...t){}error(e,...t){}critical(e,...t){}dispose(){}}t.NullLogService=d,
t.getLogLevel=function(e){if(e.verbose)return c.Trace;if("string"==typeof e.args.log)switch(e.args.log.toLowerCase()){case"trace":return c.Trace;case"debug":return c.Debug;case"info":return c.Info;case"warn":return c.Warning;case"error":return c.Error;case"critical":return c.Critical;case"off":return c.Off}return t.DEFAULT_LOG_LEVEL}});var s=this&&this.__decorate||function(e,t,n,s){var r,i=arguments.length,o=i<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)(r=e[c])&&(o=(i<3?r(o):i>3?r(t,n,o):r(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},r=this&&this.__param||function(e,t){return function(n,s){t(n,s,e)}};define(e[29],t([1,0,34,8,6,28]),function(e,t,n,i,o,c){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let l=class e{constructor(e,t,s,r){this._eventPrefix=e,this._defaultData=t,this._logService=r,
this._defaultData||(this._defaultData=Object.create(null)),"string"==typeof s?this._aiClient=function(e){let t;return n.defaultClient?(t=new n.TelemetryClient(e)).channel.setUseDiskRetryCaching(!0):(n.setup(e).setAutoCollectRequests(!1).setAutoCollectPerformance(!1).setAutoCollectExceptions(!1).setAutoCollectDependencies(!1).setAutoDependencyCorrelation(!1).setAutoCollectConsole(!1).setInternalLogging(!1,!1).setUseDiskRetryCaching(!0).start(),t=n.defaultClient),0===e.indexOf("AIF-")&&(t.config.endpointUrl="https://vortex.data.microsoft.com/collect/v1"),t}(s):"function"==typeof s&&(this._aiClient=s())}static _getData(t){const n=Object.create(null),s=Object.create(null),r=Object.create(null);e._flaten(t,r);for(let e in r){const t=r[e=e.length>150?e.substr(e.length-149):e];"number"==typeof t?s[e]=t:"boolean"==typeof t?s[e]=t?1:0:"string"==typeof t?n[e]=t.substring(0,1023):void 0!==t&&null!==t&&(n[e]=t)}return{properties:n,measurements:s}}static _flaten(t,n,s=0,r){if(t)for(let c of Object.getOwnPropertyNames(t)){
const l=t[c],a=r?r+c:c;Array.isArray(l)?n[a]=o.safeStringify(l):l instanceof Date?n[a]=l.toISOString():i.isObject(l)?s<2?e._flaten(l,n,s+1,a+"."):n[a]=o.safeStringify(l):n[a]=l}}log(t,n){this._aiClient&&(n=o.mixin(n,this._defaultData),n=e._getData(n),this._logService&&this._logService.trace(`telemetry/${t}`,n),this._aiClient.trackEvent({name:this._eventPrefix+"/"+t,properties:n.properties,measurements:n.measurements}))}dispose(){if(this._aiClient)return new Promise(e=>{this._aiClient.flush({callback:()=>{this._aiClient=void 0,e(void 0)}})})}};l=s([r(3,c.ILogService)],l),t.AppInsightsAppender=l}),define(e[30],t([1,0]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class n{constructor(e){this.appender=e}listen(e,t){throw new Error(`Event not found: ${t}`)}call(e,t,{eventName:n,data:s}){return this.appender.log(n,s),Promise.resolve(null)}}t.TelemetryAppenderChannel=n;class s{constructor(e){this.channel=e}log(e,t){return this.channel.call("log",{eventName:e,data:t
}).then(void 0,e=>`Failed to log telemetry: ${console.warn(e)}`),Promise.resolve(null)}dispose(){}}t.TelemetryAppenderClient=s}),define(e[33],t([1,0,26,29,30]),function(e,t,n,s,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=new s.AppInsightsAppender(process.argv[2],JSON.parse(process.argv[3]),process.argv[4]);process.once("exit",()=>i.dispose());const o=new r.TelemetryAppenderChannel(i);new n.Server("telemetry").registerChannel("telemetryAppender",o)})}).call(this);
//# sourceMappingURL=https://ticino.blob.core.windows.net/sourcemaps/51b0b28134d51361cf996d2f0a1c698247aeabd8/core/vs\workbench\contrib\debug\node\telemetryApp.js.map
