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-onlyapp/public/monaco-vs/assets/ts.worker-UVPVlqGu.js
1(function(){"use strict";var pg,YE,PN,zR;class h5e{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(f){setTimeout(()=>{throw f.stack?g2.isErrorNoTelemetry(f)?new g2(f.message+`23`+f.stack):new Error(f.message+`45`+f.stack):f},0)}}emit(f){this.listeners.forEach(T=>{T(f)})}onUnexpectedError(f){this.unexpectedErrorHandler(f),this.emit(f)}onUnexpectedExternalError(f){this.unexpectedErrorHandler(f)}}const _5e=new h5e;function _2(v){g5e(v)||_5e.onUnexpectedError(v)}function UQ(v){if(v instanceof Error){const{name:f,message:T,cause:M}=v,W=v.stacktrace||v.stack;return{$isError:!0,name:f,message:T,stack:W,noTelemetry:g2.isErrorNoTelemetry(v),cause:M?UQ(M):void 0,code:v.code}}return v}const HQ="Canceled";function g5e(v){return v instanceof iF?!0:v instanceof Error&&v.name===HQ&&v.message===HQ}class iF extends Error{constructor(){super(HQ),this.name=this.message}}class g2 extends Error{constructor(f){super(f),this.name="CodeExpectedError"}static fromError(f){if(f instanceof g2)return f;const T=new g2;return T.message=f.message,T.stack=f.stack,T}static isErrorNoTelemetry(f){return f.name==="CodeExpectedError"}}class hm extends Error{constructor(f){super(f||"An unexpected bug occurred."),Object.setPrototypeOf(this,hm.prototype)}}function y5e(v,f="Unreachable"){throw new Error(f)}function v5e(v,f="unexpected state"){if(!v)throw typeof f=="string"?new hm(`Assertion Failed: ${f}`):f}function oF(v){v()||(v(),_2(new hm("Assertion Failed")))}function qQ(v,f){let T=0;for(;T<v.length-1;){const M=v[T],W=v[T+1];if(!f(M,W))return!1;T++}return!0}function b5e(v){return typeof v=="string"}function T5e(v){return!!v&&typeof v[Symbol.iterator]=="function"}var e9;(function(v){function f(Hn){return!!Hn&&typeof Hn=="object"&&typeof Hn[Symbol.iterator]=="function"}v.is=f;const T=Object.freeze([]);function M(){return T}v.empty=M;function*W(Hn){yield Hn}v.single=W;function Y(Hn){return f(Hn)?Hn:W(Hn)}v.wrap=Y;function ce(Hn){return Hn??T}v.from=ce;function*Se(Hn){for(let _i=Hn.length-1;_i>=0;_i--)yield Hn[_i]}v.reverse=Se;function $(Hn){return!Hn||Hn[Symbol.iterator]().next().done===!0}v.isEmpty=$;function $e(Hn){return Hn[Symbol.iterator]().next().value}v.first=$e;function Oe(Hn,_i){let oo=0;for(const Wn of Hn)if(_i(Wn,oo++))return!0;return!1}v.some=Oe;function Le(Hn,_i){let oo=0;for(const Wn of Hn)if(!_i(Wn,oo++))return!1;return!0}v.every=Le;function Bt(Hn,_i){for(const oo of Hn)if(_i(oo))return oo}v.find=Bt;function*en(Hn,_i){for(const oo of Hn)_i(oo)&&(yield oo)}v.filter=en;function*mn(Hn,_i){let oo=0;for(const Wn of Hn)yield _i(Wn,oo++)}v.map=mn;function*on(Hn,_i){let oo=0;for(const Wn of Hn)yield*_i(Wn,oo++)}v.flatMap=on;function*xr(...Hn){for(const _i of Hn)T5e(_i)?yield*_i:yield _i}v.concat=xr;function pi(Hn,_i,oo){let Wn=oo;for(const Ha of Hn)Wn=_i(Wn,Ha);return Wn}v.reduce=pi;function vn(Hn){let _i=0;for(const oo of Hn)_i++;return _i}v.length=vn;function*Kt(Hn,_i,oo=Hn.length){for(_i<-Hn.length&&(_i=0),_i<0&&(_i+=Hn.length),oo<0?oo+=Hn.length:oo>Hn.length&&(oo=Hn.length);_i<oo;_i++)yield Hn[_i]}v.slice=Kt;function to(Hn,_i=Number.POSITIVE_INFINITY){const oo=[];if(_i===0)return[oo,Hn];const Wn=Hn[Symbol.iterator]();for(let Ha=0;Ha<_i;Ha++){const ea=Wn.next();if(ea.done)return[oo,v.empty()];oo.push(ea.value)}return[oo,{[Symbol.iterator](){return Wn}}]}v.consume=to;async function Ti(Hn){const _i=[];for await(const oo of Hn)_i.push(oo);return _i}v.asyncToArray=Ti;async function Qo(Hn){let _i=[];for await(const oo of Hn)_i=_i.concat(oo);return _i}v.asyncToArrayFlat=Qo})(e9||(e9={}));function iSt(v,f){}function Jve(v){if(e9.is(v)){const f=[];for(const T of v)if(T)try{T.dispose()}catch(M){f.push(M)}if(f.length===1)throw f[0];if(f.length>1)throw new AggregateError(f,"Encountered errors while disposing of store");return Array.isArray(v)?[]:v}else if(v)return v.dispose(),v}function S5e(...v){return y2(()=>Jve(v))}class E5e{constructor(f){this._isDisposed=!1,this._fn=f}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 y2(v){return new E5e(v)}const T9=class T9{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{Jve(this._toDispose)}finally{this._toDispose.clear()}}add(f){if(!f||f===CR.None)return f;if(f===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?T9.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(f),f}delete(f){if(f){if(f===this)throw new Error("Cannot dispose a disposable on itself!");this._toDispose.delete(f),f.dispose()}}};T9.DISABLE_DISPOSED_WARNING=!1;let v2=T9;const OZ=class OZ{constructor(){this._store=new v2,this._store}dispose(){this._store.dispose()}_register(f){if(f===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(f)}};OZ.None=Object.freeze({dispose(){}});let CR=OZ;const z2=class z2{constructor(f){this.element=f,this.next=z2.Undefined,this.prev=z2.Undefined}};z2.Undefined=new z2(void 0);let Cp=z2;class A5e{constructor(){this._first=Cp.Undefined,this._last=Cp.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Cp.Undefined}clear(){let f=this._first;for(;f!==Cp.Undefined;){const T=f.next;f.prev=Cp.Undefined,f.next=Cp.Undefined,f=T}this._first=Cp.Undefined,this._last=Cp.Undefined,this._size=0}unshift(f){return this._insert(f,!1)}push(f){return this._insert(f,!0)}_insert(f,T){const M=new Cp(f);if(this._first===Cp.Undefined)this._first=M,this._last=M;else if(T){const Y=this._last;this._last=M,M.prev=Y,Y.next=M}else{const Y=this._first;this._first=M,M.next=Y,Y.prev=M}this._size+=1;let W=!1;return()=>{W||(W=!0,this._remove(M))}}shift(){if(this._first!==Cp.Undefined){const f=this._first.element;return this._remove(this._first),f}}pop(){if(this._last!==Cp.Undefined){const f=this._last.element;return this._remove(this._last),f}}_remove(f){if(f.prev!==Cp.Undefined&&f.next!==Cp.Undefined){const T=f.prev;T.next=f.next,f.next.prev=T}else f.prev===Cp.Undefined&&f.next===Cp.Undefined?(this._first=Cp.Undefined,this._last=Cp.Undefined):f.next===Cp.Undefined?(this._last=this._last.prev,this._last.next=Cp.Undefined):f.prev===Cp.Undefined&&(this._first=this._first.next,this._first.prev=Cp.Undefined);this._size-=1}*[Symbol.iterator](){let f=this._first;for(;f!==Cp.Undefined;)yield f.element,f=f.next}}function I5e(){return globalThis._VSCODE_NLS_MESSAGES}function Kve(){return globalThis._VSCODE_NLS_LANGUAGE}const x5e=Kve()==="pseudo"||typeof document<"u"&&document.location&&typeof document.location.hash=="string"&&document.location.hash.indexOf("pseudo=true")>=0;function Xve(v,f){let T;return f.length===0?T=v:T=v.replace(/\{(\d+)\}/g,(M,W)=>{const Y=parseInt(W,10),ce=f[Y];let Se=M;return typeof ce=="string"?Se=ce:(typeof ce=="number"||typeof ce=="boolean"||ce===void 0||ce===null)&&(Se=String(ce)),Se}),x5e&&(T="["+T.replace(/[aouei]/g,"$&$&")+"]"),T}function Ds(v,f,...T){return Xve(typeof v=="number"?R5e(v,f):f,T)}function R5e(v,f){const T=I5e()?.[v];if(typeof T!="string"){if(typeof f=="string")return f;throw new Error(`!!! NLS MISSING: ${v} !!!`)}return T}const TN="en";let JQ=!1,KQ=!1,XQ=!1,aF,$Q=TN,$ve=TN,Yve=TN,D5e,KE;const SN=globalThis;let tv;typeof SN.vscode<"u"&&typeof SN.vscode.process<"u"?tv=SN.vscode.process:typeof process<"u"&&typeof process?.versions?.node=="string"&&(tv=process);const C5e=typeof tv?.versions?.electron=="string"&&tv?.type==="renderer";if(typeof tv=="object"){JQ=tv.platform==="win32",KQ=tv.platform==="darwin",XQ=tv.platform==="linux",XQ&&tv.env.SNAP&&tv.env.SNAP_REVISION,tv.env.CI||tv.env.BUILD_ARTIFACTSTAGINGDIRECTORY||tv.env.GITHUB_WORKSPACE,aF=TN,$Q=TN;const v=tv.env.VSCODE_NLS_CONFIG;if(v)try{const f=JSON.parse(v);aF=f.userLocale,$ve=f.osLocale,Yve=f.regionalLocale??f.osLocale,$Q=f.resolvedLanguage||TN,D5e=f.languagePack?.translationsConfigFile}catch{}}else typeof navigator=="object"&&!C5e?(KE=navigator.userAgent,JQ=KE.indexOf("Windows")>=0,KQ=KE.indexOf("Macintosh")>=0,(KE.indexOf("Macintosh")>=0||KE.indexOf("iPad")>=0||KE.indexOf("iPhone")>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>0,XQ=KE.indexOf("Linux")>=0,KE.indexOf("CrOS")>=0,KE?.indexOf("Mobi")>=0,$Q=Kve()||TN,aF=navigator.language.toLowerCase(),$ve=aF,Yve=aF):console.error("Unable to resolve platform.");const sF=JQ,N5e=KQ,M0=KE,M5e=typeof SN.postMessage=="function"&&!SN.importScripts;(()=>{if(M5e){const v=[];SN.addEventListener("message",T=>{if(T.data&&T.data.vscodeScheduleAsyncWork)for(let M=0,W=v.length;M<W;M++){const Y=v[M];if(Y.id===T.data.vscodeScheduleAsyncWork){v.splice(M,1),Y.callback();return}}});let f=0;return T=>{const M=++f;v.push({id:M,callback:T}),SN.postMessage({vscodeScheduleAsyncWork:M},"*")}}return v=>setTimeout(v)})();const P5e=!!(M0&&M0.indexOf("Chrome")>=0);M0&&M0.indexOf("Firefox")>=0,!P5e&&M0&&M0.indexOf("Safari")>=0,M0&&M0.indexOf("Edg/")>=0,M0&&M0.indexOf("Android")>=0,M0&&M0.indexOf("Electron")>=0;let b2;const YQ=globalThis.vscode;if(typeof YQ<"u"&&typeof YQ.process<"u"){const v=YQ.process;b2={get platform(){return v.platform},get arch(){return v.arch},get env(){return v.env},cwd(){return v.cwd()}}}else typeof process<"u"&&typeof process?.versions?.node=="string"?b2={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:b2={get platform(){return sF?"win32":N5e?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const t9=b2.cwd,Qve=b2.env,L5e=b2.platform,w5e=globalThis.performance.now.bind(globalThis.performance);class n9{static create(f){return new n9(f)}constructor(f){this._now=f===!1?Date.now:w5e,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 k5e=100,Zve=6e4;function ebe(){return!!Qve.VSCODE_DEV}var lF;(function(v){v.None=()=>CR.None;function f(qt,xo,$i){return Bt(qt,()=>{},0,void 0,xo??!0,void 0,$i)}v.defer=f;function T(qt){return(xo,$i=null,qo)=>{let fi=!1,bs;return bs=qt(Il=>{if(!fi)return bs?bs.dispose():fi=!0,xo.call($i,Il)},null,qo),fi&&bs.dispose(),bs}}v.once=T;function M(qt,xo){return v.once(v.filter(qt,xo))}v.onceIf=M;function W(qt,xo,$i){return Oe((qo,fi=null,bs)=>qt(Il=>qo.call(fi,xo(Il)),null,bs),$i)}v.map=W;function Y(qt,xo,$i){return Oe((qo,fi=null,bs)=>qt(Il=>{xo(Il),qo.call(fi,Il)},null,bs),$i)}v.forEach=Y;function ce(qt,xo,$i){return Oe((qo,fi=null,bs)=>qt(Il=>xo(Il)&&qo.call(fi,Il),null,bs),$i)}v.filter=ce;function Se(qt){return qt}v.signal=Se;function $(...qt){return(xo,$i=null,qo)=>{const fi=S5e(...qt.map(bs=>bs(Il=>xo.call($i,Il))));return Le(fi,qo)}}v.any=$;function $e(qt,xo,$i,qo){let fi=$i;return W(qt,bs=>(fi=xo(fi,bs),fi),qo)}v.reduce=$e;function Oe(qt,xo){let $i;const qo={onWillAddFirstListener(){$i=qt(fi.fire,fi)},onDidRemoveLastListener(){$i?.dispose()}},fi=new hS(qo);return xo?.add(fi),fi.event}function Le(qt,xo){return xo instanceof Array?xo.push(qt):xo&&xo.add(qt),qt}function Bt(qt,xo,$i=100,qo=!1,fi=!1,bs,Il){let _m=CR.None,zd,xi,Bd=0,Ff;const zf={leakWarningThreshold:bs,onWillAddFirstListener(){_m=qt(U2=>{Bd++,zd=xo(zd,U2),qo&&!xi&&(QE.fire(zd),zd=void 0),Ff=()=>{const xF=zd;zd=void 0,xi=void 0,(!qo||Bd>1)&&QE.fire(xF),Bd=0},typeof $i=="number"?(xi&&clearTimeout(xi),xi=setTimeout(Ff,$i)):xi===void 0&&(xi=null,queueMicrotask(Ff))})},onWillRemoveListener(){fi&&Bd>0&&Ff?.()},onDidRemoveLastListener(){Ff=void 0,_m.dispose()}},QE=new hS(zf);return Il?.add(QE),QE.event}v.debounce=Bt;function en(qt,xo=0,$i,qo){return v.debounce(qt,(fi,bs)=>fi?(fi.push(bs),fi):[bs],xo,void 0,$i??!0,void 0,qo)}v.accumulate=en;function mn(qt,xo,$i=100,qo=!0,fi=!0,bs,Il){let _m,zd,xi,Bd=0;const Ff={leakWarningThreshold:bs,onWillAddFirstListener(){_m=qt(QE=>{Bd++,zd=xo(zd,QE),xi===void 0&&(qo&&(zf.fire(zd),zd=void 0,Bd=0),typeof $i=="number"?xi=setTimeout(()=>{fi&&Bd>0&&zf.fire(zd),zd=void 0,xi=void 0,Bd=0},$i):(xi=0,queueMicrotask(()=>{fi&&Bd>0&&zf.fire(zd),zd=void 0,xi=void 0,Bd=0})))})},onDidRemoveLastListener(){_m.dispose()}},zf=new hS(Ff);return Il?.add(zf),zf.event}v.throttle=mn;function on(qt,xo=(qo,fi)=>qo===fi,$i){let qo=!0,fi;return ce(qt,bs=>{const Il=qo||!xo(bs,fi);return qo=!1,fi=bs,Il},$i)}v.latch=on;function xr(qt,xo,$i){return[v.filter(qt,xo,$i),v.filter(qt,qo=>!xo(qo),$i)]}v.split=xr;function pi(qt,xo,$i=!1,qo=[],fi){let bs=qo.slice(),Il;ebe()&&(Il={stack:r9.create(),timerId:setTimeout(()=>{bs&&bs.length>0&&Il&&!Il.warned&&(Il.warned=!0,console.warn(`[Event.buffer][${xo}] potential LEAK detected: ${bs.length} events buffered for ${Zve/1e3}s without being consumed. Buffered here:`),Il.stack.print())},Zve),warned:!1},fi&&fi.add(y2(()=>clearTimeout(Il.timerId))));const _m=()=>{Il&&clearTimeout(Il.timerId)};let zd=qt(Ff=>{bs?(bs.push(Ff),ebe()&&Il&&!Il.warned&&bs.length>=k5e&&(Il.warned=!0,console.warn(`[Event.buffer][${xo}] potential LEAK detected: ${bs.length} events buffered without being consumed. Buffered here:`),Il.stack.print())):Bd.fire(Ff)});fi&&fi.add(zd);const xi=()=>{bs?.forEach(Ff=>Bd.fire(Ff)),bs=null,_m()},Bd=new hS({onWillAddFirstListener(){zd||(zd=qt(Ff=>Bd.fire(Ff)),fi&&fi.add(zd))},onDidAddFirstListener(){bs&&($i?setTimeout(xi):xi())},onDidRemoveLastListener(){zd&&zd.dispose(),zd=null,_m()}});return fi&&fi.add(Bd),Bd.event}v.buffer=pi;function vn(qt,xo){return(qo,fi,bs)=>{const Il=xo(new to);return qt(function(_m){const zd=Il.evaluate(_m);zd!==Kt&&qo.call(fi,zd)},void 0,bs)}}v.chain=vn;const Kt=Symbol("HaltChainable");class to{constructor(){this.steps=[]}map(xo){return this.steps.push(xo),this}forEach(xo){return this.steps.push($i=>(xo($i),$i)),this}filter(xo){return this.steps.push($i=>xo($i)?$i:Kt),this}reduce(xo,$i){let qo=$i;return this.steps.push(fi=>(qo=xo(qo,fi),qo)),this}latch(xo=($i,qo)=>$i===qo){let $i=!0,qo;return this.steps.push(fi=>{const bs=$i||!xo(fi,qo);return $i=!1,qo=fi,bs?fi:Kt}),this}evaluate(xo){for(const $i of this.steps)if(xo=$i(xo),xo===Kt)break;return xo}}function Ti(qt,xo,$i=qo=>qo){const qo=(..._m)=>Il.fire($i(..._m)),fi=()=>qt.on(xo,qo),bs=()=>qt.removeListener(xo,qo),Il=new hS({onWillAddFirstListener:fi,onDidRemoveLastListener:bs});return Il.event}v.fromNodeEventEmitter=Ti;function Qo(qt,xo,$i=qo=>qo){const qo=(..._m)=>Il.fire($i(..._m)),fi=()=>qt.addEventListener(xo,qo),bs=()=>qt.removeEventListener(xo,qo),Il=new hS({onWillAddFirstListener:fi,onDidRemoveLastListener:bs});return Il.event}v.fromDOMEventEmitter=Qo;function Hn(qt,xo){let $i,qo;const fi=new Promise(bs=>{qo=T(qt)(bs),eZ(qo,xo),$i=()=>{tbe(qo,xo)}});return fi.cancel=$i,xo&&fi.finally(()=>tbe(qo,xo)),fi}v.toPromise=Hn;function _i(qt,xo){return qt($i=>xo.fire($i))}v.forward=_i;function oo(qt,xo,$i){return xo($i),qt(qo=>xo(qo))}v.runAndSubscribe=oo;class Wn{constructor(xo,$i){this._observable=xo,this._counter=0,this._hasChanged=!1;const qo={onWillAddFirstListener:()=>{xo.addObserver(this),this._observable.reportChanges()},onDidRemoveLastListener:()=>{xo.removeObserver(this)}};this.emitter=new hS(qo),$i&&$i.add(this.emitter)}beginUpdate(xo){this._counter++}handlePossibleChange(xo){}handleChange(xo,$i){this._hasChanged=!0}endUpdate(xo){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function Ha(qt,xo){return new Wn(qt,xo).emitter.event}v.fromObservable=Ha;function ea(qt){return(xo,$i,qo)=>{let fi=0,bs=!1;const Il={beginUpdate(){fi++},endUpdate(){fi--,fi===0&&(qt.reportChanges(),bs&&(bs=!1,xo.call($i)))},handlePossibleChange(){},handleChange(){bs=!0}};qt.addObserver(Il),qt.reportChanges();const _m={dispose(){qt.removeObserver(Il)}};return eZ(_m,qo),_m}}v.fromObservableLight=ea})(lF||(lF={}));const B2=class B2{constructor(f){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${f}_${B2._idPool++}`,B2.all.add(this)}start(f){this._stopWatch=new n9,this.listenerCount=f}stop(){if(this._stopWatch){const f=this._stopWatch.elapsed();this.durations.push(f),this.elapsedOverall+=f,this.invocationCount+=1,this._stopWatch=void 0}}};B2.all=new Set,B2._idPool=0;let QQ=B2,O5e=-1,W5e=1;function F5e(){return(W5e++).toString(16).padStart(3,"0")}class z5e{constructor(f,T,M=F5e()){this._errorHandler=f,this.threshold=T,this.name=M,this._warnCountdown=0}dispose(){this._stacks?.clear()}check(f,T){const M=this.threshold;if(M<=0||T<M)return;this._stacks||(this._stacks=new Map);const W=f.value,Y=this._stacks.get(W)||0;if(this._stacks.set(W,Y+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=M*.5;const[ce,Se]=this.getMostFrequentStack(),$=/^[0-9a-f]+$/i.test(this.name)?void 0:this.name,$e=`[${this.name}] potential listener LEAK detected, having ${T} listeners already. MOST frequent listener (${Se}):`;console.warn($e),console.warn(ce);const Oe=Se/T>.3?"dominated":"popular",Le=new i9(Oe,$e,ce,T,$);this._errorHandler(Le)}return()=>{const ce=this._stacks.get(W)||0;ce<=1?this._stacks.delete(W):this._stacks.set(W,ce-1)}}getMostFrequentStack(){if(!this._stacks)return;let f,T=0;for(const[M,W]of this._stacks)(!f||T<W)&&(f=[M,W],T=W);return f}}class r9{static create(){const f=new Error;return new r9(f.stack??"")}constructor(f){this.value=f}print(){console.warn(this.value.split(`6`).slice(2).join(`7`))}}class i9 extends Error{constructor(f,T,M,W,Y){super(Y?`[${Y}] potential listener LEAK detected, ${f}`:`potential listener LEAK detected, ${f}`),this.name="ListenerLeakError",this.kind=f,this.listenerCount=W,this.details=T,this.stack=M}static is(f){return f instanceof i9||f instanceof Error&&typeof f.kind=="string"&&typeof f.listenerCount=="number"}}class B5e extends i9{constructor(f,T,M,W,Y){super(f,T,M,W,Y),this.name="ListenerRefusalError"}}class ZQ{constructor(f){this.value=f}}const G5e=2;class hS{constructor(f){this._size=0,this._options=f,this._options?.leakWarningThreshold&&(this._leakWarningThreshold=this._options?.leakWarningThreshold??O5e,this._leakWarningName=this._options?.leakWarningName,this._leakWarningErrorHandler=this._options?.onListenerError??_2),this._perfMon=this._options?._profName?new QQ(this._options._profName):void 0,this._deliveryQueue=this._options?.deliveryQueue}_getLeakageMonitor(){if(!(this._leakWarningThreshold===void 0||this._leakWarningErrorHandler===void 0))return this._leakageMon??=new z5e(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??=(f,T,M)=>{if(this._leakWarningThreshold!==void 0&&this._size>this._leakWarningThreshold**2){const Se=this._getLeakageMonitor();if(Se){const $=`[${Se.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${Se.threshold})`;console.warn($);const $e=Se.getMostFrequentStack()??["UNKNOWN stack",-1],Oe=$e[1]/this._size>.3?"dominated":"popular",Le=new B5e(Oe,`${$}. HINT: Stack shows most frequent listener (${$e[1]}-times)`,$e[0],this._size,this._options?.leakWarningName);return(this._options?.onListenerError||_2)(Le),CR.None}}if(this._disposed)return CR.None;T&&(f=f.bind(T));const W=new ZQ(f);let Y;if(this._leakWarningThreshold!==void 0&&this._size>=Math.ceil(this._leakWarningThreshold*.2)){const Se=this._getLeakageMonitor();Se&&this._size+1>=Se.threshold&&(W.stack=r9.create(),Y=Se.check(W.stack,this._size+1))}this._listeners?this._listeners instanceof ZQ?(this._deliveryQueue??=new V5e,this._listeners=[this._listeners,W]):this._listeners.push(W):(this._options?.onWillAddFirstListener?.(this),this._listeners=W,this._options?.onDidAddFirstListener?.(this)),this._options?.onDidAddListener?.(this),this._size++;const ce=y2(()=>{Y?.(),this._removeListener(W)});return eZ(ce,M),ce},this._event}_removeListener(f){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 T=this._listeners,M=T.indexOf(f);if(M===-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--,T[M]=void 0;const W=this._deliveryQueue.current===this;if(this._size*G5e<=T.length){let Y=0;for(let ce=0;ce<T.length;ce++)T[ce]?T[Y++]=T[ce]:W&&Y<this._deliveryQueue.end&&(this._deliveryQueue.end--,Y<this._deliveryQueue.i&&this._deliveryQueue.i--);T.length=Y}}_deliver(f,T){if(!f)return;const M=this._options?.onListenerError||_2;if(!M){f.value(T);return}try{f.value(T)}catch(W){M(W)}}_deliverQueue(f){const T=f.current._listeners;for(;f.i<f.end;)this._deliver(T[f.i++],f.value);f.reset()}fire(f){if(this._deliveryQueue?.current&&(this._deliverQueue(this._deliveryQueue),this._perfMon?.stop()),this._perfMon?.start(this._size),this._listeners)if(this._listeners instanceof ZQ)this._deliver(this._listeners,f);else{const T=this._deliveryQueue;T.enqueue(this,f,this._listeners.length),this._deliverQueue(T)}this._perfMon?.stop()}hasListeners(){return this._size>0}}class V5e{constructor(){this.i=-1,this.end=0}enqueue(f,T,M){this.i=0,this.end=M,this.current=f,this.value=T}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}function eZ(v,f){f instanceof v2?f.add(v):Array.isArray(f)&&f.push(v)}function tbe(v,f){if(f instanceof v2)f.delete(v);else if(Array.isArray(f)){const T=f.indexOf(v);T!==-1&&f.splice(T,1)}v.dispose()}function j5e(v){return v}class U5e{constructor(f,T){this.lastCache=void 0,this.lastArgKey=void 0,typeof f=="function"?(this._fn=f,this._computeKey=j5e):(this._fn=T,this._computeKey=f.getCacheKey)}get(f){const T=this._computeKey(f);return this.lastArgKey!==T&&(this.lastArgKey=T,this.lastCache=this._fn(f)),this.lastCache}}var EN;(function(v){v[v.Uninitialized=0]="Uninitialized",v[v.Running=1]="Running",v[v.Completed=2]="Completed"})(EN||(EN={}));class tZ{constructor(f){this.executor=f,this._state=EN.Uninitialized}get value(){if(this._state===EN.Uninitialized){this._state=EN.Running;try{this._value=this.executor()}catch(f){this._error=f}finally{this._state=EN.Completed}}else if(this._state===EN.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 H5e(v){return v.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function q5e(v){return v.source==="^"||v.source==="^$"||v.source==="$"||v.source==="^\\s*$"?!1:!!(v.exec("")&&v.lastIndex===0)}function J5e(v){return v.split(/\r\n|\r|\n/)}function K5e(v){for(let f=0,T=v.length;f<T;f++){const M=v.charCodeAt(f);if(M!==32&&M!==9)return f}return-1}function X5e(v,f=v.length-1){for(let T=f;T>=0;T--){const M=v.charCodeAt(T);if(M!==32&&M!==9)return T}return-1}function nbe(v){return v>=65&&v<=90}function nZ(v,f){const T=Math.min(v.length,f.length);let M;for(M=0;M<T;M++)if(v.charCodeAt(M)!==f.charCodeAt(M))return M;return T}function rZ(v,f){const T=Math.min(v.length,f.length);let M;const W=v.length-1,Y=f.length-1;for(M=0;M<T;M++)if(v.charCodeAt(W-M)!==f.charCodeAt(Y-M))return M;return T}function NR(v){return 55296<=v&&v<=56319}function o9(v){return 56320<=v&&v<=57343}function rbe(v,f){return(v-55296<<10)+(f-56320)+65536}function $5e(v,f,T){const M=v.charCodeAt(T);if(NR(M)&&T+1<f){const W=v.charCodeAt(T+1);if(o9(W))return rbe(M,W)}return M}const Y5e=/^[\t\n\r\x20-\x7E]*$/;function Q5e(v){return Y5e.test(v)}const $E=class $E{static getInstance(f){return $E.cache.get(Array.from(f).join(","))}static getLocales(){return $E._locales.value}constructor(f){this.confusableDictionary=f}isAmbiguous(f){return this.confusableDictionary.has(f)}getPrimaryConfusable(f){return this.confusableDictionary.get(f)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}};$E.ambiguousCharacterData=new tZ(()=>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]}')),$E.cache=new U5e(f=>{const T=f.split(",");function M(Le){const Bt=new Map;for(let en=0;en<Le.length;en+=2)Bt.set(Le[en],Le[en+1]);return Bt}function W(Le,Bt){const en=new Map(Le);for(const[mn,on]of Bt)en.set(mn,on);return en}function Y(Le,Bt){if(!Le)return Bt;const en=new Map;for(const[mn,on]of Le)Bt.has(mn)&&en.set(mn,on);return en}const ce=$E.ambiguousCharacterData.value;let Se=T.filter(Le=>!Le.startsWith("_")&&Object.hasOwn(ce,Le));Se.length===0&&(Se=["_default"]);let $;for(const Le of Se){const Bt=M(ce[Le]);$=Y($,Bt)}const $e=M(ce._common),Oe=W($e,$);return new $E(Oe)}),$E._locales=new tZ(()=>Object.keys($E.ambiguousCharacterData.value).filter(f=>!f.startsWith("_")));let cF=$E;const G2=class G2{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(G2.getRawData())].flat())),this._data}static isInvisibleCharacter(f){return G2.getData().has(f)}static get codePoints(){return G2.getData()}};G2._data=void 0;let dF=G2;const iZ="default",Z5e="$initialize";class eBe{constructor(f,T,M,W,Y){this.vsWorker=f,this.req=T,this.channel=M,this.method=W,this.args=Y,this.type=0}}class ibe{constructor(f,T,M,W){this.vsWorker=f,this.seq=T,this.res=M,this.err=W,this.type=1}}class tBe{constructor(f,T,M,W,Y){this.vsWorker=f,this.req=T,this.channel=M,this.eventName=W,this.arg=Y,this.type=2}}class nBe{constructor(f,T,M){this.vsWorker=f,this.req=T,this.event=M,this.type=3}}class rBe{constructor(f,T){this.vsWorker=f,this.req=T,this.type=4}}class iBe{constructor(f){this._workerId=-1,this._handler=f,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(f){this._workerId=f}async sendMessage(f,T,M){const W=String(++this._lastSentReq);return new Promise((Y,ce)=>{this._pendingReplies[W]={resolve:Y,reject:ce},this._send(new eBe(this._workerId,W,f,T,M))})}listen(f,T,M){let W=null;const Y=new hS({onWillAddFirstListener:()=>{W=String(++this._lastSentReq),this._pendingEmitters.set(W,Y),this._send(new tBe(this._workerId,W,f,T,M))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(W),this._send(new rBe(this._workerId,W)),W=null}});return Y.event}handleMessage(f){!f||!f.vsWorker||this._workerId!==-1&&f.vsWorker!==this._workerId||this._handleMessage(f)}createProxyToRemoteChannel(f,T){const M={get:(W,Y)=>(typeof Y=="string"&&!W[Y]&&(abe(Y)?W[Y]=ce=>this.listen(f,Y,ce):obe(Y)?W[Y]=this.listen(f,Y,void 0):Y.charCodeAt(0)===36&&(W[Y]=async(...ce)=>(await T?.(),this.sendMessage(f,Y,ce)))),W[Y])};return new Proxy(Object.create(null),M)}_handleMessage(f){switch(f.type){case 1:return this._handleReplyMessage(f);case 0:return this._handleRequestMessage(f);case 2:return this._handleSubscribeEventMessage(f);case 3:return this._handleEventMessage(f);case 4:return this._handleUnsubscribeEventMessage(f)}}_handleReplyMessage(f){if(!this._pendingReplies[f.seq]){console.warn("Got reply to unknown seq");return}const T=this._pendingReplies[f.seq];if(delete this._pendingReplies[f.seq],f.err){let M=f.err;if(f.err.$isError){const W=new Error;W.name=f.err.name,W.message=f.err.message,W.stack=f.err.stack,M=W}T.reject(M);return}T.resolve(f.res)}_handleRequestMessage(f){const T=f.req;this._handler.handleMessage(f.channel,f.method,f.args).then(W=>{this._send(new ibe(this._workerId,T,W,void 0))},W=>{W.detail instanceof Error&&(W.detail=UQ(W.detail)),this._send(new ibe(this._workerId,T,void 0,UQ(W)))})}_handleSubscribeEventMessage(f){const T=f.req,M=this._handler.handleEvent(f.channel,f.eventName,f.arg)(W=>{this._send(new nBe(this._workerId,T,W))});this._pendingEvents.set(T,M)}_handleEventMessage(f){const T=this._pendingEmitters.get(f.req);if(T===void 0){console.warn("Got event for unknown req");return}T.fire(f.event)}_handleUnsubscribeEventMessage(f){const T=this._pendingEvents.get(f.req);if(T===void 0){console.warn("Got unsubscribe for unknown req");return}T.dispose(),this._pendingEvents.delete(f.req)}_send(f){const T=[];if(f.type===0)for(let M=0;M<f.args.length;M++){const W=f.args[M];W instanceof ArrayBuffer&&T.push(W)}else f.type===1&&f.res instanceof ArrayBuffer&&T.push(f.res);this._handler.sendMessage(f,T)}}function obe(v){return v[0]==="o"&&v[1]==="n"&&nbe(v.charCodeAt(2))}function abe(v){return/^onDynamic/.test(v)&&nbe(v.charCodeAt(9))}class oBe{constructor(f,T){this._localChannels=new Map,this._remoteChannels=new Map,this._protocol=new iBe({sendMessage:(M,W)=>{f(M,W)},handleMessage:(M,W,Y)=>this._handleMessage(M,W,Y),handleEvent:(M,W,Y)=>this._handleEvent(M,W,Y)}),this.requestHandler=T(this)}onmessage(f){this._protocol.handleMessage(f)}_handleMessage(f,T,M){if(f===iZ&&T===Z5e)return this.initialize(M[0]);const W=f===iZ?this.requestHandler:this._localChannels.get(f);if(!W)return Promise.reject(new Error(`Missing channel ${f} on worker thread`));const Y=W[T];if(typeof Y!="function")return Promise.reject(new Error(`Missing method ${T} on worker thread channel ${f}`));try{return Promise.resolve(Y.apply(W,M))}catch(ce){return Promise.reject(ce)}}_handleEvent(f,T,M){const W=f===iZ?this.requestHandler:this._localChannels.get(f);if(!W)throw new Error(`Missing channel ${f} on worker thread`);if(abe(T)){const Y=W[T];if(typeof Y!="function")throw new Error(`Missing dynamic event ${T} on request handler.`);const ce=Y.call(W,M);if(typeof ce!="function")throw new Error(`Missing dynamic event ${T} on request handler.`);return ce}if(obe(T)){const Y=W[T];if(typeof Y!="function")throw new Error(`Missing event ${T} on request handler.`);return Y}throw new Error(`Malformed event name ${T}`)}getChannel(f){let T=this._remoteChannels.get(f);return T===void 0&&(T=this._protocol.createProxyToRemoteChannel(f),this._remoteChannels.set(f,T)),T}async initialize(f){this._protocol.setWorkerId(f)}}let sbe=!1;function aBe(v){if(sbe)throw new Error("WebWorker already initialized!");sbe=!0;const f=new oBe(T=>globalThis.postMessage(T),T=>v(T));return globalThis.onmessage=T=>{f.onmessage(T.data)},f}class MR{constructor(f,T,M,W){this.originalStart=f,this.originalLength=T,this.modifiedStart=M,this.modifiedLength=W}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}new tZ(()=>new Uint8Array(256));function lbe(v,f){return(f<<5)-f+v|0}function sBe(v,f){f=lbe(149417,f);for(let T=0,M=v.length;T<M;T++)f=lbe(v.charCodeAt(T),f);return f}class cbe{constructor(f){this.source=f}getElements(){const f=this.source,T=new Int32Array(f.length);for(let M=0,W=f.length;M<W;M++)T[M]=f.charCodeAt(M);return T}}class dbe{constructor(f){let T=0;for(let W=0;W<f.length;){const Y=f.charCodeAt(W);W+=NR(Y)&&W+1<f.length&&o9(f.charCodeAt(W+1))?2:1,T++}this.elements=new Int32Array(T),this.offsets=new Int32Array(T+1);let M=0;for(let W=0;W<f.length;M++){this.offsets[M]=W;const Y=f.charCodeAt(W);if(NR(Y)&&W+1<f.length){const ce=f.charCodeAt(W+1);if(o9(ce)){this.elements[M]=rbe(Y,ce),W+=2;continue}}this.elements[M]=Y,W++}this.offsets[T]=f.length}getElements(){return this.elements}getOffset(f){return this.offsets[f]}}function lBe(v,f,T){if(!ube(v)&&!ube(f))return new eI(new cbe(v),new cbe(f)).ComputeDiff(T).changes;const M=new dbe(v),W=new dbe(f);return new eI(M,W).ComputeDiff(T).changes.map(Y=>{const ce=M.getOffset(Y.originalStart),Se=M.getOffset(Y.originalStart+Y.originalLength),$=W.getOffset(Y.modifiedStart),$e=W.getOffset(Y.modifiedStart+Y.modifiedLength);return{originalStart:ce,originalLength:Se-ce,modifiedStart:$,modifiedLength:$e-$}})}function ube(v){for(let f=0;f+1<v.length;f++)if(NR(v.charCodeAt(f))&&o9(v.charCodeAt(f+1)))return!0;return!1}class T2{static Assert(f,T){if(!f)throw new Error(T)}}class S2{static Copy(f,T,M,W,Y){for(let ce=0;ce<Y;ce++)M[W+ce]=f[T+ce]}static Copy2(f,T,M,W,Y){for(let ce=0;ce<Y;ce++)M[W+ce]=f[T+ce]}}class pbe{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 MR(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(f,T){this.m_originalStart=Math.min(this.m_originalStart,f),this.m_modifiedStart=Math.min(this.m_modifiedStart,T),this.m_originalCount++}AddModifiedElement(f,T){this.m_originalStart=Math.min(this.m_originalStart,f),this.m_modifiedStart=Math.min(this.m_modifiedStart,T),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 eI{constructor(f,T,M=null){this.ContinueProcessingPredicate=M,this._originalSequence=f,this._modifiedSequence=T;const[W,Y,ce]=eI._getElements(f),[Se,$,$e]=eI._getElements(T);this._hasStrings=ce&&$e,this._originalStringElements=W,this._originalElementsOrHash=Y,this._modifiedStringElements=Se,this._modifiedElementsOrHash=$,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(f){return f.length>0&&typeof f[0]=="string"}static _getElements(f){const T=f.getElements();if(eI._isStringArray(T)){const M=new Int32Array(T.length);for(let W=0,Y=T.length;W<Y;W++)M[W]=sBe(T[W],0);return[T,M,!0]}return T instanceof Int32Array?[[],T,!1]:[[],new Int32Array(T),!1]}ElementsAreEqual(f,T){return this._originalElementsOrHash[f]!==this._modifiedElementsOrHash[T]?!1:this._hasStrings?this._originalStringElements[f]===this._modifiedStringElements[T]:!0}ElementsAreStrictEqual(f,T){if(!this.ElementsAreEqual(f,T))return!1;const M=eI._getStrictElement(this._originalSequence,f),W=eI._getStrictElement(this._modifiedSequence,T);return M===W}static _getStrictElement(f,T){return typeof f.getStrictElement=="function"?f.getStrictElement(T):null}OriginalElementsAreEqual(f,T){return this._originalElementsOrHash[f]!==this._originalElementsOrHash[T]?!1:this._hasStrings?this._originalStringElements[f]===this._originalStringElements[T]:!0}ModifiedElementsAreEqual(f,T){return this._modifiedElementsOrHash[f]!==this._modifiedElementsOrHash[T]?!1:this._hasStrings?this._modifiedStringElements[f]===this._modifiedStringElements[T]:!0}ComputeDiff(f){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,f)}_ComputeDiff(f,T,M,W,Y){const ce=[!1];let Se=this.ComputeDiffRecursive(f,T,M,W,ce);return Y&&(Se=this.PrettifyChanges(Se)),{quitEarly:ce[0],changes:Se}}ComputeDiffRecursive(f,T,M,W,Y){for(Y[0]=!1;f<=T&&M<=W&&this.ElementsAreEqual(f,M);)f++,M++;for(;T>=f&&W>=M&&this.ElementsAreEqual(T,W);)T--,W--;if(f>T||M>W){let Le;return M<=W?(T2.Assert(f===T+1,"originalStart should only be one more than originalEnd"),Le=[new MR(f,0,M,W-M+1)]):f<=T?(T2.Assert(M===W+1,"modifiedStart should only be one more than modifiedEnd"),Le=[new MR(f,T-f+1,M,0)]):(T2.Assert(f===T+1,"originalStart should only be one more than originalEnd"),T2.Assert(M===W+1,"modifiedStart should only be one more than modifiedEnd"),Le=[]),Le}const ce=[0],Se=[0],$=this.ComputeRecursionPoint(f,T,M,W,ce,Se,Y),$e=ce[0],Oe=Se[0];if($!==null)return $;if(!Y[0]){const Le=this.ComputeDiffRecursive(f,$e,M,Oe,Y);let Bt=[];return Y[0]?Bt=[new MR($e+1,T-($e+1)+1,Oe+1,W-(Oe+1)+1)]:Bt=this.ComputeDiffRecursive($e+1,T,Oe+1,W,Y),this.ConcatenateChanges(Le,Bt)}return[new MR(f,T-f+1,M,W-M+1)]}WALKTRACE(f,T,M,W,Y,ce,Se,$,$e,Oe,Le,Bt,en,mn,on,xr,pi,vn){let Kt=null,to=null,Ti=new pbe,Qo=T,Hn=M,_i=en[0]-xr[0]-W,oo=-1073741824,Wn=this.m_forwardHistory.length-1;do{const Ha=_i+f;Ha===Qo||Ha<Hn&&$e[Ha-1]<$e[Ha+1]?(Le=$e[Ha+1],mn=Le-_i-W,Le<oo&&Ti.MarkNextChange(),oo=Le,Ti.AddModifiedElement(Le+1,mn),_i=Ha+1-f):(Le=$e[Ha-1]+1,mn=Le-_i-W,Le<oo&&Ti.MarkNextChange(),oo=Le-1,Ti.AddOriginalElement(Le,mn+1),_i=Ha-1-f),Wn>=0&&($e=this.m_forwardHistory[Wn],f=$e[0],Qo=1,Hn=$e.length-1)}while(--Wn>=-1);if(Kt=Ti.getReverseChanges(),vn[0]){let Ha=en[0]+1,ea=xr[0]+1;if(Kt!==null&&Kt.length>0){const qt=Kt[Kt.length-1];Ha=Math.max(Ha,qt.getOriginalEnd()),ea=Math.max(ea,qt.getModifiedEnd())}to=[new MR(Ha,Bt-Ha+1,ea,on-ea+1)]}else{Ti=new pbe,Qo=ce,Hn=Se,_i=en[0]-xr[0]-$,oo=1073741824,Wn=pi?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const Ha=_i+Y;Ha===Qo||Ha<Hn&&Oe[Ha-1]>=Oe[Ha+1]?(Le=Oe[Ha+1]-1,mn=Le-_i-$,Le>oo&&Ti.MarkNextChange(),oo=Le+1,Ti.AddOriginalElement(Le+1,mn+1),_i=Ha+1-Y):(Le=Oe[Ha-1],mn=Le-_i-$,Le>oo&&Ti.MarkNextChange(),oo=Le,Ti.AddModifiedElement(Le+1,mn+1),_i=Ha-1-Y),Wn>=0&&(Oe=this.m_reverseHistory[Wn],Y=Oe[0],Qo=1,Hn=Oe.length-1)}while(--Wn>=-1);to=Ti.getChanges()}return this.ConcatenateChanges(Kt,to)}ComputeRecursionPoint(f,T,M,W,Y,ce,Se){let $=0,$e=0,Oe=0,Le=0,Bt=0,en=0;f--,M--,Y[0]=0,ce[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const mn=T-f+(W-M),on=mn+1,xr=new Int32Array(on),pi=new Int32Array(on),vn=W-M,Kt=T-f,to=f-M,Ti=T-W,Hn=(Kt-vn)%2===0;xr[vn]=f,pi[Kt]=T,Se[0]=!1;for(let _i=1;_i<=mn/2+1;_i++){let oo=0,Wn=0;Oe=this.ClipDiagonalBound(vn-_i,_i,vn,on),Le=this.ClipDiagonalBound(vn+_i,_i,vn,on);for(let ea=Oe;ea<=Le;ea+=2){ea===Oe||ea<Le&&xr[ea-1]<xr[ea+1]?$=xr[ea+1]:$=xr[ea-1]+1,$e=$-(ea-vn)-to;const qt=$;for(;$<T&&$e<W&&this.ElementsAreEqual($+1,$e+1);)$++,$e++;if(xr[ea]=$,$+$e>oo+Wn&&(oo=$,Wn=$e),!Hn&&Math.abs(ea-Kt)<=_i-1&&$>=pi[ea])return Y[0]=$,ce[0]=$e,qt<=pi[ea]&&_i<=1448?this.WALKTRACE(vn,Oe,Le,to,Kt,Bt,en,Ti,xr,pi,$,T,Y,$e,W,ce,Hn,Se):null}const Ha=(oo-f+(Wn-M)-_i)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(oo,Ha))return Se[0]=!0,Y[0]=oo,ce[0]=Wn,Ha>0&&_i<=1448?this.WALKTRACE(vn,Oe,Le,to,Kt,Bt,en,Ti,xr,pi,$,T,Y,$e,W,ce,Hn,Se):(f++,M++,[new MR(f,T-f+1,M,W-M+1)]);Bt=this.ClipDiagonalBound(Kt-_i,_i,Kt,on),en=this.ClipDiagonalBound(Kt+_i,_i,Kt,on);for(let ea=Bt;ea<=en;ea+=2){ea===Bt||ea<en&&pi[ea-1]>=pi[ea+1]?$=pi[ea+1]-1:$=pi[ea-1],$e=$-(ea-Kt)-Ti;const qt=$;for(;$>f&&$e>M&&this.ElementsAreEqual($,$e);)$--,$e--;if(pi[ea]=$,Hn&&Math.abs(ea-vn)<=_i&&$<=xr[ea])return Y[0]=$,ce[0]=$e,qt>=xr[ea]&&_i<=1448?this.WALKTRACE(vn,Oe,Le,to,Kt,Bt,en,Ti,xr,pi,$,T,Y,$e,W,ce,Hn,Se):null}if(_i<=1447){let ea=new Int32Array(Le-Oe+2);ea[0]=vn-Oe+1,S2.Copy2(xr,Oe,ea,1,Le-Oe+1),this.m_forwardHistory.push(ea),ea=new Int32Array(en-Bt+2),ea[0]=Kt-Bt+1,S2.Copy2(pi,Bt,ea,1,en-Bt+1),this.m_reverseHistory.push(ea)}}return this.WALKTRACE(vn,Oe,Le,to,Kt,Bt,en,Ti,xr,pi,$,T,Y,$e,W,ce,Hn,Se)}PrettifyChanges(f){for(let T=0;T<f.length;T++){const M=f[T],W=T<f.length-1?f[T+1].originalStart:this._originalElementsOrHash.length,Y=T<f.length-1?f[T+1].modifiedStart:this._modifiedElementsOrHash.length,ce=M.originalLength>0,Se=M.modifiedLength>0;for(;M.originalStart+M.originalLength<W&&M.modifiedStart+M.modifiedLength<Y&&(!ce||this.OriginalElementsAreEqual(M.originalStart,M.originalStart+M.originalLength))&&(!Se||this.ModifiedElementsAreEqual(M.modifiedStart,M.modifiedStart+M.modifiedLength));){const $e=this.ElementsAreStrictEqual(M.originalStart,M.modifiedStart);if(this.ElementsAreStrictEqual(M.originalStart+M.originalLength,M.modifiedStart+M.modifiedLength)&&!$e)break;M.originalStart++,M.modifiedStart++}const $=[null];if(T<f.length-1&&this.ChangesOverlap(f[T],f[T+1],$)){f[T]=$[0],f.splice(T+1,1),T--;continue}}for(let T=f.length-1;T>=0;T--){const M=f[T];let W=0,Y=0;if(T>0){const Le=f[T-1];W=Le.originalStart+Le.originalLength,Y=Le.modifiedStart+Le.modifiedLength}const ce=M.originalLength>0,Se=M.modifiedLength>0;let $=0,$e=this._boundaryScore(M.originalStart,M.originalLength,M.modifiedStart,M.modifiedLength);for(let Le=1;;Le++){const Bt=M.originalStart-Le,en=M.modifiedStart-Le;if(Bt<W||en<Y||ce&&!this.OriginalElementsAreEqual(Bt,Bt+M.originalLength)||Se&&!this.ModifiedElementsAreEqual(en,en+M.modifiedLength))break;const on=(Bt===W&&en===Y?5:0)+this._boundaryScore(Bt,M.originalLength,en,M.modifiedLength);on>$e&&($e=on,$=Le)}M.originalStart-=$,M.modifiedStart-=$;const Oe=[null];if(T>0&&this.ChangesOverlap(f[T-1],f[T],Oe)){f[T-1]=Oe[0],f.splice(T,1),T++;continue}}if(this._hasStrings)for(let T=1,M=f.length;T<M;T++){const W=f[T-1],Y=f[T],ce=Y.originalStart-W.originalStart-W.originalLength,Se=W.originalStart,$=Y.originalStart+Y.originalLength,$e=$-Se,Oe=W.modifiedStart,Le=Y.modifiedStart+Y.modifiedLength,Bt=Le-Oe;if(ce<5&&$e<20&&Bt<20){const en=this._findBetterContiguousSequence(Se,$e,Oe,Bt,ce);if(en){const[mn,on]=en;(mn!==W.originalStart+W.originalLength||on!==W.modifiedStart+W.modifiedLength)&&(W.originalLength=mn-W.originalStart,W.modifiedLength=on-W.modifiedStart,Y.originalStart=mn+ce,Y.modifiedStart=on+ce,Y.originalLength=$-Y.originalStart,Y.modifiedLength=Le-Y.modifiedStart)}}}return f}_findBetterContiguousSequence(f,T,M,W,Y){if(T<Y||W<Y)return null;const ce=f+T-Y+1,Se=M+W-Y+1;let $=0,$e=0,Oe=0;for(let Le=f;Le<ce;Le++)for(let Bt=M;Bt<Se;Bt++){const en=this._contiguousSequenceScore(Le,Bt,Y);en>0&&en>$&&($=en,$e=Le,Oe=Bt)}return $>0?[$e,Oe]:null}_contiguousSequenceScore(f,T,M){let W=0;for(let Y=0;Y<M;Y++){if(!this.ElementsAreEqual(f+Y,T+Y))return 0;W+=this._originalStringElements[f+Y].length}return W}_OriginalIsBoundary(f){return f<=0||f>=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[f])}_OriginalRegionIsBoundary(f,T){if(this._OriginalIsBoundary(f)||this._OriginalIsBoundary(f-1))return!0;if(T>0){const M=f+T;if(this._OriginalIsBoundary(M-1)||this._OriginalIsBoundary(M))return!0}return!1}_ModifiedIsBoundary(f){return f<=0||f>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[f])}_ModifiedRegionIsBoundary(f,T){if(this._ModifiedIsBoundary(f)||this._ModifiedIsBoundary(f-1))return!0;if(T>0){const M=f+T;if(this._ModifiedIsBoundary(M-1)||this._ModifiedIsBoundary(M))return!0}return!1}_boundaryScore(f,T,M,W){const Y=this._OriginalRegionIsBoundary(f,T)?1:0,ce=this._ModifiedRegionIsBoundary(M,W)?1:0;return Y+ce}ConcatenateChanges(f,T){const M=[];if(f.length===0||T.length===0)return T.length>0?T:f;if(this.ChangesOverlap(f[f.length-1],T[0],M)){const W=new Array(f.length+T.length-1);return S2.Copy(f,0,W,0,f.length-1),W[f.length-1]=M[0],S2.Copy(T,1,W,f.length,T.length-1),W}else{const W=new Array(f.length+T.length);return S2.Copy(f,0,W,0,f.length),S2.Copy(T,0,W,f.length,T.length),W}}ChangesOverlap(f,T,M){if(T2.Assert(f.originalStart<=T.originalStart,"Left change is not less than or equal to right change"),T2.Assert(f.modifiedStart<=T.modifiedStart,"Left change is not less than or equal to right change"),f.originalStart+f.originalLength>=T.originalStart||f.modifiedStart+f.modifiedLength>=T.modifiedStart){const W=f.originalStart;let Y=f.originalLength;const ce=f.modifiedStart;let Se=f.modifiedLength;return f.originalStart+f.originalLength>=T.originalStart&&(Y=T.originalStart+T.originalLength-f.originalStart),f.modifiedStart+f.modifiedLength>=T.modifiedStart&&(Se=T.modifiedStart+T.modifiedLength-f.modifiedStart),M[0]=new MR(W,Y,ce,Se),!0}else return M[0]=null,!1}ClipDiagonalBound(f,T,M,W){if(f>=0&&f<W)return f;const Y=M,ce=W-M-1,Se=T%2===0;if(f<0){const $=Y%2===0;return Se===$?0:1}else{const $=ce%2===0;return Se===$?W-1:W-2}}}let Uc=class h2{constructor(f,T){this.lineNumber=f,this.column=T}with(f=this.lineNumber,T=this.column){return f===this.lineNumber&&T===this.column?this:new h2(f,T)}delta(f=0,T=0){return this.with(Math.max(1,this.lineNumber+f),Math.max(1,this.column+T))}equals(f){return h2.equals(this,f)}static equals(f,T){return!f&&!T?!0:!!f&&!!T&&f.lineNumber===T.lineNumber&&f.column===T.column}isBefore(f){return h2.isBefore(this,f)}static isBefore(f,T){return f.lineNumber<T.lineNumber?!0:T.lineNumber<f.lineNumber?!1:f.column<T.column}isBeforeOrEqual(f){return h2.isBeforeOrEqual(this,f)}static isBeforeOrEqual(f,T){return f.lineNumber<T.lineNumber?!0:T.lineNumber<f.lineNumber?!1:f.column<=T.column}static compare(f,T){const M=f.lineNumber|0,W=T.lineNumber|0;if(M===W){const Y=f.column|0,ce=T.column|0;return Y-ce}return M-W}clone(){return new h2(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(f){return new h2(f.lineNumber,f.column)}static isIPosition(f){return!!f&&typeof f.lineNumber=="number"&&typeof f.column=="number"}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}},ll=class Vm{constructor(f,T,M,W){f>M||f===M&&T>W?(this.startLineNumber=M,this.startColumn=W,this.endLineNumber=f,this.endColumn=T):(this.startLineNumber=f,this.startColumn=T,this.endLineNumber=M,this.endColumn=W)}isEmpty(){return Vm.isEmpty(this)}static isEmpty(f){return f.startLineNumber===f.endLineNumber&&f.startColumn===f.endColumn}containsPosition(f){return Vm.containsPosition(this,f)}static containsPosition(f,T){return!(T.lineNumber<f.startLineNumber||T.lineNumber>f.endLineNumber||T.lineNumber===f.startLineNumber&&T.column<f.startColumn||T.lineNumber===f.endLineNumber&&T.column>f.endColumn)}static strictContainsPosition(f,T){return!(T.lineNumber<f.startLineNumber||T.lineNumber>f.endLineNumber||T.lineNumber===f.startLineNumber&&T.column<=f.startColumn||T.lineNumber===f.endLineNumber&&T.column>=f.endColumn)}containsRange(f){return Vm.containsRange(this,f)}static containsRange(f,T){return!(T.startLineNumber<f.startLineNumber||T.endLineNumber<f.startLineNumber||T.startLineNumber>f.endLineNumber||T.endLineNumber>f.endLineNumber||T.startLineNumber===f.startLineNumber&&T.startColumn<f.startColumn||T.endLineNumber===f.endLineNumber&&T.endColumn>f.endColumn)}strictContainsRange(f){return Vm.strictContainsRange(this,f)}static strictContainsRange(f,T){return!(T.startLineNumber<f.startLineNumber||T.endLineNumber<f.startLineNumber||T.startLineNumber>f.endLineNumber||T.endLineNumber>f.endLineNumber||T.startLineNumber===f.startLineNumber&&T.startColumn<=f.startColumn||T.endLineNumber===f.endLineNumber&&T.endColumn>=f.endColumn)}plusRange(f){return Vm.plusRange(this,f)}static plusRange(f,T){let M,W,Y,ce;return T.startLineNumber<f.startLineNumber?(M=T.startLineNumber,W=T.startColumn):T.startLineNumber===f.startLineNumber?(M=T.startLineNumber,W=Math.min(T.startColumn,f.startColumn)):(M=f.startLineNumber,W=f.startColumn),T.endLineNumber>f.endLineNumber?(Y=T.endLineNumber,ce=T.endColumn):T.endLineNumber===f.endLineNumber?(Y=T.endLineNumber,ce=Math.max(T.endColumn,f.endColumn)):(Y=f.endLineNumber,ce=f.endColumn),new Vm(M,W,Y,ce)}intersectRanges(f){return Vm.intersectRanges(this,f)}static intersectRanges(f,T){let M=f.startLineNumber,W=f.startColumn,Y=f.endLineNumber,ce=f.endColumn;const Se=T.startLineNumber,$=T.startColumn,$e=T.endLineNumber,Oe=T.endColumn;return M<Se?(M=Se,W=$):M===Se&&(W=Math.max(W,$)),Y>$e?(Y=$e,ce=Oe):Y===$e&&(ce=Math.min(ce,Oe)),M>Y||M===Y&&W>ce?null:new Vm(M,W,Y,ce)}equalsRange(f){return Vm.equalsRange(this,f)}static equalsRange(f,T){return!f&&!T?!0:!!f&&!!T&&f.startLineNumber===T.startLineNumber&&f.startColumn===T.startColumn&&f.endLineNumber===T.endLineNumber&&f.endColumn===T.endColumn}getEndPosition(){return Vm.getEndPosition(this)}static getEndPosition(f){return new Uc(f.endLineNumber,f.endColumn)}getStartPosition(){return Vm.getStartPosition(this)}static getStartPosition(f){return new Uc(f.startLineNumber,f.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(f,T){return new Vm(this.startLineNumber,this.startColumn,f,T)}setStartPosition(f,T){return new Vm(f,T,this.endLineNumber,this.endColumn)}collapseToStart(){return Vm.collapseToStart(this)}static collapseToStart(f){return new Vm(f.startLineNumber,f.startColumn,f.startLineNumber,f.startColumn)}collapseToEnd(){return Vm.collapseToEnd(this)}static collapseToEnd(f){return new Vm(f.endLineNumber,f.endColumn,f.endLineNumber,f.endColumn)}delta(f){return new Vm(this.startLineNumber+f,this.startColumn,this.endLineNumber+f,this.endColumn)}isSingleLine(){return this.startLineNumber===this.endLineNumber}static fromPositions(f,T=f){return new Vm(f.lineNumber,f.column,T.lineNumber,T.column)}static lift(f){return f?new Vm(f.startLineNumber,f.startColumn,f.endLineNumber,f.endColumn):null}static isIRange(f){return!!f&&typeof f.startLineNumber=="number"&&typeof f.startColumn=="number"&&typeof f.endLineNumber=="number"&&typeof f.endColumn=="number"}static areIntersectingOrTouching(f,T){return!(f.endLineNumber<T.startLineNumber||f.endLineNumber===T.startLineNumber&&f.endColumn<T.startColumn||T.endLineNumber<f.startLineNumber||T.endLineNumber===f.startLineNumber&&T.endColumn<f.startColumn)}static areIntersecting(f,T){return!(f.endLineNumber<T.startLineNumber||f.endLineNumber===T.startLineNumber&&f.endColumn<=T.startColumn||T.endLineNumber<f.startLineNumber||T.endLineNumber===f.startLineNumber&&T.endColumn<=f.startColumn)}static areOnlyIntersecting(f,T){return!(f.endLineNumber<T.startLineNumber-1||f.endLineNumber===T.startLineNumber&&f.endColumn<T.startColumn-1||T.endLineNumber<f.startLineNumber-1||T.endLineNumber===f.startLineNumber&&T.endColumn<f.startColumn-1)}static compareRangesUsingStarts(f,T){if(f&&T){const Y=f.startLineNumber|0,ce=T.startLineNumber|0;if(Y===ce){const Se=f.startColumn|0,$=T.startColumn|0;if(Se===$){const $e=f.endLineNumber|0,Oe=T.endLineNumber|0;if($e===Oe){const Le=f.endColumn|0,Bt=T.endColumn|0;return Le-Bt}return $e-Oe}return Se-$}return Y-ce}return(f?1:0)-(T?1:0)}static compareRangesUsingEnds(f,T){return f.endLineNumber===T.endLineNumber?f.endColumn===T.endColumn?f.startLineNumber===T.startLineNumber?f.startColumn-T.startColumn:f.startLineNumber-T.startLineNumber:f.endColumn-T.endColumn:f.endLineNumber-T.endLineNumber}static spansMultipleLines(f){return f.endLineNumber>f.startLineNumber}toJSON(){return this}};function fbe(v){return v<0?0:v>255?255:v|0}function E2(v){return v<0?0:v>4294967295?4294967295:v|0}class oZ{constructor(f){const T=fbe(f);this._defaultValue=T,this._asciiMap=oZ._createAsciiMap(T),this._map=new Map}static _createAsciiMap(f){const T=new Uint8Array(256);return T.fill(f),T}set(f,T){const M=fbe(T);f>=0&&f<256?this._asciiMap[f]=M:this._map.set(f,M)}get(f){return f>=0&&f<256?this._asciiMap[f]:this._map.get(f)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}class cBe{constructor(f,T,M){const W=new Uint8Array(f*T);for(let Y=0,ce=f*T;Y<ce;Y++)W[Y]=M;this._data=W,this.rows=f,this.cols=T}get(f,T){return this._data[f*this.cols+T]}set(f,T,M){this._data[f*this.cols+T]=M}}class dBe{constructor(f){let T=0,M=0;for(let Y=0,ce=f.length;Y<ce;Y++){const[Se,$,$e]=f[Y];$>T&&(T=$),Se>M&&(M=Se),$e>M&&(M=$e)}T++,M++;const W=new cBe(M,T,0);for(let Y=0,ce=f.length;Y<ce;Y++){const[Se,$,$e]=f[Y];W.set(Se,$,$e)}this._states=W,this._maxCharCode=T}nextState(f,T){return T<0||T>=this._maxCharCode?0:this._states.get(f,T)}}let aZ=null;function uBe(){return aZ===null&&(aZ=new dBe([[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]])),aZ}let uF=null;function pBe(){if(uF===null){uF=new oZ(0);const v=` <>'"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…|`;for(let T=0;T<v.length;T++)uF.set(v.charCodeAt(T),1);const f=".,;:";for(let T=0;T<f.length;T++)uF.set(f.charCodeAt(T),2)}return uF}class a9{static _createLink(f,T,M,W,Y){let ce=Y-1;do{const Se=T.charCodeAt(ce);if(f.get(Se)!==2)break;ce--}while(ce>W);if(W>0){const Se=T.charCodeAt(W-1),$=T.charCodeAt(ce);(Se===40&&$===41||Se===91&&$===93||Se===123&&$===125)&&ce--}return{range:{startLineNumber:M,startColumn:W+1,endLineNumber:M,endColumn:ce+2},url:T.substring(W,ce+1)}}static computeLinks(f,T=uBe()){const M=pBe(),W=[];for(let Y=1,ce=f.getLineCount();Y<=ce;Y++){const Se=f.getLineContent(Y),$=Se.length;let $e=0,Oe=0,Le=0,Bt=1,en=!1,mn=!1,on=!1,xr=!1;for(;$e<$;){let pi=!1;const vn=Se.charCodeAt($e);if(Bt===13){let Kt;switch(vn){case 40:en=!0,Kt=0;break;case 41:Kt=en?0:1;break;case 91:on=!0,mn=!0,Kt=0;break;case 93:on=!1,Kt=mn?0:1;break;case 123:xr=!0,Kt=0;break;case 125:Kt=xr?0:1;break;case 39:case 34:case 96:Le===vn?Kt=1:Le===39||Le===34||Le===96?Kt=0:Kt=1;break;case 42:Kt=Le===42?1:0;break;case 32:Kt=on?0:1;break;default:Kt=M.get(vn)}Kt===1&&(W.push(a9._createLink(M,Se,Y,Oe,$e)),pi=!0)}else if(Bt===12){let Kt;vn===91?(mn=!0,Kt=0):Kt=M.get(vn),Kt===1?pi=!0:Bt=13}else Bt=T.nextState(Bt,vn),Bt===0&&(pi=!0);pi&&(Bt=1,en=!1,mn=!1,xr=!1,Oe=$e+1,Le=vn),$e++}Bt===13&&W.push(a9._createLink(M,Se,Y,Oe,$))}return W}}function fBe(v){return!v||typeof v.getLineCount!="function"||typeof v.getLineContent!="function"?[]:a9.computeLinks(v)}const S9=class S9{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(f,T,M,W,Y){if(f&&T){const ce=this.doNavigateValueSet(T,Y);if(ce)return{range:f,value:ce}}if(M&&W){const ce=this.doNavigateValueSet(W,Y);if(ce)return{range:M,value:ce}}return null}doNavigateValueSet(f,T){const M=this.numberReplace(f,T);return M!==null?M:this.textReplace(f,T)}numberReplace(f,T){const M=Math.pow(10,f.length-(f.lastIndexOf(".")+1));let W=Number(f);const Y=parseFloat(f);return!isNaN(W)&&!isNaN(Y)&&W===Y?W===0&&!T?null:(W=Math.floor(W*M),W+=T?M:-M,String(W/M)):null}textReplace(f,T){return this.valueSetsReplace(this._defaultValueSet,f,T)}valueSetsReplace(f,T,M){let W=null;for(let Y=0,ce=f.length;W===null&&Y<ce;Y++)W=this.valueSetReplace(f[Y],T,M);return W}valueSetReplace(f,T,M){let W=f.indexOf(T);return W>=0?(W+=M?1:-1,W<0?W=f.length-1:W%=f.length,f[W]):null}};S9.INSTANCE=new S9;let sZ=S9;const mbe=Object.freeze(function(v,f){const T=setTimeout(v.bind(f),0);return{dispose(){clearTimeout(T)}}});var s9;(function(v){function f(Y){return Y===v.None||Y===v.Cancelled||Y instanceof pF?!0:!Y||typeof Y!="object"?!1:typeof Y.isCancellationRequested=="boolean"&&typeof Y.onCancellationRequested=="function"}v.isCancellationToken=f,v.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:lF.None}),v.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:mbe});function T(Y){if(Y.isCancellationRequested)throw new iF}v.throwIfCanceled=T;function M(Y,ce){if(Y.some(Oe=>Oe.isCancellationRequested))return v.Cancelled;const Se=[...new Set(Y.filter(Oe=>Oe!==v.None))];if(Se.length<2)return Se[0]??v.None;const $=new hbe;ce.add(y2(()=>{$.token.isCancellationRequested||$.dispose()}));const $e=ce.add(new v2);for(const Oe of Se)$e.add(Oe.onCancellationRequested(()=>{$e.dispose(),$.cancel()}));return $.token}v.any=M;function W(Y,ce){if(Y.aborted)return v.Cancelled;const Se=ce.add(new pF);return ce.add(lF.once(lF.fromDOMEventEmitter(Y,"abort"))(()=>Se.cancel())),Se}v.fromAbortSignal=W,v.toAbortSignal=(Y,ce)=>{if(Y===v.None)return new AbortController().signal;if(Y.isCancellationRequested)return AbortSignal.abort(new iF);const Se=new AbortController;return ce.add(Y.onCancellationRequested(()=>Se.abort(new iF))),Se.signal}})(s9||(s9={}));class pF{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?mbe:(this._emitter||(this._emitter=new hS),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class hbe{constructor(f){this._token=void 0,this._parentListener=void 0,this._parentListener=f&&f.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new pF),this._token}cancel(){this._token?this._token instanceof pF&&this._token.cancel():this._token=s9.Cancelled}dispose(f=!1){f&&this.cancel(),this._parentListener?.dispose(),this._token?this._token instanceof pF&&this._token.dispose():this._token=s9.None}}class lZ{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(f,T){this._keyCodeToStr[f]=T,this._strToKeyCode[T.toLowerCase()]=f}keyCodeToStr(f){return this._keyCodeToStr[f]}strToKeyCode(f){return this._strToKeyCode[f.toLowerCase()]||0}}const l9=new lZ,cZ=new lZ,dZ=new lZ,mBe=new Array(230),hBe=Object.create(null),_Be=Object.create(null);(function(){const f=[[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","",""]],T=[],M=[];for(const W of f){const[Y,ce,Se,$,$e,Oe,Le,Bt,en]=W;if(M[ce]||(M[ce]=!0,hBe[Se]=ce,_Be[Se.toLowerCase()]=ce),!T[$]){if(T[$]=!0,!$e)throw new Error(`String representation missing for key code ${$} around scan code ${Se}`);l9.define($,$e),cZ.define($,Bt||$e),dZ.define($,en||Bt||$e)}Oe&&(mBe[Oe]=$)}})();var _be;(function(v){function f(Se){return l9.keyCodeToStr(Se)}v.toString=f;function T(Se){return l9.strToKeyCode(Se)}v.fromString=T;function M(Se){return cZ.keyCodeToStr(Se)}v.toUserSettingsUS=M;function W(Se){return dZ.keyCodeToStr(Se)}v.toUserSettingsGeneral=W;function Y(Se){return cZ.strToKeyCode(Se)||dZ.strToKeyCode(Se)}v.fromUserSettings=Y;function ce(Se){if(Se>=98&&Se<=113)return null;switch(Se){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right";case 20:return"Delete"}return l9.keyCodeToStr(Se)}v.toElectronAccelerator=ce})(_be||(_be={}));function gBe(v,f){const T=(f&65535)<<16>>>0;return(v|T)>>>0}const yBe=65,vBe=97,bBe=90,TBe=122,AN=46,jh=47,nv=92,tI=58,SBe=63;class gbe extends Error{constructor(f,T,M){let W;typeof T=="string"&&T.indexOf("not ")===0?(W="must not be",T=T.replace(/^not /,"")):W="must be";const Y=f.indexOf(".")!==-1?"property":"argument";let ce=`The "${f}" ${Y} ${W} of type ${T}`;ce+=`. Received type ${typeof M}`,super(ce),this.code="ERR_INVALID_ARG_TYPE"}}function EBe(v,f){if(v===null||typeof v!="object")throw new gbe(f,"Object",v)}function Wf(v,f){if(typeof v!="string")throw new gbe(f,"string",v)}const nI=L5e==="win32";function ec(v){return v===jh||v===nv}function uZ(v){return v===jh}function rI(v){return v>=yBe&&v<=bBe||v>=vBe&&v<=TBe}function c9(v,f,T,M){let W="",Y=0,ce=-1,Se=0,$=0;for(let $e=0;$e<=v.length;++$e){if($e<v.length)$=v.charCodeAt($e);else{if(M($))break;$=jh}if(M($)){if(!(ce===$e-1||Se===1))if(Se===2){if(W.length<2||Y!==2||W.charCodeAt(W.length-1)!==AN||W.charCodeAt(W.length-2)!==AN){if(W.length>2){const Oe=W.lastIndexOf(T);Oe===-1?(W="",Y=0):(W=W.slice(0,Oe),Y=W.length-1-W.lastIndexOf(T)),ce=$e,Se=0;continue}else if(W.length!==0){W="",Y=0,ce=$e,Se=0;continue}}f&&(W+=W.length>0?`${T}..`:"..",Y=2)}else W.length>0?W+=`${T}${v.slice(ce+1,$e)}`:W=v.slice(ce+1,$e),Y=$e-ce-1;ce=$e,Se=0}else $===AN&&Se!==-1?++Se:Se=-1}return W}function ABe(v){return v?`${v[0]==="."?"":"."}${v}`:""}function ybe(v,f){EBe(f,"pathObject");const T=f.dir||f.root,M=f.base||`${f.name||""}${ABe(f.ext)}`;return T?T===f.root?`${T}${M}`:`${T}${v}${M}`:M}const ug={resolve(...v){let f="",T="",M=!1;for(let W=v.length-1;W>=-1;W--){let Y;if(W>=0){if(Y=v[W],Wf(Y,`paths[${W}]`),Y.length===0)continue}else f.length===0?Y=t9():(Y=Qve[`=${f}`]||t9(),(Y===void 0||Y.slice(0,2).toLowerCase()!==f.toLowerCase()&&Y.charCodeAt(2)===nv)&&(Y=`${f}\\`));const ce=Y.length;let Se=0,$="",$e=!1;const Oe=Y.charCodeAt(0);if(ce===1)ec(Oe)&&(Se=1,$e=!0);else if(ec(Oe))if($e=!0,ec(Y.charCodeAt(1))){let Le=2,Bt=Le;for(;Le<ce&&!ec(Y.charCodeAt(Le));)Le++;if(Le<ce&&Le!==Bt){const en=Y.slice(Bt,Le);for(Bt=Le;Le<ce&&ec(Y.charCodeAt(Le));)Le++;if(Le<ce&&Le!==Bt){for(Bt=Le;Le<ce&&!ec(Y.charCodeAt(Le));)Le++;(Le===ce||Le!==Bt)&&($=`\\\\${en}\\${Y.slice(Bt,Le)}`,Se=Le)}}}else Se=1;else rI(Oe)&&Y.charCodeAt(1)===tI&&($=Y.slice(0,2),Se=2,ce>2&&ec(Y.charCodeAt(2))&&($e=!0,Se=3));if($.length>0)if(f.length>0){if($.toLowerCase()!==f.toLowerCase())continue}else f=$;if(M){if(f.length>0)break}else if(T=`${Y.slice(Se)}\\${T}`,M=$e,$e&&f.length>0)break}return T=c9(T,!M,"\\",ec),M?`${f}\\${T}`:`${f}${T}`||"."},normalize(v){Wf(v,"path");const f=v.length;if(f===0)return".";let T=0,M,W=!1;const Y=v.charCodeAt(0);if(f===1)return uZ(Y)?"\\":v;if(ec(Y))if(W=!0,ec(v.charCodeAt(1))){let Se=2,$=Se;for(;Se<f&&!ec(v.charCodeAt(Se));)Se++;if(Se<f&&Se!==$){const $e=v.slice($,Se);for($=Se;Se<f&&ec(v.charCodeAt(Se));)Se++;if(Se<f&&Se!==$){for($=Se;Se<f&&!ec(v.charCodeAt(Se));)Se++;if(Se===f)return`\\\\${$e}\\${v.slice($)}\\`;Se!==$&&(M=`\\\\${$e}\\${v.slice($,Se)}`,T=Se)}}}else T=1;else rI(Y)&&v.charCodeAt(1)===tI&&(M=v.slice(0,2),T=2,f>2&&ec(v.charCodeAt(2))&&(W=!0,T=3));let ce=T<f?c9(v.slice(T),!W,"\\",ec):"";if(ce.length===0&&!W&&(ce="."),ce.length>0&&ec(v.charCodeAt(f-1))&&(ce+="\\"),!W&&M===void 0&&v.includes(":")){if(ce.length>=2&&rI(ce.charCodeAt(0))&&ce.charCodeAt(1)===tI)return`.\\${ce}`;let Se=v.indexOf(":");do if(Se===f-1||ec(v.charCodeAt(Se+1)))return`.\\${ce}`;while((Se=v.indexOf(":",Se+1))!==-1)}return M===void 0?W?`\\${ce}`:ce:W?`${M}\\${ce}`:`${M}${ce}`},isAbsolute(v){Wf(v,"path");const f=v.length;if(f===0)return!1;const T=v.charCodeAt(0);return ec(T)||f>2&&rI(T)&&v.charCodeAt(1)===tI&&ec(v.charCodeAt(2))},join(...v){if(v.length===0)return".";let f,T;for(let Y=0;Y<v.length;++Y){const ce=v[Y];Wf(ce,"path"),ce.length>0&&(f===void 0?f=T=ce:f+=`\\${ce}`)}if(f===void 0)return".";let M=!0,W=0;if(typeof T=="string"&&ec(T.charCodeAt(0))){++W;const Y=T.length;Y>1&&ec(T.charCodeAt(1))&&(++W,Y>2&&(ec(T.charCodeAt(2))?++W:M=!1))}if(M){for(;W<f.length&&ec(f.charCodeAt(W));)W++;W>=2&&(f=`\\${f.slice(W)}`)}return ug.normalize(f)},relative(v,f){if(Wf(v,"from"),Wf(f,"to"),v===f)return"";const T=ug.resolve(v),M=ug.resolve(f);if(T===M||(v=T.toLowerCase(),f=M.toLowerCase(),v===f))return"";if(T.length!==v.length||M.length!==f.length){const mn=T.split("\\"),on=M.split("\\");mn[mn.length-1]===""&&mn.pop(),on[on.length-1]===""&&on.pop();const xr=mn.length,pi=on.length,vn=xr<pi?xr:pi;let Kt;for(Kt=0;Kt<vn&&mn[Kt].toLowerCase()===on[Kt].toLowerCase();Kt++);return Kt===0?M:Kt===vn?pi>vn?on.slice(Kt).join("\\"):xr>vn?"..\\".repeat(xr-1-Kt)+"..":"":"..\\".repeat(xr-Kt)+on.slice(Kt).join("\\")}let W=0;for(;W<v.length&&v.charCodeAt(W)===nv;)W++;let Y=v.length;for(;Y-1>W&&v.charCodeAt(Y-1)===nv;)Y--;const ce=Y-W;let Se=0;for(;Se<f.length&&f.charCodeAt(Se)===nv;)Se++;let $=f.length;for(;$-1>Se&&f.charCodeAt($-1)===nv;)$--;const $e=$-Se,Oe=ce<$e?ce:$e;let Le=-1,Bt=0;for(;Bt<Oe;Bt++){const mn=v.charCodeAt(W+Bt);if(mn!==f.charCodeAt(Se+Bt))break;mn===nv&&(Le=Bt)}if(Bt!==Oe){if(Le===-1)return M}else{if($e>Oe){if(f.charCodeAt(Se+Bt)===nv)return M.slice(Se+Bt+1);if(Bt===2)return M.slice(Se+Bt)}ce>Oe&&(v.charCodeAt(W+Bt)===nv?Le=Bt:Bt===2&&(Le=3)),Le===-1&&(Le=0)}let en="";for(Bt=W+Le+1;Bt<=Y;++Bt)(Bt===Y||v.charCodeAt(Bt)===nv)&&(en+=en.length===0?"..":"\\..");return Se+=Le,en.length>0?`${en}${M.slice(Se,$)}`:(M.charCodeAt(Se)===nv&&++Se,M.slice(Se,$))},toNamespacedPath(v){if(typeof v!="string"||v.length===0)return v;const f=ug.resolve(v);if(f.length<=2)return v;if(f.charCodeAt(0)===nv){if(f.charCodeAt(1)===nv){const T=f.charCodeAt(2);if(T!==SBe&&T!==AN)return`\\\\?\\UNC\\${f.slice(2)}`}}else if(rI(f.charCodeAt(0))&&f.charCodeAt(1)===tI&&f.charCodeAt(2)===nv)return`\\\\?\\${f}`;return f},dirname(v){Wf(v,"path");const f=v.length;if(f===0)return".";let T=-1,M=0;const W=v.charCodeAt(0);if(f===1)return ec(W)?v:".";if(ec(W)){if(T=M=1,ec(v.charCodeAt(1))){let Se=2,$=Se;for(;Se<f&&!ec(v.charCodeAt(Se));)Se++;if(Se<f&&Se!==$){for($=Se;Se<f&&ec(v.charCodeAt(Se));)Se++;if(Se<f&&Se!==$){for($=Se;Se<f&&!ec(v.charCodeAt(Se));)Se++;if(Se===f)return v;Se!==$&&(T=M=Se+1)}}}}else rI(W)&&v.charCodeAt(1)===tI&&(T=f>2&&ec(v.charCodeAt(2))?3:2,M=T);let Y=-1,ce=!0;for(let Se=f-1;Se>=M;--Se)if(ec(v.charCodeAt(Se))){if(!ce){Y=Se;break}}else ce=!1;if(Y===-1){if(T===-1)return".";Y=T}return v.slice(0,Y)},basename(v,f){f!==void 0&&Wf(f,"suffix"),Wf(v,"path");let T=0,M=-1,W=!0,Y;if(v.length>=2&&rI(v.charCodeAt(0))&&v.charCodeAt(1)===tI&&(T=2),f!==void 0&&f.length>0&&f.length<=v.length){if(f===v)return"";let ce=f.length-1,Se=-1;for(Y=v.length-1;Y>=T;--Y){const $=v.charCodeAt(Y);if(ec($)){if(!W){T=Y+1;break}}else Se===-1&&(W=!1,Se=Y+1),ce>=0&&($===f.charCodeAt(ce)?--ce===-1&&(M=Y):(ce=-1,M=Se))}return T===M?M=Se:M===-1&&(M=v.length),v.slice(T,M)}for(Y=v.length-1;Y>=T;--Y)if(ec(v.charCodeAt(Y))){if(!W){T=Y+1;break}}else M===-1&&(W=!1,M=Y+1);return M===-1?"":v.slice(T,M)},extname(v){Wf(v,"path");let f=0,T=-1,M=0,W=-1,Y=!0,ce=0;v.length>=2&&v.charCodeAt(1)===tI&&rI(v.charCodeAt(0))&&(f=M=2);for(let Se=v.length-1;Se>=f;--Se){const $=v.charCodeAt(Se);if(ec($)){if(!Y){M=Se+1;break}continue}W===-1&&(Y=!1,W=Se+1),$===AN?T===-1?T=Se:ce!==1&&(ce=1):T!==-1&&(ce=-1)}return T===-1||W===-1||ce===0||ce===1&&T===W-1&&T===M+1?"":v.slice(T,W)},format:ybe.bind(null,"\\"),parse(v){Wf(v,"path");const f={root:"",dir:"",base:"",ext:"",name:""};if(v.length===0)return f;const T=v.length;let M=0,W=v.charCodeAt(0);if(T===1)return ec(W)?(f.root=f.dir=v,f):(f.base=f.name=v,f);if(ec(W)){if(M=1,ec(v.charCodeAt(1))){let Le=2,Bt=Le;for(;Le<T&&!ec(v.charCodeAt(Le));)Le++;if(Le<T&&Le!==Bt){for(Bt=Le;Le<T&&ec(v.charCodeAt(Le));)Le++;if(Le<T&&Le!==Bt){for(Bt=Le;Le<T&&!ec(v.charCodeAt(Le));)Le++;Le===T?M=Le:Le!==Bt&&(M=Le+1)}}}}else if(rI(W)&&v.charCodeAt(1)===tI){if(T<=2)return f.root=f.dir=v,f;if(M=2,ec(v.charCodeAt(2))){if(T===3)return f.root=f.dir=v,f;M=3}}M>0&&(f.root=v.slice(0,M));let Y=-1,ce=M,Se=-1,$=!0,$e=v.length-1,Oe=0;for(;$e>=M;--$e){if(W=v.charCodeAt($e),ec(W)){if(!$){ce=$e+1;break}continue}Se===-1&&($=!1,Se=$e+1),W===AN?Y===-1?Y=$e:Oe!==1&&(Oe=1):Y!==-1&&(Oe=-1)}return Se!==-1&&(Y===-1||Oe===0||Oe===1&&Y===Se-1&&Y===ce+1?f.base=f.name=v.slice(ce,Se):(f.name=v.slice(ce,Y),f.base=v.slice(ce,Se),f.ext=v.slice(Y,Se))),ce>0&&ce!==M?f.dir=v.slice(0,ce-1):f.dir=f.root,f},sep:"\\",delimiter:";",win32:null,posix:null},IBe=(()=>{if(nI){const v=/\\/g;return()=>{const f=t9().replace(v,"/");return f.slice(f.indexOf("/"))}}return()=>t9()})(),oy={resolve(...v){let f="",T=!1;for(let M=v.length-1;M>=0&&!T;M--){const W=v[M];Wf(W,`paths[${M}]`),W.length!==0&&(f=`${W}/${f}`,T=W.charCodeAt(0)===jh)}if(!T){const M=IBe();f=`${M}/${f}`,T=M.charCodeAt(0)===jh}return f=c9(f,!T,"/",uZ),T?`/${f}`:f.length>0?f:"."},normalize(v){if(Wf(v,"path"),v.length===0)return".";const f=v.charCodeAt(0)===jh,T=v.charCodeAt(v.length-1)===jh;return v=c9(v,!f,"/",uZ),v.length===0?f?"/":T?"./":".":(T&&(v+="/"),f?`/${v}`:v)},isAbsolute(v){return Wf(v,"path"),v.length>0&&v.charCodeAt(0)===jh},join(...v){if(v.length===0)return".";const f=[];for(let T=0;T<v.length;++T){const M=v[T];Wf(M,"path"),M.length>0&&f.push(M)}return f.length===0?".":oy.normalize(f.join("/"))},relative(v,f){if(Wf(v,"from"),Wf(f,"to"),v===f||(v=oy.resolve(v),f=oy.resolve(f),v===f))return"";const T=1,M=v.length,W=M-T,Y=1,ce=f.length-Y,Se=W<ce?W:ce;let $=-1,$e=0;for(;$e<Se;$e++){const Le=v.charCodeAt(T+$e);if(Le!==f.charCodeAt(Y+$e))break;Le===jh&&($=$e)}if($e===Se)if(ce>Se){if(f.charCodeAt(Y+$e)===jh)return f.slice(Y+$e+1);if($e===0)return f.slice(Y+$e)}else W>Se&&(v.charCodeAt(T+$e)===jh?$=$e:$e===0&&($=0));let Oe="";for($e=T+$+1;$e<=M;++$e)($e===M||v.charCodeAt($e)===jh)&&(Oe+=Oe.length===0?"..":"/..");return`${Oe}${f.slice(Y+$)}`},toNamespacedPath(v){return v},dirname(v){if(Wf(v,"path"),v.length===0)return".";const f=v.charCodeAt(0)===jh;let T=-1,M=!0;for(let W=v.length-1;W>=1;--W)if(v.charCodeAt(W)===jh){if(!M){T=W;break}}else M=!1;return T===-1?f?"/":".":f&&T===1?"//":v.slice(0,T)},basename(v,f){f!==void 0&&Wf(f,"suffix"),Wf(v,"path");let T=0,M=-1,W=!0,Y;if(f!==void 0&&f.length>0&&f.length<=v.length){if(f===v)return"";let ce=f.length-1,Se=-1;for(Y=v.length-1;Y>=0;--Y){const $=v.charCodeAt(Y);if($===jh){if(!W){T=Y+1;break}}else Se===-1&&(W=!1,Se=Y+1),ce>=0&&($===f.charCodeAt(ce)?--ce===-1&&(M=Y):(ce=-1,M=Se))}return T===M?M=Se:M===-1&&(M=v.length),v.slice(T,M)}for(Y=v.length-1;Y>=0;--Y)if(v.charCodeAt(Y)===jh){if(!W){T=Y+1;break}}else M===-1&&(W=!1,M=Y+1);return M===-1?"":v.slice(T,M)},extname(v){Wf(v,"path");let f=-1,T=0,M=-1,W=!0,Y=0;for(let ce=v.length-1;ce>=0;--ce){const Se=v[ce];if(Se==="/"){if(!W){T=ce+1;break}continue}M===-1&&(W=!1,M=ce+1),Se==="."?f===-1?f=ce:Y!==1&&(Y=1):f!==-1&&(Y=-1)}return f===-1||M===-1||Y===0||Y===1&&f===M-1&&f===T+1?"":v.slice(f,M)},format:ybe.bind(null,"/"),parse(v){Wf(v,"path");const f={root:"",dir:"",base:"",ext:"",name:""};if(v.length===0)return f;const T=v.charCodeAt(0)===jh;let M;T?(f.root="/",M=1):M=0;let W=-1,Y=0,ce=-1,Se=!0,$=v.length-1,$e=0;for(;$>=M;--$){const Oe=v.charCodeAt($);if(Oe===jh){if(!Se){Y=$+1;break}continue}ce===-1&&(Se=!1,ce=$+1),Oe===AN?W===-1?W=$:$e!==1&&($e=1):W!==-1&&($e=-1)}if(ce!==-1){const Oe=Y===0&&T?1:Y;W===-1||$e===0||$e===1&&W===ce-1&&W===Y+1?f.base=f.name=v.slice(Oe,ce):(f.name=v.slice(Oe,W),f.base=v.slice(Oe,ce),f.ext=v.slice(W,ce))}return Y>0?f.dir=v.slice(0,Y-1):T&&(f.dir="/"),f},sep:"/",delimiter:":",win32:null,posix:null};oy.win32=ug.win32=ug,oy.posix=ug.posix=oy,nI?ug.normalize:oy.normalize,nI?ug.join:oy.join,nI?ug.resolve:oy.resolve,nI?ug.relative:oy.relative,nI?ug.dirname:oy.dirname,nI?ug.basename:oy.basename,nI?ug.extname:oy.extname,nI?ug.sep:oy.sep;const xBe=/^\w[\w\d+.-]*$/,RBe=/^\//,DBe=/^\/\//;function CBe(v,f){if(!v.scheme&&f)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${v.authority}", path: "${v.path}", query: "${v.query}", fragment: "${v.fragment}"}`);if(v.scheme&&!xBe.test(v.scheme)){const T=[...v.scheme.matchAll(/[^\w\d+.-]/gu)],M=T.length>0?` Found '${T[0][0]}' at index ${T[0].index} (${T.length} total)`:"";throw new Error(`[UriError]: Scheme contains illegal characters.${M} (len:${v.scheme.length})`)}if(v.path){if(v.authority){if(!RBe.test(v.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(DBe.test(v.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function NBe(v,f){return!v&&!f?"file":v}function MBe(v,f){switch(v){case"https":case"http":case"file":f?f[0]!==_S&&(f=_S+f):f=_S;break}return f}const Qu="",_S="/",PBe=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class IN{static isUri(f){return f instanceof IN?!0:!f||typeof f!="object"?!1:typeof f.authority=="string"&&typeof f.fragment=="string"&&typeof f.path=="string"&&typeof f.query=="string"&&typeof f.scheme=="string"&&typeof f.fsPath=="string"&&typeof f.with=="function"&&typeof f.toString=="function"}constructor(f,T,M,W,Y,ce=!1){typeof f=="object"?(this.scheme=f.scheme||Qu,this.authority=f.authority||Qu,this.path=f.path||Qu,this.query=f.query||Qu,this.fragment=f.fragment||Qu):(this.scheme=NBe(f,ce),this.authority=T||Qu,this.path=MBe(this.scheme,M||Qu),this.query=W||Qu,this.fragment=Y||Qu,CBe(this,ce))}get fsPath(){return pZ(this,!1)}with(f){if(!f)return this;let{scheme:T,authority:M,path:W,query:Y,fragment:ce}=f;return T===void 0?T=this.scheme:T===null&&(T=Qu),M===void 0?M=this.authority:M===null&&(M=Qu),W===void 0?W=this.path:W===null&&(W=Qu),Y===void 0?Y=this.query:Y===null&&(Y=Qu),ce===void 0?ce=this.fragment:ce===null&&(ce=Qu),T===this.scheme&&M===this.authority&&W===this.path&&Y===this.query&&ce===this.fragment?this:new A2(T,M,W,Y,ce)}static parse(f,T=!1){const M=PBe.exec(f);return M?new A2(M[2]||Qu,d9(M[4]||Qu),d9(M[5]||Qu),d9(M[7]||Qu),d9(M[9]||Qu),T):new A2(Qu,Qu,Qu,Qu,Qu)}static file(f){let T=Qu;if(sF&&(f=f.replace(/\\/g,_S)),f[0]===_S&&f[1]===_S){const M=f.indexOf(_S,2);M===-1?(T=f.substring(2),f=_S):(T=f.substring(2,M),f=f.substring(M)||_S)}return new A2("file",T,f,Qu,Qu)}static from(f,T){return new A2(f.scheme,f.authority,f.path,f.query,f.fragment,T)}static joinPath(f,...T){if(!f.path)throw new Error(`[UriError]: cannot call joinPath on URI without path: ${f.toString()}`);let M;return sF&&f.scheme==="file"?M=IN.file(ug.join(pZ(f,!0),...T)).path:M=oy.join(f.path,...T),f.with({path:M})}toString(f=!1){return fZ(this,f)}toJSON(){return this}static revive(f){if(f){if(f instanceof IN)return f;{const T=new A2(f);return T._formatted=f.external??null,T._fsPath=f._sep===vbe?f.fsPath??null:null,T}}else return f}}const vbe=sF?1:void 0;class A2 extends IN{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=pZ(this,!1)),this._fsPath}toString(f=!1){return f?fZ(this,!0):(this._formatted||(this._formatted=fZ(this,!1)),this._formatted)}toJSON(){const f={$mid:1};return this._fsPath&&(f.fsPath=this._fsPath,f._sep=vbe),this._formatted&&(f.external=this._formatted),this.path&&(f.path=this.path),this.scheme&&(f.scheme=this.scheme),this.authority&&(f.authority=this.authority),this.query&&(f.query=this.query),this.fragment&&(f.fragment=this.fragment),f}}const bbe={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 Tbe(v,f,T){let M,W=-1;for(let Y=0;Y<v.length;Y++){const ce=v.charCodeAt(Y);if(ce>=97&&ce<=122||ce>=65&&ce<=90||ce>=48&&ce<=57||ce===45||ce===46||ce===95||ce===126||f&&ce===47||T&&ce===91||T&&ce===93||T&&ce===58)W!==-1&&(M+=encodeURIComponent(v.substring(W,Y)),W=-1),M!==void 0&&(M+=v.charAt(Y));else{M===void 0&&(M=v.substr(0,Y));const Se=bbe[ce];Se!==void 0?(W!==-1&&(M+=encodeURIComponent(v.substring(W,Y)),W=-1),M+=Se):W===-1&&(W=Y)}}return W!==-1&&(M+=encodeURIComponent(v.substring(W))),M!==void 0?M:v}function LBe(v){let f=v.indexOf("?");const T=v.indexOf("#");if((f===-1||T!==-1&&T<f)&&(f=T),f===-1)return v;let M=v.substring(0,f),W=f;for(;f<v.length;f++){const Y=v.charCodeAt(f);(Y===35||Y===63)&&(W<f&&(M+=v.substring(W,f)),M+=bbe[Y],W=f+1)}return W<v.length&&(M+=v.substring(W)),M}function pZ(v,f){let T;return v.authority&&v.path.length>1&&v.scheme==="file"?T=`//${v.authority}${v.path}`:v.path.charCodeAt(0)===47&&(v.path.charCodeAt(1)>=65&&v.path.charCodeAt(1)<=90||v.path.charCodeAt(1)>=97&&v.path.charCodeAt(1)<=122)&&v.path.charCodeAt(2)===58?f?T=v.path.substr(1):T=v.path[1].toLowerCase()+v.path.substr(2):T=v.path,sF&&(T=T.replace(/\//g,"\\")),T}function fZ(v,f){const T=f?LBe:Tbe;let M="",{scheme:W,authority:Y,path:ce,query:Se,fragment:$}=v;if(W&&(M+=W,M+=":"),(Y||W==="file")&&(M+=_S,M+=_S),Y){let $e=Y.indexOf("@");if($e!==-1){const Oe=Y.substr(0,$e);Y=Y.substr($e+1),$e=Oe.indexOf(":"),$e===-1?M+=T(Oe,!1,!1):(M+=T(Oe.substr(0,$e),!1,!1),M+=":",M+=T(Oe.substr($e+1),!1,!1)),M+="@"}Y=Y.toLowerCase(),$e=Y.lastIndexOf(":"),$e===-1?M+=T(Y,!1,!0):(M+=T(Y.substr(0,$e),!1,!0),M+=Y.substr($e))}if(ce){const $e=W.toLowerCase();if(ce.length>=3&&ce.charCodeAt(0)===47&&ce.charCodeAt(2)===58){const Oe=ce.charCodeAt(1);Oe>=65&&Oe<=90&&$e!=="http"&&$e!=="https"&&(ce=`/${String.fromCharCode(Oe+32)}:${ce.substr(3)}`)}else if(ce.length>=2&&ce.charCodeAt(1)===58){const Oe=ce.charCodeAt(0);Oe>=65&&Oe<=90&&$e!=="http"&&$e!=="https"&&(ce=`${String.fromCharCode(Oe+32)}:${ce.substr(2)}`)}M+=T(ce,!0,!1)}return Se&&(M+="?",M+=T(Se,!1,!1)),$&&(M+="#",M+=f?$:Tbe($,!1,!1)),M}function Sbe(v){try{return decodeURIComponent(v)}catch{return v.length>3?v.substr(0,3)+Sbe(v.substr(3)):v}}const Ebe=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function d9(v){return v.match(Ebe)?v.replace(Ebe,f=>Sbe(f)):v}class ib extends ll{constructor(f,T,M,W){super(f,T,M,W),this.selectionStartLineNumber=f,this.selectionStartColumn=T,this.positionLineNumber=M,this.positionColumn=W}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(f){return ib.selectionsEqual(this,f)}static selectionsEqual(f,T){return f.selectionStartLineNumber===T.selectionStartLineNumber&&f.selectionStartColumn===T.selectionStartColumn&&f.positionLineNumber===T.positionLineNumber&&f.positionColumn===T.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(f,T){return this.getDirection()===0?new ib(this.startLineNumber,this.startColumn,f,T):new ib(f,T,this.startLineNumber,this.startColumn)}getPosition(){return new Uc(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new Uc(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(f,T){return this.getDirection()===0?new ib(f,T,this.endLineNumber,this.endColumn):new ib(this.endLineNumber,this.endColumn,f,T)}static fromPositions(f,T=f){return new ib(f.lineNumber,f.column,T.lineNumber,T.column)}static fromRange(f,T){return T===0?new ib(f.startLineNumber,f.startColumn,f.endLineNumber,f.endColumn):new ib(f.endLineNumber,f.endColumn,f.startLineNumber,f.startColumn)}static liftSelection(f){return new ib(f.selectionStartLineNumber,f.selectionStartColumn,f.positionLineNumber,f.positionColumn)}static selectionsArrEqual(f,T){if(f&&!T||!f&&T)return!1;if(!f&&!T)return!0;if(f.length!==T.length)return!1;for(let M=0,W=f.length;M<W;M++)if(!this.selectionsEqual(f[M],T[M]))return!1;return!0}static isISelection(f){return!!f&&typeof f.selectionStartLineNumber=="number"&&typeof f.selectionStartColumn=="number"&&typeof f.positionLineNumber=="number"&&typeof f.positionColumn=="number"}static createWithDirection(f,T,M,W,Y){return Y===0?new ib(f,T,M,W):new ib(M,W,f,T)}}const Abe=Object.create(null);function pe(v,f){if(b5e(f)){const T=Abe[f];if(T===void 0)throw new Error(`${v} references an unknown codicon: ${f}`);f=T}return Abe[v]=f,{id:v}}const wBe={add:pe("add",6e4),plus:pe("plus",6e4),gistNew:pe("gist-new",6e4),repoCreate:pe("repo-create",6e4),lightbulb:pe("lightbulb",60001),lightBulb:pe("light-bulb",60001),repo:pe("repo",60002),repoDelete:pe("repo-delete",60002),gistFork:pe("gist-fork",60003),repoForked:pe("repo-forked",60003),gitPullRequest:pe("git-pull-request",60004),gitPullRequestAbandoned:pe("git-pull-request-abandoned",60004),recordKeys:pe("record-keys",60005),keyboard:pe("keyboard",60005),tag:pe("tag",60006),gitPullRequestLabel:pe("git-pull-request-label",60006),tagAdd:pe("tag-add",60006),tagRemove:pe("tag-remove",60006),person:pe("person",60007),personFollow:pe("person-follow",60007),personOutline:pe("person-outline",60007),personFilled:pe("person-filled",60007),sourceControl:pe("source-control",60008),mirror:pe("mirror",60009),mirrorPublic:pe("mirror-public",60009),star:pe("star",60010),starAdd:pe("star-add",60010),starDelete:pe("star-delete",60010),starEmpty:pe("star-empty",60010),comment:pe("comment",60011),commentAdd:pe("comment-add",60011),alert:pe("alert",60012),warning:pe("warning",60012),search:pe("search",60013),searchSave:pe("search-save",60013),logOut:pe("log-out",60014),signOut:pe("sign-out",60014),logIn:pe("log-in",60015),signIn:pe("sign-in",60015),eye:pe("eye",60016),eyeUnwatch:pe("eye-unwatch",60016),eyeWatch:pe("eye-watch",60016),circleFilled:pe("circle-filled",60017),primitiveDot:pe("primitive-dot",60017),closeDirty:pe("close-dirty",60017),debugBreakpoint:pe("debug-breakpoint",60017),debugBreakpointDisabled:pe("debug-breakpoint-disabled",60017),debugHint:pe("debug-hint",60017),terminalDecorationSuccess:pe("terminal-decoration-success",60017),primitiveSquare:pe("primitive-square",60018),edit:pe("edit",60019),pencil:pe("pencil",60019),info:pe("info",60020),issueOpened:pe("issue-opened",60020),gistPrivate:pe("gist-private",60021),gitForkPrivate:pe("git-fork-private",60021),lock:pe("lock",60021),mirrorPrivate:pe("mirror-private",60021),close:pe("close",60022),removeClose:pe("remove-close",60022),x:pe("x",60022),repoSync:pe("repo-sync",60023),sync:pe("sync",60023),clone:pe("clone",60024),desktopDownload:pe("desktop-download",60024),beaker:pe("beaker",60025),microscope:pe("microscope",60025),vm:pe("vm",60026),deviceDesktop:pe("device-desktop",60026),file:pe("file",60027),more:pe("more",60028),ellipsis:pe("ellipsis",60028),kebabHorizontal:pe("kebab-horizontal",60028),mailReply:pe("mail-reply",60029),reply:pe("reply",60029),organization:pe("organization",60030),organizationFilled:pe("organization-filled",60030),organizationOutline:pe("organization-outline",60030),newFile:pe("new-file",60031),fileAdd:pe("file-add",60031),newFolder:pe("new-folder",60032),fileDirectoryCreate:pe("file-directory-create",60032),trash:pe("trash",60033),trashcan:pe("trashcan",60033),history:pe("history",60034),clock:pe("clock",60034),folder:pe("folder",60035),fileDirectory:pe("file-directory",60035),symbolFolder:pe("symbol-folder",60035),logoGithub:pe("logo-github",60036),markGithub:pe("mark-github",60036),github:pe("github",60036),terminal:pe("terminal",60037),console:pe("console",60037),repl:pe("repl",60037),zap:pe("zap",60038),symbolEvent:pe("symbol-event",60038),error:pe("error",60039),stop:pe("stop",60039),variable:pe("variable",60040),symbolVariable:pe("symbol-variable",60040),array:pe("array",60042),symbolArray:pe("symbol-array",60042),symbolModule:pe("symbol-module",60043),symbolPackage:pe("symbol-package",60043),symbolNamespace:pe("symbol-namespace",60043),symbolObject:pe("symbol-object",60043),symbolMethod:pe("symbol-method",60044),symbolFunction:pe("symbol-function",60044),symbolConstructor:pe("symbol-constructor",60044),symbolBoolean:pe("symbol-boolean",60047),symbolNull:pe("symbol-null",60047),symbolNumeric:pe("symbol-numeric",60048),symbolNumber:pe("symbol-number",60048),symbolStructure:pe("symbol-structure",60049),symbolStruct:pe("symbol-struct",60049),symbolParameter:pe("symbol-parameter",60050),symbolTypeParameter:pe("symbol-type-parameter",60050),symbolKey:pe("symbol-key",60051),symbolText:pe("symbol-text",60051),symbolReference:pe("symbol-reference",60052),goToFile:pe("go-to-file",60052),symbolEnum:pe("symbol-enum",60053),symbolValue:pe("symbol-value",60053),symbolRuler:pe("symbol-ruler",60054),symbolUnit:pe("symbol-unit",60054),activateBreakpoints:pe("activate-breakpoints",60055),archive:pe("archive",60056),arrowBoth:pe("arrow-both",60057),arrowDown:pe("arrow-down",60058),arrowLeft:pe("arrow-left",60059),arrowRight:pe("arrow-right",60060),arrowSmallDown:pe("arrow-small-down",60061),arrowSmallLeft:pe("arrow-small-left",60062),arrowSmallRight:pe("arrow-small-right",60063),arrowSmallUp:pe("arrow-small-up",60064),arrowUp:pe("arrow-up",60065),bell:pe("bell",60066),bold:pe("bold",60067),book:pe("book",60068),bookmark:pe("bookmark",60069),debugBreakpointConditionalUnverified:pe("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:pe("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:pe("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:pe("debug-breakpoint-data-unverified",60072),debugBreakpointData:pe("debug-breakpoint-data",60073),debugBreakpointDataDisabled:pe("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:pe("debug-breakpoint-log-unverified",60074),debugBreakpointLog:pe("debug-breakpoint-log",60075),debugBreakpointLogDisabled:pe("debug-breakpoint-log-disabled",60075),briefcase:pe("briefcase",60076),broadcast:pe("broadcast",60077),browser:pe("browser",60078),bug:pe("bug",60079),calendar:pe("calendar",60080),caseSensitive:pe("case-sensitive",60081),check:pe("check",60082),checklist:pe("checklist",60083),chevronDown:pe("chevron-down",60084),chevronLeft:pe("chevron-left",60085),chevronRight:pe("chevron-right",60086),chevronUp:pe("chevron-up",60087),chromeClose:pe("chrome-close",60088),chromeMaximize:pe("chrome-maximize",60089),chromeMinimize:pe("chrome-minimize",60090),chromeRestore:pe("chrome-restore",60091),circleOutline:pe("circle-outline",60092),circle:pe("circle",60092),debugBreakpointUnverified:pe("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:pe("terminal-decoration-incomplete",60092),circleSlash:pe("circle-slash",60093),circuitBoard:pe("circuit-board",60094),clearAll:pe("clear-all",60095),clippy:pe("clippy",60096),closeAll:pe("close-all",60097),cloudDownload:pe("cloud-download",60098),cloudUpload:pe("cloud-upload",60099),code:pe("code",60100),collapseAll:pe("collapse-all",60101),colorMode:pe("color-mode",60102),commentDiscussion:pe("comment-discussion",60103),creditCard:pe("credit-card",60105),dash:pe("dash",60108),dashboard:pe("dashboard",60109),database:pe("database",60110),debugContinue:pe("debug-continue",60111),debugDisconnect:pe("debug-disconnect",60112),debugPause:pe("debug-pause",60113),debugRestart:pe("debug-restart",60114),debugStart:pe("debug-start",60115),debugStepInto:pe("debug-step-into",60116),debugStepOut:pe("debug-step-out",60117),debugStepOver:pe("debug-step-over",60118),debugStop:pe("debug-stop",60119),debug:pe("debug",60120),deviceCameraVideo:pe("device-camera-video",60121),deviceCamera:pe("device-camera",60122),deviceMobile:pe("device-mobile",60123),diffAdded:pe("diff-added",60124),diffIgnored:pe("diff-ignored",60125),diffModified:pe("diff-modified",60126),diffRemoved:pe("diff-removed",60127),diffRenamed:pe("diff-renamed",60128),diff:pe("diff",60129),diffSidebyside:pe("diff-sidebyside",60129),discard:pe("discard",60130),editorLayout:pe("editor-layout",60131),emptyWindow:pe("empty-window",60132),exclude:pe("exclude",60133),extensions:pe("extensions",60134),eyeClosed:pe("eye-closed",60135),fileBinary:pe("file-binary",60136),fileCode:pe("file-code",60137),fileMedia:pe("file-media",60138),filePdf:pe("file-pdf",60139),fileSubmodule:pe("file-submodule",60140),fileSymlinkDirectory:pe("file-symlink-directory",60141),fileSymlinkFile:pe("file-symlink-file",60142),fileZip:pe("file-zip",60143),files:pe("files",60144),filter:pe("filter",60145),flame:pe("flame",60146),foldDown:pe("fold-down",60147),foldUp:pe("fold-up",60148),fold:pe("fold",60149),folderActive:pe("folder-active",60150),folderOpened:pe("folder-opened",60151),gear:pe("gear",60152),gift:pe("gift",60153),gistSecret:pe("gist-secret",60154),gist:pe("gist",60155),gitCommit:pe("git-commit",60156),gitCompare:pe("git-compare",60157),compareChanges:pe("compare-changes",60157),gitMerge:pe("git-merge",60158),githubAction:pe("github-action",60159),githubAlt:pe("github-alt",60160),globe:pe("globe",60161),grabber:pe("grabber",60162),graph:pe("graph",60163),gripper:pe("gripper",60164),heart:pe("heart",60165),home:pe("home",60166),horizontalRule:pe("horizontal-rule",60167),hubot:pe("hubot",60168),inbox:pe("inbox",60169),issueReopened:pe("issue-reopened",60171),issues:pe("issues",60172),italic:pe("italic",60173),jersey:pe("jersey",60174),json:pe("json",60175),bracket:pe("bracket",60175),kebabVertical:pe("kebab-vertical",60176),key:pe("key",60177),law:pe("law",60178),lightbulbAutofix:pe("lightbulb-autofix",60179),linkExternal:pe("link-external",60180),link:pe("link",60181),listOrdered:pe("list-ordered",60182),listUnordered:pe("list-unordered",60183),liveShare:pe("live-share",60184),loading:pe("loading",60185),location:pe("location",60186),mailRead:pe("mail-read",60187),mail:pe("mail",60188),markdown:pe("markdown",60189),megaphone:pe("megaphone",60190),mention:pe("mention",60191),milestone:pe("milestone",60192),gitPullRequestMilestone:pe("git-pull-request-milestone",60192),mortarBoard:pe("mortar-board",60193),move:pe("move",60194),multipleWindows:pe("multiple-windows",60195),mute:pe("mute",60196),noNewline:pe("no-newline",60197),note:pe("note",60198),octoface:pe("octoface",60199),openPreview:pe("open-preview",60200),package:pe("package",60201),paintcan:pe("paintcan",60202),pin:pe("pin",60203),play:pe("play",60204),run:pe("run",60204),plug:pe("plug",60205),preserveCase:pe("preserve-case",60206),preview:pe("preview",60207),project:pe("project",60208),pulse:pe("pulse",60209),question:pe("question",60210),quote:pe("quote",60211),radioTower:pe("radio-tower",60212),reactions:pe("reactions",60213),references:pe("references",60214),refresh:pe("refresh",60215),regex:pe("regex",60216),remoteExplorer:pe("remote-explorer",60217),remote:pe("remote",60218),remove:pe("remove",60219),replaceAll:pe("replace-all",60220),replace:pe("replace",60221),repoClone:pe("repo-clone",60222),repoForcePush:pe("repo-force-push",60223),repoPull:pe("repo-pull",60224),repoPush:pe("repo-push",60225),report:pe("report",60226),requestChanges:pe("request-changes",60227),rocket:pe("rocket",60228),rootFolderOpened:pe("root-folder-opened",60229),rootFolder:pe("root-folder",60230),rss:pe("rss",60231),ruby:pe("ruby",60232),saveAll:pe("save-all",60233),saveAs:pe("save-as",60234),save:pe("save",60235),screenFull:pe("screen-full",60236),screenNormal:pe("screen-normal",60237),searchStop:pe("search-stop",60238),server:pe("server",60240),settingsGear:pe("settings-gear",60241),settings:pe("settings",60242),shield:pe("shield",60243),smiley:pe("smiley",60244),sortPrecedence:pe("sort-precedence",60245),splitHorizontal:pe("split-horizontal",60246),splitVertical:pe("split-vertical",60247),squirrel:pe("squirrel",60248),starFull:pe("star-full",60249),starHalf:pe("star-half",60250),symbolClass:pe("symbol-class",60251),symbolColor:pe("symbol-color",60252),symbolConstant:pe("symbol-constant",60253),symbolEnumMember:pe("symbol-enum-member",60254),symbolField:pe("symbol-field",60255),symbolFile:pe("symbol-file",60256),symbolInterface:pe("symbol-interface",60257),symbolKeyword:pe("symbol-keyword",60258),symbolMisc:pe("symbol-misc",60259),symbolOperator:pe("symbol-operator",60260),symbolProperty:pe("symbol-property",60261),wrench:pe("wrench",60261),wrenchSubaction:pe("wrench-subaction",60261),symbolSnippet:pe("symbol-snippet",60262),tasklist:pe("tasklist",60263),telescope:pe("telescope",60264),textSize:pe("text-size",60265),threeBars:pe("three-bars",60266),thumbsdown:pe("thumbsdown",60267),thumbsup:pe("thumbsup",60268),tools:pe("tools",60269),triangleDown:pe("triangle-down",60270),triangleLeft:pe("triangle-left",60271),triangleRight:pe("triangle-right",60272),triangleUp:pe("triangle-up",60273),twitter:pe("twitter",60274),unfold:pe("unfold",60275),unlock:pe("unlock",60276),unmute:pe("unmute",60277),unverified:pe("unverified",60278),verified:pe("verified",60279),versions:pe("versions",60280),vmActive:pe("vm-active",60281),vmOutline:pe("vm-outline",60282),vmRunning:pe("vm-running",60283),watch:pe("watch",60284),whitespace:pe("whitespace",60285),wholeWord:pe("whole-word",60286),window:pe("window",60287),wordWrap:pe("word-wrap",60288),zoomIn:pe("zoom-in",60289),zoomOut:pe("zoom-out",60290),listFilter:pe("list-filter",60291),listFlat:pe("list-flat",60292),listSelection:pe("list-selection",60293),selection:pe("selection",60293),listTree:pe("list-tree",60294),debugBreakpointFunctionUnverified:pe("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:pe("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:pe("debug-breakpoint-function-disabled",60296),debugStackframeActive:pe("debug-stackframe-active",60297),circleSmallFilled:pe("circle-small-filled",60298),debugStackframeDot:pe("debug-stackframe-dot",60298),terminalDecorationMark:pe("terminal-decoration-mark",60298),debugStackframe:pe("debug-stackframe",60299),debugStackframeFocused:pe("debug-stackframe-focused",60299),debugBreakpointUnsupported:pe("debug-breakpoint-unsupported",60300),symbolString:pe("symbol-string",60301),debugReverseContinue:pe("debug-reverse-continue",60302),debugStepBack:pe("debug-step-back",60303),debugRestartFrame:pe("debug-restart-frame",60304),debugAlt:pe("debug-alt",60305),callIncoming:pe("call-incoming",60306),callOutgoing:pe("call-outgoing",60307),menu:pe("menu",60308),expandAll:pe("expand-all",60309),feedback:pe("feedback",60310),gitPullRequestReviewer:pe("git-pull-request-reviewer",60310),groupByRefType:pe("group-by-ref-type",60311),ungroupByRefType:pe("ungroup-by-ref-type",60312),account:pe("account",60313),gitPullRequestAssignee:pe("git-pull-request-assignee",60313),bellDot:pe("bell-dot",60314),debugConsole:pe("debug-console",60315),library:pe("library",60316),output:pe("output",60317),runAll:pe("run-all",60318),syncIgnored:pe("sync-ignored",60319),pinned:pe("pinned",60320),githubInverted:pe("github-inverted",60321),serverProcess:pe("server-process",60322),serverEnvironment:pe("server-environment",60323),pass:pe("pass",60324),issueClosed:pe("issue-closed",60324),stopCircle:pe("stop-circle",60325),playCircle:pe("play-circle",60326),record:pe("record",60327),debugAltSmall:pe("debug-alt-small",60328),vmConnect:pe("vm-connect",60329),cloud:pe("cloud",60330),merge:pe("merge",60331),export:pe("export",60332),graphLeft:pe("graph-left",60333),magnet:pe("magnet",60334),notebook:pe("notebook",60335),redo:pe("redo",60336),checkAll:pe("check-all",60337),pinnedDirty:pe("pinned-dirty",60338),passFilled:pe("pass-filled",60339),circleLargeFilled:pe("circle-large-filled",60340),circleLarge:pe("circle-large",60341),circleLargeOutline:pe("circle-large-outline",60341),combine:pe("combine",60342),gather:pe("gather",60342),table:pe("table",60343),variableGroup:pe("variable-group",60344),typeHierarchy:pe("type-hierarchy",60345),typeHierarchySub:pe("type-hierarchy-sub",60346),typeHierarchySuper:pe("type-hierarchy-super",60347),gitPullRequestCreate:pe("git-pull-request-create",60348),runAbove:pe("run-above",60349),runBelow:pe("run-below",60350),notebookTemplate:pe("notebook-template",60351),debugRerun:pe("debug-rerun",60352),workspaceTrusted:pe("workspace-trusted",60353),workspaceUntrusted:pe("workspace-untrusted",60354),workspaceUnknown:pe("workspace-unknown",60355),terminalCmd:pe("terminal-cmd",60356),terminalDebian:pe("terminal-debian",60357),terminalLinux:pe("terminal-linux",60358),terminalPowershell:pe("terminal-powershell",60359),terminalTmux:pe("terminal-tmux",60360),terminalUbuntu:pe("terminal-ubuntu",60361),terminalBash:pe("terminal-bash",60362),arrowSwap:pe("arrow-swap",60363),copy:pe("copy",60364),personAdd:pe("person-add",60365),filterFilled:pe("filter-filled",60366),wand:pe("wand",60367),debugLineByLine:pe("debug-line-by-line",60368),inspect:pe("inspect",60369),layers:pe("layers",60370),layersDot:pe("layers-dot",60371),layersActive:pe("layers-active",60372),compass:pe("compass",60373),compassDot:pe("compass-dot",60374),compassActive:pe("compass-active",60375),azure:pe("azure",60376),issueDraft:pe("issue-draft",60377),gitPullRequestClosed:pe("git-pull-request-closed",60378),gitPullRequestDraft:pe("git-pull-request-draft",60379),debugAll:pe("debug-all",60380),debugCoverage:pe("debug-coverage",60381),runErrors:pe("run-errors",60382),folderLibrary:pe("folder-library",60383),debugContinueSmall:pe("debug-continue-small",60384),beakerStop:pe("beaker-stop",60385),graphLine:pe("graph-line",60386),graphScatter:pe("graph-scatter",60387),pieChart:pe("pie-chart",60388),bracketDot:pe("bracket-dot",60389),bracketError:pe("bracket-error",60390),lockSmall:pe("lock-small",60391),azureDevops:pe("azure-devops",60392),verifiedFilled:pe("verified-filled",60393),newline:pe("newline",60394),layout:pe("layout",60395),layoutActivitybarLeft:pe("layout-activitybar-left",60396),layoutActivitybarRight:pe("layout-activitybar-right",60397),layoutPanelLeft:pe("layout-panel-left",60398),layoutPanelCenter:pe("layout-panel-center",60399),layoutPanelJustify:pe("layout-panel-justify",60400),layoutPanelRight:pe("layout-panel-right",60401),layoutPanel:pe("layout-panel",60402),layoutSidebarLeft:pe("layout-sidebar-left",60403),layoutSidebarRight:pe("layout-sidebar-right",60404),layoutStatusbar:pe("layout-statusbar",60405),layoutMenubar:pe("layout-menubar",60406),layoutCentered:pe("layout-centered",60407),target:pe("target",60408),indent:pe("indent",60409),recordSmall:pe("record-small",60410),errorSmall:pe("error-small",60411),terminalDecorationError:pe("terminal-decoration-error",60411),arrowCircleDown:pe("arrow-circle-down",60412),arrowCircleLeft:pe("arrow-circle-left",60413),arrowCircleRight:pe("arrow-circle-right",60414),arrowCircleUp:pe("arrow-circle-up",60415),layoutSidebarRightOff:pe("layout-sidebar-right-off",60416),layoutPanelOff:pe("layout-panel-off",60417),layoutSidebarLeftOff:pe("layout-sidebar-left-off",60418),blank:pe("blank",60419),heartFilled:pe("heart-filled",60420),map:pe("map",60421),mapHorizontal:pe("map-horizontal",60421),foldHorizontal:pe("fold-horizontal",60421),mapFilled:pe("map-filled",60422),mapHorizontalFilled:pe("map-horizontal-filled",60422),foldHorizontalFilled:pe("fold-horizontal-filled",60422),circleSmall:pe("circle-small",60423),bellSlash:pe("bell-slash",60424),bellSlashDot:pe("bell-slash-dot",60425),commentUnresolved:pe("comment-unresolved",60426),gitPullRequestGoToChanges:pe("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:pe("git-pull-request-new-changes",60428),searchFuzzy:pe("search-fuzzy",60429),commentDraft:pe("comment-draft",60430),send:pe("send",60431),sparkle:pe("sparkle",60432),insert:pe("insert",60433),mic:pe("mic",60434),thumbsdownFilled:pe("thumbsdown-filled",60435),thumbsupFilled:pe("thumbsup-filled",60436),coffee:pe("coffee",60437),snake:pe("snake",60438),game:pe("game",60439),vr:pe("vr",60440),chip:pe("chip",60441),piano:pe("piano",60442),music:pe("music",60443),micFilled:pe("mic-filled",60444),repoFetch:pe("repo-fetch",60445),copilot:pe("copilot",60446),lightbulbSparkle:pe("lightbulb-sparkle",60447),robot:pe("robot",60448),sparkleFilled:pe("sparkle-filled",60449),diffSingle:pe("diff-single",60450),diffMultiple:pe("diff-multiple",60451),surroundWith:pe("surround-with",60452),share:pe("share",60453),gitStash:pe("git-stash",60454),gitStashApply:pe("git-stash-apply",60455),gitStashPop:pe("git-stash-pop",60456),vscode:pe("vscode",60457),vscodeInsiders:pe("vscode-insiders",60458),codeOss:pe("code-oss",60459),runCoverage:pe("run-coverage",60460),runAllCoverage:pe("run-all-coverage",60461),coverage:pe("coverage",60462),githubProject:pe("github-project",60463),mapVertical:pe("map-vertical",60464),foldVertical:pe("fold-vertical",60464),mapVerticalFilled:pe("map-vertical-filled",60465),foldVerticalFilled:pe("fold-vertical-filled",60465),goToSearch:pe("go-to-search",60466),percentage:pe("percentage",60467),sortPercentage:pe("sort-percentage",60467),attach:pe("attach",60468),goToEditingSession:pe("go-to-editing-session",60469),editSession:pe("edit-session",60470),codeReview:pe("code-review",60471),copilotWarning:pe("copilot-warning",60472),python:pe("python",60473),copilotLarge:pe("copilot-large",60474),copilotWarningLarge:pe("copilot-warning-large",60475),keyboardTab:pe("keyboard-tab",60476),copilotBlocked:pe("copilot-blocked",60477),copilotNotConnected:pe("copilot-not-connected",60478),flag:pe("flag",60479),lightbulbEmpty:pe("lightbulb-empty",60480),symbolMethodArrow:pe("symbol-method-arrow",60481),copilotUnavailable:pe("copilot-unavailable",60482),repoPinned:pe("repo-pinned",60483),keyboardTabAbove:pe("keyboard-tab-above",60484),keyboardTabBelow:pe("keyboard-tab-below",60485),gitPullRequestDone:pe("git-pull-request-done",60486),mcp:pe("mcp",60487),extensionsLarge:pe("extensions-large",60488),layoutPanelDock:pe("layout-panel-dock",60489),layoutSidebarLeftDock:pe("layout-sidebar-left-dock",60490),layoutSidebarRightDock:pe("layout-sidebar-right-dock",60491),copilotInProgress:pe("copilot-in-progress",60492),copilotError:pe("copilot-error",60493),copilotSuccess:pe("copilot-success",60494),chatSparkle:pe("chat-sparkle",60495),searchSparkle:pe("search-sparkle",60496),editSparkle:pe("edit-sparkle",60497),copilotSnooze:pe("copilot-snooze",60498),sendToRemoteAgent:pe("send-to-remote-agent",60499),commentDiscussionSparkle:pe("comment-discussion-sparkle",60500),chatSparkleWarning:pe("chat-sparkle-warning",60501),chatSparkleError:pe("chat-sparkle-error",60502),collection:pe("collection",60503),newCollection:pe("new-collection",60504),thinking:pe("thinking",60505),build:pe("build",60506),commentDiscussionQuote:pe("comment-discussion-quote",60507),cursor:pe("cursor",60508),eraser:pe("eraser",60509),fileText:pe("file-text",60510),quotes:pe("quotes",60512),rename:pe("rename",60513),runWithDeps:pe("run-with-deps",60514),debugConnected:pe("debug-connected",60515),strikethrough:pe("strikethrough",60516),openInProduct:pe("open-in-product",60517),indexZero:pe("index-zero",60518),agent:pe("agent",60519),editCode:pe("edit-code",60520),repoSelected:pe("repo-selected",60521),skip:pe("skip",60522),mergeInto:pe("merge-into",60523),gitBranchChanges:pe("git-branch-changes",60524),gitBranchStagedChanges:pe("git-branch-staged-changes",60525),gitBranchConflicts:pe("git-branch-conflicts",60526),gitBranch:pe("git-branch",60527),gitBranchCreate:pe("git-branch-create",60527),gitBranchDelete:pe("git-branch-delete",60527),searchLarge:pe("search-large",60528),terminalGitBash:pe("terminal-git-bash",60529),windowActive:pe("window-active",60530),forward:pe("forward",60531),download:pe("download",60532),clockface:pe("clockface",60533),unarchive:pe("unarchive",60534),sessionInProgress:pe("session-in-progress",60535),collectionSmall:pe("collection-small",60536),vmSmall:pe("vm-small",60537),cloudSmall:pe("cloud-small",60538),addSmall:pe("add-small",60539),removeSmall:pe("remove-small",60540),worktreeSmall:pe("worktree-small",60541),worktree:pe("worktree",60542),screenCut:pe("screen-cut",60543),ask:pe("ask",60544),openai:pe("openai",60545),claude:pe("claude",60546),openInWindow:pe("open-in-window",60547),newSession:pe("new-session",60548),terminalSecure:pe("terminal-secure",60549),chatImport:pe("chat-import",60550),chatExport:pe("chat-export",60551),shareWindow:pe("share-window",60552),circleSlashCompact:pe("circle-slash-compact",60553),copilotCompact:pe("copilot-compact",60554),folderOpenedCompact:pe("folder-opened-compact",60555),folderCompact:pe("folder-compact",60556),gearCompact:pe("gear-compact",60557),gitBranchCompact:pe("git-branch-compact",60558),libraryCompact:pe("library-compact",60559),recordKeysCompact:pe("record-keys-compact",60560),remoteCompact:pe("remote-compact",60561),repoForkedCompact:pe("repo-forked-compact",60562),repoCompact:pe("repo-compact",60563),shieldCompact:pe("shield-compact",60564),sparkleCompact:pe("sparkle-compact",60565),symbolColorCompact:pe("symbol-color-compact",60566),windowCompact:pe("window-compact",60567),errorCompact:pe("error-compact",60568),warningCompact:pe("warning-compact",60569),passCompact:pe("pass-compact",60570),important:pe("important",60571),importantCompact:pe("important-compact",60572),rocketCompact:pe("rocket-compact",60573),unpin:pe("unpin",60574),addCompact:pe("add-compact",60575),attachCompact:pe("attach-compact",60576),beakerCompact:pe("beaker-compact",60577),checkCompact:pe("check-compact",60578),checklistCompact:pe("checklist-compact",60579),chevronDownCompact:pe("chevron-down-compact",60580),chevronLeftCompact:pe("chevron-left-compact",60581),chevronRightCompact:pe("chevron-right-compact",60582),chevronUpCompact:pe("chevron-up-compact",60583),circleFilledCompact:pe("circle-filled-compact",60584),circleSmallFilledCompact:pe("circle-small-filled-compact",60585),closeCompact:pe("close-compact",60586),collapseAllCompact:pe("collapse-all-compact",60587),commentCompact:pe("comment-compact",60588),commentUnresolvedCompact:pe("comment-unresolved-compact",60589),debugConnectedCompact:pe("debug-connected-compact",60590),debugDisconnectCompact:pe("debug-disconnect-compact",60591),editCompact:pe("edit-compact",60592),fileMediaCompact:pe("file-media-compact",60593),gitFetch:pe("git-fetch",60594),lightbulbCompact:pe("lightbulb-compact",60595),loadingCompact:pe("loading-compact",60596),passFilledCompact:pe("pass-filled-compact",60597),projectCompact:pe("project-compact",60598),refreshCompact:pe("refresh-compact",60599),searchCompact:pe("search-compact",60600),sessionInProgressCompact:pe("session-in-progress-compact",60601),syncCompact:pe("sync-compact",60602),terminalCompact:pe("terminal-compact",60603),vmPending:pe("vm-pending",60604),worktreeCompact:pe("worktree-compact",60605),developerTools:pe("developer-tools",60606),cloudCompact:pe("cloud-compact",60607),agentCompact:pe("agent-compact",60608),askCompact:pe("ask-compact",60609),settingsCompact:pe("settings-compact",60610),vmCompact:pe("vm-compact",60611),runCompact:pe("run-compact",60612),gitPullRequestComment:pe("git-pull-request-comment",60613),gitPullRequestError:pe("git-pull-request-error",60614),rightPanelHide:pe("right-panel-hide",60615),rightPanelShow:pe("right-panel-show",60616),vscodeInsidersOutline:pe("vscode-insiders-outline",60617),vscodeOutline:pe("vscode-outline",60618),voiceMode:pe("voice-mode",60619),voiceModeCompact:pe("voice-mode-compact",60620),micDownload:pe("mic-download",60621),micDownloadCompact:pe("mic-download-compact",60622),voiceModeDownload:pe("voice-mode-download",60623),voiceModeDownloadCompact:pe("voice-mode-download-compact",60624),googleGemini:pe("google-gemini",60625),kimi:pe("kimi",60626),microsoft:pe("microsoft",60627),fish1Happy:pe("fish1-happy",60628),fish1Neutral:pe("fish1-neutral",60629),fish1Sad:pe("fish1-sad",60630),fish1VerySad:pe("fish1-very-sad",60631),fish2Happy:pe("fish2-happy",60632),fish2Neutral:pe("fish2-neutral",60633),fish2Sad:pe("fish2-sad",60634),fish2VerySad:pe("fish2-very-sad",60635),fish3Happy:pe("fish3-happy",60636),fish3Neutral:pe("fish3-neutral",60637),fish3Sad:pe("fish3-sad",60638),fish3VerySad:pe("fish3-very-sad",60639),fish4Happy:pe("fish4-happy",60640),fish4Neutral:pe("fish4-neutral",60641),fish4Sad:pe("fish4-sad",60642),fish4VerySad:pe("fish4-very-sad",60643),personVoice:pe("person-voice",60644),personVoiceCompact:pe("person-voice-compact",60645),personVoiceFilled:pe("person-voice-filled",60646),personVoiceFilledCompact:pe("person-voice-filled-compact",60647),cloudDownloadCompact:pe("cloud-download-compact",60648),cloudUploadCompact:pe("cloud-upload-compact",60649),micCompact:pe("mic-compact",60650),arrowUpCompact:pe("arrow-up-compact",60651),xai:pe("xai",60652),arrowCircleUpSparkle:pe("arrow-circle-up-sparkle",60653),closeSmall:pe("close-small",60654),bookCompact:pe("book-compact",60655),micOff:pe("mic-off",60656),micOffCompact:pe("mic-off-compact",60657),copilotDot:pe("copilot-dot",60658),copilotDotCompact:pe("copilot-dot-compact",60659),layoutDensityCompact:pe("layout-density-compact",60660),layoutDensityDefault:pe("layout-density-default",60661),gripperCorner:pe("gripper-corner",60662),meteredConnection:pe("metered-connection",60663),reportQuestion:pe("report-question",60664),trophy:pe("trophy",60665)},kBe={dialogError:pe("dialog-error","error"),dialogWarning:pe("dialog-warning","warning"),dialogInfo:pe("dialog-info","info"),dialogClose:pe("dialog-close","close"),treeItemExpanded:pe("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:pe("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:pe("tree-filter-on-type-off","list-selection"),treeFilterClear:pe("tree-filter-clear","close"),treeItemLoading:pe("tree-item-loading","loading"),menuSelection:pe("menu-selection","check"),menuSubmenu:pe("menu-submenu","chevron-right"),menuBarMore:pe("menubar-more","more"),scrollbarButtonLeft:pe("scrollbar-button-left","triangle-left"),scrollbarButtonRight:pe("scrollbar-button-right","triangle-right"),scrollbarButtonUp:pe("scrollbar-button-up","triangle-up"),scrollbarButtonDown:pe("scrollbar-button-down","triangle-down"),toolBarMore:pe("toolbar-more","more"),quickInputBack:pe("quick-input-back","arrow-left"),dropDownButton:pe("drop-down-button",60084),symbolCustomColor:pe("symbol-customcolor",60252),exportIcon:pe("export",60332),workspaceUnspecified:pe("workspace-unspecified",60355),newLine:pe("newline",60394),thumbsDownFilled:pe("thumbsdown-filled",60435),thumbsUpFilled:pe("thumbsup-filled",60436),gitFetch:pe("git-fetch",60445),lightbulbSparkleAutofix:pe("lightbulb-sparkle-autofix",60447),debugBreakpointPending:pe("debug-breakpoint-pending",60377),chatImport:pe("chat-import",60550),chatExport:pe("chat-export",60551),compare:pe("compare",60666),gitBranchCheckout:pe("git-branch-checkout",60667)},Es={...wBe,...kBe};class OBe{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new hS,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(f){this._onDidChange.fire({changedLanguages:f,changedColorMap:!1})}register(f,T){return this._tokenizationSupports.set(f,T),this.handleChange([f]),y2(()=>{this._tokenizationSupports.get(f)===T&&(this._tokenizationSupports.delete(f),this.handleChange([f]))})}get(f){return this._tokenizationSupports.get(f)||null}registerFactory(f,T){this._factories.get(f)?.dispose();const M=new WBe(this,f,T);return this._factories.set(f,M),y2(()=>{const W=this._factories.get(f);!W||W!==M||(this._factories.delete(f),W.dispose())})}async getOrCreate(f){const T=this.get(f);if(T)return T;const M=this._factories.get(f);return!M||M.isResolved?null:(await M.resolve(),this.get(f))}isResolved(f){if(this.get(f))return!0;const M=this._factories.get(f);return!!(!M||M.isResolved)}setColorMap(f){this._colorMap=f,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 WBe extends CR{get isResolved(){return this._isResolved}constructor(f,T,M){super(),this._registry=f,this._languageId=T,this._factory=M,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 f=await this._factory.tokenizationSupport;this._isResolved=!0,f&&!this._isDisposed&&this._register(this._registry.register(this._languageId,f))}}class FBe{constructor(f,T,M){this.offset=f,this.type=T,this.language=M,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}var Ibe;(function(v){v[v.Increase=0]="Increase",v[v.Decrease=1]="Decrease"})(Ibe||(Ibe={}));var xbe;(function(v){const f=new Map;f.set(0,Es.symbolMethod),f.set(1,Es.symbolFunction),f.set(2,Es.symbolConstructor),f.set(3,Es.symbolField),f.set(4,Es.symbolVariable),f.set(5,Es.symbolClass),f.set(6,Es.symbolStruct),f.set(7,Es.symbolInterface),f.set(8,Es.symbolModule),f.set(9,Es.symbolProperty),f.set(10,Es.symbolEvent),f.set(11,Es.symbolOperator),f.set(12,Es.symbolUnit),f.set(13,Es.symbolValue),f.set(15,Es.symbolEnum),f.set(14,Es.symbolConstant),f.set(16,Es.symbolEnumMember),f.set(17,Es.symbolKeyword),f.set(28,Es.symbolSnippet),f.set(18,Es.symbolText),f.set(19,Es.symbolColor),f.set(20,Es.symbolFile),f.set(21,Es.symbolReference),f.set(22,Es.symbolCustomColor),f.set(23,Es.symbolFolder),f.set(24,Es.symbolTypeParameter),f.set(25,Es.account),f.set(26,Es.issues),f.set(27,Es.tools);function T(ce){let Se=f.get(ce);return Se||(console.info("No codicon found for CompletionItemKind "+ce),Se=Es.symbolProperty),Se}v.toIcon=T;function M(ce){switch(ce){case 0:return Ds(785,"Method");case 1:return Ds(786,"Function");case 2:return Ds(787,"Constructor");case 3:return Ds(788,"Field");case 4:return Ds(789,"Variable");case 5:return Ds(790,"Class");case 6:return Ds(791,"Struct");case 7:return Ds(792,"Interface");case 8:return Ds(793,"Module");case 9:return Ds(794,"Property");case 10:return Ds(795,"Event");case 11:return Ds(796,"Operator");case 12:return Ds(797,"Unit");case 13:return Ds(798,"Value");case 14:return Ds(799,"Constant");case 15:return Ds(800,"Enum");case 16:return Ds(801,"Enum Member");case 17:return Ds(802,"Keyword");case 18:return Ds(803,"Text");case 19:return Ds(804,"Color");case 20:return Ds(805,"File");case 21:return Ds(806,"Reference");case 22:return Ds(807,"Custom Color");case 23:return Ds(808,"Folder");case 24:return Ds(809,"Type Parameter");case 25:return Ds(810,"User");case 26:return Ds(811,"Issue");case 27:return Ds(812,"Tool");case 28:return Ds(813,"Snippet");default:return""}}v.toLabel=M;const W=new Map;W.set("method",0),W.set("function",1),W.set("constructor",2),W.set("field",3),W.set("variable",4),W.set("class",5),W.set("struct",6),W.set("interface",7),W.set("module",8),W.set("property",9),W.set("event",10),W.set("operator",11),W.set("unit",12),W.set("value",13),W.set("constant",14),W.set("enum",15),W.set("enum-member",16),W.set("enumMember",16),W.set("keyword",17),W.set("snippet",28),W.set("text",18),W.set("color",19),W.set("file",20),W.set("reference",21),W.set("customcolor",22),W.set("folder",23),W.set("type-parameter",24),W.set("typeParameter",24),W.set("account",25),W.set("issue",26),W.set("tool",27);function Y(ce,Se){let $=W.get(ce);return typeof $>"u"&&!Se&&($=9),$}v.fromString=Y})(xbe||(xbe={}));var Rbe;(function(v){v[v.Automatic=0]="Automatic",v[v.Explicit=1]="Explicit"})(Rbe||(Rbe={}));var Dbe;(function(v){v[v.Code=1]="Code",v[v.Label=2]="Label"})(Dbe||(Dbe={}));var Cbe;(function(v){v[v.Accepted=0]="Accepted",v[v.Rejected=1]="Rejected",v[v.Ignored=2]="Ignored"})(Cbe||(Cbe={}));var Nbe;(function(v){v[v.Automatic=0]="Automatic",v[v.PasteAs=1]="PasteAs"})(Nbe||(Nbe={}));var Mbe;(function(v){v[v.Invoke=1]="Invoke",v[v.TriggerCharacter=2]="TriggerCharacter",v[v.ContentChange=3]="ContentChange"})(Mbe||(Mbe={}));var Pbe;(function(v){v[v.Text=0]="Text",v[v.Read=1]="Read",v[v.Write=2]="Write"})(Pbe||(Pbe={})),Ds(814,"array"),Ds(815,"boolean"),Ds(816,"class"),Ds(817,"constant"),Ds(818,"constructor"),Ds(819,"enumeration"),Ds(820,"enumeration member"),Ds(821,"event"),Ds(822,"field"),Ds(823,"file"),Ds(824,"function"),Ds(825,"interface"),Ds(826,"key"),Ds(827,"method"),Ds(828,"module"),Ds(829,"namespace"),Ds(830,"null"),Ds(831,"number"),Ds(832,"object"),Ds(833,"operator"),Ds(834,"package"),Ds(835,"property"),Ds(836,"string"),Ds(837,"struct"),Ds(838,"type parameter"),Ds(839,"variable");var Lbe;(function(v){const f=new Map;f.set(0,Es.symbolFile),f.set(1,Es.symbolModule),f.set(2,Es.symbolNamespace),f.set(3,Es.symbolPackage),f.set(4,Es.symbolClass),f.set(5,Es.symbolMethod),f.set(6,Es.symbolProperty),f.set(7,Es.symbolField),f.set(8,Es.symbolConstructor),f.set(9,Es.symbolEnum),f.set(10,Es.symbolInterface),f.set(11,Es.symbolFunction),f.set(12,Es.symbolVariable),f.set(13,Es.symbolConstant),f.set(14,Es.symbolString),f.set(15,Es.symbolNumber),f.set(16,Es.symbolBoolean),f.set(17,Es.symbolArray),f.set(18,Es.symbolObject),f.set(19,Es.symbolKey),f.set(20,Es.symbolNull),f.set(21,Es.symbolEnumMember),f.set(22,Es.symbolStruct),f.set(23,Es.symbolEvent),f.set(24,Es.symbolOperator),f.set(25,Es.symbolTypeParameter);function T(Y){let ce=f.get(Y);return ce||(console.info("No codicon found for SymbolKind "+Y),ce=Es.symbolProperty),ce}v.toIcon=T;const M=new Map;M.set(0,20),M.set(1,8),M.set(2,8),M.set(3,8),M.set(4,5),M.set(5,0),M.set(6,9),M.set(7,3),M.set(8,2),M.set(9,15),M.set(10,7),M.set(11,1),M.set(12,4),M.set(13,14),M.set(14,18),M.set(15,13),M.set(16,13),M.set(17,13),M.set(18,13),M.set(19,17),M.set(20,13),M.set(21,16),M.set(22,6),M.set(23,10),M.set(24,11),M.set(25,24);function W(Y){let ce=M.get(Y);return ce===void 0&&(console.info("No completion kind found for SymbolKind "+Y),ce=20),ce}v.toCompletionKind=W})(Lbe||(Lbe={}));var wbe;(function(v){v[v.Declaration=1]="Declaration",v[v.Header=2]="Header",v[v.Implementation=3]="Implementation",v[v.Dependency=4]="Dependency",v[v.Other=5]="Other"})(wbe||(wbe={}));var kbe;(function(v){v[v.Test=1]="Test"})(kbe||(kbe={}));const O0=class O0{static fromValue(f){switch(f){case"comment":return O0.Comment;case"imports":return O0.Imports;case"region":return O0.Region}return new O0(f)}constructor(f){this.value=f}};O0.Comment=new O0("comment"),O0.Imports=new O0("imports"),O0.Region=new O0("region");let Obe=O0;var Wbe;(function(v){v[v.AIGenerated=1]="AIGenerated"})(Wbe||(Wbe={}));var Fbe;(function(v){v[v.Invoke=0]="Invoke",v[v.Automatic=1]="Automatic"})(Fbe||(Fbe={}));var zbe;(function(v){function f(T){return!T||typeof T!="object"?!1:typeof T.id=="string"&&typeof T.title=="string"}v.is=f})(zbe||(zbe={}));var Bbe;(function(v){v[v.Type=1]="Type",v[v.Parameter=2]="Parameter"})(Bbe||(Bbe={})),new OBe;var Gbe;(function(v){v[v.Unknown=0]="Unknown",v[v.Disabled=1]="Disabled",v[v.Enabled=2]="Enabled"})(Gbe||(Gbe={}));var Vbe;(function(v){v[v.Invoke=1]="Invoke",v[v.Auto=2]="Auto"})(Vbe||(Vbe={}));var jbe;(function(v){v[v.None=0]="None",v[v.KeepWhitespace=1]="KeepWhitespace",v[v.InsertAsSnippet=4]="InsertAsSnippet"})(jbe||(jbe={}));var Ube;(function(v){v[v.Method=0]="Method",v[v.Function=1]="Function",v[v.Constructor=2]="Constructor",v[v.Field=3]="Field",v[v.Variable=4]="Variable",v[v.Class=5]="Class",v[v.Struct=6]="Struct",v[v.Interface=7]="Interface",v[v.Module=8]="Module",v[v.Property=9]="Property",v[v.Event=10]="Event",v[v.Operator=11]="Operator",v[v.Unit=12]="Unit",v[v.Value=13]="Value",v[v.Constant=14]="Constant",v[v.Enum=15]="Enum",v[v.EnumMember=16]="EnumMember",v[v.Keyword=17]="Keyword",v[v.Text=18]="Text",v[v.Color=19]="Color",v[v.File=20]="File",v[v.Reference=21]="Reference",v[v.Customcolor=22]="Customcolor",v[v.Folder=23]="Folder",v[v.TypeParameter=24]="TypeParameter",v[v.User=25]="User",v[v.Issue=26]="Issue",v[v.Tool=27]="Tool",v[v.Snippet=28]="Snippet"})(Ube||(Ube={}));var Hbe;(function(v){v[v.Deprecated=1]="Deprecated"})(Hbe||(Hbe={}));var qbe;(function(v){v[v.Invoke=0]="Invoke",v[v.TriggerCharacter=1]="TriggerCharacter",v[v.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(qbe||(qbe={}));var Jbe;(function(v){v[v.EXACT=0]="EXACT",v[v.ABOVE=1]="ABOVE",v[v.BELOW=2]="BELOW"})(Jbe||(Jbe={}));var Kbe;(function(v){v[v.NotSet=0]="NotSet",v[v.ContentFlush=1]="ContentFlush",v[v.RecoverFromMarkers=2]="RecoverFromMarkers",v[v.Explicit=3]="Explicit",v[v.Paste=4]="Paste",v[v.Undo=5]="Undo",v[v.Redo=6]="Redo"})(Kbe||(Kbe={}));var Xbe;(function(v){v[v.LF=1]="LF",v[v.CRLF=2]="CRLF"})(Xbe||(Xbe={}));var $be;(function(v){v[v.Text=0]="Text",v[v.Read=1]="Read",v[v.Write=2]="Write"})($be||($be={}));var Ybe;(function(v){v[v.None=0]="None",v[v.Keep=1]="Keep",v[v.Brackets=2]="Brackets",v[v.Advanced=3]="Advanced",v[v.Full=4]="Full"})(Ybe||(Ybe={}));var Qbe;(function(v){v[v.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",v[v.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",v[v.accessibilitySupport=2]="accessibilitySupport",v[v.accessibilityPageSize=3]="accessibilityPageSize",v[v.allowOverflow=4]="allowOverflow",v[v.allowVariableLineHeights=5]="allowVariableLineHeights",v[v.allowVariableFonts=6]="allowVariableFonts",v[v.allowVariableFontsInAccessibilityMode=7]="allowVariableFontsInAccessibilityMode",v[v.ariaLabel=8]="ariaLabel",v[v.ariaRequired=9]="ariaRequired",v[v.autoClosingBrackets=10]="autoClosingBrackets",v[v.autoClosingComments=11]="autoClosingComments",v[v.screenReaderAnnounceInlineSuggestion=12]="screenReaderAnnounceInlineSuggestion",v[v.autoClosingDelete=13]="autoClosingDelete",v[v.autoClosingOvertype=14]="autoClosingOvertype",v[v.autoClosingQuotes=15]="autoClosingQuotes",v[v.autoIndent=16]="autoIndent",v[v.autoIndentOnPaste=17]="autoIndentOnPaste",v[v.autoIndentOnPasteWithinString=18]="autoIndentOnPasteWithinString",v[v.automaticLayout=19]="automaticLayout",v[v.autoSurround=20]="autoSurround",v[v.bracketPairColorization=21]="bracketPairColorization",v[v.guides=22]="guides",v[v.codeLens=23]="codeLens",v[v.codeLensFontFamily=24]="codeLensFontFamily",v[v.codeLensFontSize=25]="codeLensFontSize",v[v.colorDecorators=26]="colorDecorators",v[v.colorDecoratorsLimit=27]="colorDecoratorsLimit",v[v.columnSelection=28]="columnSelection",v[v.comments=29]="comments",v[v.contextmenu=30]="contextmenu",v[v.copyWithSyntaxHighlighting=31]="copyWithSyntaxHighlighting",v[v.cursorBlinking=32]="cursorBlinking",v[v.cursorSmoothCaretAnimation=33]="cursorSmoothCaretAnimation",v[v.cursorStyle=34]="cursorStyle",v[v.cursorSurroundingLines=35]="cursorSurroundingLines",v[v.cursorSurroundingLinesStyle=36]="cursorSurroundingLinesStyle",v[v.cursorWidth=37]="cursorWidth",v[v.cursorHeight=38]="cursorHeight",v[v.disableLayerHinting=39]="disableLayerHinting",v[v.disableMonospaceOptimizations=40]="disableMonospaceOptimizations",v[v.domReadOnly=41]="domReadOnly",v[v.dragAndDrop=42]="dragAndDrop",v[v.dropIntoEditor=43]="dropIntoEditor",v[v.editContext=44]="editContext",v[v.emptySelectionClipboard=45]="emptySelectionClipboard",v[v.experimentalGpuAcceleration=46]="experimentalGpuAcceleration",v[v.experimentalWhitespaceRendering=47]="experimentalWhitespaceRendering",v[v.extraEditorClassName=48]="extraEditorClassName",v[v.fastScrollSensitivity=49]="fastScrollSensitivity",v[v.find=50]="find",v[v.fixedOverflowWidgets=51]="fixedOverflowWidgets",v[v.folding=52]="folding",v[v.foldingStrategy=53]="foldingStrategy",v[v.foldingHighlight=54]="foldingHighlight",v[v.foldingImportsByDefault=55]="foldingImportsByDefault",v[v.foldingMaximumRegions=56]="foldingMaximumRegions",v[v.unfoldOnClickAfterEndOfLine=57]="unfoldOnClickAfterEndOfLine",v[v.fontFamily=58]="fontFamily",v[v.fontInfo=59]="fontInfo",v[v.fontLigatures=60]="fontLigatures",v[v.fontSize=61]="fontSize",v[v.fontWeight=62]="fontWeight",v[v.fontVariations=63]="fontVariations",v[v.formatOnPaste=64]="formatOnPaste",v[v.formatOnType=65]="formatOnType",v[v.glyphMargin=66]="glyphMargin",v[v.gotoLocation=67]="gotoLocation",v[v.hideCursorInOverviewRuler=68]="hideCursorInOverviewRuler",v[v.hover=69]="hover",v[v.inDiffEditor=70]="inDiffEditor",v[v.inlineSuggest=71]="inlineSuggest",v[v.letterSpacing=72]="letterSpacing",v[v.lightbulb=73]="lightbulb",v[v.lineDecorationsWidth=74]="lineDecorationsWidth",v[v.lineHeight=75]="lineHeight",v[v.lineNumbers=76]="lineNumbers",v[v.lineNumbersMinChars=77]="lineNumbersMinChars",v[v.linkedEditing=78]="linkedEditing",v[v.links=79]="links",v[v.markdownImages=80]="markdownImages",v[v.matchBrackets=81]="matchBrackets",v[v.minimap=82]="minimap",v[v.mouseStyle=83]="mouseStyle",v[v.mouseWheelScrollSensitivity=84]="mouseWheelScrollSensitivity",v[v.mouseWheelZoom=85]="mouseWheelZoom",v[v.multiCursorMergeOverlapping=86]="multiCursorMergeOverlapping",v[v.multiCursorModifier=87]="multiCursorModifier",v[v.mouseMiddleClickAction=88]="mouseMiddleClickAction",v[v.multiCursorPaste=89]="multiCursorPaste",v[v.multiCursorLimit=90]="multiCursorLimit",v[v.occurrencesHighlight=91]="occurrencesHighlight",v[v.occurrencesHighlightDelay=92]="occurrencesHighlightDelay",v[v.occurrencesHighlightFromAllProviders=93]="occurrencesHighlightFromAllProviders",v[v.overtypeCursorStyle=94]="overtypeCursorStyle",v[v.overtypeOnPaste=95]="overtypeOnPaste",v[v.overviewRulerBorder=96]="overviewRulerBorder",v[v.overviewRulerLanes=97]="overviewRulerLanes",v[v.padding=98]="padding",v[v.pasteAs=99]="pasteAs",v[v.parameterHints=100]="parameterHints",v[v.peekWidgetDefaultFocus=101]="peekWidgetDefaultFocus",v[v.placeholder=102]="placeholder",v[v.definitionLinkOpensInPeek=103]="definitionLinkOpensInPeek",v[v.quickSuggestions=104]="quickSuggestions",v[v.quickSuggestionsDelay=105]="quickSuggestionsDelay",v[v.readOnly=106]="readOnly",v[v.readOnlyMessage=107]="readOnlyMessage",v[v.renameOnType=108]="renameOnType",v[v.renderRichScreenReaderContent=109]="renderRichScreenReaderContent",v[v.renderControlCharacters=110]="renderControlCharacters",v[v.renderFinalNewline=111]="renderFinalNewline",v[v.renderLineHighlight=112]="renderLineHighlight",v[v.renderLineHighlightOnlyWhenFocus=113]="renderLineHighlightOnlyWhenFocus",v[v.renderValidationDecorations=114]="renderValidationDecorations",v[v.renderWhitespace=115]="renderWhitespace",v[v.revealHorizontalRightPadding=116]="revealHorizontalRightPadding",v[v.roundedSelection=117]="roundedSelection",v[v.rulers=118]="rulers",v[v.scrollbar=119]="scrollbar",v[v.scrollBeyondLastColumn=120]="scrollBeyondLastColumn",v[v.scrollBeyondLastLine=121]="scrollBeyondLastLine",v[v.scrollPredominantAxis=122]="scrollPredominantAxis",v[v.selectionClipboard=123]="selectionClipboard",v[v.selectionHighlight=124]="selectionHighlight",v[v.selectionHighlightMaxLength=125]="selectionHighlightMaxLength",v[v.selectionHighlightMultiline=126]="selectionHighlightMultiline",v[v.selectedTextMatchMode=127]="selectedTextMatchMode",v[v.selectOnLineNumbers=128]="selectOnLineNumbers",v[v.showFoldingControls=129]="showFoldingControls",v[v.showUnused=130]="showUnused",v[v.snippetSuggestions=131]="snippetSuggestions",v[v.smartSelect=132]="smartSelect",v[v.smoothScrolling=133]="smoothScrolling",v[v.stickyScroll=134]="stickyScroll",v[v.stickyTabStops=135]="stickyTabStops",v[v.stopRenderingLineAfter=136]="stopRenderingLineAfter",v[v.suggest=137]="suggest",v[v.suggestFontSize=138]="suggestFontSize",v[v.suggestLineHeight=139]="suggestLineHeight",v[v.suggestOnTriggerCharacters=140]="suggestOnTriggerCharacters",v[v.suggestSelection=141]="suggestSelection",v[v.tabCompletion=142]="tabCompletion",v[v.tabIndex=143]="tabIndex",v[v.trimWhitespaceOnDelete=144]="trimWhitespaceOnDelete",v[v.unicodeHighlighting=145]="unicodeHighlighting",v[v.unusualLineTerminators=146]="unusualLineTerminators",v[v.useShadowDOM=147]="useShadowDOM",v[v.useTabStops=148]="useTabStops",v[v.wordBreak=149]="wordBreak",v[v.wordSegmenterLocales=150]="wordSegmenterLocales",v[v.wordSeparators=151]="wordSeparators",v[v.wordWrap=152]="wordWrap",v[v.wordWrapBreakAfterCharacters=153]="wordWrapBreakAfterCharacters",v[v.wordWrapBreakBeforeCharacters=154]="wordWrapBreakBeforeCharacters",v[v.wordWrapColumn=155]="wordWrapColumn",v[v.wordWrapOverride1=156]="wordWrapOverride1",v[v.wordWrapOverride2=157]="wordWrapOverride2",v[v.wrappingIndent=158]="wrappingIndent",v[v.wrappingStrategy=159]="wrappingStrategy",v[v.showDeprecated=160]="showDeprecated",v[v.inertialScroll=161]="inertialScroll",v[v.inlayHints=162]="inlayHints",v[v.wrapOnEscapedLineFeeds=163]="wrapOnEscapedLineFeeds",v[v.wordWrapIndicator=164]="wordWrapIndicator",v[v.effectiveCursorStyle=165]="effectiveCursorStyle",v[v.editorClassName=166]="editorClassName",v[v.pixelRatio=167]="pixelRatio",v[v.tabFocusMode=168]="tabFocusMode",v[v.layoutInfo=169]="layoutInfo",v[v.wrappingInfo=170]="wrappingInfo",v[v.defaultColorDecorators=171]="defaultColorDecorators",v[v.colorDecoratorsActivatedOn=172]="colorDecoratorsActivatedOn",v[v.inlineCompletionsAccessibilityVerbose=173]="inlineCompletionsAccessibilityVerbose",v[v.effectiveEditContext=174]="effectiveEditContext",v[v.scrollOnMiddleClick=175]="scrollOnMiddleClick",v[v.effectiveAllowVariableFonts=176]="effectiveAllowVariableFonts",v[v.doubleClickSelectsBlock=177]="doubleClickSelectsBlock",v[v.fullwidthCharacterWidth=178]="fullwidthCharacterWidth",v[v.effectiveFullwidthCharacterWidth=179]="effectiveFullwidthCharacterWidth"})(Qbe||(Qbe={}));var Zbe;(function(v){v[v.TextDefined=0]="TextDefined",v[v.LF=1]="LF",v[v.CRLF=2]="CRLF"})(Zbe||(Zbe={}));var e0e;(function(v){v[v.LF=0]="LF",v[v.CRLF=1]="CRLF"})(e0e||(e0e={}));var t0e;(function(v){v[v.Left=1]="Left",v[v.Center=2]="Center",v[v.Right=3]="Right"})(t0e||(t0e={}));var n0e;(function(v){v[v.Increase=0]="Increase",v[v.Decrease=1]="Decrease"})(n0e||(n0e={}));var r0e;(function(v){v[v.None=0]="None",v[v.Indent=1]="Indent",v[v.IndentOutdent=2]="IndentOutdent",v[v.Outdent=3]="Outdent"})(r0e||(r0e={}));var i0e;(function(v){v[v.Both=0]="Both",v[v.Right=1]="Right",v[v.Left=2]="Left",v[v.None=3]="None"})(i0e||(i0e={}));var o0e;(function(v){v[v.Type=1]="Type",v[v.Parameter=2]="Parameter"})(o0e||(o0e={}));var a0e;(function(v){v[v.Accepted=0]="Accepted",v[v.Rejected=1]="Rejected",v[v.Ignored=2]="Ignored"})(a0e||(a0e={}));var s0e;(function(v){v[v.Code=1]="Code",v[v.Label=2]="Label"})(s0e||(s0e={}));var l0e;(function(v){v[v.Automatic=0]="Automatic",v[v.Explicit=1]="Explicit"})(l0e||(l0e={}));var mZ;(function(v){v[v.DependsOnKbLayout=-1]="DependsOnKbLayout",v[v.Unknown=0]="Unknown",v[v.Backspace=1]="Backspace",v[v.Tab=2]="Tab",v[v.Enter=3]="Enter",v[v.Shift=4]="Shift",v[v.Ctrl=5]="Ctrl",v[v.Alt=6]="Alt",v[v.PauseBreak=7]="PauseBreak",v[v.CapsLock=8]="CapsLock",v[v.Escape=9]="Escape",v[v.Space=10]="Space",v[v.PageUp=11]="PageUp",v[v.PageDown=12]="PageDown",v[v.End=13]="End",v[v.Home=14]="Home",v[v.LeftArrow=15]="LeftArrow",v[v.UpArrow=16]="UpArrow",v[v.RightArrow=17]="RightArrow",v[v.DownArrow=18]="DownArrow",v[v.Insert=19]="Insert",v[v.Delete=20]="Delete",v[v.Digit0=21]="Digit0",v[v.Digit1=22]="Digit1",v[v.Digit2=23]="Digit2",v[v.Digit3=24]="Digit3",v[v.Digit4=25]="Digit4",v[v.Digit5=26]="Digit5",v[v.Digit6=27]="Digit6",v[v.Digit7=28]="Digit7",v[v.Digit8=29]="Digit8",v[v.Digit9=30]="Digit9",v[v.KeyA=31]="KeyA",v[v.KeyB=32]="KeyB",v[v.KeyC=33]="KeyC",v[v.KeyD=34]="KeyD",v[v.KeyE=35]="KeyE",v[v.KeyF=36]="KeyF",v[v.KeyG=37]="KeyG",v[v.KeyH=38]="KeyH",v[v.KeyI=39]="KeyI",v[v.KeyJ=40]="KeyJ",v[v.KeyK=41]="KeyK",v[v.KeyL=42]="KeyL",v[v.KeyM=43]="KeyM",v[v.KeyN=44]="KeyN",v[v.KeyO=45]="KeyO",v[v.KeyP=46]="KeyP",v[v.KeyQ=47]="KeyQ",v[v.KeyR=48]="KeyR",v[v.KeyS=49]="KeyS",v[v.KeyT=50]="KeyT",v[v.KeyU=51]="KeyU",v[v.KeyV=52]="KeyV",v[v.KeyW=53]="KeyW",v[v.KeyX=54]="KeyX",v[v.KeyY=55]="KeyY",v[v.KeyZ=56]="KeyZ",v[v.Meta=57]="Meta",v[v.ContextMenu=58]="ContextMenu",v[v.F1=59]="F1",v[v.F2=60]="F2",v[v.F3=61]="F3",v[v.F4=62]="F4",v[v.F5=63]="F5",v[v.F6=64]="F6",v[v.F7=65]="F7",v[v.F8=66]="F8",v[v.F9=67]="F9",v[v.F10=68]="F10",v[v.F11=69]="F11",v[v.F12=70]="F12",v[v.F13=71]="F13",v[v.F14=72]="F14",v[v.F15=73]="F15",v[v.F16=74]="F16",v[v.F17=75]="F17",v[v.F18=76]="F18",v[v.F19=77]="F19",v[v.F20=78]="F20",v[v.F21=79]="F21",v[v.F22=80]="F22",v[v.F23=81]="F23",v[v.F24=82]="F24",v[v.NumLock=83]="NumLock",v[v.ScrollLock=84]="ScrollLock",v[v.Semicolon=85]="Semicolon",v[v.Equal=86]="Equal",v[v.Comma=87]="Comma",v[v.Minus=88]="Minus",v[v.Period=89]="Period",v[v.Slash=90]="Slash",v[v.Backquote=91]="Backquote",v[v.BracketLeft=92]="BracketLeft",v[v.Backslash=93]="Backslash",v[v.BracketRight=94]="BracketRight",v[v.Quote=95]="Quote",v[v.OEM_8=96]="OEM_8",v[v.IntlBackslash=97]="IntlBackslash",v[v.Numpad0=98]="Numpad0",v[v.Numpad1=99]="Numpad1",v[v.Numpad2=100]="Numpad2",v[v.Numpad3=101]="Numpad3",v[v.Numpad4=102]="Numpad4",v[v.Numpad5=103]="Numpad5",v[v.Numpad6=104]="Numpad6",v[v.Numpad7=105]="Numpad7",v[v.Numpad8=106]="Numpad8",v[v.Numpad9=107]="Numpad9",v[v.NumpadMultiply=108]="NumpadMultiply",v[v.NumpadAdd=109]="NumpadAdd",v[v.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",v[v.NumpadSubtract=111]="NumpadSubtract",v[v.NumpadDecimal=112]="NumpadDecimal",v[v.NumpadDivide=113]="NumpadDivide",v[v.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",v[v.ABNT_C1=115]="ABNT_C1",v[v.ABNT_C2=116]="ABNT_C2",v[v.AudioVolumeMute=117]="AudioVolumeMute",v[v.AudioVolumeUp=118]="AudioVolumeUp",v[v.AudioVolumeDown=119]="AudioVolumeDown",v[v.BrowserSearch=120]="BrowserSearch",v[v.BrowserHome=121]="BrowserHome",v[v.BrowserBack=122]="BrowserBack",v[v.BrowserForward=123]="BrowserForward",v[v.MediaTrackNext=124]="MediaTrackNext",v[v.MediaTrackPrevious=125]="MediaTrackPrevious",v[v.MediaStop=126]="MediaStop",v[v.MediaPlayPause=127]="MediaPlayPause",v[v.LaunchMediaPlayer=128]="LaunchMediaPlayer",v[v.LaunchMail=129]="LaunchMail",v[v.LaunchApp2=130]="LaunchApp2",v[v.Clear=131]="Clear",v[v.MAX_VALUE=132]="MAX_VALUE"})(mZ||(mZ={}));var hZ;(function(v){v[v.Hint=1]="Hint",v[v.Info=2]="Info",v[v.Warning=4]="Warning",v[v.Error=8]="Error"})(hZ||(hZ={}));var _Z;(function(v){v[v.Unnecessary=1]="Unnecessary",v[v.Deprecated=2]="Deprecated"})(_Z||(_Z={}));var c0e;(function(v){v[v.Inline=1]="Inline",v[v.Gutter=2]="Gutter"})(c0e||(c0e={}));var d0e;(function(v){v[v.Normal=1]="Normal",v[v.Underlined=2]="Underlined"})(d0e||(d0e={}));var u0e;(function(v){v[v.UNKNOWN=0]="UNKNOWN",v[v.TEXTAREA=1]="TEXTAREA",v[v.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",v[v.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",v[v.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",v[v.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",v[v.CONTENT_TEXT=6]="CONTENT_TEXT",v[v.CONTENT_EMPTY=7]="CONTENT_EMPTY",v[v.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",v[v.CONTENT_WIDGET=9]="CONTENT_WIDGET",v[v.OVERVIEW_RULER=10]="OVERVIEW_RULER",v[v.SCROLLBAR=11]="SCROLLBAR",v[v.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",v[v.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(u0e||(u0e={}));var p0e;(function(v){v[v.AIGenerated=1]="AIGenerated"})(p0e||(p0e={}));var f0e;(function(v){v[v.Invoke=0]="Invoke",v[v.Automatic=1]="Automatic"})(f0e||(f0e={}));var m0e;(function(v){v[v.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",v[v.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",v[v.TOP_CENTER=2]="TOP_CENTER"})(m0e||(m0e={}));var h0e;(function(v){v[v.Left=1]="Left",v[v.Center=2]="Center",v[v.Right=4]="Right",v[v.Full=7]="Full"})(h0e||(h0e={}));var _0e;(function(v){v[v.Word=0]="Word",v[v.Line=1]="Line",v[v.Suggest=2]="Suggest"})(_0e||(_0e={}));var g0e;(function(v){v[v.Left=0]="Left",v[v.Right=1]="Right",v[v.None=2]="None",v[v.LeftOfInjectedText=3]="LeftOfInjectedText",v[v.RightOfInjectedText=4]="RightOfInjectedText"})(g0e||(g0e={}));var y0e;(function(v){v[v.Off=0]="Off",v[v.On=1]="On",v[v.Relative=2]="Relative",v[v.Interval=3]="Interval",v[v.Custom=4]="Custom"})(y0e||(y0e={}));var v0e;(function(v){v[v.None=0]="None",v[v.Text=1]="Text",v[v.Blocks=2]="Blocks"})(v0e||(v0e={}));var b0e;(function(v){v[v.Smooth=0]="Smooth",v[v.Immediate=1]="Immediate"})(b0e||(b0e={}));var T0e;(function(v){v[v.Auto=1]="Auto",v[v.Hidden=2]="Hidden",v[v.Visible=3]="Visible"})(T0e||(T0e={}));var gZ;(function(v){v[v.LTR=0]="LTR",v[v.RTL=1]="RTL"})(gZ||(gZ={}));var S0e;(function(v){v.Off="off",v.OnCode="onCode",v.On="on"})(S0e||(S0e={}));var E0e;(function(v){v[v.Invoke=1]="Invoke",v[v.TriggerCharacter=2]="TriggerCharacter",v[v.ContentChange=3]="ContentChange"})(E0e||(E0e={}));var A0e;(function(v){v[v.File=0]="File",v[v.Module=1]="Module",v[v.Namespace=2]="Namespace",v[v.Package=3]="Package",v[v.Class=4]="Class",v[v.Method=5]="Method",v[v.Property=6]="Property",v[v.Field=7]="Field",v[v.Constructor=8]="Constructor",v[v.Enum=9]="Enum",v[v.Interface=10]="Interface",v[v.Function=11]="Function",v[v.Variable=12]="Variable",v[v.Constant=13]="Constant",v[v.String=14]="String",v[v.Number=15]="Number",v[v.Boolean=16]="Boolean",v[v.Array=17]="Array",v[v.Object=18]="Object",v[v.Key=19]="Key",v[v.Null=20]="Null",v[v.EnumMember=21]="EnumMember",v[v.Struct=22]="Struct",v[v.Event=23]="Event",v[v.Operator=24]="Operator",v[v.TypeParameter=25]="TypeParameter"})(A0e||(A0e={}));var I0e;(function(v){v[v.Deprecated=1]="Deprecated"})(I0e||(I0e={}));var x0e;(function(v){v[v.LTR=0]="LTR",v[v.RTL=1]="RTL"})(x0e||(x0e={}));var R0e;(function(v){v[v.Hidden=0]="Hidden",v[v.Blink=1]="Blink",v[v.Smooth=2]="Smooth",v[v.Phase=3]="Phase",v[v.Expand=4]="Expand",v[v.Solid=5]="Solid"})(R0e||(R0e={}));var D0e;(function(v){v[v.Line=1]="Line",v[v.Block=2]="Block",v[v.Underline=3]="Underline",v[v.LineThin=4]="LineThin",v[v.BlockOutline=5]="BlockOutline",v[v.UnderlineThin=6]="UnderlineThin"})(D0e||(D0e={}));var C0e;(function(v){v[v.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",v[v.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",v[v.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",v[v.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(C0e||(C0e={}));var N0e;(function(v){v[v.None=0]="None",v[v.Same=1]="Same",v[v.Indent=2]="Indent",v[v.DeepIndent=3]="DeepIndent"})(N0e||(N0e={}));const V2=class V2{static chord(f,T){return gBe(f,T)}};V2.CtrlCmd=2048,V2.Shift=1024,V2.Alt=512,V2.WinCtrl=256;let yZ=V2;function zBe(){return{editor:void 0,languages:void 0,CancellationTokenSource:hbe,Emitter:hS,KeyCode:mZ,KeyMod:yZ,Position:Uc,Range:ll,Selection:ib,SelectionDirection:gZ,MarkerSeverity:hZ,MarkerTag:_Z,Uri:IN,Token:FBe}}var M0e;class BBe{constructor(){this[M0e]="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(f){return this._map.has(f)}get(f,T=0){const M=this._map.get(f);if(M)return T!==0&&this.touch(M,T),M.value}set(f,T,M=0){let W=this._map.get(f);if(W)W.value=T,M!==0&&this.touch(W,M);else{switch(W={key:f,value:T,next:void 0,previous:void 0},M){case 0:this.addItemLast(W);break;case 1:this.addItemFirst(W);break;case 2:this.addItemLast(W);break;default:this.addItemLast(W);break}this._map.set(f,W),this._size++}return this}delete(f){return!!this.remove(f)}remove(f){const T=this._map.get(f);if(T)return this._map.delete(f),this.removeItem(T),this._size--,T.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const f=this._head;return this._map.delete(f.key),this.removeItem(f),this._size--,f.value}forEach(f,T){const M=this._state;let W=this._head;for(;W;){if(T?f.bind(T)(W.value,W.key,this):f(W.value,W.key,this),this._state!==M)throw new Error("LinkedMap got modified during iteration.");W=W.next}}keys(){const f=this,T=this._state;let M=this._head;const W={[Symbol.iterator](){return W},[Symbol.dispose](){},next(){if(f._state!==T)throw new Error("LinkedMap got modified during iteration.");if(M){const Y={value:M.key,done:!1};return M=M.next,Y}else return{value:void 0,done:!0}}};return W}values(){const f=this,T=this._state;let M=this._head;const W={[Symbol.iterator](){return W},[Symbol.dispose](){},next(){if(f._state!==T)throw new Error("LinkedMap got modified during iteration.");if(M){const Y={value:M.value,done:!1};return M=M.next,Y}else return{value:void 0,done:!0}}};return W}entries(){const f=this,T=this._state;let M=this._head;const W={[Symbol.iterator](){return W},[Symbol.dispose](){},next(){if(f._state!==T)throw new Error("LinkedMap got modified during iteration.");if(M){const Y={value:[M.key,M.value],done:!1};return M=M.next,Y}else return{value:void 0,done:!0}}};return W}[(M0e=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(f){if(f>=this.size)return;if(f===0){this.clear();return}let T=this._head,M=this.size;for(;T&&M>f;)this._map.delete(T.key),T=T.next,M--;this._head=T,this._size=M,T&&(T.previous=void 0),this._state++}trimNew(f){if(f>=this.size)return;if(f===0){this.clear();return}let T=this._tail,M=this.size;for(;T&&M>f;)this._map.delete(T.key),T=T.previous,M--;this._tail=T,this._size=M,T&&(T.next=void 0),this._state++}addItemFirst(f){if(!this._head&&!this._tail)this._tail=f;else if(this._head)f.next=this._head,this._head.previous=f;else throw new Error("Invalid list");this._head=f,this._state++}addItemLast(f){if(!this._head&&!this._tail)this._head=f;else if(this._tail)f.previous=this._tail,this._tail.next=f;else throw new Error("Invalid list");this._tail=f,this._state++}removeItem(f){if(f===this._head&&f===this._tail)this._head=void 0,this._tail=void 0;else if(f===this._head){if(!f.next)throw new Error("Invalid list");f.next.previous=void 0,this._head=f.next}else if(f===this._tail){if(!f.previous)throw new Error("Invalid list");f.previous.next=void 0,this._tail=f.previous}else{const T=f.next,M=f.previous;if(!T||!M)throw new Error("Invalid list");T.previous=M,M.next=T}f.next=void 0,f.previous=void 0,this._state++}touch(f,T){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(T!==1&&T!==2)){if(T===1){if(f===this._head)return;const M=f.next,W=f.previous;f===this._tail?(W.next=void 0,this._tail=W):(M.previous=W,W.next=M),f.previous=void 0,f.next=this._head,this._head.previous=f,this._head=f,this._state++}else if(T===2){if(f===this._tail)return;const M=f.next,W=f.previous;f===this._head?(M.previous=void 0,this._head=M):(M.previous=W,W.next=M),f.next=void 0,f.previous=this._tail,this._tail.next=f,this._tail=f,this._state++}}}toJSON(){const f=[];return this.forEach((T,M)=>{f.push([M,T])}),f}fromJSON(f){this.clear();for(const[T,M]of f)this.set(T,M)}}class GBe extends BBe{constructor(f,T=1){super(),this._limit=f,this._ratio=Math.min(Math.max(0,T),1)}get limit(){return this._limit}set limit(f){this._limit=f,this.checkTrim()}get(f,T=2){return super.get(f,T)}peek(f){return super.get(f,0)}set(f,T){return super.set(f,T,2),this}checkTrim(){this.size>this._limit&&this.trim(Math.round(this._limit*this._ratio))}}class VBe extends GBe{constructor(f,T=1){super(f,T)}trim(f){this.trimOld(f)}set(f,T){return super.set(f,T),this.checkTrim(),this}}class jBe{constructor(){this.map=new Map}add(f,T){let M=this.map.get(f);M||(M=new Set,this.map.set(f,M)),M.add(T)}delete(f,T){const M=this.map.get(f);M&&(M.delete(T),M.size===0&&this.map.delete(f))}forEach(f,T){const M=this.map.get(f);M&&M.forEach(T)}}new VBe(10);var P0e;(function(v){v[v.Left=1]="Left",v[v.Center=2]="Center",v[v.Right=4]="Right",v[v.Full=7]="Full"})(P0e||(P0e={}));var L0e;(function(v){v[v.Left=1]="Left",v[v.Center=2]="Center",v[v.Right=3]="Right"})(L0e||(L0e={}));var w0e;(function(v){v[v.LTR=0]="LTR",v[v.RTL=1]="RTL"})(w0e||(w0e={}));var k0e;(function(v){v[v.Both=0]="Both",v[v.Right=1]="Right",v[v.Left=2]="Left",v[v.None=3]="None"})(k0e||(k0e={}));function UBe(v){if(!v||v.length===0)return!1;for(let f=0,T=v.length;f<T;f++){const M=v.charCodeAt(f);if(M===10)return!0;if(M===92){if(f++,f>=T)break;const W=v.charCodeAt(f);if(W===110||W===114||W===87)return!0}}return!1}function HBe(v,f,T,M,W){if(M===0)return!0;const Y=f.charCodeAt(M-1);if(v.get(Y)!==0||Y===13||Y===10)return!0;if(W>0){const ce=f.charCodeAt(M);if(v.get(ce)!==0)return!0}return!1}function qBe(v,f,T,M,W){if(M+W===T)return!0;const Y=f.charCodeAt(M+W);if(v.get(Y)!==0||Y===13||Y===10)return!0;if(W>0){const ce=f.charCodeAt(M+W-1);if(v.get(ce)!==0)return!0}return!1}function JBe(v,f,T,M,W){return HBe(v,f,T,M,W)&&qBe(v,f,T,M,W)}class KBe{constructor(f,T){this._wordSeparators=f,this._searchRegex=T,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(f){this._searchRegex.lastIndex=f,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(f){const T=f.length;let M;do{if(this._prevMatchStartIndex+this._prevMatchLength===T||(M=this._searchRegex.exec(f),!M))return null;const W=M.index,Y=M[0].length;if(W===this._prevMatchStartIndex&&Y===this._prevMatchLength){if(Y===0){$5e(f,T,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=W,this._prevMatchLength=Y,!this._wordSeparators||JBe(this._wordSeparators,f,T,W,Y))return M}while(M);return null}}const XBe="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function $Be(v=""){let f="(-?\\d*\\.\\d\\w*)|([^";for(const T of XBe)v.indexOf(T)>=0||(f+="\\"+T);return f+="\\s]+)",new RegExp(f,"g")}const O0e=$Be();function W0e(v){let f=O0e;if(v&&v instanceof RegExp)if(v.global)f=v;else{let T="g";v.ignoreCase&&(T+="i"),v.multiline&&(T+="m"),v.unicode&&(T+="u"),f=new RegExp(v.source,T)}return f.lastIndex=0,f}const F0e=new A5e;F0e.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function vZ(v,f,T,M,W){if(f=W0e(f),W||(W=e9.first(F0e)),T.length>W.maxLen){let $e=v-W.maxLen/2;return $e<0?$e=0:M+=$e,T=T.substring($e,v+W.maxLen/2),vZ(v,f,T,M,W)}const Y=Date.now(),ce=v-1-M;let Se=-1,$=null;for(let $e=1;!(Date.now()-Y>=W.timeBudget);$e++){const Oe=ce-W.windowSize*$e;f.lastIndex=Math.max(0,Oe);const Le=YBe(f,T,ce,Se);if(!Le&&$||($=Le,Oe<=0))break;Se=Oe}if($){const $e={word:$[0],startColumn:M+1+$.index,endColumn:M+1+$.index+$[0].length};return f.lastIndex=0,$e}return null}function YBe(v,f,T,M){let W;for(;W=v.exec(f);){const Y=W.index||0;if(Y<=T&&v.lastIndex>=T)return W;if(M>0&&Y>M)return null}return null}class QBe{static computeUnicodeHighlights(f,T,M){const W=M?M.startLineNumber:1,Y=M?M.endLineNumber:f.getLineCount(),ce=new z0e(T),Se=ce.getCandidateCodePoints();let $;Se==="allNonBasicAscii"?$=new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):$=new RegExp(`${ZBe(Array.from(Se))}`,"g");const $e=new KBe(null,$),Oe=[];let Le=!1,Bt,en=0,mn=0,on=0;e:for(let xr=W,pi=Y;xr<=pi;xr++){const vn=f.getLineContent(xr),Kt=vn.length;$e.reset(0);do if(Bt=$e.next(vn),Bt){let to=Bt.index,Ti=Bt.index+Bt[0].length;if(to>0){const oo=vn.charCodeAt(to-1);NR(oo)&&to--}if(Ti+1<Kt){const oo=vn.charCodeAt(Ti-1);NR(oo)&&Ti++}const Qo=vn.substring(to,Ti);let Hn=vZ(to+1,O0e,vn,0);Hn&&Hn.endColumn<=to+1&&(Hn=null);const _i=ce.shouldHighlightNonBasicASCII(Qo,Hn?Hn.word:null);if(_i!==0){if(_i===3?en++:_i===2?mn++:_i===1?on++:y5e(),Oe.length>=1e3){Le=!0;break e}Oe.push(new ll(xr,to+1,xr,Ti+1))}}while(Bt)}return{ranges:Oe,hasMore:Le,ambiguousCharacterCount:en,invisibleCharacterCount:mn,nonBasicAsciiCharacterCount:on}}static computeUnicodeHighlightReason(f,T){const M=new z0e(T);switch(M.shouldHighlightNonBasicASCII(f,null)){case 0:return null;case 2:return{kind:1};case 3:{const Y=f.codePointAt(0),ce=M.ambiguousCharacters.getPrimaryConfusable(Y),Se=cF.getLocales().filter($=>!cF.getInstance(new Set([...T.allowedLocales,$])).isAmbiguous(Y));return{kind:0,confusableWith:String.fromCodePoint(ce),notAmbiguousInLocales:Se}}case 1:return{kind:2}}}}function ZBe(v,f){return`[${H5e(v.map(M=>String.fromCodePoint(M)).join(""))}]`}class z0e{constructor(f){this.options=f,this.allowedCodePoints=new Set(f.allowedCodePoints),this.ambiguousCharacters=cF.getInstance(new Set(f.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const f=new Set;if(this.options.invisibleCharacters)for(const T of dF.codePoints)B0e(String.fromCodePoint(T))||f.add(T);if(this.options.ambiguousCharacters)for(const T of this.ambiguousCharacters.getConfusableCodePoints())f.add(T);for(const T of this.allowedCodePoints)f.delete(T);return f}shouldHighlightNonBasicASCII(f,T){const M=f.codePointAt(0);if(this.allowedCodePoints.has(M))return 0;if(this.options.nonBasicASCII)return 1;let W=!1,Y=!1;if(T)for(const ce of T){const Se=ce.codePointAt(0),$=Q5e(ce);W=W||$,!$&&!this.ambiguousCharacters.isAmbiguous(Se)&&!dF.isInvisibleCharacter(Se)&&(Y=!0)}return!W&&Y?0:this.options.invisibleCharacters&&!B0e(f)&&dF.isInvisibleCharacter(M)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(M)?3:0}}function B0e(v){return v===" "||v===`8`||v===" "}let fF=class{constructor(f,T,M){this.changes=f,this.moves=T,this.hitTimeout=M}},G0e=class{constructor(f,T){this.lineRangeMapping=f,this.changes=T}};function e9e(v,f,T=(M,W)=>M===W){if(v===f)return!0;if(!v||!f||v.length!==f.length)return!1;for(let M=0,W=v.length;M<W;M++)if(!T(v[M],f[M]))return!1;return!0}function*t9e(v,f){let T,M;for(const W of v)M!==void 0&&f(M,W)?T.push(W):(T&&(yield T),T=[W]),M=W;T&&(yield T)}function n9e(v,f){for(let T=0;T<=v.length;T++)f(T===0?void 0:v[T-1],T===v.length?void 0:v[T])}function r9e(v,f){for(let T=0;T<v.length;T++)f(T===0?void 0:v[T-1],v[T],T+1===v.length?void 0:v[T+1])}function i9e(v,f){for(const T of f)v.push(T)}var bZ;(function(v){function f(Y){return Y<0}v.isLessThan=f;function T(Y){return Y<=0}v.isLessThanOrEqual=T;function M(Y){return Y>0}v.isGreaterThan=M;function W(Y){return Y===0}v.isNeitherLessOrGreaterThan=W,v.greaterThan=1,v.lessThan=-1,v.neitherLessOrGreaterThan=0})(bZ||(bZ={}));function I2(v,f){return(T,M)=>f(v(T),v(M))}const mF=(v,f)=>v-f;function o9e(v){return(f,T)=>-v(f,T)}const j2=class j2{constructor(f){this.iterate=f}toArray(){const f=[];return this.iterate(T=>(f.push(T),!0)),f}filter(f){return new j2(T=>this.iterate(M=>f(M)?T(M):!0))}map(f){return new j2(T=>this.iterate(M=>T(f(M))))}findLast(f){let T;return this.iterate(M=>(f(M)&&(T=M),!0)),T}findLastMaxBy(f){let T,M=!0;return this.iterate(W=>((M||bZ.isGreaterThan(f(W,T)))&&(M=!1,T=W),!0)),T}};j2.empty=new j2(f=>{});let V0e=j2,Nl=class rb{static fromTo(f,T){return new rb(f,T)}static addRange(f,T){let M=0;for(;M<T.length&&T[M].endExclusive<f.start;)M++;let W=M;for(;W<T.length&&T[W].start<=f.endExclusive;)W++;if(M===W)T.splice(M,0,f);else{const Y=Math.min(f.start,T[M].start),ce=Math.max(f.endExclusive,T[W-1].endExclusive);T.splice(M,W-M,new rb(Y,ce))}}static tryCreate(f,T){if(!(f>T))return new rb(f,T)}static ofLength(f){return new rb(0,f)}static ofStartAndLength(f,T){return new rb(f,f+T)}static emptyAt(f){return new rb(f,f)}constructor(f,T){if(this.start=f,this.endExclusive=T,f>T)throw new hm(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(f){return new rb(this.start+f,this.endExclusive+f)}deltaStart(f){return new rb(this.start+f,this.endExclusive)}deltaEnd(f){return new rb(this.start,this.endExclusive+f)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}equals(f){return this.start===f.start&&this.endExclusive===f.endExclusive}containsRange(f){return this.start<=f.start&&f.endExclusive<=this.endExclusive}contains(f){return this.start<=f&&f<this.endExclusive}join(f){return new rb(Math.min(this.start,f.start),Math.max(this.endExclusive,f.endExclusive))}intersect(f){const T=Math.max(this.start,f.start),M=Math.min(this.endExclusive,f.endExclusive);if(T<=M)return new rb(T,M)}intersectionLength(f){const T=Math.max(this.start,f.start),M=Math.min(this.endExclusive,f.endExclusive);return Math.max(0,M-T)}intersects(f){const T=Math.max(this.start,f.start),M=Math.min(this.endExclusive,f.endExclusive);return T<M}intersectsOrTouches(f){const T=Math.max(this.start,f.start),M=Math.min(this.endExclusive,f.endExclusive);return T<=M}isBefore(f){return this.endExclusive<=f.start}isAfter(f){return this.start>=f.endExclusive}slice(f){return f.slice(this.start,this.endExclusive)}substring(f){return f.substring(this.start,this.endExclusive)}clip(f){if(this.isEmpty)throw new hm(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,f))}clipCyclic(f){if(this.isEmpty)throw new hm(`Invalid clipping range: ${this.toString()}`);return f<this.start?this.endExclusive-(this.start-f)%this.length:f>=this.endExclusive?this.start+(f-this.start)%this.length:f}forEach(f){for(let T=this.start;T<this.endExclusive;T++)f(T)}joinRightTouching(f){if(this.endExclusive!==f.start)throw new hm(`Invalid join: ${this.toString()} and ${f.toString()}`);return new rb(this.start,f.endExclusive)}withMargin(f,T){return T===void 0&&(T=f),new rb(this.start-f,this.endExclusive+T)}};function x2(v,f){const T=R2(v,f);return T===-1?void 0:v[T]}function R2(v,f,T=0,M=v.length){let W=T,Y=M;for(;W<Y;){const ce=Math.floor((W+Y)/2);f(v[ce])?W=ce+1:Y=ce}return W-1}function a9e(v,f){const T=TZ(v,f);return T===v.length?void 0:v[T]}function TZ(v,f,T=0,M=v.length){let W=T,Y=M;for(;W<Y;){const ce=Math.floor((W+Y)/2);f(v[ce])?Y=ce:W=ce+1}return W}const E9=class E9{constructor(f){this._array=f,this._findLastMonotonousLastIdx=0}findLastMonotonous(f){if(E9.assertInvariants){if(this._prevFindLastPredicate){for(const M of this._array)if(this._prevFindLastPredicate(M)&&!f(M))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.")}this._prevFindLastPredicate=f}const T=R2(this._array,f,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=T+1,T===-1?void 0:this._array[T]}};E9.assertInvariants=!1;let u9=E9,td=(pg=class{static ofLength(f,T){return new pg(f,f+T)}static fromRange(f){return new pg(f.startLineNumber,f.endLineNumber)}static fromRangeInclusive(f){return new pg(f.startLineNumber,f.endLineNumber+1)}static joinMany(f){if(f.length===0)return[];let T=new p9(f[0].slice());for(let M=1;M<f.length;M++)T=T.getUnion(new p9(f[M].slice()));return T.ranges}static join(f){if(f.length===0)throw new hm("lineRanges cannot be empty");let T=f[0].startLineNumber,M=f[0].endLineNumberExclusive;for(let W=1;W<f.length;W++)T=Math.min(T,f[W].startLineNumber),M=Math.max(M,f[W].endLineNumberExclusive);return new pg(T,M)}static deserialize(f){return new pg(f[0],f[1])}constructor(f,T){if(f>T)throw new hm(`startLineNumber ${f} cannot be after endLineNumberExclusive ${T}`);this.startLineNumber=f,this.endLineNumberExclusive=T}contains(f){return this.startLineNumber<=f&&f<this.endLineNumberExclusive}get isEmpty(){return this.startLineNumber===this.endLineNumberExclusive}delta(f){return new pg(this.startLineNumber+f,this.endLineNumberExclusive+f)}deltaLength(f){return new pg(this.startLineNumber,this.endLineNumberExclusive+f)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(f){return new pg(Math.min(this.startLineNumber,f.startLineNumber),Math.max(this.endLineNumberExclusive,f.endLineNumberExclusive))}toString(){return`[${this.startLineNumber},${this.endLineNumberExclusive})`}intersect(f){const T=Math.max(this.startLineNumber,f.startLineNumber),M=Math.min(this.endLineNumberExclusive,f.endLineNumberExclusive);if(T<=M)return new pg(T,M)}intersectsStrict(f){return this.startLineNumber<f.endLineNumberExclusive&&f.startLineNumber<this.endLineNumberExclusive}intersectsOrTouches(f){return this.startLineNumber<=f.endLineNumberExclusive&&f.startLineNumber<=this.endLineNumberExclusive}equals(f){return this.startLineNumber===f.startLineNumber&&this.endLineNumberExclusive===f.endLineNumberExclusive}toInclusiveRange(){return this.isEmpty?null:new ll(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new ll(this.startLineNumber,1,this.endLineNumberExclusive,1)}mapToLineArray(f){const T=[];for(let M=this.startLineNumber;M<this.endLineNumberExclusive;M++)T.push(f(M));return T}forEach(f){for(let T=this.startLineNumber;T<this.endLineNumberExclusive;T++)f(T)}serialize(){return[this.startLineNumber,this.endLineNumberExclusive]}toOffsetRange(){return new Nl(this.startLineNumber-1,this.endLineNumberExclusive-1)}addMargin(f,T){return new pg(this.startLineNumber-f,this.endLineNumberExclusive+T)}},pg.compareByStart=I2(f=>f.startLineNumber,mF),pg),p9=class eF{constructor(f=[]){this._normalizedRanges=f}get ranges(){return this._normalizedRanges}addRange(f){if(f.length===0)return;const T=TZ(this._normalizedRanges,W=>W.endLineNumberExclusive>=f.startLineNumber),M=R2(this._normalizedRanges,W=>W.startLineNumber<=f.endLineNumberExclusive)+1;if(T===M)this._normalizedRanges.splice(T,0,f);else if(T===M-1){const W=this._normalizedRanges[T];this._normalizedRanges[T]=W.join(f)}else{const W=this._normalizedRanges[T].join(this._normalizedRanges[M-1]).join(f);this._normalizedRanges.splice(T,M-T,W)}}contains(f){const T=x2(this._normalizedRanges,M=>M.startLineNumber<=f);return!!T&&T.endLineNumberExclusive>f}intersects(f){const T=x2(this._normalizedRanges,M=>M.startLineNumber<f.endLineNumberExclusive);return!!T&&T.endLineNumberExclusive>f.startLineNumber}getUnion(f){if(this._normalizedRanges.length===0)return f;if(f._normalizedRanges.length===0)return this;const T=[];let M=0,W=0,Y=null;for(;M<this._normalizedRanges.length||W<f._normalizedRanges.length;){let ce=null;if(M<this._normalizedRanges.length&&W<f._normalizedRanges.length){const Se=this._normalizedRanges[M],$=f._normalizedRanges[W];Se.startLineNumber<$.startLineNumber?(ce=Se,M++):(ce=$,W++)}else M<this._normalizedRanges.length?(ce=this._normalizedRanges[M],M++):(ce=f._normalizedRanges[W],W++);Y===null?Y=ce:Y.endLineNumberExclusive>=ce.startLineNumber?Y=new td(Y.startLineNumber,Math.max(Y.endLineNumberExclusive,ce.endLineNumberExclusive)):(T.push(Y),Y=ce)}return Y!==null&&T.push(Y),new eF(T)}subtractFrom(f){const T=TZ(this._normalizedRanges,ce=>ce.endLineNumberExclusive>=f.startLineNumber),M=R2(this._normalizedRanges,ce=>ce.startLineNumber<=f.endLineNumberExclusive)+1;if(T===M)return new eF([f]);const W=[];let Y=f.startLineNumber;for(let ce=T;ce<M;ce++){const Se=this._normalizedRanges[ce];Se.startLineNumber>Y&&W.push(new td(Y,Se.startLineNumber)),Y=Se.endLineNumberExclusive}return Y<f.endLineNumberExclusive&&W.push(new td(Y,f.endLineNumberExclusive)),new eF(W)}toString(){return this._normalizedRanges.map(f=>f.toString()).join(", ")}getIntersection(f){const T=[];let M=0,W=0;for(;M<this._normalizedRanges.length&&W<f._normalizedRanges.length;){const Y=this._normalizedRanges[M],ce=f._normalizedRanges[W],Se=Y.intersect(ce);Se&&!Se.isEmpty&&T.push(Se),Y.endLineNumberExclusive<ce.endLineNumberExclusive?M++:W++}return new eF(T)}getWithDelta(f){return new eF(this._normalizedRanges.map(T=>T.delta(f)))}};const vS=class vS{static betweenPositions(f,T){return f.lineNumber===T.lineNumber?new vS(0,T.column-f.column):new vS(T.lineNumber-f.lineNumber,T.column-1)}static fromPosition(f){return new vS(f.lineNumber-1,f.column-1)}static ofRange(f){return vS.betweenPositions(f.getStartPosition(),f.getEndPosition())}static ofText(f){let T=0,M=0;for(const W of f)W===`9`?(T++,M=0):M+=W.length;return new vS(T,M)}constructor(f,T){this.lineCount=f,this.columnCount=T}isGreaterThanOrEqualTo(f){return this.lineCount!==f.lineCount?this.lineCount>f.lineCount:this.columnCount>=f.columnCount}add(f){return f.lineCount===0?new vS(this.lineCount,this.columnCount+f.columnCount):new vS(this.lineCount+f.lineCount,f.columnCount)}createRange(f){return this.lineCount===0?new ll(f.lineNumber,f.column,f.lineNumber,f.column+this.columnCount):new ll(f.lineNumber,f.column,f.lineNumber+this.lineCount,this.columnCount+1)}toRange(){return new ll(1,1,this.lineCount+1,this.columnCount+1)}toLineRange(){return td.ofLength(1,this.lineCount+1)}addToPosition(f){return this.lineCount===0?new Uc(f.lineNumber,f.column+this.columnCount):new Uc(f.lineNumber+this.lineCount,this.columnCount+1)}toString(){return`${this.lineCount},${this.columnCount}`}};vS.zero=new vS(0,0);let PR=vS;class s9e{getOffsetRange(f){return new Nl(this.getOffset(f.getStartPosition()),this.getOffset(f.getEndPosition()))}getRange(f){return ll.fromPositions(this.getPosition(f.start),this.getPosition(f.endExclusive))}getStringReplacement(f){return new xN.deps.StringReplacement(this.getOffsetRange(f.range),f.text)}getTextReplacement(f){return new xN.deps.TextReplacement(this.getRange(f.replaceRange),f.newText)}getTextEdit(f){const T=f.replacements.map(M=>this.getTextReplacement(M));return new xN.deps.TextEdit(T)}}const WZ=class WZ{static get deps(){if(!this._deps)throw new Error("Dependencies not set. Call _setDependencies first.");return this._deps}};WZ._deps=void 0;let xN=WZ;function l9e(v){xN._deps=v}class j0e extends s9e{constructor(f){super(),this.text=f}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 f=0;f<this.text.length;f++)this.text.charAt(f)===`10`&&(this._lineStartOffsetByLineIdx.push(f+1),f>0&&this.text.charAt(f-1)==="\r"?this._lineEndOffsetByLineIdx.push(f-1):this._lineEndOffsetByLineIdx.push(f));this._lineEndOffsetByLineIdx.push(this.text.length)}getOffset(f){const T=this._validatePosition(f);return this.lineStartOffsetByLineIdx[T.lineNumber-1]+T.column-1}_validatePosition(f){if(f.lineNumber<1)return new Uc(1,1);const T=this.textLength.lineCount+1;if(f.lineNumber>T){const W=this.getLineLength(T);return new Uc(T,W+1)}if(f.column<1)return new Uc(f.lineNumber,1);const M=this.getLineLength(f.lineNumber);return f.column-1>M?new Uc(f.lineNumber,M+1):f}getPosition(f){const T=R2(this.lineStartOffsetByLineIdx,Y=>Y<=f),M=T+1,W=f-this.lineStartOffsetByLineIdx[T]+1;return new Uc(M,W)}get textLength(){const f=this.lineStartOffsetByLineIdx.length-1;return new xN.deps.TextLength(f,this.text.length-this.lineStartOffsetByLineIdx[f])}getLineLength(f){return this.lineEndOffsetByLineIdx[f-1]-this.lineStartOffsetByLineIdx[f-1]}}class U0e{constructor(){this._transformer=void 0}get endPositionExclusive(){return this.length.addToPosition(new Uc(1,1))}get lineRange(){return this.length.toLineRange()}getValue(){return this.getValueOfRange(this.length.toRange())}getValueOfOffsetRange(f){return this.getValueOfRange(this.getTransformer().getRange(f))}getLineLength(f){return this.getValueOfRange(new ll(f,1,f,Number.MAX_SAFE_INTEGER)).length}getTransformer(){return this._transformer||(this._transformer=new j0e(this.getValue())),this._transformer}getLineAt(f){return this.getValueOfRange(new ll(f,1,f,Number.MAX_SAFE_INTEGER))}}class c9e extends U0e{constructor(f,T){v5e(T>=1),super(),this._getLineContent=f,this._lineCount=T}getValueOfRange(f){if(f.startLineNumber===f.endLineNumber)return this._getLineContent(f.startLineNumber).substring(f.startColumn-1,f.endColumn-1);let T=this._getLineContent(f.startLineNumber).substring(f.startColumn-1);for(let M=f.startLineNumber+1;M<f.endLineNumber;M++)T+=`11`+this._getLineContent(M);return T+=`12`+this._getLineContent(f.endLineNumber).substring(0,f.endColumn-1),T}getLineLength(f){return this._getLineContent(f).length}get length(){const f=this._getLineContent(this._lineCount);return new PR(this._lineCount-1,f.length)}}let D2=class extends c9e{constructor(f){super(T=>f[T-1],f.length)}};class f9 extends U0e{constructor(f){super(),this.value=f,this._t=new j0e(this.value)}getValueOfRange(f){return this._t.getOffsetRange(f).substring(this.value)}get length(){return this._t.textLength}getTransformer(){return this._t}}class C2{static fromStringEdit(f,T){const M=f.replacements.map(W=>P0.fromStringReplacement(W,T));return new C2(M)}static fromParallelReplacementsUnsorted(f){const T=f.slice().sort(I2(M=>M.range,ll.compareRangesUsingStarts));return new C2(T)}constructor(f){this.replacements=f,oF(()=>qQ(f,(T,M)=>T.range.getEndPosition().isBeforeOrEqual(M.range.getStartPosition())))}normalize(){const f=[];for(const T of this.replacements)if(f.length>0&&f[f.length-1].range.getEndPosition().equals(T.range.getStartPosition())){const M=f[f.length-1];f[f.length-1]=new P0(M.range.plusRange(T.range),M.text+T.text)}else T.isEmpty||f.push(T);return new C2(f)}mapPosition(f){let T=0,M=0,W=0;for(const Y of this.replacements){const ce=Y.range.getStartPosition();if(f.isBeforeOrEqual(ce))break;const Se=Y.range.getEndPosition(),$=PR.ofText(Y.text);if(f.isBefore(Se)){const $e=new Uc(ce.lineNumber+T,ce.column+(ce.lineNumber+T===M?W:0)),Oe=$.addToPosition($e);return m9($e,Oe)}ce.lineNumber+T!==M&&(W=0),T+=$.lineCount-(Y.range.endLineNumber-Y.range.startLineNumber),$.lineCount===0?Se.lineNumber!==ce.lineNumber?W+=$.columnCount-(Se.column-1):W+=$.columnCount-(Se.column-ce.column):W=$.columnCount,M=Se.lineNumber+T}return new Uc(f.lineNumber+T,f.column+(f.lineNumber+T===M?W:0))}mapRange(f){function T(ce){return ce instanceof Uc?ce:ce.getStartPosition()}function M(ce){return ce instanceof Uc?ce:ce.getEndPosition()}const W=T(this.mapPosition(f.getStartPosition())),Y=M(this.mapPosition(f.getEndPosition()));return m9(W,Y)}apply(f){let T="",M=new Uc(1,1);for(const Y of this.replacements){const ce=Y.range,Se=ce.getStartPosition(),$=ce.getEndPosition(),$e=m9(M,Se);$e.isEmpty()||(T+=f.getValueOfRange($e)),T+=Y.text,M=$}const W=m9(M,f.endPositionExclusive);return W.isEmpty()||(T+=f.getValueOfRange(W)),T}applyToString(f){const T=new f9(f);return this.apply(T)}getNewRanges(){const f=[];let T=0,M=0,W=0;for(const Y of this.replacements){const ce=PR.ofText(Y.text),Se=Uc.lift({lineNumber:Y.range.startLineNumber+M,column:Y.range.startColumn+(Y.range.startLineNumber===T?W:0)}),$=ce.createRange(Se);f.push($),M=$.endLineNumber-Y.range.endLineNumber,W=$.endColumn-Y.range.endColumn,T=Y.range.endLineNumber}return f}toReplacement(f){if(this.replacements.length===0)throw new hm;if(this.replacements.length===1)return this.replacements[0];const T=this.replacements[0].range.getStartPosition(),M=this.replacements[this.replacements.length-1].range.getEndPosition();let W="";for(let Y=0;Y<this.replacements.length;Y++){const ce=this.replacements[Y];if(W+=ce.text,Y<this.replacements.length-1){const Se=this.replacements[Y+1],$=ll.fromPositions(ce.range.getEndPosition(),Se.range.getStartPosition()),$e=f.getValueOfRange($);W+=$e}}return new P0(ll.fromPositions(T,M),W)}toString(f){return f===void 0?this.replacements.map(T=>T.toString()).join(`13`):typeof f=="string"?this.toString(new f9(f)):this.replacements.length===0?"":this.replacements.map(T=>{const W=f.getValueOfRange(T.range),Y=ll.fromPositions(new Uc(Math.max(1,T.range.startLineNumber-1),1),T.range.getStartPosition());let ce=f.getValueOfRange(Y);ce.length>10&&(ce="..."+ce.substring(ce.length-10));const Se=ll.fromPositions(T.range.getEndPosition(),new Uc(T.range.endLineNumber+1,1));let $=f.getValueOfRange(Se);$.length>10&&($=$.substring(0,10)+"...");let $e=W;if($e.length>10){const Le=Math.floor(5);$e=$e.substring(0,Le)+"..."+$e.substring($e.length-Le)}let Oe=T.text;if(Oe.length>10){const Le=Math.floor(5);Oe=Oe.substring(0,Le)+"..."+Oe.substring(Oe.length-Le)}return $e.length===0?`${ce}❰${Oe}❱${$}`:`${ce}❰${$e}↦${Oe}❱${$}`}).join(`14`)}}class P0{static joinReplacements(f,T){if(f.length===0)throw new hm;if(f.length===1)return f[0];const M=f[0].range.getStartPosition(),W=f[f.length-1].range.getEndPosition();let Y="";for(let ce=0;ce<f.length;ce++){const Se=f[ce];if(Y+=Se.text,ce<f.length-1){const $=f[ce+1],$e=ll.fromPositions(Se.range.getEndPosition(),$.range.getStartPosition()),Oe=T.getValueOfRange($e);Y+=Oe}}return new P0(ll.fromPositions(M,W),Y)}static fromStringReplacement(f,T){return new P0(T.getTransformer().getRange(f.replaceRange),f.newText)}static delete(f){return new P0(f,"")}constructor(f,T){this.range=f,this.text=T}get isEmpty(){return this.range.isEmpty()&&this.text.length===0}static equals(f,T){return f.range.equalsRange(T.range)&&f.text===T.text}equals(f){return P0.equals(this,f)}removeCommonPrefixAndSuffix(f){return this.removeCommonPrefix(f).removeCommonSuffix(f)}removeCommonPrefix(f){const T=f.getValueOfRange(this.range).replaceAll(`\r15`,`16`),M=this.text.replaceAll(`\r17`,`18`),W=nZ(T,M),Y=PR.ofText(T.substring(0,W)).addToPosition(this.range.getStartPosition()),ce=M.substring(W),Se=ll.fromPositions(Y,this.range.getEndPosition());return new P0(Se,ce)}removeCommonSuffix(f){const T=f.getValueOfRange(this.range).replaceAll(`\r19`,`20`),M=this.text.replaceAll(`\r21`,`22`),W=rZ(T,M),Y=PR.ofText(T.substring(0,T.length-W)).addToPosition(this.range.getStartPosition()),ce=M.substring(0,M.length-W),Se=ll.fromPositions(this.range.getStartPosition(),Y);return new P0(Se,ce)}toString(){const f=this.range.getStartPosition(),T=this.range.getEndPosition();return`(${f.lineNumber},${f.column} -> ${T.lineNumber},${T.column}): "${this.text}"`}}function m9(v,f){if(v.lineNumber===f.lineNumber&&v.column===Number.MAX_SAFE_INTEGER)return ll.fromPositions(f,f);if(!v.isBeforeOrEqual(f))throw new hm("start must be before end");return new ll(v.lineNumber,v.column,f.lineNumber,f.column)}let RN=class tF{static inverse(f,T,M){const W=[];let Y=1,ce=1;for(const $ of f){const $e=new tF(new td(Y,$.original.startLineNumber),new td(ce,$.modified.startLineNumber));$e.modified.isEmpty||W.push($e),Y=$.original.endLineNumberExclusive,ce=$.modified.endLineNumberExclusive}const Se=new tF(new td(Y,T+1),new td(ce,M+1));return Se.modified.isEmpty||W.push(Se),W}static clip(f,T,M){const W=[];for(const Y of f){const ce=Y.original.intersect(T),Se=Y.modified.intersect(M);ce&&!ce.isEmpty&&Se&&!Se.isEmpty&&W.push(new tF(ce,Se))}return W}constructor(f,T){this.original=f,this.modified=T}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new tF(this.modified,this.original)}join(f){return new tF(this.original.join(f.original),this.modified.join(f.modified))}toRangeMapping(){const f=this.original.toInclusiveRange(),T=this.modified.toInclu
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 1c27633 on master.
Approval requests
None pending.