@t1ckbase/vscode-langservers-extracted 2.0.3 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -5
- package/dist/htmlServerMain.js +3 -1
- package/dist/jsonServerMain.js +35 -35
- package/package.json +11 -11
- package/upstream.json +7 -0
package/README.md
CHANGED
|
@@ -3,16 +3,18 @@
|
|
|
3
3
|
[](https://www.npmjs.com/package/@t1ckbase/vscode-langservers-extracted)
|
|
4
4
|
[](https://github.com/T1ckbase/vscode-langservers-extracted/actions/workflows/release.yaml)
|
|
5
5
|
|
|
6
|
-
A drop-in replacement for [@hrsh7th's `vscode-langservers-extracted`](https://github.com/hrsh7th/vscode-langservers-extracted).
|
|
6
|
+
A drop-in replacement for [@hrsh7th's `vscode-langservers-extracted`](https://github.com/hrsh7th/vscode-langservers-extracted), with special thanks for creating the original project.
|
|
7
7
|
|
|
8
8
|
The HTML, CSS, and JSON language servers are extracted from [VS Code](https://github.com/microsoft/vscode), while the ESLint language server is extracted from the [VS Code ESLint extension](https://github.com/microsoft/vscode-eslint). Markdown language server uses the official [`vscode-markdown-languageserver`](https://www.npmjs.com/package/vscode-markdown-languageserver) package.
|
|
9
9
|
|
|
10
|
+
Note that [`@zed-industries/vscode-langservers-extracted`](https://github.com/zed-industries/vscode-langservers-extracted) is tailored specifically for Zed and currently only includes the HTML language server.
|
|
11
|
+
|
|
10
12
|
## Patches
|
|
11
13
|
|
|
12
|
-
- HTML language server
|
|
13
|
-
- Fixed hardcoded TypeScript lib path.
|
|
14
|
-
-
|
|
15
|
-
-
|
|
14
|
+
- HTML language server:
|
|
15
|
+
- Fixed embedded JavaScript IntelliSense by replacing hardcoded TypeScript `lib` path with runtime resolution.
|
|
16
|
+
- Fixed Go to Definition by replacing VS Code's virtual TypeScript libs URI with `file` URI.
|
|
17
|
+
- Updated `lib` target to `ESNext`.
|
|
16
18
|
|
|
17
19
|
## Usage
|
|
18
20
|
|
package/dist/htmlServerMain.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { fileURLToPath as ___fileURLToPath } from 'node:url';
|
|
2
|
+
import { dirname as ___dirname } from 'node:path';
|
|
1
3
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
4
|
var av=Object.create;var ca=Object.defineProperty;var ov=Object.getOwnPropertyDescriptor;var lv=Object.getOwnPropertyNames;var cv=Object.getPrototypeOf,dv=Object.prototype.hasOwnProperty;var Et=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,n)=>(typeof require<"u"?require:e)[n]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var Y=(t,e,n)=>()=>{if(n)throw n[0];try{return t&&(e=t(t=0)),e}catch(i){throw n=[i],i}};var ne=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(n){throw e=0,n}},mm=(t,e)=>{for(var n in e)ca(t,n,{get:e[n],enumerable:!0})},fm=(t,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of lv(e))!dv.call(t,r)&&r!==n&&ca(t,r,{get:()=>e[r],enumerable:!(i=ov(e,r))||i.enumerable});return t};var Be=(t,e,n)=>(n=t!=null?av(cv(t)):{},fm(e||!t||!t.__esModule?ca(n,"default",{value:t,enumerable:!0}):n,t)),rc=t=>fm(ca({},"__esModule",{value:!0}),t);var ht=ne((LA,_m)=>{"use strict";var sc=Object.defineProperty,hv=Object.getOwnPropertyDescriptor,uv=Object.getOwnPropertyNames,pv=Object.prototype.hasOwnProperty,mv=(t,e)=>{for(var n in e)sc(t,n,{get:e[n],enumerable:!0})},fv=(t,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of uv(e))!pv.call(t,r)&&r!==n&&sc(t,r,{get:()=>e[r],enumerable:!(i=hv(e,r))||i.enumerable});return t},gv=t=>fv(sc({},"__esModule",{value:!0}),t),bm={};mv(bm,{config:()=>Sv,t:()=>wm});_m.exports=gv(bm);var bv=Et("fs"),wv=Et("fs/promises");async function _v(t){if(t.protocol==="file:")return await(0,wv.readFile)(t,"utf8");if(t.protocol==="http:"||t.protocol==="https:"){let e=await fetch(t.toString(),{headers:{"Accept-Encoding":"gzip, deflate",Accept:"application/json"},redirect:"follow"});if(!e.ok){let i=`Unexpected ${e.status} response while trying to read ${t}`;try{i+=`: ${await e.text()}`}catch{}throw new Error(i)}return await e.text()}throw new Error("Unsupported protocol")}function vv(t){return(0,bv.readFileSync)(t,"utf8")}var ns;function Sv(t){if("contents"in t){typeof t.contents=="string"?ns=JSON.parse(t.contents):ns=t.contents;return}if("fsPath"in t){let e=vv(t.fsPath),n=JSON.parse(e);ns=gm(n)?n.contents.bundle:n;return}if(t.uri){let e=t.uri;return typeof t.uri=="string"&&(e=new URL(t.uri)),new Promise((n,i)=>{_v(e).then(r=>{try{let s=JSON.parse(r);ns=gm(s)?s.contents.bundle:s,n()}catch(s){i(s)}}).catch(r=>{i(r)})})}}function wm(...t){let e=t[0],n,i,r;if(typeof e=="string")n=e,i=e,t.splice(0,1),r=!t||typeof t[0]!="object"?t:t[0];else if(e instanceof Array){let a=t.slice(1);if(e.length!==a.length+1)throw new Error("expected a string as the first argument to l10n.t");let l=e[0];for(let o=1;o<e.length;o++)l+=`{${o-1}}`+e[o];return wm(l,...a)}else i=e.message,n=i,e.comment&&e.comment.length>0&&(n+=`/${Array.isArray(e.comment)?e.comment.join(""):e.comment}`),r=e.args??{};let s=ns?.[n];return s?typeof s=="string"?da(s,r):s.comment?da(s.message,r):da(i,r):da(i,r)}var yv=/{([^}]+)}/g;function da(t,e){return Object.keys(e).length===0?t:t.replace(yv,(n,i)=>e[i]??n)}function gm(t){return typeof t?.contents?.bundle=="object"&&typeof t?.version=="string"}});var ha=ne(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.boolean=Fv;Vt.string=vm;Vt.number=Cv;Vt.error=xv;Vt.func=Sm;Vt.array=ym;Vt.stringArray=Av;Vt.typedArray=kv;Vt.thenable=Ev;function Fv(t){return t===!0||t===!1}function vm(t){return typeof t=="string"||t instanceof String}function Cv(t){return typeof t=="number"||t instanceof Number}function xv(t){return t instanceof Error}function Sm(t){return typeof t=="function"}function ym(t){return Array.isArray(t)}function Av(t){return ym(t)&&t.every(e=>vm(e))}function kv(t,e){return Array.isArray(t)&&t.every(e)}function Ev(t){return t&&Sm(t.then)}});var Vi=ne(_n=>{"use strict";Object.defineProperty(_n,"__esModule",{value:!0});_n.boolean=Mv;_n.string=Fm;_n.number=Tv;_n.error=Dv;_n.func=Rv;_n.array=Cm;_n.stringArray=Iv;function Mv(t){return t===!0||t===!1}function Fm(t){return typeof t=="string"||t instanceof String}function Tv(t){return typeof t=="number"||t instanceof Number}function Dv(t){return t instanceof Error}function Rv(t){return typeof t=="function"}function Cm(t){return Array.isArray(t)}function Iv(t){return Cm(t)&&t.every(e=>Fm(e))}});var Tc=ne(ae=>{"use strict";var Pv=ae&&ae.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var r=Object.getOwnPropertyDescriptor(e,n);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,r)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),Ov=ae&&ae.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),zv=ae&&ae.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(n){var i=[];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(i[i.length]=r);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var i=t(e),r=0;r<i.length;r++)i[r]!=="default"&&Pv(n,e,i[r]);return Ov(n,e),n}})();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 yi=zv(Vi()),ac;(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})(ac||(ae.ErrorCodes=ac={}));var oc=class t extends Error{code;data;constructor(e,n,i){super(n),this.code=yi.number(e)?e:ac.UnknownErrorCode,this.data=i,Object.setPrototypeOf(this,t.prototype)}toJson(){let e={code:this.code,message:this.message};return this.data!==void 0&&(e.data=this.data),e}};ae.ResponseError=oc;var Hn=class t{kind;static auto=new t("auto");static byPosition=new t("byPosition");static byName=new t("byName");constructor(e){this.kind=e}static is(e){return e===t.auto||e===t.byName||e===t.byPosition}toString(){return this.kind}};ae.ParameterStructures=Hn;var De=class{method;numberOfParams;constructor(e,n){this.method=e,this.numberOfParams=n}get parameterStructures(){return Hn.auto}};ae.AbstractMessageSignature=De;var lc=class extends De{_;constructor(e){super(e,0)}};ae.RequestType0=lc;var cc=class extends De{_parameterStructures;_;constructor(e,n=Hn.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};ae.RequestType=cc;var dc=class extends De{_parameterStructures;_;constructor(e,n=Hn.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};ae.RequestType1=dc;var hc=class extends De{_;constructor(e){super(e,2)}};ae.RequestType2=hc;var uc=class extends De{_;constructor(e){super(e,3)}};ae.RequestType3=uc;var pc=class extends De{_;constructor(e){super(e,4)}};ae.RequestType4=pc;var mc=class extends De{_;constructor(e){super(e,5)}};ae.RequestType5=mc;var fc=class extends De{_;constructor(e){super(e,6)}};ae.RequestType6=fc;var gc=class extends De{_;constructor(e){super(e,7)}};ae.RequestType7=gc;var bc=class extends De{_;constructor(e){super(e,8)}};ae.RequestType8=bc;var wc=class extends De{_;constructor(e){super(e,9)}};ae.RequestType9=wc;var _c=class extends De{_parameterStructures;_;constructor(e,n=Hn.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};ae.NotificationType=_c;var vc=class extends De{_;constructor(e){super(e,0)}};ae.NotificationType0=vc;var Sc=class extends De{_parameterStructures;_;constructor(e,n=Hn.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};ae.NotificationType1=Sc;var yc=class extends De{_;constructor(e){super(e,2)}};ae.NotificationType2=yc;var Fc=class extends De{_;constructor(e){super(e,3)}};ae.NotificationType3=Fc;var Cc=class extends De{_;constructor(e){super(e,4)}};ae.NotificationType4=Cc;var xc=class extends De{_;constructor(e){super(e,5)}};ae.NotificationType5=xc;var Ac=class extends De{_;constructor(e){super(e,6)}};ae.NotificationType6=Ac;var kc=class extends De{_;constructor(e){super(e,7)}};ae.NotificationType7=kc;var Ec=class extends De{_;constructor(e){super(e,8)}};ae.NotificationType8=Ec;var Mc=class extends De{_;constructor(e){super(e,9)}};ae.NotificationType9=Mc;var xm;(function(t){function e(r){let s=r;return s&&yi.string(s.method)&&(yi.string(s.id)||yi.number(s.id))}t.isRequest=e;function n(r){let s=r;return s&&yi.string(s.method)&&r.id===void 0}t.isNotification=n;function i(r){let s=r;return s&&(s.result!==void 0||!!s.error)&&(yi.string(s.id)||yi.number(s.id)||s.id===null)}t.isResponse=i})(xm||(ae.Message=xm={}))});var Rc=ne(Bn=>{"use strict";Object.defineProperty(Bn,"__esModule",{value:!0});Bn.LRUCache=Bn.LinkedMap=Bn.Touch=void 0;var ut;(function(t){t.None=0,t.First=1,t.AsOld=t.First,t.Last=2,t.AsNew=t.Last})(ut||(Bn.Touch=ut={}));var ua=class{[Symbol.toStringTag]="LinkedMap";_map;_head;_tail;_size;_state;constructor(){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}before(e){let n=this._map.get(e);return n?n.previous?.value:void 0}after(e){let n=this._map.get(e);return n?n.next?.value:void 0}has(e){return this._map.has(e)}get(e,n=ut.None){let i=this._map.get(e);if(i)return n!==ut.None&&this.touch(i,n),i.value}set(e,n,i=ut.None){let r=this._map.get(e);if(r)r.value=n,i!==ut.None&&this.touch(r,i);else{switch(r={key:e,value:n,next:void 0,previous:void 0},i){case ut.None:this.addItemLast(r);break;case ut.First:this.addItemFirst(r);break;case ut.Last:this.addItemLast(r);break;default:this.addItemLast(r);break}this._map.set(e,r),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){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 i=this._state,r=this._head;for(;r;){if(n?e.bind(n)(r.value,r.key,this):e(r.value,r.key,this),this._state!==i)throw new Error("LinkedMap got modified during iteration.");r=r.next}}keys(){let e=this._state,n=this._head,i={[Symbol.iterator]:()=>i,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(n){let r={value:n.key,done:!1};return n=n.next,r}else return{value:void 0,done:!0}}};return i}values(){let e=this._state,n=this._head,i={[Symbol.iterator]:()=>i,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(n){let r={value:n.value,done:!1};return n=n.next,r}else return{value:void 0,done:!0}}};return i}entries(){let e=this._state,n=this._head,i={[Symbol.iterator]:()=>i,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(n){let r={value:[n.key,n.value],done:!1};return n=n.next,r}else return{value:void 0,done:!0}}};return i}[Symbol.iterator](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let n=this._head,i=this.size;for(;n&&i>e;)this._map.delete(n.key),n=n.next,i--;this._head=n,this._size=i,n&&(n.previous=void 0),this._state++}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,i=e.previous;if(!n||!i)throw new Error("Invalid list");n.previous=i,i.next=n}e.next=void 0,e.previous=void 0,this._state++}touch(e,n){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(n!==ut.First&&n!==ut.Last)){if(n===ut.First){if(e===this._head)return;let i=e.next,r=e.previous;e===this._tail?(r.next=void 0,this._tail=r):(i.previous=r,r.next=i),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(n===ut.Last){if(e===this._tail)return;let i=e.next,r=e.previous;e===this._head?(i.previous=void 0,this._head=i):(i.previous=r,r.next=i),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){let e=[];return this.forEach((n,i)=>{e.push([i,n])}),e}fromJSON(e){this.clear();for(let[n,i]of e)this.set(n,i)}};Bn.LinkedMap=ua;var Dc=class extends ua{_limit;_ratio;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=ut.AsNew){return super.get(e,n)}peek(e){return super.get(e,ut.None)}set(e,n){return super.set(e,n,ut.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}};Bn.LRUCache=Dc});var km=ne(pa=>{"use strict";Object.defineProperty(pa,"__esModule",{value:!0});pa.Disposable=void 0;var Am;(function(t){function e(n){return{dispose:n}}t.create=e})(Am||(pa.Disposable=Am={}))});var jn=ne(Oc=>{"use strict";Object.defineProperty(Oc,"__esModule",{value:!0});var Ic;function Pc(){if(Ic===void 0)throw new Error("No runtime abstraction layer installed");return Ic}(function(t){function e(n){if(n===void 0)throw new Error("No runtime abstraction layer provided");Ic=n}t.install=e})(Pc||(Pc={}));Oc.default=Pc});var Gi=ne($n=>{"use strict";var Nv=$n&&$n.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty($n,"__esModule",{value:!0});$n.Emitter=$n.Event=void 0;var Lv=Nv(jn()),Em;(function(t){let e={dispose(){}};t.None=function(){return e}})(Em||($n.Event=Em={}));var zc=class{_callbacks;_contexts;add(e,n=null,i){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(n),Array.isArray(i)&&i.push({dispose:()=>this.remove(e,n)})}remove(e,n=null){if(!this._callbacks)return;let i=!1;for(let r=0,s=this._callbacks.length;r<s;r++)if(this._callbacks[r]===e)if(this._contexts[r]===n){this._callbacks.splice(r,1),this._contexts.splice(r,1);return}else i=!0;if(i)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=[],i=this._callbacks.slice(0),r=this._contexts.slice(0);for(let s=0,a=i.length;s<a;s++)try{n.push(i[s].apply(r[s],e))}catch(l){(0,Lv.default)().console.error(l)}return n}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}},Nc=class t{_options;static _noop=function(){};_event;_callbacks;constructor(e){this._options=e}get event(){return this._event||(this._event=(e,n,i)=>{this._callbacks||(this._callbacks=new zc),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(e,n);let r={dispose:()=>{this._callbacks&&(this._callbacks.remove(e,n),r.dispose=t._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(i)&&i.push(r),r}),this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}};$n.Emitter=Nc});var ga=ne(Ft=>{"use strict";var Wv=Ft&&Ft.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var r=Object.getOwnPropertyDescriptor(e,n);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,r)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),Uv=Ft&&Ft.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),qv=Ft&&Ft.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(n){var i=[];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(i[i.length]=r);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var i=t(e),r=0;r<i.length;r++)i[r]!=="default"&&Wv(n,e,i[r]);return Uv(n,e),n}})(),Hv=Ft&&Ft.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ft,"__esModule",{value:!0});Ft.CancellationTokenSource=Ft.CancellationToken=void 0;var Bv=Hv(jn()),jv=qv(Vi()),Lc=Gi(),ma;(function(t){t.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Lc.Event.None}),t.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Lc.Event.None});function e(n){let i=n;return i&&(i===t.None||i===t.Cancelled||jv.boolean(i.isCancellationRequested)&&!!i.onCancellationRequested)}t.is=e})(ma||(Ft.CancellationToken=ma={}));var $v=Object.freeze(function(t,e){let n=(0,Bv.default)().timer.setTimeout(t.bind(e),0);return{dispose(){n.dispose()}}}),fa=class{_isCancelled=!1;_emitter;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?$v:(this._emitter||(this._emitter=new Lc.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},Wc=class{_token;get token(){return this._token||(this._token=new fa),this._token}cancel(){this._token?this._token.cancel():this._token=ma.Cancelled}dispose(){this._token?this._token instanceof fa&&this._token.dispose():this._token=ma.None}};Ft.CancellationTokenSource=Wc});var Mm=ne(Ki=>{"use strict";Object.defineProperty(Ki,"__esModule",{value:!0});Ki.SharedArrayReceiverStrategy=Ki.SharedArraySenderStrategy=void 0;var Vv=ga(),is;(function(t){t.Continue=0,t.Cancelled=1})(is||(is={}));var Uc=class{buffers;constructor(){this.buffers=new Map}enableCancellation(e){if(e.id===null)return;let n=new SharedArrayBuffer(4),i=new Int32Array(n,0,1);i[0]=is.Continue,this.buffers.set(e.id,n),e.$cancellationData=n}async sendCancellation(e,n){let i=this.buffers.get(n);if(i===void 0)return;let r=new Int32Array(i,0,1);Atomics.store(r,0,is.Cancelled)}cleanup(e){this.buffers.delete(e)}dispose(){this.buffers.clear()}};Ki.SharedArraySenderStrategy=Uc;var qc=class{data;constructor(e){this.data=new Int32Array(e,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===is.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}},Hc=class{token;constructor(e){this.token=new qc(e)}cancel(){}dispose(){}},Bc=class{kind="request";createCancellationTokenSource(e){let n=e.$cancellationData;return n===void 0?new Vv.CancellationTokenSource:new Hc(n)}};Ki.SharedArrayReceiverStrategy=Bc});var $c=ne(Ji=>{"use strict";var Gv=Ji&&Ji.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ji,"__esModule",{value:!0});Ji.Semaphore=void 0;var Kv=Gv(jn()),jc=class{_capacity;_active;_waiting;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,i)=>{this._waiting.push({thunk:e,resolve:n,reject:i}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length===0||this._active===this._capacity||(0,Kv.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("Too many thunks active");try{let n=e.thunk();n instanceof Promise?n.then(i=>{this._active--,e.resolve(i),this.runNext()},i=>{this._active--,e.reject(i),this.runNext()}):(this._active--,e.resolve(n),this.runNext())}catch(n){this._active--,e.reject(n),this.runNext()}}};Ji.Semaphore=jc});var Dm=ne(pt=>{"use strict";var Jv=pt&&pt.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var r=Object.getOwnPropertyDescriptor(e,n);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,r)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),Yv=pt&&pt.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Xv=pt&&pt.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(n){var i=[];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(i[i.length]=r);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var i=t(e),r=0;r<i.length;r++)i[r]!=="default"&&Jv(n,e,i[r]);return Yv(n,e),n}})(),Zv=pt&&pt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(pt,"__esModule",{value:!0});pt.ReadableStreamMessageReader=pt.AbstractMessageReader=pt.MessageReader=void 0;var Gc=Zv(jn()),Yi=Xv(Vi()),Vc=Gi(),Qv=$c(),Tm;(function(t){function e(n){let i=n;return i&&Yi.func(i.listen)&&Yi.func(i.dispose)&&Yi.func(i.onError)&&Yi.func(i.onClose)&&Yi.func(i.onPartialMessage)}t.is=e})(Tm||(pt.MessageReader=Tm={}));var ba=class{errorEmitter;closeEmitter;partialMessageEmitter;constructor(){this.errorEmitter=new Vc.Emitter,this.closeEmitter=new Vc.Emitter,this.partialMessageEmitter=new Vc.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose(),this.partialMessageEmitter.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: ${Yi.string(e.message)?e.message:"unknown"}`)}};pt.AbstractMessageReader=ba;var Kc;(function(t){function e(n){let i,r,s,a=new Map,l,o=new Map;if(n===void 0||typeof n=="string")i=n??"utf-8";else{if(i=n.charset??"utf-8",n.contentDecoder!==void 0&&(s=n.contentDecoder,a.set(s.name,s)),n.contentDecoders!==void 0)for(let c of n.contentDecoders)a.set(c.name,c);if(n.contentTypeDecoder!==void 0&&(l=n.contentTypeDecoder,o.set(l.name,l)),n.contentTypeDecoders!==void 0)for(let c of n.contentTypeDecoders)o.set(c.name,c)}return l===void 0&&(l=(0,Gc.default)().applicationJson.decoder,o.set(l.name,l)),{charset:i,contentDecoder:s,contentDecoders:a,contentTypeDecoder:l,contentTypeDecoders:o}}t.fromOptions=e})(Kc||(Kc={}));var Jc=class extends ba{readable;options;callback;nextMessageLength;messageToken;buffer;partialMessageTimer;_partialMessageTimeout;readSemaphore;constructor(e,n){super(),this.readable=e,this.options=Kc.fromOptions(n),this.buffer=(0,Gc.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new Qv.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(i=>{this.onData(i)});return this.readable.onError(i=>this.fireError(i)),this.readable.onClose(()=>this.fireClose()),n}onData(e){try{for(this.buffer.append(e);;){if(this.nextMessageLength===-1){let i=this.buffer.tryReadHeaders(!0);if(!i)return;let r=i.get("content-length");if(!r){this.fireError(new Error(`Header must provide a Content-Length property.
|
|
3
5
|
${JSON.stringify(Object.fromEntries(i))}`));return}let s=parseInt(r);if(isNaN(s)){this.fireError(new Error(`Content-Length value must be a number. Got ${r}`));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 i=this.options.contentDecoder!==void 0?await this.options.contentDecoder.decode(n):n,r=await this.options.contentTypeDecoder.decode(i,this.options);this.callback(r)}).catch(i=>{this.fireError(i)})}}catch(n){this.fireError(n)}}clearPartialMessageTimer(){this.partialMessageTimer&&(this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),!(this._partialMessageTimeout<=0)&&(this.partialMessageTimer=(0,Gc.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))}};pt.ReadableStreamMessageReader=Jc});var zm=ne(mt=>{"use strict";var eS=mt&&mt.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var r=Object.getOwnPropertyDescriptor(e,n);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,r)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),tS=mt&&mt.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),nS=mt&&mt.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(n){var i=[];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(i[i.length]=r);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var i=t(e),r=0;r<i.length;r++)i[r]!=="default"&&eS(n,e,i[r]);return tS(n,e),n}})(),iS=mt&&mt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(mt,"__esModule",{value:!0});mt.WriteableStreamMessageWriter=mt.AbstractMessageWriter=mt.MessageWriter=void 0;var Rm=iS(jn()),rs=nS(Vi()),rS=$c(),Im=Gi(),sS="Content-Length: ",Pm=`\r
|
|
@@ -522,7 +524,7 @@ See [Browser compatibility](#Browser_compatibility) for notes on browser support
|
|
|
522
524
|
* \`0\` means that the element should be focusable and reachable via sequential keyboard navigation, but its relative order is defined by the platform convention;
|
|
523
525
|
* 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/Reference/Global_attributes/tabindex"}],browsers:["C1","CA18","E12","FF1.5","FFA4","S3.1","SM2"],status:{baseline:"high",baseline_low_date:"2015-07-29",baseline_high_date:"2018-01-29"}},{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/Reference/Global_attributes/title"}],browsers:["C1","CA18","E12","FF1","FFA4","S4","SM3.2"],status:{baseline:"high",baseline_low_date:"2015-07-29",baseline_high_date:"2018-01-29"}},{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/Reference/Global_attributes/translate"}],browsers:["C19","CA25","E79","FF111","FFA111","S6","SM6"],status:{baseline:"high",baseline_low_date:"2023-03-14",baseline_high_date:"2025-09-14"}},{name:"virtualkeyboardpolicy",description:{kind:"markdown",value:"When specified on an element that the element's content is editable (for example, it is an `<input>` or `<textarea>` element, or an element with the `contenteditable` attribute set), it controls the on-screen virtual keyboard behavior on devices such as tablets, mobile phones, or other devices where a hardware keyboard may not be available."},valueSet:"b",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Reference/Global_attributes/virtualkeyboardpolicy"}],browsers:["C94","CA94","E94"],status:{baseline:!1}},{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:"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"}]},{name:"enterkeyhint",values:[{name:"enter"},{name:"done"},{name:"go"},{name:"next"},{name:"previous"},{name:"search"},{name:"send"}]},{name:"popover",values:[{name:"auto"},{name:"hint"},{name:"manual"}]},{name:"fetchpriority",values:[{name:"high"},{name:"low"},{name:"auto"}]}]}});var Gl,Zx,V0=Y(()=>{"use strict";aa();Jp();Wp();Gl=class{constructor(e){this.dataProviders=[],this.setDataProviders(e.useDefaultDataProvider!==!1,e.customDataProviders||[])}setDataProviders(e,n){this.dataProviders=[],e&&this.dataProviders.push(new Yr("html5",Kp)),this.dataProviders.push(...n)}getDataProviders(){return this.dataProviders}isVoidElement(e,n){return!!e&&o0(n,e.toLowerCase(),(i,r)=>i.localeCompare(r))>=0}getVoidElements(e){let n=Array.isArray(e)?e:this.getDataProviders().filter(r=>r.isApplicable(e)),i=[];return n.forEach(r=>{r.provideTags().filter(s=>s.void).forEach(s=>i.push(s.name))}),i.sort()}isPathAttribute(e,n){if(n==="src"||n==="href")return!0;let i=Zx[e];return i?typeof i=="string"?i===n:i.indexOf(n)!==-1:!1}},Zx={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"]}});function G0(t=Qx){let e=new Gl(t),n=new Bl(t,e),i=new ql(t,e),r=new Wl(e),s=new Vl(r),a=new $l(e),l=new jl(e);return{setDataProviders:e.setDataProviders.bind(e),createScanner:Ke,parseHTMLDocument:r.parseDocument.bind(r),doComplete:i.doComplete.bind(i),doComplete2:i.doComplete2.bind(i),setCompletionParticipants:i.setCompletionParticipants.bind(i),doHover:n.doHover.bind(n),format:E0,findDocumentHighlights:P0,findDocumentLinks:l.findDocumentLinks.bind(l),findDocumentSymbols:z0,findDocumentSymbols2:Vp,getFoldingRanges:a.getFoldingRanges.bind(a),getSelectionRanges:s.getSelectionRanges.bind(s),doQuoteComplete:i.doQuoteComplete.bind(i),doTagComplete:i.doTagComplete.bind(i),doRename:W0,findMatchingTagPosition:q0,findOnTypeRenameRanges:Gp,findLinkedEditingRanges:Gp}}function Kl(t,e){return new Yr(t,e)}var Qx,Yp=Y(()=>{"use strict";Nn();l0();f0();b0();M0();T0();O0();L0();U0();H0();B0();j0();$0();aa();V0();Jp();At();Qx={}});function Wn(t,e,n){let i={},r=0,s;return e>0&&(s=setInterval(()=>{let a=Date.now()-e*1e3,l=Object.keys(i);for(let o of l)i[o].cTime<a&&(delete i[o],r--)},e*1e3)),{get(a){let l=a.version,o=a.languageId,c=i[a.uri];if(c&&c.version===l&&c.languageId===o)return c.cTime=Date.now(),c.languageModel;let d=n(a);if(i[a.uri]={languageModel:d,version:l,languageId:o,cTime:Date.now()},c||r++,r===t){let h=Number.MAX_VALUE,u=null;for(let m in i){let E=i[m];E.cTime<h&&(u=m,h=E.cTime)}u&&(delete i[u],r--)}return d},onDocumentRemoved(a){let l=a.uri;i[l]&&(delete i[l],r--)},dispose(){typeof s<"u"&&(clearInterval(s),s=void 0,i={},r=0)}}}var la=Y(()=>{"use strict"});function J0(t,e){let n=[],i=t.createScanner(e.getText()),r="",s=null,a,l=!1,o=[],c=i.scan();for(;c!==q.EOS;){switch(c){case q.StartTag:r=i.getTokenText(),s=null,a="javascript",l=!1;break;case q.Styles:n.push({languageId:"css",start:i.getTokenOffset(),end:i.getTokenEnd()});break;case q.Script:n.push({languageId:a,start:i.getTokenOffset(),end:i.getTokenEnd(),isModule:l});break;case q.AttributeName:s=i.getTokenText();break;case q.AttributeValue:if(s==="src"&&r.toLowerCase()==="script"){let d=i.getTokenText();(d[0]==="'"||d[0]==='"')&&(d=d.substr(1,d.length-1)),o.push(d)}else if(s==="type"&&r.toLowerCase()==="script"){let d=i.getTokenText(),h=d.toLowerCase();/["']module["']/.test(h)||h==="module"?(a="javascript",l=!0):/["'](text|application)\/(java|ecma)script["']/.test(d)||/["']text\/babel["']/.test(d)?a="javascript":/["']text\/typescript["']/.test(d)?a="typescript":a=void 0}else{let d=lA(s);if(d){let h=i.getTokenOffset(),u=i.getTokenEnd(),m=e.getText()[h];(m==="'"||m==='"')&&(h++,u--),n.push({languageId:d,start:h,end:u,attributeValue:!0})}}s=null;break}c=i.scan()}return{getLanguageRanges:d=>tA(e,n,d),getEmbeddedDocument:(d,h)=>Jl(e,n,d,h),getEmbeddedDocuments:(d,h)=>eA(e,n,d,h),getLanguageAtPosition:d=>iA(e,n,d),getLanguagesInDocument:()=>nA(e,n),getImportedScripts:()=>o}}function eA(t,e,n,i){let r=e.filter(a=>a.languageId===n&&a.isModule);if(r.length===0)return[Jl(t,e,n,i)];let s=[Jl(t,e.filter(a=>!a.isModule),n,i)];return r.forEach((a,l)=>{s.push(Jl(t,[a],n,i,`${t.uri}.module-${l}`,!0))}),s}function tA(t,e,n){let i=[],r=n?n.start:W.Position.create(0,0),s=n?t.offsetAt(n.start):0,a=n?t.offsetAt(n.end):t.getText().length;for(let l of e)if(l.end>s&&l.start<a){let o=Math.max(l.start,s),c=t.positionAt(o);s<l.start&&i.push({start:r,end:c,languageId:"html"});let d=Math.min(l.end,a),h=t.positionAt(d);d>l.start&&i.push({start:c,end:h,languageId:l.languageId,attributeValue:l.attributeValue}),s=d,r=h}if(s<a){let l=n?n.end:t.positionAt(a);i.push({start:r,end:l,languageId:"html"})}return i}function nA(t,e){let n=[];for(let i of e)if(i.languageId&&n.indexOf(i.languageId)===-1&&(n.push(i.languageId),n.length===3))return n;return n.push("html"),n}function iA(t,e,n){let i=t.offsetAt(n);for(let r of e)if(r.start<=i){if(i<=r.end)return r.languageId}else break;return"html"}function Jl(t,e,n,i,r=t.uri,s=!1){let a=0,l=t.getText(),o="",c="";for(let d of e)d.languageId===n&&(!i||!d.attributeValue)&&(o=K0(o,a,d.start,l,c,rA(d)),o+=aA(d,l.substring(d.start,d.end)),a=d.end,c=sA(d));return o=K0(o,a,l.length,l,c,""),s&&(o+=`
|
|
524
526
|
export {};`),ot.create(r,n,t.version,o)}function rA(t){return t.attributeValue&&t.languageId==="css"?Xp+"{":""}function sA(t){if(t.attributeValue)switch(t.languageId){case"css":return"}";case"javascript":return";"}return""}function aA(t,e){if(!t.attributeValue&&t.languageId==="javascript"){let n=/<!--([^\r\n\u2028\u2029]*?)-->/g;return e.replace(n,(i,r)=>`/* ${r} */`)}if(t.languageId==="css"){let n=/("|")/g;return e.replace(n,(i,r,s)=>{let a=" ".repeat(i.length-1),l=e[s+i.length];return!l||l.includes(" ")?`${a}"`:`"${a}`})}return e}function K0(t,e,n,i,r,s){t+=r;let a=-r.length;for(let l=e;l<n;l++){let o=i[l];o===`
|
|
525
|
-
`||o==="\r"?(a=0,t+=o):a++}return t=oA(t," ",a-s.length),t+=s,t}function oA(t,e,n){for(;n>0;)n&1&&(t+=e),n>>=1,e+=e;return t}function lA(t){let e=t.match(/^(style)$|^(on\w+)$/i);return e?e[1]?"css":"javascript":null}var Xp,Zp=Y(()=>{"use strict";Un();Xp="__"});function Y0(t,e,n){let i=Wn(10,60,s=>e.get(s).getEmbeddedDocument("css")),r=Wn(10,60,s=>t.parseStylesheet(s));return{getId(){return"css"},async doValidation(s,a=n.settings){let l=i.get(s);return t.doValidation(l,r.get(l),a&&a.css)},async doComplete(s,a,l,o=n.settings){let c=i.get(s),d=r.get(c);return t.doComplete2(c,a,d,l,o?.css?.completion)||W.CompletionList.create()},async doHover(s,a,l=n.settings){let o=i.get(s);return t.doHover(o,a,r.get(o),l?.css?.hover)},async findDocumentHighlight(s,a){let l=i.get(s);return t.findDocumentHighlights(l,a,r.get(l))},async findDocumentSymbols(s){let a=i.get(s);return t.findDocumentSymbols(a,r.get(a)).filter(l=>l.name!==Xp)},async findDefinition(s,a){let l=i.get(s);return t.findDefinition(l,a,r.get(l))},async findReferences(s,a){let l=i.get(s);return t.findReferences(l,a,r.get(l))},async findDocumentColors(s){let a=i.get(s);return t.findDocumentColors(a,r.get(a))},async getColorPresentations(s,a,l){let o=i.get(s);return t.getColorPresentations(o,r.get(o),a,l)},async getFoldingRanges(s){let a=i.get(s);return t.getFoldingRanges(a,{})},async getSelectionRange(s,a){let l=i.get(s);return t.getSelectionRanges(l,[a],r.get(l))[0]},onDocumentRemoved(s){i.onDocumentRemoved(s),r.onDocumentRemoved(s)},dispose(){i.dispose(),r.dispose()}}}var X0=Y(()=>{"use strict";la();Un();Zp()});function Z0(t,e){let n=Wn(10,60,i=>t.parseHTMLDocument(i));return{getId(){return"html"},async getSelectionRange(i,r){return t.getSelectionRanges(i,[r])[0]},doComplete(i,r,s,a=e.settings){let l=a?.html,o=Yl(l?.suggest,{});o.hideAutoCompleteProposals=l?.autoClosingTags===!0,o.attributeDefaultValue=l?.completion?.attributeDefaultValue??"doublequotes";let c=n.get(i);return t.doComplete2(i,r,c,s,o)},async doHover(i,r,s){return t.doHover(i,r,n.get(i),s?.html?.hover)},async findDocumentHighlight(i,r){return t.findDocumentHighlights(i,r,n.get(i))},async findDocumentLinks(i,r){return t.findDocumentLinks(i,r)},async findDocumentSymbols(i){return t.findDocumentSymbols(i,n.get(i))},async format(i,r,s,a=e.settings){let l=Yl(a?.html?.format,{});return l.contentUnformatted?l.contentUnformatted=l.contentUnformatted+",script":l.contentUnformatted="script",Yl(s,l),t.format(i,r,l)},async getFoldingRanges(i){return t.getFoldingRanges(i)},async doAutoInsert(i,r,s,a=e.settings){let l=i.offsetAt(r),o=i.getText();if(s==="autoQuote"){if(l>0&&o.charAt(l-1)==="="){let c=a?.html,d=Yl(c?.suggest,{});return d.attributeDefaultValue=c?.completion?.attributeDefaultValue??"doublequotes",t.doQuoteComplete(i,r,n.get(i),d)}}else if(s==="autoClose"&&l>0&&o.charAt(l-1).match(/[>\/]/g))return t.doTagComplete(i,r,n.get(i));return null},async doRename(i,r,s){let a=n.get(i);return t.doRename(i,r,s,a)},async onDocumentRemoved(i){n.onDocumentRemoved(i)},async findMatchingTagPosition(i,r){let s=n.get(i);return t.findMatchingTagPosition(i,r,s)},async doLinkedEditing(i,r){let s=n.get(i);return t.findLinkedEditingRanges(i,r,s)},dispose(){n.dispose()}}}function Yl(t,e){if(t)for(let n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}var Q0=Y(()=>{"use strict";la()});function e2(t,e,n){let i=e;for(;i>0&&!s2(t.charCodeAt(i-1));)i--;let r=e-i,s=t.substr(i),a=n.ignoreCase?"gi":"g";n=new RegExp(n.source,a);let l=n.exec(s);for(;l&&l.index+l[0].length<r;)l=n.exec(s);return l&&l.index<=r?{start:l.index+i,length:l[0].length}:{start:e,length:0}}function t2(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 n2(t,e){let n=t.length-e.length;return n>0?t.indexOf(e,n)===n:n===0?t===e:!1}function Qp(t,e){let n="";for(;e>0;)(e&1)===1&&(n+=t),t+=t,e=e>>>1;return n}function i2(t){return/^\s*$/.test(t)}function r2(t,e){return s2(t.charCodeAt(e))}function s2(t){return t===cA||t===dA}var cA,dA,Xl=Y(()=>{"use strict";cA=13,dA=10});function a2(){return kt.length!==12&&console.warn("TokenType has added new entries."),wi.length!==6&&console.warn("TokenModifier has added new entries."),{types:kt,modifiers:wi}}function*o2(t,e,n){let{spans:i}=t.getEncodedSemanticClassifications(n,{start:0,length:e.getText().length},"2020");for(let r=0;r<i.length;){let s=i[r++],a=i[r++],l=i[r++],o=hA(l);if(o===void 0)continue;let c=uA(l);yield{start:e.positionAt(s),length:a,typeIdx:o,modifierSet:c}}}function hA(t){if(t>255)return(t>>8)-1}function uA(t){return t&255}var kt,wi,l2=Y(()=>{"use strict";kt=[];kt[0]="class";kt[1]="enum";kt[2]="interface";kt[3]="namespace";kt[4]="typeParameter";kt[5]="type";kt[6]="parameter";kt[7]="variable";kt[8]="enumMember";kt[9]="property";kt[10]="function";kt[11]="method";wi=[];wi[2]="async";wi[0]="declaration";wi[3]="readonly";wi[1]="static";wi[5]="local";wi[4]="defaultLibrary"});var h2={};mm(h2,{loadLibrary:()=>bA});import{join as nm,basename as pA,dirname as em}from"path";import
|
|
527
|
+
`||o==="\r"?(a=0,t+=o):a++}return t=oA(t," ",a-s.length),t+=s,t}function oA(t,e,n){for(;n>0;)n&1&&(t+=e),n>>=1,e+=e;return t}function lA(t){let e=t.match(/^(style)$|^(on\w+)$/i);return e?e[1]?"css":"javascript":null}var Xp,Zp=Y(()=>{"use strict";Un();Xp="__"});function Y0(t,e,n){let i=Wn(10,60,s=>e.get(s).getEmbeddedDocument("css")),r=Wn(10,60,s=>t.parseStylesheet(s));return{getId(){return"css"},async doValidation(s,a=n.settings){let l=i.get(s);return t.doValidation(l,r.get(l),a&&a.css)},async doComplete(s,a,l,o=n.settings){let c=i.get(s),d=r.get(c);return t.doComplete2(c,a,d,l,o?.css?.completion)||W.CompletionList.create()},async doHover(s,a,l=n.settings){let o=i.get(s);return t.doHover(o,a,r.get(o),l?.css?.hover)},async findDocumentHighlight(s,a){let l=i.get(s);return t.findDocumentHighlights(l,a,r.get(l))},async findDocumentSymbols(s){let a=i.get(s);return t.findDocumentSymbols(a,r.get(a)).filter(l=>l.name!==Xp)},async findDefinition(s,a){let l=i.get(s);return t.findDefinition(l,a,r.get(l))},async findReferences(s,a){let l=i.get(s);return t.findReferences(l,a,r.get(l))},async findDocumentColors(s){let a=i.get(s);return t.findDocumentColors(a,r.get(a))},async getColorPresentations(s,a,l){let o=i.get(s);return t.getColorPresentations(o,r.get(o),a,l)},async getFoldingRanges(s){let a=i.get(s);return t.getFoldingRanges(a,{})},async getSelectionRange(s,a){let l=i.get(s);return t.getSelectionRanges(l,[a],r.get(l))[0]},onDocumentRemoved(s){i.onDocumentRemoved(s),r.onDocumentRemoved(s)},dispose(){i.dispose(),r.dispose()}}}var X0=Y(()=>{"use strict";la();Un();Zp()});function Z0(t,e){let n=Wn(10,60,i=>t.parseHTMLDocument(i));return{getId(){return"html"},async getSelectionRange(i,r){return t.getSelectionRanges(i,[r])[0]},doComplete(i,r,s,a=e.settings){let l=a?.html,o=Yl(l?.suggest,{});o.hideAutoCompleteProposals=l?.autoClosingTags===!0,o.attributeDefaultValue=l?.completion?.attributeDefaultValue??"doublequotes";let c=n.get(i);return t.doComplete2(i,r,c,s,o)},async doHover(i,r,s){return t.doHover(i,r,n.get(i),s?.html?.hover)},async findDocumentHighlight(i,r){return t.findDocumentHighlights(i,r,n.get(i))},async findDocumentLinks(i,r){return t.findDocumentLinks(i,r)},async findDocumentSymbols(i){return t.findDocumentSymbols(i,n.get(i))},async format(i,r,s,a=e.settings){let l=Yl(a?.html?.format,{});return l.contentUnformatted?l.contentUnformatted=l.contentUnformatted+",script":l.contentUnformatted="script",Yl(s,l),t.format(i,r,l)},async getFoldingRanges(i){return t.getFoldingRanges(i)},async doAutoInsert(i,r,s,a=e.settings){let l=i.offsetAt(r),o=i.getText();if(s==="autoQuote"){if(l>0&&o.charAt(l-1)==="="){let c=a?.html,d=Yl(c?.suggest,{});return d.attributeDefaultValue=c?.completion?.attributeDefaultValue??"doublequotes",t.doQuoteComplete(i,r,n.get(i),d)}}else if(s==="autoClose"&&l>0&&o.charAt(l-1).match(/[>\/]/g))return t.doTagComplete(i,r,n.get(i));return null},async doRename(i,r,s){let a=n.get(i);return t.doRename(i,r,s,a)},async onDocumentRemoved(i){n.onDocumentRemoved(i)},async findMatchingTagPosition(i,r){let s=n.get(i);return t.findMatchingTagPosition(i,r,s)},async doLinkedEditing(i,r){let s=n.get(i);return t.findLinkedEditingRanges(i,r,s)},dispose(){n.dispose()}}}function Yl(t,e){if(t)for(let n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}var Q0=Y(()=>{"use strict";la()});function e2(t,e,n){let i=e;for(;i>0&&!s2(t.charCodeAt(i-1));)i--;let r=e-i,s=t.substr(i),a=n.ignoreCase?"gi":"g";n=new RegExp(n.source,a);let l=n.exec(s);for(;l&&l.index+l[0].length<r;)l=n.exec(s);return l&&l.index<=r?{start:l.index+i,length:l[0].length}:{start:e,length:0}}function t2(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 n2(t,e){let n=t.length-e.length;return n>0?t.indexOf(e,n)===n:n===0?t===e:!1}function Qp(t,e){let n="";for(;e>0;)(e&1)===1&&(n+=t),t+=t,e=e>>>1;return n}function i2(t){return/^\s*$/.test(t)}function r2(t,e){return s2(t.charCodeAt(e))}function s2(t){return t===cA||t===dA}var cA,dA,Xl=Y(()=>{"use strict";cA=13,dA=10});function a2(){return kt.length!==12&&console.warn("TokenType has added new entries."),wi.length!==6&&console.warn("TokenModifier has added new entries."),{types:kt,modifiers:wi}}function*o2(t,e,n){let{spans:i}=t.getEncodedSemanticClassifications(n,{start:0,length:e.getText().length},"2020");for(let r=0;r<i.length;){let s=i[r++],a=i[r++],l=i[r++],o=hA(l);if(o===void 0)continue;let c=uA(l);yield{start:e.positionAt(s),length:a,typeIdx:o,modifierSet:c}}}function hA(t){if(t>255)return(t>>8)-1}function uA(t){return t&255}var kt,wi,l2=Y(()=>{"use strict";kt=[];kt[0]="class";kt[1]="enum";kt[2]="interface";kt[3]="namespace";kt[4]="typeParameter";kt[5]="type";kt[6]="parameter";kt[7]="variable";kt[8]="enumMember";kt[9]="property";kt[10]="function";kt[11]="method";wi=[];wi[2]="async";wi[0]="declaration";wi[3]="readonly";wi[1]="static";wi[5]="local";wi[4]="defaultLibrary"});var h2={};mm(h2,{loadLibrary:()=>bA});import{join as nm,basename as pA,dirname as em}from"path";import{readFileSync as mA}from"fs";function bA(t){let e=c2[t];if(typeof e!="string"){let n;t==="jquery"?n=gA:n=nm(fA,t);try{e=mA(n).toString()}catch{console.log(`Unable to load library ${t} at ${n}`),e=""}c2[t]=e}return e}var c2,tm,d2,fA,gA,u2=Y(()=>{"use strict";c2={},tm=import.meta.dirname,d2=pA(tm)==="dist"?em(tm):em(em(tm)),fA=___dirname(___fileURLToPath(import.meta.resolve("typescript/lib/lib.d.ts"))),gA=nm(d2,"lib/jquery.d.ts")});import*as Ee from"typescript";function _A(t){let e={allowNonTsExtensions:!0,allowJs:!0,lib:["lib.esnext.full.d.ts"],target:Ee.ScriptTarget.Latest,module:Ee.ModuleKind.ESNext,moduleResolution:Ee.ModuleResolutionKind.Classic,experimentalDecorators:!1},n=ot.create("init","javascript",1,""),i=Promise.resolve().then(()=>(u2(),h2)).then(r=>({service:Ee.createLanguageService({getCompilationSettings:()=>e,getScriptFileNames:()=>[n.uri,"jquery"],getScriptKind:a=>a===n.uri?t:a.substr(a.length-2)==="ts"?Ee.ScriptKind.TS:Ee.ScriptKind.JS,getScriptVersion:a=>a===n.uri?String(n.version):"1",getScriptSnapshot:a=>{let l="";return a===n.uri?l=n.getText():l=r.loadLibrary(a),{getText:(o,c)=>l.substring(o,c),getLength:()=>l.length,getChangeRange:()=>{}}},getCurrentDirectory:()=>"",getDefaultLibFileName:a=>"es2020.full",readFile:(a,l)=>a===n.uri?n.getText():r.loadLibrary(a),fileExists:a=>a===n.uri?!0:!!r.loadLibrary(a),directoryExists:a=>!a.startsWith("node_modules")}),loadLibrary:r.loadLibrary}));return{async getLanguageService(r){return n=r,(await i).service},getCompilationSettings(){return e},async loadLibrary(r){return(await i).loadLibrary(r)},dispose(){i.then(r=>r.service.dispose())}}}function im(t,e,n){let i=Wn(10,60,o=>t.get(o).getEmbeddedDocument(e)),r=_A(e==="javascript"?Ee.ScriptKind.JS:Ee.ScriptKind.TS),s={},a=new URL(".", import.meta.resolve("typescript/lib/lib.d.ts")).href;function l(o){let c=r.getCompilationSettings();c.experimentalDecorators=o?.["js/ts"]?.implicitProjectConfig?.experimentalDecorators,c.strictNullChecks=o?.["js/ts"]?.implicitProjectConfig.strictNullChecks}return{getId(){return e},async doValidation(o,c=n.settings){l(c);let d=[];for(let h of t.get(o).getEmbeddedDocuments(e)){let u=await r.getLanguageService(h),m=u.getSyntacticDiagnostics(h.uri),E=u.getSemanticDiagnostics(h.uri);d.push(...m.concat(E).filter(S=>!vA.includes(S.code)).map(S=>({range:jt(h,S),severity:W.DiagnosticSeverity.Error,source:e,message:Ee.flattenDiagnosticMessageText(S.messageText,`
|
|
526
528
|
`)})))}return d},async doComplete(o,c,d){let h=i.get(o),u=await r.getLanguageService(h),m=h.offsetAt(c),E=u.getCompletionsAtPosition(h.uri,m,{includeExternalModuleExports:!1,includeInsertTextCompletions:!1});if(!E)return{isIncomplete:!1,items:[]};let S=jt(h,e2(h.getText(),m,wA));return{isIncomplete:!1,items:E.entries.map(I=>{let T={languageId:e,uri:o.uri,offset:m};return{uri:o.uri,position:c,label:I.name,sortText:I.sortText,kind:FA(I.kind),textEdit:W.TextEdit.replace(S,I.name),data:T}})}},async doResolve(o,c){if(Zl(c.data)){let d=i.get(o),u=(await r.getLanguageService(d)).getCompletionEntryDetails(d.uri,c.data.offset,c.label,void 0,void 0,void 0,void 0);u&&(c.detail=Ee.displayPartsToString(u.displayParts),c.documentation=Ee.displayPartsToString(u.documentation),delete c.data)}return c},async doHover(o,c){let d=i.get(o),u=(await r.getLanguageService(d)).getQuickInfoAtPosition(d.uri,d.offsetAt(c));if(u){let m=Ee.displayPartsToString(u.displayParts),E=Ee.displayPartsToString(u.documentation),S=yA(u.tags),I=[];return m&&I.push(["```typescript",m,"```"].join(`
|
|
527
529
|
`)),E&&I.push(E),S&&I.push(S),{range:jt(d,u.textSpan),contents:{kind:p2.MarkupKind.Markdown,value:I.join(`
|
|
528
530
|
|