zen-gitsync 2.11.16 → 2.11.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/src/ui/public/assets/{css.worker-DJHgoStD.js → css.worker-B4z49cGk.js} +37 -37
- package/src/ui/public/assets/editor.worker-DyuDvpVp.js +26 -0
- package/src/ui/public/assets/{html.worker-BSNtyp_I.js → html.worker-DtiGdgqp.js} +35 -35
- package/src/ui/public/assets/index-DQJOtLRB.js +109 -0
- package/src/ui/public/assets/index-Dj1LeHi7.css +1 -0
- package/src/ui/public/assets/json.worker-leyajbqV.js +58 -0
- package/src/ui/public/assets/{ts.worker--OkPaiLD.js → ts.worker-59MjiAqk.js} +108 -108
- package/src/ui/public/assets/vendor-CHxHnXYz.css +1 -0
- package/src/ui/public/assets/vendor-OgU7advQ.js +1374 -0
- package/src/ui/public/index.html +4 -4
- package/src/ui/public/assets/editor.worker-1JAmoQSB.js +0 -26
- package/src/ui/public/assets/index-CznTchnm.js +0 -109
- package/src/ui/public/assets/index-DKRuCE6_.css +0 -1
- package/src/ui/public/assets/json.worker--DwPKSpO.js +0 -58
- package/src/ui/public/assets/vendor-B0E7kpbo.css +0 -1
- package/src/ui/public/assets/vendor-CNQxajSy.js +0 -1341
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
var
|
|
1
|
+
var hh=Object.defineProperty;var dh=(Ye,ze,He)=>ze in Ye?hh(Ye,ze,{enumerable:!0,configurable:!0,writable:!0,value:He}):Ye[ze]=He;var Qe=(Ye,ze,He)=>dh(Ye,typeof ze!="symbol"?ze+"":ze,He);(function(){"use strict";var Oe,ao,oo,lo,uo,he,Q;class Ye{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?at.isErrorNoTelemetry(e)?new at(e.message+`
|
|
2
2
|
|
|
3
|
-
`+
|
|
3
|
+
`+e.stack):new Error(e.message+`
|
|
4
4
|
|
|
5
|
-
`+t.stack):t},0)}}emit(t){this.listeners.forEach(n=>{n(t)})}onUnexpectedError(t){this.unexpectedErrorHandler(t),this.emit(t)}onUnexpectedExternalError(t){this.unexpectedErrorHandler(t)}}const ze=new Ye;function He(e){yo(e)||ze.onUnexpectedError(e)}function Rn(e){if(e instanceof Error){const{name:t,message:n,cause:i}=e,r=e.stacktrace||e.stack;return{$isError:!0,name:t,message:n,stack:r,noTelemetry:at.isErrorNoTelemetry(e),cause:i?Rn(i):void 0,code:e.code}}return e}const Mn="Canceled";function yo(e){return e instanceof Oi?!0:e instanceof Error&&e.name===Mn&&e.message===Mn}class Oi extends Error{constructor(){super(Mn),this.name=this.message}}class at extends Error{constructor(t){super(t),this.name="CodeExpectedError"}static fromError(t){if(t instanceof at)return t;const n=new at;return n.message=t.message,n.stack=t.stack,n}static isErrorNoTelemetry(t){return t.name==="CodeExpectedError"}}class ue extends Error{constructor(t){super(t||"An unexpected bug occurred."),Object.setPrototypeOf(this,ue.prototype)}}function To(e,t="Unreachable"){throw new Error(t)}function xo(e,t="unexpected state"){if(!e)throw typeof t=="string"?new ue(`Assertion Failed: ${t}`):t}function Gt(e){if(!e()){debugger;e(),He(new ue("Assertion Failed"))}}function Vi(e,t){let n=0;for(;n<e.length-1;){const i=e[n],r=e[n+1];if(!t(i,r))return!1;n++}return!0}function ko(e){return typeof e=="string"}function So(e){return!!e&&typeof e[Symbol.iterator]=="function"}var Xt;(function(e){function t(b){return!!b&&typeof b=="object"&&typeof b[Symbol.iterator]=="function"}e.is=t;const n=Object.freeze([]);function i(){return n}e.empty=i;function*r(b){yield b}e.single=r;function s(b){return t(b)?b:r(b)}e.wrap=s;function a(b){return b||n}e.from=a;function*l(b){for(let g=b.length-1;g>=0;g--)yield b[g]}e.reverse=l;function o(b){return!b||b[Symbol.iterator]().next().done===!0}e.isEmpty=o;function u(b){return b[Symbol.iterator]().next().value}e.first=u;function c(b,g){let _=0;for(const N of b)if(g(N,_++))return!0;return!1}e.some=c;function d(b,g){let _=0;for(const N of b)if(!g(N,_++))return!1;return!0}e.every=d;function m(b,g){for(const _ of b)if(g(_))return _}e.find=m;function*f(b,g){for(const _ of b)g(_)&&(yield _)}e.filter=f;function*w(b,g){let _=0;for(const N of b)yield g(N,_++)}e.map=w;function*p(b,g){let _=0;for(const N of b)yield*g(N,_++)}e.flatMap=p;function*x(...b){for(const g of b)So(g)?yield*g:yield g}e.concat=x;function T(b,g,_){let N=_;for(const S of b)N=g(N,S);return N}e.reduce=T;function y(b){let g=0;for(const _ of b)g++;return g}e.length=y;function*L(b,g,_=b.length){for(g<-b.length&&(g=0),g<0&&(g+=b.length),_<0?_+=b.length:_>b.length&&(_=b.length);g<_;g++)yield b[g]}e.slice=L;function I(b,g=Number.POSITIVE_INFINITY){const _=[];if(g===0)return[_,b];const N=b[Symbol.iterator]();for(let S=0;S<g;S++){const v=N.next();if(v.done)return[_,e.empty()];_.push(v.value)}return[_,{[Symbol.iterator](){return N}}]}e.consume=I;async function H(b){const g=[];for await(const _ of b)g.push(_);return g}e.asyncToArray=H;async function W(b){let g=[];for await(const _ of b)g=g.concat(_);return g}e.asyncToArrayFlat=W})(Xt||(Xt={}));function Th(e,t){}function ji(e){if(Xt.is(e)){const t=[];for(const n of e)if(n)try{n.dispose()}catch(i){t.push(i)}if(t.length===1)throw t[0];if(t.length>1)throw new AggregateError(t,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}else if(e)return e.dispose(),e}function Ao(...e){return Jt(()=>ji(e))}class Lo{constructor(t){this._isDisposed=!1,this._fn=t}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 Jt(e){return new Lo(e)}const kn=class kn{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{ji(this._toDispose)}finally{this._toDispose.clear()}}add(t){if(!t||t===Ze.None)return t;if(t===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?kn.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(t),t}delete(t){if(t){if(t===this)throw new Error("Cannot dispose a disposable on itself!");this._toDispose.delete(t),t.dispose()}}};kn.DISABLE_DISPOSED_WARNING=!1;let Lt=kn;const Bi=class Bi{constructor(){this._store=new Lt,this._store}dispose(){this._store.dispose()}_register(t){if(t===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(t)}};Bi.None=Object.freeze({dispose(){}});let Ze=Bi,te=(Oe=class{constructor(t){this.element=t,this.next=Oe.Undefined,this.prev=Oe.Undefined}},Oe.Undefined=new Oe(void 0),Oe);class Co{constructor(){this._first=te.Undefined,this._last=te.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===te.Undefined}clear(){let t=this._first;for(;t!==te.Undefined;){const n=t.next;t.prev=te.Undefined,t.next=te.Undefined,t=n}this._first=te.Undefined,this._last=te.Undefined,this._size=0}unshift(t){return this._insert(t,!1)}push(t){return this._insert(t,!0)}_insert(t,n){const i=new te(t);if(this._first===te.Undefined)this._first=i,this._last=i;else if(n){const s=this._last;this._last=i,i.prev=s,s.next=i}else{const s=this._first;this._first=i,i.next=s,s.prev=i}this._size+=1;let r=!1;return()=>{r||(r=!0,this._remove(i))}}shift(){if(this._first!==te.Undefined){const t=this._first.element;return this._remove(this._first),t}}pop(){if(this._last!==te.Undefined){const t=this._last.element;return this._remove(this._last),t}}_remove(t){if(t.prev!==te.Undefined&&t.next!==te.Undefined){const n=t.prev;n.next=t.next,t.next.prev=n}else t.prev===te.Undefined&&t.next===te.Undefined?(this._first=te.Undefined,this._last=te.Undefined):t.next===te.Undefined?(this._last=this._last.prev,this._last.next=te.Undefined):t.prev===te.Undefined&&(this._first=this._first.next,this._first.prev=te.Undefined);this._size-=1}*[Symbol.iterator](){let t=this._first;for(;t!==te.Undefined;)yield t.element,t=t.next}}const Eo=globalThis.performance.now.bind(globalThis.performance);class Qt{static create(t){return new Qt(t)}constructor(t){this._now=t===!1?Date.now:Eo,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}}var Nn;(function(e){e.None=()=>Ze.None;function t(v,A){return m(v,()=>{},0,void 0,!0,void 0,A)}e.defer=t;function n(v){return(A,R=null,k)=>{let E=!1,M;return M=v(F=>{if(!E)return M?M.dispose():E=!0,A.call(R,F)},null,k),E&&M.dispose(),M}}e.once=n;function i(v,A){return e.once(e.filter(v,A))}e.onceIf=i;function r(v,A,R){return c((k,E=null,M)=>v(F=>k.call(E,A(F)),null,M),R)}e.map=r;function s(v,A,R){return c((k,E=null,M)=>v(F=>{A(F),k.call(E,F)},null,M),R)}e.forEach=s;function a(v,A,R){return c((k,E=null,M)=>v(F=>A(F)&&k.call(E,F),null,M),R)}e.filter=a;function l(v){return v}e.signal=l;function o(...v){return(A,R=null,k)=>{const E=Ao(...v.map(M=>M(F=>A.call(R,F))));return d(E,k)}}e.any=o;function u(v,A,R,k){let E=R;return r(v,M=>(E=A(E,M),E),k)}e.reduce=u;function c(v,A){let R;const k={onWillAddFirstListener(){R=v(E.fire,E)},onDidRemoveLastListener(){R==null||R.dispose()}},E=new De(k);return A==null||A.add(E),E.event}function d(v,A){return A instanceof Array?A.push(v):A&&A.add(v),v}function m(v,A,R=100,k=!1,E=!1,M,F){let P,U,O,Z=0,Y;const xe={leakWarningThreshold:M,onWillAddFirstListener(){P=v(wh=>{Z++,U=A(U,wh),k&&!O&&(Ee.fire(U),U=void 0),Y=()=>{const _h=U;U=void 0,O=void 0,(!k||Z>1)&&Ee.fire(_h),Z=0},typeof R=="number"?(O&&clearTimeout(O),O=setTimeout(Y,R)):O===void 0&&(O=null,queueMicrotask(Y))})},onWillRemoveListener(){E&&Z>0&&(Y==null||Y())},onDidRemoveLastListener(){Y=void 0,P.dispose()}},Ee=new De(xe);return F==null||F.add(Ee),Ee.event}e.debounce=m;function f(v,A=0,R){return e.debounce(v,(k,E)=>k?(k.push(E),k):[E],A,void 0,!0,void 0,R)}e.accumulate=f;function w(v,A=(k,E)=>k===E,R){let k=!0,E;return a(v,M=>{const F=k||!A(M,E);return k=!1,E=M,F},R)}e.latch=w;function p(v,A,R){return[e.filter(v,A,R),e.filter(v,k=>!A(k),R)]}e.split=p;function x(v,A=!1,R=[],k){let E=R.slice(),M=v(U=>{E?E.push(U):P.fire(U)});k&&k.add(M);const F=()=>{E==null||E.forEach(U=>P.fire(U)),E=null},P=new De({onWillAddFirstListener(){M||(M=v(U=>P.fire(U)),k&&k.add(M))},onDidAddFirstListener(){E&&(A?setTimeout(F):F())},onDidRemoveLastListener(){M&&M.dispose(),M=null}});return k&&k.add(P),P.event}e.buffer=x;function T(v,A){return(k,E,M)=>{const F=A(new L);return v(function(P){const U=F.evaluate(P);U!==y&&k.call(E,U)},void 0,M)}}e.chain=T;const y=Symbol("HaltChainable");class L{constructor(){this.steps=[]}map(A){return this.steps.push(A),this}forEach(A){return this.steps.push(R=>(A(R),R)),this}filter(A){return this.steps.push(R=>A(R)?R:y),this}reduce(A,R){let k=R;return this.steps.push(E=>(k=A(k,E),k)),this}latch(A=(R,k)=>R===k){let R=!0,k;return this.steps.push(E=>{const M=R||!A(E,k);return R=!1,k=E,M?E:y}),this}evaluate(A){for(const R of this.steps)if(A=R(A),A===y)break;return A}}function I(v,A,R=k=>k){const k=(...P)=>F.fire(R(...P)),E=()=>v.on(A,k),M=()=>v.removeListener(A,k),F=new De({onWillAddFirstListener:E,onDidRemoveLastListener:M});return F.event}e.fromNodeEventEmitter=I;function H(v,A,R=k=>k){const k=(...P)=>F.fire(R(...P)),E=()=>v.addEventListener(A,k),M=()=>v.removeEventListener(A,k),F=new De({onWillAddFirstListener:E,onDidRemoveLastListener:M});return F.event}e.fromDOMEventEmitter=H;function W(v,A){let R;const k=new Promise((E,M)=>{const F=n(v)(E,null,A);R=()=>F.dispose()});return k.cancel=R,k}e.toPromise=W;function b(v,A){return v(R=>A.fire(R))}e.forward=b;function g(v,A,R){return A(R),v(k=>A(k))}e.runAndSubscribe=g;class _{constructor(A,R){this._observable=A,this._counter=0,this._hasChanged=!1;const k={onWillAddFirstListener:()=>{A.addObserver(this),this._observable.reportChanges()},onDidRemoveLastListener:()=>{A.removeObserver(this)}};this.emitter=new De(k),R&&R.add(this.emitter)}beginUpdate(A){this._counter++}handlePossibleChange(A){}handleChange(A,R){this._hasChanged=!0}endUpdate(A){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function N(v,A){return new _(v,A).emitter.event}e.fromObservable=N;function S(v){return(A,R,k)=>{let E=0,M=!1;const F={beginUpdate(){E++},endUpdate(){E--,E===0&&(v.reportChanges(),M&&(M=!1,A.call(R)))},handlePossibleChange(){},handleChange(){M=!0}};v.addObserver(F),v.reportChanges();const P={dispose(){v.removeObserver(F)}};return k instanceof Lt?k.add(P):Array.isArray(k)&&k.push(P),P}}e.fromObservableLight=S})(Nn||(Nn={}));const xt=class xt{constructor(t){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${t}_${xt._idPool++}`,xt.all.add(this)}start(t){this._stopWatch=new Qt,this.listenerCount=t}stop(){if(this._stopWatch){const t=this._stopWatch.elapsed();this.durations.push(t),this.elapsedOverall+=t,this.invocationCount+=1,this._stopWatch=void 0}}};xt.all=new Set,xt._idPool=0;let In=xt,Do=-1;const Sn=class Sn{constructor(t,n,i=(Sn._idPool++).toString(16).padStart(3,"0")){this._errorHandler=t,this.threshold=n,this.name=i,this._warnCountdown=0}dispose(){var t;(t=this._stacks)==null||t.clear()}check(t,n){const i=this.threshold;if(i<=0||n<i)return;this._stacks||(this._stacks=new Map);const r=this._stacks.get(t.value)||0;if(this._stacks.set(t.value,r+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=i*.5;const[s,a]=this.getMostFrequentStack(),l=`[${this.name}] potential listener LEAK detected, having ${n} listeners already. MOST frequent listener (${a}):`;console.warn(l),console.warn(s);const o=new Ro(l,s);this._errorHandler(o)}return()=>{const s=this._stacks.get(t.value)||0;this._stacks.set(t.value,s-1)}}getMostFrequentStack(){if(!this._stacks)return;let t,n=0;for(const[i,r]of this._stacks)(!t||n<r)&&(t=[i,r],n=r);return t}};Sn._idPool=1;let zn=Sn;class Hn{static create(){const t=new Error;return new Hn(t.stack??"")}constructor(t){this.value=t}print(){console.warn(this.value.split(`
|
|
5
|
+
`+e.stack):e},0)}}emit(e){this.listeners.forEach(n=>{n(e)})}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}}const ze=new Ye;function He(t){co(t)||ze.onUnexpectedError(t)}function Cn(t){if(t instanceof Error){const{name:e,message:n,cause:i}=t,r=t.stacktrace||t.stack;return{$isError:!0,name:e,message:n,stack:r,noTelemetry:at.isErrorNoTelemetry(t),cause:i?Cn(i):void 0,code:t.code}}return t}const En="Canceled";function co(t){return t instanceof Ui?!0:t instanceof Error&&t.name===En&&t.message===En}class Ui extends Error{constructor(){super(En),this.name=this.message}}class at extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof at)return e;const n=new at;return n.message=e.message,n.stack=e.stack,n}static isErrorNoTelemetry(e){return e.name==="CodeExpectedError"}}class ue extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,ue.prototype)}}function ho(t,e="Unreachable"){throw new Error(e)}function mo(t,e="unexpected state"){if(!t)throw typeof e=="string"?new ue(`Assertion Failed: ${e}`):e}function $t(t){if(!t()){debugger;t(),He(new ue("Assertion Failed"))}}function Pi(t,e){let n=0;for(;n<t.length-1;){const i=t[n],r=t[n+1];if(!e(i,r))return!1;n++}return!0}function fo(t){return typeof t=="string"}function po(t){return!!t&&typeof t[Symbol.iterator]=="function"}var Gt;(function(t){function e(b){return!!b&&typeof b=="object"&&typeof b[Symbol.iterator]=="function"}t.is=e;const n=Object.freeze([]);function i(){return n}t.empty=i;function*r(b){yield b}t.single=r;function s(b){return e(b)?b:r(b)}t.wrap=s;function a(b){return b||n}t.from=a;function*l(b){for(let g=b.length-1;g>=0;g--)yield b[g]}t.reverse=l;function o(b){return!b||b[Symbol.iterator]().next().done===!0}t.isEmpty=o;function u(b){return b[Symbol.iterator]().next().value}t.first=u;function c(b,g){let _=0;for(const N of b)if(g(N,_++))return!0;return!1}t.some=c;function d(b,g){let _=0;for(const N of b)if(!g(N,_++))return!1;return!0}t.every=d;function m(b,g){for(const _ of b)if(g(_))return _}t.find=m;function*f(b,g){for(const _ of b)g(_)&&(yield _)}t.filter=f;function*w(b,g){let _=0;for(const N of b)yield g(N,_++)}t.map=w;function*p(b,g){let _=0;for(const N of b)yield*g(N,_++)}t.flatMap=p;function*x(...b){for(const g of b)po(g)?yield*g:yield g}t.concat=x;function T(b,g,_){let N=_;for(const S of b)N=g(N,S);return N}t.reduce=T;function y(b){let g=0;for(const _ of b)g++;return g}t.length=y;function*L(b,g,_=b.length){for(g<-b.length&&(g=0),g<0&&(g+=b.length),_<0?_+=b.length:_>b.length&&(_=b.length);g<_;g++)yield b[g]}t.slice=L;function I(b,g=Number.POSITIVE_INFINITY){const _=[];if(g===0)return[_,b];const N=b[Symbol.iterator]();for(let S=0;S<g;S++){const v=N.next();if(v.done)return[_,t.empty()];_.push(v.value)}return[_,{[Symbol.iterator](){return N}}]}t.consume=I;async function H(b){const g=[];for await(const _ of b)g.push(_);return g}t.asyncToArray=H;async function P(b){let g=[];for await(const _ of b)g=g.concat(_);return g}t.asyncToArrayFlat=P})(Gt||(Gt={}));function mh(t,e){}function Wi(t){if(Gt.is(t)){const e=[];for(const n of t)if(n)try{n.dispose()}catch(i){e.push(i)}if(e.length===1)throw e[0];if(e.length>1)throw new AggregateError(e,"Encountered errors while disposing of store");return Array.isArray(t)?[]:t}else if(t)return t.dispose(),t}function go(...t){return Xt(()=>Wi(t))}class bo{constructor(e){this._isDisposed=!1,this._fn=e}dispose(){if(!this._isDisposed){if(!this._fn)throw new Error("Unbound disposable context: Need to use an arrow function to preserve the value of this");this._isDisposed=!0,this._fn()}}}function Xt(t){return new bo(t)}const Tn=class Tn{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{Wi(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e||e===Ze.None)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?Tn.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}delete(e){if(e){if(e===this)throw new Error("Cannot dispose a disposable on itself!");this._toDispose.delete(e),e.dispose()}}};Tn.DISABLE_DISPOSED_WARNING=!1;let Lt=Tn;const zi=class zi{constructor(){this._store=new Lt,this._store}dispose(){this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}};zi.None=Object.freeze({dispose(){}});let Ze=zi,te=(Oe=class{constructor(e){this.element=e,this.next=Oe.Undefined,this.prev=Oe.Undefined}},Oe.Undefined=new Oe(void 0),Oe);class wo{constructor(){this._first=te.Undefined,this._last=te.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===te.Undefined}clear(){let e=this._first;for(;e!==te.Undefined;){const n=e.next;e.prev=te.Undefined,e.next=te.Undefined,e=n}this._first=te.Undefined,this._last=te.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,n){const i=new te(e);if(this._first===te.Undefined)this._first=i,this._last=i;else if(n){const s=this._last;this._last=i,i.prev=s,s.next=i}else{const s=this._first;this._first=i,i.next=s,s.prev=i}this._size+=1;let r=!1;return()=>{r||(r=!0,this._remove(i))}}shift(){if(this._first!==te.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==te.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==te.Undefined&&e.next!==te.Undefined){const n=e.prev;n.next=e.next,e.next.prev=n}else e.prev===te.Undefined&&e.next===te.Undefined?(this._first=te.Undefined,this._last=te.Undefined):e.next===te.Undefined?(this._last=this._last.prev,this._last.next=te.Undefined):e.prev===te.Undefined&&(this._first=this._first.next,this._first.prev=te.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==te.Undefined;)yield e.element,e=e.next}}const _o=globalThis.performance.now.bind(globalThis.performance);class Jt{static create(e){return new Jt(e)}constructor(e){this._now=e===!1?Date.now:_o,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}}var Rn;(function(t){t.None=()=>Ze.None;function e(v,A){return m(v,()=>{},0,void 0,!0,void 0,A)}t.defer=e;function n(v){return(A,D=null,k)=>{let E=!1,M;return M=v(W=>{if(!E)return M?M.dispose():E=!0,A.call(D,W)},null,k),E&&M.dispose(),M}}t.once=n;function i(v,A){return t.once(t.filter(v,A))}t.onceIf=i;function r(v,A,D){return c((k,E=null,M)=>v(W=>k.call(E,A(W)),null,M),D)}t.map=r;function s(v,A,D){return c((k,E=null,M)=>v(W=>{A(W),k.call(E,W)},null,M),D)}t.forEach=s;function a(v,A,D){return c((k,E=null,M)=>v(W=>A(W)&&k.call(E,W),null,M),D)}t.filter=a;function l(v){return v}t.signal=l;function o(...v){return(A,D=null,k)=>{const E=go(...v.map(M=>M(W=>A.call(D,W))));return d(E,k)}}t.any=o;function u(v,A,D,k){let E=D;return r(v,M=>(E=A(E,M),E),k)}t.reduce=u;function c(v,A){let D;const k={onWillAddFirstListener(){D=v(E.fire,E)},onDidRemoveLastListener(){D==null||D.dispose()}},E=new Re(k);return A==null||A.add(E),E.event}function d(v,A){return A instanceof Array?A.push(v):A&&A.add(v),v}function m(v,A,D=100,k=!1,E=!1,M,W){let F,U,O,Z=0,Y;const xe={leakWarningThreshold:M,onWillAddFirstListener(){F=v(uh=>{Z++,U=A(U,uh),k&&!O&&(Ee.fire(U),U=void 0),Y=()=>{const ch=U;U=void 0,O=void 0,(!k||Z>1)&&Ee.fire(ch),Z=0},typeof D=="number"?(O&&clearTimeout(O),O=setTimeout(Y,D)):O===void 0&&(O=null,queueMicrotask(Y))})},onWillRemoveListener(){E&&Z>0&&(Y==null||Y())},onDidRemoveLastListener(){Y=void 0,F.dispose()}},Ee=new Re(xe);return W==null||W.add(Ee),Ee.event}t.debounce=m;function f(v,A=0,D){return t.debounce(v,(k,E)=>k?(k.push(E),k):[E],A,void 0,!0,void 0,D)}t.accumulate=f;function w(v,A=(k,E)=>k===E,D){let k=!0,E;return a(v,M=>{const W=k||!A(M,E);return k=!1,E=M,W},D)}t.latch=w;function p(v,A,D){return[t.filter(v,A,D),t.filter(v,k=>!A(k),D)]}t.split=p;function x(v,A=!1,D=[],k){let E=D.slice(),M=v(U=>{E?E.push(U):F.fire(U)});k&&k.add(M);const W=()=>{E==null||E.forEach(U=>F.fire(U)),E=null},F=new Re({onWillAddFirstListener(){M||(M=v(U=>F.fire(U)),k&&k.add(M))},onDidAddFirstListener(){E&&(A?setTimeout(W):W())},onDidRemoveLastListener(){M&&M.dispose(),M=null}});return k&&k.add(F),F.event}t.buffer=x;function T(v,A){return(k,E,M)=>{const W=A(new L);return v(function(F){const U=W.evaluate(F);U!==y&&k.call(E,U)},void 0,M)}}t.chain=T;const y=Symbol("HaltChainable");class L{constructor(){this.steps=[]}map(A){return this.steps.push(A),this}forEach(A){return this.steps.push(D=>(A(D),D)),this}filter(A){return this.steps.push(D=>A(D)?D:y),this}reduce(A,D){let k=D;return this.steps.push(E=>(k=A(k,E),k)),this}latch(A=(D,k)=>D===k){let D=!0,k;return this.steps.push(E=>{const M=D||!A(E,k);return D=!1,k=E,M?E:y}),this}evaluate(A){for(const D of this.steps)if(A=D(A),A===y)break;return A}}function I(v,A,D=k=>k){const k=(...F)=>W.fire(D(...F)),E=()=>v.on(A,k),M=()=>v.removeListener(A,k),W=new Re({onWillAddFirstListener:E,onDidRemoveLastListener:M});return W.event}t.fromNodeEventEmitter=I;function H(v,A,D=k=>k){const k=(...F)=>W.fire(D(...F)),E=()=>v.addEventListener(A,k),M=()=>v.removeEventListener(A,k),W=new Re({onWillAddFirstListener:E,onDidRemoveLastListener:M});return W.event}t.fromDOMEventEmitter=H;function P(v,A){let D;const k=new Promise((E,M)=>{const W=n(v)(E,null,A);D=()=>W.dispose()});return k.cancel=D,k}t.toPromise=P;function b(v,A){return v(D=>A.fire(D))}t.forward=b;function g(v,A,D){return A(D),v(k=>A(k))}t.runAndSubscribe=g;class _{constructor(A,D){this._observable=A,this._counter=0,this._hasChanged=!1;const k={onWillAddFirstListener:()=>{A.addObserver(this),this._observable.reportChanges()},onDidRemoveLastListener:()=>{A.removeObserver(this)}};this.emitter=new Re(k),D&&D.add(this.emitter)}beginUpdate(A){this._counter++}handlePossibleChange(A){}handleChange(A,D){this._hasChanged=!0}endUpdate(A){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function N(v,A){return new _(v,A).emitter.event}t.fromObservable=N;function S(v){return(A,D,k)=>{let E=0,M=!1;const W={beginUpdate(){E++},endUpdate(){E--,E===0&&(v.reportChanges(),M&&(M=!1,A.call(D)))},handlePossibleChange(){},handleChange(){M=!0}};v.addObserver(W),v.reportChanges();const F={dispose(){v.removeObserver(W)}};return k instanceof Lt?k.add(F):Array.isArray(k)&&k.push(F),F}}t.fromObservableLight=S})(Rn||(Rn={}));const xt=class xt{constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${xt._idPool++}`,xt.all.add(this)}start(e){this._stopWatch=new Jt,this.listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}};xt.all=new Set,xt._idPool=0;let Dn=xt,vo=-1;const xn=class xn{constructor(e,n,i=(xn._idPool++).toString(16).padStart(3,"0")){this._errorHandler=e,this.threshold=n,this.name=i,this._warnCountdown=0}dispose(){var e;(e=this._stacks)==null||e.clear()}check(e,n){const i=this.threshold;if(i<=0||n<i)return;this._stacks||(this._stacks=new Map);const r=this._stacks.get(e.value)||0;if(this._stacks.set(e.value,r+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=i*.5;const[s,a]=this.getMostFrequentStack(),l=`[${this.name}] potential listener LEAK detected, having ${n} listeners already. MOST frequent listener (${a}):`;console.warn(l),console.warn(s);const o=new yo(l,s);this._errorHandler(o)}return()=>{const s=this._stacks.get(e.value)||0;this._stacks.set(e.value,s-1)}}getMostFrequentStack(){if(!this._stacks)return;let e,n=0;for(const[i,r]of this._stacks)(!e||n<r)&&(e=[i,r],n=r);return e}};xn._idPool=1;let Mn=xn;class Nn{static create(){const e=new Error;return new Nn(e.stack??"")}constructor(e){this.value=e}print(){console.warn(this.value.split(`
|
|
6
6
|
`).slice(2).join(`
|
|
7
|
-
`))}}class Ro extends Error{constructor(t,n){super(t),this.name="ListenerLeakError",this.stack=n}}class Mo extends Error{constructor(t,n){super(t),this.name="ListenerRefusalError",this.stack=n}}class Un{constructor(t){this.value=t}}const No=2;class De{constructor(t){var n,i,r,s;this._size=0,this._options=t,this._leakageMon=(n=this._options)!=null&&n.leakWarningThreshold?new zn((t==null?void 0:t.onListenerError)??He,((i=this._options)==null?void 0:i.leakWarningThreshold)??Do):void 0,this._perfMon=(r=this._options)!=null&&r._profName?new In(this._options._profName):void 0,this._deliveryQueue=(s=this._options)==null?void 0:s.deliveryQueue}dispose(){var t,n,i,r;this._disposed||(this._disposed=!0,((t=this._deliveryQueue)==null?void 0:t.current)===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),(i=(n=this._options)==null?void 0:n.onDidRemoveLastListener)==null||i.call(n),(r=this._leakageMon)==null||r.dispose())}get event(){return this._event??(this._event=(t,n,i)=>{var l,o,u,c,d,m,f;if(this._leakageMon&&this._size>this._leakageMon.threshold**2){const w=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(w);const p=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],x=new Mo(`${w}. HINT: Stack shows most frequent listener (${p[1]}-times)`,p[0]);return(((l=this._options)==null?void 0:l.onListenerError)||He)(x),Ze.None}if(this._disposed)return Ze.None;n&&(t=t.bind(n));const r=new Un(t);let s;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(r.stack=Hn.create(),s=this._leakageMon.check(r.stack,this._size+1)),this._listeners?this._listeners instanceof Un?(this._deliveryQueue??(this._deliveryQueue=new Io),this._listeners=[this._listeners,r]):this._listeners.push(r):((u=(o=this._options)==null?void 0:o.onWillAddFirstListener)==null||u.call(o,this),this._listeners=r,(d=(c=this._options)==null?void 0:c.onDidAddFirstListener)==null||d.call(c,this)),(f=(m=this._options)==null?void 0:m.onDidAddListener)==null||f.call(m,this),this._size++;const a=Jt(()=>{s==null||s(),this._removeListener(r)});return i instanceof Lt?i.add(a):Array.isArray(i)&&i.push(a),a}),this._event}_removeListener(t){var s,a,l,o;if((a=(s=this._options)==null?void 0:s.onWillRemoveListener)==null||a.call(s,this),!this._listeners)return;if(this._size===1){this._listeners=void 0,(o=(l=this._options)==null?void 0:l.onDidRemoveLastListener)==null||o.call(l,this),this._size=0;return}const n=this._listeners,i=n.indexOf(t);if(i===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,n[i]=void 0;const r=this._deliveryQueue.current===this;if(this._size*No<=n.length){let u=0;for(let c=0;c<n.length;c++)n[c]?n[u++]=n[c]:r&&u<this._deliveryQueue.end&&(this._deliveryQueue.end--,u<this._deliveryQueue.i&&this._deliveryQueue.i--);n.length=u}}_deliver(t,n){var r;if(!t)return;const i=((r=this._options)==null?void 0:r.onListenerError)||He;if(!i){t.value(n);return}try{t.value(n)}catch(s){i(s)}}_deliverQueue(t){const n=t.current._listeners;for(;t.i<t.end;)this._deliver(n[t.i++],t.value);t.reset()}fire(t){var n,i,r,s;if((n=this._deliveryQueue)!=null&&n.current&&(this._deliverQueue(this._deliveryQueue),(i=this._perfMon)==null||i.stop()),(r=this._perfMon)==null||r.start(this._size),this._listeners)if(this._listeners instanceof Un)this._deliver(this._listeners,t);else{const a=this._deliveryQueue;a.enqueue(this,t,this._listeners.length),this._deliverQueue(a)}(s=this._perfMon)==null||s.stop()}hasListeners(){return this._size>0}}class Io{constructor(){this.i=-1,this.end=0}enqueue(t,n,i){this.i=0,this.end=i,this.current=t,this.value=n}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}function zo(){return globalThis._VSCODE_NLS_MESSAGES}function $i(){return globalThis._VSCODE_NLS_LANGUAGE}const Ho=$i()==="pseudo"||typeof document<"u"&&document.location&&typeof document.location.hash=="string"&&document.location.hash.indexOf("pseudo=true")>=0;function Gi(e,t){let n;return t.length===0?n=e:n=e.replace(/\{(\d+)\}/g,(i,r)=>{const s=r[0],a=t[s];let l=i;return typeof a=="string"?l=a:(typeof a=="number"||typeof a=="boolean"||a===void 0||a===null)&&(l=String(a)),l}),Ho&&(n="["+n.replace(/[aouei]/g,"$&$&")+"]"),n}function q(e,t,...n){return Gi(typeof e=="number"?Uo(e,t):t,n)}function Uo(e,t){var i;const n=(i=zo())==null?void 0:i[e];if(typeof n!="string"){if(typeof t=="string")return t;throw new Error(`!!! NLS MISSING: ${e} !!!`)}return n}const ot="en";let Wn=!1,Fn=!1,Pn=!1,Yt,Bn=ot,Xi=ot,Wo,ke;const Ke=globalThis;let ae;typeof Ke.vscode<"u"&&typeof Ke.vscode.process<"u"?ae=Ke.vscode.process:typeof process<"u"&&typeof((bo=process==null?void 0:process.versions)==null?void 0:bo.node)=="string"&&(ae=process);const Fo=typeof((wo=ae==null?void 0:ae.versions)==null?void 0:wo.electron)=="string"&&(ae==null?void 0:ae.type)==="renderer";if(typeof ae=="object"){Wn=ae.platform==="win32",Fn=ae.platform==="darwin",Pn=ae.platform==="linux",Pn&&ae.env.SNAP&&ae.env.SNAP_REVISION,ae.env.CI||ae.env.BUILD_ARTIFACTSTAGINGDIRECTORY||ae.env.GITHUB_WORKSPACE,Yt=ot,Bn=ot;const e=ae.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e);Yt=t.userLocale,Xi=t.osLocale,Bn=t.resolvedLanguage||ot,Wo=(_o=t.languagePack)==null?void 0:_o.translationsConfigFile}catch{}}else typeof navigator=="object"&&!Fo?(ke=navigator.userAgent,Wn=ke.indexOf("Windows")>=0,Fn=ke.indexOf("Macintosh")>=0,(ke.indexOf("Macintosh")>=0||ke.indexOf("iPad")>=0||ke.indexOf("iPhone")>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Pn=ke.indexOf("Linux")>=0,(ke==null?void 0:ke.indexOf("Mobi"))>=0,Bn=$i()||ot,Yt=navigator.language.toLowerCase(),Xi=Yt):console.error("Unable to resolve platform.");const Ct=Wn,Po=Fn,Re=ke,Bo=typeof Ke.postMessage=="function"&&!Ke.importScripts;(()=>{if(Bo){const e=[];Ke.addEventListener("message",n=>{if(n.data&&n.data.vscodeScheduleAsyncWork)for(let i=0,r=e.length;i<r;i++){const s=e[i];if(s.id===n.data.vscodeScheduleAsyncWork){e.splice(i,1),s.callback();return}}});let t=0;return n=>{const i=++t;e.push({id:i,callback:n}),Ke.postMessage({vscodeScheduleAsyncWork:i},"*")}}return e=>setTimeout(e)})();const qo=!!(Re&&Re.indexOf("Chrome")>=0);Re&&Re.indexOf("Firefox")>=0,!qo&&Re&&Re.indexOf("Safari")>=0,Re&&Re.indexOf("Edg/")>=0,Re&&Re.indexOf("Android")>=0;function Oo(e){return e}class Vo{constructor(t,n){this.lastCache=void 0,this.lastArgKey=void 0,typeof t=="function"?(this._fn=t,this._computeKey=Oo):(this._fn=n,this._computeKey=t.getCacheKey)}get(t){const n=this._computeKey(t);return this.lastArgKey!==n&&(this.lastArgKey=n,this.lastCache=this._fn(t)),this.lastCache}}var et;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Running=1]="Running",e[e.Completed=2]="Completed"})(et||(et={}));class qn{constructor(t){this.executor=t,this._state=et.Uninitialized}get value(){if(this._state===et.Uninitialized){this._state=et.Running;try{this._value=this.executor()}catch(t){this._error=t}finally{this._state=et.Completed}}else if(this._state===et.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 jo(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function $o(e){return e.source==="^"||e.source==="^$"||e.source==="$"||e.source==="^\\s*$"?!1:!!(e.exec("")&&e.lastIndex===0)}function Go(e){return e.split(/\r\n|\r|\n/)}function Xo(e){for(let t=0,n=e.length;t<n;t++){const i=e.charCodeAt(t);if(i!==32&&i!==9)return t}return-1}function Jo(e,t=e.length-1){for(let n=t;n>=0;n--){const i=e.charCodeAt(n);if(i!==32&&i!==9)return n}return-1}function Ji(e){return e>=65&&e<=90}function Qo(e,t){const n=Math.min(e.length,t.length);let i;for(i=0;i<n;i++)if(e.charCodeAt(i)!==t.charCodeAt(i))return i;return n}function Yo(e,t){const n=Math.min(e.length,t.length);let i;const r=e.length-1,s=t.length-1;for(i=0;i<n;i++)if(e.charCodeAt(r-i)!==t.charCodeAt(s-i))return i;return n}function Zt(e){return 55296<=e&&e<=56319}function On(e){return 56320<=e&&e<=57343}function Qi(e,t){return(e-55296<<10)+(t-56320)+65536}function Zo(e,t,n){const i=e.charCodeAt(n);if(Zt(i)&&n+1<t){const r=e.charCodeAt(n+1);if(On(r))return Qi(i,r)}return i}const Ko=/^[\t\n\r\x20-\x7E]*$/;function el(e){return Ko.test(e)}const Ie=class Ie{static getInstance(t){return Ie.cache.get(Array.from(t))}static getLocales(){return Ie._locales.value}constructor(t){this.confusableDictionary=t}isAmbiguous(t){return this.confusableDictionary.has(t)}getPrimaryConfusable(t){return this.confusableDictionary.get(t)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}};Ie.ambiguousCharacterData=new qn(()=>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]}')),Ie.cache=new Vo({getCacheKey:JSON.stringify},t=>{function n(c){const d=new Map;for(let m=0;m<c.length;m+=2)d.set(c[m],c[m+1]);return d}function i(c,d){const m=new Map(c);for(const[f,w]of d)m.set(f,w);return m}function r(c,d){if(!c)return d;const m=new Map;for(const[f,w]of c)d.has(f)&&m.set(f,w);return m}const s=Ie.ambiguousCharacterData.value;let a=t.filter(c=>!c.startsWith("_")&&Object.hasOwn(s,c));a.length===0&&(a=["_default"]);let l;for(const c of a){const d=n(s[c]);l=r(l,d)}const o=n(s._common),u=i(o,l);return new Ie(u)}),Ie._locales=new qn(()=>Object.keys(Ie.ambiguousCharacterData.value).filter(t=>!t.startsWith("_")));let Et=Ie;const kt=class kt{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(kt.getRawData())].flat())),this._data}static isInvisibleCharacter(t){return kt.getData().has(t)}static get codePoints(){return kt.getData()}};kt._data=void 0;let Dt=kt;const Vn="default",tl="$initialize";class nl{constructor(t,n,i,r,s){this.vsWorker=t,this.req=n,this.channel=i,this.method=r,this.args=s,this.type=0}}class Yi{constructor(t,n,i,r){this.vsWorker=t,this.seq=n,this.res=i,this.err=r,this.type=1}}class il{constructor(t,n,i,r,s){this.vsWorker=t,this.req=n,this.channel=i,this.eventName=r,this.arg=s,this.type=2}}class rl{constructor(t,n,i){this.vsWorker=t,this.req=n,this.event=i,this.type=3}}class sl{constructor(t,n){this.vsWorker=t,this.req=n,this.type=4}}class al{constructor(t){this._workerId=-1,this._handler=t,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(t){this._workerId=t}async sendMessage(t,n,i){const r=String(++this._lastSentReq);return new Promise((s,a)=>{this._pendingReplies[r]={resolve:s,reject:a},this._send(new nl(this._workerId,r,t,n,i))})}listen(t,n,i){let r=null;const s=new De({onWillAddFirstListener:()=>{r=String(++this._lastSentReq),this._pendingEmitters.set(r,s),this._send(new il(this._workerId,r,t,n,i))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(r),this._send(new sl(this._workerId,r)),r=null}});return s.event}handleMessage(t){!t||!t.vsWorker||this._workerId!==-1&&t.vsWorker!==this._workerId||this._handleMessage(t)}createProxyToRemoteChannel(t,n){const i={get:(r,s)=>(typeof s=="string"&&!r[s]&&(Ki(s)?r[s]=a=>this.listen(t,s,a):Zi(s)?r[s]=this.listen(t,s,void 0):s.charCodeAt(0)===36&&(r[s]=async(...a)=>(await(n==null?void 0:n()),this.sendMessage(t,s,a)))),r[s])};return new Proxy(Object.create(null),i)}_handleMessage(t){switch(t.type){case 1:return this._handleReplyMessage(t);case 0:return this._handleRequestMessage(t);case 2:return this._handleSubscribeEventMessage(t);case 3:return this._handleEventMessage(t);case 4:return this._handleUnsubscribeEventMessage(t)}}_handleReplyMessage(t){if(!this._pendingReplies[t.seq]){console.warn("Got reply to unknown seq");return}const n=this._pendingReplies[t.seq];if(delete this._pendingReplies[t.seq],t.err){let i=t.err;if(t.err.$isError){const r=new Error;r.name=t.err.name,r.message=t.err.message,r.stack=t.err.stack,i=r}n.reject(i);return}n.resolve(t.res)}_handleRequestMessage(t){const n=t.req;this._handler.handleMessage(t.channel,t.method,t.args).then(r=>{this._send(new Yi(this._workerId,n,r,void 0))},r=>{r.detail instanceof Error&&(r.detail=Rn(r.detail)),this._send(new Yi(this._workerId,n,void 0,Rn(r)))})}_handleSubscribeEventMessage(t){const n=t.req,i=this._handler.handleEvent(t.channel,t.eventName,t.arg)(r=>{this._send(new rl(this._workerId,n,r))});this._pendingEvents.set(n,i)}_handleEventMessage(t){if(!this._pendingEmitters.has(t.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(t.req).fire(t.event)}_handleUnsubscribeEventMessage(t){if(!this._pendingEvents.has(t.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(t.req).dispose(),this._pendingEvents.delete(t.req)}_send(t){const n=[];if(t.type===0)for(let i=0;i<t.args.length;i++){const r=t.args[i];r instanceof ArrayBuffer&&n.push(r)}else t.type===1&&t.res instanceof ArrayBuffer&&n.push(t.res);this._handler.sendMessage(t,n)}}function Zi(e){return e[0]==="o"&&e[1]==="n"&&Ji(e.charCodeAt(2))}function Ki(e){return/^onDynamic/.test(e)&&Ji(e.charCodeAt(9))}class ol{constructor(t,n){this._localChannels=new Map,this._remoteChannels=new Map,this._protocol=new al({sendMessage:(i,r)=>{t(i,r)},handleMessage:(i,r,s)=>this._handleMessage(i,r,s),handleEvent:(i,r,s)=>this._handleEvent(i,r,s)}),this.requestHandler=n(this)}onmessage(t){this._protocol.handleMessage(t)}_handleMessage(t,n,i){if(t===Vn&&n===tl)return this.initialize(i[0]);const r=t===Vn?this.requestHandler:this._localChannels.get(t);if(!r)return Promise.reject(new Error(`Missing channel ${t} on worker thread`));const s=r[n];if(typeof s!="function")return Promise.reject(new Error(`Missing method ${n} on worker thread channel ${t}`));try{return Promise.resolve(s.apply(r,i))}catch(a){return Promise.reject(a)}}_handleEvent(t,n,i){const r=t===Vn?this.requestHandler:this._localChannels.get(t);if(!r)throw new Error(`Missing channel ${t} on worker thread`);if(Ki(n)){const s=r[n];if(typeof s!="function")throw new Error(`Missing dynamic event ${n} on request handler.`);const a=s.call(r,i);if(typeof a!="function")throw new Error(`Missing dynamic event ${n} on request handler.`);return a}if(Zi(n)){const s=r[n];if(typeof s!="function")throw new Error(`Missing event ${n} on request handler.`);return s}throw new Error(`Malformed event name ${n}`)}getChannel(t){if(!this._remoteChannels.has(t)){const n=this._protocol.createProxyToRemoteChannel(t);this._remoteChannels.set(t,n)}return this._remoteChannels.get(t)}async initialize(t){this._protocol.setWorkerId(t)}}let er=!1;function ll(e){if(er)throw new Error("WebWorker already initialized!");er=!0;const t=new ol(n=>globalThis.postMessage(n),n=>e(n));return globalThis.onmessage=n=>{t.onmessage(n.data)},t}class Ve{constructor(t,n,i,r){this.originalStart=t,this.originalLength=n,this.modifiedStart=i,this.modifiedLength=r}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}const tr=typeof Buffer<"u";new qn(()=>new Uint8Array(256));let jn;class $n{static wrap(t){return tr&&!Buffer.isBuffer(t)&&(t=Buffer.from(t.buffer,t.byteOffset,t.byteLength)),new $n(t)}constructor(t){this.buffer=t,this.byteLength=this.buffer.byteLength}toString(){return tr?this.buffer.toString():(jn||(jn=new TextDecoder),jn.decode(this.buffer))}}const nr="0123456789abcdef";function ul({buffer:e}){let t="";for(let n=0;n<e.length;n++){const i=e[n];t+=nr[i>>>4],t+=nr[i&15]}return t}function ir(e,t){return(t<<5)-t+e|0}function cl(e,t){t=ir(149417,t);for(let n=0,i=e.length;n<i;n++)t=ir(e.charCodeAt(n),t);return t}function Gn(e,t,n=32){const i=n-t,r=~((1<<i)-1);return(e<<t|(r&e)>>>i)>>>0}function Rt(e,t=32){return e instanceof ArrayBuffer?ul($n.wrap(new Uint8Array(e))):(e>>>0).toString(16).padStart(t/4,"0")}const An=class An{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(t){const n=t.length;if(n===0)return;const i=this._buff;let r=this._buffLen,s=this._leftoverHighSurrogate,a,l;for(s!==0?(a=s,l=-1,s=0):(a=t.charCodeAt(0),l=0);;){let o=a;if(Zt(a))if(l+1<n){const u=t.charCodeAt(l+1);On(u)?(l++,o=Qi(a,u)):o=65533}else{s=a;break}else On(a)&&(o=65533);if(r=this._push(i,r,o),l++,l<n)a=t.charCodeAt(l);else break}this._buffLen=r,this._leftoverHighSurrogate=s}_push(t,n,i){return i<128?t[n++]=i:i<2048?(t[n++]=192|(i&1984)>>>6,t[n++]=128|(i&63)>>>0):i<65536?(t[n++]=224|(i&61440)>>>12,t[n++]=128|(i&4032)>>>6,t[n++]=128|(i&63)>>>0):(t[n++]=240|(i&1835008)>>>18,t[n++]=128|(i&258048)>>>12,t[n++]=128|(i&4032)>>>6,t[n++]=128|(i&63)>>>0),n>=64&&(this._step(),n-=64,this._totalLen+=64,t[0]=t[64],t[1]=t[65],t[2]=t[66]),n}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),Rt(this._h0)+Rt(this._h1)+Rt(this._h2)+Rt(this._h3)+Rt(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,this._buff.subarray(this._buffLen).fill(0),this._buffLen>56&&(this._step(),this._buff.fill(0));const t=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(t/4294967296),!1),this._buffDV.setUint32(60,t%4294967296,!1),this._step()}_step(){const t=An._bigBlock32,n=this._buffDV;for(let d=0;d<64;d+=4)t.setUint32(d,n.getUint32(d,!1),!1);for(let d=64;d<320;d+=4)t.setUint32(d,Gn(t.getUint32(d-12,!1)^t.getUint32(d-32,!1)^t.getUint32(d-56,!1)^t.getUint32(d-64,!1),1),!1);let i=this._h0,r=this._h1,s=this._h2,a=this._h3,l=this._h4,o,u,c;for(let d=0;d<80;d++)d<20?(o=r&s|~r&a,u=1518500249):d<40?(o=r^s^a,u=1859775393):d<60?(o=r&s|r&a|s&a,u=2400959708):(o=r^s^a,u=3395469782),c=Gn(i,5)+o+l+u+t.getUint32(d*4,!1)&4294967295,l=a,a=s,s=Gn(r,30),r=i,i=c;this._h0=this._h0+i&4294967295,this._h1=this._h1+r&4294967295,this._h2=this._h2+s&4294967295,this._h3=this._h3+a&4294967295,this._h4=this._h4+l&4294967295}};An._bigBlock32=new DataView(new ArrayBuffer(320));let rr=An;class sr{constructor(t){this.source=t}getElements(){const t=this.source,n=new Int32Array(t.length);for(let i=0,r=t.length;i<r;i++)n[i]=t.charCodeAt(i);return n}}function hl(e,t,n){return new je(new sr(e),new sr(t)).ComputeDiff(n).changes}class lt{static Assert(t,n){if(!t)throw new Error(n)}}class ut{static Copy(t,n,i,r,s){for(let a=0;a<s;a++)i[r+a]=t[n+a]}static Copy2(t,n,i,r,s){for(let a=0;a<s;a++)i[r+a]=t[n+a]}}class ar{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 Ve(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(t,n){this.m_originalStart=Math.min(this.m_originalStart,t),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_originalCount++}AddModifiedElement(t,n){this.m_originalStart=Math.min(this.m_originalStart,t),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class je{constructor(t,n,i=null){this.ContinueProcessingPredicate=i,this._originalSequence=t,this._modifiedSequence=n;const[r,s,a]=je._getElements(t),[l,o,u]=je._getElements(n);this._hasStrings=a&&u,this._originalStringElements=r,this._originalElementsOrHash=s,this._modifiedStringElements=l,this._modifiedElementsOrHash=o,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(t){return t.length>0&&typeof t[0]=="string"}static _getElements(t){const n=t.getElements();if(je._isStringArray(n)){const i=new Int32Array(n.length);for(let r=0,s=n.length;r<s;r++)i[r]=cl(n[r],0);return[n,i,!0]}return n instanceof Int32Array?[[],n,!1]:[[],new Int32Array(n),!1]}ElementsAreEqual(t,n){return this._originalElementsOrHash[t]!==this._modifiedElementsOrHash[n]?!1:this._hasStrings?this._originalStringElements[t]===this._modifiedStringElements[n]:!0}ElementsAreStrictEqual(t,n){if(!this.ElementsAreEqual(t,n))return!1;const i=je._getStrictElement(this._originalSequence,t),r=je._getStrictElement(this._modifiedSequence,n);return i===r}static _getStrictElement(t,n){return typeof t.getStrictElement=="function"?t.getStrictElement(n):null}OriginalElementsAreEqual(t,n){return this._originalElementsOrHash[t]!==this._originalElementsOrHash[n]?!1:this._hasStrings?this._originalStringElements[t]===this._originalStringElements[n]:!0}ModifiedElementsAreEqual(t,n){return this._modifiedElementsOrHash[t]!==this._modifiedElementsOrHash[n]?!1:this._hasStrings?this._modifiedStringElements[t]===this._modifiedStringElements[n]:!0}ComputeDiff(t){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,t)}_ComputeDiff(t,n,i,r,s){const a=[!1];let l=this.ComputeDiffRecursive(t,n,i,r,a);return s&&(l=this.PrettifyChanges(l)),{quitEarly:a[0],changes:l}}ComputeDiffRecursive(t,n,i,r,s){for(s[0]=!1;t<=n&&i<=r&&this.ElementsAreEqual(t,i);)t++,i++;for(;n>=t&&r>=i&&this.ElementsAreEqual(n,r);)n--,r--;if(t>n||i>r){let d;return i<=r?(lt.Assert(t===n+1,"originalStart should only be one more than originalEnd"),d=[new Ve(t,0,i,r-i+1)]):t<=n?(lt.Assert(i===r+1,"modifiedStart should only be one more than modifiedEnd"),d=[new Ve(t,n-t+1,i,0)]):(lt.Assert(t===n+1,"originalStart should only be one more than originalEnd"),lt.Assert(i===r+1,"modifiedStart should only be one more than modifiedEnd"),d=[]),d}const a=[0],l=[0],o=this.ComputeRecursionPoint(t,n,i,r,a,l,s),u=a[0],c=l[0];if(o!==null)return o;if(!s[0]){const d=this.ComputeDiffRecursive(t,u,i,c,s);let m=[];return s[0]?m=[new Ve(u+1,n-(u+1)+1,c+1,r-(c+1)+1)]:m=this.ComputeDiffRecursive(u+1,n,c+1,r,s),this.ConcatenateChanges(d,m)}return[new Ve(t,n-t+1,i,r-i+1)]}WALKTRACE(t,n,i,r,s,a,l,o,u,c,d,m,f,w,p,x,T,y){let L=null,I=null,H=new ar,W=n,b=i,g=f[0]-x[0]-r,_=-1073741824,N=this.m_forwardHistory.length-1;do{const S=g+t;S===W||S<b&&u[S-1]<u[S+1]?(d=u[S+1],w=d-g-r,d<_&&H.MarkNextChange(),_=d,H.AddModifiedElement(d+1,w),g=S+1-t):(d=u[S-1]+1,w=d-g-r,d<_&&H.MarkNextChange(),_=d-1,H.AddOriginalElement(d,w+1),g=S-1-t),N>=0&&(u=this.m_forwardHistory[N],t=u[0],W=1,b=u.length-1)}while(--N>=-1);if(L=H.getReverseChanges(),y[0]){let S=f[0]+1,v=x[0]+1;if(L!==null&&L.length>0){const A=L[L.length-1];S=Math.max(S,A.getOriginalEnd()),v=Math.max(v,A.getModifiedEnd())}I=[new Ve(S,m-S+1,v,p-v+1)]}else{H=new ar,W=a,b=l,g=f[0]-x[0]-o,_=1073741824,N=T?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const S=g+s;S===W||S<b&&c[S-1]>=c[S+1]?(d=c[S+1]-1,w=d-g-o,d>_&&H.MarkNextChange(),_=d+1,H.AddOriginalElement(d+1,w+1),g=S+1-s):(d=c[S-1],w=d-g-o,d>_&&H.MarkNextChange(),_=d,H.AddModifiedElement(d+1,w+1),g=S-1-s),N>=0&&(c=this.m_reverseHistory[N],s=c[0],W=1,b=c.length-1)}while(--N>=-1);I=H.getChanges()}return this.ConcatenateChanges(L,I)}ComputeRecursionPoint(t,n,i,r,s,a,l){let o=0,u=0,c=0,d=0,m=0,f=0;t--,i--,s[0]=0,a[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const w=n-t+(r-i),p=w+1,x=new Int32Array(p),T=new Int32Array(p),y=r-i,L=n-t,I=t-i,H=n-r,b=(L-y)%2===0;x[y]=t,T[L]=n,l[0]=!1;for(let g=1;g<=w/2+1;g++){let _=0,N=0;c=this.ClipDiagonalBound(y-g,g,y,p),d=this.ClipDiagonalBound(y+g,g,y,p);for(let v=c;v<=d;v+=2){v===c||v<d&&x[v-1]<x[v+1]?o=x[v+1]:o=x[v-1]+1,u=o-(v-y)-I;const A=o;for(;o<n&&u<r&&this.ElementsAreEqual(o+1,u+1);)o++,u++;if(x[v]=o,o+u>_+N&&(_=o,N=u),!b&&Math.abs(v-L)<=g-1&&o>=T[v])return s[0]=o,a[0]=u,A<=T[v]&&g<=1448?this.WALKTRACE(y,c,d,I,L,m,f,H,x,T,o,n,s,u,r,a,b,l):null}const S=(_-t+(N-i)-g)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(_,S))return l[0]=!0,s[0]=_,a[0]=N,S>0&&g<=1448?this.WALKTRACE(y,c,d,I,L,m,f,H,x,T,o,n,s,u,r,a,b,l):(t++,i++,[new Ve(t,n-t+1,i,r-i+1)]);m=this.ClipDiagonalBound(L-g,g,L,p),f=this.ClipDiagonalBound(L+g,g,L,p);for(let v=m;v<=f;v+=2){v===m||v<f&&T[v-1]>=T[v+1]?o=T[v+1]-1:o=T[v-1],u=o-(v-L)-H;const A=o;for(;o>t&&u>i&&this.ElementsAreEqual(o,u);)o--,u--;if(T[v]=o,b&&Math.abs(v-y)<=g&&o<=x[v])return s[0]=o,a[0]=u,A>=x[v]&&g<=1448?this.WALKTRACE(y,c,d,I,L,m,f,H,x,T,o,n,s,u,r,a,b,l):null}if(g<=1447){let v=new Int32Array(d-c+2);v[0]=y-c+1,ut.Copy2(x,c,v,1,d-c+1),this.m_forwardHistory.push(v),v=new Int32Array(f-m+2),v[0]=L-m+1,ut.Copy2(T,m,v,1,f-m+1),this.m_reverseHistory.push(v)}}return this.WALKTRACE(y,c,d,I,L,m,f,H,x,T,o,n,s,u,r,a,b,l)}PrettifyChanges(t){for(let n=0;n<t.length;n++){const i=t[n],r=n<t.length-1?t[n+1].originalStart:this._originalElementsOrHash.length,s=n<t.length-1?t[n+1].modifiedStart:this._modifiedElementsOrHash.length,a=i.originalLength>0,l=i.modifiedLength>0;for(;i.originalStart+i.originalLength<r&&i.modifiedStart+i.modifiedLength<s&&(!a||this.OriginalElementsAreEqual(i.originalStart,i.originalStart+i.originalLength))&&(!l||this.ModifiedElementsAreEqual(i.modifiedStart,i.modifiedStart+i.modifiedLength));){const u=this.ElementsAreStrictEqual(i.originalStart,i.modifiedStart);if(this.ElementsAreStrictEqual(i.originalStart+i.originalLength,i.modifiedStart+i.modifiedLength)&&!u)break;i.originalStart++,i.modifiedStart++}const o=[null];if(n<t.length-1&&this.ChangesOverlap(t[n],t[n+1],o)){t[n]=o[0],t.splice(n+1,1),n--;continue}}for(let n=t.length-1;n>=0;n--){const i=t[n];let r=0,s=0;if(n>0){const d=t[n-1];r=d.originalStart+d.originalLength,s=d.modifiedStart+d.modifiedLength}const a=i.originalLength>0,l=i.modifiedLength>0;let o=0,u=this._boundaryScore(i.originalStart,i.originalLength,i.modifiedStart,i.modifiedLength);for(let d=1;;d++){const m=i.originalStart-d,f=i.modifiedStart-d;if(m<r||f<s||a&&!this.OriginalElementsAreEqual(m,m+i.originalLength)||l&&!this.ModifiedElementsAreEqual(f,f+i.modifiedLength))break;const p=(m===r&&f===s?5:0)+this._boundaryScore(m,i.originalLength,f,i.modifiedLength);p>u&&(u=p,o=d)}i.originalStart-=o,i.modifiedStart-=o;const c=[null];if(n>0&&this.ChangesOverlap(t[n-1],t[n],c)){t[n-1]=c[0],t.splice(n,1),n++;continue}}if(this._hasStrings)for(let n=1,i=t.length;n<i;n++){const r=t[n-1],s=t[n],a=s.originalStart-r.originalStart-r.originalLength,l=r.originalStart,o=s.originalStart+s.originalLength,u=o-l,c=r.modifiedStart,d=s.modifiedStart+s.modifiedLength,m=d-c;if(a<5&&u<20&&m<20){const f=this._findBetterContiguousSequence(l,u,c,m,a);if(f){const[w,p]=f;(w!==r.originalStart+r.originalLength||p!==r.modifiedStart+r.modifiedLength)&&(r.originalLength=w-r.originalStart,r.modifiedLength=p-r.modifiedStart,s.originalStart=w+a,s.modifiedStart=p+a,s.originalLength=o-s.originalStart,s.modifiedLength=d-s.modifiedStart)}}}return t}_findBetterContiguousSequence(t,n,i,r,s){if(n<s||r<s)return null;const a=t+n-s+1,l=i+r-s+1;let o=0,u=0,c=0;for(let d=t;d<a;d++)for(let m=i;m<l;m++){const f=this._contiguousSequenceScore(d,m,s);f>0&&f>o&&(o=f,u=d,c=m)}return o>0?[u,c]:null}_contiguousSequenceScore(t,n,i){let r=0;for(let s=0;s<i;s++){if(!this.ElementsAreEqual(t+s,n+s))return 0;r+=this._originalStringElements[t+s].length}return r}_OriginalIsBoundary(t){return t<=0||t>=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[t])}_OriginalRegionIsBoundary(t,n){if(this._OriginalIsBoundary(t)||this._OriginalIsBoundary(t-1))return!0;if(n>0){const i=t+n;if(this._OriginalIsBoundary(i-1)||this._OriginalIsBoundary(i))return!0}return!1}_ModifiedIsBoundary(t){return t<=0||t>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[t])}_ModifiedRegionIsBoundary(t,n){if(this._ModifiedIsBoundary(t)||this._ModifiedIsBoundary(t-1))return!0;if(n>0){const i=t+n;if(this._ModifiedIsBoundary(i-1)||this._ModifiedIsBoundary(i))return!0}return!1}_boundaryScore(t,n,i,r){const s=this._OriginalRegionIsBoundary(t,n)?1:0,a=this._ModifiedRegionIsBoundary(i,r)?1:0;return s+a}ConcatenateChanges(t,n){const i=[];if(t.length===0||n.length===0)return n.length>0?n:t;if(this.ChangesOverlap(t[t.length-1],n[0],i)){const r=new Array(t.length+n.length-1);return ut.Copy(t,0,r,0,t.length-1),r[t.length-1]=i[0],ut.Copy(n,1,r,t.length,n.length-1),r}else{const r=new Array(t.length+n.length);return ut.Copy(t,0,r,0,t.length),ut.Copy(n,0,r,t.length,n.length),r}}ChangesOverlap(t,n,i){if(lt.Assert(t.originalStart<=n.originalStart,"Left change is not less than or equal to right change"),lt.Assert(t.modifiedStart<=n.modifiedStart,"Left change is not less than or equal to right change"),t.originalStart+t.originalLength>=n.originalStart||t.modifiedStart+t.modifiedLength>=n.modifiedStart){const r=t.originalStart;let s=t.originalLength;const a=t.modifiedStart;let l=t.modifiedLength;return t.originalStart+t.originalLength>=n.originalStart&&(s=n.originalStart+n.originalLength-t.originalStart),t.modifiedStart+t.modifiedLength>=n.modifiedStart&&(l=n.modifiedStart+n.modifiedLength-t.modifiedStart),i[0]=new Ve(r,s,a,l),!0}else return i[0]=null,!1}ClipDiagonalBound(t,n,i,r){if(t>=0&&t<r)return t;const s=i,a=r-i-1,l=n%2===0;if(t<0){const o=s%2===0;return l===o?0:1}else{const o=a%2===0;return l===o?r-1:r-2}}}let K=class st{constructor(t,n){this.lineNumber=t,this.column=n}with(t=this.lineNumber,n=this.column){return t===this.lineNumber&&n===this.column?this:new st(t,n)}delta(t=0,n=0){return this.with(Math.max(1,this.lineNumber+t),Math.max(1,this.column+n))}equals(t){return st.equals(this,t)}static equals(t,n){return!t&&!n?!0:!!t&&!!n&&t.lineNumber===n.lineNumber&&t.column===n.column}isBefore(t){return st.isBefore(this,t)}static isBefore(t,n){return t.lineNumber<n.lineNumber?!0:n.lineNumber<t.lineNumber?!1:t.column<n.column}isBeforeOrEqual(t){return st.isBeforeOrEqual(this,t)}static isBeforeOrEqual(t,n){return t.lineNumber<n.lineNumber?!0:n.lineNumber<t.lineNumber?!1:t.column<=n.column}static compare(t,n){const i=t.lineNumber|0,r=n.lineNumber|0;if(i===r){const s=t.column|0,a=n.column|0;return s-a}return i-r}clone(){return new st(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(t){return new st(t.lineNumber,t.column)}static isIPosition(t){return!!t&&typeof t.lineNumber=="number"&&typeof t.column=="number"}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}},j=class re{constructor(t,n,i,r){t>i||t===i&&n>r?(this.startLineNumber=i,this.startColumn=r,this.endLineNumber=t,this.endColumn=n):(this.startLineNumber=t,this.startColumn=n,this.endLineNumber=i,this.endColumn=r)}isEmpty(){return re.isEmpty(this)}static isEmpty(t){return t.startLineNumber===t.endLineNumber&&t.startColumn===t.endColumn}containsPosition(t){return re.containsPosition(this,t)}static containsPosition(t,n){return!(n.lineNumber<t.startLineNumber||n.lineNumber>t.endLineNumber||n.lineNumber===t.startLineNumber&&n.column<t.startColumn||n.lineNumber===t.endLineNumber&&n.column>t.endColumn)}static strictContainsPosition(t,n){return!(n.lineNumber<t.startLineNumber||n.lineNumber>t.endLineNumber||n.lineNumber===t.startLineNumber&&n.column<=t.startColumn||n.lineNumber===t.endLineNumber&&n.column>=t.endColumn)}containsRange(t){return re.containsRange(this,t)}static containsRange(t,n){return!(n.startLineNumber<t.startLineNumber||n.endLineNumber<t.startLineNumber||n.startLineNumber>t.endLineNumber||n.endLineNumber>t.endLineNumber||n.startLineNumber===t.startLineNumber&&n.startColumn<t.startColumn||n.endLineNumber===t.endLineNumber&&n.endColumn>t.endColumn)}strictContainsRange(t){return re.strictContainsRange(this,t)}static strictContainsRange(t,n){return!(n.startLineNumber<t.startLineNumber||n.endLineNumber<t.startLineNumber||n.startLineNumber>t.endLineNumber||n.endLineNumber>t.endLineNumber||n.startLineNumber===t.startLineNumber&&n.startColumn<=t.startColumn||n.endLineNumber===t.endLineNumber&&n.endColumn>=t.endColumn)}plusRange(t){return re.plusRange(this,t)}static plusRange(t,n){let i,r,s,a;return n.startLineNumber<t.startLineNumber?(i=n.startLineNumber,r=n.startColumn):n.startLineNumber===t.startLineNumber?(i=n.startLineNumber,r=Math.min(n.startColumn,t.startColumn)):(i=t.startLineNumber,r=t.startColumn),n.endLineNumber>t.endLineNumber?(s=n.endLineNumber,a=n.endColumn):n.endLineNumber===t.endLineNumber?(s=n.endLineNumber,a=Math.max(n.endColumn,t.endColumn)):(s=t.endLineNumber,a=t.endColumn),new re(i,r,s,a)}intersectRanges(t){return re.intersectRanges(this,t)}static intersectRanges(t,n){let i=t.startLineNumber,r=t.startColumn,s=t.endLineNumber,a=t.endColumn;const l=n.startLineNumber,o=n.startColumn,u=n.endLineNumber,c=n.endColumn;return i<l?(i=l,r=o):i===l&&(r=Math.max(r,o)),s>u?(s=u,a=c):s===u&&(a=Math.min(a,c)),i>s||i===s&&r>a?null:new re(i,r,s,a)}equalsRange(t){return re.equalsRange(this,t)}static equalsRange(t,n){return!t&&!n?!0:!!t&&!!n&&t.startLineNumber===n.startLineNumber&&t.startColumn===n.startColumn&&t.endLineNumber===n.endLineNumber&&t.endColumn===n.endColumn}getEndPosition(){return re.getEndPosition(this)}static getEndPosition(t){return new K(t.endLineNumber,t.endColumn)}getStartPosition(){return re.getStartPosition(this)}static getStartPosition(t){return new K(t.startLineNumber,t.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(t,n){return new re(this.startLineNumber,this.startColumn,t,n)}setStartPosition(t,n){return new re(t,n,this.endLineNumber,this.endColumn)}collapseToStart(){return re.collapseToStart(this)}static collapseToStart(t){return new re(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn)}collapseToEnd(){return re.collapseToEnd(this)}static collapseToEnd(t){return new re(t.endLineNumber,t.endColumn,t.endLineNumber,t.endColumn)}delta(t){return new re(this.startLineNumber+t,this.startColumn,this.endLineNumber+t,this.endColumn)}isSingleLine(){return this.startLineNumber===this.endLineNumber}static fromPositions(t,n=t){return new re(t.lineNumber,t.column,n.lineNumber,n.column)}static lift(t){return t?new re(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):null}static isIRange(t){return!!t&&typeof t.startLineNumber=="number"&&typeof t.startColumn=="number"&&typeof t.endLineNumber=="number"&&typeof t.endColumn=="number"}static areIntersectingOrTouching(t,n){return!(t.endLineNumber<n.startLineNumber||t.endLineNumber===n.startLineNumber&&t.endColumn<n.startColumn||n.endLineNumber<t.startLineNumber||n.endLineNumber===t.startLineNumber&&n.endColumn<t.startColumn)}static areIntersecting(t,n){return!(t.endLineNumber<n.startLineNumber||t.endLineNumber===n.startLineNumber&&t.endColumn<=n.startColumn||n.endLineNumber<t.startLineNumber||n.endLineNumber===t.startLineNumber&&n.endColumn<=t.startColumn)}static areOnlyIntersecting(t,n){return!(t.endLineNumber<n.startLineNumber-1||t.endLineNumber===n.startLineNumber&&t.endColumn<n.startColumn-1||n.endLineNumber<t.startLineNumber-1||n.endLineNumber===t.startLineNumber&&n.endColumn<t.startColumn-1)}static compareRangesUsingStarts(t,n){if(t&&n){const s=t.startLineNumber|0,a=n.startLineNumber|0;if(s===a){const l=t.startColumn|0,o=n.startColumn|0;if(l===o){const u=t.endLineNumber|0,c=n.endLineNumber|0;if(u===c){const d=t.endColumn|0,m=n.endColumn|0;return d-m}return u-c}return l-o}return s-a}return(t?1:0)-(n?1:0)}static compareRangesUsingEnds(t,n){return t.endLineNumber===n.endLineNumber?t.endColumn===n.endColumn?t.startLineNumber===n.startLineNumber?t.startColumn-n.startColumn:t.startLineNumber-n.startLineNumber:t.endColumn-n.endColumn:t.endLineNumber-n.endLineNumber}static spansMultipleLines(t){return t.endLineNumber>t.startLineNumber}toJSON(){return this}};function or(e){return e<0?0:e>255?255:e|0}function ct(e){return e<0?0:e>4294967295?4294967295:e|0}class Xn{constructor(t){const n=or(t);this._defaultValue=n,this._asciiMap=Xn._createAsciiMap(n),this._map=new Map}static _createAsciiMap(t){const n=new Uint8Array(256);return n.fill(t),n}set(t,n){const i=or(n);t>=0&&t<256?this._asciiMap[t]=i:this._map.set(t,i)}get(t){return t>=0&&t<256?this._asciiMap[t]:this._map.get(t)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}class dl{constructor(t,n,i){const r=new Uint8Array(t*n);for(let s=0,a=t*n;s<a;s++)r[s]=i;this._data=r,this.rows=t,this.cols=n}get(t,n){return this._data[t*this.cols+n]}set(t,n,i){this._data[t*this.cols+n]=i}}class ml{constructor(t){let n=0,i=0;for(let s=0,a=t.length;s<a;s++){const[l,o,u]=t[s];o>n&&(n=o),l>i&&(i=l),u>i&&(i=u)}n++,i++;const r=new dl(i,n,0);for(let s=0,a=t.length;s<a;s++){const[l,o,u]=t[s];r.set(l,o,u)}this._states=r,this._maxCharCode=n}nextState(t,n){return n<0||n>=this._maxCharCode?0:this._states.get(t,n)}}let Jn=null;function fl(){return Jn===null&&(Jn=new ml([[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]])),Jn}let Mt=null;function pl(){if(Mt===null){Mt=new Xn(0);const e=` <>'"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…|`;for(let n=0;n<e.length;n++)Mt.set(e.charCodeAt(n),1);const t=".,;:";for(let n=0;n<t.length;n++)Mt.set(t.charCodeAt(n),2)}return Mt}class Kt{static _createLink(t,n,i,r,s){let a=s-1;do{const l=n.charCodeAt(a);if(t.get(l)!==2)break;a--}while(a>r);if(r>0){const l=n.charCodeAt(r-1),o=n.charCodeAt(a);(l===40&&o===41||l===91&&o===93||l===123&&o===125)&&a--}return{range:{startLineNumber:i,startColumn:r+1,endLineNumber:i,endColumn:a+2},url:n.substring(r,a+1)}}static computeLinks(t,n=fl()){const i=pl(),r=[];for(let s=1,a=t.getLineCount();s<=a;s++){const l=t.getLineContent(s),o=l.length;let u=0,c=0,d=0,m=1,f=!1,w=!1,p=!1,x=!1;for(;u<o;){let T=!1;const y=l.charCodeAt(u);if(m===13){let L;switch(y){case 40:f=!0,L=0;break;case 41:L=f?0:1;break;case 91:p=!0,w=!0,L=0;break;case 93:p=!1,L=w?0:1;break;case 123:x=!0,L=0;break;case 125:L=x?0:1;break;case 39:case 34:case 96:d===y?L=1:d===39||d===34||d===96?L=0:L=1;break;case 42:L=d===42?1:0;break;case 32:L=p?0:1;break;default:L=i.get(y)}L===1&&(r.push(Kt._createLink(i,l,s,c,u)),T=!0)}else if(m===12){let L;y===91?(w=!0,L=0):L=i.get(y),L===1?T=!0:m=13}else m=n.nextState(m,y),m===0&&(T=!0);T&&(m=1,f=!1,w=!1,x=!1,c=u+1,d=y),u++}m===13&&r.push(Kt._createLink(i,l,s,c,o))}return r}}function gl(e){return!e||typeof e.getLineCount!="function"||typeof e.getLineContent!="function"?[]:Kt.computeLinks(e)}const Ln=class Ln{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(t,n,i,r,s){if(t&&n){const a=this.doNavigateValueSet(n,s);if(a)return{range:t,value:a}}if(i&&r){const a=this.doNavigateValueSet(r,s);if(a)return{range:i,value:a}}return null}doNavigateValueSet(t,n){const i=this.numberReplace(t,n);return i!==null?i:this.textReplace(t,n)}numberReplace(t,n){const i=Math.pow(10,t.length-(t.lastIndexOf(".")+1));let r=Number(t);const s=parseFloat(t);return!isNaN(r)&&!isNaN(s)&&r===s?r===0&&!n?null:(r=Math.floor(r*i),r+=n?i:-i,String(r/i)):null}textReplace(t,n){return this.valueSetsReplace(this._defaultValueSet,t,n)}valueSetsReplace(t,n,i){let r=null;for(let s=0,a=t.length;r===null&&s<a;s++)r=this.valueSetReplace(t[s],n,i);return r}valueSetReplace(t,n,i){let r=t.indexOf(n);return r>=0?(r+=i?1:-1,r<0?r=t.length-1:r%=t.length,t[r]):null}};Ln.INSTANCE=new Ln;let Qn=Ln;const lr=Object.freeze(function(e,t){const n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}});var en;(function(e){function t(n){return n===e.None||n===e.Cancelled||n instanceof tn?!0:!n||typeof n!="object"?!1:typeof n.isCancellationRequested=="boolean"&&typeof n.onCancellationRequested=="function"}e.isCancellationToken=t,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Nn.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:lr})})(en||(en={}));class tn{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?lr:(this._emitter||(this._emitter=new De),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class bl{constructor(t){this._token=void 0,this._parentListener=void 0,this._parentListener=t&&t.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new tn),this._token}cancel(){this._token?this._token instanceof tn&&this._token.cancel():this._token=en.Cancelled}dispose(t=!1){var n;t&&this.cancel(),(n=this._parentListener)==null||n.dispose(),this._token?this._token instanceof tn&&this._token.dispose():this._token=en.None}}class Yn{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(t,n){this._keyCodeToStr[t]=n,this._strToKeyCode[n.toLowerCase()]=t}keyCodeToStr(t){return this._keyCodeToStr[t]}strToKeyCode(t){return this._strToKeyCode[t.toLowerCase()]||0}}const nn=new Yn,Zn=new Yn,Kn=new Yn,wl=new Array(230),_l=Object.create(null),vl=Object.create(null);(function(){const e="",t=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[1,1,"Hyper",0,e,0,e,e,e],[1,2,"Super",0,e,0,e,e,e],[1,3,"Fn",0,e,0,e,e,e],[1,4,"FnLock",0,e,0,e,e,e],[1,5,"Suspend",0,e,0,e,e,e],[1,6,"Resume",0,e,0,e,e,e],[1,7,"Turbo",0,e,0,e,e,e],[1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[1,9,"WakeUp",0,e,0,e,e,e],[0,10,"KeyA",31,"A",65,"VK_A",e,e],[0,11,"KeyB",32,"B",66,"VK_B",e,e],[0,12,"KeyC",33,"C",67,"VK_C",e,e],[0,13,"KeyD",34,"D",68,"VK_D",e,e],[0,14,"KeyE",35,"E",69,"VK_E",e,e],[0,15,"KeyF",36,"F",70,"VK_F",e,e],[0,16,"KeyG",37,"G",71,"VK_G",e,e],[0,17,"KeyH",38,"H",72,"VK_H",e,e],[0,18,"KeyI",39,"I",73,"VK_I",e,e],[0,19,"KeyJ",40,"J",74,"VK_J",e,e],[0,20,"KeyK",41,"K",75,"VK_K",e,e],[0,21,"KeyL",42,"L",76,"VK_L",e,e],[0,22,"KeyM",43,"M",77,"VK_M",e,e],[0,23,"KeyN",44,"N",78,"VK_N",e,e],[0,24,"KeyO",45,"O",79,"VK_O",e,e],[0,25,"KeyP",46,"P",80,"VK_P",e,e],[0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[0,27,"KeyR",48,"R",82,"VK_R",e,e],[0,28,"KeyS",49,"S",83,"VK_S",e,e],[0,29,"KeyT",50,"T",84,"VK_T",e,e],[0,30,"KeyU",51,"U",85,"VK_U",e,e],[0,31,"KeyV",52,"V",86,"VK_V",e,e],[0,32,"KeyW",53,"W",87,"VK_W",e,e],[0,33,"KeyX",54,"X",88,"VK_X",e,e],[0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[0,36,"Digit1",22,"1",49,"VK_1",e,e],[0,37,"Digit2",23,"2",50,"VK_2",e,e],[0,38,"Digit3",24,"3",51,"VK_3",e,e],[0,39,"Digit4",25,"4",52,"VK_4",e,e],[0,40,"Digit5",26,"5",53,"VK_5",e,e],[0,41,"Digit6",27,"6",54,"VK_6",e,e],[0,42,"Digit7",28,"7",55,"VK_7",e,e],[0,43,"Digit8",29,"8",56,"VK_8",e,e],[0,44,"Digit9",30,"9",57,"VK_9",e,e],[0,45,"Digit0",21,"0",48,"VK_0",e,e],[1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[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,e,0,e,e,e],[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",e,e],[1,64,"F1",59,"F1",112,"VK_F1",e,e],[1,65,"F2",60,"F2",113,"VK_F2",e,e],[1,66,"F3",61,"F3",114,"VK_F3",e,e],[1,67,"F4",62,"F4",115,"VK_F4",e,e],[1,68,"F5",63,"F5",116,"VK_F5",e,e],[1,69,"F6",64,"F6",117,"VK_F6",e,e],[1,70,"F7",65,"F7",118,"VK_F7",e,e],[1,71,"F8",66,"F8",119,"VK_F8",e,e],[1,72,"F9",67,"F9",120,"VK_F9",e,e],[1,73,"F10",68,"F10",121,"VK_F10",e,e],[1,74,"F11",69,"F11",122,"VK_F11",e,e],[1,75,"F12",70,"F12",123,"VK_F12",e,e],[1,76,"PrintScreen",0,e,0,e,e,e],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",e,e],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[1,80,"Home",14,"Home",36,"VK_HOME",e,e],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[1,83,"End",13,"End",35,"VK_END",e,e],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",e,e],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",e,e],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",e,e],[1,94,"NumpadEnter",3,e,0,e,e,e],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",e,e],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",e,e],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",e,e],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",e,e],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",e,e],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",e,e],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",e,e],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",e,e],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",e,e],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",e,e],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",e,e],[1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[1,108,"Power",0,e,0,e,e,e],[1,109,"NumpadEqual",0,e,0,e,e,e],[1,110,"F13",71,"F13",124,"VK_F13",e,e],[1,111,"F14",72,"F14",125,"VK_F14",e,e],[1,112,"F15",73,"F15",126,"VK_F15",e,e],[1,113,"F16",74,"F16",127,"VK_F16",e,e],[1,114,"F17",75,"F17",128,"VK_F17",e,e],[1,115,"F18",76,"F18",129,"VK_F18",e,e],[1,116,"F19",77,"F19",130,"VK_F19",e,e],[1,117,"F20",78,"F20",131,"VK_F20",e,e],[1,118,"F21",79,"F21",132,"VK_F21",e,e],[1,119,"F22",80,"F22",133,"VK_F22",e,e],[1,120,"F23",81,"F23",134,"VK_F23",e,e],[1,121,"F24",82,"F24",135,"VK_F24",e,e],[1,122,"Open",0,e,0,e,e,e],[1,123,"Help",0,e,0,e,e,e],[1,124,"Select",0,e,0,e,e,e],[1,125,"Again",0,e,0,e,e,e],[1,126,"Undo",0,e,0,e,e,e],[1,127,"Cut",0,e,0,e,e,e],[1,128,"Copy",0,e,0,e,e,e],[1,129,"Paste",0,e,0,e,e,e],[1,130,"Find",0,e,0,e,e,e],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",e,e],[1,136,"KanaMode",0,e,0,e,e,e],[0,137,"IntlYen",0,e,0,e,e,e],[1,138,"Convert",0,e,0,e,e,e],[1,139,"NonConvert",0,e,0,e,e,e],[1,140,"Lang1",0,e,0,e,e,e],[1,141,"Lang2",0,e,0,e,e,e],[1,142,"Lang3",0,e,0,e,e,e],[1,143,"Lang4",0,e,0,e,e,e],[1,144,"Lang5",0,e,0,e,e,e],[1,145,"Abort",0,e,0,e,e,e],[1,146,"Props",0,e,0,e,e,e],[1,147,"NumpadParenLeft",0,e,0,e,e,e],[1,148,"NumpadParenRight",0,e,0,e,e,e],[1,149,"NumpadBackspace",0,e,0,e,e,e],[1,150,"NumpadMemoryStore",0,e,0,e,e,e],[1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[1,152,"NumpadMemoryClear",0,e,0,e,e,e],[1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",e,e],[1,156,"NumpadClearEntry",0,e,0,e,e,e],[1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[1,0,e,6,"Alt",18,"VK_MENU",e,e],[1,0,e,57,"Meta",91,"VK_COMMAND",e,e],[1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[1,165,"BrightnessUp",0,e,0,e,e,e],[1,166,"BrightnessDown",0,e,0,e,e,e],[1,167,"MediaPlay",0,e,0,e,e,e],[1,168,"MediaRecord",0,e,0,e,e,e],[1,169,"MediaFastForward",0,e,0,e,e,e],[1,170,"MediaRewind",0,e,0,e,e,e],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",e,e],[1,174,"Eject",0,e,0,e,e,e],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[1,180,"SelectTask",0,e,0,e,e,e],[1,181,"LaunchScreenSaver",0,e,0,e,e,e],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[1,189,"ZoomToggle",0,e,0,e,e,e],[1,190,"MailReply",0,e,0,e,e,e],[1,191,"MailForward",0,e,0,e,e,e],[1,192,"MailSend",0,e,0,e,e,e],[1,0,e,114,"KeyInComposition",229,e,e,e],[1,0,e,116,"ABNT_C2",194,"VK_ABNT_C2",e,e],[1,0,e,96,"OEM_8",223,"VK_OEM_8",e,e],[1,0,e,0,e,0,"VK_KANA",e,e],[1,0,e,0,e,0,"VK_HANGUL",e,e],[1,0,e,0,e,0,"VK_JUNJA",e,e],[1,0,e,0,e,0,"VK_FINAL",e,e],[1,0,e,0,e,0,"VK_HANJA",e,e],[1,0,e,0,e,0,"VK_KANJI",e,e],[1,0,e,0,e,0,"VK_CONVERT",e,e],[1,0,e,0,e,0,"VK_NONCONVERT",e,e],[1,0,e,0,e,0,"VK_ACCEPT",e,e],[1,0,e,0,e,0,"VK_MODECHANGE",e,e],[1,0,e,0,e,0,"VK_SELECT",e,e],[1,0,e,0,e,0,"VK_PRINT",e,e],[1,0,e,0,e,0,"VK_EXECUTE",e,e],[1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[1,0,e,0,e,0,"VK_HELP",e,e],[1,0,e,0,e,0,"VK_APPS",e,e],[1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[1,0,e,0,e,0,"VK_PACKET",e,e],[1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[1,0,e,0,e,0,"VK_ATTN",e,e],[1,0,e,0,e,0,"VK_CRSEL",e,e],[1,0,e,0,e,0,"VK_EXSEL",e,e],[1,0,e,0,e,0,"VK_EREOF",e,e],[1,0,e,0,e,0,"VK_PLAY",e,e],[1,0,e,0,e,0,"VK_ZOOM",e,e],[1,0,e,0,e,0,"VK_NONAME",e,e],[1,0,e,0,e,0,"VK_PA1",e,e],[1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]],n=[],i=[];for(const r of t){const[s,a,l,o,u,c,d,m,f]=r;if(i[a]||(i[a]=!0,_l[l]=a,vl[l.toLowerCase()]=a),!n[o]){if(n[o]=!0,!u)throw new Error(`String representation missing for key code ${o} around scan code ${l}`);nn.define(o,u),Zn.define(o,m||u),Kn.define(o,f||m||u)}c&&(wl[c]=o)}})();var ur;(function(e){function t(l){return nn.keyCodeToStr(l)}e.toString=t;function n(l){return nn.strToKeyCode(l)}e.fromString=n;function i(l){return Zn.keyCodeToStr(l)}e.toUserSettingsUS=i;function r(l){return Kn.keyCodeToStr(l)}e.toUserSettingsGeneral=r;function s(l){return Zn.strToKeyCode(l)||Kn.strToKeyCode(l)}e.fromUserSettings=s;function a(l){if(l>=98&&l<=113)return null;switch(l){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return nn.keyCodeToStr(l)}e.toElectronAccelerator=a})(ur||(ur={}));function yl(e,t){const n=(t&65535)<<16>>>0;return(e|n)>>>0}var cr={};let ht;const ei=globalThis.vscode;if(typeof ei<"u"&&typeof ei.process<"u"){const e=ei.process;ht={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd(){return e.cwd()}}}else typeof process<"u"&&typeof((vo=process==null?void 0:process.versions)==null?void 0:vo.node)=="string"?ht={get platform(){return process.platform},get arch(){return process.arch},get env(){return cr},cwd(){return cr.VSCODE_CWD||process.cwd()}}:ht={get platform(){return Ct?"win32":Po?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const rn=ht.cwd,Tl=ht.env,xl=ht.platform,kl=65,Sl=97,Al=90,Ll=122,tt=46,oe=47,de=92,Ue=58,Cl=63;class hr extends Error{constructor(t,n,i){let r;typeof n=="string"&&n.indexOf("not ")===0?(r="must not be",n=n.replace(/^not /,"")):r="must be";const s=t.indexOf(".")!==-1?"property":"argument";let a=`The "${t}" ${s} ${r} of type ${n}`;a+=`. Received type ${typeof i}`,super(a),this.code="ERR_INVALID_ARG_TYPE"}}function El(e,t){if(e===null||typeof e!="object")throw new hr(t,"Object",e)}function ie(e,t){if(typeof e!="string")throw new hr(t,"string",e)}const $e=xl==="win32";function $(e){return e===oe||e===de}function ti(e){return e===oe}function We(e){return e>=kl&&e<=Al||e>=Sl&&e<=Ll}function sn(e,t,n,i){let r="",s=0,a=-1,l=0,o=0;for(let u=0;u<=e.length;++u){if(u<e.length)o=e.charCodeAt(u);else{if(i(o))break;o=oe}if(i(o)){if(!(a===u-1||l===1))if(l===2){if(r.length<2||s!==2||r.charCodeAt(r.length-1)!==tt||r.charCodeAt(r.length-2)!==tt){if(r.length>2){const c=r.lastIndexOf(n);c===-1?(r="",s=0):(r=r.slice(0,c),s=r.length-1-r.lastIndexOf(n)),a=u,l=0;continue}else if(r.length!==0){r="",s=0,a=u,l=0;continue}}t&&(r+=r.length>0?`${n}..`:"..",s=2)}else r.length>0?r+=`${n}${e.slice(a+1,u)}`:r=e.slice(a+1,u),s=u-a-1;a=u,l=0}else o===tt&&l!==-1?++l:l=-1}return r}function Dl(e){return e?`${e[0]==="."?"":"."}${e}`:""}function dr(e,t){El(t,"pathObject");const n=t.dir||t.root,i=t.base||`${t.name||""}${Dl(t.ext)}`;return n?n===t.root?`${n}${i}`:`${n}${e}${i}`:i}const ce={resolve(...e){let t="",n="",i=!1;for(let r=e.length-1;r>=-1;r--){let s;if(r>=0){if(s=e[r],ie(s,`paths[${r}]`),s.length===0)continue}else t.length===0?s=rn():(s=Tl[`=${t}`]||rn(),(s===void 0||s.slice(0,2).toLowerCase()!==t.toLowerCase()&&s.charCodeAt(2)===de)&&(s=`${t}\\`));const a=s.length;let l=0,o="",u=!1;const c=s.charCodeAt(0);if(a===1)$(c)&&(l=1,u=!0);else if($(c))if(u=!0,$(s.charCodeAt(1))){let d=2,m=d;for(;d<a&&!$(s.charCodeAt(d));)d++;if(d<a&&d!==m){const f=s.slice(m,d);for(m=d;d<a&&$(s.charCodeAt(d));)d++;if(d<a&&d!==m){for(m=d;d<a&&!$(s.charCodeAt(d));)d++;(d===a||d!==m)&&(o=`\\\\${f}\\${s.slice(m,d)}`,l=d)}}}else l=1;else We(c)&&s.charCodeAt(1)===Ue&&(o=s.slice(0,2),l=2,a>2&&$(s.charCodeAt(2))&&(u=!0,l=3));if(o.length>0)if(t.length>0){if(o.toLowerCase()!==t.toLowerCase())continue}else t=o;if(i){if(t.length>0)break}else if(n=`${s.slice(l)}\\${n}`,i=u,u&&t.length>0)break}return n=sn(n,!i,"\\",$),i?`${t}\\${n}`:`${t}${n}`||"."},normalize(e){ie(e,"path");const t=e.length;if(t===0)return".";let n=0,i,r=!1;const s=e.charCodeAt(0);if(t===1)return ti(s)?"\\":e;if($(s))if(r=!0,$(e.charCodeAt(1))){let l=2,o=l;for(;l<t&&!$(e.charCodeAt(l));)l++;if(l<t&&l!==o){const u=e.slice(o,l);for(o=l;l<t&&$(e.charCodeAt(l));)l++;if(l<t&&l!==o){for(o=l;l<t&&!$(e.charCodeAt(l));)l++;if(l===t)return`\\\\${u}\\${e.slice(o)}\\`;l!==o&&(i=`\\\\${u}\\${e.slice(o,l)}`,n=l)}}}else n=1;else We(s)&&e.charCodeAt(1)===Ue&&(i=e.slice(0,2),n=2,t>2&&$(e.charCodeAt(2))&&(r=!0,n=3));let a=n<t?sn(e.slice(n),!r,"\\",$):"";if(a.length===0&&!r&&(a="."),a.length>0&&$(e.charCodeAt(t-1))&&(a+="\\"),!r&&i===void 0&&e.includes(":")){if(a.length>=2&&We(a.charCodeAt(0))&&a.charCodeAt(1)===Ue)return`.\\${a}`;let l=e.indexOf(":");do if(l===t-1||$(e.charCodeAt(l+1)))return`.\\${a}`;while((l=e.indexOf(":",l+1))!==-1)}return i===void 0?r?`\\${a}`:a:r?`${i}\\${a}`:`${i}${a}`},isAbsolute(e){ie(e,"path");const t=e.length;if(t===0)return!1;const n=e.charCodeAt(0);return $(n)||t>2&&We(n)&&e.charCodeAt(1)===Ue&&$(e.charCodeAt(2))},join(...e){if(e.length===0)return".";let t,n;for(let s=0;s<e.length;++s){const a=e[s];ie(a,"path"),a.length>0&&(t===void 0?t=n=a:t+=`\\${a}`)}if(t===void 0)return".";let i=!0,r=0;if(typeof n=="string"&&$(n.charCodeAt(0))){++r;const s=n.length;s>1&&$(n.charCodeAt(1))&&(++r,s>2&&($(n.charCodeAt(2))?++r:i=!1))}if(i){for(;r<t.length&&$(t.charCodeAt(r));)r++;r>=2&&(t=`\\${t.slice(r)}`)}return ce.normalize(t)},relative(e,t){if(ie(e,"from"),ie(t,"to"),e===t)return"";const n=ce.resolve(e),i=ce.resolve(t);if(n===i||(e=n.toLowerCase(),t=i.toLowerCase(),e===t))return"";if(n.length!==e.length||i.length!==t.length){const w=n.split("\\"),p=i.split("\\");w[w.length-1]===""&&w.pop(),p[p.length-1]===""&&p.pop();const x=w.length,T=p.length,y=x<T?x:T;let L;for(L=0;L<y&&w[L].toLowerCase()===p[L].toLowerCase();L++);return L===0?i:L===y?T>y?p.slice(L).join("\\"):x>y?"..\\".repeat(x-1-L)+"..":"":"..\\".repeat(x-L)+p.slice(L).join("\\")}let r=0;for(;r<e.length&&e.charCodeAt(r)===de;)r++;let s=e.length;for(;s-1>r&&e.charCodeAt(s-1)===de;)s--;const a=s-r;let l=0;for(;l<t.length&&t.charCodeAt(l)===de;)l++;let o=t.length;for(;o-1>l&&t.charCodeAt(o-1)===de;)o--;const u=o-l,c=a<u?a:u;let d=-1,m=0;for(;m<c;m++){const w=e.charCodeAt(r+m);if(w!==t.charCodeAt(l+m))break;w===de&&(d=m)}if(m!==c){if(d===-1)return i}else{if(u>c){if(t.charCodeAt(l+m)===de)return i.slice(l+m+1);if(m===2)return i.slice(l+m)}a>c&&(e.charCodeAt(r+m)===de?d=m:m===2&&(d=3)),d===-1&&(d=0)}let f="";for(m=r+d+1;m<=s;++m)(m===s||e.charCodeAt(m)===de)&&(f+=f.length===0?"..":"\\..");return l+=d,f.length>0?`${f}${i.slice(l,o)}`:(i.charCodeAt(l)===de&&++l,i.slice(l,o))},toNamespacedPath(e){if(typeof e!="string"||e.length===0)return e;const t=ce.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===de){if(t.charCodeAt(1)===de){const n=t.charCodeAt(2);if(n!==Cl&&n!==tt)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(We(t.charCodeAt(0))&&t.charCodeAt(1)===Ue&&t.charCodeAt(2)===de)return`\\\\?\\${t}`;return t},dirname(e){ie(e,"path");const t=e.length;if(t===0)return".";let n=-1,i=0;const r=e.charCodeAt(0);if(t===1)return $(r)?e:".";if($(r)){if(n=i=1,$(e.charCodeAt(1))){let l=2,o=l;for(;l<t&&!$(e.charCodeAt(l));)l++;if(l<t&&l!==o){for(o=l;l<t&&$(e.charCodeAt(l));)l++;if(l<t&&l!==o){for(o=l;l<t&&!$(e.charCodeAt(l));)l++;if(l===t)return e;l!==o&&(n=i=l+1)}}}}else We(r)&&e.charCodeAt(1)===Ue&&(n=t>2&&$(e.charCodeAt(2))?3:2,i=n);let s=-1,a=!0;for(let l=t-1;l>=i;--l)if($(e.charCodeAt(l))){if(!a){s=l;break}}else a=!1;if(s===-1){if(n===-1)return".";s=n}return e.slice(0,s)},basename(e,t){t!==void 0&&ie(t,"suffix"),ie(e,"path");let n=0,i=-1,r=!0,s;if(e.length>=2&&We(e.charCodeAt(0))&&e.charCodeAt(1)===Ue&&(n=2),t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let a=t.length-1,l=-1;for(s=e.length-1;s>=n;--s){const o=e.charCodeAt(s);if($(o)){if(!r){n=s+1;break}}else l===-1&&(r=!1,l=s+1),a>=0&&(o===t.charCodeAt(a)?--a===-1&&(i=s):(a=-1,i=l))}return n===i?i=l:i===-1&&(i=e.length),e.slice(n,i)}for(s=e.length-1;s>=n;--s)if($(e.charCodeAt(s))){if(!r){n=s+1;break}}else i===-1&&(r=!1,i=s+1);return i===-1?"":e.slice(n,i)},extname(e){ie(e,"path");let t=0,n=-1,i=0,r=-1,s=!0,a=0;e.length>=2&&e.charCodeAt(1)===Ue&&We(e.charCodeAt(0))&&(t=i=2);for(let l=e.length-1;l>=t;--l){const o=e.charCodeAt(l);if($(o)){if(!s){i=l+1;break}continue}r===-1&&(s=!1,r=l+1),o===tt?n===-1?n=l:a!==1&&(a=1):n!==-1&&(a=-1)}return n===-1||r===-1||a===0||a===1&&n===r-1&&n===i+1?"":e.slice(n,r)},format:dr.bind(null,"\\"),parse(e){ie(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;const n=e.length;let i=0,r=e.charCodeAt(0);if(n===1)return $(r)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if($(r)){if(i=1,$(e.charCodeAt(1))){let d=2,m=d;for(;d<n&&!$(e.charCodeAt(d));)d++;if(d<n&&d!==m){for(m=d;d<n&&$(e.charCodeAt(d));)d++;if(d<n&&d!==m){for(m=d;d<n&&!$(e.charCodeAt(d));)d++;d===n?i=d:d!==m&&(i=d+1)}}}}else if(We(r)&&e.charCodeAt(1)===Ue){if(n<=2)return t.root=t.dir=e,t;if(i=2,$(e.charCodeAt(2))){if(n===3)return t.root=t.dir=e,t;i=3}}i>0&&(t.root=e.slice(0,i));let s=-1,a=i,l=-1,o=!0,u=e.length-1,c=0;for(;u>=i;--u){if(r=e.charCodeAt(u),$(r)){if(!o){a=u+1;break}continue}l===-1&&(o=!1,l=u+1),r===tt?s===-1?s=u:c!==1&&(c=1):s!==-1&&(c=-1)}return l!==-1&&(s===-1||c===0||c===1&&s===l-1&&s===a+1?t.base=t.name=e.slice(a,l):(t.name=e.slice(a,s),t.base=e.slice(a,l),t.ext=e.slice(s,l))),a>0&&a!==i?t.dir=e.slice(0,a-1):t.dir=t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},Rl=(()=>{if($e){const e=/\\/g;return()=>{const t=rn().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>rn()})(),me={resolve(...e){let t="",n=!1;for(let i=e.length-1;i>=0&&!n;i--){const r=e[i];ie(r,`paths[${i}]`),r.length!==0&&(t=`${r}/${t}`,n=r.charCodeAt(0)===oe)}if(!n){const i=Rl();t=`${i}/${t}`,n=i.charCodeAt(0)===oe}return t=sn(t,!n,"/",ti),n?`/${t}`:t.length>0?t:"."},normalize(e){if(ie(e,"path"),e.length===0)return".";const t=e.charCodeAt(0)===oe,n=e.charCodeAt(e.length-1)===oe;return e=sn(e,!t,"/",ti),e.length===0?t?"/":n?"./":".":(n&&(e+="/"),t?`/${e}`:e)},isAbsolute(e){return ie(e,"path"),e.length>0&&e.charCodeAt(0)===oe},join(...e){if(e.length===0)return".";const t=[];for(let n=0;n<e.length;++n){const i=e[n];ie(i,"path"),i.length>0&&t.push(i)}return t.length===0?".":me.normalize(t.join("/"))},relative(e,t){if(ie(e,"from"),ie(t,"to"),e===t||(e=me.resolve(e),t=me.resolve(t),e===t))return"";const n=1,i=e.length,r=i-n,s=1,a=t.length-s,l=r<a?r:a;let o=-1,u=0;for(;u<l;u++){const d=e.charCodeAt(n+u);if(d!==t.charCodeAt(s+u))break;d===oe&&(o=u)}if(u===l)if(a>l){if(t.charCodeAt(s+u)===oe)return t.slice(s+u+1);if(u===0)return t.slice(s+u)}else r>l&&(e.charCodeAt(n+u)===oe?o=u:u===0&&(o=0));let c="";for(u=n+o+1;u<=i;++u)(u===i||e.charCodeAt(u)===oe)&&(c+=c.length===0?"..":"/..");return`${c}${t.slice(s+o)}`},toNamespacedPath(e){return e},dirname(e){if(ie(e,"path"),e.length===0)return".";const t=e.charCodeAt(0)===oe;let n=-1,i=!0;for(let r=e.length-1;r>=1;--r)if(e.charCodeAt(r)===oe){if(!i){n=r;break}}else i=!1;return n===-1?t?"/":".":t&&n===1?"//":e.slice(0,n)},basename(e,t){t!==void 0&&ie(t,"suffix"),ie(e,"path");let n=0,i=-1,r=!0,s;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let a=t.length-1,l=-1;for(s=e.length-1;s>=0;--s){const o=e.charCodeAt(s);if(o===oe){if(!r){n=s+1;break}}else l===-1&&(r=!1,l=s+1),a>=0&&(o===t.charCodeAt(a)?--a===-1&&(i=s):(a=-1,i=l))}return n===i?i=l:i===-1&&(i=e.length),e.slice(n,i)}for(s=e.length-1;s>=0;--s)if(e.charCodeAt(s)===oe){if(!r){n=s+1;break}}else i===-1&&(r=!1,i=s+1);return i===-1?"":e.slice(n,i)},extname(e){ie(e,"path");let t=-1,n=0,i=-1,r=!0,s=0;for(let a=e.length-1;a>=0;--a){const l=e[a];if(l==="/"){if(!r){n=a+1;break}continue}i===-1&&(r=!1,i=a+1),l==="."?t===-1?t=a:s!==1&&(s=1):t!==-1&&(s=-1)}return t===-1||i===-1||s===0||s===1&&t===i-1&&t===n+1?"":e.slice(t,i)},format:dr.bind(null,"/"),parse(e){ie(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;const n=e.charCodeAt(0)===oe;let i;n?(t.root="/",i=1):i=0;let r=-1,s=0,a=-1,l=!0,o=e.length-1,u=0;for(;o>=i;--o){const c=e.charCodeAt(o);if(c===oe){if(!l){s=o+1;break}continue}a===-1&&(l=!1,a=o+1),c===tt?r===-1?r=o:u!==1&&(u=1):r!==-1&&(u=-1)}if(a!==-1){const c=s===0&&n?1:s;r===-1||u===0||u===1&&r===a-1&&r===s+1?t.base=t.name=e.slice(c,a):(t.name=e.slice(c,r),t.base=e.slice(c,a),t.ext=e.slice(r,a))}return s>0?t.dir=e.slice(0,s-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};me.win32=ce.win32=ce,me.posix=ce.posix=me,$e?ce.normalize:me.normalize,$e?ce.resolve:me.resolve,$e?ce.relative:me.relative,$e?ce.dirname:me.dirname,$e?ce.basename:me.basename,$e?ce.extname:me.extname,$e?ce.sep:me.sep;const Ml=/^\w[\w\d+.-]*$/,Nl=/^\//,Il=/^\/\//;function zl(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!Ml.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path){if(e.authority){if(!Nl.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(Il.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function Hl(e,t){return!e&&!t?"file":e}function Ul(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==Se&&(t=Se+t):t=Se;break}return t}const ee="",Se="/",Wl=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;let ni=class Dn{static isUri(t){return t instanceof Dn?!0:!t||typeof t!="object"?!1:typeof t.authority=="string"&&typeof t.fragment=="string"&&typeof t.path=="string"&&typeof t.query=="string"&&typeof t.scheme=="string"&&typeof t.fsPath=="string"&&typeof t.with=="function"&&typeof t.toString=="function"}constructor(t,n,i,r,s,a=!1){typeof t=="object"?(this.scheme=t.scheme||ee,this.authority=t.authority||ee,this.path=t.path||ee,this.query=t.query||ee,this.fragment=t.fragment||ee):(this.scheme=Hl(t,a),this.authority=n||ee,this.path=Ul(this.scheme,i||ee),this.query=r||ee,this.fragment=s||ee,zl(this,a))}get fsPath(){return ii(this,!1)}with(t){if(!t)return this;let{scheme:n,authority:i,path:r,query:s,fragment:a}=t;return n===void 0?n=this.scheme:n===null&&(n=ee),i===void 0?i=this.authority:i===null&&(i=ee),r===void 0?r=this.path:r===null&&(r=ee),s===void 0?s=this.query:s===null&&(s=ee),a===void 0?a=this.fragment:a===null&&(a=ee),n===this.scheme&&i===this.authority&&r===this.path&&s===this.query&&a===this.fragment?this:new dt(n,i,r,s,a)}static parse(t,n=!1){const i=Wl.exec(t);return i?new dt(i[2]||ee,an(i[4]||ee),an(i[5]||ee),an(i[7]||ee),an(i[9]||ee),n):new dt(ee,ee,ee,ee,ee)}static file(t){let n=ee;if(Ct&&(t=t.replace(/\\/g,Se)),t[0]===Se&&t[1]===Se){const i=t.indexOf(Se,2);i===-1?(n=t.substring(2),t=Se):(n=t.substring(2,i),t=t.substring(i)||Se)}return new dt("file",n,t,ee,ee)}static from(t,n){return new dt(t.scheme,t.authority,t.path,t.query,t.fragment,n)}static joinPath(t,...n){if(!t.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let i;return Ct&&t.scheme==="file"?i=Dn.file(ce.join(ii(t,!0),...n)).path:i=me.join(t.path,...n),t.with({path:i})}toString(t=!1){return ri(this,t)}toJSON(){return this}static revive(t){if(t){if(t instanceof Dn)return t;{const n=new dt(t);return n._formatted=t.external??null,n._fsPath=t._sep===mr?t.fsPath??null:null,n}}else return t}};const mr=Ct?1:void 0;class dt extends ni{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=ii(this,!1)),this._fsPath}toString(t=!1){return t?ri(this,!0):(this._formatted||(this._formatted=ri(this,!1)),this._formatted)}toJSON(){const t={$mid:1};return this._fsPath&&(t.fsPath=this._fsPath,t._sep=mr),this._formatted&&(t.external=this._formatted),this.path&&(t.path=this.path),this.scheme&&(t.scheme=this.scheme),this.authority&&(t.authority=this.authority),this.query&&(t.query=this.query),this.fragment&&(t.fragment=this.fragment),t}}const fr={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 pr(e,t,n){let i,r=-1;for(let s=0;s<e.length;s++){const a=e.charCodeAt(s);if(a>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||a===45||a===46||a===95||a===126||t&&a===47||n&&a===91||n&&a===93||n&&a===58)r!==-1&&(i+=encodeURIComponent(e.substring(r,s)),r=-1),i!==void 0&&(i+=e.charAt(s));else{i===void 0&&(i=e.substr(0,s));const l=fr[a];l!==void 0?(r!==-1&&(i+=encodeURIComponent(e.substring(r,s)),r=-1),i+=l):r===-1&&(r=s)}}return r!==-1&&(i+=encodeURIComponent(e.substring(r))),i!==void 0?i:e}function Fl(e){let t;for(let n=0;n<e.length;n++){const i=e.charCodeAt(n);i===35||i===63?(t===void 0&&(t=e.substr(0,n)),t+=fr[i]):t!==void 0&&(t+=e[n])}return t!==void 0?t:e}function ii(e,t){let n;return e.authority&&e.path.length>1&&e.scheme==="file"?n=`//${e.authority}${e.path}`:e.path.charCodeAt(0)===47&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&e.path.charCodeAt(2)===58?t?n=e.path.substr(1):n=e.path[1].toLowerCase()+e.path.substr(2):n=e.path,Ct&&(n=n.replace(/\//g,"\\")),n}function ri(e,t){const n=t?Fl:pr;let i="",{scheme:r,authority:s,path:a,query:l,fragment:o}=e;if(r&&(i+=r,i+=":"),(s||r==="file")&&(i+=Se,i+=Se),s){let u=s.indexOf("@");if(u!==-1){const c=s.substr(0,u);s=s.substr(u+1),u=c.lastIndexOf(":"),u===-1?i+=n(c,!1,!1):(i+=n(c.substr(0,u),!1,!1),i+=":",i+=n(c.substr(u+1),!1,!0)),i+="@"}s=s.toLowerCase(),u=s.lastIndexOf(":"),u===-1?i+=n(s,!1,!0):(i+=n(s.substr(0,u),!1,!0),i+=s.substr(u))}if(a){if(a.length>=3&&a.charCodeAt(0)===47&&a.charCodeAt(2)===58){const u=a.charCodeAt(1);u>=65&&u<=90&&(a=`/${String.fromCharCode(u+32)}:${a.substr(3)}`)}else if(a.length>=2&&a.charCodeAt(1)===58){const u=a.charCodeAt(0);u>=65&&u<=90&&(a=`${String.fromCharCode(u+32)}:${a.substr(2)}`)}i+=n(a,!0,!1)}return l&&(i+="?",i+=n(l,!1,!1)),o&&(i+="#",i+=t?o:pr(o,!1,!1)),i}function gr(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+gr(e.substr(3)):e}}const br=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function an(e){return e.match(br)?e.replace(br,t=>gr(t)):e}class ge extends j{constructor(t,n,i,r){super(t,n,i,r),this.selectionStartLineNumber=t,this.selectionStartColumn=n,this.positionLineNumber=i,this.positionColumn=r}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(t){return ge.selectionsEqual(this,t)}static selectionsEqual(t,n){return t.selectionStartLineNumber===n.selectionStartLineNumber&&t.selectionStartColumn===n.selectionStartColumn&&t.positionLineNumber===n.positionLineNumber&&t.positionColumn===n.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(t,n){return this.getDirection()===0?new ge(this.startLineNumber,this.startColumn,t,n):new ge(t,n,this.startLineNumber,this.startColumn)}getPosition(){return new K(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new K(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(t,n){return this.getDirection()===0?new ge(t,n,this.endLineNumber,this.endColumn):new ge(this.endLineNumber,this.endColumn,t,n)}static fromPositions(t,n=t){return new ge(t.lineNumber,t.column,n.lineNumber,n.column)}static fromRange(t,n){return n===0?new ge(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):new ge(t.endLineNumber,t.endColumn,t.startLineNumber,t.startColumn)}static liftSelection(t){return new ge(t.selectionStartLineNumber,t.selectionStartColumn,t.positionLineNumber,t.positionColumn)}static selectionsArrEqual(t,n){if(t&&!n||!t&&n)return!1;if(!t&&!n)return!0;if(t.length!==n.length)return!1;for(let i=0,r=t.length;i<r;i++)if(!this.selectionsEqual(t[i],n[i]))return!1;return!0}static isISelection(t){return!!t&&typeof t.selectionStartLineNumber=="number"&&typeof t.selectionStartColumn=="number"&&typeof t.positionLineNumber=="number"&&typeof t.positionColumn=="number"}static createWithDirection(t,n,i,r,s){return s===0?new ge(t,n,i,r):new ge(i,r,t,n)}}const wr=Object.create(null);function h(e,t){if(ko(t)){const n=wr[t];if(n===void 0)throw new Error(`${e} references an unknown codicon: ${t}`);t=n}return wr[e]=t,{id:e}}const Pl={add:h("add",6e4),plus:h("plus",6e4),gistNew:h("gist-new",6e4),repoCreate:h("repo-create",6e4),lightbulb:h("lightbulb",60001),lightBulb:h("light-bulb",60001),repo:h("repo",60002),repoDelete:h("repo-delete",60002),gistFork:h("gist-fork",60003),repoForked:h("repo-forked",60003),gitPullRequest:h("git-pull-request",60004),gitPullRequestAbandoned:h("git-pull-request-abandoned",60004),recordKeys:h("record-keys",60005),keyboard:h("keyboard",60005),tag:h("tag",60006),gitPullRequestLabel:h("git-pull-request-label",60006),tagAdd:h("tag-add",60006),tagRemove:h("tag-remove",60006),person:h("person",60007),personFollow:h("person-follow",60007),personOutline:h("person-outline",60007),personFilled:h("person-filled",60007),sourceControl:h("source-control",60008),mirror:h("mirror",60009),mirrorPublic:h("mirror-public",60009),star:h("star",60010),starAdd:h("star-add",60010),starDelete:h("star-delete",60010),starEmpty:h("star-empty",60010),comment:h("comment",60011),commentAdd:h("comment-add",60011),alert:h("alert",60012),warning:h("warning",60012),search:h("search",60013),searchSave:h("search-save",60013),logOut:h("log-out",60014),signOut:h("sign-out",60014),logIn:h("log-in",60015),signIn:h("sign-in",60015),eye:h("eye",60016),eyeUnwatch:h("eye-unwatch",60016),eyeWatch:h("eye-watch",60016),circleFilled:h("circle-filled",60017),primitiveDot:h("primitive-dot",60017),closeDirty:h("close-dirty",60017),debugBreakpoint:h("debug-breakpoint",60017),debugBreakpointDisabled:h("debug-breakpoint-disabled",60017),debugHint:h("debug-hint",60017),terminalDecorationSuccess:h("terminal-decoration-success",60017),primitiveSquare:h("primitive-square",60018),edit:h("edit",60019),pencil:h("pencil",60019),info:h("info",60020),issueOpened:h("issue-opened",60020),gistPrivate:h("gist-private",60021),gitForkPrivate:h("git-fork-private",60021),lock:h("lock",60021),mirrorPrivate:h("mirror-private",60021),close:h("close",60022),removeClose:h("remove-close",60022),x:h("x",60022),repoSync:h("repo-sync",60023),sync:h("sync",60023),clone:h("clone",60024),desktopDownload:h("desktop-download",60024),beaker:h("beaker",60025),microscope:h("microscope",60025),vm:h("vm",60026),deviceDesktop:h("device-desktop",60026),file:h("file",60027),more:h("more",60028),ellipsis:h("ellipsis",60028),kebabHorizontal:h("kebab-horizontal",60028),mailReply:h("mail-reply",60029),reply:h("reply",60029),organization:h("organization",60030),organizationFilled:h("organization-filled",60030),organizationOutline:h("organization-outline",60030),newFile:h("new-file",60031),fileAdd:h("file-add",60031),newFolder:h("new-folder",60032),fileDirectoryCreate:h("file-directory-create",60032),trash:h("trash",60033),trashcan:h("trashcan",60033),history:h("history",60034),clock:h("clock",60034),folder:h("folder",60035),fileDirectory:h("file-directory",60035),symbolFolder:h("symbol-folder",60035),logoGithub:h("logo-github",60036),markGithub:h("mark-github",60036),github:h("github",60036),terminal:h("terminal",60037),console:h("console",60037),repl:h("repl",60037),zap:h("zap",60038),symbolEvent:h("symbol-event",60038),error:h("error",60039),stop:h("stop",60039),variable:h("variable",60040),symbolVariable:h("symbol-variable",60040),array:h("array",60042),symbolArray:h("symbol-array",60042),symbolModule:h("symbol-module",60043),symbolPackage:h("symbol-package",60043),symbolNamespace:h("symbol-namespace",60043),symbolObject:h("symbol-object",60043),symbolMethod:h("symbol-method",60044),symbolFunction:h("symbol-function",60044),symbolConstructor:h("symbol-constructor",60044),symbolBoolean:h("symbol-boolean",60047),symbolNull:h("symbol-null",60047),symbolNumeric:h("symbol-numeric",60048),symbolNumber:h("symbol-number",60048),symbolStructure:h("symbol-structure",60049),symbolStruct:h("symbol-struct",60049),symbolParameter:h("symbol-parameter",60050),symbolTypeParameter:h("symbol-type-parameter",60050),symbolKey:h("symbol-key",60051),symbolText:h("symbol-text",60051),symbolReference:h("symbol-reference",60052),goToFile:h("go-to-file",60052),symbolEnum:h("symbol-enum",60053),symbolValue:h("symbol-value",60053),symbolRuler:h("symbol-ruler",60054),symbolUnit:h("symbol-unit",60054),activateBreakpoints:h("activate-breakpoints",60055),archive:h("archive",60056),arrowBoth:h("arrow-both",60057),arrowDown:h("arrow-down",60058),arrowLeft:h("arrow-left",60059),arrowRight:h("arrow-right",60060),arrowSmallDown:h("arrow-small-down",60061),arrowSmallLeft:h("arrow-small-left",60062),arrowSmallRight:h("arrow-small-right",60063),arrowSmallUp:h("arrow-small-up",60064),arrowUp:h("arrow-up",60065),bell:h("bell",60066),bold:h("bold",60067),book:h("book",60068),bookmark:h("bookmark",60069),debugBreakpointConditionalUnverified:h("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:h("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:h("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:h("debug-breakpoint-data-unverified",60072),debugBreakpointData:h("debug-breakpoint-data",60073),debugBreakpointDataDisabled:h("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:h("debug-breakpoint-log-unverified",60074),debugBreakpointLog:h("debug-breakpoint-log",60075),debugBreakpointLogDisabled:h("debug-breakpoint-log-disabled",60075),briefcase:h("briefcase",60076),broadcast:h("broadcast",60077),browser:h("browser",60078),bug:h("bug",60079),calendar:h("calendar",60080),caseSensitive:h("case-sensitive",60081),check:h("check",60082),checklist:h("checklist",60083),chevronDown:h("chevron-down",60084),chevronLeft:h("chevron-left",60085),chevronRight:h("chevron-right",60086),chevronUp:h("chevron-up",60087),chromeClose:h("chrome-close",60088),chromeMaximize:h("chrome-maximize",60089),chromeMinimize:h("chrome-minimize",60090),chromeRestore:h("chrome-restore",60091),circleOutline:h("circle-outline",60092),circle:h("circle",60092),debugBreakpointUnverified:h("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:h("terminal-decoration-incomplete",60092),circleSlash:h("circle-slash",60093),circuitBoard:h("circuit-board",60094),clearAll:h("clear-all",60095),clippy:h("clippy",60096),closeAll:h("close-all",60097),cloudDownload:h("cloud-download",60098),cloudUpload:h("cloud-upload",60099),code:h("code",60100),collapseAll:h("collapse-all",60101),colorMode:h("color-mode",60102),commentDiscussion:h("comment-discussion",60103),creditCard:h("credit-card",60105),dash:h("dash",60108),dashboard:h("dashboard",60109),database:h("database",60110),debugContinue:h("debug-continue",60111),debugDisconnect:h("debug-disconnect",60112),debugPause:h("debug-pause",60113),debugRestart:h("debug-restart",60114),debugStart:h("debug-start",60115),debugStepInto:h("debug-step-into",60116),debugStepOut:h("debug-step-out",60117),debugStepOver:h("debug-step-over",60118),debugStop:h("debug-stop",60119),debug:h("debug",60120),deviceCameraVideo:h("device-camera-video",60121),deviceCamera:h("device-camera",60122),deviceMobile:h("device-mobile",60123),diffAdded:h("diff-added",60124),diffIgnored:h("diff-ignored",60125),diffModified:h("diff-modified",60126),diffRemoved:h("diff-removed",60127),diffRenamed:h("diff-renamed",60128),diff:h("diff",60129),diffSidebyside:h("diff-sidebyside",60129),discard:h("discard",60130),editorLayout:h("editor-layout",60131),emptyWindow:h("empty-window",60132),exclude:h("exclude",60133),extensions:h("extensions",60134),eyeClosed:h("eye-closed",60135),fileBinary:h("file-binary",60136),fileCode:h("file-code",60137),fileMedia:h("file-media",60138),filePdf:h("file-pdf",60139),fileSubmodule:h("file-submodule",60140),fileSymlinkDirectory:h("file-symlink-directory",60141),fileSymlinkFile:h("file-symlink-file",60142),fileZip:h("file-zip",60143),files:h("files",60144),filter:h("filter",60145),flame:h("flame",60146),foldDown:h("fold-down",60147),foldUp:h("fold-up",60148),fold:h("fold",60149),folderActive:h("folder-active",60150),folderOpened:h("folder-opened",60151),gear:h("gear",60152),gift:h("gift",60153),gistSecret:h("gist-secret",60154),gist:h("gist",60155),gitCommit:h("git-commit",60156),gitCompare:h("git-compare",60157),compareChanges:h("compare-changes",60157),gitMerge:h("git-merge",60158),githubAction:h("github-action",60159),githubAlt:h("github-alt",60160),globe:h("globe",60161),grabber:h("grabber",60162),graph:h("graph",60163),gripper:h("gripper",60164),heart:h("heart",60165),home:h("home",60166),horizontalRule:h("horizontal-rule",60167),hubot:h("hubot",60168),inbox:h("inbox",60169),issueReopened:h("issue-reopened",60171),issues:h("issues",60172),italic:h("italic",60173),jersey:h("jersey",60174),json:h("json",60175),kebabVertical:h("kebab-vertical",60176),key:h("key",60177),law:h("law",60178),lightbulbAutofix:h("lightbulb-autofix",60179),linkExternal:h("link-external",60180),link:h("link",60181),listOrdered:h("list-ordered",60182),listUnordered:h("list-unordered",60183),liveShare:h("live-share",60184),loading:h("loading",60185),location:h("location",60186),mailRead:h("mail-read",60187),mail:h("mail",60188),markdown:h("markdown",60189),megaphone:h("megaphone",60190),mention:h("mention",60191),milestone:h("milestone",60192),gitPullRequestMilestone:h("git-pull-request-milestone",60192),mortarBoard:h("mortar-board",60193),move:h("move",60194),multipleWindows:h("multiple-windows",60195),mute:h("mute",60196),noNewline:h("no-newline",60197),note:h("note",60198),octoface:h("octoface",60199),openPreview:h("open-preview",60200),package:h("package",60201),paintcan:h("paintcan",60202),pin:h("pin",60203),play:h("play",60204),run:h("run",60204),plug:h("plug",60205),preserveCase:h("preserve-case",60206),preview:h("preview",60207),project:h("project",60208),pulse:h("pulse",60209),question:h("question",60210),quote:h("quote",60211),radioTower:h("radio-tower",60212),reactions:h("reactions",60213),references:h("references",60214),refresh:h("refresh",60215),regex:h("regex",60216),remoteExplorer:h("remote-explorer",60217),remote:h("remote",60218),remove:h("remove",60219),replaceAll:h("replace-all",60220),replace:h("replace",60221),repoClone:h("repo-clone",60222),repoForcePush:h("repo-force-push",60223),repoPull:h("repo-pull",60224),repoPush:h("repo-push",60225),report:h("report",60226),requestChanges:h("request-changes",60227),rocket:h("rocket",60228),rootFolderOpened:h("root-folder-opened",60229),rootFolder:h("root-folder",60230),rss:h("rss",60231),ruby:h("ruby",60232),saveAll:h("save-all",60233),saveAs:h("save-as",60234),save:h("save",60235),screenFull:h("screen-full",60236),screenNormal:h("screen-normal",60237),searchStop:h("search-stop",60238),server:h("server",60240),settingsGear:h("settings-gear",60241),settings:h("settings",60242),shield:h("shield",60243),smiley:h("smiley",60244),sortPrecedence:h("sort-precedence",60245),splitHorizontal:h("split-horizontal",60246),splitVertical:h("split-vertical",60247),squirrel:h("squirrel",60248),starFull:h("star-full",60249),starHalf:h("star-half",60250),symbolClass:h("symbol-class",60251),symbolColor:h("symbol-color",60252),symbolConstant:h("symbol-constant",60253),symbolEnumMember:h("symbol-enum-member",60254),symbolField:h("symbol-field",60255),symbolFile:h("symbol-file",60256),symbolInterface:h("symbol-interface",60257),symbolKeyword:h("symbol-keyword",60258),symbolMisc:h("symbol-misc",60259),symbolOperator:h("symbol-operator",60260),symbolProperty:h("symbol-property",60261),wrench:h("wrench",60261),wrenchSubaction:h("wrench-subaction",60261),symbolSnippet:h("symbol-snippet",60262),tasklist:h("tasklist",60263),telescope:h("telescope",60264),textSize:h("text-size",60265),threeBars:h("three-bars",60266),thumbsdown:h("thumbsdown",60267),thumbsup:h("thumbsup",60268),tools:h("tools",60269),triangleDown:h("triangle-down",60270),triangleLeft:h("triangle-left",60271),triangleRight:h("triangle-right",60272),triangleUp:h("triangle-up",60273),twitter:h("twitter",60274),unfold:h("unfold",60275),unlock:h("unlock",60276),unmute:h("unmute",60277),unverified:h("unverified",60278),verified:h("verified",60279),versions:h("versions",60280),vmActive:h("vm-active",60281),vmOutline:h("vm-outline",60282),vmRunning:h("vm-running",60283),watch:h("watch",60284),whitespace:h("whitespace",60285),wholeWord:h("whole-word",60286),window:h("window",60287),wordWrap:h("word-wrap",60288),zoomIn:h("zoom-in",60289),zoomOut:h("zoom-out",60290),listFilter:h("list-filter",60291),listFlat:h("list-flat",60292),listSelection:h("list-selection",60293),selection:h("selection",60293),listTree:h("list-tree",60294),debugBreakpointFunctionUnverified:h("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:h("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:h("debug-breakpoint-function-disabled",60296),debugStackframeActive:h("debug-stackframe-active",60297),circleSmallFilled:h("circle-small-filled",60298),debugStackframeDot:h("debug-stackframe-dot",60298),terminalDecorationMark:h("terminal-decoration-mark",60298),debugStackframe:h("debug-stackframe",60299),debugStackframeFocused:h("debug-stackframe-focused",60299),debugBreakpointUnsupported:h("debug-breakpoint-unsupported",60300),symbolString:h("symbol-string",60301),debugReverseContinue:h("debug-reverse-continue",60302),debugStepBack:h("debug-step-back",60303),debugRestartFrame:h("debug-restart-frame",60304),debugAlt:h("debug-alt",60305),callIncoming:h("call-incoming",60306),callOutgoing:h("call-outgoing",60307),menu:h("menu",60308),expandAll:h("expand-all",60309),feedback:h("feedback",60310),gitPullRequestReviewer:h("git-pull-request-reviewer",60310),groupByRefType:h("group-by-ref-type",60311),ungroupByRefType:h("ungroup-by-ref-type",60312),account:h("account",60313),gitPullRequestAssignee:h("git-pull-request-assignee",60313),bellDot:h("bell-dot",60314),debugConsole:h("debug-console",60315),library:h("library",60316),output:h("output",60317),runAll:h("run-all",60318),syncIgnored:h("sync-ignored",60319),pinned:h("pinned",60320),githubInverted:h("github-inverted",60321),serverProcess:h("server-process",60322),serverEnvironment:h("server-environment",60323),pass:h("pass",60324),issueClosed:h("issue-closed",60324),stopCircle:h("stop-circle",60325),playCircle:h("play-circle",60326),record:h("record",60327),debugAltSmall:h("debug-alt-small",60328),vmConnect:h("vm-connect",60329),cloud:h("cloud",60330),merge:h("merge",60331),export:h("export",60332),graphLeft:h("graph-left",60333),magnet:h("magnet",60334),notebook:h("notebook",60335),redo:h("redo",60336),checkAll:h("check-all",60337),pinnedDirty:h("pinned-dirty",60338),passFilled:h("pass-filled",60339),circleLargeFilled:h("circle-large-filled",60340),circleLarge:h("circle-large",60341),circleLargeOutline:h("circle-large-outline",60341),combine:h("combine",60342),gather:h("gather",60342),table:h("table",60343),variableGroup:h("variable-group",60344),typeHierarchy:h("type-hierarchy",60345),typeHierarchySub:h("type-hierarchy-sub",60346),typeHierarchySuper:h("type-hierarchy-super",60347),gitPullRequestCreate:h("git-pull-request-create",60348),runAbove:h("run-above",60349),runBelow:h("run-below",60350),notebookTemplate:h("notebook-template",60351),debugRerun:h("debug-rerun",60352),workspaceTrusted:h("workspace-trusted",60353),workspaceUntrusted:h("workspace-untrusted",60354),workspaceUnknown:h("workspace-unknown",60355),terminalCmd:h("terminal-cmd",60356),terminalDebian:h("terminal-debian",60357),terminalLinux:h("terminal-linux",60358),terminalPowershell:h("terminal-powershell",60359),terminalTmux:h("terminal-tmux",60360),terminalUbuntu:h("terminal-ubuntu",60361),terminalBash:h("terminal-bash",60362),arrowSwap:h("arrow-swap",60363),copy:h("copy",60364),personAdd:h("person-add",60365),filterFilled:h("filter-filled",60366),wand:h("wand",60367),debugLineByLine:h("debug-line-by-line",60368),inspect:h("inspect",60369),layers:h("layers",60370),layersDot:h("layers-dot",60371),layersActive:h("layers-active",60372),compass:h("compass",60373),compassDot:h("compass-dot",60374),compassActive:h("compass-active",60375),azure:h("azure",60376),issueDraft:h("issue-draft",60377),gitPullRequestClosed:h("git-pull-request-closed",60378),gitPullRequestDraft:h("git-pull-request-draft",60379),debugAll:h("debug-all",60380),debugCoverage:h("debug-coverage",60381),runErrors:h("run-errors",60382),folderLibrary:h("folder-library",60383),debugContinueSmall:h("debug-continue-small",60384),beakerStop:h("beaker-stop",60385),graphLine:h("graph-line",60386),graphScatter:h("graph-scatter",60387),pieChart:h("pie-chart",60388),bracket:h("bracket",60175),bracketDot:h("bracket-dot",60389),bracketError:h("bracket-error",60390),lockSmall:h("lock-small",60391),azureDevops:h("azure-devops",60392),verifiedFilled:h("verified-filled",60393),newline:h("newline",60394),layout:h("layout",60395),layoutActivitybarLeft:h("layout-activitybar-left",60396),layoutActivitybarRight:h("layout-activitybar-right",60397),layoutPanelLeft:h("layout-panel-left",60398),layoutPanelCenter:h("layout-panel-center",60399),layoutPanelJustify:h("layout-panel-justify",60400),layoutPanelRight:h("layout-panel-right",60401),layoutPanel:h("layout-panel",60402),layoutSidebarLeft:h("layout-sidebar-left",60403),layoutSidebarRight:h("layout-sidebar-right",60404),layoutStatusbar:h("layout-statusbar",60405),layoutMenubar:h("layout-menubar",60406),layoutCentered:h("layout-centered",60407),target:h("target",60408),indent:h("indent",60409),recordSmall:h("record-small",60410),errorSmall:h("error-small",60411),terminalDecorationError:h("terminal-decoration-error",60411),arrowCircleDown:h("arrow-circle-down",60412),arrowCircleLeft:h("arrow-circle-left",60413),arrowCircleRight:h("arrow-circle-right",60414),arrowCircleUp:h("arrow-circle-up",60415),layoutSidebarRightOff:h("layout-sidebar-right-off",60416),layoutPanelOff:h("layout-panel-off",60417),layoutSidebarLeftOff:h("layout-sidebar-left-off",60418),blank:h("blank",60419),heartFilled:h("heart-filled",60420),map:h("map",60421),mapHorizontal:h("map-horizontal",60421),foldHorizontal:h("fold-horizontal",60421),mapFilled:h("map-filled",60422),mapHorizontalFilled:h("map-horizontal-filled",60422),foldHorizontalFilled:h("fold-horizontal-filled",60422),circleSmall:h("circle-small",60423),bellSlash:h("bell-slash",60424),bellSlashDot:h("bell-slash-dot",60425),commentUnresolved:h("comment-unresolved",60426),gitPullRequestGoToChanges:h("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:h("git-pull-request-new-changes",60428),searchFuzzy:h("search-fuzzy",60429),commentDraft:h("comment-draft",60430),send:h("send",60431),sparkle:h("sparkle",60432),insert:h("insert",60433),mic:h("mic",60434),thumbsdownFilled:h("thumbsdown-filled",60435),thumbsupFilled:h("thumbsup-filled",60436),coffee:h("coffee",60437),snake:h("snake",60438),game:h("game",60439),vr:h("vr",60440),chip:h("chip",60441),piano:h("piano",60442),music:h("music",60443),micFilled:h("mic-filled",60444),repoFetch:h("repo-fetch",60445),copilot:h("copilot",60446),lightbulbSparkle:h("lightbulb-sparkle",60447),robot:h("robot",60448),sparkleFilled:h("sparkle-filled",60449),diffSingle:h("diff-single",60450),diffMultiple:h("diff-multiple",60451),surroundWith:h("surround-with",60452),share:h("share",60453),gitStash:h("git-stash",60454),gitStashApply:h("git-stash-apply",60455),gitStashPop:h("git-stash-pop",60456),vscode:h("vscode",60457),vscodeInsiders:h("vscode-insiders",60458),codeOss:h("code-oss",60459),runCoverage:h("run-coverage",60460),runAllCoverage:h("run-all-coverage",60461),coverage:h("coverage",60462),githubProject:h("github-project",60463),mapVertical:h("map-vertical",60464),foldVertical:h("fold-vertical",60464),mapVerticalFilled:h("map-vertical-filled",60465),foldVerticalFilled:h("fold-vertical-filled",60465),goToSearch:h("go-to-search",60466),percentage:h("percentage",60467),sortPercentage:h("sort-percentage",60467),attach:h("attach",60468),goToEditingSession:h("go-to-editing-session",60469),editSession:h("edit-session",60470),codeReview:h("code-review",60471),copilotWarning:h("copilot-warning",60472),python:h("python",60473),copilotLarge:h("copilot-large",60474),copilotWarningLarge:h("copilot-warning-large",60475),keyboardTab:h("keyboard-tab",60476),copilotBlocked:h("copilot-blocked",60477),copilotNotConnected:h("copilot-not-connected",60478),flag:h("flag",60479),lightbulbEmpty:h("lightbulb-empty",60480),symbolMethodArrow:h("symbol-method-arrow",60481),copilotUnavailable:h("copilot-unavailable",60482),repoPinned:h("repo-pinned",60483),keyboardTabAbove:h("keyboard-tab-above",60484),keyboardTabBelow:h("keyboard-tab-below",60485),gitPullRequestDone:h("git-pull-request-done",60486),mcp:h("mcp",60487),extensionsLarge:h("extensions-large",60488),layoutPanelDock:h("layout-panel-dock",60489),layoutSidebarLeftDock:h("layout-sidebar-left-dock",60490),layoutSidebarRightDock:h("layout-sidebar-right-dock",60491),copilotInProgress:h("copilot-in-progress",60492),copilotError:h("copilot-error",60493),copilotSuccess:h("copilot-success",60494),chatSparkle:h("chat-sparkle",60495),searchSparkle:h("search-sparkle",60496),editSparkle:h("edit-sparkle",60497),copilotSnooze:h("copilot-snooze",60498),sendToRemoteAgent:h("send-to-remote-agent",60499),commentDiscussionSparkle:h("comment-discussion-sparkle",60500),chatSparkleWarning:h("chat-sparkle-warning",60501),chatSparkleError:h("chat-sparkle-error",60502),collection:h("collection",60503),newCollection:h("new-collection",60504),thinking:h("thinking",60505),build:h("build",60506),commentDiscussionQuote:h("comment-discussion-quote",60507),cursor:h("cursor",60508),eraser:h("eraser",60509),fileText:h("file-text",60510),gitLens:h("git-lens",60511),quotes:h("quotes",60512),rename:h("rename",60513),runWithDeps:h("run-with-deps",60514),debugConnected:h("debug-connected",60515),strikethrough:h("strikethrough",60516),openInProduct:h("open-in-product",60517),indexZero:h("index-zero",60518),agent:h("agent",60519),editCode:h("edit-code",60520),repoSelected:h("repo-selected",60521),skip:h("skip",60522),mergeInto:h("merge-into",60523),gitBranchChanges:h("git-branch-changes",60524),gitBranchStagedChanges:h("git-branch-staged-changes",60525),gitBranchConflicts:h("git-branch-conflicts",60526),gitBranch:h("git-branch",60527),gitBranchCreate:h("git-branch-create",60527),gitBranchDelete:h("git-branch-delete",60527),searchLarge:h("search-large",60528),terminalGitBash:h("terminal-git-bash",60529)},Bl={dialogError:h("dialog-error","error"),dialogWarning:h("dialog-warning","warning"),dialogInfo:h("dialog-info","info"),dialogClose:h("dialog-close","close"),treeItemExpanded:h("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:h("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:h("tree-filter-on-type-off","list-selection"),treeFilterClear:h("tree-filter-clear","close"),treeItemLoading:h("tree-item-loading","loading"),menuSelection:h("menu-selection","check"),menuSubmenu:h("menu-submenu","chevron-right"),menuBarMore:h("menubar-more","more"),scrollbarButtonLeft:h("scrollbar-button-left","triangle-left"),scrollbarButtonRight:h("scrollbar-button-right","triangle-right"),scrollbarButtonUp:h("scrollbar-button-up","triangle-up"),scrollbarButtonDown:h("scrollbar-button-down","triangle-down"),toolBarMore:h("toolbar-more","more"),quickInputBack:h("quick-input-back","arrow-left"),dropDownButton:h("drop-down-button",60084),symbolCustomColor:h("symbol-customcolor",60252),exportIcon:h("export",60332),workspaceUnspecified:h("workspace-unspecified",60355),newLine:h("newline",60394),thumbsDownFilled:h("thumbsdown-filled",60435),thumbsUpFilled:h("thumbsup-filled",60436),gitFetch:h("git-fetch",60445),lightbulbSparkleAutofix:h("lightbulb-sparkle-autofix",60447),debugBreakpointPending:h("debug-breakpoint-pending",60377)},B={...Pl,...Bl};class ql{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new De,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(t){this._onDidChange.fire({changedLanguages:t,changedColorMap:!1})}register(t,n){return this._tokenizationSupports.set(t,n),this.handleChange([t]),Jt(()=>{this._tokenizationSupports.get(t)===n&&(this._tokenizationSupports.delete(t),this.handleChange([t]))})}get(t){return this._tokenizationSupports.get(t)||null}registerFactory(t,n){var r;(r=this._factories.get(t))==null||r.dispose();const i=new Ol(this,t,n);return this._factories.set(t,i),Jt(()=>{const s=this._factories.get(t);!s||s!==i||(this._factories.delete(t),s.dispose())})}async getOrCreate(t){const n=this.get(t);if(n)return n;const i=this._factories.get(t);return!i||i.isResolved?null:(await i.resolve(),this.get(t))}isResolved(t){if(this.get(t))return!0;const i=this._factories.get(t);return!!(!i||i.isResolved)}setColorMap(t){this._colorMap=t,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 Ol extends Ze{get isResolved(){return this._isResolved}constructor(t,n,i){super(),this._registry=t,this._languageId=n,this._factory=i,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}async resolve(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}async _create(){const t=await this._factory.tokenizationSupport;this._isResolved=!0,t&&!this._isDisposed&&this._register(this._registry.register(this._languageId,t))}}class Vl{constructor(t,n,i){this.offset=t,this.type=n,this.language=i,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}var _r;(function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"})(_r||(_r={}));var vr;(function(e){const t=new Map;t.set(0,B.symbolMethod),t.set(1,B.symbolFunction),t.set(2,B.symbolConstructor),t.set(3,B.symbolField),t.set(4,B.symbolVariable),t.set(5,B.symbolClass),t.set(6,B.symbolStruct),t.set(7,B.symbolInterface),t.set(8,B.symbolModule),t.set(9,B.symbolProperty),t.set(10,B.symbolEvent),t.set(11,B.symbolOperator),t.set(12,B.symbolUnit),t.set(13,B.symbolValue),t.set(15,B.symbolEnum),t.set(14,B.symbolConstant),t.set(15,B.symbolEnum),t.set(16,B.symbolEnumMember),t.set(17,B.symbolKeyword),t.set(28,B.symbolSnippet),t.set(18,B.symbolText),t.set(19,B.symbolColor),t.set(20,B.symbolFile),t.set(21,B.symbolReference),t.set(22,B.symbolCustomColor),t.set(23,B.symbolFolder),t.set(24,B.symbolTypeParameter),t.set(25,B.account),t.set(26,B.issues),t.set(27,B.tools);function n(a){let l=t.get(a);return l||(console.info("No codicon found for CompletionItemKind "+a),l=B.symbolProperty),l}e.toIcon=n;function i(a){switch(a){case 0:return q(728,"Method");case 1:return q(729,"Function");case 2:return q(730,"Constructor");case 3:return q(731,"Field");case 4:return q(732,"Variable");case 5:return q(733,"Class");case 6:return q(734,"Struct");case 7:return q(735,"Interface");case 8:return q(736,"Module");case 9:return q(737,"Property");case 10:return q(738,"Event");case 11:return q(739,"Operator");case 12:return q(740,"Unit");case 13:return q(741,"Value");case 14:return q(742,"Constant");case 15:return q(743,"Enum");case 16:return q(744,"Enum Member");case 17:return q(745,"Keyword");case 18:return q(746,"Text");case 19:return q(747,"Color");case 20:return q(748,"File");case 21:return q(749,"Reference");case 22:return q(750,"Custom Color");case 23:return q(751,"Folder");case 24:return q(752,"Type Parameter");case 25:return q(753,"User");case 26:return q(754,"Issue");case 27:return q(755,"Tool");case 28:return q(756,"Snippet");default:return""}}e.toLabel=i;const r=new Map;r.set("method",0),r.set("function",1),r.set("constructor",2),r.set("field",3),r.set("variable",4),r.set("class",5),r.set("struct",6),r.set("interface",7),r.set("module",8),r.set("property",9),r.set("event",10),r.set("operator",11),r.set("unit",12),r.set("value",13),r.set("constant",14),r.set("enum",15),r.set("enum-member",16),r.set("enumMember",16),r.set("keyword",17),r.set("snippet",28),r.set("text",18),r.set("color",19),r.set("file",20),r.set("reference",21),r.set("customcolor",22),r.set("folder",23),r.set("type-parameter",24),r.set("typeParameter",24),r.set("account",25),r.set("issue",26),r.set("tool",27);function s(a,l){let o=r.get(a);return typeof o>"u"&&!l&&(o=9),o}e.fromString=s})(vr||(vr={}));var yr;(function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"})(yr||(yr={}));var Tr;(function(e){e[e.Code=1]="Code",e[e.Label=2]="Label"})(Tr||(Tr={}));var xr;(function(e){e[e.Accepted=0]="Accepted",e[e.Rejected=1]="Rejected",e[e.Ignored=2]="Ignored"})(xr||(xr={}));var kr;(function(e){e[e.Automatic=0]="Automatic",e[e.PasteAs=1]="PasteAs"})(kr||(kr={}));var Sr;(function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"})(Sr||(Sr={}));var Ar;(function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"})(Ar||(Ar={})),q(757,"array"),q(758,"boolean"),q(759,"class"),q(760,"constant"),q(761,"constructor"),q(762,"enumeration"),q(763,"enumeration member"),q(764,"event"),q(765,"field"),q(766,"file"),q(767,"function"),q(768,"interface"),q(769,"key"),q(770,"method"),q(771,"module"),q(772,"namespace"),q(773,"null"),q(774,"number"),q(775,"object"),q(776,"operator"),q(777,"package"),q(778,"property"),q(779,"string"),q(780,"struct"),q(781,"type parameter"),q(782,"variable");var Lr;(function(e){const t=new Map;t.set(0,B.symbolFile),t.set(1,B.symbolModule),t.set(2,B.symbolNamespace),t.set(3,B.symbolPackage),t.set(4,B.symbolClass),t.set(5,B.symbolMethod),t.set(6,B.symbolProperty),t.set(7,B.symbolField),t.set(8,B.symbolConstructor),t.set(9,B.symbolEnum),t.set(10,B.symbolInterface),t.set(11,B.symbolFunction),t.set(12,B.symbolVariable),t.set(13,B.symbolConstant),t.set(14,B.symbolString),t.set(15,B.symbolNumber),t.set(16,B.symbolBoolean),t.set(17,B.symbolArray),t.set(18,B.symbolObject),t.set(19,B.symbolKey),t.set(20,B.symbolNull),t.set(21,B.symbolEnumMember),t.set(22,B.symbolStruct),t.set(23,B.symbolEvent),t.set(24,B.symbolOperator),t.set(25,B.symbolTypeParameter);function n(s){let a=t.get(s);return a||(console.info("No codicon found for SymbolKind "+s),a=B.symbolProperty),a}e.toIcon=n;const i=new Map;i.set(0,20),i.set(1,8),i.set(2,8),i.set(3,8),i.set(4,5),i.set(5,0),i.set(6,9),i.set(7,3),i.set(8,2),i.set(9,15),i.set(10,7),i.set(11,1),i.set(12,4),i.set(13,14),i.set(14,18),i.set(15,13),i.set(16,13),i.set(17,13),i.set(18,13),i.set(19,17),i.set(20,13),i.set(21,16),i.set(22,6),i.set(23,10),i.set(24,11),i.set(25,24);function r(s){let a=i.get(s);return a===void 0&&(console.info("No completion kind found for SymbolKind "+s),a=20),a}e.toCompletionKind=r})(Lr||(Lr={}));let kh=(he=class{static fromValue(t){switch(t){case"comment":return he.Comment;case"imports":return he.Imports;case"region":return he.Region}return new he(t)}constructor(t){this.value=t}},he.Comment=new he("comment"),he.Imports=new he("imports"),he.Region=new he("region"),he);var Cr;(function(e){e[e.AIGenerated=1]="AIGenerated"})(Cr||(Cr={}));var Er;(function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"})(Er||(Er={}));var Dr;(function(e){function t(n){return!n||typeof n!="object"?!1:typeof n.id=="string"&&typeof n.title=="string"}e.is=t})(Dr||(Dr={}));var Rr;(function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"})(Rr||(Rr={})),new ql;var Mr;(function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"})(Mr||(Mr={}));var Nr;(function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"})(Nr||(Nr={}));var Ir;(function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"})(Ir||(Ir={}));var zr;(function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue",e[e.Tool=27]="Tool",e[e.Snippet=28]="Snippet"})(zr||(zr={}));var Hr;(function(e){e[e.Deprecated=1]="Deprecated"})(Hr||(Hr={}));var Ur;(function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(Ur||(Ur={}));var Wr;(function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"})(Wr||(Wr={}));var Fr;(function(e){e[e.NotSet=0]="NotSet",e[e.ContentFlush=1]="ContentFlush",e[e.RecoverFromMarkers=2]="RecoverFromMarkers",e[e.Explicit=3]="Explicit",e[e.Paste=4]="Paste",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo"})(Fr||(Fr={}));var Pr;(function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(Pr||(Pr={}));var Br;(function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"})(Br||(Br={}));var qr;(function(e){e[e.None=0]="None",e[e.Keep=1]="Keep",e[e.Brackets=2]="Brackets",e[e.Advanced=3]="Advanced",e[e.Full=4]="Full"})(qr||(qr={}));var Or;(function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.allowOverflow=4]="allowOverflow",e[e.allowVariableLineHeights=5]="allowVariableLineHeights",e[e.allowVariableFonts=6]="allowVariableFonts",e[e.allowVariableFontsInAccessibilityMode=7]="allowVariableFontsInAccessibilityMode",e[e.ariaLabel=8]="ariaLabel",e[e.ariaRequired=9]="ariaRequired",e[e.autoClosingBrackets=10]="autoClosingBrackets",e[e.autoClosingComments=11]="autoClosingComments",e[e.screenReaderAnnounceInlineSuggestion=12]="screenReaderAnnounceInlineSuggestion",e[e.autoClosingDelete=13]="autoClosingDelete",e[e.autoClosingOvertype=14]="autoClosingOvertype",e[e.autoClosingQuotes=15]="autoClosingQuotes",e[e.autoIndent=16]="autoIndent",e[e.autoIndentOnPaste=17]="autoIndentOnPaste",e[e.autoIndentOnPasteWithinString=18]="autoIndentOnPasteWithinString",e[e.automaticLayout=19]="automaticLayout",e[e.autoSurround=20]="autoSurround",e[e.bracketPairColorization=21]="bracketPairColorization",e[e.guides=22]="guides",e[e.codeLens=23]="codeLens",e[e.codeLensFontFamily=24]="codeLensFontFamily",e[e.codeLensFontSize=25]="codeLensFontSize",e[e.colorDecorators=26]="colorDecorators",e[e.colorDecoratorsLimit=27]="colorDecoratorsLimit",e[e.columnSelection=28]="columnSelection",e[e.comments=29]="comments",e[e.contextmenu=30]="contextmenu",e[e.copyWithSyntaxHighlighting=31]="copyWithSyntaxHighlighting",e[e.cursorBlinking=32]="cursorBlinking",e[e.cursorSmoothCaretAnimation=33]="cursorSmoothCaretAnimation",e[e.cursorStyle=34]="cursorStyle",e[e.cursorSurroundingLines=35]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=36]="cursorSurroundingLinesStyle",e[e.cursorWidth=37]="cursorWidth",e[e.cursorHeight=38]="cursorHeight",e[e.disableLayerHinting=39]="disableLayerHinting",e[e.disableMonospaceOptimizations=40]="disableMonospaceOptimizations",e[e.domReadOnly=41]="domReadOnly",e[e.dragAndDrop=42]="dragAndDrop",e[e.dropIntoEditor=43]="dropIntoEditor",e[e.editContext=44]="editContext",e[e.emptySelectionClipboard=45]="emptySelectionClipboard",e[e.experimentalGpuAcceleration=46]="experimentalGpuAcceleration",e[e.experimentalWhitespaceRendering=47]="experimentalWhitespaceRendering",e[e.extraEditorClassName=48]="extraEditorClassName",e[e.fastScrollSensitivity=49]="fastScrollSensitivity",e[e.find=50]="find",e[e.fixedOverflowWidgets=51]="fixedOverflowWidgets",e[e.folding=52]="folding",e[e.foldingStrategy=53]="foldingStrategy",e[e.foldingHighlight=54]="foldingHighlight",e[e.foldingImportsByDefault=55]="foldingImportsByDefault",e[e.foldingMaximumRegions=56]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=57]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=58]="fontFamily",e[e.fontInfo=59]="fontInfo",e[e.fontLigatures=60]="fontLigatures",e[e.fontSize=61]="fontSize",e[e.fontWeight=62]="fontWeight",e[e.fontVariations=63]="fontVariations",e[e.formatOnPaste=64]="formatOnPaste",e[e.formatOnType=65]="formatOnType",e[e.glyphMargin=66]="glyphMargin",e[e.gotoLocation=67]="gotoLocation",e[e.hideCursorInOverviewRuler=68]="hideCursorInOverviewRuler",e[e.hover=69]="hover",e[e.inDiffEditor=70]="inDiffEditor",e[e.inlineSuggest=71]="inlineSuggest",e[e.letterSpacing=72]="letterSpacing",e[e.lightbulb=73]="lightbulb",e[e.lineDecorationsWidth=74]="lineDecorationsWidth",e[e.lineHeight=75]="lineHeight",e[e.lineNumbers=76]="lineNumbers",e[e.lineNumbersMinChars=77]="lineNumbersMinChars",e[e.linkedEditing=78]="linkedEditing",e[e.links=79]="links",e[e.matchBrackets=80]="matchBrackets",e[e.minimap=81]="minimap",e[e.mouseStyle=82]="mouseStyle",e[e.mouseWheelScrollSensitivity=83]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=84]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=85]="multiCursorMergeOverlapping",e[e.multiCursorModifier=86]="multiCursorModifier",e[e.mouseMiddleClickAction=87]="mouseMiddleClickAction",e[e.multiCursorPaste=88]="multiCursorPaste",e[e.multiCursorLimit=89]="multiCursorLimit",e[e.occurrencesHighlight=90]="occurrencesHighlight",e[e.occurrencesHighlightDelay=91]="occurrencesHighlightDelay",e[e.overtypeCursorStyle=92]="overtypeCursorStyle",e[e.overtypeOnPaste=93]="overtypeOnPaste",e[e.overviewRulerBorder=94]="overviewRulerBorder",e[e.overviewRulerLanes=95]="overviewRulerLanes",e[e.padding=96]="padding",e[e.pasteAs=97]="pasteAs",e[e.parameterHints=98]="parameterHints",e[e.peekWidgetDefaultFocus=99]="peekWidgetDefaultFocus",e[e.placeholder=100]="placeholder",e[e.definitionLinkOpensInPeek=101]="definitionLinkOpensInPeek",e[e.quickSuggestions=102]="quickSuggestions",e[e.quickSuggestionsDelay=103]="quickSuggestionsDelay",e[e.readOnly=104]="readOnly",e[e.readOnlyMessage=105]="readOnlyMessage",e[e.renameOnType=106]="renameOnType",e[e.renderRichScreenReaderContent=107]="renderRichScreenReaderContent",e[e.renderControlCharacters=108]="renderControlCharacters",e[e.renderFinalNewline=109]="renderFinalNewline",e[e.renderLineHighlight=110]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=111]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=112]="renderValidationDecorations",e[e.renderWhitespace=113]="renderWhitespace",e[e.revealHorizontalRightPadding=114]="revealHorizontalRightPadding",e[e.roundedSelection=115]="roundedSelection",e[e.rulers=116]="rulers",e[e.scrollbar=117]="scrollbar",e[e.scrollBeyondLastColumn=118]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=119]="scrollBeyondLastLine",e[e.scrollPredominantAxis=120]="scrollPredominantAxis",e[e.selectionClipboard=121]="selectionClipboard",e[e.selectionHighlight=122]="selectionHighlight",e[e.selectionHighlightMaxLength=123]="selectionHighlightMaxLength",e[e.selectionHighlightMultiline=124]="selectionHighlightMultiline",e[e.selectOnLineNumbers=125]="selectOnLineNumbers",e[e.showFoldingControls=126]="showFoldingControls",e[e.showUnused=127]="showUnused",e[e.snippetSuggestions=128]="snippetSuggestions",e[e.smartSelect=129]="smartSelect",e[e.smoothScrolling=130]="smoothScrolling",e[e.stickyScroll=131]="stickyScroll",e[e.stickyTabStops=132]="stickyTabStops",e[e.stopRenderingLineAfter=133]="stopRenderingLineAfter",e[e.suggest=134]="suggest",e[e.suggestFontSize=135]="suggestFontSize",e[e.suggestLineHeight=136]="suggestLineHeight",e[e.suggestOnTriggerCharacters=137]="suggestOnTriggerCharacters",e[e.suggestSelection=138]="suggestSelection",e[e.tabCompletion=139]="tabCompletion",e[e.tabIndex=140]="tabIndex",e[e.trimWhitespaceOnDelete=141]="trimWhitespaceOnDelete",e[e.unicodeHighlighting=142]="unicodeHighlighting",e[e.unusualLineTerminators=143]="unusualLineTerminators",e[e.useShadowDOM=144]="useShadowDOM",e[e.useTabStops=145]="useTabStops",e[e.wordBreak=146]="wordBreak",e[e.wordSegmenterLocales=147]="wordSegmenterLocales",e[e.wordSeparators=148]="wordSeparators",e[e.wordWrap=149]="wordWrap",e[e.wordWrapBreakAfterCharacters=150]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=151]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=152]="wordWrapColumn",e[e.wordWrapOverride1=153]="wordWrapOverride1",e[e.wordWrapOverride2=154]="wordWrapOverride2",e[e.wrappingIndent=155]="wrappingIndent",e[e.wrappingStrategy=156]="wrappingStrategy",e[e.showDeprecated=157]="showDeprecated",e[e.inertialScroll=158]="inertialScroll",e[e.inlayHints=159]="inlayHints",e[e.wrapOnEscapedLineFeeds=160]="wrapOnEscapedLineFeeds",e[e.effectiveCursorStyle=161]="effectiveCursorStyle",e[e.editorClassName=162]="editorClassName",e[e.pixelRatio=163]="pixelRatio",e[e.tabFocusMode=164]="tabFocusMode",e[e.layoutInfo=165]="layoutInfo",e[e.wrappingInfo=166]="wrappingInfo",e[e.defaultColorDecorators=167]="defaultColorDecorators",e[e.colorDecoratorsActivatedOn=168]="colorDecoratorsActivatedOn",e[e.inlineCompletionsAccessibilityVerbose=169]="inlineCompletionsAccessibilityVerbose",e[e.effectiveEditContext=170]="effectiveEditContext",e[e.scrollOnMiddleClick=171]="scrollOnMiddleClick",e[e.effectiveAllowVariableFonts=172]="effectiveAllowVariableFonts"})(Or||(Or={}));var Vr;(function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(Vr||(Vr={}));var jr;(function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"})(jr||(jr={}));var $r;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"})($r||($r={}));var Gr;(function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"})(Gr||(Gr={}));var Xr;(function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"})(Xr||(Xr={}));var Jr;(function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"})(Jr||(Jr={}));var Qr;(function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"})(Qr||(Qr={}));var Yr;(function(e){e[e.Accepted=0]="Accepted",e[e.Rejected=1]="Rejected",e[e.Ignored=2]="Ignored"})(Yr||(Yr={}));var Zr;(function(e){e[e.Code=1]="Code",e[e.Label=2]="Label"})(Zr||(Zr={}));var Kr;(function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"})(Kr||(Kr={}));var si;(function(e){e[e.DependsOnKbLayout=-1]="DependsOnKbLayout",e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.Digit0=21]="Digit0",e[e.Digit1=22]="Digit1",e[e.Digit2=23]="Digit2",e[e.Digit3=24]="Digit3",e[e.Digit4=25]="Digit4",e[e.Digit5=26]="Digit5",e[e.Digit6=27]="Digit6",e[e.Digit7=28]="Digit7",e[e.Digit8=29]="Digit8",e[e.Digit9=30]="Digit9",e[e.KeyA=31]="KeyA",e[e.KeyB=32]="KeyB",e[e.KeyC=33]="KeyC",e[e.KeyD=34]="KeyD",e[e.KeyE=35]="KeyE",e[e.KeyF=36]="KeyF",e[e.KeyG=37]="KeyG",e[e.KeyH=38]="KeyH",e[e.KeyI=39]="KeyI",e[e.KeyJ=40]="KeyJ",e[e.KeyK=41]="KeyK",e[e.KeyL=42]="KeyL",e[e.KeyM=43]="KeyM",e[e.KeyN=44]="KeyN",e[e.KeyO=45]="KeyO",e[e.KeyP=46]="KeyP",e[e.KeyQ=47]="KeyQ",e[e.KeyR=48]="KeyR",e[e.KeyS=49]="KeyS",e[e.KeyT=50]="KeyT",e[e.KeyU=51]="KeyU",e[e.KeyV=52]="KeyV",e[e.KeyW=53]="KeyW",e[e.KeyX=54]="KeyX",e[e.KeyY=55]="KeyY",e[e.KeyZ=56]="KeyZ",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.F20=78]="F20",e[e.F21=79]="F21",e[e.F22=80]="F22",e[e.F23=81]="F23",e[e.F24=82]="F24",e[e.NumLock=83]="NumLock",e[e.ScrollLock=84]="ScrollLock",e[e.Semicolon=85]="Semicolon",e[e.Equal=86]="Equal",e[e.Comma=87]="Comma",e[e.Minus=88]="Minus",e[e.Period=89]="Period",e[e.Slash=90]="Slash",e[e.Backquote=91]="Backquote",e[e.BracketLeft=92]="BracketLeft",e[e.Backslash=93]="Backslash",e[e.BracketRight=94]="BracketRight",e[e.Quote=95]="Quote",e[e.OEM_8=96]="OEM_8",e[e.IntlBackslash=97]="IntlBackslash",e[e.Numpad0=98]="Numpad0",e[e.Numpad1=99]="Numpad1",e[e.Numpad2=100]="Numpad2",e[e.Numpad3=101]="Numpad3",e[e.Numpad4=102]="Numpad4",e[e.Numpad5=103]="Numpad5",e[e.Numpad6=104]="Numpad6",e[e.Numpad7=105]="Numpad7",e[e.Numpad8=106]="Numpad8",e[e.Numpad9=107]="Numpad9",e[e.NumpadMultiply=108]="NumpadMultiply",e[e.NumpadAdd=109]="NumpadAdd",e[e.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",e[e.NumpadSubtract=111]="NumpadSubtract",e[e.NumpadDecimal=112]="NumpadDecimal",e[e.NumpadDivide=113]="NumpadDivide",e[e.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",e[e.ABNT_C1=115]="ABNT_C1",e[e.ABNT_C2=116]="ABNT_C2",e[e.AudioVolumeMute=117]="AudioVolumeMute",e[e.AudioVolumeUp=118]="AudioVolumeUp",e[e.AudioVolumeDown=119]="AudioVolumeDown",e[e.BrowserSearch=120]="BrowserSearch",e[e.BrowserHome=121]="BrowserHome",e[e.BrowserBack=122]="BrowserBack",e[e.BrowserForward=123]="BrowserForward",e[e.MediaTrackNext=124]="MediaTrackNext",e[e.MediaTrackPrevious=125]="MediaTrackPrevious",e[e.MediaStop=126]="MediaStop",e[e.MediaPlayPause=127]="MediaPlayPause",e[e.LaunchMediaPlayer=128]="LaunchMediaPlayer",e[e.LaunchMail=129]="LaunchMail",e[e.LaunchApp2=130]="LaunchApp2",e[e.Clear=131]="Clear",e[e.MAX_VALUE=132]="MAX_VALUE"})(si||(si={}));var ai;(function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"})(ai||(ai={}));var oi;(function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"})(oi||(oi={}));var es;(function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"})(es||(es={}));var ts;(function(e){e[e.Normal=1]="Normal",e[e.Underlined=2]="Underlined"})(ts||(ts={}));var ns;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TEXTAREA=1]="TEXTAREA",e[e.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",e[e.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",e[e.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",e[e.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",e[e.CONTENT_TEXT=6]="CONTENT_TEXT",e[e.CONTENT_EMPTY=7]="CONTENT_EMPTY",e[e.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",e[e.CONTENT_WIDGET=9]="CONTENT_WIDGET",e[e.OVERVIEW_RULER=10]="OVERVIEW_RULER",e[e.SCROLLBAR=11]="SCROLLBAR",e[e.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",e[e.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(ns||(ns={}));var is;(function(e){e[e.AIGenerated=1]="AIGenerated"})(is||(is={}));var rs;(function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"})(rs||(rs={}));var ss;(function(e){e[e.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",e[e.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",e[e.TOP_CENTER=2]="TOP_CENTER"})(ss||(ss={}));var as;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"})(as||(as={}));var os;(function(e){e[e.Word=0]="Word",e[e.Line=1]="Line",e[e.Suggest=2]="Suggest"})(os||(os={}));var ls;(function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.None=2]="None",e[e.LeftOfInjectedText=3]="LeftOfInjectedText",e[e.RightOfInjectedText=4]="RightOfInjectedText"})(ls||(ls={}));var us;(function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"})(us||(us={}));var cs;(function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"})(cs||(cs={}));var hs;(function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"})(hs||(hs={}));var ds;(function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"})(ds||(ds={}));var li;(function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"})(li||(li={}));var ms;(function(e){e.Off="off",e.OnCode="onCode",e.On="on"})(ms||(ms={}));var fs;(function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"})(fs||(fs={}));var ps;(function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"})(ps||(ps={}));var gs;(function(e){e[e.Deprecated=1]="Deprecated"})(gs||(gs={}));var bs;(function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"})(bs||(bs={}));var ws;(function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"})(ws||(ws={}));var _s;(function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"})(_s||(_s={}));var vs;(function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(vs||(vs={}));var ys;(function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"})(ys||(ys={}));const St=class St{static chord(t,n){return yl(t,n)}};St.CtrlCmd=2048,St.Shift=1024,St.Alt=512,St.WinCtrl=256;let ui=St;function jl(){return{editor:void 0,languages:void 0,CancellationTokenSource:bl,Emitter:De,KeyCode:si,KeyMod:ui,Position:K,Range:j,Selection:ge,SelectionDirection:li,MarkerSeverity:ai,MarkerTag:oi,Uri:ni,Token:Vl}}var Ts;class $l{constructor(){this[Ts]="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(){var t;return(t=this._head)==null?void 0:t.value}get last(){var t;return(t=this._tail)==null?void 0:t.value}has(t){return this._map.has(t)}get(t,n=0){const i=this._map.get(t);if(i)return n!==0&&this.touch(i,n),i.value}set(t,n,i=0){let r=this._map.get(t);if(r)r.value=n,i!==0&&this.touch(r,i);else{switch(r={key:t,value:n,next:void 0,previous:void 0},i){case 0:this.addItemLast(r);break;case 1:this.addItemFirst(r);break;case 2:this.addItemLast(r);break;default:this.addItemLast(r);break}this._map.set(t,r),this._size++}return this}delete(t){return!!this.remove(t)}remove(t){const n=this._map.get(t);if(n)return this._map.delete(t),this.removeItem(n),this._size--,n.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const t=this._head;return this._map.delete(t.key),this.removeItem(t),this._size--,t.value}forEach(t,n){const i=this._state;let r=this._head;for(;r;){if(n?t.bind(n)(r.value,r.key,this):t(r.value,r.key,this),this._state!==i)throw new Error("LinkedMap got modified during iteration.");r=r.next}}keys(){const t=this,n=this._state;let i=this._head;const r={[Symbol.iterator](){return r},next(){if(t._state!==n)throw new Error("LinkedMap got modified during iteration.");if(i){const s={value:i.key,done:!1};return i=i.next,s}else return{value:void 0,done:!0}}};return r}values(){const t=this,n=this._state;let i=this._head;const r={[Symbol.iterator](){return r},next(){if(t._state!==n)throw new Error("LinkedMap got modified during iteration.");if(i){const s={value:i.value,done:!1};return i=i.next,s}else return{value:void 0,done:!0}}};return r}entries(){const t=this,n=this._state;let i=this._head;const r={[Symbol.iterator](){return r},next(){if(t._state!==n)throw new Error("LinkedMap got modified during iteration.");if(i){const s={value:[i.key,i.value],done:!1};return i=i.next,s}else return{value:void 0,done:!0}}};return r}[(Ts=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(t){if(t>=this.size)return;if(t===0){this.clear();return}let n=this._head,i=this.size;for(;n&&i>t;)this._map.delete(n.key),n=n.next,i--;this._head=n,this._size=i,n&&(n.previous=void 0),this._state++}trimNew(t){if(t>=this.size)return;if(t===0){this.clear();return}let n=this._tail,i=this.size;for(;n&&i>t;)this._map.delete(n.key),n=n.previous,i--;this._tail=n,this._size=i,n&&(n.next=void 0),this._state++}addItemFirst(t){if(!this._head&&!this._tail)this._tail=t;else if(this._head)t.next=this._head,this._head.previous=t;else throw new Error("Invalid list");this._head=t,this._state++}addItemLast(t){if(!this._head&&!this._tail)this._head=t;else if(this._tail)t.previous=this._tail,this._tail.next=t;else throw new Error("Invalid list");this._tail=t,this._state++}removeItem(t){if(t===this._head&&t===this._tail)this._head=void 0,this._tail=void 0;else if(t===this._head){if(!t.next)throw new Error("Invalid list");t.next.previous=void 0,this._head=t.next}else if(t===this._tail){if(!t.previous)throw new Error("Invalid list");t.previous.next=void 0,this._tail=t.previous}else{const n=t.next,i=t.previous;if(!n||!i)throw new Error("Invalid list");n.previous=i,i.next=n}t.next=void 0,t.previous=void 0,this._state++}touch(t,n){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(n!==1&&n!==2)){if(n===1){if(t===this._head)return;const i=t.next,r=t.previous;t===this._tail?(r.next=void 0,this._tail=r):(i.previous=r,r.next=i),t.previous=void 0,t.next=this._head,this._head.previous=t,this._head=t,this._state++}else if(n===2){if(t===this._tail)return;const i=t.next,r=t.previous;t===this._head?(i.previous=void 0,this._head=i):(i.previous=r,r.next=i),t.next=void 0,t.previous=this._tail,this._tail.next=t,this._tail=t,this._state++}}}toJSON(){const t=[];return this.forEach((n,i)=>{t.push([i,n])}),t}fromJSON(t){this.clear();for(const[n,i]of t)this.set(n,i)}}class Gl extends $l{constructor(t,n=1){super(),this._limit=t,this._ratio=Math.min(Math.max(0,n),1)}get limit(){return this._limit}set limit(t){this._limit=t,this.checkTrim()}get(t,n=2){return super.get(t,n)}peek(t){return super.get(t,0)}set(t,n){return super.set(t,n,2),this}checkTrim(){this.size>this._limit&&this.trim(Math.round(this._limit*this._ratio))}}class Xl extends Gl{constructor(t,n=1){super(t,n)}trim(t){this.trimOld(t)}set(t,n){return super.set(t,n),this.checkTrim(),this}}class Jl{constructor(){this.map=new Map}add(t,n){let i=this.map.get(t);i||(i=new Set,this.map.set(t,i)),i.add(n)}delete(t,n){const i=this.map.get(t);i&&(i.delete(n),i.size===0&&this.map.delete(t))}forEach(t,n){const i=this.map.get(t);i&&i.forEach(n)}}new Xl(10);var xs;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"})(xs||(xs={}));var ks;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"})(ks||(ks={}));var Ss;(function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"})(Ss||(Ss={}));var As;(function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"})(As||(As={}));function Ql(e){if(!e||e.length===0)return!1;for(let t=0,n=e.length;t<n;t++){const i=e.charCodeAt(t);if(i===10)return!0;if(i===92){if(t++,t>=n)break;const r=e.charCodeAt(t);if(r===110||r===114||r===87)return!0}}return!1}function Yl(e,t,n,i,r){if(i===0)return!0;const s=t.charCodeAt(i-1);if(e.get(s)!==0||s===13||s===10)return!0;if(r>0){const a=t.charCodeAt(i);if(e.get(a)!==0)return!0}return!1}function Zl(e,t,n,i,r){if(i+r===n)return!0;const s=t.charCodeAt(i+r);if(e.get(s)!==0||s===13||s===10)return!0;if(r>0){const a=t.charCodeAt(i+r-1);if(e.get(a)!==0)return!0}return!1}function Kl(e,t,n,i,r){return Yl(e,t,n,i,r)&&Zl(e,t,n,i,r)}class eu{constructor(t,n){this._wordSeparators=t,this._searchRegex=n,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(t){this._searchRegex.lastIndex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(t){const n=t.length;let i;do{if(this._prevMatchStartIndex+this._prevMatchLength===n||(i=this._searchRegex.exec(t),!i))return null;const r=i.index,s=i[0].length;if(r===this._prevMatchStartIndex&&s===this._prevMatchLength){if(s===0){Zo(t,n,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=r,this._prevMatchLength=s,!this._wordSeparators||Kl(this._wordSeparators,t,n,r,s))return i}while(i);return null}}const tu="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function nu(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(const n of tu)e.indexOf(n)>=0||(t+="\\"+n);return t+="\\s]+)",new RegExp(t,"g")}const Ls=nu();function Cs(e){let t=Ls;if(e&&e instanceof RegExp)if(e.global)t=e;else{let n="g";e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.unicode&&(n+="u"),t=new RegExp(e.source,n)}return t.lastIndex=0,t}const Es=new Co;Es.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function ci(e,t,n,i,r){if(t=Cs(t),r||(r=Xt.first(Es)),n.length>r.maxLen){let u=e-r.maxLen/2;return u<0?u=0:i+=u,n=n.substring(u,e+r.maxLen/2),ci(e,t,n,i,r)}const s=Date.now(),a=e-1-i;let l=-1,o=null;for(let u=1;!(Date.now()-s>=r.timeBudget);u++){const c=a-r.windowSize*u;t.lastIndex=Math.max(0,c);const d=iu(t,n,a,l);if(!d&&o||(o=d,c<=0))break;l=c}if(o){const u={word:o[0],startColumn:i+1+o.index,endColumn:i+1+o.index+o[0].length};return t.lastIndex=0,u}return null}function iu(e,t,n,i){let r;for(;r=e.exec(t);){const s=r.index||0;if(s<=n&&e.lastIndex>=n)return r;if(i>0&&s>i)return null}return null}class ru{static computeUnicodeHighlights(t,n,i){const r=i?i.startLineNumber:1,s=i?i.endLineNumber:t.getLineCount(),a=new Ds(n),l=a.getCandidateCodePoints();let o;l==="allNonBasicAscii"?o=new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):o=new RegExp(`${su(Array.from(l))}`,"g");const u=new eu(null,o),c=[];let d=!1,m,f=0,w=0,p=0;e:for(let x=r,T=s;x<=T;x++){const y=t.getLineContent(x),L=y.length;u.reset(0);do if(m=u.next(y),m){let I=m.index,H=m.index+m[0].length;if(I>0){const _=y.charCodeAt(I-1);Zt(_)&&I--}if(H+1<L){const _=y.charCodeAt(H-1);Zt(_)&&H++}const W=y.substring(I,H);let b=ci(I+1,Ls,y,0);b&&b.endColumn<=I+1&&(b=null);const g=a.shouldHighlightNonBasicASCII(W,b?b.word:null);if(g!==0){if(g===3?f++:g===2?w++:g===1?p++:To(),c.length>=1e3){d=!0;break e}c.push(new j(x,I+1,x,H+1))}}while(m)}return{ranges:c,hasMore:d,ambiguousCharacterCount:f,invisibleCharacterCount:w,nonBasicAsciiCharacterCount:p}}static computeUnicodeHighlightReason(t,n){const i=new Ds(n);switch(i.shouldHighlightNonBasicASCII(t,null)){case 0:return null;case 2:return{kind:1};case 3:{const s=t.codePointAt(0),a=i.ambiguousCharacters.getPrimaryConfusable(s),l=Et.getLocales().filter(o=>!Et.getInstance(new Set([...n.allowedLocales,o])).isAmbiguous(s));return{kind:0,confusableWith:String.fromCodePoint(a),notAmbiguousInLocales:l}}case 1:return{kind:2}}}}function su(e,t){return`[${jo(e.map(i=>String.fromCodePoint(i)).join(""))}]`}class Ds{constructor(t){this.options=t,this.allowedCodePoints=new Set(t.allowedCodePoints),this.ambiguousCharacters=Et.getInstance(new Set(t.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const t=new Set;if(this.options.invisibleCharacters)for(const n of Dt.codePoints)Rs(String.fromCodePoint(n))||t.add(n);if(this.options.ambiguousCharacters)for(const n of this.ambiguousCharacters.getConfusableCodePoints())t.add(n);for(const n of this.allowedCodePoints)t.delete(n);return t}shouldHighlightNonBasicASCII(t,n){const i=t.codePointAt(0);if(this.allowedCodePoints.has(i))return 0;if(this.options.nonBasicASCII)return 1;let r=!1,s=!1;if(n)for(const a of n){const l=a.codePointAt(0),o=el(a);r=r||o,!o&&!this.ambiguousCharacters.isAmbiguous(l)&&!Dt.isInvisibleCharacter(l)&&(s=!0)}return!r&&s?0:this.options.invisibleCharacters&&!Rs(t)&&Dt.isInvisibleCharacter(i)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(i)?3:0}}function Rs(e){return e===" "||e===`
|
|
8
|
-
`||e===" "}class on{constructor(t,n,i){this.changes=t,this.moves=n,this.hitTimeout=i}}class au{constructor(t,n){this.lineRangeMapping=t,this.changes=n}}function ou(e,t,n=(i,r)=>i===r){if(e===t)return!0;if(!e||!t||e.length!==t.length)return!1;for(let i=0,r=e.length;i<r;i++)if(!n(e[i],t[i]))return!1;return!0}function*lu(e,t){let n,i;for(const r of e)i!==void 0&&t(i,r)?n.push(r):(n&&(yield n),n=[r]),i=r;n&&(yield n)}function uu(e,t){for(let n=0;n<=e.length;n++)t(n===0?void 0:e[n-1],n===e.length?void 0:e[n])}function cu(e,t){for(let n=0;n<e.length;n++)t(n===0?void 0:e[n-1],e[n],n+1===e.length?void 0:e[n+1])}function hu(e,t){for(const n of t)e.push(n)}var hi;(function(e){function t(s){return s<0}e.isLessThan=t;function n(s){return s<=0}e.isLessThanOrEqual=n;function i(s){return s>0}e.isGreaterThan=i;function r(s){return s===0}e.isNeitherLessOrGreaterThan=r,e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0})(hi||(hi={}));function Nt(e,t){return(n,i)=>t(e(n),e(i))}const It=(e,t)=>e-t;function du(e){return(t,n)=>-e(t,n)}const At=class At{constructor(t){this.iterate=t}toArray(){const t=[];return this.iterate(n=>(t.push(n),!0)),t}filter(t){return new At(n=>this.iterate(i=>t(i)?n(i):!0))}map(t){return new At(n=>this.iterate(i=>n(t(i))))}findLast(t){let n;return this.iterate(i=>(t(i)&&(n=i),!0)),n}findLastMaxBy(t){let n,i=!0;return this.iterate(r=>((i||hi.isGreaterThan(t(r,n)))&&(i=!1,n=r),!0)),n}};At.empty=new At(t=>{});let Ms=At;class G{static fromTo(t,n){return new G(t,n)}static addRange(t,n){let i=0;for(;i<n.length&&n[i].endExclusive<t.start;)i++;let r=i;for(;r<n.length&&n[r].start<=t.endExclusive;)r++;if(i===r)n.splice(i,0,t);else{const s=Math.min(t.start,n[i].start),a=Math.max(t.endExclusive,n[r-1].endExclusive);n.splice(i,r-i,new G(s,a))}}static tryCreate(t,n){if(!(t>n))return new G(t,n)}static ofLength(t){return new G(0,t)}static ofStartAndLength(t,n){return new G(t,t+n)}static emptyAt(t){return new G(t,t)}constructor(t,n){if(this.start=t,this.endExclusive=n,t>n)throw new ue(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(t){return new G(this.start+t,this.endExclusive+t)}deltaStart(t){return new G(this.start+t,this.endExclusive)}deltaEnd(t){return new G(this.start,this.endExclusive+t)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}equals(t){return this.start===t.start&&this.endExclusive===t.endExclusive}contains(t){return this.start<=t&&t<this.endExclusive}join(t){return new G(Math.min(this.start,t.start),Math.max(this.endExclusive,t.endExclusive))}intersect(t){const n=Math.max(this.start,t.start),i=Math.min(this.endExclusive,t.endExclusive);if(n<=i)return new G(n,i)}intersectionLength(t){const n=Math.max(this.start,t.start),i=Math.min(this.endExclusive,t.endExclusive);return Math.max(0,i-n)}intersects(t){const n=Math.max(this.start,t.start),i=Math.min(this.endExclusive,t.endExclusive);return n<i}intersectsOrTouches(t){const n=Math.max(this.start,t.start),i=Math.min(this.endExclusive,t.endExclusive);return n<=i}isBefore(t){return this.endExclusive<=t.start}isAfter(t){return this.start>=t.endExclusive}slice(t){return t.slice(this.start,this.endExclusive)}substring(t){return t.substring(this.start,this.endExclusive)}clip(t){if(this.isEmpty)throw new ue(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,t))}clipCyclic(t){if(this.isEmpty)throw new ue(`Invalid clipping range: ${this.toString()}`);return t<this.start?this.endExclusive-(this.start-t)%this.length:t>=this.endExclusive?this.start+(t-this.start)%this.length:t}forEach(t){for(let n=this.start;n<this.endExclusive;n++)t(n)}joinRightTouching(t){if(this.endExclusive!==t.start)throw new ue(`Invalid join: ${this.toString()} and ${t.toString()}`);return new G(this.start,t.endExclusive)}}function mt(e,t){const n=ft(e,t);return n===-1?void 0:e[n]}function ft(e,t,n=0,i=e.length){let r=n,s=i;for(;r<s;){const a=Math.floor((r+s)/2);t(e[a])?r=a+1:s=a}return r-1}function mu(e,t){const n=di(e,t);return n===e.length?void 0:e[n]}function di(e,t,n=0,i=e.length){let r=n,s=i;for(;r<s;){const a=Math.floor((r+s)/2);t(e[a])?s=a:r=a+1}return r}const Cn=class Cn{constructor(t){this._array=t,this._findLastMonotonousLastIdx=0}findLastMonotonous(t){if(Cn.assertInvariants){if(this._prevFindLastPredicate){for(const i of this._array)if(this._prevFindLastPredicate(i)&&!t(i))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.")}this._prevFindLastPredicate=t}const n=ft(this._array,t,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=n+1,n===-1?void 0:this._array[n]}};Cn.assertInvariants=!1;let ln=Cn;const _e=class _e{static ofLength(t,n){return new _e(t,t+n)}static fromRange(t){return new _e(t.startLineNumber,t.endLineNumber)}static fromRangeInclusive(t){return new _e(t.startLineNumber,t.endLineNumber+1)}static joinMany(t){if(t.length===0)return[];let n=new Me(t[0].slice());for(let i=1;i<t.length;i++)n=n.getUnion(new Me(t[i].slice()));return n.ranges}static join(t){if(t.length===0)throw new ue("lineRanges cannot be empty");let n=t[0].startLineNumber,i=t[0].endLineNumberExclusive;for(let r=1;r<t.length;r++)n=Math.min(n,t[r].startLineNumber),i=Math.max(i,t[r].endLineNumberExclusive);return new _e(n,i)}static deserialize(t){return new _e(t[0],t[1])}constructor(t,n){if(t>n)throw new ue(`startLineNumber ${t} cannot be after endLineNumberExclusive ${n}`);this.startLineNumber=t,this.endLineNumberExclusive=n}contains(t){return this.startLineNumber<=t&&t<this.endLineNumberExclusive}get isEmpty(){return this.startLineNumber===this.endLineNumberExclusive}delta(t){return new _e(this.startLineNumber+t,this.endLineNumberExclusive+t)}deltaLength(t){return new _e(this.startLineNumber,this.endLineNumberExclusive+t)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(t){return new _e(Math.min(this.startLineNumber,t.startLineNumber),Math.max(this.endLineNumberExclusive,t.endLineNumberExclusive))}toString(){return`[${this.startLineNumber},${this.endLineNumberExclusive})`}intersect(t){const n=Math.max(this.startLineNumber,t.startLineNumber),i=Math.min(this.endLineNumberExclusive,t.endLineNumberExclusive);if(n<=i)return new _e(n,i)}intersectsStrict(t){return this.startLineNumber<t.endLineNumberExclusive&&t.startLineNumber<this.endLineNumberExclusive}intersectsOrTouches(t){return this.startLineNumber<=t.endLineNumberExclusive&&t.startLineNumber<=this.endLineNumberExclusive}equals(t){return this.startLineNumber===t.startLineNumber&&this.endLineNumberExclusive===t.endLineNumberExclusive}toInclusiveRange(){return this.isEmpty?null:new j(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new j(this.startLineNumber,1,this.endLineNumberExclusive,1)}mapToLineArray(t){const n=[];for(let i=this.startLineNumber;i<this.endLineNumberExclusive;i++)n.push(t(i));return n}forEach(t){for(let n=this.startLineNumber;n<this.endLineNumberExclusive;n++)t(n)}serialize(){return[this.startLineNumber,this.endLineNumberExclusive]}toOffsetRange(){return new G(this.startLineNumber-1,this.endLineNumberExclusive-1)}addMargin(t,n){return new _e(this.startLineNumber-t,this.endLineNumberExclusive+n)}};_e.compareByStart=Nt(t=>t.startLineNumber,It);let X=_e;class Me{constructor(t=[]){this._normalizedRanges=t}get ranges(){return this._normalizedRanges}addRange(t){if(t.length===0)return;const n=di(this._normalizedRanges,r=>r.endLineNumberExclusive>=t.startLineNumber),i=ft(this._normalizedRanges,r=>r.startLineNumber<=t.endLineNumberExclusive)+1;if(n===i)this._normalizedRanges.splice(n,0,t);else if(n===i-1){const r=this._normalizedRanges[n];this._normalizedRanges[n]=r.join(t)}else{const r=this._normalizedRanges[n].join(this._normalizedRanges[i-1]).join(t);this._normalizedRanges.splice(n,i-n,r)}}contains(t){const n=mt(this._normalizedRanges,i=>i.startLineNumber<=t);return!!n&&n.endLineNumberExclusive>t}intersects(t){const n=mt(this._normalizedRanges,i=>i.startLineNumber<t.endLineNumberExclusive);return!!n&&n.endLineNumberExclusive>t.startLineNumber}getUnion(t){if(this._normalizedRanges.length===0)return t;if(t._normalizedRanges.length===0)return this;const n=[];let i=0,r=0,s=null;for(;i<this._normalizedRanges.length||r<t._normalizedRanges.length;){let a=null;if(i<this._normalizedRanges.length&&r<t._normalizedRanges.length){const l=this._normalizedRanges[i],o=t._normalizedRanges[r];l.startLineNumber<o.startLineNumber?(a=l,i++):(a=o,r++)}else i<this._normalizedRanges.length?(a=this._normalizedRanges[i],i++):(a=t._normalizedRanges[r],r++);s===null?s=a:s.endLineNumberExclusive>=a.startLineNumber?s=new X(s.startLineNumber,Math.max(s.endLineNumberExclusive,a.endLineNumberExclusive)):(n.push(s),s=a)}return s!==null&&n.push(s),new Me(n)}subtractFrom(t){const n=di(this._normalizedRanges,a=>a.endLineNumberExclusive>=t.startLineNumber),i=ft(this._normalizedRanges,a=>a.startLineNumber<=t.endLineNumberExclusive)+1;if(n===i)return new Me([t]);const r=[];let s=t.startLineNumber;for(let a=n;a<i;a++){const l=this._normalizedRanges[a];l.startLineNumber>s&&r.push(new X(s,l.startLineNumber)),s=l.endLineNumberExclusive}return s<t.endLineNumberExclusive&&r.push(new X(s,t.endLineNumberExclusive)),new Me(r)}toString(){return this._normalizedRanges.map(t=>t.toString()).join(", ")}getIntersection(t){const n=[];let i=0,r=0;for(;i<this._normalizedRanges.length&&r<t._normalizedRanges.length;){const s=this._normalizedRanges[i],a=t._normalizedRanges[r],l=s.intersect(a);l&&!l.isEmpty&&n.push(l),s.endLineNumberExclusive<a.endLineNumberExclusive?i++:r++}return new Me(n)}getWithDelta(t){return new Me(this._normalizedRanges.map(n=>n.delta(t)))}}const Ce=class Ce{static betweenPositions(t,n){return t.lineNumber===n.lineNumber?new Ce(0,n.column-t.column):new Ce(n.lineNumber-t.lineNumber,n.column-1)}static fromPosition(t){return new Ce(t.lineNumber-1,t.column-1)}static ofRange(t){return Ce.betweenPositions(t.getStartPosition(),t.getEndPosition())}static ofText(t){let n=0,i=0;for(const r of t)r===`
|
|
9
|
-
`?(n++,i=0):i++;return new Ce(n,i)}constructor(
|
|
10
|
-
`&&(this.lineStartOffsetByLineIdx.push(n+1),n>0&&
|
|
7
|
+
`))}}class yo extends Error{constructor(e,n){super(e),this.name="ListenerLeakError",this.stack=n}}class To extends Error{constructor(e,n){super(e),this.name="ListenerRefusalError",this.stack=n}}class In{constructor(e){this.value=e}}const xo=2;class Re{constructor(e){var n,i,r,s;this._size=0,this._options=e,this._leakageMon=(n=this._options)!=null&&n.leakWarningThreshold?new Mn((e==null?void 0:e.onListenerError)??He,((i=this._options)==null?void 0:i.leakWarningThreshold)??vo):void 0,this._perfMon=(r=this._options)!=null&&r._profName?new Dn(this._options._profName):void 0,this._deliveryQueue=(s=this._options)==null?void 0:s.deliveryQueue}dispose(){var e,n,i,r;this._disposed||(this._disposed=!0,((e=this._deliveryQueue)==null?void 0:e.current)===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),(i=(n=this._options)==null?void 0:n.onDidRemoveLastListener)==null||i.call(n),(r=this._leakageMon)==null||r.dispose())}get event(){return this._event??(this._event=(e,n,i)=>{var l,o,u,c,d,m,f;if(this._leakageMon&&this._size>this._leakageMon.threshold**2){const w=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(w);const p=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],x=new To(`${w}. HINT: Stack shows most frequent listener (${p[1]}-times)`,p[0]);return(((l=this._options)==null?void 0:l.onListenerError)||He)(x),Ze.None}if(this._disposed)return Ze.None;n&&(e=e.bind(n));const r=new In(e);let s;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(r.stack=Nn.create(),s=this._leakageMon.check(r.stack,this._size+1)),this._listeners?this._listeners instanceof In?(this._deliveryQueue??(this._deliveryQueue=new ko),this._listeners=[this._listeners,r]):this._listeners.push(r):((u=(o=this._options)==null?void 0:o.onWillAddFirstListener)==null||u.call(o,this),this._listeners=r,(d=(c=this._options)==null?void 0:c.onDidAddFirstListener)==null||d.call(c,this)),(f=(m=this._options)==null?void 0:m.onDidAddListener)==null||f.call(m,this),this._size++;const a=Xt(()=>{s==null||s(),this._removeListener(r)});return i instanceof Lt?i.add(a):Array.isArray(i)&&i.push(a),a}),this._event}_removeListener(e){var s,a,l,o;if((a=(s=this._options)==null?void 0:s.onWillRemoveListener)==null||a.call(s,this),!this._listeners)return;if(this._size===1){this._listeners=void 0,(o=(l=this._options)==null?void 0:l.onDidRemoveLastListener)==null||o.call(l,this),this._size=0;return}const n=this._listeners,i=n.indexOf(e);if(i===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,n[i]=void 0;const r=this._deliveryQueue.current===this;if(this._size*xo<=n.length){let u=0;for(let c=0;c<n.length;c++)n[c]?n[u++]=n[c]:r&&u<this._deliveryQueue.end&&(this._deliveryQueue.end--,u<this._deliveryQueue.i&&this._deliveryQueue.i--);n.length=u}}_deliver(e,n){var r;if(!e)return;const i=((r=this._options)==null?void 0:r.onListenerError)||He;if(!i){e.value(n);return}try{e.value(n)}catch(s){i(s)}}_deliverQueue(e){const n=e.current._listeners;for(;e.i<e.end;)this._deliver(n[e.i++],e.value);e.reset()}fire(e){var n,i,r,s;if((n=this._deliveryQueue)!=null&&n.current&&(this._deliverQueue(this._deliveryQueue),(i=this._perfMon)==null||i.stop()),(r=this._perfMon)==null||r.start(this._size),this._listeners)if(this._listeners instanceof In)this._deliver(this._listeners,e);else{const a=this._deliveryQueue;a.enqueue(this,e,this._listeners.length),this._deliverQueue(a)}(s=this._perfMon)==null||s.stop()}hasListeners(){return this._size>0}}class ko{constructor(){this.i=-1,this.end=0}enqueue(e,n,i){this.i=0,this.end=i,this.current=e,this.value=n}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}function So(){return globalThis._VSCODE_NLS_MESSAGES}function Fi(){return globalThis._VSCODE_NLS_LANGUAGE}const Ao=Fi()==="pseudo"||typeof document<"u"&&document.location&&typeof document.location.hash=="string"&&document.location.hash.indexOf("pseudo=true")>=0;function Bi(t,e){let n;return e.length===0?n=t:n=t.replace(/\{(\d+)\}/g,(i,r)=>{const s=r[0],a=e[s];let l=i;return typeof a=="string"?l=a:(typeof a=="number"||typeof a=="boolean"||a===void 0||a===null)&&(l=String(a)),l}),Ao&&(n="["+n.replace(/[aouei]/g,"$&$&")+"]"),n}function q(t,e,...n){return Bi(typeof t=="number"?Lo(t,e):e,n)}function Lo(t,e){var i;const n=(i=So())==null?void 0:i[t];if(typeof n!="string"){if(typeof e=="string")return e;throw new Error(`!!! NLS MISSING: ${t} !!!`)}return n}const ot="en";let zn=!1,Hn=!1,Un=!1,Qt,Pn=ot,qi=ot,Co,ke;const Ke=globalThis;let ae;typeof Ke.vscode<"u"&&typeof Ke.vscode.process<"u"?ae=Ke.vscode.process:typeof process<"u"&&typeof((ao=process==null?void 0:process.versions)==null?void 0:ao.node)=="string"&&(ae=process);const Eo=typeof((oo=ae==null?void 0:ae.versions)==null?void 0:oo.electron)=="string"&&(ae==null?void 0:ae.type)==="renderer";if(typeof ae=="object"){zn=ae.platform==="win32",Hn=ae.platform==="darwin",Un=ae.platform==="linux",Un&&ae.env.SNAP&&ae.env.SNAP_REVISION,ae.env.CI||ae.env.BUILD_ARTIFACTSTAGINGDIRECTORY||ae.env.GITHUB_WORKSPACE,Qt=ot,Pn=ot;const t=ae.env.VSCODE_NLS_CONFIG;if(t)try{const e=JSON.parse(t);Qt=e.userLocale,qi=e.osLocale,Pn=e.resolvedLanguage||ot,Co=(lo=e.languagePack)==null?void 0:lo.translationsConfigFile}catch{}}else typeof navigator=="object"&&!Eo?(ke=navigator.userAgent,zn=ke.indexOf("Windows")>=0,Hn=ke.indexOf("Macintosh")>=0,(ke.indexOf("Macintosh")>=0||ke.indexOf("iPad")>=0||ke.indexOf("iPhone")>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Un=ke.indexOf("Linux")>=0,(ke==null?void 0:ke.indexOf("Mobi"))>=0,Pn=Fi()||ot,Qt=navigator.language.toLowerCase(),qi=Qt):console.error("Unable to resolve platform.");const Ct=zn,Ro=Hn,De=ke,Do=typeof Ke.postMessage=="function"&&!Ke.importScripts;(()=>{if(Do){const t=[];Ke.addEventListener("message",n=>{if(n.data&&n.data.vscodeScheduleAsyncWork)for(let i=0,r=t.length;i<r;i++){const s=t[i];if(s.id===n.data.vscodeScheduleAsyncWork){t.splice(i,1),s.callback();return}}});let e=0;return n=>{const i=++e;t.push({id:i,callback:n}),Ke.postMessage({vscodeScheduleAsyncWork:i},"*")}}return t=>setTimeout(t)})();const Mo=!!(De&&De.indexOf("Chrome")>=0);De&&De.indexOf("Firefox")>=0,!Mo&&De&&De.indexOf("Safari")>=0,De&&De.indexOf("Edg/")>=0,De&&De.indexOf("Android")>=0;function No(t){return t}class Io{constructor(e,n){this.lastCache=void 0,this.lastArgKey=void 0,typeof e=="function"?(this._fn=e,this._computeKey=No):(this._fn=n,this._computeKey=e.getCacheKey)}get(e){const n=this._computeKey(e);return this.lastArgKey!==n&&(this.lastArgKey=n,this.lastCache=this._fn(e)),this.lastCache}}var et;(function(t){t[t.Uninitialized=0]="Uninitialized",t[t.Running=1]="Running",t[t.Completed=2]="Completed"})(et||(et={}));class Wn{constructor(e){this.executor=e,this._state=et.Uninitialized}get value(){if(this._state===et.Uninitialized){this._state=et.Running;try{this._value=this.executor()}catch(e){this._error=e}finally{this._state=et.Completed}}else if(this._state===et.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 zo(t){return t.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function Ho(t){return t.source==="^"||t.source==="^$"||t.source==="$"||t.source==="^\\s*$"?!1:!!(t.exec("")&&t.lastIndex===0)}function Uo(t){return t.split(/\r\n|\r|\n/)}function Po(t){for(let e=0,n=t.length;e<n;e++){const i=t.charCodeAt(e);if(i!==32&&i!==9)return e}return-1}function Wo(t,e=t.length-1){for(let n=e;n>=0;n--){const i=t.charCodeAt(n);if(i!==32&&i!==9)return n}return-1}function Oi(t){return t>=65&&t<=90}function Fo(t,e){const n=Math.min(t.length,e.length);let i;for(i=0;i<n;i++)if(t.charCodeAt(i)!==e.charCodeAt(i))return i;return n}function Bo(t,e){const n=Math.min(t.length,e.length);let i;const r=t.length-1,s=e.length-1;for(i=0;i<n;i++)if(t.charCodeAt(r-i)!==e.charCodeAt(s-i))return i;return n}function Fn(t){return 55296<=t&&t<=56319}function qo(t){return 56320<=t&&t<=57343}function Oo(t,e){return(t-55296<<10)+(e-56320)+65536}function Vo(t,e,n){const i=t.charCodeAt(n);if(Fn(i)&&n+1<e){const r=t.charCodeAt(n+1);if(qo(r))return Oo(i,r)}return i}const jo=/^[\t\n\r\x20-\x7E]*$/;function $o(t){return jo.test(t)}const Ie=class Ie{static getInstance(e){return Ie.cache.get(Array.from(e))}static getLocales(){return Ie._locales.value}constructor(e){this.confusableDictionary=e}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}};Ie.ambiguousCharacterData=new Wn(()=>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]}')),Ie.cache=new Io({getCacheKey:JSON.stringify},e=>{function n(c){const d=new Map;for(let m=0;m<c.length;m+=2)d.set(c[m],c[m+1]);return d}function i(c,d){const m=new Map(c);for(const[f,w]of d)m.set(f,w);return m}function r(c,d){if(!c)return d;const m=new Map;for(const[f,w]of c)d.has(f)&&m.set(f,w);return m}const s=Ie.ambiguousCharacterData.value;let a=e.filter(c=>!c.startsWith("_")&&Object.hasOwn(s,c));a.length===0&&(a=["_default"]);let l;for(const c of a){const d=n(s[c]);l=r(l,d)}const o=n(s._common),u=i(o,l);return new Ie(u)}),Ie._locales=new Wn(()=>Object.keys(Ie.ambiguousCharacterData.value).filter(e=>!e.startsWith("_")));let Et=Ie;const kt=class kt{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(kt.getRawData())].flat())),this._data}static isInvisibleCharacter(e){return kt.getData().has(e)}static get codePoints(){return kt.getData()}};kt._data=void 0;let Rt=kt;const Bn="default",Go="$initialize";class Xo{constructor(e,n,i,r,s){this.vsWorker=e,this.req=n,this.channel=i,this.method=r,this.args=s,this.type=0}}class Vi{constructor(e,n,i,r){this.vsWorker=e,this.seq=n,this.res=i,this.err=r,this.type=1}}class Jo{constructor(e,n,i,r,s){this.vsWorker=e,this.req=n,this.channel=i,this.eventName=r,this.arg=s,this.type=2}}class Qo{constructor(e,n,i){this.vsWorker=e,this.req=n,this.event=i,this.type=3}}class Yo{constructor(e,n){this.vsWorker=e,this.req=n,this.type=4}}class Zo{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}async sendMessage(e,n,i){const r=String(++this._lastSentReq);return new Promise((s,a)=>{this._pendingReplies[r]={resolve:s,reject:a},this._send(new Xo(this._workerId,r,e,n,i))})}listen(e,n,i){let r=null;const s=new Re({onWillAddFirstListener:()=>{r=String(++this._lastSentReq),this._pendingEmitters.set(r,s),this._send(new Jo(this._workerId,r,e,n,i))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(r),this._send(new Yo(this._workerId,r)),r=null}});return s.event}handleMessage(e){!e||!e.vsWorker||this._workerId!==-1&&e.vsWorker!==this._workerId||this._handleMessage(e)}createProxyToRemoteChannel(e,n){const i={get:(r,s)=>(typeof s=="string"&&!r[s]&&($i(s)?r[s]=a=>this.listen(e,s,a):ji(s)?r[s]=this.listen(e,s,void 0):s.charCodeAt(0)===36&&(r[s]=async(...a)=>(await(n==null?void 0:n()),this.sendMessage(e,s,a)))),r[s])};return new Proxy(Object.create(null),i)}_handleMessage(e){switch(e.type){case 1:return this._handleReplyMessage(e);case 0:return this._handleRequestMessage(e);case 2:return this._handleSubscribeEventMessage(e);case 3:return this._handleEventMessage(e);case 4:return this._handleUnsubscribeEventMessage(e)}}_handleReplyMessage(e){if(!this._pendingReplies[e.seq]){console.warn("Got reply to unknown seq");return}const n=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let i=e.err;if(e.err.$isError){const r=new Error;r.name=e.err.name,r.message=e.err.message,r.stack=e.err.stack,i=r}n.reject(i);return}n.resolve(e.res)}_handleRequestMessage(e){const n=e.req;this._handler.handleMessage(e.channel,e.method,e.args).then(r=>{this._send(new Vi(this._workerId,n,r,void 0))},r=>{r.detail instanceof Error&&(r.detail=Cn(r.detail)),this._send(new Vi(this._workerId,n,void 0,Cn(r)))})}_handleSubscribeEventMessage(e){const n=e.req,i=this._handler.handleEvent(e.channel,e.eventName,e.arg)(r=>{this._send(new Qo(this._workerId,n,r))});this._pendingEvents.set(n,i)}_handleEventMessage(e){if(!this._pendingEmitters.has(e.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(e.req).fire(e.event)}_handleUnsubscribeEventMessage(e){if(!this._pendingEvents.has(e.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(e.req).dispose(),this._pendingEvents.delete(e.req)}_send(e){const n=[];if(e.type===0)for(let i=0;i<e.args.length;i++){const r=e.args[i];r instanceof ArrayBuffer&&n.push(r)}else e.type===1&&e.res instanceof ArrayBuffer&&n.push(e.res);this._handler.sendMessage(e,n)}}function ji(t){return t[0]==="o"&&t[1]==="n"&&Oi(t.charCodeAt(2))}function $i(t){return/^onDynamic/.test(t)&&Oi(t.charCodeAt(9))}class Ko{constructor(e,n){this._localChannels=new Map,this._remoteChannels=new Map,this._protocol=new Zo({sendMessage:(i,r)=>{e(i,r)},handleMessage:(i,r,s)=>this._handleMessage(i,r,s),handleEvent:(i,r,s)=>this._handleEvent(i,r,s)}),this.requestHandler=n(this)}onmessage(e){this._protocol.handleMessage(e)}_handleMessage(e,n,i){if(e===Bn&&n===Go)return this.initialize(i[0]);const r=e===Bn?this.requestHandler:this._localChannels.get(e);if(!r)return Promise.reject(new Error(`Missing channel ${e} on worker thread`));const s=r[n];if(typeof s!="function")return Promise.reject(new Error(`Missing method ${n} on worker thread channel ${e}`));try{return Promise.resolve(s.apply(r,i))}catch(a){return Promise.reject(a)}}_handleEvent(e,n,i){const r=e===Bn?this.requestHandler:this._localChannels.get(e);if(!r)throw new Error(`Missing channel ${e} on worker thread`);if($i(n)){const s=r[n];if(typeof s!="function")throw new Error(`Missing dynamic event ${n} on request handler.`);const a=s.call(r,i);if(typeof a!="function")throw new Error(`Missing dynamic event ${n} on request handler.`);return a}if(ji(n)){const s=r[n];if(typeof s!="function")throw new Error(`Missing event ${n} on request handler.`);return s}throw new Error(`Malformed event name ${n}`)}getChannel(e){if(!this._remoteChannels.has(e)){const n=this._protocol.createProxyToRemoteChannel(e);this._remoteChannels.set(e,n)}return this._remoteChannels.get(e)}async initialize(e){this._protocol.setWorkerId(e)}}let Gi=!1;function el(t){if(Gi)throw new Error("WebWorker already initialized!");Gi=!0;const e=new Ko(n=>globalThis.postMessage(n),n=>t(n));return globalThis.onmessage=n=>{e.onmessage(n.data)},e}class Ve{constructor(e,n,i,r){this.originalStart=e,this.originalLength=n,this.modifiedStart=i,this.modifiedLength=r}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}new Wn(()=>new Uint8Array(256));function Xi(t,e){return(e<<5)-e+t|0}function tl(t,e){e=Xi(149417,e);for(let n=0,i=t.length;n<i;n++)e=Xi(t.charCodeAt(n),e);return e}class Ji{constructor(e){this.source=e}getElements(){const e=this.source,n=new Int32Array(e.length);for(let i=0,r=e.length;i<r;i++)n[i]=e.charCodeAt(i);return n}}function nl(t,e,n){return new je(new Ji(t),new Ji(e)).ComputeDiff(n).changes}class lt{static Assert(e,n){if(!e)throw new Error(n)}}class ut{static Copy(e,n,i,r,s){for(let a=0;a<s;a++)i[r+a]=e[n+a]}static Copy2(e,n,i,r,s){for(let a=0;a<s;a++)i[r+a]=e[n+a]}}class Qi{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 Ve(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,n){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_originalCount++}AddModifiedElement(e,n){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class je{constructor(e,n,i=null){this.ContinueProcessingPredicate=i,this._originalSequence=e,this._modifiedSequence=n;const[r,s,a]=je._getElements(e),[l,o,u]=je._getElements(n);this._hasStrings=a&&u,this._originalStringElements=r,this._originalElementsOrHash=s,this._modifiedStringElements=l,this._modifiedElementsOrHash=o,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&typeof e[0]=="string"}static _getElements(e){const n=e.getElements();if(je._isStringArray(n)){const i=new Int32Array(n.length);for(let r=0,s=n.length;r<s;r++)i[r]=tl(n[r],0);return[n,i,!0]}return n instanceof Int32Array?[[],n,!1]:[[],new Int32Array(n),!1]}ElementsAreEqual(e,n){return this._originalElementsOrHash[e]!==this._modifiedElementsOrHash[n]?!1:this._hasStrings?this._originalStringElements[e]===this._modifiedStringElements[n]:!0}ElementsAreStrictEqual(e,n){if(!this.ElementsAreEqual(e,n))return!1;const i=je._getStrictElement(this._originalSequence,e),r=je._getStrictElement(this._modifiedSequence,n);return i===r}static _getStrictElement(e,n){return typeof e.getStrictElement=="function"?e.getStrictElement(n):null}OriginalElementsAreEqual(e,n){return this._originalElementsOrHash[e]!==this._originalElementsOrHash[n]?!1:this._hasStrings?this._originalStringElements[e]===this._originalStringElements[n]:!0}ModifiedElementsAreEqual(e,n){return this._modifiedElementsOrHash[e]!==this._modifiedElementsOrHash[n]?!1:this._hasStrings?this._modifiedStringElements[e]===this._modifiedStringElements[n]:!0}ComputeDiff(e){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,e)}_ComputeDiff(e,n,i,r,s){const a=[!1];let l=this.ComputeDiffRecursive(e,n,i,r,a);return s&&(l=this.PrettifyChanges(l)),{quitEarly:a[0],changes:l}}ComputeDiffRecursive(e,n,i,r,s){for(s[0]=!1;e<=n&&i<=r&&this.ElementsAreEqual(e,i);)e++,i++;for(;n>=e&&r>=i&&this.ElementsAreEqual(n,r);)n--,r--;if(e>n||i>r){let d;return i<=r?(lt.Assert(e===n+1,"originalStart should only be one more than originalEnd"),d=[new Ve(e,0,i,r-i+1)]):e<=n?(lt.Assert(i===r+1,"modifiedStart should only be one more than modifiedEnd"),d=[new Ve(e,n-e+1,i,0)]):(lt.Assert(e===n+1,"originalStart should only be one more than originalEnd"),lt.Assert(i===r+1,"modifiedStart should only be one more than modifiedEnd"),d=[]),d}const a=[0],l=[0],o=this.ComputeRecursionPoint(e,n,i,r,a,l,s),u=a[0],c=l[0];if(o!==null)return o;if(!s[0]){const d=this.ComputeDiffRecursive(e,u,i,c,s);let m=[];return s[0]?m=[new Ve(u+1,n-(u+1)+1,c+1,r-(c+1)+1)]:m=this.ComputeDiffRecursive(u+1,n,c+1,r,s),this.ConcatenateChanges(d,m)}return[new Ve(e,n-e+1,i,r-i+1)]}WALKTRACE(e,n,i,r,s,a,l,o,u,c,d,m,f,w,p,x,T,y){let L=null,I=null,H=new Qi,P=n,b=i,g=f[0]-x[0]-r,_=-1073741824,N=this.m_forwardHistory.length-1;do{const S=g+e;S===P||S<b&&u[S-1]<u[S+1]?(d=u[S+1],w=d-g-r,d<_&&H.MarkNextChange(),_=d,H.AddModifiedElement(d+1,w),g=S+1-e):(d=u[S-1]+1,w=d-g-r,d<_&&H.MarkNextChange(),_=d-1,H.AddOriginalElement(d,w+1),g=S-1-e),N>=0&&(u=this.m_forwardHistory[N],e=u[0],P=1,b=u.length-1)}while(--N>=-1);if(L=H.getReverseChanges(),y[0]){let S=f[0]+1,v=x[0]+1;if(L!==null&&L.length>0){const A=L[L.length-1];S=Math.max(S,A.getOriginalEnd()),v=Math.max(v,A.getModifiedEnd())}I=[new Ve(S,m-S+1,v,p-v+1)]}else{H=new Qi,P=a,b=l,g=f[0]-x[0]-o,_=1073741824,N=T?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const S=g+s;S===P||S<b&&c[S-1]>=c[S+1]?(d=c[S+1]-1,w=d-g-o,d>_&&H.MarkNextChange(),_=d+1,H.AddOriginalElement(d+1,w+1),g=S+1-s):(d=c[S-1],w=d-g-o,d>_&&H.MarkNextChange(),_=d,H.AddModifiedElement(d+1,w+1),g=S-1-s),N>=0&&(c=this.m_reverseHistory[N],s=c[0],P=1,b=c.length-1)}while(--N>=-1);I=H.getChanges()}return this.ConcatenateChanges(L,I)}ComputeRecursionPoint(e,n,i,r,s,a,l){let o=0,u=0,c=0,d=0,m=0,f=0;e--,i--,s[0]=0,a[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const w=n-e+(r-i),p=w+1,x=new Int32Array(p),T=new Int32Array(p),y=r-i,L=n-e,I=e-i,H=n-r,b=(L-y)%2===0;x[y]=e,T[L]=n,l[0]=!1;for(let g=1;g<=w/2+1;g++){let _=0,N=0;c=this.ClipDiagonalBound(y-g,g,y,p),d=this.ClipDiagonalBound(y+g,g,y,p);for(let v=c;v<=d;v+=2){v===c||v<d&&x[v-1]<x[v+1]?o=x[v+1]:o=x[v-1]+1,u=o-(v-y)-I;const A=o;for(;o<n&&u<r&&this.ElementsAreEqual(o+1,u+1);)o++,u++;if(x[v]=o,o+u>_+N&&(_=o,N=u),!b&&Math.abs(v-L)<=g-1&&o>=T[v])return s[0]=o,a[0]=u,A<=T[v]&&g<=1448?this.WALKTRACE(y,c,d,I,L,m,f,H,x,T,o,n,s,u,r,a,b,l):null}const S=(_-e+(N-i)-g)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(_,S))return l[0]=!0,s[0]=_,a[0]=N,S>0&&g<=1448?this.WALKTRACE(y,c,d,I,L,m,f,H,x,T,o,n,s,u,r,a,b,l):(e++,i++,[new Ve(e,n-e+1,i,r-i+1)]);m=this.ClipDiagonalBound(L-g,g,L,p),f=this.ClipDiagonalBound(L+g,g,L,p);for(let v=m;v<=f;v+=2){v===m||v<f&&T[v-1]>=T[v+1]?o=T[v+1]-1:o=T[v-1],u=o-(v-L)-H;const A=o;for(;o>e&&u>i&&this.ElementsAreEqual(o,u);)o--,u--;if(T[v]=o,b&&Math.abs(v-y)<=g&&o<=x[v])return s[0]=o,a[0]=u,A>=x[v]&&g<=1448?this.WALKTRACE(y,c,d,I,L,m,f,H,x,T,o,n,s,u,r,a,b,l):null}if(g<=1447){let v=new Int32Array(d-c+2);v[0]=y-c+1,ut.Copy2(x,c,v,1,d-c+1),this.m_forwardHistory.push(v),v=new Int32Array(f-m+2),v[0]=L-m+1,ut.Copy2(T,m,v,1,f-m+1),this.m_reverseHistory.push(v)}}return this.WALKTRACE(y,c,d,I,L,m,f,H,x,T,o,n,s,u,r,a,b,l)}PrettifyChanges(e){for(let n=0;n<e.length;n++){const i=e[n],r=n<e.length-1?e[n+1].originalStart:this._originalElementsOrHash.length,s=n<e.length-1?e[n+1].modifiedStart:this._modifiedElementsOrHash.length,a=i.originalLength>0,l=i.modifiedLength>0;for(;i.originalStart+i.originalLength<r&&i.modifiedStart+i.modifiedLength<s&&(!a||this.OriginalElementsAreEqual(i.originalStart,i.originalStart+i.originalLength))&&(!l||this.ModifiedElementsAreEqual(i.modifiedStart,i.modifiedStart+i.modifiedLength));){const u=this.ElementsAreStrictEqual(i.originalStart,i.modifiedStart);if(this.ElementsAreStrictEqual(i.originalStart+i.originalLength,i.modifiedStart+i.modifiedLength)&&!u)break;i.originalStart++,i.modifiedStart++}const o=[null];if(n<e.length-1&&this.ChangesOverlap(e[n],e[n+1],o)){e[n]=o[0],e.splice(n+1,1),n--;continue}}for(let n=e.length-1;n>=0;n--){const i=e[n];let r=0,s=0;if(n>0){const d=e[n-1];r=d.originalStart+d.originalLength,s=d.modifiedStart+d.modifiedLength}const a=i.originalLength>0,l=i.modifiedLength>0;let o=0,u=this._boundaryScore(i.originalStart,i.originalLength,i.modifiedStart,i.modifiedLength);for(let d=1;;d++){const m=i.originalStart-d,f=i.modifiedStart-d;if(m<r||f<s||a&&!this.OriginalElementsAreEqual(m,m+i.originalLength)||l&&!this.ModifiedElementsAreEqual(f,f+i.modifiedLength))break;const p=(m===r&&f===s?5:0)+this._boundaryScore(m,i.originalLength,f,i.modifiedLength);p>u&&(u=p,o=d)}i.originalStart-=o,i.modifiedStart-=o;const c=[null];if(n>0&&this.ChangesOverlap(e[n-1],e[n],c)){e[n-1]=c[0],e.splice(n,1),n++;continue}}if(this._hasStrings)for(let n=1,i=e.length;n<i;n++){const r=e[n-1],s=e[n],a=s.originalStart-r.originalStart-r.originalLength,l=r.originalStart,o=s.originalStart+s.originalLength,u=o-l,c=r.modifiedStart,d=s.modifiedStart+s.modifiedLength,m=d-c;if(a<5&&u<20&&m<20){const f=this._findBetterContiguousSequence(l,u,c,m,a);if(f){const[w,p]=f;(w!==r.originalStart+r.originalLength||p!==r.modifiedStart+r.modifiedLength)&&(r.originalLength=w-r.originalStart,r.modifiedLength=p-r.modifiedStart,s.originalStart=w+a,s.modifiedStart=p+a,s.originalLength=o-s.originalStart,s.modifiedLength=d-s.modifiedStart)}}}return e}_findBetterContiguousSequence(e,n,i,r,s){if(n<s||r<s)return null;const a=e+n-s+1,l=i+r-s+1;let o=0,u=0,c=0;for(let d=e;d<a;d++)for(let m=i;m<l;m++){const f=this._contiguousSequenceScore(d,m,s);f>0&&f>o&&(o=f,u=d,c=m)}return o>0?[u,c]:null}_contiguousSequenceScore(e,n,i){let r=0;for(let s=0;s<i;s++){if(!this.ElementsAreEqual(e+s,n+s))return 0;r+=this._originalStringElements[e+s].length}return r}_OriginalIsBoundary(e){return e<=0||e>=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,n){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(n>0){const i=e+n;if(this._OriginalIsBoundary(i-1)||this._OriginalIsBoundary(i))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,n){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(n>0){const i=e+n;if(this._ModifiedIsBoundary(i-1)||this._ModifiedIsBoundary(i))return!0}return!1}_boundaryScore(e,n,i,r){const s=this._OriginalRegionIsBoundary(e,n)?1:0,a=this._ModifiedRegionIsBoundary(i,r)?1:0;return s+a}ConcatenateChanges(e,n){const i=[];if(e.length===0||n.length===0)return n.length>0?n:e;if(this.ChangesOverlap(e[e.length-1],n[0],i)){const r=new Array(e.length+n.length-1);return ut.Copy(e,0,r,0,e.length-1),r[e.length-1]=i[0],ut.Copy(n,1,r,e.length,n.length-1),r}else{const r=new Array(e.length+n.length);return ut.Copy(e,0,r,0,e.length),ut.Copy(n,0,r,e.length,n.length),r}}ChangesOverlap(e,n,i){if(lt.Assert(e.originalStart<=n.originalStart,"Left change is not less than or equal to right change"),lt.Assert(e.modifiedStart<=n.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=n.originalStart||e.modifiedStart+e.modifiedLength>=n.modifiedStart){const r=e.originalStart;let s=e.originalLength;const a=e.modifiedStart;let l=e.modifiedLength;return e.originalStart+e.originalLength>=n.originalStart&&(s=n.originalStart+n.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=n.modifiedStart&&(l=n.modifiedStart+n.modifiedLength-e.modifiedStart),i[0]=new Ve(r,s,a,l),!0}else return i[0]=null,!1}ClipDiagonalBound(e,n,i,r){if(e>=0&&e<r)return e;const s=i,a=r-i-1,l=n%2===0;if(e<0){const o=s%2===0;return l===o?0:1}else{const o=a%2===0;return l===o?r-1:r-2}}}let K=class st{constructor(e,n){this.lineNumber=e,this.column=n}with(e=this.lineNumber,n=this.column){return e===this.lineNumber&&n===this.column?this:new st(e,n)}delta(e=0,n=0){return this.with(Math.max(1,this.lineNumber+e),Math.max(1,this.column+n))}equals(e){return st.equals(this,e)}static equals(e,n){return!e&&!n?!0:!!e&&!!n&&e.lineNumber===n.lineNumber&&e.column===n.column}isBefore(e){return st.isBefore(this,e)}static isBefore(e,n){return e.lineNumber<n.lineNumber?!0:n.lineNumber<e.lineNumber?!1:e.column<n.column}isBeforeOrEqual(e){return st.isBeforeOrEqual(this,e)}static isBeforeOrEqual(e,n){return e.lineNumber<n.lineNumber?!0:n.lineNumber<e.lineNumber?!1:e.column<=n.column}static compare(e,n){const i=e.lineNumber|0,r=n.lineNumber|0;if(i===r){const s=e.column|0,a=n.column|0;return s-a}return i-r}clone(){return new st(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(e){return new st(e.lineNumber,e.column)}static isIPosition(e){return!!e&&typeof e.lineNumber=="number"&&typeof e.column=="number"}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}},j=class re{constructor(e,n,i,r){e>i||e===i&&n>r?(this.startLineNumber=i,this.startColumn=r,this.endLineNumber=e,this.endColumn=n):(this.startLineNumber=e,this.startColumn=n,this.endLineNumber=i,this.endColumn=r)}isEmpty(){return re.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return re.containsPosition(this,e)}static containsPosition(e,n){return!(n.lineNumber<e.startLineNumber||n.lineNumber>e.endLineNumber||n.lineNumber===e.startLineNumber&&n.column<e.startColumn||n.lineNumber===e.endLineNumber&&n.column>e.endColumn)}static strictContainsPosition(e,n){return!(n.lineNumber<e.startLineNumber||n.lineNumber>e.endLineNumber||n.lineNumber===e.startLineNumber&&n.column<=e.startColumn||n.lineNumber===e.endLineNumber&&n.column>=e.endColumn)}containsRange(e){return re.containsRange(this,e)}static containsRange(e,n){return!(n.startLineNumber<e.startLineNumber||n.endLineNumber<e.startLineNumber||n.startLineNumber>e.endLineNumber||n.endLineNumber>e.endLineNumber||n.startLineNumber===e.startLineNumber&&n.startColumn<e.startColumn||n.endLineNumber===e.endLineNumber&&n.endColumn>e.endColumn)}strictContainsRange(e){return re.strictContainsRange(this,e)}static strictContainsRange(e,n){return!(n.startLineNumber<e.startLineNumber||n.endLineNumber<e.startLineNumber||n.startLineNumber>e.endLineNumber||n.endLineNumber>e.endLineNumber||n.startLineNumber===e.startLineNumber&&n.startColumn<=e.startColumn||n.endLineNumber===e.endLineNumber&&n.endColumn>=e.endColumn)}plusRange(e){return re.plusRange(this,e)}static plusRange(e,n){let i,r,s,a;return n.startLineNumber<e.startLineNumber?(i=n.startLineNumber,r=n.startColumn):n.startLineNumber===e.startLineNumber?(i=n.startLineNumber,r=Math.min(n.startColumn,e.startColumn)):(i=e.startLineNumber,r=e.startColumn),n.endLineNumber>e.endLineNumber?(s=n.endLineNumber,a=n.endColumn):n.endLineNumber===e.endLineNumber?(s=n.endLineNumber,a=Math.max(n.endColumn,e.endColumn)):(s=e.endLineNumber,a=e.endColumn),new re(i,r,s,a)}intersectRanges(e){return re.intersectRanges(this,e)}static intersectRanges(e,n){let i=e.startLineNumber,r=e.startColumn,s=e.endLineNumber,a=e.endColumn;const l=n.startLineNumber,o=n.startColumn,u=n.endLineNumber,c=n.endColumn;return i<l?(i=l,r=o):i===l&&(r=Math.max(r,o)),s>u?(s=u,a=c):s===u&&(a=Math.min(a,c)),i>s||i===s&&r>a?null:new re(i,r,s,a)}equalsRange(e){return re.equalsRange(this,e)}static equalsRange(e,n){return!e&&!n?!0:!!e&&!!n&&e.startLineNumber===n.startLineNumber&&e.startColumn===n.startColumn&&e.endLineNumber===n.endLineNumber&&e.endColumn===n.endColumn}getEndPosition(){return re.getEndPosition(this)}static getEndPosition(e){return new K(e.endLineNumber,e.endColumn)}getStartPosition(){return re.getStartPosition(this)}static getStartPosition(e){return new K(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,n){return new re(this.startLineNumber,this.startColumn,e,n)}setStartPosition(e,n){return new re(e,n,this.endLineNumber,this.endColumn)}collapseToStart(){return re.collapseToStart(this)}static collapseToStart(e){return new re(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return re.collapseToEnd(this)}static collapseToEnd(e){return new re(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new re(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}isSingleLine(){return this.startLineNumber===this.endLineNumber}static fromPositions(e,n=e){return new re(e.lineNumber,e.column,n.lineNumber,n.column)}static lift(e){return e?new re(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return!!e&&typeof e.startLineNumber=="number"&&typeof e.startColumn=="number"&&typeof e.endLineNumber=="number"&&typeof e.endColumn=="number"}static areIntersectingOrTouching(e,n){return!(e.endLineNumber<n.startLineNumber||e.endLineNumber===n.startLineNumber&&e.endColumn<n.startColumn||n.endLineNumber<e.startLineNumber||n.endLineNumber===e.startLineNumber&&n.endColumn<e.startColumn)}static areIntersecting(e,n){return!(e.endLineNumber<n.startLineNumber||e.endLineNumber===n.startLineNumber&&e.endColumn<=n.startColumn||n.endLineNumber<e.startLineNumber||n.endLineNumber===e.startLineNumber&&n.endColumn<=e.startColumn)}static areOnlyIntersecting(e,n){return!(e.endLineNumber<n.startLineNumber-1||e.endLineNumber===n.startLineNumber&&e.endColumn<n.startColumn-1||n.endLineNumber<e.startLineNumber-1||n.endLineNumber===e.startLineNumber&&n.endColumn<e.startColumn-1)}static compareRangesUsingStarts(e,n){if(e&&n){const s=e.startLineNumber|0,a=n.startLineNumber|0;if(s===a){const l=e.startColumn|0,o=n.startColumn|0;if(l===o){const u=e.endLineNumber|0,c=n.endLineNumber|0;if(u===c){const d=e.endColumn|0,m=n.endColumn|0;return d-m}return u-c}return l-o}return s-a}return(e?1:0)-(n?1:0)}static compareRangesUsingEnds(e,n){return e.endLineNumber===n.endLineNumber?e.endColumn===n.endColumn?e.startLineNumber===n.startLineNumber?e.startColumn-n.startColumn:e.startLineNumber-n.startLineNumber:e.endColumn-n.endColumn:e.endLineNumber-n.endLineNumber}static spansMultipleLines(e){return e.endLineNumber>e.startLineNumber}toJSON(){return this}};function Yi(t){return t<0?0:t>255?255:t|0}function ct(t){return t<0?0:t>4294967295?4294967295:t|0}class qn{constructor(e){const n=Yi(e);this._defaultValue=n,this._asciiMap=qn._createAsciiMap(n),this._map=new Map}static _createAsciiMap(e){const n=new Uint8Array(256);return n.fill(e),n}set(e,n){const i=Yi(n);e>=0&&e<256?this._asciiMap[e]=i:this._map.set(e,i)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}class il{constructor(e,n,i){const r=new Uint8Array(e*n);for(let s=0,a=e*n;s<a;s++)r[s]=i;this._data=r,this.rows=e,this.cols=n}get(e,n){return this._data[e*this.cols+n]}set(e,n,i){this._data[e*this.cols+n]=i}}class rl{constructor(e){let n=0,i=0;for(let s=0,a=e.length;s<a;s++){const[l,o,u]=e[s];o>n&&(n=o),l>i&&(i=l),u>i&&(i=u)}n++,i++;const r=new il(i,n,0);for(let s=0,a=e.length;s<a;s++){const[l,o,u]=e[s];r.set(l,o,u)}this._states=r,this._maxCharCode=n}nextState(e,n){return n<0||n>=this._maxCharCode?0:this._states.get(e,n)}}let On=null;function sl(){return On===null&&(On=new rl([[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]])),On}let Dt=null;function al(){if(Dt===null){Dt=new qn(0);const t=` <>'"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…|`;for(let n=0;n<t.length;n++)Dt.set(t.charCodeAt(n),1);const e=".,;:";for(let n=0;n<e.length;n++)Dt.set(e.charCodeAt(n),2)}return Dt}class Yt{static _createLink(e,n,i,r,s){let a=s-1;do{const l=n.charCodeAt(a);if(e.get(l)!==2)break;a--}while(a>r);if(r>0){const l=n.charCodeAt(r-1),o=n.charCodeAt(a);(l===40&&o===41||l===91&&o===93||l===123&&o===125)&&a--}return{range:{startLineNumber:i,startColumn:r+1,endLineNumber:i,endColumn:a+2},url:n.substring(r,a+1)}}static computeLinks(e,n=sl()){const i=al(),r=[];for(let s=1,a=e.getLineCount();s<=a;s++){const l=e.getLineContent(s),o=l.length;let u=0,c=0,d=0,m=1,f=!1,w=!1,p=!1,x=!1;for(;u<o;){let T=!1;const y=l.charCodeAt(u);if(m===13){let L;switch(y){case 40:f=!0,L=0;break;case 41:L=f?0:1;break;case 91:p=!0,w=!0,L=0;break;case 93:p=!1,L=w?0:1;break;case 123:x=!0,L=0;break;case 125:L=x?0:1;break;case 39:case 34:case 96:d===y?L=1:d===39||d===34||d===96?L=0:L=1;break;case 42:L=d===42?1:0;break;case 32:L=p?0:1;break;default:L=i.get(y)}L===1&&(r.push(Yt._createLink(i,l,s,c,u)),T=!0)}else if(m===12){let L;y===91?(w=!0,L=0):L=i.get(y),L===1?T=!0:m=13}else m=n.nextState(m,y),m===0&&(T=!0);T&&(m=1,f=!1,w=!1,x=!1,c=u+1,d=y),u++}m===13&&r.push(Yt._createLink(i,l,s,c,o))}return r}}function ol(t){return!t||typeof t.getLineCount!="function"||typeof t.getLineContent!="function"?[]:Yt.computeLinks(t)}const kn=class kn{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(e,n,i,r,s){if(e&&n){const a=this.doNavigateValueSet(n,s);if(a)return{range:e,value:a}}if(i&&r){const a=this.doNavigateValueSet(r,s);if(a)return{range:i,value:a}}return null}doNavigateValueSet(e,n){const i=this.numberReplace(e,n);return i!==null?i:this.textReplace(e,n)}numberReplace(e,n){const i=Math.pow(10,e.length-(e.lastIndexOf(".")+1));let r=Number(e);const s=parseFloat(e);return!isNaN(r)&&!isNaN(s)&&r===s?r===0&&!n?null:(r=Math.floor(r*i),r+=n?i:-i,String(r/i)):null}textReplace(e,n){return this.valueSetsReplace(this._defaultValueSet,e,n)}valueSetsReplace(e,n,i){let r=null;for(let s=0,a=e.length;r===null&&s<a;s++)r=this.valueSetReplace(e[s],n,i);return r}valueSetReplace(e,n,i){let r=e.indexOf(n);return r>=0?(r+=i?1:-1,r<0?r=e.length-1:r%=e.length,e[r]):null}};kn.INSTANCE=new kn;let Vn=kn;const Zi=Object.freeze(function(t,e){const n=setTimeout(t.bind(e),0);return{dispose(){clearTimeout(n)}}});var Zt;(function(t){function e(n){return n===t.None||n===t.Cancelled||n instanceof Kt?!0:!n||typeof n!="object"?!1:typeof n.isCancellationRequested=="boolean"&&typeof n.onCancellationRequested=="function"}t.isCancellationToken=e,t.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Rn.None}),t.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Zi})})(Zt||(Zt={}));class Kt{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?Zi:(this._emitter||(this._emitter=new Re),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class ll{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new Kt),this._token}cancel(){this._token?this._token instanceof Kt&&this._token.cancel():this._token=Zt.Cancelled}dispose(e=!1){var n;e&&this.cancel(),(n=this._parentListener)==null||n.dispose(),this._token?this._token instanceof Kt&&this._token.dispose():this._token=Zt.None}}class jn{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,n){this._keyCodeToStr[e]=n,this._strToKeyCode[n.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const en=new jn,$n=new jn,Gn=new jn,ul=new Array(230),cl=Object.create(null),hl=Object.create(null);(function(){const e=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN","",""],[1,1,"Hyper",0,"",0,"","",""],[1,2,"Super",0,"",0,"","",""],[1,3,"Fn",0,"",0,"","",""],[1,4,"FnLock",0,"",0,"","",""],[1,5,"Suspend",0,"",0,"","",""],[1,6,"Resume",0,"",0,"","",""],[1,7,"Turbo",0,"",0,"","",""],[1,8,"Sleep",0,"",0,"VK_SLEEP","",""],[1,9,"WakeUp",0,"",0,"","",""],[0,10,"KeyA",31,"A",65,"VK_A","",""],[0,11,"KeyB",32,"B",66,"VK_B","",""],[0,12,"KeyC",33,"C",67,"VK_C","",""],[0,13,"KeyD",34,"D",68,"VK_D","",""],[0,14,"KeyE",35,"E",69,"VK_E","",""],[0,15,"KeyF",36,"F",70,"VK_F","",""],[0,16,"KeyG",37,"G",71,"VK_G","",""],[0,17,"KeyH",38,"H",72,"VK_H","",""],[0,18,"KeyI",39,"I",73,"VK_I","",""],[0,19,"KeyJ",40,"J",74,"VK_J","",""],[0,20,"KeyK",41,"K",75,"VK_K","",""],[0,21,"KeyL",42,"L",76,"VK_L","",""],[0,22,"KeyM",43,"M",77,"VK_M","",""],[0,23,"KeyN",44,"N",78,"VK_N","",""],[0,24,"KeyO",45,"O",79,"VK_O","",""],[0,25,"KeyP",46,"P",80,"VK_P","",""],[0,26,"KeyQ",47,"Q",81,"VK_Q","",""],[0,27,"KeyR",48,"R",82,"VK_R","",""],[0,28,"KeyS",49,"S",83,"VK_S","",""],[0,29,"KeyT",50,"T",84,"VK_T","",""],[0,30,"KeyU",51,"U",85,"VK_U","",""],[0,31,"KeyV",52,"V",86,"VK_V","",""],[0,32,"KeyW",53,"W",87,"VK_W","",""],[0,33,"KeyX",54,"X",88,"VK_X","",""],[0,34,"KeyY",55,"Y",89,"VK_Y","",""],[0,35,"KeyZ",56,"Z",90,"VK_Z","",""],[0,36,"Digit1",22,"1",49,"VK_1","",""],[0,37,"Digit2",23,"2",50,"VK_2","",""],[0,38,"Digit3",24,"3",51,"VK_3","",""],[0,39,"Digit4",25,"4",52,"VK_4","",""],[0,40,"Digit5",26,"5",53,"VK_5","",""],[0,41,"Digit6",27,"6",54,"VK_6","",""],[0,42,"Digit7",28,"7",55,"VK_7","",""],[0,43,"Digit8",29,"8",56,"VK_8","",""],[0,44,"Digit9",30,"9",57,"VK_9","",""],[0,45,"Digit0",21,"0",48,"VK_0","",""],[1,46,"Enter",3,"Enter",13,"VK_RETURN","",""],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE","",""],[1,48,"Backspace",1,"Backspace",8,"VK_BACK","",""],[1,49,"Tab",2,"Tab",9,"VK_TAB","",""],[1,50,"Space",10,"Space",32,"VK_SPACE","",""],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,"",0,"","",""],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL","",""],[1,64,"F1",59,"F1",112,"VK_F1","",""],[1,65,"F2",60,"F2",113,"VK_F2","",""],[1,66,"F3",61,"F3",114,"VK_F3","",""],[1,67,"F4",62,"F4",115,"VK_F4","",""],[1,68,"F5",63,"F5",116,"VK_F5","",""],[1,69,"F6",64,"F6",117,"VK_F6","",""],[1,70,"F7",65,"F7",118,"VK_F7","",""],[1,71,"F8",66,"F8",119,"VK_F8","",""],[1,72,"F9",67,"F9",120,"VK_F9","",""],[1,73,"F10",68,"F10",121,"VK_F10","",""],[1,74,"F11",69,"F11",122,"VK_F11","",""],[1,75,"F12",70,"F12",123,"VK_F12","",""],[1,76,"PrintScreen",0,"",0,"","",""],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL","",""],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE","",""],[1,79,"Insert",19,"Insert",45,"VK_INSERT","",""],[1,80,"Home",14,"Home",36,"VK_HOME","",""],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR","",""],[1,82,"Delete",20,"Delete",46,"VK_DELETE","",""],[1,83,"End",13,"End",35,"VK_END","",""],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT","",""],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",""],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",""],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",""],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",""],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK","",""],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE","",""],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY","",""],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT","",""],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD","",""],[1,94,"NumpadEnter",3,"",0,"","",""],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1","",""],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2","",""],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3","",""],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4","",""],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5","",""],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6","",""],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7","",""],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8","",""],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9","",""],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0","",""],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL","",""],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102","",""],[1,107,"ContextMenu",58,"ContextMenu",93,"","",""],[1,108,"Power",0,"",0,"","",""],[1,109,"NumpadEqual",0,"",0,"","",""],[1,110,"F13",71,"F13",124,"VK_F13","",""],[1,111,"F14",72,"F14",125,"VK_F14","",""],[1,112,"F15",73,"F15",126,"VK_F15","",""],[1,113,"F16",74,"F16",127,"VK_F16","",""],[1,114,"F17",75,"F17",128,"VK_F17","",""],[1,115,"F18",76,"F18",129,"VK_F18","",""],[1,116,"F19",77,"F19",130,"VK_F19","",""],[1,117,"F20",78,"F20",131,"VK_F20","",""],[1,118,"F21",79,"F21",132,"VK_F21","",""],[1,119,"F22",80,"F22",133,"VK_F22","",""],[1,120,"F23",81,"F23",134,"VK_F23","",""],[1,121,"F24",82,"F24",135,"VK_F24","",""],[1,122,"Open",0,"",0,"","",""],[1,123,"Help",0,"",0,"","",""],[1,124,"Select",0,"",0,"","",""],[1,125,"Again",0,"",0,"","",""],[1,126,"Undo",0,"",0,"","",""],[1,127,"Cut",0,"",0,"","",""],[1,128,"Copy",0,"",0,"","",""],[1,129,"Paste",0,"",0,"","",""],[1,130,"Find",0,"",0,"","",""],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE","",""],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP","",""],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN","",""],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR","",""],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1","",""],[1,136,"KanaMode",0,"",0,"","",""],[0,137,"IntlYen",0,"",0,"","",""],[1,138,"Convert",0,"",0,"","",""],[1,139,"NonConvert",0,"",0,"","",""],[1,140,"Lang1",0,"",0,"","",""],[1,141,"Lang2",0,"",0,"","",""],[1,142,"Lang3",0,"",0,"","",""],[1,143,"Lang4",0,"",0,"","",""],[1,144,"Lang5",0,"",0,"","",""],[1,145,"Abort",0,"",0,"","",""],[1,146,"Props",0,"",0,"","",""],[1,147,"NumpadParenLeft",0,"",0,"","",""],[1,148,"NumpadParenRight",0,"",0,"","",""],[1,149,"NumpadBackspace",0,"",0,"","",""],[1,150,"NumpadMemoryStore",0,"",0,"","",""],[1,151,"NumpadMemoryRecall",0,"",0,"","",""],[1,152,"NumpadMemoryClear",0,"",0,"","",""],[1,153,"NumpadMemoryAdd",0,"",0,"","",""],[1,154,"NumpadMemorySubtract",0,"",0,"","",""],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR","",""],[1,156,"NumpadClearEntry",0,"",0,"","",""],[1,0,"",5,"Ctrl",17,"VK_CONTROL","",""],[1,0,"",4,"Shift",16,"VK_SHIFT","",""],[1,0,"",6,"Alt",18,"VK_MENU","",""],[1,0,"",57,"Meta",91,"VK_COMMAND","",""],[1,157,"ControlLeft",5,"",0,"VK_LCONTROL","",""],[1,158,"ShiftLeft",4,"",0,"VK_LSHIFT","",""],[1,159,"AltLeft",6,"",0,"VK_LMENU","",""],[1,160,"MetaLeft",57,"",0,"VK_LWIN","",""],[1,161,"ControlRight",5,"",0,"VK_RCONTROL","",""],[1,162,"ShiftRight",4,"",0,"VK_RSHIFT","",""],[1,163,"AltRight",6,"",0,"VK_RMENU","",""],[1,164,"MetaRight",57,"",0,"VK_RWIN","",""],[1,165,"BrightnessUp",0,"",0,"","",""],[1,166,"BrightnessDown",0,"",0,"","",""],[1,167,"MediaPlay",0,"",0,"","",""],[1,168,"MediaRecord",0,"",0,"","",""],[1,169,"MediaFastForward",0,"",0,"","",""],[1,170,"MediaRewind",0,"",0,"","",""],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK","",""],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK","",""],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP","",""],[1,174,"Eject",0,"",0,"","",""],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE","",""],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT","",""],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL","",""],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2","",""],[1,179,"LaunchApp1",0,"",0,"VK_MEDIA_LAUNCH_APP1","",""],[1,180,"SelectTask",0,"",0,"","",""],[1,181,"LaunchScreenSaver",0,"",0,"","",""],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH","",""],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME","",""],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK","",""],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD","",""],[1,186,"BrowserStop",0,"",0,"VK_BROWSER_STOP","",""],[1,187,"BrowserRefresh",0,"",0,"VK_BROWSER_REFRESH","",""],[1,188,"BrowserFavorites",0,"",0,"VK_BROWSER_FAVORITES","",""],[1,189,"ZoomToggle",0,"",0,"","",""],[1,190,"MailReply",0,"",0,"","",""],[1,191,"MailForward",0,"",0,"","",""],[1,192,"MailSend",0,"",0,"","",""],[1,0,"",114,"KeyInComposition",229,"","",""],[1,0,"",116,"ABNT_C2",194,"VK_ABNT_C2","",""],[1,0,"",96,"OEM_8",223,"VK_OEM_8","",""],[1,0,"",0,"",0,"VK_KANA","",""],[1,0,"",0,"",0,"VK_HANGUL","",""],[1,0,"",0,"",0,"VK_JUNJA","",""],[1,0,"",0,"",0,"VK_FINAL","",""],[1,0,"",0,"",0,"VK_HANJA","",""],[1,0,"",0,"",0,"VK_KANJI","",""],[1,0,"",0,"",0,"VK_CONVERT","",""],[1,0,"",0,"",0,"VK_NONCONVERT","",""],[1,0,"",0,"",0,"VK_ACCEPT","",""],[1,0,"",0,"",0,"VK_MODECHANGE","",""],[1,0,"",0,"",0,"VK_SELECT","",""],[1,0,"",0,"",0,"VK_PRINT","",""],[1,0,"",0,"",0,"VK_EXECUTE","",""],[1,0,"",0,"",0,"VK_SNAPSHOT","",""],[1,0,"",0,"",0,"VK_HELP","",""],[1,0,"",0,"",0,"VK_APPS","",""],[1,0,"",0,"",0,"VK_PROCESSKEY","",""],[1,0,"",0,"",0,"VK_PACKET","",""],[1,0,"",0,"",0,"VK_DBE_SBCSCHAR","",""],[1,0,"",0,"",0,"VK_DBE_DBCSCHAR","",""],[1,0,"",0,"",0,"VK_ATTN","",""],[1,0,"",0,"",0,"VK_CRSEL","",""],[1,0,"",0,"",0,"VK_EXSEL","",""],[1,0,"",0,"",0,"VK_EREOF","",""],[1,0,"",0,"",0,"VK_PLAY","",""],[1,0,"",0,"",0,"VK_ZOOM","",""],[1,0,"",0,"",0,"VK_NONAME","",""],[1,0,"",0,"",0,"VK_PA1","",""],[1,0,"",0,"",0,"VK_OEM_CLEAR","",""]],n=[],i=[];for(const r of e){const[s,a,l,o,u,c,d,m,f]=r;if(i[a]||(i[a]=!0,cl[l]=a,hl[l.toLowerCase()]=a),!n[o]){if(n[o]=!0,!u)throw new Error(`String representation missing for key code ${o} around scan code ${l}`);en.define(o,u),$n.define(o,m||u),Gn.define(o,f||m||u)}c&&(ul[c]=o)}})();var Ki;(function(t){function e(l){return en.keyCodeToStr(l)}t.toString=e;function n(l){return en.strToKeyCode(l)}t.fromString=n;function i(l){return $n.keyCodeToStr(l)}t.toUserSettingsUS=i;function r(l){return Gn.keyCodeToStr(l)}t.toUserSettingsGeneral=r;function s(l){return $n.strToKeyCode(l)||Gn.strToKeyCode(l)}t.fromUserSettings=s;function a(l){if(l>=98&&l<=113)return null;switch(l){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return en.keyCodeToStr(l)}t.toElectronAccelerator=a})(Ki||(Ki={}));function dl(t,e){const n=(e&65535)<<16>>>0;return(t|n)>>>0}var er={};let ht;const Xn=globalThis.vscode;if(typeof Xn<"u"&&typeof Xn.process<"u"){const t=Xn.process;ht={get platform(){return t.platform},get arch(){return t.arch},get env(){return t.env},cwd(){return t.cwd()}}}else typeof process<"u"&&typeof((uo=process==null?void 0:process.versions)==null?void 0:uo.node)=="string"?ht={get platform(){return process.platform},get arch(){return process.arch},get env(){return er},cwd(){return er.VSCODE_CWD||process.cwd()}}:ht={get platform(){return Ct?"win32":Ro?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const tn=ht.cwd,ml=ht.env,fl=ht.platform,pl=65,gl=97,bl=90,wl=122,tt=46,oe=47,de=92,Ue=58,_l=63;class tr extends Error{constructor(e,n,i){let r;typeof n=="string"&&n.indexOf("not ")===0?(r="must not be",n=n.replace(/^not /,"")):r="must be";const s=e.indexOf(".")!==-1?"property":"argument";let a=`The "${e}" ${s} ${r} of type ${n}`;a+=`. Received type ${typeof i}`,super(a),this.code="ERR_INVALID_ARG_TYPE"}}function vl(t,e){if(t===null||typeof t!="object")throw new tr(e,"Object",t)}function ie(t,e){if(typeof t!="string")throw new tr(e,"string",t)}const $e=fl==="win32";function $(t){return t===oe||t===de}function Jn(t){return t===oe}function Pe(t){return t>=pl&&t<=bl||t>=gl&&t<=wl}function nn(t,e,n,i){let r="",s=0,a=-1,l=0,o=0;for(let u=0;u<=t.length;++u){if(u<t.length)o=t.charCodeAt(u);else{if(i(o))break;o=oe}if(i(o)){if(!(a===u-1||l===1))if(l===2){if(r.length<2||s!==2||r.charCodeAt(r.length-1)!==tt||r.charCodeAt(r.length-2)!==tt){if(r.length>2){const c=r.lastIndexOf(n);c===-1?(r="",s=0):(r=r.slice(0,c),s=r.length-1-r.lastIndexOf(n)),a=u,l=0;continue}else if(r.length!==0){r="",s=0,a=u,l=0;continue}}e&&(r+=r.length>0?`${n}..`:"..",s=2)}else r.length>0?r+=`${n}${t.slice(a+1,u)}`:r=t.slice(a+1,u),s=u-a-1;a=u,l=0}else o===tt&&l!==-1?++l:l=-1}return r}function yl(t){return t?`${t[0]==="."?"":"."}${t}`:""}function nr(t,e){vl(e,"pathObject");const n=e.dir||e.root,i=e.base||`${e.name||""}${yl(e.ext)}`;return n?n===e.root?`${n}${i}`:`${n}${t}${i}`:i}const ce={resolve(...t){let e="",n="",i=!1;for(let r=t.length-1;r>=-1;r--){let s;if(r>=0){if(s=t[r],ie(s,`paths[${r}]`),s.length===0)continue}else e.length===0?s=tn():(s=ml[`=${e}`]||tn(),(s===void 0||s.slice(0,2).toLowerCase()!==e.toLowerCase()&&s.charCodeAt(2)===de)&&(s=`${e}\\`));const a=s.length;let l=0,o="",u=!1;const c=s.charCodeAt(0);if(a===1)$(c)&&(l=1,u=!0);else if($(c))if(u=!0,$(s.charCodeAt(1))){let d=2,m=d;for(;d<a&&!$(s.charCodeAt(d));)d++;if(d<a&&d!==m){const f=s.slice(m,d);for(m=d;d<a&&$(s.charCodeAt(d));)d++;if(d<a&&d!==m){for(m=d;d<a&&!$(s.charCodeAt(d));)d++;(d===a||d!==m)&&(o=`\\\\${f}\\${s.slice(m,d)}`,l=d)}}}else l=1;else Pe(c)&&s.charCodeAt(1)===Ue&&(o=s.slice(0,2),l=2,a>2&&$(s.charCodeAt(2))&&(u=!0,l=3));if(o.length>0)if(e.length>0){if(o.toLowerCase()!==e.toLowerCase())continue}else e=o;if(i){if(e.length>0)break}else if(n=`${s.slice(l)}\\${n}`,i=u,u&&e.length>0)break}return n=nn(n,!i,"\\",$),i?`${e}\\${n}`:`${e}${n}`||"."},normalize(t){ie(t,"path");const e=t.length;if(e===0)return".";let n=0,i,r=!1;const s=t.charCodeAt(0);if(e===1)return Jn(s)?"\\":t;if($(s))if(r=!0,$(t.charCodeAt(1))){let l=2,o=l;for(;l<e&&!$(t.charCodeAt(l));)l++;if(l<e&&l!==o){const u=t.slice(o,l);for(o=l;l<e&&$(t.charCodeAt(l));)l++;if(l<e&&l!==o){for(o=l;l<e&&!$(t.charCodeAt(l));)l++;if(l===e)return`\\\\${u}\\${t.slice(o)}\\`;l!==o&&(i=`\\\\${u}\\${t.slice(o,l)}`,n=l)}}}else n=1;else Pe(s)&&t.charCodeAt(1)===Ue&&(i=t.slice(0,2),n=2,e>2&&$(t.charCodeAt(2))&&(r=!0,n=3));let a=n<e?nn(t.slice(n),!r,"\\",$):"";if(a.length===0&&!r&&(a="."),a.length>0&&$(t.charCodeAt(e-1))&&(a+="\\"),!r&&i===void 0&&t.includes(":")){if(a.length>=2&&Pe(a.charCodeAt(0))&&a.charCodeAt(1)===Ue)return`.\\${a}`;let l=t.indexOf(":");do if(l===e-1||$(t.charCodeAt(l+1)))return`.\\${a}`;while((l=t.indexOf(":",l+1))!==-1)}return i===void 0?r?`\\${a}`:a:r?`${i}\\${a}`:`${i}${a}`},isAbsolute(t){ie(t,"path");const e=t.length;if(e===0)return!1;const n=t.charCodeAt(0);return $(n)||e>2&&Pe(n)&&t.charCodeAt(1)===Ue&&$(t.charCodeAt(2))},join(...t){if(t.length===0)return".";let e,n;for(let s=0;s<t.length;++s){const a=t[s];ie(a,"path"),a.length>0&&(e===void 0?e=n=a:e+=`\\${a}`)}if(e===void 0)return".";let i=!0,r=0;if(typeof n=="string"&&$(n.charCodeAt(0))){++r;const s=n.length;s>1&&$(n.charCodeAt(1))&&(++r,s>2&&($(n.charCodeAt(2))?++r:i=!1))}if(i){for(;r<e.length&&$(e.charCodeAt(r));)r++;r>=2&&(e=`\\${e.slice(r)}`)}return ce.normalize(e)},relative(t,e){if(ie(t,"from"),ie(e,"to"),t===e)return"";const n=ce.resolve(t),i=ce.resolve(e);if(n===i||(t=n.toLowerCase(),e=i.toLowerCase(),t===e))return"";if(n.length!==t.length||i.length!==e.length){const w=n.split("\\"),p=i.split("\\");w[w.length-1]===""&&w.pop(),p[p.length-1]===""&&p.pop();const x=w.length,T=p.length,y=x<T?x:T;let L;for(L=0;L<y&&w[L].toLowerCase()===p[L].toLowerCase();L++);return L===0?i:L===y?T>y?p.slice(L).join("\\"):x>y?"..\\".repeat(x-1-L)+"..":"":"..\\".repeat(x-L)+p.slice(L).join("\\")}let r=0;for(;r<t.length&&t.charCodeAt(r)===de;)r++;let s=t.length;for(;s-1>r&&t.charCodeAt(s-1)===de;)s--;const a=s-r;let l=0;for(;l<e.length&&e.charCodeAt(l)===de;)l++;let o=e.length;for(;o-1>l&&e.charCodeAt(o-1)===de;)o--;const u=o-l,c=a<u?a:u;let d=-1,m=0;for(;m<c;m++){const w=t.charCodeAt(r+m);if(w!==e.charCodeAt(l+m))break;w===de&&(d=m)}if(m!==c){if(d===-1)return i}else{if(u>c){if(e.charCodeAt(l+m)===de)return i.slice(l+m+1);if(m===2)return i.slice(l+m)}a>c&&(t.charCodeAt(r+m)===de?d=m:m===2&&(d=3)),d===-1&&(d=0)}let f="";for(m=r+d+1;m<=s;++m)(m===s||t.charCodeAt(m)===de)&&(f+=f.length===0?"..":"\\..");return l+=d,f.length>0?`${f}${i.slice(l,o)}`:(i.charCodeAt(l)===de&&++l,i.slice(l,o))},toNamespacedPath(t){if(typeof t!="string"||t.length===0)return t;const e=ce.resolve(t);if(e.length<=2)return t;if(e.charCodeAt(0)===de){if(e.charCodeAt(1)===de){const n=e.charCodeAt(2);if(n!==_l&&n!==tt)return`\\\\?\\UNC\\${e.slice(2)}`}}else if(Pe(e.charCodeAt(0))&&e.charCodeAt(1)===Ue&&e.charCodeAt(2)===de)return`\\\\?\\${e}`;return e},dirname(t){ie(t,"path");const e=t.length;if(e===0)return".";let n=-1,i=0;const r=t.charCodeAt(0);if(e===1)return $(r)?t:".";if($(r)){if(n=i=1,$(t.charCodeAt(1))){let l=2,o=l;for(;l<e&&!$(t.charCodeAt(l));)l++;if(l<e&&l!==o){for(o=l;l<e&&$(t.charCodeAt(l));)l++;if(l<e&&l!==o){for(o=l;l<e&&!$(t.charCodeAt(l));)l++;if(l===e)return t;l!==o&&(n=i=l+1)}}}}else Pe(r)&&t.charCodeAt(1)===Ue&&(n=e>2&&$(t.charCodeAt(2))?3:2,i=n);let s=-1,a=!0;for(let l=e-1;l>=i;--l)if($(t.charCodeAt(l))){if(!a){s=l;break}}else a=!1;if(s===-1){if(n===-1)return".";s=n}return t.slice(0,s)},basename(t,e){e!==void 0&&ie(e,"suffix"),ie(t,"path");let n=0,i=-1,r=!0,s;if(t.length>=2&&Pe(t.charCodeAt(0))&&t.charCodeAt(1)===Ue&&(n=2),e!==void 0&&e.length>0&&e.length<=t.length){if(e===t)return"";let a=e.length-1,l=-1;for(s=t.length-1;s>=n;--s){const o=t.charCodeAt(s);if($(o)){if(!r){n=s+1;break}}else l===-1&&(r=!1,l=s+1),a>=0&&(o===e.charCodeAt(a)?--a===-1&&(i=s):(a=-1,i=l))}return n===i?i=l:i===-1&&(i=t.length),t.slice(n,i)}for(s=t.length-1;s>=n;--s)if($(t.charCodeAt(s))){if(!r){n=s+1;break}}else i===-1&&(r=!1,i=s+1);return i===-1?"":t.slice(n,i)},extname(t){ie(t,"path");let e=0,n=-1,i=0,r=-1,s=!0,a=0;t.length>=2&&t.charCodeAt(1)===Ue&&Pe(t.charCodeAt(0))&&(e=i=2);for(let l=t.length-1;l>=e;--l){const o=t.charCodeAt(l);if($(o)){if(!s){i=l+1;break}continue}r===-1&&(s=!1,r=l+1),o===tt?n===-1?n=l:a!==1&&(a=1):n!==-1&&(a=-1)}return n===-1||r===-1||a===0||a===1&&n===r-1&&n===i+1?"":t.slice(n,r)},format:nr.bind(null,"\\"),parse(t){ie(t,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return e;const n=t.length;let i=0,r=t.charCodeAt(0);if(n===1)return $(r)?(e.root=e.dir=t,e):(e.base=e.name=t,e);if($(r)){if(i=1,$(t.charCodeAt(1))){let d=2,m=d;for(;d<n&&!$(t.charCodeAt(d));)d++;if(d<n&&d!==m){for(m=d;d<n&&$(t.charCodeAt(d));)d++;if(d<n&&d!==m){for(m=d;d<n&&!$(t.charCodeAt(d));)d++;d===n?i=d:d!==m&&(i=d+1)}}}}else if(Pe(r)&&t.charCodeAt(1)===Ue){if(n<=2)return e.root=e.dir=t,e;if(i=2,$(t.charCodeAt(2))){if(n===3)return e.root=e.dir=t,e;i=3}}i>0&&(e.root=t.slice(0,i));let s=-1,a=i,l=-1,o=!0,u=t.length-1,c=0;for(;u>=i;--u){if(r=t.charCodeAt(u),$(r)){if(!o){a=u+1;break}continue}l===-1&&(o=!1,l=u+1),r===tt?s===-1?s=u:c!==1&&(c=1):s!==-1&&(c=-1)}return l!==-1&&(s===-1||c===0||c===1&&s===l-1&&s===a+1?e.base=e.name=t.slice(a,l):(e.name=t.slice(a,s),e.base=t.slice(a,l),e.ext=t.slice(s,l))),a>0&&a!==i?e.dir=t.slice(0,a-1):e.dir=e.root,e},sep:"\\",delimiter:";",win32:null,posix:null},Tl=(()=>{if($e){const t=/\\/g;return()=>{const e=tn().replace(t,"/");return e.slice(e.indexOf("/"))}}return()=>tn()})(),me={resolve(...t){let e="",n=!1;for(let i=t.length-1;i>=0&&!n;i--){const r=t[i];ie(r,`paths[${i}]`),r.length!==0&&(e=`${r}/${e}`,n=r.charCodeAt(0)===oe)}if(!n){const i=Tl();e=`${i}/${e}`,n=i.charCodeAt(0)===oe}return e=nn(e,!n,"/",Jn),n?`/${e}`:e.length>0?e:"."},normalize(t){if(ie(t,"path"),t.length===0)return".";const e=t.charCodeAt(0)===oe,n=t.charCodeAt(t.length-1)===oe;return t=nn(t,!e,"/",Jn),t.length===0?e?"/":n?"./":".":(n&&(t+="/"),e?`/${t}`:t)},isAbsolute(t){return ie(t,"path"),t.length>0&&t.charCodeAt(0)===oe},join(...t){if(t.length===0)return".";const e=[];for(let n=0;n<t.length;++n){const i=t[n];ie(i,"path"),i.length>0&&e.push(i)}return e.length===0?".":me.normalize(e.join("/"))},relative(t,e){if(ie(t,"from"),ie(e,"to"),t===e||(t=me.resolve(t),e=me.resolve(e),t===e))return"";const n=1,i=t.length,r=i-n,s=1,a=e.length-s,l=r<a?r:a;let o=-1,u=0;for(;u<l;u++){const d=t.charCodeAt(n+u);if(d!==e.charCodeAt(s+u))break;d===oe&&(o=u)}if(u===l)if(a>l){if(e.charCodeAt(s+u)===oe)return e.slice(s+u+1);if(u===0)return e.slice(s+u)}else r>l&&(t.charCodeAt(n+u)===oe?o=u:u===0&&(o=0));let c="";for(u=n+o+1;u<=i;++u)(u===i||t.charCodeAt(u)===oe)&&(c+=c.length===0?"..":"/..");return`${c}${e.slice(s+o)}`},toNamespacedPath(t){return t},dirname(t){if(ie(t,"path"),t.length===0)return".";const e=t.charCodeAt(0)===oe;let n=-1,i=!0;for(let r=t.length-1;r>=1;--r)if(t.charCodeAt(r)===oe){if(!i){n=r;break}}else i=!1;return n===-1?e?"/":".":e&&n===1?"//":t.slice(0,n)},basename(t,e){e!==void 0&&ie(e,"suffix"),ie(t,"path");let n=0,i=-1,r=!0,s;if(e!==void 0&&e.length>0&&e.length<=t.length){if(e===t)return"";let a=e.length-1,l=-1;for(s=t.length-1;s>=0;--s){const o=t.charCodeAt(s);if(o===oe){if(!r){n=s+1;break}}else l===-1&&(r=!1,l=s+1),a>=0&&(o===e.charCodeAt(a)?--a===-1&&(i=s):(a=-1,i=l))}return n===i?i=l:i===-1&&(i=t.length),t.slice(n,i)}for(s=t.length-1;s>=0;--s)if(t.charCodeAt(s)===oe){if(!r){n=s+1;break}}else i===-1&&(r=!1,i=s+1);return i===-1?"":t.slice(n,i)},extname(t){ie(t,"path");let e=-1,n=0,i=-1,r=!0,s=0;for(let a=t.length-1;a>=0;--a){const l=t[a];if(l==="/"){if(!r){n=a+1;break}continue}i===-1&&(r=!1,i=a+1),l==="."?e===-1?e=a:s!==1&&(s=1):e!==-1&&(s=-1)}return e===-1||i===-1||s===0||s===1&&e===i-1&&e===n+1?"":t.slice(e,i)},format:nr.bind(null,"/"),parse(t){ie(t,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return e;const n=t.charCodeAt(0)===oe;let i;n?(e.root="/",i=1):i=0;let r=-1,s=0,a=-1,l=!0,o=t.length-1,u=0;for(;o>=i;--o){const c=t.charCodeAt(o);if(c===oe){if(!l){s=o+1;break}continue}a===-1&&(l=!1,a=o+1),c===tt?r===-1?r=o:u!==1&&(u=1):r!==-1&&(u=-1)}if(a!==-1){const c=s===0&&n?1:s;r===-1||u===0||u===1&&r===a-1&&r===s+1?e.base=e.name=t.slice(c,a):(e.name=t.slice(c,r),e.base=t.slice(c,a),e.ext=t.slice(r,a))}return s>0?e.dir=t.slice(0,s-1):n&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};me.win32=ce.win32=ce,me.posix=ce.posix=me,$e?ce.normalize:me.normalize,$e?ce.resolve:me.resolve,$e?ce.relative:me.relative,$e?ce.dirname:me.dirname,$e?ce.basename:me.basename,$e?ce.extname:me.extname,$e?ce.sep:me.sep;const xl=/^\w[\w\d+.-]*$/,kl=/^\//,Sl=/^\/\//;function Al(t,e){if(!t.scheme&&e)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${t.authority}", path: "${t.path}", query: "${t.query}", fragment: "${t.fragment}"}`);if(t.scheme&&!xl.test(t.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(t.path){if(t.authority){if(!kl.test(t.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(Sl.test(t.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function Ll(t,e){return!t&&!e?"file":t}function Cl(t,e){switch(t){case"https":case"http":case"file":e?e[0]!==Se&&(e=Se+e):e=Se;break}return e}const ee="",Se="/",El=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;let Qn=class Ln{static isUri(e){return e instanceof Ln?!0:!e||typeof e!="object"?!1:typeof e.authority=="string"&&typeof e.fragment=="string"&&typeof e.path=="string"&&typeof e.query=="string"&&typeof e.scheme=="string"&&typeof e.fsPath=="string"&&typeof e.with=="function"&&typeof e.toString=="function"}constructor(e,n,i,r,s,a=!1){typeof e=="object"?(this.scheme=e.scheme||ee,this.authority=e.authority||ee,this.path=e.path||ee,this.query=e.query||ee,this.fragment=e.fragment||ee):(this.scheme=Ll(e,a),this.authority=n||ee,this.path=Cl(this.scheme,i||ee),this.query=r||ee,this.fragment=s||ee,Al(this,a))}get fsPath(){return Yn(this,!1)}with(e){if(!e)return this;let{scheme:n,authority:i,path:r,query:s,fragment:a}=e;return n===void 0?n=this.scheme:n===null&&(n=ee),i===void 0?i=this.authority:i===null&&(i=ee),r===void 0?r=this.path:r===null&&(r=ee),s===void 0?s=this.query:s===null&&(s=ee),a===void 0?a=this.fragment:a===null&&(a=ee),n===this.scheme&&i===this.authority&&r===this.path&&s===this.query&&a===this.fragment?this:new dt(n,i,r,s,a)}static parse(e,n=!1){const i=El.exec(e);return i?new dt(i[2]||ee,rn(i[4]||ee),rn(i[5]||ee),rn(i[7]||ee),rn(i[9]||ee),n):new dt(ee,ee,ee,ee,ee)}static file(e){let n=ee;if(Ct&&(e=e.replace(/\\/g,Se)),e[0]===Se&&e[1]===Se){const i=e.indexOf(Se,2);i===-1?(n=e.substring(2),e=Se):(n=e.substring(2,i),e=e.substring(i)||Se)}return new dt("file",n,e,ee,ee)}static from(e,n){return new dt(e.scheme,e.authority,e.path,e.query,e.fragment,n)}static joinPath(e,...n){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let i;return Ct&&e.scheme==="file"?i=Ln.file(ce.join(Yn(e,!0),...n)).path:i=me.join(e.path,...n),e.with({path:i})}toString(e=!1){return Zn(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof Ln)return e;{const n=new dt(e);return n._formatted=e.external??null,n._fsPath=e._sep===ir?e.fsPath??null:null,n}}else return e}};const ir=Ct?1:void 0;class dt extends Qn{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=Yn(this,!1)),this._fsPath}toString(e=!1){return e?Zn(this,!0):(this._formatted||(this._formatted=Zn(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=ir),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}const rr={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 sr(t,e,n){let i,r=-1;for(let s=0;s<t.length;s++){const a=t.charCodeAt(s);if(a>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||a===45||a===46||a===95||a===126||e&&a===47||n&&a===91||n&&a===93||n&&a===58)r!==-1&&(i+=encodeURIComponent(t.substring(r,s)),r=-1),i!==void 0&&(i+=t.charAt(s));else{i===void 0&&(i=t.substr(0,s));const l=rr[a];l!==void 0?(r!==-1&&(i+=encodeURIComponent(t.substring(r,s)),r=-1),i+=l):r===-1&&(r=s)}}return r!==-1&&(i+=encodeURIComponent(t.substring(r))),i!==void 0?i:t}function Rl(t){let e;for(let n=0;n<t.length;n++){const i=t.charCodeAt(n);i===35||i===63?(e===void 0&&(e=t.substr(0,n)),e+=rr[i]):e!==void 0&&(e+=t[n])}return e!==void 0?e:t}function Yn(t,e){let n;return t.authority&&t.path.length>1&&t.scheme==="file"?n=`//${t.authority}${t.path}`:t.path.charCodeAt(0)===47&&(t.path.charCodeAt(1)>=65&&t.path.charCodeAt(1)<=90||t.path.charCodeAt(1)>=97&&t.path.charCodeAt(1)<=122)&&t.path.charCodeAt(2)===58?e?n=t.path.substr(1):n=t.path[1].toLowerCase()+t.path.substr(2):n=t.path,Ct&&(n=n.replace(/\//g,"\\")),n}function Zn(t,e){const n=e?Rl:sr;let i="",{scheme:r,authority:s,path:a,query:l,fragment:o}=t;if(r&&(i+=r,i+=":"),(s||r==="file")&&(i+=Se,i+=Se),s){let u=s.indexOf("@");if(u!==-1){const c=s.substr(0,u);s=s.substr(u+1),u=c.lastIndexOf(":"),u===-1?i+=n(c,!1,!1):(i+=n(c.substr(0,u),!1,!1),i+=":",i+=n(c.substr(u+1),!1,!0)),i+="@"}s=s.toLowerCase(),u=s.lastIndexOf(":"),u===-1?i+=n(s,!1,!0):(i+=n(s.substr(0,u),!1,!0),i+=s.substr(u))}if(a){if(a.length>=3&&a.charCodeAt(0)===47&&a.charCodeAt(2)===58){const u=a.charCodeAt(1);u>=65&&u<=90&&(a=`/${String.fromCharCode(u+32)}:${a.substr(3)}`)}else if(a.length>=2&&a.charCodeAt(1)===58){const u=a.charCodeAt(0);u>=65&&u<=90&&(a=`${String.fromCharCode(u+32)}:${a.substr(2)}`)}i+=n(a,!0,!1)}return l&&(i+="?",i+=n(l,!1,!1)),o&&(i+="#",i+=e?o:sr(o,!1,!1)),i}function ar(t){try{return decodeURIComponent(t)}catch{return t.length>3?t.substr(0,3)+ar(t.substr(3)):t}}const or=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function rn(t){return t.match(or)?t.replace(or,e=>ar(e)):t}class ge extends j{constructor(e,n,i,r){super(e,n,i,r),this.selectionStartLineNumber=e,this.selectionStartColumn=n,this.positionLineNumber=i,this.positionColumn=r}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return ge.selectionsEqual(this,e)}static selectionsEqual(e,n){return e.selectionStartLineNumber===n.selectionStartLineNumber&&e.selectionStartColumn===n.selectionStartColumn&&e.positionLineNumber===n.positionLineNumber&&e.positionColumn===n.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,n){return this.getDirection()===0?new ge(this.startLineNumber,this.startColumn,e,n):new ge(e,n,this.startLineNumber,this.startColumn)}getPosition(){return new K(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new K(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,n){return this.getDirection()===0?new ge(e,n,this.endLineNumber,this.endColumn):new ge(this.endLineNumber,this.endColumn,e,n)}static fromPositions(e,n=e){return new ge(e.lineNumber,e.column,n.lineNumber,n.column)}static fromRange(e,n){return n===0?new ge(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new ge(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new ge(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,n){if(e&&!n||!e&&n)return!1;if(!e&&!n)return!0;if(e.length!==n.length)return!1;for(let i=0,r=e.length;i<r;i++)if(!this.selectionsEqual(e[i],n[i]))return!1;return!0}static isISelection(e){return!!e&&typeof e.selectionStartLineNumber=="number"&&typeof e.selectionStartColumn=="number"&&typeof e.positionLineNumber=="number"&&typeof e.positionColumn=="number"}static createWithDirection(e,n,i,r,s){return s===0?new ge(e,n,i,r):new ge(i,r,e,n)}}const lr=Object.create(null);function h(t,e){if(fo(e)){const n=lr[e];if(n===void 0)throw new Error(`${t} references an unknown codicon: ${e}`);e=n}return lr[t]=e,{id:t}}const Dl={add:h("add",6e4),plus:h("plus",6e4),gistNew:h("gist-new",6e4),repoCreate:h("repo-create",6e4),lightbulb:h("lightbulb",60001),lightBulb:h("light-bulb",60001),repo:h("repo",60002),repoDelete:h("repo-delete",60002),gistFork:h("gist-fork",60003),repoForked:h("repo-forked",60003),gitPullRequest:h("git-pull-request",60004),gitPullRequestAbandoned:h("git-pull-request-abandoned",60004),recordKeys:h("record-keys",60005),keyboard:h("keyboard",60005),tag:h("tag",60006),gitPullRequestLabel:h("git-pull-request-label",60006),tagAdd:h("tag-add",60006),tagRemove:h("tag-remove",60006),person:h("person",60007),personFollow:h("person-follow",60007),personOutline:h("person-outline",60007),personFilled:h("person-filled",60007),sourceControl:h("source-control",60008),mirror:h("mirror",60009),mirrorPublic:h("mirror-public",60009),star:h("star",60010),starAdd:h("star-add",60010),starDelete:h("star-delete",60010),starEmpty:h("star-empty",60010),comment:h("comment",60011),commentAdd:h("comment-add",60011),alert:h("alert",60012),warning:h("warning",60012),search:h("search",60013),searchSave:h("search-save",60013),logOut:h("log-out",60014),signOut:h("sign-out",60014),logIn:h("log-in",60015),signIn:h("sign-in",60015),eye:h("eye",60016),eyeUnwatch:h("eye-unwatch",60016),eyeWatch:h("eye-watch",60016),circleFilled:h("circle-filled",60017),primitiveDot:h("primitive-dot",60017),closeDirty:h("close-dirty",60017),debugBreakpoint:h("debug-breakpoint",60017),debugBreakpointDisabled:h("debug-breakpoint-disabled",60017),debugHint:h("debug-hint",60017),terminalDecorationSuccess:h("terminal-decoration-success",60017),primitiveSquare:h("primitive-square",60018),edit:h("edit",60019),pencil:h("pencil",60019),info:h("info",60020),issueOpened:h("issue-opened",60020),gistPrivate:h("gist-private",60021),gitForkPrivate:h("git-fork-private",60021),lock:h("lock",60021),mirrorPrivate:h("mirror-private",60021),close:h("close",60022),removeClose:h("remove-close",60022),x:h("x",60022),repoSync:h("repo-sync",60023),sync:h("sync",60023),clone:h("clone",60024),desktopDownload:h("desktop-download",60024),beaker:h("beaker",60025),microscope:h("microscope",60025),vm:h("vm",60026),deviceDesktop:h("device-desktop",60026),file:h("file",60027),more:h("more",60028),ellipsis:h("ellipsis",60028),kebabHorizontal:h("kebab-horizontal",60028),mailReply:h("mail-reply",60029),reply:h("reply",60029),organization:h("organization",60030),organizationFilled:h("organization-filled",60030),organizationOutline:h("organization-outline",60030),newFile:h("new-file",60031),fileAdd:h("file-add",60031),newFolder:h("new-folder",60032),fileDirectoryCreate:h("file-directory-create",60032),trash:h("trash",60033),trashcan:h("trashcan",60033),history:h("history",60034),clock:h("clock",60034),folder:h("folder",60035),fileDirectory:h("file-directory",60035),symbolFolder:h("symbol-folder",60035),logoGithub:h("logo-github",60036),markGithub:h("mark-github",60036),github:h("github",60036),terminal:h("terminal",60037),console:h("console",60037),repl:h("repl",60037),zap:h("zap",60038),symbolEvent:h("symbol-event",60038),error:h("error",60039),stop:h("stop",60039),variable:h("variable",60040),symbolVariable:h("symbol-variable",60040),array:h("array",60042),symbolArray:h("symbol-array",60042),symbolModule:h("symbol-module",60043),symbolPackage:h("symbol-package",60043),symbolNamespace:h("symbol-namespace",60043),symbolObject:h("symbol-object",60043),symbolMethod:h("symbol-method",60044),symbolFunction:h("symbol-function",60044),symbolConstructor:h("symbol-constructor",60044),symbolBoolean:h("symbol-boolean",60047),symbolNull:h("symbol-null",60047),symbolNumeric:h("symbol-numeric",60048),symbolNumber:h("symbol-number",60048),symbolStructure:h("symbol-structure",60049),symbolStruct:h("symbol-struct",60049),symbolParameter:h("symbol-parameter",60050),symbolTypeParameter:h("symbol-type-parameter",60050),symbolKey:h("symbol-key",60051),symbolText:h("symbol-text",60051),symbolReference:h("symbol-reference",60052),goToFile:h("go-to-file",60052),symbolEnum:h("symbol-enum",60053),symbolValue:h("symbol-value",60053),symbolRuler:h("symbol-ruler",60054),symbolUnit:h("symbol-unit",60054),activateBreakpoints:h("activate-breakpoints",60055),archive:h("archive",60056),arrowBoth:h("arrow-both",60057),arrowDown:h("arrow-down",60058),arrowLeft:h("arrow-left",60059),arrowRight:h("arrow-right",60060),arrowSmallDown:h("arrow-small-down",60061),arrowSmallLeft:h("arrow-small-left",60062),arrowSmallRight:h("arrow-small-right",60063),arrowSmallUp:h("arrow-small-up",60064),arrowUp:h("arrow-up",60065),bell:h("bell",60066),bold:h("bold",60067),book:h("book",60068),bookmark:h("bookmark",60069),debugBreakpointConditionalUnverified:h("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:h("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:h("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:h("debug-breakpoint-data-unverified",60072),debugBreakpointData:h("debug-breakpoint-data",60073),debugBreakpointDataDisabled:h("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:h("debug-breakpoint-log-unverified",60074),debugBreakpointLog:h("debug-breakpoint-log",60075),debugBreakpointLogDisabled:h("debug-breakpoint-log-disabled",60075),briefcase:h("briefcase",60076),broadcast:h("broadcast",60077),browser:h("browser",60078),bug:h("bug",60079),calendar:h("calendar",60080),caseSensitive:h("case-sensitive",60081),check:h("check",60082),checklist:h("checklist",60083),chevronDown:h("chevron-down",60084),chevronLeft:h("chevron-left",60085),chevronRight:h("chevron-right",60086),chevronUp:h("chevron-up",60087),chromeClose:h("chrome-close",60088),chromeMaximize:h("chrome-maximize",60089),chromeMinimize:h("chrome-minimize",60090),chromeRestore:h("chrome-restore",60091),circleOutline:h("circle-outline",60092),circle:h("circle",60092),debugBreakpointUnverified:h("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:h("terminal-decoration-incomplete",60092),circleSlash:h("circle-slash",60093),circuitBoard:h("circuit-board",60094),clearAll:h("clear-all",60095),clippy:h("clippy",60096),closeAll:h("close-all",60097),cloudDownload:h("cloud-download",60098),cloudUpload:h("cloud-upload",60099),code:h("code",60100),collapseAll:h("collapse-all",60101),colorMode:h("color-mode",60102),commentDiscussion:h("comment-discussion",60103),creditCard:h("credit-card",60105),dash:h("dash",60108),dashboard:h("dashboard",60109),database:h("database",60110),debugContinue:h("debug-continue",60111),debugDisconnect:h("debug-disconnect",60112),debugPause:h("debug-pause",60113),debugRestart:h("debug-restart",60114),debugStart:h("debug-start",60115),debugStepInto:h("debug-step-into",60116),debugStepOut:h("debug-step-out",60117),debugStepOver:h("debug-step-over",60118),debugStop:h("debug-stop",60119),debug:h("debug",60120),deviceCameraVideo:h("device-camera-video",60121),deviceCamera:h("device-camera",60122),deviceMobile:h("device-mobile",60123),diffAdded:h("diff-added",60124),diffIgnored:h("diff-ignored",60125),diffModified:h("diff-modified",60126),diffRemoved:h("diff-removed",60127),diffRenamed:h("diff-renamed",60128),diff:h("diff",60129),diffSidebyside:h("diff-sidebyside",60129),discard:h("discard",60130),editorLayout:h("editor-layout",60131),emptyWindow:h("empty-window",60132),exclude:h("exclude",60133),extensions:h("extensions",60134),eyeClosed:h("eye-closed",60135),fileBinary:h("file-binary",60136),fileCode:h("file-code",60137),fileMedia:h("file-media",60138),filePdf:h("file-pdf",60139),fileSubmodule:h("file-submodule",60140),fileSymlinkDirectory:h("file-symlink-directory",60141),fileSymlinkFile:h("file-symlink-file",60142),fileZip:h("file-zip",60143),files:h("files",60144),filter:h("filter",60145),flame:h("flame",60146),foldDown:h("fold-down",60147),foldUp:h("fold-up",60148),fold:h("fold",60149),folderActive:h("folder-active",60150),folderOpened:h("folder-opened",60151),gear:h("gear",60152),gift:h("gift",60153),gistSecret:h("gist-secret",60154),gist:h("gist",60155),gitCommit:h("git-commit",60156),gitCompare:h("git-compare",60157),compareChanges:h("compare-changes",60157),gitMerge:h("git-merge",60158),githubAction:h("github-action",60159),githubAlt:h("github-alt",60160),globe:h("globe",60161),grabber:h("grabber",60162),graph:h("graph",60163),gripper:h("gripper",60164),heart:h("heart",60165),home:h("home",60166),horizontalRule:h("horizontal-rule",60167),hubot:h("hubot",60168),inbox:h("inbox",60169),issueReopened:h("issue-reopened",60171),issues:h("issues",60172),italic:h("italic",60173),jersey:h("jersey",60174),json:h("json",60175),kebabVertical:h("kebab-vertical",60176),key:h("key",60177),law:h("law",60178),lightbulbAutofix:h("lightbulb-autofix",60179),linkExternal:h("link-external",60180),link:h("link",60181),listOrdered:h("list-ordered",60182),listUnordered:h("list-unordered",60183),liveShare:h("live-share",60184),loading:h("loading",60185),location:h("location",60186),mailRead:h("mail-read",60187),mail:h("mail",60188),markdown:h("markdown",60189),megaphone:h("megaphone",60190),mention:h("mention",60191),milestone:h("milestone",60192),gitPullRequestMilestone:h("git-pull-request-milestone",60192),mortarBoard:h("mortar-board",60193),move:h("move",60194),multipleWindows:h("multiple-windows",60195),mute:h("mute",60196),noNewline:h("no-newline",60197),note:h("note",60198),octoface:h("octoface",60199),openPreview:h("open-preview",60200),package:h("package",60201),paintcan:h("paintcan",60202),pin:h("pin",60203),play:h("play",60204),run:h("run",60204),plug:h("plug",60205),preserveCase:h("preserve-case",60206),preview:h("preview",60207),project:h("project",60208),pulse:h("pulse",60209),question:h("question",60210),quote:h("quote",60211),radioTower:h("radio-tower",60212),reactions:h("reactions",60213),references:h("references",60214),refresh:h("refresh",60215),regex:h("regex",60216),remoteExplorer:h("remote-explorer",60217),remote:h("remote",60218),remove:h("remove",60219),replaceAll:h("replace-all",60220),replace:h("replace",60221),repoClone:h("repo-clone",60222),repoForcePush:h("repo-force-push",60223),repoPull:h("repo-pull",60224),repoPush:h("repo-push",60225),report:h("report",60226),requestChanges:h("request-changes",60227),rocket:h("rocket",60228),rootFolderOpened:h("root-folder-opened",60229),rootFolder:h("root-folder",60230),rss:h("rss",60231),ruby:h("ruby",60232),saveAll:h("save-all",60233),saveAs:h("save-as",60234),save:h("save",60235),screenFull:h("screen-full",60236),screenNormal:h("screen-normal",60237),searchStop:h("search-stop",60238),server:h("server",60240),settingsGear:h("settings-gear",60241),settings:h("settings",60242),shield:h("shield",60243),smiley:h("smiley",60244),sortPrecedence:h("sort-precedence",60245),splitHorizontal:h("split-horizontal",60246),splitVertical:h("split-vertical",60247),squirrel:h("squirrel",60248),starFull:h("star-full",60249),starHalf:h("star-half",60250),symbolClass:h("symbol-class",60251),symbolColor:h("symbol-color",60252),symbolConstant:h("symbol-constant",60253),symbolEnumMember:h("symbol-enum-member",60254),symbolField:h("symbol-field",60255),symbolFile:h("symbol-file",60256),symbolInterface:h("symbol-interface",60257),symbolKeyword:h("symbol-keyword",60258),symbolMisc:h("symbol-misc",60259),symbolOperator:h("symbol-operator",60260),symbolProperty:h("symbol-property",60261),wrench:h("wrench",60261),wrenchSubaction:h("wrench-subaction",60261),symbolSnippet:h("symbol-snippet",60262),tasklist:h("tasklist",60263),telescope:h("telescope",60264),textSize:h("text-size",60265),threeBars:h("three-bars",60266),thumbsdown:h("thumbsdown",60267),thumbsup:h("thumbsup",60268),tools:h("tools",60269),triangleDown:h("triangle-down",60270),triangleLeft:h("triangle-left",60271),triangleRight:h("triangle-right",60272),triangleUp:h("triangle-up",60273),twitter:h("twitter",60274),unfold:h("unfold",60275),unlock:h("unlock",60276),unmute:h("unmute",60277),unverified:h("unverified",60278),verified:h("verified",60279),versions:h("versions",60280),vmActive:h("vm-active",60281),vmOutline:h("vm-outline",60282),vmRunning:h("vm-running",60283),watch:h("watch",60284),whitespace:h("whitespace",60285),wholeWord:h("whole-word",60286),window:h("window",60287),wordWrap:h("word-wrap",60288),zoomIn:h("zoom-in",60289),zoomOut:h("zoom-out",60290),listFilter:h("list-filter",60291),listFlat:h("list-flat",60292),listSelection:h("list-selection",60293),selection:h("selection",60293),listTree:h("list-tree",60294),debugBreakpointFunctionUnverified:h("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:h("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:h("debug-breakpoint-function-disabled",60296),debugStackframeActive:h("debug-stackframe-active",60297),circleSmallFilled:h("circle-small-filled",60298),debugStackframeDot:h("debug-stackframe-dot",60298),terminalDecorationMark:h("terminal-decoration-mark",60298),debugStackframe:h("debug-stackframe",60299),debugStackframeFocused:h("debug-stackframe-focused",60299),debugBreakpointUnsupported:h("debug-breakpoint-unsupported",60300),symbolString:h("symbol-string",60301),debugReverseContinue:h("debug-reverse-continue",60302),debugStepBack:h("debug-step-back",60303),debugRestartFrame:h("debug-restart-frame",60304),debugAlt:h("debug-alt",60305),callIncoming:h("call-incoming",60306),callOutgoing:h("call-outgoing",60307),menu:h("menu",60308),expandAll:h("expand-all",60309),feedback:h("feedback",60310),gitPullRequestReviewer:h("git-pull-request-reviewer",60310),groupByRefType:h("group-by-ref-type",60311),ungroupByRefType:h("ungroup-by-ref-type",60312),account:h("account",60313),gitPullRequestAssignee:h("git-pull-request-assignee",60313),bellDot:h("bell-dot",60314),debugConsole:h("debug-console",60315),library:h("library",60316),output:h("output",60317),runAll:h("run-all",60318),syncIgnored:h("sync-ignored",60319),pinned:h("pinned",60320),githubInverted:h("github-inverted",60321),serverProcess:h("server-process",60322),serverEnvironment:h("server-environment",60323),pass:h("pass",60324),issueClosed:h("issue-closed",60324),stopCircle:h("stop-circle",60325),playCircle:h("play-circle",60326),record:h("record",60327),debugAltSmall:h("debug-alt-small",60328),vmConnect:h("vm-connect",60329),cloud:h("cloud",60330),merge:h("merge",60331),export:h("export",60332),graphLeft:h("graph-left",60333),magnet:h("magnet",60334),notebook:h("notebook",60335),redo:h("redo",60336),checkAll:h("check-all",60337),pinnedDirty:h("pinned-dirty",60338),passFilled:h("pass-filled",60339),circleLargeFilled:h("circle-large-filled",60340),circleLarge:h("circle-large",60341),circleLargeOutline:h("circle-large-outline",60341),combine:h("combine",60342),gather:h("gather",60342),table:h("table",60343),variableGroup:h("variable-group",60344),typeHierarchy:h("type-hierarchy",60345),typeHierarchySub:h("type-hierarchy-sub",60346),typeHierarchySuper:h("type-hierarchy-super",60347),gitPullRequestCreate:h("git-pull-request-create",60348),runAbove:h("run-above",60349),runBelow:h("run-below",60350),notebookTemplate:h("notebook-template",60351),debugRerun:h("debug-rerun",60352),workspaceTrusted:h("workspace-trusted",60353),workspaceUntrusted:h("workspace-untrusted",60354),workspaceUnknown:h("workspace-unknown",60355),terminalCmd:h("terminal-cmd",60356),terminalDebian:h("terminal-debian",60357),terminalLinux:h("terminal-linux",60358),terminalPowershell:h("terminal-powershell",60359),terminalTmux:h("terminal-tmux",60360),terminalUbuntu:h("terminal-ubuntu",60361),terminalBash:h("terminal-bash",60362),arrowSwap:h("arrow-swap",60363),copy:h("copy",60364),personAdd:h("person-add",60365),filterFilled:h("filter-filled",60366),wand:h("wand",60367),debugLineByLine:h("debug-line-by-line",60368),inspect:h("inspect",60369),layers:h("layers",60370),layersDot:h("layers-dot",60371),layersActive:h("layers-active",60372),compass:h("compass",60373),compassDot:h("compass-dot",60374),compassActive:h("compass-active",60375),azure:h("azure",60376),issueDraft:h("issue-draft",60377),gitPullRequestClosed:h("git-pull-request-closed",60378),gitPullRequestDraft:h("git-pull-request-draft",60379),debugAll:h("debug-all",60380),debugCoverage:h("debug-coverage",60381),runErrors:h("run-errors",60382),folderLibrary:h("folder-library",60383),debugContinueSmall:h("debug-continue-small",60384),beakerStop:h("beaker-stop",60385),graphLine:h("graph-line",60386),graphScatter:h("graph-scatter",60387),pieChart:h("pie-chart",60388),bracket:h("bracket",60175),bracketDot:h("bracket-dot",60389),bracketError:h("bracket-error",60390),lockSmall:h("lock-small",60391),azureDevops:h("azure-devops",60392),verifiedFilled:h("verified-filled",60393),newline:h("newline",60394),layout:h("layout",60395),layoutActivitybarLeft:h("layout-activitybar-left",60396),layoutActivitybarRight:h("layout-activitybar-right",60397),layoutPanelLeft:h("layout-panel-left",60398),layoutPanelCenter:h("layout-panel-center",60399),layoutPanelJustify:h("layout-panel-justify",60400),layoutPanelRight:h("layout-panel-right",60401),layoutPanel:h("layout-panel",60402),layoutSidebarLeft:h("layout-sidebar-left",60403),layoutSidebarRight:h("layout-sidebar-right",60404),layoutStatusbar:h("layout-statusbar",60405),layoutMenubar:h("layout-menubar",60406),layoutCentered:h("layout-centered",60407),target:h("target",60408),indent:h("indent",60409),recordSmall:h("record-small",60410),errorSmall:h("error-small",60411),terminalDecorationError:h("terminal-decoration-error",60411),arrowCircleDown:h("arrow-circle-down",60412),arrowCircleLeft:h("arrow-circle-left",60413),arrowCircleRight:h("arrow-circle-right",60414),arrowCircleUp:h("arrow-circle-up",60415),layoutSidebarRightOff:h("layout-sidebar-right-off",60416),layoutPanelOff:h("layout-panel-off",60417),layoutSidebarLeftOff:h("layout-sidebar-left-off",60418),blank:h("blank",60419),heartFilled:h("heart-filled",60420),map:h("map",60421),mapHorizontal:h("map-horizontal",60421),foldHorizontal:h("fold-horizontal",60421),mapFilled:h("map-filled",60422),mapHorizontalFilled:h("map-horizontal-filled",60422),foldHorizontalFilled:h("fold-horizontal-filled",60422),circleSmall:h("circle-small",60423),bellSlash:h("bell-slash",60424),bellSlashDot:h("bell-slash-dot",60425),commentUnresolved:h("comment-unresolved",60426),gitPullRequestGoToChanges:h("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:h("git-pull-request-new-changes",60428),searchFuzzy:h("search-fuzzy",60429),commentDraft:h("comment-draft",60430),send:h("send",60431),sparkle:h("sparkle",60432),insert:h("insert",60433),mic:h("mic",60434),thumbsdownFilled:h("thumbsdown-filled",60435),thumbsupFilled:h("thumbsup-filled",60436),coffee:h("coffee",60437),snake:h("snake",60438),game:h("game",60439),vr:h("vr",60440),chip:h("chip",60441),piano:h("piano",60442),music:h("music",60443),micFilled:h("mic-filled",60444),repoFetch:h("repo-fetch",60445),copilot:h("copilot",60446),lightbulbSparkle:h("lightbulb-sparkle",60447),robot:h("robot",60448),sparkleFilled:h("sparkle-filled",60449),diffSingle:h("diff-single",60450),diffMultiple:h("diff-multiple",60451),surroundWith:h("surround-with",60452),share:h("share",60453),gitStash:h("git-stash",60454),gitStashApply:h("git-stash-apply",60455),gitStashPop:h("git-stash-pop",60456),vscode:h("vscode",60457),vscodeInsiders:h("vscode-insiders",60458),codeOss:h("code-oss",60459),runCoverage:h("run-coverage",60460),runAllCoverage:h("run-all-coverage",60461),coverage:h("coverage",60462),githubProject:h("github-project",60463),mapVertical:h("map-vertical",60464),foldVertical:h("fold-vertical",60464),mapVerticalFilled:h("map-vertical-filled",60465),foldVerticalFilled:h("fold-vertical-filled",60465),goToSearch:h("go-to-search",60466),percentage:h("percentage",60467),sortPercentage:h("sort-percentage",60467),attach:h("attach",60468),goToEditingSession:h("go-to-editing-session",60469),editSession:h("edit-session",60470),codeReview:h("code-review",60471),copilotWarning:h("copilot-warning",60472),python:h("python",60473),copilotLarge:h("copilot-large",60474),copilotWarningLarge:h("copilot-warning-large",60475),keyboardTab:h("keyboard-tab",60476),copilotBlocked:h("copilot-blocked",60477),copilotNotConnected:h("copilot-not-connected",60478),flag:h("flag",60479),lightbulbEmpty:h("lightbulb-empty",60480),symbolMethodArrow:h("symbol-method-arrow",60481),copilotUnavailable:h("copilot-unavailable",60482),repoPinned:h("repo-pinned",60483),keyboardTabAbove:h("keyboard-tab-above",60484),keyboardTabBelow:h("keyboard-tab-below",60485),gitPullRequestDone:h("git-pull-request-done",60486),mcp:h("mcp",60487),extensionsLarge:h("extensions-large",60488),layoutPanelDock:h("layout-panel-dock",60489),layoutSidebarLeftDock:h("layout-sidebar-left-dock",60490),layoutSidebarRightDock:h("layout-sidebar-right-dock",60491),copilotInProgress:h("copilot-in-progress",60492),copilotError:h("copilot-error",60493),copilotSuccess:h("copilot-success",60494),chatSparkle:h("chat-sparkle",60495),searchSparkle:h("search-sparkle",60496),editSparkle:h("edit-sparkle",60497),copilotSnooze:h("copilot-snooze",60498),sendToRemoteAgent:h("send-to-remote-agent",60499),commentDiscussionSparkle:h("comment-discussion-sparkle",60500),chatSparkleWarning:h("chat-sparkle-warning",60501),chatSparkleError:h("chat-sparkle-error",60502),collection:h("collection",60503),newCollection:h("new-collection",60504),thinking:h("thinking",60505),build:h("build",60506),commentDiscussionQuote:h("comment-discussion-quote",60507),cursor:h("cursor",60508),eraser:h("eraser",60509),fileText:h("file-text",60510),gitLens:h("git-lens",60511),quotes:h("quotes",60512),rename:h("rename",60513),runWithDeps:h("run-with-deps",60514),debugConnected:h("debug-connected",60515),strikethrough:h("strikethrough",60516),openInProduct:h("open-in-product",60517),indexZero:h("index-zero",60518),agent:h("agent",60519),editCode:h("edit-code",60520),repoSelected:h("repo-selected",60521),skip:h("skip",60522),mergeInto:h("merge-into",60523),gitBranchChanges:h("git-branch-changes",60524),gitBranchStagedChanges:h("git-branch-staged-changes",60525),gitBranchConflicts:h("git-branch-conflicts",60526),gitBranch:h("git-branch",60527),gitBranchCreate:h("git-branch-create",60527),gitBranchDelete:h("git-branch-delete",60527),searchLarge:h("search-large",60528),terminalGitBash:h("terminal-git-bash",60529)},Ml={dialogError:h("dialog-error","error"),dialogWarning:h("dialog-warning","warning"),dialogInfo:h("dialog-info","info"),dialogClose:h("dialog-close","close"),treeItemExpanded:h("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:h("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:h("tree-filter-on-type-off","list-selection"),treeFilterClear:h("tree-filter-clear","close"),treeItemLoading:h("tree-item-loading","loading"),menuSelection:h("menu-selection","check"),menuSubmenu:h("menu-submenu","chevron-right"),menuBarMore:h("menubar-more","more"),scrollbarButtonLeft:h("scrollbar-button-left","triangle-left"),scrollbarButtonRight:h("scrollbar-button-right","triangle-right"),scrollbarButtonUp:h("scrollbar-button-up","triangle-up"),scrollbarButtonDown:h("scrollbar-button-down","triangle-down"),toolBarMore:h("toolbar-more","more"),quickInputBack:h("quick-input-back","arrow-left"),dropDownButton:h("drop-down-button",60084),symbolCustomColor:h("symbol-customcolor",60252),exportIcon:h("export",60332),workspaceUnspecified:h("workspace-unspecified",60355),newLine:h("newline",60394),thumbsDownFilled:h("thumbsdown-filled",60435),thumbsUpFilled:h("thumbsup-filled",60436),gitFetch:h("git-fetch",60445),lightbulbSparkleAutofix:h("lightbulb-sparkle-autofix",60447),debugBreakpointPending:h("debug-breakpoint-pending",60377)},B={...Dl,...Ml};class Nl{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new Re,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})}register(e,n){return this._tokenizationSupports.set(e,n),this.handleChange([e]),Xt(()=>{this._tokenizationSupports.get(e)===n&&(this._tokenizationSupports.delete(e),this.handleChange([e]))})}get(e){return this._tokenizationSupports.get(e)||null}registerFactory(e,n){var r;(r=this._factories.get(e))==null||r.dispose();const i=new Il(this,e,n);return this._factories.set(e,i),Xt(()=>{const s=this._factories.get(e);!s||s!==i||(this._factories.delete(e),s.dispose())})}async getOrCreate(e){const n=this.get(e);if(n)return n;const i=this._factories.get(e);return!i||i.isResolved?null:(await i.resolve(),this.get(e))}isResolved(e){if(this.get(e))return!0;const i=this._factories.get(e);return!!(!i||i.isResolved)}setColorMap(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}}class Il extends Ze{get isResolved(){return this._isResolved}constructor(e,n,i){super(),this._registry=e,this._languageId=n,this._factory=i,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}async resolve(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}async _create(){const e=await this._factory.tokenizationSupport;this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))}}class zl{constructor(e,n,i){this.offset=e,this.type=n,this.language=i,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}var ur;(function(t){t[t.Increase=0]="Increase",t[t.Decrease=1]="Decrease"})(ur||(ur={}));var cr;(function(t){const e=new Map;e.set(0,B.symbolMethod),e.set(1,B.symbolFunction),e.set(2,B.symbolConstructor),e.set(3,B.symbolField),e.set(4,B.symbolVariable),e.set(5,B.symbolClass),e.set(6,B.symbolStruct),e.set(7,B.symbolInterface),e.set(8,B.symbolModule),e.set(9,B.symbolProperty),e.set(10,B.symbolEvent),e.set(11,B.symbolOperator),e.set(12,B.symbolUnit),e.set(13,B.symbolValue),e.set(15,B.symbolEnum),e.set(14,B.symbolConstant),e.set(15,B.symbolEnum),e.set(16,B.symbolEnumMember),e.set(17,B.symbolKeyword),e.set(28,B.symbolSnippet),e.set(18,B.symbolText),e.set(19,B.symbolColor),e.set(20,B.symbolFile),e.set(21,B.symbolReference),e.set(22,B.symbolCustomColor),e.set(23,B.symbolFolder),e.set(24,B.symbolTypeParameter),e.set(25,B.account),e.set(26,B.issues),e.set(27,B.tools);function n(a){let l=e.get(a);return l||(console.info("No codicon found for CompletionItemKind "+a),l=B.symbolProperty),l}t.toIcon=n;function i(a){switch(a){case 0:return q(728,"Method");case 1:return q(729,"Function");case 2:return q(730,"Constructor");case 3:return q(731,"Field");case 4:return q(732,"Variable");case 5:return q(733,"Class");case 6:return q(734,"Struct");case 7:return q(735,"Interface");case 8:return q(736,"Module");case 9:return q(737,"Property");case 10:return q(738,"Event");case 11:return q(739,"Operator");case 12:return q(740,"Unit");case 13:return q(741,"Value");case 14:return q(742,"Constant");case 15:return q(743,"Enum");case 16:return q(744,"Enum Member");case 17:return q(745,"Keyword");case 18:return q(746,"Text");case 19:return q(747,"Color");case 20:return q(748,"File");case 21:return q(749,"Reference");case 22:return q(750,"Custom Color");case 23:return q(751,"Folder");case 24:return q(752,"Type Parameter");case 25:return q(753,"User");case 26:return q(754,"Issue");case 27:return q(755,"Tool");case 28:return q(756,"Snippet");default:return""}}t.toLabel=i;const r=new Map;r.set("method",0),r.set("function",1),r.set("constructor",2),r.set("field",3),r.set("variable",4),r.set("class",5),r.set("struct",6),r.set("interface",7),r.set("module",8),r.set("property",9),r.set("event",10),r.set("operator",11),r.set("unit",12),r.set("value",13),r.set("constant",14),r.set("enum",15),r.set("enum-member",16),r.set("enumMember",16),r.set("keyword",17),r.set("snippet",28),r.set("text",18),r.set("color",19),r.set("file",20),r.set("reference",21),r.set("customcolor",22),r.set("folder",23),r.set("type-parameter",24),r.set("typeParameter",24),r.set("account",25),r.set("issue",26),r.set("tool",27);function s(a,l){let o=r.get(a);return typeof o>"u"&&!l&&(o=9),o}t.fromString=s})(cr||(cr={}));var hr;(function(t){t[t.Automatic=0]="Automatic",t[t.Explicit=1]="Explicit"})(hr||(hr={}));var dr;(function(t){t[t.Code=1]="Code",t[t.Label=2]="Label"})(dr||(dr={}));var mr;(function(t){t[t.Accepted=0]="Accepted",t[t.Rejected=1]="Rejected",t[t.Ignored=2]="Ignored"})(mr||(mr={}));var fr;(function(t){t[t.Automatic=0]="Automatic",t[t.PasteAs=1]="PasteAs"})(fr||(fr={}));var pr;(function(t){t[t.Invoke=1]="Invoke",t[t.TriggerCharacter=2]="TriggerCharacter",t[t.ContentChange=3]="ContentChange"})(pr||(pr={}));var gr;(function(t){t[t.Text=0]="Text",t[t.Read=1]="Read",t[t.Write=2]="Write"})(gr||(gr={})),q(757,"array"),q(758,"boolean"),q(759,"class"),q(760,"constant"),q(761,"constructor"),q(762,"enumeration"),q(763,"enumeration member"),q(764,"event"),q(765,"field"),q(766,"file"),q(767,"function"),q(768,"interface"),q(769,"key"),q(770,"method"),q(771,"module"),q(772,"namespace"),q(773,"null"),q(774,"number"),q(775,"object"),q(776,"operator"),q(777,"package"),q(778,"property"),q(779,"string"),q(780,"struct"),q(781,"type parameter"),q(782,"variable");var br;(function(t){const e=new Map;e.set(0,B.symbolFile),e.set(1,B.symbolModule),e.set(2,B.symbolNamespace),e.set(3,B.symbolPackage),e.set(4,B.symbolClass),e.set(5,B.symbolMethod),e.set(6,B.symbolProperty),e.set(7,B.symbolField),e.set(8,B.symbolConstructor),e.set(9,B.symbolEnum),e.set(10,B.symbolInterface),e.set(11,B.symbolFunction),e.set(12,B.symbolVariable),e.set(13,B.symbolConstant),e.set(14,B.symbolString),e.set(15,B.symbolNumber),e.set(16,B.symbolBoolean),e.set(17,B.symbolArray),e.set(18,B.symbolObject),e.set(19,B.symbolKey),e.set(20,B.symbolNull),e.set(21,B.symbolEnumMember),e.set(22,B.symbolStruct),e.set(23,B.symbolEvent),e.set(24,B.symbolOperator),e.set(25,B.symbolTypeParameter);function n(s){let a=e.get(s);return a||(console.info("No codicon found for SymbolKind "+s),a=B.symbolProperty),a}t.toIcon=n;const i=new Map;i.set(0,20),i.set(1,8),i.set(2,8),i.set(3,8),i.set(4,5),i.set(5,0),i.set(6,9),i.set(7,3),i.set(8,2),i.set(9,15),i.set(10,7),i.set(11,1),i.set(12,4),i.set(13,14),i.set(14,18),i.set(15,13),i.set(16,13),i.set(17,13),i.set(18,13),i.set(19,17),i.set(20,13),i.set(21,16),i.set(22,6),i.set(23,10),i.set(24,11),i.set(25,24);function r(s){let a=i.get(s);return a===void 0&&(console.info("No completion kind found for SymbolKind "+s),a=20),a}t.toCompletionKind=r})(br||(br={}));let ph=(he=class{static fromValue(e){switch(e){case"comment":return he.Comment;case"imports":return he.Imports;case"region":return he.Region}return new he(e)}constructor(e){this.value=e}},he.Comment=new he("comment"),he.Imports=new he("imports"),he.Region=new he("region"),he);var wr;(function(t){t[t.AIGenerated=1]="AIGenerated"})(wr||(wr={}));var _r;(function(t){t[t.Invoke=0]="Invoke",t[t.Automatic=1]="Automatic"})(_r||(_r={}));var vr;(function(t){function e(n){return!n||typeof n!="object"?!1:typeof n.id=="string"&&typeof n.title=="string"}t.is=e})(vr||(vr={}));var yr;(function(t){t[t.Type=1]="Type",t[t.Parameter=2]="Parameter"})(yr||(yr={})),new Nl;var Tr;(function(t){t[t.Unknown=0]="Unknown",t[t.Disabled=1]="Disabled",t[t.Enabled=2]="Enabled"})(Tr||(Tr={}));var xr;(function(t){t[t.Invoke=1]="Invoke",t[t.Auto=2]="Auto"})(xr||(xr={}));var kr;(function(t){t[t.None=0]="None",t[t.KeepWhitespace=1]="KeepWhitespace",t[t.InsertAsSnippet=4]="InsertAsSnippet"})(kr||(kr={}));var Sr;(function(t){t[t.Method=0]="Method",t[t.Function=1]="Function",t[t.Constructor=2]="Constructor",t[t.Field=3]="Field",t[t.Variable=4]="Variable",t[t.Class=5]="Class",t[t.Struct=6]="Struct",t[t.Interface=7]="Interface",t[t.Module=8]="Module",t[t.Property=9]="Property",t[t.Event=10]="Event",t[t.Operator=11]="Operator",t[t.Unit=12]="Unit",t[t.Value=13]="Value",t[t.Constant=14]="Constant",t[t.Enum=15]="Enum",t[t.EnumMember=16]="EnumMember",t[t.Keyword=17]="Keyword",t[t.Text=18]="Text",t[t.Color=19]="Color",t[t.File=20]="File",t[t.Reference=21]="Reference",t[t.Customcolor=22]="Customcolor",t[t.Folder=23]="Folder",t[t.TypeParameter=24]="TypeParameter",t[t.User=25]="User",t[t.Issue=26]="Issue",t[t.Tool=27]="Tool",t[t.Snippet=28]="Snippet"})(Sr||(Sr={}));var Ar;(function(t){t[t.Deprecated=1]="Deprecated"})(Ar||(Ar={}));var Lr;(function(t){t[t.Invoke=0]="Invoke",t[t.TriggerCharacter=1]="TriggerCharacter",t[t.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(Lr||(Lr={}));var Cr;(function(t){t[t.EXACT=0]="EXACT",t[t.ABOVE=1]="ABOVE",t[t.BELOW=2]="BELOW"})(Cr||(Cr={}));var Er;(function(t){t[t.NotSet=0]="NotSet",t[t.ContentFlush=1]="ContentFlush",t[t.RecoverFromMarkers=2]="RecoverFromMarkers",t[t.Explicit=3]="Explicit",t[t.Paste=4]="Paste",t[t.Undo=5]="Undo",t[t.Redo=6]="Redo"})(Er||(Er={}));var Rr;(function(t){t[t.LF=1]="LF",t[t.CRLF=2]="CRLF"})(Rr||(Rr={}));var Dr;(function(t){t[t.Text=0]="Text",t[t.Read=1]="Read",t[t.Write=2]="Write"})(Dr||(Dr={}));var Mr;(function(t){t[t.None=0]="None",t[t.Keep=1]="Keep",t[t.Brackets=2]="Brackets",t[t.Advanced=3]="Advanced",t[t.Full=4]="Full"})(Mr||(Mr={}));var Nr;(function(t){t[t.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",t[t.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",t[t.accessibilitySupport=2]="accessibilitySupport",t[t.accessibilityPageSize=3]="accessibilityPageSize",t[t.allowOverflow=4]="allowOverflow",t[t.allowVariableLineHeights=5]="allowVariableLineHeights",t[t.allowVariableFonts=6]="allowVariableFonts",t[t.allowVariableFontsInAccessibilityMode=7]="allowVariableFontsInAccessibilityMode",t[t.ariaLabel=8]="ariaLabel",t[t.ariaRequired=9]="ariaRequired",t[t.autoClosingBrackets=10]="autoClosingBrackets",t[t.autoClosingComments=11]="autoClosingComments",t[t.screenReaderAnnounceInlineSuggestion=12]="screenReaderAnnounceInlineSuggestion",t[t.autoClosingDelete=13]="autoClosingDelete",t[t.autoClosingOvertype=14]="autoClosingOvertype",t[t.autoClosingQuotes=15]="autoClosingQuotes",t[t.autoIndent=16]="autoIndent",t[t.autoIndentOnPaste=17]="autoIndentOnPaste",t[t.autoIndentOnPasteWithinString=18]="autoIndentOnPasteWithinString",t[t.automaticLayout=19]="automaticLayout",t[t.autoSurround=20]="autoSurround",t[t.bracketPairColorization=21]="bracketPairColorization",t[t.guides=22]="guides",t[t.codeLens=23]="codeLens",t[t.codeLensFontFamily=24]="codeLensFontFamily",t[t.codeLensFontSize=25]="codeLensFontSize",t[t.colorDecorators=26]="colorDecorators",t[t.colorDecoratorsLimit=27]="colorDecoratorsLimit",t[t.columnSelection=28]="columnSelection",t[t.comments=29]="comments",t[t.contextmenu=30]="contextmenu",t[t.copyWithSyntaxHighlighting=31]="copyWithSyntaxHighlighting",t[t.cursorBlinking=32]="cursorBlinking",t[t.cursorSmoothCaretAnimation=33]="cursorSmoothCaretAnimation",t[t.cursorStyle=34]="cursorStyle",t[t.cursorSurroundingLines=35]="cursorSurroundingLines",t[t.cursorSurroundingLinesStyle=36]="cursorSurroundingLinesStyle",t[t.cursorWidth=37]="cursorWidth",t[t.cursorHeight=38]="cursorHeight",t[t.disableLayerHinting=39]="disableLayerHinting",t[t.disableMonospaceOptimizations=40]="disableMonospaceOptimizations",t[t.domReadOnly=41]="domReadOnly",t[t.dragAndDrop=42]="dragAndDrop",t[t.dropIntoEditor=43]="dropIntoEditor",t[t.editContext=44]="editContext",t[t.emptySelectionClipboard=45]="emptySelectionClipboard",t[t.experimentalGpuAcceleration=46]="experimentalGpuAcceleration",t[t.experimentalWhitespaceRendering=47]="experimentalWhitespaceRendering",t[t.extraEditorClassName=48]="extraEditorClassName",t[t.fastScrollSensitivity=49]="fastScrollSensitivity",t[t.find=50]="find",t[t.fixedOverflowWidgets=51]="fixedOverflowWidgets",t[t.folding=52]="folding",t[t.foldingStrategy=53]="foldingStrategy",t[t.foldingHighlight=54]="foldingHighlight",t[t.foldingImportsByDefault=55]="foldingImportsByDefault",t[t.foldingMaximumRegions=56]="foldingMaximumRegions",t[t.unfoldOnClickAfterEndOfLine=57]="unfoldOnClickAfterEndOfLine",t[t.fontFamily=58]="fontFamily",t[t.fontInfo=59]="fontInfo",t[t.fontLigatures=60]="fontLigatures",t[t.fontSize=61]="fontSize",t[t.fontWeight=62]="fontWeight",t[t.fontVariations=63]="fontVariations",t[t.formatOnPaste=64]="formatOnPaste",t[t.formatOnType=65]="formatOnType",t[t.glyphMargin=66]="glyphMargin",t[t.gotoLocation=67]="gotoLocation",t[t.hideCursorInOverviewRuler=68]="hideCursorInOverviewRuler",t[t.hover=69]="hover",t[t.inDiffEditor=70]="inDiffEditor",t[t.inlineSuggest=71]="inlineSuggest",t[t.letterSpacing=72]="letterSpacing",t[t.lightbulb=73]="lightbulb",t[t.lineDecorationsWidth=74]="lineDecorationsWidth",t[t.lineHeight=75]="lineHeight",t[t.lineNumbers=76]="lineNumbers",t[t.lineNumbersMinChars=77]="lineNumbersMinChars",t[t.linkedEditing=78]="linkedEditing",t[t.links=79]="links",t[t.matchBrackets=80]="matchBrackets",t[t.minimap=81]="minimap",t[t.mouseStyle=82]="mouseStyle",t[t.mouseWheelScrollSensitivity=83]="mouseWheelScrollSensitivity",t[t.mouseWheelZoom=84]="mouseWheelZoom",t[t.multiCursorMergeOverlapping=85]="multiCursorMergeOverlapping",t[t.multiCursorModifier=86]="multiCursorModifier",t[t.mouseMiddleClickAction=87]="mouseMiddleClickAction",t[t.multiCursorPaste=88]="multiCursorPaste",t[t.multiCursorLimit=89]="multiCursorLimit",t[t.occurrencesHighlight=90]="occurrencesHighlight",t[t.occurrencesHighlightDelay=91]="occurrencesHighlightDelay",t[t.overtypeCursorStyle=92]="overtypeCursorStyle",t[t.overtypeOnPaste=93]="overtypeOnPaste",t[t.overviewRulerBorder=94]="overviewRulerBorder",t[t.overviewRulerLanes=95]="overviewRulerLanes",t[t.padding=96]="padding",t[t.pasteAs=97]="pasteAs",t[t.parameterHints=98]="parameterHints",t[t.peekWidgetDefaultFocus=99]="peekWidgetDefaultFocus",t[t.placeholder=100]="placeholder",t[t.definitionLinkOpensInPeek=101]="definitionLinkOpensInPeek",t[t.quickSuggestions=102]="quickSuggestions",t[t.quickSuggestionsDelay=103]="quickSuggestionsDelay",t[t.readOnly=104]="readOnly",t[t.readOnlyMessage=105]="readOnlyMessage",t[t.renameOnType=106]="renameOnType",t[t.renderRichScreenReaderContent=107]="renderRichScreenReaderContent",t[t.renderControlCharacters=108]="renderControlCharacters",t[t.renderFinalNewline=109]="renderFinalNewline",t[t.renderLineHighlight=110]="renderLineHighlight",t[t.renderLineHighlightOnlyWhenFocus=111]="renderLineHighlightOnlyWhenFocus",t[t.renderValidationDecorations=112]="renderValidationDecorations",t[t.renderWhitespace=113]="renderWhitespace",t[t.revealHorizontalRightPadding=114]="revealHorizontalRightPadding",t[t.roundedSelection=115]="roundedSelection",t[t.rulers=116]="rulers",t[t.scrollbar=117]="scrollbar",t[t.scrollBeyondLastColumn=118]="scrollBeyondLastColumn",t[t.scrollBeyondLastLine=119]="scrollBeyondLastLine",t[t.scrollPredominantAxis=120]="scrollPredominantAxis",t[t.selectionClipboard=121]="selectionClipboard",t[t.selectionHighlight=122]="selectionHighlight",t[t.selectionHighlightMaxLength=123]="selectionHighlightMaxLength",t[t.selectionHighlightMultiline=124]="selectionHighlightMultiline",t[t.selectOnLineNumbers=125]="selectOnLineNumbers",t[t.showFoldingControls=126]="showFoldingControls",t[t.showUnused=127]="showUnused",t[t.snippetSuggestions=128]="snippetSuggestions",t[t.smartSelect=129]="smartSelect",t[t.smoothScrolling=130]="smoothScrolling",t[t.stickyScroll=131]="stickyScroll",t[t.stickyTabStops=132]="stickyTabStops",t[t.stopRenderingLineAfter=133]="stopRenderingLineAfter",t[t.suggest=134]="suggest",t[t.suggestFontSize=135]="suggestFontSize",t[t.suggestLineHeight=136]="suggestLineHeight",t[t.suggestOnTriggerCharacters=137]="suggestOnTriggerCharacters",t[t.suggestSelection=138]="suggestSelection",t[t.tabCompletion=139]="tabCompletion",t[t.tabIndex=140]="tabIndex",t[t.trimWhitespaceOnDelete=141]="trimWhitespaceOnDelete",t[t.unicodeHighlighting=142]="unicodeHighlighting",t[t.unusualLineTerminators=143]="unusualLineTerminators",t[t.useShadowDOM=144]="useShadowDOM",t[t.useTabStops=145]="useTabStops",t[t.wordBreak=146]="wordBreak",t[t.wordSegmenterLocales=147]="wordSegmenterLocales",t[t.wordSeparators=148]="wordSeparators",t[t.wordWrap=149]="wordWrap",t[t.wordWrapBreakAfterCharacters=150]="wordWrapBreakAfterCharacters",t[t.wordWrapBreakBeforeCharacters=151]="wordWrapBreakBeforeCharacters",t[t.wordWrapColumn=152]="wordWrapColumn",t[t.wordWrapOverride1=153]="wordWrapOverride1",t[t.wordWrapOverride2=154]="wordWrapOverride2",t[t.wrappingIndent=155]="wrappingIndent",t[t.wrappingStrategy=156]="wrappingStrategy",t[t.showDeprecated=157]="showDeprecated",t[t.inertialScroll=158]="inertialScroll",t[t.inlayHints=159]="inlayHints",t[t.wrapOnEscapedLineFeeds=160]="wrapOnEscapedLineFeeds",t[t.effectiveCursorStyle=161]="effectiveCursorStyle",t[t.editorClassName=162]="editorClassName",t[t.pixelRatio=163]="pixelRatio",t[t.tabFocusMode=164]="tabFocusMode",t[t.layoutInfo=165]="layoutInfo",t[t.wrappingInfo=166]="wrappingInfo",t[t.defaultColorDecorators=167]="defaultColorDecorators",t[t.colorDecoratorsActivatedOn=168]="colorDecoratorsActivatedOn",t[t.inlineCompletionsAccessibilityVerbose=169]="inlineCompletionsAccessibilityVerbose",t[t.effectiveEditContext=170]="effectiveEditContext",t[t.scrollOnMiddleClick=171]="scrollOnMiddleClick",t[t.effectiveAllowVariableFonts=172]="effectiveAllowVariableFonts"})(Nr||(Nr={}));var Ir;(function(t){t[t.TextDefined=0]="TextDefined",t[t.LF=1]="LF",t[t.CRLF=2]="CRLF"})(Ir||(Ir={}));var zr;(function(t){t[t.LF=0]="LF",t[t.CRLF=1]="CRLF"})(zr||(zr={}));var Hr;(function(t){t[t.Left=1]="Left",t[t.Center=2]="Center",t[t.Right=3]="Right"})(Hr||(Hr={}));var Ur;(function(t){t[t.Increase=0]="Increase",t[t.Decrease=1]="Decrease"})(Ur||(Ur={}));var Pr;(function(t){t[t.None=0]="None",t[t.Indent=1]="Indent",t[t.IndentOutdent=2]="IndentOutdent",t[t.Outdent=3]="Outdent"})(Pr||(Pr={}));var Wr;(function(t){t[t.Both=0]="Both",t[t.Right=1]="Right",t[t.Left=2]="Left",t[t.None=3]="None"})(Wr||(Wr={}));var Fr;(function(t){t[t.Type=1]="Type",t[t.Parameter=2]="Parameter"})(Fr||(Fr={}));var Br;(function(t){t[t.Accepted=0]="Accepted",t[t.Rejected=1]="Rejected",t[t.Ignored=2]="Ignored"})(Br||(Br={}));var qr;(function(t){t[t.Code=1]="Code",t[t.Label=2]="Label"})(qr||(qr={}));var Or;(function(t){t[t.Automatic=0]="Automatic",t[t.Explicit=1]="Explicit"})(Or||(Or={}));var Kn;(function(t){t[t.DependsOnKbLayout=-1]="DependsOnKbLayout",t[t.Unknown=0]="Unknown",t[t.Backspace=1]="Backspace",t[t.Tab=2]="Tab",t[t.Enter=3]="Enter",t[t.Shift=4]="Shift",t[t.Ctrl=5]="Ctrl",t[t.Alt=6]="Alt",t[t.PauseBreak=7]="PauseBreak",t[t.CapsLock=8]="CapsLock",t[t.Escape=9]="Escape",t[t.Space=10]="Space",t[t.PageUp=11]="PageUp",t[t.PageDown=12]="PageDown",t[t.End=13]="End",t[t.Home=14]="Home",t[t.LeftArrow=15]="LeftArrow",t[t.UpArrow=16]="UpArrow",t[t.RightArrow=17]="RightArrow",t[t.DownArrow=18]="DownArrow",t[t.Insert=19]="Insert",t[t.Delete=20]="Delete",t[t.Digit0=21]="Digit0",t[t.Digit1=22]="Digit1",t[t.Digit2=23]="Digit2",t[t.Digit3=24]="Digit3",t[t.Digit4=25]="Digit4",t[t.Digit5=26]="Digit5",t[t.Digit6=27]="Digit6",t[t.Digit7=28]="Digit7",t[t.Digit8=29]="Digit8",t[t.Digit9=30]="Digit9",t[t.KeyA=31]="KeyA",t[t.KeyB=32]="KeyB",t[t.KeyC=33]="KeyC",t[t.KeyD=34]="KeyD",t[t.KeyE=35]="KeyE",t[t.KeyF=36]="KeyF",t[t.KeyG=37]="KeyG",t[t.KeyH=38]="KeyH",t[t.KeyI=39]="KeyI",t[t.KeyJ=40]="KeyJ",t[t.KeyK=41]="KeyK",t[t.KeyL=42]="KeyL",t[t.KeyM=43]="KeyM",t[t.KeyN=44]="KeyN",t[t.KeyO=45]="KeyO",t[t.KeyP=46]="KeyP",t[t.KeyQ=47]="KeyQ",t[t.KeyR=48]="KeyR",t[t.KeyS=49]="KeyS",t[t.KeyT=50]="KeyT",t[t.KeyU=51]="KeyU",t[t.KeyV=52]="KeyV",t[t.KeyW=53]="KeyW",t[t.KeyX=54]="KeyX",t[t.KeyY=55]="KeyY",t[t.KeyZ=56]="KeyZ",t[t.Meta=57]="Meta",t[t.ContextMenu=58]="ContextMenu",t[t.F1=59]="F1",t[t.F2=60]="F2",t[t.F3=61]="F3",t[t.F4=62]="F4",t[t.F5=63]="F5",t[t.F6=64]="F6",t[t.F7=65]="F7",t[t.F8=66]="F8",t[t.F9=67]="F9",t[t.F10=68]="F10",t[t.F11=69]="F11",t[t.F12=70]="F12",t[t.F13=71]="F13",t[t.F14=72]="F14",t[t.F15=73]="F15",t[t.F16=74]="F16",t[t.F17=75]="F17",t[t.F18=76]="F18",t[t.F19=77]="F19",t[t.F20=78]="F20",t[t.F21=79]="F21",t[t.F22=80]="F22",t[t.F23=81]="F23",t[t.F24=82]="F24",t[t.NumLock=83]="NumLock",t[t.ScrollLock=84]="ScrollLock",t[t.Semicolon=85]="Semicolon",t[t.Equal=86]="Equal",t[t.Comma=87]="Comma",t[t.Minus=88]="Minus",t[t.Period=89]="Period",t[t.Slash=90]="Slash",t[t.Backquote=91]="Backquote",t[t.BracketLeft=92]="BracketLeft",t[t.Backslash=93]="Backslash",t[t.BracketRight=94]="BracketRight",t[t.Quote=95]="Quote",t[t.OEM_8=96]="OEM_8",t[t.IntlBackslash=97]="IntlBackslash",t[t.Numpad0=98]="Numpad0",t[t.Numpad1=99]="Numpad1",t[t.Numpad2=100]="Numpad2",t[t.Numpad3=101]="Numpad3",t[t.Numpad4=102]="Numpad4",t[t.Numpad5=103]="Numpad5",t[t.Numpad6=104]="Numpad6",t[t.Numpad7=105]="Numpad7",t[t.Numpad8=106]="Numpad8",t[t.Numpad9=107]="Numpad9",t[t.NumpadMultiply=108]="NumpadMultiply",t[t.NumpadAdd=109]="NumpadAdd",t[t.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",t[t.NumpadSubtract=111]="NumpadSubtract",t[t.NumpadDecimal=112]="NumpadDecimal",t[t.NumpadDivide=113]="NumpadDivide",t[t.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",t[t.ABNT_C1=115]="ABNT_C1",t[t.ABNT_C2=116]="ABNT_C2",t[t.AudioVolumeMute=117]="AudioVolumeMute",t[t.AudioVolumeUp=118]="AudioVolumeUp",t[t.AudioVolumeDown=119]="AudioVolumeDown",t[t.BrowserSearch=120]="BrowserSearch",t[t.BrowserHome=121]="BrowserHome",t[t.BrowserBack=122]="BrowserBack",t[t.BrowserForward=123]="BrowserForward",t[t.MediaTrackNext=124]="MediaTrackNext",t[t.MediaTrackPrevious=125]="MediaTrackPrevious",t[t.MediaStop=126]="MediaStop",t[t.MediaPlayPause=127]="MediaPlayPause",t[t.LaunchMediaPlayer=128]="LaunchMediaPlayer",t[t.LaunchMail=129]="LaunchMail",t[t.LaunchApp2=130]="LaunchApp2",t[t.Clear=131]="Clear",t[t.MAX_VALUE=132]="MAX_VALUE"})(Kn||(Kn={}));var ei;(function(t){t[t.Hint=1]="Hint",t[t.Info=2]="Info",t[t.Warning=4]="Warning",t[t.Error=8]="Error"})(ei||(ei={}));var ti;(function(t){t[t.Unnecessary=1]="Unnecessary",t[t.Deprecated=2]="Deprecated"})(ti||(ti={}));var Vr;(function(t){t[t.Inline=1]="Inline",t[t.Gutter=2]="Gutter"})(Vr||(Vr={}));var jr;(function(t){t[t.Normal=1]="Normal",t[t.Underlined=2]="Underlined"})(jr||(jr={}));var $r;(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.TEXTAREA=1]="TEXTAREA",t[t.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",t[t.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",t[t.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",t[t.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",t[t.CONTENT_TEXT=6]="CONTENT_TEXT",t[t.CONTENT_EMPTY=7]="CONTENT_EMPTY",t[t.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",t[t.CONTENT_WIDGET=9]="CONTENT_WIDGET",t[t.OVERVIEW_RULER=10]="OVERVIEW_RULER",t[t.SCROLLBAR=11]="SCROLLBAR",t[t.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",t[t.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})($r||($r={}));var Gr;(function(t){t[t.AIGenerated=1]="AIGenerated"})(Gr||(Gr={}));var Xr;(function(t){t[t.Invoke=0]="Invoke",t[t.Automatic=1]="Automatic"})(Xr||(Xr={}));var Jr;(function(t){t[t.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",t[t.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",t[t.TOP_CENTER=2]="TOP_CENTER"})(Jr||(Jr={}));var Qr;(function(t){t[t.Left=1]="Left",t[t.Center=2]="Center",t[t.Right=4]="Right",t[t.Full=7]="Full"})(Qr||(Qr={}));var Yr;(function(t){t[t.Word=0]="Word",t[t.Line=1]="Line",t[t.Suggest=2]="Suggest"})(Yr||(Yr={}));var Zr;(function(t){t[t.Left=0]="Left",t[t.Right=1]="Right",t[t.None=2]="None",t[t.LeftOfInjectedText=3]="LeftOfInjectedText",t[t.RightOfInjectedText=4]="RightOfInjectedText"})(Zr||(Zr={}));var Kr;(function(t){t[t.Off=0]="Off",t[t.On=1]="On",t[t.Relative=2]="Relative",t[t.Interval=3]="Interval",t[t.Custom=4]="Custom"})(Kr||(Kr={}));var es;(function(t){t[t.None=0]="None",t[t.Text=1]="Text",t[t.Blocks=2]="Blocks"})(es||(es={}));var ts;(function(t){t[t.Smooth=0]="Smooth",t[t.Immediate=1]="Immediate"})(ts||(ts={}));var ns;(function(t){t[t.Auto=1]="Auto",t[t.Hidden=2]="Hidden",t[t.Visible=3]="Visible"})(ns||(ns={}));var ni;(function(t){t[t.LTR=0]="LTR",t[t.RTL=1]="RTL"})(ni||(ni={}));var is;(function(t){t.Off="off",t.OnCode="onCode",t.On="on"})(is||(is={}));var rs;(function(t){t[t.Invoke=1]="Invoke",t[t.TriggerCharacter=2]="TriggerCharacter",t[t.ContentChange=3]="ContentChange"})(rs||(rs={}));var ss;(function(t){t[t.File=0]="File",t[t.Module=1]="Module",t[t.Namespace=2]="Namespace",t[t.Package=3]="Package",t[t.Class=4]="Class",t[t.Method=5]="Method",t[t.Property=6]="Property",t[t.Field=7]="Field",t[t.Constructor=8]="Constructor",t[t.Enum=9]="Enum",t[t.Interface=10]="Interface",t[t.Function=11]="Function",t[t.Variable=12]="Variable",t[t.Constant=13]="Constant",t[t.String=14]="String",t[t.Number=15]="Number",t[t.Boolean=16]="Boolean",t[t.Array=17]="Array",t[t.Object=18]="Object",t[t.Key=19]="Key",t[t.Null=20]="Null",t[t.EnumMember=21]="EnumMember",t[t.Struct=22]="Struct",t[t.Event=23]="Event",t[t.Operator=24]="Operator",t[t.TypeParameter=25]="TypeParameter"})(ss||(ss={}));var as;(function(t){t[t.Deprecated=1]="Deprecated"})(as||(as={}));var os;(function(t){t[t.LTR=0]="LTR",t[t.RTL=1]="RTL"})(os||(os={}));var ls;(function(t){t[t.Hidden=0]="Hidden",t[t.Blink=1]="Blink",t[t.Smooth=2]="Smooth",t[t.Phase=3]="Phase",t[t.Expand=4]="Expand",t[t.Solid=5]="Solid"})(ls||(ls={}));var us;(function(t){t[t.Line=1]="Line",t[t.Block=2]="Block",t[t.Underline=3]="Underline",t[t.LineThin=4]="LineThin",t[t.BlockOutline=5]="BlockOutline",t[t.UnderlineThin=6]="UnderlineThin"})(us||(us={}));var cs;(function(t){t[t.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",t[t.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",t[t.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",t[t.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(cs||(cs={}));var hs;(function(t){t[t.None=0]="None",t[t.Same=1]="Same",t[t.Indent=2]="Indent",t[t.DeepIndent=3]="DeepIndent"})(hs||(hs={}));const St=class St{static chord(e,n){return dl(e,n)}};St.CtrlCmd=2048,St.Shift=1024,St.Alt=512,St.WinCtrl=256;let ii=St;function Hl(){return{editor:void 0,languages:void 0,CancellationTokenSource:ll,Emitter:Re,KeyCode:Kn,KeyMod:ii,Position:K,Range:j,Selection:ge,SelectionDirection:ni,MarkerSeverity:ei,MarkerTag:ti,Uri:Qn,Token:zl}}var ds;class Ul{constructor(){this[ds]="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(){var e;return(e=this._head)==null?void 0:e.value}get last(){var e;return(e=this._tail)==null?void 0:e.value}has(e){return this._map.has(e)}get(e,n=0){const i=this._map.get(e);if(i)return n!==0&&this.touch(i,n),i.value}set(e,n,i=0){let r=this._map.get(e);if(r)r.value=n,i!==0&&this.touch(r,i);else{switch(r={key:e,value:n,next:void 0,previous:void 0},i){case 0:this.addItemLast(r);break;case 1:this.addItemFirst(r);break;case 2:this.addItemLast(r);break;default:this.addItemLast(r);break}this._map.set(e,r),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const n=this._map.get(e);if(n)return this._map.delete(e),this.removeItem(n),this._size--,n.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,n){const i=this._state;let r=this._head;for(;r;){if(n?e.bind(n)(r.value,r.key,this):e(r.value,r.key,this),this._state!==i)throw new Error("LinkedMap got modified during iteration.");r=r.next}}keys(){const e=this,n=this._state;let i=this._head;const r={[Symbol.iterator](){return r},next(){if(e._state!==n)throw new Error("LinkedMap got modified during iteration.");if(i){const s={value:i.key,done:!1};return i=i.next,s}else return{value:void 0,done:!0}}};return r}values(){const e=this,n=this._state;let i=this._head;const r={[Symbol.iterator](){return r},next(){if(e._state!==n)throw new Error("LinkedMap got modified during iteration.");if(i){const s={value:i.value,done:!1};return i=i.next,s}else return{value:void 0,done:!0}}};return r}entries(){const e=this,n=this._state;let i=this._head;const r={[Symbol.iterator](){return r},next(){if(e._state!==n)throw new Error("LinkedMap got modified during iteration.");if(i){const s={value:[i.key,i.value],done:!1};return i=i.next,s}else return{value:void 0,done:!0}}};return r}[(ds=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let n=this._head,i=this.size;for(;n&&i>e;)this._map.delete(n.key),n=n.next,i--;this._head=n,this._size=i,n&&(n.previous=void 0),this._state++}trimNew(e){if(e>=this.size)return;if(e===0){this.clear();return}let n=this._tail,i=this.size;for(;n&&i>e;)this._map.delete(n.key),n=n.previous,i--;this._tail=n,this._size=i,n&&(n.next=void 0),this._state++}addItemFirst(e){if(!this._head&&!this._tail)this._tail=e;else if(this._head)e.next=this._head,this._head.previous=e;else throw new Error("Invalid list");this._head=e,this._state++}addItemLast(e){if(!this._head&&!this._tail)this._head=e;else if(this._tail)e.previous=this._tail,this._tail.next=e;else throw new Error("Invalid list");this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const n=e.next,i=e.previous;if(!n||!i)throw new Error("Invalid list");n.previous=i,i.next=n}e.next=void 0,e.previous=void 0,this._state++}touch(e,n){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(n!==1&&n!==2)){if(n===1){if(e===this._head)return;const i=e.next,r=e.previous;e===this._tail?(r.next=void 0,this._tail=r):(i.previous=r,r.next=i),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(n===2){if(e===this._tail)return;const i=e.next,r=e.previous;e===this._head?(i.previous=void 0,this._head=i):(i.previous=r,r.next=i),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){const e=[];return this.forEach((n,i)=>{e.push([i,n])}),e}fromJSON(e){this.clear();for(const[n,i]of e)this.set(n,i)}}class Pl extends Ul{constructor(e,n=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,n),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get(e,n=2){return super.get(e,n)}peek(e){return super.get(e,0)}set(e,n){return super.set(e,n,2),this}checkTrim(){this.size>this._limit&&this.trim(Math.round(this._limit*this._ratio))}}class Wl extends Pl{constructor(e,n=1){super(e,n)}trim(e){this.trimOld(e)}set(e,n){return super.set(e,n),this.checkTrim(),this}}class Fl{constructor(){this.map=new Map}add(e,n){let i=this.map.get(e);i||(i=new Set,this.map.set(e,i)),i.add(n)}delete(e,n){const i=this.map.get(e);i&&(i.delete(n),i.size===0&&this.map.delete(e))}forEach(e,n){const i=this.map.get(e);i&&i.forEach(n)}}new Wl(10);var ms;(function(t){t[t.Left=1]="Left",t[t.Center=2]="Center",t[t.Right=4]="Right",t[t.Full=7]="Full"})(ms||(ms={}));var fs;(function(t){t[t.Left=1]="Left",t[t.Center=2]="Center",t[t.Right=3]="Right"})(fs||(fs={}));var ps;(function(t){t[t.LTR=0]="LTR",t[t.RTL=1]="RTL"})(ps||(ps={}));var gs;(function(t){t[t.Both=0]="Both",t[t.Right=1]="Right",t[t.Left=2]="Left",t[t.None=3]="None"})(gs||(gs={}));function Bl(t){if(!t||t.length===0)return!1;for(let e=0,n=t.length;e<n;e++){const i=t.charCodeAt(e);if(i===10)return!0;if(i===92){if(e++,e>=n)break;const r=t.charCodeAt(e);if(r===110||r===114||r===87)return!0}}return!1}function ql(t,e,n,i,r){if(i===0)return!0;const s=e.charCodeAt(i-1);if(t.get(s)!==0||s===13||s===10)return!0;if(r>0){const a=e.charCodeAt(i);if(t.get(a)!==0)return!0}return!1}function Ol(t,e,n,i,r){if(i+r===n)return!0;const s=e.charCodeAt(i+r);if(t.get(s)!==0||s===13||s===10)return!0;if(r>0){const a=e.charCodeAt(i+r-1);if(t.get(a)!==0)return!0}return!1}function Vl(t,e,n,i,r){return ql(t,e,n,i,r)&&Ol(t,e,n,i,r)}class jl{constructor(e,n){this._wordSeparators=e,this._searchRegex=n,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(e){const n=e.length;let i;do{if(this._prevMatchStartIndex+this._prevMatchLength===n||(i=this._searchRegex.exec(e),!i))return null;const r=i.index,s=i[0].length;if(r===this._prevMatchStartIndex&&s===this._prevMatchLength){if(s===0){Vo(e,n,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=r,this._prevMatchLength=s,!this._wordSeparators||Vl(this._wordSeparators,e,n,r,s))return i}while(i);return null}}const $l="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function Gl(t=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const n of $l)t.indexOf(n)>=0||(e+="\\"+n);return e+="\\s]+)",new RegExp(e,"g")}const bs=Gl();function ws(t){let e=bs;if(t&&t instanceof RegExp)if(t.global)e=t;else{let n="g";t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.unicode&&(n+="u"),e=new RegExp(t.source,n)}return e.lastIndex=0,e}const _s=new wo;_s.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function ri(t,e,n,i,r){if(e=ws(e),r||(r=Gt.first(_s)),n.length>r.maxLen){let u=t-r.maxLen/2;return u<0?u=0:i+=u,n=n.substring(u,t+r.maxLen/2),ri(t,e,n,i,r)}const s=Date.now(),a=t-1-i;let l=-1,o=null;for(let u=1;!(Date.now()-s>=r.timeBudget);u++){const c=a-r.windowSize*u;e.lastIndex=Math.max(0,c);const d=Xl(e,n,a,l);if(!d&&o||(o=d,c<=0))break;l=c}if(o){const u={word:o[0],startColumn:i+1+o.index,endColumn:i+1+o.index+o[0].length};return e.lastIndex=0,u}return null}function Xl(t,e,n,i){let r;for(;r=t.exec(e);){const s=r.index||0;if(s<=n&&t.lastIndex>=n)return r;if(i>0&&s>i)return null}return null}class Jl{static computeUnicodeHighlights(e,n,i){const r=i?i.startLineNumber:1,s=i?i.endLineNumber:e.getLineCount(),a=new vs(n),l=a.getCandidateCodePoints();let o;l==="allNonBasicAscii"?o=new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):o=new RegExp(`${Ql(Array.from(l))}`,"g");const u=new jl(null,o),c=[];let d=!1,m,f=0,w=0,p=0;e:for(let x=r,T=s;x<=T;x++){const y=e.getLineContent(x),L=y.length;u.reset(0);do if(m=u.next(y),m){let I=m.index,H=m.index+m[0].length;if(I>0){const _=y.charCodeAt(I-1);Fn(_)&&I--}if(H+1<L){const _=y.charCodeAt(H-1);Fn(_)&&H++}const P=y.substring(I,H);let b=ri(I+1,bs,y,0);b&&b.endColumn<=I+1&&(b=null);const g=a.shouldHighlightNonBasicASCII(P,b?b.word:null);if(g!==0){if(g===3?f++:g===2?w++:g===1?p++:ho(),c.length>=1e3){d=!0;break e}c.push(new j(x,I+1,x,H+1))}}while(m)}return{ranges:c,hasMore:d,ambiguousCharacterCount:f,invisibleCharacterCount:w,nonBasicAsciiCharacterCount:p}}static computeUnicodeHighlightReason(e,n){const i=new vs(n);switch(i.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:{const s=e.codePointAt(0),a=i.ambiguousCharacters.getPrimaryConfusable(s),l=Et.getLocales().filter(o=>!Et.getInstance(new Set([...n.allowedLocales,o])).isAmbiguous(s));return{kind:0,confusableWith:String.fromCodePoint(a),notAmbiguousInLocales:l}}case 1:return{kind:2}}}}function Ql(t,e){return`[${zo(t.map(i=>String.fromCodePoint(i)).join(""))}]`}class vs{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=Et.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const e=new Set;if(this.options.invisibleCharacters)for(const n of Rt.codePoints)ys(String.fromCodePoint(n))||e.add(n);if(this.options.ambiguousCharacters)for(const n of this.ambiguousCharacters.getConfusableCodePoints())e.add(n);for(const n of this.allowedCodePoints)e.delete(n);return e}shouldHighlightNonBasicASCII(e,n){const i=e.codePointAt(0);if(this.allowedCodePoints.has(i))return 0;if(this.options.nonBasicASCII)return 1;let r=!1,s=!1;if(n)for(const a of n){const l=a.codePointAt(0),o=$o(a);r=r||o,!o&&!this.ambiguousCharacters.isAmbiguous(l)&&!Rt.isInvisibleCharacter(l)&&(s=!0)}return!r&&s?0:this.options.invisibleCharacters&&!ys(e)&&Rt.isInvisibleCharacter(i)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(i)?3:0}}function ys(t){return t===" "||t===`
|
|
8
|
+
`||t===" "}class sn{constructor(e,n,i){this.changes=e,this.moves=n,this.hitTimeout=i}}class Yl{constructor(e,n){this.lineRangeMapping=e,this.changes=n}}function Zl(t,e,n=(i,r)=>i===r){if(t===e)return!0;if(!t||!e||t.length!==e.length)return!1;for(let i=0,r=t.length;i<r;i++)if(!n(t[i],e[i]))return!1;return!0}function*Kl(t,e){let n,i;for(const r of t)i!==void 0&&e(i,r)?n.push(r):(n&&(yield n),n=[r]),i=r;n&&(yield n)}function eu(t,e){for(let n=0;n<=t.length;n++)e(n===0?void 0:t[n-1],n===t.length?void 0:t[n])}function tu(t,e){for(let n=0;n<t.length;n++)e(n===0?void 0:t[n-1],t[n],n+1===t.length?void 0:t[n+1])}function nu(t,e){for(const n of e)t.push(n)}var si;(function(t){function e(s){return s<0}t.isLessThan=e;function n(s){return s<=0}t.isLessThanOrEqual=n;function i(s){return s>0}t.isGreaterThan=i;function r(s){return s===0}t.isNeitherLessOrGreaterThan=r,t.greaterThan=1,t.lessThan=-1,t.neitherLessOrGreaterThan=0})(si||(si={}));function Mt(t,e){return(n,i)=>e(t(n),t(i))}const Nt=(t,e)=>t-e;function iu(t){return(e,n)=>-t(e,n)}const At=class At{constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate(n=>(e.push(n),!0)),e}filter(e){return new At(n=>this.iterate(i=>e(i)?n(i):!0))}map(e){return new At(n=>this.iterate(i=>n(e(i))))}findLast(e){let n;return this.iterate(i=>(e(i)&&(n=i),!0)),n}findLastMaxBy(e){let n,i=!0;return this.iterate(r=>((i||si.isGreaterThan(e(r,n)))&&(i=!1,n=r),!0)),n}};At.empty=new At(e=>{});let Ts=At;class G{static fromTo(e,n){return new G(e,n)}static addRange(e,n){let i=0;for(;i<n.length&&n[i].endExclusive<e.start;)i++;let r=i;for(;r<n.length&&n[r].start<=e.endExclusive;)r++;if(i===r)n.splice(i,0,e);else{const s=Math.min(e.start,n[i].start),a=Math.max(e.endExclusive,n[r-1].endExclusive);n.splice(i,r-i,new G(s,a))}}static tryCreate(e,n){if(!(e>n))return new G(e,n)}static ofLength(e){return new G(0,e)}static ofStartAndLength(e,n){return new G(e,e+n)}static emptyAt(e){return new G(e,e)}constructor(e,n){if(this.start=e,this.endExclusive=n,e>n)throw new ue(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(e){return new G(this.start+e,this.endExclusive+e)}deltaStart(e){return new G(this.start+e,this.endExclusive)}deltaEnd(e){return new G(this.start,this.endExclusive+e)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}equals(e){return this.start===e.start&&this.endExclusive===e.endExclusive}contains(e){return this.start<=e&&e<this.endExclusive}join(e){return new G(Math.min(this.start,e.start),Math.max(this.endExclusive,e.endExclusive))}intersect(e){const n=Math.max(this.start,e.start),i=Math.min(this.endExclusive,e.endExclusive);if(n<=i)return new G(n,i)}intersectionLength(e){const n=Math.max(this.start,e.start),i=Math.min(this.endExclusive,e.endExclusive);return Math.max(0,i-n)}intersects(e){const n=Math.max(this.start,e.start),i=Math.min(this.endExclusive,e.endExclusive);return n<i}intersectsOrTouches(e){const n=Math.max(this.start,e.start),i=Math.min(this.endExclusive,e.endExclusive);return n<=i}isBefore(e){return this.endExclusive<=e.start}isAfter(e){return this.start>=e.endExclusive}slice(e){return e.slice(this.start,this.endExclusive)}substring(e){return e.substring(this.start,this.endExclusive)}clip(e){if(this.isEmpty)throw new ue(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,e))}clipCyclic(e){if(this.isEmpty)throw new ue(`Invalid clipping range: ${this.toString()}`);return e<this.start?this.endExclusive-(this.start-e)%this.length:e>=this.endExclusive?this.start+(e-this.start)%this.length:e}forEach(e){for(let n=this.start;n<this.endExclusive;n++)e(n)}joinRightTouching(e){if(this.endExclusive!==e.start)throw new ue(`Invalid join: ${this.toString()} and ${e.toString()}`);return new G(this.start,e.endExclusive)}}function mt(t,e){const n=ft(t,e);return n===-1?void 0:t[n]}function ft(t,e,n=0,i=t.length){let r=n,s=i;for(;r<s;){const a=Math.floor((r+s)/2);e(t[a])?r=a+1:s=a}return r-1}function ru(t,e){const n=ai(t,e);return n===t.length?void 0:t[n]}function ai(t,e,n=0,i=t.length){let r=n,s=i;for(;r<s;){const a=Math.floor((r+s)/2);e(t[a])?s=a:r=a+1}return r}const Sn=class Sn{constructor(e){this._array=e,this._findLastMonotonousLastIdx=0}findLastMonotonous(e){if(Sn.assertInvariants){if(this._prevFindLastPredicate){for(const i of this._array)if(this._prevFindLastPredicate(i)&&!e(i))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.")}this._prevFindLastPredicate=e}const n=ft(this._array,e,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=n+1,n===-1?void 0:this._array[n]}};Sn.assertInvariants=!1;let an=Sn;const _e=class _e{static ofLength(e,n){return new _e(e,e+n)}static fromRange(e){return new _e(e.startLineNumber,e.endLineNumber)}static fromRangeInclusive(e){return new _e(e.startLineNumber,e.endLineNumber+1)}static joinMany(e){if(e.length===0)return[];let n=new Me(e[0].slice());for(let i=1;i<e.length;i++)n=n.getUnion(new Me(e[i].slice()));return n.ranges}static join(e){if(e.length===0)throw new ue("lineRanges cannot be empty");let n=e[0].startLineNumber,i=e[0].endLineNumberExclusive;for(let r=1;r<e.length;r++)n=Math.min(n,e[r].startLineNumber),i=Math.max(i,e[r].endLineNumberExclusive);return new _e(n,i)}static deserialize(e){return new _e(e[0],e[1])}constructor(e,n){if(e>n)throw new ue(`startLineNumber ${e} cannot be after endLineNumberExclusive ${n}`);this.startLineNumber=e,this.endLineNumberExclusive=n}contains(e){return this.startLineNumber<=e&&e<this.endLineNumberExclusive}get isEmpty(){return this.startLineNumber===this.endLineNumberExclusive}delta(e){return new _e(this.startLineNumber+e,this.endLineNumberExclusive+e)}deltaLength(e){return new _e(this.startLineNumber,this.endLineNumberExclusive+e)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(e){return new _e(Math.min(this.startLineNumber,e.startLineNumber),Math.max(this.endLineNumberExclusive,e.endLineNumberExclusive))}toString(){return`[${this.startLineNumber},${this.endLineNumberExclusive})`}intersect(e){const n=Math.max(this.startLineNumber,e.startLineNumber),i=Math.min(this.endLineNumberExclusive,e.endLineNumberExclusive);if(n<=i)return new _e(n,i)}intersectsStrict(e){return this.startLineNumber<e.endLineNumberExclusive&&e.startLineNumber<this.endLineNumberExclusive}intersectsOrTouches(e){return this.startLineNumber<=e.endLineNumberExclusive&&e.startLineNumber<=this.endLineNumberExclusive}equals(e){return this.startLineNumber===e.startLineNumber&&this.endLineNumberExclusive===e.endLineNumberExclusive}toInclusiveRange(){return this.isEmpty?null:new j(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new j(this.startLineNumber,1,this.endLineNumberExclusive,1)}mapToLineArray(e){const n=[];for(let i=this.startLineNumber;i<this.endLineNumberExclusive;i++)n.push(e(i));return n}forEach(e){for(let n=this.startLineNumber;n<this.endLineNumberExclusive;n++)e(n)}serialize(){return[this.startLineNumber,this.endLineNumberExclusive]}toOffsetRange(){return new G(this.startLineNumber-1,this.endLineNumberExclusive-1)}addMargin(e,n){return new _e(this.startLineNumber-e,this.endLineNumberExclusive+n)}};_e.compareByStart=Mt(e=>e.startLineNumber,Nt);let X=_e;class Me{constructor(e=[]){this._normalizedRanges=e}get ranges(){return this._normalizedRanges}addRange(e){if(e.length===0)return;const n=ai(this._normalizedRanges,r=>r.endLineNumberExclusive>=e.startLineNumber),i=ft(this._normalizedRanges,r=>r.startLineNumber<=e.endLineNumberExclusive)+1;if(n===i)this._normalizedRanges.splice(n,0,e);else if(n===i-1){const r=this._normalizedRanges[n];this._normalizedRanges[n]=r.join(e)}else{const r=this._normalizedRanges[n].join(this._normalizedRanges[i-1]).join(e);this._normalizedRanges.splice(n,i-n,r)}}contains(e){const n=mt(this._normalizedRanges,i=>i.startLineNumber<=e);return!!n&&n.endLineNumberExclusive>e}intersects(e){const n=mt(this._normalizedRanges,i=>i.startLineNumber<e.endLineNumberExclusive);return!!n&&n.endLineNumberExclusive>e.startLineNumber}getUnion(e){if(this._normalizedRanges.length===0)return e;if(e._normalizedRanges.length===0)return this;const n=[];let i=0,r=0,s=null;for(;i<this._normalizedRanges.length||r<e._normalizedRanges.length;){let a=null;if(i<this._normalizedRanges.length&&r<e._normalizedRanges.length){const l=this._normalizedRanges[i],o=e._normalizedRanges[r];l.startLineNumber<o.startLineNumber?(a=l,i++):(a=o,r++)}else i<this._normalizedRanges.length?(a=this._normalizedRanges[i],i++):(a=e._normalizedRanges[r],r++);s===null?s=a:s.endLineNumberExclusive>=a.startLineNumber?s=new X(s.startLineNumber,Math.max(s.endLineNumberExclusive,a.endLineNumberExclusive)):(n.push(s),s=a)}return s!==null&&n.push(s),new Me(n)}subtractFrom(e){const n=ai(this._normalizedRanges,a=>a.endLineNumberExclusive>=e.startLineNumber),i=ft(this._normalizedRanges,a=>a.startLineNumber<=e.endLineNumberExclusive)+1;if(n===i)return new Me([e]);const r=[];let s=e.startLineNumber;for(let a=n;a<i;a++){const l=this._normalizedRanges[a];l.startLineNumber>s&&r.push(new X(s,l.startLineNumber)),s=l.endLineNumberExclusive}return s<e.endLineNumberExclusive&&r.push(new X(s,e.endLineNumberExclusive)),new Me(r)}toString(){return this._normalizedRanges.map(e=>e.toString()).join(", ")}getIntersection(e){const n=[];let i=0,r=0;for(;i<this._normalizedRanges.length&&r<e._normalizedRanges.length;){const s=this._normalizedRanges[i],a=e._normalizedRanges[r],l=s.intersect(a);l&&!l.isEmpty&&n.push(l),s.endLineNumberExclusive<a.endLineNumberExclusive?i++:r++}return new Me(n)}getWithDelta(e){return new Me(this._normalizedRanges.map(n=>n.delta(e)))}}const Ce=class Ce{static betweenPositions(e,n){return e.lineNumber===n.lineNumber?new Ce(0,n.column-e.column):new Ce(n.lineNumber-e.lineNumber,n.column-1)}static fromPosition(e){return new Ce(e.lineNumber-1,e.column-1)}static ofRange(e){return Ce.betweenPositions(e.getStartPosition(),e.getEndPosition())}static ofText(e){let n=0,i=0;for(const r of e)r===`
|
|
9
|
+
`?(n++,i=0):i++;return new Ce(n,i)}constructor(e,n){this.lineCount=e,this.columnCount=n}isGreaterThanOrEqualTo(e){return this.lineCount!==e.lineCount?this.lineCount>e.lineCount:this.columnCount>=e.columnCount}add(e){return e.lineCount===0?new Ce(this.lineCount,this.columnCount+e.columnCount):new Ce(this.lineCount+e.lineCount,e.columnCount)}createRange(e){return this.lineCount===0?new j(e.lineNumber,e.column,e.lineNumber,e.column+this.columnCount):new j(e.lineNumber,e.column,e.lineNumber+this.lineCount,this.columnCount+1)}toRange(){return new j(1,1,this.lineCount+1,this.columnCount+1)}toLineRange(){return X.ofLength(1,this.lineCount+1)}addToPosition(e){return this.lineCount===0?new K(e.lineNumber,e.column+this.columnCount):new K(e.lineNumber+this.lineCount,this.columnCount+1)}toString(){return`${this.lineCount},${this.columnCount}`}};Ce.zero=new Ce(0,0);let It=Ce;class su{getOffsetRange(e){return new G(this.getOffset(e.getStartPosition()),this.getOffset(e.getEndPosition()))}getRange(e){return j.fromPositions(this.getPosition(e.start),this.getPosition(e.endExclusive))}getStringReplacement(e){return new pt.deps.StringReplacement(this.getOffsetRange(e.range),e.text)}getTextReplacement(e){return new pt.deps.TextReplacement(this.getRange(e.replaceRange),e.newText)}getTextEdit(e){const n=e.replacements.map(i=>this.getTextReplacement(i));return new pt.deps.TextEdit(n)}}const Hi=class Hi{static get deps(){if(!this._deps)throw new Error("Dependencies not set. Call _setDependencies first.");return this._deps}};Hi._deps=void 0;let pt=Hi;class au extends su{constructor(e){super(),this.text=e,this.lineStartOffsetByLineIdx=[],this.lineEndOffsetByLineIdx=[],this.lineStartOffsetByLineIdx.push(0);for(let n=0;n<e.length;n++)e.charAt(n)===`
|
|
10
|
+
`&&(this.lineStartOffsetByLineIdx.push(n+1),n>0&&e.charAt(n-1)==="\r"?this.lineEndOffsetByLineIdx.push(n-1):this.lineEndOffsetByLineIdx.push(n));this.lineEndOffsetByLineIdx.push(e.length)}getOffset(e){const n=this._validatePosition(e);return this.lineStartOffsetByLineIdx[n.lineNumber-1]+n.column-1}_validatePosition(e){if(e.lineNumber<1)return new K(1,1);const n=this.textLength.lineCount+1;if(e.lineNumber>n){const r=this.getLineLength(n);return new K(n,r+1)}if(e.column<1)return new K(e.lineNumber,1);const i=this.getLineLength(e.lineNumber);return e.column-1>i?new K(e.lineNumber,i+1):e}getPosition(e){const n=ft(this.lineStartOffsetByLineIdx,s=>s<=e),i=n+1,r=e-this.lineStartOffsetByLineIdx[n]+1;return new K(i,r)}get textLength(){const e=this.lineStartOffsetByLineIdx.length-1;return new pt.deps.TextLength(e,this.text.length-this.lineStartOffsetByLineIdx[e])}getLineLength(e){return this.lineEndOffsetByLineIdx[e-1]-this.lineStartOffsetByLineIdx[e-1]}}class ou{constructor(){this._transformer=void 0}get endPositionExclusive(){return this.length.addToPosition(new K(1,1))}get lineRange(){return this.length.toLineRange()}getValue(){return this.getValueOfRange(this.length.toRange())}getValueOfOffsetRange(e){return this.getValueOfRange(this.getTransformer().getRange(e))}getLineLength(e){return this.getValueOfRange(new j(e,1,e,Number.MAX_SAFE_INTEGER)).length}getTransformer(){return this._transformer||(this._transformer=new au(this.getValue())),this._transformer}getLineAt(e){return this.getValueOfRange(new j(e,1,e,Number.MAX_SAFE_INTEGER))}}class lu extends ou{constructor(e,n){mo(n>=1),super(),this._getLineContent=e,this._lineCount=n}getValueOfRange(e){if(e.startLineNumber===e.endLineNumber)return this._getLineContent(e.startLineNumber).substring(e.startColumn-1,e.endColumn-1);let n=this._getLineContent(e.startLineNumber).substring(e.startColumn-1);for(let i=e.startLineNumber+1;i<e.endLineNumber;i++)n+=`
|
|
11
11
|
`+this._getLineContent(i);return n+=`
|
|
12
|
-
`+this._getLineContent(
|
|
12
|
+
`+this._getLineContent(e.endLineNumber).substring(0,e.endColumn-1),n}getLineLength(e){return this._getLineContent(e).length}get length(){const e=this._getLineContent(this._lineCount);return new It(this._lineCount-1,e.length)}}class on extends lu{constructor(e){super(n=>e[n-1],e.length)}}class Ge{static joinReplacements(e,n){if(e.length===0)throw new ue;if(e.length===1)return e[0];const i=e[0].range.getStartPosition(),r=e[e.length-1].range.getEndPosition();let s="";for(let a=0;a<e.length;a++){const l=e[a];if(s+=l.text,a<e.length-1){const o=e[a+1],u=j.fromPositions(l.range.getEndPosition(),o.range.getStartPosition()),c=n.getValueOfRange(u);s+=c}}return new Ge(j.fromPositions(i,r),s)}static fromStringReplacement(e,n){return new Ge(n.getTransformer().getRange(e.replaceRange),e.newText)}static delete(e){return new Ge(e,"")}constructor(e,n){this.range=e,this.text=n}get isEmpty(){return this.range.isEmpty()&&this.text.length===0}static equals(e,n){return e.range.equalsRange(n.range)&&e.text===n.text}equals(e){return Ge.equals(this,e)}removeCommonPrefixAndSuffix(e){return this.removeCommonPrefix(e).removeCommonSuffix(e)}removeCommonPrefix(e){const n=e.getValueOfRange(this.range).replaceAll(`\r
|
|
13
13
|
`,`
|
|
14
14
|
`),i=this.text.replaceAll(`\r
|
|
15
15
|
`,`
|
|
16
|
-
`),r=
|
|
16
|
+
`),r=Fo(n,i),s=It.ofText(n.substring(0,r)).addToPosition(this.range.getStartPosition()),a=i.substring(r),l=j.fromPositions(s,this.range.getEndPosition());return new Ge(l,a)}removeCommonSuffix(e){const n=e.getValueOfRange(this.range).replaceAll(`\r
|
|
17
17
|
`,`
|
|
18
18
|
`),i=this.text.replaceAll(`\r
|
|
19
19
|
`,`
|
|
20
|
-
`),r=Yo(n,i),s=zt.ofText(n.substring(0,n.length-r)).addToPosition(this.range.getStartPosition()),a=i.substring(0,i.length-r),l=j.fromPositions(this.range.getStartPosition(),s);return new Ge(l,a)}toString(){const t=this.range.getStartPosition(),n=this.range.getEndPosition();return`(${t.lineNumber},${t.column} -> ${n.lineNumber},${n.column}): "${this.text}"`}}class ve{static inverse(t,n,i){const r=[];let s=1,a=1;for(const o of t){const u=new ve(new X(s,o.original.startLineNumber),new X(a,o.modified.startLineNumber));u.modified.isEmpty||r.push(u),s=o.original.endLineNumberExclusive,a=o.modified.endLineNumberExclusive}const l=new ve(new X(s,n+1),new X(a,i+1));return l.modified.isEmpty||r.push(l),r}static clip(t,n,i){const r=[];for(const s of t){const a=s.original.intersect(n),l=s.modified.intersect(i);a&&!a.isEmpty&&l&&!l.isEmpty&&r.push(new ve(a,l))}return r}constructor(t,n){this.original=t,this.modified=n}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new ve(this.modified,this.original)}join(t){return new ve(this.original.join(t.original),this.modified.join(t.modified))}toRangeMapping(){const t=this.original.toInclusiveRange(),n=this.modified.toInclusiveRange();if(t&&n)return new ye(t,n);if(this.original.startLineNumber===1||this.modified.startLineNumber===1){if(!(this.modified.startLineNumber===1&&this.original.startLineNumber===1))throw new ue("not a valid diff");return new ye(new j(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new j(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1))}else return new ye(new j(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),new j(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER))}toRangeMapping2(t,n){if(Ns(this.original.endLineNumberExclusive,t)&&Ns(this.modified.endLineNumberExclusive,n))return new ye(new j(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new j(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1));if(!this.original.isEmpty&&!this.modified.isEmpty)return new ye(j.fromPositions(new K(this.original.startLineNumber,1),gt(new K(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),t)),j.fromPositions(new K(this.modified.startLineNumber,1),gt(new K(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),n)));if(this.original.startLineNumber>1&&this.modified.startLineNumber>1)return new ye(j.fromPositions(gt(new K(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER),t),gt(new K(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),t)),j.fromPositions(gt(new K(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER),n),gt(new K(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),n)));throw new ue}}function gt(e,t){if(e.lineNumber<1)return new K(1,1);if(e.lineNumber>t.length)return new K(t.length,t[t.length-1].length+1);const n=t[e.lineNumber-1];return e.column>n.length+1?new K(e.lineNumber,n.length+1):e}function Ns(e,t){return e>=1&&e<=t.length}class Fe extends ve{static fromRangeMappings(t){const n=X.join(t.map(r=>X.fromRangeInclusive(r.originalRange))),i=X.join(t.map(r=>X.fromRangeInclusive(r.modifiedRange)));return new Fe(n,i,t)}constructor(t,n,i){super(t,n),this.innerChanges=i}flip(){var t;return new Fe(this.modified,this.original,(t=this.innerChanges)==null?void 0:t.map(n=>n.flip()))}withInnerChangesFromLineRanges(){return new Fe(this.original,this.modified,[this.toRangeMapping()])}}class ye{static fromEdit(t){const n=t.getNewRanges();return t.replacements.map((r,s)=>new ye(r.range,n[s]))}static assertSorted(t){for(let n=1;n<t.length;n++){const i=t[n-1],r=t[n];if(!(i.originalRange.getEndPosition().isBeforeOrEqual(r.originalRange.getStartPosition())&&i.modifiedRange.getEndPosition().isBeforeOrEqual(r.modifiedRange.getStartPosition())))throw new ue("Range mappings must be sorted")}}constructor(t,n){this.originalRange=t,this.modifiedRange=n}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new ye(this.modifiedRange,this.originalRange)}toTextEdit(t){const n=t.getValueOfRange(this.modifiedRange);return new Ge(this.originalRange,n)}}function Is(e,t,n,i=!1){const r=[];for(const s of lu(e.map(a=>wu(a,t,n)),(a,l)=>a.original.intersectsOrTouches(l.original)||a.modified.intersectsOrTouches(l.modified))){const a=s[0],l=s[s.length-1];r.push(new Fe(a.original.join(l.original),a.modified.join(l.modified),s.map(o=>o.innerChanges[0])))}return Gt(()=>!i&&r.length>0&&(r[0].modified.startLineNumber!==r[0].original.startLineNumber||n.length.lineCount-r[r.length-1].modified.endLineNumberExclusive!==t.length.lineCount-r[r.length-1].original.endLineNumberExclusive)?!1:Vi(r,(s,a)=>a.original.startLineNumber-s.original.endLineNumberExclusive===a.modified.startLineNumber-s.modified.endLineNumberExclusive&&s.original.endLineNumberExclusive<a.original.startLineNumber&&s.modified.endLineNumberExclusive<a.modified.startLineNumber)),r}function wu(e,t,n){let i=0,r=0;e.modifiedRange.endColumn===1&&e.originalRange.endColumn===1&&e.originalRange.startLineNumber+i<=e.originalRange.endLineNumber&&e.modifiedRange.startLineNumber+i<=e.modifiedRange.endLineNumber&&(r=-1),e.modifiedRange.startColumn-1>=n.getLineLength(e.modifiedRange.startLineNumber)&&e.originalRange.startColumn-1>=t.getLineLength(e.originalRange.startLineNumber)&&e.originalRange.startLineNumber<=e.originalRange.endLineNumber+r&&e.modifiedRange.startLineNumber<=e.modifiedRange.endLineNumber+r&&(i=1);const s=new X(e.originalRange.startLineNumber+i,e.originalRange.endLineNumber+1+r),a=new X(e.modifiedRange.startLineNumber+i,e.modifiedRange.endLineNumber+1+r);return new Fe(s,a,[e])}const _u=3;class vu{computeDiff(t,n,i){var o;const s=new xu(t,n,{maxComputationTime:i.maxComputationTimeMs,shouldIgnoreTrimWhitespace:i.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),a=[];let l=null;for(const u of s.changes){let c;u.originalEndLineNumber===0?c=new X(u.originalStartLineNumber+1,u.originalStartLineNumber+1):c=new X(u.originalStartLineNumber,u.originalEndLineNumber+1);let d;u.modifiedEndLineNumber===0?d=new X(u.modifiedStartLineNumber+1,u.modifiedStartLineNumber+1):d=new X(u.modifiedStartLineNumber,u.modifiedEndLineNumber+1);let m=new Fe(c,d,(o=u.charChanges)==null?void 0:o.map(f=>new ye(new j(f.originalStartLineNumber,f.originalStartColumn,f.originalEndLineNumber,f.originalEndColumn),new j(f.modifiedStartLineNumber,f.modifiedStartColumn,f.modifiedEndLineNumber,f.modifiedEndColumn))));l&&(l.modified.endLineNumberExclusive===m.modified.startLineNumber||l.original.endLineNumberExclusive===m.original.startLineNumber)&&(m=new Fe(l.original.join(m.original),l.modified.join(m.modified),l.innerChanges&&m.innerChanges?l.innerChanges.concat(m.innerChanges):void 0),a.pop()),a.push(m),l=m}return Gt(()=>Vi(a,(u,c)=>c.original.startLineNumber-u.original.endLineNumberExclusive===c.modified.startLineNumber-u.modified.endLineNumberExclusive&&u.original.endLineNumberExclusive<c.original.startLineNumber&&u.modified.endLineNumberExclusive<c.modified.startLineNumber)),new on(a,[],s.quitEarly)}}function zs(e,t,n,i){return new je(e,t,n).ComputeDiff(i)}let Hs=class{constructor(t){const n=[],i=[];for(let r=0,s=t.length;r<s;r++)n[r]=mi(t[r],1),i[r]=fi(t[r],1);this.lines=t,this._startColumns=n,this._endColumns=i}getElements(){const t=[];for(let n=0,i=this.lines.length;n<i;n++)t[n]=this.lines[n].substring(this._startColumns[n]-1,this._endColumns[n]-1);return t}getStrictElement(t){return this.lines[t]}getStartLineNumber(t){return t+1}getEndLineNumber(t){return t+1}createCharSequence(t,n,i){const r=[],s=[],a=[];let l=0;for(let o=n;o<=i;o++){const u=this.lines[o],c=t?this._startColumns[o]:1,d=t?this._endColumns[o]:u.length+1;for(let m=c;m<d;m++)r[l]=u.charCodeAt(m-1),s[l]=o+1,a[l]=m,l++;!t&&o<i&&(r[l]=10,s[l]=o+1,a[l]=u.length+1,l++)}return new yu(r,s,a)}};class yu{constructor(t,n,i){this._charCodes=t,this._lineNumbers=n,this._columns=i}toString(){return"["+this._charCodes.map((t,n)=>(t===10?"\\n":String.fromCharCode(t))+`-(${this._lineNumbers[n]},${this._columns[n]})`).join(", ")+"]"}_assertIndex(t,n){if(t<0||t>=n.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(t){return t>0&&t===this._lineNumbers.length?this.getEndLineNumber(t-1):(this._assertIndex(t,this._lineNumbers),this._lineNumbers[t])}getEndLineNumber(t){return t===-1?this.getStartLineNumber(t+1):(this._assertIndex(t,this._lineNumbers),this._charCodes[t]===10?this._lineNumbers[t]+1:this._lineNumbers[t])}getStartColumn(t){return t>0&&t===this._columns.length?this.getEndColumn(t-1):(this._assertIndex(t,this._columns),this._columns[t])}getEndColumn(t){return t===-1?this.getStartColumn(t+1):(this._assertIndex(t,this._columns),this._charCodes[t]===10?1:this._columns[t]+1)}}class bt{constructor(t,n,i,r,s,a,l,o){this.originalStartLineNumber=t,this.originalStartColumn=n,this.originalEndLineNumber=i,this.originalEndColumn=r,this.modifiedStartLineNumber=s,this.modifiedStartColumn=a,this.modifiedEndLineNumber=l,this.modifiedEndColumn=o}static createFromDiffChange(t,n,i){const r=n.getStartLineNumber(t.originalStart),s=n.getStartColumn(t.originalStart),a=n.getEndLineNumber(t.originalStart+t.originalLength-1),l=n.getEndColumn(t.originalStart+t.originalLength-1),o=i.getStartLineNumber(t.modifiedStart),u=i.getStartColumn(t.modifiedStart),c=i.getEndLineNumber(t.modifiedStart+t.modifiedLength-1),d=i.getEndColumn(t.modifiedStart+t.modifiedLength-1);return new bt(r,s,a,l,o,u,c,d)}}function Tu(e){if(e.length<=1)return e;const t=[e[0]];let n=t[0];for(let i=1,r=e.length;i<r;i++){const s=e[i],a=s.originalStart-(n.originalStart+n.originalLength),l=s.modifiedStart-(n.modifiedStart+n.modifiedLength);Math.min(a,l)<_u?(n.originalLength=s.originalStart+s.originalLength-n.originalStart,n.modifiedLength=s.modifiedStart+s.modifiedLength-n.modifiedStart):(t.push(s),n=s)}return t}class Ht{constructor(t,n,i,r,s){this.originalStartLineNumber=t,this.originalEndLineNumber=n,this.modifiedStartLineNumber=i,this.modifiedEndLineNumber=r,this.charChanges=s}static createFromDiffResult(t,n,i,r,s,a,l){let o,u,c,d,m;if(n.originalLength===0?(o=i.getStartLineNumber(n.originalStart)-1,u=0):(o=i.getStartLineNumber(n.originalStart),u=i.getEndLineNumber(n.originalStart+n.originalLength-1)),n.modifiedLength===0?(c=r.getStartLineNumber(n.modifiedStart)-1,d=0):(c=r.getStartLineNumber(n.modifiedStart),d=r.getEndLineNumber(n.modifiedStart+n.modifiedLength-1)),a&&n.originalLength>0&&n.originalLength<20&&n.modifiedLength>0&&n.modifiedLength<20&&s()){const f=i.createCharSequence(t,n.originalStart,n.originalStart+n.originalLength-1),w=r.createCharSequence(t,n.modifiedStart,n.modifiedStart+n.modifiedLength-1);if(f.getElements().length>0&&w.getElements().length>0){let p=zs(f,w,s,!0).changes;l&&(p=Tu(p)),m=[];for(let x=0,T=p.length;x<T;x++)m.push(bt.createFromDiffChange(p[x],f,w))}}return new Ht(o,u,c,d,m)}}class xu{constructor(t,n,i){this.shouldComputeCharChanges=i.shouldComputeCharChanges,this.shouldPostProcessCharChanges=i.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=i.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=i.shouldMakePrettyDiff,this.originalLines=t,this.modifiedLines=n,this.original=new Hs(t),this.modified=new Hs(n),this.continueLineDiff=Us(i.maxComputationTime),this.continueCharDiff=Us(i.maxComputationTime===0?0:Math.min(i.maxComputationTime,5e3))}computeDiff(){if(this.original.lines.length===1&&this.original.lines[0].length===0)return this.modified.lines.length===1&&this.modified.lines[0].length===0?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:void 0}]};if(this.modified.lines.length===1&&this.modified.lines[0].length===0)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:void 0}]};const t=zs(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),n=t.changes,i=t.quitEarly;if(this.shouldIgnoreTrimWhitespace){const l=[];for(let o=0,u=n.length;o<u;o++)l.push(Ht.createFromDiffResult(this.shouldIgnoreTrimWhitespace,n[o],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:i,changes:l}}const r=[];let s=0,a=0;for(let l=-1,o=n.length;l<o;l++){const u=l+1<o?n[l+1]:null,c=u?u.originalStart:this.originalLines.length,d=u?u.modifiedStart:this.modifiedLines.length;for(;s<c&&a<d;){const m=this.originalLines[s],f=this.modifiedLines[a];if(m!==f){{let w=mi(m,1),p=mi(f,1);for(;w>1&&p>1;){const x=m.charCodeAt(w-2),T=f.charCodeAt(p-2);if(x!==T)break;w--,p--}(w>1||p>1)&&this._pushTrimWhitespaceCharChange(r,s+1,1,w,a+1,1,p)}{let w=fi(m,1),p=fi(f,1);const x=m.length+1,T=f.length+1;for(;w<x&&p<T;){const y=m.charCodeAt(w-1),L=m.charCodeAt(p-1);if(y!==L)break;w++,p++}(w<x||p<T)&&this._pushTrimWhitespaceCharChange(r,s+1,w,x,a+1,p,T)}}s++,a++}u&&(r.push(Ht.createFromDiffResult(this.shouldIgnoreTrimWhitespace,u,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),s+=u.originalLength,a+=u.modifiedLength)}return{quitEarly:i,changes:r}}_pushTrimWhitespaceCharChange(t,n,i,r,s,a,l){if(this._mergeTrimWhitespaceCharChange(t,n,i,r,s,a,l))return;let o;this.shouldComputeCharChanges&&(o=[new bt(n,i,n,r,s,a,s,l)]),t.push(new Ht(n,n,s,s,o))}_mergeTrimWhitespaceCharChange(t,n,i,r,s,a,l){const o=t.length;if(o===0)return!1;const u=t[o-1];return u.originalEndLineNumber===0||u.modifiedEndLineNumber===0?!1:u.originalEndLineNumber===n&&u.modifiedEndLineNumber===s?(this.shouldComputeCharChanges&&u.charChanges&&u.charChanges.push(new bt(n,i,n,r,s,a,s,l)),!0):u.originalEndLineNumber+1===n&&u.modifiedEndLineNumber+1===s?(u.originalEndLineNumber=n,u.modifiedEndLineNumber=s,this.shouldComputeCharChanges&&u.charChanges&&u.charChanges.push(new bt(n,i,n,r,s,a,s,l)),!0):!1}}function mi(e,t){const n=Xo(e);return n===-1?t:n+1}function fi(e,t){const n=Jo(e);return n===-1?t:n+2}function Us(e){if(e===0)return()=>!0;const t=Date.now();return()=>Date.now()-t<e}class Pe{static trivial(t,n){return new Pe([new ne(G.ofLength(t.length),G.ofLength(n.length))],!1)}static trivialTimedOut(t,n){return new Pe([new ne(G.ofLength(t.length),G.ofLength(n.length))],!0)}constructor(t,n){this.diffs=t,this.hitTimeout=n}}class ne{static invert(t,n){const i=[];return uu(t,(r,s)=>{i.push(ne.fromOffsetPairs(r?r.getEndExclusives():Be.zero,s?s.getStarts():new Be(n,(r?r.seq2Range.endExclusive-r.seq1Range.endExclusive:0)+n)))}),i}static fromOffsetPairs(t,n){return new ne(new G(t.offset1,n.offset1),new G(t.offset2,n.offset2))}static assertSorted(t){let n;for(const i of t){if(n&&!(n.seq1Range.endExclusive<=i.seq1Range.start&&n.seq2Range.endExclusive<=i.seq2Range.start))throw new ue("Sequence diffs must be sorted");n=i}}constructor(t,n){this.seq1Range=t,this.seq2Range=n}swap(){return new ne(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(t){return new ne(this.seq1Range.join(t.seq1Range),this.seq2Range.join(t.seq2Range))}delta(t){return t===0?this:new ne(this.seq1Range.delta(t),this.seq2Range.delta(t))}deltaStart(t){return t===0?this:new ne(this.seq1Range.deltaStart(t),this.seq2Range.deltaStart(t))}deltaEnd(t){return t===0?this:new ne(this.seq1Range.deltaEnd(t),this.seq2Range.deltaEnd(t))}intersect(t){const n=this.seq1Range.intersect(t.seq1Range),i=this.seq2Range.intersect(t.seq2Range);if(!(!n||!i))return new ne(n,i)}getStarts(){return new Be(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new Be(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}const it=class it{constructor(t,n){this.offset1=t,this.offset2=n}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(t){return t===0?this:new it(this.offset1+t,this.offset2+t)}equals(t){return this.offset1===t.offset1&&this.offset2===t.offset2}};it.zero=new it(0,0),it.max=new it(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER);let Be=it;const En=class En{isValid(){return!0}};En.instance=new En;let Ut=En;class ku{constructor(t){if(this.timeout=t,this.startTime=Date.now(),this.valid=!0,t<=0)throw new ue("timeout must be positive")}isValid(){return!(Date.now()-this.startTime<this.timeout)&&this.valid&&(this.valid=!1),this.valid}}class pi{constructor(t,n){this.width=t,this.height=n,this.array=[],this.array=new Array(t*n)}get(t,n){return this.array[t+n*this.width]}set(t,n,i){this.array[t+n*this.width]=i}}function gi(e){return e===32||e===9}const jt=class jt{static getKey(t){let n=this.chrKeys.get(t);return n===void 0&&(n=this.chrKeys.size,this.chrKeys.set(t,n)),n}constructor(t,n,i){this.range=t,this.lines=n,this.source=i,this.histogram=[];let r=0;for(let s=t.startLineNumber-1;s<t.endLineNumberExclusive-1;s++){const a=n[s];for(let o=0;o<a.length;o++){r++;const u=a[o],c=jt.getKey(u);this.histogram[c]=(this.histogram[c]||0)+1}r++;const l=jt.getKey(`
|
|
21
|
-
`);this.histogram[l]=(this.histogram[l]||0)+1}this.totalCount=r}computeSimilarity(
|
|
22
|
-
`).length>=15&&Du(d,f=>f.length>=2)>=2}),a=Iu(e,a),a}function Du(e,t){let n=0;for(const i of e)t(i)&&n++;return n}function Ru(e,t,n,i){const r=[],s=e.filter(o=>o.modified.isEmpty&&o.original.length>=3).map(o=>new cn(o.original,t,o)),a=new Set(e.filter(o=>o.original.isEmpty&&o.modified.length>=3).map(o=>new cn(o.modified,n,o))),l=new Set;for(const o of s){let u=-1,c;for(const d of a){const m=o.computeSimilarity(d);m>u&&(u=m,c=d)}if(u>.9&&c&&(a.delete(c),r.push(new ve(o.range,c.range)),l.add(o.source),l.add(c.source)),!i.isValid())return{moves:r,excludedChanges:l}}return{moves:r,excludedChanges:l}}function Mu(e,t,n,i,r,s){const a=[],l=new Jl;for(const m of e)for(let f=m.original.startLineNumber;f<m.original.endLineNumberExclusive-2;f++){const w=`${t[f-1]}:${t[f+1-1]}:${t[f+2-1]}`;l.add(w,{range:new X(f,f+3)})}const o=[];e.sort(Nt(m=>m.modified.startLineNumber,It));for(const m of e){let f=[];for(let w=m.modified.startLineNumber;w<m.modified.endLineNumberExclusive-2;w++){const p=`${n[w-1]}:${n[w+1-1]}:${n[w+2-1]}`,x=new X(w,w+3),T=[];l.forEach(p,({range:y})=>{for(const I of f)if(I.originalLineRange.endLineNumberExclusive+1===y.endLineNumberExclusive&&I.modifiedLineRange.endLineNumberExclusive+1===x.endLineNumberExclusive){I.originalLineRange=new X(I.originalLineRange.startLineNumber,y.endLineNumberExclusive),I.modifiedLineRange=new X(I.modifiedLineRange.startLineNumber,x.endLineNumberExclusive),T.push(I);return}const L={modifiedLineRange:x,originalLineRange:y};o.push(L),T.push(L)}),f=T}if(!s.isValid())return[]}o.sort(du(Nt(m=>m.modifiedLineRange.length,It)));const u=new Me,c=new Me;for(const m of o){const f=m.modifiedLineRange.startLineNumber-m.originalLineRange.startLineNumber,w=u.subtractFrom(m.modifiedLineRange),p=c.subtractFrom(m.originalLineRange).getWithDelta(f),x=w.getIntersection(p);for(const T of x.ranges){if(T.length<3)continue;const y=T,L=T.delta(-f);a.push(new ve(L,y)),u.addRange(y),c.addRange(L)}}a.sort(Nt(m=>m.original.startLineNumber,It));const d=new ln(e);for(let m=0;m<a.length;m++){const f=a[m],w=d.findLastMonotonous(W=>W.original.startLineNumber<=f.original.startLineNumber),p=mt(e,W=>W.modified.startLineNumber<=f.modified.startLineNumber),x=Math.max(f.original.startLineNumber-w.original.startLineNumber,f.modified.startLineNumber-p.modified.startLineNumber),T=d.findLastMonotonous(W=>W.original.startLineNumber<f.original.endLineNumberExclusive),y=mt(e,W=>W.modified.startLineNumber<f.modified.endLineNumberExclusive),L=Math.max(T.original.endLineNumberExclusive-f.original.endLineNumberExclusive,y.modified.endLineNumberExclusive-f.modified.endLineNumberExclusive);let I;for(I=0;I<x;I++){const W=f.original.startLineNumber-I-1,b=f.modified.startLineNumber-I-1;if(W>i.length||b>r.length||u.contains(b)||c.contains(W)||!Os(i[W-1],r[b-1],s))break}I>0&&(c.addRange(new X(f.original.startLineNumber-I,f.original.startLineNumber)),u.addRange(new X(f.modified.startLineNumber-I,f.modified.startLineNumber)));let H;for(H=0;H<L;H++){const W=f.original.endLineNumberExclusive+H,b=f.modified.endLineNumberExclusive+H;if(W>i.length||b>r.length||u.contains(b)||c.contains(W)||!Os(i[W-1],r[b-1],s))break}H>0&&(c.addRange(new X(f.original.endLineNumberExclusive,f.original.endLineNumberExclusive+H)),u.addRange(new X(f.modified.endLineNumberExclusive,f.modified.endLineNumberExclusive+H))),(I>0||H>0)&&(a[m]=new ve(new X(f.original.startLineNumber-I,f.original.endLineNumberExclusive+H),new X(f.modified.startLineNumber-I,f.modified.endLineNumberExclusive+H)))}return a}function Os(e,t,n){if(e.trim()===t.trim())return!0;if(e.length>300&&t.length>300)return!1;const r=new Ws().compute(new hn([e],new j(1,1,1,e.length),!1),new hn([t],new j(1,1,1,t.length),!1),n);let s=0;const a=ne.invert(r.diffs,e.length);for(const c of a)c.seq1Range.forEach(d=>{gi(e.charCodeAt(d))||s++});function l(c){let d=0;for(let m=0;m<e.length;m++)gi(c.charCodeAt(m))||d++;return d}const o=l(e.length>t.length?e:t);return s/o>.6&&o>10}function Nu(e){if(e.length===0)return e;e.sort(Nt(n=>n.original.startLineNumber,It));const t=[e[0]];for(let n=1;n<e.length;n++){const i=t[t.length-1],r=e[n],s=r.original.startLineNumber-i.original.endLineNumberExclusive,a=r.modified.startLineNumber-i.modified.endLineNumberExclusive;if(s>=0&&a>=0&&s+a<=2){t[t.length-1]=i.join(r);continue}t.push(r)}return t}function Iu(e,t){const n=new ln(e);return t=t.filter(i=>{const r=n.findLastMonotonous(l=>l.original.startLineNumber<i.original.endLineNumberExclusive)||new ve(new X(1,1),new X(1,1)),s=mt(e,l=>l.modified.startLineNumber<i.modified.endLineNumberExclusive);return r!==s}),t}function Vs(e,t,n){let i=n;return i=js(e,t,i),i=js(e,t,i),i=zu(e,t,i),i}function js(e,t,n){if(n.length===0)return n;const i=[];i.push(n[0]);for(let s=1;s<n.length;s++){const a=i[i.length-1];let l=n[s];if(l.seq1Range.isEmpty||l.seq2Range.isEmpty){const o=l.seq1Range.start-a.seq1Range.endExclusive;let u;for(u=1;u<=o&&!(e.getElement(l.seq1Range.start-u)!==e.getElement(l.seq1Range.endExclusive-u)||t.getElement(l.seq2Range.start-u)!==t.getElement(l.seq2Range.endExclusive-u));u++);if(u--,u===o){i[i.length-1]=new ne(new G(a.seq1Range.start,l.seq1Range.endExclusive-o),new G(a.seq2Range.start,l.seq2Range.endExclusive-o));continue}l=l.delta(-u)}i.push(l)}const r=[];for(let s=0;s<i.length-1;s++){const a=i[s+1];let l=i[s];if(l.seq1Range.isEmpty||l.seq2Range.isEmpty){const o=a.seq1Range.start-l.seq1Range.endExclusive;let u;for(u=0;u<o&&!(!e.isStronglyEqual(l.seq1Range.start+u,l.seq1Range.endExclusive+u)||!t.isStronglyEqual(l.seq2Range.start+u,l.seq2Range.endExclusive+u));u++);if(u===o){i[s+1]=new ne(new G(l.seq1Range.start+o,a.seq1Range.endExclusive),new G(l.seq2Range.start+o,a.seq2Range.endExclusive));continue}u>0&&(l=l.delta(u))}r.push(l)}return i.length>0&&r.push(i[i.length-1]),r}function zu(e,t,n){if(!e.getBoundaryScore||!t.getBoundaryScore)return n;for(let i=0;i<n.length;i++){const r=i>0?n[i-1]:void 0,s=n[i],a=i+1<n.length?n[i+1]:void 0,l=new G(r?r.seq1Range.endExclusive+1:0,a?a.seq1Range.start-1:e.length),o=new G(r?r.seq2Range.endExclusive+1:0,a?a.seq2Range.start-1:t.length);s.seq1Range.isEmpty?n[i]=$s(s,e,t,l,o):s.seq2Range.isEmpty&&(n[i]=$s(s.swap(),t,e,o,l).swap())}return n}function $s(e,t,n,i,r){let a=1;for(;e.seq1Range.start-a>=i.start&&e.seq2Range.start-a>=r.start&&n.isStronglyEqual(e.seq2Range.start-a,e.seq2Range.endExclusive-a)&&a<100;)a++;a--;let l=0;for(;e.seq1Range.start+l<i.endExclusive&&e.seq2Range.endExclusive+l<r.endExclusive&&n.isStronglyEqual(e.seq2Range.start+l,e.seq2Range.endExclusive+l)&&l<100;)l++;if(a===0&&l===0)return e;let o=0,u=-1;for(let c=-a;c<=l;c++){const d=e.seq2Range.start+c,m=e.seq2Range.endExclusive+c,f=e.seq1Range.start+c,w=t.getBoundaryScore(f)+n.getBoundaryScore(d)+n.getBoundaryScore(m);w>u&&(u=w,o=c)}return e.delta(o)}function Hu(e,t,n){const i=[];for(const r of n){const s=i[i.length-1];if(!s){i.push(r);continue}r.seq1Range.start-s.seq1Range.endExclusive<=2||r.seq2Range.start-s.seq2Range.endExclusive<=2?i[i.length-1]=new ne(s.seq1Range.join(r.seq1Range),s.seq2Range.join(r.seq2Range)):i.push(r)}return i}function Gs(e,t,n,i,r=!1){const s=ne.invert(n,e.length),a=[];let l=new Be(0,0);function o(c,d){if(c.offset1<l.offset1||c.offset2<l.offset2)return;const m=i(e,c.offset1),f=i(t,c.offset2);if(!m||!f)return;let w=new ne(m,f);const p=w.intersect(d);let x=p.seq1Range.length,T=p.seq2Range.length;for(;s.length>0;){const y=s[0];if(!(y.seq1Range.intersects(w.seq1Range)||y.seq2Range.intersects(w.seq2Range)))break;const I=i(e,y.seq1Range.start),H=i(t,y.seq2Range.start),W=new ne(I,H),b=W.intersect(y);if(x+=b.seq1Range.length,T+=b.seq2Range.length,w=w.join(W),w.seq1Range.endExclusive>=y.seq1Range.endExclusive)s.shift();else break}(r&&x+T<w.seq1Range.length+w.seq2Range.length||x+T<(w.seq1Range.length+w.seq2Range.length)*2/3)&&a.push(w),l=w.getEndExclusives()}for(;s.length>0;){const c=s.shift();c.seq1Range.isEmpty||(o(c.getStarts(),c),o(c.getEndExclusives().delta(-1),c))}return Uu(n,a)}function Uu(e,t){const n=[];for(;e.length>0||t.length>0;){const i=e[0],r=t[0];let s;i&&(!r||i.seq1Range.start<r.seq1Range.start)?s=e.shift():s=t.shift(),n.length>0&&n[n.length-1].seq1Range.endExclusive>=s.seq1Range.start?n[n.length-1]=n[n.length-1].join(s):n.push(s)}return n}function Wu(e,t,n){let i=n;if(i.length===0)return i;let r=0,s;do{s=!1;const a=[i[0]];for(let l=1;l<i.length;l++){let c=function(m,f){const w=new G(u.seq1Range.endExclusive,o.seq1Range.start);return e.getText(w).replace(/\s/g,"").length<=4&&(m.seq1Range.length+m.seq2Range.length>5||f.seq1Range.length+f.seq2Range.length>5)};const o=i[l],u=a[a.length-1];c(u,o)?(s=!0,a[a.length-1]=a[a.length-1].join(o)):a.push(o)}i=a}while(r++<10&&s);return i}function Fu(e,t,n){let i=n;if(i.length===0)return i;let r=0,s;do{s=!1;const l=[i[0]];for(let o=1;o<i.length;o++){let d=function(f,w){const p=new G(c.seq1Range.endExclusive,u.seq1Range.start);if(e.countLinesIn(p)>5||p.length>500)return!1;const T=e.getText(p).trim();if(T.length>20||T.split(/\r\n|\r|\n/).length>1)return!1;const y=e.countLinesIn(f.seq1Range),L=f.seq1Range.length,I=t.countLinesIn(f.seq2Range),H=f.seq2Range.length,W=e.countLinesIn(w.seq1Range),b=w.seq1Range.length,g=t.countLinesIn(w.seq2Range),_=w.seq2Range.length,N=2*40+50;function S(v){return Math.min(v,N)}return Math.pow(Math.pow(S(y*40+L),1.5)+Math.pow(S(I*40+H),1.5),1.5)+Math.pow(Math.pow(S(W*40+b),1.5)+Math.pow(S(g*40+_),1.5),1.5)>(N**1.5)**1.5*1.3};const u=i[o],c=l[l.length-1];d(c,u)?(s=!0,l[l.length-1]=l[l.length-1].join(u)):l.push(u)}i=l}while(r++<10&&s);const a=[];return cu(i,(l,o,u)=>{let c=o;function d(T){return T.length>0&&T.trim().length<=3&&o.seq1Range.length+o.seq2Range.length>100}const m=e.extendToFullLines(o.seq1Range),f=e.getText(new G(m.start,o.seq1Range.start));d(f)&&(c=c.deltaStart(-f.length));const w=e.getText(new G(o.seq1Range.endExclusive,m.endExclusive));d(w)&&(c=c.deltaEnd(w.length));const p=ne.fromOffsetPairs(l?l.getEndExclusives():Be.zero,u?u.getStarts():Be.max),x=c.intersect(p);a.length>0&&x.getStarts().equals(a[a.length-1].getEndExclusives())?a[a.length-1]=a[a.length-1].join(x):a.push(x)}),a}class Xs{constructor(t,n){this.trimmedHash=t,this.lines=n}getElement(t){return this.trimmedHash[t]}get length(){return this.trimmedHash.length}getBoundaryScore(t){const n=t===0?0:Js(this.lines[t-1]),i=t===this.lines.length?0:Js(this.lines[t]);return 1e3-(n+i)}getText(t){return this.lines.slice(t.start,t.endExclusive).join(`
|
|
23
|
-
`)}isStronglyEqual(t,n){return this.lines[t]===this.lines[n]}}function Js(e){let t=0;for(;t<e.length&&(e.charCodeAt(t)===32||e.charCodeAt(t)===9);)t++;return t}class Pu{constructor(){this.dynamicProgrammingDiffing=new Su,this.myersDiffingAlgorithm=new Ws}computeDiff(t,n,i){if(t.length<=1&&ou(t,n,(b,g)=>b===g))return new on([],[],!1);if(t.length===1&&t[0].length===0||n.length===1&&n[0].length===0)return new on([new Fe(new X(1,t.length+1),new X(1,n.length+1),[new ye(new j(1,1,t.length,t[t.length-1].length+1),new j(1,1,n.length,n[n.length-1].length+1))])],[],!1);const r=i.maxComputationTimeMs===0?Ut.instance:new ku(i.maxComputationTimeMs),s=!i.ignoreTrimWhitespace,a=new Map;function l(b){let g=a.get(b);return g===void 0&&(g=a.size,a.set(b,g)),g}const o=t.map(b=>l(b.trim())),u=n.map(b=>l(b.trim())),c=new Xs(o,t),d=new Xs(u,n),m=c.length+d.length<1700?this.dynamicProgrammingDiffing.compute(c,d,r,(b,g)=>t[b]===n[g]?n[g].length===0?.1:1+Math.log(1+n[g].length):.99):this.myersDiffingAlgorithm.compute(c,d,r);let f=m.diffs,w=m.hitTimeout;f=Vs(c,d,f),f=Wu(c,d,f);const p=[],x=b=>{if(s)for(let g=0;g<b;g++){const _=T+g,N=y+g;if(t[_]!==n[N]){const S=this.refineDiff(t,n,new ne(new G(_,_+1),new G(N,N+1)),r,s,i);for(const v of S.mappings)p.push(v);S.hitTimeout&&(w=!0)}}};let T=0,y=0;for(const b of f){Gt(()=>b.seq1Range.start-T===b.seq2Range.start-y);const g=b.seq1Range.start-T;x(g),T=b.seq1Range.endExclusive,y=b.seq2Range.endExclusive;const _=this.refineDiff(t,n,b,r,s,i);_.hitTimeout&&(w=!0);for(const N of _.mappings)p.push(N)}x(t.length-T);const L=new un(t),I=new un(n),H=Is(p,L,I);let W=[];return i.computeMoves&&(W=this.computeMoves(H,t,n,o,u,r,s,i)),Gt(()=>{function b(_,N){if(_.lineNumber<1||_.lineNumber>N.length)return!1;const S=N[_.lineNumber-1];return!(_.column<1||_.column>S.length+1)}function g(_,N){return!(_.startLineNumber<1||_.startLineNumber>N.length+1||_.endLineNumberExclusive<1||_.endLineNumberExclusive>N.length+1)}for(const _ of H){if(!_.innerChanges)return!1;for(const N of _.innerChanges)if(!(b(N.modifiedRange.getStartPosition(),n)&&b(N.modifiedRange.getEndPosition(),n)&&b(N.originalRange.getStartPosition(),t)&&b(N.originalRange.getEndPosition(),t)))return!1;if(!g(_.modified,n)||!g(_.original,t))return!1}return!0}),new on(H,W,w)}computeMoves(t,n,i,r,s,a,l,o){return Eu(t,n,i,r,s,a).map(d=>{const m=this.refineDiff(n,i,new ne(d.original.toOffsetRange(),d.modified.toOffsetRange()),a,l,o),f=Is(m.mappings,new un(n),new un(i),!0);return new au(d,f)})}refineDiff(t,n,i,r,s,a){const o=Bu(i).toRangeMapping2(t,n),u=new hn(t,o.originalRange,s),c=new hn(n,o.modifiedRange,s),d=u.length+c.length<500?this.dynamicProgrammingDiffing.compute(u,c,r):this.myersDiffingAlgorithm.compute(u,c,r);let m=d.diffs;return m=Vs(u,c,m),m=Gs(u,c,m,(w,p)=>w.findWordContaining(p)),a.extendToSubwords&&(m=Gs(u,c,m,(w,p)=>w.findSubWordContaining(p),!0)),m=Hu(u,c,m),m=Fu(u,c,m),{mappings:m.map(w=>new ye(u.translateRange(w.seq1Range),c.translateRange(w.seq2Range))),hitTimeout:d.hitTimeout}}}function Bu(e){return new ve(new X(e.seq1Range.start+1,e.seq1Range.endExclusive+1),new X(e.seq2Range.start+1,e.seq2Range.endExclusive+1))}const Qs={getLegacy:()=>new vu,getDefault:()=>new Pu};function Xe(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}class C{constructor(t,n,i,r=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,t))|0,this.g=Math.min(255,Math.max(0,n))|0,this.b=Math.min(255,Math.max(0,i))|0,this.a=Xe(Math.max(Math.min(1,r),0),3)}static equals(t,n){return t.r===n.r&&t.g===n.g&&t.b===n.b&&t.a===n.a}}class Te{constructor(t,n,i,r){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,t),0)|0,this.s=Xe(Math.max(Math.min(1,n),0),3),this.l=Xe(Math.max(Math.min(1,i),0),3),this.a=Xe(Math.max(Math.min(1,r),0),3)}static equals(t,n){return t.h===n.h&&t.s===n.s&&t.l===n.l&&t.a===n.a}static fromRGBA(t){const n=t.r/255,i=t.g/255,r=t.b/255,s=t.a,a=Math.max(n,i,r),l=Math.min(n,i,r);let o=0,u=0;const c=(l+a)/2,d=a-l;if(d>0){switch(u=Math.min(c<=.5?d/(2*c):d/(2-2*c),1),a){case n:o=(i-r)/d+(i<r?6:0);break;case i:o=(r-n)/d+2;break;case r:o=(n-i)/d+4;break}o*=60,o=Math.round(o)}return new Te(o,u,c,s)}static _hue2rgb(t,n,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+(n-t)*6*i:i<1/2?n:i<2/3?t+(n-t)*(2/3-i)*6:t}static toRGBA(t){const n=t.h/360,{s:i,l:r,a:s}=t;let a,l,o;if(i===0)a=l=o=r;else{const u=r<.5?r*(1+i):r+i-r*i,c=2*r-u;a=Te._hue2rgb(c,u,n+1/3),l=Te._hue2rgb(c,u,n),o=Te._hue2rgb(c,u,n-1/3)}return new C(Math.round(a*255),Math.round(l*255),Math.round(o*255),s)}}class _t{constructor(t,n,i,r){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,t),0)|0,this.s=Xe(Math.max(Math.min(1,n),0),3),this.v=Xe(Math.max(Math.min(1,i),0),3),this.a=Xe(Math.max(Math.min(1,r),0),3)}static equals(t,n){return t.h===n.h&&t.s===n.s&&t.v===n.v&&t.a===n.a}static fromRGBA(t){const n=t.r/255,i=t.g/255,r=t.b/255,s=Math.max(n,i,r),a=Math.min(n,i,r),l=s-a,o=s===0?0:l/s;let u;return l===0?u=0:s===n?u=((i-r)/l%6+6)%6:s===i?u=(r-n)/l+2:u=(n-i)/l+4,new _t(Math.round(u*60),o,s,t.a)}static toRGBA(t){const{h:n,s:i,v:r,a:s}=t,a=r*i,l=a*(1-Math.abs(n/60%2-1)),o=r-a;let[u,c,d]=[0,0,0];return n<60?(u=a,c=l):n<120?(u=l,c=a):n<180?(c=a,d=l):n<240?(c=l,d=a):n<300?(u=l,d=a):n<=360&&(u=a,d=l),u=Math.round((u+o)*255),c=Math.round((c+o)*255),d=Math.round((d+o)*255),new C(u,c,d,s)}}let dn=(Q=class{static fromHex(t){return Q.Format.CSS.parseHex(t)||Q.red}static equals(t,n){return!t&&!n?!0:!t||!n?!1:t.equals(n)}get hsla(){return this._hsla?this._hsla:Te.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:_t.fromRGBA(this.rgba)}constructor(t){if(t)if(t instanceof C)this.rgba=t;else if(t instanceof Te)this._hsla=t,this.rgba=Te.toRGBA(t);else if(t instanceof _t)this._hsva=t,this.rgba=_t.toRGBA(t);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}equals(t){return!!t&&C.equals(this.rgba,t.rgba)&&Te.equals(this.hsla,t.hsla)&&_t.equals(this.hsva,t.hsva)}getRelativeLuminance(){const t=Q._relativeLuminanceForComponent(this.rgba.r),n=Q._relativeLuminanceForComponent(this.rgba.g),i=Q._relativeLuminanceForComponent(this.rgba.b),r=.2126*t+.7152*n+.0722*i;return Xe(r,4)}static _relativeLuminanceForComponent(t){const n=t/255;return n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(t){const n=this.getRelativeLuminance(),i=t.getRelativeLuminance();return n>i}isDarkerThan(t){const n=this.getRelativeLuminance(),i=t.getRelativeLuminance();return n<i}lighten(t){return new Q(new Te(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*t,this.hsla.a))}darken(t){return new Q(new Te(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*t,this.hsla.a))}transparent(t){const{r:n,g:i,b:r,a:s}=this.rgba;return new Q(new C(n,i,r,s*t))}isTransparent(){return this.rgba.a===0}isOpaque(){return this.rgba.a===1}opposite(){return new Q(new C(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}mix(t,n=.5){const i=Math.min(Math.max(n,0),1),r=this.rgba,s=t.rgba,a=r.r+(s.r-r.r)*i,l=r.g+(s.g-r.g)*i,o=r.b+(s.b-r.b)*i,u=r.a+(s.a-r.a)*i;return new Q(new C(a,l,o,u))}makeOpaque(t){if(this.isOpaque()||t.rgba.a!==1)return this;const{r:n,g:i,b:r,a:s}=this.rgba;return new Q(new C(t.rgba.r-s*(t.rgba.r-n),t.rgba.g-s*(t.rgba.g-i),t.rgba.b-s*(t.rgba.b-r),1))}toString(){return this._toString||(this._toString=Q.Format.CSS.format(this)),this._toString}toNumber32Bit(){return this._toNumber32Bit||(this._toNumber32Bit=(this.rgba.r<<24|this.rgba.g<<16|this.rgba.b<<8|this.rgba.a*255<<0)>>>0),this._toNumber32Bit}static getLighterColor(t,n,i){if(t.isLighterThan(n))return t;i=i||.5;const r=t.getRelativeLuminance(),s=n.getRelativeLuminance();return i=i*(s-r)/s,t.lighten(i)}static getDarkerColor(t,n,i){if(t.isDarkerThan(n))return t;i=i||.5;const r=t.getRelativeLuminance(),s=n.getRelativeLuminance();return i=i*(r-s)/r,t.darken(i)}},Q.white=new Q(new C(255,255,255,1)),Q.black=new Q(new C(0,0,0,1)),Q.red=new Q(new C(255,0,0,1)),Q.blue=new Q(new C(0,0,255,1)),Q.green=new Q(new C(0,255,0,1)),Q.cyan=new Q(new C(0,255,255,1)),Q.lightgrey=new Q(new C(211,211,211,1)),Q.transparent=new Q(new C(0,0,0,0)),Q);(function(e){(function(t){(function(n){function i(p){return p.rgba.a===1?`rgb(${p.rgba.r}, ${p.rgba.g}, ${p.rgba.b})`:e.Format.CSS.formatRGBA(p)}n.formatRGB=i;function r(p){return`rgba(${p.rgba.r}, ${p.rgba.g}, ${p.rgba.b}, ${+p.rgba.a.toFixed(2)})`}n.formatRGBA=r;function s(p){return p.hsla.a===1?`hsl(${p.hsla.h}, ${Math.round(p.hsla.s*100)}%, ${Math.round(p.hsla.l*100)}%)`:e.Format.CSS.formatHSLA(p)}n.formatHSL=s;function a(p){return`hsla(${p.hsla.h}, ${Math.round(p.hsla.s*100)}%, ${Math.round(p.hsla.l*100)}%, ${p.hsla.a.toFixed(2)})`}n.formatHSLA=a;function l(p){const x=p.toString(16);return x.length!==2?"0"+x:x}function o(p){return`#${l(p.rgba.r)}${l(p.rgba.g)}${l(p.rgba.b)}`}n.formatHex=o;function u(p,x=!1){return x&&p.rgba.a===1?e.Format.CSS.formatHex(p):`#${l(p.rgba.r)}${l(p.rgba.g)}${l(p.rgba.b)}${l(Math.round(p.rgba.a*255))}`}n.formatHexA=u;function c(p){return p.isOpaque()?e.Format.CSS.formatHex(p):e.Format.CSS.formatRGBA(p)}n.format=c;function d(p){var x,T,y,L,I,H,W;if(p==="transparent")return e.transparent;if(p.startsWith("#"))return f(p);if(p.startsWith("rgba(")){const b=p.match(/rgba\((?<r>(?:\+|-)?\d+), *(?<g>(?:\+|-)?\d+), *(?<b>(?:\+|-)?\d+), *(?<a>(?:\+|-)?\d+(\.\d+)?)\)/);if(!b)throw new Error("Invalid color format "+p);const g=parseInt(((x=b.groups)==null?void 0:x.r)??"0"),_=parseInt(((T=b.groups)==null?void 0:T.g)??"0"),N=parseInt(((y=b.groups)==null?void 0:y.b)??"0"),S=parseFloat(((L=b.groups)==null?void 0:L.a)??"0");return new e(new C(g,_,N,S))}if(p.startsWith("rgb(")){const b=p.match(/rgb\((?<r>(?:\+|-)?\d+), *(?<g>(?:\+|-)?\d+), *(?<b>(?:\+|-)?\d+)\)/);if(!b)throw new Error("Invalid color format "+p);const g=parseInt(((I=b.groups)==null?void 0:I.r)??"0"),_=parseInt(((H=b.groups)==null?void 0:H.g)??"0"),N=parseInt(((W=b.groups)==null?void 0:W.b)??"0");return new e(new C(g,_,N))}return m(p)}n.parse=d;function m(p){switch(p){case"aliceblue":return new e(new C(240,248,255,1));case"antiquewhite":return new e(new C(250,235,215,1));case"aqua":return new e(new C(0,255,255,1));case"aquamarine":return new e(new C(127,255,212,1));case"azure":return new e(new C(240,255,255,1));case"beige":return new e(new C(245,245,220,1));case"bisque":return new e(new C(255,228,196,1));case"black":return new e(new C(0,0,0,1));case"blanchedalmond":return new e(new C(255,235,205,1));case"blue":return new e(new C(0,0,255,1));case"blueviolet":return new e(new C(138,43,226,1));case"brown":return new e(new C(165,42,42,1));case"burlywood":return new e(new C(222,184,135,1));case"cadetblue":return new e(new C(95,158,160,1));case"chartreuse":return new e(new C(127,255,0,1));case"chocolate":return new e(new C(210,105,30,1));case"coral":return new e(new C(255,127,80,1));case"cornflowerblue":return new e(new C(100,149,237,1));case"cornsilk":return new e(new C(255,248,220,1));case"crimson":return new e(new C(220,20,60,1));case"cyan":return new e(new C(0,255,255,1));case"darkblue":return new e(new C(0,0,139,1));case"darkcyan":return new e(new C(0,139,139,1));case"darkgoldenrod":return new e(new C(184,134,11,1));case"darkgray":return new e(new C(169,169,169,1));case"darkgreen":return new e(new C(0,100,0,1));case"darkgrey":return new e(new C(169,169,169,1));case"darkkhaki":return new e(new C(189,183,107,1));case"darkmagenta":return new e(new C(139,0,139,1));case"darkolivegreen":return new e(new C(85,107,47,1));case"darkorange":return new e(new C(255,140,0,1));case"darkorchid":return new e(new C(153,50,204,1));case"darkred":return new e(new C(139,0,0,1));case"darksalmon":return new e(new C(233,150,122,1));case"darkseagreen":return new e(new C(143,188,143,1));case"darkslateblue":return new e(new C(72,61,139,1));case"darkslategray":return new e(new C(47,79,79,1));case"darkslategrey":return new e(new C(47,79,79,1));case"darkturquoise":return new e(new C(0,206,209,1));case"darkviolet":return new e(new C(148,0,211,1));case"deeppink":return new e(new C(255,20,147,1));case"deepskyblue":return new e(new C(0,191,255,1));case"dimgray":return new e(new C(105,105,105,1));case"dimgrey":return new e(new C(105,105,105,1));case"dodgerblue":return new e(new C(30,144,255,1));case"firebrick":return new e(new C(178,34,34,1));case"floralwhite":return new e(new C(255,250,240,1));case"forestgreen":return new e(new C(34,139,34,1));case"fuchsia":return new e(new C(255,0,255,1));case"gainsboro":return new e(new C(220,220,220,1));case"ghostwhite":return new e(new C(248,248,255,1));case"gold":return new e(new C(255,215,0,1));case"goldenrod":return new e(new C(218,165,32,1));case"gray":return new e(new C(128,128,128,1));case"green":return new e(new C(0,128,0,1));case"greenyellow":return new e(new C(173,255,47,1));case"grey":return new e(new C(128,128,128,1));case"honeydew":return new e(new C(240,255,240,1));case"hotpink":return new e(new C(255,105,180,1));case"indianred":return new e(new C(205,92,92,1));case"indigo":return new e(new C(75,0,130,1));case"ivory":return new e(new C(255,255,240,1));case"khaki":return new e(new C(240,230,140,1));case"lavender":return new e(new C(230,230,250,1));case"lavenderblush":return new e(new C(255,240,245,1));case"lawngreen":return new e(new C(124,252,0,1));case"lemonchiffon":return new e(new C(255,250,205,1));case"lightblue":return new e(new C(173,216,230,1));case"lightcoral":return new e(new C(240,128,128,1));case"lightcyan":return new e(new C(224,255,255,1));case"lightgoldenrodyellow":return new e(new C(250,250,210,1));case"lightgray":return new e(new C(211,211,211,1));case"lightgreen":return new e(new C(144,238,144,1));case"lightgrey":return new e(new C(211,211,211,1));case"lightpink":return new e(new C(255,182,193,1));case"lightsalmon":return new e(new C(255,160,122,1));case"lightseagreen":return new e(new C(32,178,170,1));case"lightskyblue":return new e(new C(135,206,250,1));case"lightslategray":return new e(new C(119,136,153,1));case"lightslategrey":return new e(new C(119,136,153,1));case"lightsteelblue":return new e(new C(176,196,222,1));case"lightyellow":return new e(new C(255,255,224,1));case"lime":return new e(new C(0,255,0,1));case"limegreen":return new e(new C(50,205,50,1));case"linen":return new e(new C(250,240,230,1));case"magenta":return new e(new C(255,0,255,1));case"maroon":return new e(new C(128,0,0,1));case"mediumaquamarine":return new e(new C(102,205,170,1));case"mediumblue":return new e(new C(0,0,205,1));case"mediumorchid":return new e(new C(186,85,211,1));case"mediumpurple":return new e(new C(147,112,219,1));case"mediumseagreen":return new e(new C(60,179,113,1));case"mediumslateblue":return new e(new C(123,104,238,1));case"mediumspringgreen":return new e(new C(0,250,154,1));case"mediumturquoise":return new e(new C(72,209,204,1));case"mediumvioletred":return new e(new C(199,21,133,1));case"midnightblue":return new e(new C(25,25,112,1));case"mintcream":return new e(new C(245,255,250,1));case"mistyrose":return new e(new C(255,228,225,1));case"moccasin":return new e(new C(255,228,181,1));case"navajowhite":return new e(new C(255,222,173,1));case"navy":return new e(new C(0,0,128,1));case"oldlace":return new e(new C(253,245,230,1));case"olive":return new e(new C(128,128,0,1));case"olivedrab":return new e(new C(107,142,35,1));case"orange":return new e(new C(255,165,0,1));case"orangered":return new e(new C(255,69,0,1));case"orchid":return new e(new C(218,112,214,1));case"palegoldenrod":return new e(new C(238,232,170,1));case"palegreen":return new e(new C(152,251,152,1));case"paleturquoise":return new e(new C(175,238,238,1));case"palevioletred":return new e(new C(219,112,147,1));case"papayawhip":return new e(new C(255,239,213,1));case"peachpuff":return new e(new C(255,218,185,1));case"peru":return new e(new C(205,133,63,1));case"pink":return new e(new C(255,192,203,1));case"plum":return new e(new C(221,160,221,1));case"powderblue":return new e(new C(176,224,230,1));case"purple":return new e(new C(128,0,128,1));case"rebeccapurple":return new e(new C(102,51,153,1));case"red":return new e(new C(255,0,0,1));case"rosybrown":return new e(new C(188,143,143,1));case"royalblue":return new e(new C(65,105,225,1));case"saddlebrown":return new e(new C(139,69,19,1));case"salmon":return new e(new C(250,128,114,1));case"sandybrown":return new e(new C(244,164,96,1));case"seagreen":return new e(new C(46,139,87,1));case"seashell":return new e(new C(255,245,238,1));case"sienna":return new e(new C(160,82,45,1));case"silver":return new e(new C(192,192,192,1));case"skyblue":return new e(new C(135,206,235,1));case"slateblue":return new e(new C(106,90,205,1));case"slategray":return new e(new C(112,128,144,1));case"slategrey":return new e(new C(112,128,144,1));case"snow":return new e(new C(255,250,250,1));case"springgreen":return new e(new C(0,255,127,1));case"steelblue":return new e(new C(70,130,180,1));case"tan":return new e(new C(210,180,140,1));case"teal":return new e(new C(0,128,128,1));case"thistle":return new e(new C(216,191,216,1));case"tomato":return new e(new C(255,99,71,1));case"turquoise":return new e(new C(64,224,208,1));case"violet":return new e(new C(238,130,238,1));case"wheat":return new e(new C(245,222,179,1));case"white":return new e(new C(255,255,255,1));case"whitesmoke":return new e(new C(245,245,245,1));case"yellow":return new e(new C(255,255,0,1));case"yellowgreen":return new e(new C(154,205,50,1));default:return null}}function f(p){const x=p.length;if(x===0||p.charCodeAt(0)!==35)return null;if(x===7){const T=16*w(p.charCodeAt(1))+w(p.charCodeAt(2)),y=16*w(p.charCodeAt(3))+w(p.charCodeAt(4)),L=16*w(p.charCodeAt(5))+w(p.charCodeAt(6));return new e(new C(T,y,L,1))}if(x===9){const T=16*w(p.charCodeAt(1))+w(p.charCodeAt(2)),y=16*w(p.charCodeAt(3))+w(p.charCodeAt(4)),L=16*w(p.charCodeAt(5))+w(p.charCodeAt(6)),I=16*w(p.charCodeAt(7))+w(p.charCodeAt(8));return new e(new C(T,y,L,I/255))}if(x===4){const T=w(p.charCodeAt(1)),y=w(p.charCodeAt(2)),L=w(p.charCodeAt(3));return new e(new C(16*T+T,16*y+y,16*L+L))}if(x===5){const T=w(p.charCodeAt(1)),y=w(p.charCodeAt(2)),L=w(p.charCodeAt(3)),I=w(p.charCodeAt(4));return new e(new C(16*T+T,16*y+y,16*L+L,(16*I+I)/255))}return null}n.parseHex=f;function w(p){switch(p){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:return 10;case 65:return 10;case 98:return 11;case 66:return 11;case 99:return 12;case 67:return 12;case 100:return 13;case 68:return 13;case 101:return 14;case 69:return 14;case 102:return 15;case 70:return 15}return 0}})(t.CSS||(t.CSS={}))})(e.Format||(e.Format={}))})(dn||(dn={}));function Ys(e){const t=[];for(const n of e){const i=Number(n);(i||i===0&&n.replace(/\s/g,"")!=="")&&t.push(i)}return t}function bi(e,t,n,i){return{red:e/255,blue:n/255,green:t/255,alpha:i}}function Wt(e,t){const n=t.index,i=t[0].length;if(n===void 0)return;const r=e.positionAt(n);return{startLineNumber:r.lineNumber,startColumn:r.column,endLineNumber:r.lineNumber,endColumn:r.column+i}}function qu(e,t){if(!e)return;const n=dn.Format.CSS.parseHex(t);if(n)return{range:e,color:bi(n.rgba.r,n.rgba.g,n.rgba.b,n.rgba.a)}}function Zs(e,t,n){if(!e||t.length!==1)return;const r=t[0].values(),s=Ys(r);return{range:e,color:bi(s[0],s[1],s[2],n?s[3]:1)}}function Ks(e,t,n){if(!e||t.length!==1)return;const r=t[0].values(),s=Ys(r),a=new dn(new Te(s[0],s[1]/100,s[2]/100,n?s[3]:1));return{range:e,color:bi(a.rgba.r,a.rgba.g,a.rgba.b,a.rgba.a)}}function Ft(e,t){return typeof e=="string"?[...e.matchAll(t)]:e.findMatches(t)}function Ou(e){const t=[],n=new RegExp(`\\b(rgb|rgba|hsl|hsla)(\\([0-9\\s,.\\%]*\\))|^(#)([A-Fa-f0-9]{3})\\b|^(#)([A-Fa-f0-9]{4})\\b|^(#)([A-Fa-f0-9]{6})\\b|^(#)([A-Fa-f0-9]{8})\\b|(?<=['"\\s])(#)([A-Fa-f0-9]{3})\\b|(?<=['"\\s])(#)([A-Fa-f0-9]{4})\\b|(?<=['"\\s])(#)([A-Fa-f0-9]{6})\\b|(?<=['"\\s])(#)([A-Fa-f0-9]{8})\\b`,"gm"),i=Ft(e,n);if(i.length>0)for(const r of i){const s=r.filter(u=>u!==void 0),a=s[1],l=s[2];if(!l)continue;let o;if(a==="rgb"){const u=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm;o=Zs(Wt(e,r),Ft(l,u),!1)}else if(a==="rgba"){const u=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;o=Zs(Wt(e,r),Ft(l,u),!0)}else if(a==="hsl"){const u=/^\(\s*((?:360(?:\.0+)?|(?:36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])(?:\.\d+)?))\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;o=Ks(Wt(e,r),Ft(l,u),!1)}else if(a==="hsla"){const u=/^\(\s*((?:360(?:\.0+)?|(?:36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])(?:\.\d+)?))\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*[\s,]\s*(0[.][0-9]+|[.][0-9]+|[01][.]0*|[01])\s*\)$/gm;o=Ks(Wt(e,r),Ft(l,u),!0)}else a==="#"&&(o=qu(Wt(e,r),a+l));o&&t.push(o)}return t}function Vu(e){return!e||typeof e.getValue!="function"||typeof e.positionAt!="function"?[]:Ou(e)}const ju=/^-+|-+$/g,ea=100,$u=5;function Gu(e,t){var i;let n=[];if(t.findRegionSectionHeaders&&((i=t.foldingRules)!=null&&i.markers)){const r=Xu(e,t);n=n.concat(r)}if(t.findMarkSectionHeaders){const r=Ju(e,t);n=n.concat(r)}return n}function Xu(e,t){const n=[],i=e.getLineCount();for(let r=1;r<=i;r++){const s=e.getLineContent(r),a=s.match(t.foldingRules.markers.start);if(a){const l={startLineNumber:r,startColumn:a[0].length+1,endLineNumber:r,endColumn:s.length+1};if(l.endColumn>l.startColumn){const o={range:l,...Qu(s.substring(a[0].length)),shouldBeInComments:!1};(o.text||o.hasSeparatorLine)&&n.push(o)}}}return n}function Ju(e,t){const n=[],i=e.getLineCount();if(!t.markSectionHeaderRegex||t.markSectionHeaderRegex.trim()==="")return n;const r=Ql(t.markSectionHeaderRegex),s=new RegExp(t.markSectionHeaderRegex,`gdm${r?"s":""}`);if($o(s))return n;for(let a=1;a<=i;a+=ea-$u){const l=Math.min(a+ea-1,i),o=[];for(let d=a;d<=l;d++)o.push(e.getLineContent(d));const u=o.join(`
|
|
20
|
+
`),r=Bo(n,i),s=It.ofText(n.substring(0,n.length-r)).addToPosition(this.range.getStartPosition()),a=i.substring(0,i.length-r),l=j.fromPositions(this.range.getStartPosition(),s);return new Ge(l,a)}toString(){const e=this.range.getStartPosition(),n=this.range.getEndPosition();return`(${e.lineNumber},${e.column} -> ${n.lineNumber},${n.column}): "${this.text}"`}}class ve{static inverse(e,n,i){const r=[];let s=1,a=1;for(const o of e){const u=new ve(new X(s,o.original.startLineNumber),new X(a,o.modified.startLineNumber));u.modified.isEmpty||r.push(u),s=o.original.endLineNumberExclusive,a=o.modified.endLineNumberExclusive}const l=new ve(new X(s,n+1),new X(a,i+1));return l.modified.isEmpty||r.push(l),r}static clip(e,n,i){const r=[];for(const s of e){const a=s.original.intersect(n),l=s.modified.intersect(i);a&&!a.isEmpty&&l&&!l.isEmpty&&r.push(new ve(a,l))}return r}constructor(e,n){this.original=e,this.modified=n}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new ve(this.modified,this.original)}join(e){return new ve(this.original.join(e.original),this.modified.join(e.modified))}toRangeMapping(){const e=this.original.toInclusiveRange(),n=this.modified.toInclusiveRange();if(e&&n)return new ye(e,n);if(this.original.startLineNumber===1||this.modified.startLineNumber===1){if(!(this.modified.startLineNumber===1&&this.original.startLineNumber===1))throw new ue("not a valid diff");return new ye(new j(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new j(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1))}else return new ye(new j(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),new j(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER))}toRangeMapping2(e,n){if(xs(this.original.endLineNumberExclusive,e)&&xs(this.modified.endLineNumberExclusive,n))return new ye(new j(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new j(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1));if(!this.original.isEmpty&&!this.modified.isEmpty)return new ye(j.fromPositions(new K(this.original.startLineNumber,1),gt(new K(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),e)),j.fromPositions(new K(this.modified.startLineNumber,1),gt(new K(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),n)));if(this.original.startLineNumber>1&&this.modified.startLineNumber>1)return new ye(j.fromPositions(gt(new K(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER),e),gt(new K(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),e)),j.fromPositions(gt(new K(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER),n),gt(new K(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),n)));throw new ue}}function gt(t,e){if(t.lineNumber<1)return new K(1,1);if(t.lineNumber>e.length)return new K(e.length,e[e.length-1].length+1);const n=e[t.lineNumber-1];return t.column>n.length+1?new K(t.lineNumber,n.length+1):t}function xs(t,e){return t>=1&&t<=e.length}class We extends ve{static fromRangeMappings(e){const n=X.join(e.map(r=>X.fromRangeInclusive(r.originalRange))),i=X.join(e.map(r=>X.fromRangeInclusive(r.modifiedRange)));return new We(n,i,e)}constructor(e,n,i){super(e,n),this.innerChanges=i}flip(){var e;return new We(this.modified,this.original,(e=this.innerChanges)==null?void 0:e.map(n=>n.flip()))}withInnerChangesFromLineRanges(){return new We(this.original,this.modified,[this.toRangeMapping()])}}class ye{static fromEdit(e){const n=e.getNewRanges();return e.replacements.map((r,s)=>new ye(r.range,n[s]))}static assertSorted(e){for(let n=1;n<e.length;n++){const i=e[n-1],r=e[n];if(!(i.originalRange.getEndPosition().isBeforeOrEqual(r.originalRange.getStartPosition())&&i.modifiedRange.getEndPosition().isBeforeOrEqual(r.modifiedRange.getStartPosition())))throw new ue("Range mappings must be sorted")}}constructor(e,n){this.originalRange=e,this.modifiedRange=n}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new ye(this.modifiedRange,this.originalRange)}toTextEdit(e){const n=e.getValueOfRange(this.modifiedRange);return new Ge(this.originalRange,n)}}function ks(t,e,n,i=!1){const r=[];for(const s of Kl(t.map(a=>uu(a,e,n)),(a,l)=>a.original.intersectsOrTouches(l.original)||a.modified.intersectsOrTouches(l.modified))){const a=s[0],l=s[s.length-1];r.push(new We(a.original.join(l.original),a.modified.join(l.modified),s.map(o=>o.innerChanges[0])))}return $t(()=>!i&&r.length>0&&(r[0].modified.startLineNumber!==r[0].original.startLineNumber||n.length.lineCount-r[r.length-1].modified.endLineNumberExclusive!==e.length.lineCount-r[r.length-1].original.endLineNumberExclusive)?!1:Pi(r,(s,a)=>a.original.startLineNumber-s.original.endLineNumberExclusive===a.modified.startLineNumber-s.modified.endLineNumberExclusive&&s.original.endLineNumberExclusive<a.original.startLineNumber&&s.modified.endLineNumberExclusive<a.modified.startLineNumber)),r}function uu(t,e,n){let i=0,r=0;t.modifiedRange.endColumn===1&&t.originalRange.endColumn===1&&t.originalRange.startLineNumber+i<=t.originalRange.endLineNumber&&t.modifiedRange.startLineNumber+i<=t.modifiedRange.endLineNumber&&(r=-1),t.modifiedRange.startColumn-1>=n.getLineLength(t.modifiedRange.startLineNumber)&&t.originalRange.startColumn-1>=e.getLineLength(t.originalRange.startLineNumber)&&t.originalRange.startLineNumber<=t.originalRange.endLineNumber+r&&t.modifiedRange.startLineNumber<=t.modifiedRange.endLineNumber+r&&(i=1);const s=new X(t.originalRange.startLineNumber+i,t.originalRange.endLineNumber+1+r),a=new X(t.modifiedRange.startLineNumber+i,t.modifiedRange.endLineNumber+1+r);return new We(s,a,[t])}const cu=3;class hu{computeDiff(e,n,i){var o;const s=new fu(e,n,{maxComputationTime:i.maxComputationTimeMs,shouldIgnoreTrimWhitespace:i.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),a=[];let l=null;for(const u of s.changes){let c;u.originalEndLineNumber===0?c=new X(u.originalStartLineNumber+1,u.originalStartLineNumber+1):c=new X(u.originalStartLineNumber,u.originalEndLineNumber+1);let d;u.modifiedEndLineNumber===0?d=new X(u.modifiedStartLineNumber+1,u.modifiedStartLineNumber+1):d=new X(u.modifiedStartLineNumber,u.modifiedEndLineNumber+1);let m=new We(c,d,(o=u.charChanges)==null?void 0:o.map(f=>new ye(new j(f.originalStartLineNumber,f.originalStartColumn,f.originalEndLineNumber,f.originalEndColumn),new j(f.modifiedStartLineNumber,f.modifiedStartColumn,f.modifiedEndLineNumber,f.modifiedEndColumn))));l&&(l.modified.endLineNumberExclusive===m.modified.startLineNumber||l.original.endLineNumberExclusive===m.original.startLineNumber)&&(m=new We(l.original.join(m.original),l.modified.join(m.modified),l.innerChanges&&m.innerChanges?l.innerChanges.concat(m.innerChanges):void 0),a.pop()),a.push(m),l=m}return $t(()=>Pi(a,(u,c)=>c.original.startLineNumber-u.original.endLineNumberExclusive===c.modified.startLineNumber-u.modified.endLineNumberExclusive&&u.original.endLineNumberExclusive<c.original.startLineNumber&&u.modified.endLineNumberExclusive<c.modified.startLineNumber)),new sn(a,[],s.quitEarly)}}function Ss(t,e,n,i){return new je(t,e,n).ComputeDiff(i)}let As=class{constructor(e){const n=[],i=[];for(let r=0,s=e.length;r<s;r++)n[r]=oi(e[r],1),i[r]=li(e[r],1);this.lines=e,this._startColumns=n,this._endColumns=i}getElements(){const e=[];for(let n=0,i=this.lines.length;n<i;n++)e[n]=this.lines[n].substring(this._startColumns[n]-1,this._endColumns[n]-1);return e}getStrictElement(e){return this.lines[e]}getStartLineNumber(e){return e+1}getEndLineNumber(e){return e+1}createCharSequence(e,n,i){const r=[],s=[],a=[];let l=0;for(let o=n;o<=i;o++){const u=this.lines[o],c=e?this._startColumns[o]:1,d=e?this._endColumns[o]:u.length+1;for(let m=c;m<d;m++)r[l]=u.charCodeAt(m-1),s[l]=o+1,a[l]=m,l++;!e&&o<i&&(r[l]=10,s[l]=o+1,a[l]=u.length+1,l++)}return new du(r,s,a)}};class du{constructor(e,n,i){this._charCodes=e,this._lineNumbers=n,this._columns=i}toString(){return"["+this._charCodes.map((e,n)=>(e===10?"\\n":String.fromCharCode(e))+`-(${this._lineNumbers[n]},${this._columns[n]})`).join(", ")+"]"}_assertIndex(e,n){if(e<0||e>=n.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(e){return e>0&&e===this._lineNumbers.length?this.getEndLineNumber(e-1):(this._assertIndex(e,this._lineNumbers),this._lineNumbers[e])}getEndLineNumber(e){return e===-1?this.getStartLineNumber(e+1):(this._assertIndex(e,this._lineNumbers),this._charCodes[e]===10?this._lineNumbers[e]+1:this._lineNumbers[e])}getStartColumn(e){return e>0&&e===this._columns.length?this.getEndColumn(e-1):(this._assertIndex(e,this._columns),this._columns[e])}getEndColumn(e){return e===-1?this.getStartColumn(e+1):(this._assertIndex(e,this._columns),this._charCodes[e]===10?1:this._columns[e]+1)}}class bt{constructor(e,n,i,r,s,a,l,o){this.originalStartLineNumber=e,this.originalStartColumn=n,this.originalEndLineNumber=i,this.originalEndColumn=r,this.modifiedStartLineNumber=s,this.modifiedStartColumn=a,this.modifiedEndLineNumber=l,this.modifiedEndColumn=o}static createFromDiffChange(e,n,i){const r=n.getStartLineNumber(e.originalStart),s=n.getStartColumn(e.originalStart),a=n.getEndLineNumber(e.originalStart+e.originalLength-1),l=n.getEndColumn(e.originalStart+e.originalLength-1),o=i.getStartLineNumber(e.modifiedStart),u=i.getStartColumn(e.modifiedStart),c=i.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),d=i.getEndColumn(e.modifiedStart+e.modifiedLength-1);return new bt(r,s,a,l,o,u,c,d)}}function mu(t){if(t.length<=1)return t;const e=[t[0]];let n=e[0];for(let i=1,r=t.length;i<r;i++){const s=t[i],a=s.originalStart-(n.originalStart+n.originalLength),l=s.modifiedStart-(n.modifiedStart+n.modifiedLength);Math.min(a,l)<cu?(n.originalLength=s.originalStart+s.originalLength-n.originalStart,n.modifiedLength=s.modifiedStart+s.modifiedLength-n.modifiedStart):(e.push(s),n=s)}return e}class zt{constructor(e,n,i,r,s){this.originalStartLineNumber=e,this.originalEndLineNumber=n,this.modifiedStartLineNumber=i,this.modifiedEndLineNumber=r,this.charChanges=s}static createFromDiffResult(e,n,i,r,s,a,l){let o,u,c,d,m;if(n.originalLength===0?(o=i.getStartLineNumber(n.originalStart)-1,u=0):(o=i.getStartLineNumber(n.originalStart),u=i.getEndLineNumber(n.originalStart+n.originalLength-1)),n.modifiedLength===0?(c=r.getStartLineNumber(n.modifiedStart)-1,d=0):(c=r.getStartLineNumber(n.modifiedStart),d=r.getEndLineNumber(n.modifiedStart+n.modifiedLength-1)),a&&n.originalLength>0&&n.originalLength<20&&n.modifiedLength>0&&n.modifiedLength<20&&s()){const f=i.createCharSequence(e,n.originalStart,n.originalStart+n.originalLength-1),w=r.createCharSequence(e,n.modifiedStart,n.modifiedStart+n.modifiedLength-1);if(f.getElements().length>0&&w.getElements().length>0){let p=Ss(f,w,s,!0).changes;l&&(p=mu(p)),m=[];for(let x=0,T=p.length;x<T;x++)m.push(bt.createFromDiffChange(p[x],f,w))}}return new zt(o,u,c,d,m)}}class fu{constructor(e,n,i){this.shouldComputeCharChanges=i.shouldComputeCharChanges,this.shouldPostProcessCharChanges=i.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=i.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=i.shouldMakePrettyDiff,this.originalLines=e,this.modifiedLines=n,this.original=new As(e),this.modified=new As(n),this.continueLineDiff=Ls(i.maxComputationTime),this.continueCharDiff=Ls(i.maxComputationTime===0?0:Math.min(i.maxComputationTime,5e3))}computeDiff(){if(this.original.lines.length===1&&this.original.lines[0].length===0)return this.modified.lines.length===1&&this.modified.lines[0].length===0?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:void 0}]};if(this.modified.lines.length===1&&this.modified.lines[0].length===0)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:void 0}]};const e=Ss(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),n=e.changes,i=e.quitEarly;if(this.shouldIgnoreTrimWhitespace){const l=[];for(let o=0,u=n.length;o<u;o++)l.push(zt.createFromDiffResult(this.shouldIgnoreTrimWhitespace,n[o],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:i,changes:l}}const r=[];let s=0,a=0;for(let l=-1,o=n.length;l<o;l++){const u=l+1<o?n[l+1]:null,c=u?u.originalStart:this.originalLines.length,d=u?u.modifiedStart:this.modifiedLines.length;for(;s<c&&a<d;){const m=this.originalLines[s],f=this.modifiedLines[a];if(m!==f){{let w=oi(m,1),p=oi(f,1);for(;w>1&&p>1;){const x=m.charCodeAt(w-2),T=f.charCodeAt(p-2);if(x!==T)break;w--,p--}(w>1||p>1)&&this._pushTrimWhitespaceCharChange(r,s+1,1,w,a+1,1,p)}{let w=li(m,1),p=li(f,1);const x=m.length+1,T=f.length+1;for(;w<x&&p<T;){const y=m.charCodeAt(w-1),L=m.charCodeAt(p-1);if(y!==L)break;w++,p++}(w<x||p<T)&&this._pushTrimWhitespaceCharChange(r,s+1,w,x,a+1,p,T)}}s++,a++}u&&(r.push(zt.createFromDiffResult(this.shouldIgnoreTrimWhitespace,u,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),s+=u.originalLength,a+=u.modifiedLength)}return{quitEarly:i,changes:r}}_pushTrimWhitespaceCharChange(e,n,i,r,s,a,l){if(this._mergeTrimWhitespaceCharChange(e,n,i,r,s,a,l))return;let o;this.shouldComputeCharChanges&&(o=[new bt(n,i,n,r,s,a,s,l)]),e.push(new zt(n,n,s,s,o))}_mergeTrimWhitespaceCharChange(e,n,i,r,s,a,l){const o=e.length;if(o===0)return!1;const u=e[o-1];return u.originalEndLineNumber===0||u.modifiedEndLineNumber===0?!1:u.originalEndLineNumber===n&&u.modifiedEndLineNumber===s?(this.shouldComputeCharChanges&&u.charChanges&&u.charChanges.push(new bt(n,i,n,r,s,a,s,l)),!0):u.originalEndLineNumber+1===n&&u.modifiedEndLineNumber+1===s?(u.originalEndLineNumber=n,u.modifiedEndLineNumber=s,this.shouldComputeCharChanges&&u.charChanges&&u.charChanges.push(new bt(n,i,n,r,s,a,s,l)),!0):!1}}function oi(t,e){const n=Po(t);return n===-1?e:n+1}function li(t,e){const n=Wo(t);return n===-1?e:n+2}function Ls(t){if(t===0)return()=>!0;const e=Date.now();return()=>Date.now()-e<t}class Fe{static trivial(e,n){return new Fe([new ne(G.ofLength(e.length),G.ofLength(n.length))],!1)}static trivialTimedOut(e,n){return new Fe([new ne(G.ofLength(e.length),G.ofLength(n.length))],!0)}constructor(e,n){this.diffs=e,this.hitTimeout=n}}class ne{static invert(e,n){const i=[];return eu(e,(r,s)=>{i.push(ne.fromOffsetPairs(r?r.getEndExclusives():Be.zero,s?s.getStarts():new Be(n,(r?r.seq2Range.endExclusive-r.seq1Range.endExclusive:0)+n)))}),i}static fromOffsetPairs(e,n){return new ne(new G(e.offset1,n.offset1),new G(e.offset2,n.offset2))}static assertSorted(e){let n;for(const i of e){if(n&&!(n.seq1Range.endExclusive<=i.seq1Range.start&&n.seq2Range.endExclusive<=i.seq2Range.start))throw new ue("Sequence diffs must be sorted");n=i}}constructor(e,n){this.seq1Range=e,this.seq2Range=n}swap(){return new ne(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(e){return new ne(this.seq1Range.join(e.seq1Range),this.seq2Range.join(e.seq2Range))}delta(e){return e===0?this:new ne(this.seq1Range.delta(e),this.seq2Range.delta(e))}deltaStart(e){return e===0?this:new ne(this.seq1Range.deltaStart(e),this.seq2Range.deltaStart(e))}deltaEnd(e){return e===0?this:new ne(this.seq1Range.deltaEnd(e),this.seq2Range.deltaEnd(e))}intersect(e){const n=this.seq1Range.intersect(e.seq1Range),i=this.seq2Range.intersect(e.seq2Range);if(!(!n||!i))return new ne(n,i)}getStarts(){return new Be(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new Be(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}const it=class it{constructor(e,n){this.offset1=e,this.offset2=n}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(e){return e===0?this:new it(this.offset1+e,this.offset2+e)}equals(e){return this.offset1===e.offset1&&this.offset2===e.offset2}};it.zero=new it(0,0),it.max=new it(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER);let Be=it;const An=class An{isValid(){return!0}};An.instance=new An;let Ht=An;class pu{constructor(e){if(this.timeout=e,this.startTime=Date.now(),this.valid=!0,e<=0)throw new ue("timeout must be positive")}isValid(){return!(Date.now()-this.startTime<this.timeout)&&this.valid&&(this.valid=!1),this.valid}}class ui{constructor(e,n){this.width=e,this.height=n,this.array=[],this.array=new Array(e*n)}get(e,n){return this.array[e+n*this.width]}set(e,n,i){this.array[e+n*this.width]=i}}function ci(t){return t===32||t===9}const Vt=class Vt{static getKey(e){let n=this.chrKeys.get(e);return n===void 0&&(n=this.chrKeys.size,this.chrKeys.set(e,n)),n}constructor(e,n,i){this.range=e,this.lines=n,this.source=i,this.histogram=[];let r=0;for(let s=e.startLineNumber-1;s<e.endLineNumberExclusive-1;s++){const a=n[s];for(let o=0;o<a.length;o++){r++;const u=a[o],c=Vt.getKey(u);this.histogram[c]=(this.histogram[c]||0)+1}r++;const l=Vt.getKey(`
|
|
21
|
+
`);this.histogram[l]=(this.histogram[l]||0)+1}this.totalCount=r}computeSimilarity(e){let n=0;const i=Math.max(this.histogram.length,e.histogram.length);for(let r=0;r<i;r++)n+=Math.abs((this.histogram[r]??0)-(e.histogram[r]??0));return 1-n/(this.totalCount+e.totalCount)}};Vt.chrKeys=new Map;let ln=Vt;class gu{compute(e,n,i=Ht.instance,r){if(e.length===0||n.length===0)return Fe.trivial(e,n);const s=new ui(e.length,n.length),a=new ui(e.length,n.length),l=new ui(e.length,n.length);for(let w=0;w<e.length;w++)for(let p=0;p<n.length;p++){if(!i.isValid())return Fe.trivialTimedOut(e,n);const x=w===0?0:s.get(w-1,p),T=p===0?0:s.get(w,p-1);let y;e.getElement(w)===n.getElement(p)?(w===0||p===0?y=0:y=s.get(w-1,p-1),w>0&&p>0&&a.get(w-1,p-1)===3&&(y+=l.get(w-1,p-1)),y+=r?r(w,p):1):y=-1;const L=Math.max(x,T,y);if(L===y){const I=w>0&&p>0?l.get(w-1,p-1):0;l.set(w,p,I+1),a.set(w,p,3)}else L===x?(l.set(w,p,0),a.set(w,p,1)):L===T&&(l.set(w,p,0),a.set(w,p,2));s.set(w,p,L)}const o=[];let u=e.length,c=n.length;function d(w,p){(w+1!==u||p+1!==c)&&o.push(new ne(new G(w+1,u),new G(p+1,c))),u=w,c=p}let m=e.length-1,f=n.length-1;for(;m>=0&&f>=0;)a.get(m,f)===3?(d(m,f),m--,f--):a.get(m,f)===1?m--:f--;return d(-1,-1),o.reverse(),new Fe(o,!1)}}class Cs{compute(e,n,i=Ht.instance){if(e.length===0||n.length===0)return Fe.trivial(e,n);const r=e,s=n;function a(p,x){for(;p<r.length&&x<s.length&&r.getElement(p)===s.getElement(x);)p++,x++;return p}let l=0;const o=new bu;o.set(0,a(0,0));const u=new wu;u.set(0,o.get(0)===0?null:new Es(null,0,0,o.get(0)));let c=0;e:for(;;){if(l++,!i.isValid())return Fe.trivialTimedOut(r,s);const p=-Math.min(l,s.length+l%2),x=Math.min(l,r.length+l%2);for(c=p;c<=x;c+=2){const T=c===x?-1:o.get(c+1),y=c===p?-1:o.get(c-1)+1,L=Math.min(Math.max(T,y),r.length),I=L-c;if(L>r.length||I>s.length)continue;const H=a(L,I);o.set(c,H);const P=L===T?u.get(c+1):u.get(c-1);if(u.set(c,H!==L?new Es(P,L,I,H-L):P),o.get(c)===r.length&&o.get(c)-c===s.length)break e}}let d=u.get(c);const m=[];let f=r.length,w=s.length;for(;;){const p=d?d.x+d.length:0,x=d?d.y+d.length:0;if((p!==f||x!==w)&&m.push(new ne(new G(p,f),new G(x,w))),!d)break;f=d.x,w=d.y,d=d.prev}return m.reverse(),new Fe(m,!1)}}class Es{constructor(e,n,i,r){this.prev=e,this.x=n,this.y=i,this.length=r}}class bu{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,n){if(e<0){if(e=-e-1,e>=this.negativeArr.length){const i=this.negativeArr;this.negativeArr=new Int32Array(i.length*2),this.negativeArr.set(i)}this.negativeArr[e]=n}else{if(e>=this.positiveArr.length){const i=this.positiveArr;this.positiveArr=new Int32Array(i.length*2),this.positiveArr.set(i)}this.positiveArr[e]=n}}}class wu{constructor(){this.positiveArr=[],this.negativeArr=[]}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,n){e<0?(e=-e-1,this.negativeArr[e]=n):this.positiveArr[e]=n}}class un{constructor(e,n,i){this.lines=e,this.range=n,this.considerWhitespaceChanges=i,this.elements=[],this.firstElementOffsetByLineIdx=[],this.lineStartOffsets=[],this.trimmedWsLengthsByLineIdx=[],this.firstElementOffsetByLineIdx.push(0);for(let r=this.range.startLineNumber;r<=this.range.endLineNumber;r++){let s=e[r-1],a=0;r===this.range.startLineNumber&&this.range.startColumn>1&&(a=this.range.startColumn-1,s=s.substring(a)),this.lineStartOffsets.push(a);let l=0;if(!i){const u=s.trimStart();l=s.length-u.length,s=u.trimEnd()}this.trimmedWsLengthsByLineIdx.push(l);const o=r===this.range.endLineNumber?Math.min(this.range.endColumn-1-a-l,s.length):s.length;for(let u=0;u<o;u++)this.elements.push(s.charCodeAt(u));r<this.range.endLineNumber&&(this.elements.push(10),this.firstElementOffsetByLineIdx.push(this.elements.length))}}toString(){return`Slice: "${this.text}"`}get text(){return this.getText(new G(0,this.length))}getText(e){return this.elements.slice(e.start,e.endExclusive).map(n=>String.fromCharCode(n)).join("")}getElement(e){return this.elements[e]}get length(){return this.elements.length}getBoundaryScore(e){const n=Ms(e>0?this.elements[e-1]:-1),i=Ms(e<this.elements.length?this.elements[e]:-1);if(n===7&&i===8)return 0;if(n===8)return 150;let r=0;return n!==i&&(r+=10,n===0&&i===1&&(r+=1)),r+=Ds(n),r+=Ds(i),r}translateOffset(e,n="right"){const i=ft(this.firstElementOffsetByLineIdx,s=>s<=e),r=e-this.firstElementOffsetByLineIdx[i];return new K(this.range.startLineNumber+i,1+this.lineStartOffsets[i]+r+(r===0&&n==="left"?0:this.trimmedWsLengthsByLineIdx[i]))}translateRange(e){const n=this.translateOffset(e.start,"right"),i=this.translateOffset(e.endExclusive,"left");return i.isBefore(n)?j.fromPositions(i,i):j.fromPositions(n,i)}findWordContaining(e){if(e<0||e>=this.elements.length||!wt(this.elements[e]))return;let n=e;for(;n>0&&wt(this.elements[n-1]);)n--;let i=e;for(;i<this.elements.length&&wt(this.elements[i]);)i++;return new G(n,i)}findSubWordContaining(e){if(e<0||e>=this.elements.length||!wt(this.elements[e]))return;let n=e;for(;n>0&&wt(this.elements[n-1])&&!Rs(this.elements[n]);)n--;let i=e;for(;i<this.elements.length&&wt(this.elements[i])&&!Rs(this.elements[i]);)i++;return new G(n,i)}countLinesIn(e){return this.translateOffset(e.endExclusive).lineNumber-this.translateOffset(e.start).lineNumber}isStronglyEqual(e,n){return this.elements[e]===this.elements[n]}extendToFullLines(e){const n=mt(this.firstElementOffsetByLineIdx,r=>r<=e.start)??0,i=ru(this.firstElementOffsetByLineIdx,r=>e.endExclusive<=r)??this.elements.length;return new G(n,i)}}function wt(t){return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57}function Rs(t){return t>=65&&t<=90}const _u={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10};function Ds(t){return _u[t]}function Ms(t){return t===10?8:t===13?7:ci(t)?6:t>=97&&t<=122?0:t>=65&&t<=90?1:t>=48&&t<=57?2:t===-1?3:t===44||t===59?5:4}function vu(t,e,n,i,r,s){let{moves:a,excludedChanges:l}=Tu(t,e,n,s);if(!s.isValid())return[];const o=t.filter(c=>!l.has(c)),u=xu(o,i,r,e,n,s);return nu(a,u),a=ku(a),a=a.filter(c=>{const d=c.original.toOffsetRange().slice(e).map(f=>f.trim());return d.join(`
|
|
22
|
+
`).length>=15&&yu(d,f=>f.length>=2)>=2}),a=Su(t,a),a}function yu(t,e){let n=0;for(const i of t)e(i)&&n++;return n}function Tu(t,e,n,i){const r=[],s=t.filter(o=>o.modified.isEmpty&&o.original.length>=3).map(o=>new ln(o.original,e,o)),a=new Set(t.filter(o=>o.original.isEmpty&&o.modified.length>=3).map(o=>new ln(o.modified,n,o))),l=new Set;for(const o of s){let u=-1,c;for(const d of a){const m=o.computeSimilarity(d);m>u&&(u=m,c=d)}if(u>.9&&c&&(a.delete(c),r.push(new ve(o.range,c.range)),l.add(o.source),l.add(c.source)),!i.isValid())return{moves:r,excludedChanges:l}}return{moves:r,excludedChanges:l}}function xu(t,e,n,i,r,s){const a=[],l=new Fl;for(const m of t)for(let f=m.original.startLineNumber;f<m.original.endLineNumberExclusive-2;f++){const w=`${e[f-1]}:${e[f+1-1]}:${e[f+2-1]}`;l.add(w,{range:new X(f,f+3)})}const o=[];t.sort(Mt(m=>m.modified.startLineNumber,Nt));for(const m of t){let f=[];for(let w=m.modified.startLineNumber;w<m.modified.endLineNumberExclusive-2;w++){const p=`${n[w-1]}:${n[w+1-1]}:${n[w+2-1]}`,x=new X(w,w+3),T=[];l.forEach(p,({range:y})=>{for(const I of f)if(I.originalLineRange.endLineNumberExclusive+1===y.endLineNumberExclusive&&I.modifiedLineRange.endLineNumberExclusive+1===x.endLineNumberExclusive){I.originalLineRange=new X(I.originalLineRange.startLineNumber,y.endLineNumberExclusive),I.modifiedLineRange=new X(I.modifiedLineRange.startLineNumber,x.endLineNumberExclusive),T.push(I);return}const L={modifiedLineRange:x,originalLineRange:y};o.push(L),T.push(L)}),f=T}if(!s.isValid())return[]}o.sort(iu(Mt(m=>m.modifiedLineRange.length,Nt)));const u=new Me,c=new Me;for(const m of o){const f=m.modifiedLineRange.startLineNumber-m.originalLineRange.startLineNumber,w=u.subtractFrom(m.modifiedLineRange),p=c.subtractFrom(m.originalLineRange).getWithDelta(f),x=w.getIntersection(p);for(const T of x.ranges){if(T.length<3)continue;const y=T,L=T.delta(-f);a.push(new ve(L,y)),u.addRange(y),c.addRange(L)}}a.sort(Mt(m=>m.original.startLineNumber,Nt));const d=new an(t);for(let m=0;m<a.length;m++){const f=a[m],w=d.findLastMonotonous(P=>P.original.startLineNumber<=f.original.startLineNumber),p=mt(t,P=>P.modified.startLineNumber<=f.modified.startLineNumber),x=Math.max(f.original.startLineNumber-w.original.startLineNumber,f.modified.startLineNumber-p.modified.startLineNumber),T=d.findLastMonotonous(P=>P.original.startLineNumber<f.original.endLineNumberExclusive),y=mt(t,P=>P.modified.startLineNumber<f.modified.endLineNumberExclusive),L=Math.max(T.original.endLineNumberExclusive-f.original.endLineNumberExclusive,y.modified.endLineNumberExclusive-f.modified.endLineNumberExclusive);let I;for(I=0;I<x;I++){const P=f.original.startLineNumber-I-1,b=f.modified.startLineNumber-I-1;if(P>i.length||b>r.length||u.contains(b)||c.contains(P)||!Ns(i[P-1],r[b-1],s))break}I>0&&(c.addRange(new X(f.original.startLineNumber-I,f.original.startLineNumber)),u.addRange(new X(f.modified.startLineNumber-I,f.modified.startLineNumber)));let H;for(H=0;H<L;H++){const P=f.original.endLineNumberExclusive+H,b=f.modified.endLineNumberExclusive+H;if(P>i.length||b>r.length||u.contains(b)||c.contains(P)||!Ns(i[P-1],r[b-1],s))break}H>0&&(c.addRange(new X(f.original.endLineNumberExclusive,f.original.endLineNumberExclusive+H)),u.addRange(new X(f.modified.endLineNumberExclusive,f.modified.endLineNumberExclusive+H))),(I>0||H>0)&&(a[m]=new ve(new X(f.original.startLineNumber-I,f.original.endLineNumberExclusive+H),new X(f.modified.startLineNumber-I,f.modified.endLineNumberExclusive+H)))}return a}function Ns(t,e,n){if(t.trim()===e.trim())return!0;if(t.length>300&&e.length>300)return!1;const r=new Cs().compute(new un([t],new j(1,1,1,t.length),!1),new un([e],new j(1,1,1,e.length),!1),n);let s=0;const a=ne.invert(r.diffs,t.length);for(const c of a)c.seq1Range.forEach(d=>{ci(t.charCodeAt(d))||s++});function l(c){let d=0;for(let m=0;m<t.length;m++)ci(c.charCodeAt(m))||d++;return d}const o=l(t.length>e.length?t:e);return s/o>.6&&o>10}function ku(t){if(t.length===0)return t;t.sort(Mt(n=>n.original.startLineNumber,Nt));const e=[t[0]];for(let n=1;n<t.length;n++){const i=e[e.length-1],r=t[n],s=r.original.startLineNumber-i.original.endLineNumberExclusive,a=r.modified.startLineNumber-i.modified.endLineNumberExclusive;if(s>=0&&a>=0&&s+a<=2){e[e.length-1]=i.join(r);continue}e.push(r)}return e}function Su(t,e){const n=new an(t);return e=e.filter(i=>{const r=n.findLastMonotonous(l=>l.original.startLineNumber<i.original.endLineNumberExclusive)||new ve(new X(1,1),new X(1,1)),s=mt(t,l=>l.modified.startLineNumber<i.modified.endLineNumberExclusive);return r!==s}),e}function Is(t,e,n){let i=n;return i=zs(t,e,i),i=zs(t,e,i),i=Au(t,e,i),i}function zs(t,e,n){if(n.length===0)return n;const i=[];i.push(n[0]);for(let s=1;s<n.length;s++){const a=i[i.length-1];let l=n[s];if(l.seq1Range.isEmpty||l.seq2Range.isEmpty){const o=l.seq1Range.start-a.seq1Range.endExclusive;let u;for(u=1;u<=o&&!(t.getElement(l.seq1Range.start-u)!==t.getElement(l.seq1Range.endExclusive-u)||e.getElement(l.seq2Range.start-u)!==e.getElement(l.seq2Range.endExclusive-u));u++);if(u--,u===o){i[i.length-1]=new ne(new G(a.seq1Range.start,l.seq1Range.endExclusive-o),new G(a.seq2Range.start,l.seq2Range.endExclusive-o));continue}l=l.delta(-u)}i.push(l)}const r=[];for(let s=0;s<i.length-1;s++){const a=i[s+1];let l=i[s];if(l.seq1Range.isEmpty||l.seq2Range.isEmpty){const o=a.seq1Range.start-l.seq1Range.endExclusive;let u;for(u=0;u<o&&!(!t.isStronglyEqual(l.seq1Range.start+u,l.seq1Range.endExclusive+u)||!e.isStronglyEqual(l.seq2Range.start+u,l.seq2Range.endExclusive+u));u++);if(u===o){i[s+1]=new ne(new G(l.seq1Range.start+o,a.seq1Range.endExclusive),new G(l.seq2Range.start+o,a.seq2Range.endExclusive));continue}u>0&&(l=l.delta(u))}r.push(l)}return i.length>0&&r.push(i[i.length-1]),r}function Au(t,e,n){if(!t.getBoundaryScore||!e.getBoundaryScore)return n;for(let i=0;i<n.length;i++){const r=i>0?n[i-1]:void 0,s=n[i],a=i+1<n.length?n[i+1]:void 0,l=new G(r?r.seq1Range.endExclusive+1:0,a?a.seq1Range.start-1:t.length),o=new G(r?r.seq2Range.endExclusive+1:0,a?a.seq2Range.start-1:e.length);s.seq1Range.isEmpty?n[i]=Hs(s,t,e,l,o):s.seq2Range.isEmpty&&(n[i]=Hs(s.swap(),e,t,o,l).swap())}return n}function Hs(t,e,n,i,r){let a=1;for(;t.seq1Range.start-a>=i.start&&t.seq2Range.start-a>=r.start&&n.isStronglyEqual(t.seq2Range.start-a,t.seq2Range.endExclusive-a)&&a<100;)a++;a--;let l=0;for(;t.seq1Range.start+l<i.endExclusive&&t.seq2Range.endExclusive+l<r.endExclusive&&n.isStronglyEqual(t.seq2Range.start+l,t.seq2Range.endExclusive+l)&&l<100;)l++;if(a===0&&l===0)return t;let o=0,u=-1;for(let c=-a;c<=l;c++){const d=t.seq2Range.start+c,m=t.seq2Range.endExclusive+c,f=t.seq1Range.start+c,w=e.getBoundaryScore(f)+n.getBoundaryScore(d)+n.getBoundaryScore(m);w>u&&(u=w,o=c)}return t.delta(o)}function Lu(t,e,n){const i=[];for(const r of n){const s=i[i.length-1];if(!s){i.push(r);continue}r.seq1Range.start-s.seq1Range.endExclusive<=2||r.seq2Range.start-s.seq2Range.endExclusive<=2?i[i.length-1]=new ne(s.seq1Range.join(r.seq1Range),s.seq2Range.join(r.seq2Range)):i.push(r)}return i}function Us(t,e,n,i,r=!1){const s=ne.invert(n,t.length),a=[];let l=new Be(0,0);function o(c,d){if(c.offset1<l.offset1||c.offset2<l.offset2)return;const m=i(t,c.offset1),f=i(e,c.offset2);if(!m||!f)return;let w=new ne(m,f);const p=w.intersect(d);let x=p.seq1Range.length,T=p.seq2Range.length;for(;s.length>0;){const y=s[0];if(!(y.seq1Range.intersects(w.seq1Range)||y.seq2Range.intersects(w.seq2Range)))break;const I=i(t,y.seq1Range.start),H=i(e,y.seq2Range.start),P=new ne(I,H),b=P.intersect(y);if(x+=b.seq1Range.length,T+=b.seq2Range.length,w=w.join(P),w.seq1Range.endExclusive>=y.seq1Range.endExclusive)s.shift();else break}(r&&x+T<w.seq1Range.length+w.seq2Range.length||x+T<(w.seq1Range.length+w.seq2Range.length)*2/3)&&a.push(w),l=w.getEndExclusives()}for(;s.length>0;){const c=s.shift();c.seq1Range.isEmpty||(o(c.getStarts(),c),o(c.getEndExclusives().delta(-1),c))}return Cu(n,a)}function Cu(t,e){const n=[];for(;t.length>0||e.length>0;){const i=t[0],r=e[0];let s;i&&(!r||i.seq1Range.start<r.seq1Range.start)?s=t.shift():s=e.shift(),n.length>0&&n[n.length-1].seq1Range.endExclusive>=s.seq1Range.start?n[n.length-1]=n[n.length-1].join(s):n.push(s)}return n}function Eu(t,e,n){let i=n;if(i.length===0)return i;let r=0,s;do{s=!1;const a=[i[0]];for(let l=1;l<i.length;l++){let c=function(m,f){const w=new G(u.seq1Range.endExclusive,o.seq1Range.start);return t.getText(w).replace(/\s/g,"").length<=4&&(m.seq1Range.length+m.seq2Range.length>5||f.seq1Range.length+f.seq2Range.length>5)};const o=i[l],u=a[a.length-1];c(u,o)?(s=!0,a[a.length-1]=a[a.length-1].join(o)):a.push(o)}i=a}while(r++<10&&s);return i}function Ru(t,e,n){let i=n;if(i.length===0)return i;let r=0,s;do{s=!1;const l=[i[0]];for(let o=1;o<i.length;o++){let d=function(f,w){const p=new G(c.seq1Range.endExclusive,u.seq1Range.start);if(t.countLinesIn(p)>5||p.length>500)return!1;const T=t.getText(p).trim();if(T.length>20||T.split(/\r\n|\r|\n/).length>1)return!1;const y=t.countLinesIn(f.seq1Range),L=f.seq1Range.length,I=e.countLinesIn(f.seq2Range),H=f.seq2Range.length,P=t.countLinesIn(w.seq1Range),b=w.seq1Range.length,g=e.countLinesIn(w.seq2Range),_=w.seq2Range.length,N=130;function S(v){return Math.min(v,N)}return Math.pow(Math.pow(S(y*40+L),1.5)+Math.pow(S(I*40+H),1.5),1.5)+Math.pow(Math.pow(S(P*40+b),1.5)+Math.pow(S(g*40+_),1.5),1.5)>(N**1.5)**1.5*1.3};const u=i[o],c=l[l.length-1];d(c,u)?(s=!0,l[l.length-1]=l[l.length-1].join(u)):l.push(u)}i=l}while(r++<10&&s);const a=[];return tu(i,(l,o,u)=>{let c=o;function d(T){return T.length>0&&T.trim().length<=3&&o.seq1Range.length+o.seq2Range.length>100}const m=t.extendToFullLines(o.seq1Range),f=t.getText(new G(m.start,o.seq1Range.start));d(f)&&(c=c.deltaStart(-f.length));const w=t.getText(new G(o.seq1Range.endExclusive,m.endExclusive));d(w)&&(c=c.deltaEnd(w.length));const p=ne.fromOffsetPairs(l?l.getEndExclusives():Be.zero,u?u.getStarts():Be.max),x=c.intersect(p);a.length>0&&x.getStarts().equals(a[a.length-1].getEndExclusives())?a[a.length-1]=a[a.length-1].join(x):a.push(x)}),a}class Ps{constructor(e,n){this.trimmedHash=e,this.lines=n}getElement(e){return this.trimmedHash[e]}get length(){return this.trimmedHash.length}getBoundaryScore(e){const n=e===0?0:Ws(this.lines[e-1]),i=e===this.lines.length?0:Ws(this.lines[e]);return 1e3-(n+i)}getText(e){return this.lines.slice(e.start,e.endExclusive).join(`
|
|
23
|
+
`)}isStronglyEqual(e,n){return this.lines[e]===this.lines[n]}}function Ws(t){let e=0;for(;e<t.length&&(t.charCodeAt(e)===32||t.charCodeAt(e)===9);)e++;return e}class Du{constructor(){this.dynamicProgrammingDiffing=new gu,this.myersDiffingAlgorithm=new Cs}computeDiff(e,n,i){if(e.length<=1&&Zl(e,n,(b,g)=>b===g))return new sn([],[],!1);if(e.length===1&&e[0].length===0||n.length===1&&n[0].length===0)return new sn([new We(new X(1,e.length+1),new X(1,n.length+1),[new ye(new j(1,1,e.length,e[e.length-1].length+1),new j(1,1,n.length,n[n.length-1].length+1))])],[],!1);const r=i.maxComputationTimeMs===0?Ht.instance:new pu(i.maxComputationTimeMs),s=!i.ignoreTrimWhitespace,a=new Map;function l(b){let g=a.get(b);return g===void 0&&(g=a.size,a.set(b,g)),g}const o=e.map(b=>l(b.trim())),u=n.map(b=>l(b.trim())),c=new Ps(o,e),d=new Ps(u,n),m=c.length+d.length<1700?this.dynamicProgrammingDiffing.compute(c,d,r,(b,g)=>e[b]===n[g]?n[g].length===0?.1:1+Math.log(1+n[g].length):.99):this.myersDiffingAlgorithm.compute(c,d,r);let f=m.diffs,w=m.hitTimeout;f=Is(c,d,f),f=Eu(c,d,f);const p=[],x=b=>{if(s)for(let g=0;g<b;g++){const _=T+g,N=y+g;if(e[_]!==n[N]){const S=this.refineDiff(e,n,new ne(new G(_,_+1),new G(N,N+1)),r,s,i);for(const v of S.mappings)p.push(v);S.hitTimeout&&(w=!0)}}};let T=0,y=0;for(const b of f){$t(()=>b.seq1Range.start-T===b.seq2Range.start-y);const g=b.seq1Range.start-T;x(g),T=b.seq1Range.endExclusive,y=b.seq2Range.endExclusive;const _=this.refineDiff(e,n,b,r,s,i);_.hitTimeout&&(w=!0);for(const N of _.mappings)p.push(N)}x(e.length-T);const L=new on(e),I=new on(n),H=ks(p,L,I);let P=[];return i.computeMoves&&(P=this.computeMoves(H,e,n,o,u,r,s,i)),$t(()=>{function b(_,N){if(_.lineNumber<1||_.lineNumber>N.length)return!1;const S=N[_.lineNumber-1];return!(_.column<1||_.column>S.length+1)}function g(_,N){return!(_.startLineNumber<1||_.startLineNumber>N.length+1||_.endLineNumberExclusive<1||_.endLineNumberExclusive>N.length+1)}for(const _ of H){if(!_.innerChanges)return!1;for(const N of _.innerChanges)if(!(b(N.modifiedRange.getStartPosition(),n)&&b(N.modifiedRange.getEndPosition(),n)&&b(N.originalRange.getStartPosition(),e)&&b(N.originalRange.getEndPosition(),e)))return!1;if(!g(_.modified,n)||!g(_.original,e))return!1}return!0}),new sn(H,P,w)}computeMoves(e,n,i,r,s,a,l,o){return vu(e,n,i,r,s,a).map(d=>{const m=this.refineDiff(n,i,new ne(d.original.toOffsetRange(),d.modified.toOffsetRange()),a,l,o),f=ks(m.mappings,new on(n),new on(i),!0);return new Yl(d,f)})}refineDiff(e,n,i,r,s,a){const o=Mu(i).toRangeMapping2(e,n),u=new un(e,o.originalRange,s),c=new un(n,o.modifiedRange,s),d=u.length+c.length<500?this.dynamicProgrammingDiffing.compute(u,c,r):this.myersDiffingAlgorithm.compute(u,c,r);let m=d.diffs;return m=Is(u,c,m),m=Us(u,c,m,(w,p)=>w.findWordContaining(p)),a.extendToSubwords&&(m=Us(u,c,m,(w,p)=>w.findSubWordContaining(p),!0)),m=Lu(u,c,m),m=Ru(u,c,m),{mappings:m.map(w=>new ye(u.translateRange(w.seq1Range),c.translateRange(w.seq2Range))),hitTimeout:d.hitTimeout}}}function Mu(t){return new ve(new X(t.seq1Range.start+1,t.seq1Range.endExclusive+1),new X(t.seq2Range.start+1,t.seq2Range.endExclusive+1))}const Fs={getLegacy:()=>new hu,getDefault:()=>new Du};function Xe(t,e){const n=Math.pow(10,e);return Math.round(t*n)/n}class C{constructor(e,n,i,r=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,e))|0,this.g=Math.min(255,Math.max(0,n))|0,this.b=Math.min(255,Math.max(0,i))|0,this.a=Xe(Math.max(Math.min(1,r),0),3)}static equals(e,n){return e.r===n.r&&e.g===n.g&&e.b===n.b&&e.a===n.a}}class Te{constructor(e,n,i,r){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,e),0)|0,this.s=Xe(Math.max(Math.min(1,n),0),3),this.l=Xe(Math.max(Math.min(1,i),0),3),this.a=Xe(Math.max(Math.min(1,r),0),3)}static equals(e,n){return e.h===n.h&&e.s===n.s&&e.l===n.l&&e.a===n.a}static fromRGBA(e){const n=e.r/255,i=e.g/255,r=e.b/255,s=e.a,a=Math.max(n,i,r),l=Math.min(n,i,r);let o=0,u=0;const c=(l+a)/2,d=a-l;if(d>0){switch(u=Math.min(c<=.5?d/(2*c):d/(2-2*c),1),a){case n:o=(i-r)/d+(i<r?6:0);break;case i:o=(r-n)/d+2;break;case r:o=(n-i)/d+4;break}o*=60,o=Math.round(o)}return new Te(o,u,c,s)}static _hue2rgb(e,n,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+(n-e)*6*i:i<1/2?n:i<2/3?e+(n-e)*(2/3-i)*6:e}static toRGBA(e){const n=e.h/360,{s:i,l:r,a:s}=e;let a,l,o;if(i===0)a=l=o=r;else{const u=r<.5?r*(1+i):r+i-r*i,c=2*r-u;a=Te._hue2rgb(c,u,n+1/3),l=Te._hue2rgb(c,u,n),o=Te._hue2rgb(c,u,n-1/3)}return new C(Math.round(a*255),Math.round(l*255),Math.round(o*255),s)}}class _t{constructor(e,n,i,r){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,e),0)|0,this.s=Xe(Math.max(Math.min(1,n),0),3),this.v=Xe(Math.max(Math.min(1,i),0),3),this.a=Xe(Math.max(Math.min(1,r),0),3)}static equals(e,n){return e.h===n.h&&e.s===n.s&&e.v===n.v&&e.a===n.a}static fromRGBA(e){const n=e.r/255,i=e.g/255,r=e.b/255,s=Math.max(n,i,r),a=Math.min(n,i,r),l=s-a,o=s===0?0:l/s;let u;return l===0?u=0:s===n?u=((i-r)/l%6+6)%6:s===i?u=(r-n)/l+2:u=(n-i)/l+4,new _t(Math.round(u*60),o,s,e.a)}static toRGBA(e){const{h:n,s:i,v:r,a:s}=e,a=r*i,l=a*(1-Math.abs(n/60%2-1)),o=r-a;let[u,c,d]=[0,0,0];return n<60?(u=a,c=l):n<120?(u=l,c=a):n<180?(c=a,d=l):n<240?(c=l,d=a):n<300?(u=l,d=a):n<=360&&(u=a,d=l),u=Math.round((u+o)*255),c=Math.round((c+o)*255),d=Math.round((d+o)*255),new C(u,c,d,s)}}let cn=(Q=class{static fromHex(e){return Q.Format.CSS.parseHex(e)||Q.red}static equals(e,n){return!e&&!n?!0:!e||!n?!1:e.equals(n)}get hsla(){return this._hsla?this._hsla:Te.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:_t.fromRGBA(this.rgba)}constructor(e){if(e)if(e instanceof C)this.rgba=e;else if(e instanceof Te)this._hsla=e,this.rgba=Te.toRGBA(e);else if(e instanceof _t)this._hsva=e,this.rgba=_t.toRGBA(e);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}equals(e){return!!e&&C.equals(this.rgba,e.rgba)&&Te.equals(this.hsla,e.hsla)&&_t.equals(this.hsva,e.hsva)}getRelativeLuminance(){const e=Q._relativeLuminanceForComponent(this.rgba.r),n=Q._relativeLuminanceForComponent(this.rgba.g),i=Q._relativeLuminanceForComponent(this.rgba.b),r=.2126*e+.7152*n+.0722*i;return Xe(r,4)}static _relativeLuminanceForComponent(e){const n=e/255;return n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(e){const n=this.getRelativeLuminance(),i=e.getRelativeLuminance();return n>i}isDarkerThan(e){const n=this.getRelativeLuminance(),i=e.getRelativeLuminance();return n<i}lighten(e){return new Q(new Te(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*e,this.hsla.a))}darken(e){return new Q(new Te(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*e,this.hsla.a))}transparent(e){const{r:n,g:i,b:r,a:s}=this.rgba;return new Q(new C(n,i,r,s*e))}isTransparent(){return this.rgba.a===0}isOpaque(){return this.rgba.a===1}opposite(){return new Q(new C(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}mix(e,n=.5){const i=Math.min(Math.max(n,0),1),r=this.rgba,s=e.rgba,a=r.r+(s.r-r.r)*i,l=r.g+(s.g-r.g)*i,o=r.b+(s.b-r.b)*i,u=r.a+(s.a-r.a)*i;return new Q(new C(a,l,o,u))}makeOpaque(e){if(this.isOpaque()||e.rgba.a!==1)return this;const{r:n,g:i,b:r,a:s}=this.rgba;return new Q(new C(e.rgba.r-s*(e.rgba.r-n),e.rgba.g-s*(e.rgba.g-i),e.rgba.b-s*(e.rgba.b-r),1))}toString(){return this._toString||(this._toString=Q.Format.CSS.format(this)),this._toString}toNumber32Bit(){return this._toNumber32Bit||(this._toNumber32Bit=(this.rgba.r<<24|this.rgba.g<<16|this.rgba.b<<8|this.rgba.a*255<<0)>>>0),this._toNumber32Bit}static getLighterColor(e,n,i){if(e.isLighterThan(n))return e;i=i||.5;const r=e.getRelativeLuminance(),s=n.getRelativeLuminance();return i=i*(s-r)/s,e.lighten(i)}static getDarkerColor(e,n,i){if(e.isDarkerThan(n))return e;i=i||.5;const r=e.getRelativeLuminance(),s=n.getRelativeLuminance();return i=i*(r-s)/r,e.darken(i)}},Q.white=new Q(new C(255,255,255,1)),Q.black=new Q(new C(0,0,0,1)),Q.red=new Q(new C(255,0,0,1)),Q.blue=new Q(new C(0,0,255,1)),Q.green=new Q(new C(0,255,0,1)),Q.cyan=new Q(new C(0,255,255,1)),Q.lightgrey=new Q(new C(211,211,211,1)),Q.transparent=new Q(new C(0,0,0,0)),Q);(function(t){(function(e){(function(n){function i(p){return p.rgba.a===1?`rgb(${p.rgba.r}, ${p.rgba.g}, ${p.rgba.b})`:t.Format.CSS.formatRGBA(p)}n.formatRGB=i;function r(p){return`rgba(${p.rgba.r}, ${p.rgba.g}, ${p.rgba.b}, ${+p.rgba.a.toFixed(2)})`}n.formatRGBA=r;function s(p){return p.hsla.a===1?`hsl(${p.hsla.h}, ${Math.round(p.hsla.s*100)}%, ${Math.round(p.hsla.l*100)}%)`:t.Format.CSS.formatHSLA(p)}n.formatHSL=s;function a(p){return`hsla(${p.hsla.h}, ${Math.round(p.hsla.s*100)}%, ${Math.round(p.hsla.l*100)}%, ${p.hsla.a.toFixed(2)})`}n.formatHSLA=a;function l(p){const x=p.toString(16);return x.length!==2?"0"+x:x}function o(p){return`#${l(p.rgba.r)}${l(p.rgba.g)}${l(p.rgba.b)}`}n.formatHex=o;function u(p,x=!1){return x&&p.rgba.a===1?t.Format.CSS.formatHex(p):`#${l(p.rgba.r)}${l(p.rgba.g)}${l(p.rgba.b)}${l(Math.round(p.rgba.a*255))}`}n.formatHexA=u;function c(p){return p.isOpaque()?t.Format.CSS.formatHex(p):t.Format.CSS.formatRGBA(p)}n.format=c;function d(p){var x,T,y,L,I,H,P;if(p==="transparent")return t.transparent;if(p.startsWith("#"))return f(p);if(p.startsWith("rgba(")){const b=p.match(/rgba\((?<r>(?:\+|-)?\d+), *(?<g>(?:\+|-)?\d+), *(?<b>(?:\+|-)?\d+), *(?<a>(?:\+|-)?\d+(\.\d+)?)\)/);if(!b)throw new Error("Invalid color format "+p);const g=parseInt(((x=b.groups)==null?void 0:x.r)??"0"),_=parseInt(((T=b.groups)==null?void 0:T.g)??"0"),N=parseInt(((y=b.groups)==null?void 0:y.b)??"0"),S=parseFloat(((L=b.groups)==null?void 0:L.a)??"0");return new t(new C(g,_,N,S))}if(p.startsWith("rgb(")){const b=p.match(/rgb\((?<r>(?:\+|-)?\d+), *(?<g>(?:\+|-)?\d+), *(?<b>(?:\+|-)?\d+)\)/);if(!b)throw new Error("Invalid color format "+p);const g=parseInt(((I=b.groups)==null?void 0:I.r)??"0"),_=parseInt(((H=b.groups)==null?void 0:H.g)??"0"),N=parseInt(((P=b.groups)==null?void 0:P.b)??"0");return new t(new C(g,_,N))}return m(p)}n.parse=d;function m(p){switch(p){case"aliceblue":return new t(new C(240,248,255,1));case"antiquewhite":return new t(new C(250,235,215,1));case"aqua":return new t(new C(0,255,255,1));case"aquamarine":return new t(new C(127,255,212,1));case"azure":return new t(new C(240,255,255,1));case"beige":return new t(new C(245,245,220,1));case"bisque":return new t(new C(255,228,196,1));case"black":return new t(new C(0,0,0,1));case"blanchedalmond":return new t(new C(255,235,205,1));case"blue":return new t(new C(0,0,255,1));case"blueviolet":return new t(new C(138,43,226,1));case"brown":return new t(new C(165,42,42,1));case"burlywood":return new t(new C(222,184,135,1));case"cadetblue":return new t(new C(95,158,160,1));case"chartreuse":return new t(new C(127,255,0,1));case"chocolate":return new t(new C(210,105,30,1));case"coral":return new t(new C(255,127,80,1));case"cornflowerblue":return new t(new C(100,149,237,1));case"cornsilk":return new t(new C(255,248,220,1));case"crimson":return new t(new C(220,20,60,1));case"cyan":return new t(new C(0,255,255,1));case"darkblue":return new t(new C(0,0,139,1));case"darkcyan":return new t(new C(0,139,139,1));case"darkgoldenrod":return new t(new C(184,134,11,1));case"darkgray":return new t(new C(169,169,169,1));case"darkgreen":return new t(new C(0,100,0,1));case"darkgrey":return new t(new C(169,169,169,1));case"darkkhaki":return new t(new C(189,183,107,1));case"darkmagenta":return new t(new C(139,0,139,1));case"darkolivegreen":return new t(new C(85,107,47,1));case"darkorange":return new t(new C(255,140,0,1));case"darkorchid":return new t(new C(153,50,204,1));case"darkred":return new t(new C(139,0,0,1));case"darksalmon":return new t(new C(233,150,122,1));case"darkseagreen":return new t(new C(143,188,143,1));case"darkslateblue":return new t(new C(72,61,139,1));case"darkslategray":return new t(new C(47,79,79,1));case"darkslategrey":return new t(new C(47,79,79,1));case"darkturquoise":return new t(new C(0,206,209,1));case"darkviolet":return new t(new C(148,0,211,1));case"deeppink":return new t(new C(255,20,147,1));case"deepskyblue":return new t(new C(0,191,255,1));case"dimgray":return new t(new C(105,105,105,1));case"dimgrey":return new t(new C(105,105,105,1));case"dodgerblue":return new t(new C(30,144,255,1));case"firebrick":return new t(new C(178,34,34,1));case"floralwhite":return new t(new C(255,250,240,1));case"forestgreen":return new t(new C(34,139,34,1));case"fuchsia":return new t(new C(255,0,255,1));case"gainsboro":return new t(new C(220,220,220,1));case"ghostwhite":return new t(new C(248,248,255,1));case"gold":return new t(new C(255,215,0,1));case"goldenrod":return new t(new C(218,165,32,1));case"gray":return new t(new C(128,128,128,1));case"green":return new t(new C(0,128,0,1));case"greenyellow":return new t(new C(173,255,47,1));case"grey":return new t(new C(128,128,128,1));case"honeydew":return new t(new C(240,255,240,1));case"hotpink":return new t(new C(255,105,180,1));case"indianred":return new t(new C(205,92,92,1));case"indigo":return new t(new C(75,0,130,1));case"ivory":return new t(new C(255,255,240,1));case"khaki":return new t(new C(240,230,140,1));case"lavender":return new t(new C(230,230,250,1));case"lavenderblush":return new t(new C(255,240,245,1));case"lawngreen":return new t(new C(124,252,0,1));case"lemonchiffon":return new t(new C(255,250,205,1));case"lightblue":return new t(new C(173,216,230,1));case"lightcoral":return new t(new C(240,128,128,1));case"lightcyan":return new t(new C(224,255,255,1));case"lightgoldenrodyellow":return new t(new C(250,250,210,1));case"lightgray":return new t(new C(211,211,211,1));case"lightgreen":return new t(new C(144,238,144,1));case"lightgrey":return new t(new C(211,211,211,1));case"lightpink":return new t(new C(255,182,193,1));case"lightsalmon":return new t(new C(255,160,122,1));case"lightseagreen":return new t(new C(32,178,170,1));case"lightskyblue":return new t(new C(135,206,250,1));case"lightslategray":return new t(new C(119,136,153,1));case"lightslategrey":return new t(new C(119,136,153,1));case"lightsteelblue":return new t(new C(176,196,222,1));case"lightyellow":return new t(new C(255,255,224,1));case"lime":return new t(new C(0,255,0,1));case"limegreen":return new t(new C(50,205,50,1));case"linen":return new t(new C(250,240,230,1));case"magenta":return new t(new C(255,0,255,1));case"maroon":return new t(new C(128,0,0,1));case"mediumaquamarine":return new t(new C(102,205,170,1));case"mediumblue":return new t(new C(0,0,205,1));case"mediumorchid":return new t(new C(186,85,211,1));case"mediumpurple":return new t(new C(147,112,219,1));case"mediumseagreen":return new t(new C(60,179,113,1));case"mediumslateblue":return new t(new C(123,104,238,1));case"mediumspringgreen":return new t(new C(0,250,154,1));case"mediumturquoise":return new t(new C(72,209,204,1));case"mediumvioletred":return new t(new C(199,21,133,1));case"midnightblue":return new t(new C(25,25,112,1));case"mintcream":return new t(new C(245,255,250,1));case"mistyrose":return new t(new C(255,228,225,1));case"moccasin":return new t(new C(255,228,181,1));case"navajowhite":return new t(new C(255,222,173,1));case"navy":return new t(new C(0,0,128,1));case"oldlace":return new t(new C(253,245,230,1));case"olive":return new t(new C(128,128,0,1));case"olivedrab":return new t(new C(107,142,35,1));case"orange":return new t(new C(255,165,0,1));case"orangered":return new t(new C(255,69,0,1));case"orchid":return new t(new C(218,112,214,1));case"palegoldenrod":return new t(new C(238,232,170,1));case"palegreen":return new t(new C(152,251,152,1));case"paleturquoise":return new t(new C(175,238,238,1));case"palevioletred":return new t(new C(219,112,147,1));case"papayawhip":return new t(new C(255,239,213,1));case"peachpuff":return new t(new C(255,218,185,1));case"peru":return new t(new C(205,133,63,1));case"pink":return new t(new C(255,192,203,1));case"plum":return new t(new C(221,160,221,1));case"powderblue":return new t(new C(176,224,230,1));case"purple":return new t(new C(128,0,128,1));case"rebeccapurple":return new t(new C(102,51,153,1));case"red":return new t(new C(255,0,0,1));case"rosybrown":return new t(new C(188,143,143,1));case"royalblue":return new t(new C(65,105,225,1));case"saddlebrown":return new t(new C(139,69,19,1));case"salmon":return new t(new C(250,128,114,1));case"sandybrown":return new t(new C(244,164,96,1));case"seagreen":return new t(new C(46,139,87,1));case"seashell":return new t(new C(255,245,238,1));case"sienna":return new t(new C(160,82,45,1));case"silver":return new t(new C(192,192,192,1));case"skyblue":return new t(new C(135,206,235,1));case"slateblue":return new t(new C(106,90,205,1));case"slategray":return new t(new C(112,128,144,1));case"slategrey":return new t(new C(112,128,144,1));case"snow":return new t(new C(255,250,250,1));case"springgreen":return new t(new C(0,255,127,1));case"steelblue":return new t(new C(70,130,180,1));case"tan":return new t(new C(210,180,140,1));case"teal":return new t(new C(0,128,128,1));case"thistle":return new t(new C(216,191,216,1));case"tomato":return new t(new C(255,99,71,1));case"turquoise":return new t(new C(64,224,208,1));case"violet":return new t(new C(238,130,238,1));case"wheat":return new t(new C(245,222,179,1));case"white":return new t(new C(255,255,255,1));case"whitesmoke":return new t(new C(245,245,245,1));case"yellow":return new t(new C(255,255,0,1));case"yellowgreen":return new t(new C(154,205,50,1));default:return null}}function f(p){const x=p.length;if(x===0||p.charCodeAt(0)!==35)return null;if(x===7){const T=16*w(p.charCodeAt(1))+w(p.charCodeAt(2)),y=16*w(p.charCodeAt(3))+w(p.charCodeAt(4)),L=16*w(p.charCodeAt(5))+w(p.charCodeAt(6));return new t(new C(T,y,L,1))}if(x===9){const T=16*w(p.charCodeAt(1))+w(p.charCodeAt(2)),y=16*w(p.charCodeAt(3))+w(p.charCodeAt(4)),L=16*w(p.charCodeAt(5))+w(p.charCodeAt(6)),I=16*w(p.charCodeAt(7))+w(p.charCodeAt(8));return new t(new C(T,y,L,I/255))}if(x===4){const T=w(p.charCodeAt(1)),y=w(p.charCodeAt(2)),L=w(p.charCodeAt(3));return new t(new C(16*T+T,16*y+y,16*L+L))}if(x===5){const T=w(p.charCodeAt(1)),y=w(p.charCodeAt(2)),L=w(p.charCodeAt(3)),I=w(p.charCodeAt(4));return new t(new C(16*T+T,16*y+y,16*L+L,(16*I+I)/255))}return null}n.parseHex=f;function w(p){switch(p){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:return 10;case 65:return 10;case 98:return 11;case 66:return 11;case 99:return 12;case 67:return 12;case 100:return 13;case 68:return 13;case 101:return 14;case 69:return 14;case 102:return 15;case 70:return 15}return 0}})(e.CSS||(e.CSS={}))})(t.Format||(t.Format={}))})(cn||(cn={}));function Bs(t){const e=[];for(const n of t){const i=Number(n);(i||i===0&&n.replace(/\s/g,"")!=="")&&e.push(i)}return e}function hi(t,e,n,i){return{red:t/255,blue:n/255,green:e/255,alpha:i}}function Ut(t,e){const n=e.index,i=e[0].length;if(n===void 0)return;const r=t.positionAt(n);return{startLineNumber:r.lineNumber,startColumn:r.column,endLineNumber:r.lineNumber,endColumn:r.column+i}}function Nu(t,e){if(!t)return;const n=cn.Format.CSS.parseHex(e);if(n)return{range:t,color:hi(n.rgba.r,n.rgba.g,n.rgba.b,n.rgba.a)}}function qs(t,e,n){if(!t||e.length!==1)return;const r=e[0].values(),s=Bs(r);return{range:t,color:hi(s[0],s[1],s[2],n?s[3]:1)}}function Os(t,e,n){if(!t||e.length!==1)return;const r=e[0].values(),s=Bs(r),a=new cn(new Te(s[0],s[1]/100,s[2]/100,n?s[3]:1));return{range:t,color:hi(a.rgba.r,a.rgba.g,a.rgba.b,a.rgba.a)}}function Pt(t,e){return typeof t=="string"?[...t.matchAll(e)]:t.findMatches(e)}function Iu(t){const e=[],n=new RegExp(`\\b(rgb|rgba|hsl|hsla)(\\([0-9\\s,.\\%]*\\))|^(#)([A-Fa-f0-9]{3})\\b|^(#)([A-Fa-f0-9]{4})\\b|^(#)([A-Fa-f0-9]{6})\\b|^(#)([A-Fa-f0-9]{8})\\b|(?<=['"\\s])(#)([A-Fa-f0-9]{3})\\b|(?<=['"\\s])(#)([A-Fa-f0-9]{4})\\b|(?<=['"\\s])(#)([A-Fa-f0-9]{6})\\b|(?<=['"\\s])(#)([A-Fa-f0-9]{8})\\b`,"gm"),i=Pt(t,n);if(i.length>0)for(const r of i){const s=r.filter(u=>u!==void 0),a=s[1],l=s[2];if(!l)continue;let o;if(a==="rgb"){const u=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm;o=qs(Ut(t,r),Pt(l,u),!1)}else if(a==="rgba"){const u=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;o=qs(Ut(t,r),Pt(l,u),!0)}else if(a==="hsl"){const u=/^\(\s*((?:360(?:\.0+)?|(?:36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])(?:\.\d+)?))\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;o=Os(Ut(t,r),Pt(l,u),!1)}else if(a==="hsla"){const u=/^\(\s*((?:360(?:\.0+)?|(?:36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])(?:\.\d+)?))\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*[\s,]\s*(0[.][0-9]+|[.][0-9]+|[01][.]0*|[01])\s*\)$/gm;o=Os(Ut(t,r),Pt(l,u),!0)}else a==="#"&&(o=Nu(Ut(t,r),a+l));o&&e.push(o)}return e}function zu(t){return!t||typeof t.getValue!="function"||typeof t.positionAt!="function"?[]:Iu(t)}const Hu=/^-+|-+$/g,Vs=100,Uu=5;function Pu(t,e){var i;let n=[];if(e.findRegionSectionHeaders&&((i=e.foldingRules)!=null&&i.markers)){const r=Wu(t,e);n=n.concat(r)}if(e.findMarkSectionHeaders){const r=Fu(t,e);n=n.concat(r)}return n}function Wu(t,e){const n=[],i=t.getLineCount();for(let r=1;r<=i;r++){const s=t.getLineContent(r),a=s.match(e.foldingRules.markers.start);if(a){const l={startLineNumber:r,startColumn:a[0].length+1,endLineNumber:r,endColumn:s.length+1};if(l.endColumn>l.startColumn){const o={range:l,...Bu(s.substring(a[0].length)),shouldBeInComments:!1};(o.text||o.hasSeparatorLine)&&n.push(o)}}}return n}function Fu(t,e){const n=[],i=t.getLineCount();if(!e.markSectionHeaderRegex||e.markSectionHeaderRegex.trim()==="")return n;const r=Bl(e.markSectionHeaderRegex),s=new RegExp(e.markSectionHeaderRegex,`gdm${r?"s":""}`);if(Ho(s))return n;for(let a=1;a<=i;a+=Vs-Uu){const l=Math.min(a+Vs-1,i),o=[];for(let d=a;d<=l;d++)o.push(t.getLineContent(d));const u=o.join(`
|
|
24
24
|
`);s.lastIndex=0;let c;for(;(c=s.exec(u))!==null;){const d=u.substring(0,c.index),m=(d.match(/\n/g)||[]).length,f=a+m,w=c[0].split(`
|
|
25
25
|
`),p=w.length,x=f+p-1,T=d.lastIndexOf(`
|
|
26
|
-
`)+1,y=c.index-T+1,L=w[w.length-1],I=p===1?y+c[0].length:L.length+1,H={startLineNumber:f,startColumn:y,endLineNumber:x,endColumn:I},W=(c.groups??{}).label??"",b=((c.groups??{}).separator??"")!=="",g={range:H,text:W,hasSeparatorLine:b,shouldBeInComments:!0};(g.text||g.hasSeparatorLine)&&(n.length===0||n[n.length-1].range.endLineNumber<g.range.startLineNumber)&&n.push(g),s.lastIndex=c.index+c[0].length}}return n}function Qu(e){e=e.trim();const t=e.startsWith("-");return e=e.replace(ju,""),{text:e,hasSeparatorLine:t}}class Yu{get isRejected(){var t;return((t=this.outcome)==null?void 0:t.outcome)===1}get isSettled(){return!!this.outcome}constructor(){this.p=new Promise((t,n)=>{this.completeCallback=t,this.errorCallback=n})}complete(t){return this.isSettled?Promise.resolve():new Promise(n=>{this.completeCallback(t),this.outcome={outcome:0,value:t},n()})}error(t){return this.isSettled?Promise.resolve():new Promise(n=>{this.errorCallback(t),this.outcome={outcome:1,value:t},n()})}cancel(){return this.error(new Oi)}}var ta;(function(e){async function t(i){let r;const s=await Promise.all(i.map(a=>a.then(l=>l,l=>{r||(r=l)})));if(typeof r<"u")throw r;return s}e.settled=t;function n(i){return new Promise(async(r,s)=>{try{await i(r,s)}catch(a){s(a)}})}e.withAsyncBody=n})(ta||(ta={}));class Zu{constructor(){this._unsatisfiedConsumers=[],this._unconsumedValues=[]}get hasFinalValue(){return!!this._finalValue}produce(t){if(this._ensureNoFinalValue(),this._unsatisfiedConsumers.length>0){const n=this._unsatisfiedConsumers.shift();this._resolveOrRejectDeferred(n,t)}else this._unconsumedValues.push(t)}produceFinal(t){this._ensureNoFinalValue(),this._finalValue=t;for(const n of this._unsatisfiedConsumers)this._resolveOrRejectDeferred(n,t);this._unsatisfiedConsumers.length=0}_ensureNoFinalValue(){if(this._finalValue)throw new ue("ProducerConsumer: cannot produce after final value has been set")}_resolveOrRejectDeferred(t,n){n.ok?t.complete(n.value):t.error(n.error)}consume(){if(this._unconsumedValues.length>0||this._finalValue){const t=this._unconsumedValues.length>0?this._unconsumedValues.shift():this._finalValue;return t.ok?Promise.resolve(t.value):Promise.reject(t.error)}else{const t=new Yu;return this._unsatisfiedConsumers.push(t),t.p}}}const pe=class pe{constructor(t,n){this._onReturn=n,this._producerConsumer=new Zu,this._iterator={next:()=>this._producerConsumer.consume(),return:()=>{var i;return(i=this._onReturn)==null||i.call(this),Promise.resolve({done:!0,value:void 0})},throw:async i=>(this._finishError(i),{done:!0,value:void 0})},queueMicrotask(async()=>{const i=t({emitOne:r=>this._producerConsumer.produce({ok:!0,value:{done:!1,value:r}}),emitMany:r=>{for(const s of r)this._producerConsumer.produce({ok:!0,value:{done:!1,value:s}})},reject:r=>this._finishError(r)});if(!this._producerConsumer.hasFinalValue)try{await i,this._finishOk()}catch(r){this._finishError(r)}})}static fromArray(t){return new pe(n=>{n.emitMany(t)})}static fromPromise(t){return new pe(async n=>{n.emitMany(await t)})}static fromPromisesResolveOrder(t){return new pe(async n=>{await Promise.all(t.map(async i=>n.emitOne(await i)))})}static merge(t){return new pe(async n=>{await Promise.all(t.map(async i=>{for await(const r of i)n.emitOne(r)}))})}static map(t,n){return new pe(async i=>{for await(const r of t)i.emitOne(n(r))})}map(t){return pe.map(this,t)}static coalesce(t){return pe.filter(t,n=>!!n)}coalesce(){return pe.coalesce(this)}static filter(t,n){return new pe(async i=>{for await(const r of t)n(r)&&i.emitOne(r)})}filter(t){return pe.filter(this,t)}_finishOk(){this._producerConsumer.hasFinalValue||this._producerConsumer.produceFinal({ok:!0,value:{done:!0,value:void 0}})}_finishError(t){this._producerConsumer.hasFinalValue||this._producerConsumer.produceFinal({ok:!1,error:t})}[Symbol.asyncIterator](){return this._iterator}};pe.EMPTY=pe.fromArray([]);let na=pe;class Ku{constructor(t){this.values=t,this.prefixSum=new Uint32Array(t.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(t,n){t=ct(t);const i=this.values,r=this.prefixSum,s=n.length;return s===0?!1:(this.values=new Uint32Array(i.length+s),this.values.set(i.subarray(0,t),0),this.values.set(i.subarray(t),t+s),this.values.set(n,t),t-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=t-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(t,n){return t=ct(t),n=ct(n),this.values[t]===n?!1:(this.values[t]=n,t-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=t-1),!0)}removeValues(t,n){t=ct(t),n=ct(n);const i=this.values,r=this.prefixSum;if(t>=i.length)return!1;const s=i.length-t;return n>=s&&(n=s),n===0?!1:(this.values=new Uint32Array(i.length-n),this.values.set(i.subarray(0,t),0),this.values.set(i.subarray(t+n),t),this.prefixSum=new Uint32Array(this.values.length),t-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=t-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(t){return t<0?0:(t=ct(t),this._getPrefixSum(t))}_getPrefixSum(t){if(t<=this.prefixSumValidIndex[0])return this.prefixSum[t];let n=this.prefixSumValidIndex[0]+1;n===0&&(this.prefixSum[0]=this.values[0],n++),t>=this.values.length&&(t=this.values.length-1);for(let i=n;i<=t;i++)this.prefixSum[i]=this.prefixSum[i-1]+this.values[i];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],t),this.prefixSum[t]}getIndexOf(t){t=Math.floor(t),this.getTotalSum();let n=0,i=this.values.length-1,r=0,s=0,a=0;for(;n<=i;)if(r=n+(i-n)/2|0,s=this.prefixSum[r],a=s-this.values[r],t<a)i=r-1;else if(t>=s)n=r+1;else break;return new ec(r,t-a)}}class ec{constructor(t,n){this.index=t,this.remainder=n,this._prefixSumIndexOfResultBrand=void 0,this.index=t,this.remainder=n}}class tc{constructor(t,n,i,r){this._uri=t,this._lines=n,this._eol=i,this._versionId=r,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return this._cachedTextValue===null&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(t){t.eol&&t.eol!==this._eol&&(this._eol=t.eol,this._lineStarts=null);const n=t.changes;for(const i of n)this._acceptDeleteRange(i.range),this._acceptInsertText(new K(i.range.startLineNumber,i.range.startColumn),i.text);this._versionId=t.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const t=this._eol.length,n=this._lines.length,i=new Uint32Array(n);for(let r=0;r<n;r++)i[r]=this._lines[r].length+t;this._lineStarts=new Ku(i)}}_setLineText(t,n){this._lines[t]=n,this._lineStarts&&this._lineStarts.setValue(t,this._lines[t].length+this._eol.length)}_acceptDeleteRange(t){if(t.startLineNumber===t.endLineNumber){if(t.startColumn===t.endColumn)return;this._setLineText(t.startLineNumber-1,this._lines[t.startLineNumber-1].substring(0,t.startColumn-1)+this._lines[t.startLineNumber-1].substring(t.endColumn-1));return}this._setLineText(t.startLineNumber-1,this._lines[t.startLineNumber-1].substring(0,t.startColumn-1)+this._lines[t.endLineNumber-1].substring(t.endColumn-1)),this._lines.splice(t.startLineNumber,t.endLineNumber-t.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(t.startLineNumber,t.endLineNumber-t.startLineNumber)}_acceptInsertText(t,n){if(n.length===0)return;const i=Go(n);if(i.length===1){this._setLineText(t.lineNumber-1,this._lines[t.lineNumber-1].substring(0,t.column-1)+i[0]+this._lines[t.lineNumber-1].substring(t.column-1));return}i[i.length-1]+=this._lines[t.lineNumber-1].substring(t.column-1),this._setLineText(t.lineNumber-1,this._lines[t.lineNumber-1].substring(0,t.column-1)+i[0]);const r=new Uint32Array(i.length-1);for(let s=1;s<i.length;s++)this._lines.splice(t.lineNumber+s-1,0,i[s]),r[s-1]=i[s].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(t.lineNumber,r)}}class nc{constructor(){this._models=Object.create(null)}getModel(t){return this._models[t]}getModels(){const t=[];return Object.keys(this._models).forEach(n=>t.push(this._models[n])),t}$acceptNewModel(t){this._models[t.url]=new ic(ni.parse(t.url),t.lines,t.EOL,t.versionId)}$acceptModelChanged(t,n){if(!this._models[t])return;this._models[t].onEvents(n)}$acceptRemovedModel(t){this._models[t]&&delete this._models[t]}}class ic extends tc{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(t){const n=[];for(let i=0;i<this._lines.length;i++){const r=this._lines[i],s=this.offsetAt(new K(i+1,1)),a=r.matchAll(t);for(const l of a)(l.index||l.index===0)&&(l.index=l.index+s),n.push(l)}return n}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(t){return this._lines[t-1]}getWordAtPosition(t,n){const i=ci(t.column,Cs(n),this._lines[t.lineNumber-1],0);return i?new j(t.lineNumber,i.startColumn,t.lineNumber,i.endColumn):null}words(t){const n=this._lines,i=this._wordenize.bind(this);let r=0,s="",a=0,l=[];return{*[Symbol.iterator](){for(;;)if(a<l.length){const o=s.substring(l[a].start,l[a].end);a+=1,yield o}else if(r<n.length)s=n[r],l=i(s,t),a=0,r+=1;else break}}}getLineWords(t,n){const i=this._lines[t-1],r=this._wordenize(i,n),s=[];for(const a of r)s.push({word:i.substring(a.start,a.end),startColumn:a.start+1,endColumn:a.end+1});return s}_wordenize(t,n){const i=[];let r;for(n.lastIndex=0;(r=n.exec(t))&&r[0].length!==0;)i.push({start:r.index,end:r.index+r[0].length});return i}getValueInRange(t){if(t=this._validateRange(t),t.startLineNumber===t.endLineNumber)return this._lines[t.startLineNumber-1].substring(t.startColumn-1,t.endColumn-1);const n=this._eol,i=t.startLineNumber-1,r=t.endLineNumber-1,s=[];s.push(this._lines[i].substring(t.startColumn-1));for(let a=i+1;a<r;a++)s.push(this._lines[a]);return s.push(this._lines[r].substring(0,t.endColumn-1)),s.join(n)}offsetAt(t){return t=this._validatePosition(t),this._ensureLineStarts(),this._lineStarts.getPrefixSum(t.lineNumber-2)+(t.column-1)}positionAt(t){t=Math.floor(t),t=Math.max(0,t),this._ensureLineStarts();const n=this._lineStarts.getIndexOf(t),i=this._lines[n.index].length;return{lineNumber:1+n.index,column:1+Math.min(n.remainder,i)}}_validateRange(t){const n=this._validatePosition({lineNumber:t.startLineNumber,column:t.startColumn}),i=this._validatePosition({lineNumber:t.endLineNumber,column:t.endColumn});return n.lineNumber!==t.startLineNumber||n.column!==t.startColumn||i.lineNumber!==t.endLineNumber||i.column!==t.endColumn?{startLineNumber:n.lineNumber,startColumn:n.column,endLineNumber:i.lineNumber,endColumn:i.column}:t}_validatePosition(t){if(!K.isIPosition(t))throw new Error("bad position");let{lineNumber:n,column:i}=t,r=!1;if(n<1)n=1,i=1,r=!0;else if(n>this._lines.length)n=this._lines.length,i=this._lines[n-1].length+1,r=!0;else{const s=this._lines[n-1].length+1;i<1?(i=1,r=!0):i>s&&(i=s,r=!0)}return r?{lineNumber:n,column:i}:t}}const rt=class rt{constructor(t=null){this._foreignModule=t,this._requestHandlerBrand=void 0,this._workerTextModelSyncServer=new nc}dispose(){}async $ping(){return"pong"}_getModel(t){return this._workerTextModelSyncServer.getModel(t)}getModels(){return this._workerTextModelSyncServer.getModels()}$acceptNewModel(t){this._workerTextModelSyncServer.$acceptNewModel(t)}$acceptModelChanged(t,n){this._workerTextModelSyncServer.$acceptModelChanged(t,n)}$acceptRemovedModel(t){this._workerTextModelSyncServer.$acceptRemovedModel(t)}async $computeUnicodeHighlights(t,n,i){const r=this._getModel(t);return r?ru.computeUnicodeHighlights(r,n,i):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async $findSectionHeaders(t,n){const i=this._getModel(t);return i?Gu(i,n):[]}async $computeDiff(t,n,i,r){const s=this._getModel(t),a=this._getModel(n);return!s||!a?null:rt.computeDiff(s,a,i,r)}static computeDiff(t,n,i,r){const s=r==="advanced"?Qs.getDefault():Qs.getLegacy(),a=t.getLinesContent(),l=n.getLinesContent(),o=s.computeDiff(a,l,i),u=o.changes.length>0?!1:this._modelsAreIdentical(t,n);function c(d){return d.map(m=>{var f;return[m.original.startLineNumber,m.original.endLineNumberExclusive,m.modified.startLineNumber,m.modified.endLineNumberExclusive,(f=m.innerChanges)==null?void 0:f.map(w=>[w.originalRange.startLineNumber,w.originalRange.startColumn,w.originalRange.endLineNumber,w.originalRange.endColumn,w.modifiedRange.startLineNumber,w.modifiedRange.startColumn,w.modifiedRange.endLineNumber,w.modifiedRange.endColumn])]})}return{identical:u,quitEarly:o.hitTimeout,changes:c(o.changes),moves:o.moves.map(d=>[d.lineRangeMapping.original.startLineNumber,d.lineRangeMapping.original.endLineNumberExclusive,d.lineRangeMapping.modified.startLineNumber,d.lineRangeMapping.modified.endLineNumberExclusive,c(d.changes)])}}static _modelsAreIdentical(t,n){const i=t.getLineCount(),r=n.getLineCount();if(i!==r)return!1;for(let s=1;s<=i;s++){const a=t.getLineContent(s),l=n.getLineContent(s);if(a!==l)return!1}return!0}async $computeMoreMinimalEdits(t,n,i){const r=this._getModel(t);if(!r)return n;const s=[];let a;n=n.slice(0).sort((o,u)=>{if(o.range&&u.range)return j.compareRangesUsingStarts(o.range,u.range);const c=o.range?0:1,d=u.range?0:1;return c-d});let l=0;for(let o=1;o<n.length;o++)j.getEndPosition(n[l].range).equals(j.getStartPosition(n[o].range))?(n[l].range=j.fromPositions(j.getStartPosition(n[l].range),j.getEndPosition(n[o].range)),n[l].text+=n[o].text):(l++,n[l]=n[o]);n.length=l+1;for(let{range:o,text:u,eol:c}of n){if(typeof c=="number"&&(a=c),j.isEmpty(o)&&!u)continue;const d=r.getValueInRange(o);if(u=u.replace(/\r\n|\n|\r/g,r.eol),d===u)continue;if(Math.max(u.length,d.length)>rt._diffLimit){s.push({range:o,text:u});continue}const m=hl(d,u,i),f=r.offsetAt(j.lift(o).getStartPosition());for(const w of m){const p=r.positionAt(f+w.originalStart),x=r.positionAt(f+w.originalStart+w.originalLength),T={text:u.substr(w.modifiedStart,w.modifiedLength),range:{startLineNumber:p.lineNumber,startColumn:p.column,endLineNumber:x.lineNumber,endColumn:x.column}};r.getValueInRange(T.range)!==T.text&&s.push(T)}}return typeof a=="number"&&s.push({eol:a,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),s}async $computeLinks(t){const n=this._getModel(t);return n?gl(n):null}async $computeDefaultDocumentColors(t){const n=this._getModel(t);return n?Vu(n):null}async $textualSuggest(t,n,i,r){const s=new Qt,a=new RegExp(i,r),l=new Set;e:for(const o of t){const u=this._getModel(o);if(u){for(const c of u.words(a))if(!(c===n||!isNaN(Number(c)))&&(l.add(c),l.size>rt._suggestionsLimit))break e}}return{words:Array.from(l),duration:s.elapsed()}}async $computeWordRanges(t,n,i,r){const s=this._getModel(t);if(!s)return Object.create(null);const a=new RegExp(i,r),l=Object.create(null);for(let o=n.startLineNumber;o<n.endLineNumber;o++){const u=s.getLineWords(o,a);for(const c of u){if(!isNaN(Number(c.word)))continue;let d=l[c.word];d||(d=[],l[c.word]=d),d.push({startLineNumber:o,startColumn:c.startColumn,endLineNumber:o,endColumn:c.endColumn})}}return l}async $navigateValueSet(t,n,i,r,s){const a=this._getModel(t);if(!a)return null;const l=new RegExp(r,s);n.startColumn===n.endColumn&&(n={startLineNumber:n.startLineNumber,startColumn:n.startColumn,endLineNumber:n.endLineNumber,endColumn:n.endColumn+1});const o=a.getValueInRange(n),u=a.getWordAtPosition({lineNumber:n.startLineNumber,column:n.startColumn},l);if(!u)return null;const c=a.getValueInRange(u);return Qn.INSTANCE.navigateValueSet(n,o,u,c,i)}$fmr(t,n){if(!this._foreignModule||typeof this._foreignModule[t]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+t));try{return Promise.resolve(this._foreignModule[t].apply(this._foreignModule,n))}catch(i){return Promise.reject(i)}}};rt._diffLimit=1e5,rt._suggestionsLimit=1e4;let wi=rt;typeof importScripts=="function"&&(globalThis.monaco=jl());const $t=class $t{static getChannel(t){return t.getChannel($t.CHANNEL_NAME)}static setChannel(t,n){t.setChannel($t.CHANNEL_NAME,n)}};$t.CHANNEL_NAME="editorWorkerHost";let _i=$t;function rc(e){let t;const n=ll(i=>{const r=_i.getChannel(i),a={host:new Proxy({},{get(l,o,u){if(o!=="then"){if(typeof o!="string")throw new Error("Not supported");return(...c)=>r.$fhr(o,c)}}}),getMirrorModels:()=>n.requestHandler.getModels()};return t=e(a),new wi(t)});return t}function sc(e){self.onmessage=t=>{rc(n=>e(n,t.data))}}function Ae(...e){const t=e[0];let n,i,r;if(typeof t=="string")n=t,i=t,e.splice(0,1),r=!e||typeof e[0]!="object"?e:e[0];else if(t instanceof Array){const s=e.slice(1);if(t.length!==s.length+1)throw new Error("expected a string as the first argument to l10n.t");let a=t[0];for(let l=1;l<t.length;l++)a+=`{${l-1}}`+t[l];return Ae(a,...s)}else i=t.message,n=i,t.comment&&t.comment.length>0&&(n+=`/${Array.isArray(t.comment)?t.comment.join(""):t.comment}`),r=t.args??{};return oc(i,r)}var ac=/{([^}]+)}/g;function oc(e,t){return Object.keys(t).length===0?e:e.replace(ac,(n,i)=>t[i]??n)}var ia;(function(e){function t(n){return typeof n=="string"}e.is=t})(ia||(ia={}));var vi;(function(e){function t(n){return typeof n=="string"}e.is=t})(vi||(vi={}));var ra;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function t(n){return typeof n=="number"&&e.MIN_VALUE<=n&&n<=e.MAX_VALUE}e.is=t})(ra||(ra={}));var mn;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function t(n){return typeof n=="number"&&e.MIN_VALUE<=n&&n<=e.MAX_VALUE}e.is=t})(mn||(mn={}));var se;(function(e){function t(i,r){return i===Number.MAX_VALUE&&(i=mn.MAX_VALUE),r===Number.MAX_VALUE&&(r=mn.MAX_VALUE),{line:i,character:r}}e.create=t;function n(i){let r=i;return D.objectLiteral(r)&&D.uinteger(r.line)&&D.uinteger(r.character)}e.is=n})(se||(se={}));var J;(function(e){function t(i,r,s,a){if(D.uinteger(i)&&D.uinteger(r)&&D.uinteger(s)&&D.uinteger(a))return{start:se.create(i,r),end:se.create(s,a)};if(se.is(i)&&se.is(r))return{start:i,end:r};throw new Error(`Range#create called with invalid arguments[${i}, ${r}, ${s}, ${a}]`)}e.create=t;function n(i){let r=i;return D.objectLiteral(r)&&se.is(r.start)&&se.is(r.end)}e.is=n})(J||(J={}));var fn;(function(e){function t(i,r){return{uri:i,range:r}}e.create=t;function n(i){let r=i;return D.objectLiteral(r)&&J.is(r.range)&&(D.string(r.uri)||D.undefined(r.uri))}e.is=n})(fn||(fn={}));var sa;(function(e){function t(i,r,s,a){return{targetUri:i,targetRange:r,targetSelectionRange:s,originSelectionRange:a}}e.create=t;function n(i){let r=i;return D.objectLiteral(r)&&J.is(r.targetRange)&&D.string(r.targetUri)&&J.is(r.targetSelectionRange)&&(J.is(r.originSelectionRange)||D.undefined(r.originSelectionRange))}e.is=n})(sa||(sa={}));var yi;(function(e){function t(i,r,s,a){return{red:i,green:r,blue:s,alpha:a}}e.create=t;function n(i){const r=i;return D.objectLiteral(r)&&D.numberRange(r.red,0,1)&&D.numberRange(r.green,0,1)&&D.numberRange(r.blue,0,1)&&D.numberRange(r.alpha,0,1)}e.is=n})(yi||(yi={}));var aa;(function(e){function t(i,r){return{range:i,color:r}}e.create=t;function n(i){const r=i;return D.objectLiteral(r)&&J.is(r.range)&&yi.is(r.color)}e.is=n})(aa||(aa={}));var oa;(function(e){function t(i,r,s){return{label:i,textEdit:r,additionalTextEdits:s}}e.create=t;function n(i){const r=i;return D.objectLiteral(r)&&D.string(r.label)&&(D.undefined(r.textEdit)||le.is(r))&&(D.undefined(r.additionalTextEdits)||D.typedArray(r.additionalTextEdits,le.is))}e.is=n})(oa||(oa={}));var pn;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(pn||(pn={}));var la;(function(e){function t(i,r,s,a,l,o){const u={startLine:i,endLine:r};return D.defined(s)&&(u.startCharacter=s),D.defined(a)&&(u.endCharacter=a),D.defined(l)&&(u.kind=l),D.defined(o)&&(u.collapsedText=o),u}e.create=t;function n(i){const r=i;return D.objectLiteral(r)&&D.uinteger(r.startLine)&&D.uinteger(r.startLine)&&(D.undefined(r.startCharacter)||D.uinteger(r.startCharacter))&&(D.undefined(r.endCharacter)||D.uinteger(r.endCharacter))&&(D.undefined(r.kind)||D.string(r.kind))}e.is=n})(la||(la={}));var Ti;(function(e){function t(i,r){return{location:i,message:r}}e.create=t;function n(i){let r=i;return D.defined(r)&&fn.is(r.location)&&D.string(r.message)}e.is=n})(Ti||(Ti={}));var ua;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(ua||(ua={}));var ca;(function(e){e.Unnecessary=1,e.Deprecated=2})(ca||(ca={}));var ha;(function(e){function t(n){const i=n;return D.objectLiteral(i)&&D.string(i.href)}e.is=t})(ha||(ha={}));var gn;(function(e){function t(i,r,s,a,l,o){let u={range:i,message:r};return D.defined(s)&&(u.severity=s),D.defined(a)&&(u.code=a),D.defined(l)&&(u.source=l),D.defined(o)&&(u.relatedInformation=o),u}e.create=t;function n(i){var r;let s=i;return D.defined(s)&&J.is(s.range)&&D.string(s.message)&&(D.number(s.severity)||D.undefined(s.severity))&&(D.integer(s.code)||D.string(s.code)||D.undefined(s.code))&&(D.undefined(s.codeDescription)||D.string((r=s.codeDescription)===null||r===void 0?void 0:r.href))&&(D.string(s.source)||D.undefined(s.source))&&(D.undefined(s.relatedInformation)||D.typedArray(s.relatedInformation,Ti.is))}e.is=n})(gn||(gn={}));var vt;(function(e){function t(i,r,...s){let a={title:i,command:r};return D.defined(s)&&s.length>0&&(a.arguments=s),a}e.create=t;function n(i){let r=i;return D.defined(r)&&D.string(r.title)&&D.string(r.command)}e.is=n})(vt||(vt={}));var le;(function(e){function t(s,a){return{range:s,newText:a}}e.replace=t;function n(s,a){return{range:{start:s,end:s},newText:a}}e.insert=n;function i(s){return{range:s,newText:""}}e.del=i;function r(s){const a=s;return D.objectLiteral(a)&&D.string(a.newText)&&J.is(a.range)}e.is=r})(le||(le={}));var xi;(function(e){function t(i,r,s){const a={label:i};return r!==void 0&&(a.needsConfirmation=r),s!==void 0&&(a.description=s),a}e.create=t;function n(i){const r=i;return D.objectLiteral(r)&&D.string(r.label)&&(D.boolean(r.needsConfirmation)||r.needsConfirmation===void 0)&&(D.string(r.description)||r.description===void 0)}e.is=n})(xi||(xi={}));var yt;(function(e){function t(n){const i=n;return D.string(i)}e.is=t})(yt||(yt={}));var da;(function(e){function t(s,a,l){return{range:s,newText:a,annotationId:l}}e.replace=t;function n(s,a,l){return{range:{start:s,end:s},newText:a,annotationId:l}}e.insert=n;function i(s,a){return{range:s,newText:"",annotationId:a}}e.del=i;function r(s){const a=s;return le.is(a)&&(xi.is(a.annotationId)||yt.is(a.annotationId))}e.is=r})(da||(da={}));var ki;(function(e){function t(i,r){return{textDocument:i,edits:r}}e.create=t;function n(i){let r=i;return D.defined(r)&&Ei.is(r.textDocument)&&Array.isArray(r.edits)}e.is=n})(ki||(ki={}));var Si;(function(e){function t(i,r,s){let a={kind:"create",uri:i};return r!==void 0&&(r.overwrite!==void 0||r.ignoreIfExists!==void 0)&&(a.options=r),s!==void 0&&(a.annotationId=s),a}e.create=t;function n(i){let r=i;return r&&r.kind==="create"&&D.string(r.uri)&&(r.options===void 0||(r.options.overwrite===void 0||D.boolean(r.options.overwrite))&&(r.options.ignoreIfExists===void 0||D.boolean(r.options.ignoreIfExists)))&&(r.annotationId===void 0||yt.is(r.annotationId))}e.is=n})(Si||(Si={}));var Ai;(function(e){function t(i,r,s,a){let l={kind:"rename",oldUri:i,newUri:r};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(l.options=s),a!==void 0&&(l.annotationId=a),l}e.create=t;function n(i){let r=i;return r&&r.kind==="rename"&&D.string(r.oldUri)&&D.string(r.newUri)&&(r.options===void 0||(r.options.overwrite===void 0||D.boolean(r.options.overwrite))&&(r.options.ignoreIfExists===void 0||D.boolean(r.options.ignoreIfExists)))&&(r.annotationId===void 0||yt.is(r.annotationId))}e.is=n})(Ai||(Ai={}));var Li;(function(e){function t(i,r,s){let a={kind:"delete",uri:i};return r!==void 0&&(r.recursive!==void 0||r.ignoreIfNotExists!==void 0)&&(a.options=r),s!==void 0&&(a.annotationId=s),a}e.create=t;function n(i){let r=i;return r&&r.kind==="delete"&&D.string(r.uri)&&(r.options===void 0||(r.options.recursive===void 0||D.boolean(r.options.recursive))&&(r.options.ignoreIfNotExists===void 0||D.boolean(r.options.ignoreIfNotExists)))&&(r.annotationId===void 0||yt.is(r.annotationId))}e.is=n})(Li||(Li={}));var Ci;(function(e){function t(n){let i=n;return i&&(i.changes!==void 0||i.documentChanges!==void 0)&&(i.documentChanges===void 0||i.documentChanges.every(r=>D.string(r.kind)?Si.is(r)||Ai.is(r)||Li.is(r):ki.is(r)))}e.is=t})(Ci||(Ci={}));var ma;(function(e){function t(i){return{uri:i}}e.create=t;function n(i){let r=i;return D.defined(r)&&D.string(r.uri)}e.is=n})(ma||(ma={}));var fa;(function(e){function t(i,r){return{uri:i,version:r}}e.create=t;function n(i){let r=i;return D.defined(r)&&D.string(r.uri)&&D.integer(r.version)}e.is=n})(fa||(fa={}));var Ei;(function(e){function t(i,r){return{uri:i,version:r}}e.create=t;function n(i){let r=i;return D.defined(r)&&D.string(r.uri)&&(r.version===null||D.integer(r.version))}e.is=n})(Ei||(Ei={}));var pa;(function(e){function t(i,r,s,a){return{uri:i,languageId:r,version:s,text:a}}e.create=t;function n(i){let r=i;return D.defined(r)&&D.string(r.uri)&&D.string(r.languageId)&&D.integer(r.version)&&D.string(r.text)}e.is=n})(pa||(pa={}));var qe;(function(e){e.PlainText="plaintext",e.Markdown="markdown";function t(n){const i=n;return i===e.PlainText||i===e.Markdown}e.is=t})(qe||(qe={}));var Pt;(function(e){function t(n){const i=n;return D.objectLiteral(n)&&qe.is(i.kind)&&D.string(i.value)}e.is=t})(Pt||(Pt={}));var fe;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(fe||(fe={}));var Le;(function(e){e.PlainText=1,e.Snippet=2})(Le||(Le={}));var ga;(function(e){e.Deprecated=1})(ga||(ga={}));var ba;(function(e){function t(i,r,s){return{newText:i,insert:r,replace:s}}e.create=t;function n(i){const r=i;return r&&D.string(r.newText)&&J.is(r.insert)&&J.is(r.replace)}e.is=n})(ba||(ba={}));var wa;(function(e){e.asIs=1,e.adjustIndentation=2})(wa||(wa={}));var _a;(function(e){function t(n){const i=n;return i&&(D.string(i.detail)||i.detail===void 0)&&(D.string(i.description)||i.description===void 0)}e.is=t})(_a||(_a={}));var va;(function(e){function t(n){return{label:n}}e.create=t})(va||(va={}));var ya;(function(e){function t(n,i){return{items:n||[],isIncomplete:!!i}}e.create=t})(ya||(ya={}));var bn;(function(e){function t(i){return i.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=t;function n(i){const r=i;return D.string(r)||D.objectLiteral(r)&&D.string(r.language)&&D.string(r.value)}e.is=n})(bn||(bn={}));var Ta;(function(e){function t(n){let i=n;return!!i&&D.objectLiteral(i)&&(Pt.is(i.contents)||bn.is(i.contents)||D.typedArray(i.contents,bn.is))&&(n.range===void 0||J.is(n.range))}e.is=t})(Ta||(Ta={}));var xa;(function(e){function t(n,i){return i?{label:n,documentation:i}:{label:n}}e.create=t})(xa||(xa={}));var ka;(function(e){function t(n,i,...r){let s={label:n};return D.defined(i)&&(s.documentation=i),D.defined(r)?s.parameters=r:s.parameters=[],s}e.create=t})(ka||(ka={}));var wn;(function(e){e.Text=1,e.Read=2,e.Write=3})(wn||(wn={}));var Sa;(function(e){function t(n,i){let r={range:n};return D.number(i)&&(r.kind=i),r}e.create=t})(Sa||(Sa={}));var Di;(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(Di||(Di={}));var Aa;(function(e){e.Deprecated=1})(Aa||(Aa={}));var Ri;(function(e){function t(n,i,r,s,a){let l={name:n,kind:i,location:{uri:s,range:r}};return a&&(l.containerName=a),l}e.create=t})(Ri||(Ri={}));var La;(function(e){function t(n,i,r,s){return s!==void 0?{name:n,kind:i,location:{uri:r,range:s}}:{name:n,kind:i,location:{uri:r}}}e.create=t})(La||(La={}));var Mi;(function(e){function t(i,r,s,a,l,o){let u={name:i,detail:r,kind:s,range:a,selectionRange:l};return o!==void 0&&(u.children=o),u}e.create=t;function n(i){let r=i;return r&&D.string(r.name)&&D.number(r.kind)&&J.is(r.range)&&J.is(r.selectionRange)&&(r.detail===void 0||D.string(r.detail))&&(r.deprecated===void 0||D.boolean(r.deprecated))&&(r.children===void 0||Array.isArray(r.children))&&(r.tags===void 0||Array.isArray(r.tags))}e.is=n})(Mi||(Mi={}));var Ca;(function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"})(Ca||(Ca={}));var _n;(function(e){e.Invoked=1,e.Automatic=2})(_n||(_n={}));var Ea;(function(e){function t(i,r,s){let a={diagnostics:i};return r!=null&&(a.only=r),s!=null&&(a.triggerKind=s),a}e.create=t;function n(i){let r=i;return D.defined(r)&&D.typedArray(r.diagnostics,gn.is)&&(r.only===void 0||D.typedArray(r.only,D.string))&&(r.triggerKind===void 0||r.triggerKind===_n.Invoked||r.triggerKind===_n.Automatic)}e.is=n})(Ea||(Ea={}));var Da;(function(e){function t(i,r,s){let a={title:i},l=!0;return typeof r=="string"?(l=!1,a.kind=r):vt.is(r)?a.command=r:a.edit=r,l&&s!==void 0&&(a.kind=s),a}e.create=t;function n(i){let r=i;return r&&D.string(r.title)&&(r.diagnostics===void 0||D.typedArray(r.diagnostics,gn.is))&&(r.kind===void 0||D.string(r.kind))&&(r.edit!==void 0||r.command!==void 0)&&(r.command===void 0||vt.is(r.command))&&(r.isPreferred===void 0||D.boolean(r.isPreferred))&&(r.edit===void 0||Ci.is(r.edit))}e.is=n})(Da||(Da={}));var Ra;(function(e){function t(i,r){let s={range:i};return D.defined(r)&&(s.data=r),s}e.create=t;function n(i){let r=i;return D.defined(r)&&J.is(r.range)&&(D.undefined(r.command)||vt.is(r.command))}e.is=n})(Ra||(Ra={}));var Ma;(function(e){function t(i,r){return{tabSize:i,insertSpaces:r}}e.create=t;function n(i){let r=i;return D.defined(r)&&D.uinteger(r.tabSize)&&D.boolean(r.insertSpaces)}e.is=n})(Ma||(Ma={}));var Na;(function(e){function t(i,r,s){return{range:i,target:r,data:s}}e.create=t;function n(i){let r=i;return D.defined(r)&&J.is(r.range)&&(D.undefined(r.target)||D.string(r.target))}e.is=n})(Na||(Na={}));var vn;(function(e){function t(i,r){return{range:i,parent:r}}e.create=t;function n(i){let r=i;return D.objectLiteral(r)&&J.is(r.range)&&(r.parent===void 0||e.is(r.parent))}e.is=n})(vn||(vn={}));var Ia;(function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"})(Ia||(Ia={}));var za;(function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"})(za||(za={}));var Ha;(function(e){function t(n){const i=n;return D.objectLiteral(i)&&(i.resultId===void 0||typeof i.resultId=="string")&&Array.isArray(i.data)&&(i.data.length===0||typeof i.data[0]=="number")}e.is=t})(Ha||(Ha={}));var Ua;(function(e){function t(i,r){return{range:i,text:r}}e.create=t;function n(i){const r=i;return r!=null&&J.is(r.range)&&D.string(r.text)}e.is=n})(Ua||(Ua={}));var Wa;(function(e){function t(i,r,s){return{range:i,variableName:r,caseSensitiveLookup:s}}e.create=t;function n(i){const r=i;return r!=null&&J.is(r.range)&&D.boolean(r.caseSensitiveLookup)&&(D.string(r.variableName)||r.variableName===void 0)}e.is=n})(Wa||(Wa={}));var Fa;(function(e){function t(i,r){return{range:i,expression:r}}e.create=t;function n(i){const r=i;return r!=null&&J.is(r.range)&&(D.string(r.expression)||r.expression===void 0)}e.is=n})(Fa||(Fa={}));var Pa;(function(e){function t(i,r){return{frameId:i,stoppedLocation:r}}e.create=t;function n(i){const r=i;return D.defined(r)&&J.is(i.stoppedLocation)}e.is=n})(Pa||(Pa={}));var Ni;(function(e){e.Type=1,e.Parameter=2;function t(n){return n===1||n===2}e.is=t})(Ni||(Ni={}));var Ii;(function(e){function t(i){return{value:i}}e.create=t;function n(i){const r=i;return D.objectLiteral(r)&&(r.tooltip===void 0||D.string(r.tooltip)||Pt.is(r.tooltip))&&(r.location===void 0||fn.is(r.location))&&(r.command===void 0||vt.is(r.command))}e.is=n})(Ii||(Ii={}));var Ba;(function(e){function t(i,r,s){const a={position:i,label:r};return s!==void 0&&(a.kind=s),a}e.create=t;function n(i){const r=i;return D.objectLiteral(r)&&se.is(r.position)&&(D.string(r.label)||D.typedArray(r.label,Ii.is))&&(r.kind===void 0||Ni.is(r.kind))&&r.textEdits===void 0||D.typedArray(r.textEdits,le.is)&&(r.tooltip===void 0||D.string(r.tooltip)||Pt.is(r.tooltip))&&(r.paddingLeft===void 0||D.boolean(r.paddingLeft))&&(r.paddingRight===void 0||D.boolean(r.paddingRight))}e.is=n})(Ba||(Ba={}));var qa;(function(e){function t(n){return{kind:"snippet",value:n}}e.createSnippet=t})(qa||(qa={}));var Oa;(function(e){function t(n,i,r,s){return{insertText:n,filterText:i,range:r,command:s}}e.create=t})(Oa||(Oa={}));var Va;(function(e){function t(n){return{items:n}}e.create=t})(Va||(Va={}));var ja;(function(e){e.Invoked=0,e.Automatic=1})(ja||(ja={}));var $a;(function(e){function t(n,i){return{range:n,text:i}}e.create=t})($a||($a={}));var Ga;(function(e){function t(n,i){return{triggerKind:n,selectedCompletionInfo:i}}e.create=t})(Ga||(Ga={}));var Xa;(function(e){function t(n){const i=n;return D.objectLiteral(i)&&vi.is(i.uri)&&D.string(i.name)}e.is=t})(Xa||(Xa={}));var Ja;(function(e){function t(s,a,l,o){return new lc(s,a,l,o)}e.create=t;function n(s){let a=s;return!!(D.defined(a)&&D.string(a.uri)&&(D.undefined(a.languageId)||D.string(a.languageId))&&D.uinteger(a.lineCount)&&D.func(a.getText)&&D.func(a.positionAt)&&D.func(a.offsetAt))}e.is=n;function i(s,a){let l=s.getText(),o=r(a,(c,d)=>{let m=c.range.start.line-d.range.start.line;return m===0?c.range.start.character-d.range.start.character:m}),u=l.length;for(let c=o.length-1;c>=0;c--){let d=o[c],m=s.offsetAt(d.range.start),f=s.offsetAt(d.range.end);if(f<=u)l=l.substring(0,m)+d.newText+l.substring(f,l.length);else throw new Error("Overlapping edit");u=m}return l}e.applyEdits=i;function r(s,a){if(s.length<=1)return s;const l=s.length/2|0,o=s.slice(0,l),u=s.slice(l);r(o,a),r(u,a);let c=0,d=0,m=0;for(;c<o.length&&d<u.length;)a(o[c],u[d])<=0?s[m++]=o[c++]:s[m++]=u[d++];for(;c<o.length;)s[m++]=o[c++];for(;d<u.length;)s[m++]=u[d++];return s}})(Ja||(Ja={}));let lc=class{constructor(t,n,i,r){this._uri=t,this._languageId=n,this._version=i,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(t){if(t){let n=this.offsetAt(t.start),i=this.offsetAt(t.end);return this._content.substring(n,i)}return this._content}update(t,n){this._content=t.text,this._version=n,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let t=[],n=this._content,i=!0;for(let r=0;r<n.length;r++){i&&(t.push(r),i=!1);let s=n.charAt(r);i=s==="\r"||s===`
|
|
26
|
+
`)+1,y=c.index-T+1,L=w[w.length-1],I=p===1?y+c[0].length:L.length+1,H={startLineNumber:f,startColumn:y,endLineNumber:x,endColumn:I},P=(c.groups??{}).label??"",b=((c.groups??{}).separator??"")!=="",g={range:H,text:P,hasSeparatorLine:b,shouldBeInComments:!0};(g.text||g.hasSeparatorLine)&&(n.length===0||n[n.length-1].range.endLineNumber<g.range.startLineNumber)&&n.push(g),s.lastIndex=c.index+c[0].length}}return n}function Bu(t){t=t.trim();const e=t.startsWith("-");return t=t.replace(Hu,""),{text:t,hasSeparatorLine:e}}class qu{get isRejected(){var e;return((e=this.outcome)==null?void 0:e.outcome)===1}get isSettled(){return!!this.outcome}constructor(){this.p=new Promise((e,n)=>{this.completeCallback=e,this.errorCallback=n})}complete(e){return this.isSettled?Promise.resolve():new Promise(n=>{this.completeCallback(e),this.outcome={outcome:0,value:e},n()})}error(e){return this.isSettled?Promise.resolve():new Promise(n=>{this.errorCallback(e),this.outcome={outcome:1,value:e},n()})}cancel(){return this.error(new Ui)}}var js;(function(t){async function e(i){let r;const s=await Promise.all(i.map(a=>a.then(l=>l,l=>{r||(r=l)})));if(typeof r<"u")throw r;return s}t.settled=e;function n(i){return new Promise(async(r,s)=>{try{await i(r,s)}catch(a){s(a)}})}t.withAsyncBody=n})(js||(js={}));class Ou{constructor(){this._unsatisfiedConsumers=[],this._unconsumedValues=[]}get hasFinalValue(){return!!this._finalValue}produce(e){if(this._ensureNoFinalValue(),this._unsatisfiedConsumers.length>0){const n=this._unsatisfiedConsumers.shift();this._resolveOrRejectDeferred(n,e)}else this._unconsumedValues.push(e)}produceFinal(e){this._ensureNoFinalValue(),this._finalValue=e;for(const n of this._unsatisfiedConsumers)this._resolveOrRejectDeferred(n,e);this._unsatisfiedConsumers.length=0}_ensureNoFinalValue(){if(this._finalValue)throw new ue("ProducerConsumer: cannot produce after final value has been set")}_resolveOrRejectDeferred(e,n){n.ok?e.complete(n.value):e.error(n.error)}consume(){if(this._unconsumedValues.length>0||this._finalValue){const e=this._unconsumedValues.length>0?this._unconsumedValues.shift():this._finalValue;return e.ok?Promise.resolve(e.value):Promise.reject(e.error)}else{const e=new qu;return this._unsatisfiedConsumers.push(e),e.p}}}const pe=class pe{constructor(e,n){this._onReturn=n,this._producerConsumer=new Ou,this._iterator={next:()=>this._producerConsumer.consume(),return:()=>{var i;return(i=this._onReturn)==null||i.call(this),Promise.resolve({done:!0,value:void 0})},throw:async i=>(this._finishError(i),{done:!0,value:void 0})},queueMicrotask(async()=>{const i=e({emitOne:r=>this._producerConsumer.produce({ok:!0,value:{done:!1,value:r}}),emitMany:r=>{for(const s of r)this._producerConsumer.produce({ok:!0,value:{done:!1,value:s}})},reject:r=>this._finishError(r)});if(!this._producerConsumer.hasFinalValue)try{await i,this._finishOk()}catch(r){this._finishError(r)}})}static fromArray(e){return new pe(n=>{n.emitMany(e)})}static fromPromise(e){return new pe(async n=>{n.emitMany(await e)})}static fromPromisesResolveOrder(e){return new pe(async n=>{await Promise.all(e.map(async i=>n.emitOne(await i)))})}static merge(e){return new pe(async n=>{await Promise.all(e.map(async i=>{for await(const r of i)n.emitOne(r)}))})}static map(e,n){return new pe(async i=>{for await(const r of e)i.emitOne(n(r))})}map(e){return pe.map(this,e)}static coalesce(e){return pe.filter(e,n=>!!n)}coalesce(){return pe.coalesce(this)}static filter(e,n){return new pe(async i=>{for await(const r of e)n(r)&&i.emitOne(r)})}filter(e){return pe.filter(this,e)}_finishOk(){this._producerConsumer.hasFinalValue||this._producerConsumer.produceFinal({ok:!0,value:{done:!0,value:void 0}})}_finishError(e){this._producerConsumer.hasFinalValue||this._producerConsumer.produceFinal({ok:!1,error:e})}[Symbol.asyncIterator](){return this._iterator}};pe.EMPTY=pe.fromArray([]);let $s=pe;class Vu{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,n){e=ct(e);const i=this.values,r=this.prefixSum,s=n.length;return s===0?!1:(this.values=new Uint32Array(i.length+s),this.values.set(i.subarray(0,e),0),this.values.set(i.subarray(e),e+s),this.values.set(n,e),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(e,n){return e=ct(e),n=ct(n),this.values[e]===n?!1:(this.values[e]=n,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0)}removeValues(e,n){e=ct(e),n=ct(n);const i=this.values,r=this.prefixSum;if(e>=i.length)return!1;const s=i.length-e;return n>=s&&(n=s),n===0?!1:(this.values=new Uint32Array(i.length-n),this.values.set(i.subarray(0,e),0),this.values.set(i.subarray(e+n),e),this.prefixSum=new Uint32Array(this.values.length),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=ct(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let n=this.prefixSumValidIndex[0]+1;n===0&&(this.prefixSum[0]=this.values[0],n++),e>=this.values.length&&(e=this.values.length-1);for(let i=n;i<=e;i++)this.prefixSum[i]=this.prefixSum[i-1]+this.values[i];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let n=0,i=this.values.length-1,r=0,s=0,a=0;for(;n<=i;)if(r=n+(i-n)/2|0,s=this.prefixSum[r],a=s-this.values[r],e<a)i=r-1;else if(e>=s)n=r+1;else break;return new ju(r,e-a)}}class ju{constructor(e,n){this.index=e,this.remainder=n,this._prefixSumIndexOfResultBrand=void 0,this.index=e,this.remainder=n}}class $u{constructor(e,n,i,r){this._uri=e,this._lines=n,this._eol=i,this._versionId=r,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return this._cachedTextValue===null&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);const n=e.changes;for(const i of n)this._acceptDeleteRange(i.range),this._acceptInsertText(new K(i.range.startLineNumber,i.range.startColumn),i.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const e=this._eol.length,n=this._lines.length,i=new Uint32Array(n);for(let r=0;r<n;r++)i[r]=this._lines[r].length+e;this._lineStarts=new Vu(i)}}_setLineText(e,n){this._lines[e]=n,this._lineStarts&&this._lineStarts.setValue(e,this._lines[e].length+this._eol.length)}_acceptDeleteRange(e){if(e.startLineNumber===e.endLineNumber){if(e.startColumn===e.endColumn)return;this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.startLineNumber-1].substring(e.endColumn-1));return}this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.endLineNumber-1].substring(e.endColumn-1)),this._lines.splice(e.startLineNumber,e.endLineNumber-e.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(e.startLineNumber,e.endLineNumber-e.startLineNumber)}_acceptInsertText(e,n){if(n.length===0)return;const i=Uo(n);if(i.length===1){this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+i[0]+this._lines[e.lineNumber-1].substring(e.column-1));return}i[i.length-1]+=this._lines[e.lineNumber-1].substring(e.column-1),this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+i[0]);const r=new Uint32Array(i.length-1);for(let s=1;s<i.length;s++)this._lines.splice(e.lineNumber+s-1,0,i[s]),r[s-1]=i[s].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(e.lineNumber,r)}}class Gu{constructor(){this._models=Object.create(null)}getModel(e){return this._models[e]}getModels(){const e=[];return Object.keys(this._models).forEach(n=>e.push(this._models[n])),e}$acceptNewModel(e){this._models[e.url]=new Xu(Qn.parse(e.url),e.lines,e.EOL,e.versionId)}$acceptModelChanged(e,n){if(!this._models[e])return;this._models[e].onEvents(n)}$acceptRemovedModel(e){this._models[e]&&delete this._models[e]}}class Xu extends $u{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(e){const n=[];for(let i=0;i<this._lines.length;i++){const r=this._lines[i],s=this.offsetAt(new K(i+1,1)),a=r.matchAll(e);for(const l of a)(l.index||l.index===0)&&(l.index=l.index+s),n.push(l)}return n}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(e){return this._lines[e-1]}getWordAtPosition(e,n){const i=ri(e.column,ws(n),this._lines[e.lineNumber-1],0);return i?new j(e.lineNumber,i.startColumn,e.lineNumber,i.endColumn):null}words(e){const n=this._lines,i=this._wordenize.bind(this);let r=0,s="",a=0,l=[];return{*[Symbol.iterator](){for(;;)if(a<l.length){const o=s.substring(l[a].start,l[a].end);a+=1,yield o}else if(r<n.length)s=n[r],l=i(s,e),a=0,r+=1;else break}}}getLineWords(e,n){const i=this._lines[e-1],r=this._wordenize(i,n),s=[];for(const a of r)s.push({word:i.substring(a.start,a.end),startColumn:a.start+1,endColumn:a.end+1});return s}_wordenize(e,n){const i=[];let r;for(n.lastIndex=0;(r=n.exec(e))&&r[0].length!==0;)i.push({start:r.index,end:r.index+r[0].length});return i}getValueInRange(e){if(e=this._validateRange(e),e.startLineNumber===e.endLineNumber)return this._lines[e.startLineNumber-1].substring(e.startColumn-1,e.endColumn-1);const n=this._eol,i=e.startLineNumber-1,r=e.endLineNumber-1,s=[];s.push(this._lines[i].substring(e.startColumn-1));for(let a=i+1;a<r;a++)s.push(this._lines[a]);return s.push(this._lines[r].substring(0,e.endColumn-1)),s.join(n)}offsetAt(e){return e=this._validatePosition(e),this._ensureLineStarts(),this._lineStarts.getPrefixSum(e.lineNumber-2)+(e.column-1)}positionAt(e){e=Math.floor(e),e=Math.max(0,e),this._ensureLineStarts();const n=this._lineStarts.getIndexOf(e),i=this._lines[n.index].length;return{lineNumber:1+n.index,column:1+Math.min(n.remainder,i)}}_validateRange(e){const n=this._validatePosition({lineNumber:e.startLineNumber,column:e.startColumn}),i=this._validatePosition({lineNumber:e.endLineNumber,column:e.endColumn});return n.lineNumber!==e.startLineNumber||n.column!==e.startColumn||i.lineNumber!==e.endLineNumber||i.column!==e.endColumn?{startLineNumber:n.lineNumber,startColumn:n.column,endLineNumber:i.lineNumber,endColumn:i.column}:e}_validatePosition(e){if(!K.isIPosition(e))throw new Error("bad position");let{lineNumber:n,column:i}=e,r=!1;if(n<1)n=1,i=1,r=!0;else if(n>this._lines.length)n=this._lines.length,i=this._lines[n-1].length+1,r=!0;else{const s=this._lines[n-1].length+1;i<1?(i=1,r=!0):i>s&&(i=s,r=!0)}return r?{lineNumber:n,column:i}:e}}const rt=class rt{constructor(e=null){this._foreignModule=e,this._requestHandlerBrand=void 0,this._workerTextModelSyncServer=new Gu}dispose(){}async $ping(){return"pong"}_getModel(e){return this._workerTextModelSyncServer.getModel(e)}getModels(){return this._workerTextModelSyncServer.getModels()}$acceptNewModel(e){this._workerTextModelSyncServer.$acceptNewModel(e)}$acceptModelChanged(e,n){this._workerTextModelSyncServer.$acceptModelChanged(e,n)}$acceptRemovedModel(e){this._workerTextModelSyncServer.$acceptRemovedModel(e)}async $computeUnicodeHighlights(e,n,i){const r=this._getModel(e);return r?Jl.computeUnicodeHighlights(r,n,i):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async $findSectionHeaders(e,n){const i=this._getModel(e);return i?Pu(i,n):[]}async $computeDiff(e,n,i,r){const s=this._getModel(e),a=this._getModel(n);return!s||!a?null:rt.computeDiff(s,a,i,r)}static computeDiff(e,n,i,r){const s=r==="advanced"?Fs.getDefault():Fs.getLegacy(),a=e.getLinesContent(),l=n.getLinesContent(),o=s.computeDiff(a,l,i),u=o.changes.length>0?!1:this._modelsAreIdentical(e,n);function c(d){return d.map(m=>{var f;return[m.original.startLineNumber,m.original.endLineNumberExclusive,m.modified.startLineNumber,m.modified.endLineNumberExclusive,(f=m.innerChanges)==null?void 0:f.map(w=>[w.originalRange.startLineNumber,w.originalRange.startColumn,w.originalRange.endLineNumber,w.originalRange.endColumn,w.modifiedRange.startLineNumber,w.modifiedRange.startColumn,w.modifiedRange.endLineNumber,w.modifiedRange.endColumn])]})}return{identical:u,quitEarly:o.hitTimeout,changes:c(o.changes),moves:o.moves.map(d=>[d.lineRangeMapping.original.startLineNumber,d.lineRangeMapping.original.endLineNumberExclusive,d.lineRangeMapping.modified.startLineNumber,d.lineRangeMapping.modified.endLineNumberExclusive,c(d.changes)])}}static _modelsAreIdentical(e,n){const i=e.getLineCount(),r=n.getLineCount();if(i!==r)return!1;for(let s=1;s<=i;s++){const a=e.getLineContent(s),l=n.getLineContent(s);if(a!==l)return!1}return!0}async $computeMoreMinimalEdits(e,n,i){const r=this._getModel(e);if(!r)return n;const s=[];let a;n=n.slice(0).sort((o,u)=>{if(o.range&&u.range)return j.compareRangesUsingStarts(o.range,u.range);const c=o.range?0:1,d=u.range?0:1;return c-d});let l=0;for(let o=1;o<n.length;o++)j.getEndPosition(n[l].range).equals(j.getStartPosition(n[o].range))?(n[l].range=j.fromPositions(j.getStartPosition(n[l].range),j.getEndPosition(n[o].range)),n[l].text+=n[o].text):(l++,n[l]=n[o]);n.length=l+1;for(let{range:o,text:u,eol:c}of n){if(typeof c=="number"&&(a=c),j.isEmpty(o)&&!u)continue;const d=r.getValueInRange(o);if(u=u.replace(/\r\n|\n|\r/g,r.eol),d===u)continue;if(Math.max(u.length,d.length)>rt._diffLimit){s.push({range:o,text:u});continue}const m=nl(d,u,i),f=r.offsetAt(j.lift(o).getStartPosition());for(const w of m){const p=r.positionAt(f+w.originalStart),x=r.positionAt(f+w.originalStart+w.originalLength),T={text:u.substr(w.modifiedStart,w.modifiedLength),range:{startLineNumber:p.lineNumber,startColumn:p.column,endLineNumber:x.lineNumber,endColumn:x.column}};r.getValueInRange(T.range)!==T.text&&s.push(T)}}return typeof a=="number"&&s.push({eol:a,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),s}async $computeLinks(e){const n=this._getModel(e);return n?ol(n):null}async $computeDefaultDocumentColors(e){const n=this._getModel(e);return n?zu(n):null}async $textualSuggest(e,n,i,r){const s=new Jt,a=new RegExp(i,r),l=new Set;e:for(const o of e){const u=this._getModel(o);if(u){for(const c of u.words(a))if(!(c===n||!isNaN(Number(c)))&&(l.add(c),l.size>rt._suggestionsLimit))break e}}return{words:Array.from(l),duration:s.elapsed()}}async $computeWordRanges(e,n,i,r){const s=this._getModel(e);if(!s)return Object.create(null);const a=new RegExp(i,r),l=Object.create(null);for(let o=n.startLineNumber;o<n.endLineNumber;o++){const u=s.getLineWords(o,a);for(const c of u){if(!isNaN(Number(c.word)))continue;let d=l[c.word];d||(d=[],l[c.word]=d),d.push({startLineNumber:o,startColumn:c.startColumn,endLineNumber:o,endColumn:c.endColumn})}}return l}async $navigateValueSet(e,n,i,r,s){const a=this._getModel(e);if(!a)return null;const l=new RegExp(r,s);n.startColumn===n.endColumn&&(n={startLineNumber:n.startLineNumber,startColumn:n.startColumn,endLineNumber:n.endLineNumber,endColumn:n.endColumn+1});const o=a.getValueInRange(n),u=a.getWordAtPosition({lineNumber:n.startLineNumber,column:n.startColumn},l);if(!u)return null;const c=a.getValueInRange(u);return Vn.INSTANCE.navigateValueSet(n,o,u,c,i)}$fmr(e,n){if(!this._foreignModule||typeof this._foreignModule[e]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,n))}catch(i){return Promise.reject(i)}}};rt._diffLimit=1e5,rt._suggestionsLimit=1e4;let di=rt;typeof importScripts=="function"&&(globalThis.monaco=Hl());const jt=class jt{static getChannel(e){return e.getChannel(jt.CHANNEL_NAME)}static setChannel(e,n){e.setChannel(jt.CHANNEL_NAME,n)}};jt.CHANNEL_NAME="editorWorkerHost";let mi=jt;function Ju(t){let e;const n=el(i=>{const r=mi.getChannel(i),a={host:new Proxy({},{get(l,o,u){if(o!=="then"){if(typeof o!="string")throw new Error("Not supported");return(...c)=>r.$fhr(o,c)}}}),getMirrorModels:()=>n.requestHandler.getModels()};return e=t(a),new di(e)});return e}function Qu(t){self.onmessage=e=>{Ju(n=>t(n,e.data))}}function Ae(...t){const e=t[0];let n,i,r;if(typeof e=="string")n=e,i=e,t.splice(0,1),r=!t||typeof t[0]!="object"?t:t[0];else if(e instanceof Array){const s=t.slice(1);if(e.length!==s.length+1)throw new Error("expected a string as the first argument to l10n.t");let a=e[0];for(let l=1;l<e.length;l++)a+=`{${l-1}}`+e[l];return Ae(a,...s)}else i=e.message,n=i,e.comment&&e.comment.length>0&&(n+=`/${Array.isArray(e.comment)?e.comment.join(""):e.comment}`),r=e.args??{};return Zu(i,r)}var Yu=/{([^}]+)}/g;function Zu(t,e){return Object.keys(e).length===0?t:t.replace(Yu,(n,i)=>e[i]??n)}var Gs;(function(t){function e(n){return typeof n=="string"}t.is=e})(Gs||(Gs={}));var fi;(function(t){function e(n){return typeof n=="string"}t.is=e})(fi||(fi={}));var Xs;(function(t){t.MIN_VALUE=-2147483648,t.MAX_VALUE=2147483647;function e(n){return typeof n=="number"&&t.MIN_VALUE<=n&&n<=t.MAX_VALUE}t.is=e})(Xs||(Xs={}));var hn;(function(t){t.MIN_VALUE=0,t.MAX_VALUE=2147483647;function e(n){return typeof n=="number"&&t.MIN_VALUE<=n&&n<=t.MAX_VALUE}t.is=e})(hn||(hn={}));var se;(function(t){function e(i,r){return i===Number.MAX_VALUE&&(i=hn.MAX_VALUE),r===Number.MAX_VALUE&&(r=hn.MAX_VALUE),{line:i,character:r}}t.create=e;function n(i){let r=i;return R.objectLiteral(r)&&R.uinteger(r.line)&&R.uinteger(r.character)}t.is=n})(se||(se={}));var J;(function(t){function e(i,r,s,a){if(R.uinteger(i)&&R.uinteger(r)&&R.uinteger(s)&&R.uinteger(a))return{start:se.create(i,r),end:se.create(s,a)};if(se.is(i)&&se.is(r))return{start:i,end:r};throw new Error(`Range#create called with invalid arguments[${i}, ${r}, ${s}, ${a}]`)}t.create=e;function n(i){let r=i;return R.objectLiteral(r)&&se.is(r.start)&&se.is(r.end)}t.is=n})(J||(J={}));var dn;(function(t){function e(i,r){return{uri:i,range:r}}t.create=e;function n(i){let r=i;return R.objectLiteral(r)&&J.is(r.range)&&(R.string(r.uri)||R.undefined(r.uri))}t.is=n})(dn||(dn={}));var Js;(function(t){function e(i,r,s,a){return{targetUri:i,targetRange:r,targetSelectionRange:s,originSelectionRange:a}}t.create=e;function n(i){let r=i;return R.objectLiteral(r)&&J.is(r.targetRange)&&R.string(r.targetUri)&&J.is(r.targetSelectionRange)&&(J.is(r.originSelectionRange)||R.undefined(r.originSelectionRange))}t.is=n})(Js||(Js={}));var pi;(function(t){function e(i,r,s,a){return{red:i,green:r,blue:s,alpha:a}}t.create=e;function n(i){const r=i;return R.objectLiteral(r)&&R.numberRange(r.red,0,1)&&R.numberRange(r.green,0,1)&&R.numberRange(r.blue,0,1)&&R.numberRange(r.alpha,0,1)}t.is=n})(pi||(pi={}));var Qs;(function(t){function e(i,r){return{range:i,color:r}}t.create=e;function n(i){const r=i;return R.objectLiteral(r)&&J.is(r.range)&&pi.is(r.color)}t.is=n})(Qs||(Qs={}));var Ys;(function(t){function e(i,r,s){return{label:i,textEdit:r,additionalTextEdits:s}}t.create=e;function n(i){const r=i;return R.objectLiteral(r)&&R.string(r.label)&&(R.undefined(r.textEdit)||le.is(r))&&(R.undefined(r.additionalTextEdits)||R.typedArray(r.additionalTextEdits,le.is))}t.is=n})(Ys||(Ys={}));var mn;(function(t){t.Comment="comment",t.Imports="imports",t.Region="region"})(mn||(mn={}));var Zs;(function(t){function e(i,r,s,a,l,o){const u={startLine:i,endLine:r};return R.defined(s)&&(u.startCharacter=s),R.defined(a)&&(u.endCharacter=a),R.defined(l)&&(u.kind=l),R.defined(o)&&(u.collapsedText=o),u}t.create=e;function n(i){const r=i;return R.objectLiteral(r)&&R.uinteger(r.startLine)&&R.uinteger(r.startLine)&&(R.undefined(r.startCharacter)||R.uinteger(r.startCharacter))&&(R.undefined(r.endCharacter)||R.uinteger(r.endCharacter))&&(R.undefined(r.kind)||R.string(r.kind))}t.is=n})(Zs||(Zs={}));var gi;(function(t){function e(i,r){return{location:i,message:r}}t.create=e;function n(i){let r=i;return R.defined(r)&&dn.is(r.location)&&R.string(r.message)}t.is=n})(gi||(gi={}));var Ks;(function(t){t.Error=1,t.Warning=2,t.Information=3,t.Hint=4})(Ks||(Ks={}));var ea;(function(t){t.Unnecessary=1,t.Deprecated=2})(ea||(ea={}));var ta;(function(t){function e(n){const i=n;return R.objectLiteral(i)&&R.string(i.href)}t.is=e})(ta||(ta={}));var fn;(function(t){function e(i,r,s,a,l,o){let u={range:i,message:r};return R.defined(s)&&(u.severity=s),R.defined(a)&&(u.code=a),R.defined(l)&&(u.source=l),R.defined(o)&&(u.relatedInformation=o),u}t.create=e;function n(i){var r;let s=i;return R.defined(s)&&J.is(s.range)&&R.string(s.message)&&(R.number(s.severity)||R.undefined(s.severity))&&(R.integer(s.code)||R.string(s.code)||R.undefined(s.code))&&(R.undefined(s.codeDescription)||R.string((r=s.codeDescription)===null||r===void 0?void 0:r.href))&&(R.string(s.source)||R.undefined(s.source))&&(R.undefined(s.relatedInformation)||R.typedArray(s.relatedInformation,gi.is))}t.is=n})(fn||(fn={}));var vt;(function(t){function e(i,r,...s){let a={title:i,command:r};return R.defined(s)&&s.length>0&&(a.arguments=s),a}t.create=e;function n(i){let r=i;return R.defined(r)&&R.string(r.title)&&R.string(r.command)}t.is=n})(vt||(vt={}));var le;(function(t){function e(s,a){return{range:s,newText:a}}t.replace=e;function n(s,a){return{range:{start:s,end:s},newText:a}}t.insert=n;function i(s){return{range:s,newText:""}}t.del=i;function r(s){const a=s;return R.objectLiteral(a)&&R.string(a.newText)&&J.is(a.range)}t.is=r})(le||(le={}));var bi;(function(t){function e(i,r,s){const a={label:i};return r!==void 0&&(a.needsConfirmation=r),s!==void 0&&(a.description=s),a}t.create=e;function n(i){const r=i;return R.objectLiteral(r)&&R.string(r.label)&&(R.boolean(r.needsConfirmation)||r.needsConfirmation===void 0)&&(R.string(r.description)||r.description===void 0)}t.is=n})(bi||(bi={}));var yt;(function(t){function e(n){const i=n;return R.string(i)}t.is=e})(yt||(yt={}));var na;(function(t){function e(s,a,l){return{range:s,newText:a,annotationId:l}}t.replace=e;function n(s,a,l){return{range:{start:s,end:s},newText:a,annotationId:l}}t.insert=n;function i(s,a){return{range:s,newText:"",annotationId:a}}t.del=i;function r(s){const a=s;return le.is(a)&&(bi.is(a.annotationId)||yt.is(a.annotationId))}t.is=r})(na||(na={}));var wi;(function(t){function e(i,r){return{textDocument:i,edits:r}}t.create=e;function n(i){let r=i;return R.defined(r)&&xi.is(r.textDocument)&&Array.isArray(r.edits)}t.is=n})(wi||(wi={}));var _i;(function(t){function e(i,r,s){let a={kind:"create",uri:i};return r!==void 0&&(r.overwrite!==void 0||r.ignoreIfExists!==void 0)&&(a.options=r),s!==void 0&&(a.annotationId=s),a}t.create=e;function n(i){let r=i;return r&&r.kind==="create"&&R.string(r.uri)&&(r.options===void 0||(r.options.overwrite===void 0||R.boolean(r.options.overwrite))&&(r.options.ignoreIfExists===void 0||R.boolean(r.options.ignoreIfExists)))&&(r.annotationId===void 0||yt.is(r.annotationId))}t.is=n})(_i||(_i={}));var vi;(function(t){function e(i,r,s,a){let l={kind:"rename",oldUri:i,newUri:r};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(l.options=s),a!==void 0&&(l.annotationId=a),l}t.create=e;function n(i){let r=i;return r&&r.kind==="rename"&&R.string(r.oldUri)&&R.string(r.newUri)&&(r.options===void 0||(r.options.overwrite===void 0||R.boolean(r.options.overwrite))&&(r.options.ignoreIfExists===void 0||R.boolean(r.options.ignoreIfExists)))&&(r.annotationId===void 0||yt.is(r.annotationId))}t.is=n})(vi||(vi={}));var yi;(function(t){function e(i,r,s){let a={kind:"delete",uri:i};return r!==void 0&&(r.recursive!==void 0||r.ignoreIfNotExists!==void 0)&&(a.options=r),s!==void 0&&(a.annotationId=s),a}t.create=e;function n(i){let r=i;return r&&r.kind==="delete"&&R.string(r.uri)&&(r.options===void 0||(r.options.recursive===void 0||R.boolean(r.options.recursive))&&(r.options.ignoreIfNotExists===void 0||R.boolean(r.options.ignoreIfNotExists)))&&(r.annotationId===void 0||yt.is(r.annotationId))}t.is=n})(yi||(yi={}));var Ti;(function(t){function e(n){let i=n;return i&&(i.changes!==void 0||i.documentChanges!==void 0)&&(i.documentChanges===void 0||i.documentChanges.every(r=>R.string(r.kind)?_i.is(r)||vi.is(r)||yi.is(r):wi.is(r)))}t.is=e})(Ti||(Ti={}));var ia;(function(t){function e(i){return{uri:i}}t.create=e;function n(i){let r=i;return R.defined(r)&&R.string(r.uri)}t.is=n})(ia||(ia={}));var ra;(function(t){function e(i,r){return{uri:i,version:r}}t.create=e;function n(i){let r=i;return R.defined(r)&&R.string(r.uri)&&R.integer(r.version)}t.is=n})(ra||(ra={}));var xi;(function(t){function e(i,r){return{uri:i,version:r}}t.create=e;function n(i){let r=i;return R.defined(r)&&R.string(r.uri)&&(r.version===null||R.integer(r.version))}t.is=n})(xi||(xi={}));var sa;(function(t){function e(i,r,s,a){return{uri:i,languageId:r,version:s,text:a}}t.create=e;function n(i){let r=i;return R.defined(r)&&R.string(r.uri)&&R.string(r.languageId)&&R.integer(r.version)&&R.string(r.text)}t.is=n})(sa||(sa={}));var qe;(function(t){t.PlainText="plaintext",t.Markdown="markdown";function e(n){const i=n;return i===t.PlainText||i===t.Markdown}t.is=e})(qe||(qe={}));var Wt;(function(t){function e(n){const i=n;return R.objectLiteral(n)&&qe.is(i.kind)&&R.string(i.value)}t.is=e})(Wt||(Wt={}));var fe;(function(t){t.Text=1,t.Method=2,t.Function=3,t.Constructor=4,t.Field=5,t.Variable=6,t.Class=7,t.Interface=8,t.Module=9,t.Property=10,t.Unit=11,t.Value=12,t.Enum=13,t.Keyword=14,t.Snippet=15,t.Color=16,t.File=17,t.Reference=18,t.Folder=19,t.EnumMember=20,t.Constant=21,t.Struct=22,t.Event=23,t.Operator=24,t.TypeParameter=25})(fe||(fe={}));var Le;(function(t){t.PlainText=1,t.Snippet=2})(Le||(Le={}));var aa;(function(t){t.Deprecated=1})(aa||(aa={}));var oa;(function(t){function e(i,r,s){return{newText:i,insert:r,replace:s}}t.create=e;function n(i){const r=i;return r&&R.string(r.newText)&&J.is(r.insert)&&J.is(r.replace)}t.is=n})(oa||(oa={}));var la;(function(t){t.asIs=1,t.adjustIndentation=2})(la||(la={}));var ua;(function(t){function e(n){const i=n;return i&&(R.string(i.detail)||i.detail===void 0)&&(R.string(i.description)||i.description===void 0)}t.is=e})(ua||(ua={}));var ca;(function(t){function e(n){return{label:n}}t.create=e})(ca||(ca={}));var ha;(function(t){function e(n,i){return{items:n||[],isIncomplete:!!i}}t.create=e})(ha||(ha={}));var pn;(function(t){function e(i){return i.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}t.fromPlainText=e;function n(i){const r=i;return R.string(r)||R.objectLiteral(r)&&R.string(r.language)&&R.string(r.value)}t.is=n})(pn||(pn={}));var da;(function(t){function e(n){let i=n;return!!i&&R.objectLiteral(i)&&(Wt.is(i.contents)||pn.is(i.contents)||R.typedArray(i.contents,pn.is))&&(n.range===void 0||J.is(n.range))}t.is=e})(da||(da={}));var ma;(function(t){function e(n,i){return i?{label:n,documentation:i}:{label:n}}t.create=e})(ma||(ma={}));var fa;(function(t){function e(n,i,...r){let s={label:n};return R.defined(i)&&(s.documentation=i),R.defined(r)?s.parameters=r:s.parameters=[],s}t.create=e})(fa||(fa={}));var gn;(function(t){t.Text=1,t.Read=2,t.Write=3})(gn||(gn={}));var pa;(function(t){function e(n,i){let r={range:n};return R.number(i)&&(r.kind=i),r}t.create=e})(pa||(pa={}));var ki;(function(t){t.File=1,t.Module=2,t.Namespace=3,t.Package=4,t.Class=5,t.Method=6,t.Property=7,t.Field=8,t.Constructor=9,t.Enum=10,t.Interface=11,t.Function=12,t.Variable=13,t.Constant=14,t.String=15,t.Number=16,t.Boolean=17,t.Array=18,t.Object=19,t.Key=20,t.Null=21,t.EnumMember=22,t.Struct=23,t.Event=24,t.Operator=25,t.TypeParameter=26})(ki||(ki={}));var ga;(function(t){t.Deprecated=1})(ga||(ga={}));var Si;(function(t){function e(n,i,r,s,a){let l={name:n,kind:i,location:{uri:s,range:r}};return a&&(l.containerName=a),l}t.create=e})(Si||(Si={}));var ba;(function(t){function e(n,i,r,s){return s!==void 0?{name:n,kind:i,location:{uri:r,range:s}}:{name:n,kind:i,location:{uri:r}}}t.create=e})(ba||(ba={}));var Ai;(function(t){function e(i,r,s,a,l,o){let u={name:i,detail:r,kind:s,range:a,selectionRange:l};return o!==void 0&&(u.children=o),u}t.create=e;function n(i){let r=i;return r&&R.string(r.name)&&R.number(r.kind)&&J.is(r.range)&&J.is(r.selectionRange)&&(r.detail===void 0||R.string(r.detail))&&(r.deprecated===void 0||R.boolean(r.deprecated))&&(r.children===void 0||Array.isArray(r.children))&&(r.tags===void 0||Array.isArray(r.tags))}t.is=n})(Ai||(Ai={}));var wa;(function(t){t.Empty="",t.QuickFix="quickfix",t.Refactor="refactor",t.RefactorExtract="refactor.extract",t.RefactorInline="refactor.inline",t.RefactorRewrite="refactor.rewrite",t.Source="source",t.SourceOrganizeImports="source.organizeImports",t.SourceFixAll="source.fixAll"})(wa||(wa={}));var bn;(function(t){t.Invoked=1,t.Automatic=2})(bn||(bn={}));var _a;(function(t){function e(i,r,s){let a={diagnostics:i};return r!=null&&(a.only=r),s!=null&&(a.triggerKind=s),a}t.create=e;function n(i){let r=i;return R.defined(r)&&R.typedArray(r.diagnostics,fn.is)&&(r.only===void 0||R.typedArray(r.only,R.string))&&(r.triggerKind===void 0||r.triggerKind===bn.Invoked||r.triggerKind===bn.Automatic)}t.is=n})(_a||(_a={}));var va;(function(t){function e(i,r,s){let a={title:i},l=!0;return typeof r=="string"?(l=!1,a.kind=r):vt.is(r)?a.command=r:a.edit=r,l&&s!==void 0&&(a.kind=s),a}t.create=e;function n(i){let r=i;return r&&R.string(r.title)&&(r.diagnostics===void 0||R.typedArray(r.diagnostics,fn.is))&&(r.kind===void 0||R.string(r.kind))&&(r.edit!==void 0||r.command!==void 0)&&(r.command===void 0||vt.is(r.command))&&(r.isPreferred===void 0||R.boolean(r.isPreferred))&&(r.edit===void 0||Ti.is(r.edit))}t.is=n})(va||(va={}));var ya;(function(t){function e(i,r){let s={range:i};return R.defined(r)&&(s.data=r),s}t.create=e;function n(i){let r=i;return R.defined(r)&&J.is(r.range)&&(R.undefined(r.command)||vt.is(r.command))}t.is=n})(ya||(ya={}));var Ta;(function(t){function e(i,r){return{tabSize:i,insertSpaces:r}}t.create=e;function n(i){let r=i;return R.defined(r)&&R.uinteger(r.tabSize)&&R.boolean(r.insertSpaces)}t.is=n})(Ta||(Ta={}));var xa;(function(t){function e(i,r,s){return{range:i,target:r,data:s}}t.create=e;function n(i){let r=i;return R.defined(r)&&J.is(r.range)&&(R.undefined(r.target)||R.string(r.target))}t.is=n})(xa||(xa={}));var wn;(function(t){function e(i,r){return{range:i,parent:r}}t.create=e;function n(i){let r=i;return R.objectLiteral(r)&&J.is(r.range)&&(r.parent===void 0||t.is(r.parent))}t.is=n})(wn||(wn={}));var ka;(function(t){t.namespace="namespace",t.type="type",t.class="class",t.enum="enum",t.interface="interface",t.struct="struct",t.typeParameter="typeParameter",t.parameter="parameter",t.variable="variable",t.property="property",t.enumMember="enumMember",t.event="event",t.function="function",t.method="method",t.macro="macro",t.keyword="keyword",t.modifier="modifier",t.comment="comment",t.string="string",t.number="number",t.regexp="regexp",t.operator="operator",t.decorator="decorator"})(ka||(ka={}));var Sa;(function(t){t.declaration="declaration",t.definition="definition",t.readonly="readonly",t.static="static",t.deprecated="deprecated",t.abstract="abstract",t.async="async",t.modification="modification",t.documentation="documentation",t.defaultLibrary="defaultLibrary"})(Sa||(Sa={}));var Aa;(function(t){function e(n){const i=n;return R.objectLiteral(i)&&(i.resultId===void 0||typeof i.resultId=="string")&&Array.isArray(i.data)&&(i.data.length===0||typeof i.data[0]=="number")}t.is=e})(Aa||(Aa={}));var La;(function(t){function e(i,r){return{range:i,text:r}}t.create=e;function n(i){const r=i;return r!=null&&J.is(r.range)&&R.string(r.text)}t.is=n})(La||(La={}));var Ca;(function(t){function e(i,r,s){return{range:i,variableName:r,caseSensitiveLookup:s}}t.create=e;function n(i){const r=i;return r!=null&&J.is(r.range)&&R.boolean(r.caseSensitiveLookup)&&(R.string(r.variableName)||r.variableName===void 0)}t.is=n})(Ca||(Ca={}));var Ea;(function(t){function e(i,r){return{range:i,expression:r}}t.create=e;function n(i){const r=i;return r!=null&&J.is(r.range)&&(R.string(r.expression)||r.expression===void 0)}t.is=n})(Ea||(Ea={}));var Ra;(function(t){function e(i,r){return{frameId:i,stoppedLocation:r}}t.create=e;function n(i){const r=i;return R.defined(r)&&J.is(i.stoppedLocation)}t.is=n})(Ra||(Ra={}));var Li;(function(t){t.Type=1,t.Parameter=2;function e(n){return n===1||n===2}t.is=e})(Li||(Li={}));var Ci;(function(t){function e(i){return{value:i}}t.create=e;function n(i){const r=i;return R.objectLiteral(r)&&(r.tooltip===void 0||R.string(r.tooltip)||Wt.is(r.tooltip))&&(r.location===void 0||dn.is(r.location))&&(r.command===void 0||vt.is(r.command))}t.is=n})(Ci||(Ci={}));var Da;(function(t){function e(i,r,s){const a={position:i,label:r};return s!==void 0&&(a.kind=s),a}t.create=e;function n(i){const r=i;return R.objectLiteral(r)&&se.is(r.position)&&(R.string(r.label)||R.typedArray(r.label,Ci.is))&&(r.kind===void 0||Li.is(r.kind))&&r.textEdits===void 0||R.typedArray(r.textEdits,le.is)&&(r.tooltip===void 0||R.string(r.tooltip)||Wt.is(r.tooltip))&&(r.paddingLeft===void 0||R.boolean(r.paddingLeft))&&(r.paddingRight===void 0||R.boolean(r.paddingRight))}t.is=n})(Da||(Da={}));var Ma;(function(t){function e(n){return{kind:"snippet",value:n}}t.createSnippet=e})(Ma||(Ma={}));var Na;(function(t){function e(n,i,r,s){return{insertText:n,filterText:i,range:r,command:s}}t.create=e})(Na||(Na={}));var Ia;(function(t){function e(n){return{items:n}}t.create=e})(Ia||(Ia={}));var za;(function(t){t.Invoked=0,t.Automatic=1})(za||(za={}));var Ha;(function(t){function e(n,i){return{range:n,text:i}}t.create=e})(Ha||(Ha={}));var Ua;(function(t){function e(n,i){return{triggerKind:n,selectedCompletionInfo:i}}t.create=e})(Ua||(Ua={}));var Pa;(function(t){function e(n){const i=n;return R.objectLiteral(i)&&fi.is(i.uri)&&R.string(i.name)}t.is=e})(Pa||(Pa={}));var Wa;(function(t){function e(s,a,l,o){return new Ku(s,a,l,o)}t.create=e;function n(s){let a=s;return!!(R.defined(a)&&R.string(a.uri)&&(R.undefined(a.languageId)||R.string(a.languageId))&&R.uinteger(a.lineCount)&&R.func(a.getText)&&R.func(a.positionAt)&&R.func(a.offsetAt))}t.is=n;function i(s,a){let l=s.getText(),o=r(a,(c,d)=>{let m=c.range.start.line-d.range.start.line;return m===0?c.range.start.character-d.range.start.character:m}),u=l.length;for(let c=o.length-1;c>=0;c--){let d=o[c],m=s.offsetAt(d.range.start),f=s.offsetAt(d.range.end);if(f<=u)l=l.substring(0,m)+d.newText+l.substring(f,l.length);else throw new Error("Overlapping edit");u=m}return l}t.applyEdits=i;function r(s,a){if(s.length<=1)return s;const l=s.length/2|0,o=s.slice(0,l),u=s.slice(l);r(o,a),r(u,a);let c=0,d=0,m=0;for(;c<o.length&&d<u.length;)a(o[c],u[d])<=0?s[m++]=o[c++]:s[m++]=u[d++];for(;c<o.length;)s[m++]=o[c++];for(;d<u.length;)s[m++]=u[d++];return s}})(Wa||(Wa={}));let Ku=class{constructor(e,n,i,r){this._uri=e,this._languageId=n,this._version=i,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let n=this.offsetAt(e.start),i=this.offsetAt(e.end);return this._content.substring(n,i)}return this._content}update(e,n){this._content=e.text,this._version=n,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let e=[],n=this._content,i=!0;for(let r=0;r<n.length;r++){i&&(e.push(r),i=!1);let s=n.charAt(r);i=s==="\r"||s===`
|
|
27
27
|
`,s==="\r"&&r+1<n.length&&n.charAt(r+1)===`
|
|
28
|
-
`&&r++}i&&n.length>0&&t.push(n.length),this._lineOffsets=t}return this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let n=this.getLineOffsets(),i=0,r=n.length;if(r===0)return se.create(0,t);for(;i<r;){let a=Math.floor((i+r)/2);n[a]>t?r=a:i=a+1}let s=i-1;return se.create(s,t-n[s])}offsetAt(t){let n=this.getLineOffsets();if(t.line>=n.length)return this._content.length;if(t.line<0)return 0;let i=n[t.line],r=t.line+1<n.length?n[t.line+1]:this._content.length;return Math.max(Math.min(i+t.character,r),i)}get lineCount(){return this.getLineOffsets().length}};var D;(function(e){const t=Object.prototype.toString;function n(f){return typeof f<"u"}e.defined=n;function i(f){return typeof f>"u"}e.undefined=i;function r(f){return f===!0||f===!1}e.boolean=r;function s(f){return t.call(f)==="[object String]"}e.string=s;function a(f){return t.call(f)==="[object Number]"}e.number=a;function l(f,w,p){return t.call(f)==="[object Number]"&&w<=f&&f<=p}e.numberRange=l;function o(f){return t.call(f)==="[object Number]"&&-2147483648<=f&&f<=2147483647}e.integer=o;function u(f){return t.call(f)==="[object Number]"&&0<=f&&f<=2147483647}e.uinteger=u;function c(f){return t.call(f)==="[object Function]"}e.func=c;function d(f){return f!==null&&typeof f=="object"}e.objectLiteral=d;function m(f,w){return Array.isArray(f)&&f.every(w)}e.typedArray=m})(D||(D={}));class Bt{constructor(t,n,i,r){this._uri=t,this._languageId=n,this._version=i,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(t){if(t){const n=this.offsetAt(t.start),i=this.offsetAt(t.end);return this._content.substring(n,i)}return this._content}update(t,n){for(let i of t)if(Bt.isIncremental(i)){const r=Ya(i.range),s=this.offsetAt(r.start),a=this.offsetAt(r.end);this._content=this._content.substring(0,s)+i.text+this._content.substring(a,this._content.length);const l=Math.max(r.start.line,0),o=Math.max(r.end.line,0);let u=this._lineOffsets;const c=Qa(i.text,!1,s);if(o-l===c.length)for(let m=0,f=c.length;m<f;m++)u[m+l+1]=c[m];else c.length<1e4?u.splice(l+1,o-l,...c):this._lineOffsets=u=u.slice(0,l+1).concat(c,u.slice(o+1));const d=i.text.length-(a-s);if(d!==0)for(let m=l+1+c.length,f=u.length;m<f;m++)u[m]=u[m]+d}else if(Bt.isFull(i))this._content=i.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received");this._version=n}getLineOffsets(){return this._lineOffsets===void 0&&(this._lineOffsets=Qa(this._content,!0)),this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let n=this.getLineOffsets(),i=0,r=n.length;if(r===0)return{line:0,character:t};for(;i<r;){let a=Math.floor((i+r)/2);n[a]>t?r=a:i=a+1}let s=i-1;return{line:s,character:t-n[s]}}offsetAt(t){let n=this.getLineOffsets();if(t.line>=n.length)return this._content.length;if(t.line<0)return 0;let i=n[t.line],r=t.line+1<n.length?n[t.line+1]:this._content.length;return Math.max(Math.min(i+t.character,r),i)}get lineCount(){return this.getLineOffsets().length}static isIncremental(t){let n=t;return n!=null&&typeof n.text=="string"&&n.range!==void 0&&(n.rangeLength===void 0||typeof n.rangeLength=="number")}static isFull(t){let n=t;return n!=null&&typeof n.text=="string"&&n.range===void 0&&n.rangeLength===void 0}}var zi;(function(e){function t(r,s,a,l){return new Bt(r,s,a,l)}e.create=t;function n(r,s,a){if(r instanceof Bt)return r.update(s,a),r;throw new Error("TextDocument.update: document must be created by TextDocument.create")}e.update=n;function i(r,s){let a=r.getText(),l=Hi(s.map(uc),(c,d)=>{let m=c.range.start.line-d.range.start.line;return m===0?c.range.start.character-d.range.start.character:m}),o=0;const u=[];for(const c of l){let d=r.offsetAt(c.range.start);if(d<o)throw new Error("Overlapping edit");d>o&&u.push(a.substring(o,d)),c.newText.length&&u.push(c.newText),o=r.offsetAt(c.range.end)}return u.push(a.substr(o)),u.join("")}e.applyEdits=i})(zi||(zi={}));function Hi(e,t){if(e.length<=1)return e;const n=e.length/2|0,i=e.slice(0,n),r=e.slice(n);Hi(i,t),Hi(r,t);let s=0,a=0,l=0;for(;s<i.length&&a<r.length;)t(i[s],r[a])<=0?e[l++]=i[s++]:e[l++]=r[a++];for(;s<i.length;)e[l++]=i[s++];for(;a<r.length;)e[l++]=r[a++];return e}function Qa(e,t,n=0){const i=t?[n]:[];for(let r=0;r<e.length;r++){let s=e.charCodeAt(r);(s===13||s===10)&&(s===13&&r+1<e.length&&e.charCodeAt(r+1)===10&&r++,i.push(n+r+1))}return i}function Ya(e){const t=e.start,n=e.end;return t.line>n.line||t.line===n.line&&t.character>n.character?{start:n,end:t}:e}function uc(e){const t=Ya(e.range);return t!==e.range?{newText:e.newText,range:t}:e}var z;(function(e){e[e.StartCommentTag=0]="StartCommentTag",e[e.Comment=1]="Comment",e[e.EndCommentTag=2]="EndCommentTag",e[e.StartTagOpen=3]="StartTagOpen",e[e.StartTagClose=4]="StartTagClose",e[e.StartTagSelfClose=5]="StartTagSelfClose",e[e.StartTag=6]="StartTag",e[e.EndTagOpen=7]="EndTagOpen",e[e.EndTagClose=8]="EndTagClose",e[e.EndTag=9]="EndTag",e[e.DelimiterAssign=10]="DelimiterAssign",e[e.AttributeName=11]="AttributeName",e[e.AttributeValue=12]="AttributeValue",e[e.StartDoctypeTag=13]="StartDoctypeTag",e[e.Doctype=14]="Doctype",e[e.EndDoctypeTag=15]="EndDoctypeTag",e[e.Content=16]="Content",e[e.Whitespace=17]="Whitespace",e[e.Unknown=18]="Unknown",e[e.Script=19]="Script",e[e.Styles=20]="Styles",e[e.EOS=21]="EOS"})(z||(z={}));var V;(function(e){e[e.WithinContent=0]="WithinContent",e[e.AfterOpeningStartTag=1]="AfterOpeningStartTag",e[e.AfterOpeningEndTag=2]="AfterOpeningEndTag",e[e.WithinDoctype=3]="WithinDoctype",e[e.WithinTag=4]="WithinTag",e[e.WithinEndTag=5]="WithinEndTag",e[e.WithinComment=6]="WithinComment",e[e.WithinScriptContent=7]="WithinScriptContent",e[e.WithinStyleContent=8]="WithinStyleContent",e[e.AfterAttributeName=9]="AfterAttributeName",e[e.BeforeAttributeValue=10]="BeforeAttributeValue"})(V||(V={}));var Za;(function(e){e.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[qe.Markdown,qe.PlainText]}},hover:{contentFormat:[qe.Markdown,qe.PlainText]}}}})(Za||(Za={}));var Ui;(function(e){e[e.Unknown=0]="Unknown",e[e.File=1]="File",e[e.Directory=2]="Directory",e[e.SymbolicLink=64]="SymbolicLink"})(Ui||(Ui={}));class cc{constructor(t,n){this.source=t,this.len=t.length,this.position=n}eos(){return this.len<=this.position}getSource(){return this.source}pos(){return this.position}goBackTo(t){this.position=t}goBack(t){this.position-=t}advance(t){this.position+=t}goToEnd(){this.position=this.source.length}nextChar(){return this.source.charCodeAt(this.position++)||0}peekChar(t=0){return this.source.charCodeAt(this.position+t)||0}advanceIfChar(t){return t===this.source.charCodeAt(this.position)?(this.position++,!0):!1}advanceIfChars(t){let n;if(this.position+t.length>this.source.length)return!1;for(n=0;n<t.length;n++)if(this.source.charCodeAt(this.position+n)!==t[n])return!1;return this.advance(n),!0}advanceIfRegExp(t){const i=this.source.substr(this.position).match(t);return i?(this.position=this.position+i.index+i[0].length,i[0]):""}advanceUntilRegExp(t){const i=this.source.substr(this.position).match(t);return i?(this.position=this.position+i.index,i[0]):(this.goToEnd(),"")}advanceUntilChar(t){for(;this.position<this.source.length;){if(this.source.charCodeAt(this.position)===t)return!0;this.advance(1)}return!1}advanceUntilChars(t){for(;this.position+t.length<=this.source.length;){let n=0;for(;n<t.length&&this.source.charCodeAt(this.position+n)===t[n];n++);if(n===t.length)return!0;this.advance(1)}return this.goToEnd(),!1}skipWhitespace(){return this.advanceWhileChar(n=>n===bc||n===wc||n===fc||n===gc||n===pc)>0}advanceWhileChar(t){const n=this.position;for(;this.position<this.len&&t(this.source.charCodeAt(this.position));)this.position++;return this.position-n}}const Ka=33,Tt=45,yn=60,Ne=62,Wi=47,hc=61,dc=34,mc=39,fc=10,pc=13,gc=12,bc=32,wc=9,_c={"text/x-handlebars-template":!0,"text/html":!0};function be(e,t=0,n=V.WithinContent,i=!1){const r=new cc(e,t);let s=n,a=0,l=z.Unknown,o,u,c,d,m;function f(){return r.advanceIfRegExp(/^[_:\w][_:\w-.\d]*/).toLowerCase()}function w(){return r.advanceIfRegExp(/^[^\s"'></=\x00-\x0F\x7F\x80-\x9F]*/).toLowerCase()}function p(y,L,I){return l=L,a=y,o=I,L}function x(){const y=r.pos(),L=s,I=T();return I!==z.EOS&&y===r.pos()&&!(i&&(I===z.StartTagClose||I===z.EndTagClose))?(console.warn("Scanner.scan has not advanced at offset "+y+", state before: "+L+" after: "+s),r.advance(1),p(y,z.Unknown)):I}function T(){const y=r.pos();if(r.eos())return p(y,z.EOS);let L;switch(s){case V.WithinComment:return r.advanceIfChars([Tt,Tt,Ne])?(s=V.WithinContent,p(y,z.EndCommentTag)):(r.advanceUntilChars([Tt,Tt,Ne]),p(y,z.Comment));case V.WithinDoctype:return r.advanceIfChar(Ne)?(s=V.WithinContent,p(y,z.EndDoctypeTag)):(r.advanceUntilChar(Ne),p(y,z.Doctype));case V.WithinContent:if(r.advanceIfChar(yn)){if(!r.eos()&&r.peekChar()===Ka){if(r.advanceIfChars([Ka,Tt,Tt]))return s=V.WithinComment,p(y,z.StartCommentTag);if(r.advanceIfRegExp(/^!doctype/i))return s=V.WithinDoctype,p(y,z.StartDoctypeTag)}return r.advanceIfChar(Wi)?(s=V.AfterOpeningEndTag,p(y,z.EndTagOpen)):(s=V.AfterOpeningStartTag,p(y,z.StartTagOpen))}return r.advanceUntilChar(yn),p(y,z.Content);case V.AfterOpeningEndTag:return f().length>0?(s=V.WithinEndTag,p(y,z.EndTag)):r.skipWhitespace()?p(y,z.Whitespace,Ae("Tag name must directly follow the open bracket.")):(s=V.WithinEndTag,r.advanceUntilChar(Ne),y<r.pos()?p(y,z.Unknown,Ae("End tag name expected.")):T());case V.WithinEndTag:if(r.skipWhitespace())return p(y,z.Whitespace);if(r.advanceIfChar(Ne))return s=V.WithinContent,p(y,z.EndTagClose);if(i&&r.peekChar()===yn)return s=V.WithinContent,p(y,z.EndTagClose,Ae("Closing bracket missing."));L=Ae("Closing bracket expected.");break;case V.AfterOpeningStartTag:return c=f(),m=void 0,d=void 0,c.length>0?(u=!1,s=V.WithinTag,p(y,z.StartTag)):r.skipWhitespace()?p(y,z.Whitespace,Ae("Tag name must directly follow the open bracket.")):(s=V.WithinTag,r.advanceUntilChar(Ne),y<r.pos()?p(y,z.Unknown,Ae("Start tag name expected.")):T());case V.WithinTag:return r.skipWhitespace()?(u=!0,p(y,z.Whitespace)):u&&(d=w(),d.length>0)?(s=V.AfterAttributeName,u=!1,p(y,z.AttributeName)):r.advanceIfChars([Wi,Ne])?(s=V.WithinContent,p(y,z.StartTagSelfClose)):r.advanceIfChar(Ne)?(c==="script"?m&&_c[m]?s=V.WithinContent:s=V.WithinScriptContent:c==="style"?s=V.WithinStyleContent:s=V.WithinContent,p(y,z.StartTagClose)):i&&r.peekChar()===yn?(s=V.WithinContent,p(y,z.StartTagClose,Ae("Closing bracket missing."))):(r.advance(1),p(y,z.Unknown,Ae("Unexpected character in tag.")));case V.AfterAttributeName:return r.skipWhitespace()?(u=!0,p(y,z.Whitespace)):r.advanceIfChar(hc)?(s=V.BeforeAttributeValue,p(y,z.DelimiterAssign)):(s=V.WithinTag,T());case V.BeforeAttributeValue:if(r.skipWhitespace())return p(y,z.Whitespace);let H=r.advanceIfRegExp(/^[^\s"'`=<>]+/);if(H.length>0&&(r.peekChar()===Ne&&r.peekChar(-1)===Wi&&(r.goBack(1),H=H.substring(0,H.length-1)),d==="type"&&(m=H),H.length>0))return s=V.WithinTag,u=!1,p(y,z.AttributeValue);const W=r.peekChar();return W===mc||W===dc?(r.advance(1),r.advanceUntilChar(W)&&r.advance(1),d==="type"&&(m=r.getSource().substring(y+1,r.pos()-1)),s=V.WithinTag,u=!1,p(y,z.AttributeValue)):(s=V.WithinTag,u=!1,T());case V.WithinScriptContent:let b=1;for(;!r.eos();){const g=r.advanceIfRegExp(/<!--|-->|<\/?script\s*\/?>?/i);if(g.length===0)return r.goToEnd(),p(y,z.Script);if(g==="<!--")b===1&&(b=2);else if(g==="-->")b=1;else if(g[1]!=="/")b===2&&(b=3);else if(b===3)b=2;else{r.goBack(g.length);break}}return s=V.WithinContent,y<r.pos()?p(y,z.Script):T();case V.WithinStyleContent:return r.advanceUntilRegExp(/<\/style/i),s=V.WithinContent,y<r.pos()?p(y,z.Styles):T()}return r.advance(1),s=V.WithinContent,p(y,z.Unknown,L)}return{scan:x,getTokenType:()=>l,getTokenOffset:()=>a,getTokenLength:()=>r.pos()-a,getTokenEnd:()=>r.pos(),getTokenText:()=>r.getSource().substring(a,r.pos()),getScannerState:()=>s,getTokenError:()=>o}}function eo(e,t){let n=0,i=e.length;if(i===0)return 0;for(;n<i;){let r=Math.floor((n+i)/2);t(e[r])?i=r:n=r+1}return n}function vc(e,t,n){let i=0,r=e.length-1;for(;i<=r;){const s=(i+r)/2|0,a=n(e[s],t);if(a<0)i=s+1;else if(a>0)r=s-1;else return s}return-(i+1)}class to{get attributeNames(){return this.attributes?Object.keys(this.attributes):[]}constructor(t,n,i,r){this.start=t,this.end=n,this.children=i,this.parent=r,this.closed=!1}isSameTag(t){return this.tag===void 0?t===void 0:t!==void 0&&this.tag.length===t.length&&this.tag.toLowerCase()===t}get firstChild(){return this.children[0]}get lastChild(){return this.children.length?this.children[this.children.length-1]:void 0}findNodeBefore(t){const n=eo(this.children,i=>t<=i.start)-1;if(n>=0){const i=this.children[n];if(t>i.start){if(t<i.end)return i.findNodeBefore(t);const r=i.lastChild;return r&&r.end===i.end?i.findNodeBefore(t):i}}return this}findNodeAt(t){const n=eo(this.children,i=>t<=i.start)-1;if(n>=0){const i=this.children[n];if(t>i.start&&t<=i.end)return i.findNodeAt(t)}return this}}class yc{constructor(t){this.dataManager=t}parseDocument(t){return this.parse(t.getText(),this.dataManager.getVoidElements(t.languageId))}parse(t,n){const i=be(t,void 0,void 0,!0),r=new to(0,t.length,[],void 0);let s=r,a=-1,l,o=null,u=i.scan();for(;u!==z.EOS;){switch(u){case z.StartTagOpen:const c=new to(i.getTokenOffset(),t.length,[],s);s.children.push(c),s=c;break;case z.StartTag:s.tag=i.getTokenText();break;case z.StartTagClose:s.parent&&(s.end=i.getTokenEnd(),i.getTokenLength()?(s.startTagEnd=i.getTokenEnd(),s.tag&&this.dataManager.isVoidElement(s.tag,n)&&(s.closed=!0,s=s.parent)):s=s.parent);break;case z.StartTagSelfClose:s.parent&&(s.closed=!0,s.end=i.getTokenEnd(),s.startTagEnd=i.getTokenEnd(),s=s.parent);break;case z.EndTagOpen:a=i.getTokenOffset(),l=void 0;break;case z.EndTag:l=i.getTokenText().toLowerCase();break;case z.EndTagClose:let d=s;for(;!d.isSameTag(l)&&d.parent;)d=d.parent;if(d.parent){for(;s!==d;)s.end=a,s.closed=!1,s=s.parent;s.closed=!0,s.endTagStart=a,s.end=i.getTokenEnd(),s=s.parent}break;case z.AttributeName:{o=i.getTokenText();let m=s.attributes;m||(s.attributes=m={}),m[o]=null;break}case z.AttributeValue:{const m=i.getTokenText(),f=s.attributes;f&&o&&(f[o]=m,o=null);break}}u=i.scan()}for(;s.parent;)s.end=t.length,s.closed=!1,s=s.parent;return{roots:r.children,findNodeBefore:r.findNodeBefore.bind(r),findNodeAt:r.findNodeAt.bind(r)}}}const qt={"Aacute;":"Á",Aacute:"Á","aacute;":"á",aacute:"á","Abreve;":"Ă","abreve;":"ă","ac;":"∾","acd;":"∿","acE;":"∾̳","Acirc;":"Â",Acirc:"Â","acirc;":"â",acirc:"â","acute;":"´",acute:"´","Acy;":"А","acy;":"а","AElig;":"Æ",AElig:"Æ","aelig;":"æ",aelig:"æ","af;":"","Afr;":"𝔄","afr;":"𝔞","Agrave;":"À",Agrave:"À","agrave;":"à",agrave:"à","alefsym;":"ℵ","aleph;":"ℵ","Alpha;":"Α","alpha;":"α","Amacr;":"Ā","amacr;":"ā","amalg;":"⨿","AMP;":"&",AMP:"&","amp;":"&",amp:"&","And;":"⩓","and;":"∧","andand;":"⩕","andd;":"⩜","andslope;":"⩘","andv;":"⩚","ang;":"∠","ange;":"⦤","angle;":"∠","angmsd;":"∡","angmsdaa;":"⦨","angmsdab;":"⦩","angmsdac;":"⦪","angmsdad;":"⦫","angmsdae;":"⦬","angmsdaf;":"⦭","angmsdag;":"⦮","angmsdah;":"⦯","angrt;":"∟","angrtvb;":"⊾","angrtvbd;":"⦝","angsph;":"∢","angst;":"Å","angzarr;":"⍼","Aogon;":"Ą","aogon;":"ą","Aopf;":"𝔸","aopf;":"𝕒","ap;":"≈","apacir;":"⩯","apE;":"⩰","ape;":"≊","apid;":"≋","apos;":"'","ApplyFunction;":"","approx;":"≈","approxeq;":"≊","Aring;":"Å",Aring:"Å","aring;":"å",aring:"å","Ascr;":"𝒜","ascr;":"𝒶","Assign;":"≔","ast;":"*","asymp;":"≈","asympeq;":"≍","Atilde;":"Ã",Atilde:"Ã","atilde;":"ã",atilde:"ã","Auml;":"Ä",Auml:"Ä","auml;":"ä",auml:"ä","awconint;":"∳","awint;":"⨑","backcong;":"≌","backepsilon;":"϶","backprime;":"‵","backsim;":"∽","backsimeq;":"⋍","Backslash;":"∖","Barv;":"⫧","barvee;":"⊽","Barwed;":"⌆","barwed;":"⌅","barwedge;":"⌅","bbrk;":"⎵","bbrktbrk;":"⎶","bcong;":"≌","Bcy;":"Б","bcy;":"б","bdquo;":"„","becaus;":"∵","Because;":"∵","because;":"∵","bemptyv;":"⦰","bepsi;":"϶","bernou;":"ℬ","Bernoullis;":"ℬ","Beta;":"Β","beta;":"β","beth;":"ℶ","between;":"≬","Bfr;":"𝔅","bfr;":"𝔟","bigcap;":"⋂","bigcirc;":"◯","bigcup;":"⋃","bigodot;":"⨀","bigoplus;":"⨁","bigotimes;":"⨂","bigsqcup;":"⨆","bigstar;":"★","bigtriangledown;":"▽","bigtriangleup;":"△","biguplus;":"⨄","bigvee;":"⋁","bigwedge;":"⋀","bkarow;":"⤍","blacklozenge;":"⧫","blacksquare;":"▪","blacktriangle;":"▴","blacktriangledown;":"▾","blacktriangleleft;":"◂","blacktriangleright;":"▸","blank;":"␣","blk12;":"▒","blk14;":"░","blk34;":"▓","block;":"█","bne;":"=⃥","bnequiv;":"≡⃥","bNot;":"⫭","bnot;":"⌐","Bopf;":"𝔹","bopf;":"𝕓","bot;":"⊥","bottom;":"⊥","bowtie;":"⋈","boxbox;":"⧉","boxDL;":"╗","boxDl;":"╖","boxdL;":"╕","boxdl;":"┐","boxDR;":"╔","boxDr;":"╓","boxdR;":"╒","boxdr;":"┌","boxH;":"═","boxh;":"─","boxHD;":"╦","boxHd;":"╤","boxhD;":"╥","boxhd;":"┬","boxHU;":"╩","boxHu;":"╧","boxhU;":"╨","boxhu;":"┴","boxminus;":"⊟","boxplus;":"⊞","boxtimes;":"⊠","boxUL;":"╝","boxUl;":"╜","boxuL;":"╛","boxul;":"┘","boxUR;":"╚","boxUr;":"╙","boxuR;":"╘","boxur;":"└","boxV;":"║","boxv;":"│","boxVH;":"╬","boxVh;":"╫","boxvH;":"╪","boxvh;":"┼","boxVL;":"╣","boxVl;":"╢","boxvL;":"╡","boxvl;":"┤","boxVR;":"╠","boxVr;":"╟","boxvR;":"╞","boxvr;":"├","bprime;":"‵","Breve;":"˘","breve;":"˘","brvbar;":"¦",brvbar:"¦","Bscr;":"ℬ","bscr;":"𝒷","bsemi;":"⁏","bsim;":"∽","bsime;":"⋍","bsol;":"\\","bsolb;":"⧅","bsolhsub;":"⟈","bull;":"•","bullet;":"•","bump;":"≎","bumpE;":"⪮","bumpe;":"≏","Bumpeq;":"≎","bumpeq;":"≏","Cacute;":"Ć","cacute;":"ć","Cap;":"⋒","cap;":"∩","capand;":"⩄","capbrcup;":"⩉","capcap;":"⩋","capcup;":"⩇","capdot;":"⩀","CapitalDifferentialD;":"ⅅ","caps;":"∩︀","caret;":"⁁","caron;":"ˇ","Cayleys;":"ℭ","ccaps;":"⩍","Ccaron;":"Č","ccaron;":"č","Ccedil;":"Ç",Ccedil:"Ç","ccedil;":"ç",ccedil:"ç","Ccirc;":"Ĉ","ccirc;":"ĉ","Cconint;":"∰","ccups;":"⩌","ccupssm;":"⩐","Cdot;":"Ċ","cdot;":"ċ","cedil;":"¸",cedil:"¸","Cedilla;":"¸","cemptyv;":"⦲","cent;":"¢",cent:"¢","CenterDot;":"·","centerdot;":"·","Cfr;":"ℭ","cfr;":"𝔠","CHcy;":"Ч","chcy;":"ч","check;":"✓","checkmark;":"✓","Chi;":"Χ","chi;":"χ","cir;":"○","circ;":"ˆ","circeq;":"≗","circlearrowleft;":"↺","circlearrowright;":"↻","circledast;":"⊛","circledcirc;":"⊚","circleddash;":"⊝","CircleDot;":"⊙","circledR;":"®","circledS;":"Ⓢ","CircleMinus;":"⊖","CirclePlus;":"⊕","CircleTimes;":"⊗","cirE;":"⧃","cire;":"≗","cirfnint;":"⨐","cirmid;":"⫯","cirscir;":"⧂","ClockwiseContourIntegral;":"∲","CloseCurlyDoubleQuote;":"”","CloseCurlyQuote;":"’","clubs;":"♣","clubsuit;":"♣","Colon;":"∷","colon;":":","Colone;":"⩴","colone;":"≔","coloneq;":"≔","comma;":",","commat;":"@","comp;":"∁","compfn;":"∘","complement;":"∁","complexes;":"ℂ","cong;":"≅","congdot;":"⩭","Congruent;":"≡","Conint;":"∯","conint;":"∮","ContourIntegral;":"∮","Copf;":"ℂ","copf;":"𝕔","coprod;":"∐","Coproduct;":"∐","COPY;":"©",COPY:"©","copy;":"©",copy:"©","copysr;":"℗","CounterClockwiseContourIntegral;":"∳","crarr;":"↵","Cross;":"⨯","cross;":"✗","Cscr;":"𝒞","cscr;":"𝒸","csub;":"⫏","csube;":"⫑","csup;":"⫐","csupe;":"⫒","ctdot;":"⋯","cudarrl;":"⤸","cudarrr;":"⤵","cuepr;":"⋞","cuesc;":"⋟","cularr;":"↶","cularrp;":"⤽","Cup;":"⋓","cup;":"∪","cupbrcap;":"⩈","CupCap;":"≍","cupcap;":"⩆","cupcup;":"⩊","cupdot;":"⊍","cupor;":"⩅","cups;":"∪︀","curarr;":"↷","curarrm;":"⤼","curlyeqprec;":"⋞","curlyeqsucc;":"⋟","curlyvee;":"⋎","curlywedge;":"⋏","curren;":"¤",curren:"¤","curvearrowleft;":"↶","curvearrowright;":"↷","cuvee;":"⋎","cuwed;":"⋏","cwconint;":"∲","cwint;":"∱","cylcty;":"⌭","Dagger;":"‡","dagger;":"†","daleth;":"ℸ","Darr;":"↡","dArr;":"⇓","darr;":"↓","dash;":"‐","Dashv;":"⫤","dashv;":"⊣","dbkarow;":"⤏","dblac;":"˝","Dcaron;":"Ď","dcaron;":"ď","Dcy;":"Д","dcy;":"д","DD;":"ⅅ","dd;":"ⅆ","ddagger;":"‡","ddarr;":"⇊","DDotrahd;":"⤑","ddotseq;":"⩷","deg;":"°",deg:"°","Del;":"∇","Delta;":"Δ","delta;":"δ","demptyv;":"⦱","dfisht;":"⥿","Dfr;":"𝔇","dfr;":"𝔡","dHar;":"⥥","dharl;":"⇃","dharr;":"⇂","DiacriticalAcute;":"´","DiacriticalDot;":"˙","DiacriticalDoubleAcute;":"˝","DiacriticalGrave;":"`","DiacriticalTilde;":"˜","diam;":"⋄","Diamond;":"⋄","diamond;":"⋄","diamondsuit;":"♦","diams;":"♦","die;":"¨","DifferentialD;":"ⅆ","digamma;":"ϝ","disin;":"⋲","div;":"÷","divide;":"÷",divide:"÷","divideontimes;":"⋇","divonx;":"⋇","DJcy;":"Ђ","djcy;":"ђ","dlcorn;":"⌞","dlcrop;":"⌍","dollar;":"$","Dopf;":"𝔻","dopf;":"𝕕","Dot;":"¨","dot;":"˙","DotDot;":"⃜","doteq;":"≐","doteqdot;":"≑","DotEqual;":"≐","dotminus;":"∸","dotplus;":"∔","dotsquare;":"⊡","doublebarwedge;":"⌆","DoubleContourIntegral;":"∯","DoubleDot;":"¨","DoubleDownArrow;":"⇓","DoubleLeftArrow;":"⇐","DoubleLeftRightArrow;":"⇔","DoubleLeftTee;":"⫤","DoubleLongLeftArrow;":"⟸","DoubleLongLeftRightArrow;":"⟺","DoubleLongRightArrow;":"⟹","DoubleRightArrow;":"⇒","DoubleRightTee;":"⊨","DoubleUpArrow;":"⇑","DoubleUpDownArrow;":"⇕","DoubleVerticalBar;":"∥","DownArrow;":"↓","Downarrow;":"⇓","downarrow;":"↓","DownArrowBar;":"⤓","DownArrowUpArrow;":"⇵","DownBreve;":"̑","downdownarrows;":"⇊","downharpoonleft;":"⇃","downharpoonright;":"⇂","DownLeftRightVector;":"⥐","DownLeftTeeVector;":"⥞","DownLeftVector;":"↽","DownLeftVectorBar;":"⥖","DownRightTeeVector;":"⥟","DownRightVector;":"⇁","DownRightVectorBar;":"⥗","DownTee;":"⊤","DownTeeArrow;":"↧","drbkarow;":"⤐","drcorn;":"⌟","drcrop;":"⌌","Dscr;":"𝒟","dscr;":"𝒹","DScy;":"Ѕ","dscy;":"ѕ","dsol;":"⧶","Dstrok;":"Đ","dstrok;":"đ","dtdot;":"⋱","dtri;":"▿","dtrif;":"▾","duarr;":"⇵","duhar;":"⥯","dwangle;":"⦦","DZcy;":"Џ","dzcy;":"џ","dzigrarr;":"⟿","Eacute;":"É",Eacute:"É","eacute;":"é",eacute:"é","easter;":"⩮","Ecaron;":"Ě","ecaron;":"ě","ecir;":"≖","Ecirc;":"Ê",Ecirc:"Ê","ecirc;":"ê",ecirc:"ê","ecolon;":"≕","Ecy;":"Э","ecy;":"э","eDDot;":"⩷","Edot;":"Ė","eDot;":"≑","edot;":"ė","ee;":"ⅇ","efDot;":"≒","Efr;":"𝔈","efr;":"𝔢","eg;":"⪚","Egrave;":"È",Egrave:"È","egrave;":"è",egrave:"è","egs;":"⪖","egsdot;":"⪘","el;":"⪙","Element;":"∈","elinters;":"⏧","ell;":"ℓ","els;":"⪕","elsdot;":"⪗","Emacr;":"Ē","emacr;":"ē","empty;":"∅","emptyset;":"∅","EmptySmallSquare;":"◻","emptyv;":"∅","EmptyVerySmallSquare;":"▫","emsp;":" ","emsp13;":" ","emsp14;":" ","ENG;":"Ŋ","eng;":"ŋ","ensp;":" ","Eogon;":"Ę","eogon;":"ę","Eopf;":"𝔼","eopf;":"𝕖","epar;":"⋕","eparsl;":"⧣","eplus;":"⩱","epsi;":"ε","Epsilon;":"Ε","epsilon;":"ε","epsiv;":"ϵ","eqcirc;":"≖","eqcolon;":"≕","eqsim;":"≂","eqslantgtr;":"⪖","eqslantless;":"⪕","Equal;":"⩵","equals;":"=","EqualTilde;":"≂","equest;":"≟","Equilibrium;":"⇌","equiv;":"≡","equivDD;":"⩸","eqvparsl;":"⧥","erarr;":"⥱","erDot;":"≓","Escr;":"ℰ","escr;":"ℯ","esdot;":"≐","Esim;":"⩳","esim;":"≂","Eta;":"Η","eta;":"η","ETH;":"Ð",ETH:"Ð","eth;":"ð",eth:"ð","Euml;":"Ë",Euml:"Ë","euml;":"ë",euml:"ë","euro;":"€","excl;":"!","exist;":"∃","Exists;":"∃","expectation;":"ℰ","ExponentialE;":"ⅇ","exponentiale;":"ⅇ","fallingdotseq;":"≒","Fcy;":"Ф","fcy;":"ф","female;":"♀","ffilig;":"ffi","fflig;":"ff","ffllig;":"ffl","Ffr;":"𝔉","ffr;":"𝔣","filig;":"fi","FilledSmallSquare;":"◼","FilledVerySmallSquare;":"▪","fjlig;":"fj","flat;":"♭","fllig;":"fl","fltns;":"▱","fnof;":"ƒ","Fopf;":"𝔽","fopf;":"𝕗","ForAll;":"∀","forall;":"∀","fork;":"⋔","forkv;":"⫙","Fouriertrf;":"ℱ","fpartint;":"⨍","frac12;":"½",frac12:"½","frac13;":"⅓","frac14;":"¼",frac14:"¼","frac15;":"⅕","frac16;":"⅙","frac18;":"⅛","frac23;":"⅔","frac25;":"⅖","frac34;":"¾",frac34:"¾","frac35;":"⅗","frac38;":"⅜","frac45;":"⅘","frac56;":"⅚","frac58;":"⅝","frac78;":"⅞","frasl;":"⁄","frown;":"⌢","Fscr;":"ℱ","fscr;":"𝒻","gacute;":"ǵ","Gamma;":"Γ","gamma;":"γ","Gammad;":"Ϝ","gammad;":"ϝ","gap;":"⪆","Gbreve;":"Ğ","gbreve;":"ğ","Gcedil;":"Ģ","Gcirc;":"Ĝ","gcirc;":"ĝ","Gcy;":"Г","gcy;":"г","Gdot;":"Ġ","gdot;":"ġ","gE;":"≧","ge;":"≥","gEl;":"⪌","gel;":"⋛","geq;":"≥","geqq;":"≧","geqslant;":"⩾","ges;":"⩾","gescc;":"⪩","gesdot;":"⪀","gesdoto;":"⪂","gesdotol;":"⪄","gesl;":"⋛︀","gesles;":"⪔","Gfr;":"𝔊","gfr;":"𝔤","Gg;":"⋙","gg;":"≫","ggg;":"⋙","gimel;":"ℷ","GJcy;":"Ѓ","gjcy;":"ѓ","gl;":"≷","gla;":"⪥","glE;":"⪒","glj;":"⪤","gnap;":"⪊","gnapprox;":"⪊","gnE;":"≩","gne;":"⪈","gneq;":"⪈","gneqq;":"≩","gnsim;":"⋧","Gopf;":"𝔾","gopf;":"𝕘","grave;":"`","GreaterEqual;":"≥","GreaterEqualLess;":"⋛","GreaterFullEqual;":"≧","GreaterGreater;":"⪢","GreaterLess;":"≷","GreaterSlantEqual;":"⩾","GreaterTilde;":"≳","Gscr;":"𝒢","gscr;":"ℊ","gsim;":"≳","gsime;":"⪎","gsiml;":"⪐","GT;":">",GT:">","Gt;":"≫","gt;":">",gt:">","gtcc;":"⪧","gtcir;":"⩺","gtdot;":"⋗","gtlPar;":"⦕","gtquest;":"⩼","gtrapprox;":"⪆","gtrarr;":"⥸","gtrdot;":"⋗","gtreqless;":"⋛","gtreqqless;":"⪌","gtrless;":"≷","gtrsim;":"≳","gvertneqq;":"≩︀","gvnE;":"≩︀","Hacek;":"ˇ","hairsp;":" ","half;":"½","hamilt;":"ℋ","HARDcy;":"Ъ","hardcy;":"ъ","hArr;":"⇔","harr;":"↔","harrcir;":"⥈","harrw;":"↭","Hat;":"^","hbar;":"ℏ","Hcirc;":"Ĥ","hcirc;":"ĥ","hearts;":"♥","heartsuit;":"♥","hellip;":"…","hercon;":"⊹","Hfr;":"ℌ","hfr;":"𝔥","HilbertSpace;":"ℋ","hksearow;":"⤥","hkswarow;":"⤦","hoarr;":"⇿","homtht;":"∻","hookleftarrow;":"↩","hookrightarrow;":"↪","Hopf;":"ℍ","hopf;":"𝕙","horbar;":"―","HorizontalLine;":"─","Hscr;":"ℋ","hscr;":"𝒽","hslash;":"ℏ","Hstrok;":"Ħ","hstrok;":"ħ","HumpDownHump;":"≎","HumpEqual;":"≏","hybull;":"⁃","hyphen;":"‐","Iacute;":"Í",Iacute:"Í","iacute;":"í",iacute:"í","ic;":"","Icirc;":"Î",Icirc:"Î","icirc;":"î",icirc:"î","Icy;":"И","icy;":"и","Idot;":"İ","IEcy;":"Е","iecy;":"е","iexcl;":"¡",iexcl:"¡","iff;":"⇔","Ifr;":"ℑ","ifr;":"𝔦","Igrave;":"Ì",Igrave:"Ì","igrave;":"ì",igrave:"ì","ii;":"ⅈ","iiiint;":"⨌","iiint;":"∭","iinfin;":"⧜","iiota;":"℩","IJlig;":"IJ","ijlig;":"ij","Im;":"ℑ","Imacr;":"Ī","imacr;":"ī","image;":"ℑ","ImaginaryI;":"ⅈ","imagline;":"ℐ","imagpart;":"ℑ","imath;":"ı","imof;":"⊷","imped;":"Ƶ","Implies;":"⇒","in;":"∈","incare;":"℅","infin;":"∞","infintie;":"⧝","inodot;":"ı","Int;":"∬","int;":"∫","intcal;":"⊺","integers;":"ℤ","Integral;":"∫","intercal;":"⊺","Intersection;":"⋂","intlarhk;":"⨗","intprod;":"⨼","InvisibleComma;":"","InvisibleTimes;":"","IOcy;":"Ё","iocy;":"ё","Iogon;":"Į","iogon;":"į","Iopf;":"𝕀","iopf;":"𝕚","Iota;":"Ι","iota;":"ι","iprod;":"⨼","iquest;":"¿",iquest:"¿","Iscr;":"ℐ","iscr;":"𝒾","isin;":"∈","isindot;":"⋵","isinE;":"⋹","isins;":"⋴","isinsv;":"⋳","isinv;":"∈","it;":"","Itilde;":"Ĩ","itilde;":"ĩ","Iukcy;":"І","iukcy;":"і","Iuml;":"Ï",Iuml:"Ï","iuml;":"ï",iuml:"ï","Jcirc;":"Ĵ","jcirc;":"ĵ","Jcy;":"Й","jcy;":"й","Jfr;":"𝔍","jfr;":"𝔧","jmath;":"ȷ","Jopf;":"𝕁","jopf;":"𝕛","Jscr;":"𝒥","jscr;":"𝒿","Jsercy;":"Ј","jsercy;":"ј","Jukcy;":"Є","jukcy;":"є","Kappa;":"Κ","kappa;":"κ","kappav;":"ϰ","Kcedil;":"Ķ","kcedil;":"ķ","Kcy;":"К","kcy;":"к","Kfr;":"𝔎","kfr;":"𝔨","kgreen;":"ĸ","KHcy;":"Х","khcy;":"х","KJcy;":"Ќ","kjcy;":"ќ","Kopf;":"𝕂","kopf;":"𝕜","Kscr;":"𝒦","kscr;":"𝓀","lAarr;":"⇚","Lacute;":"Ĺ","lacute;":"ĺ","laemptyv;":"⦴","lagran;":"ℒ","Lambda;":"Λ","lambda;":"λ","Lang;":"⟪","lang;":"⟨","langd;":"⦑","langle;":"⟨","lap;":"⪅","Laplacetrf;":"ℒ","laquo;":"«",laquo:"«","Larr;":"↞","lArr;":"⇐","larr;":"←","larrb;":"⇤","larrbfs;":"⤟","larrfs;":"⤝","larrhk;":"↩","larrlp;":"↫","larrpl;":"⤹","larrsim;":"⥳","larrtl;":"↢","lat;":"⪫","lAtail;":"⤛","latail;":"⤙","late;":"⪭","lates;":"⪭︀","lBarr;":"⤎","lbarr;":"⤌","lbbrk;":"❲","lbrace;":"{","lbrack;":"[","lbrke;":"⦋","lbrksld;":"⦏","lbrkslu;":"⦍","Lcaron;":"Ľ","lcaron;":"ľ","Lcedil;":"Ļ","lcedil;":"ļ","lceil;":"⌈","lcub;":"{","Lcy;":"Л","lcy;":"л","ldca;":"⤶","ldquo;":"“","ldquor;":"„","ldrdhar;":"⥧","ldrushar;":"⥋","ldsh;":"↲","lE;":"≦","le;":"≤","LeftAngleBracket;":"⟨","LeftArrow;":"←","Leftarrow;":"⇐","leftarrow;":"←","LeftArrowBar;":"⇤","LeftArrowRightArrow;":"⇆","leftarrowtail;":"↢","LeftCeiling;":"⌈","LeftDoubleBracket;":"⟦","LeftDownTeeVector;":"⥡","LeftDownVector;":"⇃","LeftDownVectorBar;":"⥙","LeftFloor;":"⌊","leftharpoondown;":"↽","leftharpoonup;":"↼","leftleftarrows;":"⇇","LeftRightArrow;":"↔","Leftrightarrow;":"⇔","leftrightarrow;":"↔","leftrightarrows;":"⇆","leftrightharpoons;":"⇋","leftrightsquigarrow;":"↭","LeftRightVector;":"⥎","LeftTee;":"⊣","LeftTeeArrow;":"↤","LeftTeeVector;":"⥚","leftthreetimes;":"⋋","LeftTriangle;":"⊲","LeftTriangleBar;":"⧏","LeftTriangleEqual;":"⊴","LeftUpDownVector;":"⥑","LeftUpTeeVector;":"⥠","LeftUpVector;":"↿","LeftUpVectorBar;":"⥘","LeftVector;":"↼","LeftVectorBar;":"⥒","lEg;":"⪋","leg;":"⋚","leq;":"≤","leqq;":"≦","leqslant;":"⩽","les;":"⩽","lescc;":"⪨","lesdot;":"⩿","lesdoto;":"⪁","lesdotor;":"⪃","lesg;":"⋚︀","lesges;":"⪓","lessapprox;":"⪅","lessdot;":"⋖","lesseqgtr;":"⋚","lesseqqgtr;":"⪋","LessEqualGreater;":"⋚","LessFullEqual;":"≦","LessGreater;":"≶","lessgtr;":"≶","LessLess;":"⪡","lesssim;":"≲","LessSlantEqual;":"⩽","LessTilde;":"≲","lfisht;":"⥼","lfloor;":"⌊","Lfr;":"𝔏","lfr;":"𝔩","lg;":"≶","lgE;":"⪑","lHar;":"⥢","lhard;":"↽","lharu;":"↼","lharul;":"⥪","lhblk;":"▄","LJcy;":"Љ","ljcy;":"љ","Ll;":"⋘","ll;":"≪","llarr;":"⇇","llcorner;":"⌞","Lleftarrow;":"⇚","llhard;":"⥫","lltri;":"◺","Lmidot;":"Ŀ","lmidot;":"ŀ","lmoust;":"⎰","lmoustache;":"⎰","lnap;":"⪉","lnapprox;":"⪉","lnE;":"≨","lne;":"⪇","lneq;":"⪇","lneqq;":"≨","lnsim;":"⋦","loang;":"⟬","loarr;":"⇽","lobrk;":"⟦","LongLeftArrow;":"⟵","Longleftarrow;":"⟸","longleftarrow;":"⟵","LongLeftRightArrow;":"⟷","Longleftrightarrow;":"⟺","longleftrightarrow;":"⟷","longmapsto;":"⟼","LongRightArrow;":"⟶","Longrightarrow;":"⟹","longrightarrow;":"⟶","looparrowleft;":"↫","looparrowright;":"↬","lopar;":"⦅","Lopf;":"𝕃","lopf;":"𝕝","loplus;":"⨭","lotimes;":"⨴","lowast;":"∗","lowbar;":"_","LowerLeftArrow;":"↙","LowerRightArrow;":"↘","loz;":"◊","lozenge;":"◊","lozf;":"⧫","lpar;":"(","lparlt;":"⦓","lrarr;":"⇆","lrcorner;":"⌟","lrhar;":"⇋","lrhard;":"⥭","lrm;":"","lrtri;":"⊿","lsaquo;":"‹","Lscr;":"ℒ","lscr;":"𝓁","Lsh;":"↰","lsh;":"↰","lsim;":"≲","lsime;":"⪍","lsimg;":"⪏","lsqb;":"[","lsquo;":"‘","lsquor;":"‚","Lstrok;":"Ł","lstrok;":"ł","LT;":"<",LT:"<","Lt;":"≪","lt;":"<",lt:"<","ltcc;":"⪦","ltcir;":"⩹","ltdot;":"⋖","lthree;":"⋋","ltimes;":"⋉","ltlarr;":"⥶","ltquest;":"⩻","ltri;":"◃","ltrie;":"⊴","ltrif;":"◂","ltrPar;":"⦖","lurdshar;":"⥊","luruhar;":"⥦","lvertneqq;":"≨︀","lvnE;":"≨︀","macr;":"¯",macr:"¯","male;":"♂","malt;":"✠","maltese;":"✠","Map;":"⤅","map;":"↦","mapsto;":"↦","mapstodown;":"↧","mapstoleft;":"↤","mapstoup;":"↥","marker;":"▮","mcomma;":"⨩","Mcy;":"М","mcy;":"м","mdash;":"—","mDDot;":"∺","measuredangle;":"∡","MediumSpace;":" ","Mellintrf;":"ℳ","Mfr;":"𝔐","mfr;":"𝔪","mho;":"℧","micro;":"µ",micro:"µ","mid;":"∣","midast;":"*","midcir;":"⫰","middot;":"·",middot:"·","minus;":"−","minusb;":"⊟","minusd;":"∸","minusdu;":"⨪","MinusPlus;":"∓","mlcp;":"⫛","mldr;":"…","mnplus;":"∓","models;":"⊧","Mopf;":"𝕄","mopf;":"𝕞","mp;":"∓","Mscr;":"ℳ","mscr;":"𝓂","mstpos;":"∾","Mu;":"Μ","mu;":"μ","multimap;":"⊸","mumap;":"⊸","nabla;":"∇","Nacute;":"Ń","nacute;":"ń","nang;":"∠⃒","nap;":"≉","napE;":"⩰̸","napid;":"≋̸","napos;":"ʼn","napprox;":"≉","natur;":"♮","natural;":"♮","naturals;":"ℕ","nbsp;":" ",nbsp:" ","nbump;":"≎̸","nbumpe;":"≏̸","ncap;":"⩃","Ncaron;":"Ň","ncaron;":"ň","Ncedil;":"Ņ","ncedil;":"ņ","ncong;":"≇","ncongdot;":"⩭̸","ncup;":"⩂","Ncy;":"Н","ncy;":"н","ndash;":"–","ne;":"≠","nearhk;":"⤤","neArr;":"⇗","nearr;":"↗","nearrow;":"↗","nedot;":"≐̸","NegativeMediumSpace;":"","NegativeThickSpace;":"","NegativeThinSpace;":"","NegativeVeryThinSpace;":"","nequiv;":"≢","nesear;":"⤨","nesim;":"≂̸","NestedGreaterGreater;":"≫","NestedLessLess;":"≪","NewLine;":`
|
|
29
|
-
`,"nexist;":"∄","nexists;":"∄","Nfr;":"𝔑","nfr;":"𝔫","ngE;":"≧̸","nge;":"≱","ngeq;":"≱","ngeqq;":"≧̸","ngeqslant;":"⩾̸","nges;":"⩾̸","nGg;":"⋙̸","ngsim;":"≵","nGt;":"≫⃒","ngt;":"≯","ngtr;":"≯","nGtv;":"≫̸","nhArr;":"⇎","nharr;":"↮","nhpar;":"⫲","ni;":"∋","nis;":"⋼","nisd;":"⋺","niv;":"∋","NJcy;":"Њ","njcy;":"њ","nlArr;":"⇍","nlarr;":"↚","nldr;":"‥","nlE;":"≦̸","nle;":"≰","nLeftarrow;":"⇍","nleftarrow;":"↚","nLeftrightarrow;":"⇎","nleftrightarrow;":"↮","nleq;":"≰","nleqq;":"≦̸","nleqslant;":"⩽̸","nles;":"⩽̸","nless;":"≮","nLl;":"⋘̸","nlsim;":"≴","nLt;":"≪⃒","nlt;":"≮","nltri;":"⋪","nltrie;":"⋬","nLtv;":"≪̸","nmid;":"∤","NoBreak;":"","NonBreakingSpace;":" ","Nopf;":"ℕ","nopf;":"𝕟","Not;":"⫬","not;":"¬",not:"¬","NotCongruent;":"≢","NotCupCap;":"≭","NotDoubleVerticalBar;":"∦","NotElement;":"∉","NotEqual;":"≠","NotEqualTilde;":"≂̸","NotExists;":"∄","NotGreater;":"≯","NotGreaterEqual;":"≱","NotGreaterFullEqual;":"≧̸","NotGreaterGreater;":"≫̸","NotGreaterLess;":"≹","NotGreaterSlantEqual;":"⩾̸","NotGreaterTilde;":"≵","NotHumpDownHump;":"≎̸","NotHumpEqual;":"≏̸","notin;":"∉","notindot;":"⋵̸","notinE;":"⋹̸","notinva;":"∉","notinvb;":"⋷","notinvc;":"⋶","NotLeftTriangle;":"⋪","NotLeftTriangleBar;":"⧏̸","NotLeftTriangleEqual;":"⋬","NotLess;":"≮","NotLessEqual;":"≰","NotLessGreater;":"≸","NotLessLess;":"≪̸","NotLessSlantEqual;":"⩽̸","NotLessTilde;":"≴","NotNestedGreaterGreater;":"⪢̸","NotNestedLessLess;":"⪡̸","notni;":"∌","notniva;":"∌","notnivb;":"⋾","notnivc;":"⋽","NotPrecedes;":"⊀","NotPrecedesEqual;":"⪯̸","NotPrecedesSlantEqual;":"⋠","NotReverseElement;":"∌","NotRightTriangle;":"⋫","NotRightTriangleBar;":"⧐̸","NotRightTriangleEqual;":"⋭","NotSquareSubset;":"⊏̸","NotSquareSubsetEqual;":"⋢","NotSquareSuperset;":"⊐̸","NotSquareSupersetEqual;":"⋣","NotSubset;":"⊂⃒","NotSubsetEqual;":"⊈","NotSucceeds;":"⊁","NotSucceedsEqual;":"⪰̸","NotSucceedsSlantEqual;":"⋡","NotSucceedsTilde;":"≿̸","NotSuperset;":"⊃⃒","NotSupersetEqual;":"⊉","NotTilde;":"≁","NotTildeEqual;":"≄","NotTildeFullEqual;":"≇","NotTildeTilde;":"≉","NotVerticalBar;":"∤","npar;":"∦","nparallel;":"∦","nparsl;":"⫽⃥","npart;":"∂̸","npolint;":"⨔","npr;":"⊀","nprcue;":"⋠","npre;":"⪯̸","nprec;":"⊀","npreceq;":"⪯̸","nrArr;":"⇏","nrarr;":"↛","nrarrc;":"⤳̸","nrarrw;":"↝̸","nRightarrow;":"⇏","nrightarrow;":"↛","nrtri;":"⋫","nrtrie;":"⋭","nsc;":"⊁","nsccue;":"⋡","nsce;":"⪰̸","Nscr;":"𝒩","nscr;":"𝓃","nshortmid;":"∤","nshortparallel;":"∦","nsim;":"≁","nsime;":"≄","nsimeq;":"≄","nsmid;":"∤","nspar;":"∦","nsqsube;":"⋢","nsqsupe;":"⋣","nsub;":"⊄","nsubE;":"⫅̸","nsube;":"⊈","nsubset;":"⊂⃒","nsubseteq;":"⊈","nsubseteqq;":"⫅̸","nsucc;":"⊁","nsucceq;":"⪰̸","nsup;":"⊅","nsupE;":"⫆̸","nsupe;":"⊉","nsupset;":"⊃⃒","nsupseteq;":"⊉","nsupseteqq;":"⫆̸","ntgl;":"≹","Ntilde;":"Ñ",Ntilde:"Ñ","ntilde;":"ñ",ntilde:"ñ","ntlg;":"≸","ntriangleleft;":"⋪","ntrianglelefteq;":"⋬","ntriangleright;":"⋫","ntrianglerighteq;":"⋭","Nu;":"Ν","nu;":"ν","num;":"#","numero;":"№","numsp;":" ","nvap;":"≍⃒","nVDash;":"⊯","nVdash;":"⊮","nvDash;":"⊭","nvdash;":"⊬","nvge;":"≥⃒","nvgt;":">⃒","nvHarr;":"⤄","nvinfin;":"⧞","nvlArr;":"⤂","nvle;":"≤⃒","nvlt;":"<⃒","nvltrie;":"⊴⃒","nvrArr;":"⤃","nvrtrie;":"⊵⃒","nvsim;":"∼⃒","nwarhk;":"⤣","nwArr;":"⇖","nwarr;":"↖","nwarrow;":"↖","nwnear;":"⤧","Oacute;":"Ó",Oacute:"Ó","oacute;":"ó",oacute:"ó","oast;":"⊛","ocir;":"⊚","Ocirc;":"Ô",Ocirc:"Ô","ocirc;":"ô",ocirc:"ô","Ocy;":"О","ocy;":"о","odash;":"⊝","Odblac;":"Ő","odblac;":"ő","odiv;":"⨸","odot;":"⊙","odsold;":"⦼","OElig;":"Œ","oelig;":"œ","ofcir;":"⦿","Ofr;":"𝔒","ofr;":"𝔬","ogon;":"˛","Ograve;":"Ò",Ograve:"Ò","ograve;":"ò",ograve:"ò","ogt;":"⧁","ohbar;":"⦵","ohm;":"Ω","oint;":"∮","olarr;":"↺","olcir;":"⦾","olcross;":"⦻","oline;":"‾","olt;":"⧀","Omacr;":"Ō","omacr;":"ō","Omega;":"Ω","omega;":"ω","Omicron;":"Ο","omicron;":"ο","omid;":"⦶","ominus;":"⊖","Oopf;":"𝕆","oopf;":"𝕠","opar;":"⦷","OpenCurlyDoubleQuote;":"“","OpenCurlyQuote;":"‘","operp;":"⦹","oplus;":"⊕","Or;":"⩔","or;":"∨","orarr;":"↻","ord;":"⩝","order;":"ℴ","orderof;":"ℴ","ordf;":"ª",ordf:"ª","ordm;":"º",ordm:"º","origof;":"⊶","oror;":"⩖","orslope;":"⩗","orv;":"⩛","oS;":"Ⓢ","Oscr;":"𝒪","oscr;":"ℴ","Oslash;":"Ø",Oslash:"Ø","oslash;":"ø",oslash:"ø","osol;":"⊘","Otilde;":"Õ",Otilde:"Õ","otilde;":"õ",otilde:"õ","Otimes;":"⨷","otimes;":"⊗","otimesas;":"⨶","Ouml;":"Ö",Ouml:"Ö","ouml;":"ö",ouml:"ö","ovbar;":"⌽","OverBar;":"‾","OverBrace;":"⏞","OverBracket;":"⎴","OverParenthesis;":"⏜","par;":"∥","para;":"¶",para:"¶","parallel;":"∥","parsim;":"⫳","parsl;":"⫽","part;":"∂","PartialD;":"∂","Pcy;":"П","pcy;":"п","percnt;":"%","period;":".","permil;":"‰","perp;":"⊥","pertenk;":"‱","Pfr;":"𝔓","pfr;":"𝔭","Phi;":"Φ","phi;":"φ","phiv;":"ϕ","phmmat;":"ℳ","phone;":"☎","Pi;":"Π","pi;":"π","pitchfork;":"⋔","piv;":"ϖ","planck;":"ℏ","planckh;":"ℎ","plankv;":"ℏ","plus;":"+","plusacir;":"⨣","plusb;":"⊞","pluscir;":"⨢","plusdo;":"∔","plusdu;":"⨥","pluse;":"⩲","PlusMinus;":"±","plusmn;":"±",plusmn:"±","plussim;":"⨦","plustwo;":"⨧","pm;":"±","Poincareplane;":"ℌ","pointint;":"⨕","Popf;":"ℙ","popf;":"𝕡","pound;":"£",pound:"£","Pr;":"⪻","pr;":"≺","prap;":"⪷","prcue;":"≼","prE;":"⪳","pre;":"⪯","prec;":"≺","precapprox;":"⪷","preccurlyeq;":"≼","Precedes;":"≺","PrecedesEqual;":"⪯","PrecedesSlantEqual;":"≼","PrecedesTilde;":"≾","preceq;":"⪯","precnapprox;":"⪹","precneqq;":"⪵","precnsim;":"⋨","precsim;":"≾","Prime;":"″","prime;":"′","primes;":"ℙ","prnap;":"⪹","prnE;":"⪵","prnsim;":"⋨","prod;":"∏","Product;":"∏","profalar;":"⌮","profline;":"⌒","profsurf;":"⌓","prop;":"∝","Proportion;":"∷","Proportional;":"∝","propto;":"∝","prsim;":"≾","prurel;":"⊰","Pscr;":"𝒫","pscr;":"𝓅","Psi;":"Ψ","psi;":"ψ","puncsp;":" ","Qfr;":"𝔔","qfr;":"𝔮","qint;":"⨌","Qopf;":"ℚ","qopf;":"𝕢","qprime;":"⁗","Qscr;":"𝒬","qscr;":"𝓆","quaternions;":"ℍ","quatint;":"⨖","quest;":"?","questeq;":"≟","QUOT;":'"',QUOT:'"',"quot;":'"',quot:'"',"rAarr;":"⇛","race;":"∽̱","Racute;":"Ŕ","racute;":"ŕ","radic;":"√","raemptyv;":"⦳","Rang;":"⟫","rang;":"⟩","rangd;":"⦒","range;":"⦥","rangle;":"⟩","raquo;":"»",raquo:"»","Rarr;":"↠","rArr;":"⇒","rarr;":"→","rarrap;":"⥵","rarrb;":"⇥","rarrbfs;":"⤠","rarrc;":"⤳","rarrfs;":"⤞","rarrhk;":"↪","rarrlp;":"↬","rarrpl;":"⥅","rarrsim;":"⥴","Rarrtl;":"⤖","rarrtl;":"↣","rarrw;":"↝","rAtail;":"⤜","ratail;":"⤚","ratio;":"∶","rationals;":"ℚ","RBarr;":"⤐","rBarr;":"⤏","rbarr;":"⤍","rbbrk;":"❳","rbrace;":"}","rbrack;":"]","rbrke;":"⦌","rbrksld;":"⦎","rbrkslu;":"⦐","Rcaron;":"Ř","rcaron;":"ř","Rcedil;":"Ŗ","rcedil;":"ŗ","rceil;":"⌉","rcub;":"}","Rcy;":"Р","rcy;":"р","rdca;":"⤷","rdldhar;":"⥩","rdquo;":"”","rdquor;":"”","rdsh;":"↳","Re;":"ℜ","real;":"ℜ","realine;":"ℛ","realpart;":"ℜ","reals;":"ℝ","rect;":"▭","REG;":"®",REG:"®","reg;":"®",reg:"®","ReverseElement;":"∋","ReverseEquilibrium;":"⇋","ReverseUpEquilibrium;":"⥯","rfisht;":"⥽","rfloor;":"⌋","Rfr;":"ℜ","rfr;":"𝔯","rHar;":"⥤","rhard;":"⇁","rharu;":"⇀","rharul;":"⥬","Rho;":"Ρ","rho;":"ρ","rhov;":"ϱ","RightAngleBracket;":"⟩","RightArrow;":"→","Rightarrow;":"⇒","rightarrow;":"→","RightArrowBar;":"⇥","RightArrowLeftArrow;":"⇄","rightarrowtail;":"↣","RightCeiling;":"⌉","RightDoubleBracket;":"⟧","RightDownTeeVector;":"⥝","RightDownVector;":"⇂","RightDownVectorBar;":"⥕","RightFloor;":"⌋","rightharpoondown;":"⇁","rightharpoonup;":"⇀","rightleftarrows;":"⇄","rightleftharpoons;":"⇌","rightrightarrows;":"⇉","rightsquigarrow;":"↝","RightTee;":"⊢","RightTeeArrow;":"↦","RightTeeVector;":"⥛","rightthreetimes;":"⋌","RightTriangle;":"⊳","RightTriangleBar;":"⧐","RightTriangleEqual;":"⊵","RightUpDownVector;":"⥏","RightUpTeeVector;":"⥜","RightUpVector;":"↾","RightUpVectorBar;":"⥔","RightVector;":"⇀","RightVectorBar;":"⥓","ring;":"˚","risingdotseq;":"≓","rlarr;":"⇄","rlhar;":"⇌","rlm;":"","rmoust;":"⎱","rmoustache;":"⎱","rnmid;":"⫮","roang;":"⟭","roarr;":"⇾","robrk;":"⟧","ropar;":"⦆","Ropf;":"ℝ","ropf;":"𝕣","roplus;":"⨮","rotimes;":"⨵","RoundImplies;":"⥰","rpar;":")","rpargt;":"⦔","rppolint;":"⨒","rrarr;":"⇉","Rrightarrow;":"⇛","rsaquo;":"›","Rscr;":"ℛ","rscr;":"𝓇","Rsh;":"↱","rsh;":"↱","rsqb;":"]","rsquo;":"’","rsquor;":"’","rthree;":"⋌","rtimes;":"⋊","rtri;":"▹","rtrie;":"⊵","rtrif;":"▸","rtriltri;":"⧎","RuleDelayed;":"⧴","ruluhar;":"⥨","rx;":"℞","Sacute;":"Ś","sacute;":"ś","sbquo;":"‚","Sc;":"⪼","sc;":"≻","scap;":"⪸","Scaron;":"Š","scaron;":"š","sccue;":"≽","scE;":"⪴","sce;":"⪰","Scedil;":"Ş","scedil;":"ş","Scirc;":"Ŝ","scirc;":"ŝ","scnap;":"⪺","scnE;":"⪶","scnsim;":"⋩","scpolint;":"⨓","scsim;":"≿","Scy;":"С","scy;":"с","sdot;":"⋅","sdotb;":"⊡","sdote;":"⩦","searhk;":"⤥","seArr;":"⇘","searr;":"↘","searrow;":"↘","sect;":"§",sect:"§","semi;":";","seswar;":"⤩","setminus;":"∖","setmn;":"∖","sext;":"✶","Sfr;":"𝔖","sfr;":"𝔰","sfrown;":"⌢","sharp;":"♯","SHCHcy;":"Щ","shchcy;":"щ","SHcy;":"Ш","shcy;":"ш","ShortDownArrow;":"↓","ShortLeftArrow;":"←","shortmid;":"∣","shortparallel;":"∥","ShortRightArrow;":"→","ShortUpArrow;":"↑","shy;":"",shy:"","Sigma;":"Σ","sigma;":"σ","sigmaf;":"ς","sigmav;":"ς","sim;":"∼","simdot;":"⩪","sime;":"≃","simeq;":"≃","simg;":"⪞","simgE;":"⪠","siml;":"⪝","simlE;":"⪟","simne;":"≆","simplus;":"⨤","simrarr;":"⥲","slarr;":"←","SmallCircle;":"∘","smallsetminus;":"∖","smashp;":"⨳","smeparsl;":"⧤","smid;":"∣","smile;":"⌣","smt;":"⪪","smte;":"⪬","smtes;":"⪬︀","SOFTcy;":"Ь","softcy;":"ь","sol;":"/","solb;":"⧄","solbar;":"⌿","Sopf;":"𝕊","sopf;":"𝕤","spades;":"♠","spadesuit;":"♠","spar;":"∥","sqcap;":"⊓","sqcaps;":"⊓︀","sqcup;":"⊔","sqcups;":"⊔︀","Sqrt;":"√","sqsub;":"⊏","sqsube;":"⊑","sqsubset;":"⊏","sqsubseteq;":"⊑","sqsup;":"⊐","sqsupe;":"⊒","sqsupset;":"⊐","sqsupseteq;":"⊒","squ;":"□","Square;":"□","square;":"□","SquareIntersection;":"⊓","SquareSubset;":"⊏","SquareSubsetEqual;":"⊑","SquareSuperset;":"⊐","SquareSupersetEqual;":"⊒","SquareUnion;":"⊔","squarf;":"▪","squf;":"▪","srarr;":"→","Sscr;":"𝒮","sscr;":"𝓈","ssetmn;":"∖","ssmile;":"⌣","sstarf;":"⋆","Star;":"⋆","star;":"☆","starf;":"★","straightepsilon;":"ϵ","straightphi;":"ϕ","strns;":"¯","Sub;":"⋐","sub;":"⊂","subdot;":"⪽","subE;":"⫅","sube;":"⊆","subedot;":"⫃","submult;":"⫁","subnE;":"⫋","subne;":"⊊","subplus;":"⪿","subrarr;":"⥹","Subset;":"⋐","subset;":"⊂","subseteq;":"⊆","subseteqq;":"⫅","SubsetEqual;":"⊆","subsetneq;":"⊊","subsetneqq;":"⫋","subsim;":"⫇","subsub;":"⫕","subsup;":"⫓","succ;":"≻","succapprox;":"⪸","succcurlyeq;":"≽","Succeeds;":"≻","SucceedsEqual;":"⪰","SucceedsSlantEqual;":"≽","SucceedsTilde;":"≿","succeq;":"⪰","succnapprox;":"⪺","succneqq;":"⪶","succnsim;":"⋩","succsim;":"≿","SuchThat;":"∋","Sum;":"∑","sum;":"∑","sung;":"♪","Sup;":"⋑","sup;":"⊃","sup1;":"¹",sup1:"¹","sup2;":"²",sup2:"²","sup3;":"³",sup3:"³","supdot;":"⪾","supdsub;":"⫘","supE;":"⫆","supe;":"⊇","supedot;":"⫄","Superset;":"⊃","SupersetEqual;":"⊇","suphsol;":"⟉","suphsub;":"⫗","suplarr;":"⥻","supmult;":"⫂","supnE;":"⫌","supne;":"⊋","supplus;":"⫀","Supset;":"⋑","supset;":"⊃","supseteq;":"⊇","supseteqq;":"⫆","supsetneq;":"⊋","supsetneqq;":"⫌","supsim;":"⫈","supsub;":"⫔","supsup;":"⫖","swarhk;":"⤦","swArr;":"⇙","swarr;":"↙","swarrow;":"↙","swnwar;":"⤪","szlig;":"ß",szlig:"ß","Tab;":" ","target;":"⌖","Tau;":"Τ","tau;":"τ","tbrk;":"⎴","Tcaron;":"Ť","tcaron;":"ť","Tcedil;":"Ţ","tcedil;":"ţ","Tcy;":"Т","tcy;":"т","tdot;":"⃛","telrec;":"⌕","Tfr;":"𝔗","tfr;":"𝔱","there4;":"∴","Therefore;":"∴","therefore;":"∴","Theta;":"Θ","theta;":"θ","thetasym;":"ϑ","thetav;":"ϑ","thickapprox;":"≈","thicksim;":"∼","ThickSpace;":" ","thinsp;":" ","ThinSpace;":" ","thkap;":"≈","thksim;":"∼","THORN;":"Þ",THORN:"Þ","thorn;":"þ",thorn:"þ","Tilde;":"∼","tilde;":"˜","TildeEqual;":"≃","TildeFullEqual;":"≅","TildeTilde;":"≈","times;":"×",times:"×","timesb;":"⊠","timesbar;":"⨱","timesd;":"⨰","tint;":"∭","toea;":"⤨","top;":"⊤","topbot;":"⌶","topcir;":"⫱","Topf;":"𝕋","topf;":"𝕥","topfork;":"⫚","tosa;":"⤩","tprime;":"‴","TRADE;":"™","trade;":"™","triangle;":"▵","triangledown;":"▿","triangleleft;":"◃","trianglelefteq;":"⊴","triangleq;":"≜","triangleright;":"▹","trianglerighteq;":"⊵","tridot;":"◬","trie;":"≜","triminus;":"⨺","TripleDot;":"⃛","triplus;":"⨹","trisb;":"⧍","tritime;":"⨻","trpezium;":"⏢","Tscr;":"𝒯","tscr;":"𝓉","TScy;":"Ц","tscy;":"ц","TSHcy;":"Ћ","tshcy;":"ћ","Tstrok;":"Ŧ","tstrok;":"ŧ","twixt;":"≬","twoheadleftarrow;":"↞","twoheadrightarrow;":"↠","Uacute;":"Ú",Uacute:"Ú","uacute;":"ú",uacute:"ú","Uarr;":"↟","uArr;":"⇑","uarr;":"↑","Uarrocir;":"⥉","Ubrcy;":"Ў","ubrcy;":"ў","Ubreve;":"Ŭ","ubreve;":"ŭ","Ucirc;":"Û",Ucirc:"Û","ucirc;":"û",ucirc:"û","Ucy;":"У","ucy;":"у","udarr;":"⇅","Udblac;":"Ű","udblac;":"ű","udhar;":"⥮","ufisht;":"⥾","Ufr;":"𝔘","ufr;":"𝔲","Ugrave;":"Ù",Ugrave:"Ù","ugrave;":"ù",ugrave:"ù","uHar;":"⥣","uharl;":"↿","uharr;":"↾","uhblk;":"▀","ulcorn;":"⌜","ulcorner;":"⌜","ulcrop;":"⌏","ultri;":"◸","Umacr;":"Ū","umacr;":"ū","uml;":"¨",uml:"¨","UnderBar;":"_","UnderBrace;":"⏟","UnderBracket;":"⎵","UnderParenthesis;":"⏝","Union;":"⋃","UnionPlus;":"⊎","Uogon;":"Ų","uogon;":"ų","Uopf;":"𝕌","uopf;":"𝕦","UpArrow;":"↑","Uparrow;":"⇑","uparrow;":"↑","UpArrowBar;":"⤒","UpArrowDownArrow;":"⇅","UpDownArrow;":"↕","Updownarrow;":"⇕","updownarrow;":"↕","UpEquilibrium;":"⥮","upharpoonleft;":"↿","upharpoonright;":"↾","uplus;":"⊎","UpperLeftArrow;":"↖","UpperRightArrow;":"↗","Upsi;":"ϒ","upsi;":"υ","upsih;":"ϒ","Upsilon;":"Υ","upsilon;":"υ","UpTee;":"⊥","UpTeeArrow;":"↥","upuparrows;":"⇈","urcorn;":"⌝","urcorner;":"⌝","urcrop;":"⌎","Uring;":"Ů","uring;":"ů","urtri;":"◹","Uscr;":"𝒰","uscr;":"𝓊","utdot;":"⋰","Utilde;":"Ũ","utilde;":"ũ","utri;":"▵","utrif;":"▴","uuarr;":"⇈","Uuml;":"Ü",Uuml:"Ü","uuml;":"ü",uuml:"ü","uwangle;":"⦧","vangrt;":"⦜","varepsilon;":"ϵ","varkappa;":"ϰ","varnothing;":"∅","varphi;":"ϕ","varpi;":"ϖ","varpropto;":"∝","vArr;":"⇕","varr;":"↕","varrho;":"ϱ","varsigma;":"ς","varsubsetneq;":"⊊︀","varsubsetneqq;":"⫋︀","varsupsetneq;":"⊋︀","varsupsetneqq;":"⫌︀","vartheta;":"ϑ","vartriangleleft;":"⊲","vartriangleright;":"⊳","Vbar;":"⫫","vBar;":"⫨","vBarv;":"⫩","Vcy;":"В","vcy;":"в","VDash;":"⊫","Vdash;":"⊩","vDash;":"⊨","vdash;":"⊢","Vdashl;":"⫦","Vee;":"⋁","vee;":"∨","veebar;":"⊻","veeeq;":"≚","vellip;":"⋮","Verbar;":"‖","verbar;":"|","Vert;":"‖","vert;":"|","VerticalBar;":"∣","VerticalLine;":"|","VerticalSeparator;":"❘","VerticalTilde;":"≀","VeryThinSpace;":" ","Vfr;":"𝔙","vfr;":"𝔳","vltri;":"⊲","vnsub;":"⊂⃒","vnsup;":"⊃⃒","Vopf;":"𝕍","vopf;":"𝕧","vprop;":"∝","vrtri;":"⊳","Vscr;":"𝒱","vscr;":"𝓋","vsubnE;":"⫋︀","vsubne;":"⊊︀","vsupnE;":"⫌︀","vsupne;":"⊋︀","Vvdash;":"⊪","vzigzag;":"⦚","Wcirc;":"Ŵ","wcirc;":"ŵ","wedbar;":"⩟","Wedge;":"⋀","wedge;":"∧","wedgeq;":"≙","weierp;":"℘","Wfr;":"𝔚","wfr;":"𝔴","Wopf;":"𝕎","wopf;":"𝕨","wp;":"℘","wr;":"≀","wreath;":"≀","Wscr;":"𝒲","wscr;":"𝓌","xcap;":"⋂","xcirc;":"◯","xcup;":"⋃","xdtri;":"▽","Xfr;":"𝔛","xfr;":"𝔵","xhArr;":"⟺","xharr;":"⟷","Xi;":"Ξ","xi;":"ξ","xlArr;":"⟸","xlarr;":"⟵","xmap;":"⟼","xnis;":"⋻","xodot;":"⨀","Xopf;":"𝕏","xopf;":"𝕩","xoplus;":"⨁","xotime;":"⨂","xrArr;":"⟹","xrarr;":"⟶","Xscr;":"𝒳","xscr;":"𝓍","xsqcup;":"⨆","xuplus;":"⨄","xutri;":"△","xvee;":"⋁","xwedge;":"⋀","Yacute;":"Ý",Yacute:"Ý","yacute;":"ý",yacute:"ý","YAcy;":"Я","yacy;":"я","Ycirc;":"Ŷ","ycirc;":"ŷ","Ycy;":"Ы","ycy;":"ы","yen;":"¥",yen:"¥","Yfr;":"𝔜","yfr;":"𝔶","YIcy;":"Ї","yicy;":"ї","Yopf;":"𝕐","yopf;":"𝕪","Yscr;":"𝒴","yscr;":"𝓎","YUcy;":"Ю","yucy;":"ю","Yuml;":"Ÿ","yuml;":"ÿ",yuml:"ÿ","Zacute;":"Ź","zacute;":"ź","Zcaron;":"Ž","zcaron;":"ž","Zcy;":"З","zcy;":"з","Zdot;":"Ż","zdot;":"ż","zeetrf;":"ℨ","ZeroWidthSpace;":"","Zeta;":"Ζ","zeta;":"ζ","Zfr;":"ℨ","zfr;":"𝔷","ZHcy;":"Ж","zhcy;":"ж","zigrarr;":"⇝","Zopf;":"ℤ","zopf;":"𝕫","Zscr;":"𝒵","zscr;":"𝓏","zwj;":"","zwnj;":""};function Je(e,t){if(e.length<t.length)return!1;for(let n=0;n<t.length;n++)if(e[n]!==t[n])return!1;return!0}function Tc(e,t){const n=e.length-t.length;return n>0?e.lastIndexOf(t)===n:n===0?e===t:!1}function no(e,t){let n="";for(;t>0;)(t&1)===1&&(n+=e),e+=e,t=t>>>1;return n}const xc=97,kc=122,Sc=65,Ac=90,Lc=48,Cc=57;function Ot(e,t){const n=e.charCodeAt(t);return xc<=n&&n<=kc||Sc<=n&&n<=Ac||Lc<=n&&n<=Cc}function Tn(e){return typeof e<"u"}function Ec(e){if(e)return typeof e=="string"?{kind:"markdown",value:e}:{kind:"markdown",value:e.value}}class io{isApplicable(){return!0}constructor(t,n){this.id=t,this._tags=[],this._tagMap={},this._valueSetMap={},this._tags=n.tags||[],this._globalAttributes=n.globalAttributes||[],this._tags.forEach(i=>{this._tagMap[i.name.toLowerCase()]=i}),n.valueSets&&n.valueSets.forEach(i=>{this._valueSetMap[i.name]=i.values})}getId(){return this.id}provideTags(){return this._tags}provideAttributes(t){const n=[],i=s=>{n.push(s)},r=this._tagMap[t.toLowerCase()];return r&&r.attributes.forEach(i),this._globalAttributes.forEach(i),n}provideValues(t,n){const i=[];n=n.toLowerCase();const r=a=>{a.forEach(l=>{l.name.toLowerCase()===n&&(l.values&&l.values.forEach(o=>{i.push(o)}),l.valueSet&&this._valueSetMap[l.valueSet]&&this._valueSetMap[l.valueSet].forEach(o=>{i.push(o)}))})},s=this._tagMap[t.toLowerCase()];return s&&r(s.attributes),r(this._globalAttributes),i}}function nt(e,t={},n){const i={kind:n?"markdown":"plaintext",value:""};if(e.description&&t.documentation!==!1){const r=Ec(e.description);r&&(i.value+=r.value)}if(e.references&&e.references.length>0&&t.references!==!1&&(i.value.length&&(i.value+=`
|
|
28
|
+
`&&r++}i&&n.length>0&&e.push(n.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let n=this.getLineOffsets(),i=0,r=n.length;if(r===0)return se.create(0,e);for(;i<r;){let a=Math.floor((i+r)/2);n[a]>e?r=a:i=a+1}let s=i-1;return se.create(s,e-n[s])}offsetAt(e){let n=this.getLineOffsets();if(e.line>=n.length)return this._content.length;if(e.line<0)return 0;let i=n[e.line],r=e.line+1<n.length?n[e.line+1]:this._content.length;return Math.max(Math.min(i+e.character,r),i)}get lineCount(){return this.getLineOffsets().length}};var R;(function(t){const e=Object.prototype.toString;function n(f){return typeof f<"u"}t.defined=n;function i(f){return typeof f>"u"}t.undefined=i;function r(f){return f===!0||f===!1}t.boolean=r;function s(f){return e.call(f)==="[object String]"}t.string=s;function a(f){return e.call(f)==="[object Number]"}t.number=a;function l(f,w,p){return e.call(f)==="[object Number]"&&w<=f&&f<=p}t.numberRange=l;function o(f){return e.call(f)==="[object Number]"&&-2147483648<=f&&f<=2147483647}t.integer=o;function u(f){return e.call(f)==="[object Number]"&&0<=f&&f<=2147483647}t.uinteger=u;function c(f){return e.call(f)==="[object Function]"}t.func=c;function d(f){return f!==null&&typeof f=="object"}t.objectLiteral=d;function m(f,w){return Array.isArray(f)&&f.every(w)}t.typedArray=m})(R||(R={}));class Ft{constructor(e,n,i,r){this._uri=e,this._languageId=n,this._version=i,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){const n=this.offsetAt(e.start),i=this.offsetAt(e.end);return this._content.substring(n,i)}return this._content}update(e,n){for(let i of e)if(Ft.isIncremental(i)){const r=Ba(i.range),s=this.offsetAt(r.start),a=this.offsetAt(r.end);this._content=this._content.substring(0,s)+i.text+this._content.substring(a,this._content.length);const l=Math.max(r.start.line,0),o=Math.max(r.end.line,0);let u=this._lineOffsets;const c=Fa(i.text,!1,s);if(o-l===c.length)for(let m=0,f=c.length;m<f;m++)u[m+l+1]=c[m];else c.length<1e4?u.splice(l+1,o-l,...c):this._lineOffsets=u=u.slice(0,l+1).concat(c,u.slice(o+1));const d=i.text.length-(a-s);if(d!==0)for(let m=l+1+c.length,f=u.length;m<f;m++)u[m]=u[m]+d}else if(Ft.isFull(i))this._content=i.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received");this._version=n}getLineOffsets(){return this._lineOffsets===void 0&&(this._lineOffsets=Fa(this._content,!0)),this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let n=this.getLineOffsets(),i=0,r=n.length;if(r===0)return{line:0,character:e};for(;i<r;){let a=Math.floor((i+r)/2);n[a]>e?r=a:i=a+1}let s=i-1;return{line:s,character:e-n[s]}}offsetAt(e){let n=this.getLineOffsets();if(e.line>=n.length)return this._content.length;if(e.line<0)return 0;let i=n[e.line],r=e.line+1<n.length?n[e.line+1]:this._content.length;return Math.max(Math.min(i+e.character,r),i)}get lineCount(){return this.getLineOffsets().length}static isIncremental(e){let n=e;return n!=null&&typeof n.text=="string"&&n.range!==void 0&&(n.rangeLength===void 0||typeof n.rangeLength=="number")}static isFull(e){let n=e;return n!=null&&typeof n.text=="string"&&n.range===void 0&&n.rangeLength===void 0}}var Ei;(function(t){function e(r,s,a,l){return new Ft(r,s,a,l)}t.create=e;function n(r,s,a){if(r instanceof Ft)return r.update(s,a),r;throw new Error("TextDocument.update: document must be created by TextDocument.create")}t.update=n;function i(r,s){let a=r.getText(),l=Ri(s.map(ec),(c,d)=>{let m=c.range.start.line-d.range.start.line;return m===0?c.range.start.character-d.range.start.character:m}),o=0;const u=[];for(const c of l){let d=r.offsetAt(c.range.start);if(d<o)throw new Error("Overlapping edit");d>o&&u.push(a.substring(o,d)),c.newText.length&&u.push(c.newText),o=r.offsetAt(c.range.end)}return u.push(a.substr(o)),u.join("")}t.applyEdits=i})(Ei||(Ei={}));function Ri(t,e){if(t.length<=1)return t;const n=t.length/2|0,i=t.slice(0,n),r=t.slice(n);Ri(i,e),Ri(r,e);let s=0,a=0,l=0;for(;s<i.length&&a<r.length;)e(i[s],r[a])<=0?t[l++]=i[s++]:t[l++]=r[a++];for(;s<i.length;)t[l++]=i[s++];for(;a<r.length;)t[l++]=r[a++];return t}function Fa(t,e,n=0){const i=e?[n]:[];for(let r=0;r<t.length;r++){let s=t.charCodeAt(r);(s===13||s===10)&&(s===13&&r+1<t.length&&t.charCodeAt(r+1)===10&&r++,i.push(n+r+1))}return i}function Ba(t){const e=t.start,n=t.end;return e.line>n.line||e.line===n.line&&e.character>n.character?{start:n,end:e}:t}function ec(t){const e=Ba(t.range);return e!==t.range?{newText:t.newText,range:e}:t}var z;(function(t){t[t.StartCommentTag=0]="StartCommentTag",t[t.Comment=1]="Comment",t[t.EndCommentTag=2]="EndCommentTag",t[t.StartTagOpen=3]="StartTagOpen",t[t.StartTagClose=4]="StartTagClose",t[t.StartTagSelfClose=5]="StartTagSelfClose",t[t.StartTag=6]="StartTag",t[t.EndTagOpen=7]="EndTagOpen",t[t.EndTagClose=8]="EndTagClose",t[t.EndTag=9]="EndTag",t[t.DelimiterAssign=10]="DelimiterAssign",t[t.AttributeName=11]="AttributeName",t[t.AttributeValue=12]="AttributeValue",t[t.StartDoctypeTag=13]="StartDoctypeTag",t[t.Doctype=14]="Doctype",t[t.EndDoctypeTag=15]="EndDoctypeTag",t[t.Content=16]="Content",t[t.Whitespace=17]="Whitespace",t[t.Unknown=18]="Unknown",t[t.Script=19]="Script",t[t.Styles=20]="Styles",t[t.EOS=21]="EOS"})(z||(z={}));var V;(function(t){t[t.WithinContent=0]="WithinContent",t[t.AfterOpeningStartTag=1]="AfterOpeningStartTag",t[t.AfterOpeningEndTag=2]="AfterOpeningEndTag",t[t.WithinDoctype=3]="WithinDoctype",t[t.WithinTag=4]="WithinTag",t[t.WithinEndTag=5]="WithinEndTag",t[t.WithinComment=6]="WithinComment",t[t.WithinScriptContent=7]="WithinScriptContent",t[t.WithinStyleContent=8]="WithinStyleContent",t[t.AfterAttributeName=9]="AfterAttributeName",t[t.BeforeAttributeValue=10]="BeforeAttributeValue"})(V||(V={}));var qa;(function(t){t.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[qe.Markdown,qe.PlainText]}},hover:{contentFormat:[qe.Markdown,qe.PlainText]}}}})(qa||(qa={}));var Di;(function(t){t[t.Unknown=0]="Unknown",t[t.File=1]="File",t[t.Directory=2]="Directory",t[t.SymbolicLink=64]="SymbolicLink"})(Di||(Di={}));class tc{constructor(e,n){this.source=e,this.len=e.length,this.position=n}eos(){return this.len<=this.position}getSource(){return this.source}pos(){return this.position}goBackTo(e){this.position=e}goBack(e){this.position-=e}advance(e){this.position+=e}goToEnd(){this.position=this.source.length}nextChar(){return this.source.charCodeAt(this.position++)||0}peekChar(e=0){return this.source.charCodeAt(this.position+e)||0}advanceIfChar(e){return e===this.source.charCodeAt(this.position)?(this.position++,!0):!1}advanceIfChars(e){let n;if(this.position+e.length>this.source.length)return!1;for(n=0;n<e.length;n++)if(this.source.charCodeAt(this.position+n)!==e[n])return!1;return this.advance(n),!0}advanceIfRegExp(e){const i=this.source.substr(this.position).match(e);return i?(this.position=this.position+i.index+i[0].length,i[0]):""}advanceUntilRegExp(e){const i=this.source.substr(this.position).match(e);return i?(this.position=this.position+i.index,i[0]):(this.goToEnd(),"")}advanceUntilChar(e){for(;this.position<this.source.length;){if(this.source.charCodeAt(this.position)===e)return!0;this.advance(1)}return!1}advanceUntilChars(e){for(;this.position+e.length<=this.source.length;){let n=0;for(;n<e.length&&this.source.charCodeAt(this.position+n)===e[n];n++);if(n===e.length)return!0;this.advance(1)}return this.goToEnd(),!1}skipWhitespace(){return this.advanceWhileChar(n=>n===lc||n===uc||n===sc||n===oc||n===ac)>0}advanceWhileChar(e){const n=this.position;for(;this.position<this.len&&e(this.source.charCodeAt(this.position));)this.position++;return this.position-n}}const Oa=33,Tt=45,_n=60,Ne=62,Mi=47,nc=61,ic=34,rc=39,sc=10,ac=13,oc=12,lc=32,uc=9,cc={"text/x-handlebars-template":!0,"text/html":!0};function be(t,e=0,n=V.WithinContent,i=!1){const r=new tc(t,e);let s=n,a=0,l=z.Unknown,o,u,c,d,m;function f(){return r.advanceIfRegExp(/^[_:\w][_:\w-.\d]*/).toLowerCase()}function w(){return r.advanceIfRegExp(/^[^\s"'></=\x00-\x0F\x7F\x80-\x9F]*/).toLowerCase()}function p(y,L,I){return l=L,a=y,o=I,L}function x(){const y=r.pos(),L=s,I=T();return I!==z.EOS&&y===r.pos()&&!(i&&(I===z.StartTagClose||I===z.EndTagClose))?(console.warn("Scanner.scan has not advanced at offset "+y+", state before: "+L+" after: "+s),r.advance(1),p(y,z.Unknown)):I}function T(){const y=r.pos();if(r.eos())return p(y,z.EOS);let L;switch(s){case V.WithinComment:return r.advanceIfChars([Tt,Tt,Ne])?(s=V.WithinContent,p(y,z.EndCommentTag)):(r.advanceUntilChars([Tt,Tt,Ne]),p(y,z.Comment));case V.WithinDoctype:return r.advanceIfChar(Ne)?(s=V.WithinContent,p(y,z.EndDoctypeTag)):(r.advanceUntilChar(Ne),p(y,z.Doctype));case V.WithinContent:if(r.advanceIfChar(_n)){if(!r.eos()&&r.peekChar()===Oa){if(r.advanceIfChars([Oa,Tt,Tt]))return s=V.WithinComment,p(y,z.StartCommentTag);if(r.advanceIfRegExp(/^!doctype/i))return s=V.WithinDoctype,p(y,z.StartDoctypeTag)}return r.advanceIfChar(Mi)?(s=V.AfterOpeningEndTag,p(y,z.EndTagOpen)):(s=V.AfterOpeningStartTag,p(y,z.StartTagOpen))}return r.advanceUntilChar(_n),p(y,z.Content);case V.AfterOpeningEndTag:return f().length>0?(s=V.WithinEndTag,p(y,z.EndTag)):r.skipWhitespace()?p(y,z.Whitespace,Ae("Tag name must directly follow the open bracket.")):(s=V.WithinEndTag,r.advanceUntilChar(Ne),y<r.pos()?p(y,z.Unknown,Ae("End tag name expected.")):T());case V.WithinEndTag:if(r.skipWhitespace())return p(y,z.Whitespace);if(r.advanceIfChar(Ne))return s=V.WithinContent,p(y,z.EndTagClose);if(i&&r.peekChar()===_n)return s=V.WithinContent,p(y,z.EndTagClose,Ae("Closing bracket missing."));L=Ae("Closing bracket expected.");break;case V.AfterOpeningStartTag:return c=f(),m=void 0,d=void 0,c.length>0?(u=!1,s=V.WithinTag,p(y,z.StartTag)):r.skipWhitespace()?p(y,z.Whitespace,Ae("Tag name must directly follow the open bracket.")):(s=V.WithinTag,r.advanceUntilChar(Ne),y<r.pos()?p(y,z.Unknown,Ae("Start tag name expected.")):T());case V.WithinTag:return r.skipWhitespace()?(u=!0,p(y,z.Whitespace)):u&&(d=w(),d.length>0)?(s=V.AfterAttributeName,u=!1,p(y,z.AttributeName)):r.advanceIfChars([Mi,Ne])?(s=V.WithinContent,p(y,z.StartTagSelfClose)):r.advanceIfChar(Ne)?(c==="script"?m&&cc[m]?s=V.WithinContent:s=V.WithinScriptContent:c==="style"?s=V.WithinStyleContent:s=V.WithinContent,p(y,z.StartTagClose)):i&&r.peekChar()===_n?(s=V.WithinContent,p(y,z.StartTagClose,Ae("Closing bracket missing."))):(r.advance(1),p(y,z.Unknown,Ae("Unexpected character in tag.")));case V.AfterAttributeName:return r.skipWhitespace()?(u=!0,p(y,z.Whitespace)):r.advanceIfChar(nc)?(s=V.BeforeAttributeValue,p(y,z.DelimiterAssign)):(s=V.WithinTag,T());case V.BeforeAttributeValue:if(r.skipWhitespace())return p(y,z.Whitespace);let H=r.advanceIfRegExp(/^[^\s"'`=<>]+/);if(H.length>0&&(r.peekChar()===Ne&&r.peekChar(-1)===Mi&&(r.goBack(1),H=H.substring(0,H.length-1)),d==="type"&&(m=H),H.length>0))return s=V.WithinTag,u=!1,p(y,z.AttributeValue);const P=r.peekChar();return P===rc||P===ic?(r.advance(1),r.advanceUntilChar(P)&&r.advance(1),d==="type"&&(m=r.getSource().substring(y+1,r.pos()-1)),s=V.WithinTag,u=!1,p(y,z.AttributeValue)):(s=V.WithinTag,u=!1,T());case V.WithinScriptContent:let b=1;for(;!r.eos();){const g=r.advanceIfRegExp(/<!--|-->|<\/?script\s*\/?>?/i);if(g.length===0)return r.goToEnd(),p(y,z.Script);if(g==="<!--")b===1&&(b=2);else if(g==="-->")b=1;else if(g[1]!=="/")b===2&&(b=3);else if(b===3)b=2;else{r.goBack(g.length);break}}return s=V.WithinContent,y<r.pos()?p(y,z.Script):T();case V.WithinStyleContent:return r.advanceUntilRegExp(/<\/style/i),s=V.WithinContent,y<r.pos()?p(y,z.Styles):T()}return r.advance(1),s=V.WithinContent,p(y,z.Unknown,L)}return{scan:x,getTokenType:()=>l,getTokenOffset:()=>a,getTokenLength:()=>r.pos()-a,getTokenEnd:()=>r.pos(),getTokenText:()=>r.getSource().substring(a,r.pos()),getScannerState:()=>s,getTokenError:()=>o}}function Va(t,e){let n=0,i=t.length;if(i===0)return 0;for(;n<i;){let r=Math.floor((n+i)/2);e(t[r])?i=r:n=r+1}return n}function hc(t,e,n){let i=0,r=t.length-1;for(;i<=r;){const s=(i+r)/2|0,a=n(t[s],e);if(a<0)i=s+1;else if(a>0)r=s-1;else return s}return-(i+1)}class ja{get attributeNames(){return this.attributes?Object.keys(this.attributes):[]}constructor(e,n,i,r){this.start=e,this.end=n,this.children=i,this.parent=r,this.closed=!1}isSameTag(e){return this.tag===void 0?e===void 0:e!==void 0&&this.tag.length===e.length&&this.tag.toLowerCase()===e}get firstChild(){return this.children[0]}get lastChild(){return this.children.length?this.children[this.children.length-1]:void 0}findNodeBefore(e){const n=Va(this.children,i=>e<=i.start)-1;if(n>=0){const i=this.children[n];if(e>i.start){if(e<i.end)return i.findNodeBefore(e);const r=i.lastChild;return r&&r.end===i.end?i.findNodeBefore(e):i}}return this}findNodeAt(e){const n=Va(this.children,i=>e<=i.start)-1;if(n>=0){const i=this.children[n];if(e>i.start&&e<=i.end)return i.findNodeAt(e)}return this}}class dc{constructor(e){this.dataManager=e}parseDocument(e){return this.parse(e.getText(),this.dataManager.getVoidElements(e.languageId))}parse(e,n){const i=be(e,void 0,void 0,!0),r=new ja(0,e.length,[],void 0);let s=r,a=-1,l,o=null,u=i.scan();for(;u!==z.EOS;){switch(u){case z.StartTagOpen:const c=new ja(i.getTokenOffset(),e.length,[],s);s.children.push(c),s=c;break;case z.StartTag:s.tag=i.getTokenText();break;case z.StartTagClose:s.parent&&(s.end=i.getTokenEnd(),i.getTokenLength()?(s.startTagEnd=i.getTokenEnd(),s.tag&&this.dataManager.isVoidElement(s.tag,n)&&(s.closed=!0,s=s.parent)):s=s.parent);break;case z.StartTagSelfClose:s.parent&&(s.closed=!0,s.end=i.getTokenEnd(),s.startTagEnd=i.getTokenEnd(),s=s.parent);break;case z.EndTagOpen:a=i.getTokenOffset(),l=void 0;break;case z.EndTag:l=i.getTokenText().toLowerCase();break;case z.EndTagClose:let d=s;for(;!d.isSameTag(l)&&d.parent;)d=d.parent;if(d.parent){for(;s!==d;)s.end=a,s.closed=!1,s=s.parent;s.closed=!0,s.endTagStart=a,s.end=i.getTokenEnd(),s=s.parent}break;case z.AttributeName:{o=i.getTokenText();let m=s.attributes;m||(s.attributes=m={}),m[o]=null;break}case z.AttributeValue:{const m=i.getTokenText(),f=s.attributes;f&&o&&(f[o]=m,o=null);break}}u=i.scan()}for(;s.parent;)s.end=e.length,s.closed=!1,s=s.parent;return{roots:r.children,findNodeBefore:r.findNodeBefore.bind(r),findNodeAt:r.findNodeAt.bind(r)}}}const Bt={"Aacute;":"Á",Aacute:"Á","aacute;":"á",aacute:"á","Abreve;":"Ă","abreve;":"ă","ac;":"∾","acd;":"∿","acE;":"∾̳","Acirc;":"Â",Acirc:"Â","acirc;":"â",acirc:"â","acute;":"´",acute:"´","Acy;":"А","acy;":"а","AElig;":"Æ",AElig:"Æ","aelig;":"æ",aelig:"æ","af;":"","Afr;":"𝔄","afr;":"𝔞","Agrave;":"À",Agrave:"À","agrave;":"à",agrave:"à","alefsym;":"ℵ","aleph;":"ℵ","Alpha;":"Α","alpha;":"α","Amacr;":"Ā","amacr;":"ā","amalg;":"⨿","AMP;":"&",AMP:"&","amp;":"&",amp:"&","And;":"⩓","and;":"∧","andand;":"⩕","andd;":"⩜","andslope;":"⩘","andv;":"⩚","ang;":"∠","ange;":"⦤","angle;":"∠","angmsd;":"∡","angmsdaa;":"⦨","angmsdab;":"⦩","angmsdac;":"⦪","angmsdad;":"⦫","angmsdae;":"⦬","angmsdaf;":"⦭","angmsdag;":"⦮","angmsdah;":"⦯","angrt;":"∟","angrtvb;":"⊾","angrtvbd;":"⦝","angsph;":"∢","angst;":"Å","angzarr;":"⍼","Aogon;":"Ą","aogon;":"ą","Aopf;":"𝔸","aopf;":"𝕒","ap;":"≈","apacir;":"⩯","apE;":"⩰","ape;":"≊","apid;":"≋","apos;":"'","ApplyFunction;":"","approx;":"≈","approxeq;":"≊","Aring;":"Å",Aring:"Å","aring;":"å",aring:"å","Ascr;":"𝒜","ascr;":"𝒶","Assign;":"≔","ast;":"*","asymp;":"≈","asympeq;":"≍","Atilde;":"Ã",Atilde:"Ã","atilde;":"ã",atilde:"ã","Auml;":"Ä",Auml:"Ä","auml;":"ä",auml:"ä","awconint;":"∳","awint;":"⨑","backcong;":"≌","backepsilon;":"϶","backprime;":"‵","backsim;":"∽","backsimeq;":"⋍","Backslash;":"∖","Barv;":"⫧","barvee;":"⊽","Barwed;":"⌆","barwed;":"⌅","barwedge;":"⌅","bbrk;":"⎵","bbrktbrk;":"⎶","bcong;":"≌","Bcy;":"Б","bcy;":"б","bdquo;":"„","becaus;":"∵","Because;":"∵","because;":"∵","bemptyv;":"⦰","bepsi;":"϶","bernou;":"ℬ","Bernoullis;":"ℬ","Beta;":"Β","beta;":"β","beth;":"ℶ","between;":"≬","Bfr;":"𝔅","bfr;":"𝔟","bigcap;":"⋂","bigcirc;":"◯","bigcup;":"⋃","bigodot;":"⨀","bigoplus;":"⨁","bigotimes;":"⨂","bigsqcup;":"⨆","bigstar;":"★","bigtriangledown;":"▽","bigtriangleup;":"△","biguplus;":"⨄","bigvee;":"⋁","bigwedge;":"⋀","bkarow;":"⤍","blacklozenge;":"⧫","blacksquare;":"▪","blacktriangle;":"▴","blacktriangledown;":"▾","blacktriangleleft;":"◂","blacktriangleright;":"▸","blank;":"␣","blk12;":"▒","blk14;":"░","blk34;":"▓","block;":"█","bne;":"=⃥","bnequiv;":"≡⃥","bNot;":"⫭","bnot;":"⌐","Bopf;":"𝔹","bopf;":"𝕓","bot;":"⊥","bottom;":"⊥","bowtie;":"⋈","boxbox;":"⧉","boxDL;":"╗","boxDl;":"╖","boxdL;":"╕","boxdl;":"┐","boxDR;":"╔","boxDr;":"╓","boxdR;":"╒","boxdr;":"┌","boxH;":"═","boxh;":"─","boxHD;":"╦","boxHd;":"╤","boxhD;":"╥","boxhd;":"┬","boxHU;":"╩","boxHu;":"╧","boxhU;":"╨","boxhu;":"┴","boxminus;":"⊟","boxplus;":"⊞","boxtimes;":"⊠","boxUL;":"╝","boxUl;":"╜","boxuL;":"╛","boxul;":"┘","boxUR;":"╚","boxUr;":"╙","boxuR;":"╘","boxur;":"└","boxV;":"║","boxv;":"│","boxVH;":"╬","boxVh;":"╫","boxvH;":"╪","boxvh;":"┼","boxVL;":"╣","boxVl;":"╢","boxvL;":"╡","boxvl;":"┤","boxVR;":"╠","boxVr;":"╟","boxvR;":"╞","boxvr;":"├","bprime;":"‵","Breve;":"˘","breve;":"˘","brvbar;":"¦",brvbar:"¦","Bscr;":"ℬ","bscr;":"𝒷","bsemi;":"⁏","bsim;":"∽","bsime;":"⋍","bsol;":"\\","bsolb;":"⧅","bsolhsub;":"⟈","bull;":"•","bullet;":"•","bump;":"≎","bumpE;":"⪮","bumpe;":"≏","Bumpeq;":"≎","bumpeq;":"≏","Cacute;":"Ć","cacute;":"ć","Cap;":"⋒","cap;":"∩","capand;":"⩄","capbrcup;":"⩉","capcap;":"⩋","capcup;":"⩇","capdot;":"⩀","CapitalDifferentialD;":"ⅅ","caps;":"∩︀","caret;":"⁁","caron;":"ˇ","Cayleys;":"ℭ","ccaps;":"⩍","Ccaron;":"Č","ccaron;":"č","Ccedil;":"Ç",Ccedil:"Ç","ccedil;":"ç",ccedil:"ç","Ccirc;":"Ĉ","ccirc;":"ĉ","Cconint;":"∰","ccups;":"⩌","ccupssm;":"⩐","Cdot;":"Ċ","cdot;":"ċ","cedil;":"¸",cedil:"¸","Cedilla;":"¸","cemptyv;":"⦲","cent;":"¢",cent:"¢","CenterDot;":"·","centerdot;":"·","Cfr;":"ℭ","cfr;":"𝔠","CHcy;":"Ч","chcy;":"ч","check;":"✓","checkmark;":"✓","Chi;":"Χ","chi;":"χ","cir;":"○","circ;":"ˆ","circeq;":"≗","circlearrowleft;":"↺","circlearrowright;":"↻","circledast;":"⊛","circledcirc;":"⊚","circleddash;":"⊝","CircleDot;":"⊙","circledR;":"®","circledS;":"Ⓢ","CircleMinus;":"⊖","CirclePlus;":"⊕","CircleTimes;":"⊗","cirE;":"⧃","cire;":"≗","cirfnint;":"⨐","cirmid;":"⫯","cirscir;":"⧂","ClockwiseContourIntegral;":"∲","CloseCurlyDoubleQuote;":"”","CloseCurlyQuote;":"’","clubs;":"♣","clubsuit;":"♣","Colon;":"∷","colon;":":","Colone;":"⩴","colone;":"≔","coloneq;":"≔","comma;":",","commat;":"@","comp;":"∁","compfn;":"∘","complement;":"∁","complexes;":"ℂ","cong;":"≅","congdot;":"⩭","Congruent;":"≡","Conint;":"∯","conint;":"∮","ContourIntegral;":"∮","Copf;":"ℂ","copf;":"𝕔","coprod;":"∐","Coproduct;":"∐","COPY;":"©",COPY:"©","copy;":"©",copy:"©","copysr;":"℗","CounterClockwiseContourIntegral;":"∳","crarr;":"↵","Cross;":"⨯","cross;":"✗","Cscr;":"𝒞","cscr;":"𝒸","csub;":"⫏","csube;":"⫑","csup;":"⫐","csupe;":"⫒","ctdot;":"⋯","cudarrl;":"⤸","cudarrr;":"⤵","cuepr;":"⋞","cuesc;":"⋟","cularr;":"↶","cularrp;":"⤽","Cup;":"⋓","cup;":"∪","cupbrcap;":"⩈","CupCap;":"≍","cupcap;":"⩆","cupcup;":"⩊","cupdot;":"⊍","cupor;":"⩅","cups;":"∪︀","curarr;":"↷","curarrm;":"⤼","curlyeqprec;":"⋞","curlyeqsucc;":"⋟","curlyvee;":"⋎","curlywedge;":"⋏","curren;":"¤",curren:"¤","curvearrowleft;":"↶","curvearrowright;":"↷","cuvee;":"⋎","cuwed;":"⋏","cwconint;":"∲","cwint;":"∱","cylcty;":"⌭","Dagger;":"‡","dagger;":"†","daleth;":"ℸ","Darr;":"↡","dArr;":"⇓","darr;":"↓","dash;":"‐","Dashv;":"⫤","dashv;":"⊣","dbkarow;":"⤏","dblac;":"˝","Dcaron;":"Ď","dcaron;":"ď","Dcy;":"Д","dcy;":"д","DD;":"ⅅ","dd;":"ⅆ","ddagger;":"‡","ddarr;":"⇊","DDotrahd;":"⤑","ddotseq;":"⩷","deg;":"°",deg:"°","Del;":"∇","Delta;":"Δ","delta;":"δ","demptyv;":"⦱","dfisht;":"⥿","Dfr;":"𝔇","dfr;":"𝔡","dHar;":"⥥","dharl;":"⇃","dharr;":"⇂","DiacriticalAcute;":"´","DiacriticalDot;":"˙","DiacriticalDoubleAcute;":"˝","DiacriticalGrave;":"`","DiacriticalTilde;":"˜","diam;":"⋄","Diamond;":"⋄","diamond;":"⋄","diamondsuit;":"♦","diams;":"♦","die;":"¨","DifferentialD;":"ⅆ","digamma;":"ϝ","disin;":"⋲","div;":"÷","divide;":"÷",divide:"÷","divideontimes;":"⋇","divonx;":"⋇","DJcy;":"Ђ","djcy;":"ђ","dlcorn;":"⌞","dlcrop;":"⌍","dollar;":"$","Dopf;":"𝔻","dopf;":"𝕕","Dot;":"¨","dot;":"˙","DotDot;":"⃜","doteq;":"≐","doteqdot;":"≑","DotEqual;":"≐","dotminus;":"∸","dotplus;":"∔","dotsquare;":"⊡","doublebarwedge;":"⌆","DoubleContourIntegral;":"∯","DoubleDot;":"¨","DoubleDownArrow;":"⇓","DoubleLeftArrow;":"⇐","DoubleLeftRightArrow;":"⇔","DoubleLeftTee;":"⫤","DoubleLongLeftArrow;":"⟸","DoubleLongLeftRightArrow;":"⟺","DoubleLongRightArrow;":"⟹","DoubleRightArrow;":"⇒","DoubleRightTee;":"⊨","DoubleUpArrow;":"⇑","DoubleUpDownArrow;":"⇕","DoubleVerticalBar;":"∥","DownArrow;":"↓","Downarrow;":"⇓","downarrow;":"↓","DownArrowBar;":"⤓","DownArrowUpArrow;":"⇵","DownBreve;":"̑","downdownarrows;":"⇊","downharpoonleft;":"⇃","downharpoonright;":"⇂","DownLeftRightVector;":"⥐","DownLeftTeeVector;":"⥞","DownLeftVector;":"↽","DownLeftVectorBar;":"⥖","DownRightTeeVector;":"⥟","DownRightVector;":"⇁","DownRightVectorBar;":"⥗","DownTee;":"⊤","DownTeeArrow;":"↧","drbkarow;":"⤐","drcorn;":"⌟","drcrop;":"⌌","Dscr;":"𝒟","dscr;":"𝒹","DScy;":"Ѕ","dscy;":"ѕ","dsol;":"⧶","Dstrok;":"Đ","dstrok;":"đ","dtdot;":"⋱","dtri;":"▿","dtrif;":"▾","duarr;":"⇵","duhar;":"⥯","dwangle;":"⦦","DZcy;":"Џ","dzcy;":"џ","dzigrarr;":"⟿","Eacute;":"É",Eacute:"É","eacute;":"é",eacute:"é","easter;":"⩮","Ecaron;":"Ě","ecaron;":"ě","ecir;":"≖","Ecirc;":"Ê",Ecirc:"Ê","ecirc;":"ê",ecirc:"ê","ecolon;":"≕","Ecy;":"Э","ecy;":"э","eDDot;":"⩷","Edot;":"Ė","eDot;":"≑","edot;":"ė","ee;":"ⅇ","efDot;":"≒","Efr;":"𝔈","efr;":"𝔢","eg;":"⪚","Egrave;":"È",Egrave:"È","egrave;":"è",egrave:"è","egs;":"⪖","egsdot;":"⪘","el;":"⪙","Element;":"∈","elinters;":"⏧","ell;":"ℓ","els;":"⪕","elsdot;":"⪗","Emacr;":"Ē","emacr;":"ē","empty;":"∅","emptyset;":"∅","EmptySmallSquare;":"◻","emptyv;":"∅","EmptyVerySmallSquare;":"▫","emsp;":" ","emsp13;":" ","emsp14;":" ","ENG;":"Ŋ","eng;":"ŋ","ensp;":" ","Eogon;":"Ę","eogon;":"ę","Eopf;":"𝔼","eopf;":"𝕖","epar;":"⋕","eparsl;":"⧣","eplus;":"⩱","epsi;":"ε","Epsilon;":"Ε","epsilon;":"ε","epsiv;":"ϵ","eqcirc;":"≖","eqcolon;":"≕","eqsim;":"≂","eqslantgtr;":"⪖","eqslantless;":"⪕","Equal;":"⩵","equals;":"=","EqualTilde;":"≂","equest;":"≟","Equilibrium;":"⇌","equiv;":"≡","equivDD;":"⩸","eqvparsl;":"⧥","erarr;":"⥱","erDot;":"≓","Escr;":"ℰ","escr;":"ℯ","esdot;":"≐","Esim;":"⩳","esim;":"≂","Eta;":"Η","eta;":"η","ETH;":"Ð",ETH:"Ð","eth;":"ð",eth:"ð","Euml;":"Ë",Euml:"Ë","euml;":"ë",euml:"ë","euro;":"€","excl;":"!","exist;":"∃","Exists;":"∃","expectation;":"ℰ","ExponentialE;":"ⅇ","exponentiale;":"ⅇ","fallingdotseq;":"≒","Fcy;":"Ф","fcy;":"ф","female;":"♀","ffilig;":"ffi","fflig;":"ff","ffllig;":"ffl","Ffr;":"𝔉","ffr;":"𝔣","filig;":"fi","FilledSmallSquare;":"◼","FilledVerySmallSquare;":"▪","fjlig;":"fj","flat;":"♭","fllig;":"fl","fltns;":"▱","fnof;":"ƒ","Fopf;":"𝔽","fopf;":"𝕗","ForAll;":"∀","forall;":"∀","fork;":"⋔","forkv;":"⫙","Fouriertrf;":"ℱ","fpartint;":"⨍","frac12;":"½",frac12:"½","frac13;":"⅓","frac14;":"¼",frac14:"¼","frac15;":"⅕","frac16;":"⅙","frac18;":"⅛","frac23;":"⅔","frac25;":"⅖","frac34;":"¾",frac34:"¾","frac35;":"⅗","frac38;":"⅜","frac45;":"⅘","frac56;":"⅚","frac58;":"⅝","frac78;":"⅞","frasl;":"⁄","frown;":"⌢","Fscr;":"ℱ","fscr;":"𝒻","gacute;":"ǵ","Gamma;":"Γ","gamma;":"γ","Gammad;":"Ϝ","gammad;":"ϝ","gap;":"⪆","Gbreve;":"Ğ","gbreve;":"ğ","Gcedil;":"Ģ","Gcirc;":"Ĝ","gcirc;":"ĝ","Gcy;":"Г","gcy;":"г","Gdot;":"Ġ","gdot;":"ġ","gE;":"≧","ge;":"≥","gEl;":"⪌","gel;":"⋛","geq;":"≥","geqq;":"≧","geqslant;":"⩾","ges;":"⩾","gescc;":"⪩","gesdot;":"⪀","gesdoto;":"⪂","gesdotol;":"⪄","gesl;":"⋛︀","gesles;":"⪔","Gfr;":"𝔊","gfr;":"𝔤","Gg;":"⋙","gg;":"≫","ggg;":"⋙","gimel;":"ℷ","GJcy;":"Ѓ","gjcy;":"ѓ","gl;":"≷","gla;":"⪥","glE;":"⪒","glj;":"⪤","gnap;":"⪊","gnapprox;":"⪊","gnE;":"≩","gne;":"⪈","gneq;":"⪈","gneqq;":"≩","gnsim;":"⋧","Gopf;":"𝔾","gopf;":"𝕘","grave;":"`","GreaterEqual;":"≥","GreaterEqualLess;":"⋛","GreaterFullEqual;":"≧","GreaterGreater;":"⪢","GreaterLess;":"≷","GreaterSlantEqual;":"⩾","GreaterTilde;":"≳","Gscr;":"𝒢","gscr;":"ℊ","gsim;":"≳","gsime;":"⪎","gsiml;":"⪐","GT;":">",GT:">","Gt;":"≫","gt;":">",gt:">","gtcc;":"⪧","gtcir;":"⩺","gtdot;":"⋗","gtlPar;":"⦕","gtquest;":"⩼","gtrapprox;":"⪆","gtrarr;":"⥸","gtrdot;":"⋗","gtreqless;":"⋛","gtreqqless;":"⪌","gtrless;":"≷","gtrsim;":"≳","gvertneqq;":"≩︀","gvnE;":"≩︀","Hacek;":"ˇ","hairsp;":" ","half;":"½","hamilt;":"ℋ","HARDcy;":"Ъ","hardcy;":"ъ","hArr;":"⇔","harr;":"↔","harrcir;":"⥈","harrw;":"↭","Hat;":"^","hbar;":"ℏ","Hcirc;":"Ĥ","hcirc;":"ĥ","hearts;":"♥","heartsuit;":"♥","hellip;":"…","hercon;":"⊹","Hfr;":"ℌ","hfr;":"𝔥","HilbertSpace;":"ℋ","hksearow;":"⤥","hkswarow;":"⤦","hoarr;":"⇿","homtht;":"∻","hookleftarrow;":"↩","hookrightarrow;":"↪","Hopf;":"ℍ","hopf;":"𝕙","horbar;":"―","HorizontalLine;":"─","Hscr;":"ℋ","hscr;":"𝒽","hslash;":"ℏ","Hstrok;":"Ħ","hstrok;":"ħ","HumpDownHump;":"≎","HumpEqual;":"≏","hybull;":"⁃","hyphen;":"‐","Iacute;":"Í",Iacute:"Í","iacute;":"í",iacute:"í","ic;":"","Icirc;":"Î",Icirc:"Î","icirc;":"î",icirc:"î","Icy;":"И","icy;":"и","Idot;":"İ","IEcy;":"Е","iecy;":"е","iexcl;":"¡",iexcl:"¡","iff;":"⇔","Ifr;":"ℑ","ifr;":"𝔦","Igrave;":"Ì",Igrave:"Ì","igrave;":"ì",igrave:"ì","ii;":"ⅈ","iiiint;":"⨌","iiint;":"∭","iinfin;":"⧜","iiota;":"℩","IJlig;":"IJ","ijlig;":"ij","Im;":"ℑ","Imacr;":"Ī","imacr;":"ī","image;":"ℑ","ImaginaryI;":"ⅈ","imagline;":"ℐ","imagpart;":"ℑ","imath;":"ı","imof;":"⊷","imped;":"Ƶ","Implies;":"⇒","in;":"∈","incare;":"℅","infin;":"∞","infintie;":"⧝","inodot;":"ı","Int;":"∬","int;":"∫","intcal;":"⊺","integers;":"ℤ","Integral;":"∫","intercal;":"⊺","Intersection;":"⋂","intlarhk;":"⨗","intprod;":"⨼","InvisibleComma;":"","InvisibleTimes;":"","IOcy;":"Ё","iocy;":"ё","Iogon;":"Į","iogon;":"į","Iopf;":"𝕀","iopf;":"𝕚","Iota;":"Ι","iota;":"ι","iprod;":"⨼","iquest;":"¿",iquest:"¿","Iscr;":"ℐ","iscr;":"𝒾","isin;":"∈","isindot;":"⋵","isinE;":"⋹","isins;":"⋴","isinsv;":"⋳","isinv;":"∈","it;":"","Itilde;":"Ĩ","itilde;":"ĩ","Iukcy;":"І","iukcy;":"і","Iuml;":"Ï",Iuml:"Ï","iuml;":"ï",iuml:"ï","Jcirc;":"Ĵ","jcirc;":"ĵ","Jcy;":"Й","jcy;":"й","Jfr;":"𝔍","jfr;":"𝔧","jmath;":"ȷ","Jopf;":"𝕁","jopf;":"𝕛","Jscr;":"𝒥","jscr;":"𝒿","Jsercy;":"Ј","jsercy;":"ј","Jukcy;":"Є","jukcy;":"є","Kappa;":"Κ","kappa;":"κ","kappav;":"ϰ","Kcedil;":"Ķ","kcedil;":"ķ","Kcy;":"К","kcy;":"к","Kfr;":"𝔎","kfr;":"𝔨","kgreen;":"ĸ","KHcy;":"Х","khcy;":"х","KJcy;":"Ќ","kjcy;":"ќ","Kopf;":"𝕂","kopf;":"𝕜","Kscr;":"𝒦","kscr;":"𝓀","lAarr;":"⇚","Lacute;":"Ĺ","lacute;":"ĺ","laemptyv;":"⦴","lagran;":"ℒ","Lambda;":"Λ","lambda;":"λ","Lang;":"⟪","lang;":"⟨","langd;":"⦑","langle;":"⟨","lap;":"⪅","Laplacetrf;":"ℒ","laquo;":"«",laquo:"«","Larr;":"↞","lArr;":"⇐","larr;":"←","larrb;":"⇤","larrbfs;":"⤟","larrfs;":"⤝","larrhk;":"↩","larrlp;":"↫","larrpl;":"⤹","larrsim;":"⥳","larrtl;":"↢","lat;":"⪫","lAtail;":"⤛","latail;":"⤙","late;":"⪭","lates;":"⪭︀","lBarr;":"⤎","lbarr;":"⤌","lbbrk;":"❲","lbrace;":"{","lbrack;":"[","lbrke;":"⦋","lbrksld;":"⦏","lbrkslu;":"⦍","Lcaron;":"Ľ","lcaron;":"ľ","Lcedil;":"Ļ","lcedil;":"ļ","lceil;":"⌈","lcub;":"{","Lcy;":"Л","lcy;":"л","ldca;":"⤶","ldquo;":"“","ldquor;":"„","ldrdhar;":"⥧","ldrushar;":"⥋","ldsh;":"↲","lE;":"≦","le;":"≤","LeftAngleBracket;":"⟨","LeftArrow;":"←","Leftarrow;":"⇐","leftarrow;":"←","LeftArrowBar;":"⇤","LeftArrowRightArrow;":"⇆","leftarrowtail;":"↢","LeftCeiling;":"⌈","LeftDoubleBracket;":"⟦","LeftDownTeeVector;":"⥡","LeftDownVector;":"⇃","LeftDownVectorBar;":"⥙","LeftFloor;":"⌊","leftharpoondown;":"↽","leftharpoonup;":"↼","leftleftarrows;":"⇇","LeftRightArrow;":"↔","Leftrightarrow;":"⇔","leftrightarrow;":"↔","leftrightarrows;":"⇆","leftrightharpoons;":"⇋","leftrightsquigarrow;":"↭","LeftRightVector;":"⥎","LeftTee;":"⊣","LeftTeeArrow;":"↤","LeftTeeVector;":"⥚","leftthreetimes;":"⋋","LeftTriangle;":"⊲","LeftTriangleBar;":"⧏","LeftTriangleEqual;":"⊴","LeftUpDownVector;":"⥑","LeftUpTeeVector;":"⥠","LeftUpVector;":"↿","LeftUpVectorBar;":"⥘","LeftVector;":"↼","LeftVectorBar;":"⥒","lEg;":"⪋","leg;":"⋚","leq;":"≤","leqq;":"≦","leqslant;":"⩽","les;":"⩽","lescc;":"⪨","lesdot;":"⩿","lesdoto;":"⪁","lesdotor;":"⪃","lesg;":"⋚︀","lesges;":"⪓","lessapprox;":"⪅","lessdot;":"⋖","lesseqgtr;":"⋚","lesseqqgtr;":"⪋","LessEqualGreater;":"⋚","LessFullEqual;":"≦","LessGreater;":"≶","lessgtr;":"≶","LessLess;":"⪡","lesssim;":"≲","LessSlantEqual;":"⩽","LessTilde;":"≲","lfisht;":"⥼","lfloor;":"⌊","Lfr;":"𝔏","lfr;":"𝔩","lg;":"≶","lgE;":"⪑","lHar;":"⥢","lhard;":"↽","lharu;":"↼","lharul;":"⥪","lhblk;":"▄","LJcy;":"Љ","ljcy;":"љ","Ll;":"⋘","ll;":"≪","llarr;":"⇇","llcorner;":"⌞","Lleftarrow;":"⇚","llhard;":"⥫","lltri;":"◺","Lmidot;":"Ŀ","lmidot;":"ŀ","lmoust;":"⎰","lmoustache;":"⎰","lnap;":"⪉","lnapprox;":"⪉","lnE;":"≨","lne;":"⪇","lneq;":"⪇","lneqq;":"≨","lnsim;":"⋦","loang;":"⟬","loarr;":"⇽","lobrk;":"⟦","LongLeftArrow;":"⟵","Longleftarrow;":"⟸","longleftarrow;":"⟵","LongLeftRightArrow;":"⟷","Longleftrightarrow;":"⟺","longleftrightarrow;":"⟷","longmapsto;":"⟼","LongRightArrow;":"⟶","Longrightarrow;":"⟹","longrightarrow;":"⟶","looparrowleft;":"↫","looparrowright;":"↬","lopar;":"⦅","Lopf;":"𝕃","lopf;":"𝕝","loplus;":"⨭","lotimes;":"⨴","lowast;":"∗","lowbar;":"_","LowerLeftArrow;":"↙","LowerRightArrow;":"↘","loz;":"◊","lozenge;":"◊","lozf;":"⧫","lpar;":"(","lparlt;":"⦓","lrarr;":"⇆","lrcorner;":"⌟","lrhar;":"⇋","lrhard;":"⥭","lrm;":"","lrtri;":"⊿","lsaquo;":"‹","Lscr;":"ℒ","lscr;":"𝓁","Lsh;":"↰","lsh;":"↰","lsim;":"≲","lsime;":"⪍","lsimg;":"⪏","lsqb;":"[","lsquo;":"‘","lsquor;":"‚","Lstrok;":"Ł","lstrok;":"ł","LT;":"<",LT:"<","Lt;":"≪","lt;":"<",lt:"<","ltcc;":"⪦","ltcir;":"⩹","ltdot;":"⋖","lthree;":"⋋","ltimes;":"⋉","ltlarr;":"⥶","ltquest;":"⩻","ltri;":"◃","ltrie;":"⊴","ltrif;":"◂","ltrPar;":"⦖","lurdshar;":"⥊","luruhar;":"⥦","lvertneqq;":"≨︀","lvnE;":"≨︀","macr;":"¯",macr:"¯","male;":"♂","malt;":"✠","maltese;":"✠","Map;":"⤅","map;":"↦","mapsto;":"↦","mapstodown;":"↧","mapstoleft;":"↤","mapstoup;":"↥","marker;":"▮","mcomma;":"⨩","Mcy;":"М","mcy;":"м","mdash;":"—","mDDot;":"∺","measuredangle;":"∡","MediumSpace;":" ","Mellintrf;":"ℳ","Mfr;":"𝔐","mfr;":"𝔪","mho;":"℧","micro;":"µ",micro:"µ","mid;":"∣","midast;":"*","midcir;":"⫰","middot;":"·",middot:"·","minus;":"−","minusb;":"⊟","minusd;":"∸","minusdu;":"⨪","MinusPlus;":"∓","mlcp;":"⫛","mldr;":"…","mnplus;":"∓","models;":"⊧","Mopf;":"𝕄","mopf;":"𝕞","mp;":"∓","Mscr;":"ℳ","mscr;":"𝓂","mstpos;":"∾","Mu;":"Μ","mu;":"μ","multimap;":"⊸","mumap;":"⊸","nabla;":"∇","Nacute;":"Ń","nacute;":"ń","nang;":"∠⃒","nap;":"≉","napE;":"⩰̸","napid;":"≋̸","napos;":"ʼn","napprox;":"≉","natur;":"♮","natural;":"♮","naturals;":"ℕ","nbsp;":" ",nbsp:" ","nbump;":"≎̸","nbumpe;":"≏̸","ncap;":"⩃","Ncaron;":"Ň","ncaron;":"ň","Ncedil;":"Ņ","ncedil;":"ņ","ncong;":"≇","ncongdot;":"⩭̸","ncup;":"⩂","Ncy;":"Н","ncy;":"н","ndash;":"–","ne;":"≠","nearhk;":"⤤","neArr;":"⇗","nearr;":"↗","nearrow;":"↗","nedot;":"≐̸","NegativeMediumSpace;":"","NegativeThickSpace;":"","NegativeThinSpace;":"","NegativeVeryThinSpace;":"","nequiv;":"≢","nesear;":"⤨","nesim;":"≂̸","NestedGreaterGreater;":"≫","NestedLessLess;":"≪","NewLine;":`
|
|
29
|
+
`,"nexist;":"∄","nexists;":"∄","Nfr;":"𝔑","nfr;":"𝔫","ngE;":"≧̸","nge;":"≱","ngeq;":"≱","ngeqq;":"≧̸","ngeqslant;":"⩾̸","nges;":"⩾̸","nGg;":"⋙̸","ngsim;":"≵","nGt;":"≫⃒","ngt;":"≯","ngtr;":"≯","nGtv;":"≫̸","nhArr;":"⇎","nharr;":"↮","nhpar;":"⫲","ni;":"∋","nis;":"⋼","nisd;":"⋺","niv;":"∋","NJcy;":"Њ","njcy;":"њ","nlArr;":"⇍","nlarr;":"↚","nldr;":"‥","nlE;":"≦̸","nle;":"≰","nLeftarrow;":"⇍","nleftarrow;":"↚","nLeftrightarrow;":"⇎","nleftrightarrow;":"↮","nleq;":"≰","nleqq;":"≦̸","nleqslant;":"⩽̸","nles;":"⩽̸","nless;":"≮","nLl;":"⋘̸","nlsim;":"≴","nLt;":"≪⃒","nlt;":"≮","nltri;":"⋪","nltrie;":"⋬","nLtv;":"≪̸","nmid;":"∤","NoBreak;":"","NonBreakingSpace;":" ","Nopf;":"ℕ","nopf;":"𝕟","Not;":"⫬","not;":"¬",not:"¬","NotCongruent;":"≢","NotCupCap;":"≭","NotDoubleVerticalBar;":"∦","NotElement;":"∉","NotEqual;":"≠","NotEqualTilde;":"≂̸","NotExists;":"∄","NotGreater;":"≯","NotGreaterEqual;":"≱","NotGreaterFullEqual;":"≧̸","NotGreaterGreater;":"≫̸","NotGreaterLess;":"≹","NotGreaterSlantEqual;":"⩾̸","NotGreaterTilde;":"≵","NotHumpDownHump;":"≎̸","NotHumpEqual;":"≏̸","notin;":"∉","notindot;":"⋵̸","notinE;":"⋹̸","notinva;":"∉","notinvb;":"⋷","notinvc;":"⋶","NotLeftTriangle;":"⋪","NotLeftTriangleBar;":"⧏̸","NotLeftTriangleEqual;":"⋬","NotLess;":"≮","NotLessEqual;":"≰","NotLessGreater;":"≸","NotLessLess;":"≪̸","NotLessSlantEqual;":"⩽̸","NotLessTilde;":"≴","NotNestedGreaterGreater;":"⪢̸","NotNestedLessLess;":"⪡̸","notni;":"∌","notniva;":"∌","notnivb;":"⋾","notnivc;":"⋽","NotPrecedes;":"⊀","NotPrecedesEqual;":"⪯̸","NotPrecedesSlantEqual;":"⋠","NotReverseElement;":"∌","NotRightTriangle;":"⋫","NotRightTriangleBar;":"⧐̸","NotRightTriangleEqual;":"⋭","NotSquareSubset;":"⊏̸","NotSquareSubsetEqual;":"⋢","NotSquareSuperset;":"⊐̸","NotSquareSupersetEqual;":"⋣","NotSubset;":"⊂⃒","NotSubsetEqual;":"⊈","NotSucceeds;":"⊁","NotSucceedsEqual;":"⪰̸","NotSucceedsSlantEqual;":"⋡","NotSucceedsTilde;":"≿̸","NotSuperset;":"⊃⃒","NotSupersetEqual;":"⊉","NotTilde;":"≁","NotTildeEqual;":"≄","NotTildeFullEqual;":"≇","NotTildeTilde;":"≉","NotVerticalBar;":"∤","npar;":"∦","nparallel;":"∦","nparsl;":"⫽⃥","npart;":"∂̸","npolint;":"⨔","npr;":"⊀","nprcue;":"⋠","npre;":"⪯̸","nprec;":"⊀","npreceq;":"⪯̸","nrArr;":"⇏","nrarr;":"↛","nrarrc;":"⤳̸","nrarrw;":"↝̸","nRightarrow;":"⇏","nrightarrow;":"↛","nrtri;":"⋫","nrtrie;":"⋭","nsc;":"⊁","nsccue;":"⋡","nsce;":"⪰̸","Nscr;":"𝒩","nscr;":"𝓃","nshortmid;":"∤","nshortparallel;":"∦","nsim;":"≁","nsime;":"≄","nsimeq;":"≄","nsmid;":"∤","nspar;":"∦","nsqsube;":"⋢","nsqsupe;":"⋣","nsub;":"⊄","nsubE;":"⫅̸","nsube;":"⊈","nsubset;":"⊂⃒","nsubseteq;":"⊈","nsubseteqq;":"⫅̸","nsucc;":"⊁","nsucceq;":"⪰̸","nsup;":"⊅","nsupE;":"⫆̸","nsupe;":"⊉","nsupset;":"⊃⃒","nsupseteq;":"⊉","nsupseteqq;":"⫆̸","ntgl;":"≹","Ntilde;":"Ñ",Ntilde:"Ñ","ntilde;":"ñ",ntilde:"ñ","ntlg;":"≸","ntriangleleft;":"⋪","ntrianglelefteq;":"⋬","ntriangleright;":"⋫","ntrianglerighteq;":"⋭","Nu;":"Ν","nu;":"ν","num;":"#","numero;":"№","numsp;":" ","nvap;":"≍⃒","nVDash;":"⊯","nVdash;":"⊮","nvDash;":"⊭","nvdash;":"⊬","nvge;":"≥⃒","nvgt;":">⃒","nvHarr;":"⤄","nvinfin;":"⧞","nvlArr;":"⤂","nvle;":"≤⃒","nvlt;":"<⃒","nvltrie;":"⊴⃒","nvrArr;":"⤃","nvrtrie;":"⊵⃒","nvsim;":"∼⃒","nwarhk;":"⤣","nwArr;":"⇖","nwarr;":"↖","nwarrow;":"↖","nwnear;":"⤧","Oacute;":"Ó",Oacute:"Ó","oacute;":"ó",oacute:"ó","oast;":"⊛","ocir;":"⊚","Ocirc;":"Ô",Ocirc:"Ô","ocirc;":"ô",ocirc:"ô","Ocy;":"О","ocy;":"о","odash;":"⊝","Odblac;":"Ő","odblac;":"ő","odiv;":"⨸","odot;":"⊙","odsold;":"⦼","OElig;":"Œ","oelig;":"œ","ofcir;":"⦿","Ofr;":"𝔒","ofr;":"𝔬","ogon;":"˛","Ograve;":"Ò",Ograve:"Ò","ograve;":"ò",ograve:"ò","ogt;":"⧁","ohbar;":"⦵","ohm;":"Ω","oint;":"∮","olarr;":"↺","olcir;":"⦾","olcross;":"⦻","oline;":"‾","olt;":"⧀","Omacr;":"Ō","omacr;":"ō","Omega;":"Ω","omega;":"ω","Omicron;":"Ο","omicron;":"ο","omid;":"⦶","ominus;":"⊖","Oopf;":"𝕆","oopf;":"𝕠","opar;":"⦷","OpenCurlyDoubleQuote;":"“","OpenCurlyQuote;":"‘","operp;":"⦹","oplus;":"⊕","Or;":"⩔","or;":"∨","orarr;":"↻","ord;":"⩝","order;":"ℴ","orderof;":"ℴ","ordf;":"ª",ordf:"ª","ordm;":"º",ordm:"º","origof;":"⊶","oror;":"⩖","orslope;":"⩗","orv;":"⩛","oS;":"Ⓢ","Oscr;":"𝒪","oscr;":"ℴ","Oslash;":"Ø",Oslash:"Ø","oslash;":"ø",oslash:"ø","osol;":"⊘","Otilde;":"Õ",Otilde:"Õ","otilde;":"õ",otilde:"õ","Otimes;":"⨷","otimes;":"⊗","otimesas;":"⨶","Ouml;":"Ö",Ouml:"Ö","ouml;":"ö",ouml:"ö","ovbar;":"⌽","OverBar;":"‾","OverBrace;":"⏞","OverBracket;":"⎴","OverParenthesis;":"⏜","par;":"∥","para;":"¶",para:"¶","parallel;":"∥","parsim;":"⫳","parsl;":"⫽","part;":"∂","PartialD;":"∂","Pcy;":"П","pcy;":"п","percnt;":"%","period;":".","permil;":"‰","perp;":"⊥","pertenk;":"‱","Pfr;":"𝔓","pfr;":"𝔭","Phi;":"Φ","phi;":"φ","phiv;":"ϕ","phmmat;":"ℳ","phone;":"☎","Pi;":"Π","pi;":"π","pitchfork;":"⋔","piv;":"ϖ","planck;":"ℏ","planckh;":"ℎ","plankv;":"ℏ","plus;":"+","plusacir;":"⨣","plusb;":"⊞","pluscir;":"⨢","plusdo;":"∔","plusdu;":"⨥","pluse;":"⩲","PlusMinus;":"±","plusmn;":"±",plusmn:"±","plussim;":"⨦","plustwo;":"⨧","pm;":"±","Poincareplane;":"ℌ","pointint;":"⨕","Popf;":"ℙ","popf;":"𝕡","pound;":"£",pound:"£","Pr;":"⪻","pr;":"≺","prap;":"⪷","prcue;":"≼","prE;":"⪳","pre;":"⪯","prec;":"≺","precapprox;":"⪷","preccurlyeq;":"≼","Precedes;":"≺","PrecedesEqual;":"⪯","PrecedesSlantEqual;":"≼","PrecedesTilde;":"≾","preceq;":"⪯","precnapprox;":"⪹","precneqq;":"⪵","precnsim;":"⋨","precsim;":"≾","Prime;":"″","prime;":"′","primes;":"ℙ","prnap;":"⪹","prnE;":"⪵","prnsim;":"⋨","prod;":"∏","Product;":"∏","profalar;":"⌮","profline;":"⌒","profsurf;":"⌓","prop;":"∝","Proportion;":"∷","Proportional;":"∝","propto;":"∝","prsim;":"≾","prurel;":"⊰","Pscr;":"𝒫","pscr;":"𝓅","Psi;":"Ψ","psi;":"ψ","puncsp;":" ","Qfr;":"𝔔","qfr;":"𝔮","qint;":"⨌","Qopf;":"ℚ","qopf;":"𝕢","qprime;":"⁗","Qscr;":"𝒬","qscr;":"𝓆","quaternions;":"ℍ","quatint;":"⨖","quest;":"?","questeq;":"≟","QUOT;":'"',QUOT:'"',"quot;":'"',quot:'"',"rAarr;":"⇛","race;":"∽̱","Racute;":"Ŕ","racute;":"ŕ","radic;":"√","raemptyv;":"⦳","Rang;":"⟫","rang;":"⟩","rangd;":"⦒","range;":"⦥","rangle;":"⟩","raquo;":"»",raquo:"»","Rarr;":"↠","rArr;":"⇒","rarr;":"→","rarrap;":"⥵","rarrb;":"⇥","rarrbfs;":"⤠","rarrc;":"⤳","rarrfs;":"⤞","rarrhk;":"↪","rarrlp;":"↬","rarrpl;":"⥅","rarrsim;":"⥴","Rarrtl;":"⤖","rarrtl;":"↣","rarrw;":"↝","rAtail;":"⤜","ratail;":"⤚","ratio;":"∶","rationals;":"ℚ","RBarr;":"⤐","rBarr;":"⤏","rbarr;":"⤍","rbbrk;":"❳","rbrace;":"}","rbrack;":"]","rbrke;":"⦌","rbrksld;":"⦎","rbrkslu;":"⦐","Rcaron;":"Ř","rcaron;":"ř","Rcedil;":"Ŗ","rcedil;":"ŗ","rceil;":"⌉","rcub;":"}","Rcy;":"Р","rcy;":"р","rdca;":"⤷","rdldhar;":"⥩","rdquo;":"”","rdquor;":"”","rdsh;":"↳","Re;":"ℜ","real;":"ℜ","realine;":"ℛ","realpart;":"ℜ","reals;":"ℝ","rect;":"▭","REG;":"®",REG:"®","reg;":"®",reg:"®","ReverseElement;":"∋","ReverseEquilibrium;":"⇋","ReverseUpEquilibrium;":"⥯","rfisht;":"⥽","rfloor;":"⌋","Rfr;":"ℜ","rfr;":"𝔯","rHar;":"⥤","rhard;":"⇁","rharu;":"⇀","rharul;":"⥬","Rho;":"Ρ","rho;":"ρ","rhov;":"ϱ","RightAngleBracket;":"⟩","RightArrow;":"→","Rightarrow;":"⇒","rightarrow;":"→","RightArrowBar;":"⇥","RightArrowLeftArrow;":"⇄","rightarrowtail;":"↣","RightCeiling;":"⌉","RightDoubleBracket;":"⟧","RightDownTeeVector;":"⥝","RightDownVector;":"⇂","RightDownVectorBar;":"⥕","RightFloor;":"⌋","rightharpoondown;":"⇁","rightharpoonup;":"⇀","rightleftarrows;":"⇄","rightleftharpoons;":"⇌","rightrightarrows;":"⇉","rightsquigarrow;":"↝","RightTee;":"⊢","RightTeeArrow;":"↦","RightTeeVector;":"⥛","rightthreetimes;":"⋌","RightTriangle;":"⊳","RightTriangleBar;":"⧐","RightTriangleEqual;":"⊵","RightUpDownVector;":"⥏","RightUpTeeVector;":"⥜","RightUpVector;":"↾","RightUpVectorBar;":"⥔","RightVector;":"⇀","RightVectorBar;":"⥓","ring;":"˚","risingdotseq;":"≓","rlarr;":"⇄","rlhar;":"⇌","rlm;":"","rmoust;":"⎱","rmoustache;":"⎱","rnmid;":"⫮","roang;":"⟭","roarr;":"⇾","robrk;":"⟧","ropar;":"⦆","Ropf;":"ℝ","ropf;":"𝕣","roplus;":"⨮","rotimes;":"⨵","RoundImplies;":"⥰","rpar;":")","rpargt;":"⦔","rppolint;":"⨒","rrarr;":"⇉","Rrightarrow;":"⇛","rsaquo;":"›","Rscr;":"ℛ","rscr;":"𝓇","Rsh;":"↱","rsh;":"↱","rsqb;":"]","rsquo;":"’","rsquor;":"’","rthree;":"⋌","rtimes;":"⋊","rtri;":"▹","rtrie;":"⊵","rtrif;":"▸","rtriltri;":"⧎","RuleDelayed;":"⧴","ruluhar;":"⥨","rx;":"℞","Sacute;":"Ś","sacute;":"ś","sbquo;":"‚","Sc;":"⪼","sc;":"≻","scap;":"⪸","Scaron;":"Š","scaron;":"š","sccue;":"≽","scE;":"⪴","sce;":"⪰","Scedil;":"Ş","scedil;":"ş","Scirc;":"Ŝ","scirc;":"ŝ","scnap;":"⪺","scnE;":"⪶","scnsim;":"⋩","scpolint;":"⨓","scsim;":"≿","Scy;":"С","scy;":"с","sdot;":"⋅","sdotb;":"⊡","sdote;":"⩦","searhk;":"⤥","seArr;":"⇘","searr;":"↘","searrow;":"↘","sect;":"§",sect:"§","semi;":";","seswar;":"⤩","setminus;":"∖","setmn;":"∖","sext;":"✶","Sfr;":"𝔖","sfr;":"𝔰","sfrown;":"⌢","sharp;":"♯","SHCHcy;":"Щ","shchcy;":"щ","SHcy;":"Ш","shcy;":"ш","ShortDownArrow;":"↓","ShortLeftArrow;":"←","shortmid;":"∣","shortparallel;":"∥","ShortRightArrow;":"→","ShortUpArrow;":"↑","shy;":"",shy:"","Sigma;":"Σ","sigma;":"σ","sigmaf;":"ς","sigmav;":"ς","sim;":"∼","simdot;":"⩪","sime;":"≃","simeq;":"≃","simg;":"⪞","simgE;":"⪠","siml;":"⪝","simlE;":"⪟","simne;":"≆","simplus;":"⨤","simrarr;":"⥲","slarr;":"←","SmallCircle;":"∘","smallsetminus;":"∖","smashp;":"⨳","smeparsl;":"⧤","smid;":"∣","smile;":"⌣","smt;":"⪪","smte;":"⪬","smtes;":"⪬︀","SOFTcy;":"Ь","softcy;":"ь","sol;":"/","solb;":"⧄","solbar;":"⌿","Sopf;":"𝕊","sopf;":"𝕤","spades;":"♠","spadesuit;":"♠","spar;":"∥","sqcap;":"⊓","sqcaps;":"⊓︀","sqcup;":"⊔","sqcups;":"⊔︀","Sqrt;":"√","sqsub;":"⊏","sqsube;":"⊑","sqsubset;":"⊏","sqsubseteq;":"⊑","sqsup;":"⊐","sqsupe;":"⊒","sqsupset;":"⊐","sqsupseteq;":"⊒","squ;":"□","Square;":"□","square;":"□","SquareIntersection;":"⊓","SquareSubset;":"⊏","SquareSubsetEqual;":"⊑","SquareSuperset;":"⊐","SquareSupersetEqual;":"⊒","SquareUnion;":"⊔","squarf;":"▪","squf;":"▪","srarr;":"→","Sscr;":"𝒮","sscr;":"𝓈","ssetmn;":"∖","ssmile;":"⌣","sstarf;":"⋆","Star;":"⋆","star;":"☆","starf;":"★","straightepsilon;":"ϵ","straightphi;":"ϕ","strns;":"¯","Sub;":"⋐","sub;":"⊂","subdot;":"⪽","subE;":"⫅","sube;":"⊆","subedot;":"⫃","submult;":"⫁","subnE;":"⫋","subne;":"⊊","subplus;":"⪿","subrarr;":"⥹","Subset;":"⋐","subset;":"⊂","subseteq;":"⊆","subseteqq;":"⫅","SubsetEqual;":"⊆","subsetneq;":"⊊","subsetneqq;":"⫋","subsim;":"⫇","subsub;":"⫕","subsup;":"⫓","succ;":"≻","succapprox;":"⪸","succcurlyeq;":"≽","Succeeds;":"≻","SucceedsEqual;":"⪰","SucceedsSlantEqual;":"≽","SucceedsTilde;":"≿","succeq;":"⪰","succnapprox;":"⪺","succneqq;":"⪶","succnsim;":"⋩","succsim;":"≿","SuchThat;":"∋","Sum;":"∑","sum;":"∑","sung;":"♪","Sup;":"⋑","sup;":"⊃","sup1;":"¹",sup1:"¹","sup2;":"²",sup2:"²","sup3;":"³",sup3:"³","supdot;":"⪾","supdsub;":"⫘","supE;":"⫆","supe;":"⊇","supedot;":"⫄","Superset;":"⊃","SupersetEqual;":"⊇","suphsol;":"⟉","suphsub;":"⫗","suplarr;":"⥻","supmult;":"⫂","supnE;":"⫌","supne;":"⊋","supplus;":"⫀","Supset;":"⋑","supset;":"⊃","supseteq;":"⊇","supseteqq;":"⫆","supsetneq;":"⊋","supsetneqq;":"⫌","supsim;":"⫈","supsub;":"⫔","supsup;":"⫖","swarhk;":"⤦","swArr;":"⇙","swarr;":"↙","swarrow;":"↙","swnwar;":"⤪","szlig;":"ß",szlig:"ß","Tab;":" ","target;":"⌖","Tau;":"Τ","tau;":"τ","tbrk;":"⎴","Tcaron;":"Ť","tcaron;":"ť","Tcedil;":"Ţ","tcedil;":"ţ","Tcy;":"Т","tcy;":"т","tdot;":"⃛","telrec;":"⌕","Tfr;":"𝔗","tfr;":"𝔱","there4;":"∴","Therefore;":"∴","therefore;":"∴","Theta;":"Θ","theta;":"θ","thetasym;":"ϑ","thetav;":"ϑ","thickapprox;":"≈","thicksim;":"∼","ThickSpace;":" ","thinsp;":" ","ThinSpace;":" ","thkap;":"≈","thksim;":"∼","THORN;":"Þ",THORN:"Þ","thorn;":"þ",thorn:"þ","Tilde;":"∼","tilde;":"˜","TildeEqual;":"≃","TildeFullEqual;":"≅","TildeTilde;":"≈","times;":"×",times:"×","timesb;":"⊠","timesbar;":"⨱","timesd;":"⨰","tint;":"∭","toea;":"⤨","top;":"⊤","topbot;":"⌶","topcir;":"⫱","Topf;":"𝕋","topf;":"𝕥","topfork;":"⫚","tosa;":"⤩","tprime;":"‴","TRADE;":"™","trade;":"™","triangle;":"▵","triangledown;":"▿","triangleleft;":"◃","trianglelefteq;":"⊴","triangleq;":"≜","triangleright;":"▹","trianglerighteq;":"⊵","tridot;":"◬","trie;":"≜","triminus;":"⨺","TripleDot;":"⃛","triplus;":"⨹","trisb;":"⧍","tritime;":"⨻","trpezium;":"⏢","Tscr;":"𝒯","tscr;":"𝓉","TScy;":"Ц","tscy;":"ц","TSHcy;":"Ћ","tshcy;":"ћ","Tstrok;":"Ŧ","tstrok;":"ŧ","twixt;":"≬","twoheadleftarrow;":"↞","twoheadrightarrow;":"↠","Uacute;":"Ú",Uacute:"Ú","uacute;":"ú",uacute:"ú","Uarr;":"↟","uArr;":"⇑","uarr;":"↑","Uarrocir;":"⥉","Ubrcy;":"Ў","ubrcy;":"ў","Ubreve;":"Ŭ","ubreve;":"ŭ","Ucirc;":"Û",Ucirc:"Û","ucirc;":"û",ucirc:"û","Ucy;":"У","ucy;":"у","udarr;":"⇅","Udblac;":"Ű","udblac;":"ű","udhar;":"⥮","ufisht;":"⥾","Ufr;":"𝔘","ufr;":"𝔲","Ugrave;":"Ù",Ugrave:"Ù","ugrave;":"ù",ugrave:"ù","uHar;":"⥣","uharl;":"↿","uharr;":"↾","uhblk;":"▀","ulcorn;":"⌜","ulcorner;":"⌜","ulcrop;":"⌏","ultri;":"◸","Umacr;":"Ū","umacr;":"ū","uml;":"¨",uml:"¨","UnderBar;":"_","UnderBrace;":"⏟","UnderBracket;":"⎵","UnderParenthesis;":"⏝","Union;":"⋃","UnionPlus;":"⊎","Uogon;":"Ų","uogon;":"ų","Uopf;":"𝕌","uopf;":"𝕦","UpArrow;":"↑","Uparrow;":"⇑","uparrow;":"↑","UpArrowBar;":"⤒","UpArrowDownArrow;":"⇅","UpDownArrow;":"↕","Updownarrow;":"⇕","updownarrow;":"↕","UpEquilibrium;":"⥮","upharpoonleft;":"↿","upharpoonright;":"↾","uplus;":"⊎","UpperLeftArrow;":"↖","UpperRightArrow;":"↗","Upsi;":"ϒ","upsi;":"υ","upsih;":"ϒ","Upsilon;":"Υ","upsilon;":"υ","UpTee;":"⊥","UpTeeArrow;":"↥","upuparrows;":"⇈","urcorn;":"⌝","urcorner;":"⌝","urcrop;":"⌎","Uring;":"Ů","uring;":"ů","urtri;":"◹","Uscr;":"𝒰","uscr;":"𝓊","utdot;":"⋰","Utilde;":"Ũ","utilde;":"ũ","utri;":"▵","utrif;":"▴","uuarr;":"⇈","Uuml;":"Ü",Uuml:"Ü","uuml;":"ü",uuml:"ü","uwangle;":"⦧","vangrt;":"⦜","varepsilon;":"ϵ","varkappa;":"ϰ","varnothing;":"∅","varphi;":"ϕ","varpi;":"ϖ","varpropto;":"∝","vArr;":"⇕","varr;":"↕","varrho;":"ϱ","varsigma;":"ς","varsubsetneq;":"⊊︀","varsubsetneqq;":"⫋︀","varsupsetneq;":"⊋︀","varsupsetneqq;":"⫌︀","vartheta;":"ϑ","vartriangleleft;":"⊲","vartriangleright;":"⊳","Vbar;":"⫫","vBar;":"⫨","vBarv;":"⫩","Vcy;":"В","vcy;":"в","VDash;":"⊫","Vdash;":"⊩","vDash;":"⊨","vdash;":"⊢","Vdashl;":"⫦","Vee;":"⋁","vee;":"∨","veebar;":"⊻","veeeq;":"≚","vellip;":"⋮","Verbar;":"‖","verbar;":"|","Vert;":"‖","vert;":"|","VerticalBar;":"∣","VerticalLine;":"|","VerticalSeparator;":"❘","VerticalTilde;":"≀","VeryThinSpace;":" ","Vfr;":"𝔙","vfr;":"𝔳","vltri;":"⊲","vnsub;":"⊂⃒","vnsup;":"⊃⃒","Vopf;":"𝕍","vopf;":"𝕧","vprop;":"∝","vrtri;":"⊳","Vscr;":"𝒱","vscr;":"𝓋","vsubnE;":"⫋︀","vsubne;":"⊊︀","vsupnE;":"⫌︀","vsupne;":"⊋︀","Vvdash;":"⊪","vzigzag;":"⦚","Wcirc;":"Ŵ","wcirc;":"ŵ","wedbar;":"⩟","Wedge;":"⋀","wedge;":"∧","wedgeq;":"≙","weierp;":"℘","Wfr;":"𝔚","wfr;":"𝔴","Wopf;":"𝕎","wopf;":"𝕨","wp;":"℘","wr;":"≀","wreath;":"≀","Wscr;":"𝒲","wscr;":"𝓌","xcap;":"⋂","xcirc;":"◯","xcup;":"⋃","xdtri;":"▽","Xfr;":"𝔛","xfr;":"𝔵","xhArr;":"⟺","xharr;":"⟷","Xi;":"Ξ","xi;":"ξ","xlArr;":"⟸","xlarr;":"⟵","xmap;":"⟼","xnis;":"⋻","xodot;":"⨀","Xopf;":"𝕏","xopf;":"𝕩","xoplus;":"⨁","xotime;":"⨂","xrArr;":"⟹","xrarr;":"⟶","Xscr;":"𝒳","xscr;":"𝓍","xsqcup;":"⨆","xuplus;":"⨄","xutri;":"△","xvee;":"⋁","xwedge;":"⋀","Yacute;":"Ý",Yacute:"Ý","yacute;":"ý",yacute:"ý","YAcy;":"Я","yacy;":"я","Ycirc;":"Ŷ","ycirc;":"ŷ","Ycy;":"Ы","ycy;":"ы","yen;":"¥",yen:"¥","Yfr;":"𝔜","yfr;":"𝔶","YIcy;":"Ї","yicy;":"ї","Yopf;":"𝕐","yopf;":"𝕪","Yscr;":"𝒴","yscr;":"𝓎","YUcy;":"Ю","yucy;":"ю","Yuml;":"Ÿ","yuml;":"ÿ",yuml:"ÿ","Zacute;":"Ź","zacute;":"ź","Zcaron;":"Ž","zcaron;":"ž","Zcy;":"З","zcy;":"з","Zdot;":"Ż","zdot;":"ż","zeetrf;":"ℨ","ZeroWidthSpace;":"","Zeta;":"Ζ","zeta;":"ζ","Zfr;":"ℨ","zfr;":"𝔷","ZHcy;":"Ж","zhcy;":"ж","zigrarr;":"⇝","Zopf;":"ℤ","zopf;":"𝕫","Zscr;":"𝒵","zscr;":"𝓏","zwj;":"","zwnj;":""};function Je(t,e){if(t.length<e.length)return!1;for(let n=0;n<e.length;n++)if(t[n]!==e[n])return!1;return!0}function mc(t,e){const n=t.length-e.length;return n>0?t.lastIndexOf(e)===n:n===0?t===e:!1}function $a(t,e){let n="";for(;e>0;)(e&1)===1&&(n+=t),t+=t,e=e>>>1;return n}const fc=97,pc=122,gc=65,bc=90,wc=48,_c=57;function qt(t,e){const n=t.charCodeAt(e);return fc<=n&&n<=pc||gc<=n&&n<=bc||wc<=n&&n<=_c}function vn(t){return typeof t<"u"}function vc(t){if(t)return typeof t=="string"?{kind:"markdown",value:t}:{kind:"markdown",value:t.value}}class Ga{isApplicable(){return!0}constructor(e,n){this.id=e,this._tags=[],this._tagMap={},this._valueSetMap={},this._tags=n.tags||[],this._globalAttributes=n.globalAttributes||[],this._tags.forEach(i=>{this._tagMap[i.name.toLowerCase()]=i}),n.valueSets&&n.valueSets.forEach(i=>{this._valueSetMap[i.name]=i.values})}getId(){return this.id}provideTags(){return this._tags}provideAttributes(e){const n=[],i=s=>{n.push(s)},r=this._tagMap[e.toLowerCase()];return r&&r.attributes.forEach(i),this._globalAttributes.forEach(i),n}provideValues(e,n){const i=[];n=n.toLowerCase();const r=a=>{a.forEach(l=>{l.name.toLowerCase()===n&&(l.values&&l.values.forEach(o=>{i.push(o)}),l.valueSet&&this._valueSetMap[l.valueSet]&&this._valueSetMap[l.valueSet].forEach(o=>{i.push(o)}))})},s=this._tagMap[e.toLowerCase()];return s&&r(s.attributes),r(this._globalAttributes),i}}function nt(t,e={},n){const i={kind:n?"markdown":"plaintext",value:""};if(t.description&&e.documentation!==!1){const r=vc(t.description);r&&(i.value+=r.value)}if(t.references&&t.references.length>0&&e.references!==!1&&(i.value.length&&(i.value+=`
|
|
30
30
|
|
|
31
|
-
`),n?i.value+=
|
|
32
|
-
`)),i.value!=="")return i}class
|
|
33
|
-
\r`.indexOf(M)>=0)return c.substring(E,k);if(!xn(M))return null;E--}return c.substring(0,k)}function L(k,E,M=d){const F=x(k,M),P=ro(c,M,V.WithinEndTag,z.EndTagClose)?"":">";let U=m;for(E&&(U=U.parent);U;){const O=U.tag;if(O&&(!U.closed||U.endTagStart&&U.endTagStart>d)){const Z={label:"/"+O,kind:fe.Property,filterText:"/"+O,textEdit:le.replace(F,"/"+O+P),insertTextFormat:Le.PlainText},Y=y(U.start),xe=y(k-1);if(Y!==null&&xe!==null&&Y!==xe){const Ee=Y+"</"+O+P;Z.textEdit=le.replace(x(k-1-xe.length),Ee),Z.filterText=xe+"</"+O}return s.items.push(Z),s}U=U.parent}return E||l.forEach(O=>{O.provideTags().forEach(Z=>{s.items.push({label:"/"+Z.name,kind:fe.Property,documentation:nt(Z,void 0,u),filterText:"/"+Z.name+P,textEdit:le.replace(F,"/"+Z.name+P),insertTextFormat:Le.PlainText})})}),s}const I=(k,E)=>{if(r&&r.hideAutoCompleteProposals)return s;if(!this.dataManager.isVoidElement(E,o)){const M=t.positionAt(k);s.items.push({label:"</"+E+">",kind:fe.Property,filterText:"</"+E+">",textEdit:le.insert(M,"$0</"+E+">"),insertTextFormat:Le.Snippet})}return s};function H(k,E){return T(k,E),L(k,!0,E),s}function W(){const k=Object.create(null);return m.attributeNames.forEach(E=>{k[E]=!0}),k}function b(k,E=d){let M=d;for(;M<E&&c[M]!=="<";)M++;const F=c.substring(k,E),P=x(k,M);let U="";if(!ro(c,E,V.AfterAttributeName,z.DelimiterAssign)){const Z=(r==null?void 0:r.attributeDefaultValue)??"doublequotes";Z==="empty"?U="=$1":Z==="singlequotes"?U="='$1'":U='="$1"'}const O=W();return O[F]=!1,l.forEach(Z=>{Z.provideAttributes(w).forEach(Y=>{if(O[Y.name])return;O[Y.name]=!0;let xe=Y.name,Ee;Y.valueSet!=="v"&&U.length&&(xe=xe+U,(Y.valueSet||Y.name==="style")&&(Ee={title:"Suggest",command:"editor.action.triggerSuggest"})),s.items.push({label:Y.name,kind:Y.valueSet==="handler"?fe.Function:fe.Value,documentation:nt(Y,void 0,u),textEdit:le.replace(P,xe),insertTextFormat:Le.Snippet,command:Ee})})}),g(P,O),s}function g(k,E){const M="data-",F={};F[M]=`${M}$1="$2"`;function P(U){U.attributeNames.forEach(O=>{Je(O,M)&&!F[O]&&!E[O]&&(F[O]=O+'="$1"')}),U.children.forEach(O=>P(O))}i&&i.roots.forEach(U=>P(U)),Object.keys(F).forEach(U=>s.items.push({label:U,kind:fe.Value,textEdit:le.replace(k,F[U]),insertTextFormat:Le.Snippet}))}function _(k,E=d){let M,F,P;if(d>k&&d<=E&&Wc(c[k])){const U=k+1;let O=E;E>k&&c[E-1]===c[k]&&O--;const Z=Fc(c,d,U),Y=Pc(c,d,O);M=x(Z,Y),P=d>=U&&d<=O?c.substring(U,d):"",F=!1}else M=x(k,E),P=c.substring(k,d),F=!0;if(a.length>0){const U=w.toLowerCase(),O=p.toLowerCase(),Z=x(k,E);for(const Y of a)Y.onHtmlAttributeValue&&Y.onHtmlAttributeValue({document:t,position:n,tag:U,attribute:O,value:P,range:Z})}return l.forEach(U=>{U.provideValues(w,p).forEach(O=>{const Z=F?'"'+O.name+'"':O.name;s.items.push({label:O.name,filterText:Z,kind:fe.Unit,documentation:nt(O,void 0,u),textEdit:le.replace(M,Z),insertTextFormat:Le.PlainText})})}),v(),s}function N(k){return d===f.getTokenEnd()&&(R=f.scan(),R===k&&f.getTokenOffset()===d)?f.getTokenEnd():d}function S(){for(const k of a)k.onHtmlContent&&k.onHtmlContent({document:t,position:n});return v()}function v(){let k=d-1,E=n.character;for(;k>=0&&Ot(c,k);)k--,E--;if(k>=0&&c[k]==="&"){const M=J.create(se.create(n.line,E-1),n);for(const F in qt)if(Tc(F,";")){const P="&"+F;s.items.push({label:P,kind:fe.Keyword,documentation:Ae("Character entity representing '{0}'",qt[F]),textEdit:le.replace(M,P),insertTextFormat:Le.PlainText})}}return s}function A(k,E){const M=x(k,E);s.items.push({label:"!DOCTYPE",kind:fe.Property,documentation:"A preamble for an HTML document.",textEdit:le.replace(M,"!DOCTYPE html>"),insertTextFormat:Le.PlainText})}let R=f.scan();for(;R!==z.EOS&&f.getTokenOffset()<=d;){switch(R){case z.StartTagOpen:if(f.getTokenEnd()===d){const k=N(z.StartTag);return n.line===0&&A(d,k),H(d,k)}break;case z.StartTag:if(f.getTokenOffset()<=d&&d<=f.getTokenEnd())return T(f.getTokenOffset(),f.getTokenEnd());w=f.getTokenText();break;case z.AttributeName:if(f.getTokenOffset()<=d&&d<=f.getTokenEnd())return b(f.getTokenOffset(),f.getTokenEnd());p=f.getTokenText();break;case z.DelimiterAssign:if(f.getTokenEnd()===d){const k=N(z.AttributeValue);return _(d,k)}break;case z.AttributeValue:if(f.getTokenOffset()<=d&&d<=f.getTokenEnd())return _(f.getTokenOffset(),f.getTokenEnd());break;case z.Whitespace:if(d<=f.getTokenEnd())switch(f.getScannerState()){case V.AfterOpeningStartTag:const k=f.getTokenOffset(),E=N(z.StartTag);return H(k,E);case V.WithinTag:case V.AfterAttributeName:return b(f.getTokenEnd());case V.BeforeAttributeValue:return _(f.getTokenEnd());case V.AfterOpeningEndTag:return L(f.getTokenOffset()-1,!1);case V.WithinContent:return S()}break;case z.EndTagOpen:if(d<=f.getTokenEnd()){const k=f.getTokenOffset()+1,E=N(z.EndTag);return L(k,!1,E)}break;case z.EndTag:if(d<=f.getTokenEnd()){let k=f.getTokenOffset()-1;for(;k>=0;){const E=c.charAt(k);if(E==="/")return L(k,!1,f.getTokenEnd());if(!xn(E))break;k--}}break;case z.StartTagClose:if(d<=f.getTokenEnd()&&w)return I(f.getTokenEnd(),w);break;case z.Content:if(d<=f.getTokenEnd())return S();break;default:if(d<=f.getTokenEnd())return s;break}R=f.scan()}return s}doQuoteComplete(t,n,i,r){const s=t.offsetAt(n);if(s<=0)return null;const a=(r==null?void 0:r.attributeDefaultValue)??"doublequotes";if(a==="empty"||t.getText().charAt(s-1)!=="=")return null;const o=a==="doublequotes"?'"$1"':"'$1'",u=i.findNodeBefore(s);if(u&&u.attributes&&u.start<s&&(!u.endTagStart||u.endTagStart>s)){const c=be(t.getText(),u.start);let d=c.scan();for(;d!==z.EOS&&c.getTokenEnd()<=s;){if(d===z.AttributeName&&c.getTokenEnd()===s-1)return d=c.scan(),d!==z.DelimiterAssign||(d=c.scan(),d===z.Unknown||d===z.AttributeValue)?null:o;d=c.scan()}}return null}doTagComplete(t,n,i){const r=t.offsetAt(n);if(r<=0)return null;const s=t.getText().charAt(r-1);if(s===">"){const a=this.dataManager.getVoidElements(t.languageId),l=i.findNodeBefore(r);if(l&&l.tag&&!this.dataManager.isVoidElement(l.tag,a)&&l.start<r&&(!l.endTagStart||l.endTagStart>r)){const o=be(t.getText(),l.start);let u=o.scan();for(;u!==z.EOS&&o.getTokenEnd()<=r;){if(u===z.StartTagClose&&o.getTokenEnd()===r)return`$0</${l.tag}>`;u=o.scan()}}}else if(s==="/"){let a=i.findNodeBefore(r);for(;a&&a.closed&&!(a.endTagStart&&a.endTagStart>r);)a=a.parent;if(a&&a.tag){const l=be(t.getText(),a.start);let o=l.scan();for(;o!==z.EOS&&l.getTokenEnd()<=r;){if(o===z.EndTagOpen&&l.getTokenEnd()===r)return t.getText().charAt(r)!==">"?`${a.tag}>`:a.tag;o=l.scan()}}}return null}convertCompletionList(t){return this.doesSupportMarkdown()||t.items.forEach(n=>{n.documentation&&typeof n.documentation!="string"&&(n.documentation={kind:"plaintext",value:n.documentation.value})}),t}doesSupportMarkdown(){var t,n,i;if(!Tn(this.supportsMarkdown)){if(!Tn(this.lsOptions.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;const r=(i=(n=(t=this.lsOptions.clientCapabilities.textDocument)==null?void 0:t.completion)==null?void 0:n.completionItem)==null?void 0:i.documentationFormat;this.supportsMarkdown=Array.isArray(r)&&r.indexOf(qe.Markdown)!==-1}return this.supportsMarkdown}}function Wc(e){return/^["']*$/.test(e)}function xn(e){return/^\s*$/.test(e)}function ro(e,t,n,i){const r=be(e,t,n);let s=r.scan();for(;s===z.Whitespace;)s=r.scan();return s===i}function Fc(e,t,n){for(;t>n&&!xn(e[t-1]);)t--;return t}function Pc(e,t,n){for(;t<n&&!xn(e[t]);)t++;return t}class Bc{constructor(t,n){this.lsOptions=t,this.dataManager=n}doHover(t,n,i,r){const s=this.convertContents.bind(this),a=this.doesSupportMarkdown(),l=t.offsetAt(n),o=i.findNodeAt(l),u=t.getText();if(!o||!o.tag)return null;const c=this.dataManager.getDataProviders().filter(b=>b.isApplicable(t.languageId));function d(b,g,_){for(const N of c){let S=null;if(N.provideTags().forEach(v=>{if(v.name.toLowerCase()===b.toLowerCase()){let A=nt(v,r,a);A||(A={kind:a?"markdown":"plaintext",value:""}),S={contents:A,range:g}}}),S)return S.contents=s(S.contents),S}return null}function m(b,g,_){for(const N of c){let S=null;if(N.provideAttributes(b).forEach(v=>{if(g===v.name&&v.description){const A=nt(v,r,a);A?S={contents:A,range:_}:S=null}}),S)return S.contents=s(S.contents),S}return null}function f(b,g,_,N){for(const S of c){let v=null;if(S.provideValues(b,g).forEach(A=>{if(_===A.name&&A.description){const R=nt(A,r,a);R?v={contents:R,range:N}:v=null}}),v)return v.contents=s(v.contents),v}return null}function w(b,g){let _=T(b);for(const N in qt){let S=null;const v="&"+N;if(_===v){let A=qt[N].charCodeAt(0).toString(16).toUpperCase(),R="U+";if(A.length<4){const E=4-A.length;let M=0;for(;M<E;)R+="0",M+=1}R+=A;const k=Ae("Character entity representing '{0}', unicode equivalent '{1}'",qt[N],R);k?S={contents:k,range:g}:S=null}if(S)return S.contents=s(S.contents),S}return null}function p(b,g){const _=be(t.getText(),g);let N=_.scan();for(;N!==z.EOS&&(_.getTokenEnd()<l||_.getTokenEnd()===l&&N!==b);)N=_.scan();return N===b&&l<=_.getTokenEnd()?{start:t.positionAt(_.getTokenOffset()),end:t.positionAt(_.getTokenEnd())}:null}function x(){let b=l-1,g=n.character;for(;b>=0&&Ot(u,b);)b--,g--;let _=b+1,N=g;for(;Ot(u,_);)_++,N++;if(b>=0&&u[b]==="&"){let S=null;return u[_]===";"?S=J.create(se.create(n.line,g),se.create(n.line,N+1)):S=J.create(se.create(n.line,g),se.create(n.line,N)),S}return null}function T(b){let g=l-1,_="&";for(;g>=0&&Ot(b,g);)g--;for(g=g+1;Ot(b,g);)_+=b[g],g+=1;return _+=";",_}if(o.endTagStart&&l>=o.endTagStart){const b=p(z.EndTag,o.endTagStart);return b?d(o.tag,b):null}const y=p(z.StartTag,o.start);if(y)return d(o.tag,y);const L=p(z.AttributeName,o.start);if(L){const b=o.tag,g=t.getText(L);return m(b,g,L)}const I=x();if(I)return w(u,I);function H(b,g){const _=be(t.getText(),b);let N=_.scan(),S;for(;N!==z.EOS&&_.getTokenEnd()<=g;)N=_.scan(),N===z.AttributeName&&(S=_.getTokenText());return S}const W=p(z.AttributeValue,o.start);if(W){const b=o.tag,g=qc(t.getText(W)),_=H(o.start,t.offsetAt(W.start));if(_)return f(b,_,g,W)}return null}convertContents(t){if(!this.doesSupportMarkdown()){if(typeof t=="string")return t;if("kind"in t)return{kind:"plaintext",value:t.value};if(Array.isArray(t))t.map(n=>typeof n=="string"?n:n.value);else return t.value}return t}doesSupportMarkdown(){var t,n,i;if(!Tn(this.supportsMarkdown)){if(!Tn(this.lsOptions.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;const r=(i=(n=(t=this.lsOptions.clientCapabilities)==null?void 0:t.textDocument)==null?void 0:n.hover)==null?void 0:i.contentFormat;this.supportsMarkdown=Array.isArray(r)&&r.indexOf(qe.Markdown)!==-1}return this.supportsMarkdown}}function qc(e){return e.length<=1?e.replace(/['"]/,""):((e[0]==="'"||e[0]==='"')&&(e=e.slice(1)),(e[e.length-1]==="'"||e[e.length-1]==='"')&&(e=e.slice(0,-1)),e)}function Oc(e,t){return e}var so;(function(){var e=[,,function(r){function s(o){this.__parent=o,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}s.prototype.clone_empty=function(){var o=new s(this.__parent);return o.set_indent(this.__indent_count,this.__alignment_count),o},s.prototype.item=function(o){return o<0?this.__items[this.__items.length+o]:this.__items[o]},s.prototype.has_match=function(o){for(var u=this.__items.length-1;u>=0;u--)if(this.__items[u].match(o))return!0;return!1},s.prototype.set_indent=function(o,u){this.is_empty()&&(this.__indent_count=o||0,this.__alignment_count=u||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},s.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},s.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},s.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var o=this.__parent.current_line;return o.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),o.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),o.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,o.__items[0]===" "&&(o.__items.splice(0,1),o.__character_count-=1),!0}return!1},s.prototype.is_empty=function(){return this.__items.length===0},s.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},s.prototype.push=function(o){this.__items.push(o);var u=o.lastIndexOf(`
|
|
31
|
+
`),n?i.value+=t.references.map(r=>`[${r.name}](${r.url})`).join(" | "):i.value+=t.references.map(r=>`${r.name}: ${r.url}`).join(`
|
|
32
|
+
`)),i.value!=="")return i}class yc{constructor(e,n){this.dataManager=e,this.readDirectory=n,this.atributeCompletions=[]}onHtmlAttributeValue(e){this.dataManager.isPathAttribute(e.tag,e.attribute)&&this.atributeCompletions.push(e)}async computeCompletions(e,n){const i={items:[],isIncomplete:!1};for(const r of this.atributeCompletions){const s=xc(e.getText(r.range));if(kc(s))if(s==="."||s==="..")i.isIncomplete=!0;else{const a=Sc(r.value,s,r.range),l=await this.providePathSuggestions(r.value,a,e,n);for(const o of l)i.items.push(o)}}return i}async providePathSuggestions(e,n,i,r){const s=e.substring(0,e.lastIndexOf("/")+1);let a=r.resolveReference(s||".",i.uri);if(a)try{const l=[],o=await this.readDirectory(a);for(const[u,c]of o)u.charCodeAt(0)!==Tc&&l.push(Ac(u,c===Di.Directory,n));return l}catch{}return[]}}const Tc=46;function xc(t){return Je(t,"'")||Je(t,'"')?t.slice(1,-1):t}function kc(t){return!(Je(t,"http")||Je(t,"https")||Je(t,"//"))}function Sc(t,e,n){let i;const r=t.lastIndexOf("/");if(r===-1)i=Lc(n,1,-1);else{const s=e.slice(r+1),a=Ot(n.end,-1-s.length),l=s.indexOf(" ");let o;l!==-1?o=Ot(a,l):o=Ot(n.end,-1),i=J.create(a,o)}return i}function Ac(t,e,n){return e?(t=t+"/",{label:t,kind:fe.Folder,textEdit:le.replace(n,t),command:{title:"Suggest",command:"editor.action.triggerSuggest"}}):{label:t,kind:fe.File,textEdit:le.replace(n,t)}}function Ot(t,e){return se.create(t.line,t.character+e)}function Lc(t,e,n){const i=Ot(t.start,e),r=Ot(t.end,n);return J.create(i,r)}class Cc{constructor(e,n){this.lsOptions=e,this.dataManager=n,this.completionParticipants=[]}setCompletionParticipants(e){this.completionParticipants=e||[]}async doComplete2(e,n,i,r,s){if(!this.lsOptions.fileSystemProvider||!this.lsOptions.fileSystemProvider.readDirectory)return this.doComplete(e,n,i,s);const a=new yc(this.dataManager,this.lsOptions.fileSystemProvider.readDirectory),l=this.completionParticipants;this.completionParticipants=[a].concat(l);const o=this.doComplete(e,n,i,s);try{const u=await a.computeCompletions(e,r);return{isIncomplete:o.isIncomplete||u.isIncomplete,items:u.items.concat(o.items)}}finally{this.completionParticipants=l}}doComplete(e,n,i,r){const s=this._doComplete(e,n,i,r);return this.convertCompletionList(s)}_doComplete(e,n,i,r){const s={isIncomplete:!1,items:[]},a=this.completionParticipants,l=this.dataManager.getDataProviders().filter(k=>k.isApplicable(e.languageId)&&(!r||r[k.getId()]!==!1)),o=this.dataManager.getVoidElements(l),u=this.doesSupportMarkdown(),c=e.getText(),d=e.offsetAt(n),m=i.findNodeBefore(d);if(!m)return s;const f=be(c,m.start);let w="",p;function x(k,E=d){return k>d&&(k=d),{start:e.positionAt(k),end:e.positionAt(E)}}function T(k,E){const M=x(k,E);return l.forEach(W=>{W.provideTags().forEach(F=>{s.items.push({label:F.name,kind:fe.Property,documentation:nt(F,void 0,u),textEdit:le.replace(M,F.name),insertTextFormat:Le.PlainText})})}),s}function y(k){let E=k;for(;E>0;){const M=c.charAt(E-1);if(`
|
|
33
|
+
\r`.indexOf(M)>=0)return c.substring(E,k);if(!yn(M))return null;E--}return c.substring(0,k)}function L(k,E,M=d){const W=x(k,M),F=Xa(c,M,V.WithinEndTag,z.EndTagClose)?"":">";let U=m;for(E&&(U=U.parent);U;){const O=U.tag;if(O&&(!U.closed||U.endTagStart&&U.endTagStart>d)){const Z={label:"/"+O,kind:fe.Property,filterText:"/"+O,textEdit:le.replace(W,"/"+O+F),insertTextFormat:Le.PlainText},Y=y(U.start),xe=y(k-1);if(Y!==null&&xe!==null&&Y!==xe){const Ee=Y+"</"+O+F;Z.textEdit=le.replace(x(k-1-xe.length),Ee),Z.filterText=xe+"</"+O}return s.items.push(Z),s}U=U.parent}return E||l.forEach(O=>{O.provideTags().forEach(Z=>{s.items.push({label:"/"+Z.name,kind:fe.Property,documentation:nt(Z,void 0,u),filterText:"/"+Z.name+F,textEdit:le.replace(W,"/"+Z.name+F),insertTextFormat:Le.PlainText})})}),s}const I=(k,E)=>{if(r&&r.hideAutoCompleteProposals)return s;if(!this.dataManager.isVoidElement(E,o)){const M=e.positionAt(k);s.items.push({label:"</"+E+">",kind:fe.Property,filterText:"</"+E+">",textEdit:le.insert(M,"$0</"+E+">"),insertTextFormat:Le.Snippet})}return s};function H(k,E){return T(k,E),L(k,!0,E),s}function P(){const k=Object.create(null);return m.attributeNames.forEach(E=>{k[E]=!0}),k}function b(k,E=d){let M=d;for(;M<E&&c[M]!=="<";)M++;const W=c.substring(k,E),F=x(k,M);let U="";if(!Xa(c,E,V.AfterAttributeName,z.DelimiterAssign)){const Z=(r==null?void 0:r.attributeDefaultValue)??"doublequotes";Z==="empty"?U="=$1":Z==="singlequotes"?U="='$1'":U='="$1"'}const O=P();return O[W]=!1,l.forEach(Z=>{Z.provideAttributes(w).forEach(Y=>{if(O[Y.name])return;O[Y.name]=!0;let xe=Y.name,Ee;Y.valueSet!=="v"&&U.length&&(xe=xe+U,(Y.valueSet||Y.name==="style")&&(Ee={title:"Suggest",command:"editor.action.triggerSuggest"})),s.items.push({label:Y.name,kind:Y.valueSet==="handler"?fe.Function:fe.Value,documentation:nt(Y,void 0,u),textEdit:le.replace(F,xe),insertTextFormat:Le.Snippet,command:Ee})})}),g(F,O),s}function g(k,E){const M="data-",W={};W[M]=`${M}$1="$2"`;function F(U){U.attributeNames.forEach(O=>{Je(O,M)&&!W[O]&&!E[O]&&(W[O]=O+'="$1"')}),U.children.forEach(O=>F(O))}i&&i.roots.forEach(U=>F(U)),Object.keys(W).forEach(U=>s.items.push({label:U,kind:fe.Value,textEdit:le.replace(k,W[U]),insertTextFormat:Le.Snippet}))}function _(k,E=d){let M,W,F;if(d>k&&d<=E&&Ec(c[k])){const U=k+1;let O=E;E>k&&c[E-1]===c[k]&&O--;const Z=Rc(c,d,U),Y=Dc(c,d,O);M=x(Z,Y),F=d>=U&&d<=O?c.substring(U,d):"",W=!1}else M=x(k,E),F=c.substring(k,d),W=!0;if(a.length>0){const U=w.toLowerCase(),O=p.toLowerCase(),Z=x(k,E);for(const Y of a)Y.onHtmlAttributeValue&&Y.onHtmlAttributeValue({document:e,position:n,tag:U,attribute:O,value:F,range:Z})}return l.forEach(U=>{U.provideValues(w,p).forEach(O=>{const Z=W?'"'+O.name+'"':O.name;s.items.push({label:O.name,filterText:Z,kind:fe.Unit,documentation:nt(O,void 0,u),textEdit:le.replace(M,Z),insertTextFormat:Le.PlainText})})}),v(),s}function N(k){return d===f.getTokenEnd()&&(D=f.scan(),D===k&&f.getTokenOffset()===d)?f.getTokenEnd():d}function S(){for(const k of a)k.onHtmlContent&&k.onHtmlContent({document:e,position:n});return v()}function v(){let k=d-1,E=n.character;for(;k>=0&&qt(c,k);)k--,E--;if(k>=0&&c[k]==="&"){const M=J.create(se.create(n.line,E-1),n);for(const W in Bt)if(mc(W,";")){const F="&"+W;s.items.push({label:F,kind:fe.Keyword,documentation:Ae("Character entity representing '{0}'",Bt[W]),textEdit:le.replace(M,F),insertTextFormat:Le.PlainText})}}return s}function A(k,E){const M=x(k,E);s.items.push({label:"!DOCTYPE",kind:fe.Property,documentation:"A preamble for an HTML document.",textEdit:le.replace(M,"!DOCTYPE html>"),insertTextFormat:Le.PlainText})}let D=f.scan();for(;D!==z.EOS&&f.getTokenOffset()<=d;){switch(D){case z.StartTagOpen:if(f.getTokenEnd()===d){const k=N(z.StartTag);return n.line===0&&A(d,k),H(d,k)}break;case z.StartTag:if(f.getTokenOffset()<=d&&d<=f.getTokenEnd())return T(f.getTokenOffset(),f.getTokenEnd());w=f.getTokenText();break;case z.AttributeName:if(f.getTokenOffset()<=d&&d<=f.getTokenEnd())return b(f.getTokenOffset(),f.getTokenEnd());p=f.getTokenText();break;case z.DelimiterAssign:if(f.getTokenEnd()===d){const k=N(z.AttributeValue);return _(d,k)}break;case z.AttributeValue:if(f.getTokenOffset()<=d&&d<=f.getTokenEnd())return _(f.getTokenOffset(),f.getTokenEnd());break;case z.Whitespace:if(d<=f.getTokenEnd())switch(f.getScannerState()){case V.AfterOpeningStartTag:const k=f.getTokenOffset(),E=N(z.StartTag);return H(k,E);case V.WithinTag:case V.AfterAttributeName:return b(f.getTokenEnd());case V.BeforeAttributeValue:return _(f.getTokenEnd());case V.AfterOpeningEndTag:return L(f.getTokenOffset()-1,!1);case V.WithinContent:return S()}break;case z.EndTagOpen:if(d<=f.getTokenEnd()){const k=f.getTokenOffset()+1,E=N(z.EndTag);return L(k,!1,E)}break;case z.EndTag:if(d<=f.getTokenEnd()){let k=f.getTokenOffset()-1;for(;k>=0;){const E=c.charAt(k);if(E==="/")return L(k,!1,f.getTokenEnd());if(!yn(E))break;k--}}break;case z.StartTagClose:if(d<=f.getTokenEnd()&&w)return I(f.getTokenEnd(),w);break;case z.Content:if(d<=f.getTokenEnd())return S();break;default:if(d<=f.getTokenEnd())return s;break}D=f.scan()}return s}doQuoteComplete(e,n,i,r){const s=e.offsetAt(n);if(s<=0)return null;const a=(r==null?void 0:r.attributeDefaultValue)??"doublequotes";if(a==="empty"||e.getText().charAt(s-1)!=="=")return null;const o=a==="doublequotes"?'"$1"':"'$1'",u=i.findNodeBefore(s);if(u&&u.attributes&&u.start<s&&(!u.endTagStart||u.endTagStart>s)){const c=be(e.getText(),u.start);let d=c.scan();for(;d!==z.EOS&&c.getTokenEnd()<=s;){if(d===z.AttributeName&&c.getTokenEnd()===s-1)return d=c.scan(),d!==z.DelimiterAssign||(d=c.scan(),d===z.Unknown||d===z.AttributeValue)?null:o;d=c.scan()}}return null}doTagComplete(e,n,i){const r=e.offsetAt(n);if(r<=0)return null;const s=e.getText().charAt(r-1);if(s===">"){const a=this.dataManager.getVoidElements(e.languageId),l=i.findNodeBefore(r);if(l&&l.tag&&!this.dataManager.isVoidElement(l.tag,a)&&l.start<r&&(!l.endTagStart||l.endTagStart>r)){const o=be(e.getText(),l.start);let u=o.scan();for(;u!==z.EOS&&o.getTokenEnd()<=r;){if(u===z.StartTagClose&&o.getTokenEnd()===r)return`$0</${l.tag}>`;u=o.scan()}}}else if(s==="/"){let a=i.findNodeBefore(r);for(;a&&a.closed&&!(a.endTagStart&&a.endTagStart>r);)a=a.parent;if(a&&a.tag){const l=be(e.getText(),a.start);let o=l.scan();for(;o!==z.EOS&&l.getTokenEnd()<=r;){if(o===z.EndTagOpen&&l.getTokenEnd()===r)return e.getText().charAt(r)!==">"?`${a.tag}>`:a.tag;o=l.scan()}}}return null}convertCompletionList(e){return this.doesSupportMarkdown()||e.items.forEach(n=>{n.documentation&&typeof n.documentation!="string"&&(n.documentation={kind:"plaintext",value:n.documentation.value})}),e}doesSupportMarkdown(){var e,n,i;if(!vn(this.supportsMarkdown)){if(!vn(this.lsOptions.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;const r=(i=(n=(e=this.lsOptions.clientCapabilities.textDocument)==null?void 0:e.completion)==null?void 0:n.completionItem)==null?void 0:i.documentationFormat;this.supportsMarkdown=Array.isArray(r)&&r.indexOf(qe.Markdown)!==-1}return this.supportsMarkdown}}function Ec(t){return/^["']*$/.test(t)}function yn(t){return/^\s*$/.test(t)}function Xa(t,e,n,i){const r=be(t,e,n);let s=r.scan();for(;s===z.Whitespace;)s=r.scan();return s===i}function Rc(t,e,n){for(;e>n&&!yn(t[e-1]);)e--;return e}function Dc(t,e,n){for(;e<n&&!yn(t[e]);)e++;return e}class Mc{constructor(e,n){this.lsOptions=e,this.dataManager=n}doHover(e,n,i,r){const s=this.convertContents.bind(this),a=this.doesSupportMarkdown(),l=e.offsetAt(n),o=i.findNodeAt(l),u=e.getText();if(!o||!o.tag)return null;const c=this.dataManager.getDataProviders().filter(b=>b.isApplicable(e.languageId));function d(b,g,_){for(const N of c){let S=null;if(N.provideTags().forEach(v=>{if(v.name.toLowerCase()===b.toLowerCase()){let A=nt(v,r,a);A||(A={kind:a?"markdown":"plaintext",value:""}),S={contents:A,range:g}}}),S)return S.contents=s(S.contents),S}return null}function m(b,g,_){for(const N of c){let S=null;if(N.provideAttributes(b).forEach(v=>{if(g===v.name&&v.description){const A=nt(v,r,a);A?S={contents:A,range:_}:S=null}}),S)return S.contents=s(S.contents),S}return null}function f(b,g,_,N){for(const S of c){let v=null;if(S.provideValues(b,g).forEach(A=>{if(_===A.name&&A.description){const D=nt(A,r,a);D?v={contents:D,range:N}:v=null}}),v)return v.contents=s(v.contents),v}return null}function w(b,g){let _=T(b);for(const N in Bt){let S=null;const v="&"+N;if(_===v){let A=Bt[N].charCodeAt(0).toString(16).toUpperCase(),D="U+";if(A.length<4){const E=4-A.length;let M=0;for(;M<E;)D+="0",M+=1}D+=A;const k=Ae("Character entity representing '{0}', unicode equivalent '{1}'",Bt[N],D);k?S={contents:k,range:g}:S=null}if(S)return S.contents=s(S.contents),S}return null}function p(b,g){const _=be(e.getText(),g);let N=_.scan();for(;N!==z.EOS&&(_.getTokenEnd()<l||_.getTokenEnd()===l&&N!==b);)N=_.scan();return N===b&&l<=_.getTokenEnd()?{start:e.positionAt(_.getTokenOffset()),end:e.positionAt(_.getTokenEnd())}:null}function x(){let b=l-1,g=n.character;for(;b>=0&&qt(u,b);)b--,g--;let _=b+1,N=g;for(;qt(u,_);)_++,N++;if(b>=0&&u[b]==="&"){let S=null;return u[_]===";"?S=J.create(se.create(n.line,g),se.create(n.line,N+1)):S=J.create(se.create(n.line,g),se.create(n.line,N)),S}return null}function T(b){let g=l-1,_="&";for(;g>=0&&qt(b,g);)g--;for(g=g+1;qt(b,g);)_+=b[g],g+=1;return _+=";",_}if(o.endTagStart&&l>=o.endTagStart){const b=p(z.EndTag,o.endTagStart);return b?d(o.tag,b):null}const y=p(z.StartTag,o.start);if(y)return d(o.tag,y);const L=p(z.AttributeName,o.start);if(L){const b=o.tag,g=e.getText(L);return m(b,g,L)}const I=x();if(I)return w(u,I);function H(b,g){const _=be(e.getText(),b);let N=_.scan(),S;for(;N!==z.EOS&&_.getTokenEnd()<=g;)N=_.scan(),N===z.AttributeName&&(S=_.getTokenText());return S}const P=p(z.AttributeValue,o.start);if(P){const b=o.tag,g=Nc(e.getText(P)),_=H(o.start,e.offsetAt(P.start));if(_)return f(b,_,g,P)}return null}convertContents(e){if(!this.doesSupportMarkdown()){if(typeof e=="string")return e;if("kind"in e)return{kind:"plaintext",value:e.value};if(Array.isArray(e))e.map(n=>typeof n=="string"?n:n.value);else return e.value}return e}doesSupportMarkdown(){var e,n,i;if(!vn(this.supportsMarkdown)){if(!vn(this.lsOptions.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;const r=(i=(n=(e=this.lsOptions.clientCapabilities)==null?void 0:e.textDocument)==null?void 0:n.hover)==null?void 0:i.contentFormat;this.supportsMarkdown=Array.isArray(r)&&r.indexOf(qe.Markdown)!==-1}return this.supportsMarkdown}}function Nc(t){return t.length<=1?t.replace(/['"]/,""):((t[0]==="'"||t[0]==='"')&&(t=t.slice(1)),(t[t.length-1]==="'"||t[t.length-1]==='"')&&(t=t.slice(0,-1)),t)}function Ic(t,e){return t}var Ja;(function(){var t=[,,(function(r){function s(o){this.__parent=o,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}s.prototype.clone_empty=function(){var o=new s(this.__parent);return o.set_indent(this.__indent_count,this.__alignment_count),o},s.prototype.item=function(o){return o<0?this.__items[this.__items.length+o]:this.__items[o]},s.prototype.has_match=function(o){for(var u=this.__items.length-1;u>=0;u--)if(this.__items[u].match(o))return!0;return!1},s.prototype.set_indent=function(o,u){this.is_empty()&&(this.__indent_count=o||0,this.__alignment_count=u||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},s.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},s.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},s.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var o=this.__parent.current_line;return o.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),o.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),o.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,o.__items[0]===" "&&(o.__items.splice(0,1),o.__character_count-=1),!0}return!1},s.prototype.is_empty=function(){return this.__items.length===0},s.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},s.prototype.push=function(o){this.__items.push(o);var u=o.lastIndexOf(`
|
|
34
34
|
`);u!==-1?this.__character_count=o.length-u:this.__character_count+=o.length},s.prototype.pop=function(){var o=null;return this.is_empty()||(o=this.__items.pop(),this.__character_count-=o.length),o},s.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},s.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},s.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},s.prototype.toString=function(){var o="";return this.is_empty()?this.__parent.indent_empty_lines&&(o=this.__parent.get_indent_string(this.__indent_count)):(o=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),o+=this.__items.join("")),o};function a(o,u){this.__cache=[""],this.__indent_size=o.indent_size,this.__indent_string=o.indent_char,o.indent_with_tabs||(this.__indent_string=new Array(o.indent_size+1).join(o.indent_char)),u=u||"",o.indent_level>0&&(u=new Array(o.indent_level+1).join(this.__indent_string)),this.__base_string=u,this.__base_string_length=u.length}a.prototype.get_indent_size=function(o,u){var c=this.__base_string_length;return u=u||0,o<0&&(c=0),c+=o*this.__indent_size,c+=u,c},a.prototype.get_indent_string=function(o,u){var c=this.__base_string;return u=u||0,o<0&&(o=0,c=""),u+=o*this.__indent_size,this.__ensure_cache(u),c+=this.__cache[u],c},a.prototype.__ensure_cache=function(o){for(;o>=this.__cache.length;)this.__add_column()},a.prototype.__add_column=function(){var o=this.__cache.length,u=0,c="";this.__indent_size&&o>=this.__indent_size&&(u=Math.floor(o/this.__indent_size),o-=u*this.__indent_size,c=new Array(u+1).join(this.__indent_string)),o&&(c+=new Array(o+1).join(" ")),this.__cache.push(c)};function l(o,u){this.__indent_cache=new a(o,u),this.raw=!1,this._end_with_newline=o.end_with_newline,this.indent_size=o.indent_size,this.wrap_line_length=o.wrap_line_length,this.indent_empty_lines=o.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new s(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}l.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},l.prototype.get_line_number=function(){return this.__lines.length},l.prototype.get_indent_string=function(o,u){return this.__indent_cache.get_indent_string(o,u)},l.prototype.get_indent_size=function(o,u){return this.__indent_cache.get_indent_size(o,u)},l.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},l.prototype.add_new_line=function(o){return this.is_empty()||!o&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},l.prototype.get_code=function(o){this.trim(!0);var u=this.current_line.pop();u&&(u[u.length-1]===`
|
|
35
35
|
`&&(u=u.replace(/\n+$/g,"")),this.current_line.push(u)),this._end_with_newline&&this.__add_outputline();var c=this.__lines.join(`
|
|
36
36
|
`);return o!==`
|
|
37
|
-
`&&(c=c.replace(/[\n]/g,o)),c},l.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},l.prototype.set_indent=function(o,u){return o=o||0,u=u||0,this.next_line.set_indent(o,u),this.__lines.length>1?(this.current_line.set_indent(o,u),!0):(this.current_line.set_indent(),!1)},l.prototype.add_raw_token=function(o){for(var u=0;u<o.newlines;u++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(o.whitespace_before),this.current_line.push(o.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},l.prototype.add_token=function(o){this.__add_space_before_token(),this.current_line.push(o),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},l.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},l.prototype.remove_indent=function(o){for(var u=this.__lines.length;o<u;)this.__lines[o]._remove_indent(),o++;this.current_line._remove_wrap_indent()},l.prototype.trim=function(o){for(o=o===void 0?!1:o,this.current_line.trim();o&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},l.prototype.just_added_newline=function(){return this.current_line.is_empty()},l.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},l.prototype.ensure_empty_line_above=function(o,u){for(var c=this.__lines.length-2;c>=0;){var d=this.__lines[c];if(d.is_empty())break;if(d.item(0).indexOf(o)!==0&&d.item(-1)!==u){this.__lines.splice(c+1,0,new s(this)),this.previous_line=this.__lines[this.__lines.length-2];break}c--}},r.exports.Output=l},,,,function(r){function s(o,u){this.raw_options=a(o,u),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}s.prototype._get_array=function(o,u){var c=this.raw_options[o],d=u||[];return typeof c=="object"?c!==null&&typeof c.concat=="function"&&(d=c.concat()):typeof c=="string"&&(d=c.split(/[^a-zA-Z0-9_\/\-]+/)),d},s.prototype._get_boolean=function(o,u){var c=this.raw_options[o],d=c===void 0?!!u:!!c;return d},s.prototype._get_characters=function(o,u){var c=this.raw_options[o],d=u||"";return typeof c=="string"&&(d=c.replace(/\\r/,"\r").replace(/\\n/,`
|
|
37
|
+
`&&(c=c.replace(/[\n]/g,o)),c},l.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},l.prototype.set_indent=function(o,u){return o=o||0,u=u||0,this.next_line.set_indent(o,u),this.__lines.length>1?(this.current_line.set_indent(o,u),!0):(this.current_line.set_indent(),!1)},l.prototype.add_raw_token=function(o){for(var u=0;u<o.newlines;u++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(o.whitespace_before),this.current_line.push(o.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},l.prototype.add_token=function(o){this.__add_space_before_token(),this.current_line.push(o),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},l.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},l.prototype.remove_indent=function(o){for(var u=this.__lines.length;o<u;)this.__lines[o]._remove_indent(),o++;this.current_line._remove_wrap_indent()},l.prototype.trim=function(o){for(o=o===void 0?!1:o,this.current_line.trim();o&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},l.prototype.just_added_newline=function(){return this.current_line.is_empty()},l.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},l.prototype.ensure_empty_line_above=function(o,u){for(var c=this.__lines.length-2;c>=0;){var d=this.__lines[c];if(d.is_empty())break;if(d.item(0).indexOf(o)!==0&&d.item(-1)!==u){this.__lines.splice(c+1,0,new s(this)),this.previous_line=this.__lines[this.__lines.length-2];break}c--}},r.exports.Output=l}),,,,(function(r){function s(o,u){this.raw_options=a(o,u),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}s.prototype._get_array=function(o,u){var c=this.raw_options[o],d=u||[];return typeof c=="object"?c!==null&&typeof c.concat=="function"&&(d=c.concat()):typeof c=="string"&&(d=c.split(/[^a-zA-Z0-9_\/\-]+/)),d},s.prototype._get_boolean=function(o,u){var c=this.raw_options[o],d=c===void 0?!!u:!!c;return d},s.prototype._get_characters=function(o,u){var c=this.raw_options[o],d=u||"";return typeof c=="string"&&(d=c.replace(/\\r/,"\r").replace(/\\n/,`
|
|
38
38
|
`).replace(/\\t/," ")),d},s.prototype._get_number=function(o,u){var c=this.raw_options[o];u=parseInt(u,10),isNaN(u)&&(u=0);var d=parseInt(c,10);return isNaN(d)&&(d=u),d},s.prototype._get_selection=function(o,u,c){var d=this._get_selection_list(o,u,c);if(d.length!==1)throw new Error("Invalid Option Value: The option '"+o+`' can only be one of the following values:
|
|
39
39
|
`+u+`
|
|
40
40
|
You passed in: '`+this.raw_options[o]+"'");return d[0]},s.prototype._get_selection_list=function(o,u,c){if(!u||u.length===0)throw new Error("Selection list cannot be empty.");if(c=c||[u[0]],!this._is_valid_selection(c,u))throw new Error("Invalid Default Value!");var d=this._get_array(o,c);if(!this._is_valid_selection(d,u))throw new Error("Invalid Option Value: The option '"+o+`' can contain only the following values:
|
|
41
41
|
`+u+`
|
|
42
|
-
You passed in: '`+this.raw_options[o]+"'");return d},s.prototype._is_valid_selection=function(o,u){return o.length&&u.length&&!o.some(function(c){return u.indexOf(c)===-1})};function a(o,u){var c={};o=l(o);var d;for(d in o)d!==u&&(c[d]=o[d]);if(u&&o[u])for(d in o[u])c[d]=o[u][d];return c}function l(o){var u={},c;for(c in o){var d=c.replace(/-/g,"_");u[d]=o[c]}return u}r.exports.Options=s,r.exports.normalizeOpts=l,r.exports.mergeOpts=a},,function(r){var s=RegExp.prototype.hasOwnProperty("sticky");function a(l){this.__input=l||"",this.__input_length=this.__input.length,this.__position=0}a.prototype.restart=function(){this.__position=0},a.prototype.back=function(){this.__position>0&&(this.__position-=1)},a.prototype.hasNext=function(){return this.__position<this.__input_length},a.prototype.next=function(){var l=null;return this.hasNext()&&(l=this.__input.charAt(this.__position),this.__position+=1),l},a.prototype.peek=function(l){var o=null;return l=l||0,l+=this.__position,l>=0&&l<this.__input_length&&(o=this.__input.charAt(l)),o},a.prototype.__match=function(l,o){l.lastIndex=o;var u=l.exec(this.__input);return u&&!(s&&l.sticky)&&u.index!==o&&(u=null),u},a.prototype.test=function(l,o){return o=o||0,o+=this.__position,o>=0&&o<this.__input_length?!!this.__match(l,o):!1},a.prototype.testChar=function(l,o){var u=this.peek(o);return l.lastIndex=0,u!==null&&l.test(u)},a.prototype.match=function(l){var o=this.__match(l,this.__position);return o?this.__position+=o[0].length:o=null,o},a.prototype.read=function(l,o,u){var c="",d;return l&&(d=this.match(l),d&&(c+=d[0])),o&&(d||!l)&&(c+=this.readUntil(o,u)),c},a.prototype.readUntil=function(l,o){var u="",c=this.__position;l.lastIndex=this.__position;var d=l.exec(this.__input);return d?(c=d.index,o&&(c+=d[0].length)):c=this.__input_length,u=this.__input.substring(this.__position,c),this.__position=c,u},a.prototype.readUntilAfter=function(l){return this.readUntil(l,!0)},a.prototype.get_regexp=function(l,o){var u=null,c="g";return o&&s&&(c="y"),typeof l=="string"&&l!==""?u=new RegExp(l,c):l&&(u=new RegExp(l.source,c)),u},a.prototype.get_literal_regexp=function(l){return RegExp(l.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},a.prototype.peekUntilAfter=function(l){var o=this.__position,u=this.readUntilAfter(l);return this.__position=o,u},a.prototype.lookBack=function(l){var o=this.__position-1;return o>=l.length&&this.__input.substring(o-l.length,o).toLowerCase()===l},r.exports.InputScanner=a},,,,,function(r){function s(a,l){a=typeof a=="string"?a:a.source,l=typeof l=="string"?l:l.source,this.__directives_block_pattern=new RegExp(a+/ beautify( \w+[:]\w+)+ /.source+l,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(a+/\sbeautify\signore:end\s/.source+l,"g")}s.prototype.get_directives=function(a){if(!a.match(this.__directives_block_pattern))return null;var l={};this.__directive_pattern.lastIndex=0;for(var o=this.__directive_pattern.exec(a);o;)l[o[1]]=o[2],o=this.__directive_pattern.exec(a);return l},s.prototype.readIgnored=function(a){return a.readUntilAfter(this.__directives_end_ignore_pattern)},r.exports.Directives=s},,function(r,s,a){var l=a(16).Beautifier,o=a(17).Options;function u(c,d){var m=new l(c,d);return m.beautify()}r.exports=u,r.exports.defaultOptions=function(){return new o}},function(r,s,a){var l=a(17).Options,o=a(2).Output,u=a(8).InputScanner,c=a(13).Directives,d=new c(/\/\*/,/\*\//),m=/\r\n|[\r\n]/,f=/\r\n|[\r\n]/g,w=/\s/,p=/(?:\s|\n)+/g,x=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,T=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function y(L,I){this._source_text=L||"",this._options=new l(I),this._ch=null,this._input=null,this.NESTED_AT_RULE={page:!0,"font-face":!0,keyframes:!0,media:!0,supports:!0,document:!0},this.CONDITIONAL_GROUP_RULE={media:!0,supports:!0,document:!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}y.prototype.eatString=function(L){var I="";for(this._ch=this._input.next();this._ch;){if(I+=this._ch,this._ch==="\\")I+=this._input.next();else if(L.indexOf(this._ch)!==-1||this._ch===`
|
|
42
|
+
You passed in: '`+this.raw_options[o]+"'");return d},s.prototype._is_valid_selection=function(o,u){return o.length&&u.length&&!o.some(function(c){return u.indexOf(c)===-1})};function a(o,u){var c={};o=l(o);var d;for(d in o)d!==u&&(c[d]=o[d]);if(u&&o[u])for(d in o[u])c[d]=o[u][d];return c}function l(o){var u={},c;for(c in o){var d=c.replace(/-/g,"_");u[d]=o[c]}return u}r.exports.Options=s,r.exports.normalizeOpts=l,r.exports.mergeOpts=a}),,(function(r){var s=RegExp.prototype.hasOwnProperty("sticky");function a(l){this.__input=l||"",this.__input_length=this.__input.length,this.__position=0}a.prototype.restart=function(){this.__position=0},a.prototype.back=function(){this.__position>0&&(this.__position-=1)},a.prototype.hasNext=function(){return this.__position<this.__input_length},a.prototype.next=function(){var l=null;return this.hasNext()&&(l=this.__input.charAt(this.__position),this.__position+=1),l},a.prototype.peek=function(l){var o=null;return l=l||0,l+=this.__position,l>=0&&l<this.__input_length&&(o=this.__input.charAt(l)),o},a.prototype.__match=function(l,o){l.lastIndex=o;var u=l.exec(this.__input);return u&&!(s&&l.sticky)&&u.index!==o&&(u=null),u},a.prototype.test=function(l,o){return o=o||0,o+=this.__position,o>=0&&o<this.__input_length?!!this.__match(l,o):!1},a.prototype.testChar=function(l,o){var u=this.peek(o);return l.lastIndex=0,u!==null&&l.test(u)},a.prototype.match=function(l){var o=this.__match(l,this.__position);return o?this.__position+=o[0].length:o=null,o},a.prototype.read=function(l,o,u){var c="",d;return l&&(d=this.match(l),d&&(c+=d[0])),o&&(d||!l)&&(c+=this.readUntil(o,u)),c},a.prototype.readUntil=function(l,o){var u="",c=this.__position;l.lastIndex=this.__position;var d=l.exec(this.__input);return d?(c=d.index,o&&(c+=d[0].length)):c=this.__input_length,u=this.__input.substring(this.__position,c),this.__position=c,u},a.prototype.readUntilAfter=function(l){return this.readUntil(l,!0)},a.prototype.get_regexp=function(l,o){var u=null,c="g";return o&&s&&(c="y"),typeof l=="string"&&l!==""?u=new RegExp(l,c):l&&(u=new RegExp(l.source,c)),u},a.prototype.get_literal_regexp=function(l){return RegExp(l.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},a.prototype.peekUntilAfter=function(l){var o=this.__position,u=this.readUntilAfter(l);return this.__position=o,u},a.prototype.lookBack=function(l){var o=this.__position-1;return o>=l.length&&this.__input.substring(o-l.length,o).toLowerCase()===l},r.exports.InputScanner=a}),,,,,(function(r){function s(a,l){a=typeof a=="string"?a:a.source,l=typeof l=="string"?l:l.source,this.__directives_block_pattern=new RegExp(a+/ beautify( \w+[:]\w+)+ /.source+l,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(a+/\sbeautify\signore:end\s/.source+l,"g")}s.prototype.get_directives=function(a){if(!a.match(this.__directives_block_pattern))return null;var l={};this.__directive_pattern.lastIndex=0;for(var o=this.__directive_pattern.exec(a);o;)l[o[1]]=o[2],o=this.__directive_pattern.exec(a);return l},s.prototype.readIgnored=function(a){return a.readUntilAfter(this.__directives_end_ignore_pattern)},r.exports.Directives=s}),,(function(r,s,a){var l=a(16).Beautifier,o=a(17).Options;function u(c,d){var m=new l(c,d);return m.beautify()}r.exports=u,r.exports.defaultOptions=function(){return new o}}),(function(r,s,a){var l=a(17).Options,o=a(2).Output,u=a(8).InputScanner,c=a(13).Directives,d=new c(/\/\*/,/\*\//),m=/\r\n|[\r\n]/,f=/\r\n|[\r\n]/g,w=/\s/,p=/(?:\s|\n)+/g,x=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,T=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function y(L,I){this._source_text=L||"",this._options=new l(I),this._ch=null,this._input=null,this.NESTED_AT_RULE={page:!0,"font-face":!0,keyframes:!0,media:!0,supports:!0,document:!0},this.CONDITIONAL_GROUP_RULE={media:!0,supports:!0,document:!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}y.prototype.eatString=function(L){var I="";for(this._ch=this._input.next();this._ch;){if(I+=this._ch,this._ch==="\\")I+=this._input.next();else if(L.indexOf(this._ch)!==-1||this._ch===`
|
|
43
43
|
`)break;this._ch=this._input.next()}return I},y.prototype.eatWhitespace=function(L){for(var I=w.test(this._input.peek()),H=0;w.test(this._input.peek());)this._ch=this._input.next(),L&&this._ch===`
|
|
44
44
|
`&&(H===0||H<this._options.max_preserve_newlines)&&(H++,this._output.add_new_line(!0));return I},y.prototype.foundNestedPseudoClass=function(){for(var L=0,I=1,H=this._input.peek(I);H;){if(H==="{")return!0;if(H==="(")L+=1;else if(H===")"){if(L===0)return!1;L-=1}else if(H===";"||H==="}")return!1;I++,H=this._input.peek(I)}return!1},y.prototype.print_string=function(L){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(L)},y.prototype.preserveSingleSpace=function(L){L&&(this._output.space_before_token=!0)},y.prototype.indent=function(){this._indentLevel++},y.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},y.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var L=this._source_text,I=this._options.eol;I==="auto"&&(I=`
|
|
45
45
|
`,L&&m.test(L||"")&&(I=L.match(m)[0])),L=L.replace(f,`
|
|
46
|
-
`);var H=L.match(/^[\t ]*/)[0];this._output=new o(this._options,H),this._input=new u(L),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var
|
|
47
|
-
`&&A&&this._output.add_new_line()}var Ee=this._output.get_code(I);return Ee},r.exports.Beautifier=y},function(r,s,a){var l=a(6).Options;function o(u){l.call(this,u,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var c=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||c;var d=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var m=0;m<d.length;m++)d[m]!=="expand"?this.brace_style="collapse":this.brace_style=d[m]}o.prototype=new l,r.exports.Options=o}],
|
|
46
|
+
`);var H=L.match(/^[\t ]*/)[0];this._output=new o(this._options,H),this._input=new u(L),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var P=0,b=!1,g=!1,_=!1,N=!1,S=!1,v=this._ch,A=!1,D,k,E;D=this._input.read(p),k=D!=="",E=v,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),v=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var M=this._input.read(x),W=d.get_directives(M);W&&W.ignore==="start"&&(M+=d.readIgnored(this._input)),this.print_string(M),this.eatWhitespace(!0),this._output.add_new_line()}else if(this._ch==="/"&&this._input.peek()==="/")this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(T)),this.eatWhitespace(!0);else if(this._ch==="$"){this.preserveSingleSpace(k),this.print_string(this._ch);var F=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);F.match(/[ :]$/)&&(F=this.eatString(": ").replace(/\s+$/,""),this.print_string(F),this._output.space_before_token=!0),P===0&&F.indexOf(":")!==-1&&(g=!0,this.indent())}else if(this._ch==="@")if(this.preserveSingleSpace(k),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var U=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);U.match(/[ :]$/)&&(U=this.eatString(": ").replace(/\s+$/,""),this.print_string(U),this._output.space_before_token=!0),P===0&&U.indexOf(":")!==-1?(g=!0,this.indent()):U in this.NESTED_AT_RULE?(this._nestedLevel+=1,U in this.CONDITIONAL_GROUP_RULE&&(_=!0)):P===0&&!g&&(N=!0)}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(k),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")g&&(g=!1,this.outdent()),N=!1,_?(_=!1,b=this._indentLevel>=this._nestedLevel):b=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&b&&this._output.previous_line&&this._output.previous_line.item(-1)!=="{"&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,this._options.brace_style==="expand"?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):(E==="("?this._output.space_before_token=!1:E!==","&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if(this._ch==="}")this.outdent(),this._output.add_new_line(),E==="{"&&this._output.trim(!0),g&&(this.outdent(),g=!1),this.print_string(this._ch),b=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&this._input.peek()!=="}"&&this._output.add_new_line(!0),this._input.peek()===")"&&(this._output.trim(!0),this._options.brace_style==="expand"&&this._output.add_new_line(!0));else if(this._ch===":"){for(var O=0;O<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;O++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[O])){A=!0;break}(b||_)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!N&&P===0?(this.print_string(":"),g||(g=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent())):(this._input.lookBack(" ")&&(this._output.space_before_token=!0),this._input.peek()===":"?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":"))}else if(this._ch==='"'||this._ch==="'"){var Z=E==='"'||E==="'";this.preserveSingleSpace(Z||k),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")A=!1,P===0?(g&&(this.outdent(),g=!1),N=!1,this.print_string(this._ch),this.eatWhitespace(!0),this._input.peek()!=="/"&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0);else if(this._ch==="(")if(this._input.lookBack("url"))this.print_string(this._ch),this.eatWhitespace(),P++,this.indent(),this._ch=this._input.next(),this._ch===")"||this._ch==='"'||this._ch==="'"?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),P&&(P--,this.outdent()));else{var Y=!1;this._input.lookBack("with")&&(Y=!0),this.preserveSingleSpace(k||Y),this.print_string(this._ch),g&&E==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),S=!0):(this.eatWhitespace(),P++,this.indent())}else if(this._ch===")")P&&(P--,this.outdent()),S&&this._input.peek()===";"&&this._options.selector_separator_newline&&(S=!1,this.outdent(),this._output.add_new_line()),this.print_string(this._ch);else if(this._ch===",")this.print_string(this._ch),this.eatWhitespace(!0),this._options.selector_separator_newline&&(!g||S)&&P===0&&!N?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!g&&P===0)this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&w.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(k),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),w.test(this._ch)&&(this._ch="");else if(this._ch==="!"&&!this._input.lookBack("\\"))this._output.space_before_token=!0,this.print_string(this._ch);else{var xe=E==='"'||E==="'";this.preserveSingleSpace(xe||k),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
|
|
47
|
+
`&&A&&this._output.add_new_line()}var Ee=this._output.get_code(I);return Ee},r.exports.Beautifier=y}),(function(r,s,a){var l=a(6).Options;function o(u){l.call(this,u,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var c=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||c;var d=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var m=0;m<d.length;m++)d[m]!=="expand"?this.brace_style="collapse":this.brace_style=d[m]}o.prototype=new l,r.exports.Options=o})],e={};function n(r){var s=e[r];if(s!==void 0)return s.exports;var a=e[r]={exports:{}};return t[r](a,a.exports,n),a.exports}var i=n(15);Ja=i})();var zc=Ja,Qa;(function(){var t=[,,(function(r){function s(o){this.__parent=o,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}s.prototype.clone_empty=function(){var o=new s(this.__parent);return o.set_indent(this.__indent_count,this.__alignment_count),o},s.prototype.item=function(o){return o<0?this.__items[this.__items.length+o]:this.__items[o]},s.prototype.has_match=function(o){for(var u=this.__items.length-1;u>=0;u--)if(this.__items[u].match(o))return!0;return!1},s.prototype.set_indent=function(o,u){this.is_empty()&&(this.__indent_count=o||0,this.__alignment_count=u||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},s.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},s.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},s.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var o=this.__parent.current_line;return o.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),o.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),o.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,o.__items[0]===" "&&(o.__items.splice(0,1),o.__character_count-=1),!0}return!1},s.prototype.is_empty=function(){return this.__items.length===0},s.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},s.prototype.push=function(o){this.__items.push(o);var u=o.lastIndexOf(`
|
|
48
48
|
`);u!==-1?this.__character_count=o.length-u:this.__character_count+=o.length},s.prototype.pop=function(){var o=null;return this.is_empty()||(o=this.__items.pop(),this.__character_count-=o.length),o},s.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},s.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},s.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},s.prototype.toString=function(){var o="";return this.is_empty()?this.__parent.indent_empty_lines&&(o=this.__parent.get_indent_string(this.__indent_count)):(o=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),o+=this.__items.join("")),o};function a(o,u){this.__cache=[""],this.__indent_size=o.indent_size,this.__indent_string=o.indent_char,o.indent_with_tabs||(this.__indent_string=new Array(o.indent_size+1).join(o.indent_char)),u=u||"",o.indent_level>0&&(u=new Array(o.indent_level+1).join(this.__indent_string)),this.__base_string=u,this.__base_string_length=u.length}a.prototype.get_indent_size=function(o,u){var c=this.__base_string_length;return u=u||0,o<0&&(c=0),c+=o*this.__indent_size,c+=u,c},a.prototype.get_indent_string=function(o,u){var c=this.__base_string;return u=u||0,o<0&&(o=0,c=""),u+=o*this.__indent_size,this.__ensure_cache(u),c+=this.__cache[u],c},a.prototype.__ensure_cache=function(o){for(;o>=this.__cache.length;)this.__add_column()},a.prototype.__add_column=function(){var o=this.__cache.length,u=0,c="";this.__indent_size&&o>=this.__indent_size&&(u=Math.floor(o/this.__indent_size),o-=u*this.__indent_size,c=new Array(u+1).join(this.__indent_string)),o&&(c+=new Array(o+1).join(" ")),this.__cache.push(c)};function l(o,u){this.__indent_cache=new a(o,u),this.raw=!1,this._end_with_newline=o.end_with_newline,this.indent_size=o.indent_size,this.wrap_line_length=o.wrap_line_length,this.indent_empty_lines=o.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new s(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}l.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},l.prototype.get_line_number=function(){return this.__lines.length},l.prototype.get_indent_string=function(o,u){return this.__indent_cache.get_indent_string(o,u)},l.prototype.get_indent_size=function(o,u){return this.__indent_cache.get_indent_size(o,u)},l.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},l.prototype.add_new_line=function(o){return this.is_empty()||!o&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},l.prototype.get_code=function(o){this.trim(!0);var u=this.current_line.pop();u&&(u[u.length-1]===`
|
|
49
49
|
`&&(u=u.replace(/\n+$/g,"")),this.current_line.push(u)),this._end_with_newline&&this.__add_outputline();var c=this.__lines.join(`
|
|
50
50
|
`);return o!==`
|
|
51
|
-
`&&(c=c.replace(/[\n]/g,o)),c},l.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},l.prototype.set_indent=function(o,u){return o=o||0,u=u||0,this.next_line.set_indent(o,u),this.__lines.length>1?(this.current_line.set_indent(o,u),!0):(this.current_line.set_indent(),!1)},l.prototype.add_raw_token=function(o){for(var u=0;u<o.newlines;u++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(o.whitespace_before),this.current_line.push(o.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},l.prototype.add_token=function(o){this.__add_space_before_token(),this.current_line.push(o),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},l.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},l.prototype.remove_indent=function(o){for(var u=this.__lines.length;o<u;)this.__lines[o]._remove_indent(),o++;this.current_line._remove_wrap_indent()},l.prototype.trim=function(o){for(o=o===void 0?!1:o,this.current_line.trim();o&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},l.prototype.just_added_newline=function(){return this.current_line.is_empty()},l.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},l.prototype.ensure_empty_line_above=function(o,u){for(var c=this.__lines.length-2;c>=0;){var d=this.__lines[c];if(d.is_empty())break;if(d.item(0).indexOf(o)!==0&&d.item(-1)!==u){this.__lines.splice(c+1,0,new s(this)),this.previous_line=this.__lines[this.__lines.length-2];break}c--}},r.exports.Output=l},function(r){function s(a,l,o,u){this.type=a,this.text=l,this.comments_before=null,this.newlines=o||0,this.whitespace_before=u||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}r.exports.Token=s},,,function(r){function s(o,u){this.raw_options=a(o,u),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}s.prototype._get_array=function(o,u){var c=this.raw_options[o],d=u||[];return typeof c=="object"?c!==null&&typeof c.concat=="function"&&(d=c.concat()):typeof c=="string"&&(d=c.split(/[^a-zA-Z0-9_\/\-]+/)),d},s.prototype._get_boolean=function(o,u){var c=this.raw_options[o],d=c===void 0?!!u:!!c;return d},s.prototype._get_characters=function(o,u){var c=this.raw_options[o],d=u||"";return typeof c=="string"&&(d=c.replace(/\\r/,"\r").replace(/\\n/,`
|
|
51
|
+
`&&(c=c.replace(/[\n]/g,o)),c},l.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},l.prototype.set_indent=function(o,u){return o=o||0,u=u||0,this.next_line.set_indent(o,u),this.__lines.length>1?(this.current_line.set_indent(o,u),!0):(this.current_line.set_indent(),!1)},l.prototype.add_raw_token=function(o){for(var u=0;u<o.newlines;u++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(o.whitespace_before),this.current_line.push(o.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},l.prototype.add_token=function(o){this.__add_space_before_token(),this.current_line.push(o),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},l.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},l.prototype.remove_indent=function(o){for(var u=this.__lines.length;o<u;)this.__lines[o]._remove_indent(),o++;this.current_line._remove_wrap_indent()},l.prototype.trim=function(o){for(o=o===void 0?!1:o,this.current_line.trim();o&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},l.prototype.just_added_newline=function(){return this.current_line.is_empty()},l.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},l.prototype.ensure_empty_line_above=function(o,u){for(var c=this.__lines.length-2;c>=0;){var d=this.__lines[c];if(d.is_empty())break;if(d.item(0).indexOf(o)!==0&&d.item(-1)!==u){this.__lines.splice(c+1,0,new s(this)),this.previous_line=this.__lines[this.__lines.length-2];break}c--}},r.exports.Output=l}),(function(r){function s(a,l,o,u){this.type=a,this.text=l,this.comments_before=null,this.newlines=o||0,this.whitespace_before=u||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}r.exports.Token=s}),,,(function(r){function s(o,u){this.raw_options=a(o,u),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}s.prototype._get_array=function(o,u){var c=this.raw_options[o],d=u||[];return typeof c=="object"?c!==null&&typeof c.concat=="function"&&(d=c.concat()):typeof c=="string"&&(d=c.split(/[^a-zA-Z0-9_\/\-]+/)),d},s.prototype._get_boolean=function(o,u){var c=this.raw_options[o],d=c===void 0?!!u:!!c;return d},s.prototype._get_characters=function(o,u){var c=this.raw_options[o],d=u||"";return typeof c=="string"&&(d=c.replace(/\\r/,"\r").replace(/\\n/,`
|
|
52
52
|
`).replace(/\\t/," ")),d},s.prototype._get_number=function(o,u){var c=this.raw_options[o];u=parseInt(u,10),isNaN(u)&&(u=0);var d=parseInt(c,10);return isNaN(d)&&(d=u),d},s.prototype._get_selection=function(o,u,c){var d=this._get_selection_list(o,u,c);if(d.length!==1)throw new Error("Invalid Option Value: The option '"+o+`' can only be one of the following values:
|
|
53
53
|
`+u+`
|
|
54
54
|
You passed in: '`+this.raw_options[o]+"'");return d[0]},s.prototype._get_selection_list=function(o,u,c){if(!u||u.length===0)throw new Error("Selection list cannot be empty.");if(c=c||[u[0]],!this._is_valid_selection(c,u))throw new Error("Invalid Default Value!");var d=this._get_array(o,c);if(!this._is_valid_selection(d,u))throw new Error("Invalid Option Value: The option '"+o+`' can contain only the following values:
|
|
55
55
|
`+u+`
|
|
56
|
-
You passed in: '`+this.raw_options[o]+"'");return d},s.prototype._is_valid_selection=function(o,u){return o.length&&u.length&&!o.some(function(c){return u.indexOf(c)===-1})};function a(o,u){var c={};o=l(o);var d;for(d in o)d!==u&&(c[d]=o[d]);if(u&&o[u])for(d in o[u])c[d]=o[u][d];return c}function l(o){var u={},c;for(c in o){var d=c.replace(/-/g,"_");u[d]=o[c]}return u}r.exports.Options=s,r.exports.normalizeOpts=l,r.exports.mergeOpts=a},,function(r){var s=RegExp.prototype.hasOwnProperty("sticky");function a(l){this.__input=l||"",this.__input_length=this.__input.length,this.__position=0}a.prototype.restart=function(){this.__position=0},a.prototype.back=function(){this.__position>0&&(this.__position-=1)},a.prototype.hasNext=function(){return this.__position<this.__input_length},a.prototype.next=function(){var l=null;return this.hasNext()&&(l=this.__input.charAt(this.__position),this.__position+=1),l},a.prototype.peek=function(l){var o=null;return l=l||0,l+=this.__position,l>=0&&l<this.__input_length&&(o=this.__input.charAt(l)),o},a.prototype.__match=function(l,o){l.lastIndex=o;var u=l.exec(this.__input);return u&&!(s&&l.sticky)&&u.index!==o&&(u=null),u},a.prototype.test=function(l,o){return o=o||0,o+=this.__position,o>=0&&o<this.__input_length?!!this.__match(l,o):!1},a.prototype.testChar=function(l,o){var u=this.peek(o);return l.lastIndex=0,u!==null&&l.test(u)},a.prototype.match=function(l){var o=this.__match(l,this.__position);return o?this.__position+=o[0].length:o=null,o},a.prototype.read=function(l,o,u){var c="",d;return l&&(d=this.match(l),d&&(c+=d[0])),o&&(d||!l)&&(c+=this.readUntil(o,u)),c},a.prototype.readUntil=function(l,o){var u="",c=this.__position;l.lastIndex=this.__position;var d=l.exec(this.__input);return d?(c=d.index,o&&(c+=d[0].length)):c=this.__input_length,u=this.__input.substring(this.__position,c),this.__position=c,u},a.prototype.readUntilAfter=function(l){return this.readUntil(l,!0)},a.prototype.get_regexp=function(l,o){var u=null,c="g";return o&&s&&(c="y"),typeof l=="string"&&l!==""?u=new RegExp(l,c):l&&(u=new RegExp(l.source,c)),u},a.prototype.get_literal_regexp=function(l){return RegExp(l.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},a.prototype.peekUntilAfter=function(l){var o=this.__position,u=this.readUntilAfter(l);return this.__position=o,u},a.prototype.lookBack=function(l){var o=this.__position-1;return o>=l.length&&this.__input.substring(o-l.length,o).toLowerCase()===l},r.exports.InputScanner=a},function(r,s,a){var l=a(8).InputScanner,o=a(3).Token,u=a(10).TokenStream,c=a(11).WhitespacePattern,d={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},m=function(f,w){this._input=new l(f),this._options=w||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new c(this._input)};m.prototype.tokenize=function(){this._input.restart(),this.__tokens=new u,this._reset();for(var f,w=new o(d.START,""),p=null,x=[],T=new u;w.type!==d.EOF;){for(f=this._get_next_token(w,p);this._is_comment(f);)T.add(f),f=this._get_next_token(w,p);T.isEmpty()||(f.comments_before=T,T=new u),f.parent=p,this._is_opening(f)?(x.push(p),p=f):p&&this._is_closing(f,p)&&(f.opened=p,p.closed=f,p=x.pop(),f.parent=p),f.previous=w,w.next=f,this.__tokens.add(f),w=f}return this.__tokens},m.prototype._is_first_token=function(){return this.__tokens.isEmpty()},m.prototype._reset=function(){},m.prototype._get_next_token=function(f,w){this._readWhitespace();var p=this._input.read(/.+/g);return p?this._create_token(d.RAW,p):this._create_token(d.EOF,"")},m.prototype._is_comment=function(f){return!1},m.prototype._is_opening=function(f){return!1},m.prototype._is_closing=function(f,w){return!1},m.prototype._create_token=function(f,w){var p=new o(f,w,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return p},m.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},r.exports.Tokenizer=m,r.exports.TOKEN=d},function(r){function s(a){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=a}s.prototype.restart=function(){this.__position=0},s.prototype.isEmpty=function(){return this.__tokens_length===0},s.prototype.hasNext=function(){return this.__position<this.__tokens_length},s.prototype.next=function(){var a=null;return this.hasNext()&&(a=this.__tokens[this.__position],this.__position+=1),a},s.prototype.peek=function(a){var l=null;return a=a||0,a+=this.__position,a>=0&&a<this.__tokens_length&&(l=this.__tokens[a]),l},s.prototype.add=function(a){this.__parent_token&&(a.parent=this.__parent_token),this.__tokens.push(a),this.__tokens_length+=1},r.exports.TokenStream=s},function(r,s,a){var l=a(12).Pattern;function o(u,c){l.call(this,u,c),c?this._line_regexp=this._input.get_regexp(c._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}o.prototype=new l,o.prototype.__set_whitespace_patterns=function(u,c){u+="\\t ",c+="\\n\\r",this._match_pattern=this._input.get_regexp("["+u+c+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+c+"]")},o.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var u=this._input.read(this._match_pattern);if(u===" ")this.whitespace_before_token=" ";else if(u){var c=this.__split(this._newline_regexp,u);this.newline_count=c.length-1,this.whitespace_before_token=c[this.newline_count]}return u},o.prototype.matching=function(u,c){var d=this._create();return d.__set_whitespace_patterns(u,c),d._update(),d},o.prototype._create=function(){return new o(this._input,this)},o.prototype.__split=function(u,c){u.lastIndex=0;for(var d=0,m=[],f=u.exec(c);f;)m.push(c.substring(d,f.index)),d=f.index+f[0].length,f=u.exec(c);return d<c.length?m.push(c.substring(d,c.length)):m.push(""),m},r.exports.WhitespacePattern=o},function(r){function s(a,l){this._input=a,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,l&&(this._starting_pattern=this._input.get_regexp(l._starting_pattern,!0),this._match_pattern=this._input.get_regexp(l._match_pattern,!0),this._until_pattern=this._input.get_regexp(l._until_pattern),this._until_after=l._until_after)}s.prototype.read=function(){var a=this._input.read(this._starting_pattern);return(!this._starting_pattern||a)&&(a+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),a},s.prototype.read_match=function(){return this._input.match(this._match_pattern)},s.prototype.until_after=function(a){var l=this._create();return l._until_after=!0,l._until_pattern=this._input.get_regexp(a),l._update(),l},s.prototype.until=function(a){var l=this._create();return l._until_after=!1,l._until_pattern=this._input.get_regexp(a),l._update(),l},s.prototype.starting_with=function(a){var l=this._create();return l._starting_pattern=this._input.get_regexp(a,!0),l._update(),l},s.prototype.matching=function(a){var l=this._create();return l._match_pattern=this._input.get_regexp(a,!0),l._update(),l},s.prototype._create=function(){return new s(this._input,this)},s.prototype._update=function(){},r.exports.Pattern=s},function(r){function s(a,l){a=typeof a=="string"?a:a.source,l=typeof l=="string"?l:l.source,this.__directives_block_pattern=new RegExp(a+/ beautify( \w+[:]\w+)+ /.source+l,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(a+/\sbeautify\signore:end\s/.source+l,"g")}s.prototype.get_directives=function(a){if(!a.match(this.__directives_block_pattern))return null;var l={};this.__directive_pattern.lastIndex=0;for(var o=this.__directive_pattern.exec(a);o;)l[o[1]]=o[2],o=this.__directive_pattern.exec(a);return l},s.prototype.readIgnored=function(a){return a.readUntilAfter(this.__directives_end_ignore_pattern)},r.exports.Directives=s},function(r,s,a){var l=a(12).Pattern,o={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function u(c,d){l.call(this,c,d),this.__template_pattern=null,this._disabled=Object.assign({},o),this._excluded=Object.assign({},o),d&&(this.__template_pattern=this._input.get_regexp(d.__template_pattern),this._excluded=Object.assign(this._excluded,d._excluded),this._disabled=Object.assign(this._disabled,d._disabled));var m=new l(c);this.__patterns={handlebars_comment:m.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:m.starting_with(/{{{/).until_after(/}}}/),handlebars:m.starting_with(/{{/).until_after(/}}/),php:m.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:m.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:m.starting_with(/{%/).until_after(/%}/),django_value:m.starting_with(/{{/).until_after(/}}/),django_comment:m.starting_with(/{#/).until_after(/#}/),smarty:m.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:m.starting_with(/{\*/).until_after(/\*}/),smarty_literal:m.starting_with(/{literal}/).until_after(/{\/literal}/)}}u.prototype=new l,u.prototype._create=function(){return new u(this._input,this)},u.prototype._update=function(){this.__set_templated_pattern()},u.prototype.disable=function(c){var d=this._create();return d._disabled[c]=!0,d._update(),d},u.prototype.read_options=function(c){var d=this._create();for(var m in o)d._disabled[m]=c.templating.indexOf(m)===-1;return d._update(),d},u.prototype.exclude=function(c){var d=this._create();return d._excluded[c]=!0,d._update(),d},u.prototype.read=function(){var c="";this._match_pattern?c=this._input.read(this._starting_pattern):c=this._input.read(this._starting_pattern,this.__template_pattern);for(var d=this._read_template();d;)this._match_pattern?d+=this._input.read(this._match_pattern):d+=this._input.readUntil(this.__template_pattern),c+=d,d=this._read_template();return this._until_after&&(c+=this._input.readUntilAfter(this._until_pattern)),c},u.prototype.__set_templated_pattern=function(){var c=[];this._disabled.php||c.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||c.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||c.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(c.push(this.__patterns.django._starting_pattern.source),c.push(this.__patterns.django_value._starting_pattern.source),c.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||c.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&c.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+c.join("|")+")")},u.prototype._read_template=function(){var c="",d=this._input.peek();if(d==="<"){var m=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&m==="?"&&(c=c||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&m==="%"&&(c=c||this.__patterns.erb.read())}else d==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(c=c||this.__patterns.handlebars_comment.read(),c=c||this.__patterns.handlebars_unescaped.read(),c=c||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(c=c||this.__patterns.django_value.read()),this._excluded.django||(c=c||this.__patterns.django_comment.read(),c=c||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(c=c||this.__patterns.smarty_comment.read(),c=c||this.__patterns.smarty_literal.read(),c=c||this.__patterns.smarty.read()));return c},r.exports.TemplatablePattern=u},,,,function(r,s,a){var l=a(19).Beautifier,o=a(20).Options;function u(c,d,m,f){var w=new l(c,d,m,f);return w.beautify()}r.exports=u,r.exports.defaultOptions=function(){return new o}},function(r,s,a){var l=a(20).Options,o=a(2).Output,u=a(21).Tokenizer,c=a(21).TOKEN,d=/\r\n|[\r\n]/,m=/\r\n|[\r\n]/g,f=function(b,g){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=b.max_preserve_newlines,this.preserve_newlines=b.preserve_newlines,this._output=new o(b,g)};f.prototype.current_line_has_match=function(b){return this._output.current_line.has_match(b)},f.prototype.set_space_before_token=function(b,g){this._output.space_before_token=b,this._output.non_breaking_space=g},f.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},f.prototype.add_raw_token=function(b){this._output.add_raw_token(b)},f.prototype.print_preserved_newlines=function(b){var g=0;b.type!==c.TEXT&&b.previous.type!==c.TEXT&&(g=b.newlines?1:0),this.preserve_newlines&&(g=b.newlines<this.max_preserve_newlines+1?b.newlines:this.max_preserve_newlines+1);for(var _=0;_<g;_++)this.print_newline(_>0);return g!==0},f.prototype.traverse_whitespace=function(b){return b.whitespace_before||b.newlines?(this.print_preserved_newlines(b)||(this._output.space_before_token=!0),!0):!1},f.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},f.prototype.print_newline=function(b){this._output.add_new_line(b)},f.prototype.print_token=function(b){b.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(b.text))},f.prototype.indent=function(){this.indent_level++},f.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},f.prototype.get_full_indent=function(b){return b=this.indent_level+(b||0),b<1?"":this._output.get_indent_string(b)};var w=function(b){for(var g=null,_=b.next;_.type!==c.EOF&&b.closed!==_;){if(_.type===c.ATTRIBUTE&&_.text==="type"){_.next&&_.next.type===c.EQUALS&&_.next.next&&_.next.next.type===c.VALUE&&(g=_.next.next.text);break}_=_.next}return g},p=function(b,g){var _=null,N=null;return g.closed?(b==="script"?_="text/javascript":b==="style"&&(_="text/css"),_=w(g)||_,_.search("text/css")>-1?N="css":_.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?N="javascript":_.search(/(text|application|dojo)\/(x-)?(html)/)>-1?N="html":_.search(/test\/null/)>-1&&(N="null"),N):null};function x(b,g){return g.indexOf(b)!==-1}function T(b,g,_){this.parent=b||null,this.tag=g?g.tag_name:"",this.indent_level=_||0,this.parser_token=g||null}function y(b){this._printer=b,this._current_frame=null}y.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},y.prototype.record_tag=function(b){var g=new T(this._current_frame,b,this._printer.indent_level);this._current_frame=g},y.prototype._try_pop_frame=function(b){var g=null;return b&&(g=b.parser_token,this._printer.indent_level=b.indent_level,this._current_frame=b.parent),g},y.prototype._get_frame=function(b,g){for(var _=this._current_frame;_&&b.indexOf(_.tag)===-1;){if(g&&g.indexOf(_.tag)!==-1){_=null;break}_=_.parent}return _},y.prototype.try_pop=function(b,g){var _=this._get_frame([b],g);return this._try_pop_frame(_)},y.prototype.indent_to_tag=function(b){var g=this._get_frame(b);g&&(this._printer.indent_level=g.indent_level)};function L(b,g,_,N){this._source_text=b||"",g=g||{},this._js_beautify=_,this._css_beautify=N,this._tag_stack=null;var S=new l(g,"html");this._options=S,this._is_wrap_attributes_force=this._options.wrap_attributes.substr(0,5)==="force",this._is_wrap_attributes_force_expand_multiline=this._options.wrap_attributes==="force-expand-multiline",this._is_wrap_attributes_force_aligned=this._options.wrap_attributes==="force-aligned",this._is_wrap_attributes_aligned_multiple=this._options.wrap_attributes==="aligned-multiple",this._is_wrap_attributes_preserve=this._options.wrap_attributes.substr(0,8)==="preserve",this._is_wrap_attributes_preserve_aligned=this._options.wrap_attributes==="preserve-aligned"}L.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var b=this._source_text,g=this._options.eol;this._options.eol==="auto"&&(g=`
|
|
56
|
+
You passed in: '`+this.raw_options[o]+"'");return d},s.prototype._is_valid_selection=function(o,u){return o.length&&u.length&&!o.some(function(c){return u.indexOf(c)===-1})};function a(o,u){var c={};o=l(o);var d;for(d in o)d!==u&&(c[d]=o[d]);if(u&&o[u])for(d in o[u])c[d]=o[u][d];return c}function l(o){var u={},c;for(c in o){var d=c.replace(/-/g,"_");u[d]=o[c]}return u}r.exports.Options=s,r.exports.normalizeOpts=l,r.exports.mergeOpts=a}),,(function(r){var s=RegExp.prototype.hasOwnProperty("sticky");function a(l){this.__input=l||"",this.__input_length=this.__input.length,this.__position=0}a.prototype.restart=function(){this.__position=0},a.prototype.back=function(){this.__position>0&&(this.__position-=1)},a.prototype.hasNext=function(){return this.__position<this.__input_length},a.prototype.next=function(){var l=null;return this.hasNext()&&(l=this.__input.charAt(this.__position),this.__position+=1),l},a.prototype.peek=function(l){var o=null;return l=l||0,l+=this.__position,l>=0&&l<this.__input_length&&(o=this.__input.charAt(l)),o},a.prototype.__match=function(l,o){l.lastIndex=o;var u=l.exec(this.__input);return u&&!(s&&l.sticky)&&u.index!==o&&(u=null),u},a.prototype.test=function(l,o){return o=o||0,o+=this.__position,o>=0&&o<this.__input_length?!!this.__match(l,o):!1},a.prototype.testChar=function(l,o){var u=this.peek(o);return l.lastIndex=0,u!==null&&l.test(u)},a.prototype.match=function(l){var o=this.__match(l,this.__position);return o?this.__position+=o[0].length:o=null,o},a.prototype.read=function(l,o,u){var c="",d;return l&&(d=this.match(l),d&&(c+=d[0])),o&&(d||!l)&&(c+=this.readUntil(o,u)),c},a.prototype.readUntil=function(l,o){var u="",c=this.__position;l.lastIndex=this.__position;var d=l.exec(this.__input);return d?(c=d.index,o&&(c+=d[0].length)):c=this.__input_length,u=this.__input.substring(this.__position,c),this.__position=c,u},a.prototype.readUntilAfter=function(l){return this.readUntil(l,!0)},a.prototype.get_regexp=function(l,o){var u=null,c="g";return o&&s&&(c="y"),typeof l=="string"&&l!==""?u=new RegExp(l,c):l&&(u=new RegExp(l.source,c)),u},a.prototype.get_literal_regexp=function(l){return RegExp(l.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},a.prototype.peekUntilAfter=function(l){var o=this.__position,u=this.readUntilAfter(l);return this.__position=o,u},a.prototype.lookBack=function(l){var o=this.__position-1;return o>=l.length&&this.__input.substring(o-l.length,o).toLowerCase()===l},r.exports.InputScanner=a}),(function(r,s,a){var l=a(8).InputScanner,o=a(3).Token,u=a(10).TokenStream,c=a(11).WhitespacePattern,d={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},m=function(f,w){this._input=new l(f),this._options=w||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new c(this._input)};m.prototype.tokenize=function(){this._input.restart(),this.__tokens=new u,this._reset();for(var f,w=new o(d.START,""),p=null,x=[],T=new u;w.type!==d.EOF;){for(f=this._get_next_token(w,p);this._is_comment(f);)T.add(f),f=this._get_next_token(w,p);T.isEmpty()||(f.comments_before=T,T=new u),f.parent=p,this._is_opening(f)?(x.push(p),p=f):p&&this._is_closing(f,p)&&(f.opened=p,p.closed=f,p=x.pop(),f.parent=p),f.previous=w,w.next=f,this.__tokens.add(f),w=f}return this.__tokens},m.prototype._is_first_token=function(){return this.__tokens.isEmpty()},m.prototype._reset=function(){},m.prototype._get_next_token=function(f,w){this._readWhitespace();var p=this._input.read(/.+/g);return p?this._create_token(d.RAW,p):this._create_token(d.EOF,"")},m.prototype._is_comment=function(f){return!1},m.prototype._is_opening=function(f){return!1},m.prototype._is_closing=function(f,w){return!1},m.prototype._create_token=function(f,w){var p=new o(f,w,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return p},m.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},r.exports.Tokenizer=m,r.exports.TOKEN=d}),(function(r){function s(a){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=a}s.prototype.restart=function(){this.__position=0},s.prototype.isEmpty=function(){return this.__tokens_length===0},s.prototype.hasNext=function(){return this.__position<this.__tokens_length},s.prototype.next=function(){var a=null;return this.hasNext()&&(a=this.__tokens[this.__position],this.__position+=1),a},s.prototype.peek=function(a){var l=null;return a=a||0,a+=this.__position,a>=0&&a<this.__tokens_length&&(l=this.__tokens[a]),l},s.prototype.add=function(a){this.__parent_token&&(a.parent=this.__parent_token),this.__tokens.push(a),this.__tokens_length+=1},r.exports.TokenStream=s}),(function(r,s,a){var l=a(12).Pattern;function o(u,c){l.call(this,u,c),c?this._line_regexp=this._input.get_regexp(c._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}o.prototype=new l,o.prototype.__set_whitespace_patterns=function(u,c){u+="\\t ",c+="\\n\\r",this._match_pattern=this._input.get_regexp("["+u+c+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+c+"]")},o.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var u=this._input.read(this._match_pattern);if(u===" ")this.whitespace_before_token=" ";else if(u){var c=this.__split(this._newline_regexp,u);this.newline_count=c.length-1,this.whitespace_before_token=c[this.newline_count]}return u},o.prototype.matching=function(u,c){var d=this._create();return d.__set_whitespace_patterns(u,c),d._update(),d},o.prototype._create=function(){return new o(this._input,this)},o.prototype.__split=function(u,c){u.lastIndex=0;for(var d=0,m=[],f=u.exec(c);f;)m.push(c.substring(d,f.index)),d=f.index+f[0].length,f=u.exec(c);return d<c.length?m.push(c.substring(d,c.length)):m.push(""),m},r.exports.WhitespacePattern=o}),(function(r){function s(a,l){this._input=a,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,l&&(this._starting_pattern=this._input.get_regexp(l._starting_pattern,!0),this._match_pattern=this._input.get_regexp(l._match_pattern,!0),this._until_pattern=this._input.get_regexp(l._until_pattern),this._until_after=l._until_after)}s.prototype.read=function(){var a=this._input.read(this._starting_pattern);return(!this._starting_pattern||a)&&(a+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),a},s.prototype.read_match=function(){return this._input.match(this._match_pattern)},s.prototype.until_after=function(a){var l=this._create();return l._until_after=!0,l._until_pattern=this._input.get_regexp(a),l._update(),l},s.prototype.until=function(a){var l=this._create();return l._until_after=!1,l._until_pattern=this._input.get_regexp(a),l._update(),l},s.prototype.starting_with=function(a){var l=this._create();return l._starting_pattern=this._input.get_regexp(a,!0),l._update(),l},s.prototype.matching=function(a){var l=this._create();return l._match_pattern=this._input.get_regexp(a,!0),l._update(),l},s.prototype._create=function(){return new s(this._input,this)},s.prototype._update=function(){},r.exports.Pattern=s}),(function(r){function s(a,l){a=typeof a=="string"?a:a.source,l=typeof l=="string"?l:l.source,this.__directives_block_pattern=new RegExp(a+/ beautify( \w+[:]\w+)+ /.source+l,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(a+/\sbeautify\signore:end\s/.source+l,"g")}s.prototype.get_directives=function(a){if(!a.match(this.__directives_block_pattern))return null;var l={};this.__directive_pattern.lastIndex=0;for(var o=this.__directive_pattern.exec(a);o;)l[o[1]]=o[2],o=this.__directive_pattern.exec(a);return l},s.prototype.readIgnored=function(a){return a.readUntilAfter(this.__directives_end_ignore_pattern)},r.exports.Directives=s}),(function(r,s,a){var l=a(12).Pattern,o={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function u(c,d){l.call(this,c,d),this.__template_pattern=null,this._disabled=Object.assign({},o),this._excluded=Object.assign({},o),d&&(this.__template_pattern=this._input.get_regexp(d.__template_pattern),this._excluded=Object.assign(this._excluded,d._excluded),this._disabled=Object.assign(this._disabled,d._disabled));var m=new l(c);this.__patterns={handlebars_comment:m.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:m.starting_with(/{{{/).until_after(/}}}/),handlebars:m.starting_with(/{{/).until_after(/}}/),php:m.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:m.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:m.starting_with(/{%/).until_after(/%}/),django_value:m.starting_with(/{{/).until_after(/}}/),django_comment:m.starting_with(/{#/).until_after(/#}/),smarty:m.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:m.starting_with(/{\*/).until_after(/\*}/),smarty_literal:m.starting_with(/{literal}/).until_after(/{\/literal}/)}}u.prototype=new l,u.prototype._create=function(){return new u(this._input,this)},u.prototype._update=function(){this.__set_templated_pattern()},u.prototype.disable=function(c){var d=this._create();return d._disabled[c]=!0,d._update(),d},u.prototype.read_options=function(c){var d=this._create();for(var m in o)d._disabled[m]=c.templating.indexOf(m)===-1;return d._update(),d},u.prototype.exclude=function(c){var d=this._create();return d._excluded[c]=!0,d._update(),d},u.prototype.read=function(){var c="";this._match_pattern?c=this._input.read(this._starting_pattern):c=this._input.read(this._starting_pattern,this.__template_pattern);for(var d=this._read_template();d;)this._match_pattern?d+=this._input.read(this._match_pattern):d+=this._input.readUntil(this.__template_pattern),c+=d,d=this._read_template();return this._until_after&&(c+=this._input.readUntilAfter(this._until_pattern)),c},u.prototype.__set_templated_pattern=function(){var c=[];this._disabled.php||c.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||c.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||c.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(c.push(this.__patterns.django._starting_pattern.source),c.push(this.__patterns.django_value._starting_pattern.source),c.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||c.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&c.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+c.join("|")+")")},u.prototype._read_template=function(){var c="",d=this._input.peek();if(d==="<"){var m=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&m==="?"&&(c=c||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&m==="%"&&(c=c||this.__patterns.erb.read())}else d==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(c=c||this.__patterns.handlebars_comment.read(),c=c||this.__patterns.handlebars_unescaped.read(),c=c||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(c=c||this.__patterns.django_value.read()),this._excluded.django||(c=c||this.__patterns.django_comment.read(),c=c||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(c=c||this.__patterns.smarty_comment.read(),c=c||this.__patterns.smarty_literal.read(),c=c||this.__patterns.smarty.read()));return c},r.exports.TemplatablePattern=u}),,,,(function(r,s,a){var l=a(19).Beautifier,o=a(20).Options;function u(c,d,m,f){var w=new l(c,d,m,f);return w.beautify()}r.exports=u,r.exports.defaultOptions=function(){return new o}}),(function(r,s,a){var l=a(20).Options,o=a(2).Output,u=a(21).Tokenizer,c=a(21).TOKEN,d=/\r\n|[\r\n]/,m=/\r\n|[\r\n]/g,f=function(b,g){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=b.max_preserve_newlines,this.preserve_newlines=b.preserve_newlines,this._output=new o(b,g)};f.prototype.current_line_has_match=function(b){return this._output.current_line.has_match(b)},f.prototype.set_space_before_token=function(b,g){this._output.space_before_token=b,this._output.non_breaking_space=g},f.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},f.prototype.add_raw_token=function(b){this._output.add_raw_token(b)},f.prototype.print_preserved_newlines=function(b){var g=0;b.type!==c.TEXT&&b.previous.type!==c.TEXT&&(g=b.newlines?1:0),this.preserve_newlines&&(g=b.newlines<this.max_preserve_newlines+1?b.newlines:this.max_preserve_newlines+1);for(var _=0;_<g;_++)this.print_newline(_>0);return g!==0},f.prototype.traverse_whitespace=function(b){return b.whitespace_before||b.newlines?(this.print_preserved_newlines(b)||(this._output.space_before_token=!0),!0):!1},f.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},f.prototype.print_newline=function(b){this._output.add_new_line(b)},f.prototype.print_token=function(b){b.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(b.text))},f.prototype.indent=function(){this.indent_level++},f.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},f.prototype.get_full_indent=function(b){return b=this.indent_level+(b||0),b<1?"":this._output.get_indent_string(b)};var w=function(b){for(var g=null,_=b.next;_.type!==c.EOF&&b.closed!==_;){if(_.type===c.ATTRIBUTE&&_.text==="type"){_.next&&_.next.type===c.EQUALS&&_.next.next&&_.next.next.type===c.VALUE&&(g=_.next.next.text);break}_=_.next}return g},p=function(b,g){var _=null,N=null;return g.closed?(b==="script"?_="text/javascript":b==="style"&&(_="text/css"),_=w(g)||_,_.search("text/css")>-1?N="css":_.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?N="javascript":_.search(/(text|application|dojo)\/(x-)?(html)/)>-1?N="html":_.search(/test\/null/)>-1&&(N="null"),N):null};function x(b,g){return g.indexOf(b)!==-1}function T(b,g,_){this.parent=b||null,this.tag=g?g.tag_name:"",this.indent_level=_||0,this.parser_token=g||null}function y(b){this._printer=b,this._current_frame=null}y.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},y.prototype.record_tag=function(b){var g=new T(this._current_frame,b,this._printer.indent_level);this._current_frame=g},y.prototype._try_pop_frame=function(b){var g=null;return b&&(g=b.parser_token,this._printer.indent_level=b.indent_level,this._current_frame=b.parent),g},y.prototype._get_frame=function(b,g){for(var _=this._current_frame;_&&b.indexOf(_.tag)===-1;){if(g&&g.indexOf(_.tag)!==-1){_=null;break}_=_.parent}return _},y.prototype.try_pop=function(b,g){var _=this._get_frame([b],g);return this._try_pop_frame(_)},y.prototype.indent_to_tag=function(b){var g=this._get_frame(b);g&&(this._printer.indent_level=g.indent_level)};function L(b,g,_,N){this._source_text=b||"",g=g||{},this._js_beautify=_,this._css_beautify=N,this._tag_stack=null;var S=new l(g,"html");this._options=S,this._is_wrap_attributes_force=this._options.wrap_attributes.substr(0,5)==="force",this._is_wrap_attributes_force_expand_multiline=this._options.wrap_attributes==="force-expand-multiline",this._is_wrap_attributes_force_aligned=this._options.wrap_attributes==="force-aligned",this._is_wrap_attributes_aligned_multiple=this._options.wrap_attributes==="aligned-multiple",this._is_wrap_attributes_preserve=this._options.wrap_attributes.substr(0,8)==="preserve",this._is_wrap_attributes_preserve_aligned=this._options.wrap_attributes==="preserve-aligned"}L.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var b=this._source_text,g=this._options.eol;this._options.eol==="auto"&&(g=`
|
|
57
57
|
`,b&&d.test(b)&&(g=b.match(d)[0])),b=b.replace(m,`
|
|
58
|
-
`);var _=b.match(/^[\t ]*/)[0],N={text:"",type:""},S=new I,v=new f(this._options,_),A=new u(b,this._options).tokenize();this._tag_stack=new y(v);for(var
|
|
58
|
+
`);var _=b.match(/^[\t ]*/)[0],N={text:"",type:""},S=new I,v=new f(this._options,_),A=new u(b,this._options).tokenize();this._tag_stack=new y(v);for(var D=null,k=A.next();k.type!==c.EOF;)k.type===c.TAG_OPEN||k.type===c.COMMENT?(D=this._handle_tag_open(v,k,S,N,A),S=D):k.type===c.ATTRIBUTE||k.type===c.EQUALS||k.type===c.VALUE||k.type===c.TEXT&&!S.tag_complete?D=this._handle_inside_tag(v,k,S,N):k.type===c.TAG_CLOSE?D=this._handle_tag_close(v,k,S):k.type===c.TEXT?D=this._handle_text(v,k,S):k.type===c.CONTROL_FLOW_OPEN?D=this._handle_control_flow_open(v,k):k.type===c.CONTROL_FLOW_CLOSE?D=this._handle_control_flow_close(v,k):v.add_raw_token(k),N=D,k=A.next();var E=v._output.get_code(g);return E},L.prototype._handle_control_flow_open=function(b,g){var _={text:g.text,type:g.type};return b.set_space_before_token(g.newlines||g.whitespace_before!=="",!0),g.newlines?b.print_preserved_newlines(g):b.set_space_before_token(g.newlines||g.whitespace_before!=="",!0),b.print_token(g),b.indent(),_},L.prototype._handle_control_flow_close=function(b,g){var _={text:g.text,type:g.type};return b.deindent(),g.newlines?b.print_preserved_newlines(g):b.set_space_before_token(g.newlines||g.whitespace_before!=="",!0),b.print_token(g),_},L.prototype._handle_tag_close=function(b,g,_){var N={text:g.text,type:g.type};return b.alignment_size=0,_.tag_complete=!0,b.set_space_before_token(g.newlines||g.whitespace_before!=="",!0),_.is_unformatted?b.add_raw_token(g):(_.tag_start_char==="<"&&(b.set_space_before_token(g.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&_.has_wrapped_attrs&&b.print_newline(!1)),b.print_token(g)),_.indent_content&&!(_.is_unformatted||_.is_content_unformatted)&&(b.indent(),_.indent_content=!1),!_.is_inline_element&&!(_.is_unformatted||_.is_content_unformatted)&&b.set_wrap_point(),N},L.prototype._handle_inside_tag=function(b,g,_,N){var S=_.has_wrapped_attrs,v={text:g.text,type:g.type};return b.set_space_before_token(g.newlines||g.whitespace_before!=="",!0),_.is_unformatted?b.add_raw_token(g):_.tag_start_char==="{"&&g.type===c.TEXT?b.print_preserved_newlines(g)?(g.newlines=0,b.add_raw_token(g)):b.print_token(g):(g.type===c.ATTRIBUTE?b.set_space_before_token(!0):(g.type===c.EQUALS||g.type===c.VALUE&&g.previous.type===c.EQUALS)&&b.set_space_before_token(!1),g.type===c.ATTRIBUTE&&_.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(b.traverse_whitespace(g),S=S||g.newlines!==0),this._is_wrap_attributes_force&&_.attr_count>=this._options.wrap_attributes_min_attrs&&(N.type!==c.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(b.print_newline(!1),S=!0)),b.print_token(g),S=S||b.previous_token_wrapped(),_.has_wrapped_attrs=S),v},L.prototype._handle_text=function(b,g,_){var N={text:g.text,type:"TK_CONTENT"};return _.custom_beautifier_name?this._print_custom_beatifier_text(b,g,_):_.is_unformatted||_.is_content_unformatted?b.add_raw_token(g):(b.traverse_whitespace(g),b.print_token(g)),N},L.prototype._print_custom_beatifier_text=function(b,g,_){var N=this;if(g.text!==""){var S=g.text,v,A=1,D="",k="";_.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?v=this._js_beautify:_.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?v=this._css_beautify:_.custom_beautifier_name==="html"&&(v=function(O,Z){var Y=new L(O,Z,N._js_beautify,N._css_beautify);return Y.beautify()}),this._options.indent_scripts==="keep"?A=0:this._options.indent_scripts==="separate"&&(A=-b.indent_level);var E=b.get_full_indent(A);if(S=S.replace(/\n[ \t]*$/,""),_.custom_beautifier_name!=="html"&&S[0]==="<"&&S.match(/^(<!--|<!\[CDATA\[)/)){var M=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(S);if(!M){b.add_raw_token(g);return}D=E+M[1]+`
|
|
59
59
|
`,S=M[4],M[5]&&(k=E+M[5]),S=S.replace(/\n[ \t]*$/,""),(M[2]||M[3].indexOf(`
|
|
60
|
-
`)!==-1)&&(M=M[3].match(/[ \t]+$/),M&&(g.whitespace_before=M[0]))}if(S)if(v){var
|
|
61
|
-
`};
|
|
60
|
+
`)!==-1)&&(M=M[3].match(/[ \t]+$/),M&&(g.whitespace_before=M[0]))}if(S)if(v){var W=function(){this.eol=`
|
|
61
|
+
`};W.prototype=this._options.raw_options;var F=new W;S=v(E+S,F)}else{var U=g.whitespace_before;U&&(S=S.replace(new RegExp(`
|
|
62
62
|
(`+U+")?","g"),`
|
|
63
63
|
`)),S=E+S.replace(/\n/g,`
|
|
64
|
-
`+E)}
|
|
65
|
-
`+k:S=
|
|
66
|
-
`)===-1||(_.is_inline_element||_.is_unformatted||b.print_newline(!1),this._calcluate_parent_multiline(b,_))}else if(_.is_end_tag){var A=!1;A=_.start_tag_token&&_.start_tag_token.multiline_content,A=A||!_.is_inline_element&&!(N.is_inline_element||N.is_unformatted)&&!(S.type===c.TAG_CLOSE&&_.start_tag_token===N)&&S.type!=="TK_CONTENT",(_.is_content_unformatted||_.is_unformatted)&&(A=!1),A&&b.print_newline(!1)}else _.indent_content=!_.custom_beautifier_name,_.tag_start_char==="<"&&(_.tag_name==="html"?_.indent_content=this._options.indent_inner_html:_.tag_name==="head"?_.indent_content=this._options.indent_head_inner_html:_.tag_name==="body"&&(_.indent_content=this._options.indent_body_inner_html)),!(_.is_inline_element||_.is_unformatted)&&(S.type!=="TK_CONTENT"||_.is_content_unformatted)&&b.print_newline(!1),this._calcluate_parent_multiline(b,_)},L.prototype._calcluate_parent_multiline=function(b,g){g.parent&&b._output.just_added_newline()&&!((g.is_inline_element||g.is_unformatted)&&g.parent.is_inline_element)&&(g.parent.multiline_content=!0)};var H=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","menu","nav","ol","p","pre","section","table","ul"],W=["a","audio","del","ins","map","noscript","video"];L.prototype._do_optional_end_element=function(b){var g=null;if(!(b.is_empty_element||!b.is_start_tag||!b.parent)){if(b.tag_name==="body")g=g||this._tag_stack.try_pop("head");else if(b.tag_name==="li")g=g||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if(b.tag_name==="dd"||b.tag_name==="dt")g=g||this._tag_stack.try_pop("dt",["dl"]),g=g||this._tag_stack.try_pop("dd",["dl"]);else if(b.parent.tag_name==="p"&&H.indexOf(b.tag_name)!==-1){var _=b.parent.parent;(!_||W.indexOf(_.tag_name)===-1)&&(g=g||this._tag_stack.try_pop("p"))}else b.tag_name==="rp"||b.tag_name==="rt"?(g=g||this._tag_stack.try_pop("rt",["ruby","rtc"]),g=g||this._tag_stack.try_pop("rp",["ruby","rtc"])):b.tag_name==="optgroup"?g=g||this._tag_stack.try_pop("optgroup",["select"]):b.tag_name==="option"?g=g||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):b.tag_name==="colgroup"?g=g||this._tag_stack.try_pop("caption",["table"]):b.tag_name==="thead"?(g=g||this._tag_stack.try_pop("caption",["table"]),g=g||this._tag_stack.try_pop("colgroup",["table"])):b.tag_name==="tbody"||b.tag_name==="tfoot"?(g=g||this._tag_stack.try_pop("caption",["table"]),g=g||this._tag_stack.try_pop("colgroup",["table"]),g=g||this._tag_stack.try_pop("thead",["table"]),g=g||this._tag_stack.try_pop("tbody",["table"])):b.tag_name==="tr"?(g=g||this._tag_stack.try_pop("caption",["table"]),g=g||this._tag_stack.try_pop("colgroup",["table"]),g=g||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(b.tag_name==="th"||b.tag_name==="td")&&(g=g||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),g=g||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return b.parent=this._tag_stack.get_parser_token(),g}},r.exports.Beautifier=L},function(r,s,a){var l=a(6).Options;function o(u){l.call(this,u,"html"),this.templating.length===1&&this.templating[0]==="auto"&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_min_attrs=this._get_number("wrap_attributes_min_attrs",2),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.inline_custom_elements=this._get_boolean("inline_custom_elements",!0),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}o.prototype=new l,r.exports.Options=o},function(r,s,a){var l=a(9).Tokenizer,o=a(9).TOKEN,u=a(13).Directives,c=a(14).TemplatablePattern,d=a(12).Pattern,m={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",CONTROL_FLOW_OPEN:"TK_CONTROL_FLOW_OPEN",CONTROL_FLOW_CLOSE:"TK_CONTROL_FLOW_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:o.START,RAW:o.RAW,EOF:o.EOF},f=new u(/<\!--/,/-->/),w=function(p,x){l.call(this,p,x),this._current_tag_name="";var T=new c(this._input).read_options(this._options),y=new d(this._input);if(this.__patterns={word:T.until(/[\n\r\t <]/),word_control_flow_close_excluded:T.until(/[\n\r\t <}]/),single_quote:T.until_after(/'/),double_quote:T.until_after(/"/),attribute:T.until(/[\n\r\t =>]|\/>/),element_name:T.until(/[\n\r\t >\/]/),angular_control_flow_start:y.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:y.starting_with(/{{!--/).until_after(/--}}/),handlebars:y.starting_with(/{{/).until_after(/}}/),handlebars_open:y.until(/[\n\r\t }]/),handlebars_raw_close:y.until(/}}/),comment:y.starting_with(/<!--/).until_after(/-->/),cdata:y.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:y.starting_with(/<!\[/).until_after(/]>/),processing:y.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars"),this.__patterns.word_control_flow_close_excluded=this.__patterns.word_control_flow_close_excluded.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var L=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=y.matching(L).until_after(L)}};w.prototype=new l,w.prototype._is_comment=function(p){return!1},w.prototype._is_opening=function(p){return p.type===m.TAG_OPEN||p.type===m.CONTROL_FLOW_OPEN},w.prototype._is_closing=function(p,x){return p.type===m.TAG_CLOSE&&x&&((p.text===">"||p.text==="/>")&&x.text[0]==="<"||p.text==="}}"&&x.text[0]==="{"&&x.text[1]==="{")||p.type===m.CONTROL_FLOW_CLOSE&&p.text==="}"&&x.text.endsWith("{")},w.prototype._reset=function(){this._current_tag_name=""},w.prototype._get_next_token=function(p,x){var T=null;this._readWhitespace();var y=this._input.peek();return y===null?this._create_token(m.EOF,""):(T=T||this._read_open_handlebars(y,x),T=T||this._read_attribute(y,p,x),T=T||this._read_close(y,x),T=T||this._read_control_flows(y,x),T=T||this._read_raw_content(y,p,x),T=T||this._read_content_word(y,x),T=T||this._read_comment_or_cdata(y),T=T||this._read_processing(y),T=T||this._read_open(y,x),T=T||this._create_token(m.UNKNOWN,this._input.next()),T)},w.prototype._read_comment_or_cdata=function(p){var x=null,T=null,y=null;if(p==="<"){var L=this._input.peek(1);L==="!"&&(T=this.__patterns.comment.read(),T?(y=f.get_directives(T),y&&y.ignore==="start"&&(T+=f.readIgnored(this._input))):T=this.__patterns.cdata.read()),T&&(x=this._create_token(m.COMMENT,T),x.directives=y)}return x},w.prototype._read_processing=function(p){var x=null,T=null,y=null;if(p==="<"){var L=this._input.peek(1);(L==="!"||L==="?")&&(T=this.__patterns.conditional_comment.read(),T=T||this.__patterns.processing.read()),T&&(x=this._create_token(m.COMMENT,T),x.directives=y)}return x},w.prototype._read_open=function(p,x){var T=null,y=null;return(!x||x.type===m.CONTROL_FLOW_OPEN)&&p==="<"&&(T=this._input.next(),this._input.peek()==="/"&&(T+=this._input.next()),T+=this.__patterns.element_name.read(),y=this._create_token(m.TAG_OPEN,T)),y},w.prototype._read_open_handlebars=function(p,x){var T=null,y=null;return(!x||x.type===m.CONTROL_FLOW_OPEN)&&this._options.indent_handlebars&&p==="{"&&this._input.peek(1)==="{"&&(this._input.peek(2)==="!"?(T=this.__patterns.handlebars_comment.read(),T=T||this.__patterns.handlebars.read(),y=this._create_token(m.COMMENT,T)):(T=this.__patterns.handlebars_open.read(),y=this._create_token(m.TAG_OPEN,T))),y},w.prototype._read_control_flows=function(p,x){var T="",y=null;if(!this._options.templating.includes("angular")||!this._options.indent_handlebars)return y;if(p==="@"){if(T=this.__patterns.angular_control_flow_start.read(),T==="")return y;for(var L=T.endsWith("(")?1:0,I=0;!(T.endsWith("{")&&L===I);){var H=this._input.next();if(H===null)break;H==="("?L++:H===")"&&I++,T+=H}y=this._create_token(m.CONTROL_FLOW_OPEN,T)}else p==="}"&&x&&x.type===m.CONTROL_FLOW_OPEN&&(T=this._input.next(),y=this._create_token(m.CONTROL_FLOW_CLOSE,T));return y},w.prototype._read_close=function(p,x){var T=null,y=null;return x&&x.type===m.TAG_OPEN&&(x.text[0]==="<"&&(p===">"||p==="/"&&this._input.peek(1)===">")?(T=this._input.next(),p==="/"&&(T+=this._input.next()),y=this._create_token(m.TAG_CLOSE,T)):x.text[0]==="{"&&p==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),y=this._create_token(m.TAG_CLOSE,"}}"))),y},w.prototype._read_attribute=function(p,x,T){var y=null,L="";if(T&&T.text[0]==="<")if(p==="=")y=this._create_token(m.EQUALS,this._input.next());else if(p==='"'||p==="'"){var I=this._input.next();p==='"'?I+=this.__patterns.double_quote.read():I+=this.__patterns.single_quote.read(),y=this._create_token(m.VALUE,I)}else L=this.__patterns.attribute.read(),L&&(x.type===m.EQUALS?y=this._create_token(m.VALUE,L):y=this._create_token(m.ATTRIBUTE,L));return y},w.prototype._is_content_unformatted=function(p){return this._options.void_elements.indexOf(p)===-1&&(this._options.content_unformatted.indexOf(p)!==-1||this._options.unformatted.indexOf(p)!==-1)},w.prototype._read_raw_content=function(p,x,T){var y="";if(T&&T.text[0]==="{")y=this.__patterns.handlebars_raw_close.read();else if(x.type===m.TAG_CLOSE&&x.opened.text[0]==="<"&&x.text[0]!=="/"){var L=x.opened.text.substr(1).toLowerCase();if(L==="script"||L==="style"){var I=this._read_comment_or_cdata(p);if(I)return I.type=m.TEXT,I;y=this._input.readUntil(new RegExp("</"+L+"[\\n\\r\\t ]*?>","ig"))}else this._is_content_unformatted(L)&&(y=this._input.readUntil(new RegExp("</"+L+"[\\n\\r\\t ]*?>","ig")))}return y?this._create_token(m.TEXT,y):null},w.prototype._read_content_word=function(p,x){var T="";if(this._options.unformatted_content_delimiter&&p===this._options.unformatted_content_delimiter[0]&&(T=this.__patterns.unformatted_content_delimiter.read()),T||(T=x&&x.type===m.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),T)return this._create_token(m.TEXT,T)},r.exports.Tokenizer=w,r.exports.TOKEN=m}],t={};function n(r){var s=t[r];if(s!==void 0)return s.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}var i=n(18);ao=i})();function jc(e,t){return ao(e,t,Oc,Vc)}function $c(e,t,n){let i=e.getText(),r=!0,s=0;const a=n.tabSize||4;if(t){let u=e.offsetAt(t.start),c=u;for(;c>0&&lo(i,c-1);)c--;c===0||oo(i,c-1)?u=c:c<u&&(u=c+1);let d=e.offsetAt(t.end),m=d;for(;m<i.length&&lo(i,m);)m++;(m===i.length||oo(i,m))&&(d=m),t=J.create(e.positionAt(u),e.positionAt(d));const f=i.substring(0,u);if(new RegExp(/.*[<][^>]*$/).test(f))return i=i.substring(u,d),[{range:t,newText:i}];if(r=d===i.length,i=i.substring(u,d),u!==0){const w=e.offsetAt(se.create(t.start.line,0));s=Jc(e.getText(),w,n)}}else t=J.create(se.create(0,0),e.positionAt(i.length));const l={indent_size:a,indent_char:n.insertSpaces?" ":" ",indent_empty_lines:we(n,"indentEmptyLines",!1),wrap_line_length:we(n,"wrapLineLength",120),unformatted:Fi(n,"unformatted",void 0),content_unformatted:Fi(n,"contentUnformatted",void 0),indent_inner_html:we(n,"indentInnerHtml",!1),preserve_newlines:we(n,"preserveNewLines",!0),max_preserve_newlines:we(n,"maxPreserveNewLines",32786),indent_handlebars:we(n,"indentHandlebars",!1),end_with_newline:r&&we(n,"endWithNewline",!1),extra_liners:Fi(n,"extraLiners",void 0),wrap_attributes:we(n,"wrapAttributes","auto"),wrap_attributes_indent_size:we(n,"wrapAttributesIndentSize",void 0),eol:`
|
|
67
|
-
`,indent_scripts:we(n,"indentScripts","normal"),templating:
|
|
64
|
+
`+E)}D&&(S?S=D+S+`
|
|
65
|
+
`+k:S=D+k),b.print_newline(!1),S&&(g.text=S,g.whitespace_before="",g.newlines=0,b.add_raw_token(g),b.print_newline(!0))}},L.prototype._handle_tag_open=function(b,g,_,N,S){var v=this._get_tag_open_token(g);if((_.is_unformatted||_.is_content_unformatted)&&!_.is_empty_element&&g.type===c.TAG_OPEN&&!v.is_start_tag?(b.add_raw_token(g),v.start_tag_token=this._tag_stack.try_pop(v.tag_name)):(b.traverse_whitespace(g),this._set_tag_position(b,g,v,_,N),v.is_inline_element||b.set_wrap_point(),b.print_token(g)),v.is_start_tag&&this._is_wrap_attributes_force){var A=0,D;do D=S.peek(A),D.type===c.ATTRIBUTE&&(v.attr_count+=1),A+=1;while(D.type!==c.EOF&&D.type!==c.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(v.alignment_size=g.text.length+1),!v.tag_complete&&!v.is_unformatted&&(b.alignment_size=v.alignment_size),v};var I=function(b,g){if(this.parent=b||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",!g)this.tag_complete=!0;else{var _;this.tag_start_char=g.text[0],this.text=g.text,this.tag_start_char==="<"?(_=g.text.match(/^<([^\s>]*)/),this.tag_check=_?_[1]:""):(_=g.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=_?_[1]:"",(g.text.startsWith("{{#>")||g.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&g.next!==null?this.tag_check=g.next.text.split(" ")[0]:this.tag_check=g.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),g.type===c.COMMENT&&(this.tag_complete=!0),this.is_start_tag=this.tag_check.charAt(0)!=="/",this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||g.closed&&g.closed.text==="/>";var N=2;this.tag_start_char==="{"&&this.text.length>=3&&this.text.charAt(2)==="~"&&(N=3),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(N)))}};L.prototype._get_tag_open_token=function(b){var g=new I(this._tag_stack.get_parser_token(),b);return g.alignment_size=this._options.wrap_attributes_indent_size,g.is_end_tag=g.is_end_tag||x(g.tag_check,this._options.void_elements),g.is_empty_element=g.tag_complete||g.is_start_tag&&g.is_end_tag,g.is_unformatted=!g.tag_complete&&x(g.tag_check,this._options.unformatted),g.is_content_unformatted=!g.is_empty_element&&x(g.tag_check,this._options.content_unformatted),g.is_inline_element=x(g.tag_name,this._options.inline)||this._options.inline_custom_elements&&g.tag_name.includes("-")||g.tag_start_char==="{",g},L.prototype._set_tag_position=function(b,g,_,N,S){if(_.is_empty_element||(_.is_end_tag?_.start_tag_token=this._tag_stack.try_pop(_.tag_name):(this._do_optional_end_element(_)&&(_.is_inline_element||b.print_newline(!1)),this._tag_stack.record_tag(_),(_.tag_name==="script"||_.tag_name==="style")&&!(_.is_unformatted||_.is_content_unformatted)&&(_.custom_beautifier_name=p(_.tag_check,g)))),x(_.tag_check,this._options.extra_liners)&&(b.print_newline(!1),b._output.just_added_blankline()||b.print_newline(!0)),_.is_empty_element){if(_.tag_start_char==="{"&&_.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),_.indent_content=!0;var v=b.current_line_has_match(/{{#if/);v||b.print_newline(!1)}_.tag_name==="!--"&&S.type===c.TAG_CLOSE&&N.is_end_tag&&_.text.indexOf(`
|
|
66
|
+
`)===-1||(_.is_inline_element||_.is_unformatted||b.print_newline(!1),this._calcluate_parent_multiline(b,_))}else if(_.is_end_tag){var A=!1;A=_.start_tag_token&&_.start_tag_token.multiline_content,A=A||!_.is_inline_element&&!(N.is_inline_element||N.is_unformatted)&&!(S.type===c.TAG_CLOSE&&_.start_tag_token===N)&&S.type!=="TK_CONTENT",(_.is_content_unformatted||_.is_unformatted)&&(A=!1),A&&b.print_newline(!1)}else _.indent_content=!_.custom_beautifier_name,_.tag_start_char==="<"&&(_.tag_name==="html"?_.indent_content=this._options.indent_inner_html:_.tag_name==="head"?_.indent_content=this._options.indent_head_inner_html:_.tag_name==="body"&&(_.indent_content=this._options.indent_body_inner_html)),!(_.is_inline_element||_.is_unformatted)&&(S.type!=="TK_CONTENT"||_.is_content_unformatted)&&b.print_newline(!1),this._calcluate_parent_multiline(b,_)},L.prototype._calcluate_parent_multiline=function(b,g){g.parent&&b._output.just_added_newline()&&!((g.is_inline_element||g.is_unformatted)&&g.parent.is_inline_element)&&(g.parent.multiline_content=!0)};var H=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","menu","nav","ol","p","pre","section","table","ul"],P=["a","audio","del","ins","map","noscript","video"];L.prototype._do_optional_end_element=function(b){var g=null;if(!(b.is_empty_element||!b.is_start_tag||!b.parent)){if(b.tag_name==="body")g=g||this._tag_stack.try_pop("head");else if(b.tag_name==="li")g=g||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if(b.tag_name==="dd"||b.tag_name==="dt")g=g||this._tag_stack.try_pop("dt",["dl"]),g=g||this._tag_stack.try_pop("dd",["dl"]);else if(b.parent.tag_name==="p"&&H.indexOf(b.tag_name)!==-1){var _=b.parent.parent;(!_||P.indexOf(_.tag_name)===-1)&&(g=g||this._tag_stack.try_pop("p"))}else b.tag_name==="rp"||b.tag_name==="rt"?(g=g||this._tag_stack.try_pop("rt",["ruby","rtc"]),g=g||this._tag_stack.try_pop("rp",["ruby","rtc"])):b.tag_name==="optgroup"?g=g||this._tag_stack.try_pop("optgroup",["select"]):b.tag_name==="option"?g=g||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):b.tag_name==="colgroup"?g=g||this._tag_stack.try_pop("caption",["table"]):b.tag_name==="thead"?(g=g||this._tag_stack.try_pop("caption",["table"]),g=g||this._tag_stack.try_pop("colgroup",["table"])):b.tag_name==="tbody"||b.tag_name==="tfoot"?(g=g||this._tag_stack.try_pop("caption",["table"]),g=g||this._tag_stack.try_pop("colgroup",["table"]),g=g||this._tag_stack.try_pop("thead",["table"]),g=g||this._tag_stack.try_pop("tbody",["table"])):b.tag_name==="tr"?(g=g||this._tag_stack.try_pop("caption",["table"]),g=g||this._tag_stack.try_pop("colgroup",["table"]),g=g||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(b.tag_name==="th"||b.tag_name==="td")&&(g=g||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),g=g||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return b.parent=this._tag_stack.get_parser_token(),g}},r.exports.Beautifier=L}),(function(r,s,a){var l=a(6).Options;function o(u){l.call(this,u,"html"),this.templating.length===1&&this.templating[0]==="auto"&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_min_attrs=this._get_number("wrap_attributes_min_attrs",2),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.inline_custom_elements=this._get_boolean("inline_custom_elements",!0),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}o.prototype=new l,r.exports.Options=o}),(function(r,s,a){var l=a(9).Tokenizer,o=a(9).TOKEN,u=a(13).Directives,c=a(14).TemplatablePattern,d=a(12).Pattern,m={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",CONTROL_FLOW_OPEN:"TK_CONTROL_FLOW_OPEN",CONTROL_FLOW_CLOSE:"TK_CONTROL_FLOW_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:o.START,RAW:o.RAW,EOF:o.EOF},f=new u(/<\!--/,/-->/),w=function(p,x){l.call(this,p,x),this._current_tag_name="";var T=new c(this._input).read_options(this._options),y=new d(this._input);if(this.__patterns={word:T.until(/[\n\r\t <]/),word_control_flow_close_excluded:T.until(/[\n\r\t <}]/),single_quote:T.until_after(/'/),double_quote:T.until_after(/"/),attribute:T.until(/[\n\r\t =>]|\/>/),element_name:T.until(/[\n\r\t >\/]/),angular_control_flow_start:y.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:y.starting_with(/{{!--/).until_after(/--}}/),handlebars:y.starting_with(/{{/).until_after(/}}/),handlebars_open:y.until(/[\n\r\t }]/),handlebars_raw_close:y.until(/}}/),comment:y.starting_with(/<!--/).until_after(/-->/),cdata:y.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:y.starting_with(/<!\[/).until_after(/]>/),processing:y.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars"),this.__patterns.word_control_flow_close_excluded=this.__patterns.word_control_flow_close_excluded.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var L=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=y.matching(L).until_after(L)}};w.prototype=new l,w.prototype._is_comment=function(p){return!1},w.prototype._is_opening=function(p){return p.type===m.TAG_OPEN||p.type===m.CONTROL_FLOW_OPEN},w.prototype._is_closing=function(p,x){return p.type===m.TAG_CLOSE&&x&&((p.text===">"||p.text==="/>")&&x.text[0]==="<"||p.text==="}}"&&x.text[0]==="{"&&x.text[1]==="{")||p.type===m.CONTROL_FLOW_CLOSE&&p.text==="}"&&x.text.endsWith("{")},w.prototype._reset=function(){this._current_tag_name=""},w.prototype._get_next_token=function(p,x){var T=null;this._readWhitespace();var y=this._input.peek();return y===null?this._create_token(m.EOF,""):(T=T||this._read_open_handlebars(y,x),T=T||this._read_attribute(y,p,x),T=T||this._read_close(y,x),T=T||this._read_control_flows(y,x),T=T||this._read_raw_content(y,p,x),T=T||this._read_content_word(y,x),T=T||this._read_comment_or_cdata(y),T=T||this._read_processing(y),T=T||this._read_open(y,x),T=T||this._create_token(m.UNKNOWN,this._input.next()),T)},w.prototype._read_comment_or_cdata=function(p){var x=null,T=null,y=null;if(p==="<"){var L=this._input.peek(1);L==="!"&&(T=this.__patterns.comment.read(),T?(y=f.get_directives(T),y&&y.ignore==="start"&&(T+=f.readIgnored(this._input))):T=this.__patterns.cdata.read()),T&&(x=this._create_token(m.COMMENT,T),x.directives=y)}return x},w.prototype._read_processing=function(p){var x=null,T=null,y=null;if(p==="<"){var L=this._input.peek(1);(L==="!"||L==="?")&&(T=this.__patterns.conditional_comment.read(),T=T||this.__patterns.processing.read()),T&&(x=this._create_token(m.COMMENT,T),x.directives=y)}return x},w.prototype._read_open=function(p,x){var T=null,y=null;return(!x||x.type===m.CONTROL_FLOW_OPEN)&&p==="<"&&(T=this._input.next(),this._input.peek()==="/"&&(T+=this._input.next()),T+=this.__patterns.element_name.read(),y=this._create_token(m.TAG_OPEN,T)),y},w.prototype._read_open_handlebars=function(p,x){var T=null,y=null;return(!x||x.type===m.CONTROL_FLOW_OPEN)&&this._options.indent_handlebars&&p==="{"&&this._input.peek(1)==="{"&&(this._input.peek(2)==="!"?(T=this.__patterns.handlebars_comment.read(),T=T||this.__patterns.handlebars.read(),y=this._create_token(m.COMMENT,T)):(T=this.__patterns.handlebars_open.read(),y=this._create_token(m.TAG_OPEN,T))),y},w.prototype._read_control_flows=function(p,x){var T="",y=null;if(!this._options.templating.includes("angular")||!this._options.indent_handlebars)return y;if(p==="@"){if(T=this.__patterns.angular_control_flow_start.read(),T==="")return y;for(var L=T.endsWith("(")?1:0,I=0;!(T.endsWith("{")&&L===I);){var H=this._input.next();if(H===null)break;H==="("?L++:H===")"&&I++,T+=H}y=this._create_token(m.CONTROL_FLOW_OPEN,T)}else p==="}"&&x&&x.type===m.CONTROL_FLOW_OPEN&&(T=this._input.next(),y=this._create_token(m.CONTROL_FLOW_CLOSE,T));return y},w.prototype._read_close=function(p,x){var T=null,y=null;return x&&x.type===m.TAG_OPEN&&(x.text[0]==="<"&&(p===">"||p==="/"&&this._input.peek(1)===">")?(T=this._input.next(),p==="/"&&(T+=this._input.next()),y=this._create_token(m.TAG_CLOSE,T)):x.text[0]==="{"&&p==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),y=this._create_token(m.TAG_CLOSE,"}}"))),y},w.prototype._read_attribute=function(p,x,T){var y=null,L="";if(T&&T.text[0]==="<")if(p==="=")y=this._create_token(m.EQUALS,this._input.next());else if(p==='"'||p==="'"){var I=this._input.next();p==='"'?I+=this.__patterns.double_quote.read():I+=this.__patterns.single_quote.read(),y=this._create_token(m.VALUE,I)}else L=this.__patterns.attribute.read(),L&&(x.type===m.EQUALS?y=this._create_token(m.VALUE,L):y=this._create_token(m.ATTRIBUTE,L));return y},w.prototype._is_content_unformatted=function(p){return this._options.void_elements.indexOf(p)===-1&&(this._options.content_unformatted.indexOf(p)!==-1||this._options.unformatted.indexOf(p)!==-1)},w.prototype._read_raw_content=function(p,x,T){var y="";if(T&&T.text[0]==="{")y=this.__patterns.handlebars_raw_close.read();else if(x.type===m.TAG_CLOSE&&x.opened.text[0]==="<"&&x.text[0]!=="/"){var L=x.opened.text.substr(1).toLowerCase();if(L==="script"||L==="style"){var I=this._read_comment_or_cdata(p);if(I)return I.type=m.TEXT,I;y=this._input.readUntil(new RegExp("</"+L+"[\\n\\r\\t ]*?>","ig"))}else this._is_content_unformatted(L)&&(y=this._input.readUntil(new RegExp("</"+L+"[\\n\\r\\t ]*?>","ig")))}return y?this._create_token(m.TEXT,y):null},w.prototype._read_content_word=function(p,x){var T="";if(this._options.unformatted_content_delimiter&&p===this._options.unformatted_content_delimiter[0]&&(T=this.__patterns.unformatted_content_delimiter.read()),T||(T=x&&x.type===m.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),T)return this._create_token(m.TEXT,T)},r.exports.Tokenizer=w,r.exports.TOKEN=m})],e={};function n(r){var s=e[r];if(s!==void 0)return s.exports;var a=e[r]={exports:{}};return t[r](a,a.exports,n),a.exports}var i=n(18);Qa=i})();function Hc(t,e){return Qa(t,e,Ic,zc)}function Uc(t,e,n){let i=t.getText(),r=!0,s=0;const a=n.tabSize||4;if(e){let u=t.offsetAt(e.start),c=u;for(;c>0&&Za(i,c-1);)c--;c===0||Ya(i,c-1)?u=c:c<u&&(u=c+1);let d=t.offsetAt(e.end),m=d;for(;m<i.length&&Za(i,m);)m++;(m===i.length||Ya(i,m))&&(d=m),e=J.create(t.positionAt(u),t.positionAt(d));const f=i.substring(0,u);if(new RegExp(/.*[<][^>]*$/).test(f))return i=i.substring(u,d),[{range:e,newText:i}];if(r=d===i.length,i=i.substring(u,d),u!==0){const w=t.offsetAt(se.create(e.start.line,0));s=Fc(t.getText(),w,n)}}else e=J.create(se.create(0,0),t.positionAt(i.length));const l={indent_size:a,indent_char:n.insertSpaces?" ":" ",indent_empty_lines:we(n,"indentEmptyLines",!1),wrap_line_length:we(n,"wrapLineLength",120),unformatted:Ni(n,"unformatted",void 0),content_unformatted:Ni(n,"contentUnformatted",void 0),indent_inner_html:we(n,"indentInnerHtml",!1),preserve_newlines:we(n,"preserveNewLines",!0),max_preserve_newlines:we(n,"maxPreserveNewLines",32786),indent_handlebars:we(n,"indentHandlebars",!1),end_with_newline:r&&we(n,"endWithNewline",!1),extra_liners:Ni(n,"extraLiners",void 0),wrap_attributes:we(n,"wrapAttributes","auto"),wrap_attributes_indent_size:we(n,"wrapAttributesIndentSize",void 0),eol:`
|
|
67
|
+
`,indent_scripts:we(n,"indentScripts","normal"),templating:Wc(n,"all"),unformatted_content_delimiter:we(n,"unformattedContentDelimiter","")};let o=Hc(Pc(i),l);if(s>0){const u=n.insertSpaces?$a(" ",a*s):$a(" ",s);o=o.split(`
|
|
68
68
|
`).join(`
|
|
69
|
-
`+u),
|
|
70
|
-
`.indexOf(e.charAt(t))!==-1}function lo(e,t){return" ".indexOf(e.charAt(t))!==-1}var uo;(()=>{var e={470:r=>{function s(o){if(typeof o!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(o))}function a(o,u){for(var c,d="",m=0,f=-1,w=0,p=0;p<=o.length;++p){if(p<o.length)c=o.charCodeAt(p);else{if(c===47)break;c=47}if(c===47){if(!(f===p-1||w===1))if(f!==p-1&&w===2){if(d.length<2||m!==2||d.charCodeAt(d.length-1)!==46||d.charCodeAt(d.length-2)!==46){if(d.length>2){var x=d.lastIndexOf("/");if(x!==d.length-1){x===-1?(d="",m=0):m=(d=d.slice(0,x)).length-1-d.lastIndexOf("/"),f=p,w=0;continue}}else if(d.length===2||d.length===1){d="",m=0,f=p,w=0;continue}}u&&(d.length>0?d+="/..":d="..",m=2)}else d.length>0?d+="/"+o.slice(f+1,p):d=o.slice(f+1,p),m=p-f-1;f=p,w=0}else c===46&&w!==-1?++w:w=-1}return d}var l={resolve:function(){for(var o,u="",c=!1,d=arguments.length-1;d>=-1&&!c;d--){var m;d>=0?m=arguments[d]:(o===void 0&&(o=process.cwd()),m=o),s(m),m.length!==0&&(u=m+"/"+u,c=m.charCodeAt(0)===47)}return u=a(u,!c),c?u.length>0?"/"+u:"/":u.length>0?u:"."},normalize:function(o){if(s(o),o.length===0)return".";var u=o.charCodeAt(0)===47,c=o.charCodeAt(o.length-1)===47;return(o=a(o,!u)).length!==0||u||(o="."),o.length>0&&c&&(o+="/"),u?"/"+o:o},isAbsolute:function(o){return s(o),o.length>0&&o.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var o,u=0;u<arguments.length;++u){var c=arguments[u];s(c),c.length>0&&(o===void 0?o=c:o+="/"+c)}return o===void 0?".":l.normalize(o)},relative:function(o,u){if(s(o),s(u),o===u||(o=l.resolve(o))===(u=l.resolve(u)))return"";for(var c=1;c<o.length&&o.charCodeAt(c)===47;++c);for(var d=o.length,m=d-c,f=1;f<u.length&&u.charCodeAt(f)===47;++f);for(var w=u.length-f,p=m<w?m:w,x=-1,T=0;T<=p;++T){if(T===p){if(w>p){if(u.charCodeAt(f+T)===47)return u.slice(f+T+1);if(T===0)return u.slice(f+T)}else m>p&&(o.charCodeAt(c+T)===47?x=T:T===0&&(x=0));break}var y=o.charCodeAt(c+T);if(y!==u.charCodeAt(f+T))break;y===47&&(x=T)}var L="";for(T=c+x+1;T<=d;++T)T!==d&&o.charCodeAt(T)!==47||(L.length===0?L+="..":L+="/..");return L.length>0?L+u.slice(f+x):(f+=x,u.charCodeAt(f)===47&&++f,u.slice(f))},_makeLong:function(o){return o},dirname:function(o){if(s(o),o.length===0)return".";for(var u=o.charCodeAt(0),c=u===47,d=-1,m=!0,f=o.length-1;f>=1;--f)if((u=o.charCodeAt(f))===47){if(!m){d=f;break}}else m=!1;return d===-1?c?"/":".":c&&d===1?"//":o.slice(0,d)},basename:function(o,u){if(u!==void 0&&typeof u!="string")throw new TypeError('"ext" argument must be a string');s(o);var c,d=0,m=-1,f=!0;if(u!==void 0&&u.length>0&&u.length<=o.length){if(u.length===o.length&&u===o)return"";var w=u.length-1,p=-1;for(c=o.length-1;c>=0;--c){var x=o.charCodeAt(c);if(x===47){if(!f){d=c+1;break}}else p===-1&&(f=!1,p=c+1),w>=0&&(x===u.charCodeAt(w)?--w==-1&&(m=c):(w=-1,m=p))}return d===m?m=p:m===-1&&(m=o.length),o.slice(d,m)}for(c=o.length-1;c>=0;--c)if(o.charCodeAt(c)===47){if(!f){d=c+1;break}}else m===-1&&(f=!1,m=c+1);return m===-1?"":o.slice(d,m)},extname:function(o){s(o);for(var u=-1,c=0,d=-1,m=!0,f=0,w=o.length-1;w>=0;--w){var p=o.charCodeAt(w);if(p!==47)d===-1&&(m=!1,d=w+1),p===46?u===-1?u=w:f!==1&&(f=1):u!==-1&&(f=-1);else if(!m){c=w+1;break}}return u===-1||d===-1||f===0||f===1&&u===d-1&&u===c+1?"":o.slice(u,d)},format:function(o){if(o===null||typeof o!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof o);return function(u,c){var d=c.dir||c.root,m=c.base||(c.name||"")+(c.ext||"");return d?d===c.root?d+m:d+"/"+m:m}(0,o)},parse:function(o){s(o);var u={root:"",dir:"",base:"",ext:"",name:""};if(o.length===0)return u;var c,d=o.charCodeAt(0),m=d===47;m?(u.root="/",c=1):c=0;for(var f=-1,w=0,p=-1,x=!0,T=o.length-1,y=0;T>=c;--T)if((d=o.charCodeAt(T))!==47)p===-1&&(x=!1,p=T+1),d===46?f===-1?f=T:y!==1&&(y=1):f!==-1&&(y=-1);else if(!x){w=T+1;break}return f===-1||p===-1||y===0||y===1&&f===p-1&&f===w+1?p!==-1&&(u.base=u.name=w===0&&m?o.slice(1,p):o.slice(w,p)):(w===0&&m?(u.name=o.slice(1,f),u.base=o.slice(1,p)):(u.name=o.slice(w,f),u.base=o.slice(w,p)),u.ext=o.slice(f,p)),w>0?u.dir=o.slice(0,w-1):m&&(u.dir="/"),u},sep:"/",delimiter:":",win32:null,posix:null};l.posix=l,r.exports=l}},t={};function n(r){var s=t[r];if(s!==void 0)return s.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}n.d=(r,s)=>{for(var a in s)n.o(s,a)&&!n.o(r,a)&&Object.defineProperty(r,a,{enumerable:!0,get:s[a]})},n.o=(r,s)=>Object.prototype.hasOwnProperty.call(r,s),n.r=r=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})};var i={};(()=>{let r;n.r(i),n.d(i,{URI:()=>m,Utils:()=>N}),typeof process=="object"?r=process.platform==="win32":typeof navigator=="object"&&(r=navigator.userAgent.indexOf("Windows")>=0);const s=/^\w[\w\d+.-]*$/,a=/^\//,l=/^\/\//;function o(S,v){if(!S.scheme&&v)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${S.authority}", path: "${S.path}", query: "${S.query}", fragment: "${S.fragment}"}`);if(S.scheme&&!s.test(S.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(S.path){if(S.authority){if(!a.test(S.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(l.test(S.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}const u="",c="/",d=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class m{constructor(v,A,R,k,E,M=!1){Qe(this,"scheme");Qe(this,"authority");Qe(this,"path");Qe(this,"query");Qe(this,"fragment");typeof v=="object"?(this.scheme=v.scheme||u,this.authority=v.authority||u,this.path=v.path||u,this.query=v.query||u,this.fragment=v.fragment||u):(this.scheme=function(F,P){return F||P?F:"file"}(v,M),this.authority=A||u,this.path=function(F,P){switch(F){case"https":case"http":case"file":P?P[0]!==c&&(P=c+P):P=c}return P}(this.scheme,R||u),this.query=k||u,this.fragment=E||u,o(this,M))}static isUri(v){return v instanceof m||!!v&&typeof v.authority=="string"&&typeof v.fragment=="string"&&typeof v.path=="string"&&typeof v.query=="string"&&typeof v.scheme=="string"&&typeof v.fsPath=="string"&&typeof v.with=="function"&&typeof v.toString=="function"}get fsPath(){return y(this)}with(v){if(!v)return this;let{scheme:A,authority:R,path:k,query:E,fragment:M}=v;return A===void 0?A=this.scheme:A===null&&(A=u),R===void 0?R=this.authority:R===null&&(R=u),k===void 0?k=this.path:k===null&&(k=u),E===void 0?E=this.query:E===null&&(E=u),M===void 0?M=this.fragment:M===null&&(M=u),A===this.scheme&&R===this.authority&&k===this.path&&E===this.query&&M===this.fragment?this:new w(A,R,k,E,M)}static parse(v,A=!1){const R=d.exec(v);return R?new w(R[2]||u,W(R[4]||u),W(R[5]||u),W(R[7]||u),W(R[9]||u),A):new w(u,u,u,u,u)}static file(v){let A=u;if(r&&(v=v.replace(/\\/g,c)),v[0]===c&&v[1]===c){const R=v.indexOf(c,2);R===-1?(A=v.substring(2),v=c):(A=v.substring(2,R),v=v.substring(R)||c)}return new w("file",A,v,u,u)}static from(v){const A=new w(v.scheme,v.authority,v.path,v.query,v.fragment);return o(A,!0),A}toString(v=!1){return L(this,v)}toJSON(){return this}static revive(v){if(v){if(v instanceof m)return v;{const A=new w(v);return A._formatted=v.external,A._fsPath=v._sep===f?v.fsPath:null,A}}return v}}const f=r?1:void 0;class w extends m{constructor(){super(...arguments);Qe(this,"_formatted",null);Qe(this,"_fsPath",null)}get fsPath(){return this._fsPath||(this._fsPath=y(this)),this._fsPath}toString(A=!1){return A?L(this,!0):(this._formatted||(this._formatted=L(this,!1)),this._formatted)}toJSON(){const A={$mid:1};return this._fsPath&&(A.fsPath=this._fsPath,A._sep=f),this._formatted&&(A.external=this._formatted),this.path&&(A.path=this.path),this.scheme&&(A.scheme=this.scheme),this.authority&&(A.authority=this.authority),this.query&&(A.query=this.query),this.fragment&&(A.fragment=this.fragment),A}}const p={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 x(S,v,A){let R,k=-1;for(let E=0;E<S.length;E++){const M=S.charCodeAt(E);if(M>=97&&M<=122||M>=65&&M<=90||M>=48&&M<=57||M===45||M===46||M===95||M===126||v&&M===47||A&&M===91||A&&M===93||A&&M===58)k!==-1&&(R+=encodeURIComponent(S.substring(k,E)),k=-1),R!==void 0&&(R+=S.charAt(E));else{R===void 0&&(R=S.substr(0,E));const F=p[M];F!==void 0?(k!==-1&&(R+=encodeURIComponent(S.substring(k,E)),k=-1),R+=F):k===-1&&(k=E)}}return k!==-1&&(R+=encodeURIComponent(S.substring(k))),R!==void 0?R:S}function T(S){let v;for(let A=0;A<S.length;A++){const R=S.charCodeAt(A);R===35||R===63?(v===void 0&&(v=S.substr(0,A)),v+=p[R]):v!==void 0&&(v+=S[A])}return v!==void 0?v:S}function y(S,v){let A;return A=S.authority&&S.path.length>1&&S.scheme==="file"?`//${S.authority}${S.path}`:S.path.charCodeAt(0)===47&&(S.path.charCodeAt(1)>=65&&S.path.charCodeAt(1)<=90||S.path.charCodeAt(1)>=97&&S.path.charCodeAt(1)<=122)&&S.path.charCodeAt(2)===58?S.path[1].toLowerCase()+S.path.substr(2):S.path,r&&(A=A.replace(/\//g,"\\")),A}function L(S,v){const A=v?T:x;let R="",{scheme:k,authority:E,path:M,query:F,fragment:P}=S;if(k&&(R+=k,R+=":"),(E||k==="file")&&(R+=c,R+=c),E){let U=E.indexOf("@");if(U!==-1){const O=E.substr(0,U);E=E.substr(U+1),U=O.lastIndexOf(":"),U===-1?R+=A(O,!1,!1):(R+=A(O.substr(0,U),!1,!1),R+=":",R+=A(O.substr(U+1),!1,!0)),R+="@"}E=E.toLowerCase(),U=E.lastIndexOf(":"),U===-1?R+=A(E,!1,!0):(R+=A(E.substr(0,U),!1,!0),R+=E.substr(U))}if(M){if(M.length>=3&&M.charCodeAt(0)===47&&M.charCodeAt(2)===58){const U=M.charCodeAt(1);U>=65&&U<=90&&(M=`/${String.fromCharCode(U+32)}:${M.substr(3)}`)}else if(M.length>=2&&M.charCodeAt(1)===58){const U=M.charCodeAt(0);U>=65&&U<=90&&(M=`${String.fromCharCode(U+32)}:${M.substr(2)}`)}R+=A(M,!0,!1)}return F&&(R+="?",R+=A(F,!1,!1)),P&&(R+="#",R+=v?P:x(P,!1,!1)),R}function I(S){try{return decodeURIComponent(S)}catch{return S.length>3?S.substr(0,3)+I(S.substr(3)):S}}const H=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function W(S){return S.match(H)?S.replace(H,v=>I(v)):S}var b=n(470);const g=b.posix||b,_="/";var N;(function(S){S.joinPath=function(v,...A){return v.with({path:g.join(v.path,...A)})},S.resolvePath=function(v,...A){let R=v.path,k=!1;R[0]!==_&&(R=_+R,k=!0);let E=g.resolve(R,...A);return k&&E[0]===_&&!v.authority&&(E=E.substring(1)),v.with({path:E})},S.dirname=function(v){if(v.path.length===0||v.path===_)return v;let A=g.dirname(v.path);return A.length===1&&A.charCodeAt(0)===46&&(A=""),v.with({path:A})},S.basename=function(v){return g.basename(v.path)},S.extname=function(v){return g.extname(v.path)}})(N||(N={}))})(),uo=i})();const{URI:Qc,Utils:Sh}=uo;function Pi(e){const t=e[0],n=e[e.length-1];return t===n&&(t==="'"||t==='"')&&(e=e.substring(1,e.length-1)),e}function Yc(e,t){return!e.length||t==="handlebars"&&/{{|}}/.test(e)?!1:/\b(w[\w\d+.-]*:\/\/)?[^\s()<>]+(?:\([\w\d]+\)|([^[:punct:]\s]|\/?))/.test(e)}function Zc(e,t,n,i){if(/^\s*javascript\:/i.test(t)||/[\n\r]/.test(t))return;t=t.replace(/^\s*/g,"");const r=t.match(/^(\w[\w\d+.-]*):/);if(r){const s=r[1].toLowerCase();return s==="http"||s==="https"||s==="file"?t:void 0}return/^\#/i.test(t)?e+t:/^\/\//i.test(t)?(Je(e,"https://")?"https":"http")+":"+t.replace(/^\s*/g,""):n?n.resolveReference(t,i||e):t}function Kc(e,t,n,i,r,s){const a=Pi(n);if(!Yc(a,e.languageId))return;a.length<n.length&&(i++,r--);const l=Zc(e.uri,a,t,s);if(!l)return;const o=th(l,e);return{range:J.create(e.positionAt(i),e.positionAt(r)),target:o}}const eh=35;function th(e,t){try{let n=Qc.parse(e);return n.scheme==="file"&&n.query&&(n=n.with({query:null}),e=n.toString(!0)),n.scheme==="file"&&n.fragment&&!(e.startsWith(t.uri)&&e.charCodeAt(t.uri.length)===eh)?n.with({fragment:null}).toString(!0):e}catch{return}}class nh{constructor(t){this.dataManager=t}findDocumentLinks(t,n){const i=[],r=be(t.getText(),0);let s=r.scan(),a,l,o=!1,u;const c={};for(;s!==z.EOS;){switch(s){case z.StartTag:l=r.getTokenText().toLowerCase(),u||(o=l==="base");break;case z.AttributeName:a=r.getTokenText().toLowerCase();break;case z.AttributeValue:if(l&&a&&this.dataManager.isPathAttribute(l,a)){const d=r.getTokenText();if(!o){const m=Kc(t,n,d,r.getTokenOffset(),r.getTokenEnd(),u);m&&i.push(m)}o&&typeof u>"u"&&(u=Pi(d),u&&n&&(u=n.resolveReference(u,t.uri))),o=!1,a=void 0}else if(a==="id"){const d=Pi(r.getTokenText());c[d]=r.getTokenOffset()}break}s=r.scan()}for(const d of i){const m=t.uri+"#";if(d.target&&Je(d.target,m)){const f=d.target.substring(m.length),w=c[f];if(w!==void 0){const p=t.positionAt(w);d.target=`${m}${p.line+1},${p.character+1}`}else d.target=t.uri}}return i}}function ih(e,t,n){const i=e.offsetAt(t),r=n.findNodeAt(i);if(!r.tag)return[];const s=[],a=mo(z.StartTag,e,r.start),l=typeof r.endTagStart=="number"&&mo(z.EndTag,e,r.endTagStart);return(a&&ho(a,t)||l&&ho(l,t))&&(a&&s.push({kind:wn.Read,range:a}),l&&s.push({kind:wn.Read,range:l})),s}function co(e,t){return e.line<t.line||e.line===t.line&&e.character<=t.character}function ho(e,t){return co(e.start,t)&&co(t,e.end)}function mo(e,t,n){const i=be(t.getText(),n);let r=i.scan();for(;r!==z.EOS&&r!==e;)r=i.scan();return r!==z.EOS?{start:t.positionAt(i.getTokenOffset()),end:t.positionAt(i.getTokenEnd())}:null}function rh(e,t){const n=[],i=fo(e,t);for(const s of i)r(s,void 0);return n;function r(s,a){const l=Ri.create(s.name,s.kind,s.range,e.uri,a==null?void 0:a.name);if(l.containerName??(l.containerName=""),n.push(l),s.children)for(const o of s.children)r(o,s)}}function fo(e,t){const n=[];return t.roots.forEach(i=>{po(e,i,n)}),n}function po(e,t,n){const i=sh(t),r=J.create(e.positionAt(t.start),e.positionAt(t.end)),s=Mi.create(i,void 0,Di.Field,r,r);n.push(s),t.children.forEach(a=>{s.children??(s.children=[]),po(e,a,s.children)})}function sh(e){let t=e.tag;if(e.attributes){const n=e.attributes.id,i=e.attributes.class;n&&(t+=`#${n.replace(/[\"\']/g,"")}`),i&&(t+=i.replace(/[\"\']/g,"").split(/\s+/).map(r=>`.${r}`).join(""))}return t||"?"}function ah(e,t,n,i){const r=e.offsetAt(t),s=i.findNodeAt(r);if(!s.tag||!oh(s,r,s.tag))return null;const a=[],l={start:e.positionAt(s.start+1),end:e.positionAt(s.start+1+s.tag.length)};if(a.push({range:l,newText:n}),s.endTagStart){const u={start:e.positionAt(s.endTagStart+2),end:e.positionAt(s.endTagStart+2+s.tag.length)};a.push({range:u,newText:n})}return{changes:{[e.uri.toString()]:a}}}function oh(e,t,n){return e.endTagStart&&e.endTagStart+2<=t&&t<=e.endTagStart+2+n.length?!0:e.start+1<=t&&t<=e.start+1+n.length}function lh(e,t,n){const i=e.offsetAt(t),r=n.findNodeAt(i);if(!r.tag||!r.endTagStart)return null;if(r.start+1<=i&&i<=r.start+1+r.tag.length){const s=i-1-r.start+r.endTagStart+2;return e.positionAt(s)}if(r.endTagStart+2<=i&&i<=r.endTagStart+2+r.tag.length){const s=i-2-r.endTagStart+r.start+1;return e.positionAt(s)}return null}function go(e,t,n){const i=e.offsetAt(t),r=n.findNodeAt(i),s=r.tag?r.tag.length:0;return r.endTagStart&&(r.start+1<=i&&i<=r.start+1+s||r.endTagStart+2<=i&&i<=r.endTagStart+2+s)?[J.create(e.positionAt(r.start+1),e.positionAt(r.start+1+s)),J.create(e.positionAt(r.endTagStart+2),e.positionAt(r.endTagStart+2+s))]:null}class uh{constructor(t){this.dataManager=t}limitRanges(t,n){t=t.sort((d,m)=>{let f=d.startLine-m.startLine;return f===0&&(f=d.endLine-m.endLine),f});let i;const r=[],s=[],a=[],l=(d,m)=>{s[d]=m,m<30&&(a[m]=(a[m]||0)+1)};for(let d=0;d<t.length;d++){const m=t[d];if(!i)i=m,l(d,0);else if(m.startLine>i.startLine){if(m.endLine<=i.endLine)r.push(i),i=m,l(d,r.length);else if(m.startLine>i.endLine){do i=r.pop();while(i&&m.startLine>i.endLine);i&&r.push(i),i=m,l(d,r.length)}}}let o=0,u=0;for(let d=0;d<a.length;d++){const m=a[d];if(m){if(m+o>n){u=d;break}o+=m}}const c=[];for(let d=0;d<t.length;d++){const m=s[d];typeof m=="number"&&(m<u||m===u&&o++<n)&&c.push(t[d])}return c}getFoldingRanges(t,n){const i=this.dataManager.getVoidElements(t.languageId),r=be(t.getText());let s=r.scan();const a=[],l=[];let o=null,u=-1;function c(m){a.push(m),u=m.startLine}for(;s!==z.EOS;){switch(s){case z.StartTag:{const m=r.getTokenText(),f=t.positionAt(r.getTokenOffset()).line;l.push({startLine:f,tagName:m}),o=m;break}case z.EndTag:{o=r.getTokenText();break}case z.StartTagClose:if(!o||!this.dataManager.isVoidElement(o,i))break;case z.EndTagClose:case z.StartTagSelfClose:{let m=l.length-1;for(;m>=0&&l[m].tagName!==o;)m--;if(m>=0){const f=l[m];l.length=m;const w=t.positionAt(r.getTokenOffset()).line,p=f.startLine,x=w-1;x>p&&u!==p&&c({startLine:p,endLine:x})}break}case z.Comment:{let m=t.positionAt(r.getTokenOffset()).line;const w=r.getTokenText().match(/^\s*#(region\b)|(endregion\b)/);if(w)if(w[1])l.push({startLine:m,tagName:""});else{let p=l.length-1;for(;p>=0&&l[p].tagName.length;)p--;if(p>=0){const x=l[p];l.length=p;const T=m;m=x.startLine,T>m&&u!==m&&c({startLine:m,endLine:T,kind:pn.Region})}}else{const p=t.positionAt(r.getTokenOffset()+r.getTokenLength()).line;m<p&&c({startLine:m,endLine:p,kind:pn.Comment})}break}}s=r.scan()}const d=n&&n.rangeLimit||Number.MAX_VALUE;return a.length>d?this.limitRanges(a,d):a}}class ch{constructor(t){this.htmlParser=t}getSelectionRanges(t,n){const i=this.htmlParser.parseDocument(t);return n.map(r=>this.getSelectionRange(r,t,i))}getSelectionRange(t,n,i){const r=this.getApplicableRanges(n,t,i);let s,a;for(let l=r.length-1;l>=0;l--){const o=r[l];(!s||o[0]!==s[0]||o[1]!==s[1])&&(a=vn.create(J.create(n.positionAt(r[l][0]),n.positionAt(r[l][1])),a)),s=o}return a||(a=vn.create(J.create(t,t))),a}getApplicableRanges(t,n,i){const r=t.offsetAt(n),s=i.findNodeAt(r);let a=this.getAllParentTagRanges(s);if(s.startTagEnd&&!s.endTagStart){if(s.startTagEnd!==s.end)return[[s.start,s.end]];const l=J.create(t.positionAt(s.startTagEnd-2),t.positionAt(s.startTagEnd));return t.getText(l)==="/>"?a.unshift([s.start+1,s.startTagEnd-2]):a.unshift([s.start+1,s.startTagEnd-1]),a=this.getAttributeLevelRanges(t,s,r).concat(a),a}return!s.startTagEnd||!s.endTagStart?a:(a.unshift([s.start,s.end]),s.start<r&&r<s.startTagEnd?(a.unshift([s.start+1,s.startTagEnd-1]),a=this.getAttributeLevelRanges(t,s,r).concat(a),a):s.startTagEnd<=r&&r<=s.endTagStart?(a.unshift([s.startTagEnd,s.endTagStart]),a):(r>=s.endTagStart+2&&a.unshift([s.endTagStart+2,s.end-1]),a))}getAllParentTagRanges(t){let n=t;const i=[];for(;n.parent;)n=n.parent,this.getNodeRanges(n).forEach(r=>i.push(r));return i}getNodeRanges(t){return t.startTagEnd&&t.endTagStart&&t.startTagEnd<t.endTagStart?[[t.startTagEnd,t.endTagStart],[t.start,t.end]]:[[t.start,t.end]]}getAttributeLevelRanges(t,n,i){const r=J.create(t.positionAt(n.start),t.positionAt(n.end)),s=t.getText(r),a=i-n.start,l=be(s);let o=l.scan();const u=n.start,c=[];let d=!1,m=-1;for(;o!==z.EOS;){switch(o){case z.AttributeName:{if(a<l.getTokenOffset()){d=!1;break}a<=l.getTokenEnd()&&c.unshift([l.getTokenOffset(),l.getTokenEnd()]),d=!0,m=l.getTokenOffset();break}case z.AttributeValue:{if(!d)break;const f=l.getTokenText();if(a<l.getTokenOffset()){c.push([m,l.getTokenEnd()]);break}a>=l.getTokenOffset()&&a<=l.getTokenEnd()&&(c.unshift([l.getTokenOffset(),l.getTokenEnd()]),(f[0]==='"'&&f[f.length-1]==='"'||f[0]==="'"&&f[f.length-1]==="'")&&a>=l.getTokenOffset()+1&&a<=l.getTokenEnd()-1&&c.unshift([l.getTokenOffset()+1,l.getTokenEnd()-1]),c.push([m,l.getTokenEnd()]));break}}o=l.scan()}return c.map(f=>[f[0]+u,f[1]+u])}}const hh={version:1.1,tags:[{name:"html",description:{kind:"markdown",value:"The html element represents the root of an HTML document."},attributes:[{name:"manifest",description:{kind:"markdown",value:"Specifies the URI of a resource manifest indicating resources that should be cached locally. See [Using the application cache](https://developer.mozilla.org/en-US/docs/Web/HTML/Using_the_application_cache) for details."}},{name:"version",description:'Specifies the version of the HTML [Document Type Definition](https://developer.mozilla.org/en-US/docs/Glossary/DTD "Document Type Definition: In HTML, the doctype is the required "<!DOCTYPE html>" preamble found at the top of all documents. Its sole purpose is to prevent a browser from switching into so-called “quirks mode” when rendering a document; that is, the "<!DOCTYPE html>" doctype ensures that the browser makes a best-effort attempt at following the relevant specifications, rather than using a different rendering mode that is incompatible with some specifications.") that governs the current document. This attribute is not needed, because it is redundant with the version information in the document type declaration.'},{name:"xmlns",description:'Specifies the XML Namespace of the document. Default value is `"http://www.w3.org/1999/xhtml"`. This is required in documents parsed with XML parsers, and optional in text/html documents.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/html"}]},{name:"head",description:{kind:"markdown",value:"The head element represents a collection of metadata for the Document."},attributes:[{name:"profile",description:"The URIs of one or more metadata profiles, separated by white space."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/head"}]},{name:"title",description:{kind:"markdown",value:"The title element represents the document's title or name. Authors should use titles that identify their documents even when they are used out of context, for example in a user's history or bookmarks, or in search results. The document's title is often different from its first heading, since the first heading does not have to stand alone when taken out of context."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/title"}]},{name:"base",description:{kind:"markdown",value:"The base element allows authors to specify the document base URL for the purposes of resolving relative URLs, and the name of the default browsing context for the purposes of following hyperlinks. The element does not represent any content beyond this information."},void:!0,attributes:[{name:"href",description:{kind:"markdown",value:"The base URL to be used throughout the document for relative URL addresses. If this attribute is specified, this element must come before any other elements with attributes whose values are URLs. Absolute and relative URLs are allowed."}},{name:"target",valueSet:"target",description:{kind:"markdown",value:"A name or keyword indicating the default location to display the result when hyperlinks or forms cause navigation, for elements that do not have an explicit target reference. It is a name of, or keyword for, a _browsing context_ (for example: tab, window, or inline frame). The following keywords have special meanings:\n\n* `_self`: Load the result into the same browsing context as the current one. This value is the default if the attribute is not specified.\n* `_blank`: Load the result into a new unnamed browsing context.\n* `_parent`: Load the result into the parent browsing context of the current one. If there is no parent, this option behaves the same way as `_self`.\n* `_top`: Load the result into the top-level browsing context (that is, the browsing context that is an ancestor of the current one, and has no parent). If there is no parent, this option behaves the same way as `_self`.\n\nIf this attribute is specified, this element must come before any other elements with attributes whose values are URLs."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/base"}]},{name:"link",description:{kind:"markdown",value:"The link element allows authors to link their document to other resources."},void:!0,attributes:[{name:"href",description:{kind:"markdown",value:'This attribute specifies the [URL](https://developer.mozilla.org/en-US/docs/Glossary/URL "URL: Uniform Resource Locator (URL) is a text string specifying where a resource can be found on the Internet.") of the linked resource. A URL can be absolute or relative.'}},{name:"crossorigin",valueSet:"xo",description:{kind:"markdown",value:'This enumerated attribute indicates whether [CORS](https://developer.mozilla.org/en-US/docs/Glossary/CORS "CORS: CORS (Cross-Origin Resource Sharing) is a system, consisting of transmitting HTTP headers, that determines whether browsers block frontend JavaScript code from accessing responses for cross-origin requests.") must be used when fetching the resource. [CORS-enabled images](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_Enabled_Image) can be reused in the [`<canvas>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/canvas "Use the HTML <canvas> element with either the canvas scripting API or the WebGL API to draw graphics and animations.") element without being _tainted_. The allowed values are:\n\n`anonymous`\n\nA cross-origin request (i.e. with an [`Origin`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin "The Origin request header indicates where a fetch originates from. It doesn\'t include any path information, but only the server name. It is sent with CORS requests, as well as with POST requests. It is similar to the Referer header, but, unlike this header, it doesn\'t disclose the whole path.") HTTP header) is performed, but no credential is sent (i.e. no cookie, X.509 certificate, or HTTP Basic authentication). If the server does not give credentials to the origin site (by not setting the [`Access-Control-Allow-Origin`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin "The Access-Control-Allow-Origin response header indicates whether the response can be shared with requesting code from the given origin.") HTTP header) the image will be tainted and its usage restricted.\n\n`use-credentials`\n\nA cross-origin request (i.e. with an `Origin` HTTP header) is performed along with a credential sent (i.e. a cookie, certificate, and/or HTTP Basic authentication is performed). If the server does not give credentials to the origin site (through [`Access-Control-Allow-Credentials`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Credentials "The Access-Control-Allow-Credentials response header tells browsers whether to expose the response to frontend JavaScript code when the request\'s credentials mode (Request.credentials) is "include".") HTTP header), the resource will be _tainted_ and its usage restricted.\n\nIf the attribute is not present, the resource is fetched without a [CORS](https://developer.mozilla.org/en-US/docs/Glossary/CORS "CORS: CORS (Cross-Origin Resource Sharing) is a system, consisting of transmitting HTTP headers, that determines whether browsers block frontend JavaScript code from accessing responses for cross-origin requests.") request (i.e. without sending the `Origin` HTTP header), preventing its non-tainted usage. If invalid, it is handled as if the enumerated keyword **anonymous** was used. See [CORS settings attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes) for additional information.'}},{name:"rel",description:{kind:"markdown",value:"This attribute names a relationship of the linked document to the current document. The attribute must be a space-separated list of the [link types values](https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types)."}},{name:"media",description:{kind:"markdown",value:"This attribute specifies the media that the linked resource applies to. Its value must be a media type / [media query](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_queries). This attribute is mainly useful when linking to external stylesheets — it allows the user agent to pick the best adapted one for the device it runs on.\n\n**Notes:**\n\n* In HTML 4, this can only be a simple white-space-separated list of media description literals, i.e., [media types and groups](https://developer.mozilla.org/en-US/docs/Web/CSS/@media), where defined and allowed as values for this attribute, such as `print`, `screen`, `aural`, `braille`. HTML5 extended this to any kind of [media queries](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_queries), which are a superset of the allowed values of HTML 4.\n* Browsers not supporting [CSS3 Media Queries](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_queries) won't necessarily recognize the adequate link; do not forget to set fallback links, the restricted set of media queries defined in HTML 4."}},{name:"hreflang",description:{kind:"markdown",value:"This attribute indicates the language of the linked resource. It is purely advisory. Allowed values are determined by [BCP47](https://www.ietf.org/rfc/bcp/bcp47.txt). Use this attribute only if the [`href`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-href) attribute is present."}},{name:"type",description:{kind:"markdown",value:'This attribute is used to define the type of the content linked to. The value of the attribute should be a MIME type such as **text/html**, **text/css**, and so on. The common use of this attribute is to define the type of stylesheet being referenced (such as **text/css**), but given that CSS is the only stylesheet language used on the web, not only is it possible to omit the `type` attribute, but is actually now recommended practice. It is also used on `rel="preload"` link types, to make sure the browser only downloads file types that it supports.'}},{name:"sizes",description:{kind:"markdown",value:"This attribute defines the sizes of the icons for visual media contained in the resource. It must be present only if the [`rel`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-rel) contains a value of `icon` or a non-standard type such as Apple's `apple-touch-icon`. It may have the following values:\n\n* `any`, meaning that the icon can be scaled to any size as it is in a vector format, like `image/svg+xml`.\n* a white-space separated list of sizes, each in the format `_<width in pixels>_x_<height in pixels>_` or `_<width in pixels>_X_<height in pixels>_`. Each of these sizes must be contained in the resource.\n\n**Note:** Most icon formats are only able to store one single icon; therefore most of the time the [`sizes`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-sizes) contains only one entry. MS's ICO format does, as well as Apple's ICNS. ICO is more ubiquitous; you should definitely use it."}},{name:"as",description:'This attribute is only used when `rel="preload"` or `rel="prefetch"` has been set on the `<link>` element. It specifies the type of content being loaded by the `<link>`, which is necessary for content prioritization, request matching, application of correct [content security policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), and setting of correct [`Accept`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept "The Accept request HTTP header advertises which content types, expressed as MIME types, the client is able to understand. Using content negotiation, the server then selects one of the proposals, uses it and informs the client of its choice with the Content-Type response header. Browsers set adequate values for this header depending on the context where the request is done: when fetching a CSS stylesheet a different value is set for the request than when fetching an image, video or a script.") request header.'},{name:"importance",description:"Indicates the relative importance of the resource. Priority hints are delegated using the values:"},{name:"importance",description:'**`auto`**: Indicates **no preference**. The browser may use its own heuristics to decide the priority of the resource.\n\n**`high`**: Indicates to the browser that the resource is of **high** priority.\n\n**`low`**: Indicates to the browser that the resource is of **low** priority.\n\n**Note:** The `importance` attribute may only be used for the `<link>` element if `rel="preload"` or `rel="prefetch"` is present.'},{name:"integrity",description:"Contains inline metadata — a base64-encoded cryptographic hash of the resource (file) you’re telling the browser to fetch. The browser can use this to verify that the fetched resource has been delivered free of unexpected manipulation. See [Subresource Integrity](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity)."},{name:"referrerpolicy",description:'A string indicating which referrer to use when fetching the resource:\n\n* `no-referrer` means that the [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will not be sent.\n* `no-referrer-when-downgrade` means that no [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will be sent when navigating to an origin without TLS (HTTPS). This is a user agent’s default behavior, if no policy is otherwise specified.\n* `origin` means that the referrer will be the origin of the page, which is roughly the scheme, the host, and the port.\n* `origin-when-cross-origin` means that navigating to other origins will be limited to the scheme, the host, and the port, while navigating on the same origin will include the referrer\'s path.\n* `unsafe-url` means that the referrer will include the origin and the path (but not the fragment, password, or username). This case is unsafe because it can leak origins and paths from TLS-protected resources to insecure origins.'},{name:"title",description:'The `title` attribute has special semantics on the `<link>` element. When used on a `<link rel="stylesheet">` it defines a [preferred or an alternate stylesheet](https://developer.mozilla.org/en-US/docs/Web/CSS/Alternative_style_sheets). Incorrectly using it may [cause the stylesheet to be ignored](https://developer.mozilla.org/en-US/docs/Correctly_Using_Titles_With_External_Stylesheets).'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/link"}]},{name:"meta",description:{kind:"markdown",value:"The meta element represents various kinds of metadata that cannot be expressed using the title, base, link, style, and script elements."},void:!0,attributes:[{name:"name",description:{kind:"markdown",value:`This attribute defines the name of a piece of document-level metadata. It should not be set if one of the attributes [\`itemprop\`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-itemprop), [\`http-equiv\`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-http-equiv) or [\`charset\`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-charset) is also set.
|
|
69
|
+
`+u),e.start.character===0&&(o=u+o)}return[{range:e,newText:o}]}function Pc(t){return t.replace(/^\s+/,"")}function we(t,e,n){if(t&&t.hasOwnProperty(e)){const i=t[e];if(i!==null)return i}return n}function Ni(t,e,n){const i=we(t,e,null);return typeof i=="string"?i.length>0?i.split(",").map(r=>r.trim().toLowerCase()):[]:n}function Wc(t,e){const n=we(t,"templating",e);return n===!0?["auto"]:n===!1||n===e||Array.isArray(n)===!1?["none"]:n}function Fc(t,e,n){let i=e,r=0;const s=n.tabSize||4;for(;i<t.length;){const a=t.charAt(i);if(a===" ")r++;else if(a===" ")r+=s;else break;i++}return Math.floor(r/s)}function Ya(t,e){return`\r
|
|
70
|
+
`.indexOf(t.charAt(e))!==-1}function Za(t,e){return" ".indexOf(t.charAt(e))!==-1}var Ka;(()=>{var t={470:r=>{function s(o){if(typeof o!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(o))}function a(o,u){for(var c,d="",m=0,f=-1,w=0,p=0;p<=o.length;++p){if(p<o.length)c=o.charCodeAt(p);else{if(c===47)break;c=47}if(c===47){if(!(f===p-1||w===1))if(f!==p-1&&w===2){if(d.length<2||m!==2||d.charCodeAt(d.length-1)!==46||d.charCodeAt(d.length-2)!==46){if(d.length>2){var x=d.lastIndexOf("/");if(x!==d.length-1){x===-1?(d="",m=0):m=(d=d.slice(0,x)).length-1-d.lastIndexOf("/"),f=p,w=0;continue}}else if(d.length===2||d.length===1){d="",m=0,f=p,w=0;continue}}u&&(d.length>0?d+="/..":d="..",m=2)}else d.length>0?d+="/"+o.slice(f+1,p):d=o.slice(f+1,p),m=p-f-1;f=p,w=0}else c===46&&w!==-1?++w:w=-1}return d}var l={resolve:function(){for(var o,u="",c=!1,d=arguments.length-1;d>=-1&&!c;d--){var m;d>=0?m=arguments[d]:(o===void 0&&(o=process.cwd()),m=o),s(m),m.length!==0&&(u=m+"/"+u,c=m.charCodeAt(0)===47)}return u=a(u,!c),c?u.length>0?"/"+u:"/":u.length>0?u:"."},normalize:function(o){if(s(o),o.length===0)return".";var u=o.charCodeAt(0)===47,c=o.charCodeAt(o.length-1)===47;return(o=a(o,!u)).length!==0||u||(o="."),o.length>0&&c&&(o+="/"),u?"/"+o:o},isAbsolute:function(o){return s(o),o.length>0&&o.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var o,u=0;u<arguments.length;++u){var c=arguments[u];s(c),c.length>0&&(o===void 0?o=c:o+="/"+c)}return o===void 0?".":l.normalize(o)},relative:function(o,u){if(s(o),s(u),o===u||(o=l.resolve(o))===(u=l.resolve(u)))return"";for(var c=1;c<o.length&&o.charCodeAt(c)===47;++c);for(var d=o.length,m=d-c,f=1;f<u.length&&u.charCodeAt(f)===47;++f);for(var w=u.length-f,p=m<w?m:w,x=-1,T=0;T<=p;++T){if(T===p){if(w>p){if(u.charCodeAt(f+T)===47)return u.slice(f+T+1);if(T===0)return u.slice(f+T)}else m>p&&(o.charCodeAt(c+T)===47?x=T:T===0&&(x=0));break}var y=o.charCodeAt(c+T);if(y!==u.charCodeAt(f+T))break;y===47&&(x=T)}var L="";for(T=c+x+1;T<=d;++T)T!==d&&o.charCodeAt(T)!==47||(L.length===0?L+="..":L+="/..");return L.length>0?L+u.slice(f+x):(f+=x,u.charCodeAt(f)===47&&++f,u.slice(f))},_makeLong:function(o){return o},dirname:function(o){if(s(o),o.length===0)return".";for(var u=o.charCodeAt(0),c=u===47,d=-1,m=!0,f=o.length-1;f>=1;--f)if((u=o.charCodeAt(f))===47){if(!m){d=f;break}}else m=!1;return d===-1?c?"/":".":c&&d===1?"//":o.slice(0,d)},basename:function(o,u){if(u!==void 0&&typeof u!="string")throw new TypeError('"ext" argument must be a string');s(o);var c,d=0,m=-1,f=!0;if(u!==void 0&&u.length>0&&u.length<=o.length){if(u.length===o.length&&u===o)return"";var w=u.length-1,p=-1;for(c=o.length-1;c>=0;--c){var x=o.charCodeAt(c);if(x===47){if(!f){d=c+1;break}}else p===-1&&(f=!1,p=c+1),w>=0&&(x===u.charCodeAt(w)?--w==-1&&(m=c):(w=-1,m=p))}return d===m?m=p:m===-1&&(m=o.length),o.slice(d,m)}for(c=o.length-1;c>=0;--c)if(o.charCodeAt(c)===47){if(!f){d=c+1;break}}else m===-1&&(f=!1,m=c+1);return m===-1?"":o.slice(d,m)},extname:function(o){s(o);for(var u=-1,c=0,d=-1,m=!0,f=0,w=o.length-1;w>=0;--w){var p=o.charCodeAt(w);if(p!==47)d===-1&&(m=!1,d=w+1),p===46?u===-1?u=w:f!==1&&(f=1):u!==-1&&(f=-1);else if(!m){c=w+1;break}}return u===-1||d===-1||f===0||f===1&&u===d-1&&u===c+1?"":o.slice(u,d)},format:function(o){if(o===null||typeof o!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof o);return(function(u,c){var d=c.dir||c.root,m=c.base||(c.name||"")+(c.ext||"");return d?d===c.root?d+m:d+"/"+m:m})(0,o)},parse:function(o){s(o);var u={root:"",dir:"",base:"",ext:"",name:""};if(o.length===0)return u;var c,d=o.charCodeAt(0),m=d===47;m?(u.root="/",c=1):c=0;for(var f=-1,w=0,p=-1,x=!0,T=o.length-1,y=0;T>=c;--T)if((d=o.charCodeAt(T))!==47)p===-1&&(x=!1,p=T+1),d===46?f===-1?f=T:y!==1&&(y=1):f!==-1&&(y=-1);else if(!x){w=T+1;break}return f===-1||p===-1||y===0||y===1&&f===p-1&&f===w+1?p!==-1&&(u.base=u.name=w===0&&m?o.slice(1,p):o.slice(w,p)):(w===0&&m?(u.name=o.slice(1,f),u.base=o.slice(1,p)):(u.name=o.slice(w,f),u.base=o.slice(w,p)),u.ext=o.slice(f,p)),w>0?u.dir=o.slice(0,w-1):m&&(u.dir="/"),u},sep:"/",delimiter:":",win32:null,posix:null};l.posix=l,r.exports=l}},e={};function n(r){var s=e[r];if(s!==void 0)return s.exports;var a=e[r]={exports:{}};return t[r](a,a.exports,n),a.exports}n.d=(r,s)=>{for(var a in s)n.o(s,a)&&!n.o(r,a)&&Object.defineProperty(r,a,{enumerable:!0,get:s[a]})},n.o=(r,s)=>Object.prototype.hasOwnProperty.call(r,s),n.r=r=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})};var i={};(()=>{let r;n.r(i),n.d(i,{URI:()=>m,Utils:()=>N}),typeof process=="object"?r=process.platform==="win32":typeof navigator=="object"&&(r=navigator.userAgent.indexOf("Windows")>=0);const s=/^\w[\w\d+.-]*$/,a=/^\//,l=/^\/\//;function o(S,v){if(!S.scheme&&v)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${S.authority}", path: "${S.path}", query: "${S.query}", fragment: "${S.fragment}"}`);if(S.scheme&&!s.test(S.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(S.path){if(S.authority){if(!a.test(S.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(l.test(S.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}const u="",c="/",d=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class m{constructor(v,A,D,k,E,M=!1){Qe(this,"scheme");Qe(this,"authority");Qe(this,"path");Qe(this,"query");Qe(this,"fragment");typeof v=="object"?(this.scheme=v.scheme||u,this.authority=v.authority||u,this.path=v.path||u,this.query=v.query||u,this.fragment=v.fragment||u):(this.scheme=(function(W,F){return W||F?W:"file"})(v,M),this.authority=A||u,this.path=(function(W,F){switch(W){case"https":case"http":case"file":F?F[0]!==c&&(F=c+F):F=c}return F})(this.scheme,D||u),this.query=k||u,this.fragment=E||u,o(this,M))}static isUri(v){return v instanceof m||!!v&&typeof v.authority=="string"&&typeof v.fragment=="string"&&typeof v.path=="string"&&typeof v.query=="string"&&typeof v.scheme=="string"&&typeof v.fsPath=="string"&&typeof v.with=="function"&&typeof v.toString=="function"}get fsPath(){return y(this)}with(v){if(!v)return this;let{scheme:A,authority:D,path:k,query:E,fragment:M}=v;return A===void 0?A=this.scheme:A===null&&(A=u),D===void 0?D=this.authority:D===null&&(D=u),k===void 0?k=this.path:k===null&&(k=u),E===void 0?E=this.query:E===null&&(E=u),M===void 0?M=this.fragment:M===null&&(M=u),A===this.scheme&&D===this.authority&&k===this.path&&E===this.query&&M===this.fragment?this:new w(A,D,k,E,M)}static parse(v,A=!1){const D=d.exec(v);return D?new w(D[2]||u,P(D[4]||u),P(D[5]||u),P(D[7]||u),P(D[9]||u),A):new w(u,u,u,u,u)}static file(v){let A=u;if(r&&(v=v.replace(/\\/g,c)),v[0]===c&&v[1]===c){const D=v.indexOf(c,2);D===-1?(A=v.substring(2),v=c):(A=v.substring(2,D),v=v.substring(D)||c)}return new w("file",A,v,u,u)}static from(v){const A=new w(v.scheme,v.authority,v.path,v.query,v.fragment);return o(A,!0),A}toString(v=!1){return L(this,v)}toJSON(){return this}static revive(v){if(v){if(v instanceof m)return v;{const A=new w(v);return A._formatted=v.external,A._fsPath=v._sep===f?v.fsPath:null,A}}return v}}const f=r?1:void 0;class w extends m{constructor(){super(...arguments);Qe(this,"_formatted",null);Qe(this,"_fsPath",null)}get fsPath(){return this._fsPath||(this._fsPath=y(this)),this._fsPath}toString(A=!1){return A?L(this,!0):(this._formatted||(this._formatted=L(this,!1)),this._formatted)}toJSON(){const A={$mid:1};return this._fsPath&&(A.fsPath=this._fsPath,A._sep=f),this._formatted&&(A.external=this._formatted),this.path&&(A.path=this.path),this.scheme&&(A.scheme=this.scheme),this.authority&&(A.authority=this.authority),this.query&&(A.query=this.query),this.fragment&&(A.fragment=this.fragment),A}}const p={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 x(S,v,A){let D,k=-1;for(let E=0;E<S.length;E++){const M=S.charCodeAt(E);if(M>=97&&M<=122||M>=65&&M<=90||M>=48&&M<=57||M===45||M===46||M===95||M===126||v&&M===47||A&&M===91||A&&M===93||A&&M===58)k!==-1&&(D+=encodeURIComponent(S.substring(k,E)),k=-1),D!==void 0&&(D+=S.charAt(E));else{D===void 0&&(D=S.substr(0,E));const W=p[M];W!==void 0?(k!==-1&&(D+=encodeURIComponent(S.substring(k,E)),k=-1),D+=W):k===-1&&(k=E)}}return k!==-1&&(D+=encodeURIComponent(S.substring(k))),D!==void 0?D:S}function T(S){let v;for(let A=0;A<S.length;A++){const D=S.charCodeAt(A);D===35||D===63?(v===void 0&&(v=S.substr(0,A)),v+=p[D]):v!==void 0&&(v+=S[A])}return v!==void 0?v:S}function y(S,v){let A;return A=S.authority&&S.path.length>1&&S.scheme==="file"?`//${S.authority}${S.path}`:S.path.charCodeAt(0)===47&&(S.path.charCodeAt(1)>=65&&S.path.charCodeAt(1)<=90||S.path.charCodeAt(1)>=97&&S.path.charCodeAt(1)<=122)&&S.path.charCodeAt(2)===58?S.path[1].toLowerCase()+S.path.substr(2):S.path,r&&(A=A.replace(/\//g,"\\")),A}function L(S,v){const A=v?T:x;let D="",{scheme:k,authority:E,path:M,query:W,fragment:F}=S;if(k&&(D+=k,D+=":"),(E||k==="file")&&(D+=c,D+=c),E){let U=E.indexOf("@");if(U!==-1){const O=E.substr(0,U);E=E.substr(U+1),U=O.lastIndexOf(":"),U===-1?D+=A(O,!1,!1):(D+=A(O.substr(0,U),!1,!1),D+=":",D+=A(O.substr(U+1),!1,!0)),D+="@"}E=E.toLowerCase(),U=E.lastIndexOf(":"),U===-1?D+=A(E,!1,!0):(D+=A(E.substr(0,U),!1,!0),D+=E.substr(U))}if(M){if(M.length>=3&&M.charCodeAt(0)===47&&M.charCodeAt(2)===58){const U=M.charCodeAt(1);U>=65&&U<=90&&(M=`/${String.fromCharCode(U+32)}:${M.substr(3)}`)}else if(M.length>=2&&M.charCodeAt(1)===58){const U=M.charCodeAt(0);U>=65&&U<=90&&(M=`${String.fromCharCode(U+32)}:${M.substr(2)}`)}D+=A(M,!0,!1)}return W&&(D+="?",D+=A(W,!1,!1)),F&&(D+="#",D+=v?F:x(F,!1,!1)),D}function I(S){try{return decodeURIComponent(S)}catch{return S.length>3?S.substr(0,3)+I(S.substr(3)):S}}const H=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function P(S){return S.match(H)?S.replace(H,(v=>I(v))):S}var b=n(470);const g=b.posix||b,_="/";var N;(function(S){S.joinPath=function(v,...A){return v.with({path:g.join(v.path,...A)})},S.resolvePath=function(v,...A){let D=v.path,k=!1;D[0]!==_&&(D=_+D,k=!0);let E=g.resolve(D,...A);return k&&E[0]===_&&!v.authority&&(E=E.substring(1)),v.with({path:E})},S.dirname=function(v){if(v.path.length===0||v.path===_)return v;let A=g.dirname(v.path);return A.length===1&&A.charCodeAt(0)===46&&(A=""),v.with({path:A})},S.basename=function(v){return g.basename(v.path)},S.extname=function(v){return g.extname(v.path)}})(N||(N={}))})(),Ka=i})();const{URI:Bc,Utils:gh}=Ka;function Ii(t){const e=t[0],n=t[t.length-1];return e===n&&(e==="'"||e==='"')&&(t=t.substring(1,t.length-1)),t}function qc(t,e){return!t.length||e==="handlebars"&&/{{|}}/.test(t)?!1:/\b(w[\w\d+.-]*:\/\/)?[^\s()<>]+(?:\([\w\d]+\)|([^[:punct:]\s]|\/?))/.test(t)}function Oc(t,e,n,i){if(/^\s*javascript\:/i.test(e)||/[\n\r]/.test(e))return;e=e.replace(/^\s*/g,"");const r=e.match(/^(\w[\w\d+.-]*):/);if(r){const s=r[1].toLowerCase();return s==="http"||s==="https"||s==="file"?e:void 0}return/^\#/i.test(e)?t+e:/^\/\//i.test(e)?(Je(t,"https://")?"https":"http")+":"+e.replace(/^\s*/g,""):n?n.resolveReference(e,i||t):e}function Vc(t,e,n,i,r,s){const a=Ii(n);if(!qc(a,t.languageId))return;a.length<n.length&&(i++,r--);const l=Oc(t.uri,a,e,s);if(!l)return;const o=$c(l,t);return{range:J.create(t.positionAt(i),t.positionAt(r)),target:o}}const jc=35;function $c(t,e){try{let n=Bc.parse(t);return n.scheme==="file"&&n.query&&(n=n.with({query:null}),t=n.toString(!0)),n.scheme==="file"&&n.fragment&&!(t.startsWith(e.uri)&&t.charCodeAt(e.uri.length)===jc)?n.with({fragment:null}).toString(!0):t}catch{return}}class Gc{constructor(e){this.dataManager=e}findDocumentLinks(e,n){const i=[],r=be(e.getText(),0);let s=r.scan(),a,l,o=!1,u;const c={};for(;s!==z.EOS;){switch(s){case z.StartTag:l=r.getTokenText().toLowerCase(),u||(o=l==="base");break;case z.AttributeName:a=r.getTokenText().toLowerCase();break;case z.AttributeValue:if(l&&a&&this.dataManager.isPathAttribute(l,a)){const d=r.getTokenText();if(!o){const m=Vc(e,n,d,r.getTokenOffset(),r.getTokenEnd(),u);m&&i.push(m)}o&&typeof u>"u"&&(u=Ii(d),u&&n&&(u=n.resolveReference(u,e.uri))),o=!1,a=void 0}else if(a==="id"){const d=Ii(r.getTokenText());c[d]=r.getTokenOffset()}break}s=r.scan()}for(const d of i){const m=e.uri+"#";if(d.target&&Je(d.target,m)){const f=d.target.substring(m.length),w=c[f];if(w!==void 0){const p=e.positionAt(w);d.target=`${m}${p.line+1},${p.character+1}`}else d.target=e.uri}}return i}}function Xc(t,e,n){const i=t.offsetAt(e),r=n.findNodeAt(i);if(!r.tag)return[];const s=[],a=no(z.StartTag,t,r.start),l=typeof r.endTagStart=="number"&&no(z.EndTag,t,r.endTagStart);return(a&&to(a,e)||l&&to(l,e))&&(a&&s.push({kind:gn.Read,range:a}),l&&s.push({kind:gn.Read,range:l})),s}function eo(t,e){return t.line<e.line||t.line===e.line&&t.character<=e.character}function to(t,e){return eo(t.start,e)&&eo(e,t.end)}function no(t,e,n){const i=be(e.getText(),n);let r=i.scan();for(;r!==z.EOS&&r!==t;)r=i.scan();return r!==z.EOS?{start:e.positionAt(i.getTokenOffset()),end:e.positionAt(i.getTokenEnd())}:null}function Jc(t,e){const n=[],i=io(t,e);for(const s of i)r(s,void 0);return n;function r(s,a){const l=Si.create(s.name,s.kind,s.range,t.uri,a==null?void 0:a.name);if(l.containerName??(l.containerName=""),n.push(l),s.children)for(const o of s.children)r(o,s)}}function io(t,e){const n=[];return e.roots.forEach(i=>{ro(t,i,n)}),n}function ro(t,e,n){const i=Qc(e),r=J.create(t.positionAt(e.start),t.positionAt(e.end)),s=Ai.create(i,void 0,ki.Field,r,r);n.push(s),e.children.forEach(a=>{s.children??(s.children=[]),ro(t,a,s.children)})}function Qc(t){let e=t.tag;if(t.attributes){const n=t.attributes.id,i=t.attributes.class;n&&(e+=`#${n.replace(/[\"\']/g,"")}`),i&&(e+=i.replace(/[\"\']/g,"").split(/\s+/).map(r=>`.${r}`).join(""))}return e||"?"}function Yc(t,e,n,i){const r=t.offsetAt(e),s=i.findNodeAt(r);if(!s.tag||!Zc(s,r,s.tag))return null;const a=[],l={start:t.positionAt(s.start+1),end:t.positionAt(s.start+1+s.tag.length)};if(a.push({range:l,newText:n}),s.endTagStart){const u={start:t.positionAt(s.endTagStart+2),end:t.positionAt(s.endTagStart+2+s.tag.length)};a.push({range:u,newText:n})}return{changes:{[t.uri.toString()]:a}}}function Zc(t,e,n){return t.endTagStart&&t.endTagStart+2<=e&&e<=t.endTagStart+2+n.length?!0:t.start+1<=e&&e<=t.start+1+n.length}function Kc(t,e,n){const i=t.offsetAt(e),r=n.findNodeAt(i);if(!r.tag||!r.endTagStart)return null;if(r.start+1<=i&&i<=r.start+1+r.tag.length){const s=i-1-r.start+r.endTagStart+2;return t.positionAt(s)}if(r.endTagStart+2<=i&&i<=r.endTagStart+2+r.tag.length){const s=i-2-r.endTagStart+r.start+1;return t.positionAt(s)}return null}function so(t,e,n){const i=t.offsetAt(e),r=n.findNodeAt(i),s=r.tag?r.tag.length:0;return r.endTagStart&&(r.start+1<=i&&i<=r.start+1+s||r.endTagStart+2<=i&&i<=r.endTagStart+2+s)?[J.create(t.positionAt(r.start+1),t.positionAt(r.start+1+s)),J.create(t.positionAt(r.endTagStart+2),t.positionAt(r.endTagStart+2+s))]:null}class eh{constructor(e){this.dataManager=e}limitRanges(e,n){e=e.sort((d,m)=>{let f=d.startLine-m.startLine;return f===0&&(f=d.endLine-m.endLine),f});let i;const r=[],s=[],a=[],l=(d,m)=>{s[d]=m,m<30&&(a[m]=(a[m]||0)+1)};for(let d=0;d<e.length;d++){const m=e[d];if(!i)i=m,l(d,0);else if(m.startLine>i.startLine){if(m.endLine<=i.endLine)r.push(i),i=m,l(d,r.length);else if(m.startLine>i.endLine){do i=r.pop();while(i&&m.startLine>i.endLine);i&&r.push(i),i=m,l(d,r.length)}}}let o=0,u=0;for(let d=0;d<a.length;d++){const m=a[d];if(m){if(m+o>n){u=d;break}o+=m}}const c=[];for(let d=0;d<e.length;d++){const m=s[d];typeof m=="number"&&(m<u||m===u&&o++<n)&&c.push(e[d])}return c}getFoldingRanges(e,n){const i=this.dataManager.getVoidElements(e.languageId),r=be(e.getText());let s=r.scan();const a=[],l=[];let o=null,u=-1;function c(m){a.push(m),u=m.startLine}for(;s!==z.EOS;){switch(s){case z.StartTag:{const m=r.getTokenText(),f=e.positionAt(r.getTokenOffset()).line;l.push({startLine:f,tagName:m}),o=m;break}case z.EndTag:{o=r.getTokenText();break}case z.StartTagClose:if(!o||!this.dataManager.isVoidElement(o,i))break;case z.EndTagClose:case z.StartTagSelfClose:{let m=l.length-1;for(;m>=0&&l[m].tagName!==o;)m--;if(m>=0){const f=l[m];l.length=m;const w=e.positionAt(r.getTokenOffset()).line,p=f.startLine,x=w-1;x>p&&u!==p&&c({startLine:p,endLine:x})}break}case z.Comment:{let m=e.positionAt(r.getTokenOffset()).line;const w=r.getTokenText().match(/^\s*#(region\b)|(endregion\b)/);if(w)if(w[1])l.push({startLine:m,tagName:""});else{let p=l.length-1;for(;p>=0&&l[p].tagName.length;)p--;if(p>=0){const x=l[p];l.length=p;const T=m;m=x.startLine,T>m&&u!==m&&c({startLine:m,endLine:T,kind:mn.Region})}}else{const p=e.positionAt(r.getTokenOffset()+r.getTokenLength()).line;m<p&&c({startLine:m,endLine:p,kind:mn.Comment})}break}}s=r.scan()}const d=n&&n.rangeLimit||Number.MAX_VALUE;return a.length>d?this.limitRanges(a,d):a}}class th{constructor(e){this.htmlParser=e}getSelectionRanges(e,n){const i=this.htmlParser.parseDocument(e);return n.map(r=>this.getSelectionRange(r,e,i))}getSelectionRange(e,n,i){const r=this.getApplicableRanges(n,e,i);let s,a;for(let l=r.length-1;l>=0;l--){const o=r[l];(!s||o[0]!==s[0]||o[1]!==s[1])&&(a=wn.create(J.create(n.positionAt(r[l][0]),n.positionAt(r[l][1])),a)),s=o}return a||(a=wn.create(J.create(e,e))),a}getApplicableRanges(e,n,i){const r=e.offsetAt(n),s=i.findNodeAt(r);let a=this.getAllParentTagRanges(s);if(s.startTagEnd&&!s.endTagStart){if(s.startTagEnd!==s.end)return[[s.start,s.end]];const l=J.create(e.positionAt(s.startTagEnd-2),e.positionAt(s.startTagEnd));return e.getText(l)==="/>"?a.unshift([s.start+1,s.startTagEnd-2]):a.unshift([s.start+1,s.startTagEnd-1]),a=this.getAttributeLevelRanges(e,s,r).concat(a),a}return!s.startTagEnd||!s.endTagStart?a:(a.unshift([s.start,s.end]),s.start<r&&r<s.startTagEnd?(a.unshift([s.start+1,s.startTagEnd-1]),a=this.getAttributeLevelRanges(e,s,r).concat(a),a):s.startTagEnd<=r&&r<=s.endTagStart?(a.unshift([s.startTagEnd,s.endTagStart]),a):(r>=s.endTagStart+2&&a.unshift([s.endTagStart+2,s.end-1]),a))}getAllParentTagRanges(e){let n=e;const i=[];for(;n.parent;)n=n.parent,this.getNodeRanges(n).forEach(r=>i.push(r));return i}getNodeRanges(e){return e.startTagEnd&&e.endTagStart&&e.startTagEnd<e.endTagStart?[[e.startTagEnd,e.endTagStart],[e.start,e.end]]:[[e.start,e.end]]}getAttributeLevelRanges(e,n,i){const r=J.create(e.positionAt(n.start),e.positionAt(n.end)),s=e.getText(r),a=i-n.start,l=be(s);let o=l.scan();const u=n.start,c=[];let d=!1,m=-1;for(;o!==z.EOS;){switch(o){case z.AttributeName:{if(a<l.getTokenOffset()){d=!1;break}a<=l.getTokenEnd()&&c.unshift([l.getTokenOffset(),l.getTokenEnd()]),d=!0,m=l.getTokenOffset();break}case z.AttributeValue:{if(!d)break;const f=l.getTokenText();if(a<l.getTokenOffset()){c.push([m,l.getTokenEnd()]);break}a>=l.getTokenOffset()&&a<=l.getTokenEnd()&&(c.unshift([l.getTokenOffset(),l.getTokenEnd()]),(f[0]==='"'&&f[f.length-1]==='"'||f[0]==="'"&&f[f.length-1]==="'")&&a>=l.getTokenOffset()+1&&a<=l.getTokenEnd()-1&&c.unshift([l.getTokenOffset()+1,l.getTokenEnd()-1]),c.push([m,l.getTokenEnd()]));break}}o=l.scan()}return c.map(f=>[f[0]+u,f[1]+u])}}const nh={version:1.1,tags:[{name:"html",description:{kind:"markdown",value:"The html element represents the root of an HTML document."},attributes:[{name:"manifest",description:{kind:"markdown",value:"Specifies the URI of a resource manifest indicating resources that should be cached locally. See [Using the application cache](https://developer.mozilla.org/en-US/docs/Web/HTML/Using_the_application_cache) for details."}},{name:"version",description:'Specifies the version of the HTML [Document Type Definition](https://developer.mozilla.org/en-US/docs/Glossary/DTD "Document Type Definition: In HTML, the doctype is the required "<!DOCTYPE html>" preamble found at the top of all documents. Its sole purpose is to prevent a browser from switching into so-called “quirks mode” when rendering a document; that is, the "<!DOCTYPE html>" doctype ensures that the browser makes a best-effort attempt at following the relevant specifications, rather than using a different rendering mode that is incompatible with some specifications.") that governs the current document. This attribute is not needed, because it is redundant with the version information in the document type declaration.'},{name:"xmlns",description:'Specifies the XML Namespace of the document. Default value is `"http://www.w3.org/1999/xhtml"`. This is required in documents parsed with XML parsers, and optional in text/html documents.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/html"}]},{name:"head",description:{kind:"markdown",value:"The head element represents a collection of metadata for the Document."},attributes:[{name:"profile",description:"The URIs of one or more metadata profiles, separated by white space."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/head"}]},{name:"title",description:{kind:"markdown",value:"The title element represents the document's title or name. Authors should use titles that identify their documents even when they are used out of context, for example in a user's history or bookmarks, or in search results. The document's title is often different from its first heading, since the first heading does not have to stand alone when taken out of context."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/title"}]},{name:"base",description:{kind:"markdown",value:"The base element allows authors to specify the document base URL for the purposes of resolving relative URLs, and the name of the default browsing context for the purposes of following hyperlinks. The element does not represent any content beyond this information."},void:!0,attributes:[{name:"href",description:{kind:"markdown",value:"The base URL to be used throughout the document for relative URL addresses. If this attribute is specified, this element must come before any other elements with attributes whose values are URLs. Absolute and relative URLs are allowed."}},{name:"target",valueSet:"target",description:{kind:"markdown",value:"A name or keyword indicating the default location to display the result when hyperlinks or forms cause navigation, for elements that do not have an explicit target reference. It is a name of, or keyword for, a _browsing context_ (for example: tab, window, or inline frame). The following keywords have special meanings:\n\n* `_self`: Load the result into the same browsing context as the current one. This value is the default if the attribute is not specified.\n* `_blank`: Load the result into a new unnamed browsing context.\n* `_parent`: Load the result into the parent browsing context of the current one. If there is no parent, this option behaves the same way as `_self`.\n* `_top`: Load the result into the top-level browsing context (that is, the browsing context that is an ancestor of the current one, and has no parent). If there is no parent, this option behaves the same way as `_self`.\n\nIf this attribute is specified, this element must come before any other elements with attributes whose values are URLs."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/base"}]},{name:"link",description:{kind:"markdown",value:"The link element allows authors to link their document to other resources."},void:!0,attributes:[{name:"href",description:{kind:"markdown",value:'This attribute specifies the [URL](https://developer.mozilla.org/en-US/docs/Glossary/URL "URL: Uniform Resource Locator (URL) is a text string specifying where a resource can be found on the Internet.") of the linked resource. A URL can be absolute or relative.'}},{name:"crossorigin",valueSet:"xo",description:{kind:"markdown",value:'This enumerated attribute indicates whether [CORS](https://developer.mozilla.org/en-US/docs/Glossary/CORS "CORS: CORS (Cross-Origin Resource Sharing) is a system, consisting of transmitting HTTP headers, that determines whether browsers block frontend JavaScript code from accessing responses for cross-origin requests.") must be used when fetching the resource. [CORS-enabled images](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_Enabled_Image) can be reused in the [`<canvas>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/canvas "Use the HTML <canvas> element with either the canvas scripting API or the WebGL API to draw graphics and animations.") element without being _tainted_. The allowed values are:\n\n`anonymous`\n\nA cross-origin request (i.e. with an [`Origin`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin "The Origin request header indicates where a fetch originates from. It doesn\'t include any path information, but only the server name. It is sent with CORS requests, as well as with POST requests. It is similar to the Referer header, but, unlike this header, it doesn\'t disclose the whole path.") HTTP header) is performed, but no credential is sent (i.e. no cookie, X.509 certificate, or HTTP Basic authentication). If the server does not give credentials to the origin site (by not setting the [`Access-Control-Allow-Origin`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin "The Access-Control-Allow-Origin response header indicates whether the response can be shared with requesting code from the given origin.") HTTP header) the image will be tainted and its usage restricted.\n\n`use-credentials`\n\nA cross-origin request (i.e. with an `Origin` HTTP header) is performed along with a credential sent (i.e. a cookie, certificate, and/or HTTP Basic authentication is performed). If the server does not give credentials to the origin site (through [`Access-Control-Allow-Credentials`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Credentials "The Access-Control-Allow-Credentials response header tells browsers whether to expose the response to frontend JavaScript code when the request\'s credentials mode (Request.credentials) is "include".") HTTP header), the resource will be _tainted_ and its usage restricted.\n\nIf the attribute is not present, the resource is fetched without a [CORS](https://developer.mozilla.org/en-US/docs/Glossary/CORS "CORS: CORS (Cross-Origin Resource Sharing) is a system, consisting of transmitting HTTP headers, that determines whether browsers block frontend JavaScript code from accessing responses for cross-origin requests.") request (i.e. without sending the `Origin` HTTP header), preventing its non-tainted usage. If invalid, it is handled as if the enumerated keyword **anonymous** was used. See [CORS settings attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes) for additional information.'}},{name:"rel",description:{kind:"markdown",value:"This attribute names a relationship of the linked document to the current document. The attribute must be a space-separated list of the [link types values](https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types)."}},{name:"media",description:{kind:"markdown",value:"This attribute specifies the media that the linked resource applies to. Its value must be a media type / [media query](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_queries). This attribute is mainly useful when linking to external stylesheets — it allows the user agent to pick the best adapted one for the device it runs on.\n\n**Notes:**\n\n* In HTML 4, this can only be a simple white-space-separated list of media description literals, i.e., [media types and groups](https://developer.mozilla.org/en-US/docs/Web/CSS/@media), where defined and allowed as values for this attribute, such as `print`, `screen`, `aural`, `braille`. HTML5 extended this to any kind of [media queries](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_queries), which are a superset of the allowed values of HTML 4.\n* Browsers not supporting [CSS3 Media Queries](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_queries) won't necessarily recognize the adequate link; do not forget to set fallback links, the restricted set of media queries defined in HTML 4."}},{name:"hreflang",description:{kind:"markdown",value:"This attribute indicates the language of the linked resource. It is purely advisory. Allowed values are determined by [BCP47](https://www.ietf.org/rfc/bcp/bcp47.txt). Use this attribute only if the [`href`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-href) attribute is present."}},{name:"type",description:{kind:"markdown",value:'This attribute is used to define the type of the content linked to. The value of the attribute should be a MIME type such as **text/html**, **text/css**, and so on. The common use of this attribute is to define the type of stylesheet being referenced (such as **text/css**), but given that CSS is the only stylesheet language used on the web, not only is it possible to omit the `type` attribute, but is actually now recommended practice. It is also used on `rel="preload"` link types, to make sure the browser only downloads file types that it supports.'}},{name:"sizes",description:{kind:"markdown",value:"This attribute defines the sizes of the icons for visual media contained in the resource. It must be present only if the [`rel`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-rel) contains a value of `icon` or a non-standard type such as Apple's `apple-touch-icon`. It may have the following values:\n\n* `any`, meaning that the icon can be scaled to any size as it is in a vector format, like `image/svg+xml`.\n* a white-space separated list of sizes, each in the format `_<width in pixels>_x_<height in pixels>_` or `_<width in pixels>_X_<height in pixels>_`. Each of these sizes must be contained in the resource.\n\n**Note:** Most icon formats are only able to store one single icon; therefore most of the time the [`sizes`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-sizes) contains only one entry. MS's ICO format does, as well as Apple's ICNS. ICO is more ubiquitous; you should definitely use it."}},{name:"as",description:'This attribute is only used when `rel="preload"` or `rel="prefetch"` has been set on the `<link>` element. It specifies the type of content being loaded by the `<link>`, which is necessary for content prioritization, request matching, application of correct [content security policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), and setting of correct [`Accept`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept "The Accept request HTTP header advertises which content types, expressed as MIME types, the client is able to understand. Using content negotiation, the server then selects one of the proposals, uses it and informs the client of its choice with the Content-Type response header. Browsers set adequate values for this header depending on the context where the request is done: when fetching a CSS stylesheet a different value is set for the request than when fetching an image, video or a script.") request header.'},{name:"importance",description:"Indicates the relative importance of the resource. Priority hints are delegated using the values:"},{name:"importance",description:'**`auto`**: Indicates **no preference**. The browser may use its own heuristics to decide the priority of the resource.\n\n**`high`**: Indicates to the browser that the resource is of **high** priority.\n\n**`low`**: Indicates to the browser that the resource is of **low** priority.\n\n**Note:** The `importance` attribute may only be used for the `<link>` element if `rel="preload"` or `rel="prefetch"` is present.'},{name:"integrity",description:"Contains inline metadata — a base64-encoded cryptographic hash of the resource (file) you’re telling the browser to fetch. The browser can use this to verify that the fetched resource has been delivered free of unexpected manipulation. See [Subresource Integrity](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity)."},{name:"referrerpolicy",description:'A string indicating which referrer to use when fetching the resource:\n\n* `no-referrer` means that the [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will not be sent.\n* `no-referrer-when-downgrade` means that no [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will be sent when navigating to an origin without TLS (HTTPS). This is a user agent’s default behavior, if no policy is otherwise specified.\n* `origin` means that the referrer will be the origin of the page, which is roughly the scheme, the host, and the port.\n* `origin-when-cross-origin` means that navigating to other origins will be limited to the scheme, the host, and the port, while navigating on the same origin will include the referrer\'s path.\n* `unsafe-url` means that the referrer will include the origin and the path (but not the fragment, password, or username). This case is unsafe because it can leak origins and paths from TLS-protected resources to insecure origins.'},{name:"title",description:'The `title` attribute has special semantics on the `<link>` element. When used on a `<link rel="stylesheet">` it defines a [preferred or an alternate stylesheet](https://developer.mozilla.org/en-US/docs/Web/CSS/Alternative_style_sheets). Incorrectly using it may [cause the stylesheet to be ignored](https://developer.mozilla.org/en-US/docs/Correctly_Using_Titles_With_External_Stylesheets).'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/link"}]},{name:"meta",description:{kind:"markdown",value:"The meta element represents various kinds of metadata that cannot be expressed using the title, base, link, style, and script elements."},void:!0,attributes:[{name:"name",description:{kind:"markdown",value:`This attribute defines the name of a piece of document-level metadata. It should not be set if one of the attributes [\`itemprop\`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-itemprop), [\`http-equiv\`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-http-equiv) or [\`charset\`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-charset) is also set.
|
|
71
71
|
|
|
72
72
|
This metadata name is associated with the value contained by the [\`content\`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-content) attribute. The possible values for the name attribute are:
|
|
73
73
|
|
|
@@ -467,4 +467,4 @@ See [Browser compatibility](#Browser_compatibility) for notes on browser support
|
|
|
467
467
|
|
|
468
468
|
* a _negative value_ means that the element should be focusable, but should not be reachable via sequential keyboard navigation;
|
|
469
469
|
* \`0\` means that the element should be focusable and reachable via sequential keyboard navigation, but its relative order is defined by the platform convention;
|
|
470
|
-
* a _positive value_ means that the element should be focusable and reachable via sequential keyboard navigation; the order in which the elements are focused is the increasing value of the [**tabindex**](#attr-tabindex). If several elements share the same tabindex, their relative order follows their relative positions in the document.`},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/tabindex"}]},{name:"title",description:{kind:"markdown",value:"Contains a text representing advisory information related to the element it belongs to. Such information can typically, but not necessarily, be presented to the user as a tooltip."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/title"}]},{name:"translate",description:{kind:"markdown",value:"An enumerated attribute that is used to specify whether an element's attribute values and the values of its [`Text`](https://developer.mozilla.org/docs/Web/API/Text \"The Text interface represents the textual content of Element or Attr. If an element has no markup within its content, it has a single child implementing Text that contains the element's text. However, if the element contains markup, it is parsed into information items and Text nodes that form its children.\") node children are to be translated when the page is localized, or whether to leave them unchanged. It can have the following values:\n\n* empty string and `yes`, which indicates that the element will be translated.\n* `no`, which indicates that the element will not be translated."},valueSet:"y",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/translate"}]},{name:"onabort",description:{kind:"markdown",value:"The loading of a resource has been aborted."}},{name:"onblur",description:{kind:"markdown",value:"An element has lost focus (does not bubble)."}},{name:"oncanplay",description:{kind:"markdown",value:"The user agent can play the media, but estimates that not enough data has been loaded to play the media up to its end without having to stop for further buffering of content."}},{name:"oncanplaythrough",description:{kind:"markdown",value:"The user agent can play the media up to its end without having to stop for further buffering of content."}},{name:"onchange",description:{kind:"markdown",value:"The change event is fired for <input>, <select>, and <textarea> elements when a change to the element's value is committed by the user."}},{name:"onclick",description:{kind:"markdown",value:"A pointing device button has been pressed and released on an element."}},{name:"oncontextmenu",description:{kind:"markdown",value:"The right button of the mouse is clicked (before the context menu is displayed)."}},{name:"ondblclick",description:{kind:"markdown",value:"A pointing device button is clicked twice on an element."}},{name:"ondrag",description:{kind:"markdown",value:"An element or text selection is being dragged (every 350ms)."}},{name:"ondragend",description:{kind:"markdown",value:"A drag operation is being ended (by releasing a mouse button or hitting the escape key)."}},{name:"ondragenter",description:{kind:"markdown",value:"A dragged element or text selection enters a valid drop target."}},{name:"ondragleave",description:{kind:"markdown",value:"A dragged element or text selection leaves a valid drop target."}},{name:"ondragover",description:{kind:"markdown",value:"An element or text selection is being dragged over a valid drop target (every 350ms)."}},{name:"ondragstart",description:{kind:"markdown",value:"The user starts dragging an element or text selection."}},{name:"ondrop",description:{kind:"markdown",value:"An element is dropped on a valid drop target."}},{name:"ondurationchange",description:{kind:"markdown",value:"The duration attribute has been updated."}},{name:"onemptied",description:{kind:"markdown",value:"The media has become empty; for example, this event is sent if the media has already been loaded (or partially loaded), and the load() method is called to reload it."}},{name:"onended",description:{kind:"markdown",value:"Playback has stopped because the end of the media was reached."}},{name:"onerror",description:{kind:"markdown",value:"A resource failed to load."}},{name:"onfocus",description:{kind:"markdown",value:"An element has received focus (does not bubble)."}},{name:"onformchange"},{name:"onforminput"},{name:"oninput",description:{kind:"markdown",value:"The value of an element changes or the content of an element with the attribute contenteditable is modified."}},{name:"oninvalid",description:{kind:"markdown",value:"A submittable element has been checked and doesn't satisfy its constraints."}},{name:"onkeydown",description:{kind:"markdown",value:"A key is pressed down."}},{name:"onkeypress",description:{kind:"markdown",value:"A key is pressed down and that key normally produces a character value (use input instead)."}},{name:"onkeyup",description:{kind:"markdown",value:"A key is released."}},{name:"onload",description:{kind:"markdown",value:"A resource and its dependent resources have finished loading."}},{name:"onloadeddata",description:{kind:"markdown",value:"The first frame of the media has finished loading."}},{name:"onloadedmetadata",description:{kind:"markdown",value:"The metadata has been loaded."}},{name:"onloadstart",description:{kind:"markdown",value:"Progress has begun."}},{name:"onmousedown",description:{kind:"markdown",value:"A pointing device button (usually a mouse) is pressed on an element."}},{name:"onmousemove",description:{kind:"markdown",value:"A pointing device is moved over an element."}},{name:"onmouseout",description:{kind:"markdown",value:"A pointing device is moved off the element that has the listener attached or off one of its children."}},{name:"onmouseover",description:{kind:"markdown",value:"A pointing device is moved onto the element that has the listener attached or onto one of its children."}},{name:"onmouseup",description:{kind:"markdown",value:"A pointing device button is released over an element."}},{name:"onmousewheel"},{name:"onmouseenter",description:{kind:"markdown",value:"A pointing device is moved onto the element that has the listener attached."}},{name:"onmouseleave",description:{kind:"markdown",value:"A pointing device is moved off the element that has the listener attached."}},{name:"onpause",description:{kind:"markdown",value:"Playback has been paused."}},{name:"onplay",description:{kind:"markdown",value:"Playback has begun."}},{name:"onplaying",description:{kind:"markdown",value:"Playback is ready to start after having been paused or delayed due to lack of data."}},{name:"onprogress",description:{kind:"markdown",value:"In progress."}},{name:"onratechange",description:{kind:"markdown",value:"The playback rate has changed."}},{name:"onreset",description:{kind:"markdown",value:"A form is reset."}},{name:"onresize",description:{kind:"markdown",value:"The document view has been resized."}},{name:"onreadystatechange",description:{kind:"markdown",value:"The readyState attribute of a document has changed."}},{name:"onscroll",description:{kind:"markdown",value:"The document view or an element has been scrolled."}},{name:"onseeked",description:{kind:"markdown",value:"A seek operation completed."}},{name:"onseeking",description:{kind:"markdown",value:"A seek operation began."}},{name:"onselect",description:{kind:"markdown",value:"Some text is being selected."}},{name:"onshow",description:{kind:"markdown",value:"A contextmenu event was fired on/bubbled to an element that has a contextmenu attribute"}},{name:"onstalled",description:{kind:"markdown",value:"The user agent is trying to fetch media data, but data is unexpectedly not forthcoming."}},{name:"onsubmit",description:{kind:"markdown",value:"A form is submitted."}},{name:"onsuspend",description:{kind:"markdown",value:"Media data loading has been suspended."}},{name:"ontimeupdate",description:{kind:"markdown",value:"The time indicated by the currentTime attribute has been updated."}},{name:"onvolumechange",description:{kind:"markdown",value:"The volume has changed."}},{name:"onwaiting",description:{kind:"markdown",value:"Playback has stopped because of a temporary lack of data."}},{name:"onpointercancel",description:{kind:"markdown",value:"The pointer is unlikely to produce any more events."}},{name:"onpointerdown",description:{kind:"markdown",value:"The pointer enters the active buttons state."}},{name:"onpointerenter",description:{kind:"markdown",value:"Pointing device is moved inside the hit-testing boundary."}},{name:"onpointerleave",description:{kind:"markdown",value:"Pointing device is moved out of the hit-testing boundary."}},{name:"onpointerlockchange",description:{kind:"markdown",value:"The pointer was locked or released."}},{name:"onpointerlockerror",description:{kind:"markdown",value:"It was impossible to lock the pointer for technical reasons or because the permission was denied."}},{name:"onpointermove",description:{kind:"markdown",value:"The pointer changed coordinates."}},{name:"onpointerout",description:{kind:"markdown",value:"The pointing device moved out of hit-testing boundary or leaves detectable hover range."}},{name:"onpointerover",description:{kind:"markdown",value:"The pointing device is moved into the hit-testing boundary."}},{name:"onpointerup",description:{kind:"markdown",value:"The pointer leaves the active buttons state."}},{name:"aria-activedescendant",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-activedescendant"}],description:{kind:"markdown",value:"Identifies the currently active element when DOM focus is on a [`composite`](https://www.w3.org/TR/wai-aria-1.1/#composite) widget, [`textbox`](https://www.w3.org/TR/wai-aria-1.1/#textbox), [`group`](https://www.w3.org/TR/wai-aria-1.1/#group), or [`application`](https://www.w3.org/TR/wai-aria-1.1/#application)."}},{name:"aria-atomic",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-atomic"}],description:{kind:"markdown",value:"Indicates whether [assistive technologies](https://www.w3.org/TR/wai-aria-1.1/#dfn-assistive-technology) will present all, or only parts of, the changed region based on the change notifications defined by the [`aria-relevant`](https://www.w3.org/TR/wai-aria-1.1/#aria-relevant) attribute."}},{name:"aria-autocomplete",valueSet:"autocomplete",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-autocomplete"}],description:{kind:"markdown",value:"Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be presented if they are made."}},{name:"aria-busy",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-busy"}],description:{kind:"markdown",value:"Indicates an element is being modified and that assistive technologies _MAY_ want to wait until the modifications are complete before exposing them to the user."}},{name:"aria-checked",valueSet:"tristate",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-checked"}],description:{kind:"markdown",value:'Indicates the current "checked" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) of checkboxes, radio buttons, and other [widgets](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget). See related [`aria-pressed`](https://www.w3.org/TR/wai-aria-1.1/#aria-pressed) and [`aria-selected`](https://www.w3.org/TR/wai-aria-1.1/#aria-selected).'}},{name:"aria-colcount",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-colcount"}],description:{kind:"markdown",value:"Defines the total number of columns in a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-colindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-colindex)."}},{name:"aria-colindex",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-colindex"}],description:{kind:"markdown",value:"Defines an [element's](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) column index or position with respect to the total number of columns within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-colcount`](https://www.w3.org/TR/wai-aria-1.1/#aria-colcount) and [`aria-colspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-colspan)."}},{name:"aria-colspan",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-colspan"}],description:{kind:"markdown",value:"Defines the number of columns spanned by a cell or gridcell within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-colindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-colindex) and [`aria-rowspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowspan)."}},{name:"aria-controls",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-controls"}],description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) whose contents or presence are controlled by the current element. See related [`aria-owns`](https://www.w3.org/TR/wai-aria-1.1/#aria-owns)."}},{name:"aria-current",valueSet:"current",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-current"}],description:{kind:"markdown",value:"Indicates the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) that represents the current item within a container or set of related elements."}},{name:"aria-describedby",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-describedby"}],description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) that describes the [object](https://www.w3.org/TR/wai-aria-1.1/#dfn-object). See related [`aria-labelledby`](https://www.w3.org/TR/wai-aria-1.1/#aria-labelledby)."}},{name:"aria-disabled",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-disabled"}],description:{kind:"markdown",value:"Indicates that the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is [perceivable](https://www.w3.org/TR/wai-aria-1.1/#dfn-perceivable) but disabled, so it is not editable or otherwise [operable](https://www.w3.org/TR/wai-aria-1.1/#dfn-operable). See related [`aria-hidden`](https://www.w3.org/TR/wai-aria-1.1/#aria-hidden) and [`aria-readonly`](https://www.w3.org/TR/wai-aria-1.1/#aria-readonly)."}},{name:"aria-dropeffect",valueSet:"dropeffect",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-dropeffect"}],description:{kind:"markdown",value:"\\[Deprecated in ARIA 1.1\\] Indicates what functions can be performed when a dragged object is released on the drop target."}},{name:"aria-errormessage",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-errormessage"}],description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) that provides an error message for the [object](https://www.w3.org/TR/wai-aria-1.1/#dfn-object). See related [`aria-invalid`](https://www.w3.org/TR/wai-aria-1.1/#aria-invalid) and [`aria-describedby`](https://www.w3.org/TR/wai-aria-1.1/#aria-describedby)."}},{name:"aria-expanded",valueSet:"u",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-expanded"}],description:{kind:"markdown",value:"Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed."}},{name:"aria-flowto",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-flowto"}],description:{kind:"markdown",value:"Identifies the next [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) in an alternate reading order of content which, at the user's discretion, allows assistive technology to override the general default of reading in document source order."}},{name:"aria-grabbed",valueSet:"u",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-grabbed"}],description:{kind:"markdown",value:`\\[Deprecated in ARIA 1.1\\] Indicates an element's "grabbed" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) in a drag-and-drop operation.`}},{name:"aria-haspopup",valueSet:"haspopup",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-haspopup"}],description:{kind:"markdown",value:"Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element)."}},{name:"aria-hidden",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-hidden"}],description:{kind:"markdown",value:"Indicates whether the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is exposed to an accessibility API. See related [`aria-disabled`](https://www.w3.org/TR/wai-aria-1.1/#aria-disabled)."}},{name:"aria-invalid",valueSet:"invalid",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-invalid"}],description:{kind:"markdown",value:"Indicates the entered value does not conform to the format expected by the application. See related [`aria-errormessage`](https://www.w3.org/TR/wai-aria-1.1/#aria-errormessage)."}},{name:"aria-label",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-label"}],description:{kind:"markdown",value:"Defines a string value that labels the current element. See related [`aria-labelledby`](https://www.w3.org/TR/wai-aria-1.1/#aria-labelledby)."}},{name:"aria-labelledby",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-labelledby"}],description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) that labels the current element. See related [`aria-describedby`](https://www.w3.org/TR/wai-aria-1.1/#aria-describedby)."}},{name:"aria-level",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-level"}],description:{kind:"markdown",value:"Defines the hierarchical level of an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) within a structure."}},{name:"aria-live",valueSet:"live",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-live"}],description:{kind:"markdown",value:"Indicates that an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) will be updated, and describes the types of updates the [user agents](https://www.w3.org/TR/wai-aria-1.1/#dfn-user-agent), [assistive technologies](https://www.w3.org/TR/wai-aria-1.1/#dfn-assistive-technology), and user can expect from the [live region](https://www.w3.org/TR/wai-aria-1.1/#dfn-live-region)."}},{name:"aria-modal",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-modal"}],description:{kind:"markdown",value:"Indicates whether an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is modal when displayed."}},{name:"aria-multiline",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-multiline"}],description:{kind:"markdown",value:"Indicates whether a text box accepts multiple lines of input or only a single line."}},{name:"aria-multiselectable",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-multiselectable"}],description:{kind:"markdown",value:"Indicates that the user may select more than one item from the current selectable descendants."}},{name:"aria-orientation",valueSet:"orientation",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-orientation"}],description:{kind:"markdown",value:"Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous."}},{name:"aria-owns",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-owns"}],description:{kind:"markdown",value:"Identifies an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) in order to define a visual, functional, or contextual parent/child [relationship](https://www.w3.org/TR/wai-aria-1.1/#dfn-relationship) between DOM elements where the DOM hierarchy cannot be used to represent the relationship. See related [`aria-controls`](https://www.w3.org/TR/wai-aria-1.1/#aria-controls)."}},{name:"aria-placeholder",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-placeholder"}],description:{kind:"markdown",value:"Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value. A hint could be a sample value or a brief description of the expected format."}},{name:"aria-posinset",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-posinset"}],description:{kind:"markdown",value:"Defines an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element)'s number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. See related [`aria-setsize`](https://www.w3.org/TR/wai-aria-1.1/#aria-setsize)."}},{name:"aria-pressed",valueSet:"tristate",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-pressed"}],description:{kind:"markdown",value:'Indicates the current "pressed" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) of toggle buttons. See related [`aria-checked`](https://www.w3.org/TR/wai-aria-1.1/#aria-checked) and [`aria-selected`](https://www.w3.org/TR/wai-aria-1.1/#aria-selected).'}},{name:"aria-readonly",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-readonly"}],description:{kind:"markdown",value:"Indicates that the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is not editable, but is otherwise [operable](https://www.w3.org/TR/wai-aria-1.1/#dfn-operable). See related [`aria-disabled`](https://www.w3.org/TR/wai-aria-1.1/#aria-disabled)."}},{name:"aria-relevant",valueSet:"relevant",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-relevant"}],description:{kind:"markdown",value:"Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified. See related [`aria-atomic`](https://www.w3.org/TR/wai-aria-1.1/#aria-atomic)."}},{name:"aria-required",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-required"}],description:{kind:"markdown",value:"Indicates that user input is required on the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) before a form may be submitted."}},{name:"aria-roledescription",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-roledescription"}],description:{kind:"markdown",value:"Defines a human-readable, author-localized description for the [role](https://www.w3.org/TR/wai-aria-1.1/#dfn-role) of an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element)."}},{name:"aria-rowcount",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-rowcount"}],description:{kind:"markdown",value:"Defines the total number of rows in a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-rowindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowindex)."}},{name:"aria-rowindex",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-rowindex"}],description:{kind:"markdown",value:"Defines an [element's](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) row index or position with respect to the total number of rows within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-rowcount`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowcount) and [`aria-rowspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowspan)."}},{name:"aria-rowspan",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-rowspan"}],description:{kind:"markdown",value:"Defines the number of rows spanned by a cell or gridcell within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-rowindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowindex) and [`aria-colspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-colspan)."}},{name:"aria-selected",valueSet:"u",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-selected"}],description:{kind:"markdown",value:'Indicates the current "selected" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) of various [widgets](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget). See related [`aria-checked`](https://www.w3.org/TR/wai-aria-1.1/#aria-checked) and [`aria-pressed`](https://www.w3.org/TR/wai-aria-1.1/#aria-pressed).'}},{name:"aria-setsize",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-setsize"}],description:{kind:"markdown",value:"Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. See related [`aria-posinset`](https://www.w3.org/TR/wai-aria-1.1/#aria-posinset)."}},{name:"aria-sort",valueSet:"sort",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-sort"}],description:{kind:"markdown",value:"Indicates if items in a table or grid are sorted in ascending or descending order."}},{name:"aria-valuemax",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-valuemax"}],description:{kind:"markdown",value:"Defines the maximum allowed value for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget)."}},{name:"aria-valuemin",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-valuemin"}],description:{kind:"markdown",value:"Defines the minimum allowed value for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget)."}},{name:"aria-valuenow",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-valuenow"}],description:{kind:"markdown",value:"Defines the current value for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget). See related [`aria-valuetext`](https://www.w3.org/TR/wai-aria-1.1/#aria-valuetext)."}},{name:"aria-valuetext",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-valuetext"}],description:{kind:"markdown",value:"Defines the human readable text alternative of [`aria-valuenow`](https://www.w3.org/TR/wai-aria-1.1/#aria-valuenow) for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget)."}},{name:"aria-details",description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) that provides a detailed, extended description for the [object](https://www.w3.org/TR/wai-aria-1.1/#dfn-object). See related [`aria-describedby`](https://www.w3.org/TR/wai-aria-1.1/#aria-describedby)."}},{name:"aria-keyshortcuts",description:{kind:"markdown",value:"Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element."}}],valueSets:[{name:"b",values:[{name:"true"},{name:"false"}]},{name:"u",values:[{name:"true"},{name:"false"},{name:"undefined"}]},{name:"o",values:[{name:"on"},{name:"off"}]},{name:"y",values:[{name:"yes"},{name:"no"}]},{name:"w",values:[{name:"soft"},{name:"hard"}]},{name:"d",values:[{name:"ltr"},{name:"rtl"},{name:"auto"}]},{name:"m",values:[{name:"get",description:{kind:"markdown",value:"Corresponds to the HTTP [GET method](https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.3); form data are appended to the `action` attribute URI with a '?' as separator, and the resulting URI is sent to the server. Use this method when the form has no side-effects and contains only ASCII characters."}},{name:"post",description:{kind:"markdown",value:"Corresponds to the HTTP [POST method](https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.5); form data are included in the body of the form and sent to the server."}},{name:"dialog",description:{kind:"markdown",value:"Use when the form is inside a [`<dialog>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog) element to close the dialog when submitted."}}]},{name:"fm",values:[{name:"get"},{name:"post"}]},{name:"s",values:[{name:"row"},{name:"col"},{name:"rowgroup"},{name:"colgroup"}]},{name:"t",values:[{name:"hidden"},{name:"text"},{name:"search"},{name:"tel"},{name:"url"},{name:"email"},{name:"password"},{name:"datetime"},{name:"date"},{name:"month"},{name:"week"},{name:"time"},{name:"datetime-local"},{name:"number"},{name:"range"},{name:"color"},{name:"checkbox"},{name:"radio"},{name:"file"},{name:"submit"},{name:"image"},{name:"reset"},{name:"button"}]},{name:"im",values:[{name:"verbatim"},{name:"latin"},{name:"latin-name"},{name:"latin-prose"},{name:"full-width-latin"},{name:"kana"},{name:"kana-name"},{name:"katakana"},{name:"numeric"},{name:"tel"},{name:"email"},{name:"url"}]},{name:"bt",values:[{name:"button"},{name:"submit"},{name:"reset"},{name:"menu"}]},{name:"lt",values:[{name:"1"},{name:"a"},{name:"A"},{name:"i"},{name:"I"}]},{name:"mt",values:[{name:"context"},{name:"toolbar"}]},{name:"mit",values:[{name:"command"},{name:"checkbox"},{name:"radio"}]},{name:"et",values:[{name:"application/x-www-form-urlencoded"},{name:"multipart/form-data"},{name:"text/plain"}]},{name:"tk",values:[{name:"subtitles"},{name:"captions"},{name:"descriptions"},{name:"chapters"},{name:"metadata"}]},{name:"pl",values:[{name:"none"},{name:"metadata"},{name:"auto"}]},{name:"sh",values:[{name:"circle"},{name:"default"},{name:"poly"},{name:"rect"}]},{name:"xo",values:[{name:"anonymous"},{name:"use-credentials"}]},{name:"target",values:[{name:"_self"},{name:"_blank"},{name:"_parent"},{name:"_top"}]},{name:"sb",values:[{name:"allow-forms"},{name:"allow-modals"},{name:"allow-pointer-lock"},{name:"allow-popups"},{name:"allow-popups-to-escape-sandbox"},{name:"allow-same-origin"},{name:"allow-scripts"},{name:"allow-top-navigation"}]},{name:"tristate",values:[{name:"true"},{name:"false"},{name:"mixed"},{name:"undefined"}]},{name:"inputautocomplete",values:[{name:"additional-name"},{name:"address-level1"},{name:"address-level2"},{name:"address-level3"},{name:"address-level4"},{name:"address-line1"},{name:"address-line2"},{name:"address-line3"},{name:"bday"},{name:"bday-year"},{name:"bday-day"},{name:"bday-month"},{name:"billing"},{name:"cc-additional-name"},{name:"cc-csc"},{name:"cc-exp"},{name:"cc-exp-month"},{name:"cc-exp-year"},{name:"cc-family-name"},{name:"cc-given-name"},{name:"cc-name"},{name:"cc-number"},{name:"cc-type"},{name:"country"},{name:"country-name"},{name:"current-password"},{name:"email"},{name:"family-name"},{name:"fax"},{name:"given-name"},{name:"home"},{name:"honorific-prefix"},{name:"honorific-suffix"},{name:"impp"},{name:"language"},{name:"mobile"},{name:"name"},{name:"new-password"},{name:"nickname"},{name:"off"},{name:"on"},{name:"organization"},{name:"organization-title"},{name:"pager"},{name:"photo"},{name:"postal-code"},{name:"sex"},{name:"shipping"},{name:"street-address"},{name:"tel-area-code"},{name:"tel"},{name:"tel-country-code"},{name:"tel-extension"},{name:"tel-local"},{name:"tel-local-prefix"},{name:"tel-local-suffix"},{name:"tel-national"},{name:"transaction-amount"},{name:"transaction-currency"},{name:"url"},{name:"username"},{name:"work"}]},{name:"autocomplete",values:[{name:"inline"},{name:"list"},{name:"both"},{name:"none"}]},{name:"current",values:[{name:"page"},{name:"step"},{name:"location"},{name:"date"},{name:"time"},{name:"true"},{name:"false"}]},{name:"dropeffect",values:[{name:"copy"},{name:"move"},{name:"link"},{name:"execute"},{name:"popup"},{name:"none"}]},{name:"invalid",values:[{name:"grammar"},{name:"false"},{name:"spelling"},{name:"true"}]},{name:"live",values:[{name:"off"},{name:"polite"},{name:"assertive"}]},{name:"orientation",values:[{name:"vertical"},{name:"horizontal"},{name:"undefined"}]},{name:"relevant",values:[{name:"additions"},{name:"removals"},{name:"text"},{name:"all"},{name:"additions text"}]},{name:"sort",values:[{name:"ascending"},{name:"descending"},{name:"none"},{name:"other"}]},{name:"roles",values:[{name:"alert"},{name:"alertdialog"},{name:"button"},{name:"checkbox"},{name:"dialog"},{name:"gridcell"},{name:"link"},{name:"log"},{name:"marquee"},{name:"menuitem"},{name:"menuitemcheckbox"},{name:"menuitemradio"},{name:"option"},{name:"progressbar"},{name:"radio"},{name:"scrollbar"},{name:"searchbox"},{name:"slider"},{name:"spinbutton"},{name:"status"},{name:"switch"},{name:"tab"},{name:"tabpanel"},{name:"textbox"},{name:"timer"},{name:"tooltip"},{name:"treeitem"},{name:"combobox"},{name:"grid"},{name:"listbox"},{name:"menu"},{name:"menubar"},{name:"radiogroup"},{name:"tablist"},{name:"tree"},{name:"treegrid"},{name:"application"},{name:"article"},{name:"cell"},{name:"columnheader"},{name:"definition"},{name:"directory"},{name:"document"},{name:"feed"},{name:"figure"},{name:"group"},{name:"heading"},{name:"img"},{name:"list"},{name:"listitem"},{name:"math"},{name:"none"},{name:"note"},{name:"presentation"},{name:"region"},{name:"row"},{name:"rowgroup"},{name:"rowheader"},{name:"separator"},{name:"table"},{name:"term"},{name:"text"},{name:"toolbar"},{name:"banner"},{name:"complementary"},{name:"contentinfo"},{name:"form"},{name:"main"},{name:"navigation"},{name:"region"},{name:"search"},{name:"doc-abstract"},{name:"doc-acknowledgments"},{name:"doc-afterword"},{name:"doc-appendix"},{name:"doc-backlink"},{name:"doc-biblioentry"},{name:"doc-bibliography"},{name:"doc-biblioref"},{name:"doc-chapter"},{name:"doc-colophon"},{name:"doc-conclusion"},{name:"doc-cover"},{name:"doc-credit"},{name:"doc-credits"},{name:"doc-dedication"},{name:"doc-endnote"},{name:"doc-endnotes"},{name:"doc-epigraph"},{name:"doc-epilogue"},{name:"doc-errata"},{name:"doc-example"},{name:"doc-footnote"},{name:"doc-foreword"},{name:"doc-glossary"},{name:"doc-glossref"},{name:"doc-index"},{name:"doc-introduction"},{name:"doc-noteref"},{name:"doc-notice"},{name:"doc-pagebreak"},{name:"doc-pagelist"},{name:"doc-part"},{name:"doc-preface"},{name:"doc-prologue"},{name:"doc-pullquote"},{name:"doc-qna"},{name:"doc-subtitle"},{name:"doc-tip"},{name:"doc-toc"}]},{name:"metanames",values:[{name:"application-name"},{name:"author"},{name:"description"},{name:"format-detection"},{name:"generator"},{name:"keywords"},{name:"publisher"},{name:"referrer"},{name:"robots"},{name:"theme-color"},{name:"viewport"}]},{name:"haspopup",values:[{name:"false",description:{kind:"markdown",value:"(default) Indicates the element does not have a popup."}},{name:"true",description:{kind:"markdown",value:"Indicates the popup is a menu."}},{name:"menu",description:{kind:"markdown",value:"Indicates the popup is a menu."}},{name:"listbox",description:{kind:"markdown",value:"Indicates the popup is a listbox."}},{name:"tree",description:{kind:"markdown",value:"Indicates the popup is a tree."}},{name:"grid",description:{kind:"markdown",value:"Indicates the popup is a grid."}},{name:"dialog",description:{kind:"markdown",value:"Indicates the popup is a dialog."}}]},{name:"decoding",values:[{name:"sync"},{name:"async"},{name:"auto"}]},{name:"loading",values:[{name:"eager",description:{kind:"markdown",value:"Loads the image immediately, regardless of whether or not the image is currently within the visible viewport (this is the default value)."}},{name:"lazy",description:{kind:"markdown",value:"Defers loading the image until it reaches a calculated distance from the viewport, as defined by the browser. The intent is to avoid the network and storage bandwidth needed to handle the image until it's reasonably certain that it will be needed. This generally improves the performance of the content in most typical use cases."}}]},{name:"referrerpolicy",values:[{name:"no-referrer"},{name:"no-referrer-when-downgrade"},{name:"origin"},{name:"origin-when-cross-origin"},{name:"same-origin"},{name:"strict-origin"},{name:"strict-origin-when-cross-origin"},{name:"unsafe-url"}]}]};class dh{constructor(t){this.dataProviders=[],this.setDataProviders(t.useDefaultDataProvider!==!1,t.customDataProviders||[])}setDataProviders(t,n){this.dataProviders=[],t&&this.dataProviders.push(new io("html5",hh)),this.dataProviders.push(...n)}getDataProviders(){return this.dataProviders}isVoidElement(t,n){return!!t&&vc(n,t.toLowerCase(),(i,r)=>i.localeCompare(r))>=0}getVoidElements(t){const n=Array.isArray(t)?t:this.getDataProviders().filter(r=>r.isApplicable(t)),i=[];return n.forEach(r=>{r.provideTags().filter(s=>s.void).forEach(s=>i.push(s.name))}),i.sort()}isPathAttribute(t,n){if(n==="src"||n==="href")return!0;const i=mh[t];return i?typeof i=="string"?i===n:i.indexOf(n)!==-1:!1}}const mh={a:"href",area:"href",body:"background",blockquote:"cite",del:"cite",form:"action",frame:["src","longdesc"],img:["src","longdesc"],ins:"cite",link:"href",object:"data",q:"cite",script:"src",audio:"src",button:"formaction",command:"icon",embed:"src",html:"manifest",input:["src","formaction"],source:"src",track:"src",video:["src","poster"]},fh={};function ph(e=fh){const t=new dh(e),n=new Bc(e,t),i=new Uc(e,t),r=new yc(t),s=new ch(r),a=new uh(t),l=new nh(t);return{setDataProviders:t.setDataProviders.bind(t),createScanner:be,parseHTMLDocument:r.parseDocument.bind(r),doComplete:i.doComplete.bind(i),doComplete2:i.doComplete2.bind(i),setCompletionParticipants:i.setCompletionParticipants.bind(i),doHover:n.doHover.bind(n),format:$c,findDocumentHighlights:ih,findDocumentLinks:l.findDocumentLinks.bind(l),findDocumentSymbols:rh,findDocumentSymbols2:fo,getFoldingRanges:a.getFoldingRanges.bind(a),getSelectionRanges:s.getSelectionRanges.bind(s),doQuoteComplete:i.doQuoteComplete.bind(i),doTagComplete:i.doTagComplete.bind(i),doRename:ah,findMatchingTagPosition:lh,findOnTypeRenameRanges:go,findLinkedEditingRanges:go}}function gh(e,t){return new io(e,t)}class bh{constructor(t,n){this._ctx=t,this._languageSettings=n.languageSettings,this._languageId=n.languageId;const i=this._languageSettings.data,r=i==null?void 0:i.useDefaultDataProvider,s=[];if(i!=null&&i.dataProviders)for(const a in i.dataProviders)s.push(gh(a,i.dataProviders[a]));this._languageService=ph({useDefaultDataProvider:r,customDataProviders:s})}async doComplete(t,n){let i=this._getTextDocument(t);if(!i)return null;let r=this._languageService.parseHTMLDocument(i);return Promise.resolve(this._languageService.doComplete(i,n,r,this._languageSettings&&this._languageSettings.suggest))}async format(t,n,i){let r=this._getTextDocument(t);if(!r)return[];let s={...this._languageSettings.format,...i},a=this._languageService.format(r,n,s);return Promise.resolve(a)}async doHover(t,n){let i=this._getTextDocument(t);if(!i)return null;let r=this._languageService.parseHTMLDocument(i),s=this._languageService.doHover(i,n,r);return Promise.resolve(s)}async findDocumentHighlights(t,n){let i=this._getTextDocument(t);if(!i)return[];let r=this._languageService.parseHTMLDocument(i),s=this._languageService.findDocumentHighlights(i,n,r);return Promise.resolve(s)}async findDocumentLinks(t){let n=this._getTextDocument(t);if(!n)return[];let i=this._languageService.findDocumentLinks(n,null);return Promise.resolve(i)}async findDocumentSymbols(t){let n=this._getTextDocument(t);if(!n)return[];let i=this._languageService.parseHTMLDocument(n),r=this._languageService.findDocumentSymbols(n,i);return Promise.resolve(r)}async getFoldingRanges(t,n){let i=this._getTextDocument(t);if(!i)return[];let r=this._languageService.getFoldingRanges(i,n);return Promise.resolve(r)}async getSelectionRanges(t,n){let i=this._getTextDocument(t);if(!i)return[];let r=this._languageService.getSelectionRanges(i,n);return Promise.resolve(r)}async doRename(t,n,i){let r=this._getTextDocument(t);if(!r)return null;let s=this._languageService.parseHTMLDocument(r),a=this._languageService.doRename(r,n,i,s);return Promise.resolve(a)}_getTextDocument(t){let n=this._ctx.getMirrorModels();for(let i of n)if(i.uri.toString()===t)return zi.create(t,this._languageId,i.version,i.getValue());return null}}self.onmessage=()=>{sc((e,t)=>new bh(e,t))}})();
|
|
470
|
+
* a _positive value_ means that the element should be focusable and reachable via sequential keyboard navigation; the order in which the elements are focused is the increasing value of the [**tabindex**](#attr-tabindex). If several elements share the same tabindex, their relative order follows their relative positions in the document.`},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/tabindex"}]},{name:"title",description:{kind:"markdown",value:"Contains a text representing advisory information related to the element it belongs to. Such information can typically, but not necessarily, be presented to the user as a tooltip."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/title"}]},{name:"translate",description:{kind:"markdown",value:"An enumerated attribute that is used to specify whether an element's attribute values and the values of its [`Text`](https://developer.mozilla.org/docs/Web/API/Text \"The Text interface represents the textual content of Element or Attr. If an element has no markup within its content, it has a single child implementing Text that contains the element's text. However, if the element contains markup, it is parsed into information items and Text nodes that form its children.\") node children are to be translated when the page is localized, or whether to leave them unchanged. It can have the following values:\n\n* empty string and `yes`, which indicates that the element will be translated.\n* `no`, which indicates that the element will not be translated."},valueSet:"y",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/translate"}]},{name:"onabort",description:{kind:"markdown",value:"The loading of a resource has been aborted."}},{name:"onblur",description:{kind:"markdown",value:"An element has lost focus (does not bubble)."}},{name:"oncanplay",description:{kind:"markdown",value:"The user agent can play the media, but estimates that not enough data has been loaded to play the media up to its end without having to stop for further buffering of content."}},{name:"oncanplaythrough",description:{kind:"markdown",value:"The user agent can play the media up to its end without having to stop for further buffering of content."}},{name:"onchange",description:{kind:"markdown",value:"The change event is fired for <input>, <select>, and <textarea> elements when a change to the element's value is committed by the user."}},{name:"onclick",description:{kind:"markdown",value:"A pointing device button has been pressed and released on an element."}},{name:"oncontextmenu",description:{kind:"markdown",value:"The right button of the mouse is clicked (before the context menu is displayed)."}},{name:"ondblclick",description:{kind:"markdown",value:"A pointing device button is clicked twice on an element."}},{name:"ondrag",description:{kind:"markdown",value:"An element or text selection is being dragged (every 350ms)."}},{name:"ondragend",description:{kind:"markdown",value:"A drag operation is being ended (by releasing a mouse button or hitting the escape key)."}},{name:"ondragenter",description:{kind:"markdown",value:"A dragged element or text selection enters a valid drop target."}},{name:"ondragleave",description:{kind:"markdown",value:"A dragged element or text selection leaves a valid drop target."}},{name:"ondragover",description:{kind:"markdown",value:"An element or text selection is being dragged over a valid drop target (every 350ms)."}},{name:"ondragstart",description:{kind:"markdown",value:"The user starts dragging an element or text selection."}},{name:"ondrop",description:{kind:"markdown",value:"An element is dropped on a valid drop target."}},{name:"ondurationchange",description:{kind:"markdown",value:"The duration attribute has been updated."}},{name:"onemptied",description:{kind:"markdown",value:"The media has become empty; for example, this event is sent if the media has already been loaded (or partially loaded), and the load() method is called to reload it."}},{name:"onended",description:{kind:"markdown",value:"Playback has stopped because the end of the media was reached."}},{name:"onerror",description:{kind:"markdown",value:"A resource failed to load."}},{name:"onfocus",description:{kind:"markdown",value:"An element has received focus (does not bubble)."}},{name:"onformchange"},{name:"onforminput"},{name:"oninput",description:{kind:"markdown",value:"The value of an element changes or the content of an element with the attribute contenteditable is modified."}},{name:"oninvalid",description:{kind:"markdown",value:"A submittable element has been checked and doesn't satisfy its constraints."}},{name:"onkeydown",description:{kind:"markdown",value:"A key is pressed down."}},{name:"onkeypress",description:{kind:"markdown",value:"A key is pressed down and that key normally produces a character value (use input instead)."}},{name:"onkeyup",description:{kind:"markdown",value:"A key is released."}},{name:"onload",description:{kind:"markdown",value:"A resource and its dependent resources have finished loading."}},{name:"onloadeddata",description:{kind:"markdown",value:"The first frame of the media has finished loading."}},{name:"onloadedmetadata",description:{kind:"markdown",value:"The metadata has been loaded."}},{name:"onloadstart",description:{kind:"markdown",value:"Progress has begun."}},{name:"onmousedown",description:{kind:"markdown",value:"A pointing device button (usually a mouse) is pressed on an element."}},{name:"onmousemove",description:{kind:"markdown",value:"A pointing device is moved over an element."}},{name:"onmouseout",description:{kind:"markdown",value:"A pointing device is moved off the element that has the listener attached or off one of its children."}},{name:"onmouseover",description:{kind:"markdown",value:"A pointing device is moved onto the element that has the listener attached or onto one of its children."}},{name:"onmouseup",description:{kind:"markdown",value:"A pointing device button is released over an element."}},{name:"onmousewheel"},{name:"onmouseenter",description:{kind:"markdown",value:"A pointing device is moved onto the element that has the listener attached."}},{name:"onmouseleave",description:{kind:"markdown",value:"A pointing device is moved off the element that has the listener attached."}},{name:"onpause",description:{kind:"markdown",value:"Playback has been paused."}},{name:"onplay",description:{kind:"markdown",value:"Playback has begun."}},{name:"onplaying",description:{kind:"markdown",value:"Playback is ready to start after having been paused or delayed due to lack of data."}},{name:"onprogress",description:{kind:"markdown",value:"In progress."}},{name:"onratechange",description:{kind:"markdown",value:"The playback rate has changed."}},{name:"onreset",description:{kind:"markdown",value:"A form is reset."}},{name:"onresize",description:{kind:"markdown",value:"The document view has been resized."}},{name:"onreadystatechange",description:{kind:"markdown",value:"The readyState attribute of a document has changed."}},{name:"onscroll",description:{kind:"markdown",value:"The document view or an element has been scrolled."}},{name:"onseeked",description:{kind:"markdown",value:"A seek operation completed."}},{name:"onseeking",description:{kind:"markdown",value:"A seek operation began."}},{name:"onselect",description:{kind:"markdown",value:"Some text is being selected."}},{name:"onshow",description:{kind:"markdown",value:"A contextmenu event was fired on/bubbled to an element that has a contextmenu attribute"}},{name:"onstalled",description:{kind:"markdown",value:"The user agent is trying to fetch media data, but data is unexpectedly not forthcoming."}},{name:"onsubmit",description:{kind:"markdown",value:"A form is submitted."}},{name:"onsuspend",description:{kind:"markdown",value:"Media data loading has been suspended."}},{name:"ontimeupdate",description:{kind:"markdown",value:"The time indicated by the currentTime attribute has been updated."}},{name:"onvolumechange",description:{kind:"markdown",value:"The volume has changed."}},{name:"onwaiting",description:{kind:"markdown",value:"Playback has stopped because of a temporary lack of data."}},{name:"onpointercancel",description:{kind:"markdown",value:"The pointer is unlikely to produce any more events."}},{name:"onpointerdown",description:{kind:"markdown",value:"The pointer enters the active buttons state."}},{name:"onpointerenter",description:{kind:"markdown",value:"Pointing device is moved inside the hit-testing boundary."}},{name:"onpointerleave",description:{kind:"markdown",value:"Pointing device is moved out of the hit-testing boundary."}},{name:"onpointerlockchange",description:{kind:"markdown",value:"The pointer was locked or released."}},{name:"onpointerlockerror",description:{kind:"markdown",value:"It was impossible to lock the pointer for technical reasons or because the permission was denied."}},{name:"onpointermove",description:{kind:"markdown",value:"The pointer changed coordinates."}},{name:"onpointerout",description:{kind:"markdown",value:"The pointing device moved out of hit-testing boundary or leaves detectable hover range."}},{name:"onpointerover",description:{kind:"markdown",value:"The pointing device is moved into the hit-testing boundary."}},{name:"onpointerup",description:{kind:"markdown",value:"The pointer leaves the active buttons state."}},{name:"aria-activedescendant",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-activedescendant"}],description:{kind:"markdown",value:"Identifies the currently active element when DOM focus is on a [`composite`](https://www.w3.org/TR/wai-aria-1.1/#composite) widget, [`textbox`](https://www.w3.org/TR/wai-aria-1.1/#textbox), [`group`](https://www.w3.org/TR/wai-aria-1.1/#group), or [`application`](https://www.w3.org/TR/wai-aria-1.1/#application)."}},{name:"aria-atomic",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-atomic"}],description:{kind:"markdown",value:"Indicates whether [assistive technologies](https://www.w3.org/TR/wai-aria-1.1/#dfn-assistive-technology) will present all, or only parts of, the changed region based on the change notifications defined by the [`aria-relevant`](https://www.w3.org/TR/wai-aria-1.1/#aria-relevant) attribute."}},{name:"aria-autocomplete",valueSet:"autocomplete",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-autocomplete"}],description:{kind:"markdown",value:"Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be presented if they are made."}},{name:"aria-busy",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-busy"}],description:{kind:"markdown",value:"Indicates an element is being modified and that assistive technologies _MAY_ want to wait until the modifications are complete before exposing them to the user."}},{name:"aria-checked",valueSet:"tristate",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-checked"}],description:{kind:"markdown",value:'Indicates the current "checked" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) of checkboxes, radio buttons, and other [widgets](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget). See related [`aria-pressed`](https://www.w3.org/TR/wai-aria-1.1/#aria-pressed) and [`aria-selected`](https://www.w3.org/TR/wai-aria-1.1/#aria-selected).'}},{name:"aria-colcount",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-colcount"}],description:{kind:"markdown",value:"Defines the total number of columns in a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-colindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-colindex)."}},{name:"aria-colindex",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-colindex"}],description:{kind:"markdown",value:"Defines an [element's](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) column index or position with respect to the total number of columns within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-colcount`](https://www.w3.org/TR/wai-aria-1.1/#aria-colcount) and [`aria-colspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-colspan)."}},{name:"aria-colspan",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-colspan"}],description:{kind:"markdown",value:"Defines the number of columns spanned by a cell or gridcell within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-colindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-colindex) and [`aria-rowspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowspan)."}},{name:"aria-controls",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-controls"}],description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) whose contents or presence are controlled by the current element. See related [`aria-owns`](https://www.w3.org/TR/wai-aria-1.1/#aria-owns)."}},{name:"aria-current",valueSet:"current",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-current"}],description:{kind:"markdown",value:"Indicates the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) that represents the current item within a container or set of related elements."}},{name:"aria-describedby",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-describedby"}],description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) that describes the [object](https://www.w3.org/TR/wai-aria-1.1/#dfn-object). See related [`aria-labelledby`](https://www.w3.org/TR/wai-aria-1.1/#aria-labelledby)."}},{name:"aria-disabled",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-disabled"}],description:{kind:"markdown",value:"Indicates that the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is [perceivable](https://www.w3.org/TR/wai-aria-1.1/#dfn-perceivable) but disabled, so it is not editable or otherwise [operable](https://www.w3.org/TR/wai-aria-1.1/#dfn-operable). See related [`aria-hidden`](https://www.w3.org/TR/wai-aria-1.1/#aria-hidden) and [`aria-readonly`](https://www.w3.org/TR/wai-aria-1.1/#aria-readonly)."}},{name:"aria-dropeffect",valueSet:"dropeffect",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-dropeffect"}],description:{kind:"markdown",value:"\\[Deprecated in ARIA 1.1\\] Indicates what functions can be performed when a dragged object is released on the drop target."}},{name:"aria-errormessage",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-errormessage"}],description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) that provides an error message for the [object](https://www.w3.org/TR/wai-aria-1.1/#dfn-object). See related [`aria-invalid`](https://www.w3.org/TR/wai-aria-1.1/#aria-invalid) and [`aria-describedby`](https://www.w3.org/TR/wai-aria-1.1/#aria-describedby)."}},{name:"aria-expanded",valueSet:"u",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-expanded"}],description:{kind:"markdown",value:"Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed."}},{name:"aria-flowto",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-flowto"}],description:{kind:"markdown",value:"Identifies the next [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) in an alternate reading order of content which, at the user's discretion, allows assistive technology to override the general default of reading in document source order."}},{name:"aria-grabbed",valueSet:"u",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-grabbed"}],description:{kind:"markdown",value:`\\[Deprecated in ARIA 1.1\\] Indicates an element's "grabbed" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) in a drag-and-drop operation.`}},{name:"aria-haspopup",valueSet:"haspopup",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-haspopup"}],description:{kind:"markdown",value:"Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element)."}},{name:"aria-hidden",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-hidden"}],description:{kind:"markdown",value:"Indicates whether the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is exposed to an accessibility API. See related [`aria-disabled`](https://www.w3.org/TR/wai-aria-1.1/#aria-disabled)."}},{name:"aria-invalid",valueSet:"invalid",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-invalid"}],description:{kind:"markdown",value:"Indicates the entered value does not conform to the format expected by the application. See related [`aria-errormessage`](https://www.w3.org/TR/wai-aria-1.1/#aria-errormessage)."}},{name:"aria-label",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-label"}],description:{kind:"markdown",value:"Defines a string value that labels the current element. See related [`aria-labelledby`](https://www.w3.org/TR/wai-aria-1.1/#aria-labelledby)."}},{name:"aria-labelledby",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-labelledby"}],description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) that labels the current element. See related [`aria-describedby`](https://www.w3.org/TR/wai-aria-1.1/#aria-describedby)."}},{name:"aria-level",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-level"}],description:{kind:"markdown",value:"Defines the hierarchical level of an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) within a structure."}},{name:"aria-live",valueSet:"live",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-live"}],description:{kind:"markdown",value:"Indicates that an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) will be updated, and describes the types of updates the [user agents](https://www.w3.org/TR/wai-aria-1.1/#dfn-user-agent), [assistive technologies](https://www.w3.org/TR/wai-aria-1.1/#dfn-assistive-technology), and user can expect from the [live region](https://www.w3.org/TR/wai-aria-1.1/#dfn-live-region)."}},{name:"aria-modal",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-modal"}],description:{kind:"markdown",value:"Indicates whether an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is modal when displayed."}},{name:"aria-multiline",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-multiline"}],description:{kind:"markdown",value:"Indicates whether a text box accepts multiple lines of input or only a single line."}},{name:"aria-multiselectable",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-multiselectable"}],description:{kind:"markdown",value:"Indicates that the user may select more than one item from the current selectable descendants."}},{name:"aria-orientation",valueSet:"orientation",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-orientation"}],description:{kind:"markdown",value:"Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous."}},{name:"aria-owns",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-owns"}],description:{kind:"markdown",value:"Identifies an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) in order to define a visual, functional, or contextual parent/child [relationship](https://www.w3.org/TR/wai-aria-1.1/#dfn-relationship) between DOM elements where the DOM hierarchy cannot be used to represent the relationship. See related [`aria-controls`](https://www.w3.org/TR/wai-aria-1.1/#aria-controls)."}},{name:"aria-placeholder",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-placeholder"}],description:{kind:"markdown",value:"Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value. A hint could be a sample value or a brief description of the expected format."}},{name:"aria-posinset",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-posinset"}],description:{kind:"markdown",value:"Defines an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element)'s number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. See related [`aria-setsize`](https://www.w3.org/TR/wai-aria-1.1/#aria-setsize)."}},{name:"aria-pressed",valueSet:"tristate",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-pressed"}],description:{kind:"markdown",value:'Indicates the current "pressed" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) of toggle buttons. See related [`aria-checked`](https://www.w3.org/TR/wai-aria-1.1/#aria-checked) and [`aria-selected`](https://www.w3.org/TR/wai-aria-1.1/#aria-selected).'}},{name:"aria-readonly",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-readonly"}],description:{kind:"markdown",value:"Indicates that the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is not editable, but is otherwise [operable](https://www.w3.org/TR/wai-aria-1.1/#dfn-operable). See related [`aria-disabled`](https://www.w3.org/TR/wai-aria-1.1/#aria-disabled)."}},{name:"aria-relevant",valueSet:"relevant",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-relevant"}],description:{kind:"markdown",value:"Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified. See related [`aria-atomic`](https://www.w3.org/TR/wai-aria-1.1/#aria-atomic)."}},{name:"aria-required",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-required"}],description:{kind:"markdown",value:"Indicates that user input is required on the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) before a form may be submitted."}},{name:"aria-roledescription",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-roledescription"}],description:{kind:"markdown",value:"Defines a human-readable, author-localized description for the [role](https://www.w3.org/TR/wai-aria-1.1/#dfn-role) of an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element)."}},{name:"aria-rowcount",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-rowcount"}],description:{kind:"markdown",value:"Defines the total number of rows in a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-rowindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowindex)."}},{name:"aria-rowindex",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-rowindex"}],description:{kind:"markdown",value:"Defines an [element's](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) row index or position with respect to the total number of rows within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-rowcount`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowcount) and [`aria-rowspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowspan)."}},{name:"aria-rowspan",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-rowspan"}],description:{kind:"markdown",value:"Defines the number of rows spanned by a cell or gridcell within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-rowindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowindex) and [`aria-colspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-colspan)."}},{name:"aria-selected",valueSet:"u",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-selected"}],description:{kind:"markdown",value:'Indicates the current "selected" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) of various [widgets](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget). See related [`aria-checked`](https://www.w3.org/TR/wai-aria-1.1/#aria-checked) and [`aria-pressed`](https://www.w3.org/TR/wai-aria-1.1/#aria-pressed).'}},{name:"aria-setsize",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-setsize"}],description:{kind:"markdown",value:"Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. See related [`aria-posinset`](https://www.w3.org/TR/wai-aria-1.1/#aria-posinset)."}},{name:"aria-sort",valueSet:"sort",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-sort"}],description:{kind:"markdown",value:"Indicates if items in a table or grid are sorted in ascending or descending order."}},{name:"aria-valuemax",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-valuemax"}],description:{kind:"markdown",value:"Defines the maximum allowed value for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget)."}},{name:"aria-valuemin",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-valuemin"}],description:{kind:"markdown",value:"Defines the minimum allowed value for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget)."}},{name:"aria-valuenow",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-valuenow"}],description:{kind:"markdown",value:"Defines the current value for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget). See related [`aria-valuetext`](https://www.w3.org/TR/wai-aria-1.1/#aria-valuetext)."}},{name:"aria-valuetext",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-valuetext"}],description:{kind:"markdown",value:"Defines the human readable text alternative of [`aria-valuenow`](https://www.w3.org/TR/wai-aria-1.1/#aria-valuenow) for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget)."}},{name:"aria-details",description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) that provides a detailed, extended description for the [object](https://www.w3.org/TR/wai-aria-1.1/#dfn-object). See related [`aria-describedby`](https://www.w3.org/TR/wai-aria-1.1/#aria-describedby)."}},{name:"aria-keyshortcuts",description:{kind:"markdown",value:"Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element."}}],valueSets:[{name:"b",values:[{name:"true"},{name:"false"}]},{name:"u",values:[{name:"true"},{name:"false"},{name:"undefined"}]},{name:"o",values:[{name:"on"},{name:"off"}]},{name:"y",values:[{name:"yes"},{name:"no"}]},{name:"w",values:[{name:"soft"},{name:"hard"}]},{name:"d",values:[{name:"ltr"},{name:"rtl"},{name:"auto"}]},{name:"m",values:[{name:"get",description:{kind:"markdown",value:"Corresponds to the HTTP [GET method](https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.3); form data are appended to the `action` attribute URI with a '?' as separator, and the resulting URI is sent to the server. Use this method when the form has no side-effects and contains only ASCII characters."}},{name:"post",description:{kind:"markdown",value:"Corresponds to the HTTP [POST method](https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.5); form data are included in the body of the form and sent to the server."}},{name:"dialog",description:{kind:"markdown",value:"Use when the form is inside a [`<dialog>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog) element to close the dialog when submitted."}}]},{name:"fm",values:[{name:"get"},{name:"post"}]},{name:"s",values:[{name:"row"},{name:"col"},{name:"rowgroup"},{name:"colgroup"}]},{name:"t",values:[{name:"hidden"},{name:"text"},{name:"search"},{name:"tel"},{name:"url"},{name:"email"},{name:"password"},{name:"datetime"},{name:"date"},{name:"month"},{name:"week"},{name:"time"},{name:"datetime-local"},{name:"number"},{name:"range"},{name:"color"},{name:"checkbox"},{name:"radio"},{name:"file"},{name:"submit"},{name:"image"},{name:"reset"},{name:"button"}]},{name:"im",values:[{name:"verbatim"},{name:"latin"},{name:"latin-name"},{name:"latin-prose"},{name:"full-width-latin"},{name:"kana"},{name:"kana-name"},{name:"katakana"},{name:"numeric"},{name:"tel"},{name:"email"},{name:"url"}]},{name:"bt",values:[{name:"button"},{name:"submit"},{name:"reset"},{name:"menu"}]},{name:"lt",values:[{name:"1"},{name:"a"},{name:"A"},{name:"i"},{name:"I"}]},{name:"mt",values:[{name:"context"},{name:"toolbar"}]},{name:"mit",values:[{name:"command"},{name:"checkbox"},{name:"radio"}]},{name:"et",values:[{name:"application/x-www-form-urlencoded"},{name:"multipart/form-data"},{name:"text/plain"}]},{name:"tk",values:[{name:"subtitles"},{name:"captions"},{name:"descriptions"},{name:"chapters"},{name:"metadata"}]},{name:"pl",values:[{name:"none"},{name:"metadata"},{name:"auto"}]},{name:"sh",values:[{name:"circle"},{name:"default"},{name:"poly"},{name:"rect"}]},{name:"xo",values:[{name:"anonymous"},{name:"use-credentials"}]},{name:"target",values:[{name:"_self"},{name:"_blank"},{name:"_parent"},{name:"_top"}]},{name:"sb",values:[{name:"allow-forms"},{name:"allow-modals"},{name:"allow-pointer-lock"},{name:"allow-popups"},{name:"allow-popups-to-escape-sandbox"},{name:"allow-same-origin"},{name:"allow-scripts"},{name:"allow-top-navigation"}]},{name:"tristate",values:[{name:"true"},{name:"false"},{name:"mixed"},{name:"undefined"}]},{name:"inputautocomplete",values:[{name:"additional-name"},{name:"address-level1"},{name:"address-level2"},{name:"address-level3"},{name:"address-level4"},{name:"address-line1"},{name:"address-line2"},{name:"address-line3"},{name:"bday"},{name:"bday-year"},{name:"bday-day"},{name:"bday-month"},{name:"billing"},{name:"cc-additional-name"},{name:"cc-csc"},{name:"cc-exp"},{name:"cc-exp-month"},{name:"cc-exp-year"},{name:"cc-family-name"},{name:"cc-given-name"},{name:"cc-name"},{name:"cc-number"},{name:"cc-type"},{name:"country"},{name:"country-name"},{name:"current-password"},{name:"email"},{name:"family-name"},{name:"fax"},{name:"given-name"},{name:"home"},{name:"honorific-prefix"},{name:"honorific-suffix"},{name:"impp"},{name:"language"},{name:"mobile"},{name:"name"},{name:"new-password"},{name:"nickname"},{name:"off"},{name:"on"},{name:"organization"},{name:"organization-title"},{name:"pager"},{name:"photo"},{name:"postal-code"},{name:"sex"},{name:"shipping"},{name:"street-address"},{name:"tel-area-code"},{name:"tel"},{name:"tel-country-code"},{name:"tel-extension"},{name:"tel-local"},{name:"tel-local-prefix"},{name:"tel-local-suffix"},{name:"tel-national"},{name:"transaction-amount"},{name:"transaction-currency"},{name:"url"},{name:"username"},{name:"work"}]},{name:"autocomplete",values:[{name:"inline"},{name:"list"},{name:"both"},{name:"none"}]},{name:"current",values:[{name:"page"},{name:"step"},{name:"location"},{name:"date"},{name:"time"},{name:"true"},{name:"false"}]},{name:"dropeffect",values:[{name:"copy"},{name:"move"},{name:"link"},{name:"execute"},{name:"popup"},{name:"none"}]},{name:"invalid",values:[{name:"grammar"},{name:"false"},{name:"spelling"},{name:"true"}]},{name:"live",values:[{name:"off"},{name:"polite"},{name:"assertive"}]},{name:"orientation",values:[{name:"vertical"},{name:"horizontal"},{name:"undefined"}]},{name:"relevant",values:[{name:"additions"},{name:"removals"},{name:"text"},{name:"all"},{name:"additions text"}]},{name:"sort",values:[{name:"ascending"},{name:"descending"},{name:"none"},{name:"other"}]},{name:"roles",values:[{name:"alert"},{name:"alertdialog"},{name:"button"},{name:"checkbox"},{name:"dialog"},{name:"gridcell"},{name:"link"},{name:"log"},{name:"marquee"},{name:"menuitem"},{name:"menuitemcheckbox"},{name:"menuitemradio"},{name:"option"},{name:"progressbar"},{name:"radio"},{name:"scrollbar"},{name:"searchbox"},{name:"slider"},{name:"spinbutton"},{name:"status"},{name:"switch"},{name:"tab"},{name:"tabpanel"},{name:"textbox"},{name:"timer"},{name:"tooltip"},{name:"treeitem"},{name:"combobox"},{name:"grid"},{name:"listbox"},{name:"menu"},{name:"menubar"},{name:"radiogroup"},{name:"tablist"},{name:"tree"},{name:"treegrid"},{name:"application"},{name:"article"},{name:"cell"},{name:"columnheader"},{name:"definition"},{name:"directory"},{name:"document"},{name:"feed"},{name:"figure"},{name:"group"},{name:"heading"},{name:"img"},{name:"list"},{name:"listitem"},{name:"math"},{name:"none"},{name:"note"},{name:"presentation"},{name:"region"},{name:"row"},{name:"rowgroup"},{name:"rowheader"},{name:"separator"},{name:"table"},{name:"term"},{name:"text"},{name:"toolbar"},{name:"banner"},{name:"complementary"},{name:"contentinfo"},{name:"form"},{name:"main"},{name:"navigation"},{name:"region"},{name:"search"},{name:"doc-abstract"},{name:"doc-acknowledgments"},{name:"doc-afterword"},{name:"doc-appendix"},{name:"doc-backlink"},{name:"doc-biblioentry"},{name:"doc-bibliography"},{name:"doc-biblioref"},{name:"doc-chapter"},{name:"doc-colophon"},{name:"doc-conclusion"},{name:"doc-cover"},{name:"doc-credit"},{name:"doc-credits"},{name:"doc-dedication"},{name:"doc-endnote"},{name:"doc-endnotes"},{name:"doc-epigraph"},{name:"doc-epilogue"},{name:"doc-errata"},{name:"doc-example"},{name:"doc-footnote"},{name:"doc-foreword"},{name:"doc-glossary"},{name:"doc-glossref"},{name:"doc-index"},{name:"doc-introduction"},{name:"doc-noteref"},{name:"doc-notice"},{name:"doc-pagebreak"},{name:"doc-pagelist"},{name:"doc-part"},{name:"doc-preface"},{name:"doc-prologue"},{name:"doc-pullquote"},{name:"doc-qna"},{name:"doc-subtitle"},{name:"doc-tip"},{name:"doc-toc"}]},{name:"metanames",values:[{name:"application-name"},{name:"author"},{name:"description"},{name:"format-detection"},{name:"generator"},{name:"keywords"},{name:"publisher"},{name:"referrer"},{name:"robots"},{name:"theme-color"},{name:"viewport"}]},{name:"haspopup",values:[{name:"false",description:{kind:"markdown",value:"(default) Indicates the element does not have a popup."}},{name:"true",description:{kind:"markdown",value:"Indicates the popup is a menu."}},{name:"menu",description:{kind:"markdown",value:"Indicates the popup is a menu."}},{name:"listbox",description:{kind:"markdown",value:"Indicates the popup is a listbox."}},{name:"tree",description:{kind:"markdown",value:"Indicates the popup is a tree."}},{name:"grid",description:{kind:"markdown",value:"Indicates the popup is a grid."}},{name:"dialog",description:{kind:"markdown",value:"Indicates the popup is a dialog."}}]},{name:"decoding",values:[{name:"sync"},{name:"async"},{name:"auto"}]},{name:"loading",values:[{name:"eager",description:{kind:"markdown",value:"Loads the image immediately, regardless of whether or not the image is currently within the visible viewport (this is the default value)."}},{name:"lazy",description:{kind:"markdown",value:"Defers loading the image until it reaches a calculated distance from the viewport, as defined by the browser. The intent is to avoid the network and storage bandwidth needed to handle the image until it's reasonably certain that it will be needed. This generally improves the performance of the content in most typical use cases."}}]},{name:"referrerpolicy",values:[{name:"no-referrer"},{name:"no-referrer-when-downgrade"},{name:"origin"},{name:"origin-when-cross-origin"},{name:"same-origin"},{name:"strict-origin"},{name:"strict-origin-when-cross-origin"},{name:"unsafe-url"}]}]};class ih{constructor(e){this.dataProviders=[],this.setDataProviders(e.useDefaultDataProvider!==!1,e.customDataProviders||[])}setDataProviders(e,n){this.dataProviders=[],e&&this.dataProviders.push(new Ga("html5",nh)),this.dataProviders.push(...n)}getDataProviders(){return this.dataProviders}isVoidElement(e,n){return!!e&&hc(n,e.toLowerCase(),(i,r)=>i.localeCompare(r))>=0}getVoidElements(e){const n=Array.isArray(e)?e:this.getDataProviders().filter(r=>r.isApplicable(e)),i=[];return n.forEach(r=>{r.provideTags().filter(s=>s.void).forEach(s=>i.push(s.name))}),i.sort()}isPathAttribute(e,n){if(n==="src"||n==="href")return!0;const i=rh[e];return i?typeof i=="string"?i===n:i.indexOf(n)!==-1:!1}}const rh={a:"href",area:"href",body:"background",blockquote:"cite",del:"cite",form:"action",frame:["src","longdesc"],img:["src","longdesc"],ins:"cite",link:"href",object:"data",q:"cite",script:"src",audio:"src",button:"formaction",command:"icon",embed:"src",html:"manifest",input:["src","formaction"],source:"src",track:"src",video:["src","poster"]},sh={};function ah(t=sh){const e=new ih(t),n=new Mc(t,e),i=new Cc(t,e),r=new dc(e),s=new th(r),a=new eh(e),l=new Gc(e);return{setDataProviders:e.setDataProviders.bind(e),createScanner:be,parseHTMLDocument:r.parseDocument.bind(r),doComplete:i.doComplete.bind(i),doComplete2:i.doComplete2.bind(i),setCompletionParticipants:i.setCompletionParticipants.bind(i),doHover:n.doHover.bind(n),format:Uc,findDocumentHighlights:Xc,findDocumentLinks:l.findDocumentLinks.bind(l),findDocumentSymbols:Jc,findDocumentSymbols2:io,getFoldingRanges:a.getFoldingRanges.bind(a),getSelectionRanges:s.getSelectionRanges.bind(s),doQuoteComplete:i.doQuoteComplete.bind(i),doTagComplete:i.doTagComplete.bind(i),doRename:Yc,findMatchingTagPosition:Kc,findOnTypeRenameRanges:so,findLinkedEditingRanges:so}}function oh(t,e){return new Ga(t,e)}class lh{constructor(e,n){this._ctx=e,this._languageSettings=n.languageSettings,this._languageId=n.languageId;const i=this._languageSettings.data,r=i==null?void 0:i.useDefaultDataProvider,s=[];if(i!=null&&i.dataProviders)for(const a in i.dataProviders)s.push(oh(a,i.dataProviders[a]));this._languageService=ah({useDefaultDataProvider:r,customDataProviders:s})}async doComplete(e,n){let i=this._getTextDocument(e);if(!i)return null;let r=this._languageService.parseHTMLDocument(i);return Promise.resolve(this._languageService.doComplete(i,n,r,this._languageSettings&&this._languageSettings.suggest))}async format(e,n,i){let r=this._getTextDocument(e);if(!r)return[];let s={...this._languageSettings.format,...i},a=this._languageService.format(r,n,s);return Promise.resolve(a)}async doHover(e,n){let i=this._getTextDocument(e);if(!i)return null;let r=this._languageService.parseHTMLDocument(i),s=this._languageService.doHover(i,n,r);return Promise.resolve(s)}async findDocumentHighlights(e,n){let i=this._getTextDocument(e);if(!i)return[];let r=this._languageService.parseHTMLDocument(i),s=this._languageService.findDocumentHighlights(i,n,r);return Promise.resolve(s)}async findDocumentLinks(e){let n=this._getTextDocument(e);if(!n)return[];let i=this._languageService.findDocumentLinks(n,null);return Promise.resolve(i)}async findDocumentSymbols(e){let n=this._getTextDocument(e);if(!n)return[];let i=this._languageService.parseHTMLDocument(n),r=this._languageService.findDocumentSymbols(n,i);return Promise.resolve(r)}async getFoldingRanges(e,n){let i=this._getTextDocument(e);if(!i)return[];let r=this._languageService.getFoldingRanges(i,n);return Promise.resolve(r)}async getSelectionRanges(e,n){let i=this._getTextDocument(e);if(!i)return[];let r=this._languageService.getSelectionRanges(i,n);return Promise.resolve(r)}async doRename(e,n,i){let r=this._getTextDocument(e);if(!r)return null;let s=this._languageService.parseHTMLDocument(r),a=this._languageService.doRename(r,n,i,s);return Promise.resolve(a)}_getTextDocument(e){let n=this._ctx.getMirrorModels();for(let i of n)if(i.uri.toString()===e)return Ei.create(e,this._languageId,i.version,i.getValue());return null}}self.onmessage=()=>{Qu((t,e)=>new lh(t,e))}})();
|