/*!--------------------------------------------------------
 * 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=[],s=0,n=t.length;s<n;s++)r[s]=e[t[s]];return r},r=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))(function(n,i){function o(e){try{h(s.next(e))}catch(e){i(e)}}function a(e){try{h(s.throw(e))}catch(e){i(e)}}function h(e){e.done?n(e.value):new r(function(t){t(e.value)}).then(o,a)}h((s=s.apply(e,t||[])).next())})};define(e[9],t([1,0,18,16,14,13]),function(e,t,s,n,i,o){"use strict";function a(e){return e&&"function"==typeof e.then}
function h(e){const t=new s.CancellationTokenSource,r=e(t.token),i=new Promise((e,s)=>{t.token.onCancellationRequested(()=>{s(n.canceled())}),Promise.resolve(r).then(r=>{t.dispose(),e(r)},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 l(e,t){return t?new Promise((r,s)=>{const i=setTimeout(r,e);t.onCancellationRequested(()=>{clearTimeout(i),s(n.canceled())})}):h(t=>l(e,t))}function c(e){function t(i){void 0!==i&&null!==i&&r.push(i);const o=s<n?e[s++]():null;return o?o.then(t):Promise.resolve(r)}const r=[];let s=0;const n=e.length;return Promise.resolve(null).then(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.isThenable=a,t.createCancelablePromise=h,t.raceCancellation=function(e,t,r){return Promise.race([e,new Promise(e=>t.onCancellationRequested(()=>e(r)))])},t.asPromise=function(e){return new Promise((t,r)=>{const s=e();a(s)?s.then(t,r):t(s)})};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(n.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=l,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 s=0;const n=e.length,i=()=>{if(s>=n)return Promise.resolve(r);const o=e[s++];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 C{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=C;class b extends C{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=b,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 s=!1;return{dispose(){s||(s=!0,clearTimeout(r))}}})}else t.runWhenIdle=((e,t)=>{const r=requestIdleCallback(e,"number"==typeof t?{timeout:t}:void 0);let s=!1;return{dispose(){s||(s=!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,s){return r(this,void 0,void 0,function*(){let r;for(let n=0;n<s;n++)try{return yield e()}catch(e){r=e,yield l(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",e.vscodeRemote="vscode-remote"}(t.Schemas||(t.Schemas={}))}),define(e[12],t([1,0,3]),function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s="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=s.cwd,t.env=s.env,t.platform=s.platform,t.nextTick=s.nextTick}),define(e[2],t([1,0,12]),function(e,t,r){"use strict";function s(e,t){if("string"!=typeof e)throw new g(t,"string",e)}function n(e){return e===m||e===p}function i(e){return e===m}function o(e){return e>=l&&e<=u||e>=c&&e<=f}function a(e,t,r,s){let n,i="",o=0,a=-1,h=0;for(let l=0;l<=e.length;++l){if(l<e.length)n=e.charCodeAt(l);else{if(s(n))break;n=m}if(s(n)){if(a===l-1||1===h);else if(a!==l-1&&2===h){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=l,h=0;continue}if(2===i.length||1===i.length){i="",o=0,a=l,h=0;continue}}t&&(i.length>0?i+=`${r}..`:i="..",o=2)}else i.length>0?i+=r+e.slice(a+1,l):i=e.slice(a+1,l),o=l-a-1;a=l,h=0}else n===d&&-1!==h?++h:h=-1}return i}function h(e,t){const r=t.dir||t.root,s=t.base||(t.name||"")+(t.ext||"");return r?r===t.root?r+s:r+e+s:s}Object.defineProperty(t,"__esModule",{value:!0});const l=65,c=97,u=90,f=122,d=46,m=47,p=92;class g extends Error{constructor(e,t,r){let s;"string"==typeof t&&0===t.indexOf("not ")?(s="must not be",t=t.replace(/^not /,"")):s="must be";let n=`The "${e}" ${-1!==e.indexOf(".")?"property":"argument"} ${s} of type ${t}`;super(n+=`. Received type ${typeof r}`)}}t.win32={resolve(...e){let t="",i="",h=!1;for(let a=e.length-1;a>=-1;a--){let l;if(a>=0?l=e[a]:t?void 0!==(l=r.env["="+t]||r.cwd())&&l.slice(0,3).toLowerCase()===t.toLowerCase()+"\\"||(l=t+"\\"):l=r.cwd(),s(l,"path"),0===l.length)continue
;const c=l.length;let u=0,f="",d=!1;const m=l.charCodeAt(0);if(c>1)if(n(m))if(d=!0,n(l.charCodeAt(1))){let e=2,t=e;for(;e<c&&!n(l.charCodeAt(e));++e);if(e<c&&e!==t){const r=l.slice(t,e);for(t=e;e<c&&n(l.charCodeAt(e));++e);if(e<c&&e!==t){for(t=e;e<c&&!n(l.charCodeAt(e));++e);e===c?(f="\\\\"+r+"\\"+l.slice(t),u=e):e!==t&&(f="\\\\"+r+"\\"+l.slice(t,e),u=e)}}}else u=1;else o(m)&&58===l.charCodeAt(1)&&(f=l.slice(0,2),u=2,c>2&&n(l.charCodeAt(2))&&(d=!0,u=3));else n(m)&&(u=1,d=!0);if(!(f.length>0&&t.length>0&&f.toLowerCase()!==t.toLowerCase())&&(0===t.length&&f.length>0&&(t=f),h||(i=l.slice(u)+"\\"+i,h=d),t.length>0&&h))break}return i=a(i,!h,"\\",n),t+(h?"\\":"")+i||"."},normalize(e){s(e,"path");const t=e.length;if(0===t)return".";let r,i=0,h=!1;const l=e.charCodeAt(0);if(t>1)if(n(l))if(h=!0,n(e.charCodeAt(1))){let s=2,o=s;for(;s<t&&!n(e.charCodeAt(s));++s);if(s<t&&s!==o){const a=e.slice(o,s);for(o=s;s<t&&n(e.charCodeAt(s));++s);if(s<t&&s!==o){for(o=s;s<t&&!n(e.charCodeAt(s));++s);
if(s===t)return"\\\\"+a+"\\"+e.slice(o)+"\\";s!==o&&(r="\\\\"+a+"\\"+e.slice(o,s),i=s)}}}else i=1;else o(l)&&58===e.charCodeAt(1)&&(r=e.slice(0,2),i=2,t>2&&n(e.charCodeAt(2))&&(h=!0,i=3));else if(n(l))return"\\";let c;return 0!==(c=i<t?a(e.slice(i),!h,"\\",n):"").length||h||(c="."),c.length>0&&n(e.charCodeAt(t-1))&&(c+="\\"),void 0===r?h?c.length>0?"\\"+c:"\\":c.length>0?c:"":h?c.length>0?r+"\\"+c:r+"\\":c.length>0?r+c:r},isAbsolute(e){s(e,"path");const t=e.length;if(0===t)return!1;const r=e.charCodeAt(0);return!!n(r)||!!(o(r)&&t>2&&58===e.charCodeAt(1)&&n(e.charCodeAt(2)))},join(...e){if(0===e.length)return".";let r,i;for(let t=0;t<e.length;++t){const n=e[t];s(n,"path"),n.length>0&&(void 0===r?r=i=n:r+="\\"+n)}if(void 0===r)return".";let o=!0,a=0;if("string"==typeof i&&n(i.charCodeAt(0))){++a;const e=i.length;e>1&&n(i.charCodeAt(1))&&(++a,e>2&&(n(i.charCodeAt(2))?++a:o=!1))}if(o){for(;a<r.length&&n(r.charCodeAt(a));++a);a>=2&&(r="\\"+r.slice(a))}return t.win32.normalize(r)},relative(e,r){if(s(e,"from"),
s(r,"to"),e===r)return"";const n=t.win32.resolve(e),i=t.win32.resolve(r);if(n===i)return"";if(e=n.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 h=a-o;let l=0;for(;l<r.length&&r.charCodeAt(l)===p;++l);let c=r.length;for(;c-1>l&&r.charCodeAt(c-1)===p;--c);const u=c-l,f=h<u?h:u;let d=-1,m=0;for(;m<=f;++m){if(m===f){if(u>f){if(r.charCodeAt(l+m)===p)return i.slice(l+m+1);if(2===m)return i.slice(l+m)}h>f&&(e.charCodeAt(o+m)===p?d=m:2===m&&(d=3));break}const t=e.charCodeAt(o+m);if(t!==r.charCodeAt(l+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(l+d,c):(l+=d,i.charCodeAt(l)===p&&++l,i.slice(l,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){s(e,"path");const t=e.length;if(0===t)return".";let r=-1,i=-1,a=!0,h=0;const l=e.charCodeAt(0);if(t>1)if(n(l)){if(r=h=1,n(e.charCodeAt(1))){let s=2,i=s;for(;s<t&&!n(e.charCodeAt(s));++s);if(s<t&&s!==i){for(i=s;s<t&&n(e.charCodeAt(s));++s);if(s<t&&s!==i){for(i=s;s<t&&!n(e.charCodeAt(s));++s);if(s===t)return e;s!==i&&(r=h=s+1)}}}}else o(l)&&58===e.charCodeAt(1)&&(r=h=2,t>2&&n(e.charCodeAt(2))&&(r=h=3));else if(n(l))return e;for(let r=t-1;r>=h;--r)if(n(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&&s(t,"ext"),s(e,"path");let r,i=0,a=-1,h=!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(r=e.length-1;r>=i;--r){
const l=e.charCodeAt(r);if(n(l)){if(!h){i=r+1;break}}else-1===o&&(h=!1,o=r+1),s>=0&&(l===t.charCodeAt(s)?-1==--s&&(a=r):(s=-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(n(e.charCodeAt(r))){if(!h){i=r+1;break}}else-1===a&&(h=!1,a=r+1);return-1===a?"":e.slice(i,a)},extname(e){s(e,"path");let t=0,r=-1,i=0,a=-1,h=!0,l=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(n(t)){if(!h){i=s+1;break}}else-1===a&&(h=!1,a=s+1),t===d?-1===r?r=s:1!==l&&(l=1):-1!==r&&(l=-1)}return-1===r||-1===a||0===l||1===l&&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 h("\\",e)},parse(e){s(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(n(a)){if(i=1,n(e.charCodeAt(1))){let t=2,s=t;for(;t<r&&!n(e.charCodeAt(t));++t);if(t<r&&t!==s){
for(s=t;t<r&&n(e.charCodeAt(t));++t);if(t<r&&t!==s){for(s=t;t<r&&!n(e.charCodeAt(t));++t);t===r?i=t:t!==s&&(i=t+1)}}}}else if(o(a)&&58===e.charCodeAt(1)){if(i=2,!(r>2))return t.root=t.dir=e,t;if(n(e.charCodeAt(2))){if(3===r)return t.root=t.dir=e,t;i=3}}}else if(n(a))return t.root=t.dir=e,t;i>0&&(t.root=e.slice(0,i));let h=-1,l=i,c=-1,u=!0,f=e.length-1,m=0;for(;f>=i;--f)if(a=e.charCodeAt(f),n(a)){if(!u){l=f+1;break}}else-1===c&&(u=!1,c=f+1),a===d?-1===h?h=f:1!==m&&(m=1):-1!==h&&(m=-1);return-1===h||-1===c||0===m||1===m&&h===c-1&&h===l+1?-1!==c&&(t.base=t.name=e.slice(l,c)):(t.name=e.slice(l,h),t.base=e.slice(l,c),t.ext=e.slice(h,c)),t.dir=l>0&&l!==i?e.slice(0,l-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},t.posix={resolve(...e){let t="",n=!1;for(let i=e.length-1;i>=-1&&!n;i--){let o;s(o=i>=0?e[i]:r.cwd(),"path"),0!==o.length&&(t=o+"/"+t,n=o.charCodeAt(0)===m)}return t=a(t,!n,"/",i),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize(e){if(s(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=>(s(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];s(e,"path"),e.length>0&&(void 0===r?r=e:r+="/"+e)}return void 0===r?".":t.posix.normalize(r)},relative(e,r){if(s(e,"from"),s(r,"to"),e===r)return"";if(e=t.posix.resolve(e),r=t.posix.resolve(r),e===r)return"";let n=1;for(;n<e.length&&e.charCodeAt(n)===m;++n);const i=e.length,o=i-n;let a=1;for(;a<r.length&&r.charCodeAt(a)===m;++a);const h=r.length-a,l=o<h?o:h;let c=-1,u=0;for(;u<=l;++u){if(u===l){if(h>l){if(r.charCodeAt(a+u)===m)return r.slice(a+u+1);if(0===u)return r.slice(a+u)}else o>l&&(e.charCodeAt(n+u)===m?c=u:0===u&&(c=0));break}const t=e.charCodeAt(n+u);if(t!==r.charCodeAt(a+u))break;t===m&&(c=u)}let f="";for(u=n+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(s(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===m;let r=-1,n=!0;for(let t=e.length-1;t>=1;--t)if(e.charCodeAt(t)===m){if(!n){r=t;break}}else n=!1;return-1===r?t?"/":".":t&&1===r?"//":e.slice(0,r)},basename(e,t){void 0!==t&&s(t,"ext"),s(e,"path");let r,n=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,a=-1;for(r=e.length-1;r>=0;--r){const h=e.charCodeAt(r);if(h===m){if(!o){n=r+1;break}}else-1===a&&(o=!1,a=r+1),s>=0&&(h===t.charCodeAt(s)?-1==--s&&(i=r):(s=-1,i=a))}return n===i?i=a:-1===i&&(i=e.length),e.slice(n,i)}for(r=e.length-1;r>=0;--r)if(e.charCodeAt(r)===m){if(!o){n=r+1;break}}else-1===i&&(o=!1,i=r+1);return-1===i?"":e.slice(n,i)},extname(e){s(e,"path");let t=-1,r=0,n=-1,i=!0,o=0;for(let s=e.length-1;s>=0;--s){const a=e.charCodeAt(s);if(a!==m)-1===n&&(i=!1,n=s+1),
a===d?-1===t?t=s:1!==o&&(o=1):-1!==t&&(o=-1);else if(!i){r=s+1;break}}return-1===t||-1===n||0===o||1===o&&t===n-1&&t===r+1?"":e.slice(t,n)},format(e){if(null===e||"object"!=typeof e)throw new g("pathObject","Object",e);return h("/",e)},parse(e){s(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const r=e.charCodeAt(0)===m;let n;r?(t.root="/",n=1):n=0;let i=-1,o=0,a=-1,h=!0,l=e.length-1,c=0;for(;l>=n;--l){const t=e.charCodeAt(l);if(t!==m)-1===a&&(h=!1,a=l+1),t===d?-1===i?i=l:1!==c&&(c=1):-1!==i&&(c=-1);else if(!h){o=l+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,s,n){"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,n.posix.sep)},t.getRoot=function(e,t=n.posix.sep){if(!e)return"";const r=e.length,s=e.charCodeAt(0);if(i(s)){if(i(e.charCodeAt(1))&&!i(e.charCodeAt(2))){let s=3;const n=s;for(;s<r&&!i(e.charCodeAt(s));s++);if(n!==s&&!i(e.charCodeAt(s+1)))for(s+=1;s<r;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 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 s=2;const n=s;for(;s<e.length&&92!==(t=e.charCodeAt(s));s++);return n!==s&&(t=e.charCodeAt(s+1),!isNaN(t)&&92!==t)};const a=/[\\/:\*\?"<>\|]/g,h=/[\\/]/g,l=/^(con|prn|aux|clock\$|nul|lpt[0-9]|com[0-9])$/i;t.isValidBasename=function(e,t=r.isWindows){const s=t?a:h;return!(!e||0===e.length||/^\s+$/.test(e)||(s.lastIndex=0,
s.test(e)||t&&l.test(e)||"."===e||".."===e||t&&"."===e[e.length-1]||t&&e.length!==e.trim().length||e.length>255))},t.isEqual=function(e,t,r){const n=e===t;return!r||n?n:!(!e||!t)&&s.equalsIgnoreCase(e,t)},t.isEqualOrParent=function(e,t,r,i=n.sep){if(e===t)return!0;if(!e||!t)return!1;if(t.length>e.length)return!1;if(r){if(!s.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,t.sanitizeFilePath=function(e,t){return r.isWindows&&s.endsWith(e,":")&&(e+=n.sep),n.isAbsolute(e)||(e=n.join(t,e)),e=n.normalize(e),r.isWindows?(e=s.rtrim(e,n.sep),s.endsWith(e,":")&&(e+=n.sep)):(e=s.rtrim(e,n.sep))||(e=n.sep),e},t.isRootOrDriveLetter=function(e){const t=n.normalize(e);return r.isWindows?!(e.length>3)&&o(t.charCodeAt(0))&&58===t.charCodeAt(1)&&(2===e.length||92===t.charCodeAt(2)):t===n.posix.sep}}),define(e[7],t([1,0,6,15]),function(e,t,r,s){"use strict"
;function n(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=n,t.keys=i,t.getOrSet=function(e,t,r){let s=e.get(t);return void 0===s&&(s=r,e.set(t,s)),s},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,s]of e)t.set(r,s);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 s=this._from;for(;t<r&&s<this._to;){const r=e.charCodeAt(t)-this._value.charCodeAt(s);if(0!==r)return r;t+=1,s+=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 h{isEmpty(){return!(this.left||this.mid||this.right||this.value)}}class l{constructor(e){this._iter=e}static forPaths(){return new l(new a)}static forStrings(){return new l(new o)}clear(){this._root=void 0}set(e,t){const r=this._iter.reset(e);let s;for(this._root||(this._root=new h,this._root.segment=r.value()),s=this._root;;){const e=r.cmp(s.segment);if(e>0)s.left||(s.left=new h,s.left.segment=r.value()),
s=s.left;else if(e<0)s.right||(s.right=new h,s.right.segment=r.value()),s=s.right;else{if(!r.hasNext())break;r.next(),s.mid||(s.mid=new h,s.mid.segment=r.value()),s=s.mid}}const n=s.value;return s.value=t,s.key=e,n}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 s=this._root;for(;s;){const e=t.cmp(s.segment);if(e>0)r.push([1,s]),s=s.left;else if(e<0)r.push([-1,s]),s=s.right;else{if(!t.hasNext()){for(s.value=void 0;r.length>0&&s.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}s=t}break}t.next(),r.push([0,s]),s=s.mid}}}findSubstr(e){const t=this._iter.reset(e);let r=this._root,s=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(),s=r.value||s,r=r.mid}}return r&&r.value||s}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,n;return{next:()=>(n||(n=[],r=0,this._forEach(e,e=>n.push(e))),r>=n.length?s.FIN:(t?t.value=n[r++]:t={done:!1,value:n[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=l;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 n(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 s=this._map.get(e);if(s)s.value=t,0!==r&&this.touch(s,r);else{switch(s={key:e,value:t,next:void 0,previous:void 0},r){case 0:this.addItemLast(s);break;case 1:this.addItemFirst(s);break;case 2:default:this.addItemLast(s)}this._map.set(e,s),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,s,n,i,o,a){"use strict";function h(e){switch(e){case 0:return"";case 1:return`${b}*?`;default:return`(?:${C}|${b}+${C}|${C}${b}+)*?`}}function l(e,t){if(!e)return[];const r=[];let s=!1,n=!1,i="";for(const o of e){switch(o){case t:if(!s&&!n){r.push(i),i="";continue}break;case"{":s=!0;break;case"}":s=!1;break;case"[":n=!0;break;case"]":n=!1}i+=o}return i&&r.push(i),r}function c(e){if(!e)return"";let t="";const r=l(e,x);if(r.every(e=>e===w))t=".*";else{let e=!1;r.forEach((n,i)=>{
if(n===w)return void(e||(t+=h(2),e=!0));let o=!1,a="",u=!1,f="";for(const e of n)if("}"!==e&&o)a+=e;else if(!u||"]"===e&&f)switch(e){case"{":o=!0;continue;case"[":u=!0;continue;case"}":const r=`(?:${l(a,",").map(e=>c(e)).join("|")})`;t+=r,o=!1,a="";break;case"]":t+="["+f+"]",u=!1,f="";break;case"?":t+=b;continue;case"*":t+=h(1);continue;default:t+=s.escapeRegExpCharacters(e)}else{let t;f+=t="-"===e?e:"^"!==e&&"!"!==e||f?e===x?"":s.escapeRegExpCharacters(e):"^"}i<r.length-1&&(r[i+1]!==w||i+2<r.length)&&(t+=C),e=!1})}return t}function u(e,t){if(!e)return O;let n;n="string"!=typeof e?e.pattern:e;const i=`${n=n.trim()}_${!!t.trimForExclusions}`;let o=I.get(i);if(o)return f(o,e);let a;if(P.test(n)){const e=n.substr(4);o=function(t,r){return"string"==typeof t&&s.endsWith(t,e)?n:null}}else o=(a=y.exec(d(n,t)))?function(e,t){const r=`/${e}`,n=`\\${e}`,i=function(i,o){return"string"!=typeof i?null:o?o===e?t:null:i===e||s.endsWith(i,r)||s.endsWith(i,n)?t:null},o=[e];return i.basenames=o,i.patterns=[t],i.allBasenames=o,
i}(a[1],n):(t.trimForExclusions?T:k).test(n)?function(e,t){const s=_(e.slice(1,-1).split(",").map(e=>u(e,t)).filter(e=>e!==O),e),n=s.length;if(!n)return O;if(1===n)return s[0];const i=function(t,r){for(let n=0,i=s.length;n<i;n++)if(s[n](t,r))return e;return null},o=r.first(s,e=>!!e.allBasenames);o&&(i.allBasenames=o.allBasenames);const a=s.reduce((e,t)=>t.allPaths?e.concat(t.allPaths):e,[]);a.length&&(i.allPaths=a);return i}(n,t):(a=E.exec(d(n,t)))?m(a[1].substr(1),n,!0):(a=S.exec(d(n,t)))?m(a[1],n,!1):function(e){try{const t=new RegExp(`^${c(e)}$`);return function(r,s){return t.lastIndex=0,"string"==typeof r&&t.test(r)?e:null}}catch(e){return O}}(n);return I.set(i,o),f(o,e)}function f(e,t){return"string"==typeof t?e:function(r,s){return n.isEqualOrParent(r,t.base)?e(i.relative(t.base,r),s):null}}function d(e,t){return t.trimForExclusions&&s.endsWith(e,"/**")?e.substr(0,e.length-2):e}function m(e,t,r){const n=i.sep!==i.posix.sep?e.replace(A,i.sep):e,o=i.sep+n,a=r?function(e,r){
return"string"!=typeof e||e!==n&&!s.endsWith(e,o)?null:t}:function(e,r){return"string"==typeof e&&e===n?t:null};return a.allPaths=[(r?"*/":"./")+e],a}function p(e,t={}){if(!e)return R;if("string"==typeof e||v(e)){const r=u(e,t);if(r===O)return R;const s=function(e,t){return!!r(e,t)};return r.allBasenames&&(s.allBasenames=r.allBasenames),r.allPaths&&(s.allPaths=r.allPaths),s}return function(e,t){const s=_(Object.getOwnPropertyNames(e).map(r=>(function(e,t,r){if(!1===t)return O;const s=u(e,r);if(s===O)return O;if("boolean"==typeof t)return s;if(t){const r=t.when;if("string"==typeof r){const t=(t,n,i,o)=>{if(!o||!s(t,n))return null;const h=r.replace("$(basename)",i),l=o(h);return a.isThenable(l)?l.then(t=>t?e:null):l?e:null};return t.requiresSiblings=!0,t}}return s})(r,e[r],t)).filter(e=>e!==O)),n=s.length;if(!n)return O;if(!s.some(e=>!!e.requiresSiblings)){if(1===n)return s[0];const e=function(e,t){for(let r=0,n=s.length;r<n;r++){const n=s[r](e,t);if(n)return n}return null},t=r.first(s,e=>!!e.allBasenames)
;t&&(e.allBasenames=t.allBasenames);const i=s.reduce((e,t)=>t.allPaths?e.concat(t.allPaths):e,[]);return i.length&&(e.allPaths=i),e}const o=function(e,t,r){let n=void 0;for(let o=0,a=s.length;o<a;o++){const a=s[o];a.requiresSiblings&&r&&(t||(t=i.basename(e)),n||(n=t.substr(0,t.length-i.extname(e).length)));const h=a(e,t,n,r);if(h)return h}return null},h=r.first(s,e=>!!e.allBasenames);h&&(o.allBasenames=h.allBasenames);const l=s.reduce((e,t)=>t.allPaths?e.concat(t.allPaths):e,[]);l.length&&(o.allPaths=l);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 s=r.reduce((e,t)=>{const r=t.basenames;return r?e.concat(r):e},[]);let n;if(t){n=[];for(let e=0,r=s.length;e<r;e++)n.push(t)}else n=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=s.indexOf(t);return-1!==r?n[r]:null};i.basenames=s,i.patterns=n,i.allBasenames=s;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="/",C="[/\\\\]",b="[^/\\\\]",A=/\//g;t.splitGlobAware=l;const P=/^\*\*\/\*\.[\w\.-]+$/,y=/^\*\*\/([\w\.-]+)\/?$/,k=/^{\*\*\/[\*\.]?[\w\.-]+\/?(,\*\*\/[\*\.]?[\w\.-]+\/?)*}$/,T=/^{\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?(,\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?)*}$/,E=/^\*\*((\/[\w\.-]+)+)\/?$/,S=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,I=new o.LRUCache(1e4),R=function(){return!1},O=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.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,s,n,i,o,a,h,l){"use strict";function c(e){return!e||e.scheme!==o.Schemas.file||!a.isLinux}function u(e,t,s=c(e)){if(e.scheme===t.scheme){if(e.scheme===o.Schemas.file)return r.isEqualOrParent(m(e),m(t),s);if(f(e.authority,t.authority))return r.isEqualOrParent(e.path,t.path,s,"/")}return!1}function f(e,t){return e===t||i.equalsIgnoreCase(e,t)}function d(e){return s.posix.basename(e.path)}function m(e){let t;const s=e.path;return t=e.authority&&s.length>1&&e.scheme===o.Schemas.file?`//${e.authority}${s}`:a.isWindows&&47===s.charCodeAt(0)&&r.isWindowsDriveLetter(s.charCodeAt(1))&&58===s.charCodeAt(2)?s.substr(1):s,a.isWindows&&(t=t.replace(/\//g,"\\")),t}function p(e,t=s.sep){if(e.scheme===o.Schemas.file){const s=m(e);return s.length>r.getRoot(s).length&&s[s.length-1]===t}{
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 n=s.relative(e.path,t.path);return a.isWindows?r.toSlashes(n):n}return s.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 s=e.path||"/",n=t.path||"/";return s===n||r&&i.equalsIgnoreCase(s||"/",n||"/")},t.basename=d,t.extname=function(e){return s.posix.extname(e.path)},t.dirname=function(e){if(0===e.path.length)return e;if(e.scheme===o.Schemas.file)return n.URI.file(s.dirname(m(e)));let t=s.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?n.URI.file(s.join(m(e),...t)).path:s.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?n.URI.file(s.normalize(m(e))).path:s.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,t=s.sep){return p(e,t)?e.with({path:e.path.substr(0,e.path.length-1)}):e},t.addTrailingPathSeparator=function(e,t=s.sep){let n=!1;if(e.scheme===o.Schemas.file){const s=m(e);n=void 0!==s&&s.length===r.getRoot(s).length&&s[s.length-1]===t}else{t="/";const r=e.path;n=1===r.length&&47===r.charCodeAt(r.length-1)}return n||p(e,t)?e:e.with({path:e.path+"/"})},t.relativePath=g,
t.resolvePath=function(e,t){if(e.scheme===o.Schemas.file){const r=n.URI.file(s.resolve(m(e),t));return e.with({authority:r.authority,path:r.path})}return e.with({path:s.posix.resolve(e.path,t)})},t.distinctParents=function(e,t){const r=[];for(let s=0;s<e.length;s++){const n=t(e[s]);e.some((e,r)=>r!==s&&u(n,t(e)))||r.push(e[s])}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,s]=e.split(":");t&&s&&r.set(t,s)});const s=t.path.substring(0,t.path.indexOf(";"));return s&&r.set(e.META_DATA_MIME,s),r}}(t.DataUri||(t.DataUri={}));class v{constructor(e,t){this.expressionsByRoot=l.TernarySearchTree.forPaths(),this.globalExpression=h.parse(e);for(const e of t)this.expressionsByRoot.set(e.root.toString(),{root:e.root,expression:h.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,t.toLocalResource=function(e,t){if(t){let r=e.path;return r&&r[0]!==s.posix.sep&&(r=s.posix.sep+r),e.with({scheme:o.Schemas.vscodeRemote,authority:t,path:r})}return e.with({scheme:o.Schemas.file})}}),define(e[19],t([1,0,6,4,10,5,20,3,8]),function(e,t,r,s,n,i,o,a,h){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class l{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=l.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=[],s=t.getValue().split(/\r\n|\r|\n/);return this.patterns.forEach((e,t)=>{const i={
toResource:e=>"string"==typeof e?n.joinPath(t,e):null};for(let t=0,n=s.length;t<n;t++)r.push(...l.detectLinks(s[t],t+1,e,i))}),Promise.resolve(r)}static createPatterns(e){const t=[],r=e.scheme===h.Schemas.file?e.fsPath:e.path,n=[r];return a.isWindows&&e.scheme===h.Schemas.file&&n.push(s.toSlashes(r)),n.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,s){const n=[];return r.forEach(r=>{r.lastIndex=0;let a,h=0;for(;null!==(a=r.exec(e));){const r=i.rtrim(a[1],".").replace(/\\/g,"/");let l;try{const e=s.toResource(r);e&&(l=e.toString())}catch(e){continue}if(a[3]){const e=a[3]
;if(a[5]){const t=a[5];l=i.format("{0}#{1},{2}",l,e,t)}else l=i.format("{0}#{1}",l,e)}const c=i.rtrim(a[0],"."),u=e.indexOf(c,h);h+=u+c.length;const f={startColumn:u+1,startLineNumber:t,endColumn:u+1+c.length,endLineNumber:t};if(n.some(e=>o.Range.areIntersectingOrTouching(e.range,f)))return;n.push({range:f,url:l})}}),n}}t.OutputLinkComputer=l,t.create=function(e,t){return new l(e,t)}})}).call(this);
//# sourceMappingURL=https://ticino.blob.core.windows.net/sourcemaps/553cfb2c2205db5f15f3ee8395bbd5cf066d357d/core/vs/workbench/contrib/output/common/outputLinkComputer.js.map
