astro-vscode 2.16.13 → 2.16.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +2 -2
- package/CHANGELOG.md +6 -0
- package/dist/node/server.js +5 -5
- package/package.json +4 -4
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
|
-
> astro-vscode@2.16.
|
|
2
|
+
> astro-vscode@2.16.14 build /home/runner/work/astro/astro/packages/language-tools/vscode
|
|
3
3
|
> tsc && pnpm prebuild && node scripts/build.mjs -- --minify
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
> astro-vscode@2.16.
|
|
6
|
+
> astro-vscode@2.16.14 prebuild /home/runner/work/astro/astro/packages/language-tools/vscode
|
|
7
7
|
> cd ../ts-plugin && pnpm build
|
|
8
8
|
|
|
9
9
|
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# astro-vscode
|
|
2
2
|
|
|
3
|
+
## 2.16.14
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#16069](https://github.com/withastro/astro/pull/16069) [`c9a5807`](https://github.com/withastro/astro/commit/c9a58073a340959f081b66d2ff50c1f2445b6b05) Thanks [@Princesseuh](https://github.com/Princesseuh)! - Updates the minimum supported version of VS Code to 1.92.0 (July 2024)
|
|
8
|
+
|
|
3
9
|
## 2.16.13
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/dist/node/server.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
var Ece=Object.create;var Oy=Object.defineProperty;var Mce=Object.getOwnPropertyDescriptor;var Dce=Object.getOwnPropertyNames;var Ice=Object.getPrototypeOf,Rce=Object.prototype.hasOwnProperty;var ie=(t,e)=>()=>(t&&(e=t(t=0)),e);var M=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),ho=(t,e)=>{for(var n in e)Oy(t,n,{get:e[n],enumerable:!0})},R3=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Dce(e))!Rce.call(t,i)&&i!==n&&Oy(t,i,{get:()=>e[i],enumerable:!(r=Mce(e,i))||r.enumerable});return t};var Gn=(t,e,n)=>(n=t!=null?Ece(Ice(t)):{},R3(e||!t||!t.__esModule?Oy(n,"default",{value:t,enumerable:!0}):n,t)),pn=t=>R3(Oy({},"__esModule",{value:!0}),t);var P3=M((TGe,Pce)=>{Pce.exports={name:"@astrojs/language-server",version:"2.16.6",author:"withastro",license:"MIT",repository:{type:"git",url:"git+https://github.com/withastro/astro.git",directory:"packages/language-tools/language-server"},type:"commonjs",main:"dist/index.js",files:["bin","dist/**/*.js","dist/**/*.d.ts","types/**/*.d.ts"],bin:{"astro-ls":"./bin/nodeServer.js"},scripts:{build:"tsc",dev:"tsc --watch",test:'astro-scripts test "**/*.test.ts" --teardown-test ./test/misc/teardown.ts --tsx true --setup ./test/setup.js',"test:match":"pnpm run test --match"},dependencies:{"@astrojs/compiler":"^2.13.1","@astrojs/yaml2ts":"^0.2.3","@jridgewell/sourcemap-codec":"^1.5.5","@volar/kit":"~2.4.28","@volar/language-core":"~2.4.28","@volar/language-server":"~2.4.28","@volar/language-service":"~2.4.28","muggle-string":"^0.4.1",tinyglobby:"^0.2.15","volar-service-css":"0.0.70","volar-service-emmet":"0.0.70","volar-service-html":"0.0.70","volar-service-prettier":"0.0.70","volar-service-typescript":"0.0.70","volar-service-typescript-twoslash-queries":"0.0.70","volar-service-yaml":"0.0.70","vscode-html-languageservice":"^5.6.2","vscode-uri":"^3.1.0"},devDependencies:{"@types/node":"^20.9.0","@volar/test-utils":"~2.4.28","@volar/typescript":"~2.4.28",tsx:"^4.21.0",typescript:"^5.9.3","vscode-languageserver-protocol":"^3.17.5","vscode-languageserver-textdocument":"^1.0.12","astro-scripts":"workspace:*"},peerDependencies:{prettier:"^3.0.0","prettier-plugin-astro":">=0.11.0"},peerDependenciesMeta:{prettier:{optional:!0},"prettier-plugin-astro":{optional:!0}}}});var Ny=M(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.thenable=Nn.typedArray=Nn.stringArray=Nn.array=Nn.func=Nn.error=Nn.number=Nn.string=Nn.boolean=void 0;function Oce(t){return t===!0||t===!1}Nn.boolean=Oce;function O3(t){return typeof t=="string"||t instanceof String}Nn.string=O3;function Nce(t){return typeof t=="number"||t instanceof Number}Nn.number=Nce;function Lce(t){return t instanceof Error}Nn.error=Lce;function N3(t){return typeof t=="function"}Nn.func=N3;function L3(t){return Array.isArray(t)}Nn.array=L3;function qce(t){return L3(t)&&t.every(e=>O3(e))}Nn.stringArray=qce;function $ce(t,e){return Array.isArray(t)&&t.every(e)}Nn.typedArray=$ce;function jce(t){return t&&N3(t.then)}Nn.thenable=jce});var kd=M(Ar=>{"use strict";Object.defineProperty(Ar,"__esModule",{value:!0});Ar.stringArray=Ar.array=Ar.func=Ar.error=Ar.number=Ar.string=Ar.boolean=void 0;function zce(t){return t===!0||t===!1}Ar.boolean=zce;function q3(t){return typeof t=="string"||t instanceof String}Ar.string=q3;function Wce(t){return typeof t=="number"||t instanceof Number}Ar.number=Wce;function Uce(t){return t instanceof Error}Ar.error=Uce;function Bce(t){return typeof t=="function"}Ar.func=Bce;function $3(t){return Array.isArray(t)}Ar.array=$3;function Vce(t){return $3(t)&&t.every(e=>q3(e))}Ar.stringArray=Vce});var sx=M(Ae=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0});Ae.Message=Ae.NotificationType9=Ae.NotificationType8=Ae.NotificationType7=Ae.NotificationType6=Ae.NotificationType5=Ae.NotificationType4=Ae.NotificationType3=Ae.NotificationType2=Ae.NotificationType1=Ae.NotificationType0=Ae.NotificationType=Ae.RequestType9=Ae.RequestType8=Ae.RequestType7=Ae.RequestType6=Ae.RequestType5=Ae.RequestType4=Ae.RequestType3=Ae.RequestType2=Ae.RequestType1=Ae.RequestType=Ae.RequestType0=Ae.AbstractMessageSignature=Ae.ParameterStructures=Ae.ResponseError=Ae.ErrorCodes=void 0;var tu=kd(),Nk;(function(t){t.ParseError=-32700,t.InvalidRequest=-32600,t.MethodNotFound=-32601,t.InvalidParams=-32602,t.InternalError=-32603,t.jsonrpcReservedErrorRangeStart=-32099,t.serverErrorStart=-32099,t.MessageWriteError=-32099,t.MessageReadError=-32098,t.PendingResponseRejected=-32097,t.ConnectionInactive=-32096,t.ServerNotInitialized=-32002,t.UnknownErrorCode=-32001,t.jsonrpcReservedErrorRangeEnd=-32e3,t.serverErrorEnd=-32e3})(Nk||(Ae.ErrorCodes=Nk={}));var Rp=class extends Error{constructor(e,n,r){super(n),this.code=tu.number(e)?e:Nk.UnknownErrorCode,this.data=r,Object.setPrototypeOf(this,Rp.prototype)}toJson(){let e={code:this.code,message:this.message};return this.data!==void 0&&(e.data=this.data),e}};Ae.ResponseError=Rp;var tr=class{constructor(e){this.kind=e}static is(e){return e===tr.auto||e===tr.byName||e===tr.byPosition}toString(){return this.kind}};Ae.ParameterStructures=tr;tr.auto=new tr("auto");tr.byPosition=new tr("byPosition");tr.byName=new tr("byName");var Gt=class{constructor(e,n){this.method=e,this.numberOfParams=n}get parameterStructures(){return tr.auto}};Ae.AbstractMessageSignature=Gt;var Lk=class extends Gt{constructor(e){super(e,0)}};Ae.RequestType0=Lk;var qk=class extends Gt{constructor(e,n=tr.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};Ae.RequestType=qk;var $k=class extends Gt{constructor(e,n=tr.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};Ae.RequestType1=$k;var jk=class extends Gt{constructor(e){super(e,2)}};Ae.RequestType2=jk;var zk=class extends Gt{constructor(e){super(e,3)}};Ae.RequestType3=zk;var Wk=class extends Gt{constructor(e){super(e,4)}};Ae.RequestType4=Wk;var Uk=class extends Gt{constructor(e){super(e,5)}};Ae.RequestType5=Uk;var Bk=class extends Gt{constructor(e){super(e,6)}};Ae.RequestType6=Bk;var Vk=class extends Gt{constructor(e){super(e,7)}};Ae.RequestType7=Vk;var Hk=class extends Gt{constructor(e){super(e,8)}};Ae.RequestType8=Hk;var Kk=class extends Gt{constructor(e){super(e,9)}};Ae.RequestType9=Kk;var Gk=class extends Gt{constructor(e,n=tr.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};Ae.NotificationType=Gk;var Jk=class extends Gt{constructor(e){super(e,0)}};Ae.NotificationType0=Jk;var Yk=class extends Gt{constructor(e,n=tr.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};Ae.NotificationType1=Yk;var Qk=class extends Gt{constructor(e){super(e,2)}};Ae.NotificationType2=Qk;var Xk=class extends Gt{constructor(e){super(e,3)}};Ae.NotificationType3=Xk;var Zk=class extends Gt{constructor(e){super(e,4)}};Ae.NotificationType4=Zk;var ex=class extends Gt{constructor(e){super(e,5)}};Ae.NotificationType5=ex;var tx=class extends Gt{constructor(e){super(e,6)}};Ae.NotificationType6=tx;var nx=class extends Gt{constructor(e){super(e,7)}};Ae.NotificationType7=nx;var rx=class extends Gt{constructor(e){super(e,8)}};Ae.NotificationType8=rx;var ix=class extends Gt{constructor(e){super(e,9)}};Ae.NotificationType9=ix;var j3;(function(t){function e(i){let s=i;return s&&tu.string(s.method)&&(tu.string(s.id)||tu.number(s.id))}t.isRequest=e;function n(i){let s=i;return s&&tu.string(s.method)&&i.id===void 0}t.isNotification=n;function r(i){let s=i;return s&&(s.result!==void 0||!!s.error)&&(tu.string(s.id)||tu.number(s.id)||s.id===null)}t.isResponse=r})(j3||(Ae.Message=j3={}))});var ax=M(hl=>{"use strict";var z3;Object.defineProperty(hl,"__esModule",{value:!0});hl.LRUCache=hl.LinkedMap=hl.Touch=void 0;var Fr;(function(t){t.None=0,t.First=1,t.AsOld=t.First,t.Last=2,t.AsNew=t.Last})(Fr||(hl.Touch=Fr={}));var Ly=class{constructor(){this[z3]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(e){return this._map.has(e)}get(e,n=Fr.None){let r=this._map.get(e);if(r)return n!==Fr.None&&this.touch(r,n),r.value}set(e,n,r=Fr.None){let i=this._map.get(e);if(i)i.value=n,r!==Fr.None&&this.touch(i,r);else{switch(i={key:e,value:n,next:void 0,previous:void 0},r){case Fr.None:this.addItemLast(i);break;case Fr.First:this.addItemFirst(i);break;case Fr.Last:this.addItemLast(i);break;default:this.addItemLast(i);break}this._map.set(e,i),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){let n=this._map.get(e);if(n)return this._map.delete(e),this.removeItem(n),this._size--,n.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");let e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,n){let r=this._state,i=this._head;for(;i;){if(n?e.bind(n)(i.value,i.key,this):e(i.value,i.key,this),this._state!==r)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){let e=this._state,n=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(n){let i={value:n.key,done:!1};return n=n.next,i}else return{value:void 0,done:!0}}};return r}values(){let e=this._state,n=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(n){let i={value:n.value,done:!1};return n=n.next,i}else return{value:void 0,done:!0}}};return r}entries(){let e=this._state,n=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(n){let i={value:[n.key,n.value],done:!1};return n=n.next,i}else return{value:void 0,done:!0}}};return r}[(z3=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let n=this._head,r=this.size;for(;n&&r>e;)this._map.delete(n.key),n=n.next,r--;this._head=n,this._size=r,n&&(n.previous=void 0),this._state++}addItemFirst(e){if(!this._head&&!this._tail)this._tail=e;else if(this._head)e.next=this._head,this._head.previous=e;else throw new Error("Invalid list");this._head=e,this._state++}addItemLast(e){if(!this._head&&!this._tail)this._head=e;else if(this._tail)e.previous=this._tail,this._tail.next=e;else throw new Error("Invalid list");this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{let n=e.next,r=e.previous;if(!n||!r)throw new Error("Invalid list");n.previous=r,r.next=n}e.next=void 0,e.previous=void 0,this._state++}touch(e,n){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(n!==Fr.First&&n!==Fr.Last)){if(n===Fr.First){if(e===this._head)return;let r=e.next,i=e.previous;e===this._tail?(i.next=void 0,this._tail=i):(r.previous=i,i.next=r),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(n===Fr.Last){if(e===this._tail)return;let r=e.next,i=e.previous;e===this._head?(r.previous=void 0,this._head=r):(r.previous=i,i.next=r),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){let e=[];return this.forEach((n,r)=>{e.push([r,n])}),e}fromJSON(e){this.clear();for(let[n,r]of e)this.set(n,r)}};hl.LinkedMap=Ly;var ox=class extends Ly{constructor(e,n=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,n),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get ratio(){return this._ratio}set ratio(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()}get(e,n=Fr.AsNew){return super.get(e,n)}peek(e){return super.get(e,Fr.None)}set(e,n){return super.set(e,n,Fr.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}};hl.LRUCache=ox});var U3=M(qy=>{"use strict";Object.defineProperty(qy,"__esModule",{value:!0});qy.Disposable=void 0;var W3;(function(t){function e(n){return{dispose:n}}t.create=e})(W3||(qy.Disposable=W3={}))});var fl=M(ux=>{"use strict";Object.defineProperty(ux,"__esModule",{value:!0});var lx;function cx(){if(lx===void 0)throw new Error("No runtime abstraction layer installed");return lx}(function(t){function e(n){if(n===void 0)throw new Error("No runtime abstraction layer provided");lx=n}t.install=e})(cx||(cx={}));ux.default=cx});var Fd=M(Ad=>{"use strict";Object.defineProperty(Ad,"__esModule",{value:!0});Ad.Emitter=Ad.Event=void 0;var Hce=fl(),B3;(function(t){let e={dispose(){}};t.None=function(){return e}})(B3||(Ad.Event=B3={}));var dx=class{add(e,n=null,r){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(n),Array.isArray(r)&&r.push({dispose:()=>this.remove(e,n)})}remove(e,n=null){if(!this._callbacks)return;let r=!1;for(let i=0,s=this._callbacks.length;i<s;i++)if(this._callbacks[i]===e)if(this._contexts[i]===n){this._callbacks.splice(i,1),this._contexts.splice(i,1);return}else r=!0;if(r)throw new Error("When adding a listener with a context, you should remove it with the same context")}invoke(...e){if(!this._callbacks)return[];let n=[],r=this._callbacks.slice(0),i=this._contexts.slice(0);for(let s=0,o=r.length;s<o;s++)try{n.push(r[s].apply(i[s],e))}catch(a){(0,Hce.default)().console.error(a)}return n}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}},xd=class{constructor(e){this._options=e}get event(){return this._event||(this._event=(e,n,r)=>{this._callbacks||(this._callbacks=new dx),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(e,n);let i={dispose:()=>{this._callbacks&&(this._callbacks.remove(e,n),i.dispose=xd._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(r)&&r.push(i),i}),this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}};Ad.Emitter=xd;xd._noop=function(){}});var zy=M(Td=>{"use strict";Object.defineProperty(Td,"__esModule",{value:!0});Td.CancellationTokenSource=Td.CancellationToken=void 0;var Kce=fl(),Gce=kd(),hx=Fd(),$y;(function(t){t.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:hx.Event.None}),t.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:hx.Event.None});function e(n){let r=n;return r&&(r===t.None||r===t.Cancelled||Gce.boolean(r.isCancellationRequested)&&!!r.onCancellationRequested)}t.is=e})($y||(Td.CancellationToken=$y={}));var Jce=Object.freeze(function(t,e){let n=(0,Kce.default)().timer.setTimeout(t.bind(e),0);return{dispose(){n.dispose()}}}),jy=class{constructor(){this._isCancelled=!1}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?Jce:(this._emitter||(this._emitter=new hx.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},fx=class{get token(){return this._token||(this._token=new jy),this._token}cancel(){this._token?this._token.cancel():this._token=$y.Cancelled}dispose(){this._token?this._token instanceof jy&&this._token.dispose():this._token=$y.None}};Td.CancellationTokenSource=fx});var V3=M(Ed=>{"use strict";Object.defineProperty(Ed,"__esModule",{value:!0});Ed.SharedArrayReceiverStrategy=Ed.SharedArraySenderStrategy=void 0;var Yce=zy(),Pp;(function(t){t.Continue=0,t.Cancelled=1})(Pp||(Pp={}));var px=class{constructor(){this.buffers=new Map}enableCancellation(e){if(e.id===null)return;let n=new SharedArrayBuffer(4),r=new Int32Array(n,0,1);r[0]=Pp.Continue,this.buffers.set(e.id,n),e.$cancellationData=n}async sendCancellation(e,n){let r=this.buffers.get(n);if(r===void 0)return;let i=new Int32Array(r,0,1);Atomics.store(i,0,Pp.Cancelled)}cleanup(e){this.buffers.delete(e)}dispose(){this.buffers.clear()}};Ed.SharedArraySenderStrategy=px;var mx=class{constructor(e){this.data=new Int32Array(e,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===Pp.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}},gx=class{constructor(e){this.token=new mx(e)}cancel(){}dispose(){}},bx=class{constructor(){this.kind="request"}createCancellationTokenSource(e){let n=e.$cancellationData;return n===void 0?new Yce.CancellationTokenSource:new gx(n)}};Ed.SharedArrayReceiverStrategy=bx});var vx=M(Wy=>{"use strict";Object.defineProperty(Wy,"__esModule",{value:!0});Wy.Semaphore=void 0;var Qce=fl(),yx=class{constructor(e=1){if(e<=0)throw new Error("Capacity must be greater than 0");this._capacity=e,this._active=0,this._waiting=[]}lock(e){return new Promise((n,r)=>{this._waiting.push({thunk:e,resolve:n,reject:r}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length===0||this._active===this._capacity||(0,Qce.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||this._active===this._capacity)return;let e=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error("To many thunks active");try{let n=e.thunk();n instanceof Promise?n.then(r=>{this._active--,e.resolve(r),this.runNext()},r=>{this._active--,e.reject(r),this.runNext()}):(this._active--,e.resolve(n),this.runNext())}catch(n){this._active--,e.reject(n),this.runNext()}}};Wy.Semaphore=yx});var K3=M(pl=>{"use strict";Object.defineProperty(pl,"__esModule",{value:!0});pl.ReadableStreamMessageReader=pl.AbstractMessageReader=pl.MessageReader=void 0;var _x=fl(),Md=kd(),wx=Fd(),Xce=vx(),H3;(function(t){function e(n){let r=n;return r&&Md.func(r.listen)&&Md.func(r.dispose)&&Md.func(r.onError)&&Md.func(r.onClose)&&Md.func(r.onPartialMessage)}t.is=e})(H3||(pl.MessageReader=H3={}));var Uy=class{constructor(){this.errorEmitter=new wx.Emitter,this.closeEmitter=new wx.Emitter,this.partialMessageEmitter=new wx.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e){this.errorEmitter.fire(this.asError(e))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(e){this.partialMessageEmitter.fire(e)}asError(e){return e instanceof Error?e:new Error(`Reader received error. Reason: ${Md.string(e.message)?e.message:"unknown"}`)}};pl.AbstractMessageReader=Uy;var Sx;(function(t){function e(n){let r,i,s,o=new Map,a,l=new Map;if(n===void 0||typeof n=="string")r=n??"utf-8";else{if(r=n.charset??"utf-8",n.contentDecoder!==void 0&&(s=n.contentDecoder,o.set(s.name,s)),n.contentDecoders!==void 0)for(let c of n.contentDecoders)o.set(c.name,c);if(n.contentTypeDecoder!==void 0&&(a=n.contentTypeDecoder,l.set(a.name,a)),n.contentTypeDecoders!==void 0)for(let c of n.contentTypeDecoders)l.set(c.name,c)}return a===void 0&&(a=(0,_x.default)().applicationJson.decoder,l.set(a.name,a)),{charset:r,contentDecoder:s,contentDecoders:o,contentTypeDecoder:a,contentTypeDecoders:l}}t.fromOptions=e})(Sx||(Sx={}));var Cx=class extends Uy{constructor(e,n){super(),this.readable=e,this.options=Sx.fromOptions(n),this.buffer=(0,_x.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new Xce.Semaphore(1)}set partialMessageTimeout(e){this._partialMessageTimeout=e}get partialMessageTimeout(){return this._partialMessageTimeout}listen(e){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=e;let n=this.readable.onData(r=>{this.onData(r)});return this.readable.onError(r=>this.fireError(r)),this.readable.onClose(()=>this.fireClose()),n}onData(e){try{for(this.buffer.append(e);;){if(this.nextMessageLength===-1){let r=this.buffer.tryReadHeaders(!0);if(!r)return;let i=r.get("content-length");if(!i){this.fireError(new Error(`Header must provide a Content-Length property.
|
|
2
|
+
var Ece=Object.create;var Oy=Object.defineProperty;var Mce=Object.getOwnPropertyDescriptor;var Dce=Object.getOwnPropertyNames;var Ice=Object.getPrototypeOf,Rce=Object.prototype.hasOwnProperty;var ie=(t,e)=>()=>(t&&(e=t(t=0)),e);var M=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),ho=(t,e)=>{for(var n in e)Oy(t,n,{get:e[n],enumerable:!0})},R3=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Dce(e))!Rce.call(t,i)&&i!==n&&Oy(t,i,{get:()=>e[i],enumerable:!(r=Mce(e,i))||r.enumerable});return t};var Gn=(t,e,n)=>(n=t!=null?Ece(Ice(t)):{},R3(e||!t||!t.__esModule?Oy(n,"default",{value:t,enumerable:!0}):n,t)),pn=t=>R3(Oy({},"__esModule",{value:!0}),t);var P3=M((TGe,Pce)=>{Pce.exports={name:"@astrojs/language-server",version:"2.16.6",author:"withastro",license:"MIT",repository:{type:"git",url:"git+https://github.com/withastro/astro.git",directory:"packages/language-tools/language-server"},type:"commonjs",main:"dist/index.js",files:["bin","dist/**/*.js","dist/**/*.d.ts","types/**/*.d.ts"],bin:{"astro-ls":"./bin/nodeServer.js"},scripts:{build:"tsc",dev:"tsc --watch",test:'astro-scripts test "**/*.test.ts" --teardown-test ./test/misc/teardown.ts --tsx true --setup ./test/setup.js',"test:match":"pnpm run test --match"},dependencies:{"@astrojs/compiler":"^2.13.1","@astrojs/yaml2ts":"^0.2.3","@jridgewell/sourcemap-codec":"^1.5.5","@volar/kit":"~2.4.28","@volar/language-core":"~2.4.28","@volar/language-server":"~2.4.28","@volar/language-service":"~2.4.28","muggle-string":"^0.4.1",tinyglobby:"^0.2.15","volar-service-css":"0.0.70","volar-service-emmet":"0.0.70","volar-service-html":"0.0.70","volar-service-prettier":"0.0.70","volar-service-typescript":"0.0.70","volar-service-typescript-twoslash-queries":"0.0.70","volar-service-yaml":"0.0.70","vscode-html-languageservice":"^5.6.2","vscode-uri":"^3.1.0"},devDependencies:{"@types/node":"^20.9.0","@volar/test-utils":"~2.4.28","@volar/typescript":"~2.4.28","astro-scripts":"workspace:*",tsx:"^4.21.0",typescript:"^5.9.3","vscode-languageserver-protocol":"^3.17.5","vscode-languageserver-textdocument":"^1.0.12"},peerDependencies:{prettier:"^3.0.0","prettier-plugin-astro":">=0.11.0"},peerDependenciesMeta:{prettier:{optional:!0},"prettier-plugin-astro":{optional:!0}}}});var Ny=M(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.thenable=Nn.typedArray=Nn.stringArray=Nn.array=Nn.func=Nn.error=Nn.number=Nn.string=Nn.boolean=void 0;function Oce(t){return t===!0||t===!1}Nn.boolean=Oce;function O3(t){return typeof t=="string"||t instanceof String}Nn.string=O3;function Nce(t){return typeof t=="number"||t instanceof Number}Nn.number=Nce;function Lce(t){return t instanceof Error}Nn.error=Lce;function N3(t){return typeof t=="function"}Nn.func=N3;function L3(t){return Array.isArray(t)}Nn.array=L3;function qce(t){return L3(t)&&t.every(e=>O3(e))}Nn.stringArray=qce;function $ce(t,e){return Array.isArray(t)&&t.every(e)}Nn.typedArray=$ce;function jce(t){return t&&N3(t.then)}Nn.thenable=jce});var kd=M(Ar=>{"use strict";Object.defineProperty(Ar,"__esModule",{value:!0});Ar.stringArray=Ar.array=Ar.func=Ar.error=Ar.number=Ar.string=Ar.boolean=void 0;function zce(t){return t===!0||t===!1}Ar.boolean=zce;function q3(t){return typeof t=="string"||t instanceof String}Ar.string=q3;function Wce(t){return typeof t=="number"||t instanceof Number}Ar.number=Wce;function Uce(t){return t instanceof Error}Ar.error=Uce;function Bce(t){return typeof t=="function"}Ar.func=Bce;function $3(t){return Array.isArray(t)}Ar.array=$3;function Vce(t){return $3(t)&&t.every(e=>q3(e))}Ar.stringArray=Vce});var sx=M(Ae=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0});Ae.Message=Ae.NotificationType9=Ae.NotificationType8=Ae.NotificationType7=Ae.NotificationType6=Ae.NotificationType5=Ae.NotificationType4=Ae.NotificationType3=Ae.NotificationType2=Ae.NotificationType1=Ae.NotificationType0=Ae.NotificationType=Ae.RequestType9=Ae.RequestType8=Ae.RequestType7=Ae.RequestType6=Ae.RequestType5=Ae.RequestType4=Ae.RequestType3=Ae.RequestType2=Ae.RequestType1=Ae.RequestType=Ae.RequestType0=Ae.AbstractMessageSignature=Ae.ParameterStructures=Ae.ResponseError=Ae.ErrorCodes=void 0;var tu=kd(),Nk;(function(t){t.ParseError=-32700,t.InvalidRequest=-32600,t.MethodNotFound=-32601,t.InvalidParams=-32602,t.InternalError=-32603,t.jsonrpcReservedErrorRangeStart=-32099,t.serverErrorStart=-32099,t.MessageWriteError=-32099,t.MessageReadError=-32098,t.PendingResponseRejected=-32097,t.ConnectionInactive=-32096,t.ServerNotInitialized=-32002,t.UnknownErrorCode=-32001,t.jsonrpcReservedErrorRangeEnd=-32e3,t.serverErrorEnd=-32e3})(Nk||(Ae.ErrorCodes=Nk={}));var Rp=class extends Error{constructor(e,n,r){super(n),this.code=tu.number(e)?e:Nk.UnknownErrorCode,this.data=r,Object.setPrototypeOf(this,Rp.prototype)}toJson(){let e={code:this.code,message:this.message};return this.data!==void 0&&(e.data=this.data),e}};Ae.ResponseError=Rp;var tr=class{constructor(e){this.kind=e}static is(e){return e===tr.auto||e===tr.byName||e===tr.byPosition}toString(){return this.kind}};Ae.ParameterStructures=tr;tr.auto=new tr("auto");tr.byPosition=new tr("byPosition");tr.byName=new tr("byName");var Gt=class{constructor(e,n){this.method=e,this.numberOfParams=n}get parameterStructures(){return tr.auto}};Ae.AbstractMessageSignature=Gt;var Lk=class extends Gt{constructor(e){super(e,0)}};Ae.RequestType0=Lk;var qk=class extends Gt{constructor(e,n=tr.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};Ae.RequestType=qk;var $k=class extends Gt{constructor(e,n=tr.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};Ae.RequestType1=$k;var jk=class extends Gt{constructor(e){super(e,2)}};Ae.RequestType2=jk;var zk=class extends Gt{constructor(e){super(e,3)}};Ae.RequestType3=zk;var Wk=class extends Gt{constructor(e){super(e,4)}};Ae.RequestType4=Wk;var Uk=class extends Gt{constructor(e){super(e,5)}};Ae.RequestType5=Uk;var Bk=class extends Gt{constructor(e){super(e,6)}};Ae.RequestType6=Bk;var Vk=class extends Gt{constructor(e){super(e,7)}};Ae.RequestType7=Vk;var Hk=class extends Gt{constructor(e){super(e,8)}};Ae.RequestType8=Hk;var Kk=class extends Gt{constructor(e){super(e,9)}};Ae.RequestType9=Kk;var Gk=class extends Gt{constructor(e,n=tr.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};Ae.NotificationType=Gk;var Jk=class extends Gt{constructor(e){super(e,0)}};Ae.NotificationType0=Jk;var Yk=class extends Gt{constructor(e,n=tr.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};Ae.NotificationType1=Yk;var Qk=class extends Gt{constructor(e){super(e,2)}};Ae.NotificationType2=Qk;var Xk=class extends Gt{constructor(e){super(e,3)}};Ae.NotificationType3=Xk;var Zk=class extends Gt{constructor(e){super(e,4)}};Ae.NotificationType4=Zk;var ex=class extends Gt{constructor(e){super(e,5)}};Ae.NotificationType5=ex;var tx=class extends Gt{constructor(e){super(e,6)}};Ae.NotificationType6=tx;var nx=class extends Gt{constructor(e){super(e,7)}};Ae.NotificationType7=nx;var rx=class extends Gt{constructor(e){super(e,8)}};Ae.NotificationType8=rx;var ix=class extends Gt{constructor(e){super(e,9)}};Ae.NotificationType9=ix;var j3;(function(t){function e(i){let s=i;return s&&tu.string(s.method)&&(tu.string(s.id)||tu.number(s.id))}t.isRequest=e;function n(i){let s=i;return s&&tu.string(s.method)&&i.id===void 0}t.isNotification=n;function r(i){let s=i;return s&&(s.result!==void 0||!!s.error)&&(tu.string(s.id)||tu.number(s.id)||s.id===null)}t.isResponse=r})(j3||(Ae.Message=j3={}))});var ax=M(hl=>{"use strict";var z3;Object.defineProperty(hl,"__esModule",{value:!0});hl.LRUCache=hl.LinkedMap=hl.Touch=void 0;var Fr;(function(t){t.None=0,t.First=1,t.AsOld=t.First,t.Last=2,t.AsNew=t.Last})(Fr||(hl.Touch=Fr={}));var Ly=class{constructor(){this[z3]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(e){return this._map.has(e)}get(e,n=Fr.None){let r=this._map.get(e);if(r)return n!==Fr.None&&this.touch(r,n),r.value}set(e,n,r=Fr.None){let i=this._map.get(e);if(i)i.value=n,r!==Fr.None&&this.touch(i,r);else{switch(i={key:e,value:n,next:void 0,previous:void 0},r){case Fr.None:this.addItemLast(i);break;case Fr.First:this.addItemFirst(i);break;case Fr.Last:this.addItemLast(i);break;default:this.addItemLast(i);break}this._map.set(e,i),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){let n=this._map.get(e);if(n)return this._map.delete(e),this.removeItem(n),this._size--,n.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");let e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,n){let r=this._state,i=this._head;for(;i;){if(n?e.bind(n)(i.value,i.key,this):e(i.value,i.key,this),this._state!==r)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){let e=this._state,n=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(n){let i={value:n.key,done:!1};return n=n.next,i}else return{value:void 0,done:!0}}};return r}values(){let e=this._state,n=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(n){let i={value:n.value,done:!1};return n=n.next,i}else return{value:void 0,done:!0}}};return r}entries(){let e=this._state,n=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(n){let i={value:[n.key,n.value],done:!1};return n=n.next,i}else return{value:void 0,done:!0}}};return r}[(z3=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let n=this._head,r=this.size;for(;n&&r>e;)this._map.delete(n.key),n=n.next,r--;this._head=n,this._size=r,n&&(n.previous=void 0),this._state++}addItemFirst(e){if(!this._head&&!this._tail)this._tail=e;else if(this._head)e.next=this._head,this._head.previous=e;else throw new Error("Invalid list");this._head=e,this._state++}addItemLast(e){if(!this._head&&!this._tail)this._head=e;else if(this._tail)e.previous=this._tail,this._tail.next=e;else throw new Error("Invalid list");this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{let n=e.next,r=e.previous;if(!n||!r)throw new Error("Invalid list");n.previous=r,r.next=n}e.next=void 0,e.previous=void 0,this._state++}touch(e,n){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(n!==Fr.First&&n!==Fr.Last)){if(n===Fr.First){if(e===this._head)return;let r=e.next,i=e.previous;e===this._tail?(i.next=void 0,this._tail=i):(r.previous=i,i.next=r),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(n===Fr.Last){if(e===this._tail)return;let r=e.next,i=e.previous;e===this._head?(r.previous=void 0,this._head=r):(r.previous=i,i.next=r),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){let e=[];return this.forEach((n,r)=>{e.push([r,n])}),e}fromJSON(e){this.clear();for(let[n,r]of e)this.set(n,r)}};hl.LinkedMap=Ly;var ox=class extends Ly{constructor(e,n=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,n),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get ratio(){return this._ratio}set ratio(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()}get(e,n=Fr.AsNew){return super.get(e,n)}peek(e){return super.get(e,Fr.None)}set(e,n){return super.set(e,n,Fr.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}};hl.LRUCache=ox});var U3=M(qy=>{"use strict";Object.defineProperty(qy,"__esModule",{value:!0});qy.Disposable=void 0;var W3;(function(t){function e(n){return{dispose:n}}t.create=e})(W3||(qy.Disposable=W3={}))});var fl=M(ux=>{"use strict";Object.defineProperty(ux,"__esModule",{value:!0});var lx;function cx(){if(lx===void 0)throw new Error("No runtime abstraction layer installed");return lx}(function(t){function e(n){if(n===void 0)throw new Error("No runtime abstraction layer provided");lx=n}t.install=e})(cx||(cx={}));ux.default=cx});var Fd=M(Ad=>{"use strict";Object.defineProperty(Ad,"__esModule",{value:!0});Ad.Emitter=Ad.Event=void 0;var Hce=fl(),B3;(function(t){let e={dispose(){}};t.None=function(){return e}})(B3||(Ad.Event=B3={}));var dx=class{add(e,n=null,r){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(n),Array.isArray(r)&&r.push({dispose:()=>this.remove(e,n)})}remove(e,n=null){if(!this._callbacks)return;let r=!1;for(let i=0,s=this._callbacks.length;i<s;i++)if(this._callbacks[i]===e)if(this._contexts[i]===n){this._callbacks.splice(i,1),this._contexts.splice(i,1);return}else r=!0;if(r)throw new Error("When adding a listener with a context, you should remove it with the same context")}invoke(...e){if(!this._callbacks)return[];let n=[],r=this._callbacks.slice(0),i=this._contexts.slice(0);for(let s=0,o=r.length;s<o;s++)try{n.push(r[s].apply(i[s],e))}catch(a){(0,Hce.default)().console.error(a)}return n}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}},xd=class{constructor(e){this._options=e}get event(){return this._event||(this._event=(e,n,r)=>{this._callbacks||(this._callbacks=new dx),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(e,n);let i={dispose:()=>{this._callbacks&&(this._callbacks.remove(e,n),i.dispose=xd._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(r)&&r.push(i),i}),this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}};Ad.Emitter=xd;xd._noop=function(){}});var zy=M(Td=>{"use strict";Object.defineProperty(Td,"__esModule",{value:!0});Td.CancellationTokenSource=Td.CancellationToken=void 0;var Kce=fl(),Gce=kd(),hx=Fd(),$y;(function(t){t.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:hx.Event.None}),t.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:hx.Event.None});function e(n){let r=n;return r&&(r===t.None||r===t.Cancelled||Gce.boolean(r.isCancellationRequested)&&!!r.onCancellationRequested)}t.is=e})($y||(Td.CancellationToken=$y={}));var Jce=Object.freeze(function(t,e){let n=(0,Kce.default)().timer.setTimeout(t.bind(e),0);return{dispose(){n.dispose()}}}),jy=class{constructor(){this._isCancelled=!1}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?Jce:(this._emitter||(this._emitter=new hx.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},fx=class{get token(){return this._token||(this._token=new jy),this._token}cancel(){this._token?this._token.cancel():this._token=$y.Cancelled}dispose(){this._token?this._token instanceof jy&&this._token.dispose():this._token=$y.None}};Td.CancellationTokenSource=fx});var V3=M(Ed=>{"use strict";Object.defineProperty(Ed,"__esModule",{value:!0});Ed.SharedArrayReceiverStrategy=Ed.SharedArraySenderStrategy=void 0;var Yce=zy(),Pp;(function(t){t.Continue=0,t.Cancelled=1})(Pp||(Pp={}));var px=class{constructor(){this.buffers=new Map}enableCancellation(e){if(e.id===null)return;let n=new SharedArrayBuffer(4),r=new Int32Array(n,0,1);r[0]=Pp.Continue,this.buffers.set(e.id,n),e.$cancellationData=n}async sendCancellation(e,n){let r=this.buffers.get(n);if(r===void 0)return;let i=new Int32Array(r,0,1);Atomics.store(i,0,Pp.Cancelled)}cleanup(e){this.buffers.delete(e)}dispose(){this.buffers.clear()}};Ed.SharedArraySenderStrategy=px;var mx=class{constructor(e){this.data=new Int32Array(e,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===Pp.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}},gx=class{constructor(e){this.token=new mx(e)}cancel(){}dispose(){}},bx=class{constructor(){this.kind="request"}createCancellationTokenSource(e){let n=e.$cancellationData;return n===void 0?new Yce.CancellationTokenSource:new gx(n)}};Ed.SharedArrayReceiverStrategy=bx});var vx=M(Wy=>{"use strict";Object.defineProperty(Wy,"__esModule",{value:!0});Wy.Semaphore=void 0;var Qce=fl(),yx=class{constructor(e=1){if(e<=0)throw new Error("Capacity must be greater than 0");this._capacity=e,this._active=0,this._waiting=[]}lock(e){return new Promise((n,r)=>{this._waiting.push({thunk:e,resolve:n,reject:r}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length===0||this._active===this._capacity||(0,Qce.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||this._active===this._capacity)return;let e=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error("To many thunks active");try{let n=e.thunk();n instanceof Promise?n.then(r=>{this._active--,e.resolve(r),this.runNext()},r=>{this._active--,e.reject(r),this.runNext()}):(this._active--,e.resolve(n),this.runNext())}catch(n){this._active--,e.reject(n),this.runNext()}}};Wy.Semaphore=yx});var K3=M(pl=>{"use strict";Object.defineProperty(pl,"__esModule",{value:!0});pl.ReadableStreamMessageReader=pl.AbstractMessageReader=pl.MessageReader=void 0;var _x=fl(),Md=kd(),wx=Fd(),Xce=vx(),H3;(function(t){function e(n){let r=n;return r&&Md.func(r.listen)&&Md.func(r.dispose)&&Md.func(r.onError)&&Md.func(r.onClose)&&Md.func(r.onPartialMessage)}t.is=e})(H3||(pl.MessageReader=H3={}));var Uy=class{constructor(){this.errorEmitter=new wx.Emitter,this.closeEmitter=new wx.Emitter,this.partialMessageEmitter=new wx.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e){this.errorEmitter.fire(this.asError(e))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(e){this.partialMessageEmitter.fire(e)}asError(e){return e instanceof Error?e:new Error(`Reader received error. Reason: ${Md.string(e.message)?e.message:"unknown"}`)}};pl.AbstractMessageReader=Uy;var Sx;(function(t){function e(n){let r,i,s,o=new Map,a,l=new Map;if(n===void 0||typeof n=="string")r=n??"utf-8";else{if(r=n.charset??"utf-8",n.contentDecoder!==void 0&&(s=n.contentDecoder,o.set(s.name,s)),n.contentDecoders!==void 0)for(let c of n.contentDecoders)o.set(c.name,c);if(n.contentTypeDecoder!==void 0&&(a=n.contentTypeDecoder,l.set(a.name,a)),n.contentTypeDecoders!==void 0)for(let c of n.contentTypeDecoders)l.set(c.name,c)}return a===void 0&&(a=(0,_x.default)().applicationJson.decoder,l.set(a.name,a)),{charset:r,contentDecoder:s,contentDecoders:o,contentTypeDecoder:a,contentTypeDecoders:l}}t.fromOptions=e})(Sx||(Sx={}));var Cx=class extends Uy{constructor(e,n){super(),this.readable=e,this.options=Sx.fromOptions(n),this.buffer=(0,_x.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new Xce.Semaphore(1)}set partialMessageTimeout(e){this._partialMessageTimeout=e}get partialMessageTimeout(){return this._partialMessageTimeout}listen(e){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=e;let n=this.readable.onData(r=>{this.onData(r)});return this.readable.onError(r=>this.fireError(r)),this.readable.onClose(()=>this.fireClose()),n}onData(e){try{for(this.buffer.append(e);;){if(this.nextMessageLength===-1){let r=this.buffer.tryReadHeaders(!0);if(!r)return;let i=r.get("content-length");if(!i){this.fireError(new Error(`Header must provide a Content-Length property.
|
|
3
3
|
${JSON.stringify(Object.fromEntries(r))}`));return}let s=parseInt(i);if(isNaN(s)){this.fireError(new Error(`Content-Length value must be a number. Got ${i}`));return}this.nextMessageLength=s}let n=this.buffer.tryReadBody(this.nextMessageLength);if(n===void 0){this.setPartialMessageTimer();return}this.clearPartialMessageTimer(),this.nextMessageLength=-1,this.readSemaphore.lock(async()=>{let r=this.options.contentDecoder!==void 0?await this.options.contentDecoder.decode(n):n,i=await this.options.contentTypeDecoder.decode(r,this.options);this.callback(i)}).catch(r=>{this.fireError(r)})}}catch(n){this.fireError(n)}}clearPartialMessageTimer(){this.partialMessageTimer&&(this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),!(this._partialMessageTimeout<=0)&&(this.partialMessageTimer=(0,_x.default)().timer.setTimeout((e,n)=>{this.partialMessageTimer=void 0,e===this.messageToken&&(this.firePartialMessage({messageToken:e,waitingTime:n}),this.setPartialMessageTimer())},this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout))}};pl.ReadableStreamMessageReader=Cx});var X3=M(ml=>{"use strict";Object.defineProperty(ml,"__esModule",{value:!0});ml.WriteableStreamMessageWriter=ml.AbstractMessageWriter=ml.MessageWriter=void 0;var G3=fl(),Op=kd(),Zce=vx(),J3=Fd(),eue="Content-Length: ",Y3=`\r
|
|
4
4
|
`,Q3;(function(t){function e(n){let r=n;return r&&Op.func(r.dispose)&&Op.func(r.onClose)&&Op.func(r.onError)&&Op.func(r.write)}t.is=e})(Q3||(ml.MessageWriter=Q3={}));var By=class{constructor(){this.errorEmitter=new J3.Emitter,this.closeEmitter=new J3.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e,n,r){this.errorEmitter.fire([this.asError(e),n,r])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}asError(e){return e instanceof Error?e:new Error(`Writer received error. Reason: ${Op.string(e.message)?e.message:"unknown"}`)}};ml.AbstractMessageWriter=By;var kx;(function(t){function e(n){return n===void 0||typeof n=="string"?{charset:n??"utf-8",contentTypeEncoder:(0,G3.default)().applicationJson.encoder}:{charset:n.charset??"utf-8",contentEncoder:n.contentEncoder,contentTypeEncoder:n.contentTypeEncoder??(0,G3.default)().applicationJson.encoder}}t.fromOptions=e})(kx||(kx={}));var xx=class extends By{constructor(e,n){super(),this.writable=e,this.options=kx.fromOptions(n),this.errorCount=0,this.writeSemaphore=new Zce.Semaphore(1),this.writable.onError(r=>this.fireError(r)),this.writable.onClose(()=>this.fireClose())}async write(e){return this.writeSemaphore.lock(async()=>this.options.contentTypeEncoder.encode(e,this.options).then(r=>this.options.contentEncoder!==void 0?this.options.contentEncoder.encode(r):r).then(r=>{let i=[];return i.push(eue,r.byteLength.toString(),Y3),i.push(Y3),this.doWrite(e,i,r)},r=>{throw this.fireError(r),r}))}async doWrite(e,n,r){try{return await this.writable.write(n.join(""),"ascii"),this.writable.write(r)}catch(i){return this.handleError(i,e),Promise.reject(i)}}handleError(e,n){this.errorCount++,this.fireError(e,n,this.errorCount)}end(){this.writable.end()}};ml.WriteableStreamMessageWriter=xx});var Z3=M(Vy=>{"use strict";Object.defineProperty(Vy,"__esModule",{value:!0});Vy.AbstractMessageBuffer=void 0;var tue=13,nue=10,rue=`\r
|
|
5
5
|
`,Ax=class{constructor(e="utf-8"){this._encoding=e,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(e){let n=typeof e=="string"?this.fromString(e,this._encoding):e;this._chunks.push(n),this._totalLength+=n.byteLength}tryReadHeaders(e=!1){if(this._chunks.length===0)return;let n=0,r=0,i=0,s=0;e:for(;r<this._chunks.length;){let c=this._chunks[r];i=0;t:for(;i<c.length;){switch(c[i]){case tue:switch(n){case 0:n=1;break;case 2:n=3;break;default:n=0}break;case nue:switch(n){case 1:n=2;break;case 3:n=4,i++;break e;default:n=0}break;default:n=0}i++}s+=c.byteLength,r++}if(n!==4)return;let o=this._read(s+i),a=new Map,l=this.toString(o,"ascii").split(rue);if(l.length<2)return a;for(let c=0;c<l.length-2;c++){let u=l[c],d=u.indexOf(":");if(d===-1)throw new Error(`Message header must separate key and value using ':'
|
|
@@ -104,7 +104,7 @@ ${c}${v}${n}${f}`}function Rve(t,e,n,r){let{type:i,value:s}=t,{actualString:o,im
|
|
|
104
104
|
`)||u&&/[[\]{},]/.test(s))return ch(s,e);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(s))return a||u||!s.includes(`
|
|
105
105
|
`)?ch(s,e):zw(t,e,n,r);if(!a&&!u&&i!==js.Scalar.PLAIN&&s.includes(`
|
|
106
106
|
`))return zw(t,e,n,r);if(Uw(s)){if(l==="")return e.forceBlockIndent=!0,zw(t,e,n,r);if(a&&l===c)return ch(s,e)}let d=s.replace(/\n+/g,`$&
|
|
107
|
-
${l}`);if(o){let h=p=>p.default&&p.tag!=="tag:yaml.org,2002:str"&&p.test?.test(d),{compat:f,tags:m}=e.doc.schema;if(m.some(h)||f?.some(h))return ch(s,e)}return a?d:Nl.foldFlowLines(d,l,Nl.FOLD_FLOW,Ww(e,!1))}function Pve(t,e,n,r){let{implicitKey:i,inFlow:s}=e,o=typeof t.value=="string"?t:Object.assign({},t,{value:String(t.value)}),{type:a}=t;a!==js.Scalar.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(a=js.Scalar.QUOTE_DOUBLE);let l=u=>{switch(u){case js.Scalar.BLOCK_FOLDED:case js.Scalar.BLOCK_LITERAL:return i||s?ch(o.value,e):zw(o,e,n,r);case js.Scalar.QUOTE_DOUBLE:return pm(o.value,e);case js.Scalar.QUOTE_SINGLE:return eE(o.value,e);case js.Scalar.PLAIN:return Rve(o,e,n,r);default:return null}},c=l(a);if(c===null){let{defaultKeyType:u,defaultStringType:d}=e.options,h=i&&u||d;if(c=l(h),c===null)throw new Error(`Unsupported default string type ${h}`)}return c}G7.stringifyString=Pve});var gm=M(nE=>{"use strict";var Ove=Pw(),Ll=ht(),Nve=hm(),Lve=mm();function qve(t,e){let n=Object.assign({blockQuote:!0,commentString:Nve.stringifyComment,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},t.schema.toStringOptions,e),r;switch(n.collectionStyle){case"block":r=!1;break;case"flow":r=!0;break;default:r=null}return{anchors:new Set,doc:t,flowCollectionPadding:n.flowCollectionPadding?" ":"",indent:"",indentStep:typeof n.indent=="number"?" ".repeat(n.indent):" ",inFlow:r,options:n}}function $ve(t,e){if(e.tag){let i=t.filter(s=>s.tag===e.tag);if(i.length>0)return i.find(s=>s.format===e.format)??i[0]}let n,r;if(Ll.isScalar(e)){r=e.value;let i=t.filter(s=>s.identify?.(r));if(i.length>1){let s=i.filter(o=>o.test);s.length>0&&(i=s)}n=i.find(s=>s.format===e.format)??i.find(s=>!s.format)}else r=e,n=t.find(i=>i.nodeClass&&r instanceof i.nodeClass);if(!n){let i=r?.constructor?.name??(r===null?"null":typeof r);throw new Error(`Tag not resolved for ${i} value`)}return n}function jve(t,e,{anchors:n,doc:r}){if(!r.directives)return"";let i=[],s=(Ll.isScalar(t)||Ll.isCollection(t))&&t.anchor;s&&Ove.anchorIsValid(s)&&(n.add(s),i.push(`&${s}`));let o=t.tag??(e.default?null:e.tag);return o&&i.push(r.directives.tagString(o)),i.join(" ")}function zve(t,e,n,r){if(Ll.isPair(t))return t.toString(e,n,r);if(Ll.isAlias(t)){if(e.doc.directives)return t.toString(e);if(e.resolvedAliases?.has(t))throw new TypeError("Cannot stringify circular structure without alias nodes");e.resolvedAliases?e.resolvedAliases.add(t):e.resolvedAliases=new Set([t]),t=t.resolve(e.doc)}let i,s=Ll.isNode(t)?t:e.doc.createNode(t,{onTagObj:l=>i=l});i??(i=$ve(e.doc.schema.tags,s));let o=jve(s,i,e);o.length>0&&(e.indentAtStart=(e.indentAtStart??0)+o.length+1);let a=typeof i.stringify=="function"?i.stringify(s,e,n,r):Ll.isScalar(s)?Lve.stringifyString(s,e,n,r):s.toString(e,n,r);return o?Ll.isScalar(s)||a[0]==="{"||a[0]==="["?`${o} ${a}`:`${o}
|
|
107
|
+
${l}`);if(o){let h=p=>p.default&&p.tag!=="tag:yaml.org,2002:str"&&p.test?.test(d),{compat:f,tags:m}=e.doc.schema;if(m.some(h)||f?.some(h))return ch(s,e)}return a?d:Nl.foldFlowLines(d,l,Nl.FOLD_FLOW,Ww(e,!1))}function Pve(t,e,n,r){let{implicitKey:i,inFlow:s}=e,o=typeof t.value=="string"?t:Object.assign({},t,{value:String(t.value)}),{type:a}=t;a!==js.Scalar.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(a=js.Scalar.QUOTE_DOUBLE);let l=u=>{switch(u){case js.Scalar.BLOCK_FOLDED:case js.Scalar.BLOCK_LITERAL:return i||s?ch(o.value,e):zw(o,e,n,r);case js.Scalar.QUOTE_DOUBLE:return pm(o.value,e);case js.Scalar.QUOTE_SINGLE:return eE(o.value,e);case js.Scalar.PLAIN:return Rve(o,e,n,r);default:return null}},c=l(a);if(c===null){let{defaultKeyType:u,defaultStringType:d}=e.options,h=i&&u||d;if(c=l(h),c===null)throw new Error(`Unsupported default string type ${h}`)}return c}G7.stringifyString=Pve});var gm=M(nE=>{"use strict";var Ove=Pw(),Ll=ht(),Nve=hm(),Lve=mm();function qve(t,e){let n=Object.assign({blockQuote:!0,commentString:Nve.stringifyComment,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,trailingComma:!1,trueStr:"true",verifyAliasOrder:!0},t.schema.toStringOptions,e),r;switch(n.collectionStyle){case"block":r=!1;break;case"flow":r=!0;break;default:r=null}return{anchors:new Set,doc:t,flowCollectionPadding:n.flowCollectionPadding?" ":"",indent:"",indentStep:typeof n.indent=="number"?" ".repeat(n.indent):" ",inFlow:r,options:n}}function $ve(t,e){if(e.tag){let i=t.filter(s=>s.tag===e.tag);if(i.length>0)return i.find(s=>s.format===e.format)??i[0]}let n,r;if(Ll.isScalar(e)){r=e.value;let i=t.filter(s=>s.identify?.(r));if(i.length>1){let s=i.filter(o=>o.test);s.length>0&&(i=s)}n=i.find(s=>s.format===e.format)??i.find(s=>!s.format)}else r=e,n=t.find(i=>i.nodeClass&&r instanceof i.nodeClass);if(!n){let i=r?.constructor?.name??(r===null?"null":typeof r);throw new Error(`Tag not resolved for ${i} value`)}return n}function jve(t,e,{anchors:n,doc:r}){if(!r.directives)return"";let i=[],s=(Ll.isScalar(t)||Ll.isCollection(t))&&t.anchor;s&&Ove.anchorIsValid(s)&&(n.add(s),i.push(`&${s}`));let o=t.tag??(e.default?null:e.tag);return o&&i.push(r.directives.tagString(o)),i.join(" ")}function zve(t,e,n,r){if(Ll.isPair(t))return t.toString(e,n,r);if(Ll.isAlias(t)){if(e.doc.directives)return t.toString(e);if(e.resolvedAliases?.has(t))throw new TypeError("Cannot stringify circular structure without alias nodes");e.resolvedAliases?e.resolvedAliases.add(t):e.resolvedAliases=new Set([t]),t=t.resolve(e.doc)}let i,s=Ll.isNode(t)?t:e.doc.createNode(t,{onTagObj:l=>i=l});i??(i=$ve(e.doc.schema.tags,s));let o=jve(s,i,e);o.length>0&&(e.indentAtStart=(e.indentAtStart??0)+o.length+1);let a=typeof i.stringify=="function"?i.stringify(s,e,n,r):Ll.isScalar(s)?Lve.stringifyString(s,e,n,r):s.toString(e,n,r);return o?Ll.isScalar(s)||a[0]==="{"||a[0]==="["?`${o} ${a}`:`${o}
|
|
108
108
|
${e.indent}${a}`:a}nE.createStringifyContext=qve;nE.stringify=zve});var X7=M(Q7=>{"use strict";var _a=ht(),J7=$n(),Y7=gm(),bm=hm();function Wve({key:t,value:e},n,r,i){let{allNullValues:s,doc:o,indent:a,indentStep:l,options:{commentString:c,indentSeq:u,simpleKeys:d}}=n,h=_a.isNode(t)&&t.comment||null;if(d){if(h)throw new Error("With simple keys, key nodes cannot have comments");if(_a.isCollection(t)||!_a.isNode(t)&&typeof t=="object"){let C="With simple keys, collection cannot be used as a key value";throw new Error(C)}}let f=!d&&(!t||h&&e==null&&!n.inFlow||_a.isCollection(t)||(_a.isScalar(t)?t.type===J7.Scalar.BLOCK_FOLDED||t.type===J7.Scalar.BLOCK_LITERAL:typeof t=="object"));n=Object.assign({},n,{allNullValues:!1,implicitKey:!f&&(d||!s),indent:a+l});let m=!1,p=!1,y=Y7.stringify(t,n,()=>m=!0,()=>p=!0);if(!f&&!n.inFlow&&y.length>1024){if(d)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");f=!0}if(n.inFlow){if(s||e==null)return m&&r&&r(),y===""?"?":f?`? ${y}`:y}else if(s&&!d||e==null&&f)return y=`? ${y}`,h&&!m?y+=bm.lineComment(y,n.indent,c(h)):p&&i&&i(),y;m&&(h=null),f?(h&&(y+=bm.lineComment(y,n.indent,c(h))),y=`? ${y}
|
|
109
109
|
${a}:`):(y=`${y}:`,h&&(y+=bm.lineComment(y,n.indent,c(h))));let w,v,b;_a.isNode(e)?(w=!!e.spaceBefore,v=e.commentBefore,b=e.comment):(w=!1,v=null,b=null,e&&typeof e=="object"&&(e=o.createNode(e))),n.implicitKey=!1,!f&&!h&&_a.isScalar(e)&&(n.indentAtStart=y.length+1),p=!1,!u&&l.length>=2&&!n.inFlow&&!f&&_a.isSeq(e)&&!e.flow&&!e.tag&&!e.anchor&&(n.indent=n.indent.substring(2));let S=!1,k=Y7.stringify(e,n,()=>S=!0,()=>p=!0),E=" ";if(h||w||v){if(E=w?`
|
|
110
110
|
`:"",v){let C=c(v);E+=`
|
|
@@ -118,8 +118,8 @@ ${n.indent}`)}}else(k===""||k[0]===`
|
|
|
118
118
|
`)&&(E="");return y+=E+k,n.inFlow?S&&r&&r():b&&!S?y+=bm.lineComment(y,n.indent,c(b)):p&&i&&i(),y}Q7.stringifyPair=Wve});var iE=M(rE=>{"use strict";var Z7=require("process");function Uve(t,...e){t==="debug"&&console.log(...e)}function Bve(t,e){(t==="debug"||t==="warn")&&(typeof Z7.emitWarning=="function"?Z7.emitWarning(e):console.warn(e))}rE.debug=Uve;rE.warn=Bve});var Kw=M(Hw=>{"use strict";var ym=ht(),eU=$n(),Bw="<<",Vw={identify:t=>t===Bw||typeof t=="symbol"&&t.description===Bw,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new eU.Scalar(Symbol(Bw)),{addToJSMap:tU}),stringify:()=>Bw},Vve=(t,e)=>(Vw.identify(e)||ym.isScalar(e)&&(!e.type||e.type===eU.Scalar.PLAIN)&&Vw.identify(e.value))&&t?.doc.schema.tags.some(n=>n.tag===Vw.tag&&n.default);function tU(t,e,n){if(n=t&&ym.isAlias(n)?n.resolve(t.doc):n,ym.isSeq(n))for(let r of n.items)sE(t,e,r);else if(Array.isArray(n))for(let r of n)sE(t,e,r);else sE(t,e,n)}function sE(t,e,n){let r=t&&ym.isAlias(n)?n.resolve(t.doc):n;if(!ym.isMap(r))throw new Error("Merge sources must be maps or map aliases");let i=r.toJSON(null,t,Map);for(let[s,o]of i)e instanceof Map?e.has(s)||e.set(s,o):e instanceof Set?e.add(s):Object.prototype.hasOwnProperty.call(e,s)||Object.defineProperty(e,s,{value:o,writable:!0,enumerable:!0,configurable:!0});return e}Hw.addMergeToJSMap=tU;Hw.isMergeKey=Vve;Hw.merge=Vw});var aE=M(iU=>{"use strict";var Hve=iE(),nU=Kw(),Kve=gm(),rU=ht(),oE=Pl();function Gve(t,e,{key:n,value:r}){if(rU.isNode(n)&&n.addToJSMap)n.addToJSMap(t,e,r);else if(nU.isMergeKey(t,n))nU.addMergeToJSMap(t,e,r);else{let i=oE.toJS(n,"",t);if(e instanceof Map)e.set(i,oE.toJS(r,i,t));else if(e instanceof Set)e.add(i);else{let s=Jve(n,i,t),o=oE.toJS(r,s,t);s in e?Object.defineProperty(e,s,{value:o,writable:!0,enumerable:!0,configurable:!0}):e[s]=o}}return e}function Jve(t,e,n){if(e===null)return"";if(typeof e!="object")return String(e);if(rU.isNode(t)&&n?.doc){let r=Kve.createStringifyContext(n.doc,{});r.anchors=new Set;for(let s of n.anchors.keys())r.anchors.add(s.anchor);r.inFlow=!0,r.inStringifyKey=!0;let i=t.toString(r);if(!n.mapKeyWarned){let s=JSON.stringify(i);s.length>40&&(s=s.substring(0,36)+'..."'),Hve.warn(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(e)}iU.addPairToJSMap=Gve});var ql=M(lE=>{"use strict";var sU=dm(),Yve=X7(),Qve=aE(),Gw=ht();function Xve(t,e,n){let r=sU.createNode(t,void 0,n),i=sU.createNode(e,void 0,n);return new uh(r,i)}var uh=class{constructor(e,n=null){Object.defineProperty(this,Gw.NODE_TYPE,{value:Gw.PAIR}),this.key=e,this.value=n}clone(e){let{key:n,value:r}=this;return Gw.isNode(n)&&(n=n.clone(e)),Gw.isNode(r)&&(r=r.clone(e)),new uh(n,r)}toJSON(e,n){let r=n?.mapAsMap?new Map:{};return Qve.addPairToJSMap(n,r,this)}toString(e,n,r){return e?.doc?Yve.stringifyPair(this,e,n,r):JSON.stringify(this)}};lE.Pair=uh;lE.createPair=Xve});var cE=M(aU=>{"use strict";var bu=ht(),oU=gm(),Jw=hm();function Zve(t,e,n){return(e.inFlow??t.flow?twe:ewe)(t,e,n)}function ewe({comment:t,items:e},n,{blockItemPrefix:r,flowChars:i,itemIndent:s,onChompKeep:o,onComment:a}){let{indent:l,options:{commentString:c}}=n,u=Object.assign({},n,{indent:s,type:null}),d=!1,h=[];for(let m=0;m<e.length;++m){let p=e[m],y=null;if(bu.isNode(p))!d&&p.spaceBefore&&h.push(""),Yw(n,h,p.commentBefore,d),p.comment&&(y=p.comment);else if(bu.isPair(p)){let v=bu.isNode(p.key)?p.key:null;v&&(!d&&v.spaceBefore&&h.push(""),Yw(n,h,v.commentBefore,d))}d=!1;let w=oU.stringify(p,u,()=>y=null,()=>d=!0);y&&(w+=Jw.lineComment(w,s,c(y))),d&&y&&(d=!1),h.push(r+w)}let f;if(h.length===0)f=i.start+i.end;else{f=h[0];for(let m=1;m<h.length;++m){let p=h[m];f+=p?`
|
|
119
119
|
${l}${p}`:`
|
|
120
120
|
`}}return t?(f+=`
|
|
121
|
-
`+Jw.indentComment(c(t),l),a&&a()):d&&o&&o(),f}function twe({items:t},e,{flowChars:n,itemIndent:r}){let{indent:i,indentStep:s,flowCollectionPadding:o,options:{commentString:a}}=e;r+=s;let l=Object.assign({},e,{indent:r,inFlow:!0,type:null}),c=!1,u=0,d=[];for(let m=0;m<t.length;++m){let p=t[m],y=null;if(bu.isNode(p))p.spaceBefore&&d.push(""),Yw(e,d,p.commentBefore,!1),p.comment&&(y=p.comment);else if(bu.isPair(p)){let v=bu.isNode(p.key)?p.key:null;v&&(v.spaceBefore&&d.push(""),Yw(e,d,v.commentBefore,!1),v.comment&&(c=!0));let b=bu.isNode(p.value)?p.value:null;b?(b.comment&&(y=b.comment),b.commentBefore&&(c=!0)):p.value==null&&v?.comment&&(y=v.comment)}y&&(c=!0);let w=oU.stringify(p,l,()=>y=null);
|
|
122
|
-
`))&&(c
|
|
121
|
+
`+Jw.indentComment(c(t),l),a&&a()):d&&o&&o(),f}function twe({items:t},e,{flowChars:n,itemIndent:r}){let{indent:i,indentStep:s,flowCollectionPadding:o,options:{commentString:a}}=e;r+=s;let l=Object.assign({},e,{indent:r,inFlow:!0,type:null}),c=!1,u=0,d=[];for(let m=0;m<t.length;++m){let p=t[m],y=null;if(bu.isNode(p))p.spaceBefore&&d.push(""),Yw(e,d,p.commentBefore,!1),p.comment&&(y=p.comment);else if(bu.isPair(p)){let v=bu.isNode(p.key)?p.key:null;v&&(v.spaceBefore&&d.push(""),Yw(e,d,v.commentBefore,!1),v.comment&&(c=!0));let b=bu.isNode(p.value)?p.value:null;b?(b.comment&&(y=b.comment),b.commentBefore&&(c=!0)):p.value==null&&v?.comment&&(y=v.comment)}y&&(c=!0);let w=oU.stringify(p,l,()=>y=null);c||(c=d.length>u||w.includes(`
|
|
122
|
+
`)),m<t.length-1?w+=",":e.options.trailingComma&&(e.options.lineWidth>0&&(c||(c=d.reduce((v,b)=>v+b.length+2,2)+(w.length+2)>e.options.lineWidth)),c&&(w+=",")),y&&(w+=Jw.lineComment(w,r,a(y))),d.push(w),u=d.length}let{start:h,end:f}=n;if(d.length===0)return h+f;if(!c){let m=d.reduce((p,y)=>p+y.length+2,2);c=e.options.lineWidth>0&&m>e.options.lineWidth}if(c){let m=h;for(let p of d)m+=p?`
|
|
123
123
|
${s}${i}${p}`:`
|
|
124
124
|
`;return`${m}
|
|
125
125
|
${i}${f}`}else return`${h}${o}${d.join(" ")}${o}${f}`}function Yw({indent:t,options:{commentString:e}},n,r,i){if(r&&i&&(r=r.replace(/^\n+/,"")),r){let s=Jw.indentComment(e(r),t);n.push(s.trimStart())}}aU.stringifyCollection=Zve});var jl=M(dE=>{"use strict";var nwe=cE(),rwe=aE(),iwe=qw(),$l=ht(),Qw=ql(),swe=$n();function vm(t,e){let n=$l.isScalar(e)?e.value:e;for(let r of t)if($l.isPair(r)&&(r.key===e||r.key===n||$l.isScalar(r.key)&&r.key.value===n))return r}var uE=class extends iwe.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super($l.MAP,e),this.items=[]}static from(e,n,r){let{keepUndefined:i,replacer:s}=r,o=new this(e),a=(l,c)=>{if(typeof s=="function")c=s.call(n,l,c);else if(Array.isArray(s)&&!s.includes(l))return;(c!==void 0||i)&&o.items.push(Qw.createPair(l,c,r))};if(n instanceof Map)for(let[l,c]of n)a(l,c);else if(n&&typeof n=="object")for(let l of Object.keys(n))a(l,n[l]);return typeof e.sortMapEntries=="function"&&o.items.sort(e.sortMapEntries),o}add(e,n){let r;$l.isPair(e)?r=e:!e||typeof e!="object"||!("key"in e)?r=new Qw.Pair(e,e?.value):r=new Qw.Pair(e.key,e.value);let i=vm(this.items,r.key),s=this.schema?.sortMapEntries;if(i){if(!n)throw new Error(`Key ${r.key} already set`);$l.isScalar(i.value)&&swe.isScalarValue(r.value)?i.value.value=r.value:i.value=r.value}else if(s){let o=this.items.findIndex(a=>s(r,a)<0);o===-1?this.items.push(r):this.items.splice(o,0,r)}else this.items.push(r)}delete(e){let n=vm(this.items,e);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(e,n){let i=vm(this.items,e)?.value;return(!n&&$l.isScalar(i)?i.value:i)??void 0}has(e){return!!vm(this.items,e)}set(e,n){this.add(new Qw.Pair(e,n),!0)}toJSON(e,n,r){let i=r?new r:n?.mapAsMap?new Map:{};n?.onCreate&&n.onCreate(i);for(let s of this.items)rwe.addPairToJSMap(n,i,s);return i}toString(e,n,r){if(!e)return JSON.stringify(this);for(let i of this.items)if(!$l.isPair(i))throw new Error(`Map items must all be pairs; found ${JSON.stringify(i)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),nwe.stringifyCollection(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:r,onComment:n})}};dE.YAMLMap=uE;dE.findPair=vm});var dh=M(cU=>{"use strict";var owe=ht(),lU=jl(),awe={collection:"map",default:!0,nodeClass:lU.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(t,e){return owe.isMap(t)||e("Expected a mapping for this tag"),t},createNode:(t,e,n)=>lU.YAMLMap.from(t,e,n)};cU.map=awe});var zl=M(uU=>{"use strict";var lwe=dm(),cwe=cE(),uwe=qw(),Zw=ht(),dwe=$n(),hwe=Pl(),hE=class extends uwe.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(Zw.SEQ,e),this.items=[]}add(e){this.items.push(e)}delete(e){let n=Xw(e);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(e,n){let r=Xw(e);if(typeof r!="number")return;let i=this.items[r];return!n&&Zw.isScalar(i)?i.value:i}has(e){let n=Xw(e);return typeof n=="number"&&n<this.items.length}set(e,n){let r=Xw(e);if(typeof r!="number")throw new Error(`Expected a valid index, not ${e}.`);let i=this.items[r];Zw.isScalar(i)&&dwe.isScalarValue(n)?i.value=n:this.items[r]=n}toJSON(e,n){let r=[];n?.onCreate&&n.onCreate(r);let i=0;for(let s of this.items)r.push(hwe.toJS(s,String(i++),n));return r}toString(e,n,r){return e?cwe.stringifyCollection(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:r,onComment:n}):JSON.stringify(this)}static from(e,n,r){let{replacer:i}=r,s=new this(e);if(n&&Symbol.iterator in Object(n)){let o=0;for(let a of n){if(typeof i=="function"){let l=n instanceof Set?a:String(o++);a=i.call(n,l,a)}s.items.push(lwe.createNode(a,void 0,r))}}return s}};function Xw(t){let e=Zw.isScalar(t)?t.value:t;return e&&typeof e=="string"&&(e=Number(e)),typeof e=="number"&&Number.isInteger(e)&&e>=0?e:null}uU.YAMLSeq=hE});var hh=M(hU=>{"use strict";var fwe=ht(),dU=zl(),pwe={collection:"seq",default:!0,nodeClass:dU.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(t,e){return fwe.isSeq(t)||e("Expected a sequence for this tag"),t},createNode:(t,e,n)=>dU.YAMLSeq.from(t,e,n)};hU.seq=pwe});var wm=M(fU=>{"use strict";var mwe=mm(),gwe={identify:t=>typeof t=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:t=>t,stringify(t,e,n,r){return e=Object.assign({actualString:!0},e),mwe.stringifyString(t,e,n,r)}};fU.string=gwe});var e0=M(gU=>{"use strict";var pU=$n(),mU={identify:t=>t==null,createNode:()=>new pU.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new pU.Scalar(null),stringify:({source:t},e)=>typeof t=="string"&&mU.test.test(t)?t:e.options.nullStr};gU.nullTag=mU});var fE=M(yU=>{"use strict";var bwe=$n(),bU={identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:t=>new bwe.Scalar(t[0]==="t"||t[0]==="T"),stringify({source:t,value:e},n){if(t&&bU.test.test(t)){let r=t[0]==="t"||t[0]==="T";if(e===r)return t}return e?n.options.trueStr:n.options.falseStr}};yU.boolTag=bU});var fh=M(vU=>{"use strict";function ywe({format:t,minFractionDigits:e,tag:n,value:r}){if(typeof r=="bigint")return String(r);let i=typeof r=="number"?r:Number(r);if(!isFinite(i))return isNaN(i)?".nan":i<0?"-.inf":".inf";let s=Object.is(r,-0)?"-0":JSON.stringify(r);if(!t&&e&&(!n||n==="tag:yaml.org,2002:float")&&/^\d/.test(s)){let o=s.indexOf(".");o<0&&(o=s.length,s+=".");let a=e-(s.length-o-1);for(;a-- >0;)s+="0"}return s}vU.stringifyNumber=ywe});var mE=M(t0=>{"use strict";var vwe=$n(),pE=fh(),wwe={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:t=>t.slice(-3).toLowerCase()==="nan"?NaN:t[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:pE.stringifyNumber},_we={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:t=>parseFloat(t),stringify(t){let e=Number(t.value);return isFinite(e)?e.toExponential():pE.stringifyNumber(t)}},Swe={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(t){let e=new vwe.Scalar(parseFloat(t)),n=t.indexOf(".");return n!==-1&&t[t.length-1]==="0"&&(e.minFractionDigits=t.length-n-1),e},stringify:pE.stringifyNumber};t0.float=Swe;t0.floatExp=_we;t0.floatNaN=wwe});var bE=M(r0=>{"use strict";var wU=fh(),n0=t=>typeof t=="bigint"||Number.isInteger(t),gE=(t,e,n,{intAsBigInt:r})=>r?BigInt(t):parseInt(t.substring(e),n);function _U(t,e,n){let{value:r}=t;return n0(r)&&r>=0?n+r.toString(e):wU.stringifyNumber(t)}var Cwe={identify:t=>n0(t)&&t>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(t,e,n)=>gE(t,2,8,n),stringify:t=>_U(t,8,"0o")},kwe={identify:n0,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(t,e,n)=>gE(t,0,10,n),stringify:wU.stringifyNumber},xwe={identify:t=>n0(t)&&t>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(t,e,n)=>gE(t,2,16,n),stringify:t=>_U(t,16,"0x")};r0.int=kwe;r0.intHex=xwe;r0.intOct=Cwe});var CU=M(SU=>{"use strict";var Awe=dh(),Fwe=e0(),Twe=hh(),Ewe=wm(),Mwe=fE(),yE=mE(),vE=bE(),Dwe=[Awe.map,Twe.seq,Ewe.string,Fwe.nullTag,Mwe.boolTag,vE.intOct,vE.int,vE.intHex,yE.floatNaN,yE.floatExp,yE.float];SU.schema=Dwe});var AU=M(xU=>{"use strict";var Iwe=$n(),Rwe=dh(),Pwe=hh();function kU(t){return typeof t=="bigint"||Number.isInteger(t)}var i0=({value:t})=>JSON.stringify(t),Owe=[{identify:t=>typeof t=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:t=>t,stringify:i0},{identify:t=>t==null,createNode:()=>new Iwe.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:i0},{identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:t=>t==="true",stringify:i0},{identify:kU,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(t,e,{intAsBigInt:n})=>n?BigInt(t):parseInt(t,10),stringify:({value:t})=>kU(t)?t.toString():JSON.stringify(t)},{identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:t=>parseFloat(t),stringify:i0}],Nwe={default:!0,tag:"",test:/^/,resolve(t,e){return e(`Unresolved plain scalar ${JSON.stringify(t)}`),t}},Lwe=[Rwe.map,Pwe.seq].concat(Owe,Nwe);xU.schema=Lwe});var _E=M(FU=>{"use strict";var _m=require("buffer"),wE=$n(),qwe=mm(),$we={identify:t=>t instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(t,e){if(typeof _m.Buffer=="function")return _m.Buffer.from(t,"base64");if(typeof atob=="function"){let n=atob(t.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 e("This environment does not support reading binary tags; either Buffer or atob is required"),t},stringify({comment:t,type:e,value:n},r,i,s){if(!n)return"";let o=n,a;if(typeof _m.Buffer=="function")a=o instanceof _m.Buffer?o.toString("base64"):_m.Buffer.from(o.buffer).toString("base64");else if(typeof btoa=="function"){let l="";for(let c=0;c<o.length;++c)l+=String.fromCharCode(o[c]);a=btoa(l)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(e??(e=wE.Scalar.BLOCK_LITERAL),e!==wE.Scalar.QUOTE_DOUBLE){let l=Math.max(r.options.lineWidth-r.indent.length,r.options.minContentWidth),c=Math.ceil(a.length/l),u=new Array(c);for(let d=0,h=0;d<c;++d,h+=l)u[d]=a.substr(h,l);a=u.join(e===wE.Scalar.BLOCK_LITERAL?`
|
|
@@ -170,7 +170,7 @@ ${c}
|
|
|
170
170
|
`);)r===`
|
|
171
171
|
`&&(n+=`
|
|
172
172
|
`),e+=1,r=t[e+1];return n||(n=" "),{fold:n,offset:e}}var b1e={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
|
|
173
|
-
`,r:"\r",t:" ",v:"\v",N:"\x85",_:"\xA0",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function y1e(t,e,n,r){let i=t.substr(e,n),o=i.length===n&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;if(isNaN(o)){let a=t.substr(e-2,n+2);return r(e-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${a}`),a}return String.fromCodePoint(o)}F6.resolveFlowScalar=h1e});var M6=M(E6=>{"use strict";var yu=ht(),T6=$n(),v1e=XE(),w1e=eM();function _1e(t,e,n,r){let{value:i,type:s,comment:o,range:a}=e.type==="block-scalar"?v1e.resolveBlockScalar(t,e,r):w1e.resolveFlowScalar(e,t.options.strict,r),l=n?t.directives.tagName(n.source,d=>r(n,"TAG_RESOLVE_FAILED",d)):null,c;t.options.stringKeys&&t.atKey?c=t.schema[yu.SCALAR]:l?c=S1e(t.schema,i,l,n,r):e.type==="scalar"?c=C1e(t,i,e,r):c=t.schema[yu.SCALAR];let u;try{let d=c.resolve(i,h=>r(n??e,"TAG_RESOLVE_FAILED",h),t.options);u=yu.isScalar(d)?d:new T6.Scalar(d)}catch(d){let h=d instanceof Error?d.message:String(d);r(n??e,"TAG_RESOLVE_FAILED",h),u=new T6.Scalar(i)}return u.range=a,u.source=i,s&&(u.type=s),l&&(u.tag=l),c.format&&(u.format=c.format),o&&(u.comment=o),u}function S1e(t,e,n,r,i){if(n==="!")return t[yu.SCALAR];let s=[];for(let a of t.tags)if(!a.collection&&a.tag===n)if(a.default&&a.test)s.push(a);else return a;for(let a of s)if(a.test?.test(e))return a;let o=t.knownTags[n];return o&&!o.collection?(t.tags.push(Object.assign({},o,{default:!1,test:void 0})),o):(i(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,n!=="tag:yaml.org,2002:str"),t[yu.SCALAR])}function C1e({atKey:t,directives:e,schema:n},r,i,s){let o=n.tags.find(a=>(a.default===!0||t&&a.default==="key")&&a.test?.test(r))||n[yu.SCALAR];if(n.compat){let a=n.compat.find(l=>l.default&&l.test?.test(r))??n[yu.SCALAR];if(o.tag!==a.tag){let l=e.tagString(o.tag),c=e.tagString(a.tag),u=`Value may be parsed as either ${l} or ${c}`;s(i,"TAG_RESOLVE_FAILED",u,!0)}}return o}E6.composeScalar=_1e});var I6=M(D6=>{"use strict";function k1e(t,e,n){if(e){n??(n=e.length);for(let r=n-1;r>=0;--r){let i=e[r];switch(i.type){case"space":case"comment":case"newline":t-=i.source.length;continue}for(i=e[++r];i?.type==="space";)t+=i.source.length,i=e[++r];break}}return t}D6.emptyScalarPosition=k1e});var O6=M(nM=>{"use strict";var x1e=um(),A1e=ht(),F1e=k6(),R6=M6(),T1e=gh(),E1e=I6(),M1e={composeNode:P6,composeEmptyNode:tM};function P6(t,e,n,r){let i=t.atKey,{spaceBefore:s,comment:o,anchor:a,tag:l}=n,c,u=!0;switch(e.type){case"alias":c=D1e(t,e,r),(a||l)&&r(e,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":c=R6.composeScalar(t,e,l,r),a&&(c.anchor=a.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":c=F1e.composeCollection(M1e,t,e,n,r),a&&(c.anchor=a.source.substring(1));break;default:{let d=e.type==="error"?e.message:`Unsupported token (type: ${e.type})`;r(e,"UNEXPECTED_TOKEN",d),c=tM(t,e.offset,void 0,null,n,r),
|
|
173
|
+
`,r:"\r",t:" ",v:"\v",N:"\x85",_:"\xA0",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function y1e(t,e,n,r){let i=t.substr(e,n),o=i.length===n&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;if(isNaN(o)){let a=t.substr(e-2,n+2);return r(e-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${a}`),a}return String.fromCodePoint(o)}F6.resolveFlowScalar=h1e});var M6=M(E6=>{"use strict";var yu=ht(),T6=$n(),v1e=XE(),w1e=eM();function _1e(t,e,n,r){let{value:i,type:s,comment:o,range:a}=e.type==="block-scalar"?v1e.resolveBlockScalar(t,e,r):w1e.resolveFlowScalar(e,t.options.strict,r),l=n?t.directives.tagName(n.source,d=>r(n,"TAG_RESOLVE_FAILED",d)):null,c;t.options.stringKeys&&t.atKey?c=t.schema[yu.SCALAR]:l?c=S1e(t.schema,i,l,n,r):e.type==="scalar"?c=C1e(t,i,e,r):c=t.schema[yu.SCALAR];let u;try{let d=c.resolve(i,h=>r(n??e,"TAG_RESOLVE_FAILED",h),t.options);u=yu.isScalar(d)?d:new T6.Scalar(d)}catch(d){let h=d instanceof Error?d.message:String(d);r(n??e,"TAG_RESOLVE_FAILED",h),u=new T6.Scalar(i)}return u.range=a,u.source=i,s&&(u.type=s),l&&(u.tag=l),c.format&&(u.format=c.format),o&&(u.comment=o),u}function S1e(t,e,n,r,i){if(n==="!")return t[yu.SCALAR];let s=[];for(let a of t.tags)if(!a.collection&&a.tag===n)if(a.default&&a.test)s.push(a);else return a;for(let a of s)if(a.test?.test(e))return a;let o=t.knownTags[n];return o&&!o.collection?(t.tags.push(Object.assign({},o,{default:!1,test:void 0})),o):(i(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,n!=="tag:yaml.org,2002:str"),t[yu.SCALAR])}function C1e({atKey:t,directives:e,schema:n},r,i,s){let o=n.tags.find(a=>(a.default===!0||t&&a.default==="key")&&a.test?.test(r))||n[yu.SCALAR];if(n.compat){let a=n.compat.find(l=>l.default&&l.test?.test(r))??n[yu.SCALAR];if(o.tag!==a.tag){let l=e.tagString(o.tag),c=e.tagString(a.tag),u=`Value may be parsed as either ${l} or ${c}`;s(i,"TAG_RESOLVE_FAILED",u,!0)}}return o}E6.composeScalar=_1e});var I6=M(D6=>{"use strict";function k1e(t,e,n){if(e){n??(n=e.length);for(let r=n-1;r>=0;--r){let i=e[r];switch(i.type){case"space":case"comment":case"newline":t-=i.source.length;continue}for(i=e[++r];i?.type==="space";)t+=i.source.length,i=e[++r];break}}return t}D6.emptyScalarPosition=k1e});var O6=M(nM=>{"use strict";var x1e=um(),A1e=ht(),F1e=k6(),R6=M6(),T1e=gh(),E1e=I6(),M1e={composeNode:P6,composeEmptyNode:tM};function P6(t,e,n,r){let i=t.atKey,{spaceBefore:s,comment:o,anchor:a,tag:l}=n,c,u=!0;switch(e.type){case"alias":c=D1e(t,e,r),(a||l)&&r(e,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":c=R6.composeScalar(t,e,l,r),a&&(c.anchor=a.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":try{c=F1e.composeCollection(M1e,t,e,n,r),a&&(c.anchor=a.source.substring(1))}catch(d){let h=d instanceof Error?d.message:String(d);r(e,"RESOURCE_EXHAUSTION",h)}break;default:{let d=e.type==="error"?e.message:`Unsupported token (type: ${e.type})`;r(e,"UNEXPECTED_TOKEN",d),u=!1}}return c??(c=tM(t,e.offset,void 0,null,n,r)),a&&c.anchor===""&&r(a,"BAD_ALIAS","Anchor cannot be an empty string"),i&&t.options.stringKeys&&(!A1e.isScalar(c)||typeof c.value!="string"||c.tag&&c.tag!=="tag:yaml.org,2002:str")&&r(l??e,"NON_STRING_KEY","With stringKeys, all keys must be strings"),s&&(c.spaceBefore=!0),o&&(e.type==="scalar"&&e.source===""?c.comment=o:c.commentBefore=o),t.options.keepSourceTokens&&u&&(c.srcToken=e),c}function tM(t,e,n,r,{spaceBefore:i,comment:s,anchor:o,tag:a,end:l},c){let u={type:"scalar",offset:E1e.emptyScalarPosition(e,n,r),indent:-1,source:""},d=R6.composeScalar(t,u,a,c);return o&&(d.anchor=o.source.substring(1),d.anchor===""&&c(o,"BAD_ALIAS","Anchor cannot be an empty string")),i&&(d.spaceBefore=!0),s&&(d.comment=s,d.range[2]=l),d}function D1e({options:t},{offset:e,source:n,end:r},i){let s=new x1e.Alias(n.substring(1));s.source===""&&i(e,"BAD_ALIAS","Alias cannot be an empty string"),s.source.endsWith(":")&&i(e+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);let o=e+n.length,a=T1e.resolveEnd(r,o,t.strict,i);return s.range=[e,o,a.offset],a.comment&&(s.comment=a.comment),s}nM.composeEmptyNode=tM;nM.composeNode=P6});var q6=M(L6=>{"use strict";var I1e=Em(),N6=O6(),R1e=gh(),P1e=Rm();function O1e(t,e,{offset:n,start:r,value:i,end:s},o){let a=Object.assign({_directives:e},t),l=new I1e.Document(void 0,a),c={atKey:!1,atRoot:!0,directives:l.directives,options:l.options,schema:l.schema},u=P1e.resolveProps(r,{indicator:"doc-start",next:i??s?.[0],offset:n,onError:o,parentIndent:0,startOnNewline:!0});u.found&&(l.directives.docStart=!0,i&&(i.type==="block-map"||i.type==="block-seq")&&!u.hasNewline&&o(u.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),l.contents=i?N6.composeNode(c,i,u,o):N6.composeEmptyNode(c,u.end,r,null,u,o);let d=l.contents.range[2],h=R1e.resolveEnd(s,d,!1,o);return h.comment&&(l.comment=h.comment),l.range=[n,d,h.offset],l}L6.composeDoc=O1e});var iM=M(z6=>{"use strict";var N1e=require("process"),L1e=VT(),q1e=Em(),Pm=Im(),$6=ht(),$1e=q6(),j1e=gh();function Om(t){if(typeof t=="number")return[t,t+1];if(Array.isArray(t))return t.length===2?t:[t[0],t[1]];let{offset:e,source:n}=t;return[e,e+(typeof n=="string"?n.length:1)]}function j6(t){let e="",n=!1,r=!1;for(let i=0;i<t.length;++i){let s=t[i];switch(s[0]){case"#":e+=(e===""?"":r?`
|
|
174
174
|
|
|
175
175
|
`:`
|
|
176
176
|
`)+(s.substring(1)||" "),n=!0,r=!1;break;case"%":t[i+1]?.[0]!=="#"&&(i+=1),n=!1;break;default:n||(r=!0),n=!1}}return{comment:e,afterEmptyLine:r}}var rM=class{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(n,r,i,s)=>{let o=Om(n);s?this.warnings.push(new Pm.YAMLWarning(o,r,i)):this.errors.push(new Pm.YAMLParseError(o,r,i))},this.directives=new L1e.Directives({version:e.version||"1.2"}),this.options=e}decorate(e,n){let{comment:r,afterEmptyLine:i}=j6(this.prelude);if(r){let s=e.contents;if(n)e.comment=e.comment?`${e.comment}
|
package/package.json
CHANGED
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
"color": "#17191E",
|
|
25
25
|
"theme": "dark"
|
|
26
26
|
},
|
|
27
|
-
"version": "2.16.
|
|
27
|
+
"version": "2.16.14",
|
|
28
28
|
"author": "withastro",
|
|
29
29
|
"license": "MIT",
|
|
30
30
|
"publisher": "astro-build",
|
|
31
31
|
"engines": {
|
|
32
|
-
"vscode": "^1.
|
|
32
|
+
"vscode": "^1.92.0"
|
|
33
33
|
},
|
|
34
34
|
"activationEvents": [
|
|
35
35
|
"workspaceContains:astro.config.*"
|
|
@@ -239,11 +239,11 @@
|
|
|
239
239
|
"@astrojs/ts-plugin": "^1.10.7",
|
|
240
240
|
"@types/mocha": "^10.0.10",
|
|
241
241
|
"@types/node": "^20.9.0",
|
|
242
|
-
"@types/vscode": "^1.
|
|
242
|
+
"@types/vscode": "^1.92.0",
|
|
243
243
|
"@volar/language-server": "~2.4.28",
|
|
244
244
|
"@volar/vscode": "~2.4.28",
|
|
245
|
-
"@vscode/test-electron": "^2.5.2",
|
|
246
245
|
"@vscode/test-cli": "^0.0.12",
|
|
246
|
+
"@vscode/test-electron": "^2.5.2",
|
|
247
247
|
"@vscode/vsce": "2.32.0",
|
|
248
248
|
"esbuild": "^0.17.19",
|
|
249
249
|
"esbuild-plugin-copy": "^2.1.1",
|