AI Engineering Workspace
PartialChat, files, terminal and preview in one place. Chat sessions run on a durable Postgres-backed queue (chat only: no tools or shell). Live models need an API key; the terminal is unavailable.
Project files
read-only- ..
- _clean.mjs
- acceptance.mjs
- ai-adapters.mjs
- ai-enqueue.mjs
- central.mjs
- deploy-flow.mjs
- external-vps.mjs
- fake-opencode.mjs
- gates.mjs
- immersive.mjs
- lower.mjs
- nexus.mjs
- oidc-core.mjs
- oidc-flow.mjs
- opencode-engine.mjs
- owner-auth.mjs
- proxy.mjs
- retake-landing.mjs
- rls.mjs
- run.mjs
- services.mjs
- shot-central.mjs
- tenant-isolation.mjs
- trusted-https.mjs
- web-shots.mjs
- with-derived.mjs
app/public/monaco-vs/assets/html.worker-rsc3ukne.js
1(function(){"use strict";var Je,be,fe,Be,wt,ot,ee;class Wl{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?Tt.isErrorNoTelemetry(e)?new Tt(e.message+`23`+e.stack):new Error(e.message+`45`+e.stack):e},0)}}emit(e){this.listeners.forEach(n=>{n(e)})}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}}const Fl=new Wl;function xt(t){Bl(t)||Fl.onUnexpectedError(t)}function mi(t){if(t instanceof Error){const{name:e,message:n,cause:i}=t,r=t.stacktrace||t.stack;return{$isError:!0,name:e,message:n,stack:r,noTelemetry:Tt.isErrorNoTelemetry(t),cause:i?mi(i):void 0,code:t.code}}return t}const fi="Canceled";function Bl(t){return t instanceof en?!0:t instanceof Error&&t.name===fi&&t.message===fi}class en extends Error{constructor(){super(fi),this.name=this.message}}class Tt extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof Tt)return e;const n=new Tt;return n.message=e.message,n.stack=e.stack,n}static isErrorNoTelemetry(e){return e.name==="CodeExpectedError"}}class oe extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,oe.prototype)}}function ql(t,e="Unreachable"){throw new Error(e)}function Ol(t,e="unexpected state"){if(!t)throw typeof e=="string"?new oe(`Assertion Failed: ${e}`):e}function tn(t){t()||(t(),xt(new oe("Assertion Failed")))}function pi(t,e){let n=0;for(;n<t.length-1;){const i=t[n],r=t[n+1];if(!e(i,r))return!1;n++}return!0}function Vl(t){return typeof t=="string"}function $l(t){return!!t&&typeof t[Symbol.iterator]=="function"}var En;(function(t){function e(w){return!!w&&typeof w=="object"&&typeof w[Symbol.iterator]=="function"}t.is=e;const n=Object.freeze([]);function i(){return n}t.empty=i;function*r(w){yield w}t.single=r;function s(w){return e(w)?w:r(w)}t.wrap=s;function a(w){return w??n}t.from=a;function*l(w){for(let g=w.length-1;g>=0;g--)yield w[g]}t.reverse=l;function o(w){return!w||w[Symbol.iterator]().next().done===!0}t.isEmpty=o;function u(w){return w[Symbol.iterator]().next().value}t.first=u;function c(w,g){let v=0;for(const I of w)if(g(I,v++))return!0;return!1}t.some=c;function d(w,g){let v=0;for(const I of w)if(!g(I,v++))return!1;return!0}t.every=d;function m(w,g){for(const v of w)if(g(v))return v}t.find=m;function*f(w,g){for(const v of w)g(v)&&(yield v)}t.filter=f;function*b(w,g){let v=0;for(const I of w)yield g(I,v++)}t.map=b;function*p(w,g){let v=0;for(const I of w)yield*g(I,v++)}t.flatMap=p;function*x(...w){for(const g of w)$l(g)?yield*g:yield g}t.concat=x;function y(w,g,v){let I=v;for(const k of w)I=g(I,k);return I}t.reduce=y;function _(w){let g=0;for(const v of w)g++;return g}t.length=_;function*T(w,g,v=w.length){for(g<-w.length&&(g=0),g<0&&(g+=w.length),v<0?v+=w.length:v>w.length&&(v=w.length);g<v;g++)yield w[g]}t.slice=T;function M(w,g=Number.POSITIVE_INFINITY){const v=[];if(g===0)return[v,w];const I=w[Symbol.iterator]();for(let k=0;k<g;k++){const S=I.next();if(S.done)return[v,t.empty()];v.push(S.value)}return[v,{[Symbol.iterator](){return I}}]}t.consume=M;async function z(w){const g=[];for await(const v of w)g.push(v);return g}t.asyncToArray=z;async function H(w){let g=[];for await(const v of w)g=g.concat(v);return g}t.asyncToArrayFlat=H})(En||(En={}));function Am(t,e){}function Nr(t){if(En.is(t)){const e=[];for(const n of t)if(n)try{n.dispose()}catch(i){e.push(i)}if(e.length===1)throw e[0];if(e.length>1)throw new AggregateError(e,"Encountered errors while disposing of store");return Array.isArray(t)?[]:t}else if(t)return t.dispose(),t}function jl(...t){return St(()=>Nr(t))}class Gl{constructor(e){this._isDisposed=!1,this._fn=e}dispose(){if(!this._isDisposed){if(!this._fn)throw new Error("Unbound disposable context: Need to use an arrow function to preserve the value of this");this._isDisposed=!0,this._fn()}}}function St(t){return new Gl(t)}const oi=class oi{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{Nr(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e||e===Ye.None)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?oi.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}delete(e){if(e){if(e===this)throw new Error("Cannot dispose a disposable on itself!");this._toDispose.delete(e),e.dispose()}}};oi.DISABLE_DISPOSED_WARNING=!1;let kt=oi;const Ar=class Ar{constructor(){this._store=new kt,this._store}dispose(){this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}};Ar.None=Object.freeze({dispose(){}});let Ye=Ar,re=(Je=class{constructor(e){this.element=e,this.next=Je.Undefined,this.prev=Je.Undefined}},Je.Undefined=new Je(void 0),Je);class Xl{constructor(){this._first=re.Undefined,this._last=re.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===re.Undefined}clear(){let e=this._first;for(;e!==re.Undefined;){const n=e.next;e.prev=re.Undefined,e.next=re.Undefined,e=n}this._first=re.Undefined,this._last=re.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,n){const i=new re(e);if(this._first===re.Undefined)this._first=i,this._last=i;else if(n){const s=this._last;this._last=i,i.prev=s,s.next=i}else{const s=this._first;this._first=i,i.next=s,s.prev=i}this._size+=1;let r=!1;return()=>{r||(r=!0,this._remove(i))}}shift(){if(this._first!==re.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==re.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==re.Undefined&&e.next!==re.Undefined){const n=e.prev;n.next=e.next,e.next.prev=n}else e.prev===re.Undefined&&e.next===re.Undefined?(this._first=re.Undefined,this._last=re.Undefined):e.next===re.Undefined?(this._last=this._last.prev,this._last.next=re.Undefined):e.prev===re.Undefined&&(this._first=this._first.next,this._first.prev=re.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==re.Undefined;)yield e.element,e=e.next}}function Jl(){return globalThis._VSCODE_NLS_MESSAGES}function Dr(){return globalThis._VSCODE_NLS_LANGUAGE}const Ql=Dr()==="pseudo"||typeof document<"u"&&document.location&&typeof document.location.hash=="string"&&document.location.hash.indexOf("pseudo=true")>=0;function Mr(t,e){let n;return e.length===0?n=t:n=t.replace(/\{(\d+)\}/g,(i,r)=>{const s=parseInt(r,10),a=e[s];let l=i;return typeof a=="string"?l=a:(typeof a=="number"||typeof a=="boolean"||a===void 0||a===null)&&(l=String(a)),l}),Ql&&(n="["+n.replace(/[aouei]/g,"$&$&")+"]"),n}function O(t,e,...n){return Mr(typeof t=="number"?Yl(t,e):e,n)}function Yl(t,e){const n=Jl()?.[t];if(typeof n!="string"){if(typeof e=="string")return e;throw new Error(`!!! NLS MISSING: ${t} !!!`)}return n}const lt="en";let gi=!1,bi=!1,wi=!1,nn,_i=lt,Ir=lt,zr=lt,Zl,Pe;const ut=globalThis;let we;typeof ut.vscode<"u"&&typeof ut.vscode.process<"u"?we=ut.vscode.process:typeof process<"u"&&typeof process?.versions?.node=="string"&&(we=process);const Kl=typeof we?.versions?.electron=="string"&&we?.type==="renderer";if(typeof we=="object"){gi=we.platform==="win32",bi=we.platform==="darwin",wi=we.platform==="linux",wi&&we.env.SNAP&&we.env.SNAP_REVISION,we.env.CI||we.env.BUILD_ARTIFACTSTAGINGDIRECTORY||we.env.GITHUB_WORKSPACE,nn=lt,_i=lt;const t=we.env.VSCODE_NLS_CONFIG;if(t)try{const e=JSON.parse(t);nn=e.userLocale,Ir=e.osLocale,zr=e.regionalLocale??e.osLocale,_i=e.resolvedLanguage||lt,Zl=e.languagePack?.translationsConfigFile}catch{}}else typeof navigator=="object"&&!Kl?(Pe=navigator.userAgent,gi=Pe.indexOf("Windows")>=0,bi=Pe.indexOf("Macintosh")>=0,(Pe.indexOf("Macintosh")>=0||Pe.indexOf("iPad")>=0||Pe.indexOf("iPhone")>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>0,wi=Pe.indexOf("Linux")>=0,Pe.indexOf("CrOS")>=0,Pe?.indexOf("Mobi")>=0,_i=Dr()||lt,nn=navigator.language.toLowerCase(),Ir=nn,zr=nn):console.error("Unable to resolve platform.");const rn=gi,eu=bi,Ae=Pe,tu=typeof ut.postMessage=="function"&&!ut.importScripts;(()=>{if(tu){const t=[];ut.addEventListener("message",n=>{if(n.data&&n.data.vscodeScheduleAsyncWork)for(let i=0,r=t.length;i<r;i++){const s=t[i];if(s.id===n.data.vscodeScheduleAsyncWork){t.splice(i,1),s.callback();return}}});let e=0;return n=>{const i=++e;t.push({id:i,callback:n}),ut.postMessage({vscodeScheduleAsyncWork:i},"*")}}return t=>setTimeout(t)})();const nu=!!(Ae&&Ae.indexOf("Chrome")>=0);Ae&&Ae.indexOf("Firefox")>=0,!nu&&Ae&&Ae.indexOf("Safari")>=0,Ae&&Ae.indexOf("Edg/")>=0,Ae&&Ae.indexOf("Android")>=0,Ae&&Ae.indexOf("Electron")>=0;let Lt;const vi=globalThis.vscode;if(typeof vi<"u"&&typeof vi.process<"u"){const t=vi.process;Lt={get platform(){return t.platform},get arch(){return t.arch},get env(){return t.env},cwd(){return t.cwd()}}}else typeof process<"u"&&typeof process?.versions?.node=="string"?Lt={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:Lt={get platform(){return rn?"win32":eu?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const Rn=Lt.cwd,Hr=Lt.env,iu=Lt.platform,ru=globalThis.performance.now.bind(globalThis.performance);class Cn{static create(e){return new Cn(e)}constructor(e){this._now=e===!1?Date.now:ru,this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}}const su=100,Pr=6e4;function Ur(){return!!Hr.VSCODE_DEV}var sn;(function(t){t.None=()=>Ye.None;function e(C,A,L){return m(C,()=>{},0,void 0,A??!0,void 0,L)}t.defer=e;function n(C){return(A,L=null,R)=>{let D=!1,U;return U=C(W=>{if(!D)return U?U.dispose():D=!0,A.call(L,W)},null,R),D&&U.dispose(),U}}t.once=n;function i(C,A){return t.once(t.filter(C,A))}t.onceIf=i;function r(C,A,L){return c((R,D=null,U)=>C(W=>R.call(D,A(W)),null,U),L)}t.map=r;function s(C,A,L){return c((R,D=null,U)=>C(W=>{A(W),R.call(D,W)},null,U),L)}t.forEach=s;function a(C,A,L){return c((R,D=null,U)=>C(W=>A(W)&&R.call(D,W),null,U),L)}t.filter=a;function l(C){return C}t.signal=l;function o(...C){return(A,L=null,R)=>{const D=jl(...C.map(U=>U(W=>A.call(L,W))));return d(D,R)}}t.any=o;function u(C,A,L,R){let D=L;return r(C,U=>(D=A(D,U),D),R)}t.reduce=u;function c(C,A){let L;const R={onWillAddFirstListener(){L=C(D.fire,D)},onDidRemoveLastListener(){L?.dispose()}},D=new Ne(R);return A?.add(D),D.event}function d(C,A){return A instanceof Array?A.push(C):A&&A.add(C),C}function m(C,A,L=100,R=!1,D=!1,U,W){let F=Ye.None,B,J,Q=0,ne;const xe={leakWarningThreshold:U,onWillAddFirstListener(){F=C(km=>{Q++,B=A(B,km),R&&!J&&(Qt.fire(B),B=void 0),ne=()=>{const Lm=B;B=void 0,J=void 0,(!R||Q>1)&&Qt.fire(Lm),Q=0},typeof L=="number"?(J&&clearTimeout(J),J=setTimeout(ne,L)):J===void 0&&(J=null,queueMicrotask(ne))})},onWillRemoveListener(){D&&Q>0&&ne?.()},onDidRemoveLastListener(){ne=void 0,F.dispose()}},Qt=new Ne(xe);return W?.add(Qt),Qt.event}t.debounce=m;function f(C,A=0,L,R){return t.debounce(C,(D,U)=>D?(D.push(U),D):[U],A,void 0,L??!0,void 0,R)}t.accumulate=f;function b(C,A,L=100,R=!0,D=!0,U,W){let F,B,J,Q=0;const ne={leakWarningThreshold:U,onWillAddFirstListener(){F=C(Qt=>{Q++,B=A(B,Qt),J===void 0&&(R&&(xe.fire(B),B=void 0,Q=0),typeof L=="number"?J=setTimeout(()=>{D&&Q>0&&xe.fire(B),B=void 0,J=void 0,Q=0},L):(J=0,queueMicrotask(()=>{D&&Q>0&&xe.fire(B),B=void 0,J=void 0,Q=0})))})},onDidRemoveLastListener(){F.dispose()}},xe=new Ne(ne);return W?.add(xe),xe.event}t.throttle=b;function p(C,A=(R,D)=>R===D,L){let R=!0,D;return a(C,U=>{const W=R||!A(U,D);return R=!1,D=U,W},L)}t.latch=p;function x(C,A,L){return[t.filter(C,A,L),t.filter(C,R=>!A(R),L)]}t.split=x;function y(C,A,L=!1,R=[],D){let U=R.slice(),W;Ur()&&(W={stack:Nn.create(),timerId:setTimeout(()=>{U&&U.length>0&&W&&!W.warned&&(W.warned=!0,console.warn(`[Event.buffer][${A}] potential LEAK detected: ${U.length} events buffered for ${Pr/1e3}s without being consumed. Buffered here:`),W.stack.print())},Pr),warned:!1},D&&D.add(St(()=>clearTimeout(W.timerId))));const F=()=>{W&&clearTimeout(W.timerId)};let B=C(ne=>{U?(U.push(ne),Ur()&&W&&!W.warned&&U.length>=su&&(W.warned=!0,console.warn(`[Event.buffer][${A}] potential LEAK detected: ${U.length} events buffered without being consumed. Buffered here:`),W.stack.print())):Q.fire(ne)});D&&D.add(B);const J=()=>{U?.forEach(ne=>Q.fire(ne)),U=null,F()},Q=new Ne({onWillAddFirstListener(){B||(B=C(ne=>Q.fire(ne)),D&&D.add(B))},onDidAddFirstListener(){U&&(L?setTimeout(J):J())},onDidRemoveLastListener(){B&&B.dispose(),B=null,F()}});return D&&D.add(Q),Q.event}t.buffer=y;function _(C,A){return(R,D,U)=>{const W=A(new M);return C(function(F){const B=W.evaluate(F);B!==T&&R.call(D,B)},void 0,U)}}t.chain=_;const T=Symbol("HaltChainable");class M{constructor(){this.steps=[]}map(A){return this.steps.push(A),this}forEach(A){return this.steps.push(L=>(A(L),L)),this}filter(A){return this.steps.push(L=>A(L)?L:T),this}reduce(A,L){let R=L;return this.steps.push(D=>(R=A(R,D),R)),this}latch(A=(L,R)=>L===R){let L=!0,R;return this.steps.push(D=>{const U=L||!A(D,R);return L=!1,R=D,U?D:T}),this}evaluate(A){for(const L of this.steps)if(A=L(A),A===T)break;return A}}function z(C,A,L=R=>R){const R=(...F)=>W.fire(L(...F)),D=()=>C.on(A,R),U=()=>C.removeListener(A,R),W=new Ne({onWillAddFirstListener:D,onDidRemoveLastListener:U});return W.event}t.fromNodeEventEmitter=z;function H(C,A,L=R=>R){const R=(...F)=>W.fire(L(...F)),D=()=>C.addEventListener(A,R),U=()=>C.removeEventListener(A,R),W=new Ne({onWillAddFirstListener:D,onDidRemoveLastListener:U});return W.event}t.fromDOMEventEmitter=H;function w(C,A){let L,R;const D=new Promise(U=>{R=n(C)(U),Ti(R,A),L=()=>{Wr(R,A)}});return D.cancel=L,A&&D.finally(()=>Wr(R,A)),D}t.toPromise=w;function g(C,A){return C(L=>A.fire(L))}t.forward=g;function v(C,A,L){return A(L),C(R=>A(R))}t.runAndSubscribe=v;class I{constructor(A,L){this._observable=A,this._counter=0,this._hasChanged=!1;const R={onWillAddFirstListener:()=>{A.addObserver(this),this._observable.reportChanges()},onDidRemoveLastListener:()=>{A.removeObserver(this)}};this.emitter=new Ne(R),L&&L.add(this.emitter)}beginUpdate(A){this._counter++}handlePossibleChange(A){}handleChange(A,L){this._hasChanged=!0}endUpdate(A){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function k(C,A){return new I(C,A).emitter.event}t.fromObservable=k;function S(C){return(A,L,R)=>{let D=0,U=!1;const W={beginUpdate(){D++},endUpdate(){D--,D===0&&(C.reportChanges(),U&&(U=!1,A.call(L)))},handlePossibleChange(){},handleChange(){U=!0}};C.addObserver(W),C.reportChanges();const F={dispose(){C.removeObserver(W)}};return Ti(F,R),F}}t.fromObservableLight=S})(sn||(sn={}));const jt=class jt{constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${jt._idPool++}`,jt.all.add(this)}start(e){this._stopWatch=new Cn,this.listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}};jt.all=new Set,jt._idPool=0;let yi=jt,au=-1,ou=1;function lu(){return(ou++).toString(16).padStart(3,"0")}class uu{constructor(e,n,i=lu()){this._errorHandler=e,this.threshold=n,this.name=i,this._warnCountdown=0}dispose(){this._stacks?.clear()}check(e,n){const i=this.threshold;if(i<=0||n<i)return;this._stacks||(this._stacks=new Map);const r=e.value,s=this._stacks.get(r)||0;if(this._stacks.set(r,s+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=i*.5;const[a,l]=this.getMostFrequentStack(),o=/^[0-9a-f]+$/i.test(this.name)?void 0:this.name,u=`[${this.name}] potential listener LEAK detected, having ${n} listeners already. MOST frequent listener (${l}):`;console.warn(u),console.warn(a);const c=l/n>.3?"dominated":"popular",d=new Dn(c,u,a,n,o);this._errorHandler(d)}return()=>{const a=this._stacks.get(r)||0;a<=1?this._stacks.delete(r):this._stacks.set(r,a-1)}}getMostFrequentStack(){if(!this._stacks)return;let e,n=0;for(const[i,r]of this._stacks)(!e||n<r)&&(e=[i,r],n=r);return e}}class Nn{static create(){const e=new Error;return new Nn(e.stack??"")}constructor(e){this.value=e}print(){console.warn(this.value.split(`6`).slice(2).join(`7`))}}class Dn extends Error{constructor(e,n,i,r,s){super(s?`[${s}] potential listener LEAK detected, ${e}`:`potential listener LEAK detected, ${e}`),this.name="ListenerLeakError",this.kind=e,this.listenerCount=r,this.details=n,this.stack=i}static is(e){return e instanceof Dn||e instanceof Error&&typeof e.kind=="string"&&typeof e.listenerCount=="number"}}class cu extends Dn{constructor(e,n,i,r,s){super(e,n,i,r,s),this.name="ListenerRefusalError"}}class xi{constructor(e){this.value=e}}const hu=2;class Ne{constructor(e){this._size=0,this._options=e,this._options?.leakWarningThreshold&&(this._leakWarningThreshold=this._options?.leakWarningThreshold??au,this._leakWarningName=this._options?.leakWarningName,this._leakWarningErrorHandler=this._options?.onListenerError??xt),this._perfMon=this._options?._profName?new yi(this._options._profName):void 0,this._deliveryQueue=this._options?.deliveryQueue}_getLeakageMonitor(){if(!(this._leakWarningThreshold===void 0||this._leakWarningErrorHandler===void 0))return this._leakageMon??=new uu(this._leakWarningErrorHandler,this._leakWarningThreshold,this._leakWarningName)}dispose(){this._disposed||(this._disposed=!0,this._deliveryQueue?.current===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),this._options?.onDidRemoveLastListener?.(),this._leakageMon?.dispose())}get event(){return this._event??=(e,n,i)=>{if(this._leakWarningThreshold!==void 0&&this._size>this._leakWarningThreshold**2){const l=this._getLeakageMonitor();if(l){const o=`[${l.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${l.threshold})`;console.warn(o);const u=l.getMostFrequentStack()??["UNKNOWN stack",-1],c=u[1]/this._size>.3?"dominated":"popular",d=new cu(c,`${o}. HINT: Stack shows most frequent listener (${u[1]}-times)`,u[0],this._size,this._options?.leakWarningName);return(this._options?.onListenerError||xt)(d),Ye.None}}if(this._disposed)return Ye.None;n&&(e=e.bind(n));const r=new xi(e);let s;if(this._leakWarningThreshold!==void 0&&this._size>=Math.ceil(this._leakWarningThreshold*.2)){const l=this._getLeakageMonitor();l&&this._size+1>=l.threshold&&(r.stack=Nn.create(),s=l.check(r.stack,this._size+1))}this._listeners?this._listeners instanceof xi?(this._deliveryQueue??=new du,this._listeners=[this._listeners,r]):this._listeners.push(r):(this._options?.onWillAddFirstListener?.(this),this._listeners=r,this._options?.onDidAddFirstListener?.(this)),this._options?.onDidAddListener?.(this),this._size++;const a=St(()=>{s?.(),this._removeListener(r)});return Ti(a,i),a},this._event}_removeListener(e){if(this._options?.onWillRemoveListener?.(this),!this._listeners)return;if(this._size===1){this._listeners=void 0,this._options?.onDidRemoveLastListener?.(this),this._size=0;return}const n=this._listeners,i=n.indexOf(e);if(i===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,n[i]=void 0;const r=this._deliveryQueue.current===this;if(this._size*hu<=n.length){let s=0;for(let a=0;a<n.length;a++)n[a]?n[s++]=n[a]:r&&s<this._deliveryQueue.end&&(this._deliveryQueue.end--,s<this._deliveryQueue.i&&this._deliveryQueue.i--);n.length=s}}_deliver(e,n){if(!e)return;const i=this._options?.onListenerError||xt;if(!i){e.value(n);return}try{e.value(n)}catch(r){i(r)}}_deliverQueue(e){const n=e.current._listeners;for(;e.i<e.end;)this._deliver(n[e.i++],e.value);e.reset()}fire(e){if(this._deliveryQueue?.current&&(this._deliverQueue(this._deliveryQueue),this._perfMon?.stop()),this._perfMon?.start(this._size),this._listeners)if(this._listeners instanceof xi)this._deliver(this._listeners,e);else{const n=this._deliveryQueue;n.enqueue(this,e,this._listeners.length),this._deliverQueue(n)}this._perfMon?.stop()}hasListeners(){return this._size>0}}class du{constructor(){this.i=-1,this.end=0}enqueue(e,n,i){this.i=0,this.end=i,this.current=e,this.value=n}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}function Ti(t,e){e instanceof kt?e.add(t):Array.isArray(e)&&e.push(t)}function Wr(t,e){if(e instanceof kt)e.delete(t);else if(Array.isArray(e)){const n=e.indexOf(t);n!==-1&&e.splice(n,1)}t.dispose()}function mu(t){return t}class fu{constructor(e,n){this.lastCache=void 0,this.lastArgKey=void 0,typeof e=="function"?(this._fn=e,this._computeKey=mu):(this._fn=n,this._computeKey=e.getCacheKey)}get(e){const n=this._computeKey(e);return this.lastArgKey!==n&&(this.lastArgKey=n,this.lastCache=this._fn(e)),this.lastCache}}var ct;(function(t){t[t.Uninitialized=0]="Uninitialized",t[t.Running=1]="Running",t[t.Completed=2]="Completed"})(ct||(ct={}));class Si{constructor(e){this.executor=e,this._state=ct.Uninitialized}get value(){if(this._state===ct.Uninitialized){this._state=ct.Running;try{this._value=this.executor()}catch(e){this._error=e}finally{this._state=ct.Completed}}else if(this._state===ct.Running)throw new Error("Cannot read the value of a lazy that is being initialized");if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}function pu(t){return t.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function gu(t){return t.source==="^"||t.source==="^$"||t.source==="$"||t.source==="^\\s*$"?!1:!!(t.exec("")&&t.lastIndex===0)}function bu(t){return t.split(/\r\n|\r|\n/)}function wu(t){for(let e=0,n=t.length;e<n;e++){const i=t.charCodeAt(e);if(i!==32&&i!==9)return e}return-1}function _u(t,e=t.length-1){for(let n=e;n>=0;n--){const i=t.charCodeAt(n);if(i!==32&&i!==9)return n}return-1}function Fr(t){return t>=65&&t<=90}function ki(t,e){const n=Math.min(t.length,e.length);let i;for(i=0;i<n;i++)if(t.charCodeAt(i)!==e.charCodeAt(i))return i;return n}function Li(t,e){const n=Math.min(t.length,e.length);let i;const r=t.length-1,s=e.length-1;for(i=0;i<n;i++)if(t.charCodeAt(r-i)!==e.charCodeAt(s-i))return i;return n}function Ze(t){return 55296<=t&&t<=56319}function Mn(t){return 56320<=t&&t<=57343}function Br(t,e){return(t-55296<<10)+(e-56320)+65536}function vu(t,e,n){const i=t.charCodeAt(n);if(Ze(i)&&n+1<e){const r=t.charCodeAt(n+1);if(Mn(r))return Br(i,r)}return i}const yu=/^[\t\n\r\x20-\x7E]*$/;function xu(t){return yu.test(t)}const Fe=class Fe{static getInstance(e){return Fe.cache.get(Array.from(e).join(","))}static getLocales(){return Fe._locales.value}constructor(e){this.confusableDictionary=e}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}};Fe.ambiguousCharacterData=new Si(()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,1523,96,8242,96,1370,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,118002,50,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,118003,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,118004,52,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,118005,53,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,118006,54,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,118007,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,118008,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,118009,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,117974,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,117975,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71913,67,71922,67,65315,67,8557,67,8450,67,8493,67,117976,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,117977,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,117978,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,117979,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,117980,71,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,117981,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,117983,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,117984,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,118001,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,117982,108,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,117985,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,117986,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,117987,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,118000,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,117988,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,117989,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,117990,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,117991,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,117992,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,117993,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,117994,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,117995,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71910,87,71919,87,117996,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,117997,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,117998,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,71909,90,66293,90,65338,90,8484,90,8488,90,117999,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65283,35,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"cs":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"es":[8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"fr":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"it":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"ja":[8211,45,8218,44,65281,33,8216,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65292,44,65297,49,65307,59],"ko":[8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"pt-BR":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"ru":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"zh-hans":[160,32,65374,126,8218,44,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65297,49],"zh-hant":[8211,45,65374,126,8218,44,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89]}')),Fe.cache=new fu(e=>{const n=e.split(",");function i(d){const m=new Map;for(let f=0;f<d.length;f+=2)m.set(d[f],d[f+1]);return m}function r(d,m){const f=new Map(d);for(const[b,p]of m)f.set(b,p);return f}function s(d,m){if(!d)return m;const f=new Map;for(const[b,p]of d)m.has(b)&&f.set(b,p);return f}const a=Fe.ambiguousCharacterData.value;let l=n.filter(d=>!d.startsWith("_")&&Object.hasOwn(a,d));l.length===0&&(l=["_default"]);let o;for(const d of l){const m=i(a[d]);o=s(o,m)}const u=i(a._common),c=r(u,o);return new Fe(c)}),Fe._locales=new Si(()=>Object.keys(Fe.ambiguousCharacterData.value).filter(e=>!e.startsWith("_")));let an=Fe;const Gt=class Gt{static getRawData(){return JSON.parse('{"_common":[11,12,13,127,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999],"cs":[173,8203,12288],"de":[173,8203,12288],"es":[8203,12288],"fr":[173,8203,12288],"it":[160,173,12288],"ja":[173],"ko":[173,12288],"pl":[173,8203,12288],"pt-BR":[173,8203,12288],"qps-ploc":[160,173,8203,12288],"ru":[173,12288],"tr":[160,173,8203,12288],"zh-hans":[160,173,8203,12288],"zh-hant":[173,12288]}')}static getData(){return this._data||(this._data=new Set([...Object.values(Gt.getRawData())].flat())),this._data}static isInvisibleCharacter(e){return Gt.getData().has(e)}static get codePoints(){return Gt.getData()}};Gt._data=void 0;let on=Gt;const Ai="default",Tu="$initialize";class Su{constructor(e,n,i,r,s){this.vsWorker=e,this.req=n,this.channel=i,this.method=r,this.args=s,this.type=0}}class qr{constructor(e,n,i,r){this.vsWorker=e,this.seq=n,this.res=i,this.err=r,this.type=1}}class ku{constructor(e,n,i,r,s){this.vsWorker=e,this.req=n,this.channel=i,this.eventName=r,this.arg=s,this.type=2}}class Lu{constructor(e,n,i){this.vsWorker=e,this.req=n,this.event=i,this.type=3}}class Au{constructor(e,n){this.vsWorker=e,this.req=n,this.type=4}}class Eu{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}async sendMessage(e,n,i){const r=String(++this._lastSentReq);return new Promise((s,a)=>{this._pendingReplies[r]={resolve:s,reject:a},this._send(new Su(this._workerId,r,e,n,i))})}listen(e,n,i){let r=null;const s=new Ne({onWillAddFirstListener:()=>{r=String(++this._lastSentReq),this._pendingEmitters.set(r,s),this._send(new ku(this._workerId,r,e,n,i))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(r),this._send(new Au(this._workerId,r)),r=null}});return s.event}handleMessage(e){!e||!e.vsWorker||this._workerId!==-1&&e.vsWorker!==this._workerId||this._handleMessage(e)}createProxyToRemoteChannel(e,n){const i={get:(r,s)=>(typeof s=="string"&&!r[s]&&(Vr(s)?r[s]=a=>this.listen(e,s,a):Or(s)?r[s]=this.listen(e,s,void 0):s.charCodeAt(0)===36&&(r[s]=async(...a)=>(await n?.(),this.sendMessage(e,s,a)))),r[s])};return new Proxy(Object.create(null),i)}_handleMessage(e){switch(e.type){case 1:return this._handleReplyMessage(e);case 0:return this._handleRequestMessage(e);case 2:return this._handleSubscribeEventMessage(e);case 3:return this._handleEventMessage(e);case 4:return this._handleUnsubscribeEventMessage(e)}}_handleReplyMessage(e){if(!this._pendingReplies[e.seq]){console.warn("Got reply to unknown seq");return}const n=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let i=e.err;if(e.err.$isError){const r=new Error;r.name=e.err.name,r.message=e.err.message,r.stack=e.err.stack,i=r}n.reject(i);return}n.resolve(e.res)}_handleRequestMessage(e){const n=e.req;this._handler.handleMessage(e.channel,e.method,e.args).then(r=>{this._send(new qr(this._workerId,n,r,void 0))},r=>{r.detail instanceof Error&&(r.detail=mi(r.detail)),this._send(new qr(this._workerId,n,void 0,mi(r)))})}_handleSubscribeEventMessage(e){const n=e.req,i=this._handler.handleEvent(e.channel,e.eventName,e.arg)(r=>{this._send(new Lu(this._workerId,n,r))});this._pendingEvents.set(n,i)}_handleEventMessage(e){const n=this._pendingEmitters.get(e.req);if(n===void 0){console.warn("Got event for unknown req");return}n.fire(e.event)}_handleUnsubscribeEventMessage(e){const n=this._pendingEvents.get(e.req);if(n===void 0){console.warn("Got unsubscribe for unknown req");return}n.dispose(),this._pendingEvents.delete(e.req)}_send(e){const n=[];if(e.type===0)for(let i=0;i<e.args.length;i++){const r=e.args[i];r instanceof ArrayBuffer&&n.push(r)}else e.type===1&&e.res instanceof ArrayBuffer&&n.push(e.res);this._handler.sendMessage(e,n)}}function Or(t){return t[0]==="o"&&t[1]==="n"&&Fr(t.charCodeAt(2))}function Vr(t){return/^onDynamic/.test(t)&&Fr(t.charCodeAt(9))}class Ru{constructor(e,n){this._localChannels=new Map,this._remoteChannels=new Map,this._protocol=new Eu({sendMessage:(i,r)=>{e(i,r)},handleMessage:(i,r,s)=>this._handleMessage(i,r,s),handleEvent:(i,r,s)=>this._handleEvent(i,r,s)}),this.requestHandler=n(this)}onmessage(e){this._protocol.handleMessage(e)}_handleMessage(e,n,i){if(e===Ai&&n===Tu)return this.initialize(i[0]);const r=e===Ai?this.requestHandler:this._localChannels.get(e);if(!r)return Promise.reject(new Error(`Missing channel ${e} on worker thread`));const s=r[n];if(typeof s!="function")return Promise.reject(new Error(`Missing method ${n} on worker thread channel ${e}`));try{return Promise.resolve(s.apply(r,i))}catch(a){return Promise.reject(a)}}_handleEvent(e,n,i){const r=e===Ai?this.requestHandler:this._localChannels.get(e);if(!r)throw new Error(`Missing channel ${e} on worker thread`);if(Vr(n)){const s=r[n];if(typeof s!="function")throw new Error(`Missing dynamic event ${n} on request handler.`);const a=s.call(r,i);if(typeof a!="function")throw new Error(`Missing dynamic event ${n} on request handler.`);return a}if(Or(n)){const s=r[n];if(typeof s!="function")throw new Error(`Missing event ${n} on request handler.`);return s}throw new Error(`Malformed event name ${n}`)}getChannel(e){let n=this._remoteChannels.get(e);return n===void 0&&(n=this._protocol.createProxyToRemoteChannel(e),this._remoteChannels.set(e,n)),n}async initialize(e){this._protocol.setWorkerId(e)}}let $r=!1;function Cu(t){if($r)throw new Error("WebWorker already initialized!");$r=!0;const e=new Ru(n=>globalThis.postMessage(n),n=>t(n));return globalThis.onmessage=n=>{e.onmessage(n.data)},e}class Ke{constructor(e,n,i,r){this.originalStart=e,this.originalLength=n,this.modifiedStart=i,this.modifiedLength=r}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}new Si(()=>new Uint8Array(256));function jr(t,e){return(e<<5)-e+t|0}function Nu(t,e){e=jr(149417,e);for(let n=0,i=t.length;n<i;n++)e=jr(t.charCodeAt(n),e);return e}class Gr{constructor(e){this.source=e}getElements(){const e=this.source,n=new Int32Array(e.length);for(let i=0,r=e.length;i<r;i++)n[i]=e.charCodeAt(i);return n}}class Xr{constructor(e){let n=0;for(let r=0;r<e.length;){const s=e.charCodeAt(r);r+=Ze(s)&&r+1<e.length&&Mn(e.charCodeAt(r+1))?2:1,n++}this.elements=new Int32Array(n),this.offsets=new Int32Array(n+1);let i=0;for(let r=0;r<e.length;i++){this.offsets[i]=r;const s=e.charCodeAt(r);if(Ze(s)&&r+1<e.length){const a=e.charCodeAt(r+1);if(Mn(a)){this.elements[i]=Br(s,a),r+=2;continue}}this.elements[i]=s,r++}this.offsets[n]=e.length}getElements(){return this.elements}getOffset(e){return this.offsets[e]}}function Du(t,e,n){if(!Jr(t)&&!Jr(e))return new qe(new Gr(t),new Gr(e)).ComputeDiff(n).changes;const i=new Xr(t),r=new Xr(e);return new qe(i,r).ComputeDiff(n).changes.map(s=>{const a=i.getOffset(s.originalStart),l=i.getOffset(s.originalStart+s.originalLength),o=r.getOffset(s.modifiedStart),u=r.getOffset(s.modifiedStart+s.modifiedLength);return{originalStart:a,originalLength:l-a,modifiedStart:o,modifiedLength:u-o}})}function Jr(t){for(let e=0;e+1<t.length;e++)if(Ze(t.charCodeAt(e))&&Mn(t.charCodeAt(e+1)))return!0;return!1}class At{static Assert(e,n){if(!e)throw new Error(n)}}class Et{static Copy(e,n,i,r,s){for(let a=0;a<s;a++)i[r+a]=e[n+a]}static Copy2(e,n,i,r,s){for(let a=0;a<s;a++)i[r+a]=e[n+a]}}class Qr{constructor(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}MarkNextChange(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new Ke(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,n){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_originalCount++}AddModifiedElement(e,n){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class qe{constructor(e,n,i=null){this.ContinueProcessingPredicate=i,this._originalSequence=e,this._modifiedSequence=n;const[r,s,a]=qe._getElements(e),[l,o,u]=qe._getElements(n);this._hasStrings=a&&u,this._originalStringElements=r,this._originalElementsOrHash=s,this._modifiedStringElements=l,this._modifiedElementsOrHash=o,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&typeof e[0]=="string"}static _getElements(e){const n=e.getElements();if(qe._isStringArray(n)){const i=new Int32Array(n.length);for(let r=0,s=n.length;r<s;r++)i[r]=Nu(n[r],0);return[n,i,!0]}return n instanceof Int32Array?[[],n,!1]:[[],new Int32Array(n),!1]}ElementsAreEqual(e,n){return this._originalElementsOrHash[e]!==this._modifiedElementsOrHash[n]?!1:this._hasStrings?this._originalStringElements[e]===this._modifiedStringElements[n]:!0}ElementsAreStrictEqual(e,n){if(!this.ElementsAreEqual(e,n))return!1;const i=qe._getStrictElement(this._originalSequence,e),r=qe._getStrictElement(this._modifiedSequence,n);return i===r}static _getStrictElement(e,n){return typeof e.getStrictElement=="function"?e.getStrictElement(n):null}OriginalElementsAreEqual(e,n){return this._originalElementsOrHash[e]!==this._originalElementsOrHash[n]?!1:this._hasStrings?this._originalStringElements[e]===this._originalStringElements[n]:!0}ModifiedElementsAreEqual(e,n){return this._modifiedElementsOrHash[e]!==this._modifiedElementsOrHash[n]?!1:this._hasStrings?this._modifiedStringElements[e]===this._modifiedStringElements[n]:!0}ComputeDiff(e){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,e)}_ComputeDiff(e,n,i,r,s){const a=[!1];let l=this.ComputeDiffRecursive(e,n,i,r,a);return s&&(l=this.PrettifyChanges(l)),{quitEarly:a[0],changes:l}}ComputeDiffRecursive(e,n,i,r,s){for(s[0]=!1;e<=n&&i<=r&&this.ElementsAreEqual(e,i);)e++,i++;for(;n>=e&&r>=i&&this.ElementsAreEqual(n,r);)n--,r--;if(e>n||i>r){let d;return i<=r?(At.Assert(e===n+1,"originalStart should only be one more than originalEnd"),d=[new Ke(e,0,i,r-i+1)]):e<=n?(At.Assert(i===r+1,"modifiedStart should only be one more than modifiedEnd"),d=[new Ke(e,n-e+1,i,0)]):(At.Assert(e===n+1,"originalStart should only be one more than originalEnd"),At.Assert(i===r+1,"modifiedStart should only be one more than modifiedEnd"),d=[]),d}const a=[0],l=[0],o=this.ComputeRecursionPoint(e,n,i,r,a,l,s),u=a[0],c=l[0];if(o!==null)return o;if(!s[0]){const d=this.ComputeDiffRecursive(e,u,i,c,s);let m=[];return s[0]?m=[new Ke(u+1,n-(u+1)+1,c+1,r-(c+1)+1)]:m=this.ComputeDiffRecursive(u+1,n,c+1,r,s),this.ConcatenateChanges(d,m)}return[new Ke(e,n-e+1,i,r-i+1)]}WALKTRACE(e,n,i,r,s,a,l,o,u,c,d,m,f,b,p,x,y,_){let T=null,M=null,z=new Qr,H=n,w=i,g=f[0]-x[0]-r,v=-1073741824,I=this.m_forwardHistory.length-1;do{const k=g+e;k===H||k<w&&u[k-1]<u[k+1]?(d=u[k+1],b=d-g-r,d<v&&z.MarkNextChange(),v=d,z.AddModifiedElement(d+1,b),g=k+1-e):(d=u[k-1]+1,b=d-g-r,d<v&&z.MarkNextChange(),v=d-1,z.AddOriginalElement(d,b+1),g=k-1-e),I>=0&&(u=this.m_forwardHistory[I],e=u[0],H=1,w=u.length-1)}while(--I>=-1);if(T=z.getReverseChanges(),_[0]){let k=f[0]+1,S=x[0]+1;if(T!==null&&T.length>0){const C=T[T.length-1];k=Math.max(k,C.getOriginalEnd()),S=Math.max(S,C.getModifiedEnd())}M=[new Ke(k,m-k+1,S,p-S+1)]}else{z=new Qr,H=a,w=l,g=f[0]-x[0]-o,v=1073741824,I=y?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const k=g+s;k===H||k<w&&c[k-1]>=c[k+1]?(d=c[k+1]-1,b=d-g-o,d>v&&z.MarkNextChange(),v=d+1,z.AddOriginalElement(d+1,b+1),g=k+1-s):(d=c[k-1],b=d-g-o,d>v&&z.MarkNextChange(),v=d,z.AddModifiedElement(d+1,b+1),g=k-1-s),I>=0&&(c=this.m_reverseHistory[I],s=c[0],H=1,w=c.length-1)}while(--I>=-1);M=z.getChanges()}return this.ConcatenateChanges(T,M)}ComputeRecursionPoint(e,n,i,r,s,a,l){let o=0,u=0,c=0,d=0,m=0,f=0;e--,i--,s[0]=0,a[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const b=n-e+(r-i),p=b+1,x=new Int32Array(p),y=new Int32Array(p),_=r-i,T=n-e,M=e-i,z=n-r,w=(T-_)%2===0;x[_]=e,y[T]=n,l[0]=!1;for(let g=1;g<=b/2+1;g++){let v=0,I=0;c=this.ClipDiagonalBound(_-g,g,_,p),d=this.ClipDiagonalBound(_+g,g,_,p);for(let S=c;S<=d;S+=2){S===c||S<d&&x[S-1]<x[S+1]?o=x[S+1]:o=x[S-1]+1,u=o-(S-_)-M;const C=o;for(;o<n&&u<r&&this.ElementsAreEqual(o+1,u+1);)o++,u++;if(x[S]=o,o+u>v+I&&(v=o,I=u),!w&&Math.abs(S-T)<=g-1&&o>=y[S])return s[0]=o,a[0]=u,C<=y[S]&&g<=1448?this.WALKTRACE(_,c,d,M,T,m,f,z,x,y,o,n,s,u,r,a,w,l):null}const k=(v-e+(I-i)-g)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(v,k))return l[0]=!0,s[0]=v,a[0]=I,k>0&&g<=1448?this.WALKTRACE(_,c,d,M,T,m,f,z,x,y,o,n,s,u,r,a,w,l):(e++,i++,[new Ke(e,n-e+1,i,r-i+1)]);m=this.ClipDiagonalBound(T-g,g,T,p),f=this.ClipDiagonalBound(T+g,g,T,p);for(let S=m;S<=f;S+=2){S===m||S<f&&y[S-1]>=y[S+1]?o=y[S+1]-1:o=y[S-1],u=o-(S-T)-z;const C=o;for(;o>e&&u>i&&this.ElementsAreEqual(o,u);)o--,u--;if(y[S]=o,w&&Math.abs(S-_)<=g&&o<=x[S])return s[0]=o,a[0]=u,C>=x[S]&&g<=1448?this.WALKTRACE(_,c,d,M,T,m,f,z,x,y,o,n,s,u,r,a,w,l):null}if(g<=1447){let S=new Int32Array(d-c+2);S[0]=_-c+1,Et.Copy2(x,c,S,1,d-c+1),this.m_forwardHistory.push(S),S=new Int32Array(f-m+2),S[0]=T-m+1,Et.Copy2(y,m,S,1,f-m+1),this.m_reverseHistory.push(S)}}return this.WALKTRACE(_,c,d,M,T,m,f,z,x,y,o,n,s,u,r,a,w,l)}PrettifyChanges(e){for(let n=0;n<e.length;n++){const i=e[n],r=n<e.length-1?e[n+1].originalStart:this._originalElementsOrHash.length,s=n<e.length-1?e[n+1].modifiedStart:this._modifiedElementsOrHash.length,a=i.originalLength>0,l=i.modifiedLength>0;for(;i.originalStart+i.originalLength<r&&i.modifiedStart+i.modifiedLength<s&&(!a||this.OriginalElementsAreEqual(i.originalStart,i.originalStart+i.originalLength))&&(!l||this.ModifiedElementsAreEqual(i.modifiedStart,i.modifiedStart+i.modifiedLength));){const u=this.ElementsAreStrictEqual(i.originalStart,i.modifiedStart);if(this.ElementsAreStrictEqual(i.originalStart+i.originalLength,i.modifiedStart+i.modifiedLength)&&!u)break;i.originalStart++,i.modifiedStart++}const o=[null];if(n<e.length-1&&this.ChangesOverlap(e[n],e[n+1],o)){e[n]=o[0],e.splice(n+1,1),n--;continue}}for(let n=e.length-1;n>=0;n--){const i=e[n];let r=0,s=0;if(n>0){const d=e[n-1];r=d.originalStart+d.originalLength,s=d.modifiedStart+d.modifiedLength}const a=i.originalLength>0,l=i.modifiedLength>0;let o=0,u=this._boundaryScore(i.originalStart,i.originalLength,i.modifiedStart,i.modifiedLength);for(let d=1;;d++){const m=i.originalStart-d,f=i.modifiedStart-d;if(m<r||f<s||a&&!this.OriginalElementsAreEqual(m,m+i.originalLength)||l&&!this.ModifiedElementsAreEqual(f,f+i.modifiedLength))break;const p=(m===r&&f===s?5:0)+this._boundaryScore(m,i.originalLength,f,i.modifiedLength);p>u&&(u=p,o=d)}i.originalStart-=o,i.modifiedStart-=o;const c=[null];if(n>0&&this.ChangesOverlap(e[n-1],e[n],c)){e[n-1]=c[0],e.splice(n,1),n++;continue}}if(this._hasStrings)for(let n=1,i=e.length;n<i;n++){const r=e[n-1],s=e[n],a=s.originalStart-r.originalStart-r.originalLength,l=r.originalStart,o=s.originalStart+s.originalLength,u=o-l,c=r.modifiedStart,d=s.modifiedStart+s.modifiedLength,m=d-c;if(a<5&&u<20&&m<20){const f=this._findBetterContiguousSequence(l,u,c,m,a);if(f){const[b,p]=f;(b!==r.originalStart+r.originalLength||p!==r.modifiedStart+r.modifiedLength)&&(r.originalLength=b-r.originalStart,r.modifiedLength=p-r.modifiedStart,s.originalStart=b+a,s.modifiedStart=p+a,s.originalLength=o-s.originalStart,s.modifiedLength=d-s.modifiedStart)}}}return e}_findBetterContiguousSequence(e,n,i,r,s){if(n<s||r<s)return null;const a=e+n-s+1,l=i+r-s+1;let o=0,u=0,c=0;for(let d=e;d<a;d++)for(let m=i;m<l;m++){const f=this._contiguousSequenceScore(d,m,s);f>0&&f>o&&(o=f,u=d,c=m)}return o>0?[u,c]:null}_contiguousSequenceScore(e,n,i){let r=0;for(let s=0;s<i;s++){if(!this.ElementsAreEqual(e+s,n+s))return 0;r+=this._originalStringElements[e+s].length}return r}_OriginalIsBoundary(e){return e<=0||e>=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,n){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(n>0){const i=e+n;if(this._OriginalIsBoundary(i-1)||this._OriginalIsBoundary(i))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,n){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(n>0){const i=e+n;if(this._ModifiedIsBoundary(i-1)||this._ModifiedIsBoundary(i))return!0}return!1}_boundaryScore(e,n,i,r){const s=this._OriginalRegionIsBoundary(e,n)?1:0,a=this._ModifiedRegionIsBoundary(i,r)?1:0;return s+a}ConcatenateChanges(e,n){const i=[];if(e.length===0||n.length===0)return n.length>0?n:e;if(this.ChangesOverlap(e[e.length-1],n[0],i)){const r=new Array(e.length+n.length-1);return Et.Copy(e,0,r,0,e.length-1),r[e.length-1]=i[0],Et.Copy(n,1,r,e.length,n.length-1),r}else{const r=new Array(e.length+n.length);return Et.Copy(e,0,r,0,e.length),Et.Copy(n,0,r,e.length,n.length),r}}ChangesOverlap(e,n,i){if(At.Assert(e.originalStart<=n.originalStart,"Left change is not less than or equal to right change"),At.Assert(e.modifiedStart<=n.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=n.originalStart||e.modifiedStart+e.modifiedLength>=n.modifiedStart){const r=e.originalStart;let s=e.originalLength;const a=e.modifiedStart;let l=e.modifiedLength;return e.originalStart+e.originalLength>=n.originalStart&&(s=n.originalStart+n.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=n.modifiedStart&&(l=n.modifiedStart+n.modifiedLength-e.modifiedStart),i[0]=new Ke(r,s,a,l),!0}else return i[0]=null,!1}ClipDiagonalBound(e,n,i,r){if(e>=0&&e<r)return e;const s=i,a=r-i-1,l=n%2===0;if(e<0){const o=s%2===0;return l===o?0:1}else{const o=a%2===0;return l===o?r-1:r-2}}}let Y=class yt{constructor(e,n){this.lineNumber=e,this.column=n}with(e=this.lineNumber,n=this.column){return e===this.lineNumber&&n===this.column?this:new yt(e,n)}delta(e=0,n=0){return this.with(Math.max(1,this.lineNumber+e),Math.max(1,this.column+n))}equals(e){return yt.equals(this,e)}static equals(e,n){return!e&&!n?!0:!!e&&!!n&&e.lineNumber===n.lineNumber&&e.column===n.column}isBefore(e){return yt.isBefore(this,e)}static isBefore(e,n){return e.lineNumber<n.lineNumber?!0:n.lineNumber<e.lineNumber?!1:e.column<n.column}isBeforeOrEqual(e){return yt.isBeforeOrEqual(this,e)}static isBeforeOrEqual(e,n){return e.lineNumber<n.lineNumber?!0:n.lineNumber<e.lineNumber?!1:e.column<=n.column}static compare(e,n){const i=e.lineNumber|0,r=n.lineNumber|0;if(i===r){const s=e.column|0,a=n.column|0;return s-a}return i-r}clone(){return new yt(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(e){return new yt(e.lineNumber,e.column)}static isIPosition(e){return!!e&&typeof e.lineNumber=="number"&&typeof e.column=="number"}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}},V=class le{constructor(e,n,i,r){e>i||e===i&&n>r?(this.startLineNumber=i,this.startColumn=r,this.endLineNumber=e,this.endColumn=n):(this.startLineNumber=e,this.startColumn=n,this.endLineNumber=i,this.endColumn=r)}isEmpty(){return le.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return le.containsPosition(this,e)}static containsPosition(e,n){return!(n.lineNumber<e.startLineNumber||n.lineNumber>e.endLineNumber||n.lineNumber===e.startLineNumber&&n.column<e.startColumn||n.lineNumber===e.endLineNumber&&n.column>e.endColumn)}static strictContainsPosition(e,n){return!(n.lineNumber<e.startLineNumber||n.lineNumber>e.endLineNumber||n.lineNumber===e.startLineNumber&&n.column<=e.startColumn||n.lineNumber===e.endLineNumber&&n.column>=e.endColumn)}containsRange(e){return le.containsRange(this,e)}static containsRange(e,n){return!(n.startLineNumber<e.startLineNumber||n.endLineNumber<e.startLineNumber||n.startLineNumber>e.endLineNumber||n.endLineNumber>e.endLineNumber||n.startLineNumber===e.startLineNumber&&n.startColumn<e.startColumn||n.endLineNumber===e.endLineNumber&&n.endColumn>e.endColumn)}strictContainsRange(e){return le.strictContainsRange(this,e)}static strictContainsRange(e,n){return!(n.startLineNumber<e.startLineNumber||n.endLineNumber<e.startLineNumber||n.startLineNumber>e.endLineNumber||n.endLineNumber>e.endLineNumber||n.startLineNumber===e.startLineNumber&&n.startColumn<=e.startColumn||n.endLineNumber===e.endLineNumber&&n.endColumn>=e.endColumn)}plusRange(e){return le.plusRange(this,e)}static plusRange(e,n){let i,r,s,a;return n.startLineNumber<e.startLineNumber?(i=n.startLineNumber,r=n.startColumn):n.startLineNumber===e.startLineNumber?(i=n.startLineNumber,r=Math.min(n.startColumn,e.startColumn)):(i=e.startLineNumber,r=e.startColumn),n.endLineNumber>e.endLineNumber?(s=n.endLineNumber,a=n.endColumn):n.endLineNumber===e.endLineNumber?(s=n.endLineNumber,a=Math.max(n.endColumn,e.endColumn)):(s=e.endLineNumber,a=e.endColumn),new le(i,r,s,a)}intersectRanges(e){return le.intersectRanges(this,e)}static intersectRanges(e,n){let i=e.startLineNumber,r=e.startColumn,s=e.endLineNumber,a=e.endColumn;const l=n.startLineNumber,o=n.startColumn,u=n.endLineNumber,c=n.endColumn;return i<l?(i=l,r=o):i===l&&(r=Math.max(r,o)),s>u?(s=u,a=c):s===u&&(a=Math.min(a,c)),i>s||i===s&&r>a?null:new le(i,r,s,a)}equalsRange(e){return le.equalsRange(this,e)}static equalsRange(e,n){return!e&&!n?!0:!!e&&!!n&&e.startLineNumber===n.startLineNumber&&e.startColumn===n.startColumn&&e.endLineNumber===n.endLineNumber&&e.endColumn===n.endColumn}getEndPosition(){return le.getEndPosition(this)}static getEndPosition(e){return new Y(e.endLineNumber,e.endColumn)}getStartPosition(){return le.getStartPosition(this)}static getStartPosition(e){return new Y(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,n){return new le(this.startLineNumber,this.startColumn,e,n)}setStartPosition(e,n){return new le(e,n,this.endLineNumber,this.endColumn)}collapseToStart(){return le.collapseToStart(this)}static collapseToStart(e){return new le(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return le.collapseToEnd(this)}static collapseToEnd(e){return new le(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new le(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}isSingleLine(){return this.startLineNumber===this.endLineNumber}static fromPositions(e,n=e){return new le(e.lineNumber,e.column,n.lineNumber,n.column)}static lift(e){return e?new le(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return!!e&&typeof e.startLineNumber=="number"&&typeof e.startColumn=="number"&&typeof e.endLineNumber=="number"&&typeof e.endColumn=="number"}static areIntersectingOrTouching(e,n){return!(e.endLineNumber<n.startLineNumber||e.endLineNumber===n.startLineNumber&&e.endColumn<n.startColumn||n.endLineNumber<e.startLineNumber||n.endLineNumber===e.startLineNumber&&n.endColumn<e.startColumn)}static areIntersecting(e,n){return!(e.endLineNumber<n.startLineNumber||e.endLineNumber===n.startLineNumber&&e.endColumn<=n.startColumn||n.endLineNumber<e.startLineNumber||n.endLineNumber===e.startLineNumber&&n.endColumn<=e.startColumn)}static areOnlyIntersecting(e,n){return!(e.endLineNumber<n.startLineNumber-1||e.endLineNumber===n.startLineNumber&&e.endColumn<n.startColumn-1||n.endLineNumber<e.startLineNumber-1||n.endLineNumber===e.startLineNumber&&n.endColumn<e.startColumn-1)}static compareRangesUsingStarts(e,n){if(e&&n){const s=e.startLineNumber|0,a=n.startLineNumber|0;if(s===a){const l=e.startColumn|0,o=n.startColumn|0;if(l===o){const u=e.endLineNumber|0,c=n.endLineNumber|0;if(u===c){const d=e.endColumn|0,m=n.endColumn|0;return d-m}return u-c}return l-o}return s-a}return(e?1:0)-(n?1:0)}static compareRangesUsingEnds(e,n){return e.endLineNumber===n.endLineNumber?e.endColumn===n.endColumn?e.startLineNumber===n.startLineNumber?e.startColumn-n.startColumn:e.startLineNumber-n.startLineNumber:e.endColumn-n.endColumn:e.endLineNumber-n.endLineNumber}static spansMultipleLines(e){return e.endLineNumber>e.startLineNumber}toJSON(){return this}};function Yr(t){return t<0?0:t>255?255:t|0}function Rt(t){return t<0?0:t>4294967295?4294967295:t|0}class Ei{constructor(e){const n=Yr(e);this._defaultValue=n,this._asciiMap=Ei._createAsciiMap(n),this._map=new Map}static _createAsciiMap(e){const n=new Uint8Array(256);return n.fill(e),n}set(e,n){const i=Yr(n);e>=0&&e<256?this._asciiMap[e]=i:this._map.set(e,i)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}class Mu{constructor(e,n,i){const r=new Uint8Array(e*n);for(let s=0,a=e*n;s<a;s++)r[s]=i;this._data=r,this.rows=e,this.cols=n}get(e,n){return this._data[e*this.cols+n]}set(e,n,i){this._data[e*this.cols+n]=i}}class Iu{constructor(e){let n=0,i=0;for(let s=0,a=e.length;s<a;s++){const[l,o,u]=e[s];o>n&&(n=o),l>i&&(i=l),u>i&&(i=u)}n++,i++;const r=new Mu(i,n,0);for(let s=0,a=e.length;s<a;s++){const[l,o,u]=e[s];r.set(l,o,u)}this._states=r,this._maxCharCode=n}nextState(e,n){return n<0||n>=this._maxCharCode?0:this._states.get(e,n)}}let Ri=null;function zu(){return Ri===null&&(Ri=new Iu([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),Ri}let ln=null;function Hu(){if(ln===null){ln=new Ei(0);const t=` <>'"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…|`;for(let n=0;n<t.length;n++)ln.set(t.charCodeAt(n),1);const e=".,;:";for(let n=0;n<e.length;n++)ln.set(e.charCodeAt(n),2)}return ln}class In{static _createLink(e,n,i,r,s){let a=s-1;do{const l=n.charCodeAt(a);if(e.get(l)!==2)break;a--}while(a>r);if(r>0){const l=n.charCodeAt(r-1),o=n.charCodeAt(a);(l===40&&o===41||l===91&&o===93||l===123&&o===125)&&a--}return{range:{startLineNumber:i,startColumn:r+1,endLineNumber:i,endColumn:a+2},url:n.substring(r,a+1)}}static computeLinks(e,n=zu()){const i=Hu(),r=[];for(let s=1,a=e.getLineCount();s<=a;s++){const l=e.getLineContent(s),o=l.length;let u=0,c=0,d=0,m=1,f=!1,b=!1,p=!1,x=!1;for(;u<o;){let y=!1;const _=l.charCodeAt(u);if(m===13){let T;switch(_){case 40:f=!0,T=0;break;case 41:T=f?0:1;break;case 91:p=!0,b=!0,T=0;break;case 93:p=!1,T=b?0:1;break;case 123:x=!0,T=0;break;case 125:T=x?0:1;break;case 39:case 34:case 96:d===_?T=1:d===39||d===34||d===96?T=0:T=1;break;case 42:T=d===42?1:0;break;case 32:T=p?0:1;break;default:T=i.get(_)}T===1&&(r.push(In._createLink(i,l,s,c,u)),y=!0)}else if(m===12){let T;_===91?(b=!0,T=0):T=i.get(_),T===1?y=!0:m=13}else m=n.nextState(m,_),m===0&&(y=!0);y&&(m=1,f=!1,b=!1,x=!1,c=u+1,d=_),u++}m===13&&r.push(In._createLink(i,l,s,c,o))}return r}}function Pu(t){return!t||typeof t.getLineCount!="function"||typeof t.getLineContent!="function"?[]:In.computeLinks(t)}const li=class li{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(e,n,i,r,s){if(e&&n){const a=this.doNavigateValueSet(n,s);if(a)return{range:e,value:a}}if(i&&r){const a=this.doNavigateValueSet(r,s);if(a)return{range:i,value:a}}return null}doNavigateValueSet(e,n){const i=this.numberReplace(e,n);return i!==null?i:this.textReplace(e,n)}numberReplace(e,n){const i=Math.pow(10,e.length-(e.lastIndexOf(".")+1));let r=Number(e);const s=parseFloat(e);return!isNaN(r)&&!isNaN(s)&&r===s?r===0&&!n?null:(r=Math.floor(r*i),r+=n?i:-i,String(r/i)):null}textReplace(e,n){return this.valueSetsReplace(this._defaultValueSet,e,n)}valueSetsReplace(e,n,i){let r=null;for(let s=0,a=e.length;r===null&&s<a;s++)r=this.valueSetReplace(e[s],n,i);return r}valueSetReplace(e,n,i){let r=e.indexOf(n);return r>=0?(r+=i?1:-1,r<0?r=e.length-1:r%=e.length,e[r]):null}};li.INSTANCE=new li;let Ci=li;const Zr=Object.freeze(function(t,e){const n=setTimeout(t.bind(e),0);return{dispose(){clearTimeout(n)}}});var zn;(function(t){function e(s){return s===t.None||s===t.Cancelled||s instanceof un?!0:!s||typeof s!="object"?!1:typeof s.isCancellationRequested=="boolean"&&typeof s.onCancellationRequested=="function"}t.isCancellationToken=e,t.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:sn.None}),t.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Zr});function n(s){if(s.isCancellationRequested)throw new en}t.throwIfCanceled=n;function i(s,a){if(s.some(c=>c.isCancellationRequested))return t.Cancelled;const l=[...new Set(s.filter(c=>c!==t.None))];if(l.length<2)return l[0]??t.None;const o=new Kr;a.add(St(()=>{o.token.isCancellationRequested||o.dispose()}));const u=a.add(new kt);for(const c of l)u.add(c.onCancellationRequested(()=>{u.dispose(),o.cancel()}));return o.token}t.any=i;function r(s,a){if(s.aborted)return t.Cancelled;const l=a.add(new un);return a.add(sn.once(sn.fromDOMEventEmitter(s,"abort"))(()=>l.cancel())),l}t.fromAbortSignal=r,t.toAbortSignal=(s,a)=>{if(s===t.None)return new AbortController().signal;if(s.isCancellationRequested)return AbortSignal.abort(new en);const l=new AbortController;return a.add(s.onCancellationRequested(()=>l.abort(new en))),l.signal}})(zn||(zn={}));class un{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?Zr:(this._emitter||(this._emitter=new Ne),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class Kr{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new un),this._token}cancel(){this._token?this._token instanceof un&&this._token.cancel():this._token=zn.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener?.dispose(),this._token?this._token instanceof un&&this._token.dispose():this._token=zn.None}}class Ni{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,n){this._keyCodeToStr[e]=n,this._strToKeyCode[n.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const Hn=new Ni,Di=new Ni,Mi=new Ni,Uu=new Array(230),Wu=Object.create(null),Fu=Object.create(null);(function(){const e=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN","",""],[1,1,"Hyper",0,"",0,"","",""],[1,2,"Super",0,"",0,"","",""],[1,3,"Fn",0,"",0,"","",""],[1,4,"FnLock",0,"",0,"","",""],[1,5,"Suspend",0,"",0,"","",""],[1,6,"Resume",0,"",0,"","",""],[1,7,"Turbo",0,"",0,"","",""],[1,8,"Sleep",0,"",0,"VK_SLEEP","",""],[1,9,"WakeUp",0,"",0,"","",""],[0,10,"KeyA",31,"A",65,"VK_A","",""],[0,11,"KeyB",32,"B",66,"VK_B","",""],[0,12,"KeyC",33,"C",67,"VK_C","",""],[0,13,"KeyD",34,"D",68,"VK_D","",""],[0,14,"KeyE",35,"E",69,"VK_E","",""],[0,15,"KeyF",36,"F",70,"VK_F","",""],[0,16,"KeyG",37,"G",71,"VK_G","",""],[0,17,"KeyH",38,"H",72,"VK_H","",""],[0,18,"KeyI",39,"I",73,"VK_I","",""],[0,19,"KeyJ",40,"J",74,"VK_J","",""],[0,20,"KeyK",41,"K",75,"VK_K","",""],[0,21,"KeyL",42,"L",76,"VK_L","",""],[0,22,"KeyM",43,"M",77,"VK_M","",""],[0,23,"KeyN",44,"N",78,"VK_N","",""],[0,24,"KeyO",45,"O",79,"VK_O","",""],[0,25,"KeyP",46,"P",80,"VK_P","",""],[0,26,"KeyQ",47,"Q",81,"VK_Q","",""],[0,27,"KeyR",48,"R",82,"VK_R","",""],[0,28,"KeyS",49,"S",83,"VK_S","",""],[0,29,"KeyT",50,"T",84,"VK_T","",""],[0,30,"KeyU",51,"U",85,"VK_U","",""],[0,31,"KeyV",52,"V",86,"VK_V","",""],[0,32,"KeyW",53,"W",87,"VK_W","",""],[0,33,"KeyX",54,"X",88,"VK_X","",""],[0,34,"KeyY",55,"Y",89,"VK_Y","",""],[0,35,"KeyZ",56,"Z",90,"VK_Z","",""],[0,36,"Digit1",22,"1",49,"VK_1","",""],[0,37,"Digit2",23,"2",50,"VK_2","",""],[0,38,"Digit3",24,"3",51,"VK_3","",""],[0,39,"Digit4",25,"4",52,"VK_4","",""],[0,40,"Digit5",26,"5",53,"VK_5","",""],[0,41,"Digit6",27,"6",54,"VK_6","",""],[0,42,"Digit7",28,"7",55,"VK_7","",""],[0,43,"Digit8",29,"8",56,"VK_8","",""],[0,44,"Digit9",30,"9",57,"VK_9","",""],[0,45,"Digit0",21,"0",48,"VK_0","",""],[1,46,"Enter",3,"Enter",13,"VK_RETURN","",""],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE","",""],[1,48,"Backspace",1,"Backspace",8,"VK_BACK","",""],[1,49,"Tab",2,"Tab",9,"VK_TAB","",""],[1,50,"Space",10,"Space",32,"VK_SPACE","",""],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,"",0,"","",""],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL","",""],[1,64,"F1",59,"F1",112,"VK_F1","",""],[1,65,"F2",60,"F2",113,"VK_F2","",""],[1,66,"F3",61,"F3",114,"VK_F3","",""],[1,67,"F4",62,"F4",115,"VK_F4","",""],[1,68,"F5",63,"F5",116,"VK_F5","",""],[1,69,"F6",64,"F6",117,"VK_F6","",""],[1,70,"F7",65,"F7",118,"VK_F7","",""],[1,71,"F8",66,"F8",119,"VK_F8","",""],[1,72,"F9",67,"F9",120,"VK_F9","",""],[1,73,"F10",68,"F10",121,"VK_F10","",""],[1,74,"F11",69,"F11",122,"VK_F11","",""],[1,75,"F12",70,"F12",123,"VK_F12","",""],[1,76,"PrintScreen",0,"",0,"","",""],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL","",""],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE","",""],[1,79,"Insert",19,"Insert",45,"VK_INSERT","",""],[1,80,"Home",14,"Home",36,"VK_HOME","",""],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR","",""],[1,82,"Delete",20,"Del",46,"VK_DELETE","Delete",""],[1,83,"End",13,"End",35,"VK_END","",""],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT","",""],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",""],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",""],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",""],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",""],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK","",""],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE","",""],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY","",""],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT","",""],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD","",""],[1,94,"NumpadEnter",3,"",0,"","",""],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1","",""],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2","",""],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3","",""],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4","",""],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5","",""],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6","",""],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7","",""],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8","",""],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9","",""],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0","",""],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL","",""],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102","",""],[1,107,"ContextMenu",58,"ContextMenu",93,"","",""],[1,108,"Power",0,"",0,"","",""],[1,109,"NumpadEqual",0,"",0,"","",""],[1,110,"F13",71,"F13",124,"VK_F13","",""],[1,111,"F14",72,"F14",125,"VK_F14","",""],[1,112,"F15",73,"F15",126,"VK_F15","",""],[1,113,"F16",74,"F16",127,"VK_F16","",""],[1,114,"F17",75,"F17",128,"VK_F17","",""],[1,115,"F18",76,"F18",129,"VK_F18","",""],[1,116,"F19",77,"F19",130,"VK_F19","",""],[1,117,"F20",78,"F20",131,"VK_F20","",""],[1,118,"F21",79,"F21",132,"VK_F21","",""],[1,119,"F22",80,"F22",133,"VK_F22","",""],[1,120,"F23",81,"F23",134,"VK_F23","",""],[1,121,"F24",82,"F24",135,"VK_F24","",""],[1,122,"Open",0,"",0,"","",""],[1,123,"Help",0,"",0,"","",""],[1,124,"Select",0,"",0,"","",""],[1,125,"Again",0,"",0,"","",""],[1,126,"Undo",0,"",0,"","",""],[1,127,"Cut",0,"",0,"","",""],[1,128,"Copy",0,"",0,"","",""],[1,129,"Paste",0,"",0,"","",""],[1,130,"Find",0,"",0,"","",""],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE","",""],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP","",""],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN","",""],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR","",""],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1","",""],[1,136,"KanaMode",0,"",0,"","",""],[0,137,"IntlYen",0,"",0,"","",""],[1,138,"Convert",0,"",0,"","",""],[1,139,"NonConvert",0,"",0,"","",""],[1,140,"Lang1",0,"",0,"","",""],[1,141,"Lang2",0,"",0,"","",""],[1,142,"Lang3",0,"",0,"","",""],[1,143,"Lang4",0,"",0,"","",""],[1,144,"Lang5",0,"",0,"","",""],[1,145,"Abort",0,"",0,"","",""],[1,146,"Props",0,"",0,"","",""],[1,147,"NumpadParenLeft",0,"",0,"","",""],[1,148,"NumpadParenRight",0,"",0,"","",""],[1,149,"NumpadBackspace",0,"",0,"","",""],[1,150,"NumpadMemoryStore",0,"",0,"","",""],[1,151,"NumpadMemoryRecall",0,"",0,"","",""],[1,152,"NumpadMemoryClear",0,"",0,"","",""],[1,153,"NumpadMemoryAdd",0,"",0,"","",""],[1,154,"NumpadMemorySubtract",0,"",0,"","",""],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR","",""],[1,156,"NumpadClearEntry",0,"",0,"","",""],[1,0,"",5,"Ctrl",17,"VK_CONTROL","",""],[1,0,"",4,"Shift",16,"VK_SHIFT","",""],[1,0,"",6,"Alt",18,"VK_MENU","",""],[1,0,"",57,"Meta",91,"VK_COMMAND","",""],[1,157,"ControlLeft",5,"",0,"VK_LCONTROL","",""],[1,158,"ShiftLeft",4,"",0,"VK_LSHIFT","",""],[1,159,"AltLeft",6,"",0,"VK_LMENU","",""],[1,160,"MetaLeft",57,"",0,"VK_LWIN","",""],[1,161,"ControlRight",5,"",0,"VK_RCONTROL","",""],[1,162,"ShiftRight",4,"",0,"VK_RSHIFT","",""],[1,163,"AltRight",6,"",0,"VK_RMENU","",""],[1,164,"MetaRight",57,"",0,"VK_RWIN","",""],[1,165,"BrightnessUp",0,"",0,"","",""],[1,166,"BrightnessDown",0,"",0,"","",""],[1,167,"MediaPlay",0,"",0,"","",""],[1,168,"MediaRecord",0,"",0,"","",""],[1,169,"MediaFastForward",0,"",0,"","",""],[1,170,"MediaRewind",0,"",0,"","",""],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK","",""],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK","",""],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP","",""],[1,174,"Eject",0,"",0,"","",""],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE","",""],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT","",""],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL","",""],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2","",""],[1,179,"LaunchApp1",0,"",0,"VK_MEDIA_LAUNCH_APP1","",""],[1,180,"SelectTask",0,"",0,"","",""],[1,181,"LaunchScreenSaver",0,"",0,"","",""],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH","",""],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME","",""],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK","",""],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD","",""],[1,186,"BrowserStop",0,"",0,"VK_BROWSER_STOP","",""],[1,187,"BrowserRefresh",0,"",0,"VK_BROWSER_REFRESH","",""],[1,188,"BrowserFavorites",0,"",0,"VK_BROWSER_FAVORITES","",""],[1,189,"ZoomToggle",0,"",0,"","",""],[1,190,"MailReply",0,"",0,"","",""],[1,191,"MailForward",0,"",0,"","",""],[1,192,"MailSend",0,"",0,"","",""],[1,0,"",114,"KeyInComposition",229,"","",""],[1,0,"",116,"ABNT_C2",194,"VK_ABNT_C2","",""],[1,0,"",96,"OEM_8",223,"VK_OEM_8","",""],[1,0,"",0,"",0,"VK_KANA","",""],[1,0,"",0,"",0,"VK_HANGUL","",""],[1,0,"",0,"",0,"VK_JUNJA","",""],[1,0,"",0,"",0,"VK_FINAL","",""],[1,0,"",0,"",0,"VK_HANJA","",""],[1,0,"",0,"",0,"VK_KANJI","",""],[1,0,"",0,"",0,"VK_CONVERT","",""],[1,0,"",0,"",0,"VK_NONCONVERT","",""],[1,0,"",0,"",0,"VK_ACCEPT","",""],[1,0,"",0,"",0,"VK_MODECHANGE","",""],[1,0,"",0,"",0,"VK_SELECT","",""],[1,0,"",0,"",0,"VK_PRINT","",""],[1,0,"",0,"",0,"VK_EXECUTE","",""],[1,0,"",0,"",0,"VK_SNAPSHOT","",""],[1,0,"",0,"",0,"VK_HELP","",""],[1,0,"",0,"",0,"VK_APPS","",""],[1,0,"",0,"",0,"VK_PROCESSKEY","",""],[1,0,"",0,"",0,"VK_PACKET","",""],[1,0,"",0,"",0,"VK_DBE_SBCSCHAR","",""],[1,0,"",0,"",0,"VK_DBE_DBCSCHAR","",""],[1,0,"",0,"",0,"VK_ATTN","",""],[1,0,"",0,"",0,"VK_CRSEL","",""],[1,0,"",0,"",0,"VK_EXSEL","",""],[1,0,"",0,"",0,"VK_EREOF","",""],[1,0,"",0,"",0,"VK_PLAY","",""],[1,0,"",0,"",0,"VK_ZOOM","",""],[1,0,"",0,"",0,"VK_NONAME","",""],[1,0,"",0,"",0,"VK_PA1","",""],[1,0,"",0,"",0,"VK_OEM_CLEAR","",""]],n=[],i=[];for(const r of e){const[s,a,l,o,u,c,d,m,f]=r;if(i[a]||(i[a]=!0,Wu[l]=a,Fu[l.toLowerCase()]=a),!n[o]){if(n[o]=!0,!u)throw new Error(`String representation missing for key code ${o} around scan code ${l}`);Hn.define(o,u),Di.define(o,m||u),Mi.define(o,f||m||u)}c&&(Uu[c]=o)}})();var es;(function(t){function e(l){return Hn.keyCodeToStr(l)}t.toString=e;function n(l){return Hn.strToKeyCode(l)}t.fromString=n;function i(l){return Di.keyCodeToStr(l)}t.toUserSettingsUS=i;function r(l){return Mi.keyCodeToStr(l)}t.toUserSettingsGeneral=r;function s(l){return Di.strToKeyCode(l)||Mi.strToKeyCode(l)}t.fromUserSettings=s;function a(l){if(l>=98&&l<=113)return null;switch(l){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right";case 20:return"Delete"}return Hn.keyCodeToStr(l)}t.toElectronAccelerator=a})(es||(es={}));function Bu(t,e){const n=(e&65535)<<16>>>0;return(t|n)>>>0}const qu=65,Ou=97,Vu=90,$u=122,ht=46,he=47,_e=92,Oe=58,ju=63;class ts extends Error{constructor(e,n,i){let r;typeof n=="string"&&n.indexOf("not ")===0?(r="must not be",n=n.replace(/^not /,"")):r="must be";const s=e.indexOf(".")!==-1?"property":"argument";let a=`The "${e}" ${s} ${r} of type ${n}`;a+=`. Received type ${typeof i}`,super(a),this.code="ERR_INVALID_ARG_TYPE"}}function Gu(t,e){if(t===null||typeof t!="object")throw new ts(e,"Object",t)}function ae(t,e){if(typeof t!="string")throw new ts(e,"string",t)}const Ve=iu==="win32";function X(t){return t===he||t===_e}function Ii(t){return t===he}function $e(t){return t>=qu&&t<=Vu||t>=Ou&&t<=$u}function Pn(t,e,n,i){let r="",s=0,a=-1,l=0,o=0;for(let u=0;u<=t.length;++u){if(u<t.length)o=t.charCodeAt(u);else{if(i(o))break;o=he}if(i(o)){if(!(a===u-1||l===1))if(l===2){if(r.length<2||s!==2||r.charCodeAt(r.length-1)!==ht||r.charCodeAt(r.length-2)!==ht){if(r.length>2){const c=r.lastIndexOf(n);c===-1?(r="",s=0):(r=r.slice(0,c),s=r.length-1-r.lastIndexOf(n)),a=u,l=0;continue}else if(r.length!==0){r="",s=0,a=u,l=0;continue}}e&&(r+=r.length>0?`${n}..`:"..",s=2)}else r.length>0?r+=`${n}${t.slice(a+1,u)}`:r=t.slice(a+1,u),s=u-a-1;a=u,l=0}else o===ht&&l!==-1?++l:l=-1}return r}function Xu(t){return t?`${t[0]==="."?"":"."}${t}`:""}function ns(t,e){Gu(e,"pathObject");const n=e.dir||e.root,i=e.base||`${e.name||""}${Xu(e.ext)}`;return n?n===e.root?`${n}${i}`:`${n}${t}${i}`:i}const me={resolve(...t){let e="",n="",i=!1;for(let r=t.length-1;r>=-1;r--){let s;if(r>=0){if(s=t[r],ae(s,`paths[${r}]`),s.length===0)continue}else e.length===0?s=Rn():(s=Hr[`=${e}`]||Rn(),(s===void 0||s.slice(0,2).toLowerCase()!==e.toLowerCase()&&s.charCodeAt(2)===_e)&&(s=`${e}\\`));const a=s.length;let l=0,o="",u=!1;const c=s.charCodeAt(0);if(a===1)X(c)&&(l=1,u=!0);else if(X(c))if(u=!0,X(s.charCodeAt(1))){let d=2,m=d;for(;d<a&&!X(s.charCodeAt(d));)d++;if(d<a&&d!==m){const f=s.slice(m,d);for(m=d;d<a&&X(s.charCodeAt(d));)d++;if(d<a&&d!==m){for(m=d;d<a&&!X(s.charCodeAt(d));)d++;(d===a||d!==m)&&(o=`\\\\${f}\\${s.slice(m,d)}`,l=d)}}}else l=1;else $e(c)&&s.charCodeAt(1)===Oe&&(o=s.slice(0,2),l=2,a>2&&X(s.charCodeAt(2))&&(u=!0,l=3));if(o.length>0)if(e.length>0){if(o.toLowerCase()!==e.toLowerCase())continue}else e=o;if(i){if(e.length>0)break}else if(n=`${s.slice(l)}\\${n}`,i=u,u&&e.length>0)break}return n=Pn(n,!i,"\\",X),i?`${e}\\${n}`:`${e}${n}`||"."},normalize(t){ae(t,"path");const e=t.length;if(e===0)return".";let n=0,i,r=!1;const s=t.charCodeAt(0);if(e===1)return Ii(s)?"\\":t;if(X(s))if(r=!0,X(t.charCodeAt(1))){let l=2,o=l;for(;l<e&&!X(t.charCodeAt(l));)l++;if(l<e&&l!==o){const u=t.slice(o,l);for(o=l;l<e&&X(t.charCodeAt(l));)l++;if(l<e&&l!==o){for(o=l;l<e&&!X(t.charCodeAt(l));)l++;if(l===e)return`\\\\${u}\\${t.slice(o)}\\`;l!==o&&(i=`\\\\${u}\\${t.slice(o,l)}`,n=l)}}}else n=1;else $e(s)&&t.charCodeAt(1)===Oe&&(i=t.slice(0,2),n=2,e>2&&X(t.charCodeAt(2))&&(r=!0,n=3));let a=n<e?Pn(t.slice(n),!r,"\\",X):"";if(a.length===0&&!r&&(a="."),a.length>0&&X(t.charCodeAt(e-1))&&(a+="\\"),!r&&i===void 0&&t.includes(":")){if(a.length>=2&&$e(a.charCodeAt(0))&&a.charCodeAt(1)===Oe)return`.\\${a}`;let l=t.indexOf(":");do if(l===e-1||X(t.charCodeAt(l+1)))return`.\\${a}`;while((l=t.indexOf(":",l+1))!==-1)}return i===void 0?r?`\\${a}`:a:r?`${i}\\${a}`:`${i}${a}`},isAbsolute(t){ae(t,"path");const e=t.length;if(e===0)return!1;const n=t.charCodeAt(0);return X(n)||e>2&&$e(n)&&t.charCodeAt(1)===Oe&&X(t.charCodeAt(2))},join(...t){if(t.length===0)return".";let e,n;for(let s=0;s<t.length;++s){const a=t[s];ae(a,"path"),a.length>0&&(e===void 0?e=n=a:e+=`\\${a}`)}if(e===void 0)return".";let i=!0,r=0;if(typeof n=="string"&&X(n.charCodeAt(0))){++r;const s=n.length;s>1&&X(n.charCodeAt(1))&&(++r,s>2&&(X(n.charCodeAt(2))?++r:i=!1))}if(i){for(;r<e.length&&X(e.charCodeAt(r));)r++;r>=2&&(e=`\\${e.slice(r)}`)}return me.normalize(e)},relative(t,e){if(ae(t,"from"),ae(e,"to"),t===e)return"";const n=me.resolve(t),i=me.resolve(e);if(n===i||(t=n.toLowerCase(),e=i.toLowerCase(),t===e))return"";if(n.length!==t.length||i.length!==e.length){const b=n.split("\\"),p=i.split("\\");b[b.length-1]===""&&b.pop(),p[p.length-1]===""&&p.pop();const x=b.length,y=p.length,_=x<y?x:y;let T;for(T=0;T<_&&b[T].toLowerCase()===p[T].toLowerCase();T++);return T===0?i:T===_?y>_?p.slice(T).join("\\"):x>_?"..\\".repeat(x-1-T)+"..":"":"..\\".repeat(x-T)+p.slice(T).join("\\")}let r=0;for(;r<t.length&&t.charCodeAt(r)===_e;)r++;let s=t.length;for(;s-1>r&&t.charCodeAt(s-1)===_e;)s--;const a=s-r;let l=0;for(;l<e.length&&e.charCodeAt(l)===_e;)l++;let o=e.length;for(;o-1>l&&e.charCodeAt(o-1)===_e;)o--;const u=o-l,c=a<u?a:u;let d=-1,m=0;for(;m<c;m++){const b=t.charCodeAt(r+m);if(b!==e.charCodeAt(l+m))break;b===_e&&(d=m)}if(m!==c){if(d===-1)return i}else{if(u>c){if(e.charCodeAt(l+m)===_e)return i.slice(l+m+1);if(m===2)return i.slice(l+m)}a>c&&(t.charCodeAt(r+m)===_e?d=m:m===2&&(d=3)),d===-1&&(d=0)}let f="";for(m=r+d+1;m<=s;++m)(m===s||t.charCodeAt(m)===_e)&&(f+=f.length===0?"..":"\\..");return l+=d,f.length>0?`${f}${i.slice(l,o)}`:(i.charCodeAt(l)===_e&&++l,i.slice(l,o))},toNamespacedPath(t){if(typeof t!="string"||t.length===0)return t;const e=me.resolve(t);if(e.length<=2)return t;if(e.charCodeAt(0)===_e){if(e.charCodeAt(1)===_e){const n=e.charCodeAt(2);if(n!==ju&&n!==ht)return`\\\\?\\UNC\\${e.slice(2)}`}}else if($e(e.charCodeAt(0))&&e.charCodeAt(1)===Oe&&e.charCodeAt(2)===_e)return`\\\\?\\${e}`;return e},dirname(t){ae(t,"path");const e=t.length;if(e===0)return".";let n=-1,i=0;const r=t.charCodeAt(0);if(e===1)return X(r)?t:".";if(X(r)){if(n=i=1,X(t.charCodeAt(1))){let l=2,o=l;for(;l<e&&!X(t.charCodeAt(l));)l++;if(l<e&&l!==o){for(o=l;l<e&&X(t.charCodeAt(l));)l++;if(l<e&&l!==o){for(o=l;l<e&&!X(t.charCodeAt(l));)l++;if(l===e)return t;l!==o&&(n=i=l+1)}}}}else $e(r)&&t.charCodeAt(1)===Oe&&(n=e>2&&X(t.charCodeAt(2))?3:2,i=n);let s=-1,a=!0;for(let l=e-1;l>=i;--l)if(X(t.charCodeAt(l))){if(!a){s=l;break}}else a=!1;if(s===-1){if(n===-1)return".";s=n}return t.slice(0,s)},basename(t,e){e!==void 0&&ae(e,"suffix"),ae(t,"path");let n=0,i=-1,r=!0,s;if(t.length>=2&&$e(t.charCodeAt(0))&&t.charCodeAt(1)===Oe&&(n=2),e!==void 0&&e.length>0&&e.length<=t.length){if(e===t)return"";let a=e.length-1,l=-1;for(s=t.length-1;s>=n;--s){const o=t.charCodeAt(s);if(X(o)){if(!r){n=s+1;break}}else l===-1&&(r=!1,l=s+1),a>=0&&(o===e.charCodeAt(a)?--a===-1&&(i=s):(a=-1,i=l))}return n===i?i=l:i===-1&&(i=t.length),t.slice(n,i)}for(s=t.length-1;s>=n;--s)if(X(t.charCodeAt(s))){if(!r){n=s+1;break}}else i===-1&&(r=!1,i=s+1);return i===-1?"":t.slice(n,i)},extname(t){ae(t,"path");let e=0,n=-1,i=0,r=-1,s=!0,a=0;t.length>=2&&t.charCodeAt(1)===Oe&&$e(t.charCodeAt(0))&&(e=i=2);for(let l=t.length-1;l>=e;--l){const o=t.charCodeAt(l);if(X(o)){if(!s){i=l+1;break}continue}r===-1&&(s=!1,r=l+1),o===ht?n===-1?n=l:a!==1&&(a=1):n!==-1&&(a=-1)}return n===-1||r===-1||a===0||a===1&&n===r-1&&n===i+1?"":t.slice(n,r)},format:ns.bind(null,"\\"),parse(t){ae(t,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return e;const n=t.length;let i=0,r=t.charCodeAt(0);if(n===1)return X(r)?(e.root=e.dir=t,e):(e.base=e.name=t,e);if(X(r)){if(i=1,X(t.charCodeAt(1))){let d=2,m=d;for(;d<n&&!X(t.charCodeAt(d));)d++;if(d<n&&d!==m){for(m=d;d<n&&X(t.charCodeAt(d));)d++;if(d<n&&d!==m){for(m=d;d<n&&!X(t.charCodeAt(d));)d++;d===n?i=d:d!==m&&(i=d+1)}}}}else if($e(r)&&t.charCodeAt(1)===Oe){if(n<=2)return e.root=e.dir=t,e;if(i=2,X(t.charCodeAt(2))){if(n===3)return e.root=e.dir=t,e;i=3}}i>0&&(e.root=t.slice(0,i));let s=-1,a=i,l=-1,o=!0,u=t.length-1,c=0;for(;u>=i;--u){if(r=t.charCodeAt(u),X(r)){if(!o){a=u+1;break}continue}l===-1&&(o=!1,l=u+1),r===ht?s===-1?s=u:c!==1&&(c=1):s!==-1&&(c=-1)}return l!==-1&&(s===-1||c===0||c===1&&s===l-1&&s===a+1?e.base=e.name=t.slice(a,l):(e.name=t.slice(a,s),e.base=t.slice(a,l),e.ext=t.slice(s,l))),a>0&&a!==i?e.dir=t.slice(0,a-1):e.dir=e.root,e},sep:"\\",delimiter:";",win32:null,posix:null},Ju=(()=>{if(Ve){const t=/\\/g;return()=>{const e=Rn().replace(t,"/");return e.slice(e.indexOf("/"))}}return()=>Rn()})(),ge={resolve(...t){let e="",n=!1;for(let i=t.length-1;i>=0&&!n;i--){const r=t[i];ae(r,`paths[${i}]`),r.length!==0&&(e=`${r}/${e}`,n=r.charCodeAt(0)===he)}if(!n){const i=Ju();e=`${i}/${e}`,n=i.charCodeAt(0)===he}return e=Pn(e,!n,"/",Ii),n?`/${e}`:e.length>0?e:"."},normalize(t){if(ae(t,"path"),t.length===0)return".";const e=t.charCodeAt(0)===he,n=t.charCodeAt(t.length-1)===he;return t=Pn(t,!e,"/",Ii),t.length===0?e?"/":n?"./":".":(n&&(t+="/"),e?`/${t}`:t)},isAbsolute(t){return ae(t,"path"),t.length>0&&t.charCodeAt(0)===he},join(...t){if(t.length===0)return".";const e=[];for(let n=0;n<t.length;++n){const i=t[n];ae(i,"path"),i.length>0&&e.push(i)}return e.length===0?".":ge.normalize(e.join("/"))},relative(t,e){if(ae(t,"from"),ae(e,"to"),t===e||(t=ge.resolve(t),e=ge.resolve(e),t===e))return"";const n=1,i=t.length,r=i-n,s=1,a=e.length-s,l=r<a?r:a;let o=-1,u=0;for(;u<l;u++){const d=t.charCodeAt(n+u);if(d!==e.charCodeAt(s+u))break;d===he&&(o=u)}if(u===l)if(a>l){if(e.charCodeAt(s+u)===he)return e.slice(s+u+1);if(u===0)return e.slice(s+u)}else r>l&&(t.charCodeAt(n+u)===he?o=u:u===0&&(o=0));let c="";for(u=n+o+1;u<=i;++u)(u===i||t.charCodeAt(u)===he)&&(c+=c.length===0?"..":"/..");return`${c}${e.slice(s+o)}`},toNamespacedPath(t){return t},dirname(t){if(ae(t,"path"),t.length===0)return".";const e=t.charCodeAt(0)===he;let n=-1,i=!0;for(let r=t.length-1;r>=1;--r)if(t.charCodeAt(r)===he){if(!i){n=r;break}}else i=!1;return n===-1?e?"/":".":e&&n===1?"//":t.slice(0,n)},basename(t,e){e!==void 0&&ae(e,"suffix"),ae(t,"path");let n=0,i=-1,r=!0,s;if(e!==void 0&&e.length>0&&e.length<=t.length){if(e===t)return"";let a=e.length-1,l=-1;for(s=t.length-1;s>=0;--s){const o=t.charCodeAt(s);if(o===he){if(!r){n=s+1;break}}else l===-1&&(r=!1,l=s+1),a>=0&&(o===e.charCodeAt(a)?--a===-1&&(i=s):(a=-1,i=l))}return n===i?i=l:i===-1&&(i=t.length),t.slice(n,i)}for(s=t.length-1;s>=0;--s)if(t.charCodeAt(s)===he){if(!r){n=s+1;break}}else i===-1&&(r=!1,i=s+1);return i===-1?"":t.slice(n,i)},extname(t){ae(t,"path");let e=-1,n=0,i=-1,r=!0,s=0;for(let a=t.length-1;a>=0;--a){const l=t[a];if(l==="/"){if(!r){n=a+1;break}continue}i===-1&&(r=!1,i=a+1),l==="."?e===-1?e=a:s!==1&&(s=1):e!==-1&&(s=-1)}return e===-1||i===-1||s===0||s===1&&e===i-1&&e===n+1?"":t.slice(e,i)},format:ns.bind(null,"/"),parse(t){ae(t,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return e;const n=t.charCodeAt(0)===he;let i;n?(e.root="/",i=1):i=0;let r=-1,s=0,a=-1,l=!0,o=t.length-1,u=0;for(;o>=i;--o){const c=t.charCodeAt(o);if(c===he){if(!l){s=o+1;break}continue}a===-1&&(l=!1,a=o+1),c===ht?r===-1?r=o:u!==1&&(u=1):r!==-1&&(u=-1)}if(a!==-1){const c=s===0&&n?1:s;r===-1||u===0||u===1&&r===a-1&&r===s+1?e.base=e.name=t.slice(c,a):(e.name=t.slice(c,r),e.base=t.slice(c,a),e.ext=t.slice(r,a))}return s>0?e.dir=t.slice(0,s-1):n&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};ge.win32=me.win32=me,ge.posix=me.posix=ge,Ve?me.normalize:ge.normalize,Ve?me.join:ge.join,Ve?me.resolve:ge.resolve,Ve?me.relative:ge.relative,Ve?me.dirname:ge.dirname,Ve?me.basename:ge.basename,Ve?me.extname:ge.extname,Ve?me.sep:ge.sep;const Qu=/^\w[\w\d+.-]*$/,Yu=/^\//,Zu=/^\/\//;function Ku(t,e){if(!t.scheme&&e)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${t.authority}", path: "${t.path}", query: "${t.query}", fragment: "${t.fragment}"}`);if(t.scheme&&!Qu.test(t.scheme)){const n=[...t.scheme.matchAll(/[^\w\d+.-]/gu)],i=n.length>0?` Found '${n[0][0]}' at index ${n[0].index} (${n.length} total)`:"";throw new Error(`[UriError]: Scheme contains illegal characters.${i} (len:${t.scheme.length})`)}if(t.path){if(t.authority){if(!Yu.test(t.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(Zu.test(t.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function ec(t,e){return!t&&!e?"file":t}function tc(t,e){switch(t){case"https":case"http":case"file":e?e[0]!==De&&(e=De+e):e=De;break}return e}const te="",De="/",nc=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;let zi=class ci{static isUri(e){return e instanceof ci?!0:!e||typeof e!="object"?!1:typeof e.authority=="string"&&typeof e.fragment=="string"&&typeof e.path=="string"&&typeof e.query=="string"&&typeof e.scheme=="string"&&typeof e.fsPath=="string"&&typeof e.with=="function"&&typeof e.toString=="function"}constructor(e,n,i,r,s,a=!1){typeof e=="object"?(this.scheme=e.scheme||te,this.authority=e.authority||te,this.path=e.path||te,this.query=e.query||te,this.fragment=e.fragment||te):(this.scheme=ec(e,a),this.authority=n||te,this.path=tc(this.scheme,i||te),this.query=r||te,this.fragment=s||te,Ku(this,a))}get fsPath(){return Hi(this,!1)}with(e){if(!e)return this;let{scheme:n,authority:i,path:r,query:s,fragment:a}=e;return n===void 0?n=this.scheme:n===null&&(n=te),i===void 0?i=this.authority:i===null&&(i=te),r===void 0?r=this.path:r===null&&(r=te),s===void 0?s=this.query:s===null&&(s=te),a===void 0?a=this.fragment:a===null&&(a=te),n===this.scheme&&i===this.authority&&r===this.path&&s===this.query&&a===this.fragment?this:new Ct(n,i,r,s,a)}static parse(e,n=!1){const i=nc.exec(e);return i?new Ct(i[2]||te,Un(i[4]||te),Un(i[5]||te),Un(i[7]||te),Un(i[9]||te),n):new Ct(te,te,te,te,te)}static file(e){let n=te;if(rn&&(e=e.replace(/\\/g,De)),e[0]===De&&e[1]===De){const i=e.indexOf(De,2);i===-1?(n=e.substring(2),e=De):(n=e.substring(2,i),e=e.substring(i)||De)}return new Ct("file",n,e,te,te)}static from(e,n){return new Ct(e.scheme,e.authority,e.path,e.query,e.fragment,n)}static joinPath(e,...n){if(!e.path)throw new Error(`[UriError]: cannot call joinPath on URI without path: ${e.toString()}`);let i;return rn&&e.scheme==="file"?i=ci.file(me.join(Hi(e,!0),...n)).path:i=ge.join(e.path,...n),e.with({path:i})}toString(e=!1){return Pi(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof ci)return e;{const n=new Ct(e);return n._formatted=e.external??null,n._fsPath=e._sep===is?e.fsPath??null:null,n}}else return e}};const is=rn?1:void 0;class Ct extends zi{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=Hi(this,!1)),this._fsPath}toString(e=!1){return e?Pi(this,!0):(this._formatted||(this._formatted=Pi(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=is),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 rs={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function ss(t,e,n){let i,r=-1;for(let s=0;s<t.length;s++){const a=t.charCodeAt(s);if(a>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||a===45||a===46||a===95||a===126||e&&a===47||n&&a===91||n&&a===93||n&&a===58)r!==-1&&(i+=encodeURIComponent(t.substring(r,s)),r=-1),i!==void 0&&(i+=t.charAt(s));else{i===void 0&&(i=t.substr(0,s));const l=rs[a];l!==void 0?(r!==-1&&(i+=encodeURIComponent(t.substring(r,s)),r=-1),i+=l):r===-1&&(r=s)}}return r!==-1&&(i+=encodeURIComponent(t.substring(r))),i!==void 0?i:t}function ic(t){let e=t.indexOf("?");const n=t.indexOf("#");if((e===-1||n!==-1&&n<e)&&(e=n),e===-1)return t;let i=t.substring(0,e),r=e;for(;e<t.length;e++){const s=t.charCodeAt(e);(s===35||s===63)&&(r<e&&(i+=t.substring(r,e)),i+=rs[s],r=e+1)}return r<t.length&&(i+=t.substring(r)),i}function Hi(t,e){let n;return t.authority&&t.path.length>1&&t.scheme==="file"?n=`//${t.authority}${t.path}`:t.path.charCodeAt(0)===47&&(t.path.charCodeAt(1)>=65&&t.path.charCodeAt(1)<=90||t.path.charCodeAt(1)>=97&&t.path.charCodeAt(1)<=122)&&t.path.charCodeAt(2)===58?e?n=t.path.substr(1):n=t.path[1].toLowerCase()+t.path.substr(2):n=t.path,rn&&(n=n.replace(/\//g,"\\")),n}function Pi(t,e){const n=e?ic:ss;let i="",{scheme:r,authority:s,path:a,query:l,fragment:o}=t;if(r&&(i+=r,i+=":"),(s||r==="file")&&(i+=De,i+=De),s){let u=s.indexOf("@");if(u!==-1){const c=s.substr(0,u);s=s.substr(u+1),u=c.indexOf(":"),u===-1?i+=n(c,!1,!1):(i+=n(c.substr(0,u),!1,!1),i+=":",i+=n(c.substr(u+1),!1,!1)),i+="@"}s=s.toLowerCase(),u=s.lastIndexOf(":"),u===-1?i+=n(s,!1,!0):(i+=n(s.substr(0,u),!1,!0),i+=s.substr(u))}if(a){const u=r.toLowerCase();if(a.length>=3&&a.charCodeAt(0)===47&&a.charCodeAt(2)===58){const c=a.charCodeAt(1);c>=65&&c<=90&&u!=="http"&&u!=="https"&&(a=`/${String.fromCharCode(c+32)}:${a.substr(3)}`)}else if(a.length>=2&&a.charCodeAt(1)===58){const c=a.charCodeAt(0);c>=65&&c<=90&&u!=="http"&&u!=="https"&&(a=`${String.fromCharCode(c+32)}:${a.substr(2)}`)}i+=n(a,!0,!1)}return l&&(i+="?",i+=n(l,!1,!1)),o&&(i+="#",i+=e?o:ss(o,!1,!1)),i}function as(t){try{return decodeURIComponent(t)}catch{return t.length>3?t.substr(0,3)+as(t.substr(3)):t}}const os=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function Un(t){return t.match(os)?t.replace(os,e=>as(e)):t}class Se extends V{constructor(e,n,i,r){super(e,n,i,r),this.selectionStartLineNumber=e,this.selectionStartColumn=n,this.positionLineNumber=i,this.positionColumn=r}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return Se.selectionsEqual(this,e)}static selectionsEqual(e,n){return e.selectionStartLineNumber===n.selectionStartLineNumber&&e.selectionStartColumn===n.selectionStartColumn&&e.positionLineNumber===n.positionLineNumber&&e.positionColumn===n.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,n){return this.getDirection()===0?new Se(this.startLineNumber,this.startColumn,e,n):new Se(e,n,this.startLineNumber,this.startColumn)}getPosition(){return new Y(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new Y(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,n){return this.getDirection()===0?new Se(e,n,this.endLineNumber,this.endColumn):new Se(this.endLineNumber,this.endColumn,e,n)}static fromPositions(e,n=e){return new Se(e.lineNumber,e.column,n.lineNumber,n.column)}static fromRange(e,n){return n===0?new Se(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new Se(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new Se(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,n){if(e&&!n||!e&&n)return!1;if(!e&&!n)return!0;if(e.length!==n.length)return!1;for(let i=0,r=e.length;i<r;i++)if(!this.selectionsEqual(e[i],n[i]))return!1;return!0}static isISelection(e){return!!e&&typeof e.selectionStartLineNumber=="number"&&typeof e.selectionStartColumn=="number"&&typeof e.positionLineNumber=="number"&&typeof e.positionColumn=="number"}static createWithDirection(e,n,i,r,s){return s===0?new Se(e,n,i,r):new Se(i,r,e,n)}}const ls=Object.create(null);function h(t,e){if(Vl(e)){const n=ls[e];if(n===void 0)throw new Error(`${t} references an unknown codicon: ${e}`);e=n}return ls[t]=e,{id:t}}const rc={add:h("add",6e4),plus:h("plus",6e4),gistNew:h("gist-new",6e4),repoCreate:h("repo-create",6e4),lightbulb:h("lightbulb",60001),lightBulb:h("light-bulb",60001),repo:h("repo",60002),repoDelete:h("repo-delete",60002),gistFork:h("gist-fork",60003),repoForked:h("repo-forked",60003),gitPullRequest:h("git-pull-request",60004),gitPullRequestAbandoned:h("git-pull-request-abandoned",60004),recordKeys:h("record-keys",60005),keyboard:h("keyboard",60005),tag:h("tag",60006),gitPullRequestLabel:h("git-pull-request-label",60006),tagAdd:h("tag-add",60006),tagRemove:h("tag-remove",60006),person:h("person",60007),personFollow:h("person-follow",60007),personOutline:h("person-outline",60007),personFilled:h("person-filled",60007),sourceControl:h("source-control",60008),mirror:h("mirror",60009),mirrorPublic:h("mirror-public",60009),star:h("star",60010),starAdd:h("star-add",60010),starDelete:h("star-delete",60010),starEmpty:h("star-empty",60010),comment:h("comment",60011),commentAdd:h("comment-add",60011),alert:h("alert",60012),warning:h("warning",60012),search:h("search",60013),searchSave:h("search-save",60013),logOut:h("log-out",60014),signOut:h("sign-out",60014),logIn:h("log-in",60015),signIn:h("sign-in",60015),eye:h("eye",60016),eyeUnwatch:h("eye-unwatch",60016),eyeWatch:h("eye-watch",60016),circleFilled:h("circle-filled",60017),primitiveDot:h("primitive-dot",60017),closeDirty:h("close-dirty",60017),debugBreakpoint:h("debug-breakpoint",60017),debugBreakpointDisabled:h("debug-breakpoint-disabled",60017),debugHint:h("debug-hint",60017),terminalDecorationSuccess:h("terminal-decoration-success",60017),primitiveSquare:h("primitive-square",60018),edit:h("edit",60019),pencil:h("pencil",60019),info:h("info",60020),issueOpened:h("issue-opened",60020),gistPrivate:h("gist-private",60021),gitForkPrivate:h("git-fork-private",60021),lock:h("lock",60021),mirrorPrivate:h("mirror-private",60021),close:h("close",60022),removeClose:h("remove-close",60022),x:h("x",60022),repoSync:h("repo-sync",60023),sync:h("sync",60023),clone:h("clone",60024),desktopDownload:h("desktop-download",60024),beaker:h("beaker",60025),microscope:h("microscope",60025),vm:h("vm",60026),deviceDesktop:h("device-desktop",60026),file:h("file",60027),more:h("more",60028),ellipsis:h("ellipsis",60028),kebabHorizontal:h("kebab-horizontal",60028),mailReply:h("mail-reply",60029),reply:h("reply",60029),organization:h("organization",60030),organizationFilled:h("organization-filled",60030),organizationOutline:h("organization-outline",60030),newFile:h("new-file",60031),fileAdd:h("file-add",60031),newFolder:h("new-folder",60032),fileDirectoryCreate:h("file-directory-create",60032),trash:h("trash",60033),trashcan:h("trashcan",60033),history:h("history",60034),clock:h("clock",60034),folder:h("folder",60035),fileDirectory:h("file-directory",60035),symbolFolder:h("symbol-folder",60035),logoGithub:h("logo-github",60036),markGithub:h("mark-github",60036),github:h("github",60036),terminal:h("terminal",60037),console:h("console",60037),repl:h("repl",60037),zap:h("zap",60038),symbolEvent:h("symbol-event",60038),error:h("error",60039),stop:h("stop",60039),variable:h("variable",60040),symbolVariable:h("symbol-variable",60040),array:h("array",60042),symbolArray:h("symbol-array",60042),symbolModule:h("symbol-module",60043),symbolPackage:h("symbol-package",60043),symbolNamespace:h("symbol-namespace",60043),symbolObject:h("symbol-object",60043),symbolMethod:h("symbol-method",60044),symbolFunction:h("symbol-function",60044),symbolConstructor:h("symbol-constructor",60044),symbolBoolean:h("symbol-boolean",60047),symbolNull:h("symbol-null",60047),symbolNumeric:h("symbol-numeric",60048),symbolNumber:h("symbol-number",60048),symbolStructure:h("symbol-structure",60049),symbolStruct:h("symbol-struct",60049),symbolParameter:h("symbol-parameter",60050),symbolTypeParameter:h("symbol-type-parameter",60050),symbolKey:h("symbol-key",60051),symbolText:h("symbol-text",60051),symbolReference:h("symbol-reference",60052),goToFile:h("go-to-file",60052),symbolEnum:h("symbol-enum",60053),symbolValue:h("symbol-value",60053),symbolRuler:h("symbol-ruler",60054),symbolUnit:h("symbol-unit",60054),activateBreakpoints:h("activate-breakpoints",60055),archive:h("archive",60056),arrowBoth:h("arrow-both",60057),arrowDown:h("arrow-down",60058),arrowLeft:h("arrow-left",60059),arrowRight:h("arrow-right",60060),arrowSmallDown:h("arrow-small-down",60061),arrowSmallLeft:h("arrow-small-left",60062),arrowSmallRight:h("arrow-small-right",60063),arrowSmallUp:h("arrow-small-up",60064),arrowUp:h("arrow-up",60065),bell:h("bell",60066),bold:h("bold",60067),book:h("book",60068),bookmark:h("bookmark",60069),debugBreakpointConditionalUnverified:h("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:h("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:h("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:h("debug-breakpoint-data-unverified",60072),debugBreakpointData:h("debug-breakpoint-data",60073),debugBreakpointDataDisabled:h("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:h("debug-breakpoint-log-unverified",60074),debugBreakpointLog:h("debug-breakpoint-log",60075),debugBreakpointLogDisabled:h("debug-breakpoint-log-disabled",60075),briefcase:h("briefcase",60076),broadcast:h("broadcast",60077),browser:h("browser",60078),bug:h("bug",60079),calendar:h("calendar",60080),caseSensitive:h("case-sensitive",60081),check:h("check",60082),checklist:h("checklist",60083),chevronDown:h("chevron-down",60084),chevronLeft:h("chevron-left",60085),chevronRight:h("chevron-right",60086),chevronUp:h("chevron-up",60087),chromeClose:h("chrome-close",60088),chromeMaximize:h("chrome-maximize",60089),chromeMinimize:h("chrome-minimize",60090),chromeRestore:h("chrome-restore",60091),circleOutline:h("circle-outline",60092),circle:h("circle",60092),debugBreakpointUnverified:h("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:h("terminal-decoration-incomplete",60092),circleSlash:h("circle-slash",60093),circuitBoard:h("circuit-board",60094),clearAll:h("clear-all",60095),clippy:h("clippy",60096),closeAll:h("close-all",60097),cloudDownload:h("cloud-download",60098),cloudUpload:h("cloud-upload",60099),code:h("code",60100),collapseAll:h("collapse-all",60101),colorMode:h("color-mode",60102),commentDiscussion:h("comment-discussion",60103),creditCard:h("credit-card",60105),dash:h("dash",60108),dashboard:h("dashboard",60109),database:h("database",60110),debugContinue:h("debug-continue",60111),debugDisconnect:h("debug-disconnect",60112),debugPause:h("debug-pause",60113),debugRestart:h("debug-restart",60114),debugStart:h("debug-start",60115),debugStepInto:h("debug-step-into",60116),debugStepOut:h("debug-step-out",60117),debugStepOver:h("debug-step-over",60118),debugStop:h("debug-stop",60119),debug:h("debug",60120),deviceCameraVideo:h("device-camera-video",60121),deviceCamera:h("device-camera",60122),deviceMobile:h("device-mobile",60123),diffAdded:h("diff-added",60124),diffIgnored:h("diff-ignored",60125),diffModified:h("diff-modified",60126),diffRemoved:h("diff-removed",60127),diffRenamed:h("diff-renamed",60128),diff:h("diff",60129),diffSidebyside:h("diff-sidebyside",60129),discard:h("discard",60130),editorLayout:h("editor-layout",60131),emptyWindow:h("empty-window",60132),exclude:h("exclude",60133),extensions:h("extensions",60134),eyeClosed:h("eye-closed",60135),fileBinary:h("file-binary",60136),fileCode:h("file-code",60137),fileMedia:h("file-media",60138),filePdf:h("file-pdf",60139),fileSubmodule:h("file-submodule",60140),fileSymlinkDirectory:h("file-symlink-directory",60141),fileSymlinkFile:h("file-symlink-file",60142),fileZip:h("file-zip",60143),files:h("files",60144),filter:h("filter",60145),flame:h("flame",60146),foldDown:h("fold-down",60147),foldUp:h("fold-up",60148),fold:h("fold",60149),folderActive:h("folder-active",60150),folderOpened:h("folder-opened",60151),gear:h("gear",60152),gift:h("gift",60153),gistSecret:h("gist-secret",60154),gist:h("gist",60155),gitCommit:h("git-commit",60156),gitCompare:h("git-compare",60157),compareChanges:h("compare-changes",60157),gitMerge:h("git-merge",60158),githubAction:h("github-action",60159),githubAlt:h("github-alt",60160),globe:h("globe",60161),grabber:h("grabber",60162),graph:h("graph",60163),gripper:h("gripper",60164),heart:h("heart",60165),home:h("home",60166),horizontalRule:h("horizontal-rule",60167),hubot:h("hubot",60168),inbox:h("inbox",60169),issueReopened:h("issue-reopened",60171),issues:h("issues",60172),italic:h("italic",60173),jersey:h("jersey",60174),json:h("json",60175),bracket:h("bracket",60175),kebabVertical:h("kebab-vertical",60176),key:h("key",60177),law:h("law",60178),lightbulbAutofix:h("lightbulb-autofix",60179),linkExternal:h("link-external",60180),link:h("link",60181),listOrdered:h("list-ordered",60182),listUnordered:h("list-unordered",60183),liveShare:h("live-share",60184),loading:h("loading",60185),location:h("location",60186),mailRead:h("mail-read",60187),mail:h("mail",60188),markdown:h("markdown",60189),megaphone:h("megaphone",60190),mention:h("mention",60191),milestone:h("milestone",60192),gitPullRequestMilestone:h("git-pull-request-milestone",60192),mortarBoard:h("mortar-board",60193),move:h("move",60194),multipleWindows:h("multiple-windows",60195),mute:h("mute",60196),noNewline:h("no-newline",60197),note:h("note",60198),octoface:h("octoface",60199),openPreview:h("open-preview",60200),package:h("package",60201),paintcan:h("paintcan",60202),pin:h("pin",60203),play:h("play",60204),run:h("run",60204),plug:h("plug",60205),preserveCase:h("preserve-case",60206),preview:h("preview",60207),project:h("project",60208),pulse:h("pulse",60209),question:h("question",60210),quote:h("quote",60211),radioTower:h("radio-tower",60212),reactions:h("reactions",60213),references:h("references",60214),refresh:h("refresh",60215),regex:h("regex",60216),remoteExplorer:h("remote-explorer",60217),remote:h("remote",60218),remove:h("remove",60219),replaceAll:h("replace-all",60220),replace:h("replace",60221),repoClone:h("repo-clone",60222),repoForcePush:h("repo-force-push",60223),repoPull:h("repo-pull",60224),repoPush:h("repo-push",60225),report:h("report",60226),requestChanges:h("request-changes",60227),rocket:h("rocket",60228),rootFolderOpened:h("root-folder-opened",60229),rootFolder:h("root-folder",60230),rss:h("rss",60231),ruby:h("ruby",60232),saveAll:h("save-all",60233),saveAs:h("save-as",60234),save:h("save",60235),screenFull:h("screen-full",60236),screenNormal:h("screen-normal",60237),searchStop:h("search-stop",60238),server:h("server",60240),settingsGear:h("settings-gear",60241),settings:h("settings",60242),shield:h("shield",60243),smiley:h("smiley",60244),sortPrecedence:h("sort-precedence",60245),splitHorizontal:h("split-horizontal",60246),splitVertical:h("split-vertical",60247),squirrel:h("squirrel",60248),starFull:h("star-full",60249),starHalf:h("star-half",60250),symbolClass:h("symbol-class",60251),symbolColor:h("symbol-color",60252),symbolConstant:h("symbol-constant",60253),symbolEnumMember:h("symbol-enum-member",60254),symbolField:h("symbol-field",60255),symbolFile:h("symbol-file",60256),symbolInterface:h("symbol-interface",60257),symbolKeyword:h("symbol-keyword",60258),symbolMisc:h("symbol-misc",60259),symbolOperator:h("symbol-operator",60260),symbolProperty:h("symbol-property",60261),wrench:h("wrench",60261),wrenchSubaction:h("wrench-subaction",60261),symbolSnippet:h("symbol-snippet",60262),tasklist:h("tasklist",60263),telescope:h("telescope",60264),textSize:h("text-size",60265),threeBars:h("three-bars",60266),thumbsdown:h("thumbsdown",60267),thumbsup:h("thumbsup",60268),tools:h("tools",60269),triangleDown:h("triangle-down",60270),triangleLeft:h("triangle-left",60271),triangleRight:h("triangle-right",60272),triangleUp:h("triangle-up",60273),twitter:h("twitter",60274),unfold:h("unfold",60275),unlock:h("unlock",60276),unmute:h("unmute",60277),unverified:h("unverified",60278),verified:h("verified",60279),versions:h("versions",60280),vmActive:h("vm-active",60281),vmOutline:h("vm-outline",60282),vmRunning:h("vm-running",60283),watch:h("watch",60284),whitespace:h("whitespace",60285),wholeWord:h("whole-word",60286),window:h("window",60287),wordWrap:h("word-wrap",60288),zoomIn:h("zoom-in",60289),zoomOut:h("zoom-out",60290),listFilter:h("list-filter",60291),listFlat:h("list-flat",60292),listSelection:h("list-selection",60293),selection:h("selection",60293),listTree:h("list-tree",60294),debugBreakpointFunctionUnverified:h("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:h("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:h("debug-breakpoint-function-disabled",60296),debugStackframeActive:h("debug-stackframe-active",60297),circleSmallFilled:h("circle-small-filled",60298),debugStackframeDot:h("debug-stackframe-dot",60298),terminalDecorationMark:h("terminal-decoration-mark",60298),debugStackframe:h("debug-stackframe",60299),debugStackframeFocused:h("debug-stackframe-focused",60299),debugBreakpointUnsupported:h("debug-breakpoint-unsupported",60300),symbolString:h("symbol-string",60301),debugReverseContinue:h("debug-reverse-continue",60302),debugStepBack:h("debug-step-back",60303),debugRestartFrame:h("debug-restart-frame",60304),debugAlt:h("debug-alt",60305),callIncoming:h("call-incoming",60306),callOutgoing:h("call-outgoing",60307),menu:h("menu",60308),expandAll:h("expand-all",60309),feedback:h("feedback",60310),gitPullRequestReviewer:h("git-pull-request-reviewer",60310),groupByRefType:h("group-by-ref-type",60311),ungroupByRefType:h("ungroup-by-ref-type",60312),account:h("account",60313),gitPullRequestAssignee:h("git-pull-request-assignee",60313),bellDot:h("bell-dot",60314),debugConsole:h("debug-console",60315),library:h("library",60316),output:h("output",60317),runAll:h("run-all",60318),syncIgnored:h("sync-ignored",60319),pinned:h("pinned",60320),githubInverted:h("github-inverted",60321),serverProcess:h("server-process",60322),serverEnvironment:h("server-environment",60323),pass:h("pass",60324),issueClosed:h("issue-closed",60324),stopCircle:h("stop-circle",60325),playCircle:h("play-circle",60326),record:h("record",60327),debugAltSmall:h("debug-alt-small",60328),vmConnect:h("vm-connect",60329),cloud:h("cloud",60330),merge:h("merge",60331),export:h("export",60332),graphLeft:h("graph-left",60333),magnet:h("magnet",60334),notebook:h("notebook",60335),redo:h("redo",60336),checkAll:h("check-all",60337),pinnedDirty:h("pinned-dirty",60338),passFilled:h("pass-filled",60339),circleLargeFilled:h("circle-large-filled",60340),circleLarge:h("circle-large",60341),circleLargeOutline:h("circle-large-outline",60341),combine:h("combine",60342),gather:h("gather",60342),table:h("table",60343),variableGroup:h("variable-group",60344),typeHierarchy:h("type-hierarchy",60345),typeHierarchySub:h("type-hierarchy-sub",60346),typeHierarchySuper:h("type-hierarchy-super",60347),gitPullRequestCreate:h("git-pull-request-create",60348),runAbove:h("run-above",60349),runBelow:h("run-below",60350),notebookTemplate:h("notebook-template",60351),debugRerun:h("debug-rerun",60352),workspaceTrusted:h("workspace-trusted",60353),workspaceUntrusted:h("workspace-untrusted",60354),workspaceUnknown:h("workspace-unknown",60355),terminalCmd:h("terminal-cmd",60356),terminalDebian:h("terminal-debian",60357),terminalLinux:h("terminal-linux",60358),terminalPowershell:h("terminal-powershell",60359),terminalTmux:h("terminal-tmux",60360),terminalUbuntu:h("terminal-ubuntu",60361),terminalBash:h("terminal-bash",60362),arrowSwap:h("arrow-swap",60363),copy:h("copy",60364),personAdd:h("person-add",60365),filterFilled:h("filter-filled",60366),wand:h("wand",60367),debugLineByLine:h("debug-line-by-line",60368),inspect:h("inspect",60369),layers:h("layers",60370),layersDot:h("layers-dot",60371),layersActive:h("layers-active",60372),compass:h("compass",60373),compassDot:h("compass-dot",60374),compassActive:h("compass-active",60375),azure:h("azure",60376),issueDraft:h("issue-draft",60377),gitPullRequestClosed:h("git-pull-request-closed",60378),gitPullRequestDraft:h("git-pull-request-draft",60379),debugAll:h("debug-all",60380),debugCoverage:h("debug-coverage",60381),runErrors:h("run-errors",60382),folderLibrary:h("folder-library",60383),debugContinueSmall:h("debug-continue-small",60384),beakerStop:h("beaker-stop",60385),graphLine:h("graph-line",60386),graphScatter:h("graph-scatter",60387),pieChart:h("pie-chart",60388),bracketDot:h("bracket-dot",60389),bracketError:h("bracket-error",60390),lockSmall:h("lock-small",60391),azureDevops:h("azure-devops",60392),verifiedFilled:h("verified-filled",60393),newline:h("newline",60394),layout:h("layout",60395),layoutActivitybarLeft:h("layout-activitybar-left",60396),layoutActivitybarRight:h("layout-activitybar-right",60397),layoutPanelLeft:h("layout-panel-left",60398),layoutPanelCenter:h("layout-panel-center",60399),layoutPanelJustify:h("layout-panel-justify",60400),layoutPanelRight:h("layout-panel-right",60401),layoutPanel:h("layout-panel",60402),layoutSidebarLeft:h("layout-sidebar-left",60403),layoutSidebarRight:h("layout-sidebar-right",60404),layoutStatusbar:h("layout-statusbar",60405),layoutMenubar:h("layout-menubar",60406),layoutCentered:h("layout-centered",60407),target:h("target",60408),indent:h("indent",60409),recordSmall:h("record-small",60410),errorSmall:h("error-small",60411),terminalDecorationError:h("terminal-decoration-error",60411),arrowCircleDown:h("arrow-circle-down",60412),arrowCircleLeft:h("arrow-circle-left",60413),arrowCircleRight:h("arrow-circle-right",60414),arrowCircleUp:h("arrow-circle-up",60415),layoutSidebarRightOff:h("layout-sidebar-right-off",60416),layoutPanelOff:h("layout-panel-off",60417),layoutSidebarLeftOff:h("layout-sidebar-left-off",60418),blank:h("blank",60419),heartFilled:h("heart-filled",60420),map:h("map",60421),mapHorizontal:h("map-horizontal",60421),foldHorizontal:h("fold-horizontal",60421),mapFilled:h("map-filled",60422),mapHorizontalFilled:h("map-horizontal-filled",60422),foldHorizontalFilled:h("fold-horizontal-filled",60422),circleSmall:h("circle-small",60423),bellSlash:h("bell-slash",60424),bellSlashDot:h("bell-slash-dot",60425),commentUnresolved:h("comment-unresolved",60426),gitPullRequestGoToChanges:h("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:h("git-pull-request-new-changes",60428),searchFuzzy:h("search-fuzzy",60429),commentDraft:h("comment-draft",60430),send:h("send",60431),sparkle:h("sparkle",60432),insert:h("insert",60433),mic:h("mic",60434),thumbsdownFilled:h("thumbsdown-filled",60435),thumbsupFilled:h("thumbsup-filled",60436),coffee:h("coffee",60437),snake:h("snake",60438),game:h("game",60439),vr:h("vr",60440),chip:h("chip",60441),piano:h("piano",60442),music:h("music",60443),micFilled:h("mic-filled",60444),repoFetch:h("repo-fetch",60445),copilot:h("copilot",60446),lightbulbSparkle:h("lightbulb-sparkle",60447),robot:h("robot",60448),sparkleFilled:h("sparkle-filled",60449),diffSingle:h("diff-single",60450),diffMultiple:h("diff-multiple",60451),surroundWith:h("surround-with",60452),share:h("share",60453),gitStash:h("git-stash",60454),gitStashApply:h("git-stash-apply",60455),gitStashPop:h("git-stash-pop",60456),vscode:h("vscode",60457),vscodeInsiders:h("vscode-insiders",60458),codeOss:h("code-oss",60459),runCoverage:h("run-coverage",60460),runAllCoverage:h("run-all-coverage",60461),coverage:h("coverage",60462),githubProject:h("github-project",60463),mapVertical:h("map-vertical",60464),foldVertical:h("fold-vertical",60464),mapVerticalFilled:h("map-vertical-filled",60465),foldVerticalFilled:h("fold-vertical-filled",60465),goToSearch:h("go-to-search",60466),percentage:h("percentage",60467),sortPercentage:h("sort-percentage",60467),attach:h("attach",60468),goToEditingSession:h("go-to-editing-session",60469),editSession:h("edit-session",60470),codeReview:h("code-review",60471),copilotWarning:h("copilot-warning",60472),python:h("python",60473),copilotLarge:h("copilot-large",60474),copilotWarningLarge:h("copilot-warning-large",60475),keyboardTab:h("keyboard-tab",60476),copilotBlocked:h("copilot-blocked",60477),copilotNotConnected:h("copilot-not-connected",60478),flag:h("flag",60479),lightbulbEmpty:h("lightbulb-empty",60480),symbolMethodArrow:h("symbol-method-arrow",60481),copilotUnavailable:h("copilot-unavailable",60482),repoPinned:h("repo-pinned",60483),keyboardTabAbove:h("keyboard-tab-above",60484),keyboardTabBelow:h("keyboard-tab-below",60485),gitPullRequestDone:h("git-pull-request-done",60486),mcp:h("mcp",60487),extensionsLarge:h("extensions-large",60488),layoutPanelDock:h("layout-panel-dock",60489),layoutSidebarLeftDock:h("layout-sidebar-left-dock",60490),layoutSidebarRightDock:h("layout-sidebar-right-dock",60491),copilotInProgress:h("copilot-in-progress",60492),copilotError:h("copilot-error",60493),copilotSuccess:h("copilot-success",60494),chatSparkle:h("chat-sparkle",60495),searchSparkle:h("search-sparkle",60496),editSparkle:h("edit-sparkle",60497),copilotSnooze:h("copilot-snooze",60498),sendToRemoteAgent:h("send-to-remote-agent",60499),commentDiscussionSparkle:h("comment-discussion-sparkle",60500),chatSparkleWarning:h("chat-sparkle-warning",60501),chatSparkleError:h("chat-sparkle-error",60502),collection:h("collection",60503),newCollection:h("new-collection",60504),thinking:h("thinking",60505),build:h("build",60506),commentDiscussionQuote:h("comment-discussion-quote",60507),cursor:h("cursor",60508),eraser:h("eraser",60509),fileText:h("file-text",60510),quotes:h("quotes",60512),rename:h("rename",60513),runWithDeps:h("run-with-deps",60514),debugConnected:h("debug-connected",60515),strikethrough:h("strikethrough",60516),openInProduct:h("open-in-product",60517),indexZero:h("index-zero",60518),agent:h("agent",60519),editCode:h("edit-code",60520),repoSelected:h("repo-selected",60521),skip:h("skip",60522),mergeInto:h("merge-into",60523),gitBranchChanges:h("git-branch-changes",60524),gitBranchStagedChanges:h("git-branch-staged-changes",60525),gitBranchConflicts:h("git-branch-conflicts",60526),gitBranch:h("git-branch",60527),gitBranchCreate:h("git-branch-create",60527),gitBranchDelete:h("git-branch-delete",60527),searchLarge:h("search-large",60528),terminalGitBash:h("terminal-git-bash",60529),windowActive:h("window-active",60530),forward:h("forward",60531),download:h("download",60532),clockface:h("clockface",60533),unarchive:h("unarchive",60534),sessionInProgress:h("session-in-progress",60535),collectionSmall:h("collection-small",60536),vmSmall:h("vm-small",60537),cloudSmall:h("cloud-small",60538),addSmall:h("add-small",60539),removeSmall:h("remove-small",60540),worktreeSmall:h("worktree-small",60541),worktree:h("worktree",60542),screenCut:h("screen-cut",60543),ask:h("ask",60544),openai:h("openai",60545),claude:h("claude",60546),openInWindow:h("open-in-window",60547),newSession:h("new-session",60548),terminalSecure:h("terminal-secure",60549),chatImport:h("chat-import",60550),chatExport:h("chat-export",60551),shareWindow:h("share-window",60552),circleSlashCompact:h("circle-slash-compact",60553),copilotCompact:h("copilot-compact",60554),folderOpenedCompact:h("folder-opened-compact",60555),folderCompact:h("folder-compact",60556),gearCompact:h("gear-compact",60557),gitBranchCompact:h("git-branch-compact",60558),libraryCompact:h("library-compact",60559),recordKeysCompact:h("record-keys-compact",60560),remoteCompact:h("remote-compact",60561),repoForkedCompact:h("repo-forked-compact",60562),repoCompact:h("repo-compact",60563),shieldCompact:h("shield-compact",60564),sparkleCompact:h("sparkle-compact",60565),symbolColorCompact:h("symbol-color-compact",60566),windowCompact:h("window-compact",60567),errorCompact:h("error-compact",60568),warningCompact:h("warning-compact",60569),passCompact:h("pass-compact",60570),important:h("important",60571),importantCompact:h("important-compact",60572),rocketCompact:h("rocket-compact",60573),unpin:h("unpin",60574),addCompact:h("add-compact",60575),attachCompact:h("attach-compact",60576),beakerCompact:h("beaker-compact",60577),checkCompact:h("check-compact",60578),checklistCompact:h("checklist-compact",60579),chevronDownCompact:h("chevron-down-compact",60580),chevronLeftCompact:h("chevron-left-compact",60581),chevronRightCompact:h("chevron-right-compact",60582),chevronUpCompact:h("chevron-up-compact",60583),circleFilledCompact:h("circle-filled-compact",60584),circleSmallFilledCompact:h("circle-small-filled-compact",60585),closeCompact:h("close-compact",60586),collapseAllCompact:h("collapse-all-compact",60587),commentCompact:h("comment-compact",60588),commentUnresolvedCompact:h("comment-unresolved-compact",60589),debugConnectedCompact:h("debug-connected-compact",60590),debugDisconnectCompact:h("debug-disconnect-compact",60591),editCompact:h("edit-compact",60592),fileMediaCompact:h("file-media-compact",60593),gitFetch:h("git-fetch",60594),lightbulbCompact:h("lightbulb-compact",60595),loadingCompact:h("loading-compact",60596),passFilledCompact:h("pass-filled-compact",60597),projectCompact:h("project-compact",60598),refreshCompact:h("refresh-compact",60599),searchCompact:h("search-compact",60600),sessionInProgressCompact:h("session-in-progress-compact",60601),syncCompact:h("sync-compact",60602),terminalCompact:h("terminal-compact",60603),vmPending:h("vm-pending",60604),worktreeCompact:h("worktree-compact",60605),developerTools:h("developer-tools",60606),cloudCompact:h("cloud-compact",60607),agentCompact:h("agent-compact",60608),askCompact:h("ask-compact",60609),settingsCompact:h("settings-compact",60610),vmCompact:h("vm-compact",60611),runCompact:h("run-compact",60612),gitPullRequestComment:h("git-pull-request-comment",60613),gitPullRequestError:h("git-pull-request-error",60614),rightPanelHide:h("right-panel-hide",60615),rightPanelShow:h("right-panel-show",60616),vscodeInsidersOutline:h("vscode-insiders-outline",60617),vscodeOutline:h("vscode-outline",60618),voiceMode:h("voice-mode",60619),voiceModeCompact:h("voice-mode-compact",60620),micDownload:h("mic-download",60621),micDownloadCompact:h("mic-download-compact",60622),voiceModeDownload:h("voice-mode-download",60623),voiceModeDownloadCompact:h("voice-mode-download-compact",60624),googleGemini:h("google-gemini",60625),kimi:h("kimi",60626),microsoft:h("microsoft",60627),fish1Happy:h("fish1-happy",60628),fish1Neutral:h("fish1-neutral",60629),fish1Sad:h("fish1-sad",60630),fish1VerySad:h("fish1-very-sad",60631),fish2Happy:h("fish2-happy",60632),fish2Neutral:h("fish2-neutral",60633),fish2Sad:h("fish2-sad",60634),fish2VerySad:h("fish2-very-sad",60635),fish3Happy:h("fish3-happy",60636),fish3Neutral:h("fish3-neutral",60637),fish3Sad:h("fish3-sad",60638),fish3VerySad:h("fish3-very-sad",60639),fish4Happy:h("fish4-happy",60640),fish4Neutral:h("fish4-neutral",60641),fish4Sad:h("fish4-sad",60642),fish4VerySad:h("fish4-very-sad",60643),personVoice:h("person-voice",60644),personVoiceCompact:h("person-voice-compact",60645),personVoiceFilled:h("person-voice-filled",60646),personVoiceFilledCompact:h("person-voice-filled-compact",60647),cloudDownloadCompact:h("cloud-download-compact",60648),cloudUploadCompact:h("cloud-upload-compact",60649),micCompact:h("mic-compact",60650),arrowUpCompact:h("arrow-up-compact",60651),xai:h("xai",60652),arrowCircleUpSparkle:h("arrow-circle-up-sparkle",60653),closeSmall:h("close-small",60654),bookCompact:h("book-compact",60655),micOff:h("mic-off",60656),micOffCompact:h("mic-off-compact",60657),copilotDot:h("copilot-dot",60658),copilotDotCompact:h("copilot-dot-compact",60659),layoutDensityCompact:h("layout-density-compact",60660),layoutDensityDefault:h("layout-density-default",60661),gripperCorner:h("gripper-corner",60662),meteredConnection:h("metered-connection",60663),reportQuestion:h("report-question",60664),trophy:h("trophy",60665)},sc={dialogError:h("dialog-error","error"),dialogWarning:h("dialog-warning","warning"),dialogInfo:h("dialog-info","info"),dialogClose:h("dialog-close","close"),treeItemExpanded:h("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:h("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:h("tree-filter-on-type-off","list-selection"),treeFilterClear:h("tree-filter-clear","close"),treeItemLoading:h("tree-item-loading","loading"),menuSelection:h("menu-selection","check"),menuSubmenu:h("menu-submenu","chevron-right"),menuBarMore:h("menubar-more","more"),scrollbarButtonLeft:h("scrollbar-button-left","triangle-left"),scrollbarButtonRight:h("scrollbar-button-right","triangle-right"),scrollbarButtonUp:h("scrollbar-button-up","triangle-up"),scrollbarButtonDown:h("scrollbar-button-down","triangle-down"),toolBarMore:h("toolbar-more","more"),quickInputBack:h("quick-input-back","arrow-left"),dropDownButton:h("drop-down-button",60084),symbolCustomColor:h("symbol-customcolor",60252),exportIcon:h("export",60332),workspaceUnspecified:h("workspace-unspecified",60355),newLine:h("newline",60394),thumbsDownFilled:h("thumbsdown-filled",60435),thumbsUpFilled:h("thumbsup-filled",60436),gitFetch:h("git-fetch",60445),lightbulbSparkleAutofix:h("lightbulb-sparkle-autofix",60447),debugBreakpointPending:h("debug-breakpoint-pending",60377),chatImport:h("chat-import",60550),chatExport:h("chat-export",60551),compare:h("compare",60666),gitBranchCheckout:h("git-branch-checkout",60667)},q={...rc,...sc};class ac{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new Ne,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})}register(e,n){return this._tokenizationSupports.set(e,n),this.handleChange([e]),St(()=>{this._tokenizationSupports.get(e)===n&&(this._tokenizationSupports.delete(e),this.handleChange([e]))})}get(e){return this._tokenizationSupports.get(e)||null}registerFactory(e,n){this._factories.get(e)?.dispose();const i=new oc(this,e,n);return this._factories.set(e,i),St(()=>{const r=this._factories.get(e);!r||r!==i||(this._factories.delete(e),r.dispose())})}async getOrCreate(e){const n=this.get(e);if(n)return n;const i=this._factories.get(e);return!i||i.isResolved?null:(await i.resolve(),this.get(e))}isResolved(e){if(this.get(e))return!0;const i=this._factories.get(e);return!!(!i||i.isResolved)}setColorMap(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}}class oc extends Ye{get isResolved(){return this._isResolved}constructor(e,n,i){super(),this._registry=e,this._languageId=n,this._factory=i,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}async resolve(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}async _create(){const e=await this._factory.tokenizationSupport;this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))}}class lc{constructor(e,n,i){this.offset=e,this.type=n,this.language=i,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}var us;(function(t){t[t.Increase=0]="Increase",t[t.Decrease=1]="Decrease"})(us||(us={}));var cs;(function(t){const e=new Map;e.set(0,q.symbolMethod),e.set(1,q.symbolFunction),e.set(2,q.symbolConstructor),e.set(3,q.symbolField),e.set(4,q.symbolVariable),e.set(5,q.symbolClass),e.set(6,q.symbolStruct),e.set(7,q.symbolInterface),e.set(8,q.symbolModule),e.set(9,q.symbolProperty),e.set(10,q.symbolEvent),e.set(11,q.symbolOperator),e.set(12,q.symbolUnit),e.set(13,q.symbolValue),e.set(15,q.symbolEnum),e.set(14,q.symbolConstant),e.set(16,q.symbolEnumMember),e.set(17,q.symbolKeyword),e.set(28,q.symbolSnippet),e.set(18,q.symbolText),e.set(19,q.symbolColor),e.set(20,q.symbolFile),e.set(21,q.symbolReference),e.set(22,q.symbolCustomColor),e.set(23,q.symbolFolder),e.set(24,q.symbolTypeParameter),e.set(25,q.account),e.set(26,q.issues),e.set(27,q.tools);function n(a){let l=e.get(a);return l||(console.info("No codicon found for CompletionItemKind "+a),l=q.symbolProperty),l}t.toIcon=n;function i(a){switch(a){case 0:return O(785,"Method");case 1:return O(786,"Function");case 2:return O(787,"Constructor");case 3:return O(788,"Field");case 4:return O(789,"Variable");case 5:return O(790,"Class");case 6:return O(791,"Struct");case 7:return O(792,"Interface");case 8:return O(793,"Module");case 9:return O(794,"Property");case 10:return O(795,"Event");case 11:return O(796,"Operator");case 12:return O(797,"Unit");case 13:return O(798,"Value");case 14:return O(799,"Constant");case 15:return O(800,"Enum");case 16:return O(801,"Enum Member");case 17:return O(802,"Keyword");case 18:return O(803,"Text");case 19:return O(804,"Color");case 20:return O(805,"File");case 21:return O(806,"Reference");case 22:return O(807,"Custom Color");case 23:return O(808,"Folder");case 24:return O(809,"Type Parameter");case 25:return O(810,"User");case 26:return O(811,"Issue");case 27:return O(812,"Tool");case 28:return O(813,"Snippet");default:return""}}t.toLabel=i;const r=new Map;r.set("method",0),r.set("function",1),r.set("constructor",2),r.set("field",3),r.set("variable",4),r.set("class",5),r.set("struct",6),r.set("interface",7),r.set("module",8),r.set("property",9),r.set("event",10),r.set("operator",11),r.set("unit",12),r.set("value",13),r.set("constant",14),r.set("enum",15),r.set("enum-member",16),r.set("enumMember",16),r.set("keyword",17),r.set("snippet",28),r.set("text",18),r.set("color",19),r.set("file",20),r.set("reference",21),r.set("customcolor",22),r.set("folder",23),r.set("type-parameter",24),r.set("typeParameter",24),r.set("account",25),r.set("issue",26),r.set("tool",27);function s(a,l){let o=r.get(a);return typeof o>"u"&&!l&&(o=9),o}t.fromString=s})(cs||(cs={}));var hs;(function(t){t[t.Automatic=0]="Automatic",t[t.Explicit=1]="Explicit"})(hs||(hs={}));var ds;(function(t){t[t.Code=1]="Code",t[t.Label=2]="Label"})(ds||(ds={}));var ms;(function(t){t[t.Accepted=0]="Accepted",t[t.Rejected=1]="Rejected",t[t.Ignored=2]="Ignored"})(ms||(ms={}));var fs;(function(t){t[t.Automatic=0]="Automatic",t[t.PasteAs=1]="PasteAs"})(fs||(fs={}));var ps;(function(t){t[t.Invoke=1]="Invoke",t[t.TriggerCharacter=2]="TriggerCharacter",t[t.ContentChange=3]="ContentChange"})(ps||(ps={}));var gs;(function(t){t[t.Text=0]="Text",t[t.Read=1]="Read",t[t.Write=2]="Write"})(gs||(gs={})),O(814,"array"),O(815,"boolean"),O(816,"class"),O(817,"constant"),O(818,"constructor"),O(819,"enumeration"),O(820,"enumeration member"),O(821,"event"),O(822,"field"),O(823,"file"),O(824,"function"),O(825,"interface"),O(826,"key"),O(827,"method"),O(828,"module"),O(829,"namespace"),O(830,"null"),O(831,"number"),O(832,"object"),O(833,"operator"),O(834,"package"),O(835,"property"),O(836,"string"),O(837,"struct"),O(838,"type parameter"),O(839,"variable");var bs;(function(t){const e=new Map;e.set(0,q.symbolFile),e.set(1,q.symbolModule),e.set(2,q.symbolNamespace),e.set(3,q.symbolPackage),e.set(4,q.symbolClass),e.set(5,q.symbolMethod),e.set(6,q.symbolProperty),e.set(7,q.symbolField),e.set(8,q.symbolConstructor),e.set(9,q.symbolEnum),e.set(10,q.symbolInterface),e.set(11,q.symbolFunction),e.set(12,q.symbolVariable),e.set(13,q.symbolConstant),e.set(14,q.symbolString),e.set(15,q.symbolNumber),e.set(16,q.symbolBoolean),e.set(17,q.symbolArray),e.set(18,q.symbolObject),e.set(19,q.symbolKey),e.set(20,q.symbolNull),e.set(21,q.symbolEnumMember),e.set(22,q.symbolStruct),e.set(23,q.symbolEvent),e.set(24,q.symbolOperator),e.set(25,q.symbolTypeParameter);function n(s){let a=e.get(s);return a||(console.info("No codicon found for SymbolKind "+s),a=q.symbolProperty),a}t.toIcon=n;const i=new Map;i.set(0,20),i.set(1,8),i.set(2,8),i.set(3,8),i.set(4,5),i.set(5,0),i.set(6,9),i.set(7,3),i.set(8,2),i.set(9,15),i.set(10,7),i.set(11,1),i.set(12,4),i.set(13,14),i.set(14,18),i.set(15,13),i.set(16,13),i.set(17,13),i.set(18,13),i.set(19,17),i.set(20,13),i.set(21,16),i.set(22,6),i.set(23,10),i.set(24,11),i.set(25,24);function r(s){let a=i.get(s);return a===void 0&&(console.info("No completion kind found for SymbolKind "+s),a=20),a}t.toCompletionKind=r})(bs||(bs={}));var ws;(function(t){t[t.Declaration=1]="Declaration",t[t.Header=2]="Header",t[t.Implementation=3]="Implementation",t[t.Dependency=4]="Dependency",t[t.Other=5]="Other"})(ws||(ws={}));var _s;(function(t){t[t.Test=1]="Test"})(_s||(_s={}));let Rm=(be=class{static fromValue(e){switch(e){case"comment":return be.Comment;case"imports":return be.Imports;case"region":return be.Region}return new be(e)}constructor(e){this.value=e}},be.Comment=new be("comment"),be.Imports=new be("imports"),be.Region=new be("region"),be);var vs;(function(t){t[t.AIGenerated=1]="AIGenerated"})(vs||(vs={}));var ys;(function(t){t[t.Invoke=0]="Invoke",t[t.Automatic=1]="Automatic"})(ys||(ys={}));var xs;(function(t){function e(n){return!n||typeof n!="object"?!1:typeof n.id=="string"&&typeof n.title=="string"}t.is=e})(xs||(xs={}));var Ts;(function(t){t[t.Type=1]="Type",t[t.Parameter=2]="Parameter"})(Ts||(Ts={})),new ac;var Ss;(function(t){t[t.Unknown=0]="Unknown",t[t.Disabled=1]="Disabled",t[t.Enabled=2]="Enabled"})(Ss||(Ss={}));var ks;(function(t){t[t.Invoke=1]="Invoke",t[t.Auto=2]="Auto"})(ks||(ks={}));var Ls;(function(t){t[t.None=0]="None",t[t.KeepWhitespace=1]="KeepWhitespace",t[t.InsertAsSnippet=4]="InsertAsSnippet"})(Ls||(Ls={}));var As;(function(t){t[t.Method=0]="Method",t[t.Function=1]="Function",t[t.Constructor=2]="Constructor",t[t.Field=3]="Field",t[t.Variable=4]="Variable",t[t.Class=5]="Class",t[t.Struct=6]="Struct",t[t.Interface=7]="Interface",t[t.Module=8]="Module",t[t.Property=9]="Property",t[t.Event=10]="Event",t[t.Operator=11]="Operator",t[t.Unit=12]="Unit",t[t.Value=13]="Value",t[t.Constant=14]="Constant",t[t.Enum=15]="Enum",t[t.EnumMember=16]="EnumMember",t[t.Keyword=17]="Keyword",t[t.Text=18]="Text",t[t.Color=19]="Color",t[t.File=20]="File",t[t.Reference=21]="Reference",t[t.Customcolor=22]="Customcolor",t[t.Folder=23]="Folder",t[t.TypeParameter=24]="TypeParameter",t[t.User=25]="User",t[t.Issue=26]="Issue",t[t.Tool=27]="Tool",t[t.Snippet=28]="Snippet"})(As||(As={}));var Es;(function(t){t[t.Deprecated=1]="Deprecated"})(Es||(Es={}));var Rs;(function(t){t[t.Invoke=0]="Invoke",t[t.TriggerCharacter=1]="TriggerCharacter",t[t.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(Rs||(Rs={}));var Cs;(function(t){t[t.EXACT=0]="EXACT",t[t.ABOVE=1]="ABOVE",t[t.BELOW=2]="BELOW"})(Cs||(Cs={}));var Ns;(function(t){t[t.NotSet=0]="NotSet",t[t.ContentFlush=1]="ContentFlush",t[t.RecoverFromMarkers=2]="RecoverFromMarkers",t[t.Explicit=3]="Explicit",t[t.Paste=4]="Paste",t[t.Undo=5]="Undo",t[t.Redo=6]="Redo"})(Ns||(Ns={}));var Ds;(function(t){t[t.LF=1]="LF",t[t.CRLF=2]="CRLF"})(Ds||(Ds={}));var Ms;(function(t){t[t.Text=0]="Text",t[t.Read=1]="Read",t[t.Write=2]="Write"})(Ms||(Ms={}));var Is;(function(t){t[t.None=0]="None",t[t.Keep=1]="Keep",t[t.Brackets=2]="Brackets",t[t.Advanced=3]="Advanced",t[t.Full=4]="Full"})(Is||(Is={}));var zs;(function(t){t[t.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",t[t.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",t[t.accessibilitySupport=2]="accessibilitySupport",t[t.accessibilityPageSize=3]="accessibilityPageSize",t[t.allowOverflow=4]="allowOverflow",t[t.allowVariableLineHeights=5]="allowVariableLineHeights",t[t.allowVariableFonts=6]="allowVariableFonts",t[t.allowVariableFontsInAccessibilityMode=7]="allowVariableFontsInAccessibilityMode",t[t.ariaLabel=8]="ariaLabel",t[t.ariaRequired=9]="ariaRequired",t[t.autoClosingBrackets=10]="autoClosingBrackets",t[t.autoClosingComments=11]="autoClosingComments",t[t.screenReaderAnnounceInlineSuggestion=12]="screenReaderAnnounceInlineSuggestion",t[t.autoClosingDelete=13]="autoClosingDelete",t[t.autoClosingOvertype=14]="autoClosingOvertype",t[t.autoClosingQuotes=15]="autoClosingQuotes",t[t.autoIndent=16]="autoIndent",t[t.autoIndentOnPaste=17]="autoIndentOnPaste",t[t.autoIndentOnPasteWithinString=18]="autoIndentOnPasteWithinString",t[t.automaticLayout=19]="automaticLayout",t[t.autoSurround=20]="autoSurround",t[t.bracketPairColorization=21]="bracketPairColorization",t[t.guides=22]="guides",t[t.codeLens=23]="codeLens",t[t.codeLensFontFamily=24]="codeLensFontFamily",t[t.codeLensFontSize=25]="codeLensFontSize",t[t.colorDecorators=26]="colorDecorators",t[t.colorDecoratorsLimit=27]="colorDecoratorsLimit",t[t.columnSelection=28]="columnSelection",t[t.comments=29]="comments",t[t.contextmenu=30]="contextmenu",t[t.copyWithSyntaxHighlighting=31]="copyWithSyntaxHighlighting",t[t.cursorBlinking=32]="cursorBlinking",t[t.cursorSmoothCaretAnimation=33]="cursorSmoothCaretAnimation",t[t.cursorStyle=34]="cursorStyle",t[t.cursorSurroundingLines=35]="cursorSurroundingLines",t[t.cursorSurroundingLinesStyle=36]="cursorSurroundingLinesStyle",t[t.cursorWidth=37]="cursorWidth",t[t.cursorHeight=38]="cursorHeight",t[t.disableLayerHinting=39]="disableLayerHinting",t[t.disableMonospaceOptimizations=40]="disableMonospaceOptimizations",t[t.domReadOnly=41]="domReadOnly",t[t.dragAndDrop=42]="dragAndDrop",t[t.dropIntoEditor=43]="dropIntoEditor",t[t.editContext=44]="editContext",t[t.emptySelectionClipboard=45]="emptySelectionClipboard",t[t.experimentalGpuAcceleration=46]="experimentalGpuAcceleration",t[t.experimentalWhitespaceRendering=47]="experimentalWhitespaceRendering",t[t.extraEditorClassName=48]="extraEditorClassName",t[t.fastScrollSensitivity=49]="fastScrollSensitivity",t[t.find=50]="find",t[t.fixedOverflowWidgets=51]="fixedOverflowWidgets",t[t.folding=52]="folding",t[t.foldingStrategy=53]="foldingStrategy",t[t.foldingHighlight=54]="foldingHighlight",t[t.foldingImportsByDefault=55]="foldingImportsByDefault",t[t.foldingMaximumRegions=56]="foldingMaximumRegions",t[t.unfoldOnClickAfterEndOfLine=57]="unfoldOnClickAfterEndOfLine",t[t.fontFamily=58]="fontFamily",t[t.fontInfo=59]="fontInfo",t[t.fontLigatures=60]="fontLigatures",t[t.fontSize=61]="fontSize",t[t.fontWeight=62]="fontWeight",t[t.fontVariations=63]="fontVariations",t[t.formatOnPaste=64]="formatOnPaste",t[t.formatOnType=65]="formatOnType",t[t.glyphMargin=66]="glyphMargin",t[t.gotoLocation=67]="gotoLocation",t[t.hideCursorInOverviewRuler=68]="hideCursorInOverviewRuler",t[t.hover=69]="hover",t[t.inDiffEditor=70]="inDiffEditor",t[t.inlineSuggest=71]="inlineSuggest",t[t.letterSpacing=72]="letterSpacing",t[t.lightbulb=73]="lightbulb",t[t.lineDecorationsWidth=74]="lineDecorationsWidth",t[t.lineHeight=75]="lineHeight",t[t.lineNumbers=76]="lineNumbers",t[t.lineNumbersMinChars=77]="lineNumbersMinChars",t[t.linkedEditing=78]="linkedEditing",t[t.links=79]="links",t[t.markdownImages=80]="markdownImages",t[t.matchBrackets=81]="matchBrackets",t[t.minimap=82]="minimap",t[t.mouseStyle=83]="mouseStyle",t[t.mouseWheelScrollSensitivity=84]="mouseWheelScrollSensitivity",t[t.mouseWheelZoom=85]="mouseWheelZoom",t[t.multiCursorMergeOverlapping=86]="multiCursorMergeOverlapping",t[t.multiCursorModifier=87]="multiCursorModifier",t[t.mouseMiddleClickAction=88]="mouseMiddleClickAction",t[t.multiCursorPaste=89]="multiCursorPaste",t[t.multiCursorLimit=90]="multiCursorLimit",t[t.occurrencesHighlight=91]="occurrencesHighlight",t[t.occurrencesHighlightDelay=92]="occurrencesHighlightDelay",t[t.occurrencesHighlightFromAllProviders=93]="occurrencesHighlightFromAllProviders",t[t.overtypeCursorStyle=94]="overtypeCursorStyle",t[t.overtypeOnPaste=95]="overtypeOnPaste",t[t.overviewRulerBorder=96]="overviewRulerBorder",t[t.overviewRulerLanes=97]="overviewRulerLanes",t[t.padding=98]="padding",t[t.pasteAs=99]="pasteAs",t[t.parameterHints=100]="parameterHints",t[t.peekWidgetDefaultFocus=101]="peekWidgetDefaultFocus",t[t.placeholder=102]="placeholder",t[t.definitionLinkOpensInPeek=103]="definitionLinkOpensInPeek",t[t.quickSuggestions=104]="quickSuggestions",t[t.quickSuggestionsDelay=105]="quickSuggestionsDelay",t[t.readOnly=106]="readOnly",t[t.readOnlyMessage=107]="readOnlyMessage",t[t.renameOnType=108]="renameOnType",t[t.renderRichScreenReaderContent=109]="renderRichScreenReaderContent",t[t.renderControlCharacters=110]="renderControlCharacters",t[t.renderFinalNewline=111]="renderFinalNewline",t[t.renderLineHighlight=112]="renderLineHighlight",t[t.renderLineHighlightOnlyWhenFocus=113]="renderLineHighlightOnlyWhenFocus",t[t.renderValidationDecorations=114]="renderValidationDecorations",t[t.renderWhitespace=115]="renderWhitespace",t[t.revealHorizontalRightPadding=116]="revealHorizontalRightPadding",t[t.roundedSelection=117]="roundedSelection",t[t.rulers=118]="rulers",t[t.scrollbar=119]="scrollbar",t[t.scrollBeyondLastColumn=120]="scrollBeyondLastColumn",t[t.scrollBeyondLastLine=121]="scrollBeyondLastLine",t[t.scrollPredominantAxis=122]="scrollPredominantAxis",t[t.selectionClipboard=123]="selectionClipboard",t[t.selectionHighlight=124]="selectionHighlight",t[t.selectionHighlightMaxLength=125]="selectionHighlightMaxLength",t[t.selectionHighlightMultiline=126]="selectionHighlightMultiline",t[t.selectedTextMatchMode=127]="selectedTextMatchMode",t[t.selectOnLineNumbers=128]="selectOnLineNumbers",t[t.showFoldingControls=129]="showFoldingControls",t[t.showUnused=130]="showUnused",t[t.snippetSuggestions=131]="snippetSuggestions",t[t.smartSelect=132]="smartSelect",t[t.smoothScrolling=133]="smoothScrolling",t[t.stickyScroll=134]="stickyScroll",t[t.stickyTabStops=135]="stickyTabStops",t[t.stopRenderingLineAfter=136]="stopRenderingLineAfter",t[t.suggest=137]="suggest",t[t.suggestFontSize=138]="suggestFontSize",t[t.suggestLineHeight=139]="suggestLineHeight",t[t.suggestOnTriggerCharacters=140]="suggestOnTriggerCharacters",t[t.suggestSelection=141]="suggestSelection",t[t.tabCompletion=142]="tabCompletion",t[t.tabIndex=143]="tabIndex",t[t.trimWhitespaceOnDelete=144]="trimWhitespaceOnDelete",t[t.unicodeHighlighting=145]="unicodeHighlighting",t[t.unusualLineTerminators=146]="unusualLineTerminators",t[t.useShadowDOM=147]="useShadowDOM",t[t.useTabStops=148]="useTabStops",t[t.wordBreak=149]="wordBreak",t[t.wordSegmenterLocales=150]="wordSegmenterLocales",t[t.wordSeparators=151]="wordSeparators",t[t.wordWrap=152]="wordWrap",t[t.wordWrapBreakAfterCharacters=153]="wordWrapBreakAfterCharacters",t[t.wordWrapBreakBeforeCharacters=154]="wordWrapBreakBeforeCharacters",t[t.wordWrapColumn=155]="wordWrapColumn",t[t.wordWrapOverride1=156]="wordWrapOverride1",t[t.wordWrapOverride2=157]="wordWrapOverride2",t[t.wrappingIndent=158]="wrappingIndent",t[t.wrappingStrategy=159]="wrappingStrategy",t[t.showDeprecated=160]="showDeprecated",t[t.inertialScroll=161]="inertialScroll",t[t.inlayHints=162]="inlayHints",t[t.wrapOnEscapedLineFeeds=163]="wrapOnEscapedLineFeeds",t[t.wordWrapIndicator=164]="wordWrapIndicator",t[t.effectiveCursorStyle=165]="effectiveCursorStyle",t[t.editorClassName=166]="editorClassName",t[t.pixelRatio=167]="pixelRatio",t[t.tabFocusMode=168]="tabFocusMode",t[t.layoutInfo=169]="layoutInfo",t[t.wrappingInfo=170]="wrappingInfo",t[t.defaultColorDecorators=171]="defaultColorDecorators",t[t.colorDecoratorsActivatedOn=172]="colorDecoratorsActivatedOn",t[t.inlineCompletionsAccessibilityVerbose=173]="inlineCompletionsAccessibilityVerbose",t[t.effectiveEditContext=174]="effectiveEditContext",t[t.scrollOnMiddleClick=175]="scrollOnMiddleClick",t[t.effectiveAllowVariableFonts=176]="effectiveAllowVariableFonts",t[t.doubleClickSelectsBlock=177]="doubleClickSelectsBlock",t[t.fullwidthCharacterWidth=178]="fullwidthCharacterWidth",t[t.effectiveFullwidthCharacterWidth=179]="effectiveFullwidthCharacterWidth"})(zs||(zs={}));var Hs;(function(t){t[t.TextDefined=0]="TextDefined",t[t.LF=1]="LF",t[t.CRLF=2]="CRLF"})(Hs||(Hs={}));var Ps;(function(t){t[t.LF=0]="LF",t[t.CRLF=1]="CRLF"})(Ps||(Ps={}));var Us;(function(t){t[t.Left=1]="Left",t[t.Center=2]="Center",t[t.Right=3]="Right"})(Us||(Us={}));var Ws;(function(t){t[t.Increase=0]="Increase",t[t.Decrease=1]="Decrease"})(Ws||(Ws={}));var Fs;(function(t){t[t.None=0]="None",t[t.Indent=1]="Indent",t[t.IndentOutdent=2]="IndentOutdent",t[t.Outdent=3]="Outdent"})(Fs||(Fs={}));var Bs;(function(t){t[t.Both=0]="Both",t[t.Right=1]="Right",t[t.Left=2]="Left",t[t.None=3]="None"})(Bs||(Bs={}));var qs;(function(t){t[t.Type=1]="Type",t[t.Parameter=2]="Parameter"})(qs||(qs={}));var Os;(function(t){t[t.Accepted=0]="Accepted",t[t.Rejected=1]="Rejected",t[t.Ignored=2]="Ignored"})(Os||(Os={}));var Vs;(function(t){t[t.Code=1]="Code",t[t.Label=2]="Label"})(Vs||(Vs={}));var $s;(function(t){t[t.Automatic=0]="Automatic",t[t.Explicit=1]="Explicit"})($s||($s={}));var Ui;(function(t){t[t.DependsOnKbLayout=-1]="DependsOnKbLayout",t[t.Unknown=0]="Unknown",t[t.Backspace=1]="Backspace",t[t.Tab=2]="Tab",t[t.Enter=3]="Enter",t[t.Shift=4]="Shift",t[t.Ctrl=5]="Ctrl",t[t.Alt=6]="Alt",t[t.PauseBreak=7]="PauseBreak",t[t.CapsLock=8]="CapsLock",t[t.Escape=9]="Escape",t[t.Space=10]="Space",t[t.PageUp=11]="PageUp",t[t.PageDown=12]="PageDown",t[t.End=13]="End",t[t.Home=14]="Home",t[t.LeftArrow=15]="LeftArrow",t[t.UpArrow=16]="UpArrow",t[t.RightArrow=17]="RightArrow",t[t.DownArrow=18]="DownArrow",t[t.Insert=19]="Insert",t[t.Delete=20]="Delete",t[t.Digit0=21]="Digit0",t[t.Digit1=22]="Digit1",t[t.Digit2=23]="Digit2",t[t.Digit3=24]="Digit3",t[t.Digit4=25]="Digit4",t[t.Digit5=26]="Digit5",t[t.Digit6=27]="Digit6",t[t.Digit7=28]="Digit7",t[t.Digit8=29]="Digit8",t[t.Digit9=30]="Digit9",t[t.KeyA=31]="KeyA",t[t.KeyB=32]="KeyB",t[t.KeyC=33]="KeyC",t[t.KeyD=34]="KeyD",t[t.KeyE=35]="KeyE",t[t.KeyF=36]="KeyF",t[t.KeyG=37]="KeyG",t[t.KeyH=38]="KeyH",t[t.KeyI=39]="KeyI",t[t.KeyJ=40]="KeyJ",t[t.KeyK=41]="KeyK",t[t.KeyL=42]="KeyL",t[t.KeyM=43]="KeyM",t[t.KeyN=44]="KeyN",t[t.KeyO=45]="KeyO",t[t.KeyP=46]="KeyP",t[t.KeyQ=47]="KeyQ",t[t.KeyR=48]="KeyR",t[t.KeyS=49]="KeyS",t[t.KeyT=50]="KeyT",t[t.KeyU=51]="KeyU",t[t.KeyV=52]="KeyV",t[t.KeyW=53]="KeyW",t[t.KeyX=54]="KeyX",t[t.KeyY=55]="KeyY",t[t.KeyZ=56]="KeyZ",t[t.Meta=57]="Meta",t[t.ContextMenu=58]="ContextMenu",t[t.F1=59]="F1",t[t.F2=60]="F2",t[t.F3=61]="F3",t[t.F4=62]="F4",t[t.F5=63]="F5",t[t.F6=64]="F6",t[t.F7=65]="F7",t[t.F8=66]="F8",t[t.F9=67]="F9",t[t.F10=68]="F10",t[t.F11=69]="F11",t[t.F12=70]="F12",t[t.F13=71]="F13",t[t.F14=72]="F14",t[t.F15=73]="F15",t[t.F16=74]="F16",t[t.F17=75]="F17",t[t.F18=76]="F18",t[t.F19=77]="F19",t[t.F20=78]="F20",t[t.F21=79]="F21",t[t.F22=80]="F22",t[t.F23=81]="F23",t[t.F24=82]="F24",t[t.NumLock=83]="NumLock",t[t.ScrollLock=84]="ScrollLock",t[t.Semicolon=85]="Semicolon",t[t.Equal=86]="Equal",t[t.Comma=87]="Comma",t[t.Minus=88]="Minus",t[t.Period=89]="Period",t[t.Slash=90]="Slash",t[t.Backquote=91]="Backquote",t[t.BracketLeft=92]="BracketLeft",t[t.Backslash=93]="Backslash",t[t.BracketRight=94]="BracketRight",t[t.Quote=95]="Quote",t[t.OEM_8=96]="OEM_8",t[t.IntlBackslash=97]="IntlBackslash",t[t.Numpad0=98]="Numpad0",t[t.Numpad1=99]="Numpad1",t[t.Numpad2=100]="Numpad2",t[t.Numpad3=101]="Numpad3",t[t.Numpad4=102]="Numpad4",t[t.Numpad5=103]="Numpad5",t[t.Numpad6=104]="Numpad6",t[t.Numpad7=105]="Numpad7",t[t.Numpad8=106]="Numpad8",t[t.Numpad9=107]="Numpad9",t[t.NumpadMultiply=108]="NumpadMultiply",t[t.NumpadAdd=109]="NumpadAdd",t[t.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",t[t.NumpadSubtract=111]="NumpadSubtract",t[t.NumpadDecimal=112]="NumpadDecimal",t[t.NumpadDivide=113]="NumpadDivide",t[t.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",t[t.ABNT_C1=115]="ABNT_C1",t[t.ABNT_C2=116]="ABNT_C2",t[t.AudioVolumeMute=117]="AudioVolumeMute",t[t.AudioVolumeUp=118]="AudioVolumeUp",t[t.AudioVolumeDown=119]="AudioVolumeDown",t[t.BrowserSearch=120]="BrowserSearch",t[t.BrowserHome=121]="BrowserHome",t[t.BrowserBack=122]="BrowserBack",t[t.BrowserForward=123]="BrowserForward",t[t.MediaTrackNext=124]="MediaTrackNext",t[t.MediaTrackPrevious=125]="MediaTrackPrevious",t[t.MediaStop=126]="MediaStop",t[t.MediaPlayPause=127]="MediaPlayPause",t[t.LaunchMediaPlayer=128]="LaunchMediaPlayer",t[t.LaunchMail=129]="LaunchMail",t[t.LaunchApp2=130]="LaunchApp2",t[t.Clear=131]="Clear",t[t.MAX_VALUE=132]="MAX_VALUE"})(Ui||(Ui={}));var Wi;(function(t){t[t.Hint=1]="Hint",t[t.Info=2]="Info",t[t.Warning=4]="Warning",t[t.Error=8]="Error"})(Wi||(Wi={}));var Fi;(function(t){t[t.Unnecessary=1]="Unnecessary",t[t.Deprecated=2]="Deprecated"})(Fi||(Fi={}));var js;(function(t){t[t.Inline=1]="Inline",t[t.Gutter=2]="Gutter"})(js||(js={}));var Gs;(function(t){t[t.Normal=1]="Normal",t[t.Underlined=2]="Underlined"})(Gs||(Gs={}));var Xs;(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.TEXTAREA=1]="TEXTAREA",t[t.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",t[t.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",t[t.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",t[t.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",t[t.CONTENT_TEXT=6]="CONTENT_TEXT",t[t.CONTENT_EMPTY=7]="CONTENT_EMPTY",t[t.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",t[t.CONTENT_WIDGET=9]="CONTENT_WIDGET",t[t.OVERVIEW_RULER=10]="OVERVIEW_RULER",t[t.SCROLLBAR=11]="SCROLLBAR",t[t.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",t[t.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(Xs||(Xs={}));var Js;(function(t){t[t.AIGenerated=1]="AIGenerated"})(Js||(Js={}));var Qs;(function(t){t[t.Invoke=0]="Invoke",t[t.Automatic=1]="Automatic"})(Qs||(Qs={}));var Ys;(function(t){t[t.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",t[t.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",t[t.TOP_CENTER=2]="TOP_CENTER"})(Ys||(Ys={}));var Zs;(function(t){t[t.Left=1]="Left",t[t.Center=2]="Center",t[t.Right=4]="Right",t[t.Full=7]="Full"})(Zs||(Zs={}));var Ks;(function(t){t[t.Word=0]="Word",t[t.Line=1]="Line",t[t.Suggest=2]="Suggest"})(Ks||(Ks={}));var ea;(function(t){t[t.Left=0]="Left",t[t.Right=1]="Right",t[t.None=2]="None",t[t.LeftOfInjectedText=3]="LeftOfInjectedText",t[t.RightOfInjectedText=4]="RightOfInjectedText"})(ea||(ea={}));var ta;(function(t){t[t.Off=0]="Off",t[t.On=1]="On",t[t.Relative=2]="Relative",t[t.Interval=3]="Interval",t[t.Custom=4]="Custom"})(ta||(ta={}));var na;(function(t){t[t.None=0]="None",t[t.Text=1]="Text",t[t.Blocks=2]="Blocks"})(na||(na={}));var ia;(function(t){t[t.Smooth=0]="Smooth",t[t.Immediate=1]="Immediate"})(ia||(ia={}));var ra;(function(t){t[t.Auto=1]="Auto",t[t.Hidden=2]="Hidden",t[t.Visible=3]="Visible"})(ra||(ra={}));var Bi;(function(t){t[t.LTR=0]="LTR",t[t.RTL=1]="RTL"})(Bi||(Bi={}));var sa;(function(t){t.Off="off",t.OnCode="onCode",t.On="on"})(sa||(sa={}));var aa;(function(t){t[t.Invoke=1]="Invoke",t[t.TriggerCharacter=2]="TriggerCharacter",t[t.ContentChange=3]="ContentChange"})(aa||(aa={}));var oa;(function(t){t[t.File=0]="File",t[t.Module=1]="Module",t[t.Namespace=2]="Namespace",t[t.Package=3]="Package",t[t.Class=4]="Class",t[t.Method=5]="Method",t[t.Property=6]="Property",t[t.Field=7]="Field",t[t.Constructor=8]="Constructor",t[t.Enum=9]="Enum",t[t.Interface=10]="Interface",t[t.Function=11]="Function",t[t.Variable=12]="Variable",t[t.Constant=13]="Constant",t[t.String=14]="String",t[t.Number=15]="Number",t[t.Boolean=16]="Boolean",t[t.Array=17]="Array",t[t.Object=18]="Object",t[t.Key=19]="Key",t[t.Null=20]="Null",t[t.EnumMember=21]="EnumMember",t[t.Struct=22]="Struct",t[t.Event=23]="Event",t[t.Operator=24]="Operator",t[t.TypeParameter=25]="TypeParameter"})(oa||(oa={}));var la;(function(t){t[t.Deprecated=1]="Deprecated"})(la||(la={}));var ua;(function(t){t[t.LTR=0]="LTR",t[t.RTL=1]="RTL"})(ua||(ua={}));var ca;(function(t){t[t.Hidden=0]="Hidden",t[t.Blink=1]="Blink",t[t.Smooth=2]="Smooth",t[t.Phase=3]="Phase",t[t.Expand=4]="Expand",t[t.Solid=5]="Solid"})(ca||(ca={}));var ha;(function(t){t[t.Line=1]="Line",t[t.Block=2]="Block",t[t.Underline=3]="Underline",t[t.LineThin=4]="LineThin",t[t.BlockOutline=5]="BlockOutline",t[t.UnderlineThin=6]="UnderlineThin"})(ha||(ha={}));var da;(function(t){t[t.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",t[t.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",t[t.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",t[t.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(da||(da={}));var ma;(function(t){t[t.None=0]="None",t[t.Same=1]="Same",t[t.Indent=2]="Indent",t[t.DeepIndent=3]="DeepIndent"})(ma||(ma={}));const Xt=class Xt{static chord(e,n){return Bu(e,n)}};Xt.CtrlCmd=2048,Xt.Shift=1024,Xt.Alt=512,Xt.WinCtrl=256;let qi=Xt;function uc(){return{editor:void 0,languages:void 0,CancellationTokenSource:Kr,Emitter:Ne,KeyCode:Ui,KeyMod:qi,Position:Y,Range:V,Selection:Se,SelectionDirection:Bi,MarkerSeverity:Wi,MarkerTag:Fi,Uri:zi,Token:lc}}var fa;class cc{constructor(){this[fa]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(e){return this._map.has(e)}get(e,n=0){const i=this._map.get(e);if(i)return n!==0&&this.touch(i,n),i.value}set(e,n,i=0){let r=this._map.get(e);if(r)r.value=n,i!==0&&this.touch(r,i);else{switch(r={key:e,value:n,next:void 0,previous:void 0},i){case 0:this.addItemLast(r);break;case 1:this.addItemFirst(r);break;case 2:this.addItemLast(r);break;default:this.addItemLast(r);break}this._map.set(e,r),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const n=this._map.get(e);if(n)return this._map.delete(e),this.removeItem(n),this._size--,n.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,n){const i=this._state;let r=this._head;for(;r;){if(n?e.bind(n)(r.value,r.key,this):e(r.value,r.key,this),this._state!==i)throw new Error("LinkedMap got modified during iteration.");r=r.next}}keys(){const e=this,n=this._state;let i=this._head;const r={[Symbol.iterator](){return r},[Symbol.dispose](){},next(){if(e._state!==n)throw new Error("LinkedMap got modified during iteration.");if(i){const s={value:i.key,done:!1};return i=i.next,s}else return{value:void 0,done:!0}}};return r}values(){const e=this,n=this._state;let i=this._head;const r={[Symbol.iterator](){return r},[Symbol.dispose](){},next(){if(e._state!==n)throw new Error("LinkedMap got modified during iteration.");if(i){const s={value:i.value,done:!1};return i=i.next,s}else return{value:void 0,done:!0}}};return r}entries(){const e=this,n=this._state;let i=this._head;const r={[Symbol.iterator](){return r},[Symbol.dispose](){},next(){if(e._state!==n)throw new Error("LinkedMap got modified during iteration.");if(i){const s={value:[i.key,i.value],done:!1};return i=i.next,s}else return{value:void 0,done:!0}}};return r}[(fa=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let n=this._head,i=this.size;for(;n&&i>e;)this._map.delete(n.key),n=n.next,i--;this._head=n,this._size=i,n&&(n.previous=void 0),this._state++}trimNew(e){if(e>=this.size)return;if(e===0){this.clear();return}let n=this._tail,i=this.size;for(;n&&i>e;)this._map.delete(n.key),n=n.previous,i--;this._tail=n,this._size=i,n&&(n.next=void 0),this._state++}addItemFirst(e){if(!this._head&&!this._tail)this._tail=e;else if(this._head)e.next=this._head,this._head.previous=e;else throw new Error("Invalid list");this._head=e,this._state++}addItemLast(e){if(!this._head&&!this._tail)this._head=e;else if(this._tail)e.previous=this._tail,this._tail.next=e;else throw new Error("Invalid list");this._tail=e,this._state++}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 n=e.next,i=e.previous;if(!n||!i)throw new Error("Invalid list");n.previous=i,i.next=n}e.next=void 0,e.previous=void 0,this._state++}touch(e,n){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(n!==1&&n!==2)){if(n===1){if(e===this._head)return;const i=e.next,r=e.previous;e===this._tail?(r.next=void 0,this._tail=r):(i.previous=r,r.next=i),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(n===2){if(e===this._tail)return;const i=e.next,r=e.previous;e===this._head?(i.previous=void 0,this._head=i):(i.previous=r,r.next=i),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){const e=[];return this.forEach((n,i)=>{e.push([i,n])}),e}fromJSON(e){this.clear();for(const[n,i]of e)this.set(n,i)}}class hc extends cc{constructor(e,n=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,n),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get(e,n=2){return super.get(e,n)}peek(e){return super.get(e,0)}set(e,n){return super.set(e,n,2),this}checkTrim(){this.size>this._limit&&this.trim(Math.round(this._limit*this._ratio))}}class dc extends hc{constructor(e,n=1){super(e,n)}trim(e){this.trimOld(e)}set(e,n){return super.set(e,n),this.checkTrim(),this}}class mc{constructor(){this.map=new Map}add(e,n){let i=this.map.get(e);i||(i=new Set,this.map.set(e,i)),i.add(n)}delete(e,n){const i=this.map.get(e);i&&(i.delete(n),i.size===0&&this.map.delete(e))}forEach(e,n){const i=this.map.get(e);i&&i.forEach(n)}}new dc(10);var pa;(function(t){t[t.Left=1]="Left",t[t.Center=2]="Center",t[t.Right=4]="Right",t[t.Full=7]="Full"})(pa||(pa={}));var ga;(function(t){t[t.Left=1]="Left",t[t.Center=2]="Center",t[t.Right=3]="Right"})(ga||(ga={}));var ba;(function(t){t[t.LTR=0]="LTR",t[t.RTL=1]="RTL"})(ba||(ba={}));var wa;(function(t){t[t.Both=0]="Both",t[t.Right=1]="Right",t[t.Left=2]="Left",t[t.None=3]="None"})(wa||(wa={}));function fc(t){if(!t||t.length===0)return!1;for(let e=0,n=t.length;e<n;e++){const i=t.charCodeAt(e);if(i===10)return!0;if(i===92){if(e++,e>=n)break;const r=t.charCodeAt(e);if(r===110||r===114||r===87)return!0}}return!1}function pc(t,e,n,i,r){if(i===0)return!0;const s=e.charCodeAt(i-1);if(t.get(s)!==0||s===13||s===10)return!0;if(r>0){const a=e.charCodeAt(i);if(t.get(a)!==0)return!0}return!1}function gc(t,e,n,i,r){if(i+r===n)return!0;const s=e.charCodeAt(i+r);if(t.get(s)!==0||s===13||s===10)return!0;if(r>0){const a=e.charCodeAt(i+r-1);if(t.get(a)!==0)return!0}return!1}function bc(t,e,n,i,r){return pc(t,e,n,i,r)&&gc(t,e,n,i,r)}class wc{constructor(e,n){this._wordSeparators=e,this._searchRegex=n,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(e){const n=e.length;let i;do{if(this._prevMatchStartIndex+this._prevMatchLength===n||(i=this._searchRegex.exec(e),!i))return null;const r=i.index,s=i[0].length;if(r===this._prevMatchStartIndex&&s===this._prevMatchLength){if(s===0){vu(e,n,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=r,this._prevMatchLength=s,!this._wordSeparators||bc(this._wordSeparators,e,n,r,s))return i}while(i);return null}}const _c="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function vc(t=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const n of _c)t.indexOf(n)>=0||(e+="\\"+n);return e+="\\s]+)",new RegExp(e,"g")}const _a=vc();function va(t){let e=_a;if(t&&t instanceof RegExp)if(t.global)e=t;else{let n="g";t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.unicode&&(n+="u"),e=new RegExp(t.source,n)}return e.lastIndex=0,e}const ya=new Xl;ya.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function Oi(t,e,n,i,r){if(e=va(e),r||(r=En.first(ya)),n.length>r.maxLen){let u=t-r.maxLen/2;return u<0?u=0:i+=u,n=n.substring(u,t+r.maxLen/2),Oi(t,e,n,i,r)}const s=Date.now(),a=t-1-i;let l=-1,o=null;for(let u=1;!(Date.now()-s>=r.timeBudget);u++){const c=a-r.windowSize*u;e.lastIndex=Math.max(0,c);const d=yc(e,n,a,l);if(!d&&o||(o=d,c<=0))break;l=c}if(o){const u={word:o[0],startColumn:i+1+o.index,endColumn:i+1+o.index+o[0].length};return e.lastIndex=0,u}return null}function yc(t,e,n,i){let r;for(;r=t.exec(e);){const s=r.index||0;if(s<=n&&t.lastIndex>=n)return r;if(i>0&&s>i)return null}return null}class xc{static computeUnicodeHighlights(e,n,i){const r=i?i.startLineNumber:1,s=i?i.endLineNumber:e.getLineCount(),a=new xa(n),l=a.getCandidateCodePoints();let o;l==="allNonBasicAscii"?o=new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):o=new RegExp(`${Tc(Array.from(l))}`,"g");const u=new wc(null,o),c=[];let d=!1,m,f=0,b=0,p=0;e:for(let x=r,y=s;x<=y;x++){const _=e.getLineContent(x),T=_.length;u.reset(0);do if(m=u.next(_),m){let M=m.index,z=m.index+m[0].length;if(M>0){const v=_.charCodeAt(M-1);Ze(v)&&M--}if(z+1<T){const v=_.charCodeAt(z-1);Ze(v)&&z++}const H=_.substring(M,z);let w=Oi(M+1,_a,_,0);w&&w.endColumn<=M+1&&(w=null);const g=a.shouldHighlightNonBasicASCII(H,w?w.word:null);if(g!==0){if(g===3?f++:g===2?b++:g===1?p++:ql(),c.length>=1e3){d=!0;break e}c.push(new V(x,M+1,x,z+1))}}while(m)}return{ranges:c,hasMore:d,ambiguousCharacterCount:f,invisibleCharacterCount:b,nonBasicAsciiCharacterCount:p}}static computeUnicodeHighlightReason(e,n){const i=new xa(n);switch(i.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:{const s=e.codePointAt(0),a=i.ambiguousCharacters.getPrimaryConfusable(s),l=an.getLocales().filter(o=>!an.getInstance(new Set([...n.allowedLocales,o])).isAmbiguous(s));return{kind:0,confusableWith:String.fromCodePoint(a),notAmbiguousInLocales:l}}case 1:return{kind:2}}}}function Tc(t,e){return`[${pu(t.map(i=>String.fromCodePoint(i)).join(""))}]`}class xa{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=an.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const e=new Set;if(this.options.invisibleCharacters)for(const n of on.codePoints)Ta(String.fromCodePoint(n))||e.add(n);if(this.options.ambiguousCharacters)for(const n of this.ambiguousCharacters.getConfusableCodePoints())e.add(n);for(const n of this.allowedCodePoints)e.delete(n);return e}shouldHighlightNonBasicASCII(e,n){const i=e.codePointAt(0);if(this.allowedCodePoints.has(i))return 0;if(this.options.nonBasicASCII)return 1;let r=!1,s=!1;if(n)for(const a of n){const l=a.codePointAt(0),o=xu(a);r=r||o,!o&&!this.ambiguousCharacters.isAmbiguous(l)&&!on.isInvisibleCharacter(l)&&(s=!0)}return!r&&s?0:this.options.invisibleCharacters&&!Ta(e)&&on.isInvisibleCharacter(i)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(i)?3:0}}function Ta(t){return t===" "||t===`8`||t===" "}let cn=class{constructor(e,n,i){this.changes=e,this.moves=n,this.hitTimeout=i}},Sa=class{constructor(e,n){this.lineRangeMapping=e,this.changes=n}};function Sc(t,e,n=(i,r)=>i===r){if(t===e)return!0;if(!t||!e||t.length!==e.length)return!1;for(let i=0,r=t.length;i<r;i++)if(!n(t[i],e[i]))return!1;return!0}function*kc(t,e){let n,i;for(const r of t)i!==void 0&&e(i,r)?n.push(r):(n&&(yield n),n=[r]),i=r;n&&(yield n)}function Lc(t,e){for(let n=0;n<=t.length;n++)e(n===0?void 0:t[n-1],n===t.length?void 0:t[n])}function Ac(t,e){for(let n=0;n<t.length;n++)e(n===0?void 0:t[n-1],t[n],n+1===t.length?void 0:t[n+1])}function Ec(t,e){for(const n of e)t.push(n)}var Vi;(function(t){function e(s){return s<0}t.isLessThan=e;function n(s){return s<=0}t.isLessThanOrEqual=n;function i(s){return s>0}t.isGreaterThan=i;function r(s){return s===0}t.isNeitherLessOrGreaterThan=r,t.greaterThan=1,t.lessThan=-1,t.neitherLessOrGreaterThan=0})(Vi||(Vi={}));function Nt(t,e){return(n,i)=>e(t(n),t(i))}const hn=(t,e)=>t-e;function Rc(t){return(e,n)=>-t(e,n)}const Jt=class Jt{constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate(n=>(e.push(n),!0)),e}filter(e){return new Jt(n=>this.iterate(i=>e(i)?n(i):!0))}map(e){return new Jt(n=>this.iterate(i=>n(e(i))))}findLast(e){let n;return this.iterate(i=>(e(i)&&(n=i),!0)),n}findLastMaxBy(e){let n,i=!0;return this.iterate(r=>((i||Vi.isGreaterThan(e(r,n)))&&(i=!1,n=r),!0)),n}};Jt.empty=new Jt(e=>{});let ka=Jt,G=class Te{static fromTo(e,n){return new Te(e,n)}static addRange(e,n){let i=0;for(;i<n.length&&n[i].endExclusive<e.start;)i++;let r=i;for(;r<n.length&&n[r].start<=e.endExclusive;)r++;if(i===r)n.splice(i,0,e);else{const s=Math.min(e.start,n[i].start),a=Math.max(e.endExclusive,n[r-1].endExclusive);n.splice(i,r-i,new Te(s,a))}}static tryCreate(e,n){if(!(e>n))return new Te(e,n)}static ofLength(e){return new Te(0,e)}static ofStartAndLength(e,n){return new Te(e,e+n)}static emptyAt(e){return new Te(e,e)}constructor(e,n){if(this.start=e,this.endExclusive=n,e>n)throw new oe(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(e){return new Te(this.start+e,this.endExclusive+e)}deltaStart(e){return new Te(this.start+e,this.endExclusive)}deltaEnd(e){return new Te(this.start,this.endExclusive+e)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}equals(e){return this.start===e.start&&this.endExclusive===e.endExclusive}containsRange(e){return this.start<=e.start&&e.endExclusive<=this.endExclusive}contains(e){return this.start<=e&&e<this.endExclusive}join(e){return new Te(Math.min(this.start,e.start),Math.max(this.endExclusive,e.endExclusive))}intersect(e){const n=Math.max(this.start,e.start),i=Math.min(this.endExclusive,e.endExclusive);if(n<=i)return new Te(n,i)}intersectionLength(e){const n=Math.max(this.start,e.start),i=Math.min(this.endExclusive,e.endExclusive);return Math.max(0,i-n)}intersects(e){const n=Math.max(this.start,e.start),i=Math.min(this.endExclusive,e.endExclusive);return n<i}intersectsOrTouches(e){const n=Math.max(this.start,e.start),i=Math.min(this.endExclusive,e.endExclusive);return n<=i}isBefore(e){return this.endExclusive<=e.start}isAfter(e){return this.start>=e.endExclusive}slice(e){return e.slice(this.start,this.endExclusive)}substring(e){return e.substring(this.start,this.endExclusive)}clip(e){if(this.isEmpty)throw new oe(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,e))}clipCyclic(e){if(this.isEmpty)throw new oe(`Invalid clipping range: ${this.toString()}`);return e<this.start?this.endExclusive-(this.start-e)%this.length:e>=this.endExclusive?this.start+(e-this.start)%this.length:e}forEach(e){for(let n=this.start;n<this.endExclusive;n++)e(n)}joinRightTouching(e){if(this.endExclusive!==e.start)throw new oe(`Invalid join: ${this.toString()} and ${e.toString()}`);return new Te(this.start,e.endExclusive)}withMargin(e,n){return n===void 0&&(n=e),new Te(this.start-e,this.endExclusive+n)}};function Dt(t,e){const n=Mt(t,e);return n===-1?void 0:t[n]}function Mt(t,e,n=0,i=t.length){let r=n,s=i;for(;r<s;){const a=Math.floor((r+s)/2);e(t[a])?r=a+1:s=a}return r-1}function Cc(t,e){const n=$i(t,e);return n===t.length?void 0:t[n]}function $i(t,e,n=0,i=t.length){let r=n,s=i;for(;r<s;){const a=Math.floor((r+s)/2);e(t[a])?s=a:r=a+1}return r}const ui=class ui{constructor(e){this._array=e,this._findLastMonotonousLastIdx=0}findLastMonotonous(e){if(ui.assertInvariants){if(this._prevFindLastPredicate){for(const i of this._array)if(this._prevFindLastPredicate(i)&&!e(i))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.")}this._prevFindLastPredicate=e}const n=Mt(this._array,e,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=n+1,n===-1?void 0:this._array[n]}};ui.assertInvariants=!1;let Wn=ui,K=(fe=class{static ofLength(e,n){return new fe(e,e+n)}static fromRange(e){return new fe(e.startLineNumber,e.endLineNumber)}static fromRangeInclusive(e){return new fe(e.startLineNumber,e.endLineNumber+1)}static joinMany(e){if(e.length===0)return[];let n=new Fn(e[0].slice());for(let i=1;i<e.length;i++)n=n.getUnion(new Fn(e[i].slice()));return n.ranges}static join(e){if(e.length===0)throw new oe("lineRanges cannot be empty");let n=e[0].startLineNumber,i=e[0].endLineNumberExclusive;for(let r=1;r<e.length;r++)n=Math.min(n,e[r].startLineNumber),i=Math.max(i,e[r].endLineNumberExclusive);return new fe(n,i)}static deserialize(e){return new fe(e[0],e[1])}constructor(e,n){if(e>n)throw new oe(`startLineNumber ${e} cannot be after endLineNumberExclusive ${n}`);this.startLineNumber=e,this.endLineNumberExclusive=n}contains(e){return this.startLineNumber<=e&&e<this.endLineNumberExclusive}get isEmpty(){return this.startLineNumber===this.endLineNumberExclusive}delta(e){return new fe(this.startLineNumber+e,this.endLineNumberExclusive+e)}deltaLength(e){return new fe(this.startLineNumber,this.endLineNumberExclusive+e)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(e){return new fe(Math.min(this.startLineNumber,e.startLineNumber),Math.max(this.endLineNumberExclusive,e.endLineNumberExclusive))}toString(){return`[${this.startLineNumber},${this.endLineNumberExclusive})`}intersect(e){const n=Math.max(this.startLineNumber,e.startLineNumber),i=Math.min(this.endLineNumberExclusive,e.endLineNumberExclusive);if(n<=i)return new fe(n,i)}intersectsStrict(e){return this.startLineNumber<e.endLineNumberExclusive&&e.startLineNumber<this.endLineNumberExclusive}intersectsOrTouches(e){return this.startLineNumber<=e.endLineNumberExclusive&&e.startLineNumber<=this.endLineNumberExclusive}equals(e){return this.startLineNumber===e.startLineNumber&&this.endLineNumberExclusive===e.endLineNumberExclusive}toInclusiveRange(){return this.isEmpty?null:new V(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new V(this.startLineNumber,1,this.endLineNumberExclusive,1)}mapToLineArray(e){const n=[];for(let i=this.startLineNumber;i<this.endLineNumberExclusive;i++)n.push(e(i));return n}forEach(e){for(let n=this.startLineNumber;n<this.endLineNumberExclusive;n++)e(n)}serialize(){return[this.startLineNumber,this.endLineNumberExclusive]}toOffsetRange(){return new G(this.startLineNumber-1,this.endLineNumberExclusive-1)}addMargin(e,n){return new fe(this.startLineNumber-e,this.endLineNumberExclusive+n)}},fe.compareByStart=Nt(e=>e.startLineNumber,hn),fe),Fn=class Yt{constructor(e=[]){this._normalizedRanges=e}get ranges(){return this._normalizedRanges}addRange(e){if(e.length===0)return;const n=$i(this._normalizedRanges,r=>r.endLineNumberExclusive>=e.startLineNumber),i=Mt(this._normalizedRanges,r=>r.startLineNumber<=e.endLineNumberExclusive)+1;if(n===i)this._normalizedRanges.splice(n,0,e);else if(n===i-1){const r=this._normalizedRanges[n];this._normalizedRanges[n]=r.join(e)}else{const r=this._normalizedRanges[n].join(this._normalizedRanges[i-1]).join(e);this._normalizedRanges.splice(n,i-n,r)}}contains(e){const n=Dt(this._normalizedRanges,i=>i.startLineNumber<=e);return!!n&&n.endLineNumberExclusive>e}intersects(e){const n=Dt(this._normalizedRanges,i=>i.startLineNumber<e.endLineNumberExclusive);return!!n&&n.endLineNumberExclusive>e.startLineNumber}getUnion(e){if(this._normalizedRanges.length===0)return e;if(e._normalizedRanges.length===0)return this;const n=[];let i=0,r=0,s=null;for(;i<this._normalizedRanges.length||r<e._normalizedRanges.length;){let a=null;if(i<this._normalizedRanges.length&&r<e._normalizedRanges.length){const l=this._normalizedRanges[i],o=e._normalizedRanges[r];l.startLineNumber<o.startLineNumber?(a=l,i++):(a=o,r++)}else i<this._normalizedRanges.length?(a=this._normalizedRanges[i],i++):(a=e._normalizedRanges[r],r++);s===null?s=a:s.endLineNumberExclusive>=a.startLineNumber?s=new K(s.startLineNumber,Math.max(s.endLineNumberExclusive,a.endLineNumberExclusive)):(n.push(s),s=a)}return s!==null&&n.push(s),new Yt(n)}subtractFrom(e){const n=$i(this._normalizedRanges,a=>a.endLineNumberExclusive>=e.startLineNumber),i=Mt(this._normalizedRanges,a=>a.startLineNumber<=e.endLineNumberExclusive)+1;if(n===i)return new Yt([e]);const r=[];let s=e.startLineNumber;for(let a=n;a<i;a++){const l=this._normalizedRanges[a];l.startLineNumber>s&&r.push(new K(s,l.startLineNumber)),s=l.endLineNumberExclusive}return s<e.endLineNumberExclusive&&r.push(new K(s,e.endLineNumberExclusive)),new Yt(r)}toString(){return this._normalizedRanges.map(e=>e.toString()).join(", ")}getIntersection(e){const n=[];let i=0,r=0;for(;i<this._normalizedRanges.length&&r<e._normalizedRanges.length;){const s=this._normalizedRanges[i],a=e._normalizedRanges[r],l=s.intersect(a);l&&!l.isEmpty&&n.push(l),s.endLineNumberExclusive<a.endLineNumberExclusive?i++:r++}return new Yt(n)}getWithDelta(e){return new Yt(this._normalizedRanges.map(n=>n.delta(e)))}};const He=class He{static betweenPositions(e,n){return e.lineNumber===n.lineNumber?new He(0,n.column-e.column):new He(n.lineNumber-e.lineNumber,n.column-1)}static fromPosition(e){return new He(e.lineNumber-1,e.column-1)}static ofRange(e){return He.betweenPositions(e.getStartPosition(),e.getEndPosition())}static ofText(e){let n=0,i=0;for(const r of e)r===`9`?(n++,i=0):i+=r.length;return new He(n,i)}constructor(e,n){this.lineCount=e,this.columnCount=n}isGreaterThanOrEqualTo(e){return this.lineCount!==e.lineCount?this.lineCount>e.lineCount:this.columnCount>=e.columnCount}add(e){return e.lineCount===0?new He(this.lineCount,this.columnCount+e.columnCount):new He(this.lineCount+e.lineCount,e.columnCount)}createRange(e){return this.lineCount===0?new V(e.lineNumber,e.column,e.lineNumber,e.column+this.columnCount):new V(e.lineNumber,e.column,e.lineNumber+this.lineCount,this.columnCount+1)}toRange(){return new V(1,1,this.lineCount+1,this.columnCount+1)}toLineRange(){return K.ofLength(1,this.lineCount+1)}addToPosition(e){return this.lineCount===0?new Y(e.lineNumber,e.column+this.columnCount):new Y(e.lineNumber+this.lineCount,this.columnCount+1)}toString(){return`${this.lineCount},${this.columnCount}`}};He.zero=new He(0,0);let et=He;class Nc{getOffsetRange(e){return new G(this.getOffset(e.getStartPosition()),this.getOffset(e.getEndPosition()))}getRange(e){return V.fromPositions(this.getPosition(e.start),this.getPosition(e.endExclusive))}getStringReplacement(e){return new dt.deps.StringReplacement(this.getOffsetRange(e.range),e.text)}getTextReplacement(e){return new dt.deps.TextReplacement(this.getRange(e.replaceRange),e.newText)}getTextEdit(e){const n=e.replacements.map(i=>this.getTextReplacement(i));return new dt.deps.TextEdit(n)}}const Er=class Er{static get deps(){if(!this._deps)throw new Error("Dependencies not set. Call _setDependencies first.");return this._deps}};Er._deps=void 0;let dt=Er;function Dc(t){dt._deps=t}class La extends Nc{constructor(e){super(),this.text=e}get lineStartOffsetByLineIdx(){return this._lineStartOffsetByLineIdx||this._computeLineOffsets(),this._lineStartOffsetByLineIdx}get lineEndOffsetByLineIdx(){return this._lineEndOffsetByLineIdx||this._computeLineOffsets(),this._lineEndOffsetByLineIdx}_computeLineOffsets(){this._lineStartOffsetByLineIdx=[],this._lineEndOffsetByLineIdx=[],this._lineStartOffsetByLineIdx.push(0);for(let e=0;e<this.text.length;e++)this.text.charAt(e)===`10`&&(this._lineStartOffsetByLineIdx.push(e+1),e>0&&this.text.charAt(e-1)==="\r"?this._lineEndOffsetByLineIdx.push(e-1):this._lineEndOffsetByLineIdx.push(e));this._lineEndOffsetByLineIdx.push(this.text.length)}getOffset(e){const n=this._validatePosition(e);return this.lineStartOffsetByLineIdx[n.lineNumber-1]+n.column-1}_validatePosition(e){if(e.lineNumber<1)return new Y(1,1);const n=this.textLength.lineCount+1;if(e.lineNumber>n){const r=this.getLineLength(n);return new Y(n,r+1)}if(e.column<1)return new Y(e.lineNumber,1);const i=this.getLineLength(e.lineNumber);return e.column-1>i?new Y(e.lineNumber,i+1):e}getPosition(e){const n=Mt(this.lineStartOffsetByLineIdx,s=>s<=e),i=n+1,r=e-this.lineStartOffsetByLineIdx[n]+1;return new Y(i,r)}get textLength(){const e=this.lineStartOffsetByLineIdx.length-1;return new dt.deps.TextLength(e,this.text.length-this.lineStartOffsetByLineIdx[e])}getLineLength(e){return this.lineEndOffsetByLineIdx[e-1]-this.lineStartOffsetByLineIdx[e-1]}}class Aa{constructor(){this._transformer=void 0}get endPositionExclusive(){return this.length.addToPosition(new Y(1,1))}get lineRange(){return this.length.toLineRange()}getValue(){return this.getValueOfRange(this.length.toRange())}getValueOfOffsetRange(e){return this.getValueOfRange(this.getTransformer().getRange(e))}getLineLength(e){return this.getValueOfRange(new V(e,1,e,Number.MAX_SAFE_INTEGER)).length}getTransformer(){return this._transformer||(this._transformer=new La(this.getValue())),this._transformer}getLineAt(e){return this.getValueOfRange(new V(e,1,e,Number.MAX_SAFE_INTEGER))}}class Mc extends Aa{constructor(e,n){Ol(n>=1),super(),this._getLineContent=e,this._lineCount=n}getValueOfRange(e){if(e.startLineNumber===e.endLineNumber)return this._getLineContent(e.startLineNumber).substring(e.startColumn-1,e.endColumn-1);let n=this._getLineContent(e.startLineNumber).substring(e.startColumn-1);for(let i=e.startLineNumber+1;i<e.endLineNumber;i++)n+=`11`+this._getLineContent(i);return n+=`12`+this._getLineContent(e.endLineNumber).substring(0,e.endColumn-1),n}getLineLength(e){return this._getLineContent(e).length}get length(){const e=this._getLineContent(this._lineCount);return new et(this._lineCount-1,e.length)}}let It=class extends Mc{constructor(e){super(n=>e[n-1],e.length)}};class Bn extends Aa{constructor(e){super(),this.value=e,this._t=new La(this.value)}getValueOfRange(e){return this._t.getOffsetRange(e).substring(this.value)}get length(){return this._t.textLength}getTransformer(){return this._t}}let Ea=class hi{static fromStringEdit(e,n){const i=e.replacements.map(r=>Ee.fromStringReplacement(r,n));return new hi(i)}static fromParallelReplacementsUnsorted(e){const n=e.slice().sort(Nt(i=>i.range,V.compareRangesUsingStarts));return new hi(n)}constructor(e){this.replacements=e,tn(()=>pi(e,(n,i)=>n.range.getEndPosition().isBeforeOrEqual(i.range.getStartPosition())))}normalize(){const e=[];for(const n of this.replacements)if(e.length>0&&e[e.length-1].range.getEndPosition().equals(n.range.getStartPosition())){const i=e[e.length-1];e[e.length-1]=new Ee(i.range.plusRange(n.range),i.text+n.text)}else n.isEmpty||e.push(n);return new hi(e)}mapPosition(e){let n=0,i=0,r=0;for(const s of this.replacements){const a=s.range.getStartPosition();if(e.isBeforeOrEqual(a))break;const l=s.range.getEndPosition(),o=et.ofText(s.text);if(e.isBefore(l)){const u=new Y(a.lineNumber+n,a.column+(a.lineNumber+n===i?r:0)),c=o.addToPosition(u);return qn(u,c)}a.lineNumber+n!==i&&(r=0),n+=o.lineCount-(s.range.endLineNumber-s.range.startLineNumber),o.lineCount===0?l.lineNumber!==a.lineNumber?r+=o.columnCount-(l.column-1):r+=o.columnCount-(l.column-a.column):r=o.columnCount,i=l.lineNumber+n}return new Y(e.lineNumber+n,e.column+(e.lineNumber+n===i?r:0))}mapRange(e){function n(a){return a instanceof Y?a:a.getStartPosition()}function i(a){return a instanceof Y?a:a.getEndPosition()}const r=n(this.mapPosition(e.getStartPosition())),s=i(this.mapPosition(e.getEndPosition()));return qn(r,s)}apply(e){let n="",i=new Y(1,1);for(const s of this.replacements){const a=s.range,l=a.getStartPosition(),o=a.getEndPosition(),u=qn(i,l);u.isEmpty()||(n+=e.getValueOfRange(u)),n+=s.text,i=o}const r=qn(i,e.endPositionExclusive);return r.isEmpty()||(n+=e.getValueOfRange(r)),n}applyToString(e){const n=new Bn(e);return this.apply(n)}getNewRanges(){const e=[];let n=0,i=0,r=0;for(const s of this.replacements){const a=et.ofText(s.text),l=Y.lift({lineNumber:s.range.startLineNumber+i,column:s.range.startColumn+(s.range.startLineNumber===n?r:0)}),o=a.createRange(l);e.push(o),i=o.endLineNumber-s.range.endLineNumber,r=o.endColumn-s.range.endColumn,n=s.range.endLineNumber}return e}toReplacement(e){if(this.replacements.length===0)throw new oe;if(this.replacements.length===1)return this.replacements[0];const n=this.replacements[0].range.getStartPosition(),i=this.replacements[this.replacements.length-1].range.getEndPosition();let r="";for(let s=0;s<this.replacements.length;s++){const a=this.replacements[s];if(r+=a.text,s<this.replacements.length-1){const l=this.replacements[s+1],o=V.fromPositions(a.range.getEndPosition(),l.range.getStartPosition()),u=e.getValueOfRange(o);r+=u}}return new Ee(V.fromPositions(n,i),r)}toString(e){return e===void 0?this.replacements.map(n=>n.toString()).join(`13`):typeof e=="string"?this.toString(new Bn(e)):this.replacements.length===0?"":this.replacements.map(n=>{const r=e.getValueOfRange(n.range),s=V.fromPositions(new Y(Math.max(1,n.range.startLineNumber-1),1),n.range.getStartPosition());let a=e.getValueOfRange(s);a.length>10&&(a="..."+a.substring(a.length-10));const l=V.fromPositions(n.range.getEndPosition(),new Y(n.range.endLineNumber+1,1));let o=e.getValueOfRange(l);o.length>10&&(o=o.substring(0,10)+"...");let u=r;if(u.length>10){const d=Math.floor(5);u=u.substring(0,d)+"..."+u.substring(u.length-d)}let c=n.text;if(c.length>10){const d=Math.floor(5);c=c.substring(0,d)+"..."+c.substring(c.length-d)}return u.length===0?`${a}❰${c}❱${o}`:`${a}❰${u}↦${c}❱${o}`}).join(`14`)}};class Ee{static joinReplacements(e,n){if(e.length===0)throw new oe;if(e.length===1)return e[0];const i=e[0].range.getStartPosition(),r=e[e.length-1].range.getEndPosition();let s="";for(let a=0;a<e.length;a++){const l=e[a];if(s+=l.text,a<e.length-1){const o=e[a+1],u=V.fromPositions(l.range.getEndPosition(),o.range.getStartPosition()),c=n.getValueOfRange(u);s+=c}}return new Ee(V.fromPositions(i,r),s)}static fromStringReplacement(e,n){return new Ee(n.getTransformer().getRange(e.replaceRange),e.newText)}static delete(e){return new Ee(e,"")}constructor(e,n){this.range=e,this.text=n}get isEmpty(){return this.range.isEmpty()&&this.text.length===0}static equals(e,n){return e.range.equalsRange(n.range)&&e.text===n.text}equals(e){return Ee.equals(this,e)}removeCommonPrefixAndSuffix(e){return this.removeCommonPrefix(e).removeCommonSuffix(e)}removeCommonPrefix(e){const n=e.getValueOfRange(this.range).replaceAll(`\r15`,`16`),i=this.text.replaceAll(`\r17`,`18`),r=ki(n,i),s=et.ofText(n.substring(0,r)).addToPosition(this.range.getStartPosition()),a=i.substring(r),l=V.fromPositions(s,this.range.getEndPosition());return new Ee(l,a)}removeCommonSuffix(e){const n=e.getValueOfRange(this.range).replaceAll(`\r19`,`20`),i=this.text.replaceAll(`\r21`,`22`),r=Li(n,i),s=et.ofText(n.substring(0,n.length-r)).addToPosition(this.range.getStartPosition()),a=i.substring(0,i.length-r),l=V.fromPositions(this.range.getStartPosition(),s);return new Ee(l,a)}toString(){const e=this.range.getStartPosition(),n=this.range.getEndPosition();return`(${e.lineNumber},${e.column} -> ${n.lineNumber},${n.column}): "${this.text}"`}}function qn(t,e){if(t.lineNumber===e.lineNumber&&t.column===Number.MAX_SAFE_INTEGER)return V.fromPositions(e,e);if(!t.isBeforeOrEqual(e))throw new oe("start must be before end");return new V(t.lineNumber,t.column,e.lineNumber,e.column)}let mt=class Zt{static inverse(e,n,i){const r=[];let s=1,a=1;for(const o of e){const u=new Zt(new K(s,o.original.startLineNumber),new K(a,o.modified.startLineNumber));u.modified.isEmpty||r.push(u),s=o.original.endLineNumberExclusive,a=o.modified.endLineNumberExclusive}const l=new Zt(new K(s,n+1),new K(a,i+1));return l.modified.isEmpty||r.push(l),r}static clip(e,n,i){const r=[];for(const s of e){const a=s.original.intersect(n),l=s.modified.intersect(i);a&&!a.isEmpty&&l&&!l.isEmpty&&r.push(new Zt(a,l))}return r}constructor(e,n){this.original=e,this.modified=n}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new Zt(this.modified,this.original)}join(e){return new Zt(this.original.join(e.original),this.modified.join(e.modified))}toRangeMapping(){const e=this.original.toInclusiveRange(),n=this.modified.toInclusiveRange();if(e&&n)return new Re(e,n);if(this.original.startLineNumber===1||this.modified.startLineNumber===1){if(!(this.modified.startLineNumber===1&&this.original.startLineNumber===1))throw new oe("not a valid diff");return new Re(new V(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new V(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1))}else return new Re(new V(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),new V(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER))}toRangeMapping2(e,n){if(Ra(this.original.endLineNumberExclusive,e)&&Ra(this.modified.endLineNumberExclusive,n))return new Re(new V(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new V(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1));if(!this.original.isEmpty&&!this.modified.isEmpty)return new Re(V.fromPositions(new Y(this.original.startLineNumber,1),zt(new Y(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),e)),V.fromPositions(new Y(this.modified.startLineNumber,1),zt(new Y(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),n)));if(this.original.startLineNumber>1&&this.modified.startLineNumber>1)return new Re(V.fromPositions(zt(new Y(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER),e),zt(new Y(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),e)),V.fromPositions(zt(new Y(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER),n),zt(new Y(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),n)));throw new oe}};function zt(t,e){if(t.lineNumber<1)return new Y(1,1);if(t.lineNumber>e.length)return new Y(e.length,e[e.length-1].length+1);const n=e[t.lineNumber-1];return t.column>n.length+1?new Y(t.lineNumber,n.length+1):t}function Ra(t,e){return t>=1&&t<=e.length}let Ht=class di extends mt{static toTextEdit(e,n){const i=[];for(const r of e)for(const s of r.innerChanges??[]){const a=s.toTextEdit(n);i.push(a)}return new Ea(i)}static fromRangeMappings(e){const n=K.join(e.map(r=>K.fromRangeInclusive(r.originalRange))),i=K.join(e.map(r=>K.fromRangeInclusive(r.modifiedRange)));return new di(n,i,e)}constructor(e,n,i){super(e,n),this.innerChanges=i}flip(){return new di(this.modified,this.original,this.innerChanges?.map(e=>e.flip()))}withInnerChangesFromLineRanges(){return new di(this.original,this.modified,[this.toRangeMapping()])}},Re=class Rr{static fromEdit(e){const n=e.getNewRanges();return e.replacements.map((r,s)=>new Rr(r.range,n[s]))}static assertSorted(e){for(let n=1;n<e.length;n++){const i=e[n-1],r=e[n];if(!(i.originalRange.getEndPosition().isBeforeOrEqual(r.originalRange.getStartPosition())&&i.modifiedRange.getEndPosition().isBeforeOrEqual(r.modifiedRange.getStartPosition())))throw new oe("Range mappings must be sorted")}}constructor(e,n){this.originalRange=e,this.modifiedRange=n}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new Rr(this.modifiedRange,this.originalRange)}toTextEdit(e){const n=e.getValueOfRange(this.modifiedRange);return new Ee(this.originalRange,n)}};function On(t,e,n,i=!1){const r=[];for(const s of kc(t.map(a=>Ic(a,e,n)),(a,l)=>a.original.intersectsOrTouches(l.original)||a.modified.intersectsOrTouches(l.modified))){const a=s[0],l=s[s.length-1];r.push(new Ht(a.original.join(l.original),a.modified.join(l.modified),s.map(o=>o.innerChanges[0])))}return tn(()=>!i&&r.length>0&&(r[0].modified.startLineNumber!==r[0].original.startLineNumber||n.length.lineCount-r[r.length-1].modified.endLineNumberExclusive!==e.length.lineCount-r[r.length-1].original.endLineNumberExclusive)?!1:pi(r,(s,a)=>a.original.startLineNumber-s.original.endLineNumberExclusive===a.modified.startLineNumber-s.modified.endLineNumberExclusive&&s.original.endLineNumberExclusive<a.original.startLineNum
Conversation
PartialSign in to start AI sessions.
Task checklist
- Application shell deployed
- Persistent projects
- Agent runtime
- Sandboxed terminal
Execution activity
No agent sessions. Git HEAD 0eebc42 on master.
Approval requests
None pending.