astro-vscode 2.6.0 → 2.6.1

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.
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- var i3=Object.create;var Fd=Object.defineProperty;var s3=Object.getOwnPropertyDescriptor;var o3=Object.getOwnPropertyNames;var a3=Object.getPrototypeOf,l3=Object.prototype.hasOwnProperty;var xe=(t,e)=>()=>(t&&(e=t(t=0)),e);var L=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Sv=(t,e)=>{for(var n in e)Fd(t,n,{get:e[n],enumerable:!0})},a1=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of o3(e))!l3.call(t,i)&&i!==n&&Fd(t,i,{get:()=>e[i],enumerable:!(r=s3(e,i))||r.enumerable});return t};var cn=(t,e,n)=>(n=t!=null?i3(a3(t)):{},a1(e||!t||!t.__esModule?Fd(n,"default",{value:t,enumerable:!0}):n,t)),Ro=t=>a1(Fd({},"__esModule",{value:!0}),t);var l1=L((Rue,c3)=>{c3.exports={name:"@astrojs/language-server",version:"2.6.0",author:"withastro",license:"MIT",repository:{type:"git",url:"https://github.com/withastro/language-tools",directory:"packages/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:"mocha --timeout 10000 --require tsx --require test/takedown.ts test/misc/init.test.ts test/**/*.test.ts","test:match":"pnpm run test -g"},dependencies:{"@astrojs/compiler":"^2.4.0","@jridgewell/sourcemap-codec":"^1.4.15","@volar/kit":"~1.11.1","@volar/language-core":"~1.11.1","@volar/language-server":"~1.11.1","@volar/language-service":"~1.11.1","@volar/source-map":"~1.11.1","@volar/typescript":"~1.11.1","fast-glob":"^3.2.12","muggle-string":"^0.3.1","volar-service-css":"0.0.17","volar-service-emmet":"0.0.17","volar-service-html":"0.0.17","volar-service-prettier":"0.0.17","volar-service-typescript":"0.0.17","volar-service-typescript-twoslash-queries":"0.0.17","vscode-html-languageservice":"^5.1.0","vscode-uri":"^3.0.8"},devDependencies:{"@astrojs/svelte":"^4.0.3","@astrojs/vue":"^3.0.1","@types/chai":"^4.3.5","@types/mocha":"^10.0.1","@types/node":"^18.17.8",astro:"^4.1.0",chai:"^4.3.7",mocha:"^10.2.0",tsx:"^3.12.7",typescript:"^5.2.2","vscode-languageserver-protocol":"^3.17.5","vscode-languageserver-textdocument":"^1.0.11"},peerDependencies:{prettier:"^3.0.0","prettier-plugin-astro":">=0.11.0"},peerDependenciesMeta:{prettier:{optional:!0},"prettier-plugin-astro":{optional:!0}}}});var Ad=L(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.thenable=tn.typedArray=tn.stringArray=tn.array=tn.func=tn.error=tn.number=tn.string=tn.boolean=void 0;function u3(t){return t===!0||t===!1}tn.boolean=u3;function c1(t){return typeof t=="string"||t instanceof String}tn.string=c1;function d3(t){return typeof t=="number"||t instanceof Number}tn.number=d3;function h3(t){return t instanceof Error}tn.error=h3;function u1(t){return typeof t=="function"}tn.func=u1;function d1(t){return Array.isArray(t)}tn.array=d1;function p3(t){return d1(t)&&t.every(e=>c1(e))}tn.stringArray=p3;function f3(t,e){return Array.isArray(t)&&t.every(e)}tn.typedArray=f3;function m3(t){return t&&u1(t.then)}tn.thenable=m3});var Fa=L(_n=>{"use strict";Object.defineProperty(_n,"__esModule",{value:!0});_n.stringArray=_n.array=_n.func=_n.error=_n.number=_n.string=_n.boolean=void 0;function g3(t){return t===!0||t===!1}_n.boolean=g3;function h1(t){return typeof t=="string"||t instanceof String}_n.string=h1;function b3(t){return typeof t=="number"||t instanceof Number}_n.number=b3;function v3(t){return t instanceof Error}_n.error=v3;function y3(t){return typeof t=="function"}_n.func=y3;function p1(t){return Array.isArray(t)}_n.array=p1;function w3(t){return p1(t)&&t.every(e=>h1(e))}_n.stringArray=w3});var Vv=L(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 Fo=Fa(),xv;(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})(xv||(Ae.ErrorCodes=xv={}));var Vc=class extends Error{constructor(e,n,r){super(n),this.code=Fo.number(e)?e:xv.UnknownErrorCode,this.data=r,Object.setPrototypeOf(this,Vc.prototype)}toJson(){let e={code:this.code,message:this.message};return this.data!==void 0&&(e.data=this.data),e}};Ae.ResponseError=Vc;var un=class{constructor(e){this.kind=e}static is(e){return e===un.auto||e===un.byName||e===un.byPosition}toString(){return this.kind}};Ae.ParameterStructures=un;un.auto=new un("auto");un.byPosition=new un("byPosition");un.byName=new un("byName");var Tt=class{constructor(e,n){this.method=e,this.numberOfParams=n}get parameterStructures(){return un.auto}};Ae.AbstractMessageSignature=Tt;var Cv=class extends Tt{constructor(e){super(e,0)}};Ae.RequestType0=Cv;var kv=class extends Tt{constructor(e,n=un.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};Ae.RequestType=kv;var Tv=class extends Tt{constructor(e,n=un.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};Ae.RequestType1=Tv;var Ev=class extends Tt{constructor(e){super(e,2)}};Ae.RequestType2=Ev;var Dv=class extends Tt{constructor(e){super(e,3)}};Ae.RequestType3=Dv;var Rv=class extends Tt{constructor(e){super(e,4)}};Ae.RequestType4=Rv;var Fv=class extends Tt{constructor(e){super(e,5)}};Ae.RequestType5=Fv;var Av=class extends Tt{constructor(e){super(e,6)}};Ae.RequestType6=Av;var Pv=class extends Tt{constructor(e){super(e,7)}};Ae.RequestType7=Pv;var Iv=class extends Tt{constructor(e){super(e,8)}};Ae.RequestType8=Iv;var Mv=class extends Tt{constructor(e){super(e,9)}};Ae.RequestType9=Mv;var Ov=class extends Tt{constructor(e,n=un.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};Ae.NotificationType=Ov;var Lv=class extends Tt{constructor(e){super(e,0)}};Ae.NotificationType0=Lv;var Nv=class extends Tt{constructor(e,n=un.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};Ae.NotificationType1=Nv;var zv=class extends Tt{constructor(e){super(e,2)}};Ae.NotificationType2=zv;var qv=class extends Tt{constructor(e){super(e,3)}};Ae.NotificationType3=qv;var jv=class extends Tt{constructor(e){super(e,4)}};Ae.NotificationType4=jv;var Wv=class extends Tt{constructor(e){super(e,5)}};Ae.NotificationType5=Wv;var Uv=class extends Tt{constructor(e){super(e,6)}};Ae.NotificationType6=Uv;var Hv=class extends Tt{constructor(e){super(e,7)}};Ae.NotificationType7=Hv;var $v=class extends Tt{constructor(e){super(e,8)}};Ae.NotificationType8=$v;var Bv=class extends Tt{constructor(e){super(e,9)}};Ae.NotificationType9=Bv;var f1;(function(t){function e(i){let s=i;return s&&Fo.string(s.method)&&(Fo.string(s.id)||Fo.number(s.id))}t.isRequest=e;function n(i){let s=i;return s&&Fo.string(s.method)&&i.id===void 0}t.isNotification=n;function r(i){let s=i;return s&&(s.result!==void 0||!!s.error)&&(Fo.string(s.id)||Fo.number(s.id)||s.id===null)}t.isResponse=r})(f1||(Ae.Message=f1={}))});var Kv=L(As=>{"use strict";var m1;Object.defineProperty(As,"__esModule",{value:!0});As.LRUCache=As.LinkedMap=As.Touch=void 0;var Sn;(function(t){t.None=0,t.First=1,t.AsOld=t.First,t.Last=2,t.AsNew=t.Last})(Sn||(As.Touch=Sn={}));var Pd=class{constructor(){this[m1]="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=Sn.None){let r=this._map.get(e);if(r)return n!==Sn.None&&this.touch(r,n),r.value}set(e,n,r=Sn.None){let i=this._map.get(e);if(i)i.value=n,r!==Sn.None&&this.touch(i,r);else{switch(i={key:e,value:n,next:void 0,previous:void 0},r){case Sn.None:this.addItemLast(i);break;case Sn.First:this.addItemFirst(i);break;case Sn.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}[(m1=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!==Sn.First&&n!==Sn.Last)){if(n===Sn.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===Sn.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)}};As.LinkedMap=Pd;var Gv=class extends Pd{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=Sn.AsNew){return super.get(e,n)}peek(e){return super.get(e,Sn.None)}set(e,n){return super.set(e,n,Sn.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}};As.LRUCache=Gv});var b1=L(Id=>{"use strict";Object.defineProperty(Id,"__esModule",{value:!0});Id.Disposable=void 0;var g1;(function(t){function e(n){return{dispose:n}}t.create=e})(g1||(Id.Disposable=g1={}))});var Ps=L(Qv=>{"use strict";Object.defineProperty(Qv,"__esModule",{value:!0});var Jv;function Xv(){if(Jv===void 0)throw new Error("No runtime abstraction layer installed");return Jv}(function(t){function e(n){if(n===void 0)throw new Error("No runtime abstraction layer provided");Jv=n}t.install=e})(Xv||(Xv={}));Qv.default=Xv});var Ia=L(Pa=>{"use strict";Object.defineProperty(Pa,"__esModule",{value:!0});Pa.Emitter=Pa.Event=void 0;var _3=Ps(),v1;(function(t){let e={dispose(){}};t.None=function(){return e}})(v1||(Pa.Event=v1={}));var Yv=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(l){(0,_3.default)().console.error(l)}return n}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}},Aa=class{constructor(e){this._options=e}get event(){return this._event||(this._event=(e,n,r)=>{this._callbacks||(this._callbacks=new Yv),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=Aa._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)}};Pa.Emitter=Aa;Aa._noop=function(){}});var Ld=L(Ma=>{"use strict";Object.defineProperty(Ma,"__esModule",{value:!0});Ma.CancellationTokenSource=Ma.CancellationToken=void 0;var S3=Ps(),x3=Fa(),Zv=Ia(),Md;(function(t){t.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Zv.Event.None}),t.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Zv.Event.None});function e(n){let r=n;return r&&(r===t.None||r===t.Cancelled||x3.boolean(r.isCancellationRequested)&&!!r.onCancellationRequested)}t.is=e})(Md||(Ma.CancellationToken=Md={}));var C3=Object.freeze(function(t,e){let n=(0,S3.default)().timer.setTimeout(t.bind(e),0);return{dispose(){n.dispose()}}}),Od=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?C3:(this._emitter||(this._emitter=new Zv.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},ey=class{get token(){return this._token||(this._token=new Od),this._token}cancel(){this._token?this._token.cancel():this._token=Md.Cancelled}dispose(){this._token?this._token instanceof Od&&this._token.dispose():this._token=Md.None}};Ma.CancellationTokenSource=ey});var y1=L(Oa=>{"use strict";Object.defineProperty(Oa,"__esModule",{value:!0});Oa.SharedArrayReceiverStrategy=Oa.SharedArraySenderStrategy=void 0;var k3=Ld(),Gc;(function(t){t.Continue=0,t.Cancelled=1})(Gc||(Gc={}));var ty=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]=Gc.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,Gc.Cancelled)}cleanup(e){this.buffers.delete(e)}dispose(){this.buffers.clear()}};Oa.SharedArraySenderStrategy=ty;var ny=class{constructor(e){this.data=new Int32Array(e,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===Gc.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}},ry=class{constructor(e){this.token=new ny(e)}cancel(){}dispose(){}},iy=class{constructor(){this.kind="request"}createCancellationTokenSource(e){let n=e.$cancellationData;return n===void 0?new k3.CancellationTokenSource:new ry(n)}};Oa.SharedArrayReceiverStrategy=iy});var oy=L(Nd=>{"use strict";Object.defineProperty(Nd,"__esModule",{value:!0});Nd.Semaphore=void 0;var T3=Ps(),sy=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,T3.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()}}};Nd.Semaphore=sy});var _1=L(Is=>{"use strict";Object.defineProperty(Is,"__esModule",{value:!0});Is.ReadableStreamMessageReader=Is.AbstractMessageReader=Is.MessageReader=void 0;var ly=Ps(),La=Fa(),ay=Ia(),E3=oy(),w1;(function(t){function e(n){let r=n;return r&&La.func(r.listen)&&La.func(r.dispose)&&La.func(r.onError)&&La.func(r.onClose)&&La.func(r.onPartialMessage)}t.is=e})(w1||(Is.MessageReader=w1={}));var zd=class{constructor(){this.errorEmitter=new ay.Emitter,this.closeEmitter=new ay.Emitter,this.partialMessageEmitter=new ay.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: ${La.string(e.message)?e.message:"unknown"}`)}};Is.AbstractMessageReader=zd;var cy;(function(t){function e(n){let r,i,s,o=new Map,l,a=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&&(l=n.contentTypeDecoder,a.set(l.name,l)),n.contentTypeDecoders!==void 0)for(let c of n.contentTypeDecoders)a.set(c.name,c)}return l===void 0&&(l=(0,ly.default)().applicationJson.decoder,a.set(l.name,l)),{charset:r,contentDecoder:s,contentDecoders:o,contentTypeDecoder:l,contentTypeDecoders:a}}t.fromOptions=e})(cy||(cy={}));var uy=class extends zd{constructor(e,n){super(),this.readable=e,this.options=cy.fromOptions(n),this.buffer=(0,ly.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new E3.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 i3=Object.create;var Fd=Object.defineProperty;var s3=Object.getOwnPropertyDescriptor;var o3=Object.getOwnPropertyNames;var a3=Object.getPrototypeOf,l3=Object.prototype.hasOwnProperty;var xe=(t,e)=>()=>(t&&(e=t(t=0)),e);var L=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Sv=(t,e)=>{for(var n in e)Fd(t,n,{get:e[n],enumerable:!0})},a1=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of o3(e))!l3.call(t,i)&&i!==n&&Fd(t,i,{get:()=>e[i],enumerable:!(r=s3(e,i))||r.enumerable});return t};var cn=(t,e,n)=>(n=t!=null?i3(a3(t)):{},a1(e||!t||!t.__esModule?Fd(n,"default",{value:t,enumerable:!0}):n,t)),Ro=t=>a1(Fd({},"__esModule",{value:!0}),t);var l1=L((Rue,c3)=>{c3.exports={name:"@astrojs/language-server",version:"2.6.1",author:"withastro",license:"MIT",repository:{type:"git",url:"https://github.com/withastro/language-tools",directory:"packages/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:"mocha --timeout 10000 --require tsx --require test/takedown.ts test/misc/init.test.ts test/**/*.test.ts","test:match":"pnpm run test -g"},dependencies:{"@astrojs/compiler":"^2.4.0","@jridgewell/sourcemap-codec":"^1.4.15","@volar/kit":"~1.11.1","@volar/language-core":"~1.11.1","@volar/language-server":"~1.11.1","@volar/language-service":"~1.11.1","@volar/source-map":"~1.11.1","@volar/typescript":"~1.11.1","fast-glob":"^3.2.12","muggle-string":"^0.3.1","volar-service-css":"0.0.17","volar-service-emmet":"0.0.17","volar-service-html":"0.0.17","volar-service-prettier":"0.0.17","volar-service-typescript":"0.0.17","volar-service-typescript-twoslash-queries":"0.0.17","vscode-html-languageservice":"^5.1.0","vscode-uri":"^3.0.8"},devDependencies:{"@astrojs/svelte":"^4.0.3","@astrojs/vue":"^3.0.1","@types/chai":"^4.3.5","@types/mocha":"^10.0.1","@types/node":"^18.17.8",astro:"^4.1.0",chai:"^4.3.7",mocha:"^10.2.0",tsx:"^3.12.7",typescript:"^5.2.2","vscode-languageserver-protocol":"^3.17.5","vscode-languageserver-textdocument":"^1.0.11"},peerDependencies:{prettier:"^3.0.0","prettier-plugin-astro":">=0.11.0"},peerDependenciesMeta:{prettier:{optional:!0},"prettier-plugin-astro":{optional:!0}}}});var Ad=L(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.thenable=tn.typedArray=tn.stringArray=tn.array=tn.func=tn.error=tn.number=tn.string=tn.boolean=void 0;function u3(t){return t===!0||t===!1}tn.boolean=u3;function c1(t){return typeof t=="string"||t instanceof String}tn.string=c1;function d3(t){return typeof t=="number"||t instanceof Number}tn.number=d3;function h3(t){return t instanceof Error}tn.error=h3;function u1(t){return typeof t=="function"}tn.func=u1;function d1(t){return Array.isArray(t)}tn.array=d1;function p3(t){return d1(t)&&t.every(e=>c1(e))}tn.stringArray=p3;function f3(t,e){return Array.isArray(t)&&t.every(e)}tn.typedArray=f3;function m3(t){return t&&u1(t.then)}tn.thenable=m3});var Fa=L(_n=>{"use strict";Object.defineProperty(_n,"__esModule",{value:!0});_n.stringArray=_n.array=_n.func=_n.error=_n.number=_n.string=_n.boolean=void 0;function g3(t){return t===!0||t===!1}_n.boolean=g3;function h1(t){return typeof t=="string"||t instanceof String}_n.string=h1;function b3(t){return typeof t=="number"||t instanceof Number}_n.number=b3;function v3(t){return t instanceof Error}_n.error=v3;function y3(t){return typeof t=="function"}_n.func=y3;function p1(t){return Array.isArray(t)}_n.array=p1;function w3(t){return p1(t)&&t.every(e=>h1(e))}_n.stringArray=w3});var Vv=L(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 Fo=Fa(),xv;(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})(xv||(Ae.ErrorCodes=xv={}));var Vc=class extends Error{constructor(e,n,r){super(n),this.code=Fo.number(e)?e:xv.UnknownErrorCode,this.data=r,Object.setPrototypeOf(this,Vc.prototype)}toJson(){let e={code:this.code,message:this.message};return this.data!==void 0&&(e.data=this.data),e}};Ae.ResponseError=Vc;var un=class{constructor(e){this.kind=e}static is(e){return e===un.auto||e===un.byName||e===un.byPosition}toString(){return this.kind}};Ae.ParameterStructures=un;un.auto=new un("auto");un.byPosition=new un("byPosition");un.byName=new un("byName");var Tt=class{constructor(e,n){this.method=e,this.numberOfParams=n}get parameterStructures(){return un.auto}};Ae.AbstractMessageSignature=Tt;var Cv=class extends Tt{constructor(e){super(e,0)}};Ae.RequestType0=Cv;var kv=class extends Tt{constructor(e,n=un.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};Ae.RequestType=kv;var Tv=class extends Tt{constructor(e,n=un.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};Ae.RequestType1=Tv;var Ev=class extends Tt{constructor(e){super(e,2)}};Ae.RequestType2=Ev;var Dv=class extends Tt{constructor(e){super(e,3)}};Ae.RequestType3=Dv;var Rv=class extends Tt{constructor(e){super(e,4)}};Ae.RequestType4=Rv;var Fv=class extends Tt{constructor(e){super(e,5)}};Ae.RequestType5=Fv;var Av=class extends Tt{constructor(e){super(e,6)}};Ae.RequestType6=Av;var Pv=class extends Tt{constructor(e){super(e,7)}};Ae.RequestType7=Pv;var Iv=class extends Tt{constructor(e){super(e,8)}};Ae.RequestType8=Iv;var Mv=class extends Tt{constructor(e){super(e,9)}};Ae.RequestType9=Mv;var Ov=class extends Tt{constructor(e,n=un.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};Ae.NotificationType=Ov;var Lv=class extends Tt{constructor(e){super(e,0)}};Ae.NotificationType0=Lv;var Nv=class extends Tt{constructor(e,n=un.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};Ae.NotificationType1=Nv;var zv=class extends Tt{constructor(e){super(e,2)}};Ae.NotificationType2=zv;var qv=class extends Tt{constructor(e){super(e,3)}};Ae.NotificationType3=qv;var jv=class extends Tt{constructor(e){super(e,4)}};Ae.NotificationType4=jv;var Wv=class extends Tt{constructor(e){super(e,5)}};Ae.NotificationType5=Wv;var Uv=class extends Tt{constructor(e){super(e,6)}};Ae.NotificationType6=Uv;var Hv=class extends Tt{constructor(e){super(e,7)}};Ae.NotificationType7=Hv;var $v=class extends Tt{constructor(e){super(e,8)}};Ae.NotificationType8=$v;var Bv=class extends Tt{constructor(e){super(e,9)}};Ae.NotificationType9=Bv;var f1;(function(t){function e(i){let s=i;return s&&Fo.string(s.method)&&(Fo.string(s.id)||Fo.number(s.id))}t.isRequest=e;function n(i){let s=i;return s&&Fo.string(s.method)&&i.id===void 0}t.isNotification=n;function r(i){let s=i;return s&&(s.result!==void 0||!!s.error)&&(Fo.string(s.id)||Fo.number(s.id)||s.id===null)}t.isResponse=r})(f1||(Ae.Message=f1={}))});var Kv=L(As=>{"use strict";var m1;Object.defineProperty(As,"__esModule",{value:!0});As.LRUCache=As.LinkedMap=As.Touch=void 0;var Sn;(function(t){t.None=0,t.First=1,t.AsOld=t.First,t.Last=2,t.AsNew=t.Last})(Sn||(As.Touch=Sn={}));var Pd=class{constructor(){this[m1]="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=Sn.None){let r=this._map.get(e);if(r)return n!==Sn.None&&this.touch(r,n),r.value}set(e,n,r=Sn.None){let i=this._map.get(e);if(i)i.value=n,r!==Sn.None&&this.touch(i,r);else{switch(i={key:e,value:n,next:void 0,previous:void 0},r){case Sn.None:this.addItemLast(i);break;case Sn.First:this.addItemFirst(i);break;case Sn.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}[(m1=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!==Sn.First&&n!==Sn.Last)){if(n===Sn.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===Sn.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)}};As.LinkedMap=Pd;var Gv=class extends Pd{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=Sn.AsNew){return super.get(e,n)}peek(e){return super.get(e,Sn.None)}set(e,n){return super.set(e,n,Sn.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}};As.LRUCache=Gv});var b1=L(Id=>{"use strict";Object.defineProperty(Id,"__esModule",{value:!0});Id.Disposable=void 0;var g1;(function(t){function e(n){return{dispose:n}}t.create=e})(g1||(Id.Disposable=g1={}))});var Ps=L(Qv=>{"use strict";Object.defineProperty(Qv,"__esModule",{value:!0});var Jv;function Xv(){if(Jv===void 0)throw new Error("No runtime abstraction layer installed");return Jv}(function(t){function e(n){if(n===void 0)throw new Error("No runtime abstraction layer provided");Jv=n}t.install=e})(Xv||(Xv={}));Qv.default=Xv});var Ia=L(Pa=>{"use strict";Object.defineProperty(Pa,"__esModule",{value:!0});Pa.Emitter=Pa.Event=void 0;var _3=Ps(),v1;(function(t){let e={dispose(){}};t.None=function(){return e}})(v1||(Pa.Event=v1={}));var Yv=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(l){(0,_3.default)().console.error(l)}return n}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}},Aa=class{constructor(e){this._options=e}get event(){return this._event||(this._event=(e,n,r)=>{this._callbacks||(this._callbacks=new Yv),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=Aa._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)}};Pa.Emitter=Aa;Aa._noop=function(){}});var Ld=L(Ma=>{"use strict";Object.defineProperty(Ma,"__esModule",{value:!0});Ma.CancellationTokenSource=Ma.CancellationToken=void 0;var S3=Ps(),x3=Fa(),Zv=Ia(),Md;(function(t){t.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Zv.Event.None}),t.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Zv.Event.None});function e(n){let r=n;return r&&(r===t.None||r===t.Cancelled||x3.boolean(r.isCancellationRequested)&&!!r.onCancellationRequested)}t.is=e})(Md||(Ma.CancellationToken=Md={}));var C3=Object.freeze(function(t,e){let n=(0,S3.default)().timer.setTimeout(t.bind(e),0);return{dispose(){n.dispose()}}}),Od=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?C3:(this._emitter||(this._emitter=new Zv.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},ey=class{get token(){return this._token||(this._token=new Od),this._token}cancel(){this._token?this._token.cancel():this._token=Md.Cancelled}dispose(){this._token?this._token instanceof Od&&this._token.dispose():this._token=Md.None}};Ma.CancellationTokenSource=ey});var y1=L(Oa=>{"use strict";Object.defineProperty(Oa,"__esModule",{value:!0});Oa.SharedArrayReceiverStrategy=Oa.SharedArraySenderStrategy=void 0;var k3=Ld(),Gc;(function(t){t.Continue=0,t.Cancelled=1})(Gc||(Gc={}));var ty=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]=Gc.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,Gc.Cancelled)}cleanup(e){this.buffers.delete(e)}dispose(){this.buffers.clear()}};Oa.SharedArraySenderStrategy=ty;var ny=class{constructor(e){this.data=new Int32Array(e,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===Gc.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}},ry=class{constructor(e){this.token=new ny(e)}cancel(){}dispose(){}},iy=class{constructor(){this.kind="request"}createCancellationTokenSource(e){let n=e.$cancellationData;return n===void 0?new k3.CancellationTokenSource:new ry(n)}};Oa.SharedArrayReceiverStrategy=iy});var oy=L(Nd=>{"use strict";Object.defineProperty(Nd,"__esModule",{value:!0});Nd.Semaphore=void 0;var T3=Ps(),sy=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,T3.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()}}};Nd.Semaphore=sy});var _1=L(Is=>{"use strict";Object.defineProperty(Is,"__esModule",{value:!0});Is.ReadableStreamMessageReader=Is.AbstractMessageReader=Is.MessageReader=void 0;var ly=Ps(),La=Fa(),ay=Ia(),E3=oy(),w1;(function(t){function e(n){let r=n;return r&&La.func(r.listen)&&La.func(r.dispose)&&La.func(r.onError)&&La.func(r.onClose)&&La.func(r.onPartialMessage)}t.is=e})(w1||(Is.MessageReader=w1={}));var zd=class{constructor(){this.errorEmitter=new ay.Emitter,this.closeEmitter=new ay.Emitter,this.partialMessageEmitter=new ay.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: ${La.string(e.message)?e.message:"unknown"}`)}};Is.AbstractMessageReader=zd;var cy;(function(t){function e(n){let r,i,s,o=new Map,l,a=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&&(l=n.contentTypeDecoder,a.set(l.name,l)),n.contentTypeDecoders!==void 0)for(let c of n.contentTypeDecoders)a.set(c.name,c)}return l===void 0&&(l=(0,ly.default)().applicationJson.decoder,a.set(l.name,l)),{charset:r,contentDecoder:s,contentDecoders:o,contentTypeDecoder:l,contentTypeDecoders:a}}t.fromOptions=e})(cy||(cy={}));var uy=class extends zd{constructor(e,n){super(),this.readable=e,this.options=cy.fromOptions(n),this.buffer=(0,ly.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new E3.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,ly.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))}};Is.ReadableStreamMessageReader=uy});var T1=L(Ms=>{"use strict";Object.defineProperty(Ms,"__esModule",{value:!0});Ms.WriteableStreamMessageWriter=Ms.AbstractMessageWriter=Ms.MessageWriter=void 0;var S1=Ps(),Kc=Fa(),D3=oy(),x1=Ia(),R3="Content-Length: ",C1=`\r
4
4
  `,k1;(function(t){function e(n){let r=n;return r&&Kc.func(r.dispose)&&Kc.func(r.onClose)&&Kc.func(r.onError)&&Kc.func(r.write)}t.is=e})(k1||(Ms.MessageWriter=k1={}));var qd=class{constructor(){this.errorEmitter=new x1.Emitter,this.closeEmitter=new x1.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: ${Kc.string(e.message)?e.message:"unknown"}`)}};Ms.AbstractMessageWriter=qd;var dy;(function(t){function e(n){return n===void 0||typeof n=="string"?{charset:n??"utf-8",contentTypeEncoder:(0,S1.default)().applicationJson.encoder}:{charset:n.charset??"utf-8",contentEncoder:n.contentEncoder,contentTypeEncoder:n.contentTypeEncoder??(0,S1.default)().applicationJson.encoder}}t.fromOptions=e})(dy||(dy={}));var hy=class extends qd{constructor(e,n){super(),this.writable=e,this.options=dy.fromOptions(n),this.errorCount=0,this.writeSemaphore=new D3.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(R3,r.byteLength.toString(),C1),i.push(C1),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()}};Ms.WriteableStreamMessageWriter=hy});var E1=L(jd=>{"use strict";Object.defineProperty(jd,"__esModule",{value:!0});jd.AbstractMessageBuffer=void 0;var F3=13,A3=10,P3=`\r
5
5
  `,py=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 F3:switch(n){case 0:n=1;break;case 2:n=3;break;default:n=0}break;case A3: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),l=new Map,a=this.toString(o,"ascii").split(P3);if(a.length<2)return l;for(let c=0;c<a.length-2;c++){let u=a[c],d=u.indexOf(":");if(d===-1)throw new Error(`Message header must separate key and value using ':'
@@ -530,7 +530,7 @@ See [Browser compatibility](#Browser_compatibility) for notes on browser support
530
530
  * a _positive value_ means that the element should be focusable and reachable via sequential keyboard navigation; the order in which the elements are focused is the increasing value of the [**tabindex**](#attr-tabindex). If several elements share the same tabindex, their relative order follows their relative positions in the document.`},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/tabindex"}]},{name:"title",description:{kind:"markdown",value:"Contains a text representing advisory information related to the element it belongs to. Such information can typically, but not necessarily, be presented to the user as a tooltip."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/title"}]},{name:"translate",description:{kind:"markdown",value:"An enumerated attribute that is used to specify whether an element's attribute values and the values of its [`Text`](https://developer.mozilla.org/docs/Web/API/Text \"The Text interface represents the textual content of Element or Attr. If an element has no markup within its content, it has a single child implementing Text that contains the element's text. However, if the element contains markup, it is parsed into information items and Text nodes that form its children.\") node children are to be translated when the page is localized, or whether to leave them unchanged. It can have the following values:\n\n* empty string and `yes`, which indicates that the element will be translated.\n* `no`, which indicates that the element will not be translated."},valueSet:"y",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/translate"}]},{name:"onabort",description:{kind:"markdown",value:"The loading of a resource has been aborted."}},{name:"onblur",description:{kind:"markdown",value:"An element has lost focus (does not bubble)."}},{name:"oncanplay",description:{kind:"markdown",value:"The user agent can play the media, but estimates that not enough data has been loaded to play the media up to its end without having to stop for further buffering of content."}},{name:"oncanplaythrough",description:{kind:"markdown",value:"The user agent can play the media up to its end without having to stop for further buffering of content."}},{name:"onchange",description:{kind:"markdown",value:"The change event is fired for <input>, <select>, and <textarea> elements when a change to the element's value is committed by the user."}},{name:"onclick",description:{kind:"markdown",value:"A pointing device button has been pressed and released on an element."}},{name:"oncontextmenu",description:{kind:"markdown",value:"The right button of the mouse is clicked (before the context menu is displayed)."}},{name:"ondblclick",description:{kind:"markdown",value:"A pointing device button is clicked twice on an element."}},{name:"ondrag",description:{kind:"markdown",value:"An element or text selection is being dragged (every 350ms)."}},{name:"ondragend",description:{kind:"markdown",value:"A drag operation is being ended (by releasing a mouse button or hitting the escape key)."}},{name:"ondragenter",description:{kind:"markdown",value:"A dragged element or text selection enters a valid drop target."}},{name:"ondragleave",description:{kind:"markdown",value:"A dragged element or text selection leaves a valid drop target."}},{name:"ondragover",description:{kind:"markdown",value:"An element or text selection is being dragged over a valid drop target (every 350ms)."}},{name:"ondragstart",description:{kind:"markdown",value:"The user starts dragging an element or text selection."}},{name:"ondrop",description:{kind:"markdown",value:"An element is dropped on a valid drop target."}},{name:"ondurationchange",description:{kind:"markdown",value:"The duration attribute has been updated."}},{name:"onemptied",description:{kind:"markdown",value:"The media has become empty; for example, this event is sent if the media has already been loaded (or partially loaded), and the load() method is called to reload it."}},{name:"onended",description:{kind:"markdown",value:"Playback has stopped because the end of the media was reached."}},{name:"onerror",description:{kind:"markdown",value:"A resource failed to load."}},{name:"onfocus",description:{kind:"markdown",value:"An element has received focus (does not bubble)."}},{name:"onformchange"},{name:"onforminput"},{name:"oninput",description:{kind:"markdown",value:"The value of an element changes or the content of an element with the attribute contenteditable is modified."}},{name:"oninvalid",description:{kind:"markdown",value:"A submittable element has been checked and doesn't satisfy its constraints."}},{name:"onkeydown",description:{kind:"markdown",value:"A key is pressed down."}},{name:"onkeypress",description:{kind:"markdown",value:"A key is pressed down and that key normally produces a character value (use input instead)."}},{name:"onkeyup",description:{kind:"markdown",value:"A key is released."}},{name:"onload",description:{kind:"markdown",value:"A resource and its dependent resources have finished loading."}},{name:"onloadeddata",description:{kind:"markdown",value:"The first frame of the media has finished loading."}},{name:"onloadedmetadata",description:{kind:"markdown",value:"The metadata has been loaded."}},{name:"onloadstart",description:{kind:"markdown",value:"Progress has begun."}},{name:"onmousedown",description:{kind:"markdown",value:"A pointing device button (usually a mouse) is pressed on an element."}},{name:"onmousemove",description:{kind:"markdown",value:"A pointing device is moved over an element."}},{name:"onmouseout",description:{kind:"markdown",value:"A pointing device is moved off the element that has the listener attached or off one of its children."}},{name:"onmouseover",description:{kind:"markdown",value:"A pointing device is moved onto the element that has the listener attached or onto one of its children."}},{name:"onmouseup",description:{kind:"markdown",value:"A pointing device button is released over an element."}},{name:"onmousewheel"},{name:"onmouseenter",description:{kind:"markdown",value:"A pointing device is moved onto the element that has the listener attached."}},{name:"onmouseleave",description:{kind:"markdown",value:"A pointing device is moved off the element that has the listener attached."}},{name:"onpause",description:{kind:"markdown",value:"Playback has been paused."}},{name:"onplay",description:{kind:"markdown",value:"Playback has begun."}},{name:"onplaying",description:{kind:"markdown",value:"Playback is ready to start after having been paused or delayed due to lack of data."}},{name:"onprogress",description:{kind:"markdown",value:"In progress."}},{name:"onratechange",description:{kind:"markdown",value:"The playback rate has changed."}},{name:"onreset",description:{kind:"markdown",value:"A form is reset."}},{name:"onresize",description:{kind:"markdown",value:"The document view has been resized."}},{name:"onreadystatechange",description:{kind:"markdown",value:"The readyState attribute of a document has changed."}},{name:"onscroll",description:{kind:"markdown",value:"The document view or an element has been scrolled."}},{name:"onseeked",description:{kind:"markdown",value:"A seek operation completed."}},{name:"onseeking",description:{kind:"markdown",value:"A seek operation began."}},{name:"onselect",description:{kind:"markdown",value:"Some text is being selected."}},{name:"onshow",description:{kind:"markdown",value:"A contextmenu event was fired on/bubbled to an element that has a contextmenu attribute"}},{name:"onstalled",description:{kind:"markdown",value:"The user agent is trying to fetch media data, but data is unexpectedly not forthcoming."}},{name:"onsubmit",description:{kind:"markdown",value:"A form is submitted."}},{name:"onsuspend",description:{kind:"markdown",value:"Media data loading has been suspended."}},{name:"ontimeupdate",description:{kind:"markdown",value:"The time indicated by the currentTime attribute has been updated."}},{name:"onvolumechange",description:{kind:"markdown",value:"The volume has changed."}},{name:"onwaiting",description:{kind:"markdown",value:"Playback has stopped because of a temporary lack of data."}},{name:"onpointercancel",description:{kind:"markdown",value:"The pointer is unlikely to produce any more events."}},{name:"onpointerdown",description:{kind:"markdown",value:"The pointer enters the active buttons state."}},{name:"onpointerenter",description:{kind:"markdown",value:"Pointing device is moved inside the hit-testing boundary."}},{name:"onpointerleave",description:{kind:"markdown",value:"Pointing device is moved out of the hit-testing boundary."}},{name:"onpointerlockchange",description:{kind:"markdown",value:"The pointer was locked or released."}},{name:"onpointerlockerror",description:{kind:"markdown",value:"It was impossible to lock the pointer for technical reasons or because the permission was denied."}},{name:"onpointermove",description:{kind:"markdown",value:"The pointer changed coordinates."}},{name:"onpointerout",description:{kind:"markdown",value:"The pointing device moved out of hit-testing boundary or leaves detectable hover range."}},{name:"onpointerover",description:{kind:"markdown",value:"The pointing device is moved into the hit-testing boundary."}},{name:"onpointerup",description:{kind:"markdown",value:"The pointer leaves the active buttons state."}},{name:"aria-activedescendant",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-activedescendant"}],description:{kind:"markdown",value:"Identifies the currently active element when DOM focus is on a [`composite`](https://www.w3.org/TR/wai-aria-1.1/#composite) widget, [`textbox`](https://www.w3.org/TR/wai-aria-1.1/#textbox), [`group`](https://www.w3.org/TR/wai-aria-1.1/#group), or [`application`](https://www.w3.org/TR/wai-aria-1.1/#application)."}},{name:"aria-atomic",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-atomic"}],description:{kind:"markdown",value:"Indicates whether [assistive technologies](https://www.w3.org/TR/wai-aria-1.1/#dfn-assistive-technology) will present all, or only parts of, the changed region based on the change notifications defined by the [`aria-relevant`](https://www.w3.org/TR/wai-aria-1.1/#aria-relevant) attribute."}},{name:"aria-autocomplete",valueSet:"autocomplete",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-autocomplete"}],description:{kind:"markdown",value:"Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be presented if they are made."}},{name:"aria-busy",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-busy"}],description:{kind:"markdown",value:"Indicates an element is being modified and that assistive technologies _MAY_ want to wait until the modifications are complete before exposing them to the user."}},{name:"aria-checked",valueSet:"tristate",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-checked"}],description:{kind:"markdown",value:'Indicates the current "checked" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) of checkboxes, radio buttons, and other [widgets](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget). See related [`aria-pressed`](https://www.w3.org/TR/wai-aria-1.1/#aria-pressed) and [`aria-selected`](https://www.w3.org/TR/wai-aria-1.1/#aria-selected).'}},{name:"aria-colcount",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-colcount"}],description:{kind:"markdown",value:"Defines the total number of columns in a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-colindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-colindex)."}},{name:"aria-colindex",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-colindex"}],description:{kind:"markdown",value:"Defines an [element's](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) column index or position with respect to the total number of columns within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-colcount`](https://www.w3.org/TR/wai-aria-1.1/#aria-colcount) and [`aria-colspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-colspan)."}},{name:"aria-colspan",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-colspan"}],description:{kind:"markdown",value:"Defines the number of columns spanned by a cell or gridcell within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-colindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-colindex) and [`aria-rowspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowspan)."}},{name:"aria-controls",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-controls"}],description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) whose contents or presence are controlled by the current element. See related [`aria-owns`](https://www.w3.org/TR/wai-aria-1.1/#aria-owns)."}},{name:"aria-current",valueSet:"current",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-current"}],description:{kind:"markdown",value:"Indicates the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) that represents the current item within a container or set of related elements."}},{name:"aria-describedby",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-describedby"}],description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) that describes the [object](https://www.w3.org/TR/wai-aria-1.1/#dfn-object). See related [`aria-labelledby`](https://www.w3.org/TR/wai-aria-1.1/#aria-labelledby)."}},{name:"aria-disabled",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-disabled"}],description:{kind:"markdown",value:"Indicates that the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is [perceivable](https://www.w3.org/TR/wai-aria-1.1/#dfn-perceivable) but disabled, so it is not editable or otherwise [operable](https://www.w3.org/TR/wai-aria-1.1/#dfn-operable). See related [`aria-hidden`](https://www.w3.org/TR/wai-aria-1.1/#aria-hidden) and [`aria-readonly`](https://www.w3.org/TR/wai-aria-1.1/#aria-readonly)."}},{name:"aria-dropeffect",valueSet:"dropeffect",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-dropeffect"}],description:{kind:"markdown",value:"\\[Deprecated in ARIA 1.1\\] Indicates what functions can be performed when a dragged object is released on the drop target."}},{name:"aria-errormessage",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-errormessage"}],description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) that provides an error message for the [object](https://www.w3.org/TR/wai-aria-1.1/#dfn-object). See related [`aria-invalid`](https://www.w3.org/TR/wai-aria-1.1/#aria-invalid) and [`aria-describedby`](https://www.w3.org/TR/wai-aria-1.1/#aria-describedby)."}},{name:"aria-expanded",valueSet:"u",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-expanded"}],description:{kind:"markdown",value:"Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed."}},{name:"aria-flowto",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-flowto"}],description:{kind:"markdown",value:"Identifies the next [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) in an alternate reading order of content which, at the user's discretion, allows assistive technology to override the general default of reading in document source order."}},{name:"aria-grabbed",valueSet:"u",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-grabbed"}],description:{kind:"markdown",value:`\\[Deprecated in ARIA 1.1\\] Indicates an element's "grabbed" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) in a drag-and-drop operation.`}},{name:"aria-haspopup",valueSet:"haspopup",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-haspopup"}],description:{kind:"markdown",value:"Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element)."}},{name:"aria-hidden",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-hidden"}],description:{kind:"markdown",value:"Indicates whether the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is exposed to an accessibility API. See related [`aria-disabled`](https://www.w3.org/TR/wai-aria-1.1/#aria-disabled)."}},{name:"aria-invalid",valueSet:"invalid",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-invalid"}],description:{kind:"markdown",value:"Indicates the entered value does not conform to the format expected by the application. See related [`aria-errormessage`](https://www.w3.org/TR/wai-aria-1.1/#aria-errormessage)."}},{name:"aria-label",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-label"}],description:{kind:"markdown",value:"Defines a string value that labels the current element. See related [`aria-labelledby`](https://www.w3.org/TR/wai-aria-1.1/#aria-labelledby)."}},{name:"aria-labelledby",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-labelledby"}],description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) that labels the current element. See related [`aria-describedby`](https://www.w3.org/TR/wai-aria-1.1/#aria-describedby)."}},{name:"aria-level",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-level"}],description:{kind:"markdown",value:"Defines the hierarchical level of an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) within a structure."}},{name:"aria-live",valueSet:"live",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-live"}],description:{kind:"markdown",value:"Indicates that an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) will be updated, and describes the types of updates the [user agents](https://www.w3.org/TR/wai-aria-1.1/#dfn-user-agent), [assistive technologies](https://www.w3.org/TR/wai-aria-1.1/#dfn-assistive-technology), and user can expect from the [live region](https://www.w3.org/TR/wai-aria-1.1/#dfn-live-region)."}},{name:"aria-modal",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-modal"}],description:{kind:"markdown",value:"Indicates whether an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is modal when displayed."}},{name:"aria-multiline",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-multiline"}],description:{kind:"markdown",value:"Indicates whether a text box accepts multiple lines of input or only a single line."}},{name:"aria-multiselectable",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-multiselectable"}],description:{kind:"markdown",value:"Indicates that the user may select more than one item from the current selectable descendants."}},{name:"aria-orientation",valueSet:"orientation",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-orientation"}],description:{kind:"markdown",value:"Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous."}},{name:"aria-owns",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-owns"}],description:{kind:"markdown",value:"Identifies an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) in order to define a visual, functional, or contextual parent/child [relationship](https://www.w3.org/TR/wai-aria-1.1/#dfn-relationship) between DOM elements where the DOM hierarchy cannot be used to represent the relationship. See related [`aria-controls`](https://www.w3.org/TR/wai-aria-1.1/#aria-controls)."}},{name:"aria-placeholder",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-placeholder"}],description:{kind:"markdown",value:"Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value. A hint could be a sample value or a brief description of the expected format."}},{name:"aria-posinset",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-posinset"}],description:{kind:"markdown",value:"Defines an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element)'s number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. See related [`aria-setsize`](https://www.w3.org/TR/wai-aria-1.1/#aria-setsize)."}},{name:"aria-pressed",valueSet:"tristate",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-pressed"}],description:{kind:"markdown",value:'Indicates the current "pressed" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) of toggle buttons. See related [`aria-checked`](https://www.w3.org/TR/wai-aria-1.1/#aria-checked) and [`aria-selected`](https://www.w3.org/TR/wai-aria-1.1/#aria-selected).'}},{name:"aria-readonly",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-readonly"}],description:{kind:"markdown",value:"Indicates that the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is not editable, but is otherwise [operable](https://www.w3.org/TR/wai-aria-1.1/#dfn-operable). See related [`aria-disabled`](https://www.w3.org/TR/wai-aria-1.1/#aria-disabled)."}},{name:"aria-relevant",valueSet:"relevant",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-relevant"}],description:{kind:"markdown",value:"Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified. See related [`aria-atomic`](https://www.w3.org/TR/wai-aria-1.1/#aria-atomic)."}},{name:"aria-required",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-required"}],description:{kind:"markdown",value:"Indicates that user input is required on the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) before a form may be submitted."}},{name:"aria-roledescription",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-roledescription"}],description:{kind:"markdown",value:"Defines a human-readable, author-localized description for the [role](https://www.w3.org/TR/wai-aria-1.1/#dfn-role) of an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element)."}},{name:"aria-rowcount",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-rowcount"}],description:{kind:"markdown",value:"Defines the total number of rows in a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-rowindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowindex)."}},{name:"aria-rowindex",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-rowindex"}],description:{kind:"markdown",value:"Defines an [element's](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) row index or position with respect to the total number of rows within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-rowcount`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowcount) and [`aria-rowspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowspan)."}},{name:"aria-rowspan",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-rowspan"}],description:{kind:"markdown",value:"Defines the number of rows spanned by a cell or gridcell within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-rowindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowindex) and [`aria-colspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-colspan)."}},{name:"aria-selected",valueSet:"u",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-selected"}],description:{kind:"markdown",value:'Indicates the current "selected" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) of various [widgets](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget). See related [`aria-checked`](https://www.w3.org/TR/wai-aria-1.1/#aria-checked) and [`aria-pressed`](https://www.w3.org/TR/wai-aria-1.1/#aria-pressed).'}},{name:"aria-setsize",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-setsize"}],description:{kind:"markdown",value:"Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. See related [`aria-posinset`](https://www.w3.org/TR/wai-aria-1.1/#aria-posinset)."}},{name:"aria-sort",valueSet:"sort",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-sort"}],description:{kind:"markdown",value:"Indicates if items in a table or grid are sorted in ascending or descending order."}},{name:"aria-valuemax",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-valuemax"}],description:{kind:"markdown",value:"Defines the maximum allowed value for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget)."}},{name:"aria-valuemin",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-valuemin"}],description:{kind:"markdown",value:"Defines the minimum allowed value for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget)."}},{name:"aria-valuenow",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-valuenow"}],description:{kind:"markdown",value:"Defines the current value for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget). See related [`aria-valuetext`](https://www.w3.org/TR/wai-aria-1.1/#aria-valuetext)."}},{name:"aria-valuetext",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-valuetext"}],description:{kind:"markdown",value:"Defines the human readable text alternative of [`aria-valuenow`](https://www.w3.org/TR/wai-aria-1.1/#aria-valuenow) for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget)."}},{name:"aria-details",description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) that provides a detailed, extended description for the [object](https://www.w3.org/TR/wai-aria-1.1/#dfn-object). See related [`aria-describedby`](https://www.w3.org/TR/wai-aria-1.1/#aria-describedby)."}},{name:"aria-keyshortcuts",description:{kind:"markdown",value:"Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element."}}],valueSets:[{name:"b",values:[{name:"true"},{name:"false"}]},{name:"u",values:[{name:"true"},{name:"false"},{name:"undefined"}]},{name:"o",values:[{name:"on"},{name:"off"}]},{name:"y",values:[{name:"yes"},{name:"no"}]},{name:"w",values:[{name:"soft"},{name:"hard"}]},{name:"d",values:[{name:"ltr"},{name:"rtl"},{name:"auto"}]},{name:"m",values:[{name:"get",description:{kind:"markdown",value:"Corresponds to the HTTP [GET method](https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.3); form data are appended to the `action` attribute URI with a '?' as separator, and the resulting URI is sent to the server. Use this method when the form has no side-effects and contains only ASCII characters."}},{name:"post",description:{kind:"markdown",value:"Corresponds to the HTTP [POST method](https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.5); form data are included in the body of the form and sent to the server."}},{name:"dialog",description:{kind:"markdown",value:"Use when the form is inside a [`<dialog>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog) element to close the dialog when submitted."}}]},{name:"fm",values:[{name:"get"},{name:"post"}]},{name:"s",values:[{name:"row"},{name:"col"},{name:"rowgroup"},{name:"colgroup"}]},{name:"t",values:[{name:"hidden"},{name:"text"},{name:"search"},{name:"tel"},{name:"url"},{name:"email"},{name:"password"},{name:"datetime"},{name:"date"},{name:"month"},{name:"week"},{name:"time"},{name:"datetime-local"},{name:"number"},{name:"range"},{name:"color"},{name:"checkbox"},{name:"radio"},{name:"file"},{name:"submit"},{name:"image"},{name:"reset"},{name:"button"}]},{name:"im",values:[{name:"verbatim"},{name:"latin"},{name:"latin-name"},{name:"latin-prose"},{name:"full-width-latin"},{name:"kana"},{name:"kana-name"},{name:"katakana"},{name:"numeric"},{name:"tel"},{name:"email"},{name:"url"}]},{name:"bt",values:[{name:"button"},{name:"submit"},{name:"reset"},{name:"menu"}]},{name:"lt",values:[{name:"1"},{name:"a"},{name:"A"},{name:"i"},{name:"I"}]},{name:"mt",values:[{name:"context"},{name:"toolbar"}]},{name:"mit",values:[{name:"command"},{name:"checkbox"},{name:"radio"}]},{name:"et",values:[{name:"application/x-www-form-urlencoded"},{name:"multipart/form-data"},{name:"text/plain"}]},{name:"tk",values:[{name:"subtitles"},{name:"captions"},{name:"descriptions"},{name:"chapters"},{name:"metadata"}]},{name:"pl",values:[{name:"none"},{name:"metadata"},{name:"auto"}]},{name:"sh",values:[{name:"circle"},{name:"default"},{name:"poly"},{name:"rect"}]},{name:"xo",values:[{name:"anonymous"},{name:"use-credentials"}]},{name:"target",values:[{name:"_self"},{name:"_blank"},{name:"_parent"},{name:"_top"}]},{name:"sb",values:[{name:"allow-forms"},{name:"allow-modals"},{name:"allow-pointer-lock"},{name:"allow-popups"},{name:"allow-popups-to-escape-sandbox"},{name:"allow-same-origin"},{name:"allow-scripts"},{name:"allow-top-navigation"}]},{name:"tristate",values:[{name:"true"},{name:"false"},{name:"mixed"},{name:"undefined"}]},{name:"inputautocomplete",values:[{name:"additional-name"},{name:"address-level1"},{name:"address-level2"},{name:"address-level3"},{name:"address-level4"},{name:"address-line1"},{name:"address-line2"},{name:"address-line3"},{name:"bday"},{name:"bday-year"},{name:"bday-day"},{name:"bday-month"},{name:"billing"},{name:"cc-additional-name"},{name:"cc-csc"},{name:"cc-exp"},{name:"cc-exp-month"},{name:"cc-exp-year"},{name:"cc-family-name"},{name:"cc-given-name"},{name:"cc-name"},{name:"cc-number"},{name:"cc-type"},{name:"country"},{name:"country-name"},{name:"current-password"},{name:"email"},{name:"family-name"},{name:"fax"},{name:"given-name"},{name:"home"},{name:"honorific-prefix"},{name:"honorific-suffix"},{name:"impp"},{name:"language"},{name:"mobile"},{name:"name"},{name:"new-password"},{name:"nickname"},{name:"off"},{name:"on"},{name:"organization"},{name:"organization-title"},{name:"pager"},{name:"photo"},{name:"postal-code"},{name:"sex"},{name:"shipping"},{name:"street-address"},{name:"tel-area-code"},{name:"tel"},{name:"tel-country-code"},{name:"tel-extension"},{name:"tel-local"},{name:"tel-local-prefix"},{name:"tel-local-suffix"},{name:"tel-national"},{name:"transaction-amount"},{name:"transaction-currency"},{name:"url"},{name:"username"},{name:"work"}]},{name:"autocomplete",values:[{name:"inline"},{name:"list"},{name:"both"},{name:"none"}]},{name:"current",values:[{name:"page"},{name:"step"},{name:"location"},{name:"date"},{name:"time"},{name:"true"},{name:"false"}]},{name:"dropeffect",values:[{name:"copy"},{name:"move"},{name:"link"},{name:"execute"},{name:"popup"},{name:"none"}]},{name:"invalid",values:[{name:"grammar"},{name:"false"},{name:"spelling"},{name:"true"}]},{name:"live",values:[{name:"off"},{name:"polite"},{name:"assertive"}]},{name:"orientation",values:[{name:"vertical"},{name:"horizontal"},{name:"undefined"}]},{name:"relevant",values:[{name:"additions"},{name:"removals"},{name:"text"},{name:"all"},{name:"additions text"}]},{name:"sort",values:[{name:"ascending"},{name:"descending"},{name:"none"},{name:"other"}]},{name:"roles",values:[{name:"alert"},{name:"alertdialog"},{name:"button"},{name:"checkbox"},{name:"dialog"},{name:"gridcell"},{name:"link"},{name:"log"},{name:"marquee"},{name:"menuitem"},{name:"menuitemcheckbox"},{name:"menuitemradio"},{name:"option"},{name:"progressbar"},{name:"radio"},{name:"scrollbar"},{name:"searchbox"},{name:"slider"},{name:"spinbutton"},{name:"status"},{name:"switch"},{name:"tab"},{name:"tabpanel"},{name:"textbox"},{name:"timer"},{name:"tooltip"},{name:"treeitem"},{name:"combobox"},{name:"grid"},{name:"listbox"},{name:"menu"},{name:"menubar"},{name:"radiogroup"},{name:"tablist"},{name:"tree"},{name:"treegrid"},{name:"application"},{name:"article"},{name:"cell"},{name:"columnheader"},{name:"definition"},{name:"directory"},{name:"document"},{name:"feed"},{name:"figure"},{name:"group"},{name:"heading"},{name:"img"},{name:"list"},{name:"listitem"},{name:"math"},{name:"none"},{name:"note"},{name:"presentation"},{name:"region"},{name:"row"},{name:"rowgroup"},{name:"rowheader"},{name:"separator"},{name:"table"},{name:"term"},{name:"text"},{name:"toolbar"},{name:"banner"},{name:"complementary"},{name:"contentinfo"},{name:"form"},{name:"main"},{name:"navigation"},{name:"region"},{name:"search"},{name:"doc-abstract"},{name:"doc-acknowledgments"},{name:"doc-afterword"},{name:"doc-appendix"},{name:"doc-backlink"},{name:"doc-biblioentry"},{name:"doc-bibliography"},{name:"doc-biblioref"},{name:"doc-chapter"},{name:"doc-colophon"},{name:"doc-conclusion"},{name:"doc-cover"},{name:"doc-credit"},{name:"doc-credits"},{name:"doc-dedication"},{name:"doc-endnote"},{name:"doc-endnotes"},{name:"doc-epigraph"},{name:"doc-epilogue"},{name:"doc-errata"},{name:"doc-example"},{name:"doc-footnote"},{name:"doc-foreword"},{name:"doc-glossary"},{name:"doc-glossref"},{name:"doc-index"},{name:"doc-introduction"},{name:"doc-noteref"},{name:"doc-notice"},{name:"doc-pagebreak"},{name:"doc-pagelist"},{name:"doc-part"},{name:"doc-preface"},{name:"doc-prologue"},{name:"doc-pullquote"},{name:"doc-qna"},{name:"doc-subtitle"},{name:"doc-tip"},{name:"doc-toc"}]},{name:"metanames",values:[{name:"application-name"},{name:"author"},{name:"description"},{name:"format-detection"},{name:"generator"},{name:"keywords"},{name:"publisher"},{name:"referrer"},{name:"robots"},{name:"theme-color"},{name:"viewport"}]},{name:"haspopup",values:[{name:"false",description:{kind:"markdown",value:"(default) Indicates the element does not have a popup."}},{name:"true",description:{kind:"markdown",value:"Indicates the popup is a menu."}},{name:"menu",description:{kind:"markdown",value:"Indicates the popup is a menu."}},{name:"listbox",description:{kind:"markdown",value:"Indicates the popup is a listbox."}},{name:"tree",description:{kind:"markdown",value:"Indicates the popup is a tree."}},{name:"grid",description:{kind:"markdown",value:"Indicates the popup is a grid."}},{name:"dialog",description:{kind:"markdown",value:"Indicates the popup is a dialog."}}]},{name:"decoding",values:[{name:"sync"},{name:"async"},{name:"auto"}]},{name:"loading",values:[{name:"eager",description:{kind:"markdown",value:"Loads the image immediately, regardless of whether or not the image is currently within the visible viewport (this is the default value)."}},{name:"lazy",description:{kind:"markdown",value:"Defers loading the image until it reaches a calculated distance from the viewport, as defined by the browser. The intent is to avoid the network and storage bandwidth needed to handle the image until it's reasonably certain that it will be needed. This generally improves the performance of the content in most typical use cases."}}]},{name:"referrerpolicy",values:[{name:"no-referrer"},{name:"no-referrer-when-downgrade"},{name:"origin"},{name:"origin-when-cross-origin"},{name:"same-origin"},{name:"strict-origin"},{name:"strict-origin-when-cross-origin"},{name:"unsafe-url"}]}]}});var Of,A8,C2=xe(()=>{wu();C_();g_();Of=class{constructor(e){this.dataProviders=[],this.setDataProviders(e.useDefaultDataProvider!==!1,e.customDataProviders||[])}setDataProviders(e,n){this.dataProviders=[],e&&this.dataProviders.push(new _l("html5",Mf)),this.dataProviders.push(...n)}getDataProviders(){return this.dataProviders}isVoidElement(e,n){return!!e&&zA(n,e.toLowerCase(),(r,i)=>r.localeCompare(i))>=0}getVoidElements(e){let n=Array.isArray(e)?e:this.getDataProviders().filter(i=>i.isApplicable(e)),r=[];return n.forEach(i=>{i.provideTags().filter(s=>s.void).forEach(s=>r.push(s.name))}),r.sort()}isPathAttribute(e,n){if(n==="src"||n==="href")return!0;let r=A8[e];return r?typeof r=="string"?r===n:r.indexOf(n)!==-1:!1}},A8={a:"href",area:"href",body:"background",blockquote:"cite",del:"cite",form:"action",frame:["src","longdesc"],img:["src","longdesc"],ins:"cite",link:"href",object:"data",q:"cite",script:"src",audio:"src",button:"formaction",command:"icon",embed:"src",html:"manifest",input:["src","formaction"],source:"src",track:"src",video:["src","poster"]}});var Sl={};Sv(Sl,{ClientCapabilities:()=>h_,Color:()=>ie.Color,ColorInformation:()=>ie.ColorInformation,ColorPresentation:()=>ie.ColorPresentation,Command:()=>ie.Command,CompletionItem:()=>ie.CompletionItem,CompletionItemKind:()=>ie.CompletionItemKind,CompletionItemTag:()=>ie.CompletionItemTag,CompletionList:()=>ie.CompletionList,Diagnostic:()=>ie.Diagnostic,DocumentHighlight:()=>ie.DocumentHighlight,DocumentHighlightKind:()=>ie.DocumentHighlightKind,DocumentLink:()=>ie.DocumentLink,DocumentSymbol:()=>ie.DocumentSymbol,DocumentUri:()=>ie.DocumentUri,FileType:()=>yu,FoldingRange:()=>ie.FoldingRange,FoldingRangeKind:()=>ie.FoldingRangeKind,FormattingOptions:()=>ie.FormattingOptions,Hover:()=>ie.Hover,InsertReplaceEdit:()=>ie.InsertReplaceEdit,InsertTextFormat:()=>ie.InsertTextFormat,InsertTextMode:()=>ie.InsertTextMode,Location:()=>ie.Location,MarkedString:()=>ie.MarkedString,MarkupContent:()=>ie.MarkupContent,MarkupKind:()=>ie.MarkupKind,Position:()=>ie.Position,Range:()=>ie.Range,ScannerState:()=>Ie,SelectionRange:()=>ie.SelectionRange,SymbolInformation:()=>ie.SymbolInformation,SymbolKind:()=>ie.SymbolKind,TextDocument:()=>bl,TextEdit:()=>ie.TextEdit,TokenType:()=>he,WorkspaceEdit:()=>ie.WorkspaceEdit,getDefaultHTMLDataProvider:()=>M8,getLanguageService:()=>I8,newHTMLDataProvider:()=>k2});function I8(t=P8){let e=new Of(t),n=new Rf(t,e),r=new Ef(t,e),i=new kf(e),s=new If(i),o=new Pf(e),l=new Af(e);return{setDataProviders:e.setDataProviders.bind(e),createScanner:Vt,parseHTMLDocument:i.parseDocument.bind(i),doComplete:r.doComplete.bind(r),doComplete2:r.doComplete2.bind(r),setCompletionParticipants:r.setCompletionParticipants.bind(r),doHover:n.doHover.bind(n),format:s2,findDocumentHighlights:h2,findDocumentLinks:l.findDocumentLinks.bind(l),findDocumentSymbols:f2,findDocumentSymbols2:S_,getFoldingRanges:o.getFoldingRanges.bind(o),getSelectionRanges:s.getSelectionRanges.bind(s),doQuoteComplete:r.doQuoteComplete.bind(r),doTagComplete:r.doTagComplete.bind(r),doRename:b2,findMatchingTagPosition:y2,findOnTypeRenameRanges:x_,findLinkedEditingRanges:x_}}function k2(t,e){return new _l(t,e)}function M8(){return k2("default",Mf)}var P8,xl=xe(()=>{ns();qA();VA();KA();o2();l2();p2();g2();v2();w2();_2();S2();x2();wu();C2();C_();Vn();P8={}});var Nf=L(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.getWorkspacePnpPath=En.getPrettierPluginPath=En.importPrettier=En.importVueIntegration=En.importSvelteIntegration=En.getPackagePath=En.setIsTrusted=void 0;var k_=require("node:path"),T2=!0;function O8(t){T2=t}En.setIsTrusted=O8;function Lf(t,e,n=!0){let r=[];T2&&r.unshift(...e);try{return n?(0,k_.dirname)(require.resolve(t+"/package.json",{paths:r})):require.resolve(t,{paths:r})}catch{return}}En.getPackagePath=Lf;function E2(t,e){let n=Lf(t,[e]);if(n)try{let r=(0,k_.resolve)(n,"dist","editor.cjs");return require(r)}catch(r){console.error(`Couldn't load editor module from ${n}. Make sure you're using at least version v0.2.1 of the corresponding integration. Reason: ${r}`);return}}function L8(t){return E2("@astrojs/svelte",t)}En.importSvelteIntegration=L8;function N8(t){return E2("@astrojs/vue",t)}En.importVueIntegration=N8;function z8(t){let e=Lf("prettier",[t,__dirname]);if(e)return require(e)}En.importPrettier=z8;function q8(t){let e=Lf("prettier-plugin-astro",[t,__dirname],!1);if(e)return e}En.getPrettierPluginPath=q8;function j8(t){try{let e=(0,k_.resolve)(t,".pnp.cjs");return require.resolve(e),e}catch{return null}}En.getWorkspacePnpPath=j8});var zf=L(Gn=>{"use strict";var W8=Gn&&Gn.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),U8=Gn&&Gn.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),H8=Gn&&Gn.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&W8(e,t,n);return U8(e,t),e};Object.defineProperty(Gn,"__esModule",{value:!0});Gn.patchTSX=Gn.classNameFromFilename=Gn.framework2tsx=void 0;var T_=mn(),D2=H8(require("node:path")),E_=Vr(),R2=Nf();function $8(t,e,n,r){let i=r==="vue"?(0,R2.importVueIntegration)(e):(0,R2.importSvelteIntegration)(e);if(!i)return l("");let s=F2(e),o=A2(i.toTSX(n,s),t);return l(o);function l(a){return{fileName:t+".tsx",capabilities:T_.FileCapabilities.full,kind:T_.FileKind.TypeScriptHostFile,snapshot:{getText:(c,u)=>a.substring(c,u),getLength:()=>a.length,getChangeRange:()=>{}},codegenStacks:[],mappings:[{sourceRange:[0,a.length],generatedRange:[0,0],data:T_.FileRangeCapabilities.full}],embeddedFiles:[]}}}Gn.framework2tsx=$8;function B8(t){return`${t}`.replace(new RegExp(/[-_]+/,"g")," ").replace(new RegExp(/[^\w\s]/,"g"),"").replace(new RegExp(/\s+(.)(\w*)/,"g"),(e,n,r)=>`${n.toUpperCase()+r.toLowerCase()}`).replace(new RegExp(/\w/),e=>e.toUpperCase())}function F2(t){let e=E_.URI.parse(t),r=E_.Utils.basename(e).slice(0,-E_.Utils.extname(e).length).split("").filter(a=>/[A-Za-z$_\d-]/.test(a)).join(""),i=r.split("").findIndex(a=>/[A-Za-z]/.test(a)),s=r.substring(i),o=B8(s);return i===-1?`A${o}`:o}Gn.classNameFromFilename=F2;function A2(t,e){let n=D2.basename(e,D2.extname(e)),r=n.startsWith("[")&&n.endsWith("]");return t.replace(/\b(\S*)__AstroComponent_/gm,(i,s)=>s?r?`_${s}_`:s[0].toUpperCase()+s.slice(1):n==="404"?"FourOhFour":i)}Gn.patchTSX=A2});var L2=L(Ys=>{"use strict";Object.defineProperty(Ys,"__esModule",{value:!0});Ys.astro2tsx=Ys.getTSXRangesAsLSPRanges=Ys.safeConvertToTSX=void 0;var V8=require("@astrojs/compiler/sync"),G8=PA(),P2=mn(),I2=Xs(),D_=(xl(),Ro(Sl)),K8=zf();function M2(t,e){try{return(0,V8.convertToTSX)(t,{filename:e.filename})}catch(n){return console.error(`There was an error transforming ${e.filename} to TSX. An empty file will be returned instead. Please create an issue: https://github.com/withastro/language-tools/issues
531
531
  Error: ${n}.`),{code:"",map:{file:e.filename??"",sources:[],sourcesContent:[],names:[],mappings:"",version:0},diagnostics:[{code:1e3,location:{file:e.filename,line:1,column:1,length:t.length},severity:1,text:"The Astro compiler encountered an unknown error while transform this file to TSX. Please create an issue with your code and the error shown in the server's logs: https://github.com/withastro/language-tools/issues"}],metaRanges:{frontmatter:{start:0,end:0},body:{start:0,end:0}}}}}Ys.safeConvertToTSX=M2;function O2(t){let e=D_.TextDocument.create("","typescriptreact",0,t.code);return{frontmatter:I2.Range.create(e.positionAt(t.metaRanges.frontmatter.start),e.positionAt(t.metaRanges.frontmatter.end)),body:I2.Range.create(e.positionAt(t.metaRanges.body.start),e.positionAt(t.metaRanges.body.end))}}Ys.getTSXRangesAsLSPRanges=O2;function J8(t,e,n,r){let i=M2(t,{filename:e});return{virtualFile:X8(t,i,e,n,r),diagnostics:i.diagnostics,ranges:O2(i)}}Ys.astro2tsx=J8;function X8(t,e,n,r,i){e.code=(0,K8.patchTSX)(e.code,n);let s=(0,G8.decode)(e.map.mappings),o=D_.TextDocument.create(n,"astro",0,t),l=D_.TextDocument.create(n+".tsx","typescriptreact",0,e.code),a=[],c;for(let d=0;d<s.length;d++)for(let h of s[d]){let m=h[0],p=l.offsetAt({line:d,character:m});if(c){let g=p-c.genOffset,_=t.substring(c.sourceOffset,c.sourceOffset+g),f=e.code.substring(c.genOffset,c.genOffset+g);if(_!==f){g=0;for(let b=0;b<p-c.genOffset&&_[b]===f[b];b++)g=b+1}if(g>0){let b=a.length?a[a.length-1]:void 0;if(b&&b.generatedRange[1]===c.genOffset&&b.sourceRange[1]===c.sourceOffset)b.generatedRange[1]=c.genOffset+g,b.sourceRange[1]=c.sourceOffset+g;else{let S=i.findNodeAt(c.sourceOffset).tag!=="script"?P2.FileRangeCapabilities.full:{completion:!1,definition:!1,diagnostic:!1,displayWithLink:!1,hover:!1,references:!1,referencesCodeLens:!1,rename:!1,semanticTokens:!1};a.push({sourceRange:[c.sourceOffset,c.sourceOffset+g],generatedRange:[c.genOffset,c.genOffset+g],data:S})}}c=void 0}if(h[2]!==void 0&&h[3]!==void 0){let g=o.offsetAt({line:h[2],character:h[3]});c={genOffset:p,sourceOffset:g}}}let u=r.createSourceFile("/a.tsx",e.code,r.ScriptTarget.ESNext);return u.statements[0]&&a.push({sourceRange:[0,t.length],generatedRange:[u.statements[0].getStart(u),e.code.length],data:{}}),{fileName:n+".tsx",kind:P2.FileKind.TypeScriptHostFile,capabilities:{codeAction:!0,documentFormatting:!1,diagnostic:!0,documentSymbol:!0,inlayHint:!0,foldingRange:!0},codegenStacks:[],snapshot:{getText:(d,h)=>e.code.substring(d,h),getLength:()=>e.code.length,getChangeRange:()=>{}},mappings:a,embeddedFiles:[]}}});var N2=L(qf=>{"use strict";Object.defineProperty(qf,"__esModule",{value:!0});qf.getAstroMetadata=void 0;var Q8=require("@astrojs/compiler/sync");function Y8(t,e,n={position:!0}){let r=Z8(t,e,n);return{...r,frontmatter:eV(r.ast,e)}}qf.getAstroMetadata=Y8;function Z8(t,e,n){try{return(0,Q8.parse)(e,n)}catch(r){return console.error(`There was an error parsing ${t}'s AST. An empty AST will be returned instead to avoid breaking the server. Please create an issue: https://github.com/withastro/language-tools/issues
532
532
  Error: ${r}.`),{ast:{type:"root",children:[]},diagnostics:[{code:1e3,location:{file:t,line:1,column:1,length:e.length},severity:1,text:"The Astro compiler encountered an unknown error while parsing this file's AST. Please create an issue with your code and the error shown in the server's logs: https://github.com/withastro/language-tools/issues"}]}}}function eV(t,e){if(!t.children||t.children&&t.children.length===0)return{status:"doesnt-exist",position:void 0};if(t.children[0].type==="frontmatter"){let n=t.children[0];if(n.position)return n.position.end?n.position.end.offset===e.length&&!e.endsWith("---")?{status:"open",position:{start:n.position.start,end:void 0}}:{status:"closed",position:{start:n.position.start,end:n.position.end}}:{status:"open",position:{start:n.position.start,end:void 0}}}return{status:"doesnt-exist",position:void 0}}});var q2=L(_r=>{"use strict";var tV=_r&&_r.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),nV=_r&&_r.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),z2=_r&&_r.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&tV(e,t,n);return nV(e,t),e};Object.defineProperty(_r,"__esModule",{value:!0});_r.collectClassesAndIdsFromDocument=_r.extractStylesheets=void 0;var jf=require("@astrojs/compiler/utils"),Wf=mn(),rV=z2(cu()),iV=z2($h());function sV(t,e,n,r){let i=oV(t,e,n.roots),s=aV(r);if(s.length>0){let o=[];for(let c of s)o.push("x { "),o.push([c.value,void 0,c.position.start.offset+7,Wf.FileRangeCapabilities.full]),o.push(` }
533
- `);let l=rV.buildMappings(o),a=iV.toString(o);i.push({fileName:t+".inline.css",codegenStacks:[],snapshot:{getText:(c,u)=>a.substring(c,u),getLength:()=>a.length,getChangeRange:()=>{}},capabilities:{documentSymbol:!0},embeddedFiles:[],kind:Wf.FileKind.TextFile,mappings:l})}return i}_r.extractStylesheets=sV;function oV(t,e,n){let r=[],i=0;s(n);function s(o){for(let[l,a]of o.entries()){if(a.tag==="style"&&a.startTagEnd!==void 0&&a.endTagStart!==void 0){let c=e.getText(a.startTagEnd,a.endTagStart);r.push({fileName:t+`.${i}.css`,kind:Wf.FileKind.TextFile,snapshot:{getText:(u,d)=>c.substring(u,d),getLength:()=>c.length,getChangeRange:()=>{}},codegenStacks:[],mappings:[{sourceRange:[a.startTagEnd,a.endTagStart],generatedRange:[0,c.length],data:Wf.FileRangeCapabilities.full}],capabilities:{diagnostic:!1,documentSymbol:!0,foldingRange:!0,documentFormatting:!1},embeddedFiles:[]}),i++}a.children&&s(a.children)}}return r}function aV(t){let e=[];function n(r){r.children&&r.children.forEach(i=>{if(jf.is.element(i)){let s=i.attributes.find(o=>o.name==="style"&&o.kind==="quoted");s&&s.position&&e.push(s)}jf.is.parent(i)&&n(i)})}return n(t),e}function lV(t){let e=[];function n(r){r.children&&r.children.forEach(i=>{if(jf.is.element(i)){let s=i.attributes.filter(o=>o.kind==="quoted"&&(o.name==="class"||o.name==="id")).flatMap(o=>o.value.split(" "));e.push(...s)}jf.is.parent(i)&&n(i)})}return n(t),e}_r.collectClassesAndIdsFromDocument=lV});var $o=L($t=>{"use strict";Object.defineProperty($t,"__esModule",{value:!0});$t.editShouldBeInFrontmatter=$t.getOpenFrontmatterEdit=$t.getNewFrontmatterEdit=$t.ensureRangeIsInFrontmatter=$t.ensureProperEditForFrontmatter=$t.isInsideFrontmatter=$t.isInsideExpression=$t.isInComponentStartTag=$t.isPossibleComponent=$t.isJSDocument=void 0;var Uf=(xl(),Ro(Sl));function cV(t){return t==="javascript"||t==="typescript"||t==="javascriptreact"||t==="typescriptreact"}$t.isJSDocument=cV;function j2(t){return!!t.tag?.[0].match(/[A-Z]/)||!!t.tag?.match(/.+[.][A-Z]?/)}$t.isPossibleComponent=j2;function uV(t,e){let n=t.findNodeAt(e);return j2(n)&&(!n.startTagEnd||e<n.startTagEnd)}$t.isInComponentStartTag=uV;function dV(t,e,n){let r=t.substring(e,n);return r.lastIndexOf("{")>r.lastIndexOf("}")}$t.isInsideExpression=dV;function hV(t,e){switch(e.status){case"closed":return t>e.position.start.offset&&t<e.position.end.offset;case"open":return t>e.position.start.offset;case"doesnt-exist":return!1}}$t.isInsideFrontmatter=hV;function pV(t,e,n,r="top"){switch(e.frontmatter.status){case"open":return H2(t,e,n);case"closed":let i=W2(t.range,e,r);return{newText:i.start.line===e.frontmatter.position.start.line&&t.newText.startsWith(n)?t.newText.trimStart():t.newText,range:i};case"doesnt-exist":return U2(t,e,n)}}$t.ensureProperEditForFrontmatter=pV;function W2(t,e,n="top"){if(e.frontmatter.status==="open"||e.frontmatter.status==="closed"){let r=e.frontmatter.position.end?e.tsxRanges.frontmatter.end:void 0;return t.start.line<e.tsxRanges.frontmatter.start.line||r&&t.start.line>r.line?r&&n==="bottom"?Uf.Range.create(r,r):Uf.Range.create(e.tsxRanges.frontmatter.start,e.tsxRanges.frontmatter.start):t}return t}$t.ensureRangeIsInFrontmatter=W2;function U2(t,e,n){return t.newText=`---${t.newText.startsWith(n)?"":n}${t.newText}---${n}${n}`,t.range=Uf.Range.create(e.tsxRanges.frontmatter.start,e.tsxRanges.frontmatter.start),t}$t.getNewFrontmatterEdit=U2;function H2(t,e,n){return t.newText=t.newText.startsWith(n)?`${t.newText}---`:`${n}${t.newText}---`,t.range=Uf.Range.create(e.tsxRanges.frontmatter.start,e.tsxRanges.frontmatter.start),t}$t.getOpenFrontmatterEdit=H2;function fV(t,e){let n=t.start.line<e.tsxRanges.frontmatter.start.line,r=t.start.line>e.tsxRanges.body.end.line;return n||r?{itShould:!0,position:r?"bottom":"top"}:{itShould:!1,position:void 0}}$t.editShouldBeInFrontmatter=fV});var K2=L(Sr=>{"use strict";var mV=Sr&&Sr.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),gV=Sr&&Sr.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),bV=Sr&&Sr.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&mV(e,t,n);return gV(e,t),e};Object.defineProperty(Sr,"__esModule",{value:!0});Sr.preprocessHTML=Sr.parseHTML=void 0;var $2=mn(),Zs=bV((xl(),Ro(Sl))),vV=$o(),V2=Zs.getLanguageService();function yV(t,e,n){let r=G2(e.getText(0,e.getLength()),n);return{virtualFile:wV(t,r),htmlDocument:_V(r)}}Sr.parseHTML=yV;var B2=V2.createScanner;function G2(t,e){let n=t.split("").fill(" ",0,e).join(""),r=B2(n),i=r.scan(),s=null;for(;i!==Zs.TokenType.EOS;){let a=r.getTokenOffset();i===Zs.TokenType.StartTagOpen&&(s=a),i===Zs.TokenType.StartTagClose&&(o(a)?l(a):s=null),i===Zs.TokenType.StartTagSelfClose&&(s=null),i===Zs.TokenType.Unknown&&r.getScannerState()===Zs.ScannerState.WithinTag&&r.getTokenText()==="<"&&o(a)&&l(a),i=r.scan()}return n;function o(a){return s!==null&&(0,vV.isInsideExpression)(n,s,a)}function l(a,c){n=n.substring(0,a)+" "+n.substring(a+1),r=B2(n,a,c??Zs.ScannerState.WithinTag)}}Sr.preprocessHTML=G2;function wV(t,e){return{fileName:t+".html",kind:$2.FileKind.TextFile,snapshot:{getText:(n,r)=>e.substring(n,r),getLength:()=>e.length,getChangeRange:()=>{}},codegenStacks:[],mappings:[{sourceRange:[0,e.length],generatedRange:[0,e.length],data:$2.FileRangeCapabilities.full}],capabilities:{documentSymbol:!0,foldingRange:!0,documentFormatting:!1},embeddedFiles:[]}}function _V(t){return V2.parseHTMLDocument({getText:()=>t})}});var Q2=L(ki=>{"use strict";var SV=ki&&ki.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),xV=ki&&ki.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),X2=ki&&ki.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&SV(e,t,n);return xV(e,t),e};Object.defineProperty(ki,"__esModule",{value:!0});ki.extractScriptTags=void 0;var J2=require("@astrojs/compiler/utils"),Hf=mn(),CV=X2(cu()),kV=X2($h());function TV(t,e,n,r){let i=EV(t,e,n.roots),s=[...DV(n,e),...AV(r)].sort((o,l)=>o.startOffset-l.startOffset);return s.length>0&&i.push(PV(t,s)),i}ki.extractScriptTags=TV;function R_(t){return!t.attributes||Object.entries(t.attributes).length===0?"processed module":t.attributes.type?.includes("module")===!0?"module":"classic"}function EV(t,e,n){let r=[],i=0;s(n);function s(o){for(let[l,a]of o.entries()){if(a.tag==="script"&&a.startTagEnd!==void 0&&a.endTagStart!==void 0&&R_(a)!=="classic"){let c=e.getText(a.startTagEnd,a.endTagStart),u=R_(a)==="processed module"?"mts":"mjs";r.push({fileName:t+`.${i}.${u}`,kind:Hf.FileKind.TypeScriptHostFile,snapshot:{getText:(d,h)=>c.substring(d,h),getLength:()=>c.length,getChangeRange:()=>{}},codegenStacks:[],mappings:[{sourceRange:[a.startTagEnd,a.endTagStart],generatedRange:[0,c.length],data:Hf.FileRangeCapabilities.full}],capabilities:{diagnostic:!0,codeAction:!0,inlayHint:!0,documentSymbol:!0,foldingRange:!0,documentFormatting:!1},embeddedFiles:[]}),i++}a.children&&s(a.children)}}return r}function DV(t,e){let n=[];r(t.roots);function r(i){for(let[s,o]of i.entries()){if(o.tag==="script"&&o.startTagEnd!==void 0&&o.endTagStart!==void 0&&!FV(o.attributes?.type)&&R_(o)==="classic"){let l=e.getText(o.startTagEnd,o.endTagStart);n.push({startOffset:o.startTagEnd,content:l})}o.children&&r(o.children)}}return n}var RV=["application/json","application/ld+json","importmap","speculationrules"];function FV(t){return t?RV.includes(t.slice(1,-1)):!1}function AV(t){let e=[];function n(r){r.children&&r.children.forEach(i=>{if(J2.is.element(i)){let s=i.attributes.find(o=>IV.includes(o.name)&&o.kind==="quoted");s&&s.position&&e.push({content:s.value+";",startOffset:s.position.start.offset+`${s.name}="`.length})}J2.is.parent(i)&&n(i)})}return n(t),e}function PV(t,e){let n=[];for(let s of e)n.push([s.content,void 0,s.startOffset,Hf.FileRangeCapabilities.full]);let r=CV.buildMappings(n),i=kV.toString(n);return{fileName:t+".inline.mjs",codegenStacks:[],snapshot:{getText:(s,o)=>i.substring(s,o),getLength:()=>i.length,getChangeRange:()=>{}},capabilities:{codeAction:!0,diagnostic:!0,documentFormatting:!1,documentSymbol:!0,foldingRange:!0,inlayHint:!0},embeddedFiles:[],kind:Hf.FileKind.TypeScriptHostFile,mappings:r}}var IV=["onabort","onafterprint","onauxclick","onbeforematch","onbeforeprint","onbeforeunload","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpageshow","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onrejectionhandled","onreset","onresize","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"]});var eo=L(xr=>{"use strict";var MV=xr&&xr.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),OV=xr&&xr.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),LV=xr&&xr.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&MV(e,t,n);return OV(e,t),e};Object.defineProperty(xr,"__esModule",{value:!0});xr.AstroFile=xr.getLanguageModule=void 0;var F_=mn(),$f=LV(require("node:path")),NV=L2(),zV=N2(),qV=q2(),jV=K2(),WV=Q2();function UV(t,e){return{createVirtualFile(n,r){if(n.endsWith(".astro"))return new Bf(n,r,e)},updateVirtualFile(n,r){n.update(r)},resolveHost(n){return{...n,resolveModuleName(r,i){return i===e.ModuleKind.ESNext&&(r.endsWith(".astro")||r.endsWith(".vue")||r.endsWith(".svelte"))?`${r}.js`:n.resolveModuleName?.(r,i)??r},getScriptFileNames(){let r;try{r=$f.dirname(require.resolve("@astrojs/language-server"))}catch{r=__dirname}let i=n.getScriptFileNames(),s=[];return t?(s.push(...["./env.d.ts","./astro-jsx.d.ts"].map(o=>e.sys.resolvePath($f.resolve(t.path,o)))),t.version.major>=4&&(t.version.minor>0||t.version.patch>=8)&&s.push(...["../jsx-runtime-augment.d.ts"].map(o=>e.sys.resolvePath($f.resolve(r,o))))):s.push(...["../types/env.d.ts","../types/astro-jsx.d.ts","../types/jsx-runtime-fallback.d.ts"].map(o=>e.sys.resolvePath($f.resolve(r,o)))),[...i,...s]},getCompilationSettings(){let r=n.getCompilationSettings();return{...r,module:e.ModuleKind.ESNext??99,target:e.ScriptTarget.ESNext??99,jsx:e.JsxEmit.Preserve??1,resolveJsonModule:!0,allowJs:!0,isolatedModules:!0,moduleResolution:r.moduleResolution===e.ModuleResolutionKind.Classic||!r.moduleResolution?e.ModuleResolutionKind.Node10:r.moduleResolution}}}}}}xr.getLanguageModule=UV;var Bf=class{constructor(e,n,r){this.sourceFileName=e,this.snapshot=n,this.ts=r,this.kind=F_.FileKind.TextFile,this.capabilities=F_.FileCapabilities.full,this.codegenStacks=[],this.fileName=e,this.onSnapshotUpdated()}get hasCompilationErrors(){return this.compilerDiagnostics.filter(e=>e.severity===1).length>0}update(e){this.snapshot=e,this.onSnapshotUpdated()}onSnapshotUpdated(){this.mappings=[{sourceRange:[0,this.snapshot.getLength()],generatedRange:[0,this.snapshot.getLength()],data:F_.FileRangeCapabilities.full}],this.compilerDiagnostics=[];let e=(0,zV.getAstroMetadata)(this.fileName,this.snapshot.getText(0,this.snapshot.getLength()));e.diagnostics.length>0&&this.compilerDiagnostics.push(...e.diagnostics);let{htmlDocument:n,virtualFile:r}=(0,jV.parseHTML)(this.fileName,this.snapshot,e.frontmatter.status==="closed"?e.frontmatter.position.end.offset:0);this.htmlDocument=n;let i=(0,WV.extractScriptTags)(this.fileName,this.snapshot,n,e.ast);this.scriptFiles=i.map(o=>o.fileName),r.embeddedFiles.push(...(0,qV.extractStylesheets)(this.fileName,this.snapshot,n,e.ast),...i),this.embeddedFiles=[],this.embeddedFiles.push(r);let s=(0,NV.astro2tsx)(this.snapshot.getText(0,this.snapshot.getLength()),this.fileName,this.ts,n);this.astroMeta={...e,tsxRanges:s.ranges},this.compilerDiagnostics.push(...s.diagnostics),this.embeddedFiles.push(s.virtualFile)}};xr.AstroFile=Bf});var Y2=L(Vf=>{"use strict";Object.defineProperty(Vf,"__esModule",{value:!0});Vf.getSvelteLanguageModule=void 0;var A_=mn(),HV=zf();function $V(){return{createVirtualFile(t,e){if(t.endsWith(".svelte"))return new P_(t,e)},updateVirtualFile(t,e){t.update(e)}}}Vf.getSvelteLanguageModule=$V;var P_=class{constructor(e,n){this.sourceFileName=e,this.snapshot=n,this.kind=A_.FileKind.TextFile,this.capabilities=A_.FileCapabilities.full,this.codegenStacks=[],this.fileName=e,this.onSnapshotUpdated()}update(e){this.snapshot=e,this.onSnapshotUpdated()}onSnapshotUpdated(){this.mappings=[{sourceRange:[0,this.snapshot.getLength()],generatedRange:[0,this.snapshot.getLength()],data:A_.FileRangeCapabilities.full}],this.embeddedFiles=[],this.embeddedFiles.push((0,HV.framework2tsx)(this.fileName,this.fileName,this.snapshot.getText(0,this.snapshot.getLength()),"svelte"))}}});var Z2=L(Gf=>{"use strict";Object.defineProperty(Gf,"__esModule",{value:!0});Gf.getVueLanguageModule=void 0;var I_=mn(),BV=zf();function VV(){return{createVirtualFile(t,e){if(t.endsWith(".vue"))return new M_(t,e)},updateVirtualFile(t,e){t.update(e)}}}Gf.getVueLanguageModule=VV;var M_=class{constructor(e,n){this.sourceFileName=e,this.snapshot=n,this.kind=I_.FileKind.TextFile,this.capabilities=I_.FileCapabilities.full,this.codegenStacks=[],this.fileName=e,this.onSnapshotUpdated()}update(e){this.snapshot=e,this.onSnapshotUpdated()}onSnapshotUpdated(){this.mappings=[{sourceRange:[0,this.snapshot.getLength()],generatedRange:[0,this.snapshot.getLength()],data:I_.FileRangeCapabilities.full}],this.embeddedFiles=[],this.embeddedFiles.push((0,BV.framework2tsx)(this.fileName,this.fileName,this.snapshot.getText(0,this.snapshot.getLength()),"vue"))}}});var tP=L(Ti=>{"use strict";var GV=Ti&&Ti.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),KV=Ti&&Ti.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),JV=Ti&&Ti.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&GV(e,t,n);return KV(e,t),e};Object.defineProperty(Ti,"__esModule",{value:!0});Ti.getAstroInstall=void 0;var Su=JV(require("node:path")),eP=Nf();function XV(t,e){let n,r;if(e&&e.nearestPackageJson){t.push(Su.dirname(e.nearestPackageJson));let l=new Set;try{let a=require(e.nearestPackageJson);[...Object.keys(a.dependencies??{}),...Object.keys(a.devDependencies??{}),...Object.keys(a.peerDependencies??{})].forEach(c=>l.add(c))}catch{}if(!l.has("astro")&&!e.readDirectory(Su.dirname(e.nearestPackageJson),[".js",".mjs",".cjs",".ts",".mts",".cts"],void 0,void 0,1).some(c=>Su.basename(c).startsWith("astro.config")))return"not-an-astro-project"}try{if(n=(0,eP.getPackagePath)("astro",t),!n)throw Error;r=require(Su.resolve(n,"package.json")).version}catch{try{if(n=(0,eP.getPackagePath)("./packages/astro",t),!n)throw Error;r=require(Su.resolve(n,"package.json")).version}catch{return console.error(`${t[0]} seems to be an Astro project, but we couldn't find Astro or Astro is not installed`),"not-found"}}if(!r)return"not-found";let[i,s,o]=r.split(".");return o.includes("-")&&(o=o.split("-")[0]),{path:n,version:{full:r,major:Number(i),minor:Number(s),patch:Number(o)}}}Ti.getAstroInstall=XV});var I,Xf,Kf,nP,rP,Ime,Jf,iP,sP,xu,Cu,QV,YV,ku,ZV,Bo,oP,eG,O_,hP,pP,tG,nG,rG,iG,sG,L_,aP,Cl,kl,Tu,lP,cP,N_,z_,oG,aG,lG,cG,uG,dG,hG,uP,dP,pG,fG,Ei,kt,Cr,to=xe(()=>{"use strict";(function(t){t[t.Ident=0]="Ident",t[t.AtKeyword=1]="AtKeyword",t[t.String=2]="String",t[t.BadString=3]="BadString",t[t.UnquotedString=4]="UnquotedString",t[t.Hash=5]="Hash",t[t.Num=6]="Num",t[t.Percentage=7]="Percentage",t[t.Dimension=8]="Dimension",t[t.UnicodeRange=9]="UnicodeRange",t[t.CDO=10]="CDO",t[t.CDC=11]="CDC",t[t.Colon=12]="Colon",t[t.SemiColon=13]="SemiColon",t[t.CurlyL=14]="CurlyL",t[t.CurlyR=15]="CurlyR",t[t.ParenthesisL=16]="ParenthesisL",t[t.ParenthesisR=17]="ParenthesisR",t[t.BracketL=18]="BracketL",t[t.BracketR=19]="BracketR",t[t.Whitespace=20]="Whitespace",t[t.Includes=21]="Includes",t[t.Dashmatch=22]="Dashmatch",t[t.SubstringOperator=23]="SubstringOperator",t[t.PrefixOperator=24]="PrefixOperator",t[t.SuffixOperator=25]="SuffixOperator",t[t.Delim=26]="Delim",t[t.EMS=27]="EMS",t[t.EXS=28]="EXS",t[t.Length=29]="Length",t[t.Angle=30]="Angle",t[t.Time=31]="Time",t[t.Freq=32]="Freq",t[t.Exclamation=33]="Exclamation",t[t.Resolution=34]="Resolution",t[t.Comma=35]="Comma",t[t.Charset=36]="Charset",t[t.EscapedJavaScript=37]="EscapedJavaScript",t[t.BadEscapedJavaScript=38]="BadEscapedJavaScript",t[t.Comment=39]="Comment",t[t.SingleLineComment=40]="SingleLineComment",t[t.EOF=41]="EOF",t[t.CustomToken=42]="CustomToken",t[t.ContainerQueryLength=43]="ContainerQueryLength"})(I||(I={}));Xf=class{constructor(e){this.source=e,this.len=e.length,this.position=0}substring(e,n=this.position){return this.source.substring(e,n)}eos(){return this.len<=this.position}pos(){return this.position}goBackTo(e){this.position=e}goBack(e){this.position-=e}advance(e){this.position+=e}nextChar(){return this.source.charCodeAt(this.position++)||0}peekChar(e=0){return this.source.charCodeAt(this.position+e)||0}lookbackChar(e=0){return this.source.charCodeAt(this.position-e)||0}advanceIfChar(e){return e===this.source.charCodeAt(this.position)?(this.position++,!0):!1}advanceIfChars(e){if(this.position+e.length>this.source.length)return!1;let n=0;for(;n<e.length;n++)if(this.source.charCodeAt(this.position+n)!==e[n])return!1;return this.advance(n),!0}advanceWhileChar(e){let n=this.position;for(;this.position<this.len&&e(this.source.charCodeAt(this.position));)this.position++;return this.position-n}},Kf="a".charCodeAt(0),nP="f".charCodeAt(0),rP="z".charCodeAt(0),Ime="u".charCodeAt(0),Jf="A".charCodeAt(0),iP="F".charCodeAt(0),sP="Z".charCodeAt(0),xu="0".charCodeAt(0),Cu="9".charCodeAt(0),QV="~".charCodeAt(0),YV="^".charCodeAt(0),ku="=".charCodeAt(0),ZV="|".charCodeAt(0),Bo="-".charCodeAt(0),oP="_".charCodeAt(0),eG="%".charCodeAt(0),O_="*".charCodeAt(0),hP="(".charCodeAt(0),pP=")".charCodeAt(0),tG="<".charCodeAt(0),nG=">".charCodeAt(0),rG="@".charCodeAt(0),iG="#".charCodeAt(0),sG="$".charCodeAt(0),L_="\\".charCodeAt(0),aP="/".charCodeAt(0),Cl=`
533
+ `);let l=rV.buildMappings(o),a=iV.toString(o);i.push({fileName:t+".inline.css",codegenStacks:[],snapshot:{getText:(c,u)=>a.substring(c,u),getLength:()=>a.length,getChangeRange:()=>{}},capabilities:{documentSymbol:!0},embeddedFiles:[],kind:Wf.FileKind.TextFile,mappings:l})}return i}_r.extractStylesheets=sV;function oV(t,e,n){let r=[],i=0;s(n);function s(o){for(let[l,a]of o.entries()){if(a.tag==="style"&&a.startTagEnd!==void 0&&a.endTagStart!==void 0){let c=e.getText(a.startTagEnd,a.endTagStart);r.push({fileName:t+`.${i}.css`,kind:Wf.FileKind.TextFile,snapshot:{getText:(u,d)=>c.substring(u,d),getLength:()=>c.length,getChangeRange:()=>{}},codegenStacks:[],mappings:[{sourceRange:[a.startTagEnd,a.endTagStart],generatedRange:[0,c.length],data:Wf.FileRangeCapabilities.full}],capabilities:{diagnostic:!1,documentSymbol:!0,foldingRange:!0,documentFormatting:!1},embeddedFiles:[]}),i++}a.children&&s(a.children)}}return r}function aV(t){let e=[];function n(r){r.children&&r.children.forEach(i=>{if(jf.is.element(i)){let s=i.attributes.find(o=>o.name==="style"&&o.kind==="quoted");s&&s.position&&e.push(s)}jf.is.parent(i)&&n(i)})}return n(t),e}function lV(t){let e=[];function n(r){r.children&&r.children.forEach(i=>{if(jf.is.element(i)){let s=i.attributes.filter(o=>o.kind==="quoted"&&(o.name==="class"||o.name==="id")).flatMap(o=>o.value.split(" "));e.push(...s)}jf.is.parent(i)&&n(i)})}return n(t),e}_r.collectClassesAndIdsFromDocument=lV});var $o=L($t=>{"use strict";Object.defineProperty($t,"__esModule",{value:!0});$t.editShouldBeInFrontmatter=$t.getOpenFrontmatterEdit=$t.getNewFrontmatterEdit=$t.ensureRangeIsInFrontmatter=$t.ensureProperEditForFrontmatter=$t.isInsideFrontmatter=$t.isInsideExpression=$t.isInComponentStartTag=$t.isPossibleComponent=$t.isJSDocument=void 0;var Uf=(xl(),Ro(Sl));function cV(t){return t==="javascript"||t==="typescript"||t==="javascriptreact"||t==="typescriptreact"}$t.isJSDocument=cV;function j2(t){return!!t.tag?.[0].match(/[A-Z]/)||!!t.tag?.match(/.+[.][A-Z]?/)}$t.isPossibleComponent=j2;function uV(t,e){let n=t.findNodeAt(e);return j2(n)&&(!n.startTagEnd||e<n.startTagEnd)}$t.isInComponentStartTag=uV;function dV(t,e,n){let r=t.substring(e,n);return r.lastIndexOf("{")>r.lastIndexOf("}")}$t.isInsideExpression=dV;function hV(t,e){switch(e.status){case"closed":return t>e.position.start.offset&&t<e.position.end.offset;case"open":return t>e.position.start.offset;case"doesnt-exist":return!1}}$t.isInsideFrontmatter=hV;function pV(t,e,n,r="top"){switch(e.frontmatter.status){case"open":return H2(t,e,n);case"closed":let i=W2(t.range,e,r);return{newText:i.start.line===e.frontmatter.position.start.line&&t.newText.startsWith(n)?t.newText.trimStart():t.newText,range:i};case"doesnt-exist":return U2(t,e,n)}}$t.ensureProperEditForFrontmatter=pV;function W2(t,e,n="top"){if(e.frontmatter.status==="open"||e.frontmatter.status==="closed"){let r=e.frontmatter.position.end?e.tsxRanges.frontmatter.end:void 0;return t.start.line<e.tsxRanges.frontmatter.start.line||r&&t.start.line>r.line?r&&n==="bottom"?Uf.Range.create(r,r):Uf.Range.create(e.tsxRanges.frontmatter.start,e.tsxRanges.frontmatter.start):t}return t}$t.ensureRangeIsInFrontmatter=W2;function U2(t,e,n){return t.newText=`---${t.newText.startsWith(n)?"":n}${t.newText}---${n}${n}`,t.range=Uf.Range.create(e.tsxRanges.frontmatter.start,e.tsxRanges.frontmatter.start),t}$t.getNewFrontmatterEdit=U2;function H2(t,e,n){return t.newText=t.newText.startsWith(n)?`${t.newText}---`:`${n}${t.newText}---`,t.range=Uf.Range.create(e.tsxRanges.frontmatter.start,e.tsxRanges.frontmatter.start),t}$t.getOpenFrontmatterEdit=H2;function fV(t,e){let n=t.start.line<e.tsxRanges.frontmatter.start.line,r=t.start.line>e.tsxRanges.body.end.line;return n||r?{itShould:!0,position:r?"bottom":"top"}:{itShould:!1,position:void 0}}$t.editShouldBeInFrontmatter=fV});var K2=L(Sr=>{"use strict";var mV=Sr&&Sr.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),gV=Sr&&Sr.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),bV=Sr&&Sr.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&mV(e,t,n);return gV(e,t),e};Object.defineProperty(Sr,"__esModule",{value:!0});Sr.preprocessHTML=Sr.parseHTML=void 0;var $2=mn(),Zs=bV((xl(),Ro(Sl))),vV=$o(),V2=Zs.getLanguageService();function yV(t,e,n){let r=G2(e.getText(0,e.getLength()),n);return{virtualFile:wV(t,r),htmlDocument:_V(r)}}Sr.parseHTML=yV;var B2=V2.createScanner;function G2(t,e){let n=t.split("").fill(" ",0,e).join(""),r=B2(n),i=r.scan(),s=null;for(;i!==Zs.TokenType.EOS;){let a=r.getTokenOffset();i===Zs.TokenType.StartTagOpen&&(s=a),i===Zs.TokenType.StartTagClose&&(o(a)?l(a):s=null),i===Zs.TokenType.StartTagSelfClose&&(s=null),i===Zs.TokenType.Unknown&&r.getScannerState()===Zs.ScannerState.WithinTag&&r.getTokenText()==="<"&&o(a)&&l(a),i=r.scan()}return n;function o(a){return s!==null&&(0,vV.isInsideExpression)(n,s,a)}function l(a,c){n=n.substring(0,a)+" "+n.substring(a+1),r=B2(n,a,c??Zs.ScannerState.WithinTag)}}Sr.preprocessHTML=G2;function wV(t,e){return{fileName:t+".html",kind:$2.FileKind.TextFile,snapshot:{getText:(n,r)=>e.substring(n,r),getLength:()=>e.length,getChangeRange:()=>{}},codegenStacks:[],mappings:[{sourceRange:[0,e.length],generatedRange:[0,e.length],data:$2.FileRangeCapabilities.full}],capabilities:{documentSymbol:!0,foldingRange:!0,documentFormatting:!1},embeddedFiles:[]}}function _V(t){return V2.parseHTMLDocument({getText:()=>t})}});var Q2=L(ki=>{"use strict";var SV=ki&&ki.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),xV=ki&&ki.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),X2=ki&&ki.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&SV(e,t,n);return xV(e,t),e};Object.defineProperty(ki,"__esModule",{value:!0});ki.extractScriptTags=void 0;var J2=require("@astrojs/compiler/utils"),Hf=mn(),CV=X2(cu()),kV=X2($h());function TV(t,e,n,r){let i=EV(t,e,n.roots),s=[...DV(n,e),...AV(r)].sort((o,l)=>o.startOffset-l.startOffset);return s.length>0&&i.push(PV(t,s)),i}ki.extractScriptTags=TV;function R_(t){return!t.attributes||Object.entries(t.attributes).length===0?"processed module":t.attributes.type?.includes("module")===!0?"module":"classic"}function EV(t,e,n){let r=[],i=0;s(n);function s(o){for(let[l,a]of o.entries()){if(a.tag==="script"&&a.startTagEnd!==void 0&&a.endTagStart!==void 0&&R_(a)!=="classic"){let c=e.getText(a.startTagEnd,a.endTagStart),u=R_(a)==="processed module"?"mts":"mjs";r.push({fileName:t+`.${i}.${u}`,kind:Hf.FileKind.TypeScriptHostFile,snapshot:{getText:(d,h)=>c.substring(d,h),getLength:()=>c.length,getChangeRange:()=>{}},codegenStacks:[],mappings:[{sourceRange:[a.startTagEnd,a.endTagStart],generatedRange:[0,c.length],data:Hf.FileRangeCapabilities.full}],capabilities:{diagnostic:!0,codeAction:!0,inlayHint:!0,documentSymbol:!0,foldingRange:!0,documentFormatting:!1},embeddedFiles:[]}),i++}a.children&&s(a.children)}}return r}function DV(t,e){let n=[];r(t.roots);function r(i){for(let[s,o]of i.entries()){if(o.tag==="script"&&o.startTagEnd!==void 0&&o.endTagStart!==void 0&&!FV(o.attributes?.type)&&R_(o)==="classic"){let l=e.getText(o.startTagEnd,o.endTagStart);n.push({startOffset:o.startTagEnd,content:l})}o.children&&r(o.children)}}return n}var RV=["application/json","application/ld+json","importmap","speculationrules"];function FV(t){return t?RV.includes(t.slice(1,-1)):!1}function AV(t){let e=[];function n(r){r.children&&r.children.forEach(i=>{if(J2.is.element(i)){let s=i.attributes.find(o=>IV.includes(o.name)&&o.kind==="quoted");s&&s.position&&e.push({content:s.value+";",startOffset:s.position.start.offset+`${s.name}="`.length})}J2.is.parent(i)&&n(i)})}return n(t),e}function PV(t,e){let n=[];for(let s of e)n.push([s.content,void 0,s.startOffset,Hf.FileRangeCapabilities.full]);let r=CV.buildMappings(n),i=kV.toString(n);return{fileName:t+".inline.mjs",codegenStacks:[],snapshot:{getText:(s,o)=>i.substring(s,o),getLength:()=>i.length,getChangeRange:()=>{}},capabilities:{codeAction:!0,diagnostic:!0,documentFormatting:!1,documentSymbol:!0,foldingRange:!0,inlayHint:!0},embeddedFiles:[],kind:Hf.FileKind.TypeScriptHostFile,mappings:r}}var IV=["onabort","onafterprint","onauxclick","onbeforematch","onbeforeprint","onbeforeunload","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpageshow","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onrejectionhandled","onreset","onresize","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"]});var eo=L(xr=>{"use strict";var MV=xr&&xr.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),OV=xr&&xr.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),LV=xr&&xr.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&MV(e,t,n);return OV(e,t),e};Object.defineProperty(xr,"__esModule",{value:!0});xr.AstroFile=xr.getLanguageModule=void 0;var F_=mn(),$f=LV(require("node:path")),NV=L2(),zV=N2(),qV=q2(),jV=K2(),WV=Q2();function UV(t,e){return{createVirtualFile(n,r){if(n.endsWith(".astro"))return new Bf(n,r,e)},updateVirtualFile(n,r){n.update(r)},resolveHost(n){return{...n,resolveModuleName(r,i){return i===e.ModuleKind.ESNext&&(r.endsWith(".astro")||r.endsWith(".vue")||r.endsWith(".svelte"))?`${r}.js`:n.resolveModuleName?.(r,i)??r},getScriptFileNames(){let r;try{r=$f.dirname(require.resolve("@astrojs/language-server"))}catch{r=__dirname}let i=n.getScriptFileNames(),s=[];return t?(s.push(...["./env.d.ts","./astro-jsx.d.ts"].map(o=>e.sys.resolvePath($f.resolve(t.path,o)))),(t.version.major<4||t.version.major===4&&t.version.minor===0&&t.version.patch<8)&&s.push(...["../types/jsx-runtime-augment.d.ts"].map(o=>e.sys.resolvePath($f.resolve(r,o))))):s.push(...["../types/env.d.ts","../types/astro-jsx.d.ts","../types/jsx-runtime-fallback.d.ts"].map(o=>e.sys.resolvePath($f.resolve(r,o)))),[...i,...s]},getCompilationSettings(){let r=n.getCompilationSettings();return{...r,module:e.ModuleKind.ESNext??99,target:e.ScriptTarget.ESNext??99,jsx:e.JsxEmit.Preserve??1,resolveJsonModule:!0,allowJs:!0,isolatedModules:!0,moduleResolution:r.moduleResolution===e.ModuleResolutionKind.Classic||!r.moduleResolution?e.ModuleResolutionKind.Node10:r.moduleResolution}}}}}}xr.getLanguageModule=UV;var Bf=class{constructor(e,n,r){this.sourceFileName=e,this.snapshot=n,this.ts=r,this.kind=F_.FileKind.TextFile,this.capabilities=F_.FileCapabilities.full,this.codegenStacks=[],this.fileName=e,this.onSnapshotUpdated()}get hasCompilationErrors(){return this.compilerDiagnostics.filter(e=>e.severity===1).length>0}update(e){this.snapshot=e,this.onSnapshotUpdated()}onSnapshotUpdated(){this.mappings=[{sourceRange:[0,this.snapshot.getLength()],generatedRange:[0,this.snapshot.getLength()],data:F_.FileRangeCapabilities.full}],this.compilerDiagnostics=[];let e=(0,zV.getAstroMetadata)(this.fileName,this.snapshot.getText(0,this.snapshot.getLength()));e.diagnostics.length>0&&this.compilerDiagnostics.push(...e.diagnostics);let{htmlDocument:n,virtualFile:r}=(0,jV.parseHTML)(this.fileName,this.snapshot,e.frontmatter.status==="closed"?e.frontmatter.position.end.offset:0);this.htmlDocument=n;let i=(0,WV.extractScriptTags)(this.fileName,this.snapshot,n,e.ast);this.scriptFiles=i.map(o=>o.fileName),r.embeddedFiles.push(...(0,qV.extractStylesheets)(this.fileName,this.snapshot,n,e.ast),...i),this.embeddedFiles=[],this.embeddedFiles.push(r);let s=(0,NV.astro2tsx)(this.snapshot.getText(0,this.snapshot.getLength()),this.fileName,this.ts,n);this.astroMeta={...e,tsxRanges:s.ranges},this.compilerDiagnostics.push(...s.diagnostics),this.embeddedFiles.push(s.virtualFile)}};xr.AstroFile=Bf});var Y2=L(Vf=>{"use strict";Object.defineProperty(Vf,"__esModule",{value:!0});Vf.getSvelteLanguageModule=void 0;var A_=mn(),HV=zf();function $V(){return{createVirtualFile(t,e){if(t.endsWith(".svelte"))return new P_(t,e)},updateVirtualFile(t,e){t.update(e)}}}Vf.getSvelteLanguageModule=$V;var P_=class{constructor(e,n){this.sourceFileName=e,this.snapshot=n,this.kind=A_.FileKind.TextFile,this.capabilities=A_.FileCapabilities.full,this.codegenStacks=[],this.fileName=e,this.onSnapshotUpdated()}update(e){this.snapshot=e,this.onSnapshotUpdated()}onSnapshotUpdated(){this.mappings=[{sourceRange:[0,this.snapshot.getLength()],generatedRange:[0,this.snapshot.getLength()],data:A_.FileRangeCapabilities.full}],this.embeddedFiles=[],this.embeddedFiles.push((0,HV.framework2tsx)(this.fileName,this.fileName,this.snapshot.getText(0,this.snapshot.getLength()),"svelte"))}}});var Z2=L(Gf=>{"use strict";Object.defineProperty(Gf,"__esModule",{value:!0});Gf.getVueLanguageModule=void 0;var I_=mn(),BV=zf();function VV(){return{createVirtualFile(t,e){if(t.endsWith(".vue"))return new M_(t,e)},updateVirtualFile(t,e){t.update(e)}}}Gf.getVueLanguageModule=VV;var M_=class{constructor(e,n){this.sourceFileName=e,this.snapshot=n,this.kind=I_.FileKind.TextFile,this.capabilities=I_.FileCapabilities.full,this.codegenStacks=[],this.fileName=e,this.onSnapshotUpdated()}update(e){this.snapshot=e,this.onSnapshotUpdated()}onSnapshotUpdated(){this.mappings=[{sourceRange:[0,this.snapshot.getLength()],generatedRange:[0,this.snapshot.getLength()],data:I_.FileRangeCapabilities.full}],this.embeddedFiles=[],this.embeddedFiles.push((0,BV.framework2tsx)(this.fileName,this.fileName,this.snapshot.getText(0,this.snapshot.getLength()),"vue"))}}});var tP=L(Ti=>{"use strict";var GV=Ti&&Ti.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),KV=Ti&&Ti.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),JV=Ti&&Ti.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&GV(e,t,n);return KV(e,t),e};Object.defineProperty(Ti,"__esModule",{value:!0});Ti.getAstroInstall=void 0;var Su=JV(require("node:path")),eP=Nf();function XV(t,e){let n,r;if(e&&e.nearestPackageJson){t.push(Su.dirname(e.nearestPackageJson));let l=new Set;try{let a=require(e.nearestPackageJson);[...Object.keys(a.dependencies??{}),...Object.keys(a.devDependencies??{}),...Object.keys(a.peerDependencies??{})].forEach(c=>l.add(c))}catch{}if(!l.has("astro")&&!e.readDirectory(Su.dirname(e.nearestPackageJson),[".js",".mjs",".cjs",".ts",".mts",".cts"],void 0,void 0,1).some(c=>Su.basename(c).startsWith("astro.config")))return"not-an-astro-project"}try{if(n=(0,eP.getPackagePath)("astro",t),!n)throw Error;r=require(Su.resolve(n,"package.json")).version}catch{try{if(n=(0,eP.getPackagePath)("./packages/astro",t),!n)throw Error;r=require(Su.resolve(n,"package.json")).version}catch{return console.error(`${t[0]} seems to be an Astro project, but we couldn't find Astro or Astro is not installed`),"not-found"}}if(!r)return"not-found";let[i,s,o]=r.split(".");return o.includes("-")&&(o=o.split("-")[0]),{path:n,version:{full:r,major:Number(i),minor:Number(s),patch:Number(o)}}}Ti.getAstroInstall=XV});var I,Xf,Kf,nP,rP,Ime,Jf,iP,sP,xu,Cu,QV,YV,ku,ZV,Bo,oP,eG,O_,hP,pP,tG,nG,rG,iG,sG,L_,aP,Cl,kl,Tu,lP,cP,N_,z_,oG,aG,lG,cG,uG,dG,hG,uP,dP,pG,fG,Ei,kt,Cr,to=xe(()=>{"use strict";(function(t){t[t.Ident=0]="Ident",t[t.AtKeyword=1]="AtKeyword",t[t.String=2]="String",t[t.BadString=3]="BadString",t[t.UnquotedString=4]="UnquotedString",t[t.Hash=5]="Hash",t[t.Num=6]="Num",t[t.Percentage=7]="Percentage",t[t.Dimension=8]="Dimension",t[t.UnicodeRange=9]="UnicodeRange",t[t.CDO=10]="CDO",t[t.CDC=11]="CDC",t[t.Colon=12]="Colon",t[t.SemiColon=13]="SemiColon",t[t.CurlyL=14]="CurlyL",t[t.CurlyR=15]="CurlyR",t[t.ParenthesisL=16]="ParenthesisL",t[t.ParenthesisR=17]="ParenthesisR",t[t.BracketL=18]="BracketL",t[t.BracketR=19]="BracketR",t[t.Whitespace=20]="Whitespace",t[t.Includes=21]="Includes",t[t.Dashmatch=22]="Dashmatch",t[t.SubstringOperator=23]="SubstringOperator",t[t.PrefixOperator=24]="PrefixOperator",t[t.SuffixOperator=25]="SuffixOperator",t[t.Delim=26]="Delim",t[t.EMS=27]="EMS",t[t.EXS=28]="EXS",t[t.Length=29]="Length",t[t.Angle=30]="Angle",t[t.Time=31]="Time",t[t.Freq=32]="Freq",t[t.Exclamation=33]="Exclamation",t[t.Resolution=34]="Resolution",t[t.Comma=35]="Comma",t[t.Charset=36]="Charset",t[t.EscapedJavaScript=37]="EscapedJavaScript",t[t.BadEscapedJavaScript=38]="BadEscapedJavaScript",t[t.Comment=39]="Comment",t[t.SingleLineComment=40]="SingleLineComment",t[t.EOF=41]="EOF",t[t.CustomToken=42]="CustomToken",t[t.ContainerQueryLength=43]="ContainerQueryLength"})(I||(I={}));Xf=class{constructor(e){this.source=e,this.len=e.length,this.position=0}substring(e,n=this.position){return this.source.substring(e,n)}eos(){return this.len<=this.position}pos(){return this.position}goBackTo(e){this.position=e}goBack(e){this.position-=e}advance(e){this.position+=e}nextChar(){return this.source.charCodeAt(this.position++)||0}peekChar(e=0){return this.source.charCodeAt(this.position+e)||0}lookbackChar(e=0){return this.source.charCodeAt(this.position-e)||0}advanceIfChar(e){return e===this.source.charCodeAt(this.position)?(this.position++,!0):!1}advanceIfChars(e){if(this.position+e.length>this.source.length)return!1;let n=0;for(;n<e.length;n++)if(this.source.charCodeAt(this.position+n)!==e[n])return!1;return this.advance(n),!0}advanceWhileChar(e){let n=this.position;for(;this.position<this.len&&e(this.source.charCodeAt(this.position));)this.position++;return this.position-n}},Kf="a".charCodeAt(0),nP="f".charCodeAt(0),rP="z".charCodeAt(0),Ime="u".charCodeAt(0),Jf="A".charCodeAt(0),iP="F".charCodeAt(0),sP="Z".charCodeAt(0),xu="0".charCodeAt(0),Cu="9".charCodeAt(0),QV="~".charCodeAt(0),YV="^".charCodeAt(0),ku="=".charCodeAt(0),ZV="|".charCodeAt(0),Bo="-".charCodeAt(0),oP="_".charCodeAt(0),eG="%".charCodeAt(0),O_="*".charCodeAt(0),hP="(".charCodeAt(0),pP=")".charCodeAt(0),tG="<".charCodeAt(0),nG=">".charCodeAt(0),rG="@".charCodeAt(0),iG="#".charCodeAt(0),sG="$".charCodeAt(0),L_="\\".charCodeAt(0),aP="/".charCodeAt(0),Cl=`
534
534
  `.charCodeAt(0),kl="\r".charCodeAt(0),Tu="\f".charCodeAt(0),lP='"'.charCodeAt(0),cP="'".charCodeAt(0),N_=" ".charCodeAt(0),z_=" ".charCodeAt(0),oG=";".charCodeAt(0),aG=":".charCodeAt(0),lG="{".charCodeAt(0),cG="}".charCodeAt(0),uG="[".charCodeAt(0),dG="]".charCodeAt(0),hG=",".charCodeAt(0),uP=".".charCodeAt(0),dP="!".charCodeAt(0),pG="?".charCodeAt(0),fG="+".charCodeAt(0),Ei={};Ei[oG]=I.SemiColon;Ei[aG]=I.Colon;Ei[lG]=I.CurlyL;Ei[cG]=I.CurlyR;Ei[dG]=I.BracketR;Ei[uG]=I.BracketL;Ei[hP]=I.ParenthesisL;Ei[pP]=I.ParenthesisR;Ei[hG]=I.Comma;kt={};kt.em=I.EMS;kt.ex=I.EXS;kt.px=I.Length;kt.cm=I.Length;kt.mm=I.Length;kt.in=I.Length;kt.pt=I.Length;kt.pc=I.Length;kt.deg=I.Angle;kt.rad=I.Angle;kt.grad=I.Angle;kt.ms=I.Time;kt.s=I.Time;kt.hz=I.Freq;kt.khz=I.Freq;kt["%"]=I.Percentage;kt.fr=I.Percentage;kt.dpi=I.Resolution;kt.dpcm=I.Resolution;kt.cqw=I.ContainerQueryLength;kt.cqh=I.ContainerQueryLength;kt.cqi=I.ContainerQueryLength;kt.cqb=I.ContainerQueryLength;kt.cqmin=I.ContainerQueryLength;kt.cqmax=I.ContainerQueryLength;Cr=class{constructor(){this.stream=new Xf(""),this.ignoreComment=!0,this.ignoreWhitespace=!0,this.inURL=!1}setSource(e){this.stream=new Xf(e)}finishToken(e,n,r){return{offset:e,len:this.stream.pos()-e,type:n,text:r||this.stream.substring(e)}}substring(e,n){return this.stream.substring(e,e+n)}pos(){return this.stream.pos()}goBackTo(e){this.stream.goBackTo(e)}scanUnquotedString(){let e=this.stream.pos(),n=[];return this._unquotedString(n)?this.finishToken(e,I.UnquotedString,n.join("")):null}scan(){let e=this.trivia();if(e!==null)return e;let n=this.stream.pos();return this.stream.eos()?this.finishToken(n,I.EOF):this.scanNext(n)}tryScanUnicode(){let e=this.stream.pos();if(!this.stream.eos()&&this._unicodeRange())return this.finishToken(e,I.UnicodeRange);this.stream.goBackTo(e)}scanNext(e){if(this.stream.advanceIfChars([tG,dP,Bo,Bo]))return this.finishToken(e,I.CDO);if(this.stream.advanceIfChars([Bo,Bo,nG]))return this.finishToken(e,I.CDC);let n=[];if(this.ident(n))return this.finishToken(e,I.Ident,n.join(""));if(this.stream.advanceIfChar(rG))if(n=["@"],this._name(n)){let i=n.join("");return i==="@charset"?this.finishToken(e,I.Charset,i):this.finishToken(e,I.AtKeyword,i)}else return this.finishToken(e,I.Delim);if(this.stream.advanceIfChar(iG))return n=["#"],this._name(n)?this.finishToken(e,I.Hash,n.join("")):this.finishToken(e,I.Delim);if(this.stream.advanceIfChar(dP))return this.finishToken(e,I.Exclamation);if(this._number()){let i=this.stream.pos();if(n=[this.stream.substring(e,i)],this.stream.advanceIfChar(eG))return this.finishToken(e,I.Percentage);if(this.ident(n)){let s=this.stream.substring(i).toLowerCase(),o=kt[s];return typeof o<"u"?this.finishToken(e,o,n.join("")):this.finishToken(e,I.Dimension,n.join(""))}return this.finishToken(e,I.Num)}n=[];let r=this._string(n);return r!==null?this.finishToken(e,r,n.join("")):(r=Ei[this.stream.peekChar()],typeof r<"u"?(this.stream.advance(1),this.finishToken(e,r)):this.stream.peekChar(0)===QV&&this.stream.peekChar(1)===ku?(this.stream.advance(2),this.finishToken(e,I.Includes)):this.stream.peekChar(0)===ZV&&this.stream.peekChar(1)===ku?(this.stream.advance(2),this.finishToken(e,I.Dashmatch)):this.stream.peekChar(0)===O_&&this.stream.peekChar(1)===ku?(this.stream.advance(2),this.finishToken(e,I.SubstringOperator)):this.stream.peekChar(0)===YV&&this.stream.peekChar(1)===ku?(this.stream.advance(2),this.finishToken(e,I.PrefixOperator)):this.stream.peekChar(0)===sG&&this.stream.peekChar(1)===ku?(this.stream.advance(2),this.finishToken(e,I.SuffixOperator)):(this.stream.nextChar(),this.finishToken(e,I.Delim)))}trivia(){for(;;){let e=this.stream.pos();if(this._whitespace()){if(!this.ignoreWhitespace)return this.finishToken(e,I.Whitespace)}else if(this.comment()){if(!this.ignoreComment)return this.finishToken(e,I.Comment)}else return null}}comment(){if(this.stream.advanceIfChars([aP,O_])){let e=!1,n=!1;return this.stream.advanceWhileChar(r=>n&&r===aP?(e=!0,!1):(n=r===O_,!0)),e&&this.stream.advance(1),!0}return!1}_number(){let e=0,n;return this.stream.peekChar()===uP&&(e=1),n=this.stream.peekChar(e),n>=xu&&n<=Cu?(this.stream.advance(e+1),this.stream.advanceWhileChar(r=>r>=xu&&r<=Cu||e===0&&r===uP),!0):!1}_newline(e){let n=this.stream.peekChar();switch(n){case kl:case Tu:case Cl:return this.stream.advance(1),e.push(String.fromCharCode(n)),n===kl&&this.stream.advanceIfChar(Cl)&&e.push(`
535
535
  `),!0}return!1}_escape(e,n){let r=this.stream.peekChar();if(r===L_){this.stream.advance(1),r=this.stream.peekChar();let i=0;for(;i<6&&(r>=xu&&r<=Cu||r>=Kf&&r<=nP||r>=Jf&&r<=iP);)this.stream.advance(1),r=this.stream.peekChar(),i++;if(i>0){try{let s=parseInt(this.stream.substring(this.stream.pos()-i),16);s&&e.push(String.fromCharCode(s))}catch{}return r===N_||r===z_?this.stream.advance(1):this._newline([]),!0}if(r!==kl&&r!==Tu&&r!==Cl)return this.stream.advance(1),e.push(String.fromCharCode(r)),!0;if(n)return this._newline(e)}return!1}_stringChar(e,n){let r=this.stream.peekChar();return r!==0&&r!==e&&r!==L_&&r!==kl&&r!==Tu&&r!==Cl?(this.stream.advance(1),n.push(String.fromCharCode(r)),!0):!1}_string(e){if(this.stream.peekChar()===cP||this.stream.peekChar()===lP){let n=this.stream.nextChar();for(e.push(String.fromCharCode(n));this._stringChar(n,e)||this._escape(e,!0););return this.stream.peekChar()===n?(this.stream.nextChar(),e.push(String.fromCharCode(n)),I.String):I.BadString}return null}_unquotedChar(e){let n=this.stream.peekChar();return n!==0&&n!==L_&&n!==cP&&n!==lP&&n!==hP&&n!==pP&&n!==N_&&n!==z_&&n!==Cl&&n!==Tu&&n!==kl?(this.stream.advance(1),e.push(String.fromCharCode(n)),!0):!1}_unquotedString(e){let n=!1;for(;this._unquotedChar(e)||this._escape(e);)n=!0;return n}_whitespace(){return this.stream.advanceWhileChar(n=>n===N_||n===z_||n===Cl||n===Tu||n===kl)>0}_name(e){let n=!1;for(;this._identChar(e)||this._escape(e);)n=!0;return n}ident(e){let n=this.stream.pos();if(this._minus(e)){if(this._minus(e)||this._identFirstChar(e)||this._escape(e)){for(;this._identChar(e)||this._escape(e););return!0}}else if(this._identFirstChar(e)||this._escape(e)){for(;this._identChar(e)||this._escape(e););return!0}return this.stream.goBackTo(n),!1}_identFirstChar(e){let n=this.stream.peekChar();return n===oP||n>=Kf&&n<=rP||n>=Jf&&n<=sP||n>=128&&n<=65535?(this.stream.advance(1),e.push(String.fromCharCode(n)),!0):!1}_minus(e){let n=this.stream.peekChar();return n===Bo?(this.stream.advance(1),e.push(String.fromCharCode(n)),!0):!1}_identChar(e){let n=this.stream.peekChar();return n===oP||n===Bo||n>=Kf&&n<=rP||n>=Jf&&n<=sP||n>=xu&&n<=Cu||n>=128&&n<=65535?(this.stream.advance(1),e.push(String.fromCharCode(n)),!0):!1}_unicodeRange(){if(this.stream.advanceIfChar(fG)){let e=r=>r>=xu&&r<=Cu||r>=Kf&&r<=nP||r>=Jf&&r<=iP,n=this.stream.advanceWhileChar(e)+this.stream.advanceWhileChar(r=>r===pG);if(n>=1&&n<=6)if(this.stream.advanceIfChar(Bo)){let r=this.stream.advanceWhileChar(e);if(r>=1&&r<=6)return!0}else return!0}return!1}}});function Dt(t,e){if(t.length<e.length)return!1;for(let n=0;n<e.length;n++)if(t[n]!==e[n])return!1;return!0}function Qf(t,e){let n=t.length-e.length;return n>0?t.lastIndexOf(e)===n:n===0?t===e:!1}function fP(t,e,n=4){let r=Math.abs(t.length-e.length);if(r>n)return 0;let i=[],s=[],o,l;for(o=0;o<e.length+1;++o)s.push(0);for(o=0;o<t.length+1;++o)i.push(s);for(o=1;o<t.length+1;++o)for(l=1;l<e.length+1;++l)t[o-1]===e[l-1]?i[o][l]=i[o-1][l-1]+1:i[o][l]=Math.max(i[o-1][l],i[o][l-1]);return i[t.length][e.length]-Math.sqrt(r)}function q_(t,e=!0){return t?t.length<140?t:t.slice(0,140)+(e?"\u2026":""):""}function mP(t,e){let n=e.exec(t);return n&&n[0].length?t.substr(0,t.length-n[0].length):t}function j_(t,e){let n="";for(;e>0;)(e&1)===1&&(n+=t),t+=t,e=e>>>1;return n}var is=xe(()=>{"use strict"});function Rm(t,e){let n=null;return!t||e<t.offset||e>t.end?null:(t.accept(r=>r.offset===-1&&r.length===-1?!0:r.offset<=e&&r.end>=e?(n?r.length<=n.length&&(n=r):n=r,!0):!1),n)}function Ll(t,e){let n=Rm(t,e),r=[];for(;n;)r.unshift(n),n=n.parent;return r}function gP(t){let e=t.findParent(G.Declaration),n=e&&e.getValue();return n&&n.encloses(t)?e:null}var G,ze,Se,an,Yf,rn,Zf,Vo,ft,rr,kr,Tr,Tl,em,sn,tm,no,W_,Yr,Di,ir,nm,rm,im,sm,om,ss,am,El,Eu,Dl,Du,ro,lm,cm,um,dm,hm,Rl,Go,pm,fm,mm,gm,Fl,Al,bm,vm,os,ym,wm,Pl,io,_m,Sm,Ko,xm,bG,vG,yG,Jo,Ri,Xo,so,Fi,Cm,km,as,Zr,Il,Tm,Em,Dm,Ru,gn,Ml,Ol,bn=xe(()=>{"use strict";is();(function(t){t[t.Undefined=0]="Undefined",t[t.Identifier=1]="Identifier",t[t.Stylesheet=2]="Stylesheet",t[t.Ruleset=3]="Ruleset",t[t.Selector=4]="Selector",t[t.SimpleSelector=5]="SimpleSelector",t[t.SelectorInterpolation=6]="SelectorInterpolation",t[t.SelectorCombinator=7]="SelectorCombinator",t[t.SelectorCombinatorParent=8]="SelectorCombinatorParent",t[t.SelectorCombinatorSibling=9]="SelectorCombinatorSibling",t[t.SelectorCombinatorAllSiblings=10]="SelectorCombinatorAllSiblings",t[t.SelectorCombinatorShadowPiercingDescendant=11]="SelectorCombinatorShadowPiercingDescendant",t[t.Page=12]="Page",t[t.PageBoxMarginBox=13]="PageBoxMarginBox",t[t.ClassSelector=14]="ClassSelector",t[t.IdentifierSelector=15]="IdentifierSelector",t[t.ElementNameSelector=16]="ElementNameSelector",t[t.PseudoSelector=17]="PseudoSelector",t[t.AttributeSelector=18]="AttributeSelector",t[t.Declaration=19]="Declaration",t[t.Declarations=20]="Declarations",t[t.Property=21]="Property",t[t.Expression=22]="Expression",t[t.BinaryExpression=23]="BinaryExpression",t[t.Term=24]="Term",t[t.Operator=25]="Operator",t[t.Value=26]="Value",t[t.StringLiteral=27]="StringLiteral",t[t.URILiteral=28]="URILiteral",t[t.EscapedValue=29]="EscapedValue",t[t.Function=30]="Function",t[t.NumericValue=31]="NumericValue",t[t.HexColorValue=32]="HexColorValue",t[t.RatioValue=33]="RatioValue",t[t.MixinDeclaration=34]="MixinDeclaration",t[t.MixinReference=35]="MixinReference",t[t.VariableName=36]="VariableName",t[t.VariableDeclaration=37]="VariableDeclaration",t[t.Prio=38]="Prio",t[t.Interpolation=39]="Interpolation",t[t.NestedProperties=40]="NestedProperties",t[t.ExtendsReference=41]="ExtendsReference",t[t.SelectorPlaceholder=42]="SelectorPlaceholder",t[t.Debug=43]="Debug",t[t.If=44]="If",t[t.Else=45]="Else",t[t.For=46]="For",t[t.Each=47]="Each",t[t.While=48]="While",t[t.MixinContentReference=49]="MixinContentReference",t[t.MixinContentDeclaration=50]="MixinContentDeclaration",t[t.Media=51]="Media",t[t.Keyframe=52]="Keyframe",t[t.FontFace=53]="FontFace",t[t.Import=54]="Import",t[t.Namespace=55]="Namespace",t[t.Invocation=56]="Invocation",t[t.FunctionDeclaration=57]="FunctionDeclaration",t[t.ReturnStatement=58]="ReturnStatement",t[t.MediaQuery=59]="MediaQuery",t[t.MediaCondition=60]="MediaCondition",t[t.MediaFeature=61]="MediaFeature",t[t.FunctionParameter=62]="FunctionParameter",t[t.FunctionArgument=63]="FunctionArgument",t[t.KeyframeSelector=64]="KeyframeSelector",t[t.ViewPort=65]="ViewPort",t[t.Document=66]="Document",t[t.AtApplyRule=67]="AtApplyRule",t[t.CustomPropertyDeclaration=68]="CustomPropertyDeclaration",t[t.CustomPropertySet=69]="CustomPropertySet",t[t.ListEntry=70]="ListEntry",t[t.Supports=71]="Supports",t[t.SupportsCondition=72]="SupportsCondition",t[t.NamespacePrefix=73]="NamespacePrefix",t[t.GridLine=74]="GridLine",t[t.Plugin=75]="Plugin",t[t.UnknownAtRule=76]="UnknownAtRule",t[t.Use=77]="Use",t[t.ModuleConfiguration=78]="ModuleConfiguration",t[t.Forward=79]="Forward",t[t.ForwardVisibility=80]="ForwardVisibility",t[t.Module=81]="Module",t[t.UnicodeRange=82]="UnicodeRange",t[t.Layer=83]="Layer",t[t.LayerNameList=84]="LayerNameList",t[t.LayerName=85]="LayerName",t[t.PropertyAtRule=86]="PropertyAtRule",t[t.Container=87]="Container"})(G||(G={}));(function(t){t[t.Mixin=0]="Mixin",t[t.Rule=1]="Rule",t[t.Variable=2]="Variable",t[t.Function=3]="Function",t[t.Keyframe=4]="Keyframe",t[t.Unknown=5]="Unknown",t[t.Module=6]="Module",t[t.Forward=7]="Forward",t[t.ForwardVisibility=8]="ForwardVisibility",t[t.Property=9]="Property"})(ze||(ze={}));Se=class{get end(){return this.offset+this.length}constructor(e=-1,n=-1,r){this.parent=null,this.offset=e,this.length=n,r&&(this.nodeType=r)}set type(e){this.nodeType=e}get type(){return this.nodeType||G.Undefined}getTextProvider(){let e=this;for(;e&&!e.textProvider;)e=e.parent;return e?e.textProvider:()=>"unknown"}getText(){return this.getTextProvider()(this.offset,this.length)}matches(e){return this.length===e.length&&this.getTextProvider()(this.offset,this.length)===e}startsWith(e){return this.length>=e.length&&this.getTextProvider()(this.offset,e.length)===e}endsWith(e){return this.length>=e.length&&this.getTextProvider()(this.end-e.length,e.length)===e}accept(e){if(e(this)&&this.children)for(let n of this.children)n.accept(e)}acceptVisitor(e){this.accept(e.visitNode.bind(e))}adoptChild(e,n=-1){if(e.parent&&e.parent.children){let i=e.parent.children.indexOf(e);i>=0&&e.parent.children.splice(i,1)}e.parent=this;let r=this.children;return r||(r=this.children=[]),n!==-1?r.splice(n,0,e):r.push(e),e}attachTo(e,n=-1){return e&&e.adoptChild(this,n),this}collectIssues(e){this.issues&&e.push.apply(e,this.issues)}addIssue(e){this.issues||(this.issues=[]),this.issues.push(e)}hasIssue(e){return Array.isArray(this.issues)&&this.issues.some(n=>n.getRule()===e)}isErroneous(e=!1){return this.issues&&this.issues.length>0?!0:e&&Array.isArray(this.children)&&this.children.some(n=>n.isErroneous(!0))}setNode(e,n,r=-1){return n?(n.attachTo(this,r),this[e]=n,!0):!1}addChild(e){return e?(this.children||(this.children=[]),e.attachTo(this),this.updateOffsetAndLength(e),!0):!1}updateOffsetAndLength(e){(e.offset<this.offset||this.offset===-1)&&(this.offset=e.offset);let n=e.end;(n>this.end||this.length===-1)&&(this.length=n-this.offset)}hasChildren(){return!!this.children&&this.children.length>0}getChildren(){return this.children?this.children.slice(0):[]}getChild(e){return this.children&&e<this.children.length?this.children[e]:null}addChildren(e){for(let n of e)this.addChild(n)}findFirstChildBeforeOffset(e){if(this.children){let n=null;for(let r=this.children.length-1;r>=0;r--)if(n=this.children[r],n.offset<=e)return n}return null}findChildAtOffset(e,n){let r=this.findFirstChildBeforeOffset(e);return r&&r.end>=e?n&&r.findChildAtOffset(e,!0)||r:null}encloses(e){return this.offset<=e.offset&&this.offset+this.length>=e.offset+e.length}getParent(){let e=this.parent;for(;e instanceof an;)e=e.parent;return e}findParent(e){let n=this;for(;n&&n.type!==e;)n=n.parent;return n}findAParent(...e){let n=this;for(;n&&!e.some(r=>n.type===r);)n=n.parent;return n}setData(e,n){this.options||(this.options={}),this.options[e]=n}getData(e){return!this.options||!this.options.hasOwnProperty(e)?null:this.options[e]}},an=class extends Se{constructor(e,n=-1){super(-1,-1),this.attachTo(e,n),this.offset=-1,this.length=-1}},Yf=class extends Se{constructor(e,n){super(e,n)}get type(){return G.UnicodeRange}setRangeStart(e){return this.setNode("rangeStart",e)}getRangeStart(){return this.rangeStart}setRangeEnd(e){return this.setNode("rangeEnd",e)}getRangeEnd(){return this.rangeEnd}},rn=class extends Se{constructor(e,n){super(e,n),this.isCustomProperty=!1}get type(){return G.Identifier}containsInterpolation(){return this.hasChildren()}},Zf=class extends Se{constructor(e,n){super(e,n)}get type(){return G.Stylesheet}},Vo=class extends Se{constructor(e,n){super(e,n)}get type(){return G.Declarations}},ft=class extends Se{constructor(e,n){super(e,n)}getDeclarations(){return this.declarations}setDeclarations(e){return this.setNode("declarations",e)}},rr=class extends ft{constructor(e,n){super(e,n)}get type(){return G.Ruleset}getSelectors(){return this.selectors||(this.selectors=new an(this)),this.selectors}isNested(){return!!this.parent&&this.parent.findParent(G.Declarations)!==null}},kr=class extends Se{constructor(e,n){super(e,n)}get type(){return G.Selector}},Tr=class extends Se{constructor(e,n){super(e,n)}get type(){return G.SimpleSelector}},Tl=class extends Se{constructor(e,n){super(e,n)}},em=class extends ft{constructor(e,n){super(e,n)}get type(){return G.CustomPropertySet}},sn=class extends Tl{constructor(e,n){super(e,n),this.property=null}get type(){return G.Declaration}setProperty(e){return this.setNode("property",e)}getProperty(){return this.property}getFullPropertyName(){let e=this.property?this.property.getName():"unknown";if(this.parent instanceof Vo&&this.parent.getParent()instanceof Eu){let n=this.parent.getParent().getParent();if(n instanceof sn)return n.getFullPropertyName()+e}return e}getNonPrefixedPropertyName(){let e=this.getFullPropertyName();if(e&&e.charAt(0)==="-"){let n=e.indexOf("-",1);if(n!==-1)return e.substring(n+1)}return e}setValue(e){return this.setNode("value",e)}getValue(){return this.value}setNestedProperties(e){return this.setNode("nestedProperties",e)}getNestedProperties(){return this.nestedProperties}},tm=class extends sn{constructor(e,n){super(e,n)}get type(){return G.CustomPropertyDeclaration}setPropertySet(e){return this.setNode("propertySet",e)}getPropertySet(){return this.propertySet}},no=class extends Se{constructor(e,n){super(e,n)}get type(){return G.Property}setIdentifier(e){return this.setNode("identifier",e)}getIdentifier(){return this.identifier}getName(){return mP(this.getText(),/[_\+]+$/)}isCustomProperty(){return!!this.identifier&&this.identifier.isCustomProperty}},W_=class extends Se{constructor(e,n){super(e,n)}get type(){return G.Invocation}getArguments(){return this.arguments||(this.arguments=new an(this)),this.arguments}},Yr=class extends W_{constructor(e,n){super(e,n)}get type(){return G.Function}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}},Di=class extends Se{constructor(e,n){super(e,n)}get type(){return G.FunctionParameter}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}setDefaultValue(e){return this.setNode("defaultValue",e,0)}getDefaultValue(){return this.defaultValue}},ir=class extends Se{constructor(e,n){super(e,n)}get type(){return G.FunctionArgument}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}setValue(e){return this.setNode("value",e,0)}getValue(){return this.value}},nm=class extends ft{constructor(e,n){super(e,n)}get type(){return G.If}setExpression(e){return this.setNode("expression",e,0)}setElseClause(e){return this.setNode("elseClause",e)}},rm=class extends ft{constructor(e,n){super(e,n)}get type(){return G.For}setVariable(e){return this.setNode("variable",e,0)}},im=class extends ft{constructor(e,n){super(e,n)}get type(){return G.Each}getVariables(){return this.variables||(this.variables=new an(this)),this.variables}},sm=class extends ft{constructor(e,n){super(e,n)}get type(){return G.While}},om=class extends ft{constructor(e,n){super(e,n)}get type(){return G.Else}},ss=class extends ft{constructor(e,n){super(e,n)}get type(){return G.FunctionDeclaration}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}getParameters(){return this.parameters||(this.parameters=new an(this)),this.parameters}},am=class extends ft{constructor(e,n){super(e,n)}get type(){return G.ViewPort}},El=class extends ft{constructor(e,n){super(e,n)}get type(){return G.FontFace}},Eu=class extends ft{constructor(e,n){super(e,n)}get type(){return G.NestedProperties}},Dl=class extends ft{constructor(e,n){super(e,n)}get type(){return G.Keyframe}setKeyword(e){return this.setNode("keyword",e,0)}getKeyword(){return this.keyword}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}},Du=class extends ft{constructor(e,n){super(e,n)}get type(){return G.KeyframeSelector}},ro=class extends Se{constructor(e,n){super(e,n)}get type(){return G.Import}setMedialist(e){return e?(e.attachTo(this),!0):!1}},lm=class extends Se{get type(){return G.Use}getParameters(){return this.parameters||(this.parameters=new an(this)),this.parameters}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}},cm=class extends Se{get type(){return G.ModuleConfiguration}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}setValue(e){return this.setNode("value",e,0)}getValue(){return this.value}},um=class extends Se{get type(){return G.Forward}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getMembers(){return this.members||(this.members=new an(this)),this.members}getParameters(){return this.parameters||(this.parameters=new an(this)),this.parameters}},dm=class extends Se{get type(){return G.ForwardVisibility}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}},hm=class extends Se{constructor(e,n){super(e,n)}get type(){return G.Namespace}},Rl=class extends ft{constructor(e,n){super(e,n)}get type(){return G.Media}},Go=class extends ft{constructor(e,n){super(e,n)}get type(){return G.Supports}},pm=class extends ft{constructor(e,n){super(e,n)}get type(){return G.Layer}setNames(e){return this.setNode("names",e)}getNames(){return this.names}},fm=class extends ft{constructor(e,n){super(e,n)}get type(){return G.PropertyAtRule}setName(e){return e?(e.attachTo(this),this.name=e,!0):!1}getName(){return this.name}},mm=class extends ft{constructor(e,n){super(e,n)}get type(){return G.Document}},gm=class extends ft{constructor(e,n){super(e,n)}get type(){return G.Container}},Fl=class extends Se{constructor(e,n){super(e,n)}},Al=class extends Se{constructor(e,n){super(e,n)}get type(){return G.MediaQuery}},bm=class extends Se{constructor(e,n){super(e,n)}get type(){return G.MediaCondition}},vm=class extends Se{constructor(e,n){super(e,n)}get type(){return G.MediaFeature}},os=class extends Se{constructor(e,n){super(e,n)}get type(){return G.SupportsCondition}},ym=class extends ft{constructor(e,n){super(e,n)}get type(){return G.Page}},wm=class extends ft{constructor(e,n){super(e,n)}get type(){return G.PageBoxMarginBox}},Pl=class extends Se{constructor(e,n){super(e,n)}get type(){return G.Expression}},io=class extends Se{constructor(e,n){super(e,n)}get type(){return G.BinaryExpression}setLeft(e){return this.setNode("left",e)}getLeft(){return this.left}setRight(e){return this.setNode("right",e)}getRight(){return this.right}setOperator(e){return this.setNode("operator",e)}getOperator(){return this.operator}},_m=class extends Se{constructor(e,n){super(e,n)}get type(){return G.Term}setOperator(e){return this.setNode("operator",e)}getOperator(){return this.operator}setExpression(e){return this.setNode("expression",e)}getExpression(){return this.expression}},Sm=class extends Se{constructor(e,n){super(e,n)}get type(){return G.AttributeSelector}setNamespacePrefix(e){return this.setNode("namespacePrefix",e)}getNamespacePrefix(){return this.namespacePrefix}setIdentifier(e){return this.setNode("identifier",e)}getIdentifier(){return this.identifier}setOperator(e){return this.setNode("operator",e)}getOperator(){return this.operator}setValue(e){return this.setNode("value",e)}getValue(){return this.value}},Ko=class extends Se{constructor(e,n){super(e,n)}get type(){return G.HexColorValue}},xm=class extends Se{constructor(e,n){super(e,n)}get type(){return G.RatioValue}},bG=".".charCodeAt(0),vG="0".charCodeAt(0),yG="9".charCodeAt(0),Jo=class extends Se{constructor(e,n){super(e,n)}get type(){return G.NumericValue}getValue(){let e=this.getText(),n=0,r;for(let i=0,s=e.length;i<s&&(r=e.charCodeAt(i),vG<=r&&r<=yG||r===bG);i++)n+=1;return{value:e.substring(0,n),unit:n<e.length?e.substring(n):void 0}}},Ri=class extends Tl{constructor(e,n){super(e,n),this.needsSemicolon=!0}get type(){return G.VariableDeclaration}setVariable(e){return e?(e.attachTo(this),this.variable=e,!0):!1}getVariable(){return this.variable}getName(){return this.variable?this.variable.getName():""}setValue(e){return e?(e.attachTo(this),this.value=e,!0):!1}getValue(){return this.value}},Xo=class extends Se{constructor(e,n){super(e,n)}get type(){return G.Interpolation}},so=class extends Se{constructor(e,n){super(e,n)}get type(){return G.VariableName}getName(){return this.getText()}},Fi=class extends Se{constructor(e,n){super(e,n)}get type(){return G.ExtendsReference}getSelectors(){return this.selectors||(this.selectors=new an(this)),this.selectors}},Cm=class extends Se{constructor(e,n){super(e,n)}get type(){return G.MixinContentReference}getArguments(){return this.arguments||(this.arguments=new an(this)),this.arguments}},km=class extends ft{constructor(e,n){super(e,n)}get type(){return G.MixinContentDeclaration}getParameters(){return this.parameters||(this.parameters=new an(this)),this.parameters}},as=class extends Se{constructor(e,n){super(e,n)}get type(){return G.MixinReference}getNamespaces(){return this.namespaces||(this.namespaces=new an(this)),this.namespaces}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}getArguments(){return this.arguments||(this.arguments=new an(this)),this.arguments}setContent(e){return this.setNode("content",e)}getContent(){return this.content}},Zr=class extends ft{constructor(e,n){super(e,n)}get type(){return G.MixinDeclaration}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}getParameters(){return this.parameters||(this.parameters=new an(this)),this.parameters}setGuard(e){return e&&(e.attachTo(this),this.guard=e),!1}},Il=class extends ft{constructor(e,n){super(e,n)}get type(){return G.UnknownAtRule}setAtRuleName(e){this.atRuleName=e}getAtRuleName(){return this.atRuleName}},Tm=class extends Se{get type(){return G.ListEntry}setKey(e){return this.setNode("key",e,0)}setValue(e){return this.setNode("value",e,1)}},Em=class extends Se{getConditions(){return this.conditions||(this.conditions=new an(this)),this.conditions}},Dm=class extends Se{setVariable(e){return this.setNode("variable",e)}},Ru=class extends Se{get type(){return G.Module}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}};(function(t){t[t.Ignore=1]="Ignore",t[t.Warning=2]="Warning",t[t.Error=4]="Error"})(gn||(gn={}));Ml=class{constructor(e,n,r,i,s=e.offset,o=e.length){this.node=e,this.rule=n,this.level=r,this.message=i||n.message,this.offset=s,this.length=o}getRule(){return this.rule}getLevel(){return this.level}getOffset(){return this.offset}getLength(){return this.length}getNode(){return this.node}getMessage(){return this.message}},Ol=class{static entries(e){let n=new Ol;return e.acceptVisitor(n),n.entries}constructor(){this.entries=[]}visitNode(e){return e.isErroneous()&&e.collectIssues(this.entries),!0}}});var Ze,Qe,ne,Fm=xe(()=>{"use strict";Ze=cn(Tn()),Qe=class{constructor(e,n){this.id=e,this.message=n}},ne={NumberExpected:new Qe("css-numberexpected",Ze.t("number expected")),ConditionExpected:new Qe("css-conditionexpected",Ze.t("condition expected")),RuleOrSelectorExpected:new Qe("css-ruleorselectorexpected",Ze.t("at-rule or selector expected")),DotExpected:new Qe("css-dotexpected",Ze.t("dot expected")),ColonExpected:new Qe("css-colonexpected",Ze.t("colon expected")),SemiColonExpected:new Qe("css-semicolonexpected",Ze.t("semi-colon expected")),TermExpected:new Qe("css-termexpected",Ze.t("term expected")),ExpressionExpected:new Qe("css-expressionexpected",Ze.t("expression expected")),OperatorExpected:new Qe("css-operatorexpected",Ze.t("operator expected")),IdentifierExpected:new Qe("css-identifierexpected",Ze.t("identifier expected")),PercentageExpected:new Qe("css-percentageexpected",Ze.t("percentage expected")),URIOrStringExpected:new Qe("css-uriorstringexpected",Ze.t("uri or string expected")),URIExpected:new Qe("css-uriexpected",Ze.t("URI expected")),VariableNameExpected:new Qe("css-varnameexpected",Ze.t("variable name expected")),VariableValueExpected:new Qe("css-varvalueexpected",Ze.t("variable value expected")),PropertyValueExpected:new Qe("css-propertyvalueexpected",Ze.t("property value expected")),LeftCurlyExpected:new Qe("css-lcurlyexpected",Ze.t("{ expected")),RightCurlyExpected:new Qe("css-rcurlyexpected",Ze.t("} expected")),LeftSquareBracketExpected:new Qe("css-rbracketexpected",Ze.t("[ expected")),RightSquareBracketExpected:new Qe("css-lbracketexpected",Ze.t("] expected")),LeftParenthesisExpected:new Qe("css-lparentexpected",Ze.t("( expected")),RightParenthesisExpected:new Qe("css-rparentexpected",Ze.t(") expected")),CommaExpected:new Qe("css-commaexpected",Ze.t("comma expected")),PageDirectiveOrDeclarationExpected:new Qe("css-pagedirordeclexpected",Ze.t("page directive or declaraton expected")),UnknownAtRule:new Qe("css-unknownatrule",Ze.t("at-rule unknown")),UnknownKeyword:new Qe("css-unknownkeyword",Ze.t("unknown keyword")),SelectorExpected:new Qe("css-selectorexpected",Ze.t("selector expected")),StringLiteralExpected:new Qe("css-stringliteralexpected",Ze.t("string literal expected")),WhitespaceExpected:new Qe("css-whitespaceexpected",Ze.t("whitespace expected")),MediaQueryExpected:new Qe("css-mediaqueryexpected",Ze.t("media query expected")),IdentifierOrWildcardExpected:new Qe("css-idorwildcardexpected",Ze.t("identifier or wildcard expected")),WildcardExpected:new Qe("css-wildcardexpected",Ze.t("wildcard expected")),IdentifierOrVariableExpected:new Qe("css-idorvarexpected",Ze.t("identifier or variable expected"))}});var Am,U_,bP,Pm,Gt,Le,oo,vP,Fu,Im,Mm,Om,Lm,H_,Qo,yP,wP,Nl,Ai,Pe,$_,zl,_P,Yo,B_,V_,G_,Au,SP,ql,K_,xP,In,Zo,Re,hn,Pi,CP,kP,TP,Nm,zm,jl,qm,EP,DP,ls,jm,Er,RP,Wm,FP,Um,Wl,Hm,$m,Ul,AP,PP,Bm,ea,IP,MP,OP,LP,NP,zP,qP,J_,X_,jP,WP,UP,HP,$P,BP,VP,GP,KP,Q_,se,JP=xe(()=>{"use strict";(function(t){function e(n){return typeof n=="string"}t.is=e})(Am||(Am={}));(function(t){function e(n){return typeof n=="string"}t.is=e})(U_||(U_={}));(function(t){t.MIN_VALUE=-2147483648,t.MAX_VALUE=2147483647;function e(n){return typeof n=="number"&&t.MIN_VALUE<=n&&n<=t.MAX_VALUE}t.is=e})(bP||(bP={}));(function(t){t.MIN_VALUE=0,t.MAX_VALUE=2147483647;function e(n){return typeof n=="number"&&t.MIN_VALUE<=n&&n<=t.MAX_VALUE}t.is=e})(Pm||(Pm={}));(function(t){function e(r,i){return r===Number.MAX_VALUE&&(r=Pm.MAX_VALUE),i===Number.MAX_VALUE&&(i=Pm.MAX_VALUE),{line:r,character:i}}t.create=e;function n(r){let i=r;return se.objectLiteral(i)&&se.uinteger(i.line)&&se.uinteger(i.character)}t.is=n})(Gt||(Gt={}));(function(t){function e(r,i,s,o){if(se.uinteger(r)&&se.uinteger(i)&&se.uinteger(s)&&se.uinteger(o))return{start:Gt.create(r,i),end:Gt.create(s,o)};if(Gt.is(r)&&Gt.is(i))return{start:r,end:i};throw new Error(`Range#create called with invalid arguments[${r}, ${i}, ${s}, ${o}]`)}t.create=e;function n(r){let i=r;return se.objectLiteral(i)&&Gt.is(i.start)&&Gt.is(i.end)}t.is=n})(Le||(Le={}));(function(t){function e(r,i){return{uri:r,range:i}}t.create=e;function n(r){let i=r;return se.objectLiteral(i)&&Le.is(i.range)&&(se.string(i.uri)||se.undefined(i.uri))}t.is=n})(oo||(oo={}));(function(t){function e(r,i,s,o){return{targetUri:r,targetRange:i,targetSelectionRange:s,originSelectionRange:o}}t.create=e;function n(r){let i=r;return se.objectLiteral(i)&&Le.is(i.targetRange)&&se.string(i.targetUri)&&Le.is(i.targetSelectionRange)&&(Le.is(i.originSelectionRange)||se.undefined(i.originSelectionRange))}t.is=n})(vP||(vP={}));(function(t){function e(r,i,s,o){return{red:r,green:i,blue:s,alpha:o}}t.create=e;function n(r){let i=r;return se.objectLiteral(i)&&se.numberRange(i.red,0,1)&&se.numberRange(i.green,0,1)&&se.numberRange(i.blue,0,1)&&se.numberRange(i.alpha,0,1)}t.is=n})(Fu||(Fu={}));(function(t){function e(r,i){return{range:r,color:i}}t.create=e;function n(r){let i=r;return se.objectLiteral(i)&&Le.is(i.range)&&Fu.is(i.color)}t.is=n})(Im||(Im={}));(function(t){function e(r,i,s){return{label:r,textEdit:i,additionalTextEdits:s}}t.create=e;function n(r){let i=r;return se.objectLiteral(i)&&se.string(i.label)&&(se.undefined(i.textEdit)||Pe.is(i))&&(se.undefined(i.additionalTextEdits)||se.typedArray(i.additionalTextEdits,Pe.is))}t.is=n})(Mm||(Mm={}));(function(t){t.Comment="comment",t.Imports="imports",t.Region="region"})(Om||(Om={}));(function(t){function e(r,i,s,o,l,a){let c={startLine:r,endLine:i};return se.defined(s)&&(c.startCharacter=s),se.defined(o)&&(c.endCharacter=o),se.defined(l)&&(c.kind=l),se.defined(a)&&(c.collapsedText=a),c}t.create=e;function n(r){let i=r;return se.objectLiteral(i)&&se.uinteger(i.startLine)&&se.uinteger(i.startLine)&&(se.undefined(i.startCharacter)||se.uinteger(i.startCharacter))&&(se.undefined(i.endCharacter)||se.uinteger(i.endCharacter))&&(se.undefined(i.kind)||se.string(i.kind))}t.is=n})(Lm||(Lm={}));(function(t){function e(r,i){return{location:r,message:i}}t.create=e;function n(r){let i=r;return se.defined(i)&&oo.is(i.location)&&se.string(i.message)}t.is=n})(H_||(H_={}));(function(t){t.Error=1,t.Warning=2,t.Information=3,t.Hint=4})(Qo||(Qo={}));(function(t){t.Unnecessary=1,t.Deprecated=2})(yP||(yP={}));(function(t){function e(n){let r=n;return se.objectLiteral(r)&&se.string(r.href)}t.is=e})(wP||(wP={}));(function(t){function e(r,i,s,o,l,a){let c={range:r,message:i};return se.defined(s)&&(c.severity=s),se.defined(o)&&(c.code=o),se.defined(l)&&(c.source=l),se.defined(a)&&(c.relatedInformation=a),c}t.create=e;function n(r){var i;let s=r;return se.defined(s)&&Le.is(s.range)&&se.string(s.message)&&(se.number(s.severity)||se.undefined(s.severity))&&(se.integer(s.code)||se.string(s.code)||se.undefined(s.code))&&(se.undefined(s.codeDescription)||se.string((i=s.codeDescription)===null||i===void 0?void 0:i.href))&&(se.string(s.source)||se.undefined(s.source))&&(se.undefined(s.relatedInformation)||se.typedArray(s.relatedInformation,H_.is))}t.is=n})(Nl||(Nl={}));(function(t){function e(r,i,...s){let o={title:r,command:i};return se.defined(s)&&s.length>0&&(o.arguments=s),o}t.create=e;function n(r){let i=r;return se.defined(i)&&se.string(i.title)&&se.string(i.command)}t.is=n})(Ai||(Ai={}));(function(t){function e(s,o){return{range:s,newText:o}}t.replace=e;function n(s,o){return{range:{start:s,end:s},newText:o}}t.insert=n;function r(s){return{range:s,newText:""}}t.del=r;function i(s){let o=s;return se.objectLiteral(o)&&se.string(o.newText)&&Le.is(o.range)}t.is=i})(Pe||(Pe={}));(function(t){function e(r,i,s){let o={label:r};return i!==void 0&&(o.needsConfirmation=i),s!==void 0&&(o.description=s),o}t.create=e;function n(r){let i=r;return se.objectLiteral(i)&&se.string(i.label)&&(se.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(se.string(i.description)||i.description===void 0)}t.is=n})($_||($_={}));(function(t){function e(n){let r=n;return se.string(r)}t.is=e})(zl||(zl={}));(function(t){function e(s,o,l){return{range:s,newText:o,annotationId:l}}t.replace=e;function n(s,o,l){return{range:{start:s,end:s},newText:o,annotationId:l}}t.insert=n;function r(s,o){return{range:s,newText:"",annotationId:o}}t.del=r;function i(s){let o=s;return Pe.is(o)&&($_.is(o.annotationId)||zl.is(o.annotationId))}t.is=i})(_P||(_P={}));(function(t){function e(r,i){return{textDocument:r,edits:i}}t.create=e;function n(r){let i=r;return se.defined(i)&&K_.is(i.textDocument)&&Array.isArray(i.edits)}t.is=n})(Yo||(Yo={}));(function(t){function e(r,i,s){let o={kind:"create",uri:r};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(o.options=i),s!==void 0&&(o.annotationId=s),o}t.create=e;function n(r){let i=r;return i&&i.kind==="create"&&se.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||se.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||se.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||zl.is(i.annotationId))}t.is=n})(B_||(B_={}));(function(t){function e(r,i,s,o){let l={kind:"rename",oldUri:r,newUri:i};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(l.options=s),o!==void 0&&(l.annotationId=o),l}t.create=e;function n(r){let i=r;return i&&i.kind==="rename"&&se.string(i.oldUri)&&se.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||se.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||se.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||zl.is(i.annotationId))}t.is=n})(V_||(V_={}));(function(t){function e(r,i,s){let o={kind:"delete",uri:r};return i!==void 0&&(i.recursive!==void 0||i.ignoreIfNotExists!==void 0)&&(o.options=i),s!==void 0&&(o.annotationId=s),o}t.create=e;function n(r){let i=r;return i&&i.kind==="delete"&&se.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||se.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||se.boolean(i.options.ignoreIfNotExists)))&&(i.annotationId===void 0||zl.is(i.annotationId))}t.is=n})(G_||(G_={}));(function(t){function e(n){let r=n;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(i=>se.string(i.kind)?B_.is(i)||V_.is(i)||G_.is(i):Yo.is(i)))}t.is=e})(Au||(Au={}));(function(t){function e(r){return{uri:r}}t.create=e;function n(r){let i=r;return se.defined(i)&&se.string(i.uri)}t.is=n})(SP||(SP={}));(function(t){function e(r,i){return{uri:r,version:i}}t.create=e;function n(r){let i=r;return se.defined(i)&&se.string(i.uri)&&se.integer(i.version)}t.is=n})(ql||(ql={}));(function(t){function e(r,i){return{uri:r,version:i}}t.create=e;function n(r){let i=r;return se.defined(i)&&se.string(i.uri)&&(i.version===null||se.integer(i.version))}t.is=n})(K_||(K_={}));(function(t){function e(r,i,s,o){return{uri:r,languageId:i,version:s,text:o}}t.create=e;function n(r){let i=r;return se.defined(i)&&se.string(i.uri)&&se.string(i.languageId)&&se.integer(i.version)&&se.string(i.text)}t.is=n})(xP||(xP={}));(function(t){t.PlainText="plaintext",t.Markdown="markdown";function e(n){let r=n;return r===t.PlainText||r===t.Markdown}t.is=e})(In||(In={}));(function(t){function e(n){let r=n;return se.objectLiteral(n)&&In.is(r.kind)&&se.string(r.value)}t.is=e})(Zo||(Zo={}));(function(t){t.Text=1,t.Method=2,t.Function=3,t.Constructor=4,t.Field=5,t.Variable=6,t.Class=7,t.Interface=8,t.Module=9,t.Property=10,t.Unit=11,t.Value=12,t.Enum=13,t.Keyword=14,t.Snippet=15,t.Color=16,t.File=17,t.Reference=18,t.Folder=19,t.EnumMember=20,t.Constant=21,t.Struct=22,t.Event=23,t.Operator=24,t.TypeParameter=25})(Re||(Re={}));(function(t){t.PlainText=1,t.Snippet=2})(hn||(hn={}));(function(t){t.Deprecated=1})(Pi||(Pi={}));(function(t){function e(r,i,s){return{newText:r,insert:i,replace:s}}t.create=e;function n(r){let i=r;return i&&se.string(i.newText)&&Le.is(i.insert)&&Le.is(i.replace)}t.is=n})(CP||(CP={}));(function(t){t.asIs=1,t.adjustIndentation=2})(kP||(kP={}));(function(t){function e(n){let r=n;return r&&(se.string(r.detail)||r.detail===void 0)&&(se.string(r.description)||r.description===void 0)}t.is=e})(TP||(TP={}));(function(t){function e(n){return{label:n}}t.create=e})(Nm||(Nm={}));(function(t){function e(n,r){return{items:n||[],isIncomplete:!!r}}t.create=e})(zm||(zm={}));(function(t){function e(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}t.fromPlainText=e;function n(r){let i=r;return se.string(i)||se.objectLiteral(i)&&se.string(i.language)&&se.string(i.value)}t.is=n})(jl||(jl={}));(function(t){function e(n){let r=n;return!!r&&se.objectLiteral(r)&&(Zo.is(r.contents)||jl.is(r.contents)||se.typedArray(r.contents,jl.is))&&(n.range===void 0||Le.is(n.range))}t.is=e})(qm||(qm={}));(function(t){function e(n,r){return r?{label:n,documentation:r}:{label:n}}t.create=e})(EP||(EP={}));(function(t){function e(n,r,...i){let s={label:n};return se.defined(r)&&(s.documentation=r),se.defined(i)?s.parameters=i:s.parameters=[],s}t.create=e})(DP||(DP={}));(function(t){t.Text=1,t.Read=2,t.Write=3})(ls||(ls={}));(function(t){function e(n,r){let i={range:n};return se.number(r)&&(i.kind=r),i}t.create=e})(jm||(jm={}));(function(t){t.File=1,t.Module=2,t.Namespace=3,t.Package=4,t.Class=5,t.Method=6,t.Property=7,t.Field=8,t.Constructor=9,t.Enum=10,t.Interface=11,t.Function=12,t.Variable=13,t.Constant=14,t.String=15,t.Number=16,t.Boolean=17,t.Array=18,t.Object=19,t.Key=20,t.Null=21,t.EnumMember=22,t.Struct=23,t.Event=24,t.Operator=25,t.TypeParameter=26})(Er||(Er={}));(function(t){t.Deprecated=1})(RP||(RP={}));(function(t){function e(n,r,i,s,o){let l={name:n,kind:r,location:{uri:s,range:i}};return o&&(l.containerName=o),l}t.create=e})(Wm||(Wm={}));(function(t){function e(n,r,i,s){return s!==void 0?{name:n,kind:r,location:{uri:i,range:s}}:{name:n,kind:r,location:{uri:i}}}t.create=e})(FP||(FP={}));(function(t){function e(r,i,s,o,l,a){let c={name:r,detail:i,kind:s,range:o,selectionRange:l};return a!==void 0&&(c.children=a),c}t.create=e;function n(r){let i=r;return i&&se.string(i.name)&&se.number(i.kind)&&Le.is(i.range)&&Le.is(i.selectionRange)&&(i.detail===void 0||se.string(i.detail))&&(i.deprecated===void 0||se.boolean(i.deprecated))&&(i.children===void 0||Array.isArray(i.children))&&(i.tags===void 0||Array.isArray(i.tags))}t.is=n})(Um||(Um={}));(function(t){t.Empty="",t.QuickFix="quickfix",t.Refactor="refactor",t.RefactorExtract="refactor.extract",t.RefactorInline="refactor.inline",t.RefactorRewrite="refactor.rewrite",t.Source="source",t.SourceOrganizeImports="source.organizeImports",t.SourceFixAll="source.fixAll"})(Wl||(Wl={}));(function(t){t.Invoked=1,t.Automatic=2})(Hm||(Hm={}));(function(t){function e(r,i,s){let o={diagnostics:r};return i!=null&&(o.only=i),s!=null&&(o.triggerKind=s),o}t.create=e;function n(r){let i=r;return se.defined(i)&&se.typedArray(i.diagnostics,Nl.is)&&(i.only===void 0||se.typedArray(i.only,se.string))&&(i.triggerKind===void 0||i.triggerKind===Hm.Invoked||i.triggerKind===Hm.Automatic)}t.is=n})($m||($m={}));(function(t){function e(r,i,s){let o={title:r},l=!0;return typeof i=="string"?(l=!1,o.kind=i):Ai.is(i)?o.command=i:o.edit=i,l&&s!==void 0&&(o.kind=s),o}t.create=e;function n(r){let i=r;return i&&se.string(i.title)&&(i.diagnostics===void 0||se.typedArray(i.diagnostics,Nl.is))&&(i.kind===void 0||se.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||Ai.is(i.command))&&(i.isPreferred===void 0||se.boolean(i.isPreferred))&&(i.edit===void 0||Au.is(i.edit))}t.is=n})(Ul||(Ul={}));(function(t){function e(r,i){let s={range:r};return se.defined(i)&&(s.data=i),s}t.create=e;function n(r){let i=r;return se.defined(i)&&Le.is(i.range)&&(se.undefined(i.command)||Ai.is(i.command))}t.is=n})(AP||(AP={}));(function(t){function e(r,i){return{tabSize:r,insertSpaces:i}}t.create=e;function n(r){let i=r;return se.defined(i)&&se.uinteger(i.tabSize)&&se.boolean(i.insertSpaces)}t.is=n})(PP||(PP={}));(function(t){function e(r,i,s){return{range:r,target:i,data:s}}t.create=e;function n(r){let i=r;return se.defined(i)&&Le.is(i.range)&&(se.undefined(i.target)||se.string(i.target))}t.is=n})(Bm||(Bm={}));(function(t){function e(r,i){return{range:r,parent:i}}t.create=e;function n(r){let i=r;return se.objectLiteral(i)&&Le.is(i.range)&&(i.parent===void 0||t.is(i.parent))}t.is=n})(ea||(ea={}));(function(t){t.namespace="namespace",t.type="type",t.class="class",t.enum="enum",t.interface="interface",t.struct="struct",t.typeParameter="typeParameter",t.parameter="parameter",t.variable="variable",t.property="property",t.enumMember="enumMember",t.event="event",t.function="function",t.method="method",t.macro="macro",t.keyword="keyword",t.modifier="modifier",t.comment="comment",t.string="string",t.number="number",t.regexp="regexp",t.operator="operator",t.decorator="decorator"})(IP||(IP={}));(function(t){t.declaration="declaration",t.definition="definition",t.readonly="readonly",t.static="static",t.deprecated="deprecated",t.abstract="abstract",t.async="async",t.modification="modification",t.documentation="documentation",t.defaultLibrary="defaultLibrary"})(MP||(MP={}));(function(t){function e(n){let r=n;return se.objectLiteral(r)&&(r.resultId===void 0||typeof r.resultId=="string")&&Array.isArray(r.data)&&(r.data.length===0||typeof r.data[0]=="number")}t.is=e})(OP||(OP={}));(function(t){function e(r,i){return{range:r,text:i}}t.create=e;function n(r){let i=r;return i!=null&&Le.is(i.range)&&se.string(i.text)}t.is=n})(LP||(LP={}));(function(t){function e(r,i,s){return{range:r,variableName:i,caseSensitiveLookup:s}}t.create=e;function n(r){let i=r;return i!=null&&Le.is(i.range)&&se.boolean(i.caseSensitiveLookup)&&(se.string(i.variableName)||i.variableName===void 0)}t.is=n})(NP||(NP={}));(function(t){function e(r,i){return{range:r,expression:i}}t.create=e;function n(r){let i=r;return i!=null&&Le.is(i.range)&&(se.string(i.expression)||i.expression===void 0)}t.is=n})(zP||(zP={}));(function(t){function e(r,i){return{frameId:r,stoppedLocation:i}}t.create=e;function n(r){let i=r;return se.defined(i)&&Le.is(r.stoppedLocation)}t.is=n})(qP||(qP={}));(function(t){t.Type=1,t.Parameter=2;function e(n){return n===1||n===2}t.is=e})(J_||(J_={}));(function(t){function e(r){return{value:r}}t.create=e;function n(r){let i=r;return se.objectLiteral(i)&&(i.tooltip===void 0||se.string(i.tooltip)||Zo.is(i.tooltip))&&(i.location===void 0||oo.is(i.location))&&(i.command===void 0||Ai.is(i.command))}t.is=n})(X_||(X_={}));(function(t){function e(r,i,s){let o={position:r,label:i};return s!==void 0&&(o.kind=s),o}t.create=e;function n(r){let i=r;return se.objectLiteral(i)&&Gt.is(i.position)&&(se.string(i.label)||se.typedArray(i.label,X_.is))&&(i.kind===void 0||J_.is(i.kind))&&i.textEdits===void 0||se.typedArray(i.textEdits,Pe.is)&&(i.tooltip===void 0||se.string(i.tooltip)||Zo.is(i.tooltip))&&(i.paddingLeft===void 0||se.boolean(i.paddingLeft))&&(i.paddingRight===void 0||se.boolean(i.paddingRight))}t.is=n})(jP||(jP={}));(function(t){function e(n){return{kind:"snippet",value:n}}t.createSnippet=e})(WP||(WP={}));(function(t){function e(n,r,i,s){return{insertText:n,filterText:r,range:i,command:s}}t.create=e})(UP||(UP={}));(function(t){function e(n){return{items:n}}t.create=e})(HP||(HP={}));(function(t){t.Invoked=0,t.Automatic=1})($P||($P={}));(function(t){function e(n,r){return{range:n,text:r}}t.create=e})(BP||(BP={}));(function(t){function e(n,r){return{triggerKind:n,selectedCompletionInfo:r}}t.create=e})(VP||(VP={}));(function(t){function e(n){let r=n;return se.objectLiteral(r)&&U_.is(r.uri)&&se.string(r.name)}t.is=e})(GP||(GP={}));(function(t){function e(s,o,l,a){return new Q_(s,o,l,a)}t.create=e;function n(s){let o=s;return!!(se.defined(o)&&se.string(o.uri)&&(se.undefined(o.languageId)||se.string(o.languageId))&&se.uinteger(o.lineCount)&&se.func(o.getText)&&se.func(o.positionAt)&&se.func(o.offsetAt))}t.is=n;function r(s,o){let l=s.getText(),a=i(o,(u,d)=>{let h=u.range.start.line-d.range.start.line;return h===0?u.range.start.character-d.range.start.character:h}),c=l.length;for(let u=a.length-1;u>=0;u--){let d=a[u],h=s.offsetAt(d.range.start),m=s.offsetAt(d.range.end);if(m<=c)l=l.substring(0,h)+d.newText+l.substring(m,l.length);else throw new Error("Overlapping edit");c=h}return l}t.applyEdits=r;function i(s,o){if(s.length<=1)return s;let l=s.length/2|0,a=s.slice(0,l),c=s.slice(l);i(a,o),i(c,o);let u=0,d=0,h=0;for(;u<a.length&&d<c.length;)o(a[u],c[d])<=0?s[h++]=a[u++]:s[h++]=c[d++];for(;u<a.length;)s[h++]=a[u++];for(;d<c.length;)s[h++]=c[d++];return s}})(KP||(KP={}));Q_=class{constructor(e,n,r,i){this._uri=e,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(e){if(e){let n=this.offsetAt(e.start),r=this.offsetAt(e.end);return this._content.substring(n,r)}return this._content}update(e,n){this._content=e.text,this._version=n,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let e=[],n=this._content,r=!0;for(let i=0;i<n.length;i++){r&&(e.push(i),r=!1);let s=n.charAt(i);r=s==="\r"||s===`
536
536
  `,s==="\r"&&i+1<n.length&&n.charAt(i+1)===`
package/package.json CHANGED
@@ -24,7 +24,7 @@
24
24
  "color": "#17191E",
25
25
  "theme": "dark"
26
26
  },
27
- "version": "2.6.0",
27
+ "version": "2.6.1",
28
28
  "author": "withastro",
29
29
  "license": "MIT",
30
30
  "publisher": "astro-build",
@@ -208,7 +208,7 @@
208
208
  ]
209
209
  },
210
210
  "devDependencies": {
211
- "@astrojs/language-server": "^2.6.0",
211
+ "@astrojs/language-server": "^2.6.1",
212
212
  "@astrojs/ts-plugin": "^1.4.0",
213
213
  "@types/glob": "^8.1.0",
214
214
  "@types/mocha": "^10.0.1",