@ansible/ansible-ui-framework 2.4.1133 → 2.4.1163

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,466 +0,0 @@
1
- var DA=Object.defineProperty;var bA=(Is,es,Os)=>es in Is?DA(Is,es,{enumerable:!0,configurable:!0,writable:!0,value:Os}):Is[es]=Os;var Ms=(Is,es,Os)=>(bA(Is,typeof es!="symbol"?es+"":es,Os),Os);(function(){"use strict";function Is(e,t){return t.forEach(function(n){n&&typeof n!="string"&&!Array.isArray(n)&&Object.keys(n).forEach(function(r){if(r!=="default"&&!(r in e)){var i=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(e,r,i.get?i:{enumerable:!0,get:function(){return n[r]}})}})}),Object.freeze(e)}class es{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(t){setTimeout(()=>{throw t.stack?la.isErrorNoTelemetry(t)?new la(t.message+`
2
-
3
- `+t.stack):new Error(t.message+`
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 Os=new es;function Dp(e){bg(e)||Os.onUnexpectedError(e)}function bp(e){if(e instanceof Error){const{name:t,message:n}=e,r=e.stacktrace||e.stack;return{$isError:!0,name:t,message:n,stack:r,noTelemetry:la.isErrorNoTelemetry(e)}}return e}const Fl="Canceled";function bg(e){return e instanceof vg?!0:e instanceof Error&&e.name===Fl&&e.message===Fl}class vg extends Error{constructor(){super(Fl),this.name=this.message}}class la extends Error{constructor(t){super(t),this.name="CodeExpectedError"}static fromError(t){if(t instanceof la)return t;const n=new la;return n.message=t.message,n.stack=t.stack,n}static isErrorNoTelemetry(t){return t.name==="CodeExpectedError"}}class ms extends Error{constructor(t){super(t||"An unexpected bug occurred."),Object.setPrototypeOf(this,ms.prototype)}}function Eg(e,t){const n=this;let r=!1,i;return function(){if(r)return i;if(r=!0,t)try{i=e.apply(n,arguments)}finally{t()}else i=e.apply(n,arguments);return i}}var Yo;(function(e){function t(Ae){return Ae&&typeof Ae=="object"&&typeof Ae[Symbol.iterator]=="function"}e.is=t;const n=Object.freeze([]);function r(){return n}e.empty=r;function*i(Ae){yield Ae}e.single=i;function s(Ae){return t(Ae)?Ae:i(Ae)}e.wrap=s;function a(Ae){return Ae||n}e.from=a;function*o(Ae){for(let Fe=Ae.length-1;Fe>=0;Fe--)yield Ae[Fe]}e.reverse=o;function u(Ae){return!Ae||Ae[Symbol.iterator]().next().done===!0}e.isEmpty=u;function l(Ae){return Ae[Symbol.iterator]().next().value}e.first=l;function v(Ae,Fe){for(const ke of Ae)if(Fe(ke))return!0;return!1}e.some=v;function c(Ae,Fe){for(const ke of Ae)if(Fe(ke))return ke}e.find=c;function*N(Ae,Fe){for(const ke of Ae)Fe(ke)&&(yield ke)}e.filter=N;function*_(Ae,Fe){let ke=0;for(const ae of Ae)yield Fe(ae,ke++)}e.map=_;function*Z(...Ae){for(const Fe of Ae)yield*Fe}e.concat=Z;function te(Ae,Fe,ke){let ae=ke;for(const Ee of Ae)ae=Fe(ae,Ee);return ae}e.reduce=te;function*M(Ae,Fe,ke=Ae.length){for(Fe<0&&(Fe+=Ae.length),ke<0?ke+=Ae.length:ke>Ae.length&&(ke=Ae.length);Fe<ke;Fe++)yield Ae[Fe]}e.slice=M;function he(Ae,Fe=Number.POSITIVE_INFINITY){const ke=[];if(Fe===0)return[ke,Ae];const ae=Ae[Symbol.iterator]();for(let Ee=0;Ee<Fe;Ee++){const Qe=ae.next();if(Qe.done)return[ke,e.empty()];ke.push(Qe.value)}return[ke,{[Symbol.iterator](){return ae}}]}e.consume=he})(Yo||(Yo={}));function vA(e){return e}function EA(e,t){}function vp(e){if(Yo.is(e)){const t=[];for(const n of e)if(n)try{n.dispose()}catch(r){t.push(r)}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 Ag(...e){return oo(()=>vp(e))}function oo(e){return{dispose:Eg(()=>{e()})}}class js{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{vp(this._toDispose)}finally{this._toDispose.clear()}}add(t){if(!t)return t;if(t===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?js.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}deleteAndLeak(t){t&&this._toDispose.has(t)&&this._toDispose.delete(t)}}js.DISABLE_DISPOSED_WARNING=!1;class uo{constructor(){this._store=new js,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)}}uo.None=Object.freeze({dispose(){}});class br{constructor(t){this.element=t,this.next=br.Undefined,this.prev=br.Undefined}}br.Undefined=new br(void 0);class Cg{constructor(){this._first=br.Undefined,this._last=br.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===br.Undefined}clear(){let t=this._first;for(;t!==br.Undefined;){const n=t.next;t.prev=br.Undefined,t.next=br.Undefined,t=n}this._first=br.Undefined,this._last=br.Undefined,this._size=0}unshift(t){return this._insert(t,!1)}push(t){return this._insert(t,!0)}_insert(t,n){const r=new br(t);if(this._first===br.Undefined)this._first=r,this._last=r;else if(n){const s=this._last;this._last=r,r.prev=s,s.next=r}else{const s=this._first;this._first=r,r.next=s,s.prev=r}this._size+=1;let i=!1;return()=>{i||(i=!0,this._remove(r))}}shift(){if(this._first!==br.Undefined){const t=this._first.element;return this._remove(this._first),t}}pop(){if(this._last!==br.Undefined){const t=this._last.element;return this._remove(this._last),t}}_remove(t){if(t.prev!==br.Undefined&&t.next!==br.Undefined){const n=t.prev;n.next=t.next,t.next.prev=n}else t.prev===br.Undefined&&t.next===br.Undefined?(this._first=br.Undefined,this._last=br.Undefined):t.next===br.Undefined?(this._last=this._last.prev,this._last.next=br.Undefined):t.prev===br.Undefined&&(this._first=this._first.next,this._first.prev=br.Undefined);this._size-=1}*[Symbol.iterator](){let t=this._first;for(;t!==br.Undefined;)yield t.element,t=t.next}}const xg=globalThis.performance&&typeof globalThis.performance.now=="function";class Ho{static create(t){return new Ho(t)}constructor(t){this._now=xg&&t===!1?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}}var Nl;(function(e){e.None=()=>uo.None;function t(me,He){return c(me,()=>{},0,void 0,!0,void 0,He)}e.defer=t;function n(me){return(He,xt=null,jt)=>{let Vt=!1,en;return en=me(En=>{if(!Vt)return en?en.dispose():Vt=!0,He.call(xt,En)},null,jt),Vt&&en.dispose(),en}}e.once=n;function r(me,He,xt){return l((jt,Vt=null,en)=>me(En=>jt.call(Vt,He(En)),null,en),xt)}e.map=r;function i(me,He,xt){return l((jt,Vt=null,en)=>me(En=>{He(En),jt.call(Vt,En)},null,en),xt)}e.forEach=i;function s(me,He,xt){return l((jt,Vt=null,en)=>me(En=>He(En)&&jt.call(Vt,En),null,en),xt)}e.filter=s;function a(me){return me}e.signal=a;function o(...me){return(He,xt=null,jt)=>{const Vt=Ag(...me.map(en=>en(En=>He.call(xt,En))));return v(Vt,jt)}}e.any=o;function u(me,He,xt,jt){let Vt=xt;return r(me,en=>(Vt=He(Vt,en),Vt),jt)}e.reduce=u;function l(me,He){let xt;const jt={onWillAddFirstListener(){xt=me(Vt.fire,Vt)},onDidRemoveLastListener(){xt==null||xt.dispose()}},Vt=new Bi(jt);return He==null||He.add(Vt),Vt.event}function v(me,He){return He instanceof Array?He.push(me):He&&He.add(me),me}function c(me,He,xt=100,jt=!1,Vt=!1,en,En){let Un,Wn,$r,ks=0,vi;const Io={leakWarningThreshold:en,onWillAddFirstListener(){Un=me(Ga=>{ks++,Wn=He(Wn,Ga),jt&&!$r&&(us.fire(Wn),Wn=void 0),vi=()=>{const Ps=Wn;Wn=void 0,$r=void 0,(!jt||ks>1)&&us.fire(Ps),ks=0},typeof xt=="number"?(clearTimeout($r),$r=setTimeout(vi,xt)):$r===void 0&&($r=0,queueMicrotask(vi))})},onWillRemoveListener(){Vt&&ks>0&&(vi==null||vi())},onDidRemoveLastListener(){vi=void 0,Un.dispose()}},us=new Bi(Io);return En==null||En.add(us),us.event}e.debounce=c;function N(me,He=0,xt){return e.debounce(me,(jt,Vt)=>jt?(jt.push(Vt),jt):[Vt],He,void 0,!0,void 0,xt)}e.accumulate=N;function _(me,He=(jt,Vt)=>jt===Vt,xt){let jt=!0,Vt;return s(me,en=>{const En=jt||!He(en,Vt);return jt=!1,Vt=en,En},xt)}e.latch=_;function Z(me,He,xt){return[e.filter(me,He,xt),e.filter(me,jt=>!He(jt),xt)]}e.split=Z;function te(me,He=!1,xt=[],jt){let Vt=xt.slice(),en=me(Wn=>{Vt?Vt.push(Wn):Un.fire(Wn)});jt&&jt.add(en);const En=()=>{Vt==null||Vt.forEach(Wn=>Un.fire(Wn)),Vt=null},Un=new Bi({onWillAddFirstListener(){en||(en=me(Wn=>Un.fire(Wn)),jt&&jt.add(en))},onDidAddFirstListener(){Vt&&(He?setTimeout(En):En())},onDidRemoveLastListener(){en&&en.dispose(),en=null}});return jt&&jt.add(Un),Un.event}e.buffer=te;function M(me,He){return(jt,Vt,en)=>{const En=He(new Ae);return me(function(Un){const Wn=En.evaluate(Un);Wn!==he&&jt.call(Vt,Wn)},void 0,en)}}e.chain=M;const he=Symbol("HaltChainable");class Ae{constructor(){this.steps=[]}map(He){return this.steps.push(He),this}forEach(He){return this.steps.push(xt=>(He(xt),xt)),this}filter(He){return this.steps.push(xt=>He(xt)?xt:he),this}reduce(He,xt){let jt=xt;return this.steps.push(Vt=>(jt=He(jt,Vt),jt)),this}latch(He=(xt,jt)=>xt===jt){let xt=!0,jt;return this.steps.push(Vt=>{const en=xt||!He(Vt,jt);return xt=!1,jt=Vt,en?Vt:he}),this}evaluate(He){for(const xt of this.steps)if(He=xt(He),He===he)break;return He}}function Fe(me,He,xt=jt=>jt){const jt=(...Un)=>En.fire(xt(...Un)),Vt=()=>me.on(He,jt),en=()=>me.removeListener(He,jt),En=new Bi({onWillAddFirstListener:Vt,onDidRemoveLastListener:en});return En.event}e.fromNodeEventEmitter=Fe;function ke(me,He,xt=jt=>jt){const jt=(...Un)=>En.fire(xt(...Un)),Vt=()=>me.addEventListener(He,jt),en=()=>me.removeEventListener(He,jt),En=new Bi({onWillAddFirstListener:Vt,onDidRemoveLastListener:en});return En.event}e.fromDOMEventEmitter=ke;function ae(me){return new Promise(He=>n(me)(He))}e.toPromise=ae;function Ee(me){const He=new Bi;return me.then(xt=>{He.fire(xt)},()=>{He.fire(void 0)}).finally(()=>{He.dispose()}),He.event}e.fromPromise=Ee;function Qe(me,He,xt){return He(xt),me(jt=>He(jt))}e.runAndSubscribe=Qe;function Dt(me,He){let xt=null;function jt(en){xt==null||xt.dispose(),xt=new js,He(en,xt)}jt(void 0);const Vt=me(en=>jt(en));return oo(()=>{Vt.dispose(),xt==null||xt.dispose()})}e.runAndSubscribeWithStore=Dt;class Ve{constructor(He,xt){this._observable=He,this._counter=0,this._hasChanged=!1;const jt={onWillAddFirstListener:()=>{He.addObserver(this)},onDidRemoveLastListener:()=>{He.removeObserver(this)}};this.emitter=new Bi(jt),xt&&xt.add(this.emitter)}beginUpdate(He){this._counter++}handlePossibleChange(He){}handleChange(He,xt){this._hasChanged=!0}endUpdate(He){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function Xe(me,He){return new Ve(me,He).emitter.event}e.fromObservable=Xe;function ze(me){return(He,xt,jt)=>{let Vt=0,en=!1;const En={beginUpdate(){Vt++},endUpdate(){Vt--,Vt===0&&(me.reportChanges(),en&&(en=!1,He.call(xt)))},handlePossibleChange(){},handleChange(){en=!0}};me.addObserver(En),me.reportChanges();const Un={dispose(){me.removeObserver(En)}};return jt instanceof js?jt.add(Un):Array.isArray(jt)&&jt.push(Un),Un}}e.fromObservableLight=ze})(Nl||(Nl={}));class ca{constructor(t){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${t}_${ca._idPool++}`,ca.all.add(this)}start(t){this._stopWatch=new Ho,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}}}ca.all=new Set,ca._idPool=0;let Sg=-1;class wg{constructor(t,n=Math.random().toString(18).slice(2,5)){this.threshold=t,this.name=n,this._warnCountdown=0}dispose(){var t;(t=this._stacks)===null||t===void 0||t.clear()}check(t,n){const r=this.threshold;if(r<=0||n<r)return;this._stacks||(this._stacks=new Map);const i=this._stacks.get(t.value)||0;if(this._stacks.set(t.value,i+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=r*.5;let s,a=0;for(const[o,u]of this._stacks)(!s||a<u)&&(s=o,a=u);console.warn(`[${this.name}] potential listener LEAK detected, having ${n} listeners already. MOST frequent listener (${a}):`),console.warn(s)}return()=>{const s=this._stacks.get(t.value)||0;this._stacks.set(t.value,s-1)}}}class Tl{static create(){var t;return new Tl((t=new Error().stack)!==null&&t!==void 0?t:"")}constructor(t){this.value=t}print(){console.warn(this.value.split(`
6
- `).slice(2).join(`
7
- `))}}class _l{constructor(t){this.value=t}}const Fg=2;class Bi{constructor(t){var n,r,i,s,a;this._size=0,this._options=t,this._leakageMon=!((n=this._options)===null||n===void 0)&&n.leakWarningThreshold?new wg((i=(r=this._options)===null||r===void 0?void 0:r.leakWarningThreshold)!==null&&i!==void 0?i:Sg):void 0,this._perfMon=!((s=this._options)===null||s===void 0)&&s._profName?new ca(this._options._profName):void 0,this._deliveryQueue=(a=this._options)===null||a===void 0?void 0:a.deliveryQueue}dispose(){var t,n,r,i;this._disposed||(this._disposed=!0,((t=this._deliveryQueue)===null||t===void 0?void 0:t.current)===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),(r=(n=this._options)===null||n===void 0?void 0:n.onDidRemoveLastListener)===null||r===void 0||r.call(n),(i=this._leakageMon)===null||i===void 0||i.dispose())}get event(){var t;return(t=this._event)!==null&&t!==void 0||(this._event=(n,r,i)=>{var s,a,o,u,l;if(this._leakageMon&&this._size>this._leakageMon.threshold*3)return console.warn(`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far`),uo.None;if(this._disposed)return uo.None;r&&(n=n.bind(r));const v=new _l(n);let c;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(v.stack=Tl.create(),c=this._leakageMon.check(v.stack,this._size+1)),this._listeners?this._listeners instanceof _l?((l=this._deliveryQueue)!==null&&l!==void 0||(this._deliveryQueue=new Ng),this._listeners=[this._listeners,v]):this._listeners.push(v):((a=(s=this._options)===null||s===void 0?void 0:s.onWillAddFirstListener)===null||a===void 0||a.call(s,this),this._listeners=v,(u=(o=this._options)===null||o===void 0?void 0:o.onDidAddFirstListener)===null||u===void 0||u.call(o,this)),this._size++;const N=oo(()=>{c==null||c(),this._removeListener(v)});return i instanceof js?i.add(N):Array.isArray(i)&&i.push(N),N}),this._event}_removeListener(t){var n,r,i,s;if((r=(n=this._options)===null||n===void 0?void 0:n.onWillRemoveListener)===null||r===void 0||r.call(n,this),!this._listeners)return;if(this._size===1){this._listeners=void 0,(s=(i=this._options)===null||i===void 0?void 0:i.onDidRemoveLastListener)===null||s===void 0||s.call(i,this),this._size=0;return}const a=this._listeners,o=a.indexOf(t);if(o===-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--,a[o]=void 0;const u=this._deliveryQueue.current===this;if(this._size*Fg<=a.length){let l=0;for(let v=0;v<a.length;v++)a[v]?a[l++]=a[v]:u&&(this._deliveryQueue.end--,l<this._deliveryQueue.i&&this._deliveryQueue.i--);a.length=l}}_deliver(t,n){var r;if(!t)return;const i=((r=this._options)===null||r===void 0?void 0:r.onListenerError)||Dp;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,r,i,s;if(!((n=this._deliveryQueue)===null||n===void 0)&&n.current&&(this._deliverQueue(this._deliveryQueue),(r=this._perfMon)===null||r===void 0||r.stop()),(i=this._perfMon)===null||i===void 0||i.start(this._size),this._listeners)if(this._listeners instanceof _l)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===void 0||s.stop()}hasListeners(){return this._size>0}}class Ng{constructor(){this.i=-1,this.end=0}enqueue(t,n,r){this.i=0,this.end=r,this.current=t,this.value=n}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}function Tg(e){return typeof e=="string"}function _g(e){let t=[];for(;Object.prototype!==e;)t=t.concat(Object.getOwnPropertyNames(e)),e=Object.getPrototypeOf(e);return t}function Ll(e){const t=[];for(const n of _g(e))typeof e[n]=="function"&&t.push(n);return t}function Lg(e,t){const n=i=>function(){const s=Array.prototype.slice.call(arguments,0);return t(i,s)},r={};for(const i of e)r[i]=n(i);return r}let kg=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function Pg(e,t){let n;return t.length===0?n=e:n=e.replace(/\{(\d+)\}/g,(r,i)=>{const s=i[0],a=t[s];let o=r;return typeof a=="string"?o=a:(typeof a=="number"||typeof a=="boolean"||a===void 0||a===null)&&(o=String(a)),o}),kg&&(n="["+n.replace(/[aouei]/g,"$&$&")+"]"),n}function vr(e,t,...n){return Pg(t,n)}function AA(e){}var kl;const fa="en";let Pl=!1,Bl=!1,Ml=!1,zo,Il=fa,Ep=fa,Bg,Mi;const Rs=globalThis;let Xr;typeof Rs.vscode<"u"&&typeof Rs.vscode.process<"u"?Xr=Rs.vscode.process:typeof process<"u"&&(Xr=process);const Mg=typeof((kl=Xr==null?void 0:Xr.versions)===null||kl===void 0?void 0:kl.electron)=="string"&&(Xr==null?void 0:Xr.type)==="renderer";if(typeof navigator=="object"&&!Mg)Mi=navigator.userAgent,Pl=Mi.indexOf("Windows")>=0,Bl=Mi.indexOf("Macintosh")>=0,(Mi.indexOf("Macintosh")>=0||Mi.indexOf("iPad")>=0||Mi.indexOf("iPhone")>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Ml=Mi.indexOf("Linux")>=0,(Mi==null?void 0:Mi.indexOf("Mobi"))>=0,vr({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),zo=fa,Il=zo,Ep=navigator.language;else if(typeof Xr=="object"){Pl=Xr.platform==="win32",Bl=Xr.platform==="darwin",Ml=Xr.platform==="linux",Ml&&Xr.env.SNAP&&Xr.env.SNAP_REVISION,Xr.env.CI||Xr.env.BUILD_ARTIFACTSTAGINGDIRECTORY,zo=fa,Il=fa;const e=Xr.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e),n=t.availableLanguages["*"];zo=t.locale,Ep=t.osLocale,Il=n||fa,Bg=t._translationsConfigFile}catch{}}else console.error("Unable to resolve platform.");const lo=Pl,Ig=Bl,Gi=Mi,Og=typeof Rs.postMessage=="function"&&!Rs.importScripts;(()=>{if(Og){const e=[];Rs.addEventListener("message",n=>{if(n.data&&n.data.vscodeScheduleAsyncWork)for(let r=0,i=e.length;r<i;r++){const s=e[r];if(s.id===n.data.vscodeScheduleAsyncWork){e.splice(r,1),s.callback();return}}});let t=0;return n=>{const r=++t;e.push({id:r,callback:n}),Rs.postMessage({vscodeScheduleAsyncWork:r},"*")}}return e=>setTimeout(e)})();const jg=!!(Gi&&Gi.indexOf("Chrome")>=0);Gi&&Gi.indexOf("Firefox")>=0,!jg&&Gi&&Gi.indexOf("Safari")>=0,Gi&&Gi.indexOf("Edg/")>=0,Gi&&Gi.indexOf("Android")>=0;class Rg{constructor(t){this.fn=t,this.lastCache=void 0,this.lastArgKey=void 0}get(t){const n=JSON.stringify(t);return this.lastArgKey!==n&&(this.lastArgKey=n,this.lastCache=this.fn(t)),this.lastCache}}class Ap{constructor(t){this.executor=t,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(t){this._error=t}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}var pa;function $g(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function Vg(e){return e.split(/\r\n|\r|\n/)}function qg(e){for(let t=0,n=e.length;t<n;t++){const r=e.charCodeAt(t);if(r!==32&&r!==9)return t}return-1}function Ug(e,t=e.length-1){for(let n=t;n>=0;n--){const r=e.charCodeAt(n);if(r!==32&&r!==9)return n}return-1}function Cp(e){return e>=65&&e<=90}function Ol(e){return 55296<=e&&e<=56319}function Wg(e){return 56320<=e&&e<=57343}function Gg(e,t){return(e-55296<<10)+(t-56320)+65536}function Jg(e,t,n){const r=e.charCodeAt(n);if(Ol(r)&&n+1<t){const i=e.charCodeAt(n+1);if(Wg(i))return Gg(r,i)}return r}const Yg=/^[\t\n\r\x20-\x7E]*$/;function Hg(e){return Yg.test(e)}class $s{static getInstance(t){return pa.cache.get(Array.from(t))}static getLocales(){return pa._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())}}pa=$s,$s.ambiguousCharacterData=new Ap(()=>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,8218,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,8242,96,1370,96,1523,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,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,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,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,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,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,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,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,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,71922,67,71913,67,65315,67,8557,67,8450,67,8493,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,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,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,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,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,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,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,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,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,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,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,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,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,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,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,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,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,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,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,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,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,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,71919,87,71910,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,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,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,66293,90,71909,90,65338,90,8484,90,8488,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,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,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,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,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,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,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,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,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,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,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,65283,35,65292,44,65307,59],"ko":[8211,45,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,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,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,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,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,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[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,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,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,65283,35,65307,59]}')),$s.cache=new Rg(e=>{function t(l){const v=new Map;for(let c=0;c<l.length;c+=2)v.set(l[c],l[c+1]);return v}function n(l,v){const c=new Map(l);for(const[N,_]of v)c.set(N,_);return c}function r(l,v){if(!l)return v;const c=new Map;for(const[N,_]of l)v.has(N)&&c.set(N,_);return c}const i=pa.ambiguousCharacterData.value;let s=e.filter(l=>!l.startsWith("_")&&l in i);s.length===0&&(s=["_default"]);let a;for(const l of s){const v=t(i[l]);a=r(a,v)}const o=t(i._common),u=n(o,a);return new pa(u)}),$s._locales=new Ap(()=>Object.keys(pa.ambiguousCharacterData.value).filter(e=>!e.startsWith("_")));class gs{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,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,12288,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]")}static getData(){return this._data||(this._data=new Set(gs.getRawData())),this._data}static isInvisibleCharacter(t){return gs.getData().has(t)}static get codePoints(){return gs.getData()}}gs._data=void 0;const zg="$initialize";class Qg{constructor(t,n,r,i){this.vsWorker=t,this.req=n,this.method=r,this.args=i,this.type=0}}class xp{constructor(t,n,r,i){this.vsWorker=t,this.seq=n,this.res=r,this.err=i,this.type=1}}class Xg{constructor(t,n,r,i){this.vsWorker=t,this.req=n,this.eventName=r,this.arg=i,this.type=2}}class Kg{constructor(t,n,r){this.vsWorker=t,this.req=n,this.event=r,this.type=3}}class Zg{constructor(t,n){this.vsWorker=t,this.req=n,this.type=4}}class e1{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}sendMessage(t,n){const r=String(++this._lastSentReq);return new Promise((i,s)=>{this._pendingReplies[r]={resolve:i,reject:s},this._send(new Qg(this._workerId,r,t,n))})}listen(t,n){let r=null;const i=new Bi({onWillAddFirstListener:()=>{r=String(++this._lastSentReq),this._pendingEmitters.set(r,i),this._send(new Xg(this._workerId,r,t,n))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(r),this._send(new Zg(this._workerId,r)),r=null}});return i.event}handleMessage(t){!t||!t.vsWorker||this._workerId!==-1&&t.vsWorker!==this._workerId||this._handleMessage(t)}_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 r=t.err;t.err.$isError&&(r=new Error,r.name=t.err.name,r.message=t.err.message,r.stack=t.err.stack),n.reject(r);return}n.resolve(t.res)}_handleRequestMessage(t){const n=t.req;this._handler.handleMessage(t.method,t.args).then(i=>{this._send(new xp(this._workerId,n,i,void 0))},i=>{i.detail instanceof Error&&(i.detail=bp(i.detail)),this._send(new xp(this._workerId,n,void 0,bp(i)))})}_handleSubscribeEventMessage(t){const n=t.req,r=this._handler.handleEvent(t.eventName,t.arg)(i=>{this._send(new Kg(this._workerId,n,i))});this._pendingEvents.set(n,r)}_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 r=0;r<t.args.length;r++)t.args[r]instanceof ArrayBuffer&&n.push(t.args[r]);else t.type===1&&t.res instanceof ArrayBuffer&&n.push(t.res);this._handler.sendMessage(t,n)}}function Sp(e){return e[0]==="o"&&e[1]==="n"&&Cp(e.charCodeAt(2))}function wp(e){return/^onDynamic/.test(e)&&Cp(e.charCodeAt(9))}function t1(e,t,n){const r=a=>function(){const o=Array.prototype.slice.call(arguments,0);return t(a,o)},i=a=>function(o){return n(a,o)},s={};for(const a of e){if(wp(a)){s[a]=i(a);continue}if(Sp(a)){s[a]=n(a,void 0);continue}s[a]=r(a)}return s}class n1{constructor(t,n){this._requestHandlerFactory=n,this._requestHandler=null,this._protocol=new e1({sendMessage:(r,i)=>{t(r,i)},handleMessage:(r,i)=>this._handleMessage(r,i),handleEvent:(r,i)=>this._handleEvent(r,i)})}onmessage(t){this._protocol.handleMessage(t)}_handleMessage(t,n){if(t===zg)return this.initialize(n[0],n[1],n[2],n[3]);if(!this._requestHandler||typeof this._requestHandler[t]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+t));try{return Promise.resolve(this._requestHandler[t].apply(this._requestHandler,n))}catch(r){return Promise.reject(r)}}_handleEvent(t,n){if(!this._requestHandler)throw new Error("Missing requestHandler");if(wp(t)){const r=this._requestHandler[t].call(this._requestHandler,n);if(typeof r!="function")throw new Error(`Missing dynamic event ${t} on request handler.`);return r}if(Sp(t)){const r=this._requestHandler[t];if(typeof r!="function")throw new Error(`Missing event ${t} on request handler.`);return r}throw new Error(`Malformed event name ${t}`)}initialize(t,n,r,i){this._protocol.setWorkerId(t);const o=t1(i,(u,l)=>this._protocol.sendMessage(u,l),(u,l)=>this._protocol.listen(u,l));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(o),Promise.resolve(Ll(this._requestHandler))):(n&&(typeof n.baseUrl<"u"&&delete n.baseUrl,typeof n.paths<"u"&&typeof n.paths.vs<"u"&&delete n.paths.vs,typeof n.trustedTypesPolicy!==void 0&&delete n.trustedTypesPolicy,n.catchError=!0,globalThis.require.config(n)),new Promise((u,l)=>{const v=globalThis.require;v([r],c=>{if(this._requestHandler=c.create(o),!this._requestHandler){l(new Error("No RequestHandler!"));return}u(Ll(this._requestHandler))},l)}))}}class ys{constructor(t,n,r,i){this.originalStart=t,this.originalLength=n,this.modifiedStart=r,this.modifiedLength=i}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}function Fp(e,t){return(t<<5)-t+e|0}function r1(e,t){t=Fp(149417,t);for(let n=0,r=e.length;n<r;n++)t=Fp(e.charCodeAt(n),t);return t}class Np{constructor(t){this.source=t}getElements(){const t=this.source,n=new Int32Array(t.length);for(let r=0,i=t.length;r<i;r++)n[r]=t.charCodeAt(r);return n}}function i1(e,t,n){return new Ds(new Np(e),new Np(t)).ComputeDiff(n).changes}class da{static Assert(t,n){if(!t)throw new Error(n)}}class ha{static Copy(t,n,r,i,s){for(let a=0;a<s;a++)r[i+a]=t[n+a]}static Copy2(t,n,r,i,s){for(let a=0;a<s;a++)r[i+a]=t[n+a]}}class Tp{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 ys(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 Ds{constructor(t,n,r=null){this.ContinueProcessingPredicate=r,this._originalSequence=t,this._modifiedSequence=n;const[i,s,a]=Ds._getElements(t),[o,u,l]=Ds._getElements(n);this._hasStrings=a&&l,this._originalStringElements=i,this._originalElementsOrHash=s,this._modifiedStringElements=o,this._modifiedElementsOrHash=u,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(Ds._isStringArray(n)){const r=new Int32Array(n.length);for(let i=0,s=n.length;i<s;i++)r[i]=r1(n[i],0);return[n,r,!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 r=Ds._getStrictElement(this._originalSequence,t),i=Ds._getStrictElement(this._modifiedSequence,n);return r===i}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,r,i,s){const a=[!1];let o=this.ComputeDiffRecursive(t,n,r,i,a);return s&&(o=this.PrettifyChanges(o)),{quitEarly:a[0],changes:o}}ComputeDiffRecursive(t,n,r,i,s){for(s[0]=!1;t<=n&&r<=i&&this.ElementsAreEqual(t,r);)t++,r++;for(;n>=t&&i>=r&&this.ElementsAreEqual(n,i);)n--,i--;if(t>n||r>i){let c;return r<=i?(da.Assert(t===n+1,"originalStart should only be one more than originalEnd"),c=[new ys(t,0,r,i-r+1)]):t<=n?(da.Assert(r===i+1,"modifiedStart should only be one more than modifiedEnd"),c=[new ys(t,n-t+1,r,0)]):(da.Assert(t===n+1,"originalStart should only be one more than originalEnd"),da.Assert(r===i+1,"modifiedStart should only be one more than modifiedEnd"),c=[]),c}const a=[0],o=[0],u=this.ComputeRecursionPoint(t,n,r,i,a,o,s),l=a[0],v=o[0];if(u!==null)return u;if(!s[0]){const c=this.ComputeDiffRecursive(t,l,r,v,s);let N=[];return s[0]?N=[new ys(l+1,n-(l+1)+1,v+1,i-(v+1)+1)]:N=this.ComputeDiffRecursive(l+1,n,v+1,i,s),this.ConcatenateChanges(c,N)}return[new ys(t,n-t+1,r,i-r+1)]}WALKTRACE(t,n,r,i,s,a,o,u,l,v,c,N,_,Z,te,M,he,Ae){let Fe=null,ke=null,ae=new Tp,Ee=n,Qe=r,Dt=_[0]-M[0]-i,Ve=-1073741824,Xe=this.m_forwardHistory.length-1;do{const ze=Dt+t;ze===Ee||ze<Qe&&l[ze-1]<l[ze+1]?(c=l[ze+1],Z=c-Dt-i,c<Ve&&ae.MarkNextChange(),Ve=c,ae.AddModifiedElement(c+1,Z),Dt=ze+1-t):(c=l[ze-1]+1,Z=c-Dt-i,c<Ve&&ae.MarkNextChange(),Ve=c-1,ae.AddOriginalElement(c,Z+1),Dt=ze-1-t),Xe>=0&&(l=this.m_forwardHistory[Xe],t=l[0],Ee=1,Qe=l.length-1)}while(--Xe>=-1);if(Fe=ae.getReverseChanges(),Ae[0]){let ze=_[0]+1,me=M[0]+1;if(Fe!==null&&Fe.length>0){const He=Fe[Fe.length-1];ze=Math.max(ze,He.getOriginalEnd()),me=Math.max(me,He.getModifiedEnd())}ke=[new ys(ze,N-ze+1,me,te-me+1)]}else{ae=new Tp,Ee=a,Qe=o,Dt=_[0]-M[0]-u,Ve=1073741824,Xe=he?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const ze=Dt+s;ze===Ee||ze<Qe&&v[ze-1]>=v[ze+1]?(c=v[ze+1]-1,Z=c-Dt-u,c>Ve&&ae.MarkNextChange(),Ve=c+1,ae.AddOriginalElement(c+1,Z+1),Dt=ze+1-s):(c=v[ze-1],Z=c-Dt-u,c>Ve&&ae.MarkNextChange(),Ve=c,ae.AddModifiedElement(c+1,Z+1),Dt=ze-1-s),Xe>=0&&(v=this.m_reverseHistory[Xe],s=v[0],Ee=1,Qe=v.length-1)}while(--Xe>=-1);ke=ae.getChanges()}return this.ConcatenateChanges(Fe,ke)}ComputeRecursionPoint(t,n,r,i,s,a,o){let u=0,l=0,v=0,c=0,N=0,_=0;t--,r--,s[0]=0,a[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const Z=n-t+(i-r),te=Z+1,M=new Int32Array(te),he=new Int32Array(te),Ae=i-r,Fe=n-t,ke=t-r,ae=n-i,Qe=(Fe-Ae)%2===0;M[Ae]=t,he[Fe]=n,o[0]=!1;for(let Dt=1;Dt<=Z/2+1;Dt++){let Ve=0,Xe=0;v=this.ClipDiagonalBound(Ae-Dt,Dt,Ae,te),c=this.ClipDiagonalBound(Ae+Dt,Dt,Ae,te);for(let me=v;me<=c;me+=2){me===v||me<c&&M[me-1]<M[me+1]?u=M[me+1]:u=M[me-1]+1,l=u-(me-Ae)-ke;const He=u;for(;u<n&&l<i&&this.ElementsAreEqual(u+1,l+1);)u++,l++;if(M[me]=u,u+l>Ve+Xe&&(Ve=u,Xe=l),!Qe&&Math.abs(me-Fe)<=Dt-1&&u>=he[me])return s[0]=u,a[0]=l,He<=he[me]&&1447>0&&Dt<=1448?this.WALKTRACE(Ae,v,c,ke,Fe,N,_,ae,M,he,u,n,s,l,i,a,Qe,o):null}const ze=(Ve-t+(Xe-r)-Dt)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(Ve,ze))return o[0]=!0,s[0]=Ve,a[0]=Xe,ze>0&&1447>0&&Dt<=1448?this.WALKTRACE(Ae,v,c,ke,Fe,N,_,ae,M,he,u,n,s,l,i,a,Qe,o):(t++,r++,[new ys(t,n-t+1,r,i-r+1)]);N=this.ClipDiagonalBound(Fe-Dt,Dt,Fe,te),_=this.ClipDiagonalBound(Fe+Dt,Dt,Fe,te);for(let me=N;me<=_;me+=2){me===N||me<_&&he[me-1]>=he[me+1]?u=he[me+1]-1:u=he[me-1],l=u-(me-Fe)-ae;const He=u;for(;u>t&&l>r&&this.ElementsAreEqual(u,l);)u--,l--;if(he[me]=u,Qe&&Math.abs(me-Ae)<=Dt&&u<=M[me])return s[0]=u,a[0]=l,He>=M[me]&&1447>0&&Dt<=1448?this.WALKTRACE(Ae,v,c,ke,Fe,N,_,ae,M,he,u,n,s,l,i,a,Qe,o):null}if(Dt<=1447){let me=new Int32Array(c-v+2);me[0]=Ae-v+1,ha.Copy2(M,v,me,1,c-v+1),this.m_forwardHistory.push(me),me=new Int32Array(_-N+2),me[0]=Fe-N+1,ha.Copy2(he,N,me,1,_-N+1),this.m_reverseHistory.push(me)}}return this.WALKTRACE(Ae,v,c,ke,Fe,N,_,ae,M,he,u,n,s,l,i,a,Qe,o)}PrettifyChanges(t){for(let n=0;n<t.length;n++){const r=t[n],i=n<t.length-1?t[n+1].originalStart:this._originalElementsOrHash.length,s=n<t.length-1?t[n+1].modifiedStart:this._modifiedElementsOrHash.length,a=r.originalLength>0,o=r.modifiedLength>0;for(;r.originalStart+r.originalLength<i&&r.modifiedStart+r.modifiedLength<s&&(!a||this.OriginalElementsAreEqual(r.originalStart,r.originalStart+r.originalLength))&&(!o||this.ModifiedElementsAreEqual(r.modifiedStart,r.modifiedStart+r.modifiedLength));){const l=this.ElementsAreStrictEqual(r.originalStart,r.modifiedStart);if(this.ElementsAreStrictEqual(r.originalStart+r.originalLength,r.modifiedStart+r.modifiedLength)&&!l)break;r.originalStart++,r.modifiedStart++}const u=[null];if(n<t.length-1&&this.ChangesOverlap(t[n],t[n+1],u)){t[n]=u[0],t.splice(n+1,1),n--;continue}}for(let n=t.length-1;n>=0;n--){const r=t[n];let i=0,s=0;if(n>0){const c=t[n-1];i=c.originalStart+c.originalLength,s=c.modifiedStart+c.modifiedLength}const a=r.originalLength>0,o=r.modifiedLength>0;let u=0,l=this._boundaryScore(r.originalStart,r.originalLength,r.modifiedStart,r.modifiedLength);for(let c=1;;c++){const N=r.originalStart-c,_=r.modifiedStart-c;if(N<i||_<s||a&&!this.OriginalElementsAreEqual(N,N+r.originalLength)||o&&!this.ModifiedElementsAreEqual(_,_+r.modifiedLength))break;const te=(N===i&&_===s?5:0)+this._boundaryScore(N,r.originalLength,_,r.modifiedLength);te>l&&(l=te,u=c)}r.originalStart-=u,r.modifiedStart-=u;const v=[null];if(n>0&&this.ChangesOverlap(t[n-1],t[n],v)){t[n-1]=v[0],t.splice(n,1),n++;continue}}if(this._hasStrings)for(let n=1,r=t.length;n<r;n++){const i=t[n-1],s=t[n],a=s.originalStart-i.originalStart-i.originalLength,o=i.originalStart,u=s.originalStart+s.originalLength,l=u-o,v=i.modifiedStart,c=s.modifiedStart+s.modifiedLength,N=c-v;if(a<5&&l<20&&N<20){const _=this._findBetterContiguousSequence(o,l,v,N,a);if(_){const[Z,te]=_;(Z!==i.originalStart+i.originalLength||te!==i.modifiedStart+i.modifiedLength)&&(i.originalLength=Z-i.originalStart,i.modifiedLength=te-i.modifiedStart,s.originalStart=Z+a,s.modifiedStart=te+a,s.originalLength=u-s.originalStart,s.modifiedLength=c-s.modifiedStart)}}}return t}_findBetterContiguousSequence(t,n,r,i,s){if(n<s||i<s)return null;const a=t+n-s+1,o=r+i-s+1;let u=0,l=0,v=0;for(let c=t;c<a;c++)for(let N=r;N<o;N++){const _=this._contiguousSequenceScore(c,N,s);_>0&&_>u&&(u=_,l=c,v=N)}return u>0?[l,v]:null}_contiguousSequenceScore(t,n,r){let i=0;for(let s=0;s<r;s++){if(!this.ElementsAreEqual(t+s,n+s))return 0;i+=this._originalStringElements[t+s].length}return i}_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 r=t+n;if(this._OriginalIsBoundary(r-1)||this._OriginalIsBoundary(r))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 r=t+n;if(this._ModifiedIsBoundary(r-1)||this._ModifiedIsBoundary(r))return!0}return!1}_boundaryScore(t,n,r,i){const s=this._OriginalRegionIsBoundary(t,n)?1:0,a=this._ModifiedRegionIsBoundary(r,i)?1:0;return s+a}ConcatenateChanges(t,n){const r=[];if(t.length===0||n.length===0)return n.length>0?n:t;if(this.ChangesOverlap(t[t.length-1],n[0],r)){const i=new Array(t.length+n.length-1);return ha.Copy(t,0,i,0,t.length-1),i[t.length-1]=r[0],ha.Copy(n,1,i,t.length,n.length-1),i}else{const i=new Array(t.length+n.length);return ha.Copy(t,0,i,0,t.length),ha.Copy(n,0,i,t.length,n.length),i}}ChangesOverlap(t,n,r){if(da.Assert(t.originalStart<=n.originalStart,"Left change is not less than or equal to right change"),da.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 i=t.originalStart;let s=t.originalLength;const a=t.modifiedStart;let o=t.modifiedLength;return t.originalStart+t.originalLength>=n.originalStart&&(s=n.originalStart+n.originalLength-t.originalStart),t.modifiedStart+t.modifiedLength>=n.modifiedStart&&(o=n.modifiedStart+n.modifiedLength-t.modifiedStart),r[0]=new ys(i,s,a,o),!0}else return r[0]=null,!1}ClipDiagonalBound(t,n,r,i){if(t>=0&&t<i)return t;const s=r,a=i-r-1,o=n%2===0;if(t<0){const u=s%2===0;return o===u?0:1}else{const u=a%2===0;return o===u?i-1:i-2}}}let ma;const jl=globalThis.vscode;if(typeof jl<"u"&&typeof jl.process<"u"){const e=jl.process;ma={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd(){return e.cwd()}}}else typeof process<"u"?ma={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:ma={get platform(){return lo?"win32":Ig?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const Qo=ma.cwd,s1=ma.env,a1=ma.platform,o1=65,u1=97,l1=90,c1=122,bs=46,Yr=47,li=92,vs=58,f1=63;class _p extends Error{constructor(t,n,r){let i;typeof n=="string"&&n.indexOf("not ")===0?(i="must not be",n=n.replace(/^not /,"")):i="must be";const s=t.indexOf(".")!==-1?"property":"argument";let a=`The "${t}" ${s} ${i} of type ${n}`;a+=`. Received type ${typeof r}`,super(a),this.code="ERR_INVALID_ARG_TYPE"}}function p1(e,t){if(e===null||typeof e!="object")throw new _p(t,"Object",e)}function _r(e,t){if(typeof e!="string")throw new _p(t,"string",e)}const Es=a1==="win32";function Qn(e){return e===Yr||e===li}function Rl(e){return e===Yr}function As(e){return e>=o1&&e<=l1||e>=u1&&e<=c1}function Xo(e,t,n,r){let i="",s=0,a=-1,o=0,u=0;for(let l=0;l<=e.length;++l){if(l<e.length)u=e.charCodeAt(l);else{if(r(u))break;u=Yr}if(r(u)){if(!(a===l-1||o===1))if(o===2){if(i.length<2||s!==2||i.charCodeAt(i.length-1)!==bs||i.charCodeAt(i.length-2)!==bs){if(i.length>2){const v=i.lastIndexOf(n);v===-1?(i="",s=0):(i=i.slice(0,v),s=i.length-1-i.lastIndexOf(n)),a=l,o=0;continue}else if(i.length!==0){i="",s=0,a=l,o=0;continue}}t&&(i+=i.length>0?`${n}..`:"..",s=2)}else i.length>0?i+=`${n}${e.slice(a+1,l)}`:i=e.slice(a+1,l),s=l-a-1;a=l,o=0}else u===bs&&o!==-1?++o:o=-1}return i}function Lp(e,t){p1(t,"pathObject");const n=t.dir||t.root,r=t.base||`${t.name||""}${t.ext||""}`;return n?n===t.root?`${n}${r}`:`${n}${e}${r}`:r}const ri={resolve(...e){let t="",n="",r=!1;for(let i=e.length-1;i>=-1;i--){let s;if(i>=0){if(s=e[i],_r(s,"path"),s.length===0)continue}else t.length===0?s=Qo():(s=s1[`=${t}`]||Qo(),(s===void 0||s.slice(0,2).toLowerCase()!==t.toLowerCase()&&s.charCodeAt(2)===li)&&(s=`${t}\\`));const a=s.length;let o=0,u="",l=!1;const v=s.charCodeAt(0);if(a===1)Qn(v)&&(o=1,l=!0);else if(Qn(v))if(l=!0,Qn(s.charCodeAt(1))){let c=2,N=c;for(;c<a&&!Qn(s.charCodeAt(c));)c++;if(c<a&&c!==N){const _=s.slice(N,c);for(N=c;c<a&&Qn(s.charCodeAt(c));)c++;if(c<a&&c!==N){for(N=c;c<a&&!Qn(s.charCodeAt(c));)c++;(c===a||c!==N)&&(u=`\\\\${_}\\${s.slice(N,c)}`,o=c)}}}else o=1;else As(v)&&s.charCodeAt(1)===vs&&(u=s.slice(0,2),o=2,a>2&&Qn(s.charCodeAt(2))&&(l=!0,o=3));if(u.length>0)if(t.length>0){if(u.toLowerCase()!==t.toLowerCase())continue}else t=u;if(r){if(t.length>0)break}else if(n=`${s.slice(o)}\\${n}`,r=l,l&&t.length>0)break}return n=Xo(n,!r,"\\",Qn),r?`${t}\\${n}`:`${t}${n}`||"."},normalize(e){_r(e,"path");const t=e.length;if(t===0)return".";let n=0,r,i=!1;const s=e.charCodeAt(0);if(t===1)return Rl(s)?"\\":e;if(Qn(s))if(i=!0,Qn(e.charCodeAt(1))){let o=2,u=o;for(;o<t&&!Qn(e.charCodeAt(o));)o++;if(o<t&&o!==u){const l=e.slice(u,o);for(u=o;o<t&&Qn(e.charCodeAt(o));)o++;if(o<t&&o!==u){for(u=o;o<t&&!Qn(e.charCodeAt(o));)o++;if(o===t)return`\\\\${l}\\${e.slice(u)}\\`;o!==u&&(r=`\\\\${l}\\${e.slice(u,o)}`,n=o)}}}else n=1;else As(s)&&e.charCodeAt(1)===vs&&(r=e.slice(0,2),n=2,t>2&&Qn(e.charCodeAt(2))&&(i=!0,n=3));let a=n<t?Xo(e.slice(n),!i,"\\",Qn):"";return a.length===0&&!i&&(a="."),a.length>0&&Qn(e.charCodeAt(t-1))&&(a+="\\"),r===void 0?i?`\\${a}`:a:i?`${r}\\${a}`:`${r}${a}`},isAbsolute(e){_r(e,"path");const t=e.length;if(t===0)return!1;const n=e.charCodeAt(0);return Qn(n)||t>2&&As(n)&&e.charCodeAt(1)===vs&&Qn(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];_r(a,"path"),a.length>0&&(t===void 0?t=n=a:t+=`\\${a}`)}if(t===void 0)return".";let r=!0,i=0;if(typeof n=="string"&&Qn(n.charCodeAt(0))){++i;const s=n.length;s>1&&Qn(n.charCodeAt(1))&&(++i,s>2&&(Qn(n.charCodeAt(2))?++i:r=!1))}if(r){for(;i<t.length&&Qn(t.charCodeAt(i));)i++;i>=2&&(t=`\\${t.slice(i)}`)}return ri.normalize(t)},relative(e,t){if(_r(e,"from"),_r(t,"to"),e===t)return"";const n=ri.resolve(e),r=ri.resolve(t);if(n===r||(e=n.toLowerCase(),t=r.toLowerCase(),e===t))return"";let i=0;for(;i<e.length&&e.charCodeAt(i)===li;)i++;let s=e.length;for(;s-1>i&&e.charCodeAt(s-1)===li;)s--;const a=s-i;let o=0;for(;o<t.length&&t.charCodeAt(o)===li;)o++;let u=t.length;for(;u-1>o&&t.charCodeAt(u-1)===li;)u--;const l=u-o,v=a<l?a:l;let c=-1,N=0;for(;N<v;N++){const Z=e.charCodeAt(i+N);if(Z!==t.charCodeAt(o+N))break;Z===li&&(c=N)}if(N!==v){if(c===-1)return r}else{if(l>v){if(t.charCodeAt(o+N)===li)return r.slice(o+N+1);if(N===2)return r.slice(o+N)}a>v&&(e.charCodeAt(i+N)===li?c=N:N===2&&(c=3)),c===-1&&(c=0)}let _="";for(N=i+c+1;N<=s;++N)(N===s||e.charCodeAt(N)===li)&&(_+=_.length===0?"..":"\\..");return o+=c,_.length>0?`${_}${r.slice(o,u)}`:(r.charCodeAt(o)===li&&++o,r.slice(o,u))},toNamespacedPath(e){if(typeof e!="string"||e.length===0)return e;const t=ri.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===li){if(t.charCodeAt(1)===li){const n=t.charCodeAt(2);if(n!==f1&&n!==bs)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(As(t.charCodeAt(0))&&t.charCodeAt(1)===vs&&t.charCodeAt(2)===li)return`\\\\?\\${t}`;return e},dirname(e){_r(e,"path");const t=e.length;if(t===0)return".";let n=-1,r=0;const i=e.charCodeAt(0);if(t===1)return Qn(i)?e:".";if(Qn(i)){if(n=r=1,Qn(e.charCodeAt(1))){let o=2,u=o;for(;o<t&&!Qn(e.charCodeAt(o));)o++;if(o<t&&o!==u){for(u=o;o<t&&Qn(e.charCodeAt(o));)o++;if(o<t&&o!==u){for(u=o;o<t&&!Qn(e.charCodeAt(o));)o++;if(o===t)return e;o!==u&&(n=r=o+1)}}}}else As(i)&&e.charCodeAt(1)===vs&&(n=t>2&&Qn(e.charCodeAt(2))?3:2,r=n);let s=-1,a=!0;for(let o=t-1;o>=r;--o)if(Qn(e.charCodeAt(o))){if(!a){s=o;break}}else a=!1;if(s===-1){if(n===-1)return".";s=n}return e.slice(0,s)},basename(e,t){t!==void 0&&_r(t,"ext"),_r(e,"path");let n=0,r=-1,i=!0,s;if(e.length>=2&&As(e.charCodeAt(0))&&e.charCodeAt(1)===vs&&(n=2),t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let a=t.length-1,o=-1;for(s=e.length-1;s>=n;--s){const u=e.charCodeAt(s);if(Qn(u)){if(!i){n=s+1;break}}else o===-1&&(i=!1,o=s+1),a>=0&&(u===t.charCodeAt(a)?--a===-1&&(r=s):(a=-1,r=o))}return n===r?r=o:r===-1&&(r=e.length),e.slice(n,r)}for(s=e.length-1;s>=n;--s)if(Qn(e.charCodeAt(s))){if(!i){n=s+1;break}}else r===-1&&(i=!1,r=s+1);return r===-1?"":e.slice(n,r)},extname(e){_r(e,"path");let t=0,n=-1,r=0,i=-1,s=!0,a=0;e.length>=2&&e.charCodeAt(1)===vs&&As(e.charCodeAt(0))&&(t=r=2);for(let o=e.length-1;o>=t;--o){const u=e.charCodeAt(o);if(Qn(u)){if(!s){r=o+1;break}continue}i===-1&&(s=!1,i=o+1),u===bs?n===-1?n=o:a!==1&&(a=1):n!==-1&&(a=-1)}return n===-1||i===-1||a===0||a===1&&n===i-1&&n===r+1?"":e.slice(n,i)},format:Lp.bind(null,"\\"),parse(e){_r(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;const n=e.length;let r=0,i=e.charCodeAt(0);if(n===1)return Qn(i)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(Qn(i)){if(r=1,Qn(e.charCodeAt(1))){let c=2,N=c;for(;c<n&&!Qn(e.charCodeAt(c));)c++;if(c<n&&c!==N){for(N=c;c<n&&Qn(e.charCodeAt(c));)c++;if(c<n&&c!==N){for(N=c;c<n&&!Qn(e.charCodeAt(c));)c++;c===n?r=c:c!==N&&(r=c+1)}}}}else if(As(i)&&e.charCodeAt(1)===vs){if(n<=2)return t.root=t.dir=e,t;if(r=2,Qn(e.charCodeAt(2))){if(n===3)return t.root=t.dir=e,t;r=3}}r>0&&(t.root=e.slice(0,r));let s=-1,a=r,o=-1,u=!0,l=e.length-1,v=0;for(;l>=r;--l){if(i=e.charCodeAt(l),Qn(i)){if(!u){a=l+1;break}continue}o===-1&&(u=!1,o=l+1),i===bs?s===-1?s=l:v!==1&&(v=1):s!==-1&&(v=-1)}return o!==-1&&(s===-1||v===0||v===1&&s===o-1&&s===a+1?t.base=t.name=e.slice(a,o):(t.name=e.slice(a,s),t.base=e.slice(a,o),t.ext=e.slice(s,o))),a>0&&a!==r?t.dir=e.slice(0,a-1):t.dir=t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},d1=(()=>{if(Es){const e=/\\/g;return()=>{const t=Qo().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>Qo()})(),ci={resolve(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){const i=r>=0?e[r]:d1();_r(i,"path"),i.length!==0&&(t=`${i}/${t}`,n=i.charCodeAt(0)===Yr)}return t=Xo(t,!n,"/",Rl),n?`/${t}`:t.length>0?t:"."},normalize(e){if(_r(e,"path"),e.length===0)return".";const t=e.charCodeAt(0)===Yr,n=e.charCodeAt(e.length-1)===Yr;return e=Xo(e,!t,"/",Rl),e.length===0?t?"/":n?"./":".":(n&&(e+="/"),t?`/${e}`:e)},isAbsolute(e){return _r(e,"path"),e.length>0&&e.charCodeAt(0)===Yr},join(...e){if(e.length===0)return".";let t;for(let n=0;n<e.length;++n){const r=e[n];_r(r,"path"),r.length>0&&(t===void 0?t=r:t+=`/${r}`)}return t===void 0?".":ci.normalize(t)},relative(e,t){if(_r(e,"from"),_r(t,"to"),e===t||(e=ci.resolve(e),t=ci.resolve(t),e===t))return"";const n=1,r=e.length,i=r-n,s=1,a=t.length-s,o=i<a?i:a;let u=-1,l=0;for(;l<o;l++){const c=e.charCodeAt(n+l);if(c!==t.charCodeAt(s+l))break;c===Yr&&(u=l)}if(l===o)if(a>o){if(t.charCodeAt(s+l)===Yr)return t.slice(s+l+1);if(l===0)return t.slice(s+l)}else i>o&&(e.charCodeAt(n+l)===Yr?u=l:l===0&&(u=0));let v="";for(l=n+u+1;l<=r;++l)(l===r||e.charCodeAt(l)===Yr)&&(v+=v.length===0?"..":"/..");return`${v}${t.slice(s+u)}`},toNamespacedPath(e){return e},dirname(e){if(_r(e,"path"),e.length===0)return".";const t=e.charCodeAt(0)===Yr;let n=-1,r=!0;for(let i=e.length-1;i>=1;--i)if(e.charCodeAt(i)===Yr){if(!r){n=i;break}}else r=!1;return n===-1?t?"/":".":t&&n===1?"//":e.slice(0,n)},basename(e,t){t!==void 0&&_r(t,"ext"),_r(e,"path");let n=0,r=-1,i=!0,s;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let a=t.length-1,o=-1;for(s=e.length-1;s>=0;--s){const u=e.charCodeAt(s);if(u===Yr){if(!i){n=s+1;break}}else o===-1&&(i=!1,o=s+1),a>=0&&(u===t.charCodeAt(a)?--a===-1&&(r=s):(a=-1,r=o))}return n===r?r=o:r===-1&&(r=e.length),e.slice(n,r)}for(s=e.length-1;s>=0;--s)if(e.charCodeAt(s)===Yr){if(!i){n=s+1;break}}else r===-1&&(i=!1,r=s+1);return r===-1?"":e.slice(n,r)},extname(e){_r(e,"path");let t=-1,n=0,r=-1,i=!0,s=0;for(let a=e.length-1;a>=0;--a){const o=e.charCodeAt(a);if(o===Yr){if(!i){n=a+1;break}continue}r===-1&&(i=!1,r=a+1),o===bs?t===-1?t=a:s!==1&&(s=1):t!==-1&&(s=-1)}return t===-1||r===-1||s===0||s===1&&t===r-1&&t===n+1?"":e.slice(t,r)},format:Lp.bind(null,"/"),parse(e){_r(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;const n=e.charCodeAt(0)===Yr;let r;n?(t.root="/",r=1):r=0;let i=-1,s=0,a=-1,o=!0,u=e.length-1,l=0;for(;u>=r;--u){const v=e.charCodeAt(u);if(v===Yr){if(!o){s=u+1;break}continue}a===-1&&(o=!1,a=u+1),v===bs?i===-1?i=u:l!==1&&(l=1):i!==-1&&(l=-1)}if(a!==-1){const v=s===0&&n?1:s;i===-1||l===0||l===1&&i===a-1&&i===s+1?t.base=t.name=e.slice(v,a):(t.name=e.slice(v,i),t.base=e.slice(v,a),t.ext=e.slice(i,a))}return s>0?t.dir=e.slice(0,s-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};ci.win32=ri.win32=ri,ci.posix=ri.posix=ci,Es?ri.normalize:ci.normalize,Es?ri.resolve:ci.resolve,Es?ri.relative:ci.relative,Es?ri.dirname:ci.dirname,Es?ri.basename:ci.basename,Es?ri.extname:ci.extname,Es?ri.sep:ci.sep;const h1=/^\w[\w\d+.-]*$/,m1=/^\//,g1=/^\/\//;function y1(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&&!h1.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path){if(e.authority){if(!m1.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(g1.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 D1(e,t){return!e&&!t?"file":e}function b1(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==Ii&&(t=Ii+t):t=Ii;break}return t}const Er="",Ii="/",v1=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;let $l=class wl{static isUri(t){return t instanceof wl?!0:t?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":!1}constructor(t,n,r,i,s,a=!1){typeof t=="object"?(this.scheme=t.scheme||Er,this.authority=t.authority||Er,this.path=t.path||Er,this.query=t.query||Er,this.fragment=t.fragment||Er):(this.scheme=D1(t,a),this.authority=n||Er,this.path=b1(this.scheme,r||Er),this.query=i||Er,this.fragment=s||Er,y1(this,a))}get fsPath(){return Vl(this,!1)}with(t){if(!t)return this;let{scheme:n,authority:r,path:i,query:s,fragment:a}=t;return n===void 0?n=this.scheme:n===null&&(n=Er),r===void 0?r=this.authority:r===null&&(r=Er),i===void 0?i=this.path:i===null&&(i=Er),s===void 0?s=this.query:s===null&&(s=Er),a===void 0?a=this.fragment:a===null&&(a=Er),n===this.scheme&&r===this.authority&&i===this.path&&s===this.query&&a===this.fragment?this:new ga(n,r,i,s,a)}static parse(t,n=!1){const r=v1.exec(t);return r?new ga(r[2]||Er,Ko(r[4]||Er),Ko(r[5]||Er),Ko(r[7]||Er),Ko(r[9]||Er),n):new ga(Er,Er,Er,Er,Er)}static file(t){let n=Er;if(lo&&(t=t.replace(/\\/g,Ii)),t[0]===Ii&&t[1]===Ii){const r=t.indexOf(Ii,2);r===-1?(n=t.substring(2),t=Ii):(n=t.substring(2,r),t=t.substring(r)||Ii)}return new ga("file",n,t,Er,Er)}static from(t,n){return new ga(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 r;return lo&&t.scheme==="file"?r=wl.file(ri.join(Vl(t,!0),...n)).path:r=ci.join(t.path,...n),t.with({path:r})}toString(t=!1){return ql(this,t)}toJSON(){return this}static revive(t){var n,r;if(t){if(t instanceof wl)return t;{const i=new ga(t);return i._formatted=(n=t.external)!==null&&n!==void 0?n:null,i._fsPath=t._sep===kp&&(r=t.fsPath)!==null&&r!==void 0?r:null,i}}else return t}};const kp=lo?1:void 0;class ga extends $l{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=Vl(this,!1)),this._fsPath}toString(t=!1){return t?ql(this,!0):(this._formatted||(this._formatted=ql(this,!1)),this._formatted)}toJSON(){const t={$mid:1};return this._fsPath&&(t.fsPath=this._fsPath,t._sep=kp),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 Pp={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 Bp(e,t,n){let r,i=-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)i!==-1&&(r+=encodeURIComponent(e.substring(i,s)),i=-1),r!==void 0&&(r+=e.charAt(s));else{r===void 0&&(r=e.substr(0,s));const o=Pp[a];o!==void 0?(i!==-1&&(r+=encodeURIComponent(e.substring(i,s)),i=-1),r+=o):i===-1&&(i=s)}}return i!==-1&&(r+=encodeURIComponent(e.substring(i))),r!==void 0?r:e}function E1(e){let t;for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);r===35||r===63?(t===void 0&&(t=e.substr(0,n)),t+=Pp[r]):t!==void 0&&(t+=e[n])}return t!==void 0?t:e}function Vl(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,lo&&(n=n.replace(/\//g,"\\")),n}function ql(e,t){const n=t?E1:Bp;let r="",{scheme:i,authority:s,path:a,query:o,fragment:u}=e;if(i&&(r+=i,r+=":"),(s||i==="file")&&(r+=Ii,r+=Ii),s){let l=s.indexOf("@");if(l!==-1){const v=s.substr(0,l);s=s.substr(l+1),l=v.lastIndexOf(":"),l===-1?r+=n(v,!1,!1):(r+=n(v.substr(0,l),!1,!1),r+=":",r+=n(v.substr(l+1),!1,!0)),r+="@"}s=s.toLowerCase(),l=s.lastIndexOf(":"),l===-1?r+=n(s,!1,!0):(r+=n(s.substr(0,l),!1,!0),r+=s.substr(l))}if(a){if(a.length>=3&&a.charCodeAt(0)===47&&a.charCodeAt(2)===58){const l=a.charCodeAt(1);l>=65&&l<=90&&(a=`/${String.fromCharCode(l+32)}:${a.substr(3)}`)}else if(a.length>=2&&a.charCodeAt(1)===58){const l=a.charCodeAt(0);l>=65&&l<=90&&(a=`${String.fromCharCode(l+32)}:${a.substr(2)}`)}r+=n(a,!0,!1)}return o&&(r+="?",r+=n(o,!1,!1)),u&&(r+="#",r+=t?u:Bp(u,!1,!1)),r}function Mp(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+Mp(e.substr(3)):e}}const Ip=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function Ko(e){return e.match(Ip)?e.replace(Ip,t=>Mp(t)):e}let Ji=class ua{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 ua(t,n)}delta(t=0,n=0){return this.with(this.lineNumber+t,this.column+n)}equals(t){return ua.equals(this,t)}static equals(t,n){return!t&&!n?!0:!!t&&!!n&&t.lineNumber===n.lineNumber&&t.column===n.column}isBefore(t){return ua.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 ua.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 r=t.lineNumber|0,i=n.lineNumber|0;if(r===i){const s=t.column|0,a=n.column|0;return s-a}return r-i}clone(){return new ua(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(t){return new ua(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}}},Ur=class jr{constructor(t,n,r,i){t>r||t===r&&n>i?(this.startLineNumber=r,this.startColumn=i,this.endLineNumber=t,this.endColumn=n):(this.startLineNumber=t,this.startColumn=n,this.endLineNumber=r,this.endColumn=i)}isEmpty(){return jr.isEmpty(this)}static isEmpty(t){return t.startLineNumber===t.endLineNumber&&t.startColumn===t.endColumn}containsPosition(t){return jr.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 jr.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 jr.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 jr.plusRange(this,t)}static plusRange(t,n){let r,i,s,a;return n.startLineNumber<t.startLineNumber?(r=n.startLineNumber,i=n.startColumn):n.startLineNumber===t.startLineNumber?(r=n.startLineNumber,i=Math.min(n.startColumn,t.startColumn)):(r=t.startLineNumber,i=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 jr(r,i,s,a)}intersectRanges(t){return jr.intersectRanges(this,t)}static intersectRanges(t,n){let r=t.startLineNumber,i=t.startColumn,s=t.endLineNumber,a=t.endColumn;const o=n.startLineNumber,u=n.startColumn,l=n.endLineNumber,v=n.endColumn;return r<o?(r=o,i=u):r===o&&(i=Math.max(i,u)),s>l?(s=l,a=v):s===l&&(a=Math.min(a,v)),r>s||r===s&&i>a?null:new jr(r,i,s,a)}equalsRange(t){return jr.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 jr.getEndPosition(this)}static getEndPosition(t){return new Ji(t.endLineNumber,t.endColumn)}getStartPosition(){return jr.getStartPosition(this)}static getStartPosition(t){return new Ji(t.startLineNumber,t.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(t,n){return new jr(this.startLineNumber,this.startColumn,t,n)}setStartPosition(t,n){return new jr(t,n,this.endLineNumber,this.endColumn)}collapseToStart(){return jr.collapseToStart(this)}static collapseToStart(t){return new jr(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn)}collapseToEnd(){return jr.collapseToEnd(this)}static collapseToEnd(t){return new jr(t.endLineNumber,t.endColumn,t.endLineNumber,t.endColumn)}delta(t){return new jr(this.startLineNumber+t,this.startColumn,this.endLineNumber+t,this.endColumn)}static fromPositions(t,n=t){return new jr(t.lineNumber,t.column,n.lineNumber,n.column)}static lift(t){return t?new jr(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 compareRangesUsingStarts(t,n){if(t&&n){const s=t.startLineNumber|0,a=n.startLineNumber|0;if(s===a){const o=t.startColumn|0,u=n.startColumn|0;if(o===u){const l=t.endLineNumber|0,v=n.endLineNumber|0;if(l===v){const c=t.endColumn|0,N=n.endColumn|0;return c-N}return l-v}return o-u}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 A1(e,t,n=(r,i)=>r===i){if(e===t)return!0;if(!e||!t||e.length!==t.length)return!1;for(let r=0,i=e.length;r<i;r++)if(!n(e[r],t[r]))return!1;return!0}function*C1(e,t){let n,r;for(const i of e)r!==void 0&&t(r,i)?n.push(i):(n&&(yield n),n=[i]),r=i;n&&(yield n)}function x1(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 S1(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 w1(e,t){for(const n of t)e.push(n)}var Op;(function(e){function t(s){return s<0}e.isLessThan=t;function n(s){return s<=0}e.isLessThanOrEqual=n;function r(s){return s>0}e.isGreaterThan=r;function i(s){return s===0}e.isNeitherLessOrGreaterThan=i,e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0})(Op||(Op={}));function Zo(e,t){return(n,r)=>t(e(n),e(r))}const eu=(e,t)=>e-t;function F1(e){return(t,n)=>-e(t,n)}function jp(e){return e<0?0:e>255?255:e|0}function ya(e){return e<0?0:e>4294967295?4294967295:e|0}class N1{constructor(t){this.values=t,this.prefixSum=new Uint32Array(t.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(t,n){t=ya(t);const r=this.values,i=this.prefixSum,s=n.length;return s===0?!1:(this.values=new Uint32Array(r.length+s),this.values.set(r.subarray(0,t),0),this.values.set(r.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(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(t,n){return t=ya(t),n=ya(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=ya(t),n=ya(n);const r=this.values,i=this.prefixSum;if(t>=r.length)return!1;const s=r.length-t;return n>=s&&(n=s),n===0?!1:(this.values=new Uint32Array(r.length-n),this.values.set(r.subarray(0,t),0),this.values.set(r.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(i.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=ya(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 r=n;r<=t;r++)this.prefixSum[r]=this.prefixSum[r-1]+this.values[r];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],t),this.prefixSum[t]}getIndexOf(t){t=Math.floor(t),this.getTotalSum();let n=0,r=this.values.length-1,i=0,s=0,a=0;for(;n<=r;)if(i=n+(r-n)/2|0,s=this.prefixSum[i],a=s-this.values[i],t<a)r=i-1;else if(t>=s)n=i+1;else break;return new T1(i,t-a)}}class T1{constructor(t,n){this.index=t,this.remainder=n,this._prefixSumIndexOfResultBrand=void 0,this.index=t,this.remainder=n}}class _1{constructor(t,n,r,i){this._uri=t,this._lines=n,this._eol=r,this._versionId=i,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 r of n)this._acceptDeleteRange(r.range),this._acceptInsertText(new Ji(r.range.startLineNumber,r.range.startColumn),r.text);this._versionId=t.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const t=this._eol.length,n=this._lines.length,r=new Uint32Array(n);for(let i=0;i<n;i++)r[i]=this._lines[i].length+t;this._lineStarts=new N1(r)}}_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 r=Vg(n);if(r.length===1){this._setLineText(t.lineNumber-1,this._lines[t.lineNumber-1].substring(0,t.column-1)+r[0]+this._lines[t.lineNumber-1].substring(t.column-1));return}r[r.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)+r[0]);const i=new Uint32Array(r.length-1);for(let s=1;s<r.length;s++)this._lines.splice(t.lineNumber+s-1,0,r[s]),i[s-1]=r[s].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(t.lineNumber,i)}}const L1="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function k1(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(const n of L1)e.indexOf(n)>=0||(t+="\\"+n);return t+="\\s]+)",new RegExp(t,"g")}const Rp=k1();function $p(e){let t=Rp;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 Vp=new Cg;Vp.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function Ul(e,t,n,r,i){if(t=$p(t),i||(i=Yo.first(Vp)),n.length>i.maxLen){let l=e-i.maxLen/2;return l<0?l=0:r+=l,n=n.substring(l,e+i.maxLen/2),Ul(e,t,n,r,i)}const s=Date.now(),a=e-1-r;let o=-1,u=null;for(let l=1;!(Date.now()-s>=i.timeBudget);l++){const v=a-i.windowSize*l;t.lastIndex=Math.max(0,v);const c=P1(t,n,a,o);if(!c&&u||(u=c,v<=0))break;o=v}if(u){const l={word:u[0],startColumn:r+1+u.index,endColumn:r+1+u.index+u[0].length};return t.lastIndex=0,l}return null}function P1(e,t,n,r){let i;for(;i=e.exec(t);){const s=i.index||0;if(s<=n&&e.lastIndex>=n)return i;if(r>0&&s>r)return null}return null}class Wl{constructor(t){const n=jp(t);this._defaultValue=n,this._asciiMap=Wl._createAsciiMap(n),this._map=new Map}static _createAsciiMap(t){const n=new Uint8Array(256);return n.fill(t),n}set(t,n){const r=jp(n);t>=0&&t<256?this._asciiMap[t]=r:this._map.set(t,r)}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 B1{constructor(t,n,r){const i=new Uint8Array(t*n);for(let s=0,a=t*n;s<a;s++)i[s]=r;this._data=i,this.rows=t,this.cols=n}get(t,n){return this._data[t*this.cols+n]}set(t,n,r){this._data[t*this.cols+n]=r}}class M1{constructor(t){let n=0,r=0;for(let s=0,a=t.length;s<a;s++){const[o,u,l]=t[s];u>n&&(n=u),o>r&&(r=o),l>r&&(r=l)}n++,r++;const i=new B1(r,n,0);for(let s=0,a=t.length;s<a;s++){const[o,u,l]=t[s];i.set(o,u,l)}this._states=i,this._maxCharCode=n}nextState(t,n){return n<0||n>=this._maxCharCode?0:this._states.get(t,n)}}let Gl=null;function I1(){return Gl===null&&(Gl=new M1([[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]])),Gl}let co=null;function O1(){if(co===null){co=new Wl(0);const e=` <>'"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…`;for(let n=0;n<e.length;n++)co.set(e.charCodeAt(n),1);const t=".,;:";for(let n=0;n<t.length;n++)co.set(t.charCodeAt(n),2)}return co}class tu{static _createLink(t,n,r,i,s){let a=s-1;do{const o=n.charCodeAt(a);if(t.get(o)!==2)break;a--}while(a>i);if(i>0){const o=n.charCodeAt(i-1),u=n.charCodeAt(a);(o===40&&u===41||o===91&&u===93||o===123&&u===125)&&a--}return{range:{startLineNumber:r,startColumn:i+1,endLineNumber:r,endColumn:a+2},url:n.substring(i,a+1)}}static computeLinks(t,n=I1()){const r=O1(),i=[];for(let s=1,a=t.getLineCount();s<=a;s++){const o=t.getLineContent(s),u=o.length;let l=0,v=0,c=0,N=1,_=!1,Z=!1,te=!1,M=!1;for(;l<u;){let he=!1;const Ae=o.charCodeAt(l);if(N===13){let Fe;switch(Ae){case 40:_=!0,Fe=0;break;case 41:Fe=_?0:1;break;case 91:te=!0,Z=!0,Fe=0;break;case 93:te=!1,Fe=Z?0:1;break;case 123:M=!0,Fe=0;break;case 125:Fe=M?0:1;break;case 39:case 34:case 96:c===Ae?Fe=1:c===39||c===34||c===96?Fe=0:Fe=1;break;case 42:Fe=c===42?1:0;break;case 124:Fe=c===124?1:0;break;case 32:Fe=te?0:1;break;default:Fe=r.get(Ae)}Fe===1&&(i.push(tu._createLink(r,o,s,v,l)),he=!0)}else if(N===12){let Fe;Ae===91?(Z=!0,Fe=0):Fe=r.get(Ae),Fe===1?he=!0:N=13}else N=n.nextState(N,Ae),N===0&&(he=!0);he&&(N=1,_=!1,Z=!1,M=!1,v=l+1,c=Ae),l++}N===13&&i.push(tu._createLink(r,o,s,v,u))}return i}}function j1(e){return!e||typeof e.getLineCount!="function"||typeof e.getLineContent!="function"?[]:tu.computeLinks(e)}class Jl{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(t,n,r,i,s){if(t&&n){const a=this.doNavigateValueSet(n,s);if(a)return{range:t,value:a}}if(r&&i){const a=this.doNavigateValueSet(i,s);if(a)return{range:r,value:a}}return null}doNavigateValueSet(t,n){const r=this.numberReplace(t,n);return r!==null?r:this.textReplace(t,n)}numberReplace(t,n){const r=Math.pow(10,t.length-(t.lastIndexOf(".")+1));let i=Number(t);const s=parseFloat(t);return!isNaN(i)&&!isNaN(s)&&i===s?i===0&&!n?null:(i=Math.floor(i*r),i+=n?r:-r,String(i/r)):null}textReplace(t,n){return this.valueSetsReplace(this._defaultValueSet,t,n)}valueSetsReplace(t,n,r){let i=null;for(let s=0,a=t.length;i===null&&s<a;s++)i=this.valueSetReplace(t[s],n,r);return i}valueSetReplace(t,n,r){let i=t.indexOf(n);return i>=0?(i+=r?1:-1,i<0?i=t.length-1:i%=t.length,t[i]):null}}Jl.INSTANCE=new Jl;const qp=Object.freeze(function(e,t){const n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}});var nu;(function(e){function t(n){return n===e.None||n===e.Cancelled||n instanceof ru?!0:!n||typeof n!="object"?!1:typeof n.isCancellationRequested=="boolean"&&typeof n.onCancellationRequested=="function"}e.isCancellationToken=t,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Nl.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:qp})})(nu||(nu={}));class ru{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?qp:(this._emitter||(this._emitter=new Bi),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class R1{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 ru),this._token}cancel(){this._token?this._token instanceof ru&&this._token.cancel():this._token=nu.Cancelled}dispose(t=!1){var n;t&&this.cancel(),(n=this._parentListener)===null||n===void 0||n.dispose(),this._token?this._token instanceof ru&&this._token.dispose():this._token=nu.None}}class Yl{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 iu=new Yl,Hl=new Yl,zl=new Yl,$1=new Array(230),V1=Object.create(null),q1=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=[],r=[];for(const i of t){const[s,a,o,u,l,v,c,N,_]=i;if(r[a]||(r[a]=!0,V1[o]=a,q1[o.toLowerCase()]=a),!n[u]){if(n[u]=!0,!l)throw new Error(`String representation missing for key code ${u} around scan code ${o}`);iu.define(u,l),Hl.define(u,N||l),zl.define(u,_||N||l)}v&&($1[v]=u)}})();var Up;(function(e){function t(o){return iu.keyCodeToStr(o)}e.toString=t;function n(o){return iu.strToKeyCode(o)}e.fromString=n;function r(o){return Hl.keyCodeToStr(o)}e.toUserSettingsUS=r;function i(o){return zl.keyCodeToStr(o)}e.toUserSettingsGeneral=i;function s(o){return Hl.strToKeyCode(o)||zl.strToKeyCode(o)}e.fromUserSettings=s;function a(o){if(o>=98&&o<=113)return null;switch(o){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return iu.keyCodeToStr(o)}e.toElectronAccelerator=a})(Up||(Up={}));function U1(e,t){const n=(t&65535)<<16>>>0;return(e|n)>>>0}class gi extends Ur{constructor(t,n,r,i){super(t,n,r,i),this.selectionStartLineNumber=t,this.selectionStartColumn=n,this.positionLineNumber=r,this.positionColumn=i}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(t){return gi.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 gi(this.startLineNumber,this.startColumn,t,n):new gi(t,n,this.startLineNumber,this.startColumn)}getPosition(){return new Ji(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new Ji(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(t,n){return this.getDirection()===0?new gi(t,n,this.endLineNumber,this.endColumn):new gi(this.endLineNumber,this.endColumn,t,n)}static fromPositions(t,n=t){return new gi(t.lineNumber,t.column,n.lineNumber,n.column)}static fromRange(t,n){return n===0?new gi(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):new gi(t.endLineNumber,t.endColumn,t.startLineNumber,t.startColumn)}static liftSelection(t){return new gi(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 r=0,i=t.length;r<i;r++)if(!this.selectionsEqual(t[r],n[r]))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,r,i,s){return s===0?new gi(t,n,r,i):new gi(r,i,t,n)}}const Wp=Object.create(null);function T(e,t){if(Tg(t)){const n=Wp[t];if(n===void 0)throw new Error(`${e} references an unknown codicon: ${t}`);t=n}return Wp[e]=t,{id:e}}const Nn={add:T("add",6e4),plus:T("plus",6e4),gistNew:T("gist-new",6e4),repoCreate:T("repo-create",6e4),lightbulb:T("lightbulb",60001),lightBulb:T("light-bulb",60001),repo:T("repo",60002),repoDelete:T("repo-delete",60002),gistFork:T("gist-fork",60003),repoForked:T("repo-forked",60003),gitPullRequest:T("git-pull-request",60004),gitPullRequestAbandoned:T("git-pull-request-abandoned",60004),recordKeys:T("record-keys",60005),keyboard:T("keyboard",60005),tag:T("tag",60006),tagAdd:T("tag-add",60006),tagRemove:T("tag-remove",60006),gitPullRequestLabel:T("git-pull-request-label",60006),person:T("person",60007),personFollow:T("person-follow",60007),personOutline:T("person-outline",60007),personFilled:T("person-filled",60007),gitBranch:T("git-branch",60008),gitBranchCreate:T("git-branch-create",60008),gitBranchDelete:T("git-branch-delete",60008),sourceControl:T("source-control",60008),mirror:T("mirror",60009),mirrorPublic:T("mirror-public",60009),star:T("star",60010),starAdd:T("star-add",60010),starDelete:T("star-delete",60010),starEmpty:T("star-empty",60010),comment:T("comment",60011),commentAdd:T("comment-add",60011),alert:T("alert",60012),warning:T("warning",60012),search:T("search",60013),searchSave:T("search-save",60013),logOut:T("log-out",60014),signOut:T("sign-out",60014),logIn:T("log-in",60015),signIn:T("sign-in",60015),eye:T("eye",60016),eyeUnwatch:T("eye-unwatch",60016),eyeWatch:T("eye-watch",60016),circleFilled:T("circle-filled",60017),primitiveDot:T("primitive-dot",60017),closeDirty:T("close-dirty",60017),debugBreakpoint:T("debug-breakpoint",60017),debugBreakpointDisabled:T("debug-breakpoint-disabled",60017),debugHint:T("debug-hint",60017),primitiveSquare:T("primitive-square",60018),edit:T("edit",60019),pencil:T("pencil",60019),info:T("info",60020),issueOpened:T("issue-opened",60020),gistPrivate:T("gist-private",60021),gitForkPrivate:T("git-fork-private",60021),lock:T("lock",60021),mirrorPrivate:T("mirror-private",60021),close:T("close",60022),removeClose:T("remove-close",60022),x:T("x",60022),repoSync:T("repo-sync",60023),sync:T("sync",60023),clone:T("clone",60024),desktopDownload:T("desktop-download",60024),beaker:T("beaker",60025),microscope:T("microscope",60025),vm:T("vm",60026),deviceDesktop:T("device-desktop",60026),file:T("file",60027),fileText:T("file-text",60027),more:T("more",60028),ellipsis:T("ellipsis",60028),kebabHorizontal:T("kebab-horizontal",60028),mailReply:T("mail-reply",60029),reply:T("reply",60029),organization:T("organization",60030),organizationFilled:T("organization-filled",60030),organizationOutline:T("organization-outline",60030),newFile:T("new-file",60031),fileAdd:T("file-add",60031),newFolder:T("new-folder",60032),fileDirectoryCreate:T("file-directory-create",60032),trash:T("trash",60033),trashcan:T("trashcan",60033),history:T("history",60034),clock:T("clock",60034),folder:T("folder",60035),fileDirectory:T("file-directory",60035),symbolFolder:T("symbol-folder",60035),logoGithub:T("logo-github",60036),markGithub:T("mark-github",60036),github:T("github",60036),terminal:T("terminal",60037),console:T("console",60037),repl:T("repl",60037),zap:T("zap",60038),symbolEvent:T("symbol-event",60038),error:T("error",60039),stop:T("stop",60039),variable:T("variable",60040),symbolVariable:T("symbol-variable",60040),array:T("array",60042),symbolArray:T("symbol-array",60042),symbolModule:T("symbol-module",60043),symbolPackage:T("symbol-package",60043),symbolNamespace:T("symbol-namespace",60043),symbolObject:T("symbol-object",60043),symbolMethod:T("symbol-method",60044),symbolFunction:T("symbol-function",60044),symbolConstructor:T("symbol-constructor",60044),symbolBoolean:T("symbol-boolean",60047),symbolNull:T("symbol-null",60047),symbolNumeric:T("symbol-numeric",60048),symbolNumber:T("symbol-number",60048),symbolStructure:T("symbol-structure",60049),symbolStruct:T("symbol-struct",60049),symbolParameter:T("symbol-parameter",60050),symbolTypeParameter:T("symbol-type-parameter",60050),symbolKey:T("symbol-key",60051),symbolText:T("symbol-text",60051),symbolReference:T("symbol-reference",60052),goToFile:T("go-to-file",60052),symbolEnum:T("symbol-enum",60053),symbolValue:T("symbol-value",60053),symbolRuler:T("symbol-ruler",60054),symbolUnit:T("symbol-unit",60054),activateBreakpoints:T("activate-breakpoints",60055),archive:T("archive",60056),arrowBoth:T("arrow-both",60057),arrowDown:T("arrow-down",60058),arrowLeft:T("arrow-left",60059),arrowRight:T("arrow-right",60060),arrowSmallDown:T("arrow-small-down",60061),arrowSmallLeft:T("arrow-small-left",60062),arrowSmallRight:T("arrow-small-right",60063),arrowSmallUp:T("arrow-small-up",60064),arrowUp:T("arrow-up",60065),bell:T("bell",60066),bold:T("bold",60067),book:T("book",60068),bookmark:T("bookmark",60069),debugBreakpointConditionalUnverified:T("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:T("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:T("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:T("debug-breakpoint-data-unverified",60072),debugBreakpointData:T("debug-breakpoint-data",60073),debugBreakpointDataDisabled:T("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:T("debug-breakpoint-log-unverified",60074),debugBreakpointLog:T("debug-breakpoint-log",60075),debugBreakpointLogDisabled:T("debug-breakpoint-log-disabled",60075),briefcase:T("briefcase",60076),broadcast:T("broadcast",60077),browser:T("browser",60078),bug:T("bug",60079),calendar:T("calendar",60080),caseSensitive:T("case-sensitive",60081),check:T("check",60082),checklist:T("checklist",60083),chevronDown:T("chevron-down",60084),dropDownButton:T("drop-down-button",60084),chevronLeft:T("chevron-left",60085),chevronRight:T("chevron-right",60086),chevronUp:T("chevron-up",60087),chromeClose:T("chrome-close",60088),chromeMaximize:T("chrome-maximize",60089),chromeMinimize:T("chrome-minimize",60090),chromeRestore:T("chrome-restore",60091),circle:T("circle",60092),circleOutline:T("circle-outline",60092),debugBreakpointUnverified:T("debug-breakpoint-unverified",60092),circleSlash:T("circle-slash",60093),circuitBoard:T("circuit-board",60094),clearAll:T("clear-all",60095),clippy:T("clippy",60096),closeAll:T("close-all",60097),cloudDownload:T("cloud-download",60098),cloudUpload:T("cloud-upload",60099),code:T("code",60100),collapseAll:T("collapse-all",60101),colorMode:T("color-mode",60102),commentDiscussion:T("comment-discussion",60103),compareChanges:T("compare-changes",60157),creditCard:T("credit-card",60105),dash:T("dash",60108),dashboard:T("dashboard",60109),database:T("database",60110),debugContinue:T("debug-continue",60111),debugDisconnect:T("debug-disconnect",60112),debugPause:T("debug-pause",60113),debugRestart:T("debug-restart",60114),debugStart:T("debug-start",60115),debugStepInto:T("debug-step-into",60116),debugStepOut:T("debug-step-out",60117),debugStepOver:T("debug-step-over",60118),debugStop:T("debug-stop",60119),debug:T("debug",60120),deviceCameraVideo:T("device-camera-video",60121),deviceCamera:T("device-camera",60122),deviceMobile:T("device-mobile",60123),diffAdded:T("diff-added",60124),diffIgnored:T("diff-ignored",60125),diffModified:T("diff-modified",60126),diffRemoved:T("diff-removed",60127),diffRenamed:T("diff-renamed",60128),diff:T("diff",60129),discard:T("discard",60130),editorLayout:T("editor-layout",60131),emptyWindow:T("empty-window",60132),exclude:T("exclude",60133),extensions:T("extensions",60134),eyeClosed:T("eye-closed",60135),fileBinary:T("file-binary",60136),fileCode:T("file-code",60137),fileMedia:T("file-media",60138),filePdf:T("file-pdf",60139),fileSubmodule:T("file-submodule",60140),fileSymlinkDirectory:T("file-symlink-directory",60141),fileSymlinkFile:T("file-symlink-file",60142),fileZip:T("file-zip",60143),files:T("files",60144),filter:T("filter",60145),flame:T("flame",60146),foldDown:T("fold-down",60147),foldUp:T("fold-up",60148),fold:T("fold",60149),folderActive:T("folder-active",60150),folderOpened:T("folder-opened",60151),gear:T("gear",60152),gift:T("gift",60153),gistSecret:T("gist-secret",60154),gist:T("gist",60155),gitCommit:T("git-commit",60156),gitCompare:T("git-compare",60157),gitMerge:T("git-merge",60158),githubAction:T("github-action",60159),githubAlt:T("github-alt",60160),globe:T("globe",60161),grabber:T("grabber",60162),graph:T("graph",60163),gripper:T("gripper",60164),heart:T("heart",60165),home:T("home",60166),horizontalRule:T("horizontal-rule",60167),hubot:T("hubot",60168),inbox:T("inbox",60169),issueClosed:T("issue-closed",60324),issueReopened:T("issue-reopened",60171),issues:T("issues",60172),italic:T("italic",60173),jersey:T("jersey",60174),json:T("json",60175),bracket:T("bracket",60175),kebabVertical:T("kebab-vertical",60176),key:T("key",60177),law:T("law",60178),lightbulbAutofix:T("lightbulb-autofix",60179),linkExternal:T("link-external",60180),link:T("link",60181),listOrdered:T("list-ordered",60182),listUnordered:T("list-unordered",60183),liveShare:T("live-share",60184),loading:T("loading",60185),location:T("location",60186),mailRead:T("mail-read",60187),mail:T("mail",60188),markdown:T("markdown",60189),megaphone:T("megaphone",60190),mention:T("mention",60191),milestone:T("milestone",60192),gitPullRequestMilestone:T("git-pull-request-milestone",60192),mortarBoard:T("mortar-board",60193),move:T("move",60194),multipleWindows:T("multiple-windows",60195),mute:T("mute",60196),noNewline:T("no-newline",60197),note:T("note",60198),octoface:T("octoface",60199),openPreview:T("open-preview",60200),package:T("package",60201),paintcan:T("paintcan",60202),pin:T("pin",60203),play:T("play",60204),run:T("run",60204),plug:T("plug",60205),preserveCase:T("preserve-case",60206),preview:T("preview",60207),project:T("project",60208),pulse:T("pulse",60209),question:T("question",60210),quote:T("quote",60211),radioTower:T("radio-tower",60212),reactions:T("reactions",60213),references:T("references",60214),refresh:T("refresh",60215),regex:T("regex",60216),remoteExplorer:T("remote-explorer",60217),remote:T("remote",60218),remove:T("remove",60219),replaceAll:T("replace-all",60220),replace:T("replace",60221),repoClone:T("repo-clone",60222),repoForcePush:T("repo-force-push",60223),repoPull:T("repo-pull",60224),repoPush:T("repo-push",60225),report:T("report",60226),requestChanges:T("request-changes",60227),rocket:T("rocket",60228),rootFolderOpened:T("root-folder-opened",60229),rootFolder:T("root-folder",60230),rss:T("rss",60231),ruby:T("ruby",60232),saveAll:T("save-all",60233),saveAs:T("save-as",60234),save:T("save",60235),screenFull:T("screen-full",60236),screenNormal:T("screen-normal",60237),searchStop:T("search-stop",60238),server:T("server",60240),settingsGear:T("settings-gear",60241),settings:T("settings",60242),shield:T("shield",60243),smiley:T("smiley",60244),sortPrecedence:T("sort-precedence",60245),splitHorizontal:T("split-horizontal",60246),splitVertical:T("split-vertical",60247),squirrel:T("squirrel",60248),starFull:T("star-full",60249),starHalf:T("star-half",60250),symbolClass:T("symbol-class",60251),symbolColor:T("symbol-color",60252),symbolCustomColor:T("symbol-customcolor",60252),symbolConstant:T("symbol-constant",60253),symbolEnumMember:T("symbol-enum-member",60254),symbolField:T("symbol-field",60255),symbolFile:T("symbol-file",60256),symbolInterface:T("symbol-interface",60257),symbolKeyword:T("symbol-keyword",60258),symbolMisc:T("symbol-misc",60259),symbolOperator:T("symbol-operator",60260),symbolProperty:T("symbol-property",60261),wrench:T("wrench",60261),wrenchSubaction:T("wrench-subaction",60261),symbolSnippet:T("symbol-snippet",60262),tasklist:T("tasklist",60263),telescope:T("telescope",60264),textSize:T("text-size",60265),threeBars:T("three-bars",60266),thumbsdown:T("thumbsdown",60267),thumbsup:T("thumbsup",60268),tools:T("tools",60269),triangleDown:T("triangle-down",60270),triangleLeft:T("triangle-left",60271),triangleRight:T("triangle-right",60272),triangleUp:T("triangle-up",60273),twitter:T("twitter",60274),unfold:T("unfold",60275),unlock:T("unlock",60276),unmute:T("unmute",60277),unverified:T("unverified",60278),verified:T("verified",60279),versions:T("versions",60280),vmActive:T("vm-active",60281),vmOutline:T("vm-outline",60282),vmRunning:T("vm-running",60283),watch:T("watch",60284),whitespace:T("whitespace",60285),wholeWord:T("whole-word",60286),window:T("window",60287),wordWrap:T("word-wrap",60288),zoomIn:T("zoom-in",60289),zoomOut:T("zoom-out",60290),listFilter:T("list-filter",60291),listFlat:T("list-flat",60292),listSelection:T("list-selection",60293),selection:T("selection",60293),listTree:T("list-tree",60294),debugBreakpointFunctionUnverified:T("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:T("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:T("debug-breakpoint-function-disabled",60296),debugStackframeActive:T("debug-stackframe-active",60297),circleSmallFilled:T("circle-small-filled",60298),debugStackframeDot:T("debug-stackframe-dot",60298),debugStackframe:T("debug-stackframe",60299),debugStackframeFocused:T("debug-stackframe-focused",60299),debugBreakpointUnsupported:T("debug-breakpoint-unsupported",60300),symbolString:T("symbol-string",60301),debugReverseContinue:T("debug-reverse-continue",60302),debugStepBack:T("debug-step-back",60303),debugRestartFrame:T("debug-restart-frame",60304),callIncoming:T("call-incoming",60306),callOutgoing:T("call-outgoing",60307),menu:T("menu",60308),expandAll:T("expand-all",60309),feedback:T("feedback",60310),gitPullRequestReviewer:T("git-pull-request-reviewer",60310),groupByRefType:T("group-by-ref-type",60311),ungroupByRefType:T("ungroup-by-ref-type",60312),account:T("account",60313),gitPullRequestAssignee:T("git-pull-request-assignee",60313),bellDot:T("bell-dot",60314),debugConsole:T("debug-console",60315),library:T("library",60316),output:T("output",60317),runAll:T("run-all",60318),syncIgnored:T("sync-ignored",60319),pinned:T("pinned",60320),githubInverted:T("github-inverted",60321),debugAlt:T("debug-alt",60305),serverProcess:T("server-process",60322),serverEnvironment:T("server-environment",60323),pass:T("pass",60324),stopCircle:T("stop-circle",60325),playCircle:T("play-circle",60326),record:T("record",60327),debugAltSmall:T("debug-alt-small",60328),vmConnect:T("vm-connect",60329),cloud:T("cloud",60330),merge:T("merge",60331),exportIcon:T("export",60332),graphLeft:T("graph-left",60333),magnet:T("magnet",60334),notebook:T("notebook",60335),redo:T("redo",60336),checkAll:T("check-all",60337),pinnedDirty:T("pinned-dirty",60338),passFilled:T("pass-filled",60339),circleLargeFilled:T("circle-large-filled",60340),circleLarge:T("circle-large",60341),circleLargeOutline:T("circle-large-outline",60341),combine:T("combine",60342),gather:T("gather",60342),table:T("table",60343),variableGroup:T("variable-group",60344),typeHierarchy:T("type-hierarchy",60345),typeHierarchySub:T("type-hierarchy-sub",60346),typeHierarchySuper:T("type-hierarchy-super",60347),gitPullRequestCreate:T("git-pull-request-create",60348),runAbove:T("run-above",60349),runBelow:T("run-below",60350),notebookTemplate:T("notebook-template",60351),debugRerun:T("debug-rerun",60352),workspaceTrusted:T("workspace-trusted",60353),workspaceUntrusted:T("workspace-untrusted",60354),workspaceUnspecified:T("workspace-unspecified",60355),terminalCmd:T("terminal-cmd",60356),terminalDebian:T("terminal-debian",60357),terminalLinux:T("terminal-linux",60358),terminalPowershell:T("terminal-powershell",60359),terminalTmux:T("terminal-tmux",60360),terminalUbuntu:T("terminal-ubuntu",60361),terminalBash:T("terminal-bash",60362),arrowSwap:T("arrow-swap",60363),copy:T("copy",60364),personAdd:T("person-add",60365),filterFilled:T("filter-filled",60366),wand:T("wand",60367),debugLineByLine:T("debug-line-by-line",60368),inspect:T("inspect",60369),layers:T("layers",60370),layersDot:T("layers-dot",60371),layersActive:T("layers-active",60372),compass:T("compass",60373),compassDot:T("compass-dot",60374),compassActive:T("compass-active",60375),azure:T("azure",60376),issueDraft:T("issue-draft",60377),gitPullRequestClosed:T("git-pull-request-closed",60378),gitPullRequestDraft:T("git-pull-request-draft",60379),debugAll:T("debug-all",60380),debugCoverage:T("debug-coverage",60381),runErrors:T("run-errors",60382),folderLibrary:T("folder-library",60383),debugContinueSmall:T("debug-continue-small",60384),beakerStop:T("beaker-stop",60385),graphLine:T("graph-line",60386),graphScatter:T("graph-scatter",60387),pieChart:T("pie-chart",60388),bracketDot:T("bracket-dot",60389),bracketError:T("bracket-error",60390),lockSmall:T("lock-small",60391),azureDevops:T("azure-devops",60392),verifiedFilled:T("verified-filled",60393),newLine:T("newline",60394),layout:T("layout",60395),layoutActivitybarLeft:T("layout-activitybar-left",60396),layoutActivitybarRight:T("layout-activitybar-right",60397),layoutPanelLeft:T("layout-panel-left",60398),layoutPanelCenter:T("layout-panel-center",60399),layoutPanelJustify:T("layout-panel-justify",60400),layoutPanelRight:T("layout-panel-right",60401),layoutPanel:T("layout-panel",60402),layoutSidebarLeft:T("layout-sidebar-left",60403),layoutSidebarRight:T("layout-sidebar-right",60404),layoutStatusbar:T("layout-statusbar",60405),layoutMenubar:T("layout-menubar",60406),layoutCentered:T("layout-centered",60407),layoutSidebarRightOff:T("layout-sidebar-right-off",60416),layoutPanelOff:T("layout-panel-off",60417),layoutSidebarLeftOff:T("layout-sidebar-left-off",60418),target:T("target",60408),indent:T("indent",60409),recordSmall:T("record-small",60410),errorSmall:T("error-small",60411),arrowCircleDown:T("arrow-circle-down",60412),arrowCircleLeft:T("arrow-circle-left",60413),arrowCircleRight:T("arrow-circle-right",60414),arrowCircleUp:T("arrow-circle-up",60415),heartFilled:T("heart-filled",60420),map:T("map",60421),mapFilled:T("map-filled",60422),circleSmall:T("circle-small",60423),bellSlash:T("bell-slash",60424),bellSlashDot:T("bell-slash-dot",60425),commentUnresolved:T("comment-unresolved",60426),gitPullRequestGoToChanges:T("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:T("git-pull-request-new-changes",60428),searchFuzzy:T("search-fuzzy",60429),commentDraft:T("comment-draft",60430),send:T("send",60431),sparkle:T("sparkle",60432),insert:T("insert",60433),mic:T("mic",60434),thumbsDownFilled:T("thumbsdown-filled",60435),thumbsUpFilled:T("thumbsup-filled",60436),coffee:T("coffee",60437),snake:T("snake",60438),game:T("game",60439),vr:T("vr",60440),chip:T("chip",60441),piano:T("piano",60442),music:T("music",60443),micFilled:T("mic-filled",60444),gitFetch:T("git-fetch",60445),copilot:T("copilot",60446),lightbulbSparkle:T("lightbulb-sparkle",60447),lightbulbSparkleAutofix:T("lightbulb-sparkle-autofix",60447),robot:T("robot",60448),sparkleFilled:T("sparkle-filled",60449),diffSingle:T("diff-single",60450),diffMultiple:T("diff-multiple",60451),dialogError:T("dialog-error","error"),dialogWarning:T("dialog-warning","warning"),dialogInfo:T("dialog-info","info"),dialogClose:T("dialog-close","close"),treeItemExpanded:T("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:T("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:T("tree-filter-on-type-off","list-selection"),treeFilterClear:T("tree-filter-clear","close"),treeItemLoading:T("tree-item-loading","loading"),menuSelection:T("menu-selection","check"),menuSubmenu:T("menu-submenu","chevron-right"),menuBarMore:T("menubar-more","more"),scrollbarButtonLeft:T("scrollbar-button-left","triangle-left"),scrollbarButtonRight:T("scrollbar-button-right","triangle-right"),scrollbarButtonUp:T("scrollbar-button-up","triangle-up"),scrollbarButtonDown:T("scrollbar-button-down","triangle-down"),toolBarMore:T("toolbar-more","more"),quickInputBack:T("quick-input-back","arrow-left")};class W1{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new Bi,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]),oo(()=>{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===void 0||r.dispose();const i=new G1(this,t,n);return this._factories.set(t,i),oo(()=>{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 r=this._factories.get(t);return!r||r.isResolved?null:(await r.resolve(),this.get(t))}isResolved(t){if(this.get(t))return!0;const r=this._factories.get(t);return!!(!r||r.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 G1 extends uo{get isResolved(){return this._isResolved}constructor(t,n,r){super(),this._registry=t,this._languageId=n,this._factory=r,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 J1{constructor(t,n,r){this.offset=t,this.type=n,this.language=r,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}var Gp;(function(e){const t=new Map;t.set(0,Nn.symbolMethod),t.set(1,Nn.symbolFunction),t.set(2,Nn.symbolConstructor),t.set(3,Nn.symbolField),t.set(4,Nn.symbolVariable),t.set(5,Nn.symbolClass),t.set(6,Nn.symbolStruct),t.set(7,Nn.symbolInterface),t.set(8,Nn.symbolModule),t.set(9,Nn.symbolProperty),t.set(10,Nn.symbolEvent),t.set(11,Nn.symbolOperator),t.set(12,Nn.symbolUnit),t.set(13,Nn.symbolValue),t.set(15,Nn.symbolEnum),t.set(14,Nn.symbolConstant),t.set(15,Nn.symbolEnum),t.set(16,Nn.symbolEnumMember),t.set(17,Nn.symbolKeyword),t.set(27,Nn.symbolSnippet),t.set(18,Nn.symbolText),t.set(19,Nn.symbolColor),t.set(20,Nn.symbolFile),t.set(21,Nn.symbolReference),t.set(22,Nn.symbolCustomColor),t.set(23,Nn.symbolFolder),t.set(24,Nn.symbolTypeParameter),t.set(25,Nn.account),t.set(26,Nn.issues);function n(s){let a=t.get(s);return a||(console.info("No codicon found for CompletionItemKind "+s),a=Nn.symbolProperty),a}e.toIcon=n;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",27),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);function i(s,a){let o=r.get(s);return typeof o>"u"&&!a&&(o=9),o}e.fromString=i})(Gp||(Gp={}));var Jp;(function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"})(Jp||(Jp={}));var Yp;(function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"})(Yp||(Yp={}));var Hp;(function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"})(Hp||(Hp={})),vr("Array","array"),vr("Boolean","boolean"),vr("Class","class"),vr("Constant","constant"),vr("Constructor","constructor"),vr("Enum","enumeration"),vr("EnumMember","enumeration member"),vr("Event","event"),vr("Field","field"),vr("File","file"),vr("Function","function"),vr("Interface","interface"),vr("Key","key"),vr("Method","method"),vr("Module","module"),vr("Namespace","namespace"),vr("Null","null"),vr("Number","number"),vr("Object","object"),vr("Operator","operator"),vr("Package","package"),vr("Property","property"),vr("String","string"),vr("Struct","struct"),vr("TypeParameter","type parameter"),vr("Variable","variable");var zp;(function(e){const t=new Map;t.set(0,Nn.symbolFile),t.set(1,Nn.symbolModule),t.set(2,Nn.symbolNamespace),t.set(3,Nn.symbolPackage),t.set(4,Nn.symbolClass),t.set(5,Nn.symbolMethod),t.set(6,Nn.symbolProperty),t.set(7,Nn.symbolField),t.set(8,Nn.symbolConstructor),t.set(9,Nn.symbolEnum),t.set(10,Nn.symbolInterface),t.set(11,Nn.symbolFunction),t.set(12,Nn.symbolVariable),t.set(13,Nn.symbolConstant),t.set(14,Nn.symbolString),t.set(15,Nn.symbolNumber),t.set(16,Nn.symbolBoolean),t.set(17,Nn.symbolArray),t.set(18,Nn.symbolObject),t.set(19,Nn.symbolKey),t.set(20,Nn.symbolNull),t.set(21,Nn.symbolEnumMember),t.set(22,Nn.symbolStruct),t.set(23,Nn.symbolEvent),t.set(24,Nn.symbolOperator),t.set(25,Nn.symbolTypeParameter);function n(r){let i=t.get(r);return i||(console.info("No codicon found for SymbolKind "+r),i=Nn.symbolProperty),i}e.toIcon=n})(zp||(zp={}));var Qp;(function(e){function t(n){return!n||typeof n!="object"?!1:typeof n.id=="string"&&typeof n.title=="string"}e.is=t})(Qp||(Qp={}));var Xp;(function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"})(Xp||(Xp={})),new W1;var Kp;(function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"})(Kp||(Kp={}));var Zp;(function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"})(Zp||(Zp={}));var ed;(function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"})(ed||(ed={}));var td;(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.Snippet=27]="Snippet"})(td||(td={}));var nd;(function(e){e[e.Deprecated=1]="Deprecated"})(nd||(nd={}));var rd;(function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(rd||(rd={}));var id;(function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"})(id||(id={}));var sd;(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"})(sd||(sd={}));var ad;(function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(ad||(ad={}));var od;(function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"})(od||(od={}));var ud;(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"})(ud||(ud={}));var ld;(function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.ariaRequired=5]="ariaRequired",e[e.autoClosingBrackets=6]="autoClosingBrackets",e[e.autoClosingComments=7]="autoClosingComments",e[e.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",e[e.autoClosingDelete=9]="autoClosingDelete",e[e.autoClosingOvertype=10]="autoClosingOvertype",e[e.autoClosingQuotes=11]="autoClosingQuotes",e[e.autoIndent=12]="autoIndent",e[e.automaticLayout=13]="automaticLayout",e[e.autoSurround=14]="autoSurround",e[e.bracketPairColorization=15]="bracketPairColorization",e[e.guides=16]="guides",e[e.codeLens=17]="codeLens",e[e.codeLensFontFamily=18]="codeLensFontFamily",e[e.codeLensFontSize=19]="codeLensFontSize",e[e.colorDecorators=20]="colorDecorators",e[e.colorDecoratorsLimit=21]="colorDecoratorsLimit",e[e.columnSelection=22]="columnSelection",e[e.comments=23]="comments",e[e.contextmenu=24]="contextmenu",e[e.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",e[e.cursorBlinking=26]="cursorBlinking",e[e.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",e[e.cursorStyle=28]="cursorStyle",e[e.cursorSurroundingLines=29]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",e[e.cursorWidth=31]="cursorWidth",e[e.disableLayerHinting=32]="disableLayerHinting",e[e.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",e[e.domReadOnly=34]="domReadOnly",e[e.dragAndDrop=35]="dragAndDrop",e[e.dropIntoEditor=36]="dropIntoEditor",e[e.emptySelectionClipboard=37]="emptySelectionClipboard",e[e.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",e[e.extraEditorClassName=39]="extraEditorClassName",e[e.fastScrollSensitivity=40]="fastScrollSensitivity",e[e.find=41]="find",e[e.fixedOverflowWidgets=42]="fixedOverflowWidgets",e[e.folding=43]="folding",e[e.foldingStrategy=44]="foldingStrategy",e[e.foldingHighlight=45]="foldingHighlight",e[e.foldingImportsByDefault=46]="foldingImportsByDefault",e[e.foldingMaximumRegions=47]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=49]="fontFamily",e[e.fontInfo=50]="fontInfo",e[e.fontLigatures=51]="fontLigatures",e[e.fontSize=52]="fontSize",e[e.fontWeight=53]="fontWeight",e[e.fontVariations=54]="fontVariations",e[e.formatOnPaste=55]="formatOnPaste",e[e.formatOnType=56]="formatOnType",e[e.glyphMargin=57]="glyphMargin",e[e.gotoLocation=58]="gotoLocation",e[e.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",e[e.hover=60]="hover",e[e.inDiffEditor=61]="inDiffEditor",e[e.inlineSuggest=62]="inlineSuggest",e[e.letterSpacing=63]="letterSpacing",e[e.lightbulb=64]="lightbulb",e[e.lineDecorationsWidth=65]="lineDecorationsWidth",e[e.lineHeight=66]="lineHeight",e[e.lineNumbers=67]="lineNumbers",e[e.lineNumbersMinChars=68]="lineNumbersMinChars",e[e.linkedEditing=69]="linkedEditing",e[e.links=70]="links",e[e.matchBrackets=71]="matchBrackets",e[e.minimap=72]="minimap",e[e.mouseStyle=73]="mouseStyle",e[e.mouseWheelScrollSensitivity=74]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=75]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=76]="multiCursorMergeOverlapping",e[e.multiCursorModifier=77]="multiCursorModifier",e[e.multiCursorPaste=78]="multiCursorPaste",e[e.multiCursorLimit=79]="multiCursorLimit",e[e.occurrencesHighlight=80]="occurrencesHighlight",e[e.overviewRulerBorder=81]="overviewRulerBorder",e[e.overviewRulerLanes=82]="overviewRulerLanes",e[e.padding=83]="padding",e[e.pasteAs=84]="pasteAs",e[e.parameterHints=85]="parameterHints",e[e.peekWidgetDefaultFocus=86]="peekWidgetDefaultFocus",e[e.definitionLinkOpensInPeek=87]="definitionLinkOpensInPeek",e[e.quickSuggestions=88]="quickSuggestions",e[e.quickSuggestionsDelay=89]="quickSuggestionsDelay",e[e.readOnly=90]="readOnly",e[e.readOnlyMessage=91]="readOnlyMessage",e[e.renameOnType=92]="renameOnType",e[e.renderControlCharacters=93]="renderControlCharacters",e[e.renderFinalNewline=94]="renderFinalNewline",e[e.renderLineHighlight=95]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=96]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=97]="renderValidationDecorations",e[e.renderWhitespace=98]="renderWhitespace",e[e.revealHorizontalRightPadding=99]="revealHorizontalRightPadding",e[e.roundedSelection=100]="roundedSelection",e[e.rulers=101]="rulers",e[e.scrollbar=102]="scrollbar",e[e.scrollBeyondLastColumn=103]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=104]="scrollBeyondLastLine",e[e.scrollPredominantAxis=105]="scrollPredominantAxis",e[e.selectionClipboard=106]="selectionClipboard",e[e.selectionHighlight=107]="selectionHighlight",e[e.selectOnLineNumbers=108]="selectOnLineNumbers",e[e.showFoldingControls=109]="showFoldingControls",e[e.showUnused=110]="showUnused",e[e.snippetSuggestions=111]="snippetSuggestions",e[e.smartSelect=112]="smartSelect",e[e.smoothScrolling=113]="smoothScrolling",e[e.stickyScroll=114]="stickyScroll",e[e.stickyTabStops=115]="stickyTabStops",e[e.stopRenderingLineAfter=116]="stopRenderingLineAfter",e[e.suggest=117]="suggest",e[e.suggestFontSize=118]="suggestFontSize",e[e.suggestLineHeight=119]="suggestLineHeight",e[e.suggestOnTriggerCharacters=120]="suggestOnTriggerCharacters",e[e.suggestSelection=121]="suggestSelection",e[e.tabCompletion=122]="tabCompletion",e[e.tabIndex=123]="tabIndex",e[e.unicodeHighlighting=124]="unicodeHighlighting",e[e.unusualLineTerminators=125]="unusualLineTerminators",e[e.useShadowDOM=126]="useShadowDOM",e[e.useTabStops=127]="useTabStops",e[e.wordBreak=128]="wordBreak",e[e.wordSeparators=129]="wordSeparators",e[e.wordWrap=130]="wordWrap",e[e.wordWrapBreakAfterCharacters=131]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=132]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=133]="wordWrapColumn",e[e.wordWrapOverride1=134]="wordWrapOverride1",e[e.wordWrapOverride2=135]="wordWrapOverride2",e[e.wrappingIndent=136]="wrappingIndent",e[e.wrappingStrategy=137]="wrappingStrategy",e[e.showDeprecated=138]="showDeprecated",e[e.inlayHints=139]="inlayHints",e[e.editorClassName=140]="editorClassName",e[e.pixelRatio=141]="pixelRatio",e[e.tabFocusMode=142]="tabFocusMode",e[e.layoutInfo=143]="layoutInfo",e[e.wrappingInfo=144]="wrappingInfo",e[e.defaultColorDecorators=145]="defaultColorDecorators",e[e.colorDecoratorsActivatedOn=146]="colorDecoratorsActivatedOn",e[e.inlineCompletionsAccessibilityVerbose=147]="inlineCompletionsAccessibilityVerbose"})(ld||(ld={}));var cd;(function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(cd||(cd={}));var fd;(function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"})(fd||(fd={}));var pd;(function(e){e[e.Left=1]="Left",e[e.Right=2]="Right"})(pd||(pd={}));var dd;(function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"})(dd||(dd={}));var hd;(function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"})(hd||(hd={}));var md;(function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"})(md||(md={}));var gd;(function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"})(gd||(gd={}));var Ql;(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"})(Ql||(Ql={}));var Xl;(function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"})(Xl||(Xl={}));var Kl;(function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"})(Kl||(Kl={}));var yd;(function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"})(yd||(yd={}));var Dd;(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"})(Dd||(Dd={}));var bd;(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"})(bd||(bd={}));var vd;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"})(vd||(vd={}));var Ed;(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"})(Ed||(Ed={}));var Ad;(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"})(Ad||(Ad={}));var Cd;(function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"})(Cd||(Cd={}));var xd;(function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"})(xd||(xd={}));var Sd;(function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"})(Sd||(Sd={}));var Zl;(function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"})(Zl||(Zl={}));var wd;(function(e){e.Off="off",e.OnCode="onCode",e.On="on"})(wd||(wd={}));var Fd;(function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"})(Fd||(Fd={}));var Nd;(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"})(Nd||(Nd={}));var Td;(function(e){e[e.Deprecated=1]="Deprecated"})(Td||(Td={}));var _d;(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"})(_d||(_d={}));var Ld;(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"})(Ld||(Ld={}));var kd;(function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(kd||(kd={}));var Pd;(function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"})(Pd||(Pd={}));class fo{static chord(t,n){return U1(t,n)}}fo.CtrlCmd=2048,fo.Shift=1024,fo.Alt=512,fo.WinCtrl=256;function Y1(){return{editor:void 0,languages:void 0,CancellationTokenSource:R1,Emitter:Bi,KeyCode:Ql,KeyMod:fo,Position:Ji,Range:Ur,Selection:gi,SelectionDirection:Zl,MarkerSeverity:Xl,MarkerTag:Kl,Uri:$l,Token:J1}}var Bd;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"})(Bd||(Bd={}));var Md;(function(e){e[e.Left=1]="Left",e[e.Right=2]="Right"})(Md||(Md={}));var Id;(function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"})(Id||(Id={}));var Od;(function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"})(Od||(Od={}));function H1(e,t,n,r,i){if(r===0)return!0;const s=t.charCodeAt(r-1);if(e.get(s)!==0||s===13||s===10)return!0;if(i>0){const a=t.charCodeAt(r);if(e.get(a)!==0)return!0}return!1}function z1(e,t,n,r,i){if(r+i===n)return!0;const s=t.charCodeAt(r+i);if(e.get(s)!==0||s===13||s===10)return!0;if(i>0){const a=t.charCodeAt(r+i-1);if(e.get(a)!==0)return!0}return!1}function Q1(e,t,n,r,i){return H1(e,t,n,r,i)&&z1(e,t,n,r,i)}class X1{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 r;do{if(this._prevMatchStartIndex+this._prevMatchLength===n||(r=this._searchRegex.exec(t),!r))return null;const i=r.index,s=r[0].length;if(i===this._prevMatchStartIndex&&s===this._prevMatchLength){if(s===0){Jg(t,n,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=i,this._prevMatchLength=s,!this._wordSeparators||Q1(this._wordSeparators,t,n,i,s))return r}while(r);return null}}function K1(e,t="Unreachable"){throw new Error(t)}function su(e){if(!e()){debugger;e(),Dp(new ms("Assertion Failed"))}}function jd(e,t){let n=0;for(;n<e.length-1;){const r=e[n],i=e[n+1];if(!t(r,i))return!1;n++}return!0}class Z1{static computeUnicodeHighlights(t,n,r){const i=r?r.startLineNumber:1,s=r?r.endLineNumber:t.getLineCount(),a=new Rd(n),o=a.getCandidateCodePoints();let u;o==="allNonBasicAscii"?u=new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):u=new RegExp(`${ey(Array.from(o))}`,"g");const l=new X1(null,u),v=[];let c=!1,N,_=0,Z=0,te=0;e:for(let M=i,he=s;M<=he;M++){const Ae=t.getLineContent(M),Fe=Ae.length;l.reset(0);do if(N=l.next(Ae),N){let ke=N.index,ae=N.index+N[0].length;if(ke>0){const Ve=Ae.charCodeAt(ke-1);Ol(Ve)&&ke--}if(ae+1<Fe){const Ve=Ae.charCodeAt(ae-1);Ol(Ve)&&ae++}const Ee=Ae.substring(ke,ae);let Qe=Ul(ke+1,Rp,Ae,0);Qe&&Qe.endColumn<=ke+1&&(Qe=null);const Dt=a.shouldHighlightNonBasicASCII(Ee,Qe?Qe.word:null);if(Dt!==0){if(Dt===3?_++:Dt===2?Z++:Dt===1?te++:K1(),v.length>=1e3){c=!0;break e}v.push(new Ur(M,ke+1,M,ae+1))}}while(N)}return{ranges:v,hasMore:c,ambiguousCharacterCount:_,invisibleCharacterCount:Z,nonBasicAsciiCharacterCount:te}}static computeUnicodeHighlightReason(t,n){const r=new Rd(n);switch(r.shouldHighlightNonBasicASCII(t,null)){case 0:return null;case 2:return{kind:1};case 3:{const s=t.codePointAt(0),a=r.ambiguousCharacters.getPrimaryConfusable(s),o=$s.getLocales().filter(u=>!$s.getInstance(new Set([...n.allowedLocales,u])).isAmbiguous(s));return{kind:0,confusableWith:String.fromCodePoint(a),notAmbiguousInLocales:o}}case 1:return{kind:2}}}}function ey(e,t){return`[${$g(e.map(r=>String.fromCodePoint(r)).join(""))}]`}class Rd{constructor(t){this.options=t,this.allowedCodePoints=new Set(t.allowedCodePoints),this.ambiguousCharacters=$s.getInstance(new Set(t.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const t=new Set;if(this.options.invisibleCharacters)for(const n of gs.codePoints)$d(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 r=t.codePointAt(0);if(this.allowedCodePoints.has(r))return 0;if(this.options.nonBasicASCII)return 1;let i=!1,s=!1;if(n)for(const a of n){const o=a.codePointAt(0),u=Hg(a);i=i||u,!u&&!this.ambiguousCharacters.isAmbiguous(o)&&!gs.isInvisibleCharacter(o)&&(s=!0)}return!i&&s?0:this.options.invisibleCharacters&&!$d(t)&&gs.isInvisibleCharacter(r)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(r)?3:0}}function $d(e){return e===" "||e===`
8
- `||e===" "}class au{constructor(t,n,r){this.changes=t,this.moves=n,this.hitTimeout=r}}class ty{constructor(t,n){this.lineRangeMapping=t,this.changes=n}}class Xn{static addRange(t,n){let r=0;for(;r<n.length&&n[r].endExclusive<t.start;)r++;let i=r;for(;i<n.length&&n[i].start<=t.endExclusive;)i++;if(r===i)n.splice(r,0,t);else{const s=Math.min(t.start,n[r].start),a=Math.max(t.endExclusive,n[i-1].endExclusive);n.splice(r,i-r,new Xn(s,a))}}static tryCreate(t,n){if(!(t>n))return new Xn(t,n)}static ofLength(t){return new Xn(0,t)}static ofStartAndLength(t,n){return new Xn(t,t+n)}constructor(t,n){if(this.start=t,this.endExclusive=n,t>n)throw new ms(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(t){return new Xn(this.start+t,this.endExclusive+t)}deltaStart(t){return new Xn(this.start+t,this.endExclusive)}deltaEnd(t){return new Xn(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}containsRange(t){return this.start<=t.start&&t.endExclusive<=this.endExclusive}contains(t){return this.start<=t&&t<this.endExclusive}join(t){return new Xn(Math.min(this.start,t.start),Math.max(this.endExclusive,t.endExclusive))}intersect(t){const n=Math.max(this.start,t.start),r=Math.min(this.endExclusive,t.endExclusive);if(n<=r)return new Xn(n,r)}isBefore(t){return this.endExclusive<=t.start}isAfter(t){return this.start>=t.endExclusive}slice(t){return t.slice(this.start,this.endExclusive)}clip(t){if(this.isEmpty)throw new ms(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,t))}clipCyclic(t){if(this.isEmpty)throw new ms(`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)}}function Da(e,t){const n=po(e,t);return n===-1?void 0:e[n]}function po(e,t,n=0,r=e.length){let i=n,s=r;for(;i<s;){const a=Math.floor((i+s)/2);t(e[a])?i=a+1:s=a}return i-1}function ny(e,t){const n=ec(e,t);return n===e.length?void 0:e[n]}function ec(e,t,n=0,r=e.length){let i=n,s=r;for(;i<s;){const a=Math.floor((i+s)/2);t(e[a])?s=a:i=a+1}return i}class ho{constructor(t){this._array=t,this._findLastMonotonousLastIdx=0}findLastMonotonous(t){if(ho.assertInvariants){if(this._prevFindLastPredicate){for(const r of this._array)if(this._prevFindLastPredicate(r)&&!t(r))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.")}this._prevFindLastPredicate=t}const n=po(this._array,t,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=n+1,n===-1?void 0:this._array[n]}}ho.assertInvariants=!1;class nr{static fromRange(t){return new nr(t.startLineNumber,t.endLineNumber)}static fromRangeInclusive(t){return new nr(t.startLineNumber,t.endLineNumber+1)}static joinMany(t){if(t.length===0)return[];let n=new Yi(t[0].slice());for(let r=1;r<t.length;r++)n=n.getUnion(new Yi(t[r].slice()));return n.ranges}static ofLength(t,n){return new nr(t,t+n)}static deserialize(t){return new nr(t[0],t[1])}constructor(t,n){if(t>n)throw new ms(`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 nr(this.startLineNumber+t,this.endLineNumberExclusive+t)}deltaLength(t){return new nr(this.startLineNumber,this.endLineNumberExclusive+t)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(t){return new nr(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),r=Math.min(this.endLineNumberExclusive,t.endLineNumberExclusive);if(n<=r)return new nr(n,r)}intersectsStrict(t){return this.startLineNumber<t.endLineNumberExclusive&&t.startLineNumber<this.endLineNumberExclusive}overlapOrTouch(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 Ur(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new Ur(this.startLineNumber,1,this.endLineNumberExclusive,1)}mapToLineArray(t){const n=[];for(let r=this.startLineNumber;r<this.endLineNumberExclusive;r++)n.push(t(r));return n}forEach(t){for(let n=this.startLineNumber;n<this.endLineNumberExclusive;n++)t(n)}serialize(){return[this.startLineNumber,this.endLineNumberExclusive]}includes(t){return this.startLineNumber<=t&&t<this.endLineNumberExclusive}toOffsetRange(){return new Xn(this.startLineNumber-1,this.endLineNumberExclusive-1)}}class Yi{constructor(t=[]){this._normalizedRanges=t}get ranges(){return this._normalizedRanges}addRange(t){if(t.length===0)return;const n=ec(this._normalizedRanges,i=>i.endLineNumberExclusive>=t.startLineNumber),r=po(this._normalizedRanges,i=>i.startLineNumber<=t.endLineNumberExclusive)+1;if(n===r)this._normalizedRanges.splice(n,0,t);else if(n===r-1){const i=this._normalizedRanges[n];this._normalizedRanges[n]=i.join(t)}else{const i=this._normalizedRanges[n].join(this._normalizedRanges[r-1]).join(t);this._normalizedRanges.splice(n,r-n,i)}}contains(t){const n=Da(this._normalizedRanges,r=>r.startLineNumber<=t);return!!n&&n.endLineNumberExclusive>t}intersects(t){const n=Da(this._normalizedRanges,r=>r.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 r=0,i=0,s=null;for(;r<this._normalizedRanges.length||i<t._normalizedRanges.length;){let a=null;if(r<this._normalizedRanges.length&&i<t._normalizedRanges.length){const o=this._normalizedRanges[r],u=t._normalizedRanges[i];o.startLineNumber<u.startLineNumber?(a=o,r++):(a=u,i++)}else r<this._normalizedRanges.length?(a=this._normalizedRanges[r],r++):(a=t._normalizedRanges[i],i++);s===null?s=a:s.endLineNumberExclusive>=a.startLineNumber?s=new nr(s.startLineNumber,Math.max(s.endLineNumberExclusive,a.endLineNumberExclusive)):(n.push(s),s=a)}return s!==null&&n.push(s),new Yi(n)}subtractFrom(t){const n=ec(this._normalizedRanges,a=>a.endLineNumberExclusive>=t.startLineNumber),r=po(this._normalizedRanges,a=>a.startLineNumber<=t.endLineNumberExclusive)+1;if(n===r)return new Yi([t]);const i=[];let s=t.startLineNumber;for(let a=n;a<r;a++){const o=this._normalizedRanges[a];o.startLineNumber>s&&i.push(new nr(s,o.startLineNumber)),s=o.endLineNumberExclusive}return s<t.endLineNumberExclusive&&i.push(new nr(s,t.endLineNumberExclusive)),new Yi(i)}toString(){return this._normalizedRanges.map(t=>t.toString()).join(", ")}getIntersection(t){const n=[];let r=0,i=0;for(;r<this._normalizedRanges.length&&i<t._normalizedRanges.length;){const s=this._normalizedRanges[r],a=t._normalizedRanges[i],o=s.intersect(a);o&&!o.isEmpty&&n.push(o),s.endLineNumberExclusive<a.endLineNumberExclusive?r++:i++}return new Yi(n)}getWithDelta(t){return new Yi(this._normalizedRanges.map(n=>n.delta(t)))}}class Cs{static inverse(t,n,r){const i=[];let s=1,a=1;for(const u of t){const l=new ts(new nr(s,u.original.startLineNumber),new nr(a,u.modified.startLineNumber),void 0);l.modified.isEmpty||i.push(l),s=u.original.endLineNumberExclusive,a=u.modified.endLineNumberExclusive}const o=new ts(new nr(s,n+1),new nr(a,r+1),void 0);return o.modified.isEmpty||i.push(o),i}constructor(t,n){this.original=t,this.modified=n}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new Cs(this.modified,this.original)}join(t){return new Cs(this.original.join(t.original),this.modified.join(t.modified))}}class ts extends Cs{constructor(t,n,r){super(t,n),this.innerChanges=r}flip(){var t;return new ts(this.modified,this.original,(t=this.innerChanges)===null||t===void 0?void 0:t.map(n=>n.flip()))}}class mo{constructor(t,n){this.originalRange=t,this.modifiedRange=n}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new mo(this.modifiedRange,this.originalRange)}}const ry=3;class iy{computeDiff(t,n,r){var i;const a=new oy(t,n,{maxComputationTime:r.maxComputationTimeMs,shouldIgnoreTrimWhitespace:r.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),o=[];let u=null;for(const l of a.changes){let v;l.originalEndLineNumber===0?v=new nr(l.originalStartLineNumber+1,l.originalStartLineNumber+1):v=new nr(l.originalStartLineNumber,l.originalEndLineNumber+1);let c;l.modifiedEndLineNumber===0?c=new nr(l.modifiedStartLineNumber+1,l.modifiedStartLineNumber+1):c=new nr(l.modifiedStartLineNumber,l.modifiedEndLineNumber+1);let N=new ts(v,c,(i=l.charChanges)===null||i===void 0?void 0:i.map(_=>new mo(new Ur(_.originalStartLineNumber,_.originalStartColumn,_.originalEndLineNumber,_.originalEndColumn),new Ur(_.modifiedStartLineNumber,_.modifiedStartColumn,_.modifiedEndLineNumber,_.modifiedEndColumn))));u&&(u.modified.endLineNumberExclusive===N.modified.startLineNumber||u.original.endLineNumberExclusive===N.original.startLineNumber)&&(N=new ts(u.original.join(N.original),u.modified.join(N.modified),u.innerChanges&&N.innerChanges?u.innerChanges.concat(N.innerChanges):void 0),o.pop()),o.push(N),u=N}return su(()=>jd(o,(l,v)=>v.original.startLineNumber-l.original.endLineNumberExclusive===v.modified.startLineNumber-l.modified.endLineNumberExclusive&&l.original.endLineNumberExclusive<v.original.startLineNumber&&l.modified.endLineNumberExclusive<v.modified.startLineNumber)),new au(o,[],a.quitEarly)}}function Vd(e,t,n,r){return new Ds(e,t,n).ComputeDiff(r)}let qd=class{constructor(t){const n=[],r=[];for(let i=0,s=t.length;i<s;i++)n[i]=tc(t[i],1),r[i]=nc(t[i],1);this.lines=t,this._startColumns=n,this._endColumns=r}getElements(){const t=[];for(let n=0,r=this.lines.length;n<r;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,r){const i=[],s=[],a=[];let o=0;for(let u=n;u<=r;u++){const l=this.lines[u],v=t?this._startColumns[u]:1,c=t?this._endColumns[u]:l.length+1;for(let N=v;N<c;N++)i[o]=l.charCodeAt(N-1),s[o]=u+1,a[o]=N,o++;!t&&u<r&&(i[o]=10,s[o]=u+1,a[o]=l.length+1,o++)}return new sy(i,s,a)}};class sy{constructor(t,n,r){this._charCodes=t,this._lineNumbers=n,this._columns=r}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 ba{constructor(t,n,r,i,s,a,o,u){this.originalStartLineNumber=t,this.originalStartColumn=n,this.originalEndLineNumber=r,this.originalEndColumn=i,this.modifiedStartLineNumber=s,this.modifiedStartColumn=a,this.modifiedEndLineNumber=o,this.modifiedEndColumn=u}static createFromDiffChange(t,n,r){const i=n.getStartLineNumber(t.originalStart),s=n.getStartColumn(t.originalStart),a=n.getEndLineNumber(t.originalStart+t.originalLength-1),o=n.getEndColumn(t.originalStart+t.originalLength-1),u=r.getStartLineNumber(t.modifiedStart),l=r.getStartColumn(t.modifiedStart),v=r.getEndLineNumber(t.modifiedStart+t.modifiedLength-1),c=r.getEndColumn(t.modifiedStart+t.modifiedLength-1);return new ba(i,s,a,o,u,l,v,c)}}function ay(e){if(e.length<=1)return e;const t=[e[0]];let n=t[0];for(let r=1,i=e.length;r<i;r++){const s=e[r],a=s.originalStart-(n.originalStart+n.originalLength),o=s.modifiedStart-(n.modifiedStart+n.modifiedLength);Math.min(a,o)<ry?(n.originalLength=s.originalStart+s.originalLength-n.originalStart,n.modifiedLength=s.modifiedStart+s.modifiedLength-n.modifiedStart):(t.push(s),n=s)}return t}class go{constructor(t,n,r,i,s){this.originalStartLineNumber=t,this.originalEndLineNumber=n,this.modifiedStartLineNumber=r,this.modifiedEndLineNumber=i,this.charChanges=s}static createFromDiffResult(t,n,r,i,s,a,o){let u,l,v,c,N;if(n.originalLength===0?(u=r.getStartLineNumber(n.originalStart)-1,l=0):(u=r.getStartLineNumber(n.originalStart),l=r.getEndLineNumber(n.originalStart+n.originalLength-1)),n.modifiedLength===0?(v=i.getStartLineNumber(n.modifiedStart)-1,c=0):(v=i.getStartLineNumber(n.modifiedStart),c=i.getEndLineNumber(n.modifiedStart+n.modifiedLength-1)),a&&n.originalLength>0&&n.originalLength<20&&n.modifiedLength>0&&n.modifiedLength<20&&s()){const _=r.createCharSequence(t,n.originalStart,n.originalStart+n.originalLength-1),Z=i.createCharSequence(t,n.modifiedStart,n.modifiedStart+n.modifiedLength-1);if(_.getElements().length>0&&Z.getElements().length>0){let te=Vd(_,Z,s,!0).changes;o&&(te=ay(te)),N=[];for(let M=0,he=te.length;M<he;M++)N.push(ba.createFromDiffChange(te[M],_,Z))}}return new go(u,l,v,c,N)}}class oy{constructor(t,n,r){this.shouldComputeCharChanges=r.shouldComputeCharChanges,this.shouldPostProcessCharChanges=r.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=r.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=r.shouldMakePrettyDiff,this.originalLines=t,this.modifiedLines=n,this.original=new qd(t),this.modified=new qd(n),this.continueLineDiff=Ud(r.maxComputationTime),this.continueCharDiff=Ud(r.maxComputationTime===0?0:Math.min(r.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=Vd(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),n=t.changes,r=t.quitEarly;if(this.shouldIgnoreTrimWhitespace){const o=[];for(let u=0,l=n.length;u<l;u++)o.push(go.createFromDiffResult(this.shouldIgnoreTrimWhitespace,n[u],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:r,changes:o}}const i=[];let s=0,a=0;for(let o=-1,u=n.length;o<u;o++){const l=o+1<u?n[o+1]:null,v=l?l.originalStart:this.originalLines.length,c=l?l.modifiedStart:this.modifiedLines.length;for(;s<v&&a<c;){const N=this.originalLines[s],_=this.modifiedLines[a];if(N!==_){{let Z=tc(N,1),te=tc(_,1);for(;Z>1&&te>1;){const M=N.charCodeAt(Z-2),he=_.charCodeAt(te-2);if(M!==he)break;Z--,te--}(Z>1||te>1)&&this._pushTrimWhitespaceCharChange(i,s+1,1,Z,a+1,1,te)}{let Z=nc(N,1),te=nc(_,1);const M=N.length+1,he=_.length+1;for(;Z<M&&te<he;){const Ae=N.charCodeAt(Z-1),Fe=N.charCodeAt(te-1);if(Ae!==Fe)break;Z++,te++}(Z<M||te<he)&&this._pushTrimWhitespaceCharChange(i,s+1,Z,M,a+1,te,he)}}s++,a++}l&&(i.push(go.createFromDiffResult(this.shouldIgnoreTrimWhitespace,l,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),s+=l.originalLength,a+=l.modifiedLength)}return{quitEarly:r,changes:i}}_pushTrimWhitespaceCharChange(t,n,r,i,s,a,o){if(this._mergeTrimWhitespaceCharChange(t,n,r,i,s,a,o))return;let u;this.shouldComputeCharChanges&&(u=[new ba(n,r,n,i,s,a,s,o)]),t.push(new go(n,n,s,s,u))}_mergeTrimWhitespaceCharChange(t,n,r,i,s,a,o){const u=t.length;if(u===0)return!1;const l=t[u-1];return l.originalEndLineNumber===0||l.modifiedEndLineNumber===0?!1:l.originalEndLineNumber===n&&l.modifiedEndLineNumber===s?(this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new ba(n,r,n,i,s,a,s,o)),!0):l.originalEndLineNumber+1===n&&l.modifiedEndLineNumber+1===s?(l.originalEndLineNumber=n,l.modifiedEndLineNumber=s,this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new ba(n,r,n,i,s,a,s,o)),!0):!1}}function tc(e,t){const n=qg(e);return n===-1?t:n+1}function nc(e,t){const n=Ug(e);return n===-1?t:n+2}function Ud(e){if(e===0)return()=>!0;const t=Date.now();return()=>Date.now()-t<e}class ns{static trivial(t,n){return new ns([new kr(Xn.ofLength(t.length),Xn.ofLength(n.length))],!1)}static trivialTimedOut(t,n){return new ns([new kr(Xn.ofLength(t.length),Xn.ofLength(n.length))],!0)}constructor(t,n){this.diffs=t,this.hitTimeout=n}}class kr{static invert(t,n){const r=[];return x1(t,(i,s)=>{r.push(kr.fromOffsetPairs(i?i.getEndExclusives():Hi.zero,s?s.getStarts():new Hi(n,(i?i.seq2Range.endExclusive-i.seq1Range.endExclusive:0)+n)))}),r}static fromOffsetPairs(t,n){return new kr(new Xn(t.offset1,n.offset1),new Xn(t.offset2,n.offset2))}constructor(t,n){this.seq1Range=t,this.seq2Range=n}swap(){return new kr(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(t){return new kr(this.seq1Range.join(t.seq1Range),this.seq2Range.join(t.seq2Range))}delta(t){return t===0?this:new kr(this.seq1Range.delta(t),this.seq2Range.delta(t))}deltaStart(t){return t===0?this:new kr(this.seq1Range.deltaStart(t),this.seq2Range.deltaStart(t))}deltaEnd(t){return t===0?this:new kr(this.seq1Range.deltaEnd(t),this.seq2Range.deltaEnd(t))}intersect(t){const n=this.seq1Range.intersect(t.seq1Range),r=this.seq2Range.intersect(t.seq2Range);if(!(!n||!r))return new kr(n,r)}getStarts(){return new Hi(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new Hi(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}class Hi{constructor(t,n){this.offset1=t,this.offset2=n}toString(){return`${this.offset1} <-> ${this.offset2}`}}Hi.zero=new Hi(0,0),Hi.max=new Hi(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER);class yo{isValid(){return!0}}yo.instance=new yo;class uy{constructor(t){if(this.timeout=t,this.startTime=Date.now(),this.valid=!0,t<=0)throw new ms("timeout must be positive")}isValid(){if(!(Date.now()-this.startTime<this.timeout)&&this.valid){this.valid=!1;debugger}return this.valid}}class rc{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,r){this.array[t+n*this.width]=r}}function ic(e){return e===32||e===9}class va{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,r){this.range=t,this.lines=n,this.source=r,this.histogram=[];let i=0;for(let s=t.startLineNumber-1;s<t.endLineNumberExclusive-1;s++){const a=n[s];for(let u=0;u<a.length;u++){i++;const l=a[u],v=va.getKey(l);this.histogram[v]=(this.histogram[v]||0)+1}i++;const o=va.getKey(`
9
- `);this.histogram[o]=(this.histogram[o]||0)+1}this.totalCount=i}computeSimilarity(t){var n,r;let i=0;const s=Math.max(this.histogram.length,t.histogram.length);for(let a=0;a<s;a++)i+=Math.abs(((n=this.histogram[a])!==null&&n!==void 0?n:0)-((r=t.histogram[a])!==null&&r!==void 0?r:0));return 1-i/(this.totalCount+t.totalCount)}}va.chrKeys=new Map;class ly{compute(t,n,r=yo.instance,i){if(t.length===0||n.length===0)return ns.trivial(t,n);const s=new rc(t.length,n.length),a=new rc(t.length,n.length),o=new rc(t.length,n.length);for(let Z=0;Z<t.length;Z++)for(let te=0;te<n.length;te++){if(!r.isValid())return ns.trivialTimedOut(t,n);const M=Z===0?0:s.get(Z-1,te),he=te===0?0:s.get(Z,te-1);let Ae;t.getElement(Z)===n.getElement(te)?(Z===0||te===0?Ae=0:Ae=s.get(Z-1,te-1),Z>0&&te>0&&a.get(Z-1,te-1)===3&&(Ae+=o.get(Z-1,te-1)),Ae+=i?i(Z,te):1):Ae=-1;const Fe=Math.max(M,he,Ae);if(Fe===Ae){const ke=Z>0&&te>0?o.get(Z-1,te-1):0;o.set(Z,te,ke+1),a.set(Z,te,3)}else Fe===M?(o.set(Z,te,0),a.set(Z,te,1)):Fe===he&&(o.set(Z,te,0),a.set(Z,te,2));s.set(Z,te,Fe)}const u=[];let l=t.length,v=n.length;function c(Z,te){(Z+1!==l||te+1!==v)&&u.push(new kr(new Xn(Z+1,l),new Xn(te+1,v))),l=Z,v=te}let N=t.length-1,_=n.length-1;for(;N>=0&&_>=0;)a.get(N,_)===3?(c(N,_),N--,_--):a.get(N,_)===1?N--:_--;return c(-1,-1),u.reverse(),new ns(u,!1)}}class Wd{compute(t,n,r=yo.instance){if(t.length===0||n.length===0)return ns.trivial(t,n);const i=t,s=n;function a(te,M){for(;te<i.length&&M<s.length&&i.getElement(te)===s.getElement(M);)te++,M++;return te}let o=0;const u=new cy;u.set(0,a(0,0));const l=new fy;l.set(0,u.get(0)===0?null:new Gd(null,0,0,u.get(0)));let v=0;e:for(;;){if(o++,!r.isValid())return ns.trivialTimedOut(i,s);const te=-Math.min(o,s.length+o%2),M=Math.min(o,i.length+o%2);for(v=te;v<=M;v+=2){const he=v===M?-1:u.get(v+1),Ae=v===te?-1:u.get(v-1)+1,Fe=Math.min(Math.max(he,Ae),i.length),ke=Fe-v;if(Fe>i.length||ke>s.length)continue;const ae=a(Fe,ke);u.set(v,ae);const Ee=Fe===he?l.get(v+1):l.get(v-1);if(l.set(v,ae!==Fe?new Gd(Ee,Fe,ke,ae-Fe):Ee),u.get(v)===i.length&&u.get(v)-v===s.length)break e}}let c=l.get(v);const N=[];let _=i.length,Z=s.length;for(;;){const te=c?c.x+c.length:0,M=c?c.y+c.length:0;if((te!==_||M!==Z)&&N.push(new kr(new Xn(te,_),new Xn(M,Z))),!c)break;_=c.x,Z=c.y,c=c.prev}return N.reverse(),new ns(N,!1)}}class Gd{constructor(t,n,r,i){this.prev=t,this.x=n,this.y=r,this.length=i}}class cy{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(t){return t<0?(t=-t-1,this.negativeArr[t]):this.positiveArr[t]}set(t,n){if(t<0){if(t=-t-1,t>=this.negativeArr.length){const r=this.negativeArr;this.negativeArr=new Int32Array(r.length*2),this.negativeArr.set(r)}this.negativeArr[t]=n}else{if(t>=this.positiveArr.length){const r=this.positiveArr;this.positiveArr=new Int32Array(r.length*2),this.positiveArr.set(r)}this.positiveArr[t]=n}}}class fy{constructor(){this.positiveArr=[],this.negativeArr=[]}get(t){return t<0?(t=-t-1,this.negativeArr[t]):this.positiveArr[t]}set(t,n){t<0?(t=-t-1,this.negativeArr[t]=n):this.positiveArr[t]=n}}class py{constructor(){this.map=new Map}add(t,n){let r=this.map.get(t);r||(r=new Set,this.map.set(t,r)),r.add(n)}delete(t,n){const r=this.map.get(t);r&&(r.delete(n),r.size===0&&this.map.delete(t))}forEach(t,n){const r=this.map.get(t);r&&r.forEach(n)}get(t){const n=this.map.get(t);return n||new Set}}class ou{constructor(t,n,r){this.lines=t,this.considerWhitespaceChanges=r,this.elements=[],this.firstCharOffsetByLine=[],this.additionalOffsetByLine=[];let i=!1;n.start>0&&n.endExclusive>=t.length&&(n=new Xn(n.start-1,n.endExclusive),i=!0),this.lineRange=n,this.firstCharOffsetByLine[0]=0;for(let s=this.lineRange.start;s<this.lineRange.endExclusive;s++){let a=t[s],o=0;if(i)o=a.length,a="",i=!1;else if(!r){const u=a.trimStart();o=a.length-u.length,a=u.trimEnd()}this.additionalOffsetByLine.push(o);for(let u=0;u<a.length;u++)this.elements.push(a.charCodeAt(u));s<t.length-1&&(this.elements.push(10),this.firstCharOffsetByLine[s-this.lineRange.start+1]=this.elements.length)}this.additionalOffsetByLine.push(0)}toString(){return`Slice: "${this.text}"`}get text(){return this.getText(new Xn(0,this.length))}getText(t){return this.elements.slice(t.start,t.endExclusive).map(n=>String.fromCharCode(n)).join("")}getElement(t){return this.elements[t]}get length(){return this.elements.length}getBoundaryScore(t){const n=Yd(t>0?this.elements[t-1]:-1),r=Yd(t<this.elements.length?this.elements[t]:-1);if(n===7&&r===8)return 0;let i=0;return n!==r&&(i+=10,n===0&&r===1&&(i+=1)),i+=Jd(n),i+=Jd(r),i}translateOffset(t){if(this.lineRange.isEmpty)return new Ji(this.lineRange.start+1,1);const n=po(this.firstCharOffsetByLine,r=>r<=t);return new Ji(this.lineRange.start+n+1,t-this.firstCharOffsetByLine[n]+this.additionalOffsetByLine[n]+1)}translateRange(t){return Ur.fromPositions(this.translateOffset(t.start),this.translateOffset(t.endExclusive))}findWordContaining(t){if(t<0||t>=this.elements.length||!sc(this.elements[t]))return;let n=t;for(;n>0&&sc(this.elements[n-1]);)n--;let r=t;for(;r<this.elements.length&&sc(this.elements[r]);)r++;return new Xn(n,r)}countLinesIn(t){return this.translateOffset(t.endExclusive).lineNumber-this.translateOffset(t.start).lineNumber}isStronglyEqual(t,n){return this.elements[t]===this.elements[n]}extendToFullLines(t){var n,r;const i=(n=Da(this.firstCharOffsetByLine,a=>a<=t.start))!==null&&n!==void 0?n:0,s=(r=ny(this.firstCharOffsetByLine,a=>t.endExclusive<=a))!==null&&r!==void 0?r:this.elements.length;return new Xn(i,s)}}function sc(e){return e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}const dy={0:0,1:0,2:0,3:10,4:2,5:3,6:3,7:10,8:10};function Jd(e){return dy[e]}function Yd(e){return e===10?8:e===13?7:ic(e)?6:e>=97&&e<=122?0:e>=65&&e<=90?1:e>=48&&e<=57?2:e===-1?3:e===44||e===59?5:4}function hy(e,t,n,r,i,s){let{moves:a,excludedChanges:o}=gy(e,t,n,s);if(!s.isValid())return[];const u=e.filter(v=>!o.has(v)),l=yy(u,r,i,t,n,s);return w1(a,l),a=Dy(a),a=a.filter(v=>{const c=v.original.toOffsetRange().slice(t).map(_=>_.trim());return c.join(`
10
- `).length>=15&&my(c,_=>_.length>=2)>=2}),a=by(e,a),a}function my(e,t){let n=0;for(const r of e)t(r)&&n++;return n}function gy(e,t,n,r){const i=[],s=e.filter(u=>u.modified.isEmpty&&u.original.length>=3).map(u=>new va(u.original,t,u)),a=new Set(e.filter(u=>u.original.isEmpty&&u.modified.length>=3).map(u=>new va(u.modified,n,u))),o=new Set;for(const u of s){let l=-1,v;for(const c of a){const N=u.computeSimilarity(c);N>l&&(l=N,v=c)}if(l>.9&&v&&(a.delete(v),i.push(new Cs(u.range,v.range)),o.add(u.source),o.add(v.source)),!r.isValid())return{moves:i,excludedChanges:o}}return{moves:i,excludedChanges:o}}function yy(e,t,n,r,i,s){const a=[],o=new py;for(const N of e)for(let _=N.original.startLineNumber;_<N.original.endLineNumberExclusive-2;_++){const Z=`${t[_-1]}:${t[_+1-1]}:${t[_+2-1]}`;o.add(Z,{range:new nr(_,_+3)})}const u=[];e.sort(Zo(N=>N.modified.startLineNumber,eu));for(const N of e){let _=[];for(let Z=N.modified.startLineNumber;Z<N.modified.endLineNumberExclusive-2;Z++){const te=`${n[Z-1]}:${n[Z+1-1]}:${n[Z+2-1]}`,M=new nr(Z,Z+3),he=[];o.forEach(te,({range:Ae})=>{for(const ke of _)if(ke.originalLineRange.endLineNumberExclusive+1===Ae.endLineNumberExclusive&&ke.modifiedLineRange.endLineNumberExclusive+1===M.endLineNumberExclusive){ke.originalLineRange=new nr(ke.originalLineRange.startLineNumber,Ae.endLineNumberExclusive),ke.modifiedLineRange=new nr(ke.modifiedLineRange.startLineNumber,M.endLineNumberExclusive),he.push(ke);return}const Fe={modifiedLineRange:M,originalLineRange:Ae};u.push(Fe),he.push(Fe)}),_=he}if(!s.isValid())return[]}u.sort(F1(Zo(N=>N.modifiedLineRange.length,eu)));const l=new Yi,v=new Yi;for(const N of u){const _=N.modifiedLineRange.startLineNumber-N.originalLineRange.startLineNumber,Z=l.subtractFrom(N.modifiedLineRange),te=v.subtractFrom(N.originalLineRange).getWithDelta(_),M=Z.getIntersection(te);for(const he of M.ranges){if(he.length<3)continue;const Ae=he,Fe=he.delta(-_);a.push(new Cs(Fe,Ae)),l.addRange(Ae),v.addRange(Fe)}}a.sort(Zo(N=>N.original.startLineNumber,eu));const c=new ho(e);for(let N=0;N<a.length;N++){const _=a[N],Z=c.findLastMonotonous(Ee=>Ee.original.startLineNumber<=_.original.startLineNumber),te=Da(e,Ee=>Ee.modified.startLineNumber<=_.modified.startLineNumber),M=Math.max(_.original.startLineNumber-Z.original.startLineNumber,_.modified.startLineNumber-te.modified.startLineNumber),he=c.findLastMonotonous(Ee=>Ee.original.startLineNumber<_.original.endLineNumberExclusive),Ae=Da(e,Ee=>Ee.modified.startLineNumber<_.modified.endLineNumberExclusive),Fe=Math.max(he.original.endLineNumberExclusive-_.original.endLineNumberExclusive,Ae.modified.endLineNumberExclusive-_.modified.endLineNumberExclusive);let ke;for(ke=0;ke<M;ke++){const Ee=_.original.startLineNumber-ke-1,Qe=_.modified.startLineNumber-ke-1;if(Ee>r.length||Qe>i.length||l.contains(Qe)||v.contains(Ee)||!Hd(r[Ee-1],i[Qe-1],s))break}ke>0&&(v.addRange(new nr(_.original.startLineNumber-ke,_.original.startLineNumber)),l.addRange(new nr(_.modified.startLineNumber-ke,_.modified.startLineNumber)));let ae;for(ae=0;ae<Fe;ae++){const Ee=_.original.endLineNumberExclusive+ae,Qe=_.modified.endLineNumberExclusive+ae;if(Ee>r.length||Qe>i.length||l.contains(Qe)||v.contains(Ee)||!Hd(r[Ee-1],i[Qe-1],s))break}ae>0&&(v.addRange(new nr(_.original.endLineNumberExclusive,_.original.endLineNumberExclusive+ae)),l.addRange(new nr(_.modified.endLineNumberExclusive,_.modified.endLineNumberExclusive+ae))),(ke>0||ae>0)&&(a[N]=new Cs(new nr(_.original.startLineNumber-ke,_.original.endLineNumberExclusive+ae),new nr(_.modified.startLineNumber-ke,_.modified.endLineNumberExclusive+ae)))}return a}function Hd(e,t,n){if(e.trim()===t.trim())return!0;if(e.length>300&&t.length>300)return!1;const i=new Wd().compute(new ou([e],new Xn(0,1),!1),new ou([t],new Xn(0,1),!1),n);let s=0;const a=kr.invert(i.diffs,e.length);for(const v of a)v.seq1Range.forEach(c=>{ic(e.charCodeAt(c))||s++});function o(v){let c=0;for(let N=0;N<e.length;N++)ic(v.charCodeAt(N))||c++;return c}const u=o(e.length>t.length?e:t);return s/u>.6&&u>10}function Dy(e){if(e.length===0)return e;e.sort(Zo(n=>n.original.startLineNumber,eu));const t=[e[0]];for(let n=1;n<e.length;n++){const r=t[t.length-1],i=e[n],s=i.original.startLineNumber-r.original.endLineNumberExclusive,a=i.modified.startLineNumber-r.modified.endLineNumberExclusive;if(s>=0&&a>=0&&s+a<=2){t[t.length-1]=r.join(i);continue}t.push(i)}return t}function by(e,t){const n=new ho(e);return t=t.filter(r=>{const i=n.findLastMonotonous(o=>o.original.startLineNumber<r.original.endLineNumberExclusive)||new Cs(new nr(1,1),new nr(1,1)),s=Da(e,o=>o.modified.startLineNumber<r.modified.endLineNumberExclusive);return i!==s}),t}function zd(e,t,n){let r=n;return r=Qd(e,t,r),r=Qd(e,t,r),r=vy(e,t,r),r}function Qd(e,t,n){if(n.length===0)return n;const r=[];r.push(n[0]);for(let s=1;s<n.length;s++){const a=r[r.length-1];let o=n[s];if(o.seq1Range.isEmpty||o.seq2Range.isEmpty){const u=o.seq1Range.start-a.seq1Range.endExclusive;let l;for(l=1;l<=u&&!(e.getElement(o.seq1Range.start-l)!==e.getElement(o.seq1Range.endExclusive-l)||t.getElement(o.seq2Range.start-l)!==t.getElement(o.seq2Range.endExclusive-l));l++);if(l--,l===u){r[r.length-1]=new kr(new Xn(a.seq1Range.start,o.seq1Range.endExclusive-u),new Xn(a.seq2Range.start,o.seq2Range.endExclusive-u));continue}o=o.delta(-l)}r.push(o)}const i=[];for(let s=0;s<r.length-1;s++){const a=r[s+1];let o=r[s];if(o.seq1Range.isEmpty||o.seq2Range.isEmpty){const u=a.seq1Range.start-o.seq1Range.endExclusive;let l;for(l=0;l<u&&!(!e.isStronglyEqual(o.seq1Range.start+l,o.seq1Range.endExclusive+l)||!t.isStronglyEqual(o.seq2Range.start+l,o.seq2Range.endExclusive+l));l++);if(l===u){r[s+1]=new kr(new Xn(o.seq1Range.start+u,a.seq1Range.endExclusive),new Xn(o.seq2Range.start+u,a.seq2Range.endExclusive));continue}l>0&&(o=o.delta(l))}i.push(o)}return r.length>0&&i.push(r[r.length-1]),i}function vy(e,t,n){if(!e.getBoundaryScore||!t.getBoundaryScore)return n;for(let r=0;r<n.length;r++){const i=r>0?n[r-1]:void 0,s=n[r],a=r+1<n.length?n[r+1]:void 0,o=new Xn(i?i.seq1Range.start+1:0,a?a.seq1Range.endExclusive-1:e.length),u=new Xn(i?i.seq2Range.start+1:0,a?a.seq2Range.endExclusive-1:t.length);s.seq1Range.isEmpty?n[r]=Xd(s,e,t,o,u):s.seq2Range.isEmpty&&(n[r]=Xd(s.swap(),t,e,u,o).swap())}return n}function Xd(e,t,n,r,i){let a=1;for(;e.seq1Range.start-a>=r.start&&e.seq2Range.start-a>=i.start&&n.isStronglyEqual(e.seq2Range.start-a,e.seq2Range.endExclusive-a)&&a<100;)a++;a--;let o=0;for(;e.seq1Range.start+o<r.endExclusive&&e.seq2Range.endExclusive+o<i.endExclusive&&n.isStronglyEqual(e.seq2Range.start+o,e.seq2Range.endExclusive+o)&&o<100;)o++;if(a===0&&o===0)return e;let u=0,l=-1;for(let v=-a;v<=o;v++){const c=e.seq2Range.start+v,N=e.seq2Range.endExclusive+v,_=e.seq1Range.start+v,Z=t.getBoundaryScore(_)+n.getBoundaryScore(c)+n.getBoundaryScore(N);Z>l&&(l=Z,u=v)}return e.delta(u)}function Ey(e,t,n){const r=[];for(const i of n){const s=r[r.length-1];if(!s){r.push(i);continue}i.seq1Range.start-s.seq1Range.endExclusive<=2||i.seq2Range.start-s.seq2Range.endExclusive<=2?r[r.length-1]=new kr(s.seq1Range.join(i.seq1Range),s.seq2Range.join(i.seq2Range)):r.push(i)}return r}function Ay(e,t,n){const r=[];let i;function s(){if(!i)return;const o=i.s1Range.length-i.deleted;i.s2Range.length-i.added,Math.max(i.deleted,i.added)+(i.count-1)>o&&r.push(new kr(i.s1Range,i.s2Range)),i=void 0}for(const o of n){let u=function(_,Z){var te,M,he,Ae;if(!i||!i.s1Range.containsRange(_)||!i.s2Range.containsRange(Z))if(i&&!(i.s1Range.endExclusive<_.start&&i.s2Range.endExclusive<Z.start)){const ae=Xn.tryCreate(i.s1Range.endExclusive,_.start),Ee=Xn.tryCreate(i.s2Range.endExclusive,Z.start);i.deleted+=(te=ae==null?void 0:ae.length)!==null&&te!==void 0?te:0,i.added+=(M=Ee==null?void 0:Ee.length)!==null&&M!==void 0?M:0,i.s1Range=i.s1Range.join(_),i.s2Range=i.s2Range.join(Z)}else s(),i={added:0,deleted:0,count:0,s1Range:_,s2Range:Z};const Fe=_.intersect(o.seq1Range),ke=Z.intersect(o.seq2Range);i.count++,i.deleted+=(he=Fe==null?void 0:Fe.length)!==null&&he!==void 0?he:0,i.added+=(Ae=ke==null?void 0:ke.length)!==null&&Ae!==void 0?Ae:0};const l=e.findWordContaining(o.seq1Range.start-1),v=t.findWordContaining(o.seq2Range.start-1),c=e.findWordContaining(o.seq1Range.endExclusive),N=t.findWordContaining(o.seq2Range.endExclusive);l&&c&&v&&N&&l.equals(c)&&v.equals(N)?u(l,v):(l&&v&&u(l,v),c&&N&&u(c,N))}return s(),Cy(n,r)}function Cy(e,t){const n=[];for(;e.length>0||t.length>0;){const r=e[0],i=t[0];let s;r&&(!i||r.seq1Range.start<i.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 xy(e,t,n){let r=n;if(r.length===0)return r;let i=0,s;do{s=!1;const a=[r[0]];for(let o=1;o<r.length;o++){let v=function(N,_){const Z=new Xn(l.seq1Range.endExclusive,u.seq1Range.start);return e.getText(Z).replace(/\s/g,"").length<=4&&(N.seq1Range.length+N.seq2Range.length>5||_.seq1Range.length+_.seq2Range.length>5)};const u=r[o],l=a[a.length-1];v(l,u)?(s=!0,a[a.length-1]=a[a.length-1].join(u)):a.push(u)}r=a}while(i++<10&&s);return r}function Sy(e,t,n){let r=n;if(r.length===0)return r;let i=0,s;do{s=!1;const o=[r[0]];for(let u=1;u<r.length;u++){let c=function(_,Z){const te=new Xn(v.seq1Range.endExclusive,l.seq1Range.start);if(e.countLinesIn(te)>5||te.length>500)return!1;const he=e.getText(te).trim();if(he.length>20||he.split(/\r\n|\r|\n/).length>1)return!1;const Ae=e.countLinesIn(_.seq1Range),Fe=_.seq1Range.length,ke=t.countLinesIn(_.seq2Range),ae=_.seq2Range.length,Ee=e.countLinesIn(Z.seq1Range),Qe=Z.seq1Range.length,Dt=t.countLinesIn(Z.seq2Range),Ve=Z.seq2Range.length,Xe=2*40+50;function ze(me){return Math.min(me,Xe)}return Math.pow(Math.pow(ze(Ae*40+Fe),1.5)+Math.pow(ze(ke*40+ae),1.5),1.5)+Math.pow(Math.pow(ze(Ee*40+Qe),1.5)+Math.pow(ze(Dt*40+Ve),1.5),1.5)>(Xe**1.5)**1.5*1.3};const l=r[u],v=o[o.length-1];c(v,l)?(s=!0,o[o.length-1]=o[o.length-1].join(l)):o.push(l)}r=o}while(i++<10&&s);const a=[];return S1(r,(o,u,l)=>{let v=u;function c(he){return he.length>0&&he.trim().length<=3&&u.seq1Range.length+u.seq2Range.length>100}const N=e.extendToFullLines(u.seq1Range),_=e.getText(new Xn(N.start,u.seq1Range.start));c(_)&&(v=v.deltaStart(-_.length));const Z=e.getText(new Xn(u.seq1Range.endExclusive,N.endExclusive));c(Z)&&(v=v.deltaEnd(Z.length));const te=kr.fromOffsetPairs(o?o.getEndExclusives():Hi.zero,l?l.getStarts():Hi.max),M=v.intersect(te);a.push(M)}),a}class Kd{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:Zd(this.lines[t-1]),r=t===this.lines.length?0:Zd(this.lines[t]);return 1e3-(n+r)}getText(t){return this.lines.slice(t.start,t.endExclusive).join(`
11
- `)}isStronglyEqual(t,n){return this.lines[t]===this.lines[n]}}function Zd(e){let t=0;for(;t<e.length&&(e.charCodeAt(t)===32||e.charCodeAt(t)===9);)t++;return t}class wy{constructor(){this.dynamicProgrammingDiffing=new ly,this.myersDiffingAlgorithm=new Wd}computeDiff(t,n,r){if(t.length<=1&&A1(t,n,(ae,Ee)=>ae===Ee))return new au([],[],!1);if(t.length===1&&t[0].length===0||n.length===1&&n[0].length===0)return new au([new ts(new nr(1,t.length+1),new nr(1,n.length+1),[new mo(new Ur(1,1,t.length,t[0].length+1),new Ur(1,1,n.length,n[0].length+1))])],[],!1);const i=r.maxComputationTimeMs===0?yo.instance:new uy(r.maxComputationTimeMs),s=!r.ignoreTrimWhitespace,a=new Map;function o(ae){let Ee=a.get(ae);return Ee===void 0&&(Ee=a.size,a.set(ae,Ee)),Ee}const u=t.map(ae=>o(ae.trim())),l=n.map(ae=>o(ae.trim())),v=new Kd(u,t),c=new Kd(l,n),N=v.length+c.length<1700?this.dynamicProgrammingDiffing.compute(v,c,i,(ae,Ee)=>t[ae]===n[Ee]?n[Ee].length===0?.1:1+Math.log(1+n[Ee].length):.99):this.myersDiffingAlgorithm.compute(v,c);let _=N.diffs,Z=N.hitTimeout;_=zd(v,c,_),_=xy(v,c,_);const te=[],M=ae=>{if(s)for(let Ee=0;Ee<ae;Ee++){const Qe=he+Ee,Dt=Ae+Ee;if(t[Qe]!==n[Dt]){const Ve=this.refineDiff(t,n,new kr(new Xn(Qe,Qe+1),new Xn(Dt,Dt+1)),i,s);for(const Xe of Ve.mappings)te.push(Xe);Ve.hitTimeout&&(Z=!0)}}};let he=0,Ae=0;for(const ae of _){su(()=>ae.seq1Range.start-he===ae.seq2Range.start-Ae);const Ee=ae.seq1Range.start-he;M(Ee),he=ae.seq1Range.endExclusive,Ae=ae.seq2Range.endExclusive;const Qe=this.refineDiff(t,n,ae,i,s);Qe.hitTimeout&&(Z=!0);for(const Dt of Qe.mappings)te.push(Dt)}M(t.length-he);const Fe=eh(te,t,n);let ke=[];return r.computeMoves&&(ke=this.computeMoves(Fe,t,n,u,l,i,s)),su(()=>{function ae(Qe,Dt){if(Qe.lineNumber<1||Qe.lineNumber>Dt.length)return!1;const Ve=Dt[Qe.lineNumber-1];return!(Qe.column<1||Qe.column>Ve.length+1)}function Ee(Qe,Dt){return!(Qe.startLineNumber<1||Qe.startLineNumber>Dt.length+1||Qe.endLineNumberExclusive<1||Qe.endLineNumberExclusive>Dt.length+1)}for(const Qe of Fe){if(!Qe.innerChanges)return!1;for(const Dt of Qe.innerChanges)if(!(ae(Dt.modifiedRange.getStartPosition(),n)&&ae(Dt.modifiedRange.getEndPosition(),n)&&ae(Dt.originalRange.getStartPosition(),t)&&ae(Dt.originalRange.getEndPosition(),t)))return!1;if(!Ee(Qe.modified,n)||!Ee(Qe.original,t))return!1}return!0}),new au(Fe,ke,Z)}computeMoves(t,n,r,i,s,a,o){return hy(t,n,r,i,s,a).map(v=>{const c=this.refineDiff(n,r,new kr(v.original.toOffsetRange(),v.modified.toOffsetRange()),a,o),N=eh(c.mappings,n,r,!0);return new ty(v,N)})}refineDiff(t,n,r,i,s){const a=new ou(t,r.seq1Range,s),o=new ou(n,r.seq2Range,s),u=a.length+o.length<500?this.dynamicProgrammingDiffing.compute(a,o,i):this.myersDiffingAlgorithm.compute(a,o,i);let l=u.diffs;return l=zd(a,o,l),l=Ay(a,o,l),l=Ey(a,o,l),l=Sy(a,o,l),{mappings:l.map(c=>new mo(a.translateRange(c.seq1Range),o.translateRange(c.seq2Range))),hitTimeout:u.hitTimeout}}}function eh(e,t,n,r=!1){const i=[];for(const s of C1(e.map(a=>Fy(a,t,n)),(a,o)=>a.original.overlapOrTouch(o.original)||a.modified.overlapOrTouch(o.modified))){const a=s[0],o=s[s.length-1];i.push(new ts(a.original.join(o.original),a.modified.join(o.modified),s.map(u=>u.innerChanges[0])))}return su(()=>!r&&i.length>0&&i[0].original.startLineNumber!==i[0].modified.startLineNumber?!1:jd(i,(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)),i}function Fy(e,t,n){let r=0,i=0;e.modifiedRange.endColumn===1&&e.originalRange.endColumn===1&&e.originalRange.startLineNumber+r<=e.originalRange.endLineNumber&&e.modifiedRange.startLineNumber+r<=e.modifiedRange.endLineNumber&&(i=-1),e.modifiedRange.startColumn-1>=n[e.modifiedRange.startLineNumber-1].length&&e.originalRange.startColumn-1>=t[e.originalRange.startLineNumber-1].length&&e.originalRange.startLineNumber<=e.originalRange.endLineNumber+i&&e.modifiedRange.startLineNumber<=e.modifiedRange.endLineNumber+i&&(r=1);const s=new nr(e.originalRange.startLineNumber+r,e.originalRange.endLineNumber+1+i),a=new nr(e.modifiedRange.startLineNumber+r,e.modifiedRange.endLineNumber+1+i);return new ts(s,a,[e])}const th={getLegacy:()=>new iy,getDefault:()=>new wy};function xs(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}class Wr{constructor(t,n,r,i=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,r))|0,this.a=xs(Math.max(Math.min(1,i),0),3)}static equals(t,n){return t.r===n.r&&t.g===n.g&&t.b===n.b&&t.a===n.a}}class Si{constructor(t,n,r,i){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,t),0)|0,this.s=xs(Math.max(Math.min(1,n),0),3),this.l=xs(Math.max(Math.min(1,r),0),3),this.a=xs(Math.max(Math.min(1,i),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,r=t.g/255,i=t.b/255,s=t.a,a=Math.max(n,r,i),o=Math.min(n,r,i);let u=0,l=0;const v=(o+a)/2,c=a-o;if(c>0){switch(l=Math.min(v<=.5?c/(2*v):c/(2-2*v),1),a){case n:u=(r-i)/c+(r<i?6:0);break;case r:u=(i-n)/c+2;break;case i:u=(n-r)/c+4;break}u*=60,u=Math.round(u)}return new Si(u,l,v,s)}static _hue2rgb(t,n,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(n-t)*6*r:r<1/2?n:r<2/3?t+(n-t)*(2/3-r)*6:t}static toRGBA(t){const n=t.h/360,{s:r,l:i,a:s}=t;let a,o,u;if(r===0)a=o=u=i;else{const l=i<.5?i*(1+r):i+r-i*r,v=2*i-l;a=Si._hue2rgb(v,l,n+1/3),o=Si._hue2rgb(v,l,n),u=Si._hue2rgb(v,l,n-1/3)}return new Wr(Math.round(a*255),Math.round(o*255),Math.round(u*255),s)}}class Ea{constructor(t,n,r,i){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,t),0)|0,this.s=xs(Math.max(Math.min(1,n),0),3),this.v=xs(Math.max(Math.min(1,r),0),3),this.a=xs(Math.max(Math.min(1,i),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,r=t.g/255,i=t.b/255,s=Math.max(n,r,i),a=Math.min(n,r,i),o=s-a,u=s===0?0:o/s;let l;return o===0?l=0:s===n?l=((r-i)/o%6+6)%6:s===r?l=(i-n)/o+2:l=(n-r)/o+4,new Ea(Math.round(l*60),u,s,t.a)}static toRGBA(t){const{h:n,s:r,v:i,a:s}=t,a=i*r,o=a*(1-Math.abs(n/60%2-1)),u=i-a;let[l,v,c]=[0,0,0];return n<60?(l=a,v=o):n<120?(l=o,v=a):n<180?(v=a,c=o):n<240?(v=o,c=a):n<300?(l=o,c=a):n<=360&&(l=a,c=o),l=Math.round((l+u)*255),v=Math.round((v+u)*255),c=Math.round((c+u)*255),new Wr(l,v,c,s)}}let Rr=class Pi{static fromHex(t){return Pi.Format.CSS.parseHex(t)||Pi.red}static equals(t,n){return!t&&!n?!0:!t||!n?!1:t.equals(n)}get hsla(){return this._hsla?this._hsla:Si.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:Ea.fromRGBA(this.rgba)}constructor(t){if(t)if(t instanceof Wr)this.rgba=t;else if(t instanceof Si)this._hsla=t,this.rgba=Si.toRGBA(t);else if(t instanceof Ea)this._hsva=t,this.rgba=Ea.toRGBA(t);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}equals(t){return!!t&&Wr.equals(this.rgba,t.rgba)&&Si.equals(this.hsla,t.hsla)&&Ea.equals(this.hsva,t.hsva)}getRelativeLuminance(){const t=Pi._relativeLuminanceForComponent(this.rgba.r),n=Pi._relativeLuminanceForComponent(this.rgba.g),r=Pi._relativeLuminanceForComponent(this.rgba.b),i=.2126*t+.7152*n+.0722*r;return xs(i,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(),r=t.getRelativeLuminance();return n>r}isDarkerThan(t){const n=this.getRelativeLuminance(),r=t.getRelativeLuminance();return n<r}lighten(t){return new Pi(new Si(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*t,this.hsla.a))}darken(t){return new Pi(new Si(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*t,this.hsla.a))}transparent(t){const{r:n,g:r,b:i,a:s}=this.rgba;return new Pi(new Wr(n,r,i,s*t))}isTransparent(){return this.rgba.a===0}isOpaque(){return this.rgba.a===1}opposite(){return new Pi(new Wr(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}makeOpaque(t){if(this.isOpaque()||t.rgba.a!==1)return this;const{r:n,g:r,b:i,a:s}=this.rgba;return new Pi(new Wr(t.rgba.r-s*(t.rgba.r-n),t.rgba.g-s*(t.rgba.g-r),t.rgba.b-s*(t.rgba.b-i),1))}toString(){return this._toString||(this._toString=Pi.Format.CSS.format(this)),this._toString}static getLighterColor(t,n,r){if(t.isLighterThan(n))return t;r=r||.5;const i=t.getRelativeLuminance(),s=n.getRelativeLuminance();return r=r*(s-i)/s,t.lighten(r)}static getDarkerColor(t,n,r){if(t.isDarkerThan(n))return t;r=r||.5;const i=t.getRelativeLuminance(),s=n.getRelativeLuminance();return r=r*(i-s)/i,t.darken(r)}};Rr.white=new Rr(new Wr(255,255,255,1)),Rr.black=new Rr(new Wr(0,0,0,1)),Rr.red=new Rr(new Wr(255,0,0,1)),Rr.blue=new Rr(new Wr(0,0,255,1)),Rr.green=new Rr(new Wr(0,255,0,1)),Rr.cyan=new Rr(new Wr(0,255,255,1)),Rr.lightgrey=new Rr(new Wr(211,211,211,1)),Rr.transparent=new Rr(new Wr(0,0,0,0)),function(e){(function(t){(function(n){function r(_){return _.rgba.a===1?`rgb(${_.rgba.r}, ${_.rgba.g}, ${_.rgba.b})`:e.Format.CSS.formatRGBA(_)}n.formatRGB=r;function i(_){return`rgba(${_.rgba.r}, ${_.rgba.g}, ${_.rgba.b}, ${+_.rgba.a.toFixed(2)})`}n.formatRGBA=i;function s(_){return _.hsla.a===1?`hsl(${_.hsla.h}, ${(_.hsla.s*100).toFixed(2)}%, ${(_.hsla.l*100).toFixed(2)}%)`:e.Format.CSS.formatHSLA(_)}n.formatHSL=s;function a(_){return`hsla(${_.hsla.h}, ${(_.hsla.s*100).toFixed(2)}%, ${(_.hsla.l*100).toFixed(2)}%, ${_.hsla.a.toFixed(2)})`}n.formatHSLA=a;function o(_){const Z=_.toString(16);return Z.length!==2?"0"+Z:Z}function u(_){return`#${o(_.rgba.r)}${o(_.rgba.g)}${o(_.rgba.b)}`}n.formatHex=u;function l(_,Z=!1){return Z&&_.rgba.a===1?e.Format.CSS.formatHex(_):`#${o(_.rgba.r)}${o(_.rgba.g)}${o(_.rgba.b)}${o(Math.round(_.rgba.a*255))}`}n.formatHexA=l;function v(_){return _.isOpaque()?e.Format.CSS.formatHex(_):e.Format.CSS.formatRGBA(_)}n.format=v;function c(_){const Z=_.length;if(Z===0||_.charCodeAt(0)!==35)return null;if(Z===7){const te=16*N(_.charCodeAt(1))+N(_.charCodeAt(2)),M=16*N(_.charCodeAt(3))+N(_.charCodeAt(4)),he=16*N(_.charCodeAt(5))+N(_.charCodeAt(6));return new e(new Wr(te,M,he,1))}if(Z===9){const te=16*N(_.charCodeAt(1))+N(_.charCodeAt(2)),M=16*N(_.charCodeAt(3))+N(_.charCodeAt(4)),he=16*N(_.charCodeAt(5))+N(_.charCodeAt(6)),Ae=16*N(_.charCodeAt(7))+N(_.charCodeAt(8));return new e(new Wr(te,M,he,Ae/255))}if(Z===4){const te=N(_.charCodeAt(1)),M=N(_.charCodeAt(2)),he=N(_.charCodeAt(3));return new e(new Wr(16*te+te,16*M+M,16*he+he))}if(Z===5){const te=N(_.charCodeAt(1)),M=N(_.charCodeAt(2)),he=N(_.charCodeAt(3)),Ae=N(_.charCodeAt(4));return new e(new Wr(16*te+te,16*M+M,16*he+he,(16*Ae+Ae)/255))}return null}n.parseHex=c;function N(_){switch(_){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={}))}(Rr||(Rr={}));function nh(e){const t=[];for(const n of e){const r=Number(n);(r||r===0&&n.replace(/\s/g,"")!=="")&&t.push(r)}return t}function ac(e,t,n,r){return{red:e/255,blue:n/255,green:t/255,alpha:r}}function Do(e,t){const n=t.index,r=t[0].length;if(!n)return;const i=e.positionAt(n);return{startLineNumber:i.lineNumber,startColumn:i.column,endLineNumber:i.lineNumber,endColumn:i.column+r}}function Ny(e,t){if(!e)return;const n=Rr.Format.CSS.parseHex(t);if(n)return{range:e,color:ac(n.rgba.r,n.rgba.g,n.rgba.b,n.rgba.a)}}function rh(e,t,n){if(!e||t.length!==1)return;const i=t[0].values(),s=nh(i);return{range:e,color:ac(s[0],s[1],s[2],n?s[3]:1)}}function ih(e,t,n){if(!e||t.length!==1)return;const i=t[0].values(),s=nh(i),a=new Rr(new Si(s[0],s[1]/100,s[2]/100,n?s[3]:1));return{range:e,color:ac(a.rgba.r,a.rgba.g,a.rgba.b,a.rgba.a)}}function bo(e,t){return typeof e=="string"?[...e.matchAll(t)]:e.findMatches(t)}function Ty(e){const t=[],r=bo(e,/\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/gm);if(r.length>0)for(const i of r){const s=i.filter(l=>l!==void 0),a=s[1],o=s[2];if(!o)continue;let u;if(a==="rgb"){const l=/^\(\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;u=rh(Do(e,i),bo(o,l),!1)}else if(a==="rgba"){const l=/^\(\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;u=rh(Do(e,i),bo(o,l),!0)}else if(a==="hsl"){const l=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;u=ih(Do(e,i),bo(o,l),!1)}else if(a==="hsla"){const l=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;u=ih(Do(e,i),bo(o,l),!0)}else a==="#"&&(u=Ny(Do(e,i),a+o));u&&t.push(u)}return t}function _y(e){return!e||typeof e.getValue!="function"||typeof e.positionAt!="function"?[]:Ty(e)}class Ly extends _1{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(t){const n=[];for(let r=0;r<this._lines.length;r++){const i=this._lines[r],s=this.offsetAt(new Ji(r+1,1)),a=i.matchAll(t);for(const o of a)(o.index||o.index===0)&&(o.index=o.index+s),n.push(o)}return n}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(t){return this._lines[t-1]}getWordAtPosition(t,n){const r=Ul(t.column,$p(n),this._lines[t.lineNumber-1],0);return r?new Ur(t.lineNumber,r.startColumn,t.lineNumber,r.endColumn):null}words(t){const n=this._lines,r=this._wordenize.bind(this);let i=0,s="",a=0,o=[];return{*[Symbol.iterator](){for(;;)if(a<o.length){const u=s.substring(o[a].start,o[a].end);a+=1,yield u}else if(i<n.length)s=n[i],o=r(s,t),a=0,i+=1;else break}}}getLineWords(t,n){const r=this._lines[t-1],i=this._wordenize(r,n),s=[];for(const a of i)s.push({word:r.substring(a.start,a.end),startColumn:a.start+1,endColumn:a.end+1});return s}_wordenize(t,n){const r=[];let i;for(n.lastIndex=0;(i=n.exec(t))&&i[0].length!==0;)r.push({start:i.index,end:i.index+i[0].length});return r}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,r=t.startLineNumber-1,i=t.endLineNumber-1,s=[];s.push(this._lines[r].substring(t.startColumn-1));for(let a=r+1;a<i;a++)s.push(this._lines[a]);return s.push(this._lines[i].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),r=this._lines[n.index].length;return{lineNumber:1+n.index,column:1+Math.min(n.remainder,r)}}_validateRange(t){const n=this._validatePosition({lineNumber:t.startLineNumber,column:t.startColumn}),r=this._validatePosition({lineNumber:t.endLineNumber,column:t.endColumn});return n.lineNumber!==t.startLineNumber||n.column!==t.startColumn||r.lineNumber!==t.endLineNumber||r.column!==t.endColumn?{startLineNumber:n.lineNumber,startColumn:n.column,endLineNumber:r.lineNumber,endColumn:r.column}:t}_validatePosition(t){if(!Ji.isIPosition(t))throw new Error("bad position");let{lineNumber:n,column:r}=t,i=!1;if(n<1)n=1,r=1,i=!0;else if(n>this._lines.length)n=this._lines.length,r=this._lines[n-1].length+1,i=!0;else{const s=this._lines[n-1].length+1;r<1?(r=1,i=!0):r>s&&(r=s,i=!0)}return i?{lineNumber:n,column:r}:t}}class Vs{constructor(t,n){this._host=t,this._models=Object.create(null),this._foreignModuleFactory=n,this._foreignModule=null}dispose(){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 Ly($l.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]}async computeUnicodeHighlights(t,n,r){const i=this._getModel(t);return i?Z1.computeUnicodeHighlights(i,n,r):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async computeDiff(t,n,r,i){const s=this._getModel(t),a=this._getModel(n);return!s||!a?null:Vs.computeDiff(s,a,r,i)}static computeDiff(t,n,r,i){const s=i==="advanced"?th.getDefault():th.getLegacy(),a=t.getLinesContent(),o=n.getLinesContent(),u=s.computeDiff(a,o,r),l=u.changes.length>0?!1:this._modelsAreIdentical(t,n);function v(c){return c.map(N=>{var _;return[N.original.startLineNumber,N.original.endLineNumberExclusive,N.modified.startLineNumber,N.modified.endLineNumberExclusive,(_=N.innerChanges)===null||_===void 0?void 0:_.map(Z=>[Z.originalRange.startLineNumber,Z.originalRange.startColumn,Z.originalRange.endLineNumber,Z.originalRange.endColumn,Z.modifiedRange.startLineNumber,Z.modifiedRange.startColumn,Z.modifiedRange.endLineNumber,Z.modifiedRange.endColumn])]})}return{identical:l,quitEarly:u.hitTimeout,changes:v(u.changes),moves:u.moves.map(c=>[c.lineRangeMapping.original.startLineNumber,c.lineRangeMapping.original.endLineNumberExclusive,c.lineRangeMapping.modified.startLineNumber,c.lineRangeMapping.modified.endLineNumberExclusive,v(c.changes)])}}static _modelsAreIdentical(t,n){const r=t.getLineCount(),i=n.getLineCount();if(r!==i)return!1;for(let s=1;s<=r;s++){const a=t.getLineContent(s),o=n.getLineContent(s);if(a!==o)return!1}return!0}async computeMoreMinimalEdits(t,n,r){const i=this._getModel(t);if(!i)return n;const s=[];let a;n=n.slice(0).sort((u,l)=>{if(u.range&&l.range)return Ur.compareRangesUsingStarts(u.range,l.range);const v=u.range?0:1,c=l.range?0:1;return v-c});let o=0;for(let u=1;u<n.length;u++)Ur.getEndPosition(n[o].range).equals(Ur.getStartPosition(n[u].range))?(n[o].range=Ur.fromPositions(Ur.getStartPosition(n[o].range),Ur.getEndPosition(n[u].range)),n[o].text+=n[u].text):(o++,n[o]=n[u]);n.length=o+1;for(let{range:u,text:l,eol:v}of n){if(typeof v=="number"&&(a=v),Ur.isEmpty(u)&&!l)continue;const c=i.getValueInRange(u);if(l=l.replace(/\r\n|\n|\r/g,i.eol),c===l)continue;if(Math.max(l.length,c.length)>Vs._diffLimit){s.push({range:u,text:l});continue}const N=i1(c,l,r),_=i.offsetAt(Ur.lift(u).getStartPosition());for(const Z of N){const te=i.positionAt(_+Z.originalStart),M=i.positionAt(_+Z.originalStart+Z.originalLength),he={text:l.substr(Z.modifiedStart,Z.modifiedLength),range:{startLineNumber:te.lineNumber,startColumn:te.column,endLineNumber:M.lineNumber,endColumn:M.column}};i.getValueInRange(he.range)!==he.text&&s.push(he)}}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?j1(n):null}async computeDefaultDocumentColors(t){const n=this._getModel(t);return n?_y(n):null}async textualSuggest(t,n,r,i){const s=new Ho,a=new RegExp(r,i),o=new Set;e:for(const u of t){const l=this._getModel(u);if(l){for(const v of l.words(a))if(!(v===n||!isNaN(Number(v)))&&(o.add(v),o.size>Vs._suggestionsLimit))break e}}return{words:Array.from(o),duration:s.elapsed()}}async computeWordRanges(t,n,r,i){const s=this._getModel(t);if(!s)return Object.create(null);const a=new RegExp(r,i),o=Object.create(null);for(let u=n.startLineNumber;u<n.endLineNumber;u++){const l=s.getLineWords(u,a);for(const v of l){if(!isNaN(Number(v.word)))continue;let c=o[v.word];c||(c=[],o[v.word]=c),c.push({startLineNumber:u,startColumn:v.startColumn,endLineNumber:u,endColumn:v.endColumn})}}return o}async navigateValueSet(t,n,r,i,s){const a=this._getModel(t);if(!a)return null;const o=new RegExp(i,s);n.startColumn===n.endColumn&&(n={startLineNumber:n.startLineNumber,startColumn:n.startColumn,endLineNumber:n.endLineNumber,endColumn:n.endColumn+1});const u=a.getValueInRange(n),l=a.getWordAtPosition({lineNumber:n.startLineNumber,column:n.startColumn},o);if(!l)return null;const v=a.getValueInRange(l);return Jl.INSTANCE.navigateValueSet(n,u,l,v,r)}loadForeignModule(t,n,r){const a={host:Lg(r,(o,u)=>this._host.fhr(o,u)),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(a,n),Promise.resolve(Ll(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}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(r){return Promise.reject(r)}}}Vs._diffLimit=1e5,Vs._suggestionsLimit=1e4,typeof importScripts=="function"&&(globalThis.monaco=Y1());let oc=!1;function sh(e){if(oc)return;oc=!0;const t=new n1(n=>{globalThis.postMessage(n)},n=>new Vs(n,e));globalThis.onmessage=n=>{t.onmessage(n.data)}}globalThis.onmessage=e=>{oc||sh(null)};function ky(e){self.onmessage=()=>{sh((t,n)=>Object.create(e(t,n)))}}let ah=class yp{constructor(t,n,r,i){this._uri=t,this._languageId=n,this._version=r,this._content=i,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),r=this.offsetAt(t.end);return this._content.substring(n,r)}return this._content}update(t,n){for(let r of t)if(yp.isIncremental(r)){const i=uh(r.range),s=this.offsetAt(i.start),a=this.offsetAt(i.end);this._content=this._content.substring(0,s)+r.text+this._content.substring(a,this._content.length);const o=Math.max(i.start.line,0),u=Math.max(i.end.line,0);let l=this._lineOffsets;const v=oh(r.text,!1,s);if(u-o===v.length)for(let N=0,_=v.length;N<_;N++)l[N+o+1]=v[N];else v.length<1e4?l.splice(o+1,u-o,...v):this._lineOffsets=l=l.slice(0,o+1).concat(v,l.slice(u+1));const c=r.text.length-(a-s);if(c!==0)for(let N=o+1+v.length,_=l.length;N<_;N++)l[N]=l[N]+c}else if(yp.isFull(r))this._content=r.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received");this._version=n}getLineOffsets(){return this._lineOffsets===void 0&&(this._lineOffsets=oh(this._content,!0)),this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return{line:0,character:t};for(;r<i;){let a=Math.floor((r+i)/2);n[a]>t?i=a:r=a+1}let s=r-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 r=n[t.line],i=t.line+1<n.length?n[t.line+1]:this._content.length;return Math.max(Math.min(r+t.character,i),r)}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 uc;(function(e){function t(i,s,a,o){return new ah(i,s,a,o)}e.create=t;function n(i,s,a){if(i instanceof ah)return i.update(s,a),i;throw new Error("TextDocument.update: document must be created by TextDocument.create")}e.update=n;function r(i,s){let a=i.getText(),o=lc(s.map(Py),(v,c)=>{let N=v.range.start.line-c.range.start.line;return N===0?v.range.start.character-c.range.start.character:N}),u=0;const l=[];for(const v of o){let c=i.offsetAt(v.range.start);if(c<u)throw new Error("Overlapping edit");c>u&&l.push(a.substring(u,c)),v.newText.length&&l.push(v.newText),u=i.offsetAt(v.range.end)}return l.push(a.substr(u)),l.join("")}e.applyEdits=r})(uc||(uc={}));function lc(e,t){if(e.length<=1)return e;const n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);lc(r,t),lc(i,t);let s=0,a=0,o=0;for(;s<r.length&&a<i.length;)t(r[s],i[a])<=0?e[o++]=r[s++]:e[o++]=i[a++];for(;s<r.length;)e[o++]=r[s++];for(;a<i.length;)e[o++]=i[a++];return e}function oh(e,t,n=0){const r=t?[n]:[];for(let i=0;i<e.length;i++){let s=e.charCodeAt(i);(s===13||s===10)&&(s===13&&i+1<e.length&&e.charCodeAt(i+1)===10&&i++,r.push(n+i+1))}return r}function uh(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 Py(e){const t=uh(e.range);return t!==e.range?{newText:e.newText,range:t}:e}function By(e,t=!1){const n=e.length;let r=0,i="",s=0,a=16,o=0,u=0,l=0,v=0,c=0;function N(Fe,ke){let ae=0,Ee=0;for(;ae<Fe||!ke;){let Qe=e.charCodeAt(r);if(Qe>=48&&Qe<=57)Ee=Ee*16+Qe-48;else if(Qe>=65&&Qe<=70)Ee=Ee*16+Qe-65+10;else if(Qe>=97&&Qe<=102)Ee=Ee*16+Qe-97+10;else break;r++,ae++}return ae<Fe&&(Ee=-1),Ee}function _(Fe){r=Fe,i="",s=0,a=16,c=0}function Z(){let Fe=r;if(e.charCodeAt(r)===48)r++;else for(r++;r<e.length&&Aa(e.charCodeAt(r));)r++;if(r<e.length&&e.charCodeAt(r)===46)if(r++,r<e.length&&Aa(e.charCodeAt(r)))for(r++;r<e.length&&Aa(e.charCodeAt(r));)r++;else return c=3,e.substring(Fe,r);let ke=r;if(r<e.length&&(e.charCodeAt(r)===69||e.charCodeAt(r)===101))if(r++,(r<e.length&&e.charCodeAt(r)===43||e.charCodeAt(r)===45)&&r++,r<e.length&&Aa(e.charCodeAt(r))){for(r++;r<e.length&&Aa(e.charCodeAt(r));)r++;ke=r}else c=3;return e.substring(Fe,ke)}function te(){let Fe="",ke=r;for(;;){if(r>=n){Fe+=e.substring(ke,r),c=2;break}const ae=e.charCodeAt(r);if(ae===34){Fe+=e.substring(ke,r),r++;break}if(ae===92){if(Fe+=e.substring(ke,r),r++,r>=n){c=2;break}switch(e.charCodeAt(r++)){case 34:Fe+='"';break;case 92:Fe+="\\";break;case 47:Fe+="/";break;case 98:Fe+="\b";break;case 102:Fe+="\f";break;case 110:Fe+=`
12
- `;break;case 114:Fe+="\r";break;case 116:Fe+=" ";break;case 117:const Qe=N(4,!0);Qe>=0?Fe+=String.fromCharCode(Qe):c=4;break;default:c=5}ke=r;continue}if(ae>=0&&ae<=31)if(vo(ae)){Fe+=e.substring(ke,r),c=2;break}else c=6;r++}return Fe}function M(){if(i="",c=0,s=r,u=o,v=l,r>=n)return s=n,a=17;let Fe=e.charCodeAt(r);if(cc(Fe)){do r++,i+=String.fromCharCode(Fe),Fe=e.charCodeAt(r);while(cc(Fe));return a=15}if(vo(Fe))return r++,i+=String.fromCharCode(Fe),Fe===13&&e.charCodeAt(r)===10&&(r++,i+=`
13
- `),o++,l=r,a=14;switch(Fe){case 123:return r++,a=1;case 125:return r++,a=2;case 91:return r++,a=3;case 93:return r++,a=4;case 58:return r++,a=6;case 44:return r++,a=5;case 34:return r++,i=te(),a=10;case 47:const ke=r-1;if(e.charCodeAt(r+1)===47){for(r+=2;r<n&&!vo(e.charCodeAt(r));)r++;return i=e.substring(ke,r),a=12}if(e.charCodeAt(r+1)===42){r+=2;const ae=n-1;let Ee=!1;for(;r<ae;){const Qe=e.charCodeAt(r);if(Qe===42&&e.charCodeAt(r+1)===47){r+=2,Ee=!0;break}r++,vo(Qe)&&(Qe===13&&e.charCodeAt(r)===10&&r++,o++,l=r)}return Ee||(r++,c=1),i=e.substring(ke,r),a=13}return i+=String.fromCharCode(Fe),r++,a=16;case 45:if(i+=String.fromCharCode(Fe),r++,r===n||!Aa(e.charCodeAt(r)))return a=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return i+=Z(),a=11;default:for(;r<n&&he(Fe);)r++,Fe=e.charCodeAt(r);if(s!==r){switch(i=e.substring(s,r),i){case"true":return a=8;case"false":return a=9;case"null":return a=7}return a=16}return i+=String.fromCharCode(Fe),r++,a=16}}function he(Fe){if(cc(Fe)||vo(Fe))return!1;switch(Fe){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function Ae(){let Fe;do Fe=M();while(Fe>=12&&Fe<=15);return Fe}return{setPosition:_,getPosition:()=>r,scan:t?Ae:M,getToken:()=>a,getTokenValue:()=>i,getTokenOffset:()=>s,getTokenLength:()=>r-s,getTokenStartLine:()=>u,getTokenStartCharacter:()=>s-v,getTokenError:()=>c}}function cc(e){return e===32||e===9}function vo(e){return e===10||e===13}function Aa(e){return e>=48&&e<=57}var lh;(function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"})(lh||(lh={}));var uu;(function(e){e.DEFAULT={allowTrailingComma:!1}})(uu||(uu={}));function My(e,t=[],n=uu.DEFAULT){let r=null,i=[];const s=[];function a(u){Array.isArray(i)?i.push(u):r!==null&&(i[r]=u)}return Iy(e,{onObjectBegin:()=>{const u={};a(u),s.push(i),i=u,r=null},onObjectProperty:u=>{r=u},onObjectEnd:()=>{i=s.pop()},onArrayBegin:()=>{const u=[];a(u),s.push(i),i=u,r=null},onArrayEnd:()=>{i=s.pop()},onLiteralValue:a,onError:(u,l,v)=>{t.push({error:u,offset:l,length:v})}},n),i[0]}function fc(e){switch(e.type){case"array":return e.children.map(fc);case"object":const t=Object.create(null);for(let n of e.children){const r=n.children[1];r&&(t[n.children[0].value]=fc(r))}return t;case"null":case"string":case"number":case"boolean":return e.value;default:return}}function Iy(e,t,n=uu.DEFAULT){const r=By(e,!1),i=[];function s(me){return me?()=>me(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function a(me){return me?()=>me(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),()=>i.slice()):()=>!0}function o(me){return me?He=>me(He,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function u(me){return me?He=>me(He,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),()=>i.slice()):()=>!0}const l=a(t.onObjectBegin),v=u(t.onObjectProperty),c=s(t.onObjectEnd),N=a(t.onArrayBegin),_=s(t.onArrayEnd),Z=u(t.onLiteralValue),te=o(t.onSeparator),M=s(t.onComment),he=o(t.onError),Ae=n&&n.disallowComments,Fe=n&&n.allowTrailingComma;function ke(){for(;;){const me=r.scan();switch(r.getTokenError()){case 4:ae(14);break;case 5:ae(15);break;case 3:ae(13);break;case 1:Ae||ae(11);break;case 2:ae(12);break;case 6:ae(16);break}switch(me){case 12:case 13:Ae?ae(10):M();break;case 16:ae(1);break;case 15:case 14:break;default:return me}}}function ae(me,He=[],xt=[]){if(he(me),He.length+xt.length>0){let jt=r.getToken();for(;jt!==17;){if(He.indexOf(jt)!==-1){ke();break}else if(xt.indexOf(jt)!==-1)break;jt=ke()}}}function Ee(me){const He=r.getTokenValue();return me?Z(He):(v(He),i.push(He)),ke(),!0}function Qe(){switch(r.getToken()){case 11:const me=r.getTokenValue();let He=Number(me);isNaN(He)&&(ae(2),He=0),Z(He);break;case 7:Z(null);break;case 8:Z(!0);break;case 9:Z(!1);break;default:return!1}return ke(),!0}function Dt(){return r.getToken()!==10?(ae(3,[],[2,5]),!1):(Ee(!1),r.getToken()===6?(te(":"),ke(),ze()||ae(4,[],[2,5])):ae(5,[],[2,5]),i.pop(),!0)}function Ve(){l(),ke();let me=!1;for(;r.getToken()!==2&&r.getToken()!==17;){if(r.getToken()===5){if(me||ae(4,[],[]),te(","),ke(),r.getToken()===2&&Fe)break}else me&&ae(6,[],[]);Dt()||ae(4,[],[2,5]),me=!0}return c(),r.getToken()!==2?ae(7,[2],[]):ke(),!0}function Xe(){N(),ke();let me=!0,He=!1;for(;r.getToken()!==4&&r.getToken()!==17;){if(r.getToken()===5){if(He||ae(4,[],[]),te(","),ke(),r.getToken()===4&&Fe)break}else He&&ae(6,[],[]);me?(i.push(0),me=!1):i[i.length-1]++,ze()||ae(4,[],[4,5]),He=!0}return _(),me||i.pop(),r.getToken()!==4?ae(8,[4],[]):ke(),!0}function ze(){switch(r.getToken()){case 3:return Xe();case 1:return Ve();case 10:return Ee(!0);default:return Qe()}}return ke(),r.getToken()===17?n.allowEmptyContent?!0:(ae(4,[],[]),!1):ze()?(r.getToken()!==17&&ae(9,[],[]),!0):(ae(4,[],[]),!1)}var ch;(function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"})(ch||(ch={}));var fh;(function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"})(fh||(fh={}));const Oy=My,jy=fc;var ph;(function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"})(ph||(ph={}));var dh;(()=>{var e={470:i=>{function s(u){if(typeof u!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(u))}function a(u,l){for(var v,c="",N=0,_=-1,Z=0,te=0;te<=u.length;++te){if(te<u.length)v=u.charCodeAt(te);else{if(v===47)break;v=47}if(v===47){if(!(_===te-1||Z===1))if(_!==te-1&&Z===2){if(c.length<2||N!==2||c.charCodeAt(c.length-1)!==46||c.charCodeAt(c.length-2)!==46){if(c.length>2){var M=c.lastIndexOf("/");if(M!==c.length-1){M===-1?(c="",N=0):N=(c=c.slice(0,M)).length-1-c.lastIndexOf("/"),_=te,Z=0;continue}}else if(c.length===2||c.length===1){c="",N=0,_=te,Z=0;continue}}l&&(c.length>0?c+="/..":c="..",N=2)}else c.length>0?c+="/"+u.slice(_+1,te):c=u.slice(_+1,te),N=te-_-1;_=te,Z=0}else v===46&&Z!==-1?++Z:Z=-1}return c}var o={resolve:function(){for(var u,l="",v=!1,c=arguments.length-1;c>=-1&&!v;c--){var N;c>=0?N=arguments[c]:(u===void 0&&(u=process.cwd()),N=u),s(N),N.length!==0&&(l=N+"/"+l,v=N.charCodeAt(0)===47)}return l=a(l,!v),v?l.length>0?"/"+l:"/":l.length>0?l:"."},normalize:function(u){if(s(u),u.length===0)return".";var l=u.charCodeAt(0)===47,v=u.charCodeAt(u.length-1)===47;return(u=a(u,!l)).length!==0||l||(u="."),u.length>0&&v&&(u+="/"),l?"/"+u:u},isAbsolute:function(u){return s(u),u.length>0&&u.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var u,l=0;l<arguments.length;++l){var v=arguments[l];s(v),v.length>0&&(u===void 0?u=v:u+="/"+v)}return u===void 0?".":o.normalize(u)},relative:function(u,l){if(s(u),s(l),u===l||(u=o.resolve(u))===(l=o.resolve(l)))return"";for(var v=1;v<u.length&&u.charCodeAt(v)===47;++v);for(var c=u.length,N=c-v,_=1;_<l.length&&l.charCodeAt(_)===47;++_);for(var Z=l.length-_,te=N<Z?N:Z,M=-1,he=0;he<=te;++he){if(he===te){if(Z>te){if(l.charCodeAt(_+he)===47)return l.slice(_+he+1);if(he===0)return l.slice(_+he)}else N>te&&(u.charCodeAt(v+he)===47?M=he:he===0&&(M=0));break}var Ae=u.charCodeAt(v+he);if(Ae!==l.charCodeAt(_+he))break;Ae===47&&(M=he)}var Fe="";for(he=v+M+1;he<=c;++he)he!==c&&u.charCodeAt(he)!==47||(Fe.length===0?Fe+="..":Fe+="/..");return Fe.length>0?Fe+l.slice(_+M):(_+=M,l.charCodeAt(_)===47&&++_,l.slice(_))},_makeLong:function(u){return u},dirname:function(u){if(s(u),u.length===0)return".";for(var l=u.charCodeAt(0),v=l===47,c=-1,N=!0,_=u.length-1;_>=1;--_)if((l=u.charCodeAt(_))===47){if(!N){c=_;break}}else N=!1;return c===-1?v?"/":".":v&&c===1?"//":u.slice(0,c)},basename:function(u,l){if(l!==void 0&&typeof l!="string")throw new TypeError('"ext" argument must be a string');s(u);var v,c=0,N=-1,_=!0;if(l!==void 0&&l.length>0&&l.length<=u.length){if(l.length===u.length&&l===u)return"";var Z=l.length-1,te=-1;for(v=u.length-1;v>=0;--v){var M=u.charCodeAt(v);if(M===47){if(!_){c=v+1;break}}else te===-1&&(_=!1,te=v+1),Z>=0&&(M===l.charCodeAt(Z)?--Z==-1&&(N=v):(Z=-1,N=te))}return c===N?N=te:N===-1&&(N=u.length),u.slice(c,N)}for(v=u.length-1;v>=0;--v)if(u.charCodeAt(v)===47){if(!_){c=v+1;break}}else N===-1&&(_=!1,N=v+1);return N===-1?"":u.slice(c,N)},extname:function(u){s(u);for(var l=-1,v=0,c=-1,N=!0,_=0,Z=u.length-1;Z>=0;--Z){var te=u.charCodeAt(Z);if(te!==47)c===-1&&(N=!1,c=Z+1),te===46?l===-1?l=Z:_!==1&&(_=1):l!==-1&&(_=-1);else if(!N){v=Z+1;break}}return l===-1||c===-1||_===0||_===1&&l===c-1&&l===v+1?"":u.slice(l,c)},format:function(u){if(u===null||typeof u!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof u);return function(l,v){var c=v.dir||v.root,N=v.base||(v.name||"")+(v.ext||"");return c?c===v.root?c+N:c+"/"+N:N}(0,u)},parse:function(u){s(u);var l={root:"",dir:"",base:"",ext:"",name:""};if(u.length===0)return l;var v,c=u.charCodeAt(0),N=c===47;N?(l.root="/",v=1):v=0;for(var _=-1,Z=0,te=-1,M=!0,he=u.length-1,Ae=0;he>=v;--he)if((c=u.charCodeAt(he))!==47)te===-1&&(M=!1,te=he+1),c===46?_===-1?_=he:Ae!==1&&(Ae=1):_!==-1&&(Ae=-1);else if(!M){Z=he+1;break}return _===-1||te===-1||Ae===0||Ae===1&&_===te-1&&_===Z+1?te!==-1&&(l.base=l.name=Z===0&&N?u.slice(1,te):u.slice(Z,te)):(Z===0&&N?(l.name=u.slice(1,_),l.base=u.slice(1,te)):(l.name=u.slice(Z,_),l.base=u.slice(Z,te)),l.ext=u.slice(_,te)),Z>0?l.dir=u.slice(0,Z-1):N&&(l.dir="/"),l},sep:"/",delimiter:":",win32:null,posix:null};o.posix=o,i.exports=o}},t={};function n(i){var s=t[i];if(s!==void 0)return s.exports;var a=t[i]={exports:{}};return e[i](a,a.exports,n),a.exports}n.d=(i,s)=>{for(var a in s)n.o(s,a)&&!n.o(i,a)&&Object.defineProperty(i,a,{enumerable:!0,get:s[a]})},n.o=(i,s)=>Object.prototype.hasOwnProperty.call(i,s),n.r=i=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})};var r={};(()=>{let i;n.r(r),n.d(r,{URI:()=>N,Utils:()=>Xe}),typeof process=="object"?i=process.platform==="win32":typeof navigator=="object"&&(i=navigator.userAgent.indexOf("Windows")>=0);const s=/^\w[\w\d+.-]*$/,a=/^\//,o=/^\/\//;function u(ze,me){if(!ze.scheme&&me)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${ze.authority}", path: "${ze.path}", query: "${ze.query}", fragment: "${ze.fragment}"}`);if(ze.scheme&&!s.test(ze.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(ze.path){if(ze.authority){if(!a.test(ze.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(o.test(ze.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}const l="",v="/",c=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class N{constructor(me,He,xt,jt,Vt,en=!1){Ms(this,"scheme");Ms(this,"authority");Ms(this,"path");Ms(this,"query");Ms(this,"fragment");typeof me=="object"?(this.scheme=me.scheme||l,this.authority=me.authority||l,this.path=me.path||l,this.query=me.query||l,this.fragment=me.fragment||l):(this.scheme=function(En,Un){return En||Un?En:"file"}(me,en),this.authority=He||l,this.path=function(En,Un){switch(En){case"https":case"http":case"file":Un?Un[0]!==v&&(Un=v+Un):Un=v}return Un}(this.scheme,xt||l),this.query=jt||l,this.fragment=Vt||l,u(this,en))}static isUri(me){return me instanceof N||!!me&&typeof me.authority=="string"&&typeof me.fragment=="string"&&typeof me.path=="string"&&typeof me.query=="string"&&typeof me.scheme=="string"&&typeof me.fsPath=="string"&&typeof me.with=="function"&&typeof me.toString=="function"}get fsPath(){return Ae(this,!1)}with(me){if(!me)return this;let{scheme:He,authority:xt,path:jt,query:Vt,fragment:en}=me;return He===void 0?He=this.scheme:He===null&&(He=l),xt===void 0?xt=this.authority:xt===null&&(xt=l),jt===void 0?jt=this.path:jt===null&&(jt=l),Vt===void 0?Vt=this.query:Vt===null&&(Vt=l),en===void 0?en=this.fragment:en===null&&(en=l),He===this.scheme&&xt===this.authority&&jt===this.path&&Vt===this.query&&en===this.fragment?this:new Z(He,xt,jt,Vt,en)}static parse(me,He=!1){const xt=c.exec(me);return xt?new Z(xt[2]||l,Ee(xt[4]||l),Ee(xt[5]||l),Ee(xt[7]||l),Ee(xt[9]||l),He):new Z(l,l,l,l,l)}static file(me){let He=l;if(i&&(me=me.replace(/\\/g,v)),me[0]===v&&me[1]===v){const xt=me.indexOf(v,2);xt===-1?(He=me.substring(2),me=v):(He=me.substring(2,xt),me=me.substring(xt)||v)}return new Z("file",He,me,l,l)}static from(me){const He=new Z(me.scheme,me.authority,me.path,me.query,me.fragment);return u(He,!0),He}toString(me=!1){return Fe(this,me)}toJSON(){return this}static revive(me){if(me){if(me instanceof N)return me;{const He=new Z(me);return He._formatted=me.external,He._fsPath=me._sep===_?me.fsPath:null,He}}return me}}const _=i?1:void 0;class Z extends N{constructor(){super(...arguments);Ms(this,"_formatted",null);Ms(this,"_fsPath",null)}get fsPath(){return this._fsPath||(this._fsPath=Ae(this,!1)),this._fsPath}toString(He=!1){return He?Fe(this,!0):(this._formatted||(this._formatted=Fe(this,!1)),this._formatted)}toJSON(){const He={$mid:1};return this._fsPath&&(He.fsPath=this._fsPath,He._sep=_),this._formatted&&(He.external=this._formatted),this.path&&(He.path=this.path),this.scheme&&(He.scheme=this.scheme),this.authority&&(He.authority=this.authority),this.query&&(He.query=this.query),this.fragment&&(He.fragment=this.fragment),He}}const te={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 M(ze,me,He){let xt,jt=-1;for(let Vt=0;Vt<ze.length;Vt++){const en=ze.charCodeAt(Vt);if(en>=97&&en<=122||en>=65&&en<=90||en>=48&&en<=57||en===45||en===46||en===95||en===126||me&&en===47||He&&en===91||He&&en===93||He&&en===58)jt!==-1&&(xt+=encodeURIComponent(ze.substring(jt,Vt)),jt=-1),xt!==void 0&&(xt+=ze.charAt(Vt));else{xt===void 0&&(xt=ze.substr(0,Vt));const En=te[en];En!==void 0?(jt!==-1&&(xt+=encodeURIComponent(ze.substring(jt,Vt)),jt=-1),xt+=En):jt===-1&&(jt=Vt)}}return jt!==-1&&(xt+=encodeURIComponent(ze.substring(jt))),xt!==void 0?xt:ze}function he(ze){let me;for(let He=0;He<ze.length;He++){const xt=ze.charCodeAt(He);xt===35||xt===63?(me===void 0&&(me=ze.substr(0,He)),me+=te[xt]):me!==void 0&&(me+=ze[He])}return me!==void 0?me:ze}function Ae(ze,me){let He;return He=ze.authority&&ze.path.length>1&&ze.scheme==="file"?`//${ze.authority}${ze.path}`:ze.path.charCodeAt(0)===47&&(ze.path.charCodeAt(1)>=65&&ze.path.charCodeAt(1)<=90||ze.path.charCodeAt(1)>=97&&ze.path.charCodeAt(1)<=122)&&ze.path.charCodeAt(2)===58?me?ze.path.substr(1):ze.path[1].toLowerCase()+ze.path.substr(2):ze.path,i&&(He=He.replace(/\//g,"\\")),He}function Fe(ze,me){const He=me?he:M;let xt="",{scheme:jt,authority:Vt,path:en,query:En,fragment:Un}=ze;if(jt&&(xt+=jt,xt+=":"),(Vt||jt==="file")&&(xt+=v,xt+=v),Vt){let Wn=Vt.indexOf("@");if(Wn!==-1){const $r=Vt.substr(0,Wn);Vt=Vt.substr(Wn+1),Wn=$r.lastIndexOf(":"),Wn===-1?xt+=He($r,!1,!1):(xt+=He($r.substr(0,Wn),!1,!1),xt+=":",xt+=He($r.substr(Wn+1),!1,!0)),xt+="@"}Vt=Vt.toLowerCase(),Wn=Vt.lastIndexOf(":"),Wn===-1?xt+=He(Vt,!1,!0):(xt+=He(Vt.substr(0,Wn),!1,!0),xt+=Vt.substr(Wn))}if(en){if(en.length>=3&&en.charCodeAt(0)===47&&en.charCodeAt(2)===58){const Wn=en.charCodeAt(1);Wn>=65&&Wn<=90&&(en=`/${String.fromCharCode(Wn+32)}:${en.substr(3)}`)}else if(en.length>=2&&en.charCodeAt(1)===58){const Wn=en.charCodeAt(0);Wn>=65&&Wn<=90&&(en=`${String.fromCharCode(Wn+32)}:${en.substr(2)}`)}xt+=He(en,!0,!1)}return En&&(xt+="?",xt+=He(En,!1,!1)),Un&&(xt+="#",xt+=me?Un:M(Un,!1,!1)),xt}function ke(ze){try{return decodeURIComponent(ze)}catch{return ze.length>3?ze.substr(0,3)+ke(ze.substr(3)):ze}}const ae=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function Ee(ze){return ze.match(ae)?ze.replace(ae,me=>ke(me)):ze}var Qe=n(470);const Dt=Qe.posix||Qe,Ve="/";var Xe;(function(ze){ze.joinPath=function(me,...He){return me.with({path:Dt.join(me.path,...He)})},ze.resolvePath=function(me,...He){let xt=me.path,jt=!1;xt[0]!==Ve&&(xt=Ve+xt,jt=!0);let Vt=Dt.resolve(xt,...He);return jt&&Vt[0]===Ve&&!me.authority&&(Vt=Vt.substring(1)),me.with({path:Vt})},ze.dirname=function(me){if(me.path.length===0||me.path===Ve)return me;let He=Dt.dirname(me.path);return He.length===1&&He.charCodeAt(0)===46&&(He=""),me.with({path:He})},ze.basename=function(me){return Dt.basename(me.path)},ze.extname=function(me){return Dt.extname(me.path)}})(Xe||(Xe={}))})(),dh=r})();const{URI:yi,Utils:xA}=dh;var hh;(function(e){function t(n){return typeof n=="string"}e.is=t})(hh||(hh={}));var pc;(function(e){function t(n){return typeof n=="string"}e.is=t})(pc||(pc={}));var mh;(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})(mh||(mh={}));var lu;(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})(lu||(lu={}));var Hr;(function(e){function t(r,i){return r===Number.MAX_VALUE&&(r=lu.MAX_VALUE),i===Number.MAX_VALUE&&(i=lu.MAX_VALUE),{line:r,character:i}}e.create=t;function n(r){let i=r;return Ft.objectLiteral(i)&&Ft.uinteger(i.line)&&Ft.uinteger(i.character)}e.is=n})(Hr||(Hr={}));var In;(function(e){function t(r,i,s,a){if(Ft.uinteger(r)&&Ft.uinteger(i)&&Ft.uinteger(s)&&Ft.uinteger(a))return{start:Hr.create(r,i),end:Hr.create(s,a)};if(Hr.is(r)&&Hr.is(i))return{start:r,end:i};throw new Error(`Range#create called with invalid arguments[${r}, ${i}, ${s}, ${a}]`)}e.create=t;function n(r){let i=r;return Ft.objectLiteral(i)&&Hr.is(i.start)&&Hr.is(i.end)}e.is=n})(In||(In={}));var Ca;(function(e){function t(r,i){return{uri:r,range:i}}e.create=t;function n(r){let i=r;return Ft.objectLiteral(i)&&In.is(i.range)&&(Ft.string(i.uri)||Ft.undefined(i.uri))}e.is=n})(Ca||(Ca={}));var dc;(function(e){function t(r,i,s,a){return{targetUri:r,targetRange:i,targetSelectionRange:s,originSelectionRange:a}}e.create=t;function n(r){let i=r;return Ft.objectLiteral(i)&&In.is(i.targetRange)&&Ft.string(i.targetUri)&&In.is(i.targetSelectionRange)&&(In.is(i.originSelectionRange)||Ft.undefined(i.originSelectionRange))}e.is=n})(dc||(dc={}));var hc;(function(e){function t(r,i,s,a){return{red:r,green:i,blue:s,alpha:a}}e.create=t;function n(r){const i=r;return Ft.objectLiteral(i)&&Ft.numberRange(i.red,0,1)&&Ft.numberRange(i.green,0,1)&&Ft.numberRange(i.blue,0,1)&&Ft.numberRange(i.alpha,0,1)}e.is=n})(hc||(hc={}));var gh;(function(e){function t(r,i){return{range:r,color:i}}e.create=t;function n(r){const i=r;return Ft.objectLiteral(i)&&In.is(i.range)&&hc.is(i.color)}e.is=n})(gh||(gh={}));var yh;(function(e){function t(r,i,s){return{label:r,textEdit:i,additionalTextEdits:s}}e.create=t;function n(r){const i=r;return Ft.objectLiteral(i)&&Ft.string(i.label)&&(Ft.undefined(i.textEdit)||Nr.is(i))&&(Ft.undefined(i.additionalTextEdits)||Ft.typedArray(i.additionalTextEdits,Nr.is))}e.is=n})(yh||(yh={}));var Dh;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(Dh||(Dh={}));var mc;(function(e){function t(r,i,s,a,o,u){const l={startLine:r,endLine:i};return Ft.defined(s)&&(l.startCharacter=s),Ft.defined(a)&&(l.endCharacter=a),Ft.defined(o)&&(l.kind=o),Ft.defined(u)&&(l.collapsedText=u),l}e.create=t;function n(r){const i=r;return Ft.objectLiteral(i)&&Ft.uinteger(i.startLine)&&Ft.uinteger(i.startLine)&&(Ft.undefined(i.startCharacter)||Ft.uinteger(i.startCharacter))&&(Ft.undefined(i.endCharacter)||Ft.uinteger(i.endCharacter))&&(Ft.undefined(i.kind)||Ft.string(i.kind))}e.is=n})(mc||(mc={}));var gc;(function(e){function t(r,i){return{location:r,message:i}}e.create=t;function n(r){let i=r;return Ft.defined(i)&&Ca.is(i.location)&&Ft.string(i.message)}e.is=n})(gc||(gc={}));var zn;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(zn||(zn={}));var yc;(function(e){e.Unnecessary=1,e.Deprecated=2})(yc||(yc={}));var bh;(function(e){function t(n){const r=n;return Ft.objectLiteral(r)&&Ft.string(r.href)}e.is=t})(bh||(bh={}));var Di;(function(e){function t(r,i,s,a,o,u){let l={range:r,message:i};return Ft.defined(s)&&(l.severity=s),Ft.defined(a)&&(l.code=a),Ft.defined(o)&&(l.source=o),Ft.defined(u)&&(l.relatedInformation=u),l}e.create=t;function n(r){var i;let s=r;return Ft.defined(s)&&In.is(s.range)&&Ft.string(s.message)&&(Ft.number(s.severity)||Ft.undefined(s.severity))&&(Ft.integer(s.code)||Ft.string(s.code)||Ft.undefined(s.code))&&(Ft.undefined(s.codeDescription)||Ft.string((i=s.codeDescription)===null||i===void 0?void 0:i.href))&&(Ft.string(s.source)||Ft.undefined(s.source))&&(Ft.undefined(s.relatedInformation)||Ft.typedArray(s.relatedInformation,gc.is))}e.is=n})(Di||(Di={}));var qs;(function(e){function t(r,i,...s){let a={title:r,command:i};return Ft.defined(s)&&s.length>0&&(a.arguments=s),a}e.create=t;function n(r){let i=r;return Ft.defined(i)&&Ft.string(i.title)&&Ft.string(i.command)}e.is=n})(qs||(qs={}));var Nr;(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 r(s){return{range:s,newText:""}}e.del=r;function i(s){const a=s;return Ft.objectLiteral(a)&&Ft.string(a.newText)&&In.is(a.range)}e.is=i})(Nr||(Nr={}));var Dc;(function(e){function t(r,i,s){const a={label:r};return i!==void 0&&(a.needsConfirmation=i),s!==void 0&&(a.description=s),a}e.create=t;function n(r){const i=r;return Ft.objectLiteral(i)&&Ft.string(i.label)&&(Ft.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(Ft.string(i.description)||i.description===void 0)}e.is=n})(Dc||(Dc={}));var xa;(function(e){function t(n){const r=n;return Ft.string(r)}e.is=t})(xa||(xa={}));var vh;(function(e){function t(s,a,o){return{range:s,newText:a,annotationId:o}}e.replace=t;function n(s,a,o){return{range:{start:s,end:s},newText:a,annotationId:o}}e.insert=n;function r(s,a){return{range:s,newText:"",annotationId:a}}e.del=r;function i(s){const a=s;return Nr.is(a)&&(Dc.is(a.annotationId)||xa.is(a.annotationId))}e.is=i})(vh||(vh={}));var bc;(function(e){function t(r,i){return{textDocument:r,edits:i}}e.create=t;function n(r){let i=r;return Ft.defined(i)&&xc.is(i.textDocument)&&Array.isArray(i.edits)}e.is=n})(bc||(bc={}));var vc;(function(e){function t(r,i,s){let a={kind:"create",uri:r};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(a.options=i),s!==void 0&&(a.annotationId=s),a}e.create=t;function n(r){let i=r;return i&&i.kind==="create"&&Ft.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||Ft.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||Ft.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||xa.is(i.annotationId))}e.is=n})(vc||(vc={}));var Ec;(function(e){function t(r,i,s,a){let o={kind:"rename",oldUri:r,newUri:i};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(o.options=s),a!==void 0&&(o.annotationId=a),o}e.create=t;function n(r){let i=r;return i&&i.kind==="rename"&&Ft.string(i.oldUri)&&Ft.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||Ft.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||Ft.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||xa.is(i.annotationId))}e.is=n})(Ec||(Ec={}));var Ac;(function(e){function t(r,i,s){let a={kind:"delete",uri:r};return i!==void 0&&(i.recursive!==void 0||i.ignoreIfNotExists!==void 0)&&(a.options=i),s!==void 0&&(a.annotationId=s),a}e.create=t;function n(r){let i=r;return i&&i.kind==="delete"&&Ft.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||Ft.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||Ft.boolean(i.options.ignoreIfNotExists)))&&(i.annotationId===void 0||xa.is(i.annotationId))}e.is=n})(Ac||(Ac={}));var Cc;(function(e){function t(n){let r=n;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(i=>Ft.string(i.kind)?vc.is(i)||Ec.is(i)||Ac.is(i):bc.is(i)))}e.is=t})(Cc||(Cc={}));var Eh;(function(e){function t(r){return{uri:r}}e.create=t;function n(r){let i=r;return Ft.defined(i)&&Ft.string(i.uri)}e.is=n})(Eh||(Eh={}));var Ah;(function(e){function t(r,i){return{uri:r,version:i}}e.create=t;function n(r){let i=r;return Ft.defined(i)&&Ft.string(i.uri)&&Ft.integer(i.version)}e.is=n})(Ah||(Ah={}));var xc;(function(e){function t(r,i){return{uri:r,version:i}}e.create=t;function n(r){let i=r;return Ft.defined(i)&&Ft.string(i.uri)&&(i.version===null||Ft.integer(i.version))}e.is=n})(xc||(xc={}));var Ch;(function(e){function t(r,i,s,a){return{uri:r,languageId:i,version:s,text:a}}e.create=t;function n(r){let i=r;return Ft.defined(i)&&Ft.string(i.uri)&&Ft.string(i.languageId)&&Ft.integer(i.version)&&Ft.string(i.text)}e.is=n})(Ch||(Ch={}));var rs;(function(e){e.PlainText="plaintext",e.Markdown="markdown";function t(n){const r=n;return r===e.PlainText||r===e.Markdown}e.is=t})(rs||(rs={}));var Eo;(function(e){function t(n){const r=n;return Ft.objectLiteral(n)&&rs.is(r.kind)&&Ft.string(r.value)}e.is=t})(Eo||(Eo={}));var bi;(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})(bi||(bi={}));var Kr;(function(e){e.PlainText=1,e.Snippet=2})(Kr||(Kr={}));var xh;(function(e){e.Deprecated=1})(xh||(xh={}));var Sh;(function(e){function t(r,i,s){return{newText:r,insert:i,replace:s}}e.create=t;function n(r){const i=r;return i&&Ft.string(i.newText)&&In.is(i.insert)&&In.is(i.replace)}e.is=n})(Sh||(Sh={}));var Sc;(function(e){e.asIs=1,e.adjustIndentation=2})(Sc||(Sc={}));var wh;(function(e){function t(n){const r=n;return r&&(Ft.string(r.detail)||r.detail===void 0)&&(Ft.string(r.description)||r.description===void 0)}e.is=t})(wh||(wh={}));var wc;(function(e){function t(n){return{label:n}}e.create=t})(wc||(wc={}));var Fc;(function(e){function t(n,r){return{items:n||[],isIncomplete:!!r}}e.create=t})(Fc||(Fc={}));var cu;(function(e){function t(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=t;function n(r){const i=r;return Ft.string(i)||Ft.objectLiteral(i)&&Ft.string(i.language)&&Ft.string(i.value)}e.is=n})(cu||(cu={}));var Fh;(function(e){function t(n){let r=n;return!!r&&Ft.objectLiteral(r)&&(Eo.is(r.contents)||cu.is(r.contents)||Ft.typedArray(r.contents,cu.is))&&(n.range===void 0||In.is(n.range))}e.is=t})(Fh||(Fh={}));var Nh;(function(e){function t(n,r){return r?{label:n,documentation:r}:{label:n}}e.create=t})(Nh||(Nh={}));var Th;(function(e){function t(n,r,...i){let s={label:n};return Ft.defined(r)&&(s.documentation=r),Ft.defined(i)?s.parameters=i:s.parameters=[],s}e.create=t})(Th||(Th={}));var _h;(function(e){e.Text=1,e.Read=2,e.Write=3})(_h||(_h={}));var Lh;(function(e){function t(n,r){let i={range:n};return Ft.number(r)&&(i.kind=r),i}e.create=t})(Lh||(Lh={}));var zi;(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})(zi||(zi={}));var kh;(function(e){e.Deprecated=1})(kh||(kh={}));var Ph;(function(e){function t(n,r,i,s,a){let o={name:n,kind:r,location:{uri:s,range:i}};return a&&(o.containerName=a),o}e.create=t})(Ph||(Ph={}));var Bh;(function(e){function t(n,r,i,s){return s!==void 0?{name:n,kind:r,location:{uri:i,range:s}}:{name:n,kind:r,location:{uri:i}}}e.create=t})(Bh||(Bh={}));var Mh;(function(e){function t(r,i,s,a,o,u){let l={name:r,detail:i,kind:s,range:a,selectionRange:o};return u!==void 0&&(l.children=u),l}e.create=t;function n(r){let i=r;return i&&Ft.string(i.name)&&Ft.number(i.kind)&&In.is(i.range)&&In.is(i.selectionRange)&&(i.detail===void 0||Ft.string(i.detail))&&(i.deprecated===void 0||Ft.boolean(i.deprecated))&&(i.children===void 0||Array.isArray(i.children))&&(i.tags===void 0||Array.isArray(i.tags))}e.is=n})(Mh||(Mh={}));var Ss;(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"})(Ss||(Ss={}));var fu;(function(e){e.Invoked=1,e.Automatic=2})(fu||(fu={}));var Ih;(function(e){function t(r,i,s){let a={diagnostics:r};return i!=null&&(a.only=i),s!=null&&(a.triggerKind=s),a}e.create=t;function n(r){let i=r;return Ft.defined(i)&&Ft.typedArray(i.diagnostics,Di.is)&&(i.only===void 0||Ft.typedArray(i.only,Ft.string))&&(i.triggerKind===void 0||i.triggerKind===fu.Invoked||i.triggerKind===fu.Automatic)}e.is=n})(Ih||(Ih={}));var is;(function(e){function t(r,i,s){let a={title:r},o=!0;return typeof i=="string"?(o=!1,a.kind=i):qs.is(i)?a.command=i:a.edit=i,o&&s!==void 0&&(a.kind=s),a}e.create=t;function n(r){let i=r;return i&&Ft.string(i.title)&&(i.diagnostics===void 0||Ft.typedArray(i.diagnostics,Di.is))&&(i.kind===void 0||Ft.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||qs.is(i.command))&&(i.isPreferred===void 0||Ft.boolean(i.isPreferred))&&(i.edit===void 0||Cc.is(i.edit))}e.is=n})(is||(is={}));var Nc;(function(e){function t(r,i){let s={range:r};return Ft.defined(i)&&(s.data=i),s}e.create=t;function n(r){let i=r;return Ft.defined(i)&&In.is(i.range)&&(Ft.undefined(i.command)||qs.is(i.command))}e.is=n})(Nc||(Nc={}));var Oh;(function(e){function t(r,i){return{tabSize:r,insertSpaces:i}}e.create=t;function n(r){let i=r;return Ft.defined(i)&&Ft.uinteger(i.tabSize)&&Ft.boolean(i.insertSpaces)}e.is=n})(Oh||(Oh={}));var jh;(function(e){function t(r,i,s){return{range:r,target:i,data:s}}e.create=t;function n(r){let i=r;return Ft.defined(i)&&In.is(i.range)&&(Ft.undefined(i.target)||Ft.string(i.target))}e.is=n})(jh||(jh={}));var pu;(function(e){function t(r,i){return{range:r,parent:i}}e.create=t;function n(r){let i=r;return Ft.objectLiteral(i)&&In.is(i.range)&&(i.parent===void 0||e.is(i.parent))}e.is=n})(pu||(pu={}));var Rh;(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"})(Rh||(Rh={}));var $h;(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"})($h||($h={}));var Vh;(function(e){function t(n){const r=n;return Ft.objectLiteral(r)&&(r.resultId===void 0||typeof r.resultId=="string")&&Array.isArray(r.data)&&(r.data.length===0||typeof r.data[0]=="number")}e.is=t})(Vh||(Vh={}));var qh;(function(e){function t(r,i){return{range:r,text:i}}e.create=t;function n(r){const i=r;return i!=null&&In.is(i.range)&&Ft.string(i.text)}e.is=n})(qh||(qh={}));var Uh;(function(e){function t(r,i,s){return{range:r,variableName:i,caseSensitiveLookup:s}}e.create=t;function n(r){const i=r;return i!=null&&In.is(i.range)&&Ft.boolean(i.caseSensitiveLookup)&&(Ft.string(i.variableName)||i.variableName===void 0)}e.is=n})(Uh||(Uh={}));var Wh;(function(e){function t(r,i){return{range:r,expression:i}}e.create=t;function n(r){const i=r;return i!=null&&In.is(i.range)&&(Ft.string(i.expression)||i.expression===void 0)}e.is=n})(Wh||(Wh={}));var Gh;(function(e){function t(r,i){return{frameId:r,stoppedLocation:i}}e.create=t;function n(r){const i=r;return Ft.defined(i)&&In.is(r.stoppedLocation)}e.is=n})(Gh||(Gh={}));var Tc;(function(e){e.Type=1,e.Parameter=2;function t(n){return n===1||n===2}e.is=t})(Tc||(Tc={}));var _c;(function(e){function t(r){return{value:r}}e.create=t;function n(r){const i=r;return Ft.objectLiteral(i)&&(i.tooltip===void 0||Ft.string(i.tooltip)||Eo.is(i.tooltip))&&(i.location===void 0||Ca.is(i.location))&&(i.command===void 0||qs.is(i.command))}e.is=n})(_c||(_c={}));var Jh;(function(e){function t(r,i,s){const a={position:r,label:i};return s!==void 0&&(a.kind=s),a}e.create=t;function n(r){const i=r;return Ft.objectLiteral(i)&&Hr.is(i.position)&&(Ft.string(i.label)||Ft.typedArray(i.label,_c.is))&&(i.kind===void 0||Tc.is(i.kind))&&i.textEdits===void 0||Ft.typedArray(i.textEdits,Nr.is)&&(i.tooltip===void 0||Ft.string(i.tooltip)||Eo.is(i.tooltip))&&(i.paddingLeft===void 0||Ft.boolean(i.paddingLeft))&&(i.paddingRight===void 0||Ft.boolean(i.paddingRight))}e.is=n})(Jh||(Jh={}));var Yh;(function(e){function t(n){return{kind:"snippet",value:n}}e.createSnippet=t})(Yh||(Yh={}));var Hh;(function(e){function t(n,r,i,s){return{insertText:n,filterText:r,range:i,command:s}}e.create=t})(Hh||(Hh={}));var zh;(function(e){function t(n){return{items:n}}e.create=t})(zh||(zh={}));var Qh;(function(e){e.Invoked=0,e.Automatic=1})(Qh||(Qh={}));var Xh;(function(e){function t(n,r){return{range:n,text:r}}e.create=t})(Xh||(Xh={}));var Kh;(function(e){function t(n,r){return{triggerKind:n,selectedCompletionInfo:r}}e.create=t})(Kh||(Kh={}));var Zh;(function(e){function t(n){const r=n;return Ft.objectLiteral(r)&&pc.is(r.uri)&&Ft.string(r.name)}e.is=t})(Zh||(Zh={}));var em;(function(e){function t(s,a,o,u){return new Ry(s,a,o,u)}e.create=t;function n(s){let a=s;return!!(Ft.defined(a)&&Ft.string(a.uri)&&(Ft.undefined(a.languageId)||Ft.string(a.languageId))&&Ft.uinteger(a.lineCount)&&Ft.func(a.getText)&&Ft.func(a.positionAt)&&Ft.func(a.offsetAt))}e.is=n;function r(s,a){let o=s.getText(),u=i(a,(v,c)=>{let N=v.range.start.line-c.range.start.line;return N===0?v.range.start.character-c.range.start.character:N}),l=o.length;for(let v=u.length-1;v>=0;v--){let c=u[v],N=s.offsetAt(c.range.start),_=s.offsetAt(c.range.end);if(_<=l)o=o.substring(0,N)+c.newText+o.substring(_,o.length);else throw new Error("Overlapping edit");l=N}return o}e.applyEdits=r;function i(s,a){if(s.length<=1)return s;const o=s.length/2|0,u=s.slice(0,o),l=s.slice(o);i(u,a),i(l,a);let v=0,c=0,N=0;for(;v<u.length&&c<l.length;)a(u[v],l[c])<=0?s[N++]=u[v++]:s[N++]=l[c++];for(;v<u.length;)s[N++]=u[v++];for(;c<l.length;)s[N++]=l[c++];return s}})(em||(em={}));class Ry{constructor(t,n,r,i){this._uri=t,this._languageId=n,this._version=r,this._content=i,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),r=this.offsetAt(t.end);return this._content.substring(n,r)}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,r=!0;for(let i=0;i<n.length;i++){r&&(t.push(i),r=!1);let s=n.charAt(i);r=s==="\r"||s===`
14
- `,s==="\r"&&i+1<n.length&&n.charAt(i+1)===`
15
- `&&i++}r&&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(),r=0,i=n.length;if(i===0)return Hr.create(0,t);for(;r<i;){let a=Math.floor((r+i)/2);n[a]>t?i=a:r=a+1}let s=r-1;return Hr.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 r=n[t.line],i=t.line+1<n.length?n[t.line+1]:this._content.length;return Math.max(Math.min(r+t.character,i),r)}get lineCount(){return this.getLineOffsets().length}}var Ft;(function(e){const t=Object.prototype.toString;function n(_){return typeof _<"u"}e.defined=n;function r(_){return typeof _>"u"}e.undefined=r;function i(_){return _===!0||_===!1}e.boolean=i;function s(_){return t.call(_)==="[object String]"}e.string=s;function a(_){return t.call(_)==="[object Number]"}e.number=a;function o(_,Z,te){return t.call(_)==="[object Number]"&&Z<=_&&_<=te}e.numberRange=o;function u(_){return t.call(_)==="[object Number]"&&-2147483648<=_&&_<=2147483647}e.integer=u;function l(_){return t.call(_)==="[object Number]"&&0<=_&&_<=2147483647}e.uinteger=l;function v(_){return t.call(_)==="[object Function]"}e.func=v;function c(_){return _!==null&&typeof _=="object"}e.objectLiteral=c;function N(_,Z){return Array.isArray(_)&&_.every(Z)}e.typedArray=N})(Ft||(Ft={}));const Lc=Symbol.for("yaml.alias"),kc=Symbol.for("yaml.document"),ws=Symbol.for("yaml.map"),tm=Symbol.for("yaml.pair"),ss=Symbol.for("yaml.scalar"),Sa=Symbol.for("yaml.seq"),wi=Symbol.for("yaml.node.type"),Qi=e=>!!e&&typeof e=="object"&&e[wi]===Lc,Ao=e=>!!e&&typeof e=="object"&&e[wi]===kc,Pr=e=>!!e&&typeof e=="object"&&e[wi]===ws,dr=e=>!!e&&typeof e=="object"&&e[wi]===tm,qn=e=>!!e&&typeof e=="object"&&e[wi]===ss,Br=e=>!!e&&typeof e=="object"&&e[wi]===Sa;function Lr(e){if(e&&typeof e=="object")switch(e[wi]){case ws:case Sa:return!0}return!1}function yr(e){if(e&&typeof e=="object")switch(e[wi]){case Lc:case ws:case ss:case Sa:return!0}return!1}const $y=e=>(qn(e)||Lr(e))&&!!e.anchor,Us=Symbol("break visit"),Vy=Symbol("skip children"),Co=Symbol("remove node");function wr(e,t){const n=qy(t);Ao(e)?wa(null,e.contents,n,Object.freeze([e]))===Co&&(e.contents=null):wa(null,e,n,Object.freeze([]))}wr.BREAK=Us,wr.SKIP=Vy,wr.REMOVE=Co;function wa(e,t,n,r){const i=Uy(e,t,n,r);if(yr(i)||dr(i))return Wy(e,r,i),wa(e,i,n,r);if(typeof i!="symbol"){if(Lr(t)){r=Object.freeze(r.concat(t));for(let s=0;s<t.items.length;++s){const a=wa(s,t.items[s],n,r);if(typeof a=="number")s=a-1;else{if(a===Us)return Us;a===Co&&(t.items.splice(s,1),s-=1)}}}else if(dr(t)){r=Object.freeze(r.concat(t));const s=wa("key",t.key,n,r);if(s===Us)return Us;s===Co&&(t.key=null);const a=wa("value",t.value,n,r);if(a===Us)return Us;a===Co&&(t.value=null)}}return i}function qy(e){return typeof e=="object"&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function Uy(e,t,n,r){var i,s,a,o,u;if(typeof n=="function")return n(e,t,r);if(Pr(t))return(i=n.Map)==null?void 0:i.call(n,e,t,r);if(Br(t))return(s=n.Seq)==null?void 0:s.call(n,e,t,r);if(dr(t))return(a=n.Pair)==null?void 0:a.call(n,e,t,r);if(qn(t))return(o=n.Scalar)==null?void 0:o.call(n,e,t,r);if(Qi(t))return(u=n.Alias)==null?void 0:u.call(n,e,t,r)}function Wy(e,t,n){const r=t[t.length-1];if(Lr(r))r.items[e]=n;else if(dr(r))e==="key"?r.key=n:r.value=n;else if(Ao(r))r.contents=n;else{const i=Qi(r)?"alias":"scalar";throw new Error(`Cannot replace node with ${i} parent`)}}const Gy={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},Jy=e=>e.replace(/[!,[\]{}]/g,t=>Gy[t]);class ii{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},ii.defaultYaml,t),this.tags=Object.assign({},ii.defaultTags,n)}clone(){const t=new ii(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){const t=new ii(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:ii.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},ii.defaultTags);break}return t}add(t,n){this.atNextDocument&&(this.yaml={explicit:ii.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},ii.defaultTags),this.atNextDocument=!1);const r=t.trim().split(/[ \t]+/),i=r.shift();switch(i){case"%TAG":{if(r.length!==2&&(n(0,"%TAG directive should contain exactly two parts"),r.length<2))return!1;const[s,a]=r;return this.tags[s]=a,!0}case"%YAML":{if(this.yaml.explicit=!0,r.length!==1)return n(0,"%YAML directive should contain exactly one part"),!1;const[s]=r;if(s==="1.1"||s==="1.2")return this.yaml.version=s,!0;{const a=/^\d+\.\d+$/.test(s);return n(6,`Unsupported YAML version ${s}`,a),!1}}default:return n(0,`Unknown directive ${i}`,!0),!1}}tagName(t,n){if(t==="!")return"!";if(t[0]!=="!")return n(`Not a valid tag: ${t}`),null;if(t[1]==="<"){const a=t.slice(2,-1);return a==="!"||a==="!!"?(n(`Verbatim tags aren't resolved, so ${t} is invalid.`),null):(t[t.length-1]!==">"&&n("Verbatim tags must end with a >"),a)}const[,r,i]=t.match(/^(.*!)([^!]*)$/s);i||n(`The ${t} tag has no suffix`);const s=this.tags[r];if(s)try{return s+decodeURIComponent(i)}catch(a){return n(String(a)),null}return r==="!"?t:(n(`Could not resolve tag: ${t}`),null)}tagString(t){for(const[n,r]of Object.entries(this.tags))if(t.startsWith(r))return n+Jy(t.substring(r.length));return t[0]==="!"?t:`!<${t}>`}toString(t){const n=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],r=Object.entries(this.tags);let i;if(t&&r.length>0&&yr(t.contents)){const s={};wr(t.contents,(a,o)=>{yr(o)&&o.tag&&(s[o.tag]=!0)}),i=Object.keys(s)}else i=[];for(const[s,a]of r)s==="!!"&&a==="tag:yaml.org,2002:"||(!t||i.some(o=>o.startsWith(a)))&&n.push(`%TAG ${s} ${a}`);return n.join(`
16
- `)}}ii.defaultYaml={explicit:!1,version:"1.2"},ii.defaultTags={"!!":"tag:yaml.org,2002:"};function nm(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const n=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw new Error(n)}return!0}function rm(e){const t=new Set;return wr(e,{Value(n,r){r.anchor&&t.add(r.anchor)}}),t}function im(e,t){for(let n=1;;++n){const r=`${e}${n}`;if(!t.has(r))return r}}function Yy(e,t){const n=[],r=new Map;let i=null;return{onAnchor:s=>{n.push(s),i||(i=rm(e));const a=im(t,i);return i.add(a),a},setAnchors:()=>{for(const s of n){const a=r.get(s);if(typeof a=="object"&&a.anchor&&(qn(a.node)||Lr(a.node)))a.node.anchor=a.anchor;else{const o=new Error("Failed to resolve repeated object (this should not happen)");throw o.source=s,o}}},sourceObjects:r}}function Fa(e,t,n,r){if(r&&typeof r=="object")if(Array.isArray(r))for(let i=0,s=r.length;i<s;++i){const a=r[i],o=Fa(e,r,String(i),a);o===void 0?delete r[i]:o!==a&&(r[i]=o)}else if(r instanceof Map)for(const i of Array.from(r.keys())){const s=r.get(i),a=Fa(e,r,i,s);a===void 0?r.delete(i):a!==s&&r.set(i,a)}else if(r instanceof Set)for(const i of Array.from(r)){const s=Fa(e,r,i,i);s===void 0?r.delete(i):s!==i&&(r.delete(i),r.add(s))}else for(const[i,s]of Object.entries(r)){const a=Fa(e,r,i,s);a===void 0?delete r[i]:a!==s&&(r[i]=a)}return e.call(t,n,r)}function Fi(e,t,n){if(Array.isArray(e))return e.map((r,i)=>Fi(r,String(i),n));if(e&&typeof e.toJSON=="function"){if(!n||!$y(e))return e.toJSON(t,n);const r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=s=>{r.res=s,delete n.onCreate};const i=e.toJSON(t,n);return n.onCreate&&n.onCreate(i),i}return typeof e=="bigint"&&!(n!=null&&n.keep)?Number(e):e}class Pc{constructor(t){Object.defineProperty(this,wi,{value:t})}clone(){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(t.range=this.range.slice()),t}toJS(t,{mapAsMap:n,maxAliasCount:r,onAnchor:i,reviver:s}={}){if(!Ao(t))throw new TypeError("A document argument is required");const a={anchors:new Map,doc:t,keep:!0,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof r=="number"?r:100},o=Fi(this,"",a);if(typeof i=="function")for(const{count:u,res:l}of a.anchors.values())i(l,u);return typeof s=="function"?Fa(s,{"":o},"",o):o}}class Bc extends Pc{constructor(t){super(Lc),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t){let n;return wr(t,{Node:(r,i)=>{if(i===this)return wr.BREAK;i.anchor===this.source&&(n=i)}}),n}toJSON(t,n){if(!n)return{source:this.source};const{anchors:r,doc:i,maxAliasCount:s}=n,a=this.resolve(i);if(!a){const u=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(u)}let o=r.get(a);if(o||(Fi(a,null,n),o=r.get(a)),!o||o.res===void 0){const u="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(u)}if(s>=0&&(o.count+=1,o.aliasCount===0&&(o.aliasCount=du(i,a,r)),o.count*o.aliasCount>s)){const u="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(u)}return o.res}toString(t,n,r){const i=`*${this.source}`;if(t){if(nm(this.source),t.options.verifyAliasOrder&&!t.anchors.has(this.source)){const s=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(s)}if(t.implicitKey)return`${i} `}return i}}function du(e,t,n){if(Qi(t)){const r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}else if(Lr(t)){let r=0;for(const i of t.items){const s=du(e,i,n);s>r&&(r=s)}return r}else if(dr(t)){const r=du(e,t.key,n),i=du(e,t.value,n);return Math.max(r,i)}return 1}const sm=e=>!e||typeof e!="function"&&typeof e!="object";class Kn extends Pc{constructor(t){super(ss),this.value=t}toJSON(t,n){return n!=null&&n.keep?this.value:Fi(this.value,t,n)}toString(){return String(this.value)}}Kn.BLOCK_FOLDED="BLOCK_FOLDED",Kn.BLOCK_LITERAL="BLOCK_LITERAL",Kn.PLAIN="PLAIN",Kn.QUOTE_DOUBLE="QUOTE_DOUBLE",Kn.QUOTE_SINGLE="QUOTE_SINGLE";const Hy="tag:yaml.org,2002:";function zy(e,t,n){if(t){const r=n.filter(s=>s.tag===t),i=r.find(s=>!s.format)??r[0];if(!i)throw new Error(`Tag ${t} not found`);return i}return n.find(r=>{var i;return((i=r.identify)==null?void 0:i.call(r,e))&&!r.format})}function xo(e,t,n){var c,N,_;if(Ao(e)&&(e=e.contents),yr(e))return e;if(dr(e)){const Z=(N=(c=n.schema[ws]).createNode)==null?void 0:N.call(c,n.schema,null,n);return Z.items.push(e),Z}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<"u"&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:r,onAnchor:i,onTagObj:s,schema:a,sourceObjects:o}=n;let u;if(r&&e&&typeof e=="object"){if(u=o.get(e),u)return u.anchor||(u.anchor=i(e)),new Bc(u.anchor);u={anchor:null,node:null},o.set(e,u)}t!=null&&t.startsWith("!!")&&(t=Hy+t.slice(2));let l=zy(e,t,a.tags);if(!l){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){const Z=new Kn(e);return u&&(u.node=Z),Z}l=e instanceof Map?a[ws]:Symbol.iterator in Object(e)?a[Sa]:a[ws]}s&&(s(l),delete n.onTagObj);const v=l!=null&&l.createNode?l.createNode(n.schema,e,n):typeof((_=l==null?void 0:l.nodeClass)==null?void 0:_.from)=="function"?l.nodeClass.from(n.schema,e,n):new Kn(e);return t?v.tag=t:l.default||(v.tag=l.tag),u&&(u.node=v),v}function hu(e,t,n){let r=n;for(let i=t.length-1;i>=0;--i){const s=t[i];if(typeof s=="number"&&Number.isInteger(s)&&s>=0){const a=[];a[s]=r,r=a}else r=new Map([[s,r]])}return xo(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const So=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done;class mu extends Pc{constructor(t,n){super(t),Object.defineProperty(this,"schema",{value:n,configurable:!0,enumerable:!1,writable:!0})}clone(t){const n=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return t&&(n.schema=t),n.items=n.items.map(r=>yr(r)||dr(r)?r.clone(t):r),this.range&&(n.range=this.range.slice()),n}addIn(t,n){if(So(t))this.add(n);else{const[r,...i]=t,s=this.get(r,!0);if(Lr(s))s.addIn(i,n);else if(s===void 0&&this.schema)this.set(r,hu(this.schema,i,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${i}`)}}deleteIn(t){const[n,...r]=t;if(r.length===0)return this.delete(n);const i=this.get(n,!0);if(Lr(i))return i.deleteIn(r);throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}getIn(t,n){const[r,...i]=t,s=this.get(r,!0);return i.length===0?!n&&qn(s)?s.value:s:Lr(s)?s.getIn(i,n):void 0}hasAllNullValues(t){return this.items.every(n=>{if(!dr(n))return!1;const r=n.value;return r==null||t&&qn(r)&&r.value==null&&!r.commentBefore&&!r.comment&&!r.tag})}hasIn(t){const[n,...r]=t;if(r.length===0)return this.has(n);const i=this.get(n,!0);return Lr(i)?i.hasIn(r):!1}setIn(t,n){const[r,...i]=t;if(i.length===0)this.set(r,n);else{const s=this.get(r,!0);if(Lr(s))s.setIn(i,n);else if(s===void 0&&this.schema)this.set(r,hu(this.schema,i,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${i}`)}}}mu.maxFlowStringSingleLineLength=60;const Qy=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function as(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const Fs=(e,t,n)=>e.endsWith(`
17
- `)?as(n,t):n.includes(`
18
- `)?`
19
- `+as(n,t):(e.endsWith(" ")?"":" ")+n,am="flow",Mc="block",gu="quoted";function yu(e,t,n="flow",{indentAtStart:r,lineWidth:i=80,minContentWidth:s=20,onFold:a,onOverflow:o}={}){if(!i||i<0)return e;const u=Math.max(1+s,1+i-t.length);if(e.length<=u)return e;const l=[],v={};let c=i-t.length;typeof r=="number"&&(r>i-Math.max(2,s)?l.push(0):c=i-r);let N,_,Z=!1,te=-1,M=-1,he=-1;n===Mc&&(te=om(e,te),te!==-1&&(c=te+u));for(let Fe;Fe=e[te+=1];){if(n===gu&&Fe==="\\"){switch(M=te,e[te+1]){case"x":te+=3;break;case"u":te+=5;break;case"U":te+=9;break;default:te+=1}he=te}if(Fe===`
20
- `)n===Mc&&(te=om(e,te)),c=te+u,N=void 0;else{if(Fe===" "&&_&&_!==" "&&_!==`
21
- `&&_!==" "){const ke=e[te+1];ke&&ke!==" "&&ke!==`
22
- `&&ke!==" "&&(N=te)}if(te>=c)if(N)l.push(N),c=N+u,N=void 0;else if(n===gu){for(;_===" "||_===" ";)_=Fe,Fe=e[te+=1],Z=!0;const ke=te>he+1?te-2:M-1;if(v[ke])return e;l.push(ke),v[ke]=!0,c=ke+u,N=void 0}else Z=!0}_=Fe}if(Z&&o&&o(),l.length===0)return e;a&&a();let Ae=e.slice(0,l[0]);for(let Fe=0;Fe<l.length;++Fe){const ke=l[Fe],ae=l[Fe+1]||e.length;ke===0?Ae=`
23
- ${t}${e.slice(0,ae)}`:(n===gu&&v[ke]&&(Ae+=`${e[ke]}\\`),Ae+=`
24
- ${t}${e.slice(ke+1,ae)}`)}return Ae}function om(e,t){let n=e[t+1];for(;n===" "||n===" ";){do n=e[t+=1];while(n&&n!==`
25
- `);n=e[t+1]}return t}const Du=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),bu=e=>/^(%|---|\.\.\.)/m.test(e);function Xy(e,t,n){if(!t||t<0)return!1;const r=t-n,i=e.length;if(i<=r)return!1;for(let s=0,a=0;s<i;++s)if(e[s]===`
26
- `){if(s-a>r)return!0;if(a=s+1,i-a<=r)return!1}return!0}function wo(e,t){const n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;const{implicitKey:r}=t,i=t.options.doubleQuotedMinMultiLineLength,s=t.indent||(bu(e)?" ":"");let a="",o=0;for(let u=0,l=n[u];l;l=n[++u])if(l===" "&&n[u+1]==="\\"&&n[u+2]==="n"&&(a+=n.slice(o,u)+"\\ ",u+=1,o=u,l="\\"),l==="\\")switch(n[u+1]){case"u":{a+=n.slice(o,u);const v=n.substr(u+2,4);switch(v){case"0000":a+="\\0";break;case"0007":a+="\\a";break;case"000b":a+="\\v";break;case"001b":a+="\\e";break;case"0085":a+="\\N";break;case"00a0":a+="\\_";break;case"2028":a+="\\L";break;case"2029":a+="\\P";break;default:v.substr(0,2)==="00"?a+="\\x"+v.substr(2):a+=n.substr(u,6)}u+=5,o=u+1}break;case"n":if(r||n[u+2]==='"'||n.length<i)u+=1;else{for(a+=n.slice(o,u)+`
27
-
28
- `;n[u+2]==="\\"&&n[u+3]==="n"&&n[u+4]!=='"';)a+=`
29
- `,u+=2;a+=s,n[u+2]===" "&&(a+="\\"),u+=1,o=u+1}break;default:u+=1}return a=o?a+n.slice(o):n,r?a:yu(a,s,gu,Du(t,!1))}function Ic(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
30
- `)||/[ \t]\n|\n[ \t]/.test(e))return wo(e,t);const n=t.indent||(bu(e)?" ":""),r="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
31
- ${n}`)+"'";return t.implicitKey?r:yu(r,n,am,Du(t,!1))}function Na(e,t){const{singleQuote:n}=t.options;let r;if(n===!1)r=wo;else{const i=e.includes('"'),s=e.includes("'");i&&!s?r=Ic:s&&!i?r=wo:r=n?Ic:wo}return r(e,t)}let Oc;try{Oc=new RegExp(`(^|(?<!
32
- ))
33
- +(?!
34
- |$)`,"g")}catch{Oc=/\n+(?!\n|$)/g}function vu({comment:e,type:t,value:n},r,i,s){const{blockQuote:a,commentString:o,lineWidth:u}=r.options;if(!a||/\n[\t ]+$/.test(n)||/^\s*$/.test(n))return Na(n,r);const l=r.indent||(r.forceBlockIndent||bu(n)?" ":""),v=a==="literal"?!0:a==="folded"||t===Kn.BLOCK_FOLDED?!1:t===Kn.BLOCK_LITERAL?!0:!Xy(n,u,l.length);if(!n)return v?`|
35
- `:`>
36
- `;let c,N;for(N=n.length;N>0;--N){const Ee=n[N-1];if(Ee!==`
37
- `&&Ee!==" "&&Ee!==" ")break}let _=n.substring(N);const Z=_.indexOf(`
38
- `);Z===-1?c="-":n===_||Z!==_.length-1?(c="+",s&&s()):c="",_&&(n=n.slice(0,-_.length),_[_.length-1]===`
39
- `&&(_=_.slice(0,-1)),_=_.replace(Oc,`$&${l}`));let te=!1,M,he=-1;for(M=0;M<n.length;++M){const Ee=n[M];if(Ee===" ")te=!0;else if(Ee===`
40
- `)he=M;else break}let Ae=n.substring(0,he<M?he+1:M);Ae&&(n=n.substring(Ae.length),Ae=Ae.replace(/\n+/g,`$&${l}`));let ke=(v?"|":">")+(te?l?"2":"1":"")+c;if(e&&(ke+=" "+o(e.replace(/ ?[\r\n]+/g," ")),i&&i()),v)return n=n.replace(/\n+/g,`$&${l}`),`${ke}
41
- ${l}${Ae}${n}${_}`;n=n.replace(/\n+/g,`
42
- $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${l}`);const ae=yu(`${Ae}${n}${_}`,l,Mc,Du(r,!0));return`${ke}
43
- ${l}${ae}`}function Ky(e,t,n,r){const{type:i,value:s}=e,{actualString:a,implicitKey:o,indent:u,indentStep:l,inFlow:v}=t;if(o&&s.includes(`
44
- `)||v&&/[[\]{},]/.test(s))return Na(s,t);if(!s||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(s))return o||v||!s.includes(`
45
- `)?Na(s,t):vu(e,t,n,r);if(!o&&!v&&i!==Kn.PLAIN&&s.includes(`
46
- `))return vu(e,t,n,r);if(bu(s)){if(u==="")return t.forceBlockIndent=!0,vu(e,t,n,r);if(o&&u===l)return Na(s,t)}const c=s.replace(/\n+/g,`$&
47
- ${u}`);if(a){const N=te=>{var M;return te.default&&te.tag!=="tag:yaml.org,2002:str"&&((M=te.test)==null?void 0:M.test(c))},{compat:_,tags:Z}=t.doc.schema;if(Z.some(N)||_!=null&&_.some(N))return Na(s,t)}return o?c:yu(c,u,am,Du(t,!1))}function jc(e,t,n,r){const{implicitKey:i,inFlow:s}=t,a=typeof e.value=="string"?e:Object.assign({},e,{value:String(e.value)});let{type:o}=e;o!==Kn.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(a.value)&&(o=Kn.QUOTE_DOUBLE);const u=v=>{switch(v){case Kn.BLOCK_FOLDED:case Kn.BLOCK_LITERAL:return i||s?Na(a.value,t):vu(a,t,n,r);case Kn.QUOTE_DOUBLE:return wo(a.value,t);case Kn.QUOTE_SINGLE:return Ic(a.value,t);case Kn.PLAIN:return Ky(a,t,n,r);default:return null}};let l=u(o);if(l===null){const{defaultKeyType:v,defaultStringType:c}=t.options,N=i&&v||c;if(l=u(N),l===null)throw new Error(`Unsupported default string type ${N}`)}return l}function um(e,t){const n=Object.assign({blockQuote:!0,commentString:Qy,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t);let r;switch(n.collectionStyle){case"block":r=!1;break;case"flow":r=!0;break;default:r=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?" ":"",indent:"",indentStep:typeof n.indent=="number"?" ".repeat(n.indent):" ",inFlow:r,options:n}}function Zy(e,t){var i;if(t.tag){const s=e.filter(a=>a.tag===t.tag);if(s.length>0)return s.find(a=>a.format===t.format)??s[0]}let n,r;if(qn(t)){r=t.value;const s=e.filter(a=>{var o;return(o=a.identify)==null?void 0:o.call(a,r)});n=s.find(a=>a.format===t.format)??s.find(a=>!a.format)}else r=t,n=e.find(s=>s.nodeClass&&r instanceof s.nodeClass);if(!n){const s=((i=r==null?void 0:r.constructor)==null?void 0:i.name)??typeof r;throw new Error(`Tag not resolved for ${s} value`)}return n}function eD(e,t,{anchors:n,doc:r}){if(!r.directives)return"";const i=[],s=(qn(e)||Lr(e))&&e.anchor;s&&nm(s)&&(n.add(s),i.push(`&${s}`));const a=e.tag?e.tag:t.default?null:t.tag;return a&&i.push(r.directives.tagString(a)),i.join(" ")}function Ta(e,t,n,r){var u;if(dr(e))return e.toString(t,n,r);if(Qi(e)){if(t.doc.directives)return e.toString(t);if((u=t.resolvedAliases)!=null&&u.has(e))throw new TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let i;const s=yr(e)?e:t.doc.createNode(e,{onTagObj:l=>i=l});i||(i=Zy(t.doc.schema.tags,s));const a=eD(s,i,t);a.length>0&&(t.indentAtStart=(t.indentAtStart??0)+a.length+1);const o=typeof i.stringify=="function"?i.stringify(s,t,n,r):qn(s)?jc(s,t,n,r):s.toString(t,n,r);return a?qn(s)||o[0]==="{"||o[0]==="["?`${a} ${o}`:`${a}
48
- ${t.indent}${o}`:o}function tD({key:e,value:t},n,r,i){const{allNullValues:s,doc:a,indent:o,indentStep:u,options:{commentString:l,indentSeq:v,simpleKeys:c}}=n;let N=yr(e)&&e.comment||null;if(c){if(N)throw new Error("With simple keys, key nodes cannot have comments");if(Lr(e)){const Qe="With simple keys, collection cannot be used as a key value";throw new Error(Qe)}}let _=!c&&(!e||N&&t==null&&!n.inFlow||Lr(e)||(qn(e)?e.type===Kn.BLOCK_FOLDED||e.type===Kn.BLOCK_LITERAL:typeof e=="object"));n=Object.assign({},n,{allNullValues:!1,implicitKey:!_&&(c||!s),indent:o+u});let Z=!1,te=!1,M=Ta(e,n,()=>Z=!0,()=>te=!0);if(!_&&!n.inFlow&&M.length>1024){if(c)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");_=!0}if(n.inFlow){if(s||t==null)return Z&&r&&r(),M===""?"?":_?`? ${M}`:M}else if(s&&!c||t==null&&_)return M=`? ${M}`,N&&!Z?M+=Fs(M,n.indent,l(N)):te&&i&&i(),M;Z&&(N=null),_?(N&&(M+=Fs(M,n.indent,l(N))),M=`? ${M}
49
- ${o}:`):(M=`${M}:`,N&&(M+=Fs(M,n.indent,l(N))));let he,Ae,Fe;yr(t)?(he=!!t.spaceBefore,Ae=t.commentBefore,Fe=t.comment):(he=!1,Ae=null,Fe=null,t&&typeof t=="object"&&(t=a.createNode(t))),n.implicitKey=!1,!_&&!N&&qn(t)&&(n.indentAtStart=M.length+1),te=!1,!v&&u.length>=2&&!n.inFlow&&!_&&Br(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let ke=!1;const ae=Ta(t,n,()=>ke=!0,()=>te=!0);let Ee=" ";if(N||he||Ae){if(Ee=he?`
50
- `:"",Ae){const Qe=l(Ae);Ee+=`
51
- ${as(Qe,n.indent)}`}ae===""&&!n.inFlow?Ee===`
52
- `&&(Ee=`
53
-
54
- `):Ee+=`
55
- ${n.indent}`}else if(!_&&Lr(t)){const Qe=ae[0],Dt=ae.indexOf(`
56
- `),Ve=Dt!==-1,Xe=n.inFlow??t.flow??t.items.length===0;if(Ve||!Xe){let ze=!1;if(Ve&&(Qe==="&"||Qe==="!")){let me=ae.indexOf(" ");Qe==="&"&&me!==-1&&me<Dt&&ae[me+1]==="!"&&(me=ae.indexOf(" ",me+1)),(me===-1||Dt<me)&&(ze=!0)}ze||(Ee=`
57
- ${n.indent}`)}}else(ae===""||ae[0]===`
58
- `)&&(Ee="");return M+=Ee+ae,n.inFlow?ke&&r&&r():Fe&&!ke?M+=Fs(M,n.indent,l(Fe)):te&&i&&i(),M}function lm(e,t){(e==="debug"||e==="warn")&&(typeof process<"u"&&process.emitWarning?process.emitWarning(t):console.warn(t))}const cm="<<";function fm(e,t,{key:n,value:r}){if(e!=null&&e.doc.schema.merge&&nD(n))if(r=Qi(r)?r.resolve(e.doc):r,Br(r))for(const i of r.items)Rc(e,t,i);else if(Array.isArray(r))for(const i of r)Rc(e,t,i);else Rc(e,t,r);else{const i=Fi(n,"",e);if(t instanceof Map)t.set(i,Fi(r,i,e));else if(t instanceof Set)t.add(i);else{const s=rD(n,i,e),a=Fi(r,s,e);s in t?Object.defineProperty(t,s,{value:a,writable:!0,enumerable:!0,configurable:!0}):t[s]=a}}return t}const nD=e=>e===cm||qn(e)&&e.value===cm&&(!e.type||e.type===Kn.PLAIN);function Rc(e,t,n){const r=e&&Qi(n)?n.resolve(e.doc):n;if(!Pr(r))throw new Error("Merge sources must be maps or map aliases");const i=r.toJSON(null,e,Map);for(const[s,a]of i)t instanceof Map?t.has(s)||t.set(s,a):t instanceof Set?t.add(s):Object.prototype.hasOwnProperty.call(t,s)||Object.defineProperty(t,s,{value:a,writable:!0,enumerable:!0,configurable:!0});return t}function rD(e,t,n){if(t===null)return"";if(typeof t!="object")return String(t);if(yr(e)&&(n!=null&&n.doc)){const r=um(n.doc,{});r.anchors=new Set;for(const s of n.anchors.keys())r.anchors.add(s.anchor);r.inFlow=!0,r.inStringifyKey=!0;const i=e.toString(r);if(!n.mapKeyWarned){let s=JSON.stringify(i);s.length>40&&(s=s.substring(0,36)+'..."'),lm(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${s}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return i}return JSON.stringify(t)}function $c(e,t,n){const r=xo(e,void 0,n),i=xo(t,void 0,n);return new si(r,i)}class si{constructor(t,n=null){Object.defineProperty(this,wi,{value:tm}),this.key=t,this.value=n}clone(t){let{key:n,value:r}=this;return yr(n)&&(n=n.clone(t)),yr(r)&&(r=r.clone(t)),new si(n,r)}toJSON(t,n){const r=n!=null&&n.mapAsMap?new Map:{};return fm(n,r,this)}toString(t,n,r){return t!=null&&t.doc?tD(this,t,n,r):JSON.stringify(this)}}function pm(e,t,n){return(t.inFlow??e.flow?sD:iD)(e,t,n)}function iD({comment:e,items:t},n,{blockItemPrefix:r,flowChars:i,itemIndent:s,onChompKeep:a,onComment:o}){const{indent:u,options:{commentString:l}}=n,v=Object.assign({},n,{indent:s,type:null});let c=!1;const N=[];for(let Z=0;Z<t.length;++Z){const te=t[Z];let M=null;if(yr(te))!c&&te.spaceBefore&&N.push(""),Eu(n,N,te.commentBefore,c),te.comment&&(M=te.comment);else if(dr(te)){const Ae=yr(te.key)?te.key:null;Ae&&(!c&&Ae.spaceBefore&&N.push(""),Eu(n,N,Ae.commentBefore,c))}c=!1;let he=Ta(te,v,()=>M=null,()=>c=!0);M&&(he+=Fs(he,s,l(M))),c&&M&&(c=!1),N.push(r+he)}let _;if(N.length===0)_=i.start+i.end;else{_=N[0];for(let Z=1;Z<N.length;++Z){const te=N[Z];_+=te?`
59
- ${u}${te}`:`
60
- `}}return e?(_+=`
61
- `+as(l(e),u),o&&o()):c&&a&&a(),_}function sD({comment:e,items:t},n,{flowChars:r,itemIndent:i,onComment:s}){const{indent:a,indentStep:o,flowCollectionPadding:u,options:{commentString:l}}=n;i+=o;const v=Object.assign({},n,{indent:i,inFlow:!0,type:null});let c=!1,N=0;const _=[];for(let he=0;he<t.length;++he){const Ae=t[he];let Fe=null;if(yr(Ae))Ae.spaceBefore&&_.push(""),Eu(n,_,Ae.commentBefore,!1),Ae.comment&&(Fe=Ae.comment);else if(dr(Ae)){const ae=yr(Ae.key)?Ae.key:null;ae&&(ae.spaceBefore&&_.push(""),Eu(n,_,ae.commentBefore,!1),ae.comment&&(c=!0));const Ee=yr(Ae.value)?Ae.value:null;Ee?(Ee.comment&&(Fe=Ee.comment),Ee.commentBefore&&(c=!0)):Ae.value==null&&(ae!=null&&ae.comment)&&(Fe=ae.comment)}Fe&&(c=!0);let ke=Ta(Ae,v,()=>Fe=null);he<t.length-1&&(ke+=","),Fe&&(ke+=Fs(ke,i,l(Fe))),!c&&(_.length>N||ke.includes(`
62
- `))&&(c=!0),_.push(ke),N=_.length}let Z;const{start:te,end:M}=r;if(_.length===0)Z=te+M;else if(c||(c=_.reduce((Ae,Fe)=>Ae+Fe.length+2,2)>mu.maxFlowStringSingleLineLength),c){Z=te;for(const he of _)Z+=he?`
63
- ${o}${a}${he}`:`
64
- `;Z+=`
65
- ${a}${M}`}else Z=`${te}${u}${_.join(" ")}${u}${M}`;return e&&(Z+=Fs(Z,a,l(e)),s&&s()),Z}function Eu({indent:e,options:{commentString:t}},n,r,i){if(r&&i&&(r=r.replace(/^\n+/,"")),r){const s=as(t(r),e);n.push(s.trimStart())}}function Ws(e,t){const n=qn(t)?t.value:t;for(const r of e)if(dr(r)&&(r.key===t||r.key===n||qn(r.key)&&r.key.value===n))return r}class Ni extends mu{static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super(ws,t),this.items=[]}static from(t,n,r){const{keepUndefined:i,replacer:s}=r,a=new this(t),o=(u,l)=>{if(typeof s=="function")l=s.call(n,u,l);else if(Array.isArray(s)&&!s.includes(u))return;(l!==void 0||i)&&a.items.push($c(u,l,r))};if(n instanceof Map)for(const[u,l]of n)o(u,l);else if(n&&typeof n=="object")for(const u of Object.keys(n))o(u,n[u]);return typeof t.sortMapEntries=="function"&&a.items.sort(t.sortMapEntries),a}add(t,n){var a;let r;dr(t)?r=t:!t||typeof t!="object"||!("key"in t)?r=new si(t,t==null?void 0:t.value):r=new si(t.key,t.value);const i=Ws(this.items,r.key),s=(a=this.schema)==null?void 0:a.sortMapEntries;if(i){if(!n)throw new Error(`Key ${r.key} already set`);qn(i.value)&&sm(r.value)?i.value.value=r.value:i.value=r.value}else if(s){const o=this.items.findIndex(u=>s(r,u)<0);o===-1?this.items.push(r):this.items.splice(o,0,r)}else this.items.push(r)}delete(t){const n=Ws(this.items,t);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(t,n){const r=Ws(this.items,t),i=r==null?void 0:r.value;return(!n&&qn(i)?i.value:i)??void 0}has(t){return!!Ws(this.items,t)}set(t,n){this.add(new si(t,n),!0)}toJSON(t,n,r){const i=r?new r:n!=null&&n.mapAsMap?new Map:{};n!=null&&n.onCreate&&n.onCreate(i);for(const s of this.items)fm(n,i,s);return i}toString(t,n,r){if(!t)return JSON.stringify(this);for(const i of this.items)if(!dr(i))throw new Error(`Map items must all be pairs; found ${JSON.stringify(i)} instead`);return!t.allNullValues&&this.hasAllNullValues(!1)&&(t=Object.assign({},t,{allNullValues:!0})),pm(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:r,onComment:n})}}const _a={collection:"map",default:!0,nodeClass:Ni,tag:"tag:yaml.org,2002:map",resolve(e,t){return Pr(e)||t("Expected a mapping for this tag"),e},createNode:(e,t,n)=>Ni.from(e,t,n)};class Gs extends mu{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(t){super(Sa,t),this.items=[]}add(t){this.items.push(t)}delete(t){const n=Au(t);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(t,n){const r=Au(t);if(typeof r!="number")return;const i=this.items[r];return!n&&qn(i)?i.value:i}has(t){const n=Au(t);return typeof n=="number"&&n<this.items.length}set(t,n){const r=Au(t);if(typeof r!="number")throw new Error(`Expected a valid index, not ${t}.`);const i=this.items[r];qn(i)&&sm(n)?i.value=n:this.items[r]=n}toJSON(t,n){const r=[];n!=null&&n.onCreate&&n.onCreate(r);let i=0;for(const s of this.items)r.push(Fi(s,String(i++),n));return r}toString(t,n,r){return t?pm(this,t,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(t.indent||"")+" ",onChompKeep:r,onComment:n}):JSON.stringify(this)}static from(t,n,r){const{replacer:i}=r,s=new this(t);if(n&&Symbol.iterator in Object(n)){let a=0;for(let o of n){if(typeof i=="function"){const u=n instanceof Set?o:String(a++);o=i.call(n,u,o)}s.items.push(xo(o,void 0,r))}}return s}}function Au(e){let t=qn(e)?e.value:e;return t&&typeof t=="string"&&(t=Number(t)),typeof t=="number"&&Number.isInteger(t)&&t>=0?t:null}const La={collection:"seq",default:!0,nodeClass:Gs,tag:"tag:yaml.org,2002:seq",resolve(e,t){return Br(e)||t("Expected a sequence for this tag"),e},createNode:(e,t,n)=>Gs.from(e,t,n)},Cu={identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,t,n,r){return t=Object.assign({actualString:!0},t),jc(e,t,n,r)}},xu={identify:e=>e==null,createNode:()=>new Kn(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new Kn(null),stringify:({source:e},t)=>typeof e=="string"&&xu.test.test(e)?e:t.options.nullStr},Vc={identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new Kn(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},n){if(e&&Vc.test.test(e)){const r=e[0]==="t"||e[0]==="T";if(t===r)return e}return t?n.options.trueStr:n.options.falseStr}};function Oi({format:e,minFractionDigits:t,tag:n,value:r}){if(typeof r=="bigint")return String(r);const i=typeof r=="number"?r:Number(r);if(!isFinite(i))return isNaN(i)?".nan":i<0?"-.inf":".inf";let s=JSON.stringify(r);if(!e&&t&&(!n||n==="tag:yaml.org,2002:float")&&/^\d/.test(s)){let a=s.indexOf(".");a<0&&(a=s.length,s+=".");let o=t-(s.length-a-1);for(;o-- >0;)s+="0"}return s}const dm={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN))$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Oi},hm={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():Oi(e)}},mm={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new Kn(parseFloat(e)),n=e.indexOf(".");return n!==-1&&e[e.length-1]==="0"&&(t.minFractionDigits=e.length-n-1),t},stringify:Oi},Su=e=>typeof e=="bigint"||Number.isInteger(e),qc=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function gm(e,t,n){const{value:r}=e;return Su(r)&&r>=0?n+r.toString(t):Oi(e)}const ym={identify:e=>Su(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>qc(e,2,8,n),stringify:e=>gm(e,8,"0o")},Dm={identify:Su,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>qc(e,0,10,n),stringify:Oi},bm={identify:e=>Su(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>qc(e,2,16,n),stringify:e=>gm(e,16,"0x")},aD=[_a,La,Cu,xu,Vc,ym,Dm,bm,dm,hm,mm];function vm(e){return typeof e=="bigint"||Number.isInteger(e)}const wu=({value:e})=>JSON.stringify(e),oD=[{identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:wu},{identify:e=>e==null,createNode:()=>new Kn(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:wu},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>e==="true",stringify:wu},{identify:vm,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>vm(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:wu}],uD={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},lD=[_a,La].concat(oD,uD),Uc={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof Buffer=="function")return Buffer.from(e,"base64");if(typeof atob=="function"){const n=atob(e.replace(/[\n\r]/g,"")),r=new Uint8Array(n.length);for(let i=0;i<n.length;++i)r[i]=n.charCodeAt(i);return r}else return t("This environment does not support reading binary tags; either Buffer or atob is required"),e},stringify({comment:e,type:t,value:n},r,i,s){const a=n;let o;if(typeof Buffer=="function")o=a instanceof Buffer?a.toString("base64"):Buffer.from(a.buffer).toString("base64");else if(typeof btoa=="function"){let u="";for(let l=0;l<a.length;++l)u+=String.fromCharCode(a[l]);o=btoa(u)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(t||(t=Kn.BLOCK_LITERAL),t!==Kn.QUOTE_DOUBLE){const u=Math.max(r.options.lineWidth-r.indent.length,r.options.minContentWidth),l=Math.ceil(o.length/u),v=new Array(l);for(let c=0,N=0;c<l;++c,N+=u)v[c]=o.substr(N,u);o=v.join(t===Kn.BLOCK_LITERAL?`
66
- `:" ")}return jc({comment:e,type:t,value:o},r,i,s)}};function Em(e,t){if(Br(e))for(let n=0;n<e.items.length;++n){let r=e.items[n];if(!dr(r)){if(Pr(r)){r.items.length>1&&t("Each pair must have its own sequence indicator");const i=r.items[0]||new si(new Kn(null));if(r.commentBefore&&(i.key.commentBefore=i.key.commentBefore?`${r.commentBefore}
67
- ${i.key.commentBefore}`:r.commentBefore),r.comment){const s=i.value??i.key;s.comment=s.comment?`${r.comment}
68
- ${s.comment}`:r.comment}r=i}e.items[n]=dr(r)?r:new si(r)}}else t("Expected a sequence for this tag");return e}function Am(e,t,n){const{replacer:r}=n,i=new Gs(e);i.tag="tag:yaml.org,2002:pairs";let s=0;if(t&&Symbol.iterator in Object(t))for(let a of t){typeof r=="function"&&(a=r.call(t,String(s++),a));let o,u;if(Array.isArray(a))if(a.length===2)o=a[0],u=a[1];else throw new TypeError(`Expected [key, value] tuple: ${a}`);else if(a&&a instanceof Object){const l=Object.keys(a);if(l.length===1)o=l[0],u=a[o];else throw new TypeError(`Expected tuple with one key, not ${l.length} keys`)}else o=a;i.items.push($c(o,u,n))}return i}const Wc={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Em,createNode:Am};class ka extends Gs{constructor(){super(),this.add=Ni.prototype.add.bind(this),this.delete=Ni.prototype.delete.bind(this),this.get=Ni.prototype.get.bind(this),this.has=Ni.prototype.has.bind(this),this.set=Ni.prototype.set.bind(this),this.tag=ka.tag}toJSON(t,n){if(!n)return super.toJSON(t);const r=new Map;n!=null&&n.onCreate&&n.onCreate(r);for(const i of this.items){let s,a;if(dr(i)?(s=Fi(i.key,"",n),a=Fi(i.value,s,n)):s=Fi(i,"",n),r.has(s))throw new Error("Ordered maps must not include duplicate keys");r.set(s,a)}return r}static from(t,n,r){const i=Am(t,n,r),s=new this;return s.items=i.items,s}}ka.tag="tag:yaml.org,2002:omap";const Gc={collection:"seq",identify:e=>e instanceof Map,nodeClass:ka,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=Em(e,t),r=[];for(const{key:i}of n.items)qn(i)&&(r.includes(i.value)?t(`Ordered maps must not include duplicate keys: ${i.value}`):r.push(i.value));return Object.assign(new ka,n)},createNode:(e,t,n)=>ka.from(e,t,n)};function Cm({value:e,source:t},n){return t&&(e?xm:Sm).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}const xm={identify:e=>e===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new Kn(!0),stringify:Cm},Sm={identify:e=>e===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>new Kn(!1),stringify:Cm},cD={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Oi},fD={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():Oi(e)}},pD={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new Kn(parseFloat(e.replace(/_/g,""))),n=e.indexOf(".");if(n!==-1){const r=e.substring(n+1).replace(/_/g,"");r[r.length-1]==="0"&&(t.minFractionDigits=r.length)}return t},stringify:Oi},Fo=e=>typeof e=="bigint"||Number.isInteger(e);function Fu(e,t,n,{intAsBigInt:r}){const i=e[0];if((i==="-"||i==="+")&&(t+=1),e=e.substring(t).replace(/_/g,""),r){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}const a=BigInt(e);return i==="-"?BigInt(-1)*a:a}const s=parseInt(e,n);return i==="-"?-1*s:s}function Jc(e,t,n){const{value:r}=e;if(Fo(r)){const i=r.toString(t);return r<0?"-"+n+i.substr(1):n+i}return Oi(e)}const dD={identify:Fo,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>Fu(e,2,2,n),stringify:e=>Jc(e,2,"0b")},hD={identify:Fo,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>Fu(e,1,8,n),stringify:e=>Jc(e,8,"0")},mD={identify:Fo,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>Fu(e,0,10,n),stringify:Oi},gD={identify:Fo,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>Fu(e,2,16,n),stringify:e=>Jc(e,16,"0x")};class Pa extends Ni{constructor(t){super(t),this.tag=Pa.tag}add(t){let n;dr(t)?n=t:t&&typeof t=="object"&&"key"in t&&"value"in t&&t.value===null?n=new si(t.key,null):n=new si(t,null),Ws(this.items,n.key)||this.items.push(n)}get(t,n){const r=Ws(this.items,t);return!n&&dr(r)?qn(r.key)?r.key.value:r.key:r}set(t,n){if(typeof n!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof n}`);const r=Ws(this.items,t);r&&!n?this.items.splice(this.items.indexOf(r),1):!r&&n&&this.items.push(new si(t))}toJSON(t,n){return super.toJSON(t,n,Set)}toString(t,n,r){if(!t)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},t,{allNullValues:!0}),n,r);throw new Error("Set items must all have null values")}static from(t,n,r){const{replacer:i}=r,s=new this(t);if(n&&Symbol.iterator in Object(n))for(let a of n)typeof i=="function"&&(a=i.call(n,a,a)),s.items.push($c(a,null,r));return s}}Pa.tag="tag:yaml.org,2002:set";const Yc={collection:"map",identify:e=>e instanceof Set,nodeClass:Pa,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,n)=>Pa.from(e,t,n),resolve(e,t){if(Pr(e)){if(e.hasAllNullValues(!0))return Object.assign(new Pa,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};function Hc(e,t){const n=e[0],r=n==="-"||n==="+"?e.substring(1):e,i=a=>t?BigInt(a):Number(a),s=r.replace(/_/g,"").split(":").reduce((a,o)=>a*i(60)+i(o),i(0));return n==="-"?i(-1)*s:s}function wm(e){let{value:t}=e,n=a=>a;if(typeof t=="bigint")n=a=>BigInt(a);else if(isNaN(t)||!isFinite(t))return Oi(e);let r="";t<0&&(r="-",t*=n(-1));const i=n(60),s=[t%i];return t<60?s.unshift(0):(t=(t-s[0])/i,s.unshift(t%i),t>=60&&(t=(t-s[0])/i,s.unshift(t))),r+s.map(a=>String(a).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}const Fm={identify:e=>typeof e=="bigint"||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:n})=>Hc(e,n),stringify:wm},Nm={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>Hc(e,!1),stringify:wm},Nu={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){const t=e.match(Nu.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,n,r,i,s,a,o]=t.map(Number),u=t[7]?Number((t[7]+"00").substr(1,3)):0;let l=Date.UTC(n,r-1,i,s||0,a||0,o||0,u);const v=t[8];if(v&&v!=="Z"){let c=Hc(v,!1);Math.abs(c)<30&&(c*=60),l-=6e4*c}return new Date(l)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")},Tm=[_a,La,Cu,xu,xm,Sm,dD,hD,mD,gD,cD,fD,pD,Uc,Gc,Wc,Yc,Fm,Nm,Nu],_m=new Map([["core",aD],["failsafe",[_a,La,Cu]],["json",lD],["yaml11",Tm],["yaml-1.1",Tm]]),Lm={binary:Uc,bool:Vc,float:mm,floatExp:hm,floatNaN:dm,floatTime:Nm,int:Dm,intHex:bm,intOct:ym,intTime:Fm,map:_a,null:xu,omap:Gc,pairs:Wc,seq:La,set:Yc,timestamp:Nu},yD={"tag:yaml.org,2002:binary":Uc,"tag:yaml.org,2002:omap":Gc,"tag:yaml.org,2002:pairs":Wc,"tag:yaml.org,2002:set":Yc,"tag:yaml.org,2002:timestamp":Nu};function zc(e,t){let n=_m.get(t);if(!n)if(Array.isArray(e))n=[];else{const r=Array.from(_m.keys()).filter(i=>i!=="yaml11").map(i=>JSON.stringify(i)).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${r} or define customTags array`)}if(Array.isArray(e))for(const r of e)n=n.concat(r);else typeof e=="function"&&(n=e(n.slice()));return n.map(r=>{if(typeof r!="string")return r;const i=Lm[r];if(i)return i;const s=Object.keys(Lm).map(a=>JSON.stringify(a)).join(", ");throw new Error(`Unknown custom tag "${r}"; use one of ${s}`)})}const DD=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class Qc{constructor({compat:t,customTags:n,merge:r,resolveKnownTags:i,schema:s,sortMapEntries:a,toStringDefaults:o}){this.compat=Array.isArray(t)?zc(t,"compat"):t?zc(null,t):null,this.merge=!!r,this.name=typeof s=="string"&&s||"core",this.knownTags=i?yD:{},this.tags=zc(n,this.name),this.toStringOptions=o??null,Object.defineProperty(this,ws,{value:_a}),Object.defineProperty(this,ss,{value:Cu}),Object.defineProperty(this,Sa,{value:La}),this.sortMapEntries=typeof a=="function"?a:a===!0?DD:null}clone(){const t=Object.create(Qc.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}}function bD(e,t){var u;const n=[];let r=t.directives===!0;if(t.directives!==!1&&e.directives){const l=e.directives.toString(e);l?(n.push(l),r=!0):e.directives.docStart&&(r=!0)}r&&n.push("---");const i=um(e,t),{commentString:s}=i.options;if(e.commentBefore){n.length!==1&&n.unshift("");const l=s(e.commentBefore);n.unshift(as(l,""))}let a=!1,o=null;if(e.contents){if(yr(e.contents)){if(e.contents.spaceBefore&&r&&n.push(""),e.contents.commentBefore){const c=s(e.contents.commentBefore);n.push(as(c,""))}i.forceBlockIndent=!!e.comment,o=e.contents.comment}const l=o?void 0:()=>a=!0;let v=Ta(e.contents,i,()=>o=null,l);o&&(v+=Fs(v,"",s(o))),(v[0]==="|"||v[0]===">")&&n[n.length-1]==="---"?n[n.length-1]=`--- ${v}`:n.push(v)}else n.push(Ta(e.contents,i));if((u=e.directives)!=null&&u.docEnd)if(e.comment){const l=s(e.comment);l.includes(`
69
- `)?(n.push("..."),n.push(as(l,""))):n.push(`... ${l}`)}else n.push("...");else{let l=e.comment;l&&a&&(l=l.replace(/^\n+/,"")),l&&((!a||o)&&n[n.length-1]!==""&&n.push(""),n.push(as(s(l),"")))}return n.join(`
70
- `)+`
71
- `}class Tu{constructor(t,n,r){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,wi,{value:kc});let i=null;typeof n=="function"||Array.isArray(n)?i=n:r===void 0&&n&&(r=n,n=void 0);const s=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,uniqueKeys:!0,version:"1.2"},r);this.options=s;let{version:a}=s;r!=null&&r._directives?(this.directives=r._directives.atDocument(),this.directives.yaml.explicit&&(a=this.directives.yaml.version)):this.directives=new ii({version:a}),this.setSchema(a,r),this.contents=t===void 0?null:this.createNode(t,i,r)}clone(){const t=Object.create(Tu.prototype,{[wi]:{value:kc}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=yr(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(t){Ba(this.contents)&&this.contents.add(t)}addIn(t,n){Ba(this.contents)&&this.contents.addIn(t,n)}createAlias(t,n){if(!t.anchor){const r=rm(this);t.anchor=!n||r.has(n)?im(n||"a",r):n}return new Bc(t.anchor)}createNode(t,n,r){let i;if(typeof n=="function")t=n.call({"":t},"",t),i=n;else if(Array.isArray(n)){const M=Ae=>typeof Ae=="number"||Ae instanceof String||Ae instanceof Number,he=n.filter(M).map(String);he.length>0&&(n=n.concat(he)),i=n}else r===void 0&&n&&(r=n,n=void 0);const{aliasDuplicateObjects:s,anchorPrefix:a,flow:o,keepUndefined:u,onTagObj:l,tag:v}=r??{},{onAnchor:c,setAnchors:N,sourceObjects:_}=Yy(this,a||"a"),Z={aliasDuplicateObjects:s??!0,keepUndefined:u??!1,onAnchor:c,onTagObj:l,replacer:i,schema:this.schema,sourceObjects:_},te=xo(t,v,Z);return o&&Lr(te)&&(te.flow=!0),N(),te}createPair(t,n,r={}){const i=this.createNode(t,null,r),s=this.createNode(n,null,r);return new si(i,s)}delete(t){return Ba(this.contents)?this.contents.delete(t):!1}deleteIn(t){return So(t)?this.contents==null?!1:(this.contents=null,!0):Ba(this.contents)?this.contents.deleteIn(t):!1}get(t,n){return Lr(this.contents)?this.contents.get(t,n):void 0}getIn(t,n){return So(t)?!n&&qn(this.contents)?this.contents.value:this.contents:Lr(this.contents)?this.contents.getIn(t,n):void 0}has(t){return Lr(this.contents)?this.contents.has(t):!1}hasIn(t){return So(t)?this.contents!==void 0:Lr(this.contents)?this.contents.hasIn(t):!1}set(t,n){this.contents==null?this.contents=hu(this.schema,[t],n):Ba(this.contents)&&this.contents.set(t,n)}setIn(t,n){So(t)?this.contents=n:this.contents==null?this.contents=hu(this.schema,Array.from(t),n):Ba(this.contents)&&this.contents.setIn(t,n)}setSchema(t,n={}){typeof t=="number"&&(t=String(t));let r;switch(t){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new ii({version:"1.1"}),r={merge:!0,resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=t:this.directives=new ii({version:t}),r={merge:!1,resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,r=null;break;default:{const i=JSON.stringify(t);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${i}`)}}if(n.schema instanceof Object)this.schema=n.schema;else if(r)this.schema=new Qc(Object.assign(r,n));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:t,jsonArg:n,mapAsMap:r,maxAliasCount:i,onAnchor:s,reviver:a}={}){const o={anchors:new Map,doc:this,keep:!t,mapAsMap:r===!0,mapKeyWarned:!1,maxAliasCount:typeof i=="number"?i:100},u=Fi(this.contents,n??"",o);if(typeof s=="function")for(const{count:l,res:v}of o.anchors.values())s(v,l);return typeof a=="function"?Fa(a,{"":u},"",u):u}toJSON(t,n){return this.toJS({json:!0,jsonArg:t,mapAsMap:!1,onAnchor:n})}toString(t={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in t&&(!Number.isInteger(t.indent)||Number(t.indent)<=0)){const n=JSON.stringify(t.indent);throw new Error(`"indent" option must be a positive integer, not ${n}`)}return bD(this,t)}}function Ba(e){if(Lr(e))return!0;throw new Error("Expected a YAML collection as document contents")}class km extends Error{constructor(t,n,r,i){super(),this.name=t,this.code=r,this.message=i,this.pos=n}}class No extends km{constructor(t,n,r){super("YAMLParseError",t,n,r)}}class vD extends km{constructor(t,n,r){super("YAMLWarning",t,n,r)}}const Pm=(e,t)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map(o=>t.linePos(o));const{line:r,col:i}=n.linePos[0];n.message+=` at line ${r}, column ${i}`;let s=i-1,a=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,"");if(s>=60&&a.length>80){const o=Math.min(s-39,a.length-79);a="…"+a.substring(o),s-=o-1}if(a.length>80&&(a=a.substring(0,79)+"…"),r>1&&/^ *$/.test(a.substring(0,s))){let o=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);o.length>80&&(o=o.substring(0,79)+`…
72
- `),a=o+a}if(/[^ ]/.test(a)){let o=1;const u=n.linePos[1];u&&u.line===r&&u.col>i&&(o=Math.max(1,Math.min(u.col-i,80-s)));const l=" ".repeat(s)+"^".repeat(o);n.message+=`:
73
-
74
- ${a}
75
- ${l}
76
- `}};function Ma(e,{flow:t,indicator:n,next:r,offset:i,onError:s,startOnNewline:a}){let o=!1,u=a,l=a,v="",c="",N=!1,_=!1,Z=!1,te=null,M=null,he=null,Ae=null,Fe=null;for(const Ee of e)switch(Z&&(Ee.type!=="space"&&Ee.type!=="newline"&&Ee.type!=="comma"&&s(Ee.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),Z=!1),Ee.type){case"space":!t&&u&&n!=="doc-start"&&Ee.source[0]===" "&&s(Ee,"TAB_AS_INDENT","Tabs are not allowed as indentation"),l=!0;break;case"comment":{l||s(Ee,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const Qe=Ee.source.substring(1)||" ";v?v+=c+Qe:v=Qe,c="",u=!1;break}case"newline":u?v?v+=Ee.source:o=!0:c+=Ee.source,u=!0,N=!0,(te||M)&&(_=!0),l=!0;break;case"anchor":te&&s(Ee,"MULTIPLE_ANCHORS","A node can have at most one anchor"),Ee.source.endsWith(":")&&s(Ee.offset+Ee.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),te=Ee,Fe===null&&(Fe=Ee.offset),u=!1,l=!1,Z=!0;break;case"tag":{M&&s(Ee,"MULTIPLE_TAGS","A node can have at most one tag"),M=Ee,Fe===null&&(Fe=Ee.offset),u=!1,l=!1,Z=!0;break}case n:(te||M)&&s(Ee,"BAD_PROP_ORDER",`Anchors and tags must be after the ${Ee.source} indicator`),Ae&&s(Ee,"UNEXPECTED_TOKEN",`Unexpected ${Ee.source} in ${t??"collection"}`),Ae=Ee,u=!1,l=!1;break;case"comma":if(t){he&&s(Ee,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),he=Ee,u=!1,l=!1;break}default:s(Ee,"UNEXPECTED_TOKEN",`Unexpected ${Ee.type} token`),u=!1,l=!1}const ke=e[e.length-1],ae=ke?ke.offset+ke.source.length:i;return Z&&r&&r.type!=="space"&&r.type!=="newline"&&r.type!=="comma"&&(r.type!=="scalar"||r.source!=="")&&s(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),{comma:he,found:Ae,spaceBefore:o,comment:v,hasNewline:N,hasNewlineAfterProp:_,anchor:te,tag:M,end:ae,start:Fe??ae}}function To(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes(`
77
- `))return!0;if(e.end){for(const t of e.end)if(t.type==="newline")return!0}return!1;case"flow-collection":for(const t of e.items){for(const n of t.start)if(n.type==="newline")return!0;if(t.sep){for(const n of t.sep)if(n.type==="newline")return!0}if(To(t.key)||To(t.value))return!0}return!1;default:return!0}}function Xc(e,t,n){if((t==null?void 0:t.type)==="flow-collection"){const r=t.end[0];r.indent===e&&(r.source==="]"||r.source==="}")&&To(t)&&n(r,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function Bm(e,t,n){const{uniqueKeys:r}=e.options;if(r===!1)return!1;const i=typeof r=="function"?r:(s,a)=>s===a||qn(s)&&qn(a)&&s.value===a.value&&!(s.value==="<<"&&e.schema.merge);return t.some(s=>i(s.key,n))}const Mm="All mapping items must start at the same column";function ED({composeNode:e,composeEmptyNode:t},n,r,i,s){var v;const a=(s==null?void 0:s.nodeClass)??Ni,o=new a(n.schema);n.atRoot&&(n.atRoot=!1);let u=r.offset,l=null;for(const c of r.items){const{start:N,key:_,sep:Z,value:te}=c,M=Ma(N,{indicator:"explicit-key-ind",next:_??(Z==null?void 0:Z[0]),offset:u,onError:i,startOnNewline:!0}),he=!M.found;if(he){if(_&&(_.type==="block-seq"?i(u,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in _&&_.indent!==r.indent&&i(u,"BAD_INDENT",Mm)),!M.anchor&&!M.tag&&!Z){l=M.end,M.comment&&(o.comment?o.comment+=`
78
- `+M.comment:o.comment=M.comment);continue}(M.hasNewlineAfterProp||To(_))&&i(_??N[N.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else((v=M.found)==null?void 0:v.indent)!==r.indent&&i(u,"BAD_INDENT",Mm);const Ae=M.end,Fe=_?e(n,_,M,i):t(n,Ae,N,null,M,i);n.schema.compat&&Xc(r.indent,_,i),Bm(n,o.items,Fe)&&i(Ae,"DUPLICATE_KEY","Map keys must be unique");const ke=Ma(Z??[],{indicator:"map-value-ind",next:te,offset:Fe.range[2],onError:i,startOnNewline:!_||_.type==="block-scalar"});if(u=ke.end,ke.found){he&&((te==null?void 0:te.type)==="block-map"&&!ke.hasNewline&&i(u,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&M.start<ke.found.offset-1024&&i(Fe.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const ae=te?e(n,te,ke,i):t(n,u,Z,null,ke,i);n.schema.compat&&Xc(r.indent,te,i),u=ae.range[2];const Ee=new si(Fe,ae);n.options.keepSourceTokens&&(Ee.srcToken=c),o.items.push(Ee)}else{he&&i(Fe.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),ke.comment&&(Fe.comment?Fe.comment+=`
79
- `+ke.comment:Fe.comment=ke.comment);const ae=new si(Fe);n.options.keepSourceTokens&&(ae.srcToken=c),o.items.push(ae)}}return l&&l<u&&i(l,"IMPOSSIBLE","Map comment with trailing content"),o.range=[r.offset,u,l??u],o}function AD({composeNode:e,composeEmptyNode:t},n,r,i,s){const a=(s==null?void 0:s.nodeClass)??Gs,o=new a(n.schema);n.atRoot&&(n.atRoot=!1);let u=r.offset,l=null;for(const{start:v,value:c}of r.items){const N=Ma(v,{indicator:"seq-item-ind",next:c,offset:u,onError:i,startOnNewline:!0});if(!N.found)if(N.anchor||N.tag||c)c&&c.type==="block-seq"?i(N.end,"BAD_INDENT","All sequence items must start at the same column"):i(u,"MISSING_CHAR","Sequence item without - indicator");else{l=N.end,N.comment&&(o.comment=N.comment);continue}const _=c?e(n,c,N,i):t(n,N.end,v,null,N,i);n.schema.compat&&Xc(r.indent,c,i),u=_.range[2],o.items.push(_)}return o.range=[r.offset,u,l??u],o}function _o(e,t,n,r){let i="";if(e){let s=!1,a="";for(const o of e){const{source:u,type:l}=o;switch(l){case"space":s=!0;break;case"comment":{n&&!s&&r(o,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const v=u.substring(1)||" ";i?i+=a+v:i=v,a="";break}case"newline":i&&(a+=u),s=!0;break;default:r(o,"UNEXPECTED_TOKEN",`Unexpected ${l} at node end`)}t+=u.length}}return{comment:i,offset:t}}const Kc="Block collections are not allowed within flow collections",Zc=e=>e&&(e.type==="block-map"||e.type==="block-seq");function CD({composeNode:e,composeEmptyNode:t},n,r,i,s){const a=r.start.source==="{",o=a?"flow map":"flow sequence",u=(s==null?void 0:s.nodeClass)??(a?Ni:Gs),l=new u(n.schema);l.flow=!0;const v=n.atRoot;v&&(n.atRoot=!1);let c=r.offset+r.start.source.length;for(let M=0;M<r.items.length;++M){const he=r.items[M],{start:Ae,key:Fe,sep:ke,value:ae}=he,Ee=Ma(Ae,{flow:o,indicator:"explicit-key-ind",next:Fe??(ke==null?void 0:ke[0]),offset:c,onError:i,startOnNewline:!1});if(!Ee.found){if(!Ee.anchor&&!Ee.tag&&!ke&&!ae){M===0&&Ee.comma?i(Ee.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${o}`):M<r.items.length-1&&i(Ee.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${o}`),Ee.comment&&(l.comment?l.comment+=`
80
- `+Ee.comment:l.comment=Ee.comment),c=Ee.end;continue}!a&&n.options.strict&&To(Fe)&&i(Fe,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(M===0)Ee.comma&&i(Ee.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${o}`);else if(Ee.comma||i(Ee.start,"MISSING_CHAR",`Missing , between ${o} items`),Ee.comment){let Qe="";e:for(const Dt of Ae)switch(Dt.type){case"comma":case"space":break;case"comment":Qe=Dt.source.substring(1);break e;default:break e}if(Qe){let Dt=l.items[l.items.length-1];dr(Dt)&&(Dt=Dt.value??Dt.key),Dt.comment?Dt.comment+=`
81
- `+Qe:Dt.comment=Qe,Ee.comment=Ee.comment.substring(Qe.length+1)}}if(!a&&!ke&&!Ee.found){const Qe=ae?e(n,ae,Ee,i):t(n,Ee.end,ke,null,Ee,i);l.items.push(Qe),c=Qe.range[2],Zc(ae)&&i(Qe.range,"BLOCK_IN_FLOW",Kc)}else{const Qe=Ee.end,Dt=Fe?e(n,Fe,Ee,i):t(n,Qe,Ae,null,Ee,i);Zc(Fe)&&i(Dt.range,"BLOCK_IN_FLOW",Kc);const Ve=Ma(ke??[],{flow:o,indicator:"map-value-ind",next:ae,offset:Dt.range[2],onError:i,startOnNewline:!1});if(Ve.found){if(!a&&!Ee.found&&n.options.strict){if(ke)for(const me of ke){if(me===Ve.found)break;if(me.type==="newline"){i(me,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}Ee.start<Ve.found.offset-1024&&i(Ve.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else ae&&("source"in ae&&ae.source&&ae.source[0]===":"?i(ae,"MISSING_CHAR",`Missing space after : in ${o}`):i(Ve.start,"MISSING_CHAR",`Missing , or : between ${o} items`));const Xe=ae?e(n,ae,Ve,i):Ve.found?t(n,Ve.end,ke,null,Ve,i):null;Xe?Zc(ae)&&i(Xe.range,"BLOCK_IN_FLOW",Kc):Ve.comment&&(Dt.comment?Dt.comment+=`
82
- `+Ve.comment:Dt.comment=Ve.comment);const ze=new si(Dt,Xe);if(n.options.keepSourceTokens&&(ze.srcToken=he),a){const me=l;Bm(n,me.items,Dt)&&i(Qe,"DUPLICATE_KEY","Map keys must be unique"),me.items.push(ze)}else{const me=new Ni(n.schema);me.flow=!0,me.items.push(ze),l.items.push(me)}c=Xe?Xe.range[2]:Ve.end}}const N=a?"}":"]",[_,...Z]=r.end;let te=c;if(_&&_.source===N)te=_.offset+_.source.length;else{const M=o[0].toUpperCase()+o.substring(1),he=v?`${M} must end with a ${N}`:`${M} in block collection must be sufficiently indented and end with a ${N}`;i(c,v?"MISSING_CHAR":"BAD_INDENT",he),_&&_.source.length!==1&&Z.unshift(_)}if(Z.length>0){const M=_o(Z,te,n.options.strict,i);M.comment&&(l.comment?l.comment+=`
83
- `+M.comment:l.comment=M.comment),l.range=[r.offset,te,M.offset]}else l.range=[r.offset,te,te];return l}function ef(e,t,n,r,i,s){const a=n.type==="block-map"?ED(e,t,n,r,s):n.type==="block-seq"?AD(e,t,n,r,s):CD(e,t,n,r,s),o=a.constructor;return i==="!"||i===o.tagName?(a.tag=o.tagName,a):(i&&(a.tag=i),a)}function xD(e,t,n,r,i){var c;const s=r?t.directives.tagName(r.source,N=>i(r,"TAG_RESOLVE_FAILED",N)):null,a=n.type==="block-map"?"map":n.type==="block-seq"?"seq":n.start.source==="{"?"map":"seq";if(!r||!s||s==="!"||s===Ni.tagName&&a==="map"||s===Gs.tagName&&a==="seq"||!a)return ef(e,t,n,i,s);let o=t.schema.tags.find(N=>N.tag===s&&N.collection===a);if(!o){const N=t.schema.knownTags[s];if(N&&N.collection===a)t.schema.tags.push(Object.assign({},N,{default:!1})),o=N;else return N!=null&&N.collection?i(r,"BAD_COLLECTION_TYPE",`${N.tag} used for ${a} collection, but expects ${N.collection}`,!0):i(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${s}`,!0),ef(e,t,n,i,s)}const u=ef(e,t,n,i,s,o),l=((c=o.resolve)==null?void 0:c.call(o,u,N=>i(r,"TAG_RESOLVE_FAILED",N),t.options))??u,v=yr(l)?l:new Kn(l);return v.range=u.range,v.tag=s,o!=null&&o.format&&(v.format=o.format),v}function SD(e,t,n){const r=e.offset,i=wD(e,t,n);if(!i)return{value:"",type:null,comment:"",range:[r,r,r]};const s=i.mode===">"?Kn.BLOCK_FOLDED:Kn.BLOCK_LITERAL,a=e.source?FD(e.source):[];let o=a.length;for(let te=a.length-1;te>=0;--te){const M=a[te][1];if(M===""||M==="\r")o=te;else break}if(o===0){const te=i.chomp==="+"&&a.length>0?`
84
- `.repeat(Math.max(1,a.length-1)):"";let M=r+i.length;return e.source&&(M+=e.source.length),{value:te,type:s,comment:i.comment,range:[r,M,M]}}let u=e.indent+i.indent,l=e.offset+i.length,v=0;for(let te=0;te<o;++te){const[M,he]=a[te];if(he===""||he==="\r")i.indent===0&&M.length>u&&(u=M.length);else{M.length<u&&n(l+M.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),i.indent===0&&(u=M.length),v=te;break}l+=M.length+he.length+1}for(let te=a.length-1;te>=o;--te)a[te][0].length>u&&(o=te+1);let c="",N="",_=!1;for(let te=0;te<v;++te)c+=a[te][0].slice(u)+`
85
- `;for(let te=v;te<o;++te){let[M,he]=a[te];l+=M.length+he.length+1;const Ae=he[he.length-1]==="\r";if(Ae&&(he=he.slice(0,-1)),he&&M.length<u){const ke=`Block scalar lines must not be less indented than their ${i.indent?"explicit indentation indicator":"first line"}`;n(l-he.length-(Ae?2:1),"BAD_INDENT",ke),M=""}s===Kn.BLOCK_LITERAL?(c+=N+M.slice(u)+he,N=`
86
- `):M.length>u||he[0]===" "?(N===" "?N=`
87
- `:!_&&N===`
88
- `&&(N=`
89
-
90
- `),c+=N+M.slice(u)+he,N=`
91
- `,_=!0):he===""?N===`
92
- `?c+=`
93
- `:N=`
94
- `:(c+=N+he,N=" ",_=!1)}switch(i.chomp){case"-":break;case"+":for(let te=o;te<a.length;++te)c+=`
95
- `+a[te][0].slice(u);c[c.length-1]!==`
96
- `&&(c+=`
97
- `);break;default:c+=`
98
- `}const Z=r+i.length+e.source.length;return{value:c,type:s,comment:i.comment,range:[r,Z,Z]}}function wD({offset:e,props:t},n,r){if(t[0].type!=="block-scalar-header")return r(t[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:i}=t[0],s=i[0];let a=0,o="",u=-1;for(let N=1;N<i.length;++N){const _=i[N];if(!o&&(_==="-"||_==="+"))o=_;else{const Z=Number(_);!a&&Z?a=Z:u===-1&&(u=e+N)}}u!==-1&&r(u,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${i}`);let l=!1,v="",c=i.length;for(let N=1;N<t.length;++N){const _=t[N];switch(_.type){case"space":l=!0;case"newline":c+=_.source.length;break;case"comment":n&&!l&&r(_,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),c+=_.source.length,v=_.source.substring(1);break;case"error":r(_,"UNEXPECTED_TOKEN",_.message),c+=_.source.length;break;default:{const Z=`Unexpected token in block scalar header: ${_.type}`;r(_,"UNEXPECTED_TOKEN",Z);const te=_.source;te&&typeof te=="string"&&(c+=te.length)}}}return{mode:s,indent:a,chomp:o,comment:v,length:c}}function FD(e){const t=e.split(/\n( *)/),n=t[0],r=n.match(/^( *)/),s=[r!=null&&r[1]?[r[1],n.slice(r[1].length)]:["",n]];for(let a=1;a<t.length;a+=2)s.push([t[a],t[a+1]]);return s}function ND(e,t,n){const{offset:r,type:i,source:s,end:a}=e;let o,u;const l=(N,_,Z)=>n(r+N,_,Z);switch(i){case"scalar":o=Kn.PLAIN,u=TD(s,l);break;case"single-quoted-scalar":o=Kn.QUOTE_SINGLE,u=_D(s,l);break;case"double-quoted-scalar":o=Kn.QUOTE_DOUBLE,u=LD(s,l);break;default:return n(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${i}`),{value:"",type:null,comment:"",range:[r,r+s.length,r+s.length]}}const v=r+s.length,c=_o(a,v,t,n);return{value:u,type:o,comment:c.comment,range:[r,v,c.offset]}}function TD(e,t){let n="";switch(e[0]){case" ":n="a tab character";break;case",":n="flow indicator character ,";break;case"%":n="directive indicator character %";break;case"|":case">":{n=`block scalar indicator ${e[0]}`;break}case"@":case"`":{n=`reserved character ${e[0]}`;break}}return n&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${n}`),Im(e)}function _D(e,t){return(e[e.length-1]!=="'"||e.length===1)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),Im(e.slice(1,-1)).replace(/''/g,"'")}function Im(e){let t,n;try{t=new RegExp(`(.*?)(?<![ ])[ ]*\r?
99
- `,"sy"),n=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
100
- `,"sy")}catch{t=/(.*?)[ \t]*\r?\n/sy,n=/[ \t]*(.*?)[ \t]*\r?\n/sy}let r=t.exec(e);if(!r)return e;let i=r[1],s=" ",a=t.lastIndex;for(n.lastIndex=a;r=n.exec(e);)r[1]===""?s===`
101
- `?i+=s:s=`
102
- `:(i+=s+r[1],s=" "),a=n.lastIndex;const o=/[ \t]*(.*)/sy;return o.lastIndex=a,r=o.exec(e),i+s+((r==null?void 0:r[1])??"")}function LD(e,t){let n="";for(let r=1;r<e.length-1;++r){const i=e[r];if(!(i==="\r"&&e[r+1]===`
103
- `))if(i===`
104
- `){const{fold:s,offset:a}=kD(e,r);n+=s,r=a}else if(i==="\\"){let s=e[++r];const a=PD[s];if(a)n+=a;else if(s===`
105
- `)for(s=e[r+1];s===" "||s===" ";)s=e[++r+1];else if(s==="\r"&&e[r+1]===`
106
- `)for(s=e[++r+1];s===" "||s===" ";)s=e[++r+1];else if(s==="x"||s==="u"||s==="U"){const o={x:2,u:4,U:8}[s];n+=BD(e,r+1,o,t),r+=o}else{const o=e.substr(r-1,2);t(r-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${o}`),n+=o}}else if(i===" "||i===" "){const s=r;let a=e[r+1];for(;a===" "||a===" ";)a=e[++r+1];a!==`
107
- `&&!(a==="\r"&&e[r+2]===`
108
- `)&&(n+=r>s?e.slice(s,r+1):i)}else n+=i}return(e[e.length-1]!=='"'||e.length===1)&&t(e.length,"MISSING_CHAR",'Missing closing "quote'),n}function kD(e,t){let n="",r=e[t+1];for(;(r===" "||r===" "||r===`
109
- `||r==="\r")&&!(r==="\r"&&e[t+2]!==`
110
- `);)r===`
111
- `&&(n+=`
112
- `),t+=1,r=e[t+1];return n||(n=" "),{fold:n,offset:t}}const PD={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
113
- `,r:"\r",t:" ",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function BD(e,t,n,r){const i=e.substr(t,n),a=i.length===n&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;if(isNaN(a)){const o=e.substr(t-2,n+2);return r(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${o}`),o}return String.fromCodePoint(a)}function Om(e,t,n,r){const{value:i,type:s,comment:a,range:o}=t.type==="block-scalar"?SD(t,e.options.strict,r):ND(t,e.options.strict,r),u=n?e.directives.tagName(n.source,c=>r(n,"TAG_RESOLVE_FAILED",c)):null,l=n&&u?MD(e.schema,i,u,n,r):t.type==="scalar"?ID(e,i,t,r):e.schema[ss];let v;try{const c=l.resolve(i,N=>r(n??t,"TAG_RESOLVE_FAILED",N),e.options);v=qn(c)?c:new Kn(c)}catch(c){const N=c instanceof Error?c.message:String(c);r(n??t,"TAG_RESOLVE_FAILED",N),v=new Kn(i)}return v.range=o,v.source=i,s&&(v.type=s),u&&(v.tag=u),l.format&&(v.format=l.format),a&&(v.comment=a),v}function MD(e,t,n,r,i){var o;if(n==="!")return e[ss];const s=[];for(const u of e.tags)if(!u.collection&&u.tag===n)if(u.default&&u.test)s.push(u);else return u;for(const u of s)if((o=u.test)!=null&&o.test(t))return u;const a=e.knownTags[n];return a&&!a.collection?(e.tags.push(Object.assign({},a,{default:!1,test:void 0})),a):(i(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,n!=="tag:yaml.org,2002:str"),e[ss])}function ID({directives:e,schema:t},n,r,i){const s=t.tags.find(a=>{var o;return a.default&&((o=a.test)==null?void 0:o.test(n))})||t[ss];if(t.compat){const a=t.compat.find(o=>{var u;return o.default&&((u=o.test)==null?void 0:u.test(n))})??t[ss];if(s.tag!==a.tag){const o=e.tagString(s.tag),u=e.tagString(a.tag),l=`Value may be parsed as either ${o} or ${u}`;i(r,"TAG_RESOLVE_FAILED",l,!0)}}return s}function OD(e,t,n){if(t){n===null&&(n=t.length);for(let r=n-1;r>=0;--r){let i=t[r];switch(i.type){case"space":case"comment":case"newline":e-=i.source.length;continue}for(i=t[++r];(i==null?void 0:i.type)==="space";)e+=i.source.length,i=t[++r];break}}return e}const jD={composeNode:jm,composeEmptyNode:tf};function jm(e,t,n,r){const{spaceBefore:i,comment:s,anchor:a,tag:o}=n;let u,l=!0;switch(t.type){case"alias":u=RD(e,t,r),(a||o)&&r(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":u=Om(e,t,o,r),a&&(u.anchor=a.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":u=xD(jD,e,t,o,r),a&&(u.anchor=a.source.substring(1));break;default:{const v=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;r(t,"UNEXPECTED_TOKEN",v),u=tf(e,t.offset,void 0,null,n,r),l=!1}}return a&&u.anchor===""&&r(a,"BAD_ALIAS","Anchor cannot be an empty string"),i&&(u.spaceBefore=!0),s&&(t.type==="scalar"&&t.source===""?u.comment=s:u.commentBefore=s),e.options.keepSourceTokens&&l&&(u.srcToken=t),u}function tf(e,t,n,r,{spaceBefore:i,comment:s,anchor:a,tag:o,end:u},l){const v={type:"scalar",offset:OD(t,n,r),indent:-1,source:""},c=Om(e,v,o,l);return a&&(c.anchor=a.source.substring(1),c.anchor===""&&l(a,"BAD_ALIAS","Anchor cannot be an empty string")),i&&(c.spaceBefore=!0),s&&(c.comment=s,c.range[2]=u),c}function RD({options:e},{offset:t,source:n,end:r},i){const s=new Bc(n.substring(1));s.source===""&&i(t,"BAD_ALIAS","Alias cannot be an empty string"),s.source.endsWith(":")&&i(t+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const a=t+n.length,o=_o(r,a,e.strict,i);return s.range=[t,a,o.offset],o.comment&&(s.comment=o.comment),s}function $D(e,t,{offset:n,start:r,value:i,end:s},a){const o=Object.assign({_directives:t},e),u=new Tu(void 0,o),l={atRoot:!0,directives:u.directives,options:u.options,schema:u.schema},v=Ma(r,{indicator:"doc-start",next:i??(s==null?void 0:s[0]),offset:n,onError:a,startOnNewline:!0});v.found&&(u.directives.docStart=!0,i&&(i.type==="block-map"||i.type==="block-seq")&&!v.hasNewline&&a(v.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),u.contents=i?jm(l,i,v,a):tf(l,v.end,r,null,v,a);const c=u.contents.range[2],N=_o(s,c,!1,a);return N.comment&&(u.comment=N.comment),u.range=[n,c,N.offset],u}function Lo(e){if(typeof e=="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];const{offset:t,source:n}=e;return[t,t+(typeof n=="string"?n.length:1)]}function Rm(e){var i;let t="",n=!1,r=!1;for(let s=0;s<e.length;++s){const a=e[s];switch(a[0]){case"#":t+=(t===""?"":r?`
114
-
115
- `:`
116
- `)+(a.substring(1)||" "),n=!0,r=!1;break;case"%":((i=e[s+1])==null?void 0:i[0])!=="#"&&(s+=1),n=!1;break;default:n||(r=!0),n=!1}}return{comment:t,afterEmptyLine:r}}class $m{constructor(t={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(n,r,i,s)=>{const a=Lo(n);s?this.warnings.push(new vD(a,r,i)):this.errors.push(new No(a,r,i))},this.directives=new ii({version:t.version||"1.2"}),this.options=t}decorate(t,n){const{comment:r,afterEmptyLine:i}=Rm(this.prelude);if(r){const s=t.contents;if(n)t.comment=t.comment?`${t.comment}
117
- ${r}`:r;else if(i||t.directives.docStart||!s)t.commentBefore=r;else if(Lr(s)&&!s.flow&&s.items.length>0){let a=s.items[0];dr(a)&&(a=a.key);const o=a.commentBefore;a.commentBefore=o?`${r}
118
- ${o}`:r}else{const a=s.commentBefore;s.commentBefore=a?`${r}
119
- ${a}`:r}}n?(Array.prototype.push.apply(t.errors,this.errors),Array.prototype.push.apply(t.warnings,this.warnings)):(t.errors=this.errors,t.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:Rm(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(t,n=!1,r=-1){for(const i of t)yield*this.next(i);yield*this.end(n,r)}*next(t){switch(t.type){case"directive":this.directives.add(t.source,(n,r,i)=>{const s=Lo(t);s[0]+=n,this.onError(s,"BAD_DIRECTIVE",r,i)}),this.prelude.push(t.source),this.atDirectives=!0;break;case"document":{const n=$D(this.options,this.directives,t,this.onError);this.atDirectives&&!n.directives.docStart&&this.onError(t,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(n,!1),this.doc&&(yield this.doc),this.doc=n,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(t.source);break;case"error":{const n=t.source?`${t.message}: ${JSON.stringify(t.source)}`:t.message,r=new No(Lo(t),"UNEXPECTED_TOKEN",n);this.atDirectives||!this.doc?this.errors.push(r):this.doc.errors.push(r);break}case"doc-end":{if(!this.doc){const r="Unexpected doc-end without preceding document";this.errors.push(new No(Lo(t),"UNEXPECTED_TOKEN",r));break}this.doc.directives.docEnd=!0;const n=_o(t.end,t.offset+t.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),n.comment){const r=this.doc.comment;this.doc.comment=r?`${r}
120
- ${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.push(new No(Lo(t),"UNEXPECTED_TOKEN",`Unsupported token ${t.type}`))}}*end(t=!1,n=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(t){const r=Object.assign({_directives:this.directives},this.options),i=new Tu(void 0,r);this.atDirectives&&this.onError(n,"MISSING_CHAR","Missing directives-end indicator line"),i.range=[0,n,n],this.decorate(i,!1),yield i}}}const Vm=e=>"type"in e?_u(e):Lu(e);function _u(e){switch(e.type){case"block-scalar":{let t="";for(const n of e.props)t+=_u(n);return t+e.source}case"block-map":case"block-seq":{let t="";for(const n of e.items)t+=Lu(n);return t}case"flow-collection":{let t=e.start.source;for(const n of e.items)t+=Lu(n);for(const n of e.end)t+=n.source;return t}case"document":{let t=Lu(e);if(e.end)for(const n of e.end)t+=n.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(const n of e.end)t+=n.source;return t}}}function Lu({start:e,key:t,sep:n,value:r}){let i="";for(const s of e)i+=s.source;if(t&&(i+=_u(t)),n)for(const s of n)i+=s.source;return r&&(i+=_u(r)),i}const nf=Symbol("break visit"),VD=Symbol("skip children"),qm=Symbol("remove item");function Js(e,t){"type"in e&&e.type==="document"&&(e={start:e.start,value:e.value}),Um(Object.freeze([]),e,t)}Js.BREAK=nf,Js.SKIP=VD,Js.REMOVE=qm,Js.itemAtPath=(e,t)=>{let n=e;for(const[r,i]of t){const s=n==null?void 0:n[r];if(s&&"items"in s)n=s.items[i];else return}return n},Js.parentCollection=(e,t)=>{const n=Js.itemAtPath(e,t.slice(0,-1)),r=t[t.length-1][0],i=n==null?void 0:n[r];if(i&&"items"in i)return i;throw new Error("Parent collection not found")};function Um(e,t,n){let r=n(t,e);if(typeof r=="symbol")return r;for(const i of["key","value"]){const s=t[i];if(s&&"items"in s){for(let a=0;a<s.items.length;++a){const o=Um(Object.freeze(e.concat([[i,a]])),s.items[a],n);if(typeof o=="number")a=o-1;else{if(o===nf)return nf;o===qm&&(s.items.splice(a,1),a-=1)}}typeof r=="function"&&i==="key"&&(r=r(t,e))}}return typeof r=="function"?r(t,e):r}const Wm="\uFEFF",Gm="",Jm="",rf="",qD=e=>!!e&&"items"in e,sf=e=>!!e&&(e.type==="scalar"||e.type==="single-quoted-scalar"||e.type==="double-quoted-scalar"||e.type==="block-scalar");function UD(e){switch(e){case Wm:return"byte-order-mark";case Gm:return"doc-mode";case Jm:return"flow-error-end";case rf:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
121
- `:case`\r
122
- `:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}function Ti(e){switch(e){case void 0:case" ":case`
123
- `:case"\r":case" ":return!0;default:return!1}}const Ym="0123456789ABCDEFabcdef".split(""),WD="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()".split(""),af=",[]{}".split(""),GD=` ,[]{}
124
- \r `.split(""),of=e=>!e||GD.includes(e);class JD{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(t,n=!1){t&&(this.buffer=this.buffer?this.buffer+t:t,this.lineEndPos=null),this.atEnd=!n;let r=this.next??"stream";for(;r&&(n||this.hasChars(1));)r=yield*this.parseNext(r)}atLineEnd(){let t=this.pos,n=this.buffer[t];for(;n===" "||n===" ";)n=this.buffer[++t];return!n||n==="#"||n===`
125
- `?!0:n==="\r"?this.buffer[t+1]===`
126
- `:!1}charAt(t){return this.buffer[this.pos+t]}continueScalar(t){let n=this.buffer[t];if(this.indentNext>0){let r=0;for(;n===" ";)n=this.buffer[++r+t];if(n==="\r"){const i=this.buffer[r+t+1];if(i===`
127
- `||!i&&!this.atEnd)return t+r+1}return n===`
128
- `||r>=this.indentNext||!n&&!this.atEnd?t+r:-1}if(n==="-"||n==="."){const r=this.buffer.substr(t,3);if((r==="---"||r==="...")&&Ti(this.buffer[t+3]))return-1}return t}getLine(){let t=this.lineEndPos;return(typeof t!="number"||t!==-1&&t<this.pos)&&(t=this.buffer.indexOf(`
129
- `,this.pos),this.lineEndPos=t),t===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[t-1]==="\r"&&(t-=1),this.buffer.substring(this.pos,t))}hasChars(t){return this.pos+t<=this.buffer.length}setNext(t){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=t,null}peek(t){return this.buffer.substr(this.pos,t)}*parseNext(t){switch(t){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let t=this.getLine();if(t===null)return this.setNext("stream");if(t[0]===Wm&&(yield*this.pushCount(1),t=t.substring(1)),t[0]==="%"){let n=t.length;const r=t.indexOf("#");if(r!==-1){const s=t[r-1];(s===" "||s===" ")&&(n=r-1)}for(;;){const s=t[n-1];if(s===" "||s===" ")n-=1;else break}const i=(yield*this.pushCount(n))+(yield*this.pushSpaces(!0));return yield*this.pushCount(t.length-i),this.pushNewline(),"stream"}if(this.atLineEnd()){const n=yield*this.pushSpaces(!0);return yield*this.pushCount(t.length-n),yield*this.pushNewline(),"stream"}return yield Gm,yield*this.parseLineStart()}*parseLineStart(){const t=this.charAt(0);if(!t&&!this.atEnd)return this.setNext("line-start");if(t==="-"||t==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const n=this.peek(3);if(n==="---"&&Ti(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,"doc";if(n==="..."&&Ti(this.charAt(3)))return yield*this.pushCount(3),"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!Ti(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[t,n]=this.peek(2);if(!n&&!this.atEnd)return this.setNext("block-start");if((t==="-"||t==="?"||t===":")&&Ti(n)){const r=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=r,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const t=this.getLine();if(t===null)return this.setNext("doc");let n=yield*this.pushIndicators();switch(t[n]){case"#":yield*this.pushCount(t.length-n);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(of),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return n+=yield*this.parseBlockScalarHeader(),n+=yield*this.pushSpaces(!0),yield*this.pushCount(t.length-n),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let t,n,r=-1;do t=yield*this.pushNewline(),t>0?(n=yield*this.pushSpaces(!1),this.indentValue=r=n):n=0,n+=yield*this.pushSpaces(!0);while(t+n>0);const i=this.getLine();if(i===null)return this.setNext("flow");if((r!==-1&&r<this.indentNext&&i[0]!=="#"||r===0&&(i.startsWith("---")||i.startsWith("..."))&&Ti(i[3]))&&!(r===this.indentNext-1&&this.flowLevel===1&&(i[0]==="]"||i[0]==="}")))return this.flowLevel=0,yield Jm,yield*this.parseLineStart();let s=0;for(;i[s]===",";)s+=yield*this.pushCount(1),s+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(s+=yield*this.pushIndicators(),i[s]){case void 0:return"flow";case"#":return yield*this.pushCount(i.length-s),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(of),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const a=this.charAt(1);if(this.flowKey||Ti(a)||a===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){const t=this.charAt(0);let n=this.buffer.indexOf(t,this.pos+1);if(t==="'")for(;n!==-1&&this.buffer[n+1]==="'";)n=this.buffer.indexOf("'",n+2);else for(;n!==-1;){let s=0;for(;this.buffer[n-1-s]==="\\";)s+=1;if(s%2===0)break;n=this.buffer.indexOf('"',n+1)}const r=this.buffer.substring(0,n);let i=r.indexOf(`
130
- `,this.pos);if(i!==-1){for(;i!==-1;){const s=this.continueScalar(i+1);if(s===-1)break;i=r.indexOf(`
131
- `,s)}i!==-1&&(n=i-(r[i-1]==="\r"?2:1))}if(n===-1){if(!this.atEnd)return this.setNext("quoted-scalar");n=this.buffer.length}return yield*this.pushToIndex(n+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let t=this.pos;for(;;){const n=this.buffer[++t];if(n==="+")this.blockScalarKeep=!0;else if(n>"0"&&n<="9")this.blockScalarIndent=Number(n)-1;else if(n!=="-")break}return yield*this.pushUntil(n=>Ti(n)||n==="#")}*parseBlockScalar(){let t=this.pos-1,n=0,r;e:for(let i=this.pos;r=this.buffer[i];++i)switch(r){case" ":n+=1;break;case`
132
- `:t=i,n=0;break;case"\r":{const s=this.buffer[i+1];if(!s&&!this.atEnd)return this.setNext("block-scalar");if(s===`
133
- `)break}default:break e}if(!r&&!this.atEnd)return this.setNext("block-scalar");if(n>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=n:this.indentNext+=this.blockScalarIndent;do{const i=this.continueScalar(t+1);if(i===-1)break;t=this.buffer.indexOf(`
134
- `,i)}while(t!==-1);if(t===-1){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}if(!this.blockScalarKeep)do{let i=t-1,s=this.buffer[i];s==="\r"&&(s=this.buffer[--i]);const a=i;for(;s===" "||s===" ";)s=this.buffer[--i];if(s===`
135
- `&&i>=this.pos&&i+1+n>a)t=i;else break}while(!0);return yield rf,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const t=this.flowLevel>0;let n=this.pos-1,r=this.pos-1,i;for(;i=this.buffer[++r];)if(i===":"){const s=this.buffer[r+1];if(Ti(s)||t&&s===",")break;n=r}else if(Ti(i)){let s=this.buffer[r+1];if(i==="\r"&&(s===`
136
- `?(r+=1,i=`
137
- `,s=this.buffer[r+1]):n=r),s==="#"||t&&af.includes(s))break;if(i===`
138
- `){const a=this.continueScalar(r+1);if(a===-1)break;r=Math.max(r,a-2)}}else{if(t&&af.includes(i))break;n=r}return!i&&!this.atEnd?this.setNext("plain-scalar"):(yield rf,yield*this.pushToIndex(n+1,!0),t?"flow":"doc")}*pushCount(t){return t>0?(yield this.buffer.substr(this.pos,t),this.pos+=t,t):0}*pushToIndex(t,n){const r=this.buffer.slice(this.pos,t);return r?(yield r,this.pos+=r.length,r.length):(n&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(of))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const t=this.flowLevel>0,n=this.charAt(1);if(Ti(n)||t&&af.includes(n))return t?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let t=this.pos+2,n=this.buffer[t];for(;!Ti(n)&&n!==">";)n=this.buffer[++t];return yield*this.pushToIndex(n===">"?t+1:t,!1)}else{let t=this.pos+1,n=this.buffer[t];for(;n;)if(WD.includes(n))n=this.buffer[++t];else if(n==="%"&&Ym.includes(this.buffer[t+1])&&Ym.includes(this.buffer[t+2]))n=this.buffer[t+=3];else break;return yield*this.pushToIndex(t,!1)}}*pushNewline(){const t=this.buffer[this.pos];return t===`
139
- `?yield*this.pushCount(1):t==="\r"&&this.charAt(1)===`
140
- `?yield*this.pushCount(2):0}*pushSpaces(t){let n=this.pos-1,r;do r=this.buffer[++n];while(r===" "||t&&r===" ");const i=n-this.pos;return i>0&&(yield this.buffer.substr(this.pos,i),this.pos=n),i}*pushUntil(t){let n=this.pos,r=this.buffer[n];for(;!t(r);)r=this.buffer[++n];return yield*this.pushToIndex(n,!1)}}class Hm{constructor(){this.lineStarts=[],this.addNewLine=t=>this.lineStarts.push(t),this.linePos=t=>{let n=0,r=this.lineStarts.length;for(;n<r;){const s=n+r>>1;this.lineStarts[s]<t?n=s+1:r=s}if(this.lineStarts[n]===t)return{line:n+1,col:1};if(n===0)return{line:0,col:t};const i=this.lineStarts[n-1];return{line:n,col:t-i+1}}}}function ji(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function zm(e){for(let t=0;t<e.length;++t)switch(e[t].type){case"space":case"comment":case"newline":break;default:return t}return-1}function Qm(e){switch(e==null?void 0:e.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function ku(e){switch(e.type){case"document":return e.start;case"block-map":{const t=e.items[e.items.length-1];return t.sep??t.start}case"block-seq":return e.items[e.items.length-1].start;default:return[]}}function Ia(e){var n;if(e.length===0)return[];let t=e.length;e:for(;--t>=0;)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;((n=e[++t])==null?void 0:n.type)==="space";);return e.splice(t,e.length)}function Xm(e){if(e.start.type==="flow-seq-start")for(const t of e.items)t.sep&&!t.value&&!ji(t.start,"explicit-key-ind")&&!ji(t.sep,"map-value-ind")&&(t.key&&(t.value=t.key),delete t.key,Qm(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep),delete t.sep)}class uf{constructor(t){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new JD,this.onNewLine=t}*parse(t,n=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(const r of this.lexer.lex(t,n))yield*this.next(r);n||(yield*this.end())}*next(t){if(this.source=t,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=t.length;return}const n=UD(t);if(n)if(n==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=n,yield*this.step(),n){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+t.length);break;case"space":this.atNewLine&&t[0]===" "&&(this.indent+=t.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=t.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=t.length}else{const r=`Not a YAML token: ${t}`;yield*this.pop({type:"error",offset:this.offset,message:r,source:t}),this.offset+=t.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const t=this.peek(1);if(this.type==="doc-end"&&(!t||t.type!=="doc-end")){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!t)return yield*this.stream();switch(t.type){case"document":return yield*this.document(t);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(t);case"block-scalar":return yield*this.blockScalar(t);case"block-map":return yield*this.blockMap(t);case"block-seq":return yield*this.blockSequence(t);case"flow-collection":return yield*this.flowCollection(t);case"doc-end":return yield*this.documentEnd(t)}yield*this.pop()}peek(t){return this.stack[this.stack.length-t]}*pop(t){const n=t??this.stack.pop();if(!n)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield n;else{const r=this.peek(1);switch(n.type==="block-scalar"?n.indent="indent"in r?r.indent:0:n.type==="flow-collection"&&r.type==="document"&&(n.indent=0),n.type==="flow-collection"&&Xm(n),r.type){case"document":r.value=n;break;case"block-scalar":r.props.push(n);break;case"block-map":{const i=r.items[r.items.length-1];if(i.value){r.items.push({start:[],key:n,sep:[]}),this.onKeyLine=!0;return}else if(i.sep)i.value=n;else{Object.assign(i,{key:n,sep:[]}),this.onKeyLine=!ji(i.start,"explicit-key-ind");return}break}case"block-seq":{const i=r.items[r.items.length-1];i.value?r.items.push({start:[],value:n}):i.value=n;break}case"flow-collection":{const i=r.items[r.items.length-1];!i||i.value?r.items.push({start:[],key:n,sep:[]}):i.sep?i.value=n:Object.assign(i,{key:n,sep:[]});return}default:yield*this.pop(),yield*this.pop(n)}if((r.type==="document"||r.type==="block-map"||r.type==="block-seq")&&(n.type==="block-map"||n.type==="block-seq")){const i=n.items[n.items.length-1];i&&!i.sep&&!i.value&&i.start.length>0&&zm(i.start)===-1&&(n.indent===0||i.start.every(s=>s.type!=="comment"||s.indent<n.indent))&&(r.type==="document"?r.end=i.start:r.items.push({start:i.start}),n.items.splice(-1,1))}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{const t={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&t.start.push(this.sourceToken),this.stack.push(t);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(t){if(t.value)return yield*this.lineEnd(t);switch(this.type){case"doc-start":{zm(t.start)!==-1?(yield*this.pop(),yield*this.step()):t.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":t.start.push(this.sourceToken);return}const n=this.startBlockValue(t);n?this.stack.push(n):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(t){if(this.type==="map-value-ind"){const n=ku(this.peek(2)),r=Ia(n);let i;t.end?(i=t.end,i.push(this.sourceToken),delete t.end):i=[this.sourceToken];const s={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:r,key:t,sep:i}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=s}else yield*this.lineEnd(t)}*blockScalar(t){switch(this.type){case"space":case"comment":case"newline":t.props.push(this.sourceToken);return;case"scalar":if(t.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let n=this.source.indexOf(`
141
- `)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
142
- `,n)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(t){var r;const n=t.items[t.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,n.value){const i="end"in n.value?n.value.end:void 0,s=Array.isArray(i)?i[i.length-1]:void 0;(s==null?void 0:s.type)==="comment"?i==null||i.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)t.items.push({start:[this.sourceToken]});else if(n.sep)n.sep.push(this.sourceToken);else{if(this.atIndentedComment(n.start,t.indent)){const i=t.items[t.items.length-2],s=(r=i==null?void 0:i.value)==null?void 0:r.end;if(Array.isArray(s)){Array.prototype.push.apply(s,n.start),s.push(this.sourceToken),t.items.pop();return}}n.start.push(this.sourceToken)}return}if(this.indent>=t.indent){const i=!this.onKeyLine&&this.indent===t.indent&&n.sep;let s=[];if(i&&n.sep&&!n.value){const a=[];for(let o=0;o<n.sep.length;++o){const u=n.sep[o];switch(u.type){case"newline":a.push(o);break;case"space":break;case"comment":u.indent>t.indent&&(a.length=0);break;default:a.length=0}}a.length>=2&&(s=n.sep.splice(a[1]))}switch(this.type){case"anchor":case"tag":i||n.value?(s.push(this.sourceToken),t.items.push({start:s}),this.onKeyLine=!0):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"explicit-key-ind":!n.sep&&!ji(n.start,"explicit-key-ind")?n.start.push(this.sourceToken):i||n.value?(s.push(this.sourceToken),t.items.push({start:s})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]}),this.onKeyLine=!0;return;case"map-value-ind":if(ji(n.start,"explicit-key-ind"))if(n.sep)if(n.value)t.items.push({start:[],key:null,sep:[this.sourceToken]});else if(ji(n.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]});else if(Qm(n.key)&&!ji(n.sep,"newline")){const a=Ia(n.start),o=n.key,u=n.sep;u.push(this.sourceToken),delete n.key,delete n.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:a,key:o,sep:u}]})}else s.length>0?n.sep=n.sep.concat(s,this.sourceToken):n.sep.push(this.sourceToken);else if(ji(n.start,"newline"))Object.assign(n,{key:null,sep:[this.sourceToken]});else{const a=Ia(n.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:a,key:null,sep:[this.sourceToken]}]})}else n.sep?n.value||i?t.items.push({start:s,key:null,sep:[this.sourceToken]}):ji(n.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const a=this.flowScalar(this.type);i||n.value?(t.items.push({start:s,key:a,sep:[]}),this.onKeyLine=!0):n.sep?this.stack.push(a):(Object.assign(n,{key:a,sep:[]}),this.onKeyLine=!0);return}default:{const a=this.startBlockValue(t);if(a){i&&a.type!=="block-seq"&&ji(n.start,"explicit-key-ind")&&t.items.push({start:s}),this.stack.push(a);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(t){var r;const n=t.items[t.items.length-1];switch(this.type){case"newline":if(n.value){const i="end"in n.value?n.value.end:void 0,s=Array.isArray(i)?i[i.length-1]:void 0;(s==null?void 0:s.type)==="comment"?i==null||i.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)t.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(n.start,t.indent)){const i=t.items[t.items.length-2],s=(r=i==null?void 0:i.value)==null?void 0:r.end;if(Array.isArray(s)){Array.prototype.push.apply(s,n.start),s.push(this.sourceToken),t.items.pop();return}}n.start.push(this.sourceToken)}return;case"anchor":case"tag":if(n.value||this.indent<=t.indent)break;n.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==t.indent)break;n.value||ji(n.start,"seq-item-ind")?t.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return}if(this.indent>t.indent){const i=this.startBlockValue(t);if(i){this.stack.push(i);return}}yield*this.pop(),yield*this.step()}*flowCollection(t){const n=t.items[t.items.length-1];if(this.type==="flow-error-end"){let r;do yield*this.pop(),r=this.peek(1);while(r&&r.type==="flow-collection")}else if(t.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!n||n.sep?t.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return;case"map-value-ind":!n||n.value?t.items.push({start:[],key:null,sep:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!n||n.value?t.items.push({start:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const i=this.flowScalar(this.type);!n||n.value?t.items.push({start:[],key:i,sep:[]}):n.sep?this.stack.push(i):Object.assign(n,{key:i,sep:[]});return}case"flow-map-end":case"flow-seq-end":t.end.push(this.sourceToken);return}const r=this.startBlockValue(t);r?this.stack.push(r):(yield*this.pop(),yield*this.step())}else{const r=this.peek(2);if(r.type==="block-map"&&(this.type==="map-value-ind"&&r.indent===t.indent||this.type==="newline"&&!r.items[r.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&r.type!=="flow-collection"){const i=ku(r),s=Ia(i);Xm(t);const a=t.end.splice(1,t.end.length);a.push(this.sourceToken);const o={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:s,key:t,sep:a}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=o}else yield*this.lineEnd(t)}}flowScalar(t){if(this.onNewLine){let n=this.source.indexOf(`
143
- `)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
144
- `,n)+1}return{type:t,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(t){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const n=ku(t),r=Ia(n);return r.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r}]}}case"map-value-ind":{this.onKeyLine=!0;const n=ku(t),r=Ia(n);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(t,n){return this.type!=="comment"||this.indent<=n?!1:t.every(r=>r.type==="newline"||r.type==="space")}*documentEnd(t){this.type!=="doc-mode"&&(t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(t){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function YD(e){const t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new Hm||null,prettyErrors:t}}function HD(e,t={}){const{lineCounter:n,prettyErrors:r}=YD(t),i=new uf(n==null?void 0:n.addNewLine),s=new $m(t);let a=null;for(const o of s.compose(i.parse(e),!0,e.length))if(!a)a=o;else if(a.options.logLevel!=="silent"){a.errors.push(new No(o.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return r&&n&&(a.errors.forEach(Pm(e,n)),a.warnings.forEach(Pm(e,n))),a}function zD(e,t,n){let r;typeof t=="function"?r=t:n===void 0&&t&&typeof t=="object"&&(n=t);const i=HD(e,n);if(!i)return null;if(i.warnings.forEach(s=>lm(i.options.logLevel,s)),i.errors.length>0){if(i.options.logLevel!=="silent")throw i.errors[0];i.errors=[]}return i.toJS(Object.assign({reviver:r},n))}var Km=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function QD(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Xi(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function Zm(e,t){for(var n="",r=0,i=-1,s=0,a,o=0;o<=e.length;++o){if(o<e.length)a=e.charCodeAt(o);else{if(a===47)break;a=47}if(a===47){if(!(i===o-1||s===1))if(i!==o-1&&s===2){if(n.length<2||r!==2||n.charCodeAt(n.length-1)!==46||n.charCodeAt(n.length-2)!==46){if(n.length>2){var u=n.lastIndexOf("/");if(u!==n.length-1){u===-1?(n="",r=0):(n=n.slice(0,u),r=n.length-1-n.lastIndexOf("/")),i=o,s=0;continue}}else if(n.length===2||n.length===1){n="",r=0,i=o,s=0;continue}}t&&(n.length>0?n+="/..":n="..",r=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,s=0}else a===46&&s!==-1?++s:s=-1}return n}function XD(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+e+r:r}var Oa={resolve:function(){for(var t="",n=!1,r,i=arguments.length-1;i>=-1&&!n;i--){var s;i>=0?s=arguments[i]:(r===void 0&&(r=process.cwd()),s=r),Xi(s),s.length!==0&&(t=s+"/"+t,n=s.charCodeAt(0)===47)}return t=Zm(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(t){if(Xi(t),t.length===0)return".";var n=t.charCodeAt(0)===47,r=t.charCodeAt(t.length-1)===47;return t=Zm(t,!n),t.length===0&&!n&&(t="."),t.length>0&&r&&(t+="/"),n?"/"+t:t},isAbsolute:function(t){return Xi(t),t.length>0&&t.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var t,n=0;n<arguments.length;++n){var r=arguments[n];Xi(r),r.length>0&&(t===void 0?t=r:t+="/"+r)}return t===void 0?".":Oa.normalize(t)},relative:function(t,n){if(Xi(t),Xi(n),t===n||(t=Oa.resolve(t),n=Oa.resolve(n),t===n))return"";for(var r=1;r<t.length&&t.charCodeAt(r)===47;++r);for(var i=t.length,s=i-r,a=1;a<n.length&&n.charCodeAt(a)===47;++a);for(var o=n.length,u=o-a,l=s<u?s:u,v=-1,c=0;c<=l;++c){if(c===l){if(u>l){if(n.charCodeAt(a+c)===47)return n.slice(a+c+1);if(c===0)return n.slice(a+c)}else s>l&&(t.charCodeAt(r+c)===47?v=c:c===0&&(v=0));break}var N=t.charCodeAt(r+c),_=n.charCodeAt(a+c);if(N!==_)break;N===47&&(v=c)}var Z="";for(c=r+v+1;c<=i;++c)(c===i||t.charCodeAt(c)===47)&&(Z.length===0?Z+="..":Z+="/..");return Z.length>0?Z+n.slice(a+v):(a+=v,n.charCodeAt(a)===47&&++a,n.slice(a))},_makeLong:function(t){return t},dirname:function(t){if(Xi(t),t.length===0)return".";for(var n=t.charCodeAt(0),r=n===47,i=-1,s=!0,a=t.length-1;a>=1;--a)if(n=t.charCodeAt(a),n===47){if(!s){i=a;break}}else s=!1;return i===-1?r?"/":".":r&&i===1?"//":t.slice(0,i)},basename:function(t,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');Xi(t);var r=0,i=-1,s=!0,a;if(n!==void 0&&n.length>0&&n.length<=t.length){if(n.length===t.length&&n===t)return"";var o=n.length-1,u=-1;for(a=t.length-1;a>=0;--a){var l=t.charCodeAt(a);if(l===47){if(!s){r=a+1;break}}else u===-1&&(s=!1,u=a+1),o>=0&&(l===n.charCodeAt(o)?--o===-1&&(i=a):(o=-1,i=u))}return r===i?i=u:i===-1&&(i=t.length),t.slice(r,i)}else{for(a=t.length-1;a>=0;--a)if(t.charCodeAt(a)===47){if(!s){r=a+1;break}}else i===-1&&(s=!1,i=a+1);return i===-1?"":t.slice(r,i)}},extname:function(t){Xi(t);for(var n=-1,r=0,i=-1,s=!0,a=0,o=t.length-1;o>=0;--o){var u=t.charCodeAt(o);if(u===47){if(!s){r=o+1;break}continue}i===-1&&(s=!1,i=o+1),u===46?n===-1?n=o:a!==1&&(a=1):n!==-1&&(a=-1)}return n===-1||i===-1||a===0||a===1&&n===i-1&&n===r+1?"":t.slice(n,i)},format:function(t){if(t===null||typeof t!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return XD("/",t)},parse:function(t){Xi(t);var n={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return n;var r=t.charCodeAt(0),i=r===47,s;i?(n.root="/",s=1):s=0;for(var a=-1,o=0,u=-1,l=!0,v=t.length-1,c=0;v>=s;--v){if(r=t.charCodeAt(v),r===47){if(!l){o=v+1;break}continue}u===-1&&(l=!1,u=v+1),r===46?a===-1?a=v:c!==1&&(c=1):a!==-1&&(c=-1)}return a===-1||u===-1||c===0||c===1&&a===u-1&&a===o+1?u!==-1&&(o===0&&i?n.base=n.name=t.slice(1,u):n.base=n.name=t.slice(o,u)):(o===0&&i?(n.name=t.slice(1,a),n.base=t.slice(1,u)):(n.name=t.slice(o,a),n.base=t.slice(o,u)),n.ext=t.slice(a,u)),o>0?n.dir=t.slice(0,o-1):i&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};Oa.posix=Oa;var Ys=Oa,e0={exports:{}};(function(e,t){(function(n){e.exports=n()})(function(){var n=(Qt,ot)=>()=>(ot||Qt((ot={exports:{}}).exports,ot),ot.exports),r=n((Qt,ot)=>{var Ze=function(lt){return lt&&lt.Math==Math&&lt};ot.exports=Ze(typeof globalThis=="object"&&globalThis)||Ze(typeof window=="object"&&window)||Ze(typeof self=="object"&&self)||Ze(typeof Km=="object"&&Km)||function(){return this}()||Function("return this")()}),i=n((Qt,ot)=>{ot.exports=function(Ze){try{return!!Ze()}catch{return!0}}}),s=n((Qt,ot)=>{var Ze=i();ot.exports=!Ze(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})}),a=n((Qt,ot)=>{var Ze=i();ot.exports=!Ze(function(){var lt=(function(){}).bind();return typeof lt!="function"||lt.hasOwnProperty("prototype")})}),o=n((Qt,ot)=>{var Ze=a(),lt=Function.prototype.call;ot.exports=Ze?lt.bind(lt):function(){return lt.apply(lt,arguments)}}),u=n(Qt=>{var ot={}.propertyIsEnumerable,Ze=Object.getOwnPropertyDescriptor,lt=Ze&&!ot.call({1:2},1);Qt.f=lt?function(st){var wt=Ze(this,st);return!!wt&&wt.enumerable}:ot}),l=n((Qt,ot)=>{ot.exports=function(Ze,lt){return{enumerable:!(Ze&1),configurable:!(Ze&2),writable:!(Ze&4),value:lt}}}),v=n((Qt,ot)=>{var Ze=a(),lt=Function.prototype,st=lt.call,wt=Ze&&lt.bind.bind(st,st);ot.exports=Ze?wt:function(Pt){return function(){return st.apply(Pt,arguments)}}}),c=n((Qt,ot)=>{var Ze=v(),lt=Ze({}.toString),st=Ze("".slice);ot.exports=function(wt){return st(lt(wt),8,-1)}}),N=n((Qt,ot)=>{var Ze=v(),lt=i(),st=c(),wt=Object,Pt=Ze("".split);ot.exports=lt(function(){return!wt("z").propertyIsEnumerable(0)})?function(Yt){return st(Yt)=="String"?Pt(Yt,""):wt(Yt)}:wt}),_=n((Qt,ot)=>{ot.exports=function(Ze){return Ze==null}}),Z=n((Qt,ot)=>{var Ze=_(),lt=TypeError;ot.exports=function(st){if(Ze(st))throw lt("Can't call method on "+st);return st}}),te=n((Qt,ot)=>{var Ze=N(),lt=Z();ot.exports=function(st){return Ze(lt(st))}}),M=n((Qt,ot)=>{var Ze=typeof document=="object"&&document.all,lt=typeof Ze>"u"&&Ze!==void 0;ot.exports={all:Ze,IS_HTMLDDA:lt}}),he=n((Qt,ot)=>{var Ze=M(),lt=Ze.all;ot.exports=Ze.IS_HTMLDDA?function(st){return typeof st=="function"||st===lt}:function(st){return typeof st=="function"}}),Ae=n((Qt,ot)=>{var Ze=he(),lt=M(),st=lt.all;ot.exports=lt.IS_HTMLDDA?function(wt){return typeof wt=="object"?wt!==null:Ze(wt)||wt===st}:function(wt){return typeof wt=="object"?wt!==null:Ze(wt)}}),Fe=n((Qt,ot)=>{var Ze=r(),lt=he(),st=function(wt){return lt(wt)?wt:void 0};ot.exports=function(wt,Pt){return arguments.length<2?st(Ze[wt]):Ze[wt]&&Ze[wt][Pt]}}),ke=n((Qt,ot)=>{var Ze=v();ot.exports=Ze({}.isPrototypeOf)}),ae=n((Qt,ot)=>{var Ze=Fe();ot.exports=Ze("navigator","userAgent")||""}),Ee=n((Qt,ot)=>{var Ze=r(),lt=ae(),st=Ze.process,wt=Ze.Deno,Pt=st&&st.versions||wt&&wt.version,Yt=Pt&&Pt.v8,qt,Ht;Yt&&(qt=Yt.split("."),Ht=qt[0]>0&&qt[0]<4?1:+(qt[0]+qt[1])),!Ht&&lt&&(qt=lt.match(/Edge\/(\d+)/),(!qt||qt[1]>=74)&&(qt=lt.match(/Chrome\/(\d+)/),qt&&(Ht=+qt[1]))),ot.exports=Ht}),Qe=n((Qt,ot)=>{var Ze=Ee(),lt=i();ot.exports=!!Object.getOwnPropertySymbols&&!lt(function(){var st=Symbol();return!String(st)||!(Object(st)instanceof Symbol)||!Symbol.sham&&Ze&&Ze<41})}),Dt=n((Qt,ot)=>{var Ze=Qe();ot.exports=Ze&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}),Ve=n((Qt,ot)=>{var Ze=Fe(),lt=he(),st=ke(),wt=Dt(),Pt=Object;ot.exports=wt?function(Yt){return typeof Yt=="symbol"}:function(Yt){var qt=Ze("Symbol");return lt(qt)&&st(qt.prototype,Pt(Yt))}}),Xe=n((Qt,ot)=>{var Ze=String;ot.exports=function(lt){try{return Ze(lt)}catch{return"Object"}}}),ze=n((Qt,ot)=>{var Ze=he(),lt=Xe(),st=TypeError;ot.exports=function(wt){if(Ze(wt))return wt;throw st(lt(wt)+" is not a function")}}),me=n((Qt,ot)=>{var Ze=ze(),lt=_();ot.exports=function(st,wt){var Pt=st[wt];return lt(Pt)?void 0:Ze(Pt)}}),He=n((Qt,ot)=>{var Ze=o(),lt=he(),st=Ae(),wt=TypeError;ot.exports=function(Pt,Yt){var qt,Ht;if(Yt==="string"&&lt(qt=Pt.toString)&&!st(Ht=Ze(qt,Pt))||lt(qt=Pt.valueOf)&&!st(Ht=Ze(qt,Pt))||Yt!=="string"&&lt(qt=Pt.toString)&&!st(Ht=Ze(qt,Pt)))return Ht;throw wt("Can't convert object to primitive value")}}),xt=n((Qt,ot)=>{ot.exports=!1}),jt=n((Qt,ot)=>{var Ze=r(),lt=Object.defineProperty;ot.exports=function(st,wt){try{lt(Ze,st,{value:wt,configurable:!0,writable:!0})}catch{Ze[st]=wt}return wt}}),Vt=n((Qt,ot)=>{var Ze=r(),lt=jt(),st="__core-js_shared__",wt=Ze[st]||lt(st,{});ot.exports=wt}),en=n((Qt,ot)=>{var Ze=xt(),lt=Vt();(ot.exports=function(st,wt){return lt[st]||(lt[st]=wt!==void 0?wt:{})})("versions",[]).push({version:"3.26.1",mode:Ze?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE",source:"https://github.com/zloirock/core-js"})}),En=n((Qt,ot)=>{var Ze=Z(),lt=Object;ot.exports=function(st){return lt(Ze(st))}}),Un=n((Qt,ot)=>{var Ze=v(),lt=En(),st=Ze({}.hasOwnProperty);ot.exports=Object.hasOwn||function(wt,Pt){return st(lt(wt),Pt)}}),Wn=n((Qt,ot)=>{var Ze=v(),lt=0,st=Math.random(),wt=Ze(1 .toString);ot.exports=function(Pt){return"Symbol("+(Pt===void 0?"":Pt)+")_"+wt(++lt+st,36)}}),$r=n((Qt,ot)=>{var Ze=r(),lt=en(),st=Un(),wt=Wn(),Pt=Qe(),Yt=Dt(),qt=lt("wks"),Ht=Ze.Symbol,fn=Ht&&Ht.for,gn=Yt?Ht:Ht&&Ht.withoutSetter||wt;ot.exports=function(bn){if(!st(qt,bn)||!(Pt||typeof qt[bn]=="string")){var pn="Symbol."+bn;Pt&&st(Ht,bn)?qt[bn]=Ht[bn]:Yt&&fn?qt[bn]=fn(pn):qt[bn]=gn(pn)}return qt[bn]}}),ks=n((Qt,ot)=>{var Ze=o(),lt=Ae(),st=Ve(),wt=me(),Pt=He(),Yt=$r(),qt=TypeError,Ht=Yt("toPrimitive");ot.exports=function(fn,gn){if(!lt(fn)||st(fn))return fn;var bn=wt(fn,Ht),pn;if(bn){if(gn===void 0&&(gn="default"),pn=Ze(bn,fn,gn),!lt(pn)||st(pn))return pn;throw qt("Can't convert object to primitive value")}return gn===void 0&&(gn="number"),Pt(fn,gn)}}),vi=n((Qt,ot)=>{var Ze=ks(),lt=Ve();ot.exports=function(st){var wt=Ze(st,"string");return lt(wt)?wt:wt+""}}),Io=n((Qt,ot)=>{var Ze=r(),lt=Ae(),st=Ze.document,wt=lt(st)&&lt(st.createElement);ot.exports=function(Pt){return wt?st.createElement(Pt):{}}}),us=n((Qt,ot)=>{var Ze=s(),lt=i(),st=Io();ot.exports=!Ze&&!lt(function(){return Object.defineProperty(st("div"),"a",{get:function(){return 7}}).a!=7})}),Ga=n(Qt=>{var ot=s(),Ze=o(),lt=u(),st=l(),wt=te(),Pt=vi(),Yt=Un(),qt=us(),Ht=Object.getOwnPropertyDescriptor;Qt.f=ot?Ht:function(fn,gn){if(fn=wt(fn),gn=Pt(gn),qt)try{return Ht(fn,gn)}catch{}if(Yt(fn,gn))return st(!Ze(lt.f,fn,gn),fn[gn])}}),Ps=n((Qt,ot)=>{var Ze=s(),lt=i();ot.exports=Ze&&lt(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})}),qi=n((Qt,ot)=>{var Ze=Ae(),lt=String,st=TypeError;ot.exports=function(wt){if(Ze(wt))return wt;throw st(lt(wt)+" is not an object")}}),tr=n(Qt=>{var ot=s(),Ze=us(),lt=Ps(),st=qi(),wt=vi(),Pt=TypeError,Yt=Object.defineProperty,qt=Object.getOwnPropertyDescriptor,Ht="enumerable",fn="configurable",gn="writable";Qt.f=ot?lt?function(bn,pn,Te){if(st(bn),pn=wt(pn),st(Te),typeof bn=="function"&&pn==="prototype"&&"value"in Te&&gn in Te&&!Te[gn]){var Sn=qt(bn,pn);Sn&&Sn[gn]&&(bn[pn]=Te.value,Te={configurable:fn in Te?Te[fn]:Sn[fn],enumerable:Ht in Te?Te[Ht]:Sn[Ht],writable:!1})}return Yt(bn,pn,Te)}:Yt:function(bn,pn,Te){if(st(bn),pn=wt(pn),st(Te),Ze)try{return Yt(bn,pn,Te)}catch{}if("get"in Te||"set"in Te)throw Pt("Accessors not supported");return"value"in Te&&(bn[pn]=Te.value),bn}}),Xu=n((Qt,ot)=>{var Ze=s(),lt=tr(),st=l();ot.exports=Ze?function(wt,Pt,Yt){return lt.f(wt,Pt,st(1,Yt))}:function(wt,Pt,Yt){return wt[Pt]=Yt,wt}}),Ef=n((Qt,ot)=>{var Ze=s(),lt=Un(),st=Function.prototype,wt=Ze&&Object.getOwnPropertyDescriptor,Pt=lt(st,"name"),Yt=Pt&&(function(){}).name==="something",qt=Pt&&(!Ze||Ze&&wt(st,"name").configurable);ot.exports={EXISTS:Pt,PROPER:Yt,CONFIGURABLE:qt}}),Ja=n((Qt,ot)=>{var Ze=v(),lt=he(),st=Vt(),wt=Ze(Function.toString);lt(st.inspectSource)||(st.inspectSource=function(Pt){return wt(Pt)}),ot.exports=st.inspectSource}),Af=n((Qt,ot)=>{var Ze=r(),lt=he(),st=Ze.WeakMap;ot.exports=lt(st)&&/native code/.test(String(st))}),Tr=n((Qt,ot)=>{var Ze=en(),lt=Wn(),st=Ze("keys");ot.exports=function(wt){return st[wt]||(st[wt]=lt(wt))}}),Ku=n((Qt,ot)=>{ot.exports={}}),Cf=n((Qt,ot)=>{var Ze=Af(),lt=r(),st=Ae(),wt=Xu(),Pt=Un(),Yt=Vt(),qt=Tr(),Ht=Ku(),fn="Object already initialized",gn=lt.TypeError,bn=lt.WeakMap,pn,Te,Sn,Bn=function(Re){return Sn(Re)?Te(Re):pn(Re,{})},Zn=function(Re){return function(Zr){var hs;if(!st(Zr)||(hs=Te(Zr)).type!==Re)throw gn("Incompatible receiver, "+Re+" required");return hs}};Ze||Yt.state?(Hn=Yt.state||(Yt.state=new bn),Hn.get=Hn.get,Hn.has=Hn.has,Hn.set=Hn.set,pn=function(Re,Zr){if(Hn.has(Re))throw gn(fn);return Zr.facade=Re,Hn.set(Re,Zr),Zr},Te=function(Re){return Hn.get(Re)||{}},Sn=function(Re){return Hn.has(Re)}):(Cr=qt("state"),Ht[Cr]=!0,pn=function(Re,Zr){if(Pt(Re,Cr))throw gn(fn);return Zr.facade=Re,wt(Re,Cr,Zr),Zr},Te=function(Re){return Pt(Re,Cr)?Re[Cr]:{}},Sn=function(Re){return Pt(Re,Cr)});var Hn,Cr;ot.exports={set:pn,get:Te,has:Sn,enforce:Bn,getterFor:Zn}}),ls=n((Qt,ot)=>{var Ze=i(),lt=he(),st=Un(),wt=s(),Pt=Ef().CONFIGURABLE,Yt=Ja(),qt=Cf(),Ht=qt.enforce,fn=qt.get,gn=Object.defineProperty,bn=wt&&!Ze(function(){return gn(function(){},"length",{value:8}).length!==8}),pn=String(String).split("String"),Te=ot.exports=function(Sn,Bn,Zn){String(Bn).slice(0,7)==="Symbol("&&(Bn="["+String(Bn).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),Zn&&Zn.getter&&(Bn="get "+Bn),Zn&&Zn.setter&&(Bn="set "+Bn),(!st(Sn,"name")||Pt&&Sn.name!==Bn)&&(wt?gn(Sn,"name",{value:Bn,configurable:!0}):Sn.name=Bn),bn&&Zn&&st(Zn,"arity")&&Sn.length!==Zn.arity&&gn(Sn,"length",{value:Zn.arity});try{Zn&&st(Zn,"constructor")&&Zn.constructor?wt&&gn(Sn,"prototype",{writable:!1}):Sn.prototype&&(Sn.prototype=void 0)}catch{}var Hn=Ht(Sn);return st(Hn,"source")||(Hn.source=pn.join(typeof Bn=="string"?Bn:"")),Sn};Function.prototype.toString=Te(function(){return lt(this)&&fn(this).source||Yt(this)},"toString")}),Ya=n((Qt,ot)=>{var Ze=he(),lt=tr(),st=ls(),wt=jt();ot.exports=function(Pt,Yt,qt,Ht){Ht||(Ht={});var fn=Ht.enumerable,gn=Ht.name!==void 0?Ht.name:Yt;if(Ze(qt)&&st(qt,gn,Ht),Ht.global)fn?Pt[Yt]=qt:wt(Yt,qt);else{try{Ht.unsafe?Pt[Yt]&&(fn=!0):delete Pt[Yt]}catch{}fn?Pt[Yt]=qt:lt.f(Pt,Yt,{value:qt,enumerable:!1,configurable:!Ht.nonConfigurable,writable:!Ht.nonWritable})}return Pt}}),cs=n((Qt,ot)=>{var Ze=Math.ceil,lt=Math.floor;ot.exports=Math.trunc||function(st){var wt=+st;return(wt>0?lt:Ze)(wt)}}),Oo=n((Qt,ot)=>{var Ze=cs();ot.exports=function(lt){var st=+lt;return st!==st||st===0?0:Ze(st)}}),xf=n((Qt,ot)=>{var Ze=Oo(),lt=Math.max,st=Math.min;ot.exports=function(wt,Pt){var Yt=Ze(wt);return Yt<0?lt(Yt+Pt,0):st(Yt,Pt)}}),Sf=n((Qt,ot)=>{var Ze=Oo(),lt=Math.min;ot.exports=function(st){return st>0?lt(Ze(st),9007199254740991):0}}),ea=n((Qt,ot)=>{var Ze=Sf();ot.exports=function(lt){return Ze(lt.length)}}),Zu=n((Qt,ot)=>{var Ze=te(),lt=xf(),st=ea(),wt=function(Pt){return function(Yt,qt,Ht){var fn=Ze(Yt),gn=st(fn),bn=lt(Ht,gn),pn;if(Pt&&qt!=qt){for(;gn>bn;)if(pn=fn[bn++],pn!=pn)return!0}else for(;gn>bn;bn++)if((Pt||bn in fn)&&fn[bn]===qt)return Pt||bn||0;return!Pt&&-1}};ot.exports={includes:wt(!0),indexOf:wt(!1)}}),wf=n((Qt,ot)=>{var Ze=v(),lt=Un(),st=te(),wt=Zu().indexOf,Pt=Ku(),Yt=Ze([].push);ot.exports=function(qt,Ht){var fn=st(qt),gn=0,bn=[],pn;for(pn in fn)!lt(Pt,pn)&&lt(fn,pn)&&Yt(bn,pn);for(;Ht.length>gn;)lt(fn,pn=Ht[gn++])&&(~wt(bn,pn)||Yt(bn,pn));return bn}}),jo=n((Qt,ot)=>{ot.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]}),Ff=n(Qt=>{var ot=wf(),Ze=jo(),lt=Ze.concat("length","prototype");Qt.f=Object.getOwnPropertyNames||function(st){return ot(st,lt)}}),Nf=n(Qt=>{Qt.f=Object.getOwnPropertySymbols}),el=n((Qt,ot)=>{var Ze=Fe(),lt=v(),st=Ff(),wt=Nf(),Pt=qi(),Yt=lt([].concat);ot.exports=Ze("Reflect","ownKeys")||function(qt){var Ht=st.f(Pt(qt)),fn=wt.f;return fn?Yt(Ht,fn(qt)):Ht}}),tl=n((Qt,ot)=>{var Ze=Un(),lt=el(),st=Ga(),wt=tr();ot.exports=function(Pt,Yt,qt){for(var Ht=lt(Yt),fn=wt.f,gn=st.f,bn=0;bn<Ht.length;bn++){var pn=Ht[bn];!Ze(Pt,pn)&&!(qt&&Ze(qt,pn))&&fn(Pt,pn,gn(Yt,pn))}}}),Tf=n((Qt,ot)=>{var Ze=i(),lt=he(),st=/#|\.prototype\./,wt=function(fn,gn){var bn=Yt[Pt(fn)];return bn==Ht?!0:bn==qt?!1:lt(gn)?Ze(gn):!!gn},Pt=wt.normalize=function(fn){return String(fn).replace(st,".").toLowerCase()},Yt=wt.data={},qt=wt.NATIVE="N",Ht=wt.POLYFILL="P";ot.exports=wt}),Ha=n((Qt,ot)=>{var Ze=r(),lt=Ga().f,st=Xu(),wt=Ya(),Pt=jt(),Yt=tl(),qt=Tf();ot.exports=function(Ht,fn){var gn=Ht.target,bn=Ht.global,pn=Ht.stat,Te,Sn,Bn,Zn,Hn,Cr;if(bn?Sn=Ze:pn?Sn=Ze[gn]||Pt(gn,{}):Sn=(Ze[gn]||{}).prototype,Sn)for(Bn in fn){if(Hn=fn[Bn],Ht.dontCallGetSet?(Cr=lt(Sn,Bn),Zn=Cr&&Cr.value):Zn=Sn[Bn],Te=qt(bn?Bn:gn+(pn?".":"#")+Bn,Ht.forced),!Te&&Zn!==void 0){if(typeof Hn==typeof Zn)continue;Yt(Hn,Zn)}(Ht.sham||Zn&&Zn.sham)&&st(Hn,"sham",!0),wt(Sn,Bn,Hn,Ht)}}}),nl=n((Qt,ot)=>{var Ze=c();ot.exports=Array.isArray||function(lt){return Ze(lt)=="Array"}}),_f=n((Qt,ot)=>{var Ze=TypeError,lt=9007199254740991;ot.exports=function(st){if(st>lt)throw Ze("Maximum allowed index exceeded");return st}}),Lf=n((Qt,ot)=>{var Ze=c(),lt=v();ot.exports=function(st){if(Ze(st)==="Function")return lt(st)}}),za=n((Qt,ot)=>{var Ze=Lf(),lt=ze(),st=a(),wt=Ze(Ze.bind);ot.exports=function(Pt,Yt){return lt(Pt),Yt===void 0?Pt:st?wt(Pt,Yt):function(){return Pt.apply(Yt,arguments)}}}),rl=n((Qt,ot)=>{var Ze=nl(),lt=ea(),st=_f(),wt=za(),Pt=function(Yt,qt,Ht,fn,gn,bn,pn,Te){for(var Sn=gn,Bn=0,Zn=pn?wt(pn,Te):!1,Hn,Cr;Bn<fn;)Bn in Ht&&(Hn=Zn?Zn(Ht[Bn],Bn,qt):Ht[Bn],bn>0&&Ze(Hn)?(Cr=lt(Hn),Sn=Pt(Yt,qt,Hn,Cr,Sn,bn-1)-1):(st(Sn+1),Yt[Sn]=Hn),Sn++),Bn++;return Sn};ot.exports=Pt}),kf=n((Qt,ot)=>{var Ze=$r(),lt=Ze("toStringTag"),st={};st[lt]="z",ot.exports=String(st)==="[object z]"}),fs=n((Qt,ot)=>{var Ze=kf(),lt=he(),st=c(),wt=$r(),Pt=wt("toStringTag"),Yt=Object,qt=st(function(){return arguments}())=="Arguments",Ht=function(fn,gn){try{return fn[gn]}catch{}};ot.exports=Ze?st:function(fn){var gn,bn,pn;return fn===void 0?"Undefined":fn===null?"Null":typeof(bn=Ht(gn=Yt(fn),Pt))=="string"?bn:qt?st(gn):(pn=st(gn))=="Object"&&lt(gn.callee)?"Arguments":pn}}),ps=n((Qt,ot)=>{var Ze=v(),lt=i(),st=he(),wt=fs(),Pt=Fe(),Yt=Ja(),qt=function(){},Ht=[],fn=Pt("Reflect","construct"),gn=/^\s*(?:class|function)\b/,bn=Ze(gn.exec),pn=!gn.exec(qt),Te=function(Bn){if(!st(Bn))return!1;try{return fn(qt,Ht,Bn),!0}catch{return!1}},Sn=function(Bn){if(!st(Bn))return!1;switch(wt(Bn)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return pn||!!bn(gn,Yt(Bn))}catch{return!0}};Sn.sham=!0,ot.exports=!fn||lt(function(){var Bn;return Te(Te.call)||!Te(Object)||!Te(function(){Bn=!0})||Bn})?Sn:Te}),Pf=n((Qt,ot)=>{var Ze=nl(),lt=ps(),st=Ae(),wt=$r(),Pt=wt("species"),Yt=Array;ot.exports=function(qt){var Ht;return Ze(qt)&&(Ht=qt.constructor,lt(Ht)&&(Ht===Yt||Ze(Ht.prototype))?Ht=void 0:st(Ht)&&(Ht=Ht[Pt],Ht===null&&(Ht=void 0))),Ht===void 0?Yt:Ht}}),ds=n((Qt,ot)=>{var Ze=Pf();ot.exports=function(lt,st){return new(Ze(lt))(st===0?0:st)}}),il=n(()=>{var Qt=Ha(),ot=rl(),Ze=ze(),lt=En(),st=ea(),wt=ds();Qt({target:"Array",proto:!0},{flatMap:function(Pt){var Yt=lt(this),qt=st(Yt),Ht;return Ze(Pt),Ht=wt(Yt,0),Ht.length=ot(Ht,Yt,Yt,qt,0,1,Pt,arguments.length>1?arguments[1]:void 0),Ht}})}),sl=n((Qt,ot)=>{ot.exports={}}),Bf=n((Qt,ot)=>{var Ze=$r(),lt=sl(),st=Ze("iterator"),wt=Array.prototype;ot.exports=function(Pt){return Pt!==void 0&&(lt.Array===Pt||wt[st]===Pt)}}),al=n((Qt,ot)=>{var Ze=fs(),lt=me(),st=_(),wt=sl(),Pt=$r(),Yt=Pt("iterator");ot.exports=function(qt){if(!st(qt))return lt(qt,Yt)||lt(qt,"@@iterator")||wt[Ze(qt)]}}),Mf=n((Qt,ot)=>{var Ze=o(),lt=ze(),st=qi(),wt=Xe(),Pt=al(),Yt=TypeError;ot.exports=function(qt,Ht){var fn=arguments.length<2?Pt(qt):Ht;if(lt(fn))return st(Ze(fn,qt));throw Yt(wt(qt)+" is not iterable")}}),ol=n((Qt,ot)=>{var Ze=o(),lt=qi(),st=me();ot.exports=function(wt,Pt,Yt){var qt,Ht;lt(wt);try{if(qt=st(wt,"return"),!qt){if(Pt==="throw")throw Yt;return Yt}qt=Ze(qt,wt)}catch(fn){Ht=!0,qt=fn}if(Pt==="throw")throw Yt;if(Ht)throw qt;return lt(qt),Yt}}),If=n((Qt,ot)=>{var Ze=za(),lt=o(),st=qi(),wt=Xe(),Pt=Bf(),Yt=ea(),qt=ke(),Ht=Mf(),fn=al(),gn=ol(),bn=TypeError,pn=function(Sn,Bn){this.stopped=Sn,this.result=Bn},Te=pn.prototype;ot.exports=function(Sn,Bn,Zn){var Hn=Zn&&Zn.that,Cr=!!(Zn&&Zn.AS_ENTRIES),Re=!!(Zn&&Zn.IS_RECORD),Zr=!!(Zn&&Zn.IS_ITERATOR),hs=!!(Zn&&Zn.INTERRUPTED),Bs=Ze(Bn,Hn),pi,Ki,Vr,Xa,Gr,Ka,Zi,ta=function(ti){return pi&&gn(pi,"normal",ti),new pn(!0,ti)},na=function(ti){return Cr?(st(ti),hs?Bs(ti[0],ti[1],ta):Bs(ti[0],ti[1])):hs?Bs(ti,ta):Bs(ti)};if(Re)pi=Sn.iterator;else if(Zr)pi=Sn;else{if(Ki=fn(Sn),!Ki)throw bn(wt(Sn)+" is not iterable");if(Pt(Ki)){for(Vr=0,Xa=Yt(Sn);Xa>Vr;Vr++)if(Gr=na(Sn[Vr]),Gr&&qt(Te,Gr))return Gr;return new pn(!1)}pi=Ht(Sn,Ki)}for(Ka=Re?Sn.next:pi.next;!(Zi=lt(Ka,pi)).done;){try{Gr=na(Zi.value)}catch(ti){gn(pi,"throw",ti)}if(typeof Gr=="object"&&Gr&&qt(Te,Gr))return Gr}return new pn(!1)}}),ul=n((Qt,ot)=>{var Ze=vi(),lt=tr(),st=l();ot.exports=function(wt,Pt,Yt){var qt=Ze(Pt);qt in wt?lt.f(wt,qt,st(0,Yt)):wt[qt]=Yt}}),Qa=n(()=>{var Qt=Ha(),ot=If(),Ze=ul();Qt({target:"Object",stat:!0},{fromEntries:function(lt){var st={};return ot(lt,function(wt,Pt){Ze(st,wt,Pt)},{AS_ENTRIES:!0}),st}})}),ll=n((Qt,ot)=>{var Ze=ls(),lt=tr();ot.exports=function(st,wt,Pt){return Pt.get&&Ze(Pt.get,wt,{getter:!0}),Pt.set&&Ze(Pt.set,wt,{setter:!0}),lt.f(st,wt,Pt)}}),cl=n((Qt,ot)=>{var Ze=qi();ot.exports=function(){var lt=Ze(this),st="";return lt.hasIndices&&(st+="d"),lt.global&&(st+="g"),lt.ignoreCase&&(st+="i"),lt.multiline&&(st+="m"),lt.dotAll&&(st+="s"),lt.unicode&&(st+="u"),lt.unicodeSets&&(st+="v"),lt.sticky&&(st+="y"),st}}),fl=n(()=>{var Qt=r(),ot=s(),Ze=ll(),lt=cl(),st=i(),wt=Qt.RegExp,Pt=wt.prototype,Yt=ot&&st(function(){var qt=!0;try{wt(".","d")}catch{qt=!1}var Ht={},fn="",gn=qt?"dgimsy":"gimsy",bn=function(Bn,Zn){Object.defineProperty(Ht,Bn,{get:function(){return fn+=Zn,!0}})},pn={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};qt&&(pn.hasIndices="d");for(var Te in pn)bn(Te,pn[Te]);var Sn=Object.getOwnPropertyDescriptor(Pt,"flags").get.call(Ht);return Sn!==gn||fn!==gn});Yt&&Ze(Pt,"flags",{configurable:!0,get:lt})}),Of=n(()=>{var Qt=Ha(),ot=r();Qt({global:!0,forced:ot.globalThis!==ot},{globalThis:ot})}),jf=n(()=>{Of()}),Ro=n(()=>{var Qt=Ha(),ot=rl(),Ze=En(),lt=ea(),st=Oo(),wt=ds();Qt({target:"Array",proto:!0},{flat:function(){var Pt=arguments.length?arguments[0]:void 0,Yt=Ze(this),qt=lt(Yt),Ht=wt(Yt,0);return Ht.length=ot(Ht,Yt,Yt,qt,0,Pt===void 0?1:st(Pt)),Ht}})}),Rf=n((Qt,ot)=>{var Ze=["cliName","cliCategory","cliDescription"],lt=["_"],st=["languageId"];function wt(m,A){if(m==null)return{};var p=Pt(m,A),b,D;if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(m);for(D=0;D<f.length;D++)b=f[D],!(A.indexOf(b)>=0)&&Object.prototype.propertyIsEnumerable.call(m,b)&&(p[b]=m[b])}return p}function Pt(m,A){if(m==null)return{};var p={},b=Object.keys(m),D,f;for(f=0;f<b.length;f++)D=b[f],!(A.indexOf(D)>=0)&&(p[D]=m[D]);return p}il(),Qa(),fl(),jf(),Ro();var Yt=Object.create,qt=Object.defineProperty,Ht=Object.getOwnPropertyDescriptor,fn=Object.getOwnPropertyNames,gn=Object.getPrototypeOf,bn=Object.prototype.hasOwnProperty,pn=(m,A)=>function(){return m&&(A=(0,m[fn(m)[0]])(m=0)),A},Te=(m,A)=>function(){return A||(0,m[fn(m)[0]])((A={exports:{}}).exports,A),A.exports},Sn=(m,A)=>{for(var p in A)qt(m,p,{get:A[p],enumerable:!0})},Bn=(m,A,p,b)=>{if(A&&typeof A=="object"||typeof A=="function")for(let D of fn(A))!bn.call(m,D)&&D!==p&&qt(m,D,{get:()=>A[D],enumerable:!(b=Ht(A,D))||b.enumerable});return m},Zn=(m,A,p)=>(p=m!=null?Yt(gn(m)):{},Bn(A||!m||!m.__esModule?qt(p,"default",{value:m,enumerable:!0}):p,m)),Hn=m=>Bn(qt({},"__esModule",{value:!0}),m),Cr,Re=pn({"<define:process>"(){Cr={env:{},argv:[]}}}),Zr=Te({"package.json"(m,A){A.exports={version:"2.8.8"}}}),hs=Te({"node_modules/diff/lib/diff/base.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0}),m.default=A;function A(){}A.prototype={diff:function(D,f){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},h=d.callback;typeof d=="function"&&(h=d,d={}),this.options=d;var E=this;function x($){return h?(setTimeout(function(){h(void 0,$)},0),!0):$}D=this.castInput(D),f=this.castInput(f),D=this.removeEmpty(this.tokenize(D)),f=this.removeEmpty(this.tokenize(f));var B=f.length,L=D.length,P=1,C=B+L,S=[{newPos:-1,components:[]}],j=this.extractCommon(S[0],f,D,0);if(S[0].newPos+1>=B&&j+1>=L)return x([{value:this.join(f),count:f.length}]);function Q(){for(var $=-1*P;$<=P;$+=2){var X=void 0,G=S[$-1],re=S[$+1],ee=(re?re.newPos:0)-$;G&&(S[$-1]=void 0);var be=G&&G.newPos+1<B,F=re&&0<=ee&&ee<L;if(!be&&!F){S[$]=void 0;continue}if(!be||F&&G.newPos<re.newPos?(X=b(re),E.pushComponent(X.components,void 0,!0)):(X=G,X.newPos++,E.pushComponent(X.components,!0,void 0)),ee=E.extractCommon(X,f,D,$),X.newPos+1>=B&&ee+1>=L)return x(p(E,X.components,f,D,E.useLongestToken));S[$]=X}P++}if(h)(function $(){setTimeout(function(){if(P>C)return h();Q()||$()},0)})();else for(;P<=C;){var ne=Q();if(ne)return ne}},pushComponent:function(D,f,d){var h=D[D.length-1];h&&h.added===f&&h.removed===d?D[D.length-1]={count:h.count+1,added:f,removed:d}:D.push({count:1,added:f,removed:d})},extractCommon:function(D,f,d,h){for(var E=f.length,x=d.length,B=D.newPos,L=B-h,P=0;B+1<E&&L+1<x&&this.equals(f[B+1],d[L+1]);)B++,L++,P++;return P&&D.components.push({count:P}),D.newPos=B,L},equals:function(D,f){return this.options.comparator?this.options.comparator(D,f):D===f||this.options.ignoreCase&&D.toLowerCase()===f.toLowerCase()},removeEmpty:function(D){for(var f=[],d=0;d<D.length;d++)D[d]&&f.push(D[d]);return f},castInput:function(D){return D},tokenize:function(D){return D.split("")},join:function(D){return D.join("")}};function p(D,f,d,h,E){for(var x=0,B=f.length,L=0,P=0;x<B;x++){var C=f[x];if(C.removed){if(C.value=D.join(h.slice(P,P+C.count)),P+=C.count,x&&f[x-1].added){var S=f[x-1];f[x-1]=f[x],f[x]=S}}else{if(!C.added&&E){var j=d.slice(L,L+C.count);j=j.map(function(ne,$){var X=h[P+$];return X.length>ne.length?X:ne}),C.value=D.join(j)}else C.value=D.join(d.slice(L,L+C.count));L+=C.count,C.added||(P+=C.count)}}var Q=f[B-1];return B>1&&typeof Q.value=="string"&&(Q.added||Q.removed)&&D.equals("",Q.value)&&(f[B-2].value+=Q.value,f.pop()),f}function b(D){return{newPos:D.newPos,components:D.components.slice(0)}}}}),Bs=Te({"node_modules/diff/lib/diff/array.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0}),m.diffArrays=D,m.arrayDiff=void 0;var A=p(hs());function p(f){return f&&f.__esModule?f:{default:f}}var b=new A.default;m.arrayDiff=b,b.tokenize=function(f){return f.slice()},b.join=b.removeEmpty=function(f){return f};function D(f,d,h){return b.diff(f,d,h)}}}),pi=Te({"src/document/doc-builders.js"(m,A){Re();function p(R){return{type:"concat",parts:R}}function b(R){return{type:"indent",contents:R}}function D(R,y){return{type:"align",contents:y,n:R}}function f(R){let y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return{type:"group",id:y.id,contents:R,break:!!y.shouldBreak,expandedStates:y.expandedStates}}function d(R){return D(Number.NEGATIVE_INFINITY,R)}function h(R){return D({type:"root"},R)}function E(R){return D(-1,R)}function x(R,y){return f(R[0],Object.assign(Object.assign({},y),{},{expandedStates:R}))}function B(R){return{type:"fill",parts:R}}function L(R,y){let k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return{type:"if-break",breakContents:R,flatContents:y,groupId:k.groupId}}function P(R,y){return{type:"indent-if-break",contents:R,groupId:y.groupId,negate:y.negate}}function C(R){return{type:"line-suffix",contents:R}}var S={type:"line-suffix-boundary"},j={type:"break-parent"},Q={type:"trim"},ne={type:"line",hard:!0},$={type:"line",hard:!0,literal:!0},X={type:"line"},G={type:"line",soft:!0},re=p([ne,j]),ee=p([$,j]),be={type:"cursor",placeholder:Symbol("cursor")};function F(R,y){let k=[];for(let I=0;I<y.length;I++)I!==0&&k.push(R),k.push(y[I]);return p(k)}function J(R,y,k){let I=R;if(y>0){for(let q=0;q<Math.floor(y/k);++q)I=b(I);I=D(y%k,I),I=D(Number.NEGATIVE_INFINITY,I)}return I}function w(R,y){return{type:"label",label:R,contents:y}}A.exports={concat:p,join:F,line:X,softline:G,hardline:re,literalline:ee,group:f,conditionalGroup:x,fill:B,lineSuffix:C,lineSuffixBoundary:S,cursor:be,breakParent:j,ifBreak:L,trim:Q,indent:b,indentIfBreak:P,align:D,addAlignmentToDoc:J,markAsRoot:h,dedentToRoot:d,dedent:E,hardlineWithoutBreakParent:ne,literallineWithoutBreakParent:$,label:w}}}),Ki=Te({"src/common/end-of-line.js"(m,A){Re();function p(d){let h=d.indexOf("\r");return h>=0?d.charAt(h+1)===`
145
- `?"crlf":"cr":"lf"}function b(d){switch(d){case"cr":return"\r";case"crlf":return`\r
146
- `;default:return`
147
- `}}function D(d,h){let E;switch(h){case`
148
- `:E=/\n/g;break;case"\r":E=/\r/g;break;case`\r
149
- `:E=/\r\n/g;break;default:throw new Error(`Unexpected "eol" ${JSON.stringify(h)}.`)}let x=d.match(E);return x?x.length:0}function f(d){return d.replace(/\r\n?/g,`
150
- `)}A.exports={guessEndOfLine:p,convertEndOfLineToChars:b,countEndOfLineChars:D,normalizeEndOfLine:f}}}),Vr=Te({"src/utils/get-last.js"(m,A){Re();var p=b=>b[b.length-1];A.exports=p}});function Xa(){let{onlyFirst:m=!1}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},A=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(A,m?void 0:"g")}var Gr=pn({"node_modules/strip-ansi/node_modules/ansi-regex/index.js"(){Re()}});function Ka(m){if(typeof m!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof m}\``);return m.replace(Xa(),"")}var Zi=pn({"node_modules/strip-ansi/index.js"(){Re(),Gr()}});function ta(m){return Number.isInteger(m)?m>=4352&&(m<=4447||m===9001||m===9002||11904<=m&&m<=12871&&m!==12351||12880<=m&&m<=19903||19968<=m&&m<=42182||43360<=m&&m<=43388||44032<=m&&m<=55203||63744<=m&&m<=64255||65040<=m&&m<=65049||65072<=m&&m<=65131||65281<=m&&m<=65376||65504<=m&&m<=65510||110592<=m&&m<=110593||127488<=m&&m<=127569||131072<=m&&m<=262141):!1}var na=pn({"node_modules/is-fullwidth-code-point/index.js"(){Re()}}),ti=Te({"node_modules/emoji-regex/index.js"(m,A){Re(),A.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}}}),pl={};Sn(pl,{default:()=>dl});function dl(m){if(typeof m!="string"||m.length===0||(m=Ka(m),m.length===0))return 0;m=m.replace((0,hl.default)()," ");let A=0;for(let p=0;p<m.length;p++){let b=m.codePointAt(p);b<=31||b>=127&&b<=159||b>=768&&b<=879||(b>65535&&p++,A+=ta(b)?2:1)}return A}var hl,$f=pn({"node_modules/string-width/index.js"(){Re(),Zi(),na(),hl=Zn(ti())}}),ml=Te({"src/utils/get-string-width.js"(m,A){Re();var p=($f(),Hn(pl)).default,b=/[^\x20-\x7F]/;function D(f){return f?b.test(f)?p(f):f.length:0}A.exports=D}}),ra=Te({"src/document/doc-utils.js"(m,A){Re();var p=Vr(),{literalline:b,join:D}=pi(),f=y=>Array.isArray(y)||y&&y.type==="concat",d=y=>{if(Array.isArray(y))return y;if(y.type!=="concat"&&y.type!=="fill")throw new Error("Expect doc type to be `concat` or `fill`.");return y.parts},h={};function E(y,k,I,q){let U=[y];for(;U.length>0;){let z=U.pop();if(z===h){I(U.pop());continue}if(I&&U.push(z,h),!k||k(z)!==!1)if(f(z)||z.type==="fill"){let ie=d(z);for(let ce=ie.length,ye=ce-1;ye>=0;--ye)U.push(ie[ye])}else if(z.type==="if-break")z.flatContents&&U.push(z.flatContents),z.breakContents&&U.push(z.breakContents);else if(z.type==="group"&&z.expandedStates)if(q)for(let ie=z.expandedStates.length,ce=ie-1;ce>=0;--ce)U.push(z.expandedStates[ce]);else U.push(z.contents);else z.contents&&U.push(z.contents)}}function x(y,k){let I=new Map;return q(y);function q(z){if(I.has(z))return I.get(z);let ie=U(z);return I.set(z,ie),ie}function U(z){if(Array.isArray(z))return k(z.map(q));if(z.type==="concat"||z.type==="fill"){let ie=z.parts.map(q);return k(Object.assign(Object.assign({},z),{},{parts:ie}))}if(z.type==="if-break"){let ie=z.breakContents&&q(z.breakContents),ce=z.flatContents&&q(z.flatContents);return k(Object.assign(Object.assign({},z),{},{breakContents:ie,flatContents:ce}))}if(z.type==="group"&&z.expandedStates){let ie=z.expandedStates.map(q),ce=ie[0];return k(Object.assign(Object.assign({},z),{},{contents:ce,expandedStates:ie}))}if(z.contents){let ie=q(z.contents);return k(Object.assign(Object.assign({},z),{},{contents:ie}))}return k(z)}}function B(y,k,I){let q=I,U=!1;function z(ie){let ce=k(ie);if(ce!==void 0&&(U=!0,q=ce),U)return!1}return E(y,z),q}function L(y){if(y.type==="group"&&y.break||y.type==="line"&&y.hard||y.type==="break-parent")return!0}function P(y){return B(y,L,!1)}function C(y){if(y.length>0){let k=p(y);!k.expandedStates&&!k.break&&(k.break="propagated")}return null}function S(y){let k=new Set,I=[];function q(z){if(z.type==="break-parent"&&C(I),z.type==="group"){if(I.push(z),k.has(z))return!1;k.add(z)}}function U(z){z.type==="group"&&I.pop().break&&C(I)}E(y,q,U,!0)}function j(y){return y.type==="line"&&!y.hard?y.soft?"":" ":y.type==="if-break"?y.flatContents||"":y}function Q(y){return x(y,j)}var ne=(y,k)=>y&&y.type==="line"&&y.hard&&k&&k.type==="break-parent";function $(y){if(!y)return y;if(f(y)||y.type==="fill"){let k=d(y);for(;k.length>1&&ne(...k.slice(-2));)k.length-=2;if(k.length>0){let I=$(p(k));k[k.length-1]=I}return Array.isArray(y)?k:Object.assign(Object.assign({},y),{},{parts:k})}switch(y.type){case"align":case"indent":case"indent-if-break":case"group":case"line-suffix":case"label":{let k=$(y.contents);return Object.assign(Object.assign({},y),{},{contents:k})}case"if-break":{let k=$(y.breakContents),I=$(y.flatContents);return Object.assign(Object.assign({},y),{},{breakContents:k,flatContents:I})}}return y}function X(y){return $(re(y))}function G(y){switch(y.type){case"fill":if(y.parts.every(I=>I===""))return"";break;case"group":if(!y.contents&&!y.id&&!y.break&&!y.expandedStates)return"";if(y.contents.type==="group"&&y.contents.id===y.id&&y.contents.break===y.break&&y.contents.expandedStates===y.expandedStates)return y.contents;break;case"align":case"indent":case"indent-if-break":case"line-suffix":if(!y.contents)return"";break;case"if-break":if(!y.flatContents&&!y.breakContents)return"";break}if(!f(y))return y;let k=[];for(let I of d(y)){if(!I)continue;let[q,...U]=f(I)?d(I):[I];typeof q=="string"&&typeof p(k)=="string"?k[k.length-1]+=q:k.push(q),k.push(...U)}return k.length===0?"":k.length===1?k[0]:Array.isArray(y)?k:Object.assign(Object.assign({},y),{},{parts:k})}function re(y){return x(y,k=>G(k))}function ee(y){let k=[],I=y.filter(Boolean);for(;I.length>0;){let q=I.shift();if(q){if(f(q)){I.unshift(...d(q));continue}if(k.length>0&&typeof p(k)=="string"&&typeof q=="string"){k[k.length-1]+=q;continue}k.push(q)}}return k}function be(y){return x(y,k=>Array.isArray(k)?ee(k):k.parts?Object.assign(Object.assign({},k),{},{parts:ee(k.parts)}):k)}function F(y){return x(y,k=>typeof k=="string"&&k.includes(`
151
- `)?J(k):k)}function J(y){let k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:b;return D(k,y.split(`
152
- `)).parts}function w(y){if(y.type==="line")return!0}function R(y){return B(y,w,!1)}A.exports={isConcat:f,getDocParts:d,willBreak:P,traverseDoc:E,findInDoc:B,mapDoc:x,propagateBreaks:S,removeLines:Q,stripTrailingHardline:X,normalizeParts:ee,normalizeDoc:be,cleanDoc:re,replaceTextEndOfLine:J,replaceEndOfLine:F,canBreak:R}}}),Vf=Te({"src/document/doc-printer.js"(m,A){Re();var{convertEndOfLineToChars:p}=Ki(),b=Vr(),D=ml(),{fill:f,cursor:d,indent:h}=pi(),{isConcat:E,getDocParts:x}=ra(),B,L=1,P=2;function C(){return{value:"",length:0,queue:[]}}function S(G,re){return Q(G,{type:"indent"},re)}function j(G,re,ee){return re===Number.NEGATIVE_INFINITY?G.root||C():re<0?Q(G,{type:"dedent"},ee):re?re.type==="root"?Object.assign(Object.assign({},G),{},{root:G}):Q(G,{type:typeof re=="string"?"stringAlign":"numberAlign",n:re},ee):G}function Q(G,re,ee){let be=re.type==="dedent"?G.queue.slice(0,-1):[...G.queue,re],F="",J=0,w=0,R=0;for(let ie of be)switch(ie.type){case"indent":I(),ee.useTabs?y(1):k(ee.tabWidth);break;case"stringAlign":I(),F+=ie.n,J+=ie.n.length;break;case"numberAlign":w+=1,R+=ie.n;break;default:throw new Error(`Unexpected type '${ie.type}'`)}return U(),Object.assign(Object.assign({},G),{},{value:F,length:J,queue:be});function y(ie){F+=" ".repeat(ie),J+=ee.tabWidth*ie}function k(ie){F+=" ".repeat(ie),J+=ie}function I(){ee.useTabs?q():U()}function q(){w>0&&y(w),z()}function U(){R>0&&k(R),z()}function z(){w=0,R=0}}function ne(G){if(G.length===0)return 0;let re=0;for(;G.length>0&&typeof b(G)=="string"&&/^[\t ]*$/.test(b(G));)re+=G.pop().length;if(G.length>0&&typeof b(G)=="string"){let ee=b(G).replace(/[\t ]*$/,"");re+=b(G).length-ee.length,G[G.length-1]=ee}return re}function $(G,re,ee,be,F){let J=re.length,w=[G],R=[];for(;ee>=0;){if(w.length===0){if(J===0)return!0;w.push(re[--J]);continue}let{mode:y,doc:k}=w.pop();if(typeof k=="string")R.push(k),ee-=D(k);else if(E(k)||k.type==="fill"){let I=x(k);for(let q=I.length-1;q>=0;q--)w.push({mode:y,doc:I[q]})}else switch(k.type){case"indent":case"align":case"indent-if-break":case"label":w.push({mode:y,doc:k.contents});break;case"trim":ee+=ne(R);break;case"group":{if(F&&k.break)return!1;let I=k.break?L:y,q=k.expandedStates&&I===L?b(k.expandedStates):k.contents;w.push({mode:I,doc:q});break}case"if-break":{let I=(k.groupId?B[k.groupId]||P:y)===L?k.breakContents:k.flatContents;I&&w.push({mode:y,doc:I});break}case"line":if(y===L||k.hard)return!0;k.soft||(R.push(" "),ee--);break;case"line-suffix":be=!0;break;case"line-suffix-boundary":if(be)return!1;break}}return!1}function X(G,re){B={};let ee=re.printWidth,be=p(re.endOfLine),F=0,J=[{ind:C(),mode:L,doc:G}],w=[],R=!1,y=[];for(;J.length>0;){let{ind:I,mode:q,doc:U}=J.pop();if(typeof U=="string"){let z=be!==`
153
- `?U.replace(/\n/g,be):U;w.push(z),F+=D(z)}else if(E(U)){let z=x(U);for(let ie=z.length-1;ie>=0;ie--)J.push({ind:I,mode:q,doc:z[ie]})}else switch(U.type){case"cursor":w.push(d.placeholder);break;case"indent":J.push({ind:S(I,re),mode:q,doc:U.contents});break;case"align":J.push({ind:j(I,U.n,re),mode:q,doc:U.contents});break;case"trim":F-=ne(w);break;case"group":switch(q){case P:if(!R){J.push({ind:I,mode:U.break?L:P,doc:U.contents});break}case L:{R=!1;let z={ind:I,mode:P,doc:U.contents},ie=ee-F,ce=y.length>0;if(!U.break&&$(z,J,ie,ce))J.push(z);else if(U.expandedStates){let ye=b(U.expandedStates);if(U.break){J.push({ind:I,mode:L,doc:ye});break}else for(let fe=1;fe<U.expandedStates.length+1;fe++)if(fe>=U.expandedStates.length){J.push({ind:I,mode:L,doc:ye});break}else{let _e=U.expandedStates[fe],se={ind:I,mode:P,doc:_e};if($(se,J,ie,ce)){J.push(se);break}}}else J.push({ind:I,mode:L,doc:U.contents});break}}U.id&&(B[U.id]=b(J).mode);break;case"fill":{let z=ee-F,{parts:ie}=U;if(ie.length===0)break;let[ce,ye]=ie,fe={ind:I,mode:P,doc:ce},_e={ind:I,mode:L,doc:ce},se=$(fe,[],z,y.length>0,!0);if(ie.length===1){se?J.push(fe):J.push(_e);break}let Ue={ind:I,mode:P,doc:ye},ge={ind:I,mode:L,doc:ye};if(ie.length===2){se?J.push(Ue,fe):J.push(ge,_e);break}ie.splice(0,2);let ue={ind:I,mode:q,doc:f(ie)},qe=ie[0];$({ind:I,mode:P,doc:[ce,ye,qe]},[],z,y.length>0,!0)?J.push(ue,Ue,fe):se?J.push(ue,ge,fe):J.push(ue,ge,_e);break}case"if-break":case"indent-if-break":{let z=U.groupId?B[U.groupId]:q;if(z===L){let ie=U.type==="if-break"?U.breakContents:U.negate?U.contents:h(U.contents);ie&&J.push({ind:I,mode:q,doc:ie})}if(z===P){let ie=U.type==="if-break"?U.flatContents:U.negate?h(U.contents):U.contents;ie&&J.push({ind:I,mode:q,doc:ie})}break}case"line-suffix":y.push({ind:I,mode:q,doc:U.contents});break;case"line-suffix-boundary":y.length>0&&J.push({ind:I,mode:q,doc:{type:"line",hard:!0}});break;case"line":switch(q){case P:if(U.hard)R=!0;else{U.soft||(w.push(" "),F+=1);break}case L:if(y.length>0){J.push({ind:I,mode:q,doc:U},...y.reverse()),y.length=0;break}U.literal?I.root?(w.push(be,I.root.value),F=I.root.length):(w.push(be),F=0):(F-=ne(w),w.push(be+I.value),F=I.length);break}break;case"label":J.push({ind:I,mode:q,doc:U.contents});break}J.length===0&&y.length>0&&(J.push(...y.reverse()),y.length=0)}let k=w.indexOf(d.placeholder);if(k!==-1){let I=w.indexOf(d.placeholder,k+1),q=w.slice(0,k).join(""),U=w.slice(k+1,I).join(""),z=w.slice(I+1).join("");return{formatted:q+U+z,cursorNodeStart:q.length,cursorNodeText:U}}return{formatted:w.join("")}}A.exports={printDocToString:X}}}),qf=Te({"src/document/doc-debug.js"(m,A){Re();var{isConcat:p,getDocParts:b}=ra();function D(d){if(!d)return"";if(p(d)){let h=[];for(let E of b(d))if(p(E))h.push(...D(E).parts);else{let x=D(E);x!==""&&h.push(x)}return{type:"concat",parts:h}}return d.type==="if-break"?Object.assign(Object.assign({},d),{},{breakContents:D(d.breakContents),flatContents:D(d.flatContents)}):d.type==="group"?Object.assign(Object.assign({},d),{},{contents:D(d.contents),expandedStates:d.expandedStates&&d.expandedStates.map(D)}):d.type==="fill"?{type:"fill",parts:d.parts.map(D)}:d.contents?Object.assign(Object.assign({},d),{},{contents:D(d.contents)}):d}function f(d){let h=Object.create(null),E=new Set;return x(D(d));function x(L,P,C){if(typeof L=="string")return JSON.stringify(L);if(p(L)){let S=b(L).map(x).filter(Boolean);return S.length===1?S[0]:`[${S.join(", ")}]`}if(L.type==="line"){let S=Array.isArray(C)&&C[P+1]&&C[P+1].type==="break-parent";return L.literal?S?"literalline":"literallineWithoutBreakParent":L.hard?S?"hardline":"hardlineWithoutBreakParent":L.soft?"softline":"line"}if(L.type==="break-parent")return Array.isArray(C)&&C[P-1]&&C[P-1].type==="line"&&C[P-1].hard?void 0:"breakParent";if(L.type==="trim")return"trim";if(L.type==="indent")return"indent("+x(L.contents)+")";if(L.type==="align")return L.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+x(L.contents)+")":L.n<0?"dedent("+x(L.contents)+")":L.n.type==="root"?"markAsRoot("+x(L.contents)+")":"align("+JSON.stringify(L.n)+", "+x(L.contents)+")";if(L.type==="if-break")return"ifBreak("+x(L.breakContents)+(L.flatContents?", "+x(L.flatContents):"")+(L.groupId?(L.flatContents?"":', ""')+`, { groupId: ${B(L.groupId)} }`:"")+")";if(L.type==="indent-if-break"){let S=[];L.negate&&S.push("negate: true"),L.groupId&&S.push(`groupId: ${B(L.groupId)}`);let j=S.length>0?`, { ${S.join(", ")} }`:"";return`indentIfBreak(${x(L.contents)}${j})`}if(L.type==="group"){let S=[];L.break&&L.break!=="propagated"&&S.push("shouldBreak: true"),L.id&&S.push(`id: ${B(L.id)}`);let j=S.length>0?`, { ${S.join(", ")} }`:"";return L.expandedStates?`conditionalGroup([${L.expandedStates.map(Q=>x(Q)).join(",")}]${j})`:`group(${x(L.contents)}${j})`}if(L.type==="fill")return`fill([${L.parts.map(S=>x(S)).join(", ")}])`;if(L.type==="line-suffix")return"lineSuffix("+x(L.contents)+")";if(L.type==="line-suffix-boundary")return"lineSuffixBoundary";if(L.type==="label")return`label(${JSON.stringify(L.label)}, ${x(L.contents)})`;throw new Error("Unknown doc type "+L.type)}function B(L){if(typeof L!="symbol")return JSON.stringify(String(L));if(L in h)return h[L];let P=String(L).slice(7,-1)||"symbol";for(let C=0;;C++){let S=P+(C>0?` #${C}`:"");if(!E.has(S))return E.add(S),h[L]=`Symbol.for(${JSON.stringify(S)})`}}}A.exports={printDocToDebug:f}}}),wn=Te({"src/document/index.js"(m,A){Re(),A.exports={builders:pi(),printer:Vf(),utils:ra(),debug:qf()}}}),gl={};Sn(gl,{default:()=>Uf});function Uf(m){if(typeof m!="string")throw new TypeError("Expected a string");return m.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Wf=pn({"node_modules/escape-string-regexp/index.js"(){Re()}}),yl=Te({"node_modules/semver/internal/debug.js"(m,A){Re();var p=typeof Cr=="object"&&Cr.env&&Cr.env.NODE_DEBUG&&/\bsemver\b/i.test(Cr.env.NODE_DEBUG)?function(){for(var b=arguments.length,D=new Array(b),f=0;f<b;f++)D[f]=arguments[f];return console.error("SEMVER",...D)}:()=>{};A.exports=p}}),Y=Te({"node_modules/semver/internal/constants.js"(m,A){Re();var p="2.0.0",b=256,D=Number.MAX_SAFE_INTEGER||9007199254740991,f=16;A.exports={SEMVER_SPEC_VERSION:p,MAX_LENGTH:b,MAX_SAFE_INTEGER:D,MAX_SAFE_COMPONENT_LENGTH:f}}}),g=Te({"node_modules/semver/internal/re.js"(m,A){Re();var{MAX_SAFE_COMPONENT_LENGTH:p}=Y(),b=yl();m=A.exports={};var D=m.re=[],f=m.src=[],d=m.t={},h=0,E=(x,B,L)=>{let P=h++;b(x,P,B),d[x]=P,f[P]=B,D[P]=new RegExp(B,L?"g":void 0)};E("NUMERICIDENTIFIER","0|[1-9]\\d*"),E("NUMERICIDENTIFIERLOOSE","[0-9]+"),E("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),E("MAINVERSION",`(${f[d.NUMERICIDENTIFIER]})\\.(${f[d.NUMERICIDENTIFIER]})\\.(${f[d.NUMERICIDENTIFIER]})`),E("MAINVERSIONLOOSE",`(${f[d.NUMERICIDENTIFIERLOOSE]})\\.(${f[d.NUMERICIDENTIFIERLOOSE]})\\.(${f[d.NUMERICIDENTIFIERLOOSE]})`),E("PRERELEASEIDENTIFIER",`(?:${f[d.NUMERICIDENTIFIER]}|${f[d.NONNUMERICIDENTIFIER]})`),E("PRERELEASEIDENTIFIERLOOSE",`(?:${f[d.NUMERICIDENTIFIERLOOSE]}|${f[d.NONNUMERICIDENTIFIER]})`),E("PRERELEASE",`(?:-(${f[d.PRERELEASEIDENTIFIER]}(?:\\.${f[d.PRERELEASEIDENTIFIER]})*))`),E("PRERELEASELOOSE",`(?:-?(${f[d.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${f[d.PRERELEASEIDENTIFIERLOOSE]})*))`),E("BUILDIDENTIFIER","[0-9A-Za-z-]+"),E("BUILD",`(?:\\+(${f[d.BUILDIDENTIFIER]}(?:\\.${f[d.BUILDIDENTIFIER]})*))`),E("FULLPLAIN",`v?${f[d.MAINVERSION]}${f[d.PRERELEASE]}?${f[d.BUILD]}?`),E("FULL",`^${f[d.FULLPLAIN]}$`),E("LOOSEPLAIN",`[v=\\s]*${f[d.MAINVERSIONLOOSE]}${f[d.PRERELEASELOOSE]}?${f[d.BUILD]}?`),E("LOOSE",`^${f[d.LOOSEPLAIN]}$`),E("GTLT","((?:<|>)?=?)"),E("XRANGEIDENTIFIERLOOSE",`${f[d.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),E("XRANGEIDENTIFIER",`${f[d.NUMERICIDENTIFIER]}|x|X|\\*`),E("XRANGEPLAIN",`[v=\\s]*(${f[d.XRANGEIDENTIFIER]})(?:\\.(${f[d.XRANGEIDENTIFIER]})(?:\\.(${f[d.XRANGEIDENTIFIER]})(?:${f[d.PRERELEASE]})?${f[d.BUILD]}?)?)?`),E("XRANGEPLAINLOOSE",`[v=\\s]*(${f[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${f[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${f[d.XRANGEIDENTIFIERLOOSE]})(?:${f[d.PRERELEASELOOSE]})?${f[d.BUILD]}?)?)?`),E("XRANGE",`^${f[d.GTLT]}\\s*${f[d.XRANGEPLAIN]}$`),E("XRANGELOOSE",`^${f[d.GTLT]}\\s*${f[d.XRANGEPLAINLOOSE]}$`),E("COERCE",`(^|[^\\d])(\\d{1,${p}})(?:\\.(\\d{1,${p}}))?(?:\\.(\\d{1,${p}}))?(?:$|[^\\d])`),E("COERCERTL",f[d.COERCE],!0),E("LONETILDE","(?:~>?)"),E("TILDETRIM",`(\\s*)${f[d.LONETILDE]}\\s+`,!0),m.tildeTrimReplace="$1~",E("TILDE",`^${f[d.LONETILDE]}${f[d.XRANGEPLAIN]}$`),E("TILDELOOSE",`^${f[d.LONETILDE]}${f[d.XRANGEPLAINLOOSE]}$`),E("LONECARET","(?:\\^)"),E("CARETTRIM",`(\\s*)${f[d.LONECARET]}\\s+`,!0),m.caretTrimReplace="$1^",E("CARET",`^${f[d.LONECARET]}${f[d.XRANGEPLAIN]}$`),E("CARETLOOSE",`^${f[d.LONECARET]}${f[d.XRANGEPLAINLOOSE]}$`),E("COMPARATORLOOSE",`^${f[d.GTLT]}\\s*(${f[d.LOOSEPLAIN]})$|^$`),E("COMPARATOR",`^${f[d.GTLT]}\\s*(${f[d.FULLPLAIN]})$|^$`),E("COMPARATORTRIM",`(\\s*)${f[d.GTLT]}\\s*(${f[d.LOOSEPLAIN]}|${f[d.XRANGEPLAIN]})`,!0),m.comparatorTrimReplace="$1$2$3",E("HYPHENRANGE",`^\\s*(${f[d.XRANGEPLAIN]})\\s+-\\s+(${f[d.XRANGEPLAIN]})\\s*$`),E("HYPHENRANGELOOSE",`^\\s*(${f[d.XRANGEPLAINLOOSE]})\\s+-\\s+(${f[d.XRANGEPLAINLOOSE]})\\s*$`),E("STAR","(<|>)?=?\\s*\\*"),E("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),E("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}}),W=Te({"node_modules/semver/internal/parse-options.js"(m,A){Re();var p=["includePrerelease","loose","rtl"],b=D=>D?typeof D!="object"?{loose:!0}:p.filter(f=>D[f]).reduce((f,d)=>(f[d]=!0,f),{}):{};A.exports=b}}),Se=Te({"node_modules/semver/internal/identifiers.js"(m,A){Re();var p=/^[0-9]+$/,b=(f,d)=>{let h=p.test(f),E=p.test(d);return h&&E&&(f=+f,d=+d),f===d?0:h&&!E?-1:E&&!h?1:f<d?-1:1},D=(f,d)=>b(d,f);A.exports={compareIdentifiers:b,rcompareIdentifiers:D}}}),Pe=Te({"node_modules/semver/classes/semver.js"(m,A){Re();var p=yl(),{MAX_LENGTH:b,MAX_SAFE_INTEGER:D}=Y(),{re:f,t:d}=g(),h=W(),{compareIdentifiers:E}=Se(),x=class{constructor(B,L){if(L=h(L),B instanceof x){if(B.loose===!!L.loose&&B.includePrerelease===!!L.includePrerelease)return B;B=B.version}else if(typeof B!="string")throw new TypeError(`Invalid Version: ${B}`);if(B.length>b)throw new TypeError(`version is longer than ${b} characters`);p("SemVer",B,L),this.options=L,this.loose=!!L.loose,this.includePrerelease=!!L.includePrerelease;let P=B.trim().match(L.loose?f[d.LOOSE]:f[d.FULL]);if(!P)throw new TypeError(`Invalid Version: ${B}`);if(this.raw=B,this.major=+P[1],this.minor=+P[2],this.patch=+P[3],this.major>D||this.major<0)throw new TypeError("Invalid major version");if(this.minor>D||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>D||this.patch<0)throw new TypeError("Invalid patch version");P[4]?this.prerelease=P[4].split(".").map(C=>{if(/^[0-9]+$/.test(C)){let S=+C;if(S>=0&&S<D)return S}return C}):this.prerelease=[],this.build=P[5]?P[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(B){if(p("SemVer.compare",this.version,this.options,B),!(B instanceof x)){if(typeof B=="string"&&B===this.version)return 0;B=new x(B,this.options)}return B.version===this.version?0:this.compareMain(B)||this.comparePre(B)}compareMain(B){return B instanceof x||(B=new x(B,this.options)),E(this.major,B.major)||E(this.minor,B.minor)||E(this.patch,B.patch)}comparePre(B){if(B instanceof x||(B=new x(B,this.options)),this.prerelease.length&&!B.prerelease.length)return-1;if(!this.prerelease.length&&B.prerelease.length)return 1;if(!this.prerelease.length&&!B.prerelease.length)return 0;let L=0;do{let P=this.prerelease[L],C=B.prerelease[L];if(p("prerelease compare",L,P,C),P===void 0&&C===void 0)return 0;if(C===void 0)return 1;if(P===void 0)return-1;if(P!==C)return E(P,C)}while(++L)}compareBuild(B){B instanceof x||(B=new x(B,this.options));let L=0;do{let P=this.build[L],C=B.build[L];if(p("prerelease compare",L,P,C),P===void 0&&C===void 0)return 0;if(C===void 0)return 1;if(P===void 0)return-1;if(P!==C)return E(P,C)}while(++L)}inc(B,L){switch(B){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",L);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",L);break;case"prepatch":this.prerelease.length=0,this.inc("patch",L),this.inc("pre",L);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",L),this.inc("pre",L);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{let P=this.prerelease.length;for(;--P>=0;)typeof this.prerelease[P]=="number"&&(this.prerelease[P]++,P=-2);P===-1&&this.prerelease.push(0)}L&&(E(this.prerelease[0],L)===0?isNaN(this.prerelease[1])&&(this.prerelease=[L,0]):this.prerelease=[L,0]);break;default:throw new Error(`invalid increment argument: ${B}`)}return this.format(),this.raw=this.version,this}};A.exports=x}}),Be=Te({"node_modules/semver/functions/compare.js"(m,A){Re();var p=Pe(),b=(D,f,d)=>new p(D,d).compare(new p(f,d));A.exports=b}}),et=Te({"node_modules/semver/functions/lt.js"(m,A){Re();var p=Be(),b=(D,f,d)=>p(D,f,d)<0;A.exports=b}}),gt=Te({"node_modules/semver/functions/gte.js"(m,A){Re();var p=Be(),b=(D,f,d)=>p(D,f,d)>=0;A.exports=b}}),Rt=Te({"src/utils/arrayify.js"(m,A){Re(),A.exports=(p,b)=>Object.entries(p).map(D=>{let[f,d]=D;return Object.assign({[b]:f},d)})}}),at=Te({"node_modules/outdent/lib/index.js"(m,A){Re(),Object.defineProperty(m,"__esModule",{value:!0}),m.outdent=void 0;function p(){for(var $=[],X=0;X<arguments.length;X++)$[X]=arguments[X]}function b(){return typeof WeakMap<"u"?new WeakMap:D()}function D(){return{add:p,delete:p,get:p,set:p,has:function($){return!1}}}var f=Object.prototype.hasOwnProperty,d=function($,X){return f.call($,X)};function h($,X){for(var G in X)d(X,G)&&($[G]=X[G]);return $}var E=/^[ \t]*(?:\r\n|\r|\n)/,x=/(?:\r\n|\r|\n)[ \t]*$/,B=/^(?:[\r\n]|$)/,L=/(?:\r\n|\r|\n)([ \t]*)(?:[^ \t\r\n]|$)/,P=/^[ \t]*[\r\n][ \t\r\n]*$/;function C($,X,G){var re=0,ee=$[0].match(L);ee&&(re=ee[1].length);var be="(\\r\\n|\\r|\\n).{0,"+re+"}",F=new RegExp(be,"g");X&&($=$.slice(1));var J=G.newline,w=G.trimLeadingNewline,R=G.trimTrailingNewline,y=typeof J=="string",k=$.length,I=$.map(function(q,U){return q=q.replace(F,"$1"),U===0&&w&&(q=q.replace(E,"")),U===k-1&&R&&(q=q.replace(x,"")),y&&(q=q.replace(/\r\n|\n|\r/g,function(z){return J})),q});return I}function S($,X){for(var G="",re=0,ee=$.length;re<ee;re++)G+=$[re],re<ee-1&&(G+=X[re]);return G}function j($){return d($,"raw")&&d($,"length")}function Q($){var X=b(),G=b();function re(be){for(var F=[],J=1;J<arguments.length;J++)F[J-1]=arguments[J];if(j(be)){var w=be,R=(F[0]===re||F[0]===ne)&&P.test(w[0])&&B.test(w[1]),y=R?G:X,k=y.get(w);if(k||(k=C(w,R,$),y.set(w,k)),F.length===0)return k[0];var I=S(k,R?F.slice(1):F);return I}else return Q(h(h({},$),be||{}))}var ee=h(re,{string:function(be){return C([be],!1,$)[0]}});return ee}var ne=Q({trimLeadingNewline:!0,trimTrailingNewline:!0});if(m.outdent=ne,m.default=ne,typeof A<"u")try{A.exports=ne,Object.defineProperty(ne,"__esModule",{value:!0}),ne.default=ne,ne.outdent=ne}catch{}}}),bt=Te({"src/main/core-options.js"(m,A){Re();var{outdent:p}=at(),b="Config",D="Editor",f="Format",d="Other",h="Output",E="Global",x="Special",B={cursorOffset:{since:"1.4.0",category:x,type:"int",default:-1,range:{start:-1,end:Number.POSITIVE_INFINITY,step:1},description:p`
154
- Print (to stderr) where a cursor at the given position would move to after formatting.
155
- This option cannot be used with --range-start and --range-end.
156
- `,cliCategory:D},endOfLine:{since:"1.15.0",category:E,type:"choice",default:[{since:"1.15.0",value:"auto"},{since:"2.0.0",value:"lf"}],description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:p`
157
- Maintain existing
158
- (mixed values within one file are normalised by looking at what's used after the first line)
159
- `}]},filepath:{since:"1.4.0",category:x,type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:d,cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{since:"1.8.0",category:x,type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:d},parser:{since:"0.0.10",category:E,type:"choice",default:[{since:"0.0.10",value:"babylon"},{since:"1.13.0",value:void 0}],description:"Which parser to use.",exception:L=>typeof L=="string"||typeof L=="function",choices:[{value:"flow",description:"Flow"},{value:"babel",since:"1.16.0",description:"JavaScript"},{value:"babel-flow",since:"1.16.0",description:"Flow"},{value:"babel-ts",since:"2.0.0",description:"TypeScript"},{value:"typescript",since:"1.4.0",description:"TypeScript"},{value:"acorn",since:"2.6.0",description:"JavaScript"},{value:"espree",since:"2.2.0",description:"JavaScript"},{value:"meriyah",since:"2.2.0",description:"JavaScript"},{value:"css",since:"1.7.1",description:"CSS"},{value:"less",since:"1.7.1",description:"Less"},{value:"scss",since:"1.7.1",description:"SCSS"},{value:"json",since:"1.5.0",description:"JSON"},{value:"json5",since:"1.13.0",description:"JSON5"},{value:"json-stringify",since:"1.13.0",description:"JSON.stringify"},{value:"graphql",since:"1.5.0",description:"GraphQL"},{value:"markdown",since:"1.8.0",description:"Markdown"},{value:"mdx",since:"1.15.0",description:"MDX"},{value:"vue",since:"1.10.0",description:"Vue"},{value:"yaml",since:"1.14.0",description:"YAML"},{value:"glimmer",since:"2.3.0",description:"Ember / Handlebars"},{value:"html",since:"1.15.0",description:"HTML"},{value:"angular",since:"1.15.0",description:"Angular"},{value:"lwc",since:"1.17.0",description:"Lightning Web Components"}]},plugins:{since:"1.10.0",type:"path",array:!0,default:[{value:[]}],category:E,description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:L=>typeof L=="string"||typeof L=="object",cliName:"plugin",cliCategory:b},pluginSearchDirs:{since:"1.13.0",type:"path",array:!0,default:[{value:[]}],category:E,description:p`
160
- Custom directory that contains prettier plugins in node_modules subdirectory.
161
- Overrides default behavior when plugins are searched relatively to the location of Prettier.
162
- Multiple values are accepted.
163
- `,exception:L=>typeof L=="string"||typeof L=="object",cliName:"plugin-search-dir",cliCategory:b},printWidth:{since:"0.0.0",category:E,type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},rangeEnd:{since:"1.4.0",category:x,type:"int",default:Number.POSITIVE_INFINITY,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:p`
164
- Format code ending at a given character offset (exclusive).
165
- The range will extend forwards to the end of the selected statement.
166
- This option cannot be used with --cursor-offset.
167
- `,cliCategory:D},rangeStart:{since:"1.4.0",category:x,type:"int",default:0,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:p`
168
- Format code starting at a given character offset.
169
- The range will extend backwards to the start of the first line containing the selected statement.
170
- This option cannot be used with --cursor-offset.
171
- `,cliCategory:D},requirePragma:{since:"1.7.0",category:x,type:"boolean",default:!1,description:p`
172
- Require either '@prettier' or '@format' to be present in the file's first docblock comment
173
- in order for it to be formatted.
174
- `,cliCategory:d},tabWidth:{type:"int",category:E,default:2,description:"Number of spaces per indentation level.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},useTabs:{since:"1.0.0",category:E,type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{since:"2.1.0",category:E,type:"choice",default:[{since:"2.1.0",value:"auto"}],description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};A.exports={CATEGORY_CONFIG:b,CATEGORY_EDITOR:D,CATEGORY_FORMAT:f,CATEGORY_OTHER:d,CATEGORY_OUTPUT:h,CATEGORY_GLOBAL:E,CATEGORY_SPECIAL:x,options:B}}}),Tt=Te({"src/main/support.js"(m,A){Re();var p={compare:Be(),lt:et(),gte:gt()},b=Rt(),D=Zr().version,f=bt().options;function d(){let{plugins:E=[],showUnreleased:x=!1,showDeprecated:B=!1,showInternal:L=!1}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},P=D.split("-",1)[0],C=E.flatMap($=>$.languages||[]).filter(j),S=b(Object.assign({},...E.map($=>{let{options:X}=$;return X}),f),"name").filter($=>j($)&&Q($)).sort(($,X)=>$.name===X.name?0:$.name<X.name?-1:1).map(ne).map($=>{$=Object.assign({},$),Array.isArray($.default)&&($.default=$.default.length===1?$.default[0].value:$.default.filter(j).sort((G,re)=>p.compare(re.since,G.since))[0].value),Array.isArray($.choices)&&($.choices=$.choices.filter(G=>j(G)&&Q(G)),$.name==="parser"&&h($,C,E));let X=Object.fromEntries(E.filter(G=>G.defaultOptions&&G.defaultOptions[$.name]!==void 0).map(G=>[G.name,G.defaultOptions[$.name]]));return Object.assign(Object.assign({},$),{},{pluginDefaults:X})});return{languages:C,options:S};function j($){return x||!("since"in $)||$.since&&p.gte(P,$.since)}function Q($){return B||!("deprecated"in $)||$.deprecated&&p.lt(P,$.deprecated)}function ne($){return L?$:wt($,Ze)}}function h(E,x,B){let L=new Set(E.choices.map(P=>P.value));for(let P of x)if(P.parsers){for(let C of P.parsers)if(!L.has(C)){L.add(C);let S=B.find(Q=>Q.parsers&&Q.parsers[C]),j=P.name;S&&S.name&&(j+=` (plugin: ${S.name})`),E.choices.push({value:C,description:j})}}}A.exports={getSupportInfo:d}}}),It=Te({"src/utils/is-non-empty-array.js"(m,A){Re();function p(b){return Array.isArray(b)&&b.length>0}A.exports=p}}),Lt=Te({"src/utils/text/skip.js"(m,A){Re();function p(h){return(E,x,B)=>{let L=B&&B.backwards;if(x===!1)return!1;let{length:P}=E,C=x;for(;C>=0&&C<P;){let S=E.charAt(C);if(h instanceof RegExp){if(!h.test(S))return C}else if(!h.includes(S))return C;L?C--:C++}return C===-1||C===P?C:!1}}var b=p(/\s/),D=p(" "),f=p(",; "),d=p(/[^\n\r]/);A.exports={skipWhitespace:b,skipSpaces:D,skipToLineEnd:f,skipEverythingButNewLine:d}}}),Gt=Te({"src/utils/text/skip-inline-comment.js"(m,A){Re();function p(b,D){if(D===!1)return!1;if(b.charAt(D)==="/"&&b.charAt(D+1)==="*"){for(let f=D+2;f<b.length;++f)if(b.charAt(f)==="*"&&b.charAt(f+1)==="/")return f+2}return D}A.exports=p}}),Wt=Te({"src/utils/text/skip-trailing-comment.js"(m,A){Re();var{skipEverythingButNewLine:p}=Lt();function b(D,f){return f===!1?!1:D.charAt(f)==="/"&&D.charAt(f+1)==="/"?p(D,f):f}A.exports=b}}),Xt=Te({"src/utils/text/skip-newline.js"(m,A){Re();function p(b,D,f){let d=f&&f.backwards;if(D===!1)return!1;let h=b.charAt(D);if(d){if(b.charAt(D-1)==="\r"&&h===`
175
- `)return D-2;if(h===`
176
- `||h==="\r"||h==="\u2028"||h==="\u2029")return D-1}else{if(h==="\r"&&b.charAt(D+1)===`
177
- `)return D+2;if(h===`
178
- `||h==="\r"||h==="\u2028"||h==="\u2029")return D+1}return D}A.exports=p}}),Dn=Te({"src/utils/text/get-next-non-space-non-comment-character-index-with-start-index.js"(m,A){Re();var p=Gt(),b=Xt(),D=Wt(),{skipSpaces:f}=Lt();function d(h,E){let x=null,B=E;for(;B!==x;)x=B,B=f(h,B),B=p(h,B),B=D(h,B),B=b(h,B);return B}A.exports=d}}),De=Te({"src/common/util.js"(m,A){Re();var{default:p}=(Wf(),Hn(gl)),b=Vr(),{getSupportInfo:D}=Tt(),f=It(),d=ml(),{skipWhitespace:h,skipSpaces:E,skipToLineEnd:x,skipEverythingButNewLine:B}=Lt(),L=Gt(),P=Wt(),C=Xt(),S=Dn(),j=ge=>ge[ge.length-2];function Q(ge){return(ue,qe,rt)=>{let Ge=rt&&rt.backwards;if(qe===!1)return!1;let{length:mt}=ue,ve=qe;for(;ve>=0&&ve<mt;){let Ie=ue.charAt(ve);if(ge instanceof RegExp){if(!ge.test(Ie))return ve}else if(!ge.includes(Ie))return ve;Ge?ve--:ve++}return ve===-1||ve===mt?ve:!1}}function ne(ge,ue){let qe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},rt=E(ge,qe.backwards?ue-1:ue,qe),Ge=C(ge,rt,qe);return rt!==Ge}function $(ge,ue,qe){for(let rt=ue;rt<qe;++rt)if(ge.charAt(rt)===`
179
- `)return!0;return!1}function X(ge,ue,qe){let rt=qe(ue)-1;rt=E(ge,rt,{backwards:!0}),rt=C(ge,rt,{backwards:!0}),rt=E(ge,rt,{backwards:!0});let Ge=C(ge,rt,{backwards:!0});return rt!==Ge}function G(ge,ue){let qe=null,rt=ue;for(;rt!==qe;)qe=rt,rt=x(ge,rt),rt=L(ge,rt),rt=E(ge,rt);return rt=P(ge,rt),rt=C(ge,rt),rt!==!1&&ne(ge,rt)}function re(ge,ue,qe){return G(ge,qe(ue))}function ee(ge,ue,qe){return S(ge,qe(ue))}function be(ge,ue,qe){return ge.charAt(ee(ge,ue,qe))}function F(ge,ue){let qe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return E(ge,qe.backwards?ue-1:ue,qe)!==ue}function J(ge,ue){let qe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,rt=0;for(let Ge=qe;Ge<ge.length;++Ge)ge[Ge]===" "?rt=rt+ue-rt%ue:rt++;return rt}function w(ge,ue){let qe=ge.lastIndexOf(`
180
- `);return qe===-1?0:J(ge.slice(qe+1).match(/^[\t ]*/)[0],ue)}function R(ge,ue){let qe={quote:'"',regex:/"/g,escaped:"&quot;"},rt={quote:"'",regex:/'/g,escaped:"&apos;"},Ge=ue==="'"?rt:qe,mt=Ge===rt?qe:rt,ve=Ge;if(ge.includes(Ge.quote)||ge.includes(mt.quote)){let Ie=(ge.match(Ge.regex)||[]).length,pt=(ge.match(mt.regex)||[]).length;ve=Ie>pt?mt:Ge}return ve}function y(ge,ue){let qe=ge.slice(1,-1),rt=ue.parser==="json"||ue.parser==="json5"&&ue.quoteProps==="preserve"&&!ue.singleQuote?'"':ue.__isInHtmlAttribute?"'":R(qe,ue.singleQuote?"'":'"').quote;return k(qe,rt,!(ue.parser==="css"||ue.parser==="less"||ue.parser==="scss"||ue.__embeddedInHtml))}function k(ge,ue,qe){let rt=ue==='"'?"'":'"',Ge=/\\(.)|(["'])/gs,mt=ge.replace(Ge,(ve,Ie,pt)=>Ie===rt?Ie:pt===ue?"\\"+pt:pt||(qe&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(Ie)?Ie:"\\"+Ie));return ue+mt+ue}function I(ge){return ge.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(\d)/,"$1$2$3").replace(/^([+-]?[\d.]+)e[+-]?0+$/,"$1").replace(/^([+-])?\./,"$10.").replace(/(\.\d+?)0+(?=e|$)/,"$1").replace(/\.(?=e|$)/,"")}function q(ge,ue){let qe=ge.match(new RegExp(`(${p(ue)})+`,"g"));return qe===null?0:qe.reduce((rt,Ge)=>Math.max(rt,Ge.length/ue.length),0)}function U(ge,ue){let qe=ge.match(new RegExp(`(${p(ue)})+`,"g"));if(qe===null)return 0;let rt=new Map,Ge=0;for(let mt of qe){let ve=mt.length/ue.length;rt.set(ve,!0),ve>Ge&&(Ge=ve)}for(let mt=1;mt<Ge;mt++)if(!rt.get(mt))return mt;return Ge+1}function z(ge,ue){(ge.comments||(ge.comments=[])).push(ue),ue.printed=!1,ue.nodeDescription=Ue(ge)}function ie(ge,ue){ue.leading=!0,ue.trailing=!1,z(ge,ue)}function ce(ge,ue,qe){ue.leading=!1,ue.trailing=!1,qe&&(ue.marker=qe),z(ge,ue)}function ye(ge,ue){ue.leading=!1,ue.trailing=!0,z(ge,ue)}function fe(ge,ue){let{languages:qe}=D({plugins:ue.plugins}),rt=qe.find(Ge=>{let{name:mt}=Ge;return mt.toLowerCase()===ge})||qe.find(Ge=>{let{aliases:mt}=Ge;return Array.isArray(mt)&&mt.includes(ge)})||qe.find(Ge=>{let{extensions:mt}=Ge;return Array.isArray(mt)&&mt.includes(`.${ge}`)});return rt&&rt.parsers[0]}function _e(ge){return ge&&ge.type==="front-matter"}function se(ge){let ue=new WeakMap;return function(qe){return ue.has(qe)||ue.set(qe,Symbol(ge)),ue.get(qe)}}function Ue(ge){let ue=ge.type||ge.kind||"(unknown type)",qe=String(ge.name||ge.id&&(typeof ge.id=="object"?ge.id.name:ge.id)||ge.key&&(typeof ge.key=="object"?ge.key.name:ge.key)||ge.value&&(typeof ge.value=="object"?"":String(ge.value))||ge.operator||"");return qe.length>20&&(qe=qe.slice(0,19)+"…"),ue+(qe?" "+qe:"")}A.exports={inferParserByLanguage:fe,getStringWidth:d,getMaxContinuousCount:q,getMinNotPresentContinuousCount:U,getPenultimate:j,getLast:b,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:S,getNextNonSpaceNonCommentCharacterIndex:ee,getNextNonSpaceNonCommentCharacter:be,skip:Q,skipWhitespace:h,skipSpaces:E,skipToLineEnd:x,skipEverythingButNewLine:B,skipInlineComment:L,skipTrailingComment:P,skipNewline:C,isNextLineEmptyAfterIndex:G,isNextLineEmpty:re,isPreviousLineEmpty:X,hasNewline:ne,hasNewlineInRange:$,hasSpaces:F,getAlignmentSize:J,getIndentSize:w,getPreferredQuote:R,printString:y,printNumber:I,makeString:k,addLeadingComment:ie,addDanglingComment:ce,addTrailingComment:ye,isFrontMatterNode:_e,isNonEmptyArray:f,createGroupIdMapper:se}}}),K={};Sn(K,{basename:()=>Ct,default:()=>xr,delimiter:()=>sr,dirname:()=>je,extname:()=>Ot,isAbsolute:()=>Ne,join:()=>Me,normalize:()=>le,relative:()=>Ce,resolve:()=>H,sep:()=>$n});function O(m,A){for(var p=0,b=m.length-1;b>=0;b--){var D=m[b];D==="."?m.splice(b,1):D===".."?(m.splice(b,1),p++):p&&(m.splice(b,1),p--)}if(A)for(;p--;p)m.unshift("..");return m}function H(){for(var m="",A=!1,p=arguments.length-1;p>=-1&&!A;p--){var b=p>=0?arguments[p]:"/";if(typeof b!="string")throw new TypeError("Arguments to path.resolve must be strings");b&&(m=b+"/"+m,A=b.charAt(0)==="/")}return m=O(zt(m.split("/"),function(D){return!!D}),!A).join("/"),(A?"/":"")+m||"."}function le(m){var A=Ne(m),p=di(m,-1)==="/";return m=O(zt(m.split("/"),function(b){return!!b}),!A).join("/"),!m&&!A&&(m="."),m&&p&&(m+="/"),(A?"/":"")+m}function Ne(m){return m.charAt(0)==="/"}function Me(){var m=Array.prototype.slice.call(arguments,0);return le(zt(m,function(A,p){if(typeof A!="string")throw new TypeError("Arguments to path.join must be strings");return A}).join("/"))}function Ce(m,A){m=H(m).substr(1),A=H(A).substr(1);function p(x){for(var B=0;B<x.length&&x[B]==="";B++);for(var L=x.length-1;L>=0&&x[L]==="";L--);return B>L?[]:x.slice(B,L-B+1)}for(var b=p(m.split("/")),D=p(A.split("/")),f=Math.min(b.length,D.length),d=f,h=0;h<f;h++)if(b[h]!==D[h]){d=h;break}for(var E=[],h=d;h<b.length;h++)E.push("..");return E=E.concat(D.slice(d)),E.join("/")}function je(m){var A=on(m),p=A[0],b=A[1];return!p&&!b?".":(b&&(b=b.substr(0,b.length-1)),p+b)}function Ct(m,A){var p=on(m)[2];return A&&p.substr(-1*A.length)===A&&(p=p.substr(0,p.length-A.length)),p}function Ot(m){return on(m)[3]}function zt(m,A){if(m.filter)return m.filter(A);for(var p=[],b=0;b<m.length;b++)A(m[b],b,m)&&p.push(m[b]);return p}var vn,on,$n,sr,xr,di,ui=pn({"node-modules-polyfills:path"(){Re(),vn=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,on=function(m){return vn.exec(m).slice(1)},$n="/",sr=":",xr={extname:Ot,basename:Ct,dirname:je,sep:$n,delimiter:sr,relative:Ce,join:Me,isAbsolute:Ne,normalize:le,resolve:H},di="ab".substr(-1)==="b"?function(m,A,p){return m.substr(A,p)}:function(m,A,p){return A<0&&(A=m.length+A),m.substr(A,p)}}}),vt=Te({"node-modules-polyfills-commonjs:path"(m,A){Re();var p=(ui(),Hn(K));if(p&&p.default){A.exports=p.default;for(let b in p)A.exports[b]=p[b]}else p&&(A.exports=p)}}),tn=Te({"src/common/errors.js"(m,A){Re();var p=class extends Error{},b=class extends Error{},D=class extends Error{},f=class extends Error{};A.exports={ConfigError:p,DebugError:b,UndefinedParserError:D,ArgExpansionBailout:f}}}),hn={};Sn(hn,{__assign:()=>de,__asyncDelegator:()=>Hf,__asyncGenerator:()=>Yf,__asyncValues:()=>zf,__await:()=>hi,__awaiter:()=>Wi,__classPrivateFieldGet:()=>Zf,__classPrivateFieldSet:()=>ep,__createBinding:()=>ia,__decorate:()=>or,__exportStar:()=>Za,__extends:()=>Cn,__generator:()=>ki,__importDefault:()=>Kf,__importStar:()=>Xf,__makeTemplateObject:()=>Qf,__metadata:()=>Ui,__param:()=>Li,__read:()=>Dl,__rest:()=>Gn,__spread:()=>Gf,__spreadArrays:()=>Jf,__values:()=>$o});function Cn(m,A){pe(m,A);function p(){this.constructor=m}m.prototype=A===null?Object.create(A):(p.prototype=A.prototype,new p)}function Gn(m,A){var p={};for(var b in m)Object.prototype.hasOwnProperty.call(m,b)&&A.indexOf(b)<0&&(p[b]=m[b]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function")for(var D=0,b=Object.getOwnPropertySymbols(m);D<b.length;D++)A.indexOf(b[D])<0&&Object.prototype.propertyIsEnumerable.call(m,b[D])&&(p[b[D]]=m[b[D]]);return p}function or(m,A,p,b){var D=arguments.length,f=D<3?A:b===null?b=Object.getOwnPropertyDescriptor(A,p):b,d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")f=Reflect.decorate(m,A,p,b);else for(var h=m.length-1;h>=0;h--)(d=m[h])&&(f=(D<3?d(f):D>3?d(A,p,f):d(A,p))||f);return D>3&&f&&Object.defineProperty(A,p,f),f}function Li(m,A){return function(p,b){A(p,b,m)}}function Ui(m,A){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(m,A)}function Wi(m,A,p,b){function D(f){return f instanceof p?f:new p(function(d){d(f)})}return new(p||(p=Promise))(function(f,d){function h(B){try{x(b.next(B))}catch(L){d(L)}}function E(B){try{x(b.throw(B))}catch(L){d(L)}}function x(B){B.done?f(B.value):D(B.value).then(h,E)}x((b=b.apply(m,A||[])).next())})}function ki(m,A){var p={label:0,sent:function(){if(f[0]&1)throw f[1];return f[1]},trys:[],ops:[]},b,D,f,d;return d={next:h(0),throw:h(1),return:h(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function h(x){return function(B){return E([x,B])}}function E(x){if(b)throw new TypeError("Generator is already executing.");for(;p;)try{if(b=1,D&&(f=x[0]&2?D.return:x[0]?D.throw||((f=D.return)&&f.call(D),0):D.next)&&!(f=f.call(D,x[1])).done)return f;switch(D=0,f&&(x=[x[0]&2,f.value]),x[0]){case 0:case 1:f=x;break;case 4:return p.label++,{value:x[1],done:!1};case 5:p.label++,D=x[1],x=[0];continue;case 7:x=p.ops.pop(),p.trys.pop();continue;default:if(f=p.trys,!(f=f.length>0&&f[f.length-1])&&(x[0]===6||x[0]===2)){p=0;continue}if(x[0]===3&&(!f||x[1]>f[0]&&x[1]<f[3])){p.label=x[1];break}if(x[0]===6&&p.label<f[1]){p.label=f[1],f=x;break}if(f&&p.label<f[2]){p.label=f[2],p.ops.push(x);break}f[2]&&p.ops.pop(),p.trys.pop();continue}x=A.call(m,p)}catch(B){x=[6,B],D=0}finally{b=f=0}if(x[0]&5)throw x[1];return{value:x[0]?x[1]:void 0,done:!0}}}function ia(m,A,p,b){b===void 0&&(b=p),m[b]=A[p]}function Za(m,A){for(var p in m)p!=="default"&&!A.hasOwnProperty(p)&&(A[p]=m[p])}function $o(m){var A=typeof Symbol=="function"&&Symbol.iterator,p=A&&m[A],b=0;if(p)return p.call(m);if(m&&typeof m.length=="number")return{next:function(){return m&&b>=m.length&&(m=void 0),{value:m&&m[b++],done:!m}}};throw new TypeError(A?"Object is not iterable.":"Symbol.iterator is not defined.")}function Dl(m,A){var p=typeof Symbol=="function"&&m[Symbol.iterator];if(!p)return m;var b=p.call(m),D,f=[],d;try{for(;(A===void 0||A-- >0)&&!(D=b.next()).done;)f.push(D.value)}catch(h){d={error:h}}finally{try{D&&!D.done&&(p=b.return)&&p.call(b)}finally{if(d)throw d.error}}return f}function Gf(){for(var m=[],A=0;A<arguments.length;A++)m=m.concat(Dl(arguments[A]));return m}function Jf(){for(var m=0,A=0,p=arguments.length;A<p;A++)m+=arguments[A].length;for(var b=Array(m),D=0,A=0;A<p;A++)for(var f=arguments[A],d=0,h=f.length;d<h;d++,D++)b[D]=f[d];return b}function hi(m){return this instanceof hi?(this.v=m,this):new hi(m)}function Yf(m,A,p){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var b=p.apply(m,A||[]),D,f=[];return D={},d("next"),d("throw"),d("return"),D[Symbol.asyncIterator]=function(){return this},D;function d(P){b[P]&&(D[P]=function(C){return new Promise(function(S,j){f.push([P,C,S,j])>1||h(P,C)})})}function h(P,C){try{E(b[P](C))}catch(S){L(f[0][3],S)}}function E(P){P.value instanceof hi?Promise.resolve(P.value.v).then(x,B):L(f[0][2],P)}function x(P){h("next",P)}function B(P){h("throw",P)}function L(P,C){P(C),f.shift(),f.length&&h(f[0][0],f[0][1])}}function Hf(m){var A,p;return A={},b("next"),b("throw",function(D){throw D}),b("return"),A[Symbol.iterator]=function(){return this},A;function b(D,f){A[D]=m[D]?function(d){return(p=!p)?{value:hi(m[D](d)),done:D==="return"}:f?f(d):d}:f}}function zf(m){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var A=m[Symbol.asyncIterator],p;return A?A.call(m):(m=typeof $o=="function"?$o(m):m[Symbol.iterator](),p={},b("next"),b("throw"),b("return"),p[Symbol.asyncIterator]=function(){return this},p);function b(f){p[f]=m[f]&&function(d){return new Promise(function(h,E){d=m[f](d),D(h,E,d.done,d.value)})}}function D(f,d,h,E){Promise.resolve(E).then(function(x){f({value:x,done:h})},d)}}function Qf(m,A){return Object.defineProperty?Object.defineProperty(m,"raw",{value:A}):m.raw=A,m}function Xf(m){if(m&&m.__esModule)return m;var A={};if(m!=null)for(var p in m)Object.hasOwnProperty.call(m,p)&&(A[p]=m[p]);return A.default=m,A}function Kf(m){return m&&m.__esModule?m:{default:m}}function Zf(m,A){if(!A.has(m))throw new TypeError("attempted to get private field on non-instance");return A.get(m)}function ep(m,A,p){if(!A.has(m))throw new TypeError("attempted to set private field on non-instance");return A.set(m,p),p}var pe,de,We=pn({"node_modules/tslib/tslib.es6.js"(){Re(),pe=function(m,A){return pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,b){p.__proto__=b}||function(p,b){for(var D in b)b.hasOwnProperty(D)&&(p[D]=b[D])},pe(m,A)},de=function(){return de=Object.assign||function(m){for(var A,p=1,b=arguments.length;p<b;p++){A=arguments[p];for(var D in A)Object.prototype.hasOwnProperty.call(A,D)&&(m[D]=A[D])}return m},de.apply(this,arguments)}}}),Ye=Te({"node_modules/vnopts/lib/descriptors/api.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0}),m.apiDescriptor={key:A=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(A)?A:JSON.stringify(A),value(A){if(A===null||typeof A!="object")return JSON.stringify(A);if(Array.isArray(A))return`[${A.map(b=>m.apiDescriptor.value(b)).join(", ")}]`;let p=Object.keys(A);return p.length===0?"{}":`{ ${p.map(b=>`${m.apiDescriptor.key(b)}: ${m.apiDescriptor.value(A[b])}`).join(", ")} }`},pair:A=>{let{key:p,value:b}=A;return m.apiDescriptor.value({[p]:b})}}}}),tt=Te({"node_modules/vnopts/lib/descriptors/index.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0});var A=(We(),Hn(hn));A.__exportStar(Ye(),m)}}),nt=Te({"scripts/build/shims/chalk.cjs"(m,A){Re();var p=b=>b;p.grey=p,p.red=p,p.bold=p,p.yellow=p,p.blue=p,p.default=p,A.exports=p}}),St=Te({"node_modules/vnopts/lib/handlers/deprecated/common.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0});var A=nt();m.commonDeprecatedHandler=(p,b,D)=>{let{descriptor:f}=D,d=[`${A.default.yellow(typeof p=="string"?f.key(p):f.pair(p))} is deprecated`];return b&&d.push(`we now treat it as ${A.default.blue(typeof b=="string"?f.key(b):f.pair(b))}`),d.join("; ")+"."}}}),Nt=Te({"node_modules/vnopts/lib/handlers/deprecated/index.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0});var A=(We(),Hn(hn));A.__exportStar(St(),m)}}),Kt=Te({"node_modules/vnopts/lib/handlers/invalid/common.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0});var A=nt();m.commonInvalidHandler=(p,b,D)=>[`Invalid ${A.default.red(D.descriptor.key(p))} value.`,`Expected ${A.default.blue(D.schemas[p].expected(D))},`,`but received ${A.default.red(D.descriptor.value(b))}.`].join(" ")}}),rn=Te({"node_modules/vnopts/lib/handlers/invalid/index.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0});var A=(We(),Hn(hn));A.__exportStar(Kt(),m)}}),dn=Te({"node_modules/vnopts/node_modules/leven/index.js"(m,A){Re();var p=[],b=[];A.exports=function(D,f){if(D===f)return 0;var d=D;D.length>f.length&&(D=f,f=d);var h=D.length,E=f.length;if(h===0)return E;if(E===0)return h;for(;h>0&&D.charCodeAt(~-h)===f.charCodeAt(~-E);)h--,E--;if(h===0)return E;for(var x=0;x<h&&D.charCodeAt(x)===f.charCodeAt(x);)x++;if(h-=x,E-=x,h===0)return E;for(var B,L,P,C,S=0,j=0;S<h;)b[x+S]=D.charCodeAt(x+S),p[S]=++S;for(;j<E;)for(B=f.charCodeAt(x+j),P=j++,L=j,S=0;S<h;S++)C=B===b[x+S]?P:P+1,P=p[S],L=p[S]=P>L?C>L?L+1:C:C>P?P+1:C;return L}}}),kn=Te({"node_modules/vnopts/lib/handlers/unknown/leven.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0});var A=nt(),p=dn();m.levenUnknownHandler=(b,D,f)=>{let{descriptor:d,logger:h,schemas:E}=f,x=[`Ignored unknown option ${A.default.yellow(d.pair({key:b,value:D}))}.`],B=Object.keys(E).sort().find(L=>p(b,L)<3);B&&x.push(`Did you mean ${A.default.blue(d.key(B))}?`),h.warn(x.join(" "))}}}),lr=Te({"node_modules/vnopts/lib/handlers/unknown/index.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0});var A=(We(),Hn(hn));A.__exportStar(kn(),m)}}),cr=Te({"node_modules/vnopts/lib/handlers/index.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0});var A=(We(),Hn(hn));A.__exportStar(Nt(),m),A.__exportStar(rn(),m),A.__exportStar(lr(),m)}}),jn=Te({"node_modules/vnopts/lib/schema.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0});var A=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function p(f,d){let h=new f(d),E=Object.create(h);for(let x of A)x in d&&(E[x]=D(d[x],h,b.prototype[x].length));return E}m.createSchema=p;var b=class{constructor(f){this.name=f.name}static create(f){return p(this,f)}default(f){}expected(f){return"nothing"}validate(f,d){return!1}deprecated(f,d){return!1}forward(f,d){}redirect(f,d){}overlap(f,d,h){return f}preprocess(f,d){return f}postprocess(f,d){return f}};m.Schema=b;function D(f,d,h){return typeof f=="function"?function(){for(var E=arguments.length,x=new Array(E),B=0;B<E;B++)x[B]=arguments[B];return f(...x.slice(0,h-1),d,...x.slice(h-1))}:()=>f}}}),ir=Te({"node_modules/vnopts/lib/schemas/alias.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0});var A=jn(),p=class extends A.Schema{constructor(b){super(b),this._sourceName=b.sourceName}expected(b){return b.schemas[this._sourceName].expected(b)}validate(b,D){return D.schemas[this._sourceName].validate(b,D)}redirect(b,D){return this._sourceName}};m.AliasSchema=p}}),er=Te({"node_modules/vnopts/lib/schemas/any.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0});var A=jn(),p=class extends A.Schema{expected(){return"anything"}validate(){return!0}};m.AnySchema=p}}),qr=Te({"node_modules/vnopts/lib/schemas/array.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0});var A=(We(),Hn(hn)),p=jn(),b=class extends p.Schema{constructor(f){var{valueSchema:d,name:h=d.name}=f,E=A.__rest(f,["valueSchema","name"]);super(Object.assign({},E,{name:h})),this._valueSchema=d}expected(f){return`an array of ${this._valueSchema.expected(f)}`}validate(f,d){if(!Array.isArray(f))return!1;let h=[];for(let E of f){let x=d.normalizeValidateResult(this._valueSchema.validate(E,d),E);x!==!0&&h.push(x.value)}return h.length===0?!0:{value:h}}deprecated(f,d){let h=[];for(let E of f){let x=d.normalizeDeprecatedResult(this._valueSchema.deprecated(E,d),E);x!==!1&&h.push(...x.map(B=>{let{value:L}=B;return{value:[L]}}))}return h}forward(f,d){let h=[];for(let E of f){let x=d.normalizeForwardResult(this._valueSchema.forward(E,d),E);h.push(...x.map(D))}return h}redirect(f,d){let h=[],E=[];for(let x of f){let B=d.normalizeRedirectResult(this._valueSchema.redirect(x,d),x);"remain"in B&&h.push(B.remain),E.push(...B.redirect.map(D))}return h.length===0?{redirect:E}:{redirect:E,remain:h}}overlap(f,d){return f.concat(d)}};m.ArraySchema=b;function D(f){let{from:d,to:h}=f;return{from:[d],to:h}}}}),ur=Te({"node_modules/vnopts/lib/schemas/boolean.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0});var A=jn(),p=class extends A.Schema{expected(){return"true or false"}validate(b){return typeof b=="boolean"}};m.BooleanSchema=p}}),Jr=Te({"node_modules/vnopts/lib/utils.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0});function A(C,S){let j=Object.create(null);for(let Q of C){let ne=Q[S];if(j[ne])throw new Error(`Duplicate ${S} ${JSON.stringify(ne)}`);j[ne]=Q}return j}m.recordFromArray=A;function p(C,S){let j=new Map;for(let Q of C){let ne=Q[S];if(j.has(ne))throw new Error(`Duplicate ${S} ${JSON.stringify(ne)}`);j.set(ne,Q)}return j}m.mapFromArray=p;function b(){let C=Object.create(null);return S=>{let j=JSON.stringify(S);return C[j]?!0:(C[j]=!0,!1)}}m.createAutoChecklist=b;function D(C,S){let j=[],Q=[];for(let ne of C)S(ne)?j.push(ne):Q.push(ne);return[j,Q]}m.partition=D;function f(C){return C===Math.floor(C)}m.isInt=f;function d(C,S){if(C===S)return 0;let j=typeof C,Q=typeof S,ne=["undefined","object","boolean","number","string"];return j!==Q?ne.indexOf(j)-ne.indexOf(Q):j!=="string"?Number(C)-Number(S):C.localeCompare(S)}m.comparePrimitive=d;function h(C){return C===void 0?{}:C}m.normalizeDefaultResult=h;function E(C,S){return C===!0?!0:C===!1?{value:S}:C}m.normalizeValidateResult=E;function x(C,S){let j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return C===!1?!1:C===!0?j?!0:[{value:S}]:"value"in C?[C]:C.length===0?!1:C}m.normalizeDeprecatedResult=x;function B(C,S){return typeof C=="string"||"key"in C?{from:S,to:C}:"from"in C?{from:C.from,to:C.to}:{from:S,to:C.to}}m.normalizeTransferResult=B;function L(C,S){return C===void 0?[]:Array.isArray(C)?C.map(j=>B(j,S)):[B(C,S)]}m.normalizeForwardResult=L;function P(C,S){let j=L(typeof C=="object"&&"redirect"in C?C.redirect:C,S);return j.length===0?{remain:S,redirect:j}:typeof C=="object"&&"remain"in C?{remain:C.remain,redirect:j}:{redirect:j}}m.normalizeRedirectResult=P}}),gr=Te({"node_modules/vnopts/lib/schemas/choice.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0});var A=jn(),p=Jr(),b=class extends A.Schema{constructor(D){super(D),this._choices=p.mapFromArray(D.choices.map(f=>f&&typeof f=="object"?f:{value:f}),"value")}expected(D){let{descriptor:f}=D,d=Array.from(this._choices.keys()).map(x=>this._choices.get(x)).filter(x=>!x.deprecated).map(x=>x.value).sort(p.comparePrimitive).map(f.value),h=d.slice(0,-2),E=d.slice(-2);return h.concat(E.join(" or ")).join(", ")}validate(D){return this._choices.has(D)}deprecated(D){let f=this._choices.get(D);return f&&f.deprecated?{value:D}:!1}forward(D){let f=this._choices.get(D);return f?f.forward:void 0}redirect(D){let f=this._choices.get(D);return f?f.redirect:void 0}};m.ChoiceSchema=b}}),Fr=Te({"node_modules/vnopts/lib/schemas/number.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0});var A=jn(),p=class extends A.Schema{expected(){return"a number"}validate(b,D){return typeof b=="number"}};m.NumberSchema=p}}),eo=Te({"node_modules/vnopts/lib/schemas/integer.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0});var A=Jr(),p=Fr(),b=class extends p.NumberSchema{expected(){return"an integer"}validate(D,f){return f.normalizeValidateResult(super.validate(D,f),D)===!0&&A.isInt(D)}};m.IntegerSchema=b}}),Hv=Te({"node_modules/vnopts/lib/schemas/string.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0});var A=jn(),p=class extends A.Schema{expected(){return"a string"}validate(b){return typeof b=="string"}};m.StringSchema=p}}),zv=Te({"node_modules/vnopts/lib/schemas/index.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0});var A=(We(),Hn(hn));A.__exportStar(ir(),m),A.__exportStar(er(),m),A.__exportStar(qr(),m),A.__exportStar(ur(),m),A.__exportStar(gr(),m),A.__exportStar(eo(),m),A.__exportStar(Fr(),m),A.__exportStar(Hv(),m)}}),Qv=Te({"node_modules/vnopts/lib/defaults.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0});var A=Ye(),p=St(),b=rn(),D=kn();m.defaultDescriptor=A.apiDescriptor,m.defaultUnknownHandler=D.levenUnknownHandler,m.defaultInvalidHandler=b.commonInvalidHandler,m.defaultDeprecatedHandler=p.commonDeprecatedHandler}}),Xv=Te({"node_modules/vnopts/lib/normalize.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0});var A=Qv(),p=Jr();m.normalize=(D,f,d)=>new b(f,d).normalize(D);var b=class{constructor(D,f){let{logger:d=console,descriptor:h=A.defaultDescriptor,unknown:E=A.defaultUnknownHandler,invalid:x=A.defaultInvalidHandler,deprecated:B=A.defaultDeprecatedHandler}=f||{};this._utils={descriptor:h,logger:d||{warn:()=>{}},schemas:p.recordFromArray(D,"name"),normalizeDefaultResult:p.normalizeDefaultResult,normalizeDeprecatedResult:p.normalizeDeprecatedResult,normalizeForwardResult:p.normalizeForwardResult,normalizeRedirectResult:p.normalizeRedirectResult,normalizeValidateResult:p.normalizeValidateResult},this._unknownHandler=E,this._invalidHandler=x,this._deprecatedHandler=B,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=p.createAutoChecklist()}normalize(D){let f={},d=[D],h=()=>{for(;d.length!==0;){let E=d.shift(),x=this._applyNormalization(E,f);d.push(...x)}};h();for(let E of Object.keys(this._utils.schemas)){let x=this._utils.schemas[E];if(!(E in f)){let B=p.normalizeDefaultResult(x.default(this._utils));"value"in B&&d.push({[E]:B.value})}}h();for(let E of Object.keys(this._utils.schemas)){let x=this._utils.schemas[E];E in f&&(f[E]=x.postprocess(f[E],this._utils))}return f}_applyNormalization(D,f){let d=[],[h,E]=p.partition(Object.keys(D),x=>x in this._utils.schemas);for(let x of h){let B=this._utils.schemas[x],L=B.preprocess(D[x],this._utils),P=p.normalizeValidateResult(B.validate(L,this._utils),L);if(P!==!0){let{value:Q}=P,ne=this._invalidHandler(x,Q,this._utils);throw typeof ne=="string"?new Error(ne):ne}let C=Q=>{let{from:ne,to:$}=Q;d.push(typeof $=="string"?{[$]:ne}:{[$.key]:$.value})},S=Q=>{let{value:ne,redirectTo:$}=Q,X=p.normalizeDeprecatedResult(B.deprecated(ne,this._utils),L,!0);if(X!==!1)if(X===!0)this._hasDeprecationWarned(x)||this._utils.logger.warn(this._deprecatedHandler(x,$,this._utils));else for(let{value:G}of X){let re={key:x,value:G};if(!this._hasDeprecationWarned(re)){let ee=typeof $=="string"?{key:$,value:G}:$;this._utils.logger.warn(this._deprecatedHandler(re,ee,this._utils))}}};p.normalizeForwardResult(B.forward(L,this._utils),L).forEach(C);let j=p.normalizeRedirectResult(B.redirect(L,this._utils),L);if(j.redirect.forEach(C),"remain"in j){let Q=j.remain;f[x]=x in f?B.overlap(f[x],Q,this._utils):Q,S({value:Q})}for(let{from:Q,to:ne}of j.redirect)S({value:Q,redirectTo:ne})}for(let x of E){let B=D[x],L=this._unknownHandler(x,B,this._utils);if(L)for(let P of Object.keys(L)){let C={[P]:L[P]};P in this._utils.schemas?d.push(C):Object.assign(f,C)}}return d}};m.Normalizer=b}}),Kv=Te({"node_modules/vnopts/lib/index.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0});var A=(We(),Hn(hn));A.__exportStar(tt(),m),A.__exportStar(cr(),m),A.__exportStar(zv(),m),A.__exportStar(Xv(),m),A.__exportStar(jn(),m)}}),Zv=Te({"src/main/options-normalizer.js"(m,A){Re();var p=Kv(),b=Vr(),D={key:P=>P.length===1?`-${P}`:`--${P}`,value:P=>p.apiDescriptor.value(P),pair:P=>{let{key:C,value:S}=P;return S===!1?`--no-${C}`:S===!0?D.key(C):S===""?`${D.key(C)} without an argument`:`${D.key(C)}=${S}`}},f=P=>{let{colorsModule:C,levenshteinDistance:S}=P;return class extends p.ChoiceSchema{constructor(j){let{name:Q,flags:ne}=j;super({name:Q,choices:ne}),this._flags=[...ne].sort()}preprocess(j,Q){if(typeof j=="string"&&j.length>0&&!this._flags.includes(j)){let ne=this._flags.find($=>S($,j)<3);if(ne)return Q.logger.warn([`Unknown flag ${C.yellow(Q.descriptor.value(j))},`,`did you mean ${C.blue(Q.descriptor.value(ne))}?`].join(" ")),ne}return j}expected(){return"a flag"}}},d;function h(P,C){let{logger:S=!1,isCLI:j=!1,passThrough:Q=!1,colorsModule:ne=null,levenshteinDistance:$=null}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},X=Q?Array.isArray(Q)?(J,w)=>Q.includes(J)?{[J]:w}:void 0:(J,w)=>({[J]:w}):(J,w,R)=>{let y=R.schemas,k=wt(y,lt);return p.levenUnknownHandler(J,w,Object.assign(Object.assign({},R),{},{schemas:k}))},G=j?D:p.apiDescriptor,re=E(C,{isCLI:j,colorsModule:ne,levenshteinDistance:$}),ee=new p.Normalizer(re,{logger:S,unknown:X,descriptor:G}),be=S!==!1;be&&d&&(ee._hasDeprecationWarned=d);let F=ee.normalize(P);return be&&(d=ee._hasDeprecationWarned),j&&F["plugin-search"]===!1&&(F["plugin-search-dir"]=!1),F}function E(P,C){let{isCLI:S,colorsModule:j,levenshteinDistance:Q}=C,ne=[];S&&ne.push(p.AnySchema.create({name:"_"}));for(let $ of P)ne.push(x($,{isCLI:S,optionInfos:P,colorsModule:j,levenshteinDistance:Q})),$.alias&&S&&ne.push(p.AliasSchema.create({name:$.alias,sourceName:$.name}));return ne}function x(P,C){let{isCLI:S,optionInfos:j,colorsModule:Q,levenshteinDistance:ne}=C,{name:$}=P;if($==="plugin-search-dir"||$==="pluginSearchDirs")return p.AnySchema.create({name:$,preprocess(ee){return ee===!1||(ee=Array.isArray(ee)?ee:[ee]),ee},validate(ee){return ee===!1?!0:ee.every(be=>typeof be=="string")},expected(){return"false or paths to plugin search dir"}});let X={name:$},G,re={};switch(P.type){case"int":G=p.IntegerSchema,S&&(X.preprocess=Number);break;case"string":G=p.StringSchema;break;case"choice":G=p.ChoiceSchema,X.choices=P.choices.map(ee=>typeof ee=="object"&&ee.redirect?Object.assign(Object.assign({},ee),{},{redirect:{to:{key:P.name,value:ee.redirect}}}):ee);break;case"boolean":G=p.BooleanSchema;break;case"flag":G=f({colorsModule:Q,levenshteinDistance:ne}),X.flags=j.flatMap(ee=>[ee.alias,ee.description&&ee.name,ee.oppositeDescription&&`no-${ee.name}`].filter(Boolean));break;case"path":G=p.StringSchema;break;default:throw new Error(`Unexpected type ${P.type}`)}if(P.exception?X.validate=(ee,be,F)=>P.exception(ee)||be.validate(ee,F):X.validate=(ee,be,F)=>ee===void 0||be.validate(ee,F),P.redirect&&(re.redirect=ee=>ee?{to:{key:P.redirect.option,value:P.redirect.value}}:void 0),P.deprecated&&(re.deprecated=!0),S&&!P.array){let ee=X.preprocess||(be=>be);X.preprocess=(be,F,J)=>F.preprocess(ee(Array.isArray(be)?b(be):be),J)}return P.array?p.ArraySchema.create(Object.assign(Object.assign(Object.assign({},S?{preprocess:ee=>Array.isArray(ee)?ee:[ee]}:{}),re),{},{valueSchema:G.create(X)})):G.create(Object.assign(Object.assign({},X),re))}function B(P,C,S){return h(P,C,S)}function L(P,C,S){return h(P,C,Object.assign({isCLI:!0},S))}A.exports={normalizeApiOptions:B,normalizeCliOptions:L}}}),ni=Te({"src/language-js/loc.js"(m,A){Re();var p=It();function b(E){var x,B;let L=E.range?E.range[0]:E.start,P=(x=(B=E.declaration)===null||B===void 0?void 0:B.decorators)!==null&&x!==void 0?x:E.decorators;return p(P)?Math.min(b(P[0]),L):L}function D(E){return E.range?E.range[1]:E.end}function f(E,x){let B=b(E);return Number.isInteger(B)&&B===b(x)}function d(E,x){let B=D(E);return Number.isInteger(B)&&B===D(x)}function h(E,x){return f(E,x)&&d(E,x)}A.exports={locStart:b,locEnd:D,hasSameLocStart:f,hasSameLoc:h}}}),e2=Te({"src/main/load-parser.js"(m,A){Re(),A.exports=()=>{}}}),t2=Te({"scripts/build/shims/babel-highlight.cjs"(m,A){Re();var p=nt(),b={shouldHighlight:()=>!1,getChalk:()=>p};A.exports=b}}),n2=Te({"node_modules/@babel/code-frame/lib/index.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0}),m.codeFrameColumns=d,m.default=h;var A=t2(),p=!1;function b(E){return{gutter:E.grey,marker:E.red.bold,message:E.red.bold}}var D=/\r\n|[\n\r\u2028\u2029]/;function f(E,x,B){let L=Object.assign({column:0,line:-1},E.start),P=Object.assign({},L,E.end),{linesAbove:C=2,linesBelow:S=3}=B||{},j=L.line,Q=L.column,ne=P.line,$=P.column,X=Math.max(j-(C+1),0),G=Math.min(x.length,ne+S);j===-1&&(X=0),ne===-1&&(G=x.length);let re=ne-j,ee={};if(re)for(let be=0;be<=re;be++){let F=be+j;if(!Q)ee[F]=!0;else if(be===0){let J=x[F-1].length;ee[F]=[Q,J-Q+1]}else if(be===re)ee[F]=[0,$];else{let J=x[F-be].length;ee[F]=[0,J]}}else Q===$?Q?ee[j]=[Q,0]:ee[j]=!0:ee[j]=[Q,$-Q];return{start:X,end:G,markerLines:ee}}function d(E,x){let B=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},L=(B.highlightCode||B.forceColor)&&(0,A.shouldHighlight)(B),P=(0,A.getChalk)(B),C=b(P),S=(ee,be)=>L?ee(be):be,j=E.split(D),{start:Q,end:ne,markerLines:$}=f(x,j,B),X=x.start&&typeof x.start.column=="number",G=String(ne).length,re=(L?(0,A.default)(E,B):E).split(D,ne).slice(Q,ne).map((ee,be)=>{let F=Q+1+be,J=` ${` ${F}`.slice(-G)} |`,w=$[F],R=!$[F+1];if(w){let y="";if(Array.isArray(w)){let k=ee.slice(0,Math.max(w[0]-1,0)).replace(/[^\t]/g," "),I=w[1]||1;y=[`
181
- `,S(C.gutter,J.replace(/\d/g," "))," ",k,S(C.marker,"^").repeat(I)].join(""),R&&B.message&&(y+=" "+S(C.message,B.message))}return[S(C.marker,">"),S(C.gutter,J),ee.length>0?` ${ee}`:"",y].join("")}else return` ${S(C.gutter,J)}${ee.length>0?` ${ee}`:""}`}).join(`
182
- `);return B.message&&!X&&(re=`${" ".repeat(G+1)}${B.message}
183
- ${re}`),L?P.reset(re):re}function h(E,x,B){let L=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};if(!p){p=!0;let P="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(Cr.emitWarning)Cr.emitWarning(P,"DeprecationWarning");else{let C=new Error(P);C.name="DeprecationWarning",console.warn(new Error(P))}}return B=Math.max(B,0),d(E,{start:{column:B,line:x}},L)}}}),tp=Te({"src/main/parser.js"(m,A){Re();var{ConfigError:p}=tn(),b=ni();e2();var{locStart:D,locEnd:f}=b,d=Object.getOwnPropertyNames,h=Object.getOwnPropertyDescriptor;function E(L){let P={};for(let C of L.plugins)if(C.parsers)for(let S of d(C.parsers))Object.defineProperty(P,S,h(C.parsers,S));return P}function x(L){let P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:E(L);if(typeof L.parser=="function")return{parse:L.parser,astFormat:"estree",locStart:D,locEnd:f};if(typeof L.parser=="string"){if(Object.prototype.hasOwnProperty.call(P,L.parser))return P[L.parser];throw new p(`Couldn't resolve parser "${L.parser}". Parsers must be explicitly added to the standalone bundle.`)}}function B(L,P){let C=E(P),S=Object.defineProperties({},Object.fromEntries(Object.keys(C).map(Q=>[Q,{enumerable:!0,get(){return C[Q].parse}}]))),j=x(P,C);try{return j.preprocess&&(L=j.preprocess(L,P)),{text:L,ast:j.parse(L,S,P)}}catch(Q){let{loc:ne}=Q;if(ne){let{codeFrameColumns:$}=n2();throw Q.codeFrame=$(L,ne,{highlightCode:!0}),Q.message+=`
184
- `+Q.codeFrame,Q}throw Q}}A.exports={parse:B,resolveParser:x}}}),B0=Te({"src/main/options.js"(m,A){Re();var p=vt(),{UndefinedParserError:b}=tn(),{getSupportInfo:D}=Tt(),f=Zv(),{resolveParser:d}=tp(),h={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};function E(L){let P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},C=Object.assign({},L),S=D({plugins:L.plugins,showUnreleased:!0,showDeprecated:!0}).options,j=Object.assign(Object.assign({},h),Object.fromEntries(S.filter(G=>G.default!==void 0).map(G=>[G.name,G.default])));if(!C.parser){if(!C.filepath)(P.logger||console).warn("No parser and no filepath given, using 'babel' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred."),C.parser="babel";else if(C.parser=B(C.filepath,C.plugins),!C.parser)throw new b(`No parser could be inferred for file: ${C.filepath}`)}let Q=d(f.normalizeApiOptions(C,[S.find(G=>G.name==="parser")],{passThrough:!0,logger:!1}));C.astFormat=Q.astFormat,C.locEnd=Q.locEnd,C.locStart=Q.locStart;let ne=x(C);C.printer=ne.printers[C.astFormat];let $=Object.fromEntries(S.filter(G=>G.pluginDefaults&&G.pluginDefaults[ne.name]!==void 0).map(G=>[G.name,G.pluginDefaults[ne.name]])),X=Object.assign(Object.assign({},j),$);for(let[G,re]of Object.entries(X))(C[G]===null||C[G]===void 0)&&(C[G]=re);return C.parser==="json"&&(C.trailingComma="none"),f.normalizeApiOptions(C,S,Object.assign({passThrough:Object.keys(h)},P))}function x(L){let{astFormat:P}=L;if(!P)throw new Error("getPlugin() requires astFormat to be set");let C=L.plugins.find(S=>S.printers&&S.printers[P]);if(!C)throw new Error(`Couldn't find plugin for AST format "${P}"`);return C}function B(L,P){let C=p.basename(L).toLowerCase(),S=D({plugins:P}).languages.filter(j=>j.since!==null).find(j=>j.extensions&&j.extensions.some(Q=>C.endsWith(Q))||j.filenames&&j.filenames.some(Q=>Q.toLowerCase()===C));return S&&S.parsers[0]}A.exports={normalize:E,hiddenDefaults:h,inferParser:B}}}),r2=Te({"src/main/massage-ast.js"(m,A){Re();function p(b,D,f){if(Array.isArray(b))return b.map(x=>p(x,D,f)).filter(Boolean);if(!b||typeof b!="object")return b;let d=D.printer.massageAstNode,h;d&&d.ignoredProperties?h=d.ignoredProperties:h=new Set;let E={};for(let[x,B]of Object.entries(b))!h.has(x)&&typeof B!="function"&&(E[x]=p(B,D,b));if(d){let x=d(b,E,f);if(x===null)return;if(x)return x}return E}A.exports=p}}),Vo=Te({"scripts/build/shims/assert.cjs"(m,A){Re();var p=()=>{};p.ok=p,p.strictEqual=p,A.exports=p}}),Ir=Te({"src/main/comments.js"(m,A){Re();var p=Vo(),{builders:{line:b,hardline:D,breakParent:f,indent:d,lineSuffix:h,join:E,cursor:x}}=wn(),{hasNewline:B,skipNewline:L,skipSpaces:P,isPreviousLineEmpty:C,addLeadingComment:S,addDanglingComment:j,addTrailingComment:Q}=De(),ne=new WeakMap;function $(ie,ce,ye){if(!ie)return;let{printer:fe,locStart:_e,locEnd:se}=ce;if(ye){if(fe.canAttachComment&&fe.canAttachComment(ie)){let ge;for(ge=ye.length-1;ge>=0&&!(_e(ye[ge])<=_e(ie)&&se(ye[ge])<=se(ie));--ge);ye.splice(ge+1,0,ie);return}}else if(ne.has(ie))return ne.get(ie);let Ue=fe.getCommentChildNodes&&fe.getCommentChildNodes(ie,ce)||typeof ie=="object"&&Object.entries(ie).filter(ge=>{let[ue]=ge;return ue!=="enclosingNode"&&ue!=="precedingNode"&&ue!=="followingNode"&&ue!=="tokens"&&ue!=="comments"&&ue!=="parent"}).map(ge=>{let[,ue]=ge;return ue});if(Ue){ye||(ye=[],ne.set(ie,ye));for(let ge of Ue)$(ge,ce,ye);return ye}}function X(ie,ce,ye,fe){let{locStart:_e,locEnd:se}=ye,Ue=_e(ce),ge=se(ce),ue=$(ie,ye),qe,rt,Ge=0,mt=ue.length;for(;Ge<mt;){let ve=Ge+mt>>1,Ie=ue[ve],pt=_e(Ie),dt=se(Ie);if(pt<=Ue&&ge<=dt)return X(Ie,ce,ye,Ie);if(dt<=Ue){qe=Ie,Ge=ve+1;continue}if(ge<=pt){rt=Ie,mt=ve;continue}throw new Error("Comment location overlaps with node location")}if(fe&&fe.type==="TemplateLiteral"){let{quasis:ve}=fe,Ie=R(ve,ce,ye);qe&&R(ve,qe,ye)!==Ie&&(qe=null),rt&&R(ve,rt,ye)!==Ie&&(rt=null)}return{enclosingNode:fe,precedingNode:qe,followingNode:rt}}var G=()=>!1;function re(ie,ce,ye,fe){if(!Array.isArray(ie))return;let _e=[],{locStart:se,locEnd:Ue,printer:{handleComments:ge={}}}=fe,{avoidAstMutation:ue,ownLine:qe=G,endOfLine:rt=G,remaining:Ge=G}=ge,mt=ie.map((ve,Ie)=>Object.assign(Object.assign({},X(ce,ve,fe)),{},{comment:ve,text:ye,options:fe,ast:ce,isLastComment:ie.length-1===Ie}));for(let[ve,Ie]of mt.entries()){let{comment:pt,precedingNode:dt,enclosingNode:Jt,followingNode:$e,text:we,options:Je,ast:Ke,isLastComment:Et}=Ie;if(Je.parser==="json"||Je.parser==="json5"||Je.parser==="__js_expression"||Je.parser==="__vue_expression"||Je.parser==="__vue_ts_expression"){if(se(pt)-se(Ke)<=0){S(Ke,pt);continue}if(Ue(pt)-Ue(Ke)>=0){Q(Ke,pt);continue}}let _t;if(ue?_t=[Ie]:(pt.enclosingNode=Jt,pt.precedingNode=dt,pt.followingNode=$e,_t=[pt,we,Je,Ke,Et]),be(we,Je,mt,ve))pt.placement="ownLine",qe(..._t)||($e?S($e,pt):dt?Q(dt,pt):j(Jt||Ke,pt));else if(F(we,Je,mt,ve))pt.placement="endOfLine",rt(..._t)||(dt?Q(dt,pt):$e?S($e,pt):j(Jt||Ke,pt));else if(pt.placement="remaining",!Ge(..._t))if(dt&&$e){let Bt=_e.length;Bt>0&&_e[Bt-1].followingNode!==$e&&J(_e,we,Je),_e.push(Ie)}else dt?Q(dt,pt):$e?S($e,pt):j(Jt||Ke,pt)}if(J(_e,ye,fe),!ue)for(let ve of ie)delete ve.precedingNode,delete ve.enclosingNode,delete ve.followingNode}var ee=ie=>!/[\S\n\u2028\u2029]/.test(ie);function be(ie,ce,ye,fe){let{comment:_e,precedingNode:se}=ye[fe],{locStart:Ue,locEnd:ge}=ce,ue=Ue(_e);if(se)for(let qe=fe-1;qe>=0;qe--){let{comment:rt,precedingNode:Ge}=ye[qe];if(Ge!==se||!ee(ie.slice(ge(rt),ue)))break;ue=Ue(rt)}return B(ie,ue,{backwards:!0})}function F(ie,ce,ye,fe){let{comment:_e,followingNode:se}=ye[fe],{locStart:Ue,locEnd:ge}=ce,ue=ge(_e);if(se)for(let qe=fe+1;qe<ye.length;qe++){let{comment:rt,followingNode:Ge}=ye[qe];if(Ge!==se||!ee(ie.slice(ue,Ue(rt))))break;ue=ge(rt)}return B(ie,ue)}function J(ie,ce,ye){let fe=ie.length;if(fe===0)return;let{precedingNode:_e,followingNode:se,enclosingNode:Ue}=ie[0],ge=ye.printer.getGapRegex&&ye.printer.getGapRegex(Ue)||/^[\s(]*$/,ue=ye.locStart(se),qe;for(qe=fe;qe>0;--qe){let{comment:rt,precedingNode:Ge,followingNode:mt}=ie[qe-1];p.strictEqual(Ge,_e),p.strictEqual(mt,se);let ve=ce.slice(ye.locEnd(rt),ue);if(ge.test(ve))ue=ye.locStart(rt);else break}for(let[rt,{comment:Ge}]of ie.entries())rt<qe?Q(_e,Ge):S(se,Ge);for(let rt of[_e,se])rt.comments&&rt.comments.length>1&&rt.comments.sort((Ge,mt)=>ye.locStart(Ge)-ye.locStart(mt));ie.length=0}function w(ie,ce){let ye=ie.getValue();return ye.printed=!0,ce.printer.printComment(ie,ce)}function R(ie,ce,ye){let fe=ye.locStart(ce)-1;for(let _e=1;_e<ie.length;++_e)if(fe<ye.locStart(ie[_e]))return _e-1;return 0}function y(ie,ce){let ye=ie.getValue(),fe=[w(ie,ce)],{printer:_e,originalText:se,locStart:Ue,locEnd:ge}=ce;if(_e.isBlockComment&&_e.isBlockComment(ye)){let qe=B(se,ge(ye))?B(se,Ue(ye),{backwards:!0})?D:b:" ";fe.push(qe)}else fe.push(D);let ue=L(se,P(se,ge(ye)));return ue!==!1&&B(se,ue)&&fe.push(D),fe}function k(ie,ce){let ye=ie.getValue(),fe=w(ie,ce),{printer:_e,originalText:se,locStart:Ue}=ce,ge=_e.isBlockComment&&_e.isBlockComment(ye);if(B(se,Ue(ye),{backwards:!0})){let qe=C(se,ye,Ue);return h([D,qe?D:"",fe])}let ue=[" ",fe];return ge||(ue=[h(ue),f]),ue}function I(ie,ce,ye,fe){let _e=[],se=ie.getValue();return!se||!se.comments||(ie.each(()=>{let Ue=ie.getValue();!Ue.leading&&!Ue.trailing&&(!fe||fe(Ue))&&_e.push(w(ie,ce))},"comments"),_e.length===0)?"":ye?E(D,_e):d([D,E(D,_e)])}function q(ie,ce,ye){let fe=ie.getValue();if(!fe)return{};let _e=fe.comments||[];ye&&(_e=_e.filter(ue=>!ye.has(ue)));let se=fe===ce.cursorNode;if(_e.length===0){let ue=se?x:"";return{leading:ue,trailing:ue}}let Ue=[],ge=[];return ie.each(()=>{let ue=ie.getValue();if(ye&&ye.has(ue))return;let{leading:qe,trailing:rt}=ue;qe?Ue.push(y(ie,ce)):rt&&ge.push(k(ie,ce))},"comments"),se&&(Ue.unshift(x),ge.push(x)),{leading:Ue,trailing:ge}}function U(ie,ce,ye,fe){let{leading:_e,trailing:se}=q(ie,ye,fe);return!_e&&!se?ce:[_e,ce,se]}function z(ie){if(ie)for(let ce of ie){if(!ce.printed)throw new Error('Comment "'+ce.value.trim()+'" was not printed. Please report this error!');delete ce.printed}}A.exports={attach:re,printComments:U,printCommentsSeparately:q,printDanglingComments:I,getSortedChildNodes:$,ensureAllCommentsPrinted:z}}}),i2=Te({"src/common/ast-path.js"(m,A){Re();var p=Vr();function b(d,h){let E=D(d.stack,h);return E===-1?null:d.stack[E]}function D(d,h){for(let E=d.length-1;E>=0;E-=2){let x=d[E];if(x&&!Array.isArray(x)&&--h<0)return E}return-1}var f=class{constructor(d){this.stack=[d]}getName(){let{stack:d}=this,{length:h}=d;return h>1?d[h-2]:null}getValue(){return p(this.stack)}getNode(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return b(this,d)}getParentNode(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return b(this,d+1)}call(d){let{stack:h}=this,{length:E}=h,x=p(h);for(var B=arguments.length,L=new Array(B>1?B-1:0),P=1;P<B;P++)L[P-1]=arguments[P];for(let S of L)x=x[S],h.push(S,x);let C=d(this);return h.length=E,C}callParent(d){let h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,E=D(this.stack,h+1),x=this.stack.splice(E+1),B=d(this);return this.stack.push(...x),B}each(d){let{stack:h}=this,{length:E}=h,x=p(h);for(var B=arguments.length,L=new Array(B>1?B-1:0),P=1;P<B;P++)L[P-1]=arguments[P];for(let C of L)x=x[C],h.push(C,x);for(let C=0;C<x.length;++C)h.push(C,x[C]),d(this,C,x),h.length-=2;h.length=E}map(d){let h=[];for(var E=arguments.length,x=new Array(E>1?E-1:0),B=1;B<E;B++)x[B-1]=arguments[B];return this.each((L,P,C)=>{h[P]=d(L,P,C)},...x),h}try(d){let{stack:h}=this,E=[...h];try{return d()}finally{h.length=0,h.push(...E)}}match(){let d=this.stack.length-1,h=null,E=this.stack[d--];for(var x=arguments.length,B=new Array(x),L=0;L<x;L++)B[L]=arguments[L];for(let P of B){if(E===void 0)return!1;let C=null;if(typeof h=="number"&&(C=h,h=this.stack[d--],E=this.stack[d--]),P&&!P(E,h,C))return!1;h=this.stack[d--],E=this.stack[d--]}return!0}findAncestor(d){let h=this.stack.length-1,E=null,x=this.stack[h--];for(;x;){let B=null;if(typeof E=="number"&&(B=E,E=this.stack[h--],x=this.stack[h--]),E!==null&&d(x,E,B))return x;E=this.stack[h--],x=this.stack[h--]}}};A.exports=f}}),s2=Te({"src/main/multiparser.js"(m,A){Re();var{utils:{stripTrailingHardline:p}}=wn(),{normalize:b}=B0(),D=Ir();function f(h,E,x,B){if(x.printer.embed&&x.embeddedLanguageFormatting==="auto")return x.printer.embed(h,E,(L,P,C)=>d(L,P,x,B,C),x)}function d(h,E,x,B){let{stripTrailingHardline:L=!1}=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{},P=b(Object.assign(Object.assign(Object.assign({},x),E),{},{parentParser:x.parser,originalText:h}),{passThrough:!0}),C=tp().parse(h,P),{ast:S}=C;h=C.text;let j=S.comments;delete S.comments,D.attach(j,S,h,P),P[Symbol.for("comments")]=j||[],P[Symbol.for("tokens")]=S.tokens||[];let Q=B(S,P);return D.ensureAllCommentsPrinted(j),L?typeof Q=="string"?Q.replace(/(?:\r?\n)*$/,""):p(Q):Q}A.exports={printSubtree:f}}}),a2=Te({"src/main/ast-to-doc.js"(m,A){Re();var p=i2(),{builders:{hardline:b,addAlignmentToDoc:D},utils:{propagateBreaks:f}}=wn(),{printComments:d}=Ir(),h=s2();function E(L,P){let C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,{printer:S}=P;S.preprocess&&(L=S.preprocess(L,P));let j=new Map,Q=new p(L),ne=$();return C>0&&(ne=D([b,ne],C,P.tabWidth)),f(ne),ne;function $(G,re){return G===void 0||G===Q?X(re):Array.isArray(G)?Q.call(()=>X(re),...G):Q.call(()=>X(re),G)}function X(G){let re=Q.getValue(),ee=re&&typeof re=="object"&&G===void 0;if(ee&&j.has(re))return j.get(re);let be=B(Q,P,$,G);return ee&&j.set(re,be),be}}function x(L,P){let{originalText:C,[Symbol.for("comments")]:S,locStart:j,locEnd:Q}=P,ne=j(L),$=Q(L),X=new Set;for(let G of S)j(G)>=ne&&Q(G)<=$&&(G.printed=!0,X.add(G));return{doc:C.slice(ne,$),printedComments:X}}function B(L,P,C,S){let j=L.getValue(),{printer:Q}=P,ne,$;if(Q.hasPrettierIgnore&&Q.hasPrettierIgnore(L))({doc:ne,printedComments:$}=x(j,P));else{if(j)try{ne=h.printSubtree(L,C,P,E)}catch(X){if(globalThis.PRETTIER_DEBUG)throw X}ne||(ne=Q.print(L,P,C,S))}return(!Q.willPrintOwnComments||!Q.willPrintOwnComments(L,P))&&(ne=d(L,ne,P,$)),ne}A.exports=E}}),o2=Te({"src/main/range-util.js"(m,A){Re();var p=Vo(),b=Ir(),D=S=>{let{parser:j}=S;return j==="json"||j==="json5"||j==="json-stringify"};function f(S,j){let Q=[S.node,...S.parentNodes],ne=new Set([j.node,...j.parentNodes]);return Q.find($=>B.has($.type)&&ne.has($))}function d(S){let j=S.length-1;for(;;){let Q=S[j];if(Q&&(Q.type==="Program"||Q.type==="File"))j--;else break}return S.slice(0,j+1)}function h(S,j,Q){let{locStart:ne,locEnd:$}=Q,X=S.node,G=j.node;if(X===G)return{startNode:X,endNode:G};let re=ne(S.node);for(let be of d(j.parentNodes))if(ne(be)>=re)G=be;else break;let ee=$(j.node);for(let be of d(S.parentNodes)){if($(be)<=ee)X=be;else break;if(X===G)break}return{startNode:X,endNode:G}}function E(S,j,Q,ne){let $=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],X=arguments.length>5?arguments[5]:void 0,{locStart:G,locEnd:re}=Q,ee=G(S),be=re(S);if(!(j>be||j<ee||X==="rangeEnd"&&j===ee||X==="rangeStart"&&j===be)){for(let F of b.getSortedChildNodes(S,Q)){let J=E(F,j,Q,ne,[S,...$],X);if(J)return J}if(!ne||ne(S,$[0]))return{node:S,parentNodes:$}}}function x(S,j){return j!=="DeclareExportDeclaration"&&S!=="TypeParameterDeclaration"&&(S==="Directive"||S==="TypeAlias"||S==="TSExportAssignment"||S.startsWith("Declare")||S.startsWith("TSDeclare")||S.endsWith("Statement")||S.endsWith("Declaration"))}var B=new Set(["ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral","UnaryExpression","TemplateLiteral"]),L=new Set(["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"]);function P(S,j,Q){if(!j)return!1;switch(S.parser){case"flow":case"babel":case"babel-flow":case"babel-ts":case"typescript":case"acorn":case"espree":case"meriyah":case"__babel_estree":return x(j.type,Q&&Q.type);case"json":case"json5":case"json-stringify":return B.has(j.type);case"graphql":return L.has(j.kind);case"vue":return j.tag!=="root"}return!1}function C(S,j,Q){let{rangeStart:ne,rangeEnd:$,locStart:X,locEnd:G}=j;p.ok($>ne);let re=S.slice(ne,$).search(/\S/),ee=re===-1;if(!ee)for(ne+=re;$>ne&&!/\S/.test(S[$-1]);--$);let be=E(Q,ne,j,(R,y)=>P(j,R,y),[],"rangeStart"),F=ee?be:E(Q,$,j,R=>P(j,R),[],"rangeEnd");if(!be||!F)return{rangeStart:0,rangeEnd:0};let J,w;if(D(j)){let R=f(be,F);J=R,w=R}else({startNode:J,endNode:w}=h(be,F,j));return{rangeStart:Math.min(X(J),X(w)),rangeEnd:Math.max(G(J),G(w))}}A.exports={calculateRange:C,findNodeAtOffset:E}}}),u2=Te({"src/main/core.js"(m,A){Re();var{diffArrays:p}=Bs(),{printer:{printDocToString:b},debug:{printDocToDebug:D}}=wn(),{getAlignmentSize:f}=De(),{guessEndOfLine:d,convertEndOfLineToChars:h,countEndOfLineChars:E,normalizeEndOfLine:x}=Ki(),B=B0().normalize,L=r2(),P=Ir(),C=tp(),S=a2(),j=o2(),Q="\uFEFF",ne=Symbol("cursor");function $(w,R,y){let k=R.comments;return k&&(delete R.comments,P.attach(k,R,w,y)),y[Symbol.for("comments")]=k||[],y[Symbol.for("tokens")]=R.tokens||[],y.originalText=w,k}function X(w,R){let y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(!w||w.trim().length===0)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:k,text:I}=C.parse(w,R);if(R.cursorOffset>=0){let ie=j.findNodeAtOffset(k,R.cursorOffset,R);ie&&ie.node&&(R.cursorNode=ie.node)}let q=$(I,k,R),U=S(k,R,y),z=b(U,R);if(P.ensureAllCommentsPrinted(q),y>0){let ie=z.formatted.trim();z.cursorNodeStart!==void 0&&(z.cursorNodeStart-=z.formatted.indexOf(ie)),z.formatted=ie+h(R.endOfLine)}if(R.cursorOffset>=0){let ie,ce,ye,fe,_e;if(R.cursorNode&&z.cursorNodeText?(ie=R.locStart(R.cursorNode),ce=I.slice(ie,R.locEnd(R.cursorNode)),ye=R.cursorOffset-ie,fe=z.cursorNodeStart,_e=z.cursorNodeText):(ie=0,ce=I,ye=R.cursorOffset,fe=0,_e=z.formatted),ce===_e)return{formatted:z.formatted,cursorOffset:fe+ye,comments:q};let se=[...ce];se.splice(ye,0,ne);let Ue=[..._e],ge=p(se,Ue),ue=fe;for(let qe of ge)if(qe.removed){if(qe.value.includes(ne))break}else ue+=qe.count;return{formatted:z.formatted,cursorOffset:ue,comments:q}}return{formatted:z.formatted,cursorOffset:-1,comments:q}}function G(w,R){let{ast:y,text:k}=C.parse(w,R),{rangeStart:I,rangeEnd:q}=j.calculateRange(k,R,y),U=k.slice(I,q),z=Math.min(I,k.lastIndexOf(`
185
- `,I)+1),ie=k.slice(z,I).match(/^\s*/)[0],ce=f(ie,R.tabWidth),ye=X(U,Object.assign(Object.assign({},R),{},{rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:R.cursorOffset>I&&R.cursorOffset<=q?R.cursorOffset-I:-1,endOfLine:"lf"}),ce),fe=ye.formatted.trimEnd(),{cursorOffset:_e}=R;_e>q?_e+=fe.length-U.length:ye.cursorOffset>=0&&(_e=ye.cursorOffset+I);let se=k.slice(0,I)+fe+k.slice(q);if(R.endOfLine!=="lf"){let Ue=h(R.endOfLine);_e>=0&&Ue===`\r
186
- `&&(_e+=E(se.slice(0,_e),`
187
- `)),se=se.replace(/\n/g,Ue)}return{formatted:se,cursorOffset:_e,comments:ye.comments}}function re(w,R,y){return typeof R!="number"||Number.isNaN(R)||R<0||R>w.length?y:R}function ee(w,R){let{cursorOffset:y,rangeStart:k,rangeEnd:I}=R;return y=re(w,y,-1),k=re(w,k,0),I=re(w,I,w.length),Object.assign(Object.assign({},R),{},{cursorOffset:y,rangeStart:k,rangeEnd:I})}function be(w,R){let{cursorOffset:y,rangeStart:k,rangeEnd:I,endOfLine:q}=ee(w,R),U=w.charAt(0)===Q;if(U&&(w=w.slice(1),y--,k--,I--),q==="auto"&&(q=d(w)),w.includes("\r")){let z=ie=>E(w.slice(0,Math.max(ie,0)),`\r
188
- `);y-=z(y),k-=z(k),I-=z(I),w=x(w)}return{hasBOM:U,text:w,options:ee(w,Object.assign(Object.assign({},R),{},{cursorOffset:y,rangeStart:k,rangeEnd:I,endOfLine:q}))}}function F(w,R){let y=C.resolveParser(R);return!y.hasPragma||y.hasPragma(w)}function J(w,R){let{hasBOM:y,text:k,options:I}=be(w,B(R));if(I.rangeStart>=I.rangeEnd&&k!==""||I.requirePragma&&!F(k,I))return{formatted:w,cursorOffset:R.cursorOffset,comments:[]};let q;return I.rangeStart>0||I.rangeEnd<k.length?q=G(k,I):(!I.requirePragma&&I.insertPragma&&I.printer.insertPragma&&!F(k,I)&&(k=I.printer.insertPragma(k)),q=X(k,I)),y&&(q.formatted=Q+q.formatted,q.cursorOffset>=0&&q.cursorOffset++),q}A.exports={formatWithCursor:J,parse(w,R,y){let{text:k,options:I}=be(w,B(R)),q=C.parse(k,I);return y&&(q.ast=L(q.ast,I)),q},formatAST(w,R){R=B(R);let y=S(w,R);return b(y,R)},formatDoc(w,R){return J(D(w),Object.assign(Object.assign({},R),{},{parser:"__js_expression"})).formatted},printToDoc(w,R){R=B(R);let{ast:y,text:k}=C.parse(w,R);return $(k,y,R),S(y,R)},printDocToString(w,R){return b(w,B(R))}}}}),l2=Te({"src/common/util-shared.js"(m,A){Re();var{getMaxContinuousCount:p,getStringWidth:b,getAlignmentSize:D,getIndentSize:f,skip:d,skipWhitespace:h,skipSpaces:E,skipNewline:x,skipToLineEnd:B,skipEverythingButNewLine:L,skipInlineComment:P,skipTrailingComment:C,hasNewline:S,hasNewlineInRange:j,hasSpaces:Q,isNextLineEmpty:ne,isNextLineEmptyAfterIndex:$,isPreviousLineEmpty:X,getNextNonSpaceNonCommentCharacterIndex:G,makeString:re,addLeadingComment:ee,addDanglingComment:be,addTrailingComment:F}=De();A.exports={getMaxContinuousCount:p,getStringWidth:b,getAlignmentSize:D,getIndentSize:f,skip:d,skipWhitespace:h,skipSpaces:E,skipNewline:x,skipToLineEnd:B,skipEverythingButNewLine:L,skipInlineComment:P,skipTrailingComment:C,hasNewline:S,hasNewlineInRange:j,hasSpaces:Q,isNextLineEmpty:ne,isNextLineEmptyAfterIndex:$,isPreviousLineEmpty:X,getNextNonSpaceNonCommentCharacterIndex:G,makeString:re,addLeadingComment:ee,addDanglingComment:be,addTrailingComment:F}}}),sa=Te({"src/utils/create-language.js"(m,A){Re(),A.exports=function(p,b){let{languageId:D}=p,f=wt(p,st);return Object.assign(Object.assign({linguistLanguageId:D},f),b(p))}}}),c2=Te({"node_modules/esutils/lib/ast.js"(m,A){Re(),function(){function p(E){if(E==null)return!1;switch(E.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1}function b(E){if(E==null)return!1;switch(E.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1}function D(E){if(E==null)return!1;switch(E.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function f(E){return D(E)||E!=null&&E.type==="FunctionDeclaration"}function d(E){switch(E.type){case"IfStatement":return E.alternate!=null?E.alternate:E.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return E.body}return null}function h(E){var x;if(E.type!=="IfStatement"||E.alternate==null)return!1;x=E.consequent;do{if(x.type==="IfStatement"&&x.alternate==null)return!0;x=d(x)}while(x);return!1}A.exports={isExpression:p,isStatement:D,isIterationStatement:b,isSourceElement:f,isProblematicIfStatement:h,trailingStatement:d}}()}}),M0=Te({"node_modules/esutils/lib/code.js"(m,A){Re(),function(){var p,b,D,f,d,h;b={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},p={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};function E($){return 48<=$&&$<=57}function x($){return 48<=$&&$<=57||97<=$&&$<=102||65<=$&&$<=70}function B($){return $>=48&&$<=55}D=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function L($){return $===32||$===9||$===11||$===12||$===160||$>=5760&&D.indexOf($)>=0}function P($){return $===10||$===13||$===8232||$===8233}function C($){if($<=65535)return String.fromCharCode($);var X=String.fromCharCode(Math.floor(($-65536)/1024)+55296),G=String.fromCharCode(($-65536)%1024+56320);return X+G}for(f=new Array(128),h=0;h<128;++h)f[h]=h>=97&&h<=122||h>=65&&h<=90||h===36||h===95;for(d=new Array(128),h=0;h<128;++h)d[h]=h>=97&&h<=122||h>=65&&h<=90||h>=48&&h<=57||h===36||h===95;function S($){return $<128?f[$]:b.NonAsciiIdentifierStart.test(C($))}function j($){return $<128?d[$]:b.NonAsciiIdentifierPart.test(C($))}function Q($){return $<128?f[$]:p.NonAsciiIdentifierStart.test(C($))}function ne($){return $<128?d[$]:p.NonAsciiIdentifierPart.test(C($))}A.exports={isDecimalDigit:E,isHexDigit:x,isOctalDigit:B,isWhiteSpace:L,isLineTerminator:P,isIdentifierStartES5:S,isIdentifierPartES5:j,isIdentifierStartES6:Q,isIdentifierPartES6:ne}}()}}),f2=Te({"node_modules/esutils/lib/keyword.js"(m,A){Re(),function(){var p=M0();function b(S){switch(S){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}function D(S,j){return!j&&S==="yield"?!1:f(S,j)}function f(S,j){if(j&&b(S))return!0;switch(S.length){case 2:return S==="if"||S==="in"||S==="do";case 3:return S==="var"||S==="for"||S==="new"||S==="try";case 4:return S==="this"||S==="else"||S==="case"||S==="void"||S==="with"||S==="enum";case 5:return S==="while"||S==="break"||S==="catch"||S==="throw"||S==="const"||S==="yield"||S==="class"||S==="super";case 6:return S==="return"||S==="typeof"||S==="delete"||S==="switch"||S==="export"||S==="import";case 7:return S==="default"||S==="finally"||S==="extends";case 8:return S==="function"||S==="continue"||S==="debugger";case 10:return S==="instanceof";default:return!1}}function d(S,j){return S==="null"||S==="true"||S==="false"||D(S,j)}function h(S,j){return S==="null"||S==="true"||S==="false"||f(S,j)}function E(S){return S==="eval"||S==="arguments"}function x(S){var j,Q,ne;if(S.length===0||(ne=S.charCodeAt(0),!p.isIdentifierStartES5(ne)))return!1;for(j=1,Q=S.length;j<Q;++j)if(ne=S.charCodeAt(j),!p.isIdentifierPartES5(ne))return!1;return!0}function B(S,j){return(S-55296)*1024+(j-56320)+65536}function L(S){var j,Q,ne,$,X;if(S.length===0)return!1;for(X=p.isIdentifierStartES6,j=0,Q=S.length;j<Q;++j){if(ne=S.charCodeAt(j),55296<=ne&&ne<=56319){if(++j,j>=Q||($=S.charCodeAt(j),!(56320<=$&&$<=57343)))return!1;ne=B(ne,$)}if(!X(ne))return!1;X=p.isIdentifierPartES6}return!0}function P(S,j){return x(S)&&!d(S,j)}function C(S,j){return L(S)&&!h(S,j)}A.exports={isKeywordES5:D,isKeywordES6:f,isReservedWordES5:d,isReservedWordES6:h,isRestrictedWord:E,isIdentifierNameES5:x,isIdentifierNameES6:L,isIdentifierES5:P,isIdentifierES6:C}}()}}),p2=Te({"node_modules/esutils/lib/utils.js"(m){Re(),function(){m.ast=c2(),m.code=M0(),m.keyword=f2()}()}}),aa=Te({"src/language-js/utils/is-block-comment.js"(m,A){Re();var p=new Set(["Block","CommentBlock","MultiLine"]),b=D=>p.has(D==null?void 0:D.type);A.exports=b}}),d2=Te({"src/language-js/utils/is-node-matches.js"(m,A){Re();function p(D,f){let d=f.split(".");for(let h=d.length-1;h>=0;h--){let E=d[h];if(h===0)return D.type==="Identifier"&&D.name===E;if(D.type!=="MemberExpression"||D.optional||D.computed||D.property.type!=="Identifier"||D.property.name!==E)return!1;D=D.object}}function b(D,f){return f.some(d=>p(D,d))}A.exports=b}}),pr=Te({"src/language-js/utils/index.js"(m,A){Re();var p=p2().keyword.isIdentifierNameES5,{getLast:b,hasNewline:D,skipWhitespace:f,isNonEmptyArray:d,isNextLineEmptyAfterIndex:h,getStringWidth:E}=De(),{locStart:x,locEnd:B,hasSameLocStart:L}=ni(),P=aa(),C=d2(),S="(?:(?=.)\\s)",j=new RegExp(`^${S}*:`),Q=new RegExp(`^${S}*::`);function ne(oe){var At,mn;return((At=oe.extra)===null||At===void 0?void 0:At.parenthesized)&&P((mn=oe.trailingComments)===null||mn===void 0?void 0:mn[0])&&j.test(oe.trailingComments[0].value)}function $(oe){let At=oe==null?void 0:oe[0];return P(At)&&Q.test(At.value)}function X(oe,At){if(!oe||typeof oe!="object")return!1;if(Array.isArray(oe))return oe.some(Jn=>X(Jn,At));let mn=At(oe);return typeof mn=="boolean"?mn:Object.values(oe).some(Jn=>X(Jn,At))}function G(oe){return oe.type==="AssignmentExpression"||oe.type==="BinaryExpression"||oe.type==="LogicalExpression"||oe.type==="NGPipeExpression"||oe.type==="ConditionalExpression"||pt(oe)||dt(oe)||oe.type==="SequenceExpression"||oe.type==="TaggedTemplateExpression"||oe.type==="BindExpression"||oe.type==="UpdateExpression"&&!oe.prefix||Ci(oe)||oe.type==="TSNonNullExpression"}function re(oe){var At,mn,Jn,Yn,mi,Sr;return oe.expressions?oe.expressions[0]:(At=(mn=(Jn=(Yn=(mi=(Sr=oe.left)!==null&&Sr!==void 0?Sr:oe.test)!==null&&mi!==void 0?mi:oe.callee)!==null&&Yn!==void 0?Yn:oe.object)!==null&&Jn!==void 0?Jn:oe.tag)!==null&&mn!==void 0?mn:oe.argument)!==null&&At!==void 0?At:oe.expression}function ee(oe,At){if(At.expressions)return["expressions",0];if(At.left)return["left"];if(At.test)return["test"];if(At.object)return["object"];if(At.callee)return["callee"];if(At.tag)return["tag"];if(At.argument)return["argument"];if(At.expression)return["expression"];throw new Error("Unexpected node has no left side.")}function be(oe){return oe=new Set(oe),At=>oe.has(At==null?void 0:At.type)}var F=be(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose"]),J=be(["ExportDefaultDeclaration","ExportDefaultSpecifier","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration"]);function w(oe){let At=oe.getParentNode();return oe.getName()==="declaration"&&J(At)?At:null}var R=be(["BooleanLiteral","DirectiveLiteral","Literal","NullLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","RegExpLiteral","StringLiteral","TemplateLiteral","TSTypeLiteral","JSXText"]);function y(oe){return oe.type==="NumericLiteral"||oe.type==="Literal"&&typeof oe.value=="number"}function k(oe){return oe.type==="UnaryExpression"&&(oe.operator==="+"||oe.operator==="-")&&y(oe.argument)}function I(oe){return oe.type==="StringLiteral"||oe.type==="Literal"&&typeof oe.value=="string"}var q=be(["ObjectTypeAnnotation","TSTypeLiteral","TSMappedType"]),U=be(["FunctionExpression","ArrowFunctionExpression"]);function z(oe){return oe.type==="FunctionExpression"||oe.type==="ArrowFunctionExpression"&&oe.body.type==="BlockStatement"}function ie(oe){return pt(oe)&&oe.callee.type==="Identifier"&&["async","inject","fakeAsync","waitForAsync"].includes(oe.callee.name)}var ce=be(["JSXElement","JSXFragment"]);function ye(oe,At){if(oe.parentParser!=="markdown"&&oe.parentParser!=="mdx")return!1;let mn=At.getNode();if(!mn.expression||!ce(mn.expression))return!1;let Jn=At.getParentNode();return Jn.type==="Program"&&Jn.body.length===1}function fe(oe){return oe.kind==="get"||oe.kind==="set"}function _e(oe){return fe(oe)||L(oe,oe.value)}function se(oe){return(oe.type==="ObjectTypeProperty"||oe.type==="ObjectTypeInternalSlot")&&oe.value.type==="FunctionTypeAnnotation"&&!oe.static&&!_e(oe)}function Ue(oe){return(oe.type==="TypeAnnotation"||oe.type==="TSTypeAnnotation")&&oe.typeAnnotation.type==="FunctionTypeAnnotation"&&!oe.static&&!L(oe,oe.typeAnnotation)}var ge=be(["BinaryExpression","LogicalExpression","NGPipeExpression"]);function ue(oe){return dt(oe)||oe.type==="BindExpression"&&!!oe.object}var qe=new Set(["AnyTypeAnnotation","TSAnyKeyword","NullLiteralTypeAnnotation","TSNullKeyword","ThisTypeAnnotation","TSThisType","NumberTypeAnnotation","TSNumberKeyword","VoidTypeAnnotation","TSVoidKeyword","BooleanTypeAnnotation","TSBooleanKeyword","BigIntTypeAnnotation","TSBigIntKeyword","SymbolTypeAnnotation","TSSymbolKeyword","StringTypeAnnotation","TSStringKeyword","BooleanLiteralTypeAnnotation","StringLiteralTypeAnnotation","BigIntLiteralTypeAnnotation","NumberLiteralTypeAnnotation","TSLiteralType","TSTemplateLiteralType","EmptyTypeAnnotation","MixedTypeAnnotation","TSNeverKeyword","TSObjectKeyword","TSUndefinedKeyword","TSUnknownKeyword"]);function rt(oe){return oe?!!((oe.type==="GenericTypeAnnotation"||oe.type==="TSTypeReference")&&!oe.typeParameters||qe.has(oe.type)):!1}function Ge(oe){let At=/^(?:before|after)(?:Each|All)$/;return oe.callee.type==="Identifier"&&At.test(oe.callee.name)&&oe.arguments.length===1}var mt=["it","it.only","it.skip","describe","describe.only","describe.skip","test","test.only","test.skip","test.step","test.describe","test.describe.only","test.describe.parallel","test.describe.parallel.only","test.describe.serial","test.describe.serial.only","skip","xit","xdescribe","xtest","fit","fdescribe","ftest"];function ve(oe){return C(oe,mt)}function Ie(oe,At){if(oe.type!=="CallExpression")return!1;if(oe.arguments.length===1){if(ie(oe)&&At&&Ie(At))return U(oe.arguments[0]);if(Ge(oe))return ie(oe.arguments[0])}else if((oe.arguments.length===2||oe.arguments.length===3)&&(oe.arguments[0].type==="TemplateLiteral"||I(oe.arguments[0]))&&ve(oe.callee))return oe.arguments[2]&&!y(oe.arguments[2])?!1:(oe.arguments.length===2?U(oe.arguments[1]):z(oe.arguments[1])&&Mt(oe.arguments[1]).length<=1)||ie(oe.arguments[1]);return!1}var pt=be(["CallExpression","OptionalCallExpression"]),dt=be(["MemberExpression","OptionalMemberExpression"]);function Jt(oe){let At="expressions";oe.type==="TSTemplateLiteralType"&&(At="types");let mn=oe[At];return mn.length===0?!1:mn.every(Jn=>{if(xn(Jn))return!1;if(Jn.type==="Identifier"||Jn.type==="ThisExpression")return!0;if(dt(Jn)){let Yn=Jn;for(;dt(Yn);)if(Yn.property.type!=="Identifier"&&Yn.property.type!=="Literal"&&Yn.property.type!=="StringLiteral"&&Yn.property.type!=="NumericLiteral"||(Yn=Yn.object,xn(Yn)))return!1;return Yn.type==="Identifier"||Yn.type==="ThisExpression"}return!1})}function $e(oe,At){return oe==="+"||oe==="-"?oe+At:At}function we(oe,At){let mn=x(At),Jn=f(oe,B(At));return Jn!==!1&&oe.slice(mn,mn+2)==="/*"&&oe.slice(Jn,Jn+2)==="*/"}function Je(oe,At){return ce(At)?Ln(At):xn(At,an.Leading,mn=>D(oe,B(mn)))}function Ke(oe,At){return At.parser!=="json"&&I(oe.key)&&ut(oe.key).slice(1,-1)===oe.key.value&&(p(oe.key.value)&&!(At.parser==="babel-ts"&&oe.type==="ClassProperty"||At.parser==="typescript"&&oe.type==="PropertyDefinition")||Et(oe.key.value)&&String(Number(oe.key.value))===oe.key.value&&(At.parser==="babel"||At.parser==="acorn"||At.parser==="espree"||At.parser==="meriyah"||At.parser==="__babel_estree"))}function Et(oe){return/^(?:\d+|\d+\.\d+)$/.test(oe)}function _t(oe,At){let mn=/^[fx]?(?:describe|it|test)$/;return At.type==="TaggedTemplateExpression"&&At.quasi===oe&&At.tag.type==="MemberExpression"&&At.tag.property.type==="Identifier"&&At.tag.property.name==="each"&&(At.tag.object.type==="Identifier"&&mn.test(At.tag.object.name)||At.tag.object.type==="MemberExpression"&&At.tag.object.property.type==="Identifier"&&(At.tag.object.property.name==="only"||At.tag.object.property.name==="skip")&&At.tag.object.object.type==="Identifier"&&mn.test(At.tag.object.object.name))}function Bt(oe){return oe.quasis.some(At=>At.value.raw.includes(`
189
- `))}function cn(oe,At){return(oe.type==="TemplateLiteral"&&Bt(oe)||oe.type==="TaggedTemplateExpression"&&Bt(oe.quasi))&&!D(At,x(oe),{backwards:!0})}function Pn(oe){if(!xn(oe))return!1;let At=b(ct(oe,an.Dangling));return At&&!P(At)}function _n(oe){if(oe.length<=1)return!1;let At=0;for(let mn of oe)if(U(mn)){if(At+=1,At>1)return!0}else if(pt(mn)){for(let Jn of mn.arguments)if(U(Jn))return!0}return!1}function ln(oe){let At=oe.getValue(),mn=oe.getParentNode();return pt(At)&&pt(mn)&&mn.callee===At&&At.arguments.length>mn.arguments.length&&mn.arguments.length>0}function yn(oe,At){if(At>=2)return!1;let mn=Sr=>yn(Sr,At+1),Jn=oe.type==="Literal"&&"regex"in oe&&oe.regex.pattern||oe.type==="RegExpLiteral"&&oe.pattern;if(Jn&&E(Jn)>5)return!1;if(oe.type==="Literal"||oe.type==="BigIntLiteral"||oe.type==="DecimalLiteral"||oe.type==="BooleanLiteral"||oe.type==="NullLiteral"||oe.type==="NumericLiteral"||oe.type==="RegExpLiteral"||oe.type==="StringLiteral"||oe.type==="Identifier"||oe.type==="ThisExpression"||oe.type==="Super"||oe.type==="PrivateName"||oe.type==="PrivateIdentifier"||oe.type==="ArgumentPlaceholder"||oe.type==="Import")return!0;if(oe.type==="TemplateLiteral")return oe.quasis.every(Sr=>!Sr.value.raw.includes(`
190
- `))&&oe.expressions.every(mn);if(oe.type==="ObjectExpression")return oe.properties.every(Sr=>!Sr.computed&&(Sr.shorthand||Sr.value&&mn(Sr.value)));if(oe.type==="ArrayExpression")return oe.elements.every(Sr=>Sr===null||mn(Sr));if(Qr(oe))return(oe.type==="ImportExpression"||yn(oe.callee,At))&&Dr(oe).every(mn);if(dt(oe))return yn(oe.object,At)&&yn(oe.property,At);let Yn={"!":!0,"-":!0,"+":!0,"~":!0};if(oe.type==="UnaryExpression"&&Yn[oe.operator])return yn(oe.argument,At);let mi={"++":!0,"--":!0};return oe.type==="UpdateExpression"&&mi[oe.operator]?yn(oe.argument,At):oe.type==="TSNonNullExpression"?yn(oe.expression,At):!1}function ut(oe){var At,mn;return(At=(mn=oe.extra)===null||mn===void 0?void 0:mn.raw)!==null&&At!==void 0?At:oe.raw}function xe(oe){return oe}function ht(oe){return oe.filepath&&/\.tsx$/i.test(oe.filepath)}function Oe(oe){let At=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"es5";return oe.trailingComma==="es5"&&At==="es5"||oe.trailingComma==="all"&&(At==="all"||At==="es5")}function ft(oe,At){switch(oe.type){case"BinaryExpression":case"LogicalExpression":case"AssignmentExpression":case"NGPipeExpression":return ft(oe.left,At);case"MemberExpression":case"OptionalMemberExpression":return ft(oe.object,At);case"TaggedTemplateExpression":return oe.tag.type==="FunctionExpression"?!1:ft(oe.tag,At);case"CallExpression":case"OptionalCallExpression":return oe.callee.type==="FunctionExpression"?!1:ft(oe.callee,At);case"ConditionalExpression":return ft(oe.test,At);case"UpdateExpression":return!oe.prefix&&ft(oe.argument,At);case"BindExpression":return oe.object&&ft(oe.object,At);case"SequenceExpression":return ft(oe.expressions[0],At);case"TSSatisfiesExpression":case"TSAsExpression":case"TSNonNullExpression":return ft(oe.expression,At);default:return At(oe)}}var Zt={"==":!0,"!=":!0,"===":!0,"!==":!0},Ut={"*":!0,"/":!0,"%":!0},yt={">>":!0,">>>":!0,"<<":!0};function V(oe,At){return!(it(At)!==it(oe)||oe==="**"||Zt[oe]&&Zt[At]||At==="%"&&Ut[oe]||oe==="%"&&Ut[At]||At!==oe&&Ut[At]&&Ut[oe]||yt[oe]&&yt[At])}var Le=new Map([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].flatMap((oe,At)=>oe.map(mn=>[mn,At])));function it(oe){return Le.get(oe)}function kt(oe){return!!yt[oe]||oe==="|"||oe==="^"||oe==="&"}function $t(oe){var At;if(oe.rest)return!0;let mn=Mt(oe);return((At=b(mn))===null||At===void 0?void 0:At.type)==="RestElement"}var un=new WeakMap;function Mt(oe){if(un.has(oe))return un.get(oe);let At=[];return oe.this&&At.push(oe.this),Array.isArray(oe.parameters)?At.push(...oe.parameters):Array.isArray(oe.params)&&At.push(...oe.params),oe.rest&&At.push(oe.rest),un.set(oe,At),At}function Ar(oe,At){let mn=oe.getValue(),Jn=0,Yn=mi=>At(mi,Jn++);mn.this&&oe.call(Yn,"this"),Array.isArray(mn.parameters)?oe.each(Yn,"parameters"):Array.isArray(mn.params)&&oe.each(Yn,"params"),mn.rest&&oe.call(Yn,"rest")}var sn=new WeakMap;function Dr(oe){if(sn.has(oe))return sn.get(oe);let At=oe.arguments;return oe.type==="ImportExpression"&&(At=[oe.source],oe.attributes&&At.push(oe.attributes)),sn.set(oe,At),At}function nn(oe,At){let mn=oe.getValue();mn.type==="ImportExpression"?(oe.call(Jn=>At(Jn,0),"source"),mn.attributes&&oe.call(Jn=>At(Jn,1),"attributes")):oe.each(At,"arguments")}function An(oe){return oe.value.trim()==="prettier-ignore"&&!oe.unignore}function Ln(oe){return oe&&(oe.prettierIgnore||xn(oe,an.PrettierIgnore))}function ar(oe){let At=oe.getValue();return Ln(At)}var an={Leading:2,Trailing:4,Dangling:8,Block:16,Line:32,PrettierIgnore:64,First:128,Last:256},Tn=(oe,At)=>{if(typeof oe=="function"&&(At=oe,oe=0),oe||At)return(mn,Jn,Yn)=>!(oe&an.Leading&&!mn.leading||oe&an.Trailing&&!mn.trailing||oe&an.Dangling&&(mn.leading||mn.trailing)||oe&an.Block&&!P(mn)||oe&an.Line&&!F(mn)||oe&an.First&&Jn!==0||oe&an.Last&&Jn!==Yn.length-1||oe&an.PrettierIgnore&&!An(mn)||At&&!At(mn))};function xn(oe,At,mn){if(!d(oe==null?void 0:oe.comments))return!1;let Jn=Tn(At,mn);return Jn?oe.comments.some(Jn):!0}function ct(oe,At,mn){if(!Array.isArray(oe==null?void 0:oe.comments))return[];let Jn=Tn(At,mn);return Jn?oe.comments.filter(Jn):oe.comments}var Ai=(oe,At)=>{let{originalText:mn}=At;return h(mn,B(oe))};function Qr(oe){return pt(oe)||oe.type==="NewExpression"||oe.type==="ImportExpression"}function Rn(oe){return oe&&(oe.type==="ObjectProperty"||oe.type==="Property"&&!oe.method&&oe.kind==="init")}function Vn(oe){return!!oe.__isUsingHackPipeline}var fr=Symbol("ifWithoutBlockAndSameLineComment");function Ci(oe){return oe.type==="TSAsExpression"||oe.type==="TSSatisfiesExpression"}A.exports={getFunctionParameters:Mt,iterateFunctionParametersPath:Ar,getCallArguments:Dr,iterateCallArgumentsPath:nn,hasRestParameter:$t,getLeftSide:re,getLeftSidePathName:ee,getParentExportDeclaration:w,getTypeScriptMappedTypeModifier:$e,hasFlowAnnotationComment:$,hasFlowShorthandAnnotationComment:ne,hasLeadingOwnLineComment:Je,hasNakedLeftSide:G,hasNode:X,hasIgnoreComment:ar,hasNodeIgnoreComment:Ln,identity:xe,isBinaryish:ge,isCallLikeExpression:Qr,isEnabledHackPipeline:Vn,isLineComment:F,isPrettierIgnoreComment:An,isCallExpression:pt,isMemberExpression:dt,isExportDeclaration:J,isFlowAnnotationComment:we,isFunctionCompositionArgs:_n,isFunctionNotation:_e,isFunctionOrArrowExpression:U,isGetterOrSetter:fe,isJestEachTemplateLiteral:_t,isJsxNode:ce,isLiteral:R,isLongCurriedCallExpression:ln,isSimpleCallArgument:yn,isMemberish:ue,isNumericLiteral:y,isSignedNumericLiteral:k,isObjectProperty:Rn,isObjectType:q,isObjectTypePropertyAFunction:se,isSimpleType:rt,isSimpleNumber:Et,isSimpleTemplateLiteral:Jt,isStringLiteral:I,isStringPropSafeToUnquote:Ke,isTemplateOnItsOwnLine:cn,isTestCall:Ie,isTheOnlyJsxElementInMarkdown:ye,isTSXFile:ht,isTypeAnnotationAFunction:Ue,isNextLineEmpty:Ai,needsHardlineAfterDanglingComment:Pn,rawText:ut,shouldPrintComma:Oe,isBitwiseOperator:kt,shouldFlatten:V,startsWithNoLookaheadToken:ft,getPrecedence:it,hasComment:xn,getComments:ct,CommentCheckFlags:an,markerForIfWithoutBlockAndSameLineComment:fr,isTSTypeExpression:Ci}}}),to=Te({"src/language-js/print/template-literal.js"(m,A){Re();var p=Vr(),{getStringWidth:b,getIndentSize:D}=De(),{builders:{join:f,hardline:d,softline:h,group:E,indent:x,align:B,lineSuffixBoundary:L,addAlignmentToDoc:P},printer:{printDocToString:C},utils:{mapDoc:S}}=wn(),{isBinaryish:j,isJestEachTemplateLiteral:Q,isSimpleTemplateLiteral:ne,hasComment:$,isMemberExpression:X,isTSTypeExpression:G}=pr();function re(R,y,k){let I=R.getValue();if(I.type==="TemplateLiteral"&&Q(I,R.getParentNode())){let ce=ee(R,k,y);if(ce)return ce}let q="expressions";I.type==="TSTemplateLiteralType"&&(q="types");let U=[],z=R.map(y,q),ie=ne(I);return ie&&(z=z.map(ce=>C(ce,Object.assign(Object.assign({},k),{},{printWidth:Number.POSITIVE_INFINITY})).formatted)),U.push(L,"`"),R.each(ce=>{let ye=ce.getName();if(U.push(y()),ye<z.length){let{tabWidth:fe}=k,_e=ce.getValue(),se=D(_e.value.raw,fe),Ue=z[ye];if(!ie){let ue=I[q][ye];($(ue)||X(ue)||ue.type==="ConditionalExpression"||ue.type==="SequenceExpression"||G(ue)||j(ue))&&(Ue=[x([h,Ue]),h])}let ge=se===0&&_e.value.raw.endsWith(`
191
- `)?B(Number.NEGATIVE_INFINITY,Ue):P(Ue,se,fe);U.push(E(["${",ge,L,"}"]))}},"quasis"),U.push("`"),U}function ee(R,y,k){let I=R.getNode(),q=I.quasis[0].value.raw.trim().split(/\s*\|\s*/);if(q.length>1||q.some(U=>U.length>0)){y.__inJestEach=!0;let U=R.map(k,"expressions");y.__inJestEach=!1;let z=[],ie=U.map(se=>"${"+C(se,Object.assign(Object.assign({},y),{},{printWidth:Number.POSITIVE_INFINITY,endOfLine:"lf"})).formatted+"}"),ce=[{hasLineBreak:!1,cells:[]}];for(let se=1;se<I.quasis.length;se++){let Ue=p(ce),ge=ie[se-1];Ue.cells.push(ge),ge.includes(`
192
- `)&&(Ue.hasLineBreak=!0),I.quasis[se].value.raw.includes(`
193
- `)&&ce.push({hasLineBreak:!1,cells:[]})}let ye=Math.max(q.length,...ce.map(se=>se.cells.length)),fe=Array.from({length:ye}).fill(0),_e=[{cells:q},...ce.filter(se=>se.cells.length>0)];for(let{cells:se}of _e.filter(Ue=>!Ue.hasLineBreak))for(let[Ue,ge]of se.entries())fe[Ue]=Math.max(fe[Ue],b(ge));return z.push(L,"`",x([d,f(d,_e.map(se=>f(" | ",se.cells.map((Ue,ge)=>se.hasLineBreak?Ue:Ue+" ".repeat(fe[ge]-b(Ue))))))]),d,"`"),z}}function be(R,y){let k=R.getValue(),I=y();return $(k)&&(I=E([x([h,I]),h])),["${",I,L,"}"]}function F(R,y){return R.map(k=>be(k,y),"expressions")}function J(R,y){return S(R,k=>typeof k=="string"?y?k.replace(/(\\*)`/g,"$1$1\\`"):w(k):k)}function w(R){return R.replace(/([\\`]|\${)/g,"\\$1")}A.exports={printTemplateLiteral:re,printTemplateExpressions:F,escapeTemplateCharacters:J,uncookTemplateElementValue:w}}}),h2=Te({"src/language-js/embed/markdown.js"(m,A){Re();var{builders:{indent:p,softline:b,literalline:D,dedentToRoot:f}}=wn(),{escapeTemplateCharacters:d}=to();function h(x,B,L){let P=x.getValue().quasis[0].value.raw.replace(/((?:\\\\)*)\\`/g,(Q,ne)=>"\\".repeat(ne.length/2)+"`"),C=E(P),S=C!=="";S&&(P=P.replace(new RegExp(`^${C}`,"gm"),""));let j=d(L(P,{parser:"markdown",__inJsTemplate:!0},{stripTrailingHardline:!0}),!0);return["`",S?p([b,j]):[D,f(j)],b,"`"]}function E(x){let B=x.match(/^([^\S\n]*)\S/m);return B===null?"":B[1]}A.exports=h}}),m2=Te({"src/language-js/embed/css.js"(m,A){Re();var{isNonEmptyArray:p}=De(),{builders:{indent:b,hardline:D,softline:f},utils:{mapDoc:d,replaceEndOfLine:h,cleanDoc:E}}=wn(),{printTemplateExpressions:x}=to();function B(C,S,j){let Q=C.getValue(),ne=Q.quasis.map(ee=>ee.value.raw),$=0,X=ne.reduce((ee,be,F)=>F===0?be:ee+"@prettier-placeholder-"+$+++"-id"+be,""),G=j(X,{parser:"scss"},{stripTrailingHardline:!0}),re=x(C,S);return L(G,Q,re)}function L(C,S,j){if(S.quasis.length===1&&!S.quasis[0].value.raw.trim())return"``";let Q=P(C,j);if(!Q)throw new Error("Couldn't insert all the expressions");return["`",b([D,Q]),f,"`"]}function P(C,S){if(!p(S))return C;let j=0,Q=d(E(C),ne=>typeof ne!="string"||!ne.includes("@prettier-placeholder")?ne:ne.split(/@prettier-placeholder-(\d+)-id/).map(($,X)=>X%2===0?h($):(j++,S[$])));return S.length===j?Q:null}A.exports=B}}),g2=Te({"src/language-js/embed/graphql.js"(m,A){Re();var{builders:{indent:p,join:b,hardline:D}}=wn(),{escapeTemplateCharacters:f,printTemplateExpressions:d}=to();function h(x,B,L){let P=x.getValue(),C=P.quasis.length;if(C===1&&P.quasis[0].value.raw.trim()==="")return"``";let S=d(x,B),j=[];for(let Q=0;Q<C;Q++){let ne=P.quasis[Q],$=Q===0,X=Q===C-1,G=ne.value.cooked,re=G.split(`
194
- `),ee=re.length,be=S[Q],F=ee>2&&re[0].trim()===""&&re[1].trim()==="",J=ee>2&&re[ee-1].trim()===""&&re[ee-2].trim()==="",w=re.every(y=>/^\s*(?:#[^\n\r]*)?$/.test(y));if(!X&&/#[^\n\r]*$/.test(re[ee-1]))return null;let R=null;w?R=E(re):R=L(G,{parser:"graphql"},{stripTrailingHardline:!0}),R?(R=f(R,!1),!$&&F&&j.push(""),j.push(R),!X&&J&&j.push("")):!$&&!X&&F&&j.push(""),be&&j.push(be)}return["`",p([D,b(D,j)]),D,"`"]}function E(x){let B=[],L=!1,P=x.map(C=>C.trim());for(let[C,S]of P.entries())S!==""&&(P[C-1]===""&&L?B.push([D,S]):B.push(S),L=!0);return B.length===0?null:b(D,B)}A.exports=h}}),y2=Te({"src/language-js/embed/html.js"(m,A){Re();var{builders:{indent:p,line:b,hardline:D,group:f},utils:{mapDoc:d}}=wn(),{printTemplateExpressions:h,uncookTemplateElementValue:E}=to(),x=0;function B(L,P,C,S,j){let{parser:Q}=j,ne=L.getValue(),$=x;x=x+1>>>0;let X=k=>`PRETTIER_HTML_PLACEHOLDER_${k}_${$}_IN_JS`,G=ne.quasis.map((k,I,q)=>I===q.length-1?k.value.cooked:k.value.cooked+X(I)).join(""),re=h(L,P);if(re.length===0&&G.trim().length===0)return"``";let ee=new RegExp(X("(\\d+)"),"g"),be=0,F=C(G,{parser:Q,__onHtmlRoot(k){be=k.children.length}},{stripTrailingHardline:!0}),J=d(F,k=>{if(typeof k!="string")return k;let I=[],q=k.split(ee);for(let U=0;U<q.length;U++){let z=q[U];if(U%2===0){z&&(z=E(z),S.__embeddedInHtml&&(z=z.replace(/<\/(script)\b/gi,"<\\/$1")),I.push(z));continue}let ie=Number(z);I.push(re[ie])}return I}),w=/^\s/.test(G)?" ":"",R=/\s$/.test(G)?" ":"",y=S.htmlWhitespaceSensitivity==="ignore"?D:w&&R?b:null;return f(y?["`",p([y,f(J)]),y,"`"]:["`",w,be>1?p(f(J)):f(J),R,"`"])}A.exports=B}}),D2=Te({"src/language-js/embed.js"(m,A){Re();var{hasComment:p,CommentCheckFlags:b,isObjectProperty:D}=pr(),f=h2(),d=m2(),h=g2(),E=y2();function x(F){if(P(F)||Q(F)||ne(F)||C(F))return"css";if(G(F))return"graphql";if(ee(F))return"html";if(S(F))return"angular";if(L(F))return"markdown"}function B(F,J,w,R){let y=F.getValue();if(y.type!=="TemplateLiteral"||be(y))return;let k=x(F);if(k){if(k==="markdown")return f(F,J,w);if(k==="css")return d(F,J,w);if(k==="graphql")return h(F,J,w);if(k==="html"||k==="angular")return E(F,J,w,R,{parser:k})}}function L(F){let J=F.getValue(),w=F.getParentNode();return w&&w.type==="TaggedTemplateExpression"&&J.quasis.length===1&&w.tag.type==="Identifier"&&(w.tag.name==="md"||w.tag.name==="markdown")}function P(F){let J=F.getValue(),w=F.getParentNode(),R=F.getParentNode(1);return R&&J.quasis&&w.type==="JSXExpressionContainer"&&R.type==="JSXElement"&&R.openingElement.name.name==="style"&&R.openingElement.attributes.some(y=>y.name.name==="jsx")||w&&w.type==="TaggedTemplateExpression"&&w.tag.type==="Identifier"&&w.tag.name==="css"||w&&w.type==="TaggedTemplateExpression"&&w.tag.type==="MemberExpression"&&w.tag.object.name==="css"&&(w.tag.property.name==="global"||w.tag.property.name==="resolve")}function C(F){return F.match(J=>J.type==="TemplateLiteral",(J,w)=>J.type==="ArrayExpression"&&w==="elements",(J,w)=>D(J)&&J.key.type==="Identifier"&&J.key.name==="styles"&&w==="value",...j)}function S(F){return F.match(J=>J.type==="TemplateLiteral",(J,w)=>D(J)&&J.key.type==="Identifier"&&J.key.name==="template"&&w==="value",...j)}var j=[(F,J)=>F.type==="ObjectExpression"&&J==="properties",(F,J)=>F.type==="CallExpression"&&F.callee.type==="Identifier"&&F.callee.name==="Component"&&J==="arguments",(F,J)=>F.type==="Decorator"&&J==="expression"];function Q(F){let J=F.getParentNode();if(!J||J.type!=="TaggedTemplateExpression")return!1;let w=J.tag.type==="ParenthesizedExpression"?J.tag.expression:J.tag;switch(w.type){case"MemberExpression":return $(w.object)||X(w);case"CallExpression":return $(w.callee)||w.callee.type==="MemberExpression"&&(w.callee.object.type==="MemberExpression"&&($(w.callee.object.object)||X(w.callee.object))||w.callee.object.type==="CallExpression"&&$(w.callee.object.callee));case"Identifier":return w.name==="css";default:return!1}}function ne(F){let J=F.getParentNode(),w=F.getParentNode(1);return w&&J.type==="JSXExpressionContainer"&&w.type==="JSXAttribute"&&w.name.type==="JSXIdentifier"&&w.name.name==="css"}function $(F){return F.type==="Identifier"&&F.name==="styled"}function X(F){return/^[A-Z]/.test(F.object.name)&&F.property.name==="extend"}function G(F){let J=F.getValue(),w=F.getParentNode();return re(J,"GraphQL")||w&&(w.type==="TaggedTemplateExpression"&&(w.tag.type==="MemberExpression"&&w.tag.object.name==="graphql"&&w.tag.property.name==="experimental"||w.tag.type==="Identifier"&&(w.tag.name==="gql"||w.tag.name==="graphql"))||w.type==="CallExpression"&&w.callee.type==="Identifier"&&w.callee.name==="graphql")}function re(F,J){return p(F,b.Block|b.Leading,w=>{let{value:R}=w;return R===` ${J} `})}function ee(F){return re(F.getValue(),"HTML")||F.match(J=>J.type==="TemplateLiteral",(J,w)=>J.type==="TaggedTemplateExpression"&&J.tag.type==="Identifier"&&J.tag.name==="html"&&w==="quasi")}function be(F){let{quasis:J}=F;return J.some(w=>{let{value:{cooked:R}}=w;return R===null})}A.exports=B}}),b2=Te({"src/language-js/clean.js"(m,A){Re();var p=aa(),b=new Set(["range","raw","comments","leadingComments","trailingComments","innerComments","extra","start","end","loc","flags","errors","tokens"]),D=d=>{for(let h of d.quasis)delete h.value};function f(d,h,E){if(d.type==="Program"&&delete h.sourceType,(d.type==="BigIntLiteral"||d.type==="BigIntLiteralTypeAnnotation")&&h.value&&(h.value=h.value.toLowerCase()),(d.type==="BigIntLiteral"||d.type==="Literal")&&h.bigint&&(h.bigint=h.bigint.toLowerCase()),d.type==="DecimalLiteral"&&(h.value=Number(h.value)),d.type==="Literal"&&h.decimal&&(h.decimal=Number(h.decimal)),d.type==="EmptyStatement"||d.type==="JSXText"||d.type==="JSXExpressionContainer"&&(d.expression.type==="Literal"||d.expression.type==="StringLiteral")&&d.expression.value===" ")return null;if((d.type==="Property"||d.type==="ObjectProperty"||d.type==="MethodDefinition"||d.type==="ClassProperty"||d.type==="ClassMethod"||d.type==="PropertyDefinition"||d.type==="TSDeclareMethod"||d.type==="TSPropertySignature"||d.type==="ObjectTypeProperty")&&typeof d.key=="object"&&d.key&&(d.key.type==="Literal"||d.key.type==="NumericLiteral"||d.key.type==="StringLiteral"||d.key.type==="Identifier")&&delete h.key,d.type==="JSXElement"&&d.openingElement.name.name==="style"&&d.openingElement.attributes.some(L=>L.name.name==="jsx"))for(let{type:L,expression:P}of h.children)L==="JSXExpressionContainer"&&P.type==="TemplateLiteral"&&D(P);d.type==="JSXAttribute"&&d.name.name==="css"&&d.value.type==="JSXExpressionContainer"&&d.value.expression.type==="TemplateLiteral"&&D(h.value.expression),d.type==="JSXAttribute"&&d.value&&d.value.type==="Literal"&&/["']|&quot;|&apos;/.test(d.value.value)&&(h.value.value=h.value.value.replace(/["']|&quot;|&apos;/g,'"'));let x=d.expression||d.callee;if(d.type==="Decorator"&&x.type==="CallExpression"&&x.callee.name==="Component"&&x.arguments.length===1){let L=d.expression.arguments[0].properties;for(let[P,C]of h.expression.arguments[0].properties.entries())switch(L[P].key.name){case"styles":C.value.type==="ArrayExpression"&&D(C.value.elements[0]);break;case"template":C.value.type==="TemplateLiteral"&&D(C.value);break}}if(d.type==="TaggedTemplateExpression"&&(d.tag.type==="MemberExpression"||d.tag.type==="Identifier"&&(d.tag.name==="gql"||d.tag.name==="graphql"||d.tag.name==="css"||d.tag.name==="md"||d.tag.name==="markdown"||d.tag.name==="html")||d.tag.type==="CallExpression")&&D(h.quasi),d.type==="TemplateLiteral"){var B;(!((B=d.leadingComments)===null||B===void 0)&&B.some(L=>p(L)&&["GraphQL","HTML"].some(P=>L.value===` ${P} `))||E.type==="CallExpression"&&E.callee.name==="graphql"||!d.leadingComments)&&D(h)}if(d.type==="InterpreterDirective"&&(h.value=h.value.trimEnd()),(d.type==="TSIntersectionType"||d.type==="TSUnionType")&&d.types.length===1)return h.types[0]}f.ignoredProperties=b,A.exports=f}}),I0={};Sn(I0,{EOL:()=>ip,arch:()=>v2,cpus:()=>U0,default:()=>H0,endianness:()=>O0,freemem:()=>V0,getNetworkInterfaces:()=>Y0,hostname:()=>j0,loadavg:()=>R0,networkInterfaces:()=>J0,platform:()=>E2,release:()=>G0,tmpDir:()=>np,tmpdir:()=>rp,totalmem:()=>q0,type:()=>W0,uptime:()=>$0});function O0(){if(typeof bl>"u"){var m=new ArrayBuffer(2),A=new Uint8Array(m),p=new Uint16Array(m);if(A[0]=1,A[1]=2,p[0]===258)bl="BE";else if(p[0]===513)bl="LE";else throw new Error("unable to figure out endianess")}return bl}function j0(){return typeof globalThis.location<"u"?globalThis.location.hostname:""}function R0(){return[]}function $0(){return 0}function V0(){return Number.MAX_VALUE}function q0(){return Number.MAX_VALUE}function U0(){return[]}function W0(){return"Browser"}function G0(){return typeof globalThis.navigator<"u"?globalThis.navigator.appVersion:""}function J0(){}function Y0(){}function v2(){return"javascript"}function E2(){return"browser"}function np(){return"/tmp"}var bl,rp,ip,H0,A2=pn({"node-modules-polyfills:os"(){Re(),rp=np,ip=`
195
- `,H0={EOL:ip,tmpdir:rp,tmpDir:np,networkInterfaces:J0,getNetworkInterfaces:Y0,release:G0,type:W0,cpus:U0,totalmem:q0,freemem:V0,uptime:$0,loadavg:R0,hostname:j0,endianness:O0}}}),C2=Te({"node-modules-polyfills-commonjs:os"(m,A){Re();var p=(A2(),Hn(I0));if(p&&p.default){A.exports=p.default;for(let b in p)A.exports[b]=p[b]}else p&&(A.exports=p)}}),x2=Te({"node_modules/detect-newline/index.js"(m,A){Re();var p=b=>{if(typeof b!="string")throw new TypeError("Expected a string");let D=b.match(/(?:\r?\n)/g)||[];if(D.length===0)return;let f=D.filter(h=>h===`\r
196
- `).length,d=D.length-f;return f>d?`\r
197
- `:`
198
- `};A.exports=p,A.exports.graceful=b=>typeof b=="string"&&p(b)||`
199
- `}}),S2=Te({"node_modules/jest-docblock/build/index.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0}),m.extract=C,m.parse=j,m.parseWithComments=Q,m.print=ne,m.strip=S;function A(){let X=C2();return A=function(){return X},X}function p(){let X=b(x2());return p=function(){return X},X}function b(X){return X&&X.__esModule?X:{default:X}}var D=/\*\/$/,f=/^\/\*\*?/,d=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,h=/(^|\s+)\/\/([^\r\n]*)/g,E=/^(\r?\n)+/,x=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,B=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,L=/(\r?\n|^) *\* ?/g,P=[];function C(X){let G=X.match(d);return G?G[0].trimLeft():""}function S(X){let G=X.match(d);return G&&G[0]?X.substring(G[0].length):X}function j(X){return Q(X).pragmas}function Q(X){let G=(0,p().default)(X)||A().EOL;X=X.replace(f,"").replace(D,"").replace(L,"$1");let re="";for(;re!==X;)re=X,X=X.replace(x,`${G}$1 $2${G}`);X=X.replace(E,"").trimRight();let ee=Object.create(null),be=X.replace(B,"").replace(E,"").trimRight(),F;for(;F=B.exec(X);){let J=F[2].replace(h,"");typeof ee[F[1]]=="string"||Array.isArray(ee[F[1]])?ee[F[1]]=P.concat(ee[F[1]],J):ee[F[1]]=J}return{comments:be,pragmas:ee}}function ne(X){let{comments:G="",pragmas:re={}}=X,ee=(0,p().default)(G)||A().EOL,be="/**",F=" *",J=" */",w=Object.keys(re),R=w.map(k=>$(k,re[k])).reduce((k,I)=>k.concat(I),[]).map(k=>`${F} ${k}${ee}`).join("");if(!G){if(w.length===0)return"";if(w.length===1&&!Array.isArray(re[w[0]])){let k=re[w[0]];return`${be} ${$(w[0],k)[0]}${J}`}}let y=G.split(ee).map(k=>`${F} ${k}`).join(ee)+ee;return be+ee+(G?y:"")+(G&&w.length?F+ee:"")+R+J}function $(X,G){return P.concat(G).map(re=>`@${X} ${re}`.trim())}}}),w2=Te({"src/language-js/utils/get-shebang.js"(m,A){Re();function p(b){if(!b.startsWith("#!"))return"";let D=b.indexOf(`
200
- `);return D===-1?b:b.slice(0,D)}A.exports=p}}),z0=Te({"src/language-js/pragma.js"(m,A){Re();var{parseWithComments:p,strip:b,extract:D,print:f}=S2(),{normalizeEndOfLine:d}=Ki(),h=w2();function E(L){let P=h(L);P&&(L=L.slice(P.length+1));let C=D(L),{pragmas:S,comments:j}=p(C);return{shebang:P,text:L,pragmas:S,comments:j}}function x(L){let P=Object.keys(E(L).pragmas);return P.includes("prettier")||P.includes("format")}function B(L){let{shebang:P,text:C,pragmas:S,comments:j}=E(L),Q=b(C),ne=f({pragmas:Object.assign({format:""},S),comments:j.trimStart()});return(P?`${P}
201
- `:"")+d(ne)+(Q.startsWith(`
202
- `)?`
203
- `:`
204
-
205
- `)+Q}A.exports={hasPragma:x,insertPragma:B}}}),F2=Te({"src/language-js/utils/is-type-cast-comment.js"(m,A){Re();var p=aa();function b(D){return p(D)&&D.value[0]==="*"&&/@(?:type|satisfies)\b/.test(D.value)}A.exports=b}}),Q0=Te({"src/language-js/comments.js"(m,A){Re();var{getLast:p,hasNewline:b,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:D,getNextNonSpaceNonCommentCharacter:f,hasNewlineInRange:d,addLeadingComment:h,addTrailingComment:E,addDanglingComment:x,getNextNonSpaceNonCommentCharacterIndex:B,isNonEmptyArray:L}=De(),{getFunctionParameters:P,isPrettierIgnoreComment:C,isJsxNode:S,hasFlowShorthandAnnotationComment:j,hasFlowAnnotationComment:Q,hasIgnoreComment:ne,isCallLikeExpression:$,getCallArguments:X,isCallExpression:G,isMemberExpression:re,isObjectProperty:ee,isLineComment:be,getComments:F,CommentCheckFlags:J,markerForIfWithoutBlockAndSameLineComment:w}=pr(),{locStart:R,locEnd:y}=ni(),k=aa(),I=F2();function q(yt){return[xe,Jt,Ue,fe,_e,se,rt,Bt,Ke,_t,cn,Pn,mt,$e,we].some(V=>V(yt))}function U(yt){return[ye,Jt,ge,cn,fe,_e,se,rt,$e,Je,Et,_t,yn,we,Oe].some(V=>V(yt))}function z(yt){return[xe,fe,_e,ue,dt,mt,_t,pt,Ie,ht,we,ut].some(V=>V(yt))}function ie(yt,V){let Le=(yt.body||yt.properties).find(it=>{let{type:kt}=it;return kt!=="EmptyStatement"});Le?h(Le,V):x(yt,V)}function ce(yt,V){yt.type==="BlockStatement"?ie(yt,V):h(yt,V)}function ye(yt){let{comment:V,followingNode:Le}=yt;return Le&&I(V)?(h(Le,V),!0):!1}function fe(yt){let{comment:V,precedingNode:Le,enclosingNode:it,followingNode:kt,text:$t}=yt;if((it==null?void 0:it.type)!=="IfStatement"||!kt)return!1;if(f($t,V,y)===")")return E(Le,V),!0;if(Le===it.consequent&&kt===it.alternate){if(Le.type==="BlockStatement")E(Le,V);else{let un=V.type==="SingleLine"||V.loc.start.line===V.loc.end.line,Mt=V.loc.start.line===Le.loc.start.line;un&&Mt?x(Le,V,w):x(it,V)}return!0}return kt.type==="BlockStatement"?(ie(kt,V),!0):kt.type==="IfStatement"?(ce(kt.consequent,V),!0):it.consequent===kt?(h(kt,V),!0):!1}function _e(yt){let{comment:V,precedingNode:Le,enclosingNode:it,followingNode:kt,text:$t}=yt;return(it==null?void 0:it.type)!=="WhileStatement"||!kt?!1:f($t,V,y)===")"?(E(Le,V),!0):kt.type==="BlockStatement"?(ie(kt,V),!0):it.body===kt?(h(kt,V),!0):!1}function se(yt){let{comment:V,precedingNode:Le,enclosingNode:it,followingNode:kt}=yt;return(it==null?void 0:it.type)!=="TryStatement"&&(it==null?void 0:it.type)!=="CatchClause"||!kt?!1:it.type==="CatchClause"&&Le?(E(Le,V),!0):kt.type==="BlockStatement"?(ie(kt,V),!0):kt.type==="TryStatement"?(ce(kt.finalizer,V),!0):kt.type==="CatchClause"?(ce(kt.body,V),!0):!1}function Ue(yt){let{comment:V,enclosingNode:Le,followingNode:it}=yt;return re(Le)&&(it==null?void 0:it.type)==="Identifier"?(h(Le,V),!0):!1}function ge(yt){let{comment:V,precedingNode:Le,enclosingNode:it,followingNode:kt,text:$t}=yt,un=Le&&!d($t,y(Le),R(V));return(!Le||!un)&&((it==null?void 0:it.type)==="ConditionalExpression"||(it==null?void 0:it.type)==="TSConditionalType")&&kt?(h(kt,V),!0):!1}function ue(yt){let{comment:V,precedingNode:Le,enclosingNode:it}=yt;return ee(it)&&it.shorthand&&it.key===Le&&it.value.type==="AssignmentPattern"?(E(it.value.left,V),!0):!1}var qe=new Set(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function rt(yt){let{comment:V,precedingNode:Le,enclosingNode:it,followingNode:kt}=yt;if(qe.has(it==null?void 0:it.type)){if(L(it.decorators)&&!(kt&&kt.type==="Decorator"))return E(p(it.decorators),V),!0;if(it.body&&kt===it.body)return ie(it.body,V),!0;if(kt){if(it.superClass&&kt===it.superClass&&Le&&(Le===it.id||Le===it.typeParameters))return E(Le,V),!0;for(let $t of["implements","extends","mixins"])if(it[$t]&&kt===it[$t][0])return Le&&(Le===it.id||Le===it.typeParameters||Le===it.superClass)?E(Le,V):x(it,V,$t),!0}}return!1}var Ge=new Set(["ClassMethod","ClassProperty","PropertyDefinition","TSAbstractPropertyDefinition","TSAbstractMethodDefinition","TSDeclareMethod","MethodDefinition","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty"]);function mt(yt){let{comment:V,precedingNode:Le,enclosingNode:it,text:kt}=yt;return it&&Le&&f(kt,V,y)==="("&&(it.type==="Property"||it.type==="TSDeclareMethod"||it.type==="TSAbstractMethodDefinition")&&Le.type==="Identifier"&&it.key===Le&&f(kt,Le,y)!==":"||(Le==null?void 0:Le.type)==="Decorator"&&Ge.has(it==null?void 0:it.type)?(E(Le,V),!0):!1}var ve=new Set(["FunctionDeclaration","FunctionExpression","ClassMethod","MethodDefinition","ObjectMethod"]);function Ie(yt){let{comment:V,precedingNode:Le,enclosingNode:it,text:kt}=yt;return f(kt,V,y)!=="("?!1:Le&&ve.has(it==null?void 0:it.type)?(E(Le,V),!0):!1}function pt(yt){let{comment:V,enclosingNode:Le,text:it}=yt;if((Le==null?void 0:Le.type)!=="ArrowFunctionExpression")return!1;let kt=B(it,V,y);return kt!==!1&&it.slice(kt,kt+2)==="=>"?(x(Le,V),!0):!1}function dt(yt){let{comment:V,enclosingNode:Le,text:it}=yt;return f(it,V,y)!==")"?!1:Le&&(ft(Le)&&P(Le).length===0||$(Le)&&X(Le).length===0)?(x(Le,V),!0):((Le==null?void 0:Le.type)==="MethodDefinition"||(Le==null?void 0:Le.type)==="TSAbstractMethodDefinition")&&P(Le.value).length===0?(x(Le.value,V),!0):!1}function Jt(yt){let{comment:V,precedingNode:Le,enclosingNode:it,followingNode:kt,text:$t}=yt;if((Le==null?void 0:Le.type)==="FunctionTypeParam"&&(it==null?void 0:it.type)==="FunctionTypeAnnotation"&&(kt==null?void 0:kt.type)!=="FunctionTypeParam"||((Le==null?void 0:Le.type)==="Identifier"||(Le==null?void 0:Le.type)==="AssignmentPattern")&&it&&ft(it)&&f($t,V,y)===")")return E(Le,V),!0;if((it==null?void 0:it.type)==="FunctionDeclaration"&&(kt==null?void 0:kt.type)==="BlockStatement"){let un=(()=>{let Mt=P(it);if(Mt.length>0)return D($t,y(p(Mt)));let Ar=D($t,y(it.id));return Ar!==!1&&D($t,Ar+1)})();if(R(V)>un)return ie(kt,V),!0}return!1}function $e(yt){let{comment:V,enclosingNode:Le}=yt;return(Le==null?void 0:Le.type)==="LabeledStatement"?(h(Le,V),!0):!1}function we(yt){let{comment:V,enclosingNode:Le}=yt;return((Le==null?void 0:Le.type)==="ContinueStatement"||(Le==null?void 0:Le.type)==="BreakStatement")&&!Le.label?(E(Le,V),!0):!1}function Je(yt){let{comment:V,precedingNode:Le,enclosingNode:it}=yt;return G(it)&&Le&&it.callee===Le&&it.arguments.length>0?(h(it.arguments[0],V),!0):!1}function Ke(yt){let{comment:V,precedingNode:Le,enclosingNode:it,followingNode:kt}=yt;return(it==null?void 0:it.type)==="UnionTypeAnnotation"||(it==null?void 0:it.type)==="TSUnionType"?(C(V)&&(kt.prettierIgnore=!0,V.unignore=!0),Le?(E(Le,V),!0):!1):(((kt==null?void 0:kt.type)==="UnionTypeAnnotation"||(kt==null?void 0:kt.type)==="TSUnionType")&&C(V)&&(kt.types[0].prettierIgnore=!0,V.unignore=!0),!1)}function Et(yt){let{comment:V,enclosingNode:Le}=yt;return ee(Le)?(h(Le,V),!0):!1}function _t(yt){let{comment:V,enclosingNode:Le,followingNode:it,ast:kt,isLastComment:$t}=yt;return kt&&kt.body&&kt.body.length===0?($t?x(kt,V):h(kt,V),!0):(Le==null?void 0:Le.type)==="Program"&&(Le==null?void 0:Le.body.length)===0&&!L(Le.directives)?($t?x(Le,V):h(Le,V),!0):(it==null?void 0:it.type)==="Program"&&(it==null?void 0:it.body.length)===0&&(Le==null?void 0:Le.type)==="ModuleExpression"?(x(it,V),!0):!1}function Bt(yt){let{comment:V,enclosingNode:Le}=yt;return(Le==null?void 0:Le.type)==="ForInStatement"||(Le==null?void 0:Le.type)==="ForOfStatement"?(h(Le,V),!0):!1}function cn(yt){let{comment:V,precedingNode:Le,enclosingNode:it,text:kt}=yt;if((it==null?void 0:it.type)==="ImportSpecifier"||(it==null?void 0:it.type)==="ExportSpecifier")return h(it,V),!0;let $t=(Le==null?void 0:Le.type)==="ImportSpecifier"&&(it==null?void 0:it.type)==="ImportDeclaration",un=(Le==null?void 0:Le.type)==="ExportSpecifier"&&(it==null?void 0:it.type)==="ExportNamedDeclaration";return($t||un)&&b(kt,y(V))?(E(Le,V),!0):!1}function Pn(yt){let{comment:V,enclosingNode:Le}=yt;return(Le==null?void 0:Le.type)==="AssignmentPattern"?(h(Le,V),!0):!1}var _n=new Set(["VariableDeclarator","AssignmentExpression","TypeAlias","TSTypeAliasDeclaration"]),ln=new Set(["ObjectExpression","ArrayExpression","TemplateLiteral","TaggedTemplateExpression","ObjectTypeAnnotation","TSTypeLiteral"]);function yn(yt){let{comment:V,enclosingNode:Le,followingNode:it}=yt;return _n.has(Le==null?void 0:Le.type)&&it&&(ln.has(it.type)||k(V))?(h(it,V),!0):!1}function ut(yt){let{comment:V,enclosingNode:Le,followingNode:it,text:kt}=yt;return!it&&((Le==null?void 0:Le.type)==="TSMethodSignature"||(Le==null?void 0:Le.type)==="TSDeclareFunction"||(Le==null?void 0:Le.type)==="TSAbstractMethodDefinition")&&f(kt,V,y)===";"?(E(Le,V),!0):!1}function xe(yt){let{comment:V,enclosingNode:Le,followingNode:it}=yt;if(C(V)&&(Le==null?void 0:Le.type)==="TSMappedType"&&(it==null?void 0:it.type)==="TSTypeParameter"&&it.constraint)return Le.prettierIgnore=!0,V.unignore=!0,!0}function ht(yt){let{comment:V,precedingNode:Le,enclosingNode:it,followingNode:kt}=yt;return(it==null?void 0:it.type)!=="TSMappedType"?!1:(kt==null?void 0:kt.type)==="TSTypeParameter"&&kt.name?(h(kt.name,V),!0):(Le==null?void 0:Le.type)==="TSTypeParameter"&&Le.constraint?(E(Le.constraint,V),!0):!1}function Oe(yt){let{comment:V,enclosingNode:Le,followingNode:it}=yt;return!Le||Le.type!=="SwitchCase"||Le.test||!it||it!==Le.consequent[0]?!1:(it.type==="BlockStatement"&&be(V)?ie(it,V):x(Le,V),!0)}function ft(yt){return yt.type==="ArrowFunctionExpression"||yt.type==="FunctionExpression"||yt.type==="FunctionDeclaration"||yt.type==="ObjectMethod"||yt.type==="ClassMethod"||yt.type==="TSDeclareFunction"||yt.type==="TSCallSignatureDeclaration"||yt.type==="TSConstructSignatureDeclaration"||yt.type==="TSMethodSignature"||yt.type==="TSConstructorType"||yt.type==="TSFunctionType"||yt.type==="TSDeclareMethod"}function Zt(yt,V){if((V.parser==="typescript"||V.parser==="flow"||V.parser==="acorn"||V.parser==="espree"||V.parser==="meriyah"||V.parser==="__babel_estree")&&yt.type==="MethodDefinition"&&yt.value&&yt.value.type==="FunctionExpression"&&P(yt.value).length===0&&!yt.value.returnType&&!L(yt.value.typeParameters)&&yt.value.body)return[...yt.decorators||[],yt.key,yt.value.body]}function Ut(yt){let V=yt.getValue(),Le=yt.getParentNode(),it=kt=>Q(F(kt,J.Leading))||Q(F(kt,J.Trailing));return(V&&(S(V)||j(V)||G(Le)&&it(V))||Le&&(Le.type==="JSXSpreadAttribute"||Le.type==="JSXSpreadChild"||Le.type==="UnionTypeAnnotation"||Le.type==="TSUnionType"||(Le.type==="ClassDeclaration"||Le.type==="ClassExpression")&&Le.superClass===V))&&(!ne(yt)||Le.type==="UnionTypeAnnotation"||Le.type==="TSUnionType")}A.exports={handleOwnLineComment:q,handleEndOfLineComment:U,handleRemainingComment:z,getCommentChildNodes:Zt,willPrintOwnComments:Ut}}}),no=Te({"src/language-js/needs-parens.js"(m,A){Re();var p=Vr(),b=It(),{getFunctionParameters:D,getLeftSidePathName:f,hasFlowShorthandAnnotationComment:d,hasNakedLeftSide:h,hasNode:E,isBitwiseOperator:x,startsWithNoLookaheadToken:B,shouldFlatten:L,getPrecedence:P,isCallExpression:C,isMemberExpression:S,isObjectProperty:j,isTSTypeExpression:Q}=pr();function ne(F,J){let w=F.getParentNode();if(!w)return!1;let R=F.getName(),y=F.getNode();if(J.__isInHtmlInterpolation&&!J.bracketSpacing&&re(y)&&ee(F))return!0;if($(y))return!1;if(J.parser!=="flow"&&d(F.getValue()))return!0;if(y.type==="Identifier"){if(y.extra&&y.extra.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(y.name)||R==="left"&&(y.name==="async"&&!w.await||y.name==="let")&&w.type==="ForOfStatement")return!0;if(y.name==="let"){var k;let q=(k=F.findAncestor(U=>U.type==="ForOfStatement"))===null||k===void 0?void 0:k.left;if(q&&B(q,U=>U===y))return!0}if(R==="object"&&y.name==="let"&&w.type==="MemberExpression"&&w.computed&&!w.optional){let q=F.findAncestor(z=>z.type==="ExpressionStatement"||z.type==="ForStatement"||z.type==="ForInStatement"),U=q?q.type==="ExpressionStatement"?q.expression:q.type==="ForStatement"?q.init:q.left:void 0;if(U&&B(U,z=>z===y))return!0}return!1}if(y.type==="ObjectExpression"||y.type==="FunctionExpression"||y.type==="ClassExpression"||y.type==="DoExpression"){var I;let q=(I=F.findAncestor(U=>U.type==="ExpressionStatement"))===null||I===void 0?void 0:I.expression;if(q&&B(q,U=>U===y))return!0}switch(w.type){case"ParenthesizedExpression":return!1;case"ClassDeclaration":case"ClassExpression":{if(R==="superClass"&&(y.type==="ArrowFunctionExpression"||y.type==="AssignmentExpression"||y.type==="AwaitExpression"||y.type==="BinaryExpression"||y.type==="ConditionalExpression"||y.type==="LogicalExpression"||y.type==="NewExpression"||y.type==="ObjectExpression"||y.type==="SequenceExpression"||y.type==="TaggedTemplateExpression"||y.type==="UnaryExpression"||y.type==="UpdateExpression"||y.type==="YieldExpression"||y.type==="TSNonNullExpression"))return!0;break}case"ExportDefaultDeclaration":return be(F,J)||y.type==="SequenceExpression";case"Decorator":{if(R==="expression"){if(S(y)&&y.computed)return!0;let q=!1,U=!1,z=y;for(;z;)switch(z.type){case"MemberExpression":U=!0,z=z.object;break;case"CallExpression":if(U||q)return J.parser!=="typescript";q=!0,z=z.callee;break;case"Identifier":return!1;case"TaggedTemplateExpression":return J.parser!=="typescript";default:return!0}return!0}break}case"ArrowFunctionExpression":{if(R==="body"&&y.type!=="SequenceExpression"&&B(y,q=>q.type==="ObjectExpression"))return!0;break}}switch(y.type){case"UpdateExpression":if(w.type==="UnaryExpression")return y.prefix&&(y.operator==="++"&&w.operator==="+"||y.operator==="--"&&w.operator==="-");case"UnaryExpression":switch(w.type){case"UnaryExpression":return y.operator===w.operator&&(y.operator==="+"||y.operator==="-");case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return R==="object";case"TaggedTemplateExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return R==="callee";case"BinaryExpression":return R==="left"&&w.operator==="**";case"TSNonNullExpression":return!0;default:return!1}case"BinaryExpression":{if(w.type==="UpdateExpression"||y.operator==="in"&&X(F))return!0;if(y.operator==="|>"&&y.extra&&y.extra.parenthesized){let q=F.getParentNode(1);if(q.type==="BinaryExpression"&&q.operator==="|>")return!0}}case"TSTypeAssertion":case"TSAsExpression":case"TSSatisfiesExpression":case"LogicalExpression":switch(w.type){case"TSSatisfiesExpression":case"TSAsExpression":return!Q(y);case"ConditionalExpression":return Q(y);case"CallExpression":case"NewExpression":case"OptionalCallExpression":return R==="callee";case"ClassExpression":case"ClassDeclaration":return R==="superClass";case"TSTypeAssertion":case"TaggedTemplateExpression":case"UnaryExpression":case"JSXSpreadAttribute":case"SpreadElement":case"SpreadProperty":case"BindExpression":case"AwaitExpression":case"TSNonNullExpression":case"UpdateExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return R==="object";case"AssignmentExpression":case"AssignmentPattern":return R==="left"&&(y.type==="TSTypeAssertion"||Q(y));case"LogicalExpression":if(y.type==="LogicalExpression")return w.operator!==y.operator;case"BinaryExpression":{let{operator:q,type:U}=y;if(!q&&U!=="TSTypeAssertion")return!0;let z=P(q),ie=w.operator,ce=P(ie);return ce>z||R==="right"&&ce===z||ce===z&&!L(ie,q)?!0:ce<z&&q==="%"?ie==="+"||ie==="-":!!x(ie)}default:return!1}case"SequenceExpression":switch(w.type){case"ReturnStatement":return!1;case"ForStatement":return!1;case"ExpressionStatement":return R!=="expression";case"ArrowFunctionExpression":return R!=="body";default:return!0}case"YieldExpression":if(w.type==="UnaryExpression"||w.type==="AwaitExpression"||Q(w)||w.type==="TSNonNullExpression")return!0;case"AwaitExpression":switch(w.type){case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"SpreadElement":case"SpreadProperty":case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return R==="object";case"NewExpression":case"CallExpression":case"OptionalCallExpression":return R==="callee";case"ConditionalExpression":return R==="test";case"BinaryExpression":return!(!y.argument&&w.operator==="|>");default:return!1}case"TSConditionalType":case"TSFunctionType":case"TSConstructorType":if(R==="extendsType"&&w.type==="TSConditionalType"){if(y.type==="TSConditionalType")return!0;let{typeAnnotation:q}=y.returnType||y.typeAnnotation;if(q.type==="TSTypePredicate"&&q.typeAnnotation&&(q=q.typeAnnotation.typeAnnotation),q.type==="TSInferType"&&q.typeParameter.constraint)return!0}if(R==="checkType"&&w.type==="TSConditionalType")return!0;case"TSUnionType":case"TSIntersectionType":if((w.type==="TSUnionType"||w.type==="TSIntersectionType")&&w.types.length>1&&(!y.types||y.types.length>1))return!0;case"TSInferType":if(y.type==="TSInferType"&&w.type==="TSRestType")return!1;case"TSTypeOperator":return w.type==="TSArrayType"||w.type==="TSOptionalType"||w.type==="TSRestType"||R==="objectType"&&w.type==="TSIndexedAccessType"||w.type==="TSTypeOperator"||w.type==="TSTypeAnnotation"&&F.getParentNode(1).type.startsWith("TSJSDoc");case"TSTypeQuery":return R==="objectType"&&w.type==="TSIndexedAccessType"||R==="elementType"&&w.type==="TSArrayType";case"TypeofTypeAnnotation":return R==="objectType"&&(w.type==="IndexedAccessType"||w.type==="OptionalIndexedAccessType")||R==="elementType"&&w.type==="ArrayTypeAnnotation";case"ArrayTypeAnnotation":return w.type==="NullableTypeAnnotation";case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return w.type==="ArrayTypeAnnotation"||w.type==="NullableTypeAnnotation"||w.type==="IntersectionTypeAnnotation"||w.type==="UnionTypeAnnotation"||R==="objectType"&&(w.type==="IndexedAccessType"||w.type==="OptionalIndexedAccessType");case"NullableTypeAnnotation":return w.type==="ArrayTypeAnnotation"||R==="objectType"&&(w.type==="IndexedAccessType"||w.type==="OptionalIndexedAccessType");case"FunctionTypeAnnotation":{let q=w.type==="NullableTypeAnnotation"?F.getParentNode(1):w;return q.type==="UnionTypeAnnotation"||q.type==="IntersectionTypeAnnotation"||q.type==="ArrayTypeAnnotation"||R==="objectType"&&(q.type==="IndexedAccessType"||q.type==="OptionalIndexedAccessType")||q.type==="NullableTypeAnnotation"||w.type==="FunctionTypeParam"&&w.name===null&&D(y).some(U=>U.typeAnnotation&&U.typeAnnotation.type==="NullableTypeAnnotation")}case"OptionalIndexedAccessType":return R==="objectType"&&w.type==="IndexedAccessType";case"StringLiteral":case"NumericLiteral":case"Literal":if(typeof y.value=="string"&&w.type==="ExpressionStatement"&&!w.directive){let q=F.getParentNode(1);return q.type==="Program"||q.type==="BlockStatement"}return R==="object"&&w.type==="MemberExpression"&&typeof y.value=="number";case"AssignmentExpression":{let q=F.getParentNode(1);return R==="body"&&w.type==="ArrowFunctionExpression"?!0:R==="key"&&(w.type==="ClassProperty"||w.type==="PropertyDefinition")&&w.computed||(R==="init"||R==="update")&&w.type==="ForStatement"?!1:w.type==="ExpressionStatement"?y.left.type==="ObjectPattern":!(R==="key"&&w.type==="TSPropertySignature"||w.type==="AssignmentExpression"||w.type==="SequenceExpression"&&q&&q.type==="ForStatement"&&(q.init===w||q.update===w)||R==="value"&&w.type==="Property"&&q&&q.type==="ObjectPattern"&&q.properties.includes(w)||w.type==="NGChainedExpression")}case"ConditionalExpression":switch(w.type){case"TaggedTemplateExpression":case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":case"ExportDefaultDeclaration":case"AwaitExpression":case"JSXSpreadAttribute":case"TSTypeAssertion":case"TypeCastExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return R==="callee";case"ConditionalExpression":return R==="test";case"MemberExpression":case"OptionalMemberExpression":return R==="object";default:return!1}case"FunctionExpression":switch(w.type){case"NewExpression":case"CallExpression":case"OptionalCallExpression":return R==="callee";case"TaggedTemplateExpression":return!0;default:return!1}case"ArrowFunctionExpression":switch(w.type){case"BinaryExpression":return w.operator!=="|>"||y.extra&&y.extra.parenthesized;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return R==="callee";case"MemberExpression":case"OptionalMemberExpression":return R==="object";case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"BindExpression":case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"AwaitExpression":case"TSTypeAssertion":return!0;case"ConditionalExpression":return R==="test";default:return!1}case"ClassExpression":if(b(y.decorators))return!0;switch(w.type){case"NewExpression":return R==="callee";default:return!1}case"OptionalMemberExpression":case"OptionalCallExpression":{let q=F.getParentNode(1);if(R==="object"&&w.type==="MemberExpression"||R==="callee"&&(w.type==="CallExpression"||w.type==="NewExpression")||w.type==="TSNonNullExpression"&&q.type==="MemberExpression"&&q.object===w)return!0}case"CallExpression":case"MemberExpression":case"TaggedTemplateExpression":case"TSNonNullExpression":if(R==="callee"&&(w.type==="BindExpression"||w.type==="NewExpression")){let q=y;for(;q;)switch(q.type){case"CallExpression":case"OptionalCallExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":case"BindExpression":q=q.object;break;case"TaggedTemplateExpression":q=q.tag;break;case"TSNonNullExpression":q=q.expression;break;default:return!1}}return!1;case"BindExpression":return R==="callee"&&(w.type==="BindExpression"||w.type==="NewExpression")||R==="object"&&S(w);case"NGPipeExpression":return!(w.type==="NGRoot"||w.type==="NGMicrosyntaxExpression"||w.type==="ObjectProperty"&&!(y.extra&&y.extra.parenthesized)||w.type==="ArrayExpression"||C(w)&&w.arguments[R]===y||R==="right"&&w.type==="NGPipeExpression"||R==="property"&&w.type==="MemberExpression"||w.type==="AssignmentExpression");case"JSXFragment":case"JSXElement":return R==="callee"||R==="left"&&w.type==="BinaryExpression"&&w.operator==="<"||w.type!=="ArrayExpression"&&w.type!=="ArrowFunctionExpression"&&w.type!=="AssignmentExpression"&&w.type!=="AssignmentPattern"&&w.type!=="BinaryExpression"&&w.type!=="NewExpression"&&w.type!=="ConditionalExpression"&&w.type!=="ExpressionStatement"&&w.type!=="JsExpressionRoot"&&w.type!=="JSXAttribute"&&w.type!=="JSXElement"&&w.type!=="JSXExpressionContainer"&&w.type!=="JSXFragment"&&w.type!=="LogicalExpression"&&!C(w)&&!j(w)&&w.type!=="ReturnStatement"&&w.type!=="ThrowStatement"&&w.type!=="TypeCastExpression"&&w.type!=="VariableDeclarator"&&w.type!=="YieldExpression";case"TypeAnnotation":return R==="returnType"&&w.type==="ArrowFunctionExpression"&&G(y)}return!1}function $(F){return F.type==="BlockStatement"||F.type==="BreakStatement"||F.type==="ClassBody"||F.type==="ClassDeclaration"||F.type==="ClassMethod"||F.type==="ClassProperty"||F.type==="PropertyDefinition"||F.type==="ClassPrivateProperty"||F.type==="ContinueStatement"||F.type==="DebuggerStatement"||F.type==="DeclareClass"||F.type==="DeclareExportAllDeclaration"||F.type==="DeclareExportDeclaration"||F.type==="DeclareFunction"||F.type==="DeclareInterface"||F.type==="DeclareModule"||F.type==="DeclareModuleExports"||F.type==="DeclareVariable"||F.type==="DoWhileStatement"||F.type==="EnumDeclaration"||F.type==="ExportAllDeclaration"||F.type==="ExportDefaultDeclaration"||F.type==="ExportNamedDeclaration"||F.type==="ExpressionStatement"||F.type==="ForInStatement"||F.type==="ForOfStatement"||F.type==="ForStatement"||F.type==="FunctionDeclaration"||F.type==="IfStatement"||F.type==="ImportDeclaration"||F.type==="InterfaceDeclaration"||F.type==="LabeledStatement"||F.type==="MethodDefinition"||F.type==="ReturnStatement"||F.type==="SwitchStatement"||F.type==="ThrowStatement"||F.type==="TryStatement"||F.type==="TSDeclareFunction"||F.type==="TSEnumDeclaration"||F.type==="TSImportEqualsDeclaration"||F.type==="TSInterfaceDeclaration"||F.type==="TSModuleDeclaration"||F.type==="TSNamespaceExportDeclaration"||F.type==="TypeAlias"||F.type==="VariableDeclaration"||F.type==="WhileStatement"||F.type==="WithStatement"}function X(F){let J=0,w=F.getValue();for(;w;){let R=F.getParentNode(J++);if(R&&R.type==="ForStatement"&&R.init===w)return!0;w=R}return!1}function G(F){return E(F,J=>J.type==="ObjectTypeAnnotation"&&E(J,w=>w.type==="FunctionTypeAnnotation"||void 0)||void 0)}function re(F){switch(F.type){case"ObjectExpression":return!0;default:return!1}}function ee(F){let J=F.getValue(),w=F.getParentNode(),R=F.getName();switch(w.type){case"NGPipeExpression":if(typeof R=="number"&&w.arguments[R]===J&&w.arguments.length-1===R)return F.callParent(ee);break;case"ObjectProperty":if(R==="value"){let y=F.getParentNode(1);return p(y.properties)===w}break;case"BinaryExpression":case"LogicalExpression":if(R==="right")return F.callParent(ee);break;case"ConditionalExpression":if(R==="alternate")return F.callParent(ee);break;case"UnaryExpression":if(w.prefix)return F.callParent(ee);break}return!1}function be(F,J){let w=F.getValue(),R=F.getParentNode();return w.type==="FunctionExpression"||w.type==="ClassExpression"?R.type==="ExportDefaultDeclaration"||!ne(F,J):!h(w)||R.type!=="ExportDefaultDeclaration"&&ne(F,J)?!1:F.call(y=>be(y,J),...f(F,w))}A.exports=ne}}),X0=Te({"src/language-js/print-preprocess.js"(m,A){Re();function p(b,D){switch(D.parser){case"json":case"json5":case"json-stringify":case"__js_expression":case"__vue_expression":case"__vue_ts_expression":return Object.assign(Object.assign({},b),{},{type:D.parser.startsWith("__")?"JsExpressionRoot":"JsonRoot",node:b,comments:[],rootMarker:D.rootMarker});default:return b}}A.exports=p}}),N2=Te({"src/language-js/print/html-binding.js"(m,A){Re();var{builders:{join:p,line:b,group:D,softline:f,indent:d}}=wn();function h(x,B,L){let P=x.getValue();if(B.__onHtmlBindingRoot&&x.getName()===null&&B.__onHtmlBindingRoot(P,B),P.type==="File"){if(B.__isVueForBindingLeft)return x.call(C=>{let S=p([",",b],C.map(L,"params")),{params:j}=C.getValue();return j.length===1?S:["(",d([f,D(S)]),f,")"]},"program","body",0);if(B.__isVueBindings)return x.call(C=>p([",",b],C.map(L,"params")),"program","body",0)}}function E(x){switch(x.type){case"MemberExpression":switch(x.property.type){case"Identifier":case"NumericLiteral":case"StringLiteral":return E(x.object)}return!1;case"Identifier":return!0;default:return!1}}A.exports={isVueEventBindingExpression:E,printHtmlBinding:h}}}),sp=Te({"src/language-js/print/binaryish.js"(m,A){Re();var{printComments:p}=Ir(),{getLast:b}=De(),{builders:{join:D,line:f,softline:d,group:h,indent:E,align:x,indentIfBreak:B},utils:{cleanDoc:L,getDocParts:P,isConcat:C}}=wn(),{hasLeadingOwnLineComment:S,isBinaryish:j,isJsxNode:Q,shouldFlatten:ne,hasComment:$,CommentCheckFlags:X,isCallExpression:G,isMemberExpression:re,isObjectProperty:ee,isEnabledHackPipeline:be}=pr(),F=0;function J(y,k,I){let q=y.getValue(),U=y.getParentNode(),z=y.getParentNode(1),ie=q!==U.body&&(U.type==="IfStatement"||U.type==="WhileStatement"||U.type==="SwitchStatement"||U.type==="DoWhileStatement"),ce=be(k)&&q.operator==="|>",ye=w(y,I,k,!1,ie);if(ie)return ye;if(ce)return h(ye);if(G(U)&&U.callee===q||U.type==="UnaryExpression"||re(U)&&!U.computed)return h([E([d,...ye]),d]);let fe=U.type==="ReturnStatement"||U.type==="ThrowStatement"||U.type==="JSXExpressionContainer"&&z.type==="JSXAttribute"||q.operator!=="|"&&U.type==="JsExpressionRoot"||q.type!=="NGPipeExpression"&&(U.type==="NGRoot"&&k.parser==="__ng_binding"||U.type==="NGMicrosyntaxExpression"&&z.type==="NGMicrosyntax"&&z.body.length===1)||q===U.body&&U.type==="ArrowFunctionExpression"||q!==U.body&&U.type==="ForStatement"||U.type==="ConditionalExpression"&&z.type!=="ReturnStatement"&&z.type!=="ThrowStatement"&&!G(z)||U.type==="TemplateLiteral",_e=U.type==="AssignmentExpression"||U.type==="VariableDeclarator"||U.type==="ClassProperty"||U.type==="PropertyDefinition"||U.type==="TSAbstractPropertyDefinition"||U.type==="ClassPrivateProperty"||ee(U),se=j(q.left)&&ne(q.operator,q.left.operator);if(fe||R(q)&&!se||!R(q)&&_e)return h(ye);if(ye.length===0)return"";let Ue=Q(q.right),ge=ye.findIndex(ve=>typeof ve!="string"&&!Array.isArray(ve)&&ve.type==="group"),ue=ye.slice(0,ge===-1?1:ge+1),qe=ye.slice(ue.length,Ue?-1:void 0),rt=Symbol("logicalChain-"+ ++F),Ge=h([...ue,E(qe)],{id:rt});if(!Ue)return Ge;let mt=b(ye);return h([Ge,B(mt,{groupId:rt})])}function w(y,k,I,q,U){let z=y.getValue();if(!j(z))return[h(k())];let ie=[];ne(z.operator,z.left.operator)?ie=y.call(qe=>w(qe,k,I,!0,U),"left"):ie.push(h(k("left")));let ce=R(z),ye=(z.operator==="|>"||z.type==="NGPipeExpression"||z.operator==="|"&&I.parser==="__vue_expression")&&!S(I.originalText,z.right),fe=z.type==="NGPipeExpression"?"|":z.operator,_e=z.type==="NGPipeExpression"&&z.arguments.length>0?h(E([f,": ",D([f,": "],y.map(k,"arguments").map(qe=>x(2,h(qe))))])):"",se;if(ce)se=[fe," ",k("right"),_e];else{let qe=be(I)&&fe==="|>"?y.call(rt=>w(rt,k,I,!0,U),"right"):k("right");se=[ye?f:"",fe,ye?" ":f,qe,_e]}let Ue=y.getParentNode(),ge=$(z.left,X.Trailing|X.Line),ue=ge||!(U&&z.type==="LogicalExpression")&&Ue.type!==z.type&&z.left.type!==z.type&&z.right.type!==z.type;if(ie.push(ye?"":" ",ue?h(se,{shouldBreak:ge}):se),q&&$(z)){let qe=L(p(y,ie,I));return C(qe)||qe.type==="fill"?P(qe):[qe]}return ie}function R(y){return y.type!=="LogicalExpression"?!1:!!(y.right.type==="ObjectExpression"&&y.right.properties.length>0||y.right.type==="ArrayExpression"&&y.right.elements.length>0||Q(y.right))}A.exports={printBinaryishExpression:J,shouldInlineLogicalExpression:R}}}),T2=Te({"src/language-js/print/angular.js"(m,A){Re();var{builders:{join:p,line:b,group:D}}=wn(),{hasNode:f,hasComment:d,getComments:h}=pr(),{printBinaryishExpression:E}=sp();function x(P,C,S){let j=P.getValue();if(j.type.startsWith("NG"))switch(j.type){case"NGRoot":return[S("node"),d(j.node)?" //"+h(j.node)[0].value.trimEnd():""];case"NGPipeExpression":return E(P,C,S);case"NGChainedExpression":return D(p([";",b],P.map(Q=>L(Q)?S():["(",S(),")"],"expressions")));case"NGEmptyExpression":return"";case"NGQuotedExpression":return[j.prefix,": ",j.value.trim()];case"NGMicrosyntax":return P.map((Q,ne)=>[ne===0?"":B(Q.getValue(),ne,j)?" ":[";",b],S()],"body");case"NGMicrosyntaxKey":return/^[$_a-z][\w$]*(?:-[$_a-z][\w$])*$/i.test(j.name)?j.name:JSON.stringify(j.name);case"NGMicrosyntaxExpression":return[S("expression"),j.alias===null?"":[" as ",S("alias")]];case"NGMicrosyntaxKeyedExpression":{let Q=P.getName(),ne=P.getParentNode(),$=B(j,Q,ne)||(Q===1&&(j.key.name==="then"||j.key.name==="else")||Q===2&&j.key.name==="else"&&ne.body[Q-1].type==="NGMicrosyntaxKeyedExpression"&&ne.body[Q-1].key.name==="then")&&ne.body[0].type==="NGMicrosyntaxExpression";return[S("key"),$?" ":": ",S("expression")]}case"NGMicrosyntaxLet":return["let ",S("key"),j.value===null?"":[" = ",S("value")]];case"NGMicrosyntaxAs":return[S("key")," as ",S("alias")];default:throw new Error(`Unknown Angular node type: ${JSON.stringify(j.type)}.`)}}function B(P,C,S){return P.type==="NGMicrosyntaxKeyedExpression"&&P.key.name==="of"&&C===1&&S.body[0].type==="NGMicrosyntaxLet"&&S.body[0].value===null}function L(P){return f(P.getValue(),C=>{switch(C.type){case void 0:return!1;case"CallExpression":case"OptionalCallExpression":case"AssignmentExpression":return!0}})}A.exports={printAngular:x}}}),_2=Te({"src/language-js/print/jsx.js"(m,A){Re();var{printComments:p,printDanglingComments:b,printCommentsSeparately:D}=Ir(),{builders:{line:f,hardline:d,softline:h,group:E,indent:x,conditionalGroup:B,fill:L,ifBreak:P,lineSuffixBoundary:C,join:S},utils:{willBreak:j}}=wn(),{getLast:Q,getPreferredQuote:ne}=De(),{isJsxNode:$,rawText:X,isCallExpression:G,isStringLiteral:re,isBinaryish:ee,hasComment:be,CommentCheckFlags:F,hasNodeIgnoreComment:J}=pr(),w=no(),{willPrintOwnComments:R}=Q0(),y=we=>we===""||we===f||we===d||we===h;function k(we,Je,Ke){let Et=we.getValue();if(Et.type==="JSXElement"&&pt(Et))return[Ke("openingElement"),Ke("closingElement")];let _t=Et.type==="JSXElement"?Ke("openingElement"):Ke("openingFragment"),Bt=Et.type==="JSXElement"?Ke("closingElement"):Ke("closingFragment");if(Et.children.length===1&&Et.children[0].type==="JSXExpressionContainer"&&(Et.children[0].expression.type==="TemplateLiteral"||Et.children[0].expression.type==="TaggedTemplateExpression"))return[_t,...we.map(Ke,"children"),Bt];Et.children=Et.children.map(V=>Jt(V)?{type:"JSXText",value:" ",raw:" "}:V);let cn=Et.children.some($),Pn=Et.children.filter(V=>V.type==="JSXExpressionContainer").length>1,_n=Et.type==="JSXElement"&&Et.openingElement.attributes.length>1,ln=j(_t)||cn||_n||Pn,yn=we.getParentNode().rootMarker==="mdx",ut=Je.singleQuote?"{' '}":'{" "}',xe=yn?" ":P([ut,h]," "),ht=Et.openingElement&&Et.openingElement.name&&Et.openingElement.name.name==="fbt",Oe=I(we,Je,Ke,xe,ht),ft=Et.children.some(V=>dt(V));for(let V=Oe.length-2;V>=0;V--){let Le=Oe[V]===""&&Oe[V+1]==="",it=Oe[V]===d&&Oe[V+1]===""&&Oe[V+2]===d,kt=(Oe[V]===h||Oe[V]===d)&&Oe[V+1]===""&&Oe[V+2]===xe,$t=Oe[V]===xe&&Oe[V+1]===""&&(Oe[V+2]===h||Oe[V+2]===d),un=Oe[V]===xe&&Oe[V+1]===""&&Oe[V+2]===xe,Mt=Oe[V]===h&&Oe[V+1]===""&&Oe[V+2]===d||Oe[V]===d&&Oe[V+1]===""&&Oe[V+2]===h;it&&ft||Le||kt||un||Mt?Oe.splice(V,2):$t&&Oe.splice(V+1,2)}for(;Oe.length>0&&y(Q(Oe));)Oe.pop();for(;Oe.length>1&&y(Oe[0])&&y(Oe[1]);)Oe.shift(),Oe.shift();let Zt=[];for(let[V,Le]of Oe.entries()){if(Le===xe){if(V===1&&Oe[V-1]===""){if(Oe.length===2){Zt.push(ut);continue}Zt.push([ut,d]);continue}else if(V===Oe.length-1){Zt.push(ut);continue}else if(Oe[V-1]===""&&Oe[V-2]===d){Zt.push(ut);continue}}Zt.push(Le),j(Le)&&(ln=!0)}let Ut=ft?L(Zt):E(Zt,{shouldBreak:!0});if(yn)return Ut;let yt=E([_t,x([d,Ut]),d,Bt]);return ln?yt:B([E([_t,...Oe,Bt]),yt])}function I(we,Je,Ke,Et,_t){let Bt=[];return we.each((cn,Pn,_n)=>{let ln=cn.getValue();if(ln.type==="JSXText"){let yn=X(ln);if(dt(ln)){let ut=yn.split(mt);if(ut[0]===""){if(Bt.push(""),ut.shift(),/\n/.test(ut[0])){let ht=_n[Pn+1];Bt.push(U(_t,ut[1],ln,ht))}else Bt.push(Et);ut.shift()}let xe;if(Q(ut)===""&&(ut.pop(),xe=ut.pop()),ut.length===0)return;for(let[ht,Oe]of ut.entries())ht%2===1?Bt.push(f):Bt.push(Oe);if(xe!==void 0)if(/\n/.test(xe)){let ht=_n[Pn+1];Bt.push(U(_t,Q(Bt),ln,ht))}else Bt.push(Et);else{let ht=_n[Pn+1];Bt.push(q(_t,Q(Bt),ln,ht))}}else/\n/.test(yn)?yn.match(/\n/g).length>1&&Bt.push("",d):Bt.push("",Et)}else{let yn=Ke();Bt.push(yn);let ut=_n[Pn+1];if(ut&&dt(ut)){let xe=Ie(X(ut)).split(mt)[0];Bt.push(q(_t,xe,ln,ut))}else Bt.push(d)}},"children"),Bt}function q(we,Je,Ke,Et){return we?"":Ke.type==="JSXElement"&&!Ke.closingElement||Et&&Et.type==="JSXElement"&&!Et.closingElement?Je.length===1?h:d:h}function U(we,Je,Ke,Et){return we?d:Je.length===1?Ke.type==="JSXElement"&&!Ke.closingElement||Et&&Et.type==="JSXElement"&&!Et.closingElement?d:h:d}function z(we,Je,Ke){let Et=we.getParentNode();if(!Et||{ArrayExpression:!0,JSXAttribute:!0,JSXElement:!0,JSXExpressionContainer:!0,JSXFragment:!0,ExpressionStatement:!0,CallExpression:!0,OptionalCallExpression:!0,ConditionalExpression:!0,JsExpressionRoot:!0}[Et.type])return Je;let _t=we.match(void 0,cn=>cn.type==="ArrowFunctionExpression",G,cn=>cn.type==="JSXExpressionContainer"),Bt=w(we,Ke);return E([Bt?"":P("("),x([h,Je]),h,Bt?"":P(")")],{shouldBreak:_t})}function ie(we,Je,Ke){let Et=we.getValue(),_t=[];if(_t.push(Ke("name")),Et.value){let Bt;if(re(Et.value)){let cn=X(Et.value).slice(1,-1).replace(/&apos;/g,"'").replace(/&quot;/g,'"'),{escaped:Pn,quote:_n,regex:ln}=ne(cn,Je.jsxSingleQuote?"'":'"');cn=cn.replace(ln,Pn);let{leading:yn,trailing:ut}=we.call(()=>D(we,Je),"value");Bt=[yn,_n,cn,_n,ut]}else Bt=Ke("value");_t.push("=",Bt)}return _t}function ce(we,Je,Ke){let Et=we.getValue(),_t=(Bt,cn)=>Bt.type==="JSXEmptyExpression"||!be(Bt)&&(Bt.type==="ArrayExpression"||Bt.type==="ObjectExpression"||Bt.type==="ArrowFunctionExpression"||Bt.type==="AwaitExpression"&&(_t(Bt.argument,Bt)||Bt.argument.type==="JSXElement")||G(Bt)||Bt.type==="FunctionExpression"||Bt.type==="TemplateLiteral"||Bt.type==="TaggedTemplateExpression"||Bt.type==="DoExpression"||$(cn)&&(Bt.type==="ConditionalExpression"||ee(Bt)));return _t(Et.expression,we.getParentNode(0))?E(["{",Ke("expression"),C,"}"]):E(["{",x([h,Ke("expression")]),h,C,"}"])}function ye(we,Je,Ke){let Et=we.getValue(),_t=Et.name&&be(Et.name)||Et.typeParameters&&be(Et.typeParameters);if(Et.selfClosing&&Et.attributes.length===0&&!_t)return["<",Ke("name"),Ke("typeParameters")," />"];if(Et.attributes&&Et.attributes.length===1&&Et.attributes[0].value&&re(Et.attributes[0].value)&&!Et.attributes[0].value.value.includes(`
206
- `)&&!_t&&!be(Et.attributes[0]))return E(["<",Ke("name"),Ke("typeParameters")," ",...we.map(Ke,"attributes"),Et.selfClosing?" />":">"]);let Bt=Et.attributes&&Et.attributes.some(Pn=>Pn.value&&re(Pn.value)&&Pn.value.value.includes(`
207
- `)),cn=Je.singleAttributePerLine&&Et.attributes.length>1?d:f;return E(["<",Ke("name"),Ke("typeParameters"),x(we.map(()=>[cn,Ke()],"attributes")),...fe(Et,Je,_t)],{shouldBreak:Bt})}function fe(we,Je,Ke){return we.selfClosing?[f,"/>"]:_e(we,Je,Ke)?[">"]:[h,">"]}function _e(we,Je,Ke){let Et=we.attributes.length>0&&be(Q(we.attributes),F.Trailing);return we.attributes.length===0&&!Ke||(Je.bracketSameLine||Je.jsxBracketSameLine)&&(!Ke||we.attributes.length>0)&&!Et}function se(we,Je,Ke){let Et=we.getValue(),_t=[];_t.push("</");let Bt=Ke("name");return be(Et.name,F.Leading|F.Line)?_t.push(x([d,Bt]),d):be(Et.name,F.Leading|F.Block)?_t.push(" ",Bt):_t.push(Bt),_t.push(">"),_t}function Ue(we,Je){let Ke=we.getValue(),Et=be(Ke),_t=be(Ke,F.Line),Bt=Ke.type==="JSXOpeningFragment";return[Bt?"<":"</",x([_t?d:Et&&!Bt?" ":"",b(we,Je,!0)]),_t?d:"",">"]}function ge(we,Je,Ke){let Et=p(we,k(we,Je,Ke),Je);return z(we,Et,Je)}function ue(we,Je){let Ke=we.getValue(),Et=be(Ke,F.Line);return[b(we,Je,!Et),Et?d:""]}function qe(we,Je,Ke){let Et=we.getValue();return["{",we.call(_t=>{let Bt=["...",Ke()],cn=_t.getValue();return!be(cn)||!R(_t)?Bt:[x([h,p(_t,Bt,Je)]),h]},Et.type==="JSXSpreadAttribute"?"argument":"expression"),"}"]}function rt(we,Je,Ke){let Et=we.getValue();if(Et.type.startsWith("JSX"))switch(Et.type){case"JSXAttribute":return ie(we,Je,Ke);case"JSXIdentifier":return String(Et.name);case"JSXNamespacedName":return S(":",[Ke("namespace"),Ke("name")]);case"JSXMemberExpression":return S(".",[Ke("object"),Ke("property")]);case"JSXSpreadAttribute":return qe(we,Je,Ke);case"JSXSpreadChild":return qe(we,Je,Ke);case"JSXExpressionContainer":return ce(we,Je,Ke);case"JSXFragment":case"JSXElement":return ge(we,Je,Ke);case"JSXOpeningElement":return ye(we,Je,Ke);case"JSXClosingElement":return se(we,Je,Ke);case"JSXOpeningFragment":case"JSXClosingFragment":return Ue(we,Je);case"JSXEmptyExpression":return ue(we,Je);case"JSXText":throw new Error("JSXText should be handled by JSXElement");default:throw new Error(`Unknown JSX node type: ${JSON.stringify(Et.type)}.`)}}var Ge=`
208
- \r `,mt=new RegExp("(["+Ge+"]+)"),ve=new RegExp("[^"+Ge+"]"),Ie=we=>we.replace(new RegExp("(?:^"+mt.source+"|"+mt.source+"$)"),"");function pt(we){if(we.children.length===0)return!0;if(we.children.length>1)return!1;let Je=we.children[0];return Je.type==="JSXText"&&!dt(Je)}function dt(we){return we.type==="JSXText"&&(ve.test(X(we))||!/\n/.test(X(we)))}function Jt(we){return we.type==="JSXExpressionContainer"&&re(we.expression)&&we.expression.value===" "&&!be(we.expression)}function $e(we){let Je=we.getValue(),Ke=we.getParentNode();if(!Ke||!Je||!$(Je)||!$(Ke))return!1;let Et=Ke.children.indexOf(Je),_t=null;for(let Bt=Et;Bt>0;Bt--){let cn=Ke.children[Bt-1];if(!(cn.type==="JSXText"&&!dt(cn))){_t=cn;break}}return _t&&_t.type==="JSXExpressionContainer"&&_t.expression.type==="JSXEmptyExpression"&&J(_t.expression)}A.exports={hasJsxIgnoreComment:$e,printJsx:rt}}}),Ei=Te({"src/language-js/print/misc.js"(m,A){Re();var{isNonEmptyArray:p}=De(),{builders:{indent:b,join:D,line:f}}=wn(),{isFlowAnnotationComment:d}=pr();function h(Q){let ne=Q.getValue();return!ne.optional||ne.type==="Identifier"&&ne===Q.getParentNode().key?"":ne.type==="OptionalCallExpression"||ne.type==="OptionalMemberExpression"&&ne.computed?"?.":"?"}function E(Q){return Q.getValue().definite||Q.match(void 0,(ne,$)=>$==="id"&&ne.type==="VariableDeclarator"&&ne.definite)?"!":""}function x(Q,ne,$){let X=Q.getValue();return X.typeArguments?$("typeArguments"):X.typeParameters?$("typeParameters"):""}function B(Q,ne,$){let X=Q.getValue();if(!X.typeAnnotation)return"";let G=Q.getParentNode(),re=G.type==="DeclareFunction"&&G.id===X;return d(ne.originalText,X.typeAnnotation)?[" /*: ",$("typeAnnotation")," */"]:[re?"":": ",$("typeAnnotation")]}function L(Q,ne,$){return["::",$("callee")]}function P(Q,ne,$){let X=Q.getValue();return p(X.modifiers)?[D(" ",Q.map($,"modifiers"))," "]:""}function C(Q,ne,$){return Q.type==="EmptyStatement"?";":Q.type==="BlockStatement"||$?[" ",ne]:b([f,ne])}function S(Q,ne,$){return["...",$("argument"),B(Q,ne,$)]}function j(Q,ne){let $=Q.slice(1,-1);if($.includes('"')||$.includes("'"))return Q;let X=ne.singleQuote?"'":'"';return X+$+X}A.exports={printOptionalToken:h,printDefiniteToken:E,printFunctionTypeParameters:x,printBindExpressionCallee:L,printTypeScriptModifiers:P,printTypeAnnotation:B,printRestSpread:S,adjustClause:C,printDirective:j}}}),qo=Te({"src/language-js/print/array.js"(m,A){Re();var{printDanglingComments:p}=Ir(),{builders:{line:b,softline:D,hardline:f,group:d,indent:h,ifBreak:E,fill:x}}=wn(),{getLast:B,hasNewline:L}=De(),{shouldPrintComma:P,hasComment:C,CommentCheckFlags:S,isNextLineEmpty:j,isNumericLiteral:Q,isSignedNumericLiteral:ne}=pr(),{locStart:$}=ni(),{printOptionalToken:X,printTypeAnnotation:G}=Ei();function re(J,w,R){let y=J.getValue(),k=[],I=y.type==="TupleExpression"?"#[":"[",q="]";if(y.elements.length===0)C(y,S.Dangling)?k.push(d([I,p(J,w),D,q])):k.push(I,q);else{let U=B(y.elements),z=!(U&&U.type==="RestElement"),ie=U===null,ce=Symbol("array"),ye=!w.__inJestEach&&y.elements.length>1&&y.elements.every((se,Ue,ge)=>{let ue=se&&se.type;if(ue!=="ArrayExpression"&&ue!=="ObjectExpression")return!1;let qe=ge[Ue+1];if(qe&&ue!==qe.type)return!1;let rt=ue==="ArrayExpression"?"elements":"properties";return se[rt]&&se[rt].length>1}),fe=ee(y,w),_e=z?ie?",":P(w)?fe?E(",","",{groupId:ce}):E(","):"":"";k.push(d([I,h([D,fe?F(J,w,R,_e):[be(J,w,"elements",R),_e],p(J,w,!0)]),D,q],{shouldBreak:ye,id:ce}))}return k.push(X(J),G(J,w,R)),k}function ee(J,w){return J.elements.length>1&&J.elements.every(R=>R&&(Q(R)||ne(R)&&!C(R.argument))&&!C(R,S.Trailing|S.Line,y=>!L(w.originalText,$(y),{backwards:!0})))}function be(J,w,R,y){let k=[],I=[];return J.each(q=>{k.push(I,d(y())),I=[",",b],q.getValue()&&j(q.getValue(),w)&&I.push(D)},R),k}function F(J,w,R,y){let k=[];return J.each((I,q,U)=>{let z=q===U.length-1;k.push([R(),z?y:","]),z||k.push(j(I.getValue(),w)?[f,f]:C(U[q+1],S.Leading|S.Line)?f:b)},"elements"),x(k)}A.exports={printArray:re,printArrayItems:be,isConciselyPrintedArray:ee}}}),K0=Te({"src/language-js/print/call-arguments.js"(m,A){Re();var{printDanglingComments:p}=Ir(),{getLast:b,getPenultimate:D}=De(),{getFunctionParameters:f,hasComment:d,CommentCheckFlags:h,isFunctionCompositionArgs:E,isJsxNode:x,isLongCurriedCallExpression:B,shouldPrintComma:L,getCallArguments:P,iterateCallArgumentsPath:C,isNextLineEmpty:S,isCallExpression:j,isStringLiteral:Q,isObjectProperty:ne,isTSTypeExpression:$}=pr(),{builders:{line:X,hardline:G,softline:re,group:ee,indent:be,conditionalGroup:F,ifBreak:J,breakParent:w},utils:{willBreak:R}}=wn(),{ArgExpansionBailout:y}=tn(),{isConciselyPrintedArray:k}=qo();function I(fe,_e,se){let Ue=fe.getValue(),ge=Ue.type==="ImportExpression",ue=P(Ue);if(ue.length===0)return["(",p(fe,_e,!0),")"];if(ie(ue))return["(",se(["arguments",0]),", ",se(["arguments",1]),")"];let qe=!1,rt=!1,Ge=ue.length-1,mt=[];C(fe,($e,we)=>{let Je=$e.getNode(),Ke=[se()];we===Ge||(S(Je,_e)?(we===0&&(rt=!0),qe=!0,Ke.push(",",G,G)):Ke.push(",",X)),mt.push(Ke)});let ve=!(ge||Ue.callee&&Ue.callee.type==="Import")&&L(_e,"all")?",":"";function Ie(){return ee(["(",be([X,...mt]),ve,X,")"],{shouldBreak:!0})}if(qe||fe.getParentNode().type!=="Decorator"&&E(ue))return Ie();let pt=z(ue),dt=U(ue,_e);if(pt||dt){if(pt?mt.slice(1).some(R):mt.slice(0,-1).some(R))return Ie();let $e=[];try{fe.try(()=>{C(fe,(we,Je)=>{pt&&Je===0&&($e=[[se([],{expandFirstArg:!0}),mt.length>1?",":"",rt?G:X,rt?G:""],...mt.slice(1)]),dt&&Je===Ge&&($e=[...mt.slice(0,-1),se([],{expandLastArg:!0})])})})}catch(we){if(we instanceof y)return Ie();throw we}return[mt.some(R)?w:"",F([["(",...$e,")"],pt?["(",ee($e[0],{shouldBreak:!0}),...$e.slice(1),")"]:["(",...mt.slice(0,-1),ee(b($e),{shouldBreak:!0}),")"],Ie()])]}let Jt=["(",be([re,...mt]),J(ve),re,")"];return B(fe)?Jt:ee(Jt,{shouldBreak:mt.some(R)||qe})}function q(fe){let _e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return fe.type==="ObjectExpression"&&(fe.properties.length>0||d(fe))||fe.type==="ArrayExpression"&&(fe.elements.length>0||d(fe))||fe.type==="TSTypeAssertion"&&q(fe.expression)||$(fe)&&q(fe.expression)||fe.type==="FunctionExpression"||fe.type==="ArrowFunctionExpression"&&(!fe.returnType||!fe.returnType.typeAnnotation||fe.returnType.typeAnnotation.type!=="TSTypeReference"||ce(fe.body))&&(fe.body.type==="BlockStatement"||fe.body.type==="ArrowFunctionExpression"&&q(fe.body,!0)||fe.body.type==="ObjectExpression"||fe.body.type==="ArrayExpression"||!_e&&(j(fe.body)||fe.body.type==="ConditionalExpression")||x(fe.body))||fe.type==="DoExpression"||fe.type==="ModuleExpression"}function U(fe,_e){let se=b(fe),Ue=D(fe);return!d(se,h.Leading)&&!d(se,h.Trailing)&&q(se)&&(!Ue||Ue.type!==se.type)&&(fe.length!==2||Ue.type!=="ArrowFunctionExpression"||se.type!=="ArrayExpression")&&!(fe.length>1&&se.type==="ArrayExpression"&&k(se,_e))}function z(fe){if(fe.length!==2)return!1;let[_e,se]=fe;return _e.type==="ModuleExpression"&&ye(se)?!0:!d(_e)&&(_e.type==="FunctionExpression"||_e.type==="ArrowFunctionExpression"&&_e.body.type==="BlockStatement")&&se.type!=="FunctionExpression"&&se.type!=="ArrowFunctionExpression"&&se.type!=="ConditionalExpression"&&!q(se)}function ie(fe){return fe.length===2&&fe[0].type==="ArrowFunctionExpression"&&f(fe[0]).length===0&&fe[0].body.type==="BlockStatement"&&fe[1].type==="ArrayExpression"&&!fe.some(_e=>d(_e))}function ce(fe){return fe.type==="BlockStatement"&&(fe.body.some(_e=>_e.type!=="EmptyStatement")||d(fe,h.Dangling))}function ye(fe){return fe.type==="ObjectExpression"&&fe.properties.length===1&&ne(fe.properties[0])&&fe.properties[0].key.type==="Identifier"&&fe.properties[0].key.name==="type"&&Q(fe.properties[0].value)&&fe.properties[0].value.value==="module"}A.exports=I}}),Z0=Te({"src/language-js/print/member.js"(m,A){Re();var{builders:{softline:p,group:b,indent:D,label:f}}=wn(),{isNumericLiteral:d,isMemberExpression:h,isCallExpression:E}=pr(),{printOptionalToken:x}=Ei();function B(P,C,S){let j=P.getValue(),Q=P.getParentNode(),ne,$=0;do ne=P.getParentNode($),$++;while(ne&&(h(ne)||ne.type==="TSNonNullExpression"));let X=S("object"),G=L(P,C,S),re=ne&&(ne.type==="NewExpression"||ne.type==="BindExpression"||ne.type==="AssignmentExpression"&&ne.left.type!=="Identifier")||j.computed||j.object.type==="Identifier"&&j.property.type==="Identifier"&&!h(Q)||(Q.type==="AssignmentExpression"||Q.type==="VariableDeclarator")&&(E(j.object)&&j.object.arguments.length>0||j.object.type==="TSNonNullExpression"&&E(j.object.expression)&&j.object.expression.arguments.length>0||X.label==="member-chain");return f(X.label==="member-chain"?"member-chain":"member",[X,re?G:b(D([p,G]))])}function L(P,C,S){let j=S("property"),Q=P.getValue(),ne=x(P);return Q.computed?!Q.property||d(Q.property)?[ne,"[",j,"]"]:b([ne,"[",D([p,j]),p,"]"]):[ne,".",j]}A.exports={printMemberExpression:B,printMemberLookup:L}}}),L2=Te({"src/language-js/print/member-chain.js"(m,A){Re();var{printComments:p}=Ir(),{getLast:b,isNextLineEmptyAfterIndex:D,getNextNonSpaceNonCommentCharacterIndex:f}=De(),d=no(),{isCallExpression:h,isMemberExpression:E,isFunctionOrArrowExpression:x,isLongCurriedCallExpression:B,isMemberish:L,isNumericLiteral:P,isSimpleCallArgument:C,hasComment:S,CommentCheckFlags:j,isNextLineEmpty:Q}=pr(),{locEnd:ne}=ni(),{builders:{join:$,hardline:X,group:G,indent:re,conditionalGroup:ee,breakParent:be,label:F},utils:{willBreak:J}}=wn(),w=K0(),{printMemberLookup:R}=Z0(),{printOptionalToken:y,printFunctionTypeParameters:k,printBindExpressionCallee:I}=Ei();function q(U,z,ie){let ce=U.getParentNode(),ye=!ce||ce.type==="ExpressionStatement",fe=[];function _e(ln){let{originalText:yn}=z,ut=f(yn,ln,ne);return yn.charAt(ut)===")"?ut!==!1&&D(yn,ut+1):Q(ln,z)}function se(ln){let yn=ln.getValue();h(yn)&&(L(yn.callee)||h(yn.callee))?(fe.unshift({node:yn,printed:[p(ln,[y(ln),k(ln,z,ie),w(ln,z,ie)],z),_e(yn)?X:""]}),ln.call(ut=>se(ut),"callee")):L(yn)?(fe.unshift({node:yn,needsParens:d(ln,z),printed:p(ln,E(yn)?R(ln,z,ie):I(ln,z,ie),z)}),ln.call(ut=>se(ut),"object")):yn.type==="TSNonNullExpression"?(fe.unshift({node:yn,printed:p(ln,"!",z)}),ln.call(ut=>se(ut),"expression")):fe.unshift({node:yn,printed:ie()})}let Ue=U.getValue();fe.unshift({node:Ue,printed:[y(U),k(U,z,ie),w(U,z,ie)]}),Ue.callee&&U.call(ln=>se(ln),"callee");let ge=[],ue=[fe[0]],qe=1;for(;qe<fe.length&&(fe[qe].node.type==="TSNonNullExpression"||h(fe[qe].node)||E(fe[qe].node)&&fe[qe].node.computed&&P(fe[qe].node.property));++qe)ue.push(fe[qe]);if(!h(fe[0].node))for(;qe+1<fe.length&&L(fe[qe].node)&&L(fe[qe+1].node);++qe)ue.push(fe[qe]);ge.push(ue),ue=[];let rt=!1;for(;qe<fe.length;++qe){if(rt&&L(fe[qe].node)){if(fe[qe].node.computed&&P(fe[qe].node.property)){ue.push(fe[qe]);continue}ge.push(ue),ue=[],rt=!1}(h(fe[qe].node)||fe[qe].node.type==="ImportExpression")&&(rt=!0),ue.push(fe[qe]),S(fe[qe].node,j.Trailing)&&(ge.push(ue),ue=[],rt=!1)}ue.length>0&&ge.push(ue);function Ge(ln){return/^[A-Z]|^[$_]+$/.test(ln)}function mt(ln){return ln.length<=z.tabWidth}function ve(ln){let yn=ln[1].length>0&&ln[1][0].node.computed;if(ln[0].length===1){let xe=ln[0][0].node;return xe.type==="ThisExpression"||xe.type==="Identifier"&&(Ge(xe.name)||ye&&mt(xe.name)||yn)}let ut=b(ln[0]).node;return E(ut)&&ut.property.type==="Identifier"&&(Ge(ut.property.name)||yn)}let Ie=ge.length>=2&&!S(ge[1][0].node)&&ve(ge);function pt(ln){let yn=ln.map(ut=>ut.printed);return ln.length>0&&b(ln).needsParens?["(",...yn,")"]:yn}function dt(ln){return ln.length===0?"":re(G([X,$(X,ln.map(pt))]))}let Jt=ge.map(pt),$e=Jt,we=Ie?3:2,Je=ge.flat(),Ke=Je.slice(1,-1).some(ln=>S(ln.node,j.Leading))||Je.slice(0,-1).some(ln=>S(ln.node,j.Trailing))||ge[we]&&S(ge[we][0].node,j.Leading);if(ge.length<=we&&!Ke)return B(U)?$e:G($e);let Et=b(ge[Ie?1:0]).node,_t=!h(Et)&&_e(Et),Bt=[pt(ge[0]),Ie?ge.slice(1,2).map(pt):"",_t?X:"",dt(ge.slice(Ie?2:1))],cn=fe.map(ln=>{let{node:yn}=ln;return yn}).filter(h);function Pn(){let ln=b(b(ge)).node,yn=b(Jt);return h(ln)&&J(yn)&&cn.slice(0,-1).some(ut=>ut.arguments.some(x))}let _n;return Ke||cn.length>2&&cn.some(ln=>!ln.arguments.every(yn=>C(yn,0)))||Jt.slice(0,-1).some(J)||Pn()?_n=G(Bt):_n=[J($e)||_t?be:"",ee([$e,Bt])],F("member-chain",_n)}A.exports=q}}),eg=Te({"src/language-js/print/call-expression.js"(m,A){Re();var{builders:{join:p,group:b}}=wn(),D=no(),{getCallArguments:f,hasFlowAnnotationComment:d,isCallExpression:h,isMemberish:E,isStringLiteral:x,isTemplateOnItsOwnLine:B,isTestCall:L,iterateCallArgumentsPath:P}=pr(),C=L2(),S=K0(),{printOptionalToken:j,printFunctionTypeParameters:Q}=Ei();function ne(X,G,re){let ee=X.getValue(),be=X.getParentNode(),F=ee.type==="NewExpression",J=ee.type==="ImportExpression",w=j(X),R=f(ee);if(R.length>0&&(!J&&!F&&$(ee,be)||R.length===1&&B(R[0],G.originalText)||!F&&L(ee,be))){let I=[];return P(X,()=>{I.push(re())}),[F?"new ":"",re("callee"),w,Q(X,G,re),"(",p(", ",I),")"]}let y=(G.parser==="babel"||G.parser==="babel-flow")&&ee.callee&&ee.callee.type==="Identifier"&&d(ee.callee.trailingComments);if(y&&(ee.callee.trailingComments[0].printed=!0),!J&&!F&&E(ee.callee)&&!X.call(I=>D(I,G),"callee"))return C(X,G,re);let k=[F?"new ":"",J?"import":re("callee"),w,y?`/*:: ${ee.callee.trailingComments[0].value.slice(2).trim()} */`:"",Q(X,G,re),S(X,G,re)];return J||h(ee.callee)?b(k):k}function $(X,G){if(X.callee.type!=="Identifier")return!1;if(X.callee.name==="require")return!0;if(X.callee.name==="define"){let re=f(X);return G.type==="ExpressionStatement"&&(re.length===1||re.length===2&&re[0].type==="ArrayExpression"||re.length===3&&x(re[0])&&re[1].type==="ArrayExpression")}return!1}A.exports={printCallExpression:ne}}}),Uo=Te({"src/language-js/print/assignment.js"(m,A){Re();var{isNonEmptyArray:p,getStringWidth:b}=De(),{builders:{line:D,group:f,indent:d,indentIfBreak:h,lineSuffixBoundary:E},utils:{cleanDoc:x,willBreak:B,canBreak:L}}=wn(),{hasLeadingOwnLineComment:P,isBinaryish:C,isStringLiteral:S,isLiteral:j,isNumericLiteral:Q,isCallExpression:ne,isMemberExpression:$,getCallArguments:X,rawText:G,hasComment:re,isSignedNumericLiteral:ee,isObjectProperty:be}=pr(),{shouldInlineLogicalExpression:F}=sp(),{printCallExpression:J}=eg();function w(ve,Ie,pt,dt,Jt,$e){let we=k(ve,Ie,pt,dt,$e),Je=pt($e,{assignmentLayout:we});switch(we){case"break-after-operator":return f([f(dt),Jt,f(d([D,Je]))]);case"never-break-after-operator":return f([f(dt),Jt," ",Je]);case"fluid":{let Ke=Symbol("assignment");return f([f(dt),Jt,f(d(D),{id:Ke}),E,h(Je,{groupId:Ke})])}case"break-lhs":return f([dt,Jt," ",f(Je)]);case"chain":return[f(dt),Jt,D,Je];case"chain-tail":return[f(dt),Jt,d([D,Je])];case"chain-tail-arrow-chain":return[f(dt),Jt,Je];case"only-left":return dt}}function R(ve,Ie,pt){let dt=ve.getValue();return w(ve,Ie,pt,pt("left"),[" ",dt.operator],"right")}function y(ve,Ie,pt){return w(ve,Ie,pt,pt("id")," =","init")}function k(ve,Ie,pt,dt,Jt){let $e=ve.getValue(),we=$e[Jt];if(!we)return"only-left";let Je=!U(we);if(ve.match(U,z,Et=>!Je||Et.type!=="ExpressionStatement"&&Et.type!=="VariableDeclaration"))return Je?we.type==="ArrowFunctionExpression"&&we.body.type==="ArrowFunctionExpression"?"chain-tail-arrow-chain":"chain-tail":"chain";if(!Je&&U(we.right)||P(Ie.originalText,we))return"break-after-operator";if(we.type==="CallExpression"&&we.callee.name==="require"||Ie.parser==="json5"||Ie.parser==="json")return"never-break-after-operator";if(q($e)||ie($e)||fe($e)||_e($e)&&L(dt))return"break-lhs";let Ke=rt($e,dt,Ie);return ve.call(()=>I(ve,Ie,pt,Ke),Jt)?"break-after-operator":Ke||we.type==="TemplateLiteral"||we.type==="TaggedTemplateExpression"||we.type==="BooleanLiteral"||Q(we)||we.type==="ClassExpression"?"never-break-after-operator":"fluid"}function I(ve,Ie,pt,dt){let Jt=ve.getValue();if(C(Jt)&&!F(Jt))return!0;switch(Jt.type){case"StringLiteralTypeAnnotation":case"SequenceExpression":return!0;case"ConditionalExpression":{let{test:Je}=Jt;return C(Je)&&!F(Je)}case"ClassExpression":return p(Jt.decorators)}if(dt)return!1;let $e=Jt,we=[];for(;;)if($e.type==="UnaryExpression")$e=$e.argument,we.push("argument");else if($e.type==="TSNonNullExpression")$e=$e.expression,we.push("expression");else break;return!!(S($e)||ve.call(()=>ge(ve,Ie,pt),...we))}function q(ve){if(z(ve)){let Ie=ve.left||ve.id;return Ie.type==="ObjectPattern"&&Ie.properties.length>2&&Ie.properties.some(pt=>be(pt)&&(!pt.shorthand||pt.value&&pt.value.type==="AssignmentPattern"))}return!1}function U(ve){return ve.type==="AssignmentExpression"}function z(ve){return U(ve)||ve.type==="VariableDeclarator"}function ie(ve){let Ie=ce(ve);if(p(Ie)){let pt=ve.type==="TSTypeAliasDeclaration"?"constraint":"bound";if(Ie.length>1&&Ie.some(dt=>dt[pt]||dt.default))return!0}return!1}function ce(ve){return ye(ve)&&ve.typeParameters&&ve.typeParameters.params?ve.typeParameters.params:null}function ye(ve){return ve.type==="TSTypeAliasDeclaration"||ve.type==="TypeAlias"}function fe(ve){if(ve.type!=="VariableDeclarator")return!1;let{typeAnnotation:Ie}=ve.id;if(!Ie||!Ie.typeAnnotation)return!1;let pt=se(Ie.typeAnnotation);return p(pt)&&pt.length>1&&pt.some(dt=>p(se(dt))||dt.type==="TSConditionalType")}function _e(ve){return ve.type==="VariableDeclarator"&&ve.init&&ve.init.type==="ArrowFunctionExpression"}function se(ve){return Ue(ve)&&ve.typeParameters&&ve.typeParameters.params?ve.typeParameters.params:null}function Ue(ve){return ve.type==="TSTypeReference"||ve.type==="GenericTypeAnnotation"}function ge(ve,Ie,pt){let dt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,Jt=ve.getValue(),$e=()=>ge(ve,Ie,pt,!0);if(Jt.type==="TSNonNullExpression")return ve.call($e,"expression");if(ne(Jt)){if(J(ve,Ie,pt).label==="member-chain")return!1;let we=X(Jt);return!(we.length===0||we.length===1&&qe(we[0],Ie))||Ge(Jt,pt)?!1:ve.call($e,"callee")}return $(Jt)?ve.call($e,"object"):dt&&(Jt.type==="Identifier"||Jt.type==="ThisExpression")}var ue=.25;function qe(ve,Ie){let{printWidth:pt}=Ie;if(re(ve))return!1;let dt=pt*ue;if(ve.type==="ThisExpression"||ve.type==="Identifier"&&ve.name.length<=dt||ee(ve)&&!re(ve.argument))return!0;let Jt=ve.type==="Literal"&&"regex"in ve&&ve.regex.pattern||ve.type==="RegExpLiteral"&&ve.pattern;return Jt?Jt.length<=dt:S(ve)?G(ve).length<=dt:ve.type==="TemplateLiteral"?ve.expressions.length===0&&ve.quasis[0].value.raw.length<=dt&&!ve.quasis[0].value.raw.includes(`
209
- `):j(ve)}function rt(ve,Ie,pt){return be(ve)?(Ie=x(Ie),typeof Ie=="string"&&b(Ie)<pt.tabWidth+3):!1}function Ge(ve,Ie){let pt=mt(ve);if(p(pt)){if(pt.length>1)return!0;if(pt.length===1){let Jt=pt[0];if(Jt.type==="TSUnionType"||Jt.type==="UnionTypeAnnotation"||Jt.type==="TSIntersectionType"||Jt.type==="IntersectionTypeAnnotation"||Jt.type==="TSTypeLiteral"||Jt.type==="ObjectTypeAnnotation")return!0}let dt=ve.typeParameters?"typeParameters":"typeArguments";if(B(Ie(dt)))return!0}return!1}function mt(ve){return ve.typeParameters&&ve.typeParameters.params||ve.typeArguments&&ve.typeArguments.params}A.exports={printVariableDeclarator:y,printAssignmentExpression:R,printAssignment:w,isArrowFunctionVariableDeclarator:_e}}}),vl=Te({"src/language-js/print/function-parameters.js"(m,A){Re();var{getNextNonSpaceNonCommentCharacter:p}=De(),{printDanglingComments:b}=Ir(),{builders:{line:D,hardline:f,softline:d,group:h,indent:E,ifBreak:x},utils:{removeLines:B,willBreak:L}}=wn(),{getFunctionParameters:P,iterateFunctionParametersPath:C,isSimpleType:S,isTestCall:j,isTypeAnnotationAFunction:Q,isObjectType:ne,isObjectTypePropertyAFunction:$,hasRestParameter:X,shouldPrintComma:G,hasComment:re,isNextLineEmpty:ee}=pr(),{locEnd:be}=ni(),{ArgExpansionBailout:F}=tn(),{printFunctionTypeParameters:J}=Ei();function w(I,q,U,z,ie){let ce=I.getValue(),ye=P(ce),fe=ie?J(I,U,q):"";if(ye.length===0)return[fe,"(",b(I,U,!0,qe=>p(U.originalText,qe,be)===")"),")"];let _e=I.getParentNode(),se=j(_e),Ue=R(ce),ge=[];if(C(I,(qe,rt)=>{let Ge=rt===ye.length-1;Ge&&ce.rest&&ge.push("..."),ge.push(q()),!Ge&&(ge.push(","),se||Ue?ge.push(" "):ee(ye[rt],U)?ge.push(f,f):ge.push(D))}),z){if(L(fe)||L(ge))throw new F;return h([B(fe),"(",B(ge),")"])}let ue=ye.every(qe=>!qe.decorators);return Ue&&ue?[fe,"(",...ge,")"]:se?[fe,"(",...ge,")"]:($(_e)||Q(_e)||_e.type==="TypeAlias"||_e.type==="UnionTypeAnnotation"||_e.type==="TSUnionType"||_e.type==="IntersectionTypeAnnotation"||_e.type==="FunctionTypeAnnotation"&&_e.returnType===ce)&&ye.length===1&&ye[0].name===null&&ce.this!==ye[0]&&ye[0].typeAnnotation&&ce.typeParameters===null&&S(ye[0].typeAnnotation)&&!ce.rest?U.arrowParens==="always"?["(",...ge,")"]:ge:[fe,"(",E([d,...ge]),x(!X(ce)&&G(U,"all")?",":""),d,")"]}function R(I){if(!I)return!1;let q=P(I);if(q.length!==1)return!1;let[U]=q;return!re(U)&&(U.type==="ObjectPattern"||U.type==="ArrayPattern"||U.type==="Identifier"&&U.typeAnnotation&&(U.typeAnnotation.type==="TypeAnnotation"||U.typeAnnotation.type==="TSTypeAnnotation")&&ne(U.typeAnnotation.typeAnnotation)||U.type==="FunctionTypeParam"&&ne(U.typeAnnotation)||U.type==="AssignmentPattern"&&(U.left.type==="ObjectPattern"||U.left.type==="ArrayPattern")&&(U.right.type==="Identifier"||U.right.type==="ObjectExpression"&&U.right.properties.length===0||U.right.type==="ArrayExpression"&&U.right.elements.length===0))}function y(I){let q;return I.returnType?(q=I.returnType,q.typeAnnotation&&(q=q.typeAnnotation)):I.typeAnnotation&&(q=I.typeAnnotation),q}function k(I,q){let U=y(I);if(!U)return!1;let z=I.typeParameters&&I.typeParameters.params;if(z){if(z.length>1)return!1;if(z.length===1){let ie=z[0];if(ie.constraint||ie.default)return!1}}return P(I).length===1&&(ne(U)||L(q))}A.exports={printFunctionParameters:w,shouldHugFunctionParameters:R,shouldGroupFunctionParameters:k}}}),El=Te({"src/language-js/print/type-annotation.js"(m,A){Re();var{printComments:p,printDanglingComments:b}=Ir(),{isNonEmptyArray:D}=De(),{builders:{group:f,join:d,line:h,softline:E,indent:x,align:B,ifBreak:L}}=wn(),P=no(),{locStart:C}=ni(),{isSimpleType:S,isObjectType:j,hasLeadingOwnLineComment:Q,isObjectTypePropertyAFunction:ne,shouldPrintComma:$}=pr(),{printAssignment:X}=Uo(),{printFunctionParameters:G,shouldGroupFunctionParameters:re}=vl(),{printArrayItems:ee}=qo();function be(U){if(S(U)||j(U))return!0;if(U.type==="UnionTypeAnnotation"||U.type==="TSUnionType"){let z=U.types.filter(ce=>ce.type==="VoidTypeAnnotation"||ce.type==="TSVoidKeyword"||ce.type==="NullLiteralTypeAnnotation"||ce.type==="TSNullKeyword").length,ie=U.types.some(ce=>ce.type==="ObjectTypeAnnotation"||ce.type==="TSTypeLiteral"||ce.type==="GenericTypeAnnotation"||ce.type==="TSTypeReference");if(U.types.length-1===z&&ie)return!0}return!1}function F(U,z,ie){let ce=z.semi?";":"",ye=U.getValue(),fe=[];return fe.push("opaque type ",ie("id"),ie("typeParameters")),ye.supertype&&fe.push(": ",ie("supertype")),ye.impltype&&fe.push(" = ",ie("impltype")),fe.push(ce),fe}function J(U,z,ie){let ce=z.semi?";":"",ye=U.getValue(),fe=[];ye.declare&&fe.push("declare "),fe.push("type ",ie("id"),ie("typeParameters"));let _e=ye.type==="TSTypeAliasDeclaration"?"typeAnnotation":"right";return[X(U,z,ie,fe," =",_e),ce]}function w(U,z,ie){let ce=U.getValue(),ye=U.map(ie,"types"),fe=[],_e=!1;for(let se=0;se<ye.length;++se)se===0?fe.push(ye[se]):j(ce.types[se-1])&&j(ce.types[se])?fe.push([" & ",_e?x(ye[se]):ye[se]]):!j(ce.types[se-1])&&!j(ce.types[se])?fe.push(x([" &",h,ye[se]])):(se>1&&(_e=!0),fe.push(" & ",se>1?x(ye[se]):ye[se]));return f(fe)}function R(U,z,ie){let ce=U.getValue(),ye=U.getParentNode(),fe=ye.type!=="TypeParameterInstantiation"&&ye.type!=="TSTypeParameterInstantiation"&&ye.type!=="GenericTypeAnnotation"&&ye.type!=="TSTypeReference"&&ye.type!=="TSTypeAssertion"&&ye.type!=="TupleTypeAnnotation"&&ye.type!=="TSTupleType"&&!(ye.type==="FunctionTypeParam"&&!ye.name&&U.getParentNode(1).this!==ye)&&!((ye.type==="TypeAlias"||ye.type==="VariableDeclarator"||ye.type==="TSTypeAliasDeclaration")&&Q(z.originalText,ce)),_e=be(ce),se=U.map(ue=>{let qe=ie();return _e||(qe=B(2,qe)),p(ue,qe,z)},"types");if(_e)return d(" | ",se);let Ue=fe&&!Q(z.originalText,ce),ge=[L([Ue?h:"","| "]),d([h,"| "],se)];return P(U,z)?f([x(ge),E]):ye.type==="TupleTypeAnnotation"&&ye.types.length>1||ye.type==="TSTupleType"&&ye.elementTypes.length>1?f([x([L(["(",E]),ge]),E,L(")")]):f(fe?x(ge):ge)}function y(U,z,ie){let ce=U.getValue(),ye=[],fe=U.getParentNode(0),_e=U.getParentNode(1),se=U.getParentNode(2),Ue=ce.type==="TSFunctionType"||!((fe.type==="ObjectTypeProperty"||fe.type==="ObjectTypeInternalSlot")&&!fe.variance&&!fe.optional&&C(fe)===C(ce)||fe.type==="ObjectTypeCallProperty"||se&&se.type==="DeclareFunction"),ge=Ue&&(fe.type==="TypeAnnotation"||fe.type==="TSTypeAnnotation"),ue=ge&&Ue&&(fe.type==="TypeAnnotation"||fe.type==="TSTypeAnnotation")&&_e.type==="ArrowFunctionExpression";ne(fe)&&(Ue=!0,ge=!0),ue&&ye.push("(");let qe=G(U,ie,z,!1,!0),rt=ce.returnType||ce.predicate||ce.typeAnnotation?[Ue?" => ":": ",ie("returnType"),ie("predicate"),ie("typeAnnotation")]:"",Ge=re(ce,rt);return ye.push(Ge?f(qe):qe),rt&&ye.push(rt),ue&&ye.push(")"),f(ye)}function k(U,z,ie){let ce=U.getValue(),ye=ce.type==="TSTupleType"?"elementTypes":"types",fe=ce[ye],_e=D(fe),se=_e?E:"";return f(["[",x([se,ee(U,z,ye,ie)]),L(_e&&$(z,"all")?",":""),b(U,z,!0),se,"]"])}function I(U,z,ie){let ce=U.getValue(),ye=ce.type==="OptionalIndexedAccessType"&&ce.optional?"?.[":"[";return[ie("objectType"),ye,ie("indexType"),"]"]}function q(U,z,ie){let ce=U.getValue();return[ce.postfix?"":ie,z("typeAnnotation"),ce.postfix?ie:""]}A.exports={printOpaqueType:F,printTypeAlias:J,printIntersectionType:w,printUnionType:R,printFunctionType:y,printTupleType:k,printIndexedAccessType:I,shouldHugType:be,printJSDocType:q}}}),Al=Te({"src/language-js/print/type-parameters.js"(m,A){Re();var{printDanglingComments:p}=Ir(),{builders:{join:b,line:D,hardline:f,softline:d,group:h,indent:E,ifBreak:x}}=wn(),{isTestCall:B,hasComment:L,CommentCheckFlags:P,isTSXFile:C,shouldPrintComma:S,getFunctionParameters:j,isObjectType:Q,getTypeScriptMappedTypeModifier:ne}=pr(),{createGroupIdMapper:$}=De(),{shouldHugType:X}=El(),{isArrowFunctionVariableDeclarator:G}=Uo(),re=$("typeParameters");function ee(J,w,R,y){let k=J.getValue();if(!k[y])return"";if(!Array.isArray(k[y]))return R(y);let I=J.getNode(2),q=I&&B(I),U=J.match(ie=>!(ie[y].length===1&&Q(ie[y][0])),void 0,(ie,ce)=>ce==="typeAnnotation",ie=>ie.type==="Identifier",G);if(k[y].length===0||!U&&(q||k[y].length===1&&(k[y][0].type==="NullableTypeAnnotation"||X(k[y][0]))))return["<",b(", ",J.map(R,y)),be(J,w),">"];let z=k.type==="TSTypeParameterInstantiation"?"":j(k).length===1&&C(w)&&!k[y][0].constraint&&J.getParentNode().type==="ArrowFunctionExpression"?",":S(w,"all")?x(","):"";return h(["<",E([d,b([",",D],J.map(R,y))]),z,d,">"],{id:re(k)})}function be(J,w){let R=J.getValue();if(!L(R,P.Dangling))return"";let y=!L(R,P.Line),k=p(J,w,y);return y?k:[k,f]}function F(J,w,R){let y=J.getValue(),k=[y.type==="TSTypeParameter"&&y.const?"const ":""],I=J.getParentNode();return I.type==="TSMappedType"?(I.readonly&&k.push(ne(I.readonly,"readonly")," "),k.push("[",R("name")),y.constraint&&k.push(" in ",R("constraint")),I.nameType&&k.push(" as ",J.callParent(()=>R("nameType"))),k.push("]"),k):(y.variance&&k.push(R("variance")),y.in&&k.push("in "),y.out&&k.push("out "),k.push(R("name")),y.bound&&k.push(": ",R("bound")),y.constraint&&k.push(" extends ",R("constraint")),y.default&&k.push(" = ",R("default")),k)}A.exports={printTypeParameter:F,printTypeParameters:ee,getTypeParametersGroupId:re}}}),Wo=Te({"src/language-js/print/property.js"(m,A){Re();var{printComments:p}=Ir(),{printString:b,printNumber:D}=De(),{isNumericLiteral:f,isSimpleNumber:d,isStringLiteral:h,isStringPropSafeToUnquote:E,rawText:x}=pr(),{printAssignment:B}=Uo(),L=new WeakMap;function P(S,j,Q){let ne=S.getNode();if(ne.computed)return["[",Q("key"),"]"];let $=S.getParentNode(),{key:X}=ne;if(j.quoteProps==="consistent"&&!L.has($)){let G=($.properties||$.body||$.members).some(re=>!re.computed&&re.key&&h(re.key)&&!E(re,j));L.set($,G)}if((X.type==="Identifier"||f(X)&&d(D(x(X)))&&String(X.value)===D(x(X))&&!(j.parser==="typescript"||j.parser==="babel-ts"))&&(j.parser==="json"||j.quoteProps==="consistent"&&L.get($))){let G=b(JSON.stringify(X.type==="Identifier"?X.name:X.value.toString()),j);return S.call(re=>p(re,G,j),"key")}return E(ne,j)&&(j.quoteProps==="as-needed"||j.quoteProps==="consistent"&&!L.get($))?S.call(G=>p(G,/^\d/.test(X.value)?D(X.value):X.value,j),"key"):Q("key")}function C(S,j,Q){return S.getValue().shorthand?Q("value"):B(S,j,Q,P(S,j,Q),":","value")}A.exports={printProperty:C,printPropertyKey:P}}}),Cl=Te({"src/language-js/print/function.js"(m,A){Re();var p=Vo(),{printDanglingComments:b,printCommentsSeparately:D}=Ir(),f=Vr(),{getNextNonSpaceNonCommentCharacterIndex:d}=De(),{builders:{line:h,softline:E,group:x,indent:B,ifBreak:L,hardline:P,join:C,indentIfBreak:S},utils:{removeLines:j,willBreak:Q}}=wn(),{ArgExpansionBailout:ne}=tn(),{getFunctionParameters:$,hasLeadingOwnLineComment:X,isFlowAnnotationComment:G,isJsxNode:re,isTemplateOnItsOwnLine:ee,shouldPrintComma:be,startsWithNoLookaheadToken:F,isBinaryish:J,isLineComment:w,hasComment:R,getComments:y,CommentCheckFlags:k,isCallLikeExpression:I,isCallExpression:q,getCallArguments:U,hasNakedLeftSide:z,getLeftSide:ie}=pr(),{locEnd:ce}=ni(),{printFunctionParameters:ye,shouldGroupFunctionParameters:fe}=vl(),{printPropertyKey:_e}=Wo(),{printFunctionTypeParameters:se}=Ei();function Ue(we,Je,Ke,Et){let _t=we.getValue(),Bt=!1;if((_t.type==="FunctionDeclaration"||_t.type==="FunctionExpression")&&Et&&Et.expandLastArg){let yn=we.getParentNode();q(yn)&&U(yn).length>1&&(Bt=!0)}let cn=[];_t.type==="TSDeclareFunction"&&_t.declare&&cn.push("declare "),_t.async&&cn.push("async "),_t.generator?cn.push("function* "):cn.push("function "),_t.id&&cn.push(Je("id"));let Pn=ye(we,Je,Ke,Bt),_n=Ie(we,Je,Ke),ln=fe(_t,_n);return cn.push(se(we,Ke,Je),x([ln?x(Pn):Pn,_n]),_t.body?" ":"",Je("body")),Ke.semi&&(_t.declare||!_t.body)&&cn.push(";"),cn}function ge(we,Je,Ke){let Et=we.getNode(),{kind:_t}=Et,Bt=Et.value||Et,cn=[];return!_t||_t==="init"||_t==="method"||_t==="constructor"?Bt.async&&cn.push("async "):(p.ok(_t==="get"||_t==="set"),cn.push(_t," ")),Bt.generator&&cn.push("*"),cn.push(_e(we,Je,Ke),Et.optional||Et.key.optional?"?":""),Et===Bt?cn.push(ue(we,Je,Ke)):Bt.type==="FunctionExpression"?cn.push(we.call(Pn=>ue(Pn,Je,Ke),"value")):cn.push(Ke("value")),cn}function ue(we,Je,Ke){let Et=we.getNode(),_t=ye(we,Ke,Je),Bt=Ie(we,Ke,Je),cn=fe(Et,Bt),Pn=[se(we,Je,Ke),x([cn?x(_t):_t,Bt])];return Et.body?Pn.push(" ",Ke("body")):Pn.push(Je.semi?";":""),Pn}function qe(we,Je,Ke,Et){let _t=we.getValue(),Bt=[];if(_t.async&&Bt.push("async "),ve(we,Je))Bt.push(Ke(["params",0]));else{let Pn=Et&&(Et.expandLastArg||Et.expandFirstArg),_n=Ie(we,Ke,Je);if(Pn){if(Q(_n))throw new ne;_n=x(j(_n))}Bt.push(x([ye(we,Ke,Je,Pn,!0),_n]))}let cn=b(we,Je,!0,Pn=>{let _n=d(Je.originalText,Pn,ce);return _n!==!1&&Je.originalText.slice(_n,_n+2)==="=>"});return cn&&Bt.push(" ",cn),Bt}function rt(we,Je,Ke,Et,_t,Bt){let cn=we.getName(),Pn=we.getParentNode(),_n=I(Pn)&&cn==="callee",ln=!!(Je&&Je.assignmentLayout),yn=Bt.body.type!=="BlockStatement"&&Bt.body.type!=="ObjectExpression"&&Bt.body.type!=="SequenceExpression",ut=_n&&yn||Je&&Je.assignmentLayout==="chain-tail-arrow-chain",xe=Symbol("arrow-chain");return Bt.body.type==="SequenceExpression"&&(_t=x(["(",B([E,_t]),E,")"])),x([x(B([_n||ln?E:"",x(C([" =>",h],Ke),{shouldBreak:Et})]),{id:xe,shouldBreak:ut})," =>",S(yn?B([h,_t]):[" ",_t],{groupId:xe}),_n?L(E,"",{groupId:xe}):""])}function Ge(we,Je,Ke,Et){let _t=we.getValue(),Bt=[],cn=[],Pn=!1;if(function xe(){let ht=qe(we,Je,Ke,Et);if(Bt.length===0)Bt.push(ht);else{let{leading:Oe,trailing:ft}=D(we,Je);Bt.push([Oe,ht]),cn.unshift(ft)}Pn=Pn||_t.returnType&&$(_t).length>0||_t.typeParameters||$(_t).some(Oe=>Oe.type!=="Identifier"),_t.body.type!=="ArrowFunctionExpression"||Et&&Et.expandLastArg?cn.unshift(Ke("body",Et)):(_t=_t.body,we.call(xe,"body"))}(),Bt.length>1)return rt(we,Et,Bt,Pn,cn,_t);let _n=Bt;if(_n.push(" =>"),!X(Je.originalText,_t.body)&&(_t.body.type==="ArrayExpression"||_t.body.type==="ObjectExpression"||_t.body.type==="BlockStatement"||re(_t.body)||ee(_t.body,Je.originalText)||_t.body.type==="ArrowFunctionExpression"||_t.body.type==="DoExpression"))return x([..._n," ",cn]);if(_t.body.type==="SequenceExpression")return x([..._n,x([" (",B([E,cn]),E,")"])]);let ln=(Et&&Et.expandLastArg||we.getParentNode().type==="JSXExpressionContainer")&&!R(_t),yn=Et&&Et.expandLastArg&&be(Je,"all"),ut=_t.body.type==="ConditionalExpression"&&!F(_t.body,xe=>xe.type==="ObjectExpression");return x([..._n,x([B([h,ut?L("","("):"",cn,ut?L("",")"):""]),ln?[L(yn?",":""),E]:""])])}function mt(we){let Je=$(we);return Je.length===1&&!we.typeParameters&&!R(we,k.Dangling)&&Je[0].type==="Identifier"&&!Je[0].typeAnnotation&&!R(Je[0])&&!Je[0].optional&&!we.predicate&&!we.returnType}function ve(we,Je){if(Je.arrowParens==="always")return!1;if(Je.arrowParens==="avoid"){let Ke=we.getValue();return mt(Ke)}return!1}function Ie(we,Je,Ke){let Et=we.getValue(),_t=Je("returnType");if(Et.returnType&&G(Ke.originalText,Et.returnType))return[" /*: ",_t," */"];let Bt=[_t];return Et.returnType&&Et.returnType.typeAnnotation&&Bt.unshift(": "),Et.predicate&&Bt.push(Et.returnType?" ":": ",Je("predicate")),Bt}function pt(we,Je,Ke){let Et=we.getValue(),_t=Je.semi?";":"",Bt=[];Et.argument&&($e(Je,Et.argument)?Bt.push([" (",B([P,Ke("argument")]),P,")"]):J(Et.argument)||Et.argument.type==="SequenceExpression"?Bt.push(x([L(" ("," "),B([E,Ke("argument")]),E,L(")")])):Bt.push(" ",Ke("argument")));let cn=y(Et),Pn=f(cn),_n=Pn&&w(Pn);return _n&&Bt.push(_t),R(Et,k.Dangling)&&Bt.push(" ",b(we,Je,!0)),_n||Bt.push(_t),Bt}function dt(we,Je,Ke){return["return",pt(we,Je,Ke)]}function Jt(we,Je,Ke){return["throw",pt(we,Je,Ke)]}function $e(we,Je){if(X(we.originalText,Je))return!0;if(z(Je)){let Ke=Je,Et;for(;Et=ie(Ke);)if(Ke=Et,X(we.originalText,Ke))return!0}return!1}A.exports={printFunction:Ue,printArrowFunction:Ge,printMethod:ge,printReturnStatement:dt,printThrowStatement:Jt,printMethodInternal:ue,shouldPrintParamsWithoutParens:ve}}}),ap=Te({"src/language-js/print/decorators.js"(m,A){Re();var{isNonEmptyArray:p,hasNewline:b}=De(),{builders:{line:D,hardline:f,join:d,breakParent:h,group:E}}=wn(),{locStart:x,locEnd:B}=ni(),{getParentExportDeclaration:L}=pr();function P(ne,$,X){let G=ne.getValue();return E([d(D,ne.map(X,"decorators")),j(G,$)?f:D])}function C(ne,$,X){return[d(f,ne.map(X,"declaration","decorators")),f]}function S(ne,$,X){let G=ne.getValue(),{decorators:re}=G;if(!p(re)||Q(ne.getParentNode()))return;let ee=G.type==="ClassExpression"||G.type==="ClassDeclaration"||j(G,$);return[L(ne)?f:ee?h:"",d(D,ne.map(X,"decorators")),D]}function j(ne,$){return ne.decorators.some(X=>b($.originalText,B(X)))}function Q(ne){if(ne.type!=="ExportDefaultDeclaration"&&ne.type!=="ExportNamedDeclaration"&&ne.type!=="DeclareExportDeclaration")return!1;let $=ne.declaration&&ne.declaration.decorators;return p($)&&x(ne)===x($[0])}A.exports={printDecorators:S,printClassMemberDecorators:P,printDecoratorsBeforeExport:C,hasDecoratorsBeforeExport:Q}}}),Go=Te({"src/language-js/print/class.js"(m,A){Re();var{isNonEmptyArray:p,createGroupIdMapper:b}=De(),{printComments:D,printDanglingComments:f}=Ir(),{builders:{join:d,line:h,hardline:E,softline:x,group:B,indent:L,ifBreak:P}}=wn(),{hasComment:C,CommentCheckFlags:S}=pr(),{getTypeParametersGroupId:j}=Al(),{printMethod:Q}=Cl(),{printOptionalToken:ne,printTypeAnnotation:$,printDefiniteToken:X}=Ei(),{printPropertyKey:G}=Wo(),{printAssignment:re}=Uo(),{printClassMemberDecorators:ee}=ap();function be(U,z,ie){let ce=U.getValue(),ye=[];ce.declare&&ye.push("declare "),ce.abstract&&ye.push("abstract "),ye.push("class");let fe=ce.id&&C(ce.id,S.Trailing)||ce.typeParameters&&C(ce.typeParameters,S.Trailing)||ce.superClass&&C(ce.superClass)||p(ce.extends)||p(ce.mixins)||p(ce.implements),_e=[],se=[];if(ce.id&&_e.push(" ",ie("id")),_e.push(ie("typeParameters")),ce.superClass){let Ue=[k(U,z,ie),ie("superTypeParameters")],ge=U.call(ue=>["extends ",D(ue,Ue,z)],"superClass");fe?se.push(h,B(ge)):se.push(" ",ge)}else se.push(y(U,z,ie,"extends"));if(se.push(y(U,z,ie,"mixins"),y(U,z,ie,"implements")),fe){let Ue;R(ce)?Ue=[..._e,L(se)]:Ue=L([..._e,se]),ye.push(B(Ue,{id:F(ce)}))}else ye.push(..._e,...se);return ye.push(" ",ie("body")),ye}var F=b("heritageGroup");function J(U){return P(E,"",{groupId:F(U)})}function w(U){return["superClass","extends","mixins","implements"].filter(z=>!!U[z]).length>1}function R(U){return U.typeParameters&&!C(U.typeParameters,S.Trailing|S.Line)&&!w(U)}function y(U,z,ie,ce){let ye=U.getValue();if(!p(ye[ce]))return"";let fe=f(U,z,!0,_e=>{let{marker:se}=_e;return se===ce});return[R(ye)?P(" ",h,{groupId:j(ye.typeParameters)}):h,fe,fe&&E,ce,B(L([h,d([",",h],U.map(ie,ce))]))]}function k(U,z,ie){let ce=ie("superClass");return U.getParentNode().type==="AssignmentExpression"?B(P(["(",L([x,ce]),x,")"],ce)):ce}function I(U,z,ie){let ce=U.getValue(),ye=[];return p(ce.decorators)&&ye.push(ee(U,z,ie)),ce.accessibility&&ye.push(ce.accessibility+" "),ce.readonly&&ye.push("readonly "),ce.declare&&ye.push("declare "),ce.static&&ye.push("static "),(ce.type==="TSAbstractMethodDefinition"||ce.abstract)&&ye.push("abstract "),ce.override&&ye.push("override "),ye.push(Q(U,z,ie)),ye}function q(U,z,ie){let ce=U.getValue(),ye=[],fe=z.semi?";":"";return p(ce.decorators)&&ye.push(ee(U,z,ie)),ce.accessibility&&ye.push(ce.accessibility+" "),ce.declare&&ye.push("declare "),ce.static&&ye.push("static "),(ce.type==="TSAbstractPropertyDefinition"||ce.type==="TSAbstractAccessorProperty"||ce.abstract)&&ye.push("abstract "),ce.override&&ye.push("override "),ce.readonly&&ye.push("readonly "),ce.variance&&ye.push(ie("variance")),(ce.type==="ClassAccessorProperty"||ce.type==="AccessorProperty"||ce.type==="TSAbstractAccessorProperty")&&ye.push("accessor "),ye.push(G(U,z,ie),ne(U),X(U),$(U,z,ie)),[re(U,z,ie,ye," =","value"),fe]}A.exports={printClass:be,printClassMethod:I,printClassProperty:q,printHardlineAfterHeritage:J}}}),tg=Te({"src/language-js/print/interface.js"(m,A){Re();var{isNonEmptyArray:p}=De(),{builders:{join:b,line:D,group:f,indent:d,ifBreak:h}}=wn(),{hasComment:E,identity:x,CommentCheckFlags:B}=pr(),{getTypeParametersGroupId:L}=Al(),{printTypeScriptModifiers:P}=Ei();function C(S,j,Q){let ne=S.getValue(),$=[];ne.declare&&$.push("declare "),ne.type==="TSInterfaceDeclaration"&&$.push(ne.abstract?"abstract ":"",P(S,j,Q)),$.push("interface");let X=[],G=[];ne.type!=="InterfaceTypeAnnotation"&&X.push(" ",Q("id"),Q("typeParameters"));let re=ne.typeParameters&&!E(ne.typeParameters,B.Trailing|B.Line);return p(ne.extends)&&G.push(re?h(" ",D,{groupId:L(ne.typeParameters)}):D,"extends ",(ne.extends.length===1?x:d)(b([",",D],S.map(Q,"extends")))),ne.id&&E(ne.id,B.Trailing)||p(ne.extends)?re?$.push(f([...X,d(G)])):$.push(f(d([...X,...G]))):$.push(...X,...G),$.push(" ",Q("body")),f($)}A.exports={printInterface:C}}}),ng=Te({"src/language-js/print/module.js"(m,A){Re();var{isNonEmptyArray:p}=De(),{builders:{softline:b,group:D,indent:f,join:d,line:h,ifBreak:E,hardline:x}}=wn(),{printDanglingComments:B}=Ir(),{hasComment:L,CommentCheckFlags:P,shouldPrintComma:C,needsHardlineAfterDanglingComment:S,isStringLiteral:j,rawText:Q}=pr(),{locStart:ne,hasSameLoc:$}=ni(),{hasDecoratorsBeforeExport:X,printDecoratorsBeforeExport:G}=ap();function re(q,U,z){let ie=q.getValue(),ce=U.semi?";":"",ye=[],{importKind:fe}=ie;return ye.push("import"),fe&&fe!=="value"&&ye.push(" ",fe),ye.push(w(q,U,z),J(q,U,z),y(q,U,z),ce),ye}function ee(q,U,z){let ie=q.getValue(),ce=[];X(ie)&&ce.push(G(q,U,z));let{type:ye,exportKind:fe,declaration:_e}=ie;return ce.push("export"),(ie.default||ye==="ExportDefaultDeclaration")&&ce.push(" default"),L(ie,P.Dangling)&&(ce.push(" ",B(q,U,!0)),S(ie)&&ce.push(x)),_e?ce.push(" ",z("declaration")):ce.push(fe==="type"?" type":"",w(q,U,z),J(q,U,z),y(q,U,z)),F(ie,U)&&ce.push(";"),ce}function be(q,U,z){let ie=q.getValue(),ce=U.semi?";":"",ye=[],{exportKind:fe,exported:_e}=ie;return ye.push("export"),fe==="type"&&ye.push(" type"),ye.push(" *"),_e&&ye.push(" as ",z("exported")),ye.push(J(q,U,z),y(q,U,z),ce),ye}function F(q,U){if(!U.semi)return!1;let{type:z,declaration:ie}=q,ce=q.default||z==="ExportDefaultDeclaration";if(!ie)return!0;let{type:ye}=ie;return!!(ce&&ye!=="ClassDeclaration"&&ye!=="FunctionDeclaration"&&ye!=="TSInterfaceDeclaration"&&ye!=="DeclareClass"&&ye!=="DeclareFunction"&&ye!=="TSDeclareFunction"&&ye!=="EnumDeclaration")}function J(q,U,z){let ie=q.getValue();if(!ie.source)return"";let ce=[];return R(ie,U)||ce.push(" from"),ce.push(" ",z("source")),ce}function w(q,U,z){let ie=q.getValue();if(R(ie,U))return"";let ce=[" "];if(p(ie.specifiers)){let ye=[],fe=[];q.each(()=>{let _e=q.getValue().type;if(_e==="ExportNamespaceSpecifier"||_e==="ExportDefaultSpecifier"||_e==="ImportNamespaceSpecifier"||_e==="ImportDefaultSpecifier")ye.push(z());else if(_e==="ExportSpecifier"||_e==="ImportSpecifier")fe.push(z());else throw new Error(`Unknown specifier type ${JSON.stringify(_e)}`)},"specifiers"),ce.push(d(", ",ye)),fe.length>0&&(ye.length>0&&ce.push(", "),fe.length>1||ye.length>0||ie.specifiers.some(_e=>L(_e))?ce.push(D(["{",f([U.bracketSpacing?h:b,d([",",h],fe)]),E(C(U)?",":""),U.bracketSpacing?h:b,"}"])):ce.push(["{",U.bracketSpacing?" ":"",...fe,U.bracketSpacing?" ":"","}"]))}else ce.push("{}");return ce}function R(q,U){let{type:z,importKind:ie,source:ce,specifiers:ye}=q;return z!=="ImportDeclaration"||p(ye)||ie==="type"?!1:!/{\s*}/.test(U.originalText.slice(ne(q),ne(ce)))}function y(q,U,z){let ie=q.getNode();return p(ie.assertions)?[" assert {",U.bracketSpacing?" ":"",d(", ",q.map(z,"assertions")),U.bracketSpacing?" ":"","}"]:""}function k(q,U,z){let ie=q.getNode(),{type:ce}=ie,ye=[],fe=ce==="ImportSpecifier"?ie.importKind:ie.exportKind;fe&&fe!=="value"&&ye.push(fe," ");let _e=ce.startsWith("Import"),se=_e?"imported":"local",Ue=_e?"local":"exported",ge=ie[se],ue=ie[Ue],qe="",rt="";return ce==="ExportNamespaceSpecifier"||ce==="ImportNamespaceSpecifier"?qe="*":ge&&(qe=z(se)),ue&&!I(ie)&&(rt=z(Ue)),ye.push(qe,qe&&rt?" as ":"",rt),ye}function I(q){if(q.type!=="ImportSpecifier"&&q.type!=="ExportSpecifier")return!1;let{local:U,[q.type==="ImportSpecifier"?"imported":"exported"]:z}=q;if(U.type!==z.type||!$(U,z))return!1;if(j(U))return U.value===z.value&&Q(U)===Q(z);switch(U.type){case"Identifier":return U.name===z.name;default:return!1}}A.exports={printImportDeclaration:re,printExportDeclaration:ee,printExportAllDeclaration:be,printModuleSpecifier:k}}}),op=Te({"src/language-js/print/object.js"(m,A){Re();var{printDanglingComments:p}=Ir(),{builders:{line:b,softline:D,group:f,indent:d,ifBreak:h,hardline:E}}=wn(),{getLast:x,hasNewlineInRange:B,hasNewline:L,isNonEmptyArray:P}=De(),{shouldPrintComma:C,hasComment:S,getComments:j,CommentCheckFlags:Q,isNextLineEmpty:ne}=pr(),{locStart:$,locEnd:X}=ni(),{printOptionalToken:G,printTypeAnnotation:re}=Ei(),{shouldHugFunctionParameters:ee}=vl(),{shouldHugType:be}=El(),{printHardlineAfterHeritage:F}=Go();function J(w,R,y){let k=R.semi?";":"",I=w.getValue(),q;I.type==="TSTypeLiteral"?q="members":I.type==="TSInterfaceBody"?q="body":q="properties";let U=I.type==="ObjectTypeAnnotation",z=[q];U&&z.push("indexers","callProperties","internalSlots");let ie=z.map(ve=>I[ve][0]).sort((ve,Ie)=>$(ve)-$(Ie))[0],ce=w.getParentNode(0),ye=U&&ce&&(ce.type==="InterfaceDeclaration"||ce.type==="DeclareInterface"||ce.type==="DeclareClass")&&w.getName()==="body",fe=I.type==="TSInterfaceBody"||ye||I.type==="ObjectPattern"&&ce.type!=="FunctionDeclaration"&&ce.type!=="FunctionExpression"&&ce.type!=="ArrowFunctionExpression"&&ce.type!=="ObjectMethod"&&ce.type!=="ClassMethod"&&ce.type!=="ClassPrivateMethod"&&ce.type!=="AssignmentPattern"&&ce.type!=="CatchClause"&&I.properties.some(ve=>ve.value&&(ve.value.type==="ObjectPattern"||ve.value.type==="ArrayPattern"))||I.type!=="ObjectPattern"&&ie&&B(R.originalText,$(I),$(ie)),_e=ye?";":I.type==="TSInterfaceBody"||I.type==="TSTypeLiteral"?h(k,";"):",",se=I.type==="RecordExpression"?"#{":I.exact?"{|":"{",Ue=I.exact?"|}":"}",ge=[];for(let ve of z)w.each(Ie=>{let pt=Ie.getValue();ge.push({node:pt,printed:y(),loc:$(pt)})},ve);z.length>1&&ge.sort((ve,Ie)=>ve.loc-Ie.loc);let ue=[],qe=ge.map(ve=>{let Ie=[...ue,f(ve.printed)];return ue=[_e,b],(ve.node.type==="TSPropertySignature"||ve.node.type==="TSMethodSignature"||ve.node.type==="TSConstructSignatureDeclaration")&&S(ve.node,Q.PrettierIgnore)&&ue.shift(),ne(ve.node,R)&&ue.push(E),Ie});if(I.inexact){let ve;if(S(I,Q.Dangling)){let Ie=S(I,Q.Line);ve=[p(w,R,!0),Ie||L(R.originalText,X(x(j(I))))?E:b,"..."]}else ve=["..."];qe.push([...ue,...ve])}let rt=x(I[q]),Ge=!(I.inexact||rt&&rt.type==="RestElement"||rt&&(rt.type==="TSPropertySignature"||rt.type==="TSCallSignatureDeclaration"||rt.type==="TSMethodSignature"||rt.type==="TSConstructSignatureDeclaration")&&S(rt,Q.PrettierIgnore)),mt;if(qe.length===0){if(!S(I,Q.Dangling))return[se,Ue,re(w,R,y)];mt=f([se,p(w,R),D,Ue,G(w),re(w,R,y)])}else mt=[ye&&P(I.properties)?F(ce):"",se,d([R.bracketSpacing?b:D,...qe]),h(Ge&&(_e!==","||C(R))?_e:""),R.bracketSpacing?b:D,Ue,G(w),re(w,R,y)];return w.match(ve=>ve.type==="ObjectPattern"&&!ve.decorators,(ve,Ie,pt)=>ee(ve)&&(Ie==="params"||Ie==="parameters"||Ie==="this"||Ie==="rest")&&pt===0)||w.match(be,(ve,Ie)=>Ie==="typeAnnotation",(ve,Ie)=>Ie==="typeAnnotation",(ve,Ie,pt)=>ee(ve)&&(Ie==="params"||Ie==="parameters"||Ie==="this"||Ie==="rest")&&pt===0)||!fe&&w.match(ve=>ve.type==="ObjectPattern",ve=>ve.type==="AssignmentExpression"||ve.type==="VariableDeclarator")?mt:f(mt,{shouldBreak:fe})}A.exports={printObject:J}}}),k2=Te({"src/language-js/print/flow.js"(m,A){Re();var p=Vo(),{printDanglingComments:b}=Ir(),{printString:D,printNumber:f}=De(),{builders:{hardline:d,softline:h,group:E,indent:x}}=wn(),{getParentExportDeclaration:B,isFunctionNotation:L,isGetterOrSetter:P,rawText:C,shouldPrintComma:S}=pr(),{locStart:j,locEnd:Q}=ni(),{replaceTextEndOfLine:ne}=ra(),{printClass:$}=Go(),{printOpaqueType:X,printTypeAlias:G,printIntersectionType:re,printUnionType:ee,printFunctionType:be,printTupleType:F,printIndexedAccessType:J}=El(),{printInterface:w}=tg(),{printTypeParameter:R,printTypeParameters:y}=Al(),{printExportDeclaration:k,printExportAllDeclaration:I}=ng(),{printArrayItems:q}=qo(),{printObject:U}=op(),{printPropertyKey:z}=Wo(),{printOptionalToken:ie,printTypeAnnotation:ce,printRestSpread:ye}=Ei();function fe(se,Ue,ge){let ue=se.getValue(),qe=Ue.semi?";":"",rt=[];switch(ue.type){case"DeclareClass":return _e(se,$(se,Ue,ge));case"DeclareFunction":return _e(se,["function ",ge("id"),ue.predicate?" ":"",ge("predicate"),qe]);case"DeclareModule":return _e(se,["module ",ge("id")," ",ge("body")]);case"DeclareModuleExports":return _e(se,["module.exports",": ",ge("typeAnnotation"),qe]);case"DeclareVariable":return _e(se,["var ",ge("id"),qe]);case"DeclareOpaqueType":return _e(se,X(se,Ue,ge));case"DeclareInterface":return _e(se,w(se,Ue,ge));case"DeclareTypeAlias":return _e(se,G(se,Ue,ge));case"DeclareExportDeclaration":return _e(se,k(se,Ue,ge));case"DeclareExportAllDeclaration":return _e(se,I(se,Ue,ge));case"OpaqueType":return X(se,Ue,ge);case"TypeAlias":return G(se,Ue,ge);case"IntersectionTypeAnnotation":return re(se,Ue,ge);case"UnionTypeAnnotation":return ee(se,Ue,ge);case"FunctionTypeAnnotation":return be(se,Ue,ge);case"TupleTypeAnnotation":return F(se,Ue,ge);case"GenericTypeAnnotation":return[ge("id"),y(se,Ue,ge,"typeParameters")];case"IndexedAccessType":case"OptionalIndexedAccessType":return J(se,Ue,ge);case"TypeAnnotation":return ge("typeAnnotation");case"TypeParameter":return R(se,Ue,ge);case"TypeofTypeAnnotation":return["typeof ",ge("argument")];case"ExistsTypeAnnotation":return"*";case"EmptyTypeAnnotation":return"empty";case"MixedTypeAnnotation":return"mixed";case"ArrayTypeAnnotation":return[ge("elementType"),"[]"];case"BooleanLiteralTypeAnnotation":return String(ue.value);case"EnumDeclaration":return["enum ",ge("id")," ",ge("body")];case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":{if(ue.type==="EnumSymbolBody"||ue.explicitType){let Ge=null;switch(ue.type){case"EnumBooleanBody":Ge="boolean";break;case"EnumNumberBody":Ge="number";break;case"EnumStringBody":Ge="string";break;case"EnumSymbolBody":Ge="symbol";break}rt.push("of ",Ge," ")}if(ue.members.length===0&&!ue.hasUnknownMembers)rt.push(E(["{",b(se,Ue),h,"}"]));else{let Ge=ue.members.length>0?[d,q(se,Ue,"members",ge),ue.hasUnknownMembers||S(Ue)?",":""]:[];rt.push(E(["{",x([...Ge,...ue.hasUnknownMembers?[d,"..."]:[]]),b(se,Ue,!0),d,"}"]))}return rt}case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":return[ge("id")," = ",typeof ue.init=="object"?ge("init"):String(ue.init)];case"EnumDefaultedMember":return ge("id");case"FunctionTypeParam":{let Ge=ue.name?ge("name"):se.getParentNode().this===ue?"this":"";return[Ge,ie(se),Ge?": ":"",ge("typeAnnotation")]}case"InterfaceDeclaration":case"InterfaceTypeAnnotation":return w(se,Ue,ge);case"ClassImplements":case"InterfaceExtends":return[ge("id"),ge("typeParameters")];case"NullableTypeAnnotation":return["?",ge("typeAnnotation")];case"Variance":{let{kind:Ge}=ue;return p.ok(Ge==="plus"||Ge==="minus"),Ge==="plus"?"+":"-"}case"ObjectTypeCallProperty":return ue.static&&rt.push("static "),rt.push(ge("value")),rt;case"ObjectTypeIndexer":return[ue.static?"static ":"",ue.variance?ge("variance"):"","[",ge("id"),ue.id?": ":"",ge("key"),"]: ",ge("value")];case"ObjectTypeProperty":{let Ge="";return ue.proto?Ge="proto ":ue.static&&(Ge="static "),[Ge,P(ue)?ue.kind+" ":"",ue.variance?ge("variance"):"",z(se,Ue,ge),ie(se),L(ue)?"":": ",ge("value")]}case"ObjectTypeAnnotation":return U(se,Ue,ge);case"ObjectTypeInternalSlot":return[ue.static?"static ":"","[[",ge("id"),"]]",ie(se),ue.method?"":": ",ge("value")];case"ObjectTypeSpreadProperty":return ye(se,Ue,ge);case"QualifiedTypeofIdentifier":case"QualifiedTypeIdentifier":return[ge("qualification"),".",ge("id")];case"StringLiteralTypeAnnotation":return ne(D(C(ue),Ue));case"NumberLiteralTypeAnnotation":p.strictEqual(typeof ue.value,"number");case"BigIntLiteralTypeAnnotation":return ue.extra?f(ue.extra.raw):f(ue.raw);case"TypeCastExpression":return["(",ge("expression"),ce(se,Ue,ge),")"];case"TypeParameterDeclaration":case"TypeParameterInstantiation":{let Ge=y(se,Ue,ge,"params");if(Ue.parser==="flow"){let mt=j(ue),ve=Q(ue),Ie=Ue.originalText.lastIndexOf("/*",mt),pt=Ue.originalText.indexOf("*/",ve);if(Ie!==-1&&pt!==-1){let dt=Ue.originalText.slice(Ie+2,pt).trim();if(dt.startsWith("::")&&!dt.includes("/*")&&!dt.includes("*/"))return["/*:: ",Ge," */"]}}return Ge}case"InferredPredicate":return"%checks";case"DeclaredPredicate":return["%checks(",ge("value"),")"];case"AnyTypeAnnotation":return"any";case"BooleanTypeAnnotation":return"boolean";case"BigIntTypeAnnotation":return"bigint";case"NullLiteralTypeAnnotation":return"null";case"NumberTypeAnnotation":return"number";case"SymbolTypeAnnotation":return"symbol";case"StringTypeAnnotation":return"string";case"VoidTypeAnnotation":return"void";case"ThisTypeAnnotation":return"this";case"Node":case"Printable":case"SourceLocation":case"Position":case"Statement":case"Function":case"Pattern":case"Expression":case"Declaration":case"Specifier":case"NamedSpecifier":case"Comment":case"MemberTypeAnnotation":case"Type":throw new Error("unprintable type: "+JSON.stringify(ue.type))}}function _e(se,Ue){let ge=B(se);return ge?(p.strictEqual(ge.type,"DeclareExportDeclaration"),Ue):["declare ",Ue]}A.exports={printFlow:fe}}}),P2=Te({"src/language-js/utils/is-ts-keyword-type.js"(m,A){Re();function p(b){let{type:D}=b;return D.startsWith("TS")&&D.endsWith("Keyword")}A.exports=p}}),rg=Te({"src/language-js/print/ternary.js"(m,A){Re();var{hasNewlineInRange:p}=De(),{isJsxNode:b,getComments:D,isCallExpression:f,isMemberExpression:d,isTSTypeExpression:h}=pr(),{locStart:E,locEnd:x}=ni(),B=aa(),{builders:{line:L,softline:P,group:C,indent:S,align:j,ifBreak:Q,dedent:ne,breakParent:$}}=wn();function X(F){let J=[F];for(let w=0;w<J.length;w++){let R=J[w];for(let y of["test","consequent","alternate"]){let k=R[y];if(b(k))return!0;k.type==="ConditionalExpression"&&J.push(k)}}return!1}function G(F,J,w){let R=F.getValue(),y=R.type==="ConditionalExpression",k=y?"alternate":"falseType",I=F.getParentNode(),q=y?w("test"):[w("checkType")," ","extends"," ",w("extendsType")];return I.type===R.type&&I[k]===R?j(2,q):q}var re=new Map([["AssignmentExpression","right"],["VariableDeclarator","init"],["ReturnStatement","argument"],["ThrowStatement","argument"],["UnaryExpression","argument"],["YieldExpression","argument"]]);function ee(F){let J=F.getValue();if(J.type!=="ConditionalExpression")return!1;let w,R=J;for(let y=0;!w;y++){let k=F.getParentNode(y);if(f(k)&&k.callee===R||d(k)&&k.object===R||k.type==="TSNonNullExpression"&&k.expression===R){R=k;continue}k.type==="NewExpression"&&k.callee===R||h(k)&&k.expression===R?(w=F.getParentNode(y+1),R=k):w=k}return R===J?!1:w[re.get(w.type)]===R}function be(F,J,w){let R=F.getValue(),y=R.type==="ConditionalExpression",k=y?"consequent":"trueType",I=y?"alternate":"falseType",q=y?["test"]:["checkType","extendsType"],U=R[k],z=R[I],ie=[],ce=!1,ye=F.getParentNode(),fe=ye.type===R.type&&q.some(pt=>ye[pt]===R),_e=ye.type===R.type&&!fe,se,Ue,ge=0;do Ue=se||R,se=F.getParentNode(ge),ge++;while(se&&se.type===R.type&&q.every(pt=>se[pt]!==Ue));let ue=se||ye,qe=Ue;if(y&&(b(R[q[0]])||b(U)||b(z)||X(qe))){ce=!0,_e=!0;let pt=Jt=>[Q("("),S([P,Jt]),P,Q(")")],dt=Jt=>Jt.type==="NullLiteral"||Jt.type==="Literal"&&Jt.value===null||Jt.type==="Identifier"&&Jt.name==="undefined";ie.push(" ? ",dt(U)?w(k):pt(w(k))," : ",z.type===R.type||dt(z)?w(I):pt(w(I)))}else{let pt=[L,"? ",U.type===R.type?Q("","("):"",j(2,w(k)),U.type===R.type?Q("",")"):"",L,": ",z.type===R.type?w(I):j(2,w(I))];ie.push(ye.type!==R.type||ye[I]===R||fe?pt:J.useTabs?ne(S(pt)):j(Math.max(0,J.tabWidth-2),pt))}let rt=[...q.map(pt=>D(R[pt])),D(U),D(z)].flat().some(pt=>B(pt)&&p(J.originalText,E(pt),x(pt))),Ge=pt=>ye===ue?C(pt,{shouldBreak:rt}):rt?[pt,$]:pt,mt=!ce&&(d(ye)||ye.type==="NGPipeExpression"&&ye.left===R)&&!ye.computed,ve=ee(F),Ie=Ge([G(F,J,w),_e?ie:S(ie),y&&mt&&!ve?P:""]);return fe||ve?C([S([P,Ie]),P]):Ie}A.exports={printTernary:be}}}),ig=Te({"src/language-js/print/statement.js"(m,A){Re();var{builders:{hardline:p}}=wn(),b=no(),{getLeftSidePathName:D,hasNakedLeftSide:f,isJsxNode:d,isTheOnlyJsxElementInMarkdown:h,hasComment:E,CommentCheckFlags:x,isNextLineEmpty:B}=pr(),{shouldPrintParamsWithoutParens:L}=Cl();function P(G,re,ee,be){let F=G.getValue(),J=[],w=F.type==="ClassBody",R=C(F[be]);return G.each((y,k,I)=>{let q=y.getValue();if(q.type==="EmptyStatement")return;let U=ee();!re.semi&&!w&&!h(re,y)&&S(y,re)?E(q,x.Leading)?J.push(ee([],{needsSemi:!0})):J.push(";",U):J.push(U),!re.semi&&w&&$(q)&&X(q,I[k+1])&&J.push(";"),q!==R&&(J.push(p),B(q,re)&&J.push(p))},be),J}function C(G){for(let re=G.length-1;re>=0;re--){let ee=G[re];if(ee.type!=="EmptyStatement")return ee}}function S(G,re){return G.getNode().type!=="ExpressionStatement"?!1:G.call(ee=>j(ee,re),"expression")}function j(G,re){let ee=G.getValue();switch(ee.type){case"ParenthesizedExpression":case"TypeCastExpression":case"ArrayExpression":case"ArrayPattern":case"TemplateLiteral":case"TemplateElement":case"RegExpLiteral":return!0;case"ArrowFunctionExpression":{if(!L(G,re))return!0;break}case"UnaryExpression":{let{prefix:be,operator:F}=ee;if(be&&(F==="+"||F==="-"))return!0;break}case"BindExpression":{if(!ee.object)return!0;break}case"Literal":{if(ee.regex)return!0;break}default:if(d(ee))return!0}return b(G,re)?!0:f(ee)?G.call(be=>j(be,re),...D(G,ee)):!1}function Q(G,re,ee){return P(G,re,ee,"body")}function ne(G,re,ee){return P(G,re,ee,"consequent")}var $=G=>{let{type:re}=G;return re==="ClassProperty"||re==="PropertyDefinition"||re==="ClassPrivateProperty"||re==="ClassAccessorProperty"||re==="AccessorProperty"||re==="TSAbstractPropertyDefinition"||re==="TSAbstractAccessorProperty"};function X(G,re){let{type:ee,name:be}=G.key;if(!G.computed&&ee==="Identifier"&&(be==="static"||be==="get"||be==="set"||be==="accessor")&&!G.value&&!G.typeAnnotation)return!0;if(!re||re.static||re.accessibility)return!1;if(!re.computed){let F=re.key&&re.key.name;if(F==="in"||F==="instanceof")return!0}if($(re)&&re.variance&&!re.static&&!re.declare)return!0;switch(re.type){case"ClassProperty":case"PropertyDefinition":case"TSAbstractPropertyDefinition":return re.computed;case"MethodDefinition":case"TSAbstractMethodDefinition":case"ClassMethod":case"ClassPrivateMethod":{if((re.value?re.value.async:re.async)||re.kind==="get"||re.kind==="set")return!1;let F=re.value?re.value.generator:re.generator;return!!(re.computed||F)}case"TSIndexSignature":return!0}return!1}A.exports={printBody:Q,printSwitchCaseConsequent:ne}}}),sg=Te({"src/language-js/print/block.js"(m,A){Re();var{printDanglingComments:p}=Ir(),{isNonEmptyArray:b}=De(),{builders:{hardline:D,indent:f}}=wn(),{hasComment:d,CommentCheckFlags:h,isNextLineEmpty:E}=pr(),{printHardlineAfterHeritage:x}=Go(),{printBody:B}=ig();function L(C,S,j){let Q=C.getValue(),ne=[];if(Q.type==="StaticBlock"&&ne.push("static "),Q.type==="ClassBody"&&b(Q.body)){let X=C.getParentNode();ne.push(x(X))}ne.push("{");let $=P(C,S,j);if($)ne.push(f([D,$]),D);else{let X=C.getParentNode(),G=C.getParentNode(1);X.type==="ArrowFunctionExpression"||X.type==="FunctionExpression"||X.type==="FunctionDeclaration"||X.type==="ObjectMethod"||X.type==="ClassMethod"||X.type==="ClassPrivateMethod"||X.type==="ForStatement"||X.type==="WhileStatement"||X.type==="DoWhileStatement"||X.type==="DoExpression"||X.type==="CatchClause"&&!G.finalizer||X.type==="TSModuleDeclaration"||X.type==="TSDeclareFunction"||Q.type==="StaticBlock"||Q.type==="ClassBody"||ne.push(D)}return ne.push("}"),ne}function P(C,S,j){let Q=C.getValue(),ne=b(Q.directives),$=Q.body.some(re=>re.type!=="EmptyStatement"),X=d(Q,h.Dangling);if(!ne&&!$&&!X)return"";let G=[];if(ne&&C.each((re,ee,be)=>{G.push(j()),(ee<be.length-1||$||X)&&(G.push(D),E(re.getValue(),S)&&G.push(D))},"directives"),$&&G.push(B(C,S,j)),X&&G.push(p(C,S,!0)),Q.type==="Program"){let re=C.getParentNode();(!re||re.type!=="ModuleExpression")&&G.push(D)}return G}A.exports={printBlock:L,printBlockBody:P}}}),B2=Te({"src/language-js/print/typescript.js"(m,A){Re();var{printDanglingComments:p}=Ir(),{hasNewlineInRange:b}=De(),{builders:{join:D,line:f,hardline:d,softline:h,group:E,indent:x,conditionalGroup:B,ifBreak:L}}=wn(),{isStringLiteral:P,getTypeScriptMappedTypeModifier:C,shouldPrintComma:S,isCallExpression:j,isMemberExpression:Q}=pr(),ne=P2(),{locStart:$,locEnd:X}=ni(),{printOptionalToken:G,printTypeScriptModifiers:re}=Ei(),{printTernary:ee}=rg(),{printFunctionParameters:be,shouldGroupFunctionParameters:F}=vl(),{printTemplateLiteral:J}=to(),{printArrayItems:w}=qo(),{printObject:R}=op(),{printClassProperty:y,printClassMethod:k}=Go(),{printTypeParameter:I,printTypeParameters:q}=Al(),{printPropertyKey:U}=Wo(),{printFunction:z,printMethodInternal:ie}=Cl(),{printInterface:ce}=tg(),{printBlock:ye}=sg(),{printTypeAlias:fe,printIntersectionType:_e,printUnionType:se,printFunctionType:Ue,printTupleType:ge,printIndexedAccessType:ue,printJSDocType:qe}=El();function rt(Ge,mt,ve){let Ie=Ge.getValue();if(!Ie.type.startsWith("TS"))return;if(ne(Ie))return Ie.type.slice(2,-7).toLowerCase();let pt=mt.semi?";":"",dt=[];switch(Ie.type){case"TSThisType":return"this";case"TSTypeAssertion":{let Jt=!(Ie.expression.type==="ArrayExpression"||Ie.expression.type==="ObjectExpression"),$e=E(["<",x([h,ve("typeAnnotation")]),h,">"]),we=[L("("),x([h,ve("expression")]),h,L(")")];return Jt?B([[$e,ve("expression")],[$e,E(we,{shouldBreak:!0})],[$e,ve("expression")]]):E([$e,ve("expression")])}case"TSDeclareFunction":return z(Ge,ve,mt);case"TSExportAssignment":return["export = ",ve("expression"),pt];case"TSModuleBlock":return ye(Ge,mt,ve);case"TSInterfaceBody":case"TSTypeLiteral":return R(Ge,mt,ve);case"TSTypeAliasDeclaration":return fe(Ge,mt,ve);case"TSQualifiedName":return D(".",[ve("left"),ve("right")]);case"TSAbstractMethodDefinition":case"TSDeclareMethod":return k(Ge,mt,ve);case"TSAbstractAccessorProperty":case"TSAbstractPropertyDefinition":return y(Ge,mt,ve);case"TSInterfaceHeritage":case"TSExpressionWithTypeArguments":return dt.push(ve("expression")),Ie.typeParameters&&dt.push(ve("typeParameters")),dt;case"TSTemplateLiteralType":return J(Ge,ve,mt);case"TSNamedTupleMember":return[ve("label"),Ie.optional?"?":"",": ",ve("elementType")];case"TSRestType":return["...",ve("typeAnnotation")];case"TSOptionalType":return[ve("typeAnnotation"),"?"];case"TSInterfaceDeclaration":return ce(Ge,mt,ve);case"TSClassImplements":return[ve("expression"),ve("typeParameters")];case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return q(Ge,mt,ve,"params");case"TSTypeParameter":return I(Ge,mt,ve);case"TSSatisfiesExpression":case"TSAsExpression":{let Jt=Ie.type==="TSAsExpression"?"as":"satisfies";dt.push(ve("expression"),` ${Jt} `,ve("typeAnnotation"));let $e=Ge.getParentNode();return j($e)&&$e.callee===Ie||Q($e)&&$e.object===Ie?E([x([h,...dt]),h]):dt}case"TSArrayType":return[ve("elementType"),"[]"];case"TSPropertySignature":return Ie.readonly&&dt.push("readonly "),dt.push(U(Ge,mt,ve),G(Ge)),Ie.typeAnnotation&&dt.push(": ",ve("typeAnnotation")),Ie.initializer&&dt.push(" = ",ve("initializer")),dt;case"TSParameterProperty":return Ie.accessibility&&dt.push(Ie.accessibility+" "),Ie.export&&dt.push("export "),Ie.static&&dt.push("static "),Ie.override&&dt.push("override "),Ie.readonly&&dt.push("readonly "),dt.push(ve("parameter")),dt;case"TSTypeQuery":return["typeof ",ve("exprName"),ve("typeParameters")];case"TSIndexSignature":{let Jt=Ge.getParentNode(),$e=Ie.parameters.length>1?L(S(mt)?",":""):"",we=E([x([h,D([", ",h],Ge.map(ve,"parameters"))]),$e,h]);return[Ie.export?"export ":"",Ie.accessibility?[Ie.accessibility," "]:"",Ie.static?"static ":"",Ie.readonly?"readonly ":"",Ie.declare?"declare ":"","[",Ie.parameters?we:"",Ie.typeAnnotation?"]: ":"]",Ie.typeAnnotation?ve("typeAnnotation"):"",Jt.type==="ClassBody"?pt:""]}case"TSTypePredicate":return[Ie.asserts?"asserts ":"",ve("parameterName"),Ie.typeAnnotation?[" is ",ve("typeAnnotation")]:""];case"TSNonNullExpression":return[ve("expression"),"!"];case"TSImportType":return[Ie.isTypeOf?"typeof ":"","import(",ve(Ie.parameter?"parameter":"argument"),")",Ie.qualifier?[".",ve("qualifier")]:"",q(Ge,mt,ve,"typeParameters")];case"TSLiteralType":return ve("literal");case"TSIndexedAccessType":return ue(Ge,mt,ve);case"TSConstructSignatureDeclaration":case"TSCallSignatureDeclaration":case"TSConstructorType":{if(Ie.type==="TSConstructorType"&&Ie.abstract&&dt.push("abstract "),Ie.type!=="TSCallSignatureDeclaration"&&dt.push("new "),dt.push(E(be(Ge,ve,mt,!1,!0))),Ie.returnType||Ie.typeAnnotation){let Jt=Ie.type==="TSConstructorType";dt.push(Jt?" => ":": ",ve("returnType"),ve("typeAnnotation"))}return dt}case"TSTypeOperator":return[Ie.operator," ",ve("typeAnnotation")];case"TSMappedType":{let Jt=b(mt.originalText,$(Ie),X(Ie));return E(["{",x([mt.bracketSpacing?f:h,ve("typeParameter"),Ie.optional?C(Ie.optional,"?"):"",Ie.typeAnnotation?": ":"",ve("typeAnnotation"),L(pt)]),p(Ge,mt,!0),mt.bracketSpacing?f:h,"}"],{shouldBreak:Jt})}case"TSMethodSignature":{let Jt=Ie.kind&&Ie.kind!=="method"?`${Ie.kind} `:"";dt.push(Ie.accessibility?[Ie.accessibility," "]:"",Jt,Ie.export?"export ":"",Ie.static?"static ":"",Ie.readonly?"readonly ":"",Ie.abstract?"abstract ":"",Ie.declare?"declare ":"",Ie.computed?"[":"",ve("key"),Ie.computed?"]":"",G(Ge));let $e=be(Ge,ve,mt,!1,!0),we=Ie.returnType?"returnType":"typeAnnotation",Je=Ie[we],Ke=Je?ve(we):"",Et=F(Ie,Ke);return dt.push(Et?E($e):$e),Je&&dt.push(": ",E(Ke)),E(dt)}case"TSNamespaceExportDeclaration":return dt.push("export as namespace ",ve("id")),mt.semi&&dt.push(";"),E(dt);case"TSEnumDeclaration":return Ie.declare&&dt.push("declare "),Ie.modifiers&&dt.push(re(Ge,mt,ve)),Ie.const&&dt.push("const "),dt.push("enum ",ve("id")," "),Ie.members.length===0?dt.push(E(["{",p(Ge,mt),h,"}"])):dt.push(E(["{",x([d,w(Ge,mt,"members",ve),S(mt,"es5")?",":""]),p(Ge,mt,!0),d,"}"])),dt;case"TSEnumMember":return Ie.computed?dt.push("[",ve("id"),"]"):dt.push(ve("id")),Ie.initializer&&dt.push(" = ",ve("initializer")),dt;case"TSImportEqualsDeclaration":return Ie.isExport&&dt.push("export "),dt.push("import "),Ie.importKind&&Ie.importKind!=="value"&&dt.push(Ie.importKind," "),dt.push(ve("id")," = ",ve("moduleReference")),mt.semi&&dt.push(";"),E(dt);case"TSExternalModuleReference":return["require(",ve("expression"),")"];case"TSModuleDeclaration":{let Jt=Ge.getParentNode(),$e=P(Ie.id),we=Jt.type==="TSModuleDeclaration",Je=Ie.body&&Ie.body.type==="TSModuleDeclaration";if(we)dt.push(".");else{Ie.declare&&dt.push("declare "),dt.push(re(Ge,mt,ve));let Ke=mt.originalText.slice($(Ie),$(Ie.id));Ie.id.type==="Identifier"&&Ie.id.name==="global"&&!/namespace|module/.test(Ke)||dt.push($e||/(?:^|\s)module(?:\s|$)/.test(Ke)?"module ":"namespace ")}return dt.push(ve("id")),Je?dt.push(ve("body")):Ie.body?dt.push(" ",E(ve("body"))):dt.push(pt),dt}case"TSConditionalType":return ee(Ge,mt,ve);case"TSInferType":return["infer"," ",ve("typeParameter")];case"TSIntersectionType":return _e(Ge,mt,ve);case"TSUnionType":return se(Ge,mt,ve);case"TSFunctionType":return Ue(Ge,mt,ve);case"TSTupleType":return ge(Ge,mt,ve);case"TSTypeReference":return[ve("typeName"),q(Ge,mt,ve,"typeParameters")];case"TSTypeAnnotation":return ve("typeAnnotation");case"TSEmptyBodyFunctionExpression":return ie(Ge,mt,ve);case"TSJSDocAllType":return"*";case"TSJSDocUnknownType":return"?";case"TSJSDocNullableType":return qe(Ge,ve,"?");case"TSJSDocNonNullableType":return qe(Ge,ve,"!");case"TSInstantiationExpression":return[ve("expression"),ve("typeParameters")];default:throw new Error(`Unknown TypeScript node type: ${JSON.stringify(Ie.type)}.`)}}A.exports={printTypescript:rt}}}),M2=Te({"src/language-js/print/comment.js"(m,A){Re();var{hasNewline:p}=De(),{builders:{join:b,hardline:D},utils:{replaceTextEndOfLine:f}}=wn(),{isLineComment:d}=pr(),{locStart:h,locEnd:E}=ni(),x=aa();function B(C,S){let j=C.getValue();if(d(j))return S.originalText.slice(h(j),E(j)).trimEnd();if(x(j)){if(L(j)){let $=P(j);return j.trailing&&!p(S.originalText,h(j),{backwards:!0})?[D,$]:$}let Q=E(j),ne=S.originalText.slice(Q-3,Q)==="*-/";return["/*",f(j.value),ne?"*-/":"*/"]}throw new Error("Not a comment: "+JSON.stringify(j))}function L(C){let S=`*${C.value}*`.split(`
210
- `);return S.length>1&&S.every(j=>j.trim()[0]==="*")}function P(C){let S=C.value.split(`
211
- `);return["/*",b(D,S.map((j,Q)=>Q===0?j.trimEnd():" "+(Q<S.length-1?j.trim():j.trimStart()))),"*/"]}A.exports={printComment:B}}}),I2=Te({"src/language-js/print/literal.js"(m,A){Re();var{printString:p,printNumber:b}=De(),{replaceTextEndOfLine:D}=ra(),{printDirective:f}=Ei();function d(B,L){let P=B.getNode();switch(P.type){case"RegExpLiteral":return x(P);case"BigIntLiteral":return E(P.bigint||P.extra.raw);case"NumericLiteral":return b(P.extra.raw);case"StringLiteral":return D(p(P.extra.raw,L));case"NullLiteral":return"null";case"BooleanLiteral":return String(P.value);case"DecimalLiteral":return b(P.value)+"m";case"Literal":{if(P.regex)return x(P.regex);if(P.bigint)return E(P.raw);if(P.decimal)return b(P.decimal)+"m";let{value:C}=P;return typeof C=="number"?b(P.raw):typeof C=="string"?h(B)?f(P.raw,L):D(p(P.raw,L)):String(C)}}}function h(B){if(B.getName()!=="expression")return;let L=B.getParentNode();return L.type==="ExpressionStatement"&&L.directive}function E(B){return B.toLowerCase()}function x(B){let{pattern:L,flags:P}=B;return P=[...P].sort().join(""),`/${L}/${P}`}A.exports={printLiteral:d}}}),O2=Te({"src/language-js/printer-estree.js"(m,A){Re();var{printDanglingComments:p}=Ir(),{hasNewline:b}=De(),{builders:{join:D,line:f,hardline:d,softline:h,group:E,indent:x},utils:{replaceTextEndOfLine:B}}=wn(),L=D2(),P=b2(),{insertPragma:C}=z0(),S=Q0(),j=no(),Q=X0(),{hasFlowShorthandAnnotationComment:ne,hasComment:$,CommentCheckFlags:X,isTheOnlyJsxElementInMarkdown:G,isLineComment:re,isNextLineEmpty:ee,needsHardlineAfterDanglingComment:be,hasIgnoreComment:F,isCallExpression:J,isMemberExpression:w,markerForIfWithoutBlockAndSameLineComment:R}=pr(),{locStart:y,locEnd:k}=ni(),I=aa(),{printHtmlBinding:q,isVueEventBindingExpression:U}=N2(),{printAngular:z}=T2(),{printJsx:ie,hasJsxIgnoreComment:ce}=_2(),{printFlow:ye}=k2(),{printTypescript:fe}=B2(),{printOptionalToken:_e,printBindExpressionCallee:se,printTypeAnnotation:Ue,adjustClause:ge,printRestSpread:ue,printDefiniteToken:qe,printDirective:rt}=Ei(),{printImportDeclaration:Ge,printExportDeclaration:mt,printExportAllDeclaration:ve,printModuleSpecifier:Ie}=ng(),{printTernary:pt}=rg(),{printTemplateLiteral:dt}=to(),{printArray:Jt}=qo(),{printObject:$e}=op(),{printClass:we,printClassMethod:Je,printClassProperty:Ke}=Go(),{printProperty:Et}=Wo(),{printFunction:_t,printArrowFunction:Bt,printMethod:cn,printReturnStatement:Pn,printThrowStatement:_n}=Cl(),{printCallExpression:ln}=eg(),{printVariableDeclarator:yn,printAssignmentExpression:ut}=Uo(),{printBinaryishExpression:xe}=sp(),{printSwitchCaseConsequent:ht}=ig(),{printMemberExpression:Oe}=Z0(),{printBlock:ft,printBlockBody:Zt}=sg(),{printComment:Ut}=M2(),{printLiteral:yt}=I2(),{printDecorators:V}=ap();function Le($t,un,Mt,Ar){let sn=it($t,un,Mt,Ar);if(!sn)return"";let Dr=$t.getValue(),{type:nn}=Dr;if(nn==="ClassMethod"||nn==="ClassPrivateMethod"||nn==="ClassProperty"||nn==="ClassAccessorProperty"||nn==="AccessorProperty"||nn==="TSAbstractAccessorProperty"||nn==="PropertyDefinition"||nn==="TSAbstractPropertyDefinition"||nn==="ClassPrivateProperty"||nn==="MethodDefinition"||nn==="TSAbstractMethodDefinition"||nn==="TSDeclareMethod")return sn;let An=[sn],Ln=V($t,un,Mt),ar=Dr.type==="ClassExpression"&&Ln;if(Ln&&(An=[...Ln,sn],!ar))return E(An);if(!j($t,un))return Ar&&Ar.needsSemi&&An.unshift(";"),An.length===1&&An[0]===sn?sn:An;if(ar&&(An=[x([f,...An])]),An.unshift("("),Ar&&Ar.needsSemi&&An.unshift(";"),ne(Dr)){let[an]=Dr.trailingComments;An.push(" /*",an.value.trimStart(),"*/"),an.printed=!0}return ar&&An.push(f),An.push(")"),An}function it($t,un,Mt,Ar){let sn=$t.getValue(),Dr=un.semi?";":"";if(!sn)return"";if(typeof sn=="string")return sn;for(let An of[yt,q,z,ie,ye,fe]){let Ln=An($t,un,Mt);if(typeof Ln<"u")return Ln}let nn=[];switch(sn.type){case"JsExpressionRoot":return Mt("node");case"JsonRoot":return[Mt("node"),d];case"File":return sn.program&&sn.program.interpreter&&nn.push(Mt(["program","interpreter"])),nn.push(Mt("program")),nn;case"Program":return Zt($t,un,Mt);case"EmptyStatement":return"";case"ExpressionStatement":{if(un.parser==="__vue_event_binding"||un.parser==="__vue_ts_event_binding"){let Ln=$t.getParentNode();if(Ln.type==="Program"&&Ln.body.length===1&&Ln.body[0]===sn)return[Mt("expression"),U(sn.expression)?";":""]}let An=p($t,un,!0,Ln=>{let{marker:ar}=Ln;return ar===R});return[Mt("expression"),G(un,$t)?"":Dr,An?[" ",An]:""]}case"ParenthesizedExpression":return!$(sn.expression)&&(sn.expression.type==="ObjectExpression"||sn.expression.type==="ArrayExpression")?["(",Mt("expression"),")"]:E(["(",x([h,Mt("expression")]),h,")"]);case"AssignmentExpression":return ut($t,un,Mt);case"VariableDeclarator":return yn($t,un,Mt);case"BinaryExpression":case"LogicalExpression":return xe($t,un,Mt);case"AssignmentPattern":return[Mt("left")," = ",Mt("right")];case"OptionalMemberExpression":case"MemberExpression":return Oe($t,un,Mt);case"MetaProperty":return[Mt("meta"),".",Mt("property")];case"BindExpression":return sn.object&&nn.push(Mt("object")),nn.push(E(x([h,se($t,un,Mt)]))),nn;case"Identifier":return[sn.name,_e($t),qe($t),Ue($t,un,Mt)];case"V8IntrinsicIdentifier":return["%",sn.name];case"SpreadElement":case"SpreadElementPattern":case"SpreadProperty":case"SpreadPropertyPattern":case"RestElement":return ue($t,un,Mt);case"FunctionDeclaration":case"FunctionExpression":return _t($t,Mt,un,Ar);case"ArrowFunctionExpression":return Bt($t,un,Mt,Ar);case"YieldExpression":return nn.push("yield"),sn.delegate&&nn.push("*"),sn.argument&&nn.push(" ",Mt("argument")),nn;case"AwaitExpression":{if(nn.push("await"),sn.argument){nn.push(" ",Mt("argument"));let An=$t.getParentNode();if(J(An)&&An.callee===sn||w(An)&&An.object===sn){nn=[x([h,...nn]),h];let Ln=$t.findAncestor(ar=>ar.type==="AwaitExpression"||ar.type==="BlockStatement");if(!Ln||Ln.type!=="AwaitExpression")return E(nn)}}return nn}case"ExportDefaultDeclaration":case"ExportNamedDeclaration":return mt($t,un,Mt);case"ExportAllDeclaration":return ve($t,un,Mt);case"ImportDeclaration":return Ge($t,un,Mt);case"ImportSpecifier":case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ExportNamespaceSpecifier":case"ImportDefaultSpecifier":case"ExportDefaultSpecifier":return Ie($t,un,Mt);case"ImportAttribute":return[Mt("key"),": ",Mt("value")];case"Import":return"import";case"BlockStatement":case"StaticBlock":case"ClassBody":return ft($t,un,Mt);case"ThrowStatement":return _n($t,un,Mt);case"ReturnStatement":return Pn($t,un,Mt);case"NewExpression":case"ImportExpression":case"OptionalCallExpression":case"CallExpression":return ln($t,un,Mt);case"ObjectExpression":case"ObjectPattern":case"RecordExpression":return $e($t,un,Mt);case"ObjectProperty":case"Property":return sn.method||sn.kind==="get"||sn.kind==="set"?cn($t,un,Mt):Et($t,un,Mt);case"ObjectMethod":return cn($t,un,Mt);case"Decorator":return["@",Mt("expression")];case"ArrayExpression":case"ArrayPattern":case"TupleExpression":return Jt($t,un,Mt);case"SequenceExpression":{let An=$t.getParentNode(0);if(An.type==="ExpressionStatement"||An.type==="ForStatement"){let Ln=[];return $t.each((ar,an)=>{an===0?Ln.push(Mt()):Ln.push(",",x([f,Mt()]))},"expressions"),E(Ln)}return E(D([",",f],$t.map(Mt,"expressions")))}case"ThisExpression":return"this";case"Super":return"super";case"Directive":return[Mt("value"),Dr];case"DirectiveLiteral":return rt(sn.extra.raw,un);case"UnaryExpression":return nn.push(sn.operator),/[a-z]$/.test(sn.operator)&&nn.push(" "),$(sn.argument)?nn.push(E(["(",x([h,Mt("argument")]),h,")"])):nn.push(Mt("argument")),nn;case"UpdateExpression":return nn.push(Mt("argument"),sn.operator),sn.prefix&&nn.reverse(),nn;case"ConditionalExpression":return pt($t,un,Mt);case"VariableDeclaration":{let An=$t.map(Mt,"declarations"),Ln=$t.getParentNode(),ar=Ln.type==="ForStatement"||Ln.type==="ForInStatement"||Ln.type==="ForOfStatement",an=sn.declarations.some(xn=>xn.init),Tn;return An.length===1&&!$(sn.declarations[0])?Tn=An[0]:An.length>0&&(Tn=x(An[0])),nn=[sn.declare?"declare ":"",sn.kind,Tn?[" ",Tn]:"",x(An.slice(1).map(xn=>[",",an&&!ar?d:f,xn]))],ar&&Ln.body!==sn||nn.push(Dr),E(nn)}case"WithStatement":return E(["with (",Mt("object"),")",ge(sn.body,Mt("body"))]);case"IfStatement":{let An=ge(sn.consequent,Mt("consequent")),Ln=E(["if (",E([x([h,Mt("test")]),h]),")",An]);if(nn.push(Ln),sn.alternate){let ar=$(sn.consequent,X.Trailing|X.Line)||be(sn),an=sn.consequent.type==="BlockStatement"&&!ar;nn.push(an?" ":d),$(sn,X.Dangling)&&nn.push(p($t,un,!0),ar?d:" "),nn.push("else",E(ge(sn.alternate,Mt("alternate"),sn.alternate.type==="IfStatement")))}return nn}case"ForStatement":{let An=ge(sn.body,Mt("body")),Ln=p($t,un,!0),ar=Ln?[Ln,h]:"";return!sn.init&&!sn.test&&!sn.update?[ar,E(["for (;;)",An])]:[ar,E(["for (",E([x([h,Mt("init"),";",f,Mt("test"),";",f,Mt("update")]),h]),")",An])]}case"WhileStatement":return E(["while (",E([x([h,Mt("test")]),h]),")",ge(sn.body,Mt("body"))]);case"ForInStatement":return E(["for (",Mt("left")," in ",Mt("right"),")",ge(sn.body,Mt("body"))]);case"ForOfStatement":return E(["for",sn.await?" await":""," (",Mt("left")," of ",Mt("right"),")",ge(sn.body,Mt("body"))]);case"DoWhileStatement":{let An=ge(sn.body,Mt("body"));return nn=[E(["do",An])],sn.body.type==="BlockStatement"?nn.push(" "):nn.push(d),nn.push("while (",E([x([h,Mt("test")]),h]),")",Dr),nn}case"DoExpression":return[sn.async?"async ":"","do ",Mt("body")];case"BreakStatement":return nn.push("break"),sn.label&&nn.push(" ",Mt("label")),nn.push(Dr),nn;case"ContinueStatement":return nn.push("continue"),sn.label&&nn.push(" ",Mt("label")),nn.push(Dr),nn;case"LabeledStatement":return sn.body.type==="EmptyStatement"?[Mt("label"),":;"]:[Mt("label"),": ",Mt("body")];case"TryStatement":return["try ",Mt("block"),sn.handler?[" ",Mt("handler")]:"",sn.finalizer?[" finally ",Mt("finalizer")]:""];case"CatchClause":if(sn.param){let An=$(sn.param,ar=>!I(ar)||ar.leading&&b(un.originalText,k(ar))||ar.trailing&&b(un.originalText,y(ar),{backwards:!0})),Ln=Mt("param");return["catch ",An?["(",x([h,Ln]),h,") "]:["(",Ln,") "],Mt("body")]}return["catch ",Mt("body")];case"SwitchStatement":return[E(["switch (",x([h,Mt("discriminant")]),h,")"])," {",sn.cases.length>0?x([d,D(d,$t.map((An,Ln,ar)=>{let an=An.getValue();return[Mt(),Ln!==ar.length-1&&ee(an,un)?d:""]},"cases"))]):"",d,"}"];case"SwitchCase":{sn.test?nn.push("case ",Mt("test"),":"):nn.push("default:"),$(sn,X.Dangling)&&nn.push(" ",p($t,un,!0));let An=sn.consequent.filter(Ln=>Ln.type!=="EmptyStatement");if(An.length>0){let Ln=ht($t,un,Mt);nn.push(An.length===1&&An[0].type==="BlockStatement"?[" ",Ln]:x([d,Ln]))}return nn}case"DebuggerStatement":return["debugger",Dr];case"ClassDeclaration":case"ClassExpression":return we($t,un,Mt);case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":return Je($t,un,Mt);case"ClassProperty":case"PropertyDefinition":case"ClassPrivateProperty":case"ClassAccessorProperty":case"AccessorProperty":return Ke($t,un,Mt);case"TemplateElement":return B(sn.value.raw);case"TemplateLiteral":return dt($t,Mt,un);case"TaggedTemplateExpression":return[Mt("tag"),Mt("typeParameters"),Mt("quasi")];case"PrivateIdentifier":return["#",Mt("name")];case"PrivateName":return["#",Mt("id")];case"InterpreterDirective":return nn.push("#!",sn.value,d),ee(sn,un)&&nn.push(d),nn;case"TopicReference":return"%";case"ArgumentPlaceholder":return"?";case"ModuleExpression":{nn.push("module {");let An=Mt("body");return An&&nn.push(x([d,An]),d),nn.push("}"),nn}default:throw new Error("unknown type: "+JSON.stringify(sn.type))}}function kt($t){return $t.type&&!I($t)&&!re($t)&&$t.type!=="EmptyStatement"&&$t.type!=="TemplateElement"&&$t.type!=="Import"&&$t.type!=="TSEmptyBodyFunctionExpression"}A.exports={preprocess:Q,print:Le,embed:L,insertPragma:C,massageAstNode:P,hasPrettierIgnore($t){return F($t)||ce($t)},willPrintOwnComments:S.willPrintOwnComments,canAttachComment:kt,printComment:Ut,isBlockComment:I,handleComments:{avoidAstMutation:!0,ownLine:S.handleOwnLineComment,endOfLine:S.handleEndOfLineComment,remaining:S.handleRemainingComment},getCommentChildNodes:S.getCommentChildNodes}}}),j2=Te({"src/language-js/printer-estree-json.js"(m,A){Re();var{builders:{hardline:p,indent:b,join:D}}=wn(),f=X0();function d(B,L,P){let C=B.getValue();switch(C.type){case"JsonRoot":return[P("node"),p];case"ArrayExpression":{if(C.elements.length===0)return"[]";let S=B.map(()=>B.getValue()===null?"null":P(),"elements");return["[",b([p,D([",",p],S)]),p,"]"]}case"ObjectExpression":return C.properties.length===0?"{}":["{",b([p,D([",",p],B.map(P,"properties"))]),p,"}"];case"ObjectProperty":return[P("key"),": ",P("value")];case"UnaryExpression":return[C.operator==="+"?"":C.operator,P("argument")];case"NullLiteral":return"null";case"BooleanLiteral":return C.value?"true":"false";case"StringLiteral":return JSON.stringify(C.value);case"NumericLiteral":return h(B)?JSON.stringify(String(C.value)):JSON.stringify(C.value);case"Identifier":return h(B)?JSON.stringify(C.name):C.name;case"TemplateLiteral":return P(["quasis",0]);case"TemplateElement":return JSON.stringify(C.value.cooked);default:throw new Error("unknown type: "+JSON.stringify(C.type))}}function h(B){return B.getName()==="key"&&B.getParentNode().type==="ObjectProperty"}var E=new Set(["start","end","extra","loc","comments","leadingComments","trailingComments","innerComments","errors","range","tokens"]);function x(B,L){let{type:P}=B;if(P==="ObjectProperty"){let{key:C}=B;C.type==="Identifier"?L.key={type:"StringLiteral",value:C.name}:C.type==="NumericLiteral"&&(L.key={type:"StringLiteral",value:String(C.value)});return}if(P==="UnaryExpression"&&B.operator==="+")return L.argument;if(P==="ArrayExpression"){for(let[C,S]of B.elements.entries())S===null&&L.elements.splice(C,0,{type:"NullLiteral"});return}if(P==="TemplateLiteral")return{type:"StringLiteral",value:B.quasis[0].value.cooked}}x.ignoredProperties=E,A.exports={preprocess:f,print:d,massageAstNode:x}}}),ro=Te({"src/common/common-options.js"(m,A){Re();var p="Common";A.exports={bracketSpacing:{since:"0.0.0",category:p,type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{since:"0.0.0",category:p,type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{since:"1.8.2",category:p,type:"choice",default:[{since:"1.8.2",value:!0},{since:"1.9.0",value:"preserve"}],description:"How to wrap prose.",choices:[{since:"1.9.0",value:"always",description:"Wrap prose if it exceeds the print width."},{since:"1.9.0",value:"never",description:"Do not wrap prose."},{since:"1.9.0",value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{since:"2.4.0",category:p,type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{since:"2.6.0",category:p,type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}}}}),R2=Te({"src/language-js/options.js"(m,A){Re();var p=ro(),b="JavaScript";A.exports={arrowParens:{since:"1.9.0",category:b,type:"choice",default:[{since:"1.9.0",value:"avoid"},{since:"2.0.0",value:"always"}],description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"always",description:"Always include parens. Example: `(x) => x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSameLine:p.bracketSameLine,bracketSpacing:p.bracketSpacing,jsxBracketSameLine:{since:"0.17.0",category:b,type:"boolean",description:"Put > on the last line instead of at a new line.",deprecated:"2.4.0"},semi:{since:"1.0.0",category:b,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},singleQuote:p.singleQuote,jsxSingleQuote:{since:"1.15.0",category:b,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{since:"1.17.0",category:b,type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{since:"0.0.0",category:b,type:"choice",default:[{since:"0.0.0",value:!1},{since:"0.19.0",value:"none"},{since:"2.0.0",value:"es5"}],description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."},{value:"all",description:"Trailing commas wherever possible (including function arguments)."}]},singleAttributePerLine:p.singleAttributePerLine}}}),$2=Te({"src/language-js/parse/parsers.js"(){Re()}}),up=Te({"node_modules/linguist-languages/data/JavaScript.json"(m,A){A.exports={name:"JavaScript",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:["js","node"],extensions:[".js","._js",".bones",".cjs",".es",".es6",".frag",".gs",".jake",".javascript",".jsb",".jscad",".jsfl",".jslib",".jsm",".jspre",".jss",".jsx",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib"],filenames:["Jakefile"],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],languageId:183}}}),V2=Te({"node_modules/linguist-languages/data/TypeScript.json"(m,A){A.exports={name:"TypeScript",type:"programming",color:"#3178c6",aliases:["ts"],interpreters:["deno","ts-node"],extensions:[".ts",".cts",".mts"],tmScope:"source.ts",aceMode:"typescript",codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",languageId:378}}}),q2=Te({"node_modules/linguist-languages/data/TSX.json"(m,A){A.exports={name:"TSX",type:"programming",color:"#3178c6",group:"TypeScript",extensions:[".tsx"],tmScope:"source.tsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",languageId:94901924}}}),ag=Te({"node_modules/linguist-languages/data/JSON.json"(m,A){A.exports={name:"JSON",type:"data",color:"#292929",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",aliases:["geojson","jsonl","topojson"],extensions:[".json",".4DForm",".4DProject",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".jsonl",".mcmeta",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],filenames:[".arcconfig",".auto-changelog",".c8rc",".htmlhintrc",".imgbotconfig",".nycrc",".tern-config",".tern-project",".watchmanconfig","Pipfile.lock","composer.lock","mcmod.info"],languageId:174}}}),U2=Te({"node_modules/linguist-languages/data/JSON with Comments.json"(m,A){A.exports={name:"JSON with Comments",type:"data",color:"#292929",group:"JSON",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",aliases:["jsonc"],extensions:[".jsonc",".code-snippets",".sublime-build",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],filenames:[".babelrc",".devcontainer.json",".eslintrc.json",".jscsrc",".jshintrc",".jslintrc","api-extractor.json","devcontainer.json","jsconfig.json","language-configuration.json","tsconfig.json","tslint.json"],languageId:423}}}),W2=Te({"node_modules/linguist-languages/data/JSON5.json"(m,A){A.exports={name:"JSON5",type:"data",color:"#267CB9",extensions:[".json5"],tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",languageId:175}}}),G2=Te({"src/language-js/index.js"(m,A){Re();var p=sa(),b=O2(),D=j2(),f=R2(),d=$2(),h=[p(up(),x=>({since:"0.0.0",parsers:["babel","acorn","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"],interpreters:[...x.interpreters,"zx"],extensions:[...x.extensions.filter(B=>B!==".jsx"),".wxs"]})),p(up(),()=>({name:"Flow",since:"0.0.0",parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"],aliases:[],filenames:[],extensions:[".js.flow"]})),p(up(),()=>({name:"JSX",since:"0.0.0",parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"],aliases:void 0,filenames:void 0,extensions:[".jsx"],group:"JavaScript",interpreters:void 0,tmScope:"source.js.jsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",color:void 0})),p(V2(),()=>({since:"1.4.0",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"]})),p(q2(),()=>({since:"1.4.0",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"]})),p(ag(),()=>({name:"JSON.stringify",since:"1.13.0",parsers:["json-stringify"],vscodeLanguageIds:["json"],extensions:[".importmap"],filenames:["package.json","package-lock.json","composer.json"]})),p(ag(),x=>({since:"1.5.0",parsers:["json"],vscodeLanguageIds:["json"],extensions:x.extensions.filter(B=>B!==".jsonl")})),p(U2(),x=>({since:"1.5.0",parsers:["json"],vscodeLanguageIds:["jsonc"],filenames:[...x.filenames,".eslintrc",".swcrc"]})),p(W2(),()=>({since:"1.13.0",parsers:["json5"],vscodeLanguageIds:["json5"]}))],E={estree:b,"estree-json":D};A.exports={languages:h,options:f,printers:E,parsers:d}}}),J2=Te({"src/language-css/clean.js"(m,A){Re();var{isFrontMatterNode:p}=De(),b=Vr(),D=new Set(["raw","raws","sourceIndex","source","before","after","trailingComma"]);function f(h,E,x){if(p(h)&&h.lang==="yaml"&&delete E.value,h.type==="css-comment"&&x.type==="css-root"&&x.nodes.length>0&&((x.nodes[0]===h||p(x.nodes[0])&&x.nodes[1]===h)&&(delete E.text,/^\*\s*@(?:format|prettier)\s*$/.test(h.text))||x.type==="css-root"&&b(x.nodes)===h))return null;if(h.type==="value-root"&&delete E.text,(h.type==="media-query"||h.type==="media-query-list"||h.type==="media-feature-expression")&&delete E.value,h.type==="css-rule"&&delete E.params,h.type==="selector-combinator"&&(E.value=E.value.replace(/\s+/g," ")),h.type==="media-feature"&&(E.value=E.value.replace(/ /g,"")),(h.type==="value-word"&&(h.isColor&&h.isHex||["initial","inherit","unset","revert"].includes(E.value.replace().toLowerCase()))||h.type==="media-feature"||h.type==="selector-root-invalid"||h.type==="selector-pseudo")&&(E.value=E.value.toLowerCase()),h.type==="css-decl"&&(E.prop=E.prop.toLowerCase()),(h.type==="css-atrule"||h.type==="css-import")&&(E.name=E.name.toLowerCase()),h.type==="value-number"&&(E.unit=E.unit.toLowerCase()),(h.type==="media-feature"||h.type==="media-keyword"||h.type==="media-type"||h.type==="media-unknown"||h.type==="media-url"||h.type==="media-value"||h.type==="selector-attribute"||h.type==="selector-string"||h.type==="selector-class"||h.type==="selector-combinator"||h.type==="value-string")&&E.value&&(E.value=d(E.value)),h.type==="selector-attribute"&&(E.attribute=E.attribute.trim(),E.namespace&&typeof E.namespace=="string"&&(E.namespace=E.namespace.trim(),E.namespace.length===0&&(E.namespace=!0)),E.value&&(E.value=E.value.trim().replace(/^["']|["']$/g,""),delete E.quoted)),(h.type==="media-value"||h.type==="media-type"||h.type==="value-number"||h.type==="selector-root-invalid"||h.type==="selector-class"||h.type==="selector-combinator"||h.type==="selector-tag")&&E.value&&(E.value=E.value.replace(/([\d+.Ee-]+)([A-Za-z]*)/g,(B,L,P)=>{let C=Number(L);return Number.isNaN(C)?B:C+P.toLowerCase()})),h.type==="selector-tag"){let B=h.value.toLowerCase();["from","to"].includes(B)&&(E.value=B)}if(h.type==="css-atrule"&&h.name.toLowerCase()==="supports"&&delete E.value,h.type==="selector-unknown"&&delete E.value,h.type==="value-comma_group"){let B=h.groups.findIndex(L=>L.type==="value-number"&&L.unit==="...");B!==-1&&(E.groups[B].unit="",E.groups.splice(B+1,0,{type:"value-word",value:"...",isColor:!1,isHex:!1}))}if(h.type==="value-comma_group"&&h.groups.some(B=>B.type==="value-atword"&&B.value.endsWith("[")||B.type==="value-word"&&B.value.startsWith("]")))return{type:"value-atword",value:h.groups.map(B=>B.value).join(""),group:{open:null,close:null,groups:[],type:"value-paren_group"}}}f.ignoredProperties=D;function d(h){return h.replace(/'/g,'"').replace(/\\([^\dA-Fa-f])/g,"$1")}A.exports=f}}),lp=Te({"src/utils/front-matter/print.js"(m,A){Re();var{builders:{hardline:p,markAsRoot:b}}=wn();function D(f,d){if(f.lang==="yaml"){let h=f.value.trim(),E=h?d(h,{parser:"yaml"},{stripTrailingHardline:!0}):"";return b([f.startDelimiter,p,E,E?p:"",f.endDelimiter])}}A.exports=D}}),Y2=Te({"src/language-css/embed.js"(m,A){Re();var{builders:{hardline:p}}=wn(),b=lp();function D(f,d,h){let E=f.getValue();if(E.type==="front-matter"){let x=b(E,h);return x?[x,p]:""}}A.exports=D}}),og=Te({"src/utils/front-matter/parse.js"(m,A){Re();var p=new RegExp("^(?<startDelimiter>-{3}|\\+{3})(?<language>[^\\n]*)\\n(?:|(?<value>.*?)\\n)(?<endDelimiter>\\k<startDelimiter>|\\.{3})[^\\S\\n]*(?:\\n|$)","s");function b(D){let f=D.match(p);if(!f)return{content:D};let{startDelimiter:d,language:h,value:E="",endDelimiter:x}=f.groups,B=h.trim()||"yaml";if(d==="+++"&&(B="toml"),B!=="yaml"&&d!==x)return{content:D};let[L]=f;return{frontMatter:{type:"front-matter",lang:B,value:E,startDelimiter:d,endDelimiter:x,raw:L.replace(/\n$/,"")},content:L.replace(/[^\n]/g," ")+D.slice(L.length)}}A.exports=b}}),H2=Te({"src/language-css/pragma.js"(m,A){Re();var p=z0(),b=og();function D(d){return p.hasPragma(b(d).content)}function f(d){let{frontMatter:h,content:E}=b(d);return(h?h.raw+`
212
-
213
- `:"")+p.insertPragma(E)}A.exports={hasPragma:D,insertPragma:f}}}),z2=Te({"src/language-css/utils/index.js"(m,A){Re();var p=new Set(["red","green","blue","alpha","a","rgb","hue","h","saturation","s","lightness","l","whiteness","w","blackness","b","tint","shade","blend","blenda","contrast","hsl","hsla","hwb","hwba"]);function b($e,we){let Je=Array.isArray(we)?we:[we],Ke=-1,Et;for(;Et=$e.getParentNode(++Ke);)if(Je.includes(Et.type))return Ke;return-1}function D($e,we){let Je=b($e,we);return Je===-1?null:$e.getParentNode(Je)}function f($e){var we;let Je=D($e,"css-decl");return Je==null||(we=Je.prop)===null||we===void 0?void 0:we.toLowerCase()}var d=new Set(["initial","inherit","unset","revert"]);function h($e){return d.has($e.toLowerCase())}function E($e,we){let Je=D($e,"css-atrule");return(Je==null?void 0:Je.name)&&Je.name.toLowerCase().endsWith("keyframes")&&["from","to"].includes(we.toLowerCase())}function x($e){return $e.includes("$")||$e.includes("@")||$e.includes("#")||$e.startsWith("%")||$e.startsWith("--")||$e.startsWith(":--")||$e.includes("(")&&$e.includes(")")?$e:$e.toLowerCase()}function B($e,we){var Je;let Ke=D($e,"value-func");return(Ke==null||(Je=Ke.value)===null||Je===void 0?void 0:Je.toLowerCase())===we}function L($e){var we;let Je=D($e,"css-rule"),Ke=Je==null||(we=Je.raws)===null||we===void 0?void 0:we.selector;return Ke&&(Ke.startsWith(":import")||Ke.startsWith(":export"))}function P($e,we){let Je=Array.isArray(we)?we:[we],Ke=D($e,"css-atrule");return Ke&&Je.includes(Ke.name.toLowerCase())}function C($e){let we=$e.getValue(),Je=D($e,"css-atrule");return(Je==null?void 0:Je.name)==="import"&&we.groups[0].value==="url"&&we.groups.length===2}function S($e){return $e.type==="value-func"&&$e.value.toLowerCase()==="url"}function j($e,we){var Je;let Ke=(Je=$e.getParentNode())===null||Je===void 0?void 0:Je.nodes;return Ke&&Ke.indexOf(we)===Ke.length-1}function Q($e){let{selector:we}=$e;return we?typeof we=="string"&&/^@.+:.*$/.test(we)||we.value&&/^@.+:.*$/.test(we.value):!1}function ne($e){return $e.type==="value-word"&&["from","through","end"].includes($e.value)}function $($e){return $e.type==="value-word"&&["and","or","not"].includes($e.value)}function X($e){return $e.type==="value-word"&&$e.value==="in"}function G($e){return $e.type==="value-operator"&&$e.value==="*"}function re($e){return $e.type==="value-operator"&&$e.value==="/"}function ee($e){return $e.type==="value-operator"&&$e.value==="+"}function be($e){return $e.type==="value-operator"&&$e.value==="-"}function F($e){return $e.type==="value-operator"&&$e.value==="%"}function J($e){return G($e)||re($e)||ee($e)||be($e)||F($e)}function w($e){return $e.type==="value-word"&&["==","!="].includes($e.value)}function R($e){return $e.type==="value-word"&&["<",">","<=",">="].includes($e.value)}function y($e){return $e.type==="css-atrule"&&["if","else","for","each","while"].includes($e.name)}function k($e){var we;return((we=$e.raws)===null||we===void 0?void 0:we.params)&&/^\(\s*\)$/.test($e.raws.params)}function I($e){return $e.name.startsWith("prettier-placeholder")}function q($e){return $e.prop.startsWith("@prettier-placeholder")}function U($e,we){return $e.value==="$$"&&$e.type==="value-func"&&(we==null?void 0:we.type)==="value-word"&&!we.raws.before}function z($e){var we,Je;return((we=$e.value)===null||we===void 0?void 0:we.type)==="value-root"&&((Je=$e.value.group)===null||Je===void 0?void 0:Je.type)==="value-value"&&$e.prop.toLowerCase()==="composes"}function ie($e){var we,Je,Ke;return((we=$e.value)===null||we===void 0||(Je=we.group)===null||Je===void 0||(Ke=Je.group)===null||Ke===void 0?void 0:Ke.type)==="value-paren_group"&&$e.value.group.group.open!==null&&$e.value.group.group.close!==null}function ce($e){var we;return((we=$e.raws)===null||we===void 0?void 0:we.before)===""}function ye($e){var we,Je;return $e.type==="value-comma_group"&&((we=$e.groups)===null||we===void 0||(Je=we[1])===null||Je===void 0?void 0:Je.type)==="value-colon"}function fe($e){var we;return $e.type==="value-paren_group"&&((we=$e.groups)===null||we===void 0?void 0:we[0])&&ye($e.groups[0])}function _e($e){var we;let Je=$e.getValue();if(Je.groups.length===0)return!1;let Ke=$e.getParentNode(1);if(!fe(Je)&&!(Ke&&fe(Ke)))return!1;let Et=D($e,"css-decl");return!!(Et!=null&&(we=Et.prop)!==null&&we!==void 0&&we.startsWith("$")||fe(Ke)||Ke.type==="value-func")}function se($e){return $e.type==="value-comment"&&$e.inline}function Ue($e){return $e.type==="value-word"&&$e.value==="#"}function ge($e){return $e.type==="value-word"&&$e.value==="{"}function ue($e){return $e.type==="value-word"&&$e.value==="}"}function qe($e){return["value-word","value-atword"].includes($e.type)}function rt($e){return($e==null?void 0:$e.type)==="value-colon"}function Ge($e,we){if(!ye(we))return!1;let{groups:Je}=we,Ke=Je.indexOf($e);return Ke===-1?!1:rt(Je[Ke+1])}function mt($e){return $e.value&&["not","and","or"].includes($e.value.toLowerCase())}function ve($e){return $e.type!=="value-func"?!1:p.has($e.value.toLowerCase())}function Ie($e){return/\/\//.test($e.split(/[\n\r]/).pop())}function pt($e){return($e==null?void 0:$e.type)==="value-atword"&&$e.value.startsWith("prettier-placeholder-")}function dt($e,we){var Je,Ke;if(((Je=$e.open)===null||Je===void 0?void 0:Je.value)!=="("||((Ke=$e.close)===null||Ke===void 0?void 0:Ke.value)!==")"||$e.groups.some(Et=>Et.type!=="value-comma_group"))return!1;if(we.type==="value-comma_group"){let Et=we.groups.indexOf($e)-1,_t=we.groups[Et];if((_t==null?void 0:_t.type)==="value-word"&&_t.value==="with")return!0}return!1}function Jt($e){var we,Je;return $e.type==="value-paren_group"&&((we=$e.open)===null||we===void 0?void 0:we.value)==="("&&((Je=$e.close)===null||Je===void 0?void 0:Je.value)===")"}A.exports={getAncestorCounter:b,getAncestorNode:D,getPropOfDeclNode:f,maybeToLowerCase:x,insideValueFunctionNode:B,insideICSSRuleNode:L,insideAtRuleNode:P,insideURLFunctionInImportAtRuleNode:C,isKeyframeAtRuleKeywords:E,isWideKeywords:h,isLastNode:j,isSCSSControlDirectiveNode:y,isDetachedRulesetDeclarationNode:Q,isRelationalOperatorNode:R,isEqualityOperatorNode:w,isMultiplicationNode:G,isDivisionNode:re,isAdditionNode:ee,isSubtractionNode:be,isModuloNode:F,isMathOperatorNode:J,isEachKeywordNode:X,isForKeywordNode:ne,isURLFunctionNode:S,isIfElseKeywordNode:$,hasComposesNode:z,hasParensAroundNode:ie,hasEmptyRawBefore:ce,isDetachedRulesetCallNode:k,isTemplatePlaceholderNode:I,isTemplatePropNode:q,isPostcssSimpleVarNode:U,isKeyValuePairNode:ye,isKeyValuePairInParenGroupNode:fe,isKeyInValuePairNode:Ge,isSCSSMapItemNode:_e,isInlineValueCommentNode:se,isHashNode:Ue,isLeftCurlyBraceNode:ge,isRightCurlyBraceNode:ue,isWordNode:qe,isColonNode:rt,isMediaAndSupportsKeywords:mt,isColorAdjusterFuncNode:ve,lastLineHasInlineComment:Ie,isAtWordPlaceholderNode:pt,isConfigurationNode:dt,isParenGroupNode:Jt}}}),Q2=Te({"src/utils/line-column-to-index.js"(m,A){Re(),A.exports=function(p,b){let D=0;for(let f=0;f<p.line-1;++f)D=b.indexOf(`
214
- `,D)+1;return D+p.column}}}),X2=Te({"src/language-css/loc.js"(m,A){Re();var{skipEverythingButNewLine:p}=Lt(),b=Vr(),D=Q2();function f(C,S){return typeof C.sourceIndex=="number"?C.sourceIndex:C.source?D(C.source.start,S)-1:null}function d(C,S){if(C.type==="css-comment"&&C.inline)return p(S,C.source.startOffset);let j=C.nodes&&b(C.nodes);return j&&C.source&&!C.source.end&&(C=j),C.source&&C.source.end?D(C.source.end,S):null}function h(C,S){C.source&&(C.source.startOffset=f(C,S),C.source.endOffset=d(C,S));for(let j in C){let Q=C[j];j==="source"||!Q||typeof Q!="object"||(Q.type==="value-root"||Q.type==="value-unknown"?E(Q,x(C),Q.text||Q.value):h(Q,S))}}function E(C,S,j){C.source&&(C.source.startOffset=f(C,j)+S,C.source.endOffset=d(C,j)+S);for(let Q in C){let ne=C[Q];Q==="source"||!ne||typeof ne!="object"||E(ne,S,j)}}function x(C){let S=C.source.startOffset;return typeof C.prop=="string"&&(S+=C.prop.length),C.type==="css-atrule"&&typeof C.name=="string"&&(S+=1+C.name.length+C.raws.afterName.match(/^\s*:?\s*/)[0].length),C.type!=="css-atrule"&&C.raws&&typeof C.raws.between=="string"&&(S+=C.raws.between.length),S}function B(C){let S="initial",j="initial",Q,ne=!1,$=[];for(let X=0;X<C.length;X++){let G=C[X];switch(S){case"initial":if(G==="'"){S="single-quotes";continue}if(G==='"'){S="double-quotes";continue}if((G==="u"||G==="U")&&C.slice(X,X+4).toLowerCase()==="url("){S="url",X+=3;continue}if(G==="*"&&C[X-1]==="/"){S="comment-block";continue}if(G==="/"&&C[X-1]==="/"){S="comment-inline",Q=X-1;continue}continue;case"single-quotes":if(G==="'"&&C[X-1]!=="\\"&&(S=j,j="initial"),G===`
215
- `||G==="\r")return C;continue;case"double-quotes":if(G==='"'&&C[X-1]!=="\\"&&(S=j,j="initial"),G===`
216
- `||G==="\r")return C;continue;case"url":if(G===")"&&(S="initial"),G===`
217
- `||G==="\r")return C;if(G==="'"){S="single-quotes",j="url";continue}if(G==='"'){S="double-quotes",j="url";continue}continue;case"comment-block":G==="/"&&C[X-1]==="*"&&(S="initial");continue;case"comment-inline":(G==='"'||G==="'"||G==="*")&&(ne=!0),(G===`
218
- `||G==="\r")&&(ne&&$.push([Q,X]),S="initial",ne=!1);continue}}for(let[X,G]of $)C=C.slice(0,X)+C.slice(X,G).replace(/["'*]/g," ")+C.slice(G);return C}function L(C){return C.source.startOffset}function P(C){return C.source.endOffset}A.exports={locStart:L,locEnd:P,calculateLoc:h,replaceQuotesInInlineComments:B}}}),K2=Te({"src/language-css/utils/is-less-parser.js"(m,A){Re();function p(b){return b.parser==="css"||b.parser==="less"}A.exports=p}}),Z2=Te({"src/language-css/utils/is-scss.js"(m,A){Re();function p(b,D){return b==="less"||b==="scss"?b==="scss":/(?:\w\s*:\s*[^:}]+|#){|@import[^\n]+(?:url|,)/.test(D)}A.exports=p}}),eE=Te({"src/language-css/utils/css-units.evaluate.js"(m,A){A.exports={em:"em",rem:"rem",ex:"ex",rex:"rex",cap:"cap",rcap:"rcap",ch:"ch",rch:"rch",ic:"ic",ric:"ric",lh:"lh",rlh:"rlh",vw:"vw",svw:"svw",lvw:"lvw",dvw:"dvw",vh:"vh",svh:"svh",lvh:"lvh",dvh:"dvh",vi:"vi",svi:"svi",lvi:"lvi",dvi:"dvi",vb:"vb",svb:"svb",lvb:"lvb",dvb:"dvb",vmin:"vmin",svmin:"svmin",lvmin:"lvmin",dvmin:"dvmin",vmax:"vmax",svmax:"svmax",lvmax:"lvmax",dvmax:"dvmax",cm:"cm",mm:"mm",q:"Q",in:"in",pt:"pt",pc:"pc",px:"px",deg:"deg",grad:"grad",rad:"rad",turn:"turn",s:"s",ms:"ms",hz:"Hz",khz:"kHz",dpi:"dpi",dpcm:"dpcm",dppx:"dppx",x:"x"}}}),tE=Te({"src/language-css/utils/print-unit.js"(m,A){Re();var p=eE();function b(D){let f=D.toLowerCase();return Object.prototype.hasOwnProperty.call(p,f)?p[f]:D}A.exports=b}}),nE=Te({"src/language-css/printer-postcss.js"(m,A){Re();var p=Vr(),{printNumber:b,printString:D,hasNewline:f,isFrontMatterNode:d,isNextLineEmpty:h,isNonEmptyArray:E}=De(),{builders:{join:x,line:B,hardline:L,softline:P,group:C,fill:S,indent:j,dedent:Q,ifBreak:ne,breakParent:$},utils:{removeLines:X,getDocParts:G}}=wn(),re=J2(),ee=Y2(),{insertPragma:be}=H2(),{getAncestorNode:F,getPropOfDeclNode:J,maybeToLowerCase:w,insideValueFunctionNode:R,insideICSSRuleNode:y,insideAtRuleNode:k,insideURLFunctionInImportAtRuleNode:I,isKeyframeAtRuleKeywords:q,isWideKeywords:U,isLastNode:z,isSCSSControlDirectiveNode:ie,isDetachedRulesetDeclarationNode:ce,isRelationalOperatorNode:ye,isEqualityOperatorNode:fe,isMultiplicationNode:_e,isDivisionNode:se,isAdditionNode:Ue,isSubtractionNode:ge,isMathOperatorNode:ue,isEachKeywordNode:qe,isForKeywordNode:rt,isURLFunctionNode:Ge,isIfElseKeywordNode:mt,hasComposesNode:ve,hasParensAroundNode:Ie,hasEmptyRawBefore:pt,isKeyValuePairNode:dt,isKeyInValuePairNode:Jt,isDetachedRulesetCallNode:$e,isTemplatePlaceholderNode:we,isTemplatePropNode:Je,isPostcssSimpleVarNode:Ke,isSCSSMapItemNode:Et,isInlineValueCommentNode:_t,isHashNode:Bt,isLeftCurlyBraceNode:cn,isRightCurlyBraceNode:Pn,isWordNode:_n,isColonNode:ln,isMediaAndSupportsKeywords:yn,isColorAdjusterFuncNode:ut,lastLineHasInlineComment:xe,isAtWordPlaceholderNode:ht,isConfigurationNode:Oe,isParenGroupNode:ft}=z2(),{locStart:Zt,locEnd:Ut}=X2(),yt=K2(),V=Z2(),Le=tE();function it(an){return an.trailingComma==="es5"||an.trailingComma==="all"}function kt(an,Tn,xn){let ct=an.getValue();if(!ct)return"";if(typeof ct=="string")return ct;switch(ct.type){case"front-matter":return[ct.raw,L];case"css-root":{let Rn=$t(an,Tn,xn),Vn=ct.raws.after.trim();return Vn.startsWith(";")&&(Vn=Vn.slice(1).trim()),[Rn,Vn?` ${Vn}`:"",G(Rn).length>0?L:""]}case"css-comment":{let Rn=ct.inline||ct.raws.inline,Vn=Tn.originalText.slice(Zt(ct),Ut(ct));return Rn?Vn.trimEnd():Vn}case"css-rule":return[xn("selector"),ct.important?" !important":"",ct.nodes?[ct.selector&&ct.selector.type==="selector-unknown"&&xe(ct.selector.value)?B:" ","{",ct.nodes.length>0?j([L,$t(an,Tn,xn)]):"",L,"}",ce(ct)?";":""]:";"];case"css-decl":{let Rn=an.getParentNode(),{between:Vn}=ct.raws,fr=Vn.trim(),Ci=fr===":",oe=ve(ct)?X(xn("value")):xn("value");return!Ci&&xe(fr)&&(oe=j([L,Q(oe)])),[ct.raws.before.replace(/[\s;]/g,""),Rn.type==="css-atrule"&&Rn.variable||y(an)?ct.prop:w(ct.prop),fr.startsWith("//")?" ":"",fr,ct.extend?"":" ",yt(Tn)&&ct.extend&&ct.selector?["extend(",xn("selector"),")"]:"",oe,ct.raws.important?ct.raws.important.replace(/\s*!\s*important/i," !important"):ct.important?" !important":"",ct.raws.scssDefault?ct.raws.scssDefault.replace(/\s*!default/i," !default"):ct.scssDefault?" !default":"",ct.raws.scssGlobal?ct.raws.scssGlobal.replace(/\s*!global/i," !global"):ct.scssGlobal?" !global":"",ct.nodes?[" {",j([P,$t(an,Tn,xn)]),P,"}"]:Je(ct)&&!Rn.raws.semicolon&&Tn.originalText[Ut(ct)-1]!==";"?"":Tn.__isHTMLStyleAttribute&&z(an,ct)?ne(";"):";"]}case"css-atrule":{let Rn=an.getParentNode(),Vn=we(ct)&&!Rn.raws.semicolon&&Tn.originalText[Ut(ct)-1]!==";";if(yt(Tn)){if(ct.mixin)return[xn("selector"),ct.important?" !important":"",Vn?"":";"];if(ct.function)return[ct.name,xn("params"),Vn?"":";"];if(ct.variable)return["@",ct.name,": ",ct.value?xn("value"):"",ct.raws.between.trim()?ct.raws.between.trim()+" ":"",ct.nodes?["{",j([ct.nodes.length>0?P:"",$t(an,Tn,xn)]),P,"}"]:"",Vn?"":";"]}return["@",$e(ct)||ct.name.endsWith(":")?ct.name:w(ct.name),ct.params?[$e(ct)?"":we(ct)?ct.raws.afterName===""?"":ct.name.endsWith(":")?" ":/^\s*\n\s*\n/.test(ct.raws.afterName)?[L,L]:/^\s*\n/.test(ct.raws.afterName)?L:" ":" ",xn("params")]:"",ct.selector?j([" ",xn("selector")]):"",ct.value?C([" ",xn("value"),ie(ct)?Ie(ct)?" ":B:""]):ct.name==="else"?" ":"",ct.nodes?[ie(ct)?"":ct.selector&&!ct.selector.nodes&&typeof ct.selector.value=="string"&&xe(ct.selector.value)||!ct.selector&&typeof ct.params=="string"&&xe(ct.params)?B:" ","{",j([ct.nodes.length>0?P:"",$t(an,Tn,xn)]),P,"}"]:Vn?"":";"]}case"media-query-list":{let Rn=[];return an.each(Vn=>{let fr=Vn.getValue();fr.type==="media-query"&&fr.value===""||Rn.push(xn())},"nodes"),C(j(x(B,Rn)))}case"media-query":return[x(" ",an.map(xn,"nodes")),z(an,ct)?"":","];case"media-type":return Ln(nn(ct.value,Tn));case"media-feature-expression":return ct.nodes?["(",...an.map(xn,"nodes"),")"]:ct.value;case"media-feature":return w(nn(ct.value.replace(/ +/g," "),Tn));case"media-colon":return[ct.value," "];case"media-value":return Ln(nn(ct.value,Tn));case"media-keyword":return nn(ct.value,Tn);case"media-url":return nn(ct.value.replace(/^url\(\s+/gi,"url(").replace(/\s+\)$/g,")"),Tn);case"media-unknown":return ct.value;case"selector-root":return C([k(an,"custom-selector")?[F(an,"css-atrule").customSelector,B]:"",x([",",k(an,["extend","custom-selector","nest"])?B:L],an.map(xn,"nodes"))]);case"selector-selector":return C(j(an.map(xn,"nodes")));case"selector-comment":return ct.value;case"selector-string":return nn(ct.value,Tn);case"selector-tag":{let Rn=an.getParentNode(),Vn=Rn&&Rn.nodes.indexOf(ct),fr=Vn&&Rn.nodes[Vn-1];return[ct.namespace?[ct.namespace===!0?"":ct.namespace.trim(),"|"]:"",fr.type==="selector-nesting"?ct.value:Ln(q(an,ct.value)?ct.value.toLowerCase():ct.value)]}case"selector-id":return["#",ct.value];case"selector-class":return[".",Ln(nn(ct.value,Tn))];case"selector-attribute":{var Ai;return["[",ct.namespace?[ct.namespace===!0?"":ct.namespace.trim(),"|"]:"",ct.attribute.trim(),(Ai=ct.operator)!==null&&Ai!==void 0?Ai:"",ct.value?An(nn(ct.value.trim(),Tn),Tn):"",ct.insensitive?" i":"","]"]}case"selector-combinator":{if(ct.value==="+"||ct.value===">"||ct.value==="~"||ct.value===">>>"){let fr=an.getParentNode();return[fr.type==="selector-selector"&&fr.nodes[0]===ct?"":B,ct.value,z(an,ct)?"":" "]}let Rn=ct.value.trim().startsWith("(")?B:"",Vn=Ln(nn(ct.value.trim(),Tn))||B;return[Rn,Vn]}case"selector-universal":return[ct.namespace?[ct.namespace===!0?"":ct.namespace.trim(),"|"]:"",ct.value];case"selector-pseudo":return[w(ct.value),E(ct.nodes)?C(["(",j([P,x([",",B],an.map(xn,"nodes"))]),P,")"]):""];case"selector-nesting":return ct.value;case"selector-unknown":{let Rn=F(an,"css-rule");if(Rn&&Rn.isSCSSNesterProperty)return Ln(nn(w(ct.value),Tn));let Vn=an.getParentNode();if(Vn.raws&&Vn.raws.selector){let Ci=Zt(Vn),oe=Ci+Vn.raws.selector.length;return Tn.originalText.slice(Ci,oe).trim()}let fr=an.getParentNode(1);if(Vn.type==="value-paren_group"&&fr&&fr.type==="value-func"&&fr.value==="selector"){let Ci=Ut(Vn.open)+1,oe=Zt(Vn.close),At=Tn.originalText.slice(Ci,oe).trim();return xe(At)?[$,At]:At}return ct.value}case"value-value":case"value-root":return xn("group");case"value-comment":return Tn.originalText.slice(Zt(ct),Ut(ct));case"value-comma_group":{let Rn=an.getParentNode(),Vn=an.getParentNode(1),fr=J(an),Ci=fr&&Rn.type==="value-value"&&(fr==="grid"||fr.startsWith("grid-template")),oe=F(an,"css-atrule"),At=oe&&ie(oe),mn=ct.groups.some(xi=>_t(xi)),Jn=an.map(xn,"groups"),Yn=[],mi=R(an,"url"),Sr=!1,ei=!1;for(let xi=0;xi<ct.groups.length;++xi){var Qr;Yn.push(Jn[xi]);let Or=ct.groups[xi-1],Fn=ct.groups[xi],Mn=ct.groups[xi+1],Sl=ct.groups[xi+2];if(mi){(Mn&&Ue(Mn)||Ue(Fn))&&Yn.push(" ");continue}if(k(an,"forward")&&Fn.type==="value-word"&&Fn.value&&Or!==void 0&&Or.type==="value-word"&&Or.value==="as"&&Mn.type==="value-operator"&&Mn.value==="*"||!Mn||Fn.type==="value-word"&&Fn.value.endsWith("-")&&ht(Mn))continue;if(Fn.type==="value-string"&&Fn.quoted){let mp=Fn.value.lastIndexOf("#{"),gp=Fn.value.lastIndexOf("}");mp!==-1&&gp!==-1?Sr=mp>gp:mp!==-1?Sr=!0:gp!==-1&&(Sr=!1)}if(Sr||ln(Fn)||ln(Mn)||Fn.type==="value-atword"&&(Fn.value===""||Fn.value.endsWith("["))||Mn.type==="value-word"&&Mn.value.startsWith("]")||Fn.value==="~"||Fn.value&&Fn.value.includes("\\")&&Mn&&Mn.type!=="value-comment"||Or&&Or.value&&Or.value.indexOf("\\")===Or.value.length-1&&Fn.type==="value-operator"&&Fn.value==="/"||Fn.value==="\\"||Ke(Fn,Mn)||Bt(Fn)||cn(Fn)||Pn(Mn)||cn(Mn)&&pt(Mn)||Pn(Fn)&&pt(Mn)||Fn.value==="--"&&Bt(Mn))continue;let hp=ue(Fn),hg=ue(Mn);if((hp&&Bt(Mn)||hg&&Pn(Fn))&&pt(Mn)||!Or&&se(Fn)||R(an,"calc")&&(Ue(Fn)||Ue(Mn)||ge(Fn)||ge(Mn))&&pt(Mn))continue;let yA=(Ue(Fn)||ge(Fn))&&xi===0&&(Mn.type==="value-number"||Mn.isHex)&&Vn&&ut(Vn)&&!pt(Mn),mg=Sl&&Sl.type==="value-func"||Sl&&_n(Sl)||Fn.type==="value-func"||_n(Fn),gg=Mn.type==="value-func"||_n(Mn)||Or&&Or.type==="value-func"||Or&&_n(Or);if(!(!(_e(Mn)||_e(Fn))&&!R(an,"calc")&&!yA&&(se(Mn)&&!mg||se(Fn)&&!gg||Ue(Mn)&&!mg||Ue(Fn)&&!gg||ge(Mn)||ge(Fn))&&(pt(Mn)||hp&&(!Or||Or&&ue(Or))))&&!((Tn.parser==="scss"||Tn.parser==="less")&&hp&&Fn.value==="-"&&ft(Mn)&&Ut(Fn)===Zt(Mn.open)&&Mn.open.value==="(")){if(_t(Fn)){if(Rn.type==="value-paren_group"){Yn.push(Q(L));continue}Yn.push(L);continue}if(At&&(fe(Mn)||ye(Mn)||mt(Mn)||qe(Fn)||rt(Fn))){Yn.push(" ");continue}if(oe&&oe.name.toLowerCase()==="namespace"){Yn.push(" ");continue}if(Ci){Fn.source&&Mn.source&&Fn.source.start.line!==Mn.source.start.line?(Yn.push(L),ei=!0):Yn.push(" ");continue}if(hg){Yn.push(" ");continue}if(!(Mn&&Mn.value==="...")&&!(ht(Fn)&&ht(Mn)&&Ut(Fn)===Zt(Mn))){if(ht(Fn)&&ft(Mn)&&Ut(Fn)===Zt(Mn.open)){Yn.push(P);continue}if(Fn.value==="with"&&ft(Mn)){Yn.push(" ");continue}(Qr=Fn.value)!==null&&Qr!==void 0&&Qr.endsWith("#")&&Mn.value==="{"&&ft(Mn.group)||Yn.push(B)}}}return mn&&Yn.push($),ei&&Yn.unshift(L),At?C(j(Yn)):I(an)?C(S(Yn)):C(j(S(Yn)))}case"value-paren_group":{let Rn=an.getParentNode();if(Rn&&Ge(Rn)&&(ct.groups.length===1||ct.groups.length>0&&ct.groups[0].type==="value-comma_group"&&ct.groups[0].groups.length>0&&ct.groups[0].groups[0].type==="value-word"&&ct.groups[0].groups[0].value.startsWith("data:")))return[ct.open?xn("open"):"",x(",",an.map(xn,"groups")),ct.close?xn("close"):""];if(!ct.open){let mi=an.map(xn,"groups"),Sr=[];for(let ei=0;ei<mi.length;ei++)ei!==0&&Sr.push([",",B]),Sr.push(mi[ei]);return C(j(S(Sr)))}let Vn=Et(an),fr=p(ct.groups),Ci=fr&&fr.type==="value-comment",oe=Jt(ct,Rn),At=Oe(ct,Rn),mn=At||Vn&&!oe,Jn=At||oe,Yn=C([ct.open?xn("open"):"",j([P,x([B],an.map((mi,Sr)=>{let ei=mi.getValue(),xi=Sr===ct.groups.length-1,Or=[xn(),xi?"":","];if(dt(ei)&&ei.type==="value-comma_group"&&ei.groups&&ei.groups[0].type!=="value-paren_group"&&ei.groups[2]&&ei.groups[2].type==="value-paren_group"){let Fn=G(Or[0].contents.contents);Fn[1]=C(Fn[1]),Or=[C(Q(Or))]}if(!xi&&ei.type==="value-comma_group"&&E(ei.groups)){let Fn=p(ei.groups);!Fn.source&&Fn.close&&(Fn=Fn.close),Fn.source&&h(Tn.originalText,Fn,Ut)&&Or.push(L)}return Or},"groups"))]),ne(!Ci&&V(Tn.parser,Tn.originalText)&&Vn&&it(Tn)?",":""),P,ct.close?xn("close"):""],{shouldBreak:mn});return Jn?Q(Yn):Yn}case"value-func":return[ct.value,k(an,"supports")&&yn(ct)?" ":"",xn("group")];case"value-paren":return ct.value;case"value-number":return[ar(ct.value),Le(ct.unit)];case"value-operator":return ct.value;case"value-word":return ct.isColor&&ct.isHex||U(ct.value)?ct.value.toLowerCase():ct.value;case"value-colon":{let Rn=an.getParentNode(),Vn=Rn&&Rn.groups.indexOf(ct),fr=Vn&&Rn.groups[Vn-1];return[ct.value,fr&&typeof fr.value=="string"&&p(fr.value)==="\\"||R(an,"url")?"":B]}case"value-comma":return[ct.value," "];case"value-string":return D(ct.raws.quote+ct.value+ct.raws.quote,Tn);case"value-atword":return["@",ct.value];case"value-unicode-range":return ct.value;case"value-unknown":return ct.value;default:throw new Error(`Unknown postcss type ${JSON.stringify(ct.type)}`)}}function $t(an,Tn,xn){let ct=[];return an.each((Ai,Qr,Rn)=>{let Vn=Rn[Qr-1];if(Vn&&Vn.type==="css-comment"&&Vn.text.trim()==="prettier-ignore"){let fr=Ai.getValue();ct.push(Tn.originalText.slice(Zt(fr),Ut(fr)))}else ct.push(xn());Qr!==Rn.length-1&&(Rn[Qr+1].type==="css-comment"&&!f(Tn.originalText,Zt(Rn[Qr+1]),{backwards:!0})&&!d(Rn[Qr])||Rn[Qr+1].type==="css-atrule"&&Rn[Qr+1].name==="else"&&Rn[Qr].type!=="css-comment"?ct.push(" "):(ct.push(Tn.__isHTMLStyleAttribute?B:L),h(Tn.originalText,Ai.getValue(),Ut)&&!d(Rn[Qr])&&ct.push(L)))},"nodes"),ct}var un=/(["'])(?:(?!\1)[^\\]|\\.)*\1/gs,Mt=/(?:\d*\.\d+|\d+\.?)(?:[Ee][+-]?\d+)?/g,Ar=/[A-Za-z]+/g,sn=/[$@]?[A-Z_a-z\u0080-\uFFFF][\w\u0080-\uFFFF-]*/g,Dr=new RegExp(un.source+`|(${sn.source})?(${Mt.source})(${Ar.source})?`,"g");function nn(an,Tn){return an.replace(un,xn=>D(xn,Tn))}function An(an,Tn){let xn=Tn.singleQuote?"'":'"';return an.includes('"')||an.includes("'")?an:xn+an+xn}function Ln(an){return an.replace(Dr,(Tn,xn,ct,Ai,Qr)=>!ct&&Ai?ar(Ai)+w(Qr||""):Tn)}function ar(an){return b(an).replace(/\.0(?=$|e)/,"")}A.exports={print:kt,embed:ee,insertPragma:be,massageAstNode:re}}}),rE=Te({"src/language-css/options.js"(m,A){Re();var p=ro();A.exports={singleQuote:p.singleQuote}}}),iE=Te({"src/language-css/parsers.js"(){Re()}}),sE=Te({"node_modules/linguist-languages/data/CSS.json"(m,A){A.exports={name:"CSS",type:"markup",tmScope:"source.css",aceMode:"css",codemirrorMode:"css",codemirrorMimeType:"text/css",color:"#563d7c",extensions:[".css"],languageId:50}}}),aE=Te({"node_modules/linguist-languages/data/PostCSS.json"(m,A){A.exports={name:"PostCSS",type:"markup",color:"#dc3a0c",tmScope:"source.postcss",group:"CSS",extensions:[".pcss",".postcss"],aceMode:"text",languageId:262764437}}}),oE=Te({"node_modules/linguist-languages/data/Less.json"(m,A){A.exports={name:"Less",type:"markup",color:"#1d365d",aliases:["less-css"],extensions:[".less"],tmScope:"source.css.less",aceMode:"less",codemirrorMode:"css",codemirrorMimeType:"text/css",languageId:198}}}),uE=Te({"node_modules/linguist-languages/data/SCSS.json"(m,A){A.exports={name:"SCSS",type:"markup",color:"#c6538c",tmScope:"source.css.scss",aceMode:"scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",extensions:[".scss"],languageId:329}}}),lE=Te({"src/language-css/index.js"(m,A){Re();var p=sa(),b=nE(),D=rE(),f=iE(),d=[p(sE(),E=>({since:"1.4.0",parsers:["css"],vscodeLanguageIds:["css"],extensions:[...E.extensions,".wxss"]})),p(aE(),()=>({since:"1.4.0",parsers:["css"],vscodeLanguageIds:["postcss"]})),p(oE(),()=>({since:"1.4.0",parsers:["less"],vscodeLanguageIds:["less"]})),p(uE(),()=>({since:"1.4.0",parsers:["scss"],vscodeLanguageIds:["scss"]}))],h={postcss:b};A.exports={languages:d,options:D,printers:h,parsers:f}}}),cE=Te({"src/language-handlebars/loc.js"(m,A){Re();function p(D){return D.loc.start.offset}function b(D){return D.loc.end.offset}A.exports={locStart:p,locEnd:b}}}),fE=Te({"src/language-handlebars/clean.js"(m,A){Re();function p(b,D){if(b.type==="TextNode"){let f=b.chars.trim();if(!f)return null;D.chars=f.replace(/[\t\n\f\r ]+/g," ")}b.type==="AttrNode"&&b.name.toLowerCase()==="class"&&delete D.value}p.ignoredProperties=new Set(["loc","selfClosing"]),A.exports=p}}),pE=Te({"src/language-handlebars/html-void-elements.evaluate.js"(m,A){A.exports=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]}}),dE=Te({"src/language-handlebars/utils.js"(m,A){Re();var p=Vr(),b=pE();function D(G){let re=G.getValue(),ee=G.getParentNode(0);return!!(P(G,["ElementNode"])&&p(ee.children)===re||P(G,["Block"])&&p(ee.body)===re)}function f(G){return G.toUpperCase()===G}function d(G){return L(G,["ElementNode"])&&typeof G.tag=="string"&&!G.tag.startsWith(":")&&(f(G.tag[0])||G.tag.includes("."))}var h=new Set(b);function E(G){return h.has(G.toLowerCase())&&!f(G[0])}function x(G){return G.selfClosing===!0||E(G.tag)||d(G)&&G.children.every(re=>B(re))}function B(G){return L(G,["TextNode"])&&!/\S/.test(G.chars)}function L(G,re){return G&&re.includes(G.type)}function P(G,re){let ee=G.getParentNode(0);return L(ee,re)}function C(G,re){let ee=Q(G);return L(ee,re)}function S(G,re){let ee=ne(G);return L(ee,re)}function j(G,re){var ee,be,F,J;let w=G.getValue(),R=(ee=G.getParentNode(0))!==null&&ee!==void 0?ee:{},y=(be=(F=(J=R.children)!==null&&J!==void 0?J:R.body)!==null&&F!==void 0?F:R.parts)!==null&&be!==void 0?be:[],k=y.indexOf(w);return k!==-1&&y[k+re]}function Q(G){let re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return j(G,-re)}function ne(G){return j(G,1)}function $(G){return L(G,["MustacheCommentStatement"])&&typeof G.value=="string"&&G.value.trim()==="prettier-ignore"}function X(G){let re=G.getValue(),ee=Q(G,2);return $(re)||$(ee)}A.exports={getNextNode:ne,getPreviousNode:Q,hasPrettierIgnore:X,isLastNodeOfSiblings:D,isNextNodeOfSomeType:S,isNodeOfSomeType:L,isParentOfSomeType:P,isPreviousNodeOfSomeType:C,isVoid:x,isWhitespaceNode:B}}}),hE=Te({"src/language-handlebars/printer-glimmer.js"(m,A){Re();var{builders:{dedent:p,fill:b,group:D,hardline:f,ifBreak:d,indent:h,join:E,line:x,softline:B},utils:{getDocParts:L,replaceTextEndOfLine:P}}=wn(),{getPreferredQuote:C,isNonEmptyArray:S}=De(),{locStart:j,locEnd:Q}=cE(),ne=fE(),{getNextNode:$,getPreviousNode:X,hasPrettierIgnore:G,isLastNodeOfSiblings:re,isNextNodeOfSomeType:ee,isNodeOfSomeType:be,isParentOfSomeType:F,isPreviousNodeOfSomeType:J,isVoid:w,isWhitespaceNode:R}=dE(),y=2;function k(xe,ht,Oe){let ft=xe.getValue();if(!ft)return"";if(G(xe))return ht.originalText.slice(j(ft),Q(ft));let Zt=ht.singleQuote?"'":'"';switch(ft.type){case"Block":case"Program":case"Template":return D(xe.map(Oe,"body"));case"ElementNode":{let Ut=D(q(xe,Oe)),yt=ht.htmlWhitespaceSensitivity==="ignore"&&ee(xe,["ElementNode"])?B:"";if(w(ft))return[Ut,yt];let V=["</",ft.tag,">"];return ft.children.length===0?[Ut,h(V),yt]:ht.htmlWhitespaceSensitivity==="ignore"?[Ut,h(U(xe,ht,Oe)),f,h(V),yt]:[Ut,h(D(U(xe,ht,Oe))),h(V),yt]}case"BlockStatement":{let Ut=xe.getParentNode(1);return Ut&&Ut.inverse&&Ut.inverse.body.length===1&&Ut.inverse.body[0]===ft&&Ut.inverse.body[0].path.parts[0]===Ut.path.parts[0]?[rt(xe,Oe,Ut.inverse.body[0].path.parts[0]),pt(xe,Oe,ht),dt(xe,Oe,ht)]:[ue(xe,Oe),D([pt(xe,Oe,ht),dt(xe,Oe,ht),Ge(xe,Oe,ht)])]}case"ElementModifierStatement":return D(["{{",_n(xe,Oe),"}}"]);case"MustacheStatement":return D([ie(ft),_n(xe,Oe),ce(ft)]);case"SubExpression":return D(["(",Pn(xe,Oe),B,")"]);case"AttrNode":{let Ut=ft.value.type==="TextNode";if(Ut&&ft.value.chars===""&&j(ft.value)===Q(ft.value))return ft.name;let yt=Ut?C(ft.value.chars,Zt).quote:ft.value.type==="ConcatStatement"?C(ft.value.parts.filter(Le=>Le.type==="TextNode").map(Le=>Le.chars).join(""),Zt).quote:"",V=Oe("value");return[ft.name,"=",yt,ft.name==="class"&&yt?D(h(V)):V,yt]}case"ConcatStatement":return xe.map(Oe,"parts");case"Hash":return E(x,xe.map(Oe,"pairs"));case"HashPair":return[ft.key,"=",Oe("value")];case"TextNode":{let Ut=ft.chars.replace(/{{/g,"\\{{"),yt=we(xe);if(yt){if(yt==="class"){let sn=Ut.trim().split(/\s+/).join(" "),Dr=!1,nn=!1;return F(xe,["ConcatStatement"])&&(J(xe,["MustacheStatement"])&&/^\s/.test(Ut)&&(Dr=!0),ee(xe,["MustacheStatement"])&&/\s$/.test(Ut)&&sn!==""&&(nn=!0)),[Dr?x:"",sn,nn?x:""]}return P(Ut)}let V=/^[\t\n\f\r ]*$/.test(Ut),Le=!X(xe),it=!$(xe);if(ht.htmlWhitespaceSensitivity!=="ignore"){let sn=/^[\t\n\f\r ]*/,Dr=/[\t\n\f\r ]*$/,nn=it&&F(xe,["Template"]),An=Le&&F(xe,["Template"]);if(V){if(An||nn)return"";let xn=[x],ct=Je(Ut);return ct&&(xn=_t(ct)),re(xe)&&(xn=xn.map(Ai=>p(Ai))),xn}let[Ln]=Ut.match(sn),[ar]=Ut.match(Dr),an=[];if(Ln){an=[x];let xn=Je(Ln);xn&&(an=_t(xn)),Ut=Ut.replace(sn,"")}let Tn=[];if(ar){if(!nn){Tn=[x];let xn=Je(ar);xn&&(Tn=_t(xn)),re(xe)&&(Tn=Tn.map(ct=>p(ct)))}Ut=Ut.replace(Dr,"")}return[...an,b(Jt(Ut)),...Tn]}let kt=Je(Ut),$t=Ke(Ut),un=Et(Ut);if((Le||it)&&V&&F(xe,["Block","ElementNode","Template"]))return"";V&&kt?($t=Math.min(kt,y),un=0):(ee(xe,["BlockStatement","ElementNode"])&&(un=Math.max(un,1)),J(xe,["BlockStatement","ElementNode"])&&($t=Math.max($t,1)));let Mt="",Ar="";return un===0&&ee(xe,["MustacheStatement"])&&(Ar=" "),$t===0&&J(xe,["MustacheStatement"])&&(Mt=" "),Le&&($t=0,Mt=""),it&&(un=0,Ar=""),Ut=Ut.replace(/^[\t\n\f\r ]+/g,Mt).replace(/[\t\n\f\r ]+$/,Ar),[..._t($t),b(Jt(Ut)),..._t(un)]}case"MustacheCommentStatement":{let Ut=j(ft),yt=Q(ft),V=ht.originalText.charAt(Ut+2)==="~",Le=ht.originalText.charAt(yt-3)==="~",it=ft.value.includes("}}")?"--":"";return["{{",V?"~":"","!",it,ft.value,it,Le?"~":"","}}"]}case"PathExpression":return ft.original;case"BooleanLiteral":return String(ft.value);case"CommentStatement":return["<!--",ft.value,"-->"];case"StringLiteral":{if(cn(xe)){let Ut=ht.singleQuote?'"':"'";return Bt(ft.value,Ut)}return Bt(ft.value,Zt)}case"NumberLiteral":return String(ft.value);case"UndefinedLiteral":return"undefined";case"NullLiteral":return"null";default:throw new Error("unknown glimmer type: "+JSON.stringify(ft.type))}}function I(xe,ht){return j(xe)-j(ht)}function q(xe,ht){let Oe=xe.getValue(),ft=["attributes","modifiers","comments"].filter(Ut=>S(Oe[Ut])),Zt=ft.flatMap(Ut=>Oe[Ut]).sort(I);for(let Ut of ft)xe.each(yt=>{let V=Zt.indexOf(yt.getValue());Zt.splice(V,1,[x,ht()])},Ut);return S(Oe.blockParams)&&Zt.push(x,ut(Oe)),["<",Oe.tag,h(Zt),z(Oe)]}function U(xe,ht,Oe){let ft=xe.getValue().children.every(Zt=>R(Zt));return ht.htmlWhitespaceSensitivity==="ignore"&&ft?"":xe.map((Zt,Ut)=>{let yt=Oe();return Ut===0&&ht.htmlWhitespaceSensitivity==="ignore"?[B,yt]:yt},"children")}function z(xe){return w(xe)?d([B,"/>"],[" />",B]):d([B,">"],">")}function ie(xe){let ht=xe.escaped===!1?"{{{":"{{",Oe=xe.strip&&xe.strip.open?"~":"";return[ht,Oe]}function ce(xe){let ht=xe.escaped===!1?"}}}":"}}";return[xe.strip&&xe.strip.close?"~":"",ht]}function ye(xe){let ht=ie(xe),Oe=xe.openStrip.open?"~":"";return[ht,Oe,"#"]}function fe(xe){let ht=ce(xe);return[xe.openStrip.close?"~":"",ht]}function _e(xe){let ht=ie(xe),Oe=xe.closeStrip.open?"~":"";return[ht,Oe,"/"]}function se(xe){let ht=ce(xe);return[xe.closeStrip.close?"~":"",ht]}function Ue(xe){let ht=ie(xe),Oe=xe.inverseStrip.open?"~":"";return[ht,Oe]}function ge(xe){let ht=ce(xe);return[xe.inverseStrip.close?"~":"",ht]}function ue(xe,ht){let Oe=xe.getValue(),ft=[],Zt=yn(xe,ht);return Zt&&ft.push(D(Zt)),S(Oe.program.blockParams)&&ft.push(ut(Oe.program)),D([ye(Oe),ln(xe,ht),ft.length>0?h([x,E(x,ft)]):"",B,fe(Oe)])}function qe(xe,ht){return[ht.htmlWhitespaceSensitivity==="ignore"?f:"",Ue(xe),"else",ge(xe)]}function rt(xe,ht,Oe){let ft=xe.getValue(),Zt=xe.getParentNode(1);return D([Ue(Zt),["else"," ",Oe],h([x,D(yn(xe,ht)),...S(ft.program.blockParams)?[x,ut(ft.program)]:[]]),B,ge(Zt)])}function Ge(xe,ht,Oe){let ft=xe.getValue();return Oe.htmlWhitespaceSensitivity==="ignore"?[mt(ft)?B:f,_e(ft),ht("path"),se(ft)]:[_e(ft),ht("path"),se(ft)]}function mt(xe){return be(xe,["BlockStatement"])&&xe.program.body.every(ht=>R(ht))}function ve(xe){return Ie(xe)&&xe.inverse.body.length===1&&be(xe.inverse.body[0],["BlockStatement"])&&xe.inverse.body[0].path.parts[0]===xe.path.parts[0]}function Ie(xe){return be(xe,["BlockStatement"])&&xe.inverse}function pt(xe,ht,Oe){let ft=xe.getValue();if(mt(ft))return"";let Zt=ht("program");return Oe.htmlWhitespaceSensitivity==="ignore"?h([f,Zt]):h(Zt)}function dt(xe,ht,Oe){let ft=xe.getValue(),Zt=ht("inverse"),Ut=Oe.htmlWhitespaceSensitivity==="ignore"?[f,Zt]:Zt;return ve(ft)?Ut:Ie(ft)?[qe(ft,Oe),h(Ut)]:""}function Jt(xe){return L(E(x,$e(xe)))}function $e(xe){return xe.split(/[\t\n\f\r ]+/)}function we(xe){for(let ht=0;ht<2;ht++){let Oe=xe.getParentNode(ht);if(Oe&&Oe.type==="AttrNode")return Oe.name.toLowerCase()}}function Je(xe){return xe=typeof xe=="string"?xe:"",xe.split(`
219
- `).length-1}function Ke(xe){xe=typeof xe=="string"?xe:"";let ht=(xe.match(/^([^\S\n\r]*[\n\r])+/g)||[])[0]||"";return Je(ht)}function Et(xe){xe=typeof xe=="string"?xe:"";let ht=(xe.match(/([\n\r][^\S\n\r]*)+$/g)||[])[0]||"";return Je(ht)}function _t(){let xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return Array.from({length:Math.min(xe,y)}).fill(f)}function Bt(xe,ht){let{quote:Oe,regex:ft}=C(xe,ht);return[Oe,xe.replace(ft,`\\${Oe}`),Oe]}function cn(xe){let ht=0,Oe=xe.getParentNode(ht);for(;Oe&&be(Oe,["SubExpression"]);)ht++,Oe=xe.getParentNode(ht);return!!(Oe&&be(xe.getParentNode(ht+1),["ConcatStatement"])&&be(xe.getParentNode(ht+2),["AttrNode"]))}function Pn(xe,ht){let Oe=ln(xe,ht),ft=yn(xe,ht);return ft?h([Oe,x,D(ft)]):Oe}function _n(xe,ht){let Oe=ln(xe,ht),ft=yn(xe,ht);return ft?[h([Oe,x,ft]),B]:Oe}function ln(xe,ht){return ht("path")}function yn(xe,ht){let Oe=xe.getValue(),ft=[];if(Oe.params.length>0){let Zt=xe.map(ht,"params");ft.push(...Zt)}if(Oe.hash&&Oe.hash.pairs.length>0){let Zt=ht("hash");ft.push(Zt)}return ft.length===0?"":E(x,ft)}function ut(xe){return["as |",xe.blockParams.join(" "),"|"]}A.exports={print:k,massageAstNode:ne}}}),mE=Te({"src/language-handlebars/parsers.js"(){Re()}}),gE=Te({"node_modules/linguist-languages/data/Handlebars.json"(m,A){A.exports={name:"Handlebars",type:"markup",color:"#f7931e",aliases:["hbs","htmlbars"],extensions:[".handlebars",".hbs"],tmScope:"text.html.handlebars",aceMode:"handlebars",languageId:155}}}),yE=Te({"src/language-handlebars/index.js"(m,A){Re();var p=sa(),b=hE(),D=mE(),f=[p(gE(),()=>({since:"2.3.0",parsers:["glimmer"],vscodeLanguageIds:["handlebars"]}))],d={glimmer:b};A.exports={languages:f,printers:d,parsers:D}}}),DE=Te({"src/language-graphql/pragma.js"(m,A){Re();function p(D){return/^\s*#[^\S\n]*@(?:format|prettier)\s*(?:\n|$)/.test(D)}function b(D){return`# @format
220
-
221
- `+D}A.exports={hasPragma:p,insertPragma:b}}}),bE=Te({"src/language-graphql/loc.js"(m,A){Re();function p(D){return typeof D.start=="number"?D.start:D.loc&&D.loc.start}function b(D){return typeof D.end=="number"?D.end:D.loc&&D.loc.end}A.exports={locStart:p,locEnd:b}}}),vE=Te({"src/language-graphql/printer-graphql.js"(m,A){Re();var{builders:{join:p,hardline:b,line:D,softline:f,group:d,indent:h,ifBreak:E}}=wn(),{isNextLineEmpty:x,isNonEmptyArray:B}=De(),{insertPragma:L}=DE(),{locStart:P,locEnd:C}=bE();function S(ee,be,F){let J=ee.getValue();if(!J)return"";if(typeof J=="string")return J;switch(J.kind){case"Document":{let w=[];return ee.each((R,y,k)=>{w.push(F()),y!==k.length-1&&(w.push(b),x(be.originalText,R.getValue(),C)&&w.push(b))},"definitions"),[...w,b]}case"OperationDefinition":{let w=be.originalText[P(J)]!=="{",R=!!J.name;return[w?J.operation:"",w&&R?[" ",F("name")]:"",w&&!R&&B(J.variableDefinitions)?" ":"",B(J.variableDefinitions)?d(["(",h([f,p([E("",", "),f],ee.map(F,"variableDefinitions"))]),f,")"]):"",j(ee,F,J),J.selectionSet?!w&&!R?"":" ":"",F("selectionSet")]}case"FragmentDefinition":return["fragment ",F("name"),B(J.variableDefinitions)?d(["(",h([f,p([E("",", "),f],ee.map(F,"variableDefinitions"))]),f,")"]):""," on ",F("typeCondition"),j(ee,F,J)," ",F("selectionSet")];case"SelectionSet":return["{",h([b,p(b,Q(ee,be,F,"selections"))]),b,"}"];case"Field":return d([J.alias?[F("alias"),": "]:"",F("name"),J.arguments.length>0?d(["(",h([f,p([E("",", "),f],Q(ee,be,F,"arguments"))]),f,")"]):"",j(ee,F,J),J.selectionSet?" ":"",F("selectionSet")]);case"Name":return J.value;case"StringValue":{if(J.block){let w=J.value.replace(/"""/g,"\\$&").split(`
222
- `);return w.length===1&&(w[0]=w[0].trim()),w.every(R=>R==="")&&(w.length=0),p(b,['"""',...w,'"""'])}return['"',J.value.replace(/["\\]/g,"\\$&").replace(/\n/g,"\\n"),'"']}case"IntValue":case"FloatValue":case"EnumValue":return J.value;case"BooleanValue":return J.value?"true":"false";case"NullValue":return"null";case"Variable":return["$",F("name")];case"ListValue":return d(["[",h([f,p([E("",", "),f],ee.map(F,"values"))]),f,"]"]);case"ObjectValue":return d(["{",be.bracketSpacing&&J.fields.length>0?" ":"",h([f,p([E("",", "),f],ee.map(F,"fields"))]),f,E("",be.bracketSpacing&&J.fields.length>0?" ":""),"}"]);case"ObjectField":case"Argument":return[F("name"),": ",F("value")];case"Directive":return["@",F("name"),J.arguments.length>0?d(["(",h([f,p([E("",", "),f],Q(ee,be,F,"arguments"))]),f,")"]):""];case"NamedType":return F("name");case"VariableDefinition":return[F("variable"),": ",F("type"),J.defaultValue?[" = ",F("defaultValue")]:"",j(ee,F,J)];case"ObjectTypeExtension":case"ObjectTypeDefinition":return[F("description"),J.description?b:"",J.kind==="ObjectTypeExtension"?"extend ":"","type ",F("name"),J.interfaces.length>0?[" implements ",...X(ee,be,F)]:"",j(ee,F,J),J.fields.length>0?[" {",h([b,p(b,Q(ee,be,F,"fields"))]),b,"}"]:""];case"FieldDefinition":return[F("description"),J.description?b:"",F("name"),J.arguments.length>0?d(["(",h([f,p([E("",", "),f],Q(ee,be,F,"arguments"))]),f,")"]):"",": ",F("type"),j(ee,F,J)];case"DirectiveDefinition":return[F("description"),J.description?b:"","directive ","@",F("name"),J.arguments.length>0?d(["(",h([f,p([E("",", "),f],Q(ee,be,F,"arguments"))]),f,")"]):"",J.repeatable?" repeatable":""," on ",p(" | ",ee.map(F,"locations"))];case"EnumTypeExtension":case"EnumTypeDefinition":return[F("description"),J.description?b:"",J.kind==="EnumTypeExtension"?"extend ":"","enum ",F("name"),j(ee,F,J),J.values.length>0?[" {",h([b,p(b,Q(ee,be,F,"values"))]),b,"}"]:""];case"EnumValueDefinition":return[F("description"),J.description?b:"",F("name"),j(ee,F,J)];case"InputValueDefinition":return[F("description"),J.description?J.description.block?b:D:"",F("name"),": ",F("type"),J.defaultValue?[" = ",F("defaultValue")]:"",j(ee,F,J)];case"InputObjectTypeExtension":case"InputObjectTypeDefinition":return[F("description"),J.description?b:"",J.kind==="InputObjectTypeExtension"?"extend ":"","input ",F("name"),j(ee,F,J),J.fields.length>0?[" {",h([b,p(b,Q(ee,be,F,"fields"))]),b,"}"]:""];case"SchemaExtension":return["extend schema",j(ee,F,J),...J.operationTypes.length>0?[" {",h([b,p(b,Q(ee,be,F,"operationTypes"))]),b,"}"]:[]];case"SchemaDefinition":return[F("description"),J.description?b:"","schema",j(ee,F,J)," {",J.operationTypes.length>0?h([b,p(b,Q(ee,be,F,"operationTypes"))]):"",b,"}"];case"OperationTypeDefinition":return[F("operation"),": ",F("type")];case"InterfaceTypeExtension":case"InterfaceTypeDefinition":return[F("description"),J.description?b:"",J.kind==="InterfaceTypeExtension"?"extend ":"","interface ",F("name"),J.interfaces.length>0?[" implements ",...X(ee,be,F)]:"",j(ee,F,J),J.fields.length>0?[" {",h([b,p(b,Q(ee,be,F,"fields"))]),b,"}"]:""];case"FragmentSpread":return["...",F("name"),j(ee,F,J)];case"InlineFragment":return["...",J.typeCondition?[" on ",F("typeCondition")]:"",j(ee,F,J)," ",F("selectionSet")];case"UnionTypeExtension":case"UnionTypeDefinition":return d([F("description"),J.description?b:"",d([J.kind==="UnionTypeExtension"?"extend ":"","union ",F("name"),j(ee,F,J),J.types.length>0?[" =",E(""," "),h([E([D," "]),p([D,"| "],ee.map(F,"types"))])]:""])]);case"ScalarTypeExtension":case"ScalarTypeDefinition":return[F("description"),J.description?b:"",J.kind==="ScalarTypeExtension"?"extend ":"","scalar ",F("name"),j(ee,F,J)];case"NonNullType":return[F("type"),"!"];case"ListType":return["[",F("type"),"]"];default:throw new Error("unknown graphql type: "+JSON.stringify(J.kind))}}function j(ee,be,F){if(F.directives.length===0)return"";let J=p(D,ee.map(be,"directives"));return F.kind==="FragmentDefinition"||F.kind==="OperationDefinition"?d([D,J]):[" ",d(h([f,J]))]}function Q(ee,be,F,J){return ee.map((w,R,y)=>{let k=F();return R<y.length-1&&x(be.originalText,w.getValue(),C)?[k,b]:k},J)}function ne(ee){return ee.kind&&ee.kind!=="Comment"}function $(ee){let be=ee.getValue();if(be.kind==="Comment")return"#"+be.value.trimEnd();throw new Error("Not a comment: "+JSON.stringify(be))}function X(ee,be,F){let J=ee.getNode(),w=[],{interfaces:R}=J,y=ee.map(k=>F(k),"interfaces");for(let k=0;k<R.length;k++){let I=R[k];w.push(y[k]);let q=R[k+1];if(q){let U=be.originalText.slice(I.loc.end,q.loc.start),z=U.includes("#"),ie=U.replace(/#.*/g,"").trim();w.push(ie===","?",":" &",z?D:" ")}}return w}function G(ee,be){ee.kind==="StringValue"&&ee.block&&!ee.value.includes(`
223
- `)&&(be.value=be.value.trim())}G.ignoredProperties=new Set(["loc","comments"]);function re(ee){var be;let F=ee.getValue();return F==null||(be=F.comments)===null||be===void 0?void 0:be.some(J=>J.value.trim()==="prettier-ignore")}A.exports={print:S,massageAstNode:G,hasPrettierIgnore:re,insertPragma:L,printComment:$,canAttachComment:ne}}}),EE=Te({"src/language-graphql/options.js"(m,A){Re();var p=ro();A.exports={bracketSpacing:p.bracketSpacing}}}),AE=Te({"src/language-graphql/parsers.js"(){Re()}}),CE=Te({"node_modules/linguist-languages/data/GraphQL.json"(m,A){A.exports={name:"GraphQL",type:"data",color:"#e10098",extensions:[".graphql",".gql",".graphqls"],tmScope:"source.graphql",aceMode:"text",languageId:139}}}),xE=Te({"src/language-graphql/index.js"(m,A){Re();var p=sa(),b=vE(),D=EE(),f=AE(),d=[p(CE(),()=>({since:"1.5.0",parsers:["graphql"],vscodeLanguageIds:["graphql"]}))],h={graphql:b};A.exports={languages:d,options:D,printers:h,parsers:f}}}),ug=Te({"node_modules/collapse-white-space/index.js"(m,A){Re(),A.exports=p;function p(b){return String(b).replace(/\s+/g," ")}}}),lg=Te({"src/language-markdown/loc.js"(m,A){Re();function p(D){return D.position.start.offset}function b(D){return D.position.end.offset}A.exports={locStart:p,locEnd:b}}}),SE=Te({"src/language-markdown/constants.evaluate.js"(m,A){A.exports={cjkPattern:"(?:[\\u02ea-\\u02eb\\u1100-\\u11ff\\u2e80-\\u2e99\\u2e9b-\\u2ef3\\u2f00-\\u2fd5\\u2ff0-\\u303f\\u3041-\\u3096\\u3099-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312f\\u3131-\\u318e\\u3190-\\u3191\\u3196-\\u31ba\\u31c0-\\u31e3\\u31f0-\\u321e\\u322a-\\u3247\\u3260-\\u327e\\u328a-\\u32b0\\u32c0-\\u32cb\\u32d0-\\u3370\\u337b-\\u337f\\u33e0-\\u33fe\\u3400-\\u4db5\\u4e00-\\u9fef\\ua960-\\ua97c\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufe10-\\ufe1f\\ufe30-\\ufe6f\\uff00-\\uffef]|[\\ud840-\\ud868\\ud86a-\\ud86c\\ud86f-\\ud872\\ud874-\\ud879][\\udc00-\\udfff]|\\ud82c[\\udc00-\\udd1e\\udd50-\\udd52\\udd64-\\udd67]|\\ud83c[\\ude00\\ude50-\\ude51]|\\ud869[\\udc00-\\uded6\\udf00-\\udfff]|\\ud86d[\\udc00-\\udf34\\udf40-\\udfff]|\\ud86e[\\udc00-\\udc1d\\udc20-\\udfff]|\\ud873[\\udc00-\\udea1\\udeb0-\\udfff]|\\ud87a[\\udc00-\\udfe0]|\\ud87e[\\udc00-\\ude1d])(?:[\\ufe00-\\ufe0f]|\\udb40[\\udd00-\\uddef])?",kPattern:"[\\u1100-\\u11ff\\u3001-\\u3003\\u3008-\\u3011\\u3013-\\u301f\\u302e-\\u3030\\u3037\\u30fb\\u3131-\\u318e\\u3200-\\u321e\\u3260-\\u327e\\ua960-\\ua97c\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\ufe45-\\ufe46\\uff61-\\uff65\\uffa0-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc]",punctuationPattern:"[\\u0021-\\u002f\\u003a-\\u0040\\u005b-\\u0060\\u007b-\\u007e\\u00a1\\u00a7\\u00ab\\u00b6-\\u00b7\\u00bb\\u00bf\\u037e\\u0387\\u055a-\\u055f\\u0589-\\u058a\\u05be\\u05c0\\u05c3\\u05c6\\u05f3-\\u05f4\\u0609-\\u060a\\u060c-\\u060d\\u061b\\u061e-\\u061f\\u066a-\\u066d\\u06d4\\u0700-\\u070d\\u07f7-\\u07f9\\u0830-\\u083e\\u085e\\u0964-\\u0965\\u0970\\u09fd\\u0a76\\u0af0\\u0c77\\u0c84\\u0df4\\u0e4f\\u0e5a-\\u0e5b\\u0f04-\\u0f12\\u0f14\\u0f3a-\\u0f3d\\u0f85\\u0fd0-\\u0fd4\\u0fd9-\\u0fda\\u104a-\\u104f\\u10fb\\u1360-\\u1368\\u1400\\u166e\\u169b-\\u169c\\u16eb-\\u16ed\\u1735-\\u1736\\u17d4-\\u17d6\\u17d8-\\u17da\\u1800-\\u180a\\u1944-\\u1945\\u1a1e-\\u1a1f\\u1aa0-\\u1aa6\\u1aa8-\\u1aad\\u1b5a-\\u1b60\\u1bfc-\\u1bff\\u1c3b-\\u1c3f\\u1c7e-\\u1c7f\\u1cc0-\\u1cc7\\u1cd3\\u2010-\\u2027\\u2030-\\u2043\\u2045-\\u2051\\u2053-\\u205e\\u207d-\\u207e\\u208d-\\u208e\\u2308-\\u230b\\u2329-\\u232a\\u2768-\\u2775\\u27c5-\\u27c6\\u27e6-\\u27ef\\u2983-\\u2998\\u29d8-\\u29db\\u29fc-\\u29fd\\u2cf9-\\u2cfc\\u2cfe-\\u2cff\\u2d70\\u2e00-\\u2e2e\\u2e30-\\u2e4f\\u3001-\\u3003\\u3008-\\u3011\\u3014-\\u301f\\u3030\\u303d\\u30a0\\u30fb\\ua4fe-\\ua4ff\\ua60d-\\ua60f\\ua673\\ua67e\\ua6f2-\\ua6f7\\ua874-\\ua877\\ua8ce-\\ua8cf\\ua8f8-\\ua8fa\\ua8fc\\ua92e-\\ua92f\\ua95f\\ua9c1-\\ua9cd\\ua9de-\\ua9df\\uaa5c-\\uaa5f\\uaade-\\uaadf\\uaaf0-\\uaaf1\\uabeb\\ufd3e-\\ufd3f\\ufe10-\\ufe19\\ufe30-\\ufe52\\ufe54-\\ufe61\\ufe63\\ufe68\\ufe6a-\\ufe6b\\uff01-\\uff03\\uff05-\\uff0a\\uff0c-\\uff0f\\uff1a-\\uff1b\\uff1f-\\uff20\\uff3b-\\uff3d\\uff3f\\uff5b\\uff5d\\uff5f-\\uff65]|\\ud800[\\udd00-\\udd02\\udf9f\\udfd0]|\\ud801[\\udd6f]|\\ud802[\\udc57\\udd1f\\udd3f\\ude50-\\ude58\\ude7f\\udef0-\\udef6\\udf39-\\udf3f\\udf99-\\udf9c]|\\ud803[\\udf55-\\udf59]|\\ud804[\\udc47-\\udc4d\\udcbb-\\udcbc\\udcbe-\\udcc1\\udd40-\\udd43\\udd74-\\udd75\\uddc5-\\uddc8\\uddcd\\udddb\\udddd-\\udddf\\ude38-\\ude3d\\udea9]|\\ud805[\\udc4b-\\udc4f\\udc5b\\udc5d\\udcc6\\uddc1-\\uddd7\\ude41-\\ude43\\ude60-\\ude6c\\udf3c-\\udf3e]|\\ud806[\\udc3b\\udde2\\ude3f-\\ude46\\ude9a-\\ude9c\\ude9e-\\udea2]|\\ud807[\\udc41-\\udc45\\udc70-\\udc71\\udef7-\\udef8\\udfff]|\\ud809[\\udc70-\\udc74]|\\ud81a[\\ude6e-\\ude6f\\udef5\\udf37-\\udf3b\\udf44]|\\ud81b[\\ude97-\\ude9a\\udfe2]|\\ud82f[\\udc9f]|\\ud836[\\ude87-\\ude8b]|\\ud83a[\\udd5e-\\udd5f]"}}}),cp=Te({"src/language-markdown/utils.js"(m,A){Re();var{getLast:p}=De(),{locStart:b,locEnd:D}=lg(),{cjkPattern:f,kPattern:d,punctuationPattern:h}=SE(),E=["liquidNode","inlineCode","emphasis","esComment","strong","delete","wikiLink","link","linkReference","image","imageReference","footnote","footnoteReference","sentence","whitespace","word","break","inlineMath"],x=[...E,"tableCell","paragraph","heading"],B=new RegExp(d),L=new RegExp(h);function P($,X){let G="non-cjk",re="cj-letter",ee="k-letter",be="cjk-punctuation",F=[],J=(X.proseWrap==="preserve"?$:$.replace(new RegExp(`(${f})
224
- (${f})`,"g"),"$1$2")).split(/([\t\n ]+)/);for(let[R,y]of J.entries()){if(R%2===1){F.push({type:"whitespace",value:/\n/.test(y)?`
225
- `:" "});continue}if((R===0||R===J.length-1)&&y==="")continue;let k=y.split(new RegExp(`(${f})`));for(let[I,q]of k.entries())if(!((I===0||I===k.length-1)&&q==="")){if(I%2===0){q!==""&&w({type:"word",value:q,kind:G,hasLeadingPunctuation:L.test(q[0]),hasTrailingPunctuation:L.test(p(q))});continue}w(L.test(q)?{type:"word",value:q,kind:be,hasLeadingPunctuation:!0,hasTrailingPunctuation:!0}:{type:"word",value:q,kind:B.test(q)?ee:re,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1})}}return F;function w(R){let y=p(F);y&&y.type==="word"&&(y.kind===G&&R.kind===re&&!y.hasTrailingPunctuation||y.kind===re&&R.kind===G&&!R.hasLeadingPunctuation?F.push({type:"whitespace",value:" "}):!k(G,be)&&![y.value,R.value].some(I=>/\u3000/.test(I))&&F.push({type:"whitespace",value:""})),F.push(R);function k(I,q){return y.kind===I&&R.kind===q||y.kind===q&&R.kind===I}}}function C($,X){let[,G,re,ee]=X.slice($.position.start.offset,$.position.end.offset).match(/^\s*(\d+)(\.|\))(\s*)/);return{numberText:G,marker:re,leadingSpaces:ee}}function S($,X){if(!$.ordered||$.children.length<2)return!1;let G=Number(C($.children[0],X.originalText).numberText),re=Number(C($.children[1],X.originalText).numberText);if(G===0&&$.children.length>2){let ee=Number(C($.children[2],X.originalText).numberText);return re===1&&ee===1}return re===1}function j($,X){let{value:G}=$;return $.position.end.offset===X.length&&G.endsWith(`
226
- `)&&X.endsWith(`
227
- `)?G.slice(0,-1):G}function Q($,X){return function G(re,ee,be){let F=Object.assign({},X(re,ee,be));return F.children&&(F.children=F.children.map((J,w)=>G(J,w,[F,...be]))),F}($,null,[])}function ne($){if(($==null?void 0:$.type)!=="link"||$.children.length!==1)return!1;let[X]=$.children;return b($)===b(X)&&D($)===D(X)}A.exports={mapAst:Q,splitText:P,punctuationPattern:h,getFencedCodeBlockValue:j,getOrderedListItemInfo:C,hasGitDiffFriendlyOrderedList:S,INLINE_NODE_TYPES:E,INLINE_NODE_WRAPPER_TYPES:x,isAutolink:ne}}}),wE=Te({"src/language-markdown/embed.js"(m,A){Re();var{inferParserByLanguage:p,getMaxContinuousCount:b}=De(),{builders:{hardline:D,markAsRoot:f},utils:{replaceEndOfLine:d}}=wn(),h=lp(),{getFencedCodeBlockValue:E}=cp();function x(B,L,P,C){let S=B.getValue();if(S.type==="code"&&S.lang!==null){let j=p(S.lang,C);if(j){let Q=C.__inJsTemplate?"~":"`",ne=Q.repeat(Math.max(3,b(S.value,Q)+1)),$={parser:j};S.lang==="tsx"&&($.filepath="dummy.tsx");let X=P(E(S,C.originalText),$,{stripTrailingHardline:!0});return f([ne,S.lang,S.meta?" "+S.meta:"",D,d(X),D,ne])}}switch(S.type){case"front-matter":return h(S,P);case"importExport":return[P(S.value,{parser:"babel"},{stripTrailingHardline:!0}),D];case"jsx":return P(`<$>${S.value}</$>`,{parser:"__js_expression",rootMarker:"mdx"},{stripTrailingHardline:!0})}return null}A.exports=x}}),cg=Te({"src/language-markdown/pragma.js"(m,A){Re();var p=og(),b=["format","prettier"];function D(f){let d=`@(${b.join("|")})`,h=new RegExp([`<!--\\s*${d}\\s*-->`,`{\\s*\\/\\*\\s*${d}\\s*\\*\\/\\s*}`,`<!--.*\r?
228
- [\\s\\S]*(^|
229
- )[^\\S
230
- ]*${d}[^\\S
231
- ]*($|
232
- )[\\s\\S]*
233
- .*-->`].join("|"),"m"),E=f.match(h);return(E==null?void 0:E.index)===0}A.exports={startWithPragma:D,hasPragma:f=>D(p(f).content.trimStart()),insertPragma:f=>{let d=p(f),h=`<!-- @${b[0]} -->`;return d.frontMatter?`${d.frontMatter.raw}
234
-
235
- ${h}
236
-
237
- ${d.content}`:`${h}
238
-
239
- ${d.content}`}}}}),FE=Te({"src/language-markdown/print-preprocess.js"(m,A){Re();var p=Vr(),{getOrderedListItemInfo:b,mapAst:D,splitText:f}=cp(),d=/^.$/su;function h(ne,$){return ne=B(ne,$),ne=C(ne),ne=x(ne,$),ne=j(ne,$),ne=Q(ne,$),ne=S(ne,$),ne=E(ne),ne=L(ne),ne}function E(ne){return D(ne,$=>$.type!=="import"&&$.type!=="export"?$:Object.assign(Object.assign({},$),{},{type:"importExport"}))}function x(ne,$){return D(ne,X=>X.type!=="inlineCode"||$.proseWrap==="preserve"?X:Object.assign(Object.assign({},X),{},{value:X.value.replace(/\s+/g," ")}))}function B(ne,$){return D(ne,X=>X.type!=="text"||X.value==="*"||X.value==="_"||!d.test(X.value)||X.position.end.offset-X.position.start.offset===X.value.length?X:Object.assign(Object.assign({},X),{},{value:$.originalText.slice(X.position.start.offset,X.position.end.offset)}))}function L(ne){return P(ne,($,X)=>$.type==="importExport"&&X.type==="importExport",($,X)=>({type:"importExport",value:$.value+`
240
-
241
- `+X.value,position:{start:$.position.start,end:X.position.end}}))}function P(ne,$,X){return D(ne,G=>{if(!G.children)return G;let re=G.children.reduce((ee,be)=>{let F=p(ee);return F&&$(F,be)?ee.splice(-1,1,X(F,be)):ee.push(be),ee},[]);return Object.assign(Object.assign({},G),{},{children:re})})}function C(ne){return P(ne,($,X)=>$.type==="text"&&X.type==="text",($,X)=>({type:"text",value:$.value+X.value,position:{start:$.position.start,end:X.position.end}}))}function S(ne,$){return D(ne,(X,G,re)=>{let[ee]=re;if(X.type!=="text")return X;let{value:be}=X;return ee.type==="paragraph"&&(G===0&&(be=be.trimStart()),G===ee.children.length-1&&(be=be.trimEnd())),{type:"sentence",position:X.position,children:f(be,$)}})}function j(ne,$){return D(ne,(X,G,re)=>{if(X.type==="code"){let ee=/^\n?(?: {4,}|\t)/.test($.originalText.slice(X.position.start.offset,X.position.end.offset));if(X.isIndented=ee,ee)for(let be=0;be<re.length;be++){let F=re[be];if(F.hasIndentedCodeblock)break;F.type==="list"&&(F.hasIndentedCodeblock=!0)}}return X})}function Q(ne,$){return D(ne,(re,ee,be)=>{if(re.type==="list"&&re.children.length>0){for(let F=0;F<be.length;F++){let J=be[F];if(J.type==="list"&&!J.isAligned)return re.isAligned=!1,re}re.isAligned=G(re)}return re});function X(re){return re.children.length===0?-1:re.children[0].position.start.column-1}function G(re){if(!re.ordered)return!0;let[ee,be]=re.children;if(b(ee,$.originalText).leadingSpaces.length>1)return!0;let F=X(ee);if(F===-1)return!1;if(re.children.length===1)return F%$.tabWidth===0;let J=X(be);return F!==J?!1:F%$.tabWidth===0?!0:b(be,$.originalText).leadingSpaces.length>1}}A.exports=h}}),NE=Te({"src/language-markdown/clean.js"(m,A){Re();var p=ug(),{isFrontMatterNode:b}=De(),{startWithPragma:D}=cg(),f=new Set(["position","raw"]);function d(h,E,x){if((h.type==="front-matter"||h.type==="code"||h.type==="yaml"||h.type==="import"||h.type==="export"||h.type==="jsx")&&delete E.value,h.type==="list"&&delete E.isAligned,(h.type==="list"||h.type==="listItem")&&(delete E.spread,delete E.loose),h.type==="text"||(h.type==="inlineCode"&&(E.value=h.value.replace(/[\t\n ]+/g," ")),h.type==="wikiLink"&&(E.value=h.value.trim().replace(/[\t\n]+/g," ")),(h.type==="definition"||h.type==="linkReference"||h.type==="imageReference")&&(E.label=p(h.label)),(h.type==="definition"||h.type==="link"||h.type==="image")&&h.title&&(E.title=h.title.replace(/\\(["')])/g,"$1")),x&&x.type==="root"&&x.children.length>0&&(x.children[0]===h||b(x.children[0])&&x.children[1]===h)&&h.type==="html"&&D(h.value)))return null}d.ignoredProperties=f,A.exports=d}}),TE=Te({"src/language-markdown/printer-markdown.js"(m,A){Re();var p=ug(),{getLast:b,getMinNotPresentContinuousCount:D,getMaxContinuousCount:f,getStringWidth:d,isNonEmptyArray:h}=De(),{builders:{breakParent:E,join:x,line:B,literalline:L,markAsRoot:P,hardline:C,softline:S,ifBreak:j,fill:Q,align:ne,indent:$,group:X,hardlineWithoutBreakParent:G},utils:{normalizeDoc:re,replaceTextEndOfLine:ee},printer:{printDocToString:be}}=wn(),F=wE(),{insertPragma:J}=cg(),{locStart:w,locEnd:R}=lg(),y=FE(),k=NE(),{getFencedCodeBlockValue:I,hasGitDiffFriendlyOrderedList:q,splitText:U,punctuationPattern:z,INLINE_NODE_TYPES:ie,INLINE_NODE_WRAPPER_TYPES:ce,isAutolink:ye}=cp(),fe=new Set(["importExport"]),_e=["heading","tableCell","link","wikiLink"],se=new Set(["listItem","definition","footnoteDefinition"]);function Ue(ut,xe,ht){let Oe=ut.getValue();if(_t(ut))return U(xe.originalText.slice(Oe.position.start.offset,Oe.position.end.offset),xe).map(ft=>ft.type==="word"?ft.value:ft.value===""?"":ve(ut,ft.value,xe));switch(Oe.type){case"front-matter":return xe.originalText.slice(Oe.position.start.offset,Oe.position.end.offset);case"root":return Oe.children.length===0?"":[re(pt(ut,xe,ht)),fe.has($e(Oe).type)?"":C];case"paragraph":return dt(ut,xe,ht,{postprocessor:Q});case"sentence":return dt(ut,xe,ht);case"word":{let ft=Oe.value.replace(/\*/g,"\\$&").replace(new RegExp([`(^|${z})(_+)`,`(_+)(${z}|$)`].join("|"),"g"),(yt,V,Le,it,kt)=>(Le?`${V}${Le}`:`${it}${kt}`).replace(/_/g,"\\_")),Zt=(yt,V,Le)=>yt.type==="sentence"&&Le===0,Ut=(yt,V,Le)=>ye(yt.children[Le-1]);return ft!==Oe.value&&(ut.match(void 0,Zt,Ut)||ut.match(void 0,Zt,(yt,V,Le)=>yt.type==="emphasis"&&Le===0,Ut))&&(ft=ft.replace(/^(\\?[*_])+/,yt=>yt.replace(/\\/g,""))),ft}case"whitespace":{let ft=ut.getParentNode(),Zt=ft.children.indexOf(Oe),Ut=ft.children[Zt+1],yt=Ut&&/^>|^(?:[*+-]|#{1,6}|\d+[).])$/.test(Ut.value)?"never":xe.proseWrap;return ve(ut,Oe.value,{proseWrap:yt})}case"emphasis":{let ft;if(ye(Oe.children[0]))ft=xe.originalText[Oe.position.start.offset];else{let Zt=ut.getParentNode(),Ut=Zt.children.indexOf(Oe),yt=Zt.children[Ut-1],V=Zt.children[Ut+1];ft=yt&&yt.type==="sentence"&&yt.children.length>0&&b(yt.children).type==="word"&&!b(yt.children).hasTrailingPunctuation||V&&V.type==="sentence"&&V.children.length>0&&V.children[0].type==="word"&&!V.children[0].hasLeadingPunctuation||mt(ut,"emphasis")?"*":"_"}return[ft,dt(ut,xe,ht),ft]}case"strong":return["**",dt(ut,xe,ht),"**"];case"delete":return["~~",dt(ut,xe,ht),"~~"];case"inlineCode":{let ft=D(Oe.value,"`"),Zt="`".repeat(ft||1),Ut=ft&&!/^\s/.test(Oe.value)?" ":"";return[Zt,Ut,Oe.value,Ut,Zt]}case"wikiLink":{let ft="";return xe.proseWrap==="preserve"?ft=Oe.value:ft=Oe.value.replace(/[\t\n]+/g," "),["[[",ft,"]]"]}case"link":switch(xe.originalText[Oe.position.start.offset]){case"<":{let ft="mailto:";return["<",Oe.url.startsWith(ft)&&xe.originalText.slice(Oe.position.start.offset+1,Oe.position.start.offset+1+ft.length)!==ft?Oe.url.slice(ft.length):Oe.url,">"]}case"[":return["[",dt(ut,xe,ht),"](",Bt(Oe.url,")"),cn(Oe.title,xe),")"];default:return xe.originalText.slice(Oe.position.start.offset,Oe.position.end.offset)}case"image":return["![",Oe.alt||"","](",Bt(Oe.url,")"),cn(Oe.title,xe),")"];case"blockquote":return["> ",ne("> ",dt(ut,xe,ht))];case"heading":return["#".repeat(Oe.depth)+" ",dt(ut,xe,ht)];case"code":{if(Oe.isIndented){let Ut=" ".repeat(4);return ne(Ut,[Ut,...ee(Oe.value,C)])}let ft=xe.__inJsTemplate?"~":"`",Zt=ft.repeat(Math.max(3,f(Oe.value,ft)+1));return[Zt,Oe.lang||"",Oe.meta?" "+Oe.meta:"",C,...ee(I(Oe,xe.originalText),C),C,Zt]}case"html":{let ft=ut.getParentNode(),Zt=ft.type==="root"&&b(ft.children)===Oe?Oe.value.trimEnd():Oe.value,Ut=/^<!--.*-->$/s.test(Zt);return ee(Zt,Ut?C:P(L))}case"list":{let ft=qe(Oe,ut.getParentNode()),Zt=q(Oe,xe);return dt(ut,xe,ht,{processor:(Ut,yt)=>{let V=it(),Le=Ut.getValue();if(Le.children.length===2&&Le.children[1].type==="html"&&Le.children[0].position.start.column!==Le.children[1].position.start.column)return[V,ge(Ut,xe,ht,V)];return[V,ne(" ".repeat(V.length),ge(Ut,xe,ht,V))];function it(){let kt=Oe.ordered?(yt===0?Oe.start:Zt?1:Oe.start+yt)+(ft%2===0?". ":") "):ft%2===0?"- ":"* ";return Oe.isAligned||Oe.hasIndentedCodeblock?ue(kt,xe):kt}}})}case"thematicBreak":{let ft=Ge(ut,"list");return ft===-1?"---":qe(ut.getParentNode(ft),ut.getParentNode(ft+1))%2===0?"***":"---"}case"linkReference":return["[",dt(ut,xe,ht),"]",Oe.referenceType==="full"?ln(Oe):Oe.referenceType==="collapsed"?"[]":""];case"imageReference":switch(Oe.referenceType){case"full":return["![",Oe.alt||"","]",ln(Oe)];default:return["![",Oe.alt,"]",Oe.referenceType==="collapsed"?"[]":""]}case"definition":{let ft=xe.proseWrap==="always"?B:" ";return X([ln(Oe),":",$([ft,Bt(Oe.url),Oe.title===null?"":[ft,cn(Oe.title,xe,!1)]])])}case"footnote":return["[^",dt(ut,xe,ht),"]"];case"footnoteReference":return yn(Oe);case"footnoteDefinition":{let ft=ut.getParentNode().children[ut.getName()+1],Zt=Oe.children.length===1&&Oe.children[0].type==="paragraph"&&(xe.proseWrap==="never"||xe.proseWrap==="preserve"&&Oe.children[0].position.start.line===Oe.children[0].position.end.line);return[yn(Oe),": ",Zt?dt(ut,xe,ht):X([ne(" ".repeat(4),dt(ut,xe,ht,{processor:(Ut,yt)=>yt===0?X([S,ht()]):ht()})),ft&&ft.type==="footnoteDefinition"?S:""])]}case"table":return Ie(ut,xe,ht);case"tableCell":return dt(ut,xe,ht);case"break":return/\s/.test(xe.originalText[Oe.position.start.offset])?[" ",P(L)]:["\\",C];case"liquidNode":return ee(Oe.value,C);case"importExport":return[Oe.value,C];case"esComment":return["{/* ",Oe.value," */}"];case"jsx":return Oe.value;case"math":return["$$",C,Oe.value?[...ee(Oe.value,C),C]:"","$$"];case"inlineMath":return xe.originalText.slice(w(Oe),R(Oe));case"tableRow":case"listItem":default:throw new Error(`Unknown markdown type ${JSON.stringify(Oe.type)}`)}}function ge(ut,xe,ht,Oe){let ft=ut.getValue(),Zt=ft.checked===null?"":ft.checked?"[x] ":"[ ] ";return[Zt,dt(ut,xe,ht,{processor:(Ut,yt)=>{if(yt===0&&Ut.getValue().type!=="list")return ne(" ".repeat(Zt.length),ht());let V=" ".repeat(Pn(xe.tabWidth-Oe.length,0,3));return[V,ne(V,ht())]}})]}function ue(ut,xe){let ht=Oe();return ut+" ".repeat(ht>=4?0:ht);function Oe(){let ft=ut.length%xe.tabWidth;return ft===0?0:xe.tabWidth-ft}}function qe(ut,xe){return rt(ut,xe,ht=>ht.ordered===ut.ordered)}function rt(ut,xe,ht){let Oe=-1;for(let ft of xe.children)if(ft.type===ut.type&&ht(ft)?Oe++:Oe=-1,ft===ut)return Oe}function Ge(ut,xe){let ht=Array.isArray(xe)?xe:[xe],Oe=-1,ft;for(;ft=ut.getParentNode(++Oe);)if(ht.includes(ft.type))return Oe;return-1}function mt(ut,xe){let ht=Ge(ut,xe);return ht===-1?null:ut.getParentNode(ht)}function ve(ut,xe,ht){if(ht.proseWrap==="preserve"&&xe===`
242
- `)return C;let Oe=ht.proseWrap==="always"&&!mt(ut,_e);return xe!==""?Oe?B:" ":Oe?S:""}function Ie(ut,xe,ht){let Oe=ut.getValue(),ft=[],Zt=ut.map(kt=>kt.map(($t,un)=>{let Mt=be(ht(),xe).formatted,Ar=d(Mt);return ft[un]=Math.max(ft[un]||3,Ar),{text:Mt,width:Ar}},"children"),"children"),Ut=V(!1);if(xe.proseWrap!=="never")return[E,Ut];let yt=V(!0);return[E,X(j(yt,Ut))];function V(kt){let $t=[it(Zt[0],kt),Le(kt)];return Zt.length>1&&$t.push(x(G,Zt.slice(1).map(un=>it(un,kt)))),x(G,$t)}function Le(kt){return`| ${ft.map(($t,un)=>{let Mt=Oe.align[un],Ar=Mt==="center"||Mt==="left"?":":"-",sn=Mt==="center"||Mt==="right"?":":"-",Dr=kt?"-":"-".repeat($t-2);return`${Ar}${Dr}${sn}`}).join(" | ")} |`}function it(kt,$t){return`| ${kt.map((un,Mt)=>{let{text:Ar,width:sn}=un;if($t)return Ar;let Dr=ft[Mt]-sn,nn=Oe.align[Mt],An=0;nn==="right"?An=Dr:nn==="center"&&(An=Math.floor(Dr/2));let Ln=Dr-An;return`${" ".repeat(An)}${Ar}${" ".repeat(Ln)}`}).join(" | ")} |`}}function pt(ut,xe,ht){let Oe=[],ft=null,{children:Zt}=ut.getValue();for(let[Ut,yt]of Zt.entries())switch(we(yt)){case"start":ft===null&&(ft={index:Ut,offset:yt.position.end.offset});break;case"end":ft!==null&&(Oe.push({start:ft,end:{index:Ut,offset:yt.position.start.offset}}),ft=null);break}return dt(ut,xe,ht,{processor:(Ut,yt)=>{if(Oe.length>0){let V=Oe[0];if(yt===V.start.index)return[Jt(Zt[V.start.index]),xe.originalText.slice(V.start.offset,V.end.offset),Jt(Zt[V.end.index])];if(V.start.index<yt&&yt<V.end.index)return!1;if(yt===V.end.index)return Oe.shift(),!1}return ht()}})}function dt(ut,xe,ht){let Oe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},{postprocessor:ft}=Oe,Zt=Oe.processor||(()=>ht()),Ut=ut.getValue(),yt=[],V;return ut.each((Le,it)=>{let kt=Le.getValue(),$t=Zt(Le,it);if($t!==!1){let un={parts:yt,prevNode:V,parentNode:Ut,options:xe};Je(kt,un)&&(yt.push(C),V&&fe.has(V.type)||(Ke(kt,un)||Et(kt,un))&&yt.push(C),Et(kt,un)&&yt.push(C)),yt.push($t),V=kt}},"children"),ft?ft(yt):yt}function Jt(ut){if(ut.type==="html")return ut.value;if(ut.type==="paragraph"&&Array.isArray(ut.children)&&ut.children.length===1&&ut.children[0].type==="esComment")return["{/* ",ut.children[0].value," */}"]}function $e(ut){let xe=ut;for(;h(xe.children);)xe=b(xe.children);return xe}function we(ut){let xe;if(ut.type==="html")xe=ut.value.match(/^<!--\s*prettier-ignore(?:-(start|end))?\s*-->$/);else{let ht;ut.type==="esComment"?ht=ut:ut.type==="paragraph"&&ut.children.length===1&&ut.children[0].type==="esComment"&&(ht=ut.children[0]),ht&&(xe=ht.value.match(/^prettier-ignore(?:-(start|end))?$/))}return xe?xe[1]||"next":!1}function Je(ut,xe){let ht=xe.parts.length===0,Oe=ie.includes(ut.type),ft=ut.type==="html"&&ce.includes(xe.parentNode.type);return!ht&&!Oe&&!ft}function Ke(ut,xe){var ht,Oe,ft;let Zt=(xe.prevNode&&xe.prevNode.type)===ut.type&&se.has(ut.type),Ut=xe.parentNode.type==="listItem"&&!xe.parentNode.loose,yt=((ht=xe.prevNode)===null||ht===void 0?void 0:ht.type)==="listItem"&&xe.prevNode.loose,V=we(xe.prevNode)==="next",Le=ut.type==="html"&&((Oe=xe.prevNode)===null||Oe===void 0?void 0:Oe.type)==="html"&&xe.prevNode.position.end.line+1===ut.position.start.line,it=ut.type==="html"&&xe.parentNode.type==="listItem"&&((ft=xe.prevNode)===null||ft===void 0?void 0:ft.type)==="paragraph"&&xe.prevNode.position.end.line+1===ut.position.start.line;return yt||!(Zt||Ut||V||Le||it)}function Et(ut,xe){let ht=xe.prevNode&&xe.prevNode.type==="list",Oe=ut.type==="code"&&ut.isIndented;return ht&&Oe}function _t(ut){let xe=mt(ut,["linkReference","imageReference"]);return xe&&(xe.type!=="linkReference"||xe.referenceType!=="full")}function Bt(ut){let xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],ht=[" ",...Array.isArray(xe)?xe:[xe]];return new RegExp(ht.map(Oe=>`\\${Oe}`).join("|")).test(ut)?`<${ut}>`:ut}function cn(ut,xe){let ht=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!ut)return"";if(ht)return" "+cn(ut,xe,!1);if(ut=ut.replace(/\\(["')])/g,"$1"),ut.includes('"')&&ut.includes("'")&&!ut.includes(")"))return`(${ut})`;let Oe=ut.split("'").length-1,ft=ut.split('"').length-1,Zt=Oe>ft?'"':ft>Oe||xe.singleQuote?"'":'"';return ut=ut.replace(/\\/,"\\\\"),ut=ut.replace(new RegExp(`(${Zt})`,"g"),"\\$1"),`${Zt}${ut}${Zt}`}function Pn(ut,xe,ht){return ut<xe?xe:ut>ht?ht:ut}function _n(ut){let xe=Number(ut.getName());if(xe===0)return!1;let ht=ut.getParentNode().children[xe-1];return we(ht)==="next"}function ln(ut){return`[${p(ut.label)}]`}function yn(ut){return`[^${ut.label}]`}A.exports={preprocess:y,print:Ue,embed:F,massageAstNode:k,hasPrettierIgnore:_n,insertPragma:J}}}),_E=Te({"src/language-markdown/options.js"(m,A){Re();var p=ro();A.exports={proseWrap:p.proseWrap,singleQuote:p.singleQuote}}}),LE=Te({"src/language-markdown/parsers.js"(){Re()}}),fg=Te({"node_modules/linguist-languages/data/Markdown.json"(m,A){A.exports={name:"Markdown",type:"prose",color:"#083fa1",aliases:["pandoc"],aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:[".md",".livemd",".markdown",".mdown",".mdwn",".mdx",".mkd",".mkdn",".mkdown",".ronn",".scd",".workbook"],filenames:["contents.lr"],tmScope:"source.gfm",languageId:222}}}),kE=Te({"src/language-markdown/index.js"(m,A){Re();var p=sa(),b=TE(),D=_E(),f=LE(),d=[p(fg(),E=>({since:"1.8.0",parsers:["markdown"],vscodeLanguageIds:["markdown"],filenames:[...E.filenames,"README"],extensions:E.extensions.filter(x=>x!==".mdx")})),p(fg(),()=>({name:"MDX",since:"1.15.0",parsers:["mdx"],vscodeLanguageIds:["mdx"],filenames:[],extensions:[".mdx"]}))],h={mdast:b};A.exports={languages:d,options:D,printers:h,parsers:f}}}),PE=Te({"src/language-html/clean.js"(m,A){Re();var{isFrontMatterNode:p}=De(),b=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan"]);function D(f,d){if(f.type==="text"||f.type==="comment"||p(f)||f.type==="yaml"||f.type==="toml")return null;f.type==="attribute"&&delete d.value,f.type==="docType"&&delete d.value}D.ignoredProperties=b,A.exports=D}}),BE=Te({"src/language-html/constants.evaluate.js"(m,A){A.exports={CSS_DISPLAY_TAGS:{area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"block",rp:"none",script:"block",source:"block",style:"none",template:"inline",track:"block",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",fieldset:"block",button:"inline-block",details:"block",summary:"block",dialog:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block",select:"inline-block",option:"block",optgroup:"block"},CSS_DISPLAY_DEFAULT:"inline",CSS_WHITE_SPACE_TAGS:{listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"},CSS_WHITE_SPACE_DEFAULT:"normal"}}}),ME=Te({"src/language-html/utils/is-unknown-namespace.js"(m,A){Re();function p(b){return b.type==="element"&&!b.hasExplicitNamespace&&!["html","svg"].includes(b.namespace)}A.exports=p}}),io=Te({"src/language-html/utils/index.js"(m,A){Re();var{inferParserByLanguage:p,isFrontMatterNode:b}=De(),{builders:{line:D,hardline:f,join:d},utils:{getDocParts:h,replaceTextEndOfLine:E}}=wn(),{CSS_DISPLAY_TAGS:x,CSS_DISPLAY_DEFAULT:B,CSS_WHITE_SPACE_TAGS:L,CSS_WHITE_SPACE_DEFAULT:P}=BE(),C=ME(),S=new Set([" ",`
243
- `,"\f","\r"," "]),j=V=>V.replace(/^[\t\n\f\r ]+/,""),Q=V=>V.replace(/[\t\n\f\r ]+$/,""),ne=V=>j(Q(V)),$=V=>V.replace(/^[\t\f\r ]*\n/g,""),X=V=>$(Q(V)),G=V=>V.split(/[\t\n\f\r ]+/),re=V=>V.match(/^[\t\n\f\r ]*/)[0],ee=V=>{let[,Le,it,kt]=V.match(/^([\t\n\f\r ]*)(.*?)([\t\n\f\r ]*)$/s);return{leadingWhitespace:Le,trailingWhitespace:kt,text:it}},be=V=>/[\t\n\f\r ]/.test(V);function F(V,Le){return!!(V.type==="ieConditionalComment"&&V.lastChild&&!V.lastChild.isSelfClosing&&!V.lastChild.endSourceSpan||V.type==="ieConditionalComment"&&!V.complete||Ke(V)&&V.children.some(it=>it.type!=="text"&&it.type!=="interpolation")||Oe(V,Le)&&!y(V)&&V.type!=="interpolation")}function J(V){return V.type==="attribute"||!V.parent||!V.prev?!1:w(V.prev)}function w(V){return V.type==="comment"&&V.value.trim()==="prettier-ignore"}function R(V){return V.type==="text"||V.type==="comment"}function y(V){return V.type==="element"&&(V.fullName==="script"||V.fullName==="style"||V.fullName==="svg:style"||C(V)&&(V.name==="script"||V.name==="style"))}function k(V){return V.children&&!y(V)}function I(V){return y(V)||V.type==="interpolation"||q(V)}function q(V){return cn(V).startsWith("pre")}function U(V,Le){let it=kt();if(it&&!V.prev&&V.parent&&V.parent.tagDefinition&&V.parent.tagDefinition.ignoreFirstLf)return V.type==="interpolation";return it;function kt(){return b(V)?!1:(V.type==="text"||V.type==="interpolation")&&V.prev&&(V.prev.type==="text"||V.prev.type==="interpolation")?!0:!V.parent||V.parent.cssDisplay==="none"?!1:Ke(V.parent)?!0:!(!V.prev&&(V.parent.type==="root"||Ke(V)&&V.parent||y(V.parent)||xe(V.parent,Le)||!dt(V.parent.cssDisplay))||V.prev&&!we(V.prev.cssDisplay))}}function z(V,Le){return b(V)?!1:(V.type==="text"||V.type==="interpolation")&&V.next&&(V.next.type==="text"||V.next.type==="interpolation")?!0:!V.parent||V.parent.cssDisplay==="none"?!1:Ke(V.parent)?!0:!(!V.next&&(V.parent.type==="root"||Ke(V)&&V.parent||y(V.parent)||xe(V.parent,Le)||!Jt(V.parent.cssDisplay))||V.next&&!$e(V.next.cssDisplay))}function ie(V){return Je(V.cssDisplay)&&!y(V)}function ce(V){return b(V)||V.next&&V.sourceSpan.end&&V.sourceSpan.end.line+1<V.next.sourceSpan.start.line}function ye(V){return fe(V)||V.type==="element"&&V.children.length>0&&(["body","script","style"].includes(V.name)||V.children.some(Le=>Ge(Le)))||V.firstChild&&V.firstChild===V.lastChild&&V.firstChild.type!=="text"&&ge(V.firstChild)&&(!V.lastChild.isTrailingSpaceSensitive||ue(V.lastChild))}function fe(V){return V.type==="element"&&V.children.length>0&&(["html","head","ul","ol","select"].includes(V.name)||V.cssDisplay.startsWith("table")&&V.cssDisplay!=="table-cell")}function _e(V){return qe(V)||V.prev&&se(V.prev)||Ue(V)}function se(V){return qe(V)||V.type==="element"&&V.fullName==="br"||Ue(V)}function Ue(V){return ge(V)&&ue(V)}function ge(V){return V.hasLeadingSpaces&&(V.prev?V.prev.sourceSpan.end.line<V.sourceSpan.start.line:V.parent.type==="root"||V.parent.startSourceSpan.end.line<V.sourceSpan.start.line)}function ue(V){return V.hasTrailingSpaces&&(V.next?V.next.sourceSpan.start.line>V.sourceSpan.end.line:V.parent.type==="root"||V.parent.endSourceSpan&&V.parent.endSourceSpan.start.line>V.sourceSpan.end.line)}function qe(V){switch(V.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(V.name)}return!1}function rt(V){return V.lastChild?rt(V.lastChild):V}function Ge(V){return V.children&&V.children.some(Le=>Le.type!=="text")}function mt(V){let{type:Le,lang:it}=V.attrMap;if(Le==="module"||Le==="text/javascript"||Le==="text/babel"||Le==="application/javascript"||it==="jsx")return"babel";if(Le==="application/x-typescript"||it==="ts"||it==="tsx")return"typescript";if(Le==="text/markdown")return"markdown";if(Le==="text/html")return"html";if(Le&&(Le.endsWith("json")||Le.endsWith("importmap"))||Le==="speculationrules")return"json";if(Le==="text/x-handlebars-template")return"glimmer"}function ve(V,Le){let{lang:it}=V.attrMap;if(!it||it==="postcss"||it==="css")return"css";if(it==="scss")return"scss";if(it==="less")return"less";if(it==="stylus")return p("stylus",Le)}function Ie(V,Le){if(V.name==="script"&&!V.attrMap.src)return!V.attrMap.lang&&!V.attrMap.type?"babel":mt(V);if(V.name==="style")return ve(V,Le);if(Le&&Oe(V,Le))return mt(V)||!("src"in V.attrMap)&&p(V.attrMap.lang,Le)}function pt(V){return V==="block"||V==="list-item"||V.startsWith("table")}function dt(V){return!pt(V)&&V!=="inline-block"}function Jt(V){return!pt(V)&&V!=="inline-block"}function $e(V){return!pt(V)}function we(V){return!pt(V)}function Je(V){return!pt(V)&&V!=="inline-block"}function Ke(V){return cn(V).startsWith("pre")}function Et(V,Le){let it=0;for(let kt=V.stack.length-1;kt>=0;kt--){let $t=V.stack[kt];$t&&typeof $t=="object"&&!Array.isArray($t)&&Le($t)&&it++}return it}function _t(V,Le){let it=V;for(;it;){if(Le(it))return!0;it=it.parent}return!1}function Bt(V,Le){if(V.prev&&V.prev.type==="comment"){let kt=V.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/);if(kt)return kt[1]}let it=!1;if(V.type==="element"&&V.namespace==="svg")if(_t(V,kt=>kt.fullName==="svg:foreignObject"))it=!0;else return V.name==="svg"?"inline-block":"block";switch(Le.htmlWhitespaceSensitivity){case"strict":return"inline";case"ignore":return"block";default:return Le.parser==="vue"&&V.parent&&V.parent.type==="root"?"block":V.type==="element"&&(!V.namespace||it||C(V))&&x[V.name]||B}}function cn(V){return V.type==="element"&&(!V.namespace||C(V))&&L[V.name]||P}function Pn(V){let Le=Number.POSITIVE_INFINITY;for(let it of V.split(`
244
- `)){if(it.length===0)continue;if(!S.has(it[0]))return 0;let kt=re(it).length;it.length!==kt&&kt<Le&&(Le=kt)}return Le===Number.POSITIVE_INFINITY?0:Le}function _n(V){let Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Pn(V);return Le===0?V:V.split(`
245
- `).map(it=>it.slice(Le)).join(`
246
- `)}function ln(V,Le){let it=0;for(let kt=0;kt<V.length;kt++)V[kt]===Le&&it++;return it}function yn(V){return V.replace(/&apos;/g,"'").replace(/&quot;/g,'"')}var ut=new Set(["template","style","script"]);function xe(V,Le){return ht(V,Le)&&!ut.has(V.fullName)}function ht(V,Le){return Le.parser==="vue"&&V.type==="element"&&V.parent.type==="root"&&V.fullName.toLowerCase()!=="html"}function Oe(V,Le){return ht(V,Le)&&(xe(V,Le)||V.attrMap.lang&&V.attrMap.lang!=="html")}function ft(V){let Le=V.fullName;return Le.charAt(0)==="#"||Le==="slot-scope"||Le==="v-slot"||Le.startsWith("v-slot:")}function Zt(V,Le){let it=V.parent;if(!ht(it,Le))return!1;let kt=it.fullName,$t=V.fullName;return kt==="script"&&$t==="setup"||kt==="style"&&$t==="vars"}function Ut(V){let Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:V.value;return V.parent.isWhitespaceSensitive?V.parent.isIndentationSensitive?E(Le):E(_n(X(Le)),f):h(d(D,G(Le)))}function yt(V,Le){return ht(V,Le)&&V.name==="script"}A.exports={htmlTrim:ne,htmlTrimPreserveIndentation:X,hasHtmlWhitespace:be,getLeadingAndTrailingHtmlWhitespace:ee,canHaveInterpolation:k,countChars:ln,countParents:Et,dedentString:_n,forceBreakChildren:fe,forceBreakContent:ye,forceNextEmptyLine:ce,getLastDescendant:rt,getNodeCssStyleDisplay:Bt,getNodeCssStyleWhiteSpace:cn,hasPrettierIgnore:J,inferScriptParser:Ie,isVueCustomBlock:xe,isVueNonHtmlBlock:Oe,isVueScriptTag:yt,isVueSlotAttribute:ft,isVueSfcBindingsAttribute:Zt,isVueSfcBlock:ht,isDanglingSpaceSensitiveNode:ie,isIndentationSensitiveNode:q,isLeadingSpaceSensitiveNode:U,isPreLikeNode:Ke,isScriptLikeTag:y,isTextLikeNode:R,isTrailingSpaceSensitiveNode:z,isWhitespaceSensitiveNode:I,isUnknownNamespace:C,preferHardlineAsLeadingSpaces:_e,preferHardlineAsTrailingSpaces:se,shouldPreserveContent:F,unescapeQuoteEntities:yn,getTextValueParts:Ut}}}),IE=Te({"node_modules/angular-html-parser/lib/compiler/src/chars.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0}),m.$EOF=0,m.$BSPACE=8,m.$TAB=9,m.$LF=10,m.$VTAB=11,m.$FF=12,m.$CR=13,m.$SPACE=32,m.$BANG=33,m.$DQ=34,m.$HASH=35,m.$$=36,m.$PERCENT=37,m.$AMPERSAND=38,m.$SQ=39,m.$LPAREN=40,m.$RPAREN=41,m.$STAR=42,m.$PLUS=43,m.$COMMA=44,m.$MINUS=45,m.$PERIOD=46,m.$SLASH=47,m.$COLON=58,m.$SEMICOLON=59,m.$LT=60,m.$EQ=61,m.$GT=62,m.$QUESTION=63,m.$0=48,m.$7=55,m.$9=57,m.$A=65,m.$E=69,m.$F=70,m.$X=88,m.$Z=90,m.$LBRACKET=91,m.$BACKSLASH=92,m.$RBRACKET=93,m.$CARET=94,m.$_=95,m.$a=97,m.$b=98,m.$e=101,m.$f=102,m.$n=110,m.$r=114,m.$t=116,m.$u=117,m.$v=118,m.$x=120,m.$z=122,m.$LBRACE=123,m.$BAR=124,m.$RBRACE=125,m.$NBSP=160,m.$PIPE=124,m.$TILDA=126,m.$AT=64,m.$BT=96;function A(h){return h>=m.$TAB&&h<=m.$SPACE||h==m.$NBSP}m.isWhitespace=A;function p(h){return m.$0<=h&&h<=m.$9}m.isDigit=p;function b(h){return h>=m.$a&&h<=m.$z||h>=m.$A&&h<=m.$Z}m.isAsciiLetter=b;function D(h){return h>=m.$a&&h<=m.$f||h>=m.$A&&h<=m.$F||p(h)}m.isAsciiHexDigit=D;function f(h){return h===m.$LF||h===m.$CR}m.isNewLine=f;function d(h){return m.$0<=h&&h<=m.$7}m.isOctalDigit=d}}),OE=Te({"node_modules/angular-html-parser/lib/compiler/src/aot/static_symbol.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0});var A=class{constructor(b,D,f){this.filePath=b,this.name=D,this.members=f}assertNoMembers(){if(this.members.length)throw new Error(`Illegal state: symbol without members expected, but got ${JSON.stringify(this)}.`)}};m.StaticSymbol=A;var p=class{constructor(){this.cache=new Map}get(b,D,f){f=f||[];let d=f.length?`.${f.join(".")}`:"",h=`"${b}".${D}${d}`,E=this.cache.get(h);return E||(E=new A(b,D,f),this.cache.set(h,E)),E}};m.StaticSymbolCache=p}}),jE=Te({"node_modules/angular-html-parser/lib/compiler/src/util.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0});var A=/-+([a-z0-9])/g;function p(y){return y.replace(A,function(){for(var k=arguments.length,I=new Array(k),q=0;q<k;q++)I[q]=arguments[q];return I[1].toUpperCase()})}m.dashCaseToCamelCase=p;function b(y,k){return f(y,":",k)}m.splitAtColon=b;function D(y,k){return f(y,".",k)}m.splitAtPeriod=D;function f(y,k,I){let q=y.indexOf(k);return q==-1?I:[y.slice(0,q).trim(),y.slice(q+1).trim()]}function d(y,k,I){return Array.isArray(y)?k.visitArray(y,I):$(y)?k.visitStringMap(y,I):y==null||typeof y=="string"||typeof y=="number"||typeof y=="boolean"?k.visitPrimitive(y,I):k.visitOther(y,I)}m.visitValue=d;function h(y){return y!=null}m.isDefined=h;function E(y){return y===void 0?null:y}m.noUndefined=E;var x=class{visitArray(y,k){return y.map(I=>d(I,this,k))}visitStringMap(y,k){let I={};return Object.keys(y).forEach(q=>{I[q]=d(y[q],this,k)}),I}visitPrimitive(y,k){return y}visitOther(y,k){return y}};m.ValueTransformer=x,m.SyncAsync={assertSync:y=>{if(ee(y))throw new Error("Illegal state: value cannot be a promise");return y},then:(y,k)=>ee(y)?y.then(k):k(y),all:y=>y.some(ee)?Promise.all(y):y};function B(y){throw new Error(`Internal Error: ${y}`)}m.error=B;function L(y,k){let I=Error(y);return I[P]=!0,k&&(I[C]=k),I}m.syntaxError=L;var P="ngSyntaxError",C="ngParseErrors";function S(y){return y[P]}m.isSyntaxError=S;function j(y){return y[C]||[]}m.getParseErrors=j;function Q(y){return y.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}m.escapeRegExp=Q;var ne=Object.getPrototypeOf({});function $(y){return typeof y=="object"&&y!==null&&Object.getPrototypeOf(y)===ne}function X(y){let k="";for(let I=0;I<y.length;I++){let q=y.charCodeAt(I);if(q>=55296&&q<=56319&&y.length>I+1){let U=y.charCodeAt(I+1);U>=56320&&U<=57343&&(I++,q=(q-55296<<10)+U-56320+65536)}q<=127?k+=String.fromCharCode(q):q<=2047?k+=String.fromCharCode(q>>6&31|192,q&63|128):q<=65535?k+=String.fromCharCode(q>>12|224,q>>6&63|128,q&63|128):q<=2097151&&(k+=String.fromCharCode(q>>18&7|240,q>>12&63|128,q>>6&63|128,q&63|128))}return k}m.utf8Encode=X;function G(y){if(typeof y=="string")return y;if(y instanceof Array)return"["+y.map(G).join(", ")+"]";if(y==null)return""+y;if(y.overriddenName)return`${y.overriddenName}`;if(y.name)return`${y.name}`;if(!y.toString)return"object";let k=y.toString();if(k==null)return""+k;let I=k.indexOf(`
247
- `);return I===-1?k:k.substring(0,I)}m.stringify=G;function re(y){return typeof y=="function"&&y.hasOwnProperty("__forward_ref__")?y():y}m.resolveForwardRef=re;function ee(y){return!!y&&typeof y.then=="function"}m.isPromise=ee;var be=class{constructor(y){this.full=y;let k=y.split(".");this.major=k[0],this.minor=k[1],this.patch=k.slice(2).join(".")}};m.Version=be;var F=typeof window<"u"&&window,J=typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self,w=typeof globalThis<"u"&&globalThis,R=w||F||J;m.global=R}}),RE=Te({"node_modules/angular-html-parser/lib/compiler/src/compile_metadata.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0});var A=OE(),p=jE(),b=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/;function D(I){return I.replace(/\W/g,"_")}m.sanitizeIdentifier=D;var f=0;function d(I){if(!I||!I.reference)return null;let q=I.reference;if(q instanceof A.StaticSymbol)return q.name;if(q.__anonymousType)return q.__anonymousType;let U=p.stringify(q);return U.indexOf("(")>=0?(U=`anonymous_${f++}`,q.__anonymousType=U):U=D(U),U}m.identifierName=d;function h(I){let q=I.reference;return q instanceof A.StaticSymbol?q.filePath:`./${p.stringify(q)}`}m.identifierModuleUrl=h;function E(I,q){return`View_${d({reference:I})}_${q}`}m.viewClassName=E;function x(I){return`RenderType_${d({reference:I})}`}m.rendererTypeName=x;function B(I){return`HostView_${d({reference:I})}`}m.hostViewClassName=B;function L(I){return`${d({reference:I})}NgFactory`}m.componentFactoryName=L;var P;(function(I){I[I.Pipe=0]="Pipe",I[I.Directive=1]="Directive",I[I.NgModule=2]="NgModule",I[I.Injectable=3]="Injectable"})(P=m.CompileSummaryKind||(m.CompileSummaryKind={}));function C(I){return I.value!=null?D(I.value):d(I.identifier)}m.tokenName=C;function S(I){return I.identifier!=null?I.identifier.reference:I.value}m.tokenReference=S;var j=class{constructor(){let{moduleUrl:I,styles:q,styleUrls:U}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.moduleUrl=I||null,this.styles=ee(q),this.styleUrls=ee(U)}};m.CompileStylesheetMetadata=j;var Q=class{constructor(I){let{encapsulation:q,template:U,templateUrl:z,htmlAst:ie,styles:ce,styleUrls:ye,externalStylesheets:fe,animations:_e,ngContentSelectors:se,interpolation:Ue,isInline:ge,preserveWhitespaces:ue}=I;if(this.encapsulation=q,this.template=U,this.templateUrl=z,this.htmlAst=ie,this.styles=ee(ce),this.styleUrls=ee(ye),this.externalStylesheets=ee(fe),this.animations=_e?F(_e):[],this.ngContentSelectors=se||[],Ue&&Ue.length!=2)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=Ue,this.isInline=ge,this.preserveWhitespaces=ue}toSummary(){return{ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation,styles:this.styles,animations:this.animations}}};m.CompileTemplateMetadata=Q;var ne=class{static create(I){let{isHost:q,type:U,isComponent:z,selector:ie,exportAs:ce,changeDetection:ye,inputs:fe,outputs:_e,host:se,providers:Ue,viewProviders:ge,queries:ue,guards:qe,viewQueries:rt,entryComponents:Ge,template:mt,componentViewType:ve,rendererType:Ie,componentFactory:pt}=I,dt={},Jt={},$e={};se!=null&&Object.keys(se).forEach(Ke=>{let Et=se[Ke],_t=Ke.match(b);_t===null?$e[Ke]=Et:_t[1]!=null?Jt[_t[1]]=Et:_t[2]!=null&&(dt[_t[2]]=Et)});let we={};fe!=null&&fe.forEach(Ke=>{let Et=p.splitAtColon(Ke,[Ke,Ke]);we[Et[0]]=Et[1]});let Je={};return _e!=null&&_e.forEach(Ke=>{let Et=p.splitAtColon(Ke,[Ke,Ke]);Je[Et[0]]=Et[1]}),new ne({isHost:q,type:U,isComponent:!!z,selector:ie,exportAs:ce,changeDetection:ye,inputs:we,outputs:Je,hostListeners:dt,hostProperties:Jt,hostAttributes:$e,providers:Ue,viewProviders:ge,queries:ue,guards:qe,viewQueries:rt,entryComponents:Ge,template:mt,componentViewType:ve,rendererType:Ie,componentFactory:pt})}constructor(I){let{isHost:q,type:U,isComponent:z,selector:ie,exportAs:ce,changeDetection:ye,inputs:fe,outputs:_e,hostListeners:se,hostProperties:Ue,hostAttributes:ge,providers:ue,viewProviders:qe,queries:rt,guards:Ge,viewQueries:mt,entryComponents:ve,template:Ie,componentViewType:pt,rendererType:dt,componentFactory:Jt}=I;this.isHost=!!q,this.type=U,this.isComponent=z,this.selector=ie,this.exportAs=ce,this.changeDetection=ye,this.inputs=fe,this.outputs=_e,this.hostListeners=se,this.hostProperties=Ue,this.hostAttributes=ge,this.providers=ee(ue),this.viewProviders=ee(qe),this.queries=ee(rt),this.guards=Ge,this.viewQueries=ee(mt),this.entryComponents=ee(ve),this.template=Ie,this.componentViewType=pt,this.rendererType=dt,this.componentFactory=Jt}toSummary(){return{summaryKind:P.Directive,type:this.type,isComponent:this.isComponent,selector:this.selector,exportAs:this.exportAs,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAttributes:this.hostAttributes,providers:this.providers,viewProviders:this.viewProviders,queries:this.queries,guards:this.guards,viewQueries:this.viewQueries,entryComponents:this.entryComponents,changeDetection:this.changeDetection,template:this.template&&this.template.toSummary(),componentViewType:this.componentViewType,rendererType:this.rendererType,componentFactory:this.componentFactory}}};m.CompileDirectiveMetadata=ne;var $=class{constructor(I){let{type:q,name:U,pure:z}=I;this.type=q,this.name=U,this.pure=!!z}toSummary(){return{summaryKind:P.Pipe,type:this.type,name:this.name,pure:this.pure}}};m.CompilePipeMetadata=$;var X=class{};m.CompileShallowModuleMetadata=X;var G=class{constructor(I){let{type:q,providers:U,declaredDirectives:z,exportedDirectives:ie,declaredPipes:ce,exportedPipes:ye,entryComponents:fe,bootstrapComponents:_e,importedModules:se,exportedModules:Ue,schemas:ge,transitiveModule:ue,id:qe}=I;this.type=q||null,this.declaredDirectives=ee(z),this.exportedDirectives=ee(ie),this.declaredPipes=ee(ce),this.exportedPipes=ee(ye),this.providers=ee(U),this.entryComponents=ee(fe),this.bootstrapComponents=ee(_e),this.importedModules=ee(se),this.exportedModules=ee(Ue),this.schemas=ee(ge),this.id=qe||null,this.transitiveModule=ue||null}toSummary(){let I=this.transitiveModule;return{summaryKind:P.NgModule,type:this.type,entryComponents:I.entryComponents,providers:I.providers,modules:I.modules,exportedDirectives:I.exportedDirectives,exportedPipes:I.exportedPipes}}};m.CompileNgModuleMetadata=G;var re=class{constructor(){this.directivesSet=new Set,this.directives=[],this.exportedDirectivesSet=new Set,this.exportedDirectives=[],this.pipesSet=new Set,this.pipes=[],this.exportedPipesSet=new Set,this.exportedPipes=[],this.modulesSet=new Set,this.modules=[],this.entryComponentsSet=new Set,this.entryComponents=[],this.providers=[]}addProvider(I,q){this.providers.push({provider:I,module:q})}addDirective(I){this.directivesSet.has(I.reference)||(this.directivesSet.add(I.reference),this.directives.push(I))}addExportedDirective(I){this.exportedDirectivesSet.has(I.reference)||(this.exportedDirectivesSet.add(I.reference),this.exportedDirectives.push(I))}addPipe(I){this.pipesSet.has(I.reference)||(this.pipesSet.add(I.reference),this.pipes.push(I))}addExportedPipe(I){this.exportedPipesSet.has(I.reference)||(this.exportedPipesSet.add(I.reference),this.exportedPipes.push(I))}addModule(I){this.modulesSet.has(I.reference)||(this.modulesSet.add(I.reference),this.modules.push(I))}addEntryComponent(I){this.entryComponentsSet.has(I.componentType)||(this.entryComponentsSet.add(I.componentType),this.entryComponents.push(I))}};m.TransitiveCompileNgModuleMetadata=re;function ee(I){return I||[]}var be=class{constructor(I,q){let{useClass:U,useValue:z,useExisting:ie,useFactory:ce,deps:ye,multi:fe}=q;this.token=I,this.useClass=U||null,this.useValue=z,this.useExisting=ie,this.useFactory=ce||null,this.dependencies=ye||null,this.multi=!!fe}};m.ProviderMeta=be;function F(I){return I.reduce((q,U)=>{let z=Array.isArray(U)?F(U):U;return q.concat(z)},[])}m.flatten=F;function J(I){return I.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/,"ng:///")}function w(I,q,U){let z;return U.isInline?q.type.reference instanceof A.StaticSymbol?z=`${q.type.reference.filePath}.${q.type.reference.name}.html`:z=`${d(I)}/${d(q.type)}.html`:z=U.templateUrl,q.type.reference instanceof A.StaticSymbol?z:J(z)}m.templateSourceUrl=w;function R(I,q){let U=I.moduleUrl.split(/\/\\/g),z=U[U.length-1];return J(`css/${q}${z}.ngstyle.js`)}m.sharedStylesheetJitUrl=R;function y(I){return J(`${d(I.type)}/module.ngfactory.js`)}m.ngModuleJitUrl=y;function k(I,q){return J(`${d(I)}/${d(q.type)}.ngfactory.js`)}m.templateJitUrl=k}}),$E=Te({"node_modules/angular-html-parser/lib/compiler/src/parse_util.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0});var A=IE(),p=RE(),b=class{constructor(B,L,P,C){this.file=B,this.offset=L,this.line=P,this.col=C}toString(){return this.offset!=null?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(B){let L=this.file.content,P=L.length,C=this.offset,S=this.line,j=this.col;for(;C>0&&B<0;)if(C--,B++,L.charCodeAt(C)==A.$LF){S--;let Q=L.substr(0,C-1).lastIndexOf(String.fromCharCode(A.$LF));j=Q>0?C-Q:C}else j--;for(;C<P&&B>0;){let Q=L.charCodeAt(C);C++,B--,Q==A.$LF?(S++,j=0):j++}return new b(this.file,C,S,j)}getContext(B,L){let P=this.file.content,C=this.offset;if(C!=null){C>P.length-1&&(C=P.length-1);let S=C,j=0,Q=0;for(;j<B&&C>0&&(C--,j++,!(P[C]==`
248
- `&&++Q==L)););for(j=0,Q=0;j<B&&S<P.length-1&&(S++,j++,!(P[S]==`
249
- `&&++Q==L)););return{before:P.substring(C,this.offset),after:P.substring(this.offset,S+1)}}return null}};m.ParseLocation=b;var D=class{constructor(B,L){this.content=B,this.url=L}};m.ParseSourceFile=D;var f=class{constructor(B,L){let P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;this.start=B,this.end=L,this.details=P}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}};m.ParseSourceSpan=f,m.EMPTY_PARSE_LOCATION=new b(new D("",""),0,0,0),m.EMPTY_SOURCE_SPAN=new f(m.EMPTY_PARSE_LOCATION,m.EMPTY_PARSE_LOCATION);var d;(function(B){B[B.WARNING=0]="WARNING",B[B.ERROR=1]="ERROR"})(d=m.ParseErrorLevel||(m.ParseErrorLevel={}));var h=class{constructor(B,L){let P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:d.ERROR;this.span=B,this.msg=L,this.level=P}contextualMessage(){let B=this.span.start.getContext(100,3);return B?`${this.msg} ("${B.before}[${d[this.level]} ->]${B.after}")`:this.msg}toString(){let B=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${B}`}};m.ParseError=h;function E(B,L){let P=p.identifierModuleUrl(L),C=P!=null?`in ${B} ${p.identifierName(L)} in ${P}`:`in ${B} ${p.identifierName(L)}`,S=new D("",C);return new f(new b(S,-1,-1,-1),new b(S,-1,-1,-1))}m.typeSourceSpan=E;function x(B,L,P){let C=`in ${B} ${L} in ${P}`,S=new D("",C);return new f(new b(S,-1,-1,-1),new b(S,-1,-1,-1))}m.r3JitTypeSourceSpan=x}}),VE=Te({"src/language-html/print-preprocess.js"(m,A){Re();var{ParseSourceSpan:p}=$E(),{htmlTrim:b,getLeadingAndTrailingHtmlWhitespace:D,hasHtmlWhitespace:f,canHaveInterpolation:d,getNodeCssStyleDisplay:h,isDanglingSpaceSensitiveNode:E,isIndentationSensitiveNode:x,isLeadingSpaceSensitiveNode:B,isTrailingSpaceSensitiveNode:L,isWhitespaceSensitiveNode:P,isVueScriptTag:C}=io(),S=[Q,ne,X,re,ee,J,be,F,w,G,R];function j(y,k){for(let I of S)I(y,k);return y}function Q(y){y.walk(k=>{if(k.type==="element"&&k.tagDefinition.ignoreFirstLf&&k.children.length>0&&k.children[0].type==="text"&&k.children[0].value[0]===`
250
- `){let I=k.children[0];I.value.length===1?k.removeChild(I):I.value=I.value.slice(1)}})}function ne(y){let k=I=>I.type==="element"&&I.prev&&I.prev.type==="ieConditionalStartComment"&&I.prev.sourceSpan.end.offset===I.startSourceSpan.start.offset&&I.firstChild&&I.firstChild.type==="ieConditionalEndComment"&&I.firstChild.sourceSpan.start.offset===I.startSourceSpan.end.offset;y.walk(I=>{if(I.children)for(let q=0;q<I.children.length;q++){let U=I.children[q];if(!k(U))continue;let z=U.prev,ie=U.firstChild;I.removeChild(z),q--;let ce=new p(z.sourceSpan.start,ie.sourceSpan.end),ye=new p(ce.start,U.sourceSpan.end);U.condition=z.condition,U.sourceSpan=ye,U.startSourceSpan=ce,U.removeChild(ie)}})}function $(y,k,I){y.walk(q=>{if(q.children)for(let U=0;U<q.children.length;U++){let z=q.children[U];if(z.type!=="text"&&!k(z))continue;z.type!=="text"&&(z.type="text",z.value=I(z));let ie=z.prev;!ie||ie.type!=="text"||(ie.value+=z.value,ie.sourceSpan=new p(ie.sourceSpan.start,z.sourceSpan.end),q.removeChild(z),U--)}})}function X(y){return $(y,k=>k.type==="cdata",k=>`<![CDATA[${k.value}]]>`)}function G(y){let k=I=>I.type==="element"&&I.attrs.length===0&&I.children.length===1&&I.firstChild.type==="text"&&!f(I.children[0].value)&&!I.firstChild.hasLeadingSpaces&&!I.firstChild.hasTrailingSpaces&&I.isLeadingSpaceSensitive&&!I.hasLeadingSpaces&&I.isTrailingSpaceSensitive&&!I.hasTrailingSpaces&&I.prev&&I.prev.type==="text"&&I.next&&I.next.type==="text";y.walk(I=>{if(I.children)for(let q=0;q<I.children.length;q++){let U=I.children[q];if(!k(U))continue;let z=U.prev,ie=U.next;z.value+=`<${U.rawName}>`+U.firstChild.value+`</${U.rawName}>`+ie.value,z.sourceSpan=new p(z.sourceSpan.start,ie.sourceSpan.end),z.isTrailingSpaceSensitive=ie.isTrailingSpaceSensitive,z.hasTrailingSpaces=ie.hasTrailingSpaces,I.removeChild(U),q--,I.removeChild(ie)}})}function re(y,k){if(k.parser==="html")return;let I=/{{(.+?)}}/s;y.walk(q=>{if(d(q))for(let U of q.children){if(U.type!=="text")continue;let z=U.sourceSpan.start,ie=null,ce=U.value.split(I);for(let ye=0;ye<ce.length;ye++,z=ie){let fe=ce[ye];if(ye%2===0){ie=z.moveBy(fe.length),fe.length>0&&q.insertChildBefore(U,{type:"text",value:fe,sourceSpan:new p(z,ie)});continue}ie=z.moveBy(fe.length+4),q.insertChildBefore(U,{type:"interpolation",sourceSpan:new p(z,ie),children:fe.length===0?[]:[{type:"text",value:fe,sourceSpan:new p(z.moveBy(2),ie.moveBy(-2))}]})}q.removeChild(U)}})}function ee(y){y.walk(k=>{if(!k.children)return;if(k.children.length===0||k.children.length===1&&k.children[0].type==="text"&&b(k.children[0].value).length===0){k.hasDanglingSpaces=k.children.length>0,k.children=[];return}let I=P(k),q=x(k);if(!I)for(let U=0;U<k.children.length;U++){let z=k.children[U];if(z.type!=="text")continue;let{leadingWhitespace:ie,text:ce,trailingWhitespace:ye}=D(z.value),fe=z.prev,_e=z.next;ce?(z.value=ce,z.sourceSpan=new p(z.sourceSpan.start.moveBy(ie.length),z.sourceSpan.end.moveBy(-ye.length)),ie&&(fe&&(fe.hasTrailingSpaces=!0),z.hasLeadingSpaces=!0),ye&&(z.hasTrailingSpaces=!0,_e&&(_e.hasLeadingSpaces=!0))):(k.removeChild(z),U--,(ie||ye)&&(fe&&(fe.hasTrailingSpaces=!0),_e&&(_e.hasLeadingSpaces=!0)))}k.isWhitespaceSensitive=I,k.isIndentationSensitive=q})}function be(y){y.walk(k=>{k.isSelfClosing=!k.children||k.type==="element"&&(k.tagDefinition.isVoid||k.startSourceSpan===k.endSourceSpan)})}function F(y,k){y.walk(I=>{I.type==="element"&&(I.hasHtmComponentClosingTag=I.endSourceSpan&&/^<\s*\/\s*\/\s*>$/.test(k.originalText.slice(I.endSourceSpan.start.offset,I.endSourceSpan.end.offset)))})}function J(y,k){y.walk(I=>{I.cssDisplay=h(I,k)})}function w(y,k){y.walk(I=>{let{children:q}=I;if(q){if(q.length===0){I.isDanglingSpaceSensitive=E(I);return}for(let U of q)U.isLeadingSpaceSensitive=B(U,k),U.isTrailingSpaceSensitive=L(U,k);for(let U=0;U<q.length;U++){let z=q[U];z.isLeadingSpaceSensitive=(U===0||z.prev.isTrailingSpaceSensitive)&&z.isLeadingSpaceSensitive,z.isTrailingSpaceSensitive=(U===q.length-1||z.next.isLeadingSpaceSensitive)&&z.isTrailingSpaceSensitive}}})}function R(y,k){if(k.parser==="vue"){let I=y.children.find(U=>C(U,k));if(!I)return;let{lang:q}=I.attrMap;(q==="ts"||q==="typescript")&&(k.__should_parse_vue_template_with_ts=!0)}}A.exports=j}}),qE=Te({"src/language-html/pragma.js"(m,A){Re();function p(D){return/^\s*<!--\s*@(?:format|prettier)\s*-->/.test(D)}function b(D){return`<!-- @format -->
251
-
252
- `+D.replace(/^\s*\n/,"")}A.exports={hasPragma:p,insertPragma:b}}}),fp=Te({"src/language-html/loc.js"(m,A){Re();function p(D){return D.sourceSpan.start.offset}function b(D){return D.sourceSpan.end.offset}A.exports={locStart:p,locEnd:b}}}),Jo=Te({"src/language-html/print/tag.js"(m,A){Re();var p=Vo(),{isNonEmptyArray:b}=De(),{builders:{indent:D,join:f,line:d,softline:h,hardline:E},utils:{replaceTextEndOfLine:x}}=wn(),{locStart:B,locEnd:L}=fp(),{isTextLikeNode:P,getLastDescendant:C,isPreLikeNode:S,hasPrettierIgnore:j,shouldPreserveContent:Q,isVueSfcBlock:ne}=io();function $(se,Ue){return[se.isSelfClosing?"":X(se,Ue),G(se,Ue)]}function X(se,Ue){return se.lastChild&&y(se.lastChild)?"":[re(se,Ue),be(se,Ue)]}function G(se,Ue){return(se.next?w(se.next):R(se.parent))?"":[F(se,Ue),ee(se,Ue)]}function re(se,Ue){return R(se)?F(se.lastChild,Ue):""}function ee(se,Ue){return y(se)?be(se.parent,Ue):k(se)?fe(se.next):""}function be(se,Ue){if(p(!se.isSelfClosing),J(se,Ue))return"";switch(se.type){case"ieConditionalComment":return"<!";case"element":if(se.hasHtmComponentClosingTag)return"<//";default:return`</${se.rawName}`}}function F(se,Ue){if(J(se,Ue))return"";switch(se.type){case"ieConditionalComment":case"ieConditionalEndComment":return"[endif]-->";case"ieConditionalStartComment":return"]><!-->";case"interpolation":return"}}";case"element":if(se.isSelfClosing)return"/>";default:return">"}}function J(se,Ue){return!se.isSelfClosing&&!se.endSourceSpan&&(j(se)||Q(se.parent,Ue))}function w(se){return se.prev&&se.prev.type!=="docType"&&!P(se.prev)&&se.isLeadingSpaceSensitive&&!se.hasLeadingSpaces}function R(se){return se.lastChild&&se.lastChild.isTrailingSpaceSensitive&&!se.lastChild.hasTrailingSpaces&&!P(C(se.lastChild))&&!S(se)}function y(se){return!se.next&&!se.hasTrailingSpaces&&se.isTrailingSpaceSensitive&&P(C(se))}function k(se){return se.next&&!P(se.next)&&P(se)&&se.isTrailingSpaceSensitive&&!se.hasTrailingSpaces}function I(se){let Ue=se.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/s);return Ue?Ue[1]?Ue[1].split(/\s+/):!0:!1}function q(se){return!se.prev&&se.isLeadingSpaceSensitive&&!se.hasLeadingSpaces}function U(se,Ue,ge){let ue=se.getValue();if(!b(ue.attrs))return ue.isSelfClosing?" ":"";let qe=ue.prev&&ue.prev.type==="comment"&&I(ue.prev.value),rt=typeof qe=="boolean"?()=>qe:Array.isArray(qe)?pt=>qe.includes(pt.rawName):()=>!1,Ge=se.map(pt=>{let dt=pt.getValue();return rt(dt)?x(Ue.originalText.slice(B(dt),L(dt))):ge()},"attrs"),mt=ue.type==="element"&&ue.fullName==="script"&&ue.attrs.length===1&&ue.attrs[0].fullName==="src"&&ue.children.length===0,ve=Ue.singleAttributePerLine&&ue.attrs.length>1&&!ne(ue,Ue)?E:d,Ie=[D([mt?" ":d,f(ve,Ge)])];return ue.firstChild&&q(ue.firstChild)||ue.isSelfClosing&&R(ue.parent)||mt?Ie.push(ue.isSelfClosing?" ":""):Ie.push(Ue.bracketSameLine?ue.isSelfClosing?" ":"":ue.isSelfClosing?d:h),Ie}function z(se){return se.firstChild&&q(se.firstChild)?"":_e(se)}function ie(se,Ue,ge){let ue=se.getValue();return[ce(ue,Ue),U(se,Ue,ge),ue.isSelfClosing?"":z(ue)]}function ce(se,Ue){return se.prev&&k(se.prev)?"":[ye(se,Ue),fe(se)]}function ye(se,Ue){return q(se)?_e(se.parent):w(se)?F(se.prev,Ue):""}function fe(se){switch(se.type){case"ieConditionalComment":case"ieConditionalStartComment":return`<!--[if ${se.condition}`;case"ieConditionalEndComment":return"<!--<!";case"interpolation":return"{{";case"docType":return"<!DOCTYPE";case"element":if(se.condition)return`<!--[if ${se.condition}]><!--><${se.rawName}`;default:return`<${se.rawName}`}}function _e(se){switch(p(!se.isSelfClosing),se.type){case"ieConditionalComment":return"]>";case"element":if(se.condition)return"><!--<![endif]-->";default:return">"}}A.exports={printClosingTag:$,printClosingTagStart:X,printClosingTagStartMarker:be,printClosingTagEndMarker:F,printClosingTagSuffix:ee,printClosingTagEnd:G,needsToBorrowLastChildClosingTagEndMarker:R,needsToBorrowParentClosingTagStartMarker:y,needsToBorrowPrevClosingTagEndMarker:w,printOpeningTag:ie,printOpeningTagStart:ce,printOpeningTagPrefix:ye,printOpeningTagStartMarker:fe,printOpeningTagEndMarker:_e,needsToBorrowNextOpeningTagStartMarker:k,needsToBorrowParentOpeningTagEndMarker:q}}}),UE=Te({"node_modules/parse-srcset/src/parse-srcset.js"(m,A){Re(),function(p,b){typeof A=="object"&&A.exports?A.exports=b():p.parseSrcset=b()}(m,function(){return function(p,b){var D=b&&b.logger||console;function f(be){return be===" "||be===" "||be===`
253
- `||be==="\f"||be==="\r"}function d(be){var F,J=be.exec(p.substring(X));if(J)return F=J[0],X+=F.length,F}for(var h=p.length,E=/^[ \t\n\r\u000c]+/,x=/^[, \t\n\r\u000c]+/,B=/^[^ \t\n\r\u000c]+/,L=/[,]+$/,P=/^\d+$/,C=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,S,j,Q,ne,$,X=0,G=[];;){if(d(x),X>=h)return G;S=d(B),j=[],S.slice(-1)===","?(S=S.replace(L,""),ee()):re()}function re(){for(d(E),Q="",ne="in descriptor";;){if($=p.charAt(X),ne==="in descriptor")if(f($))Q&&(j.push(Q),Q="",ne="after descriptor");else if($===","){X+=1,Q&&j.push(Q),ee();return}else if($==="(")Q=Q+$,ne="in parens";else if($===""){Q&&j.push(Q),ee();return}else Q=Q+$;else if(ne==="in parens")if($===")")Q=Q+$,ne="in descriptor";else if($===""){j.push(Q),ee();return}else Q=Q+$;else if(ne==="after descriptor"&&!f($))if($===""){ee();return}else ne="in descriptor",X-=1;X+=1}}function ee(){var be=!1,F,J,w,R,y={},k,I,q,U,z;for(R=0;R<j.length;R++)k=j[R],I=k[k.length-1],q=k.substring(0,k.length-1),U=parseInt(q,10),z=parseFloat(q),P.test(q)&&I==="w"?((F||J)&&(be=!0),U===0?be=!0:F=U):C.test(q)&&I==="x"?((F||J||w)&&(be=!0),z<0?be=!0:J=z):P.test(q)&&I==="h"?((w||J)&&(be=!0),U===0?be=!0:w=U):be=!0;be?D&&D.error&&D.error("Invalid srcset descriptor found in '"+p+"' at '"+k+"'."):(y.url=S,F&&(y.w=F),J&&(y.d=J),w&&(y.h=w),G.push(y))}}})}}),WE=Te({"src/language-html/syntax-attribute.js"(m,A){Re();var p=UE(),{builders:{ifBreak:b,join:D,line:f}}=wn();function d(E){let x=p(E,{logger:{error(re){throw new Error(re)}}}),B=x.some(re=>{let{w:ee}=re;return ee}),L=x.some(re=>{let{h:ee}=re;return ee}),P=x.some(re=>{let{d:ee}=re;return ee});if(B+L+P>1)throw new Error("Mixed descriptor in srcset is not supported");let C=B?"w":L?"h":"d",S=B?"w":L?"h":"x",j=re=>Math.max(...re),Q=x.map(re=>re.url),ne=j(Q.map(re=>re.length)),$=x.map(re=>re[C]).map(re=>re?re.toString():""),X=$.map(re=>{let ee=re.indexOf(".");return ee===-1?re.length:ee}),G=j(X);return D([",",f],Q.map((re,ee)=>{let be=[re],F=$[ee];if(F){let J=ne-re.length+1,w=G-X[ee],R=" ".repeat(J+w);be.push(b(R," "),F+S)}return be}))}function h(E){return E.trim().split(/\s+/).join(" ")}A.exports={printImgSrcset:d,printClassNames:h}}}),GE=Te({"src/language-html/syntax-vue.js"(m,A){Re();var{builders:{group:p}}=wn();function b(h,E){let{left:x,operator:B,right:L}=D(h);return[p(E(`function _(${x}) {}`,{parser:"babel",__isVueForBindingLeft:!0}))," ",B," ",E(L,{parser:"__js_expression"},{stripTrailingHardline:!0})]}function D(h){let E=/(.*?)\s+(in|of)\s+(.*)/s,x=/,([^,\]}]*)(?:,([^,\]}]*))?$/,B=/^\(|\)$/g,L=h.match(E);if(!L)return;let P={};if(P.for=L[3].trim(),!P.for)return;let C=L[1].trim().replace(B,""),S=C.match(x);S?(P.alias=C.replace(x,""),P.iterator1=S[1].trim(),S[2]&&(P.iterator2=S[2].trim())):P.alias=C;let j=[P.alias,P.iterator1,P.iterator2];if(!j.some((Q,ne)=>!Q&&(ne===0||j.slice(ne+1).some(Boolean))))return{left:j.filter(Boolean).join(","),operator:L[2],right:P.for}}function f(h,E){return E(`function _(${h}) {}`,{parser:"babel",__isVueBindings:!0})}function d(h){let E=/^(?:[\w$]+|\([^)]*\))\s*=>|^function\s*\(/,x=/^[$A-Z_a-z][\w$]*(?:\.[$A-Z_a-z][\w$]*|\['[^']*']|\["[^"]*"]|\[\d+]|\[[$A-Z_a-z][\w$]*])*$/,B=h.trim();return E.test(B)||x.test(B)}A.exports={isVueEventBindingExpression:d,printVueFor:b,printVueBindings:f}}}),pg=Te({"src/language-html/get-node-content.js"(m,A){Re();var{needsToBorrowParentClosingTagStartMarker:p,printClosingTagStartMarker:b,needsToBorrowLastChildClosingTagEndMarker:D,printClosingTagEndMarker:f,needsToBorrowParentOpeningTagEndMarker:d,printOpeningTagEndMarker:h}=Jo();function E(x,B){let L=x.startSourceSpan.end.offset;x.firstChild&&d(x.firstChild)&&(L-=h(x).length);let P=x.endSourceSpan.start.offset;return x.lastChild&&p(x.lastChild)?P+=b(x,B).length:D(x)&&(P-=f(x.lastChild,B).length),B.originalText.slice(L,P)}A.exports=E}}),JE=Te({"src/language-html/embed.js"(m,A){Re();var{builders:{breakParent:p,group:b,hardline:D,indent:f,line:d,fill:h,softline:E},utils:{mapDoc:x,replaceTextEndOfLine:B}}=wn(),L=lp(),{printClosingTag:P,printClosingTagSuffix:C,needsToBorrowPrevClosingTagEndMarker:S,printOpeningTagPrefix:j,printOpeningTag:Q}=Jo(),{printImgSrcset:ne,printClassNames:$}=WE(),{printVueFor:X,printVueBindings:G,isVueEventBindingExpression:re}=GE(),{isScriptLikeTag:ee,isVueNonHtmlBlock:be,inferScriptParser:F,htmlTrimPreserveIndentation:J,dedentString:w,unescapeQuoteEntities:R,isVueSlotAttribute:y,isVueSfcBindingsAttribute:k,getTextValueParts:I}=io(),q=pg();function U(ie,ce,ye){let fe=Ge=>new RegExp(Ge.join("|")).test(ie.fullName),_e=()=>R(ie.value),se=!1,Ue=(Ge,mt)=>{let ve=Ge.type==="NGRoot"?Ge.node.type==="NGMicrosyntax"&&Ge.node.body.length===1&&Ge.node.body[0].type==="NGMicrosyntaxExpression"?Ge.node.body[0].expression:Ge.node:Ge.type==="JsExpressionRoot"?Ge.node:Ge;ve&&(ve.type==="ObjectExpression"||ve.type==="ArrayExpression"||mt.parser==="__vue_expression"&&(ve.type==="TemplateLiteral"||ve.type==="StringLiteral"))&&(se=!0)},ge=Ge=>b(Ge),ue=function(Ge){let mt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return b([f([E,Ge]),mt?E:""])},qe=Ge=>se?ge(Ge):ue(Ge),rt=(Ge,mt)=>ce(Ge,Object.assign({__onHtmlBindingRoot:Ue,__embeddedInHtml:!0},mt));if(ie.fullName==="srcset"&&(ie.parent.fullName==="img"||ie.parent.fullName==="source"))return ue(ne(_e()));if(ie.fullName==="class"&&!ye.parentParser){let Ge=_e();if(!Ge.includes("{{"))return $(Ge)}if(ie.fullName==="style"&&!ye.parentParser){let Ge=_e();if(!Ge.includes("{{"))return ue(rt(Ge,{parser:"css",__isHTMLStyleAttribute:!0}))}if(ye.parser==="vue"){if(ie.fullName==="v-for")return X(_e(),rt);if(y(ie)||k(ie,ye))return G(_e(),rt);let Ge=["^@","^v-on:"],mt=["^:","^v-bind:"],ve=["^v-"];if(fe(Ge)){let Ie=_e(),pt=re(Ie)?"__js_expression":ye.__should_parse_vue_template_with_ts?"__vue_ts_event_binding":"__vue_event_binding";return qe(rt(Ie,{parser:pt}))}if(fe(mt))return qe(rt(_e(),{parser:"__vue_expression"}));if(fe(ve))return qe(rt(_e(),{parser:"__js_expression"}))}if(ye.parser==="angular"){let Ge=($e,we)=>rt($e,Object.assign(Object.assign({},we),{},{trailingComma:"none"})),mt=["^\\*"],ve=["^\\(.+\\)$","^on-"],Ie=["^\\[.+\\]$","^bind(on)?-","^ng-(if|show|hide|class|style)$"],pt=["^i18n(-.+)?$"];if(fe(ve))return qe(Ge(_e(),{parser:"__ng_action"}));if(fe(Ie))return qe(Ge(_e(),{parser:"__ng_binding"}));if(fe(pt)){let $e=_e().trim();return ue(h(I(ie,$e)),!$e.includes("@@"))}if(fe(mt))return qe(Ge(_e(),{parser:"__ng_directive"}));let dt=/{{(.+?)}}/s,Jt=_e();if(dt.test(Jt)){let $e=[];for(let[we,Je]of Jt.split(dt).entries())if(we%2===0)$e.push(B(Je));else try{$e.push(b(["{{",f([d,Ge(Je,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})]),d,"}}"]))}catch{$e.push("{{",B(Je),"}}")}return b($e)}}return null}function z(ie,ce,ye,fe){let _e=ie.getValue();switch(_e.type){case"element":{if(ee(_e)||_e.type==="interpolation")return;if(!_e.isSelfClosing&&be(_e,fe)){let se=F(_e,fe);if(!se)return;let Ue=q(_e,fe),ge=/^\s*$/.test(Ue),ue="";return ge||(ue=ye(J(Ue),{parser:se,__embeddedInHtml:!0},{stripTrailingHardline:!0}),ge=ue===""),[j(_e,fe),b(Q(ie,fe,ce)),ge?"":D,ue,ge?"":D,P(_e,fe),C(_e,fe)]}break}case"text":{if(ee(_e.parent)){let se=F(_e.parent,fe);if(se){let Ue=se==="markdown"?w(_e.value.replace(/^[^\S\n]*\n/,"")):_e.value,ge={parser:se,__embeddedInHtml:!0};if(fe.parser==="html"&&se==="babel"){let ue="script",{attrMap:qe}=_e.parent;qe&&(qe.type==="module"||qe.type==="text/babel"&&qe["data-type"]==="module")&&(ue="module"),ge.__babelSourceType=ue}return[p,j(_e,fe),ye(Ue,ge,{stripTrailingHardline:!0}),C(_e,fe)]}}else if(_e.parent.type==="interpolation"){let se={__isInHtmlInterpolation:!0,__embeddedInHtml:!0};return fe.parser==="angular"?(se.parser="__ng_interpolation",se.trailingComma="none"):fe.parser==="vue"?se.parser=fe.__should_parse_vue_template_with_ts?"__vue_ts_expression":"__vue_expression":se.parser="__js_expression",[f([d,ye(_e.value,se,{stripTrailingHardline:!0})]),_e.parent.next&&S(_e.parent.next)?" ":d]}break}case"attribute":{if(!_e.value)break;if(/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(fe.originalText.slice(_e.valueSpan.start.offset,_e.valueSpan.end.offset)))return[_e.rawName,"=",_e.value];if(fe.parser==="lwc"&&/^{.*}$/s.test(fe.originalText.slice(_e.valueSpan.start.offset,_e.valueSpan.end.offset)))return[_e.rawName,"=",_e.value];let se=U(_e,(Ue,ge)=>ye(Ue,Object.assign({__isInHtmlAttribute:!0,__embeddedInHtml:!0},ge),{stripTrailingHardline:!0}),fe);if(se)return[_e.rawName,'="',b(x(se,Ue=>typeof Ue=="string"?Ue.replace(/"/g,"&quot;"):Ue)),'"'];break}case"front-matter":return L(_e,ye)}}A.exports=z}}),dg=Te({"src/language-html/print/children.js"(m,A){Re();var{builders:{breakParent:p,group:b,ifBreak:D,line:f,softline:d,hardline:h},utils:{replaceTextEndOfLine:E}}=wn(),{locStart:x,locEnd:B}=fp(),{forceBreakChildren:L,forceNextEmptyLine:P,isTextLikeNode:C,hasPrettierIgnore:S,preferHardlineAsLeadingSpaces:j}=io(),{printOpeningTagPrefix:Q,needsToBorrowNextOpeningTagStartMarker:ne,printOpeningTagStartMarker:$,needsToBorrowPrevClosingTagEndMarker:X,printClosingTagEndMarker:G,printClosingTagSuffix:re,needsToBorrowParentClosingTagStartMarker:ee}=Jo();function be(w,R,y){let k=w.getValue();return S(k)?[Q(k,R),...E(R.originalText.slice(x(k)+(k.prev&&ne(k.prev)?$(k).length:0),B(k)-(k.next&&X(k.next)?G(k,R).length:0))),re(k,R)]:y()}function F(w,R){return C(w)&&C(R)?w.isTrailingSpaceSensitive?w.hasTrailingSpaces?j(R)?h:f:"":j(R)?h:d:ne(w)&&(S(R)||R.firstChild||R.isSelfClosing||R.type==="element"&&R.attrs.length>0)||w.type==="element"&&w.isSelfClosing&&X(R)?"":!R.isLeadingSpaceSensitive||j(R)||X(R)&&w.lastChild&&ee(w.lastChild)&&w.lastChild.lastChild&&ee(w.lastChild.lastChild)?h:R.hasLeadingSpaces?f:d}function J(w,R,y){let k=w.getValue();if(L(k))return[p,...w.map(q=>{let U=q.getValue(),z=U.prev?F(U.prev,U):"";return[z?[z,P(U.prev)?h:""]:"",be(q,R,y)]},"children")];let I=k.children.map(()=>Symbol(""));return w.map((q,U)=>{let z=q.getValue();if(C(z)){if(z.prev&&C(z.prev)){let Ue=F(z.prev,z);if(Ue)return P(z.prev)?[h,h,be(q,R,y)]:[Ue,be(q,R,y)]}return be(q,R,y)}let ie=[],ce=[],ye=[],fe=[],_e=z.prev?F(z.prev,z):"",se=z.next?F(z,z.next):"";return _e&&(P(z.prev)?ie.push(h,h):_e===h?ie.push(h):C(z.prev)?ce.push(_e):ce.push(D("",d,{groupId:I[U-1]}))),se&&(P(z)?C(z.next)&&fe.push(h,h):se===h?C(z.next)&&fe.push(h):ye.push(se)),[...ie,b([...ce,b([be(q,R,y),...ye],{id:I[U]})]),...fe]},"children")}A.exports={printChildren:J}}}),YE=Te({"src/language-html/print/element.js"(m,A){Re();var{builders:{breakParent:p,dedentToRoot:b,group:D,ifBreak:f,indentIfBreak:d,indent:h,line:E,softline:x},utils:{replaceTextEndOfLine:B}}=wn(),L=pg(),{shouldPreserveContent:P,isScriptLikeTag:C,isVueCustomBlock:S,countParents:j,forceBreakContent:Q}=io(),{printOpeningTagPrefix:ne,printOpeningTag:$,printClosingTagSuffix:X,printClosingTag:G,needsToBorrowPrevClosingTagEndMarker:re,needsToBorrowLastChildClosingTagEndMarker:ee}=Jo(),{printChildren:be}=dg();function F(J,w,R){let y=J.getValue();if(P(y,w))return[ne(y,w),D($(J,w,R)),...B(L(y,w)),...G(y,w),X(y,w)];let k=y.children.length===1&&y.firstChild.type==="interpolation"&&y.firstChild.isLeadingSpaceSensitive&&!y.firstChild.hasLeadingSpaces&&y.lastChild.isTrailingSpaceSensitive&&!y.lastChild.hasTrailingSpaces,I=Symbol("element-attr-group-id"),q=ce=>D([D($(J,w,R),{id:I}),ce,G(y,w)]),U=ce=>k?d(ce,{groupId:I}):(C(y)||S(y,w))&&y.parent.type==="root"&&w.parser==="vue"&&!w.vueIndentScriptAndStyle?ce:h(ce),z=()=>k?f(x,"",{groupId:I}):y.firstChild.hasLeadingSpaces&&y.firstChild.isLeadingSpaceSensitive?E:y.firstChild.type==="text"&&y.isWhitespaceSensitive&&y.isIndentationSensitive?b(x):x,ie=()=>(y.next?re(y.next):ee(y.parent))?y.lastChild.hasTrailingSpaces&&y.lastChild.isTrailingSpaceSensitive?" ":"":k?f(x,"",{groupId:I}):y.lastChild.hasTrailingSpaces&&y.lastChild.isTrailingSpaceSensitive?E:(y.lastChild.type==="comment"||y.lastChild.type==="text"&&y.isWhitespaceSensitive&&y.isIndentationSensitive)&&new RegExp(`\\n[\\t ]{${w.tabWidth*j(J,ce=>ce.parent&&ce.parent.type!=="root")}}$`).test(y.lastChild.value)?"":x;return y.children.length===0?q(y.hasDanglingSpaces&&y.isDanglingSpaceSensitive?E:""):q([Q(y)?p:"",U([z(),be(J,w,R)]),ie()])}A.exports={printElement:F}}}),HE=Te({"src/language-html/printer-html.js"(m,A){Re();var{builders:{fill:p,group:b,hardline:D,literalline:f},utils:{cleanDoc:d,getDocParts:h,isConcat:E,replaceTextEndOfLine:x}}=wn(),B=PE(),{countChars:L,unescapeQuoteEntities:P,getTextValueParts:C}=io(),S=VE(),{insertPragma:j}=qE(),{locStart:Q,locEnd:ne}=fp(),$=JE(),{printClosingTagSuffix:X,printClosingTagEnd:G,printOpeningTagPrefix:re,printOpeningTagStart:ee}=Jo(),{printElement:be}=YE(),{printChildren:F}=dg();function J(w,R,y){let k=w.getValue();switch(k.type){case"front-matter":return x(k.raw);case"root":return R.__onHtmlRoot&&R.__onHtmlRoot(k),[b(F(w,R,y)),D];case"element":case"ieConditionalComment":return be(w,R,y);case"ieConditionalStartComment":case"ieConditionalEndComment":return[ee(k),G(k)];case"interpolation":return[ee(k,R),...w.map(y,"children"),G(k,R)];case"text":{if(k.parent.type==="interpolation"){let q=/\n[^\S\n]*$/,U=q.test(k.value),z=U?k.value.replace(q,""):k.value;return[...x(z),U?D:""]}let I=d([re(k,R),...C(k),X(k,R)]);return E(I)||I.type==="fill"?p(h(I)):I}case"docType":return[b([ee(k,R)," ",k.value.replace(/^html\b/i,"html").replace(/\s+/g," ")]),G(k,R)];case"comment":return[re(k,R),...x(R.originalText.slice(Q(k),ne(k)),f),X(k,R)];case"attribute":{if(k.value===null)return k.rawName;let I=P(k.value),q=L(I,"'"),U=L(I,'"'),z=q<U?"'":'"';return[k.rawName,"=",z,...x(z==='"'?I.replace(/"/g,"&quot;"):I.replace(/'/g,"&apos;")),z]}default:throw new Error(`Unexpected node type ${k.type}`)}}A.exports={preprocess:S,print:J,insertPragma:j,massageAstNode:B,embed:$}}}),zE=Te({"src/language-html/options.js"(m,A){Re();var p=ro(),b="HTML";A.exports={bracketSameLine:p.bracketSameLine,htmlWhitespaceSensitivity:{since:"1.15.0",category:b,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},singleAttributePerLine:p.singleAttributePerLine,vueIndentScriptAndStyle:{since:"1.19.0",category:b,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}}}}),QE=Te({"src/language-html/parsers.js"(){Re()}}),pp=Te({"node_modules/linguist-languages/data/HTML.json"(m,A){A.exports={name:"HTML",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".html",".hta",".htm",".html.hl",".inc",".xht",".xhtml"],languageId:146}}}),XE=Te({"node_modules/linguist-languages/data/Vue.json"(m,A){A.exports={name:"Vue",type:"markup",color:"#41b883",extensions:[".vue"],tmScope:"text.html.vue",aceMode:"html",languageId:391}}}),KE=Te({"src/language-html/index.js"(m,A){Re();var p=sa(),b=HE(),D=zE(),f=QE(),d=[p(pp(),()=>({name:"Angular",since:"1.15.0",parsers:["angular"],vscodeLanguageIds:["html"],extensions:[".component.html"],filenames:[]})),p(pp(),E=>({since:"1.15.0",parsers:["html"],vscodeLanguageIds:["html"],extensions:[...E.extensions,".mjml"]})),p(pp(),()=>({name:"Lightning Web Components",since:"1.17.0",parsers:["lwc"],vscodeLanguageIds:["html"],extensions:[],filenames:[]})),p(XE(),()=>({since:"1.10.0",parsers:["vue"],vscodeLanguageIds:["vue"]}))],h={html:b};A.exports={languages:d,printers:h,options:D,parsers:f}}}),ZE=Te({"src/language-yaml/pragma.js"(m,A){Re();function p(f){return/^\s*@(?:prettier|format)\s*$/.test(f)}function b(f){return/^\s*#[^\S\n]*@(?:prettier|format)\s*?(?:\n|$)/.test(f)}function D(f){return`# @format
254
-
255
- ${f}`}A.exports={isPragma:p,hasPragma:b,insertPragma:D}}}),eA=Te({"src/language-yaml/loc.js"(m,A){Re();function p(D){return D.position.start.offset}function b(D){return D.position.end.offset}A.exports={locStart:p,locEnd:b}}}),tA=Te({"src/language-yaml/embed.js"(m,A){Re();function p(b,D,f,d){if(b.getValue().type==="root"&&d.filepath&&/(?:[/\\]|^)\.(?:prettier|stylelint|lintstaged)rc$/.test(d.filepath))return f(d.originalText,Object.assign(Object.assign({},d),{},{parser:"json"}))}A.exports=p}}),so=Te({"src/language-yaml/utils.js"(m,A){Re();var{getLast:p,isNonEmptyArray:b}=De();function D(F,J){let w=0,R=F.stack.length-1;for(let y=0;y<R;y++){let k=F.stack[y];f(k)&&J(k)&&w++}return w}function f(F,J){return F&&typeof F.type=="string"&&(!J||J.includes(F.type))}function d(F,J,w){return J("children"in F?Object.assign(Object.assign({},F),{},{children:F.children.map(R=>d(R,J,F))}):F,w)}function h(F,J,w){Object.defineProperty(F,J,{get:w,enumerable:!1})}function E(F,J){let w=0,R=J.length;for(let y=F.position.end.offset-1;y<R;y++){let k=J[y];if(k===`
256
- `&&w++,w===1&&/\S/.test(k))return!1;if(w===2)return!0}return!1}function x(F){switch(F.getValue().type){case"tag":case"anchor":case"comment":return!1}let J=F.stack.length;for(let w=1;w<J;w++){let R=F.stack[w],y=F.stack[w-1];if(Array.isArray(y)&&typeof R=="number"&&R!==y.length-1)return!1}return!0}function B(F){return b(F.children)?B(p(F.children)):F}function L(F){return F.value.trim()==="prettier-ignore"}function P(F){let J=F.getValue();if(J.type==="documentBody"){let w=F.getParentNode();return X(w.head)&&L(p(w.head.endComments))}return j(J)&&L(p(J.leadingComments))}function C(F){return!b(F.children)&&!S(F)}function S(F){return j(F)||Q(F)||ne(F)||$(F)||X(F)}function j(F){return b(F==null?void 0:F.leadingComments)}function Q(F){return b(F==null?void 0:F.middleComments)}function ne(F){return F==null?void 0:F.indicatorComment}function $(F){return F==null?void 0:F.trailingComment}function X(F){return b(F==null?void 0:F.endComments)}function G(F){let J=[],w;for(let R of F.split(/( +)/))R!==" "?w===" "?J.push(R):J.push((J.pop()||"")+R):w===void 0&&J.unshift(""),w=R;return w===" "&&J.push((J.pop()||"")+" "),J[0]===""&&(J.shift(),J.unshift(" "+(J.shift()||""))),J}function re(F,J,w){let R=J.split(`
257
- `).map((y,k,I)=>k===0&&k===I.length-1?y:k!==0&&k!==I.length-1?y.trim():k===0?y.trimEnd():y.trimStart());return w.proseWrap==="preserve"?R.map(y=>y.length===0?[]:[y]):R.map(y=>y.length===0?[]:G(y)).reduce((y,k,I)=>I!==0&&R[I-1].length>0&&k.length>0&&!(F==="quoteDouble"&&p(p(y)).endsWith("\\"))?[...y.slice(0,-1),[...p(y),...k]]:[...y,k],[]).map(y=>w.proseWrap==="never"?[y.join(" ")]:y)}function ee(F,J){let{parentIndent:w,isLastDescendant:R,options:y}=J,k=F.position.start.line===F.position.end.line?"":y.originalText.slice(F.position.start.offset,F.position.end.offset).match(/^[^\n]*\n(.*)$/s)[1],I;if(F.indent===null){let z=k.match(/^(?<leadingSpace> *)[^\n\r ]/m);I=z?z.groups.leadingSpace.length:Number.POSITIVE_INFINITY}else I=F.indent-1+w;let q=k.split(`
258
- `).map(z=>z.slice(I));if(y.proseWrap==="preserve"||F.type==="blockLiteral")return U(q.map(z=>z.length===0?[]:[z]));return U(q.map(z=>z.length===0?[]:G(z)).reduce((z,ie,ce)=>ce!==0&&q[ce-1].length>0&&ie.length>0&&!/^\s/.test(ie[0])&&!/^\s|\s$/.test(p(z))?[...z.slice(0,-1),[...p(z),...ie]]:[...z,ie],[]).map(z=>z.reduce((ie,ce)=>ie.length>0&&/\s$/.test(p(ie))?[...ie.slice(0,-1),p(ie)+" "+ce]:[...ie,ce],[])).map(z=>y.proseWrap==="never"?[z.join(" ")]:z));function U(z){if(F.chomping==="keep")return p(z).length===0?z.slice(0,-1):z;let ie=0;for(let ce=z.length-1;ce>=0&&z[ce].length===0;ce--)ie++;return ie===0?z:ie>=2&&!R?z.slice(0,-(ie-1)):z.slice(0,-ie)}}function be(F){if(!F)return!0;switch(F.type){case"plain":case"quoteDouble":case"quoteSingle":case"alias":case"flowMapping":case"flowSequence":return!0;default:return!1}}A.exports={getLast:p,getAncestorCount:D,isNode:f,isEmptyNode:C,isInlineNode:be,mapNode:d,defineShortcut:h,isNextLineEmpty:E,isLastDescendantNode:x,getBlockValueLineContents:ee,getFlowScalarLineContents:re,getLastDescendantNode:B,hasPrettierIgnore:P,hasLeadingComments:j,hasMiddleComments:Q,hasIndicatorComment:ne,hasTrailingComment:$,hasEndComments:X}}}),nA=Te({"src/language-yaml/print-preprocess.js"(m,A){Re();var{defineShortcut:p,mapNode:b}=so();function D(d){return b(d,f)}function f(d){switch(d.type){case"document":p(d,"head",()=>d.children[0]),p(d,"body",()=>d.children[1]);break;case"documentBody":case"sequenceItem":case"flowSequenceItem":case"mappingKey":case"mappingValue":p(d,"content",()=>d.children[0]);break;case"mappingItem":case"flowMappingItem":p(d,"key",()=>d.children[0]),p(d,"value",()=>d.children[1]);break}return d}A.exports=D}}),xl=Te({"src/language-yaml/print/misc.js"(m,A){Re();var{builders:{softline:p,align:b}}=wn(),{hasEndComments:D,isNextLineEmpty:f,isNode:d}=so(),h=new WeakMap;function E(L,P){let C=L.getValue(),S=L.stack[0],j;return h.has(S)?j=h.get(S):(j=new Set,h.set(S,j)),!j.has(C.position.end.line)&&(j.add(C.position.end.line),f(C,P)&&!x(L.getParentNode()))?p:""}function x(L){return D(L)&&!d(L,["documentHead","documentBody","flowMapping","flowSequence"])}function B(L,P){return b(" ".repeat(L),P)}A.exports={alignWithSpaces:B,shouldPrintEndComments:x,printNextEmptyLine:E}}}),rA=Te({"src/language-yaml/print/flow-mapping-sequence.js"(m,A){Re();var{builders:{ifBreak:p,line:b,softline:D,hardline:f,join:d}}=wn(),{isEmptyNode:h,getLast:E,hasEndComments:x}=so(),{printNextEmptyLine:B,alignWithSpaces:L}=xl();function P(S,j,Q){let ne=S.getValue(),$=ne.type==="flowMapping",X=$?"{":"[",G=$?"}":"]",re=D;$&&ne.children.length>0&&Q.bracketSpacing&&(re=b);let ee=E(ne.children),be=ee&&ee.type==="flowMappingItem"&&h(ee.key)&&h(ee.value);return[X,L(Q.tabWidth,[re,C(S,j,Q),Q.trailingComma==="none"?"":p(","),x(ne)?[f,d(f,S.map(j,"endComments"))]:""]),be?"":re,G]}function C(S,j,Q){let ne=S.getValue();return S.map(($,X)=>[j(),X===ne.children.length-1?"":[",",b,ne.children[X].position.start.line!==ne.children[X+1].position.start.line?B($,Q.originalText):""]],"children")}A.exports={printFlowMapping:P,printFlowSequence:P}}}),iA=Te({"src/language-yaml/print/mapping-item.js"(m,A){Re();var{builders:{conditionalGroup:p,group:b,hardline:D,ifBreak:f,join:d,line:h}}=wn(),{hasLeadingComments:E,hasMiddleComments:x,hasTrailingComment:B,hasEndComments:L,isNode:P,isEmptyNode:C,isInlineNode:S}=so(),{alignWithSpaces:j}=xl();function Q(G,re,ee,be,F){let{key:J,value:w}=G,R=C(J),y=C(w);if(R&&y)return": ";let k=be("key"),I=$(G)?" ":"";if(y)return G.type==="flowMappingItem"&&re.type==="flowMapping"?k:G.type==="mappingItem"&&ne(J.content,F)&&!B(J.content)&&(!re.tag||re.tag.value!=="tag:yaml.org,2002:set")?[k,I,":"]:["? ",j(2,k)];let q=be("value");if(R)return[": ",j(2,q)];if(E(w)||!S(J.content))return["? ",j(2,k),D,d("",ee.map(be,"value","leadingComments").map(fe=>[fe,D])),": ",j(2,q)];if(X(J.content)&&!E(J.content)&&!x(J.content)&&!B(J.content)&&!L(J)&&!E(w.content)&&!x(w.content)&&!L(w)&&ne(w.content,F))return[k,I,": ",q];let U=Symbol("mappingKey"),z=b([f("? "),b(j(2,k),{id:U})]),ie=[D,": ",j(2,q)],ce=[I,":"];E(w.content)||L(w)&&w.content&&!P(w.content,["mapping","sequence"])||re.type==="mapping"&&B(J.content)&&S(w.content)||P(w.content,["mapping","sequence"])&&w.content.tag===null&&w.content.anchor===null?ce.push(D):w.content&&ce.push(h),ce.push(q);let ye=j(F.tabWidth,ce);return ne(J.content,F)&&!E(J.content)&&!x(J.content)&&!L(J)?p([[k,ye]]):p([[z,f(ie,ye,{groupId:U})]])}function ne(G,re){if(!G)return!0;switch(G.type){case"plain":case"quoteSingle":case"quoteDouble":break;case"alias":return!0;default:return!1}if(re.proseWrap==="preserve")return G.position.start.line===G.position.end.line;if(/\\$/m.test(re.originalText.slice(G.position.start.offset,G.position.end.offset)))return!1;switch(re.proseWrap){case"never":return!G.value.includes(`
259
- `);case"always":return!/[\n ]/.test(G.value);default:return!1}}function $(G){return G.key.content&&G.key.content.type==="alias"}function X(G){if(!G)return!0;switch(G.type){case"plain":case"quoteDouble":case"quoteSingle":return G.position.start.line===G.position.end.line;case"alias":return!0;default:return!1}}A.exports=Q}}),sA=Te({"src/language-yaml/print/block.js"(m,A){Re();var{builders:{dedent:p,dedentToRoot:b,fill:D,hardline:f,join:d,line:h,literalline:E,markAsRoot:x},utils:{getDocParts:B}}=wn(),{getAncestorCount:L,getBlockValueLineContents:P,hasIndicatorComment:C,isLastDescendantNode:S,isNode:j}=so(),{alignWithSpaces:Q}=xl();function ne($,X,G){let re=$.getValue(),ee=L($,R=>j(R,["sequence","mapping"])),be=S($),F=[re.type==="blockFolded"?">":"|"];re.indent!==null&&F.push(re.indent.toString()),re.chomping!=="clip"&&F.push(re.chomping==="keep"?"+":"-"),C(re)&&F.push(" ",X("indicatorComment"));let J=P(re,{parentIndent:ee,isLastDescendant:be,options:G}),w=[];for(let[R,y]of J.entries())R===0&&w.push(f),w.push(D(B(d(h,y)))),R!==J.length-1?w.push(y.length===0?f:x(E)):re.chomping==="keep"&&be&&w.push(b(y.length===0?f:E));return re.indent===null?F.push(p(Q(G.tabWidth,w))):F.push(b(Q(re.indent-1+ee,w))),F}A.exports=ne}}),aA=Te({"src/language-yaml/printer-yaml.js"(m,A){Re();var{builders:{breakParent:p,fill:b,group:D,hardline:f,join:d,line:h,lineSuffix:E,literalline:x},utils:{getDocParts:B,replaceTextEndOfLine:L}}=wn(),{isPreviousLineEmpty:P}=De(),{insertPragma:C,isPragma:S}=ZE(),{locStart:j}=eA(),Q=tA(),{getFlowScalarLineContents:ne,getLastDescendantNode:$,hasLeadingComments:X,hasMiddleComments:G,hasTrailingComment:re,hasEndComments:ee,hasPrettierIgnore:be,isLastDescendantNode:F,isNode:J,isInlineNode:w}=so(),R=nA(),{alignWithSpaces:y,printNextEmptyLine:k,shouldPrintEndComments:I}=xl(),{printFlowMapping:q,printFlowSequence:U}=rA(),z=iA(),ie=sA();function ce(ue,qe,rt){let Ge=ue.getValue(),mt=[];Ge.type!=="mappingValue"&&X(Ge)&&mt.push([d(f,ue.map(rt,"leadingComments")),f]);let{tag:ve,anchor:Ie}=Ge;ve&&mt.push(rt("tag")),ve&&Ie&&mt.push(" "),Ie&&mt.push(rt("anchor"));let pt="";J(Ge,["mapping","sequence","comment","directive","mappingItem","sequenceItem"])&&!F(ue)&&(pt=k(ue,qe.originalText)),(ve||Ie)&&(J(Ge,["sequence","mapping"])&&!G(Ge)?mt.push(f):mt.push(" ")),G(Ge)&&mt.push([Ge.middleComments.length===1?"":f,d(f,ue.map(rt,"middleComments")),f]);let dt=ue.getParentNode();return be(ue)?mt.push(L(qe.originalText.slice(Ge.position.start.offset,Ge.position.end.offset).trimEnd(),x)):mt.push(D(ye(Ge,dt,ue,qe,rt))),re(Ge)&&!J(Ge,["document","documentHead"])&&mt.push(E([Ge.type==="mappingValue"&&!Ge.content?"":" ",dt.type==="mappingKey"&&ue.getParentNode(2).type==="mapping"&&w(Ge)?"":p,rt("trailingComment")])),I(Ge)&&mt.push(y(Ge.type==="sequenceItem"?2:0,[f,d(f,ue.map(Jt=>[P(qe.originalText,Jt.getValue(),j)?f:"",rt()],"endComments"))])),mt.push(pt),mt}function ye(ue,qe,rt,Ge,mt){switch(ue.type){case"root":{let{children:ve}=ue,Ie=[];rt.each((dt,Jt)=>{let $e=ve[Jt],we=ve[Jt+1];Jt!==0&&Ie.push(f),Ie.push(mt()),_e($e,we)?(Ie.push(f,"..."),re($e)&&Ie.push(" ",mt("trailingComment"))):we&&!re(we.head)&&Ie.push(f,"---")},"children");let pt=$(ue);return(!J(pt,["blockLiteral","blockFolded"])||pt.chomping!=="keep")&&Ie.push(f),Ie}case"document":{let ve=qe.children[rt.getName()+1],Ie=[];return se(ue,ve,qe,Ge)==="head"&&((ue.head.children.length>0||ue.head.endComments.length>0)&&Ie.push(mt("head")),re(ue.head)?Ie.push(["---"," ",mt(["head","trailingComment"])]):Ie.push("---")),fe(ue)&&Ie.push(mt("body")),d(f,Ie)}case"documentHead":return d(f,[...rt.map(mt,"children"),...rt.map(mt,"endComments")]);case"documentBody":{let{children:ve,endComments:Ie}=ue,pt="";if(ve.length>0&&Ie.length>0){let dt=$(ue);J(dt,["blockFolded","blockLiteral"])?dt.chomping!=="keep"&&(pt=[f,f]):pt=f}return[d(f,rt.map(mt,"children")),pt,d(f,rt.map(mt,"endComments"))]}case"directive":return["%",d(" ",[ue.name,...ue.parameters])];case"comment":return["#",ue.value];case"alias":return["*",ue.value];case"tag":return Ge.originalText.slice(ue.position.start.offset,ue.position.end.offset);case"anchor":return["&",ue.value];case"plain":return Ue(ue.type,Ge.originalText.slice(ue.position.start.offset,ue.position.end.offset),Ge);case"quoteDouble":case"quoteSingle":{let ve="'",Ie='"',pt=Ge.originalText.slice(ue.position.start.offset+1,ue.position.end.offset-1);if(ue.type==="quoteSingle"&&pt.includes("\\")||ue.type==="quoteDouble"&&/\\[^"]/.test(pt)){let Jt=ue.type==="quoteDouble"?Ie:ve;return[Jt,Ue(ue.type,pt,Ge),Jt]}if(pt.includes(Ie))return[ve,Ue(ue.type,ue.type==="quoteDouble"?pt.replace(/\\"/g,Ie).replace(/'/g,ve.repeat(2)):pt,Ge),ve];if(pt.includes(ve))return[Ie,Ue(ue.type,ue.type==="quoteSingle"?pt.replace(/''/g,ve):pt,Ge),Ie];let dt=Ge.singleQuote?ve:Ie;return[dt,Ue(ue.type,pt,Ge),dt]}case"blockFolded":case"blockLiteral":return ie(rt,mt,Ge);case"mapping":case"sequence":return d(f,rt.map(mt,"children"));case"sequenceItem":return["- ",y(2,ue.content?mt("content"):"")];case"mappingKey":case"mappingValue":return ue.content?mt("content"):"";case"mappingItem":case"flowMappingItem":return z(ue,qe,rt,mt,Ge);case"flowMapping":return q(rt,mt,Ge);case"flowSequence":return U(rt,mt,Ge);case"flowSequenceItem":return mt("content");default:throw new Error(`Unexpected node type ${ue.type}`)}}function fe(ue){return ue.body.children.length>0||ee(ue.body)}function _e(ue,qe){return re(ue)||qe&&(qe.head.children.length>0||ee(qe.head))}function se(ue,qe,rt,Ge){return rt.children[0]===ue&&/---(?:\s|$)/.test(Ge.originalText.slice(j(ue),j(ue)+4))||ue.head.children.length>0||ee(ue.head)||re(ue.head)?"head":_e(ue,qe)?!1:qe?"root":!1}function Ue(ue,qe,rt){let Ge=ne(ue,qe,rt);return d(f,Ge.map(mt=>b(B(d(h,mt)))))}function ge(ue,qe){if(J(qe))switch(delete qe.position,qe.type){case"comment":if(S(qe.value))return null;break;case"quoteDouble":case"quoteSingle":qe.type="quote";break}}A.exports={preprocess:R,embed:Q,print:ce,massageAstNode:ge,insertPragma:C}}}),oA=Te({"src/language-yaml/options.js"(m,A){Re();var p=ro();A.exports={bracketSpacing:p.bracketSpacing,singleQuote:p.singleQuote,proseWrap:p.proseWrap}}}),uA=Te({"src/language-yaml/parsers.js"(){Re()}}),lA=Te({"node_modules/linguist-languages/data/YAML.json"(m,A){A.exports={name:"YAML",type:"data",color:"#cb171e",tmScope:"source.yaml",aliases:["yml"],extensions:[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yaml.sed",".yml.mysql"],filenames:[".clang-format",".clang-tidy",".gemrc","CITATION.cff","glide.lock","yarn.lock"],aceMode:"yaml",codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",languageId:407}}}),cA=Te({"src/language-yaml/index.js"(m,A){Re();var p=sa(),b=aA(),D=oA(),f=uA(),d=[p(lA(),h=>({since:"1.14.0",parsers:["yaml"],vscodeLanguageIds:["yaml","ansible","home-assistant"],filenames:[...h.filenames.filter(E=>E!=="yarn.lock"),".prettierrc",".stylelintrc",".lintstagedrc"]}))];A.exports={languages:d,printers:{yaml:b},options:D,parsers:f}}}),fA=Te({"src/languages.js"(m,A){Re(),A.exports=[G2(),lE(),yE(),xE(),kE(),KE(),cA()]}});Re();var{version:pA}=Zr(),ao=u2(),{getSupportInfo:dA}=Tt(),hA=l2(),mA=fA(),gA=wn();function oa(m){let A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return function(){for(var p=arguments.length,b=new Array(p),D=0;D<p;D++)b[D]=arguments[D];let f=b[A]||{},d=f.plugins||[];return b[A]=Object.assign(Object.assign({},f),{},{plugins:[...mA,...Array.isArray(d)?d:Object.values(d)]}),m(...b)}}var dp=oa(ao.formatWithCursor);ot.exports={formatWithCursor:dp,format(m,A){return dp(m,A).formatted},check(m,A){let{formatted:p}=dp(m,A);return p===m},doc:gA,getSupportInfo:oa(dA,0),version:pA,util:hA,__debug:{parse:oa(ao.parse),formatAST:oa(ao.formatAST),formatDoc:oa(ao.formatDoc),printToDoc:oa(ao.printToDoc),printDocToString:oa(ao.printDocToString)}}});return Rf()})})(e0);var KD=e0.exports,t0={exports:{}};(function(e,t){(function(n){e.exports=n()})(function(){var n=(i,s)=>()=>(s||i((s={exports:{}}).exports,s),s.exports),r=n((i,s)=>{var a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,v=(Y,g)=>function(){return Y&&(g=(0,Y[u(Y)[0]])(Y=0)),g},c=(Y,g)=>function(){return g||(0,Y[u(Y)[0]])((g={exports:{}}).exports,g),g.exports},N=(Y,g)=>{for(var W in g)a(Y,W,{get:g[W],enumerable:!0})},_=(Y,g,W,Se)=>{if(g&&typeof g=="object"||typeof g=="function")for(let Pe of u(g))!l.call(Y,Pe)&&Pe!==W&&a(Y,Pe,{get:()=>g[Pe],enumerable:!(Se=o(g,Pe))||Se.enumerable});return Y},Z=Y=>_(a({},"__esModule",{value:!0}),Y),te,M=v({"<define:process>"(){te={env:{},argv:[]}}}),he=c({"src/common/parser-create-error.js"(Y,g){M();function W(Se,Pe){let Be=new SyntaxError(Se+" ("+Pe.start.line+":"+Pe.start.column+")");return Be.loc=Pe,Be}g.exports=W}}),Ae=c({"src/language-yaml/pragma.js"(Y,g){M();function W(Be){return/^\s*@(?:prettier|format)\s*$/.test(Be)}function Se(Be){return/^\s*#[^\S\n]*@(?:prettier|format)\s*?(?:\n|$)/.test(Be)}function Pe(Be){return`# @format
260
-
261
- ${Be}`}g.exports={isPragma:W,hasPragma:Se,insertPragma:Pe}}}),Fe=c({"src/language-yaml/loc.js"(Y,g){M();function W(Pe){return Pe.position.start.offset}function Se(Pe){return Pe.position.end.offset}g.exports={locStart:W,locEnd:Se}}}),ke={};N(ke,{__assign:()=>qi,__asyncDelegator:()=>Wn,__asyncGenerator:()=>Un,__asyncValues:()=>$r,__await:()=>En,__awaiter:()=>Xe,__classPrivateFieldGet:()=>us,__classPrivateFieldSet:()=>Ga,__createBinding:()=>me,__decorate:()=>Qe,__exportStar:()=>He,__extends:()=>ae,__generator:()=>ze,__importDefault:()=>Io,__importStar:()=>vi,__makeTemplateObject:()=>ks,__metadata:()=>Ve,__param:()=>Dt,__read:()=>jt,__rest:()=>Ee,__spread:()=>Vt,__spreadArrays:()=>en,__values:()=>xt});function ae(Y,g){Ps(Y,g);function W(){this.constructor=Y}Y.prototype=g===null?Object.create(g):(W.prototype=g.prototype,new W)}function Ee(Y,g){var W={};for(var Se in Y)Object.prototype.hasOwnProperty.call(Y,Se)&&g.indexOf(Se)<0&&(W[Se]=Y[Se]);if(Y!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,Se=Object.getOwnPropertySymbols(Y);Pe<Se.length;Pe++)g.indexOf(Se[Pe])<0&&Object.prototype.propertyIsEnumerable.call(Y,Se[Pe])&&(W[Se[Pe]]=Y[Se[Pe]]);return W}function Qe(Y,g,W,Se){var Pe=arguments.length,Be=Pe<3?g:Se===null?Se=Object.getOwnPropertyDescriptor(g,W):Se,et;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Be=Reflect.decorate(Y,g,W,Se);else for(var gt=Y.length-1;gt>=0;gt--)(et=Y[gt])&&(Be=(Pe<3?et(Be):Pe>3?et(g,W,Be):et(g,W))||Be);return Pe>3&&Be&&Object.defineProperty(g,W,Be),Be}function Dt(Y,g){return function(W,Se){g(W,Se,Y)}}function Ve(Y,g){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(Y,g)}function Xe(Y,g,W,Se){function Pe(Be){return Be instanceof W?Be:new W(function(et){et(Be)})}return new(W||(W=Promise))(function(Be,et){function gt(bt){try{at(Se.next(bt))}catch(Tt){et(Tt)}}function Rt(bt){try{at(Se.throw(bt))}catch(Tt){et(Tt)}}function at(bt){bt.done?Be(bt.value):Pe(bt.value).then(gt,Rt)}at((Se=Se.apply(Y,g||[])).next())})}function ze(Y,g){var W={label:0,sent:function(){if(Be[0]&1)throw Be[1];return Be[1]},trys:[],ops:[]},Se,Pe,Be,et;return et={next:gt(0),throw:gt(1),return:gt(2)},typeof Symbol=="function"&&(et[Symbol.iterator]=function(){return this}),et;function gt(at){return function(bt){return Rt([at,bt])}}function Rt(at){if(Se)throw new TypeError("Generator is already executing.");for(;W;)try{if(Se=1,Pe&&(Be=at[0]&2?Pe.return:at[0]?Pe.throw||((Be=Pe.return)&&Be.call(Pe),0):Pe.next)&&!(Be=Be.call(Pe,at[1])).done)return Be;switch(Pe=0,Be&&(at=[at[0]&2,Be.value]),at[0]){case 0:case 1:Be=at;break;case 4:return W.label++,{value:at[1],done:!1};case 5:W.label++,Pe=at[1],at=[0];continue;case 7:at=W.ops.pop(),W.trys.pop();continue;default:if(Be=W.trys,!(Be=Be.length>0&&Be[Be.length-1])&&(at[0]===6||at[0]===2)){W=0;continue}if(at[0]===3&&(!Be||at[1]>Be[0]&&at[1]<Be[3])){W.label=at[1];break}if(at[0]===6&&W.label<Be[1]){W.label=Be[1],Be=at;break}if(Be&&W.label<Be[2]){W.label=Be[2],W.ops.push(at);break}Be[2]&&W.ops.pop(),W.trys.pop();continue}at=g.call(Y,W)}catch(bt){at=[6,bt],Pe=0}finally{Se=Be=0}if(at[0]&5)throw at[1];return{value:at[0]?at[1]:void 0,done:!0}}}function me(Y,g,W,Se){Se===void 0&&(Se=W),Y[Se]=g[W]}function He(Y,g){for(var W in Y)W!=="default"&&!g.hasOwnProperty(W)&&(g[W]=Y[W])}function xt(Y){var g=typeof Symbol=="function"&&Symbol.iterator,W=g&&Y[g],Se=0;if(W)return W.call(Y);if(Y&&typeof Y.length=="number")return{next:function(){return Y&&Se>=Y.length&&(Y=void 0),{value:Y&&Y[Se++],done:!Y}}};throw new TypeError(g?"Object is not iterable.":"Symbol.iterator is not defined.")}function jt(Y,g){var W=typeof Symbol=="function"&&Y[Symbol.iterator];if(!W)return Y;var Se=W.call(Y),Pe,Be=[],et;try{for(;(g===void 0||g-- >0)&&!(Pe=Se.next()).done;)Be.push(Pe.value)}catch(gt){et={error:gt}}finally{try{Pe&&!Pe.done&&(W=Se.return)&&W.call(Se)}finally{if(et)throw et.error}}return Be}function Vt(){for(var Y=[],g=0;g<arguments.length;g++)Y=Y.concat(jt(arguments[g]));return Y}function en(){for(var Y=0,g=0,W=arguments.length;g<W;g++)Y+=arguments[g].length;for(var Se=Array(Y),Pe=0,g=0;g<W;g++)for(var Be=arguments[g],et=0,gt=Be.length;et<gt;et++,Pe++)Se[Pe]=Be[et];return Se}function En(Y){return this instanceof En?(this.v=Y,this):new En(Y)}function Un(Y,g,W){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Se=W.apply(Y,g||[]),Pe,Be=[];return Pe={},et("next"),et("throw"),et("return"),Pe[Symbol.asyncIterator]=function(){return this},Pe;function et(It){Se[It]&&(Pe[It]=function(Lt){return new Promise(function(Gt,Wt){Be.push([It,Lt,Gt,Wt])>1||gt(It,Lt)})})}function gt(It,Lt){try{Rt(Se[It](Lt))}catch(Gt){Tt(Be[0][3],Gt)}}function Rt(It){It.value instanceof En?Promise.resolve(It.value.v).then(at,bt):Tt(Be[0][2],It)}function at(It){gt("next",It)}function bt(It){gt("throw",It)}function Tt(It,Lt){It(Lt),Be.shift(),Be.length&&gt(Be[0][0],Be[0][1])}}function Wn(Y){var g,W;return g={},Se("next"),Se("throw",function(Pe){throw Pe}),Se("return"),g[Symbol.iterator]=function(){return this},g;function Se(Pe,Be){g[Pe]=Y[Pe]?function(et){return(W=!W)?{value:En(Y[Pe](et)),done:Pe==="return"}:Be?Be(et):et}:Be}}function $r(Y){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var g=Y[Symbol.asyncIterator],W;return g?g.call(Y):(Y=typeof xt=="function"?xt(Y):Y[Symbol.iterator](),W={},Se("next"),Se("throw"),Se("return"),W[Symbol.asyncIterator]=function(){return this},W);function Se(Be){W[Be]=Y[Be]&&function(et){return new Promise(function(gt,Rt){et=Y[Be](et),Pe(gt,Rt,et.done,et.value)})}}function Pe(Be,et,gt,Rt){Promise.resolve(Rt).then(function(at){Be({value:at,done:gt})},et)}}function ks(Y,g){return Object.defineProperty?Object.defineProperty(Y,"raw",{value:g}):Y.raw=g,Y}function vi(Y){if(Y&&Y.__esModule)return Y;var g={};if(Y!=null)for(var W in Y)Object.hasOwnProperty.call(Y,W)&&(g[W]=Y[W]);return g.default=Y,g}function Io(Y){return Y&&Y.__esModule?Y:{default:Y}}function us(Y,g){if(!g.has(Y))throw new TypeError("attempted to get private field on non-instance");return g.get(Y)}function Ga(Y,g,W){if(!g.has(Y))throw new TypeError("attempted to set private field on non-instance");return g.set(Y,W),W}var Ps,qi,tr=v({"node_modules/tslib/tslib.es6.js"(){M(),Ps=function(Y,g){return Ps=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(W,Se){W.__proto__=Se}||function(W,Se){for(var Pe in Se)Se.hasOwnProperty(Pe)&&(W[Pe]=Se[Pe])},Ps(Y,g)},qi=function(){return qi=Object.assign||function(Y){for(var g,W=1,Se=arguments.length;W<Se;W++){g=arguments[W];for(var Pe in g)Object.prototype.hasOwnProperty.call(g,Pe)&&(Y[Pe]=g[Pe])}return Y},qi.apply(this,arguments)}}}),Xu=c({"node_modules/yaml-unist-parser/node_modules/lines-and-columns/build/index.js"(Y){M(),Y.__esModule=!0,Y.LinesAndColumns=void 0;var g=`
262
- `,W="\r",Se=function(){function Pe(Be){this.string=Be;for(var et=[0],gt=0;gt<Be.length;)switch(Be[gt]){case g:gt+=g.length,et.push(gt);break;case W:gt+=W.length,Be[gt]===g&&(gt+=g.length),et.push(gt);break;default:gt++;break}this.offsets=et}return Pe.prototype.locationForIndex=function(Be){if(Be<0||Be>this.string.length)return null;for(var et=0,gt=this.offsets;gt[et+1]<=Be;)et++;var Rt=Be-gt[et];return{line:et,column:Rt}},Pe.prototype.indexForLocation=function(Be){var et=Be.line,gt=Be.column;return et<0||et>=this.offsets.length||gt<0||gt>this.lengthOfLine(et)?null:this.offsets[et]+gt},Pe.prototype.lengthOfLine=function(Be){var et=this.offsets[Be],gt=Be===this.offsets.length-1?this.string.length:this.offsets[Be+1];return gt-et},Pe}();Y.LinesAndColumns=Se,Y.default=Se}}),Ef=c({"node_modules/yaml-unist-parser/lib/utils/define-parents.js"(Y){M(),Y.__esModule=!0;function g(W,Se){Se===void 0&&(Se=null),"children"in W&&W.children.forEach(function(Pe){return g(Pe,W)}),"anchor"in W&&W.anchor&&g(W.anchor,W),"tag"in W&&W.tag&&g(W.tag,W),"leadingComments"in W&&W.leadingComments.forEach(function(Pe){return g(Pe,W)}),"middleComments"in W&&W.middleComments.forEach(function(Pe){return g(Pe,W)}),"indicatorComment"in W&&W.indicatorComment&&g(W.indicatorComment,W),"trailingComment"in W&&W.trailingComment&&g(W.trailingComment,W),"endComments"in W&&W.endComments.forEach(function(Pe){return g(Pe,W)}),Object.defineProperty(W,"_parent",{value:Se,enumerable:!1})}Y.defineParents=g}}),Ja=c({"node_modules/yaml-unist-parser/lib/utils/get-point-text.js"(Y){M(),Y.__esModule=!0;function g(W){return W.line+":"+W.column}Y.getPointText=g}}),Af=c({"node_modules/yaml-unist-parser/lib/attach.js"(Y){M(),Y.__esModule=!0;var g=Ef(),W=Ja();function Se(at){g.defineParents(at);var bt=Pe(at),Tt=at.children.slice();at.comments.sort(function(It,Lt){return It.position.start.offset-Lt.position.end.offset}).filter(function(It){return!It._parent}).forEach(function(It){for(;Tt.length>1&&It.position.start.line>Tt[0].position.end.line;)Tt.shift();et(It,bt,Tt[0])})}Y.attachComments=Se;function Pe(at){for(var bt=Array.from(new Array(at.position.end.line),function(){return{}}),Tt=0,It=at.comments;Tt<It.length;Tt++){var Lt=It[Tt];bt[Lt.position.start.line-1].comment=Lt}return Be(bt,at),bt}function Be(at,bt){if(bt.position.start.offset!==bt.position.end.offset){if("leadingComments"in bt){var Tt=bt.position.start,It=at[Tt.line-1].leadingAttachableNode;(!It||Tt.column<It.position.start.column)&&(at[Tt.line-1].leadingAttachableNode=bt)}if("trailingComment"in bt&&bt.position.end.column>1&&bt.type!=="document"&&bt.type!=="documentHead"){var Lt=bt.position.end,Gt=at[Lt.line-1].trailingAttachableNode;(!Gt||Lt.column>=Gt.position.end.column)&&(at[Lt.line-1].trailingAttachableNode=bt)}if(bt.type!=="root"&&bt.type!=="document"&&bt.type!=="documentHead"&&bt.type!=="documentBody")for(var Wt=bt.position,Tt=Wt.start,Lt=Wt.end,Xt=[Lt.line].concat(Tt.line===Lt.line?[]:Tt.line),Dn=0,De=Xt;Dn<De.length;Dn++){var K=De[Dn],O=at[K-1].trailingNode;(!O||Lt.column>=O.position.end.column)&&(at[K-1].trailingNode=bt)}"children"in bt&&bt.children.forEach(function(H){Be(at,H)})}}function et(at,bt,Tt){var It=at.position.start.line,Lt=bt[It-1].trailingAttachableNode;if(Lt){if(Lt.trailingComment)throw new Error("Unexpected multiple trailing comment at "+W.getPointText(at.position.start));g.defineParents(at,Lt),Lt.trailingComment=at;return}for(var Gt=It;Gt>=Tt.position.start.line;Gt--){var Wt=bt[Gt-1].trailingNode,Xt=void 0;if(Wt)Xt=Wt;else if(Gt!==It&&bt[Gt-1].comment)Xt=bt[Gt-1].comment._parent;else continue;if((Xt.type==="sequence"||Xt.type==="mapping")&&(Xt=Xt.children[0]),Xt.type==="mappingItem"){var Dn=Xt.children,De=Dn[0],K=Dn[1];Xt=Rt(De)?De:K}for(;;){if(gt(Xt,at)){g.defineParents(at,Xt),Xt.endComments.push(at);return}if(!Xt._parent)break;Xt=Xt._parent}break}for(var Gt=It+1;Gt<=Tt.position.end.line;Gt++){var O=bt[Gt-1].leadingAttachableNode;if(O){g.defineParents(at,O),O.leadingComments.push(at);return}}var H=Tt.children[1];g.defineParents(at,H),H.endComments.push(at)}function gt(at,bt){if(at.position.start.offset<bt.position.start.offset&&at.position.end.offset>bt.position.end.offset)switch(at.type){case"flowMapping":case"flowSequence":return at.children.length===0||bt.position.start.line>at.children[at.children.length-1].position.end.line}if(bt.position.end.offset<at.position.end.offset)return!1;switch(at.type){case"sequenceItem":return bt.position.start.column>at.position.start.column;case"mappingKey":case"mappingValue":return bt.position.start.column>at._parent.position.start.column&&(at.children.length===0||at.children.length===1&&at.children[0].type!=="blockFolded"&&at.children[0].type!=="blockLiteral")&&(at.type==="mappingValue"||Rt(at));default:return!1}}function Rt(at){return at.position.start!==at.position.end&&(at.children.length===0||at.position.start.offset!==at.children[0].position.start.offset)}}}),Tr=c({"node_modules/yaml-unist-parser/lib/factories/node.js"(Y){M(),Y.__esModule=!0;function g(W,Se){return{type:W,position:Se}}Y.createNode=g}}),Ku=c({"node_modules/yaml-unist-parser/lib/factories/root.js"(Y){M(),Y.__esModule=!0;var g=(tr(),Z(ke)),W=Tr();function Se(Pe,Be,et){return g.__assign(g.__assign({},W.createNode("root",Pe)),{children:Be,comments:et})}Y.createRoot=Se}}),Cf=c({"node_modules/yaml-unist-parser/lib/preprocess.js"(Y){M(),Y.__esModule=!0;function g(W){switch(W.type){case"DOCUMENT":for(var Se=W.contents.length-1;Se>=0;Se--)W.contents[Se].type==="BLANK_LINE"?W.contents.splice(Se,1):g(W.contents[Se]);for(var Se=W.directives.length-1;Se>=0;Se--)W.directives[Se].type==="BLANK_LINE"&&W.directives.splice(Se,1);break;case"FLOW_MAP":case"FLOW_SEQ":case"MAP":case"SEQ":for(var Se=W.items.length-1;Se>=0;Se--){var Pe=W.items[Se];"char"in Pe||(Pe.type==="BLANK_LINE"?W.items.splice(Se,1):g(Pe))}break;case"MAP_KEY":case"MAP_VALUE":case"SEQ_ITEM":W.node&&g(W.node);break;case"ALIAS":case"BLANK_LINE":case"BLOCK_FOLDED":case"BLOCK_LITERAL":case"COMMENT":case"DIRECTIVE":case"PLAIN":case"QUOTE_DOUBLE":case"QUOTE_SINGLE":break;default:throw new Error("Unexpected node type "+JSON.stringify(W.type))}}Y.removeCstBlankLine=g}}),ls=c({"node_modules/yaml-unist-parser/lib/factories/leading-comment-attachable.js"(Y){M(),Y.__esModule=!0;function g(){return{leadingComments:[]}}Y.createLeadingCommentAttachable=g}}),Ya=c({"node_modules/yaml-unist-parser/lib/factories/trailing-comment-attachable.js"(Y){M(),Y.__esModule=!0;function g(W){return W===void 0&&(W=null),{trailingComment:W}}Y.createTrailingCommentAttachable=g}}),cs=c({"node_modules/yaml-unist-parser/lib/factories/comment-attachable.js"(Y){M(),Y.__esModule=!0;var g=(tr(),Z(ke)),W=ls(),Se=Ya();function Pe(){return g.__assign(g.__assign({},W.createLeadingCommentAttachable()),Se.createTrailingCommentAttachable())}Y.createCommentAttachable=Pe}}),Oo=c({"node_modules/yaml-unist-parser/lib/factories/alias.js"(Y){M(),Y.__esModule=!0;var g=(tr(),Z(ke)),W=cs(),Se=Tr();function Pe(Be,et,gt){return g.__assign(g.__assign(g.__assign(g.__assign({},Se.createNode("alias",Be)),W.createCommentAttachable()),et),{value:gt})}Y.createAlias=Pe}}),xf=c({"node_modules/yaml-unist-parser/lib/transforms/alias.js"(Y){M(),Y.__esModule=!0;var g=Oo();function W(Se,Pe){var Be=Se.cstNode;return g.createAlias(Pe.transformRange({origStart:Be.valueRange.origStart-1,origEnd:Be.valueRange.origEnd}),Pe.transformContent(Se),Be.rawValue)}Y.transformAlias=W}}),Sf=c({"node_modules/yaml-unist-parser/lib/factories/block-folded.js"(Y){M(),Y.__esModule=!0;var g=(tr(),Z(ke));function W(Se){return g.__assign(g.__assign({},Se),{type:"blockFolded"})}Y.createBlockFolded=W}}),ea=c({"node_modules/yaml-unist-parser/lib/factories/block-value.js"(Y){M(),Y.__esModule=!0;var g=(tr(),Z(ke)),W=ls(),Se=Tr();function Pe(Be,et,gt,Rt,at,bt){return g.__assign(g.__assign(g.__assign(g.__assign({},Se.createNode("blockValue",Be)),W.createLeadingCommentAttachable()),et),{chomping:gt,indent:Rt,value:at,indicatorComment:bt})}Y.createBlockValue=Pe}}),Zu=c({"node_modules/yaml-unist-parser/lib/constants.js"(Y){M(),Y.__esModule=!0,function(g){g.Tag="!",g.Anchor="&",g.Comment="#"}(Y.PropLeadingCharacter||(Y.PropLeadingCharacter={}))}}),wf=c({"node_modules/yaml-unist-parser/lib/factories/anchor.js"(Y){M(),Y.__esModule=!0;var g=(tr(),Z(ke)),W=Tr();function Se(Pe,Be){return g.__assign(g.__assign({},W.createNode("anchor",Pe)),{value:Be})}Y.createAnchor=Se}}),jo=c({"node_modules/yaml-unist-parser/lib/factories/comment.js"(Y){M(),Y.__esModule=!0;var g=(tr(),Z(ke)),W=Tr();function Se(Pe,Be){return g.__assign(g.__assign({},W.createNode("comment",Pe)),{value:Be})}Y.createComment=Se}}),Ff=c({"node_modules/yaml-unist-parser/lib/factories/content.js"(Y){M(),Y.__esModule=!0;function g(W,Se,Pe){return{anchor:Se,tag:W,middleComments:Pe}}Y.createContent=g}}),Nf=c({"node_modules/yaml-unist-parser/lib/factories/tag.js"(Y){M(),Y.__esModule=!0;var g=(tr(),Z(ke)),W=Tr();function Se(Pe,Be){return g.__assign(g.__assign({},W.createNode("tag",Pe)),{value:Be})}Y.createTag=Se}}),el=c({"node_modules/yaml-unist-parser/lib/transforms/content.js"(Y){M(),Y.__esModule=!0;var g=Zu(),W=wf(),Se=jo(),Pe=Ff(),Be=Nf();function et(gt,Rt,at){at===void 0&&(at=function(){return!1});for(var bt=gt.cstNode,Tt=[],It=null,Lt=null,Gt=null,Wt=0,Xt=bt.props;Wt<Xt.length;Wt++){var Dn=Xt[Wt],De=Rt.text[Dn.origStart];switch(De){case g.PropLeadingCharacter.Tag:It=It||Dn,Lt=Be.createTag(Rt.transformRange(Dn),gt.tag);break;case g.PropLeadingCharacter.Anchor:It=It||Dn,Gt=W.createAnchor(Rt.transformRange(Dn),bt.anchor);break;case g.PropLeadingCharacter.Comment:{var K=Se.createComment(Rt.transformRange(Dn),Rt.text.slice(Dn.origStart+1,Dn.origEnd));Rt.comments.push(K),!at(K)&&It&&It.origEnd<=Dn.origStart&&Dn.origEnd<=bt.valueRange.origStart&&Tt.push(K);break}default:throw new Error("Unexpected leading character "+JSON.stringify(De))}}return Pe.createContent(Lt,Gt,Tt)}Y.transformContent=et}}),tl=c({"node_modules/yaml-unist-parser/lib/transforms/block-value.js"(Y){M(),Y.__esModule=!0;var g=ea(),W=Ja(),Se=el(),Pe;(function(et){et.CLIP="clip",et.STRIP="strip",et.KEEP="keep"})(Pe||(Pe={}));function Be(et,gt){var Rt=et.cstNode,at=1,bt=Rt.chomping==="CLIP"?0:1,Tt=Rt.header.origEnd-Rt.header.origStart,It=Tt-at-bt!==0,Lt=gt.transformRange({origStart:Rt.header.origStart,origEnd:Rt.valueRange.origEnd}),Gt=null,Wt=Se.transformContent(et,gt,function(Xt){var Dn=Lt.start.offset<Xt.position.start.offset&&Xt.position.end.offset<Lt.end.offset;if(!Dn)return!1;if(Gt)throw new Error("Unexpected multiple indicator comments at "+W.getPointText(Xt.position.start));return Gt=Xt,!0});return g.createBlockValue(Lt,Wt,Pe[Rt.chomping],It?Rt.blockIndent:null,Rt.strValue,Gt)}Y.transformAstBlockValue=Be}}),Tf=c({"node_modules/yaml-unist-parser/lib/transforms/block-folded.js"(Y){M(),Y.__esModule=!0;var g=Sf(),W=tl();function Se(Pe,Be){return g.createBlockFolded(W.transformAstBlockValue(Pe,Be))}Y.transformBlockFolded=Se}}),Ha=c({"node_modules/yaml-unist-parser/lib/factories/block-literal.js"(Y){M(),Y.__esModule=!0;var g=(tr(),Z(ke));function W(Se){return g.__assign(g.__assign({},Se),{type:"blockLiteral"})}Y.createBlockLiteral=W}}),nl=c({"node_modules/yaml-unist-parser/lib/transforms/block-literal.js"(Y){M(),Y.__esModule=!0;var g=Ha(),W=tl();function Se(Pe,Be){return g.createBlockLiteral(W.transformAstBlockValue(Pe,Be))}Y.transformBlockLiteral=Se}}),_f=c({"node_modules/yaml-unist-parser/lib/transforms/comment.js"(Y){M(),Y.__esModule=!0;var g=jo();function W(Se,Pe){return g.createComment(Pe.transformRange(Se.range),Se.comment)}Y.transformComment=W}}),Lf=c({"node_modules/yaml-unist-parser/lib/factories/directive.js"(Y){M(),Y.__esModule=!0;var g=(tr(),Z(ke)),W=cs(),Se=Tr();function Pe(Be,et,gt){return g.__assign(g.__assign(g.__assign({},Se.createNode("directive",Be)),W.createCommentAttachable()),{name:et,parameters:gt})}Y.createDirective=Pe}}),za=c({"node_modules/yaml-unist-parser/lib/utils/extract-prop-comments.js"(Y){M(),Y.__esModule=!0;var g=Zu(),W=jo();function Se(Pe,Be){for(var et=0,gt=Pe.props;et<gt.length;et++){var Rt=gt[et],at=Be.text[Rt.origStart];switch(at){case g.PropLeadingCharacter.Comment:Be.comments.push(W.createComment(Be.transformRange(Rt),Be.text.slice(Rt.origStart+1,Rt.origEnd)));break;default:throw new Error("Unexpected leading character "+JSON.stringify(at))}}}Y.extractPropComments=Se}}),rl=c({"node_modules/yaml-unist-parser/lib/transforms/directive.js"(Y){M(),Y.__esModule=!0;var g=Lf(),W=za();function Se(Pe,Be){return W.extractPropComments(Pe,Be),g.createDirective(Be.transformRange(Pe.range),Pe.name,Pe.parameters)}Y.transformDirective=Se}}),kf=c({"node_modules/yaml-unist-parser/lib/factories/document.js"(Y){M(),Y.__esModule=!0;var g=(tr(),Z(ke)),W=Tr(),Se=Ya();function Pe(Be,et,gt,Rt){return g.__assign(g.__assign(g.__assign({},W.createNode("document",Be)),Se.createTrailingCommentAttachable(Rt)),{children:[et,gt]})}Y.createDocument=Pe}}),fs=c({"node_modules/yaml-unist-parser/lib/factories/position.js"(Y){M(),Y.__esModule=!0;function g(Se,Pe){return{start:Se,end:Pe}}Y.createPosition=g;function W(Se){return{start:Se,end:Se}}Y.createEmptyPosition=W}}),ps=c({"node_modules/yaml-unist-parser/lib/factories/end-comment-attachable.js"(Y){M(),Y.__esModule=!0;function g(W){return W===void 0&&(W=[]),{endComments:W}}Y.createEndCommentAttachable=g}}),Pf=c({"node_modules/yaml-unist-parser/lib/factories/document-body.js"(Y){M(),Y.__esModule=!0;var g=(tr(),Z(ke)),W=ps(),Se=Tr();function Pe(Be,et,gt){return g.__assign(g.__assign(g.__assign({},Se.createNode("documentBody",Be)),W.createEndCommentAttachable(gt)),{children:et?[et]:[]})}Y.createDocumentBody=Pe}}),ds=c({"node_modules/yaml-unist-parser/lib/utils/get-last.js"(Y){M(),Y.__esModule=!0;function g(W){return W[W.length-1]}Y.getLast=g}}),il=c({"node_modules/yaml-unist-parser/lib/utils/get-match-index.js"(Y){M(),Y.__esModule=!0;function g(W,Se){var Pe=W.match(Se);return Pe?Pe.index:-1}Y.getMatchIndex=g}}),sl=c({"node_modules/yaml-unist-parser/lib/transforms/document-body.js"(Y){M(),Y.__esModule=!0;var g=(tr(),Z(ke)),W=Pf(),Se=ds(),Pe=il(),Be=Ja();function et(at,bt,Tt){var It,Lt=at.cstNode,Gt=gt(Lt,bt,Tt),Wt=Gt.comments,Xt=Gt.endComments,Dn=Gt.documentTrailingComment,De=Gt.documentHeadTrailingComment,K=bt.transformNode(at.contents),O=Rt(Lt,K,bt),H=O.position,le=O.documentEndPoint;return(It=bt.comments).push.apply(It,g.__spreadArrays(Wt,Xt)),{documentBody:W.createDocumentBody(H,K,Xt),documentEndPoint:le,documentTrailingComment:Dn,documentHeadTrailingComment:De}}Y.transformDocumentBody=et;function gt(at,bt,Tt){for(var It=[],Lt=[],Gt=[],Wt=[],Xt=!1,Dn=at.contents.length-1;Dn>=0;Dn--){var De=at.contents[Dn];if(De.type==="COMMENT"){var K=bt.transformNode(De);Tt&&Tt.line===K.position.start.line?Wt.unshift(K):Xt?It.unshift(K):K.position.start.offset>=at.valueRange.origEnd?Gt.unshift(K):It.unshift(K)}else Xt=!0}if(Gt.length>1)throw new Error("Unexpected multiple document trailing comments at "+Be.getPointText(Gt[1].position.start));if(Wt.length>1)throw new Error("Unexpected multiple documentHead trailing comments at "+Be.getPointText(Wt[1].position.start));return{comments:It,endComments:Lt,documentTrailingComment:Se.getLast(Gt)||null,documentHeadTrailingComment:Se.getLast(Wt)||null}}function Rt(at,bt,Tt){var It=Pe.getMatchIndex(Tt.text.slice(at.valueRange.origEnd),/^\.\.\./),Lt=It===-1?at.valueRange.origEnd:Math.max(0,at.valueRange.origEnd-1);Tt.text[Lt-1]==="\r"&&Lt--;var Gt=Tt.transformRange({origStart:bt!==null?bt.position.start.offset:Lt,origEnd:Lt}),Wt=It===-1?Gt.end:Tt.transformOffset(at.valueRange.origEnd+3);return{position:Gt,documentEndPoint:Wt}}}}),Bf=c({"node_modules/yaml-unist-parser/lib/factories/document-head.js"(Y){M(),Y.__esModule=!0;var g=(tr(),Z(ke)),W=ps(),Se=Tr(),Pe=Ya();function Be(et,gt,Rt,at){return g.__assign(g.__assign(g.__assign(g.__assign({},Se.createNode("documentHead",et)),W.createEndCommentAttachable(Rt)),Pe.createTrailingCommentAttachable(at)),{children:gt})}Y.createDocumentHead=Be}}),al=c({"node_modules/yaml-unist-parser/lib/transforms/document-head.js"(Y){M(),Y.__esModule=!0;var g=(tr(),Z(ke)),W=Bf(),Se=il();function Pe(gt,Rt){var at,bt=gt.cstNode,Tt=Be(bt,Rt),It=Tt.directives,Lt=Tt.comments,Gt=Tt.endComments,Wt=et(bt,It,Rt),Xt=Wt.position,Dn=Wt.endMarkerPoint;(at=Rt.comments).push.apply(at,g.__spreadArrays(Lt,Gt));var De=function(K){return K&&Rt.comments.push(K),W.createDocumentHead(Xt,It,Gt,K)};return{createDocumentHeadWithTrailingComment:De,documentHeadEndMarkerPoint:Dn}}Y.transformDocumentHead=Pe;function Be(gt,Rt){for(var at=[],bt=[],Tt=[],It=!1,Lt=gt.directives.length-1;Lt>=0;Lt--){var Gt=Rt.transformNode(gt.directives[Lt]);Gt.type==="comment"?It?bt.unshift(Gt):Tt.unshift(Gt):(It=!0,at.unshift(Gt))}return{directives:at,comments:bt,endComments:Tt}}function et(gt,Rt,at){var bt=Se.getMatchIndex(at.text.slice(0,gt.valueRange.origStart),/---\s*$/);bt>0&&!/[\r\n]/.test(at.text[bt-1])&&(bt=-1);var Tt=bt===-1?{origStart:gt.valueRange.origStart,origEnd:gt.valueRange.origStart}:{origStart:bt,origEnd:bt+3};return Rt.length!==0&&(Tt.origStart=Rt[0].position.start.offset),{position:at.transformRange(Tt),endMarkerPoint:bt===-1?null:at.transformOffset(bt)}}}}),Mf=c({"node_modules/yaml-unist-parser/lib/transforms/document.js"(Y){M(),Y.__esModule=!0;var g=kf(),W=fs(),Se=sl(),Pe=al();function Be(et,gt){var Rt=Pe.transformDocumentHead(et,gt),at=Rt.createDocumentHeadWithTrailingComment,bt=Rt.documentHeadEndMarkerPoint,Tt=Se.transformDocumentBody(et,gt,bt),It=Tt.documentBody,Lt=Tt.documentEndPoint,Gt=Tt.documentTrailingComment,Wt=Tt.documentHeadTrailingComment,Xt=at(Wt);return Gt&&gt.comments.push(Gt),g.createDocument(W.createPosition(Xt.position.start,Lt),Xt,It,Gt)}Y.transformDocument=Be}}),ol=c({"node_modules/yaml-unist-parser/lib/factories/flow-collection.js"(Y){M(),Y.__esModule=!0;var g=(tr(),Z(ke)),W=cs(),Se=ps(),Pe=Tr();function Be(et,gt,Rt){return g.__assign(g.__assign(g.__assign(g.__assign(g.__assign({},Pe.createNode("flowCollection",et)),W.createCommentAttachable()),Se.createEndCommentAttachable()),gt),{children:Rt})}Y.createFlowCollection=Be}}),If=c({"node_modules/yaml-unist-parser/lib/factories/flow-mapping.js"(Y){M(),Y.__esModule=!0;var g=(tr(),Z(ke)),W=ol();function Se(Pe,Be,et){return g.__assign(g.__assign({},W.createFlowCollection(Pe,Be,et)),{type:"flowMapping"})}Y.createFlowMapping=Se}}),ul=c({"node_modules/yaml-unist-parser/lib/factories/flow-mapping-item.js"(Y){M(),Y.__esModule=!0;var g=(tr(),Z(ke)),W=ls(),Se=Tr();function Pe(Be,et,gt){return g.__assign(g.__assign(g.__assign({},Se.createNode("flowMappingItem",Be)),W.createLeadingCommentAttachable()),{children:[et,gt]})}Y.createFlowMappingItem=Pe}}),Qa=c({"node_modules/yaml-unist-parser/lib/utils/extract-comments.js"(Y){M(),Y.__esModule=!0;function g(W,Se){for(var Pe=[],Be=0,et=W;Be<et.length;Be++){var gt=et[Be];gt&&"type"in gt&&gt.type==="COMMENT"?Se.comments.push(Se.transformNode(gt)):Pe.push(gt)}return Pe}Y.extractComments=g}}),ll=c({"node_modules/yaml-unist-parser/lib/utils/get-flow-map-item-additional-ranges.js"(Y){M(),Y.__esModule=!0;function g(W){var Se=["?",":"].map(function(et){var gt=W.find(function(Rt){return"char"in Rt&&Rt.char===et});return gt?{origStart:gt.origOffset,origEnd:gt.origOffset+1}:null}),Pe=Se[0],Be=Se[1];return{additionalKeyRange:Pe,additionalValueRange:Be}}Y.getFlowMapItemAdditionalRanges=g}}),cl=c({"node_modules/yaml-unist-parser/lib/utils/create-slicer.js"(Y){M(),Y.__esModule=!0;function g(W,Se){var Pe=Se;return function(Be){return W.slice(Pe,Pe=Be)}}Y.createSlicer=g}}),fl=c({"node_modules/yaml-unist-parser/lib/utils/group-cst-flow-collection-items.js"(Y){M(),Y.__esModule=!0;var g=cl();function W(Se){for(var Pe=[],Be=g.createSlicer(Se,1),et=!1,gt=1;gt<Se.length-1;gt++){var Rt=Se[gt];if("char"in Rt&&Rt.char===","){Pe.push(Be(gt)),Be(gt+1),et=!1;continue}et=!0}return et&&Pe.push(Be(Se.length-1)),Pe}Y.groupCstFlowCollectionItems=W}}),Of=c({"node_modules/yaml-unist-parser/lib/factories/mapping-key.js"(Y){M(),Y.__esModule=!0;var g=(tr(),Z(ke)),W=ps(),Se=Tr(),Pe=Ya();function Be(et,gt){return g.__assign(g.__assign(g.__assign(g.__assign({},Se.createNode("mappingKey",et)),Pe.createTrailingCommentAttachable()),W.createEndCommentAttachable()),{children:gt?[gt]:[]})}Y.createMappingKey=Be}}),jf=c({"node_modules/yaml-unist-parser/lib/factories/mapping-value.js"(Y){M(),Y.__esModule=!0;var g=(tr(),Z(ke)),W=cs(),Se=ps(),Pe=Tr();function Be(et,gt){return g.__assign(g.__assign(g.__assign(g.__assign({},Pe.createNode("mappingValue",et)),W.createCommentAttachable()),Se.createEndCommentAttachable()),{children:gt?[gt]:[]})}Y.createMappingValue=Be}}),Ro=c({"node_modules/yaml-unist-parser/lib/transforms/pair.js"(Y){M(),Y.__esModule=!0;var g=Of(),W=jf(),Se=fs();function Pe(Be,et,gt,Rt,at){var bt=et.transformNode(Be.key),Tt=et.transformNode(Be.value),It=bt||Rt?g.createMappingKey(et.transformRange({origStart:Rt?Rt.origStart:bt.position.start.offset,origEnd:bt?bt.position.end.offset:Rt.origStart+1}),bt):null,Lt=Tt||at?W.createMappingValue(et.transformRange({origStart:at?at.origStart:Tt.position.start.offset,origEnd:Tt?Tt.position.end.offset:at.origStart+1}),Tt):null;return gt(Se.createPosition(It?It.position.start:Lt.position.start,Lt?Lt.position.end:It.position.end),It||g.createMappingKey(Se.createEmptyPosition(Lt.position.start),null),Lt||W.createMappingValue(Se.createEmptyPosition(It.position.end),null))}Y.transformAstPair=Pe}}),Rf=c({"node_modules/yaml-unist-parser/lib/transforms/flow-map.js"(Y){M(),Y.__esModule=!0;var g=If(),W=ul(),Se=Qa(),Pe=ll(),Be=ds(),et=fl(),gt=Ro();function Rt(at,bt){var Tt=Se.extractComments(at.cstNode.items,bt),It=et.groupCstFlowCollectionItems(Tt),Lt=at.items.map(function(Xt,Dn){var De=It[Dn],K=Pe.getFlowMapItemAdditionalRanges(De),O=K.additionalKeyRange,H=K.additionalValueRange;return gt.transformAstPair(Xt,bt,W.createFlowMappingItem,O,H)}),Gt=Tt[0],Wt=Be.getLast(Tt);return g.createFlowMapping(bt.transformRange({origStart:Gt.origOffset,origEnd:Wt.origOffset+1}),bt.transformContent(at),Lt)}Y.transformFlowMap=Rt}}),Qt=c({"node_modules/yaml-unist-parser/lib/factories/flow-sequence.js"(Y){M(),Y.__esModule=!0;var g=(tr(),Z(ke)),W=ol();function Se(Pe,Be,et){return g.__assign(g.__assign({},W.createFlowCollection(Pe,Be,et)),{type:"flowSequence"})}Y.createFlowSequence=Se}}),ot=c({"node_modules/yaml-unist-parser/lib/factories/flow-sequence-item.js"(Y){M(),Y.__esModule=!0;var g=(tr(),Z(ke)),W=Tr();function Se(Pe,Be){return g.__assign(g.__assign({},W.createNode("flowSequenceItem",Pe)),{children:[Be]})}Y.createFlowSequenceItem=Se}}),Ze=c({"node_modules/yaml-unist-parser/lib/transforms/flow-seq.js"(Y){M(),Y.__esModule=!0;var g=ul(),W=Qt(),Se=ot(),Pe=fs(),Be=Qa(),et=ll(),gt=ds(),Rt=fl(),at=Ro();function bt(Tt,It){var Lt=Be.extractComments(Tt.cstNode.items,It),Gt=Rt.groupCstFlowCollectionItems(Lt),Wt=Tt.items.map(function(De,K){if(De.type!=="PAIR"){var O=It.transformNode(De);return Se.createFlowSequenceItem(Pe.createPosition(O.position.start,O.position.end),O)}else{var H=Gt[K],le=et.getFlowMapItemAdditionalRanges(H),Ne=le.additionalKeyRange,Me=le.additionalValueRange;return at.transformAstPair(De,It,g.createFlowMappingItem,Ne,Me)}}),Xt=Lt[0],Dn=gt.getLast(Lt);return W.createFlowSequence(It.transformRange({origStart:Xt.origOffset,origEnd:Dn.origOffset+1}),It.transformContent(Tt),Wt)}Y.transformFlowSeq=bt}}),lt=c({"node_modules/yaml-unist-parser/lib/factories/mapping.js"(Y){M(),Y.__esModule=!0;var g=(tr(),Z(ke)),W=ls(),Se=Tr();function Pe(Be,et,gt){return g.__assign(g.__assign(g.__assign(g.__assign({},Se.createNode("mapping",Be)),W.createLeadingCommentAttachable()),et),{children:gt})}Y.createMapping=Pe}}),st=c({"node_modules/yaml-unist-parser/lib/factories/mapping-item.js"(Y){M(),Y.__esModule=!0;var g=(tr(),Z(ke)),W=ls(),Se=Tr();function Pe(Be,et,gt){return g.__assign(g.__assign(g.__assign({},Se.createNode("mappingItem",Be)),W.createLeadingCommentAttachable()),{children:[et,gt]})}Y.createMappingItem=Pe}}),wt=c({"node_modules/yaml-unist-parser/lib/transforms/map.js"(Y){M(),Y.__esModule=!0;var g=lt(),W=st(),Se=fs(),Pe=cl(),Be=Qa(),et=za(),gt=ds(),Rt=Ro();function at(Tt,It){var Lt=Tt.cstNode;Lt.items.filter(function(Dn){return Dn.type==="MAP_KEY"||Dn.type==="MAP_VALUE"}).forEach(function(Dn){return et.extractPropComments(Dn,It)});var Gt=Be.extractComments(Lt.items,It),Wt=bt(Gt),Xt=Tt.items.map(function(Dn,De){var K=Wt[De],O=K[0].type==="MAP_VALUE"?[null,K[0].range]:[K[0].range,K.length===1?null:K[1].range],H=O[0],le=O[1];return Rt.transformAstPair(Dn,It,W.createMappingItem,H,le)});return g.createMapping(Se.createPosition(Xt[0].position.start,gt.getLast(Xt).position.end),It.transformContent(Tt),Xt)}Y.transformMap=at;function bt(Tt){for(var It=[],Lt=Pe.createSlicer(Tt,0),Gt=!1,Wt=0;Wt<Tt.length;Wt++){var Xt=Tt[Wt];if(Xt.type==="MAP_VALUE"){It.push(Lt(Wt+1)),Gt=!1;continue}Gt&&It.push(Lt(Wt)),Gt=!0}return Gt&&It.push(Lt(1/0)),It}}}),Pt=c({"node_modules/yaml-unist-parser/lib/factories/plain.js"(Y){M(),Y.__esModule=!0;var g=(tr(),Z(ke)),W=cs(),Se=Tr();function Pe(Be,et,gt){return g.__assign(g.__assign(g.__assign(g.__assign({},Se.createNode("plain",Be)),W.createCommentAttachable()),et),{value:gt})}Y.createPlain=Pe}}),Yt=c({"node_modules/yaml-unist-parser/lib/utils/find-last-char-index.js"(Y){M(),Y.__esModule=!0;function g(W,Se,Pe){for(var Be=Se;Be>=0;Be--)if(Pe.test(W[Be]))return Be;return-1}Y.findLastCharIndex=g}}),qt=c({"node_modules/yaml-unist-parser/lib/transforms/plain.js"(Y){M(),Y.__esModule=!0;var g=Pt(),W=Yt();function Se(Pe,Be){var et=Pe.cstNode;return g.createPlain(Be.transformRange({origStart:et.valueRange.origStart,origEnd:W.findLastCharIndex(Be.text,et.valueRange.origEnd-1,/\S/)+1}),Be.transformContent(Pe),et.strValue)}Y.transformPlain=Se}}),Ht=c({"node_modules/yaml-unist-parser/lib/factories/quote-double.js"(Y){M(),Y.__esModule=!0;var g=(tr(),Z(ke));function W(Se){return g.__assign(g.__assign({},Se),{type:"quoteDouble"})}Y.createQuoteDouble=W}}),fn=c({"node_modules/yaml-unist-parser/lib/factories/quote-value.js"(Y){M(),Y.__esModule=!0;var g=(tr(),Z(ke)),W=cs(),Se=Tr();function Pe(Be,et,gt){return g.__assign(g.__assign(g.__assign(g.__assign({},Se.createNode("quoteValue",Be)),et),W.createCommentAttachable()),{value:gt})}Y.createQuoteValue=Pe}}),gn=c({"node_modules/yaml-unist-parser/lib/transforms/quote-value.js"(Y){M(),Y.__esModule=!0;var g=fn();function W(Se,Pe){var Be=Se.cstNode;return g.createQuoteValue(Pe.transformRange(Be.valueRange),Pe.transformContent(Se),Be.strValue)}Y.transformAstQuoteValue=W}}),bn=c({"node_modules/yaml-unist-parser/lib/transforms/quote-double.js"(Y){M(),Y.__esModule=!0;var g=Ht(),W=gn();function Se(Pe,Be){return g.createQuoteDouble(W.transformAstQuoteValue(Pe,Be))}Y.transformQuoteDouble=Se}}),pn=c({"node_modules/yaml-unist-parser/lib/factories/quote-single.js"(Y){M(),Y.__esModule=!0;var g=(tr(),Z(ke));function W(Se){return g.__assign(g.__assign({},Se),{type:"quoteSingle"})}Y.createQuoteSingle=W}}),Te=c({"node_modules/yaml-unist-parser/lib/transforms/quote-single.js"(Y){M(),Y.__esModule=!0;var g=pn(),W=gn();function Se(Pe,Be){return g.createQuoteSingle(W.transformAstQuoteValue(Pe,Be))}Y.transformQuoteSingle=Se}}),Sn=c({"node_modules/yaml-unist-parser/lib/factories/sequence.js"(Y){M(),Y.__esModule=!0;var g=(tr(),Z(ke)),W=ps(),Se=ls(),Pe=Tr();function Be(et,gt,Rt){return g.__assign(g.__assign(g.__assign(g.__assign(g.__assign({},Pe.createNode("sequence",et)),Se.createLeadingCommentAttachable()),W.createEndCommentAttachable()),gt),{children:Rt})}Y.createSequence=Be}}),Bn=c({"node_modules/yaml-unist-parser/lib/factories/sequence-item.js"(Y){M(),Y.__esModule=!0;var g=(tr(),Z(ke)),W=cs(),Se=ps(),Pe=Tr();function Be(et,gt){return g.__assign(g.__assign(g.__assign(g.__assign({},Pe.createNode("sequenceItem",et)),W.createCommentAttachable()),Se.createEndCommentAttachable()),{children:gt?[gt]:[]})}Y.createSequenceItem=Be}}),Zn=c({"node_modules/yaml-unist-parser/lib/transforms/seq.js"(Y){M(),Y.__esModule=!0;var g=fs(),W=Sn(),Se=Bn(),Pe=Qa(),Be=za(),et=ds();function gt(Rt,at){var bt=Pe.extractComments(Rt.cstNode.items,at),Tt=bt.map(function(It,Lt){Be.extractPropComments(It,at);var Gt=at.transformNode(Rt.items[Lt]);return Se.createSequenceItem(g.createPosition(at.transformOffset(It.valueRange.origStart),Gt===null?at.transformOffset(It.valueRange.origStart+1):Gt.position.end),Gt)});return W.createSequence(g.createPosition(Tt[0].position.start,et.getLast(Tt).position.end),at.transformContent(Rt),Tt)}Y.transformSeq=gt}}),Hn=c({"node_modules/yaml-unist-parser/lib/transform.js"(Y){M(),Y.__esModule=!0;var g=xf(),W=Tf(),Se=nl(),Pe=_f(),Be=rl(),et=Mf(),gt=Rf(),Rt=Ze(),at=wt(),bt=qt(),Tt=bn(),It=Te(),Lt=Zn();function Gt(Wt,Xt){if(Wt===null||Wt.type===void 0&&Wt.value===null)return null;switch(Wt.type){case"ALIAS":return g.transformAlias(Wt,Xt);case"BLOCK_FOLDED":return W.transformBlockFolded(Wt,Xt);case"BLOCK_LITERAL":return Se.transformBlockLiteral(Wt,Xt);case"COMMENT":return Pe.transformComment(Wt,Xt);case"DIRECTIVE":return Be.transformDirective(Wt,Xt);case"DOCUMENT":return et.transformDocument(Wt,Xt);case"FLOW_MAP":return gt.transformFlowMap(Wt,Xt);case"FLOW_SEQ":return Rt.transformFlowSeq(Wt,Xt);case"MAP":return at.transformMap(Wt,Xt);case"PLAIN":return bt.transformPlain(Wt,Xt);case"QUOTE_DOUBLE":return Tt.transformQuoteDouble(Wt,Xt);case"QUOTE_SINGLE":return It.transformQuoteSingle(Wt,Xt);case"SEQ":return Lt.transformSeq(Wt,Xt);default:throw new Error("Unexpected node type "+Wt.type)}}Y.transformNode=Gt}}),Cr=c({"node_modules/yaml-unist-parser/lib/factories/error.js"(Y){M(),Y.__esModule=!0;function g(W,Se,Pe){var Be=new SyntaxError(W);return Be.name="YAMLSyntaxError",Be.source=Se,Be.position=Pe,Be}Y.createError=g}}),Re=c({"node_modules/yaml-unist-parser/lib/transforms/error.js"(Y){M(),Y.__esModule=!0;var g=Cr();function W(Se,Pe){var Be=Se.source.range||Se.source.valueRange;return g.createError(Se.message,Pe.text,Pe.transformRange(Be))}Y.transformError=W}}),Zr=c({"node_modules/yaml-unist-parser/lib/factories/point.js"(Y){M(),Y.__esModule=!0;function g(W,Se,Pe){return{offset:W,line:Se,column:Pe}}Y.createPoint=g}}),hs=c({"node_modules/yaml-unist-parser/lib/transforms/offset.js"(Y){M(),Y.__esModule=!0;var g=Zr();function W(Se,Pe){Se<0?Se=0:Se>Pe.text.length&&(Se=Pe.text.length);var Be=Pe.locator.locationForIndex(Se);return g.createPoint(Se,Be.line+1,Be.column+1)}Y.transformOffset=W}}),Bs=c({"node_modules/yaml-unist-parser/lib/transforms/range.js"(Y){M(),Y.__esModule=!0;var g=fs();function W(Se,Pe){return g.createPosition(Pe.transformOffset(Se.origStart),Pe.transformOffset(Se.origEnd))}Y.transformRange=W}}),pi=c({"node_modules/yaml-unist-parser/lib/utils/add-orig-range.js"(Y){M(),Y.__esModule=!0;var g=!0;function W(et){if(!et.setOrigRanges()){var gt=function(Rt){if(Pe(Rt))return Rt.origStart=Rt.start,Rt.origEnd=Rt.end,g;if(Be(Rt))return Rt.origOffset=Rt.offset,g};et.forEach(function(Rt){return Se(Rt,gt)})}}Y.addOrigRange=W;function Se(et,gt){if(!(!et||typeof et!="object")&&gt(et)!==g)for(var Rt=0,at=Object.keys(et);Rt<at.length;Rt++){var bt=at[Rt];if(!(bt==="context"||bt==="error")){var Tt=et[bt];Array.isArray(Tt)?Tt.forEach(function(It){return Se(It,gt)}):Se(Tt,gt)}}}function Pe(et){return typeof et.start=="number"}function Be(et){return typeof et.offset=="number"}}}),Ki=c({"node_modules/yaml-unist-parser/lib/utils/remove-fake-nodes.js"(Y){M(),Y.__esModule=!0;function g(W){if("children"in W){if(W.children.length===1){var Se=W.children[0];if(Se.type==="plain"&&Se.tag===null&&Se.anchor===null&&Se.value==="")return W.children.splice(0,1),W}W.children.forEach(g)}return W}Y.removeFakeNodes=g}}),Vr=c({"node_modules/yaml-unist-parser/lib/utils/create-updater.js"(Y){M(),Y.__esModule=!0;function g(W,Se,Pe,Be){var et=Se(W);return function(gt){Be(et,gt)&&Pe(W,et=gt)}}Y.createUpdater=g}}),Xa=c({"node_modules/yaml-unist-parser/lib/utils/update-positions.js"(Y){M(),Y.__esModule=!0;var g=Vr(),W=ds();function Se(bt){if(!(bt===null||!("children"in bt))){var Tt=bt.children;if(Tt.forEach(Se),bt.type==="document"){var It=bt.children,Lt=It[0],Gt=It[1];Lt.position.start.offset===Lt.position.end.offset?Lt.position.start=Lt.position.end=Gt.position.start:Gt.position.start.offset===Gt.position.end.offset&&(Gt.position.start=Gt.position.end=Lt.position.end)}var Wt=g.createUpdater(bt.position,Pe,Be,Rt),Xt=g.createUpdater(bt.position,et,gt,at);"endComments"in bt&&bt.endComments.length!==0&&(Wt(bt.endComments[0].position.start),Xt(W.getLast(bt.endComments).position.end));var Dn=Tt.filter(function(O){return O!==null});if(Dn.length!==0){var De=Dn[0],K=W.getLast(Dn);Wt(De.position.start),Xt(K.position.end),"leadingComments"in De&&De.leadingComments.length!==0&&Wt(De.leadingComments[0].position.start),"tag"in De&&De.tag&&Wt(De.tag.position.start),"anchor"in De&&De.anchor&&Wt(De.anchor.position.start),"trailingComment"in K&&K.trailingComment&&Xt(K.trailingComment.position.end)}}}Y.updatePositions=Se;function Pe(bt){return bt.start}function Be(bt,Tt){bt.start=Tt}function et(bt){return bt.end}function gt(bt,Tt){bt.end=Tt}function Rt(bt,Tt){return Tt.offset<bt.offset}function at(bt,Tt){return Tt.offset>bt.offset}}}),Gr=c({"node_modules/yaml/dist/PlainValue-ec8e588e.js"(Y){M();var g={ANCHOR:"&",COMMENT:"#",TAG:"!",DIRECTIVES_END:"-",DOCUMENT_END:"."},W={ALIAS:"ALIAS",BLANK_LINE:"BLANK_LINE",BLOCK_FOLDED:"BLOCK_FOLDED",BLOCK_LITERAL:"BLOCK_LITERAL",COMMENT:"COMMENT",DIRECTIVE:"DIRECTIVE",DOCUMENT:"DOCUMENT",FLOW_MAP:"FLOW_MAP",FLOW_SEQ:"FLOW_SEQ",MAP:"MAP",MAP_KEY:"MAP_KEY",MAP_VALUE:"MAP_VALUE",PLAIN:"PLAIN",QUOTE_DOUBLE:"QUOTE_DOUBLE",QUOTE_SINGLE:"QUOTE_SINGLE",SEQ:"SEQ",SEQ_ITEM:"SEQ_ITEM"},Se="tag:yaml.org,2002:",Pe={MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"};function Be(K){let O=[0],H=K.indexOf(`
263
- `);for(;H!==-1;)H+=1,O.push(H),H=K.indexOf(`
264
- `,H);return O}function et(K){let O,H;return typeof K=="string"?(O=Be(K),H=K):(Array.isArray(K)&&(K=K[0]),K&&K.context&&(K.lineStarts||(K.lineStarts=Be(K.context.src)),O=K.lineStarts,H=K.context.src)),{lineStarts:O,src:H}}function gt(K,O){if(typeof K!="number"||K<0)return null;let{lineStarts:H,src:le}=et(O);if(!H||!le||K>le.length)return null;for(let Me=0;Me<H.length;++Me){let Ce=H[Me];if(K<Ce)return{line:Me,col:K-H[Me-1]+1};if(K===Ce)return{line:Me+1,col:1}}let Ne=H.length;return{line:Ne,col:K-H[Ne-1]+1}}function Rt(K,O){let{lineStarts:H,src:le}=et(O);if(!H||!(K>=1)||K>H.length)return null;let Ne=H[K-1],Me=H[K];for(;Me&&Me>Ne&&le[Me-1]===`
265
- `;)--Me;return le.slice(Ne,Me)}function at(K,O){let{start:H,end:le}=K,Ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:80,Me=Rt(H.line,O);if(!Me)return null;let{col:Ce}=H;if(Me.length>Ne)if(Ce<=Ne-10)Me=Me.substr(0,Ne-1)+"…";else{let vn=Math.round(Ne/2);Me.length>Ce+vn&&(Me=Me.substr(0,Ce+vn-1)+"…"),Ce-=Me.length-Ne,Me="…"+Me.substr(1-Ne)}let je=1,Ct="";le&&(le.line===H.line&&Ce+(le.col-H.col)<=Ne+1?je=le.col-H.col:(je=Math.min(Me.length+1,Ne)-Ce,Ct="…"));let Ot=Ce>1?" ".repeat(Ce-1):"",zt="^".repeat(je);return`${Me}
266
- ${Ot}${zt}${Ct}`}var bt=class{static copy(K){return new bt(K.start,K.end)}constructor(K,O){this.start=K,this.end=O||K}isEmpty(){return typeof this.start!="number"||!this.end||this.end<=this.start}setOrigRange(K,O){let{start:H,end:le}=this;if(K.length===0||le<=K[0])return this.origStart=H,this.origEnd=le,O;let Ne=O;for(;Ne<K.length&&!(K[Ne]>H);)++Ne;this.origStart=H+Ne;let Me=Ne;for(;Ne<K.length&&!(K[Ne]>=le);)++Ne;return this.origEnd=le+Ne,Me}},Tt=class{static addStringTerminator(K,O,H){if(H[H.length-1]===`
267
- `)return H;let le=Tt.endOfWhiteSpace(K,O);return le>=K.length||K[le]===`
268
- `?H+`
269
- `:H}static atDocumentBoundary(K,O,H){let le=K[O];if(!le)return!0;let Ne=K[O-1];if(Ne&&Ne!==`
270
- `)return!1;if(H){if(le!==H)return!1}else if(le!==g.DIRECTIVES_END&&le!==g.DOCUMENT_END)return!1;let Me=K[O+1],Ce=K[O+2];if(Me!==le||Ce!==le)return!1;let je=K[O+3];return!je||je===`
271
- `||je===" "||je===" "}static endOfIdentifier(K,O){let H=K[O],le=H==="<",Ne=le?[`
272
- `," "," ",">"]:[`
273
- `," "," ","[","]","{","}",","];for(;H&&Ne.indexOf(H)===-1;)H=K[O+=1];return le&&H===">"&&(O+=1),O}static endOfIndent(K,O){let H=K[O];for(;H===" ";)H=K[O+=1];return O}static endOfLine(K,O){let H=K[O];for(;H&&H!==`
274
- `;)H=K[O+=1];return O}static endOfWhiteSpace(K,O){let H=K[O];for(;H===" "||H===" ";)H=K[O+=1];return O}static startOfLine(K,O){let H=K[O-1];if(H===`
275
- `)return O;for(;H&&H!==`
276
- `;)H=K[O-=1];return O+1}static endOfBlockIndent(K,O,H){let le=Tt.endOfIndent(K,H);if(le>H+O)return le;{let Ne=Tt.endOfWhiteSpace(K,le),Me=K[Ne];if(!Me||Me===`
277
- `)return Ne}return null}static atBlank(K,O,H){let le=K[O];return le===`
278
- `||le===" "||le===" "||H&&!le}static nextNodeIsIndented(K,O,H){return!K||O<0?!1:O>0?!0:H&&K==="-"}static normalizeOffset(K,O){let H=K[O];return H?H!==`
279
- `&&K[O-1]===`
280
- `?O-1:Tt.endOfWhiteSpace(K,O):O}static foldNewline(K,O,H){let le=0,Ne=!1,Me="",Ce=K[O+1];for(;Ce===" "||Ce===" "||Ce===`
281
- `;){switch(Ce){case`
282
- `:le=0,O+=1,Me+=`
283
- `;break;case" ":le<=H&&(Ne=!0),O=Tt.endOfWhiteSpace(K,O+2)-1;break;case" ":le+=1,O+=1;break}Ce=K[O+1]}return Me||(Me=" "),Ce&&le<=H&&(Ne=!0),{fold:Me,offset:O,error:Ne}}constructor(K,O,H){Object.defineProperty(this,"context",{value:H||null,writable:!0}),this.error=null,this.range=null,this.valueRange=null,this.props=O||[],this.type=K,this.value=null}getPropValue(K,O,H){if(!this.context)return null;let{src:le}=this.context,Ne=this.props[K];return Ne&&le[Ne.start]===O?le.slice(Ne.start+(H?1:0),Ne.end):null}get anchor(){for(let K=0;K<this.props.length;++K){let O=this.getPropValue(K,g.ANCHOR,!0);if(O!=null)return O}return null}get comment(){let K=[];for(let O=0;O<this.props.length;++O){let H=this.getPropValue(O,g.COMMENT,!0);H!=null&&K.push(H)}return K.length>0?K.join(`
284
- `):null}commentHasRequiredWhitespace(K){let{src:O}=this.context;if(this.header&&K===this.header.end||!this.valueRange)return!1;let{end:H}=this.valueRange;return K!==H||Tt.atBlank(O,H-1)}get hasComment(){if(this.context){let{src:K}=this.context;for(let O=0;O<this.props.length;++O)if(K[this.props[O].start]===g.COMMENT)return!0}return!1}get hasProps(){if(this.context){let{src:K}=this.context;for(let O=0;O<this.props.length;++O)if(K[this.props[O].start]!==g.COMMENT)return!0}return!1}get includesTrailingLines(){return!1}get jsonLike(){return[W.FLOW_MAP,W.FLOW_SEQ,W.QUOTE_DOUBLE,W.QUOTE_SINGLE].indexOf(this.type)!==-1}get rangeAsLinePos(){if(!this.range||!this.context)return;let K=gt(this.range.start,this.context.root);if(!K)return;let O=gt(this.range.end,this.context.root);return{start:K,end:O}}get rawValue(){if(!this.valueRange||!this.context)return null;let{start:K,end:O}=this.valueRange;return this.context.src.slice(K,O)}get tag(){for(let K=0;K<this.props.length;++K){let O=this.getPropValue(K,g.TAG,!1);if(O!=null){if(O[1]==="<")return{verbatim:O.slice(2,-1)};{let[H,le,Ne]=O.match(/^(.*!)([^!]*)$/);return{handle:le,suffix:Ne}}}}return null}get valueRangeContainsNewline(){if(!this.valueRange||!this.context)return!1;let{start:K,end:O}=this.valueRange,{src:H}=this.context;for(let le=K;le<O;++le)if(H[le]===`
285
- `)return!0;return!1}parseComment(K){let{src:O}=this.context;if(O[K]===g.COMMENT){let H=Tt.endOfLine(O,K+1),le=new bt(K,H);return this.props.push(le),H}return K}setOrigRanges(K,O){return this.range&&(O=this.range.setOrigRange(K,O)),this.valueRange&&this.valueRange.setOrigRange(K,O),this.props.forEach(H=>H.setOrigRange(K,O)),O}toString(){let{context:{src:K},range:O,value:H}=this;if(H!=null)return H;let le=K.slice(O.start,O.end);return Tt.addStringTerminator(K,O.end,le)}},It=class extends Error{constructor(K,O,H){if(!H||!(O instanceof Tt))throw new Error(`Invalid arguments for new ${K}`);super(),this.name=K,this.message=H,this.source=O}makePretty(){if(!this.source)return;this.nodeType=this.source.type;let K=this.source.context&&this.source.context.root;if(typeof this.offset=="number"){this.range=new bt(this.offset,this.offset+1);let O=K&&gt(this.offset,K);if(O){let H={line:O.line,col:O.col+1};this.linePos={start:O,end:H}}delete this.offset}else this.range=this.source.range,this.linePos=this.source.rangeAsLinePos;if(this.linePos){let{line:O,col:H}=this.linePos.start;this.message+=` at line ${O}, column ${H}`;let le=K&&at(this.linePos,K);le&&(this.message+=`:
286
-
287
- ${le}
288
- `)}delete this.source}},Lt=class extends It{constructor(K,O){super("YAMLReferenceError",K,O)}},Gt=class extends It{constructor(K,O){super("YAMLSemanticError",K,O)}},Wt=class extends It{constructor(K,O){super("YAMLSyntaxError",K,O)}},Xt=class extends It{constructor(K,O){super("YAMLWarning",K,O)}};function Dn(K,O,H){return O in K?Object.defineProperty(K,O,{value:H,enumerable:!0,configurable:!0,writable:!0}):K[O]=H,K}var De=class extends Tt{static endOfLine(K,O,H){let le=K[O],Ne=O;for(;le&&le!==`
289
- `&&!(H&&(le==="["||le==="]"||le==="{"||le==="}"||le===","));){let Me=K[Ne+1];if(le===":"&&(!Me||Me===`
290
- `||Me===" "||Me===" "||H&&Me===",")||(le===" "||le===" ")&&Me==="#")break;Ne+=1,le=Me}return Ne}get strValue(){if(!this.valueRange||!this.context)return null;let{start:K,end:O}=this.valueRange,{src:H}=this.context,le=H[O-1];for(;K<O&&(le===`
291
- `||le===" "||le===" ");)le=H[--O-1];let Ne="";for(let Ce=K;Ce<O;++Ce){let je=H[Ce];if(je===`
292
- `){let{fold:Ct,offset:Ot}=Tt.foldNewline(H,Ce,-1);Ne+=Ct,Ce=Ot}else if(je===" "||je===" "){let Ct=Ce,Ot=H[Ce+1];for(;Ce<O&&(Ot===" "||Ot===" ");)Ce+=1,Ot=H[Ce+1];Ot!==`
293
- `&&(Ne+=Ce>Ct?H.slice(Ct,Ce+1):je)}else Ne+=je}let Me=H[K];switch(Me){case" ":{let Ce="Plain value cannot start with a tab character";return{errors:[new Gt(this,Ce)],str:Ne}}case"@":case"`":{let Ce=`Plain value cannot start with reserved character ${Me}`;return{errors:[new Gt(this,Ce)],str:Ne}}default:return Ne}}parseBlockValue(K){let{indent:O,inFlow:H,src:le}=this.context,Ne=K,Me=K;for(let Ce=le[Ne];Ce===`
294
- `&&!Tt.atDocumentBoundary(le,Ne+1);Ce=le[Ne]){let je=Tt.endOfBlockIndent(le,O,Ne+1);if(je===null||le[je]==="#")break;le[je]===`
295
- `?Ne=je:(Me=De.endOfLine(le,je,H),Ne=Me)}return this.valueRange.isEmpty()&&(this.valueRange.start=K),this.valueRange.end=Me,Me}parse(K,O){this.context=K;let{inFlow:H,src:le}=K,Ne=O,Me=le[Ne];return Me&&Me!=="#"&&Me!==`
296
- `&&(Ne=De.endOfLine(le,O,H)),this.valueRange=new bt(O,Ne),Ne=Tt.endOfWhiteSpace(le,Ne),Ne=this.parseComment(Ne),(!this.hasComment||this.valueRange.isEmpty())&&(Ne=this.parseBlockValue(Ne)),Ne}};Y.Char=g,Y.Node=Tt,Y.PlainValue=De,Y.Range=bt,Y.Type=W,Y.YAMLError=It,Y.YAMLReferenceError=Lt,Y.YAMLSemanticError=Gt,Y.YAMLSyntaxError=Wt,Y.YAMLWarning=Xt,Y._defineProperty=Dn,Y.defaultTagPrefix=Se,Y.defaultTags=Pe}}),Ka=c({"node_modules/yaml/dist/parse-cst.js"(Y){M();var g=Gr(),W=class extends g.Node{constructor(){super(g.Type.BLANK_LINE)}get includesTrailingLines(){return!0}parse(De,K){return this.context=De,this.range=new g.Range(K,K+1),K+1}},Se=class extends g.Node{constructor(De,K){super(De,K),this.node=null}get includesTrailingLines(){return!!this.node&&this.node.includesTrailingLines}parse(De,K){this.context=De;let{parseNode:O,src:H}=De,{atLineStart:le,lineStart:Ne}=De;!le&&this.type===g.Type.SEQ_ITEM&&(this.error=new g.YAMLSemanticError(this,"Sequence items must not have preceding content on the same line"));let Me=le?K-Ne:De.indent,Ce=g.Node.endOfWhiteSpace(H,K+1),je=H[Ce],Ct=je==="#",Ot=[],zt=null;for(;je===`
297
- `||je==="#";){if(je==="#"){let on=g.Node.endOfLine(H,Ce+1);Ot.push(new g.Range(Ce,on)),Ce=on}else{le=!0,Ne=Ce+1;let on=g.Node.endOfWhiteSpace(H,Ne);H[on]===`
298
- `&&Ot.length===0&&(zt=new W,Ne=zt.parse({src:H},Ne)),Ce=g.Node.endOfIndent(H,Ne)}je=H[Ce]}if(g.Node.nextNodeIsIndented(je,Ce-(Ne+Me),this.type!==g.Type.SEQ_ITEM)?this.node=O({atLineStart:le,inCollection:!1,indent:Me,lineStart:Ne,parent:this},Ce):je&&Ne>K+1&&(Ce=Ne-1),this.node){if(zt){let on=De.parent.items||De.parent.contents;on&&on.push(zt)}Ot.length&&Array.prototype.push.apply(this.props,Ot),Ce=this.node.range.end}else if(Ct){let on=Ot[0];this.props.push(on),Ce=on.end}else Ce=g.Node.endOfLine(H,K+1);let vn=this.node?this.node.valueRange.end:Ce;return this.valueRange=new g.Range(K,vn),Ce}setOrigRanges(De,K){return K=super.setOrigRanges(De,K),this.node?this.node.setOrigRanges(De,K):K}toString(){let{context:{src:De},node:K,range:O,value:H}=this;if(H!=null)return H;let le=K?De.slice(O.start,K.range.start)+String(K):De.slice(O.start,O.end);return g.Node.addStringTerminator(De,O.end,le)}},Pe=class extends g.Node{constructor(){super(g.Type.COMMENT)}parse(De,K){this.context=De;let O=this.parseComment(K);return this.range=new g.Range(K,O),O}};function Be(De){let K=De;for(;K instanceof Se;)K=K.node;if(!(K instanceof et))return null;let O=K.items.length,H=-1;for(let Me=O-1;Me>=0;--Me){let Ce=K.items[Me];if(Ce.type===g.Type.COMMENT){let{indent:je,lineStart:Ct}=Ce.context;if(je>0&&Ce.range.start>=Ct+je)break;H=Me}else if(Ce.type===g.Type.BLANK_LINE)H=Me;else break}if(H===-1)return null;let le=K.items.splice(H,O-H),Ne=le[0].range.start;for(;K.range.end=Ne,K.valueRange&&K.valueRange.end>Ne&&(K.valueRange.end=Ne),K!==De;)K=K.context.parent;return le}var et=class extends g.Node{static nextContentHasIndent(De,K,O){let H=g.Node.endOfLine(De,K)+1;K=g.Node.endOfWhiteSpace(De,H);let le=De[K];return le?K>=H+O?!0:le!=="#"&&le!==`
299
- `?!1:et.nextContentHasIndent(De,K,O):!1}constructor(De){super(De.type===g.Type.SEQ_ITEM?g.Type.SEQ:g.Type.MAP);for(let O=De.props.length-1;O>=0;--O)if(De.props[O].start<De.context.lineStart){this.props=De.props.slice(0,O+1),De.props=De.props.slice(O+1);let H=De.props[0]||De.valueRange;De.range.start=H.start;break}this.items=[De];let K=Be(De);K&&Array.prototype.push.apply(this.items,K)}get includesTrailingLines(){return this.items.length>0}parse(De,K){this.context=De;let{parseNode:O,src:H}=De,le=g.Node.startOfLine(H,K),Ne=this.items[0];Ne.context.parent=this,this.valueRange=g.Range.copy(Ne.valueRange);let Me=Ne.range.start-Ne.context.lineStart,Ce=K;Ce=g.Node.normalizeOffset(H,Ce);let je=H[Ce],Ct=g.Node.endOfWhiteSpace(H,le)===Ce,Ot=!1;for(;je;){for(;je===`
300
- `||je==="#";){if(Ct&&je===`
301
- `&&!Ot){let on=new W;if(Ce=on.parse({src:H},Ce),this.valueRange.end=Ce,Ce>=H.length){je=null;break}this.items.push(on),Ce-=1}else if(je==="#"){if(Ce<le+Me&&!et.nextContentHasIndent(H,Ce,Me))return Ce;let on=new Pe;if(Ce=on.parse({indent:Me,lineStart:le,src:H},Ce),this.items.push(on),this.valueRange.end=Ce,Ce>=H.length){je=null;break}}if(le=Ce+1,Ce=g.Node.endOfIndent(H,le),g.Node.atBlank(H,Ce)){let on=g.Node.endOfWhiteSpace(H,Ce),$n=H[on];(!$n||$n===`
302
- `||$n==="#")&&(Ce=on)}je=H[Ce],Ct=!0}if(!je)break;if(Ce!==le+Me&&(Ct||je!==":")){if(Ce<le+Me){le>K&&(Ce=le);break}else if(!this.error){let on="All collection items must start at the same column";this.error=new g.YAMLSyntaxError(this,on)}}if(Ne.type===g.Type.SEQ_ITEM){if(je!=="-"){le>K&&(Ce=le);break}}else if(je==="-"&&!this.error){let on=H[Ce+1];if(!on||on===`
303
- `||on===" "||on===" "){let $n="A collection cannot be both a mapping and a sequence";this.error=new g.YAMLSyntaxError(this,$n)}}let zt=O({atLineStart:Ct,inCollection:!0,indent:Me,lineStart:le,parent:this},Ce);if(!zt)return Ce;if(this.items.push(zt),this.valueRange.end=zt.valueRange.end,Ce=g.Node.normalizeOffset(H,zt.range.end),je=H[Ce],Ct=!1,Ot=zt.includesTrailingLines,je){let on=Ce-1,$n=H[on];for(;$n===" "||$n===" ";)$n=H[--on];$n===`
304
- `&&(le=on+1,Ct=!0)}let vn=Be(zt);vn&&Array.prototype.push.apply(this.items,vn)}return Ce}setOrigRanges(De,K){return K=super.setOrigRanges(De,K),this.items.forEach(O=>{K=O.setOrigRanges(De,K)}),K}toString(){let{context:{src:De},items:K,range:O,value:H}=this;if(H!=null)return H;let le=De.slice(O.start,K[0].range.start)+String(K[0]);for(let Ne=1;Ne<K.length;++Ne){let Me=K[Ne],{atLineStart:Ce,indent:je}=Me.context;if(Ce)for(let Ct=0;Ct<je;++Ct)le+=" ";le+=String(Me)}return g.Node.addStringTerminator(De,O.end,le)}},gt=class extends g.Node{constructor(){super(g.Type.DIRECTIVE),this.name=null}get parameters(){let De=this.rawValue;return De?De.trim().split(/[ \t]+/):[]}parseName(De){let{src:K}=this.context,O=De,H=K[O];for(;H&&H!==`
305
- `&&H!==" "&&H!==" ";)H=K[O+=1];return this.name=K.slice(De,O),O}parseParameters(De){let{src:K}=this.context,O=De,H=K[O];for(;H&&H!==`
306
- `&&H!=="#";)H=K[O+=1];return this.valueRange=new g.Range(De,O),O}parse(De,K){this.context=De;let O=this.parseName(K+1);return O=this.parseParameters(O),O=this.parseComment(O),this.range=new g.Range(K,O),O}},Rt=class extends g.Node{static startCommentOrEndBlankLine(De,K){let O=g.Node.endOfWhiteSpace(De,K),H=De[O];return H==="#"||H===`
307
- `?O:K}constructor(){super(g.Type.DOCUMENT),this.directives=null,this.contents=null,this.directivesEndMarker=null,this.documentEndMarker=null}parseDirectives(De){let{src:K}=this.context;this.directives=[];let O=!0,H=!1,le=De;for(;!g.Node.atDocumentBoundary(K,le,g.Char.DIRECTIVES_END);)switch(le=Rt.startCommentOrEndBlankLine(K,le),K[le]){case`
308
- `:if(O){let Ne=new W;le=Ne.parse({src:K},le),le<K.length&&this.directives.push(Ne)}else le+=1,O=!0;break;case"#":{let Ne=new Pe;le=Ne.parse({src:K},le),this.directives.push(Ne),O=!1}break;case"%":{let Ne=new gt;le=Ne.parse({parent:this,src:K},le),this.directives.push(Ne),H=!0,O=!1}break;default:return H?this.error=new g.YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),le}return K[le]?(this.directivesEndMarker=new g.Range(le,le+3),le+3):(H?this.error=new g.YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),le)}parseContents(De){let{parseNode:K,src:O}=this.context;this.contents||(this.contents=[]);let H=De;for(;O[H-1]==="-";)H-=1;let le=g.Node.endOfWhiteSpace(O,De),Ne=H===De;for(this.valueRange=new g.Range(le);!g.Node.atDocumentBoundary(O,le,g.Char.DOCUMENT_END);){switch(O[le]){case`
309
- `:if(Ne){let Me=new W;le=Me.parse({src:O},le),le<O.length&&this.contents.push(Me)}else le+=1,Ne=!0;H=le;break;case"#":{let Me=new Pe;le=Me.parse({src:O},le),this.contents.push(Me),Ne=!1}break;default:{let Me=g.Node.endOfIndent(O,le),Ce=K({atLineStart:Ne,indent:-1,inFlow:!1,inCollection:!1,lineStart:H,parent:this},Me);if(!Ce)return this.valueRange.end=Me;this.contents.push(Ce),le=Ce.range.end,Ne=!1;let je=Be(Ce);je&&Array.prototype.push.apply(this.contents,je)}}le=Rt.startCommentOrEndBlankLine(O,le)}if(this.valueRange.end=le,O[le]&&(this.documentEndMarker=new g.Range(le,le+3),le+=3,O[le])){if(le=g.Node.endOfWhiteSpace(O,le),O[le]==="#"){let Me=new Pe;le=Me.parse({src:O},le),this.contents.push(Me)}switch(O[le]){case`
310
- `:le+=1;break;case void 0:break;default:this.error=new g.YAMLSyntaxError(this,"Document end marker line cannot have a non-comment suffix")}}return le}parse(De,K){De.root=this,this.context=De;let{src:O}=De,H=O.charCodeAt(K)===65279?K+1:K;return H=this.parseDirectives(H),H=this.parseContents(H),H}setOrigRanges(De,K){return K=super.setOrigRanges(De,K),this.directives.forEach(O=>{K=O.setOrigRanges(De,K)}),this.directivesEndMarker&&(K=this.directivesEndMarker.setOrigRange(De,K)),this.contents.forEach(O=>{K=O.setOrigRanges(De,K)}),this.documentEndMarker&&(K=this.documentEndMarker.setOrigRange(De,K)),K}toString(){let{contents:De,directives:K,value:O}=this;if(O!=null)return O;let H=K.join("");return De.length>0&&((K.length>0||De[0].type===g.Type.COMMENT)&&(H+=`---
311
- `),H+=De.join("")),H[H.length-1]!==`
312
- `&&(H+=`
313
- `),H}},at=class extends g.Node{parse(De,K){this.context=De;let{src:O}=De,H=g.Node.endOfIdentifier(O,K+1);return this.valueRange=new g.Range(K+1,H),H=g.Node.endOfWhiteSpace(O,H),H=this.parseComment(H),H}},bt={CLIP:"CLIP",KEEP:"KEEP",STRIP:"STRIP"},Tt=class extends g.Node{constructor(De,K){super(De,K),this.blockIndent=null,this.chomping=bt.CLIP,this.header=null}get includesTrailingLines(){return this.chomping===bt.KEEP}get strValue(){if(!this.valueRange||!this.context)return null;let{start:De,end:K}=this.valueRange,{indent:O,src:H}=this.context;if(this.valueRange.isEmpty())return"";let le=null,Ne=H[K-1];for(;Ne===`
314
- `||Ne===" "||Ne===" ";){if(K-=1,K<=De){if(this.chomping===bt.KEEP)break;return""}Ne===`
315
- `&&(le=K),Ne=H[K-1]}let Me=K+1;le&&(this.chomping===bt.KEEP?(Me=le,K=this.valueRange.end):K=le);let Ce=O+this.blockIndent,je=this.type===g.Type.BLOCK_FOLDED,Ct=!0,Ot="",zt="",vn=!1;for(let on=De;on<K;++on){for(let sr=0;sr<Ce&&H[on]===" ";++sr)on+=1;let $n=H[on];if($n===`
316
- `)zt===`
317
- `?Ot+=`
318
- `:zt=`
319
- `;else{let sr=g.Node.endOfLine(H,on),xr=H.slice(on,sr);on=sr,je&&($n===" "||$n===" ")&&on<Me?(zt===" "?zt=`
320
- `:!vn&&!Ct&&zt===`
321
- `&&(zt=`
322
-
323
- `),Ot+=zt+xr,zt=sr<K&&H[sr]||"",vn=!0):(Ot+=zt+xr,zt=je&&on<Me?" ":`
324
- `,vn=!1),Ct&&xr!==""&&(Ct=!1)}}return this.chomping===bt.STRIP?Ot:Ot+`
325
- `}parseBlockHeader(De){let{src:K}=this.context,O=De+1,H="";for(;;){let le=K[O];switch(le){case"-":this.chomping=bt.STRIP;break;case"+":this.chomping=bt.KEEP;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":H+=le;break;default:return this.blockIndent=Number(H)||null,this.header=new g.Range(De,O),O}O+=1}}parseBlockValue(De){let{indent:K,src:O}=this.context,H=!!this.blockIndent,le=De,Ne=De,Me=1;for(let Ce=O[le];Ce===`
326
- `&&(le+=1,!g.Node.atDocumentBoundary(O,le));Ce=O[le]){let je=g.Node.endOfBlockIndent(O,K,le);if(je===null)break;let Ct=O[je],Ot=je-(le+K);if(this.blockIndent){if(Ct&&Ct!==`
327
- `&&Ot<this.blockIndent){if(O[je]==="#")break;if(!this.error){let zt=`Block scalars must not be less indented than their ${H?"explicit indentation indicator":"first line"}`;this.error=new g.YAMLSemanticError(this,zt)}}}else if(O[je]!==`
328
- `){if(Ot<Me){let zt="Block scalars with more-indented leading empty lines must use an explicit indentation indicator";this.error=new g.YAMLSemanticError(this,zt)}this.blockIndent=Ot}else Ot>Me&&(Me=Ot);O[je]===`
329
- `?le=je:le=Ne=g.Node.endOfLine(O,je)}return this.chomping!==bt.KEEP&&(le=O[Ne]?Ne+1:Ne),this.valueRange=new g.Range(De+1,le),le}parse(De,K){this.context=De;let{src:O}=De,H=this.parseBlockHeader(K);return H=g.Node.endOfWhiteSpace(O,H),H=this.parseComment(H),H=this.parseBlockValue(H),H}setOrigRanges(De,K){return K=super.setOrigRanges(De,K),this.header?this.header.setOrigRange(De,K):K}},It=class extends g.Node{constructor(De,K){super(De,K),this.items=null}prevNodeIsJsonLike(){let De=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.items.length,K=this.items[De-1];return!!K&&(K.jsonLike||K.type===g.Type.COMMENT&&this.prevNodeIsJsonLike(De-1))}parse(De,K){this.context=De;let{parseNode:O,src:H}=De,{indent:le,lineStart:Ne}=De,Me=H[K];this.items=[{char:Me,offset:K}];let Ce=g.Node.endOfWhiteSpace(H,K+1);for(Me=H[Ce];Me&&Me!=="]"&&Me!=="}";){switch(Me){case`
330
- `:{Ne=Ce+1;let je=g.Node.endOfWhiteSpace(H,Ne);if(H[je]===`
331
- `){let Ct=new W;Ne=Ct.parse({src:H},Ne),this.items.push(Ct)}if(Ce=g.Node.endOfIndent(H,Ne),Ce<=Ne+le&&(Me=H[Ce],Ce<Ne+le||Me!=="]"&&Me!=="}")){let Ct="Insufficient indentation in flow collection";this.error=new g.YAMLSemanticError(this,Ct)}}break;case",":this.items.push({char:Me,offset:Ce}),Ce+=1;break;case"#":{let je=new Pe;Ce=je.parse({src:H},Ce),this.items.push(je)}break;case"?":case":":{let je=H[Ce+1];if(je===`
332
- `||je===" "||je===" "||je===","||Me===":"&&this.prevNodeIsJsonLike()){this.items.push({char:Me,offset:Ce}),Ce+=1;break}}default:{let je=O({atLineStart:!1,inCollection:!1,inFlow:!0,indent:-1,lineStart:Ne,parent:this},Ce);if(!je)return this.valueRange=new g.Range(K,Ce),Ce;this.items.push(je),Ce=g.Node.normalizeOffset(H,je.range.end)}}Ce=g.Node.endOfWhiteSpace(H,Ce),Me=H[Ce]}return this.valueRange=new g.Range(K,Ce+1),Me&&(this.items.push({char:Me,offset:Ce}),Ce=g.Node.endOfWhiteSpace(H,Ce+1),Ce=this.parseComment(Ce)),Ce}setOrigRanges(De,K){return K=super.setOrigRanges(De,K),this.items.forEach(O=>{if(O instanceof g.Node)K=O.setOrigRanges(De,K);else if(De.length===0)O.origOffset=O.offset;else{let H=K;for(;H<De.length&&!(De[H]>O.offset);)++H;O.origOffset=O.offset+H,K=H}}),K}toString(){let{context:{src:De},items:K,range:O,value:H}=this;if(H!=null)return H;let le=K.filter(Ce=>Ce instanceof g.Node),Ne="",Me=O.start;return le.forEach(Ce=>{let je=De.slice(Me,Ce.range.start);Me=Ce.range.end,Ne+=je+String(Ce),Ne[Ne.length-1]===`
333
- `&&De[Me-1]!==`
334
- `&&De[Me]===`
335
- `&&(Me+=1)}),Ne+=De.slice(Me,O.end),g.Node.addStringTerminator(De,O.end,Ne)}},Lt=class extends g.Node{static endOfQuote(De,K){let O=De[K];for(;O&&O!=='"';)K+=O==="\\"?2:1,O=De[K];return K+1}get strValue(){if(!this.valueRange||!this.context)return null;let De=[],{start:K,end:O}=this.valueRange,{indent:H,src:le}=this.context;le[O-1]!=='"'&&De.push(new g.YAMLSyntaxError(this,'Missing closing "quote'));let Ne="";for(let Me=K+1;Me<O-1;++Me){let Ce=le[Me];if(Ce===`
336
- `){g.Node.atDocumentBoundary(le,Me+1)&&De.push(new g.YAMLSemanticError(this,"Document boundary indicators are not allowed within string values"));let{fold:je,offset:Ct,error:Ot}=g.Node.foldNewline(le,Me,H);Ne+=je,Me=Ct,Ot&&De.push(new g.YAMLSemanticError(this,"Multi-line double-quoted string needs to be sufficiently indented"))}else if(Ce==="\\")switch(Me+=1,le[Me]){case"0":Ne+="\0";break;case"a":Ne+="\x07";break;case"b":Ne+="\b";break;case"e":Ne+="\x1B";break;case"f":Ne+="\f";break;case"n":Ne+=`
337
- `;break;case"r":Ne+="\r";break;case"t":Ne+=" ";break;case"v":Ne+="\v";break;case"N":Ne+="…";break;case"_":Ne+=" ";break;case"L":Ne+="\u2028";break;case"P":Ne+="\u2029";break;case" ":Ne+=" ";break;case'"':Ne+='"';break;case"/":Ne+="/";break;case"\\":Ne+="\\";break;case" ":Ne+=" ";break;case"x":Ne+=this.parseCharCode(Me+1,2,De),Me+=2;break;case"u":Ne+=this.parseCharCode(Me+1,4,De),Me+=4;break;case"U":Ne+=this.parseCharCode(Me+1,8,De),Me+=8;break;case`
338
- `:for(;le[Me+1]===" "||le[Me+1]===" ";)Me+=1;break;default:De.push(new g.YAMLSyntaxError(this,`Invalid escape sequence ${le.substr(Me-1,2)}`)),Ne+="\\"+le[Me]}else if(Ce===" "||Ce===" "){let je=Me,Ct=le[Me+1];for(;Ct===" "||Ct===" ";)Me+=1,Ct=le[Me+1];Ct!==`
339
- `&&(Ne+=Me>je?le.slice(je,Me+1):Ce)}else Ne+=Ce}return De.length>0?{errors:De,str:Ne}:Ne}parseCharCode(De,K,O){let{src:H}=this.context,le=H.substr(De,K),Ne=le.length===K&&/^[0-9a-fA-F]+$/.test(le)?parseInt(le,16):NaN;return isNaN(Ne)?(O.push(new g.YAMLSyntaxError(this,`Invalid escape sequence ${H.substr(De-2,K+2)}`)),H.substr(De-2,K+2)):String.fromCodePoint(Ne)}parse(De,K){this.context=De;let{src:O}=De,H=Lt.endOfQuote(O,K+1);return this.valueRange=new g.Range(K,H),H=g.Node.endOfWhiteSpace(O,H),H=this.parseComment(H),H}},Gt=class extends g.Node{static endOfQuote(De,K){let O=De[K];for(;O;)if(O==="'"){if(De[K+1]!=="'")break;O=De[K+=2]}else O=De[K+=1];return K+1}get strValue(){if(!this.valueRange||!this.context)return null;let De=[],{start:K,end:O}=this.valueRange,{indent:H,src:le}=this.context;le[O-1]!=="'"&&De.push(new g.YAMLSyntaxError(this,"Missing closing 'quote"));let Ne="";for(let Me=K+1;Me<O-1;++Me){let Ce=le[Me];if(Ce===`
340
- `){g.Node.atDocumentBoundary(le,Me+1)&&De.push(new g.YAMLSemanticError(this,"Document boundary indicators are not allowed within string values"));let{fold:je,offset:Ct,error:Ot}=g.Node.foldNewline(le,Me,H);Ne+=je,Me=Ct,Ot&&De.push(new g.YAMLSemanticError(this,"Multi-line single-quoted string needs to be sufficiently indented"))}else if(Ce==="'")Ne+=Ce,Me+=1,le[Me]!=="'"&&De.push(new g.YAMLSyntaxError(this,"Unescaped single quote? This should not happen."));else if(Ce===" "||Ce===" "){let je=Me,Ct=le[Me+1];for(;Ct===" "||Ct===" ";)Me+=1,Ct=le[Me+1];Ct!==`
341
- `&&(Ne+=Me>je?le.slice(je,Me+1):Ce)}else Ne+=Ce}return De.length>0?{errors:De,str:Ne}:Ne}parse(De,K){this.context=De;let{src:O}=De,H=Gt.endOfQuote(O,K+1);return this.valueRange=new g.Range(K,H),H=g.Node.endOfWhiteSpace(O,H),H=this.parseComment(H),H}};function Wt(De,K){switch(De){case g.Type.ALIAS:return new at(De,K);case g.Type.BLOCK_FOLDED:case g.Type.BLOCK_LITERAL:return new Tt(De,K);case g.Type.FLOW_MAP:case g.Type.FLOW_SEQ:return new It(De,K);case g.Type.MAP_KEY:case g.Type.MAP_VALUE:case g.Type.SEQ_ITEM:return new Se(De,K);case g.Type.COMMENT:case g.Type.PLAIN:return new g.PlainValue(De,K);case g.Type.QUOTE_DOUBLE:return new Lt(De,K);case g.Type.QUOTE_SINGLE:return new Gt(De,K);default:return null}}var Xt=class{static parseType(De,K,O){switch(De[K]){case"*":return g.Type.ALIAS;case">":return g.Type.BLOCK_FOLDED;case"|":return g.Type.BLOCK_LITERAL;case"{":return g.Type.FLOW_MAP;case"[":return g.Type.FLOW_SEQ;case"?":return!O&&g.Node.atBlank(De,K+1,!0)?g.Type.MAP_KEY:g.Type.PLAIN;case":":return!O&&g.Node.atBlank(De,K+1,!0)?g.Type.MAP_VALUE:g.Type.PLAIN;case"-":return!O&&g.Node.atBlank(De,K+1,!0)?g.Type.SEQ_ITEM:g.Type.PLAIN;case'"':return g.Type.QUOTE_DOUBLE;case"'":return g.Type.QUOTE_SINGLE;default:return g.Type.PLAIN}}constructor(){let De=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{atLineStart:K,inCollection:O,inFlow:H,indent:le,lineStart:Ne,parent:Me}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};g._defineProperty(this,"parseNode",(Ce,je)=>{if(g.Node.atDocumentBoundary(this.src,je))return null;let Ct=new Xt(this,Ce),{props:Ot,type:zt,valueStart:vn}=Ct.parseProps(je),on=Wt(zt,Ot),$n=on.parse(Ct,vn);if(on.range=new g.Range(je,$n),$n<=je&&(on.error=new Error("Node#parse consumed no characters"),on.error.parseEnd=$n,on.error.source=on,on.range.end=je+1),Ct.nodeStartsCollection(on)){!on.error&&!Ct.atLineStart&&Ct.parent.type===g.Type.DOCUMENT&&(on.error=new g.YAMLSyntaxError(on,"Block collection must not have preceding content here (e.g. directives-end indicator)"));let sr=new et(on);return $n=sr.parse(new Xt(Ct),$n),sr.range=new g.Range(je,$n),sr}return on}),this.atLineStart=K??(De.atLineStart||!1),this.inCollection=O??(De.inCollection||!1),this.inFlow=H??(De.inFlow||!1),this.indent=le??De.indent,this.lineStart=Ne??De.lineStart,this.parent=Me??(De.parent||{}),this.root=De.root,this.src=De.src}nodeStartsCollection(De){let{inCollection:K,inFlow:O,src:H}=this;if(K||O)return!1;if(De instanceof Se)return!0;let le=De.range.end;return H[le]===`
342
- `||H[le-1]===`
343
- `?!1:(le=g.Node.endOfWhiteSpace(H,le),H[le]===":")}parseProps(De){let{inFlow:K,parent:O,src:H}=this,le=[],Ne=!1;De=this.atLineStart?g.Node.endOfIndent(H,De):g.Node.endOfWhiteSpace(H,De);let Me=H[De];for(;Me===g.Char.ANCHOR||Me===g.Char.COMMENT||Me===g.Char.TAG||Me===`
344
- `;){if(Me===`
345
- `){let je=De,Ct;do Ct=je+1,je=g.Node.endOfIndent(H,Ct);while(H[je]===`
346
- `);let Ot=je-(Ct+this.indent),zt=O.type===g.Type.SEQ_ITEM&&O.context.atLineStart;if(H[je]!=="#"&&!g.Node.nextNodeIsIndented(H[je],Ot,!zt))break;this.atLineStart=!0,this.lineStart=Ct,Ne=!1,De=je}else if(Me===g.Char.COMMENT){let je=g.Node.endOfLine(H,De+1);le.push(new g.Range(De,je)),De=je}else{let je=g.Node.endOfIdentifier(H,De+1);Me===g.Char.TAG&&H[je]===","&&/^[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+,\d\d\d\d(-\d\d){0,2}\/\S/.test(H.slice(De+1,je+13))&&(je=g.Node.endOfIdentifier(H,je+5)),le.push(new g.Range(De,je)),Ne=!0,De=g.Node.endOfWhiteSpace(H,je)}Me=H[De]}Ne&&Me===":"&&g.Node.atBlank(H,De+1,!0)&&(De-=1);let Ce=Xt.parseType(H,De,K);return{props:le,type:Ce,valueStart:De}}};function Dn(De){let K=[];De.indexOf("\r")!==-1&&(De=De.replace(/\r\n?/g,(le,Ne)=>(le.length>1&&K.push(Ne),`
347
- `)));let O=[],H=0;do{let le=new Rt,Ne=new Xt({src:De});H=le.parse(Ne,H),O.push(le)}while(H<De.length);return O.setOrigRanges=()=>{if(K.length===0)return!1;for(let Ne=1;Ne<K.length;++Ne)K[Ne]-=Ne;let le=0;for(let Ne=0;Ne<O.length;++Ne)le=O[Ne].setOrigRanges(K,le);return K.splice(0,K.length),!0},O.toString=()=>O.join(`...
348
- `),O}Y.parse=Dn}}),Zi=c({"node_modules/yaml/dist/resolveSeq-d03cb037.js"(Y){M();var g=Gr();function W(pe,de,We){return We?`#${We.replace(/[\s\S]^/gm,`$&${de}#`)}
349
- ${de}${pe}`:pe}function Se(pe,de,We){return We?We.indexOf(`
350
- `)===-1?`${pe} #${We}`:`${pe}
351
- `+We.replace(/^/gm,`${de||""}#`):pe}var Pe=class{};function Be(pe,de,We){if(Array.isArray(pe))return pe.map((Ye,tt)=>Be(Ye,String(tt),We));if(pe&&typeof pe.toJSON=="function"){let Ye=We&&We.anchors&&We.anchors.get(pe);Ye&&(We.onCreate=nt=>{Ye.res=nt,delete We.onCreate});let tt=pe.toJSON(de,We);return Ye&&We.onCreate&&We.onCreate(tt),tt}return(!We||!We.keep)&&typeof pe=="bigint"?Number(pe):pe}var et=class extends Pe{constructor(pe){super(),this.value=pe}toJSON(pe,de){return de&&de.keep?this.value:Be(this.value,pe,de)}toString(){return String(this.value)}};function gt(pe,de,We){let Ye=We;for(let tt=de.length-1;tt>=0;--tt){let nt=de[tt];if(Number.isInteger(nt)&&nt>=0){let St=[];St[nt]=Ye,Ye=St}else{let St={};Object.defineProperty(St,nt,{value:Ye,writable:!0,enumerable:!0,configurable:!0}),Ye=St}}return pe.createNode(Ye,!1)}var Rt=pe=>pe==null||typeof pe=="object"&&pe[Symbol.iterator]().next().done,at=class extends Pe{constructor(pe){super(),g._defineProperty(this,"items",[]),this.schema=pe}addIn(pe,de){if(Rt(pe))this.add(de);else{let[We,...Ye]=pe,tt=this.get(We,!0);if(tt instanceof at)tt.addIn(Ye,de);else if(tt===void 0&&this.schema)this.set(We,gt(this.schema,Ye,de));else throw new Error(`Expected YAML collection at ${We}. Remaining path: ${Ye}`)}}deleteIn(pe){let[de,...We]=pe;if(We.length===0)return this.delete(de);let Ye=this.get(de,!0);if(Ye instanceof at)return Ye.deleteIn(We);throw new Error(`Expected YAML collection at ${de}. Remaining path: ${We}`)}getIn(pe,de){let[We,...Ye]=pe,tt=this.get(We,!0);return Ye.length===0?!de&&tt instanceof et?tt.value:tt:tt instanceof at?tt.getIn(Ye,de):void 0}hasAllNullValues(){return this.items.every(pe=>{if(!pe||pe.type!=="PAIR")return!1;let de=pe.value;return de==null||de instanceof et&&de.value==null&&!de.commentBefore&&!de.comment&&!de.tag})}hasIn(pe){let[de,...We]=pe;if(We.length===0)return this.has(de);let Ye=this.get(de,!0);return Ye instanceof at?Ye.hasIn(We):!1}setIn(pe,de){let[We,...Ye]=pe;if(Ye.length===0)this.set(We,de);else{let tt=this.get(We,!0);if(tt instanceof at)tt.setIn(Ye,de);else if(tt===void 0&&this.schema)this.set(We,gt(this.schema,Ye,de));else throw new Error(`Expected YAML collection at ${We}. Remaining path: ${Ye}`)}}toJSON(){return null}toString(pe,de,We,Ye){let{blockItem:tt,flowChars:nt,isMap:St,itemIndent:Nt}=de,{indent:Kt,indentStep:rn,stringify:dn}=pe,kn=this.type===g.Type.FLOW_MAP||this.type===g.Type.FLOW_SEQ||pe.inFlow;kn&&(Nt+=rn);let lr=St&&this.hasAllNullValues();pe=Object.assign({},pe,{allNullValues:lr,indent:Nt,inFlow:kn,type:null});let cr=!1,jn=!1,ir=this.items.reduce((qr,ur,Jr)=>{let gr;ur&&(!cr&&ur.spaceBefore&&qr.push({type:"comment",str:""}),ur.commentBefore&&ur.commentBefore.match(/^.*$/gm).forEach(eo=>{qr.push({type:"comment",str:`#${eo}`})}),ur.comment&&(gr=ur.comment),kn&&(!cr&&ur.spaceBefore||ur.commentBefore||ur.comment||ur.key&&(ur.key.commentBefore||ur.key.comment)||ur.value&&(ur.value.commentBefore||ur.value.comment))&&(jn=!0)),cr=!1;let Fr=dn(ur,pe,()=>gr=null,()=>cr=!0);return kn&&!jn&&Fr.includes(`
352
- `)&&(jn=!0),kn&&Jr<this.items.length-1&&(Fr+=","),Fr=Se(Fr,Nt,gr),cr&&(gr||kn)&&(cr=!1),qr.push({type:"item",str:Fr}),qr},[]),er;if(ir.length===0)er=nt.start+nt.end;else if(kn){let{start:qr,end:ur}=nt,Jr=ir.map(gr=>gr.str);if(jn||Jr.reduce((gr,Fr)=>gr+Fr.length+2,2)>at.maxFlowStringSingleLineLength){er=qr;for(let gr of Jr)er+=gr?`
353
- ${rn}${Kt}${gr}`:`
354
- `;er+=`
355
- ${Kt}${ur}`}else er=`${qr} ${Jr.join(" ")} ${ur}`}else{let qr=ir.map(tt);er=qr.shift();for(let ur of qr)er+=ur?`
356
- ${Kt}${ur}`:`
357
- `}return this.comment?(er+=`
358
- `+this.comment.replace(/^/gm,`${Kt}#`),We&&We()):cr&&Ye&&Ye(),er}};g._defineProperty(at,"maxFlowStringSingleLineLength",60);function bt(pe){let de=pe instanceof et?pe.value:pe;return de&&typeof de=="string"&&(de=Number(de)),Number.isInteger(de)&&de>=0?de:null}var Tt=class extends at{add(pe){this.items.push(pe)}delete(pe){let de=bt(pe);return typeof de!="number"?!1:this.items.splice(de,1).length>0}get(pe,de){let We=bt(pe);if(typeof We!="number")return;let Ye=this.items[We];return!de&&Ye instanceof et?Ye.value:Ye}has(pe){let de=bt(pe);return typeof de=="number"&&de<this.items.length}set(pe,de){let We=bt(pe);if(typeof We!="number")throw new Error(`Expected a valid index, not ${pe}.`);this.items[We]=de}toJSON(pe,de){let We=[];de&&de.onCreate&&de.onCreate(We);let Ye=0;for(let tt of this.items)We.push(Be(tt,String(Ye++),de));return We}toString(pe,de,We){return pe?super.toString(pe,{blockItem:Ye=>Ye.type==="comment"?Ye.str:`- ${Ye.str}`,flowChars:{start:"[",end:"]"},isMap:!1,itemIndent:(pe.indent||"")+" "},de,We):JSON.stringify(this)}},It=(pe,de,We)=>de===null?"":typeof de!="object"?String(de):pe instanceof Pe&&We&&We.doc?pe.toString({anchors:Object.create(null),doc:We.doc,indent:"",indentStep:We.indentStep,inFlow:!0,inStringifyKey:!0,stringify:We.stringify}):JSON.stringify(de),Lt=class extends Pe{constructor(pe){let de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;super(),this.key=pe,this.value=de,this.type=Lt.Type.PAIR}get commentBefore(){return this.key instanceof Pe?this.key.commentBefore:void 0}set commentBefore(pe){if(this.key==null&&(this.key=new et(null)),this.key instanceof Pe)this.key.commentBefore=pe;else{let de="Pair.commentBefore is an alias for Pair.key.commentBefore. To set it, the key must be a Node.";throw new Error(de)}}addToJSMap(pe,de){let We=Be(this.key,"",pe);if(de instanceof Map){let Ye=Be(this.value,We,pe);de.set(We,Ye)}else if(de instanceof Set)de.add(We);else{let Ye=It(this.key,We,pe),tt=Be(this.value,Ye,pe);Ye in de?Object.defineProperty(de,Ye,{value:tt,writable:!0,enumerable:!0,configurable:!0}):de[Ye]=tt}return de}toJSON(pe,de){let We=de&&de.mapAsMap?new Map:{};return this.addToJSMap(de,We)}toString(pe,de,We){if(!pe||!pe.doc)return JSON.stringify(this);let{indent:Ye,indentSeq:tt,simpleKeys:nt}=pe.doc.options,{key:St,value:Nt}=this,Kt=St instanceof Pe&&St.comment;if(nt){if(Kt)throw new Error("With simple keys, key nodes cannot have comments");if(St instanceof at){let gr="With simple keys, collection cannot be used as a key value";throw new Error(gr)}}let rn=!nt&&(!St||Kt||(St instanceof Pe?St instanceof at||St.type===g.Type.BLOCK_FOLDED||St.type===g.Type.BLOCK_LITERAL:typeof St=="object")),{doc:dn,indent:kn,indentStep:lr,stringify:cr}=pe;pe=Object.assign({},pe,{implicitKey:!rn,indent:kn+lr});let jn=!1,ir=cr(St,pe,()=>Kt=null,()=>jn=!0);if(ir=Se(ir,pe.indent,Kt),!rn&&ir.length>1024){if(nt)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");rn=!0}if(pe.allNullValues&&!nt)return this.comment?(ir=Se(ir,pe.indent,this.comment),de&&de()):jn&&!Kt&&We&&We(),pe.inFlow&&!rn?ir:`? ${ir}`;ir=rn?`? ${ir}
359
- ${kn}:`:`${ir}:`,this.comment&&(ir=Se(ir,pe.indent,this.comment),de&&de());let er="",qr=null;if(Nt instanceof Pe){if(Nt.spaceBefore&&(er=`
360
- `),Nt.commentBefore){let gr=Nt.commentBefore.replace(/^/gm,`${pe.indent}#`);er+=`
361
- ${gr}`}qr=Nt.comment}else Nt&&typeof Nt=="object"&&(Nt=dn.schema.createNode(Nt,!0));pe.implicitKey=!1,!rn&&!this.comment&&Nt instanceof et&&(pe.indentAtStart=ir.length+1),jn=!1,!tt&&Ye>=2&&!pe.inFlow&&!rn&&Nt instanceof Tt&&Nt.type!==g.Type.FLOW_SEQ&&!Nt.tag&&!dn.anchors.getName(Nt)&&(pe.indent=pe.indent.substr(2));let ur=cr(Nt,pe,()=>qr=null,()=>jn=!0),Jr=" ";return er||this.comment?Jr=`${er}
362
- ${pe.indent}`:!rn&&Nt instanceof at?(!(ur[0]==="["||ur[0]==="{")||ur.includes(`
363
- `))&&(Jr=`
364
- ${pe.indent}`):ur[0]===`
365
- `&&(Jr=""),jn&&!qr&&We&&We(),Se(ir+Jr+ur,pe.indent,qr)}};g._defineProperty(Lt,"Type",{PAIR:"PAIR",MERGE_PAIR:"MERGE_PAIR"});var Gt=(pe,de)=>{if(pe instanceof Wt){let We=de.get(pe.source);return We.count*We.aliasCount}else if(pe instanceof at){let We=0;for(let Ye of pe.items){let tt=Gt(Ye,de);tt>We&&(We=tt)}return We}else if(pe instanceof Lt){let We=Gt(pe.key,de),Ye=Gt(pe.value,de);return Math.max(We,Ye)}return 1},Wt=class extends Pe{static stringify(pe,de){let{range:We,source:Ye}=pe,{anchors:tt,doc:nt,implicitKey:St,inStringifyKey:Nt}=de,Kt=Object.keys(tt).find(dn=>tt[dn]===Ye);if(!Kt&&Nt&&(Kt=nt.anchors.getName(Ye)||nt.anchors.newName()),Kt)return`*${Kt}${St?" ":""}`;let rn=nt.anchors.getName(Ye)?"Alias node must be after source node":"Source node not found for alias node";throw new Error(`${rn} [${We}]`)}constructor(pe){super(),this.source=pe,this.type=g.Type.ALIAS}set tag(pe){throw new Error("Alias nodes cannot have tags")}toJSON(pe,de){if(!de)return Be(this.source,pe,de);let{anchors:We,maxAliasCount:Ye}=de,tt=We.get(this.source);if(!tt||tt.res===void 0){let nt="This should not happen: Alias anchor was not resolved?";throw this.cstNode?new g.YAMLReferenceError(this.cstNode,nt):new ReferenceError(nt)}if(Ye>=0&&(tt.count+=1,tt.aliasCount===0&&(tt.aliasCount=Gt(this.source,We)),tt.count*tt.aliasCount>Ye)){let nt="Excessive alias count indicates a resource exhaustion attack";throw this.cstNode?new g.YAMLReferenceError(this.cstNode,nt):new ReferenceError(nt)}return tt.res}toString(pe){return Wt.stringify(this,pe)}};g._defineProperty(Wt,"default",!0);function Xt(pe,de){let We=de instanceof et?de.value:de;for(let Ye of pe)if(Ye instanceof Lt&&(Ye.key===de||Ye.key===We||Ye.key&&Ye.key.value===We))return Ye}var Dn=class extends at{add(pe,de){pe?pe instanceof Lt||(pe=new Lt(pe.key||pe,pe.value)):pe=new Lt(pe);let We=Xt(this.items,pe.key),Ye=this.schema&&this.schema.sortMapEntries;if(We)if(de)We.value=pe.value;else throw new Error(`Key ${pe.key} already set`);else if(Ye){let tt=this.items.findIndex(nt=>Ye(pe,nt)<0);tt===-1?this.items.push(pe):this.items.splice(tt,0,pe)}else this.items.push(pe)}delete(pe){let de=Xt(this.items,pe);return de?this.items.splice(this.items.indexOf(de),1).length>0:!1}get(pe,de){let We=Xt(this.items,pe),Ye=We&&We.value;return!de&&Ye instanceof et?Ye.value:Ye}has(pe){return!!Xt(this.items,pe)}set(pe,de){this.add(new Lt(pe,de),!0)}toJSON(pe,de,We){let Ye=We?new We:de&&de.mapAsMap?new Map:{};de&&de.onCreate&&de.onCreate(Ye);for(let tt of this.items)tt.addToJSMap(de,Ye);return Ye}toString(pe,de,We){if(!pe)return JSON.stringify(this);for(let Ye of this.items)if(!(Ye instanceof Lt))throw new Error(`Map items must all be pairs; found ${JSON.stringify(Ye)} instead`);return super.toString(pe,{blockItem:Ye=>Ye.str,flowChars:{start:"{",end:"}"},isMap:!0,itemIndent:pe.indent||""},de,We)}},De="<<",K=class extends Lt{constructor(pe){if(pe instanceof Lt){let de=pe.value;de instanceof Tt||(de=new Tt,de.items.push(pe.value),de.range=pe.value.range),super(pe.key,de),this.range=pe.range}else super(new et(De),new Tt);this.type=Lt.Type.MERGE_PAIR}addToJSMap(pe,de){for(let{source:We}of this.value.items){if(!(We instanceof Dn))throw new Error("Merge sources must be maps");let Ye=We.toJSON(null,pe,Map);for(let[tt,nt]of Ye)de instanceof Map?de.has(tt)||de.set(tt,nt):de instanceof Set?de.add(tt):Object.prototype.hasOwnProperty.call(de,tt)||Object.defineProperty(de,tt,{value:nt,writable:!0,enumerable:!0,configurable:!0})}return de}toString(pe,de){let We=this.value;if(We.items.length>1)return super.toString(pe,de);this.value=We.items[0];let Ye=super.toString(pe,de);return this.value=We,Ye}},O={defaultType:g.Type.BLOCK_LITERAL,lineWidth:76},H={trueStr:"true",falseStr:"false"},le={asBigInt:!1},Ne={nullStr:"null"},Me={defaultType:g.Type.PLAIN,doubleQuoted:{jsonEncoding:!1,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}};function Ce(pe,de,We){for(let{format:Ye,test:tt,resolve:nt}of de)if(tt){let St=pe.match(tt);if(St){let Nt=nt.apply(null,St);return Nt instanceof et||(Nt=new et(Nt)),Ye&&(Nt.format=Ye),Nt}}return We&&(pe=We(pe)),new et(pe)}var je="flow",Ct="block",Ot="quoted",zt=(pe,de)=>{let We=pe[de+1];for(;We===" "||We===" ";){do We=pe[de+=1];while(We&&We!==`
366
- `);We=pe[de+1]}return de};function vn(pe,de,We,Ye){let{indentAtStart:tt,lineWidth:nt=80,minContentWidth:St=20,onFold:Nt,onOverflow:Kt}=Ye;if(!nt||nt<0)return pe;let rn=Math.max(1+St,1+nt-de.length);if(pe.length<=rn)return pe;let dn=[],kn={},lr=nt-de.length;typeof tt=="number"&&(tt>nt-Math.max(2,St)?dn.push(0):lr=nt-tt);let cr,jn,ir=!1,er=-1,qr=-1,ur=-1;We===Ct&&(er=zt(pe,er),er!==-1&&(lr=er+rn));for(let gr;gr=pe[er+=1];){if(We===Ot&&gr==="\\"){switch(qr=er,pe[er+1]){case"x":er+=3;break;case"u":er+=5;break;case"U":er+=9;break;default:er+=1}ur=er}if(gr===`
367
- `)We===Ct&&(er=zt(pe,er)),lr=er+rn,cr=void 0;else{if(gr===" "&&jn&&jn!==" "&&jn!==`
368
- `&&jn!==" "){let Fr=pe[er+1];Fr&&Fr!==" "&&Fr!==`
369
- `&&Fr!==" "&&(cr=er)}if(er>=lr)if(cr)dn.push(cr),lr=cr+rn,cr=void 0;else if(We===Ot){for(;jn===" "||jn===" ";)jn=gr,gr=pe[er+=1],ir=!0;let Fr=er>ur+1?er-2:qr-1;if(kn[Fr])return pe;dn.push(Fr),kn[Fr]=!0,lr=Fr+rn,cr=void 0}else ir=!0}jn=gr}if(ir&&Kt&&Kt(),dn.length===0)return pe;Nt&&Nt();let Jr=pe.slice(0,dn[0]);for(let gr=0;gr<dn.length;++gr){let Fr=dn[gr],eo=dn[gr+1]||pe.length;Fr===0?Jr=`
370
- ${de}${pe.slice(0,eo)}`:(We===Ot&&kn[Fr]&&(Jr+=`${pe[Fr]}\\`),Jr+=`
371
- ${de}${pe.slice(Fr+1,eo)}`)}return Jr}var on=pe=>{let{indentAtStart:de}=pe;return de?Object.assign({indentAtStart:de},Me.fold):Me.fold},$n=pe=>/^(%|---|\.\.\.)/m.test(pe);function sr(pe,de,We){if(!de||de<0)return!1;let Ye=de-We,tt=pe.length;if(tt<=Ye)return!1;for(let nt=0,St=0;nt<tt;++nt)if(pe[nt]===`
372
- `){if(nt-St>Ye)return!0;if(St=nt+1,tt-St<=Ye)return!1}return!0}function xr(pe,de){let{implicitKey:We}=de,{jsonEncoding:Ye,minMultiLineLength:tt}=Me.doubleQuoted,nt=JSON.stringify(pe);if(Ye)return nt;let St=de.indent||($n(pe)?" ":""),Nt="",Kt=0;for(let rn=0,dn=nt[rn];dn;dn=nt[++rn])if(dn===" "&&nt[rn+1]==="\\"&&nt[rn+2]==="n"&&(Nt+=nt.slice(Kt,rn)+"\\ ",rn+=1,Kt=rn,dn="\\"),dn==="\\")switch(nt[rn+1]){case"u":{Nt+=nt.slice(Kt,rn);let kn=nt.substr(rn+2,4);switch(kn){case"0000":Nt+="\\0";break;case"0007":Nt+="\\a";break;case"000b":Nt+="\\v";break;case"001b":Nt+="\\e";break;case"0085":Nt+="\\N";break;case"00a0":Nt+="\\_";break;case"2028":Nt+="\\L";break;case"2029":Nt+="\\P";break;default:kn.substr(0,2)==="00"?Nt+="\\x"+kn.substr(2):Nt+=nt.substr(rn,6)}rn+=5,Kt=rn+1}break;case"n":if(We||nt[rn+2]==='"'||nt.length<tt)rn+=1;else{for(Nt+=nt.slice(Kt,rn)+`
373
-
374
- `;nt[rn+2]==="\\"&&nt[rn+3]==="n"&&nt[rn+4]!=='"';)Nt+=`
375
- `,rn+=2;Nt+=St,nt[rn+2]===" "&&(Nt+="\\"),rn+=1,Kt=rn+1}break;default:rn+=1}return Nt=Kt?Nt+nt.slice(Kt):nt,We?Nt:vn(Nt,St,Ot,on(de))}function di(pe,de){if(de.implicitKey){if(/\n/.test(pe))return xr(pe,de)}else if(/[ \t]\n|\n[ \t]/.test(pe))return xr(pe,de);let We=de.indent||($n(pe)?" ":""),Ye="'"+pe.replace(/'/g,"''").replace(/\n+/g,`$&
376
- ${We}`)+"'";return de.implicitKey?Ye:vn(Ye,We,je,on(de))}function ui(pe,de,We,Ye){let{comment:tt,type:nt,value:St}=pe;if(/\n[\t ]+$/.test(St)||/^\s*$/.test(St))return xr(St,de);let Nt=de.indent||(de.forceBlockIndent||$n(St)?" ":""),Kt=Nt?"2":"1",rn=nt===g.Type.BLOCK_FOLDED?!1:nt===g.Type.BLOCK_LITERAL?!0:!sr(St,Me.fold.lineWidth,Nt.length),dn=rn?"|":">";if(!St)return dn+`
377
- `;let kn="",lr="";if(St=St.replace(/[\n\t ]*$/,jn=>{let ir=jn.indexOf(`
378
- `);return ir===-1?dn+="-":(St===jn||ir!==jn.length-1)&&(dn+="+",Ye&&Ye()),lr=jn.replace(/\n$/,""),""}).replace(/^[\n ]*/,jn=>{jn.indexOf(" ")!==-1&&(dn+=Kt);let ir=jn.match(/ +$/);return ir?(kn=jn.slice(0,-ir[0].length),ir[0]):(kn=jn,"")}),lr&&(lr=lr.replace(/\n+(?!\n|$)/g,`$&${Nt}`)),kn&&(kn=kn.replace(/\n+/g,`$&${Nt}`)),tt&&(dn+=" #"+tt.replace(/ ?[\r\n]+/g," "),We&&We()),!St)return`${dn}${Kt}
379
- ${Nt}${lr}`;if(rn)return St=St.replace(/\n+/g,`$&${Nt}`),`${dn}
380
- ${Nt}${kn}${St}${lr}`;St=St.replace(/\n+/g,`
381
- $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${Nt}`);let cr=vn(`${kn}${St}${lr}`,Nt,Ct,Me.fold);return`${dn}
382
- ${Nt}${cr}`}function vt(pe,de,We,Ye){let{comment:tt,type:nt,value:St}=pe,{actualString:Nt,implicitKey:Kt,indent:rn,inFlow:dn}=de;if(Kt&&/[\n[\]{},]/.test(St)||dn&&/[[\]{},]/.test(St))return xr(St,de);if(!St||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(St))return Kt||dn||St.indexOf(`
383
- `)===-1?St.indexOf('"')!==-1&&St.indexOf("'")===-1?di(St,de):xr(St,de):ui(pe,de,We,Ye);if(!Kt&&!dn&&nt!==g.Type.PLAIN&&St.indexOf(`
384
- `)!==-1)return ui(pe,de,We,Ye);if(rn===""&&$n(St))return de.forceBlockIndent=!0,ui(pe,de,We,Ye);let kn=St.replace(/\n+/g,`$&
385
- ${rn}`);if(Nt){let{tags:cr}=de.doc.schema;if(typeof Ce(kn,cr,cr.scalarFallback).value!="string")return xr(St,de)}let lr=Kt?kn:vn(kn,rn,je,on(de));return tt&&!dn&&(lr.indexOf(`
386
- `)!==-1||tt.indexOf(`
387
- `)!==-1)?(We&&We(),W(lr,rn,tt)):lr}function tn(pe,de,We,Ye){let{defaultType:tt}=Me,{implicitKey:nt,inFlow:St}=de,{type:Nt,value:Kt}=pe;typeof Kt!="string"&&(Kt=String(Kt),pe=Object.assign({},pe,{value:Kt}));let rn=kn=>{switch(kn){case g.Type.BLOCK_FOLDED:case g.Type.BLOCK_LITERAL:return ui(pe,de,We,Ye);case g.Type.QUOTE_DOUBLE:return xr(Kt,de);case g.Type.QUOTE_SINGLE:return di(Kt,de);case g.Type.PLAIN:return vt(pe,de,We,Ye);default:return null}};(Nt!==g.Type.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(Kt)||(nt||St)&&(Nt===g.Type.BLOCK_FOLDED||Nt===g.Type.BLOCK_LITERAL))&&(Nt=g.Type.QUOTE_DOUBLE);let dn=rn(Nt);if(dn===null&&(dn=rn(tt),dn===null))throw new Error(`Unsupported default string type ${tt}`);return dn}function hn(pe){let{format:de,minFractionDigits:We,tag:Ye,value:tt}=pe;if(typeof tt=="bigint")return String(tt);if(!isFinite(tt))return isNaN(tt)?".nan":tt<0?"-.inf":".inf";let nt=JSON.stringify(tt);if(!de&&We&&(!Ye||Ye==="tag:yaml.org,2002:float")&&/^\d/.test(nt)){let St=nt.indexOf(".");St<0&&(St=nt.length,nt+=".");let Nt=We-(nt.length-St-1);for(;Nt-- >0;)nt+="0"}return nt}function Cn(pe,de){let We,Ye;switch(de.type){case g.Type.FLOW_MAP:We="}",Ye="flow map";break;case g.Type.FLOW_SEQ:We="]",Ye="flow sequence";break;default:pe.push(new g.YAMLSemanticError(de,"Not a flow collection!?"));return}let tt;for(let nt=de.items.length-1;nt>=0;--nt){let St=de.items[nt];if(!St||St.type!==g.Type.COMMENT){tt=St;break}}if(tt&&tt.char!==We){let nt=`Expected ${Ye} to end with ${We}`,St;typeof tt.offset=="number"?(St=new g.YAMLSemanticError(de,nt),St.offset=tt.offset+1):(St=new g.YAMLSemanticError(tt,nt),tt.range&&tt.range.end&&(St.offset=tt.range.end-tt.range.start)),pe.push(St)}}function Gn(pe,de){let We=de.context.src[de.range.start-1];if(We!==`
388
- `&&We!==" "&&We!==" "){let Ye="Comments must be separated from other tokens by white space characters";pe.push(new g.YAMLSemanticError(de,Ye))}}function or(pe,de){let We=String(de),Ye=We.substr(0,8)+"..."+We.substr(-8);return new g.YAMLSemanticError(pe,`The "${Ye}" key is too long`)}function Li(pe,de){for(let{afterKey:We,before:Ye,comment:tt}of de){let nt=pe.items[Ye];nt?(We&&nt.value&&(nt=nt.value),tt===void 0?(We||!nt.commentBefore)&&(nt.spaceBefore=!0):nt.commentBefore?nt.commentBefore+=`
389
- `+tt:nt.commentBefore=tt):tt!==void 0&&(pe.comment?pe.comment+=`
390
- `+tt:pe.comment=tt)}}function Ui(pe,de){let We=de.strValue;return We?typeof We=="string"?We:(We.errors.forEach(Ye=>{Ye.source||(Ye.source=de),pe.errors.push(Ye)}),We.str):""}function Wi(pe,de){let{handle:We,suffix:Ye}=de.tag,tt=pe.tagPrefixes.find(nt=>nt.handle===We);if(!tt){let nt=pe.getDefaults().tagPrefixes;if(nt&&(tt=nt.find(St=>St.handle===We)),!tt)throw new g.YAMLSemanticError(de,`The ${We} tag handle is non-default and was not declared.`)}if(!Ye)throw new g.YAMLSemanticError(de,`The ${We} tag has no suffix.`);if(We==="!"&&(pe.version||pe.options.version)==="1.0"){if(Ye[0]==="^")return pe.warnings.push(new g.YAMLWarning(de,"YAML 1.0 ^ tag expansion is not supported")),Ye;if(/[:/]/.test(Ye)){let nt=Ye.match(/^([a-z0-9-]+)\/(.*)/i);return nt?`tag:${nt[1]}.yaml.org,2002:${nt[2]}`:`tag:${Ye}`}}return tt.prefix+decodeURIComponent(Ye)}function ki(pe,de){let{tag:We,type:Ye}=de,tt=!1;if(We){let{handle:nt,suffix:St,verbatim:Nt}=We;if(Nt){if(Nt!=="!"&&Nt!=="!!")return Nt;let Kt=`Verbatim tags aren't resolved, so ${Nt} is invalid.`;pe.errors.push(new g.YAMLSemanticError(de,Kt))}else if(nt==="!"&&!St)tt=!0;else try{return Wi(pe,de)}catch(Kt){pe.errors.push(Kt)}}switch(Ye){case g.Type.BLOCK_FOLDED:case g.Type.BLOCK_LITERAL:case g.Type.QUOTE_DOUBLE:case g.Type.QUOTE_SINGLE:return g.defaultTags.STR;case g.Type.FLOW_MAP:case g.Type.MAP:return g.defaultTags.MAP;case g.Type.FLOW_SEQ:case g.Type.SEQ:return g.defaultTags.SEQ;case g.Type.PLAIN:return tt?g.defaultTags.STR:null;default:return null}}function ia(pe,de,We){let{tags:Ye}=pe.schema,tt=[];for(let St of Ye)if(St.tag===We)if(St.test)tt.push(St);else{let Nt=St.resolve(pe,de);return Nt instanceof at?Nt:new et(Nt)}let nt=Ui(pe,de);return typeof nt=="string"&&tt.length>0?Ce(nt,tt,Ye.scalarFallback):null}function Za(pe){let{type:de}=pe;switch(de){case g.Type.FLOW_MAP:case g.Type.MAP:return g.defaultTags.MAP;case g.Type.FLOW_SEQ:case g.Type.SEQ:return g.defaultTags.SEQ;default:return g.defaultTags.STR}}function $o(pe,de,We){try{let Ye=ia(pe,de,We);if(Ye)return We&&de.tag&&(Ye.tag=We),Ye}catch(Ye){return Ye.source||(Ye.source=de),pe.errors.push(Ye),null}try{let Ye=Za(de);if(!Ye)throw new Error(`The tag ${We} is unavailable`);let tt=`The tag ${We} is unavailable, falling back to ${Ye}`;pe.warnings.push(new g.YAMLWarning(de,tt));let nt=ia(pe,de,Ye);return nt.tag=We,nt}catch(Ye){let tt=new g.YAMLReferenceError(de,Ye.message);return tt.stack=Ye.stack,pe.errors.push(tt),null}}var Dl=pe=>{if(!pe)return!1;let{type:de}=pe;return de===g.Type.MAP_KEY||de===g.Type.MAP_VALUE||de===g.Type.SEQ_ITEM};function Gf(pe,de){let We={before:[],after:[]},Ye=!1,tt=!1,nt=Dl(de.context.parent)?de.context.parent.props.concat(de.props):de.props;for(let{start:St,end:Nt}of nt)switch(de.context.src[St]){case g.Char.COMMENT:{if(!de.commentHasRequiredWhitespace(St)){let dn="Comments must be separated from other tokens by white space characters";pe.push(new g.YAMLSemanticError(de,dn))}let{header:Kt,valueRange:rn}=de;(rn&&(St>rn.start||Kt&&St>Kt.start)?We.after:We.before).push(de.context.src.slice(St+1,Nt));break}case g.Char.ANCHOR:if(Ye){let Kt="A node can have at most one anchor";pe.push(new g.YAMLSemanticError(de,Kt))}Ye=!0;break;case g.Char.TAG:if(tt){let Kt="A node can have at most one tag";pe.push(new g.YAMLSemanticError(de,Kt))}tt=!0;break}return{comments:We,hasAnchor:Ye,hasTag:tt}}function Jf(pe,de){let{anchors:We,errors:Ye,schema:tt}=pe;if(de.type===g.Type.ALIAS){let St=de.rawValue,Nt=We.getNode(St);if(!Nt){let rn=`Aliased anchor not found: ${St}`;return Ye.push(new g.YAMLReferenceError(de,rn)),null}let Kt=new Wt(Nt);return We._cstAliases.push(Kt),Kt}let nt=ki(pe,de);if(nt)return $o(pe,de,nt);if(de.type!==g.Type.PLAIN){let St=`Failed to resolve ${de.type} node here`;return Ye.push(new g.YAMLSyntaxError(de,St)),null}try{let St=Ui(pe,de);return Ce(St,tt.tags,tt.tags.scalarFallback)}catch(St){return St.source||(St.source=de),Ye.push(St),null}}function hi(pe,de){if(!de)return null;de.error&&pe.errors.push(de.error);let{comments:We,hasAnchor:Ye,hasTag:tt}=Gf(pe.errors,de);if(Ye){let{anchors:St}=pe,Nt=de.anchor,Kt=St.getNode(Nt);Kt&&(St.map[St.newName(Nt)]=Kt),St.map[Nt]=de}if(de.type===g.Type.ALIAS&&(Ye||tt)){let St="An alias node must not specify any properties";pe.errors.push(new g.YAMLSemanticError(de,St))}let nt=Jf(pe,de);if(nt){nt.range=[de.range.start,de.range.end],pe.options.keepCstNodes&&(nt.cstNode=de),pe.options.keepNodeTypes&&(nt.type=de.type);let St=We.before.join(`
391
- `);St&&(nt.commentBefore=nt.commentBefore?`${nt.commentBefore}
392
- ${St}`:St);let Nt=We.after.join(`
393
- `);Nt&&(nt.comment=nt.comment?`${nt.comment}
394
- ${Nt}`:Nt)}return de.resolved=nt}function Yf(pe,de){if(de.type!==g.Type.MAP&&de.type!==g.Type.FLOW_MAP){let St=`A ${de.type} node cannot be resolved as a mapping`;return pe.errors.push(new g.YAMLSyntaxError(de,St)),null}let{comments:We,items:Ye}=de.type===g.Type.FLOW_MAP?Xf(pe,de):Qf(pe,de),tt=new Dn;tt.items=Ye,Li(tt,We);let nt=!1;for(let St=0;St<Ye.length;++St){let{key:Nt}=Ye[St];if(Nt instanceof at&&(nt=!0),pe.schema.merge&&Nt&&Nt.value===De){Ye[St]=new K(Ye[St]);let Kt=Ye[St].value.items,rn=null;Kt.some(dn=>{if(dn instanceof Wt){let{type:kn}=dn.source;return kn===g.Type.MAP||kn===g.Type.FLOW_MAP?!1:rn="Merge nodes aliases can only point to maps"}return rn="Merge nodes can only have Alias nodes as values"}),rn&&pe.errors.push(new g.YAMLSemanticError(de,rn))}else for(let Kt=St+1;Kt<Ye.length;++Kt){let{key:rn}=Ye[Kt];if(Nt===rn||Nt&&rn&&Object.prototype.hasOwnProperty.call(Nt,"value")&&Nt.value===rn.value){let dn=`Map keys must be unique; "${Nt}" is repeated`;pe.errors.push(new g.YAMLSemanticError(de,dn));break}}}if(nt&&!pe.options.mapAsMap){let St="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";pe.warnings.push(new g.YAMLWarning(de,St))}return de.resolved=tt,tt}var Hf=pe=>{let{context:{lineStart:de,node:We,src:Ye},props:tt}=pe;if(tt.length===0)return!1;let{start:nt}=tt[0];if(We&&nt>We.valueRange.start||Ye[nt]!==g.Char.COMMENT)return!1;for(let St=de;St<nt;++St)if(Ye[St]===`
395
- `)return!1;return!0};function zf(pe,de){if(!Hf(pe))return;let We=pe.getPropValue(0,g.Char.COMMENT,!0),Ye=!1,tt=de.value.commentBefore;if(tt&&tt.startsWith(We))de.value.commentBefore=tt.substr(We.length+1),Ye=!0;else{let nt=de.value.comment;!pe.node&&nt&&nt.startsWith(We)&&(de.value.comment=nt.substr(We.length+1),Ye=!0)}Ye&&(de.comment=We)}function Qf(pe,de){let We=[],Ye=[],tt,nt=null;for(let St=0;St<de.items.length;++St){let Nt=de.items[St];switch(Nt.type){case g.Type.BLANK_LINE:We.push({afterKey:!!tt,before:Ye.length});break;case g.Type.COMMENT:We.push({afterKey:!!tt,before:Ye.length,comment:Nt.comment});break;case g.Type.MAP_KEY:tt!==void 0&&Ye.push(new Lt(tt)),Nt.error&&pe.errors.push(Nt.error),tt=hi(pe,Nt.node),nt=null;break;case g.Type.MAP_VALUE:{if(tt===void 0&&(tt=null),Nt.error&&pe.errors.push(Nt.error),!Nt.context.atLineStart&&Nt.node&&Nt.node.type===g.Type.MAP&&!Nt.node.context.atLineStart){let dn="Nested mappings are not allowed in compact mappings";pe.errors.push(new g.YAMLSemanticError(Nt.node,dn))}let Kt=Nt.node;if(!Kt&&Nt.props.length>0){Kt=new g.PlainValue(g.Type.PLAIN,[]),Kt.context={parent:Nt,src:Nt.context.src};let dn=Nt.range.start+1;if(Kt.range={start:dn,end:dn},Kt.valueRange={start:dn,end:dn},typeof Nt.range.origStart=="number"){let kn=Nt.range.origStart+1;Kt.range.origStart=Kt.range.origEnd=kn,Kt.valueRange.origStart=Kt.valueRange.origEnd=kn}}let rn=new Lt(tt,hi(pe,Kt));zf(Nt,rn),Ye.push(rn),tt&&typeof nt=="number"&&Nt.range.start>nt+1024&&pe.errors.push(or(de,tt)),tt=void 0,nt=null}break;default:tt!==void 0&&Ye.push(new Lt(tt)),tt=hi(pe,Nt),nt=Nt.range.start,Nt.error&&pe.errors.push(Nt.error);e:for(let Kt=St+1;;++Kt){let rn=de.items[Kt];switch(rn&&rn.type){case g.Type.BLANK_LINE:case g.Type.COMMENT:continue e;case g.Type.MAP_VALUE:break e;default:{let dn="Implicit map keys need to be followed by map values";pe.errors.push(new g.YAMLSemanticError(Nt,dn));break e}}}if(Nt.valueRangeContainsNewline){let Kt="Implicit map keys need to be on a single line";pe.errors.push(new g.YAMLSemanticError(Nt,Kt))}}}return tt!==void 0&&Ye.push(new Lt(tt)),{comments:We,items:Ye}}function Xf(pe,de){let We=[],Ye=[],tt,nt=!1,St="{";for(let Nt=0;Nt<de.items.length;++Nt){let Kt=de.items[Nt];if(typeof Kt.char=="string"){let{char:rn,offset:dn}=Kt;if(rn==="?"&&tt===void 0&&!nt){nt=!0,St=":";continue}if(rn===":"){if(tt===void 0&&(tt=null),St===":"){St=",";continue}}else if(nt&&(tt===void 0&&rn!==","&&(tt=null),nt=!1),tt!==void 0&&(Ye.push(new Lt(tt)),tt=void 0,rn===",")){St=":";continue}if(rn==="}"){if(Nt===de.items.length-1)continue}else if(rn===St){St=":";continue}let kn=`Flow map contains an unexpected ${rn}`,lr=new g.YAMLSyntaxError(de,kn);lr.offset=dn,pe.errors.push(lr)}else Kt.type===g.Type.BLANK_LINE?We.push({afterKey:!!tt,before:Ye.length}):Kt.type===g.Type.COMMENT?(Gn(pe.errors,Kt),We.push({afterKey:!!tt,before:Ye.length,comment:Kt.comment})):tt===void 0?(St===","&&pe.errors.push(new g.YAMLSemanticError(Kt,"Separator , missing in flow map")),tt=hi(pe,Kt)):(St!==","&&pe.errors.push(new g.YAMLSemanticError(Kt,"Indicator : missing in flow map entry")),Ye.push(new Lt(tt,hi(pe,Kt))),tt=void 0,nt=!1)}return Cn(pe.errors,de),tt!==void 0&&Ye.push(new Lt(tt)),{comments:We,items:Ye}}function Kf(pe,de){if(de.type!==g.Type.SEQ&&de.type!==g.Type.FLOW_SEQ){let nt=`A ${de.type} node cannot be resolved as a sequence`;return pe.errors.push(new g.YAMLSyntaxError(de,nt)),null}let{comments:We,items:Ye}=de.type===g.Type.FLOW_SEQ?ep(pe,de):Zf(pe,de),tt=new Tt;if(tt.items=Ye,Li(tt,We),!pe.options.mapAsMap&&Ye.some(nt=>nt instanceof Lt&&nt.key instanceof at)){let nt="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";pe.warnings.push(new g.YAMLWarning(de,nt))}return de.resolved=tt,tt}function Zf(pe,de){let We=[],Ye=[];for(let tt=0;tt<de.items.length;++tt){let nt=de.items[tt];switch(nt.type){case g.Type.BLANK_LINE:We.push({before:Ye.length});break;case g.Type.COMMENT:We.push({comment:nt.comment,before:Ye.length});break;case g.Type.SEQ_ITEM:if(nt.error&&pe.errors.push(nt.error),Ye.push(hi(pe,nt.node)),nt.hasProps){let St="Sequence items cannot have tags or anchors before the - indicator";pe.errors.push(new g.YAMLSemanticError(nt,St))}break;default:nt.error&&pe.errors.push(nt.error),pe.errors.push(new g.YAMLSyntaxError(nt,`Unexpected ${nt.type} node in sequence`))}}return{comments:We,items:Ye}}function ep(pe,de){let We=[],Ye=[],tt=!1,nt,St=null,Nt="[",Kt=null;for(let rn=0;rn<de.items.length;++rn){let dn=de.items[rn];if(typeof dn.char=="string"){let{char:kn,offset:lr}=dn;if(kn!==":"&&(tt||nt!==void 0)&&(tt&&nt===void 0&&(nt=Nt?Ye.pop():null),Ye.push(new Lt(nt)),tt=!1,nt=void 0,St=null),kn===Nt)Nt=null;else if(!Nt&&kn==="?")tt=!0;else if(Nt!=="["&&kn===":"&&nt===void 0){if(Nt===","){if(nt=Ye.pop(),nt instanceof Lt){let cr="Chaining flow sequence pairs is invalid",jn=new g.YAMLSemanticError(de,cr);jn.offset=lr,pe.errors.push(jn)}if(!tt&&typeof St=="number"){let cr=dn.range?dn.range.start:dn.offset;cr>St+1024&&pe.errors.push(or(de,nt));let{src:jn}=Kt.context;for(let ir=St;ir<cr;++ir)if(jn[ir]===`
396
- `){let er="Implicit keys of flow sequence pairs need to be on a single line";pe.errors.push(new g.YAMLSemanticError(Kt,er));break}}}else nt=null;St=null,tt=!1,Nt=null}else if(Nt==="["||kn!=="]"||rn<de.items.length-1){let cr=`Flow sequence contains an unexpected ${kn}`,jn=new g.YAMLSyntaxError(de,cr);jn.offset=lr,pe.errors.push(jn)}}else if(dn.type===g.Type.BLANK_LINE)We.push({before:Ye.length});else if(dn.type===g.Type.COMMENT)Gn(pe.errors,dn),We.push({comment:dn.comment,before:Ye.length});else{if(Nt){let lr=`Expected a ${Nt} in flow sequence`;pe.errors.push(new g.YAMLSemanticError(dn,lr))}let kn=hi(pe,dn);nt===void 0?(Ye.push(kn),Kt=dn):(Ye.push(new Lt(nt,kn)),nt=void 0),St=dn.range.start,Nt=","}}return Cn(pe.errors,de),nt!==void 0&&Ye.push(new Lt(nt)),{comments:We,items:Ye}}Y.Alias=Wt,Y.Collection=at,Y.Merge=K,Y.Node=Pe,Y.Pair=Lt,Y.Scalar=et,Y.YAMLMap=Dn,Y.YAMLSeq=Tt,Y.addComment=Se,Y.binaryOptions=O,Y.boolOptions=H,Y.findPair=Xt,Y.intOptions=le,Y.isEmptyPath=Rt,Y.nullOptions=Ne,Y.resolveMap=Yf,Y.resolveNode=hi,Y.resolveSeq=Kf,Y.resolveString=Ui,Y.strOptions=Me,Y.stringifyNumber=hn,Y.stringifyString=tn,Y.toJSON=Be}}),ta=c({"node_modules/yaml/dist/warnings-1000a372.js"(Y){M();var g=Gr(),W=Zi(),Se={identify:Ce=>Ce instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve:(Ce,je)=>{let Ct=W.resolveString(Ce,je);if(typeof Buffer=="function")return Buffer.from(Ct,"base64");if(typeof atob=="function"){let Ot=atob(Ct.replace(/[\n\r]/g,"")),zt=new Uint8Array(Ot.length);for(let vn=0;vn<Ot.length;++vn)zt[vn]=Ot.charCodeAt(vn);return zt}else{let Ot="This environment does not support reading binary tags; either Buffer or atob is required";return Ce.errors.push(new g.YAMLReferenceError(je,Ot)),null}},options:W.binaryOptions,stringify:(Ce,je,Ct,Ot)=>{let{comment:zt,type:vn,value:on}=Ce,$n;if(typeof Buffer=="function")$n=on instanceof Buffer?on.toString("base64"):Buffer.from(on.buffer).toString("base64");else if(typeof btoa=="function"){let sr="";for(let xr=0;xr<on.length;++xr)sr+=String.fromCharCode(on[xr]);$n=btoa(sr)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(vn||(vn=W.binaryOptions.defaultType),vn===g.Type.QUOTE_DOUBLE)on=$n;else{let{lineWidth:sr}=W.binaryOptions,xr=Math.ceil($n.length/sr),di=new Array(xr);for(let ui=0,vt=0;ui<xr;++ui,vt+=sr)di[ui]=$n.substr(vt,sr);on=di.join(vn===g.Type.BLOCK_LITERAL?`
397
- `:" ")}return W.stringifyString({comment:zt,type:vn,value:on},je,Ct,Ot)}};function Pe(Ce,je){let Ct=W.resolveSeq(Ce,je);for(let Ot=0;Ot<Ct.items.length;++Ot){let zt=Ct.items[Ot];if(!(zt instanceof W.Pair)){if(zt instanceof W.YAMLMap){if(zt.items.length>1){let on="Each pair must have its own sequence indicator";throw new g.YAMLSemanticError(je,on)}let vn=zt.items[0]||new W.Pair;zt.commentBefore&&(vn.commentBefore=vn.commentBefore?`${zt.commentBefore}
398
- ${vn.commentBefore}`:zt.commentBefore),zt.comment&&(vn.comment=vn.comment?`${zt.comment}
399
- ${vn.comment}`:zt.comment),zt=vn}Ct.items[Ot]=zt instanceof W.Pair?zt:new W.Pair(zt)}}return Ct}function Be(Ce,je,Ct){let Ot=new W.YAMLSeq(Ce);Ot.tag="tag:yaml.org,2002:pairs";for(let zt of je){let vn,on;if(Array.isArray(zt))if(zt.length===2)vn=zt[0],on=zt[1];else throw new TypeError(`Expected [key, value] tuple: ${zt}`);else if(zt&&zt instanceof Object){let sr=Object.keys(zt);if(sr.length===1)vn=sr[0],on=zt[vn];else throw new TypeError(`Expected { key: value } tuple: ${zt}`)}else vn=zt;let $n=Ce.createPair(vn,on,Ct);Ot.items.push($n)}return Ot}var et={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Pe,createNode:Be},gt=class extends W.YAMLSeq{constructor(){super(),g._defineProperty(this,"add",W.YAMLMap.prototype.add.bind(this)),g._defineProperty(this,"delete",W.YAMLMap.prototype.delete.bind(this)),g._defineProperty(this,"get",W.YAMLMap.prototype.get.bind(this)),g._defineProperty(this,"has",W.YAMLMap.prototype.has.bind(this)),g._defineProperty(this,"set",W.YAMLMap.prototype.set.bind(this)),this.tag=gt.tag}toJSON(Ce,je){let Ct=new Map;je&&je.onCreate&&je.onCreate(Ct);for(let Ot of this.items){let zt,vn;if(Ot instanceof W.Pair?(zt=W.toJSON(Ot.key,"",je),vn=W.toJSON(Ot.value,zt,je)):zt=W.toJSON(Ot,"",je),Ct.has(zt))throw new Error("Ordered maps must not include duplicate keys");Ct.set(zt,vn)}return Ct}};g._defineProperty(gt,"tag","tag:yaml.org,2002:omap");function Rt(Ce,je){let Ct=Pe(Ce,je),Ot=[];for(let{key:zt}of Ct.items)if(zt instanceof W.Scalar)if(Ot.includes(zt.value)){let vn="Ordered maps must not include duplicate keys";throw new g.YAMLSemanticError(je,vn)}else Ot.push(zt.value);return Object.assign(new gt,Ct)}function at(Ce,je,Ct){let Ot=Be(Ce,je,Ct),zt=new gt;return zt.items=Ot.items,zt}var bt={identify:Ce=>Ce instanceof Map,nodeClass:gt,default:!1,tag:"tag:yaml.org,2002:omap",resolve:Rt,createNode:at},Tt=class extends W.YAMLMap{constructor(){super(),this.tag=Tt.tag}add(Ce){let je=Ce instanceof W.Pair?Ce:new W.Pair(Ce);W.findPair(this.items,je.key)||this.items.push(je)}get(Ce,je){let Ct=W.findPair(this.items,Ce);return!je&&Ct instanceof W.Pair?Ct.key instanceof W.Scalar?Ct.key.value:Ct.key:Ct}set(Ce,je){if(typeof je!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof je}`);let Ct=W.findPair(this.items,Ce);Ct&&!je?this.items.splice(this.items.indexOf(Ct),1):!Ct&&je&&this.items.push(new W.Pair(Ce))}toJSON(Ce,je){return super.toJSON(Ce,je,Set)}toString(Ce,je,Ct){if(!Ce)return JSON.stringify(this);if(this.hasAllNullValues())return super.toString(Ce,je,Ct);throw new Error("Set items must all have null values")}};g._defineProperty(Tt,"tag","tag:yaml.org,2002:set");function It(Ce,je){let Ct=W.resolveMap(Ce,je);if(!Ct.hasAllNullValues())throw new g.YAMLSemanticError(je,"Set items must all have null values");return Object.assign(new Tt,Ct)}function Lt(Ce,je,Ct){let Ot=new Tt;for(let zt of je)Ot.items.push(Ce.createPair(zt,null,Ct));return Ot}var Gt={identify:Ce=>Ce instanceof Set,nodeClass:Tt,default:!1,tag:"tag:yaml.org,2002:set",resolve:It,createNode:Lt},Wt=(Ce,je)=>{let Ct=je.split(":").reduce((Ot,zt)=>Ot*60+Number(zt),0);return Ce==="-"?-Ct:Ct},Xt=Ce=>{let{value:je}=Ce;if(isNaN(je)||!isFinite(je))return W.stringifyNumber(je);let Ct="";je<0&&(Ct="-",je=Math.abs(je));let Ot=[je%60];return je<60?Ot.unshift(0):(je=Math.round((je-Ot[0])/60),Ot.unshift(je%60),je>=60&&(je=Math.round((je-Ot[0])/60),Ot.unshift(je))),Ct+Ot.map(zt=>zt<10?"0"+String(zt):String(zt)).join(":").replace(/000000\d*$/,"")},Dn={identify:Ce=>typeof Ce=="number",default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:(Ce,je,Ct)=>Wt(je,Ct.replace(/_/g,"")),stringify:Xt},De={identify:Ce=>typeof Ce=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:(Ce,je,Ct)=>Wt(je,Ct.replace(/_/g,"")),stringify:Xt},K={identify:Ce=>Ce instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^(?:([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?)$"),resolve:(Ce,je,Ct,Ot,zt,vn,on,$n,sr)=>{$n&&($n=($n+"00").substr(1,3));let xr=Date.UTC(je,Ct-1,Ot,zt||0,vn||0,on||0,$n||0);if(sr&&sr!=="Z"){let di=Wt(sr[0],sr.slice(1));Math.abs(di)<30&&(di*=60),xr-=6e4*di}return new Date(xr)},stringify:Ce=>{let{value:je}=Ce;return je.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")}};function O(Ce){let je=typeof te<"u"&&te.env||{};return Ce?typeof YAML_SILENCE_DEPRECATION_WARNINGS<"u"?!YAML_SILENCE_DEPRECATION_WARNINGS:!je.YAML_SILENCE_DEPRECATION_WARNINGS:typeof YAML_SILENCE_WARNINGS<"u"?!YAML_SILENCE_WARNINGS:!je.YAML_SILENCE_WARNINGS}function H(Ce,je){if(O(!1)){let Ct=typeof te<"u"&&te.emitWarning;Ct?Ct(Ce,je):console.warn(je?`${je}: ${Ce}`:Ce)}}function le(Ce){if(O(!0)){let je=Ce.replace(/.*yaml[/\\]/i,"").replace(/\.js$/,"").replace(/\\/g,"/");H(`The endpoint 'yaml/${je}' will be removed in a future release.`,"DeprecationWarning")}}var Ne={};function Me(Ce,je){if(!Ne[Ce]&&O(!0)){Ne[Ce]=!0;let Ct=`The option '${Ce}' will be removed in a future release`;Ct+=je?`, use '${je}' instead.`:".",H(Ct,"DeprecationWarning")}}Y.binary=Se,Y.floatTime=De,Y.intTime=Dn,Y.omap=bt,Y.pairs=et,Y.set=Gt,Y.timestamp=K,Y.warn=H,Y.warnFileDeprecation=le,Y.warnOptionDeprecation=Me}}),na=c({"node_modules/yaml/dist/Schema-88e323a7.js"(Y){M();var g=Gr(),W=Zi(),Se=ta();function Pe(vt,tn,hn){let Cn=new W.YAMLMap(vt);if(tn instanceof Map)for(let[Gn,or]of tn)Cn.items.push(vt.createPair(Gn,or,hn));else if(tn&&typeof tn=="object")for(let Gn of Object.keys(tn))Cn.items.push(vt.createPair(Gn,tn[Gn],hn));return typeof vt.sortMapEntries=="function"&&Cn.items.sort(vt.sortMapEntries),Cn}var Be={createNode:Pe,default:!0,nodeClass:W.YAMLMap,tag:"tag:yaml.org,2002:map",resolve:W.resolveMap};function et(vt,tn,hn){let Cn=new W.YAMLSeq(vt);if(tn&&tn[Symbol.iterator])for(let Gn of tn){let or=vt.createNode(Gn,hn.wrapScalars,null,hn);Cn.items.push(or)}return Cn}var gt={createNode:et,default:!0,nodeClass:W.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve:W.resolveSeq},Rt={identify:vt=>typeof vt=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:W.resolveString,stringify(vt,tn,hn,Cn){return tn=Object.assign({actualString:!0},tn),W.stringifyString(vt,tn,hn,Cn)},options:W.strOptions},at=[Be,gt,Rt],bt=vt=>typeof vt=="bigint"||Number.isInteger(vt),Tt=(vt,tn,hn)=>W.intOptions.asBigInt?BigInt(vt):parseInt(tn,hn);function It(vt,tn,hn){let{value:Cn}=vt;return bt(Cn)&&Cn>=0?hn+Cn.toString(tn):W.stringifyNumber(vt)}var Lt={identify:vt=>vt==null,createNode:(vt,tn,hn)=>hn.wrapScalars?new W.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:W.nullOptions,stringify:()=>W.nullOptions.nullStr},Gt={identify:vt=>typeof vt=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:vt=>vt[0]==="t"||vt[0]==="T",options:W.boolOptions,stringify:vt=>{let{value:tn}=vt;return tn?W.boolOptions.trueStr:W.boolOptions.falseStr}},Wt={identify:vt=>bt(vt)&&vt>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:(vt,tn)=>Tt(vt,tn,8),options:W.intOptions,stringify:vt=>It(vt,8,"0o")},Xt={identify:bt,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:vt=>Tt(vt,vt,10),options:W.intOptions,stringify:W.stringifyNumber},Dn={identify:vt=>bt(vt)&&vt>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:(vt,tn)=>Tt(vt,tn,16),options:W.intOptions,stringify:vt=>It(vt,16,"0x")},De={identify:vt=>typeof vt=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(vt,tn)=>tn?NaN:vt[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:W.stringifyNumber},K={identify:vt=>typeof vt=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:vt=>parseFloat(vt),stringify:vt=>{let{value:tn}=vt;return Number(tn).toExponential()}},O={identify:vt=>typeof vt=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.([0-9]+)|[0-9]+\.([0-9]*))$/,resolve(vt,tn,hn){let Cn=tn||hn,Gn=new W.Scalar(parseFloat(vt));return Cn&&Cn[Cn.length-1]==="0"&&(Gn.minFractionDigits=Cn.length),Gn},stringify:W.stringifyNumber},H=at.concat([Lt,Gt,Wt,Xt,Dn,De,K,O]),le=vt=>typeof vt=="bigint"||Number.isInteger(vt),Ne=vt=>{let{value:tn}=vt;return JSON.stringify(tn)},Me=[Be,gt,{identify:vt=>typeof vt=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:W.resolveString,stringify:Ne},{identify:vt=>vt==null,createNode:(vt,tn,hn)=>hn.wrapScalars?new W.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Ne},{identify:vt=>typeof vt=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:vt=>vt==="true",stringify:Ne},{identify:le,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:vt=>W.intOptions.asBigInt?BigInt(vt):parseInt(vt,10),stringify:vt=>{let{value:tn}=vt;return le(tn)?tn.toString():JSON.stringify(tn)}},{identify:vt=>typeof vt=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:vt=>parseFloat(vt),stringify:Ne}];Me.scalarFallback=vt=>{throw new SyntaxError(`Unresolved plain scalar ${JSON.stringify(vt)}`)};var Ce=vt=>{let{value:tn}=vt;return tn?W.boolOptions.trueStr:W.boolOptions.falseStr},je=vt=>typeof vt=="bigint"||Number.isInteger(vt);function Ct(vt,tn,hn){let Cn=tn.replace(/_/g,"");if(W.intOptions.asBigInt){switch(hn){case 2:Cn=`0b${Cn}`;break;case 8:Cn=`0o${Cn}`;break;case 16:Cn=`0x${Cn}`;break}let or=BigInt(Cn);return vt==="-"?BigInt(-1)*or:or}let Gn=parseInt(Cn,hn);return vt==="-"?-1*Gn:Gn}function Ot(vt,tn,hn){let{value:Cn}=vt;if(je(Cn)){let Gn=Cn.toString(tn);return Cn<0?"-"+hn+Gn.substr(1):hn+Gn}return W.stringifyNumber(vt)}var zt=at.concat([{identify:vt=>vt==null,createNode:(vt,tn,hn)=>hn.wrapScalars?new W.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:W.nullOptions,stringify:()=>W.nullOptions.nullStr},{identify:vt=>typeof vt=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>!0,options:W.boolOptions,stringify:Ce},{identify:vt=>typeof vt=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>!1,options:W.boolOptions,stringify:Ce},{identify:je,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^([-+]?)0b([0-1_]+)$/,resolve:(vt,tn,hn)=>Ct(tn,hn,2),stringify:vt=>Ot(vt,2,"0b")},{identify:je,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^([-+]?)0([0-7_]+)$/,resolve:(vt,tn,hn)=>Ct(tn,hn,8),stringify:vt=>Ot(vt,8,"0")},{identify:je,default:!0,tag:"tag:yaml.org,2002:int",test:/^([-+]?)([0-9][0-9_]*)$/,resolve:(vt,tn,hn)=>Ct(tn,hn,10),stringify:W.stringifyNumber},{identify:je,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^([-+]?)0x([0-9a-fA-F_]+)$/,resolve:(vt,tn,hn)=>Ct(tn,hn,16),stringify:vt=>Ot(vt,16,"0x")},{identify:vt=>typeof vt=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(vt,tn)=>tn?NaN:vt[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:W.stringifyNumber},{identify:vt=>typeof vt=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?([0-9][0-9_]*)?(\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:vt=>parseFloat(vt.replace(/_/g,"")),stringify:vt=>{let{value:tn}=vt;return Number(tn).toExponential()}},{identify:vt=>typeof vt=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve(vt,tn){let hn=new W.Scalar(parseFloat(vt.replace(/_/g,"")));if(tn){let Cn=tn.replace(/_/g,"");Cn[Cn.length-1]==="0"&&(hn.minFractionDigits=Cn.length)}return hn},stringify:W.stringifyNumber}],Se.binary,Se.omap,Se.pairs,Se.set,Se.intTime,Se.floatTime,Se.timestamp),vn={core:H,failsafe:at,json:Me,yaml11:zt},on={binary:Se.binary,bool:Gt,float:O,floatExp:K,floatNaN:De,floatTime:Se.floatTime,int:Xt,intHex:Dn,intOct:Wt,intTime:Se.intTime,map:Be,null:Lt,omap:Se.omap,pairs:Se.pairs,seq:gt,set:Se.set,timestamp:Se.timestamp};function $n(vt,tn,hn){if(tn){let Cn=hn.filter(or=>or.tag===tn),Gn=Cn.find(or=>!or.format)||Cn[0];if(!Gn)throw new Error(`Tag ${tn} not found`);return Gn}return hn.find(Cn=>(Cn.identify&&Cn.identify(vt)||Cn.class&&vt instanceof Cn.class)&&!Cn.format)}function sr(vt,tn,hn){if(vt instanceof W.Node)return vt;let{defaultPrefix:Cn,onTagObj:Gn,prevObjects:or,schema:Li,wrapScalars:Ui}=hn;tn&&tn.startsWith("!!")&&(tn=Cn+tn.slice(2));let Wi=$n(vt,tn,Li.tags);if(!Wi){if(typeof vt.toJSON=="function"&&(vt=vt.toJSON()),!vt||typeof vt!="object")return Ui?new W.Scalar(vt):vt;Wi=vt instanceof Map?Be:vt[Symbol.iterator]?gt:Be}Gn&&(Gn(Wi),delete hn.onTagObj);let ki={value:void 0,node:void 0};if(vt&&typeof vt=="object"&&or){let ia=or.get(vt);if(ia){let Za=new W.Alias(ia);return hn.aliasNodes.push(Za),Za}ki.value=vt,or.set(vt,ki)}return ki.node=Wi.createNode?Wi.createNode(hn.schema,vt,hn):Ui?new W.Scalar(vt):vt,tn&&ki.node instanceof W.Node&&(ki.node.tag=tn),ki.node}function xr(vt,tn,hn,Cn){let Gn=vt[Cn.replace(/\W/g,"")];if(!Gn){let or=Object.keys(vt).map(Li=>JSON.stringify(Li)).join(", ");throw new Error(`Unknown schema "${Cn}"; use one of ${or}`)}if(Array.isArray(hn))for(let or of hn)Gn=Gn.concat(or);else typeof hn=="function"&&(Gn=hn(Gn.slice()));for(let or=0;or<Gn.length;++or){let Li=Gn[or];if(typeof Li=="string"){let Ui=tn[Li];if(!Ui){let Wi=Object.keys(tn).map(ki=>JSON.stringify(ki)).join(", ");throw new Error(`Unknown custom tag "${Li}"; use one of ${Wi}`)}Gn[or]=Ui}}return Gn}var di=(vt,tn)=>vt.key<tn.key?-1:vt.key>tn.key?1:0,ui=class{constructor(vt){let{customTags:tn,merge:hn,schema:Cn,sortMapEntries:Gn,tags:or}=vt;this.merge=!!hn,this.name=Cn,this.sortMapEntries=Gn===!0?di:Gn||null,!tn&&or&&Se.warnOptionDeprecation("tags","customTags"),this.tags=xr(vn,on,tn||or,Cn)}createNode(vt,tn,hn,Cn){let Gn={defaultPrefix:ui.defaultPrefix,schema:this,wrapScalars:tn},or=Cn?Object.assign(Cn,Gn):Gn;return sr(vt,hn,or)}createPair(vt,tn,hn){hn||(hn={wrapScalars:!0});let Cn=this.createNode(vt,hn.wrapScalars,null,hn),Gn=this.createNode(tn,hn.wrapScalars,null,hn);return new W.Pair(Cn,Gn)}};g._defineProperty(ui,"defaultPrefix",g.defaultTagPrefix),g._defineProperty(ui,"defaultTags",g.defaultTags),Y.Schema=ui}}),ti=c({"node_modules/yaml/dist/Document-9b4560a1.js"(Y){M();var g=Gr(),W=Zi(),Se=na(),Pe={anchorPrefix:"a",customTags:null,indent:2,indentSeq:!0,keepCstNodes:!1,keepNodeTypes:!0,keepBlobsInJSON:!0,mapAsMap:!1,maxAliasCount:100,prettyErrors:!1,simpleKeys:!1,version:"1.2"},Be={get binary(){return W.binaryOptions},set binary(O){Object.assign(W.binaryOptions,O)},get bool(){return W.boolOptions},set bool(O){Object.assign(W.boolOptions,O)},get int(){return W.intOptions},set int(O){Object.assign(W.intOptions,O)},get null(){return W.nullOptions},set null(O){Object.assign(W.nullOptions,O)},get str(){return W.strOptions},set str(O){Object.assign(W.strOptions,O)}},et={"1.0":{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:g.defaultTagPrefix},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:g.defaultTagPrefix}]},1.2:{schema:"core",merge:!1,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:g.defaultTagPrefix}]}};function gt(O,H){if((O.version||O.options.version)==="1.0"){let Me=H.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);if(Me)return"!"+Me[1];let Ce=H.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return Ce?`!${Ce[1]}/${Ce[2]}`:`!${H.replace(/^tag:/,"")}`}let le=O.tagPrefixes.find(Me=>H.indexOf(Me.prefix)===0);if(!le){let Me=O.getDefaults().tagPrefixes;le=Me&&Me.find(Ce=>H.indexOf(Ce.prefix)===0)}if(!le)return H[0]==="!"?H:`!<${H}>`;let Ne=H.substr(le.prefix.length).replace(/[!,[\]{}]/g,Me=>({"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"})[Me]);return le.handle+Ne}function Rt(O,H){if(H instanceof W.Alias)return W.Alias;if(H.tag){let Me=O.filter(Ce=>Ce.tag===H.tag);if(Me.length>0)return Me.find(Ce=>Ce.format===H.format)||Me[0]}let le,Ne;if(H instanceof W.Scalar){Ne=H.value;let Me=O.filter(Ce=>Ce.identify&&Ce.identify(Ne)||Ce.class&&Ne instanceof Ce.class);le=Me.find(Ce=>Ce.format===H.format)||Me.find(Ce=>!Ce.format)}else Ne=H,le=O.find(Me=>Me.nodeClass&&Ne instanceof Me.nodeClass);if(!le){let Me=Ne&&Ne.constructor?Ne.constructor.name:typeof Ne;throw new Error(`Tag not resolved for ${Me} value`)}return le}function at(O,H,le){let{anchors:Ne,doc:Me}=le,Ce=[],je=Me.anchors.getName(O);return je&&(Ne[je]=O,Ce.push(`&${je}`)),O.tag?Ce.push(gt(Me,O.tag)):H.default||Ce.push(gt(Me,H.tag)),Ce.join(" ")}function bt(O,H,le,Ne){let{anchors:Me,schema:Ce}=H.doc,je;if(!(O instanceof W.Node)){let zt={aliasNodes:[],onTagObj:vn=>je=vn,prevObjects:new Map};O=Ce.createNode(O,!0,null,zt);for(let vn of zt.aliasNodes){vn.source=vn.source.node;let on=Me.getName(vn.source);on||(on=Me.newName(),Me.map[on]=vn.source)}}if(O instanceof W.Pair)return O.toString(H,le,Ne);je||(je=Rt(Ce.tags,O));let Ct=at(O,je,H);Ct.length>0&&(H.indentAtStart=(H.indentAtStart||0)+Ct.length+1);let Ot=typeof je.stringify=="function"?je.stringify(O,H,le,Ne):O instanceof W.Scalar?W.stringifyString(O,H,le,Ne):O.toString(H,le,Ne);return Ct?O instanceof W.Scalar||Ot[0]==="{"||Ot[0]==="["?`${Ct} ${Ot}`:`${Ct}
400
- ${H.indent}${Ot}`:Ot}var Tt=class{static validAnchorNode(O){return O instanceof W.Scalar||O instanceof W.YAMLSeq||O instanceof W.YAMLMap}constructor(O){g._defineProperty(this,"map",Object.create(null)),this.prefix=O}createAlias(O,H){return this.setAnchor(O,H),new W.Alias(O)}createMergePair(){let O=new W.Merge;for(var H=arguments.length,le=new Array(H),Ne=0;Ne<H;Ne++)le[Ne]=arguments[Ne];return O.value.items=le.map(Me=>{if(Me instanceof W.Alias){if(Me.source instanceof W.YAMLMap)return Me}else if(Me instanceof W.YAMLMap)return this.createAlias(Me);throw new Error("Merge sources must be Map nodes or their Aliases")}),O}getName(O){let{map:H}=this;return Object.keys(H).find(le=>H[le]===O)}getNames(){return Object.keys(this.map)}getNode(O){return this.map[O]}newName(O){O||(O=this.prefix);let H=Object.keys(this.map);for(let le=1;;++le){let Ne=`${O}${le}`;if(!H.includes(Ne))return Ne}}resolveNodes(){let{map:O,_cstAliases:H}=this;Object.keys(O).forEach(le=>{O[le]=O[le].resolved}),H.forEach(le=>{le.source=le.source.resolved}),delete this._cstAliases}setAnchor(O,H){if(O!=null&&!Tt.validAnchorNode(O))throw new Error("Anchors may only be set for Scalar, Seq and Map nodes");if(H&&/[\x00-\x19\s,[\]{}]/.test(H))throw new Error("Anchor names must not contain whitespace or control characters");let{map:le}=this,Ne=O&&Object.keys(le).find(Me=>le[Me]===O);if(Ne)if(H)Ne!==H&&(delete le[Ne],le[H]=O);else return Ne;else{if(!H){if(!O)return null;H=this.newName()}le[H]=O}return H}},It=(O,H)=>{if(O&&typeof O=="object"){let{tag:le}=O;O instanceof W.Collection?(le&&(H[le]=!0),O.items.forEach(Ne=>It(Ne,H))):O instanceof W.Pair?(It(O.key,H),It(O.value,H)):O instanceof W.Scalar&&le&&(H[le]=!0)}return H},Lt=O=>Object.keys(It(O,{}));function Gt(O,H){let le={before:[],after:[]},Ne,Me=!1;for(let Ce of H)if(Ce.valueRange){if(Ne!==void 0){let Ct="Document contains trailing content not separated by a ... or --- line";O.errors.push(new g.YAMLSyntaxError(Ce,Ct));break}let je=W.resolveNode(O,Ce);Me&&(je.spaceBefore=!0,Me=!1),Ne=je}else Ce.comment!==null?(Ne===void 0?le.before:le.after).push(Ce.comment):Ce.type===g.Type.BLANK_LINE&&(Me=!0,Ne===void 0&&le.before.length>0&&!O.commentBefore&&(O.commentBefore=le.before.join(`
401
- `),le.before=[]));if(O.contents=Ne||null,!Ne)O.comment=le.before.concat(le.after).join(`
402
- `)||null;else{let Ce=le.before.join(`
403
- `);if(Ce){let je=Ne instanceof W.Collection&&Ne.items[0]?Ne.items[0]:Ne;je.commentBefore=je.commentBefore?`${Ce}
404
- ${je.commentBefore}`:Ce}O.comment=le.after.join(`
405
- `)||null}}function Wt(O,H){let{tagPrefixes:le}=O,[Ne,Me]=H.parameters;if(!Ne||!Me){let Ce="Insufficient parameters given for %TAG directive";throw new g.YAMLSemanticError(H,Ce)}if(le.some(Ce=>Ce.handle===Ne)){let Ce="The %TAG directive must only be given at most once per handle in the same document.";throw new g.YAMLSemanticError(H,Ce)}return{handle:Ne,prefix:Me}}function Xt(O,H){let[le]=H.parameters;if(H.name==="YAML:1.0"&&(le="1.0"),!le){let Ne="Insufficient parameters given for %YAML directive";throw new g.YAMLSemanticError(H,Ne)}if(!et[le]){let Ne=`Document will be parsed as YAML ${O.version||O.options.version} rather than YAML ${le}`;O.warnings.push(new g.YAMLWarning(H,Ne))}return le}function Dn(O,H,le){let Ne=[],Me=!1;for(let Ce of H){let{comment:je,name:Ct}=Ce;switch(Ct){case"TAG":try{O.tagPrefixes.push(Wt(O,Ce))}catch(Ot){O.errors.push(Ot)}Me=!0;break;case"YAML":case"YAML:1.0":if(O.version){let Ot="The %YAML directive must only be given at most once per document.";O.errors.push(new g.YAMLSemanticError(Ce,Ot))}try{O.version=Xt(O,Ce)}catch(Ot){O.errors.push(Ot)}Me=!0;break;default:if(Ct){let Ot=`YAML only supports %TAG and %YAML directives, and not %${Ct}`;O.warnings.push(new g.YAMLWarning(Ce,Ot))}}je&&Ne.push(je)}if(le&&!Me&&(O.version||le.version||O.options.version)==="1.1"){let Ce=je=>{let{handle:Ct,prefix:Ot}=je;return{handle:Ct,prefix:Ot}};O.tagPrefixes=le.tagPrefixes.map(Ce),O.version=le.version}O.commentBefore=Ne.join(`
406
- `)||null}function De(O){if(O instanceof W.Collection)return!0;throw new Error("Expected a YAML collection as document contents")}var K=class{constructor(O){this.anchors=new Tt(O.anchorPrefix),this.commentBefore=null,this.comment=null,this.contents=null,this.directivesEndMarker=null,this.errors=[],this.options=O,this.schema=null,this.tagPrefixes=[],this.version=null,this.warnings=[]}add(O){return De(this.contents),this.contents.add(O)}addIn(O,H){De(this.contents),this.contents.addIn(O,H)}delete(O){return De(this.contents),this.contents.delete(O)}deleteIn(O){return W.isEmptyPath(O)?this.contents==null?!1:(this.contents=null,!0):(De(this.contents),this.contents.deleteIn(O))}getDefaults(){return K.defaults[this.version]||K.defaults[this.options.version]||{}}get(O,H){return this.contents instanceof W.Collection?this.contents.get(O,H):void 0}getIn(O,H){return W.isEmptyPath(O)?!H&&this.contents instanceof W.Scalar?this.contents.value:this.contents:this.contents instanceof W.Collection?this.contents.getIn(O,H):void 0}has(O){return this.contents instanceof W.Collection?this.contents.has(O):!1}hasIn(O){return W.isEmptyPath(O)?this.contents!==void 0:this.contents instanceof W.Collection?this.contents.hasIn(O):!1}set(O,H){De(this.contents),this.contents.set(O,H)}setIn(O,H){W.isEmptyPath(O)?this.contents=H:(De(this.contents),this.contents.setIn(O,H))}setSchema(O,H){if(!O&&!H&&this.schema)return;typeof O=="number"&&(O=O.toFixed(1)),O==="1.0"||O==="1.1"||O==="1.2"?(this.version?this.version=O:this.options.version=O,delete this.options.schema):O&&typeof O=="string"&&(this.options.schema=O),Array.isArray(H)&&(this.options.customTags=H);let le=Object.assign({},this.getDefaults(),this.options);this.schema=new Se.Schema(le)}parse(O,H){this.options.keepCstNodes&&(this.cstNode=O),this.options.keepNodeTypes&&(this.type="DOCUMENT");let{directives:le=[],contents:Ne=[],directivesEndMarker:Me,error:Ce,valueRange:je}=O;if(Ce&&(Ce.source||(Ce.source=this),this.errors.push(Ce)),Dn(this,le,H),Me&&(this.directivesEndMarker=!0),this.range=je?[je.start,je.end]:null,this.setSchema(),this.anchors._cstAliases=[],Gt(this,Ne),this.anchors.resolveNodes(),this.options.prettyErrors){for(let Ct of this.errors)Ct instanceof g.YAMLError&&Ct.makePretty();for(let Ct of this.warnings)Ct instanceof g.YAMLError&&Ct.makePretty()}return this}listNonDefaultTags(){return Lt(this.contents).filter(O=>O.indexOf(Se.Schema.defaultPrefix)!==0)}setTagPrefix(O,H){if(O[0]!=="!"||O[O.length-1]!=="!")throw new Error("Handle must start and end with !");if(H){let le=this.tagPrefixes.find(Ne=>Ne.handle===O);le?le.prefix=H:this.tagPrefixes.push({handle:O,prefix:H})}else this.tagPrefixes=this.tagPrefixes.filter(le=>le.handle!==O)}toJSON(O,H){let{keepBlobsInJSON:le,mapAsMap:Ne,maxAliasCount:Me}=this.options,Ce=le&&(typeof O!="string"||!(this.contents instanceof W.Scalar)),je={doc:this,indentStep:" ",keep:Ce,mapAsMap:Ce&&!!Ne,maxAliasCount:Me,stringify:bt},Ct=Object.keys(this.anchors.map);Ct.length>0&&(je.anchors=new Map(Ct.map(zt=>[this.anchors.map[zt],{alias:[],aliasCount:0,count:1}])));let Ot=W.toJSON(this.contents,O,je);if(typeof H=="function"&&je.anchors)for(let{count:zt,res:vn}of je.anchors.values())H(vn,zt);return Ot}toString(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");let O=this.options.indent;if(!Number.isInteger(O)||O<=0){let Ct=JSON.stringify(O);throw new Error(`"indent" option must be a positive integer, not ${Ct}`)}this.setSchema();let H=[],le=!1;if(this.version){let Ct="%YAML 1.2";this.schema.name==="yaml-1.1"&&(this.version==="1.0"?Ct="%YAML:1.0":this.version==="1.1"&&(Ct="%YAML 1.1")),H.push(Ct),le=!0}let Ne=this.listNonDefaultTags();this.tagPrefixes.forEach(Ct=>{let{handle:Ot,prefix:zt}=Ct;Ne.some(vn=>vn.indexOf(zt)===0)&&(H.push(`%TAG ${Ot} ${zt}`),le=!0)}),(le||this.directivesEndMarker)&&H.push("---"),this.commentBefore&&((le||!this.directivesEndMarker)&&H.unshift(""),H.unshift(this.commentBefore.replace(/^/gm,"#")));let Me={anchors:Object.create(null),doc:this,indent:"",indentStep:" ".repeat(O),stringify:bt},Ce=!1,je=null;if(this.contents){this.contents instanceof W.Node&&(this.contents.spaceBefore&&(le||this.directivesEndMarker)&&H.push(""),this.contents.commentBefore&&H.push(this.contents.commentBefore.replace(/^/gm,"#")),Me.forceBlockIndent=!!this.comment,je=this.contents.comment);let Ct=je?null:()=>Ce=!0,Ot=bt(this.contents,Me,()=>je=null,Ct);H.push(W.addComment(Ot,"",je))}else this.contents!==void 0&&H.push(bt(this.contents,Me));return this.comment&&((!Ce||je)&&H[H.length-1]!==""&&H.push(""),H.push(this.comment.replace(/^/gm,"#"))),H.join(`
407
- `)+`
408
- `}};g._defineProperty(K,"defaults",et),Y.Document=K,Y.defaultOptions=Pe,Y.scalarOptions=Be}}),pl=c({"node_modules/yaml/dist/index.js"(Y){M();var g=Ka(),W=ti(),Se=na(),Pe=Gr(),Be=ta();Zi();function et(Lt){let Gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Wt=arguments.length>2?arguments[2]:void 0;Wt===void 0&&typeof Gt=="string"&&(Wt=Gt,Gt=!0);let Xt=Object.assign({},W.Document.defaults[W.defaultOptions.version],W.defaultOptions);return new Se.Schema(Xt).createNode(Lt,Gt,Wt)}var gt=class extends W.Document{constructor(Lt){super(Object.assign({},W.defaultOptions,Lt))}};function Rt(Lt,Gt){let Wt=[],Xt;for(let Dn of g.parse(Lt)){let De=new gt(Gt);De.parse(Dn,Xt),Wt.push(De),Xt=De}return Wt}function at(Lt,Gt){let Wt=g.parse(Lt),Xt=new gt(Gt).parse(Wt[0]);if(Wt.length>1){let Dn="Source contains multiple documents; please use YAML.parseAllDocuments()";Xt.errors.unshift(new Pe.YAMLSemanticError(Wt[1],Dn))}return Xt}function bt(Lt,Gt){let Wt=at(Lt,Gt);if(Wt.warnings.forEach(Xt=>Be.warn(Xt)),Wt.errors.length>0)throw Wt.errors[0];return Wt.toJSON()}function Tt(Lt,Gt){let Wt=new gt(Gt);return Wt.contents=Lt,String(Wt)}var It={createNode:et,defaultOptions:W.defaultOptions,Document:gt,parse:bt,parseAllDocuments:Rt,parseCST:g.parse,parseDocument:at,scalarOptions:W.scalarOptions,stringify:Tt};Y.YAML=It}}),dl=c({"node_modules/yaml/index.js"(Y,g){M(),g.exports=pl().YAML}}),hl=c({"node_modules/yaml/dist/util.js"(Y){M();var g=Zi(),W=Gr();Y.findPair=g.findPair,Y.parseMap=g.resolveMap,Y.parseSeq=g.resolveSeq,Y.stringifyNumber=g.stringifyNumber,Y.stringifyString=g.stringifyString,Y.toJSON=g.toJSON,Y.Type=W.Type,Y.YAMLError=W.YAMLError,Y.YAMLReferenceError=W.YAMLReferenceError,Y.YAMLSemanticError=W.YAMLSemanticError,Y.YAMLSyntaxError=W.YAMLSyntaxError,Y.YAMLWarning=W.YAMLWarning}}),$f=c({"node_modules/yaml/util.js"(Y){M();var g=hl();Y.findPair=g.findPair,Y.toJSON=g.toJSON,Y.parseMap=g.parseMap,Y.parseSeq=g.parseSeq,Y.stringifyNumber=g.stringifyNumber,Y.stringifyString=g.stringifyString,Y.Type=g.Type,Y.YAMLError=g.YAMLError,Y.YAMLReferenceError=g.YAMLReferenceError,Y.YAMLSemanticError=g.YAMLSemanticError,Y.YAMLSyntaxError=g.YAMLSyntaxError,Y.YAMLWarning=g.YAMLWarning}}),ml=c({"node_modules/yaml-unist-parser/lib/yaml.js"(Y){M(),Y.__esModule=!0;var g=dl();Y.Document=g.Document;var W=dl();Y.parseCST=W.parseCST;var Se=$f();Y.YAMLError=Se.YAMLError,Y.YAMLSyntaxError=Se.YAMLSyntaxError,Y.YAMLSemanticError=Se.YAMLSemanticError}}),ra=c({"node_modules/yaml-unist-parser/lib/parse.js"(Y){M(),Y.__esModule=!0;var g=Xu(),W=Af(),Se=Ku(),Pe=Cf(),Be=Hn(),et=el(),gt=Re(),Rt=hs(),at=Bs(),bt=pi(),Tt=Ki(),It=Xa(),Lt=ml();function Gt(Wt){var Xt=Lt.parseCST(Wt);bt.addOrigRange(Xt);for(var Dn=Xt.map(function(Ot){return new Lt.Document({merge:!1,keepCstNodes:!0}).parse(Ot)}),De=new g.default(Wt),K=[],O={text:Wt,locator:De,comments:K,transformOffset:function(Ot){return Rt.transformOffset(Ot,O)},transformRange:function(Ot){return at.transformRange(Ot,O)},transformNode:function(Ot){return Be.transformNode(Ot,O)},transformContent:function(Ot){return et.transformContent(Ot,O)}},H=0,le=Dn;H<le.length;H++)for(var Ne=le[H],Me=0,Ce=Ne.errors;Me<Ce.length;Me++){var je=Ce[Me];if(!(je instanceof Lt.YAMLSemanticError&&je.message==='Map keys must be unique; "<<" is repeated'))throw gt.transformError(je,O)}Dn.forEach(function(Ot){return Pe.removeCstBlankLine(Ot.cstNode)});var Ct=Se.createRoot(O.transformRange({origStart:0,origEnd:O.text.length}),Dn.map(O.transformNode),K);return W.attachComments(Ct),It.updatePositions(Ct),Tt.removeFakeNodes(Ct),Ct}Y.parse=Gt}}),Vf=c({"node_modules/yaml-unist-parser/lib/index.js"(Y){M(),Y.__esModule=!0;var g=(tr(),Z(ke));g.__exportStar(ra(),Y)}});M();var qf=he(),{hasPragma:wn}=Ae(),{locStart:gl,locEnd:Uf}=Fe();function Wf(Y){let{parse:g}=Vf();try{let W=g(Y);return delete W.comments,W}catch(W){throw W!=null&&W.position?qf(W.message,W.position):W}}var yl={astFormat:"yaml",parse:Wf,hasPragma:wn,locStart:gl,locEnd:Uf};s.exports={parsers:{yaml:yl}}});return r()})})(t0);var n0=t0.exports,ZD=QD(n0),eb=Is({__proto__:null,default:ZD},[n0]);function r0(e,t){if(e.length<t.length)return!1;for(var n=0;n<t.length;n++)if(e[n]!==t[n])return!1;return!0}function lf(e,t){var n=e.length-t.length;return n>0?e.lastIndexOf(t)===n:n===0?e===t:!1}function tb(e){return r0(e,"(?i)")?new RegExp(e.substring(4),"i"):new RegExp(e)}function ja(e){return typeof e=="boolean"}var Ri;(function(e){e[e.Undefined=0]="Undefined",e[e.EnumValueMismatch=1]="EnumValueMismatch",e[e.Deprecated=2]="Deprecated",e[e.UnexpectedEndOfComment=257]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=258]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=259]="UnexpectedEndOfNumber",e[e.InvalidUnicode=260]="InvalidUnicode",e[e.InvalidEscapeCharacter=261]="InvalidEscapeCharacter",e[e.InvalidCharacter=262]="InvalidCharacter",e[e.PropertyExpected=513]="PropertyExpected",e[e.CommaExpected=514]="CommaExpected",e[e.ColonExpected=515]="ColonExpected",e[e.ValueExpected=516]="ValueExpected",e[e.CommaOrCloseBacketExpected=517]="CommaOrCloseBacketExpected",e[e.CommaOrCloseBraceExpected=518]="CommaOrCloseBraceExpected",e[e.TrailingComma=519]="TrailingComma",e[e.DuplicateKey=520]="DuplicateKey",e[e.CommentNotPermitted=521]="CommentNotPermitted",e[e.SchemaResolveError=768]="SchemaResolveError"})(Ri||(Ri={}));var i0;(function(e){e.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[rs.Markdown,rs.PlainText],commitCharactersSupport:!0}}}}})(i0||(i0={}));function nb(e,t){return t.length===0?e:e.replace(/{(\d+)}/g,(n,[r])=>r in t?t[r]:n)}var rb=(e,t,...n)=>nb(t,n);function Hs(){return rb}var zs=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),ko=Hs();ko("colorHexFormatWarning","Invalid color format. Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA."),ko("dateTimeFormatWarning","String is not a RFC3339 date-time."),ko("dateFormatWarning","String is not a RFC3339 date."),ko("timeFormatWarning","String is not a RFC3339 time."),ko("emailFormatWarning","String is not an e-mail address.");var Qs=function(){function e(t,n,r){r===void 0&&(r=0),this.offset=n,this.length=r,this.parent=t}return Object.defineProperty(e.prototype,"children",{get:function(){return[]},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return"type: "+this.type+" ("+this.offset+"/"+this.length+")"+(this.parent?" parent: {"+this.parent.toString()+"}":"")},e}();(function(e){zs(t,e);function t(n,r){var i=e.call(this,n,r)||this;return i.type="null",i.value=null,i}return t})(Qs),function(e){zs(t,e);function t(n,r,i){var s=e.call(this,n,i)||this;return s.type="boolean",s.value=r,s}return t}(Qs),function(e){zs(t,e);function t(n,r){var i=e.call(this,n,r)||this;return i.type="array",i.items=[],i}return Object.defineProperty(t.prototype,"children",{get:function(){return this.items},enumerable:!1,configurable:!0}),t}(Qs),function(e){zs(t,e);function t(n,r){var i=e.call(this,n,r)||this;return i.type="number",i.isInteger=!0,i.value=Number.NaN,i}return t}(Qs),function(e){zs(t,e);function t(n,r,i){var s=e.call(this,n,r,i)||this;return s.type="string",s.value="",s}return t}(Qs),function(e){zs(t,e);function t(n,r,i){var s=e.call(this,n,r)||this;return s.type="property",s.colonOffset=-1,s.keyNode=i,s}return Object.defineProperty(t.prototype,"children",{get:function(){return this.valueNode?[this.keyNode,this.valueNode]:[this.keyNode]},enumerable:!1,configurable:!0}),t}(Qs),function(e){zs(t,e);function t(n,r){var i=e.call(this,n,r)||this;return i.type="object",i.properties=[],i}return Object.defineProperty(t.prototype,"children",{get:function(){return this.properties},enumerable:!1,configurable:!0}),t}(Qs);function ib(e){return ja(e)?e?{}:{not:{}}:e}var s0;(function(e){e[e.Key=0]="Key",e[e.Enum=1]="Enum"})(s0||(s0={})),function(){function e(){}return Object.defineProperty(e.prototype,"schemas",{get:function(){return[]},enumerable:!1,configurable:!0}),e.prototype.add=function(t){},e.prototype.merge=function(t){},e.prototype.include=function(t){return!0},e.prototype.newSub=function(){return this},e.instance=new e,e}();function Pu(e){return jy(e)}function sb(e,t){if(typeof e!="string")throw new TypeError("Expected a string");for(var n=String(e),r="",i=t?!!t.extended:!1,s=t?!!t.globstar:!1,a=!1,o=t&&typeof t.flags=="string"?t.flags:"",u,l=0,v=n.length;l<v;l++)switch(u=n[l],u){case"/":case"$":case"^":case"+":case".":case"(":case")":case"=":case"!":case"|":r+="\\"+u;break;case"?":if(i){r+=".";break}case"[":case"]":if(i){r+=u;break}case"{":if(i){a=!0,r+="(";break}case"}":if(i){a=!1,r+=")";break}case",":if(a){r+="|";break}r+="\\"+u;break;case"*":for(var c=n[l-1],N=1;n[l+1]==="*";)N++,l++;var _=n[l+1];if(!s)r+=".*";else{var Z=N>1&&(c==="/"||c===void 0||c==="{"||c===",")&&(_==="/"||_===void 0||_===","||_==="}");Z?(_==="/"?l++:c==="/"&&r.endsWith("\\/")&&(r=r.substr(0,r.length-2)),r+="((?:[^/]*(?:/|$))*)"):r+="([^/]*)"}break;default:r+=u}return(!o||!~o.indexOf("g"))&&(r="^"+r+"$"),new RegExp(r,o)}var Ns=Hs(),ab="!",ob="/",ub=function(){function e(t,n){this.globWrappers=[];try{for(var r=0,i=t;r<i.length;r++){var s=i[r],a=s[0]!==ab;a||(s=s.substring(1)),s.length>0&&(s[0]===ob&&(s=s.substring(1)),this.globWrappers.push({regexp:sb("**/"+s,{extended:!0,globstar:!0}),include:a}))}this.uris=n}catch{this.globWrappers.length=0,this.uris=[]}}return e.prototype.matchesPattern=function(t){for(var n=!1,r=0,i=this.globWrappers;r<i.length;r++){var s=i[r],a=s.regexp,o=s.include;a.test(t)&&(n=o)}return n},e.prototype.getURIs=function(){return this.uris},e}(),lb=function(){function e(t,n,r){this.service=t,this.url=n,this.dependencies={},r&&(this.unresolvedSchema=this.service.promise.resolve(new $i(r)))}return e.prototype.getUnresolvedSchema=function(){return this.unresolvedSchema||(this.unresolvedSchema=this.service.loadSchema(this.url)),this.unresolvedSchema},e.prototype.getResolvedSchema=function(){var t=this;return this.resolvedSchema||(this.resolvedSchema=this.getUnresolvedSchema().then(function(n){return t.service.resolveSchemaContent(n,t.url,t.dependencies)})),this.resolvedSchema},e.prototype.clearSchema=function(){this.resolvedSchema=void 0,this.unresolvedSchema=void 0,this.dependencies={}},e}(),$i=function(){function e(t,n){n===void 0&&(n=[]),this.schema=t,this.errors=n}return e}(),Po=function(){function e(t,n){n===void 0&&(n=[]),this.schema=t,this.errors=n}return e.prototype.getSection=function(t){var n=this.getSectionRecursive(t,this.schema);if(n)return ib(n)},e.prototype.getSectionRecursive=function(t,n){if(!n||typeof n=="boolean"||t.length===0)return n;var r=t.shift();if(n.properties&&typeof n.properties[r])return this.getSectionRecursive(t,n.properties[r]);if(n.patternProperties)for(var i=0,s=Object.keys(n.patternProperties);i<s.length;i++){var a=s[i],o=tb(a);if(o.test(r))return this.getSectionRecursive(t,n.patternProperties[a])}else{if(typeof n.additionalProperties=="object")return this.getSectionRecursive(t,n.additionalProperties);if(r.match("[0-9]+")){if(Array.isArray(n.items)){var u=parseInt(r,10);if(!isNaN(u)&&n.items[u])return this.getSectionRecursive(t,n.items[u])}else if(n.items)return this.getSectionRecursive(t,n.items)}}},e}(),cb=function(){function e(t,n,r){this.contextService=n,this.requestService=t,this.promiseConstructor=r||Promise,this.callOnDispose=[],this.contributionSchemas={},this.contributionAssociations=[],this.schemasById={},this.filePatternAssociations=[],this.registeredSchemasIds={}}return e.prototype.getRegisteredSchemaIds=function(t){return Object.keys(this.registeredSchemasIds).filter(function(n){var r=yi.parse(n).scheme;return r!=="schemaservice"&&(!t||t(r))})},Object.defineProperty(e.prototype,"promise",{get:function(){return this.promiseConstructor},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){for(;this.callOnDispose.length>0;)this.callOnDispose.pop()()},e.prototype.onResourceChange=function(t){var n=this;this.cachedSchemaForResource=void 0;var r=!1;t=Ts(t);for(var i=[t],s=Object.keys(this.schemasById).map(function(l){return n.schemasById[l]});i.length;)for(var a=i.pop(),o=0;o<s.length;o++){var u=s[o];u&&(u.url===a||u.dependencies[a])&&(u.url!==a&&i.push(u.url),u.clearSchema(),s[o]=void 0,r=!0)}return r},e.prototype.setSchemaContributions=function(t){if(t.schemas){var n=t.schemas;for(var r in n){var i=Ts(r);this.contributionSchemas[i]=this.addSchemaHandle(i,n[r])}}if(Array.isArray(t.schemaAssociations))for(var s=t.schemaAssociations,a=0,o=s;a<o.length;a++){var u=o[a],l=u.uris.map(Ts),v=this.addFilePatternAssociation(u.pattern,l);this.contributionAssociations.push(v)}},e.prototype.addSchemaHandle=function(t,n){var r=new lb(this,t,n);return this.schemasById[t]=r,r},e.prototype.getOrAddSchemaHandle=function(t,n){return this.schemasById[t]||this.addSchemaHandle(t,n)},e.prototype.addFilePatternAssociation=function(t,n){var r=new ub(t,n);return this.filePatternAssociations.push(r),r},e.prototype.registerExternalSchema=function(t,n,r){var i=Ts(t);return this.registeredSchemasIds[i]=!0,this.cachedSchemaForResource=void 0,n&&this.addFilePatternAssociation(n,[t]),r?this.addSchemaHandle(i,r):this.getOrAddSchemaHandle(i)},e.prototype.clearExternalSchemas=function(){this.schemasById={},this.filePatternAssociations=[],this.registeredSchemasIds={},this.cachedSchemaForResource=void 0;for(var t in this.contributionSchemas)this.schemasById[t]=this.contributionSchemas[t],this.registeredSchemasIds[t]=!0;for(var n=0,r=this.contributionAssociations;n<r.length;n++){var i=r[n];this.filePatternAssociations.push(i)}},e.prototype.getResolvedSchema=function(t){var n=Ts(t),r=this.schemasById[n];return r?r.getResolvedSchema():this.promise.resolve(void 0)},e.prototype.loadSchema=function(t){if(!this.requestService){var n=Ns("json.schema.norequestservice","Unable to load schema from '{0}'. No schema request service available",Bu(t));return this.promise.resolve(new $i({},[n]))}return this.requestService(t).then(function(r){if(!r){var i=Ns("json.schema.nocontent","Unable to load schema from '{0}': No content.",Bu(t));return new $i({},[i])}var s={},a=[];s=Oy(r,a);var o=a.length?[Ns("json.schema.invalidFormat","Unable to parse content from '{0}': Parse error at offset {1}.",Bu(t),a[0].offset)]:[];return new $i(s,o)},function(r){var i=r.toString(),s=r.toString().split("Error: ");return s.length>1&&(i=s[1]),lf(i,".")&&(i=i.substr(0,i.length-1)),new $i({},[Ns("json.schema.nocontent","Unable to load schema from '{0}': {1}.",Bu(t),i)])})},e.prototype.resolveSchemaContent=function(t,n,r){var i=this,s=t.errors.slice(0),a=t.schema;if(a.$schema){var o=Ts(a.$schema);if(o==="http://json-schema.org/draft-03/schema")return this.promise.resolve(new Po({},[Ns("json.schema.draft03.notsupported","Draft-03 schemas are not supported.")]));o==="https://json-schema.org/draft/2019-09/schema"&&s.push(Ns("json.schema.draft201909.notsupported","Draft 2019-09 schemas are not yet fully supported."))}var u=this.contextService,l=function(_,Z){if(!Z)return _;var te=_;return Z[0]==="/"&&(Z=Z.substr(1)),Z.split("/").some(function(M){return M=M.replace(/~1/g,"/").replace(/~0/g,"~"),te=te[M],!te}),te},v=function(_,Z,te,M){var he=M?decodeURIComponent(M):void 0,Ae=l(Z,he);if(Ae)for(var Fe in Ae)Ae.hasOwnProperty(Fe)&&!_.hasOwnProperty(Fe)&&(_[Fe]=Ae[Fe]);else s.push(Ns("json.schema.invalidref","$ref '{0}' in '{1}' can not be resolved.",he,te))},c=function(_,Z,te,M,he){u&&!/^[A-Za-z][A-Za-z0-9+\-.+]*:\/\/.*/.test(Z)&&(Z=u.resolveRelativePath(Z,M)),Z=Ts(Z);var Ae=i.getOrAddSchemaHandle(Z);return Ae.getUnresolvedSchema().then(function(Fe){if(he[Z]=!0,Fe.errors.length){var ke=te?Z+"#"+te:Z;s.push(Ns("json.schema.problemloadingref","Problems loading reference '{0}': {1}",ke,Fe.errors[0]))}return v(_,Fe.schema,Z,te),N(_,Fe.schema,Z,Ae.dependencies)})},N=function(_,Z,te,M){if(!_||typeof _!="object")return Promise.resolve(null);for(var he=[_],Ae=[],Fe=[],ke=function(){for(var Ve=[],Xe=0;Xe<arguments.length;Xe++)Ve[Xe]=arguments[Xe];for(var ze=0,me=Ve;ze<me.length;ze++){var He=me[ze];typeof He=="object"&&he.push(He)}},ae=function(){for(var Ve=[],Xe=0;Xe<arguments.length;Xe++)Ve[Xe]=arguments[Xe];for(var ze=0,me=Ve;ze<me.length;ze++){var He=me[ze];if(typeof He=="object")for(var xt in He){var jt=xt,Vt=He[jt];typeof Vt=="object"&&he.push(Vt)}}},Ee=function(){for(var Ve=[],Xe=0;Xe<arguments.length;Xe++)Ve[Xe]=arguments[Xe];for(var ze=0,me=Ve;ze<me.length;ze++){var He=me[ze];if(Array.isArray(He))for(var xt=0,jt=He;xt<jt.length;xt++){var Vt=jt[xt];typeof Vt=="object"&&he.push(Vt)}}},Qe=function(Ve){for(var Xe=[];Ve.$ref;){var ze=Ve.$ref,me=ze.split("#",2);if(delete Ve.$ref,me[0].length>0){Fe.push(c(Ve,me[0],me[1],te,M));return}else Xe.indexOf(ze)===-1&&(v(Ve,Z,te,me[1]),Xe.push(ze))}ke(Ve.items,Ve.additionalItems,Ve.additionalProperties,Ve.not,Ve.contains,Ve.propertyNames,Ve.if,Ve.then,Ve.else),ae(Ve.definitions,Ve.properties,Ve.patternProperties,Ve.dependencies),Ee(Ve.anyOf,Ve.allOf,Ve.oneOf,Ve.items)};he.length;){var Dt=he.pop();Ae.indexOf(Dt)>=0||(Ae.push(Dt),Qe(Dt))}return i.promise.all(Fe)};return N(a,a,n,r).then(function(_){return new Po(a,s)})},e.prototype.getSchemaForResource=function(t,n){if(n&&n.root&&n.root.type==="object"){var r=n.root.properties.filter(function(he){return he.keyNode.value==="$schema"&&he.valueNode&&he.valueNode.type==="string"});if(r.length>0){var i=r[0].valueNode;if(i&&i.type==="string"){var s=Pu(i);if(s&&r0(s,".")&&this.contextService&&(s=this.contextService.resolveRelativePath(s,t)),s){var a=Ts(s);return this.getOrAddSchemaHandle(a).getResolvedSchema()}}}}if(this.cachedSchemaForResource&&this.cachedSchemaForResource.resource===t)return this.cachedSchemaForResource.resolvedSchema;for(var o=Object.create(null),u=[],l=pb(t),v=0,c=this.filePatternAssociations;v<c.length;v++){var N=c[v];if(N.matchesPattern(l))for(var _=0,Z=N.getURIs();_<Z.length;_++){var te=Z[_];o[te]||(u.push(te),o[te]=!0)}}var M=u.length>0?this.createCombinedSchema(t,u).getResolvedSchema():this.promise.resolve(void 0);return this.cachedSchemaForResource={resource:t,resolvedSchema:M},M},e.prototype.createCombinedSchema=function(t,n){if(n.length===1)return this.getOrAddSchemaHandle(n[0]);var r="schemaservice://combinedSchema/"+encodeURIComponent(t),i={allOf:n.map(function(s){return{$ref:s}})};return this.addSchemaHandle(r,i)},e.prototype.getMatchingSchemas=function(t,n,r){if(r){var i=r.id||"schemaservice://untitled/matchingSchemas/"+fb++;return this.resolveSchemaContent(new $i(r),i,{}).then(function(s){return n.getMatchingSchemas(s.schema).filter(function(a){return!a.inverted})})}return this.getSchemaForResource(t.uri,n).then(function(s){return s?n.getMatchingSchemas(s.schema).filter(function(a){return!a.inverted}):[]})},e}(),fb=0;function Ts(e){try{return yi.parse(e).toString()}catch{return e}}function pb(e){try{return yi.parse(e).with({fragment:null,query:null}).toString()}catch{return e}}function Bu(e){try{var t=yi.parse(e);if(t.scheme==="file")return t.fsPath}catch{}return e}function db(e){return e.replace(/[-\\{}+?|^$.,[\]()#\s]/g,"\\$&").replace(/[*]/g,".*")}function hb(e,t){if(e.length<t)return 0;for(let n=0;n<t;n++){const r=e.charCodeAt(n);if(r!==32&&r!==9)return n}return t}function a0(e){try{return new RegExp(e,"u")}catch{return new RegExp(e)}}function mb(e,t){t++;for(let n=t;n<e.length;n++){const r=e.charAt(n);if(r===" "||r===" ")t++;else return t}return t}function Bo(e,t){if(e===t)return!0;if(e==null||t===null||t===void 0||typeof e!=typeof t||typeof e!="object"||Array.isArray(e)!==Array.isArray(t))return!1;let n,r;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(!Bo(e[n],t[n]))return!1}else{const i=[];for(r in e)i.push(r);i.sort();const s=[];for(r in t)s.push(r);if(s.sort(),!Bo(i,s))return!1;for(n=0;n<i.length;n++)if(!Bo(e[i[n]],t[i[n]]))return!1}return!0}function _i(e){return typeof e=="number"}function Xs(e){return typeof e<"u"}function Ra(e){return typeof e=="boolean"}function $a(e){return typeof e=="string"}function gb(e){return Symbol.iterator in Object(e)}function os(e){var t;return e?e instanceof Error&&(t=e.stack)!=null?t:e.toString():"null"}function cf(e){const t=e.type&&e.closestTitle;return e.title?e.title:e.$id?o0(e.$id):e.$ref||e._$ref?o0(e.$ref||e._$ref):Array.isArray(e.type)?e.type.join(" | "):t?e.type.concat("(",e.closestTitle,")"):e.type||e.closestTitle}function o0(e){const t=e.match(/^(?:.*\/)?(.*?)(?:\.schema\.json)?$/);let n=!!t&&t[1];return n||(n="typeNotFound",console.error(`$ref (${e}) not parsed properly`)),n}function u0(e,t){const n=yi.parse(t);let r=Ys.basename(n.fsPath);return Ys.extname(n.fsPath)||(r+=".json"),Object.getOwnPropertyDescriptor(e,"name")?Object.getOwnPropertyDescriptor(e,"name").value+` (${r})`:e.title?e.description?e.title+" - "+e.description+` (${r})`:e.title+` (${r})`:r}function yb(e){return e.type!=="object"&&!ff(e)}function ff(e){return!!(e.anyOf||e.allOf||e.oneOf)}var Db=Hs(),bb=function(){function e(t,n){this.jsonSchemaService=t,this.promise=n,this.validationEnabled=!0}return e.prototype.configure=function(t){t&&(this.validationEnabled=t.validate!==!1,this.commentSeverity=t.allowComments?void 0:zn.Error)},e.prototype.doValidation=function(t,n,r,i){var s=this;if(!this.validationEnabled)return this.promise.resolve([]);var a=[],o={},u=function(c){var N=c.range.start.line+" "+c.range.start.character+" "+c.message;o[N]||(o[N]=!0,a.push(c))},l=function(c){var N=r!=null&&r.trailingCommas?Mu(r.trailingCommas):zn.Error,_=r!=null&&r.comments?Mu(r.comments):s.commentSeverity,Z=r!=null&&r.schemaValidation?Mu(r.schemaValidation):zn.Warning,te=r!=null&&r.schemaRequest?Mu(r.schemaRequest):zn.Warning;if(c){if(c.errors.length&&n.root&&te){var M=n.root,he=M.type==="object"?M.properties[0]:void 0;if(he&&he.keyNode.value==="$schema"){var Ae=he.valueNode||he,Fe=In.create(t.positionAt(Ae.offset),t.positionAt(Ae.offset+Ae.length));u(Di.create(Fe,c.errors[0],te,Ri.SchemaResolveError))}else{var Fe=In.create(t.positionAt(M.offset),t.positionAt(M.offset+1));u(Di.create(Fe,c.errors[0],te,Ri.SchemaResolveError))}}else if(Z){var ke=n.validate(t,c.schema,Z);ke&&ke.forEach(u)}l0(c.schema)&&(_=void 0),c0(c.schema)&&(N=void 0)}for(var ae=0,Ee=n.syntaxErrors;ae<Ee.length;ae++){var Qe=Ee[ae];if(Qe.code===Ri.TrailingComma){if(typeof N!="number")continue;Qe.severity=N}u(Qe)}if(typeof _=="number"){var Dt=Db("InvalidCommentToken","Comments are not permitted in JSON.");n.comments.forEach(function(Ve){u(Di.create(Ve,Dt,_,Ri.CommentNotPermitted))})}return a};if(i){var v=i.id||"schemaservice://untitled/"+vb++;return this.jsonSchemaService.resolveSchemaContent(new $i(i),v,{}).then(function(c){return l(c)})}return this.jsonSchemaService.getSchemaForResource(t.uri,n).then(function(c){return l(c)})},e}(),vb=0;function l0(e){if(e&&typeof e=="object"){if(ja(e.allowComments))return e.allowComments;if(e.allOf)for(var t=0,n=e.allOf;t<n.length;t++){var r=n[t],i=l0(r);if(ja(i))return i}}}function c0(e){if(e&&typeof e=="object"){if(ja(e.allowTrailingCommas))return e.allowTrailingCommas;var t=e;if(ja(t.allowsTrailingCommas))return t.allowsTrailingCommas;if(e.allOf)for(var n=0,r=e.allOf;n<r.length;n++){var i=r[n],s=c0(i);if(ja(s))return s}}}function Mu(e){switch(e){case"error":return zn.Error;case"warning":return zn.Warning;case"ignore":return}}var f0=48,Eb=57,Ab=65,Iu=97,Cb=102;function Mr(e){return e<f0?0:e<=Eb?e-f0:(e<Iu&&(e+=Iu-Ab),e>=Iu&&e<=Cb?e-Iu+10:0)}function xb(e){if(e[0]==="#")switch(e.length){case 4:return{red:Mr(e.charCodeAt(1))*17/255,green:Mr(e.charCodeAt(2))*17/255,blue:Mr(e.charCodeAt(3))*17/255,alpha:1};case 5:return{red:Mr(e.charCodeAt(1))*17/255,green:Mr(e.charCodeAt(2))*17/255,blue:Mr(e.charCodeAt(3))*17/255,alpha:Mr(e.charCodeAt(4))*17/255};case 7:return{red:(Mr(e.charCodeAt(1))*16+Mr(e.charCodeAt(2)))/255,green:(Mr(e.charCodeAt(3))*16+Mr(e.charCodeAt(4)))/255,blue:(Mr(e.charCodeAt(5))*16+Mr(e.charCodeAt(6)))/255,alpha:1};case 9:return{red:(Mr(e.charCodeAt(1))*16+Mr(e.charCodeAt(2)))/255,green:(Mr(e.charCodeAt(3))*16+Mr(e.charCodeAt(4)))/255,blue:(Mr(e.charCodeAt(5))*16+Mr(e.charCodeAt(6)))/255,alpha:(Mr(e.charCodeAt(7))*16+Mr(e.charCodeAt(8)))/255}}}var Sb=function(){function e(t){this.schemaService=t}return e.prototype.findDocumentSymbols=function(t,n,r){var i=this;r===void 0&&(r={resultLimit:Number.MAX_VALUE});var s=n.root;if(!s)return[];var a=r.resultLimit||Number.MAX_VALUE,o=t.uri;if((o==="vscode://defaultsettings/keybindings.json"||lf(o.toLowerCase(),"/user/keybindings.json"))&&s.type==="array"){for(var u=[],l=0,v=s.items;l<v.length;l++){var c=v[l];if(c.type==="object")for(var N=0,_=c.properties;N<_.length;N++){var Z=_[N];if(Z.keyNode.value==="key"&&Z.valueNode){var te=Ca.create(t.uri,_s(t,c));if(u.push({name:Pu(Z.valueNode),kind:zi.Function,location:te}),a--,a<=0)return r&&r.onResultLimitExceeded&&r.onResultLimitExceeded(o),u}}}return u}for(var M=[{node:s,containerName:""}],he=0,Ae=!1,Fe=[],ke=function(Ee,Qe){Ee.type==="array"?Ee.items.forEach(function(Dt){Dt&&M.push({node:Dt,containerName:Qe})}):Ee.type==="object"&&Ee.properties.forEach(function(Dt){var Ve=Dt.valueNode;if(Ve)if(a>0){a--;var Xe=Ca.create(t.uri,_s(t,Dt)),ze=Qe?Qe+"."+Dt.keyNode.value:Dt.keyNode.value;Fe.push({name:i.getKeyLabel(Dt),kind:i.getSymbolKind(Ve.type),location:Xe,containerName:Qe}),M.push({node:Ve,containerName:ze})}else Ae=!0})};he<M.length;){var ae=M[he++];ke(ae.node,ae.containerName)}return Ae&&r&&r.onResultLimitExceeded&&r.onResultLimitExceeded(o),Fe},e.prototype.findDocumentSymbols2=function(t,n,r){var i=this;r===void 0&&(r={resultLimit:Number.MAX_VALUE});var s=n.root;if(!s)return[];var a=r.resultLimit||Number.MAX_VALUE,o=t.uri;if((o==="vscode://defaultsettings/keybindings.json"||lf(o.toLowerCase(),"/user/keybindings.json"))&&s.type==="array"){for(var u=[],l=0,v=s.items;l<v.length;l++){var c=v[l];if(c.type==="object")for(var N=0,_=c.properties;N<_.length;N++){var Z=_[N];if(Z.keyNode.value==="key"&&Z.valueNode){var te=_s(t,c),M=_s(t,Z.keyNode);if(u.push({name:Pu(Z.valueNode),kind:zi.Function,range:te,selectionRange:M}),a--,a<=0)return r&&r.onResultLimitExceeded&&r.onResultLimitExceeded(o),u}}}return u}for(var he=[],Ae=[{node:s,result:he}],Fe=0,ke=!1,ae=function(Qe,Dt){Qe.type==="array"?Qe.items.forEach(function(Ve,Xe){if(Ve)if(a>0){a--;var ze=_s(t,Ve),me=ze,He=String(Xe),xt={name:He,kind:i.getSymbolKind(Ve.type),range:ze,selectionRange:me,children:[]};Dt.push(xt),Ae.push({result:xt.children,node:Ve})}else ke=!0}):Qe.type==="object"&&Qe.properties.forEach(function(Ve){var Xe=Ve.valueNode;if(Xe)if(a>0){a--;var ze=_s(t,Ve),me=_s(t,Ve.keyNode),He=[],xt={name:i.getKeyLabel(Ve),kind:i.getSymbolKind(Xe.type),range:ze,selectionRange:me,children:He,detail:i.getDetail(Xe)};Dt.push(xt),Ae.push({result:He,node:Xe})}else ke=!0})};Fe<Ae.length;){var Ee=Ae[Fe++];ae(Ee.node,Ee.result)}return ke&&r&&r.onResultLimitExceeded&&r.onResultLimitExceeded(o),he},e.prototype.getSymbolKind=function(t){switch(t){case"object":return zi.Module;case"string":return zi.String;case"number":return zi.Number;case"array":return zi.Array;case"boolean":return zi.Boolean;default:return zi.Variable}},e.prototype.getKeyLabel=function(t){var n=t.keyNode.value;return n&&(n=n.replace(/[\n]/g,"↵")),n&&n.trim()?n:'"'+n+'"'},e.prototype.getDetail=function(t){if(t){if(t.type==="boolean"||t.type==="number"||t.type==="null"||t.type==="string")return String(t.value);if(t.type==="array")return t.children.length?void 0:"[]";if(t.type==="object")return t.children.length?void 0:"{}"}},e.prototype.findDocumentColors=function(t,n,r){return this.schemaService.getSchemaForResource(t.uri,n).then(function(i){var s=[];if(i)for(var a=r&&typeof r.resultLimit=="number"?r.resultLimit:Number.MAX_VALUE,o=n.getMatchingSchemas(i.schema),u={},l=0,v=o;l<v.length;l++){var c=v[l];if(!c.inverted&&c.schema&&(c.schema.format==="color"||c.schema.format==="color-hex")&&c.node&&c.node.type==="string"){var N=String(c.node.offset);if(!u[N]){var _=xb(Pu(c.node));if(_){var Z=_s(t,c.node);s.push({color:_,range:Z})}if(u[N]=!0,a--,a<=0)return r&&r.onResultLimitExceeded&&r.onResultLimitExceeded(t.uri),s}}}return s})},e.prototype.getColorPresentations=function(t,n,r,i){var s=[],a=Math.round(r.red*255),o=Math.round(r.green*255),u=Math.round(r.blue*255);function l(c){var N=c.toString(16);return N.length!==2?"0"+N:N}var v;return r.alpha===1?v="#"+l(a)+l(o)+l(u):v="#"+l(a)+l(o)+l(u)+l(Math.round(r.alpha*255)),s.push({label:v,textEdit:Nr.replace(i,JSON.stringify(v))}),s},e}();function _s(e,t){return In.create(e.positionAt(t.offset),e.positionAt(t.offset+t.length))}var On=Hs(),p0={schemaAssociations:[],schemas:{"http://json-schema.org/schema#":{$ref:"http://json-schema.org/draft-07/schema#"},"http://json-schema.org/draft-04/schema#":{$schema:"http://json-schema.org/draft-04/schema#",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},positiveInteger:{type:"integer",minimum:0},positiveIntegerDefault0:{allOf:[{$ref:"#/definitions/positiveInteger"},{default:0}]},simpleTypes:{type:"string",enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},type:"object",properties:{id:{type:"string",format:"uri"},$schema:{type:"string",format:"uri"},title:{type:"string"},description:{type:"string"},default:{},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{allOf:[{$ref:"#/definitions/positiveInteger"}]},minLength:{allOf:[{$ref:"#/definitions/positiveIntegerDefault0"}]},pattern:{type:"string",format:"regex"},additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{allOf:[{$ref:"#/definitions/positiveInteger"}]},minItems:{allOf:[{$ref:"#/definitions/positiveIntegerDefault0"}]},uniqueItems:{type:"boolean",default:!1},maxProperties:{allOf:[{$ref:"#/definitions/positiveInteger"}]},minProperties:{allOf:[{$ref:"#/definitions/positiveIntegerDefault0"}]},required:{allOf:[{$ref:"#/definitions/stringArray"}]},additionalProperties:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{anyOf:[{type:"string",enum:["date-time","uri","email","hostname","ipv4","ipv6","regex"]},{type:"string"}]},allOf:{allOf:[{$ref:"#/definitions/schemaArray"}]},anyOf:{allOf:[{$ref:"#/definitions/schemaArray"}]},oneOf:{allOf:[{$ref:"#/definitions/schemaArray"}]},not:{allOf:[{$ref:"#"}]}},dependencies:{exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},default:{}},"http://json-schema.org/draft-07/schema#":{definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}}},wb={id:On("schema.json.id","A unique identifier for the schema."),$schema:On("schema.json.$schema","The schema to verify this document against."),title:On("schema.json.title","A descriptive title of the element."),description:On("schema.json.description","A long description of the element. Used in hover menus and suggestions."),default:On("schema.json.default","A default value. Used by suggestions."),multipleOf:On("schema.json.multipleOf","A number that should cleanly divide the current value (i.e. have no remainder)."),maximum:On("schema.json.maximum","The maximum numerical value, inclusive by default."),exclusiveMaximum:On("schema.json.exclusiveMaximum","Makes the maximum property exclusive."),minimum:On("schema.json.minimum","The minimum numerical value, inclusive by default."),exclusiveMinimum:On("schema.json.exclusiveMininum","Makes the minimum property exclusive."),maxLength:On("schema.json.maxLength","The maximum length of a string."),minLength:On("schema.json.minLength","The minimum length of a string."),pattern:On("schema.json.pattern","A regular expression to match the string against. It is not implicitly anchored."),additionalItems:On("schema.json.additionalItems","For arrays, only when items is set as an array. If it is a schema, then this schema validates items after the ones specified by the items array. If it is false, then additional items will cause validation to fail."),items:On("schema.json.items","For arrays. Can either be a schema to validate every element against or an array of schemas to validate each item against in order (the first schema will validate the first element, the second schema will validate the second element, and so on."),maxItems:On("schema.json.maxItems","The maximum number of items that can be inside an array. Inclusive."),minItems:On("schema.json.minItems","The minimum number of items that can be inside an array. Inclusive."),uniqueItems:On("schema.json.uniqueItems","If all of the items in the array must be unique. Defaults to false."),maxProperties:On("schema.json.maxProperties","The maximum number of properties an object can have. Inclusive."),minProperties:On("schema.json.minProperties","The minimum number of properties an object can have. Inclusive."),required:On("schema.json.required","An array of strings that lists the names of all properties required on this object."),additionalProperties:On("schema.json.additionalProperties","Either a schema or a boolean. If a schema, then used to validate all properties not matched by 'properties' or 'patternProperties'. If false, then any properties not matched by either will cause this schema to fail."),definitions:On("schema.json.definitions","Not used for validation. Place subschemas here that you wish to reference inline with $ref."),properties:On("schema.json.properties","A map of property names to schemas for each property."),patternProperties:On("schema.json.patternProperties","A map of regular expressions on property names to schemas for matching properties."),dependencies:On("schema.json.dependencies","A map of property names to either an array of property names or a schema. An array of property names means the property named in the key depends on the properties in the array being present in the object in order to be valid. If the value is a schema, then the schema is only applied to the object if the property in the key exists on the object."),enum:On("schema.json.enum","The set of literal values that are valid."),type:On("schema.json.type","Either a string of one of the basic schema types (number, integer, null, array, object, boolean, string) or an array of strings specifying a subset of those types."),format:On("schema.json.format","Describes the format expected for the value."),allOf:On("schema.json.allOf","An array of schemas, all of which must match."),anyOf:On("schema.json.anyOf","An array of schemas, where at least one must match."),oneOf:On("schema.json.oneOf","An array of schemas, exactly one of which must match."),not:On("schema.json.not","A schema which must not match."),$id:On("schema.json.$id","A unique identifier for the schema."),$ref:On("schema.json.$ref","Reference a definition hosted on any location."),$comment:On("schema.json.$comment","Comments from schema authors to readers or maintainers of the schema."),readOnly:On("schema.json.readOnly","Indicates that the value of the instance is managed exclusively by the owning authority."),examples:On("schema.json.examples","Sample JSON values associated with a particular schema, for the purpose of illustrating usage."),contains:On("schema.json.contains",'An array instance is valid against "contains" if at least one of its elements is valid against the given schema.'),propertyNames:On("schema.json.propertyNames","If the instance is an object, this keyword validates if every property name in the instance validates against the provided schema."),const:On("schema.json.const","An instance validates successfully against this keyword if its value is equal to the value of the keyword."),contentMediaType:On("schema.json.contentMediaType","Describes the media type of a string property."),contentEncoding:On("schema.json.contentEncoding","Describes the content encoding of a string property."),if:On("schema.json.if",'The validation outcome of the "if" subschema controls which of the "then" or "else" keywords are evaluated.'),then:On("schema.json.then",'The "if" subschema is used for validation when the "if" subschema succeeds.'),else:On("schema.json.else",'The "else" subschema is used for validation when the "if" subschema fails.')};for(d0 in p0.schemas){Ou=p0.schemas[d0];for(Va in Ou.properties)ju=Ou.properties[Va],typeof ju=="boolean"&&(ju=Ou.properties[Va]={}),pf=wb[Va],pf?ju.description=pf:console.log(Va+": localize('schema.json."+Va+`', "")`)}var Ou,ju,pf,Va,d0;function Fb(e,t){var n=[];return t.visit(function(r){var i;if(r.type==="property"&&r.keyNode.value==="$ref"&&((i=r.valueNode)===null||i===void 0?void 0:i.type)==="string"){var s=r.valueNode.value,a=Tb(t,s);if(a){var o=e.positionAt(a.offset);n.push({target:e.uri+"#"+(o.line+1)+","+(o.character+1),range:Nb(e,r.valueNode)})}}return!0}),Promise.resolve(n)}function Nb(e,t){return In.create(e.positionAt(t.offset+1),e.positionAt(t.offset+t.length-1))}function Tb(e,t){var n=_b(t);return n?df(n,e.root):null}function df(e,t){if(!t)return null;if(e.length===0)return t;var n=e.shift();if(t&&t.type==="object"){var r=t.properties.find(function(a){return a.keyNode.value===n});return r?df(e,r.valueNode):null}else if(t&&t.type==="array"&&n.match(/^(0|[1-9][0-9]*)$/)){var i=Number.parseInt(n),s=t.items[i];return s?df(e,s):null}return null}function _b(e){return e==="#"?[]:e[0]!=="#"||e[1]!=="/"?null:e.substring(2).split(/\//).map(Lb)}function Lb(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function Ru(e,t){for(const n of t.documents)if(n.internalDocument&&n.internalDocument.range[0]<=e&&n.internalDocument.range[2]>=e)return n;return t.documents.length===1?t.documents[0]:null}function h0(e){const t=["mapping","scalar","sequence"];return e?e.filter(n=>{if(typeof n=="string"){const r=n.split(" "),i=r[1]&&r[1].toLowerCase()||"scalar";return i==="map"?!1:t.indexOf(i)!==-1}return!1}):[]}function m0(e,t){if(!t||!e||t.length!==e.length)return!1;for(let n=e.length-1;n>=0;n--)if(e[n]!==t[n])return!1;return!0}var rr=Hs(),hf="Property {0} is not allowed.",kb={"color-hex":{errorMessage:rr("colorHexFormatWarning","Invalid color format. Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA."),pattern:/^#([0-9A-Fa-f]{3,4}|([0-9A-Fa-f]{2}){3,4})$/},"date-time":{errorMessage:rr("dateTimeFormatWarning","String is not a RFC3339 date-time."),pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},date:{errorMessage:rr("dateFormatWarning","String is not a RFC3339 date."),pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/i},time:{errorMessage:rr("timeFormatWarning","String is not a RFC3339 time."),pattern:/^([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},email:{errorMessage:rr("emailFormatWarning","String is not an e-mail address."),pattern:/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/},ipv4:{errorMessage:rr("ipv4FormatWarning","String does not match IPv4 format."),pattern:/^((25[0-5]|(2[0-4]|1\d|[1-9]|)\d)\.?\b){4}$/},ipv6:{errorMessage:rr("ipv6FormatWarning","String does not match IPv6 format."),pattern:/^([0-9a-f]|:){1,4}(:([0-9a-f]{0,4})*){1,7}$/i}},$u="YAML",g0="yaml-schema: ",ai;(function(e){e.missingRequiredPropWarning="missingRequiredPropWarning",e.typeMismatchWarning="typeMismatchWarning",e.constWarning="constWarning"})(ai||(ai={}));var Pb={[ai.missingRequiredPropWarning]:'Missing property "{0}".',[ai.typeMismatchWarning]:'Incorrect type. Expected "{0}".',[ai.constWarning]:"Value must be {0}."},Ks=class{constructor(e,t,n,r){this.offset=n,this.length=r,this.parent=e,this.internalNode=t}getNodeFromOffsetEndInclusive(e){const t=[],n=a=>{if(e>=a.offset&&e<=a.offset+a.length){const o=a.children;for(let u=0;u<o.length&&o[u].offset<=e;u++){const l=n(o[u]);l&&t.push(l)}return a}return null},r=n(this);let i=Number.MAX_VALUE,s=null;for(const a of t){const o=a.length+a.offset-e+(e-a.offset);o<i&&(s=a,i=o)}return s||r}get children(){return[]}toString(){return"type: "+this.type+" ("+this.offset+"/"+this.length+")"+(this.parent?" parent: {"+this.parent.toString()+"}":"")}},Bb=class extends Ks{constructor(e,t,n,r){super(e,t,n,r),this.type="null",this.value=null}},Mb=class extends Ks{constructor(e,t,n,r,i){super(e,t,r,i),this.type="boolean",this.value=n}},Ib=class extends Ks{constructor(e,t,n,r){super(e,t,n,r),this.type="array",this.items=[]}get children(){return this.items}},Ob=class extends Ks{constructor(e,t,n,r){super(e,t,n,r),this.type="number",this.isInteger=!0,this.value=Number.NaN}},Vu=class extends Ks{constructor(e,t,n,r){super(e,t,n,r),this.type="string",this.value=""}},jb=class extends Ks{constructor(e,t,n,r){super(e,t,n,r),this.type="property",this.colonOffset=-1}get children(){return this.valueNode?[this.keyNode,this.valueNode]:[this.keyNode]}},Rb=class extends Ks{constructor(e,t,n,r){super(e,t,n,r),this.type="object",this.properties=[]}get children(){return this.properties}};function oi(e){if(e!==void 0)return Ra(e)?e?{}:{not:{}}:(typeof e!="object"&&(console.warn(`Wrong schema: ${JSON.stringify(e)}, it MUST be an Object or Boolean`),e={type:e}),e)}var y0;(function(e){e[e.Key=0]="Key",e[e.Enum=1]="Enum"})(y0||(y0={}));var $b=class yg{constructor(t=-1,n=null){this.focusOffset=t,this.exclude=n,this.schemas=[]}add(t){this.schemas.push(t)}merge(t){this.schemas.push(...t.schemas)}include(t){return(this.focusOffset===-1||D0(t,this.focusOffset))&&t!==this.exclude}newSub(){return new yg(-1,this.exclude)}},Mo=class{constructor(){}get schemas(){return[]}add(e){}merge(e){}include(e){return!0}newSub(){return this}};Mo.instance=new Mo;var fi=class{constructor(e){this.problems=[],this.propertiesMatches=0,this.propertiesValueMatches=0,this.primaryValueMatches=0,this.enumValueMatch=!1,e?this.enumValues=[]:this.enumValues=null}hasProblems(){return!!this.problems.length}mergeAll(e){for(const t of e)this.merge(t)}merge(e){this.problems=this.problems.concat(e.problems)}mergeEnumValues(e){if(!this.enumValueMatch&&!e.enumValueMatch&&this.enumValues&&e.enumValues){this.enumValues=this.enumValues.concat(e.enumValues);for(const t of this.problems)t.code===Ri.EnumValueMismatch&&(t.message=rr("enumWarning","Value is not accepted. Valid values: {0}.",[...new Set(this.enumValues)].map(n=>JSON.stringify(n)).join(", ")))}}mergeWarningGeneric(e,t){var n,r;if((n=this.problems)!=null&&n.length)for(const i of t){const s=this.problems.filter(a=>a.problemType===i);for(const a of s){const o=(r=e.problems)==null?void 0:r.find(u=>u.problemType===i&&a.location.offset===u.location.offset&&(i!==ai.missingRequiredPropWarning||m0(u.problemArgs,a.problemArgs)));o&&(o.problemArgs.length&&(o.problemArgs.filter(u=>!a.problemArgs.includes(u)).forEach(u=>a.problemArgs.push(u)),a.message=qu(a.problemType,a.problemArgs)),this.mergeSources(o,a))}}}mergePropertyMatch(e){this.merge(e),this.propertiesMatches++,(e.enumValueMatch||!e.hasProblems()&&e.propertiesMatches)&&this.propertiesValueMatches++,e.enumValueMatch&&e.enumValues&&this.primaryValueMatches++}mergeSources(e,t){const n=e.source.replace(g0,"");t.source.includes(n)||(t.source=t.source+" | "+n),t.schemaUri.includes(e.schemaUri[0])||(t.schemaUri=t.schemaUri.concat(e.schemaUri))}compareGeneric(e){const t=this.hasProblems();return t!==e.hasProblems()?t?-1:1:this.enumValueMatch!==e.enumValueMatch?e.enumValueMatch?-1:1:this.propertiesValueMatches!==e.propertiesValueMatches?this.propertiesValueMatches-e.propertiesValueMatches:this.primaryValueMatches!==e.primaryValueMatches?this.primaryValueMatches-e.primaryValueMatches:this.propertiesMatches-e.propertiesMatches}compareKubernetes(e){const t=this.hasProblems();return this.propertiesMatches!==e.propertiesMatches?this.propertiesMatches-e.propertiesMatches:this.enumValueMatch!==e.enumValueMatch?e.enumValueMatch?-1:1:this.primaryValueMatches!==e.primaryValueMatches?this.primaryValueMatches-e.primaryValueMatches:this.propertiesValueMatches!==e.propertiesValueMatches?this.propertiesValueMatches-e.propertiesValueMatches:t!==e.hasProblems()?t?-1:1:this.propertiesMatches-e.propertiesMatches}};function qa(e){switch(e.type){case"array":return e.children.map(qa);case"object":{const t=Object.create(null);for(let n=0,r=e.children;n<r.length;n++){const i=r[n],s=i.children[1];s&&(t[i.children[0].value]=qa(s))}return t}case"null":case"string":case"number":case"boolean":return e.value;default:return}}function D0(e,t,n=!1){return t>=e.offset&&t<=e.offset+e.length||n&&t===e.offset+e.length}function b0(e,t,n){if(n===void 0&&(n=!1),D0(e,t,n)){const r=e.children;if(Array.isArray(r))for(let i=0;i<r.length&&r[i].offset<=t;i++){const s=b0(r[i],t,n);if(s)return s}return e}}var Vb=class{constructor(e,t=[],n=[]){this.root=e,this.syntaxErrors=t,this.comments=n}getNodeFromOffset(e,t=!1){if(this.root)return b0(this.root,e,t)}getNodeFromOffsetEndInclusive(e){return this.root&&this.root.getNodeFromOffsetEndInclusive(e)}visit(e){if(this.root){const t=n=>{let r=e(n);const i=n.children;if(Array.isArray(i))for(let s=0;s<i.length&&r;s++)r=t(i[s]);return r};t(this.root)}}validate(e,t){if(this.root&&t){const n=new fi(this.isKubernetes);return zr(this.root,t,t,n,Mo.instance,{isKubernetes:this.isKubernetes,disableAdditionalProperties:this.disableAdditionalProperties,uri:this.uri}),n.problems.map(r=>{const i=In.create(e.positionAt(r.location.offset),e.positionAt(r.location.offset+r.location.length)),s=Di.create(i,r.message,r.severity,r.code?r.code:Ri.Undefined,r.source);return s.data={schemaUri:r.schemaUri,...r.data},s})}return null}getMatchingSchemas(e,t=-1,n=null,r){const i=new $b(t,n);return this.root&&e&&zr(this.root,e,e,new fi(this.isKubernetes),i,{isKubernetes:this.isKubernetes,disableAdditionalProperties:this.disableAdditionalProperties,uri:this.uri,callFromAutoComplete:r}),i.schemas}};function zr(e,t,n,r,i,s){const{isKubernetes:a,callFromAutoComplete:o}=s;if(!e||typeof t!="object")return;switch(t.url||(t.url=n.url),t.closestTitle=t.title||n.closestTitle,e.type){case"object":N(e,t,r,i);break;case"array":c(e,t,r,i);break;case"string":v(e,t,r);break;case"number":l(e,t,r);break;case"property":return zr(e.valueNode,t,t,r,i,s)}u(),i.add({node:e,schema:t});function u(){function te(ae){return e.type===ae||ae==="integer"&&e.type==="number"&&e.isInteger}if(Array.isArray(t.type))t.type.some(te)||r.problems.push({location:{offset:e.offset,length:e.length},severity:zn.Warning,message:t.errorMessage||rr("typeArrayMismatchWarning","Incorrect type. Expected one of {0}.",t.type.join(", ")),source:hr(t,n),schemaUri:mr(t,n)});else if(t.type&&!te(t.type)){const ae=t.type==="object"?cf(t):t.type;r.problems.push({location:{offset:e.offset,length:e.length},severity:zn.Warning,message:t.errorMessage||qu(ai.typeMismatchWarning,[ae]),source:hr(t,n),schemaUri:mr(t,n),problemType:ai.typeMismatchWarning,problemArgs:[ae]})}if(Array.isArray(t.allOf))for(const ae of t.allOf)zr(e,oi(ae),t,r,i,s);const M=oi(t.not);if(M){const ae=new fi(a),Ee=i.newSub();zr(e,M,t,ae,Ee,s),ae.hasProblems()||r.problems.push({location:{offset:e.offset,length:e.length},severity:zn.Warning,message:rr("notSchemaWarning","Matches a schema that is not allowed."),source:hr(t,n),schemaUri:mr(t,n)});for(const Qe of Ee.schemas)Qe.inverted=!Qe.inverted,i.add(Qe)}const he=(ae,Ee)=>{var Qe;const Dt=[],Ve=[],Xe=[];let ze=null;for(const me of ae){const He={...oi(me)},xt=new fi(a),jt=i.newSub();zr(e,He,t,xt,jt,s),(!xt.hasProblems()||o)&&(Dt.push(He),Ve.push(He),xt.propertiesMatches===0&&Xe.push(He),He.format&&Ve.pop()),ze?a?ze=_(xt,ze,He,jt):ze=Z(e,Ee,xt,ze,He,jt):ze={schema:He,validationResult:xt,matchingSchemas:jt}}return Ve.length>1&&(Ve.length>1||Xe.length===0)&&Ee&&r.problems.push({location:{offset:e.offset,length:1},severity:zn.Warning,message:rr("oneOfWarning","Matches multiple schemas when only one must validate."),source:hr(t,n),schemaUri:mr(t,n)}),ze!==null&&(r.merge(ze.validationResult),r.propertiesMatches+=ze.validationResult.propertiesMatches,r.propertiesValueMatches+=ze.validationResult.propertiesValueMatches,r.enumValueMatch=r.enumValueMatch||ze.validationResult.enumValueMatch,(Qe=ze.validationResult.enumValues)!=null&&Qe.length&&(r.enumValues=(r.enumValues||[]).concat(ze.validationResult.enumValues)),i.merge(ze.matchingSchemas)),Dt.length};Array.isArray(t.anyOf)&&he(t.anyOf,!1),Array.isArray(t.oneOf)&&he(t.oneOf,!0);const Ae=(ae,Ee)=>{const Qe=new fi(a),Dt=i.newSub();zr(e,oi(ae),Ee,Qe,Dt,s),r.merge(Qe),r.propertiesMatches+=Qe.propertiesMatches,r.propertiesValueMatches+=Qe.propertiesValueMatches,i.merge(Dt)},Fe=(ae,Ee,Qe,Dt)=>{const Ve=oi(ae),Xe=new fi(a),ze=i.newSub();zr(e,Ve,Ee,Xe,ze,s),i.merge(ze);const{filePatternAssociation:me}=Ve;me&&(new lv(me).matchesPattern(s.uri)||Xe.problems.push({location:{offset:e.offset,length:e.length},severity:zn.Warning,message:rr("ifFilePatternAssociation",`filePatternAssociation '${me}' does not match with doc uri '${s.uri}'.`),source:hr(t,Ee),schemaUri:mr(t,Ee)})),Xe.hasProblems()?Dt&&Ae(Dt,Ee):Qe&&Ae(Qe,Ee)},ke=oi(t.if);if(ke&&Fe(ke,t,oi(t.then),oi(t.else)),Array.isArray(t.enum)){const ae=qa(e);let Ee=!1;for(const Qe of t.enum)if(Bo(ae,Qe)||o&&$a(ae)&&$a(Qe)&&ae&&Qe.startsWith(ae)){Ee=!0;break}r.enumValues=t.enum,r.enumValueMatch=Ee,Ee||r.problems.push({location:{offset:e.offset,length:e.length},severity:zn.Warning,code:Ri.EnumValueMismatch,message:t.errorMessage||rr("enumWarning","Value is not accepted. Valid values: {0}.",t.enum.map(Qe=>JSON.stringify(Qe)).join(", ")),source:hr(t,n),schemaUri:mr(t,n)})}if(Xs(t.const)){const ae=qa(e);!Bo(ae,t.const)&&!(o&&$a(ae)&&$a(t.const)&&t.const.startsWith(ae))?(r.problems.push({location:{offset:e.offset,length:e.length},severity:zn.Warning,code:Ri.EnumValueMismatch,problemType:ai.constWarning,message:t.errorMessage||qu(ai.constWarning,[JSON.stringify(t.const)]),source:hr(t,n),schemaUri:mr(t,n),problemArgs:[JSON.stringify(t.const)]}),r.enumValueMatch=!1):r.enumValueMatch=!0,r.enumValues=[t.const]}t.deprecationMessage&&e.parent&&r.problems.push({location:{offset:e.parent.offset,length:e.parent.length},severity:zn.Warning,message:t.deprecationMessage,source:hr(t,n),schemaUri:mr(t,n)})}function l(te,M,he){const Ae=te.value;_i(M.multipleOf)&&Ae%M.multipleOf!==0&&he.problems.push({location:{offset:te.offset,length:te.length},severity:zn.Warning,message:rr("multipleOfWarning","Value is not divisible by {0}.",M.multipleOf),source:hr(M,n),schemaUri:mr(M,n)});function Fe(Ve,Xe){if(_i(Xe))return Xe;if(Ra(Xe)&&Xe)return Ve}function ke(Ve,Xe){if(!Ra(Xe)||!Xe)return Ve}const ae=Fe(M.minimum,M.exclusiveMinimum);_i(ae)&&Ae<=ae&&he.problems.push({location:{offset:te.offset,length:te.length},severity:zn.Warning,message:rr("exclusiveMinimumWarning","Value is below the exclusive minimum of {0}.",ae),source:hr(M,n),schemaUri:mr(M,n)});const Ee=Fe(M.maximum,M.exclusiveMaximum);_i(Ee)&&Ae>=Ee&&he.problems.push({location:{offset:te.offset,length:te.length},severity:zn.Warning,message:rr("exclusiveMaximumWarning","Value is above the exclusive maximum of {0}.",Ee),source:hr(M,n),schemaUri:mr(M,n)});const Qe=ke(M.minimum,M.exclusiveMinimum);_i(Qe)&&Ae<Qe&&he.problems.push({location:{offset:te.offset,length:te.length},severity:zn.Warning,message:rr("minimumWarning","Value is below the minimum of {0}.",Qe),source:hr(M,n),schemaUri:mr(M,n)});const Dt=ke(M.maximum,M.exclusiveMaximum);_i(Dt)&&Ae>Dt&&he.problems.push({location:{offset:te.offset,length:te.length},severity:zn.Warning,message:rr("maximumWarning","Value is above the maximum of {0}.",Dt),source:hr(M,n),schemaUri:mr(M,n)})}function v(te,M,he){if(_i(M.minLength)&&te.value.length<M.minLength&&he.problems.push({location:{offset:te.offset,length:te.length},severity:zn.Warning,message:rr("minLengthWarning","String is shorter than the minimum length of {0}.",M.minLength),source:hr(M,n),schemaUri:mr(M,n)}),_i(M.maxLength)&&te.value.length>M.maxLength&&he.problems.push({location:{offset:te.offset,length:te.length},severity:zn.Warning,message:rr("maxLengthWarning","String is longer than the maximum length of {0}.",M.maxLength),source:hr(M,n),schemaUri:mr(M,n)}),$a(M.pattern)&&(a0(M.pattern).test(te.value)||he.problems.push({location:{offset:te.offset,length:te.length},severity:zn.Warning,message:M.patternErrorMessage||M.errorMessage||rr("patternWarning",'String does not match the pattern of "{0}".',M.pattern),source:hr(M,n),schemaUri:mr(M,n)})),M.format)switch(M.format){case"uri":case"uri-reference":{let Ae;if(!te.value)Ae=rr("uriEmpty","URI expected.");else try{!yi.parse(te.value).scheme&&M.format==="uri"&&(Ae=rr("uriSchemeMissing","URI with a scheme is expected."))}catch(Fe){Ae=Fe.message}Ae&&he.problems.push({location:{offset:te.offset,length:te.length},severity:zn.Warning,message:M.patternErrorMessage||M.errorMessage||rr("uriFormatWarning","String is not a URI: {0}",Ae),source:hr(M,n),schemaUri:mr(M,n)})}break;case"color-hex":case"date-time":case"date":case"time":case"email":case"ipv4":case"ipv6":{const Ae=kb[M.format];(!te.value||!Ae.pattern.test(te.value))&&he.problems.push({location:{offset:te.offset,length:te.length},severity:zn.Warning,message:M.patternErrorMessage||M.errorMessage||Ae.errorMessage,source:hr(M,n),schemaUri:mr(M,n)})}break}}function c(te,M,he,Ae){if(Array.isArray(M.items)){const ke=M.items;for(let ae=0;ae<ke.length;ae++){const Ee=ke[ae],Qe=oi(Ee),Dt=new fi(a),Ve=te.items[ae];Ve?(zr(Ve,Qe,M,Dt,Ae,s),he.mergePropertyMatch(Dt),he.mergeEnumValues(Dt)):te.items.length>=ke.length&&he.propertiesValueMatches++}if(te.items.length>ke.length)if(typeof M.additionalItems=="object")for(let ae=ke.length;ae<te.items.length;ae++){const Ee=new fi(a);zr(te.items[ae],M.additionalItems,M,Ee,Ae,s),he.mergePropertyMatch(Ee),he.mergeEnumValues(Ee)}else M.additionalItems===!1&&he.problems.push({location:{offset:te.offset,length:te.length},severity:zn.Warning,message:rr("additionalItemsWarning","Array has too many items according to schema. Expected {0} or fewer.",ke.length),source:hr(M,n),schemaUri:mr(M,n)})}else{const ke=oi(M.items);if(ke){const ae=new fi(a);te.items.forEach(Ee=>{if(ke.oneOf&&ke.oneOf.length===1){const Qe=ke.oneOf[0],Dt={...oi(Qe)};Dt.title=M.title,Dt.closestTitle=M.closestTitle,zr(Ee,Dt,M,ae,Ae,s),he.mergePropertyMatch(ae),he.mergeEnumValues(ae)}else zr(Ee,ke,M,ae,Ae,s),he.mergePropertyMatch(ae),he.mergeEnumValues(ae)})}}const Fe=oi(M.contains);if(Fe&&(te.items.some(ae=>{const Ee=new fi(a);return zr(ae,Fe,M,Ee,Mo.instance,s),!Ee.hasProblems()})||he.problems.push({location:{offset:te.offset,length:te.length},severity:zn.Warning,message:M.errorMessage||rr("requiredItemMissingWarning","Array does not contain required item."),source:hr(M,n),schemaUri:mr(M,n)})),_i(M.minItems)&&te.items.length<M.minItems&&he.problems.push({location:{offset:te.offset,length:te.length},severity:zn.Warning,message:rr("minItemsWarning","Array has too few items. Expected {0} or more.",M.minItems),source:hr(M,n),schemaUri:mr(M,n)}),_i(M.maxItems)&&te.items.length>M.maxItems&&he.problems.push({location:{offset:te.offset,length:te.length},severity:zn.Warning,message:rr("maxItemsWarning","Array has too many items. Expected {0} or fewer.",M.maxItems),source:hr(M,n),schemaUri:mr(M,n)}),M.uniqueItems===!0){const ke=qa(te);ke.some((Ee,Qe)=>Qe!==ke.lastIndexOf(Ee))&&he.problems.push({location:{offset:te.offset,length:te.length},severity:zn.Warning,message:rr("uniqueItemsWarning","Array has duplicate items."),source:hr(M,n),schemaUri:mr(M,n)})}}function N(te,M,he,Ae){var Fe;const ke=Object.create(null),ae=[],Ee=[...te.properties];for(;Ee.length>0;){const Ve=Ee.pop(),Xe=Ve.keyNode.value;if(Xe==="<<"&&Ve.valueNode)switch(Ve.valueNode.type){case"object":{Ee.push(...Ve.valueNode.properties);break}case"array":{Ve.valueNode.items.forEach(ze=>{ze&&gb(ze.properties)&&Ee.push(...ze.properties)});break}}else ke[Xe]=Ve.valueNode,ae.push(Xe)}if(Array.isArray(M.required)){for(const Ve of M.required)if(ke[Ve]===void 0){const Xe=te.parent&&te.parent.type==="property"&&te.parent.keyNode,ze=Xe?{offset:Xe.offset,length:Xe.length}:{offset:te.offset,length:1};he.problems.push({location:ze,severity:zn.Warning,message:qu(ai.missingRequiredPropWarning,[Ve]),source:hr(M,n),schemaUri:mr(M,n),problemArgs:[Ve],problemType:ai.missingRequiredPropWarning})}}const Qe=Ve=>{let Xe=ae.indexOf(Ve);for(;Xe>=0;)ae.splice(Xe,1),Xe=ae.indexOf(Ve)};if(M.properties)for(const Ve of Object.keys(M.properties)){Qe(Ve);const Xe=M.properties[Ve],ze=ke[Ve];if(ze)if(Ra(Xe))if(Xe)he.propertiesMatches++,he.propertiesValueMatches++;else{const me=ze.parent;he.problems.push({location:{offset:me.keyNode.offset,length:me.keyNode.length},severity:zn.Warning,message:M.errorMessage||rr("DisallowedExtraPropWarning",hf,Ve),source:hr(M,n),schemaUri:mr(M,n)})}else{Xe.url=(Fe=M.url)!=null?Fe:n.url;const me=new fi(a);zr(ze,Xe,M,me,Ae,s),he.mergePropertyMatch(me),he.mergeEnumValues(me)}}if(M.patternProperties)for(const Ve of Object.keys(M.patternProperties)){const Xe=a0(Ve);for(const ze of ae.slice(0))if(Xe.test(ze)){Qe(ze);const me=ke[ze];if(me){const He=M.patternProperties[Ve];if(Ra(He))if(He)he.propertiesMatches++,he.propertiesValueMatches++;else{const xt=me.parent;he.problems.push({location:{offset:xt.keyNode.offset,length:xt.keyNode.length},severity:zn.Warning,message:M.errorMessage||rr("DisallowedExtraPropWarning",hf,ze),source:hr(M,n),schemaUri:mr(M,n)})}else{const xt=new fi(a);zr(me,He,M,xt,Ae,s),he.mergePropertyMatch(xt),he.mergeEnumValues(xt)}}}}if(typeof M.additionalProperties=="object")for(const Ve of ae){const Xe=ke[Ve];if(Xe){const ze=new fi(a);zr(Xe,M.additionalProperties,M,ze,Ae,s),he.mergePropertyMatch(ze),he.mergeEnumValues(ze)}}else if((M.additionalProperties===!1||M.type==="object"&&M.additionalProperties===void 0&&s.disableAdditionalProperties===!0)&&ae.length>0){const Ve=M.properties&&Object.keys(M.properties).filter(Xe=>!ke[Xe]);for(const Xe of ae){const ze=ke[Xe];if(ze){let me=null;ze.type!=="property"?(me=ze.parent,me.type==="object"&&(me=me.properties[0])):me=ze;const He={location:{offset:me.keyNode.offset,length:me.keyNode.length},severity:zn.Warning,message:M.errorMessage||rr("DisallowedExtraPropWarning",hf,Xe),source:hr(M,n),schemaUri:mr(M,n)};Ve!=null&&Ve.length&&(He.data={properties:Ve}),he.problems.push(He)}}}if(_i(M.maxProperties)&&te.properties.length>M.maxProperties&&he.problems.push({location:{offset:te.offset,length:te.length},severity:zn.Warning,message:rr("MaxPropWarning","Object has more properties than limit of {0}.",M.maxProperties),source:hr(M,n),schemaUri:mr(M,n)}),_i(M.minProperties)&&te.properties.length<M.minProperties&&he.problems.push({location:{offset:te.offset,length:te.length},severity:zn.Warning,message:rr("MinPropWarning","Object has fewer properties than the required number of {0}",M.minProperties),source:hr(M,n),schemaUri:mr(M,n)}),M.dependencies){for(const Ve of Object.keys(M.dependencies))if(ke[Ve]){const ze=M.dependencies[Ve];if(Array.isArray(ze))for(const me of ze)ke[me]?he.propertiesValueMatches++:he.problems.push({location:{offset:te.offset,length:te.length},severity:zn.Warning,message:rr("RequiredDependentPropWarning","Object is missing property {0} required by property {1}.",me,Ve),source:hr(M,n),schemaUri:mr(M,n)});else{const me=oi(ze);if(me){const He=new fi(a);zr(te,me,M,He,Ae,s),he.mergePropertyMatch(He),he.mergeEnumValues(He)}}}}const Dt=oi(M.propertyNames);if(Dt)for(const Ve of te.properties){const Xe=Ve.keyNode;Xe&&zr(Xe,Dt,M,he,Mo.instance,s)}}function _(te,M,he,Ae){const Fe=te.compareKubernetes(M.validationResult);return Fe>0?M={schema:he,validationResult:te,matchingSchemas:Ae}:Fe===0&&(M.matchingSchemas.merge(Ae),M.validationResult.mergeEnumValues(te)),M}function Z(te,M,he,Ae,Fe,ke){if(!M&&!he.hasProblems()&&(!Ae.validationResult.hasProblems()||o))Ae.matchingSchemas.merge(ke),Ae.validationResult.propertiesMatches+=he.propertiesMatches,Ae.validationResult.propertiesValueMatches+=he.propertiesValueMatches;else{const ae=he.compareGeneric(Ae.validationResult);ae>0||ae===0&&M&&Ae.schema.type==="object"&&te.type!=="null"&&te.type!==Ae.schema.type?Ae={schema:Fe,validationResult:he,matchingSchemas:ke}:ae===0&&(Ae.matchingSchemas.merge(ke),Ae.validationResult.mergeEnumValues(he),Ae.validationResult.mergeWarningGeneric(he,[ai.missingRequiredPropWarning,ai.typeMismatchWarning,ai.constWarning]))}return Ae}}function hr(e,t){var n;if(e){let r;if(e.title)r=e.title;else if(e.closestTitle)r=e.closestTitle;else if(t.closestTitle)r=t.closestTitle;else{const i=(n=e.url)!=null?n:t.url;if(i){const s=yi.parse(i);s.scheme==="file"&&(r=s.fsPath),r=s.toString()}}if(r)return`${g0}${r}`}return $u}function mr(e,t){var n;const r=(n=e.url)!=null?n:t.url;return r?[r]:[]}function qu(e,t){return rr(e,Pb[e],t.join(" | "))}var qb=1e3,mf=0,gf=new Set;function Ua(e,t,n,r){if(e||(mf=0),!t)return null;if(Pr(t))return Ub(t,e,n,r);if(dr(t))return Wb(t,e,n,r);if(Br(t))return Gb(t,e,n,r);if(qn(t))return Jb(t,e);if(Qi(t)&&!gf.has(t)&&mf<qb){gf.add(t);const i=Yb(t,e,n,r);return gf.delete(t),i}else return}function Ub(e,t,n,r){let i;e.flow&&!e.range?i=Hb(e):i=e.range;const s=new Rb(t,e,...v0(i,r));for(const a of e.items)dr(a)&&s.properties.push(Ua(s,a,n,r));return s}function Wb(e,t,n,r){const i=e.key,s=e.value,a=i.range[0];let o=i.range[1],u=i.range[2];s&&(o=s.range[1],u=s.range[2]);const l=new jb(t,e,...v0([a,o,u],r));if(Qi(i)){const v=new Vu(t,i,...Ls(i.range));v.value=i.source,l.keyNode=v}else l.keyNode=Ua(l,i,n,r);return l.valueNode=Ua(l,s,n,r),l}function Gb(e,t,n,r){const i=new Ib(t,e,...Ls(e.range));for(const s of e.items)if(yr(s)){const a=Ua(i,s,n,r);a&&i.children.push(a)}return i}function Jb(e,t){if(e.value===null)return new Bb(t,e,...Ls(e.range));switch(typeof e.value){case"string":{const n=new Vu(t,e,...Ls(e.range));return n.value=e.value,n}case"boolean":return new Mb(t,e,e.value,...Ls(e.range));case"number":{const n=new Ob(t,e,...Ls(e.range));return n.value=e.value,n.isInteger=Number.isInteger(n.value),n}default:{const n=new Vu(t,e,...Ls(e.range));return n.value=e.source,n}}}function Yb(e,t,n,r){mf++;const i=e.resolve(n);if(i)return Ua(t,i,n,r);{const s=new Vu(t,e,...Ls(e.range));return s.value=e.source,s}}function Ls(e){return[e[0],e[1]-e[0]]}function v0(e,t){const n=t.linePos(e[0]),r=t.linePos(e[1]),i=[e[0],e[1]-e[0]];return n.line!==r.line&&(t.lineStarts.length!==r.line||r.col===1)&&i[1]--,i}function Hb(e){let t=Number.MAX_SAFE_INTEGER,n=0;for(const r of e.items)dr(r)&&(yr(r.key)&&r.key.range&&r.key.range[0]<=t&&(t=r.key.range[0]),yr(r.value)&&r.value.range&&r.value.range[2]>=n&&(n=r.value.range[2]));return[t,n,n]}function zb(e,t){let n;if(wr(e,(r,i,s)=>{if(i===t)return n=s[s.length-1],wr.BREAK}),!Ao(n))return n}function Qb(e){if(e.items.length>1)return!1;const t=e.items[0];return qn(t.key)&&qn(t.value)&&t.key.value===""&&!t.value.value}function Xb(e,t){for(const[n,r]of e.items.entries())if(t===r)return n}function Kb(e,t){let n=!1;for(const r of e){if(r.type==="document")yf([],r,i=>{var s;if(E0(i)&&((s=i.value)==null?void 0:s.type)==="comment"){if(r.offset<=t&&i.value.source.length+i.value.offset>=t)return n=!0,wr.BREAK}else if(i.type==="comment"&&i.offset<=t&&i.offset+i.source.length>=t)return n=!0,wr.BREAK});else if(r.type==="comment"&&r.offset<=t&&r.source.length+r.offset>=t)return!0;if(n)break}return n}function E0(e){return e.start!==void 0}function yf(e,t,n){let r=n(t,e);if(typeof r=="symbol")return r;for(const s of["key","value"]){const a=t[s];if(a&&"items"in a){for(let o=0;o<a.items.length;++o){const u=yf(Object.freeze(e.concat([[s,o]])),a.items[o],n);if(typeof u=="number")o=u-1;else{if(u===wr.BREAK)return wr.BREAK;u===wr.REMOVE&&(a.items.splice(o,1),o-=1)}}typeof r=="function"&&s==="key"&&(r=r(t,e))}}const i=t.sep;if(i)for(let s=0;s<i.length;++s){const a=yf(Object.freeze(e),i[s],n);if(typeof a=="number")s=a-1;else{if(a===wr.BREAK)return wr.BREAK;a===wr.REMOVE&&(i.items.splice(s,1),s-=1)}}return typeof r=="function"?r(t,e):r}var A0=class Dg extends Vb{constructor(t){super(null,[]),this.lineCounter=t}clone(){const t=new Dg(this.lineCounter);return t.isKubernetes=this.isKubernetes,t.disableAdditionalProperties=this.disableAdditionalProperties,t.uri=this.uri,t.currentDocIndex=this.currentDocIndex,t._lineComments=this.lineComments.slice(),t.internalDocument=this._internalDocument.clone(),t}collectLineComments(){this._lineComments=[],this._internalDocument.commentBefore&&this._internalDocument.commentBefore.split(`
409
- `).forEach(n=>this._lineComments.push(`#${n}`)),wr(this.internalDocument,(t,n)=>{n!=null&&n.commentBefore&&(n==null?void 0:n.commentBefore.split(`
410
- `)).forEach(i=>this._lineComments.push(`#${i}`)),n!=null&&n.comment&&this._lineComments.push(`#${n.comment}`)}),this._internalDocument.comment&&this._lineComments.push(`#${this._internalDocument.comment}`)}updateFromInternalDocument(){this.root=Ua(null,this._internalDocument.contents,this._internalDocument,this.lineCounter)}set internalDocument(t){this._internalDocument=t,this.updateFromInternalDocument()}get internalDocument(){return this._internalDocument}get lineComments(){return this._lineComments||this.collectLineComments(),this._lineComments}set lineComments(t){this._lineComments=t}get errors(){return this.internalDocument.errors.map(x0)}get warnings(){return this.internalDocument.warnings.map(x0)}getNodeFromPosition(t,n,r){const i=n.getPosition(t),s=n.getLineContent(i.line);if(s.trim().length===0)return[this.findClosestNode(t,n,r),!0];const o=s.substring(i.character).match(/^([ ]+)\n?$/),u=!!o,l=o==null?void 0:o[1].length;let v;return wr(this.internalDocument,(c,N)=>{if(!N)return;const _=N.range;if(!_)return;const Z=()=>u&&t+l===_[2]&&qn(N)&&N.value===null;if(_[0]<=t&&_[1]>=t||Z())v=N;else return wr.SKIP}),[v,!1]}findClosestNode(t,n,r){let i=this.internalDocument.range[2],s=this.internalDocument.range[0],a;wr(this.internalDocument,(v,c)=>{if(!c)return;const N=c.range;if(!N)return;const _=N[1]-t;s<=N[0]&&_<=0&&Math.abs(_)<=i&&(i=Math.abs(_),s=N[0],a=c)});const o=n.getPosition(t),u=n.getLineContent(o.line),l=hb(u,o.character);return qn(a)&&a.value===null||l===o.character&&(a=this.getProperParentByIndentation(l,a,n,"",r)),a}getProperParentByIndentation(t,n,r,i,s,a){if(!n)return this.internalDocument.contents;if(s=s||2,yr(n)&&n.range){const o=r.getPosition(n.range[0]),u=r.getLineContent(o.line);if(i=i===""?u.trim():i,i.startsWith("-")&&t===s&&i===u.trim()&&(o.character+=t),o.character>t&&o.character>0){const l=this.getParent(n);if(l)return this.getProperParentByIndentation(t,l,r,i,s,a)}else if(o.character<t){const l=this.getParent(n);if(dr(l)&&yr(l.value))return l.value;if(dr(a)&&yr(a.value))return a.value}else return n}else if(dr(n)){a=n;const o=this.getParent(n);return this.getProperParentByIndentation(t,o,r,i,s,a)}return n}getParent(t){return zb(this.internalDocument,t)}},C0=class{constructor(e,t){this.documents=e,this.tokens=t,this.errors=[],this.warnings=[]}},Zb=class{constructor(){this.cache=new Map}getYamlDocument(e,t,n=!1){return this.ensureCache(e,t??Uu,n),this.cache.get(e.uri).document}clear(){this.cache.clear()}ensureCache(e,t,n){const r=e.uri;this.cache.has(r)||this.cache.set(r,{version:-1,document:new C0([],[]),parserOptions:Uu});const i=this.cache.get(r);if(i.version!==e.version||t.customTags&&!m0(i.parserOptions.customTags,t.customTags)){let s=e.getText();n&&!/\S/.test(s)&&(s=`{${s}}`);const a=rv(s,t,e);i.document=a,i.version=e.version,i.parserOptions=t}}},Vi=new Zb;function x0(e){return{message:e.message,location:{start:e.pos[0],end:e.pos[1],toLineEnd:!0},severity:1,code:Ri.Undefined}}var ev=class{constructor(e,t){this.tag=e,this.type=t}get collection(){if(this.type==="mapping")return"map";if(this.type==="sequence")return"seq"}resolve(e){if(Pr(e)&&this.type==="mapping"||Br(e)&&this.type==="sequence"||typeof e=="string"&&this.type==="scalar")return e}},tv=class{constructor(){this.tag="!include",this.type="scalar"}resolve(e,t){if(e&&e.length>0&&e.trim())return e;t("!include without value")}};function nv(e){const t=[],n=h0(e);for(const r of n){const i=r.split(" "),s=i[0],a=i[1]&&i[1].toLowerCase()||"scalar";t.push(new ev(s,a))}return t.push(new tv),t}var Zs=class{constructor(e){this.doc=e}getLineCount(){return this.doc.lineCount}getLineLength(e){const t=this.doc.getLineOffsets();return e>=t.length?this.doc.getText().length:e<0?0:(e+1<t.length?t[e+1]:this.doc.getText().length)-t[e]}getLineContent(e){const t=this.doc.getLineOffsets();if(e>=t.length)return this.doc.getText();if(e<0)return"";const n=e+1<t.length?t[e+1]:this.doc.getText().length;return this.doc.getText().substring(t[e],n)}getLineCharCode(e,t){return this.doc.getText(In.create(e-1,t,e-1,t+1)).charCodeAt(0)}getText(e){return this.doc.getText(e)}getPosition(e){return this.doc.positionAt(e)}},Uu={customTags:[],yamlVersion:"1.2"};function rv(e,t=Uu,n){var r;const i={strict:!1,customTags:nv(t.customTags),version:(r=t.yamlVersion)!=null?r:Uu.yamlVersion,keepSourceTokens:!0},s=new $m(i),a=new Hm;let o=!1;if(n){const _=new Zs(n),Z=_.getPosition(e.length);o=_.getLineContent(Z.line).trim().length===0}const l=(o?new uf:new uf(a.addNewLine)).parse(e),v=Array.from(l),c=s.compose(v,!0,e.length),N=Array.from(c,_=>iv(_,a));return new C0(N,v)}function iv(e,t){const n=new A0(t);return n.internalDocument=e,n}function sv(e){if(e instanceof A0){const t=e.lineComments.find(n=>Df(n));if(t!=null){const n=t.match(/\$schema=\S+/g);if(n!==null&&n.length>=1)return n.length>=2&&console.log("Several $schema attributes have been found on the yaml-language-server modeline. The first one will be picked."),n[0].substring(8)}}}function Df(e){const t=e.match(/^#\s+yaml-language-server\s*:/g);return t!==null&&t.length===1}var av=class{compile(){return()=>!0}},Wu=Hs(),ov=new av,uv=void 0,S0=ov.compile(uv),w0;(function(e){e[e.delete=0]="delete",e[e.add=1]="add",e[e.deleteAll=2]="deleteAll"})(w0||(w0={}));var lv=class{constructor(e){try{this.patternRegExp=new RegExp(db(e)+"$")}catch{this.patternRegExp=null}this.schemas=[]}addSchema(e){this.schemas.push(e)}matchesPattern(e){return this.patternRegExp&&this.patternRegExp.test(e)}getSchemas(){return this.schemas}},cv=class extends cb{constructor(e,t,n){super(e,t,n),this.schemaUriToNameAndDescription=new Map,this.customSchemaProvider=void 0,this.requestService=e,this.schemaPriorityMapping=new Map}registerCustomSchemaProvider(e){this.customSchemaProvider=e}getAllSchemas(){const e=[],t=new Set;for(const n of this.filePatternAssociations){const r=n.uris[0];if(t.has(r))continue;t.add(r);const i={uri:r,fromStore:!1,usedForCurrentFile:!1};if(this.schemaUriToNameAndDescription.has(r)){const{name:s,description:a,versions:o}=this.schemaUriToNameAndDescription.get(r);i.name=s,i.description=a,i.fromStore=!0,i.versions=o}e.push(i)}return e}async resolveSchemaContent(e,t,n){const r=e.errors.slice(0);let i=e.schema;const s=this.contextService;if(!S0(i)){const v=[];for(const c of S0.errors)v.push(`${c.instancePath} : ${c.message}`);r.push(`Schema '${u0(e.schema,t)}' is not valid:
411
- ${v.join(`
412
- `)}`)}const a=(v,c)=>{if(!c)return v;let N=v;return c[0]==="/"&&(c=c.substr(1)),c.split("/").some(_=>(N=N[_],!N)),N},o=(v,c,N,_)=>{const Z=a(c,_);if(Z)for(const te in Z)Object.prototype.hasOwnProperty.call(Z,te)&&!Object.prototype.hasOwnProperty.call(v,te)&&(v[te]=Z[te]);else r.push(Wu("json.schema.invalidref","$ref '{0}' in '{1}' can not be resolved.",_,N))},u=(v,c,N,_,Z)=>{s&&!/^\w+:\/\/.*/.test(c)&&(c=s.resolveRelativePath(c,_)),c=this.normalizeId(c);const te=this.getOrAddSchemaHandle(c);return te.getUnresolvedSchema().then(M=>{if(Z[c]=!0,M.errors.length){const he=N?c+"#"+N:c;r.push(Wu("json.schema.problemloadingref","Problems loading reference '{0}': {1}",he,M.errors[0]))}return o(v,M.schema,c,N),v.url=c,l(v,M.schema,c,te.dependencies)})},l=async(v,c,N,_)=>{if(!v||typeof v!="object")return null;const Z=[v],te=[],M=[],he=(...ae)=>{for(const Ee of ae)typeof Ee=="object"&&Z.push(Ee)},Ae=(...ae)=>{for(const Ee of ae)if(typeof Ee=="object")for(const Qe in Ee){const Dt=Ee[Qe];typeof Dt=="object"&&Z.push(Dt)}},Fe=(...ae)=>{for(const Ee of ae)if(Array.isArray(Ee))for(const Qe of Ee)typeof Qe=="object"&&Z.push(Qe)},ke=ae=>{const Ee=[];for(;ae.$ref;){const Qe=ae.$ref,Dt=Qe.split("#",2);if(ae._$ref=ae.$ref,delete ae.$ref,Dt[0].length>0){M.push(u(ae,Dt[0],Dt[1],N,_));return}else Ee.indexOf(Qe)===-1&&(o(ae,c,N,Dt[1]),Ee.push(Qe))}he(ae.items,ae.additionalItems,ae.additionalProperties,ae.not,ae.contains,ae.propertyNames,ae.if,ae.then,ae.else),Ae(ae.definitions,ae.properties,ae.patternProperties,ae.dependencies),Fe(ae.anyOf,ae.allOf,ae.oneOf,ae.items,ae.schemaSequence)};if(N.indexOf("#")>0){const ae=N.split("#",2);if(ae[0].length>0&&ae[1].length>0){const Ee={};await u(Ee,ae[0],ae[1],N,_);for(const Qe in i)Qe!=="required"&&Object.prototype.hasOwnProperty.call(i,Qe)&&!Object.prototype.hasOwnProperty.call(Ee,Qe)&&(Ee[Qe]=i[Qe]);i=Ee}}for(;Z.length;){const ae=Z.pop();te.indexOf(ae)>=0||(te.push(ae),ke(ae))}return Promise.all(M)};return await l(i,i,t,n),new Po(i,r)}getSchemaForResource(e,t){const n=()=>{let a=sv(t);if(a!==void 0){if(!a.startsWith("file:")&&!a.startsWith("http")){let o="";if(a.indexOf("#")>0){const u=a.split("#",2);a=u[0],o=u[1]}if(Ys.isAbsolute(a))a=yi.file(a).toString();else{const u=yi.parse(e);a=yi.file(Ys.resolve(Ys.parse(u.fsPath).dir,a)).toString()}o.length>0&&(a+="#"+o)}return a}},r=a=>{const o=super.createCombinedSchema(e,a);return o.getResolvedSchema().then(u=>(u.schema&&typeof u.schema=="object"&&(u.schema.url=o.url),u.schema&&u.schema.schemaSequence&&u.schema.schemaSequence[t.currentDocIndex]?new Po(u.schema.schemaSequence[t.currentDocIndex]):u))},i=()=>{const a=Object.create(null),o=[];for(const u of this.filePatternAssociations)if(u.matchesPattern(e))for(const l of u.getURIs())a[l]||(o.push(l),a[l]=!0);if(o.length>0){const u=this.highestPrioritySchemas(o);return r(u)}return Promise.resolve(null)},s=n();return s?r([s]):this.customSchemaProvider?this.customSchemaProvider(e).then(a=>Array.isArray(a)?a.length===0?i():Promise.all(a.map(o=>this.resolveCustomSchema(o,t))).then(o=>({errors:[],schema:{allOf:o.map(u=>u.schema)}}),()=>i()):a?this.resolveCustomSchema(a,t):i()).then(a=>a,()=>i()):i()}addSchemaPriority(e,t){let n=this.schemaPriorityMapping.get(e);n?(n=n.add(t),this.schemaPriorityMapping.set(e,n)):this.schemaPriorityMapping.set(e,new Set().add(t))}highestPrioritySchemas(e){let t=0;const n=new Map;return e.forEach(r=>{(this.schemaPriorityMapping.get(r)||[0]).forEach(s=>{s>t&&(t=s);let a=n.get(s);a?(a=a.concat(r),n.set(s,a)):n.set(s,[r])})}),n.get(t)||[]}async resolveCustomSchema(e,t){const n=await this.loadSchema(e),r=await this.resolveSchemaContent(n,e,[]);return r.schema&&typeof r.schema=="object"&&(r.schema.url=e),r.schema&&r.schema.schemaSequence&&r.schema.schemaSequence[t.currentDocIndex]?new Po(r.schema.schemaSequence[t.currentDocIndex],r.errors):r}async saveSchema(e,t){const n=this.normalizeId(e);return this.getOrAddSchemaHandle(n,t),this.schemaPriorityMapping.set(n,new Set().add(vf.Settings)),Promise.resolve(void 0)}async deleteSchemas(e){return e.schemas.forEach(t=>{this.deleteSchema(t)}),Promise.resolve(void 0)}async deleteSchema(e){const t=this.normalizeId(e);return this.schemasById[t]&&delete this.schemasById[t],this.schemaPriorityMapping.delete(t),Promise.resolve(void 0)}async addContent(e){const t=await this.getResolvedSchema(e.schema);if(t){const n=this.resolveJSONSchemaToSection(t.schema,e.path);typeof n=="object"&&(n[e.key]=e.content),await this.saveSchema(e.schema,t.schema)}}async deleteContent(e){const t=await this.getResolvedSchema(e.schema);if(t){const n=this.resolveJSONSchemaToSection(t.schema,e.path);typeof n=="object"&&delete n[e.key],await this.saveSchema(e.schema,t.schema)}}resolveJSONSchemaToSection(e,t){const n=t.split("/");let r=e;for(const i of n)i!==""&&(this.resolveNext(r,i),r=r[i]);return r}resolveNext(e,t){if(Array.isArray(e)&&isNaN(t))throw new Error("Expected a number after the array object");if(typeof e=="object"&&typeof t!="string")throw new Error("Expected a string after the object")}normalizeId(e){try{return yi.parse(e).toString()}catch{return e}}getOrAddSchemaHandle(e,t){return super.getOrAddSchemaHandle(e,t)}loadSchema(e){const t=this.requestService;return super.loadSchema(e).then(n=>{if(n.errors&&n.schema===void 0)return t(e).then(r=>{if(!r){const i=Wu("json.schema.nocontent","Unable to load schema from '{0}': No content. {1}",F0(e),n.errors);return new $i({},[i])}try{const i=zD(r);return new $i(i,[])}catch(i){const s=Wu("json.schema.invalidFormat","Unable to parse content from '{0}': {1}.",F0(e),i);return new $i({},[s])}},r=>{let i=r.toString();const s=r.toString().split("Error: ");return s.length>1&&(i=s[1]),new $i({},[i])});if(n.uri=e,this.schemaUriToNameAndDescription.has(e)){const{name:r,description:i,versions:s}=this.schemaUriToNameAndDescription.get(e);n.schema.title=r??n.schema.title,n.schema.description=i??n.schema.description,n.schema.versions=s??n.schema.versions}return n})}registerExternalSchema(e,t,n,r,i,s){return(r||i)&&this.schemaUriToNameAndDescription.set(e,{name:r,description:i,versions:s}),super.registerExternalSchema(e,t,n)}clearExternalSchemas(){super.clearExternalSchemas()}setSchemaContributions(e){super.setSchemaContributions(e)}getRegisteredSchemaIds(e){return super.getRegisteredSchemaIds(e)}getResolvedSchema(e){return super.getResolvedSchema(e)}onResourceChange(e){return super.onResourceChange(e)}};function F0(e){try{const t=yi.parse(e);if(t.scheme==="file")return t.fsPath}catch{}return e}var fv=class{constructor(e,t){this.telemetry=t,this.jsonDocumentSymbols=new Sb(e),this.jsonDocumentSymbols.getKeyLabel=n=>{const r=n.keyNode.internalNode;let i="";return Pr(r)?i="{}":Br(r)?i="[]":i=r.source,i}}findDocumentSymbols(e,t={resultLimit:Number.MAX_VALUE}){var n;let r=[];try{const i=Vi.getYamlDocument(e);if(!i||i.documents.length===0)return null;for(const s of i.documents)s.root&&(r=r.concat(this.jsonDocumentSymbols.findDocumentSymbols(e,s,t)))}catch(i){(n=this.telemetry)==null||n.sendError("yaml.documentSymbols.error",{error:os(i)})}return r}findHierarchicalDocumentSymbols(e,t={resultLimit:Number.MAX_VALUE}){var n;let r=[];try{const i=Vi.getYamlDocument(e);if(!i||i.documents.length===0)return null;for(const s of i.documents)s.root&&(r=r.concat(this.jsonDocumentSymbols.findDocumentSymbols2(e,s,t)))}catch(i){(n=this.telemetry)==null||n.sendError("yaml.hierarchicalDocumentSymbols.error",{error:os(i)})}return r}};function N0(e,t){for(const n of e)n.isKubernetes=t}var pv=class{constructor(e,t){this.telemetry=t,this.shouldHover=!0,this.schemaService=e}configure(e){e&&(this.shouldHover=e.hover,this.indentation=e.indentation)}doHover(e,t,n=!1){var r;try{if(!this.shouldHover||!e)return Promise.resolve(void 0);const i=Vi.getYamlDocument(e),s=e.offsetAt(t),a=Ru(s,i);if(a===null)return Promise.resolve(void 0);N0(i.documents,n);const o=i.documents.indexOf(a);return a.currentDocIndex=o,this.getHover(e,t,a)}catch(i){(r=this.telemetry)==null||r.sendError("yaml.hover.error",{error:os(i)})}}getHover(e,t,n){const r=e.offsetAt(t);let i=n.getNodeFromOffset(r);if(!i||(i.type==="object"||i.type==="array")&&r>i.offset+1&&r<i.offset+i.length-1)return Promise.resolve(null);const s=i;if(i.type==="string"){const l=i.parent;if(l&&l.type==="property"&&l.keyNode===i&&(i=l.valueNode,!i))return Promise.resolve(null)}const a=In.create(e.positionAt(s.offset),e.positionAt(s.offset+s.length)),o=l=>{if(this.indentation!==void 0){const N=new RegExp(` {${this.indentation.length}}`,"g");l=l.replace(N,"&emsp;")}return{contents:{kind:rs.Markdown,value:l},range:a}},u=l=>l.replace(/\|\|\s*$/,"");return this.schemaService.getSchemaForResource(e.uri,n).then(l=>{if(l&&i&&!l.errors.length){const v=n.getMatchingSchemas(l.schema,i.offset);let c,N,_,Z;const te=[];v.every(he=>{if((he.node===i||i.type==="property"&&i.valueNode===he.node)&&!he.inverted&&he.schema){if(c=c||he.schema.title||he.schema.closestTitle,N=N||he.schema.markdownDescription||Gu(he.schema.description),he.schema.enum){const Ae=he.schema.enum.indexOf(qa(i));he.schema.markdownEnumDescriptions?_=he.schema.markdownEnumDescriptions[Ae]:he.schema.enumDescriptions&&(_=Gu(he.schema.enumDescriptions[Ae])),_&&(Z=he.schema.enum[Ae],typeof Z!="string"&&(Z=JSON.stringify(Z)))}he.schema.anyOf&&mv(i,v,he.schema)&&(c="",N="",he.schema.anyOf.forEach((Ae,Fe)=>{c+=Ae.title||he.schema.closestTitle||"",N+=Ae.markdownDescription||Gu(Ae.description)||"",Fe!==he.schema.anyOf.length-1&&(c+=" || ",N+=" || ")}),c=u(c),N=u(N)),he.schema.examples&&he.schema.examples.forEach(Ae=>{te.push(JSON.stringify(Ae,null,2))})}return!0});let M="";return c&&(M="#### "+Gu(c)),N&&(M.length>0&&(M+=`
413
-
414
- `),M+=N),_&&(M.length>0&&(M+=`
415
-
416
- `),M+=`\`${hv(Z)}\`: ${_}`),te.length!==0&&(M.length>0&&(M+=`
417
-
418
- `),M+="Examples:",te.forEach(he=>{M+=`
419
-
420
- \`\`\`${he}\`\`\``})),M.length>0&&l.schema.url&&(M+=`
421
-
422
- Source: [${dv(l.schema)}](${l.schema.url})`),o(M)}return null})}};function dv(e){let t="JSON Schema";const n=e.url;if(n){const r=yi.parse(n);t=Ys.basename(r.fsPath)}else e.title&&(t=e.title);return t}function Gu(e){if(e)return e.replace(/([^\n\r])(\r?\n)([^\n\r])/gm,`$1
423
-
424
- $3`).replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}function hv(e){return e.indexOf("`")!==-1?"`` "+e+" ``":e}function mv(e,t,n){let r=0;for(const i of t)e===i.node&&i.schema!==n&&n.anyOf.forEach(s=>{i.schema.title===s.title&&i.schema.description===s.description&&i.schema.properties===s.properties&&r++});return r===n.anyOf.length}var gv=class{validate(e,t){const n=[],r=new Set,i=new Set,s=new Map;wr(t.internalDocument,(a,o,u)=>{yr(o)&&((Lr(o)||qn(o))&&o.anchor&&(r.add(o),s.set(o,u[u.length-1])),Qi(o)&&i.add(o.resolve(t.internalDocument)))});for(const a of r)if(!i.has(a)){const o=this.getAnchorNode(s.get(a),a);if(o){const u=In.create(e.positionAt(o.offset),e.positionAt(o.offset+o.source.length)),l=Di.create(u,`Unused anchor "${o.source}"`,zn.Hint,0);l.tags=[yc.Unnecessary],n.push(l)}}return n}getAnchorNode(e,t){if(e&&e.srcToken){const n=e.srcToken;if(E0(n))return T0(n);if(qD(n))for(const r of n.items){if(t.srcToken!==r.value)continue;const i=T0(r);if(i)return i}}}};function T0(e){for(const t of e.start)if(t.type==="anchor")return t;if(e.sep&&Array.isArray(e.sep)){for(const t of e.sep)if(t.type==="anchor")return t}}var yv=class{constructor(e){this.forbidMapping=e.flowMapping==="forbid",this.forbidSequence=e.flowSequence==="forbid"}validate(e,t){const n=[];return wr(t.internalDocument,(r,i)=>{var s,a;this.forbidMapping&&Pr(i)&&((s=i.srcToken)==null?void 0:s.type)==="flow-collection"&&n.push(Di.create(this.getRangeOf(e,i.srcToken),"Flow style mapping is forbidden",zn.Error,"flowMap")),this.forbidSequence&&Br(i)&&((a=i.srcToken)==null?void 0:a.type)==="flow-collection"&&n.push(Di.create(this.getRangeOf(e,i.srcToken),"Flow style sequence is forbidden",zn.Error,"flowSeq"))}),n}getRangeOf(e,t){return In.create(e.positionAt(t.start.offset),e.positionAt(t.end.pop().offset))}},Dv=class{validate(e,t){const n=[];return wr(t.internalDocument,(r,i)=>{if(Pr(i)){for(let s=1;s<i.items.length;s++)if(vv(i.items[s-1],i.items[s])>0){const a=bv(e,i.items[s-1]);n.push(Di.create(a,`Wrong ordering of key "${i.items[s-1].key}" in mapping`,zn.Error,"mapKeyOrder"))}}}),n}};function bv(e,t){var n,r,i,s,a,o,u,l,v,c,N;const _=(o=(i=(n=t==null?void 0:t.srcToken.start[0])==null?void 0:n.offset)!=null?i:(r=t==null?void 0:t.srcToken)==null?void 0:r.key.offset)!=null?o:(a=(s=t==null?void 0:t.srcToken)==null?void 0:s.sep[0])==null?void 0:a.offset,Z=((u=t==null?void 0:t.srcToken)==null?void 0:u.value.offset)||((v=(l=t==null?void 0:t.srcToken)==null?void 0:l.sep[0])==null?void 0:v.offset)||((c=t==null?void 0:t.srcToken)==null?void 0:c.key.offset)||((N=t==null?void 0:t.srcToken.start[t.srcToken.start.length-1])==null?void 0:N.offset);return In.create(e.positionAt(_),e.positionAt(Z))}function vv(e,t){const n=String(t.key);return String(e.key).localeCompare(n)}var Ev=(e,t)=>{const n=t.positionAt(e.location.start),r={start:n,end:e.location.toLineEnd?Hr.create(n.line,new Zs(t).getLineLength(n.line)):t.positionAt(e.location.end)};return Di.create(r,e.message,e.severity,e.code,$u)},Av=class{constructor(e,t){this.telemetry=t,this.validators=[],this.MATCHES_MULTIPLE="Matches multiple schemas when only one must validate.",this.validationEnabled=!0,this.jsonValidation=new bb(e,Promise)}configure(e){this.validators=[],e&&(this.validationEnabled=e.validate,this.customTags=e.customTags,this.disableAdditionalProperties=e.disableAdditionalProperties,this.yamlVersion=e.yamlVersion,(e.flowMapping==="forbid"||e.flowSequence==="forbid")&&this.validators.push(new yv(e)),e.keyOrdering&&this.validators.push(new Dv)),this.validators.push(new gv)}async doValidation(e,t=!1){var n;if(!this.validationEnabled)return Promise.resolve([]);const r=[];try{const o=Vi.getYamlDocument(e,{customTags:this.customTags,yamlVersion:this.yamlVersion},!0);let u=0;for(const l of o.documents){l.isKubernetes=t,l.currentDocIndex=u,l.disableAdditionalProperties=this.disableAdditionalProperties,l.uri=e.uri;const v=await this.jsonValidation.doValidation(e,l),c=l;c.errors.length>0&&r.push(...c.errors),c.warnings.length>0&&r.push(...c.warnings),r.push(...v),r.push(...this.runAdditionalValidators(e,l)),u++}}catch(o){(n=this.telemetry)==null||n.sendError("yaml.validation.error",{error:os(o)})}let i;const s=new Set,a=[];for(let o of r){if(t&&o.message===this.MATCHES_MULTIPLE)continue;if(Object.prototype.hasOwnProperty.call(o,"location")&&(o=Ev(o,e)),o.source||(o.source=$u),i&&i.message===o.message&&i.range.end.line===o.range.start.line&&Math.abs(i.range.end.character-o.range.end.character)>=1){i.range.end=o.range.end;continue}else i=o;const u=o.range.start.line+" "+o.range.start.character+" "+o.message;s.has(u)||(a.push(o),s.add(u))}return a}runAdditionalValidators(e,t){const n=[];for(const r of this.validators)n.push(...r.validate(e,t));return n}},Cv=class{constructor(){this.formatterEnabled=!0}configure(e){e&&(this.formatterEnabled=e.format)}format(e,t){if(!this.formatterEnabled)return[];try{const n=e.getText(),r={parser:"yaml",plugins:[eb],tabWidth:t.tabWidth||t.tabSize,singleQuote:t.singleQuote,bracketSpacing:t.bracketSpacing,proseWrap:t.proseWrap==="always"?"always":t.proseWrap==="never"?"never":"preserve",printWidth:t.printWidth},i=KD.format(n,r);return[Nr.replace(In.create(Hr.create(0,0),e.positionAt(n.length)),i)]}catch{return[]}}},xv=class{constructor(e){this.telemetry=e}findLinks(e){var t;try{const n=Vi.getYamlDocument(e),r=[];for(const i of n.documents)r.push(Fb(e,i));return Promise.all(r).then(i=>[].concat(...i))}catch(n){(t=this.telemetry)==null||t.sendError("yaml.documentLink.error",{error:os(n)})}}};function Sv(e,t){if(!e)return;const n=[],r=Vi.getYamlDocument(e);for(const s of r.documents)r.documents.length>1&&n.push(Ju(e,s.root)),s.visit(a=>{var o;if(a.type==="object"&&((o=a.parent)==null?void 0:o.type)==="array"&&n.push(Ju(e,a)),a.type==="property"&&a.valueNode)switch(a.valueNode.type){case"array":case"object":n.push(Ju(e,a));break;case"string":{const u=e.positionAt(a.offset),l=e.positionAt(a.valueNode.offset+a.valueNode.length);u.line!==l.line&&n.push(Ju(e,a));break}default:return!0}return!0});const i=t&&t.rangeLimit;return typeof i!="number"||n.length<=i?n:(t&&t.onRangeLimitExceeded&&t.onRangeLimitExceeded(e.uri),n.slice(0,t.rangeLimit))}function Ju(e,t){const n=e.positionAt(t.offset);let r=e.positionAt(t.offset+t.length);const i=e.getText(In.create(n,r)),s=i.length-i.trimRight().length;return s>0&&(r=e.positionAt(t.offset+t.length-s)),mc.create(n.line,r.line,n.character,r.character)}var Yu;(function(e){e.JUMP_TO_SCHEMA="jumpToSchema"})(Yu||(Yu={}));var wv=class{constructor(e){this.indentation=e}write(e){if(e.internalNode.srcToken.type!=="flow-collection")return null;const t=e.internalNode.srcToken,n=t.start.type==="flow-map-start"?"block-map":"block-seq",r=e.parent.type,i={type:n,offset:t.offset,indent:t.indent,items:[]};for(const s of t.items)Js(s,({key:a,sep:o,value:u})=>{if(n==="block-map"){const l=[{type:"space",indent:0,offset:a.offset,source:this.indentation}];r==="property"&&l.unshift({type:"newline",indent:0,offset:a.offset,source:`
425
- `}),i.items.push({start:l,key:a,sep:o,value:u})}else n==="block-seq"&&i.items.push({start:[{type:"newline",indent:0,offset:u.offset,source:`
426
- `},{type:"space",indent:0,offset:u.offset,source:this.indentation},{type:"seq-item-ind",indent:0,offset:u.offset,source:"-"},{type:"space",indent:0,offset:u.offset,source:" "}],value:u});if(u.type==="flow-collection")return wr.SKIP});return Vm(i)}},Fv=structuredClone,Nv=class{constructor(e){this.clientCapabilities=e,this.indentation=" "}configure(e){this.indentation=e.indentation}getCodeAction(e,t){if(!t.context.diagnostics)return;const n=[];return n.push(...this.getConvertToBooleanActions(t.context.diagnostics,e)),n.push(...this.getJumpToSchemaActions(t.context.diagnostics)),n.push(...this.getTabToSpaceConverting(t.context.diagnostics,e)),n.push(...this.getUnusedAnchorsDelete(t.context.diagnostics,e)),n.push(...this.getConvertToBlockStyleActions(t.context.diagnostics,e)),n.push(...this.getKeyOrderActions(t.context.diagnostics,e)),n}getJumpToSchemaActions(e){var t,n,r,i,s;if(!((i=(r=(n=(t=this.clientCapabilities)==null?void 0:t.window)==null?void 0:n.showDocument)==null?void 0:r.support)!=null?i:!1))return[];const o=new Map;for(const l of e){const v=((s=l.data)==null?void 0:s.schemaUri)||[];for(const c of v)c&&(o.has(c)||o.set(c,[]),o.get(c).push(l))}const u=[];for(const l of o.keys()){const v=is.create(`Jump to schema location (${Ys.basename(l)})`,qs.create("JumpToSchema",Yu.JUMP_TO_SCHEMA,l));v.diagnostics=o.get(l),u.push(v)}return u}getTabToSpaceConverting(e,t){const n=[],r=new Zs(t),i=[];for(const s of e)if(s.message==="Using tabs can lead to unpredictable results"){if(i.includes(s.range.start.line))continue;const a=r.getLineContent(s.range.start.line);let o=0,u="";for(let v=s.range.start.character;v<=s.range.end.character&&a.charAt(v)===" ";v++)o++,u+=this.indentation;i.push(s.range.start.line);let l=s.range;o!==s.range.end.character-s.range.start.character&&(l=In.create(s.range.start,Hr.create(s.range.end.line,s.range.start.character+o))),n.push(is.create("Convert Tab to Spaces",Wa(t.uri,[Nr.replace(l,u)]),Ss.QuickFix))}if(n.length!==0){const s=[];for(let a=0;a<=r.getLineCount();a++){const o=r.getLineContent(a);let u=0,l="";for(let v=0;v<o.length;v++){const c=o.charAt(v);if(c!==" "&&c!==" "){u!==0&&(s.push(Nr.replace(In.create(a,v-u,a,v),l)),u=0,l="");break}if(c===" "&&u!==0){s.push(Nr.replace(In.create(a,v-u,a,v),l)),u=0,l="";continue}c===" "&&(l+=this.indentation,u++)}u!==0&&s.push(Nr.replace(In.create(a,0,a,r.getLineLength(a)),l))}s.length>0&&n.push(is.create("Convert all Tabs to Spaces",Wa(t.uri,s),Ss.QuickFix))}return n}getUnusedAnchorsDelete(e,t){const n=[],r=new Zs(t);for(const i of e)if(i.message.startsWith("Unused anchor")&&i.source===$u){const s=In.create(i.range.start,i.range.end),a=r.getText(s),o=r.getLineContent(s.end.line),u=mb(o,s.end.character);s.end.character=u;const l=is.create(`Delete unused anchor: ${a}`,Wa(t.uri,[Nr.del(s)]),Ss.QuickFix);l.diagnostics=[i],n.push(l)}return n}getConvertToBooleanActions(e,t){const n=[];for(const r of e)if(r.message==='Incorrect type. Expected "boolean".'){const i=t.getText(r.range).toLocaleLowerCase();if(i==='"true"'||i==='"false"'||i==="'true'"||i==="'false'"){const s=i.includes("true")?"true":"false";n.push(is.create("Convert to boolean",Wa(t.uri,[Nr.replace(r.range,s)]),Ss.QuickFix))}}return n}getConvertToBlockStyleActions(e,t){const n=[];for(const r of e)if(r.code==="flowMap"||r.code==="flowSeq"){const i=_0(t,r);if(Pr(i.internalNode)||Br(i.internalNode)){const s=Pr(i.internalNode)?"map":"sequence",a=new wv(this.indentation);n.push(is.create(`Convert to block style ${s}`,Wa(t.uri,[Nr.replace(r.range,a.write(i))]),Ss.QuickFix))}}return n}getKeyOrderActions(e,t){var n,r,i,s,a,o,u,l,v,c,N,_,Z,te;const M=[];for(const he of e)if((he==null?void 0:he.code)==="mapKeyOrder"){let Ae=_0(t,he);for(;Ae&&Ae.type!=="object";)Ae=Ae.parent;if(Ae&&Pr(Ae.internalNode)){const Fe=Fv(Ae.internalNode);if((Fe.srcToken.type==="block-map"||Fe.srcToken.type==="flow-collection")&&(Ae.internalNode.srcToken.type==="block-map"||Ae.internalNode.srcToken.type==="flow-collection")){Fe.srcToken.items.sort((ae,Ee)=>{if(ae.key&&Ee.key&&sf(ae.key)&&sf(Ee.key))return ae.key.source.localeCompare(Ee.key.source);if(!ae.key&&Ee.key)return-1;if(ae.key&&!Ee.key)return 1;if(!ae.key&&!Ee.key)return 0});for(let ae=0;ae<Fe.srcToken.items.length;ae++){const Ee=Fe.srcToken.items[ae],Qe=Ae.internalNode.srcToken.items[ae];if(Ee.start=Qe.start,((n=Ee.value)==null?void 0:n.type)==="alias"||((r=Ee.value)==null?void 0:r.type)==="scalar"||((i=Ee.value)==null?void 0:i.type)==="single-quoted-scalar"||((s=Ee.value)==null?void 0:s.type)==="double-quoted-scalar"){const Dt=(u=(o=(a=Ee.value)==null?void 0:a.end)==null?void 0:o.findIndex(Xe=>Xe.type==="newline"))!=null?u:-1;let Ve=null;((l=Qe.value)==null?void 0:l.type)==="block-scalar"?Ve=(c=(v=Qe.value)==null?void 0:v.props)==null?void 0:c.find(Xe=>Xe.type==="newline"):sf(Qe.value)&&(Ve=(_=(N=Qe.value)==null?void 0:N.end)==null?void 0:_.find(Xe=>Xe.type==="newline")),Ve&&Dt<0&&(Ee.value.end=(Z=Ee.value.end)!=null?Z:[],Ee.value.end.push(Ve)),!Ve&&Dt>-1&&Ee.value.end.splice(Dt,1)}else((te=Ee.value)==null?void 0:te.type)==="block-scalar"&&(Ee.value.props.find(Ve=>Ve.type==="newline")||Ee.value.props.push({type:"newline",indent:0,offset:Ee.value.offset,source:`
427
- `}))}}const ke=In.create(t.positionAt(Ae.offset),t.positionAt(Ae.offset+Ae.length));M.push(is.create("Fix key order for this map",Wa(t.uri,[Nr.replace(ke,Vm(Fe.srcToken))]),Ss.QuickFix))}}return M}};function _0(e,t){const n=Vi.getYamlDocument(e),r=e.offsetAt(t.range.start);return Ru(r,n).getNodeFromOffset(r)}function Wa(e,t){const n={};return n[e]=t,{changes:n}}function Tv(e,t){const{position:n}=t,r=new Zs(e);if(t.ch===`
428
- `){const i=r.getLineContent(n.line-1);if(i.trimRight().endsWith(":")){const s=r.getLineContent(n.line),a=s.substring(n.character,s.length),o=i.indexOf(" - ")!==-1;if(a.trimRight().length===0){const u=n.character-(i.length-i.trimLeft().length);if(u===t.options.tabSize&&!o)return;const l=[];return s.length>0&&l.push(Nr.del(In.create(n,Hr.create(n.line,s.length-1)))),l.push(Nr.insert(n," ".repeat(t.options.tabSize+(o?2-u:0)))),l}if(o)return[Nr.insert(n," ".repeat(t.options.tabSize))]}if(i.trimRight().endsWith("|"))return[Nr.insert(n," ".repeat(t.options.tabSize))];if(i.includes(" - ")&&!i.includes(": "))return[Nr.insert(n,"- ")];if(i.includes(" - ")&&i.includes(": "))return[Nr.insert(n," ")]}}function _v(e){const t=new Map;return e&&(e.url?e.url.startsWith("schemaservice://combinedSchema/")?L0(e,t):t.set(e.url,e):L0(e,t)),t}function L0(e,t){e.allOf&&bf(e.allOf,t),e.anyOf&&bf(e.anyOf,t),e.oneOf&&bf(e.oneOf,t)}function bf(e,t){for(const n of e)!Ra(n)&&n.url&&!t.has(n.url)&&t.set(n.url,n)}var Lv=class{constructor(e,t){this.schemaService=e,this.telemetry=t}async getCodeLens(e){var t;const n=[];try{const r=Vi.getYamlDocument(e);let i=new Map;for(const s of r.documents){const a=await this.schemaService.getSchemaForResource(e.uri,s);a!=null&&a.schema&&(i=new Map([..._v(a==null?void 0:a.schema),...i]))}for(const s of i){const a=Nc.create(In.create(0,0,0,0));a.command={title:u0(s[1],s[0]),command:Yu.JUMP_TO_SCHEMA,arguments:[s[0]]},n.push(a)}}catch(r){(t=this.telemetry)==null||t.sendError("yaml.codeLens.error",{error:os(r)})}return n}resolveCodeLens(e){return e}},kv=class{constructor(){this.spacesDiff=0,this.looksLikeAlignment=!1}};function Pv(e,t,n,r,i){i.spacesDiff=0,i.looksLikeAlignment=!1;let s;for(s=0;s<t&&s<r;s++){const N=e.charCodeAt(s),_=n.charCodeAt(s);if(N!==_)break}let a=0,o=0;for(let N=s;N<t;N++)e.charCodeAt(N)===32?a++:o++;let u=0,l=0;for(let N=s;N<r;N++)n.charCodeAt(N)===32?u++:l++;if(a>0&&o>0||u>0&&l>0)return;const v=Math.abs(o-l),c=Math.abs(a-u);if(v===0){i.spacesDiff=c,c>0&&0<=u-1&&u-1<e.length&&u<n.length&&n.charCodeAt(u)!==32&&e.charCodeAt(u-1)===32&&e.charCodeAt(e.length-1)===44&&(i.looksLikeAlignment=!0);return}c%v===0&&(i.spacesDiff=c/v)}function Bv(e,t,n){const r=Math.min(e.getLineCount(),1e4);let i=0,s=0,a="",o=0;const u=[2,4,6,8,3,5,7],l=8,v=[0,0,0,0,0,0,0,0,0],c=new kv;for(let Z=1;Z<=r;Z++){const te=e.getLineLength(Z),M=e.getLineContent(Z),he=te<=65536;let Ae=!1,Fe=0,ke=0,ae=0;for(let Qe=0,Dt=te;Qe<Dt;Qe++){const Ve=he?M.charCodeAt(Qe):e.getLineCharCode(Z,Qe);if(Ve===9)ae++;else if(Ve===32)ke++;else{Ae=!0,Fe=Qe;break}}if(!Ae||(ae>0?i++:ke>1&&s++,Pv(a,o,M,Fe,c),c.looksLikeAlignment&&!(n&&t===c.spacesDiff)))continue;const Ee=c.spacesDiff;Ee<=l&&v[Ee]++,a=M,o=Fe}let N=n;i!==s&&(N=i<s);let _=t;if(N){let Z=N?0:.1*r;u.forEach(te=>{const M=v[te];M>Z&&(Z=M,_=te)}),_===4&&v[4]>0&&v[2]>0&&v[2]>=v[4]/2&&(_=2)}return{insertSpaces:N,tabSize:_}}function Hu(e,t,n,r,i=0,s=0){if(e!==null&&typeof e=="object"){const a=i===0&&r.shouldIndentWithTab||i>0?t+r.indentation:"";if(Array.isArray(e)){if(s+=1,e.length===0)return"";let o="";for(let u=0;u<e.length;u++){let l=e[u];if(typeof e[u]!="object"){o+=`
429
- `+a+"- "+n(e[u]);continue}Array.isArray(e[u])||(l=Mv(e[u],s)),o+=Hu(l,t,n,r,i+=1,s)}return o}else{const o=Object.keys(e);if(o.length===0)return"";let u=i===0&&r.newLineFirst||i>0?`
430
- `:"",l=!0;for(let v=0;v<o.length;v++){const c=o[v];if(i===0&&r.existingProps.includes(c))continue;const N=typeof e[c]=="object",_=N?":":": ",Z=N&&/^\s|-/.test(c)?r.indentation:"",te=a+Z,M=l?"":`
431
- `;if(i===0&&l&&!r.indentFirstObject){const he=Hu(e[c],te,n,r,i+1,0);u+=M+t+c+_+he}else{const he=Hu(e[c],te,n,r,i+1,0);u+=M+a+c+_+he}l=!1}return u}}return n(e)}function Mv(e,t){const n={};for(let r=0;r<Object.keys(e).length;r++){const i=Object.keys(e)[r];r===0?n["- ".repeat(t)+i]=e[i]:n[" ".repeat(t)+i]=e[i]}return n}var Iv=Hs(),k0=/[\\]+"/g,P0=bi.Class,zu="__",Ov=class{constructor(e,t={},n,r){this.schemaService=e,this.clientCapabilities=t,this.yamlDocument=n,this.telemetry=r,this.completionEnabled=!0,this.arrayPrefixIndentation=""}configure(e){e&&(this.completionEnabled=e.completion),this.customTags=e.customTags,this.yamlVersion=e.yamlVersion,this.configuredIndentation=e.indentation,this.disableDefaultProperties=e.disableDefaultProperties,this.parentSkeletonSelectedFirst=e.parentSkeletonSelectedFirst}async doComplete(e,t,n=!1,r=!0){var i;const s=Fc.create([],!1);if(!this.completionEnabled)return s;const a=this.yamlDocument.getYamlDocument(e,{customTags:this.customTags,yamlVersion:this.yamlVersion},!0),o=new Zs(e);if(this.configuredIndentation)this.indentation=this.configuredIndentation;else{const ae=Bv(o,2,!0);this.indentation=ae.insertSpaces?" ".repeat(ae.tabSize):" "}N0(a.documents,n);for(const ae of a.documents)ae.uri=e.uri;const u=e.offsetAt(t),l=e.getText();if(l.charAt(u-1)===":")return Promise.resolve(s);let v=Ru(u,a);if(v===null)return Promise.resolve(s);v=v.clone();let[c,N]=v.getNodeFromPosition(u,o,this.indentation.length);const _=this.getCurrentWord(e,u);let Z=o.getLineContent(t.line);const te=Z.substring(t.character),M=/^[ ]+\n?$/.test(te);this.arrayPrefixIndentation="";let he=null;if(M){he=In.create(t,Hr.create(t.line,Z.length));const ae=Z.trim().length===0,Ee=Z.match(/^\s*(-)\s*$/);if(c&&qn(c)&&!ae&&!Ee){const Qe=Z.substring(0,t.character),Dt=Qe.match(/^[\s-]*([^:]+)?$/)||Qe.match(/:[ \t]((?!:[ \t]).*)$/);Dt!=null&&Dt[1]&&(he=In.create(Hr.create(t.line,t.character-Dt[1].length),Hr.create(t.line,Z.length)))}}else if(c&&qn(c)&&c.value==="null"){const ae=e.positionAt(c.range[0]);ae.character+=1;const Ee=e.positionAt(c.range[2]);Ee.character+=1,he=In.create(ae,Ee)}else if(c&&qn(c)&&c.value){const ae=e.positionAt(c.range[0]);he=In.create(ae,e.positionAt(c.range[1]))}else if(c&&qn(c)&&c.value===null&&_==="-")he=In.create(t,t),this.arrayPrefixIndentation=" ";else{let ae=u-_.length;ae>0&&l[ae-1]==='"'&&ae--,he=In.create(e.positionAt(ae),t)}const Ae={},Fe={add:(ae,Ee)=>{const Qe=function(me){var He;if(((He=Ae[me.label])==null?void 0:He.label)===zu)return;const jt=me.parent.schema,Vt=cf(jt),en=jt.markdownDescription||jt.description;let En=s.items.find(Un=>{var Wn;return((Wn=Un.parent)==null?void 0:Wn.schema)===jt&&Un.kind===P0});En&&En.parent.insertTexts.includes(me.insertText)||(En?En.parent.insertTexts.push(me.insertText):(En={...me,label:Vt,documentation:en,sortText:"_"+Vt,kind:P0},En.label=En.label||me.label,En.parent.insertTexts=[me.insertText],s.items.push(En)))},Dt=!!ae.parent;let Ve=ae.label;if(!Ve){console.warn(`Ignoring CompletionItem without label: ${JSON.stringify(ae)}`);return}if($a(Ve)||(Ve=String(Ve)),Ve=Ve.replace(/[\n]/g,"↵"),Ve.length>60){const me=Ve.substr(0,57).trim()+"...";Ae[me]||(Ve=me)}if(ae.insertText.endsWith("$1")&&!Dt&&(ae.insertText=ae.insertText.substr(0,ae.insertText.length-2)),he&&he.start.line===he.end.line&&(ae.textEdit=Nr.replace(he,ae.insertText)),ae.label=Ve,Dt){Qe(ae);return}this.arrayPrefixIndentation&&this.updateCompletionText(ae,this.arrayPrefixIndentation+ae.insertText);const Xe=Ae[Ve],ze=(Xe==null?void 0:Xe.label)!==zu&&(Xe==null?void 0:Xe.insertText)!==ae.insertText;if(!Xe)Ae[Ve]=ae,s.items.push(ae);else if(ze){const me=this.mergeSimpleInsertTexts(Ve,Xe.insertText,ae.insertText,Ee);me?this.updateCompletionText(Xe,me):(Ae[Ve]=ae,s.items.push(ae))}Xe&&!Xe.documentation&&ae.documentation&&(Xe.documentation=ae.documentation)},error:ae=>{var Ee;(Ee=this.telemetry)==null||Ee.sendError("yaml.completion.error",{error:os(ae)})},log:ae=>{console.log(ae)},getNumberOfProposals:()=>s.items.length,result:s,proposed:Ae};this.customTags.length>0&&this.getCustomTagValueCompletions(Fe),Z.endsWith(`
432
- `)&&(Z=Z.substr(0,Z.length-1));try{const ae=await this.schemaService.getSchemaForResource(e.uri,v);if((!ae||ae.errors.length)&&t.line===0&&t.character===0&&!Df(Z)){const Ve={kind:bi.Text,label:"Inline schema",insertText:"# yaml-language-server: $schema=",insertTextFormat:Kr.PlainText};s.items.push(Ve)}if(Df(Z)||Kb(a.tokens,u)){const Ve=Z.indexOf("$schema=");return Ve!==-1&&Ve+8<=t.character&&this.schemaService.getAllSchemas().forEach(Xe=>{var ze;const me={kind:bi.Constant,label:(ze=Xe.name)!=null?ze:Xe.uri,detail:Xe.description,insertText:Xe.uri,insertTextFormat:Kr.PlainText,insertTextMode:Sc.asIs};s.items.push(me)}),s}if(!ae||ae.errors.length)return s;let Ee=null;if(!c)if(!v.internalDocument.contents||qn(v.internalDocument.contents)){const Ve=v.internalDocument.createNode({});Ve.range=[u,u+1,u+1],v.internalDocument.contents=Ve,v.updateFromInternalDocument(),c=Ve}else c=v.findClosestNode(u,o),N=!0;const Qe=c;if(c)if(Z.length===0)c=v.internalDocument.contents;else{const Ve=v.getParent(c);if(Ve){if(qn(c)){if(c.value){if(dr(Ve)){if(Ve.value===c){if(Z.trim().length>0&&Z.indexOf(":")<0){const Xe=this.createTempObjNode(_,c,v),ze=v.getParent(Ve);if(Br(v.internalDocument.contents)){const me=Xb(v.internalDocument.contents,Ve);typeof me=="number"&&(v.internalDocument.set(me,Xe),v.updateFromInternalDocument())}else ze&&(Pr(ze)||Br(ze))?(ze.set(Ve.key,Xe),v.updateFromInternalDocument()):(v.internalDocument.set(Ve.key,Xe),v.updateFromInternalDocument());Ee=Xe.items[0],c=Xe}else if(Z.trim().length===0){const Xe=v.getParent(Ve);Xe&&(c=Xe)}}else if(Ve.key===c){const Xe=v.getParent(Ve);Ee=Ve,Xe&&(c=Xe)}}else if(Br(Ve))if(Z.trim().length>0){const Xe=this.createTempObjNode(_,c,v);Ve.delete(c),Ve.add(Xe),v.updateFromInternalDocument(),c=Xe}else c=Ve}else if(c.value===null){if(dr(Ve)){if(Ve.key===c)c=Ve;else if(yr(Ve.key)&&Ve.key.range){const Xe=v.getParent(Ve);if(N&&Xe&&Pr(Xe)&&Qb(Xe))c=Xe;else{const ze=e.positionAt(Ve.key.range[0]);if(t.character>ze.character&&t.line!==ze.line){const me=this.createTempObjNode(_,c,v);Xe&&(Pr(Xe)||Br(Xe))?(Xe.set(Ve.key,me),v.updateFromInternalDocument()):(v.internalDocument.set(Ve.key,me),v.updateFromInternalDocument()),Ee=me.items[0],c=me}else ze.character===t.character&&Xe&&(c=Xe)}}}else if(Br(Ve))if(Z.charAt(t.character-1)!=="-"){const Xe=this.createTempObjNode(_,c,v);Ve.delete(c),Ve.add(Xe),v.updateFromInternalDocument(),c=Xe}else if(Z.charAt(t.character-1)==="-"){const Xe=this.createTempObjNode("",c,v);Ve.delete(c),Ve.add(Xe),v.updateFromInternalDocument(),c=Xe}else c=Ve}}else if(Pr(c)&&!N&&Z.trim().length===0&&Br(Ve)){const Xe=o.getLineContent(t.line+1);(o.getLineCount()===t.line+1||Xe.trim().length===0)&&(c=Ve)}}else if(qn(c)){const Xe=this.createTempObjNode(_,c,v);v.internalDocument.contents=Xe,v.updateFromInternalDocument(),Ee=Xe.items[0],c=Xe}else if(Pr(c))for(const Xe of c.items)yr(Xe.value)&&Xe.value.range&&Xe.value.range[0]===u+1&&(c=Xe.value);else if(Br(c)&&Z.charAt(t.character-1)!=="-"){const Xe=this.createTempObjNode(_,c,v);Xe.items=[],v.updateFromInternalDocument();for(const ze of c.items)Pr(ze)&&ze.items.forEach(me=>{Xe.items.push(me)});c=Xe}}if(c&&Pr(c)){const Ve=c.items;for(const Xe of Ve)(!Ee||Ee!==Xe)&&qn(Xe.key)&&(Ae[Xe.key.value+""]=wc.create(zu));this.addPropertyCompletions(ae,v,c,Qe,"",Fe,o,he,r),!ae&&_.length>0&&l.charAt(u-_.length-1)!=='"'&&Fe.add({kind:bi.Property,label:_,insertText:this.getInsertTextForProperty(_,null,""),insertTextFormat:Kr.Snippet})}const Dt={};this.getValueCompletions(ae,v,c,u,e,Fe,Dt,r)}catch(ae){(i=this.telemetry)==null||i.sendError("yaml.completion.error",{error:os(ae)})}this.finalizeParentCompletion(s);const ke=s.items.filter((ae,Ee,Qe)=>Ee===Qe.findIndex(Dt=>Dt.label===ae.label&&Dt.insertText===ae.insertText&&Dt.kind===ae.kind));return(ke==null?void 0:ke.length)>0&&(s.items=ke),s}updateCompletionText(e,t){e.insertText=t,e.textEdit&&(e.textEdit.newText=t)}mergeSimpleInsertTexts(e,t,n,r){const i=v=>v.includes(`
433
- `),s=v=>v.startsWith(`
434
- `),a=v=>{const c=v.indexOf(`
435
- `);return c>0&&v.substring(c,v.length).trim().length===0};if(i(t)||i(n))return r&&a(t)&&!a(n)&&!s(n)?n:void 0;const o=this.getValuesFromInsertText(t),u=this.getValuesFromInsertText(n),l=Array.prototype.concat(o,u);if(l.length)return l.length===1?`${e}: \${1:${l[0]}}`:`${e}: \${1|${l.join(",")}|}`}getValuesFromInsertText(e){const t=e.substring(e.indexOf(":")+1).trim();if(!t)return[];const n=t.match(/^\${1[|:]([^|]*)+\|?}$/);return n?n[1].split(","):[t]}finalizeParentCompletion(e){const t=n=>{let r=0;return n.map(i=>{const s=i.match(/\$([0-9]+)|\${[0-9]+:/g);if(!s)return i;const a=s.map(u=>+u.replace(/\${([0-9]+)[:|]/g,"$1").replace("$","")).reduce((u,l)=>l>u?l:u,0),o=i.replace(/\$([0-9]+)/g,(u,l)=>"$"+(+l+r)).replace(/\${([0-9]+)[:|]/g,(u,l)=>"${"+(+l+r)+":");return r+=a,o})};e.items.forEach(n=>{if($v(n)){const r=n.parent.indent||"";let s=t(n.parent.insertTexts).join(`
436
- ${r}`);s.endsWith("$1")&&(s=s.substring(0,s.length-2)),n.insertText=this.arrayPrefixIndentation+s,n.textEdit&&(n.textEdit.newText=n.insertText);const a=s.replace(/\${[0-9]+[:|](.*)}/g,(u,l)=>l).replace(/\$([0-9]+)/g,""),o=n.documentation?[n.documentation,"","----",""]:[];n.documentation={kind:rs.Markdown,value:[...o,"```yaml",r+a,"```"].join(`
437
- `)},delete n.parent}})}createTempObjNode(e,t,n){const r={};r[e]=null;const i=n.internalDocument.createNode(r);return i.range=t.range,i.items[0].key.range=t.range,i.items[0].value.range=t.range,i}addPropertyCompletions(e,t,n,r,i,s,a,o,u){var l,v,c;const N=t.getMatchingSchemas(e.schema,-1,null,u),_=a.getText(o),Z=a.getLineContent(o.start.line),te=Z.trim().length===0,M=Z.indexOf(":")!==-1,he=Z.trimLeft().indexOf("-")===0,Ae=t.getParent(n),Fe=N.find(Ee=>Ee.node.internalNode===r&&Ee.schema.properties),ke=N.filter(Ee=>Ee.schema.oneOf).map(Ee=>Ee.schema.oneOf)[0];let ae=!1;(ke==null?void 0:ke.length)<N.length&&(ke==null||ke.forEach((Ee,Qe)=>{var Dt,Ve;!((Dt=N[Qe])!=null&&Dt.schema.oneOf)&&((Ve=N[Qe])==null?void 0:Ve.schema.properties)===Ee.properties&&(ae=!0)}));for(const Ee of N){if((Ee.node.internalNode===n&&!Fe||Ee.node.internalNode===r&&!M||((l=Ee.node.parent)==null?void 0:l.internalNode)===r&&!M)&&!Ee.inverted){this.collectDefaultSnippets(Ee.schema,i,s,{newLineFirst:!1,indentFirstObject:!1,shouldIndentWithTab:he});const Qe=Ee.schema.properties;if(Qe){const Dt=Ee.schema.maxProperties;if(Dt===void 0||n.items===void 0||n.items.length<Dt||n.items.length===Dt&&!te){for(const Ve in Qe)if(Object.prototype.hasOwnProperty.call(Qe,Ve)){const Xe=Qe[Ve];if(typeof Xe=="object"&&!Xe.deprecationMessage&&!Xe.doNotSuggest){let ze="";if(Ae&&Br(Ae)&&n.items.length<=1&&!te){const Vt=a.getText(),en=Vt.lastIndexOf("-",n.range[0]-1);if(en>=0){const En=o.end.character-o.start.character;ze=" "+Vt.slice(en+1,n.range[1]-En)}}ze+=this.arrayPrefixIndentation;let me;Xe.type==="array"&&(me=n.items.find(Vt=>qn(Vt.key)&&Vt.key.range&&Vt.key.value===Ve&&qn(Vt.value)&&!Vt.value.value&&a.getPosition(Vt.key.range[2]).line===o.end.line-1))&&me&&(Array.isArray(Xe.items)?this.addSchemaValueCompletions(Xe.items[0],i,s,{},"property"):typeof Xe.items=="object"&&Xe.items.type==="object"&&this.addArrayItemValueCompletion(Xe.items,i,s));let He=Ve;(!Ve.startsWith(_)||!M)&&(He=this.getInsertTextForProperty(Ve,Xe,i,ze+this.indentation));const xt=qn(r)&&r.value===null||Pr(r)&&r.items.length===0,jt=((v=Ee.schema.required)==null?void 0:v.length)>0;(!this.parentSkeletonSelectedFirst||!xt||!jt)&&s.add({kind:bi.Property,label:Ve,insertText:He,insertTextFormat:Kr.Snippet,documentation:this.fromMarkup(Xe.markdownDescription)||Xe.description||""},ae),(c=Ee.schema.required)!=null&&c.includes(Ve)&&s.add({label:Ve,insertText:this.getInsertTextForProperty(Ve,Xe,i,ze+this.indentation),insertTextFormat:Kr.Snippet,documentation:this.fromMarkup(Xe.markdownDescription)||Xe.description||"",parent:{schema:Ee.schema,indent:ze}})}}}}if(Ae&&Br(Ae)&&yb(Ee.schema)&&this.addSchemaValueCompletions(Ee.schema,i,s,{},"property",Array.isArray(Ae.items)),Ee.schema.propertyNames&&Ee.schema.additionalProperties&&Ee.schema.type==="object"){const Dt=oi(Ee.schema.propertyNames),Ve=Dt.title||"property";s.add({kind:bi.Property,label:Ve,insertText:`\${1:${Ve}}: `,insertTextFormat:Kr.Snippet,documentation:this.fromMarkup(Dt.markdownDescription)||Dt.description||""})}}Ae&&Ee.node.internalNode===Ae&&Ee.schema.defaultSnippets&&(n.items.length===1?this.collectDefaultSnippets(Ee.schema,i,s,{newLineFirst:!1,indentFirstObject:!1,shouldIndentWithTab:!0},1):this.collectDefaultSnippets(Ee.schema,i,s,{newLineFirst:!1,indentFirstObject:!0,shouldIndentWithTab:!1},1))}}getValueCompletions(e,t,n,r,i,s,a,o){let u=null;if(n&&qn(n)&&(n=t.getParent(n)),!n){this.addSchemaValueCompletions(e.schema,"",s,a,"value");return}if(dr(n)){const l=n.value;if(l&&l.range&&r>l.range[0]+l.range[2])return;u=qn(n.key)?n.key.value+"":null,n=t.getParent(n)}if(n&&(u!==null||Br(n))){const l="",v=t.getMatchingSchemas(e.schema,-1,null,o);for(const c of v)if(c.node.internalNode===n&&!c.inverted&&c.schema){if(c.schema.items&&(this.collectDefaultSnippets(c.schema,l,s,{newLineFirst:!1,indentFirstObject:!1,shouldIndentWithTab:!1}),Br(n)&&n.items))if(Array.isArray(c.schema.items)){const N=this.findItemAtOffset(n,i,r);N<c.schema.items.length&&this.addSchemaValueCompletions(c.schema.items[N],l,s,a,"value")}else typeof c.schema.items=="object"&&(c.schema.items.type==="object"||ff(c.schema.items))?this.addSchemaValueCompletions(c.schema.items,l,s,a,"value",!0):this.addSchemaValueCompletions(c.schema.items,l,s,a,"value");if(c.schema.properties){const N=c.schema.properties[u];N&&this.addSchemaValueCompletions(N,l,s,a,"value")}else c.schema.additionalProperties&&this.addSchemaValueCompletions(c.schema.additionalProperties,l,s,a,"value")}a.boolean&&(this.addBooleanValueCompletion(!0,l,s),this.addBooleanValueCompletion(!1,l,s)),a.null&&this.addNullValueCompletion(l,s)}}addArrayItemValueCompletion(e,t,n,r){const i=cf(e),s=`- ${this.getInsertTextForObject(e,t).insertText.trimLeft()}`,a=i?" type `"+i+"`":"",o=e.description?" ("+e.description+")":"",u=this.getDocumentationWithMarkdownText(`Create an item of an array${a}${o}`,s);n.add({kind:this.getSuggestionKind(e.type),label:"- (array item) "+(i||r),documentation:u,insertText:s,insertTextFormat:Kr.Snippet})}getInsertTextForProperty(e,t,n,r=this.indentation){const i=this.getInsertTextForValue(e,"","string"),s=i+":";let a,o=0;if(t){let u=Array.isArray(t.type)?t.type[0]:t.type;if(u||(t.properties?u="object":t.items?u="array":t.anyOf&&(u="anyOf")),Array.isArray(t.defaultSnippets)){if(t.defaultSnippets.length===1){const l=t.defaultSnippets[0].body;Xs(l)&&(a=this.getInsertTextForSnippetValue(l,"",{newLineFirst:!0,indentFirstObject:!1,shouldIndentWithTab:!1},[],1),!a.startsWith(" ")&&!a.startsWith(`
438
- `)&&(a=" "+a))}o+=t.defaultSnippets.length}if(t.enum&&(!a&&t.enum.length===1&&(a=" "+this.getInsertTextForGuessedValue(t.enum[0],"",u)),o+=t.enum.length),t.const&&(a||(a=this.getInsertTextForGuessedValue(t.const,"",u),a=Rv(a),a=" "+a),o++),Xs(t.default)&&(a||(a=" "+this.getInsertTextForGuessedValue(t.default,"",u)),o++),Array.isArray(t.examples)&&t.examples.length&&(a||(a=" "+this.getInsertTextForGuessedValue(t.examples[0],"",u)),o+=t.examples.length),t.properties)return`${s}
439
- ${this.getInsertTextForObject(t,n,r).insertText}`;if(t.items)return`${s}
440
- ${r}- ${this.getInsertTextForArray(t.items,n,1,r).insertText}`;if(o===0)switch(u){case"boolean":a=" $1";break;case"string":a=" $1";break;case"object":a=`
441
- ${r}`;break;case"array":a=`
442
- ${r}- `;break;case"number":case"integer":a=" ${1:0}";break;case"null":a=" ${1:null}";break;case"anyOf":a=" $1";break;default:return i}}return(!a||o>1)&&(a=" $1"),s+a+n}getInsertTextForObject(e,t,n=this.indentation,r=1){let i="";return e.properties?(Object.keys(e.properties).forEach(s=>{const a=e.properties[s];let o=Array.isArray(a.type)?a.type[0]:a.type;if(o||(a.anyOf&&(o="anyOf"),a.properties&&(o="object"),a.items&&(o="array")),e.required&&e.required.indexOf(s)>-1)switch(o){case"boolean":case"string":case"number":case"integer":case"anyOf":{let u=a.default||a.const;u?(o==="string"&&(u=Qu(u)),i+=`${n}${s}: \${${r++}:${u}}
443
- `):i+=`${n}${s}: $${r++}
444
- `;break}case"array":{const u=this.getInsertTextForArray(a.items,t,r++,n),l=u.insertText.split(`
445
- `);let v=u.insertText;if(l.length>1){for(let c=1;c<l.length;c++){const N=l[c];l[c]=` ${N}`}v=l.join(`
446
- `)}r=u.insertIndex,i+=`${n}${s}:
447
- ${n}${this.indentation}- ${v}
448
- `}break;case"object":{const u=this.getInsertTextForObject(a,t,`${n}${this.indentation}`,r++);r=u.insertIndex,i+=`${n}${s}:
449
- ${u.insertText}
450
- `}break}else if(!this.disableDefaultProperties&&a.default!==void 0)switch(o){case"boolean":case"number":case"integer":i+=`${n}${s==="null"?this.getInsertTextForValue(s,"","string"):s}: \${${r++}:${a.default}}
451
- `;break;case"string":i+=`${n}${s}: \${${r++}:${Qu(a.default)}}
452
- `;break}}),i.trim().length===0&&(i=`${n}$${r++}
453
- `),i=i.trimRight()+t,{insertText:i,insertIndex:r}):(i=`${n}$${r++}
454
- `,{insertText:i,insertIndex:r})}getInsertTextForArray(e,t,n=1,r=this.indentation){let i="";if(!e)return i=`$${n++}`,{insertText:i,insertIndex:n};let s=Array.isArray(e.type)?e.type[0]:e.type;switch(s||(e.properties&&(s="object"),e.items&&(s="array")),e.type){case"boolean":i=`\${${n++}:false}`;break;case"number":case"integer":i=`\${${n++}:0}`;break;case"string":i=`\${${n++}:""}`;break;case"object":{const a=this.getInsertTextForObject(e,t,`${r} `,n++);i=a.insertText.trimLeft(),n=a.insertIndex}break}return{insertText:i,insertIndex:n}}getInsertTextForGuessedValue(e,t,n){switch(typeof e){case"object":return e===null?"${1:null}"+t:this.getInsertTextForValue(e,t,n);case"string":{let r=JSON.stringify(e);return r=r.substr(1,r.length-2),r=this.getInsertTextForPlainText(r),n==="string"&&(r=Qu(r)),"${1:"+r+"}"+t}case"number":case"boolean":return"${1:"+e+"}"+t}return this.getInsertTextForValue(e,t,n)}getInsertTextForPlainText(e){return e.replace(/[\\$}]/g,"\\$&")}getInsertTextForValue(e,t,n){if(e===null)return"null";switch(typeof e){case"object":{const r=this.indentation;return this.getInsertTemplateForValue(e,r,{index:1},t)}case"number":case"boolean":return this.getInsertTextForPlainText(e+t)}return n=Array.isArray(n)?n[0]:n,n==="string"&&(e=Qu(e)),this.getInsertTextForPlainText(e+t)}getInsertTemplateForValue(e,t,n,r){if(Array.isArray(e)){let i=`
455
- `;for(const s of e)i+=`${t}- \${${n.index++}:${s}}
456
- `;return i}else if(typeof e=="object"){let i=`
457
- `;for(const s in e)if(Object.prototype.hasOwnProperty.call(e,s)){const a=e[s];i+=`${t}\${${n.index++}:${s}}:`;let o;typeof a=="object"?o=`${this.getInsertTemplateForValue(a,t+this.indentation,n,r)}`:o=` \${${n.index++}:${this.getInsertTextForPlainText(a+r)}}
458
- `,i+=`${o}`}return i}return this.getInsertTextForPlainText(e+r)}addSchemaValueCompletions(e,t,n,r,i,s){typeof e=="object"&&(this.addEnumValueCompletions(e,t,n,s),this.addDefaultValueCompletions(e,t,n),this.collectTypes(e,r),s&&i==="value"&&!ff(e)&&this.addArrayItemValueCompletion(e,t,n),Array.isArray(e.allOf)&&e.allOf.forEach(a=>this.addSchemaValueCompletions(a,t,n,r,i,s)),Array.isArray(e.anyOf)&&e.anyOf.forEach(a=>this.addSchemaValueCompletions(a,t,n,r,i,s)),Array.isArray(e.oneOf)&&e.oneOf.forEach(a=>this.addSchemaValueCompletions(a,t,n,r,i,s)))}collectTypes(e,t){if(Array.isArray(e.enum)||Xs(e.const))return;const n=e.type;Array.isArray(n)?n.forEach(function(r){return t[r]=!0}):n&&(t[n]=!0)}addDefaultValueCompletions(e,t,n,r=0){let i=!1;if(Xs(e.default)){let s=e.type,a=e.default;for(let u=r;u>0;u--)a=[a],s="array";let o;typeof a=="object"?o="Default value":o=a.toString().replace(k0,'"'),n.add({kind:this.getSuggestionKind(s),label:o,insertText:this.getInsertTextForValue(a,t,s),insertTextFormat:Kr.Snippet,detail:Iv("json.suggest.default","Default value")}),i=!0}Array.isArray(e.examples)&&e.examples.forEach(s=>{let a=e.type,o=s;for(let u=r;u>0;u--)o=[o],a="array";n.add({kind:this.getSuggestionKind(a),label:this.getLabelForValue(o),insertText:this.getInsertTextForValue(o,t,a),insertTextFormat:Kr.Snippet}),i=!0}),this.collectDefaultSnippets(e,t,n,{newLineFirst:!0,indentFirstObject:!0,shouldIndentWithTab:!0}),!i&&typeof e.items=="object"&&!Array.isArray(e.items)&&this.addDefaultValueCompletions(e.items,t,n,r+1)}addEnumValueCompletions(e,t,n,r){if(Xs(e.const)&&!r&&n.add({kind:this.getSuggestionKind(e.type),label:this.getLabelForValue(e.const),insertText:this.getInsertTextForValue(e.const,t,e.type),insertTextFormat:Kr.Snippet,documentation:this.fromMarkup(e.markdownDescription)||e.description}),Array.isArray(e.enum))for(let i=0,s=e.enum.length;i<s;i++){const a=e.enum[i];let o=this.fromMarkup(e.markdownDescription)||e.description;e.markdownEnumDescriptions&&i<e.markdownEnumDescriptions.length&&this.doesSupportMarkdown()?o=this.fromMarkup(e.markdownEnumDescriptions[i]):e.enumDescriptions&&i<e.enumDescriptions.length&&(o=e.enumDescriptions[i]),n.add({kind:this.getSuggestionKind(e.type),label:this.getLabelForValue(a),insertText:this.getInsertTextForValue(a,t,e.type),insertTextFormat:Kr.Snippet,documentation:o})}}getLabelForValue(e){return e===null?"null":Array.isArray(e)?JSON.stringify(e):""+e}collectDefaultSnippets(e,t,n,r,i=0){if(Array.isArray(e.defaultSnippets))for(const s of e.defaultSnippets){let a=e.type,o=s.body,u=s.label,l,v;if(Xs(o)){const c=s.type||e.type;if(i===0&&c==="array"){const _={};Object.keys(o).forEach((Z,te)=>{te===0&&!Z.startsWith("-")?_[`- ${Z}`]=o[Z]:_[` ${Z}`]=o[Z]}),o=_}const N=Object.keys(n.proposed).filter(_=>n.proposed[_].label===zu);if(l=this.getInsertTextForSnippetValue(o,t,r,N),l===""&&o)continue;u=u||this.getLabelForSnippetValue(o)}else if(typeof s.bodyText=="string"){let c="",N="",_="";for(let Z=i;Z>0;Z--)c=c+_+`[
459
- `,N=N+`
460
- `+_+"]",_+=this.indentation,a="array";l=c+_+s.bodyText.split(`
461
- `).join(`
462
- `+_)+N+t,u=u||l,v=l.replace(/[\n]/g,"")}n.add({kind:s.suggestionKind||this.getSuggestionKind(a),label:u,sortText:s.sortText||s.label,documentation:this.fromMarkup(s.markdownDescription)||s.description,insertText:l,insertTextFormat:Kr.Snippet,filterText:v})}}getInsertTextForSnippetValue(e,t,n,r,i){return Hu(e,"",a=>{if(typeof a=="string"){if(a[0]==="^")return a.substr(1);if(a==="true"||a==="false")return`"${a}"`}return a},{...n,indentation:this.indentation,existingProps:r},i)+t}addBooleanValueCompletion(e,t,n){n.add({kind:this.getSuggestionKind("boolean"),label:e?"true":"false",insertText:this.getInsertTextForValue(e,t,"boolean"),insertTextFormat:Kr.Snippet,documentation:""})}addNullValueCompletion(e,t){t.add({kind:this.getSuggestionKind("null"),label:"null",insertText:"null"+e,insertTextFormat:Kr.Snippet,documentation:""})}getLabelForSnippetValue(e){return JSON.stringify(e).replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1")}getCustomTagValueCompletions(e){h0(this.customTags).forEach(n=>{const r=n.split(" ")[0];this.addCustomTagValueCompletion(e," ",r)})}addCustomTagValueCompletion(e,t,n){e.add({kind:this.getSuggestionKind("string"),label:n,insertText:n+t,insertTextFormat:Kr.Snippet,documentation:""})}getDocumentationWithMarkdownText(e,t){let n=e;return this.doesSupportMarkdown()&&(t=t.replace(/\${[0-9]+[:|](.*)}/g,(r,i)=>i).replace(/\$([0-9]+)/g,""),n=this.fromMarkup(`${e}
463
- \`\`\`
464
- ${t}
465
- \`\`\``)),n}getSuggestionKind(e){if(Array.isArray(e)){const t=e;e=t.length>0?t[0]:null}if(!e)return bi.Value;switch(e){case"string":return bi.Value;case"object":return bi.Module;case"property":return bi.Property;default:return bi.Value}}getCurrentWord(e,t){let n=t-1;const r=e.getText();for(;n>=0&&`
466
- \r\v":{[,]}`.indexOf(r.charAt(n))===-1;)n--;return r.substring(n+1,t)}fromMarkup(e){if(e&&this.doesSupportMarkdown())return{kind:rs.Markdown,value:e}}doesSupportMarkdown(){if(this.supportsMarkdown===void 0){const e=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsMarkdown=e&&e.completionItem&&Array.isArray(e.completionItem.documentationFormat)&&e.completionItem.documentationFormat.indexOf(rs.Markdown)!==-1}return this.supportsMarkdown}findItemAtOffset(e,t,n){for(let r=e.items.length-1;r>=0;r--){const i=e.items[r];if(yr(i)&&i.range){if(n>i.range[1])return r;if(n>=i.range[0])return r}}return 0}},jv=/^\d+$/;function Qu(e){let t;if(typeof e=="string"?t=e:t=""+e,t.length===0)return t;if(t==="true"||t==="false"||t==="null"||jv.test(t))return`"${t}"`;t.indexOf('"')!==-1&&(t=t.replace(k0,'"'));let n=!isNaN(parseInt(t))||t.charAt(0)==="@";if(!n){let r=t.indexOf(":",0);for(;r>0&&r<t.length;r=t.indexOf(":",r+1)){if(r===t.length-1){n=!0;break}const i=t.charAt(r+1);if(i===" "||i===" "){n=!0;break}}}return n&&(t=`"${t}"`),t}function Rv(e){return e.replace(/\$\{1:(.*)\}/,"$1")}function $v(e){return"parent"in e}function Vv(){}var qv=class{constructor(e){this.telemetry=e}getDefinition(e,t){var n;try{const r=Vi.getYamlDocument(e),i=e.offsetAt(t.position),s=Ru(i,r);if(s){const[a]=s.getNodeFromPosition(i,new Zs(e));if(a&&Qi(a)){const o=a.resolve(s.internalDocument);if(o&&o.range){const u=In.create(e.positionAt(o.range[0]),e.positionAt(o.range[2])),l=In.create(e.positionAt(o.range[0]),e.positionAt(o.range[1]));return[dc.create(e.uri,u,l)]}}}}catch(r){(n=this.telemetry)==null||n.sendError("yaml.definition.error",{error:os(r)})}}};function Uv(e,t){if(!e)return;const n=Vi.getYamlDocument(e);return t.map(i=>{const s=r(i);let a;for(const o of s)a=pu.create(o,a);return a||(a=pu.create({start:i,end:i})),a});function r(i){const s=e.offsetAt(i),a=[];for(const o of n.documents){let u,l,v=!0;for(o.visit(c=>{if(c.offset+c.length<s)return!0;let _=c.offset;if(_>s){const Z=e.positionAt(_);if(Z.line!==i.line)return!0;const te={line:Z.line,character:0};if(e.getText({start:te,end:Z}).trim().length!==0||(_=e.offsetAt(te),_>s))return!0}return(!u||_>=u.offset)&&(u=c,l=_),!0});u;){const c=v?l:u.offset,N=u.offset+u.length,_={start:e.positionAt(c),end:e.positionAt(N)},Z=e.getText(_),te=Z.trimEnd(),M=Z.length-te.length;M>0&&(_.end=e.positionAt(N-M));const he=(Ae,Fe)=>te.startsWith(Ae)&&te.endsWith(Fe||Ae);(u.type==="string"&&(he("'")||he('"'))||u.type==="object"&&he("{","}")||u.type==="array"&&he("[","]"))&&a.push({start:e.positionAt(c+1),end:e.positionAt(N-1)}),a.push(_),u=u.parent,v=!1}if(a.length>0)break}return a.reverse()}}var vf;(function(e){e[e.SchemaStore=1]="SchemaStore",e[e.SchemaAssociation=2]="SchemaAssociation",e[e.Settings=3]="Settings"})(vf||(vf={}));function Wv(e){const t=new cv(e.schemaRequestService,e.workspaceContext),n=new Ov(t,e.clientCapabilities,Vi,e.telemetry),r=new pv(t,e.telemetry),i=new fv(t,e.telemetry),s=new Av(t,e.telemetry),a=new Cv,o=new Nv(e.clientCapabilities),u=new Lv(t,e.telemetry),l=new xv(e.telemetry),v=new qv(e.telemetry);return new Vv(t,e.yamlSettings,e.connection),{configure:c=>{t.clearExternalSchemas(),c.schemas&&(t.schemaPriorityMapping=new Map,c.schemas.forEach(N=>{const _=N.priority?N.priority:0;t.addSchemaPriority(N.uri,_),t.registerExternalSchema(N.uri,N.fileMatch,N.schema,N.name,N.description,N.versions)})),s.configure(c),r.configure(c),n.configure(c),a.configure(c),o.configure(c)},registerCustomSchemaProvider:c=>{t.registerCustomSchemaProvider(c)},findLinks:l.findLinks.bind(l),doComplete:n.doComplete.bind(n),doValidation:s.doValidation.bind(s),doHover:r.doHover.bind(r),findDocumentSymbols:i.findDocumentSymbols.bind(i),findDocumentSymbols2:i.findHierarchicalDocumentSymbols.bind(i),doDefinition:v.getDefinition.bind(v),resetSchema:c=>t.onResourceChange(c),doFormat:a.format.bind(a),doDocumentOnTypeFormatting:Tv,addSchema:(c,N)=>t.saveSchema(c,N),deleteSchema:c=>t.deleteSchema(c),modifySchemaContent:c=>t.addContent(c),deleteSchemaContent:c=>t.deleteContent(c),deleteSchemasWhole:c=>t.deleteSchemas(c),getFoldingRanges:Sv,getSelectionRanges:Uv,getCodeAction:(c,N)=>o.getCodeAction(c,N),getCodeLens:c=>u.getCodeLens(c),resolveCodeLens:c=>u.resolveCodeLens(c)}}async function Gv(e){const t=await fetch(e);if(t.ok)return t.text();throw new Error(`Schema request failed for ${e}`)}var Jv={send(){},sendError(e,t){console.error("monaco-yaml",e,t)},sendTrack(){}},Yv={resolveRelativePath(e,t){return String(new URL(e,t))}};ky((e,{enableSchemaRequest:t,...n})=>{const r=Wv({schemaRequestService:t?Gv:null,telemetry:Jv,workspaceContext:Yv}),i=s=>(a,...o)=>{const u=e.getMirrorModels();for(const l of u)if(String(l.uri)===a)return s(uc.create(a,"yaml",l.version,l.getValue()),...o)};return r.configure(n),{doValidation:i(s=>r.doValidation(s,!!n.isKubernetes)),doComplete:i((s,a)=>r.doComplete(s,a,!!n.isKubernetes)),doDefinition:i((s,a)=>r.doDefinition(s,{position:a,textDocument:s})),doHover:i((s,a)=>r.doHover(s,a)),format:i(s=>r.doFormat(s,{})),resetSchema:s=>r.resetSchema(s),findDocumentSymbols:i(s=>r.findDocumentSymbols2(s,{})),findLinks:i(s=>r.findLinks(s)),getCodeAction:i((s,a,o)=>r.getCodeAction(s,{range:a,textDocument:s,context:o})),getFoldingRanges:i(s=>r.getFoldingRanges(s,{lineFoldingOnly:!0}))}})})();