/*!--------------------------------------------------------
 * Copyright (C) Microsoft Corporation. All rights reserved.
 *--------------------------------------------------------*/
(function(){var e=["exports","require","vs/base/common/path","vs/base/common/platform","vs/base/common/extpath","vs/base/common/strings","vs/base/common/uri","vs/base/common/map","vs/base/common/network","vs/base/common/async","vs/base/common/resources","vs/base/common/glob","vs/base/common/process","vs/base/common/lifecycle","vs/base/common/event","vs/base/common/iterator","vs/base/common/errors","vs/base/common/arrays","vs/base/common/cancellation","vs/workbench/contrib/output/common/outputLinkComputer","vs/editor/common/core/range"],t=function(t){for(var r=[],n=0,s=t.length;n<s;n++)r[n]=e[t[n]];return r},r=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(s,i){function o(e){try{l(n.next(e))}catch(e){i(e)}}function a(e){try{l(n.throw(e))}catch(e){i(e)}}function l(e){e.done?s(e.value):new r(function(t){t(e.value)}).then(o,a)}l((n=n.apply(e,t||[])).next())})};define(e[9],t([1,0,18,16,14,13]),function(e,t,n,s,i,o){"use strict";function a(e){return e&&"function"==typeof e.then}
function l(e){const t=new n.CancellationTokenSource,r=e(t.token),i=new Promise((e,n)=>{t.token.onCancellationRequested(()=>{n(s.canceled())}),Promise.resolve(r).then(r=>{t.dispose(),e(r)},e=>{t.dispose(),n(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 h(e,t){return t?new Promise((r,n)=>{const i=setTimeout(r,e);t.onCancellationRequested(()=>{clearTimeout(i),n(s.canceled())})}):l(t=>h(e,t))}function c(e){function t(i){void 0!==i&&null!==i&&r.push(i);const o=n<s?e[n++]():null;return o?o.then(t):Promise.resolve(r)}const r=[];let n=0;const s=e.length;return Promise.resolve(null).then(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.isThenable=a,t.createCancelablePromise=l,t.asPromise=function(e){return new Promise((t,r)=>{const n=e();a(n)?n.then(t,r):t(n)})};class u{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=u;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(s.canceled()),this.completionPromise=null)}cancelTimeout(){null!==this.timeout&&(clearTimeout(this.timeout),this.timeout=null)}dispose(){this.cancelTimeout()}}t.Delayer=d;class m{constructor(e){this.delayer=new d(e),this.throttler=new u}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=m;class p{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=p,t.timeout=h,t.disposableTimeout=function(e,t=0){const r=setTimeout(e,t);return o.toDisposable(()=>clearTimeout(r))},t.ignoreErrors=function(e){
return e.then(void 0,e=>void 0)},t.sequence=c,t.first=function(e,t=(e=>!!e),r=null){let n=0;const s=e.length,i=()=>{if(n>=s)return Promise.resolve(r);const o=e[n++];return Promise.resolve(o()).then(e=>t(e)?Promise.resolve(e):i())};return i()};class g{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,r)=>{this.outstandingPromises.push({factory:e,c:t,e:r}),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=g;class v extends g{
constructor(){super(1)}}t.Queue=v;class _{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=_;class w 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=w;class x 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=x;class b{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=b;class C extends b{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=C,t.nfcall=function(e,...t){return new Promise((r,n)=>e(...t,(e,t)=>e?n(e):r(t)))},t.ninvoke=function(e,t,...r){return new Promise((n,s)=>t.call(e,...r,(e,t)=>e?s(e):n(t)))},function(){if("function"!=typeof requestIdleCallback||"function"!=typeof cancelIdleCallback){const e=Object.freeze({didTimeout:!0,timeRemaining:()=>15})
;t.runWhenIdle=(t=>{const r=setTimeout(()=>t(e));let n=!1;return{dispose(){n||(n=!0,clearTimeout(r))}}})}else t.runWhenIdle=((e,t)=>{const r=requestIdleCallback(e,"number"==typeof t?{timeout:t}:void 0);let n=!1;return{dispose(){n||(n=!0,cancelIdleCallback(r))}}})}();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,n){return r(this,void 0,void 0,function*(){let r;for(let s=0;s<n;s++)try{return yield e()}catch(e){r=e,yield h(t)}return Promise.reject(r)})}}),define(e[8],t([1,0]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(e){e.inMemory="inmemory",e.vscode="vscode",e.internal="private",e.walkThrough="walkThrough",e.walkThroughSnippet="walkThroughSnippet",
e.http="http",e.https="https",e.file="file",e.mailto="mailto",e.untitled="untitled",e.data="data",e.command="command"}(t.Schemas||(t.Schemas={}))}),define(e[12],t([1,0,3]),function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n="undefined"==typeof process?{cwd:()=>"/",env:Object.create(null),get platform(){return r.isWindows?"win32":r.isMacintosh?"darwin":"linux"},nextTick:e=>r.setImmediate(e)}:process;t.cwd=n.cwd,t.env=n.env,t.platform=n.platform,t.nextTick=n.nextTick}),define(e[2],t([1,0,12]),function(e,t,r){"use strict";function n(e,t){if("string"!=typeof e)throw new g(t,"string",e)}function s(e){return e===m||e===p}function i(e){return e===m}function o(e){return e>=h&&e<=u||e>=c&&e<=f}function a(e,t,r,n){let s,i="",o=0,a=-1,l=0;for(let h=0;h<=e.length;++h){if(h<e.length)s=e.charCodeAt(h);else{if(n(s))break;s=m}if(n(s)){if(a===h-1||1===l);else if(a!==h-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(r);-1===e?(i="",o=0):o=(i=i.slice(0,e)).length-1-i.lastIndexOf(r),a=h,l=0;continue}if(2===i.length||1===i.length){i="",o=0,a=h,l=0;continue}}t&&(i.length>0?i+=`${r}..`:i="..",o=2)}else i.length>0?i+=r+e.slice(a+1,h):i=e.slice(a+1,h),o=h-a-1;a=h,l=0}else s===d&&-1!==l?++l:l=-1}return i}function l(e,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}Object.defineProperty(t,"__esModule",{value:!0});const h=65,c=97,u=90,f=122,d=46,m=47,p=92;class g extends Error{constructor(e,t,r){let n;"string"==typeof t&&0===t.indexOf("not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";let s=`The "${e}" ${-1!==e.indexOf(".")?"property":"argument"} ${n} of type ${t}`;super(s+=`. Received type ${typeof r}`)}}t.win32={resolve(...e){let t="",i="",l=!1;for(let a=e.length-1;a>=-1;a--){let h;if(a>=0?h=e[a]:t?void 0!==(h=r.env["="+t]||r.cwd())&&h.slice(0,3).toLowerCase()===t.toLowerCase()+"\\"||(h=t+"\\"):h=r.cwd(),n(h,"path"),0===h.length)continue
;const c=h.length;let u=0,f="",d=!1;const m=h.charCodeAt(0);if(c>1)if(s(m))if(d=!0,s(h.charCodeAt(1))){let e=2,t=e;for(;e<c&&!s(h.charCodeAt(e));++e);if(e<c&&e!==t){const r=h.slice(t,e);for(t=e;e<c&&s(h.charCodeAt(e));++e);if(e<c&&e!==t){for(t=e;e<c&&!s(h.charCodeAt(e));++e);e===c?(f="\\\\"+r+"\\"+h.slice(t),u=e):e!==t&&(f="\\\\"+r+"\\"+h.slice(t,e),u=e)}}}else u=1;else o(m)&&58===h.charCodeAt(1)&&(f=h.slice(0,2),u=2,c>2&&s(h.charCodeAt(2))&&(d=!0,u=3));else s(m)&&(u=1,d=!0);if(!(f.length>0&&t.length>0&&f.toLowerCase()!==t.toLowerCase())&&(0===t.length&&f.length>0&&(t=f),l||(i=h.slice(u)+"\\"+i,l=d),t.length>0&&l))break}return i=a(i,!l,"\\",s),t+(l?"\\":"")+i||"."},normalize(e){n(e,"path");const t=e.length;if(0===t)return".";let r,i=0,l=!1;const h=e.charCodeAt(0);if(t>1)if(s(h))if(l=!0,s(e.charCodeAt(1))){let n=2,o=n;for(;n<t&&!s(e.charCodeAt(n));++n);if(n<t&&n!==o){const a=e.slice(o,n);for(o=n;n<t&&s(e.charCodeAt(n));++n);if(n<t&&n!==o){for(o=n;n<t&&!s(e.charCodeAt(n));++n);
if(n===t)return"\\\\"+a+"\\"+e.slice(o)+"\\";n!==o&&(r="\\\\"+a+"\\"+e.slice(o,n),i=n)}}}else i=1;else o(h)&&58===e.charCodeAt(1)&&(r=e.slice(0,2),i=2,t>2&&s(e.charCodeAt(2))&&(l=!0,i=3));else if(s(h))return"\\";let c;return 0!==(c=i<t?a(e.slice(i),!l,"\\",s):"").length||l||(c="."),c.length>0&&s(e.charCodeAt(t-1))&&(c+="\\"),void 0===r?l?c.length>0?"\\"+c:"\\":c.length>0?c:"":l?c.length>0?r+"\\"+c:r+"\\":c.length>0?r+c:r},isAbsolute(e){n(e,"path");const t=e.length;if(0===t)return!1;const r=e.charCodeAt(0);return!!s(r)||!!(o(r)&&t>2&&58===e.charCodeAt(1)&&s(e.charCodeAt(2)))},join(...e){if(0===e.length)return".";let r,i;for(let t=0;t<e.length;++t){const s=e[t];n(s,"path"),s.length>0&&(void 0===r?r=i=s:r+="\\"+s)}if(void 0===r)return".";let o=!0,a=0;if("string"==typeof i&&s(i.charCodeAt(0))){++a;const e=i.length;e>1&&s(i.charCodeAt(1))&&(++a,e>2&&(s(i.charCodeAt(2))?++a:o=!1))}if(o){for(;a<r.length&&s(r.charCodeAt(a));++a);a>=2&&(r="\\"+r.slice(a))}return t.win32.normalize(r)},relative(e,r){if(n(e,"from"),
n(r,"to"),e===r)return"";const s=t.win32.resolve(e),i=t.win32.resolve(r);if(s===i)return"";if(e=s.toLowerCase(),r=i.toLowerCase(),e===r)return"";let o=0;for(;o<e.length&&e.charCodeAt(o)===p;++o);let a=e.length;for(;a-1>o&&e.charCodeAt(a-1)===p;--a);const l=a-o;let h=0;for(;h<r.length&&r.charCodeAt(h)===p;++h);let c=r.length;for(;c-1>h&&r.charCodeAt(c-1)===p;--c);const u=c-h,f=l<u?l:u;let d=-1,m=0;for(;m<=f;++m){if(m===f){if(u>f){if(r.charCodeAt(h+m)===p)return i.slice(h+m+1);if(2===m)return i.slice(h+m)}l>f&&(e.charCodeAt(o+m)===p?d=m:2===m&&(d=3));break}const t=e.charCodeAt(o+m);if(t!==r.charCodeAt(h+m))break;t===p&&(d=m)}if(m!==f&&-1===d)return i;let g="";for(-1===d&&(d=0),m=o+d+1;m<=a;++m)m!==a&&e.charCodeAt(m)!==p||(0===g.length?g+="..":g+="\\..");return g.length>0?g+i.slice(h+d,c):(h+=d,i.charCodeAt(h)===p&&++h,i.slice(h,c))},toNamespacedPath(e){if("string"!=typeof e)return e;if(0===e.length)return"";const r=t.win32.resolve(e);if(r.length>=3)if(r.charCodeAt(0)===p){if(r.charCodeAt(1)===p){
const e=r.charCodeAt(2);if(63!==e&&e!==d)return"\\\\?\\UNC\\"+r.slice(2)}}else if(o(r.charCodeAt(0))&&58===r.charCodeAt(1)&&r.charCodeAt(2)===p)return"\\\\?\\"+r;return e},dirname(e){n(e,"path");const t=e.length;if(0===t)return".";let r=-1,i=-1,a=!0,l=0;const h=e.charCodeAt(0);if(t>1)if(s(h)){if(r=l=1,s(e.charCodeAt(1))){let n=2,i=n;for(;n<t&&!s(e.charCodeAt(n));++n);if(n<t&&n!==i){for(i=n;n<t&&s(e.charCodeAt(n));++n);if(n<t&&n!==i){for(i=n;n<t&&!s(e.charCodeAt(n));++n);if(n===t)return e;n!==i&&(r=l=n+1)}}}}else o(h)&&58===e.charCodeAt(1)&&(r=l=2,t>2&&s(e.charCodeAt(2))&&(r=l=3));else if(s(h))return e;for(let r=t-1;r>=l;--r)if(s(e.charCodeAt(r))){if(!a){i=r;break}}else a=!1;if(-1===i){if(-1===r)return".";i=r}return e.slice(0,i)},basename(e,t){void 0!==t&&n(t,"ext"),n(e,"path");let r,i=0,a=-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 n=t.length-1,o=-1;for(r=e.length-1;r>=i;--r){
const h=e.charCodeAt(r);if(s(h)){if(!l){i=r+1;break}}else-1===o&&(l=!1,o=r+1),n>=0&&(h===t.charCodeAt(n)?-1==--n&&(a=r):(n=-1,a=o))}return i===a?a=o:-1===a&&(a=e.length),e.slice(i,a)}for(r=e.length-1;r>=i;--r)if(s(e.charCodeAt(r))){if(!l){i=r+1;break}}else-1===a&&(l=!1,a=r+1);return-1===a?"":e.slice(i,a)},extname(e){n(e,"path");let t=0,r=-1,i=0,a=-1,l=!0,h=0;e.length>=2&&58===e.charCodeAt(1)&&o(e.charCodeAt(0))&&(t=i=2);for(let n=e.length-1;n>=t;--n){const t=e.charCodeAt(n);if(s(t)){if(!l){i=n+1;break}}else-1===a&&(l=!1,a=n+1),t===d?-1===r?r=n:1!==h&&(h=1):-1!==r&&(h=-1)}return-1===r||-1===a||0===h||1===h&&r===a-1&&r===i+1?"":e.slice(r,a)},format(e){if(null===e||"object"!=typeof e)throw new g("pathObject","Object",e);return l("\\",e)},parse(e){n(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const r=e.length;let i=0,a=e.charCodeAt(0);if(r>1){if(s(a)){if(i=1,s(e.charCodeAt(1))){let t=2,n=t;for(;t<r&&!s(e.charCodeAt(t));++t);if(t<r&&t!==n){
for(n=t;t<r&&s(e.charCodeAt(t));++t);if(t<r&&t!==n){for(n=t;t<r&&!s(e.charCodeAt(t));++t);t===r?i=t:t!==n&&(i=t+1)}}}}else if(o(a)&&58===e.charCodeAt(1)){if(i=2,!(r>2))return t.root=t.dir=e,t;if(s(e.charCodeAt(2))){if(3===r)return t.root=t.dir=e,t;i=3}}}else if(s(a))return t.root=t.dir=e,t;i>0&&(t.root=e.slice(0,i));let l=-1,h=i,c=-1,u=!0,f=e.length-1,m=0;for(;f>=i;--f)if(a=e.charCodeAt(f),s(a)){if(!u){h=f+1;break}}else-1===c&&(u=!1,c=f+1),a===d?-1===l?l=f:1!==m&&(m=1):-1!==l&&(m=-1);return-1===l||-1===c||0===m||1===m&&l===c-1&&l===h+1?-1!==c&&(t.base=t.name=e.slice(h,c)):(t.name=e.slice(h,l),t.base=e.slice(h,c),t.ext=e.slice(l,c)),t.dir=h>0&&h!==i?e.slice(0,h-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},t.posix={resolve(...e){let t="",s=!1;for(let i=e.length-1;i>=-1&&!s;i--){let o;n(o=i>=0?e[i]:r.cwd(),"path"),0!==o.length&&(t=o+"/"+t,s=o.charCodeAt(0)===m)}return t=a(t,!s,"/",i),s?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize(e){if(n(e,"path"),0===e.length)return"."
;const t=e.charCodeAt(0)===m,r=e.charCodeAt(e.length-1)===m;return 0!==(e=a(e,!t,"/",i)).length||t||(e="."),e.length>0&&r&&(e+="/"),t?"/"+e:e},isAbsolute:e=>(n(e,"path"),e.length>0&&e.charCodeAt(0)===m),join(...e){if(0===e.length)return".";let r;for(let t=0;t<e.length;++t){const e=arguments[t];n(e,"path"),e.length>0&&(void 0===r?r=e:r+="/"+e)}return void 0===r?".":t.posix.normalize(r)},relative(e,r){if(n(e,"from"),n(r,"to"),e===r)return"";if(e=t.posix.resolve(e),r=t.posix.resolve(r),e===r)return"";let s=1;for(;s<e.length&&e.charCodeAt(s)===m;++s);const i=e.length,o=i-s;let a=1;for(;a<r.length&&r.charCodeAt(a)===m;++a);const l=r.length-a,h=o<l?o:l;let c=-1,u=0;for(;u<=h;++u){if(u===h){if(l>h){if(r.charCodeAt(a+u)===m)return r.slice(a+u+1);if(0===u)return r.slice(a+u)}else o>h&&(e.charCodeAt(s+u)===m?c=u:0===u&&(c=0));break}const t=e.charCodeAt(s+u);if(t!==r.charCodeAt(a+u))break;t===m&&(c=u)}let f="";for(u=s+c+1;u<=i;++u)u!==i&&e.charCodeAt(u)!==m||(0===f.length?f+="..":f+="/..")
;return f.length>0?f+r.slice(a+c):(a+=c,r.charCodeAt(a)===m&&++a,r.slice(a))},toNamespacedPath:e=>e,dirname(e){if(n(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===m;let r=-1,s=!0;for(let t=e.length-1;t>=1;--t)if(e.charCodeAt(t)===m){if(!s){r=t;break}}else s=!1;return-1===r?t?"/":".":t&&1===r?"//":e.slice(0,r)},basename(e,t){void 0!==t&&n(t,"ext"),n(e,"path");let r,s=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 n=t.length-1,a=-1;for(r=e.length-1;r>=0;--r){const l=e.charCodeAt(r);if(l===m){if(!o){s=r+1;break}}else-1===a&&(o=!1,a=r+1),n>=0&&(l===t.charCodeAt(n)?-1==--n&&(i=r):(n=-1,i=a))}return s===i?i=a:-1===i&&(i=e.length),e.slice(s,i)}for(r=e.length-1;r>=0;--r)if(e.charCodeAt(r)===m){if(!o){s=r+1;break}}else-1===i&&(o=!1,i=r+1);return-1===i?"":e.slice(s,i)},extname(e){n(e,"path");let t=-1,r=0,s=-1,i=!0,o=0;for(let n=e.length-1;n>=0;--n){const a=e.charCodeAt(n);if(a!==m)-1===s&&(i=!1,s=n+1),
a===d?-1===t?t=n:1!==o&&(o=1):-1!==t&&(o=-1);else if(!i){r=n+1;break}}return-1===t||-1===s||0===o||1===o&&t===s-1&&t===r+1?"":e.slice(t,s)},format(e){if(null===e||"object"!=typeof e)throw new g("pathObject","Object",e);return l("/",e)},parse(e){n(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const r=e.charCodeAt(0)===m;let s;r?(t.root="/",s=1):s=0;let i=-1,o=0,a=-1,l=!0,h=e.length-1,c=0;for(;h>=s;--h){const t=e.charCodeAt(h);if(t!==m)-1===a&&(l=!1,a=h+1),t===d?-1===i?i=h:1!==c&&(c=1):-1!==i&&(c=-1);else if(!l){o=h+1;break}}return-1===i||-1===a||0===c||1===c&&i===a-1&&i===o+1?-1!==a&&(t.base=t.name=0===o&&r?e.slice(1,a):e.slice(o,a)):(0===o&&r?(t.name=e.slice(1,i),t.base=e.slice(1,a)):(t.name=e.slice(o,i),t.base=e.slice(o,a)),t.ext=e.slice(i,a)),o>0?t.dir=e.slice(0,o-1):r&&(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"===r.platform?t.win32.normalize:t.posix.normalize,
t.isAbsolute="win32"===r.platform?t.win32.isAbsolute:t.posix.isAbsolute,t.join="win32"===r.platform?t.win32.join:t.posix.join,t.resolve="win32"===r.platform?t.win32.resolve:t.posix.resolve,t.relative="win32"===r.platform?t.win32.relative:t.posix.relative,t.dirname="win32"===r.platform?t.win32.dirname:t.posix.dirname,t.basename="win32"===r.platform?t.win32.basename:t.posix.basename,t.extname="win32"===r.platform?t.win32.extname:t.posix.extname,t.format="win32"===r.platform?t.win32.format:t.posix.format,t.parse="win32"===r.platform?t.win32.parse:t.posix.parse,t.toNamespacedPath="win32"===r.platform?t.win32.toNamespacedPath:t.posix.toNamespacedPath,t.sep="win32"===r.platform?t.win32.sep:t.posix.sep,t.delimiter="win32"===r.platform?t.win32.delimiter:t.posix.delimiter}),define(e[4],t([1,0,3,5,2]),function(e,t,r,n,s){"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,s.posix.sep)},t.getRoot=function(e,t=s.posix.sep){if(!e)return"";const r=e.length,n=e.charCodeAt(0);if(i(n)){if(i(e.charCodeAt(1))&&!i(e.charCodeAt(2))){let n=3;const s=n;for(;n<r&&!i(e.charCodeAt(n));n++);if(s!==n&&!i(e.charCodeAt(n+1)))for(n+=1;n<r;n++)if(i(e.charCodeAt(n)))return e.slice(0,n+1).replace(/[\\/]/g,t)}return t}if(o(n)&&58===e.charCodeAt(1))return i(e.charCodeAt(2))?e.slice(0,2)+t:e.slice(0,2);let a=e.indexOf("://");if(-1!==a)for(a+=3;a<r;a++)if(i(e.charCodeAt(a)))return e.slice(0,a+1);return""},t.isUNC=function(e){if(!r.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 n=2;const s=n;for(;n<e.length&&92!==(t=e.charCodeAt(n));n++);return s!==n&&(t=e.charCodeAt(n+1),!isNaN(t)&&92!==t)};const a=r.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)||(a.lastIndex=0,
a.test(e)||r.isWindows&&l.test(e)||"."===e||".."===e||r.isWindows&&"."===e[e.length-1]||r.isWindows&&e.length!==e.trim().length||e.length>255))},t.isEqual=function(e,t,r){const s=e===t;return!r||s?s:!(!e||!t)&&n.equalsIgnoreCase(e,t)},t.isEqualOrParent=function(e,t,r,i=s.sep){if(e===t)return!0;if(!e||!t)return!1;if(t.length>e.length)return!1;if(r){if(!n.startsWithIgnoreCase(e,t))return!1;if(t.length===e.length)return!0;let r=t.length;return t.charAt(t.length-1)===i&&r--,e.charAt(r)===i}return t.charAt(t.length-1)!==i&&(t+=i),0===e.indexOf(t)},t.isWindowsDriveLetter=o}),define(e[7],t([1,0,6,15]),function(e,t,r,n){"use strict";function s(e){const t=[];return e.forEach(e=>t.push(e)),t}function i(e){const t=[];return e.forEach((e,r)=>t.push(r)),t}Object.defineProperty(t,"__esModule",{value:!0}),t.values=s,t.keys=i,t.getOrSet=function(e,t,r){let n=e.get(t);return void 0===n&&(n=r,e.set(t,n)),n},t.mapToString=function(e){const t=[];return e.forEach((e,r)=>{t.push(`${r} => ${e}`)}),`Map(${e.size}) {${t.join(", ")}}`
},t.setToString=function(e){const t=[];return e.forEach(e=>{t.push(e)}),`Set(${e.size}) {${t.join(", ")}}`},t.mapToSerializable=function(e){const t=[];return e.forEach((e,r)=>{t.push([r,e])}),t},t.serializableToMap=function(e){const t=new Map;for(const[r,n]of e)t.set(r,n);return t};class o{constructor(){this._value="",this._pos=0}reset(e){return this._value=e,this._pos=0,this}next(){return this._pos+=1,this}hasNext(){return this._pos<this._value.length-1}cmp(e){return e.charCodeAt(0)-this._value.charCodeAt(this._pos)}value(){return this._value[this._pos]}}t.StringIterator=o;class a{reset(e){return this._value=e.replace(/\\$|\/$/,""),this._from=0,this._to=0,this.next()}hasNext(){return this._to<this._value.length}next(){this._from=this._to;let e=!0;for(;this._to<this._value.length;this._to++){const t=this._value.charCodeAt(this._to);if(47===t||92===t){if(!e)break;this._from++}else e=!1}return this}cmp(e){let t=0;const r=e.length;let n=this._from;for(;t<r&&n<this._to;){
const r=e.charCodeAt(t)-this._value.charCodeAt(n);if(0!==r)return r;t+=1,n+=1}return r===this._to-this._from?0:t<r?-1:1}value(){return this._value.substring(this._from,this._to)}}t.PathIterator=a;class l{isEmpty(){return!(this.left||this.mid||this.right||this.value)}}class h{constructor(e){this._iter=e}static forPaths(){return new h(new a)}static forStrings(){return new h(new o)}clear(){this._root=void 0}set(e,t){const r=this._iter.reset(e);let n;for(this._root||(this._root=new l,this._root.segment=r.value()),n=this._root;;){const e=r.cmp(n.segment);if(e>0)n.left||(n.left=new l,n.left.segment=r.value()),n=n.left;else if(e<0)n.right||(n.right=new l,n.right.segment=r.value()),n=n.right;else{if(!r.hasNext())break;r.next(),n.mid||(n.mid=new l,n.mid.segment=r.value()),n=n.mid}}const s=n.value;return n.value=t,n.key=e,s}get(e){const t=this._iter.reset(e);let r=this._root;for(;r;){const e=t.cmp(r.segment);if(e>0)r=r.left;else if(e<0)r=r.right;else{if(!t.hasNext())break;t.next(),r=r.mid}}return r?r.value:void 0}
delete(e){const t=this._iter.reset(e),r=[];let n=this._root;for(;n;){const e=t.cmp(n.segment);if(e>0)r.push([1,n]),n=n.left;else if(e<0)r.push([-1,n]),n=n.right;else{if(!t.hasNext()){for(n.value=void 0;r.length>0&&n.isEmpty();){let[e,t]=r.pop();switch(e){case 1:t.left=void 0;break;case 0:t.mid=void 0;break;case-1:t.right=void 0}n=t}break}t.next(),r.push([0,n]),n=n.mid}}}findSubstr(e){const t=this._iter.reset(e);let r=this._root,n=void 0;for(;r;){const e=t.cmp(r.segment);if(e>0)r=r.left;else if(e<0)r=r.right;else{if(!t.hasNext())break;t.next(),n=r.value||n,r=r.mid}}return r&&r.value||n}findSuperstr(e){const t=this._iter.reset(e);let r=this._root;for(;r;){const e=t.cmp(r.segment);if(e>0)r=r.left;else if(e<0)r=r.right;else{if(!t.hasNext())return r.mid?this._nodeIterator(r.mid):void 0;t.next(),r=r.mid}}}_nodeIterator(e){let t,r,s;return{next:()=>(s||(s=[],r=0,this._forEach(e,e=>s.push(e))),r>=s.length?n.FIN:(t?t.value=s[r++]:t={done:!1,value:s[r++]},t))}}forEach(e){this._forEach(this._root,e)}_forEach(e,t){
e&&(this._forEach(e.left,t),e.value&&t(e.value,e.key),this._forEach(e.mid,t),this._forEach(e.right,t))}}t.TernarySearchTree=h;class c{constructor(){this.map=new Map,this.ignoreCase=!1}set(e,t){this.map.set(this.toKey(e),t)}get(e){return this.map.get(this.toKey(e))}has(e){return this.map.has(this.toKey(e))}get size(){return this.map.size}clear(){this.map.clear()}delete(e){return this.map.delete(this.toKey(e))}forEach(e){this.map.forEach(e)}values(){return s(this.map)}toKey(e){let t=e.toString();return this.ignoreCase&&(t=t.toLowerCase()),t}keys(){return i(this.map).map(e=>r.URI.parse(e))}clone(){const e=new c;return this.map.forEach((t,r)=>e.map.set(r,t)),e}}t.ResourceMap=c;!function(e){e[e.None=0]="None",e[e.AsOld=1]="AsOld",e[e.AsNew=2]="AsNew"}(t.Touch||(t.Touch={}));class u{constructor(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}has(e){
return this._map.has(e)}get(e,t=0){const r=this._map.get(e);if(r)return 0!==t&&this.touch(r,t),r.value}set(e,t,r=0){let n=this._map.get(e);if(n)n.value=t,0!==r&&this.touch(n,r);else{switch(n={key:e,value:t,next:void 0,previous:void 0},r){case 0:this.addItemLast(n);break;case 1:this.addItemFirst(n);break;case 2:default:this.addItemLast(n)}this._map.set(e,n),this._size++}}delete(e){return!!this.remove(e)}remove(e){const t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){let r=this._head;for(;r;)t?e.bind(t)(r.value,r.key,this):e(r.value,r.key,this),r=r.next}values(){const e=[];let t=this._head;for(;t;)e.push(t.value),t=t.next;return e}keys(){const e=[];let t=this._head;for(;t;)e.push(t.key),t=t.next;return e}trimOld(e){if(e>=this.size)return
;if(0===e)return void this.clear();let t=this._head,r=this.size;for(;t&&r>e;)this._map.delete(t.key),t=t.next,r--;this._head=t,this._size=r,t&&(t.previous=void 0)}addItemFirst(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,r=e.previous;if(!t||!r)throw new Error("Invalid list");t.previous=r,r.next=t}e.next=void 0,e.previous=void 0}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(1===t||2===t)if(1===t){
if(e===this._head)return;const t=e.next,r=e.previous;e===this._tail?(r.next=void 0,this._tail=r):(t.previous=r,r.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e}else if(2===t){if(e===this._tail)return;const t=e.next,r=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=r,r.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e}}toJSON(){const e=[];return this.forEach((t,r)=>{e.push([r,t])}),e}fromJSON(e){this.clear();for(const[t,r]of e)this.set(t,r)}}t.LinkedMap=u;class f extends u{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get ratio(){return this._ratio}set ratio(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()}get(e){return super.get(e,2)}peek(e){return super.get(e,0)}set(e,t){super.set(e,t,2),this.checkTrim()}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}t.LRUCache=f}),
define(e[11],t([1,0,17,5,4,2,7,9]),function(e,t,r,n,s,i,o,a){"use strict";function l(e){switch(e){case 0:return"";case 1:return`${C}*?`;default:return`(?:${b}|${C}+${b}|${b}${C}+)*?`}}function h(e,t){if(!e)return[];const r=[];let n=!1,s=!1,i="";for(const o of e){switch(o){case t:if(!n&&!s){r.push(i),i="";continue}break;case"{":n=!0;break;case"}":n=!1;break;case"[":s=!0;break;case"]":s=!1}i+=o}return i&&r.push(i),r}function c(e){if(!e)return"";let t="";const r=h(e,x);if(r.every(e=>e===w))t=".*";else{let e=!1;r.forEach((s,i)=>{if(s===w)return void(e||(t+=l(2),e=!0));let o=!1,a="",u=!1,f="";for(const e of s)if("}"!==e&&o)a+=e;else if(!u||"]"===e&&f)switch(e){case"{":o=!0;continue;case"[":u=!0;continue;case"}":const r=`(?:${h(a,",").map(e=>c(e)).join("|")})`;t+=r,o=!1,a="";break;case"]":t+="["+f+"]",u=!1,f="";break;case"?":t+=C;continue;case"*":t+=l(1);continue;default:t+=n.escapeRegExpCharacters(e)}else{let t;f+=t="-"===e?e:"^"!==e&&"!"!==e||f?e===x?"":n.escapeRegExpCharacters(e):"^"}
i<r.length-1&&(r[i+1]!==w||i+2<r.length)&&(t+=b),e=!1})}return t}function u(e,t){if(!e)return R;let s;s="string"!=typeof e?e.pattern:e;const i=`${s=s.trim()}_${!!t.trimForExclusions}`;let o=I.get(i);if(o)return f(o,e);let a;if(P.test(s)){const e=s.substr(4);o=function(t,r){return"string"==typeof t&&n.endsWith(t,e)?s:null}}else o=(a=y.exec(d(s,t)))?function(e,t){const r=`/${e}`,s=`\\${e}`,i=function(i,o){return"string"!=typeof i?null:o?o===e?t:null:i===e||n.endsWith(i,r)||n.endsWith(i,s)?t:null},o=[e];return i.basenames=o,i.patterns=[t],i.allBasenames=o,i}(a[1],s):(t.trimForExclusions?T:k).test(s)?function(e,t){const n=_(e.slice(1,-1).split(",").map(e=>u(e,t)).filter(e=>e!==R),e),s=n.length;if(!s)return R;if(1===s)return n[0];const i=function(t,r){for(let s=0,i=n.length;s<i;s++)if(n[s](t,r))return e;return null},o=r.first(n,e=>!!e.allBasenames);o&&(i.allBasenames=o.allBasenames);const a=n.reduce((e,t)=>t.allPaths?e.concat(t.allPaths):e,[]);a.length&&(i.allPaths=a);return i
}(s,t):(a=E.exec(d(s,t)))?m(a[1].substr(1),s,!0):(a=S.exec(d(s,t)))?m(a[1],s,!1):function(e){try{const t=new RegExp(`^${c(e)}$`);return function(r,n){return t.lastIndex=0,"string"==typeof r&&t.test(r)?e:null}}catch(e){return R}}(s);return I.set(i,o),f(o,e)}function f(e,t){return"string"==typeof t?e:function(r,n){return s.isEqualOrParent(r,t.base)?e(i.relative(t.base,r),n):null}}function d(e,t){return t.trimForExclusions&&n.endsWith(e,"/**")?e.substr(0,e.length-2):e}function m(e,t,r){const s=i.sep!==i.posix.sep?e.replace(A,i.sep):e,o=i.sep+s,a=r?function(e,r){return"string"!=typeof e||e!==s&&!n.endsWith(e,o)?null:t}:function(e,r){return"string"==typeof e&&e===s?t:null};return a.allPaths=[(r?"*/":"./")+e],a}function p(e,t={}){if(!e)return O;if("string"==typeof e||v(e)){const r=u(e,t);if(r===R)return O;const n=function(e,t){return!!r(e,t)};return r.allBasenames&&(n.allBasenames=r.allBasenames),r.allPaths&&(n.allPaths=r.allPaths),n}return function(e,t){
const n=_(Object.getOwnPropertyNames(e).map(r=>(function(e,t,r){if(!1===t)return R;const n=u(e,r);if(n===R)return R;if("boolean"==typeof t)return n;if(t){const r=t.when;if("string"==typeof r){const t=(t,s,i,o)=>{if(!o||!n(t,s))return null;const l=r.replace("$(basename)",i),h=o(l);return a.isThenable(h)?h.then(t=>t?e:null):h?e:null};return t.requiresSiblings=!0,t}}return n})(r,e[r],t)).filter(e=>e!==R)),s=n.length;if(!s)return R;if(!n.some(e=>!!e.requiresSiblings)){if(1===s)return n[0];const e=function(e,t){for(let r=0,s=n.length;r<s;r++){const s=n[r](e,t);if(s)return s}return null},t=r.first(n,e=>!!e.allBasenames);t&&(e.allBasenames=t.allBasenames);const i=n.reduce((e,t)=>t.allPaths?e.concat(t.allPaths):e,[]);return i.length&&(e.allPaths=i),e}const o=function(e,t,r){let s=void 0;for(let o=0,a=n.length;o<a;o++){const a=n[o];a.requiresSiblings&&r&&(t||(t=i.basename(e)),s||(s=t.substr(0,t.length-i.extname(e).length)));const l=a(e,t,s,r);if(l)return l}return null},l=r.first(n,e=>!!e.allBasenames)
;l&&(o.allBasenames=l.allBasenames);const h=n.reduce((e,t)=>t.allPaths?e.concat(t.allPaths):e,[]);h.length&&(o.allPaths=h);return o}(e,t)}function g(e){const t={};for(const r of e)t[r]=!0;return t}function v(e){const t=e;return t&&"string"==typeof t.base&&"string"==typeof t.pattern}function _(e,t){const r=e.filter(e=>!!e.basenames);if(r.length<2)return e;const n=r.reduce((e,t)=>{const r=t.basenames;return r?e.concat(r):e},[]);let s;if(t){s=[];for(let e=0,r=n.length;e<r;e++)s.push(t)}else s=r.reduce((e,t)=>{const r=t.patterns;return r?e.concat(r):e},[]);const i=function(e,t){if("string"!=typeof e)return null;if(!t){let r;for(r=e.length;r>0;r--){const t=e.charCodeAt(r-1);if(47===t||92===t)break}t=e.substr(r)}const r=n.indexOf(t);return-1!==r?s[r]:null};i.basenames=n,i.patterns=s,i.allBasenames=n;const o=e.filter(e=>!e.basenames);return o.push(i),o}Object.defineProperty(t,"__esModule",{value:!0}),t.getEmptyExpression=function(){return Object.create(null)};const w="**",x="/",b="[/\\\\]",C="[^/\\\\]",A=/\//g
;t.splitGlobAware=h;const P=/^\*\*\/\*\.[\w\.-]+$/,y=/^\*\*\/([\w\.-]+)\/?$/,k=/^{\*\*\/[\*\.]?[\w\.-]+\/?(,\*\*\/[\*\.]?[\w\.-]+\/?)*}$/,T=/^{\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?(,\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?)*}$/,E=/^\*\*((\/[\w\.-]+)+)\/?$/,S=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,I=new o.LRUCache(1e4),O=function(){return!1},R=function(){return null};t.match=function(e,t,r){return!(!e||"string"!=typeof t)&&p(e)(t,void 0,r)},t.parse=p,t.hasSiblingPromiseFn=function(e){if(!e)return;let t;return r=>(t||(t=(e()||Promise.resolve([])).then(e=>e?g(e):{})),t.then(e=>!!e[r]))},t.hasSiblingFn=function(e){if(!e)return;let t;return r=>{if(!t){const r=e();t=r?g(r):{}}return!!t[r]}},t.isRelativePattern=v,t.parseToAsync=function(e,t){const r=p(e,t);return(e,t,n)=>{const s=r(e,t,n);return a.isThenable(s)?s:Promise.resolve(s)}},t.getBasenameTerms=function(e){return e.allBasenames||[]},t.getPathTerms=function(e){return e.allPaths||[]}}),define(e[10],t([1,0,4,2,6,5,8,3,11,7]),function(e,t,r,n,s,i,o,a,l,h){"use strict"
;function c(e){return!e||e.scheme!==o.Schemas.file||!a.isLinux}function u(e,t,n=c(e)){if(e.scheme===t.scheme){if(e.scheme===o.Schemas.file)return r.isEqualOrParent(m(e),m(t),n);if(f(e.authority,t.authority))return r.isEqualOrParent(e.path,t.path,n,"/")}return!1}function f(e,t){return e===t||i.equalsIgnoreCase(e,t)}function d(e){return n.posix.basename(e.path)}function m(e){let t;const n=e.path;return t=e.authority&&n.length>1&&"file"===e.scheme?`//${e.authority}${n}`:a.isWindows&&47===n.charCodeAt(0)&&r.isWindowsDriveLetter(n.charCodeAt(1))&&58===n.charCodeAt(2)?n.substr(1):n,a.isWindows&&(t=t.replace(/\//g,"\\")),t}function p(e){if(e.scheme===o.Schemas.file){const t=m(e);return t.length>r.getRoot(t).length&&t[t.length-1]===n.sep}{const t=e.path;return t.length>1&&47===t.charCodeAt(t.length-1)}}function g(e,t){if(e.scheme===t.scheme&&f(e.authority,t.authority)){if(e.scheme===o.Schemas.file){const s=n.relative(e.path,t.path);return a.isWindows?r.toSlashes(s):s}return n.posix.relative(e.path||"/",t.path||"/")}}
Object.defineProperty(t,"__esModule",{value:!0}),t.getComparisonKey=function(e){return c(e)?e.toString().toLowerCase():e.toString()},t.hasToIgnoreCase=c,t.basenameOrAuthority=function(e){return d(e)||e.authority},t.isEqualOrParent=u,t.isEqualAuthority=f,t.isEqual=function(e,t,r=c(e)){if(e===t)return!0;if(!e||!t)return!1;if(e.scheme!==t.scheme||!f(e.authority,t.authority))return!1;const n=e.path||"/",s=t.path||"/";return n===s||r&&i.equalsIgnoreCase(n||"/",s||"/")},t.basename=d,t.extname=function(e){return n.posix.extname(e.path)},t.dirname=function(e){if(0===e.path.length)return e;if(e.scheme===o.Schemas.file)return s.URI.file(n.dirname(m(e)));let t=n.posix.dirname(e.path);return e.authority&&t.length&&47!==t.charCodeAt(0)&&(console.error(`dirname("${e.toString})) resulted in a relative path`),t="/"),e.with({path:t})},t.joinPath=function(e,...t){let r;return r=e.scheme===o.Schemas.file?s.URI.file(n.join(m(e),...t)).path:n.posix.join(e.path||"/",...t),e.with({path:r})},t.normalizePath=function(e){
if(!e.path.length)return e;let t;return t=e.scheme===o.Schemas.file?s.URI.file(n.normalize(m(e))).path:n.posix.normalize(e.path),e.with({path:t})},t.originalFSPath=m,t.isAbsolutePath=function(e){return!!e.path&&"/"===e.path[0]},t.hasTrailingPathSeparator=p,t.removeTrailingPathSeparator=function(e){return p(e)?e.with({path:e.path.substr(0,e.path.length-1)}):e},t.relativePath=g,t.resolvePath=function(e,t){if(e.scheme===o.Schemas.file){const r=s.URI.file(n.resolve(m(e),t));return e.with({authority:r.authority,path:r.path})}return e.with({path:n.posix.resolve(e.path,t)})},t.distinctParents=function(e,t){const r=[];for(let n=0;n<e.length;n++){const s=t(e[n]);e.some((e,r)=>r!==n&&u(s,t(e)))||r.push(e[n])}return r};!function(e){e.META_DATA_LABEL="label",e.META_DATA_DESCRIPTION="description",e.META_DATA_SIZE="size",e.META_DATA_MIME="mime",e.parseMetaData=function(t){const r=new Map;t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";")).split(";").forEach(e=>{const[t,n]=e.split(":");t&&n&&r.set(t,n)})
;const n=t.path.substring(0,t.path.indexOf(";"));return n&&r.set(e.META_DATA_MIME,n),r}}(t.DataUri||(t.DataUri={}));class v{constructor(e,t){this.expressionsByRoot=h.TernarySearchTree.forPaths(),this.globalExpression=l.parse(e);for(const e of t)this.expressionsByRoot.set(e.root.toString(),{root:e.root,expression:l.parse(e.expression)})}matches(e){const t=this.expressionsByRoot.findSubstr(e.toString());if(t){const r=g(t.root,e);if(r&&t.expression(r))return!0}return!!this.globalExpression(e.path)}}t.ResourceGlobMatcher=v}),define(e[19],t([1,0,6,4,10,5,20,3,8]),function(e,t,r,n,s,i,o,a,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class h{constructor(e,t){this.ctx=e,this.patterns=new Map,this.computePatterns(t)}computePatterns(e){e.workspaceFolders.map(e=>r.URI.parse(e)).forEach(e=>{const t=h.createPatterns(e);this.patterns.set(e,t)})}getModel(e){const t=this.ctx.getMirrorModels();for(const r of t)if(r.uri.toString()===e)return r;return null}computeLinks(e){const t=this.getModel(e)
;if(!t)return Promise.resolve([]);const r=[],n=t.getValue().split(/\r\n|\r|\n/);return this.patterns.forEach((e,t)=>{const i={toResource:e=>"string"==typeof e?s.joinPath(t,e):null};for(let t=0,s=n.length;t<s;t++)r.push(...h.detectLinks(n[t],t+1,e,i))}),Promise.resolve(r)}static createPatterns(e){const t=[],r=e.scheme===l.Schemas.file?e.fsPath:e.path,s=[r];return a.isWindows&&e.scheme===l.Schemas.file&&s.push(n.toSlashes(r)),s.forEach(e=>{const r='(?:[^\\s\\(\\):<>"]| [^\\s\\(\\):<>"])+\\.[^\\s\\(\\):<>"]+';t.push(new RegExp(i.escapeRegExpCharacters(e)+`(${r}) on line ((\\d+)(, column (\\d+))?)`,"gi")),t.push(new RegExp(i.escapeRegExpCharacters(e)+`(${r}):line ((\\d+)(, column (\\d+))?)`,"gi")),t.push(new RegExp(i.escapeRegExpCharacters(e)+`(${r})(\\s?\\((\\d+)(,(\\d+))?)\\)`,"gi")),t.push(new RegExp(i.escapeRegExpCharacters(e)+'([^\\s\\(\\):<>"]+)(:(\\d+))?(:(\\d+))?',"gi"))}),t}static detectLinks(e,t,r,n){const s=[];return r.forEach(r=>{r.lastIndex=0;let a,l=0;for(;null!==(a=r.exec(e));){
const r=i.rtrim(a[1],".").replace(/\\/g,"/");let h;try{const e=n.toResource(r);e&&(h=e.toString())}catch(e){continue}if(a[3]){const e=a[3];if(a[5]){const t=a[5];h=i.format("{0}#{1},{2}",h,e,t)}else h=i.format("{0}#{1}",h,e)}const c=i.rtrim(a[0],"."),u=e.indexOf(c,l);l+=u+c.length;const f={startColumn:u+1,startLineNumber:t,endColumn:u+1+c.length,endLineNumber:t};if(s.some(e=>o.Range.areIntersectingOrTouching(e.range,f)))return;s.push({range:f,url:h})}}),s}}t.OutputLinkComputer=h,t.create=function(e,t){return new h(e,t)}})}).call(this);
//# sourceMappingURL=https://ticino.blob.core.windows.net/sourcemaps/51b0b28134d51361cf996d2f0a1c698247aeabd8/core/vs\workbench\contrib\output\common\outputLinkComputer.js.map
