@tailwindcss/language-server 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -54,4 +54,4 @@ s.exports=runParallel;const f=u(43135);function runParallel(s,l){let u,h,g;let v
54
54
  *
55
55
  * Copyright (c) 2015-present, Jon Schlinkert.
56
56
  * Released under the MIT License.
57
- */const f=u(86110);const toRegexRange=(s,l,u)=>{if(f(s)===false){throw new TypeError("toRegexRange: expected the first argument to be a number")}if(l===void 0||s===l){return String(s)}if(f(l)===false){throw new TypeError("toRegexRange: expected the second argument to be a number.")}let h={relaxZeros:true,...u};if(typeof h.strictZeros==="boolean"){h.relaxZeros=h.strictZeros===false}let g=String(h.relaxZeros);let v=String(h.shorthand);let k=String(h.capture);let O=String(h.wrap);let M=s+":"+l+"="+g+v+k+O;if(toRegexRange.cache.hasOwnProperty(M)){return toRegexRange.cache[M].result}let q=Math.min(s,l);let B=Math.max(s,l);if(Math.abs(q-B)===1){let u=s+"|"+l;if(h.capture){return`(${u})`}if(h.wrap===false){return u}return`(?:${u})`}let Y=hasPadding(s)||hasPadding(l);let te={min:s,max:l,a:q,b:B};let re=[];let ne=[];if(Y){te.isPadded=Y;te.maxLen=String(te.max).length}if(q<0){let s=B<0?Math.abs(B):1;ne=splitToPatterns(s,Math.abs(q),te,h);q=te.a=0}if(B>=0){re=splitToPatterns(q,B,te,h)}te.negatives=ne;te.positives=re;te.result=collatePatterns(ne,re,h);if(h.capture===true){te.result=`(${te.result})`}else if(h.wrap!==false&&re.length+ne.length>1){te.result=`(?:${te.result})`}toRegexRange.cache[M]=te;return te.result};function collatePatterns(s,l,u){let f=filterPatterns(s,l,"-",false,u)||[];let h=filterPatterns(l,s,"",false,u)||[];let g=filterPatterns(s,l,"-?",true,u)||[];let v=f.concat(g).concat(h);return v.join("|")}function splitToRanges(s,l){let u=1;let f=1;let h=countNines(s,u);let g=new Set([l]);while(s<=h&&h<=l){g.add(h);u+=1;h=countNines(s,u)}h=countZeros(l+1,f)-1;while(s<h&&h<=l){g.add(h);f+=1;h=countZeros(l+1,f)-1}g=[...g];g.sort(compare);return g}function rangeToPattern(s,l,u){if(s===l){return{pattern:s,count:[],digits:0}}let f=zip(s,l);let h=f.length;let g="";let v=0;for(let s=0;s<h;s++){let[l,h]=f[s];if(l===h){g+=l}else if(l!=="0"||h!=="9"){g+=toCharacterClass(l,h,u)}else{v++}}if(v){g+=u.shorthand===true?"\\d":"[0-9]"}return{pattern:g,count:[v],digits:h}}function splitToPatterns(s,l,u,f){let h=splitToRanges(s,l);let g=[];let v=s;let k;for(let s=0;s<h.length;s++){let l=h[s];let O=rangeToPattern(String(v),String(l),f);let M="";if(!u.isPadded&&k&&k.pattern===O.pattern){if(k.count.length>1){k.count.pop()}k.count.push(O.count[0]);k.string=k.pattern+toQuantifier(k.count);v=l+1;continue}if(u.isPadded){M=padZeros(l,u,f)}O.string=M+O.pattern+toQuantifier(O.count);g.push(O);v=l+1;k=O}return g}function filterPatterns(s,l,u,f,h){let g=[];for(let h of s){let{string:s}=h;if(!f&&!contains(l,"string",s)){g.push(u+s)}if(f&&contains(l,"string",s)){g.push(u+s)}}return g}function zip(s,l){let u=[];for(let f=0;f<s.length;f++)u.push([s[f],l[f]]);return u}function compare(s,l){return s>l?1:l>s?-1:0}function contains(s,l,u){return s.some((s=>s[l]===u))}function countNines(s,l){return Number(String(s).slice(0,-l)+"9".repeat(l))}function countZeros(s,l){return s-s%Math.pow(10,l)}function toQuantifier(s){let[l=0,u=""]=s;if(u||l>1){return`{${l+(u?","+u:"")}}`}return""}function toCharacterClass(s,l,u){return`[${s}${l-s===1?"":"-"}${l}]`}function hasPadding(s){return/^-?(0+)\d/.test(s)}function padZeros(s,l,u){if(!l.isPadded){return s}let f=Math.abs(l.maxLen-String(s).length);let h=u.relaxZeros!==false;switch(f){case 0:return"";case 1:return h?"0?":"0";case 2:return h?"0{0,2}":"00";default:{return h?`0{0,${f}}`:`0{${f}}`}}}toRegexRange.cache={};toRegexRange.clearCache=()=>toRegexRange.cache={};s.exports=toRegexRange},86258:s=>{"use strict";function unique_pred(s,l){var u=1,f=s.length,h=s[0],g=s[0];for(var v=1;v<f;++v){g=h;h=s[v];if(l(h,g)){if(v===u){u++;continue}s[u++]=h}}s.length=u;return s}function unique_eq(s){var l=1,u=s.length,f=s[0],h=s[0];for(var g=1;g<u;++g,h=f){h=f;f=s[g];if(f!==h){if(g===l){l++;continue}s[l++]=f}}s.length=l;return s}function unique(s,l,u){if(s.length===0){return s}if(l){if(!u){s.sort(l)}return unique_pred(s,l)}if(!u){s.sort()}return unique_eq(s)}s.exports=unique},49209:(s,l,u)=>{s.exports=u(31669).deprecate},70542:(s,l,u)=>{s.exports=function(s,l){"use strict";var u={};function __nested_webpack_require_51__(l){if(u[l]){return u[l].exports}var f=u[l]={i:l,l:false,exports:{}};s[l].call(f.exports,f,f.exports,__nested_webpack_require_51__);f.l=true;return f.exports}__nested_webpack_require_51__.ab=__dirname+"/";function startup(){return __nested_webpack_require_51__(104)}l(__nested_webpack_require_51__);return startup()}({34:function(s,l){(function(s,u){true?u(l):0})(this,(function(s){"use strict";var l={indent:"\t",tagCase:"",attributeCase:"",attributeQuotes:"double",format:true,formatSkip:["html"],formatForce:["body"],inlineBreak:3,compactBooleanAttributes:false,booleanAttributes:["contenteditable","seamless","async","autofocus","autoplay","checked","controls","defer","disabled","formnovalidate","hidden","ismap","loop","multiple","muted","novalidate","readonly","required","reversed","selected","typemustmatch"],selfClosingStyle:"html",inlineElements:["a","abbr","acronym","applet","b","basefont","bdo","big","br","button","cite","code","del","dfn","em","font","i","iframe","img","input","ins","kbd","label","map","object","q","s","samp","select","small","span","strike","strong","sub","sup","textarea","tt","u","var"]};class Profile{constructor(s){this.options=Object.assign({},l,s);this.quoteChar=this.options.attributeQuotes==="single"?"'":'"'}get(s){return this.options[s]}quote(s){return`${this.quoteChar}${s!=null?s:""}${this.quoteChar}`}name(s){return strcase(s,this.options.tagCase)}attribute(s){return strcase(s,this.options.attributeCase)}isBooleanAttribute(s){return s.options.boolean||this.get("booleanAttributes").indexOf((s.name||"").toLowerCase())!==-1}selfClose(){switch(this.options.selfClosingStyle){case"xhtml":return" /";case"xml":return"/";default:return""}}indent(s){s=s||0;let l="";while(s--){l+=this.options.indent}return l}isInline(s){if(typeof s==="string"){return this.get("inlineElements").indexOf(s.toLowerCase())!==-1}return s.name!=null?this.isInline(s.name):s.isTextOnly}field(s,l){return this.options.field(s,l)}}function strcase(s,l){if(l){s=l==="upper"?s.toUpperCase():s.toLowerCase()}return s}class Snippet{constructor(s,l){this.key=s;this.value=l}}class SnippetsStorage{constructor(s){this._string=new Map;this._regexp=new Map;this._disabled=false;this.load(s)}get disabled(){return this._disabled}disable(){this._disabled=true}enable(){this._disabled=false}set(s,l){if(typeof s==="string"){s.split("|").forEach((s=>this._string.set(s,new Snippet(s,l))))}else if(s instanceof RegExp){this._regexp.set(s,new Snippet(s,l))}else{throw new Error("Unknow snippet key: "+s)}return this}get(s){if(this.disabled){return undefined}if(this._string.has(s)){return this._string.get(s)}const l=Array.from(this._regexp.keys());for(let u=0,f=l.length;u<f;u++){if(l[u].test(s)){return this._regexp.get(l[u])}}}load(s){this.reset();if(s instanceof Map){s.forEach(((s,l)=>this.set(l,s)))}else if(s&&typeof s==="object"){Object.keys(s).forEach((l=>this.set(l,s[l])))}}reset(){this._string.clear();this._regexp.clear()}values(){if(this.disabled){return[]}const s=Array.from(this._string.values());const l=Array.from(this._regexp.values());return s.concat(l)}}class SnippetsRegistry{constructor(s){this._registry=[];if(Array.isArray(s)){s.forEach(((s,l)=>this.add(l,s)))}else if(typeof s==="object"){this.add(s)}}get(s){for(let l=0;l<this._registry.length;l++){const u=this._registry[l];if(u.level===s){return u.store}}}add(s,l){if(s!=null&&typeof s==="object"){l=s;s=0}const u=new SnippetsStorage(l);this.remove(s);this._registry.push({level:s,store:u});this._registry.sort(((s,l)=>l.level-s.level));return u}remove(s){this._registry=this._registry.filter((l=>l.level!==s&&l.store!==s))}resolve(s){for(let l=0;l<this._registry.length;l++){const u=this._registry[l].store.get(s);if(u){return u}}}all(s){s=s||{};const l=new Map;const n=u=>{const f=u.key instanceof RegExp?"regexp":"string";if((!s.type||s.type===f)&&!l.has(u.key)){l.set(u.key,u)}};this._registry.forEach((s=>{s.store.values().forEach(n)}));return Array.from(l.values())}clear(){this._registry.length=0}}const u=39;const f=34;const h={escape:92,throws:false};var o=function(s,l){l=l?Object.assign({},h,l):h;const u=s.pos;const f=s.peek();if(s.eat(isQuote)){while(!s.eof()){switch(s.next()){case f:s.start=u;return true;case l.escape:s.next();break}}s.pos=u;if(l.throws){throw s.error("Unable to consume quoted string")}}return false};function isQuote(s){return s===u||s===f}function isNumber(s){return s>47&&s<58}function isAlpha(s,l,u){l=l||65;u=u||90;s&=~32;return s>=l&&s<=u}function isAlphaNumeric(s){return isNumber(s)||isAlpha(s)}function isWhiteSpace(s){return s===32||s===9||s===160}function isSpace(s){return isWhiteSpace(s)||s===10||s===13}class Attribute{constructor(s,l,u){this.name=s;this.value=l!=null?l:null;this.options=u||{}}clone(){return new Attribute(this.name,this.value,Object.assign({},this.options))}valueOf(){return`${this.name}="${this.value}"`}}class Node{constructor(s,l){this.name=s||null;this.value=null;this.repeat=null;this.selfClosing=false;this.children=[];this.parent=null;this.next=null;this.previous=null;this._attributes=[];if(Array.isArray(l)){l.forEach((s=>this.setAttribute(s)))}}get attributes(){return this._attributes}get attributesMap(){return this.attributes.reduce(((s,l)=>{s[l.name]=l.options.boolean?l.name:l.value;return s}),{})}get isGroup(){return!this.name&&!this.value&&!this._attributes.length}get isTextOnly(){return!this.name&&!!this.value&&!this._attributes.length}get firstChild(){return this.children[0]}get lastChild(){return this.children[this.children.length-1]}get childIndex(){return this.parent?this.parent.children.indexOf(this):-1}get nextSibling(){return this.next}get previousSibling(){return this.previous}get classList(){const s=this.getAttribute("class");return s&&s.value?s.value.split(/\s+/g).filter(uniqueClass):[]}create(s,l){return new Node(s,l)}setAttribute(s,l){const u=createAttribute(s,l);const f=this.getAttribute(s);if(f){this.replaceAttribute(f,u)}else{this._attributes.push(u)}}hasAttribute(s){return!!this.getAttribute(s)}getAttribute(s){if(typeof s==="object"){s=s.name}for(var l=0;l<this._attributes.length;l++){const u=this._attributes[l];if(u.name===s){return u}}}replaceAttribute(s,l,u){if(typeof s==="string"){s=this.getAttribute(s)}const f=this._attributes.indexOf(s);if(f!==-1){this._attributes.splice(f,1,createAttribute(l,u))}}removeAttribute(s){if(typeof s==="string"){s=this.getAttribute(s)}const l=this._attributes.indexOf(s);if(l!==-1){this._attributes.splice(l,1)}}clearAttributes(){this._attributes.length=0}addClass(s){s=normalize(s);if(!this.hasAttribute("class")){this.setAttribute("class",s)}else if(s&&!this.hasClass(s)){this.setAttribute("class",this.classList.concat(s).join(" "))}}hasClass(s){return this.classList.indexOf(normalize(s))!==-1}removeClass(s){s=normalize(s);if(this.hasClass(s)){this.setAttribute("class",this.classList.filter((l=>l!==s)).join(" "))}}appendChild(s){this.insertAt(s,this.children.length)}insertBefore(s,l){this.insertAt(s,this.children.indexOf(l))}insertAt(s,l){if(l<0||l>this.children.length){throw new Error("Unable to insert node: position is out of child list range")}const u=this.children[l-1];const f=this.children[l];s.remove();s.parent=this;this.children.splice(l,0,s);if(u){s.previous=u;u.next=s}if(f){s.next=f;f.previous=s}}removeChild(s){const l=this.children.indexOf(s);if(l!==-1){this.children.splice(l,1);if(s.previous){s.previous.next=s.next}if(s.next){s.next.previous=s.previous}s.parent=s.next=s.previous=null}}remove(){if(this.parent){this.parent.removeChild(this)}}clone(s){const l=new Node(this.name);l.value=this.value;l.selfClosing=this.selfClosing;if(this.repeat){l.repeat=Object.assign({},this.repeat)}this._attributes.forEach((s=>l.setAttribute(s.clone())));if(s){this.children.forEach((s=>l.appendChild(s.clone(true))))}return l}walk(s,l){l=l||0;let u=this.firstChild;while(u){const f=u.next;if(s(u,l)===false||u.walk(s,l+1)===false){return false}u=f}}use(s){const l=[this];for(var u=1;u<arguments.length;u++){l.push(arguments[u])}s.apply(null,l);return this}toString(){const s=this.attributes.map((s=>{s=this.getAttribute(s.name);const l=s.options;let u=`${l&&l.implied?"!":""}${s.name||""}`;if(l&&l.boolean){u+="."}else if(s.value!=null){u+=`="${s.value}"`}return u}));let l=`${this.name||""}`;if(s.length){l+=`[${s.join(" ")}]`}if(this.value!=null){l+=`{${this.value}}`}if(this.selfClosing){l+="/"}if(this.repeat){l+=`*${this.repeat.count?this.repeat.count:""}`;if(this.repeat.value!=null){l+=`@${this.repeat.value}`}}return l}}function createAttribute(s,l){if(s instanceof Attribute){return s}if(typeof s==="string"){return new Attribute(s,l)}if(s&&typeof s==="object"){return new Attribute(s.name,s.value,s.options)}}function normalize(s){return String(s).trim()}function uniqueClass(s,l,u){return s&&u.indexOf(s)===l}class StreamReader{constructor(s,l,u){if(u==null&&typeof s==="string"){u=s.length}this.string=s;this.pos=this.start=l||0;this.end=u}eof(){return this.pos>=this.end}limit(s,l){return new this.constructor(this.string,s,l)}peek(){return this.string.charCodeAt(this.pos)}next(){if(this.pos<this.string.length){return this.string.charCodeAt(this.pos++)}}eat(s){const l=this.peek();const u=typeof s==="function"?s(l):l===s;if(u){this.next()}return u}eatWhile(s){const l=this.pos;while(!this.eof()&&this.eat(s)){}return this.pos!==l}backUp(s){this.pos-=s||1}current(){return this.substring(this.start,this.pos)}substring(s,l){return this.string.slice(s,l)}error(s){const l=new Error(`${s} at char ${this.pos+1}`);l.originalMessage=s;l.pos=this.pos;l.string=this.string;return l}}const g=42;function consumeRepeat(s){if(s.eat(g)){s.start=s.pos;return{count:s.eatWhile(isNumber)?+s.current():null}}}const v={throws:true};function consumeQuoted(s){if(o(s,v)){return s.current().slice(1,-1)}}const k=123;const O=125;const M=92;function consumeText(s){const l=s.pos;if(s.eat(k)){let u=1,f;let h="";let g=s.pos;while(!s.eof()){f=s.next();if(f===k){u++}else if(f===O){u--;if(!u){s.start=l;return h+s.substring(g,s.pos-1)}}else if(f===M){f=s.next();if(f===k||f===O){h+=s.substring(g,s.pos-2)+String.fromCharCode(f);g=s.pos}}}s.pos=l;throw s.error(`Unable to find closing ${String.fromCharCode(O)} for text start`)}return null}const q=33;const B=46;const Y=61;const te=91;const re=93;const ne=/^\!?[\w\-:\$@]+\.?$|^\!?\[[\w\-:\$@]+\]\.?$/;function consumeAttributes(s){if(!s.eat(te)){return null}const l=[];let u,f;while(!s.eof()){s.eatWhile(isWhiteSpace);if(s.eat(re)){return l}else if((u=consumeQuoted(s))!=null){l.push({name:null,value:u})}else if(eatUnquoted(s)){u=s.current();if(u[0]==="["&&s.peek()===re){s.next();u=s.current()}if(!ne.test(u)){l.push({name:null,value:u})}else{f=parseAttributeName(u);l.push(f);if(s.eat(Y)){if((u=consumeQuoted(s))!=null){f.value=u}else if((u=consumeText(s))!=null){f.value=u;f.options={before:"{",after:"}"}}else if(eatUnquoted(s)){f.value=s.current()}}}}else{throw s.error("Expected attribute name")}}throw s.error('Expected closing "]" brace')}function parseAttributeName(s){const l={};if(s.charCodeAt(0)===q){s=s.slice(1);l.implied=true}if(s.charCodeAt(s.length-1)===B){s=s.slice(0,s.length-1);l.boolean=true}const u={name:s};if(Object.keys(l).length){u.options=l}return u}function eatUnquoted(s){const l=s.pos;if(s.eatWhile(isUnquoted)){s.start=l;return true}}function isUnquoted(s){return!isSpace(s)&&!isQuote(s)&&s!==re&&s!==Y}const ie=35;const se=46;const oe=47;function consumeElement(s){const l=s.pos;const u=new Node(eatName(s));let f;while(!s.eof()){if(s.eat(se)){u.addClass(eatName(s))}else if(s.eat(ie)){u.setAttribute("id",eatName(s))}else if(s.eat(oe)){if(u.isGroup){s.backUp(1);throw s.error("Unexpected self-closing indicator")}u.selfClosing=true;if(f=consumeRepeat(s)){u.repeat=f}break}else if(f=consumeAttributes(s)){for(let s=0,l=f.length;s<l;s++){u.setAttribute(f[s])}}else if((f=consumeText(s))!==null){u.value=f}else if(f=consumeRepeat(s)){u.repeat=f}else{break}}if(l===s.pos){throw s.error(`Unable to consume abbreviation node, unexpected ${s.peek()}`)}return u}function eatName(s){s.start=s.pos;s.eatWhile(isName);return s.current()}function isName(s){return isAlphaNumeric(s)||s===45||s===58||s===36||s===64||s===33||s===95||s===37}const ae=40;const le=41;const ue=43;const ce=62;const fe=94;function parse(s){const l=new StreamReader(s.trim());const u=new Node;let f=u,h=[],g;while(!l.eof()){g=l.peek();if(g===ae){const s=new Node;h.push([s,f,l.pos]);f=s;l.next();continue}else if(g===le){const s=h.pop();if(!s){throw l.error('Unexpected ")" group end')}const u=s[0];f=s[1];l.next();if(u.repeat=consumeRepeat(l)){f.appendChild(u)}else{while(u.firstChild){f.appendChild(u.firstChild)}}l.eat(ue);continue}const s=consumeElement(l);f.appendChild(s);if(l.eof()){break}switch(l.peek()){case ue:l.next();continue;case ce:l.next();f=s;continue;case fe:while(l.eat(fe)){f=f.parent||f}continue}}if(h.length){l.pos=h.pop()[2];throw l.error("Expected group close")}return u}function index(s){const l=parse(s);l.walk(unroll);return l}function unroll(s){if(!s.repeat||!s.repeat.count){return}const l=s.parent;let u=l.children.indexOf(s);for(let f=0;f<s.repeat.count;f++){const h=s.clone(true);h.repeat.value=f+1;h.walk(unroll);if(h.isGroup){while(h.children.length>0){h.firstChild.repeat=h.repeat;l.insertAt(h.firstChild,u++)}}else{l.insertAt(h,u++)}}s.parent.removeChild(s)}var A=function(s,l){s.walk((s=>resolveNode(s,l)));return s};function resolveNode(s,l){const u=new Set;const r=s=>{const f=l.resolve(s.name);if(!f||u.has(f)){return}if(typeof f.value==="function"){return f.value(s,l,r)}const h=index(f.value);u.add(f);h.walk(r);u.delete(f);const g=findDeepestNode(h);merge(g,s);while(h.firstChild){s.parent.insertBefore(h.firstChild,s)}g.parent.insertBefore(s,g);g.remove()};r(s)}function merge(s,l){l.name=s.name;if(s.selfClosing){l.selfClosing=true}if(s.value!=null){l.value=s.value}if(s.repeat){l.repeat=Object.assign({},s.repeat)}return mergeAttributes(s,l)}function mergeAttributes(s,l){mergeClassNames(s,l);const u=new Map;let f=s.attributes;for(let s=0;s<f.length;s++){u.set(f[s].name,f[s].clone())}f=l.attributes.slice();for(let s=0,h,g;s<f.length;s++){h=f[s];if(u.has(h.name)){g=u.get(h.name);g.value=h.value;if(g.options.implied){g.options.implied=false}}else{u.set(h.name,h)}l.removeAttribute(h)}const h=Array.from(u.values());for(let s=0;s<h.length;s++){l.setAttribute(h[s])}return l}function mergeClassNames(s,l){const u=s.classList;for(let s=0;s<u.length;s++){l.addClass(u[s])}return l}function findDeepestNode(s){while(s.children.length){s=s.children[s.children.length-1]}return s}const pe=new Set("a,abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,select,small,span,strike,strong,sub,sup,textarea,tt,u,var".split(","));const de={p:"span",ul:"li",ol:"li",table:"tr",tr:"td",tbody:"tr",thead:"tr",tfoot:"tr",colgroup:"col",select:"option",optgroup:"option",audio:"source",video:"source",object:"param",map:"area"};function resolveImplicitName(s){s=(s||"").toLowerCase();return de[s]||(pe.has(s)?"span":"div")}var E=function(s){s.walk((s=>{if(s.name==null&&s.attributes.length){s.name=resolveImplicitName(s.parent.name)}}));return s};function findUnescapedTokens(s,l){const u=new Set;const f=l.length;let h=0;while((h=s.indexOf(l,h))!==-1){u.add(h);h+=f}if(u.size){let l=0;const f=s.length;while(l<f){if(s[l++]==="\\"){u.delete(l++)}}}return Array.from(u).map((s=>range(s,f)))}function replaceRanges(s,l,u){for(let f=l.length-1;f>=0;f--){const h=l[f];let g=0;let v=0;if(s.substr(h[0]+h[1],1)==="@"){const l=s.substr(h[0]+h[1]+1).match(/^(\d+)/);if(l){v=l[1].length+1;g=parseInt(l[1])-1}}s=s.substring(0,h[0])+(typeof u==="function"?u(s.substr(h[0],h[1]),g):u)+s.substring(h[0]+h[1]+v)}return s}function range(s,l){return[s,l]}const he="$";var z=function(s){s.walk(applyNumbering$1);return s};function applyNumbering$1(s){const l=findRepeater(s);if(l&&l.value!=null){const u=l.value;s.name=replaceNumbering(s.name,u);s.value=replaceNumbering(s.value,u);s.attributes.forEach((l=>{const f=s.getAttribute(l.name).clone();f.name=replaceNumbering(l.name,u);f.value=replaceNumbering(l.value,u);s.replaceAttribute(l.name,f)}))}return s}function findRepeater(s){while(s){if(s.repeat){return s.repeat}s=s.parent}}function replaceNumbering(s,l){if(typeof s==="string"){const u=getNumberingRanges(s);return replaceNumberingRanges(s,u,l)}return s}function getNumberingRanges(s){return findUnescapedTokens(s||"",he).reduce(((l,u)=>{if(!/[#{]/.test(s[u[0]+1]||"")){const s=l[l.length-1];if(s&&s[0]+s[1]===u[0]){s[1]+=u[1]}else{l.push(u)}}return l}),[])}function replaceNumberingRanges(s,l,u){const f=replaceRanges(s,l,((s,l)=>{let f=String(u+l);while(f.length<s.length){f="0"+f}return f}));return unescapeString(f)}function unescapeString(s){let l=0,u="";const f=s.length;while(l<f){const f=s[l++];u+=f==="\\"?s[l++]||"":f}return u}const ge="$#";const ve="|";const ye=/^((?:https?|ftp|file):\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?$/;const we=/^([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6})$/;const _e=/^([a-z]+:)?\/\//i;function prepare(s,l){l=l||1;s.walk((s=>{if(s.repeat&&s.repeat.count===null){for(let u=0;u<l;u++){const f=s.clone(true);f.repeat.implicit=true;f.repeat.count=l;f.repeat.value=u+1;f.repeat.index=u;s.parent.insertBefore(f,s)}s.remove()}}));return s}function insert(s,l){if(Array.isArray(l)&&l.length){let u=false;s.walk((s=>{if(s.repeat&&s.repeat.implicit){u=true;insertContent(s,l[s.repeat.index])}}));if(!u){setNodeContent(findDeepestNode$1(s),l.join("\n"))}}return s}function insertContent(s,l){let u=insertContentIntoPlaceholder(s,l);s.walk((s=>u|=insertContentIntoPlaceholder(s,l)));if(!u){setNodeContent(findDeepestNode$1(s),l)}return s}function insertContentIntoPlaceholder(s,l){const u={replaced:false};s.value=replacePlaceholder(s.value,l,u);s.attributes.forEach((f=>{if(f.value){s.setAttribute(f.name,replacePlaceholder(f.value,l,u))}}));return u.replaced}function replacePlaceholder(s,l,u){if(typeof s==="string"){const f=findUnescapedTokens(s,ge);if(f.length){if(u){u.replaced=true}s=replaceRanges(s,f,l)}}return s}function findDeepestNode$1(s){while(s.children.length){s=s.children[s.children.length-1]}return s}function setNodeContent(s,l){if(s.value){const u=findUnescapedTokens(s.value,ve);if(u.length){s.value=replaceRanges(s.value,u,l);return}}if(s.name.toLowerCase()==="a"||s.hasAttribute("href")){if(ye.test(l)){s.setAttribute("href",(_e.test(l)?"":"http://")+l)}else if(we.test(l)){s.setAttribute("href","mailto:"+l)}}s.value=l}const Se={element:"__",modifier:"_"};const ke=/^(-+)([a-z0-9]+[a-z0-9-]*)/i;const Ce=/^(_+)([a-z0-9]+[a-z0-9-]*)/i;const U=s=>/^[a-z]\-/i.test(s);const V=s=>/^[a-z]/i.test(s);var R=function(s,l){l=Object.assign({},Se,l);s.walk((s=>expandClassNames(s,l)));const u=createBlockLookup(s);s.walk((s=>expandShortNotation(s,u,l)));return s};function expandClassNames(s,l){const u=s.classList.reduce(((s,l)=>{const u=l.indexOf("_");if(u>0&&!l.startsWith("-")){s.add(l.slice(0,u));s.add(l.slice(u));return s}return s.add(l)}),new Set);if(u.size){s.setAttribute("class",Array.from(u).join(" "))}}function expandShortNotation(s,l,u){const f=s.classList.reduce(((f,h)=>{let g,v;const k=h;if(v=h.match(ke)){g=getBlockName(s,l,v[1])+u.element+v[2];f.add(g);h=h.slice(v[0].length)}while(v=h.match(Ce)){if(!g){g=getBlockName(s,l,v[1]);f.add(g)}f.add(`${g}${u.modifier}${v[2]}`);h=h.slice(v[0].length)}if(h===k){f.add(k)}return f}),new Set);const h=Array.from(f).filter(Boolean);if(h.length){s.setAttribute("class",h.join(" "))}}function createBlockLookup(s){const l=new Map;s.walk((s=>{const u=s.classList;if(u.length){l.set(s,find(u,U)||find(u,V)||l.get(s.parent))}}));return l}function getBlockName(s,l,u){let f=u.length>1?u.length:0;while(s.parent&&s.parent.parent&&f--){s=s.parent}return l.get(s)||""}function find(s,l){return s.filter(l)[0]}var P=function(s){s.walk((s=>{replace(s,"class","className");replace(s,"for","htmlFor")}));return s};function replace(s,l,u){let f=s.getAttribute(l);if(f){f.name=u}}const Ee=/^xsl:(variable|with\-param)$/i;var D=function(s){s.walk((s=>{if(Ee.test(s.name||"")&&(s.children.length||s.value)){s.removeAttribute("select")}}));return s};const Re={bem:R,jsx:P,xsl:D};var H=function(s,l){Object.keys(l||{}).forEach((u=>{if(u in Re){const f=typeof l[u]==="object"?l[u]:null;s=s.use(Re[u],f)}}));return s};var Q=function(s,l,u){if(typeof l==="string"){l=[l]}else if(l&&typeof l==="object"&&!Array.isArray(l)){u=l;l=null}return s.use(E).use(prepare,Array.isArray(l)?l.length:null).use(z).use(insert,l).use(H,u)};function replaceVariables(s,l){l=l||{};s.walk((s=>replaceInNode(s,l)));return s}function replaceInNode(s,l){const u=s.attributes;for(let f=0,h=u.length;f<h;f++){const h=u[f];if(typeof h.value==="string"){s.setAttribute(h.name,replaceInString(h.value,l))}}if(s.value!=null){s.value=replaceInString(s.value,l)}return s}function replaceInString(s,l){const u=createModel(s);let f=0;let h="";for(let s=0,g=u.variables.length;s<g;s++){const g=u.variables[s];let v=g.name in l?l[g.name]:g.name;if(typeof v==="function"){v=v(u.string,g,f+g.location)}h+=u.string.slice(f,g.location)+v;f=g.location+g.length}return h+u.string.slice(f)}function createModel(s){const l=/\$\{([a-z][\w\-]*)\}/gi;const u=92;const f=[];const h=new Map;let g;while(g=l.exec(s)){h.set(g.index,g)}if(h.size){let l=0,g=0,v=s.length;let k="";while(g<v){if(s.charCodeAt(g)===u&&h.has(g+1)){const u=h.get(g+1);k+=s.slice(l,g)+u[0];l=g=u.index+u[0].length;h.delete(g+1);continue}g++}s=k+s.slice(l);const O=Array.from(h.values());for(let s=0,l=O.length;s<l;s++){const l=O[s];f.push({name:l[1],location:l.index,length:l[0].length})}}return{string:s,variables:f}}const Oe=36;const De=58;const Ie=92;const Me=123;const Ne=125;function parse$2(s){const l=new StreamReader(s);const u=[];let f="",h=0,g=0;let v,k;while(!l.eof()){v=l.peek();g=l.pos;if(v===Ie){l.next();l.next()}else if(k=consumeField(l,f.length+g-h)){u.push(k);f+=l.string.slice(h,g)+k.placeholder;h=l.pos}else{l.next()}}return new FieldString(f+l.string.slice(h),u)}function mark(s,l,u){u=u||createToken;const f=l.map(((s,l)=>({order:l,field:s,end:s.location+s.length}))).sort(((s,l)=>s.end-l.end||s.order-l.order));let h=0;const g=f.map((l=>{const f=s.substr(l.field.location,l.field.length);const g=s.slice(h,l.field.location);h=l.end;return g+u(l.field.index,f)}));return g.join("")+s.slice(h)}function createToken(s,l){return l?`\${${s}:${l}}`:`\${${s}}`}function consumeField(s,l){const u=s.pos;if(s.eat(Oe)){let u=consumeIndex(s);let f="";if(u!=null){return new Field(u,f,l)}if(s.eat(Me)){u=consumeIndex(s);if(u!=null){if(s.eat(De)){f=consumePlaceholder(s)}if(s.eat(Ne)){return new Field(u,f,l)}}}}s.pos=u}function consumePlaceholder(s){let l;const u=[];s.start=s.pos;while(!s.eof()){l=s.peek();if(l===Me){u.push(s.pos)}else if(l===Ne){if(!u.length){break}u.pop()}s.next()}if(u.length){throw s.error('Unable to find matching "}" for curly brace at '+u.pop())}return s.current()}function consumeIndex(s){s.start=s.pos;if(s.eatWhile(isNumber)){return Number(s.current())}}class Field{constructor(s,l,u){this.index=s;this.placeholder=l;this.location=u;this.length=this.placeholder.length}}class FieldString{constructor(s,l){this.string=s;this.fields=l}mark(s){return mark(this.string,this.fields,s)}toString(){return string}}const J=s=>s;class OutputNode{constructor(s,l,u){if(typeof l==="object"){u=l;l=null}this.node=s;this._fieldsRenderer=l||J;this.open=null;this.beforeOpen="";this.afterOpen="";this.close=null;this.beforeClose="";this.afterClose="";this.text=null;this.beforeText="";this.afterText="";this.indent="";this.newline="";if(u){Object.assign(this,u)}}clone(){return new this.constructor(this.node,this)}indentText(s){const l=splitByLines(s);if(l.length===1){return s}const u=!this.newline&&!this.indent?" ":this.newline;return l.map(((s,l)=>l?this.indent+s:s)).join(u)}renderFields(s){return this._fieldsRenderer(s)}toString(s){const l=this._wrap(this.open,this.beforeOpen,this.afterOpen);const u=this._wrap(this.close,this.beforeClose,this.afterClose);const f=this._wrap(this.text,this.beforeText,this.afterText);return l+f+(s!=null?s:"")+u}_wrap(s,l,u){l=l!=null?l:"";u=u!=null?u:"";if(s!=null){s=l?s.replace(/^\s+/,""):s;s=u?s.replace(/\s+$/,""):s;return l+this.indentText(s)+u}return""}}function splitByLines(s){return(s||"").split(/\r\n|\r|\n/g)}const ee=(s,l)=>l||"";function render(s,l,u){if(typeof u==="undefined"){u=l;l=null}l=l||ee;const f={index:1};const i=s=>s==null?l(f.index++):getFieldsModel(s,f).mark(l);return run(s.children,u,i)}function run(s,l,u){return s.map((s=>{const f=l(new OutputNode(s,u));return f?f.toString(run(s.children,l,u)):""})).join("")}function getFieldsModel(s,l){const u=typeof s==="object"?s:parse$2(s);let f=-1;u.fields.forEach((s=>{s.index+=l.index;if(s.index>f){f=s.index}}));if(f!==-1){l.index=f+1}return u}const Le=/^(.*?)([A-Z_]+)(.*?)$/;const je=91;const Fe=93;function template(s,l){if(s==null){return s}const u=[];const r=(s,u,f,h)=>l[f]!=null?u+l[f]+h:"";let f="";let h=0,g=0;let v,k;while(g<s.length){v=s.charCodeAt(g);if(v===je){u.push(g)}else if(v===Fe){k=u.pop();if(!u.length){f+=s.slice(h,k)+s.slice(k+1,g).replace(Le,r);h=g+1}}g++}return f+s.slice(h)}function splitByLines$1(s){return(s||"").split(/\r\n|\r|\n/g)}function isFirstChild(s){return s.parent.firstChild===s}function isRoot(s){return s&&!s.parent}function isPseudoSnippet(s){return s.isTextOnly&&!!s.children.length}function handlePseudoSnippet(s){const l=s.node;if(isPseudoSnippet(l)){const u=parse$2(l.value);const f=findLowestIndexField(u);if(f){const l=splitFieldsModel(u,f);s.open=s.renderFields(l[0]);s.close=s.renderFields(l[1])}else{s.text=s.renderFields(u)}return true}return false}function findLowestIndexField(s){return s.fields.reduce(((s,l)=>!s||l.index<s.index?l:s),null)}function splitFieldsModel(s,l){const u=s.fields.indexOf(l);const f=new s.constructor(s.string.slice(0,l.location),s.fields.slice(0,u));const h=new s.constructor(s.string.slice(l.location+l.length),s.fields.slice(u+1));return[f,h]}const qe={enabled:false,trigger:["id","class"],before:"",after:"\n\x3c!-- /[#ID][.CLASS] --\x3e"};function html(s,l,u){u=Object.assign({},u);u.comment=Object.assign({},qe,u.comment);return render(s,u.field,(s=>{s=setFormatting(s,l);if(!handlePseudoSnippet(s)){const f=s.node;if(f.name){const h=l.name(f.name);const g=formatAttributes(s,l);s.open=`<${h}${g}${f.selfClosing?l.selfClose():""}>`;if(!f.selfClosing){s.close=`</${h}>`}commentNode(s,u.comment)}if(f.value||!f.children.length&&!f.selfClosing){s.text=s.renderFields(f.value)}}return s}))}function setFormatting(s,l){const u=s.node;if(shouldFormatNode(u,l)){s.indent=l.indent(getIndentLevel(u,l));s.newline="\n";const f=s.newline+s.indent;if(!isRoot(u.parent)||!isFirstChild(u)){s.beforeOpen=f;if(u.isTextOnly){s.beforeText=f}}if(hasInnerFormatting(u,l)){if(!u.isTextOnly){s.beforeText=f+l.indent(1)}s.beforeClose=f}}return s}function shouldFormatNode(s,l){if(!l.get("format")){return false}if(s.parent.isTextOnly&&s.parent.children.length===1&&parse$2(s.parent.value).fields.length){return false}return isInline(s,l)?shouldFormatInline(s,l):true}function shouldFormatInline(s,l){if(!isInline(s,l)){return false}if(isPseudoSnippet(s)){return true}if(s.childIndex===0){let u=s;while(u=u.nextSibling){if(!isInline(u,l)){return true}}}else if(!isInline(s.previousSibling,l)){return true}if(l.get("inlineBreak")){let u=1;let f=s,h=s;while(isInlineElement(f=f.previousSibling,l)){u++}while(isInlineElement(h=h.nextSibling,l)){u++}if(u>=l.get("inlineBreak")){return true}}for(let u=0,f=s.children.length;u<f;u++){if(shouldFormatNode(s.children[u],l)){return true}}return false}function hasInnerFormatting(s,l){const u=(s.name||"").toLowerCase();if(l.get("formatForce").indexOf(u)!==-1){return true}for(let u=0;u<s.children.length;u++){if(shouldFormatNode(s.children[u],l)){return true}}return false}function formatAttributes(s,l){const u=s.node;return u.attributes.map((u=>{if(u.options.implied&&u.value==null){return null}const f=l.attribute(u.name);let h=null;if(u.options.boolean||l.get("booleanAttributes").indexOf(f.toLowerCase())!==-1){if(l.get("compactBooleanAttributes")&&u.value==null){return` ${f}`}else if(u.value==null){h=f}}if(h==null){h=s.renderFields(u.value)}return u.options.before&&u.options.after?` ${f}=${u.options.before+h+u.options.after}`:` ${f}=${l.quote(h)}`})).join("")}function isInline(s,l){return s&&s.isTextOnly||isInlineElement(s,l)}function isInlineElement(s,l){return s&&l.isInline(s)}function getIndentLevel(s,l){const u=l.get("formatSkip")||[];let f=s.parent.isTextOnly?-2:-1;let h=s;while(h=h.parent){if(u.indexOf((h.name||"").toLowerCase())===-1){f++}}return f<0?0:f}function commentNode(s,l){const u=s.node;if(!l.enabled||!l.trigger||!u.name){return}const f=s.node.attributes.reduce(((s,l)=>{if(l.name&&l.value!=null){s[l.name.toUpperCase().replace(/-/g,"_")]=l.value}return s}),{});for(let u=0,h=l.trigger.length;u<h;u++){if(l.trigger[u].toUpperCase()in f){s.open=template(l.before,f)+s.open;if(s.close){s.close+=template(l.after,f)}break}}}const $e=/^id$/i;const We=/^class$/i;const ze={primary:s=>s.join(""),secondary:s=>s.map((s=>s.isBoolean?s.name:`${s.name}=${s.value}`)).join(", ")};const Ve={open:null,close:null,omitName:/^div$/i,attributes:ze};function indentFormat(s,l,u){u=Object.assign({},Ve,u);const f=s.node;s.indent=l.indent(getIndentLevel$1(f,l));s.newline="\n";if(!isRoot(f.parent)||!isFirstChild(f)){s.beforeOpen=s.newline+s.indent}if(f.name){const h=Object.assign({NAME:l.name(f.name),SELF_CLOSE:f.selfClosing?u.selfClose:null},getAttributes(s,l,u.attributes));if(u.omitName&&u.omitName.test(h.NAME)&&h.PRIMARY_ATTRS){h.NAME=null}if(u.open!=null){s.open=template(u.open,h)}if(u.close!=null){s.close=template(u.close,h)}}return s}function getAttributes(s,l,u){u=Object.assign({},ze,u);const f=[],h=[];const g=s.node;g.attributes.forEach((u=>{if(u.options.implied&&u.value==null){return null}const g=l.attribute(u.name);const v=s.renderFields(u.value);if($e.test(g)){v&&f.push(`#${v}`)}else if(We.test(g)){v&&f.push(`.${v.replace(/\s+/g,".")}`)}else{const s=u.value==null&&(u.options.boolean||l.get("booleanAttributes").indexOf(g.toLowerCase())!==-1);h.push({name:g,value:v,isBoolean:s})}}));return{PRIMARY_ATTRS:u.primary(f)||null,SECONDARY_ATTRS:u.secondary(h)||null}}function getIndentLevel$1(s,l){let u=s.parent.isTextOnly?-2:-1;let f=s;while(f=f.parent){u++}return u<0?0:u}const Ge=/\n|\r/;function haml(s,l,u){u=u||{};const f={open:"[%NAME][PRIMARY_ATTRS][(SECONDARY_ATTRS)][SELF_CLOSE]",selfClose:"/",attributes:{secondary(s){return s.map((s=>s.isBoolean?`${s.name}${l.get("compactBooleanAttributes")?"":"=true"}`:`${s.name}=${l.quote(s.value)}`)).join(" ")}}};return render(s,u.field,(s=>{s=indentFormat(s,l,f);s=updateFormatting(s,l);if(!handlePseudoSnippet(s)){const u=s.node;if(u.value||!u.children.length&&!u.selfClosing){s.text=s.renderFields(formatNodeValue(u,l))}}return s}))}function updateFormatting(s,l){const u=s.node;if(!u.isTextOnly&&u.value){s.beforeText=Ge.test(u.value)?s.newline+s.indent+l.indent(1):" "}return s}function formatNodeValue(s,l){if(s.value!=null&&Ge.test(s.value)){const u=splitByLines$1(s.value);const f=l.indent(1);const h=u.reduce(((s,l)=>Math.max(s,l.length)),0);return u.map(((s,l)=>`${l?f:""}${pad(s,h)} |`)).join("\n")}return s.value}function pad(s,l){while(s.length<l){s+=" "}return s}const Ye=/\n|\r/;const Ke={none:"[ SECONDARY_ATTRS]",round:"[(SECONDARY_ATTRS)]",curly:"[{SECONDARY_ATTRS}]",square:"[[SECONDARY_ATTRS]"};function slim(s,l,u){u=u||{};const f=u.attributeWrap&&Ke[u.attributeWrap]||Ke.none;const h=f===Ke.none?s=>`${s.name}=true`:s=>s.name;const g={open:`[NAME][PRIMARY_ATTRS]${f}[SELF_CLOSE]`,selfClose:"/",attributes:{secondary(s){return s.map((s=>s.isBoolean?h(s):`${s.name}=${l.quote(s.value)}`)).join(" ")}}};return render(s,u.field,((s,u)=>{s=indentFormat(s,l,g);s=updateFormatting$1(s,l);if(!handlePseudoSnippet(s)){const u=s.node;if(u.value||!u.children.length&&!u.selfClosing){s.text=s.renderFields(formatNodeValue$1(u,l))}}return s}))}function updateFormatting$1(s,l){const u=s.node;const f=u.parent;if(l.get("inlineBreak")===0&&isInline$1(u,l)&&!isRoot(f)&&f.value==null&&f.children.length===1){s.beforeOpen=": "}if(!u.isTextOnly&&u.value){s.beforeText=Ye.test(u.value)?s.newline+s.indent+l.indent(1):" "}return s}function formatNodeValue$1(s,l){if(s.value!=null&&Ye.test(s.value)){const u=l.indent(1);return splitByLines$1(s.value).map(((s,l)=>`${u}${l?" ":"|"} ${s}`)).join("\n")}return s.value}function isInline$1(s,l){return s&&(s.isTextOnly||l.isInline(s))}const Qe=/\n|\r/;function pug(s,l,u){u=u||{};const f={open:"[NAME][PRIMARY_ATTRS][(SECONDARY_ATTRS)]",attributes:{secondary(s){return s.map((s=>s.isBoolean?s.name:`${s.name}=${l.quote(s.value)}`)).join(", ")}}};return render(s,u.field,(s=>{s=indentFormat(s,l,f);s=updateFormatting$2(s,l);if(!handlePseudoSnippet(s)){const u=s.node;if(u.value||!u.children.length&&!u.selfClosing){s.text=s.renderFields(formatNodeValue$2(u,l))}}return s}))}function updateFormatting$2(s,l){const u=s.node;if(!u.isTextOnly&&u.value){s.beforeText=Qe.test(u.value)?s.newline+s.indent+l.indent(1):" "}return s}function formatNodeValue$2(s,l){if(s.value!=null&&Qe.test(s.value)){const u=l.indent(1);return splitByLines$1(s.value).map((s=>`${u}| ${s}`)).join("\n")}return s.value}const Je={html:html,haml:haml,slim:slim,pug:pug};var me=function(s,l,u,f){if(typeof u==="object"){f=u;u=null}if(!supports(u)){u="html"}return Je[u](s,l,f)};function supports(s){return!!s&&s in Je}function expand(s,l){l=l||{};if(typeof s==="string"){s=parse$3(s,l)}return me(s,l.profile,l.syntax,l.format)}function parse$3(s,l){return index(s).use(A,l.snippets).use(replaceVariables,l.variables).use(Q,l.text,l.addons)}class CSSValue{constructor(){this.type="css-value";this.value=[]}get size(){return this.value.length}add(s){this.value.push(s)}has(s){return this.value.indexOf(s)!==-1}toString(){return this.value.join(" ")}}const Xe=35;const et=46;var be=function(s){if(s.peek()===Xe){s.start=s.pos;s.next();s.eat(116)||s.eatWhile(isHex);const l=s.current();s.start=s.pos;if(s.eat(et)&&!s.eatWhile(isNumber)){throw s.error("Unexpected character for alpha value of color")}return new Color(l,s.current())}};class Color{constructor(s,l){this.type="color";this.raw=s;this.alpha=Number(l!=null&&l!==""?l:1);s=s.slice(1);let u=0,f=0,h=0;if(s==="t"){this.alpha=0}else{switch(s.length){case 0:break;case 1:u=f=h=s+s;break;case 2:u=f=h=s;break;case 3:u=s[0]+s[0];f=s[1]+s[1];h=s[2]+s[2];break;default:s+=s;u=s.slice(0,2);f=s.slice(2,4);h=s.slice(4,6)}}this.r=parseInt(u,16);this.g=parseInt(f,16);this.b=parseInt(h,16)}toHex(s){const l=s&&isShortHex(this.r)&&isShortHex(this.g)&&isShortHex(this.b)?toShortHex:toHex;return"#"+l(this.r)+l(this.g)+l(this.b)}toRGB(){const s=[this.r,this.g,this.b];if(this.alpha!==1){s.push(this.alpha.toFixed(8).replace(/\.?0+$/,""))}return`${s.length===3?"rgb":"rgba"}(${s.join(", ")})`}toString(s){if(!this.r&&!this.g&&!this.b&&!this.alpha){return"transparent"}return this.alpha===1?this.toHex(s):this.toRGB()}}function isHex(s){return isNumber(s)||isAlpha(s,65,70)}function isShortHex(s){return!(s%17)}function toShortHex(s){return(s>>4).toString(16)}function toHex(s){return pad$1(s.toString(16),2)}function pad$1(s,l){while(s.length<l){s="0"+s}return s}function isAlphaNumericWord(s){return isNumber(s)||isAlphaWord(s)}function isAlphaWord(s){return s===95||isAlpha(s)}const tt=37;const it=46;const st=45;var xe=function(s){s.start=s.pos;if(eatNumber(s)){const l=s.current();s.start=s.pos;s.eat(tt)||s.eatWhile(isAlphaWord);return new NumericValue(l,s.current())}};class NumericValue{constructor(s,l){this.type="numeric";this.value=Number(s);this.unit=l||""}toString(){return`${this.value}${this.unit}`}}function eatNumber(s){const l=s.pos;const u=s.eat(st);let f=false,h=false,g;while(!s.eof()){g=s.peek();if(g===it?f:!isNumber(g)){break}h=true;if(g===it){f=true}s.next()}if(u&&!h){s.pos=l}return l!==s.pos}const ut=36;const ct=45;const ft=64;var Ae=function(s,l){s.start=s.pos;if(s.eat(ut)||s.eat(ft)){s.eatWhile(isVariableName)}else if(l){s.eatWhile(isAlphaWord)}else{s.eatWhile(isKeyword)}return s.start!==s.pos?new Keyword(s.current()):null};class Keyword{constructor(s){this.type="keyword";this.value=s}toString(){return this.value}}function isKeyword(s){return isAlphaNumericWord(s)||s===ct}function isVariableName(s){return s===45||isAlphaNumericWord(s)}const pt={throws:true};var Te=function(s){if(o(s,pt)){return new QuotedString(s.current())}};class QuotedString{constructor(s){this.type="string";this.value=s}toString(){return this.value}}const dt=40;const ht=41;const mt=44;function consumeArgumentList(s){if(!s.eat(dt)){return null}let l=1,u,f;const h=[];while(!s.eof()){if(f=consumeArgument(s)){h.push(f)}else{s.eatWhile(isWhiteSpace);if(s.eat(ht)){break}if(!s.eat(mt)){throw s.error("Expected , or )")}}}return h}function consumeArgument(s){const l=new CSSValue;let u;while(!s.eof()){s.eatWhile(isWhiteSpace);u=xe(s)||be(s)||Te(s)||consumeKeywordOrFunction(s);if(!u){break}l.add(u)}return l.size?l:null}function consumeKeywordOrFunction(s){const l=Ae(s);if(l){const u=consumeArgumentList(s);return u?new FunctionCall(l.toString(),u):l}}class FunctionCall{constructor(s,l){this.type="function";this.name=s;this.args=l||[]}toString(){return`${this.name}(${this.args.join(", ")})`}}const vt=33;const yt=36;const bt=43;const wt=45;const _t=58;const xt=64;var Be=function(s){const l=new Node;const u=new StreamReader(s);while(!u.eof()){let s=new Node(consumeIdent(u));s.value=consumeValue(u);const f=consumeArgumentList(u);if(f){for(let l=0;l<f.length;l++){s.setAttribute(String(l),f[l])}}if(u.eat(vt)){s.value.add("!")}l.appendChild(s);if(!u.eat(bt)){break}}if(!u.eof()){throw u.error("Unexpected character")}return l};function consumeIdent(s){s.start=s.pos;s.eatWhile(isIdentPrefix);s.eatWhile(isIdent);return s.start!==s.pos?s.current():null}function consumeValue(s){const l=new CSSValue;let u;while(!s.eof()){s.eat(_t);if(u=xe(s)||be(s)){if(!u.unit){s.eat(wt)}}else{s.eat(wt);u=Ae(s,true)}if(!u){break}l.add(u)}return l}function isIdent(s){return isAlphaWord(s)}function isIdentPrefix(s){return s===xt||s===yt||s===vt}const St=45;var Ue=function(s,l){s=s.toLowerCase();l=l.toLowerCase();if(s===l){return 1}if(!l||s.charCodeAt(0)!==l.charCodeAt(0)){return 0}const u=s.length;const f=l.length;let h=1,g=1,v=f;let k,O,M,q;while(h<u){k=s.charCodeAt(h);M=false;q=false;while(g<f){O=l.charCodeAt(g);if(k===O){M=true;v+=(f-g)*(q?2:1);break}q=O===St;g++}if(!M){break}h++}return v&&v*(h/u)/sum(f)};function sum(s){return s*(s+1)/2}const kt=/^([a-z\-]+)(?:\s*:\s*([^\n\r]+))?$/;const Ct=45;var Pe=function(s){return nest(s.map((s=>new CSSSnippet(s.key,s.value))))};class CSSSnippet{constructor(s,l){this.key=s;this.value=l;this.property=null;const u=l&&l.match(kt);if(u){this.property=u[1];this.value=u[2]}this.dependencies=[]}addDependency(s){this.dependencies.push(s)}get defaulValue(){return this.value!=null?splitValue(this.value)[0]:null}keywords(){const s=[];const l=new Set;let u=0,f,h;if(this.property){s.push(this)}while(u<s.length){f=s[u++];if(f.value){h=splitValue(f.value).filter(isKeyword$1);for(let s=0;s<h.length;s++){l.add(h[s].trim())}for(let l=0,u=f.dependencies;l<u.length;l++){if(s.indexOf(u[l])===-1){s.push(u[l])}}}}return Array.from(l)}}function nest(s){s=s.sort(snippetsSort);const l=[];for(let u=0,f,h;u<s.length;u++){f=s[u];if(!f.property){continue}while(l.length){h=l[l.length-1];if(f.property.indexOf(h.property)===0&&f.property.charCodeAt(h.property.length)===Ct){h.addDependency(f);l.push(f);break}l.pop()}if(!l.length){l.push(f)}}return s}function snippetsSort(s,l){if(s.key===l.key){return 0}return s.key<l.key?-1:1}function isKeyword$1(s){return/^\s*[\w\-]+/.test(s)}function splitValue(s){return String(s).split("|")}const Et=["auto","inherit","unset"];const Rt=["z-index","line-height","opacity","font-weight","zoom","flex","flex-grow","flex-shrink"];const Pt={intUnit:"px",floatUnit:"em",unitAliases:{e:"em",p:"%",x:"ex",r:"rem"},fuzzySearchMinScore:0};var He=function(s,l,u){const f=convertToCSSSnippets(l);u={intUnit:u&&u.intUnit||Pt.intUnit,floatUnit:u&&u.floatUnit||Pt.floatUnit,unitAliases:Object.assign({},Pt.unitAliases,u&&u.unitAliases),fuzzySearchMinScore:u&&u.fuzzySearchMinScore||Pt.fuzzySearchMinScore};s.walk((s=>resolveNode$1(s,f,u)));return s};function convertToCSSSnippets(s){return Pe(s.all({type:"string"}))}function resolveNode$1(s,l,u){const f=findBestMatch(s.name,l,"key",u.fuzzySearchMinScore);if(!f){return s.name==="!"?setNodeAsText(s,"!important"):s}return f.property?resolveAsProperty(s,f,u):resolveAsSnippet(s,f)}function resolveAsProperty(s,l,u){const f=s.name;s.name=l.property;if(s.value&&typeof s.value==="object"){const h=l.keywords();if(!s.value.size){let u=findBestMatch(getUnmatchedPart(f,l.key),h);if(!u){u=l.defaulValue;if(u&&u.indexOf("${")===-1){u=`\${1:${u}}`}}if(u){s.value.add(u)}}else{for(let l=0,f;l<s.value.value.length;l++){f=s.value.value[l];if(f==="!"){f=`${!l?"${1} ":""}!important`}else if(isKeyword$2(f)){f=findBestMatch(f.value,h)||findBestMatch(f.value,Et)||f}else if(isNumericValue(f)){f=resolveNumericValue(s.name,f,u)}s.value.value[l]=f}}}return s}function resolveAsSnippet(s,l){return setNodeAsText(s,l.value)}function setNodeAsText(s,l){s.name=null;s.value=l;return s}function findBestMatch(s,l,u,f){if(!s){return null}let h=null;let g=0;f=f||0;for(let f=0,v;f<l.length;f++){v=l[f];const k=Ue(s,getScoringPart(v,u));if(k===1){return v}if(k&&k>=g){g=k;h=v}}return g>=f?h:null}function getScoringPart(s,l){const u=s&&typeof s==="object"?s[l]:s;const f=(u||"").match(/^[\w-@]+/);return f?f[0]:u}function getUnmatchedPart(s,l){for(let u=0,f=0;u<s.length;u++){f=l.indexOf(s[u],f);if(f===-1){return s.slice(u)}f++}return""}function isKeyword$2(s){return tokenTypeOf(s,"keyword")}function isNumericValue(s){return tokenTypeOf(s,"numeric")}function tokenTypeOf(s,l){return s&&typeof s==="object"&&s.type===l}function resolveNumericValue(s,l,u){if(l.unit){l.unit=u.unitAliases[l.unit]||l.unit}else if(l.value!==0&&Rt.indexOf(s)===-1){l.unit=l.value===(l.value|0)?u.intUnit:u.floatUnit}return l}const Tt={shortHex:true,format:{between:": ",after:";"}};function css(s,l,u){u=Object.assign({},Tt,u);return render(s,u.field,(f=>{const h=f.node;let g=String(h.value||"");if(h.attributes.length){const s=h.attributes.map((s=>stringifyAttribute(s,u)));g=injectFields(g,s)}f.open=h.name&&l.name(h.name);f.afterOpen=u.format.between;f.text=f.renderFields(g||null);if(f.open&&(!f.text||!f.text.endsWith(";"))){f.afterText=u.format.after}if(l.get("format")){f.newline="\n";if(s.lastChild!==h){f.afterText+=f.newline}}return f}))}function injectFields(s,l){const u=parse$2(s);const f=u.fields.length;if(f){l=l.slice();if(l.length>f){l=l.slice(0,f-1).concat(l.slice(f-1).join(", "))}while(l.length){const s=l.shift();const f=u.fields.shift();const h=s.length-f.length;u.string=u.string.slice(0,f.location)+s+u.string.slice(f.location+f.length);for(let s=0,l=u.fields.length;s<l;s++){u.fields[s].location+=h}}}return u}function stringifyAttribute(s,l){if(s.value&&typeof s.value==="object"&&s.value.type==="css-value"){return s.value.value.map((s=>{if(s&&typeof s==="object"){return s.type==="color"?s.toString(l.shortHex):s.toString()}return String(s)})).join(" ")}return s.value!=null?String(s.value):""}const At={css:{between:": ",after:";"},scss:"css",less:"css",sass:{between:": ",after:""},stylus:{between:" ",after:""}};var Ze=function(s,l,u,f){if(typeof u==="object"){f=u;u=null}if(!supports$1(u)){u="css"}f=Object.assign({},f,{format:getFormat(u,f)});return css(s,l,f)};function supports$1(s){return!!s&&s in At}function getFormat(s,l){let u=At[s];if(typeof u==="string"){u=At[u]}return Object.assign({},u,l&&l.stylesheet)}function expand$1(s,l){l=l||{};if(typeof s==="string"){s=parse$4(s,l)}return Ze(s,l.profile,l.syntax,l.format)}function parse$4(s,l){if(typeof s==="string"){s=Be(s)}return s.use(He,l.snippets,l.format?l.format.stylesheet:{})}var Ot={a:"a[href]","a:blank":"a[href='http://${0}' target='_blank' rel='noopener noreferrer']","a:link":"a[href='http://${0}']","a:mail":"a[href='mailto:${0}']","a:tel":"a[href='tel:+${0}']",abbr:"abbr[title]","acr|acronym":"acronym[title]",base:"base[href]/",basefont:"basefont/",br:"br/",frame:"frame/",hr:"hr/",bdo:"bdo[dir]","bdo:r":"bdo[dir=rtl]","bdo:l":"bdo[dir=ltr]",col:"col/",link:"link[rel=stylesheet href]/","link:css":"link[href='${1:style}.css']","link:print":"link[href='${1:print}.css' media=print]","link:favicon":"link[rel='shortcut icon' type=image/x-icon href='${1:favicon.ico}']","link:mf|link:manifest":"link[rel='manifest' href='${1:manifest.json}']","link:touch":"link[rel=apple-touch-icon href='${1:favicon.png}']","link:rss":"link[rel=alternate type=application/rss+xml title=RSS href='${1:rss.xml}']","link:atom":"link[rel=alternate type=application/atom+xml title=Atom href='${1:atom.xml}']","link:im|link:import":"link[rel=import href='${1:component}.html']",meta:"meta/","meta:utf":"meta[http-equiv=Content-Type content='text/html;charset=UTF-8']","meta:vp":"meta[name=viewport content='width=${1:device-width}, initial-scale=${2:1.0}']","meta:compat":"meta[http-equiv=X-UA-Compatible content='${1:IE=7}']","meta:edge":"meta:compat[content='${1:ie=edge}']","meta:redirect":"meta[http-equiv=refresh content='0; url=${1:http://example.com}']","meta:kw":"meta[name=keywords content]","meta:desc":"meta[name=description content]",style:"style",script:"script","script:src":"script[src]",img:"img[src alt]/","img:s|img:srcset":"img[srcset src alt]","img:z|img:sizes":"img[sizes srcset src alt]",picture:"picture","src|source":"source/","src:sc|source:src":"source[src type]","src:s|source:srcset":"source[srcset]","src:t|source:type":"source[srcset type='${1:image/}']","src:z|source:sizes":"source[sizes srcset]","src:m|source:media":"source[media='(${1:min-width: })' srcset]","src:mt|source:media:type":"source:media[type='${2:image/}']","src:mz|source:media:sizes":"source:media[sizes srcset]","src:zt|source:sizes:type":"source[sizes srcset type='${1:image/}']",iframe:"iframe[src frameborder=0]",embed:"embed[src type]/",object:"object[data type]",param:"param[name value]/",map:"map[name]",area:"area[shape coords href alt]/","area:d":"area[shape=default]","area:c":"area[shape=circle]","area:r":"area[shape=rect]","area:p":"area[shape=poly]",form:"form[action]","form:get":"form[method=get]","form:post":"form[method=post]",label:"label[for]",input:"input[type=${1:text}]/",inp:"input[name=${1} id=${1}]","input:h|input:hidden":"input[type=hidden name]","input:t|input:text":"inp[type=text]","input:search":"inp[type=search]","input:email":"inp[type=email]","input:url":"inp[type=url]","input:p|input:password":"inp[type=password]","input:datetime":"inp[type=datetime]","input:date":"inp[type=date]","input:datetime-local":"inp[type=datetime-local]","input:month":"inp[type=month]","input:week":"inp[type=week]","input:time":"inp[type=time]","input:tel":"inp[type=tel]","input:number":"inp[type=number]","input:color":"inp[type=color]","input:c|input:checkbox":"inp[type=checkbox]","input:r|input:radio":"inp[type=radio]","input:range":"inp[type=range]","input:f|input:file":"inp[type=file]","input:s|input:submit":"input[type=submit value]","input:i|input:image":"input[type=image src alt]","input:b|input:button":"input[type=button value]","input:reset":"input:button[type=reset]",isindex:"isindex/",select:"select[name=${1} id=${1}]","select:d|select:disabled":"select[disabled.]","opt|option":"option[value]",textarea:"textarea[name=${1} id=${1} cols=${2:30} rows=${3:10}]",marquee:"marquee[behavior direction]","menu:c|menu:context":"menu[type=context]","menu:t|menu:toolbar":"menu[type=toolbar]",video:"video[src]",audio:"audio[src]","html:xml":"html[xmlns=http://www.w3.org/1999/xhtml]",keygen:"keygen/",command:"command/","btn:s|button:s|button:submit":"button[type=submit]","btn:r|button:r|button:reset":"button[type=reset]","btn:d|button:d|button:disabled":"button[disabled.]","fst:d|fset:d|fieldset:d|fieldset:disabled":"fieldset[disabled.]",bq:"blockquote",fig:"figure",figc:"figcaption",pic:"picture",ifr:"iframe",emb:"embed",obj:"object",cap:"caption",colg:"colgroup",fst:"fieldset",btn:"button",optg:"optgroup",tarea:"textarea",leg:"legend",sect:"section",art:"article",hdr:"header",ftr:"footer",adr:"address",dlg:"dialog",str:"strong",prog:"progress",mn:"main",tem:"template",fset:"fieldset",datag:"datagrid",datal:"datalist",kg:"keygen",out:"output",det:"details",cmd:"command","ri:d|ri:dpr":"img:s","ri:v|ri:viewport":"img:z","ri:a|ri:art":"pic>src:m+img","ri:t|ri:type":"pic>src:t+img","!!!":"{<!DOCTYPE html>}",doc:"html[lang=${lang}]>(head>meta[charset=${charset}]+meta:vp+title{${1:Document}})+body","!|html:5":"!!!+doc",c:"{\x3c!-- ${0} --\x3e}","cc:ie":"{\x3c!--[if IE]>${0}<![endif]--\x3e}","cc:noie":"{\x3c!--[if !IE]>\x3c!--\x3e${0}\x3c!--<![endif]--\x3e}"};var Dt={"@f":"@font-face {\n\tfont-family: ${1};\n\tsrc: url(${1});\n}","@ff":"@font-face {\n\tfont-family: '${1:FontName}';\n\tsrc: url('${2:FileName}.eot');\n\tsrc: url('${2:FileName}.eot?#iefix') format('embedded-opentype'),\n\t\t url('${2:FileName}.woff') format('woff'),\n\t\t url('${2:FileName}.ttf') format('truetype'),\n\t\t url('${2:FileName}.svg#${1:FontName}') format('svg');\n\tfont-style: ${3:normal};\n\tfont-weight: ${4:normal};\n}","@i|@import":"@import url(${0});","@kf":"@keyframes ${1:identifier} {\n\t${2}\n}","@m|@media":"@media ${1:screen} {\n\t${0}\n}",ac:"align-content:start|end|flex-start|flex-end|center|space-between|space-around|stretch|space-evenly",ai:"align-items:start|end|flex-start|flex-end|center|baseline|stretch",anim:"animation:${1:name} ${2:duration} ${3:timing-function} ${4:delay} ${5:iteration-count} ${6:direction} ${7:fill-mode}",animdel:"animation-delay:time",animdir:"animation-direction:normal|reverse|alternate|alternate-reverse",animdur:"animation-duration:${1:0}s",animfm:"animation-fill-mode:both|forwards|backwards",animic:"animation-iteration-count:1|infinite",animn:"animation-name",animps:"animation-play-state:running|paused",animtf:"animation-timing-function:linear|ease|ease-in|ease-out|ease-in-out|cubic-bezier(${1:0.1}, ${2:0.7}, ${3:1.0}, ${3:0.1})",ap:"appearance:none",as:"align-self:start|end|auto|flex-start|flex-end|center|baseline|stretch",b:"bottom",bd:"border:${1:1px} ${2:solid} ${3:#000}",bdb:"border-bottom:${1:1px} ${2:solid} ${3:#000}",bdbc:"border-bottom-color:${1:#000}",bdbi:"border-bottom-image:url(${0})",bdbk:"border-break:close",bdbli:"border-bottom-left-image:url(${0})|continue",bdblrs:"border-bottom-left-radius",bdbri:"border-bottom-right-image:url(${0})|continue",bdbrrs:"border-bottom-right-radius",bdbs:"border-bottom-style",bdbw:"border-bottom-width",bdc:"border-color:${1:#000}",bdci:"border-corner-image:url(${0})|continue",bdcl:"border-collapse:collapse|separate",bdf:"border-fit:repeat|clip|scale|stretch|overwrite|overflow|space",bdi:"border-image:url(${0})",bdl:"border-left:${1:1px} ${2:solid} ${3:#000}",bdlc:"border-left-color:${1:#000}",bdlen:"border-length",bdli:"border-left-image:url(${0})",bdls:"border-left-style",bdlw:"border-left-width",bdr:"border-right:${1:1px} ${2:solid} ${3:#000}",bdrc:"border-right-color:${1:#000}",bdri:"border-right-image:url(${0})",bdrs:"border-radius",bdrst:"border-right-style",bdrw:"border-right-width",bds:"border-style:none|hidden|dotted|dashed|solid|double|dot-dash|dot-dot-dash|wave|groove|ridge|inset|outset",bdsp:"border-spacing",bdt:"border-top:${1:1px} ${2:solid} ${3:#000}",bdtc:"border-top-color:${1:#000}",bdti:"border-top-image:url(${0})",bdtli:"border-top-left-image:url(${0})|continue",bdtlrs:"border-top-left-radius",bdtri:"border-top-right-image:url(${0})|continue",bdtrrs:"border-top-right-radius",bdts:"border-top-style",bdtw:"border-top-width",bdw:"border-width",bfv:"backface-visibility:hidden|visible",bg:"background:${1:#000}",bga:"background-attachment:fixed|scroll",bgbk:"background-break:bounding-box|each-box|continuous",bgc:"background-color:#${1:fff}",bgcp:"background-clip:padding-box|border-box|content-box|no-clip",bgi:"background-image:url(${0})",bgo:"background-origin:padding-box|border-box|content-box",bgp:"background-position:${1:0} ${2:0}",bgpx:"background-position-x",bgpy:"background-position-y",bgr:"background-repeat:no-repeat|repeat-x|repeat-y|space|round",bgsz:"background-size:contain|cover",bxsh:"box-shadow:${1:inset }${2:hoff} ${3:voff} ${4:blur} ${5:#000}|none",bxsz:"box-sizing:border-box|content-box|border-box",c:"color:${1:#000}",cl:"clear:both|left|right|none",cm:"/* ${0} */",cnt:"content:'${0}'|normal|open-quote|no-open-quote|close-quote|no-close-quote|attr(${0})|counter(${0})|counters(${0})",coi:"counter-increment",colm:"columns",colmc:"column-count",colmf:"column-fill",colmg:"column-gap",colmr:"column-rule",colmrc:"column-rule-color",colmrs:"column-rule-style",colmrw:"column-rule-width",colms:"column-span",colmw:"column-width",cor:"counter-reset",cp:"clip:auto|rect(${1:top} ${2:right} ${3:bottom} ${4:left})",cps:"caption-side:top|bottom",cur:"cursor:pointer|auto|default|crosshair|hand|help|move|pointer|text",d:"display:grid|inline-grid|subgrid|block|none|flex|inline-flex|inline|inline-block|list-item|run-in|compact|table|inline-table|table-caption|table-column|table-column-group|table-header-group|table-footer-group|table-row|table-row-group|table-cell|ruby|ruby-base|ruby-base-group|ruby-text|ruby-text-group",ec:"empty-cells:show|hide",f:"font:${1:1em} ${2:sans-serif}",fd:"font-display:auto|block|swap|fallback|optional",fef:"font-effect:none|engrave|emboss|outline",fem:"font-emphasize",femp:"font-emphasize-position:before|after",fems:"font-emphasize-style:none|accent|dot|circle|disc",ff:"font-family:serif|sans-serif|cursive|fantasy|monospace",fft:'font-family:"Times New Roman", Times, Baskerville, Georgia, serif',ffa:'font-family:Arial, "Helvetica Neue", Helvetica, sans-serif',ffv:"font-family:Verdana, Geneva, sans-serif",fl:"float:left|right|none",fs:"font-style:italic|normal|oblique",fsm:"font-smoothing:antialiased|subpixel-antialiased|none",fst:"font-stretch:normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded",fv:"font-variant:normal|small-caps",fvs:"font-variation-settings:normal|inherit|initial|unset",fw:"font-weight:normal|bold|bolder|lighter",fx:"flex",fxb:"flex-basis:fill|max-content|min-content|fit-content|content",fxd:"flex-direction:row|row-reverse|column|column-reverse",fxf:"flex-flow",fxg:"flex-grow",fxsh:"flex-shrink",fxw:"flex-wrap:nowrap|wrap|wrap-reverse",fsz:"font-size",fsza:"font-size-adjust",gtc:"grid-template-columns:repeat()|minmax()",gtr:"grid-template-rows:repeat()|minmax()",gta:"grid-template-areas",gt:"grid-template",gg:"grid-gap",gcg:"grid-column-gap",grg:"grid-row-gap",gac:"grid-auto-columns:auto|minmax()",gar:"grid-auto-rows:auto|minmax()",gaf:"grid-auto-flow:row|column|dense|inherit|initial|unset",gd:"grid",gc:"grid-column",gcs:"grid-column-start",gce:"grid-column-end",gr:"grid-row",grs:"grid-row-start",gre:"grid-row-end",ga:"grid-area",h:"height",jc:"justify-content:start|end|stretch|flex-start|flex-end|center|space-between|space-around|space-evenly",ji:"justify-items:start|end|center|stretch",js:"justify-self:start|end|center|stretch",l:"left",lg:"background-image:linear-gradient(${1})",lh:"line-height",lis:"list-style",lisi:"list-style-image",lisp:"list-style-position:inside|outside",list:"list-style-type:disc|circle|square|decimal|decimal-leading-zero|lower-roman|upper-roman",lts:"letter-spacing:normal",m:"margin",mah:"max-height",mar:"max-resolution",maw:"max-width",mb:"margin-bottom",mih:"min-height",mir:"min-resolution",miw:"min-width",ml:"margin-left",mr:"margin-right",mt:"margin-top",ol:"outline",olc:"outline-color:${1:#000}|invert",olo:"outline-offset",ols:"outline-style:none|dotted|dashed|solid|double|groove|ridge|inset|outset",olw:"outline-width|thin|medium|thick",op:"opacity",ord:"order",ori:"orientation:landscape|portrait",orp:"orphans",ov:"overflow:hidden|visible|hidden|scroll|auto",ovs:"overflow-style:scrollbar|auto|scrollbar|panner|move|marquee",ovx:"overflow-x:hidden|visible|hidden|scroll|auto",ovy:"overflow-y:hidden|visible|hidden|scroll|auto",p:"padding",pb:"padding-bottom",pgba:"page-break-after:auto|always|left|right",pgbb:"page-break-before:auto|always|left|right",pgbi:"page-break-inside:auto|avoid",pl:"padding-left",pos:"position:relative|absolute|relative|fixed|static",pr:"padding-right",pt:"padding-top",q:"quotes",qen:"quotes:'\\201C' '\\201D' '\\2018' '\\2019'",qru:"quotes:'\\00AB' '\\00BB' '\\201E' '\\201C'",r:"right",rsz:"resize:none|both|horizontal|vertical",t:"top",ta:"text-align:left|center|right|justify",tal:"text-align-last:left|center|right",tbl:"table-layout:fixed",td:"text-decoration:none|underline|overline|line-through",te:"text-emphasis:none|accent|dot|circle|disc|before|after",th:"text-height:auto|font-size|text-size|max-size",ti:"text-indent",tj:"text-justify:auto|inter-word|inter-ideograph|inter-cluster|distribute|kashida|tibetan",to:"text-outline:${1:0} ${2:0} ${3:#000}",tov:"text-overflow:ellipsis|clip",tr:"text-replace",trf:"transform:${1}|skewX(${1:angle})|skewY(${1:angle})|scale(${1:x}, ${2:y})|scaleX(${1:x})|scaleY(${1:y})|scaleZ(${1:z})|scale3d(${1:x}, ${2:y}, ${3:z})|rotate(${1:angle})|rotateX(${1:angle})|rotateY(${1:angle})|rotateZ(${1:angle})|translate(${1:x}, ${2:y})|translateX(${1:x})|translateY(${1:y})|translateZ(${1:z})|translate3d(${1:tx}, ${2:ty}, ${3:tz})",trfo:"transform-origin",trfs:"transform-style:preserve-3d",trs:"transition:${1:prop} ${2:time}",trsde:"transition-delay:${1:time}",trsdu:"transition-duration:${1:time}",trsp:"transition-property:${1:prop}",trstf:"transition-timing-function:${1:fn}",tsh:"text-shadow:${1:hoff} ${2:voff} ${3:blur} ${4:#000}",tt:"text-transform:uppercase|lowercase|capitalize|none",tw:"text-wrap:none|normal|unrestricted|suppress",us:"user-select:none",v:"visibility:hidden|visible|collapse",va:"vertical-align:top|super|text-top|middle|baseline|bottom|text-bottom|sub",w:"width",whs:"white-space:nowrap|pre|pre-wrap|pre-line|normal",whsc:"white-space-collapse:normal|keep-all|loose|break-strict|break-all",wid:"widows",wm:"writing-mode:lr-tb|lr-tb|lr-bt|rl-tb|rl-bt|tb-rl|tb-lr|bt-lr|bt-rl",wob:"word-break:normal|keep-all|break-all",wos:"word-spacing",wow:"word-wrap:none|unrestricted|suppress|break-word|normal",z:"z-index",zom:"zoom:1"};var It={"tm|tmatch":"xsl:template[match mode]","tn|tname":"xsl:template[name]",call:"xsl:call-template[name]",ap:"xsl:apply-templates[select mode]",api:"xsl:apply-imports",imp:"xsl:import[href]",inc:"xsl:include[href]",ch:"xsl:choose","wh|xsl:when":"xsl:when[test]",ot:"xsl:otherwise",if:"xsl:if[test]",par:"xsl:param[name]",pare:"xsl:param[name select]",var:"xsl:variable[name]",vare:"xsl:variable[name select]",wp:"xsl:with-param[name select]",key:"xsl:key[name match use]",elem:"xsl:element[name]",attr:"xsl:attribute[name]",attrs:"xsl:attribute-set[name]",cp:"xsl:copy[select]",co:"xsl:copy-of[select]",val:"xsl:value-of[select]","for|each":"xsl:for-each[select]",tex:"xsl:text",com:"xsl:comment",msg:"xsl:message[terminate=no]",fall:"xsl:fallback",num:"xsl:number[value]",nam:"namespace-alias[stylesheet-prefix result-prefix]",pres:"xsl:preserve-space[elements]",strip:"xsl:strip-space[elements]",proc:"xsl:processing-instruction[name]",sort:"xsl:sort[select order]",choose:"xsl:choose>xsl:when+xsl:otherwise",xsl:"!!!+xsl:stylesheet[version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform]>{\n|}","!!!":'{<?xml version="1.0" encoding="UTF-8"?>}'};var Mt={html:Ot,css:Dt,xsl:It};var Nt={common:["lorem","ipsum","dolor","sit","amet","consectetur","adipisicing","elit"],words:["exercitationem","perferendis","perspiciatis","laborum","eveniet","sunt","iure","nam","nobis","eum","cum","officiis","excepturi","odio","consectetur","quasi","aut","quisquam","vel","eligendi","itaque","non","odit","tempore","quaerat","dignissimos","facilis","neque","nihil","expedita","vitae","vero","ipsum","nisi","animi","cumque","pariatur","velit","modi","natus","iusto","eaque","sequi","illo","sed","ex","et","voluptatibus","tempora","veritatis","ratione","assumenda","incidunt","nostrum","placeat","aliquid","fuga","provident","praesentium","rem","necessitatibus","suscipit","adipisci","quidem","possimus","voluptas","debitis","sint","accusantium","unde","sapiente","voluptate","qui","aspernatur","laudantium","soluta","amet","quo","aliquam","saepe","culpa","libero","ipsa","dicta","reiciendis","nesciunt","doloribus","autem","impedit","minima","maiores","repudiandae","ipsam","obcaecati","ullam","enim","totam","delectus","ducimus","quis","voluptates","dolores","molestiae","harum","dolorem","quia","voluptatem","molestias","magni","distinctio","omnis","illum","dolorum","voluptatum","ea","quas","quam","corporis","quae","blanditiis","atque","deserunt","laboriosam","earum","consequuntur","hic","cupiditate","quibusdam","accusamus","ut","rerum","error","minus","eius","ab","ad","nemo","fugit","officia","at","in","id","quos","reprehenderit","numquam","iste","fugiat","sit","inventore","beatae","repellendus","magnam","recusandae","quod","explicabo","doloremque","aperiam","consequatur","asperiores","commodi","optio","dolor","labore","temporibus","repellat","veniam","architecto","est","esse","mollitia","nulla","a","similique","eos","alias","dolore","tenetur","deleniti","porro","facere","maxime","corrupti"]};var Lt={common:["далеко-далеко","за","словесными","горами","в стране","гласных","и согласных","живут","рыбные","тексты"],words:["вдали","от всех","они","буквенных","домах","на берегу","семантика","большого","языкового","океана","маленький","ручеек","даль","журчит","по всей","обеспечивает","ее","всеми","необходимыми","правилами","эта","парадигматическая","страна","которой","жаренные","предложения","залетают","прямо","рот","даже","всемогущая","пунктуация","не","имеет","власти","над","рыбными","текстами","ведущими","безорфографичный","образ","жизни","однажды","одна","маленькая","строчка","рыбного","текста","имени","lorem","ipsum","решила","выйти","большой","мир","грамматики","великий","оксмокс","предупреждал","о","злых","запятых","диких","знаках","вопроса","коварных","точках","запятой","но","текст","дал","сбить","себя","толку","он","собрал","семь","своих","заглавных","букв","подпоясал","инициал","за","пояс","пустился","дорогу","взобравшись","первую","вершину","курсивных","гор","бросил","последний","взгляд","назад","силуэт","своего","родного","города","буквоград","заголовок","деревни","алфавит","подзаголовок","своего","переулка","грустный","реторический","вопрос","скатился","его","щеке","продолжил","свой","путь","дороге","встретил","рукопись","она","предупредила","моей","все","переписывается","несколько","раз","единственное","что","меня","осталось","это","приставка","возвращайся","ты","лучше","свою","безопасную","страну","послушавшись","рукописи","наш","продолжил","свой","путь","вскоре","ему","повстречался","коварный","составитель","рекламных","текстов","напоивший","языком","речью","заманивший","свое","агентство","которое","использовало","снова","снова","своих","проектах","если","переписали","то","живет","там","до","сих","пор"]};var jt={common:["mujer","uno","dolor","más","de","poder","mismo","si"],words:["ejercicio","preferencia","perspicacia","laboral","paño","suntuoso","molde","namibia","planeador","mirar","demás","oficinista","excepción","odio","consecuencia","casi","auto","chicharra","velo","elixir","ataque","no","odio","temporal","cuórum","dignísimo","facilismo","letra","nihilista","expedición","alma","alveolar","aparte","león","animal","como","paria","belleza","modo","natividad","justo","ataque","séquito","pillo","sed","ex","y","voluminoso","temporalidad","verdades","racional","asunción","incidente","marejada","placenta","amanecer","fuga","previsor","presentación","lejos","necesariamente","sospechoso","adiposidad","quindío","pócima","voluble","débito","sintió","accesorio","falda","sapiencia","volutas","queso","permacultura","laudo","soluciones","entero","pan","litro","tonelada","culpa","libertario","mosca","dictado","reincidente","nascimiento","dolor","escolar","impedimento","mínima","mayores","repugnante","dulce","obcecado","montaña","enigma","total","deletéreo","décima","cábala","fotografía","dolores","molesto","olvido","paciencia","resiliencia","voluntad","molestias","magnífico","distinción","ovni","marejada","cerro","torre","y","abogada","manantial","corporal","agua","crepúsculo","ataque","desierto","laboriosamente","angustia","afortunado","alma","encefalograma","materialidad","cosas","o","renuncia","error","menos","conejo","abadía","analfabeto","remo","fugacidad","oficio","en","almácigo","vos","pan","represión","números","triste","refugiado","trote","inventor","corchea","repelente","magma","recusado","patrón","explícito","paloma","síndrome","inmune","autoinmune","comodidad","ley","vietnamita","demonio","tasmania","repeler","apéndice","arquitecto","columna","yugo","computador","mula","a","propósito","fantasía","alias","rayo","tenedor","deleznable","ventana","cara","anemia","corrupto"]};const Ft={latin:Nt,ru:Lt,sp:jt};const qt={wordCount:30,skipCommon:false,lang:"latin"};var ot=function(s,l){l=Object.assign({},qt,l);const u=Ft[l.lang]||Ft.latin;const f=!l.skipCommon&&!isRepeating(s);if(!s.repeat&&!isRoot$1(s.parent)){s.parent.value=paragraph(u,l.wordCount,f);s.remove()}else{s.value=paragraph(u,l.wordCount,f);s.name=s.parent.name?resolveImplicitName(s.parent.name):null}return s};function isRoot$1(s){return!s.parent}function rand(s,l){return Math.floor(Math.random()*(l-s)+s)}function sample(s,l){const u=s.length;const f=Math.min(u,l);const h=new Set;while(h.size<f){h.add(s[rand(0,u)])}return Array.from(h)}function choice(s){return s[rand(0,s.length-1)]}function sentence(s,l){if(s.length){s=[capitalize(s[0])].concat(s.slice(1))}return s.join(" ")+(l||choice("?!..."))}function capitalize(s){return s[0].toUpperCase()+s.slice(1)}function insertCommas(s){if(s.length<2){return s}s=s.slice();const l=s.length;const u=/,$/;let f=0;if(l>3&&l<=6){f=rand(0,1)}else if(l>6&&l<=12){f=rand(0,2)}else{f=rand(1,4)}for(let h=0,g;h<f;h++){g=rand(0,l-2);if(!u.test(s[g])){s[g]+=","}}return s}function paragraph(s,l,u){const f=[];let h=0;let g;if(u&&s.common){g=s.common.slice(0,l);h+=g.length;f.push(sentence(insertCommas(g),"."))}while(h<l){g=sample(s.words,Math.min(rand(2,30),l-h));h+=g.length;f.push(sentence(insertCommas(g)))}return f.join(" ")}function isRepeating(s){while(s.parent){if(s.repeat&&s.repeat.value&&s.repeat.value>1){return true}s=s.parent}return false}const $t=/^lorem([a-z]*)(\d*)$/i;function snippetsRegistryFactory(s,l){const u=[Mt[s]||Mt.html];if(Array.isArray(l)){l.forEach((s=>{u.push(typeof s==="string"?Mt[s]:s)}))}else if(typeof l==="object"){u.push(l)}const f=new SnippetsRegistry(u.filter(Boolean));if(s!=="css"){f.get(0).set($t,loremGenerator)}return f}function loremGenerator(s){const l={};const u=s.name.match($t);if(u[1]){l.lang=u[1]}if(u[2]){l.wordCount=+u[2]}return ot(s,l)}const Bt={lang:"en",locale:"en-US",charset:"UTF-8"};const Ut=new Set(["css","sass","scss","less","stylus","sss"]);const Wt={syntax:"html",field:(s,l)=>l||"",text:null,profile:null,variables:{},snippets:{},addons:null,format:null};function expand$2(s,l){l=createOptions(l);return isStylesheet(l.syntax)?expand$1(s,l):expand(s,l)}function parse$5(s,l){l=createOptions(l);return isStylesheet(l.syntax)?parse$4(s,l):parse$3(s,l)}function createSnippetsRegistry(s,l){return l instanceof SnippetsRegistry?l:snippetsRegistryFactory(isStylesheet(s)?"css":s,l)}function createOptions(s){if(typeof s==="string"){s={syntax:s}}s=Object.assign({},Wt,s);s.format=Object.assign({field:s.field},s.format);s.profile=createProfile(s);s.variables=Object.assign({},Bt,s.variables);s.snippets=createSnippetsRegistry(isStylesheet(s.syntax)?"css":s.syntax,s.snippets);return s}function isStylesheet(s){return Ut.has(s)}function createProfile(s){return s.profile instanceof Profile?s.profile:new Profile(s.profile)}s.expand=expand$2;s.parse=parse$5;s.createSnippetsRegistry=createSnippetsRegistry;s.createOptions=createOptions;s.isStylesheet=isStylesheet;s.createProfile=createProfile;Object.defineProperty(s,"__esModule",{value:true})}))},87:function(s){s.exports=u(12087)},104:function(s,l,u){"use strict";u.r(l);var f=u(183);var h=u.n(f);for(var g in f)if(g!=="default")u.d(l,g,function(s){return f[s]}.bind(0,g))},183:function(s,l,u){"use strict";Object.defineProperty(l,"__esModule",{value:true});const f=u(280);const h=u(34);const g=u(234);const v=u(622);const k=u(747);const O=u(762);const M=u(87);const q=u(233);const B=new Map;let Y;let te;const re=new Map;const ne=/^[a-z,A-Z,!,(,[,#,\.]/;const ie=/^-?[a-z,A-Z,!,@,#]/;const se=/[a-z,A-Z\.]/;const oe=["html","pug","slim","haml","xml","xsl","jsx","css","scss","sass","less","stylus"];const ae=[...q.htmlData.tags,"lorem"];const le="bem";const ue="|";const ce="t";const fe="c";const pe=3;const de={w:"webkit",m:"moz",s:"ms",o:"o"};const he={w:"animation, animation-delay, animation-direction, animation-duration, animation-fill-mode, animation-iteration-count, animation-name, animation-play-state, animation-timing-function, appearance, backface-visibility, background-clip, background-composite, background-origin, background-size, border-fit, border-horizontal-spacing, border-image, border-vertical-spacing, box-align, box-direction, box-flex, box-flex-group, box-lines, box-ordinal-group, box-orient, box-pack, box-reflect, box-shadow, color-correction, column-break-after, column-break-before, column-break-inside, column-count, column-gap, column-rule-color, column-rule-style, column-rule-width, column-span, column-width, dashboard-region, font-smoothing, highlight, hyphenate-character, hyphenate-limit-after, hyphenate-limit-before, hyphens, line-box-contain, line-break, line-clamp, locale, margin-before-collapse, margin-after-collapse, marquee-direction, marquee-increment, marquee-repetition, marquee-style, mask-attachment, mask-box-image, mask-box-image-outset, mask-box-image-repeat, mask-box-image-slice, mask-box-image-source, mask-box-image-width, mask-clip, mask-composite, mask-image, mask-origin, mask-position, mask-repeat, mask-size, nbsp-mode, perspective, perspective-origin, rtl-ordering, text-combine, text-decorations-in-effect, text-emphasis-color, text-emphasis-position, text-emphasis-style, text-fill-color, text-orientation, text-security, text-stroke-color, text-stroke-width, transform, transition, transform-origin, transform-style, transition-delay, transition-duration, transition-property, transition-timing-function, user-drag, user-modify, user-select, writing-mode, svg-shadow, box-sizing, border-radius",m:"animation-delay, animation-direction, animation-duration, animation-fill-mode, animation-iteration-count, animation-name, animation-play-state, animation-timing-function, appearance, backface-visibility, background-inline-policy, binding, border-bottom-colors, border-image, border-left-colors, border-right-colors, border-top-colors, box-align, box-direction, box-flex, box-ordinal-group, box-orient, box-pack, box-shadow, box-sizing, column-count, column-gap, column-rule-color, column-rule-style, column-rule-width, column-width, float-edge, font-feature-settings, font-language-override, force-broken-image-icon, hyphens, image-region, orient, outline-radius-bottomleft, outline-radius-bottomright, outline-radius-topleft, outline-radius-topright, perspective, perspective-origin, stack-sizing, tab-size, text-blink, text-decoration-color, text-decoration-line, text-decoration-style, text-size-adjust, transform, transform-origin, transform-style, transition, transition-delay, transition-duration, transition-property, transition-timing-function, user-focus, user-input, user-modify, user-select, window-shadow, background-clip, border-radius",s:"accelerator, backface-visibility, background-position-x, background-position-y, behavior, block-progression, box-align, box-direction, box-flex, box-line-progression, box-lines, box-ordinal-group, box-orient, box-pack, content-zoom-boundary, content-zoom-boundary-max, content-zoom-boundary-min, content-zoom-chaining, content-zoom-snap, content-zoom-snap-points, content-zoom-snap-type, content-zooming, filter, flow-from, flow-into, font-feature-settings, grid-column, grid-column-align, grid-column-span, grid-columns, grid-layer, grid-row, grid-row-align, grid-row-span, grid-rows, high-contrast-adjust, hyphenate-limit-chars, hyphenate-limit-lines, hyphenate-limit-zone, hyphens, ime-mode, interpolation-mode, layout-flow, layout-grid, layout-grid-char, layout-grid-line, layout-grid-mode, layout-grid-type, line-break, overflow-style, perspective, perspective-origin, perspective-origin-x, perspective-origin-y, scroll-boundary, scroll-boundary-bottom, scroll-boundary-left, scroll-boundary-right, scroll-boundary-top, scroll-chaining, scroll-rails, scroll-snap-points-x, scroll-snap-points-y, scroll-snap-type, scroll-snap-x, scroll-snap-y, scrollbar-arrow-color, scrollbar-base-color, scrollbar-darkshadow-color, scrollbar-face-color, scrollbar-highlight-color, scrollbar-shadow-color, scrollbar-track-color, text-align-last, text-autospace, text-justify, text-kashida-space, text-overflow, text-size-adjust, text-underline-position, touch-action, transform, transform-origin, transform-origin-x, transform-origin-y, transform-origin-z, transform-style, transition, transition-delay, transition-duration, transition-property, transition-timing-function, user-select, word-break, wrap-flow, wrap-margin, wrap-through, writing-mode",o:"dashboard-region, animation, animation-delay, animation-direction, animation-duration, animation-fill-mode, animation-iteration-count, animation-name, animation-play-state, animation-timing-function, border-image, link, link-source, object-fit, object-position, tab-size, table-baseline, transform, transform-origin, transition, transition-delay, transition-duration, transition-property, transition-timing-function, accesskey, input-format, input-required, marquee-dir, marquee-loop, marquee-speed, marquee-style"};function doComplete(s,l,u,g){if(g.showExpandedAbbreviation==="never"||!getEmmetMode(u,g.excludeLanguages)){return}if(!isStyleSheet(u)){if(!B.has(u)||!te||te.length===0){let s=ge[u]?ge[u]:h.createSnippetsRegistry(u);if(!B.has(u)){B.set(u,s.all({type:"string"}).map((s=>s.key)))}te=s.all({type:"regexp"}).map((s=>s.key))}Y=B.get(u)}let v=extractAbbreviation(s,l,{syntax:u,lookAhead:!isStyleSheet(u)});if(!v){return}let{abbreviationRange:k,abbreviation:O,filter:M}=v;let ne=getCurrentLine(s,l).substr(0,l.character);let ie=getCurrentWord(ne);if(ie===O&&ne.endsWith(`<${O}`)&&(u==="html"||u==="xml"||u==="xsl"||u==="jsx")){return}let se=getExpandOptions(u,g,M);let oe=se["preferences"];delete se["preferences"];let le;let ue;let ce=[];const C=(s,l)=>{if(!isAbbreviationValid(s,O)){return}try{le=h.expand(l,se)}catch(s){}if(!le||isExpandedTextNoise(s,l,le)){return}ue=f.CompletionItem.create(l);ue.textEdit=f.TextEdit.replace(k,escapeNonTabStopDollar(addFinalTabStop(le)));ue.documentation=replaceTabStopsWithCursors(le);ue.insertTextFormat=f.InsertTextFormat.Snippet;ue.detail="Emmet Abbreviation";ue.label=O;ue.label+=M?"|"+M.replace(",","|"):"";ce=[ue]};if(isStyleSheet(u)){let{prefixOptions:s,abbreviationWithoutPrefix:l}=splitVendorPrefix(O);C(u,l);if(l.length>4&&q.cssData.properties.find((s=>s.startsWith(l)))){return f.CompletionList.create([],true)}if(ue){let h=applyVendorPrefixes(le,s,oe);ue.textEdit=f.TextEdit.replace(k,escapeNonTabStopDollar(addFinalTabStop(h)));ue.documentation=replaceTabStopsWithCursors(h);ue.label=removeTabStops(le);ue.filterText=O;const g=re.has(u)?re.get(u):re.get("css");ce=makeSnippetSuggestion(g,O,O,k,se,"Emmet Custom Snippet",false);if(!ce.find((s=>s.textEdit.newText===ue.textEdit.newText))){const s=new RegExp(".*"+l.split("").map((s=>s==="$"||s==="+"?"\\"+s:s)).join(".*")+".*","i");if(/\d/.test(O)||s.test(ue.label)){ce.push(ue)}}}if(!ce.length&&(O==="-"||/^-[wmso]{1,4}-?$/.test(O))){return f.CompletionList.create([],true)}}else{C(u,O);let s=O;let l=O.match(/(>|\+)([\w:-]+)$/);if(l&&l.length===3){s=l[2]}let f=makeSnippetSuggestion(ae,s,O,k,se,"Emmet Abbreviation");ce=ce.concat(f);if(g.showAbbreviationSuggestions===true){let l=makeSnippetSuggestion(Y.filter((s=>!ae.includes(s))),s,O,k,se,"Emmet Abbreviation");if(ue&&l.length>0&&s!==O){ue.sortText="0"+ue.label;l.forEach((s=>{s.filterText=O;s.sortText="9"+O}))}ce=ce.concat(l)}}if(g.showSuggestionsAsSnippets===true){ce.forEach((s=>s.kind=f.CompletionItemKind.Snippet))}return ce.length?f.CompletionList.create(ce,true):undefined}l.doComplete=doComplete;function makeSnippetSuggestion(s,l,u,g,v,k,O=true){if(!l||!s){return[]}let M=[];s.forEach((s=>{if(!s.startsWith(l.toLowerCase())||O&&s===l.toLowerCase()){return}let q=u+s.substr(l.length);let B;try{B=h.expand(q,v)}catch(s){}if(!B){return}let Y=f.CompletionItem.create(l+s.substr(l.length));Y.documentation=replaceTabStopsWithCursors(B);Y.detail=k;Y.textEdit=f.TextEdit.replace(g,escapeNonTabStopDollar(addFinalTabStop(B)));Y.insertTextFormat=f.InsertTextFormat.Snippet;M.push(Y)}));return M}function getCurrentWord(s){if(s){let l=s.match(/[\w,:,-,\.]*$/);if(l){return l[0]}}}function replaceTabStopsWithCursors(s){return s.replace(/([^\\])\$\{\d+\}/g,"$1|").replace(/\$\{\d+:([^\}]+)\}/g,"$1")}function removeTabStops(s){return s.replace(/([^\\])\$\{\d+\}/g,"$1").replace(/\$\{\d+:([^\}]+)\}/g,"$1")}function escapeNonTabStopDollar(s){return s?s.replace(/([^\\])(\$)([^\{])/g,"$1\\$2$3"):s}function addFinalTabStop(s){if(!s||!s.trim()){return s}let l=-1;let u=[];let f=false;let h=false;let g=0;let v=s.length;try{while(g<v&&!f){if(s[g++]!="$"||s[g++]!="{"){continue}let k=-1;let O=-1;while(g<v&&/\d/.test(s[g])){k=k<0?g:k;O=g+1;g++}if(k===-1||O===-1||g>=v||s[g]!="}"&&s[g]!=":"){continue}const M=s.substring(k,O);f=M==="0";if(f){break}let q=false;if(s[g++]==":"){while(g<v){if(s[g]=="}"){q=true;break}g++}}if(Number(M)>Number(l)){l=M;u=[{numberStart:k,numberEnd:O}];h=!q}else if(M==l){u.push({numberStart:k,numberEnd:O})}}}catch(s){}if(h&&!f){for(let l=0;l<u.length;l++){let f=u[l].numberStart;let h=u[l].numberEnd;s=s.substr(0,f)+"0"+s.substr(h)}}return s}function getCurrentLine(s,l){let u=s.offsetAt(l);let f=s.getText();let h=0;let g=f.length;for(let s=u-1;s>=0;s--){if(f[s]==="\n"){h=s+1;break}}for(let s=u;s<f.length;s++){if(f[s]==="\n"){g=s;break}}return f.substring(h,g)}let ge={};let ve={};let ye={};l.emmetSnippetField=(s,l)=>`\${${s}${l?":"+l:""}}`;function isStyleSheet(s){let l=["css","scss","sass","less","stylus"];return l.indexOf(s)>-1}l.isStyleSheet=isStyleSheet;function getFilters(s,l){let u;for(let f=0;f<pe;f++){if(s.endsWith(`${ue}${le}`,l)){l-=le.length+1;u=u?le+","+u:le}else if(s.endsWith(`${ue}${fe}`,l)){l-=fe.length+1;u=u?fe+","+u:fe}else if(s.endsWith(`${ue}${ce}`,l)){l-=ce.length+1;u=u?ce+","+u:ce}else{break}}return{pos:l,filter:u}}function extractAbbreviation(s,l,u){const h=getCurrentLine(s,l);const v=h.substr(0,l.character);const{pos:k,filter:O}=getFilters(v,l.character);const M=O?O.length+1:0;try{let s=u;if(typeof s!=="boolean"){s=s||{};s={syntax:isStyleSheet(s.syntax)||s.syntax==="stylesheet"?"stylesheet":"markup",lookAhead:s.lookAhead}}const v=g(h,k,s);const q=f.Range.create(l.line,v.location,l.line,v.location+v.abbreviation.length+M);return{abbreviationRange:q,abbreviation:v.abbreviation,filter:O}}catch(s){}}l.extractAbbreviation=extractAbbreviation;function extractAbbreviationFromText(s,l){if(!s){return}const{pos:u,filter:f}=getFilters(s,s.length);try{let h=isStyleSheet(l)||l==="stylesheet"?{syntax:"stylesheet",lookAhead:false}:true;const v=g(s,u,h);return{abbreviation:v.abbreviation,filter:f}}catch(s){}}l.extractAbbreviationFromText=extractAbbreviationFromText;function isAbbreviationValid(s,l){if(!l){return false}if(isStyleSheet(s)){if(l.endsWith(":")){return false}if(l.indexOf("#")>-1){return _e.test(l)||we.test(l)}return ie.test(l)}if(l.startsWith("!")){return!/[^!]/.test(l)}const u=l.match(/\*(\d+)$/);if(u){return parseInt(u[1],10)<=100}if((/\(/.test(l)||/\)/.test(l))&&!/\{[^\}\{]*[\(\)]+[^\}\{]*\}(?:[>\+\*\^]|$)/.test(l)&&!/\(.*\)[>\+\*\^]/.test(l)&&!/[>\+\*\^]\(.*\)/.test(l)){return false}return ne.test(l)&&se.test(l)}l.isAbbreviationValid=isAbbreviationValid;function isExpandedTextNoise(s,l,u){if(isStyleSheet(s)){let f=s==="sass"||s==="stylus"?"":";";return u===`${l}: \${1}${f}`||u.replace(/\s/g,"")===l.replace(/\s/g,"")+f}if(ae.indexOf(l.toLowerCase())>-1||Y.indexOf(l)>-1){return false}if(/[-,:]/.test(l)&&!/--|::/.test(l)&&!l.endsWith(":")){return false}if(l==="."){return false}const f=l.match(/^([a-z,A-Z,\d]*)\.$/);if(f){if(f[1]&&q.htmlData.tags.includes(f[1])){return false}return true}return u.toLowerCase()===`<${l.toLowerCase()}>\${1}</${l.toLowerCase()}>`}function getExpandOptions(s,u,f){u=u||{};u["preferences"]=u["preferences"]||{};let h=isStyleSheet(s)?"css":"html";if(!ge[s]&&ge[h]){ge[s]=ge[h]}let g=getProfile(s,u["syntaxProfiles"]);let v=g&&g["filters"]?g["filters"].split(","):[];v=v.map((s=>s.trim()));if(u["preferences"]["format.noIndentTags"]){if(Array.isArray(u["preferences"]["format.noIndentTags"])){g["formatSkip"]=u["preferences"]["format.noIndentTags"]}else if(typeof u["preferences"]["format.noIndentTags"]==="string"){g["formatSkip"]=u["preferences"]["format.noIndentTags"].split(",")}}if(u["preferences"]["format.forceIndentationForTags"]){if(Array.isArray(u["preferences"]["format.forceIndentationForTags"])){g["formatForce"]=u["preferences"]["format.forceIndentationForTags"]}else if(typeof u["preferences"]["format.forceIndentationForTags"]==="string"){g["formatForce"]=u["preferences"]["format.forceIndentationForTags"].split(",")}}if(u["preferences"]["profile.allowCompactBoolean"]&&typeof u["preferences"]["profile.allowCompactBoolean"]==="boolean"){g["compactBooleanAttributes"]=u["preferences"]["profile.allowCompactBoolean"]}let k={};if(f&&f.split(",").find((s=>s.trim()==="bem"))||v.indexOf("bem")>-1){k["bem"]={element:"__"};if(u["preferences"]["bem.elementSeparator"]){k["bem"]["element"]=u["preferences"]["bem.elementSeparator"]}if(u["preferences"]["bem.modifierSeparator"]){k["bem"]["modifier"]=u["preferences"]["bem.modifierSeparator"]}}if(s==="jsx"){k["jsx"]=true}let O=getFormatters(s,u["preferences"]);if(f&&f.split(",").find((s=>s.trim()==="c"))||v.indexOf("c")>-1){if(!O["comment"]){O["comment"]={enabled:true}}else{O["comment"]["enabled"]=true}}let M=u["preferences"];for(const s in de){let l=M["css."+de[s]+"Properties"];if(l==null){M["css."+de[s]+"Properties"]=he[s]}}return{field:l.emmetSnippetField,syntax:s,profile:g,addons:k,variables:getVariables(u["variables"]),snippets:ge[s],format:O,preferences:M}}l.getExpandOptions=getExpandOptions;function splitVendorPrefix(s){s=s||"";if(s[0]!="-"){return{prefixOptions:"",abbreviationWithoutPrefix:s}}else{s=s.substr(1);let l="-";if(/^[wmso]*-./.test(s)){let u=s.indexOf("-");if(u>-1){l+=s.substr(0,u+1);s=s.substr(u+1)}}return{prefixOptions:l,abbreviationWithoutPrefix:s}}}function applyVendorPrefixes(s,l,u){u=u||{};s=s||"";l=l||"";if(l[0]!=="-"){return s}if(l=="-"){let f="-";let h=s.substr(0,s.indexOf(":"));if(!h){return s}for(const s in de){let l=u["css."+de[s]+"Properties"];if(l&&l.split(",").find((s=>s.trim()===h)))f+=s}l=f=="-"?"-wmso":f;l+="-"}l=l.substr(1);let f="";for(let u=0;u<l.length-1;u++){f+="-"+de[l[u]]+"-"+s+"\n"}return f+s}function parseAbbreviation(s,l){return h.parse(s,l)}l.parseAbbreviation=parseAbbreviation;function expandAbbreviation(s,l){let u;let f=l["preferences"];delete l["preferences"];if(isStyleSheet(l["syntax"])&&typeof s==="string"){let{prefixOptions:g,abbreviationWithoutPrefix:v}=splitVendorPrefix(s);u=h.expand(v,l);u=applyVendorPrefixes(u,g,f)}else{u=h.expand(s,l)}return escapeNonTabStopDollar(addFinalTabStop(u))}l.expandAbbreviation=expandAbbreviation;function getProfile(s,l){if(!l){l={}}let u=Object.assign({},ye,l);let f=u[s];if(!f||typeof f==="string"){if(f==="xhtml"){return{selfClosingStyle:"xhtml"}}return{}}let h={};for(let s in f){switch(s){case"tag_case":h["tagCase"]=f[s]==="lower"||f[s]==="upper"?f[s]:"";break;case"attr_case":h["attributeCase"]=f[s]==="lower"||f[s]==="upper"?f[s]:"";break;case"attr_quotes":h["attributeQuotes"]=f[s];break;case"tag_nl":h["format"]=f[s]===true||f[s]===false?f[s]:true;break;case"inline_break":h["inlineBreak"]=f[s];break;case"self_closing_tag":if(f[s]===true){h["selfClosingStyle"]="xml";break}if(f[s]===false){h["selfClosingStyle"]="html";break}h["selfClosingStyle"]=f[s];break;case"compact_bool":h["compactBooleanAttributes"]=f[s];break;default:h[s]=f[s];break}}return h}function getVariables(s){if(!s){return ve}return Object.assign({},ve,s)}function getFormatters(s,l){if(!l){return{}}if(!isStyleSheet(s)){let s={};for(let u in l){switch(u){case"filter.commentAfter":s["after"]=l[u];break;case"filter.commentBefore":s["before"]=l[u];break;case"filter.commentTrigger":s["trigger"]=l[u];break;default:break}}return{comment:s}}let u=typeof l["css.fuzzySearchMinScore"]==="number"?l["css.fuzzySearchMinScore"]:.3;if(u>1){u=1}else if(u<0){u=0}let f={fuzzySearchMinScore:u};for(let u in l){switch(u){case"css.floatUnit":f["floatUnit"]=l[u];break;case"css.intUnit":f["intUnit"]=l[u];break;case"css.unitAliases":let h={};l[u].split(",").forEach((s=>{if(!s||!s.trim()||s.indexOf(":")===-1){return}let l=s.substr(0,s.indexOf(":"));let u=s.substr(l.length+1);if(!l.trim()||!u){return}h[l.trim()]=u}));f["unitAliases"]=h;break;case`${s}.valueSeparator`:f["between"]=l[u];break;case`${s}.propertyEnd`:f["after"]=l[u];break;default:break}}return{stylesheet:f}}function updateExtensionsPath(s,l){if(!s||!s.trim()){resetSettingsFromFile();return Promise.resolve()}s=s.trim();l=l?l.trim():"";if(s[0]==="~"){s=v.join(M.homedir(),s.substr(1))}else if(!v.isAbsolute(s)&&l){s=v.join(l,s)}if(!v.isAbsolute(s)){resetSettingsFromFile();return Promise.reject("The path provided in emmet.extensionsPath setting should be absoulte path")}if(!dirExists(s)){resetSettingsFromFile();return Promise.reject(`The directory ${s} doesnt exist. Update emmet.extensionsPath setting`)}let u=s;let f=v.join(u,"snippets.json");let g=v.join(u,"syntaxProfiles.json");let q=new Promise(((s,l)=>{k.readFile(f,((u,g)=>{if(u){return l(`Error while fetching the file ${f}`)}try{let s=[];let u=O.parse(g.toString(),s);if(s.length>0){return l(`Found error ${O.ScanError[s[0].error]} while parsing the file ${f} at offset ${s[0].offset}`)}ve=u["variables"];ge={};B.clear();Object.keys(u).forEach((s=>{if(!u[s]["snippets"]){return}let l=isStyleSheet(s)?"css":"html";let f=u[s]["snippets"];if(u[l]&&u[l]["snippets"]&&l!==s){f=Object.assign({},u[l]["snippets"],u[s]["snippets"])}if(!isStyleSheet(s)){for(let s in f){if(f.hasOwnProperty(s)&&f[s].startsWith("<")&&f[s].endsWith(">")){f[s]=`{${f[s]}}`}}}else{re.set(s,Object.keys(f))}ge[s]=h.createSnippetsRegistry(s,f);let g=ge[s].all({type:"string"}).map((s=>s.key));B.set(s,g)}))}catch(s){return l(`Error while parsing the file ${f}`)}return s()}))}));let Y=new Promise(((s,l)=>{k.readFile(g,((l,u)=>{try{if(!l){ye=JSON.parse(u.toString())}}catch(s){}return s()}))}));return Promise.all([q,ve]).then((()=>Promise.resolve()))}l.updateExtensionsPath=updateExtensionsPath;function dirExists(s){try{return k.statSync(s).isDirectory()}catch(s){return false}}function resetSettingsFromFile(){ge={};B.clear();re.clear();ye={};ve={}}function getEmmetMode(s,l=[]){if(!s||l.indexOf(s)>-1){return}if(/\b(typescriptreact|javascriptreact|jsx-tags)\b/.test(s)){return"jsx"}if(s==="sass-indented"){return"sass"}if(s==="jade"){return"pug"}if(oe.indexOf(s)>-1){return s}}l.getEmmetMode=getEmmetMode;const we=/^[a-zA-Z]+:?#[\d.a-fA-F]{0,6}$/;const _e=/^#[\d,a-f,A-F]{1,6}$/;const Se=/^[a-z,A-Z]+$/;function getEmmetCompletionParticipants(s,l,u,f,h){return{getId:()=>"emmet",onCssProperty:g=>{if(g&&g.propertyName){const g=doComplete(s,l,u,f);if(h&&g){h.items=g.items;h.isIncomplete=true}}},onCssPropertyValue:g=>{if(g&&g.propertyValue){const v=extractAbbreviation(s,l,{syntax:"css",lookAhead:false});if(!v){return}const k=v.abbreviation===`${g.propertyName}:${g.propertyValue}`&&Se.test(g.propertyValue);if(k||_e.test(v.abbreviation)||v.abbreviation==="!"){const g=doComplete(s,l,u,f);if(h&&g){h.items=g.items;h.isIncomplete=true}}}},onHtmlContent:()=>{const g=doComplete(s,l,u,f);if(h&&g){h.items=g.items;h.isIncomplete=true}}}}l.getEmmetCompletionParticipants=getEmmetCompletionParticipants},233:function(s,l){"use strict";Object.defineProperty(l,"__esModule",{value:true});l.cssData={properties:["additive-symbols","align-content","align-items","justify-items","justify-self","justify-items","align-self","all","alt","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","behavior","block-size","border","border-block-end","border-block-start","border-block-end-color","border-block-start-color","border-block-end-style","border-block-start-style","border-block-end-width","border-block-start-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline-end","border-inline-start","border-inline-end-color","border-inline-start-color","border-inline-end-style","border-inline-start-style","border-inline-end-width","border-inline-start-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation-filters","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","columns","column-span","column-width","contain","content","counter-increment","counter-reset","cursor","direction","display","empty-cells","enable-background","fallback","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","font","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","glyph-orientation-horizontal","glyph-orientation-vertical","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","height","hyphens","image-orientation","image-rendering","ime-mode","inline-size","isolation","justify-content","kerning","left","letter-spacing","lighting-color","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block-end","margin-block-start","margin-bottom","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marker","marker-end","marker-mid","marker-start","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","motion","motion-offset","motion-path","motion-rotation","-moz-animation","-moz-animation-delay","-moz-animation-direction","-moz-animation-duration","-moz-animation-iteration-count","-moz-animation-name","-moz-animation-play-state","-moz-animation-timing-function","-moz-appearance","-moz-backface-visibility","-moz-background-clip","-moz-background-inline-policy","-moz-background-origin","-moz-border-bottom-colors","-moz-border-image","-moz-border-left-colors","-moz-border-right-colors","-moz-border-top-colors","-moz-box-align","-moz-box-direction","-moz-box-flex","-moz-box-flexgroup","-moz-box-ordinal-group","-moz-box-orient","-moz-box-pack","-moz-box-sizing","-moz-column-count","-moz-column-gap","-moz-column-rule","-moz-column-rule-color","-moz-column-rule-style","-moz-column-rule-width","-moz-columns","-moz-column-width","-moz-font-feature-settings","-moz-hyphens","-moz-perspective","-moz-perspective-origin","-moz-text-align-last","-moz-text-decoration-color","-moz-text-decoration-line","-moz-text-decoration-style","-moz-text-size-adjust","-moz-transform","-moz-transform-origin","-moz-transition","-moz-transition-delay","-moz-transition-duration","-moz-transition-property","-moz-transition-timing-function","-moz-user-focus","-moz-user-select","-ms-accelerator","-ms-behavior","-ms-block-progression","-ms-content-zoom-chaining","-ms-content-zooming","-ms-content-zoom-limit","-ms-content-zoom-limit-max","-ms-content-zoom-limit-min","-ms-content-zoom-snap","-ms-content-zoom-snap-points","-ms-content-zoom-snap-type","-ms-filter","-ms-flex","-ms-flex-align","-ms-flex-direction","-ms-flex-flow","-ms-flex-item-align","-ms-flex-line-pack","-ms-flex-order","-ms-flex-pack","-ms-flex-wrap","-ms-flow-from","-ms-flow-into","-ms-grid-column","-ms-grid-column-align","-ms-grid-columns","-ms-grid-column-span","-ms-grid-layer","-ms-grid-row","-ms-grid-row-align","-ms-grid-rows","-ms-grid-row-span","-ms-high-contrast-adjust","-ms-hyphenate-limit-chars","-ms-hyphenate-limit-lines","-ms-hyphenate-limit-zone","-ms-hyphens","-ms-ime-mode","-ms-interpolation-mode","-ms-layout-grid","-ms-layout-grid-char","-ms-layout-grid-line","-ms-layout-grid-mode","-ms-layout-grid-type","-ms-line-break","-ms-overflow-style","-ms-perspective","-ms-perspective-origin","-ms-perspective-origin-x","-ms-perspective-origin-y","-ms-progress-appearance","-ms-scrollbar-3dlight-color","-ms-scrollbar-arrow-color","-ms-scrollbar-base-color","-ms-scrollbar-darkshadow-color","-ms-scrollbar-face-color","-ms-scrollbar-highlight-color","-ms-scrollbar-shadow-color","-ms-scrollbar-track-color","-ms-scroll-chaining","-ms-scroll-limit","-ms-scroll-limit-x-max","-ms-scroll-limit-x-min","-ms-scroll-limit-y-max","-ms-scroll-limit-y-min","-ms-scroll-rails","-ms-scroll-snap-points-x","-ms-scroll-snap-points-y","-ms-scroll-snap-type","-ms-scroll-snap-x","-ms-scroll-snap-y","-ms-scroll-translation","-ms-text-align-last","-ms-text-autospace","-ms-text-combine-horizontal","-ms-text-justify","-ms-text-kashida-space","-ms-text-overflow","-ms-text-size-adjust","-ms-text-underline-position","-ms-touch-action","-ms-touch-select","-ms-transform","-ms-transform-origin","-ms-transform-origin-x","-ms-transform-origin-y","-ms-transform-origin-z","-ms-user-select","-ms-word-break","-ms-word-wrap","-ms-wrap-flow","-ms-wrap-margin","-ms-wrap-through","-ms-writing-mode","-ms-zoom","-ms-zoom-animation","nav-down","nav-index","nav-left","nav-right","nav-up","negative","-o-animation","-o-animation-delay","-o-animation-direction","-o-animation-duration","-o-animation-fill-mode","-o-animation-iteration-count","-o-animation-name","-o-animation-play-state","-o-animation-timing-function","object-fit","object-position","-o-border-image","-o-object-fit","-o-object-position","opacity","order","orphans","-o-table-baseline","-o-tab-size","-o-text-overflow","-o-transform","-o-transform-origin","-o-transition","-o-transition-delay","-o-transition-duration","-o-transition-property","-o-transition-timing-function","offset-block-end","offset-block-start","offset-inline-end","offset-inline-start","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","pad","padding","padding-bottom","padding-block-end","padding-block-start","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","paint-order","perspective","perspective-origin","pointer-events","position","prefix","quotes","range","resize","right","ruby-align","ruby-overhang","ruby-position","ruby-span","scrollbar-3dlight-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-darkshadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","scroll-behavior","scroll-snap-coordinate","scroll-snap-destination","scroll-snap-points-x","scroll-snap-points-y","scroll-snap-type","shape-image-threshold","shape-margin","shape-outside","shape-rendering","size","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","suffix","system","symbols","table-layout","tab-size","text-align","text-align-last","text-anchor","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","unicode-range","user-select","vertical-align","visibility","-webkit-animation","-webkit-animation-delay","-webkit-animation-direction","-webkit-animation-duration","-webkit-animation-fill-mode","-webkit-animation-iteration-count","-webkit-animation-name","-webkit-animation-play-state","-webkit-animation-timing-function","-webkit-appearance","-webkit-backdrop-filter","-webkit-backface-visibility","-webkit-background-clip","-webkit-background-composite","-webkit-background-origin","-webkit-border-image","-webkit-box-align","-webkit-box-direction","-webkit-box-flex","-webkit-box-flex-group","-webkit-box-ordinal-group","-webkit-box-orient","-webkit-box-pack","-webkit-box-reflect","-webkit-box-sizing","-webkit-break-after","-webkit-break-before","-webkit-break-inside","-webkit-column-break-after","-webkit-column-break-before","-webkit-column-break-inside","-webkit-column-count","-webkit-column-gap","-webkit-column-rule","-webkit-column-rule-color","-webkit-column-rule-style","-webkit-column-rule-width","-webkit-columns","-webkit-column-span","-webkit-column-width","-webkit-filter","-webkit-flow-from","-webkit-flow-into","-webkit-font-feature-settings","-webkit-hyphens","-webkit-line-break","-webkit-margin-bottom-collapse","-webkit-margin-collapse","-webkit-margin-start","-webkit-margin-top-collapse","-webkit-mask-clip","-webkit-mask-image","-webkit-mask-origin","-webkit-mask-repeat","-webkit-mask-size","-webkit-nbsp-mode","-webkit-overflow-scrolling","-webkit-padding-start","-webkit-perspective","-webkit-perspective-origin","-webkit-region-fragment","-webkit-tap-highlight-color","-webkit-text-fill-color","-webkit-text-size-adjust","-webkit-text-stroke","-webkit-text-stroke-color","-webkit-text-stroke-width","-webkit-touch-callout","-webkit-transform","-webkit-transform-origin","-webkit-transform-origin-x","-webkit-transform-origin-y","-webkit-transform-origin-z","-webkit-transform-style","-webkit-transition","-webkit-transition-delay","-webkit-transition-duration","-webkit-transition-property","-webkit-transition-timing-function","-webkit-user-drag","-webkit-user-modify","-webkit-user-select","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","zoom"]};l.htmlData={tags:["body","head","html","address","blockquote","dd","div","section","article","aside","header","footer","nav","menu","dl","dt","fieldset","form","frame","frameset","h1","h2","h3","h4","h5","h6","iframe","noframes","object","ol","p","ul","applet","center","dir","hr","pre","a","abbr","acronym","area","b","base","basefont","bdo","big","br","button","caption","cite","code","col","colgroup","del","dfn","em","font","head","html","i","img","input","ins","isindex","kbd","label","legend","li","link","map","meta","noscript","optgroup","option","param","q","s","samp","script","select","small","span","strike","strong","style","sub","sup","table","tbody","td","textarea","tfoot","th","thead","title","tr","tt","u","var","canvas","main","figure","plaintext"]}},234:function(s){"use strict";class StreamReader{constructor(s){this.string=s;this.pos=this.string.length}sol(){return this.pos===0}peek(s){return this.string.charCodeAt(this.pos-1+(s||0))}prev(){if(!this.sol()){return this.string.charCodeAt(--this.pos)}}eat(s){const l=typeof s==="function"?s(this.peek()):s===this.peek();if(l){this.pos--}return l}eatWhile(s){const l=this.pos;while(this.eat(s)){}return this.pos<l}}const l=39;const u=34;const f=92;function isQuote(s){return s===l||s===u}function eatQuoted(s){const l=s.pos;const u=s.prev();if(isQuote(u)){while(!s.sol()){if(s.prev()===u&&s.peek()!==f){return true}}}s.pos=l;return false}const h=9;const g=32;const v=45;const k=47;const O=58;const M=61;const q=60;const B=62;var d=function(s){const l=s.pos;if(!s.eat(B)){return false}let u=false;s.eat(k);while(!s.sol()){s.eatWhile(isWhiteSpace);if(eatIdent(s)){if(s.eat(k)){u=s.eat(q);break}else if(s.eat(q)){u=true;break}else if(s.eat(isWhiteSpace)){continue}else if(s.eat(M)){if(eatIdent(s)){continue}break}else if(eatAttributeWithUnquotedValue(s)){u=true;break}break}if(eatAttribute(s)){continue}break}s.pos=l;return u};function eatAttribute(s){return eatAttributeWithQuotedValue(s)||eatAttributeWithUnquotedValue(s)}function eatAttributeWithQuotedValue(s){const l=s.pos;if(eatQuoted(s)&&s.eat(M)&&eatIdent(s)){return true}s.pos=l;return false}function eatAttributeWithUnquotedValue(s){const l=s.pos;if(s.eatWhile(isUnquotedValue)&&s.eat(M)&&eatIdent(s)){return true}s.pos=l;return false}function eatIdent(s){return s.eatWhile(isIdent)}function isIdent(s){return s===O||s===v||isAlpha(s)||isNumber(s)}function isAlpha(s){s&=~32;return s>=65&&s<=90}function isNumber(s){return s>47&&s<58}function isWhiteSpace(s){return s===g||s===h}function isUnquotedValue(s){return s&&s!==M&&!isWhiteSpace(s)&&!isQuote(s)}const p=s=>s.charCodeAt(0);const Y=p("[");const te=p("]");const re=p("(");const ne=p(")");const ie=p("{");const se=p("}");const oe=new Set("#.*:$-_!@%^+>/".split("").map(p));const ae=(new Map).set(Y,te).set(re,ne).set(ie,se);const le={syntax:"markup",lookAhead:null};function extractAbbreviation(s,l,u){l=Math.min(s.length,Math.max(0,l==null?s.length:l));if(typeof u==="boolean"){u=Object.assign(le,{lookAhead:u})}else{u=Object.assign(le,u)}if(u.lookAhead==null||u.lookAhead===true){l=offsetPastAutoClosed(s,l,u)}let f;const h=new StreamReader(s);h.pos=l;const g=[];while(!h.sol()){f=h.peek();if(isCloseBrace(f,u.syntax)){g.push(f)}else if(isOpenBrace(f,u.syntax)){if(g.pop()!==ae.get(f)){break}}else if(has(g,te)||has(g,se)){h.pos--;continue}else if(d(h)||!isAbbreviation(f)){break}h.pos--}if(!g.length&&h.pos!==l){const u=s.slice(h.pos,l).replace(/^[*+>^]+/,"");return{abbreviation:u,location:l-u.length}}}function offsetPastAutoClosed(s,l,u){if(isQuote(s.charCodeAt(l))){l++}while(isCloseBrace(s.charCodeAt(l),u.syntax)){l++}return l}function has(s,l){return s.indexOf(l)!==-1}function isAbbreviation(s){return s>64&&s<91||s>96&&s<123||s>47&&s<58||oe.has(s)}function isOpenBrace(s,l){return s===re||l==="markup"&&(s===Y||s===ie)}function isCloseBrace(s,l){return s===ne||l==="markup"&&(s===te||s===se)}s.exports=extractAbbreviation},280:function(s,l){(function(u){if(true&&typeof s.exports==="object"){var f=u(require,l);if(f!==undefined)s.exports=f}else if(typeof define==="function"&&define.amd){define(["require","exports"],u)}})((function(s,l){"use strict";Object.defineProperty(l,"__esModule",{value:true});var u;(function(s){function create(s,l){return{line:s,character:l}}s.create=create;function is(s){var l=s;return Qe.objectLiteral(l)&&Qe.number(l.line)&&Qe.number(l.character)}s.is=is})(u=l.Position||(l.Position={}));var f;(function(s){function create(s,l,f,h){if(Qe.number(s)&&Qe.number(l)&&Qe.number(f)&&Qe.number(h)){return{start:u.create(s,l),end:u.create(f,h)}}else if(u.is(s)&&u.is(l)){return{start:s,end:l}}else{throw new Error("Range#create called with invalid arguments["+s+", "+l+", "+f+", "+h+"]")}}s.create=create;function is(s){var l=s;return Qe.objectLiteral(l)&&u.is(l.start)&&u.is(l.end)}s.is=is})(f=l.Range||(l.Range={}));var h;(function(s){function create(s,l){return{uri:s,range:l}}s.create=create;function is(s){var l=s;return Qe.defined(l)&&f.is(l.range)&&(Qe.string(l.uri)||Qe.undefined(l.uri))}s.is=is})(h=l.Location||(l.Location={}));var g;(function(s){function create(s,l,u,f){return{targetUri:s,targetRange:l,targetSelectionRange:u,originSelectionRange:f}}s.create=create;function is(s){var l=s;return Qe.defined(l)&&f.is(l.targetRange)&&Qe.string(l.targetUri)&&(f.is(l.targetSelectionRange)||Qe.undefined(l.targetSelectionRange))&&(f.is(l.originSelectionRange)||Qe.undefined(l.originSelectionRange))}s.is=is})(g=l.LocationLink||(l.LocationLink={}));var v;(function(s){function create(s,l,u,f){return{red:s,green:l,blue:u,alpha:f}}s.create=create;function is(s){var l=s;return Qe.number(l.red)&&Qe.number(l.green)&&Qe.number(l.blue)&&Qe.number(l.alpha)}s.is=is})(v=l.Color||(l.Color={}));var k;(function(s){function create(s,l){return{range:s,color:l}}s.create=create;function is(s){var l=s;return f.is(l.range)&&v.is(l.color)}s.is=is})(k=l.ColorInformation||(l.ColorInformation={}));var O;(function(s){function create(s,l,u){return{label:s,textEdit:l,additionalTextEdits:u}}s.create=create;function is(s){var l=s;return Qe.string(l.label)&&(Qe.undefined(l.textEdit)||ie.is(l))&&(Qe.undefined(l.additionalTextEdits)||Qe.typedArray(l.additionalTextEdits,ie.is))}s.is=is})(O=l.ColorPresentation||(l.ColorPresentation={}));var M;(function(s){s["Comment"]="comment";s["Imports"]="imports";s["Region"]="region"})(M=l.FoldingRangeKind||(l.FoldingRangeKind={}));var q;(function(s){function create(s,l,u,f,h){var g={startLine:s,endLine:l};if(Qe.defined(u)){g.startCharacter=u}if(Qe.defined(f)){g.endCharacter=f}if(Qe.defined(h)){g.kind=h}return g}s.create=create;function is(s){var l=s;return Qe.number(l.startLine)&&Qe.number(l.startLine)&&(Qe.undefined(l.startCharacter)||Qe.number(l.startCharacter))&&(Qe.undefined(l.endCharacter)||Qe.number(l.endCharacter))&&(Qe.undefined(l.kind)||Qe.string(l.kind))}s.is=is})(q=l.FoldingRange||(l.FoldingRange={}));var B;(function(s){function create(s,l){return{location:s,message:l}}s.create=create;function is(s){var l=s;return Qe.defined(l)&&h.is(l.location)&&Qe.string(l.message)}s.is=is})(B=l.DiagnosticRelatedInformation||(l.DiagnosticRelatedInformation={}));var Y;(function(s){s.Error=1;s.Warning=2;s.Information=3;s.Hint=4})(Y=l.DiagnosticSeverity||(l.DiagnosticSeverity={}));var te;(function(s){s.Unnecessary=1;s.Deprecated=2})(te=l.DiagnosticTag||(l.DiagnosticTag={}));var re;(function(s){function create(s,l,u,f,h,g){var v={range:s,message:l};if(Qe.defined(u)){v.severity=u}if(Qe.defined(f)){v.code=f}if(Qe.defined(h)){v.source=h}if(Qe.defined(g)){v.relatedInformation=g}return v}s.create=create;function is(s){var l=s;return Qe.defined(l)&&f.is(l.range)&&Qe.string(l.message)&&(Qe.number(l.severity)||Qe.undefined(l.severity))&&(Qe.number(l.code)||Qe.string(l.code)||Qe.undefined(l.code))&&(Qe.string(l.source)||Qe.undefined(l.source))&&(Qe.undefined(l.relatedInformation)||Qe.typedArray(l.relatedInformation,B.is))}s.is=is})(re=l.Diagnostic||(l.Diagnostic={}));var ne;(function(s){function create(s,l){var u=[];for(var f=2;f<arguments.length;f++){u[f-2]=arguments[f]}var h={title:s,command:l};if(Qe.defined(u)&&u.length>0){h.arguments=u}return h}s.create=create;function is(s){var l=s;return Qe.defined(l)&&Qe.string(l.title)&&Qe.string(l.command)}s.is=is})(ne=l.Command||(l.Command={}));var ie;(function(s){function replace(s,l){return{range:s,newText:l}}s.replace=replace;function insert(s,l){return{range:{start:s,end:s},newText:l}}s.insert=insert;function del(s){return{range:s,newText:""}}s.del=del;function is(s){var l=s;return Qe.objectLiteral(l)&&Qe.string(l.newText)&&f.is(l.range)}s.is=is})(ie=l.TextEdit||(l.TextEdit={}));var se;(function(s){function create(s,l){return{textDocument:s,edits:l}}s.create=create;function is(s){var l=s;return Qe.defined(l)&&de.is(l.textDocument)&&Array.isArray(l.edits)}s.is=is})(se=l.TextDocumentEdit||(l.TextDocumentEdit={}));var oe;(function(s){function create(s,l){var u={kind:"create",uri:s};if(l!==void 0&&(l.overwrite!==void 0||l.ignoreIfExists!==void 0)){u.options=l}return u}s.create=create;function is(s){var l=s;return l&&l.kind==="create"&&Qe.string(l.uri)&&(l.options===void 0||(l.options.overwrite===void 0||Qe.boolean(l.options.overwrite))&&(l.options.ignoreIfExists===void 0||Qe.boolean(l.options.ignoreIfExists)))}s.is=is})(oe=l.CreateFile||(l.CreateFile={}));var ae;(function(s){function create(s,l,u){var f={kind:"rename",oldUri:s,newUri:l};if(u!==void 0&&(u.overwrite!==void 0||u.ignoreIfExists!==void 0)){f.options=u}return f}s.create=create;function is(s){var l=s;return l&&l.kind==="rename"&&Qe.string(l.oldUri)&&Qe.string(l.newUri)&&(l.options===void 0||(l.options.overwrite===void 0||Qe.boolean(l.options.overwrite))&&(l.options.ignoreIfExists===void 0||Qe.boolean(l.options.ignoreIfExists)))}s.is=is})(ae=l.RenameFile||(l.RenameFile={}));var le;(function(s){function create(s,l){var u={kind:"delete",uri:s};if(l!==void 0&&(l.recursive!==void 0||l.ignoreIfNotExists!==void 0)){u.options=l}return u}s.create=create;function is(s){var l=s;return l&&l.kind==="delete"&&Qe.string(l.uri)&&(l.options===void 0||(l.options.recursive===void 0||Qe.boolean(l.options.recursive))&&(l.options.ignoreIfNotExists===void 0||Qe.boolean(l.options.ignoreIfNotExists)))}s.is=is})(le=l.DeleteFile||(l.DeleteFile={}));var ue;(function(s){function is(s){var l=s;return l&&(l.changes!==void 0||l.documentChanges!==void 0)&&(l.documentChanges===void 0||l.documentChanges.every((function(s){if(Qe.string(s.kind)){return oe.is(s)||ae.is(s)||le.is(s)}else{return se.is(s)}})))}s.is=is})(ue=l.WorkspaceEdit||(l.WorkspaceEdit={}));var ce=function(){function TextEditChangeImpl(s){this.edits=s}TextEditChangeImpl.prototype.insert=function(s,l){this.edits.push(ie.insert(s,l))};TextEditChangeImpl.prototype.replace=function(s,l){this.edits.push(ie.replace(s,l))};TextEditChangeImpl.prototype.delete=function(s){this.edits.push(ie.del(s))};TextEditChangeImpl.prototype.add=function(s){this.edits.push(s)};TextEditChangeImpl.prototype.all=function(){return this.edits};TextEditChangeImpl.prototype.clear=function(){this.edits.splice(0,this.edits.length)};return TextEditChangeImpl}();var fe=function(){function WorkspaceChange(s){var l=this;this._textEditChanges=Object.create(null);if(s){this._workspaceEdit=s;if(s.documentChanges){s.documentChanges.forEach((function(s){if(se.is(s)){var u=new ce(s.edits);l._textEditChanges[s.textDocument.uri]=u}}))}else if(s.changes){Object.keys(s.changes).forEach((function(u){var f=new ce(s.changes[u]);l._textEditChanges[u]=f}))}}}Object.defineProperty(WorkspaceChange.prototype,"edit",{get:function(){return this._workspaceEdit},enumerable:true,configurable:true});WorkspaceChange.prototype.getTextEditChange=function(s){if(de.is(s)){if(!this._workspaceEdit){this._workspaceEdit={documentChanges:[]}}if(!this._workspaceEdit.documentChanges){throw new Error("Workspace edit is not configured for document changes.")}var l=s;var u=this._textEditChanges[l.uri];if(!u){var f=[];var h={textDocument:l,edits:f};this._workspaceEdit.documentChanges.push(h);u=new ce(f);this._textEditChanges[l.uri]=u}return u}else{if(!this._workspaceEdit){this._workspaceEdit={changes:Object.create(null)}}if(!this._workspaceEdit.changes){throw new Error("Workspace edit is not configured for normal text edit changes.")}var u=this._textEditChanges[s];if(!u){var f=[];this._workspaceEdit.changes[s]=f;u=new ce(f);this._textEditChanges[s]=u}return u}};WorkspaceChange.prototype.createFile=function(s,l){this.checkDocumentChanges();this._workspaceEdit.documentChanges.push(oe.create(s,l))};WorkspaceChange.prototype.renameFile=function(s,l,u){this.checkDocumentChanges();this._workspaceEdit.documentChanges.push(ae.create(s,l,u))};WorkspaceChange.prototype.deleteFile=function(s,l){this.checkDocumentChanges();this._workspaceEdit.documentChanges.push(le.create(s,l))};WorkspaceChange.prototype.checkDocumentChanges=function(){if(!this._workspaceEdit||!this._workspaceEdit.documentChanges){throw new Error("Workspace edit is not configured for document changes.")}};return WorkspaceChange}();l.WorkspaceChange=fe;var pe;(function(s){function create(s){return{uri:s}}s.create=create;function is(s){var l=s;return Qe.defined(l)&&Qe.string(l.uri)}s.is=is})(pe=l.TextDocumentIdentifier||(l.TextDocumentIdentifier={}));var de;(function(s){function create(s,l){return{uri:s,version:l}}s.create=create;function is(s){var l=s;return Qe.defined(l)&&Qe.string(l.uri)&&(l.version===null||Qe.number(l.version))}s.is=is})(de=l.VersionedTextDocumentIdentifier||(l.VersionedTextDocumentIdentifier={}));var he;(function(s){function create(s,l,u,f){return{uri:s,languageId:l,version:u,text:f}}s.create=create;function is(s){var l=s;return Qe.defined(l)&&Qe.string(l.uri)&&Qe.string(l.languageId)&&Qe.number(l.version)&&Qe.string(l.text)}s.is=is})(he=l.TextDocumentItem||(l.TextDocumentItem={}));var ge;(function(s){s.PlainText="plaintext";s.Markdown="markdown"})(ge=l.MarkupKind||(l.MarkupKind={}));(function(s){function is(l){var u=l;return u===s.PlainText||u===s.Markdown}s.is=is})(ge=l.MarkupKind||(l.MarkupKind={}));var ve;(function(s){function is(s){var l=s;return Qe.objectLiteral(s)&&ge.is(l.kind)&&Qe.string(l.value)}s.is=is})(ve=l.MarkupContent||(l.MarkupContent={}));var ye;(function(s){s.Text=1;s.Method=2;s.Function=3;s.Constructor=4;s.Field=5;s.Variable=6;s.Class=7;s.Interface=8;s.Module=9;s.Property=10;s.Unit=11;s.Value=12;s.Enum=13;s.Keyword=14;s.Snippet=15;s.Color=16;s.File=17;s.Reference=18;s.Folder=19;s.EnumMember=20;s.Constant=21;s.Struct=22;s.Event=23;s.Operator=24;s.TypeParameter=25})(ye=l.CompletionItemKind||(l.CompletionItemKind={}));var we;(function(s){s.PlainText=1;s.Snippet=2})(we=l.InsertTextFormat||(l.InsertTextFormat={}));var _e;(function(s){s.Deprecated=1})(_e=l.CompletionItemTag||(l.CompletionItemTag={}));var Se;(function(s){function create(s){return{label:s}}s.create=create})(Se=l.CompletionItem||(l.CompletionItem={}));var ke;(function(s){function create(s,l){return{items:s?s:[],isIncomplete:!!l}}s.create=create})(ke=l.CompletionList||(l.CompletionList={}));var Ce;(function(s){function fromPlainText(s){return s.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}s.fromPlainText=fromPlainText;function is(s){var l=s;return Qe.string(l)||Qe.objectLiteral(l)&&Qe.string(l.language)&&Qe.string(l.value)}s.is=is})(Ce=l.MarkedString||(l.MarkedString={}));var Ee;(function(s){function is(s){var l=s;return!!l&&Qe.objectLiteral(l)&&(ve.is(l.contents)||Ce.is(l.contents)||Qe.typedArray(l.contents,Ce.is))&&(s.range===void 0||f.is(s.range))}s.is=is})(Ee=l.Hover||(l.Hover={}));var Re;(function(s){function create(s,l){return l?{label:s,documentation:l}:{label:s}}s.create=create})(Re=l.ParameterInformation||(l.ParameterInformation={}));var Oe;(function(s){function create(s,l){var u=[];for(var f=2;f<arguments.length;f++){u[f-2]=arguments[f]}var h={label:s};if(Qe.defined(l)){h.documentation=l}if(Qe.defined(u)){h.parameters=u}else{h.parameters=[]}return h}s.create=create})(Oe=l.SignatureInformation||(l.SignatureInformation={}));var De;(function(s){s.Text=1;s.Read=2;s.Write=3})(De=l.DocumentHighlightKind||(l.DocumentHighlightKind={}));var Ie;(function(s){function create(s,l){var u={range:s};if(Qe.number(l)){u.kind=l}return u}s.create=create})(Ie=l.DocumentHighlight||(l.DocumentHighlight={}));var Me;(function(s){s.File=1;s.Module=2;s.Namespace=3;s.Package=4;s.Class=5;s.Method=6;s.Property=7;s.Field=8;s.Constructor=9;s.Enum=10;s.Interface=11;s.Function=12;s.Variable=13;s.Constant=14;s.String=15;s.Number=16;s.Boolean=17;s.Array=18;s.Object=19;s.Key=20;s.Null=21;s.EnumMember=22;s.Struct=23;s.Event=24;s.Operator=25;s.TypeParameter=26})(Me=l.SymbolKind||(l.SymbolKind={}));var Ne;(function(s){s.Deprecated=1})(Ne=l.SymbolTag||(l.SymbolTag={}));var Le;(function(s){function create(s,l,u,f,h){var g={name:s,kind:l,location:{uri:f,range:u}};if(h){g.containerName=h}return g}s.create=create})(Le=l.SymbolInformation||(l.SymbolInformation={}));var je;(function(s){function create(s,l,u,f,h,g){var v={name:s,detail:l,kind:u,range:f,selectionRange:h};if(g!==void 0){v.children=g}return v}s.create=create;function is(s){var l=s;return l&&Qe.string(l.name)&&Qe.number(l.kind)&&f.is(l.range)&&f.is(l.selectionRange)&&(l.detail===void 0||Qe.string(l.detail))&&(l.deprecated===void 0||Qe.boolean(l.deprecated))&&(l.children===void 0||Array.isArray(l.children))}s.is=is})(je=l.DocumentSymbol||(l.DocumentSymbol={}));var Fe;(function(s){s.Empty="";s.QuickFix="quickfix";s.Refactor="refactor";s.RefactorExtract="refactor.extract";s.RefactorInline="refactor.inline";s.RefactorRewrite="refactor.rewrite";s.Source="source";s.SourceOrganizeImports="source.organizeImports";s.SourceFixAll="source.fixAll"})(Fe=l.CodeActionKind||(l.CodeActionKind={}));var qe;(function(s){function create(s,l){var u={diagnostics:s};if(l!==void 0&&l!==null){u.only=l}return u}s.create=create;function is(s){var l=s;return Qe.defined(l)&&Qe.typedArray(l.diagnostics,re.is)&&(l.only===void 0||Qe.typedArray(l.only,Qe.string))}s.is=is})(qe=l.CodeActionContext||(l.CodeActionContext={}));var $e;(function(s){function create(s,l,u){var f={title:s};if(ne.is(l)){f.command=l}else{f.edit=l}if(u!==void 0){f.kind=u}return f}s.create=create;function is(s){var l=s;return l&&Qe.string(l.title)&&(l.diagnostics===void 0||Qe.typedArray(l.diagnostics,re.is))&&(l.kind===void 0||Qe.string(l.kind))&&(l.edit!==void 0||l.command!==void 0)&&(l.command===void 0||ne.is(l.command))&&(l.isPreferred===void 0||Qe.boolean(l.isPreferred))&&(l.edit===void 0||ue.is(l.edit))}s.is=is})($e=l.CodeAction||(l.CodeAction={}));var We;(function(s){function create(s,l){var u={range:s};if(Qe.defined(l)){u.data=l}return u}s.create=create;function is(s){var l=s;return Qe.defined(l)&&f.is(l.range)&&(Qe.undefined(l.command)||ne.is(l.command))}s.is=is})(We=l.CodeLens||(l.CodeLens={}));var ze;(function(s){function create(s,l){return{tabSize:s,insertSpaces:l}}s.create=create;function is(s){var l=s;return Qe.defined(l)&&Qe.number(l.tabSize)&&Qe.boolean(l.insertSpaces)}s.is=is})(ze=l.FormattingOptions||(l.FormattingOptions={}));var Ve;(function(s){function create(s,l,u){return{range:s,target:l,data:u}}s.create=create;function is(s){var l=s;return Qe.defined(l)&&f.is(l.range)&&(Qe.undefined(l.target)||Qe.string(l.target))}s.is=is})(Ve=l.DocumentLink||(l.DocumentLink={}));var Ge;(function(s){function create(s,l){return{range:s,parent:l}}s.create=create;function is(l){var u=l;return u!==undefined&&f.is(u.range)&&(u.parent===undefined||s.is(u.parent))}s.is=is})(Ge=l.SelectionRange||(l.SelectionRange={}));l.EOL=["\n","\r\n","\r"];var Ye;(function(s){function create(s,l,u,f){return new Ke(s,l,u,f)}s.create=create;function is(s){var l=s;return Qe.defined(l)&&Qe.string(l.uri)&&(Qe.undefined(l.languageId)||Qe.string(l.languageId))&&Qe.number(l.lineCount)&&Qe.func(l.getText)&&Qe.func(l.positionAt)&&Qe.func(l.offsetAt)?true:false}s.is=is;function applyEdits(s,l){var u=s.getText();var f=mergeSort(l,(function(s,l){var u=s.range.start.line-l.range.start.line;if(u===0){return s.range.start.character-l.range.start.character}return u}));var h=u.length;for(var g=f.length-1;g>=0;g--){var v=f[g];var k=s.offsetAt(v.range.start);var O=s.offsetAt(v.range.end);if(O<=h){u=u.substring(0,k)+v.newText+u.substring(O,u.length)}else{throw new Error("Overlapping edit")}h=k}return u}s.applyEdits=applyEdits;function mergeSort(s,l){if(s.length<=1){return s}var u=s.length/2|0;var f=s.slice(0,u);var h=s.slice(u);mergeSort(f,l);mergeSort(h,l);var g=0;var v=0;var k=0;while(g<f.length&&v<h.length){var O=l(f[g],h[v]);if(O<=0){s[k++]=f[g++]}else{s[k++]=h[v++]}}while(g<f.length){s[k++]=f[g++]}while(v<h.length){s[k++]=h[v++]}return s}})(Ye=l.TextDocument||(l.TextDocument={}));var Ke=function(){function FullTextDocument(s,l,u,f){this._uri=s;this._languageId=l;this._version=u;this._content=f;this._lineOffsets=undefined}Object.defineProperty(FullTextDocument.prototype,"uri",{get:function(){return this._uri},enumerable:true,configurable:true});Object.defineProperty(FullTextDocument.prototype,"languageId",{get:function(){return this._languageId},enumerable:true,configurable:true});Object.defineProperty(FullTextDocument.prototype,"version",{get:function(){return this._version},enumerable:true,configurable:true});FullTextDocument.prototype.getText=function(s){if(s){var l=this.offsetAt(s.start);var u=this.offsetAt(s.end);return this._content.substring(l,u)}return this._content};FullTextDocument.prototype.update=function(s,l){this._content=s.text;this._version=l;this._lineOffsets=undefined};FullTextDocument.prototype.getLineOffsets=function(){if(this._lineOffsets===undefined){var s=[];var l=this._content;var u=true;for(var f=0;f<l.length;f++){if(u){s.push(f);u=false}var h=l.charAt(f);u=h==="\r"||h==="\n";if(h==="\r"&&f+1<l.length&&l.charAt(f+1)==="\n"){f++}}if(u&&l.length>0){s.push(l.length)}this._lineOffsets=s}return this._lineOffsets};FullTextDocument.prototype.positionAt=function(s){s=Math.max(Math.min(s,this._content.length),0);var l=this.getLineOffsets();var f=0,h=l.length;if(h===0){return u.create(0,s)}while(f<h){var g=Math.floor((f+h)/2);if(l[g]>s){h=g}else{f=g+1}}var v=f-1;return u.create(v,s-l[v])};FullTextDocument.prototype.offsetAt=function(s){var l=this.getLineOffsets();if(s.line>=l.length){return this._content.length}else if(s.line<0){return 0}var u=l[s.line];var f=s.line+1<l.length?l[s.line+1]:this._content.length;return Math.max(Math.min(u+s.character,f),u)};Object.defineProperty(FullTextDocument.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:true,configurable:true});return FullTextDocument}();var Qe;(function(s){var l=Object.prototype.toString;function defined(s){return typeof s!=="undefined"}s.defined=defined;function undefined(s){return typeof s==="undefined"}s.undefined=undefined;function boolean(s){return s===true||s===false}s.boolean=boolean;function string(s){return l.call(s)==="[object String]"}s.string=string;function number(s){return l.call(s)==="[object Number]"}s.number=number;function func(s){return l.call(s)==="[object Function]"}s.func=func;function objectLiteral(s){return s!==null&&typeof s==="object"}s.objectLiteral=objectLiteral;function typedArray(s,l){return Array.isArray(s)&&s.every(l)}s.typedArray=typedArray})(Qe||(Qe={}))}))},622:function(s){s.exports=u(85622)},747:function(s){s.exports=u(35747)},762:function(s,l){(function(u){if(true&&typeof s.exports==="object"){var f=u(require,l);if(f!==undefined)s.exports=f}else if(typeof define==="function"&&define.amd){define(["require","exports","./format","./edit"],u)}})((function(s,l){"use strict";Object.defineProperty(l,"__esModule",{value:true});var u=undefined;var f=undefined;var h;(function(s){s[s["None"]=0]="None";s[s["UnexpectedEndOfComment"]=1]="UnexpectedEndOfComment";s[s["UnexpectedEndOfString"]=2]="UnexpectedEndOfString";s[s["UnexpectedEndOfNumber"]=3]="UnexpectedEndOfNumber";s[s["InvalidUnicode"]=4]="InvalidUnicode";s[s["InvalidEscapeCharacter"]=5]="InvalidEscapeCharacter";s[s["InvalidCharacter"]=6]="InvalidCharacter"})(h=l.ScanError||(l.ScanError={}));var g;(function(s){s[s["Unknown"]=0]="Unknown";s[s["OpenBraceToken"]=1]="OpenBraceToken";s[s["CloseBraceToken"]=2]="CloseBraceToken";s[s["OpenBracketToken"]=3]="OpenBracketToken";s[s["CloseBracketToken"]=4]="CloseBracketToken";s[s["CommaToken"]=5]="CommaToken";s[s["ColonToken"]=6]="ColonToken";s[s["NullKeyword"]=7]="NullKeyword";s[s["TrueKeyword"]=8]="TrueKeyword";s[s["FalseKeyword"]=9]="FalseKeyword";s[s["StringLiteral"]=10]="StringLiteral";s[s["NumericLiteral"]=11]="NumericLiteral";s[s["LineCommentTrivia"]=12]="LineCommentTrivia";s[s["BlockCommentTrivia"]=13]="BlockCommentTrivia";s[s["LineBreakTrivia"]=14]="LineBreakTrivia";s[s["Trivia"]=15]="Trivia";s[s["EOF"]=16]="EOF"})(g=l.SyntaxKind||(l.SyntaxKind={}));function createScanner(s,l){if(l===void 0){l=false}var u=0,f=s.length,v="",k=0,O=g.Unknown,M=h.None;function scanHexDigits(l,f){var h=0;var g=0;while(h<l||!f){var v=s.charCodeAt(u);if(v>=48&&v<=57){g=g*16+v-48}else if(v>=65&&v<=70){g=g*16+v-65+10}else if(v>=97&&v<=102){g=g*16+v-97+10}else{break}u++;h++}if(h<l){g=-1}return g}function setPosition(s){u=s;v="";k=0;O=g.Unknown;M=h.None}function scanNumber(){var l=u;if(s.charCodeAt(u)===48){u++}else{u++;while(u<s.length&&isDigit(s.charCodeAt(u))){u++}}if(u<s.length&&s.charCodeAt(u)===46){u++;if(u<s.length&&isDigit(s.charCodeAt(u))){u++;while(u<s.length&&isDigit(s.charCodeAt(u))){u++}}else{M=h.UnexpectedEndOfNumber;return s.substring(l,u)}}var f=u;if(u<s.length&&(s.charCodeAt(u)===69||s.charCodeAt(u)===101)){u++;if(u<s.length&&s.charCodeAt(u)===43||s.charCodeAt(u)===45){u++}if(u<s.length&&isDigit(s.charCodeAt(u))){u++;while(u<s.length&&isDigit(s.charCodeAt(u))){u++}f=u}else{M=h.UnexpectedEndOfNumber}}return s.substring(l,f)}function scanString(){var l="",g=u;while(true){if(u>=f){l+=s.substring(g,u);M=h.UnexpectedEndOfString;break}var v=s.charCodeAt(u);if(v===34){l+=s.substring(g,u);u++;break}if(v===92){l+=s.substring(g,u);u++;if(u>=f){M=h.UnexpectedEndOfString;break}v=s.charCodeAt(u++);switch(v){case 34:l+='"';break;case 92:l+="\\";break;case 47:l+="/";break;case 98:l+="\b";break;case 102:l+="\f";break;case 110:l+="\n";break;case 114:l+="\r";break;case 116:l+="\t";break;case 117:var k=scanHexDigits(4,true);if(k>=0){l+=String.fromCharCode(k)}else{M=h.InvalidUnicode}break;default:M=h.InvalidEscapeCharacter}g=u;continue}if(v>=0&&v<=31){if(isLineBreak(v)){l+=s.substring(g,u);M=h.UnexpectedEndOfString;break}else{M=h.InvalidCharacter}}u++}return l}function scanNext(){v="";M=h.None;k=u;if(u>=f){k=f;return O=g.EOF}var l=s.charCodeAt(u);if(isWhiteSpace(l)){do{u++;v+=String.fromCharCode(l);l=s.charCodeAt(u)}while(isWhiteSpace(l));return O=g.Trivia}if(isLineBreak(l)){u++;v+=String.fromCharCode(l);if(l===13&&s.charCodeAt(u)===10){u++;v+="\n"}return O=g.LineBreakTrivia}switch(l){case 123:u++;return O=g.OpenBraceToken;case 125:u++;return O=g.CloseBraceToken;case 91:u++;return O=g.OpenBracketToken;case 93:u++;return O=g.CloseBracketToken;case 58:u++;return O=g.ColonToken;case 44:u++;return O=g.CommaToken;case 34:u++;v=scanString();return O=g.StringLiteral;case 47:var q=u-1;if(s.charCodeAt(u+1)===47){u+=2;while(u<f){if(isLineBreak(s.charCodeAt(u))){break}u++}v=s.substring(q,u);return O=g.LineCommentTrivia}if(s.charCodeAt(u+1)===42){u+=2;var B=false;while(u<f){var Y=s.charCodeAt(u);if(Y===42&&u+1<f&&s.charCodeAt(u+1)===47){u+=2;B=true;break}u++}if(!B){u++;M=h.UnexpectedEndOfComment}v=s.substring(q,u);return O=g.BlockCommentTrivia}v+=String.fromCharCode(l);u++;return O=g.Unknown;case 45:v+=String.fromCharCode(l);u++;if(u===f||!isDigit(s.charCodeAt(u))){return O=g.Unknown}case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:v+=scanNumber();return O=g.NumericLiteral;default:while(u<f&&isUnknownContentCharacter(l)){u++;l=s.charCodeAt(u)}if(k!==u){v=s.substring(k,u);switch(v){case"true":return O=g.TrueKeyword;case"false":return O=g.FalseKeyword;case"null":return O=g.NullKeyword}return O=g.Unknown}v+=String.fromCharCode(l);u++;return O=g.Unknown}}function isUnknownContentCharacter(s){if(isWhiteSpace(s)||isLineBreak(s)){return false}switch(s){case 125:case 93:case 123:case 91:case 34:case 58:case 44:return false}return true}function scanNextNonTrivia(){var s;do{s=scanNext()}while(s>=g.LineCommentTrivia&&s<=g.Trivia);return s}return{setPosition:setPosition,getPosition:function(){return u},scan:l?scanNextNonTrivia:scanNext,getToken:function(){return O},getTokenValue:function(){return v},getTokenOffset:function(){return k},getTokenLength:function(){return u-k},getTokenError:function(){return M}}}l.createScanner=createScanner;function isWhiteSpace(s){return s===32||s===9||s===11||s===12||s===160||s===5760||s>=8192&&s<=8203||s===8239||s===8287||s===12288||s===65279}function isLineBreak(s){return s===10||s===13||s===8232||s===8233}function isDigit(s){return s>=48&&s<=57}function stripComments(s,l){var u=createScanner(s),f=[],h,v=0,k;do{k=u.getPosition();h=u.scan();switch(h){case g.LineCommentTrivia:case g.BlockCommentTrivia:case g.EOF:if(v!==k){f.push(s.substring(v,k))}if(l!==void 0){f.push(u.getTokenValue().replace(/[^\r\n]/g,l))}v=u.getPosition();break}}while(h!==g.EOF);return f.join("")}l.stripComments=stripComments;var v;(function(s){s[s["InvalidSymbol"]=0]="InvalidSymbol";s[s["InvalidNumberFormat"]=1]="InvalidNumberFormat";s[s["PropertyNameExpected"]=2]="PropertyNameExpected";s[s["ValueExpected"]=3]="ValueExpected";s[s["ColonExpected"]=4]="ColonExpected";s[s["CommaExpected"]=5]="CommaExpected";s[s["CloseBraceExpected"]=6]="CloseBraceExpected";s[s["CloseBracketExpected"]=7]="CloseBracketExpected";s[s["EndOfFileExpected"]=8]="EndOfFileExpected";s[s["InvalidCommentToken"]=9]="InvalidCommentToken";s[s["UnexpectedEndOfComment"]=10]="UnexpectedEndOfComment";s[s["UnexpectedEndOfString"]=11]="UnexpectedEndOfString";s[s["UnexpectedEndOfNumber"]=12]="UnexpectedEndOfNumber";s[s["InvalidUnicode"]=13]="InvalidUnicode";s[s["InvalidEscapeCharacter"]=14]="InvalidEscapeCharacter";s[s["InvalidCharacter"]=15]="InvalidCharacter"})(v=l.ParseErrorCode||(l.ParseErrorCode={}));function getLiteralNodeType(s){switch(typeof s){case"boolean":return"boolean";case"number":return"number";case"string":return"string";default:return"null"}}function getLocation(s,l){var u=[];var f=new Object;var h=void 0;var g={value:{},offset:0,length:0,type:"object"};var v=false;function setPreviousNode(s,l,u,f){g.value=s;g.offset=l;g.length=u;g.type=f;g.columnOffset=void 0;h=g}try{visit(s,{onObjectBegin:function(s,g){if(l<=s){throw f}h=void 0;v=l>s;u.push("")},onObjectProperty:function(s,h,g){if(l<h){throw f}setPreviousNode(s,h,g,"property");u[u.length-1]=s;if(l<=h+g){throw f}},onObjectEnd:function(s,g){if(l<=s){throw f}h=void 0;u.pop()},onArrayBegin:function(s,g){if(l<=s){throw f}h=void 0;u.push(0)},onArrayEnd:function(s,g){if(l<=s){throw f}h=void 0;u.pop()},onLiteralValue:function(s,u,h){if(l<u){throw f}setPreviousNode(s,u,h,getLiteralNodeType(s));if(l<=u+h){throw f}},onSeparator:function(s,g,k){if(l<=g){throw f}if(s===":"&&h&&h.type==="property"){h.columnOffset=g;v=false;h=void 0}else if(s===","){var O=u[u.length-1];if(typeof O==="number"){u[u.length-1]=O+1}else{v=true;u[u.length-1]=""}h=void 0}}})}catch(s){if(s!==f){throw s}}return{path:u,previousNode:h,isAtPropertyKey:v,matches:function(s){var l=0;for(var f=0;l<s.length&&f<u.length;f++){if(s[l]===u[f]||s[l]==="*"){l++}else if(s[l]!=="**"){return false}}return l===s.length}}}l.getLocation=getLocation;function parse(s,l,u){if(l===void 0){l=[]}var f=null;var h=[];var g=[];function onValue(s){if(Array.isArray(h)){h.push(s)}else if(f){h[f]=s}}var v={onObjectBegin:function(){var s={};onValue(s);g.push(h);h=s;f=null},onObjectProperty:function(s){f=s},onObjectEnd:function(){h=g.pop()},onArrayBegin:function(){var s=[];onValue(s);g.push(h);h=s;f=null},onArrayEnd:function(){h=g.pop()},onLiteralValue:onValue,onError:function(s,u,f){l.push({error:s,offset:u,length:f})}};visit(s,v,u);return h[0]}l.parse=parse;function parseTree(s,l,u){if(l===void 0){l=[]}var f={type:"array",offset:-1,length:-1,children:[]};function ensurePropertyComplete(s){if(f.type==="property"){f.length=s-f.offset;f=f.parent}}function onValue(s){f.children.push(s);return s}var h={onObjectBegin:function(s){f=onValue({type:"object",offset:s,length:-1,parent:f,children:[]})},onObjectProperty:function(s,l,u){f=onValue({type:"property",offset:l,length:-1,parent:f,children:[]});f.children.push({type:"string",value:s,offset:l,length:u,parent:f})},onObjectEnd:function(s,l){f.length=s+l-f.offset;f=f.parent;ensurePropertyComplete(s+l)},onArrayBegin:function(s,l){f=onValue({type:"array",offset:s,length:-1,parent:f,children:[]})},onArrayEnd:function(s,l){f.length=s+l-f.offset;f=f.parent;ensurePropertyComplete(s+l)},onLiteralValue:function(s,l,u){onValue({type:getLiteralNodeType(s),offset:l,length:u,parent:f,value:s});ensurePropertyComplete(l+u)},onSeparator:function(s,l,u){if(f.type==="property"){if(s===":"){f.columnOffset=l}else if(s===","){ensurePropertyComplete(l)}}},onError:function(s,u,f){l.push({error:s,offset:u,length:f})}};visit(s,h,u);var g=f.children[0];if(g){delete g.parent}return g}l.parseTree=parseTree;function findNodeAtLocation(s,l){if(!s){return void 0}var u=s;for(var f=0,h=l;f<h.length;f++){var g=h[f];if(typeof g==="string"){if(u.type!=="object"||!Array.isArray(u.children)){return void 0}var v=false;for(var k=0,O=u.children;k<O.length;k++){var M=O[k];if(Array.isArray(M.children)&&M.children[0].value===g){u=M.children[1];v=true;break}}if(!v){return void 0}}else{var q=g;if(u.type!=="array"||q<0||!Array.isArray(u.children)||q>=u.children.length){return void 0}u=u.children[q]}}return u}l.findNodeAtLocation=findNodeAtLocation;function getNodeValue(s){if(s.type==="array"){return s.children.map(getNodeValue)}else if(s.type==="object"){var l=Object.create(null);for(var u=0,f=s.children;u<f.length;u++){var h=f[u];l[h.children[0].value]=getNodeValue(h.children[1])}return l}return s.value}l.getNodeValue=getNodeValue;function visit(s,l,u){var f=createScanner(s,false);function toNoArgVisit(s){return s?function(){return s(f.getTokenOffset(),f.getTokenLength())}:function(){return true}}function toOneArgVisit(s){return s?function(l){return s(l,f.getTokenOffset(),f.getTokenLength())}:function(){return true}}var k=toNoArgVisit(l.onObjectBegin),O=toOneArgVisit(l.onObjectProperty),M=toNoArgVisit(l.onObjectEnd),q=toNoArgVisit(l.onArrayBegin),B=toNoArgVisit(l.onArrayEnd),Y=toOneArgVisit(l.onLiteralValue),te=toOneArgVisit(l.onSeparator),re=toNoArgVisit(l.onComment),ne=toOneArgVisit(l.onError);var ie=u&&u.disallowComments;var se=u&&u.allowTrailingComma;function scanNext(){while(true){var s=f.scan();switch(f.getTokenError()){case h.InvalidUnicode:handleError(v.InvalidUnicode);break;case h.InvalidEscapeCharacter:handleError(v.InvalidEscapeCharacter);break;case h.UnexpectedEndOfNumber:handleError(v.UnexpectedEndOfNumber);break;case h.UnexpectedEndOfComment:if(!ie){handleError(v.UnexpectedEndOfComment)}break;case h.UnexpectedEndOfString:handleError(v.UnexpectedEndOfString);break;case h.InvalidCharacter:handleError(v.InvalidCharacter);break}switch(s){case g.LineCommentTrivia:case g.BlockCommentTrivia:if(ie){handleError(v.InvalidCommentToken)}else{re()}break;case g.Unknown:handleError(v.InvalidSymbol);break;case g.Trivia:case g.LineBreakTrivia:break;default:return s}}}function handleError(s,l,u){if(l===void 0){l=[]}if(u===void 0){u=[]}ne(s);if(l.length+u.length>0){var h=f.getToken();while(h!==g.EOF){if(l.indexOf(h)!==-1){scanNext();break}else if(u.indexOf(h)!==-1){break}h=scanNext()}}}function parseString(s){var l=f.getTokenValue();if(s){Y(l)}else{O(l)}scanNext();return true}function parseLiteral(){switch(f.getToken()){case g.NumericLiteral:var s=0;try{s=JSON.parse(f.getTokenValue());if(typeof s!=="number"){handleError(v.InvalidNumberFormat);s=0}}catch(s){handleError(v.InvalidNumberFormat)}Y(s);break;case g.NullKeyword:Y(null);break;case g.TrueKeyword:Y(true);break;case g.FalseKeyword:Y(false);break;default:return false}scanNext();return true}function parseProperty(){if(f.getToken()!==g.StringLiteral){handleError(v.PropertyNameExpected,[],[g.CloseBraceToken,g.CommaToken]);return false}parseString(false);if(f.getToken()===g.ColonToken){te(":");scanNext();if(!parseValue()){handleError(v.ValueExpected,[],[g.CloseBraceToken,g.CommaToken])}}else{handleError(v.ColonExpected,[],[g.CloseBraceToken,g.CommaToken])}return true}function parseObject(){k();scanNext();var s=false;while(f.getToken()!==g.CloseBraceToken&&f.getToken()!==g.EOF){if(f.getToken()===g.CommaToken){if(!s){handleError(v.ValueExpected,[],[])}te(",");scanNext();if(f.getToken()===g.CloseBraceToken&&se){break}}else if(s){handleError(v.CommaExpected,[],[])}if(!parseProperty()){handleError(v.ValueExpected,[],[g.CloseBraceToken,g.CommaToken])}s=true}M();if(f.getToken()!==g.CloseBraceToken){handleError(v.CloseBraceExpected,[g.CloseBraceToken],[])}else{scanNext()}return true}function parseArray(){q();scanNext();var s=false;while(f.getToken()!==g.CloseBracketToken&&f.getToken()!==g.EOF){if(f.getToken()===g.CommaToken){if(!s){handleError(v.ValueExpected,[],[])}te(",");scanNext();if(f.getToken()===g.CloseBracketToken&&se){break}}else if(s){handleError(v.CommaExpected,[],[])}if(!parseValue()){handleError(v.ValueExpected,[],[g.CloseBracketToken,g.CommaToken])}s=true}B();if(f.getToken()!==g.CloseBracketToken){handleError(v.CloseBracketExpected,[g.CloseBracketToken],[])}else{scanNext()}return true}function parseValue(){switch(f.getToken()){case g.OpenBracketToken:return parseArray();case g.OpenBraceToken:return parseObject();case g.StringLiteral:return parseString(true);default:return parseLiteral()}}scanNext();if(f.getToken()===g.EOF){return true}if(!parseValue()){handleError(v.ValueExpected,[],[]);return false}if(f.getToken()!==g.EOF){handleError(v.EndOfFileExpected,[],[])}return true}l.visit=visit;function format(s,l,f){return u.format(s,l,f)}l.format=format;function modify(s,l,u,h){return f.setProperty(s,l,u,h.formattingOptions,h.getInsertionIndex)}l.modify=modify;function applyEdits(s,l){for(var u=l.length-1;u>=0;u--){s=f.applyEdit(s,l[u])}return s}l.applyEdits=applyEdits}))}},(function(s){"use strict";!function(){s.r=function(s){if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(s,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(s,"__esModule",{value:true})}}();!function(){s.n=function(l){var u=l&&l.__esModule?function getDefault(){return l["default"]}:function getModuleExports(){return l};s.d(u,"a",u);return u}}();!function(){var l=Object.prototype.hasOwnProperty;s.d=function(s,u,f){if(!l.call(s,u)){Object.defineProperty(s,u,{enumerable:true,get:f})}}}()}))},3301:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.CancellationSenderStrategy=l.CancellationReceiverStrategy=l.ConnectionError=l.ConnectionErrors=l.LogTraceNotification=l.SetTraceNotification=l.TraceFormat=l.Trace=l.ProgressType=l.createMessageConnection=l.NullLogger=l.ConnectionOptions=l.ConnectionStrategy=l.WriteableStreamMessageWriter=l.AbstractMessageWriter=l.MessageWriter=l.ReadableStreamMessageReader=l.AbstractMessageReader=l.MessageReader=l.CancellationToken=l.CancellationTokenSource=l.Emitter=l.Event=l.Disposable=l.ParameterStructures=l.NotificationType9=l.NotificationType8=l.NotificationType7=l.NotificationType6=l.NotificationType5=l.NotificationType4=l.NotificationType3=l.NotificationType2=l.NotificationType1=l.NotificationType0=l.NotificationType=l.ErrorCodes=l.ResponseError=l.RequestType9=l.RequestType8=l.RequestType7=l.RequestType6=l.RequestType5=l.RequestType4=l.RequestType3=l.RequestType2=l.RequestType1=l.RequestType0=l.RequestType=l.RAL=void 0;l.CancellationStrategy=void 0;const f=u(6622);Object.defineProperty(l,"RequestType",{enumerable:true,get:function(){return f.RequestType}});Object.defineProperty(l,"RequestType0",{enumerable:true,get:function(){return f.RequestType0}});Object.defineProperty(l,"RequestType1",{enumerable:true,get:function(){return f.RequestType1}});Object.defineProperty(l,"RequestType2",{enumerable:true,get:function(){return f.RequestType2}});Object.defineProperty(l,"RequestType3",{enumerable:true,get:function(){return f.RequestType3}});Object.defineProperty(l,"RequestType4",{enumerable:true,get:function(){return f.RequestType4}});Object.defineProperty(l,"RequestType5",{enumerable:true,get:function(){return f.RequestType5}});Object.defineProperty(l,"RequestType6",{enumerable:true,get:function(){return f.RequestType6}});Object.defineProperty(l,"RequestType7",{enumerable:true,get:function(){return f.RequestType7}});Object.defineProperty(l,"RequestType8",{enumerable:true,get:function(){return f.RequestType8}});Object.defineProperty(l,"RequestType9",{enumerable:true,get:function(){return f.RequestType9}});Object.defineProperty(l,"ResponseError",{enumerable:true,get:function(){return f.ResponseError}});Object.defineProperty(l,"ErrorCodes",{enumerable:true,get:function(){return f.ErrorCodes}});Object.defineProperty(l,"NotificationType",{enumerable:true,get:function(){return f.NotificationType}});Object.defineProperty(l,"NotificationType0",{enumerable:true,get:function(){return f.NotificationType0}});Object.defineProperty(l,"NotificationType1",{enumerable:true,get:function(){return f.NotificationType1}});Object.defineProperty(l,"NotificationType2",{enumerable:true,get:function(){return f.NotificationType2}});Object.defineProperty(l,"NotificationType3",{enumerable:true,get:function(){return f.NotificationType3}});Object.defineProperty(l,"NotificationType4",{enumerable:true,get:function(){return f.NotificationType4}});Object.defineProperty(l,"NotificationType5",{enumerable:true,get:function(){return f.NotificationType5}});Object.defineProperty(l,"NotificationType6",{enumerable:true,get:function(){return f.NotificationType6}});Object.defineProperty(l,"NotificationType7",{enumerable:true,get:function(){return f.NotificationType7}});Object.defineProperty(l,"NotificationType8",{enumerable:true,get:function(){return f.NotificationType8}});Object.defineProperty(l,"NotificationType9",{enumerable:true,get:function(){return f.NotificationType9}});Object.defineProperty(l,"ParameterStructures",{enumerable:true,get:function(){return f.ParameterStructures}});const h=u(24788);Object.defineProperty(l,"Disposable",{enumerable:true,get:function(){return h.Disposable}});const g=u(30478);Object.defineProperty(l,"Event",{enumerable:true,get:function(){return g.Event}});Object.defineProperty(l,"Emitter",{enumerable:true,get:function(){return g.Emitter}});const v=u(2648);Object.defineProperty(l,"CancellationTokenSource",{enumerable:true,get:function(){return v.CancellationTokenSource}});Object.defineProperty(l,"CancellationToken",{enumerable:true,get:function(){return v.CancellationToken}});const k=u(1505);Object.defineProperty(l,"MessageReader",{enumerable:true,get:function(){return k.MessageReader}});Object.defineProperty(l,"AbstractMessageReader",{enumerable:true,get:function(){return k.AbstractMessageReader}});Object.defineProperty(l,"ReadableStreamMessageReader",{enumerable:true,get:function(){return k.ReadableStreamMessageReader}});const O=u(27918);Object.defineProperty(l,"MessageWriter",{enumerable:true,get:function(){return O.MessageWriter}});Object.defineProperty(l,"AbstractMessageWriter",{enumerable:true,get:function(){return O.AbstractMessageWriter}});Object.defineProperty(l,"WriteableStreamMessageWriter",{enumerable:true,get:function(){return O.WriteableStreamMessageWriter}});const M=u(23817);Object.defineProperty(l,"ConnectionStrategy",{enumerable:true,get:function(){return M.ConnectionStrategy}});Object.defineProperty(l,"ConnectionOptions",{enumerable:true,get:function(){return M.ConnectionOptions}});Object.defineProperty(l,"NullLogger",{enumerable:true,get:function(){return M.NullLogger}});Object.defineProperty(l,"createMessageConnection",{enumerable:true,get:function(){return M.createMessageConnection}});Object.defineProperty(l,"ProgressType",{enumerable:true,get:function(){return M.ProgressType}});Object.defineProperty(l,"Trace",{enumerable:true,get:function(){return M.Trace}});Object.defineProperty(l,"TraceFormat",{enumerable:true,get:function(){return M.TraceFormat}});Object.defineProperty(l,"SetTraceNotification",{enumerable:true,get:function(){return M.SetTraceNotification}});Object.defineProperty(l,"LogTraceNotification",{enumerable:true,get:function(){return M.LogTraceNotification}});Object.defineProperty(l,"ConnectionErrors",{enumerable:true,get:function(){return M.ConnectionErrors}});Object.defineProperty(l,"ConnectionError",{enumerable:true,get:function(){return M.ConnectionError}});Object.defineProperty(l,"CancellationReceiverStrategy",{enumerable:true,get:function(){return M.CancellationReceiverStrategy}});Object.defineProperty(l,"CancellationSenderStrategy",{enumerable:true,get:function(){return M.CancellationSenderStrategy}});Object.defineProperty(l,"CancellationStrategy",{enumerable:true,get:function(){return M.CancellationStrategy}});const q=u(83996);l.RAL=q.default},2648:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.CancellationTokenSource=l.CancellationToken=void 0;const f=u(83996);const h=u(18294);const g=u(30478);var v;(function(s){s.None=Object.freeze({isCancellationRequested:false,onCancellationRequested:g.Event.None});s.Cancelled=Object.freeze({isCancellationRequested:true,onCancellationRequested:g.Event.None});function is(l){const u=l;return u&&(u===s.None||u===s.Cancelled||h.boolean(u.isCancellationRequested)&&!!u.onCancellationRequested)}s.is=is})(v=l.CancellationToken||(l.CancellationToken={}));const k=Object.freeze((function(s,l){const u=f.default().timer.setTimeout(s.bind(l),0);return{dispose(){f.default().timer.clearTimeout(u)}}}));class MutableToken{constructor(){this._isCancelled=false}cancel(){if(!this._isCancelled){this._isCancelled=true;if(this._emitter){this._emitter.fire(undefined);this.dispose()}}}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){if(this._isCancelled){return k}if(!this._emitter){this._emitter=new g.Emitter}return this._emitter.event}dispose(){if(this._emitter){this._emitter.dispose();this._emitter=undefined}}}class CancellationTokenSource{get token(){if(!this._token){this._token=new MutableToken}return this._token}cancel(){if(!this._token){this._token=v.Cancelled}else{this._token.cancel()}}dispose(){if(!this._token){this._token=v.None}else if(this._token instanceof MutableToken){this._token.dispose()}}}l.CancellationTokenSource=CancellationTokenSource},23817:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.createMessageConnection=l.ConnectionOptions=l.CancellationStrategy=l.CancellationSenderStrategy=l.CancellationReceiverStrategy=l.ConnectionStrategy=l.ConnectionError=l.ConnectionErrors=l.LogTraceNotification=l.SetTraceNotification=l.TraceFormat=l.Trace=l.NullLogger=l.ProgressType=void 0;const f=u(83996);const h=u(18294);const g=u(6622);const v=u(42514);const k=u(30478);const O=u(2648);var M;(function(s){s.type=new g.NotificationType("$/cancelRequest")})(M||(M={}));var q;(function(s){s.type=new g.NotificationType("$/progress")})(q||(q={}));class ProgressType{constructor(){}}l.ProgressType=ProgressType;var B;(function(s){function is(s){return h.func(s)}s.is=is})(B||(B={}));l.NullLogger=Object.freeze({error:()=>{},warn:()=>{},info:()=>{},log:()=>{}});var Y;(function(s){s[s["Off"]=0]="Off";s[s["Messages"]=1]="Messages";s[s["Verbose"]=2]="Verbose"})(Y=l.Trace||(l.Trace={}));(function(s){function fromString(l){if(!h.string(l)){return s.Off}l=l.toLowerCase();switch(l){case"off":return s.Off;case"messages":return s.Messages;case"verbose":return s.Verbose;default:return s.Off}}s.fromString=fromString;function toString(l){switch(l){case s.Off:return"off";case s.Messages:return"messages";case s.Verbose:return"verbose";default:return"off"}}s.toString=toString})(Y=l.Trace||(l.Trace={}));var te;(function(s){s["Text"]="text";s["JSON"]="json"})(te=l.TraceFormat||(l.TraceFormat={}));(function(s){function fromString(l){l=l.toLowerCase();if(l==="json"){return s.JSON}else{return s.Text}}s.fromString=fromString})(te=l.TraceFormat||(l.TraceFormat={}));var re;(function(s){s.type=new g.NotificationType("$/setTrace")})(re=l.SetTraceNotification||(l.SetTraceNotification={}));var ne;(function(s){s.type=new g.NotificationType("$/logTrace")})(ne=l.LogTraceNotification||(l.LogTraceNotification={}));var ie;(function(s){s[s["Closed"]=1]="Closed";s[s["Disposed"]=2]="Disposed";s[s["AlreadyListening"]=3]="AlreadyListening"})(ie=l.ConnectionErrors||(l.ConnectionErrors={}));class ConnectionError extends Error{constructor(s,l){super(l);this.code=s;Object.setPrototypeOf(this,ConnectionError.prototype)}}l.ConnectionError=ConnectionError;var se;(function(s){function is(s){const l=s;return l&&h.func(l.cancelUndispatched)}s.is=is})(se=l.ConnectionStrategy||(l.ConnectionStrategy={}));var oe;(function(s){s.Message=Object.freeze({createCancellationTokenSource(s){return new O.CancellationTokenSource}});function is(s){const l=s;return l&&h.func(l.createCancellationTokenSource)}s.is=is})(oe=l.CancellationReceiverStrategy||(l.CancellationReceiverStrategy={}));var ae;(function(s){s.Message=Object.freeze({sendCancellation(s,l){s.sendNotification(M.type,{id:l})},cleanup(s){}});function is(s){const l=s;return l&&h.func(l.sendCancellation)&&h.func(l.cleanup)}s.is=is})(ae=l.CancellationSenderStrategy||(l.CancellationSenderStrategy={}));var le;(function(s){s.Message=Object.freeze({receiver:oe.Message,sender:ae.Message});function is(s){const l=s;return l&&oe.is(l.receiver)&&ae.is(l.sender)}s.is=is})(le=l.CancellationStrategy||(l.CancellationStrategy={}));var ue;(function(s){function is(s){const l=s;return l&&(le.is(l.cancellationStrategy)||se.is(l.connectionStrategy))}s.is=is})(ue=l.ConnectionOptions||(l.ConnectionOptions={}));var ce;(function(s){s[s["New"]=1]="New";s[s["Listening"]=2]="Listening";s[s["Closed"]=3]="Closed";s[s["Disposed"]=4]="Disposed"})(ce||(ce={}));function createMessageConnection(s,u,se,oe){const ae=se!==undefined?se:l.NullLogger;let ue=0;let fe=0;let pe=0;const de="2.0";let he=undefined;const ge=Object.create(null);let ve=undefined;const ye=Object.create(null);const we=new Map;let _e;let Se=new v.LinkedMap;let ke=Object.create(null);let Ce=Object.create(null);let Ee=Y.Off;let Re=te.Text;let Oe;let De=ce.New;const Ie=new k.Emitter;const Me=new k.Emitter;const Ne=new k.Emitter;const Le=new k.Emitter;const je=new k.Emitter;const Fe=oe&&oe.cancellationStrategy?oe.cancellationStrategy:le.Message;function createRequestQueueKey(s){if(s===null){throw new Error(`Can't send requests with id null since the response can't be correlated.`)}return"req-"+s.toString()}function createResponseQueueKey(s){if(s===null){return"res-unknown-"+(++pe).toString()}else{return"res-"+s.toString()}}function createNotificationQueueKey(){return"not-"+(++fe).toString()}function addMessageToQueue(s,l){if(g.isRequestMessage(l)){s.set(createRequestQueueKey(l.id),l)}else if(g.isResponseMessage(l)){s.set(createResponseQueueKey(l.id),l)}else{s.set(createNotificationQueueKey(),l)}}function cancelUndispatched(s){return undefined}function isListening(){return De===ce.Listening}function isClosed(){return De===ce.Closed}function isDisposed(){return De===ce.Disposed}function closeHandler(){if(De===ce.New||De===ce.Listening){De=ce.Closed;Me.fire(undefined)}}function readErrorHandler(s){Ie.fire([s,undefined,undefined])}function writeErrorHandler(s){Ie.fire(s)}s.onClose(closeHandler);s.onError(readErrorHandler);u.onClose(closeHandler);u.onError(writeErrorHandler);function triggerMessageQueue(){if(_e||Se.size===0){return}_e=f.default().timer.setImmediate((()=>{_e=undefined;processMessageQueue()}))}function processMessageQueue(){if(Se.size===0){return}const s=Se.shift();try{if(g.isRequestMessage(s)){handleRequest(s)}else if(g.isNotificationMessage(s)){handleNotification(s)}else if(g.isResponseMessage(s)){handleResponse(s)}else{handleInvalidMessage(s)}}finally{triggerMessageQueue()}}const callback=s=>{try{if(g.isNotificationMessage(s)&&s.method===M.type.method){const l=createRequestQueueKey(s.params.id);const f=Se.get(l);if(g.isRequestMessage(f)){const h=oe===null||oe===void 0?void 0:oe.connectionStrategy;const g=h&&h.cancelUndispatched?h.cancelUndispatched(f,cancelUndispatched):cancelUndispatched(f);if(g&&(g.error!==undefined||g.result!==undefined)){Se.delete(l);g.id=f.id;traceSendingResponse(g,s.method,Date.now());u.write(g);return}}}addMessageToQueue(Se,s)}finally{triggerMessageQueue()}};function handleRequest(s){if(isDisposed()){return}function reply(l,f,h){const v={jsonrpc:de,id:s.id};if(l instanceof g.ResponseError){v.error=l.toJson()}else{v.result=l===undefined?null:l}traceSendingResponse(v,f,h);u.write(v)}function replyError(l,f,h){const g={jsonrpc:de,id:s.id,error:l.toJson()};traceSendingResponse(g,f,h);u.write(g)}function replySuccess(l,f,h){if(l===undefined){l=null}const g={jsonrpc:de,id:s.id,result:l};traceSendingResponse(g,f,h);u.write(g)}traceReceivedRequest(s);const l=ge[s.method];let f;let v;if(l){f=l.type;v=l.handler}const k=Date.now();if(v||he){const l=String(s.id);const u=Fe.receiver.createCancellationTokenSource(l);Ce[l]=u;try{let O;if(v){if(s.params===undefined){if(f!==undefined&&f.numberOfParams!==0){replyError(new g.ResponseError(g.ErrorCodes.InvalidParams,`Request ${s.method} defines ${f.numberOfParams} params but recevied none.`),s.method,k);return}O=v(u.token)}else if(Array.isArray(s.params)){if(f!==undefined&&f.parameterStructures===g.ParameterStructures.byName){replyError(new g.ResponseError(g.ErrorCodes.InvalidParams,`Request ${s.method} defines parameters by name but received parameters by position`),s.method,k);return}O=v(...s.params,u.token)}else{if(f!==undefined&&f.parameterStructures===g.ParameterStructures.byPosition){replyError(new g.ResponseError(g.ErrorCodes.InvalidParams,`Request ${s.method} defines parameters by position but received parameters by name`),s.method,k);return}O=v(s.params,u.token)}}else if(he){O=he(s.method,s.params,u.token)}const M=O;if(!O){delete Ce[l];replySuccess(O,s.method,k)}else if(M.then){M.then((u=>{delete Ce[l];reply(u,s.method,k)}),(u=>{delete Ce[l];if(u instanceof g.ResponseError){replyError(u,s.method,k)}else if(u&&h.string(u.message)){replyError(new g.ResponseError(g.ErrorCodes.InternalError,`Request ${s.method} failed with message: ${u.message}`),s.method,k)}else{replyError(new g.ResponseError(g.ErrorCodes.InternalError,`Request ${s.method} failed unexpectedly without providing any details.`),s.method,k)}}))}else{delete Ce[l];reply(O,s.method,k)}}catch(u){delete Ce[l];if(u instanceof g.ResponseError){reply(u,s.method,k)}else if(u&&h.string(u.message)){replyError(new g.ResponseError(g.ErrorCodes.InternalError,`Request ${s.method} failed with message: ${u.message}`),s.method,k)}else{replyError(new g.ResponseError(g.ErrorCodes.InternalError,`Request ${s.method} failed unexpectedly without providing any details.`),s.method,k)}}}else{replyError(new g.ResponseError(g.ErrorCodes.MethodNotFound,`Unhandled method ${s.method}`),s.method,k)}}function handleResponse(s){if(isDisposed()){return}if(s.id===null){if(s.error){ae.error(`Received response message without id: Error is: \n${JSON.stringify(s.error,undefined,4)}`)}else{ae.error(`Received response message without id. No further error information provided.`)}}else{const l=String(s.id);const u=ke[l];traceReceivedResponse(s,u);if(u){delete ke[l];try{if(s.error){const l=s.error;u.reject(new g.ResponseError(l.code,l.message,l.data))}else if(s.result!==undefined){u.resolve(s.result)}else{throw new Error("Should never happen.")}}catch(s){if(s.message){ae.error(`Response handler '${u.method}' failed with message: ${s.message}`)}else{ae.error(`Response handler '${u.method}' failed unexpectedly.`)}}}}}function handleNotification(s){if(isDisposed()){return}let l=undefined;let u;if(s.method===M.type.method){u=s=>{const l=s.id;const u=Ce[String(l)];if(u){u.cancel()}}}else{const f=ye[s.method];if(f){u=f.handler;l=f.type}}if(u||ve){try{traceReceivedNotification(s);if(u){if(s.params===undefined){if(l!==undefined){if(l.numberOfParams!==0&&l.parameterStructures!==g.ParameterStructures.byName){ae.error(`Notification ${s.method} defines ${l.numberOfParams} params but recevied none.`)}}u()}else if(Array.isArray(s.params)){if(l!==undefined){if(l.parameterStructures===g.ParameterStructures.byName){ae.error(`Notification ${s.method} defines parameters by name but received parameters by position`)}if(l.numberOfParams!==s.params.length){ae.error(`Notification ${s.method} defines ${l.numberOfParams} params but received ${s.params.length} argumennts`)}}u(...s.params)}else{if(l!==undefined&&l.parameterStructures===g.ParameterStructures.byPosition){ae.error(`Notification ${s.method} defines parameters by position but received parameters by name`)}u(s.params)}}else if(ve){ve(s.method,s.params)}}catch(l){if(l.message){ae.error(`Notification handler '${s.method}' failed with message: ${l.message}`)}else{ae.error(`Notification handler '${s.method}' failed unexpectedly.`)}}}else{Ne.fire(s)}}function handleInvalidMessage(s){if(!s){ae.error("Received empty message.");return}ae.error(`Received message which is neither a response nor a notification message:\n${JSON.stringify(s,null,4)}`);const l=s;if(h.string(l.id)||h.number(l.id)){const s=String(l.id);const u=ke[s];if(u){u.reject(new Error("The received response has neither a result nor an error property."))}}}function traceSendingRequest(s){if(Ee===Y.Off||!Oe){return}if(Re===te.Text){let l=undefined;if(Ee===Y.Verbose&&s.params){l=`Params: ${JSON.stringify(s.params,null,4)}\n\n`}Oe.log(`Sending request '${s.method} - (${s.id})'.`,l)}else{logLSPMessage("send-request",s)}}function traceSendingNotification(s){if(Ee===Y.Off||!Oe){return}if(Re===te.Text){let l=undefined;if(Ee===Y.Verbose){if(s.params){l=`Params: ${JSON.stringify(s.params,null,4)}\n\n`}else{l="No parameters provided.\n\n"}}Oe.log(`Sending notification '${s.method}'.`,l)}else{logLSPMessage("send-notification",s)}}function traceSendingResponse(s,l,u){if(Ee===Y.Off||!Oe){return}if(Re===te.Text){let f=undefined;if(Ee===Y.Verbose){if(s.error&&s.error.data){f=`Error data: ${JSON.stringify(s.error.data,null,4)}\n\n`}else{if(s.result){f=`Result: ${JSON.stringify(s.result,null,4)}\n\n`}else if(s.error===undefined){f="No result returned.\n\n"}}}Oe.log(`Sending response '${l} - (${s.id})'. Processing request took ${Date.now()-u}ms`,f)}else{logLSPMessage("send-response",s)}}function traceReceivedRequest(s){if(Ee===Y.Off||!Oe){return}if(Re===te.Text){let l=undefined;if(Ee===Y.Verbose&&s.params){l=`Params: ${JSON.stringify(s.params,null,4)}\n\n`}Oe.log(`Received request '${s.method} - (${s.id})'.`,l)}else{logLSPMessage("receive-request",s)}}function traceReceivedNotification(s){if(Ee===Y.Off||!Oe||s.method===ne.type.method){return}if(Re===te.Text){let l=undefined;if(Ee===Y.Verbose){if(s.params){l=`Params: ${JSON.stringify(s.params,null,4)}\n\n`}else{l="No parameters provided.\n\n"}}Oe.log(`Received notification '${s.method}'.`,l)}else{logLSPMessage("receive-notification",s)}}function traceReceivedResponse(s,l){if(Ee===Y.Off||!Oe){return}if(Re===te.Text){let u=undefined;if(Ee===Y.Verbose){if(s.error&&s.error.data){u=`Error data: ${JSON.stringify(s.error.data,null,4)}\n\n`}else{if(s.result){u=`Result: ${JSON.stringify(s.result,null,4)}\n\n`}else if(s.error===undefined){u="No result returned.\n\n"}}}if(l){const f=s.error?` Request failed: ${s.error.message} (${s.error.code}).`:"";Oe.log(`Received response '${l.method} - (${s.id})' in ${Date.now()-l.timerStart}ms.${f}`,u)}else{Oe.log(`Received response ${s.id} without active response promise.`,u)}}else{logLSPMessage("receive-response",s)}}function logLSPMessage(s,l){if(!Oe||Ee===Y.Off){return}const u={isLSPMessage:true,type:s,message:l,timestamp:Date.now()};Oe.log(u)}function throwIfClosedOrDisposed(){if(isClosed()){throw new ConnectionError(ie.Closed,"Connection is closed.")}if(isDisposed()){throw new ConnectionError(ie.Disposed,"Connection is disposed.")}}function throwIfListening(){if(isListening()){throw new ConnectionError(ie.AlreadyListening,"Connection is already listening")}}function throwIfNotListening(){if(!isListening()){throw new Error("Call listen() first.")}}function undefinedToNull(s){if(s===undefined){return null}else{return s}}function nullToUndefined(s){if(s===null){return undefined}else{return s}}function isNamedParam(s){return s!==undefined&&s!==null&&!Array.isArray(s)&&typeof s==="object"}function computeSingleParam(s,l){switch(s){case g.ParameterStructures.auto:if(isNamedParam(l)){return nullToUndefined(l)}else{return[undefinedToNull(l)]}break;case g.ParameterStructures.byName:if(!isNamedParam(l)){throw new Error(`Recevied parameters by name but param is not an object literal.`)}return nullToUndefined(l);case g.ParameterStructures.byPosition:return[undefinedToNull(l)];default:throw new Error(`Unknown parameter structure ${s.toString()}`)}}function computeMessageParams(s,l){let u;const f=s.numberOfParams;switch(f){case 0:u=undefined;break;case 1:u=computeSingleParam(s.parameterStructures,l[0]);break;default:u=[];for(let s=0;s<l.length&&s<f;s++){u.push(undefinedToNull(l[s]))}if(l.length<f){for(let s=l.length;s<f;s++){u.push(null)}}break}return u}const qe={sendNotification:(s,...l)=>{throwIfClosedOrDisposed();let f;let v;if(h.string(s)){f=s;const u=l[0];let h=0;let k=g.ParameterStructures.auto;if(g.ParameterStructures.is(u)){h=1;k=u}let O=l.length;const M=O-h;switch(M){case 0:v=undefined;break;case 1:v=computeSingleParam(k,l[h]);break;default:if(k===g.ParameterStructures.byName){throw new Error(`Recevied ${M} parameters for 'by Name' notification parameter structure.`)}v=l.slice(h,O).map((s=>undefinedToNull(s)));break}}else{const u=l;f=s.method;v=computeMessageParams(s,u)}const k={jsonrpc:de,method:f,params:v};traceSendingNotification(k);u.write(k)},onNotification:(s,l)=>{throwIfClosedOrDisposed();let u;if(h.func(s)){ve=s}else if(l){if(h.string(s)){u=s;ye[s]={type:undefined,handler:l}}else{u=s.method;ye[s.method]={type:s,handler:l}}}return{dispose:()=>{if(u!==undefined){delete ye[u]}else{ve=undefined}}}},onProgress:(s,l,u)=>{if(we.has(l)){throw new Error(`Progress handler for token ${l} already registered`)}we.set(l,u);return{dispose:()=>{we.delete(l)}}},sendProgress:(s,l,u)=>{qe.sendNotification(q.type,{token:l,value:u})},onUnhandledProgress:Le.event,sendRequest:(s,...l)=>{throwIfClosedOrDisposed();throwIfNotListening();let f;let v;let k=undefined;if(h.string(s)){f=s;const u=l[0];const h=l[l.length-1];let M=0;let q=g.ParameterStructures.auto;if(g.ParameterStructures.is(u)){M=1;q=u}let B=l.length;if(O.CancellationToken.is(h)){B=B-1;k=h}const Y=B-M;switch(Y){case 0:v=undefined;break;case 1:v=computeSingleParam(q,l[M]);break;default:if(q===g.ParameterStructures.byName){throw new Error(`Recevied ${Y} parameters for 'by Name' request parameter structure.`)}v=l.slice(M,B).map((s=>undefinedToNull(s)));break}}else{const u=l;f=s.method;v=computeMessageParams(s,u);const h=s.numberOfParams;k=O.CancellationToken.is(u[h])?u[h]:undefined}const M=ue++;let q;if(k){q=k.onCancellationRequested((()=>{Fe.sender.sendCancellation(qe,M)}))}const B=new Promise(((s,l)=>{const h={jsonrpc:de,id:M,method:f,params:v};const resolveWithCleanup=l=>{s(l);Fe.sender.cleanup(M);q===null||q===void 0?void 0:q.dispose()};const rejectWithCleanup=s=>{l(s);Fe.sender.cleanup(M);q===null||q===void 0?void 0:q.dispose()};let k={method:f,timerStart:Date.now(),resolve:resolveWithCleanup,reject:rejectWithCleanup};traceSendingRequest(h);try{u.write(h)}catch(s){k.reject(new g.ResponseError(g.ErrorCodes.MessageWriteError,s.message?s.message:"Unknown reason"));k=null}if(k){ke[String(M)]=k}}));return B},onRequest:(s,l)=>{throwIfClosedOrDisposed();let u=null;if(B.is(s)){u=undefined;he=s}else if(h.string(s)){u=null;if(l!==undefined){u=s;ge[s]={handler:l,type:undefined}}}else{if(l!==undefined){u=s.method;ge[s.method]={type:s,handler:l}}}return{dispose:()=>{if(u===null){return}if(u!==undefined){delete ge[u]}else{he=undefined}}}},trace:(s,l,u)=>{let f=false;let g=te.Text;if(u!==undefined){if(h.boolean(u)){f=u}else{f=u.sendNotification||false;g=u.traceFormat||te.Text}}Ee=s;Re=g;if(Ee===Y.Off){Oe=undefined}else{Oe=l}if(f&&!isClosed()&&!isDisposed()){qe.sendNotification(re.type,{value:Y.toString(s)})}},onError:Ie.event,onClose:Me.event,onUnhandledNotification:Ne.event,onDispose:je.event,end:()=>{u.end()},dispose:()=>{if(isDisposed()){return}De=ce.Disposed;je.fire(undefined);const l=new Error("Connection got disposed.");Object.keys(ke).forEach((s=>{ke[s].reject(l)}));ke=Object.create(null);Ce=Object.create(null);Se=new v.LinkedMap;if(h.func(u.dispose)){u.dispose()}if(h.func(s.dispose)){s.dispose()}},listen:()=>{throwIfClosedOrDisposed();throwIfListening();De=ce.Listening;s.listen(callback)},inspect:()=>{f.default().console.log("inspect")}};qe.onNotification(ne.type,(s=>{if(Ee===Y.Off||!Oe){return}Oe.log(s.message,Ee===Y.Verbose?s.verbose:undefined)}));qe.onNotification(q.type,(s=>{const l=we.get(s.token);if(l){l(s.value)}else{Le.fire(s)}}));return qe}l.createMessageConnection=createMessageConnection},24788:(s,l)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.Disposable=void 0;var u;(function(s){function create(s){return{dispose:s}}s.create=create})(u=l.Disposable||(l.Disposable={}))},30478:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.Emitter=l.Event=void 0;const f=u(83996);var h;(function(s){const l={dispose(){}};s.None=function(){return l}})(h=l.Event||(l.Event={}));class CallbackList{add(s,l=null,u){if(!this._callbacks){this._callbacks=[];this._contexts=[]}this._callbacks.push(s);this._contexts.push(l);if(Array.isArray(u)){u.push({dispose:()=>this.remove(s,l)})}}remove(s,l=null){if(!this._callbacks){return}let u=false;for(let f=0,h=this._callbacks.length;f<h;f++){if(this._callbacks[f]===s){if(this._contexts[f]===l){this._callbacks.splice(f,1);this._contexts.splice(f,1);return}else{u=true}}}if(u){throw new Error("When adding a listener with a context, you should remove it with the same context")}}invoke(...s){if(!this._callbacks){return[]}const l=[],u=this._callbacks.slice(0),h=this._contexts.slice(0);for(let g=0,v=u.length;g<v;g++){try{l.push(u[g].apply(h[g],s))}catch(s){f.default().console.error(s)}}return l}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=undefined;this._contexts=undefined}}class Emitter{constructor(s){this._options=s}get event(){if(!this._event){this._event=(s,l,u)=>{if(!this._callbacks){this._callbacks=new CallbackList}if(this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()){this._options.onFirstListenerAdd(this)}this._callbacks.add(s,l);const f={dispose:()=>{if(!this._callbacks){return}this._callbacks.remove(s,l);f.dispose=Emitter._noop;if(this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()){this._options.onLastListenerRemove(this)}}};if(Array.isArray(u)){u.push(f)}return f}}return this._event}fire(s){if(this._callbacks){this._callbacks.invoke.call(this._callbacks,s)}}dispose(){if(this._callbacks){this._callbacks.dispose();this._callbacks=undefined}}}l.Emitter=Emitter;Emitter._noop=function(){}},18294:(s,l)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.stringArray=l.array=l.func=l.error=l.number=l.string=l.boolean=void 0;function boolean(s){return s===true||s===false}l.boolean=boolean;function string(s){return typeof s==="string"||s instanceof String}l.string=string;function number(s){return typeof s==="number"||s instanceof Number}l.number=number;function error(s){return s instanceof Error}l.error=error;function func(s){return typeof s==="function"}l.func=func;function array(s){return Array.isArray(s)}l.array=array;function stringArray(s){return array(s)&&s.every((s=>string(s)))}l.stringArray=stringArray},42514:(s,l)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.LRUCache=l.LinkedMap=l.Touch=void 0;var u;(function(s){s.None=0;s.First=1;s.AsOld=s.First;s.Last=2;s.AsNew=s.Last})(u=l.Touch||(l.Touch={}));class LinkedMap{constructor(){this[Symbol.toStringTag]="LinkedMap";this._map=new Map;this._head=undefined;this._tail=undefined;this._size=0;this._state=0}clear(){this._map.clear();this._head=undefined;this._tail=undefined;this._size=0;this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){var s;return(s=this._head)===null||s===void 0?void 0:s.value}get last(){var s;return(s=this._tail)===null||s===void 0?void 0:s.value}has(s){return this._map.has(s)}get(s,l=u.None){const f=this._map.get(s);if(!f){return undefined}if(l!==u.None){this.touch(f,l)}return f.value}set(s,l,f=u.None){let h=this._map.get(s);if(h){h.value=l;if(f!==u.None){this.touch(h,f)}}else{h={key:s,value:l,next:undefined,previous:undefined};switch(f){case u.None:this.addItemLast(h);break;case u.First:this.addItemFirst(h);break;case u.Last:this.addItemLast(h);break;default:this.addItemLast(h);break}this._map.set(s,h);this._size++}return this}delete(s){return!!this.remove(s)}remove(s){const l=this._map.get(s);if(!l){return undefined}this._map.delete(s);this.removeItem(l);this._size--;return l.value}shift(){if(!this._head&&!this._tail){return undefined}if(!this._head||!this._tail){throw new Error("Invalid list")}const s=this._head;this._map.delete(s.key);this.removeItem(s);this._size--;return s.value}forEach(s,l){const u=this._state;let f=this._head;while(f){if(l){s.bind(l)(f.value,f.key,this)}else{s(f.value,f.key,this)}if(this._state!==u){throw new Error(`LinkedMap got modified during iteration.`)}f=f.next}}keys(){const s=this;const l=this._state;let u=this._head;const f={[Symbol.iterator](){return f},next(){if(s._state!==l){throw new Error(`LinkedMap got modified during iteration.`)}if(u){const s={value:u.key,done:false};u=u.next;return s}else{return{value:undefined,done:true}}}};return f}values(){const s=this;const l=this._state;let u=this._head;const f={[Symbol.iterator](){return f},next(){if(s._state!==l){throw new Error(`LinkedMap got modified during iteration.`)}if(u){const s={value:u.value,done:false};u=u.next;return s}else{return{value:undefined,done:true}}}};return f}entries(){const s=this;const l=this._state;let u=this._head;const f={[Symbol.iterator](){return f},next(){if(s._state!==l){throw new Error(`LinkedMap got modified during iteration.`)}if(u){const s={value:[u.key,u.value],done:false};u=u.next;return s}else{return{value:undefined,done:true}}}};return f}[Symbol.iterator](){return this.entries()}trimOld(s){if(s>=this.size){return}if(s===0){this.clear();return}let l=this._head;let u=this.size;while(l&&u>s){this._map.delete(l.key);l=l.next;u--}this._head=l;this._size=u;if(l){l.previous=undefined}this._state++}addItemFirst(s){if(!this._head&&!this._tail){this._tail=s}else if(!this._head){throw new Error("Invalid list")}else{s.next=this._head;this._head.previous=s}this._head=s;this._state++}addItemLast(s){if(!this._head&&!this._tail){this._head=s}else if(!this._tail){throw new Error("Invalid list")}else{s.previous=this._tail;this._tail.next=s}this._tail=s;this._state++}removeItem(s){if(s===this._head&&s===this._tail){this._head=undefined;this._tail=undefined}else if(s===this._head){if(!s.next){throw new Error("Invalid list")}s.next.previous=undefined;this._head=s.next}else if(s===this._tail){if(!s.previous){throw new Error("Invalid list")}s.previous.next=undefined;this._tail=s.previous}else{const l=s.next;const u=s.previous;if(!l||!u){throw new Error("Invalid list")}l.previous=u;u.next=l}s.next=undefined;s.previous=undefined;this._state++}touch(s,l){if(!this._head||!this._tail){throw new Error("Invalid list")}if(l!==u.First&&l!==u.Last){return}if(l===u.First){if(s===this._head){return}const l=s.next;const u=s.previous;if(s===this._tail){u.next=undefined;this._tail=u}else{l.previous=u;u.next=l}s.previous=undefined;s.next=this._head;this._head.previous=s;this._head=s;this._state++}else if(l===u.Last){if(s===this._tail){return}const l=s.next;const u=s.previous;if(s===this._head){l.previous=undefined;this._head=l}else{l.previous=u;u.next=l}s.next=undefined;s.previous=this._tail;this._tail.next=s;this._tail=s;this._state++}}toJSON(){const s=[];this.forEach(((l,u)=>{s.push([u,l])}));return s}fromJSON(s){this.clear();for(const[l,u]of s){this.set(l,u)}}}l.LinkedMap=LinkedMap;class LRUCache extends LinkedMap{constructor(s,l=1){super();this._limit=s;this._ratio=Math.min(Math.max(0,l),1)}get limit(){return this._limit}set limit(s){this._limit=s;this.checkTrim()}get ratio(){return this._ratio}set ratio(s){this._ratio=Math.min(Math.max(0,s),1);this.checkTrim()}get(s,l=u.AsNew){return super.get(s,l)}peek(s){return super.get(s,u.None)}set(s,l){super.set(s,l,u.Last);this.checkTrim();return this}checkTrim(){if(this.size>this._limit){this.trimOld(Math.round(this._limit*this._ratio))}}}l.LRUCache=LRUCache},11228:(s,l)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.AbstractMessageBuffer=void 0;const u=13;const f=10;const h="\r\n";class AbstractMessageBuffer{constructor(s="utf-8"){this._encoding=s;this._chunks=[];this._totalLength=0}get encoding(){return this._encoding}append(s){const l=typeof s==="string"?this.fromString(s,this._encoding):s;this._chunks.push(l);this._totalLength+=l.byteLength}tryReadHeaders(){if(this._chunks.length===0){return undefined}let s=0;let l=0;let g=0;let v=0;e:while(l<this._chunks.length){const h=this._chunks[l];g=0;t:while(g<h.length){const l=h[g];switch(l){case u:switch(s){case 0:s=1;break;case 2:s=3;break;default:s=0}break;case f:switch(s){case 1:s=2;break;case 3:s=4;g++;break e;default:s=0}break;default:s=0}g++}v+=h.byteLength;l++}if(s!==4){return undefined}const k=this._read(v+g);const O=new Map;const M=this.toString(k,"ascii").split(h);if(M.length<2){return O}for(let s=0;s<M.length-2;s++){const l=M[s];const u=l.indexOf(":");if(u===-1){throw new Error("Message header must separate key and value using :")}const f=l.substr(0,u);const h=l.substr(u+1).trim();O.set(f,h)}return O}tryReadBody(s){if(this._totalLength<s){return undefined}return this._read(s)}get numberOfBytes(){return this._totalLength}_read(s){if(s===0){return this.emptyBuffer()}if(s>this._totalLength){throw new Error(`Cannot read so many bytes!`)}if(this._chunks[0].byteLength===s){const l=this._chunks[0];this._chunks.shift();this._totalLength-=s;return this.asNative(l)}if(this._chunks[0].byteLength>s){const l=this._chunks[0];const u=this.asNative(l,s);this._chunks[0]=l.slice(s);this._totalLength-=s;return u}const l=this.allocNative(s);let u=0;let f=0;while(s>0){const h=this._chunks[f];if(h.byteLength>s){const g=h.slice(0,s);l.set(g,u);u+=s;this._chunks[f]=h.slice(s);this._totalLength-=s;s-=s}else{l.set(h,u);u+=h.byteLength;this._chunks.shift();this._totalLength-=h.byteLength;s-=h.byteLength}}return l}}l.AbstractMessageBuffer=AbstractMessageBuffer},1505:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.ReadableStreamMessageReader=l.AbstractMessageReader=l.MessageReader=void 0;const f=u(83996);const h=u(18294);const g=u(30478);var v;(function(s){function is(s){let l=s;return l&&h.func(l.listen)&&h.func(l.dispose)&&h.func(l.onError)&&h.func(l.onClose)&&h.func(l.onPartialMessage)}s.is=is})(v=l.MessageReader||(l.MessageReader={}));class AbstractMessageReader{constructor(){this.errorEmitter=new g.Emitter;this.closeEmitter=new g.Emitter;this.partialMessageEmitter=new g.Emitter}dispose(){this.errorEmitter.dispose();this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(s){this.errorEmitter.fire(this.asError(s))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(undefined)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(s){this.partialMessageEmitter.fire(s)}asError(s){if(s instanceof Error){return s}else{return new Error(`Reader received error. Reason: ${h.string(s.message)?s.message:"unknown"}`)}}}l.AbstractMessageReader=AbstractMessageReader;var k;(function(s){function fromOptions(s){var l;let u;let h;let g;const v=new Map;let k;const O=new Map;if(s===undefined||typeof s==="string"){u=s!==null&&s!==void 0?s:"utf-8"}else{u=(l=s.charset)!==null&&l!==void 0?l:"utf-8";if(s.contentDecoder!==undefined){g=s.contentDecoder;v.set(g.name,g)}if(s.contentDecoders!==undefined){for(const l of s.contentDecoders){v.set(l.name,l)}}if(s.contentTypeDecoder!==undefined){k=s.contentTypeDecoder;O.set(k.name,k)}if(s.contentTypeDecoders!==undefined){for(const l of s.contentTypeDecoders){O.set(l.name,l)}}}if(k===undefined){k=f.default().applicationJson.decoder;O.set(k.name,k)}return{charset:u,contentDecoder:g,contentDecoders:v,contentTypeDecoder:k,contentTypeDecoders:O}}s.fromOptions=fromOptions})(k||(k={}));class ReadableStreamMessageReader extends AbstractMessageReader{constructor(s,l){super();this.readable=s;this.options=k.fromOptions(l);this.buffer=f.default().messageBuffer.create(this.options.charset);this._partialMessageTimeout=1e4;this.nextMessageLength=-1;this.messageToken=0}set partialMessageTimeout(s){this._partialMessageTimeout=s}get partialMessageTimeout(){return this._partialMessageTimeout}listen(s){this.nextMessageLength=-1;this.messageToken=0;this.partialMessageTimer=undefined;this.callback=s;const l=this.readable.onData((s=>{this.onData(s)}));this.readable.onError((s=>this.fireError(s)));this.readable.onClose((()=>this.fireClose()));return l}onData(s){this.buffer.append(s);while(true){if(this.nextMessageLength===-1){const s=this.buffer.tryReadHeaders();if(!s){return}const l=s.get("Content-Length");if(!l){throw new Error("Header must provide a Content-Length property.")}const u=parseInt(l);if(isNaN(u)){throw new Error("Content-Length value must be a number.")}this.nextMessageLength=u}const s=this.buffer.tryReadBody(this.nextMessageLength);if(s===undefined){this.setPartialMessageTimer();return}this.clearPartialMessageTimer();this.nextMessageLength=-1;let l;if(this.options.contentDecoder!==undefined){l=this.options.contentDecoder.decode(s)}else{l=Promise.resolve(s)}l.then((s=>{this.options.contentTypeDecoder.decode(s,this.options).then((s=>{this.callback(s)}),(s=>{this.fireError(s)}))}),(s=>{this.fireError(s)}))}}clearPartialMessageTimer(){if(this.partialMessageTimer){f.default().timer.clearTimeout(this.partialMessageTimer);this.partialMessageTimer=undefined}}setPartialMessageTimer(){this.clearPartialMessageTimer();if(this._partialMessageTimeout<=0){return}this.partialMessageTimer=f.default().timer.setTimeout(((s,l)=>{this.partialMessageTimer=undefined;if(s===this.messageToken){this.firePartialMessage({messageToken:s,waitingTime:l});this.setPartialMessageTimer()}}),this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout)}}l.ReadableStreamMessageReader=ReadableStreamMessageReader},27918:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.WriteableStreamMessageWriter=l.AbstractMessageWriter=l.MessageWriter=void 0;const f=u(83996);const h=u(18294);const g=u(78264);const v=u(30478);const k="Content-Length: ";const O="\r\n";var M;(function(s){function is(s){let l=s;return l&&h.func(l.dispose)&&h.func(l.onClose)&&h.func(l.onError)&&h.func(l.write)}s.is=is})(M=l.MessageWriter||(l.MessageWriter={}));class AbstractMessageWriter{constructor(){this.errorEmitter=new v.Emitter;this.closeEmitter=new v.Emitter}dispose(){this.errorEmitter.dispose();this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(s,l,u){this.errorEmitter.fire([this.asError(s),l,u])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(undefined)}asError(s){if(s instanceof Error){return s}else{return new Error(`Writer received error. Reason: ${h.string(s.message)?s.message:"unknown"}`)}}}l.AbstractMessageWriter=AbstractMessageWriter;var q;(function(s){function fromOptions(s){var l,u;if(s===undefined||typeof s==="string"){return{charset:s!==null&&s!==void 0?s:"utf-8",contentTypeEncoder:f.default().applicationJson.encoder}}else{return{charset:(l=s.charset)!==null&&l!==void 0?l:"utf-8",contentEncoder:s.contentEncoder,contentTypeEncoder:(u=s.contentTypeEncoder)!==null&&u!==void 0?u:f.default().applicationJson.encoder}}}s.fromOptions=fromOptions})(q||(q={}));class WriteableStreamMessageWriter extends AbstractMessageWriter{constructor(s,l){super();this.writable=s;this.options=q.fromOptions(l);this.errorCount=0;this.writeSemaphore=new g.Semaphore(1);this.writable.onError((s=>this.fireError(s)));this.writable.onClose((()=>this.fireClose()))}async write(s){return this.writeSemaphore.lock((async()=>{const l=this.options.contentTypeEncoder.encode(s,this.options).then((s=>{if(this.options.contentEncoder!==undefined){return this.options.contentEncoder.encode(s)}else{return s}}));return l.then((l=>{const u=[];u.push(k,l.byteLength.toString(),O);u.push(O);return this.doWrite(s,u,l)}),(s=>{this.fireError(s);throw s}))}))}async doWrite(s,l,u){try{await this.writable.write(l.join(""),"ascii");return this.writable.write(u)}catch(l){this.handleError(l,s);return Promise.reject(l)}}handleError(s,l){this.errorCount++;this.fireError(s,l,this.errorCount)}end(){this.writable.end()}}l.WriteableStreamMessageWriter=WriteableStreamMessageWriter},6622:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.isResponseMessage=l.isNotificationMessage=l.isRequestMessage=l.NotificationType9=l.NotificationType8=l.NotificationType7=l.NotificationType6=l.NotificationType5=l.NotificationType4=l.NotificationType3=l.NotificationType2=l.NotificationType1=l.NotificationType0=l.NotificationType=l.RequestType9=l.RequestType8=l.RequestType7=l.RequestType6=l.RequestType5=l.RequestType4=l.RequestType3=l.RequestType2=l.RequestType1=l.RequestType=l.RequestType0=l.AbstractMessageSignature=l.ParameterStructures=l.ResponseError=l.ErrorCodes=void 0;const f=u(18294);var h;(function(s){s.ParseError=-32700;s.InvalidRequest=-32600;s.MethodNotFound=-32601;s.InvalidParams=-32602;s.InternalError=-32603;s.jsonrpcReservedErrorRangeStart=-32099;s.serverErrorStart=s.jsonrpcReservedErrorRangeStart;s.MessageWriteError=-32099;s.MessageReadError=-32098;s.ServerNotInitialized=-32002;s.UnknownErrorCode=-32001;s.jsonrpcReservedErrorRangeEnd=-32e3;s.serverErrorEnd=s.jsonrpcReservedErrorRangeEnd})(h=l.ErrorCodes||(l.ErrorCodes={}));class ResponseError extends Error{constructor(s,l,u){super(l);this.code=f.number(s)?s:h.UnknownErrorCode;this.data=u;Object.setPrototypeOf(this,ResponseError.prototype)}toJson(){return{code:this.code,message:this.message,data:this.data}}}l.ResponseError=ResponseError;class ParameterStructures{constructor(s){this.kind=s}static is(s){return s===ParameterStructures.auto||s===ParameterStructures.byName||s===ParameterStructures.byPosition}toString(){return this.kind}}l.ParameterStructures=ParameterStructures;ParameterStructures.auto=new ParameterStructures("auto");ParameterStructures.byPosition=new ParameterStructures("byPosition");ParameterStructures.byName=new ParameterStructures("byName");class AbstractMessageSignature{constructor(s,l){this.method=s;this.numberOfParams=l}get parameterStructures(){return ParameterStructures.auto}}l.AbstractMessageSignature=AbstractMessageSignature;class RequestType0 extends AbstractMessageSignature{constructor(s){super(s,0)}}l.RequestType0=RequestType0;class RequestType extends AbstractMessageSignature{constructor(s,l=ParameterStructures.auto){super(s,1);this._parameterStructures=l}get parameterStructures(){return this._parameterStructures}}l.RequestType=RequestType;class RequestType1 extends AbstractMessageSignature{constructor(s,l=ParameterStructures.auto){super(s,1);this._parameterStructures=l}get parameterStructures(){return this._parameterStructures}}l.RequestType1=RequestType1;class RequestType2 extends AbstractMessageSignature{constructor(s){super(s,2)}}l.RequestType2=RequestType2;class RequestType3 extends AbstractMessageSignature{constructor(s){super(s,3)}}l.RequestType3=RequestType3;class RequestType4 extends AbstractMessageSignature{constructor(s){super(s,4)}}l.RequestType4=RequestType4;class RequestType5 extends AbstractMessageSignature{constructor(s){super(s,5)}}l.RequestType5=RequestType5;class RequestType6 extends AbstractMessageSignature{constructor(s){super(s,6)}}l.RequestType6=RequestType6;class RequestType7 extends AbstractMessageSignature{constructor(s){super(s,7)}}l.RequestType7=RequestType7;class RequestType8 extends AbstractMessageSignature{constructor(s){super(s,8)}}l.RequestType8=RequestType8;class RequestType9 extends AbstractMessageSignature{constructor(s){super(s,9)}}l.RequestType9=RequestType9;class NotificationType extends AbstractMessageSignature{constructor(s,l=ParameterStructures.auto){super(s,1);this._parameterStructures=l}get parameterStructures(){return this._parameterStructures}}l.NotificationType=NotificationType;class NotificationType0 extends AbstractMessageSignature{constructor(s){super(s,0)}}l.NotificationType0=NotificationType0;class NotificationType1 extends AbstractMessageSignature{constructor(s,l=ParameterStructures.auto){super(s,1);this._parameterStructures=l}get parameterStructures(){return this._parameterStructures}}l.NotificationType1=NotificationType1;class NotificationType2 extends AbstractMessageSignature{constructor(s){super(s,2)}}l.NotificationType2=NotificationType2;class NotificationType3 extends AbstractMessageSignature{constructor(s){super(s,3)}}l.NotificationType3=NotificationType3;class NotificationType4 extends AbstractMessageSignature{constructor(s){super(s,4)}}l.NotificationType4=NotificationType4;class NotificationType5 extends AbstractMessageSignature{constructor(s){super(s,5)}}l.NotificationType5=NotificationType5;class NotificationType6 extends AbstractMessageSignature{constructor(s){super(s,6)}}l.NotificationType6=NotificationType6;class NotificationType7 extends AbstractMessageSignature{constructor(s){super(s,7)}}l.NotificationType7=NotificationType7;class NotificationType8 extends AbstractMessageSignature{constructor(s){super(s,8)}}l.NotificationType8=NotificationType8;class NotificationType9 extends AbstractMessageSignature{constructor(s){super(s,9)}}l.NotificationType9=NotificationType9;function isRequestMessage(s){const l=s;return l&&f.string(l.method)&&(f.string(l.id)||f.number(l.id))}l.isRequestMessage=isRequestMessage;function isNotificationMessage(s){const l=s;return l&&f.string(l.method)&&s.id===void 0}l.isNotificationMessage=isNotificationMessage;function isResponseMessage(s){const l=s;return l&&(l.result!==void 0||!!l.error)&&(f.string(l.id)||f.number(l.id)||l.id===null)}l.isResponseMessage=isResponseMessage},83996:(s,l)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});let u;function RAL(){if(u===undefined){throw new Error(`No runtime abstraction layer installed`)}return u}(function(s){function install(s){if(s===undefined){throw new Error(`No runtime abstraction layer provided`)}u=s}s.install=install})(RAL||(RAL={}));l.default=RAL},78264:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.Semaphore=void 0;const f=u(83996);class Semaphore{constructor(s=1){if(s<=0){throw new Error("Capacity must be greater than 0")}this._capacity=s;this._active=0;this._waiting=[]}lock(s){return new Promise(((l,u)=>{this._waiting.push({thunk:s,resolve:l,reject:u});this.runNext()}))}get active(){return this._active}runNext(){if(this._waiting.length===0||this._active===this._capacity){return}f.default().timer.setImmediate((()=>this.doRunNext()))}doRunNext(){if(this._waiting.length===0||this._active===this._capacity){return}const s=this._waiting.shift();this._active++;if(this._active>this._capacity){throw new Error(`To many thunks active`)}try{const l=s.thunk();if(l instanceof Promise){l.then((l=>{this._active--;s.resolve(l);this.runNext()}),(l=>{this._active--;s.reject(l);this.runNext()}))}else{this._active--;s.resolve(l);this.runNext()}}catch(l){this._active--;s.reject(l);this.runNext()}}}l.Semaphore=Semaphore},41983:function(s,l,u){"use strict";var f=this&&this.__createBinding||(Object.create?function(s,l,u,f){if(f===undefined)f=u;Object.defineProperty(s,f,{enumerable:true,get:function(){return l[u]}})}:function(s,l,u,f){if(f===undefined)f=u;s[f]=l[u]});var h=this&&this.__exportStar||function(s,l){for(var u in s)if(u!=="default"&&!Object.prototype.hasOwnProperty.call(l,u))f(l,s,u)};Object.defineProperty(l,"__esModule",{value:true});l.createMessageConnection=l.createServerSocketTransport=l.createClientSocketTransport=l.createServerPipeTransport=l.createClientPipeTransport=l.generateRandomPipeName=l.StreamMessageWriter=l.StreamMessageReader=l.SocketMessageWriter=l.SocketMessageReader=l.IPCMessageWriter=l.IPCMessageReader=void 0;const g=u(20498);g.default.install();const v=u(3301);const k=u(85622);const O=u(12087);const M=u(76417);const q=u(11631);h(u(3301),l);class IPCMessageReader extends v.AbstractMessageReader{constructor(s){super();this.process=s;let l=this.process;l.on("error",(s=>this.fireError(s)));l.on("close",(()=>this.fireClose()))}listen(s){this.process.on("message",s);return v.Disposable.create((()=>this.process.off("message",s)))}}l.IPCMessageReader=IPCMessageReader;class IPCMessageWriter extends v.AbstractMessageWriter{constructor(s){super();this.process=s;this.errorCount=0;let l=this.process;l.on("error",(s=>this.fireError(s)));l.on("close",(()=>this.fireClose))}write(s){try{if(typeof this.process.send==="function"){this.process.send(s,undefined,undefined,(l=>{if(l){this.errorCount++;this.handleError(l,s)}else{this.errorCount=0}}))}return Promise.resolve()}catch(l){this.handleError(l,s);return Promise.reject(l)}}handleError(s,l){this.errorCount++;this.fireError(s,l,this.errorCount)}end(){}}l.IPCMessageWriter=IPCMessageWriter;class SocketMessageReader extends v.ReadableStreamMessageReader{constructor(s,l="utf-8"){super(g.default().stream.asReadableStream(s),l)}}l.SocketMessageReader=SocketMessageReader;class SocketMessageWriter extends v.WriteableStreamMessageWriter{constructor(s,l){super(g.default().stream.asWritableStream(s),l);this.socket=s}dispose(){super.dispose();this.socket.destroy()}}l.SocketMessageWriter=SocketMessageWriter;class StreamMessageReader extends v.ReadableStreamMessageReader{constructor(s,l){super(g.default().stream.asReadableStream(s),l)}}l.StreamMessageReader=StreamMessageReader;class StreamMessageWriter extends v.WriteableStreamMessageWriter{constructor(s,l){super(g.default().stream.asWritableStream(s),l)}}l.StreamMessageWriter=StreamMessageWriter;const B=process.env["XDG_RUNTIME_DIR"];const Y=new Map([["linux",107],["darwin",103]]);function generateRandomPipeName(){const s=M.randomBytes(21).toString("hex");if(process.platform==="win32"){return`\\\\.\\pipe\\vscode-jsonrpc-${s}-sock`}let l;if(B){l=k.join(B,`vscode-ipc-${s}.sock`)}else{l=k.join(O.tmpdir(),`vscode-${s}.sock`)}const u=Y.get(process.platform);if(u!==undefined&&l.length>=u){g.default().console.warn(`WARNING: IPC handle "${l}" is longer than ${u} characters.`)}return l}l.generateRandomPipeName=generateRandomPipeName;function createClientPipeTransport(s,l="utf-8"){let u;const f=new Promise(((s,l)=>{u=s}));return new Promise(((h,g)=>{let v=q.createServer((s=>{v.close();u([new SocketMessageReader(s,l),new SocketMessageWriter(s,l)])}));v.on("error",g);v.listen(s,(()=>{v.removeListener("error",g);h({onConnected:()=>f})}))}))}l.createClientPipeTransport=createClientPipeTransport;function createServerPipeTransport(s,l="utf-8"){const u=q.createConnection(s);return[new SocketMessageReader(u,l),new SocketMessageWriter(u,l)]}l.createServerPipeTransport=createServerPipeTransport;function createClientSocketTransport(s,l="utf-8"){let u;const f=new Promise(((s,l)=>{u=s}));return new Promise(((h,g)=>{const v=q.createServer((s=>{v.close();u([new SocketMessageReader(s,l),new SocketMessageWriter(s,l)])}));v.on("error",g);v.listen(s,"127.0.0.1",(()=>{v.removeListener("error",g);h({onConnected:()=>f})}))}))}l.createClientSocketTransport=createClientSocketTransport;function createServerSocketTransport(s,l="utf-8"){const u=q.createConnection(s,"127.0.0.1");return[new SocketMessageReader(u,l),new SocketMessageWriter(u,l)]}l.createServerSocketTransport=createServerSocketTransport;function isReadableStream(s){const l=s;return l.read!==undefined&&l.addListener!==undefined}function isWritableStream(s){const l=s;return l.write!==undefined&&l.addListener!==undefined}function createMessageConnection(s,l,u,f){if(!u){u=v.NullLogger}const h=isReadableStream(s)?new StreamMessageReader(s):s;const g=isWritableStream(l)?new StreamMessageWriter(l):l;if(v.ConnectionStrategy.is(f)){f={connectionStrategy:f}}return v.createMessageConnection(h,g,u,f)}l.createMessageConnection=createMessageConnection},20498:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});const f=u(83996);const h=u(31669);const g=u(24788);const v=u(11228);class MessageBuffer extends v.AbstractMessageBuffer{constructor(s="utf-8"){super(s)}emptyBuffer(){return MessageBuffer.emptyBuffer}fromString(s,l){return Buffer.from(s,l)}toString(s,l){if(s instanceof Buffer){return s.toString(l)}else{return new h.TextDecoder(l).decode(s)}}asNative(s,l){if(l===undefined){return s instanceof Buffer?s:Buffer.from(s)}else{return s instanceof Buffer?s.slice(0,l):Buffer.from(s,0,l)}}allocNative(s){return Buffer.allocUnsafe(s)}}MessageBuffer.emptyBuffer=Buffer.allocUnsafe(0);class ReadableStreamWrapper{constructor(s){this.stream=s}onClose(s){this.stream.on("close",s);return g.Disposable.create((()=>this.stream.off("close",s)))}onError(s){this.stream.on("error",s);return g.Disposable.create((()=>this.stream.off("error",s)))}onEnd(s){this.stream.on("end",s);return g.Disposable.create((()=>this.stream.off("end",s)))}onData(s){this.stream.on("data",s);return g.Disposable.create((()=>this.stream.off("data",s)))}}class WritableStreamWrapper{constructor(s){this.stream=s}onClose(s){this.stream.on("close",s);return g.Disposable.create((()=>this.stream.off("close",s)))}onError(s){this.stream.on("error",s);return g.Disposable.create((()=>this.stream.off("error",s)))}onEnd(s){this.stream.on("end",s);return g.Disposable.create((()=>this.stream.off("end",s)))}write(s,l){return new Promise(((u,f)=>{const callback=s=>{if(s===undefined||s===null){u()}else{f(s)}};if(typeof s==="string"){this.stream.write(s,l,callback)}else{this.stream.write(s,callback)}}))}end(){this.stream.end()}}const k=Object.freeze({messageBuffer:Object.freeze({create:s=>new MessageBuffer(s)}),applicationJson:Object.freeze({encoder:Object.freeze({name:"application/json",encode:(s,l)=>{try{return Promise.resolve(Buffer.from(JSON.stringify(s,undefined,0),l.charset))}catch(s){return Promise.reject(s)}}}),decoder:Object.freeze({name:"application/json",decode:(s,l)=>{try{if(s instanceof Buffer){return Promise.resolve(JSON.parse(s.toString(l.charset)))}else{return Promise.resolve(JSON.parse(new h.TextDecoder(l.charset).decode(s)))}}catch(s){return Promise.reject(s)}}})}),stream:Object.freeze({asReadableStream:s=>new ReadableStreamWrapper(s),asWritableStream:s=>new WritableStreamWrapper(s)}),console:console,timer:Object.freeze({setTimeout(s,l,...u){return setTimeout(s,l,...u)},clearTimeout(s){clearTimeout(s)},setImmediate(s,...l){return setImmediate(s,...l)},clearImmediate(s){clearImmediate(s)}})});function RIL(){return k}(function(s){function install(){f.default.install(k)}s.install=install})(RIL||(RIL={}));l.default=RIL},28186:(s,l,u)=>{"use strict";s.exports=u(41983)},76474:function(s,l,u){"use strict";var f=this&&this.__createBinding||(Object.create?function(s,l,u,f){if(f===undefined)f=u;Object.defineProperty(s,f,{enumerable:true,get:function(){return l[u]}})}:function(s,l,u,f){if(f===undefined)f=u;s[f]=l[u]});var h=this&&this.__exportStar||function(s,l){for(var u in s)if(u!=="default"&&!Object.prototype.hasOwnProperty.call(l,u))f(l,s,u)};Object.defineProperty(l,"__esModule",{value:true});l.LSPErrorCodes=l.createProtocolConnection=void 0;h(u(41983),l);h(u(64726),l);h(u(38126),l);h(u(13550),l);var g=u(53546);Object.defineProperty(l,"createProtocolConnection",{enumerable:true,get:function(){return g.createProtocolConnection}});var v;(function(s){s.lspReservedErrorRangeStart=-32899;s.ContentModified=-32801;s.RequestCancelled=-32800;s.lspReservedErrorRangeEnd=-32800})(v=l.LSPErrorCodes||(l.LSPErrorCodes={}))},53546:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.createProtocolConnection=void 0;const f=u(41983);function createProtocolConnection(s,l,u,h){if(f.ConnectionStrategy.is(h)){h={connectionStrategy:h}}return f.createMessageConnection(s,l,u,h)}l.createProtocolConnection=createProtocolConnection},38126:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.ProtocolNotificationType=l.ProtocolNotificationType0=l.ProtocolRequestType=l.ProtocolRequestType0=l.RegistrationType=void 0;const f=u(41983);class RegistrationType{constructor(s){this.method=s}}l.RegistrationType=RegistrationType;class ProtocolRequestType0 extends f.RequestType0{constructor(s){super(s)}}l.ProtocolRequestType0=ProtocolRequestType0;class ProtocolRequestType extends f.RequestType{constructor(s){super(s,f.ParameterStructures.byName)}}l.ProtocolRequestType=ProtocolRequestType;class ProtocolNotificationType0 extends f.NotificationType0{constructor(s){super(s)}}l.ProtocolNotificationType0=ProtocolNotificationType0;class ProtocolNotificationType extends f.NotificationType{constructor(s){super(s,f.ParameterStructures.byName)}}l.ProtocolNotificationType=ProtocolNotificationType},4638:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.CallHierarchyOutgoingCallsRequest=l.CallHierarchyIncomingCallsRequest=l.CallHierarchyPrepareRequest=void 0;const f=u(38126);var h;(function(s){s.method="textDocument/prepareCallHierarchy";s.type=new f.ProtocolRequestType(s.method)})(h=l.CallHierarchyPrepareRequest||(l.CallHierarchyPrepareRequest={}));var g;(function(s){s.method="callHierarchy/incomingCalls";s.type=new f.ProtocolRequestType(s.method)})(g=l.CallHierarchyIncomingCallsRequest||(l.CallHierarchyIncomingCallsRequest={}));var v;(function(s){s.method="callHierarchy/outgoingCalls";s.type=new f.ProtocolRequestType(s.method)})(v=l.CallHierarchyOutgoingCallsRequest||(l.CallHierarchyOutgoingCallsRequest={}))},56125:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.ColorPresentationRequest=l.DocumentColorRequest=void 0;const f=u(38126);var h;(function(s){s.method="textDocument/documentColor";s.type=new f.ProtocolRequestType(s.method)})(h=l.DocumentColorRequest||(l.DocumentColorRequest={}));var g;(function(s){s.type=new f.ProtocolRequestType("textDocument/colorPresentation")})(g=l.ColorPresentationRequest||(l.ColorPresentationRequest={}))},24127:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.ConfigurationRequest=void 0;const f=u(38126);var h;(function(s){s.type=new f.ProtocolRequestType("workspace/configuration")})(h=l.ConfigurationRequest||(l.ConfigurationRequest={}))},5765:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.DeclarationRequest=void 0;const f=u(38126);let h;var g;(function(s){s.method="textDocument/declaration";s.type=new f.ProtocolRequestType(s.method)})(g=l.DeclarationRequest||(l.DeclarationRequest={}))},56243:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.WillDeleteFilesRequest=l.DidDeleteFilesNotification=l.DidRenameFilesNotification=l.WillRenameFilesRequest=l.DidCreateFilesNotification=l.WillCreateFilesRequest=l.FileOperationPatternKind=void 0;const f=u(38126);var h;(function(s){s.file="file";s.folder="folder"})(h=l.FileOperationPatternKind||(l.FileOperationPatternKind={}));var g;(function(s){s.method="workspace/willCreateFiles";s.type=new f.ProtocolRequestType(s.method)})(g=l.WillCreateFilesRequest||(l.WillCreateFilesRequest={}));var v;(function(s){s.method="workspace/didCreateFiles";s.type=new f.ProtocolNotificationType(s.method)})(v=l.DidCreateFilesNotification||(l.DidCreateFilesNotification={}));var k;(function(s){s.method="workspace/willRenameFiles";s.type=new f.ProtocolRequestType(s.method)})(k=l.WillRenameFilesRequest||(l.WillRenameFilesRequest={}));var O;(function(s){s.method="workspace/didRenameFiles";s.type=new f.ProtocolNotificationType(s.method)})(O=l.DidRenameFilesNotification||(l.DidRenameFilesNotification={}));var M;(function(s){s.method="workspace/didDeleteFiles";s.type=new f.ProtocolNotificationType(s.method)})(M=l.DidDeleteFilesNotification||(l.DidDeleteFilesNotification={}));var q;(function(s){s.method="workspace/willDeleteFiles";s.type=new f.ProtocolRequestType(s.method)})(q=l.WillDeleteFilesRequest||(l.WillDeleteFilesRequest={}))},16823:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.FoldingRangeRequest=l.FoldingRangeKind=void 0;const f=u(38126);var h;(function(s){s["Comment"]="comment";s["Imports"]="imports";s["Region"]="region"})(h=l.FoldingRangeKind||(l.FoldingRangeKind={}));var g;(function(s){s.method="textDocument/foldingRange";s.type=new f.ProtocolRequestType(s.method)})(g=l.FoldingRangeRequest||(l.FoldingRangeRequest={}))},30441:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.ImplementationRequest=void 0;const f=u(38126);let h;var g;(function(s){s.method="textDocument/implementation";s.type=new f.ProtocolRequestType(s.method)})(g=l.ImplementationRequest||(l.ImplementationRequest={}))},13550:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.DocumentLinkRequest=l.CodeLensRefreshRequest=l.CodeLensResolveRequest=l.CodeLensRequest=l.WorkspaceSymbolRequest=l.CodeActionResolveRequest=l.CodeActionRequest=l.DocumentSymbolRequest=l.DocumentHighlightRequest=l.ReferencesRequest=l.DefinitionRequest=l.SignatureHelpRequest=l.SignatureHelpTriggerKind=l.HoverRequest=l.CompletionResolveRequest=l.CompletionRequest=l.CompletionTriggerKind=l.PublishDiagnosticsNotification=l.WatchKind=l.FileChangeType=l.DidChangeWatchedFilesNotification=l.WillSaveTextDocumentWaitUntilRequest=l.WillSaveTextDocumentNotification=l.TextDocumentSaveReason=l.DidSaveTextDocumentNotification=l.DidCloseTextDocumentNotification=l.DidChangeTextDocumentNotification=l.TextDocumentContentChangeEvent=l.DidOpenTextDocumentNotification=l.TextDocumentSyncKind=l.TelemetryEventNotification=l.LogMessageNotification=l.ShowMessageRequest=l.ShowMessageNotification=l.MessageType=l.DidChangeConfigurationNotification=l.ExitNotification=l.ShutdownRequest=l.InitializedNotification=l.InitializeError=l.InitializeRequest=l.WorkDoneProgressOptions=l.TextDocumentRegistrationOptions=l.StaticRegistrationOptions=l.FailureHandlingKind=l.ResourceOperationKind=l.UnregistrationRequest=l.RegistrationRequest=l.DocumentSelector=l.DocumentFilter=void 0;l.MonikerRequest=l.MonikerKind=l.UniquenessLevel=l.WillDeleteFilesRequest=l.DidDeleteFilesNotification=l.WillRenameFilesRequest=l.DidRenameFilesNotification=l.WillCreateFilesRequest=l.DidCreateFilesNotification=l.FileOperationPatternKind=l.LinkedEditingRangeRequest=l.ShowDocumentRequest=l.SemanticTokensRegistrationType=l.SemanticTokensRefreshRequest=l.SemanticTokensRangeRequest=l.SemanticTokensDeltaRequest=l.SemanticTokensRequest=l.TokenFormat=l.SemanticTokens=l.SemanticTokenModifiers=l.SemanticTokenTypes=l.CallHierarchyPrepareRequest=l.CallHierarchyOutgoingCallsRequest=l.CallHierarchyIncomingCallsRequest=l.WorkDoneProgressCancelNotification=l.WorkDoneProgressCreateRequest=l.WorkDoneProgress=l.SelectionRangeRequest=l.DeclarationRequest=l.FoldingRangeRequest=l.ColorPresentationRequest=l.DocumentColorRequest=l.ConfigurationRequest=l.DidChangeWorkspaceFoldersNotification=l.WorkspaceFoldersRequest=l.TypeDefinitionRequest=l.ImplementationRequest=l.ApplyWorkspaceEditRequest=l.ExecuteCommandRequest=l.PrepareRenameRequest=l.RenameRequest=l.PrepareSupportDefaultBehavior=l.DocumentOnTypeFormattingRequest=l.DocumentRangeFormattingRequest=l.DocumentFormattingRequest=l.DocumentLinkResolveRequest=void 0;const f=u(24065);const h=u(38126);const g=u(30441);Object.defineProperty(l,"ImplementationRequest",{enumerable:true,get:function(){return g.ImplementationRequest}});const v=u(79895);Object.defineProperty(l,"TypeDefinitionRequest",{enumerable:true,get:function(){return v.TypeDefinitionRequest}});const k=u(86432);Object.defineProperty(l,"WorkspaceFoldersRequest",{enumerable:true,get:function(){return k.WorkspaceFoldersRequest}});Object.defineProperty(l,"DidChangeWorkspaceFoldersNotification",{enumerable:true,get:function(){return k.DidChangeWorkspaceFoldersNotification}});const O=u(24127);Object.defineProperty(l,"ConfigurationRequest",{enumerable:true,get:function(){return O.ConfigurationRequest}});const M=u(56125);Object.defineProperty(l,"DocumentColorRequest",{enumerable:true,get:function(){return M.DocumentColorRequest}});Object.defineProperty(l,"ColorPresentationRequest",{enumerable:true,get:function(){return M.ColorPresentationRequest}});const q=u(16823);Object.defineProperty(l,"FoldingRangeRequest",{enumerable:true,get:function(){return q.FoldingRangeRequest}});const B=u(5765);Object.defineProperty(l,"DeclarationRequest",{enumerable:true,get:function(){return B.DeclarationRequest}});const Y=u(27424);Object.defineProperty(l,"SelectionRangeRequest",{enumerable:true,get:function(){return Y.SelectionRangeRequest}});const te=u(95431);Object.defineProperty(l,"WorkDoneProgress",{enumerable:true,get:function(){return te.WorkDoneProgress}});Object.defineProperty(l,"WorkDoneProgressCreateRequest",{enumerable:true,get:function(){return te.WorkDoneProgressCreateRequest}});Object.defineProperty(l,"WorkDoneProgressCancelNotification",{enumerable:true,get:function(){return te.WorkDoneProgressCancelNotification}});const re=u(4638);Object.defineProperty(l,"CallHierarchyIncomingCallsRequest",{enumerable:true,get:function(){return re.CallHierarchyIncomingCallsRequest}});Object.defineProperty(l,"CallHierarchyOutgoingCallsRequest",{enumerable:true,get:function(){return re.CallHierarchyOutgoingCallsRequest}});Object.defineProperty(l,"CallHierarchyPrepareRequest",{enumerable:true,get:function(){return re.CallHierarchyPrepareRequest}});const ne=u(34918);Object.defineProperty(l,"SemanticTokenTypes",{enumerable:true,get:function(){return ne.SemanticTokenTypes}});Object.defineProperty(l,"SemanticTokenModifiers",{enumerable:true,get:function(){return ne.SemanticTokenModifiers}});Object.defineProperty(l,"SemanticTokens",{enumerable:true,get:function(){return ne.SemanticTokens}});Object.defineProperty(l,"TokenFormat",{enumerable:true,get:function(){return ne.TokenFormat}});Object.defineProperty(l,"SemanticTokensRequest",{enumerable:true,get:function(){return ne.SemanticTokensRequest}});Object.defineProperty(l,"SemanticTokensDeltaRequest",{enumerable:true,get:function(){return ne.SemanticTokensDeltaRequest}});Object.defineProperty(l,"SemanticTokensRangeRequest",{enumerable:true,get:function(){return ne.SemanticTokensRangeRequest}});Object.defineProperty(l,"SemanticTokensRefreshRequest",{enumerable:true,get:function(){return ne.SemanticTokensRefreshRequest}});Object.defineProperty(l,"SemanticTokensRegistrationType",{enumerable:true,get:function(){return ne.SemanticTokensRegistrationType}});const ie=u(99806);Object.defineProperty(l,"ShowDocumentRequest",{enumerable:true,get:function(){return ie.ShowDocumentRequest}});const se=u(18727);Object.defineProperty(l,"LinkedEditingRangeRequest",{enumerable:true,get:function(){return se.LinkedEditingRangeRequest}});const oe=u(56243);Object.defineProperty(l,"FileOperationPatternKind",{enumerable:true,get:function(){return oe.FileOperationPatternKind}});Object.defineProperty(l,"DidCreateFilesNotification",{enumerable:true,get:function(){return oe.DidCreateFilesNotification}});Object.defineProperty(l,"WillCreateFilesRequest",{enumerable:true,get:function(){return oe.WillCreateFilesRequest}});Object.defineProperty(l,"DidRenameFilesNotification",{enumerable:true,get:function(){return oe.DidRenameFilesNotification}});Object.defineProperty(l,"WillRenameFilesRequest",{enumerable:true,get:function(){return oe.WillRenameFilesRequest}});Object.defineProperty(l,"DidDeleteFilesNotification",{enumerable:true,get:function(){return oe.DidDeleteFilesNotification}});Object.defineProperty(l,"WillDeleteFilesRequest",{enumerable:true,get:function(){return oe.WillDeleteFilesRequest}});const ae=u(40608);Object.defineProperty(l,"UniquenessLevel",{enumerable:true,get:function(){return ae.UniquenessLevel}});Object.defineProperty(l,"MonikerKind",{enumerable:true,get:function(){return ae.MonikerKind}});Object.defineProperty(l,"MonikerRequest",{enumerable:true,get:function(){return ae.MonikerRequest}});let le;var ue;(function(s){function is(s){const l=s;return f.string(l.language)||f.string(l.scheme)||f.string(l.pattern)}s.is=is})(ue=l.DocumentFilter||(l.DocumentFilter={}));var ce;(function(s){function is(s){if(!Array.isArray(s)){return false}for(let l of s){if(!f.string(l)&&!ue.is(l)){return false}}return true}s.is=is})(ce=l.DocumentSelector||(l.DocumentSelector={}));var fe;(function(s){s.type=new h.ProtocolRequestType("client/registerCapability")})(fe=l.RegistrationRequest||(l.RegistrationRequest={}));var pe;(function(s){s.type=new h.ProtocolRequestType("client/unregisterCapability")})(pe=l.UnregistrationRequest||(l.UnregistrationRequest={}));var de;(function(s){s.Create="create";s.Rename="rename";s.Delete="delete"})(de=l.ResourceOperationKind||(l.ResourceOperationKind={}));var he;(function(s){s.Abort="abort";s.Transactional="transactional";s.TextOnlyTransactional="textOnlyTransactional";s.Undo="undo"})(he=l.FailureHandlingKind||(l.FailureHandlingKind={}));var ge;(function(s){function hasId(s){const l=s;return l&&f.string(l.id)&&l.id.length>0}s.hasId=hasId})(ge=l.StaticRegistrationOptions||(l.StaticRegistrationOptions={}));var ve;(function(s){function is(s){const l=s;return l&&(l.documentSelector===null||ce.is(l.documentSelector))}s.is=is})(ve=l.TextDocumentRegistrationOptions||(l.TextDocumentRegistrationOptions={}));var ye;(function(s){function is(s){const l=s;return f.objectLiteral(l)&&(l.workDoneProgress===undefined||f.boolean(l.workDoneProgress))}s.is=is;function hasWorkDoneProgress(s){const l=s;return l&&f.boolean(l.workDoneProgress)}s.hasWorkDoneProgress=hasWorkDoneProgress})(ye=l.WorkDoneProgressOptions||(l.WorkDoneProgressOptions={}));var we;(function(s){s.type=new h.ProtocolRequestType("initialize")})(we=l.InitializeRequest||(l.InitializeRequest={}));var _e;(function(s){s.unknownProtocolVersion=1})(_e=l.InitializeError||(l.InitializeError={}));var Se;(function(s){s.type=new h.ProtocolNotificationType("initialized")})(Se=l.InitializedNotification||(l.InitializedNotification={}));var ke;(function(s){s.type=new h.ProtocolRequestType0("shutdown")})(ke=l.ShutdownRequest||(l.ShutdownRequest={}));var Ce;(function(s){s.type=new h.ProtocolNotificationType0("exit")})(Ce=l.ExitNotification||(l.ExitNotification={}));var Ee;(function(s){s.type=new h.ProtocolNotificationType("workspace/didChangeConfiguration")})(Ee=l.DidChangeConfigurationNotification||(l.DidChangeConfigurationNotification={}));var Re;(function(s){s.Error=1;s.Warning=2;s.Info=3;s.Log=4})(Re=l.MessageType||(l.MessageType={}));var Oe;(function(s){s.type=new h.ProtocolNotificationType("window/showMessage")})(Oe=l.ShowMessageNotification||(l.ShowMessageNotification={}));var De;(function(s){s.type=new h.ProtocolRequestType("window/showMessageRequest")})(De=l.ShowMessageRequest||(l.ShowMessageRequest={}));var Ie;(function(s){s.type=new h.ProtocolNotificationType("window/logMessage")})(Ie=l.LogMessageNotification||(l.LogMessageNotification={}));var Me;(function(s){s.type=new h.ProtocolNotificationType("telemetry/event")})(Me=l.TelemetryEventNotification||(l.TelemetryEventNotification={}));var Ne;(function(s){s.None=0;s.Full=1;s.Incremental=2})(Ne=l.TextDocumentSyncKind||(l.TextDocumentSyncKind={}));var Le;(function(s){s.method="textDocument/didOpen";s.type=new h.ProtocolNotificationType(s.method)})(Le=l.DidOpenTextDocumentNotification||(l.DidOpenTextDocumentNotification={}));var je;(function(s){function isIncremental(s){let l=s;return l!==undefined&&l!==null&&typeof l.text==="string"&&l.range!==undefined&&(l.rangeLength===undefined||typeof l.rangeLength==="number")}s.isIncremental=isIncremental;function isFull(s){let l=s;return l!==undefined&&l!==null&&typeof l.text==="string"&&l.range===undefined&&l.rangeLength===undefined}s.isFull=isFull})(je=l.TextDocumentContentChangeEvent||(l.TextDocumentContentChangeEvent={}));var Fe;(function(s){s.method="textDocument/didChange";s.type=new h.ProtocolNotificationType(s.method)})(Fe=l.DidChangeTextDocumentNotification||(l.DidChangeTextDocumentNotification={}));var qe;(function(s){s.method="textDocument/didClose";s.type=new h.ProtocolNotificationType(s.method)})(qe=l.DidCloseTextDocumentNotification||(l.DidCloseTextDocumentNotification={}));var $e;(function(s){s.method="textDocument/didSave";s.type=new h.ProtocolNotificationType(s.method)})($e=l.DidSaveTextDocumentNotification||(l.DidSaveTextDocumentNotification={}));var We;(function(s){s.Manual=1;s.AfterDelay=2;s.FocusOut=3})(We=l.TextDocumentSaveReason||(l.TextDocumentSaveReason={}));var ze;(function(s){s.method="textDocument/willSave";s.type=new h.ProtocolNotificationType(s.method)})(ze=l.WillSaveTextDocumentNotification||(l.WillSaveTextDocumentNotification={}));var Ve;(function(s){s.method="textDocument/willSaveWaitUntil";s.type=new h.ProtocolRequestType(s.method)})(Ve=l.WillSaveTextDocumentWaitUntilRequest||(l.WillSaveTextDocumentWaitUntilRequest={}));var Ge;(function(s){s.type=new h.ProtocolNotificationType("workspace/didChangeWatchedFiles")})(Ge=l.DidChangeWatchedFilesNotification||(l.DidChangeWatchedFilesNotification={}));var Ye;(function(s){s.Created=1;s.Changed=2;s.Deleted=3})(Ye=l.FileChangeType||(l.FileChangeType={}));var Ke;(function(s){s.Create=1;s.Change=2;s.Delete=4})(Ke=l.WatchKind||(l.WatchKind={}));var Qe;(function(s){s.type=new h.ProtocolNotificationType("textDocument/publishDiagnostics")})(Qe=l.PublishDiagnosticsNotification||(l.PublishDiagnosticsNotification={}));var Je;(function(s){s.Invoked=1;s.TriggerCharacter=2;s.TriggerForIncompleteCompletions=3})(Je=l.CompletionTriggerKind||(l.CompletionTriggerKind={}));var Xe;(function(s){s.method="textDocument/completion";s.type=new h.ProtocolRequestType(s.method)})(Xe=l.CompletionRequest||(l.CompletionRequest={}));var et;(function(s){s.method="completionItem/resolve";s.type=new h.ProtocolRequestType(s.method)})(et=l.CompletionResolveRequest||(l.CompletionResolveRequest={}));var tt;(function(s){s.method="textDocument/hover";s.type=new h.ProtocolRequestType(s.method)})(tt=l.HoverRequest||(l.HoverRequest={}));var it;(function(s){s.Invoked=1;s.TriggerCharacter=2;s.ContentChange=3})(it=l.SignatureHelpTriggerKind||(l.SignatureHelpTriggerKind={}));var st;(function(s){s.method="textDocument/signatureHelp";s.type=new h.ProtocolRequestType(s.method)})(st=l.SignatureHelpRequest||(l.SignatureHelpRequest={}));var ut;(function(s){s.method="textDocument/definition";s.type=new h.ProtocolRequestType(s.method)})(ut=l.DefinitionRequest||(l.DefinitionRequest={}));var ct;(function(s){s.method="textDocument/references";s.type=new h.ProtocolRequestType(s.method)})(ct=l.ReferencesRequest||(l.ReferencesRequest={}));var ft;(function(s){s.method="textDocument/documentHighlight";s.type=new h.ProtocolRequestType(s.method)})(ft=l.DocumentHighlightRequest||(l.DocumentHighlightRequest={}));var pt;(function(s){s.method="textDocument/documentSymbol";s.type=new h.ProtocolRequestType(s.method)})(pt=l.DocumentSymbolRequest||(l.DocumentSymbolRequest={}));var dt;(function(s){s.method="textDocument/codeAction";s.type=new h.ProtocolRequestType(s.method)})(dt=l.CodeActionRequest||(l.CodeActionRequest={}));var ht;(function(s){s.method="codeAction/resolve";s.type=new h.ProtocolRequestType(s.method)})(ht=l.CodeActionResolveRequest||(l.CodeActionResolveRequest={}));var mt;(function(s){s.method="workspace/symbol";s.type=new h.ProtocolRequestType(s.method)})(mt=l.WorkspaceSymbolRequest||(l.WorkspaceSymbolRequest={}));var vt;(function(s){s.method="textDocument/codeLens";s.type=new h.ProtocolRequestType(s.method)})(vt=l.CodeLensRequest||(l.CodeLensRequest={}));var yt;(function(s){s.method="codeLens/resolve";s.type=new h.ProtocolRequestType(s.method)})(yt=l.CodeLensResolveRequest||(l.CodeLensResolveRequest={}));var bt;(function(s){s.method=`workspace/codeLens/refresh`;s.type=new h.ProtocolRequestType0(s.method)})(bt=l.CodeLensRefreshRequest||(l.CodeLensRefreshRequest={}));var wt;(function(s){s.method="textDocument/documentLink";s.type=new h.ProtocolRequestType(s.method)})(wt=l.DocumentLinkRequest||(l.DocumentLinkRequest={}));var _t;(function(s){s.method="documentLink/resolve";s.type=new h.ProtocolRequestType(s.method)})(_t=l.DocumentLinkResolveRequest||(l.DocumentLinkResolveRequest={}));var xt;(function(s){s.method="textDocument/formatting";s.type=new h.ProtocolRequestType(s.method)})(xt=l.DocumentFormattingRequest||(l.DocumentFormattingRequest={}));var St;(function(s){s.method="textDocument/rangeFormatting";s.type=new h.ProtocolRequestType(s.method)})(St=l.DocumentRangeFormattingRequest||(l.DocumentRangeFormattingRequest={}));var kt;(function(s){s.method="textDocument/onTypeFormatting";s.type=new h.ProtocolRequestType(s.method)})(kt=l.DocumentOnTypeFormattingRequest||(l.DocumentOnTypeFormattingRequest={}));var Ct;(function(s){s.Identifier=1})(Ct=l.PrepareSupportDefaultBehavior||(l.PrepareSupportDefaultBehavior={}));var Et;(function(s){s.method="textDocument/rename";s.type=new h.ProtocolRequestType(s.method)})(Et=l.RenameRequest||(l.RenameRequest={}));var Rt;(function(s){s.method="textDocument/prepareRename";s.type=new h.ProtocolRequestType(s.method)})(Rt=l.PrepareRenameRequest||(l.PrepareRenameRequest={}));var Pt;(function(s){s.type=new h.ProtocolRequestType("workspace/executeCommand")})(Pt=l.ExecuteCommandRequest||(l.ExecuteCommandRequest={}));var Tt;(function(s){s.type=new h.ProtocolRequestType("workspace/applyEdit")})(Tt=l.ApplyWorkspaceEditRequest||(l.ApplyWorkspaceEditRequest={}))},18727:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.LinkedEditingRangeRequest=void 0;const f=u(38126);var h;(function(s){s.method="textDocument/linkedEditingRange";s.type=new f.ProtocolRequestType(s.method)})(h=l.LinkedEditingRangeRequest||(l.LinkedEditingRangeRequest={}))},40608:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.MonikerRequest=l.MonikerKind=l.UniquenessLevel=void 0;const f=u(38126);var h;(function(s){s["document"]="document";s["project"]="project";s["group"]="group";s["scheme"]="scheme";s["global"]="global"})(h=l.UniquenessLevel||(l.UniquenessLevel={}));var g;(function(s){s["import"]="import";s["export"]="export";s["local"]="local"})(g=l.MonikerKind||(l.MonikerKind={}));var v;(function(s){s.method="textDocument/moniker";s.type=new f.ProtocolRequestType(s.method)})(v=l.MonikerRequest||(l.MonikerRequest={}))},95431:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.WorkDoneProgressCancelNotification=l.WorkDoneProgressCreateRequest=l.WorkDoneProgress=void 0;const f=u(41983);const h=u(38126);var g;(function(s){s.type=new f.ProgressType;function is(l){return l===s.type}s.is=is})(g=l.WorkDoneProgress||(l.WorkDoneProgress={}));var v;(function(s){s.type=new h.ProtocolRequestType("window/workDoneProgress/create")})(v=l.WorkDoneProgressCreateRequest||(l.WorkDoneProgressCreateRequest={}));var k;(function(s){s.type=new h.ProtocolNotificationType("window/workDoneProgress/cancel")})(k=l.WorkDoneProgressCancelNotification||(l.WorkDoneProgressCancelNotification={}))},27424:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.SelectionRangeRequest=void 0;const f=u(38126);var h;(function(s){s.method="textDocument/selectionRange";s.type=new f.ProtocolRequestType(s.method)})(h=l.SelectionRangeRequest||(l.SelectionRangeRequest={}))},34918:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.SemanticTokensRefreshRequest=l.SemanticTokensRangeRequest=l.SemanticTokensDeltaRequest=l.SemanticTokensRequest=l.SemanticTokensRegistrationType=l.TokenFormat=l.SemanticTokens=l.SemanticTokenModifiers=l.SemanticTokenTypes=void 0;const f=u(38126);var h;(function(s){s["namespace"]="namespace";s["type"]="type";s["class"]="class";s["enum"]="enum";s["interface"]="interface";s["struct"]="struct";s["typeParameter"]="typeParameter";s["parameter"]="parameter";s["variable"]="variable";s["property"]="property";s["enumMember"]="enumMember";s["event"]="event";s["function"]="function";s["method"]="method";s["macro"]="macro";s["keyword"]="keyword";s["modifier"]="modifier";s["comment"]="comment";s["string"]="string";s["number"]="number";s["regexp"]="regexp";s["operator"]="operator"})(h=l.SemanticTokenTypes||(l.SemanticTokenTypes={}));var g;(function(s){s["declaration"]="declaration";s["definition"]="definition";s["readonly"]="readonly";s["static"]="static";s["deprecated"]="deprecated";s["abstract"]="abstract";s["async"]="async";s["modification"]="modification";s["documentation"]="documentation";s["defaultLibrary"]="defaultLibrary"})(g=l.SemanticTokenModifiers||(l.SemanticTokenModifiers={}));var v;(function(s){function is(s){const l=s;return l!==undefined&&(l.resultId===undefined||typeof l.resultId==="string")&&Array.isArray(l.data)&&(l.data.length===0||typeof l.data[0]==="number")}s.is=is})(v=l.SemanticTokens||(l.SemanticTokens={}));var k;(function(s){s.Relative="relative"})(k=l.TokenFormat||(l.TokenFormat={}));var O;(function(s){s.method="textDocument/semanticTokens";s.type=new f.RegistrationType(s.method)})(O=l.SemanticTokensRegistrationType||(l.SemanticTokensRegistrationType={}));var M;(function(s){s.method="textDocument/semanticTokens/full";s.type=new f.ProtocolRequestType(s.method)})(M=l.SemanticTokensRequest||(l.SemanticTokensRequest={}));var q;(function(s){s.method="textDocument/semanticTokens/full/delta";s.type=new f.ProtocolRequestType(s.method)})(q=l.SemanticTokensDeltaRequest||(l.SemanticTokensDeltaRequest={}));var B;(function(s){s.method="textDocument/semanticTokens/range";s.type=new f.ProtocolRequestType(s.method)})(B=l.SemanticTokensRangeRequest||(l.SemanticTokensRangeRequest={}));var Y;(function(s){s.method=`workspace/semanticTokens/refresh`;s.type=new f.ProtocolRequestType0(s.method)})(Y=l.SemanticTokensRefreshRequest||(l.SemanticTokensRefreshRequest={}))},99806:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.ShowDocumentRequest=void 0;const f=u(38126);var h;(function(s){s.method="window/showDocument";s.type=new f.ProtocolRequestType(s.method)})(h=l.ShowDocumentRequest||(l.ShowDocumentRequest={}))},79895:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.TypeDefinitionRequest=void 0;const f=u(38126);let h;var g;(function(s){s.method="textDocument/typeDefinition";s.type=new f.ProtocolRequestType(s.method)})(g=l.TypeDefinitionRequest||(l.TypeDefinitionRequest={}))},86432:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.DidChangeWorkspaceFoldersNotification=l.WorkspaceFoldersRequest=void 0;const f=u(38126);var h;(function(s){s.type=new f.ProtocolRequestType0("workspace/workspaceFolders")})(h=l.WorkspaceFoldersRequest||(l.WorkspaceFoldersRequest={}));var g;(function(s){s.type=new f.ProtocolNotificationType("workspace/didChangeWorkspaceFolders")})(g=l.DidChangeWorkspaceFoldersNotification||(l.DidChangeWorkspaceFoldersNotification={}))},24065:(s,l)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.objectLiteral=l.typedArray=l.stringArray=l.array=l.func=l.error=l.number=l.string=l.boolean=void 0;function boolean(s){return s===true||s===false}l.boolean=boolean;function string(s){return typeof s==="string"||s instanceof String}l.string=string;function number(s){return typeof s==="number"||s instanceof Number}l.number=number;function error(s){return s instanceof Error}l.error=error;function func(s){return typeof s==="function"}l.func=func;function array(s){return Array.isArray(s)}l.array=array;function stringArray(s){return array(s)&&s.every((s=>string(s)))}l.stringArray=stringArray;function typedArray(s,l){return Array.isArray(s)&&s.every(l)}l.typedArray=typedArray;function objectLiteral(s){return s!==null&&typeof s==="object"}l.objectLiteral=objectLiteral},3302:function(s,l,u){"use strict";var f=this&&this.__createBinding||(Object.create?function(s,l,u,f){if(f===undefined)f=u;Object.defineProperty(s,f,{enumerable:true,get:function(){return l[u]}})}:function(s,l,u,f){if(f===undefined)f=u;s[f]=l[u]});var h=this&&this.__exportStar||function(s,l){for(var u in s)if(u!=="default"&&!Object.prototype.hasOwnProperty.call(l,u))f(l,s,u)};Object.defineProperty(l,"__esModule",{value:true});l.createProtocolConnection=void 0;const g=u(28186);h(u(28186),l);h(u(76474),l);function createProtocolConnection(s,l,u,f){return g.createMessageConnection(s,l,u,f)}l.createProtocolConnection=createProtocolConnection},77798:(s,l,u)=>{"use strict";s.exports=u(3302)},97960:(s,l)=>{(function(u){if(true&&typeof s.exports==="object"){var f=u(require,l);if(f!==undefined)s.exports=f}else if(typeof define==="function"&&define.amd){define(["require","exports"],u)}})((function(){"use strict";Object.defineProperty(l,"__esModule",{value:true});var s=function(){function FullTextDocument(s,l,u,f){this._uri=s;this._languageId=l;this._version=u;this._content=f;this._lineOffsets=undefined}Object.defineProperty(FullTextDocument.prototype,"uri",{get:function(){return this._uri},enumerable:true,configurable:true});Object.defineProperty(FullTextDocument.prototype,"languageId",{get:function(){return this._languageId},enumerable:true,configurable:true});Object.defineProperty(FullTextDocument.prototype,"version",{get:function(){return this._version},enumerable:true,configurable:true});FullTextDocument.prototype.getText=function(s){if(s){var l=this.offsetAt(s.start);var u=this.offsetAt(s.end);return this._content.substring(l,u)}return this._content};FullTextDocument.prototype.update=function(s,l){for(var u=0,f=s;u<f.length;u++){var h=f[u];if(FullTextDocument.isIncremental(h)){var g=getWellformedRange(h.range);var v=this.offsetAt(g.start);var k=this.offsetAt(g.end);this._content=this._content.substring(0,v)+h.text+this._content.substring(k,this._content.length);var O=Math.max(g.start.line,0);var M=Math.max(g.end.line,0);var q=this._lineOffsets;var B=computeLineOffsets(h.text,false,v);if(M-O===B.length){for(var Y=0,te=B.length;Y<te;Y++){q[Y+O+1]=B[Y]}}else{if(B.length<1e4){q.splice.apply(q,[O+1,M-O].concat(B))}else{this._lineOffsets=q=q.slice(0,O+1).concat(B,q.slice(M+1))}}var re=h.text.length-(k-v);if(re!==0){for(var Y=O+1+B.length,te=q.length;Y<te;Y++){q[Y]=q[Y]+re}}}else if(FullTextDocument.isFull(h)){this._content=h.text;this._lineOffsets=undefined}else{throw new Error("Unknown change event received")}}this._version=l};FullTextDocument.prototype.getLineOffsets=function(){if(this._lineOffsets===undefined){this._lineOffsets=computeLineOffsets(this._content,true)}return this._lineOffsets};FullTextDocument.prototype.positionAt=function(s){s=Math.max(Math.min(s,this._content.length),0);var l=this.getLineOffsets();var u=0,f=l.length;if(f===0){return{line:0,character:s}}while(u<f){var h=Math.floor((u+f)/2);if(l[h]>s){f=h}else{u=h+1}}var g=u-1;return{line:g,character:s-l[g]}};FullTextDocument.prototype.offsetAt=function(s){var l=this.getLineOffsets();if(s.line>=l.length){return this._content.length}else if(s.line<0){return 0}var u=l[s.line];var f=s.line+1<l.length?l[s.line+1]:this._content.length;return Math.max(Math.min(u+s.character,f),u)};Object.defineProperty(FullTextDocument.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:true,configurable:true});FullTextDocument.isIncremental=function(s){var l=s;return l!==undefined&&l!==null&&typeof l.text==="string"&&l.range!==undefined&&(l.rangeLength===undefined||typeof l.rangeLength==="number")};FullTextDocument.isFull=function(s){var l=s;return l!==undefined&&l!==null&&typeof l.text==="string"&&l.range===undefined&&l.rangeLength===undefined};return FullTextDocument}();var u;(function(l){function create(l,u,f,h){return new s(l,u,f,h)}l.create=create;function update(l,u,f){if(l instanceof s){l.update(u,f);return l}else{throw new Error("TextDocument.update: document must be created by TextDocument.create")}}l.update=update;function applyEdits(s,l){var u=s.getText();var f=mergeSort(l.map(getWellformedEdit),(function(s,l){var u=s.range.start.line-l.range.start.line;if(u===0){return s.range.start.character-l.range.start.character}return u}));var h=0;var g=[];for(var v=0,k=f;v<k.length;v++){var O=k[v];var M=s.offsetAt(O.range.start);if(M<h){throw new Error("Overlapping edit")}else if(M>h){g.push(u.substring(h,M))}if(O.newText.length){g.push(O.newText)}h=s.offsetAt(O.range.end)}g.push(u.substr(h));return g.join("")}l.applyEdits=applyEdits})(u=l.TextDocument||(l.TextDocument={}));function mergeSort(s,l){if(s.length<=1){return s}var u=s.length/2|0;var f=s.slice(0,u);var h=s.slice(u);mergeSort(f,l);mergeSort(h,l);var g=0;var v=0;var k=0;while(g<f.length&&v<h.length){var O=l(f[g],h[v]);if(O<=0){s[k++]=f[g++]}else{s[k++]=h[v++]}}while(g<f.length){s[k++]=f[g++]}while(v<h.length){s[k++]=h[v++]}return s}function computeLineOffsets(s,l,u){if(u===void 0){u=0}var f=l?[u]:[];for(var h=0;h<s.length;h++){var g=s.charCodeAt(h);if(g===13||g===10){if(g===13&&h+1<s.length&&s.charCodeAt(h+1)===10){h++}f.push(u+h+1)}}return f}function getWellformedRange(s){var l=s.start;var u=s.end;if(l.line>u.line||l.line===u.line&&l.character>u.character){return{start:u,end:l}}return s}function getWellformedEdit(s){var l=getWellformedRange(s.range);if(l!==s.range){return{newText:s.newText,range:l}}return s}}))},64726:(s,l)=>{(function(u){if(true&&typeof s.exports==="object"){var f=u(require,l);if(f!==undefined)s.exports=f}else if(typeof define==="function"&&define.amd){define(["require","exports"],u)}})((function(){"use strict";Object.defineProperty(l,"__esModule",{value:true});l.TextDocument=l.EOL=l.SelectionRange=l.DocumentLink=l.FormattingOptions=l.CodeLens=l.CodeAction=l.CodeActionContext=l.CodeActionKind=l.DocumentSymbol=l.SymbolInformation=l.SymbolTag=l.SymbolKind=l.DocumentHighlight=l.DocumentHighlightKind=l.SignatureInformation=l.ParameterInformation=l.Hover=l.MarkedString=l.CompletionList=l.CompletionItem=l.InsertTextMode=l.InsertReplaceEdit=l.CompletionItemTag=l.InsertTextFormat=l.CompletionItemKind=l.MarkupContent=l.MarkupKind=l.TextDocumentItem=l.OptionalVersionedTextDocumentIdentifier=l.VersionedTextDocumentIdentifier=l.TextDocumentIdentifier=l.WorkspaceChange=l.WorkspaceEdit=l.DeleteFile=l.RenameFile=l.CreateFile=l.TextDocumentEdit=l.AnnotatedTextEdit=l.ChangeAnnotationIdentifier=l.ChangeAnnotation=l.TextEdit=l.Command=l.Diagnostic=l.CodeDescription=l.DiagnosticTag=l.DiagnosticSeverity=l.DiagnosticRelatedInformation=l.FoldingRange=l.FoldingRangeKind=l.ColorPresentation=l.ColorInformation=l.Color=l.LocationLink=l.Location=l.Range=l.Position=l.uinteger=l.integer=void 0;var s;(function(s){s.MIN_VALUE=-2147483648;s.MAX_VALUE=2147483647})(s=l.integer||(l.integer={}));var u;(function(s){s.MIN_VALUE=0;s.MAX_VALUE=2147483647})(u=l.uinteger||(l.uinteger={}));var f;(function(s){function create(s,l){if(s===Number.MAX_VALUE){s=u.MAX_VALUE}if(l===Number.MAX_VALUE){l=u.MAX_VALUE}return{line:s,character:l}}s.create=create;function is(s){var l=s;return ft.objectLiteral(l)&&ft.uinteger(l.line)&&ft.uinteger(l.character)}s.is=is})(f=l.Position||(l.Position={}));var h;(function(s){function create(s,l,u,h){if(ft.uinteger(s)&&ft.uinteger(l)&&ft.uinteger(u)&&ft.uinteger(h)){return{start:f.create(s,l),end:f.create(u,h)}}else if(f.is(s)&&f.is(l)){return{start:s,end:l}}else{throw new Error("Range#create called with invalid arguments["+s+", "+l+", "+u+", "+h+"]")}}s.create=create;function is(s){var l=s;return ft.objectLiteral(l)&&f.is(l.start)&&f.is(l.end)}s.is=is})(h=l.Range||(l.Range={}));var g;(function(s){function create(s,l){return{uri:s,range:l}}s.create=create;function is(s){var l=s;return ft.defined(l)&&h.is(l.range)&&(ft.string(l.uri)||ft.undefined(l.uri))}s.is=is})(g=l.Location||(l.Location={}));var v;(function(s){function create(s,l,u,f){return{targetUri:s,targetRange:l,targetSelectionRange:u,originSelectionRange:f}}s.create=create;function is(s){var l=s;return ft.defined(l)&&h.is(l.targetRange)&&ft.string(l.targetUri)&&(h.is(l.targetSelectionRange)||ft.undefined(l.targetSelectionRange))&&(h.is(l.originSelectionRange)||ft.undefined(l.originSelectionRange))}s.is=is})(v=l.LocationLink||(l.LocationLink={}));var k;(function(s){function create(s,l,u,f){return{red:s,green:l,blue:u,alpha:f}}s.create=create;function is(s){var l=s;return ft.numberRange(l.red,0,1)&&ft.numberRange(l.green,0,1)&&ft.numberRange(l.blue,0,1)&&ft.numberRange(l.alpha,0,1)}s.is=is})(k=l.Color||(l.Color={}));var O;(function(s){function create(s,l){return{range:s,color:l}}s.create=create;function is(s){var l=s;return h.is(l.range)&&k.is(l.color)}s.is=is})(O=l.ColorInformation||(l.ColorInformation={}));var M;(function(s){function create(s,l,u){return{label:s,textEdit:l,additionalTextEdits:u}}s.create=create;function is(s){var l=s;return ft.string(l.label)&&(ft.undefined(l.textEdit)||oe.is(l))&&(ft.undefined(l.additionalTextEdits)||ft.typedArray(l.additionalTextEdits,oe.is))}s.is=is})(M=l.ColorPresentation||(l.ColorPresentation={}));var q;(function(s){s["Comment"]="comment";s["Imports"]="imports";s["Region"]="region"})(q=l.FoldingRangeKind||(l.FoldingRangeKind={}));var B;(function(s){function create(s,l,u,f,h){var g={startLine:s,endLine:l};if(ft.defined(u)){g.startCharacter=u}if(ft.defined(f)){g.endCharacter=f}if(ft.defined(h)){g.kind=h}return g}s.create=create;function is(s){var l=s;return ft.uinteger(l.startLine)&&ft.uinteger(l.startLine)&&(ft.undefined(l.startCharacter)||ft.uinteger(l.startCharacter))&&(ft.undefined(l.endCharacter)||ft.uinteger(l.endCharacter))&&(ft.undefined(l.kind)||ft.string(l.kind))}s.is=is})(B=l.FoldingRange||(l.FoldingRange={}));var Y;(function(s){function create(s,l){return{location:s,message:l}}s.create=create;function is(s){var l=s;return ft.defined(l)&&g.is(l.location)&&ft.string(l.message)}s.is=is})(Y=l.DiagnosticRelatedInformation||(l.DiagnosticRelatedInformation={}));var te;(function(s){s.Error=1;s.Warning=2;s.Information=3;s.Hint=4})(te=l.DiagnosticSeverity||(l.DiagnosticSeverity={}));var re;(function(s){s.Unnecessary=1;s.Deprecated=2})(re=l.DiagnosticTag||(l.DiagnosticTag={}));var ne;(function(s){function is(s){var l=s;return l!==undefined&&l!==null&&ft.string(l.href)}s.is=is})(ne=l.CodeDescription||(l.CodeDescription={}));var ie;(function(s){function create(s,l,u,f,h,g){var v={range:s,message:l};if(ft.defined(u)){v.severity=u}if(ft.defined(f)){v.code=f}if(ft.defined(h)){v.source=h}if(ft.defined(g)){v.relatedInformation=g}return v}s.create=create;function is(s){var l;var u=s;return ft.defined(u)&&h.is(u.range)&&ft.string(u.message)&&(ft.number(u.severity)||ft.undefined(u.severity))&&(ft.integer(u.code)||ft.string(u.code)||ft.undefined(u.code))&&(ft.undefined(u.codeDescription)||ft.string((l=u.codeDescription)===null||l===void 0?void 0:l.href))&&(ft.string(u.source)||ft.undefined(u.source))&&(ft.undefined(u.relatedInformation)||ft.typedArray(u.relatedInformation,Y.is))}s.is=is})(ie=l.Diagnostic||(l.Diagnostic={}));var se;(function(s){function create(s,l){var u=[];for(var f=2;f<arguments.length;f++){u[f-2]=arguments[f]}var h={title:s,command:l};if(ft.defined(u)&&u.length>0){h.arguments=u}return h}s.create=create;function is(s){var l=s;return ft.defined(l)&&ft.string(l.title)&&ft.string(l.command)}s.is=is})(se=l.Command||(l.Command={}));var oe;(function(s){function replace(s,l){return{range:s,newText:l}}s.replace=replace;function insert(s,l){return{range:{start:s,end:s},newText:l}}s.insert=insert;function del(s){return{range:s,newText:""}}s.del=del;function is(s){var l=s;return ft.objectLiteral(l)&&ft.string(l.newText)&&h.is(l.range)}s.is=is})(oe=l.TextEdit||(l.TextEdit={}));var ae;(function(s){function create(s,l,u){var f={label:s};if(l!==undefined){f.needsConfirmation=l}if(u!==undefined){f.description=u}return f}s.create=create;function is(s){var l=s;return l!==undefined&&ft.objectLiteral(l)&&ft.string(l.label)&&(ft.boolean(l.needsConfirmation)||l.needsConfirmation===undefined)&&(ft.string(l.description)||l.description===undefined)}s.is=is})(ae=l.ChangeAnnotation||(l.ChangeAnnotation={}));var le;(function(s){function is(s){var l=s;return typeof l==="string"}s.is=is})(le=l.ChangeAnnotationIdentifier||(l.ChangeAnnotationIdentifier={}));var ue;(function(s){function replace(s,l,u){return{range:s,newText:l,annotationId:u}}s.replace=replace;function insert(s,l,u){return{range:{start:s,end:s},newText:l,annotationId:u}}s.insert=insert;function del(s,l){return{range:s,newText:"",annotationId:l}}s.del=del;function is(s){var l=s;return oe.is(l)&&(ae.is(l.annotationId)||le.is(l.annotationId))}s.is=is})(ue=l.AnnotatedTextEdit||(l.AnnotatedTextEdit={}));var ce;(function(s){function create(s,l){return{textDocument:s,edits:l}}s.create=create;function is(s){var l=s;return ft.defined(l)&&Se.is(l.textDocument)&&Array.isArray(l.edits)}s.is=is})(ce=l.TextDocumentEdit||(l.TextDocumentEdit={}));var fe;(function(s){function create(s,l,u){var f={kind:"create",uri:s};if(l!==undefined&&(l.overwrite!==undefined||l.ignoreIfExists!==undefined)){f.options=l}if(u!==undefined){f.annotationId=u}return f}s.create=create;function is(s){var l=s;return l&&l.kind==="create"&&ft.string(l.uri)&&(l.options===undefined||(l.options.overwrite===undefined||ft.boolean(l.options.overwrite))&&(l.options.ignoreIfExists===undefined||ft.boolean(l.options.ignoreIfExists)))&&(l.annotationId===undefined||le.is(l.annotationId))}s.is=is})(fe=l.CreateFile||(l.CreateFile={}));var pe;(function(s){function create(s,l,u,f){var h={kind:"rename",oldUri:s,newUri:l};if(u!==undefined&&(u.overwrite!==undefined||u.ignoreIfExists!==undefined)){h.options=u}if(f!==undefined){h.annotationId=f}return h}s.create=create;function is(s){var l=s;return l&&l.kind==="rename"&&ft.string(l.oldUri)&&ft.string(l.newUri)&&(l.options===undefined||(l.options.overwrite===undefined||ft.boolean(l.options.overwrite))&&(l.options.ignoreIfExists===undefined||ft.boolean(l.options.ignoreIfExists)))&&(l.annotationId===undefined||le.is(l.annotationId))}s.is=is})(pe=l.RenameFile||(l.RenameFile={}));var de;(function(s){function create(s,l,u){var f={kind:"delete",uri:s};if(l!==undefined&&(l.recursive!==undefined||l.ignoreIfNotExists!==undefined)){f.options=l}if(u!==undefined){f.annotationId=u}return f}s.create=create;function is(s){var l=s;return l&&l.kind==="delete"&&ft.string(l.uri)&&(l.options===undefined||(l.options.recursive===undefined||ft.boolean(l.options.recursive))&&(l.options.ignoreIfNotExists===undefined||ft.boolean(l.options.ignoreIfNotExists)))&&(l.annotationId===undefined||le.is(l.annotationId))}s.is=is})(de=l.DeleteFile||(l.DeleteFile={}));var he;(function(s){function is(s){var l=s;return l&&(l.changes!==undefined||l.documentChanges!==undefined)&&(l.documentChanges===undefined||l.documentChanges.every((function(s){if(ft.string(s.kind)){return fe.is(s)||pe.is(s)||de.is(s)}else{return ce.is(s)}})))}s.is=is})(he=l.WorkspaceEdit||(l.WorkspaceEdit={}));var ge=function(){function TextEditChangeImpl(s,l){this.edits=s;this.changeAnnotations=l}TextEditChangeImpl.prototype.insert=function(s,l,u){var f;var h;if(u===undefined){f=oe.insert(s,l)}else if(le.is(u)){h=u;f=ue.insert(s,l,u)}else{this.assertChangeAnnotations(this.changeAnnotations);h=this.changeAnnotations.manage(u);f=ue.insert(s,l,h)}this.edits.push(f);if(h!==undefined){return h}};TextEditChangeImpl.prototype.replace=function(s,l,u){var f;var h;if(u===undefined){f=oe.replace(s,l)}else if(le.is(u)){h=u;f=ue.replace(s,l,u)}else{this.assertChangeAnnotations(this.changeAnnotations);h=this.changeAnnotations.manage(u);f=ue.replace(s,l,h)}this.edits.push(f);if(h!==undefined){return h}};TextEditChangeImpl.prototype.delete=function(s,l){var u;var f;if(l===undefined){u=oe.del(s)}else if(le.is(l)){f=l;u=ue.del(s,l)}else{this.assertChangeAnnotations(this.changeAnnotations);f=this.changeAnnotations.manage(l);u=ue.del(s,f)}this.edits.push(u);if(f!==undefined){return f}};TextEditChangeImpl.prototype.add=function(s){this.edits.push(s)};TextEditChangeImpl.prototype.all=function(){return this.edits};TextEditChangeImpl.prototype.clear=function(){this.edits.splice(0,this.edits.length)};TextEditChangeImpl.prototype.assertChangeAnnotations=function(s){if(s===undefined){throw new Error("Text edit change is not configured to manage change annotations.")}};return TextEditChangeImpl}();var ve=function(){function ChangeAnnotations(s){this._annotations=s===undefined?Object.create(null):s;this._counter=0;this._size=0}ChangeAnnotations.prototype.all=function(){return this._annotations};Object.defineProperty(ChangeAnnotations.prototype,"size",{get:function(){return this._size},enumerable:false,configurable:true});ChangeAnnotations.prototype.manage=function(s,l){var u;if(le.is(s)){u=s}else{u=this.nextId();l=s}if(this._annotations[u]!==undefined){throw new Error("Id "+u+" is already in use.")}if(l===undefined){throw new Error("No annotation provided for id "+u)}this._annotations[u]=l;this._size++;return u};ChangeAnnotations.prototype.nextId=function(){this._counter++;return this._counter.toString()};return ChangeAnnotations}();var ye=function(){function WorkspaceChange(s){var l=this;this._textEditChanges=Object.create(null);if(s!==undefined){this._workspaceEdit=s;if(s.documentChanges){this._changeAnnotations=new ve(s.changeAnnotations);s.changeAnnotations=this._changeAnnotations.all();s.documentChanges.forEach((function(s){if(ce.is(s)){var u=new ge(s.edits,l._changeAnnotations);l._textEditChanges[s.textDocument.uri]=u}}))}else if(s.changes){Object.keys(s.changes).forEach((function(u){var f=new ge(s.changes[u]);l._textEditChanges[u]=f}))}}else{this._workspaceEdit={}}}Object.defineProperty(WorkspaceChange.prototype,"edit",{get:function(){this.initDocumentChanges();if(this._changeAnnotations!==undefined){if(this._changeAnnotations.size===0){this._workspaceEdit.changeAnnotations=undefined}else{this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()}}return this._workspaceEdit},enumerable:false,configurable:true});WorkspaceChange.prototype.getTextEditChange=function(s){if(Se.is(s)){this.initDocumentChanges();if(this._workspaceEdit.documentChanges===undefined){throw new Error("Workspace edit is not configured for document changes.")}var l={uri:s.uri,version:s.version};var u=this._textEditChanges[l.uri];if(!u){var f=[];var h={textDocument:l,edits:f};this._workspaceEdit.documentChanges.push(h);u=new ge(f,this._changeAnnotations);this._textEditChanges[l.uri]=u}return u}else{this.initChanges();if(this._workspaceEdit.changes===undefined){throw new Error("Workspace edit is not configured for normal text edit changes.")}var u=this._textEditChanges[s];if(!u){var f=[];this._workspaceEdit.changes[s]=f;u=new ge(f);this._textEditChanges[s]=u}return u}};WorkspaceChange.prototype.initDocumentChanges=function(){if(this._workspaceEdit.documentChanges===undefined&&this._workspaceEdit.changes===undefined){this._changeAnnotations=new ve;this._workspaceEdit.documentChanges=[];this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()}};WorkspaceChange.prototype.initChanges=function(){if(this._workspaceEdit.documentChanges===undefined&&this._workspaceEdit.changes===undefined){this._workspaceEdit.changes=Object.create(null)}};WorkspaceChange.prototype.createFile=function(s,l,u){this.initDocumentChanges();if(this._workspaceEdit.documentChanges===undefined){throw new Error("Workspace edit is not configured for document changes.")}var f;if(ae.is(l)||le.is(l)){f=l}else{u=l}var h;var g;if(f===undefined){h=fe.create(s,u)}else{g=le.is(f)?f:this._changeAnnotations.manage(f);h=fe.create(s,u,g)}this._workspaceEdit.documentChanges.push(h);if(g!==undefined){return g}};WorkspaceChange.prototype.renameFile=function(s,l,u,f){this.initDocumentChanges();if(this._workspaceEdit.documentChanges===undefined){throw new Error("Workspace edit is not configured for document changes.")}var h;if(ae.is(u)||le.is(u)){h=u}else{f=u}var g;var v;if(h===undefined){g=pe.create(s,l,f)}else{v=le.is(h)?h:this._changeAnnotations.manage(h);g=pe.create(s,l,f,v)}this._workspaceEdit.documentChanges.push(g);if(v!==undefined){return v}};WorkspaceChange.prototype.deleteFile=function(s,l,u){this.initDocumentChanges();if(this._workspaceEdit.documentChanges===undefined){throw new Error("Workspace edit is not configured for document changes.")}var f;if(ae.is(l)||le.is(l)){f=l}else{u=l}var h;var g;if(f===undefined){h=de.create(s,u)}else{g=le.is(f)?f:this._changeAnnotations.manage(f);h=de.create(s,u,g)}this._workspaceEdit.documentChanges.push(h);if(g!==undefined){return g}};return WorkspaceChange}();l.WorkspaceChange=ye;var we;(function(s){function create(s){return{uri:s}}s.create=create;function is(s){var l=s;return ft.defined(l)&&ft.string(l.uri)}s.is=is})(we=l.TextDocumentIdentifier||(l.TextDocumentIdentifier={}));var _e;(function(s){function create(s,l){return{uri:s,version:l}}s.create=create;function is(s){var l=s;return ft.defined(l)&&ft.string(l.uri)&&ft.integer(l.version)}s.is=is})(_e=l.VersionedTextDocumentIdentifier||(l.VersionedTextDocumentIdentifier={}));var Se;(function(s){function create(s,l){return{uri:s,version:l}}s.create=create;function is(s){var l=s;return ft.defined(l)&&ft.string(l.uri)&&(l.version===null||ft.integer(l.version))}s.is=is})(Se=l.OptionalVersionedTextDocumentIdentifier||(l.OptionalVersionedTextDocumentIdentifier={}));var ke;(function(s){function create(s,l,u,f){return{uri:s,languageId:l,version:u,text:f}}s.create=create;function is(s){var l=s;return ft.defined(l)&&ft.string(l.uri)&&ft.string(l.languageId)&&ft.integer(l.version)&&ft.string(l.text)}s.is=is})(ke=l.TextDocumentItem||(l.TextDocumentItem={}));var Ce;(function(s){s.PlainText="plaintext";s.Markdown="markdown"})(Ce=l.MarkupKind||(l.MarkupKind={}));(function(s){function is(l){var u=l;return u===s.PlainText||u===s.Markdown}s.is=is})(Ce=l.MarkupKind||(l.MarkupKind={}));var Ee;(function(s){function is(s){var l=s;return ft.objectLiteral(s)&&Ce.is(l.kind)&&ft.string(l.value)}s.is=is})(Ee=l.MarkupContent||(l.MarkupContent={}));var Re;(function(s){s.Text=1;s.Method=2;s.Function=3;s.Constructor=4;s.Field=5;s.Variable=6;s.Class=7;s.Interface=8;s.Module=9;s.Property=10;s.Unit=11;s.Value=12;s.Enum=13;s.Keyword=14;s.Snippet=15;s.Color=16;s.File=17;s.Reference=18;s.Folder=19;s.EnumMember=20;s.Constant=21;s.Struct=22;s.Event=23;s.Operator=24;s.TypeParameter=25})(Re=l.CompletionItemKind||(l.CompletionItemKind={}));var Oe;(function(s){s.PlainText=1;s.Snippet=2})(Oe=l.InsertTextFormat||(l.InsertTextFormat={}));var De;(function(s){s.Deprecated=1})(De=l.CompletionItemTag||(l.CompletionItemTag={}));var Ie;(function(s){function create(s,l,u){return{newText:s,insert:l,replace:u}}s.create=create;function is(s){var l=s;return l&&ft.string(l.newText)&&h.is(l.insert)&&h.is(l.replace)}s.is=is})(Ie=l.InsertReplaceEdit||(l.InsertReplaceEdit={}));var Me;(function(s){s.asIs=1;s.adjustIndentation=2})(Me=l.InsertTextMode||(l.InsertTextMode={}));var Ne;(function(s){function create(s){return{label:s}}s.create=create})(Ne=l.CompletionItem||(l.CompletionItem={}));var Le;(function(s){function create(s,l){return{items:s?s:[],isIncomplete:!!l}}s.create=create})(Le=l.CompletionList||(l.CompletionList={}));var je;(function(s){function fromPlainText(s){return s.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}s.fromPlainText=fromPlainText;function is(s){var l=s;return ft.string(l)||ft.objectLiteral(l)&&ft.string(l.language)&&ft.string(l.value)}s.is=is})(je=l.MarkedString||(l.MarkedString={}));var Fe;(function(s){function is(s){var l=s;return!!l&&ft.objectLiteral(l)&&(Ee.is(l.contents)||je.is(l.contents)||ft.typedArray(l.contents,je.is))&&(s.range===undefined||h.is(s.range))}s.is=is})(Fe=l.Hover||(l.Hover={}));var qe;(function(s){function create(s,l){return l?{label:s,documentation:l}:{label:s}}s.create=create})(qe=l.ParameterInformation||(l.ParameterInformation={}));var $e;(function(s){function create(s,l){var u=[];for(var f=2;f<arguments.length;f++){u[f-2]=arguments[f]}var h={label:s};if(ft.defined(l)){h.documentation=l}if(ft.defined(u)){h.parameters=u}else{h.parameters=[]}return h}s.create=create})($e=l.SignatureInformation||(l.SignatureInformation={}));var We;(function(s){s.Text=1;s.Read=2;s.Write=3})(We=l.DocumentHighlightKind||(l.DocumentHighlightKind={}));var ze;(function(s){function create(s,l){var u={range:s};if(ft.number(l)){u.kind=l}return u}s.create=create})(ze=l.DocumentHighlight||(l.DocumentHighlight={}));var Ve;(function(s){s.File=1;s.Module=2;s.Namespace=3;s.Package=4;s.Class=5;s.Method=6;s.Property=7;s.Field=8;s.Constructor=9;s.Enum=10;s.Interface=11;s.Function=12;s.Variable=13;s.Constant=14;s.String=15;s.Number=16;s.Boolean=17;s.Array=18;s.Object=19;s.Key=20;s.Null=21;s.EnumMember=22;s.Struct=23;s.Event=24;s.Operator=25;s.TypeParameter=26})(Ve=l.SymbolKind||(l.SymbolKind={}));var Ge;(function(s){s.Deprecated=1})(Ge=l.SymbolTag||(l.SymbolTag={}));var Ye;(function(s){function create(s,l,u,f,h){var g={name:s,kind:l,location:{uri:f,range:u}};if(h){g.containerName=h}return g}s.create=create})(Ye=l.SymbolInformation||(l.SymbolInformation={}));var Ke;(function(s){function create(s,l,u,f,h,g){var v={name:s,detail:l,kind:u,range:f,selectionRange:h};if(g!==undefined){v.children=g}return v}s.create=create;function is(s){var l=s;return l&&ft.string(l.name)&&ft.number(l.kind)&&h.is(l.range)&&h.is(l.selectionRange)&&(l.detail===undefined||ft.string(l.detail))&&(l.deprecated===undefined||ft.boolean(l.deprecated))&&(l.children===undefined||Array.isArray(l.children))&&(l.tags===undefined||Array.isArray(l.tags))}s.is=is})(Ke=l.DocumentSymbol||(l.DocumentSymbol={}));var Qe;(function(s){s.Empty="";s.QuickFix="quickfix";s.Refactor="refactor";s.RefactorExtract="refactor.extract";s.RefactorInline="refactor.inline";s.RefactorRewrite="refactor.rewrite";s.Source="source";s.SourceOrganizeImports="source.organizeImports";s.SourceFixAll="source.fixAll"})(Qe=l.CodeActionKind||(l.CodeActionKind={}));var Je;(function(s){function create(s,l){var u={diagnostics:s};if(l!==undefined&&l!==null){u.only=l}return u}s.create=create;function is(s){var l=s;return ft.defined(l)&&ft.typedArray(l.diagnostics,ie.is)&&(l.only===undefined||ft.typedArray(l.only,ft.string))}s.is=is})(Je=l.CodeActionContext||(l.CodeActionContext={}));var Xe;(function(s){function create(s,l,u){var f={title:s};var h=true;if(typeof l==="string"){h=false;f.kind=l}else if(se.is(l)){f.command=l}else{f.edit=l}if(h&&u!==undefined){f.kind=u}return f}s.create=create;function is(s){var l=s;return l&&ft.string(l.title)&&(l.diagnostics===undefined||ft.typedArray(l.diagnostics,ie.is))&&(l.kind===undefined||ft.string(l.kind))&&(l.edit!==undefined||l.command!==undefined)&&(l.command===undefined||se.is(l.command))&&(l.isPreferred===undefined||ft.boolean(l.isPreferred))&&(l.edit===undefined||he.is(l.edit))}s.is=is})(Xe=l.CodeAction||(l.CodeAction={}));var et;(function(s){function create(s,l){var u={range:s};if(ft.defined(l)){u.data=l}return u}s.create=create;function is(s){var l=s;return ft.defined(l)&&h.is(l.range)&&(ft.undefined(l.command)||se.is(l.command))}s.is=is})(et=l.CodeLens||(l.CodeLens={}));var tt;(function(s){function create(s,l){return{tabSize:s,insertSpaces:l}}s.create=create;function is(s){var l=s;return ft.defined(l)&&ft.uinteger(l.tabSize)&&ft.boolean(l.insertSpaces)}s.is=is})(tt=l.FormattingOptions||(l.FormattingOptions={}));var it;(function(s){function create(s,l,u){return{range:s,target:l,data:u}}s.create=create;function is(s){var l=s;return ft.defined(l)&&h.is(l.range)&&(ft.undefined(l.target)||ft.string(l.target))}s.is=is})(it=l.DocumentLink||(l.DocumentLink={}));var st;(function(s){function create(s,l){return{range:s,parent:l}}s.create=create;function is(l){var u=l;return u!==undefined&&h.is(u.range)&&(u.parent===undefined||s.is(u.parent))}s.is=is})(st=l.SelectionRange||(l.SelectionRange={}));l.EOL=["\n","\r\n","\r"];var ut;(function(s){function create(s,l,u,f){return new ct(s,l,u,f)}s.create=create;function is(s){var l=s;return ft.defined(l)&&ft.string(l.uri)&&(ft.undefined(l.languageId)||ft.string(l.languageId))&&ft.uinteger(l.lineCount)&&ft.func(l.getText)&&ft.func(l.positionAt)&&ft.func(l.offsetAt)?true:false}s.is=is;function applyEdits(s,l){var u=s.getText();var f=mergeSort(l,(function(s,l){var u=s.range.start.line-l.range.start.line;if(u===0){return s.range.start.character-l.range.start.character}return u}));var h=u.length;for(var g=f.length-1;g>=0;g--){var v=f[g];var k=s.offsetAt(v.range.start);var O=s.offsetAt(v.range.end);if(O<=h){u=u.substring(0,k)+v.newText+u.substring(O,u.length)}else{throw new Error("Overlapping edit")}h=k}return u}s.applyEdits=applyEdits;function mergeSort(s,l){if(s.length<=1){return s}var u=s.length/2|0;var f=s.slice(0,u);var h=s.slice(u);mergeSort(f,l);mergeSort(h,l);var g=0;var v=0;var k=0;while(g<f.length&&v<h.length){var O=l(f[g],h[v]);if(O<=0){s[k++]=f[g++]}else{s[k++]=h[v++]}}while(g<f.length){s[k++]=f[g++]}while(v<h.length){s[k++]=h[v++]}return s}})(ut=l.TextDocument||(l.TextDocument={}));var ct=function(){function FullTextDocument(s,l,u,f){this._uri=s;this._languageId=l;this._version=u;this._content=f;this._lineOffsets=undefined}Object.defineProperty(FullTextDocument.prototype,"uri",{get:function(){return this._uri},enumerable:false,configurable:true});Object.defineProperty(FullTextDocument.prototype,"languageId",{get:function(){return this._languageId},enumerable:false,configurable:true});Object.defineProperty(FullTextDocument.prototype,"version",{get:function(){return this._version},enumerable:false,configurable:true});FullTextDocument.prototype.getText=function(s){if(s){var l=this.offsetAt(s.start);var u=this.offsetAt(s.end);return this._content.substring(l,u)}return this._content};FullTextDocument.prototype.update=function(s,l){this._content=s.text;this._version=l;this._lineOffsets=undefined};FullTextDocument.prototype.getLineOffsets=function(){if(this._lineOffsets===undefined){var s=[];var l=this._content;var u=true;for(var f=0;f<l.length;f++){if(u){s.push(f);u=false}var h=l.charAt(f);u=h==="\r"||h==="\n";if(h==="\r"&&f+1<l.length&&l.charAt(f+1)==="\n"){f++}}if(u&&l.length>0){s.push(l.length)}this._lineOffsets=s}return this._lineOffsets};FullTextDocument.prototype.positionAt=function(s){s=Math.max(Math.min(s,this._content.length),0);var l=this.getLineOffsets();var u=0,h=l.length;if(h===0){return f.create(0,s)}while(u<h){var g=Math.floor((u+h)/2);if(l[g]>s){h=g}else{u=g+1}}var v=u-1;return f.create(v,s-l[v])};FullTextDocument.prototype.offsetAt=function(s){var l=this.getLineOffsets();if(s.line>=l.length){return this._content.length}else if(s.line<0){return 0}var u=l[s.line];var f=s.line+1<l.length?l[s.line+1]:this._content.length;return Math.max(Math.min(u+s.character,f),u)};Object.defineProperty(FullTextDocument.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:false,configurable:true});return FullTextDocument}();var ft;(function(s){var l=Object.prototype.toString;function defined(s){return typeof s!=="undefined"}s.defined=defined;function undefined(s){return typeof s==="undefined"}s.undefined=undefined;function boolean(s){return s===true||s===false}s.boolean=boolean;function string(s){return l.call(s)==="[object String]"}s.string=string;function number(s){return l.call(s)==="[object Number]"}s.number=number;function numberRange(s,u,f){return l.call(s)==="[object Number]"&&u<=s&&s<=f}s.numberRange=numberRange;function integer(s){return l.call(s)==="[object Number]"&&-2147483648<=s&&s<=2147483647}s.integer=integer;function uinteger(s){return l.call(s)==="[object Number]"&&0<=s&&s<=2147483647}s.uinteger=uinteger;function func(s){return l.call(s)==="[object Function]"}s.func=func;function objectLiteral(s){return s!==null&&typeof s==="object"}s.objectLiteral=objectLiteral;function typedArray(s,l){return Array.isArray(s)&&s.every(l)}s.typedArray=typedArray})(ft||(ft={}))}))},29755:function(s,l,u){"use strict";var f=this&&this.__createBinding||(Object.create?function(s,l,u,f){if(f===undefined)f=u;Object.defineProperty(s,f,{enumerable:true,get:function(){return l[u]}})}:function(s,l,u,f){if(f===undefined)f=u;s[f]=l[u]});var h=this&&this.__exportStar||function(s,l){for(var u in s)if(u!=="default"&&!Object.prototype.hasOwnProperty.call(l,u))f(l,s,u)};Object.defineProperty(l,"__esModule",{value:true});l.ProposedFeatures=l.SemanticTokensBuilder=void 0;const g=u(37241);Object.defineProperty(l,"SemanticTokensBuilder",{enumerable:true,get:function(){return g.SemanticTokensBuilder}});h(u(3302),l);h(u(13472),l);var v;(function(s){s.all={__brand:"features"}})(v=l.ProposedFeatures||(l.ProposedFeatures={}))},15354:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.CallHierarchyFeature=void 0;const f=u(3302);const CallHierarchyFeature=s=>class extends s{get callHierarchy(){return{onPrepare:s=>{this.connection.onRequest(f.CallHierarchyPrepareRequest.type,((l,u)=>s(l,u,this.attachWorkDoneProgress(l),undefined)))},onIncomingCalls:s=>{const l=f.CallHierarchyIncomingCallsRequest.type;this.connection.onRequest(l,((u,f)=>s(u,f,this.attachWorkDoneProgress(u),this.attachPartialResultProgress(l,u))))},onOutgoingCalls:s=>{const l=f.CallHierarchyOutgoingCallsRequest.type;this.connection.onRequest(l,((u,f)=>s(u,f,this.attachWorkDoneProgress(u),this.attachPartialResultProgress(l,u))))}}}};l.CallHierarchyFeature=CallHierarchyFeature},27792:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.ConfigurationFeature=void 0;const f=u(3302);const h=u(7018);const ConfigurationFeature=s=>class extends s{getConfiguration(s){if(!s){return this._getConfiguration({})}else if(h.string(s)){return this._getConfiguration({section:s})}else{return this._getConfiguration(s)}}_getConfiguration(s){let l={items:Array.isArray(s)?s:[s]};return this.connection.sendRequest(f.ConfigurationRequest.type,l).then((l=>Array.isArray(s)?l:l[0]))}};l.ConfigurationFeature=ConfigurationFeature},19293:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.FileOperationsFeature=void 0;const f=u(3302);const FileOperationsFeature=s=>class extends s{onDidCreateFiles(s){this.connection.onNotification(f.DidCreateFilesNotification.type,(l=>{s(l)}))}onDidRenameFiles(s){this.connection.onNotification(f.DidRenameFilesNotification.type,(l=>{s(l)}))}onDidDeleteFiles(s){this.connection.onNotification(f.DidDeleteFilesNotification.type,(l=>{s(l)}))}onWillCreateFiles(s){return this.connection.onRequest(f.WillCreateFilesRequest.type,((l,u)=>s(l,u)))}onWillRenameFiles(s){return this.connection.onRequest(f.WillRenameFilesRequest.type,((l,u)=>s(l,u)))}onWillDeleteFiles(s){return this.connection.onRequest(f.WillDeleteFilesRequest.type,((l,u)=>s(l,u)))}};l.FileOperationsFeature=FileOperationsFeature},86940:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.LinkedEditingRangeFeature=void 0;const f=u(3302);const LinkedEditingRangeFeature=s=>class extends s{onLinkedEditingRange(s){this.connection.onRequest(f.LinkedEditingRangeRequest.type,((l,u)=>s(l,u,this.attachWorkDoneProgress(l),undefined)))}};l.LinkedEditingRangeFeature=LinkedEditingRangeFeature},34097:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.MonikerFeature=void 0;const f=u(3302);const MonikerFeature=s=>class extends s{get moniker(){return{on:s=>{const l=f.MonikerRequest.type;this.connection.onRequest(l,((u,f)=>s(u,f,this.attachWorkDoneProgress(u),this.attachPartialResultProgress(l,u))))}}}};l.MonikerFeature=MonikerFeature},96232:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.attachPartialResult=l.ProgressFeature=l.attachWorkDone=void 0;const f=u(3302);const h=u(1702);class WorkDoneProgressReporterImpl{constructor(s,l){this._connection=s;this._token=l;WorkDoneProgressReporterImpl.Instances.set(this._token,this)}begin(s,l,u,h){let g={kind:"begin",title:s,percentage:l,message:u,cancellable:h};this._connection.sendProgress(f.WorkDoneProgress.type,this._token,g)}report(s,l){let u={kind:"report"};if(typeof s==="number"){u.percentage=s;if(l!==undefined){u.message=l}}else{u.message=s}this._connection.sendProgress(f.WorkDoneProgress.type,this._token,u)}done(){WorkDoneProgressReporterImpl.Instances.delete(this._token);this._connection.sendProgress(f.WorkDoneProgress.type,this._token,{kind:"end"})}}WorkDoneProgressReporterImpl.Instances=new Map;class WorkDoneProgressServerReporterImpl extends WorkDoneProgressReporterImpl{constructor(s,l){super(s,l);this._source=new f.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose();super.done()}cancel(){this._source.cancel()}}class NullProgressReporter{constructor(){}begin(){}report(){}done(){}}class NullProgressServerReporter extends NullProgressReporter{constructor(){super();this._source=new f.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose()}cancel(){this._source.cancel()}}function attachWorkDone(s,l){if(l===undefined||l.workDoneToken===undefined){return new NullProgressReporter}const u=l.workDoneToken;delete l.workDoneToken;return new WorkDoneProgressReporterImpl(s,u)}l.attachWorkDone=attachWorkDone;const ProgressFeature=s=>class extends s{constructor(){super();this._progressSupported=false}initialize(s){var l;if(((l=s===null||s===void 0?void 0:s.window)===null||l===void 0?void 0:l.workDoneProgress)===true){this._progressSupported=true;this.connection.onNotification(f.WorkDoneProgressCancelNotification.type,(s=>{let l=WorkDoneProgressReporterImpl.Instances.get(s.token);if(l instanceof WorkDoneProgressServerReporterImpl||l instanceof NullProgressServerReporter){l.cancel()}}))}}attachWorkDoneProgress(s){if(s===undefined){return new NullProgressReporter}else{return new WorkDoneProgressReporterImpl(this.connection,s)}}createWorkDoneProgress(){if(this._progressSupported){const s=h.generateUuid();return this.connection.sendRequest(f.WorkDoneProgressCreateRequest.type,{token:s}).then((()=>{const l=new WorkDoneProgressServerReporterImpl(this.connection,s);return l}))}else{return Promise.resolve(new NullProgressServerReporter)}}};l.ProgressFeature=ProgressFeature;var g;(function(s){s.type=new f.ProgressType})(g||(g={}));class ResultProgressReporterImpl{constructor(s,l){this._connection=s;this._token=l}report(s){this._connection.sendProgress(g.type,this._token,s)}}function attachPartialResult(s,l){if(l===undefined||l.partialResultToken===undefined){return undefined}const u=l.partialResultToken;delete l.partialResultToken;return new ResultProgressReporterImpl(s,u)}l.attachPartialResult=attachPartialResult},37241:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.SemanticTokensBuilder=l.SemanticTokensFeature=void 0;const f=u(3302);const SemanticTokensFeature=s=>class extends s{get semanticTokens(){return{on:s=>{const l=f.SemanticTokensRequest.type;this.connection.onRequest(l,((u,f)=>s(u,f,this.attachWorkDoneProgress(u),this.attachPartialResultProgress(l,u))))},onDelta:s=>{const l=f.SemanticTokensDeltaRequest.type;this.connection.onRequest(l,((u,f)=>s(u,f,this.attachWorkDoneProgress(u),this.attachPartialResultProgress(l,u))))},onRange:s=>{const l=f.SemanticTokensRangeRequest.type;this.connection.onRequest(l,((u,f)=>s(u,f,this.attachWorkDoneProgress(u),this.attachPartialResultProgress(l,u))))}}}};l.SemanticTokensFeature=SemanticTokensFeature;class SemanticTokensBuilder{constructor(){this._prevData=undefined;this.initialize()}initialize(){this._id=Date.now();this._prevLine=0;this._prevChar=0;this._data=[];this._dataLen=0}push(s,l,u,f,h){let g=s;let v=l;if(this._dataLen>0){g-=this._prevLine;if(g===0){v-=this._prevChar}}this._data[this._dataLen++]=g;this._data[this._dataLen++]=v;this._data[this._dataLen++]=u;this._data[this._dataLen++]=f;this._data[this._dataLen++]=h;this._prevLine=s;this._prevChar=l}get id(){return this._id.toString()}previousResult(s){if(this.id===s){this._prevData=this._data}this.initialize()}build(){this._prevData=undefined;return{resultId:this.id,data:this._data}}canBuildEdits(){return this._prevData!==undefined}buildEdits(){if(this._prevData!==undefined){const s=this._prevData.length;const l=this._data.length;let u=0;while(u<l&&u<s&&this._prevData[u]===this._data[u]){u++}if(u<l&&u<s){let f=0;while(f<l&&f<s&&this._prevData[s-1-f]===this._data[l-1-f]){f++}const h=this._data.slice(u,l-f);const g={resultId:this.id,edits:[{start:u,deleteCount:s-f-u,data:h}]};return g}else if(u<l){return{resultId:this.id,edits:[{start:u,deleteCount:0,data:this._data.slice(u)}]}}else if(u<s){return{resultId:this.id,edits:[{start:u,deleteCount:s-u}]}}else{return{resultId:this.id,edits:[]}}}else{return this.build()}}}l.SemanticTokensBuilder=SemanticTokensBuilder},13472:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.createConnection=l.combineFeatures=l.combineLanguagesFeatures=l.combineWorkspaceFeatures=l.combineWindowFeatures=l.combineClientFeatures=l.combineTracerFeatures=l.combineTelemetryFeatures=l.combineConsoleFeatures=l._LanguagesImpl=l.BulkUnregistration=l.BulkRegistration=l.ErrorMessageTracker=l.TextDocuments=void 0;const f=u(3302);const h=u(7018);const g=u(1702);const v=u(96232);const k=u(27792);const O=u(62510);const M=u(15354);const q=u(37241);const B=u(62613);const Y=u(19293);const te=u(86940);const re=u(34097);function null2Undefined(s){if(s===null){return undefined}return s}class TextDocuments{constructor(s){this._documents=Object.create(null);this._configuration=s;this._onDidChangeContent=new f.Emitter;this._onDidOpen=new f.Emitter;this._onDidClose=new f.Emitter;this._onDidSave=new f.Emitter;this._onWillSave=new f.Emitter}get onDidChangeContent(){return this._onDidChangeContent.event}get onDidOpen(){return this._onDidOpen.event}get onWillSave(){return this._onWillSave.event}onWillSaveWaitUntil(s){this._willSaveWaitUntil=s}get onDidSave(){return this._onDidSave.event}get onDidClose(){return this._onDidClose.event}get(s){return this._documents[s]}all(){return Object.keys(this._documents).map((s=>this._documents[s]))}keys(){return Object.keys(this._documents)}listen(s){s.__textDocumentSync=f.TextDocumentSyncKind.Full;s.onDidOpenTextDocument((s=>{let l=s.textDocument;let u=this._configuration.create(l.uri,l.languageId,l.version,l.text);this._documents[l.uri]=u;let f=Object.freeze({document:u});this._onDidOpen.fire(f);this._onDidChangeContent.fire(f)}));s.onDidChangeTextDocument((s=>{let l=s.textDocument;let u=s.contentChanges;if(u.length===0){return}let f=this._documents[l.uri];const{version:h}=l;if(h===null||h===undefined){throw new Error(`Received document change event for ${l.uri} without valid version identifier`)}f=this._configuration.update(f,u,h);this._documents[l.uri]=f;this._onDidChangeContent.fire(Object.freeze({document:f}))}));s.onDidCloseTextDocument((s=>{let l=this._documents[s.textDocument.uri];if(l){delete this._documents[s.textDocument.uri];this._onDidClose.fire(Object.freeze({document:l}))}}));s.onWillSaveTextDocument((s=>{let l=this._documents[s.textDocument.uri];if(l){this._onWillSave.fire(Object.freeze({document:l,reason:s.reason}))}}));s.onWillSaveTextDocumentWaitUntil(((s,l)=>{let u=this._documents[s.textDocument.uri];if(u&&this._willSaveWaitUntil){return this._willSaveWaitUntil(Object.freeze({document:u,reason:s.reason}),l)}else{return[]}}));s.onDidSaveTextDocument((s=>{let l=this._documents[s.textDocument.uri];if(l){this._onDidSave.fire(Object.freeze({document:l}))}}))}}l.TextDocuments=TextDocuments;class ErrorMessageTracker{constructor(){this._messages=Object.create(null)}add(s){let l=this._messages[s];if(!l){l=0}l++;this._messages[s]=l}sendErrors(s){Object.keys(this._messages).forEach((l=>{s.window.showErrorMessage(l)}))}}l.ErrorMessageTracker=ErrorMessageTracker;class RemoteConsoleImpl{constructor(){}rawAttach(s){this._rawConnection=s}attach(s){this._connection=s}get connection(){if(!this._connection){throw new Error("Remote is not attached to a connection yet.")}return this._connection}fillServerCapabilities(s){}initialize(s){}error(s){this.send(f.MessageType.Error,s)}warn(s){this.send(f.MessageType.Warning,s)}info(s){this.send(f.MessageType.Info,s)}log(s){this.send(f.MessageType.Log,s)}send(s,l){if(this._rawConnection){this._rawConnection.sendNotification(f.LogMessageNotification.type,{type:s,message:l})}}}class _RemoteWindowImpl{constructor(){}attach(s){this._connection=s}get connection(){if(!this._connection){throw new Error("Remote is not attached to a connection yet.")}return this._connection}initialize(s){}fillServerCapabilities(s){}showErrorMessage(s,...l){let u={type:f.MessageType.Error,message:s,actions:l};return this.connection.sendRequest(f.ShowMessageRequest.type,u).then(null2Undefined)}showWarningMessage(s,...l){let u={type:f.MessageType.Warning,message:s,actions:l};return this.connection.sendRequest(f.ShowMessageRequest.type,u).then(null2Undefined)}showInformationMessage(s,...l){let u={type:f.MessageType.Info,message:s,actions:l};return this.connection.sendRequest(f.ShowMessageRequest.type,u).then(null2Undefined)}}const ne=B.ShowDocumentFeature(v.ProgressFeature(_RemoteWindowImpl));var ie;(function(s){function create(){return new BulkRegistrationImpl}s.create=create})(ie=l.BulkRegistration||(l.BulkRegistration={}));class BulkRegistrationImpl{constructor(){this._registrations=[];this._registered=new Set}add(s,l){const u=h.string(s)?s:s.method;if(this._registered.has(u)){throw new Error(`${u} is already added to this registration`)}const f=g.generateUuid();this._registrations.push({id:f,method:u,registerOptions:l||{}});this._registered.add(u)}asRegistrationParams(){return{registrations:this._registrations}}}var se;(function(s){function create(){return new BulkUnregistrationImpl(undefined,[])}s.create=create})(se=l.BulkUnregistration||(l.BulkUnregistration={}));class BulkUnregistrationImpl{constructor(s,l){this._connection=s;this._unregistrations=new Map;l.forEach((s=>{this._unregistrations.set(s.method,s)}))}get isAttached(){return!!this._connection}attach(s){this._connection=s}add(s){this._unregistrations.set(s.method,s)}dispose(){let s=[];for(let l of this._unregistrations.values()){s.push(l)}let l={unregisterations:s};this._connection.sendRequest(f.UnregistrationRequest.type,l).then(undefined,(s=>{this._connection.console.info(`Bulk unregistration failed.`)}))}disposeSingle(s){const l=h.string(s)?s:s.method;const u=this._unregistrations.get(l);if(!u){return false}let g={unregisterations:[u]};this._connection.sendRequest(f.UnregistrationRequest.type,g).then((()=>{this._unregistrations.delete(l)}),(s=>{this._connection.console.info(`Un-registering request handler for ${u.id} failed.`)}));return true}}class RemoteClientImpl{attach(s){this._connection=s}get connection(){if(!this._connection){throw new Error("Remote is not attached to a connection yet.")}return this._connection}initialize(s){}fillServerCapabilities(s){}register(s,l,u){if(s instanceof BulkRegistrationImpl){return this.registerMany(s)}else if(s instanceof BulkUnregistrationImpl){return this.registerSingle1(s,l,u)}else{return this.registerSingle2(s,l)}}registerSingle1(s,l,u){const v=h.string(l)?l:l.method;const k=g.generateUuid();let O={registrations:[{id:k,method:v,registerOptions:u||{}}]};if(!s.isAttached){s.attach(this.connection)}return this.connection.sendRequest(f.RegistrationRequest.type,O).then((l=>{s.add({id:k,method:v});return s}),(s=>{this.connection.console.info(`Registering request handler for ${v} failed.`);return Promise.reject(s)}))}registerSingle2(s,l){const u=h.string(s)?s:s.method;const v=g.generateUuid();let k={registrations:[{id:v,method:u,registerOptions:l||{}}]};return this.connection.sendRequest(f.RegistrationRequest.type,k).then((s=>f.Disposable.create((()=>{this.unregisterSingle(v,u)}))),(s=>{this.connection.console.info(`Registering request handler for ${u} failed.`);return Promise.reject(s)}))}unregisterSingle(s,l){let u={unregisterations:[{id:s,method:l}]};return this.connection.sendRequest(f.UnregistrationRequest.type,u).then(undefined,(l=>{this.connection.console.info(`Un-registering request handler for ${s} failed.`)}))}registerMany(s){let l=s.asRegistrationParams();return this.connection.sendRequest(f.RegistrationRequest.type,l).then((()=>new BulkUnregistrationImpl(this._connection,l.registrations.map((s=>({id:s.id,method:s.method}))))),(s=>{this.connection.console.info(`Bulk registration failed.`);return Promise.reject(s)}))}}class _RemoteWorkspaceImpl{constructor(){}attach(s){this._connection=s}get connection(){if(!this._connection){throw new Error("Remote is not attached to a connection yet.")}return this._connection}initialize(s){}fillServerCapabilities(s){}applyEdit(s){function isApplyWorkspaceEditParams(s){return s&&!!s.edit}let l=isApplyWorkspaceEditParams(s)?s:{edit:s};return this.connection.sendRequest(f.ApplyWorkspaceEditRequest.type,l)}}const oe=Y.FileOperationsFeature(O.WorkspaceFoldersFeature(k.ConfigurationFeature(_RemoteWorkspaceImpl)));class TracerImpl{constructor(){this._trace=f.Trace.Off}attach(s){this._connection=s}get connection(){if(!this._connection){throw new Error("Remote is not attached to a connection yet.")}return this._connection}initialize(s){}fillServerCapabilities(s){}set trace(s){this._trace=s}log(s,l){if(this._trace===f.Trace.Off){return}this.connection.sendNotification(f.LogTraceNotification.type,{message:s,verbose:this._trace===f.Trace.Verbose?l:undefined})}}class TelemetryImpl{constructor(){}attach(s){this._connection=s}get connection(){if(!this._connection){throw new Error("Remote is not attached to a connection yet.")}return this._connection}initialize(s){}fillServerCapabilities(s){}logEvent(s){this.connection.sendNotification(f.TelemetryEventNotification.type,s)}}class _LanguagesImpl{constructor(){}attach(s){this._connection=s}get connection(){if(!this._connection){throw new Error("Remote is not attached to a connection yet.")}return this._connection}initialize(s){}fillServerCapabilities(s){}attachWorkDoneProgress(s){return v.attachWorkDone(this.connection,s)}attachPartialResultProgress(s,l){return v.attachPartialResult(this.connection,l)}}l._LanguagesImpl=_LanguagesImpl;const ae=re.MonikerFeature(te.LinkedEditingRangeFeature(q.SemanticTokensFeature(M.CallHierarchyFeature(_LanguagesImpl))));function combineConsoleFeatures(s,l){return function(u){return l(s(u))}}l.combineConsoleFeatures=combineConsoleFeatures;function combineTelemetryFeatures(s,l){return function(u){return l(s(u))}}l.combineTelemetryFeatures=combineTelemetryFeatures;function combineTracerFeatures(s,l){return function(u){return l(s(u))}}l.combineTracerFeatures=combineTracerFeatures;function combineClientFeatures(s,l){return function(u){return l(s(u))}}l.combineClientFeatures=combineClientFeatures;function combineWindowFeatures(s,l){return function(u){return l(s(u))}}l.combineWindowFeatures=combineWindowFeatures;function combineWorkspaceFeatures(s,l){return function(u){return l(s(u))}}l.combineWorkspaceFeatures=combineWorkspaceFeatures;function combineLanguagesFeatures(s,l){return function(u){return l(s(u))}}l.combineLanguagesFeatures=combineLanguagesFeatures;function combineFeatures(s,l){function combine(s,l,u){if(s&&l){return u(s,l)}else if(s){return s}else{return l}}let u={__brand:"features",console:combine(s.console,l.console,combineConsoleFeatures),tracer:combine(s.tracer,l.tracer,combineTracerFeatures),telemetry:combine(s.telemetry,l.telemetry,combineTelemetryFeatures),client:combine(s.client,l.client,combineClientFeatures),window:combine(s.window,l.window,combineWindowFeatures),workspace:combine(s.workspace,l.workspace,combineWorkspaceFeatures)};return u}l.combineFeatures=combineFeatures;function createConnection(s,l,u){const g=u&&u.console?new(u.console(RemoteConsoleImpl)):new RemoteConsoleImpl;const k=s(g);g.rawAttach(k);const O=u&&u.tracer?new(u.tracer(TracerImpl)):new TracerImpl;const M=u&&u.telemetry?new(u.telemetry(TelemetryImpl)):new TelemetryImpl;const q=u&&u.client?new(u.client(RemoteClientImpl)):new RemoteClientImpl;const B=u&&u.window?new(u.window(ne)):new ne;const Y=u&&u.workspace?new(u.workspace(oe)):new oe;const te=u&&u.languages?new(u.languages(ae)):new ae;const re=[g,O,M,q,B,Y,te];function asPromise(s){if(s instanceof Promise){return s}else if(h.thenable(s)){return new Promise(((l,u)=>{s.then((s=>l(s)),(s=>u(s)))}))}else{return Promise.resolve(s)}}let ie=undefined;let se=undefined;let le=undefined;let ue={listen:()=>k.listen(),sendRequest:(s,...l)=>k.sendRequest(h.string(s)?s:s.method,...l),onRequest:(s,l)=>k.onRequest(s,l),sendNotification:(s,l)=>{const u=h.string(s)?s:s.method;if(arguments.length===1){k.sendNotification(u)}else{k.sendNotification(u,l)}},onNotification:(s,l)=>k.onNotification(s,l),onProgress:k.onProgress,sendProgress:k.sendProgress,onInitialize:s=>se=s,onInitialized:s=>k.onNotification(f.InitializedNotification.type,s),onShutdown:s=>ie=s,onExit:s=>le=s,get console(){return g},get telemetry(){return M},get tracer(){return O},get client(){return q},get window(){return B},get workspace(){return Y},get languages(){return te},onDidChangeConfiguration:s=>k.onNotification(f.DidChangeConfigurationNotification.type,s),onDidChangeWatchedFiles:s=>k.onNotification(f.DidChangeWatchedFilesNotification.type,s),__textDocumentSync:undefined,onDidOpenTextDocument:s=>k.onNotification(f.DidOpenTextDocumentNotification.type,s),onDidChangeTextDocument:s=>k.onNotification(f.DidChangeTextDocumentNotification.type,s),onDidCloseTextDocument:s=>k.onNotification(f.DidCloseTextDocumentNotification.type,s),onWillSaveTextDocument:s=>k.onNotification(f.WillSaveTextDocumentNotification.type,s),onWillSaveTextDocumentWaitUntil:s=>k.onRequest(f.WillSaveTextDocumentWaitUntilRequest.type,s),onDidSaveTextDocument:s=>k.onNotification(f.DidSaveTextDocumentNotification.type,s),sendDiagnostics:s=>k.sendNotification(f.PublishDiagnosticsNotification.type,s),onHover:s=>k.onRequest(f.HoverRequest.type,((l,u)=>s(l,u,v.attachWorkDone(k,l),undefined))),onCompletion:s=>k.onRequest(f.CompletionRequest.type,((l,u)=>s(l,u,v.attachWorkDone(k,l),v.attachPartialResult(k,l)))),onCompletionResolve:s=>k.onRequest(f.CompletionResolveRequest.type,s),onSignatureHelp:s=>k.onRequest(f.SignatureHelpRequest.type,((l,u)=>s(l,u,v.attachWorkDone(k,l),undefined))),onDeclaration:s=>k.onRequest(f.DeclarationRequest.type,((l,u)=>s(l,u,v.attachWorkDone(k,l),v.attachPartialResult(k,l)))),onDefinition:s=>k.onRequest(f.DefinitionRequest.type,((l,u)=>s(l,u,v.attachWorkDone(k,l),v.attachPartialResult(k,l)))),onTypeDefinition:s=>k.onRequest(f.TypeDefinitionRequest.type,((l,u)=>s(l,u,v.attachWorkDone(k,l),v.attachPartialResult(k,l)))),onImplementation:s=>k.onRequest(f.ImplementationRequest.type,((l,u)=>s(l,u,v.attachWorkDone(k,l),v.attachPartialResult(k,l)))),onReferences:s=>k.onRequest(f.ReferencesRequest.type,((l,u)=>s(l,u,v.attachWorkDone(k,l),v.attachPartialResult(k,l)))),onDocumentHighlight:s=>k.onRequest(f.DocumentHighlightRequest.type,((l,u)=>s(l,u,v.attachWorkDone(k,l),v.attachPartialResult(k,l)))),onDocumentSymbol:s=>k.onRequest(f.DocumentSymbolRequest.type,((l,u)=>s(l,u,v.attachWorkDone(k,l),v.attachPartialResult(k,l)))),onWorkspaceSymbol:s=>k.onRequest(f.WorkspaceSymbolRequest.type,((l,u)=>s(l,u,v.attachWorkDone(k,l),v.attachPartialResult(k,l)))),onCodeAction:s=>k.onRequest(f.CodeActionRequest.type,((l,u)=>s(l,u,v.attachWorkDone(k,l),v.attachPartialResult(k,l)))),onCodeActionResolve:s=>k.onRequest(f.CodeActionResolveRequest.type,((l,u)=>s(l,u))),onCodeLens:s=>k.onRequest(f.CodeLensRequest.type,((l,u)=>s(l,u,v.attachWorkDone(k,l),v.attachPartialResult(k,l)))),onCodeLensResolve:s=>k.onRequest(f.CodeLensResolveRequest.type,((l,u)=>s(l,u))),onDocumentFormatting:s=>k.onRequest(f.DocumentFormattingRequest.type,((l,u)=>s(l,u,v.attachWorkDone(k,l),undefined))),onDocumentRangeFormatting:s=>k.onRequest(f.DocumentRangeFormattingRequest.type,((l,u)=>s(l,u,v.attachWorkDone(k,l),undefined))),onDocumentOnTypeFormatting:s=>k.onRequest(f.DocumentOnTypeFormattingRequest.type,((l,u)=>s(l,u))),onRenameRequest:s=>k.onRequest(f.RenameRequest.type,((l,u)=>s(l,u,v.attachWorkDone(k,l),undefined))),onPrepareRename:s=>k.onRequest(f.PrepareRenameRequest.type,((l,u)=>s(l,u))),onDocumentLinks:s=>k.onRequest(f.DocumentLinkRequest.type,((l,u)=>s(l,u,v.attachWorkDone(k,l),v.attachPartialResult(k,l)))),onDocumentLinkResolve:s=>k.onRequest(f.DocumentLinkResolveRequest.type,((l,u)=>s(l,u))),onDocumentColor:s=>k.onRequest(f.DocumentColorRequest.type,((l,u)=>s(l,u,v.attachWorkDone(k,l),v.attachPartialResult(k,l)))),onColorPresentation:s=>k.onRequest(f.ColorPresentationRequest.type,((l,u)=>s(l,u,v.attachWorkDone(k,l),v.attachPartialResult(k,l)))),onFoldingRanges:s=>k.onRequest(f.FoldingRangeRequest.type,((l,u)=>s(l,u,v.attachWorkDone(k,l),v.attachPartialResult(k,l)))),onSelectionRanges:s=>k.onRequest(f.SelectionRangeRequest.type,((l,u)=>s(l,u,v.attachWorkDone(k,l),v.attachPartialResult(k,l)))),onExecuteCommand:s=>k.onRequest(f.ExecuteCommandRequest.type,((l,u)=>s(l,u,v.attachWorkDone(k,l),undefined))),dispose:()=>k.dispose()};for(let s of re){s.attach(ue)}k.onRequest(f.InitializeRequest.type,(s=>{l.initialize(s);if(h.string(s.trace)){O.trace=f.Trace.fromString(s.trace)}for(let l of re){l.initialize(s.capabilities)}if(se){let l=se(s,(new f.CancellationTokenSource).token,v.attachWorkDone(k,s),undefined);return asPromise(l).then((s=>{if(s instanceof f.ResponseError){return s}let l=s;if(!l){l={capabilities:{}}}let u=l.capabilities;if(!u){u={};l.capabilities=u}if(u.textDocumentSync===undefined||u.textDocumentSync===null){u.textDocumentSync=h.number(ue.__textDocumentSync)?ue.__textDocumentSync:f.TextDocumentSyncKind.None}else if(!h.number(u.textDocumentSync)&&!h.number(u.textDocumentSync.change)){u.textDocumentSync.change=h.number(ue.__textDocumentSync)?ue.__textDocumentSync:f.TextDocumentSyncKind.None}for(let s of re){s.fillServerCapabilities(u)}return l}))}else{let s={capabilities:{textDocumentSync:f.TextDocumentSyncKind.None}};for(let l of re){l.fillServerCapabilities(s.capabilities)}return s}}));k.onRequest(f.ShutdownRequest.type,(()=>{l.shutdownReceived=true;if(ie){return ie((new f.CancellationTokenSource).token)}else{return undefined}}));k.onNotification(f.ExitNotification.type,(()=>{try{if(le){le()}}finally{if(l.shutdownReceived){l.exit(0)}else{l.exit(1)}}}));k.onNotification(f.SetTraceNotification.type,(s=>{O.trace=f.Trace.fromString(s.value)}));return ue}l.createConnection=createConnection},62613:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.ShowDocumentFeature=void 0;const f=u(3302);const ShowDocumentFeature=s=>class extends s{showDocument(s){return this.connection.sendRequest(f.ShowDocumentRequest.type,s)}};l.ShowDocumentFeature=ShowDocumentFeature},7018:(s,l)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.thenable=l.typedArray=l.stringArray=l.array=l.func=l.error=l.number=l.string=l.boolean=void 0;function boolean(s){return s===true||s===false}l.boolean=boolean;function string(s){return typeof s==="string"||s instanceof String}l.string=string;function number(s){return typeof s==="number"||s instanceof Number}l.number=number;function error(s){return s instanceof Error}l.error=error;function func(s){return typeof s==="function"}l.func=func;function array(s){return Array.isArray(s)}l.array=array;function stringArray(s){return array(s)&&s.every((s=>string(s)))}l.stringArray=stringArray;function typedArray(s,l){return Array.isArray(s)&&s.every(l)}l.typedArray=typedArray;function thenable(s){return s&&func(s.then)}l.thenable=thenable},1702:(s,l)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.generateUuid=l.parse=l.isUUID=l.v4=l.empty=void 0;class ValueUUID{constructor(s){this._value=s}asHex(){return this._value}equals(s){return this.asHex()===s.asHex()}}class V4UUID extends ValueUUID{constructor(){super([V4UUID._randomHex(),V4UUID._randomHex(),V4UUID._randomHex(),V4UUID._randomHex(),V4UUID._randomHex(),V4UUID._randomHex(),V4UUID._randomHex(),V4UUID._randomHex(),"-",V4UUID._randomHex(),V4UUID._randomHex(),V4UUID._randomHex(),V4UUID._randomHex(),"-","4",V4UUID._randomHex(),V4UUID._randomHex(),V4UUID._randomHex(),"-",V4UUID._oneOf(V4UUID._timeHighBits),V4UUID._randomHex(),V4UUID._randomHex(),V4UUID._randomHex(),"-",V4UUID._randomHex(),V4UUID._randomHex(),V4UUID._randomHex(),V4UUID._randomHex(),V4UUID._randomHex(),V4UUID._randomHex(),V4UUID._randomHex(),V4UUID._randomHex(),V4UUID._randomHex(),V4UUID._randomHex(),V4UUID._randomHex(),V4UUID._randomHex()].join(""))}static _oneOf(s){return s[Math.floor(s.length*Math.random())]}static _randomHex(){return V4UUID._oneOf(V4UUID._chars)}}V4UUID._chars=["0","1","2","3","4","5","6","6","7","8","9","a","b","c","d","e","f"];V4UUID._timeHighBits=["8","9","a","b"];l.empty=new ValueUUID("00000000-0000-0000-0000-000000000000");function v4(){return new V4UUID}l.v4=v4;const u=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function isUUID(s){return u.test(s)}l.isUUID=isUUID;function parse(s){if(!isUUID(s)){throw new Error("invalid uuid")}return new ValueUUID(s)}l.parse=parse;function generateUuid(){return v4().asHex()}l.generateUuid=generateUuid},62510:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.WorkspaceFoldersFeature=void 0;const f=u(3302);const WorkspaceFoldersFeature=s=>class extends s{initialize(s){let l=s.workspace;if(l&&l.workspaceFolders){this._onDidChangeWorkspaceFolders=new f.Emitter;this.connection.onNotification(f.DidChangeWorkspaceFoldersNotification.type,(s=>{this._onDidChangeWorkspaceFolders.fire(s.event)}))}}getWorkspaceFolders(){return this.connection.sendRequest(f.WorkspaceFoldersRequest.type)}get onDidChangeWorkspaceFolders(){if(!this._onDidChangeWorkspaceFolders){throw new Error("Client doesn't support sending workspace folder change events.")}if(!this._unregistration){this._unregistration=this.connection.client.register(f.DidChangeWorkspaceFoldersNotification.type)}return this._onDidChangeWorkspaceFolders.event}};l.WorkspaceFoldersFeature=WorkspaceFoldersFeature},69800:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.resolveModulePath=l.FileSystem=l.resolveGlobalYarnPath=l.resolveGlobalNodePath=l.resolve=l.uriToFilePath=void 0;const f=u(78835);const h=u(85622);const g=u(35747);const v=u(63129);function uriToFilePath(s){let l=f.parse(s);if(l.protocol!=="file:"||!l.path){return undefined}let u=l.path.split("/");for(var g=0,v=u.length;g<v;g++){u[g]=decodeURIComponent(u[g])}if(process.platform==="win32"&&u.length>1){let s=u[0];let l=u[1];if(s.length===0&&l.length>1&&l[1]===":"){u.shift()}}return h.normalize(u.join("/"))}l.uriToFilePath=uriToFilePath;function isWindows(){return process.platform==="win32"}function resolve(s,l,u,f){const k="NODE_PATH";const O=["var p = process;","p.on('message',function(m){","if(m.c==='e'){","p.exit(0);","}","else if(m.c==='rs'){","try{","var r=require.resolve(m.a);","p.send({c:'r',s:true,r:r});","}","catch(err){","p.send({c:'r',s:false});","}","}","});"].join("");return new Promise(((M,q)=>{let B=process.env;let Y=Object.create(null);Object.keys(B).forEach((s=>Y[s]=B[s]));if(l&&g.existsSync(l)){if(Y[k]){Y[k]=l+h.delimiter+Y[k]}else{Y[k]=l}if(f){f(`NODE_PATH value is: ${Y[k]}`)}}Y["ELECTRON_RUN_AS_NODE"]="1";try{let l=v.fork("",[],{cwd:u,env:Y,execArgv:["-e",O]});if(l.pid===void 0){q(new Error(`Starting process to resolve node module ${s} failed`));return}l.on("error",(s=>{q(s)}));l.on("message",(u=>{if(u.c==="r"){l.send({c:"e"});if(u.s){M(u.r)}else{q(new Error(`Failed to resolve module: ${s}`))}}}));let f={c:"rs",a:s};l.send(f)}catch(s){q(s)}}))}l.resolve=resolve;function resolveGlobalNodePath(s){let l="npm";const u=Object.create(null);Object.keys(process.env).forEach((s=>u[s]=process.env[s]));u["NO_UPDATE_NOTIFIER"]="true";const f={encoding:"utf8",env:u};if(isWindows()){l="npm.cmd";f.shell=true}let handler=()=>{};try{process.on("SIGPIPE",handler);let u=v.spawnSync(l,["config","get","prefix"],f).stdout;if(!u){if(s){s(`'npm config get prefix' didn't return a value.`)}return undefined}let g=u.trim();if(s){s(`'npm config get prefix' value is: ${g}`)}if(g.length>0){if(isWindows()){return h.join(g,"node_modules")}else{return h.join(g,"lib","node_modules")}}return undefined}catch(s){return undefined}finally{process.removeListener("SIGPIPE",handler)}}l.resolveGlobalNodePath=resolveGlobalNodePath;function resolveGlobalYarnPath(s){let l="yarn";let u={encoding:"utf8"};if(isWindows()){l="yarn.cmd";u.shell=true}let handler=()=>{};try{process.on("SIGPIPE",handler);let f=v.spawnSync(l,["global","dir","--json"],u);let g=f.stdout;if(!g){if(s){s(`'yarn global dir' didn't return a value.`);if(f.stderr){s(f.stderr)}}return undefined}let k=g.trim().split(/\r?\n/);for(let s of k){try{let l=JSON.parse(s);if(l.type==="log"){return h.join(l.data,"node_modules")}}catch(s){}}return undefined}catch(s){return undefined}finally{process.removeListener("SIGPIPE",handler)}}l.resolveGlobalYarnPath=resolveGlobalYarnPath;var k;(function(s){let l=undefined;function isCaseSensitive(){if(l!==void 0){return l}if(process.platform==="win32"){l=false}else{l=!g.existsSync(__filename.toUpperCase())||!g.existsSync(__filename.toLowerCase())}return l}s.isCaseSensitive=isCaseSensitive;function isParent(s,l){if(isCaseSensitive()){return h.normalize(l).indexOf(h.normalize(s))===0}else{return h.normalize(l).toLowerCase().indexOf(h.normalize(s).toLowerCase())===0}}s.isParent=isParent})(k=l.FileSystem||(l.FileSystem={}));function resolveModulePath(s,l,u,f){if(u){if(!h.isAbsolute(u)){u=h.join(s,u)}return resolve(l,u,u,f).then((s=>{if(k.isParent(u,s)){return s}else{return Promise.reject(new Error(`Failed to load ${l} from node path location.`))}})).then(undefined,(u=>resolve(l,resolveGlobalNodePath(f),s,f)))}else{return resolve(l,resolveGlobalNodePath(f),s,f)}}l.resolveModulePath=resolveModulePath},22333:function(s,l,u){"use strict";var f=this&&this.__createBinding||(Object.create?function(s,l,u,f){if(f===undefined)f=u;Object.defineProperty(s,f,{enumerable:true,get:function(){return l[u]}})}:function(s,l,u,f){if(f===undefined)f=u;s[f]=l[u]});var h=this&&this.__exportStar||function(s,l){for(var u in s)if(u!=="default"&&!Object.prototype.hasOwnProperty.call(l,u))f(l,s,u)};Object.defineProperty(l,"__esModule",{value:true});l.createConnection=l.Files=void 0;const g=u(7018);const v=u(13472);const k=u(69800);const O=u(77798);h(u(77798),l);h(u(29755),l);var M;(function(s){s.uriToFilePath=k.uriToFilePath;s.resolveGlobalNodePath=k.resolveGlobalNodePath;s.resolveGlobalYarnPath=k.resolveGlobalYarnPath;s.resolve=k.resolve;s.resolveModulePath=k.resolveModulePath})(M=l.Files||(l.Files={}));let q;function endProtocolConnection(){if(q===undefined){return}try{q.end()}catch(s){}}let B=false;let Y=undefined;function setupExitTimer(){const s="--clientProcessId";function runTimer(s){try{let l=parseInt(s);if(!isNaN(l)){Y=setInterval((()=>{try{process.kill(l,0)}catch(s){endProtocolConnection();process.exit(B?0:1)}}),3e3)}}catch(s){}}for(let l=2;l<process.argv.length;l++){let u=process.argv[l];if(u===s&&l+1<process.argv.length){runTimer(process.argv[l+1]);return}else{let l=u.split("=");if(l[0]===s){runTimer(l[1])}}}}setupExitTimer();const te={initialize:s=>{const l=s.processId;if(g.number(l)&&Y===undefined){setInterval((()=>{try{process.kill(l,0)}catch(s){process.exit(B?0:1)}}),3e3)}},get shutdownReceived(){return B},set shutdownReceived(s){B=s},exit:s=>{endProtocolConnection();process.exit(s)}};function createConnection(s,l,u,f){let h;let g;let v;let k;if(s!==void 0&&s.__brand==="features"){h=s;s=l;l=u;u=f}if(O.ConnectionStrategy.is(s)||O.ConnectionOptions.is(s)){k=s}else{g=s;v=l;k=u}return _createConnection(g,v,k,h)}l.createConnection=createConnection;function _createConnection(s,l,u,f){if(!s&&!l&&process.argv.length>2){let u=void 0;let f=void 0;let g=process.argv.slice(2);for(let v=0;v<g.length;v++){let k=g[v];if(k==="--node-ipc"){s=new O.IPCMessageReader(process);l=new O.IPCMessageWriter(process);break}else if(k==="--stdio"){s=process.stdin;l=process.stdout;break}else if(k==="--socket"){u=parseInt(g[v+1]);break}else if(k==="--pipe"){f=g[v+1];break}else{var h=k.split("=");if(h[0]==="--socket"){u=parseInt(h[1]);break}else if(h[0]==="--pipe"){f=h[1];break}}}if(u){let f=O.createServerSocketTransport(u);s=f[0];l=f[1]}else if(f){let u=O.createServerPipeTransport(f);s=u[0];l=u[1]}}var k="Use arguments of createConnection or set command line parameters: '--node-ipc', '--stdio' or '--socket={number}'";if(!s){throw new Error("Connection input stream is not set. "+k)}if(!l){throw new Error("Connection output stream is not set. "+k)}if(g.func(s.read)&&g.func(s.on)){let l=s;l.on("end",(()=>{endProtocolConnection();process.exit(B?0:1)}));l.on("close",(()=>{endProtocolConnection();process.exit(B?0:1)}))}const connectionFactory=f=>{const h=O.createProtocolConnection(s,l,f,u);return h};return v.createConnection(connectionFactory,te,f)}},47160:(s,l,u)=>{"use strict";s.exports=u(22333)},34820:function(s){!function(l,u){if(true)s.exports=u();else{var f,h}}(this,(function(){return(()=>{"use strict";var s={470:s=>{function e(s){if("string"!=typeof s)throw new TypeError("Path must be a string. Received "+JSON.stringify(s))}function r(s,l){for(var u,f="",h=0,g=-1,v=0,k=0;k<=s.length;++k){if(k<s.length)u=s.charCodeAt(k);else{if(47===u)break;u=47}if(47===u){if(g===k-1||1===v);else if(g!==k-1&&2===v){if(f.length<2||2!==h||46!==f.charCodeAt(f.length-1)||46!==f.charCodeAt(f.length-2))if(f.length>2){var O=f.lastIndexOf("/");if(O!==f.length-1){-1===O?(f="",h=0):h=(f=f.slice(0,O)).length-1-f.lastIndexOf("/"),g=k,v=0;continue}}else if(2===f.length||1===f.length){f="",h=0,g=k,v=0;continue}l&&(f.length>0?f+="/..":f="..",h=2)}else f.length>0?f+="/"+s.slice(g+1,k):f=s.slice(g+1,k),h=k-g-1;g=k,v=0}else 46===u&&-1!==v?++v:v=-1}return f}var l={resolve:function(){for(var s,l="",u=!1,f=arguments.length-1;f>=-1&&!u;f--){var h;f>=0?h=arguments[f]:(void 0===s&&(s=process.cwd()),h=s),e(h),0!==h.length&&(l=h+"/"+l,u=47===h.charCodeAt(0))}return l=r(l,!u),u?l.length>0?"/"+l:"/":l.length>0?l:"."},normalize:function(s){if(e(s),0===s.length)return".";var l=47===s.charCodeAt(0),u=47===s.charCodeAt(s.length-1);return 0!==(s=r(s,!l)).length||l||(s="."),s.length>0&&u&&(s+="/"),l?"/"+s:s},isAbsolute:function(s){return e(s),s.length>0&&47===s.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var s,u=0;u<arguments.length;++u){var f=arguments[u];e(f),f.length>0&&(void 0===s?s=f:s+="/"+f)}return void 0===s?".":l.normalize(s)},relative:function(s,u){if(e(s),e(u),s===u)return"";if((s=l.resolve(s))===(u=l.resolve(u)))return"";for(var f=1;f<s.length&&47===s.charCodeAt(f);++f);for(var h=s.length,g=h-f,v=1;v<u.length&&47===u.charCodeAt(v);++v);for(var k=u.length-v,O=g<k?g:k,M=-1,q=0;q<=O;++q){if(q===O){if(k>O){if(47===u.charCodeAt(v+q))return u.slice(v+q+1);if(0===q)return u.slice(v+q)}else g>O&&(47===s.charCodeAt(f+q)?M=q:0===q&&(M=0));break}var B=s.charCodeAt(f+q);if(B!==u.charCodeAt(v+q))break;47===B&&(M=q)}var Y="";for(q=f+M+1;q<=h;++q)q!==h&&47!==s.charCodeAt(q)||(0===Y.length?Y+="..":Y+="/..");return Y.length>0?Y+u.slice(v+M):(v+=M,47===u.charCodeAt(v)&&++v,u.slice(v))},_makeLong:function(s){return s},dirname:function(s){if(e(s),0===s.length)return".";for(var l=s.charCodeAt(0),u=47===l,f=-1,h=!0,g=s.length-1;g>=1;--g)if(47===(l=s.charCodeAt(g))){if(!h){f=g;break}}else h=!1;return-1===f?u?"/":".":u&&1===f?"//":s.slice(0,f)},basename:function(s,l){if(void 0!==l&&"string"!=typeof l)throw new TypeError('"ext" argument must be a string');e(s);var u,f=0,h=-1,g=!0;if(void 0!==l&&l.length>0&&l.length<=s.length){if(l.length===s.length&&l===s)return"";var v=l.length-1,k=-1;for(u=s.length-1;u>=0;--u){var O=s.charCodeAt(u);if(47===O){if(!g){f=u+1;break}}else-1===k&&(g=!1,k=u+1),v>=0&&(O===l.charCodeAt(v)?-1==--v&&(h=u):(v=-1,h=k))}return f===h?h=k:-1===h&&(h=s.length),s.slice(f,h)}for(u=s.length-1;u>=0;--u)if(47===s.charCodeAt(u)){if(!g){f=u+1;break}}else-1===h&&(g=!1,h=u+1);return-1===h?"":s.slice(f,h)},extname:function(s){e(s);for(var l=-1,u=0,f=-1,h=!0,g=0,v=s.length-1;v>=0;--v){var k=s.charCodeAt(v);if(47!==k)-1===f&&(h=!1,f=v+1),46===k?-1===l?l=v:1!==g&&(g=1):-1!==l&&(g=-1);else if(!h){u=v+1;break}}return-1===l||-1===f||0===g||1===g&&l===f-1&&l===u+1?"":s.slice(l,f)},format:function(s){if(null===s||"object"!=typeof s)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof s);return function(s,l){var u=l.dir||l.root,f=l.base||(l.name||"")+(l.ext||"");return u?u===l.root?u+f:u+"/"+f:f}(0,s)},parse:function(s){e(s);var l={root:"",dir:"",base:"",ext:"",name:""};if(0===s.length)return l;var u,f=s.charCodeAt(0),h=47===f;h?(l.root="/",u=1):u=0;for(var g=-1,v=0,k=-1,O=!0,M=s.length-1,q=0;M>=u;--M)if(47!==(f=s.charCodeAt(M)))-1===k&&(O=!1,k=M+1),46===f?-1===g?g=M:1!==q&&(q=1):-1!==g&&(q=-1);else if(!O){v=M+1;break}return-1===g||-1===k||0===q||1===q&&g===k-1&&g===v+1?-1!==k&&(l.base=l.name=0===v&&h?s.slice(1,k):s.slice(v,k)):(0===v&&h?(l.name=s.slice(1,g),l.base=s.slice(1,k)):(l.name=s.slice(v,g),l.base=s.slice(v,k)),l.ext=s.slice(g,k)),v>0?l.dir=s.slice(0,v-1):h&&(l.dir="/"),l},sep:"/",delimiter:":",win32:null,posix:null};l.posix=l,s.exports=l},465:(s,l,u)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.Utils=l.URI=void 0;var f=u(796);Object.defineProperty(l,"URI",{enumerable:!0,get:function(){return f.URI}});var h=u(679);Object.defineProperty(l,"Utils",{enumerable:!0,get:function(){return h.Utils}})},674:(s,l)=>{if(Object.defineProperty(l,"__esModule",{value:!0}),l.isWindows=void 0,"object"==typeof process)l.isWindows="win32"===process.platform;else if("object"==typeof navigator){var u=navigator.userAgent;l.isWindows=u.indexOf("Windows")>=0}},796:function(s,l,u){var f,h,g=this&&this.__extends||(f=function(s,l){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,l){s.__proto__=l}||function(s,l){for(var u in l)Object.prototype.hasOwnProperty.call(l,u)&&(s[u]=l[u])})(s,l)},function(s,l){function r(){this.constructor=s}f(s,l),s.prototype=null===l?Object.create(l):(r.prototype=l.prototype,new r)});Object.defineProperty(l,"__esModule",{value:!0}),l.uriToFsPath=l.URI=void 0;var v=u(674),k=/^\w[\w\d+.-]*$/,O=/^\//,M=/^\/\//,q="",B="/",Y=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,te=function(){function t(s,l,u,f,h,g){void 0===g&&(g=!1),"object"==typeof s?(this.scheme=s.scheme||q,this.authority=s.authority||q,this.path=s.path||q,this.query=s.query||q,this.fragment=s.fragment||q):(this.scheme=function(s,l){return s||l?s:"file"}(s,g),this.authority=l||q,this.path=function(s,l){switch(s){case"https":case"http":case"file":l?l[0]!==B&&(l=B+l):l=B}return l}(this.scheme,u||q),this.query=f||q,this.fragment=h||q,function(s,l){if(!s.scheme&&l)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+s.authority+'", path: "'+s.path+'", query: "'+s.query+'", fragment: "'+s.fragment+'"}');if(s.scheme&&!k.test(s.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(s.path)if(s.authority){if(!O.test(s.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(M.test(s.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}(this,g))}return t.isUri=function(s){return s instanceof t||!!s&&"string"==typeof s.authority&&"string"==typeof s.fragment&&"string"==typeof s.path&&"string"==typeof s.query&&"string"==typeof s.scheme&&"function"==typeof s.fsPath&&"function"==typeof s.with&&"function"==typeof s.toString},Object.defineProperty(t.prototype,"fsPath",{get:function(){return b(this,!1)},enumerable:!1,configurable:!0}),t.prototype.with=function(s){if(!s)return this;var l=s.scheme,u=s.authority,f=s.path,h=s.query,g=s.fragment;return void 0===l?l=this.scheme:null===l&&(l=q),void 0===u?u=this.authority:null===u&&(u=q),void 0===f?f=this.path:null===f&&(f=q),void 0===h?h=this.query:null===h&&(h=q),void 0===g?g=this.fragment:null===g&&(g=q),l===this.scheme&&u===this.authority&&f===this.path&&h===this.query&&g===this.fragment?this:new ne(l,u,f,h,g)},t.parse=function(s,l){void 0===l&&(l=!1);var u=Y.exec(s);return u?new ne(u[2]||q,_(u[4]||q),_(u[5]||q),_(u[7]||q),_(u[9]||q),l):new ne(q,q,q,q,q)},t.file=function(s){var l=q;if(v.isWindows&&(s=s.replace(/\\/g,B)),s[0]===B&&s[1]===B){var u=s.indexOf(B,2);-1===u?(l=s.substring(2),s=B):(l=s.substring(2,u),s=s.substring(u)||B)}return new ne("file",l,s,q,q)},t.from=function(s){return new ne(s.scheme,s.authority,s.path,s.query,s.fragment)},t.prototype.toString=function(s){return void 0===s&&(s=!1),C(this,s)},t.prototype.toJSON=function(){return this},t.revive=function(s){if(s){if(s instanceof t)return s;var l=new ne(s);return l._formatted=s.external,l._fsPath=s._sep===re?s.fsPath:null,l}return s},t}();l.URI=te;var re=v.isWindows?1:void 0,ne=function(s){function e(){var l=null!==s&&s.apply(this,arguments)||this;return l._formatted=null,l._fsPath=null,l}return g(e,s),Object.defineProperty(e.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=b(this,!1)),this._fsPath},enumerable:!1,configurable:!0}),e.prototype.toString=function(s){return void 0===s&&(s=!1),s?C(this,!0):(this._formatted||(this._formatted=C(this,!1)),this._formatted)},e.prototype.toJSON=function(){var s={$mid:1};return this._fsPath&&(s.fsPath=this._fsPath,s._sep=re),this._formatted&&(s.external=this._formatted),this.path&&(s.path=this.path),this.scheme&&(s.scheme=this.scheme),this.authority&&(s.authority=this.authority),this.query&&(s.query=this.query),this.fragment&&(s.fragment=this.fragment),s},e}(te),ie=((h={})[58]="%3A",h[47]="%2F",h[63]="%3F",h[35]="%23",h[91]="%5B",h[93]="%5D",h[64]="%40",h[33]="%21",h[36]="%24",h[38]="%26",h[39]="%27",h[40]="%28",h[41]="%29",h[42]="%2A",h[43]="%2B",h[44]="%2C",h[59]="%3B",h[61]="%3D",h[32]="%20",h);function m(s,l){for(var u=void 0,f=-1,h=0;h<s.length;h++){var g=s.charCodeAt(h);if(g>=97&&g<=122||g>=65&&g<=90||g>=48&&g<=57||45===g||46===g||95===g||126===g||l&&47===g)-1!==f&&(u+=encodeURIComponent(s.substring(f,h)),f=-1),void 0!==u&&(u+=s.charAt(h));else{void 0===u&&(u=s.substr(0,h));var v=ie[g];void 0!==v?(-1!==f&&(u+=encodeURIComponent(s.substring(f,h)),f=-1),u+=v):-1===f&&(f=h)}}return-1!==f&&(u+=encodeURIComponent(s.substring(f))),void 0!==u?u:s}function y(s){for(var l=void 0,u=0;u<s.length;u++){var f=s.charCodeAt(u);35===f||63===f?(void 0===l&&(l=s.substr(0,u)),l+=ie[f]):void 0!==l&&(l+=s[u])}return void 0!==l?l:s}function b(s,l){var u;return u=s.authority&&s.path.length>1&&"file"===s.scheme?"//"+s.authority+s.path:47===s.path.charCodeAt(0)&&(s.path.charCodeAt(1)>=65&&s.path.charCodeAt(1)<=90||s.path.charCodeAt(1)>=97&&s.path.charCodeAt(1)<=122)&&58===s.path.charCodeAt(2)?l?s.path.substr(1):s.path[1].toLowerCase()+s.path.substr(2):s.path,v.isWindows&&(u=u.replace(/\//g,"\\")),u}function C(s,l){var u=l?y:m,f="",h=s.scheme,g=s.authority,v=s.path,k=s.query,O=s.fragment;if(h&&(f+=h,f+=":"),(g||"file"===h)&&(f+=B,f+=B),g){var M=g.indexOf("@");if(-1!==M){var q=g.substr(0,M);g=g.substr(M+1),-1===(M=q.indexOf(":"))?f+=u(q,!1):(f+=u(q.substr(0,M),!1),f+=":",f+=u(q.substr(M+1),!1)),f+="@"}-1===(M=(g=g.toLowerCase()).indexOf(":"))?f+=u(g,!1):(f+=u(g.substr(0,M),!1),f+=g.substr(M))}if(v){if(v.length>=3&&47===v.charCodeAt(0)&&58===v.charCodeAt(2))(Y=v.charCodeAt(1))>=65&&Y<=90&&(v="/"+String.fromCharCode(Y+32)+":"+v.substr(3));else if(v.length>=2&&58===v.charCodeAt(1)){var Y;(Y=v.charCodeAt(0))>=65&&Y<=90&&(v=String.fromCharCode(Y+32)+":"+v.substr(2))}f+=u(v,!0)}return k&&(f+="?",f+=u(k,!1)),O&&(f+="#",f+=l?O:m(O,!1)),f}function A(s){try{return decodeURIComponent(s)}catch(l){return s.length>3?s.substr(0,3)+A(s.substr(3)):s}}l.uriToFsPath=b;var se=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function _(s){return s.match(se)?s.replace(se,(function(s){return A(s)})):s}},679:function(s,l,u){var f=this&&this.__spreadArrays||function(){for(var s=0,l=0,u=arguments.length;l<u;l++)s+=arguments[l].length;var f=Array(s),h=0;for(l=0;l<u;l++)for(var g=arguments[l],v=0,k=g.length;v<k;v++,h++)f[h]=g[v];return f};Object.defineProperty(l,"__esModule",{value:!0}),l.Utils=void 0;var h,g=u(470),v=g.posix||g;(h=l.Utils||(l.Utils={})).joinPath=function(s){for(var l=[],u=1;u<arguments.length;u++)l[u-1]=arguments[u];return s.with({path:v.join.apply(v,f([s.path],l))})},h.resolvePath=function(s){for(var l=[],u=1;u<arguments.length;u++)l[u-1]=arguments[u];var h=s.path||"/";return s.with({path:v.resolve.apply(v,f([h],l))})},h.dirname=function(s){var l=v.dirname(s.path);return 1===l.length&&46===l.charCodeAt(0)?s:s.with({path:l})},h.basename=function(s){return v.basename(s.path)},h.extname=function(s){return v.extname(s.path)}}},l={};return function r(u){if(l[u])return l[u].exports;var f=l[u]={exports:{}};return s[u].call(f.exports,f,f.exports,r),f.exports}(465)})()}))},30378:s=>{s.exports=extend;var l=Object.prototype.hasOwnProperty;function extend(){var s={};for(var u=0;u<arguments.length;u++){var f=arguments[u];for(var h in f){if(l.call(f,h)){s[h]=f[h]}}}return s}},1631:s=>{class Node{constructor(s){this.value=s;this.next=undefined}}class Queue{constructor(){this.clear()}enqueue(s){const l=new Node(s);if(this._head){this._tail.next=l;this._tail=l}else{this._head=l;this._tail=l}this._size++}dequeue(){const s=this._head;if(!s){return}this._head=this._head.next;this._size--;return s.value}clear(){this._head=undefined;this._tail=undefined;this._size=0}get size(){return this._size}*[Symbol.iterator](){let s=this._head;while(s){yield s.value;s=s.next}}}s.exports=Queue},53968:(s,l,u)=>{var f;const h=u(12087);const g=u(85622);const v=u(35747);const k=process.config&&process.config.variables||{};const O=h.arch();const M=h.platform();const q=process.versions.modules;const B=isElectron()?"electron":"node";const Y=process.env.LIBC||(isAlpine(M)?"musl":"glibc");const te=process.env.ARM_VERSION||(O==="arm64"?"8":k.arm_version)||"";const re=(process.versions.uv||"").split(".")[0];const ne={"darwin-arm64":{"node.napi.glibc.node":()=>u(3319)},"darwin-x64":{"node.napi.glibc.node":()=>u(69181)},"linux-x64":{"node.napi.glibc.node":()=>u(33110),"node.napi.musl.node":()=>u(70456)},"win32-x64":{"node.napi.glibc.node":()=>u(27972)}};let getBinding=()=>{let s=resolve();getBinding=()=>s;return s};l.Fp=getBinding;f=(s,l,u)=>getBinding().writeSnapshot(g.resolve(s),g.resolve(l),normalizeOptions(s,u));f=(s,l,u)=>getBinding().getEventsSince(g.resolve(s),g.resolve(l),normalizeOptions(s,u));l.Ld=async(s,l,u)=>{s=g.resolve(s);u=normalizeOptions(s,u);await getBinding().subscribe(s,l,u);return{unsubscribe(){return getBinding().unsubscribe(s,l,u)}}};f=(s,l,u)=>getBinding().unsubscribe(g.resolve(s),l,normalizeOptions(s,u));function resolve(){var s=Object.keys(ne).map(parseTuple);var l=s.filter(matchTuple(M,O)).sort(compareTuples)[0];if(!l)return;var u=ne[l.name];var f=Object.keys(u);var h=f.map(parseTags);var g=h.filter(matchTags(B,q));var v=g.sort(compareTags(B))[0];if(v){try{return u[v.file]()}catch(s){}}}function parseTuple(s){var l=s.split("-");if(l.length!==2)return;var u=l[0];var f=l[1].split("+");if(!u)return;if(!f.length)return;if(!f.every(Boolean))return;return{name:s,platform:u,architectures:f}}function matchTuple(s,l){return function(u){if(u==null)return false;if(u.platform!==s)return false;return u.architectures.includes(l)}}function compareTuples(s,l){return s.architectures.length-l.architectures.length}function parseTags(s){var l=s.split(".");var u=l.pop();var f={file:s,specificity:0};if(u!=="node")return;for(var h=0;h<l.length;h++){var g=l[h];if(g==="node"||g==="electron"||g==="node-webkit"){f.runtime=g}else if(g==="napi"){f.napi=true}else if(g.slice(0,3)==="abi"){f.abi=g.slice(3)}else if(g.slice(0,2)==="uv"){f.uv=g.slice(2)}else if(g.slice(0,4)==="armv"){f.armv=g.slice(4)}else if(g==="glibc"||g==="musl"){f.libc=g}else{continue}f.specificity++}return f}function matchTags(s,l){return function(u){if(u==null)return false;if(u.runtime!==s&&!runtimeAgnostic(u))return false;if(u.abi!==l&&!u.napi)return false;if(u.uv&&u.uv!==re)return false;if(u.armv&&u.armv!==te)return false;if(u.libc&&u.libc!==Y)return false;return true}}function runtimeAgnostic(s){return s.runtime==="node"&&s.napi}function compareTags(s){return function(l,u){if(l.runtime!==u.runtime){return l.runtime===s?-1:1}else if(l.abi!==u.abi){return l.abi?-1:1}else if(l.specificity!==u.specificity){return l.specificity>u.specificity?-1:1}else{return 0}}}function normalizeOptions(s,l={}){if(Array.isArray(l.ignore)){l=Object.assign({},l,{ignore:l.ignore.map((l=>g.resolve(s,l)))})}return l}function isElectron(){if(process.versions&&process.versions.electron)return true;if(process.env.ELECTRON_RUN_AS_NODE)return true;return typeof window!=="undefined"&&window.process&&window.process.type==="renderer"}function isAlpine(s){return s==="linux"&&v.existsSync("/etc/alpine-release")}},2125:(s,l,u)=>{s.exports=require(u.ab+"fsevents.node")},75055:module=>{module.exports=eval("require")("pnpapi")},49067:s=>{let l="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let customAlphabet=(s,l)=>()=>{let u="";let f=l;while(f--){u+=s[Math.random()*s.length|0]}return u};let nanoid=(s=21)=>{let u="";let f=s;while(f--){u+=l[Math.random()*64|0]}return u};s.exports={nanoid:nanoid,customAlphabet:customAlphabet}},92265:s=>{"use strict";s.exports=JSON.parse('["3dm","3ds","3g2","3gp","7z","a","aac","adp","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgb","rip","rlc","rmf","rmvb","rpm","rtf","rz","s3m","s7z","scpt","sgi","shar","snap","sil","sketch","slk","smv","snk","so","stl","suo","sub","swf","tar","tbz","tbz2","tga","tgz","thmx","tif","tiff","tlz","ttc","ttf","txz","udf","uvh","uvi","uvm","uvp","uvs","uvu","viv","vob","war","wav","wax","wbmp","wdp","weba","webm","webp","whl","wim","wm","wma","wmv","wmx","woff","woff2","wrm","wvx","xbm","xif","xla","xlam","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xm","xmind","xpi","xpm","xwd","xz","z","zip","zipx"]')},74986:s=>{"use strict";s.exports=JSON.parse('{"assert":true,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16","async_hooks":">= 8","node:async_hooks":[">= 14.18 && < 15",">= 16"],"buffer_ieee754":"< 0.9.7","buffer":true,"node:buffer":[">= 14.18 && < 15",">= 16"],"child_process":true,"node:child_process":[">= 14.18 && < 15",">= 16"],"cluster":true,"node:cluster":[">= 14.18 && < 15",">= 16"],"console":true,"node:console":[">= 14.18 && < 15",">= 16"],"constants":true,"node:constants":[">= 14.18 && < 15",">= 16"],"crypto":true,"node:crypto":[">= 14.18 && < 15",">= 16"],"_debug_agent":">= 1 && < 8","_debugger":"< 8","dgram":true,"node:dgram":[">= 14.18 && < 15",">= 16"],"diagnostics_channel":[">= 14.17 && < 15",">= 15.1"],"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],"dns":true,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16","domain":">= 0.7.12","node:domain":[">= 14.18 && < 15",">= 16"],"events":true,"node:events":[">= 14.18 && < 15",">= 16"],"freelist":"< 6","fs":true,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],"_http_agent":">= 0.11.1","node:_http_agent":[">= 14.18 && < 15",">= 16"],"_http_client":">= 0.11.1","node:_http_client":[">= 14.18 && < 15",">= 16"],"_http_common":">= 0.11.1","node:_http_common":[">= 14.18 && < 15",">= 16"],"_http_incoming":">= 0.11.1","node:_http_incoming":[">= 14.18 && < 15",">= 16"],"_http_outgoing":">= 0.11.1","node:_http_outgoing":[">= 14.18 && < 15",">= 16"],"_http_server":">= 0.11.1","node:_http_server":[">= 14.18 && < 15",">= 16"],"http":true,"node:http":[">= 14.18 && < 15",">= 16"],"http2":">= 8.8","node:http2":[">= 14.18 && < 15",">= 16"],"https":true,"node:https":[">= 14.18 && < 15",">= 16"],"inspector":">= 8","node:inspector":[">= 14.18 && < 15",">= 16"],"_linklist":"< 8","module":true,"node:module":[">= 14.18 && < 15",">= 16"],"net":true,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12","os":true,"node:os":[">= 14.18 && < 15",">= 16"],"path":true,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16","perf_hooks":">= 8.5","node:perf_hooks":[">= 14.18 && < 15",">= 16"],"process":">= 1","node:process":[">= 14.18 && < 15",">= 16"],"punycode":true,"node:punycode":[">= 14.18 && < 15",">= 16"],"querystring":true,"node:querystring":[">= 14.18 && < 15",">= 16"],"readline":true,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17","repl":true,"node:repl":[">= 14.18 && < 15",">= 16"],"smalloc":">= 0.11.5 && < 3","_stream_duplex":">= 0.9.4","node:_stream_duplex":[">= 14.18 && < 15",">= 16"],"_stream_transform":">= 0.9.4","node:_stream_transform":[">= 14.18 && < 15",">= 16"],"_stream_wrap":">= 1.4.1","node:_stream_wrap":[">= 14.18 && < 15",">= 16"],"_stream_passthrough":">= 0.9.4","node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],"_stream_readable":">= 0.9.4","node:_stream_readable":[">= 14.18 && < 15",">= 16"],"_stream_writable":">= 0.9.4","node:_stream_writable":[">= 14.18 && < 15",">= 16"],"stream":true,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5","string_decoder":true,"node:string_decoder":[">= 14.18 && < 15",">= 16"],"sys":[">= 0.6 && < 0.7",">= 0.8"],"node:sys":[">= 14.18 && < 15",">= 16"],"timers":true,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16","_tls_common":">= 0.11.13","node:_tls_common":[">= 14.18 && < 15",">= 16"],"_tls_legacy":">= 0.11.3 && < 10","_tls_wrap":">= 0.11.3","node:_tls_wrap":[">= 14.18 && < 15",">= 16"],"tls":true,"node:tls":[">= 14.18 && < 15",">= 16"],"trace_events":">= 10","node:trace_events":[">= 14.18 && < 15",">= 16"],"tty":true,"node:tty":[">= 14.18 && < 15",">= 16"],"url":true,"node:url":[">= 14.18 && < 15",">= 16"],"util":true,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8":">= 1","node:v8":[">= 14.18 && < 15",">= 16"],"vm":true,"node:vm":[">= 14.18 && < 15",">= 16"],"wasi":">= 13.4 && < 13.5","worker_threads":">= 11.7","node:worker_threads":[">= 14.18 && < 15",">= 16"],"zlib":true,"node:zlib":[">= 14.18 && < 15",">= 16"]}')},54501:s=>{"use strict";s.exports={i8:"8.3.9"}},52538:s=>{"use strict";s.exports=JSON.parse('{"assert":true,"assert/strict":">= 15","async_hooks":">= 8","buffer_ieee754":"< 0.9.7","buffer":true,"child_process":true,"cluster":true,"console":true,"constants":true,"crypto":true,"_debug_agent":">= 1 && < 8","_debugger":"< 8","dgram":true,"diagnostics_channel":">= 15.1","dns":true,"dns/promises":">= 15","domain":">= 0.7.12","events":true,"freelist":"< 6","fs":true,"fs/promises":[">= 10 && < 10.1",">= 14"],"_http_agent":">= 0.11.1","_http_client":">= 0.11.1","_http_common":">= 0.11.1","_http_incoming":">= 0.11.1","_http_outgoing":">= 0.11.1","_http_server":">= 0.11.1","http":true,"http2":">= 8.8","https":true,"inspector":">= 8.0.0","_linklist":"< 8","module":true,"net":true,"node-inspect/lib/_inspect":">= 7.6.0 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6.0 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6.0 && < 12","os":true,"path":true,"path/posix":">= 15.3","path/win32":">= 15.3","perf_hooks":">= 8.5","process":">= 1","punycode":true,"querystring":true,"readline":true,"repl":true,"smalloc":">= 0.11.5 && < 3","_stream_duplex":">= 0.9.4","_stream_transform":">= 0.9.4","_stream_wrap":">= 1.4.1","_stream_passthrough":">= 0.9.4","_stream_readable":">= 0.9.4","_stream_writable":">= 0.9.4","stream":true,"stream/promises":">= 15","string_decoder":true,"sys":[">= 0.6 && < 0.7",">= 0.8"],"timers":true,"timers/promises":">= 15","_tls_common":">= 0.11.13","_tls_legacy":">= 0.11.3 && < 10","_tls_wrap":">= 0.11.3","tls":true,"trace_events":">= 10","tty":true,"url":true,"util":true,"util/types":">= 15.3","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/consarray":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/csvparser":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/logreader":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/profile_view":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/splaytree":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8":">= 1","vm":true,"wasi":">= 13.4 && < 13.5","worker_threads":">= 11.7","zlib":true}')},43581:s=>{"use strict";s.exports=JSON.parse('{"name":"tailwindcss","version":"3.0.11","description":"A utility-first CSS framework for rapidly building custom user interfaces.","license":"MIT","main":"lib/index.js","style":"dist/tailwind.css","repository":"https://github.com/tailwindlabs/tailwindcss.git","bugs":"https://github.com/tailwindlabs/tailwindcss/issues","homepage":"https://tailwindcss.com","bin":{"tailwind":"lib/cli.js","tailwindcss":"lib/cli.js"},"contributors":["Adam Wathan <adam.wathan@gmail.com>","Jonathan Reinink <jonathan@reinink.ca>","David Hemphill <davidlee.hemphill@gmail.com>"],"scripts":{"preswcify":"npm run generate:plugin-list && rimraf lib","swcify":"swc src --out-dir lib --copy-files","postswcify":"esbuild lib/cli-peer-dependencies.js --bundle --platform=node --outfile=peers/index.js","rebuild-fixtures":"npm run swcify && node -r @swc/register scripts/rebuildFixtures.js","prepublishOnly":"npm install --force && npm run swcify","style":"eslint .","pretest":"npm run generate:plugin-list","test":"jest","test:integrations":"npm run test --prefix ./integrations","install:integrations":"node scripts/install-integrations.js","posttest":"npm run style","generate:plugin-list":"node -r @swc/register scripts/create-plugin-list.js"},"files":["src/*","cli/*","lib/*","peers/*","scripts/*.js","stubs/*.stub.js","nesting/*","*.css","*.js"],"devDependencies":{"@swc/cli":"^0.1.55","@swc/core":"^1.2.118","@swc/jest":"^0.2.15","@swc/register":"^0.1.7","autoprefixer":"^10.4.0","cross-env":"^7.0.3","cssnano":"^5.0.14","esbuild":"^0.14.2","eslint":"^8.4.1","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^4.0.0","jest":"^27.4.5","jest-diff":"^27.4.2","postcss":"^8.4.5","postcss-cli":"^8.3.1","prettier":"^2.5.1","rimraf":"^3.0.0"},"peerDependencies":{"autoprefixer":"^10.0.2","postcss":"^8.0.9"},"dependencies":{"arg":"^5.0.1","chalk":"^4.1.2","chokidar":"^3.5.2","color-name":"^1.1.4","cosmiconfig":"^7.0.1","detective":"^5.2.0","didyoumean":"^1.2.2","dlv":"^1.1.3","fast-glob":"^3.2.7","glob-parent":"^6.0.2","is-glob":"^4.0.3","normalize-path":"^3.0.0","object-hash":"^2.2.0","postcss-js":"^4.0.0","postcss-load-config":"^3.1.0","postcss-nested":"5.0.6","postcss-selector-parser":"^6.0.7","postcss-value-parser":"^4.2.0","quick-lru":"^5.1.1","resolve":"^1.20.0"},"browserslist":["> 1%","not edge <= 18","not ie 11","not op_mini all"],"jest":{"testTimeout":30000,"setupFilesAfterEnv":["<rootDir>/jest/customMatchers.js"],"testPathIgnorePatterns":["/node_modules/","/integrations/","/standalone-cli/"],"transform":{"\\\\.js$":"@swc/jest"}},"engines":{"node":">=12.13.0"}}')},42357:s=>{"use strict";s.exports=require("assert")},63129:s=>{"use strict";s.exports=require("child_process")},27619:s=>{"use strict";s.exports=require("constants")},76417:s=>{"use strict";s.exports=require("crypto")},28614:s=>{"use strict";s.exports=require("events")},35747:s=>{"use strict";s.exports=require("fs")},32282:s=>{"use strict";s.exports=require("module")},11631:s=>{"use strict";s.exports=require("net")},12087:s=>{"use strict";s.exports=require("os")},85622:s=>{"use strict";s.exports=require("path")},61765:s=>{"use strict";s.exports=require("process")},92413:s=>{"use strict";s.exports=require("stream")},33867:s=>{"use strict";s.exports=require("tty")},78835:s=>{"use strict";s.exports=require("url")},31669:s=>{"use strict";s.exports=require("util")}};var __webpack_module_cache__={};function __nccwpck_require__(s){var l=__webpack_module_cache__[s];if(l!==undefined){return l.exports}var u=__webpack_module_cache__[s]={id:s,loaded:false,exports:{}};var f=true;try{__webpack_modules__[s].call(u.exports,u,u.exports,__nccwpck_require__);f=false}finally{if(f)delete __webpack_module_cache__[s]}u.loaded=true;return u.exports}(()=>{__nccwpck_require__.n=s=>{var l=s&&s.__esModule?()=>s["default"]:()=>s;__nccwpck_require__.d(l,{a:l});return l}})();(()=>{__nccwpck_require__.d=(s,l)=>{for(var u in l){if(__nccwpck_require__.o(l,u)&&!__nccwpck_require__.o(s,u)){Object.defineProperty(s,u,{enumerable:true,get:l[u]})}}}})();(()=>{__nccwpck_require__.o=(s,l)=>Object.prototype.hasOwnProperty.call(s,l)})();(()=>{__nccwpck_require__.r=s=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(s,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(s,"__esModule",{value:true})}})();(()=>{__nccwpck_require__.nmd=s=>{s.paths=[];if(!s.children)s.children=[];return s}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var __webpack_exports__={};(()=>{"use strict";__nccwpck_require__.r(__webpack_exports__);var s=__nccwpck_require__(32282);var l=__nccwpck_require__.n(s);var u=__nccwpck_require__(85622);var f=__nccwpck_require__.n(u);var h=__nccwpck_require__(35747);var g=__nccwpck_require__.n(h);var v=__nccwpck_require__(30662);function createResolver(s={}){return v.ResolverFactory.createResolver(Object.assign({fileSystem:new v.CachedInputFileSystem(h,4e3),useSyncFileSystemCalls:true,conditionNames:["node","require"]},s))}let k=createResolver();function setPnpApi(s){k=createResolver({pnpApi:s})}function resolveFrom(s,l){if(l.startsWith("\\\\"))return l;let u=k.resolveSync({},s,l);if(u===false)throw Error();return u.replace(/\0#/g,"#")}var O=__nccwpck_require__(43675);var M=__nccwpck_require__.n(O);process.env.TAILWIND_MODE="build";process.env.TAILWIND_DISABLE_TOUCH="true";let q=l()._resolveFilename;l()._resolveFilename=(s,l)=>{if(M().includes(s)){return q(s,l)}return resolveFrom(u.dirname(l.id),s)};var B=__nccwpck_require__(47160);var Y=__nccwpck_require__(97960);var te=__nccwpck_require__(34820);function error_toString(s,l=true){if(s instanceof Error){let u=s;return`${u.message}${l?`\n${u.stack}`:""}`}else if(typeof s==="string"){return s}else{return s.toString()}}function formatError(s,l,u=true){if(l){return`${s}: ${error_toString(l,u)}`}return s}function showError(s,l,u="Tailwind CSS"){console.error(formatError(u,l));if(!(l instanceof SilentError)){s.sendNotification("@/tailwindCSS/error",{message:formatError(u,l,false)})}}function SilentError(s){this.name="SilentError";this.message=s;this.stack=(new Error).stack}SilentError.prototype=new Error;var re=__nccwpck_require__(3909);var ne=__nccwpck_require__.n(re);var ie=__nccwpck_require__(34458);var se=__nccwpck_require__.n(ie);var oe=__nccwpck_require__(12087);var ae=__nccwpck_require__(14823);var le=__nccwpck_require__.n(ae);var ue=__nccwpck_require__(99566);var ce=__nccwpck_require__.n(ue);const fe={"@tailwindcss/aspect-ratio":{module:__nccwpck_require__(59779),version:__nccwpck_require__(7606).i8},"@tailwindcss/forms":{module:__nccwpck_require__(64179),version:__nccwpck_require__(93895).i8},"@tailwindcss/line-clamp":{module:__nccwpck_require__(31996),version:__nccwpck_require__(14756).i8},"@tailwindcss/typography":{module:__nccwpck_require__(9693),version:__nccwpck_require__(17833).i8}};let pe=Object.assign(Object.assign({},fe),{"tailwindcss/colors":__nccwpck_require__(78421),"tailwindcss/defaultConfig":__nccwpck_require__(82829),"tailwindcss/defaultTheme":__nccwpck_require__(71343),"tailwindcss/resolveConfig":__nccwpck_require__(86410),"tailwindcss/plugin":__nccwpck_require__(6168)});class Hook{constructor(s,u){this.cache={};this.deps=[];this._unhooked=false;this._origRequire=l().prototype.require;if(typeof l()._resolveFilename!=="function"){throw new Error(`Error: Expected Module._resolveFilename to be a function (was: ${typeof l()._resolveFilename}) - aborting!`)}let f=this;let h={};this._require=l().prototype.require=function(g){if(f._unhooked){return f._origRequire.apply(this,arguments)}let v;if(pe.hasOwnProperty(g)){try{v=l()._resolveFilename(g,this)}catch(s){return pe[g].module||pe[g]}}else{v=l()._resolveFilename(g,this)}if(f.cache.hasOwnProperty(v)){return f.cache[v]}let k=h[v];if(!k){h[v]=true}let O=f._origRequire.apply(this,arguments);if(v!==s){return O}if(k)return O;delete h[v];if(!f.cache.hasOwnProperty(v)){f.cache[v]=O;f.cache[v]=u(O)}return f.cache[v]}}unhook(){this._unhooked=true;if(this._require===l().prototype.require){l().prototype.require=this._origRequire}}}var de=__nccwpck_require__(77546);var he=__nccwpck_require__.n(de);var ge=__nccwpck_require__(7639);var ve=__nccwpck_require__.n(ge);var ye=__nccwpck_require__(17007);var we=__nccwpck_require__.n(ye);var _e=__nccwpck_require__(27135);var Se=__nccwpck_require__.n(_e);var ke=__nccwpck_require__(67921);var Ce=__nccwpck_require__(75266);var Ee=__nccwpck_require__.n(Ce);var Re=undefined&&undefined.__awaiter||function(s,l,u,f){function adopt(s){return s instanceof u?s:new u((function(l){l(s)}))}return new(u||(u=Promise))((function(u,h){function fulfilled(s){try{step(f.next(s))}catch(s){h(s)}}function rejected(s){try{step(f["throw"](s))}catch(s){h(s)}}function step(s){s.done?u(s.value):adopt(s.value).then(fulfilled,rejected)}step((f=f.apply(s,l||[])).next())}))};function isAtRule(s){return s.type==="atrule"}function createSelectorFromNodes(s){if(s.length===0)return null;const l=Ee().selector({value:""});for(let u=0;u<s.length;u++){l.append(s[u])}return String(l).trim()}function getClassNamesFromSelector(s){const l=[];const{nodes:u}=Ee()().astSync(s);for(let s=0;s<u.length;s++){let f=u[s];if(f.type!=="selector")continue;let h=[];for(let s=0;s<f.nodes.length;s++){let u=f.nodes[s];let g=[];if(u.type==="class"){let v=f.nodes[s+1];while(v&&v.type==="pseudo"){g.push(v);s++;v=f.nodes[s+1]}l.push({className:u.value.trim(),scope:createSelectorFromNodes(h),__rule:s===f.nodes.length-1,__pseudo:g.map(String)})}h.push(u,...g)}}return l}function extractClassNames_process(s){return Re(this,void 0,void 0,(function*(){const l={};const u={};let f;s.walk((s=>{if(s.type==="comment"){let l=s.text.trim().match(/^__tw_intellisense_layer_([a-z]+)__$/);if(l===null)return;f=l[1];s.remove();return}if(s.type!=="rule")return;const h=s;const g=getClassNamesFromSelector(h.selector);const v={};h.walkDecls((s=>{if(v[s.prop]){v[s.prop]=[...Array.isArray(v[s.prop])?v[s.prop]:[v[s.prop]],s.value]}else{v[s.prop]=s.value}}));let k=h;const O=[];while(k.parent.type!=="root"){k=k.parent;if(isAtRule(k)){O.push(`@${k.name} ${k.params}`)}}for(let s=0;s<g.length;s++){const h=O.concat([]);const k=g[s].className.split(/__TWSEP__.*?__TWSEP__/);const M=k.slice(0,k.length-1);const q=[];const B=ve()(l,[...k,"__info"]);if(typeof B!=="undefined"){if(Array.isArray(B)){q.push(B.length)}else{we()(l,[...k,"__info"],[B]);q.push(1)}}if(g[s].__rule){we()(l,[...k,"__info",...q,"__rule"],true);dsetEach(l,[...k,"__info",...q],v)}we()(l,[...k,"__info",...q,"__source"],f);we()(l,[...k,"__info",...q,"__pseudo"],g[s].__pseudo);we()(l,[...k,"__info",...q,"__scope"],g[s].scope);we()(l,[...k,"__info",...q,"__context"],h.concat([]).reverse());h.push(...g[s].__pseudo.map((s=>`&${s}`)));for(let s=0;s<M.length;s++){if(typeof u[M[s]]==="undefined"){u[M[s]]=h}else{u[M[s]]=intersection(u[M[s]],h)}}}}));return{classNames:l,context:u}}))}function intersection(s,l){return s.filter((s=>l.indexOf(s)!==-1))}function dsetEach(s,l,u){const f=Object.keys(u);for(let h=0;h<f.length;h++){we()(s,[...l,f[h]],u[f[h]])}}const Oe=extractClassNames_process;function set(s,l,u){if(typeof u.value==="object")u.value=klona(u.value);if(!u.enumerable||u.get||u.set||!u.configurable||!u.writable||l==="__proto__"){Object.defineProperty(s,l,u)}else s[l]=u.value}function klona(s){if(typeof s!=="object")return s;var l=0,u,f,h,g=Object.prototype.toString.call(s);if(g==="[object Object]"){h=Object.create(s.__proto__||null)}else if(g==="[object Array]"){h=Array(s.length)}else if(g==="[object Set]"){h=new Set;s.forEach((function(s){h.add(klona(s))}))}else if(g==="[object Map]"){h=new Map;s.forEach((function(s,l){h.set(klona(l),klona(s))}))}else if(g==="[object Date]"){h=new Date(+s)}else if(g==="[object RegExp]"){h=new RegExp(s.source,s.flags)}else if(g==="[object DataView]"){h=new s.constructor(klona(s.buffer))}else if(g==="[object ArrayBuffer]"){h=s.slice(0)}else if(g.slice(-6)==="Array]"){h=new s.constructor(s)}if(h){for(f=Object.getOwnPropertySymbols(s);l<f.length;l++){set(h,f[l],Object.getOwnPropertyDescriptor(s,f[l]))}for(l=0,f=Object.getOwnPropertyNames(s);l<f.length;l++){if(Object.hasOwnProperty.call(h,u=f[l])&&h[u]===s[u])continue;set(h,u,Object.getOwnPropertyDescriptor(s,u))}}return h||s}function isObject(s){return Object.prototype.toString.call(s)==="[object Object]"}function removeMeta(s){let l={};for(let u in s){if(u.substr(0,2)==="__")continue;if(isObject(s[u])){l[u]=removeMeta(s[u])}else{l[u]=s[u]}}return l}var De=__nccwpck_require__(73730);var Ie=__nccwpck_require__.n(De);function dedupe(s){return s.filter(((s,l,u)=>u.indexOf(s)===l))}function dedupeBy(s,l){return s.filter(((s,u,f)=>f.map(l).indexOf(l(s))===u))}function ensureArray(s){return Array.isArray(s)?s:[s]}function array_flatten(s){return[].concat.apply([],s)}function equal(s,l){if(s===l)return true;if(s.length!==l.length)return false;let u=s.concat().sort();let f=l.concat().sort();for(let s=0;s<u.length;++s){if(u[s]!==f[s])return false}return true}function equalExact(s,l){if(s===l)return true;if(s.length!==l.length)return false;for(let u=0;u<s.length;++u){if(s[u]!==l[u])return false}return true}function remToPx(s,l=16){if(/^-?[0-9.]+rem$/.test(s)){let u=parseFloat(s.substr(0,s.length-3));if(!isNaN(u)){return`${u*l}px`}}return undefined}var Me=__nccwpck_require__(3392);var Ne=__nccwpck_require__.n(Me);const Le=__nccwpck_require__(7639);function stringifyConfigValue(s){if(isObject(s))return`${Object.keys(s).length} values`;if(typeof s==="function")return"ƒ";return Ne()(s,{inlineCharacterLimit:Infinity,singleQuotes:false,transform:(s,l,u)=>{if(typeof s[l]==="function"){return"ƒ"}return u}})}function stringifyCss(s,l,{tabSize:u=2,showPixelEquivalents:f=false,rootFontSize:h=16}={}){if(l.__rule!==true&&!Array.isArray(l))return null;if(Array.isArray(l)){const g=l.map((l=>stringifyCss(s,l,{tabSize:u,showPixelEquivalents:f,rootFontSize:h}))).filter(Boolean);if(g.length===0)return null;return g.join("\n\n")}let g=``;const v=" ".repeat(u);const k=Le(l,"__context",[]);const O=Object.keys(removeMeta(l));if(O.length===0)return null;for(let s=0;s<k.length;s++){g+=`${v.repeat(s)}${k[s]} {\n`}const M=v.repeat(k.length);const q=O.reduce(((s,u,g)=>{const k=ensureArray(l[u]).map((s=>{const l=f?remToPx(s,h):undefined;return`${M+v}${u}: ${s}${l?`/* ${l} */`:""};`})).join("\n");return`${s}${g===0?"":"\n"}${k}`}),"");g+=`${M}${augmentClassName(s,l)} {\n${q}\n${M}}`;for(let s=k.length-1;s>=0;s--){g+=`${v.repeat(s)}\n}`}return g}function augmentClassName(s,l){const u=l.__pseudo.join("");const f=l.__scope?`${l.__scope} `:"";return`${f}.${Ie()(s)}${u}`}const je=["aspnetcorerazor","astro","astro-markdown","blade","django-html","edge","ejs","erb","gohtml","GoHTML","haml","handlebars","hbs","html","HTML (Eex)","HTML (EEx)","html-eex","jade","leaf","liquid","markdown","mdx","mustache","njk","nunjucks","phoenix-heex","php","razor","slim","twig"];const Fe=["css","less","postcss","sass","scss","stylus","sugarss"];const qe=["javascript","javascriptreact","reason","rescript","typescript","typescriptreact"];const $e=["vue","svelte"];const We=[...Fe,...je,...qe,...$e];function isHtmlDoc(s,l){const u=Object.keys(s.editor.userLanguages).filter((l=>je.includes(s.editor.userLanguages[l])));return[...je,...u].indexOf(l.languageId)!==-1}function isVueDoc(s){return s.languageId==="vue"}function isSvelteDoc(s){return s.languageId==="svelte"}function isHtmlContext(s,l,u){let f=l.getText({start:{line:0,character:0},end:u});if(isHtmlDoc(s,l)&&!isInsideTag(f,["script","style"])){return true}if(isVueDoc(l)){return isInsideTag(f,["template"])}if(isSvelteDoc(l)){return!isInsideTag(f,["script","style"])}return false}function isInsideTag(s,l){let u=0;let f=0;let h;let g=Array.isArray(l)?l:[l];let v=new RegExp(`<(?<slash>/?)(?:${g.join("|")})(?:\\s[^>]*[^/]>|\\s*>)`,"ig");while((h=v.exec(s))!==null){if(h.groups.slash){f+=1}else{u+=1}}return u>0&&u>f}function isJsDoc(s,l){const u=Object.keys(s.editor.userLanguages).filter((l=>qe.includes(s.editor.userLanguages[l])));return[...qe,...u].indexOf(l.languageId)!==-1}function isJsContext(s,l,u){if(isJsDoc(s,l)){return true}let f=l.getText({start:{line:0,character:0},end:u});if(isHtmlDoc(s,l)&&isInsideTag(f,["script"])){return true}if(isVueDoc(l)||isSvelteDoc(l)){return isInsideTag(f,["script"])}return false}function isCssDoc(s,l){const u=Object.keys(s.editor.userLanguages).filter((l=>Fe.includes(s.editor.userLanguages[l])));return[...Fe,...u].indexOf(l.languageId)!==-1}function isCssContext(s,l,u){if(isCssDoc(s,l)){return true}if(isHtmlDoc(s,l)||isVueDoc(l)||isSvelteDoc(l)||isJsDoc(s,l)){let s=l.getText({start:{line:0,character:0},end:u});return isInsideTag(s,["style"])}return false}var ze=__nccwpck_require__(80674);var Ve=__nccwpck_require__.n(ze);function isWithinRange(s,l){if(s.line===l.start.line&&s.character>=l.start.character){if(s.line===l.end.line&&s.character>l.end.character){return false}else{return true}}if(s.line===l.end.line&&s.character<=l.end.character){if(s.line===l.start.line&&s.character<l.end.character){return false}else{return true}}if(s.line>l.start.line&&s.line<l.end.line){return true}return false}var Ge=__nccwpck_require__(36441);var Ye=__nccwpck_require__.n(Ge);const lazy=s=>{let l=false;let u=null;const res=function(){if(l)return u;u=s.apply(this,arguments);l=true;return u};res.isLazy=true;return res};const classAttributeStates=()=>({doubleClassList:{lbrace:{match:new RegExp("(?<!\\\\)\\{"),push:"interpBrace"},rbrace:{match:new RegExp("(?<!\\\\)\\}"),pop:1},end:{match:new RegExp('(?<!\\\\)"'),pop:1},classlist:{match:new RegExp("[\\s\\S]"),lineBreaks:true}},singleClassList:{lbrace:{match:new RegExp("(?<!\\\\)\\{"),push:"interpBrace"},rbrace:{match:new RegExp("(?<!\\\\)\\}"),pop:1},end:{match:new RegExp("(?<!\\\\)'"),pop:1},classlist:{match:new RegExp("[\\s\\S]"),lineBreaks:true}},tickClassList:{lbrace:{match:new RegExp("(?<=(?<!\\\\)\\$)\\{"),push:"interpBrace"},rbrace:{match:new RegExp("(?<!\\\\)\\}"),pop:1},end:{match:new RegExp("(?<!\\\\)`"),pop:1},classlist:{match:new RegExp("[\\s\\S]"),lineBreaks:true}},interpBrace:{startSingle:{match:new RegExp("(?<!\\\\)'"),push:"singleClassList"},startDouble:{match:new RegExp('(?<!\\\\)"'),push:"doubleClassList"},startTick:{match:new RegExp("(?<!\\\\)`"),push:"tickClassList"},lbrace:{match:new RegExp("(?<!\\\\)\\{"),push:"interpBrace"},rbrace:{match:new RegExp("(?<!\\\\)\\}"),pop:1},text:{match:new RegExp("[\\s\\S]"),lineBreaks:true}},interpSingle:{startDouble:{match:new RegExp('(?<!\\\\)"'),push:"doubleClassList"},startTick:{match:new RegExp("(?<!\\\\)`"),push:"tickClassList"},single:{match:new RegExp("(?<!\\\\)'"),pop:1},text:{match:new RegExp("[\\s\\S]"),lineBreaks:true}},interpDouble:{startSingle:{match:new RegExp("(?<!\\\\)'"),push:"singleClassList"},startTick:{match:new RegExp("(?<!\\\\)`"),push:"tickClassList"},double:{match:new RegExp('(?<!\\\\)"'),pop:1},text:{match:new RegExp("[\\s\\S]"),lineBreaks:true}}});const Ke={main:{start:{match:'"',push:"doubleClassList"}},doubleClassList:{end:{match:'"',pop:1},classlist:{match:/[\s\S]/,lineBreaks:true}}};const Qe=lazy((()=>{let s=true;try{new RegExp("(?<!)")}catch(l){s=false}if(s){return Ye().states(Object.assign({main:{start1:{match:'"',push:"doubleClassList"},start2:{match:"'",push:"singleClassList"},start3:{match:"{",push:"interpBrace"}}},classAttributeStates()))}return Ye().states(Ke)}));const Je=lazy((()=>{let s=true;try{new RegExp("(?<!)")}catch(l){s=false}if(s){return Ye().states(Object.assign({main:{lbrace:{match:"{",push:"interpBrace"},single:{match:"'",push:"interpSingle"},double:{match:'"',push:"interpDouble"}}},classAttributeStates()))}return Ye().states(Ke)}));function getLanguageBoundaries(s,l){if(isVueDoc(l)){let s=l.getText();let u=findAll(/(?<open><(?<type>template|style|script)\b[^>]*>).*?(?<close><\/\k<type>>|$)/gis,s);let f=[];let h=[];for(let l=0;l<u.length;l++){let g={start:indexToPosition(s,u[l].index+u[l].groups.open.length),end:indexToPosition(s,u[l].index+u[l][0].length-u[l].groups.close.length)};if(u[l].groups.type==="style"){h.push(g)}else{f.push(g)}}return{html:f,css:h}}if(isHtmlDoc(s,l)||isJsDoc(s,l)||isSvelteDoc(l)){let s=l.getText();let u=findAll(/(?<open><style(?:\s[^>]*[^\/]>|\s*>)).*?(?<close><\/style>|$)/gis,s);let f=[];let h=[];let g=0;for(let l=0;l<u.length;l++){f.push({start:indexToPosition(s,g),end:indexToPosition(s,u[l].index)});h.push({start:indexToPosition(s,u[l].index+u[l].groups.open.length),end:indexToPosition(s,u[l].index+u[l][0].length-u[l].groups.close.length)});g=u[l].index+u[l][0].length}f.push({start:indexToPosition(s,g),end:indexToPosition(s,s.length)});return{html:f,css:h}}return null}function resolveRange(s,l){return{start:{line:((l===null||l===void 0?void 0:l.start.line)||0)+s.start.line,character:(s.end.line===0?(l===null||l===void 0?void 0:l.start.character)||0:0)+s.start.character},end:{line:((l===null||l===void 0?void 0:l.start.line)||0)+s.end.line,character:(s.end.line===0?(l===null||l===void 0?void 0:l.start.character)||0:0)+s.end.character}}}var Xe=__nccwpck_require__(24237);function createMultiRegexp(s){let l=false;let u=-1;for(let f=0;f<s.length;f++){if(!l&&s[f]==="["&&s[f-1]!=="\\"){l=true}else if(l&&s[f]==="]"&&s[f-1]!=="\\"){l=false}else if(!l&&s[f]==="("&&s.substr(f+1,2)!=="?:"){u=f;break}}const f=/(?:[^\\]|^)\(\?:/g;let h;let g=[];while((h=f.exec(s))!==null){if(h[0].startsWith("(")){g.push(h.index)}else{g.push(h.index+1)}}const v=new Xe.Z(new RegExp(s.replace(f,(s=>s.substr(0,s.length-2))),"g"));let k=1+g.filter((s=>s<u)).length;return{exec:s=>v.execForGroup(s,k)}}var et=undefined&&undefined.__awaiter||function(s,l,u,f){function adopt(s){return s instanceof u?s:new u((function(l){l(s)}))}return new(u||(u=Promise))((function(u,h){function fulfilled(s){try{step(f.next(s))}catch(s){h(s)}}function rejected(s){try{step(f["throw"](s))}catch(s){h(s)}}function step(s){s.done?u(s.value):adopt(s.value).then(fulfilled,rejected)}step((f=f.apply(s,l||[])).next())}))};const tt=__nccwpck_require__(7639);function findAll(s,l){let u;let f=[];while((u=s.exec(l))!==null){f.push(Object.assign({},u))}return f}function findLast(s,l){const u=findAll(s,l);if(u.length===0){return null}return u[u.length-1]}function getClassNamesInClassList({classList:s,range:l,important:u}){const f=s.split(/(\s+)/);const h=[];let g=0;for(let v=0;v<f.length;v++){if(v%2===0){const k=indexToPosition(s,g);const O=indexToPosition(s,g+f[v].length);h.push({className:f[v],classList:{classList:s,range:l,important:u},relativeRange:{start:k,end:O},range:{start:{line:l.start.line+k.line,character:(O.line===0?l.start.character:0)+k.character},end:{line:l.start.line+O.line,character:(O.line===0?l.start.character:0)+O.character}}})}g+=f[v].length}return h}function findClassNamesInRange(s,l,u,f,h=true){return et(this,void 0,void 0,(function*(){const g=yield findClassListsInRange(s,l,u,f,h);return array_flatten(g.map(getClassNamesInClassList))}))}function findClassNamesInDocument(s,l){return et(this,void 0,void 0,(function*(){const u=yield findClassListsInDocument(s,l);return flatten(u.map(getClassNamesInClassList))}))}function findClassListsInCssRange(s,l){const u=s.getText(l);const f=findAll(/(@apply\s+)(?<classList>[^;}]+?)(?<important>\s*!important)?\s*[;}]/g,u);const h=l?l.start:{line:0,character:0};return f.map((s=>{const l=indexToPosition(u,s.index+s[1].length);const f=indexToPosition(u,s.index+s[1].length+s.groups.classList.length);return{classList:s.groups.classList,important:Boolean(s.groups.important),range:{start:{line:h.line+l.line,character:(f.line===0?h.character:0)+l.character},end:{line:h.line+f.line,character:(f.line===0?h.character:0)+f.character}}}}))}function findCustomClassLists(s,l,u){return et(this,void 0,void 0,(function*(){const f=yield s.editor.getConfiguration(l.uri);const h=tt(f,"tailwindCSS.experimental.classRegex",[]);if(!Array.isArray(h)||h.length===0)return[];const g=l.getText(u);const v=[];for(let s=0;s<h.length;s++){try{let[f,k]=Array.isArray(h[s])?h[s]:[h[s]];f=createMultiRegexp(f);let O;while((O=f.exec(g))!==null){const s=l.offsetAt((u===null||u===void 0?void 0:u.start)||{line:0,character:0});const f=s+O.start;const h=s+O.end;if(k){k=createMultiRegexp(k);let s;while((s=k.exec(O.match))!==null){const u=f+s.start;const h=f+s.end;v.push({classList:s.match,range:{start:l.positionAt(u),end:l.positionAt(h)}})}}else{v.push({classList:O.match,range:{start:l.positionAt(f),end:l.positionAt(h)}})}}}catch(s){}}return v}))}function matchClassAttributes(s,l){const u=l.filter((s=>typeof s==="string")).flatMap((s=>[s,`\\[${s}\\]`]));const f=/(?:\s|:|\()(ATTRS)\s*=\s*['"`{]/;return findAll(new RegExp(f.source.replace("ATTRS",u.join("|")),"gi"),s)}function findClassListsInHtmlRange(s,l,u){return et(this,void 0,void 0,(function*(){const f=l.getText(u);const h=matchClassAttributes(f,(yield s.editor.getConfiguration(l.uri)).tailwindCSS.classAttributes);const g=[];h.forEach((s=>{const l=f.substr(s.index+s[0].length-1);let h=s[0][0]===":"||s[1].startsWith("[")&&s[1].endsWith("]")?Je():Qe();h.reset(l);let v=[];let k;let O;try{for(let s of h){if(s.type==="classlist"){if(O){O.value+=s.value}else{O={value:s.value,offset:s.offset}}}else{if(O){v.push({value:O.value,offset:O.offset})}O=undefined}}}catch(s){}if(O){v.push({value:O.value,offset:O.offset})}g.push(...v.map((({value:l,offset:h})=>{if(l.trim()===""){return null}const g=l.match(/^\s*/);const v=g===null?0:g[0].length;const k=l.match(/\s*$/);const O=k===null?0:-k[0].length;const M=indexToPosition(f,s.index+s[0].length-1+h+v);const q=indexToPosition(f,s.index+s[0].length-1+h+l.length+O);return{classList:l.substr(v,l.length+O),range:{start:{line:((u===null||u===void 0?void 0:u.start.line)||0)+M.line,character:(q.line===0?(u===null||u===void 0?void 0:u.start.character)||0:0)+M.character},end:{line:((u===null||u===void 0?void 0:u.start.line)||0)+q.line,character:(q.line===0?(u===null||u===void 0?void 0:u.start.character)||0:0)+q.character}}}})).filter((s=>s!==null)))}));return g}))}function findClassListsInRange(s,l,u,f,h=true){return et(this,void 0,void 0,(function*(){let g;if(f==="css"){g=findClassListsInCssRange(l,u)}else{g=yield findClassListsInHtmlRange(s,l,u)}return[...g,...h?yield findCustomClassLists(s,l,u):[]]}))}function findClassListsInDocument(s,l){return et(this,void 0,void 0,(function*(){if(isCssDoc(s,l)){return findClassListsInCssRange(l)}let u=getLanguageBoundaries(s,l);if(!u)return[];return array_flatten([...yield Promise.all(u.html.map((u=>findClassListsInHtmlRange(s,l,u)))),...u.css.map((s=>findClassListsInCssRange(l,s))),yield findCustomClassLists(s,l)])}))}function findHelperFunctionsInDocument(s,l){if(isCssDoc(s,l)){return findHelperFunctionsInRange(l)}let u=getLanguageBoundaries(s,l);if(!u)return[];return array_flatten(u.css.map((s=>findHelperFunctionsInRange(l,s))))}function findHelperFunctionsInRange(s,l){const u=s.getText(l);const f=findAll(/(?<before>^|\s)(?<helper>theme|config)\((?:(?<single>')([^']+)'|(?<double>")([^"]+)")\)/gm,u);return f.map((s=>{let f=s[4]||s[6];let h=s.index+s.groups.before.length;return{full:s[0].substr(s.groups.before.length),value:f,helper:s.groups.helper==="theme"?"theme":"config",quotes:s.groups.single?"'":'"',range:resolveRange({start:indexToPosition(u,h),end:indexToPosition(u,s.index+s[0].length)},l),valueRange:resolveRange({start:indexToPosition(u,h+s.groups.helper.length+1),end:indexToPosition(u,h+s.groups.helper.length+1+1+f.length+1)},l)}}))}function indexToPosition(s,l){const{line:u,col:f}=Ve()(s+"\n",l);return{line:u-1,character:f-1}}function findClassNameAtPosition(s,l,u){return et(this,void 0,void 0,(function*(){let f=[];const h=l.offsetAt(u);const g={start:l.positionAt(Math.max(0,h-1e3)),end:l.positionAt(h+1e3)};if(isCssContext(s,l,u)){f=yield findClassNamesInRange(s,l,g,"css")}else if(isHtmlContext(s,l,u)||isJsContext(s,l,u)){f=yield findClassNamesInRange(s,l,g,"html")}if(f.length===0){return null}const v=f.find((({range:s})=>isWithinRange(u,s)));if(!v)return null;return v}))}function combinations(s){let fn=function(s,l,u){if(!s&&!l)return undefined;if(!l){u.push(s)}else{fn(s+l[0],l.slice(1),u);fn(s,l.slice(1),u)}return u};return fn("",s,[])}const it=__nccwpck_require__(7639);function getClassNameParts(s,l){let u=s.separator;l=l.replace(/^\./,"");let f=l.split(u);if(f.length===1){return it(s.classNames.classNames,[l,"__info","__rule"])===true||Array.isArray(it(s.classNames.classNames,[l,"__info"]))?[l]:null}let h=combinations("123456789".substr(0,f.length-1)).map((s=>s.split("").map((s=>parseInt(s,10)))));let g=[[l],...h.map((s=>{let l=[];let u=0;s.forEach((s=>{l.push(f.slice(u,s).join("-"));u=s}));l.push(f.slice(u).join("-"));return l}))];return g.find((l=>{if(it(s.classNames.classNames,[...l,"__info","__rule"])===true||Array.isArray(it(s.classNames.classNames,[...l,"__info"]))){return true}return false}))}const st=__nccwpck_require__(7639);function getClassNameMeta(s,l){const u=Array.isArray(l)?l:getClassNameParts(s,l);if(!u)return null;const f=st(s.classNames.classNames,[...u,"__info"]);if(Array.isArray(f)){return f.map((s=>({source:s.__source,pseudo:s.__pseudo,scope:s.__scope,context:s.__context})))}return{source:f.__source,pseudo:f.__pseudo,scope:f.__scope,context:f.__context}}const ut=__nccwpck_require__(7639);function flagEnabled(s,l){if(s.featureFlags.future.includes(l)){return s.config.future==="all"||ut(s.config,["future",l],false)}if(s.featureFlags.experimental.includes(l)){return s.config.experimental==="all"||ut(s.config,["experimental",l],false)}return false}function validateApply(s,l){if(s.jit){return{isApplyable:true}}const u=getClassNameMeta(s,l);if(!u)return null;if(he().gte(s.version,"2.0.0-alpha.1")||flagEnabled(s,"applyComplexClasses")){return{isApplyable:true}}const f=Array.isArray(l)?l.join(s.separator):l;let h;if(Array.isArray(u)){h=`'@apply' cannot be used with '${f}' because it is included in multiple rulesets.`}else if(u.source!=="utilities"){h=`'@apply' cannot be used with '${f}' because it is not a utility.`}else if(u.context&&u.context.length>0){if(u.context.length===1){h=`'@apply' cannot be used with '${f}' because it is nested inside of an at-rule ('${u.context[0]}').`}else{h=`'@apply' cannot be used with '${f}' because it is nested inside of at-rules (${u.context.map((s=>`'${s}'`)).join(", ")}).`}}else if(u.pseudo&&u.pseudo.length>0){if(u.pseudo.length===1){h=`'@apply' cannot be used with '${f}' because its definition includes a pseudo-selector ('${u.pseudo[0]}')`}else{h=`'@apply' cannot be used with '${f}' because its definition includes pseudo-selectors (${u.pseudo.map((s=>`'${s}'`)).join(", ")}).`}}if(h){return{isApplyable:false,reason:h}}return{isApplyable:true}}var ct=undefined&&undefined.__awaiter||function(s,l,u,f){function adopt(s){return s instanceof u?s:new u((function(l){l(s)}))}return new(u||(u=Promise))((function(u,h){function fulfilled(s){try{step(f.next(s))}catch(s){h(s)}}function rejected(s){try{step(f["throw"](s))}catch(s){h(s)}}function step(s){s.done?u(s.value):adopt(s.value).then(fulfilled,rejected)}step((f=f.apply(s,l||[])).next())}))};function bigSign(s){return(s>0n)-(s<0n)}function generateRules(s,l){let u=s.modules.jit.generateRules.module(new Set(l),s.jitContext).sort((([s],[l])=>bigSign(s-l)));let f=s.modules.postcss.module.root({nodes:u.map((([,s])=>s))});s.modules.jit.expandApplyAtRules.module(s.jitContext)(f);let h=[];f.walkRules((s=>{h.push(s)}));return{root:f,rules:h}}function stringifyRoot(s,l,u){return ct(this,void 0,void 0,(function*(){let f=yield s.editor.getConfiguration(u);let h=ve()(f,"editor.tabSize",2);let g=ve()(f,"tailwindCSS.showPixelEquivalents",true);let v=ve()(f,"tailwindCSS.rootFontSize",16);let k=l.clone();k.walkAtRules("defaults",(s=>{s.remove()}));if(g){k.walkDecls((s=>{let l=remToPx(s.value,v);if(l){s.value=`${s.value}/* ${l} */`}}))}return k.toString().replace(/([^;{}\s])(\n\s*})/g,((s,l,u)=>`${l};${u}`)).replace(/^(?: )+/gm,(s=>" ".repeat(s.length/4*h)))}))}function stringifyRules(s,l,u=2){return l.map((s=>s.toString().replace(/([^}{;])$/gm,"$1;"))).join("\n\n").replace(/^(?: )+/gm,(s=>" ".repeat(s.length/4*u)))}function stringifyDecls(s,l,u){return ct(this,void 0,void 0,(function*(){let f=yield s.editor.getConfiguration(u);let h=ve()(f,"tailwindCSS.showPixelEquivalents",true);let g=ve()(f,"tailwindCSS.rootFontSize",16);let v=[];l.walkDecls((({prop:s,value:l})=>{let u=h?remToPx(l,g):undefined;v.push(`${s}: ${l}${u?`/* ${u} */`:""};`)}));return v.join(" ")}))}function replaceClassName(s,l,u,f){const transform=s=>{s.walkClasses((s=>{if(s.value===u){s.value=f}}))};return s.modules.postcssSelectorParser.module(transform).processSync(l)}function getRuleContext(s,l,u){let f=[replaceClassName(s,l.selector,u,"__placeholder__")];let h=l;while(h.parent&&h.parent.type!=="root"){h=h.parent;if(h.type==="atrule"){f.unshift(`@${h.name} ${h.params}`)}}return f}var ft;(function(s){s["CssConflict"]="cssConflict";s["InvalidApply"]="invalidApply";s["InvalidScreen"]="invalidScreen";s["InvalidVariant"]="invalidVariant";s["InvalidConfigPath"]="invalidConfigPath";s["InvalidTailwindDirective"]="invalidTailwindDirective";s["RecommendedVariantOrder"]="recommendedVariantOrder"})(ft||(ft={}));function isCssConflictDiagnostic(s){return s.code===ft.CssConflict}function isInvalidApplyDiagnostic(s){return s.code===ft.InvalidApply}function isInvalidScreenDiagnostic(s){return s.code===ft.InvalidScreen}function isInvalidVariantDiagnostic(s){return s.code===ft.InvalidVariant}function isInvalidConfigPathDiagnostic(s){return s.code===ft.InvalidConfigPath}function isInvalidTailwindDirectiveDiagnostic(s){return s.code===ft.InvalidTailwindDirective}function isRecommendedVariantOrderDiagnostic(s){return s.code===ft.RecommendedVariantOrder}let pt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;let dt=/\\(\\)?/g;function stringToPath(s){let l=[];if(s.charCodeAt(0)===46){l.push("")}s.replace(pt,((s,u,f,h)=>{l.push(f?h.replace(dt,"$1"):u||s)}));return l}var ht=__nccwpck_require__(19461);var mt=__nccwpck_require__.n(ht);function closest(s,l){return l.concat([]).sort(((l,u)=>mt()(s,l)-mt()(s,u)))[0]}function absoluteRange(s,l){return{start:{line:((l===null||l===void 0?void 0:l.start.line)||0)+s.start.line,character:(s.end.line===0?(l===null||l===void 0?void 0:l.start.character)||0:0)+s.start.character},end:{line:((l===null||l===void 0?void 0:l.start.line)||0)+s.end.line,character:(s.end.line===0?(l===null||l===void 0?void 0:l.start.character)||0:0)+s.end.character}}}const vt=__nccwpck_require__(7639);function pathToString(s){if(typeof s==="string")return s;return s.reduce(((s,l,u)=>{if(u===0)return l;if(l.includes("."))return`${s}[${l}]`;return`${s}.${l}`}),"")}function validateConfigPath(s,l,u=[]){let f=Array.isArray(l)?l:stringToPath(l);let h=vt(s.config,[...u,...f]);let g=[];function findAlternativePath(){let l=combinations("123456789".substr(0,f.length-1)).map((s=>s.split("").map((s=>parseInt(s,10)))));let h=l.map((s=>{let l=[];let u=0;s.forEach((s=>{l.push(f.slice(u,s).join("."));u=s}));l.push(f.slice(u).join("."));return l})).slice(1);return h.find((l=>validateConfigPath(s,l,u).isValid))}if(typeof h==="undefined"){let h=`'${pathToString(l)}' does not exist in your theme config.`;let v=[...u,...f.slice(0,f.length-1)];let k=vt(s.config,v);if(isObject(k)){let l=closest(f[f.length-1],Object.keys(k).filter((l=>validateConfigPath(s,[...v,l]).isValid)));if(l){g.push(pathToString([...f.slice(0,f.length-1),l]));h+=` Did you mean '${g[0]}'?`}}else{let s=findAlternativePath();if(s){return{isValid:false,reason:`${h} Did you mean '${pathToString(s)}'?`,suggestions:[pathToString(s)]}}}return{isValid:false,reason:h,suggestions:g}}if(!(typeof h==="string"||typeof h==="number"||h instanceof String||h instanceof Number||Array.isArray(h)||typeof h==="function")){let v=`'${pathToString(l)}' was found but does not resolve to a valid theme value.`;if(isObject(h)){let l=Object.keys(h).filter((l=>validateConfigPath(s,[...f,l],u).isValid));if(l.length){g.push(...l.map((s=>pathToString([...f,s]))));v+=` Did you mean something like '${g[0]}'?`}}return{isValid:false,reason:v,suggestions:g}}let v=true;for(let l=f.length-1;l>=0;l--){let h=f[l];let g=vt(s.config,[...u,...f.slice(0,l)]);if(/^[0-9]+$/.test(h)){if(!isObject(g)&&!Array.isArray(g)){v=false;break}}else if(!isObject(g)){v=false;break}}if(!v){let s=`'${pathToString(l)}' does not exist in your theme config.`;let u=findAlternativePath();if(u){return{isValid:false,reason:`${s} Did you mean '${pathToString(u)}'?`,suggestions:[pathToString(u)]}}return{isValid:false,reason:s,suggestions:[]}}return{isValid:true,value:h}}function getInvalidConfigPathDiagnostics(s,l,u){let f=u.tailwindCSS.lint.invalidConfigPath;if(f==="ignore")return[];let h=[];let g=[];if(isCssDoc(s,l)){g.push(undefined)}else{let u=getLanguageBoundaries(s,l);if(!u)return[];g.push(...u.css)}g.forEach((u=>{let g=l.getText(u);let v=findAll(/(?<prefix>\s|^)(?<helper>config|theme)\((?<quote>['"])(?<key>[^)]+)\k<quote>\)/g,g);v.forEach((l=>{let v=l.groups.helper==="theme"?["theme"]:[];let k=validateConfigPath(s,l.groups.key,v);if(k.isValid===true){return null}let O=l.index+l.groups.prefix.length+l.groups.helper.length+1+l.groups.quote.length;h.push({code:ft.InvalidConfigPath,range:absoluteRange({start:indexToPosition(g,O),end:indexToPosition(g,O+l.groups.key.length)},u),severity:f==="error"?1:2,message:k.reason,suggestions:k.suggestions})}))}));return h}var yt=undefined&&undefined.__awaiter||function(s,l,u,f){function adopt(s){return s instanceof u?s:new u((function(l){l(s)}))}return new(u||(u=Promise))((function(u,h){function fulfilled(s){try{step(f.next(s))}catch(s){h(s)}}function rejected(s){try{step(f["throw"](s))}catch(s){h(s)}}function step(s){s.done?u(s.value):adopt(s.value).then(fulfilled,rejected)}step((f=f.apply(s,l||[])).next())}))};const bt=__nccwpck_require__(7639);function doHover(s,l,u){return yt(this,void 0,void 0,(function*(){return(yield provideClassNameHover(s,l,u))||provideCssHelperHover(s,l,u)}))}function provideCssHelperHover(s,l,u){if(!isCssContext(s,l,u))return null;const f=l.getText({start:{line:u.line,character:0},end:{line:u.line+1,character:0}});const h=f.match(/(?<helper>theme|config)\((?<quote>['"])(?<key>[^)]+)\k<quote>\)/);if(h===null)return null;const g=h.index+h.groups.helper.length+2;const v=g+h.groups.key.length;if(u.character<g||u.character>=v){return null}let k=h.groups.key.split(/(\[[^\]]+\]|\.)/).filter(Boolean).filter((s=>s!==".")).map((s=>s.replace(/^\[([^\]]+)\]$/,"$1")));if(k.length===0)return null;if(h.groups.helper==="theme"){k=["theme",...k]}const O=validateConfigPath(s,k).isValid?stringifyConfigValue(bt(s.config,k)):null;if(O===null)return null;return{contents:{kind:"markdown",value:["```plaintext",O,"```"].join("\n")},range:{start:{line:u.line,character:g},end:{line:u.line,character:v}}}}function provideClassNameHover(s,l,u){return yt(this,void 0,void 0,(function*(){let f=yield findClassNameAtPosition(s,l,u);if(f===null)return null;if(s.jit){let{root:u,rules:h}=generateRules(s,[f.className]);if(h.length===0){return null}return{contents:{language:"css",value:yield stringifyRoot(s,u,l.uri)},range:f.range}}const h=getClassNameParts(s,f.className);if(!h)return null;if(isCssContext(s,l,u)){let l=validateApply(s,h);if(l===null||l.isApplyable===false){return null}}const g=yield s.editor.getConfiguration(l.uri);const v=stringifyCss(f.className,bt(s.classNames.classNames,[...h,"__info"]),{tabSize:bt(g,"editor.tabSize",2),showPixelEquivalents:bt(g,"tailwindCSS.showPixelEquivalents",true),rootFontSize:bt(g,"tailwindCSS.rootFontSize",16)});if(!v)return null;return{contents:{language:"css",value:v},range:f.range}}))}var wt=__nccwpck_require__(12351);var _t=__nccwpck_require__(39407);var xt=__nccwpck_require__.n(_t);const St=__nccwpck_require__(7639);const kt=["accent-color","caret-color","color","column-rule-color","background-color","border-color","border-top-color","border-right-color","border-bottom-color","border-left-color","fill","outline-color","stop-color","stroke","text-decoration-color"];function getKeywordColor(s){if(typeof s!=="string")return null;let l=s.toLowerCase();if(l==="transparent"){return"transparent"}if(l==="currentcolor"){return"currentColor"}return null}const Ct=new RegExp(`(?:^|\\s|\\(|,)(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\\((-?[\\d.]+%?(\\s*[,/]\\s*|\\s+)+){2,3}\\s*([\\d.]+%?|var\\([^)]+\\))?\\)|transparent|currentColor|${Object.keys(xt()).join("|")})(?:$|\\s|\\)|,)`,"gi");function getColorsInString(s){if(/(?:box|drop)-shadow/.test(s))return[];return Array.from(s.matchAll(Ct),(s=>{var l;let u=s[1].replace(/var\([^)]+\)/,"1");return(l=getKeywordColor(u))!==null&&l!==void 0?l:wt.parse(u)})).filter(Boolean)}function getColorFromDecls(s){let l=Object.keys(s).filter((l=>{if(l==="content"&&(s[l]==='""'||s[l]==="''"||s[l]==="var(--tw-content)")){return false}return true}));if(l.length===0)return null;const u=l.filter((s=>!s.startsWith("--")));const f=u.length===0;if(!f&&u.some((s=>!kt.includes(s)))){return null}const h=f?l:u;const g=h.flatMap((l=>ensureArray(s[l]).flatMap(getColorsInString)));const v=dedupe(g.map((s=>typeof s==="string"?s:wt.formatRgb(Object.assign(Object.assign({},s),{alpha:undefined})))));if(v.length!==1){return null}let k=getKeywordColor(v[0]);if(k){return k}const O=g.filter((s=>typeof s!=="string"));const M=dedupe(O.map((s=>{var l;return(l=s.alpha)!==null&&l!==void 0?l:1})));if(M.length===1){return O[0]}if(M.length===2&&M.includes(0)){return O.find((s=>{var l;return((l=s.alpha)!==null&&l!==void 0?l:1)!==0}))}return null}function getColor(s,l){if(s.jit){if(s.classNames){const u=St(s.classNames.classNames,[l,"__info"]);if(u&&u.__rule){return getColorFromDecls(removeMeta(u))}}let{root:u,rules:f}=generateRules(s,[l]);if(f.length===0)return null;let h={};u.walkDecls((s=>{let l=h[s.prop];if(l){if(Array.isArray(l)){l.push(s.value)}else{h[s.prop]=[l,s.value]}}else{h[s.prop]=s.value}}));return getColorFromDecls(h)}let u=getClassNameParts(s,l);if(!u)return null;const f=St(s.classNames.classNames,[...u,"__info"]);if(!f.__rule)return null;return getColorFromDecls(removeMeta(f))}function getColorFromValue(s){if(typeof s!=="string")return null;const l=s.trim();if(l.toLowerCase()==="transparent"){return"transparent"}if(l.toLowerCase()==="currentcolor"){return"currentColor"}if(!/^\s*(?:rgba?|hsla?)\s*\([^)]+\)\s*$/.test(l)&&!/^\s*#[0-9a-f]+\s*$/i.test(l)&&!Object.keys(xt()).includes(l)){return null}const u=wt.parse(l);return u!==null&&u!==void 0?u:null}let Et=wt.converter("rgb");function culoriColorToVscodeColor(s){var l;let u=Et(s);return{red:u.r,green:u.g,blue:u.b,alpha:(l=u.alpha)!==null&&l!==void 0?l:1}}function isRawScreen(s){return isObject(s)&&s.raw!==undefined}function stringifyScreen(s){if(!s)return undefined;if(typeof s==="string")return`@media (min-width: ${s})`;if(isRawScreen(s)){return`@media ${s.raw}`}let l=(Array.isArray(s)?s:[s]).map((s=>[typeof s.min==="string"?`(min-width: ${s.min})`:null,typeof s.max==="string"?`(max-width: ${s.max})`:null].filter(Boolean).join(" and "))).join(", ");return l?`@media ${l}`:undefined}var Rt=__nccwpck_require__(70542);function isValidLocationForEmmetAbbreviation(s,l){const u="<";const f=">";const h="\\";const g="?";let v={line:0,character:0};let k=s.getText({start:{line:v.line,character:v.character},end:{line:l.start.line,character:l.start.character}});if(k.length>500){k=k.substr(k.length-500)}if(!k.trim()){return true}let O=true;let M=false;let q=k.length-1;if(k[q]===u){return false}while(q>=0){const s=k[q];q--;if(!M&&/\s/.test(s)){M=true;continue}if(s===g&&k[q]===u){q--;continue}if(/\s/.test(s)&&k[q]===u){q--;continue}if(s!==u&&s!==f){continue}if(q>=0&&k[q]===h){q--;continue}if(s===f){if(q>=0&&k[q]==="="){continue}else{break}}if(s===u){O=!M;break}}return O}function pad(s){return("00000000"+s).substr(-8)}function naturalExpand(s){let l=typeof s==="string"?s:s.toString();return l.replace(/\d+/g,pad)}function docsUrl(s,l){let u=0;let f="https://tailwindcss-v0.netlify.app/docs/";if(he().gte(s,"0.99.0")){u=1;f="https://v1.tailwindcss.com/docs/"}if(he().gte(s,"1.99.0")){u=2;f="https://tailwindcss.com/docs/"}const h=Array.isArray(l)?l[u]||l[l.length-1]:l;return`${f}${h}`}function getVariantsFromClassName(s,l){let u=l;let f=Object.keys(s.variants);let h=f.sort(((s,l)=>l.length-s.length));let g=new Set;let v=0;while(u){let l=false;for(let f of h){if(u.startsWith(f+s.separator)){g.add(f);u=u.substr(f.length+s.separator.length);v+=f.length+s.separator.length;l=true;break}}if(!l)u=""}return{variants:Array.from(g),offset:v}}var Pt=undefined&&undefined.__awaiter||function(s,l,u,f){function adopt(s){return s instanceof u?s:new u((function(l){l(s)}))}return new(u||(u=Promise))((function(u,h){function fulfilled(s){try{step(f.next(s))}catch(s){h(s)}}function rejected(s){try{step(f["throw"](s))}catch(s){h(s)}}function step(s){s.done?u(s.value):adopt(s.value).then(fulfilled,rejected)}step((f=f.apply(s,l||[])).next())}))};const Tt=__nccwpck_require__(7639);let isUtil=s=>Array.isArray(s.__info)?s.__info.some((s=>s.__source==="utilities")):s.__info.__source==="utilities";function completionsFromClassList(s,l,u,f,h,g){let v=l.split(/[\s+]/);const k=v[v.length-1];let O=s.separator;let M=k.split(O);let q;let B=[];let Y=false;let te=Object.assign(Object.assign({},u),{start:Object.assign(Object.assign({},u.start),{character:u.end.character-k.length})});if(s.jit){if(g&&(g.triggerKind===1||g.triggerKind===2&&g.triggerCharacter==="/")&&k.includes("/")){let l=k.split("/").slice(0,-1).join("/");let u=l+"/[0]";let{rules:f}=generateRules(s,[u]);if(f.length>0){let u=Tt(s.config,"theme.opacity",{});if(!isObject(u)){u={}}return{isIncomplete:false,items:Object.keys(u).map(((u,f)=>{var h;let g=`${l}/${u}`;let v=21;let k=null;const O=getColor(s,g);if(O!==null){v=16;if(typeof O!=="string"&&((h=O.alpha)!==null&&h!==void 0?h:1)!==0){k=wt.formatRgb(O)}}return{label:g,documentation:k,kind:v,sortText:naturalExpand(f),data:[g],textEdit:{newText:g,range:te}}}))}}}let l=Object.keys(s.variants);let{variants:h,offset:v}=getVariantsFromClassName(s,k);te.start.character+=v;let M=k.substr(v).startsWith("!");if(M){te.start.character+=1}let q=[];if(!M){let f=!he().gte(s.version,"2.99.0");q.push(...Object.entries(s.variants).filter((([s])=>!h.includes(s))).map((([s,g],v)=>{let M=[...h,s];if(f){M=M.sort(((s,u)=>l.indexOf(u)-l.indexOf(s)))}return{label:s+O,kind:9,detail:g,data:"variant",command:{title:"",command:"editor.action.triggerSuggest"},sortText:"-"+naturalExpand(v),textEdit:{newText:M[M.length-1]+O,range:te},additionalTextEdits:f&&M.length>1?[{newText:M.slice(0,M.length-1).join(O)+O,range:{start:Object.assign(Object.assign({},u.start),{character:u.end.character-k.length}),end:Object.assign(Object.assign({},te.start),{character:te.start.character})}}]:[]}})))}if(s.classList){return{isIncomplete:false,items:q.concat(s.classList.map((([s,{color:l}],u)=>{let f=l?16:21;let g=null;if(l&&typeof l!=="string"){g=wt.formatRgb(l)}return{label:s,kind:f,documentation:g,sortText:naturalExpand(u),data:[...h,M?`!${s}`:s],textEdit:{newText:s,range:te}}})))}}return{isIncomplete:false,items:q.concat(Object.keys(s.classNames.classNames).filter((l=>{let u=s.classNames.classNames[l];if(h.length===0){return u.__info}return u.__info&&isUtil(u)})).map(((l,u)=>{var f;let g=21;let v=null;const k=getColor(s,l);if(k!==null){g=16;if(typeof k!=="string"&&((f=k.alpha)!==null&&f!==void 0?f:1)!==0){v=wt.formatRgb(k)}}return{label:l,kind:g,documentation:v,sortText:naturalExpand(u),data:[...h,M?`!${l}`:l],textEdit:{newText:l,range:te}}}))).filter((s=>{if(s===null){return false}if(f&&!f(s)){return false}return true}))}}for(let l=M.length-1;l>0;l--){let u=M.slice(0,l).filter(Boolean);q=Tt(s.classNames.classNames,u);if(typeof q!=="undefined"&&typeof Tt(q,["__info","__rule"])==="undefined"){Y=true;B=u;te=Object.assign(Object.assign({},te),{start:Object.assign(Object.assign({},te.start),{character:te.start.character+u.join(O).length+O.length})});break}}return{isIncomplete:false,items:Object.keys(Y?q:s.classNames.classNames).filter((s=>s!=="__info")).filter((l=>isContextItem(s,[...B,l]))).map(((s,l)=>({label:s+O,kind:9,documentation:null,command:{title:"",command:"editor.action.triggerSuggest"},sortText:"-"+naturalExpand(l),data:[...B,s],textEdit:{newText:s+O,range:te}}))).concat(Object.keys(Y?q:s.classNames.classNames).filter((l=>Tt(s.classNames.classNames,[...B,l,"__info"]))).map(((l,u)=>{var f;let h=21;let g=null;const v=getColor(s,l);if(v!==null){h=16;if(typeof v!=="string"&&((f=v.alpha)!==null&&f!==void 0?f:1)!==0){g=wt.formatRgb(v)}}return{label:l,kind:h,documentation:g,sortText:naturalExpand(u),data:[...B,l],textEdit:{newText:l,range:te}}}))).filter((s=>{if(s===null){return false}if(f&&!f(s)){return false}return true}))}}function provideClassAttributeCompletions(s,l,u,f){return Pt(this,void 0,void 0,(function*(){let h=l.getText({start:l.positionAt(Math.max(0,l.offsetAt(u)-1e3)),end:u});let g=matchClassAttributes(h,(yield s.editor.getConfiguration(l.uri)).tailwindCSS.classAttributes);if(g.length===0){return null}let v=g[g.length-1];const k=v[0][0]===":"||v[1].startsWith("[")&&v[1].endsWith("]")?Je():Qe();k.reset(h.substr(v.index+v[0].length-1));try{let h=Array.from(k);let g=h[h.length-1];if(g.type.startsWith("start")||g.type==="classlist"){let g="";for(let s=h.length-1;s>=0;s--){if(h[s].type==="classlist"){g=h[s].value+g}else{break}}return completionsFromClassList(s,g,{start:{line:u.line,character:u.character-g.length},end:u},undefined,l,f)}}catch(s){}return null}))}function provideCustomClassNameCompletions(s,l,u){return Pt(this,void 0,void 0,(function*(){const f=yield s.editor.getConfiguration(l.uri);const h=Tt(f,"tailwindCSS.experimental.classRegex",[]);if(h.length===0)return null;const g=l.offsetAt(u);const v={start:l.positionAt(Math.max(0,g-1e3)),end:l.positionAt(g+1e3)};let k=l.getText(v);for(let f=0;f<h.length;f++){try{let[g,O]=Array.isArray(h[f])?h[f]:[h[f]];g=createMultiRegexp(g);let M;while((M=g.exec(k))!==null){const f=l.offsetAt(v.start);const h=f+M.start;const g=f+M.end;const k=l.offsetAt(u);if(k>=h&&k<=g){let l;if(O){O=createMultiRegexp(O);let s;while((s=O.exec(M.match))!==null){const u=h+s.start;const f=h+s.end;if(k>=u&&k<=f){l=s.match.substr(0,k-u)}}if(typeof l==="undefined"){throw Error()}}else{l=M.match.substr(0,k-h)}return completionsFromClassList(s,l,{start:{line:u.line,character:u.character-l.length},end:u})}}}catch(s){}}return null}))}function provideAtApplyCompletions(s,l,u){let f=l.getText({start:{line:Math.max(u.line-30,0),character:0},end:u});const h=findLast(/@apply\s+(?<classList>[^;}]*)$/gi,f);if(h===null){return null}const g=h.groups.classList;return completionsFromClassList(s,g,{start:{line:u.line,character:u.character-g.length},end:u},(l=>{if(l.kind===9){return he().gte(s.version,"2.0.0-alpha.1")||flagEnabled(s,"applyComplexClasses")}let u=validateApply(s,l.data);return u!==null&&u.isApplyable===true}))}function provideClassNameCompletions(s,l,u,f){return Pt(this,void 0,void 0,(function*(){if(isCssContext(s,l,u)){return provideAtApplyCompletions(s,l,u)}if(isHtmlContext(s,l,u)||isJsContext(s,l,u)){return provideClassAttributeCompletions(s,l,u,f)}return null}))}function provideCssHelperCompletions(s,l,u){if(!isCssContext(s,l,u)){return null}let f=l.getText({start:{line:u.line,character:0},end:{line:u.line,character:u.character+1}});const h=f.substr(0,f.length-1).match(/\b(?<helper>config|theme)\(['"](?<keys>[^'"]*)$/);if(h===null){return null}let g=h.groups.helper==="config"?s.config:Tt(s.config,"theme",{});let v=h.groups.keys.split(/([\[\].]+)/);let k=v.filter(((s,l)=>l%2===0));let O=v.filter(((s,l)=>l%2!==0));function totalLength(s){return s.reduce(((s,l)=>s+l.length),0)}let M;let q=0;let B=O.length?O[O.length-1]:null;if(k.length===1){M=g}else{for(let s=k.length-1;s>0;s--){let l=Tt(g,k.slice(0,s));if(isObject(l)){M=l;q=totalLength(v.slice(s*2));B=O[s-1];break}}}if(!M)return null;return{isIncomplete:false,items:Object.keys(M).map(((s,l)=>{var h;let g=getColorFromValue(M[s]);const v=s.indexOf(".")!==-1&&B&&B.endsWith(".");const O=f.charAt(f.length-1)!=="]"&&(v||B&&B.endsWith("["));const Y=stringifyConfigValue(M[s]);return{label:s,filterText:`${v?".":""}${s}`,sortText:naturalExpand(l),kind:g?16:isObject(M[s])?9:10,detail:Y==="0"||Y==="transparent"?`${Y} `:Y,documentation:g&&typeof g!=="string"&&((h=g.alpha)!==null&&h!==void 0?h:1)!==0?wt.formatRgb(g):null,textEdit:{newText:`${v?"[":""}${s}${O?"]":""}`,range:{start:{line:u.line,character:u.character-k[k.length-1].length-(v?1:0)-q},end:u}},data:"helper"}}))}}function provideTailwindDirectiveCompletions(s,l,u){if(!isCssContext(s,l,u)){return null}let f=l.getText({start:{line:u.line,character:0},end:u});const h=f.match(/^\s*@tailwind\s+(?<partial>[^\s]*)$/i);if(h===null)return null;return{isIncomplete:false,items:[he().gte(s.version,"1.0.0-beta.1")?{label:"base",documentation:{kind:"markdown",value:`This injects Tailwind’s base styles and any base styles registered by plugins.\n\n[Tailwind CSS Documentation](${docsUrl(s.version,"functions-and-directives/#tailwind")})`}}:{label:"preflight",documentation:{kind:"markdown",value:`This injects Tailwind’s base styles, which is a combination of Normalize.css and some additional base styles.\n\n[Tailwind CSS Documentation](${docsUrl(s.version,"functions-and-directives/#tailwind")})`}},{label:"components",documentation:{kind:"markdown",value:`This injects Tailwind’s component classes and any component classes registered by plugins.\n\n[Tailwind CSS Documentation](${docsUrl(s.version,"functions-and-directives/#tailwind")})`}},{label:"utilities",documentation:{kind:"markdown",value:`This injects Tailwind’s utility classes and any utility classes registered by plugins.\n\n[Tailwind CSS Documentation](${docsUrl(s.version,"functions-and-directives/#tailwind")})`}},s.jit&&he().gte(s.version,"2.1.99")?{label:"variants",documentation:{kind:"markdown",value:`Use this directive to control where Tailwind injects the utility variants.\n\nThis directive is considered an advanced escape hatch and it is recommended to omit it whenever possible. If omitted, Tailwind will append these classes to the very end of your stylesheet by default.\n\n[Tailwind CSS Documentation](${docsUrl(s.version,"just-in-time-mode#variants-are-inserted-at-tailwind-variants")})`}}:{label:"screens",documentation:{kind:"markdown",value:`Use this directive to control where Tailwind injects the responsive variations of each utility.\n\nIf omitted, Tailwind will append these classes to the very end of your stylesheet by default.\n\n[Tailwind CSS Documentation](${docsUrl(s.version,"functions-and-directives/#tailwind")})`}}].map((s=>Object.assign(Object.assign({},s),{kind:21,data:"@tailwind",textEdit:{newText:s.label,range:{start:{line:u.line,character:u.character-h.groups.partial.length},end:u}}})))}}function provideVariantsDirectiveCompletions(s,l,u){if(!isCssContext(s,l,u)){return null}if(he().gte(s.version,"2.99.0")){return null}let f=l.getText({start:{line:u.line,character:0},end:u});const h=f.match(/^\s*@variants\s+(?<partial>[^}]*)$/i);if(h===null)return null;const g=h.groups.partial.split(/\s*,\s*/);if(/\s+/.test(g[g.length-1]))return null;let v=Object.keys(s.variants);const k=g.slice(0,g.length-1);if(s.jit){v.unshift("responsive");v=v.filter((l=>!s.screens.includes(l)))}return{isIncomplete:false,items:v.filter((s=>k.indexOf(s)===-1)).map(((l,f)=>({label:l,detail:s.variants[l],kind:21,data:"variant",sortText:naturalExpand(f),textEdit:{newText:l,range:{start:{line:u.line,character:u.character-g[g.length-1].length},end:u}}})))}}function provideLayerDirectiveCompletions(s,l,u){if(!isCssContext(s,l,u)){return null}let f=l.getText({start:{line:u.line,character:0},end:u});const h=f.match(/^\s*@layer\s+(?<partial>[^\s]*)$/i);if(h===null)return null;return{isIncomplete:false,items:["base","components","utilities"].map(((s,l)=>({label:s,kind:21,data:"layer",sortText:naturalExpand(l),textEdit:{newText:s,range:{start:{line:u.line,character:u.character-h.groups.partial.length},end:u}}})))}}function provideScreenDirectiveCompletions(s,l,u){if(!isCssContext(s,l,u)){return null}let f=l.getText({start:{line:u.line,character:0},end:u});const h=f.match(/^\s*@screen\s+(?<partial>[^\s]*)$/i);if(h===null)return null;const g=Tt(s.config,["screens"],Tt(s.config,["theme","screens"],{}));if(!isObject(g))return null;return{isIncomplete:false,items:Object.keys(g).map(((s,l)=>({label:s,kind:21,data:"screen",sortText:naturalExpand(l),textEdit:{newText:s,range:{start:{line:u.line,character:u.character-h.groups.partial.length},end:u}}})))}}function provideCssDirectiveCompletions(s,l,u){if(!isCssContext(s,l,u)){return null}let f=l.getText({start:{line:u.line,character:0},end:u});const h=f.match(/^\s*@(?<partial>[a-z]*)$/i);if(h===null)return null;const g=[{label:"@tailwind",documentation:{kind:"markdown",value:`Use the \`@tailwind\` directive to insert Tailwind’s \`base\`, \`components\`, \`utilities\` and \`${s.jit&&he().gte(s.version,"2.1.99")?"variants":"screens"}\` styles into your CSS.\n\n[Tailwind CSS Documentation](${docsUrl(s.version,"functions-and-directives/#tailwind")})`}},{label:"@screen",documentation:{kind:"markdown",value:`The \`@screen\` directive allows you to create media queries that reference your breakpoints by name instead of duplicating their values in your own CSS.\n\n[Tailwind CSS Documentation](${docsUrl(s.version,"functions-and-directives/#screen")})`}},{label:"@apply",documentation:{kind:"markdown",value:`Use \`@apply\` to inline any existing utility classes into your own custom CSS.\n\n[Tailwind CSS Documentation](${docsUrl(s.version,"functions-and-directives/#apply")})`}},...he().gte(s.version,"1.8.0")?[{label:"@layer",documentation:{kind:"markdown",value:`Use the \`@layer\` directive to tell Tailwind which "bucket" a set of custom styles belong to. Valid layers are \`base\`, \`components\`, and \`utilities\`.\n\n[Tailwind CSS Documentation](${docsUrl(s.version,"functions-and-directives/#layer")})`}}]:[],...he().gte(s.version,"2.99.0")?[]:[{label:"@variants",documentation:{kind:"markdown",value:`You can generate \`responsive\`, \`hover\`, \`focus\`, \`active\`, and other variants of your own utilities by wrapping their definitions in the \`@variants\` directive.\n\n[Tailwind CSS Documentation](${docsUrl(s.version,"functions-and-directives/#variants")})`}},{label:"@responsive",documentation:{kind:"markdown",value:`You can generate responsive variants of your own classes by wrapping their definitions in the \`@responsive\` directive.\n\n[Tailwind CSS Documentation](${docsUrl(s.version,"functions-and-directives/#responsive")})`}}]];return{isIncomplete:false,items:g.map((s=>Object.assign(Object.assign({},s),{kind:14,data:"directive",textEdit:{newText:s.label,range:{start:{line:u.line,character:u.character-h.groups.partial.length-1},end:u}}})))}}function provideEmmetCompletions(s,l,u){return Pt(this,void 0,void 0,(function*(){let f=yield s.editor.getConfiguration(l.uri);if(f.tailwindCSS.emmetCompletions!==true)return null;const h=isHtmlContext(s,l,u);const g=!h&&isJsContext(s,l,u);const v=h?"html":g?"jsx":null;if(v===null){return null}const k=Rt.extractAbbreviation(l,u,true);if(!k||!Rt.isAbbreviationValid(v,k.abbreviation)){return null}if(!isValidLocationForEmmetAbbreviation(l,k.abbreviationRange)){return null}if(g){const u=k.abbreviation;if(u.startsWith("this.")){return null}const f=yield s.editor.getDocumentSymbols(l.uri);if(f&&f.find((s=>u===s.name||u.startsWith(s.name+".")&&!/>|\*|\+/.test(u)))){return null}}const O=Rt.doComplete(l,u,v,{});if(!O||!O.items||O.items.length!==1){return null}if(O.items[0].label==="widows: ;"){return null}const M=O.items[0].label.split(".");if(M.length<2)return null;return completionsFromClassList(s,M[M.length-1],{start:{line:u.line,character:u.character-M[M.length-1].length},end:u})}))}function doComplete(s,l,u,f){return Pt(this,void 0,void 0,(function*(){if(s===null)return{items:[],isIncomplete:false};const h=(yield provideClassNameCompletions(s,l,u,f))||provideCssHelperCompletions(s,l,u)||provideCssDirectiveCompletions(s,l,u)||provideScreenDirectiveCompletions(s,l,u)||provideVariantsDirectiveCompletions(s,l,u)||provideTailwindDirectiveCompletions(s,l,u)||provideLayerDirectiveCompletions(s,l,u)||(yield provideCustomClassNameCompletions(s,l,u));if(h)return h;return provideEmmetCompletions(s,l,u)}))}function resolveCompletionItem(s,l){return Pt(this,void 0,void 0,(function*(){if(["helper","directive","variant","layer","@tailwind"].includes(l.data)){return l}if(l.data==="screen"){let u=Tt(s.config,["theme","screens"],Tt(s.config,["screens"],{}));if(!isObject(u))u={};l.detail=stringifyScreen(u[l.label]);return l}if(!Array.isArray(l.data)){return l}if(s.jit){if(l.kind===9)return l;if(l.detail&&l.documentation)return l;let{root:u,rules:f}=generateRules(s,[l.data.join(s.separator)]);if(f.length===0)return l;if(!l.detail){if(f.length===1){l.detail=yield stringifyDecls(s,f[0])}else{l.detail=`${f.length} rules`}}if(!l.documentation){l.documentation={kind:"markdown",value:["```css",yield stringifyRoot(s,u),"```"].join("\n")}}return l}const u=Tt(s.classNames.classNames,[...l.data,"__info"]);if(l.kind===9){l.detail=s.classNames.context[l.data[l.data.length-1]].join(", ")}else{l.detail=yield getCssDetail(s,u);if(!l.documentation){const f=yield s.editor.getConfiguration();const h=stringifyCss(l.data.join(":"),u,{tabSize:Tt(f,"editor.tabSize",2),showPixelEquivalents:Tt(f,"tailwindCSS.showPixelEquivalents",true),rootFontSize:Tt(f,"tailwindCSS.rootFontSize",16)});if(h){l.documentation={kind:"markdown",value:["```css",h,"```"].join("\n")}}}}return l}))}function isContextItem(s,l){const u=Tt(s.classNames.classNames,[l]);if(!isObject(u)){return false}if(!s.classNames.context[l[l.length-1]]){return false}if(Object.keys(u).filter((s=>s!=="__info")).length>0){return true}return isObject(u.__info)&&!u.__info.__rule}function completionProvider_stringifyDecls(s,{showPixelEquivalents:l=false,rootFontSize:u=16}={}){let f=Object.keys(s);let h=f.filter((s=>!s.startsWith("--")));if(f.length!==h.length&&h.length!==0){f=h}return f.map((f=>ensureArray(s[f]).map((s=>{const h=l?remToPx(s,u):undefined;return`${f}: ${s}${h?`/* ${h} */`:""};`})).join(" "))).join(" ")}function getCssDetail(s,l){return Pt(this,void 0,void 0,(function*(){if(Array.isArray(l)){return`${l.length} rules`}if(l.__rule===true){const u=yield s.editor.getConfiguration();return completionProvider_stringifyDecls(removeMeta(l),{showPixelEquivalents:Tt(u,"tailwindCSS.showPixelEquivalents",true),rootFontSize:Tt(u,"tailwindCSS.rootFontSize",16)})}return null}))}function joinWithAnd(s){return s.reduce(((l,u,f)=>{if(f===0){return u}if(s.length>1&&f===s.length-1){return`${l} and ${u}`}return`${l}, ${u}`}),"")}const At=__nccwpck_require__(7639);function getClassNameDecls(s,l){const u=getClassNameParts(s,l);if(!u)return null;const f=At(s.classNames.classNames,[...u,"__info"]);if(Array.isArray(f)){return f.map(removeMeta)}return removeMeta(f)}var Ot=undefined&&undefined.__awaiter||function(s,l,u,f){function adopt(s){return s instanceof u?s:new u((function(l){l(s)}))}return new(u||(u=Promise))((function(u,h){function fulfilled(s){try{step(f.next(s))}catch(s){h(s)}}function rejected(s){try{step(f["throw"](s))}catch(s){h(s)}}function step(s){s.done?u(s.value):adopt(s.value).then(fulfilled,rejected)}step((f=f.apply(s,l||[])).next())}))};function getCssConflictDiagnostics(s,l,u){return Ot(this,void 0,void 0,(function*(){let f=u.tailwindCSS.lint.cssConflict;if(f==="ignore")return[];let h=[];const g=yield findClassListsInDocument(s,l);g.forEach((u=>{const g=getClassNamesInClassList(u);g.forEach(((u,v)=>{if(s.jit){let{rules:k}=generateRules(s,[u.className]);if(k.length!==1){return}let O=k[0];let M;let q=[];O.walkDecls((({prop:s})=>{q.push(s)}));let B=g.filter(((s,l)=>l!==v));let Y=B.filter((l=>{let{rules:f}=generateRules(s,[l.className]);if(f.length!==1){return false}let h=f[0];let g=[];h.walkDecls((({prop:s})=>{g.push(s)}));if(!equal(q,g)){return false}if(!M){M=getRuleContext(s,O,u.className)}let v=getRuleContext(s,h,l.className);if(!equal(M,v)){return false}return true}));if(Y.length===0)return;h.push({code:ft.CssConflict,className:u,otherClassNames:Y,range:u.range,severity:f==="error"?1:2,message:`'${u.className}' applies the same CSS ${q.length===1?"property":"properties"} as ${joinWithAnd(Y.map((s=>`'${s.className}'`)))}.`,relatedInformation:Y.map((s=>({message:s.className,location:{uri:l.uri,range:s.range}})))});return}let k=getClassNameDecls(s,u.className);if(!k)return;let O=Object.keys(k);let M=getClassNameMeta(s,u.className);let q=g.filter(((s,l)=>l!==v));let B=q.filter((l=>{let u=getClassNameDecls(s,l.className);if(!u)return false;let f=getClassNameMeta(s,l.className);return equal(O,Object.keys(u))&&!Array.isArray(M)&&!Array.isArray(f)&&equal(M.context,f.context)&&equal(M.pseudo,f.pseudo)&&M.scope===f.scope}));if(B.length===0)return;h.push({code:ft.CssConflict,className:u,otherClassNames:B,range:u.range,severity:f==="error"?1:2,message:`'${u.className}' applies the same CSS ${O.length===1?"property":"properties"} as ${joinWithAnd(B.map((s=>`'${s.className}'`)))}.`,relatedInformation:B.map((s=>({message:s.className,location:{uri:l.uri,range:s.range}})))})}))}));return h}))}var Dt=undefined&&undefined.__awaiter||function(s,l,u,f){function adopt(s){return s instanceof u?s:new u((function(l){l(s)}))}return new(u||(u=Promise))((function(u,h){function fulfilled(s){try{step(f.next(s))}catch(s){h(s)}}function rejected(s){try{step(f["throw"](s))}catch(s){h(s)}}function step(s){s.done?u(s.value):adopt(s.value).then(fulfilled,rejected)}step((f=f.apply(s,l||[])).next())}))};function getInvalidApplyDiagnostics(s,l,u){return Dt(this,void 0,void 0,(function*(){let f=u.tailwindCSS.lint.invalidApply;if(f==="ignore")return[];const h=yield findClassNamesInRange(s,l,undefined,"css",false);let g=h.map((l=>{let u=validateApply(s,l.className);if(u===null||u.isApplyable===true){return null}return{code:ft.InvalidApply,severity:f==="error"?1:2,range:l.range,message:u.reason,className:l}}));return g.filter(Boolean)}))}const It=__nccwpck_require__(7639);function getInvalidScreenDiagnostics(s,l,u){let f=u.tailwindCSS.lint.invalidScreen;if(f==="ignore")return[];let h=[];let g=[];if(isCssDoc(s,l)){g.push(undefined)}else{let u=getLanguageBoundaries(s,l);if(!u)return[];g.push(...u.css)}g.forEach((u=>{let g=l.getText(u);let v=findAll(/(?:\s|^)@screen\s+(?<screen>[^\s{]+)/g,g);v.forEach((l=>{if(s.screens.includes(l.groups.screen)){return null}let v=`The screen '${l.groups.screen}' does not exist in your theme config.`;let k=[];let O=closest(l.groups.screen,s.screens);if(O){k.push(O);v+=` Did you mean '${O}'?`}h.push({code:ft.InvalidScreen,range:absoluteRange({start:indexToPosition(g,l.index+l[0].length-l.groups.screen.length),end:indexToPosition(g,l.index+l[0].length)},u),severity:f==="error"?1:2,message:v,suggestions:k})}))}));return h}function getInvalidVariantDiagnostics(s,l,u){let f=u.tailwindCSS.lint.invalidVariant;if(f==="ignore")return[];if(he().gte(s.version,"2.99.0")){return[]}let h=[];let g=[];if(isCssDoc(s,l)){g.push(undefined)}else{let u=getLanguageBoundaries(s,l);if(!u)return[];g.push(...u.css)}let v=Object.keys(s.variants);if(s.jit){v.unshift("responsive");v=v.filter((l=>!s.screens.includes(l)))}g.forEach((s=>{let u=l.getText(s);let g=findAll(/(?:\s|^)@variants\s+(?<variants>[^{]+)/g,u);g.forEach((l=>{let g=l.groups.variants.split(/(\s*,\s*)/);let k=l.index+l[0].length-l.groups.variants.length;for(let l=0;l<g.length;l+=2){let O=g[l].trim();if(v.includes(O)){continue}let M=`The variant '${O}' does not exist.`;let q=[];let B=closest(O,v);if(B){q.push(B);M+=` Did you mean '${B}'?`}let Y=k+g.slice(0,l).join("").length;h.push({code:ft.InvalidVariant,range:absoluteRange({start:indexToPosition(u,Y),end:indexToPosition(u,Y+O.length)},s),severity:f==="error"?1:2,message:M,suggestions:q})}}))}));return h}function getInvalidTailwindDirectiveDiagnostics(s,l,u){let f=u.tailwindCSS.lint.invalidTailwindDirective;if(f==="ignore")return[];let h=[];let g=[];if(isCssDoc(s,l)){g.push(undefined)}else{let u=getLanguageBoundaries(s,l);if(!u)return[];g.push(...u.css)}let v=s.jit&&he().gte(s.version,"2.1.99");g.forEach((u=>{let g=l.getText(u);let k=findAll(/(?:\s|^)@tailwind\s+(?<value>[^;]+)/g,g);let O=["utilities","components","screens",he().gte(s.version,"1.0.0-beta.1")?"base":"preflight",v&&"variants"].filter(Boolean);let M=O;if(v){M=M.filter((s=>s!=="screens"))}k.forEach((s=>{if(O.includes(s.groups.value)){return null}let l=`'${s.groups.value}' is not a valid value.`;let v=[];if(s.groups.value==="preflight"){v.push("base");l+=` Did you mean 'base'?`}else{let u=closest(s.groups.value,M);if(u){v.push(u);l+=` Did you mean '${u}'?`}}h.push({code:ft.InvalidTailwindDirective,range:absoluteRange({start:indexToPosition(g,s.index+s[0].length-s.groups.value.length),end:indexToPosition(g,s.index+s[0].length)},u),severity:f==="error"?1:2,message:l,suggestions:v})}))}));return h}var Mt=undefined&&undefined.__awaiter||function(s,l,u,f){function adopt(s){return s instanceof u?s:new u((function(l){l(s)}))}return new(u||(u=Promise))((function(u,h){function fulfilled(s){try{step(f.next(s))}catch(s){h(s)}}function rejected(s){try{step(f["throw"](s))}catch(s){h(s)}}function step(s){s.done?u(s.value):adopt(s.value).then(fulfilled,rejected)}step((f=f.apply(s,l||[])).next())}))};function getRecommendedVariantOrderDiagnostics(s,l,u){return Mt(this,void 0,void 0,(function*(){if(!s.jit)return[];if(he().gte(s.version,"2.99.0"))return[];let f=u.tailwindCSS.lint.recommendedVariantOrder;if(f==="ignore")return[];let h=[];const g=yield findClassListsInDocument(s,l);g.forEach((l=>{const u=getClassNamesInClassList(l);u.forEach((l=>{let{rules:u}=generateRules(s,[l.className]);if(u.length===0){return}let{variants:g,offset:v}=getVariantsFromClassName(s,l.className);let k=[...g].sort(((l,u)=>bigSign(s.jitContext.variantOrder.get(u)-s.jitContext.variantOrder.get(l))));if(!equalExact(g,k)){h.push({code:ft.RecommendedVariantOrder,suggestions:[[...k,l.className.substr(v)].join(s.separator)],range:l.range,severity:f==="error"?1:2,message:"Variants are not in the recommended order, which may cause unexpected CSS output."})}}))}));return h}))}var Nt=undefined&&undefined.__awaiter||function(s,l,u,f){function adopt(s){return s instanceof u?s:new u((function(l){l(s)}))}return new(u||(u=Promise))((function(u,h){function fulfilled(s){try{step(f.next(s))}catch(s){h(s)}}function rejected(s){try{step(f["throw"](s))}catch(s){h(s)}}function step(s){s.done?u(s.value):adopt(s.value).then(fulfilled,rejected)}step((f=f.apply(s,l||[])).next())}))};function doValidate(s,l,u=[ft.CssConflict,ft.InvalidApply,ft.InvalidScreen,ft.InvalidVariant,ft.InvalidConfigPath,ft.InvalidTailwindDirective,ft.RecommendedVariantOrder]){return Nt(this,void 0,void 0,(function*(){const f=yield s.editor.getConfiguration(l.uri);return f.tailwindCSS.validate?[...u.includes(ft.CssConflict)?yield getCssConflictDiagnostics(s,l,f):[],...u.includes(ft.InvalidApply)?yield getInvalidApplyDiagnostics(s,l,f):[],...u.includes(ft.InvalidScreen)?getInvalidScreenDiagnostics(s,l,f):[],...u.includes(ft.InvalidVariant)?getInvalidVariantDiagnostics(s,l,f):[],...u.includes(ft.InvalidConfigPath)?getInvalidConfigPathDiagnostics(s,l,f):[],...u.includes(ft.InvalidTailwindDirective)?getInvalidTailwindDirectiveDiagnostics(s,l,f):[],...u.includes(ft.RecommendedVariantOrder)?yield getRecommendedVariantOrderDiagnostics(s,l,f):[]]:[]}))}function provideDiagnostics(s,l){return Nt(this,void 0,void 0,(function*(){}))}function clearDiagnostics(s,l){}function clearAllDiagnostics(s){s.editor.documents.all().forEach((l=>{clearDiagnostics(s,l)}))}function updateAllDiagnostics(s){s.editor.documents.all().forEach((l=>{provideDiagnostics(s,l)}))}function normalizeFileNameToFsPath(s){return te.URI.file(s).fsPath}function getFileFsPath(s){return te.URI.parse(s).fsPath}var Lt=undefined&&undefined.__awaiter||function(s,l,u,f){function adopt(s){return s instanceof u?s:new u((function(l){l(s)}))}return new(u||(u=Promise))((function(u,h){function fulfilled(s){try{step(f.next(s))}catch(s){h(s)}}function rejected(s){try{step(f["throw"](s))}catch(s){h(s)}}function step(s){s.done?u(s.value):adopt(s.value).then(fulfilled,rejected)}step((f=f.apply(s,l||[])).next())}))};function isExcluded(s,l){return Lt(this,void 0,void 0,(function*(){let f=yield s.editor.getConfiguration(l.uri);let h=getFileFsPath(l.uri);for(let l of f.tailwindCSS.files.exclude){if(ce()(h,u.join(s.editor.folder,l))){return true}}return false}))}var jt=undefined&&undefined.__awaiter||function(s,l,u,f){function adopt(s){return s instanceof u?s:new u((function(l){l(s)}))}return new(u||(u=Promise))((function(u,h){function fulfilled(s){try{step(f.next(s))}catch(s){h(s)}}function rejected(s){try{step(f["throw"](s))}catch(s){h(s)}}function step(s){s.done?u(s.value):adopt(s.value).then(fulfilled,rejected)}step((f=f.apply(s,l||[])).next())}))};function diagnosticsProvider_provideDiagnostics(s,l){var u;return jt(this,void 0,void 0,(function*(){if(yield isExcluded(s,l)){diagnosticsProvider_clearDiagnostics(s,l)}else{(u=s.editor)===null||u===void 0?void 0:u.connection.sendDiagnostics({uri:l.uri,diagnostics:yield doValidate(s,l)})}}))}function diagnosticsProvider_clearDiagnostics(s,l){var u;(u=s.editor)===null||u===void 0?void 0:u.connection.sendDiagnostics({uri:l.uri,diagnostics:[]})}function diagnosticsProvider_clearAllDiagnostics(s){var l;(l=s.editor)===null||l===void 0?void 0:l.documents.all().forEach((l=>{diagnosticsProvider_clearDiagnostics(s,l)}))}function diagnosticsProvider_updateAllDiagnostics(s){var l;(l=s.editor)===null||l===void 0?void 0:l.documents.all().forEach((l=>{diagnosticsProvider_provideDiagnostics(s,l)}))}function rangesEqual(s,l){return s.start.line===l.start.line&&s.start.character===l.start.character&&s.end.line===l.end.line&&s.end.character===l.end.character}function removeRangesFromString(s,l){let u=ensureArray(l);let f=Ve()(s+"\n",{origin:0});let h=[];u.forEach((l=>{let u=f.toIndex(l.start.line,l.start.character);let g=f.toIndex(l.end.line,l.end.character);for(let l=u-1;l>=0;l--){if(/\s/.test(s.charAt(l))){u=l}else{break}}h.push({start:u,end:g})}));h.sort(((s,l)=>s.start-l.start));let g="";let v=0;h.forEach((l=>{g+=s.substring(v,l.start);v=l.end}));g+=s.substring(v);return g.trim()}var Ft=undefined&&undefined.__awaiter||function(s,l,u,f){function adopt(s){return s instanceof u?s:new u((function(l){l(s)}))}return new(u||(u=Promise))((function(u,h){function fulfilled(s){try{step(f.next(s))}catch(s){h(s)}}function rejected(s){try{step(f["throw"](s))}catch(s){h(s)}}function step(s){s.done?u(s.value):adopt(s.value).then(fulfilled,rejected)}step((f=f.apply(s,l||[])).next())}))};function provideCssConflictCodeActions(s,l,u){return Ft(this,void 0,void 0,(function*(){return[{title:`Delete ${joinWithAnd(u.otherClassNames.map((s=>`'${s.className}'`)))}`,kind:"quickfix",diagnostics:[u],edit:{changes:{[l.textDocument.uri]:[{range:u.className.classList.range,newText:removeRangesFromString(u.className.classList.classList,u.otherClassNames.map((s=>s.relativeRange)))}]}}}]}))}var qt=__nccwpck_require__(83e3);var $t=__nccwpck_require__.n(qt);var Bt=/\s*!important\s*$/i;var Ut={"box-flex":true,"box-flex-group":true,"column-count":true,flex:true,"flex-grow":true,"flex-positive":true,"flex-shrink":true,"flex-negative":true,"font-weight":true,"line-clamp":true,"line-height":true,opacity:true,order:true,orphans:true,"tab-size":true,widows:true,"z-index":true,zoom:true,"fill-opacity":true,"stroke-dashoffset":true,"stroke-opacity":true,"stroke-width":true};function dashify(s){return s.replace(/([A-Z])/g,"-$1").replace(/^ms-/,"-ms-").toLowerCase()}function decl(s,l,u,f){if(u===false||u===null)return;l=dashify(l);if(typeof u==="number"){if(u===0||Ut[l]){u=u.toString()}else{u=u.toString()+"px"}}if(l==="css-float")l="float";if(Bt.test(u)){u=u.replace(Bt,"");s.push(f.decl({prop:l,value:u,important:true}))}else{s.push(f.decl({prop:l,value:u}))}}function atRule(s,l,u,f){var h=f.atRule({name:l[1],params:l[3]||""});if(typeof u==="object"){h.nodes=[];parse(u,h,f)}s.push(h)}function parse(s,l,u){var f,h,g,v;for(f in s){if(s.hasOwnProperty(f)){h=s[f];if(h===null||typeof h==="undefined"){continue}else if(f[0]==="@"){var k=f.match(/@([^\s]+)(\s+([\w\W]*)\s*)?/);if(Array.isArray(h)){for(v=0;v<h.length;v++){atRule(l,k,h[v],u)}}else{atRule(l,k,h,u)}}else if(Array.isArray(h)){for(v=0;v<h.length;v++){decl(l,f,h[v],u)}}else if(typeof h==="object"){g=u.rule({selector:f});parse(h,g,u);l.push(g)}else{decl(l,f,h,u)}}}}function cssObjToAst(s,l){var u=l.root();parse(s,u,l);return u}var Wt=undefined&&undefined.__awaiter||function(s,l,u,f){function adopt(s){return s instanceof u?s:new u((function(l){l(s)}))}return new(u||(u=Promise))((function(u,h){function fulfilled(s){try{step(f.next(s))}catch(s){h(s)}}function rejected(s){try{step(f["throw"](s))}catch(s){h(s)}}function step(s){s.done?u(s.value):adopt(s.value).then(fulfilled,rejected)}step((f=f.apply(s,l||[])).next())}))};const zt=__nccwpck_require__(7639);function provideInvalidApplyCodeActions(s,l,u){return Wt(this,void 0,void 0,(function*(){let f=s.editor.documents.get(l.textDocument.uri);let h=f.getText();let g;let v=h;const{postcss:k}=s.modules;let O=[];let M=u.className.classList.classList.split(/\s+/).length;let q=u.className.className;let B=getClassNameParts(s,q);let Y=zt(s.classNames.classNames,B);if(Array.isArray(Y)){return[]}if(!isCssDoc(s,f)){let l=getLanguageBoundaries(s,f);if(!l)return[];g=l.css.find((s=>isWithinRange(u.range.start,s)));if(!g)return[];v=f.getText(g)}try{yield k.module([k.module.plugin("",((l={})=>l=>{l.walkRules((l=>{if(O.length)return false;l.walkAtRules("apply",(f=>{let h=postcssSourceToRange(f.source);if(g){h=absoluteRange(h,g)}if(!isWithinRange(u.range.start,h))return undefined;let k=classNameToAst(s,B,l.selector,u.className.classList.important);if(!k)return false;l.after(k.nodes);let q=l.next();if(!q)return false;if(M===1){f.remove()}else{O.push({range:u.className.classList.range,newText:removeRangesFromString(u.className.classList.classList,u.className.relativeRange)})}let Y=postcssSourceToRange(l.source);if(g){Y=absoluteRange(Y,g)}let te;let re=$t()(v);O.push({range:Y,newText:l.toString()+(q.raws.before||"\n\n")+q.toString().replace(/\n\s*\n/g,"\n").replace(/(@apply [^;\n]+)$/gm,"$1;").replace(/([^\s^]){$/gm,"$1 {").replace(/^\s+/gm,(s=>{if(typeof te==="undefined")te=s;return s.replace(new RegExp(te,"g"),re.indent)})).replace(/^(\s+)(.*?[^{}]\n)([^\s}])/gm,"$1$2$1$3")});return false}));return undefined}))}))]).process(v,{from:undefined})}catch(s){return[]}if(!O.length){return[]}return[{title:"Extract to new rule",kind:"quickfix",diagnostics:[u],edit:{changes:{[l.textDocument.uri]:O}}}]}))}function postcssSourceToRange(s){return{start:{line:s.start.line-1,character:s.start.column-1},end:{line:s.end.line-1,character:s.end.column}}}function classNameToAst(s,l,u,f=false){const h=l[l.length-1];const g=validateApply(s,[h]);if(g===null||g.isApplyable===false){return null}const v=getClassNameMeta(s,l);if(Array.isArray(v))return null;let k=v.context;let O=v.pseudo;const M=s.classNames.context;const q=[];for(let u=0;u<l.length-1;u++){let f=l[u];let h=M[f];if(!h)return null;if(s.screens.includes(f)){q.push(`@screen ${f}`);k=k.filter((s=>!h.includes(s)))}}q.push(...k);let B={};for(let s=1;s<=q.length;s++){we()(B,q.slice(0,s),{})}u=appendPseudosToSelector(u,O);if(u===null)return null;let Y={[u]:{[`@apply ${h}${f?" !important":""}`]:""}};if(q.length){we()(B,q,Y)}else{B=Y}return cssObjToAst(B,s.modules.postcss)}function appendPseudosToSelector(s,l){if(l.length===0)return s;let u=true;let f=Ee()((s=>{array_flatten(s.split((s=>true))).forEach((s=>{for(let f=s.nodes.length-1;f>=0;f--){if(s.nodes[f].type!=="pseudo"){break}else if(l.includes(s.nodes[f].value)){u=false;break}}if(u){l.forEach((l=>{s.append(Ee().pseudo({value:l}))}))}}))})).processSync(s);if(!u)return null;return f}function provideSuggestionCodeActions(s,l,u){return u.suggestions.map((s=>({title:`Replace with '${s}'`,kind:"quickfix",diagnostics:[u],edit:{changes:{[l.textDocument.uri]:[{range:u.range,newText:s}]}}})))}var Vt=undefined&&undefined.__awaiter||function(s,l,u,f){function adopt(s){return s instanceof u?s:new u((function(l){l(s)}))}return new(u||(u=Promise))((function(u,h){function fulfilled(s){try{step(f.next(s))}catch(s){h(s)}}function rejected(s){try{step(f["throw"](s))}catch(s){h(s)}}function step(s){s.done?u(s.value):adopt(s.value).then(fulfilled,rejected)}step((f=f.apply(s,l||[])).next())}))};function getDiagnosticsFromCodeActionParams(s,l,u){return Vt(this,void 0,void 0,(function*(){let f=s.editor.documents.get(l.textDocument.uri);let h=yield doValidate(s,f,u);return l.context.diagnostics.map((s=>h.find((l=>l.code===s.code&&l.message===s.message&&rangesEqual(l.range,s.range))))).filter(Boolean)}))}function doCodeActions(s,l){return Vt(this,void 0,void 0,(function*(){let u=yield getDiagnosticsFromCodeActionParams(s,l,l.context.diagnostics.map((s=>s.code)).filter(Boolean));return Promise.all(u.map((u=>{if(isInvalidApplyDiagnostic(u)){return provideInvalidApplyCodeActions(s,l,u)}if(isCssConflictDiagnostic(u)){return provideCssConflictCodeActions(s,l,u)}if(isInvalidConfigPathDiagnostic(u)||isInvalidTailwindDirectiveDiagnostic(u)||isInvalidScreenDiagnostic(u)||isInvalidVariantDiagnostic(u)||isRecommendedVariantOrderDiagnostic(u)){return provideSuggestionCodeActions(s,l,u)}return[]}))).then(array_flatten).then((s=>dedupeBy(s,(s=>JSON.stringify(s.edit)))))}))}var Ht=undefined&&undefined.__awaiter||function(s,l,u,f){function adopt(s){return s instanceof u?s:new u((function(l){l(s)}))}return new(u||(u=Promise))((function(u,h){function fulfilled(s){try{step(f.next(s))}catch(s){h(s)}}function rejected(s){try{step(f["throw"](s))}catch(s){h(s)}}function step(s){s.done?u(s.value):adopt(s.value).then(fulfilled,rejected)}step((f=f.apply(s,l||[])).next())}))};function getDocumentColors(s,l){return Ht(this,void 0,void 0,(function*(){let u=[];if(!s.enabled)return u;let f=yield s.editor.getConfiguration(l.uri);if(f.tailwindCSS.colorDecorators===false)return u;let h=yield findClassListsInDocument(s,l);h.forEach((l=>{let f=getClassNamesInClassList(l);f.forEach((l=>{var f;let h=getColor(s,l.className);if(h===null||typeof h==="string"||((f=h.alpha)!==null&&f!==void 0?f:1)===0){return}u.push({range:l.range,color:culoriColorToVscodeColor(h)})}))}));let g=findHelperFunctionsInDocument(s,l);g.forEach((l=>{var f;let h=stringToPath(l.value);let g=l.helper==="theme"?["theme"]:[];let v=ve()(s.config,[...g,...h]);let k=getColorFromValue(v);if(k&&typeof k!=="string"&&((f=k.alpha)!==null&&f!==void 0?f:1)!==0){u.push({range:l.valueRange,color:culoriColorToVscodeColor(k)})}}));return u}))}var Gt=__nccwpck_require__(88685);var Yt=__nccwpck_require__(89227);var Kt=__nccwpck_require__.n(Yt);var Qt=__nccwpck_require__(77410);var Jt=__nccwpck_require__.n(Qt);function getModuleDependencies(s){return _getModuleDependencies(s).map((({file:s})=>s)).filter((l=>l!==s))}function createModule(s){const l=g().readFileSync(s,"utf-8");const u=Jt()(l);return{file:s,requires:u}}function _getModuleDependencies(s){const l=createModule(s);const u=[l];for(const s of u){s.requires.filter((s=>s.startsWith("./")||s.startsWith("../"))).forEach((l=>{try{const h=f().dirname(s.file);const g=Kt().sync(l,{basedir:h});const v=createModule(g);u.push(v)}catch(s){}}))}return u}var Xt=__nccwpck_require__(42357);var Zt=__nccwpck_require__.n(Xt);var ir=__nccwpck_require__(53968);const ar=`/*\n1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)\n2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)\n*/\n\n*,\n::before,\n::after {\n box-sizing: border-box; /* 1 */\n border-width: 0; /* 2 */\n border-style: solid; /* 2 */\n border-color: currentColor; /* 2 */\n}\n\n::before,\n::after {\n --tw-content: '';\n}\n\n/*\n1. Use a consistent sensible line-height in all browsers.\n2. Prevent adjustments of font size after orientation changes in iOS.\n3. Use a more readable tab size.\n4. Use the user's configured \`sans\` font-family by default.\n*/\n\nhtml {\n line-height: 1.5; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n -moz-tab-size: 4; /* 3 */\n tab-size: 4; /* 3 */\n font-family: theme('fontFamily.sans', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"); /* 4 */\n}\n\n/*\n1. Remove the margin in all browsers.\n2. Inherit line-height from \`html\` so users can set them as a class directly on the \`html\` element.\n*/\n\nbody {\n margin: 0; /* 1 */\n line-height: inherit; /* 2 */\n}\n\n/*\n1. Add the correct height in Firefox.\n2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)\n3. Ensure horizontal rules are visible by default.\n*/\n\nhr {\n height: 0; /* 1 */\n color: inherit; /* 2 */\n border-top-width: 1px; /* 3 */\n}\n\n/*\nAdd the correct text decoration in Chrome, Edge, and Safari.\n*/\n\nabbr:where([title]) {\n text-decoration: underline dotted;\n}\n\n/*\nRemove the default font size and weight for headings.\n*/\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n font-size: inherit;\n font-weight: inherit;\n}\n\n/*\nReset links to optimize for opt-in styling instead of opt-out.\n*/\n\na {\n color: inherit;\n text-decoration: inherit;\n}\n\n/*\nAdd the correct font weight in Edge and Safari.\n*/\n\nb,\nstrong {\n font-weight: bolder;\n}\n\n/*\n1. Use the user's configured \`mono\` font family by default.\n2. Correct the odd \`em\` font sizing in all browsers.\n*/\n\ncode,\nkbd,\nsamp,\npre {\n font-family: theme('fontFamily.mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace); /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/*\nAdd the correct font size in all browsers.\n*/\n\nsmall {\n font-size: 80%;\n}\n\n/*\nPrevent \`sub\` and \`sup\` elements from affecting the line height in all browsers.\n*/\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/*\n1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)\n2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)\n3. Remove gaps between table borders by default.\n*/\n\ntable {\n text-indent: 0; /* 1 */\n border-color: inherit; /* 2 */\n border-collapse: collapse; /* 3 */\n}\n\n/*\n1. Change the font styles in all browsers.\n2. Remove the margin in Firefox and Safari.\n3. Remove default padding in all browsers.\n*/\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit; /* 1 */\n font-size: 100%; /* 1 */\n line-height: inherit; /* 1 */\n color: inherit; /* 1 */\n margin: 0; /* 2 */\n padding: 0; /* 3 */\n}\n\n/*\nRemove the inheritance of text transform in Edge and Firefox.\n*/\n\nbutton,\nselect {\n text-transform: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Remove default button styles.\n*/\n\nbutton,\n[type='button'],\n[type='reset'],\n[type='submit'] {\n -webkit-appearance: button; /* 1 */\n background-color: transparent; /* 2 */\n background-image: none; /* 2 */\n}\n\n/*\nUse the modern Firefox focus style for all focusable elements.\n*/\n\n:-moz-focusring {\n outline: auto;\n}\n\n/*\nRemove the additional \`:invalid\` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)\n*/\n\n:-moz-ui-invalid {\n box-shadow: none;\n}\n\n/*\nAdd the correct vertical alignment in Chrome and Firefox.\n*/\n\nprogress {\n vertical-align: baseline;\n}\n\n/*\nCorrect the cursor style of increment and decrement buttons in Safari.\n*/\n\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n\n/*\n1. Correct the odd appearance in Chrome and Safari.\n2. Correct the outline style in Safari.\n*/\n\n[type='search'] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/*\nRemove the inner padding in Chrome and Safari on macOS.\n*/\n\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Change font properties to \`inherit\` in Safari.\n*/\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/*\nAdd the correct display in Chrome and Safari.\n*/\n\nsummary {\n display: list-item;\n}\n\n/*\nRemoves the default spacing and border for appropriate elements.\n*/\n\nblockquote,\ndl,\ndd,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\nhr,\nfigure,\np,\npre {\n margin: 0;\n}\n\nfieldset {\n margin: 0;\n padding: 0;\n}\n\nlegend {\n padding: 0;\n}\n\nol,\nul,\nmenu {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n/*\nPrevent resizing textareas horizontally by default.\n*/\n\ntextarea {\n resize: vertical;\n}\n\n/*\n1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)\n2. Set the default placeholder color to the user's configured gray 400 color.\n*/\n\ninput::placeholder,\ntextarea::placeholder {\n opacity: 1; /* 1 */\n color: theme('colors.gray.400', #9ca3af); /* 2 */\n}\n\n/*\nSet the default cursor for buttons.\n*/\n\nbutton,\n[role="button"] {\n cursor: pointer;\n}\n\n/*\nMake sure disabled buttons don't get the pointer cursor.\n*/\n:disabled {\n cursor: default;\n}\n\n/*\n1. Make replaced elements \`display: block\` by default. (https://github.com/mozdevs/cssremedy/issues/14)\n2. Add \`vertical-align: middle\` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)\n This can trigger a poorly considered lint error in some tools but is included by design.\n*/\n\nimg,\nsvg,\nvideo,\ncanvas,\naudio,\niframe,\nembed,\nobject {\n display: block; /* 1 */\n vertical-align: middle; /* 2 */\n}\n\n/*\nConstrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)\n*/\n\nimg,\nvideo {\n max-width: 100%;\n height: auto;\n}\n\n/*\nEnsure the default browser behavior of the \`hidden\` attribute.\n*/\n\n[hidden] {\n display: none;\n}`;var lr=undefined&&undefined.__awaiter||function(s,l,u,f){function adopt(s){return s instanceof u?s:new u((function(l){l(s)}))}return new(u||(u=Promise))((function(u,h){function fulfilled(s){try{step(f.next(s))}catch(s){h(s)}}function rejected(s){try{step(f["throw"](s))}catch(s){h(s)}}function step(s){s.done?u(s.value):adopt(s.value).then(fulfilled,rejected)}step((f=f.apply(s,l||[])).next())}))};let ur=h.readFileSync;h.readFileSync=function(s,...l){if(s===u.join(__dirname,"css/preflight.css")){return ar}return ur(s,...l)};const hr="{tailwind,tailwind.config}.{js,cjs}";const _r="{package.json,package-lock.json,yarn.lock,pnpm-lock.yaml}";const Er=['"',"'","`"," ",".","[","!","/"];const Rr=["**/.git/**","**/.svn/**","**/.hg/**","**/node_modules/**"];const Ir=Object.keys(xt());const Lr=process.argv.length<=2?(0,B.createConnection)(process.stdin,process.stdout):(0,B.createConnection)();console.log=Lr.console.log.bind(Lr.console);console.error=Lr.console.error.bind(Lr.console);process.on("unhandledRejection",(s=>{Lr.console.error(formatError(`Unhandled exception`,s))}));function deletePropertyPath(s,l){if(typeof l==="string"){l=l.split(".")}for(let u=0;u<l.length-1;u++){s=s[l[u]];if(typeof s==="undefined"){return}}delete s[l.pop()]}function getConfigId(s,l){return JSON.stringify([s,...l].map((s=>[s,h.statSync(s).mtimeMs])))}function first(...s){for(let l=0;l<s.length;l++){let u=s[l];if(l===s.length-1){return u()}else{try{return u()}catch(s){}}}}function firstOptional(...s){for(let l=0;l<s.length;l++){let u=s[l];try{return u()}catch(s){}}}function getMode(s){if(typeof s.mode!=="undefined"){return s.mode}if(Array.isArray(s.presets)){for(let l=s.presets.length-1;l>=0;l--){let u=getMode(s.presets[l]);if(typeof u!=="undefined"){return u}}}}function deleteMode(s){delete s.mode;if(Array.isArray(s.presets)){for(let l of s.presets){deleteMode(l)}}}function createProjectService(s,f,g,v){var k,O,M,q;return lr(this,void 0,void 0,(function*(){const Y=[];const re=new Map;function getConfiguration(s){return lr(this,void 0,void 0,(function*(){if(re.has(s)){return re.get(s)}let[l,u]=yield Promise.all([f.workspace.getConfiguration({section:"editor",scopeUri:s}),f.workspace.getConfiguration({section:"tailwindCSS",scopeUri:s})]);let h={editor:l,tailwindCSS:u};re.set(s,h);return h}))}const ie={enabled:false,editor:{connection:f,folder:s,globalSettings:yield getConfiguration(),userLanguages:g.initializationOptions.userLanguages?g.initializationOptions.userLanguages:{},capabilities:{configuration:true,diagnosticRelatedInformation:true},documents:v.documents,getConfiguration:getConfiguration,getDocumentSymbols:s=>f.sendRequest("@/tailwindCSS/getDocumentSymbols",{uri:s})}};let ae;let ue;let pe=(O=(k=ie.editor.globalSettings.tailwindCSS.files)===null||k===void 0?void 0:k.exclude)!==null&&O!==void 0?O:Rr;function onFileEvents(s){let l=false;let u=false;for(let f of s){let s=se()(f.file);for(let l of pe){if(ce()(s,l,{dot:true})){continue}}let h=ce()(s,`**/${hr}`,{dot:true});let g=ce()(s,`**/${_r}`,{dot:true});let v=ie.dependencies&&ie.dependencies.includes(f.file);if(!h&&!g&&!v)continue;if(f.type===B.FileChangeType.Created){l=true;break}else if(f.type===B.FileChangeType.Changed){if(!ie.enabled||g){l=true;break}else{u=true}}else if(f.type===B.FileChangeType.Deleted){if(!ie.enabled||g||h){l=true;break}else{u=true}}}if(l){tryInit()}else if(u){tryRebuild()}}if((q=(M=g.capabilities.workspace)===null||M===void 0?void 0:M.didChangeWatchedFiles)===null||q===void 0?void 0:q.dynamicRegistration){f.onDidChangeWatchedFiles((({changes:s})=>{onFileEvents(s.map((({uri:s,type:l})=>({file:te.URI.parse(s).fsPath,type:l}))))}));f.client.register(B.DidChangeWatchedFilesNotification.type,{watchers:[{globPattern:`**/${hr}`},{globPattern:`**/${_r}`}]})}else if(ir.Fp()){let l={create:B.FileChangeType.Created,update:B.FileChangeType.Changed,delete:B.FileChangeType.Deleted};let f=yield ir.Ld(s,((s,u)=>{onFileEvents(u.map((s=>({file:s.path,type:l[s.type]}))))}),{ignore:pe.map((l=>u.resolve(s,l.replace(/^[*/]+/,"").replace(/[*/]+$/,""))))});Y.push({dispose(){f.unsubscribe()}})}else{let l=__nccwpck_require__(23002).Y;ue=l([`**/${hr}`,`**/${_r}`],{cwd:s,ignorePermissionErrors:true,ignoreInitial:true,ignored:pe,awaitWriteFinish:{stabilityThreshold:100,pollInterval:20}});yield new Promise((s=>{ue.on("ready",(()=>s()))}));ue.on("add",(s=>onFileEvents([{file:s,type:B.FileChangeType.Created}]))).on("change",(s=>onFileEvents([{file:s,type:B.FileChangeType.Changed}]))).on("unlink",(s=>onFileEvents([{file:s,type:B.FileChangeType.Deleted}])));Y.push({dispose(){ue.close()}})}function registerCapabilities(s=[]){if(supportsDynamicRegistration(f,g)){if(ae){ae.then((s=>s.dispose()))}let l=B.BulkRegistration.create();l.add(B.HoverRequest.type,{documentSelector:null});l.add(B.DocumentColorRequest.type,{documentSelector:null});l.add(B.CodeActionRequest.type,{documentSelector:null});l.add(B.CompletionRequest.type,{documentSelector:null,resolveProvider:true,triggerCharacters:[...Er,ie.separator]});if(s.length>0){l.add(B.DidChangeWatchedFilesNotification.type,{watchers:s.map((s=>({globPattern:s})))})}ae=f.client.register(l)}}function resetState(){diagnosticsProvider_clearAllDiagnostics(ie);Object.keys(ie).forEach((s=>{if(s!=="editor"&&s!=="dependencies"){delete ie[s]}}));ie.enabled=false;registerCapabilities(ie.dependencies)}function tryInit(){return lr(this,void 0,void 0,(function*(){try{yield init()}catch(s){resetState();showError(f,s)}}))}function tryRebuild(){return lr(this,void 0,void 0,(function*(){try{yield rebuild()}catch(s){resetState();showError(f,s)}}))}function clearRequireCache(){Object.keys(require.cache).forEach((s=>{if(!s.endsWith(".node")){delete require.cache[s]}}));Object.keys(l()._pathCache).forEach((s=>{delete l()._pathCache[s]}))}function init(){var l,f;return lr(this,void 0,void 0,(function*(){clearRequireCache();let[h]=(yield ne()([`**/${hr}`],{cwd:s,ignore:(f=(l=ie.editor.globalSettings.tailwindCSS.files)===null||l===void 0?void 0:l.exclude)!==null&&f!==void 0?f:Rr,onlyFiles:true,absolute:true,suppressErrors:true,dot:true,concurrency:Math.max(oe.cpus().length,1)})).sort(((s,l)=>s.split("/").length-l.split("/").length)).map(u.normalize);if(!h){throw new SilentError("No config file found.")}const g=le().sync((l=>{let f=u.join(l,".pnp.js");if(le().sync.exists(f)){return f}f=u.join(l,".pnp.cjs");if(le().sync.exists(f)){return f}if(l===s){return le().stop}}),{cwd:s});if(g){let s=require(g);s.setup();setPnpApi(s)}const v=getModuleDependencies(h);const k=getConfigId(h,v);const O=u.dirname(h);let M;let q;let B;let Y;let te;let re;let se;let ae;let ue;let ce={future:[],experimental:[]};let pe;try{const l=resolveFrom(O,"tailwindcss");const f=resolveFrom(O,"tailwindcss/package.json");const g=u.dirname(f);const v=resolveFrom(g,"postcss");const ne=resolveFrom(g,"postcss/package.json");const oe=u.dirname(ne);const le=resolveFrom(g,"postcss-selector-parser");re=require(ne).version;te=require(f).version;se=Object.keys(fe).map((s=>{try{return require(resolveFrom(O,`${s}/package.json`)).version}catch(s){return""}})).join(",");if(ie.enabled&&re===ie.modules.postcss.version&&te===ie.modules.tailwindcss.version&&se===ie.pluginVersions&&h===ie.configPath&&k===ie.configId){console.log("short circuit");return}console.log(`Found Tailwind CSS config file: ${h}`);q=require(v);B=require(le);console.log(`Loaded postcss v${re}: ${oe}`);M=require(l);console.log(`Loaded tailwindcss v${te}: ${g}`);try{ue=require(resolveFrom(g,"./resolveConfig.js"))}catch(s){try{const s=require(resolveFrom(g,"./lib/util/resolveConfig.js"));const l=require(resolveFrom(g,"./stubs/defaultConfig.stub.js"));ue=u=>s([u,l])}catch(s){try{const s=require(resolveFrom(g,"./lib/util/mergeConfigWithDefaults.js"));const l=require(resolveFrom(g,"./defaultConfig.js"));ue=u=>s(u,l())}catch(s){throw Error("Failed to load resolveConfig function.")}}}if(he().gte(te,"1.4.0")&&he().lte(te,"1.99.0")){const l=resolveFrom(g,"browserslist");ae=require(l)(undefined,{path:s})}if(he().gte(te,"1.99.0")){pe=firstOptional((()=>require(resolveFrom(g,"./lib/lib/substituteClassApplyAtRules"))))}else if(he().gte(te,"1.7.0")){pe=require(resolveFrom(g,"./lib/flagged/applyComplexClasses"))}try{ce=require(resolveFrom(g,"./lib/featureFlags.js")).default}catch(s){}let de=new Set;let ge=q.root();let ve={opts:{},messages:[]};let registerDependency=()=>{};try{let s=first((()=>{let s=require(resolveFrom(O,"tailwindcss/lib/lib/setupContextUtils")).createContext;Zt().strictEqual(typeof s,"function");return l=>s(l.config)}),(()=>{let s=require(resolveFrom(O,"tailwindcss/lib/jit/lib/setupContextUtils")).createContext;Zt().strictEqual(typeof s,"function");return l=>s(l.config)}),(()=>{let s=require(resolveFrom(O,"tailwindcss/lib/jit/lib/setupTrackingContext")).default;Zt().strictEqual(typeof s,"function");return l=>s(l.configPath,de,registerDependency)(ve,ge)}),(()=>{let s=require(resolveFrom(O,"tailwindcss/lib/jit/lib/setupContext")).default;Zt().strictEqual(typeof s,"function");return l=>s(l.configPath,de)(ve,ge)}));Y={generateRules:{module:first((()=>require(resolveFrom(O,"tailwindcss/lib/lib/generateRules")).generateRules),(()=>require(resolveFrom(O,"tailwindcss/lib/jit/lib/generateRules")).generateRules))},createContext:{module:s},expandApplyAtRules:{module:first((()=>require(resolveFrom(O,"tailwindcss/lib/lib/expandApplyAtRules")).default),(()=>require(resolveFrom(O,"tailwindcss/lib/jit/lib/expandApplyAtRules")).default))}}}catch(s){try{let s=require(resolveFrom(O,"tailwindcss/jit/lib/setupContext"));Y={generateRules:{module:require(resolveFrom(O,"tailwindcss/jit/lib/generateRules")).generateRules},createContext:{module:l=>s(l.configPath,de)(ve,ge)},expandApplyAtRules:{module:require(resolveFrom(O,"tailwindcss/jit/lib/expandApplyAtRules"))}}}catch(s){}}}catch(s){M=__nccwpck_require__(69351);ue=__nccwpck_require__(86410);q=__nccwpck_require__(87802);te=__nccwpck_require__(43581).version;re=__nccwpck_require__(54501).i8;B=__nccwpck_require__(75266);Y={generateRules:{module:__nccwpck_require__(27159).generateRules},createContext:{module:s=>__nccwpck_require__(82648).createContext(s.config)},expandApplyAtRules:{module:__nccwpck_require__(16388).default}};console.log("Failed to load workspace modules.");console.log(`Using bundled version of \`tailwindcss\`: v${te}`);console.log(`Using bundled version of \`postcss\`: v${re}`)}ie.configPath=h;ie.modules={tailwindcss:{version:te,module:M},postcss:{version:re,module:q},postcssSelectorParser:{module:B},resolveConfig:{module:ue},jit:Y};ie.browserslist=ae;ie.featureFlags=ce;ie.version=te;ie.pluginVersions=se;try{ie.corePlugins=Object.keys(require(resolveFrom(u.dirname(ie.configPath),"tailwindcss/lib/plugins/index.js")))}catch(s){}if(pe&&!pe.default.__patched){let s=pe.default;pe.default=(l,...u)=>{if(ie.jit){return ie.modules.jit.expandApplyAtRules.module(ie.jitContext)}let f=klona(l);f.separator=typeof ie.separator==="undefined"?":":ie.separator;let h=s(f,...u);return s=>lr(this,void 0,void 0,(function*(){s.walkRules((s=>{const l=s.selector.replace(/__TWSEP__(.*?)__TWSEP__/g,"$1");if(l!==s.selector){s.before(q.comment({text:"__ORIGINAL_SELECTOR__:"+s.selector}));s.selector=l}}));yield h(s);s.walkComments((s=>{if(s.text.startsWith("__ORIGINAL_SELECTOR__:")){s.next().selector=s.text.replace(/^__ORIGINAL_SELECTOR__:/,"");s.remove()}}));return s}))};pe.default.__patched=true}yield tryRebuild()}))}function rebuild(){return lr(this,void 0,void 0,(function*(){clearRequireCache();const{tailwindcss:s,postcss:l,resolveConfig:u}=ie.modules;const f=he().gte(s.version,"0.99.0")?["separator"]:["options","separator"];let g=[];let v;let k=he().gte(s.version,"2.99.0");let O=new Hook(h.realpathSync(ie.configPath),(s=>{v=klona(s);let l=ve()(s,f);if(typeof l!=="string"){l=":"}we()(s,f,`__TWSEP__${l}__TWSEP__`);s[k?"content":"purge"]=[];let u=getMode(s);deleteMode(s);let h=k||ie.modules.jit&&u==="jit";if(h){ie.jit=true;s.variants=[];if(Array.isArray(s.presets)){for(let l of s.presets){g.push(l.variants);l.variants=[]}}}else{ie.jit=false}if(ie.corePlugins){let l={};for(let s of ie.corePlugins){l[s]=true}s.corePlugins=l}if(Array.isArray(s.plugins)){s.plugins=s.plugins.map((s=>{if(s.__isOptionsFunction){s=s()}if(typeof s==="function"){let newPlugin=(...l)=>{if(!l[0].matchUtilities){l[0].matchUtilities=()=>{}}return s(...l)};newPlugin.__intellisense_cache_bust=Math.random();return newPlugin}if(s.handler){return Object.assign(Object.assign({},s),{handler:(...l)=>{if(!l[0].matchUtilities){l[0].matchUtilities=()=>{}}return s.handler(...l)},__intellisense_cache_bust:Math.random()})}return s}))}return s}));try{require(ie.configPath)}catch(s){O.unhook();throw s}if(!v){throw new SilentError(`Failed to load config file: ${ie.configPath}`)}try{ie.config=u.module(v);ie.separator=ie.config.separator;if(ie.jit){ie.jitContext=ie.modules.jit.createContext.module(ie);ie.jitContext.tailwindConfig.separator=ie.config.separator;if(ie.jitContext.getClassList){ie.classList=ie.jitContext.getClassList().filter((s=>s!=="*")).map((s=>[s,{color:getColor(ie,s)}]))}}else{delete ie.jitContext;delete ie.classList}}catch(s){O.unhook();throw s}let M;if(ie.classList){O.unhook()}else{try{M=yield l.module([s.module(ie.configPath)]).process([he().gte(s.version,"0.99.0")?"base":"preflight","components","utilities"].map((s=>`/*__tw_intellisense_layer_${s}__*/\n@tailwind ${s};`)).join("\n"),{from:undefined})}catch(s){throw s}finally{O.unhook()}}if(ie.dependencies){ue===null||ue===void 0?void 0:ue.unwatch(ie.dependencies)}ie.dependencies=getModuleDependencies(ie.configPath);ue===null||ue===void 0?void 0:ue.add(ie.dependencies);ie.configId=getConfigId(ie.configPath,ie.dependencies);ie.plugins=yield getPlugins(v);if(M){ie.classNames=yield Oe(M.root)}ie.variants=getVariants(ie);let q=ve()(ie.config,"theme.screens",ve()(ie.config,"screens",{}));ie.screens=server_isObject(q)?Object.keys(q):[];ie.enabled=true;diagnosticsProvider_updateAllDiagnostics(ie);registerCapabilities(ie.dependencies)}))}return{state:ie,tryInit:tryInit,dispose(){for(let{dispose:s}of Y){s()}},onUpdateSettings(s){var l,u,h,g;re.clear();let v=(u=(l=ie.editor.globalSettings.tailwindCSS.files)===null||l===void 0?void 0:l.exclude)!==null&&u!==void 0?u:Rr;ie.editor.globalSettings=s;if(!equal(v,(g=(h=s.tailwindCSS.files)===null||h===void 0?void 0:h.exclude)!==null&&g!==void 0?g:Rr)){tryInit()}else{if(ie.enabled){diagnosticsProvider_updateAllDiagnostics(ie)}if(s.editor.colorDecorators){registerCapabilities(ie.dependencies)}else{f.sendNotification("@/tailwindCSS/clearColors")}}},onHover(s){return lr(this,void 0,void 0,(function*(){if(!ie.enabled)return null;let l=v.getDocument(s.textDocument.uri);if(!l)return null;if(yield isExcluded(ie,l))return null;return doHover(ie,l,s.position)}))},onCompletion(s){return lr(this,void 0,void 0,(function*(){if(!ie.enabled)return null;let l=v.getDocument(s.textDocument.uri);if(!l)return null;if(yield isExcluded(ie,l))return null;return doComplete(ie,l,s.position,s.context)}))},onCompletionResolve(s){if(!ie.enabled)return null;return resolveCompletionItem(ie,s)},onCodeAction(s){if(!ie.enabled)return null;return doCodeActions(ie,s)},provideDiagnostics:(0,Gt.debounce)((s=>{if(!ie.enabled)return;diagnosticsProvider_provideDiagnostics(ie,s)}),500),onDocumentColor(s){return lr(this,void 0,void 0,(function*(){if(!ie.enabled)return[];let l=v.getDocument(s.textDocument.uri);if(!l)return[];if(yield isExcluded(ie,l))return null;return getDocumentColors(ie,l)}))},onColorPresentation(s){var l;return lr(this,void 0,void 0,(function*(){let u=v.getDocument(s.textDocument.uri);let f=u.getText(s.range);let h=f.match(new RegExp(`-\\[(${Ir.join("|")}|(?:(?:#|rgba?\\(|hsla?\\())[^\\]]+)\\]$`,"i"));if(h===null)return[];let g=h[1];let k=Ir.includes(g);let O={mode:"rgb",r:s.color.red,g:s.color.green,b:s.color.blue,alpha:s.color.alpha};let M=wt.formatHex8(O);if(!k&&(g.length===4||g.length===5)){let[,...s]=(l=M.match(/^#([a-f\d])\1([a-f\d])\2([a-f\d])\3(?:([a-f\d])\4)?$/i))!==null&&l!==void 0?l:[];if(s.length){M=`#${s.filter(Boolean).join("")}`}}if(M.length===5){M=M.replace(/f$/,"")}else if(M.length===9){M=M.replace(/ff$/,"")}let q=f.substr(0,h.index);return[M,wt.formatRgb(O).replace(/ /g,""),wt.formatHsl(O).replace(/ /g,"").replace(/\d+\.\d+(%?)/g,((s,l)=>`${Math.round(parseFloat(s))}${l}`))].map((s=>({label:`${q}-[${s}]`})))}))}}}))}function server_isObject(s){return Object.prototype.toString.call(s)==="[object Object]"}function runPlugin(s,l,u={}){let f=l.config;let h=l.modules.postcss.module;let g=l.browserslist;const v=g&&g.includes("ie 11")?"ie11":"relaxed";const k=typeof s==="function"?s:s.handler;try{k(Object.assign({addUtilities:()=>{},addComponents:()=>{},addBase:()=>{},matchUtilities:()=>{},addVariant:()=>{},e:s=>s,prefix:s=>s,theme:(s,l)=>ve()(f,`theme.${s}`,l),variants:()=>[],config:(s,l)=>ve()(f,s,l),corePlugins:s=>{if(Array.isArray(f.corePlugins)){return f.corePlugins.includes(s)}return ve()(f,`corePlugins.${s}`,true)},target:s=>{if(typeof f.target==="string"){return f.target==="browserslist"?v:f.target}const[l,u]=ve()(f,"target");const h=ve()(u,s,l);return h==="browserslist"?v:h},postcss:h},u))}catch(s){}}function server_isAtRule(s){return s.type==="atrule"}function getVariants(s){if(s.jit){function escape(l){let u=s.modules.postcssSelectorParser.module.className();u.value=l;return ve()(u,"raws.value",u.value)}let l={};Array.from(s.jitContext.variantMap).forEach((([u,f])=>{let h=(Array.isArray(f[0])?f:[f]).map((([s,l])=>l));let g="__variant_placeholder__";let v=s.modules.postcss.module.root({nodes:[s.modules.postcss.module.rule({selector:`.${escape(g)}`,nodes:[]})]});let k=s.modules.postcssSelectorParser.module((s=>s.first.filter((({type:s})=>s==="class")).pop().value));function getClassNameFromSelector(s){return k.transformSync(s)}function modifySelectors(s){v.each((l=>{if(l.type!=="rule"){return}l.selectors=l.selectors.map((l=>s({get className(){return getClassNameFromSelector(l)},selector:l})))}));return v}let O=[];for(let l of h){let f;let h=v.clone();let k=l({container:h,separator:s.separator,modifySelectors:modifySelectors,format:s=>{f=s.replace(/:merge\(([^)]+)\)/g,"$1")},wrap:s=>{if(server_isAtRule(s)){f=`@${s.name} ${s.params}`}}});if(!f){f=k}if(f){O.push(f);continue}h.walkDecls((s=>{s.remove()}));f=h.toString().replace(`.${escape(`${u}:${g}`)}`,"&").replace(/(?<!\\)[{}]/g,"").replace(/\s*\n\s*/g," ").trim();if(!f.includes(g)){O.push(f)}}l[u]=O.join(", ")||null}));return l}let l=s.config;let u=s.modules.tailwindcss.version;let f=["responsive","hover"];he().gte(u,"0.3.0")&&f.push("focus","group-hover");he().gte(u,"0.5.0")&&f.push("active");he().gte(u,"0.7.0")&&f.push("focus-within");he().gte(u,"1.0.0-beta.1")&&f.push("default");he().gte(u,"1.1.0")&&f.push("first","last","odd","even","disabled","visited");he().gte(u,"1.3.0")&&f.push("group-focus");he().gte(u,"1.5.0")&&f.push("focus-visible","checked");he().gte(u,"1.6.0")&&f.push("motion-safe","motion-reduce");he().gte(u,"2.0.0-alpha.1")&&f.push("dark");let h=Array.isArray(l.plugins)?l.plugins:[];h.forEach((l=>{runPlugin(l,s,{addVariant:s=>{f.push(s)}})}));return f.reduce(((s,l)=>Object.assign(Object.assign({},s),{[l]:null})),{})}function getPlugins(s){return lr(this,void 0,void 0,(function*(){let l=s.plugins;if(!Array.isArray(l)){return[]}return Promise.all(l.map((s=>lr(this,void 0,void 0,(function*(){let l=s.config;if(!server_isObject(l)){l={}}let f={theme:server_isObject(l.theme)?Object.keys(l.theme):[],variants:server_isObject(l.variants)?Object.keys(l.variants):[]};const h=s.handler||s;const g=typeof h.name==="string"&&h.name!=="handler"&&h.name!==""?h.name:null;try{h()}catch(s){const l=ke.parse(s);if(l.length===0){return{name:g}}const h=l[0].fileName;const v=u.dirname(h);let k=Se().sync({cwd:v});if(!k){return{name:g}}let O;try{O=require(O)}catch(s){return{name:g}}if(O.name&&u.resolve(v,O.main||"index.js")===h){return{name:O.name,homepage:O.homepage,contributes:f}}}return{name:g}})))))}))}class TW{constructor(s){this.connection=s;this.initialized=false;this.documentService=new DocumentService(this.connection);this.workspaces=new Map;this.projects=new Map}init(){var s;return lr(this,void 0,void 0,(function*(){if(this.initialized)return;this.initialized=true;const s=false?0:this.initializeParams.rootPath?[{name:"",fsPath:normalizeFileNameToFsPath(this.initializeParams.rootPath)}]:[];if(s.length===0){console.error("No workspace folders found, not initializing.");return}yield Promise.all(s.map((s=>lr(this,void 0,void 0,(function*(){return this.addProject(s.fsPath,this.initializeParams)})))));this.setupLSPHandlers();this.connection.onDidChangeConfiguration((({settings:s})=>lr(this,void 0,void 0,(function*(){for(let[,l]of this.projects){l.onUpdateSettings(s)}}))));this.connection.onShutdown((()=>{this.dispose()}));this.documentService.onDidChangeContent((s=>{const l=Array.from(this.projects.values())[0];l===null||l===void 0?void 0:l.provideDiagnostics(s.document)}))}))}addProject(s,l){return lr(this,void 0,void 0,(function*(){if(this.projects.has(s)){yield this.projects.get(s).tryInit()}else{const u=yield createProjectService(s,this.connection,l,this.documentService);yield u.tryInit();this.projects.set(s,u)}}))}setupLSPHandlers(){this.connection.onHover(this.onHover.bind(this));this.connection.onCompletion(this.onCompletion.bind(this));this.connection.onCompletionResolve(this.onCompletionResolve.bind(this));this.connection.onDocumentColor(this.onDocumentColor.bind(this));this.connection.onColorPresentation(this.onColorPresentation.bind(this));this.connection.onCodeAction(this.onCodeAction.bind(this))}onDocumentColor(s){var l;return lr(this,void 0,void 0,(function*(){const u=Array.from(this.projects.values())[0];return(l=u===null||u===void 0?void 0:u.onDocumentColor(s))!==null&&l!==void 0?l:[]}))}onColorPresentation(s){var l;return lr(this,void 0,void 0,(function*(){const u=Array.from(this.projects.values())[0];return(l=u===null||u===void 0?void 0:u.onColorPresentation(s))!==null&&l!==void 0?l:[]}))}onHover(s){var l;return lr(this,void 0,void 0,(function*(){const u=Array.from(this.projects.values())[0];return(l=u===null||u===void 0?void 0:u.onHover(s))!==null&&l!==void 0?l:null}))}onCompletion(s){var l;return lr(this,void 0,void 0,(function*(){const u=Array.from(this.projects.values())[0];return(l=u===null||u===void 0?void 0:u.onCompletion(s))!==null&&l!==void 0?l:null}))}onCompletionResolve(s){var l;return lr(this,void 0,void 0,(function*(){const u=Array.from(this.projects.values())[0];return(l=u===null||u===void 0?void 0:u.onCompletionResolve(s))!==null&&l!==void 0?l:null}))}onCodeAction(s){var l;const u=Array.from(this.projects.values())[0];return(l=u===null||u===void 0?void 0:u.onCodeAction(s))!==null&&l!==void 0?l:null}listen(){this.connection.listen()}dispose(){for(let[,s]of this.projects){s.dispose()}}}class DocumentService{constructor(s){this.documents=new B.TextDocuments(Y.TextDocument);this.documents.listen(s)}getDocument(s){return this.documents.get(s)}getAllDocuments(){return this.documents.all()}get onDidChangeContent(){return this.documents.onDidChangeContent}get onDidClose(){return this.documents.onDidClose}}function supportsDynamicRegistration(s,l){return s.onInitialized&&l.capabilities.textDocument.hover.dynamicRegistration&&l.capabilities.textDocument.colorProvider.dynamicRegistration&&l.capabilities.textDocument.codeAction.dynamicRegistration&&l.capabilities.textDocument.completion.dynamicRegistration}const jr=new TW(Lr);Lr.onInitialize((s=>lr(void 0,void 0,void 0,(function*(){jr.initializeParams=s;if(supportsDynamicRegistration(Lr,s)){return{capabilities:{textDocumentSync:B.TextDocumentSyncKind.Full}}}jr.init();return{capabilities:{textDocumentSync:B.TextDocumentSyncKind.Full,hoverProvider:true,colorProvider:true,codeActionProvider:true,completionProvider:{resolveProvider:true,triggerCharacters:[...Er,":"]}}}}))));Lr.onInitialized((()=>lr(void 0,void 0,void 0,(function*(){yield jr.init()}))));jr.listen()})();module.exports=__webpack_exports__})();
57
+ */const f=u(86110);const toRegexRange=(s,l,u)=>{if(f(s)===false){throw new TypeError("toRegexRange: expected the first argument to be a number")}if(l===void 0||s===l){return String(s)}if(f(l)===false){throw new TypeError("toRegexRange: expected the second argument to be a number.")}let h={relaxZeros:true,...u};if(typeof h.strictZeros==="boolean"){h.relaxZeros=h.strictZeros===false}let g=String(h.relaxZeros);let v=String(h.shorthand);let k=String(h.capture);let O=String(h.wrap);let M=s+":"+l+"="+g+v+k+O;if(toRegexRange.cache.hasOwnProperty(M)){return toRegexRange.cache[M].result}let q=Math.min(s,l);let B=Math.max(s,l);if(Math.abs(q-B)===1){let u=s+"|"+l;if(h.capture){return`(${u})`}if(h.wrap===false){return u}return`(?:${u})`}let Y=hasPadding(s)||hasPadding(l);let te={min:s,max:l,a:q,b:B};let re=[];let ne=[];if(Y){te.isPadded=Y;te.maxLen=String(te.max).length}if(q<0){let s=B<0?Math.abs(B):1;ne=splitToPatterns(s,Math.abs(q),te,h);q=te.a=0}if(B>=0){re=splitToPatterns(q,B,te,h)}te.negatives=ne;te.positives=re;te.result=collatePatterns(ne,re,h);if(h.capture===true){te.result=`(${te.result})`}else if(h.wrap!==false&&re.length+ne.length>1){te.result=`(?:${te.result})`}toRegexRange.cache[M]=te;return te.result};function collatePatterns(s,l,u){let f=filterPatterns(s,l,"-",false,u)||[];let h=filterPatterns(l,s,"",false,u)||[];let g=filterPatterns(s,l,"-?",true,u)||[];let v=f.concat(g).concat(h);return v.join("|")}function splitToRanges(s,l){let u=1;let f=1;let h=countNines(s,u);let g=new Set([l]);while(s<=h&&h<=l){g.add(h);u+=1;h=countNines(s,u)}h=countZeros(l+1,f)-1;while(s<h&&h<=l){g.add(h);f+=1;h=countZeros(l+1,f)-1}g=[...g];g.sort(compare);return g}function rangeToPattern(s,l,u){if(s===l){return{pattern:s,count:[],digits:0}}let f=zip(s,l);let h=f.length;let g="";let v=0;for(let s=0;s<h;s++){let[l,h]=f[s];if(l===h){g+=l}else if(l!=="0"||h!=="9"){g+=toCharacterClass(l,h,u)}else{v++}}if(v){g+=u.shorthand===true?"\\d":"[0-9]"}return{pattern:g,count:[v],digits:h}}function splitToPatterns(s,l,u,f){let h=splitToRanges(s,l);let g=[];let v=s;let k;for(let s=0;s<h.length;s++){let l=h[s];let O=rangeToPattern(String(v),String(l),f);let M="";if(!u.isPadded&&k&&k.pattern===O.pattern){if(k.count.length>1){k.count.pop()}k.count.push(O.count[0]);k.string=k.pattern+toQuantifier(k.count);v=l+1;continue}if(u.isPadded){M=padZeros(l,u,f)}O.string=M+O.pattern+toQuantifier(O.count);g.push(O);v=l+1;k=O}return g}function filterPatterns(s,l,u,f,h){let g=[];for(let h of s){let{string:s}=h;if(!f&&!contains(l,"string",s)){g.push(u+s)}if(f&&contains(l,"string",s)){g.push(u+s)}}return g}function zip(s,l){let u=[];for(let f=0;f<s.length;f++)u.push([s[f],l[f]]);return u}function compare(s,l){return s>l?1:l>s?-1:0}function contains(s,l,u){return s.some((s=>s[l]===u))}function countNines(s,l){return Number(String(s).slice(0,-l)+"9".repeat(l))}function countZeros(s,l){return s-s%Math.pow(10,l)}function toQuantifier(s){let[l=0,u=""]=s;if(u||l>1){return`{${l+(u?","+u:"")}}`}return""}function toCharacterClass(s,l,u){return`[${s}${l-s===1?"":"-"}${l}]`}function hasPadding(s){return/^-?(0+)\d/.test(s)}function padZeros(s,l,u){if(!l.isPadded){return s}let f=Math.abs(l.maxLen-String(s).length);let h=u.relaxZeros!==false;switch(f){case 0:return"";case 1:return h?"0?":"0";case 2:return h?"0{0,2}":"00";default:{return h?`0{0,${f}}`:`0{${f}}`}}}toRegexRange.cache={};toRegexRange.clearCache=()=>toRegexRange.cache={};s.exports=toRegexRange},86258:s=>{"use strict";function unique_pred(s,l){var u=1,f=s.length,h=s[0],g=s[0];for(var v=1;v<f;++v){g=h;h=s[v];if(l(h,g)){if(v===u){u++;continue}s[u++]=h}}s.length=u;return s}function unique_eq(s){var l=1,u=s.length,f=s[0],h=s[0];for(var g=1;g<u;++g,h=f){h=f;f=s[g];if(f!==h){if(g===l){l++;continue}s[l++]=f}}s.length=l;return s}function unique(s,l,u){if(s.length===0){return s}if(l){if(!u){s.sort(l)}return unique_pred(s,l)}if(!u){s.sort()}return unique_eq(s)}s.exports=unique},49209:(s,l,u)=>{s.exports=u(31669).deprecate},70542:(s,l,u)=>{s.exports=function(s,l){"use strict";var u={};function __nested_webpack_require_51__(l){if(u[l]){return u[l].exports}var f=u[l]={i:l,l:false,exports:{}};s[l].call(f.exports,f,f.exports,__nested_webpack_require_51__);f.l=true;return f.exports}__nested_webpack_require_51__.ab=__dirname+"/";function startup(){return __nested_webpack_require_51__(104)}l(__nested_webpack_require_51__);return startup()}({34:function(s,l){(function(s,u){true?u(l):0})(this,(function(s){"use strict";var l={indent:"\t",tagCase:"",attributeCase:"",attributeQuotes:"double",format:true,formatSkip:["html"],formatForce:["body"],inlineBreak:3,compactBooleanAttributes:false,booleanAttributes:["contenteditable","seamless","async","autofocus","autoplay","checked","controls","defer","disabled","formnovalidate","hidden","ismap","loop","multiple","muted","novalidate","readonly","required","reversed","selected","typemustmatch"],selfClosingStyle:"html",inlineElements:["a","abbr","acronym","applet","b","basefont","bdo","big","br","button","cite","code","del","dfn","em","font","i","iframe","img","input","ins","kbd","label","map","object","q","s","samp","select","small","span","strike","strong","sub","sup","textarea","tt","u","var"]};class Profile{constructor(s){this.options=Object.assign({},l,s);this.quoteChar=this.options.attributeQuotes==="single"?"'":'"'}get(s){return this.options[s]}quote(s){return`${this.quoteChar}${s!=null?s:""}${this.quoteChar}`}name(s){return strcase(s,this.options.tagCase)}attribute(s){return strcase(s,this.options.attributeCase)}isBooleanAttribute(s){return s.options.boolean||this.get("booleanAttributes").indexOf((s.name||"").toLowerCase())!==-1}selfClose(){switch(this.options.selfClosingStyle){case"xhtml":return" /";case"xml":return"/";default:return""}}indent(s){s=s||0;let l="";while(s--){l+=this.options.indent}return l}isInline(s){if(typeof s==="string"){return this.get("inlineElements").indexOf(s.toLowerCase())!==-1}return s.name!=null?this.isInline(s.name):s.isTextOnly}field(s,l){return this.options.field(s,l)}}function strcase(s,l){if(l){s=l==="upper"?s.toUpperCase():s.toLowerCase()}return s}class Snippet{constructor(s,l){this.key=s;this.value=l}}class SnippetsStorage{constructor(s){this._string=new Map;this._regexp=new Map;this._disabled=false;this.load(s)}get disabled(){return this._disabled}disable(){this._disabled=true}enable(){this._disabled=false}set(s,l){if(typeof s==="string"){s.split("|").forEach((s=>this._string.set(s,new Snippet(s,l))))}else if(s instanceof RegExp){this._regexp.set(s,new Snippet(s,l))}else{throw new Error("Unknow snippet key: "+s)}return this}get(s){if(this.disabled){return undefined}if(this._string.has(s)){return this._string.get(s)}const l=Array.from(this._regexp.keys());for(let u=0,f=l.length;u<f;u++){if(l[u].test(s)){return this._regexp.get(l[u])}}}load(s){this.reset();if(s instanceof Map){s.forEach(((s,l)=>this.set(l,s)))}else if(s&&typeof s==="object"){Object.keys(s).forEach((l=>this.set(l,s[l])))}}reset(){this._string.clear();this._regexp.clear()}values(){if(this.disabled){return[]}const s=Array.from(this._string.values());const l=Array.from(this._regexp.values());return s.concat(l)}}class SnippetsRegistry{constructor(s){this._registry=[];if(Array.isArray(s)){s.forEach(((s,l)=>this.add(l,s)))}else if(typeof s==="object"){this.add(s)}}get(s){for(let l=0;l<this._registry.length;l++){const u=this._registry[l];if(u.level===s){return u.store}}}add(s,l){if(s!=null&&typeof s==="object"){l=s;s=0}const u=new SnippetsStorage(l);this.remove(s);this._registry.push({level:s,store:u});this._registry.sort(((s,l)=>l.level-s.level));return u}remove(s){this._registry=this._registry.filter((l=>l.level!==s&&l.store!==s))}resolve(s){for(let l=0;l<this._registry.length;l++){const u=this._registry[l].store.get(s);if(u){return u}}}all(s){s=s||{};const l=new Map;const n=u=>{const f=u.key instanceof RegExp?"regexp":"string";if((!s.type||s.type===f)&&!l.has(u.key)){l.set(u.key,u)}};this._registry.forEach((s=>{s.store.values().forEach(n)}));return Array.from(l.values())}clear(){this._registry.length=0}}const u=39;const f=34;const h={escape:92,throws:false};var o=function(s,l){l=l?Object.assign({},h,l):h;const u=s.pos;const f=s.peek();if(s.eat(isQuote)){while(!s.eof()){switch(s.next()){case f:s.start=u;return true;case l.escape:s.next();break}}s.pos=u;if(l.throws){throw s.error("Unable to consume quoted string")}}return false};function isQuote(s){return s===u||s===f}function isNumber(s){return s>47&&s<58}function isAlpha(s,l,u){l=l||65;u=u||90;s&=~32;return s>=l&&s<=u}function isAlphaNumeric(s){return isNumber(s)||isAlpha(s)}function isWhiteSpace(s){return s===32||s===9||s===160}function isSpace(s){return isWhiteSpace(s)||s===10||s===13}class Attribute{constructor(s,l,u){this.name=s;this.value=l!=null?l:null;this.options=u||{}}clone(){return new Attribute(this.name,this.value,Object.assign({},this.options))}valueOf(){return`${this.name}="${this.value}"`}}class Node{constructor(s,l){this.name=s||null;this.value=null;this.repeat=null;this.selfClosing=false;this.children=[];this.parent=null;this.next=null;this.previous=null;this._attributes=[];if(Array.isArray(l)){l.forEach((s=>this.setAttribute(s)))}}get attributes(){return this._attributes}get attributesMap(){return this.attributes.reduce(((s,l)=>{s[l.name]=l.options.boolean?l.name:l.value;return s}),{})}get isGroup(){return!this.name&&!this.value&&!this._attributes.length}get isTextOnly(){return!this.name&&!!this.value&&!this._attributes.length}get firstChild(){return this.children[0]}get lastChild(){return this.children[this.children.length-1]}get childIndex(){return this.parent?this.parent.children.indexOf(this):-1}get nextSibling(){return this.next}get previousSibling(){return this.previous}get classList(){const s=this.getAttribute("class");return s&&s.value?s.value.split(/\s+/g).filter(uniqueClass):[]}create(s,l){return new Node(s,l)}setAttribute(s,l){const u=createAttribute(s,l);const f=this.getAttribute(s);if(f){this.replaceAttribute(f,u)}else{this._attributes.push(u)}}hasAttribute(s){return!!this.getAttribute(s)}getAttribute(s){if(typeof s==="object"){s=s.name}for(var l=0;l<this._attributes.length;l++){const u=this._attributes[l];if(u.name===s){return u}}}replaceAttribute(s,l,u){if(typeof s==="string"){s=this.getAttribute(s)}const f=this._attributes.indexOf(s);if(f!==-1){this._attributes.splice(f,1,createAttribute(l,u))}}removeAttribute(s){if(typeof s==="string"){s=this.getAttribute(s)}const l=this._attributes.indexOf(s);if(l!==-1){this._attributes.splice(l,1)}}clearAttributes(){this._attributes.length=0}addClass(s){s=normalize(s);if(!this.hasAttribute("class")){this.setAttribute("class",s)}else if(s&&!this.hasClass(s)){this.setAttribute("class",this.classList.concat(s).join(" "))}}hasClass(s){return this.classList.indexOf(normalize(s))!==-1}removeClass(s){s=normalize(s);if(this.hasClass(s)){this.setAttribute("class",this.classList.filter((l=>l!==s)).join(" "))}}appendChild(s){this.insertAt(s,this.children.length)}insertBefore(s,l){this.insertAt(s,this.children.indexOf(l))}insertAt(s,l){if(l<0||l>this.children.length){throw new Error("Unable to insert node: position is out of child list range")}const u=this.children[l-1];const f=this.children[l];s.remove();s.parent=this;this.children.splice(l,0,s);if(u){s.previous=u;u.next=s}if(f){s.next=f;f.previous=s}}removeChild(s){const l=this.children.indexOf(s);if(l!==-1){this.children.splice(l,1);if(s.previous){s.previous.next=s.next}if(s.next){s.next.previous=s.previous}s.parent=s.next=s.previous=null}}remove(){if(this.parent){this.parent.removeChild(this)}}clone(s){const l=new Node(this.name);l.value=this.value;l.selfClosing=this.selfClosing;if(this.repeat){l.repeat=Object.assign({},this.repeat)}this._attributes.forEach((s=>l.setAttribute(s.clone())));if(s){this.children.forEach((s=>l.appendChild(s.clone(true))))}return l}walk(s,l){l=l||0;let u=this.firstChild;while(u){const f=u.next;if(s(u,l)===false||u.walk(s,l+1)===false){return false}u=f}}use(s){const l=[this];for(var u=1;u<arguments.length;u++){l.push(arguments[u])}s.apply(null,l);return this}toString(){const s=this.attributes.map((s=>{s=this.getAttribute(s.name);const l=s.options;let u=`${l&&l.implied?"!":""}${s.name||""}`;if(l&&l.boolean){u+="."}else if(s.value!=null){u+=`="${s.value}"`}return u}));let l=`${this.name||""}`;if(s.length){l+=`[${s.join(" ")}]`}if(this.value!=null){l+=`{${this.value}}`}if(this.selfClosing){l+="/"}if(this.repeat){l+=`*${this.repeat.count?this.repeat.count:""}`;if(this.repeat.value!=null){l+=`@${this.repeat.value}`}}return l}}function createAttribute(s,l){if(s instanceof Attribute){return s}if(typeof s==="string"){return new Attribute(s,l)}if(s&&typeof s==="object"){return new Attribute(s.name,s.value,s.options)}}function normalize(s){return String(s).trim()}function uniqueClass(s,l,u){return s&&u.indexOf(s)===l}class StreamReader{constructor(s,l,u){if(u==null&&typeof s==="string"){u=s.length}this.string=s;this.pos=this.start=l||0;this.end=u}eof(){return this.pos>=this.end}limit(s,l){return new this.constructor(this.string,s,l)}peek(){return this.string.charCodeAt(this.pos)}next(){if(this.pos<this.string.length){return this.string.charCodeAt(this.pos++)}}eat(s){const l=this.peek();const u=typeof s==="function"?s(l):l===s;if(u){this.next()}return u}eatWhile(s){const l=this.pos;while(!this.eof()&&this.eat(s)){}return this.pos!==l}backUp(s){this.pos-=s||1}current(){return this.substring(this.start,this.pos)}substring(s,l){return this.string.slice(s,l)}error(s){const l=new Error(`${s} at char ${this.pos+1}`);l.originalMessage=s;l.pos=this.pos;l.string=this.string;return l}}const g=42;function consumeRepeat(s){if(s.eat(g)){s.start=s.pos;return{count:s.eatWhile(isNumber)?+s.current():null}}}const v={throws:true};function consumeQuoted(s){if(o(s,v)){return s.current().slice(1,-1)}}const k=123;const O=125;const M=92;function consumeText(s){const l=s.pos;if(s.eat(k)){let u=1,f;let h="";let g=s.pos;while(!s.eof()){f=s.next();if(f===k){u++}else if(f===O){u--;if(!u){s.start=l;return h+s.substring(g,s.pos-1)}}else if(f===M){f=s.next();if(f===k||f===O){h+=s.substring(g,s.pos-2)+String.fromCharCode(f);g=s.pos}}}s.pos=l;throw s.error(`Unable to find closing ${String.fromCharCode(O)} for text start`)}return null}const q=33;const B=46;const Y=61;const te=91;const re=93;const ne=/^\!?[\w\-:\$@]+\.?$|^\!?\[[\w\-:\$@]+\]\.?$/;function consumeAttributes(s){if(!s.eat(te)){return null}const l=[];let u,f;while(!s.eof()){s.eatWhile(isWhiteSpace);if(s.eat(re)){return l}else if((u=consumeQuoted(s))!=null){l.push({name:null,value:u})}else if(eatUnquoted(s)){u=s.current();if(u[0]==="["&&s.peek()===re){s.next();u=s.current()}if(!ne.test(u)){l.push({name:null,value:u})}else{f=parseAttributeName(u);l.push(f);if(s.eat(Y)){if((u=consumeQuoted(s))!=null){f.value=u}else if((u=consumeText(s))!=null){f.value=u;f.options={before:"{",after:"}"}}else if(eatUnquoted(s)){f.value=s.current()}}}}else{throw s.error("Expected attribute name")}}throw s.error('Expected closing "]" brace')}function parseAttributeName(s){const l={};if(s.charCodeAt(0)===q){s=s.slice(1);l.implied=true}if(s.charCodeAt(s.length-1)===B){s=s.slice(0,s.length-1);l.boolean=true}const u={name:s};if(Object.keys(l).length){u.options=l}return u}function eatUnquoted(s){const l=s.pos;if(s.eatWhile(isUnquoted)){s.start=l;return true}}function isUnquoted(s){return!isSpace(s)&&!isQuote(s)&&s!==re&&s!==Y}const ie=35;const se=46;const oe=47;function consumeElement(s){const l=s.pos;const u=new Node(eatName(s));let f;while(!s.eof()){if(s.eat(se)){u.addClass(eatName(s))}else if(s.eat(ie)){u.setAttribute("id",eatName(s))}else if(s.eat(oe)){if(u.isGroup){s.backUp(1);throw s.error("Unexpected self-closing indicator")}u.selfClosing=true;if(f=consumeRepeat(s)){u.repeat=f}break}else if(f=consumeAttributes(s)){for(let s=0,l=f.length;s<l;s++){u.setAttribute(f[s])}}else if((f=consumeText(s))!==null){u.value=f}else if(f=consumeRepeat(s)){u.repeat=f}else{break}}if(l===s.pos){throw s.error(`Unable to consume abbreviation node, unexpected ${s.peek()}`)}return u}function eatName(s){s.start=s.pos;s.eatWhile(isName);return s.current()}function isName(s){return isAlphaNumeric(s)||s===45||s===58||s===36||s===64||s===33||s===95||s===37}const ae=40;const le=41;const ue=43;const ce=62;const fe=94;function parse(s){const l=new StreamReader(s.trim());const u=new Node;let f=u,h=[],g;while(!l.eof()){g=l.peek();if(g===ae){const s=new Node;h.push([s,f,l.pos]);f=s;l.next();continue}else if(g===le){const s=h.pop();if(!s){throw l.error('Unexpected ")" group end')}const u=s[0];f=s[1];l.next();if(u.repeat=consumeRepeat(l)){f.appendChild(u)}else{while(u.firstChild){f.appendChild(u.firstChild)}}l.eat(ue);continue}const s=consumeElement(l);f.appendChild(s);if(l.eof()){break}switch(l.peek()){case ue:l.next();continue;case ce:l.next();f=s;continue;case fe:while(l.eat(fe)){f=f.parent||f}continue}}if(h.length){l.pos=h.pop()[2];throw l.error("Expected group close")}return u}function index(s){const l=parse(s);l.walk(unroll);return l}function unroll(s){if(!s.repeat||!s.repeat.count){return}const l=s.parent;let u=l.children.indexOf(s);for(let f=0;f<s.repeat.count;f++){const h=s.clone(true);h.repeat.value=f+1;h.walk(unroll);if(h.isGroup){while(h.children.length>0){h.firstChild.repeat=h.repeat;l.insertAt(h.firstChild,u++)}}else{l.insertAt(h,u++)}}s.parent.removeChild(s)}var A=function(s,l){s.walk((s=>resolveNode(s,l)));return s};function resolveNode(s,l){const u=new Set;const r=s=>{const f=l.resolve(s.name);if(!f||u.has(f)){return}if(typeof f.value==="function"){return f.value(s,l,r)}const h=index(f.value);u.add(f);h.walk(r);u.delete(f);const g=findDeepestNode(h);merge(g,s);while(h.firstChild){s.parent.insertBefore(h.firstChild,s)}g.parent.insertBefore(s,g);g.remove()};r(s)}function merge(s,l){l.name=s.name;if(s.selfClosing){l.selfClosing=true}if(s.value!=null){l.value=s.value}if(s.repeat){l.repeat=Object.assign({},s.repeat)}return mergeAttributes(s,l)}function mergeAttributes(s,l){mergeClassNames(s,l);const u=new Map;let f=s.attributes;for(let s=0;s<f.length;s++){u.set(f[s].name,f[s].clone())}f=l.attributes.slice();for(let s=0,h,g;s<f.length;s++){h=f[s];if(u.has(h.name)){g=u.get(h.name);g.value=h.value;if(g.options.implied){g.options.implied=false}}else{u.set(h.name,h)}l.removeAttribute(h)}const h=Array.from(u.values());for(let s=0;s<h.length;s++){l.setAttribute(h[s])}return l}function mergeClassNames(s,l){const u=s.classList;for(let s=0;s<u.length;s++){l.addClass(u[s])}return l}function findDeepestNode(s){while(s.children.length){s=s.children[s.children.length-1]}return s}const pe=new Set("a,abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,select,small,span,strike,strong,sub,sup,textarea,tt,u,var".split(","));const de={p:"span",ul:"li",ol:"li",table:"tr",tr:"td",tbody:"tr",thead:"tr",tfoot:"tr",colgroup:"col",select:"option",optgroup:"option",audio:"source",video:"source",object:"param",map:"area"};function resolveImplicitName(s){s=(s||"").toLowerCase();return de[s]||(pe.has(s)?"span":"div")}var E=function(s){s.walk((s=>{if(s.name==null&&s.attributes.length){s.name=resolveImplicitName(s.parent.name)}}));return s};function findUnescapedTokens(s,l){const u=new Set;const f=l.length;let h=0;while((h=s.indexOf(l,h))!==-1){u.add(h);h+=f}if(u.size){let l=0;const f=s.length;while(l<f){if(s[l++]==="\\"){u.delete(l++)}}}return Array.from(u).map((s=>range(s,f)))}function replaceRanges(s,l,u){for(let f=l.length-1;f>=0;f--){const h=l[f];let g=0;let v=0;if(s.substr(h[0]+h[1],1)==="@"){const l=s.substr(h[0]+h[1]+1).match(/^(\d+)/);if(l){v=l[1].length+1;g=parseInt(l[1])-1}}s=s.substring(0,h[0])+(typeof u==="function"?u(s.substr(h[0],h[1]),g):u)+s.substring(h[0]+h[1]+v)}return s}function range(s,l){return[s,l]}const he="$";var z=function(s){s.walk(applyNumbering$1);return s};function applyNumbering$1(s){const l=findRepeater(s);if(l&&l.value!=null){const u=l.value;s.name=replaceNumbering(s.name,u);s.value=replaceNumbering(s.value,u);s.attributes.forEach((l=>{const f=s.getAttribute(l.name).clone();f.name=replaceNumbering(l.name,u);f.value=replaceNumbering(l.value,u);s.replaceAttribute(l.name,f)}))}return s}function findRepeater(s){while(s){if(s.repeat){return s.repeat}s=s.parent}}function replaceNumbering(s,l){if(typeof s==="string"){const u=getNumberingRanges(s);return replaceNumberingRanges(s,u,l)}return s}function getNumberingRanges(s){return findUnescapedTokens(s||"",he).reduce(((l,u)=>{if(!/[#{]/.test(s[u[0]+1]||"")){const s=l[l.length-1];if(s&&s[0]+s[1]===u[0]){s[1]+=u[1]}else{l.push(u)}}return l}),[])}function replaceNumberingRanges(s,l,u){const f=replaceRanges(s,l,((s,l)=>{let f=String(u+l);while(f.length<s.length){f="0"+f}return f}));return unescapeString(f)}function unescapeString(s){let l=0,u="";const f=s.length;while(l<f){const f=s[l++];u+=f==="\\"?s[l++]||"":f}return u}const ge="$#";const ve="|";const ye=/^((?:https?|ftp|file):\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?$/;const we=/^([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6})$/;const _e=/^([a-z]+:)?\/\//i;function prepare(s,l){l=l||1;s.walk((s=>{if(s.repeat&&s.repeat.count===null){for(let u=0;u<l;u++){const f=s.clone(true);f.repeat.implicit=true;f.repeat.count=l;f.repeat.value=u+1;f.repeat.index=u;s.parent.insertBefore(f,s)}s.remove()}}));return s}function insert(s,l){if(Array.isArray(l)&&l.length){let u=false;s.walk((s=>{if(s.repeat&&s.repeat.implicit){u=true;insertContent(s,l[s.repeat.index])}}));if(!u){setNodeContent(findDeepestNode$1(s),l.join("\n"))}}return s}function insertContent(s,l){let u=insertContentIntoPlaceholder(s,l);s.walk((s=>u|=insertContentIntoPlaceholder(s,l)));if(!u){setNodeContent(findDeepestNode$1(s),l)}return s}function insertContentIntoPlaceholder(s,l){const u={replaced:false};s.value=replacePlaceholder(s.value,l,u);s.attributes.forEach((f=>{if(f.value){s.setAttribute(f.name,replacePlaceholder(f.value,l,u))}}));return u.replaced}function replacePlaceholder(s,l,u){if(typeof s==="string"){const f=findUnescapedTokens(s,ge);if(f.length){if(u){u.replaced=true}s=replaceRanges(s,f,l)}}return s}function findDeepestNode$1(s){while(s.children.length){s=s.children[s.children.length-1]}return s}function setNodeContent(s,l){if(s.value){const u=findUnescapedTokens(s.value,ve);if(u.length){s.value=replaceRanges(s.value,u,l);return}}if(s.name.toLowerCase()==="a"||s.hasAttribute("href")){if(ye.test(l)){s.setAttribute("href",(_e.test(l)?"":"http://")+l)}else if(we.test(l)){s.setAttribute("href","mailto:"+l)}}s.value=l}const Se={element:"__",modifier:"_"};const ke=/^(-+)([a-z0-9]+[a-z0-9-]*)/i;const Ce=/^(_+)([a-z0-9]+[a-z0-9-]*)/i;const U=s=>/^[a-z]\-/i.test(s);const V=s=>/^[a-z]/i.test(s);var R=function(s,l){l=Object.assign({},Se,l);s.walk((s=>expandClassNames(s,l)));const u=createBlockLookup(s);s.walk((s=>expandShortNotation(s,u,l)));return s};function expandClassNames(s,l){const u=s.classList.reduce(((s,l)=>{const u=l.indexOf("_");if(u>0&&!l.startsWith("-")){s.add(l.slice(0,u));s.add(l.slice(u));return s}return s.add(l)}),new Set);if(u.size){s.setAttribute("class",Array.from(u).join(" "))}}function expandShortNotation(s,l,u){const f=s.classList.reduce(((f,h)=>{let g,v;const k=h;if(v=h.match(ke)){g=getBlockName(s,l,v[1])+u.element+v[2];f.add(g);h=h.slice(v[0].length)}while(v=h.match(Ce)){if(!g){g=getBlockName(s,l,v[1]);f.add(g)}f.add(`${g}${u.modifier}${v[2]}`);h=h.slice(v[0].length)}if(h===k){f.add(k)}return f}),new Set);const h=Array.from(f).filter(Boolean);if(h.length){s.setAttribute("class",h.join(" "))}}function createBlockLookup(s){const l=new Map;s.walk((s=>{const u=s.classList;if(u.length){l.set(s,find(u,U)||find(u,V)||l.get(s.parent))}}));return l}function getBlockName(s,l,u){let f=u.length>1?u.length:0;while(s.parent&&s.parent.parent&&f--){s=s.parent}return l.get(s)||""}function find(s,l){return s.filter(l)[0]}var P=function(s){s.walk((s=>{replace(s,"class","className");replace(s,"for","htmlFor")}));return s};function replace(s,l,u){let f=s.getAttribute(l);if(f){f.name=u}}const Ee=/^xsl:(variable|with\-param)$/i;var D=function(s){s.walk((s=>{if(Ee.test(s.name||"")&&(s.children.length||s.value)){s.removeAttribute("select")}}));return s};const Re={bem:R,jsx:P,xsl:D};var H=function(s,l){Object.keys(l||{}).forEach((u=>{if(u in Re){const f=typeof l[u]==="object"?l[u]:null;s=s.use(Re[u],f)}}));return s};var Q=function(s,l,u){if(typeof l==="string"){l=[l]}else if(l&&typeof l==="object"&&!Array.isArray(l)){u=l;l=null}return s.use(E).use(prepare,Array.isArray(l)?l.length:null).use(z).use(insert,l).use(H,u)};function replaceVariables(s,l){l=l||{};s.walk((s=>replaceInNode(s,l)));return s}function replaceInNode(s,l){const u=s.attributes;for(let f=0,h=u.length;f<h;f++){const h=u[f];if(typeof h.value==="string"){s.setAttribute(h.name,replaceInString(h.value,l))}}if(s.value!=null){s.value=replaceInString(s.value,l)}return s}function replaceInString(s,l){const u=createModel(s);let f=0;let h="";for(let s=0,g=u.variables.length;s<g;s++){const g=u.variables[s];let v=g.name in l?l[g.name]:g.name;if(typeof v==="function"){v=v(u.string,g,f+g.location)}h+=u.string.slice(f,g.location)+v;f=g.location+g.length}return h+u.string.slice(f)}function createModel(s){const l=/\$\{([a-z][\w\-]*)\}/gi;const u=92;const f=[];const h=new Map;let g;while(g=l.exec(s)){h.set(g.index,g)}if(h.size){let l=0,g=0,v=s.length;let k="";while(g<v){if(s.charCodeAt(g)===u&&h.has(g+1)){const u=h.get(g+1);k+=s.slice(l,g)+u[0];l=g=u.index+u[0].length;h.delete(g+1);continue}g++}s=k+s.slice(l);const O=Array.from(h.values());for(let s=0,l=O.length;s<l;s++){const l=O[s];f.push({name:l[1],location:l.index,length:l[0].length})}}return{string:s,variables:f}}const Oe=36;const De=58;const Ie=92;const Me=123;const Ne=125;function parse$2(s){const l=new StreamReader(s);const u=[];let f="",h=0,g=0;let v,k;while(!l.eof()){v=l.peek();g=l.pos;if(v===Ie){l.next();l.next()}else if(k=consumeField(l,f.length+g-h)){u.push(k);f+=l.string.slice(h,g)+k.placeholder;h=l.pos}else{l.next()}}return new FieldString(f+l.string.slice(h),u)}function mark(s,l,u){u=u||createToken;const f=l.map(((s,l)=>({order:l,field:s,end:s.location+s.length}))).sort(((s,l)=>s.end-l.end||s.order-l.order));let h=0;const g=f.map((l=>{const f=s.substr(l.field.location,l.field.length);const g=s.slice(h,l.field.location);h=l.end;return g+u(l.field.index,f)}));return g.join("")+s.slice(h)}function createToken(s,l){return l?`\${${s}:${l}}`:`\${${s}}`}function consumeField(s,l){const u=s.pos;if(s.eat(Oe)){let u=consumeIndex(s);let f="";if(u!=null){return new Field(u,f,l)}if(s.eat(Me)){u=consumeIndex(s);if(u!=null){if(s.eat(De)){f=consumePlaceholder(s)}if(s.eat(Ne)){return new Field(u,f,l)}}}}s.pos=u}function consumePlaceholder(s){let l;const u=[];s.start=s.pos;while(!s.eof()){l=s.peek();if(l===Me){u.push(s.pos)}else if(l===Ne){if(!u.length){break}u.pop()}s.next()}if(u.length){throw s.error('Unable to find matching "}" for curly brace at '+u.pop())}return s.current()}function consumeIndex(s){s.start=s.pos;if(s.eatWhile(isNumber)){return Number(s.current())}}class Field{constructor(s,l,u){this.index=s;this.placeholder=l;this.location=u;this.length=this.placeholder.length}}class FieldString{constructor(s,l){this.string=s;this.fields=l}mark(s){return mark(this.string,this.fields,s)}toString(){return string}}const J=s=>s;class OutputNode{constructor(s,l,u){if(typeof l==="object"){u=l;l=null}this.node=s;this._fieldsRenderer=l||J;this.open=null;this.beforeOpen="";this.afterOpen="";this.close=null;this.beforeClose="";this.afterClose="";this.text=null;this.beforeText="";this.afterText="";this.indent="";this.newline="";if(u){Object.assign(this,u)}}clone(){return new this.constructor(this.node,this)}indentText(s){const l=splitByLines(s);if(l.length===1){return s}const u=!this.newline&&!this.indent?" ":this.newline;return l.map(((s,l)=>l?this.indent+s:s)).join(u)}renderFields(s){return this._fieldsRenderer(s)}toString(s){const l=this._wrap(this.open,this.beforeOpen,this.afterOpen);const u=this._wrap(this.close,this.beforeClose,this.afterClose);const f=this._wrap(this.text,this.beforeText,this.afterText);return l+f+(s!=null?s:"")+u}_wrap(s,l,u){l=l!=null?l:"";u=u!=null?u:"";if(s!=null){s=l?s.replace(/^\s+/,""):s;s=u?s.replace(/\s+$/,""):s;return l+this.indentText(s)+u}return""}}function splitByLines(s){return(s||"").split(/\r\n|\r|\n/g)}const ee=(s,l)=>l||"";function render(s,l,u){if(typeof u==="undefined"){u=l;l=null}l=l||ee;const f={index:1};const i=s=>s==null?l(f.index++):getFieldsModel(s,f).mark(l);return run(s.children,u,i)}function run(s,l,u){return s.map((s=>{const f=l(new OutputNode(s,u));return f?f.toString(run(s.children,l,u)):""})).join("")}function getFieldsModel(s,l){const u=typeof s==="object"?s:parse$2(s);let f=-1;u.fields.forEach((s=>{s.index+=l.index;if(s.index>f){f=s.index}}));if(f!==-1){l.index=f+1}return u}const Le=/^(.*?)([A-Z_]+)(.*?)$/;const je=91;const Fe=93;function template(s,l){if(s==null){return s}const u=[];const r=(s,u,f,h)=>l[f]!=null?u+l[f]+h:"";let f="";let h=0,g=0;let v,k;while(g<s.length){v=s.charCodeAt(g);if(v===je){u.push(g)}else if(v===Fe){k=u.pop();if(!u.length){f+=s.slice(h,k)+s.slice(k+1,g).replace(Le,r);h=g+1}}g++}return f+s.slice(h)}function splitByLines$1(s){return(s||"").split(/\r\n|\r|\n/g)}function isFirstChild(s){return s.parent.firstChild===s}function isRoot(s){return s&&!s.parent}function isPseudoSnippet(s){return s.isTextOnly&&!!s.children.length}function handlePseudoSnippet(s){const l=s.node;if(isPseudoSnippet(l)){const u=parse$2(l.value);const f=findLowestIndexField(u);if(f){const l=splitFieldsModel(u,f);s.open=s.renderFields(l[0]);s.close=s.renderFields(l[1])}else{s.text=s.renderFields(u)}return true}return false}function findLowestIndexField(s){return s.fields.reduce(((s,l)=>!s||l.index<s.index?l:s),null)}function splitFieldsModel(s,l){const u=s.fields.indexOf(l);const f=new s.constructor(s.string.slice(0,l.location),s.fields.slice(0,u));const h=new s.constructor(s.string.slice(l.location+l.length),s.fields.slice(u+1));return[f,h]}const qe={enabled:false,trigger:["id","class"],before:"",after:"\n\x3c!-- /[#ID][.CLASS] --\x3e"};function html(s,l,u){u=Object.assign({},u);u.comment=Object.assign({},qe,u.comment);return render(s,u.field,(s=>{s=setFormatting(s,l);if(!handlePseudoSnippet(s)){const f=s.node;if(f.name){const h=l.name(f.name);const g=formatAttributes(s,l);s.open=`<${h}${g}${f.selfClosing?l.selfClose():""}>`;if(!f.selfClosing){s.close=`</${h}>`}commentNode(s,u.comment)}if(f.value||!f.children.length&&!f.selfClosing){s.text=s.renderFields(f.value)}}return s}))}function setFormatting(s,l){const u=s.node;if(shouldFormatNode(u,l)){s.indent=l.indent(getIndentLevel(u,l));s.newline="\n";const f=s.newline+s.indent;if(!isRoot(u.parent)||!isFirstChild(u)){s.beforeOpen=f;if(u.isTextOnly){s.beforeText=f}}if(hasInnerFormatting(u,l)){if(!u.isTextOnly){s.beforeText=f+l.indent(1)}s.beforeClose=f}}return s}function shouldFormatNode(s,l){if(!l.get("format")){return false}if(s.parent.isTextOnly&&s.parent.children.length===1&&parse$2(s.parent.value).fields.length){return false}return isInline(s,l)?shouldFormatInline(s,l):true}function shouldFormatInline(s,l){if(!isInline(s,l)){return false}if(isPseudoSnippet(s)){return true}if(s.childIndex===0){let u=s;while(u=u.nextSibling){if(!isInline(u,l)){return true}}}else if(!isInline(s.previousSibling,l)){return true}if(l.get("inlineBreak")){let u=1;let f=s,h=s;while(isInlineElement(f=f.previousSibling,l)){u++}while(isInlineElement(h=h.nextSibling,l)){u++}if(u>=l.get("inlineBreak")){return true}}for(let u=0,f=s.children.length;u<f;u++){if(shouldFormatNode(s.children[u],l)){return true}}return false}function hasInnerFormatting(s,l){const u=(s.name||"").toLowerCase();if(l.get("formatForce").indexOf(u)!==-1){return true}for(let u=0;u<s.children.length;u++){if(shouldFormatNode(s.children[u],l)){return true}}return false}function formatAttributes(s,l){const u=s.node;return u.attributes.map((u=>{if(u.options.implied&&u.value==null){return null}const f=l.attribute(u.name);let h=null;if(u.options.boolean||l.get("booleanAttributes").indexOf(f.toLowerCase())!==-1){if(l.get("compactBooleanAttributes")&&u.value==null){return` ${f}`}else if(u.value==null){h=f}}if(h==null){h=s.renderFields(u.value)}return u.options.before&&u.options.after?` ${f}=${u.options.before+h+u.options.after}`:` ${f}=${l.quote(h)}`})).join("")}function isInline(s,l){return s&&s.isTextOnly||isInlineElement(s,l)}function isInlineElement(s,l){return s&&l.isInline(s)}function getIndentLevel(s,l){const u=l.get("formatSkip")||[];let f=s.parent.isTextOnly?-2:-1;let h=s;while(h=h.parent){if(u.indexOf((h.name||"").toLowerCase())===-1){f++}}return f<0?0:f}function commentNode(s,l){const u=s.node;if(!l.enabled||!l.trigger||!u.name){return}const f=s.node.attributes.reduce(((s,l)=>{if(l.name&&l.value!=null){s[l.name.toUpperCase().replace(/-/g,"_")]=l.value}return s}),{});for(let u=0,h=l.trigger.length;u<h;u++){if(l.trigger[u].toUpperCase()in f){s.open=template(l.before,f)+s.open;if(s.close){s.close+=template(l.after,f)}break}}}const $e=/^id$/i;const We=/^class$/i;const ze={primary:s=>s.join(""),secondary:s=>s.map((s=>s.isBoolean?s.name:`${s.name}=${s.value}`)).join(", ")};const Ve={open:null,close:null,omitName:/^div$/i,attributes:ze};function indentFormat(s,l,u){u=Object.assign({},Ve,u);const f=s.node;s.indent=l.indent(getIndentLevel$1(f,l));s.newline="\n";if(!isRoot(f.parent)||!isFirstChild(f)){s.beforeOpen=s.newline+s.indent}if(f.name){const h=Object.assign({NAME:l.name(f.name),SELF_CLOSE:f.selfClosing?u.selfClose:null},getAttributes(s,l,u.attributes));if(u.omitName&&u.omitName.test(h.NAME)&&h.PRIMARY_ATTRS){h.NAME=null}if(u.open!=null){s.open=template(u.open,h)}if(u.close!=null){s.close=template(u.close,h)}}return s}function getAttributes(s,l,u){u=Object.assign({},ze,u);const f=[],h=[];const g=s.node;g.attributes.forEach((u=>{if(u.options.implied&&u.value==null){return null}const g=l.attribute(u.name);const v=s.renderFields(u.value);if($e.test(g)){v&&f.push(`#${v}`)}else if(We.test(g)){v&&f.push(`.${v.replace(/\s+/g,".")}`)}else{const s=u.value==null&&(u.options.boolean||l.get("booleanAttributes").indexOf(g.toLowerCase())!==-1);h.push({name:g,value:v,isBoolean:s})}}));return{PRIMARY_ATTRS:u.primary(f)||null,SECONDARY_ATTRS:u.secondary(h)||null}}function getIndentLevel$1(s,l){let u=s.parent.isTextOnly?-2:-1;let f=s;while(f=f.parent){u++}return u<0?0:u}const Ge=/\n|\r/;function haml(s,l,u){u=u||{};const f={open:"[%NAME][PRIMARY_ATTRS][(SECONDARY_ATTRS)][SELF_CLOSE]",selfClose:"/",attributes:{secondary(s){return s.map((s=>s.isBoolean?`${s.name}${l.get("compactBooleanAttributes")?"":"=true"}`:`${s.name}=${l.quote(s.value)}`)).join(" ")}}};return render(s,u.field,(s=>{s=indentFormat(s,l,f);s=updateFormatting(s,l);if(!handlePseudoSnippet(s)){const u=s.node;if(u.value||!u.children.length&&!u.selfClosing){s.text=s.renderFields(formatNodeValue(u,l))}}return s}))}function updateFormatting(s,l){const u=s.node;if(!u.isTextOnly&&u.value){s.beforeText=Ge.test(u.value)?s.newline+s.indent+l.indent(1):" "}return s}function formatNodeValue(s,l){if(s.value!=null&&Ge.test(s.value)){const u=splitByLines$1(s.value);const f=l.indent(1);const h=u.reduce(((s,l)=>Math.max(s,l.length)),0);return u.map(((s,l)=>`${l?f:""}${pad(s,h)} |`)).join("\n")}return s.value}function pad(s,l){while(s.length<l){s+=" "}return s}const Ye=/\n|\r/;const Ke={none:"[ SECONDARY_ATTRS]",round:"[(SECONDARY_ATTRS)]",curly:"[{SECONDARY_ATTRS}]",square:"[[SECONDARY_ATTRS]"};function slim(s,l,u){u=u||{};const f=u.attributeWrap&&Ke[u.attributeWrap]||Ke.none;const h=f===Ke.none?s=>`${s.name}=true`:s=>s.name;const g={open:`[NAME][PRIMARY_ATTRS]${f}[SELF_CLOSE]`,selfClose:"/",attributes:{secondary(s){return s.map((s=>s.isBoolean?h(s):`${s.name}=${l.quote(s.value)}`)).join(" ")}}};return render(s,u.field,((s,u)=>{s=indentFormat(s,l,g);s=updateFormatting$1(s,l);if(!handlePseudoSnippet(s)){const u=s.node;if(u.value||!u.children.length&&!u.selfClosing){s.text=s.renderFields(formatNodeValue$1(u,l))}}return s}))}function updateFormatting$1(s,l){const u=s.node;const f=u.parent;if(l.get("inlineBreak")===0&&isInline$1(u,l)&&!isRoot(f)&&f.value==null&&f.children.length===1){s.beforeOpen=": "}if(!u.isTextOnly&&u.value){s.beforeText=Ye.test(u.value)?s.newline+s.indent+l.indent(1):" "}return s}function formatNodeValue$1(s,l){if(s.value!=null&&Ye.test(s.value)){const u=l.indent(1);return splitByLines$1(s.value).map(((s,l)=>`${u}${l?" ":"|"} ${s}`)).join("\n")}return s.value}function isInline$1(s,l){return s&&(s.isTextOnly||l.isInline(s))}const Qe=/\n|\r/;function pug(s,l,u){u=u||{};const f={open:"[NAME][PRIMARY_ATTRS][(SECONDARY_ATTRS)]",attributes:{secondary(s){return s.map((s=>s.isBoolean?s.name:`${s.name}=${l.quote(s.value)}`)).join(", ")}}};return render(s,u.field,(s=>{s=indentFormat(s,l,f);s=updateFormatting$2(s,l);if(!handlePseudoSnippet(s)){const u=s.node;if(u.value||!u.children.length&&!u.selfClosing){s.text=s.renderFields(formatNodeValue$2(u,l))}}return s}))}function updateFormatting$2(s,l){const u=s.node;if(!u.isTextOnly&&u.value){s.beforeText=Qe.test(u.value)?s.newline+s.indent+l.indent(1):" "}return s}function formatNodeValue$2(s,l){if(s.value!=null&&Qe.test(s.value)){const u=l.indent(1);return splitByLines$1(s.value).map((s=>`${u}| ${s}`)).join("\n")}return s.value}const Je={html:html,haml:haml,slim:slim,pug:pug};var me=function(s,l,u,f){if(typeof u==="object"){f=u;u=null}if(!supports(u)){u="html"}return Je[u](s,l,f)};function supports(s){return!!s&&s in Je}function expand(s,l){l=l||{};if(typeof s==="string"){s=parse$3(s,l)}return me(s,l.profile,l.syntax,l.format)}function parse$3(s,l){return index(s).use(A,l.snippets).use(replaceVariables,l.variables).use(Q,l.text,l.addons)}class CSSValue{constructor(){this.type="css-value";this.value=[]}get size(){return this.value.length}add(s){this.value.push(s)}has(s){return this.value.indexOf(s)!==-1}toString(){return this.value.join(" ")}}const Xe=35;const et=46;var be=function(s){if(s.peek()===Xe){s.start=s.pos;s.next();s.eat(116)||s.eatWhile(isHex);const l=s.current();s.start=s.pos;if(s.eat(et)&&!s.eatWhile(isNumber)){throw s.error("Unexpected character for alpha value of color")}return new Color(l,s.current())}};class Color{constructor(s,l){this.type="color";this.raw=s;this.alpha=Number(l!=null&&l!==""?l:1);s=s.slice(1);let u=0,f=0,h=0;if(s==="t"){this.alpha=0}else{switch(s.length){case 0:break;case 1:u=f=h=s+s;break;case 2:u=f=h=s;break;case 3:u=s[0]+s[0];f=s[1]+s[1];h=s[2]+s[2];break;default:s+=s;u=s.slice(0,2);f=s.slice(2,4);h=s.slice(4,6)}}this.r=parseInt(u,16);this.g=parseInt(f,16);this.b=parseInt(h,16)}toHex(s){const l=s&&isShortHex(this.r)&&isShortHex(this.g)&&isShortHex(this.b)?toShortHex:toHex;return"#"+l(this.r)+l(this.g)+l(this.b)}toRGB(){const s=[this.r,this.g,this.b];if(this.alpha!==1){s.push(this.alpha.toFixed(8).replace(/\.?0+$/,""))}return`${s.length===3?"rgb":"rgba"}(${s.join(", ")})`}toString(s){if(!this.r&&!this.g&&!this.b&&!this.alpha){return"transparent"}return this.alpha===1?this.toHex(s):this.toRGB()}}function isHex(s){return isNumber(s)||isAlpha(s,65,70)}function isShortHex(s){return!(s%17)}function toShortHex(s){return(s>>4).toString(16)}function toHex(s){return pad$1(s.toString(16),2)}function pad$1(s,l){while(s.length<l){s="0"+s}return s}function isAlphaNumericWord(s){return isNumber(s)||isAlphaWord(s)}function isAlphaWord(s){return s===95||isAlpha(s)}const tt=37;const it=46;const st=45;var xe=function(s){s.start=s.pos;if(eatNumber(s)){const l=s.current();s.start=s.pos;s.eat(tt)||s.eatWhile(isAlphaWord);return new NumericValue(l,s.current())}};class NumericValue{constructor(s,l){this.type="numeric";this.value=Number(s);this.unit=l||""}toString(){return`${this.value}${this.unit}`}}function eatNumber(s){const l=s.pos;const u=s.eat(st);let f=false,h=false,g;while(!s.eof()){g=s.peek();if(g===it?f:!isNumber(g)){break}h=true;if(g===it){f=true}s.next()}if(u&&!h){s.pos=l}return l!==s.pos}const ut=36;const ct=45;const ft=64;var Ae=function(s,l){s.start=s.pos;if(s.eat(ut)||s.eat(ft)){s.eatWhile(isVariableName)}else if(l){s.eatWhile(isAlphaWord)}else{s.eatWhile(isKeyword)}return s.start!==s.pos?new Keyword(s.current()):null};class Keyword{constructor(s){this.type="keyword";this.value=s}toString(){return this.value}}function isKeyword(s){return isAlphaNumericWord(s)||s===ct}function isVariableName(s){return s===45||isAlphaNumericWord(s)}const pt={throws:true};var Te=function(s){if(o(s,pt)){return new QuotedString(s.current())}};class QuotedString{constructor(s){this.type="string";this.value=s}toString(){return this.value}}const dt=40;const ht=41;const mt=44;function consumeArgumentList(s){if(!s.eat(dt)){return null}let l=1,u,f;const h=[];while(!s.eof()){if(f=consumeArgument(s)){h.push(f)}else{s.eatWhile(isWhiteSpace);if(s.eat(ht)){break}if(!s.eat(mt)){throw s.error("Expected , or )")}}}return h}function consumeArgument(s){const l=new CSSValue;let u;while(!s.eof()){s.eatWhile(isWhiteSpace);u=xe(s)||be(s)||Te(s)||consumeKeywordOrFunction(s);if(!u){break}l.add(u)}return l.size?l:null}function consumeKeywordOrFunction(s){const l=Ae(s);if(l){const u=consumeArgumentList(s);return u?new FunctionCall(l.toString(),u):l}}class FunctionCall{constructor(s,l){this.type="function";this.name=s;this.args=l||[]}toString(){return`${this.name}(${this.args.join(", ")})`}}const vt=33;const yt=36;const bt=43;const wt=45;const _t=58;const xt=64;var Be=function(s){const l=new Node;const u=new StreamReader(s);while(!u.eof()){let s=new Node(consumeIdent(u));s.value=consumeValue(u);const f=consumeArgumentList(u);if(f){for(let l=0;l<f.length;l++){s.setAttribute(String(l),f[l])}}if(u.eat(vt)){s.value.add("!")}l.appendChild(s);if(!u.eat(bt)){break}}if(!u.eof()){throw u.error("Unexpected character")}return l};function consumeIdent(s){s.start=s.pos;s.eatWhile(isIdentPrefix);s.eatWhile(isIdent);return s.start!==s.pos?s.current():null}function consumeValue(s){const l=new CSSValue;let u;while(!s.eof()){s.eat(_t);if(u=xe(s)||be(s)){if(!u.unit){s.eat(wt)}}else{s.eat(wt);u=Ae(s,true)}if(!u){break}l.add(u)}return l}function isIdent(s){return isAlphaWord(s)}function isIdentPrefix(s){return s===xt||s===yt||s===vt}const St=45;var Ue=function(s,l){s=s.toLowerCase();l=l.toLowerCase();if(s===l){return 1}if(!l||s.charCodeAt(0)!==l.charCodeAt(0)){return 0}const u=s.length;const f=l.length;let h=1,g=1,v=f;let k,O,M,q;while(h<u){k=s.charCodeAt(h);M=false;q=false;while(g<f){O=l.charCodeAt(g);if(k===O){M=true;v+=(f-g)*(q?2:1);break}q=O===St;g++}if(!M){break}h++}return v&&v*(h/u)/sum(f)};function sum(s){return s*(s+1)/2}const kt=/^([a-z\-]+)(?:\s*:\s*([^\n\r]+))?$/;const Ct=45;var Pe=function(s){return nest(s.map((s=>new CSSSnippet(s.key,s.value))))};class CSSSnippet{constructor(s,l){this.key=s;this.value=l;this.property=null;const u=l&&l.match(kt);if(u){this.property=u[1];this.value=u[2]}this.dependencies=[]}addDependency(s){this.dependencies.push(s)}get defaulValue(){return this.value!=null?splitValue(this.value)[0]:null}keywords(){const s=[];const l=new Set;let u=0,f,h;if(this.property){s.push(this)}while(u<s.length){f=s[u++];if(f.value){h=splitValue(f.value).filter(isKeyword$1);for(let s=0;s<h.length;s++){l.add(h[s].trim())}for(let l=0,u=f.dependencies;l<u.length;l++){if(s.indexOf(u[l])===-1){s.push(u[l])}}}}return Array.from(l)}}function nest(s){s=s.sort(snippetsSort);const l=[];for(let u=0,f,h;u<s.length;u++){f=s[u];if(!f.property){continue}while(l.length){h=l[l.length-1];if(f.property.indexOf(h.property)===0&&f.property.charCodeAt(h.property.length)===Ct){h.addDependency(f);l.push(f);break}l.pop()}if(!l.length){l.push(f)}}return s}function snippetsSort(s,l){if(s.key===l.key){return 0}return s.key<l.key?-1:1}function isKeyword$1(s){return/^\s*[\w\-]+/.test(s)}function splitValue(s){return String(s).split("|")}const Et=["auto","inherit","unset"];const Rt=["z-index","line-height","opacity","font-weight","zoom","flex","flex-grow","flex-shrink"];const Pt={intUnit:"px",floatUnit:"em",unitAliases:{e:"em",p:"%",x:"ex",r:"rem"},fuzzySearchMinScore:0};var He=function(s,l,u){const f=convertToCSSSnippets(l);u={intUnit:u&&u.intUnit||Pt.intUnit,floatUnit:u&&u.floatUnit||Pt.floatUnit,unitAliases:Object.assign({},Pt.unitAliases,u&&u.unitAliases),fuzzySearchMinScore:u&&u.fuzzySearchMinScore||Pt.fuzzySearchMinScore};s.walk((s=>resolveNode$1(s,f,u)));return s};function convertToCSSSnippets(s){return Pe(s.all({type:"string"}))}function resolveNode$1(s,l,u){const f=findBestMatch(s.name,l,"key",u.fuzzySearchMinScore);if(!f){return s.name==="!"?setNodeAsText(s,"!important"):s}return f.property?resolveAsProperty(s,f,u):resolveAsSnippet(s,f)}function resolveAsProperty(s,l,u){const f=s.name;s.name=l.property;if(s.value&&typeof s.value==="object"){const h=l.keywords();if(!s.value.size){let u=findBestMatch(getUnmatchedPart(f,l.key),h);if(!u){u=l.defaulValue;if(u&&u.indexOf("${")===-1){u=`\${1:${u}}`}}if(u){s.value.add(u)}}else{for(let l=0,f;l<s.value.value.length;l++){f=s.value.value[l];if(f==="!"){f=`${!l?"${1} ":""}!important`}else if(isKeyword$2(f)){f=findBestMatch(f.value,h)||findBestMatch(f.value,Et)||f}else if(isNumericValue(f)){f=resolveNumericValue(s.name,f,u)}s.value.value[l]=f}}}return s}function resolveAsSnippet(s,l){return setNodeAsText(s,l.value)}function setNodeAsText(s,l){s.name=null;s.value=l;return s}function findBestMatch(s,l,u,f){if(!s){return null}let h=null;let g=0;f=f||0;for(let f=0,v;f<l.length;f++){v=l[f];const k=Ue(s,getScoringPart(v,u));if(k===1){return v}if(k&&k>=g){g=k;h=v}}return g>=f?h:null}function getScoringPart(s,l){const u=s&&typeof s==="object"?s[l]:s;const f=(u||"").match(/^[\w-@]+/);return f?f[0]:u}function getUnmatchedPart(s,l){for(let u=0,f=0;u<s.length;u++){f=l.indexOf(s[u],f);if(f===-1){return s.slice(u)}f++}return""}function isKeyword$2(s){return tokenTypeOf(s,"keyword")}function isNumericValue(s){return tokenTypeOf(s,"numeric")}function tokenTypeOf(s,l){return s&&typeof s==="object"&&s.type===l}function resolveNumericValue(s,l,u){if(l.unit){l.unit=u.unitAliases[l.unit]||l.unit}else if(l.value!==0&&Rt.indexOf(s)===-1){l.unit=l.value===(l.value|0)?u.intUnit:u.floatUnit}return l}const Tt={shortHex:true,format:{between:": ",after:";"}};function css(s,l,u){u=Object.assign({},Tt,u);return render(s,u.field,(f=>{const h=f.node;let g=String(h.value||"");if(h.attributes.length){const s=h.attributes.map((s=>stringifyAttribute(s,u)));g=injectFields(g,s)}f.open=h.name&&l.name(h.name);f.afterOpen=u.format.between;f.text=f.renderFields(g||null);if(f.open&&(!f.text||!f.text.endsWith(";"))){f.afterText=u.format.after}if(l.get("format")){f.newline="\n";if(s.lastChild!==h){f.afterText+=f.newline}}return f}))}function injectFields(s,l){const u=parse$2(s);const f=u.fields.length;if(f){l=l.slice();if(l.length>f){l=l.slice(0,f-1).concat(l.slice(f-1).join(", "))}while(l.length){const s=l.shift();const f=u.fields.shift();const h=s.length-f.length;u.string=u.string.slice(0,f.location)+s+u.string.slice(f.location+f.length);for(let s=0,l=u.fields.length;s<l;s++){u.fields[s].location+=h}}}return u}function stringifyAttribute(s,l){if(s.value&&typeof s.value==="object"&&s.value.type==="css-value"){return s.value.value.map((s=>{if(s&&typeof s==="object"){return s.type==="color"?s.toString(l.shortHex):s.toString()}return String(s)})).join(" ")}return s.value!=null?String(s.value):""}const At={css:{between:": ",after:";"},scss:"css",less:"css",sass:{between:": ",after:""},stylus:{between:" ",after:""}};var Ze=function(s,l,u,f){if(typeof u==="object"){f=u;u=null}if(!supports$1(u)){u="css"}f=Object.assign({},f,{format:getFormat(u,f)});return css(s,l,f)};function supports$1(s){return!!s&&s in At}function getFormat(s,l){let u=At[s];if(typeof u==="string"){u=At[u]}return Object.assign({},u,l&&l.stylesheet)}function expand$1(s,l){l=l||{};if(typeof s==="string"){s=parse$4(s,l)}return Ze(s,l.profile,l.syntax,l.format)}function parse$4(s,l){if(typeof s==="string"){s=Be(s)}return s.use(He,l.snippets,l.format?l.format.stylesheet:{})}var Ot={a:"a[href]","a:blank":"a[href='http://${0}' target='_blank' rel='noopener noreferrer']","a:link":"a[href='http://${0}']","a:mail":"a[href='mailto:${0}']","a:tel":"a[href='tel:+${0}']",abbr:"abbr[title]","acr|acronym":"acronym[title]",base:"base[href]/",basefont:"basefont/",br:"br/",frame:"frame/",hr:"hr/",bdo:"bdo[dir]","bdo:r":"bdo[dir=rtl]","bdo:l":"bdo[dir=ltr]",col:"col/",link:"link[rel=stylesheet href]/","link:css":"link[href='${1:style}.css']","link:print":"link[href='${1:print}.css' media=print]","link:favicon":"link[rel='shortcut icon' type=image/x-icon href='${1:favicon.ico}']","link:mf|link:manifest":"link[rel='manifest' href='${1:manifest.json}']","link:touch":"link[rel=apple-touch-icon href='${1:favicon.png}']","link:rss":"link[rel=alternate type=application/rss+xml title=RSS href='${1:rss.xml}']","link:atom":"link[rel=alternate type=application/atom+xml title=Atom href='${1:atom.xml}']","link:im|link:import":"link[rel=import href='${1:component}.html']",meta:"meta/","meta:utf":"meta[http-equiv=Content-Type content='text/html;charset=UTF-8']","meta:vp":"meta[name=viewport content='width=${1:device-width}, initial-scale=${2:1.0}']","meta:compat":"meta[http-equiv=X-UA-Compatible content='${1:IE=7}']","meta:edge":"meta:compat[content='${1:ie=edge}']","meta:redirect":"meta[http-equiv=refresh content='0; url=${1:http://example.com}']","meta:kw":"meta[name=keywords content]","meta:desc":"meta[name=description content]",style:"style",script:"script","script:src":"script[src]",img:"img[src alt]/","img:s|img:srcset":"img[srcset src alt]","img:z|img:sizes":"img[sizes srcset src alt]",picture:"picture","src|source":"source/","src:sc|source:src":"source[src type]","src:s|source:srcset":"source[srcset]","src:t|source:type":"source[srcset type='${1:image/}']","src:z|source:sizes":"source[sizes srcset]","src:m|source:media":"source[media='(${1:min-width: })' srcset]","src:mt|source:media:type":"source:media[type='${2:image/}']","src:mz|source:media:sizes":"source:media[sizes srcset]","src:zt|source:sizes:type":"source[sizes srcset type='${1:image/}']",iframe:"iframe[src frameborder=0]",embed:"embed[src type]/",object:"object[data type]",param:"param[name value]/",map:"map[name]",area:"area[shape coords href alt]/","area:d":"area[shape=default]","area:c":"area[shape=circle]","area:r":"area[shape=rect]","area:p":"area[shape=poly]",form:"form[action]","form:get":"form[method=get]","form:post":"form[method=post]",label:"label[for]",input:"input[type=${1:text}]/",inp:"input[name=${1} id=${1}]","input:h|input:hidden":"input[type=hidden name]","input:t|input:text":"inp[type=text]","input:search":"inp[type=search]","input:email":"inp[type=email]","input:url":"inp[type=url]","input:p|input:password":"inp[type=password]","input:datetime":"inp[type=datetime]","input:date":"inp[type=date]","input:datetime-local":"inp[type=datetime-local]","input:month":"inp[type=month]","input:week":"inp[type=week]","input:time":"inp[type=time]","input:tel":"inp[type=tel]","input:number":"inp[type=number]","input:color":"inp[type=color]","input:c|input:checkbox":"inp[type=checkbox]","input:r|input:radio":"inp[type=radio]","input:range":"inp[type=range]","input:f|input:file":"inp[type=file]","input:s|input:submit":"input[type=submit value]","input:i|input:image":"input[type=image src alt]","input:b|input:button":"input[type=button value]","input:reset":"input:button[type=reset]",isindex:"isindex/",select:"select[name=${1} id=${1}]","select:d|select:disabled":"select[disabled.]","opt|option":"option[value]",textarea:"textarea[name=${1} id=${1} cols=${2:30} rows=${3:10}]",marquee:"marquee[behavior direction]","menu:c|menu:context":"menu[type=context]","menu:t|menu:toolbar":"menu[type=toolbar]",video:"video[src]",audio:"audio[src]","html:xml":"html[xmlns=http://www.w3.org/1999/xhtml]",keygen:"keygen/",command:"command/","btn:s|button:s|button:submit":"button[type=submit]","btn:r|button:r|button:reset":"button[type=reset]","btn:d|button:d|button:disabled":"button[disabled.]","fst:d|fset:d|fieldset:d|fieldset:disabled":"fieldset[disabled.]",bq:"blockquote",fig:"figure",figc:"figcaption",pic:"picture",ifr:"iframe",emb:"embed",obj:"object",cap:"caption",colg:"colgroup",fst:"fieldset",btn:"button",optg:"optgroup",tarea:"textarea",leg:"legend",sect:"section",art:"article",hdr:"header",ftr:"footer",adr:"address",dlg:"dialog",str:"strong",prog:"progress",mn:"main",tem:"template",fset:"fieldset",datag:"datagrid",datal:"datalist",kg:"keygen",out:"output",det:"details",cmd:"command","ri:d|ri:dpr":"img:s","ri:v|ri:viewport":"img:z","ri:a|ri:art":"pic>src:m+img","ri:t|ri:type":"pic>src:t+img","!!!":"{<!DOCTYPE html>}",doc:"html[lang=${lang}]>(head>meta[charset=${charset}]+meta:vp+title{${1:Document}})+body","!|html:5":"!!!+doc",c:"{\x3c!-- ${0} --\x3e}","cc:ie":"{\x3c!--[if IE]>${0}<![endif]--\x3e}","cc:noie":"{\x3c!--[if !IE]>\x3c!--\x3e${0}\x3c!--<![endif]--\x3e}"};var Dt={"@f":"@font-face {\n\tfont-family: ${1};\n\tsrc: url(${1});\n}","@ff":"@font-face {\n\tfont-family: '${1:FontName}';\n\tsrc: url('${2:FileName}.eot');\n\tsrc: url('${2:FileName}.eot?#iefix') format('embedded-opentype'),\n\t\t url('${2:FileName}.woff') format('woff'),\n\t\t url('${2:FileName}.ttf') format('truetype'),\n\t\t url('${2:FileName}.svg#${1:FontName}') format('svg');\n\tfont-style: ${3:normal};\n\tfont-weight: ${4:normal};\n}","@i|@import":"@import url(${0});","@kf":"@keyframes ${1:identifier} {\n\t${2}\n}","@m|@media":"@media ${1:screen} {\n\t${0}\n}",ac:"align-content:start|end|flex-start|flex-end|center|space-between|space-around|stretch|space-evenly",ai:"align-items:start|end|flex-start|flex-end|center|baseline|stretch",anim:"animation:${1:name} ${2:duration} ${3:timing-function} ${4:delay} ${5:iteration-count} ${6:direction} ${7:fill-mode}",animdel:"animation-delay:time",animdir:"animation-direction:normal|reverse|alternate|alternate-reverse",animdur:"animation-duration:${1:0}s",animfm:"animation-fill-mode:both|forwards|backwards",animic:"animation-iteration-count:1|infinite",animn:"animation-name",animps:"animation-play-state:running|paused",animtf:"animation-timing-function:linear|ease|ease-in|ease-out|ease-in-out|cubic-bezier(${1:0.1}, ${2:0.7}, ${3:1.0}, ${3:0.1})",ap:"appearance:none",as:"align-self:start|end|auto|flex-start|flex-end|center|baseline|stretch",b:"bottom",bd:"border:${1:1px} ${2:solid} ${3:#000}",bdb:"border-bottom:${1:1px} ${2:solid} ${3:#000}",bdbc:"border-bottom-color:${1:#000}",bdbi:"border-bottom-image:url(${0})",bdbk:"border-break:close",bdbli:"border-bottom-left-image:url(${0})|continue",bdblrs:"border-bottom-left-radius",bdbri:"border-bottom-right-image:url(${0})|continue",bdbrrs:"border-bottom-right-radius",bdbs:"border-bottom-style",bdbw:"border-bottom-width",bdc:"border-color:${1:#000}",bdci:"border-corner-image:url(${0})|continue",bdcl:"border-collapse:collapse|separate",bdf:"border-fit:repeat|clip|scale|stretch|overwrite|overflow|space",bdi:"border-image:url(${0})",bdl:"border-left:${1:1px} ${2:solid} ${3:#000}",bdlc:"border-left-color:${1:#000}",bdlen:"border-length",bdli:"border-left-image:url(${0})",bdls:"border-left-style",bdlw:"border-left-width",bdr:"border-right:${1:1px} ${2:solid} ${3:#000}",bdrc:"border-right-color:${1:#000}",bdri:"border-right-image:url(${0})",bdrs:"border-radius",bdrst:"border-right-style",bdrw:"border-right-width",bds:"border-style:none|hidden|dotted|dashed|solid|double|dot-dash|dot-dot-dash|wave|groove|ridge|inset|outset",bdsp:"border-spacing",bdt:"border-top:${1:1px} ${2:solid} ${3:#000}",bdtc:"border-top-color:${1:#000}",bdti:"border-top-image:url(${0})",bdtli:"border-top-left-image:url(${0})|continue",bdtlrs:"border-top-left-radius",bdtri:"border-top-right-image:url(${0})|continue",bdtrrs:"border-top-right-radius",bdts:"border-top-style",bdtw:"border-top-width",bdw:"border-width",bfv:"backface-visibility:hidden|visible",bg:"background:${1:#000}",bga:"background-attachment:fixed|scroll",bgbk:"background-break:bounding-box|each-box|continuous",bgc:"background-color:#${1:fff}",bgcp:"background-clip:padding-box|border-box|content-box|no-clip",bgi:"background-image:url(${0})",bgo:"background-origin:padding-box|border-box|content-box",bgp:"background-position:${1:0} ${2:0}",bgpx:"background-position-x",bgpy:"background-position-y",bgr:"background-repeat:no-repeat|repeat-x|repeat-y|space|round",bgsz:"background-size:contain|cover",bxsh:"box-shadow:${1:inset }${2:hoff} ${3:voff} ${4:blur} ${5:#000}|none",bxsz:"box-sizing:border-box|content-box|border-box",c:"color:${1:#000}",cl:"clear:both|left|right|none",cm:"/* ${0} */",cnt:"content:'${0}'|normal|open-quote|no-open-quote|close-quote|no-close-quote|attr(${0})|counter(${0})|counters(${0})",coi:"counter-increment",colm:"columns",colmc:"column-count",colmf:"column-fill",colmg:"column-gap",colmr:"column-rule",colmrc:"column-rule-color",colmrs:"column-rule-style",colmrw:"column-rule-width",colms:"column-span",colmw:"column-width",cor:"counter-reset",cp:"clip:auto|rect(${1:top} ${2:right} ${3:bottom} ${4:left})",cps:"caption-side:top|bottom",cur:"cursor:pointer|auto|default|crosshair|hand|help|move|pointer|text",d:"display:grid|inline-grid|subgrid|block|none|flex|inline-flex|inline|inline-block|list-item|run-in|compact|table|inline-table|table-caption|table-column|table-column-group|table-header-group|table-footer-group|table-row|table-row-group|table-cell|ruby|ruby-base|ruby-base-group|ruby-text|ruby-text-group",ec:"empty-cells:show|hide",f:"font:${1:1em} ${2:sans-serif}",fd:"font-display:auto|block|swap|fallback|optional",fef:"font-effect:none|engrave|emboss|outline",fem:"font-emphasize",femp:"font-emphasize-position:before|after",fems:"font-emphasize-style:none|accent|dot|circle|disc",ff:"font-family:serif|sans-serif|cursive|fantasy|monospace",fft:'font-family:"Times New Roman", Times, Baskerville, Georgia, serif',ffa:'font-family:Arial, "Helvetica Neue", Helvetica, sans-serif',ffv:"font-family:Verdana, Geneva, sans-serif",fl:"float:left|right|none",fs:"font-style:italic|normal|oblique",fsm:"font-smoothing:antialiased|subpixel-antialiased|none",fst:"font-stretch:normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded",fv:"font-variant:normal|small-caps",fvs:"font-variation-settings:normal|inherit|initial|unset",fw:"font-weight:normal|bold|bolder|lighter",fx:"flex",fxb:"flex-basis:fill|max-content|min-content|fit-content|content",fxd:"flex-direction:row|row-reverse|column|column-reverse",fxf:"flex-flow",fxg:"flex-grow",fxsh:"flex-shrink",fxw:"flex-wrap:nowrap|wrap|wrap-reverse",fsz:"font-size",fsza:"font-size-adjust",gtc:"grid-template-columns:repeat()|minmax()",gtr:"grid-template-rows:repeat()|minmax()",gta:"grid-template-areas",gt:"grid-template",gg:"grid-gap",gcg:"grid-column-gap",grg:"grid-row-gap",gac:"grid-auto-columns:auto|minmax()",gar:"grid-auto-rows:auto|minmax()",gaf:"grid-auto-flow:row|column|dense|inherit|initial|unset",gd:"grid",gc:"grid-column",gcs:"grid-column-start",gce:"grid-column-end",gr:"grid-row",grs:"grid-row-start",gre:"grid-row-end",ga:"grid-area",h:"height",jc:"justify-content:start|end|stretch|flex-start|flex-end|center|space-between|space-around|space-evenly",ji:"justify-items:start|end|center|stretch",js:"justify-self:start|end|center|stretch",l:"left",lg:"background-image:linear-gradient(${1})",lh:"line-height",lis:"list-style",lisi:"list-style-image",lisp:"list-style-position:inside|outside",list:"list-style-type:disc|circle|square|decimal|decimal-leading-zero|lower-roman|upper-roman",lts:"letter-spacing:normal",m:"margin",mah:"max-height",mar:"max-resolution",maw:"max-width",mb:"margin-bottom",mih:"min-height",mir:"min-resolution",miw:"min-width",ml:"margin-left",mr:"margin-right",mt:"margin-top",ol:"outline",olc:"outline-color:${1:#000}|invert",olo:"outline-offset",ols:"outline-style:none|dotted|dashed|solid|double|groove|ridge|inset|outset",olw:"outline-width|thin|medium|thick",op:"opacity",ord:"order",ori:"orientation:landscape|portrait",orp:"orphans",ov:"overflow:hidden|visible|hidden|scroll|auto",ovs:"overflow-style:scrollbar|auto|scrollbar|panner|move|marquee",ovx:"overflow-x:hidden|visible|hidden|scroll|auto",ovy:"overflow-y:hidden|visible|hidden|scroll|auto",p:"padding",pb:"padding-bottom",pgba:"page-break-after:auto|always|left|right",pgbb:"page-break-before:auto|always|left|right",pgbi:"page-break-inside:auto|avoid",pl:"padding-left",pos:"position:relative|absolute|relative|fixed|static",pr:"padding-right",pt:"padding-top",q:"quotes",qen:"quotes:'\\201C' '\\201D' '\\2018' '\\2019'",qru:"quotes:'\\00AB' '\\00BB' '\\201E' '\\201C'",r:"right",rsz:"resize:none|both|horizontal|vertical",t:"top",ta:"text-align:left|center|right|justify",tal:"text-align-last:left|center|right",tbl:"table-layout:fixed",td:"text-decoration:none|underline|overline|line-through",te:"text-emphasis:none|accent|dot|circle|disc|before|after",th:"text-height:auto|font-size|text-size|max-size",ti:"text-indent",tj:"text-justify:auto|inter-word|inter-ideograph|inter-cluster|distribute|kashida|tibetan",to:"text-outline:${1:0} ${2:0} ${3:#000}",tov:"text-overflow:ellipsis|clip",tr:"text-replace",trf:"transform:${1}|skewX(${1:angle})|skewY(${1:angle})|scale(${1:x}, ${2:y})|scaleX(${1:x})|scaleY(${1:y})|scaleZ(${1:z})|scale3d(${1:x}, ${2:y}, ${3:z})|rotate(${1:angle})|rotateX(${1:angle})|rotateY(${1:angle})|rotateZ(${1:angle})|translate(${1:x}, ${2:y})|translateX(${1:x})|translateY(${1:y})|translateZ(${1:z})|translate3d(${1:tx}, ${2:ty}, ${3:tz})",trfo:"transform-origin",trfs:"transform-style:preserve-3d",trs:"transition:${1:prop} ${2:time}",trsde:"transition-delay:${1:time}",trsdu:"transition-duration:${1:time}",trsp:"transition-property:${1:prop}",trstf:"transition-timing-function:${1:fn}",tsh:"text-shadow:${1:hoff} ${2:voff} ${3:blur} ${4:#000}",tt:"text-transform:uppercase|lowercase|capitalize|none",tw:"text-wrap:none|normal|unrestricted|suppress",us:"user-select:none",v:"visibility:hidden|visible|collapse",va:"vertical-align:top|super|text-top|middle|baseline|bottom|text-bottom|sub",w:"width",whs:"white-space:nowrap|pre|pre-wrap|pre-line|normal",whsc:"white-space-collapse:normal|keep-all|loose|break-strict|break-all",wid:"widows",wm:"writing-mode:lr-tb|lr-tb|lr-bt|rl-tb|rl-bt|tb-rl|tb-lr|bt-lr|bt-rl",wob:"word-break:normal|keep-all|break-all",wos:"word-spacing",wow:"word-wrap:none|unrestricted|suppress|break-word|normal",z:"z-index",zom:"zoom:1"};var It={"tm|tmatch":"xsl:template[match mode]","tn|tname":"xsl:template[name]",call:"xsl:call-template[name]",ap:"xsl:apply-templates[select mode]",api:"xsl:apply-imports",imp:"xsl:import[href]",inc:"xsl:include[href]",ch:"xsl:choose","wh|xsl:when":"xsl:when[test]",ot:"xsl:otherwise",if:"xsl:if[test]",par:"xsl:param[name]",pare:"xsl:param[name select]",var:"xsl:variable[name]",vare:"xsl:variable[name select]",wp:"xsl:with-param[name select]",key:"xsl:key[name match use]",elem:"xsl:element[name]",attr:"xsl:attribute[name]",attrs:"xsl:attribute-set[name]",cp:"xsl:copy[select]",co:"xsl:copy-of[select]",val:"xsl:value-of[select]","for|each":"xsl:for-each[select]",tex:"xsl:text",com:"xsl:comment",msg:"xsl:message[terminate=no]",fall:"xsl:fallback",num:"xsl:number[value]",nam:"namespace-alias[stylesheet-prefix result-prefix]",pres:"xsl:preserve-space[elements]",strip:"xsl:strip-space[elements]",proc:"xsl:processing-instruction[name]",sort:"xsl:sort[select order]",choose:"xsl:choose>xsl:when+xsl:otherwise",xsl:"!!!+xsl:stylesheet[version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform]>{\n|}","!!!":'{<?xml version="1.0" encoding="UTF-8"?>}'};var Mt={html:Ot,css:Dt,xsl:It};var Nt={common:["lorem","ipsum","dolor","sit","amet","consectetur","adipisicing","elit"],words:["exercitationem","perferendis","perspiciatis","laborum","eveniet","sunt","iure","nam","nobis","eum","cum","officiis","excepturi","odio","consectetur","quasi","aut","quisquam","vel","eligendi","itaque","non","odit","tempore","quaerat","dignissimos","facilis","neque","nihil","expedita","vitae","vero","ipsum","nisi","animi","cumque","pariatur","velit","modi","natus","iusto","eaque","sequi","illo","sed","ex","et","voluptatibus","tempora","veritatis","ratione","assumenda","incidunt","nostrum","placeat","aliquid","fuga","provident","praesentium","rem","necessitatibus","suscipit","adipisci","quidem","possimus","voluptas","debitis","sint","accusantium","unde","sapiente","voluptate","qui","aspernatur","laudantium","soluta","amet","quo","aliquam","saepe","culpa","libero","ipsa","dicta","reiciendis","nesciunt","doloribus","autem","impedit","minima","maiores","repudiandae","ipsam","obcaecati","ullam","enim","totam","delectus","ducimus","quis","voluptates","dolores","molestiae","harum","dolorem","quia","voluptatem","molestias","magni","distinctio","omnis","illum","dolorum","voluptatum","ea","quas","quam","corporis","quae","blanditiis","atque","deserunt","laboriosam","earum","consequuntur","hic","cupiditate","quibusdam","accusamus","ut","rerum","error","minus","eius","ab","ad","nemo","fugit","officia","at","in","id","quos","reprehenderit","numquam","iste","fugiat","sit","inventore","beatae","repellendus","magnam","recusandae","quod","explicabo","doloremque","aperiam","consequatur","asperiores","commodi","optio","dolor","labore","temporibus","repellat","veniam","architecto","est","esse","mollitia","nulla","a","similique","eos","alias","dolore","tenetur","deleniti","porro","facere","maxime","corrupti"]};var Lt={common:["далеко-далеко","за","словесными","горами","в стране","гласных","и согласных","живут","рыбные","тексты"],words:["вдали","от всех","они","буквенных","домах","на берегу","семантика","большого","языкового","океана","маленький","ручеек","даль","журчит","по всей","обеспечивает","ее","всеми","необходимыми","правилами","эта","парадигматическая","страна","которой","жаренные","предложения","залетают","прямо","рот","даже","всемогущая","пунктуация","не","имеет","власти","над","рыбными","текстами","ведущими","безорфографичный","образ","жизни","однажды","одна","маленькая","строчка","рыбного","текста","имени","lorem","ipsum","решила","выйти","большой","мир","грамматики","великий","оксмокс","предупреждал","о","злых","запятых","диких","знаках","вопроса","коварных","точках","запятой","но","текст","дал","сбить","себя","толку","он","собрал","семь","своих","заглавных","букв","подпоясал","инициал","за","пояс","пустился","дорогу","взобравшись","первую","вершину","курсивных","гор","бросил","последний","взгляд","назад","силуэт","своего","родного","города","буквоград","заголовок","деревни","алфавит","подзаголовок","своего","переулка","грустный","реторический","вопрос","скатился","его","щеке","продолжил","свой","путь","дороге","встретил","рукопись","она","предупредила","моей","все","переписывается","несколько","раз","единственное","что","меня","осталось","это","приставка","возвращайся","ты","лучше","свою","безопасную","страну","послушавшись","рукописи","наш","продолжил","свой","путь","вскоре","ему","повстречался","коварный","составитель","рекламных","текстов","напоивший","языком","речью","заманивший","свое","агентство","которое","использовало","снова","снова","своих","проектах","если","переписали","то","живет","там","до","сих","пор"]};var jt={common:["mujer","uno","dolor","más","de","poder","mismo","si"],words:["ejercicio","preferencia","perspicacia","laboral","paño","suntuoso","molde","namibia","planeador","mirar","demás","oficinista","excepción","odio","consecuencia","casi","auto","chicharra","velo","elixir","ataque","no","odio","temporal","cuórum","dignísimo","facilismo","letra","nihilista","expedición","alma","alveolar","aparte","león","animal","como","paria","belleza","modo","natividad","justo","ataque","séquito","pillo","sed","ex","y","voluminoso","temporalidad","verdades","racional","asunción","incidente","marejada","placenta","amanecer","fuga","previsor","presentación","lejos","necesariamente","sospechoso","adiposidad","quindío","pócima","voluble","débito","sintió","accesorio","falda","sapiencia","volutas","queso","permacultura","laudo","soluciones","entero","pan","litro","tonelada","culpa","libertario","mosca","dictado","reincidente","nascimiento","dolor","escolar","impedimento","mínima","mayores","repugnante","dulce","obcecado","montaña","enigma","total","deletéreo","décima","cábala","fotografía","dolores","molesto","olvido","paciencia","resiliencia","voluntad","molestias","magnífico","distinción","ovni","marejada","cerro","torre","y","abogada","manantial","corporal","agua","crepúsculo","ataque","desierto","laboriosamente","angustia","afortunado","alma","encefalograma","materialidad","cosas","o","renuncia","error","menos","conejo","abadía","analfabeto","remo","fugacidad","oficio","en","almácigo","vos","pan","represión","números","triste","refugiado","trote","inventor","corchea","repelente","magma","recusado","patrón","explícito","paloma","síndrome","inmune","autoinmune","comodidad","ley","vietnamita","demonio","tasmania","repeler","apéndice","arquitecto","columna","yugo","computador","mula","a","propósito","fantasía","alias","rayo","tenedor","deleznable","ventana","cara","anemia","corrupto"]};const Ft={latin:Nt,ru:Lt,sp:jt};const qt={wordCount:30,skipCommon:false,lang:"latin"};var ot=function(s,l){l=Object.assign({},qt,l);const u=Ft[l.lang]||Ft.latin;const f=!l.skipCommon&&!isRepeating(s);if(!s.repeat&&!isRoot$1(s.parent)){s.parent.value=paragraph(u,l.wordCount,f);s.remove()}else{s.value=paragraph(u,l.wordCount,f);s.name=s.parent.name?resolveImplicitName(s.parent.name):null}return s};function isRoot$1(s){return!s.parent}function rand(s,l){return Math.floor(Math.random()*(l-s)+s)}function sample(s,l){const u=s.length;const f=Math.min(u,l);const h=new Set;while(h.size<f){h.add(s[rand(0,u)])}return Array.from(h)}function choice(s){return s[rand(0,s.length-1)]}function sentence(s,l){if(s.length){s=[capitalize(s[0])].concat(s.slice(1))}return s.join(" ")+(l||choice("?!..."))}function capitalize(s){return s[0].toUpperCase()+s.slice(1)}function insertCommas(s){if(s.length<2){return s}s=s.slice();const l=s.length;const u=/,$/;let f=0;if(l>3&&l<=6){f=rand(0,1)}else if(l>6&&l<=12){f=rand(0,2)}else{f=rand(1,4)}for(let h=0,g;h<f;h++){g=rand(0,l-2);if(!u.test(s[g])){s[g]+=","}}return s}function paragraph(s,l,u){const f=[];let h=0;let g;if(u&&s.common){g=s.common.slice(0,l);h+=g.length;f.push(sentence(insertCommas(g),"."))}while(h<l){g=sample(s.words,Math.min(rand(2,30),l-h));h+=g.length;f.push(sentence(insertCommas(g)))}return f.join(" ")}function isRepeating(s){while(s.parent){if(s.repeat&&s.repeat.value&&s.repeat.value>1){return true}s=s.parent}return false}const $t=/^lorem([a-z]*)(\d*)$/i;function snippetsRegistryFactory(s,l){const u=[Mt[s]||Mt.html];if(Array.isArray(l)){l.forEach((s=>{u.push(typeof s==="string"?Mt[s]:s)}))}else if(typeof l==="object"){u.push(l)}const f=new SnippetsRegistry(u.filter(Boolean));if(s!=="css"){f.get(0).set($t,loremGenerator)}return f}function loremGenerator(s){const l={};const u=s.name.match($t);if(u[1]){l.lang=u[1]}if(u[2]){l.wordCount=+u[2]}return ot(s,l)}const Bt={lang:"en",locale:"en-US",charset:"UTF-8"};const Ut=new Set(["css","sass","scss","less","stylus","sss"]);const Wt={syntax:"html",field:(s,l)=>l||"",text:null,profile:null,variables:{},snippets:{},addons:null,format:null};function expand$2(s,l){l=createOptions(l);return isStylesheet(l.syntax)?expand$1(s,l):expand(s,l)}function parse$5(s,l){l=createOptions(l);return isStylesheet(l.syntax)?parse$4(s,l):parse$3(s,l)}function createSnippetsRegistry(s,l){return l instanceof SnippetsRegistry?l:snippetsRegistryFactory(isStylesheet(s)?"css":s,l)}function createOptions(s){if(typeof s==="string"){s={syntax:s}}s=Object.assign({},Wt,s);s.format=Object.assign({field:s.field},s.format);s.profile=createProfile(s);s.variables=Object.assign({},Bt,s.variables);s.snippets=createSnippetsRegistry(isStylesheet(s.syntax)?"css":s.syntax,s.snippets);return s}function isStylesheet(s){return Ut.has(s)}function createProfile(s){return s.profile instanceof Profile?s.profile:new Profile(s.profile)}s.expand=expand$2;s.parse=parse$5;s.createSnippetsRegistry=createSnippetsRegistry;s.createOptions=createOptions;s.isStylesheet=isStylesheet;s.createProfile=createProfile;Object.defineProperty(s,"__esModule",{value:true})}))},87:function(s){s.exports=u(12087)},104:function(s,l,u){"use strict";u.r(l);var f=u(183);var h=u.n(f);for(var g in f)if(g!=="default")u.d(l,g,function(s){return f[s]}.bind(0,g))},183:function(s,l,u){"use strict";Object.defineProperty(l,"__esModule",{value:true});const f=u(280);const h=u(34);const g=u(234);const v=u(622);const k=u(747);const O=u(762);const M=u(87);const q=u(233);const B=new Map;let Y;let te;const re=new Map;const ne=/^[a-z,A-Z,!,(,[,#,\.]/;const ie=/^-?[a-z,A-Z,!,@,#]/;const se=/[a-z,A-Z\.]/;const oe=["html","pug","slim","haml","xml","xsl","jsx","css","scss","sass","less","stylus"];const ae=[...q.htmlData.tags,"lorem"];const le="bem";const ue="|";const ce="t";const fe="c";const pe=3;const de={w:"webkit",m:"moz",s:"ms",o:"o"};const he={w:"animation, animation-delay, animation-direction, animation-duration, animation-fill-mode, animation-iteration-count, animation-name, animation-play-state, animation-timing-function, appearance, backface-visibility, background-clip, background-composite, background-origin, background-size, border-fit, border-horizontal-spacing, border-image, border-vertical-spacing, box-align, box-direction, box-flex, box-flex-group, box-lines, box-ordinal-group, box-orient, box-pack, box-reflect, box-shadow, color-correction, column-break-after, column-break-before, column-break-inside, column-count, column-gap, column-rule-color, column-rule-style, column-rule-width, column-span, column-width, dashboard-region, font-smoothing, highlight, hyphenate-character, hyphenate-limit-after, hyphenate-limit-before, hyphens, line-box-contain, line-break, line-clamp, locale, margin-before-collapse, margin-after-collapse, marquee-direction, marquee-increment, marquee-repetition, marquee-style, mask-attachment, mask-box-image, mask-box-image-outset, mask-box-image-repeat, mask-box-image-slice, mask-box-image-source, mask-box-image-width, mask-clip, mask-composite, mask-image, mask-origin, mask-position, mask-repeat, mask-size, nbsp-mode, perspective, perspective-origin, rtl-ordering, text-combine, text-decorations-in-effect, text-emphasis-color, text-emphasis-position, text-emphasis-style, text-fill-color, text-orientation, text-security, text-stroke-color, text-stroke-width, transform, transition, transform-origin, transform-style, transition-delay, transition-duration, transition-property, transition-timing-function, user-drag, user-modify, user-select, writing-mode, svg-shadow, box-sizing, border-radius",m:"animation-delay, animation-direction, animation-duration, animation-fill-mode, animation-iteration-count, animation-name, animation-play-state, animation-timing-function, appearance, backface-visibility, background-inline-policy, binding, border-bottom-colors, border-image, border-left-colors, border-right-colors, border-top-colors, box-align, box-direction, box-flex, box-ordinal-group, box-orient, box-pack, box-shadow, box-sizing, column-count, column-gap, column-rule-color, column-rule-style, column-rule-width, column-width, float-edge, font-feature-settings, font-language-override, force-broken-image-icon, hyphens, image-region, orient, outline-radius-bottomleft, outline-radius-bottomright, outline-radius-topleft, outline-radius-topright, perspective, perspective-origin, stack-sizing, tab-size, text-blink, text-decoration-color, text-decoration-line, text-decoration-style, text-size-adjust, transform, transform-origin, transform-style, transition, transition-delay, transition-duration, transition-property, transition-timing-function, user-focus, user-input, user-modify, user-select, window-shadow, background-clip, border-radius",s:"accelerator, backface-visibility, background-position-x, background-position-y, behavior, block-progression, box-align, box-direction, box-flex, box-line-progression, box-lines, box-ordinal-group, box-orient, box-pack, content-zoom-boundary, content-zoom-boundary-max, content-zoom-boundary-min, content-zoom-chaining, content-zoom-snap, content-zoom-snap-points, content-zoom-snap-type, content-zooming, filter, flow-from, flow-into, font-feature-settings, grid-column, grid-column-align, grid-column-span, grid-columns, grid-layer, grid-row, grid-row-align, grid-row-span, grid-rows, high-contrast-adjust, hyphenate-limit-chars, hyphenate-limit-lines, hyphenate-limit-zone, hyphens, ime-mode, interpolation-mode, layout-flow, layout-grid, layout-grid-char, layout-grid-line, layout-grid-mode, layout-grid-type, line-break, overflow-style, perspective, perspective-origin, perspective-origin-x, perspective-origin-y, scroll-boundary, scroll-boundary-bottom, scroll-boundary-left, scroll-boundary-right, scroll-boundary-top, scroll-chaining, scroll-rails, scroll-snap-points-x, scroll-snap-points-y, scroll-snap-type, scroll-snap-x, scroll-snap-y, scrollbar-arrow-color, scrollbar-base-color, scrollbar-darkshadow-color, scrollbar-face-color, scrollbar-highlight-color, scrollbar-shadow-color, scrollbar-track-color, text-align-last, text-autospace, text-justify, text-kashida-space, text-overflow, text-size-adjust, text-underline-position, touch-action, transform, transform-origin, transform-origin-x, transform-origin-y, transform-origin-z, transform-style, transition, transition-delay, transition-duration, transition-property, transition-timing-function, user-select, word-break, wrap-flow, wrap-margin, wrap-through, writing-mode",o:"dashboard-region, animation, animation-delay, animation-direction, animation-duration, animation-fill-mode, animation-iteration-count, animation-name, animation-play-state, animation-timing-function, border-image, link, link-source, object-fit, object-position, tab-size, table-baseline, transform, transform-origin, transition, transition-delay, transition-duration, transition-property, transition-timing-function, accesskey, input-format, input-required, marquee-dir, marquee-loop, marquee-speed, marquee-style"};function doComplete(s,l,u,g){if(g.showExpandedAbbreviation==="never"||!getEmmetMode(u,g.excludeLanguages)){return}if(!isStyleSheet(u)){if(!B.has(u)||!te||te.length===0){let s=ge[u]?ge[u]:h.createSnippetsRegistry(u);if(!B.has(u)){B.set(u,s.all({type:"string"}).map((s=>s.key)))}te=s.all({type:"regexp"}).map((s=>s.key))}Y=B.get(u)}let v=extractAbbreviation(s,l,{syntax:u,lookAhead:!isStyleSheet(u)});if(!v){return}let{abbreviationRange:k,abbreviation:O,filter:M}=v;let ne=getCurrentLine(s,l).substr(0,l.character);let ie=getCurrentWord(ne);if(ie===O&&ne.endsWith(`<${O}`)&&(u==="html"||u==="xml"||u==="xsl"||u==="jsx")){return}let se=getExpandOptions(u,g,M);let oe=se["preferences"];delete se["preferences"];let le;let ue;let ce=[];const C=(s,l)=>{if(!isAbbreviationValid(s,O)){return}try{le=h.expand(l,se)}catch(s){}if(!le||isExpandedTextNoise(s,l,le)){return}ue=f.CompletionItem.create(l);ue.textEdit=f.TextEdit.replace(k,escapeNonTabStopDollar(addFinalTabStop(le)));ue.documentation=replaceTabStopsWithCursors(le);ue.insertTextFormat=f.InsertTextFormat.Snippet;ue.detail="Emmet Abbreviation";ue.label=O;ue.label+=M?"|"+M.replace(",","|"):"";ce=[ue]};if(isStyleSheet(u)){let{prefixOptions:s,abbreviationWithoutPrefix:l}=splitVendorPrefix(O);C(u,l);if(l.length>4&&q.cssData.properties.find((s=>s.startsWith(l)))){return f.CompletionList.create([],true)}if(ue){let h=applyVendorPrefixes(le,s,oe);ue.textEdit=f.TextEdit.replace(k,escapeNonTabStopDollar(addFinalTabStop(h)));ue.documentation=replaceTabStopsWithCursors(h);ue.label=removeTabStops(le);ue.filterText=O;const g=re.has(u)?re.get(u):re.get("css");ce=makeSnippetSuggestion(g,O,O,k,se,"Emmet Custom Snippet",false);if(!ce.find((s=>s.textEdit.newText===ue.textEdit.newText))){const s=new RegExp(".*"+l.split("").map((s=>s==="$"||s==="+"?"\\"+s:s)).join(".*")+".*","i");if(/\d/.test(O)||s.test(ue.label)){ce.push(ue)}}}if(!ce.length&&(O==="-"||/^-[wmso]{1,4}-?$/.test(O))){return f.CompletionList.create([],true)}}else{C(u,O);let s=O;let l=O.match(/(>|\+)([\w:-]+)$/);if(l&&l.length===3){s=l[2]}let f=makeSnippetSuggestion(ae,s,O,k,se,"Emmet Abbreviation");ce=ce.concat(f);if(g.showAbbreviationSuggestions===true){let l=makeSnippetSuggestion(Y.filter((s=>!ae.includes(s))),s,O,k,se,"Emmet Abbreviation");if(ue&&l.length>0&&s!==O){ue.sortText="0"+ue.label;l.forEach((s=>{s.filterText=O;s.sortText="9"+O}))}ce=ce.concat(l)}}if(g.showSuggestionsAsSnippets===true){ce.forEach((s=>s.kind=f.CompletionItemKind.Snippet))}return ce.length?f.CompletionList.create(ce,true):undefined}l.doComplete=doComplete;function makeSnippetSuggestion(s,l,u,g,v,k,O=true){if(!l||!s){return[]}let M=[];s.forEach((s=>{if(!s.startsWith(l.toLowerCase())||O&&s===l.toLowerCase()){return}let q=u+s.substr(l.length);let B;try{B=h.expand(q,v)}catch(s){}if(!B){return}let Y=f.CompletionItem.create(l+s.substr(l.length));Y.documentation=replaceTabStopsWithCursors(B);Y.detail=k;Y.textEdit=f.TextEdit.replace(g,escapeNonTabStopDollar(addFinalTabStop(B)));Y.insertTextFormat=f.InsertTextFormat.Snippet;M.push(Y)}));return M}function getCurrentWord(s){if(s){let l=s.match(/[\w,:,-,\.]*$/);if(l){return l[0]}}}function replaceTabStopsWithCursors(s){return s.replace(/([^\\])\$\{\d+\}/g,"$1|").replace(/\$\{\d+:([^\}]+)\}/g,"$1")}function removeTabStops(s){return s.replace(/([^\\])\$\{\d+\}/g,"$1").replace(/\$\{\d+:([^\}]+)\}/g,"$1")}function escapeNonTabStopDollar(s){return s?s.replace(/([^\\])(\$)([^\{])/g,"$1\\$2$3"):s}function addFinalTabStop(s){if(!s||!s.trim()){return s}let l=-1;let u=[];let f=false;let h=false;let g=0;let v=s.length;try{while(g<v&&!f){if(s[g++]!="$"||s[g++]!="{"){continue}let k=-1;let O=-1;while(g<v&&/\d/.test(s[g])){k=k<0?g:k;O=g+1;g++}if(k===-1||O===-1||g>=v||s[g]!="}"&&s[g]!=":"){continue}const M=s.substring(k,O);f=M==="0";if(f){break}let q=false;if(s[g++]==":"){while(g<v){if(s[g]=="}"){q=true;break}g++}}if(Number(M)>Number(l)){l=M;u=[{numberStart:k,numberEnd:O}];h=!q}else if(M==l){u.push({numberStart:k,numberEnd:O})}}}catch(s){}if(h&&!f){for(let l=0;l<u.length;l++){let f=u[l].numberStart;let h=u[l].numberEnd;s=s.substr(0,f)+"0"+s.substr(h)}}return s}function getCurrentLine(s,l){let u=s.offsetAt(l);let f=s.getText();let h=0;let g=f.length;for(let s=u-1;s>=0;s--){if(f[s]==="\n"){h=s+1;break}}for(let s=u;s<f.length;s++){if(f[s]==="\n"){g=s;break}}return f.substring(h,g)}let ge={};let ve={};let ye={};l.emmetSnippetField=(s,l)=>`\${${s}${l?":"+l:""}}`;function isStyleSheet(s){let l=["css","scss","sass","less","stylus"];return l.indexOf(s)>-1}l.isStyleSheet=isStyleSheet;function getFilters(s,l){let u;for(let f=0;f<pe;f++){if(s.endsWith(`${ue}${le}`,l)){l-=le.length+1;u=u?le+","+u:le}else if(s.endsWith(`${ue}${fe}`,l)){l-=fe.length+1;u=u?fe+","+u:fe}else if(s.endsWith(`${ue}${ce}`,l)){l-=ce.length+1;u=u?ce+","+u:ce}else{break}}return{pos:l,filter:u}}function extractAbbreviation(s,l,u){const h=getCurrentLine(s,l);const v=h.substr(0,l.character);const{pos:k,filter:O}=getFilters(v,l.character);const M=O?O.length+1:0;try{let s=u;if(typeof s!=="boolean"){s=s||{};s={syntax:isStyleSheet(s.syntax)||s.syntax==="stylesheet"?"stylesheet":"markup",lookAhead:s.lookAhead}}const v=g(h,k,s);const q=f.Range.create(l.line,v.location,l.line,v.location+v.abbreviation.length+M);return{abbreviationRange:q,abbreviation:v.abbreviation,filter:O}}catch(s){}}l.extractAbbreviation=extractAbbreviation;function extractAbbreviationFromText(s,l){if(!s){return}const{pos:u,filter:f}=getFilters(s,s.length);try{let h=isStyleSheet(l)||l==="stylesheet"?{syntax:"stylesheet",lookAhead:false}:true;const v=g(s,u,h);return{abbreviation:v.abbreviation,filter:f}}catch(s){}}l.extractAbbreviationFromText=extractAbbreviationFromText;function isAbbreviationValid(s,l){if(!l){return false}if(isStyleSheet(s)){if(l.endsWith(":")){return false}if(l.indexOf("#")>-1){return _e.test(l)||we.test(l)}return ie.test(l)}if(l.startsWith("!")){return!/[^!]/.test(l)}const u=l.match(/\*(\d+)$/);if(u){return parseInt(u[1],10)<=100}if((/\(/.test(l)||/\)/.test(l))&&!/\{[^\}\{]*[\(\)]+[^\}\{]*\}(?:[>\+\*\^]|$)/.test(l)&&!/\(.*\)[>\+\*\^]/.test(l)&&!/[>\+\*\^]\(.*\)/.test(l)){return false}return ne.test(l)&&se.test(l)}l.isAbbreviationValid=isAbbreviationValid;function isExpandedTextNoise(s,l,u){if(isStyleSheet(s)){let f=s==="sass"||s==="stylus"?"":";";return u===`${l}: \${1}${f}`||u.replace(/\s/g,"")===l.replace(/\s/g,"")+f}if(ae.indexOf(l.toLowerCase())>-1||Y.indexOf(l)>-1){return false}if(/[-,:]/.test(l)&&!/--|::/.test(l)&&!l.endsWith(":")){return false}if(l==="."){return false}const f=l.match(/^([a-z,A-Z,\d]*)\.$/);if(f){if(f[1]&&q.htmlData.tags.includes(f[1])){return false}return true}return u.toLowerCase()===`<${l.toLowerCase()}>\${1}</${l.toLowerCase()}>`}function getExpandOptions(s,u,f){u=u||{};u["preferences"]=u["preferences"]||{};let h=isStyleSheet(s)?"css":"html";if(!ge[s]&&ge[h]){ge[s]=ge[h]}let g=getProfile(s,u["syntaxProfiles"]);let v=g&&g["filters"]?g["filters"].split(","):[];v=v.map((s=>s.trim()));if(u["preferences"]["format.noIndentTags"]){if(Array.isArray(u["preferences"]["format.noIndentTags"])){g["formatSkip"]=u["preferences"]["format.noIndentTags"]}else if(typeof u["preferences"]["format.noIndentTags"]==="string"){g["formatSkip"]=u["preferences"]["format.noIndentTags"].split(",")}}if(u["preferences"]["format.forceIndentationForTags"]){if(Array.isArray(u["preferences"]["format.forceIndentationForTags"])){g["formatForce"]=u["preferences"]["format.forceIndentationForTags"]}else if(typeof u["preferences"]["format.forceIndentationForTags"]==="string"){g["formatForce"]=u["preferences"]["format.forceIndentationForTags"].split(",")}}if(u["preferences"]["profile.allowCompactBoolean"]&&typeof u["preferences"]["profile.allowCompactBoolean"]==="boolean"){g["compactBooleanAttributes"]=u["preferences"]["profile.allowCompactBoolean"]}let k={};if(f&&f.split(",").find((s=>s.trim()==="bem"))||v.indexOf("bem")>-1){k["bem"]={element:"__"};if(u["preferences"]["bem.elementSeparator"]){k["bem"]["element"]=u["preferences"]["bem.elementSeparator"]}if(u["preferences"]["bem.modifierSeparator"]){k["bem"]["modifier"]=u["preferences"]["bem.modifierSeparator"]}}if(s==="jsx"){k["jsx"]=true}let O=getFormatters(s,u["preferences"]);if(f&&f.split(",").find((s=>s.trim()==="c"))||v.indexOf("c")>-1){if(!O["comment"]){O["comment"]={enabled:true}}else{O["comment"]["enabled"]=true}}let M=u["preferences"];for(const s in de){let l=M["css."+de[s]+"Properties"];if(l==null){M["css."+de[s]+"Properties"]=he[s]}}return{field:l.emmetSnippetField,syntax:s,profile:g,addons:k,variables:getVariables(u["variables"]),snippets:ge[s],format:O,preferences:M}}l.getExpandOptions=getExpandOptions;function splitVendorPrefix(s){s=s||"";if(s[0]!="-"){return{prefixOptions:"",abbreviationWithoutPrefix:s}}else{s=s.substr(1);let l="-";if(/^[wmso]*-./.test(s)){let u=s.indexOf("-");if(u>-1){l+=s.substr(0,u+1);s=s.substr(u+1)}}return{prefixOptions:l,abbreviationWithoutPrefix:s}}}function applyVendorPrefixes(s,l,u){u=u||{};s=s||"";l=l||"";if(l[0]!=="-"){return s}if(l=="-"){let f="-";let h=s.substr(0,s.indexOf(":"));if(!h){return s}for(const s in de){let l=u["css."+de[s]+"Properties"];if(l&&l.split(",").find((s=>s.trim()===h)))f+=s}l=f=="-"?"-wmso":f;l+="-"}l=l.substr(1);let f="";for(let u=0;u<l.length-1;u++){f+="-"+de[l[u]]+"-"+s+"\n"}return f+s}function parseAbbreviation(s,l){return h.parse(s,l)}l.parseAbbreviation=parseAbbreviation;function expandAbbreviation(s,l){let u;let f=l["preferences"];delete l["preferences"];if(isStyleSheet(l["syntax"])&&typeof s==="string"){let{prefixOptions:g,abbreviationWithoutPrefix:v}=splitVendorPrefix(s);u=h.expand(v,l);u=applyVendorPrefixes(u,g,f)}else{u=h.expand(s,l)}return escapeNonTabStopDollar(addFinalTabStop(u))}l.expandAbbreviation=expandAbbreviation;function getProfile(s,l){if(!l){l={}}let u=Object.assign({},ye,l);let f=u[s];if(!f||typeof f==="string"){if(f==="xhtml"){return{selfClosingStyle:"xhtml"}}return{}}let h={};for(let s in f){switch(s){case"tag_case":h["tagCase"]=f[s]==="lower"||f[s]==="upper"?f[s]:"";break;case"attr_case":h["attributeCase"]=f[s]==="lower"||f[s]==="upper"?f[s]:"";break;case"attr_quotes":h["attributeQuotes"]=f[s];break;case"tag_nl":h["format"]=f[s]===true||f[s]===false?f[s]:true;break;case"inline_break":h["inlineBreak"]=f[s];break;case"self_closing_tag":if(f[s]===true){h["selfClosingStyle"]="xml";break}if(f[s]===false){h["selfClosingStyle"]="html";break}h["selfClosingStyle"]=f[s];break;case"compact_bool":h["compactBooleanAttributes"]=f[s];break;default:h[s]=f[s];break}}return h}function getVariables(s){if(!s){return ve}return Object.assign({},ve,s)}function getFormatters(s,l){if(!l){return{}}if(!isStyleSheet(s)){let s={};for(let u in l){switch(u){case"filter.commentAfter":s["after"]=l[u];break;case"filter.commentBefore":s["before"]=l[u];break;case"filter.commentTrigger":s["trigger"]=l[u];break;default:break}}return{comment:s}}let u=typeof l["css.fuzzySearchMinScore"]==="number"?l["css.fuzzySearchMinScore"]:.3;if(u>1){u=1}else if(u<0){u=0}let f={fuzzySearchMinScore:u};for(let u in l){switch(u){case"css.floatUnit":f["floatUnit"]=l[u];break;case"css.intUnit":f["intUnit"]=l[u];break;case"css.unitAliases":let h={};l[u].split(",").forEach((s=>{if(!s||!s.trim()||s.indexOf(":")===-1){return}let l=s.substr(0,s.indexOf(":"));let u=s.substr(l.length+1);if(!l.trim()||!u){return}h[l.trim()]=u}));f["unitAliases"]=h;break;case`${s}.valueSeparator`:f["between"]=l[u];break;case`${s}.propertyEnd`:f["after"]=l[u];break;default:break}}return{stylesheet:f}}function updateExtensionsPath(s,l){if(!s||!s.trim()){resetSettingsFromFile();return Promise.resolve()}s=s.trim();l=l?l.trim():"";if(s[0]==="~"){s=v.join(M.homedir(),s.substr(1))}else if(!v.isAbsolute(s)&&l){s=v.join(l,s)}if(!v.isAbsolute(s)){resetSettingsFromFile();return Promise.reject("The path provided in emmet.extensionsPath setting should be absoulte path")}if(!dirExists(s)){resetSettingsFromFile();return Promise.reject(`The directory ${s} doesnt exist. Update emmet.extensionsPath setting`)}let u=s;let f=v.join(u,"snippets.json");let g=v.join(u,"syntaxProfiles.json");let q=new Promise(((s,l)=>{k.readFile(f,((u,g)=>{if(u){return l(`Error while fetching the file ${f}`)}try{let s=[];let u=O.parse(g.toString(),s);if(s.length>0){return l(`Found error ${O.ScanError[s[0].error]} while parsing the file ${f} at offset ${s[0].offset}`)}ve=u["variables"];ge={};B.clear();Object.keys(u).forEach((s=>{if(!u[s]["snippets"]){return}let l=isStyleSheet(s)?"css":"html";let f=u[s]["snippets"];if(u[l]&&u[l]["snippets"]&&l!==s){f=Object.assign({},u[l]["snippets"],u[s]["snippets"])}if(!isStyleSheet(s)){for(let s in f){if(f.hasOwnProperty(s)&&f[s].startsWith("<")&&f[s].endsWith(">")){f[s]=`{${f[s]}}`}}}else{re.set(s,Object.keys(f))}ge[s]=h.createSnippetsRegistry(s,f);let g=ge[s].all({type:"string"}).map((s=>s.key));B.set(s,g)}))}catch(s){return l(`Error while parsing the file ${f}`)}return s()}))}));let Y=new Promise(((s,l)=>{k.readFile(g,((l,u)=>{try{if(!l){ye=JSON.parse(u.toString())}}catch(s){}return s()}))}));return Promise.all([q,ve]).then((()=>Promise.resolve()))}l.updateExtensionsPath=updateExtensionsPath;function dirExists(s){try{return k.statSync(s).isDirectory()}catch(s){return false}}function resetSettingsFromFile(){ge={};B.clear();re.clear();ye={};ve={}}function getEmmetMode(s,l=[]){if(!s||l.indexOf(s)>-1){return}if(/\b(typescriptreact|javascriptreact|jsx-tags)\b/.test(s)){return"jsx"}if(s==="sass-indented"){return"sass"}if(s==="jade"){return"pug"}if(oe.indexOf(s)>-1){return s}}l.getEmmetMode=getEmmetMode;const we=/^[a-zA-Z]+:?#[\d.a-fA-F]{0,6}$/;const _e=/^#[\d,a-f,A-F]{1,6}$/;const Se=/^[a-z,A-Z]+$/;function getEmmetCompletionParticipants(s,l,u,f,h){return{getId:()=>"emmet",onCssProperty:g=>{if(g&&g.propertyName){const g=doComplete(s,l,u,f);if(h&&g){h.items=g.items;h.isIncomplete=true}}},onCssPropertyValue:g=>{if(g&&g.propertyValue){const v=extractAbbreviation(s,l,{syntax:"css",lookAhead:false});if(!v){return}const k=v.abbreviation===`${g.propertyName}:${g.propertyValue}`&&Se.test(g.propertyValue);if(k||_e.test(v.abbreviation)||v.abbreviation==="!"){const g=doComplete(s,l,u,f);if(h&&g){h.items=g.items;h.isIncomplete=true}}}},onHtmlContent:()=>{const g=doComplete(s,l,u,f);if(h&&g){h.items=g.items;h.isIncomplete=true}}}}l.getEmmetCompletionParticipants=getEmmetCompletionParticipants},233:function(s,l){"use strict";Object.defineProperty(l,"__esModule",{value:true});l.cssData={properties:["additive-symbols","align-content","align-items","justify-items","justify-self","justify-items","align-self","all","alt","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","behavior","block-size","border","border-block-end","border-block-start","border-block-end-color","border-block-start-color","border-block-end-style","border-block-start-style","border-block-end-width","border-block-start-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline-end","border-inline-start","border-inline-end-color","border-inline-start-color","border-inline-end-style","border-inline-start-style","border-inline-end-width","border-inline-start-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation-filters","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","columns","column-span","column-width","contain","content","counter-increment","counter-reset","cursor","direction","display","empty-cells","enable-background","fallback","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","font","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","glyph-orientation-horizontal","glyph-orientation-vertical","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","height","hyphens","image-orientation","image-rendering","ime-mode","inline-size","isolation","justify-content","kerning","left","letter-spacing","lighting-color","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block-end","margin-block-start","margin-bottom","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marker","marker-end","marker-mid","marker-start","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","motion","motion-offset","motion-path","motion-rotation","-moz-animation","-moz-animation-delay","-moz-animation-direction","-moz-animation-duration","-moz-animation-iteration-count","-moz-animation-name","-moz-animation-play-state","-moz-animation-timing-function","-moz-appearance","-moz-backface-visibility","-moz-background-clip","-moz-background-inline-policy","-moz-background-origin","-moz-border-bottom-colors","-moz-border-image","-moz-border-left-colors","-moz-border-right-colors","-moz-border-top-colors","-moz-box-align","-moz-box-direction","-moz-box-flex","-moz-box-flexgroup","-moz-box-ordinal-group","-moz-box-orient","-moz-box-pack","-moz-box-sizing","-moz-column-count","-moz-column-gap","-moz-column-rule","-moz-column-rule-color","-moz-column-rule-style","-moz-column-rule-width","-moz-columns","-moz-column-width","-moz-font-feature-settings","-moz-hyphens","-moz-perspective","-moz-perspective-origin","-moz-text-align-last","-moz-text-decoration-color","-moz-text-decoration-line","-moz-text-decoration-style","-moz-text-size-adjust","-moz-transform","-moz-transform-origin","-moz-transition","-moz-transition-delay","-moz-transition-duration","-moz-transition-property","-moz-transition-timing-function","-moz-user-focus","-moz-user-select","-ms-accelerator","-ms-behavior","-ms-block-progression","-ms-content-zoom-chaining","-ms-content-zooming","-ms-content-zoom-limit","-ms-content-zoom-limit-max","-ms-content-zoom-limit-min","-ms-content-zoom-snap","-ms-content-zoom-snap-points","-ms-content-zoom-snap-type","-ms-filter","-ms-flex","-ms-flex-align","-ms-flex-direction","-ms-flex-flow","-ms-flex-item-align","-ms-flex-line-pack","-ms-flex-order","-ms-flex-pack","-ms-flex-wrap","-ms-flow-from","-ms-flow-into","-ms-grid-column","-ms-grid-column-align","-ms-grid-columns","-ms-grid-column-span","-ms-grid-layer","-ms-grid-row","-ms-grid-row-align","-ms-grid-rows","-ms-grid-row-span","-ms-high-contrast-adjust","-ms-hyphenate-limit-chars","-ms-hyphenate-limit-lines","-ms-hyphenate-limit-zone","-ms-hyphens","-ms-ime-mode","-ms-interpolation-mode","-ms-layout-grid","-ms-layout-grid-char","-ms-layout-grid-line","-ms-layout-grid-mode","-ms-layout-grid-type","-ms-line-break","-ms-overflow-style","-ms-perspective","-ms-perspective-origin","-ms-perspective-origin-x","-ms-perspective-origin-y","-ms-progress-appearance","-ms-scrollbar-3dlight-color","-ms-scrollbar-arrow-color","-ms-scrollbar-base-color","-ms-scrollbar-darkshadow-color","-ms-scrollbar-face-color","-ms-scrollbar-highlight-color","-ms-scrollbar-shadow-color","-ms-scrollbar-track-color","-ms-scroll-chaining","-ms-scroll-limit","-ms-scroll-limit-x-max","-ms-scroll-limit-x-min","-ms-scroll-limit-y-max","-ms-scroll-limit-y-min","-ms-scroll-rails","-ms-scroll-snap-points-x","-ms-scroll-snap-points-y","-ms-scroll-snap-type","-ms-scroll-snap-x","-ms-scroll-snap-y","-ms-scroll-translation","-ms-text-align-last","-ms-text-autospace","-ms-text-combine-horizontal","-ms-text-justify","-ms-text-kashida-space","-ms-text-overflow","-ms-text-size-adjust","-ms-text-underline-position","-ms-touch-action","-ms-touch-select","-ms-transform","-ms-transform-origin","-ms-transform-origin-x","-ms-transform-origin-y","-ms-transform-origin-z","-ms-user-select","-ms-word-break","-ms-word-wrap","-ms-wrap-flow","-ms-wrap-margin","-ms-wrap-through","-ms-writing-mode","-ms-zoom","-ms-zoom-animation","nav-down","nav-index","nav-left","nav-right","nav-up","negative","-o-animation","-o-animation-delay","-o-animation-direction","-o-animation-duration","-o-animation-fill-mode","-o-animation-iteration-count","-o-animation-name","-o-animation-play-state","-o-animation-timing-function","object-fit","object-position","-o-border-image","-o-object-fit","-o-object-position","opacity","order","orphans","-o-table-baseline","-o-tab-size","-o-text-overflow","-o-transform","-o-transform-origin","-o-transition","-o-transition-delay","-o-transition-duration","-o-transition-property","-o-transition-timing-function","offset-block-end","offset-block-start","offset-inline-end","offset-inline-start","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","pad","padding","padding-bottom","padding-block-end","padding-block-start","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","paint-order","perspective","perspective-origin","pointer-events","position","prefix","quotes","range","resize","right","ruby-align","ruby-overhang","ruby-position","ruby-span","scrollbar-3dlight-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-darkshadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","scroll-behavior","scroll-snap-coordinate","scroll-snap-destination","scroll-snap-points-x","scroll-snap-points-y","scroll-snap-type","shape-image-threshold","shape-margin","shape-outside","shape-rendering","size","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","suffix","system","symbols","table-layout","tab-size","text-align","text-align-last","text-anchor","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","unicode-range","user-select","vertical-align","visibility","-webkit-animation","-webkit-animation-delay","-webkit-animation-direction","-webkit-animation-duration","-webkit-animation-fill-mode","-webkit-animation-iteration-count","-webkit-animation-name","-webkit-animation-play-state","-webkit-animation-timing-function","-webkit-appearance","-webkit-backdrop-filter","-webkit-backface-visibility","-webkit-background-clip","-webkit-background-composite","-webkit-background-origin","-webkit-border-image","-webkit-box-align","-webkit-box-direction","-webkit-box-flex","-webkit-box-flex-group","-webkit-box-ordinal-group","-webkit-box-orient","-webkit-box-pack","-webkit-box-reflect","-webkit-box-sizing","-webkit-break-after","-webkit-break-before","-webkit-break-inside","-webkit-column-break-after","-webkit-column-break-before","-webkit-column-break-inside","-webkit-column-count","-webkit-column-gap","-webkit-column-rule","-webkit-column-rule-color","-webkit-column-rule-style","-webkit-column-rule-width","-webkit-columns","-webkit-column-span","-webkit-column-width","-webkit-filter","-webkit-flow-from","-webkit-flow-into","-webkit-font-feature-settings","-webkit-hyphens","-webkit-line-break","-webkit-margin-bottom-collapse","-webkit-margin-collapse","-webkit-margin-start","-webkit-margin-top-collapse","-webkit-mask-clip","-webkit-mask-image","-webkit-mask-origin","-webkit-mask-repeat","-webkit-mask-size","-webkit-nbsp-mode","-webkit-overflow-scrolling","-webkit-padding-start","-webkit-perspective","-webkit-perspective-origin","-webkit-region-fragment","-webkit-tap-highlight-color","-webkit-text-fill-color","-webkit-text-size-adjust","-webkit-text-stroke","-webkit-text-stroke-color","-webkit-text-stroke-width","-webkit-touch-callout","-webkit-transform","-webkit-transform-origin","-webkit-transform-origin-x","-webkit-transform-origin-y","-webkit-transform-origin-z","-webkit-transform-style","-webkit-transition","-webkit-transition-delay","-webkit-transition-duration","-webkit-transition-property","-webkit-transition-timing-function","-webkit-user-drag","-webkit-user-modify","-webkit-user-select","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","zoom"]};l.htmlData={tags:["body","head","html","address","blockquote","dd","div","section","article","aside","header","footer","nav","menu","dl","dt","fieldset","form","frame","frameset","h1","h2","h3","h4","h5","h6","iframe","noframes","object","ol","p","ul","applet","center","dir","hr","pre","a","abbr","acronym","area","b","base","basefont","bdo","big","br","button","caption","cite","code","col","colgroup","del","dfn","em","font","head","html","i","img","input","ins","isindex","kbd","label","legend","li","link","map","meta","noscript","optgroup","option","param","q","s","samp","script","select","small","span","strike","strong","style","sub","sup","table","tbody","td","textarea","tfoot","th","thead","title","tr","tt","u","var","canvas","main","figure","plaintext"]}},234:function(s){"use strict";class StreamReader{constructor(s){this.string=s;this.pos=this.string.length}sol(){return this.pos===0}peek(s){return this.string.charCodeAt(this.pos-1+(s||0))}prev(){if(!this.sol()){return this.string.charCodeAt(--this.pos)}}eat(s){const l=typeof s==="function"?s(this.peek()):s===this.peek();if(l){this.pos--}return l}eatWhile(s){const l=this.pos;while(this.eat(s)){}return this.pos<l}}const l=39;const u=34;const f=92;function isQuote(s){return s===l||s===u}function eatQuoted(s){const l=s.pos;const u=s.prev();if(isQuote(u)){while(!s.sol()){if(s.prev()===u&&s.peek()!==f){return true}}}s.pos=l;return false}const h=9;const g=32;const v=45;const k=47;const O=58;const M=61;const q=60;const B=62;var d=function(s){const l=s.pos;if(!s.eat(B)){return false}let u=false;s.eat(k);while(!s.sol()){s.eatWhile(isWhiteSpace);if(eatIdent(s)){if(s.eat(k)){u=s.eat(q);break}else if(s.eat(q)){u=true;break}else if(s.eat(isWhiteSpace)){continue}else if(s.eat(M)){if(eatIdent(s)){continue}break}else if(eatAttributeWithUnquotedValue(s)){u=true;break}break}if(eatAttribute(s)){continue}break}s.pos=l;return u};function eatAttribute(s){return eatAttributeWithQuotedValue(s)||eatAttributeWithUnquotedValue(s)}function eatAttributeWithQuotedValue(s){const l=s.pos;if(eatQuoted(s)&&s.eat(M)&&eatIdent(s)){return true}s.pos=l;return false}function eatAttributeWithUnquotedValue(s){const l=s.pos;if(s.eatWhile(isUnquotedValue)&&s.eat(M)&&eatIdent(s)){return true}s.pos=l;return false}function eatIdent(s){return s.eatWhile(isIdent)}function isIdent(s){return s===O||s===v||isAlpha(s)||isNumber(s)}function isAlpha(s){s&=~32;return s>=65&&s<=90}function isNumber(s){return s>47&&s<58}function isWhiteSpace(s){return s===g||s===h}function isUnquotedValue(s){return s&&s!==M&&!isWhiteSpace(s)&&!isQuote(s)}const p=s=>s.charCodeAt(0);const Y=p("[");const te=p("]");const re=p("(");const ne=p(")");const ie=p("{");const se=p("}");const oe=new Set("#.*:$-_!@%^+>/".split("").map(p));const ae=(new Map).set(Y,te).set(re,ne).set(ie,se);const le={syntax:"markup",lookAhead:null};function extractAbbreviation(s,l,u){l=Math.min(s.length,Math.max(0,l==null?s.length:l));if(typeof u==="boolean"){u=Object.assign(le,{lookAhead:u})}else{u=Object.assign(le,u)}if(u.lookAhead==null||u.lookAhead===true){l=offsetPastAutoClosed(s,l,u)}let f;const h=new StreamReader(s);h.pos=l;const g=[];while(!h.sol()){f=h.peek();if(isCloseBrace(f,u.syntax)){g.push(f)}else if(isOpenBrace(f,u.syntax)){if(g.pop()!==ae.get(f)){break}}else if(has(g,te)||has(g,se)){h.pos--;continue}else if(d(h)||!isAbbreviation(f)){break}h.pos--}if(!g.length&&h.pos!==l){const u=s.slice(h.pos,l).replace(/^[*+>^]+/,"");return{abbreviation:u,location:l-u.length}}}function offsetPastAutoClosed(s,l,u){if(isQuote(s.charCodeAt(l))){l++}while(isCloseBrace(s.charCodeAt(l),u.syntax)){l++}return l}function has(s,l){return s.indexOf(l)!==-1}function isAbbreviation(s){return s>64&&s<91||s>96&&s<123||s>47&&s<58||oe.has(s)}function isOpenBrace(s,l){return s===re||l==="markup"&&(s===Y||s===ie)}function isCloseBrace(s,l){return s===ne||l==="markup"&&(s===te||s===se)}s.exports=extractAbbreviation},280:function(s,l){(function(u){if(true&&typeof s.exports==="object"){var f=u(require,l);if(f!==undefined)s.exports=f}else if(typeof define==="function"&&define.amd){define(["require","exports"],u)}})((function(s,l){"use strict";Object.defineProperty(l,"__esModule",{value:true});var u;(function(s){function create(s,l){return{line:s,character:l}}s.create=create;function is(s){var l=s;return Qe.objectLiteral(l)&&Qe.number(l.line)&&Qe.number(l.character)}s.is=is})(u=l.Position||(l.Position={}));var f;(function(s){function create(s,l,f,h){if(Qe.number(s)&&Qe.number(l)&&Qe.number(f)&&Qe.number(h)){return{start:u.create(s,l),end:u.create(f,h)}}else if(u.is(s)&&u.is(l)){return{start:s,end:l}}else{throw new Error("Range#create called with invalid arguments["+s+", "+l+", "+f+", "+h+"]")}}s.create=create;function is(s){var l=s;return Qe.objectLiteral(l)&&u.is(l.start)&&u.is(l.end)}s.is=is})(f=l.Range||(l.Range={}));var h;(function(s){function create(s,l){return{uri:s,range:l}}s.create=create;function is(s){var l=s;return Qe.defined(l)&&f.is(l.range)&&(Qe.string(l.uri)||Qe.undefined(l.uri))}s.is=is})(h=l.Location||(l.Location={}));var g;(function(s){function create(s,l,u,f){return{targetUri:s,targetRange:l,targetSelectionRange:u,originSelectionRange:f}}s.create=create;function is(s){var l=s;return Qe.defined(l)&&f.is(l.targetRange)&&Qe.string(l.targetUri)&&(f.is(l.targetSelectionRange)||Qe.undefined(l.targetSelectionRange))&&(f.is(l.originSelectionRange)||Qe.undefined(l.originSelectionRange))}s.is=is})(g=l.LocationLink||(l.LocationLink={}));var v;(function(s){function create(s,l,u,f){return{red:s,green:l,blue:u,alpha:f}}s.create=create;function is(s){var l=s;return Qe.number(l.red)&&Qe.number(l.green)&&Qe.number(l.blue)&&Qe.number(l.alpha)}s.is=is})(v=l.Color||(l.Color={}));var k;(function(s){function create(s,l){return{range:s,color:l}}s.create=create;function is(s){var l=s;return f.is(l.range)&&v.is(l.color)}s.is=is})(k=l.ColorInformation||(l.ColorInformation={}));var O;(function(s){function create(s,l,u){return{label:s,textEdit:l,additionalTextEdits:u}}s.create=create;function is(s){var l=s;return Qe.string(l.label)&&(Qe.undefined(l.textEdit)||ie.is(l))&&(Qe.undefined(l.additionalTextEdits)||Qe.typedArray(l.additionalTextEdits,ie.is))}s.is=is})(O=l.ColorPresentation||(l.ColorPresentation={}));var M;(function(s){s["Comment"]="comment";s["Imports"]="imports";s["Region"]="region"})(M=l.FoldingRangeKind||(l.FoldingRangeKind={}));var q;(function(s){function create(s,l,u,f,h){var g={startLine:s,endLine:l};if(Qe.defined(u)){g.startCharacter=u}if(Qe.defined(f)){g.endCharacter=f}if(Qe.defined(h)){g.kind=h}return g}s.create=create;function is(s){var l=s;return Qe.number(l.startLine)&&Qe.number(l.startLine)&&(Qe.undefined(l.startCharacter)||Qe.number(l.startCharacter))&&(Qe.undefined(l.endCharacter)||Qe.number(l.endCharacter))&&(Qe.undefined(l.kind)||Qe.string(l.kind))}s.is=is})(q=l.FoldingRange||(l.FoldingRange={}));var B;(function(s){function create(s,l){return{location:s,message:l}}s.create=create;function is(s){var l=s;return Qe.defined(l)&&h.is(l.location)&&Qe.string(l.message)}s.is=is})(B=l.DiagnosticRelatedInformation||(l.DiagnosticRelatedInformation={}));var Y;(function(s){s.Error=1;s.Warning=2;s.Information=3;s.Hint=4})(Y=l.DiagnosticSeverity||(l.DiagnosticSeverity={}));var te;(function(s){s.Unnecessary=1;s.Deprecated=2})(te=l.DiagnosticTag||(l.DiagnosticTag={}));var re;(function(s){function create(s,l,u,f,h,g){var v={range:s,message:l};if(Qe.defined(u)){v.severity=u}if(Qe.defined(f)){v.code=f}if(Qe.defined(h)){v.source=h}if(Qe.defined(g)){v.relatedInformation=g}return v}s.create=create;function is(s){var l=s;return Qe.defined(l)&&f.is(l.range)&&Qe.string(l.message)&&(Qe.number(l.severity)||Qe.undefined(l.severity))&&(Qe.number(l.code)||Qe.string(l.code)||Qe.undefined(l.code))&&(Qe.string(l.source)||Qe.undefined(l.source))&&(Qe.undefined(l.relatedInformation)||Qe.typedArray(l.relatedInformation,B.is))}s.is=is})(re=l.Diagnostic||(l.Diagnostic={}));var ne;(function(s){function create(s,l){var u=[];for(var f=2;f<arguments.length;f++){u[f-2]=arguments[f]}var h={title:s,command:l};if(Qe.defined(u)&&u.length>0){h.arguments=u}return h}s.create=create;function is(s){var l=s;return Qe.defined(l)&&Qe.string(l.title)&&Qe.string(l.command)}s.is=is})(ne=l.Command||(l.Command={}));var ie;(function(s){function replace(s,l){return{range:s,newText:l}}s.replace=replace;function insert(s,l){return{range:{start:s,end:s},newText:l}}s.insert=insert;function del(s){return{range:s,newText:""}}s.del=del;function is(s){var l=s;return Qe.objectLiteral(l)&&Qe.string(l.newText)&&f.is(l.range)}s.is=is})(ie=l.TextEdit||(l.TextEdit={}));var se;(function(s){function create(s,l){return{textDocument:s,edits:l}}s.create=create;function is(s){var l=s;return Qe.defined(l)&&de.is(l.textDocument)&&Array.isArray(l.edits)}s.is=is})(se=l.TextDocumentEdit||(l.TextDocumentEdit={}));var oe;(function(s){function create(s,l){var u={kind:"create",uri:s};if(l!==void 0&&(l.overwrite!==void 0||l.ignoreIfExists!==void 0)){u.options=l}return u}s.create=create;function is(s){var l=s;return l&&l.kind==="create"&&Qe.string(l.uri)&&(l.options===void 0||(l.options.overwrite===void 0||Qe.boolean(l.options.overwrite))&&(l.options.ignoreIfExists===void 0||Qe.boolean(l.options.ignoreIfExists)))}s.is=is})(oe=l.CreateFile||(l.CreateFile={}));var ae;(function(s){function create(s,l,u){var f={kind:"rename",oldUri:s,newUri:l};if(u!==void 0&&(u.overwrite!==void 0||u.ignoreIfExists!==void 0)){f.options=u}return f}s.create=create;function is(s){var l=s;return l&&l.kind==="rename"&&Qe.string(l.oldUri)&&Qe.string(l.newUri)&&(l.options===void 0||(l.options.overwrite===void 0||Qe.boolean(l.options.overwrite))&&(l.options.ignoreIfExists===void 0||Qe.boolean(l.options.ignoreIfExists)))}s.is=is})(ae=l.RenameFile||(l.RenameFile={}));var le;(function(s){function create(s,l){var u={kind:"delete",uri:s};if(l!==void 0&&(l.recursive!==void 0||l.ignoreIfNotExists!==void 0)){u.options=l}return u}s.create=create;function is(s){var l=s;return l&&l.kind==="delete"&&Qe.string(l.uri)&&(l.options===void 0||(l.options.recursive===void 0||Qe.boolean(l.options.recursive))&&(l.options.ignoreIfNotExists===void 0||Qe.boolean(l.options.ignoreIfNotExists)))}s.is=is})(le=l.DeleteFile||(l.DeleteFile={}));var ue;(function(s){function is(s){var l=s;return l&&(l.changes!==void 0||l.documentChanges!==void 0)&&(l.documentChanges===void 0||l.documentChanges.every((function(s){if(Qe.string(s.kind)){return oe.is(s)||ae.is(s)||le.is(s)}else{return se.is(s)}})))}s.is=is})(ue=l.WorkspaceEdit||(l.WorkspaceEdit={}));var ce=function(){function TextEditChangeImpl(s){this.edits=s}TextEditChangeImpl.prototype.insert=function(s,l){this.edits.push(ie.insert(s,l))};TextEditChangeImpl.prototype.replace=function(s,l){this.edits.push(ie.replace(s,l))};TextEditChangeImpl.prototype.delete=function(s){this.edits.push(ie.del(s))};TextEditChangeImpl.prototype.add=function(s){this.edits.push(s)};TextEditChangeImpl.prototype.all=function(){return this.edits};TextEditChangeImpl.prototype.clear=function(){this.edits.splice(0,this.edits.length)};return TextEditChangeImpl}();var fe=function(){function WorkspaceChange(s){var l=this;this._textEditChanges=Object.create(null);if(s){this._workspaceEdit=s;if(s.documentChanges){s.documentChanges.forEach((function(s){if(se.is(s)){var u=new ce(s.edits);l._textEditChanges[s.textDocument.uri]=u}}))}else if(s.changes){Object.keys(s.changes).forEach((function(u){var f=new ce(s.changes[u]);l._textEditChanges[u]=f}))}}}Object.defineProperty(WorkspaceChange.prototype,"edit",{get:function(){return this._workspaceEdit},enumerable:true,configurable:true});WorkspaceChange.prototype.getTextEditChange=function(s){if(de.is(s)){if(!this._workspaceEdit){this._workspaceEdit={documentChanges:[]}}if(!this._workspaceEdit.documentChanges){throw new Error("Workspace edit is not configured for document changes.")}var l=s;var u=this._textEditChanges[l.uri];if(!u){var f=[];var h={textDocument:l,edits:f};this._workspaceEdit.documentChanges.push(h);u=new ce(f);this._textEditChanges[l.uri]=u}return u}else{if(!this._workspaceEdit){this._workspaceEdit={changes:Object.create(null)}}if(!this._workspaceEdit.changes){throw new Error("Workspace edit is not configured for normal text edit changes.")}var u=this._textEditChanges[s];if(!u){var f=[];this._workspaceEdit.changes[s]=f;u=new ce(f);this._textEditChanges[s]=u}return u}};WorkspaceChange.prototype.createFile=function(s,l){this.checkDocumentChanges();this._workspaceEdit.documentChanges.push(oe.create(s,l))};WorkspaceChange.prototype.renameFile=function(s,l,u){this.checkDocumentChanges();this._workspaceEdit.documentChanges.push(ae.create(s,l,u))};WorkspaceChange.prototype.deleteFile=function(s,l){this.checkDocumentChanges();this._workspaceEdit.documentChanges.push(le.create(s,l))};WorkspaceChange.prototype.checkDocumentChanges=function(){if(!this._workspaceEdit||!this._workspaceEdit.documentChanges){throw new Error("Workspace edit is not configured for document changes.")}};return WorkspaceChange}();l.WorkspaceChange=fe;var pe;(function(s){function create(s){return{uri:s}}s.create=create;function is(s){var l=s;return Qe.defined(l)&&Qe.string(l.uri)}s.is=is})(pe=l.TextDocumentIdentifier||(l.TextDocumentIdentifier={}));var de;(function(s){function create(s,l){return{uri:s,version:l}}s.create=create;function is(s){var l=s;return Qe.defined(l)&&Qe.string(l.uri)&&(l.version===null||Qe.number(l.version))}s.is=is})(de=l.VersionedTextDocumentIdentifier||(l.VersionedTextDocumentIdentifier={}));var he;(function(s){function create(s,l,u,f){return{uri:s,languageId:l,version:u,text:f}}s.create=create;function is(s){var l=s;return Qe.defined(l)&&Qe.string(l.uri)&&Qe.string(l.languageId)&&Qe.number(l.version)&&Qe.string(l.text)}s.is=is})(he=l.TextDocumentItem||(l.TextDocumentItem={}));var ge;(function(s){s.PlainText="plaintext";s.Markdown="markdown"})(ge=l.MarkupKind||(l.MarkupKind={}));(function(s){function is(l){var u=l;return u===s.PlainText||u===s.Markdown}s.is=is})(ge=l.MarkupKind||(l.MarkupKind={}));var ve;(function(s){function is(s){var l=s;return Qe.objectLiteral(s)&&ge.is(l.kind)&&Qe.string(l.value)}s.is=is})(ve=l.MarkupContent||(l.MarkupContent={}));var ye;(function(s){s.Text=1;s.Method=2;s.Function=3;s.Constructor=4;s.Field=5;s.Variable=6;s.Class=7;s.Interface=8;s.Module=9;s.Property=10;s.Unit=11;s.Value=12;s.Enum=13;s.Keyword=14;s.Snippet=15;s.Color=16;s.File=17;s.Reference=18;s.Folder=19;s.EnumMember=20;s.Constant=21;s.Struct=22;s.Event=23;s.Operator=24;s.TypeParameter=25})(ye=l.CompletionItemKind||(l.CompletionItemKind={}));var we;(function(s){s.PlainText=1;s.Snippet=2})(we=l.InsertTextFormat||(l.InsertTextFormat={}));var _e;(function(s){s.Deprecated=1})(_e=l.CompletionItemTag||(l.CompletionItemTag={}));var Se;(function(s){function create(s){return{label:s}}s.create=create})(Se=l.CompletionItem||(l.CompletionItem={}));var ke;(function(s){function create(s,l){return{items:s?s:[],isIncomplete:!!l}}s.create=create})(ke=l.CompletionList||(l.CompletionList={}));var Ce;(function(s){function fromPlainText(s){return s.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}s.fromPlainText=fromPlainText;function is(s){var l=s;return Qe.string(l)||Qe.objectLiteral(l)&&Qe.string(l.language)&&Qe.string(l.value)}s.is=is})(Ce=l.MarkedString||(l.MarkedString={}));var Ee;(function(s){function is(s){var l=s;return!!l&&Qe.objectLiteral(l)&&(ve.is(l.contents)||Ce.is(l.contents)||Qe.typedArray(l.contents,Ce.is))&&(s.range===void 0||f.is(s.range))}s.is=is})(Ee=l.Hover||(l.Hover={}));var Re;(function(s){function create(s,l){return l?{label:s,documentation:l}:{label:s}}s.create=create})(Re=l.ParameterInformation||(l.ParameterInformation={}));var Oe;(function(s){function create(s,l){var u=[];for(var f=2;f<arguments.length;f++){u[f-2]=arguments[f]}var h={label:s};if(Qe.defined(l)){h.documentation=l}if(Qe.defined(u)){h.parameters=u}else{h.parameters=[]}return h}s.create=create})(Oe=l.SignatureInformation||(l.SignatureInformation={}));var De;(function(s){s.Text=1;s.Read=2;s.Write=3})(De=l.DocumentHighlightKind||(l.DocumentHighlightKind={}));var Ie;(function(s){function create(s,l){var u={range:s};if(Qe.number(l)){u.kind=l}return u}s.create=create})(Ie=l.DocumentHighlight||(l.DocumentHighlight={}));var Me;(function(s){s.File=1;s.Module=2;s.Namespace=3;s.Package=4;s.Class=5;s.Method=6;s.Property=7;s.Field=8;s.Constructor=9;s.Enum=10;s.Interface=11;s.Function=12;s.Variable=13;s.Constant=14;s.String=15;s.Number=16;s.Boolean=17;s.Array=18;s.Object=19;s.Key=20;s.Null=21;s.EnumMember=22;s.Struct=23;s.Event=24;s.Operator=25;s.TypeParameter=26})(Me=l.SymbolKind||(l.SymbolKind={}));var Ne;(function(s){s.Deprecated=1})(Ne=l.SymbolTag||(l.SymbolTag={}));var Le;(function(s){function create(s,l,u,f,h){var g={name:s,kind:l,location:{uri:f,range:u}};if(h){g.containerName=h}return g}s.create=create})(Le=l.SymbolInformation||(l.SymbolInformation={}));var je;(function(s){function create(s,l,u,f,h,g){var v={name:s,detail:l,kind:u,range:f,selectionRange:h};if(g!==void 0){v.children=g}return v}s.create=create;function is(s){var l=s;return l&&Qe.string(l.name)&&Qe.number(l.kind)&&f.is(l.range)&&f.is(l.selectionRange)&&(l.detail===void 0||Qe.string(l.detail))&&(l.deprecated===void 0||Qe.boolean(l.deprecated))&&(l.children===void 0||Array.isArray(l.children))}s.is=is})(je=l.DocumentSymbol||(l.DocumentSymbol={}));var Fe;(function(s){s.Empty="";s.QuickFix="quickfix";s.Refactor="refactor";s.RefactorExtract="refactor.extract";s.RefactorInline="refactor.inline";s.RefactorRewrite="refactor.rewrite";s.Source="source";s.SourceOrganizeImports="source.organizeImports";s.SourceFixAll="source.fixAll"})(Fe=l.CodeActionKind||(l.CodeActionKind={}));var qe;(function(s){function create(s,l){var u={diagnostics:s};if(l!==void 0&&l!==null){u.only=l}return u}s.create=create;function is(s){var l=s;return Qe.defined(l)&&Qe.typedArray(l.diagnostics,re.is)&&(l.only===void 0||Qe.typedArray(l.only,Qe.string))}s.is=is})(qe=l.CodeActionContext||(l.CodeActionContext={}));var $e;(function(s){function create(s,l,u){var f={title:s};if(ne.is(l)){f.command=l}else{f.edit=l}if(u!==void 0){f.kind=u}return f}s.create=create;function is(s){var l=s;return l&&Qe.string(l.title)&&(l.diagnostics===void 0||Qe.typedArray(l.diagnostics,re.is))&&(l.kind===void 0||Qe.string(l.kind))&&(l.edit!==void 0||l.command!==void 0)&&(l.command===void 0||ne.is(l.command))&&(l.isPreferred===void 0||Qe.boolean(l.isPreferred))&&(l.edit===void 0||ue.is(l.edit))}s.is=is})($e=l.CodeAction||(l.CodeAction={}));var We;(function(s){function create(s,l){var u={range:s};if(Qe.defined(l)){u.data=l}return u}s.create=create;function is(s){var l=s;return Qe.defined(l)&&f.is(l.range)&&(Qe.undefined(l.command)||ne.is(l.command))}s.is=is})(We=l.CodeLens||(l.CodeLens={}));var ze;(function(s){function create(s,l){return{tabSize:s,insertSpaces:l}}s.create=create;function is(s){var l=s;return Qe.defined(l)&&Qe.number(l.tabSize)&&Qe.boolean(l.insertSpaces)}s.is=is})(ze=l.FormattingOptions||(l.FormattingOptions={}));var Ve;(function(s){function create(s,l,u){return{range:s,target:l,data:u}}s.create=create;function is(s){var l=s;return Qe.defined(l)&&f.is(l.range)&&(Qe.undefined(l.target)||Qe.string(l.target))}s.is=is})(Ve=l.DocumentLink||(l.DocumentLink={}));var Ge;(function(s){function create(s,l){return{range:s,parent:l}}s.create=create;function is(l){var u=l;return u!==undefined&&f.is(u.range)&&(u.parent===undefined||s.is(u.parent))}s.is=is})(Ge=l.SelectionRange||(l.SelectionRange={}));l.EOL=["\n","\r\n","\r"];var Ye;(function(s){function create(s,l,u,f){return new Ke(s,l,u,f)}s.create=create;function is(s){var l=s;return Qe.defined(l)&&Qe.string(l.uri)&&(Qe.undefined(l.languageId)||Qe.string(l.languageId))&&Qe.number(l.lineCount)&&Qe.func(l.getText)&&Qe.func(l.positionAt)&&Qe.func(l.offsetAt)?true:false}s.is=is;function applyEdits(s,l){var u=s.getText();var f=mergeSort(l,(function(s,l){var u=s.range.start.line-l.range.start.line;if(u===0){return s.range.start.character-l.range.start.character}return u}));var h=u.length;for(var g=f.length-1;g>=0;g--){var v=f[g];var k=s.offsetAt(v.range.start);var O=s.offsetAt(v.range.end);if(O<=h){u=u.substring(0,k)+v.newText+u.substring(O,u.length)}else{throw new Error("Overlapping edit")}h=k}return u}s.applyEdits=applyEdits;function mergeSort(s,l){if(s.length<=1){return s}var u=s.length/2|0;var f=s.slice(0,u);var h=s.slice(u);mergeSort(f,l);mergeSort(h,l);var g=0;var v=0;var k=0;while(g<f.length&&v<h.length){var O=l(f[g],h[v]);if(O<=0){s[k++]=f[g++]}else{s[k++]=h[v++]}}while(g<f.length){s[k++]=f[g++]}while(v<h.length){s[k++]=h[v++]}return s}})(Ye=l.TextDocument||(l.TextDocument={}));var Ke=function(){function FullTextDocument(s,l,u,f){this._uri=s;this._languageId=l;this._version=u;this._content=f;this._lineOffsets=undefined}Object.defineProperty(FullTextDocument.prototype,"uri",{get:function(){return this._uri},enumerable:true,configurable:true});Object.defineProperty(FullTextDocument.prototype,"languageId",{get:function(){return this._languageId},enumerable:true,configurable:true});Object.defineProperty(FullTextDocument.prototype,"version",{get:function(){return this._version},enumerable:true,configurable:true});FullTextDocument.prototype.getText=function(s){if(s){var l=this.offsetAt(s.start);var u=this.offsetAt(s.end);return this._content.substring(l,u)}return this._content};FullTextDocument.prototype.update=function(s,l){this._content=s.text;this._version=l;this._lineOffsets=undefined};FullTextDocument.prototype.getLineOffsets=function(){if(this._lineOffsets===undefined){var s=[];var l=this._content;var u=true;for(var f=0;f<l.length;f++){if(u){s.push(f);u=false}var h=l.charAt(f);u=h==="\r"||h==="\n";if(h==="\r"&&f+1<l.length&&l.charAt(f+1)==="\n"){f++}}if(u&&l.length>0){s.push(l.length)}this._lineOffsets=s}return this._lineOffsets};FullTextDocument.prototype.positionAt=function(s){s=Math.max(Math.min(s,this._content.length),0);var l=this.getLineOffsets();var f=0,h=l.length;if(h===0){return u.create(0,s)}while(f<h){var g=Math.floor((f+h)/2);if(l[g]>s){h=g}else{f=g+1}}var v=f-1;return u.create(v,s-l[v])};FullTextDocument.prototype.offsetAt=function(s){var l=this.getLineOffsets();if(s.line>=l.length){return this._content.length}else if(s.line<0){return 0}var u=l[s.line];var f=s.line+1<l.length?l[s.line+1]:this._content.length;return Math.max(Math.min(u+s.character,f),u)};Object.defineProperty(FullTextDocument.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:true,configurable:true});return FullTextDocument}();var Qe;(function(s){var l=Object.prototype.toString;function defined(s){return typeof s!=="undefined"}s.defined=defined;function undefined(s){return typeof s==="undefined"}s.undefined=undefined;function boolean(s){return s===true||s===false}s.boolean=boolean;function string(s){return l.call(s)==="[object String]"}s.string=string;function number(s){return l.call(s)==="[object Number]"}s.number=number;function func(s){return l.call(s)==="[object Function]"}s.func=func;function objectLiteral(s){return s!==null&&typeof s==="object"}s.objectLiteral=objectLiteral;function typedArray(s,l){return Array.isArray(s)&&s.every(l)}s.typedArray=typedArray})(Qe||(Qe={}))}))},622:function(s){s.exports=u(85622)},747:function(s){s.exports=u(35747)},762:function(s,l){(function(u){if(true&&typeof s.exports==="object"){var f=u(require,l);if(f!==undefined)s.exports=f}else if(typeof define==="function"&&define.amd){define(["require","exports","./format","./edit"],u)}})((function(s,l){"use strict";Object.defineProperty(l,"__esModule",{value:true});var u=undefined;var f=undefined;var h;(function(s){s[s["None"]=0]="None";s[s["UnexpectedEndOfComment"]=1]="UnexpectedEndOfComment";s[s["UnexpectedEndOfString"]=2]="UnexpectedEndOfString";s[s["UnexpectedEndOfNumber"]=3]="UnexpectedEndOfNumber";s[s["InvalidUnicode"]=4]="InvalidUnicode";s[s["InvalidEscapeCharacter"]=5]="InvalidEscapeCharacter";s[s["InvalidCharacter"]=6]="InvalidCharacter"})(h=l.ScanError||(l.ScanError={}));var g;(function(s){s[s["Unknown"]=0]="Unknown";s[s["OpenBraceToken"]=1]="OpenBraceToken";s[s["CloseBraceToken"]=2]="CloseBraceToken";s[s["OpenBracketToken"]=3]="OpenBracketToken";s[s["CloseBracketToken"]=4]="CloseBracketToken";s[s["CommaToken"]=5]="CommaToken";s[s["ColonToken"]=6]="ColonToken";s[s["NullKeyword"]=7]="NullKeyword";s[s["TrueKeyword"]=8]="TrueKeyword";s[s["FalseKeyword"]=9]="FalseKeyword";s[s["StringLiteral"]=10]="StringLiteral";s[s["NumericLiteral"]=11]="NumericLiteral";s[s["LineCommentTrivia"]=12]="LineCommentTrivia";s[s["BlockCommentTrivia"]=13]="BlockCommentTrivia";s[s["LineBreakTrivia"]=14]="LineBreakTrivia";s[s["Trivia"]=15]="Trivia";s[s["EOF"]=16]="EOF"})(g=l.SyntaxKind||(l.SyntaxKind={}));function createScanner(s,l){if(l===void 0){l=false}var u=0,f=s.length,v="",k=0,O=g.Unknown,M=h.None;function scanHexDigits(l,f){var h=0;var g=0;while(h<l||!f){var v=s.charCodeAt(u);if(v>=48&&v<=57){g=g*16+v-48}else if(v>=65&&v<=70){g=g*16+v-65+10}else if(v>=97&&v<=102){g=g*16+v-97+10}else{break}u++;h++}if(h<l){g=-1}return g}function setPosition(s){u=s;v="";k=0;O=g.Unknown;M=h.None}function scanNumber(){var l=u;if(s.charCodeAt(u)===48){u++}else{u++;while(u<s.length&&isDigit(s.charCodeAt(u))){u++}}if(u<s.length&&s.charCodeAt(u)===46){u++;if(u<s.length&&isDigit(s.charCodeAt(u))){u++;while(u<s.length&&isDigit(s.charCodeAt(u))){u++}}else{M=h.UnexpectedEndOfNumber;return s.substring(l,u)}}var f=u;if(u<s.length&&(s.charCodeAt(u)===69||s.charCodeAt(u)===101)){u++;if(u<s.length&&s.charCodeAt(u)===43||s.charCodeAt(u)===45){u++}if(u<s.length&&isDigit(s.charCodeAt(u))){u++;while(u<s.length&&isDigit(s.charCodeAt(u))){u++}f=u}else{M=h.UnexpectedEndOfNumber}}return s.substring(l,f)}function scanString(){var l="",g=u;while(true){if(u>=f){l+=s.substring(g,u);M=h.UnexpectedEndOfString;break}var v=s.charCodeAt(u);if(v===34){l+=s.substring(g,u);u++;break}if(v===92){l+=s.substring(g,u);u++;if(u>=f){M=h.UnexpectedEndOfString;break}v=s.charCodeAt(u++);switch(v){case 34:l+='"';break;case 92:l+="\\";break;case 47:l+="/";break;case 98:l+="\b";break;case 102:l+="\f";break;case 110:l+="\n";break;case 114:l+="\r";break;case 116:l+="\t";break;case 117:var k=scanHexDigits(4,true);if(k>=0){l+=String.fromCharCode(k)}else{M=h.InvalidUnicode}break;default:M=h.InvalidEscapeCharacter}g=u;continue}if(v>=0&&v<=31){if(isLineBreak(v)){l+=s.substring(g,u);M=h.UnexpectedEndOfString;break}else{M=h.InvalidCharacter}}u++}return l}function scanNext(){v="";M=h.None;k=u;if(u>=f){k=f;return O=g.EOF}var l=s.charCodeAt(u);if(isWhiteSpace(l)){do{u++;v+=String.fromCharCode(l);l=s.charCodeAt(u)}while(isWhiteSpace(l));return O=g.Trivia}if(isLineBreak(l)){u++;v+=String.fromCharCode(l);if(l===13&&s.charCodeAt(u)===10){u++;v+="\n"}return O=g.LineBreakTrivia}switch(l){case 123:u++;return O=g.OpenBraceToken;case 125:u++;return O=g.CloseBraceToken;case 91:u++;return O=g.OpenBracketToken;case 93:u++;return O=g.CloseBracketToken;case 58:u++;return O=g.ColonToken;case 44:u++;return O=g.CommaToken;case 34:u++;v=scanString();return O=g.StringLiteral;case 47:var q=u-1;if(s.charCodeAt(u+1)===47){u+=2;while(u<f){if(isLineBreak(s.charCodeAt(u))){break}u++}v=s.substring(q,u);return O=g.LineCommentTrivia}if(s.charCodeAt(u+1)===42){u+=2;var B=false;while(u<f){var Y=s.charCodeAt(u);if(Y===42&&u+1<f&&s.charCodeAt(u+1)===47){u+=2;B=true;break}u++}if(!B){u++;M=h.UnexpectedEndOfComment}v=s.substring(q,u);return O=g.BlockCommentTrivia}v+=String.fromCharCode(l);u++;return O=g.Unknown;case 45:v+=String.fromCharCode(l);u++;if(u===f||!isDigit(s.charCodeAt(u))){return O=g.Unknown}case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:v+=scanNumber();return O=g.NumericLiteral;default:while(u<f&&isUnknownContentCharacter(l)){u++;l=s.charCodeAt(u)}if(k!==u){v=s.substring(k,u);switch(v){case"true":return O=g.TrueKeyword;case"false":return O=g.FalseKeyword;case"null":return O=g.NullKeyword}return O=g.Unknown}v+=String.fromCharCode(l);u++;return O=g.Unknown}}function isUnknownContentCharacter(s){if(isWhiteSpace(s)||isLineBreak(s)){return false}switch(s){case 125:case 93:case 123:case 91:case 34:case 58:case 44:return false}return true}function scanNextNonTrivia(){var s;do{s=scanNext()}while(s>=g.LineCommentTrivia&&s<=g.Trivia);return s}return{setPosition:setPosition,getPosition:function(){return u},scan:l?scanNextNonTrivia:scanNext,getToken:function(){return O},getTokenValue:function(){return v},getTokenOffset:function(){return k},getTokenLength:function(){return u-k},getTokenError:function(){return M}}}l.createScanner=createScanner;function isWhiteSpace(s){return s===32||s===9||s===11||s===12||s===160||s===5760||s>=8192&&s<=8203||s===8239||s===8287||s===12288||s===65279}function isLineBreak(s){return s===10||s===13||s===8232||s===8233}function isDigit(s){return s>=48&&s<=57}function stripComments(s,l){var u=createScanner(s),f=[],h,v=0,k;do{k=u.getPosition();h=u.scan();switch(h){case g.LineCommentTrivia:case g.BlockCommentTrivia:case g.EOF:if(v!==k){f.push(s.substring(v,k))}if(l!==void 0){f.push(u.getTokenValue().replace(/[^\r\n]/g,l))}v=u.getPosition();break}}while(h!==g.EOF);return f.join("")}l.stripComments=stripComments;var v;(function(s){s[s["InvalidSymbol"]=0]="InvalidSymbol";s[s["InvalidNumberFormat"]=1]="InvalidNumberFormat";s[s["PropertyNameExpected"]=2]="PropertyNameExpected";s[s["ValueExpected"]=3]="ValueExpected";s[s["ColonExpected"]=4]="ColonExpected";s[s["CommaExpected"]=5]="CommaExpected";s[s["CloseBraceExpected"]=6]="CloseBraceExpected";s[s["CloseBracketExpected"]=7]="CloseBracketExpected";s[s["EndOfFileExpected"]=8]="EndOfFileExpected";s[s["InvalidCommentToken"]=9]="InvalidCommentToken";s[s["UnexpectedEndOfComment"]=10]="UnexpectedEndOfComment";s[s["UnexpectedEndOfString"]=11]="UnexpectedEndOfString";s[s["UnexpectedEndOfNumber"]=12]="UnexpectedEndOfNumber";s[s["InvalidUnicode"]=13]="InvalidUnicode";s[s["InvalidEscapeCharacter"]=14]="InvalidEscapeCharacter";s[s["InvalidCharacter"]=15]="InvalidCharacter"})(v=l.ParseErrorCode||(l.ParseErrorCode={}));function getLiteralNodeType(s){switch(typeof s){case"boolean":return"boolean";case"number":return"number";case"string":return"string";default:return"null"}}function getLocation(s,l){var u=[];var f=new Object;var h=void 0;var g={value:{},offset:0,length:0,type:"object"};var v=false;function setPreviousNode(s,l,u,f){g.value=s;g.offset=l;g.length=u;g.type=f;g.columnOffset=void 0;h=g}try{visit(s,{onObjectBegin:function(s,g){if(l<=s){throw f}h=void 0;v=l>s;u.push("")},onObjectProperty:function(s,h,g){if(l<h){throw f}setPreviousNode(s,h,g,"property");u[u.length-1]=s;if(l<=h+g){throw f}},onObjectEnd:function(s,g){if(l<=s){throw f}h=void 0;u.pop()},onArrayBegin:function(s,g){if(l<=s){throw f}h=void 0;u.push(0)},onArrayEnd:function(s,g){if(l<=s){throw f}h=void 0;u.pop()},onLiteralValue:function(s,u,h){if(l<u){throw f}setPreviousNode(s,u,h,getLiteralNodeType(s));if(l<=u+h){throw f}},onSeparator:function(s,g,k){if(l<=g){throw f}if(s===":"&&h&&h.type==="property"){h.columnOffset=g;v=false;h=void 0}else if(s===","){var O=u[u.length-1];if(typeof O==="number"){u[u.length-1]=O+1}else{v=true;u[u.length-1]=""}h=void 0}}})}catch(s){if(s!==f){throw s}}return{path:u,previousNode:h,isAtPropertyKey:v,matches:function(s){var l=0;for(var f=0;l<s.length&&f<u.length;f++){if(s[l]===u[f]||s[l]==="*"){l++}else if(s[l]!=="**"){return false}}return l===s.length}}}l.getLocation=getLocation;function parse(s,l,u){if(l===void 0){l=[]}var f=null;var h=[];var g=[];function onValue(s){if(Array.isArray(h)){h.push(s)}else if(f){h[f]=s}}var v={onObjectBegin:function(){var s={};onValue(s);g.push(h);h=s;f=null},onObjectProperty:function(s){f=s},onObjectEnd:function(){h=g.pop()},onArrayBegin:function(){var s=[];onValue(s);g.push(h);h=s;f=null},onArrayEnd:function(){h=g.pop()},onLiteralValue:onValue,onError:function(s,u,f){l.push({error:s,offset:u,length:f})}};visit(s,v,u);return h[0]}l.parse=parse;function parseTree(s,l,u){if(l===void 0){l=[]}var f={type:"array",offset:-1,length:-1,children:[]};function ensurePropertyComplete(s){if(f.type==="property"){f.length=s-f.offset;f=f.parent}}function onValue(s){f.children.push(s);return s}var h={onObjectBegin:function(s){f=onValue({type:"object",offset:s,length:-1,parent:f,children:[]})},onObjectProperty:function(s,l,u){f=onValue({type:"property",offset:l,length:-1,parent:f,children:[]});f.children.push({type:"string",value:s,offset:l,length:u,parent:f})},onObjectEnd:function(s,l){f.length=s+l-f.offset;f=f.parent;ensurePropertyComplete(s+l)},onArrayBegin:function(s,l){f=onValue({type:"array",offset:s,length:-1,parent:f,children:[]})},onArrayEnd:function(s,l){f.length=s+l-f.offset;f=f.parent;ensurePropertyComplete(s+l)},onLiteralValue:function(s,l,u){onValue({type:getLiteralNodeType(s),offset:l,length:u,parent:f,value:s});ensurePropertyComplete(l+u)},onSeparator:function(s,l,u){if(f.type==="property"){if(s===":"){f.columnOffset=l}else if(s===","){ensurePropertyComplete(l)}}},onError:function(s,u,f){l.push({error:s,offset:u,length:f})}};visit(s,h,u);var g=f.children[0];if(g){delete g.parent}return g}l.parseTree=parseTree;function findNodeAtLocation(s,l){if(!s){return void 0}var u=s;for(var f=0,h=l;f<h.length;f++){var g=h[f];if(typeof g==="string"){if(u.type!=="object"||!Array.isArray(u.children)){return void 0}var v=false;for(var k=0,O=u.children;k<O.length;k++){var M=O[k];if(Array.isArray(M.children)&&M.children[0].value===g){u=M.children[1];v=true;break}}if(!v){return void 0}}else{var q=g;if(u.type!=="array"||q<0||!Array.isArray(u.children)||q>=u.children.length){return void 0}u=u.children[q]}}return u}l.findNodeAtLocation=findNodeAtLocation;function getNodeValue(s){if(s.type==="array"){return s.children.map(getNodeValue)}else if(s.type==="object"){var l=Object.create(null);for(var u=0,f=s.children;u<f.length;u++){var h=f[u];l[h.children[0].value]=getNodeValue(h.children[1])}return l}return s.value}l.getNodeValue=getNodeValue;function visit(s,l,u){var f=createScanner(s,false);function toNoArgVisit(s){return s?function(){return s(f.getTokenOffset(),f.getTokenLength())}:function(){return true}}function toOneArgVisit(s){return s?function(l){return s(l,f.getTokenOffset(),f.getTokenLength())}:function(){return true}}var k=toNoArgVisit(l.onObjectBegin),O=toOneArgVisit(l.onObjectProperty),M=toNoArgVisit(l.onObjectEnd),q=toNoArgVisit(l.onArrayBegin),B=toNoArgVisit(l.onArrayEnd),Y=toOneArgVisit(l.onLiteralValue),te=toOneArgVisit(l.onSeparator),re=toNoArgVisit(l.onComment),ne=toOneArgVisit(l.onError);var ie=u&&u.disallowComments;var se=u&&u.allowTrailingComma;function scanNext(){while(true){var s=f.scan();switch(f.getTokenError()){case h.InvalidUnicode:handleError(v.InvalidUnicode);break;case h.InvalidEscapeCharacter:handleError(v.InvalidEscapeCharacter);break;case h.UnexpectedEndOfNumber:handleError(v.UnexpectedEndOfNumber);break;case h.UnexpectedEndOfComment:if(!ie){handleError(v.UnexpectedEndOfComment)}break;case h.UnexpectedEndOfString:handleError(v.UnexpectedEndOfString);break;case h.InvalidCharacter:handleError(v.InvalidCharacter);break}switch(s){case g.LineCommentTrivia:case g.BlockCommentTrivia:if(ie){handleError(v.InvalidCommentToken)}else{re()}break;case g.Unknown:handleError(v.InvalidSymbol);break;case g.Trivia:case g.LineBreakTrivia:break;default:return s}}}function handleError(s,l,u){if(l===void 0){l=[]}if(u===void 0){u=[]}ne(s);if(l.length+u.length>0){var h=f.getToken();while(h!==g.EOF){if(l.indexOf(h)!==-1){scanNext();break}else if(u.indexOf(h)!==-1){break}h=scanNext()}}}function parseString(s){var l=f.getTokenValue();if(s){Y(l)}else{O(l)}scanNext();return true}function parseLiteral(){switch(f.getToken()){case g.NumericLiteral:var s=0;try{s=JSON.parse(f.getTokenValue());if(typeof s!=="number"){handleError(v.InvalidNumberFormat);s=0}}catch(s){handleError(v.InvalidNumberFormat)}Y(s);break;case g.NullKeyword:Y(null);break;case g.TrueKeyword:Y(true);break;case g.FalseKeyword:Y(false);break;default:return false}scanNext();return true}function parseProperty(){if(f.getToken()!==g.StringLiteral){handleError(v.PropertyNameExpected,[],[g.CloseBraceToken,g.CommaToken]);return false}parseString(false);if(f.getToken()===g.ColonToken){te(":");scanNext();if(!parseValue()){handleError(v.ValueExpected,[],[g.CloseBraceToken,g.CommaToken])}}else{handleError(v.ColonExpected,[],[g.CloseBraceToken,g.CommaToken])}return true}function parseObject(){k();scanNext();var s=false;while(f.getToken()!==g.CloseBraceToken&&f.getToken()!==g.EOF){if(f.getToken()===g.CommaToken){if(!s){handleError(v.ValueExpected,[],[])}te(",");scanNext();if(f.getToken()===g.CloseBraceToken&&se){break}}else if(s){handleError(v.CommaExpected,[],[])}if(!parseProperty()){handleError(v.ValueExpected,[],[g.CloseBraceToken,g.CommaToken])}s=true}M();if(f.getToken()!==g.CloseBraceToken){handleError(v.CloseBraceExpected,[g.CloseBraceToken],[])}else{scanNext()}return true}function parseArray(){q();scanNext();var s=false;while(f.getToken()!==g.CloseBracketToken&&f.getToken()!==g.EOF){if(f.getToken()===g.CommaToken){if(!s){handleError(v.ValueExpected,[],[])}te(",");scanNext();if(f.getToken()===g.CloseBracketToken&&se){break}}else if(s){handleError(v.CommaExpected,[],[])}if(!parseValue()){handleError(v.ValueExpected,[],[g.CloseBracketToken,g.CommaToken])}s=true}B();if(f.getToken()!==g.CloseBracketToken){handleError(v.CloseBracketExpected,[g.CloseBracketToken],[])}else{scanNext()}return true}function parseValue(){switch(f.getToken()){case g.OpenBracketToken:return parseArray();case g.OpenBraceToken:return parseObject();case g.StringLiteral:return parseString(true);default:return parseLiteral()}}scanNext();if(f.getToken()===g.EOF){return true}if(!parseValue()){handleError(v.ValueExpected,[],[]);return false}if(f.getToken()!==g.EOF){handleError(v.EndOfFileExpected,[],[])}return true}l.visit=visit;function format(s,l,f){return u.format(s,l,f)}l.format=format;function modify(s,l,u,h){return f.setProperty(s,l,u,h.formattingOptions,h.getInsertionIndex)}l.modify=modify;function applyEdits(s,l){for(var u=l.length-1;u>=0;u--){s=f.applyEdit(s,l[u])}return s}l.applyEdits=applyEdits}))}},(function(s){"use strict";!function(){s.r=function(s){if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(s,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(s,"__esModule",{value:true})}}();!function(){s.n=function(l){var u=l&&l.__esModule?function getDefault(){return l["default"]}:function getModuleExports(){return l};s.d(u,"a",u);return u}}();!function(){var l=Object.prototype.hasOwnProperty;s.d=function(s,u,f){if(!l.call(s,u)){Object.defineProperty(s,u,{enumerable:true,get:f})}}}()}))},3301:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.CancellationSenderStrategy=l.CancellationReceiverStrategy=l.ConnectionError=l.ConnectionErrors=l.LogTraceNotification=l.SetTraceNotification=l.TraceFormat=l.Trace=l.ProgressType=l.createMessageConnection=l.NullLogger=l.ConnectionOptions=l.ConnectionStrategy=l.WriteableStreamMessageWriter=l.AbstractMessageWriter=l.MessageWriter=l.ReadableStreamMessageReader=l.AbstractMessageReader=l.MessageReader=l.CancellationToken=l.CancellationTokenSource=l.Emitter=l.Event=l.Disposable=l.ParameterStructures=l.NotificationType9=l.NotificationType8=l.NotificationType7=l.NotificationType6=l.NotificationType5=l.NotificationType4=l.NotificationType3=l.NotificationType2=l.NotificationType1=l.NotificationType0=l.NotificationType=l.ErrorCodes=l.ResponseError=l.RequestType9=l.RequestType8=l.RequestType7=l.RequestType6=l.RequestType5=l.RequestType4=l.RequestType3=l.RequestType2=l.RequestType1=l.RequestType0=l.RequestType=l.RAL=void 0;l.CancellationStrategy=void 0;const f=u(6622);Object.defineProperty(l,"RequestType",{enumerable:true,get:function(){return f.RequestType}});Object.defineProperty(l,"RequestType0",{enumerable:true,get:function(){return f.RequestType0}});Object.defineProperty(l,"RequestType1",{enumerable:true,get:function(){return f.RequestType1}});Object.defineProperty(l,"RequestType2",{enumerable:true,get:function(){return f.RequestType2}});Object.defineProperty(l,"RequestType3",{enumerable:true,get:function(){return f.RequestType3}});Object.defineProperty(l,"RequestType4",{enumerable:true,get:function(){return f.RequestType4}});Object.defineProperty(l,"RequestType5",{enumerable:true,get:function(){return f.RequestType5}});Object.defineProperty(l,"RequestType6",{enumerable:true,get:function(){return f.RequestType6}});Object.defineProperty(l,"RequestType7",{enumerable:true,get:function(){return f.RequestType7}});Object.defineProperty(l,"RequestType8",{enumerable:true,get:function(){return f.RequestType8}});Object.defineProperty(l,"RequestType9",{enumerable:true,get:function(){return f.RequestType9}});Object.defineProperty(l,"ResponseError",{enumerable:true,get:function(){return f.ResponseError}});Object.defineProperty(l,"ErrorCodes",{enumerable:true,get:function(){return f.ErrorCodes}});Object.defineProperty(l,"NotificationType",{enumerable:true,get:function(){return f.NotificationType}});Object.defineProperty(l,"NotificationType0",{enumerable:true,get:function(){return f.NotificationType0}});Object.defineProperty(l,"NotificationType1",{enumerable:true,get:function(){return f.NotificationType1}});Object.defineProperty(l,"NotificationType2",{enumerable:true,get:function(){return f.NotificationType2}});Object.defineProperty(l,"NotificationType3",{enumerable:true,get:function(){return f.NotificationType3}});Object.defineProperty(l,"NotificationType4",{enumerable:true,get:function(){return f.NotificationType4}});Object.defineProperty(l,"NotificationType5",{enumerable:true,get:function(){return f.NotificationType5}});Object.defineProperty(l,"NotificationType6",{enumerable:true,get:function(){return f.NotificationType6}});Object.defineProperty(l,"NotificationType7",{enumerable:true,get:function(){return f.NotificationType7}});Object.defineProperty(l,"NotificationType8",{enumerable:true,get:function(){return f.NotificationType8}});Object.defineProperty(l,"NotificationType9",{enumerable:true,get:function(){return f.NotificationType9}});Object.defineProperty(l,"ParameterStructures",{enumerable:true,get:function(){return f.ParameterStructures}});const h=u(24788);Object.defineProperty(l,"Disposable",{enumerable:true,get:function(){return h.Disposable}});const g=u(30478);Object.defineProperty(l,"Event",{enumerable:true,get:function(){return g.Event}});Object.defineProperty(l,"Emitter",{enumerable:true,get:function(){return g.Emitter}});const v=u(2648);Object.defineProperty(l,"CancellationTokenSource",{enumerable:true,get:function(){return v.CancellationTokenSource}});Object.defineProperty(l,"CancellationToken",{enumerable:true,get:function(){return v.CancellationToken}});const k=u(1505);Object.defineProperty(l,"MessageReader",{enumerable:true,get:function(){return k.MessageReader}});Object.defineProperty(l,"AbstractMessageReader",{enumerable:true,get:function(){return k.AbstractMessageReader}});Object.defineProperty(l,"ReadableStreamMessageReader",{enumerable:true,get:function(){return k.ReadableStreamMessageReader}});const O=u(27918);Object.defineProperty(l,"MessageWriter",{enumerable:true,get:function(){return O.MessageWriter}});Object.defineProperty(l,"AbstractMessageWriter",{enumerable:true,get:function(){return O.AbstractMessageWriter}});Object.defineProperty(l,"WriteableStreamMessageWriter",{enumerable:true,get:function(){return O.WriteableStreamMessageWriter}});const M=u(23817);Object.defineProperty(l,"ConnectionStrategy",{enumerable:true,get:function(){return M.ConnectionStrategy}});Object.defineProperty(l,"ConnectionOptions",{enumerable:true,get:function(){return M.ConnectionOptions}});Object.defineProperty(l,"NullLogger",{enumerable:true,get:function(){return M.NullLogger}});Object.defineProperty(l,"createMessageConnection",{enumerable:true,get:function(){return M.createMessageConnection}});Object.defineProperty(l,"ProgressType",{enumerable:true,get:function(){return M.ProgressType}});Object.defineProperty(l,"Trace",{enumerable:true,get:function(){return M.Trace}});Object.defineProperty(l,"TraceFormat",{enumerable:true,get:function(){return M.TraceFormat}});Object.defineProperty(l,"SetTraceNotification",{enumerable:true,get:function(){return M.SetTraceNotification}});Object.defineProperty(l,"LogTraceNotification",{enumerable:true,get:function(){return M.LogTraceNotification}});Object.defineProperty(l,"ConnectionErrors",{enumerable:true,get:function(){return M.ConnectionErrors}});Object.defineProperty(l,"ConnectionError",{enumerable:true,get:function(){return M.ConnectionError}});Object.defineProperty(l,"CancellationReceiverStrategy",{enumerable:true,get:function(){return M.CancellationReceiverStrategy}});Object.defineProperty(l,"CancellationSenderStrategy",{enumerable:true,get:function(){return M.CancellationSenderStrategy}});Object.defineProperty(l,"CancellationStrategy",{enumerable:true,get:function(){return M.CancellationStrategy}});const q=u(83996);l.RAL=q.default},2648:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.CancellationTokenSource=l.CancellationToken=void 0;const f=u(83996);const h=u(18294);const g=u(30478);var v;(function(s){s.None=Object.freeze({isCancellationRequested:false,onCancellationRequested:g.Event.None});s.Cancelled=Object.freeze({isCancellationRequested:true,onCancellationRequested:g.Event.None});function is(l){const u=l;return u&&(u===s.None||u===s.Cancelled||h.boolean(u.isCancellationRequested)&&!!u.onCancellationRequested)}s.is=is})(v=l.CancellationToken||(l.CancellationToken={}));const k=Object.freeze((function(s,l){const u=f.default().timer.setTimeout(s.bind(l),0);return{dispose(){f.default().timer.clearTimeout(u)}}}));class MutableToken{constructor(){this._isCancelled=false}cancel(){if(!this._isCancelled){this._isCancelled=true;if(this._emitter){this._emitter.fire(undefined);this.dispose()}}}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){if(this._isCancelled){return k}if(!this._emitter){this._emitter=new g.Emitter}return this._emitter.event}dispose(){if(this._emitter){this._emitter.dispose();this._emitter=undefined}}}class CancellationTokenSource{get token(){if(!this._token){this._token=new MutableToken}return this._token}cancel(){if(!this._token){this._token=v.Cancelled}else{this._token.cancel()}}dispose(){if(!this._token){this._token=v.None}else if(this._token instanceof MutableToken){this._token.dispose()}}}l.CancellationTokenSource=CancellationTokenSource},23817:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.createMessageConnection=l.ConnectionOptions=l.CancellationStrategy=l.CancellationSenderStrategy=l.CancellationReceiverStrategy=l.ConnectionStrategy=l.ConnectionError=l.ConnectionErrors=l.LogTraceNotification=l.SetTraceNotification=l.TraceFormat=l.Trace=l.NullLogger=l.ProgressType=void 0;const f=u(83996);const h=u(18294);const g=u(6622);const v=u(42514);const k=u(30478);const O=u(2648);var M;(function(s){s.type=new g.NotificationType("$/cancelRequest")})(M||(M={}));var q;(function(s){s.type=new g.NotificationType("$/progress")})(q||(q={}));class ProgressType{constructor(){}}l.ProgressType=ProgressType;var B;(function(s){function is(s){return h.func(s)}s.is=is})(B||(B={}));l.NullLogger=Object.freeze({error:()=>{},warn:()=>{},info:()=>{},log:()=>{}});var Y;(function(s){s[s["Off"]=0]="Off";s[s["Messages"]=1]="Messages";s[s["Verbose"]=2]="Verbose"})(Y=l.Trace||(l.Trace={}));(function(s){function fromString(l){if(!h.string(l)){return s.Off}l=l.toLowerCase();switch(l){case"off":return s.Off;case"messages":return s.Messages;case"verbose":return s.Verbose;default:return s.Off}}s.fromString=fromString;function toString(l){switch(l){case s.Off:return"off";case s.Messages:return"messages";case s.Verbose:return"verbose";default:return"off"}}s.toString=toString})(Y=l.Trace||(l.Trace={}));var te;(function(s){s["Text"]="text";s["JSON"]="json"})(te=l.TraceFormat||(l.TraceFormat={}));(function(s){function fromString(l){l=l.toLowerCase();if(l==="json"){return s.JSON}else{return s.Text}}s.fromString=fromString})(te=l.TraceFormat||(l.TraceFormat={}));var re;(function(s){s.type=new g.NotificationType("$/setTrace")})(re=l.SetTraceNotification||(l.SetTraceNotification={}));var ne;(function(s){s.type=new g.NotificationType("$/logTrace")})(ne=l.LogTraceNotification||(l.LogTraceNotification={}));var ie;(function(s){s[s["Closed"]=1]="Closed";s[s["Disposed"]=2]="Disposed";s[s["AlreadyListening"]=3]="AlreadyListening"})(ie=l.ConnectionErrors||(l.ConnectionErrors={}));class ConnectionError extends Error{constructor(s,l){super(l);this.code=s;Object.setPrototypeOf(this,ConnectionError.prototype)}}l.ConnectionError=ConnectionError;var se;(function(s){function is(s){const l=s;return l&&h.func(l.cancelUndispatched)}s.is=is})(se=l.ConnectionStrategy||(l.ConnectionStrategy={}));var oe;(function(s){s.Message=Object.freeze({createCancellationTokenSource(s){return new O.CancellationTokenSource}});function is(s){const l=s;return l&&h.func(l.createCancellationTokenSource)}s.is=is})(oe=l.CancellationReceiverStrategy||(l.CancellationReceiverStrategy={}));var ae;(function(s){s.Message=Object.freeze({sendCancellation(s,l){s.sendNotification(M.type,{id:l})},cleanup(s){}});function is(s){const l=s;return l&&h.func(l.sendCancellation)&&h.func(l.cleanup)}s.is=is})(ae=l.CancellationSenderStrategy||(l.CancellationSenderStrategy={}));var le;(function(s){s.Message=Object.freeze({receiver:oe.Message,sender:ae.Message});function is(s){const l=s;return l&&oe.is(l.receiver)&&ae.is(l.sender)}s.is=is})(le=l.CancellationStrategy||(l.CancellationStrategy={}));var ue;(function(s){function is(s){const l=s;return l&&(le.is(l.cancellationStrategy)||se.is(l.connectionStrategy))}s.is=is})(ue=l.ConnectionOptions||(l.ConnectionOptions={}));var ce;(function(s){s[s["New"]=1]="New";s[s["Listening"]=2]="Listening";s[s["Closed"]=3]="Closed";s[s["Disposed"]=4]="Disposed"})(ce||(ce={}));function createMessageConnection(s,u,se,oe){const ae=se!==undefined?se:l.NullLogger;let ue=0;let fe=0;let pe=0;const de="2.0";let he=undefined;const ge=Object.create(null);let ve=undefined;const ye=Object.create(null);const we=new Map;let _e;let Se=new v.LinkedMap;let ke=Object.create(null);let Ce=Object.create(null);let Ee=Y.Off;let Re=te.Text;let Oe;let De=ce.New;const Ie=new k.Emitter;const Me=new k.Emitter;const Ne=new k.Emitter;const Le=new k.Emitter;const je=new k.Emitter;const Fe=oe&&oe.cancellationStrategy?oe.cancellationStrategy:le.Message;function createRequestQueueKey(s){if(s===null){throw new Error(`Can't send requests with id null since the response can't be correlated.`)}return"req-"+s.toString()}function createResponseQueueKey(s){if(s===null){return"res-unknown-"+(++pe).toString()}else{return"res-"+s.toString()}}function createNotificationQueueKey(){return"not-"+(++fe).toString()}function addMessageToQueue(s,l){if(g.isRequestMessage(l)){s.set(createRequestQueueKey(l.id),l)}else if(g.isResponseMessage(l)){s.set(createResponseQueueKey(l.id),l)}else{s.set(createNotificationQueueKey(),l)}}function cancelUndispatched(s){return undefined}function isListening(){return De===ce.Listening}function isClosed(){return De===ce.Closed}function isDisposed(){return De===ce.Disposed}function closeHandler(){if(De===ce.New||De===ce.Listening){De=ce.Closed;Me.fire(undefined)}}function readErrorHandler(s){Ie.fire([s,undefined,undefined])}function writeErrorHandler(s){Ie.fire(s)}s.onClose(closeHandler);s.onError(readErrorHandler);u.onClose(closeHandler);u.onError(writeErrorHandler);function triggerMessageQueue(){if(_e||Se.size===0){return}_e=f.default().timer.setImmediate((()=>{_e=undefined;processMessageQueue()}))}function processMessageQueue(){if(Se.size===0){return}const s=Se.shift();try{if(g.isRequestMessage(s)){handleRequest(s)}else if(g.isNotificationMessage(s)){handleNotification(s)}else if(g.isResponseMessage(s)){handleResponse(s)}else{handleInvalidMessage(s)}}finally{triggerMessageQueue()}}const callback=s=>{try{if(g.isNotificationMessage(s)&&s.method===M.type.method){const l=createRequestQueueKey(s.params.id);const f=Se.get(l);if(g.isRequestMessage(f)){const h=oe===null||oe===void 0?void 0:oe.connectionStrategy;const g=h&&h.cancelUndispatched?h.cancelUndispatched(f,cancelUndispatched):cancelUndispatched(f);if(g&&(g.error!==undefined||g.result!==undefined)){Se.delete(l);g.id=f.id;traceSendingResponse(g,s.method,Date.now());u.write(g);return}}}addMessageToQueue(Se,s)}finally{triggerMessageQueue()}};function handleRequest(s){if(isDisposed()){return}function reply(l,f,h){const v={jsonrpc:de,id:s.id};if(l instanceof g.ResponseError){v.error=l.toJson()}else{v.result=l===undefined?null:l}traceSendingResponse(v,f,h);u.write(v)}function replyError(l,f,h){const g={jsonrpc:de,id:s.id,error:l.toJson()};traceSendingResponse(g,f,h);u.write(g)}function replySuccess(l,f,h){if(l===undefined){l=null}const g={jsonrpc:de,id:s.id,result:l};traceSendingResponse(g,f,h);u.write(g)}traceReceivedRequest(s);const l=ge[s.method];let f;let v;if(l){f=l.type;v=l.handler}const k=Date.now();if(v||he){const l=String(s.id);const u=Fe.receiver.createCancellationTokenSource(l);Ce[l]=u;try{let O;if(v){if(s.params===undefined){if(f!==undefined&&f.numberOfParams!==0){replyError(new g.ResponseError(g.ErrorCodes.InvalidParams,`Request ${s.method} defines ${f.numberOfParams} params but recevied none.`),s.method,k);return}O=v(u.token)}else if(Array.isArray(s.params)){if(f!==undefined&&f.parameterStructures===g.ParameterStructures.byName){replyError(new g.ResponseError(g.ErrorCodes.InvalidParams,`Request ${s.method} defines parameters by name but received parameters by position`),s.method,k);return}O=v(...s.params,u.token)}else{if(f!==undefined&&f.parameterStructures===g.ParameterStructures.byPosition){replyError(new g.ResponseError(g.ErrorCodes.InvalidParams,`Request ${s.method} defines parameters by position but received parameters by name`),s.method,k);return}O=v(s.params,u.token)}}else if(he){O=he(s.method,s.params,u.token)}const M=O;if(!O){delete Ce[l];replySuccess(O,s.method,k)}else if(M.then){M.then((u=>{delete Ce[l];reply(u,s.method,k)}),(u=>{delete Ce[l];if(u instanceof g.ResponseError){replyError(u,s.method,k)}else if(u&&h.string(u.message)){replyError(new g.ResponseError(g.ErrorCodes.InternalError,`Request ${s.method} failed with message: ${u.message}`),s.method,k)}else{replyError(new g.ResponseError(g.ErrorCodes.InternalError,`Request ${s.method} failed unexpectedly without providing any details.`),s.method,k)}}))}else{delete Ce[l];reply(O,s.method,k)}}catch(u){delete Ce[l];if(u instanceof g.ResponseError){reply(u,s.method,k)}else if(u&&h.string(u.message)){replyError(new g.ResponseError(g.ErrorCodes.InternalError,`Request ${s.method} failed with message: ${u.message}`),s.method,k)}else{replyError(new g.ResponseError(g.ErrorCodes.InternalError,`Request ${s.method} failed unexpectedly without providing any details.`),s.method,k)}}}else{replyError(new g.ResponseError(g.ErrorCodes.MethodNotFound,`Unhandled method ${s.method}`),s.method,k)}}function handleResponse(s){if(isDisposed()){return}if(s.id===null){if(s.error){ae.error(`Received response message without id: Error is: \n${JSON.stringify(s.error,undefined,4)}`)}else{ae.error(`Received response message without id. No further error information provided.`)}}else{const l=String(s.id);const u=ke[l];traceReceivedResponse(s,u);if(u){delete ke[l];try{if(s.error){const l=s.error;u.reject(new g.ResponseError(l.code,l.message,l.data))}else if(s.result!==undefined){u.resolve(s.result)}else{throw new Error("Should never happen.")}}catch(s){if(s.message){ae.error(`Response handler '${u.method}' failed with message: ${s.message}`)}else{ae.error(`Response handler '${u.method}' failed unexpectedly.`)}}}}}function handleNotification(s){if(isDisposed()){return}let l=undefined;let u;if(s.method===M.type.method){u=s=>{const l=s.id;const u=Ce[String(l)];if(u){u.cancel()}}}else{const f=ye[s.method];if(f){u=f.handler;l=f.type}}if(u||ve){try{traceReceivedNotification(s);if(u){if(s.params===undefined){if(l!==undefined){if(l.numberOfParams!==0&&l.parameterStructures!==g.ParameterStructures.byName){ae.error(`Notification ${s.method} defines ${l.numberOfParams} params but recevied none.`)}}u()}else if(Array.isArray(s.params)){if(l!==undefined){if(l.parameterStructures===g.ParameterStructures.byName){ae.error(`Notification ${s.method} defines parameters by name but received parameters by position`)}if(l.numberOfParams!==s.params.length){ae.error(`Notification ${s.method} defines ${l.numberOfParams} params but received ${s.params.length} argumennts`)}}u(...s.params)}else{if(l!==undefined&&l.parameterStructures===g.ParameterStructures.byPosition){ae.error(`Notification ${s.method} defines parameters by position but received parameters by name`)}u(s.params)}}else if(ve){ve(s.method,s.params)}}catch(l){if(l.message){ae.error(`Notification handler '${s.method}' failed with message: ${l.message}`)}else{ae.error(`Notification handler '${s.method}' failed unexpectedly.`)}}}else{Ne.fire(s)}}function handleInvalidMessage(s){if(!s){ae.error("Received empty message.");return}ae.error(`Received message which is neither a response nor a notification message:\n${JSON.stringify(s,null,4)}`);const l=s;if(h.string(l.id)||h.number(l.id)){const s=String(l.id);const u=ke[s];if(u){u.reject(new Error("The received response has neither a result nor an error property."))}}}function traceSendingRequest(s){if(Ee===Y.Off||!Oe){return}if(Re===te.Text){let l=undefined;if(Ee===Y.Verbose&&s.params){l=`Params: ${JSON.stringify(s.params,null,4)}\n\n`}Oe.log(`Sending request '${s.method} - (${s.id})'.`,l)}else{logLSPMessage("send-request",s)}}function traceSendingNotification(s){if(Ee===Y.Off||!Oe){return}if(Re===te.Text){let l=undefined;if(Ee===Y.Verbose){if(s.params){l=`Params: ${JSON.stringify(s.params,null,4)}\n\n`}else{l="No parameters provided.\n\n"}}Oe.log(`Sending notification '${s.method}'.`,l)}else{logLSPMessage("send-notification",s)}}function traceSendingResponse(s,l,u){if(Ee===Y.Off||!Oe){return}if(Re===te.Text){let f=undefined;if(Ee===Y.Verbose){if(s.error&&s.error.data){f=`Error data: ${JSON.stringify(s.error.data,null,4)}\n\n`}else{if(s.result){f=`Result: ${JSON.stringify(s.result,null,4)}\n\n`}else if(s.error===undefined){f="No result returned.\n\n"}}}Oe.log(`Sending response '${l} - (${s.id})'. Processing request took ${Date.now()-u}ms`,f)}else{logLSPMessage("send-response",s)}}function traceReceivedRequest(s){if(Ee===Y.Off||!Oe){return}if(Re===te.Text){let l=undefined;if(Ee===Y.Verbose&&s.params){l=`Params: ${JSON.stringify(s.params,null,4)}\n\n`}Oe.log(`Received request '${s.method} - (${s.id})'.`,l)}else{logLSPMessage("receive-request",s)}}function traceReceivedNotification(s){if(Ee===Y.Off||!Oe||s.method===ne.type.method){return}if(Re===te.Text){let l=undefined;if(Ee===Y.Verbose){if(s.params){l=`Params: ${JSON.stringify(s.params,null,4)}\n\n`}else{l="No parameters provided.\n\n"}}Oe.log(`Received notification '${s.method}'.`,l)}else{logLSPMessage("receive-notification",s)}}function traceReceivedResponse(s,l){if(Ee===Y.Off||!Oe){return}if(Re===te.Text){let u=undefined;if(Ee===Y.Verbose){if(s.error&&s.error.data){u=`Error data: ${JSON.stringify(s.error.data,null,4)}\n\n`}else{if(s.result){u=`Result: ${JSON.stringify(s.result,null,4)}\n\n`}else if(s.error===undefined){u="No result returned.\n\n"}}}if(l){const f=s.error?` Request failed: ${s.error.message} (${s.error.code}).`:"";Oe.log(`Received response '${l.method} - (${s.id})' in ${Date.now()-l.timerStart}ms.${f}`,u)}else{Oe.log(`Received response ${s.id} without active response promise.`,u)}}else{logLSPMessage("receive-response",s)}}function logLSPMessage(s,l){if(!Oe||Ee===Y.Off){return}const u={isLSPMessage:true,type:s,message:l,timestamp:Date.now()};Oe.log(u)}function throwIfClosedOrDisposed(){if(isClosed()){throw new ConnectionError(ie.Closed,"Connection is closed.")}if(isDisposed()){throw new ConnectionError(ie.Disposed,"Connection is disposed.")}}function throwIfListening(){if(isListening()){throw new ConnectionError(ie.AlreadyListening,"Connection is already listening")}}function throwIfNotListening(){if(!isListening()){throw new Error("Call listen() first.")}}function undefinedToNull(s){if(s===undefined){return null}else{return s}}function nullToUndefined(s){if(s===null){return undefined}else{return s}}function isNamedParam(s){return s!==undefined&&s!==null&&!Array.isArray(s)&&typeof s==="object"}function computeSingleParam(s,l){switch(s){case g.ParameterStructures.auto:if(isNamedParam(l)){return nullToUndefined(l)}else{return[undefinedToNull(l)]}break;case g.ParameterStructures.byName:if(!isNamedParam(l)){throw new Error(`Recevied parameters by name but param is not an object literal.`)}return nullToUndefined(l);case g.ParameterStructures.byPosition:return[undefinedToNull(l)];default:throw new Error(`Unknown parameter structure ${s.toString()}`)}}function computeMessageParams(s,l){let u;const f=s.numberOfParams;switch(f){case 0:u=undefined;break;case 1:u=computeSingleParam(s.parameterStructures,l[0]);break;default:u=[];for(let s=0;s<l.length&&s<f;s++){u.push(undefinedToNull(l[s]))}if(l.length<f){for(let s=l.length;s<f;s++){u.push(null)}}break}return u}const qe={sendNotification:(s,...l)=>{throwIfClosedOrDisposed();let f;let v;if(h.string(s)){f=s;const u=l[0];let h=0;let k=g.ParameterStructures.auto;if(g.ParameterStructures.is(u)){h=1;k=u}let O=l.length;const M=O-h;switch(M){case 0:v=undefined;break;case 1:v=computeSingleParam(k,l[h]);break;default:if(k===g.ParameterStructures.byName){throw new Error(`Recevied ${M} parameters for 'by Name' notification parameter structure.`)}v=l.slice(h,O).map((s=>undefinedToNull(s)));break}}else{const u=l;f=s.method;v=computeMessageParams(s,u)}const k={jsonrpc:de,method:f,params:v};traceSendingNotification(k);u.write(k)},onNotification:(s,l)=>{throwIfClosedOrDisposed();let u;if(h.func(s)){ve=s}else if(l){if(h.string(s)){u=s;ye[s]={type:undefined,handler:l}}else{u=s.method;ye[s.method]={type:s,handler:l}}}return{dispose:()=>{if(u!==undefined){delete ye[u]}else{ve=undefined}}}},onProgress:(s,l,u)=>{if(we.has(l)){throw new Error(`Progress handler for token ${l} already registered`)}we.set(l,u);return{dispose:()=>{we.delete(l)}}},sendProgress:(s,l,u)=>{qe.sendNotification(q.type,{token:l,value:u})},onUnhandledProgress:Le.event,sendRequest:(s,...l)=>{throwIfClosedOrDisposed();throwIfNotListening();let f;let v;let k=undefined;if(h.string(s)){f=s;const u=l[0];const h=l[l.length-1];let M=0;let q=g.ParameterStructures.auto;if(g.ParameterStructures.is(u)){M=1;q=u}let B=l.length;if(O.CancellationToken.is(h)){B=B-1;k=h}const Y=B-M;switch(Y){case 0:v=undefined;break;case 1:v=computeSingleParam(q,l[M]);break;default:if(q===g.ParameterStructures.byName){throw new Error(`Recevied ${Y} parameters for 'by Name' request parameter structure.`)}v=l.slice(M,B).map((s=>undefinedToNull(s)));break}}else{const u=l;f=s.method;v=computeMessageParams(s,u);const h=s.numberOfParams;k=O.CancellationToken.is(u[h])?u[h]:undefined}const M=ue++;let q;if(k){q=k.onCancellationRequested((()=>{Fe.sender.sendCancellation(qe,M)}))}const B=new Promise(((s,l)=>{const h={jsonrpc:de,id:M,method:f,params:v};const resolveWithCleanup=l=>{s(l);Fe.sender.cleanup(M);q===null||q===void 0?void 0:q.dispose()};const rejectWithCleanup=s=>{l(s);Fe.sender.cleanup(M);q===null||q===void 0?void 0:q.dispose()};let k={method:f,timerStart:Date.now(),resolve:resolveWithCleanup,reject:rejectWithCleanup};traceSendingRequest(h);try{u.write(h)}catch(s){k.reject(new g.ResponseError(g.ErrorCodes.MessageWriteError,s.message?s.message:"Unknown reason"));k=null}if(k){ke[String(M)]=k}}));return B},onRequest:(s,l)=>{throwIfClosedOrDisposed();let u=null;if(B.is(s)){u=undefined;he=s}else if(h.string(s)){u=null;if(l!==undefined){u=s;ge[s]={handler:l,type:undefined}}}else{if(l!==undefined){u=s.method;ge[s.method]={type:s,handler:l}}}return{dispose:()=>{if(u===null){return}if(u!==undefined){delete ge[u]}else{he=undefined}}}},trace:(s,l,u)=>{let f=false;let g=te.Text;if(u!==undefined){if(h.boolean(u)){f=u}else{f=u.sendNotification||false;g=u.traceFormat||te.Text}}Ee=s;Re=g;if(Ee===Y.Off){Oe=undefined}else{Oe=l}if(f&&!isClosed()&&!isDisposed()){qe.sendNotification(re.type,{value:Y.toString(s)})}},onError:Ie.event,onClose:Me.event,onUnhandledNotification:Ne.event,onDispose:je.event,end:()=>{u.end()},dispose:()=>{if(isDisposed()){return}De=ce.Disposed;je.fire(undefined);const l=new Error("Connection got disposed.");Object.keys(ke).forEach((s=>{ke[s].reject(l)}));ke=Object.create(null);Ce=Object.create(null);Se=new v.LinkedMap;if(h.func(u.dispose)){u.dispose()}if(h.func(s.dispose)){s.dispose()}},listen:()=>{throwIfClosedOrDisposed();throwIfListening();De=ce.Listening;s.listen(callback)},inspect:()=>{f.default().console.log("inspect")}};qe.onNotification(ne.type,(s=>{if(Ee===Y.Off||!Oe){return}Oe.log(s.message,Ee===Y.Verbose?s.verbose:undefined)}));qe.onNotification(q.type,(s=>{const l=we.get(s.token);if(l){l(s.value)}else{Le.fire(s)}}));return qe}l.createMessageConnection=createMessageConnection},24788:(s,l)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.Disposable=void 0;var u;(function(s){function create(s){return{dispose:s}}s.create=create})(u=l.Disposable||(l.Disposable={}))},30478:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.Emitter=l.Event=void 0;const f=u(83996);var h;(function(s){const l={dispose(){}};s.None=function(){return l}})(h=l.Event||(l.Event={}));class CallbackList{add(s,l=null,u){if(!this._callbacks){this._callbacks=[];this._contexts=[]}this._callbacks.push(s);this._contexts.push(l);if(Array.isArray(u)){u.push({dispose:()=>this.remove(s,l)})}}remove(s,l=null){if(!this._callbacks){return}let u=false;for(let f=0,h=this._callbacks.length;f<h;f++){if(this._callbacks[f]===s){if(this._contexts[f]===l){this._callbacks.splice(f,1);this._contexts.splice(f,1);return}else{u=true}}}if(u){throw new Error("When adding a listener with a context, you should remove it with the same context")}}invoke(...s){if(!this._callbacks){return[]}const l=[],u=this._callbacks.slice(0),h=this._contexts.slice(0);for(let g=0,v=u.length;g<v;g++){try{l.push(u[g].apply(h[g],s))}catch(s){f.default().console.error(s)}}return l}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=undefined;this._contexts=undefined}}class Emitter{constructor(s){this._options=s}get event(){if(!this._event){this._event=(s,l,u)=>{if(!this._callbacks){this._callbacks=new CallbackList}if(this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()){this._options.onFirstListenerAdd(this)}this._callbacks.add(s,l);const f={dispose:()=>{if(!this._callbacks){return}this._callbacks.remove(s,l);f.dispose=Emitter._noop;if(this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()){this._options.onLastListenerRemove(this)}}};if(Array.isArray(u)){u.push(f)}return f}}return this._event}fire(s){if(this._callbacks){this._callbacks.invoke.call(this._callbacks,s)}}dispose(){if(this._callbacks){this._callbacks.dispose();this._callbacks=undefined}}}l.Emitter=Emitter;Emitter._noop=function(){}},18294:(s,l)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.stringArray=l.array=l.func=l.error=l.number=l.string=l.boolean=void 0;function boolean(s){return s===true||s===false}l.boolean=boolean;function string(s){return typeof s==="string"||s instanceof String}l.string=string;function number(s){return typeof s==="number"||s instanceof Number}l.number=number;function error(s){return s instanceof Error}l.error=error;function func(s){return typeof s==="function"}l.func=func;function array(s){return Array.isArray(s)}l.array=array;function stringArray(s){return array(s)&&s.every((s=>string(s)))}l.stringArray=stringArray},42514:(s,l)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.LRUCache=l.LinkedMap=l.Touch=void 0;var u;(function(s){s.None=0;s.First=1;s.AsOld=s.First;s.Last=2;s.AsNew=s.Last})(u=l.Touch||(l.Touch={}));class LinkedMap{constructor(){this[Symbol.toStringTag]="LinkedMap";this._map=new Map;this._head=undefined;this._tail=undefined;this._size=0;this._state=0}clear(){this._map.clear();this._head=undefined;this._tail=undefined;this._size=0;this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){var s;return(s=this._head)===null||s===void 0?void 0:s.value}get last(){var s;return(s=this._tail)===null||s===void 0?void 0:s.value}has(s){return this._map.has(s)}get(s,l=u.None){const f=this._map.get(s);if(!f){return undefined}if(l!==u.None){this.touch(f,l)}return f.value}set(s,l,f=u.None){let h=this._map.get(s);if(h){h.value=l;if(f!==u.None){this.touch(h,f)}}else{h={key:s,value:l,next:undefined,previous:undefined};switch(f){case u.None:this.addItemLast(h);break;case u.First:this.addItemFirst(h);break;case u.Last:this.addItemLast(h);break;default:this.addItemLast(h);break}this._map.set(s,h);this._size++}return this}delete(s){return!!this.remove(s)}remove(s){const l=this._map.get(s);if(!l){return undefined}this._map.delete(s);this.removeItem(l);this._size--;return l.value}shift(){if(!this._head&&!this._tail){return undefined}if(!this._head||!this._tail){throw new Error("Invalid list")}const s=this._head;this._map.delete(s.key);this.removeItem(s);this._size--;return s.value}forEach(s,l){const u=this._state;let f=this._head;while(f){if(l){s.bind(l)(f.value,f.key,this)}else{s(f.value,f.key,this)}if(this._state!==u){throw new Error(`LinkedMap got modified during iteration.`)}f=f.next}}keys(){const s=this;const l=this._state;let u=this._head;const f={[Symbol.iterator](){return f},next(){if(s._state!==l){throw new Error(`LinkedMap got modified during iteration.`)}if(u){const s={value:u.key,done:false};u=u.next;return s}else{return{value:undefined,done:true}}}};return f}values(){const s=this;const l=this._state;let u=this._head;const f={[Symbol.iterator](){return f},next(){if(s._state!==l){throw new Error(`LinkedMap got modified during iteration.`)}if(u){const s={value:u.value,done:false};u=u.next;return s}else{return{value:undefined,done:true}}}};return f}entries(){const s=this;const l=this._state;let u=this._head;const f={[Symbol.iterator](){return f},next(){if(s._state!==l){throw new Error(`LinkedMap got modified during iteration.`)}if(u){const s={value:[u.key,u.value],done:false};u=u.next;return s}else{return{value:undefined,done:true}}}};return f}[Symbol.iterator](){return this.entries()}trimOld(s){if(s>=this.size){return}if(s===0){this.clear();return}let l=this._head;let u=this.size;while(l&&u>s){this._map.delete(l.key);l=l.next;u--}this._head=l;this._size=u;if(l){l.previous=undefined}this._state++}addItemFirst(s){if(!this._head&&!this._tail){this._tail=s}else if(!this._head){throw new Error("Invalid list")}else{s.next=this._head;this._head.previous=s}this._head=s;this._state++}addItemLast(s){if(!this._head&&!this._tail){this._head=s}else if(!this._tail){throw new Error("Invalid list")}else{s.previous=this._tail;this._tail.next=s}this._tail=s;this._state++}removeItem(s){if(s===this._head&&s===this._tail){this._head=undefined;this._tail=undefined}else if(s===this._head){if(!s.next){throw new Error("Invalid list")}s.next.previous=undefined;this._head=s.next}else if(s===this._tail){if(!s.previous){throw new Error("Invalid list")}s.previous.next=undefined;this._tail=s.previous}else{const l=s.next;const u=s.previous;if(!l||!u){throw new Error("Invalid list")}l.previous=u;u.next=l}s.next=undefined;s.previous=undefined;this._state++}touch(s,l){if(!this._head||!this._tail){throw new Error("Invalid list")}if(l!==u.First&&l!==u.Last){return}if(l===u.First){if(s===this._head){return}const l=s.next;const u=s.previous;if(s===this._tail){u.next=undefined;this._tail=u}else{l.previous=u;u.next=l}s.previous=undefined;s.next=this._head;this._head.previous=s;this._head=s;this._state++}else if(l===u.Last){if(s===this._tail){return}const l=s.next;const u=s.previous;if(s===this._head){l.previous=undefined;this._head=l}else{l.previous=u;u.next=l}s.next=undefined;s.previous=this._tail;this._tail.next=s;this._tail=s;this._state++}}toJSON(){const s=[];this.forEach(((l,u)=>{s.push([u,l])}));return s}fromJSON(s){this.clear();for(const[l,u]of s){this.set(l,u)}}}l.LinkedMap=LinkedMap;class LRUCache extends LinkedMap{constructor(s,l=1){super();this._limit=s;this._ratio=Math.min(Math.max(0,l),1)}get limit(){return this._limit}set limit(s){this._limit=s;this.checkTrim()}get ratio(){return this._ratio}set ratio(s){this._ratio=Math.min(Math.max(0,s),1);this.checkTrim()}get(s,l=u.AsNew){return super.get(s,l)}peek(s){return super.get(s,u.None)}set(s,l){super.set(s,l,u.Last);this.checkTrim();return this}checkTrim(){if(this.size>this._limit){this.trimOld(Math.round(this._limit*this._ratio))}}}l.LRUCache=LRUCache},11228:(s,l)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.AbstractMessageBuffer=void 0;const u=13;const f=10;const h="\r\n";class AbstractMessageBuffer{constructor(s="utf-8"){this._encoding=s;this._chunks=[];this._totalLength=0}get encoding(){return this._encoding}append(s){const l=typeof s==="string"?this.fromString(s,this._encoding):s;this._chunks.push(l);this._totalLength+=l.byteLength}tryReadHeaders(){if(this._chunks.length===0){return undefined}let s=0;let l=0;let g=0;let v=0;e:while(l<this._chunks.length){const h=this._chunks[l];g=0;t:while(g<h.length){const l=h[g];switch(l){case u:switch(s){case 0:s=1;break;case 2:s=3;break;default:s=0}break;case f:switch(s){case 1:s=2;break;case 3:s=4;g++;break e;default:s=0}break;default:s=0}g++}v+=h.byteLength;l++}if(s!==4){return undefined}const k=this._read(v+g);const O=new Map;const M=this.toString(k,"ascii").split(h);if(M.length<2){return O}for(let s=0;s<M.length-2;s++){const l=M[s];const u=l.indexOf(":");if(u===-1){throw new Error("Message header must separate key and value using :")}const f=l.substr(0,u);const h=l.substr(u+1).trim();O.set(f,h)}return O}tryReadBody(s){if(this._totalLength<s){return undefined}return this._read(s)}get numberOfBytes(){return this._totalLength}_read(s){if(s===0){return this.emptyBuffer()}if(s>this._totalLength){throw new Error(`Cannot read so many bytes!`)}if(this._chunks[0].byteLength===s){const l=this._chunks[0];this._chunks.shift();this._totalLength-=s;return this.asNative(l)}if(this._chunks[0].byteLength>s){const l=this._chunks[0];const u=this.asNative(l,s);this._chunks[0]=l.slice(s);this._totalLength-=s;return u}const l=this.allocNative(s);let u=0;let f=0;while(s>0){const h=this._chunks[f];if(h.byteLength>s){const g=h.slice(0,s);l.set(g,u);u+=s;this._chunks[f]=h.slice(s);this._totalLength-=s;s-=s}else{l.set(h,u);u+=h.byteLength;this._chunks.shift();this._totalLength-=h.byteLength;s-=h.byteLength}}return l}}l.AbstractMessageBuffer=AbstractMessageBuffer},1505:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.ReadableStreamMessageReader=l.AbstractMessageReader=l.MessageReader=void 0;const f=u(83996);const h=u(18294);const g=u(30478);var v;(function(s){function is(s){let l=s;return l&&h.func(l.listen)&&h.func(l.dispose)&&h.func(l.onError)&&h.func(l.onClose)&&h.func(l.onPartialMessage)}s.is=is})(v=l.MessageReader||(l.MessageReader={}));class AbstractMessageReader{constructor(){this.errorEmitter=new g.Emitter;this.closeEmitter=new g.Emitter;this.partialMessageEmitter=new g.Emitter}dispose(){this.errorEmitter.dispose();this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(s){this.errorEmitter.fire(this.asError(s))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(undefined)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(s){this.partialMessageEmitter.fire(s)}asError(s){if(s instanceof Error){return s}else{return new Error(`Reader received error. Reason: ${h.string(s.message)?s.message:"unknown"}`)}}}l.AbstractMessageReader=AbstractMessageReader;var k;(function(s){function fromOptions(s){var l;let u;let h;let g;const v=new Map;let k;const O=new Map;if(s===undefined||typeof s==="string"){u=s!==null&&s!==void 0?s:"utf-8"}else{u=(l=s.charset)!==null&&l!==void 0?l:"utf-8";if(s.contentDecoder!==undefined){g=s.contentDecoder;v.set(g.name,g)}if(s.contentDecoders!==undefined){for(const l of s.contentDecoders){v.set(l.name,l)}}if(s.contentTypeDecoder!==undefined){k=s.contentTypeDecoder;O.set(k.name,k)}if(s.contentTypeDecoders!==undefined){for(const l of s.contentTypeDecoders){O.set(l.name,l)}}}if(k===undefined){k=f.default().applicationJson.decoder;O.set(k.name,k)}return{charset:u,contentDecoder:g,contentDecoders:v,contentTypeDecoder:k,contentTypeDecoders:O}}s.fromOptions=fromOptions})(k||(k={}));class ReadableStreamMessageReader extends AbstractMessageReader{constructor(s,l){super();this.readable=s;this.options=k.fromOptions(l);this.buffer=f.default().messageBuffer.create(this.options.charset);this._partialMessageTimeout=1e4;this.nextMessageLength=-1;this.messageToken=0}set partialMessageTimeout(s){this._partialMessageTimeout=s}get partialMessageTimeout(){return this._partialMessageTimeout}listen(s){this.nextMessageLength=-1;this.messageToken=0;this.partialMessageTimer=undefined;this.callback=s;const l=this.readable.onData((s=>{this.onData(s)}));this.readable.onError((s=>this.fireError(s)));this.readable.onClose((()=>this.fireClose()));return l}onData(s){this.buffer.append(s);while(true){if(this.nextMessageLength===-1){const s=this.buffer.tryReadHeaders();if(!s){return}const l=s.get("Content-Length");if(!l){throw new Error("Header must provide a Content-Length property.")}const u=parseInt(l);if(isNaN(u)){throw new Error("Content-Length value must be a number.")}this.nextMessageLength=u}const s=this.buffer.tryReadBody(this.nextMessageLength);if(s===undefined){this.setPartialMessageTimer();return}this.clearPartialMessageTimer();this.nextMessageLength=-1;let l;if(this.options.contentDecoder!==undefined){l=this.options.contentDecoder.decode(s)}else{l=Promise.resolve(s)}l.then((s=>{this.options.contentTypeDecoder.decode(s,this.options).then((s=>{this.callback(s)}),(s=>{this.fireError(s)}))}),(s=>{this.fireError(s)}))}}clearPartialMessageTimer(){if(this.partialMessageTimer){f.default().timer.clearTimeout(this.partialMessageTimer);this.partialMessageTimer=undefined}}setPartialMessageTimer(){this.clearPartialMessageTimer();if(this._partialMessageTimeout<=0){return}this.partialMessageTimer=f.default().timer.setTimeout(((s,l)=>{this.partialMessageTimer=undefined;if(s===this.messageToken){this.firePartialMessage({messageToken:s,waitingTime:l});this.setPartialMessageTimer()}}),this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout)}}l.ReadableStreamMessageReader=ReadableStreamMessageReader},27918:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.WriteableStreamMessageWriter=l.AbstractMessageWriter=l.MessageWriter=void 0;const f=u(83996);const h=u(18294);const g=u(78264);const v=u(30478);const k="Content-Length: ";const O="\r\n";var M;(function(s){function is(s){let l=s;return l&&h.func(l.dispose)&&h.func(l.onClose)&&h.func(l.onError)&&h.func(l.write)}s.is=is})(M=l.MessageWriter||(l.MessageWriter={}));class AbstractMessageWriter{constructor(){this.errorEmitter=new v.Emitter;this.closeEmitter=new v.Emitter}dispose(){this.errorEmitter.dispose();this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(s,l,u){this.errorEmitter.fire([this.asError(s),l,u])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(undefined)}asError(s){if(s instanceof Error){return s}else{return new Error(`Writer received error. Reason: ${h.string(s.message)?s.message:"unknown"}`)}}}l.AbstractMessageWriter=AbstractMessageWriter;var q;(function(s){function fromOptions(s){var l,u;if(s===undefined||typeof s==="string"){return{charset:s!==null&&s!==void 0?s:"utf-8",contentTypeEncoder:f.default().applicationJson.encoder}}else{return{charset:(l=s.charset)!==null&&l!==void 0?l:"utf-8",contentEncoder:s.contentEncoder,contentTypeEncoder:(u=s.contentTypeEncoder)!==null&&u!==void 0?u:f.default().applicationJson.encoder}}}s.fromOptions=fromOptions})(q||(q={}));class WriteableStreamMessageWriter extends AbstractMessageWriter{constructor(s,l){super();this.writable=s;this.options=q.fromOptions(l);this.errorCount=0;this.writeSemaphore=new g.Semaphore(1);this.writable.onError((s=>this.fireError(s)));this.writable.onClose((()=>this.fireClose()))}async write(s){return this.writeSemaphore.lock((async()=>{const l=this.options.contentTypeEncoder.encode(s,this.options).then((s=>{if(this.options.contentEncoder!==undefined){return this.options.contentEncoder.encode(s)}else{return s}}));return l.then((l=>{const u=[];u.push(k,l.byteLength.toString(),O);u.push(O);return this.doWrite(s,u,l)}),(s=>{this.fireError(s);throw s}))}))}async doWrite(s,l,u){try{await this.writable.write(l.join(""),"ascii");return this.writable.write(u)}catch(l){this.handleError(l,s);return Promise.reject(l)}}handleError(s,l){this.errorCount++;this.fireError(s,l,this.errorCount)}end(){this.writable.end()}}l.WriteableStreamMessageWriter=WriteableStreamMessageWriter},6622:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.isResponseMessage=l.isNotificationMessage=l.isRequestMessage=l.NotificationType9=l.NotificationType8=l.NotificationType7=l.NotificationType6=l.NotificationType5=l.NotificationType4=l.NotificationType3=l.NotificationType2=l.NotificationType1=l.NotificationType0=l.NotificationType=l.RequestType9=l.RequestType8=l.RequestType7=l.RequestType6=l.RequestType5=l.RequestType4=l.RequestType3=l.RequestType2=l.RequestType1=l.RequestType=l.RequestType0=l.AbstractMessageSignature=l.ParameterStructures=l.ResponseError=l.ErrorCodes=void 0;const f=u(18294);var h;(function(s){s.ParseError=-32700;s.InvalidRequest=-32600;s.MethodNotFound=-32601;s.InvalidParams=-32602;s.InternalError=-32603;s.jsonrpcReservedErrorRangeStart=-32099;s.serverErrorStart=s.jsonrpcReservedErrorRangeStart;s.MessageWriteError=-32099;s.MessageReadError=-32098;s.ServerNotInitialized=-32002;s.UnknownErrorCode=-32001;s.jsonrpcReservedErrorRangeEnd=-32e3;s.serverErrorEnd=s.jsonrpcReservedErrorRangeEnd})(h=l.ErrorCodes||(l.ErrorCodes={}));class ResponseError extends Error{constructor(s,l,u){super(l);this.code=f.number(s)?s:h.UnknownErrorCode;this.data=u;Object.setPrototypeOf(this,ResponseError.prototype)}toJson(){return{code:this.code,message:this.message,data:this.data}}}l.ResponseError=ResponseError;class ParameterStructures{constructor(s){this.kind=s}static is(s){return s===ParameterStructures.auto||s===ParameterStructures.byName||s===ParameterStructures.byPosition}toString(){return this.kind}}l.ParameterStructures=ParameterStructures;ParameterStructures.auto=new ParameterStructures("auto");ParameterStructures.byPosition=new ParameterStructures("byPosition");ParameterStructures.byName=new ParameterStructures("byName");class AbstractMessageSignature{constructor(s,l){this.method=s;this.numberOfParams=l}get parameterStructures(){return ParameterStructures.auto}}l.AbstractMessageSignature=AbstractMessageSignature;class RequestType0 extends AbstractMessageSignature{constructor(s){super(s,0)}}l.RequestType0=RequestType0;class RequestType extends AbstractMessageSignature{constructor(s,l=ParameterStructures.auto){super(s,1);this._parameterStructures=l}get parameterStructures(){return this._parameterStructures}}l.RequestType=RequestType;class RequestType1 extends AbstractMessageSignature{constructor(s,l=ParameterStructures.auto){super(s,1);this._parameterStructures=l}get parameterStructures(){return this._parameterStructures}}l.RequestType1=RequestType1;class RequestType2 extends AbstractMessageSignature{constructor(s){super(s,2)}}l.RequestType2=RequestType2;class RequestType3 extends AbstractMessageSignature{constructor(s){super(s,3)}}l.RequestType3=RequestType3;class RequestType4 extends AbstractMessageSignature{constructor(s){super(s,4)}}l.RequestType4=RequestType4;class RequestType5 extends AbstractMessageSignature{constructor(s){super(s,5)}}l.RequestType5=RequestType5;class RequestType6 extends AbstractMessageSignature{constructor(s){super(s,6)}}l.RequestType6=RequestType6;class RequestType7 extends AbstractMessageSignature{constructor(s){super(s,7)}}l.RequestType7=RequestType7;class RequestType8 extends AbstractMessageSignature{constructor(s){super(s,8)}}l.RequestType8=RequestType8;class RequestType9 extends AbstractMessageSignature{constructor(s){super(s,9)}}l.RequestType9=RequestType9;class NotificationType extends AbstractMessageSignature{constructor(s,l=ParameterStructures.auto){super(s,1);this._parameterStructures=l}get parameterStructures(){return this._parameterStructures}}l.NotificationType=NotificationType;class NotificationType0 extends AbstractMessageSignature{constructor(s){super(s,0)}}l.NotificationType0=NotificationType0;class NotificationType1 extends AbstractMessageSignature{constructor(s,l=ParameterStructures.auto){super(s,1);this._parameterStructures=l}get parameterStructures(){return this._parameterStructures}}l.NotificationType1=NotificationType1;class NotificationType2 extends AbstractMessageSignature{constructor(s){super(s,2)}}l.NotificationType2=NotificationType2;class NotificationType3 extends AbstractMessageSignature{constructor(s){super(s,3)}}l.NotificationType3=NotificationType3;class NotificationType4 extends AbstractMessageSignature{constructor(s){super(s,4)}}l.NotificationType4=NotificationType4;class NotificationType5 extends AbstractMessageSignature{constructor(s){super(s,5)}}l.NotificationType5=NotificationType5;class NotificationType6 extends AbstractMessageSignature{constructor(s){super(s,6)}}l.NotificationType6=NotificationType6;class NotificationType7 extends AbstractMessageSignature{constructor(s){super(s,7)}}l.NotificationType7=NotificationType7;class NotificationType8 extends AbstractMessageSignature{constructor(s){super(s,8)}}l.NotificationType8=NotificationType8;class NotificationType9 extends AbstractMessageSignature{constructor(s){super(s,9)}}l.NotificationType9=NotificationType9;function isRequestMessage(s){const l=s;return l&&f.string(l.method)&&(f.string(l.id)||f.number(l.id))}l.isRequestMessage=isRequestMessage;function isNotificationMessage(s){const l=s;return l&&f.string(l.method)&&s.id===void 0}l.isNotificationMessage=isNotificationMessage;function isResponseMessage(s){const l=s;return l&&(l.result!==void 0||!!l.error)&&(f.string(l.id)||f.number(l.id)||l.id===null)}l.isResponseMessage=isResponseMessage},83996:(s,l)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});let u;function RAL(){if(u===undefined){throw new Error(`No runtime abstraction layer installed`)}return u}(function(s){function install(s){if(s===undefined){throw new Error(`No runtime abstraction layer provided`)}u=s}s.install=install})(RAL||(RAL={}));l.default=RAL},78264:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.Semaphore=void 0;const f=u(83996);class Semaphore{constructor(s=1){if(s<=0){throw new Error("Capacity must be greater than 0")}this._capacity=s;this._active=0;this._waiting=[]}lock(s){return new Promise(((l,u)=>{this._waiting.push({thunk:s,resolve:l,reject:u});this.runNext()}))}get active(){return this._active}runNext(){if(this._waiting.length===0||this._active===this._capacity){return}f.default().timer.setImmediate((()=>this.doRunNext()))}doRunNext(){if(this._waiting.length===0||this._active===this._capacity){return}const s=this._waiting.shift();this._active++;if(this._active>this._capacity){throw new Error(`To many thunks active`)}try{const l=s.thunk();if(l instanceof Promise){l.then((l=>{this._active--;s.resolve(l);this.runNext()}),(l=>{this._active--;s.reject(l);this.runNext()}))}else{this._active--;s.resolve(l);this.runNext()}}catch(l){this._active--;s.reject(l);this.runNext()}}}l.Semaphore=Semaphore},41983:function(s,l,u){"use strict";var f=this&&this.__createBinding||(Object.create?function(s,l,u,f){if(f===undefined)f=u;Object.defineProperty(s,f,{enumerable:true,get:function(){return l[u]}})}:function(s,l,u,f){if(f===undefined)f=u;s[f]=l[u]});var h=this&&this.__exportStar||function(s,l){for(var u in s)if(u!=="default"&&!Object.prototype.hasOwnProperty.call(l,u))f(l,s,u)};Object.defineProperty(l,"__esModule",{value:true});l.createMessageConnection=l.createServerSocketTransport=l.createClientSocketTransport=l.createServerPipeTransport=l.createClientPipeTransport=l.generateRandomPipeName=l.StreamMessageWriter=l.StreamMessageReader=l.SocketMessageWriter=l.SocketMessageReader=l.IPCMessageWriter=l.IPCMessageReader=void 0;const g=u(20498);g.default.install();const v=u(3301);const k=u(85622);const O=u(12087);const M=u(76417);const q=u(11631);h(u(3301),l);class IPCMessageReader extends v.AbstractMessageReader{constructor(s){super();this.process=s;let l=this.process;l.on("error",(s=>this.fireError(s)));l.on("close",(()=>this.fireClose()))}listen(s){this.process.on("message",s);return v.Disposable.create((()=>this.process.off("message",s)))}}l.IPCMessageReader=IPCMessageReader;class IPCMessageWriter extends v.AbstractMessageWriter{constructor(s){super();this.process=s;this.errorCount=0;let l=this.process;l.on("error",(s=>this.fireError(s)));l.on("close",(()=>this.fireClose))}write(s){try{if(typeof this.process.send==="function"){this.process.send(s,undefined,undefined,(l=>{if(l){this.errorCount++;this.handleError(l,s)}else{this.errorCount=0}}))}return Promise.resolve()}catch(l){this.handleError(l,s);return Promise.reject(l)}}handleError(s,l){this.errorCount++;this.fireError(s,l,this.errorCount)}end(){}}l.IPCMessageWriter=IPCMessageWriter;class SocketMessageReader extends v.ReadableStreamMessageReader{constructor(s,l="utf-8"){super(g.default().stream.asReadableStream(s),l)}}l.SocketMessageReader=SocketMessageReader;class SocketMessageWriter extends v.WriteableStreamMessageWriter{constructor(s,l){super(g.default().stream.asWritableStream(s),l);this.socket=s}dispose(){super.dispose();this.socket.destroy()}}l.SocketMessageWriter=SocketMessageWriter;class StreamMessageReader extends v.ReadableStreamMessageReader{constructor(s,l){super(g.default().stream.asReadableStream(s),l)}}l.StreamMessageReader=StreamMessageReader;class StreamMessageWriter extends v.WriteableStreamMessageWriter{constructor(s,l){super(g.default().stream.asWritableStream(s),l)}}l.StreamMessageWriter=StreamMessageWriter;const B=process.env["XDG_RUNTIME_DIR"];const Y=new Map([["linux",107],["darwin",103]]);function generateRandomPipeName(){const s=M.randomBytes(21).toString("hex");if(process.platform==="win32"){return`\\\\.\\pipe\\vscode-jsonrpc-${s}-sock`}let l;if(B){l=k.join(B,`vscode-ipc-${s}.sock`)}else{l=k.join(O.tmpdir(),`vscode-${s}.sock`)}const u=Y.get(process.platform);if(u!==undefined&&l.length>=u){g.default().console.warn(`WARNING: IPC handle "${l}" is longer than ${u} characters.`)}return l}l.generateRandomPipeName=generateRandomPipeName;function createClientPipeTransport(s,l="utf-8"){let u;const f=new Promise(((s,l)=>{u=s}));return new Promise(((h,g)=>{let v=q.createServer((s=>{v.close();u([new SocketMessageReader(s,l),new SocketMessageWriter(s,l)])}));v.on("error",g);v.listen(s,(()=>{v.removeListener("error",g);h({onConnected:()=>f})}))}))}l.createClientPipeTransport=createClientPipeTransport;function createServerPipeTransport(s,l="utf-8"){const u=q.createConnection(s);return[new SocketMessageReader(u,l),new SocketMessageWriter(u,l)]}l.createServerPipeTransport=createServerPipeTransport;function createClientSocketTransport(s,l="utf-8"){let u;const f=new Promise(((s,l)=>{u=s}));return new Promise(((h,g)=>{const v=q.createServer((s=>{v.close();u([new SocketMessageReader(s,l),new SocketMessageWriter(s,l)])}));v.on("error",g);v.listen(s,"127.0.0.1",(()=>{v.removeListener("error",g);h({onConnected:()=>f})}))}))}l.createClientSocketTransport=createClientSocketTransport;function createServerSocketTransport(s,l="utf-8"){const u=q.createConnection(s,"127.0.0.1");return[new SocketMessageReader(u,l),new SocketMessageWriter(u,l)]}l.createServerSocketTransport=createServerSocketTransport;function isReadableStream(s){const l=s;return l.read!==undefined&&l.addListener!==undefined}function isWritableStream(s){const l=s;return l.write!==undefined&&l.addListener!==undefined}function createMessageConnection(s,l,u,f){if(!u){u=v.NullLogger}const h=isReadableStream(s)?new StreamMessageReader(s):s;const g=isWritableStream(l)?new StreamMessageWriter(l):l;if(v.ConnectionStrategy.is(f)){f={connectionStrategy:f}}return v.createMessageConnection(h,g,u,f)}l.createMessageConnection=createMessageConnection},20498:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});const f=u(83996);const h=u(31669);const g=u(24788);const v=u(11228);class MessageBuffer extends v.AbstractMessageBuffer{constructor(s="utf-8"){super(s)}emptyBuffer(){return MessageBuffer.emptyBuffer}fromString(s,l){return Buffer.from(s,l)}toString(s,l){if(s instanceof Buffer){return s.toString(l)}else{return new h.TextDecoder(l).decode(s)}}asNative(s,l){if(l===undefined){return s instanceof Buffer?s:Buffer.from(s)}else{return s instanceof Buffer?s.slice(0,l):Buffer.from(s,0,l)}}allocNative(s){return Buffer.allocUnsafe(s)}}MessageBuffer.emptyBuffer=Buffer.allocUnsafe(0);class ReadableStreamWrapper{constructor(s){this.stream=s}onClose(s){this.stream.on("close",s);return g.Disposable.create((()=>this.stream.off("close",s)))}onError(s){this.stream.on("error",s);return g.Disposable.create((()=>this.stream.off("error",s)))}onEnd(s){this.stream.on("end",s);return g.Disposable.create((()=>this.stream.off("end",s)))}onData(s){this.stream.on("data",s);return g.Disposable.create((()=>this.stream.off("data",s)))}}class WritableStreamWrapper{constructor(s){this.stream=s}onClose(s){this.stream.on("close",s);return g.Disposable.create((()=>this.stream.off("close",s)))}onError(s){this.stream.on("error",s);return g.Disposable.create((()=>this.stream.off("error",s)))}onEnd(s){this.stream.on("end",s);return g.Disposable.create((()=>this.stream.off("end",s)))}write(s,l){return new Promise(((u,f)=>{const callback=s=>{if(s===undefined||s===null){u()}else{f(s)}};if(typeof s==="string"){this.stream.write(s,l,callback)}else{this.stream.write(s,callback)}}))}end(){this.stream.end()}}const k=Object.freeze({messageBuffer:Object.freeze({create:s=>new MessageBuffer(s)}),applicationJson:Object.freeze({encoder:Object.freeze({name:"application/json",encode:(s,l)=>{try{return Promise.resolve(Buffer.from(JSON.stringify(s,undefined,0),l.charset))}catch(s){return Promise.reject(s)}}}),decoder:Object.freeze({name:"application/json",decode:(s,l)=>{try{if(s instanceof Buffer){return Promise.resolve(JSON.parse(s.toString(l.charset)))}else{return Promise.resolve(JSON.parse(new h.TextDecoder(l.charset).decode(s)))}}catch(s){return Promise.reject(s)}}})}),stream:Object.freeze({asReadableStream:s=>new ReadableStreamWrapper(s),asWritableStream:s=>new WritableStreamWrapper(s)}),console:console,timer:Object.freeze({setTimeout(s,l,...u){return setTimeout(s,l,...u)},clearTimeout(s){clearTimeout(s)},setImmediate(s,...l){return setImmediate(s,...l)},clearImmediate(s){clearImmediate(s)}})});function RIL(){return k}(function(s){function install(){f.default.install(k)}s.install=install})(RIL||(RIL={}));l.default=RIL},28186:(s,l,u)=>{"use strict";s.exports=u(41983)},76474:function(s,l,u){"use strict";var f=this&&this.__createBinding||(Object.create?function(s,l,u,f){if(f===undefined)f=u;Object.defineProperty(s,f,{enumerable:true,get:function(){return l[u]}})}:function(s,l,u,f){if(f===undefined)f=u;s[f]=l[u]});var h=this&&this.__exportStar||function(s,l){for(var u in s)if(u!=="default"&&!Object.prototype.hasOwnProperty.call(l,u))f(l,s,u)};Object.defineProperty(l,"__esModule",{value:true});l.LSPErrorCodes=l.createProtocolConnection=void 0;h(u(41983),l);h(u(64726),l);h(u(38126),l);h(u(13550),l);var g=u(53546);Object.defineProperty(l,"createProtocolConnection",{enumerable:true,get:function(){return g.createProtocolConnection}});var v;(function(s){s.lspReservedErrorRangeStart=-32899;s.ContentModified=-32801;s.RequestCancelled=-32800;s.lspReservedErrorRangeEnd=-32800})(v=l.LSPErrorCodes||(l.LSPErrorCodes={}))},53546:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.createProtocolConnection=void 0;const f=u(41983);function createProtocolConnection(s,l,u,h){if(f.ConnectionStrategy.is(h)){h={connectionStrategy:h}}return f.createMessageConnection(s,l,u,h)}l.createProtocolConnection=createProtocolConnection},38126:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.ProtocolNotificationType=l.ProtocolNotificationType0=l.ProtocolRequestType=l.ProtocolRequestType0=l.RegistrationType=void 0;const f=u(41983);class RegistrationType{constructor(s){this.method=s}}l.RegistrationType=RegistrationType;class ProtocolRequestType0 extends f.RequestType0{constructor(s){super(s)}}l.ProtocolRequestType0=ProtocolRequestType0;class ProtocolRequestType extends f.RequestType{constructor(s){super(s,f.ParameterStructures.byName)}}l.ProtocolRequestType=ProtocolRequestType;class ProtocolNotificationType0 extends f.NotificationType0{constructor(s){super(s)}}l.ProtocolNotificationType0=ProtocolNotificationType0;class ProtocolNotificationType extends f.NotificationType{constructor(s){super(s,f.ParameterStructures.byName)}}l.ProtocolNotificationType=ProtocolNotificationType},4638:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.CallHierarchyOutgoingCallsRequest=l.CallHierarchyIncomingCallsRequest=l.CallHierarchyPrepareRequest=void 0;const f=u(38126);var h;(function(s){s.method="textDocument/prepareCallHierarchy";s.type=new f.ProtocolRequestType(s.method)})(h=l.CallHierarchyPrepareRequest||(l.CallHierarchyPrepareRequest={}));var g;(function(s){s.method="callHierarchy/incomingCalls";s.type=new f.ProtocolRequestType(s.method)})(g=l.CallHierarchyIncomingCallsRequest||(l.CallHierarchyIncomingCallsRequest={}));var v;(function(s){s.method="callHierarchy/outgoingCalls";s.type=new f.ProtocolRequestType(s.method)})(v=l.CallHierarchyOutgoingCallsRequest||(l.CallHierarchyOutgoingCallsRequest={}))},56125:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.ColorPresentationRequest=l.DocumentColorRequest=void 0;const f=u(38126);var h;(function(s){s.method="textDocument/documentColor";s.type=new f.ProtocolRequestType(s.method)})(h=l.DocumentColorRequest||(l.DocumentColorRequest={}));var g;(function(s){s.type=new f.ProtocolRequestType("textDocument/colorPresentation")})(g=l.ColorPresentationRequest||(l.ColorPresentationRequest={}))},24127:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.ConfigurationRequest=void 0;const f=u(38126);var h;(function(s){s.type=new f.ProtocolRequestType("workspace/configuration")})(h=l.ConfigurationRequest||(l.ConfigurationRequest={}))},5765:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.DeclarationRequest=void 0;const f=u(38126);let h;var g;(function(s){s.method="textDocument/declaration";s.type=new f.ProtocolRequestType(s.method)})(g=l.DeclarationRequest||(l.DeclarationRequest={}))},56243:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.WillDeleteFilesRequest=l.DidDeleteFilesNotification=l.DidRenameFilesNotification=l.WillRenameFilesRequest=l.DidCreateFilesNotification=l.WillCreateFilesRequest=l.FileOperationPatternKind=void 0;const f=u(38126);var h;(function(s){s.file="file";s.folder="folder"})(h=l.FileOperationPatternKind||(l.FileOperationPatternKind={}));var g;(function(s){s.method="workspace/willCreateFiles";s.type=new f.ProtocolRequestType(s.method)})(g=l.WillCreateFilesRequest||(l.WillCreateFilesRequest={}));var v;(function(s){s.method="workspace/didCreateFiles";s.type=new f.ProtocolNotificationType(s.method)})(v=l.DidCreateFilesNotification||(l.DidCreateFilesNotification={}));var k;(function(s){s.method="workspace/willRenameFiles";s.type=new f.ProtocolRequestType(s.method)})(k=l.WillRenameFilesRequest||(l.WillRenameFilesRequest={}));var O;(function(s){s.method="workspace/didRenameFiles";s.type=new f.ProtocolNotificationType(s.method)})(O=l.DidRenameFilesNotification||(l.DidRenameFilesNotification={}));var M;(function(s){s.method="workspace/didDeleteFiles";s.type=new f.ProtocolNotificationType(s.method)})(M=l.DidDeleteFilesNotification||(l.DidDeleteFilesNotification={}));var q;(function(s){s.method="workspace/willDeleteFiles";s.type=new f.ProtocolRequestType(s.method)})(q=l.WillDeleteFilesRequest||(l.WillDeleteFilesRequest={}))},16823:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.FoldingRangeRequest=l.FoldingRangeKind=void 0;const f=u(38126);var h;(function(s){s["Comment"]="comment";s["Imports"]="imports";s["Region"]="region"})(h=l.FoldingRangeKind||(l.FoldingRangeKind={}));var g;(function(s){s.method="textDocument/foldingRange";s.type=new f.ProtocolRequestType(s.method)})(g=l.FoldingRangeRequest||(l.FoldingRangeRequest={}))},30441:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.ImplementationRequest=void 0;const f=u(38126);let h;var g;(function(s){s.method="textDocument/implementation";s.type=new f.ProtocolRequestType(s.method)})(g=l.ImplementationRequest||(l.ImplementationRequest={}))},13550:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.DocumentLinkRequest=l.CodeLensRefreshRequest=l.CodeLensResolveRequest=l.CodeLensRequest=l.WorkspaceSymbolRequest=l.CodeActionResolveRequest=l.CodeActionRequest=l.DocumentSymbolRequest=l.DocumentHighlightRequest=l.ReferencesRequest=l.DefinitionRequest=l.SignatureHelpRequest=l.SignatureHelpTriggerKind=l.HoverRequest=l.CompletionResolveRequest=l.CompletionRequest=l.CompletionTriggerKind=l.PublishDiagnosticsNotification=l.WatchKind=l.FileChangeType=l.DidChangeWatchedFilesNotification=l.WillSaveTextDocumentWaitUntilRequest=l.WillSaveTextDocumentNotification=l.TextDocumentSaveReason=l.DidSaveTextDocumentNotification=l.DidCloseTextDocumentNotification=l.DidChangeTextDocumentNotification=l.TextDocumentContentChangeEvent=l.DidOpenTextDocumentNotification=l.TextDocumentSyncKind=l.TelemetryEventNotification=l.LogMessageNotification=l.ShowMessageRequest=l.ShowMessageNotification=l.MessageType=l.DidChangeConfigurationNotification=l.ExitNotification=l.ShutdownRequest=l.InitializedNotification=l.InitializeError=l.InitializeRequest=l.WorkDoneProgressOptions=l.TextDocumentRegistrationOptions=l.StaticRegistrationOptions=l.FailureHandlingKind=l.ResourceOperationKind=l.UnregistrationRequest=l.RegistrationRequest=l.DocumentSelector=l.DocumentFilter=void 0;l.MonikerRequest=l.MonikerKind=l.UniquenessLevel=l.WillDeleteFilesRequest=l.DidDeleteFilesNotification=l.WillRenameFilesRequest=l.DidRenameFilesNotification=l.WillCreateFilesRequest=l.DidCreateFilesNotification=l.FileOperationPatternKind=l.LinkedEditingRangeRequest=l.ShowDocumentRequest=l.SemanticTokensRegistrationType=l.SemanticTokensRefreshRequest=l.SemanticTokensRangeRequest=l.SemanticTokensDeltaRequest=l.SemanticTokensRequest=l.TokenFormat=l.SemanticTokens=l.SemanticTokenModifiers=l.SemanticTokenTypes=l.CallHierarchyPrepareRequest=l.CallHierarchyOutgoingCallsRequest=l.CallHierarchyIncomingCallsRequest=l.WorkDoneProgressCancelNotification=l.WorkDoneProgressCreateRequest=l.WorkDoneProgress=l.SelectionRangeRequest=l.DeclarationRequest=l.FoldingRangeRequest=l.ColorPresentationRequest=l.DocumentColorRequest=l.ConfigurationRequest=l.DidChangeWorkspaceFoldersNotification=l.WorkspaceFoldersRequest=l.TypeDefinitionRequest=l.ImplementationRequest=l.ApplyWorkspaceEditRequest=l.ExecuteCommandRequest=l.PrepareRenameRequest=l.RenameRequest=l.PrepareSupportDefaultBehavior=l.DocumentOnTypeFormattingRequest=l.DocumentRangeFormattingRequest=l.DocumentFormattingRequest=l.DocumentLinkResolveRequest=void 0;const f=u(24065);const h=u(38126);const g=u(30441);Object.defineProperty(l,"ImplementationRequest",{enumerable:true,get:function(){return g.ImplementationRequest}});const v=u(79895);Object.defineProperty(l,"TypeDefinitionRequest",{enumerable:true,get:function(){return v.TypeDefinitionRequest}});const k=u(86432);Object.defineProperty(l,"WorkspaceFoldersRequest",{enumerable:true,get:function(){return k.WorkspaceFoldersRequest}});Object.defineProperty(l,"DidChangeWorkspaceFoldersNotification",{enumerable:true,get:function(){return k.DidChangeWorkspaceFoldersNotification}});const O=u(24127);Object.defineProperty(l,"ConfigurationRequest",{enumerable:true,get:function(){return O.ConfigurationRequest}});const M=u(56125);Object.defineProperty(l,"DocumentColorRequest",{enumerable:true,get:function(){return M.DocumentColorRequest}});Object.defineProperty(l,"ColorPresentationRequest",{enumerable:true,get:function(){return M.ColorPresentationRequest}});const q=u(16823);Object.defineProperty(l,"FoldingRangeRequest",{enumerable:true,get:function(){return q.FoldingRangeRequest}});const B=u(5765);Object.defineProperty(l,"DeclarationRequest",{enumerable:true,get:function(){return B.DeclarationRequest}});const Y=u(27424);Object.defineProperty(l,"SelectionRangeRequest",{enumerable:true,get:function(){return Y.SelectionRangeRequest}});const te=u(95431);Object.defineProperty(l,"WorkDoneProgress",{enumerable:true,get:function(){return te.WorkDoneProgress}});Object.defineProperty(l,"WorkDoneProgressCreateRequest",{enumerable:true,get:function(){return te.WorkDoneProgressCreateRequest}});Object.defineProperty(l,"WorkDoneProgressCancelNotification",{enumerable:true,get:function(){return te.WorkDoneProgressCancelNotification}});const re=u(4638);Object.defineProperty(l,"CallHierarchyIncomingCallsRequest",{enumerable:true,get:function(){return re.CallHierarchyIncomingCallsRequest}});Object.defineProperty(l,"CallHierarchyOutgoingCallsRequest",{enumerable:true,get:function(){return re.CallHierarchyOutgoingCallsRequest}});Object.defineProperty(l,"CallHierarchyPrepareRequest",{enumerable:true,get:function(){return re.CallHierarchyPrepareRequest}});const ne=u(34918);Object.defineProperty(l,"SemanticTokenTypes",{enumerable:true,get:function(){return ne.SemanticTokenTypes}});Object.defineProperty(l,"SemanticTokenModifiers",{enumerable:true,get:function(){return ne.SemanticTokenModifiers}});Object.defineProperty(l,"SemanticTokens",{enumerable:true,get:function(){return ne.SemanticTokens}});Object.defineProperty(l,"TokenFormat",{enumerable:true,get:function(){return ne.TokenFormat}});Object.defineProperty(l,"SemanticTokensRequest",{enumerable:true,get:function(){return ne.SemanticTokensRequest}});Object.defineProperty(l,"SemanticTokensDeltaRequest",{enumerable:true,get:function(){return ne.SemanticTokensDeltaRequest}});Object.defineProperty(l,"SemanticTokensRangeRequest",{enumerable:true,get:function(){return ne.SemanticTokensRangeRequest}});Object.defineProperty(l,"SemanticTokensRefreshRequest",{enumerable:true,get:function(){return ne.SemanticTokensRefreshRequest}});Object.defineProperty(l,"SemanticTokensRegistrationType",{enumerable:true,get:function(){return ne.SemanticTokensRegistrationType}});const ie=u(99806);Object.defineProperty(l,"ShowDocumentRequest",{enumerable:true,get:function(){return ie.ShowDocumentRequest}});const se=u(18727);Object.defineProperty(l,"LinkedEditingRangeRequest",{enumerable:true,get:function(){return se.LinkedEditingRangeRequest}});const oe=u(56243);Object.defineProperty(l,"FileOperationPatternKind",{enumerable:true,get:function(){return oe.FileOperationPatternKind}});Object.defineProperty(l,"DidCreateFilesNotification",{enumerable:true,get:function(){return oe.DidCreateFilesNotification}});Object.defineProperty(l,"WillCreateFilesRequest",{enumerable:true,get:function(){return oe.WillCreateFilesRequest}});Object.defineProperty(l,"DidRenameFilesNotification",{enumerable:true,get:function(){return oe.DidRenameFilesNotification}});Object.defineProperty(l,"WillRenameFilesRequest",{enumerable:true,get:function(){return oe.WillRenameFilesRequest}});Object.defineProperty(l,"DidDeleteFilesNotification",{enumerable:true,get:function(){return oe.DidDeleteFilesNotification}});Object.defineProperty(l,"WillDeleteFilesRequest",{enumerable:true,get:function(){return oe.WillDeleteFilesRequest}});const ae=u(40608);Object.defineProperty(l,"UniquenessLevel",{enumerable:true,get:function(){return ae.UniquenessLevel}});Object.defineProperty(l,"MonikerKind",{enumerable:true,get:function(){return ae.MonikerKind}});Object.defineProperty(l,"MonikerRequest",{enumerable:true,get:function(){return ae.MonikerRequest}});let le;var ue;(function(s){function is(s){const l=s;return f.string(l.language)||f.string(l.scheme)||f.string(l.pattern)}s.is=is})(ue=l.DocumentFilter||(l.DocumentFilter={}));var ce;(function(s){function is(s){if(!Array.isArray(s)){return false}for(let l of s){if(!f.string(l)&&!ue.is(l)){return false}}return true}s.is=is})(ce=l.DocumentSelector||(l.DocumentSelector={}));var fe;(function(s){s.type=new h.ProtocolRequestType("client/registerCapability")})(fe=l.RegistrationRequest||(l.RegistrationRequest={}));var pe;(function(s){s.type=new h.ProtocolRequestType("client/unregisterCapability")})(pe=l.UnregistrationRequest||(l.UnregistrationRequest={}));var de;(function(s){s.Create="create";s.Rename="rename";s.Delete="delete"})(de=l.ResourceOperationKind||(l.ResourceOperationKind={}));var he;(function(s){s.Abort="abort";s.Transactional="transactional";s.TextOnlyTransactional="textOnlyTransactional";s.Undo="undo"})(he=l.FailureHandlingKind||(l.FailureHandlingKind={}));var ge;(function(s){function hasId(s){const l=s;return l&&f.string(l.id)&&l.id.length>0}s.hasId=hasId})(ge=l.StaticRegistrationOptions||(l.StaticRegistrationOptions={}));var ve;(function(s){function is(s){const l=s;return l&&(l.documentSelector===null||ce.is(l.documentSelector))}s.is=is})(ve=l.TextDocumentRegistrationOptions||(l.TextDocumentRegistrationOptions={}));var ye;(function(s){function is(s){const l=s;return f.objectLiteral(l)&&(l.workDoneProgress===undefined||f.boolean(l.workDoneProgress))}s.is=is;function hasWorkDoneProgress(s){const l=s;return l&&f.boolean(l.workDoneProgress)}s.hasWorkDoneProgress=hasWorkDoneProgress})(ye=l.WorkDoneProgressOptions||(l.WorkDoneProgressOptions={}));var we;(function(s){s.type=new h.ProtocolRequestType("initialize")})(we=l.InitializeRequest||(l.InitializeRequest={}));var _e;(function(s){s.unknownProtocolVersion=1})(_e=l.InitializeError||(l.InitializeError={}));var Se;(function(s){s.type=new h.ProtocolNotificationType("initialized")})(Se=l.InitializedNotification||(l.InitializedNotification={}));var ke;(function(s){s.type=new h.ProtocolRequestType0("shutdown")})(ke=l.ShutdownRequest||(l.ShutdownRequest={}));var Ce;(function(s){s.type=new h.ProtocolNotificationType0("exit")})(Ce=l.ExitNotification||(l.ExitNotification={}));var Ee;(function(s){s.type=new h.ProtocolNotificationType("workspace/didChangeConfiguration")})(Ee=l.DidChangeConfigurationNotification||(l.DidChangeConfigurationNotification={}));var Re;(function(s){s.Error=1;s.Warning=2;s.Info=3;s.Log=4})(Re=l.MessageType||(l.MessageType={}));var Oe;(function(s){s.type=new h.ProtocolNotificationType("window/showMessage")})(Oe=l.ShowMessageNotification||(l.ShowMessageNotification={}));var De;(function(s){s.type=new h.ProtocolRequestType("window/showMessageRequest")})(De=l.ShowMessageRequest||(l.ShowMessageRequest={}));var Ie;(function(s){s.type=new h.ProtocolNotificationType("window/logMessage")})(Ie=l.LogMessageNotification||(l.LogMessageNotification={}));var Me;(function(s){s.type=new h.ProtocolNotificationType("telemetry/event")})(Me=l.TelemetryEventNotification||(l.TelemetryEventNotification={}));var Ne;(function(s){s.None=0;s.Full=1;s.Incremental=2})(Ne=l.TextDocumentSyncKind||(l.TextDocumentSyncKind={}));var Le;(function(s){s.method="textDocument/didOpen";s.type=new h.ProtocolNotificationType(s.method)})(Le=l.DidOpenTextDocumentNotification||(l.DidOpenTextDocumentNotification={}));var je;(function(s){function isIncremental(s){let l=s;return l!==undefined&&l!==null&&typeof l.text==="string"&&l.range!==undefined&&(l.rangeLength===undefined||typeof l.rangeLength==="number")}s.isIncremental=isIncremental;function isFull(s){let l=s;return l!==undefined&&l!==null&&typeof l.text==="string"&&l.range===undefined&&l.rangeLength===undefined}s.isFull=isFull})(je=l.TextDocumentContentChangeEvent||(l.TextDocumentContentChangeEvent={}));var Fe;(function(s){s.method="textDocument/didChange";s.type=new h.ProtocolNotificationType(s.method)})(Fe=l.DidChangeTextDocumentNotification||(l.DidChangeTextDocumentNotification={}));var qe;(function(s){s.method="textDocument/didClose";s.type=new h.ProtocolNotificationType(s.method)})(qe=l.DidCloseTextDocumentNotification||(l.DidCloseTextDocumentNotification={}));var $e;(function(s){s.method="textDocument/didSave";s.type=new h.ProtocolNotificationType(s.method)})($e=l.DidSaveTextDocumentNotification||(l.DidSaveTextDocumentNotification={}));var We;(function(s){s.Manual=1;s.AfterDelay=2;s.FocusOut=3})(We=l.TextDocumentSaveReason||(l.TextDocumentSaveReason={}));var ze;(function(s){s.method="textDocument/willSave";s.type=new h.ProtocolNotificationType(s.method)})(ze=l.WillSaveTextDocumentNotification||(l.WillSaveTextDocumentNotification={}));var Ve;(function(s){s.method="textDocument/willSaveWaitUntil";s.type=new h.ProtocolRequestType(s.method)})(Ve=l.WillSaveTextDocumentWaitUntilRequest||(l.WillSaveTextDocumentWaitUntilRequest={}));var Ge;(function(s){s.type=new h.ProtocolNotificationType("workspace/didChangeWatchedFiles")})(Ge=l.DidChangeWatchedFilesNotification||(l.DidChangeWatchedFilesNotification={}));var Ye;(function(s){s.Created=1;s.Changed=2;s.Deleted=3})(Ye=l.FileChangeType||(l.FileChangeType={}));var Ke;(function(s){s.Create=1;s.Change=2;s.Delete=4})(Ke=l.WatchKind||(l.WatchKind={}));var Qe;(function(s){s.type=new h.ProtocolNotificationType("textDocument/publishDiagnostics")})(Qe=l.PublishDiagnosticsNotification||(l.PublishDiagnosticsNotification={}));var Je;(function(s){s.Invoked=1;s.TriggerCharacter=2;s.TriggerForIncompleteCompletions=3})(Je=l.CompletionTriggerKind||(l.CompletionTriggerKind={}));var Xe;(function(s){s.method="textDocument/completion";s.type=new h.ProtocolRequestType(s.method)})(Xe=l.CompletionRequest||(l.CompletionRequest={}));var et;(function(s){s.method="completionItem/resolve";s.type=new h.ProtocolRequestType(s.method)})(et=l.CompletionResolveRequest||(l.CompletionResolveRequest={}));var tt;(function(s){s.method="textDocument/hover";s.type=new h.ProtocolRequestType(s.method)})(tt=l.HoverRequest||(l.HoverRequest={}));var it;(function(s){s.Invoked=1;s.TriggerCharacter=2;s.ContentChange=3})(it=l.SignatureHelpTriggerKind||(l.SignatureHelpTriggerKind={}));var st;(function(s){s.method="textDocument/signatureHelp";s.type=new h.ProtocolRequestType(s.method)})(st=l.SignatureHelpRequest||(l.SignatureHelpRequest={}));var ut;(function(s){s.method="textDocument/definition";s.type=new h.ProtocolRequestType(s.method)})(ut=l.DefinitionRequest||(l.DefinitionRequest={}));var ct;(function(s){s.method="textDocument/references";s.type=new h.ProtocolRequestType(s.method)})(ct=l.ReferencesRequest||(l.ReferencesRequest={}));var ft;(function(s){s.method="textDocument/documentHighlight";s.type=new h.ProtocolRequestType(s.method)})(ft=l.DocumentHighlightRequest||(l.DocumentHighlightRequest={}));var pt;(function(s){s.method="textDocument/documentSymbol";s.type=new h.ProtocolRequestType(s.method)})(pt=l.DocumentSymbolRequest||(l.DocumentSymbolRequest={}));var dt;(function(s){s.method="textDocument/codeAction";s.type=new h.ProtocolRequestType(s.method)})(dt=l.CodeActionRequest||(l.CodeActionRequest={}));var ht;(function(s){s.method="codeAction/resolve";s.type=new h.ProtocolRequestType(s.method)})(ht=l.CodeActionResolveRequest||(l.CodeActionResolveRequest={}));var mt;(function(s){s.method="workspace/symbol";s.type=new h.ProtocolRequestType(s.method)})(mt=l.WorkspaceSymbolRequest||(l.WorkspaceSymbolRequest={}));var vt;(function(s){s.method="textDocument/codeLens";s.type=new h.ProtocolRequestType(s.method)})(vt=l.CodeLensRequest||(l.CodeLensRequest={}));var yt;(function(s){s.method="codeLens/resolve";s.type=new h.ProtocolRequestType(s.method)})(yt=l.CodeLensResolveRequest||(l.CodeLensResolveRequest={}));var bt;(function(s){s.method=`workspace/codeLens/refresh`;s.type=new h.ProtocolRequestType0(s.method)})(bt=l.CodeLensRefreshRequest||(l.CodeLensRefreshRequest={}));var wt;(function(s){s.method="textDocument/documentLink";s.type=new h.ProtocolRequestType(s.method)})(wt=l.DocumentLinkRequest||(l.DocumentLinkRequest={}));var _t;(function(s){s.method="documentLink/resolve";s.type=new h.ProtocolRequestType(s.method)})(_t=l.DocumentLinkResolveRequest||(l.DocumentLinkResolveRequest={}));var xt;(function(s){s.method="textDocument/formatting";s.type=new h.ProtocolRequestType(s.method)})(xt=l.DocumentFormattingRequest||(l.DocumentFormattingRequest={}));var St;(function(s){s.method="textDocument/rangeFormatting";s.type=new h.ProtocolRequestType(s.method)})(St=l.DocumentRangeFormattingRequest||(l.DocumentRangeFormattingRequest={}));var kt;(function(s){s.method="textDocument/onTypeFormatting";s.type=new h.ProtocolRequestType(s.method)})(kt=l.DocumentOnTypeFormattingRequest||(l.DocumentOnTypeFormattingRequest={}));var Ct;(function(s){s.Identifier=1})(Ct=l.PrepareSupportDefaultBehavior||(l.PrepareSupportDefaultBehavior={}));var Et;(function(s){s.method="textDocument/rename";s.type=new h.ProtocolRequestType(s.method)})(Et=l.RenameRequest||(l.RenameRequest={}));var Rt;(function(s){s.method="textDocument/prepareRename";s.type=new h.ProtocolRequestType(s.method)})(Rt=l.PrepareRenameRequest||(l.PrepareRenameRequest={}));var Pt;(function(s){s.type=new h.ProtocolRequestType("workspace/executeCommand")})(Pt=l.ExecuteCommandRequest||(l.ExecuteCommandRequest={}));var Tt;(function(s){s.type=new h.ProtocolRequestType("workspace/applyEdit")})(Tt=l.ApplyWorkspaceEditRequest||(l.ApplyWorkspaceEditRequest={}))},18727:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.LinkedEditingRangeRequest=void 0;const f=u(38126);var h;(function(s){s.method="textDocument/linkedEditingRange";s.type=new f.ProtocolRequestType(s.method)})(h=l.LinkedEditingRangeRequest||(l.LinkedEditingRangeRequest={}))},40608:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.MonikerRequest=l.MonikerKind=l.UniquenessLevel=void 0;const f=u(38126);var h;(function(s){s["document"]="document";s["project"]="project";s["group"]="group";s["scheme"]="scheme";s["global"]="global"})(h=l.UniquenessLevel||(l.UniquenessLevel={}));var g;(function(s){s["import"]="import";s["export"]="export";s["local"]="local"})(g=l.MonikerKind||(l.MonikerKind={}));var v;(function(s){s.method="textDocument/moniker";s.type=new f.ProtocolRequestType(s.method)})(v=l.MonikerRequest||(l.MonikerRequest={}))},95431:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.WorkDoneProgressCancelNotification=l.WorkDoneProgressCreateRequest=l.WorkDoneProgress=void 0;const f=u(41983);const h=u(38126);var g;(function(s){s.type=new f.ProgressType;function is(l){return l===s.type}s.is=is})(g=l.WorkDoneProgress||(l.WorkDoneProgress={}));var v;(function(s){s.type=new h.ProtocolRequestType("window/workDoneProgress/create")})(v=l.WorkDoneProgressCreateRequest||(l.WorkDoneProgressCreateRequest={}));var k;(function(s){s.type=new h.ProtocolNotificationType("window/workDoneProgress/cancel")})(k=l.WorkDoneProgressCancelNotification||(l.WorkDoneProgressCancelNotification={}))},27424:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.SelectionRangeRequest=void 0;const f=u(38126);var h;(function(s){s.method="textDocument/selectionRange";s.type=new f.ProtocolRequestType(s.method)})(h=l.SelectionRangeRequest||(l.SelectionRangeRequest={}))},34918:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.SemanticTokensRefreshRequest=l.SemanticTokensRangeRequest=l.SemanticTokensDeltaRequest=l.SemanticTokensRequest=l.SemanticTokensRegistrationType=l.TokenFormat=l.SemanticTokens=l.SemanticTokenModifiers=l.SemanticTokenTypes=void 0;const f=u(38126);var h;(function(s){s["namespace"]="namespace";s["type"]="type";s["class"]="class";s["enum"]="enum";s["interface"]="interface";s["struct"]="struct";s["typeParameter"]="typeParameter";s["parameter"]="parameter";s["variable"]="variable";s["property"]="property";s["enumMember"]="enumMember";s["event"]="event";s["function"]="function";s["method"]="method";s["macro"]="macro";s["keyword"]="keyword";s["modifier"]="modifier";s["comment"]="comment";s["string"]="string";s["number"]="number";s["regexp"]="regexp";s["operator"]="operator"})(h=l.SemanticTokenTypes||(l.SemanticTokenTypes={}));var g;(function(s){s["declaration"]="declaration";s["definition"]="definition";s["readonly"]="readonly";s["static"]="static";s["deprecated"]="deprecated";s["abstract"]="abstract";s["async"]="async";s["modification"]="modification";s["documentation"]="documentation";s["defaultLibrary"]="defaultLibrary"})(g=l.SemanticTokenModifiers||(l.SemanticTokenModifiers={}));var v;(function(s){function is(s){const l=s;return l!==undefined&&(l.resultId===undefined||typeof l.resultId==="string")&&Array.isArray(l.data)&&(l.data.length===0||typeof l.data[0]==="number")}s.is=is})(v=l.SemanticTokens||(l.SemanticTokens={}));var k;(function(s){s.Relative="relative"})(k=l.TokenFormat||(l.TokenFormat={}));var O;(function(s){s.method="textDocument/semanticTokens";s.type=new f.RegistrationType(s.method)})(O=l.SemanticTokensRegistrationType||(l.SemanticTokensRegistrationType={}));var M;(function(s){s.method="textDocument/semanticTokens/full";s.type=new f.ProtocolRequestType(s.method)})(M=l.SemanticTokensRequest||(l.SemanticTokensRequest={}));var q;(function(s){s.method="textDocument/semanticTokens/full/delta";s.type=new f.ProtocolRequestType(s.method)})(q=l.SemanticTokensDeltaRequest||(l.SemanticTokensDeltaRequest={}));var B;(function(s){s.method="textDocument/semanticTokens/range";s.type=new f.ProtocolRequestType(s.method)})(B=l.SemanticTokensRangeRequest||(l.SemanticTokensRangeRequest={}));var Y;(function(s){s.method=`workspace/semanticTokens/refresh`;s.type=new f.ProtocolRequestType0(s.method)})(Y=l.SemanticTokensRefreshRequest||(l.SemanticTokensRefreshRequest={}))},99806:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.ShowDocumentRequest=void 0;const f=u(38126);var h;(function(s){s.method="window/showDocument";s.type=new f.ProtocolRequestType(s.method)})(h=l.ShowDocumentRequest||(l.ShowDocumentRequest={}))},79895:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.TypeDefinitionRequest=void 0;const f=u(38126);let h;var g;(function(s){s.method="textDocument/typeDefinition";s.type=new f.ProtocolRequestType(s.method)})(g=l.TypeDefinitionRequest||(l.TypeDefinitionRequest={}))},86432:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.DidChangeWorkspaceFoldersNotification=l.WorkspaceFoldersRequest=void 0;const f=u(38126);var h;(function(s){s.type=new f.ProtocolRequestType0("workspace/workspaceFolders")})(h=l.WorkspaceFoldersRequest||(l.WorkspaceFoldersRequest={}));var g;(function(s){s.type=new f.ProtocolNotificationType("workspace/didChangeWorkspaceFolders")})(g=l.DidChangeWorkspaceFoldersNotification||(l.DidChangeWorkspaceFoldersNotification={}))},24065:(s,l)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.objectLiteral=l.typedArray=l.stringArray=l.array=l.func=l.error=l.number=l.string=l.boolean=void 0;function boolean(s){return s===true||s===false}l.boolean=boolean;function string(s){return typeof s==="string"||s instanceof String}l.string=string;function number(s){return typeof s==="number"||s instanceof Number}l.number=number;function error(s){return s instanceof Error}l.error=error;function func(s){return typeof s==="function"}l.func=func;function array(s){return Array.isArray(s)}l.array=array;function stringArray(s){return array(s)&&s.every((s=>string(s)))}l.stringArray=stringArray;function typedArray(s,l){return Array.isArray(s)&&s.every(l)}l.typedArray=typedArray;function objectLiteral(s){return s!==null&&typeof s==="object"}l.objectLiteral=objectLiteral},3302:function(s,l,u){"use strict";var f=this&&this.__createBinding||(Object.create?function(s,l,u,f){if(f===undefined)f=u;Object.defineProperty(s,f,{enumerable:true,get:function(){return l[u]}})}:function(s,l,u,f){if(f===undefined)f=u;s[f]=l[u]});var h=this&&this.__exportStar||function(s,l){for(var u in s)if(u!=="default"&&!Object.prototype.hasOwnProperty.call(l,u))f(l,s,u)};Object.defineProperty(l,"__esModule",{value:true});l.createProtocolConnection=void 0;const g=u(28186);h(u(28186),l);h(u(76474),l);function createProtocolConnection(s,l,u,f){return g.createMessageConnection(s,l,u,f)}l.createProtocolConnection=createProtocolConnection},77798:(s,l,u)=>{"use strict";s.exports=u(3302)},97960:(s,l)=>{(function(u){if(true&&typeof s.exports==="object"){var f=u(require,l);if(f!==undefined)s.exports=f}else if(typeof define==="function"&&define.amd){define(["require","exports"],u)}})((function(){"use strict";Object.defineProperty(l,"__esModule",{value:true});var s=function(){function FullTextDocument(s,l,u,f){this._uri=s;this._languageId=l;this._version=u;this._content=f;this._lineOffsets=undefined}Object.defineProperty(FullTextDocument.prototype,"uri",{get:function(){return this._uri},enumerable:true,configurable:true});Object.defineProperty(FullTextDocument.prototype,"languageId",{get:function(){return this._languageId},enumerable:true,configurable:true});Object.defineProperty(FullTextDocument.prototype,"version",{get:function(){return this._version},enumerable:true,configurable:true});FullTextDocument.prototype.getText=function(s){if(s){var l=this.offsetAt(s.start);var u=this.offsetAt(s.end);return this._content.substring(l,u)}return this._content};FullTextDocument.prototype.update=function(s,l){for(var u=0,f=s;u<f.length;u++){var h=f[u];if(FullTextDocument.isIncremental(h)){var g=getWellformedRange(h.range);var v=this.offsetAt(g.start);var k=this.offsetAt(g.end);this._content=this._content.substring(0,v)+h.text+this._content.substring(k,this._content.length);var O=Math.max(g.start.line,0);var M=Math.max(g.end.line,0);var q=this._lineOffsets;var B=computeLineOffsets(h.text,false,v);if(M-O===B.length){for(var Y=0,te=B.length;Y<te;Y++){q[Y+O+1]=B[Y]}}else{if(B.length<1e4){q.splice.apply(q,[O+1,M-O].concat(B))}else{this._lineOffsets=q=q.slice(0,O+1).concat(B,q.slice(M+1))}}var re=h.text.length-(k-v);if(re!==0){for(var Y=O+1+B.length,te=q.length;Y<te;Y++){q[Y]=q[Y]+re}}}else if(FullTextDocument.isFull(h)){this._content=h.text;this._lineOffsets=undefined}else{throw new Error("Unknown change event received")}}this._version=l};FullTextDocument.prototype.getLineOffsets=function(){if(this._lineOffsets===undefined){this._lineOffsets=computeLineOffsets(this._content,true)}return this._lineOffsets};FullTextDocument.prototype.positionAt=function(s){s=Math.max(Math.min(s,this._content.length),0);var l=this.getLineOffsets();var u=0,f=l.length;if(f===0){return{line:0,character:s}}while(u<f){var h=Math.floor((u+f)/2);if(l[h]>s){f=h}else{u=h+1}}var g=u-1;return{line:g,character:s-l[g]}};FullTextDocument.prototype.offsetAt=function(s){var l=this.getLineOffsets();if(s.line>=l.length){return this._content.length}else if(s.line<0){return 0}var u=l[s.line];var f=s.line+1<l.length?l[s.line+1]:this._content.length;return Math.max(Math.min(u+s.character,f),u)};Object.defineProperty(FullTextDocument.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:true,configurable:true});FullTextDocument.isIncremental=function(s){var l=s;return l!==undefined&&l!==null&&typeof l.text==="string"&&l.range!==undefined&&(l.rangeLength===undefined||typeof l.rangeLength==="number")};FullTextDocument.isFull=function(s){var l=s;return l!==undefined&&l!==null&&typeof l.text==="string"&&l.range===undefined&&l.rangeLength===undefined};return FullTextDocument}();var u;(function(l){function create(l,u,f,h){return new s(l,u,f,h)}l.create=create;function update(l,u,f){if(l instanceof s){l.update(u,f);return l}else{throw new Error("TextDocument.update: document must be created by TextDocument.create")}}l.update=update;function applyEdits(s,l){var u=s.getText();var f=mergeSort(l.map(getWellformedEdit),(function(s,l){var u=s.range.start.line-l.range.start.line;if(u===0){return s.range.start.character-l.range.start.character}return u}));var h=0;var g=[];for(var v=0,k=f;v<k.length;v++){var O=k[v];var M=s.offsetAt(O.range.start);if(M<h){throw new Error("Overlapping edit")}else if(M>h){g.push(u.substring(h,M))}if(O.newText.length){g.push(O.newText)}h=s.offsetAt(O.range.end)}g.push(u.substr(h));return g.join("")}l.applyEdits=applyEdits})(u=l.TextDocument||(l.TextDocument={}));function mergeSort(s,l){if(s.length<=1){return s}var u=s.length/2|0;var f=s.slice(0,u);var h=s.slice(u);mergeSort(f,l);mergeSort(h,l);var g=0;var v=0;var k=0;while(g<f.length&&v<h.length){var O=l(f[g],h[v]);if(O<=0){s[k++]=f[g++]}else{s[k++]=h[v++]}}while(g<f.length){s[k++]=f[g++]}while(v<h.length){s[k++]=h[v++]}return s}function computeLineOffsets(s,l,u){if(u===void 0){u=0}var f=l?[u]:[];for(var h=0;h<s.length;h++){var g=s.charCodeAt(h);if(g===13||g===10){if(g===13&&h+1<s.length&&s.charCodeAt(h+1)===10){h++}f.push(u+h+1)}}return f}function getWellformedRange(s){var l=s.start;var u=s.end;if(l.line>u.line||l.line===u.line&&l.character>u.character){return{start:u,end:l}}return s}function getWellformedEdit(s){var l=getWellformedRange(s.range);if(l!==s.range){return{newText:s.newText,range:l}}return s}}))},64726:(s,l)=>{(function(u){if(true&&typeof s.exports==="object"){var f=u(require,l);if(f!==undefined)s.exports=f}else if(typeof define==="function"&&define.amd){define(["require","exports"],u)}})((function(){"use strict";Object.defineProperty(l,"__esModule",{value:true});l.TextDocument=l.EOL=l.SelectionRange=l.DocumentLink=l.FormattingOptions=l.CodeLens=l.CodeAction=l.CodeActionContext=l.CodeActionKind=l.DocumentSymbol=l.SymbolInformation=l.SymbolTag=l.SymbolKind=l.DocumentHighlight=l.DocumentHighlightKind=l.SignatureInformation=l.ParameterInformation=l.Hover=l.MarkedString=l.CompletionList=l.CompletionItem=l.InsertTextMode=l.InsertReplaceEdit=l.CompletionItemTag=l.InsertTextFormat=l.CompletionItemKind=l.MarkupContent=l.MarkupKind=l.TextDocumentItem=l.OptionalVersionedTextDocumentIdentifier=l.VersionedTextDocumentIdentifier=l.TextDocumentIdentifier=l.WorkspaceChange=l.WorkspaceEdit=l.DeleteFile=l.RenameFile=l.CreateFile=l.TextDocumentEdit=l.AnnotatedTextEdit=l.ChangeAnnotationIdentifier=l.ChangeAnnotation=l.TextEdit=l.Command=l.Diagnostic=l.CodeDescription=l.DiagnosticTag=l.DiagnosticSeverity=l.DiagnosticRelatedInformation=l.FoldingRange=l.FoldingRangeKind=l.ColorPresentation=l.ColorInformation=l.Color=l.LocationLink=l.Location=l.Range=l.Position=l.uinteger=l.integer=void 0;var s;(function(s){s.MIN_VALUE=-2147483648;s.MAX_VALUE=2147483647})(s=l.integer||(l.integer={}));var u;(function(s){s.MIN_VALUE=0;s.MAX_VALUE=2147483647})(u=l.uinteger||(l.uinteger={}));var f;(function(s){function create(s,l){if(s===Number.MAX_VALUE){s=u.MAX_VALUE}if(l===Number.MAX_VALUE){l=u.MAX_VALUE}return{line:s,character:l}}s.create=create;function is(s){var l=s;return ft.objectLiteral(l)&&ft.uinteger(l.line)&&ft.uinteger(l.character)}s.is=is})(f=l.Position||(l.Position={}));var h;(function(s){function create(s,l,u,h){if(ft.uinteger(s)&&ft.uinteger(l)&&ft.uinteger(u)&&ft.uinteger(h)){return{start:f.create(s,l),end:f.create(u,h)}}else if(f.is(s)&&f.is(l)){return{start:s,end:l}}else{throw new Error("Range#create called with invalid arguments["+s+", "+l+", "+u+", "+h+"]")}}s.create=create;function is(s){var l=s;return ft.objectLiteral(l)&&f.is(l.start)&&f.is(l.end)}s.is=is})(h=l.Range||(l.Range={}));var g;(function(s){function create(s,l){return{uri:s,range:l}}s.create=create;function is(s){var l=s;return ft.defined(l)&&h.is(l.range)&&(ft.string(l.uri)||ft.undefined(l.uri))}s.is=is})(g=l.Location||(l.Location={}));var v;(function(s){function create(s,l,u,f){return{targetUri:s,targetRange:l,targetSelectionRange:u,originSelectionRange:f}}s.create=create;function is(s){var l=s;return ft.defined(l)&&h.is(l.targetRange)&&ft.string(l.targetUri)&&(h.is(l.targetSelectionRange)||ft.undefined(l.targetSelectionRange))&&(h.is(l.originSelectionRange)||ft.undefined(l.originSelectionRange))}s.is=is})(v=l.LocationLink||(l.LocationLink={}));var k;(function(s){function create(s,l,u,f){return{red:s,green:l,blue:u,alpha:f}}s.create=create;function is(s){var l=s;return ft.numberRange(l.red,0,1)&&ft.numberRange(l.green,0,1)&&ft.numberRange(l.blue,0,1)&&ft.numberRange(l.alpha,0,1)}s.is=is})(k=l.Color||(l.Color={}));var O;(function(s){function create(s,l){return{range:s,color:l}}s.create=create;function is(s){var l=s;return h.is(l.range)&&k.is(l.color)}s.is=is})(O=l.ColorInformation||(l.ColorInformation={}));var M;(function(s){function create(s,l,u){return{label:s,textEdit:l,additionalTextEdits:u}}s.create=create;function is(s){var l=s;return ft.string(l.label)&&(ft.undefined(l.textEdit)||oe.is(l))&&(ft.undefined(l.additionalTextEdits)||ft.typedArray(l.additionalTextEdits,oe.is))}s.is=is})(M=l.ColorPresentation||(l.ColorPresentation={}));var q;(function(s){s["Comment"]="comment";s["Imports"]="imports";s["Region"]="region"})(q=l.FoldingRangeKind||(l.FoldingRangeKind={}));var B;(function(s){function create(s,l,u,f,h){var g={startLine:s,endLine:l};if(ft.defined(u)){g.startCharacter=u}if(ft.defined(f)){g.endCharacter=f}if(ft.defined(h)){g.kind=h}return g}s.create=create;function is(s){var l=s;return ft.uinteger(l.startLine)&&ft.uinteger(l.startLine)&&(ft.undefined(l.startCharacter)||ft.uinteger(l.startCharacter))&&(ft.undefined(l.endCharacter)||ft.uinteger(l.endCharacter))&&(ft.undefined(l.kind)||ft.string(l.kind))}s.is=is})(B=l.FoldingRange||(l.FoldingRange={}));var Y;(function(s){function create(s,l){return{location:s,message:l}}s.create=create;function is(s){var l=s;return ft.defined(l)&&g.is(l.location)&&ft.string(l.message)}s.is=is})(Y=l.DiagnosticRelatedInformation||(l.DiagnosticRelatedInformation={}));var te;(function(s){s.Error=1;s.Warning=2;s.Information=3;s.Hint=4})(te=l.DiagnosticSeverity||(l.DiagnosticSeverity={}));var re;(function(s){s.Unnecessary=1;s.Deprecated=2})(re=l.DiagnosticTag||(l.DiagnosticTag={}));var ne;(function(s){function is(s){var l=s;return l!==undefined&&l!==null&&ft.string(l.href)}s.is=is})(ne=l.CodeDescription||(l.CodeDescription={}));var ie;(function(s){function create(s,l,u,f,h,g){var v={range:s,message:l};if(ft.defined(u)){v.severity=u}if(ft.defined(f)){v.code=f}if(ft.defined(h)){v.source=h}if(ft.defined(g)){v.relatedInformation=g}return v}s.create=create;function is(s){var l;var u=s;return ft.defined(u)&&h.is(u.range)&&ft.string(u.message)&&(ft.number(u.severity)||ft.undefined(u.severity))&&(ft.integer(u.code)||ft.string(u.code)||ft.undefined(u.code))&&(ft.undefined(u.codeDescription)||ft.string((l=u.codeDescription)===null||l===void 0?void 0:l.href))&&(ft.string(u.source)||ft.undefined(u.source))&&(ft.undefined(u.relatedInformation)||ft.typedArray(u.relatedInformation,Y.is))}s.is=is})(ie=l.Diagnostic||(l.Diagnostic={}));var se;(function(s){function create(s,l){var u=[];for(var f=2;f<arguments.length;f++){u[f-2]=arguments[f]}var h={title:s,command:l};if(ft.defined(u)&&u.length>0){h.arguments=u}return h}s.create=create;function is(s){var l=s;return ft.defined(l)&&ft.string(l.title)&&ft.string(l.command)}s.is=is})(se=l.Command||(l.Command={}));var oe;(function(s){function replace(s,l){return{range:s,newText:l}}s.replace=replace;function insert(s,l){return{range:{start:s,end:s},newText:l}}s.insert=insert;function del(s){return{range:s,newText:""}}s.del=del;function is(s){var l=s;return ft.objectLiteral(l)&&ft.string(l.newText)&&h.is(l.range)}s.is=is})(oe=l.TextEdit||(l.TextEdit={}));var ae;(function(s){function create(s,l,u){var f={label:s};if(l!==undefined){f.needsConfirmation=l}if(u!==undefined){f.description=u}return f}s.create=create;function is(s){var l=s;return l!==undefined&&ft.objectLiteral(l)&&ft.string(l.label)&&(ft.boolean(l.needsConfirmation)||l.needsConfirmation===undefined)&&(ft.string(l.description)||l.description===undefined)}s.is=is})(ae=l.ChangeAnnotation||(l.ChangeAnnotation={}));var le;(function(s){function is(s){var l=s;return typeof l==="string"}s.is=is})(le=l.ChangeAnnotationIdentifier||(l.ChangeAnnotationIdentifier={}));var ue;(function(s){function replace(s,l,u){return{range:s,newText:l,annotationId:u}}s.replace=replace;function insert(s,l,u){return{range:{start:s,end:s},newText:l,annotationId:u}}s.insert=insert;function del(s,l){return{range:s,newText:"",annotationId:l}}s.del=del;function is(s){var l=s;return oe.is(l)&&(ae.is(l.annotationId)||le.is(l.annotationId))}s.is=is})(ue=l.AnnotatedTextEdit||(l.AnnotatedTextEdit={}));var ce;(function(s){function create(s,l){return{textDocument:s,edits:l}}s.create=create;function is(s){var l=s;return ft.defined(l)&&Se.is(l.textDocument)&&Array.isArray(l.edits)}s.is=is})(ce=l.TextDocumentEdit||(l.TextDocumentEdit={}));var fe;(function(s){function create(s,l,u){var f={kind:"create",uri:s};if(l!==undefined&&(l.overwrite!==undefined||l.ignoreIfExists!==undefined)){f.options=l}if(u!==undefined){f.annotationId=u}return f}s.create=create;function is(s){var l=s;return l&&l.kind==="create"&&ft.string(l.uri)&&(l.options===undefined||(l.options.overwrite===undefined||ft.boolean(l.options.overwrite))&&(l.options.ignoreIfExists===undefined||ft.boolean(l.options.ignoreIfExists)))&&(l.annotationId===undefined||le.is(l.annotationId))}s.is=is})(fe=l.CreateFile||(l.CreateFile={}));var pe;(function(s){function create(s,l,u,f){var h={kind:"rename",oldUri:s,newUri:l};if(u!==undefined&&(u.overwrite!==undefined||u.ignoreIfExists!==undefined)){h.options=u}if(f!==undefined){h.annotationId=f}return h}s.create=create;function is(s){var l=s;return l&&l.kind==="rename"&&ft.string(l.oldUri)&&ft.string(l.newUri)&&(l.options===undefined||(l.options.overwrite===undefined||ft.boolean(l.options.overwrite))&&(l.options.ignoreIfExists===undefined||ft.boolean(l.options.ignoreIfExists)))&&(l.annotationId===undefined||le.is(l.annotationId))}s.is=is})(pe=l.RenameFile||(l.RenameFile={}));var de;(function(s){function create(s,l,u){var f={kind:"delete",uri:s};if(l!==undefined&&(l.recursive!==undefined||l.ignoreIfNotExists!==undefined)){f.options=l}if(u!==undefined){f.annotationId=u}return f}s.create=create;function is(s){var l=s;return l&&l.kind==="delete"&&ft.string(l.uri)&&(l.options===undefined||(l.options.recursive===undefined||ft.boolean(l.options.recursive))&&(l.options.ignoreIfNotExists===undefined||ft.boolean(l.options.ignoreIfNotExists)))&&(l.annotationId===undefined||le.is(l.annotationId))}s.is=is})(de=l.DeleteFile||(l.DeleteFile={}));var he;(function(s){function is(s){var l=s;return l&&(l.changes!==undefined||l.documentChanges!==undefined)&&(l.documentChanges===undefined||l.documentChanges.every((function(s){if(ft.string(s.kind)){return fe.is(s)||pe.is(s)||de.is(s)}else{return ce.is(s)}})))}s.is=is})(he=l.WorkspaceEdit||(l.WorkspaceEdit={}));var ge=function(){function TextEditChangeImpl(s,l){this.edits=s;this.changeAnnotations=l}TextEditChangeImpl.prototype.insert=function(s,l,u){var f;var h;if(u===undefined){f=oe.insert(s,l)}else if(le.is(u)){h=u;f=ue.insert(s,l,u)}else{this.assertChangeAnnotations(this.changeAnnotations);h=this.changeAnnotations.manage(u);f=ue.insert(s,l,h)}this.edits.push(f);if(h!==undefined){return h}};TextEditChangeImpl.prototype.replace=function(s,l,u){var f;var h;if(u===undefined){f=oe.replace(s,l)}else if(le.is(u)){h=u;f=ue.replace(s,l,u)}else{this.assertChangeAnnotations(this.changeAnnotations);h=this.changeAnnotations.manage(u);f=ue.replace(s,l,h)}this.edits.push(f);if(h!==undefined){return h}};TextEditChangeImpl.prototype.delete=function(s,l){var u;var f;if(l===undefined){u=oe.del(s)}else if(le.is(l)){f=l;u=ue.del(s,l)}else{this.assertChangeAnnotations(this.changeAnnotations);f=this.changeAnnotations.manage(l);u=ue.del(s,f)}this.edits.push(u);if(f!==undefined){return f}};TextEditChangeImpl.prototype.add=function(s){this.edits.push(s)};TextEditChangeImpl.prototype.all=function(){return this.edits};TextEditChangeImpl.prototype.clear=function(){this.edits.splice(0,this.edits.length)};TextEditChangeImpl.prototype.assertChangeAnnotations=function(s){if(s===undefined){throw new Error("Text edit change is not configured to manage change annotations.")}};return TextEditChangeImpl}();var ve=function(){function ChangeAnnotations(s){this._annotations=s===undefined?Object.create(null):s;this._counter=0;this._size=0}ChangeAnnotations.prototype.all=function(){return this._annotations};Object.defineProperty(ChangeAnnotations.prototype,"size",{get:function(){return this._size},enumerable:false,configurable:true});ChangeAnnotations.prototype.manage=function(s,l){var u;if(le.is(s)){u=s}else{u=this.nextId();l=s}if(this._annotations[u]!==undefined){throw new Error("Id "+u+" is already in use.")}if(l===undefined){throw new Error("No annotation provided for id "+u)}this._annotations[u]=l;this._size++;return u};ChangeAnnotations.prototype.nextId=function(){this._counter++;return this._counter.toString()};return ChangeAnnotations}();var ye=function(){function WorkspaceChange(s){var l=this;this._textEditChanges=Object.create(null);if(s!==undefined){this._workspaceEdit=s;if(s.documentChanges){this._changeAnnotations=new ve(s.changeAnnotations);s.changeAnnotations=this._changeAnnotations.all();s.documentChanges.forEach((function(s){if(ce.is(s)){var u=new ge(s.edits,l._changeAnnotations);l._textEditChanges[s.textDocument.uri]=u}}))}else if(s.changes){Object.keys(s.changes).forEach((function(u){var f=new ge(s.changes[u]);l._textEditChanges[u]=f}))}}else{this._workspaceEdit={}}}Object.defineProperty(WorkspaceChange.prototype,"edit",{get:function(){this.initDocumentChanges();if(this._changeAnnotations!==undefined){if(this._changeAnnotations.size===0){this._workspaceEdit.changeAnnotations=undefined}else{this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()}}return this._workspaceEdit},enumerable:false,configurable:true});WorkspaceChange.prototype.getTextEditChange=function(s){if(Se.is(s)){this.initDocumentChanges();if(this._workspaceEdit.documentChanges===undefined){throw new Error("Workspace edit is not configured for document changes.")}var l={uri:s.uri,version:s.version};var u=this._textEditChanges[l.uri];if(!u){var f=[];var h={textDocument:l,edits:f};this._workspaceEdit.documentChanges.push(h);u=new ge(f,this._changeAnnotations);this._textEditChanges[l.uri]=u}return u}else{this.initChanges();if(this._workspaceEdit.changes===undefined){throw new Error("Workspace edit is not configured for normal text edit changes.")}var u=this._textEditChanges[s];if(!u){var f=[];this._workspaceEdit.changes[s]=f;u=new ge(f);this._textEditChanges[s]=u}return u}};WorkspaceChange.prototype.initDocumentChanges=function(){if(this._workspaceEdit.documentChanges===undefined&&this._workspaceEdit.changes===undefined){this._changeAnnotations=new ve;this._workspaceEdit.documentChanges=[];this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()}};WorkspaceChange.prototype.initChanges=function(){if(this._workspaceEdit.documentChanges===undefined&&this._workspaceEdit.changes===undefined){this._workspaceEdit.changes=Object.create(null)}};WorkspaceChange.prototype.createFile=function(s,l,u){this.initDocumentChanges();if(this._workspaceEdit.documentChanges===undefined){throw new Error("Workspace edit is not configured for document changes.")}var f;if(ae.is(l)||le.is(l)){f=l}else{u=l}var h;var g;if(f===undefined){h=fe.create(s,u)}else{g=le.is(f)?f:this._changeAnnotations.manage(f);h=fe.create(s,u,g)}this._workspaceEdit.documentChanges.push(h);if(g!==undefined){return g}};WorkspaceChange.prototype.renameFile=function(s,l,u,f){this.initDocumentChanges();if(this._workspaceEdit.documentChanges===undefined){throw new Error("Workspace edit is not configured for document changes.")}var h;if(ae.is(u)||le.is(u)){h=u}else{f=u}var g;var v;if(h===undefined){g=pe.create(s,l,f)}else{v=le.is(h)?h:this._changeAnnotations.manage(h);g=pe.create(s,l,f,v)}this._workspaceEdit.documentChanges.push(g);if(v!==undefined){return v}};WorkspaceChange.prototype.deleteFile=function(s,l,u){this.initDocumentChanges();if(this._workspaceEdit.documentChanges===undefined){throw new Error("Workspace edit is not configured for document changes.")}var f;if(ae.is(l)||le.is(l)){f=l}else{u=l}var h;var g;if(f===undefined){h=de.create(s,u)}else{g=le.is(f)?f:this._changeAnnotations.manage(f);h=de.create(s,u,g)}this._workspaceEdit.documentChanges.push(h);if(g!==undefined){return g}};return WorkspaceChange}();l.WorkspaceChange=ye;var we;(function(s){function create(s){return{uri:s}}s.create=create;function is(s){var l=s;return ft.defined(l)&&ft.string(l.uri)}s.is=is})(we=l.TextDocumentIdentifier||(l.TextDocumentIdentifier={}));var _e;(function(s){function create(s,l){return{uri:s,version:l}}s.create=create;function is(s){var l=s;return ft.defined(l)&&ft.string(l.uri)&&ft.integer(l.version)}s.is=is})(_e=l.VersionedTextDocumentIdentifier||(l.VersionedTextDocumentIdentifier={}));var Se;(function(s){function create(s,l){return{uri:s,version:l}}s.create=create;function is(s){var l=s;return ft.defined(l)&&ft.string(l.uri)&&(l.version===null||ft.integer(l.version))}s.is=is})(Se=l.OptionalVersionedTextDocumentIdentifier||(l.OptionalVersionedTextDocumentIdentifier={}));var ke;(function(s){function create(s,l,u,f){return{uri:s,languageId:l,version:u,text:f}}s.create=create;function is(s){var l=s;return ft.defined(l)&&ft.string(l.uri)&&ft.string(l.languageId)&&ft.integer(l.version)&&ft.string(l.text)}s.is=is})(ke=l.TextDocumentItem||(l.TextDocumentItem={}));var Ce;(function(s){s.PlainText="plaintext";s.Markdown="markdown"})(Ce=l.MarkupKind||(l.MarkupKind={}));(function(s){function is(l){var u=l;return u===s.PlainText||u===s.Markdown}s.is=is})(Ce=l.MarkupKind||(l.MarkupKind={}));var Ee;(function(s){function is(s){var l=s;return ft.objectLiteral(s)&&Ce.is(l.kind)&&ft.string(l.value)}s.is=is})(Ee=l.MarkupContent||(l.MarkupContent={}));var Re;(function(s){s.Text=1;s.Method=2;s.Function=3;s.Constructor=4;s.Field=5;s.Variable=6;s.Class=7;s.Interface=8;s.Module=9;s.Property=10;s.Unit=11;s.Value=12;s.Enum=13;s.Keyword=14;s.Snippet=15;s.Color=16;s.File=17;s.Reference=18;s.Folder=19;s.EnumMember=20;s.Constant=21;s.Struct=22;s.Event=23;s.Operator=24;s.TypeParameter=25})(Re=l.CompletionItemKind||(l.CompletionItemKind={}));var Oe;(function(s){s.PlainText=1;s.Snippet=2})(Oe=l.InsertTextFormat||(l.InsertTextFormat={}));var De;(function(s){s.Deprecated=1})(De=l.CompletionItemTag||(l.CompletionItemTag={}));var Ie;(function(s){function create(s,l,u){return{newText:s,insert:l,replace:u}}s.create=create;function is(s){var l=s;return l&&ft.string(l.newText)&&h.is(l.insert)&&h.is(l.replace)}s.is=is})(Ie=l.InsertReplaceEdit||(l.InsertReplaceEdit={}));var Me;(function(s){s.asIs=1;s.adjustIndentation=2})(Me=l.InsertTextMode||(l.InsertTextMode={}));var Ne;(function(s){function create(s){return{label:s}}s.create=create})(Ne=l.CompletionItem||(l.CompletionItem={}));var Le;(function(s){function create(s,l){return{items:s?s:[],isIncomplete:!!l}}s.create=create})(Le=l.CompletionList||(l.CompletionList={}));var je;(function(s){function fromPlainText(s){return s.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}s.fromPlainText=fromPlainText;function is(s){var l=s;return ft.string(l)||ft.objectLiteral(l)&&ft.string(l.language)&&ft.string(l.value)}s.is=is})(je=l.MarkedString||(l.MarkedString={}));var Fe;(function(s){function is(s){var l=s;return!!l&&ft.objectLiteral(l)&&(Ee.is(l.contents)||je.is(l.contents)||ft.typedArray(l.contents,je.is))&&(s.range===undefined||h.is(s.range))}s.is=is})(Fe=l.Hover||(l.Hover={}));var qe;(function(s){function create(s,l){return l?{label:s,documentation:l}:{label:s}}s.create=create})(qe=l.ParameterInformation||(l.ParameterInformation={}));var $e;(function(s){function create(s,l){var u=[];for(var f=2;f<arguments.length;f++){u[f-2]=arguments[f]}var h={label:s};if(ft.defined(l)){h.documentation=l}if(ft.defined(u)){h.parameters=u}else{h.parameters=[]}return h}s.create=create})($e=l.SignatureInformation||(l.SignatureInformation={}));var We;(function(s){s.Text=1;s.Read=2;s.Write=3})(We=l.DocumentHighlightKind||(l.DocumentHighlightKind={}));var ze;(function(s){function create(s,l){var u={range:s};if(ft.number(l)){u.kind=l}return u}s.create=create})(ze=l.DocumentHighlight||(l.DocumentHighlight={}));var Ve;(function(s){s.File=1;s.Module=2;s.Namespace=3;s.Package=4;s.Class=5;s.Method=6;s.Property=7;s.Field=8;s.Constructor=9;s.Enum=10;s.Interface=11;s.Function=12;s.Variable=13;s.Constant=14;s.String=15;s.Number=16;s.Boolean=17;s.Array=18;s.Object=19;s.Key=20;s.Null=21;s.EnumMember=22;s.Struct=23;s.Event=24;s.Operator=25;s.TypeParameter=26})(Ve=l.SymbolKind||(l.SymbolKind={}));var Ge;(function(s){s.Deprecated=1})(Ge=l.SymbolTag||(l.SymbolTag={}));var Ye;(function(s){function create(s,l,u,f,h){var g={name:s,kind:l,location:{uri:f,range:u}};if(h){g.containerName=h}return g}s.create=create})(Ye=l.SymbolInformation||(l.SymbolInformation={}));var Ke;(function(s){function create(s,l,u,f,h,g){var v={name:s,detail:l,kind:u,range:f,selectionRange:h};if(g!==undefined){v.children=g}return v}s.create=create;function is(s){var l=s;return l&&ft.string(l.name)&&ft.number(l.kind)&&h.is(l.range)&&h.is(l.selectionRange)&&(l.detail===undefined||ft.string(l.detail))&&(l.deprecated===undefined||ft.boolean(l.deprecated))&&(l.children===undefined||Array.isArray(l.children))&&(l.tags===undefined||Array.isArray(l.tags))}s.is=is})(Ke=l.DocumentSymbol||(l.DocumentSymbol={}));var Qe;(function(s){s.Empty="";s.QuickFix="quickfix";s.Refactor="refactor";s.RefactorExtract="refactor.extract";s.RefactorInline="refactor.inline";s.RefactorRewrite="refactor.rewrite";s.Source="source";s.SourceOrganizeImports="source.organizeImports";s.SourceFixAll="source.fixAll"})(Qe=l.CodeActionKind||(l.CodeActionKind={}));var Je;(function(s){function create(s,l){var u={diagnostics:s};if(l!==undefined&&l!==null){u.only=l}return u}s.create=create;function is(s){var l=s;return ft.defined(l)&&ft.typedArray(l.diagnostics,ie.is)&&(l.only===undefined||ft.typedArray(l.only,ft.string))}s.is=is})(Je=l.CodeActionContext||(l.CodeActionContext={}));var Xe;(function(s){function create(s,l,u){var f={title:s};var h=true;if(typeof l==="string"){h=false;f.kind=l}else if(se.is(l)){f.command=l}else{f.edit=l}if(h&&u!==undefined){f.kind=u}return f}s.create=create;function is(s){var l=s;return l&&ft.string(l.title)&&(l.diagnostics===undefined||ft.typedArray(l.diagnostics,ie.is))&&(l.kind===undefined||ft.string(l.kind))&&(l.edit!==undefined||l.command!==undefined)&&(l.command===undefined||se.is(l.command))&&(l.isPreferred===undefined||ft.boolean(l.isPreferred))&&(l.edit===undefined||he.is(l.edit))}s.is=is})(Xe=l.CodeAction||(l.CodeAction={}));var et;(function(s){function create(s,l){var u={range:s};if(ft.defined(l)){u.data=l}return u}s.create=create;function is(s){var l=s;return ft.defined(l)&&h.is(l.range)&&(ft.undefined(l.command)||se.is(l.command))}s.is=is})(et=l.CodeLens||(l.CodeLens={}));var tt;(function(s){function create(s,l){return{tabSize:s,insertSpaces:l}}s.create=create;function is(s){var l=s;return ft.defined(l)&&ft.uinteger(l.tabSize)&&ft.boolean(l.insertSpaces)}s.is=is})(tt=l.FormattingOptions||(l.FormattingOptions={}));var it;(function(s){function create(s,l,u){return{range:s,target:l,data:u}}s.create=create;function is(s){var l=s;return ft.defined(l)&&h.is(l.range)&&(ft.undefined(l.target)||ft.string(l.target))}s.is=is})(it=l.DocumentLink||(l.DocumentLink={}));var st;(function(s){function create(s,l){return{range:s,parent:l}}s.create=create;function is(l){var u=l;return u!==undefined&&h.is(u.range)&&(u.parent===undefined||s.is(u.parent))}s.is=is})(st=l.SelectionRange||(l.SelectionRange={}));l.EOL=["\n","\r\n","\r"];var ut;(function(s){function create(s,l,u,f){return new ct(s,l,u,f)}s.create=create;function is(s){var l=s;return ft.defined(l)&&ft.string(l.uri)&&(ft.undefined(l.languageId)||ft.string(l.languageId))&&ft.uinteger(l.lineCount)&&ft.func(l.getText)&&ft.func(l.positionAt)&&ft.func(l.offsetAt)?true:false}s.is=is;function applyEdits(s,l){var u=s.getText();var f=mergeSort(l,(function(s,l){var u=s.range.start.line-l.range.start.line;if(u===0){return s.range.start.character-l.range.start.character}return u}));var h=u.length;for(var g=f.length-1;g>=0;g--){var v=f[g];var k=s.offsetAt(v.range.start);var O=s.offsetAt(v.range.end);if(O<=h){u=u.substring(0,k)+v.newText+u.substring(O,u.length)}else{throw new Error("Overlapping edit")}h=k}return u}s.applyEdits=applyEdits;function mergeSort(s,l){if(s.length<=1){return s}var u=s.length/2|0;var f=s.slice(0,u);var h=s.slice(u);mergeSort(f,l);mergeSort(h,l);var g=0;var v=0;var k=0;while(g<f.length&&v<h.length){var O=l(f[g],h[v]);if(O<=0){s[k++]=f[g++]}else{s[k++]=h[v++]}}while(g<f.length){s[k++]=f[g++]}while(v<h.length){s[k++]=h[v++]}return s}})(ut=l.TextDocument||(l.TextDocument={}));var ct=function(){function FullTextDocument(s,l,u,f){this._uri=s;this._languageId=l;this._version=u;this._content=f;this._lineOffsets=undefined}Object.defineProperty(FullTextDocument.prototype,"uri",{get:function(){return this._uri},enumerable:false,configurable:true});Object.defineProperty(FullTextDocument.prototype,"languageId",{get:function(){return this._languageId},enumerable:false,configurable:true});Object.defineProperty(FullTextDocument.prototype,"version",{get:function(){return this._version},enumerable:false,configurable:true});FullTextDocument.prototype.getText=function(s){if(s){var l=this.offsetAt(s.start);var u=this.offsetAt(s.end);return this._content.substring(l,u)}return this._content};FullTextDocument.prototype.update=function(s,l){this._content=s.text;this._version=l;this._lineOffsets=undefined};FullTextDocument.prototype.getLineOffsets=function(){if(this._lineOffsets===undefined){var s=[];var l=this._content;var u=true;for(var f=0;f<l.length;f++){if(u){s.push(f);u=false}var h=l.charAt(f);u=h==="\r"||h==="\n";if(h==="\r"&&f+1<l.length&&l.charAt(f+1)==="\n"){f++}}if(u&&l.length>0){s.push(l.length)}this._lineOffsets=s}return this._lineOffsets};FullTextDocument.prototype.positionAt=function(s){s=Math.max(Math.min(s,this._content.length),0);var l=this.getLineOffsets();var u=0,h=l.length;if(h===0){return f.create(0,s)}while(u<h){var g=Math.floor((u+h)/2);if(l[g]>s){h=g}else{u=g+1}}var v=u-1;return f.create(v,s-l[v])};FullTextDocument.prototype.offsetAt=function(s){var l=this.getLineOffsets();if(s.line>=l.length){return this._content.length}else if(s.line<0){return 0}var u=l[s.line];var f=s.line+1<l.length?l[s.line+1]:this._content.length;return Math.max(Math.min(u+s.character,f),u)};Object.defineProperty(FullTextDocument.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:false,configurable:true});return FullTextDocument}();var ft;(function(s){var l=Object.prototype.toString;function defined(s){return typeof s!=="undefined"}s.defined=defined;function undefined(s){return typeof s==="undefined"}s.undefined=undefined;function boolean(s){return s===true||s===false}s.boolean=boolean;function string(s){return l.call(s)==="[object String]"}s.string=string;function number(s){return l.call(s)==="[object Number]"}s.number=number;function numberRange(s,u,f){return l.call(s)==="[object Number]"&&u<=s&&s<=f}s.numberRange=numberRange;function integer(s){return l.call(s)==="[object Number]"&&-2147483648<=s&&s<=2147483647}s.integer=integer;function uinteger(s){return l.call(s)==="[object Number]"&&0<=s&&s<=2147483647}s.uinteger=uinteger;function func(s){return l.call(s)==="[object Function]"}s.func=func;function objectLiteral(s){return s!==null&&typeof s==="object"}s.objectLiteral=objectLiteral;function typedArray(s,l){return Array.isArray(s)&&s.every(l)}s.typedArray=typedArray})(ft||(ft={}))}))},29755:function(s,l,u){"use strict";var f=this&&this.__createBinding||(Object.create?function(s,l,u,f){if(f===undefined)f=u;Object.defineProperty(s,f,{enumerable:true,get:function(){return l[u]}})}:function(s,l,u,f){if(f===undefined)f=u;s[f]=l[u]});var h=this&&this.__exportStar||function(s,l){for(var u in s)if(u!=="default"&&!Object.prototype.hasOwnProperty.call(l,u))f(l,s,u)};Object.defineProperty(l,"__esModule",{value:true});l.ProposedFeatures=l.SemanticTokensBuilder=void 0;const g=u(37241);Object.defineProperty(l,"SemanticTokensBuilder",{enumerable:true,get:function(){return g.SemanticTokensBuilder}});h(u(3302),l);h(u(13472),l);var v;(function(s){s.all={__brand:"features"}})(v=l.ProposedFeatures||(l.ProposedFeatures={}))},15354:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.CallHierarchyFeature=void 0;const f=u(3302);const CallHierarchyFeature=s=>class extends s{get callHierarchy(){return{onPrepare:s=>{this.connection.onRequest(f.CallHierarchyPrepareRequest.type,((l,u)=>s(l,u,this.attachWorkDoneProgress(l),undefined)))},onIncomingCalls:s=>{const l=f.CallHierarchyIncomingCallsRequest.type;this.connection.onRequest(l,((u,f)=>s(u,f,this.attachWorkDoneProgress(u),this.attachPartialResultProgress(l,u))))},onOutgoingCalls:s=>{const l=f.CallHierarchyOutgoingCallsRequest.type;this.connection.onRequest(l,((u,f)=>s(u,f,this.attachWorkDoneProgress(u),this.attachPartialResultProgress(l,u))))}}}};l.CallHierarchyFeature=CallHierarchyFeature},27792:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.ConfigurationFeature=void 0;const f=u(3302);const h=u(7018);const ConfigurationFeature=s=>class extends s{getConfiguration(s){if(!s){return this._getConfiguration({})}else if(h.string(s)){return this._getConfiguration({section:s})}else{return this._getConfiguration(s)}}_getConfiguration(s){let l={items:Array.isArray(s)?s:[s]};return this.connection.sendRequest(f.ConfigurationRequest.type,l).then((l=>Array.isArray(s)?l:l[0]))}};l.ConfigurationFeature=ConfigurationFeature},19293:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.FileOperationsFeature=void 0;const f=u(3302);const FileOperationsFeature=s=>class extends s{onDidCreateFiles(s){this.connection.onNotification(f.DidCreateFilesNotification.type,(l=>{s(l)}))}onDidRenameFiles(s){this.connection.onNotification(f.DidRenameFilesNotification.type,(l=>{s(l)}))}onDidDeleteFiles(s){this.connection.onNotification(f.DidDeleteFilesNotification.type,(l=>{s(l)}))}onWillCreateFiles(s){return this.connection.onRequest(f.WillCreateFilesRequest.type,((l,u)=>s(l,u)))}onWillRenameFiles(s){return this.connection.onRequest(f.WillRenameFilesRequest.type,((l,u)=>s(l,u)))}onWillDeleteFiles(s){return this.connection.onRequest(f.WillDeleteFilesRequest.type,((l,u)=>s(l,u)))}};l.FileOperationsFeature=FileOperationsFeature},86940:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.LinkedEditingRangeFeature=void 0;const f=u(3302);const LinkedEditingRangeFeature=s=>class extends s{onLinkedEditingRange(s){this.connection.onRequest(f.LinkedEditingRangeRequest.type,((l,u)=>s(l,u,this.attachWorkDoneProgress(l),undefined)))}};l.LinkedEditingRangeFeature=LinkedEditingRangeFeature},34097:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.MonikerFeature=void 0;const f=u(3302);const MonikerFeature=s=>class extends s{get moniker(){return{on:s=>{const l=f.MonikerRequest.type;this.connection.onRequest(l,((u,f)=>s(u,f,this.attachWorkDoneProgress(u),this.attachPartialResultProgress(l,u))))}}}};l.MonikerFeature=MonikerFeature},96232:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.attachPartialResult=l.ProgressFeature=l.attachWorkDone=void 0;const f=u(3302);const h=u(1702);class WorkDoneProgressReporterImpl{constructor(s,l){this._connection=s;this._token=l;WorkDoneProgressReporterImpl.Instances.set(this._token,this)}begin(s,l,u,h){let g={kind:"begin",title:s,percentage:l,message:u,cancellable:h};this._connection.sendProgress(f.WorkDoneProgress.type,this._token,g)}report(s,l){let u={kind:"report"};if(typeof s==="number"){u.percentage=s;if(l!==undefined){u.message=l}}else{u.message=s}this._connection.sendProgress(f.WorkDoneProgress.type,this._token,u)}done(){WorkDoneProgressReporterImpl.Instances.delete(this._token);this._connection.sendProgress(f.WorkDoneProgress.type,this._token,{kind:"end"})}}WorkDoneProgressReporterImpl.Instances=new Map;class WorkDoneProgressServerReporterImpl extends WorkDoneProgressReporterImpl{constructor(s,l){super(s,l);this._source=new f.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose();super.done()}cancel(){this._source.cancel()}}class NullProgressReporter{constructor(){}begin(){}report(){}done(){}}class NullProgressServerReporter extends NullProgressReporter{constructor(){super();this._source=new f.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose()}cancel(){this._source.cancel()}}function attachWorkDone(s,l){if(l===undefined||l.workDoneToken===undefined){return new NullProgressReporter}const u=l.workDoneToken;delete l.workDoneToken;return new WorkDoneProgressReporterImpl(s,u)}l.attachWorkDone=attachWorkDone;const ProgressFeature=s=>class extends s{constructor(){super();this._progressSupported=false}initialize(s){var l;if(((l=s===null||s===void 0?void 0:s.window)===null||l===void 0?void 0:l.workDoneProgress)===true){this._progressSupported=true;this.connection.onNotification(f.WorkDoneProgressCancelNotification.type,(s=>{let l=WorkDoneProgressReporterImpl.Instances.get(s.token);if(l instanceof WorkDoneProgressServerReporterImpl||l instanceof NullProgressServerReporter){l.cancel()}}))}}attachWorkDoneProgress(s){if(s===undefined){return new NullProgressReporter}else{return new WorkDoneProgressReporterImpl(this.connection,s)}}createWorkDoneProgress(){if(this._progressSupported){const s=h.generateUuid();return this.connection.sendRequest(f.WorkDoneProgressCreateRequest.type,{token:s}).then((()=>{const l=new WorkDoneProgressServerReporterImpl(this.connection,s);return l}))}else{return Promise.resolve(new NullProgressServerReporter)}}};l.ProgressFeature=ProgressFeature;var g;(function(s){s.type=new f.ProgressType})(g||(g={}));class ResultProgressReporterImpl{constructor(s,l){this._connection=s;this._token=l}report(s){this._connection.sendProgress(g.type,this._token,s)}}function attachPartialResult(s,l){if(l===undefined||l.partialResultToken===undefined){return undefined}const u=l.partialResultToken;delete l.partialResultToken;return new ResultProgressReporterImpl(s,u)}l.attachPartialResult=attachPartialResult},37241:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.SemanticTokensBuilder=l.SemanticTokensFeature=void 0;const f=u(3302);const SemanticTokensFeature=s=>class extends s{get semanticTokens(){return{on:s=>{const l=f.SemanticTokensRequest.type;this.connection.onRequest(l,((u,f)=>s(u,f,this.attachWorkDoneProgress(u),this.attachPartialResultProgress(l,u))))},onDelta:s=>{const l=f.SemanticTokensDeltaRequest.type;this.connection.onRequest(l,((u,f)=>s(u,f,this.attachWorkDoneProgress(u),this.attachPartialResultProgress(l,u))))},onRange:s=>{const l=f.SemanticTokensRangeRequest.type;this.connection.onRequest(l,((u,f)=>s(u,f,this.attachWorkDoneProgress(u),this.attachPartialResultProgress(l,u))))}}}};l.SemanticTokensFeature=SemanticTokensFeature;class SemanticTokensBuilder{constructor(){this._prevData=undefined;this.initialize()}initialize(){this._id=Date.now();this._prevLine=0;this._prevChar=0;this._data=[];this._dataLen=0}push(s,l,u,f,h){let g=s;let v=l;if(this._dataLen>0){g-=this._prevLine;if(g===0){v-=this._prevChar}}this._data[this._dataLen++]=g;this._data[this._dataLen++]=v;this._data[this._dataLen++]=u;this._data[this._dataLen++]=f;this._data[this._dataLen++]=h;this._prevLine=s;this._prevChar=l}get id(){return this._id.toString()}previousResult(s){if(this.id===s){this._prevData=this._data}this.initialize()}build(){this._prevData=undefined;return{resultId:this.id,data:this._data}}canBuildEdits(){return this._prevData!==undefined}buildEdits(){if(this._prevData!==undefined){const s=this._prevData.length;const l=this._data.length;let u=0;while(u<l&&u<s&&this._prevData[u]===this._data[u]){u++}if(u<l&&u<s){let f=0;while(f<l&&f<s&&this._prevData[s-1-f]===this._data[l-1-f]){f++}const h=this._data.slice(u,l-f);const g={resultId:this.id,edits:[{start:u,deleteCount:s-f-u,data:h}]};return g}else if(u<l){return{resultId:this.id,edits:[{start:u,deleteCount:0,data:this._data.slice(u)}]}}else if(u<s){return{resultId:this.id,edits:[{start:u,deleteCount:s-u}]}}else{return{resultId:this.id,edits:[]}}}else{return this.build()}}}l.SemanticTokensBuilder=SemanticTokensBuilder},13472:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.createConnection=l.combineFeatures=l.combineLanguagesFeatures=l.combineWorkspaceFeatures=l.combineWindowFeatures=l.combineClientFeatures=l.combineTracerFeatures=l.combineTelemetryFeatures=l.combineConsoleFeatures=l._LanguagesImpl=l.BulkUnregistration=l.BulkRegistration=l.ErrorMessageTracker=l.TextDocuments=void 0;const f=u(3302);const h=u(7018);const g=u(1702);const v=u(96232);const k=u(27792);const O=u(62510);const M=u(15354);const q=u(37241);const B=u(62613);const Y=u(19293);const te=u(86940);const re=u(34097);function null2Undefined(s){if(s===null){return undefined}return s}class TextDocuments{constructor(s){this._documents=Object.create(null);this._configuration=s;this._onDidChangeContent=new f.Emitter;this._onDidOpen=new f.Emitter;this._onDidClose=new f.Emitter;this._onDidSave=new f.Emitter;this._onWillSave=new f.Emitter}get onDidChangeContent(){return this._onDidChangeContent.event}get onDidOpen(){return this._onDidOpen.event}get onWillSave(){return this._onWillSave.event}onWillSaveWaitUntil(s){this._willSaveWaitUntil=s}get onDidSave(){return this._onDidSave.event}get onDidClose(){return this._onDidClose.event}get(s){return this._documents[s]}all(){return Object.keys(this._documents).map((s=>this._documents[s]))}keys(){return Object.keys(this._documents)}listen(s){s.__textDocumentSync=f.TextDocumentSyncKind.Full;s.onDidOpenTextDocument((s=>{let l=s.textDocument;let u=this._configuration.create(l.uri,l.languageId,l.version,l.text);this._documents[l.uri]=u;let f=Object.freeze({document:u});this._onDidOpen.fire(f);this._onDidChangeContent.fire(f)}));s.onDidChangeTextDocument((s=>{let l=s.textDocument;let u=s.contentChanges;if(u.length===0){return}let f=this._documents[l.uri];const{version:h}=l;if(h===null||h===undefined){throw new Error(`Received document change event for ${l.uri} without valid version identifier`)}f=this._configuration.update(f,u,h);this._documents[l.uri]=f;this._onDidChangeContent.fire(Object.freeze({document:f}))}));s.onDidCloseTextDocument((s=>{let l=this._documents[s.textDocument.uri];if(l){delete this._documents[s.textDocument.uri];this._onDidClose.fire(Object.freeze({document:l}))}}));s.onWillSaveTextDocument((s=>{let l=this._documents[s.textDocument.uri];if(l){this._onWillSave.fire(Object.freeze({document:l,reason:s.reason}))}}));s.onWillSaveTextDocumentWaitUntil(((s,l)=>{let u=this._documents[s.textDocument.uri];if(u&&this._willSaveWaitUntil){return this._willSaveWaitUntil(Object.freeze({document:u,reason:s.reason}),l)}else{return[]}}));s.onDidSaveTextDocument((s=>{let l=this._documents[s.textDocument.uri];if(l){this._onDidSave.fire(Object.freeze({document:l}))}}))}}l.TextDocuments=TextDocuments;class ErrorMessageTracker{constructor(){this._messages=Object.create(null)}add(s){let l=this._messages[s];if(!l){l=0}l++;this._messages[s]=l}sendErrors(s){Object.keys(this._messages).forEach((l=>{s.window.showErrorMessage(l)}))}}l.ErrorMessageTracker=ErrorMessageTracker;class RemoteConsoleImpl{constructor(){}rawAttach(s){this._rawConnection=s}attach(s){this._connection=s}get connection(){if(!this._connection){throw new Error("Remote is not attached to a connection yet.")}return this._connection}fillServerCapabilities(s){}initialize(s){}error(s){this.send(f.MessageType.Error,s)}warn(s){this.send(f.MessageType.Warning,s)}info(s){this.send(f.MessageType.Info,s)}log(s){this.send(f.MessageType.Log,s)}send(s,l){if(this._rawConnection){this._rawConnection.sendNotification(f.LogMessageNotification.type,{type:s,message:l})}}}class _RemoteWindowImpl{constructor(){}attach(s){this._connection=s}get connection(){if(!this._connection){throw new Error("Remote is not attached to a connection yet.")}return this._connection}initialize(s){}fillServerCapabilities(s){}showErrorMessage(s,...l){let u={type:f.MessageType.Error,message:s,actions:l};return this.connection.sendRequest(f.ShowMessageRequest.type,u).then(null2Undefined)}showWarningMessage(s,...l){let u={type:f.MessageType.Warning,message:s,actions:l};return this.connection.sendRequest(f.ShowMessageRequest.type,u).then(null2Undefined)}showInformationMessage(s,...l){let u={type:f.MessageType.Info,message:s,actions:l};return this.connection.sendRequest(f.ShowMessageRequest.type,u).then(null2Undefined)}}const ne=B.ShowDocumentFeature(v.ProgressFeature(_RemoteWindowImpl));var ie;(function(s){function create(){return new BulkRegistrationImpl}s.create=create})(ie=l.BulkRegistration||(l.BulkRegistration={}));class BulkRegistrationImpl{constructor(){this._registrations=[];this._registered=new Set}add(s,l){const u=h.string(s)?s:s.method;if(this._registered.has(u)){throw new Error(`${u} is already added to this registration`)}const f=g.generateUuid();this._registrations.push({id:f,method:u,registerOptions:l||{}});this._registered.add(u)}asRegistrationParams(){return{registrations:this._registrations}}}var se;(function(s){function create(){return new BulkUnregistrationImpl(undefined,[])}s.create=create})(se=l.BulkUnregistration||(l.BulkUnregistration={}));class BulkUnregistrationImpl{constructor(s,l){this._connection=s;this._unregistrations=new Map;l.forEach((s=>{this._unregistrations.set(s.method,s)}))}get isAttached(){return!!this._connection}attach(s){this._connection=s}add(s){this._unregistrations.set(s.method,s)}dispose(){let s=[];for(let l of this._unregistrations.values()){s.push(l)}let l={unregisterations:s};this._connection.sendRequest(f.UnregistrationRequest.type,l).then(undefined,(s=>{this._connection.console.info(`Bulk unregistration failed.`)}))}disposeSingle(s){const l=h.string(s)?s:s.method;const u=this._unregistrations.get(l);if(!u){return false}let g={unregisterations:[u]};this._connection.sendRequest(f.UnregistrationRequest.type,g).then((()=>{this._unregistrations.delete(l)}),(s=>{this._connection.console.info(`Un-registering request handler for ${u.id} failed.`)}));return true}}class RemoteClientImpl{attach(s){this._connection=s}get connection(){if(!this._connection){throw new Error("Remote is not attached to a connection yet.")}return this._connection}initialize(s){}fillServerCapabilities(s){}register(s,l,u){if(s instanceof BulkRegistrationImpl){return this.registerMany(s)}else if(s instanceof BulkUnregistrationImpl){return this.registerSingle1(s,l,u)}else{return this.registerSingle2(s,l)}}registerSingle1(s,l,u){const v=h.string(l)?l:l.method;const k=g.generateUuid();let O={registrations:[{id:k,method:v,registerOptions:u||{}}]};if(!s.isAttached){s.attach(this.connection)}return this.connection.sendRequest(f.RegistrationRequest.type,O).then((l=>{s.add({id:k,method:v});return s}),(s=>{this.connection.console.info(`Registering request handler for ${v} failed.`);return Promise.reject(s)}))}registerSingle2(s,l){const u=h.string(s)?s:s.method;const v=g.generateUuid();let k={registrations:[{id:v,method:u,registerOptions:l||{}}]};return this.connection.sendRequest(f.RegistrationRequest.type,k).then((s=>f.Disposable.create((()=>{this.unregisterSingle(v,u)}))),(s=>{this.connection.console.info(`Registering request handler for ${u} failed.`);return Promise.reject(s)}))}unregisterSingle(s,l){let u={unregisterations:[{id:s,method:l}]};return this.connection.sendRequest(f.UnregistrationRequest.type,u).then(undefined,(l=>{this.connection.console.info(`Un-registering request handler for ${s} failed.`)}))}registerMany(s){let l=s.asRegistrationParams();return this.connection.sendRequest(f.RegistrationRequest.type,l).then((()=>new BulkUnregistrationImpl(this._connection,l.registrations.map((s=>({id:s.id,method:s.method}))))),(s=>{this.connection.console.info(`Bulk registration failed.`);return Promise.reject(s)}))}}class _RemoteWorkspaceImpl{constructor(){}attach(s){this._connection=s}get connection(){if(!this._connection){throw new Error("Remote is not attached to a connection yet.")}return this._connection}initialize(s){}fillServerCapabilities(s){}applyEdit(s){function isApplyWorkspaceEditParams(s){return s&&!!s.edit}let l=isApplyWorkspaceEditParams(s)?s:{edit:s};return this.connection.sendRequest(f.ApplyWorkspaceEditRequest.type,l)}}const oe=Y.FileOperationsFeature(O.WorkspaceFoldersFeature(k.ConfigurationFeature(_RemoteWorkspaceImpl)));class TracerImpl{constructor(){this._trace=f.Trace.Off}attach(s){this._connection=s}get connection(){if(!this._connection){throw new Error("Remote is not attached to a connection yet.")}return this._connection}initialize(s){}fillServerCapabilities(s){}set trace(s){this._trace=s}log(s,l){if(this._trace===f.Trace.Off){return}this.connection.sendNotification(f.LogTraceNotification.type,{message:s,verbose:this._trace===f.Trace.Verbose?l:undefined})}}class TelemetryImpl{constructor(){}attach(s){this._connection=s}get connection(){if(!this._connection){throw new Error("Remote is not attached to a connection yet.")}return this._connection}initialize(s){}fillServerCapabilities(s){}logEvent(s){this.connection.sendNotification(f.TelemetryEventNotification.type,s)}}class _LanguagesImpl{constructor(){}attach(s){this._connection=s}get connection(){if(!this._connection){throw new Error("Remote is not attached to a connection yet.")}return this._connection}initialize(s){}fillServerCapabilities(s){}attachWorkDoneProgress(s){return v.attachWorkDone(this.connection,s)}attachPartialResultProgress(s,l){return v.attachPartialResult(this.connection,l)}}l._LanguagesImpl=_LanguagesImpl;const ae=re.MonikerFeature(te.LinkedEditingRangeFeature(q.SemanticTokensFeature(M.CallHierarchyFeature(_LanguagesImpl))));function combineConsoleFeatures(s,l){return function(u){return l(s(u))}}l.combineConsoleFeatures=combineConsoleFeatures;function combineTelemetryFeatures(s,l){return function(u){return l(s(u))}}l.combineTelemetryFeatures=combineTelemetryFeatures;function combineTracerFeatures(s,l){return function(u){return l(s(u))}}l.combineTracerFeatures=combineTracerFeatures;function combineClientFeatures(s,l){return function(u){return l(s(u))}}l.combineClientFeatures=combineClientFeatures;function combineWindowFeatures(s,l){return function(u){return l(s(u))}}l.combineWindowFeatures=combineWindowFeatures;function combineWorkspaceFeatures(s,l){return function(u){return l(s(u))}}l.combineWorkspaceFeatures=combineWorkspaceFeatures;function combineLanguagesFeatures(s,l){return function(u){return l(s(u))}}l.combineLanguagesFeatures=combineLanguagesFeatures;function combineFeatures(s,l){function combine(s,l,u){if(s&&l){return u(s,l)}else if(s){return s}else{return l}}let u={__brand:"features",console:combine(s.console,l.console,combineConsoleFeatures),tracer:combine(s.tracer,l.tracer,combineTracerFeatures),telemetry:combine(s.telemetry,l.telemetry,combineTelemetryFeatures),client:combine(s.client,l.client,combineClientFeatures),window:combine(s.window,l.window,combineWindowFeatures),workspace:combine(s.workspace,l.workspace,combineWorkspaceFeatures)};return u}l.combineFeatures=combineFeatures;function createConnection(s,l,u){const g=u&&u.console?new(u.console(RemoteConsoleImpl)):new RemoteConsoleImpl;const k=s(g);g.rawAttach(k);const O=u&&u.tracer?new(u.tracer(TracerImpl)):new TracerImpl;const M=u&&u.telemetry?new(u.telemetry(TelemetryImpl)):new TelemetryImpl;const q=u&&u.client?new(u.client(RemoteClientImpl)):new RemoteClientImpl;const B=u&&u.window?new(u.window(ne)):new ne;const Y=u&&u.workspace?new(u.workspace(oe)):new oe;const te=u&&u.languages?new(u.languages(ae)):new ae;const re=[g,O,M,q,B,Y,te];function asPromise(s){if(s instanceof Promise){return s}else if(h.thenable(s)){return new Promise(((l,u)=>{s.then((s=>l(s)),(s=>u(s)))}))}else{return Promise.resolve(s)}}let ie=undefined;let se=undefined;let le=undefined;let ue={listen:()=>k.listen(),sendRequest:(s,...l)=>k.sendRequest(h.string(s)?s:s.method,...l),onRequest:(s,l)=>k.onRequest(s,l),sendNotification:(s,l)=>{const u=h.string(s)?s:s.method;if(arguments.length===1){k.sendNotification(u)}else{k.sendNotification(u,l)}},onNotification:(s,l)=>k.onNotification(s,l),onProgress:k.onProgress,sendProgress:k.sendProgress,onInitialize:s=>se=s,onInitialized:s=>k.onNotification(f.InitializedNotification.type,s),onShutdown:s=>ie=s,onExit:s=>le=s,get console(){return g},get telemetry(){return M},get tracer(){return O},get client(){return q},get window(){return B},get workspace(){return Y},get languages(){return te},onDidChangeConfiguration:s=>k.onNotification(f.DidChangeConfigurationNotification.type,s),onDidChangeWatchedFiles:s=>k.onNotification(f.DidChangeWatchedFilesNotification.type,s),__textDocumentSync:undefined,onDidOpenTextDocument:s=>k.onNotification(f.DidOpenTextDocumentNotification.type,s),onDidChangeTextDocument:s=>k.onNotification(f.DidChangeTextDocumentNotification.type,s),onDidCloseTextDocument:s=>k.onNotification(f.DidCloseTextDocumentNotification.type,s),onWillSaveTextDocument:s=>k.onNotification(f.WillSaveTextDocumentNotification.type,s),onWillSaveTextDocumentWaitUntil:s=>k.onRequest(f.WillSaveTextDocumentWaitUntilRequest.type,s),onDidSaveTextDocument:s=>k.onNotification(f.DidSaveTextDocumentNotification.type,s),sendDiagnostics:s=>k.sendNotification(f.PublishDiagnosticsNotification.type,s),onHover:s=>k.onRequest(f.HoverRequest.type,((l,u)=>s(l,u,v.attachWorkDone(k,l),undefined))),onCompletion:s=>k.onRequest(f.CompletionRequest.type,((l,u)=>s(l,u,v.attachWorkDone(k,l),v.attachPartialResult(k,l)))),onCompletionResolve:s=>k.onRequest(f.CompletionResolveRequest.type,s),onSignatureHelp:s=>k.onRequest(f.SignatureHelpRequest.type,((l,u)=>s(l,u,v.attachWorkDone(k,l),undefined))),onDeclaration:s=>k.onRequest(f.DeclarationRequest.type,((l,u)=>s(l,u,v.attachWorkDone(k,l),v.attachPartialResult(k,l)))),onDefinition:s=>k.onRequest(f.DefinitionRequest.type,((l,u)=>s(l,u,v.attachWorkDone(k,l),v.attachPartialResult(k,l)))),onTypeDefinition:s=>k.onRequest(f.TypeDefinitionRequest.type,((l,u)=>s(l,u,v.attachWorkDone(k,l),v.attachPartialResult(k,l)))),onImplementation:s=>k.onRequest(f.ImplementationRequest.type,((l,u)=>s(l,u,v.attachWorkDone(k,l),v.attachPartialResult(k,l)))),onReferences:s=>k.onRequest(f.ReferencesRequest.type,((l,u)=>s(l,u,v.attachWorkDone(k,l),v.attachPartialResult(k,l)))),onDocumentHighlight:s=>k.onRequest(f.DocumentHighlightRequest.type,((l,u)=>s(l,u,v.attachWorkDone(k,l),v.attachPartialResult(k,l)))),onDocumentSymbol:s=>k.onRequest(f.DocumentSymbolRequest.type,((l,u)=>s(l,u,v.attachWorkDone(k,l),v.attachPartialResult(k,l)))),onWorkspaceSymbol:s=>k.onRequest(f.WorkspaceSymbolRequest.type,((l,u)=>s(l,u,v.attachWorkDone(k,l),v.attachPartialResult(k,l)))),onCodeAction:s=>k.onRequest(f.CodeActionRequest.type,((l,u)=>s(l,u,v.attachWorkDone(k,l),v.attachPartialResult(k,l)))),onCodeActionResolve:s=>k.onRequest(f.CodeActionResolveRequest.type,((l,u)=>s(l,u))),onCodeLens:s=>k.onRequest(f.CodeLensRequest.type,((l,u)=>s(l,u,v.attachWorkDone(k,l),v.attachPartialResult(k,l)))),onCodeLensResolve:s=>k.onRequest(f.CodeLensResolveRequest.type,((l,u)=>s(l,u))),onDocumentFormatting:s=>k.onRequest(f.DocumentFormattingRequest.type,((l,u)=>s(l,u,v.attachWorkDone(k,l),undefined))),onDocumentRangeFormatting:s=>k.onRequest(f.DocumentRangeFormattingRequest.type,((l,u)=>s(l,u,v.attachWorkDone(k,l),undefined))),onDocumentOnTypeFormatting:s=>k.onRequest(f.DocumentOnTypeFormattingRequest.type,((l,u)=>s(l,u))),onRenameRequest:s=>k.onRequest(f.RenameRequest.type,((l,u)=>s(l,u,v.attachWorkDone(k,l),undefined))),onPrepareRename:s=>k.onRequest(f.PrepareRenameRequest.type,((l,u)=>s(l,u))),onDocumentLinks:s=>k.onRequest(f.DocumentLinkRequest.type,((l,u)=>s(l,u,v.attachWorkDone(k,l),v.attachPartialResult(k,l)))),onDocumentLinkResolve:s=>k.onRequest(f.DocumentLinkResolveRequest.type,((l,u)=>s(l,u))),onDocumentColor:s=>k.onRequest(f.DocumentColorRequest.type,((l,u)=>s(l,u,v.attachWorkDone(k,l),v.attachPartialResult(k,l)))),onColorPresentation:s=>k.onRequest(f.ColorPresentationRequest.type,((l,u)=>s(l,u,v.attachWorkDone(k,l),v.attachPartialResult(k,l)))),onFoldingRanges:s=>k.onRequest(f.FoldingRangeRequest.type,((l,u)=>s(l,u,v.attachWorkDone(k,l),v.attachPartialResult(k,l)))),onSelectionRanges:s=>k.onRequest(f.SelectionRangeRequest.type,((l,u)=>s(l,u,v.attachWorkDone(k,l),v.attachPartialResult(k,l)))),onExecuteCommand:s=>k.onRequest(f.ExecuteCommandRequest.type,((l,u)=>s(l,u,v.attachWorkDone(k,l),undefined))),dispose:()=>k.dispose()};for(let s of re){s.attach(ue)}k.onRequest(f.InitializeRequest.type,(s=>{l.initialize(s);if(h.string(s.trace)){O.trace=f.Trace.fromString(s.trace)}for(let l of re){l.initialize(s.capabilities)}if(se){let l=se(s,(new f.CancellationTokenSource).token,v.attachWorkDone(k,s),undefined);return asPromise(l).then((s=>{if(s instanceof f.ResponseError){return s}let l=s;if(!l){l={capabilities:{}}}let u=l.capabilities;if(!u){u={};l.capabilities=u}if(u.textDocumentSync===undefined||u.textDocumentSync===null){u.textDocumentSync=h.number(ue.__textDocumentSync)?ue.__textDocumentSync:f.TextDocumentSyncKind.None}else if(!h.number(u.textDocumentSync)&&!h.number(u.textDocumentSync.change)){u.textDocumentSync.change=h.number(ue.__textDocumentSync)?ue.__textDocumentSync:f.TextDocumentSyncKind.None}for(let s of re){s.fillServerCapabilities(u)}return l}))}else{let s={capabilities:{textDocumentSync:f.TextDocumentSyncKind.None}};for(let l of re){l.fillServerCapabilities(s.capabilities)}return s}}));k.onRequest(f.ShutdownRequest.type,(()=>{l.shutdownReceived=true;if(ie){return ie((new f.CancellationTokenSource).token)}else{return undefined}}));k.onNotification(f.ExitNotification.type,(()=>{try{if(le){le()}}finally{if(l.shutdownReceived){l.exit(0)}else{l.exit(1)}}}));k.onNotification(f.SetTraceNotification.type,(s=>{O.trace=f.Trace.fromString(s.value)}));return ue}l.createConnection=createConnection},62613:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.ShowDocumentFeature=void 0;const f=u(3302);const ShowDocumentFeature=s=>class extends s{showDocument(s){return this.connection.sendRequest(f.ShowDocumentRequest.type,s)}};l.ShowDocumentFeature=ShowDocumentFeature},7018:(s,l)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.thenable=l.typedArray=l.stringArray=l.array=l.func=l.error=l.number=l.string=l.boolean=void 0;function boolean(s){return s===true||s===false}l.boolean=boolean;function string(s){return typeof s==="string"||s instanceof String}l.string=string;function number(s){return typeof s==="number"||s instanceof Number}l.number=number;function error(s){return s instanceof Error}l.error=error;function func(s){return typeof s==="function"}l.func=func;function array(s){return Array.isArray(s)}l.array=array;function stringArray(s){return array(s)&&s.every((s=>string(s)))}l.stringArray=stringArray;function typedArray(s,l){return Array.isArray(s)&&s.every(l)}l.typedArray=typedArray;function thenable(s){return s&&func(s.then)}l.thenable=thenable},1702:(s,l)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.generateUuid=l.parse=l.isUUID=l.v4=l.empty=void 0;class ValueUUID{constructor(s){this._value=s}asHex(){return this._value}equals(s){return this.asHex()===s.asHex()}}class V4UUID extends ValueUUID{constructor(){super([V4UUID._randomHex(),V4UUID._randomHex(),V4UUID._randomHex(),V4UUID._randomHex(),V4UUID._randomHex(),V4UUID._randomHex(),V4UUID._randomHex(),V4UUID._randomHex(),"-",V4UUID._randomHex(),V4UUID._randomHex(),V4UUID._randomHex(),V4UUID._randomHex(),"-","4",V4UUID._randomHex(),V4UUID._randomHex(),V4UUID._randomHex(),"-",V4UUID._oneOf(V4UUID._timeHighBits),V4UUID._randomHex(),V4UUID._randomHex(),V4UUID._randomHex(),"-",V4UUID._randomHex(),V4UUID._randomHex(),V4UUID._randomHex(),V4UUID._randomHex(),V4UUID._randomHex(),V4UUID._randomHex(),V4UUID._randomHex(),V4UUID._randomHex(),V4UUID._randomHex(),V4UUID._randomHex(),V4UUID._randomHex(),V4UUID._randomHex()].join(""))}static _oneOf(s){return s[Math.floor(s.length*Math.random())]}static _randomHex(){return V4UUID._oneOf(V4UUID._chars)}}V4UUID._chars=["0","1","2","3","4","5","6","6","7","8","9","a","b","c","d","e","f"];V4UUID._timeHighBits=["8","9","a","b"];l.empty=new ValueUUID("00000000-0000-0000-0000-000000000000");function v4(){return new V4UUID}l.v4=v4;const u=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function isUUID(s){return u.test(s)}l.isUUID=isUUID;function parse(s){if(!isUUID(s)){throw new Error("invalid uuid")}return new ValueUUID(s)}l.parse=parse;function generateUuid(){return v4().asHex()}l.generateUuid=generateUuid},62510:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.WorkspaceFoldersFeature=void 0;const f=u(3302);const WorkspaceFoldersFeature=s=>class extends s{initialize(s){let l=s.workspace;if(l&&l.workspaceFolders){this._onDidChangeWorkspaceFolders=new f.Emitter;this.connection.onNotification(f.DidChangeWorkspaceFoldersNotification.type,(s=>{this._onDidChangeWorkspaceFolders.fire(s.event)}))}}getWorkspaceFolders(){return this.connection.sendRequest(f.WorkspaceFoldersRequest.type)}get onDidChangeWorkspaceFolders(){if(!this._onDidChangeWorkspaceFolders){throw new Error("Client doesn't support sending workspace folder change events.")}if(!this._unregistration){this._unregistration=this.connection.client.register(f.DidChangeWorkspaceFoldersNotification.type)}return this._onDidChangeWorkspaceFolders.event}};l.WorkspaceFoldersFeature=WorkspaceFoldersFeature},69800:(s,l,u)=>{"use strict";Object.defineProperty(l,"__esModule",{value:true});l.resolveModulePath=l.FileSystem=l.resolveGlobalYarnPath=l.resolveGlobalNodePath=l.resolve=l.uriToFilePath=void 0;const f=u(78835);const h=u(85622);const g=u(35747);const v=u(63129);function uriToFilePath(s){let l=f.parse(s);if(l.protocol!=="file:"||!l.path){return undefined}let u=l.path.split("/");for(var g=0,v=u.length;g<v;g++){u[g]=decodeURIComponent(u[g])}if(process.platform==="win32"&&u.length>1){let s=u[0];let l=u[1];if(s.length===0&&l.length>1&&l[1]===":"){u.shift()}}return h.normalize(u.join("/"))}l.uriToFilePath=uriToFilePath;function isWindows(){return process.platform==="win32"}function resolve(s,l,u,f){const k="NODE_PATH";const O=["var p = process;","p.on('message',function(m){","if(m.c==='e'){","p.exit(0);","}","else if(m.c==='rs'){","try{","var r=require.resolve(m.a);","p.send({c:'r',s:true,r:r});","}","catch(err){","p.send({c:'r',s:false});","}","}","});"].join("");return new Promise(((M,q)=>{let B=process.env;let Y=Object.create(null);Object.keys(B).forEach((s=>Y[s]=B[s]));if(l&&g.existsSync(l)){if(Y[k]){Y[k]=l+h.delimiter+Y[k]}else{Y[k]=l}if(f){f(`NODE_PATH value is: ${Y[k]}`)}}Y["ELECTRON_RUN_AS_NODE"]="1";try{let l=v.fork("",[],{cwd:u,env:Y,execArgv:["-e",O]});if(l.pid===void 0){q(new Error(`Starting process to resolve node module ${s} failed`));return}l.on("error",(s=>{q(s)}));l.on("message",(u=>{if(u.c==="r"){l.send({c:"e"});if(u.s){M(u.r)}else{q(new Error(`Failed to resolve module: ${s}`))}}}));let f={c:"rs",a:s};l.send(f)}catch(s){q(s)}}))}l.resolve=resolve;function resolveGlobalNodePath(s){let l="npm";const u=Object.create(null);Object.keys(process.env).forEach((s=>u[s]=process.env[s]));u["NO_UPDATE_NOTIFIER"]="true";const f={encoding:"utf8",env:u};if(isWindows()){l="npm.cmd";f.shell=true}let handler=()=>{};try{process.on("SIGPIPE",handler);let u=v.spawnSync(l,["config","get","prefix"],f).stdout;if(!u){if(s){s(`'npm config get prefix' didn't return a value.`)}return undefined}let g=u.trim();if(s){s(`'npm config get prefix' value is: ${g}`)}if(g.length>0){if(isWindows()){return h.join(g,"node_modules")}else{return h.join(g,"lib","node_modules")}}return undefined}catch(s){return undefined}finally{process.removeListener("SIGPIPE",handler)}}l.resolveGlobalNodePath=resolveGlobalNodePath;function resolveGlobalYarnPath(s){let l="yarn";let u={encoding:"utf8"};if(isWindows()){l="yarn.cmd";u.shell=true}let handler=()=>{};try{process.on("SIGPIPE",handler);let f=v.spawnSync(l,["global","dir","--json"],u);let g=f.stdout;if(!g){if(s){s(`'yarn global dir' didn't return a value.`);if(f.stderr){s(f.stderr)}}return undefined}let k=g.trim().split(/\r?\n/);for(let s of k){try{let l=JSON.parse(s);if(l.type==="log"){return h.join(l.data,"node_modules")}}catch(s){}}return undefined}catch(s){return undefined}finally{process.removeListener("SIGPIPE",handler)}}l.resolveGlobalYarnPath=resolveGlobalYarnPath;var k;(function(s){let l=undefined;function isCaseSensitive(){if(l!==void 0){return l}if(process.platform==="win32"){l=false}else{l=!g.existsSync(__filename.toUpperCase())||!g.existsSync(__filename.toLowerCase())}return l}s.isCaseSensitive=isCaseSensitive;function isParent(s,l){if(isCaseSensitive()){return h.normalize(l).indexOf(h.normalize(s))===0}else{return h.normalize(l).toLowerCase().indexOf(h.normalize(s).toLowerCase())===0}}s.isParent=isParent})(k=l.FileSystem||(l.FileSystem={}));function resolveModulePath(s,l,u,f){if(u){if(!h.isAbsolute(u)){u=h.join(s,u)}return resolve(l,u,u,f).then((s=>{if(k.isParent(u,s)){return s}else{return Promise.reject(new Error(`Failed to load ${l} from node path location.`))}})).then(undefined,(u=>resolve(l,resolveGlobalNodePath(f),s,f)))}else{return resolve(l,resolveGlobalNodePath(f),s,f)}}l.resolveModulePath=resolveModulePath},22333:function(s,l,u){"use strict";var f=this&&this.__createBinding||(Object.create?function(s,l,u,f){if(f===undefined)f=u;Object.defineProperty(s,f,{enumerable:true,get:function(){return l[u]}})}:function(s,l,u,f){if(f===undefined)f=u;s[f]=l[u]});var h=this&&this.__exportStar||function(s,l){for(var u in s)if(u!=="default"&&!Object.prototype.hasOwnProperty.call(l,u))f(l,s,u)};Object.defineProperty(l,"__esModule",{value:true});l.createConnection=l.Files=void 0;const g=u(7018);const v=u(13472);const k=u(69800);const O=u(77798);h(u(77798),l);h(u(29755),l);var M;(function(s){s.uriToFilePath=k.uriToFilePath;s.resolveGlobalNodePath=k.resolveGlobalNodePath;s.resolveGlobalYarnPath=k.resolveGlobalYarnPath;s.resolve=k.resolve;s.resolveModulePath=k.resolveModulePath})(M=l.Files||(l.Files={}));let q;function endProtocolConnection(){if(q===undefined){return}try{q.end()}catch(s){}}let B=false;let Y=undefined;function setupExitTimer(){const s="--clientProcessId";function runTimer(s){try{let l=parseInt(s);if(!isNaN(l)){Y=setInterval((()=>{try{process.kill(l,0)}catch(s){endProtocolConnection();process.exit(B?0:1)}}),3e3)}}catch(s){}}for(let l=2;l<process.argv.length;l++){let u=process.argv[l];if(u===s&&l+1<process.argv.length){runTimer(process.argv[l+1]);return}else{let l=u.split("=");if(l[0]===s){runTimer(l[1])}}}}setupExitTimer();const te={initialize:s=>{const l=s.processId;if(g.number(l)&&Y===undefined){setInterval((()=>{try{process.kill(l,0)}catch(s){process.exit(B?0:1)}}),3e3)}},get shutdownReceived(){return B},set shutdownReceived(s){B=s},exit:s=>{endProtocolConnection();process.exit(s)}};function createConnection(s,l,u,f){let h;let g;let v;let k;if(s!==void 0&&s.__brand==="features"){h=s;s=l;l=u;u=f}if(O.ConnectionStrategy.is(s)||O.ConnectionOptions.is(s)){k=s}else{g=s;v=l;k=u}return _createConnection(g,v,k,h)}l.createConnection=createConnection;function _createConnection(s,l,u,f){if(!s&&!l&&process.argv.length>2){let u=void 0;let f=void 0;let g=process.argv.slice(2);for(let v=0;v<g.length;v++){let k=g[v];if(k==="--node-ipc"){s=new O.IPCMessageReader(process);l=new O.IPCMessageWriter(process);break}else if(k==="--stdio"){s=process.stdin;l=process.stdout;break}else if(k==="--socket"){u=parseInt(g[v+1]);break}else if(k==="--pipe"){f=g[v+1];break}else{var h=k.split("=");if(h[0]==="--socket"){u=parseInt(h[1]);break}else if(h[0]==="--pipe"){f=h[1];break}}}if(u){let f=O.createServerSocketTransport(u);s=f[0];l=f[1]}else if(f){let u=O.createServerPipeTransport(f);s=u[0];l=u[1]}}var k="Use arguments of createConnection or set command line parameters: '--node-ipc', '--stdio' or '--socket={number}'";if(!s){throw new Error("Connection input stream is not set. "+k)}if(!l){throw new Error("Connection output stream is not set. "+k)}if(g.func(s.read)&&g.func(s.on)){let l=s;l.on("end",(()=>{endProtocolConnection();process.exit(B?0:1)}));l.on("close",(()=>{endProtocolConnection();process.exit(B?0:1)}))}const connectionFactory=f=>{const h=O.createProtocolConnection(s,l,f,u);return h};return v.createConnection(connectionFactory,te,f)}},47160:(s,l,u)=>{"use strict";s.exports=u(22333)},34820:function(s){!function(l,u){if(true)s.exports=u();else{var f,h}}(this,(function(){return(()=>{"use strict";var s={470:s=>{function e(s){if("string"!=typeof s)throw new TypeError("Path must be a string. Received "+JSON.stringify(s))}function r(s,l){for(var u,f="",h=0,g=-1,v=0,k=0;k<=s.length;++k){if(k<s.length)u=s.charCodeAt(k);else{if(47===u)break;u=47}if(47===u){if(g===k-1||1===v);else if(g!==k-1&&2===v){if(f.length<2||2!==h||46!==f.charCodeAt(f.length-1)||46!==f.charCodeAt(f.length-2))if(f.length>2){var O=f.lastIndexOf("/");if(O!==f.length-1){-1===O?(f="",h=0):h=(f=f.slice(0,O)).length-1-f.lastIndexOf("/"),g=k,v=0;continue}}else if(2===f.length||1===f.length){f="",h=0,g=k,v=0;continue}l&&(f.length>0?f+="/..":f="..",h=2)}else f.length>0?f+="/"+s.slice(g+1,k):f=s.slice(g+1,k),h=k-g-1;g=k,v=0}else 46===u&&-1!==v?++v:v=-1}return f}var l={resolve:function(){for(var s,l="",u=!1,f=arguments.length-1;f>=-1&&!u;f--){var h;f>=0?h=arguments[f]:(void 0===s&&(s=process.cwd()),h=s),e(h),0!==h.length&&(l=h+"/"+l,u=47===h.charCodeAt(0))}return l=r(l,!u),u?l.length>0?"/"+l:"/":l.length>0?l:"."},normalize:function(s){if(e(s),0===s.length)return".";var l=47===s.charCodeAt(0),u=47===s.charCodeAt(s.length-1);return 0!==(s=r(s,!l)).length||l||(s="."),s.length>0&&u&&(s+="/"),l?"/"+s:s},isAbsolute:function(s){return e(s),s.length>0&&47===s.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var s,u=0;u<arguments.length;++u){var f=arguments[u];e(f),f.length>0&&(void 0===s?s=f:s+="/"+f)}return void 0===s?".":l.normalize(s)},relative:function(s,u){if(e(s),e(u),s===u)return"";if((s=l.resolve(s))===(u=l.resolve(u)))return"";for(var f=1;f<s.length&&47===s.charCodeAt(f);++f);for(var h=s.length,g=h-f,v=1;v<u.length&&47===u.charCodeAt(v);++v);for(var k=u.length-v,O=g<k?g:k,M=-1,q=0;q<=O;++q){if(q===O){if(k>O){if(47===u.charCodeAt(v+q))return u.slice(v+q+1);if(0===q)return u.slice(v+q)}else g>O&&(47===s.charCodeAt(f+q)?M=q:0===q&&(M=0));break}var B=s.charCodeAt(f+q);if(B!==u.charCodeAt(v+q))break;47===B&&(M=q)}var Y="";for(q=f+M+1;q<=h;++q)q!==h&&47!==s.charCodeAt(q)||(0===Y.length?Y+="..":Y+="/..");return Y.length>0?Y+u.slice(v+M):(v+=M,47===u.charCodeAt(v)&&++v,u.slice(v))},_makeLong:function(s){return s},dirname:function(s){if(e(s),0===s.length)return".";for(var l=s.charCodeAt(0),u=47===l,f=-1,h=!0,g=s.length-1;g>=1;--g)if(47===(l=s.charCodeAt(g))){if(!h){f=g;break}}else h=!1;return-1===f?u?"/":".":u&&1===f?"//":s.slice(0,f)},basename:function(s,l){if(void 0!==l&&"string"!=typeof l)throw new TypeError('"ext" argument must be a string');e(s);var u,f=0,h=-1,g=!0;if(void 0!==l&&l.length>0&&l.length<=s.length){if(l.length===s.length&&l===s)return"";var v=l.length-1,k=-1;for(u=s.length-1;u>=0;--u){var O=s.charCodeAt(u);if(47===O){if(!g){f=u+1;break}}else-1===k&&(g=!1,k=u+1),v>=0&&(O===l.charCodeAt(v)?-1==--v&&(h=u):(v=-1,h=k))}return f===h?h=k:-1===h&&(h=s.length),s.slice(f,h)}for(u=s.length-1;u>=0;--u)if(47===s.charCodeAt(u)){if(!g){f=u+1;break}}else-1===h&&(g=!1,h=u+1);return-1===h?"":s.slice(f,h)},extname:function(s){e(s);for(var l=-1,u=0,f=-1,h=!0,g=0,v=s.length-1;v>=0;--v){var k=s.charCodeAt(v);if(47!==k)-1===f&&(h=!1,f=v+1),46===k?-1===l?l=v:1!==g&&(g=1):-1!==l&&(g=-1);else if(!h){u=v+1;break}}return-1===l||-1===f||0===g||1===g&&l===f-1&&l===u+1?"":s.slice(l,f)},format:function(s){if(null===s||"object"!=typeof s)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof s);return function(s,l){var u=l.dir||l.root,f=l.base||(l.name||"")+(l.ext||"");return u?u===l.root?u+f:u+"/"+f:f}(0,s)},parse:function(s){e(s);var l={root:"",dir:"",base:"",ext:"",name:""};if(0===s.length)return l;var u,f=s.charCodeAt(0),h=47===f;h?(l.root="/",u=1):u=0;for(var g=-1,v=0,k=-1,O=!0,M=s.length-1,q=0;M>=u;--M)if(47!==(f=s.charCodeAt(M)))-1===k&&(O=!1,k=M+1),46===f?-1===g?g=M:1!==q&&(q=1):-1!==g&&(q=-1);else if(!O){v=M+1;break}return-1===g||-1===k||0===q||1===q&&g===k-1&&g===v+1?-1!==k&&(l.base=l.name=0===v&&h?s.slice(1,k):s.slice(v,k)):(0===v&&h?(l.name=s.slice(1,g),l.base=s.slice(1,k)):(l.name=s.slice(v,g),l.base=s.slice(v,k)),l.ext=s.slice(g,k)),v>0?l.dir=s.slice(0,v-1):h&&(l.dir="/"),l},sep:"/",delimiter:":",win32:null,posix:null};l.posix=l,s.exports=l},465:(s,l,u)=>{Object.defineProperty(l,"__esModule",{value:!0}),l.Utils=l.URI=void 0;var f=u(796);Object.defineProperty(l,"URI",{enumerable:!0,get:function(){return f.URI}});var h=u(679);Object.defineProperty(l,"Utils",{enumerable:!0,get:function(){return h.Utils}})},674:(s,l)=>{if(Object.defineProperty(l,"__esModule",{value:!0}),l.isWindows=void 0,"object"==typeof process)l.isWindows="win32"===process.platform;else if("object"==typeof navigator){var u=navigator.userAgent;l.isWindows=u.indexOf("Windows")>=0}},796:function(s,l,u){var f,h,g=this&&this.__extends||(f=function(s,l){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,l){s.__proto__=l}||function(s,l){for(var u in l)Object.prototype.hasOwnProperty.call(l,u)&&(s[u]=l[u])})(s,l)},function(s,l){function r(){this.constructor=s}f(s,l),s.prototype=null===l?Object.create(l):(r.prototype=l.prototype,new r)});Object.defineProperty(l,"__esModule",{value:!0}),l.uriToFsPath=l.URI=void 0;var v=u(674),k=/^\w[\w\d+.-]*$/,O=/^\//,M=/^\/\//,q="",B="/",Y=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,te=function(){function t(s,l,u,f,h,g){void 0===g&&(g=!1),"object"==typeof s?(this.scheme=s.scheme||q,this.authority=s.authority||q,this.path=s.path||q,this.query=s.query||q,this.fragment=s.fragment||q):(this.scheme=function(s,l){return s||l?s:"file"}(s,g),this.authority=l||q,this.path=function(s,l){switch(s){case"https":case"http":case"file":l?l[0]!==B&&(l=B+l):l=B}return l}(this.scheme,u||q),this.query=f||q,this.fragment=h||q,function(s,l){if(!s.scheme&&l)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+s.authority+'", path: "'+s.path+'", query: "'+s.query+'", fragment: "'+s.fragment+'"}');if(s.scheme&&!k.test(s.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(s.path)if(s.authority){if(!O.test(s.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(M.test(s.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}(this,g))}return t.isUri=function(s){return s instanceof t||!!s&&"string"==typeof s.authority&&"string"==typeof s.fragment&&"string"==typeof s.path&&"string"==typeof s.query&&"string"==typeof s.scheme&&"function"==typeof s.fsPath&&"function"==typeof s.with&&"function"==typeof s.toString},Object.defineProperty(t.prototype,"fsPath",{get:function(){return b(this,!1)},enumerable:!1,configurable:!0}),t.prototype.with=function(s){if(!s)return this;var l=s.scheme,u=s.authority,f=s.path,h=s.query,g=s.fragment;return void 0===l?l=this.scheme:null===l&&(l=q),void 0===u?u=this.authority:null===u&&(u=q),void 0===f?f=this.path:null===f&&(f=q),void 0===h?h=this.query:null===h&&(h=q),void 0===g?g=this.fragment:null===g&&(g=q),l===this.scheme&&u===this.authority&&f===this.path&&h===this.query&&g===this.fragment?this:new ne(l,u,f,h,g)},t.parse=function(s,l){void 0===l&&(l=!1);var u=Y.exec(s);return u?new ne(u[2]||q,_(u[4]||q),_(u[5]||q),_(u[7]||q),_(u[9]||q),l):new ne(q,q,q,q,q)},t.file=function(s){var l=q;if(v.isWindows&&(s=s.replace(/\\/g,B)),s[0]===B&&s[1]===B){var u=s.indexOf(B,2);-1===u?(l=s.substring(2),s=B):(l=s.substring(2,u),s=s.substring(u)||B)}return new ne("file",l,s,q,q)},t.from=function(s){return new ne(s.scheme,s.authority,s.path,s.query,s.fragment)},t.prototype.toString=function(s){return void 0===s&&(s=!1),C(this,s)},t.prototype.toJSON=function(){return this},t.revive=function(s){if(s){if(s instanceof t)return s;var l=new ne(s);return l._formatted=s.external,l._fsPath=s._sep===re?s.fsPath:null,l}return s},t}();l.URI=te;var re=v.isWindows?1:void 0,ne=function(s){function e(){var l=null!==s&&s.apply(this,arguments)||this;return l._formatted=null,l._fsPath=null,l}return g(e,s),Object.defineProperty(e.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=b(this,!1)),this._fsPath},enumerable:!1,configurable:!0}),e.prototype.toString=function(s){return void 0===s&&(s=!1),s?C(this,!0):(this._formatted||(this._formatted=C(this,!1)),this._formatted)},e.prototype.toJSON=function(){var s={$mid:1};return this._fsPath&&(s.fsPath=this._fsPath,s._sep=re),this._formatted&&(s.external=this._formatted),this.path&&(s.path=this.path),this.scheme&&(s.scheme=this.scheme),this.authority&&(s.authority=this.authority),this.query&&(s.query=this.query),this.fragment&&(s.fragment=this.fragment),s},e}(te),ie=((h={})[58]="%3A",h[47]="%2F",h[63]="%3F",h[35]="%23",h[91]="%5B",h[93]="%5D",h[64]="%40",h[33]="%21",h[36]="%24",h[38]="%26",h[39]="%27",h[40]="%28",h[41]="%29",h[42]="%2A",h[43]="%2B",h[44]="%2C",h[59]="%3B",h[61]="%3D",h[32]="%20",h);function m(s,l){for(var u=void 0,f=-1,h=0;h<s.length;h++){var g=s.charCodeAt(h);if(g>=97&&g<=122||g>=65&&g<=90||g>=48&&g<=57||45===g||46===g||95===g||126===g||l&&47===g)-1!==f&&(u+=encodeURIComponent(s.substring(f,h)),f=-1),void 0!==u&&(u+=s.charAt(h));else{void 0===u&&(u=s.substr(0,h));var v=ie[g];void 0!==v?(-1!==f&&(u+=encodeURIComponent(s.substring(f,h)),f=-1),u+=v):-1===f&&(f=h)}}return-1!==f&&(u+=encodeURIComponent(s.substring(f))),void 0!==u?u:s}function y(s){for(var l=void 0,u=0;u<s.length;u++){var f=s.charCodeAt(u);35===f||63===f?(void 0===l&&(l=s.substr(0,u)),l+=ie[f]):void 0!==l&&(l+=s[u])}return void 0!==l?l:s}function b(s,l){var u;return u=s.authority&&s.path.length>1&&"file"===s.scheme?"//"+s.authority+s.path:47===s.path.charCodeAt(0)&&(s.path.charCodeAt(1)>=65&&s.path.charCodeAt(1)<=90||s.path.charCodeAt(1)>=97&&s.path.charCodeAt(1)<=122)&&58===s.path.charCodeAt(2)?l?s.path.substr(1):s.path[1].toLowerCase()+s.path.substr(2):s.path,v.isWindows&&(u=u.replace(/\//g,"\\")),u}function C(s,l){var u=l?y:m,f="",h=s.scheme,g=s.authority,v=s.path,k=s.query,O=s.fragment;if(h&&(f+=h,f+=":"),(g||"file"===h)&&(f+=B,f+=B),g){var M=g.indexOf("@");if(-1!==M){var q=g.substr(0,M);g=g.substr(M+1),-1===(M=q.indexOf(":"))?f+=u(q,!1):(f+=u(q.substr(0,M),!1),f+=":",f+=u(q.substr(M+1),!1)),f+="@"}-1===(M=(g=g.toLowerCase()).indexOf(":"))?f+=u(g,!1):(f+=u(g.substr(0,M),!1),f+=g.substr(M))}if(v){if(v.length>=3&&47===v.charCodeAt(0)&&58===v.charCodeAt(2))(Y=v.charCodeAt(1))>=65&&Y<=90&&(v="/"+String.fromCharCode(Y+32)+":"+v.substr(3));else if(v.length>=2&&58===v.charCodeAt(1)){var Y;(Y=v.charCodeAt(0))>=65&&Y<=90&&(v=String.fromCharCode(Y+32)+":"+v.substr(2))}f+=u(v,!0)}return k&&(f+="?",f+=u(k,!1)),O&&(f+="#",f+=l?O:m(O,!1)),f}function A(s){try{return decodeURIComponent(s)}catch(l){return s.length>3?s.substr(0,3)+A(s.substr(3)):s}}l.uriToFsPath=b;var se=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function _(s){return s.match(se)?s.replace(se,(function(s){return A(s)})):s}},679:function(s,l,u){var f=this&&this.__spreadArrays||function(){for(var s=0,l=0,u=arguments.length;l<u;l++)s+=arguments[l].length;var f=Array(s),h=0;for(l=0;l<u;l++)for(var g=arguments[l],v=0,k=g.length;v<k;v++,h++)f[h]=g[v];return f};Object.defineProperty(l,"__esModule",{value:!0}),l.Utils=void 0;var h,g=u(470),v=g.posix||g;(h=l.Utils||(l.Utils={})).joinPath=function(s){for(var l=[],u=1;u<arguments.length;u++)l[u-1]=arguments[u];return s.with({path:v.join.apply(v,f([s.path],l))})},h.resolvePath=function(s){for(var l=[],u=1;u<arguments.length;u++)l[u-1]=arguments[u];var h=s.path||"/";return s.with({path:v.resolve.apply(v,f([h],l))})},h.dirname=function(s){var l=v.dirname(s.path);return 1===l.length&&46===l.charCodeAt(0)?s:s.with({path:l})},h.basename=function(s){return v.basename(s.path)},h.extname=function(s){return v.extname(s.path)}}},l={};return function r(u){if(l[u])return l[u].exports;var f=l[u]={exports:{}};return s[u].call(f.exports,f,f.exports,r),f.exports}(465)})()}))},30378:s=>{s.exports=extend;var l=Object.prototype.hasOwnProperty;function extend(){var s={};for(var u=0;u<arguments.length;u++){var f=arguments[u];for(var h in f){if(l.call(f,h)){s[h]=f[h]}}}return s}},1631:s=>{class Node{constructor(s){this.value=s;this.next=undefined}}class Queue{constructor(){this.clear()}enqueue(s){const l=new Node(s);if(this._head){this._tail.next=l;this._tail=l}else{this._head=l;this._tail=l}this._size++}dequeue(){const s=this._head;if(!s){return}this._head=this._head.next;this._size--;return s.value}clear(){this._head=undefined;this._tail=undefined;this._size=0}get size(){return this._size}*[Symbol.iterator](){let s=this._head;while(s){yield s.value;s=s.next}}}s.exports=Queue},53968:(s,l,u)=>{var f;const h=u(12087);const g=u(85622);const v=u(35747);const k=process.config&&process.config.variables||{};const O=h.arch();const M=h.platform();const q=process.versions.modules;const B=isElectron()?"electron":"node";const Y=process.env.LIBC||(isAlpine(M)?"musl":"glibc");const te=process.env.ARM_VERSION||(O==="arm64"?"8":k.arm_version)||"";const re=(process.versions.uv||"").split(".")[0];const ne={"darwin-arm64":{"node.napi.glibc.node":()=>u(3319)},"darwin-x64":{"node.napi.glibc.node":()=>u(69181)},"linux-x64":{"node.napi.glibc.node":()=>u(33110),"node.napi.musl.node":()=>u(70456)},"win32-x64":{"node.napi.glibc.node":()=>u(27972)}};let getBinding=()=>{let s=resolve();getBinding=()=>s;return s};l.Fp=getBinding;f=(s,l,u)=>getBinding().writeSnapshot(g.resolve(s),g.resolve(l),normalizeOptions(s,u));f=(s,l,u)=>getBinding().getEventsSince(g.resolve(s),g.resolve(l),normalizeOptions(s,u));l.Ld=async(s,l,u)=>{s=g.resolve(s);u=normalizeOptions(s,u);await getBinding().subscribe(s,l,u);return{unsubscribe(){return getBinding().unsubscribe(s,l,u)}}};f=(s,l,u)=>getBinding().unsubscribe(g.resolve(s),l,normalizeOptions(s,u));function resolve(){var s=Object.keys(ne).map(parseTuple);var l=s.filter(matchTuple(M,O)).sort(compareTuples)[0];if(!l)return;var u=ne[l.name];var f=Object.keys(u);var h=f.map(parseTags);var g=h.filter(matchTags(B,q));var v=g.sort(compareTags(B))[0];if(v){try{return u[v.file]()}catch(s){}}}function parseTuple(s){var l=s.split("-");if(l.length!==2)return;var u=l[0];var f=l[1].split("+");if(!u)return;if(!f.length)return;if(!f.every(Boolean))return;return{name:s,platform:u,architectures:f}}function matchTuple(s,l){return function(u){if(u==null)return false;if(u.platform!==s)return false;return u.architectures.includes(l)}}function compareTuples(s,l){return s.architectures.length-l.architectures.length}function parseTags(s){var l=s.split(".");var u=l.pop();var f={file:s,specificity:0};if(u!=="node")return;for(var h=0;h<l.length;h++){var g=l[h];if(g==="node"||g==="electron"||g==="node-webkit"){f.runtime=g}else if(g==="napi"){f.napi=true}else if(g.slice(0,3)==="abi"){f.abi=g.slice(3)}else if(g.slice(0,2)==="uv"){f.uv=g.slice(2)}else if(g.slice(0,4)==="armv"){f.armv=g.slice(4)}else if(g==="glibc"||g==="musl"){f.libc=g}else{continue}f.specificity++}return f}function matchTags(s,l){return function(u){if(u==null)return false;if(u.runtime!==s&&!runtimeAgnostic(u))return false;if(u.abi!==l&&!u.napi)return false;if(u.uv&&u.uv!==re)return false;if(u.armv&&u.armv!==te)return false;if(u.libc&&u.libc!==Y)return false;return true}}function runtimeAgnostic(s){return s.runtime==="node"&&s.napi}function compareTags(s){return function(l,u){if(l.runtime!==u.runtime){return l.runtime===s?-1:1}else if(l.abi!==u.abi){return l.abi?-1:1}else if(l.specificity!==u.specificity){return l.specificity>u.specificity?-1:1}else{return 0}}}function normalizeOptions(s,l={}){if(Array.isArray(l.ignore)){l=Object.assign({},l,{ignore:l.ignore.map((l=>g.resolve(s,l)))})}return l}function isElectron(){if(process.versions&&process.versions.electron)return true;if(process.env.ELECTRON_RUN_AS_NODE)return true;return typeof window!=="undefined"&&window.process&&window.process.type==="renderer"}function isAlpine(s){return s==="linux"&&v.existsSync("/etc/alpine-release")}},2125:(s,l,u)=>{s.exports=require(u.ab+"fsevents.node")},75055:module=>{module.exports=eval("require")("pnpapi")},49067:s=>{let l="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let customAlphabet=(s,l)=>()=>{let u="";let f=l;while(f--){u+=s[Math.random()*s.length|0]}return u};let nanoid=(s=21)=>{let u="";let f=s;while(f--){u+=l[Math.random()*64|0]}return u};s.exports={nanoid:nanoid,customAlphabet:customAlphabet}},92265:s=>{"use strict";s.exports=JSON.parse('["3dm","3ds","3g2","3gp","7z","a","aac","adp","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgb","rip","rlc","rmf","rmvb","rpm","rtf","rz","s3m","s7z","scpt","sgi","shar","snap","sil","sketch","slk","smv","snk","so","stl","suo","sub","swf","tar","tbz","tbz2","tga","tgz","thmx","tif","tiff","tlz","ttc","ttf","txz","udf","uvh","uvi","uvm","uvp","uvs","uvu","viv","vob","war","wav","wax","wbmp","wdp","weba","webm","webp","whl","wim","wm","wma","wmv","wmx","woff","woff2","wrm","wvx","xbm","xif","xla","xlam","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xm","xmind","xpi","xpm","xwd","xz","z","zip","zipx"]')},74986:s=>{"use strict";s.exports=JSON.parse('{"assert":true,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16","async_hooks":">= 8","node:async_hooks":[">= 14.18 && < 15",">= 16"],"buffer_ieee754":"< 0.9.7","buffer":true,"node:buffer":[">= 14.18 && < 15",">= 16"],"child_process":true,"node:child_process":[">= 14.18 && < 15",">= 16"],"cluster":true,"node:cluster":[">= 14.18 && < 15",">= 16"],"console":true,"node:console":[">= 14.18 && < 15",">= 16"],"constants":true,"node:constants":[">= 14.18 && < 15",">= 16"],"crypto":true,"node:crypto":[">= 14.18 && < 15",">= 16"],"_debug_agent":">= 1 && < 8","_debugger":"< 8","dgram":true,"node:dgram":[">= 14.18 && < 15",">= 16"],"diagnostics_channel":[">= 14.17 && < 15",">= 15.1"],"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],"dns":true,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16","domain":">= 0.7.12","node:domain":[">= 14.18 && < 15",">= 16"],"events":true,"node:events":[">= 14.18 && < 15",">= 16"],"freelist":"< 6","fs":true,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],"_http_agent":">= 0.11.1","node:_http_agent":[">= 14.18 && < 15",">= 16"],"_http_client":">= 0.11.1","node:_http_client":[">= 14.18 && < 15",">= 16"],"_http_common":">= 0.11.1","node:_http_common":[">= 14.18 && < 15",">= 16"],"_http_incoming":">= 0.11.1","node:_http_incoming":[">= 14.18 && < 15",">= 16"],"_http_outgoing":">= 0.11.1","node:_http_outgoing":[">= 14.18 && < 15",">= 16"],"_http_server":">= 0.11.1","node:_http_server":[">= 14.18 && < 15",">= 16"],"http":true,"node:http":[">= 14.18 && < 15",">= 16"],"http2":">= 8.8","node:http2":[">= 14.18 && < 15",">= 16"],"https":true,"node:https":[">= 14.18 && < 15",">= 16"],"inspector":">= 8","node:inspector":[">= 14.18 && < 15",">= 16"],"_linklist":"< 8","module":true,"node:module":[">= 14.18 && < 15",">= 16"],"net":true,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12","os":true,"node:os":[">= 14.18 && < 15",">= 16"],"path":true,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16","perf_hooks":">= 8.5","node:perf_hooks":[">= 14.18 && < 15",">= 16"],"process":">= 1","node:process":[">= 14.18 && < 15",">= 16"],"punycode":true,"node:punycode":[">= 14.18 && < 15",">= 16"],"querystring":true,"node:querystring":[">= 14.18 && < 15",">= 16"],"readline":true,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17","repl":true,"node:repl":[">= 14.18 && < 15",">= 16"],"smalloc":">= 0.11.5 && < 3","_stream_duplex":">= 0.9.4","node:_stream_duplex":[">= 14.18 && < 15",">= 16"],"_stream_transform":">= 0.9.4","node:_stream_transform":[">= 14.18 && < 15",">= 16"],"_stream_wrap":">= 1.4.1","node:_stream_wrap":[">= 14.18 && < 15",">= 16"],"_stream_passthrough":">= 0.9.4","node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],"_stream_readable":">= 0.9.4","node:_stream_readable":[">= 14.18 && < 15",">= 16"],"_stream_writable":">= 0.9.4","node:_stream_writable":[">= 14.18 && < 15",">= 16"],"stream":true,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5","string_decoder":true,"node:string_decoder":[">= 14.18 && < 15",">= 16"],"sys":[">= 0.6 && < 0.7",">= 0.8"],"node:sys":[">= 14.18 && < 15",">= 16"],"timers":true,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16","_tls_common":">= 0.11.13","node:_tls_common":[">= 14.18 && < 15",">= 16"],"_tls_legacy":">= 0.11.3 && < 10","_tls_wrap":">= 0.11.3","node:_tls_wrap":[">= 14.18 && < 15",">= 16"],"tls":true,"node:tls":[">= 14.18 && < 15",">= 16"],"trace_events":">= 10","node:trace_events":[">= 14.18 && < 15",">= 16"],"tty":true,"node:tty":[">= 14.18 && < 15",">= 16"],"url":true,"node:url":[">= 14.18 && < 15",">= 16"],"util":true,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8":">= 1","node:v8":[">= 14.18 && < 15",">= 16"],"vm":true,"node:vm":[">= 14.18 && < 15",">= 16"],"wasi":">= 13.4 && < 13.5","worker_threads":">= 11.7","node:worker_threads":[">= 14.18 && < 15",">= 16"],"zlib":true,"node:zlib":[">= 14.18 && < 15",">= 16"]}')},54501:s=>{"use strict";s.exports={i8:"8.3.9"}},52538:s=>{"use strict";s.exports=JSON.parse('{"assert":true,"assert/strict":">= 15","async_hooks":">= 8","buffer_ieee754":"< 0.9.7","buffer":true,"child_process":true,"cluster":true,"console":true,"constants":true,"crypto":true,"_debug_agent":">= 1 && < 8","_debugger":"< 8","dgram":true,"diagnostics_channel":">= 15.1","dns":true,"dns/promises":">= 15","domain":">= 0.7.12","events":true,"freelist":"< 6","fs":true,"fs/promises":[">= 10 && < 10.1",">= 14"],"_http_agent":">= 0.11.1","_http_client":">= 0.11.1","_http_common":">= 0.11.1","_http_incoming":">= 0.11.1","_http_outgoing":">= 0.11.1","_http_server":">= 0.11.1","http":true,"http2":">= 8.8","https":true,"inspector":">= 8.0.0","_linklist":"< 8","module":true,"net":true,"node-inspect/lib/_inspect":">= 7.6.0 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6.0 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6.0 && < 12","os":true,"path":true,"path/posix":">= 15.3","path/win32":">= 15.3","perf_hooks":">= 8.5","process":">= 1","punycode":true,"querystring":true,"readline":true,"repl":true,"smalloc":">= 0.11.5 && < 3","_stream_duplex":">= 0.9.4","_stream_transform":">= 0.9.4","_stream_wrap":">= 1.4.1","_stream_passthrough":">= 0.9.4","_stream_readable":">= 0.9.4","_stream_writable":">= 0.9.4","stream":true,"stream/promises":">= 15","string_decoder":true,"sys":[">= 0.6 && < 0.7",">= 0.8"],"timers":true,"timers/promises":">= 15","_tls_common":">= 0.11.13","_tls_legacy":">= 0.11.3 && < 10","_tls_wrap":">= 0.11.3","tls":true,"trace_events":">= 10","tty":true,"url":true,"util":true,"util/types":">= 15.3","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/consarray":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/csvparser":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/logreader":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/profile_view":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/splaytree":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8":">= 1","vm":true,"wasi":">= 13.4 && < 13.5","worker_threads":">= 11.7","zlib":true}')},43581:s=>{"use strict";s.exports=JSON.parse('{"name":"tailwindcss","version":"3.0.11","description":"A utility-first CSS framework for rapidly building custom user interfaces.","license":"MIT","main":"lib/index.js","style":"dist/tailwind.css","repository":"https://github.com/tailwindlabs/tailwindcss.git","bugs":"https://github.com/tailwindlabs/tailwindcss/issues","homepage":"https://tailwindcss.com","bin":{"tailwind":"lib/cli.js","tailwindcss":"lib/cli.js"},"contributors":["Adam Wathan <adam.wathan@gmail.com>","Jonathan Reinink <jonathan@reinink.ca>","David Hemphill <davidlee.hemphill@gmail.com>"],"scripts":{"preswcify":"npm run generate:plugin-list && rimraf lib","swcify":"swc src --out-dir lib --copy-files","postswcify":"esbuild lib/cli-peer-dependencies.js --bundle --platform=node --outfile=peers/index.js","rebuild-fixtures":"npm run swcify && node -r @swc/register scripts/rebuildFixtures.js","prepublishOnly":"npm install --force && npm run swcify","style":"eslint .","pretest":"npm run generate:plugin-list","test":"jest","test:integrations":"npm run test --prefix ./integrations","install:integrations":"node scripts/install-integrations.js","posttest":"npm run style","generate:plugin-list":"node -r @swc/register scripts/create-plugin-list.js"},"files":["src/*","cli/*","lib/*","peers/*","scripts/*.js","stubs/*.stub.js","nesting/*","*.css","*.js"],"devDependencies":{"@swc/cli":"^0.1.55","@swc/core":"^1.2.118","@swc/jest":"^0.2.15","@swc/register":"^0.1.7","autoprefixer":"^10.4.0","cross-env":"^7.0.3","cssnano":"^5.0.14","esbuild":"^0.14.2","eslint":"^8.4.1","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^4.0.0","jest":"^27.4.5","jest-diff":"^27.4.2","postcss":"^8.4.5","postcss-cli":"^8.3.1","prettier":"^2.5.1","rimraf":"^3.0.0"},"peerDependencies":{"autoprefixer":"^10.0.2","postcss":"^8.0.9"},"dependencies":{"arg":"^5.0.1","chalk":"^4.1.2","chokidar":"^3.5.2","color-name":"^1.1.4","cosmiconfig":"^7.0.1","detective":"^5.2.0","didyoumean":"^1.2.2","dlv":"^1.1.3","fast-glob":"^3.2.7","glob-parent":"^6.0.2","is-glob":"^4.0.3","normalize-path":"^3.0.0","object-hash":"^2.2.0","postcss-js":"^4.0.0","postcss-load-config":"^3.1.0","postcss-nested":"5.0.6","postcss-selector-parser":"^6.0.7","postcss-value-parser":"^4.2.0","quick-lru":"^5.1.1","resolve":"^1.20.0"},"browserslist":["> 1%","not edge <= 18","not ie 11","not op_mini all"],"jest":{"testTimeout":30000,"setupFilesAfterEnv":["<rootDir>/jest/customMatchers.js"],"testPathIgnorePatterns":["/node_modules/","/integrations/","/standalone-cli/"],"transform":{"\\\\.js$":"@swc/jest"}},"engines":{"node":">=12.13.0"}}')},42357:s=>{"use strict";s.exports=require("assert")},63129:s=>{"use strict";s.exports=require("child_process")},27619:s=>{"use strict";s.exports=require("constants")},76417:s=>{"use strict";s.exports=require("crypto")},28614:s=>{"use strict";s.exports=require("events")},35747:s=>{"use strict";s.exports=require("fs")},32282:s=>{"use strict";s.exports=require("module")},11631:s=>{"use strict";s.exports=require("net")},12087:s=>{"use strict";s.exports=require("os")},85622:s=>{"use strict";s.exports=require("path")},61765:s=>{"use strict";s.exports=require("process")},92413:s=>{"use strict";s.exports=require("stream")},33867:s=>{"use strict";s.exports=require("tty")},78835:s=>{"use strict";s.exports=require("url")},31669:s=>{"use strict";s.exports=require("util")}};var __webpack_module_cache__={};function __nccwpck_require__(s){var l=__webpack_module_cache__[s];if(l!==undefined){return l.exports}var u=__webpack_module_cache__[s]={id:s,loaded:false,exports:{}};var f=true;try{__webpack_modules__[s].call(u.exports,u,u.exports,__nccwpck_require__);f=false}finally{if(f)delete __webpack_module_cache__[s]}u.loaded=true;return u.exports}(()=>{__nccwpck_require__.n=s=>{var l=s&&s.__esModule?()=>s["default"]:()=>s;__nccwpck_require__.d(l,{a:l});return l}})();(()=>{__nccwpck_require__.d=(s,l)=>{for(var u in l){if(__nccwpck_require__.o(l,u)&&!__nccwpck_require__.o(s,u)){Object.defineProperty(s,u,{enumerable:true,get:l[u]})}}}})();(()=>{__nccwpck_require__.o=(s,l)=>Object.prototype.hasOwnProperty.call(s,l)})();(()=>{__nccwpck_require__.r=s=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(s,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(s,"__esModule",{value:true})}})();(()=>{__nccwpck_require__.nmd=s=>{s.paths=[];if(!s.children)s.children=[];return s}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var __webpack_exports__={};(()=>{"use strict";__nccwpck_require__.r(__webpack_exports__);var s=__nccwpck_require__(32282);var l=__nccwpck_require__.n(s);var u=__nccwpck_require__(85622);var f=__nccwpck_require__.n(u);var h=__nccwpck_require__(35747);var g=__nccwpck_require__.n(h);var v=__nccwpck_require__(30662);function createResolver(s={}){return v.ResolverFactory.createResolver(Object.assign({fileSystem:new v.CachedInputFileSystem(h,4e3),useSyncFileSystemCalls:true,conditionNames:["node","require"]},s))}let k=createResolver();function setPnpApi(s){k=createResolver({pnpApi:s})}function resolveFrom(s,l){if(l.startsWith("\\\\"))return l;let u=k.resolveSync({},s,l);if(u===false)throw Error();return u.replace(/\0#/g,"#")}var O=__nccwpck_require__(43675);var M=__nccwpck_require__.n(O);process.env.TAILWIND_MODE="build";process.env.TAILWIND_DISABLE_TOUCH="true";let q=l()._resolveFilename;l()._resolveFilename=(s,l)=>{if(M().includes(s)){return q(s,l)}return resolveFrom(u.dirname(l.id),s)};var B=__nccwpck_require__(47160);var Y=__nccwpck_require__(97960);var te=__nccwpck_require__(34820);function error_toString(s,l=true){if(s instanceof Error){let u=s;return`${u.message}${l?`\n${u.stack}`:""}`}else if(typeof s==="string"){return s}else{return s.toString()}}function formatError(s,l,u=true){if(l){return`${s}: ${error_toString(l,u)}`}return s}function showError(s,l,u="Tailwind CSS"){console.error(formatError(u,l));if(!(l instanceof SilentError)){s.sendNotification("@/tailwindCSS/error",{message:formatError(u,l,false)})}}function SilentError(s){this.name="SilentError";this.message=s;this.stack=(new Error).stack}SilentError.prototype=new Error;var re=__nccwpck_require__(3909);var ne=__nccwpck_require__.n(re);var ie=__nccwpck_require__(34458);var se=__nccwpck_require__.n(ie);var oe=__nccwpck_require__(12087);var ae=__nccwpck_require__(14823);var le=__nccwpck_require__.n(ae);var ue=__nccwpck_require__(99566);var ce=__nccwpck_require__.n(ue);const fe={"@tailwindcss/aspect-ratio":{module:__nccwpck_require__(59779),version:__nccwpck_require__(7606).i8},"@tailwindcss/forms":{module:__nccwpck_require__(64179),version:__nccwpck_require__(93895).i8},"@tailwindcss/line-clamp":{module:__nccwpck_require__(31996),version:__nccwpck_require__(14756).i8},"@tailwindcss/typography":{module:__nccwpck_require__(9693),version:__nccwpck_require__(17833).i8}};let pe=Object.assign(Object.assign({},fe),{"tailwindcss/colors":__nccwpck_require__(78421),"tailwindcss/defaultConfig":__nccwpck_require__(82829),"tailwindcss/defaultTheme":__nccwpck_require__(71343),"tailwindcss/resolveConfig":__nccwpck_require__(86410),"tailwindcss/plugin":__nccwpck_require__(6168)});class Hook{constructor(s,u){this.cache={};this.deps=[];this._unhooked=false;this._origRequire=l().prototype.require;if(typeof l()._resolveFilename!=="function"){throw new Error(`Error: Expected Module._resolveFilename to be a function (was: ${typeof l()._resolveFilename}) - aborting!`)}let f=this;let h={};this._require=l().prototype.require=function(g){if(f._unhooked){return f._origRequire.apply(this,arguments)}let v;if(pe.hasOwnProperty(g)){try{v=l()._resolveFilename(g,this)}catch(s){return pe[g].module||pe[g]}}else{v=l()._resolveFilename(g,this)}if(f.cache.hasOwnProperty(v)){return f.cache[v]}let k=h[v];if(!k){h[v]=true}let O=f._origRequire.apply(this,arguments);if(v!==s){return O}if(k)return O;delete h[v];if(!f.cache.hasOwnProperty(v)){f.cache[v]=O;f.cache[v]=u(O)}return f.cache[v]}}unhook(){this._unhooked=true;if(this._require===l().prototype.require){l().prototype.require=this._origRequire}}}var de=__nccwpck_require__(77546);var he=__nccwpck_require__.n(de);var ge=__nccwpck_require__(7639);var ve=__nccwpck_require__.n(ge);var ye=__nccwpck_require__(17007);var we=__nccwpck_require__.n(ye);var _e=__nccwpck_require__(27135);var Se=__nccwpck_require__.n(_e);var ke=__nccwpck_require__(67921);var Ce=__nccwpck_require__(75266);var Ee=__nccwpck_require__.n(Ce);var Re=undefined&&undefined.__awaiter||function(s,l,u,f){function adopt(s){return s instanceof u?s:new u((function(l){l(s)}))}return new(u||(u=Promise))((function(u,h){function fulfilled(s){try{step(f.next(s))}catch(s){h(s)}}function rejected(s){try{step(f["throw"](s))}catch(s){h(s)}}function step(s){s.done?u(s.value):adopt(s.value).then(fulfilled,rejected)}step((f=f.apply(s,l||[])).next())}))};function isAtRule(s){return s.type==="atrule"}function createSelectorFromNodes(s){if(s.length===0)return null;const l=Ee().selector({value:""});for(let u=0;u<s.length;u++){l.append(s[u])}return String(l).trim()}function getClassNamesFromSelector(s){const l=[];const{nodes:u}=Ee()().astSync(s);for(let s=0;s<u.length;s++){let f=u[s];if(f.type!=="selector")continue;let h=[];for(let s=0;s<f.nodes.length;s++){let u=f.nodes[s];let g=[];if(u.type==="class"){let v=f.nodes[s+1];while(v&&v.type==="pseudo"){g.push(v);s++;v=f.nodes[s+1]}l.push({className:u.value.trim(),scope:createSelectorFromNodes(h),__rule:s===f.nodes.length-1,__pseudo:g.map(String)})}h.push(u,...g)}}return l}function extractClassNames_process(s){return Re(this,void 0,void 0,(function*(){const l={};const u={};let f;s.walk((s=>{if(s.type==="comment"){let l=s.text.trim().match(/^__tw_intellisense_layer_([a-z]+)__$/);if(l===null)return;f=l[1];s.remove();return}if(s.type!=="rule")return;const h=s;const g=getClassNamesFromSelector(h.selector);const v={};h.walkDecls((s=>{if(v[s.prop]){v[s.prop]=[...Array.isArray(v[s.prop])?v[s.prop]:[v[s.prop]],s.value]}else{v[s.prop]=s.value}}));let k=h;const O=[];while(k.parent.type!=="root"){k=k.parent;if(isAtRule(k)){O.push(`@${k.name} ${k.params}`)}}for(let s=0;s<g.length;s++){const h=O.concat([]);const k=g[s].className.split(/__TWSEP__.*?__TWSEP__/);const M=k.slice(0,k.length-1);const q=[];const B=ve()(l,[...k,"__info"]);if(typeof B!=="undefined"){if(Array.isArray(B)){q.push(B.length)}else{we()(l,[...k,"__info"],[B]);q.push(1)}}if(g[s].__rule){we()(l,[...k,"__info",...q,"__rule"],true);dsetEach(l,[...k,"__info",...q],v)}we()(l,[...k,"__info",...q,"__source"],f);we()(l,[...k,"__info",...q,"__pseudo"],g[s].__pseudo);we()(l,[...k,"__info",...q,"__scope"],g[s].scope);we()(l,[...k,"__info",...q,"__context"],h.concat([]).reverse());h.push(...g[s].__pseudo.map((s=>`&${s}`)));for(let s=0;s<M.length;s++){if(typeof u[M[s]]==="undefined"){u[M[s]]=h}else{u[M[s]]=intersection(u[M[s]],h)}}}}));return{classNames:l,context:u}}))}function intersection(s,l){return s.filter((s=>l.indexOf(s)!==-1))}function dsetEach(s,l,u){const f=Object.keys(u);for(let h=0;h<f.length;h++){we()(s,[...l,f[h]],u[f[h]])}}const Oe=extractClassNames_process;function set(s,l,u){if(typeof u.value==="object")u.value=klona(u.value);if(!u.enumerable||u.get||u.set||!u.configurable||!u.writable||l==="__proto__"){Object.defineProperty(s,l,u)}else s[l]=u.value}function klona(s){if(typeof s!=="object")return s;var l=0,u,f,h,g=Object.prototype.toString.call(s);if(g==="[object Object]"){h=Object.create(s.__proto__||null)}else if(g==="[object Array]"){h=Array(s.length)}else if(g==="[object Set]"){h=new Set;s.forEach((function(s){h.add(klona(s))}))}else if(g==="[object Map]"){h=new Map;s.forEach((function(s,l){h.set(klona(l),klona(s))}))}else if(g==="[object Date]"){h=new Date(+s)}else if(g==="[object RegExp]"){h=new RegExp(s.source,s.flags)}else if(g==="[object DataView]"){h=new s.constructor(klona(s.buffer))}else if(g==="[object ArrayBuffer]"){h=s.slice(0)}else if(g.slice(-6)==="Array]"){h=new s.constructor(s)}if(h){for(f=Object.getOwnPropertySymbols(s);l<f.length;l++){set(h,f[l],Object.getOwnPropertyDescriptor(s,f[l]))}for(l=0,f=Object.getOwnPropertyNames(s);l<f.length;l++){if(Object.hasOwnProperty.call(h,u=f[l])&&h[u]===s[u])continue;set(h,u,Object.getOwnPropertyDescriptor(s,u))}}return h||s}function isObject(s){return Object.prototype.toString.call(s)==="[object Object]"}function removeMeta(s){let l={};for(let u in s){if(u.substr(0,2)==="__")continue;if(isObject(s[u])){l[u]=removeMeta(s[u])}else{l[u]=s[u]}}return l}var De=__nccwpck_require__(73730);var Ie=__nccwpck_require__.n(De);function dedupe(s){return s.filter(((s,l,u)=>u.indexOf(s)===l))}function dedupeBy(s,l){return s.filter(((s,u,f)=>f.map(l).indexOf(l(s))===u))}function ensureArray(s){return Array.isArray(s)?s:[s]}function array_flatten(s){return[].concat.apply([],s)}function equal(s,l){if(s===l)return true;if(s.length!==l.length)return false;let u=s.concat().sort();let f=l.concat().sort();for(let s=0;s<u.length;++s){if(u[s]!==f[s])return false}return true}function equalExact(s,l){if(s===l)return true;if(s.length!==l.length)return false;for(let u=0;u<s.length;++u){if(s[u]!==l[u])return false}return true}function remToPx(s,l=16){if(/^-?[0-9.]+rem$/.test(s)){let u=parseFloat(s.substr(0,s.length-3));if(!isNaN(u)){return`${u*l}px`}}return undefined}var Me=__nccwpck_require__(3392);var Ne=__nccwpck_require__.n(Me);const Le=__nccwpck_require__(7639);function stringifyConfigValue(s){if(isObject(s))return`${Object.keys(s).length} values`;if(typeof s==="function")return"ƒ";return Ne()(s,{inlineCharacterLimit:Infinity,singleQuotes:false,transform:(s,l,u)=>{if(typeof s[l]==="function"){return"ƒ"}return u}})}function stringifyCss(s,l,{tabSize:u=2,showPixelEquivalents:f=false,rootFontSize:h=16}={}){if(l.__rule!==true&&!Array.isArray(l))return null;if(Array.isArray(l)){const g=l.map((l=>stringifyCss(s,l,{tabSize:u,showPixelEquivalents:f,rootFontSize:h}))).filter(Boolean);if(g.length===0)return null;return g.join("\n\n")}let g=``;const v=" ".repeat(u);const k=Le(l,"__context",[]);const O=Object.keys(removeMeta(l));if(O.length===0)return null;for(let s=0;s<k.length;s++){g+=`${v.repeat(s)}${k[s]} {\n`}const M=v.repeat(k.length);const q=O.reduce(((s,u,g)=>{const k=ensureArray(l[u]).map((s=>{const l=f?remToPx(s,h):undefined;return`${M+v}${u}: ${s}${l?`/* ${l} */`:""};`})).join("\n");return`${s}${g===0?"":"\n"}${k}`}),"");g+=`${M}${augmentClassName(s,l)} {\n${q}\n${M}}`;for(let s=k.length-1;s>=0;s--){g+=`${v.repeat(s)}\n}`}return g}function augmentClassName(s,l){const u=l.__pseudo.join("");const f=l.__scope?`${l.__scope} `:"";return`${f}.${Ie()(s)}${u}`}const je=["aspnetcorerazor","astro","astro-markdown","blade","django-html","edge","ejs","erb","gohtml","GoHTML","haml","handlebars","hbs","html","HTML (Eex)","HTML (EEx)","html-eex","jade","leaf","liquid","markdown","mdx","mustache","njk","nunjucks","phoenix-heex","php","razor","slim","twig"];const Fe=["css","less","postcss","sass","scss","stylus","sugarss"];const qe=["javascript","javascriptreact","reason","rescript","typescript","typescriptreact"];const $e=["vue","svelte"];const We=[...Fe,...je,...qe,...$e];function isHtmlDoc(s,l){const u=Object.keys(s.editor.userLanguages).filter((l=>je.includes(s.editor.userLanguages[l])));return[...je,...u].indexOf(l.languageId)!==-1}function isVueDoc(s){return s.languageId==="vue"}function isSvelteDoc(s){return s.languageId==="svelte"}function isHtmlContext(s,l,u){let f=l.getText({start:{line:0,character:0},end:u});if(isHtmlDoc(s,l)&&!isInsideTag(f,["script","style"])){return true}if(isVueDoc(l)){return isInsideTag(f,["template"])}if(isSvelteDoc(l)){return!isInsideTag(f,["script","style"])}return false}function isInsideTag(s,l){let u=0;let f=0;let h;let g=Array.isArray(l)?l:[l];let v=new RegExp(`<(?<slash>/?)(?:${g.join("|")})(?:\\s[^>]*[^/]>|\\s*>)`,"ig");while((h=v.exec(s))!==null){if(h.groups.slash){f+=1}else{u+=1}}return u>0&&u>f}function isJsDoc(s,l){const u=Object.keys(s.editor.userLanguages).filter((l=>qe.includes(s.editor.userLanguages[l])));return[...qe,...u].indexOf(l.languageId)!==-1}function isJsContext(s,l,u){if(isJsDoc(s,l)){return true}let f=l.getText({start:{line:0,character:0},end:u});if(isHtmlDoc(s,l)&&isInsideTag(f,["script"])){return true}if(isVueDoc(l)||isSvelteDoc(l)){return isInsideTag(f,["script"])}return false}function isCssDoc(s,l){const u=Object.keys(s.editor.userLanguages).filter((l=>Fe.includes(s.editor.userLanguages[l])));return[...Fe,...u].indexOf(l.languageId)!==-1}function isCssContext(s,l,u){if(isCssDoc(s,l)){return true}if(isHtmlDoc(s,l)||isVueDoc(l)||isSvelteDoc(l)||isJsDoc(s,l)){let s=l.getText({start:{line:0,character:0},end:u});return isInsideTag(s,["style"])}return false}var ze=__nccwpck_require__(80674);var Ve=__nccwpck_require__.n(ze);function isWithinRange(s,l){if(s.line===l.start.line&&s.character>=l.start.character){if(s.line===l.end.line&&s.character>l.end.character){return false}else{return true}}if(s.line===l.end.line&&s.character<=l.end.character){if(s.line===l.start.line&&s.character<l.end.character){return false}else{return true}}if(s.line>l.start.line&&s.line<l.end.line){return true}return false}var Ge=__nccwpck_require__(36441);var Ye=__nccwpck_require__.n(Ge);const lazy=s=>{let l=false;let u=null;const res=function(){if(l)return u;u=s.apply(this,arguments);l=true;return u};res.isLazy=true;return res};const classAttributeStates=()=>({doubleClassList:{lbrace:{match:new RegExp("(?<!\\\\)\\{"),push:"interpBrace"},rbrace:{match:new RegExp("(?<!\\\\)\\}"),pop:1},end:{match:new RegExp('(?<!\\\\)"'),pop:1},classlist:{match:new RegExp("[\\s\\S]"),lineBreaks:true}},singleClassList:{lbrace:{match:new RegExp("(?<!\\\\)\\{"),push:"interpBrace"},rbrace:{match:new RegExp("(?<!\\\\)\\}"),pop:1},end:{match:new RegExp("(?<!\\\\)'"),pop:1},classlist:{match:new RegExp("[\\s\\S]"),lineBreaks:true}},tickClassList:{lbrace:{match:new RegExp("(?<=(?<!\\\\)\\$)\\{"),push:"interpBrace"},rbrace:{match:new RegExp("(?<!\\\\)\\}"),pop:1},end:{match:new RegExp("(?<!\\\\)`"),pop:1},classlist:{match:new RegExp("[\\s\\S]"),lineBreaks:true}},interpBrace:{startSingle:{match:new RegExp("(?<!\\\\)'"),push:"singleClassList"},startDouble:{match:new RegExp('(?<!\\\\)"'),push:"doubleClassList"},startTick:{match:new RegExp("(?<!\\\\)`"),push:"tickClassList"},lbrace:{match:new RegExp("(?<!\\\\)\\{"),push:"interpBrace"},rbrace:{match:new RegExp("(?<!\\\\)\\}"),pop:1},text:{match:new RegExp("[\\s\\S]"),lineBreaks:true}},interpSingle:{startDouble:{match:new RegExp('(?<!\\\\)"'),push:"doubleClassList"},startTick:{match:new RegExp("(?<!\\\\)`"),push:"tickClassList"},single:{match:new RegExp("(?<!\\\\)'"),pop:1},text:{match:new RegExp("[\\s\\S]"),lineBreaks:true}},interpDouble:{startSingle:{match:new RegExp("(?<!\\\\)'"),push:"singleClassList"},startTick:{match:new RegExp("(?<!\\\\)`"),push:"tickClassList"},double:{match:new RegExp('(?<!\\\\)"'),pop:1},text:{match:new RegExp("[\\s\\S]"),lineBreaks:true}}});const Ke={main:{start:{match:'"',push:"doubleClassList"}},doubleClassList:{end:{match:'"',pop:1},classlist:{match:/[\s\S]/,lineBreaks:true}}};const Qe=lazy((()=>{let s=true;try{new RegExp("(?<!)")}catch(l){s=false}if(s){return Ye().states(Object.assign({main:{start1:{match:'"',push:"doubleClassList"},start2:{match:"'",push:"singleClassList"},start3:{match:"{",push:"interpBrace"}}},classAttributeStates()))}return Ye().states(Ke)}));const Je=lazy((()=>{let s=true;try{new RegExp("(?<!)")}catch(l){s=false}if(s){return Ye().states(Object.assign({main:{lbrace:{match:"{",push:"interpBrace"},single:{match:"'",push:"interpSingle"},double:{match:'"',push:"interpDouble"}}},classAttributeStates()))}return Ye().states(Ke)}));function getLanguageBoundaries(s,l){if(isVueDoc(l)){let s=l.getText();let u=findAll(/(?<open><(?<type>template|style|script)\b[^>]*>).*?(?<close><\/\k<type>>|$)/gis,s);let f=[];let h=[];for(let l=0;l<u.length;l++){let g={start:indexToPosition(s,u[l].index+u[l].groups.open.length),end:indexToPosition(s,u[l].index+u[l][0].length-u[l].groups.close.length)};if(u[l].groups.type==="style"){h.push(g)}else{f.push(g)}}return{html:f,css:h}}if(isHtmlDoc(s,l)||isJsDoc(s,l)||isSvelteDoc(l)){let s=l.getText();let u=findAll(/(?<open><style(?:\s[^>]*[^\/]>|\s*>)).*?(?<close><\/style>|$)/gis,s);let f=[];let h=[];let g=0;for(let l=0;l<u.length;l++){f.push({start:indexToPosition(s,g),end:indexToPosition(s,u[l].index)});h.push({start:indexToPosition(s,u[l].index+u[l].groups.open.length),end:indexToPosition(s,u[l].index+u[l][0].length-u[l].groups.close.length)});g=u[l].index+u[l][0].length}f.push({start:indexToPosition(s,g),end:indexToPosition(s,s.length)});return{html:f,css:h}}return null}function resolveRange(s,l){return{start:{line:((l===null||l===void 0?void 0:l.start.line)||0)+s.start.line,character:(s.end.line===0?(l===null||l===void 0?void 0:l.start.character)||0:0)+s.start.character},end:{line:((l===null||l===void 0?void 0:l.start.line)||0)+s.end.line,character:(s.end.line===0?(l===null||l===void 0?void 0:l.start.character)||0:0)+s.end.character}}}var Xe=__nccwpck_require__(24237);function createMultiRegexp(s){let l=false;let u=-1;for(let f=0;f<s.length;f++){if(!l&&s[f]==="["&&s[f-1]!=="\\"){l=true}else if(l&&s[f]==="]"&&s[f-1]!=="\\"){l=false}else if(!l&&s[f]==="("&&s.substr(f+1,2)!=="?:"){u=f;break}}const f=/(?:[^\\]|^)\(\?:/g;let h;let g=[];while((h=f.exec(s))!==null){if(h[0].startsWith("(")){g.push(h.index)}else{g.push(h.index+1)}}const v=new Xe.Z(new RegExp(s.replace(f,(s=>s.substr(0,s.length-2))),"g"));let k=1+g.filter((s=>s<u)).length;return{exec:s=>v.execForGroup(s,k)}}var et=undefined&&undefined.__awaiter||function(s,l,u,f){function adopt(s){return s instanceof u?s:new u((function(l){l(s)}))}return new(u||(u=Promise))((function(u,h){function fulfilled(s){try{step(f.next(s))}catch(s){h(s)}}function rejected(s){try{step(f["throw"](s))}catch(s){h(s)}}function step(s){s.done?u(s.value):adopt(s.value).then(fulfilled,rejected)}step((f=f.apply(s,l||[])).next())}))};const tt=__nccwpck_require__(7639);function findAll(s,l){let u;let f=[];while((u=s.exec(l))!==null){f.push(Object.assign({},u))}return f}function findLast(s,l){const u=findAll(s,l);if(u.length===0){return null}return u[u.length-1]}function getClassNamesInClassList({classList:s,range:l,important:u}){const f=s.split(/(\s+)/);const h=[];let g=0;for(let v=0;v<f.length;v++){if(v%2===0){const k=indexToPosition(s,g);const O=indexToPosition(s,g+f[v].length);h.push({className:f[v],classList:{classList:s,range:l,important:u},relativeRange:{start:k,end:O},range:{start:{line:l.start.line+k.line,character:(O.line===0?l.start.character:0)+k.character},end:{line:l.start.line+O.line,character:(O.line===0?l.start.character:0)+O.character}}})}g+=f[v].length}return h}function findClassNamesInRange(s,l,u,f,h=true){return et(this,void 0,void 0,(function*(){const g=yield findClassListsInRange(s,l,u,f,h);return array_flatten(g.map(getClassNamesInClassList))}))}function findClassNamesInDocument(s,l){return et(this,void 0,void 0,(function*(){const u=yield findClassListsInDocument(s,l);return flatten(u.map(getClassNamesInClassList))}))}function findClassListsInCssRange(s,l){const u=s.getText(l);const f=findAll(/(@apply\s+)(?<classList>[^;}]+?)(?<important>\s*!important)?\s*[;}]/g,u);const h=l?l.start:{line:0,character:0};return f.map((s=>{const l=indexToPosition(u,s.index+s[1].length);const f=indexToPosition(u,s.index+s[1].length+s.groups.classList.length);return{classList:s.groups.classList,important:Boolean(s.groups.important),range:{start:{line:h.line+l.line,character:(f.line===0?h.character:0)+l.character},end:{line:h.line+f.line,character:(f.line===0?h.character:0)+f.character}}}}))}function findCustomClassLists(s,l,u){return et(this,void 0,void 0,(function*(){const f=yield s.editor.getConfiguration(l.uri);const h=tt(f,"tailwindCSS.experimental.classRegex",[]);if(!Array.isArray(h)||h.length===0)return[];const g=l.getText(u);const v=[];for(let s=0;s<h.length;s++){try{let[f,k]=Array.isArray(h[s])?h[s]:[h[s]];f=createMultiRegexp(f);let O;while((O=f.exec(g))!==null){const s=l.offsetAt((u===null||u===void 0?void 0:u.start)||{line:0,character:0});const f=s+O.start;const h=s+O.end;if(k){k=createMultiRegexp(k);let s;while((s=k.exec(O.match))!==null){const u=f+s.start;const h=f+s.end;v.push({classList:s.match,range:{start:l.positionAt(u),end:l.positionAt(h)}})}}else{v.push({classList:O.match,range:{start:l.positionAt(f),end:l.positionAt(h)}})}}}catch(s){}}return v}))}function matchClassAttributes(s,l){const u=l.filter((s=>typeof s==="string")).flatMap((s=>[s,`\\[${s}\\]`]));const f=/(?:\s|:|\()(ATTRS)\s*=\s*['"`{]/;return findAll(new RegExp(f.source.replace("ATTRS",u.join("|")),"gi"),s)}function findClassListsInHtmlRange(s,l,u){return et(this,void 0,void 0,(function*(){const f=l.getText(u);const h=matchClassAttributes(f,(yield s.editor.getConfiguration(l.uri)).tailwindCSS.classAttributes);const g=[];h.forEach((s=>{const l=f.substr(s.index+s[0].length-1);let h=s[0][0]===":"||s[1].startsWith("[")&&s[1].endsWith("]")?Je():Qe();h.reset(l);let v=[];let k;let O;try{for(let s of h){if(s.type==="classlist"){if(O){O.value+=s.value}else{O={value:s.value,offset:s.offset}}}else{if(O){v.push({value:O.value,offset:O.offset})}O=undefined}}}catch(s){}if(O){v.push({value:O.value,offset:O.offset})}g.push(...v.map((({value:l,offset:h})=>{if(l.trim()===""){return null}const g=l.match(/^\s*/);const v=g===null?0:g[0].length;const k=l.match(/\s*$/);const O=k===null?0:-k[0].length;const M=indexToPosition(f,s.index+s[0].length-1+h+v);const q=indexToPosition(f,s.index+s[0].length-1+h+l.length+O);return{classList:l.substr(v,l.length+O),range:{start:{line:((u===null||u===void 0?void 0:u.start.line)||0)+M.line,character:(q.line===0?(u===null||u===void 0?void 0:u.start.character)||0:0)+M.character},end:{line:((u===null||u===void 0?void 0:u.start.line)||0)+q.line,character:(q.line===0?(u===null||u===void 0?void 0:u.start.character)||0:0)+q.character}}}})).filter((s=>s!==null)))}));return g}))}function findClassListsInRange(s,l,u,f,h=true){return et(this,void 0,void 0,(function*(){let g;if(f==="css"){g=findClassListsInCssRange(l,u)}else{g=yield findClassListsInHtmlRange(s,l,u)}return[...g,...h?yield findCustomClassLists(s,l,u):[]]}))}function findClassListsInDocument(s,l){return et(this,void 0,void 0,(function*(){if(isCssDoc(s,l)){return findClassListsInCssRange(l)}let u=getLanguageBoundaries(s,l);if(!u)return[];return array_flatten([...yield Promise.all(u.html.map((u=>findClassListsInHtmlRange(s,l,u)))),...u.css.map((s=>findClassListsInCssRange(l,s))),yield findCustomClassLists(s,l)])}))}function findHelperFunctionsInDocument(s,l){if(isCssDoc(s,l)){return findHelperFunctionsInRange(l)}let u=getLanguageBoundaries(s,l);if(!u)return[];return array_flatten(u.css.map((s=>findHelperFunctionsInRange(l,s))))}function findHelperFunctionsInRange(s,l){const u=s.getText(l);const f=findAll(/(?<before>^|\s)(?<helper>theme|config)\((?:(?<single>')([^']+)'|(?<double>")([^"]+)")\)/gm,u);return f.map((s=>{let f=s[4]||s[6];let h=s.index+s.groups.before.length;return{full:s[0].substr(s.groups.before.length),value:f,helper:s.groups.helper==="theme"?"theme":"config",quotes:s.groups.single?"'":'"',range:resolveRange({start:indexToPosition(u,h),end:indexToPosition(u,s.index+s[0].length)},l),valueRange:resolveRange({start:indexToPosition(u,h+s.groups.helper.length+1),end:indexToPosition(u,h+s.groups.helper.length+1+1+f.length+1)},l)}}))}function indexToPosition(s,l){const{line:u,col:f}=Ve()(s+"\n",l);return{line:u-1,character:f-1}}function findClassNameAtPosition(s,l,u){return et(this,void 0,void 0,(function*(){let f=[];const h=l.offsetAt(u);const g={start:l.positionAt(Math.max(0,h-1e3)),end:l.positionAt(h+1e3)};if(isCssContext(s,l,u)){f=yield findClassNamesInRange(s,l,g,"css")}else if(isHtmlContext(s,l,u)||isJsContext(s,l,u)){f=yield findClassNamesInRange(s,l,g,"html")}if(f.length===0){return null}const v=f.find((({range:s})=>isWithinRange(u,s)));if(!v)return null;return v}))}function combinations(s){let fn=function(s,l,u){if(!s&&!l)return undefined;if(!l){u.push(s)}else{fn(s+l[0],l.slice(1),u);fn(s,l.slice(1),u)}return u};return fn("",s,[])}const it=__nccwpck_require__(7639);function getClassNameParts(s,l){let u=s.separator;l=l.replace(/^\./,"");let f=l.split(u);if(f.length===1){return it(s.classNames.classNames,[l,"__info","__rule"])===true||Array.isArray(it(s.classNames.classNames,[l,"__info"]))?[l]:null}let h=combinations("123456789".substr(0,f.length-1)).map((s=>s.split("").map((s=>parseInt(s,10)))));let g=[[l],...h.map((s=>{let l=[];let u=0;s.forEach((s=>{l.push(f.slice(u,s).join("-"));u=s}));l.push(f.slice(u).join("-"));return l}))];return g.find((l=>{if(it(s.classNames.classNames,[...l,"__info","__rule"])===true||Array.isArray(it(s.classNames.classNames,[...l,"__info"]))){return true}return false}))}const st=__nccwpck_require__(7639);function getClassNameMeta(s,l){const u=Array.isArray(l)?l:getClassNameParts(s,l);if(!u)return null;const f=st(s.classNames.classNames,[...u,"__info"]);if(Array.isArray(f)){return f.map((s=>({source:s.__source,pseudo:s.__pseudo,scope:s.__scope,context:s.__context})))}return{source:f.__source,pseudo:f.__pseudo,scope:f.__scope,context:f.__context}}const ut=__nccwpck_require__(7639);function flagEnabled(s,l){if(s.featureFlags.future.includes(l)){return s.config.future==="all"||ut(s.config,["future",l],false)}if(s.featureFlags.experimental.includes(l)){return s.config.experimental==="all"||ut(s.config,["experimental",l],false)}return false}function validateApply(s,l){if(s.jit){return{isApplyable:true}}const u=getClassNameMeta(s,l);if(!u)return null;if(he().gte(s.version,"2.0.0-alpha.1")||flagEnabled(s,"applyComplexClasses")){return{isApplyable:true}}const f=Array.isArray(l)?l.join(s.separator):l;let h;if(Array.isArray(u)){h=`'@apply' cannot be used with '${f}' because it is included in multiple rulesets.`}else if(u.source!=="utilities"){h=`'@apply' cannot be used with '${f}' because it is not a utility.`}else if(u.context&&u.context.length>0){if(u.context.length===1){h=`'@apply' cannot be used with '${f}' because it is nested inside of an at-rule ('${u.context[0]}').`}else{h=`'@apply' cannot be used with '${f}' because it is nested inside of at-rules (${u.context.map((s=>`'${s}'`)).join(", ")}).`}}else if(u.pseudo&&u.pseudo.length>0){if(u.pseudo.length===1){h=`'@apply' cannot be used with '${f}' because its definition includes a pseudo-selector ('${u.pseudo[0]}')`}else{h=`'@apply' cannot be used with '${f}' because its definition includes pseudo-selectors (${u.pseudo.map((s=>`'${s}'`)).join(", ")}).`}}if(h){return{isApplyable:false,reason:h}}return{isApplyable:true}}var ct=undefined&&undefined.__awaiter||function(s,l,u,f){function adopt(s){return s instanceof u?s:new u((function(l){l(s)}))}return new(u||(u=Promise))((function(u,h){function fulfilled(s){try{step(f.next(s))}catch(s){h(s)}}function rejected(s){try{step(f["throw"](s))}catch(s){h(s)}}function step(s){s.done?u(s.value):adopt(s.value).then(fulfilled,rejected)}step((f=f.apply(s,l||[])).next())}))};function bigSign(s){return(s>0n)-(s<0n)}function generateRules(s,l){let u=s.modules.jit.generateRules.module(new Set(l),s.jitContext).sort((([s],[l])=>bigSign(s-l)));let f=s.modules.postcss.module.root({nodes:u.map((([,s])=>s))});s.modules.jit.expandApplyAtRules.module(s.jitContext)(f);let h=[];f.walkRules((s=>{h.push(s)}));return{root:f,rules:h}}function stringifyRoot(s,l,u){return ct(this,void 0,void 0,(function*(){let f=yield s.editor.getConfiguration(u);let h=ve()(f,"editor.tabSize",2);let g=ve()(f,"tailwindCSS.showPixelEquivalents",true);let v=ve()(f,"tailwindCSS.rootFontSize",16);let k=l.clone();k.walkAtRules("defaults",(s=>{s.remove()}));if(g){k.walkDecls((s=>{let l=remToPx(s.value,v);if(l){s.value=`${s.value}/* ${l} */`}}))}return k.toString().replace(/([^;{}\s])(\n\s*})/g,((s,l,u)=>`${l};${u}`)).replace(/^(?: )+/gm,(s=>" ".repeat(s.length/4*h)))}))}function stringifyRules(s,l,u=2){return l.map((s=>s.toString().replace(/([^}{;])$/gm,"$1;"))).join("\n\n").replace(/^(?: )+/gm,(s=>" ".repeat(s.length/4*u)))}function stringifyDecls(s,l,u){return ct(this,void 0,void 0,(function*(){let f=yield s.editor.getConfiguration(u);let h=ve()(f,"tailwindCSS.showPixelEquivalents",true);let g=ve()(f,"tailwindCSS.rootFontSize",16);let v=[];l.walkDecls((({prop:s,value:l})=>{let u=h?remToPx(l,g):undefined;v.push(`${s}: ${l}${u?`/* ${u} */`:""};`)}));return v.join(" ")}))}function replaceClassName(s,l,u,f){const transform=s=>{s.walkClasses((s=>{if(s.value===u){s.value=f}}))};return s.modules.postcssSelectorParser.module(transform).processSync(l)}function getRuleContext(s,l,u){let f=[replaceClassName(s,l.selector,u,"__placeholder__")];let h=l;while(h.parent&&h.parent.type!=="root"){h=h.parent;if(h.type==="atrule"){f.unshift(`@${h.name} ${h.params}`)}}return f}var ft;(function(s){s["CssConflict"]="cssConflict";s["InvalidApply"]="invalidApply";s["InvalidScreen"]="invalidScreen";s["InvalidVariant"]="invalidVariant";s["InvalidConfigPath"]="invalidConfigPath";s["InvalidTailwindDirective"]="invalidTailwindDirective";s["RecommendedVariantOrder"]="recommendedVariantOrder"})(ft||(ft={}));function isCssConflictDiagnostic(s){return s.code===ft.CssConflict}function isInvalidApplyDiagnostic(s){return s.code===ft.InvalidApply}function isInvalidScreenDiagnostic(s){return s.code===ft.InvalidScreen}function isInvalidVariantDiagnostic(s){return s.code===ft.InvalidVariant}function isInvalidConfigPathDiagnostic(s){return s.code===ft.InvalidConfigPath}function isInvalidTailwindDirectiveDiagnostic(s){return s.code===ft.InvalidTailwindDirective}function isRecommendedVariantOrderDiagnostic(s){return s.code===ft.RecommendedVariantOrder}let pt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;let dt=/\\(\\)?/g;function stringToPath(s){let l=[];if(s.charCodeAt(0)===46){l.push("")}s.replace(pt,((s,u,f,h)=>{l.push(f?h.replace(dt,"$1"):u||s)}));return l}var ht=__nccwpck_require__(19461);var mt=__nccwpck_require__.n(ht);function closest(s,l){return l.concat([]).sort(((l,u)=>mt()(s,l)-mt()(s,u)))[0]}function absoluteRange(s,l){return{start:{line:((l===null||l===void 0?void 0:l.start.line)||0)+s.start.line,character:(s.end.line===0?(l===null||l===void 0?void 0:l.start.character)||0:0)+s.start.character},end:{line:((l===null||l===void 0?void 0:l.start.line)||0)+s.end.line,character:(s.end.line===0?(l===null||l===void 0?void 0:l.start.character)||0:0)+s.end.character}}}const vt=__nccwpck_require__(7639);function pathToString(s){if(typeof s==="string")return s;return s.reduce(((s,l,u)=>{if(u===0)return l;if(l.includes("."))return`${s}[${l}]`;return`${s}.${l}`}),"")}function validateConfigPath(s,l,u=[]){let f=Array.isArray(l)?l:stringToPath(l);let h=vt(s.config,[...u,...f]);let g=[];function findAlternativePath(){let l=combinations("123456789".substr(0,f.length-1)).map((s=>s.split("").map((s=>parseInt(s,10)))));let h=l.map((s=>{let l=[];let u=0;s.forEach((s=>{l.push(f.slice(u,s).join("."));u=s}));l.push(f.slice(u).join("."));return l})).slice(1);return h.find((l=>validateConfigPath(s,l,u).isValid))}if(typeof h==="undefined"){let h=`'${pathToString(l)}' does not exist in your theme config.`;let v=[...u,...f.slice(0,f.length-1)];let k=vt(s.config,v);if(isObject(k)){let l=closest(f[f.length-1],Object.keys(k).filter((l=>validateConfigPath(s,[...v,l]).isValid)));if(l){g.push(pathToString([...f.slice(0,f.length-1),l]));h+=` Did you mean '${g[0]}'?`}}else{let s=findAlternativePath();if(s){return{isValid:false,reason:`${h} Did you mean '${pathToString(s)}'?`,suggestions:[pathToString(s)]}}}return{isValid:false,reason:h,suggestions:g}}if(!(typeof h==="string"||typeof h==="number"||h instanceof String||h instanceof Number||Array.isArray(h)||typeof h==="function")){let v=`'${pathToString(l)}' was found but does not resolve to a valid theme value.`;if(isObject(h)){let l=Object.keys(h).filter((l=>validateConfigPath(s,[...f,l],u).isValid));if(l.length){g.push(...l.map((s=>pathToString([...f,s]))));v+=` Did you mean something like '${g[0]}'?`}}return{isValid:false,reason:v,suggestions:g}}let v=true;for(let l=f.length-1;l>=0;l--){let h=f[l];let g=vt(s.config,[...u,...f.slice(0,l)]);if(/^[0-9]+$/.test(h)){if(!isObject(g)&&!Array.isArray(g)){v=false;break}}else if(!isObject(g)){v=false;break}}if(!v){let s=`'${pathToString(l)}' does not exist in your theme config.`;let u=findAlternativePath();if(u){return{isValid:false,reason:`${s} Did you mean '${pathToString(u)}'?`,suggestions:[pathToString(u)]}}return{isValid:false,reason:s,suggestions:[]}}return{isValid:true,value:h}}function getInvalidConfigPathDiagnostics(s,l,u){let f=u.tailwindCSS.lint.invalidConfigPath;if(f==="ignore")return[];let h=[];let g=[];if(isCssDoc(s,l)){g.push(undefined)}else{let u=getLanguageBoundaries(s,l);if(!u)return[];g.push(...u.css)}g.forEach((u=>{let g=l.getText(u);let v=findAll(/(?<prefix>\s|^)(?<helper>config|theme)\((?<quote>['"])(?<key>[^)]+)\k<quote>\)/g,g);v.forEach((l=>{let v=l.groups.helper==="theme"?["theme"]:[];let k=validateConfigPath(s,l.groups.key,v);if(k.isValid===true){return null}let O=l.index+l.groups.prefix.length+l.groups.helper.length+1+l.groups.quote.length;h.push({code:ft.InvalidConfigPath,range:absoluteRange({start:indexToPosition(g,O),end:indexToPosition(g,O+l.groups.key.length)},u),severity:f==="error"?1:2,message:k.reason,suggestions:k.suggestions})}))}));return h}var yt=undefined&&undefined.__awaiter||function(s,l,u,f){function adopt(s){return s instanceof u?s:new u((function(l){l(s)}))}return new(u||(u=Promise))((function(u,h){function fulfilled(s){try{step(f.next(s))}catch(s){h(s)}}function rejected(s){try{step(f["throw"](s))}catch(s){h(s)}}function step(s){s.done?u(s.value):adopt(s.value).then(fulfilled,rejected)}step((f=f.apply(s,l||[])).next())}))};const bt=__nccwpck_require__(7639);function doHover(s,l,u){return yt(this,void 0,void 0,(function*(){return(yield provideClassNameHover(s,l,u))||provideCssHelperHover(s,l,u)}))}function provideCssHelperHover(s,l,u){if(!isCssContext(s,l,u))return null;const f=l.getText({start:{line:u.line,character:0},end:{line:u.line+1,character:0}});const h=f.match(/(?<helper>theme|config)\((?<quote>['"])(?<key>[^)]+)\k<quote>\)/);if(h===null)return null;const g=h.index+h.groups.helper.length+2;const v=g+h.groups.key.length;if(u.character<g||u.character>=v){return null}let k=h.groups.key.split(/(\[[^\]]+\]|\.)/).filter(Boolean).filter((s=>s!==".")).map((s=>s.replace(/^\[([^\]]+)\]$/,"$1")));if(k.length===0)return null;if(h.groups.helper==="theme"){k=["theme",...k]}const O=validateConfigPath(s,k).isValid?stringifyConfigValue(bt(s.config,k)):null;if(O===null)return null;return{contents:{kind:"markdown",value:["```plaintext",O,"```"].join("\n")},range:{start:{line:u.line,character:g},end:{line:u.line,character:v}}}}function provideClassNameHover(s,l,u){return yt(this,void 0,void 0,(function*(){let f=yield findClassNameAtPosition(s,l,u);if(f===null)return null;if(s.jit){let{root:u,rules:h}=generateRules(s,[f.className]);if(h.length===0){return null}return{contents:{language:"css",value:yield stringifyRoot(s,u,l.uri)},range:f.range}}const h=getClassNameParts(s,f.className);if(!h)return null;if(isCssContext(s,l,u)){let l=validateApply(s,h);if(l===null||l.isApplyable===false){return null}}const g=yield s.editor.getConfiguration(l.uri);const v=stringifyCss(f.className,bt(s.classNames.classNames,[...h,"__info"]),{tabSize:bt(g,"editor.tabSize",2),showPixelEquivalents:bt(g,"tailwindCSS.showPixelEquivalents",true),rootFontSize:bt(g,"tailwindCSS.rootFontSize",16)});if(!v)return null;return{contents:{language:"css",value:v},range:f.range}}))}var wt=__nccwpck_require__(12351);var _t=__nccwpck_require__(39407);var xt=__nccwpck_require__.n(_t);const St=__nccwpck_require__(7639);const kt=["accent-color","caret-color","color","column-rule-color","background-color","border-color","border-top-color","border-right-color","border-bottom-color","border-left-color","fill","outline-color","stop-color","stroke","text-decoration-color"];function getKeywordColor(s){if(typeof s!=="string")return null;let l=s.toLowerCase();if(l==="transparent"){return"transparent"}if(l==="currentcolor"){return"currentColor"}return null}const Ct=new RegExp(`(?:^|\\s|\\(|,)(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\\((-?[\\d.]+%?(\\s*[,/]\\s*|\\s+)+){2,3}\\s*([\\d.]+%?|var\\([^)]+\\))?\\)|transparent|currentColor|${Object.keys(xt()).join("|")})(?:$|\\s|\\)|,)`,"gi");function getColorsInString(s){if(/(?:box|drop)-shadow/.test(s))return[];return Array.from(s.matchAll(Ct),(s=>{var l;let u=s[1].replace(/var\([^)]+\)/,"1");return(l=getKeywordColor(u))!==null&&l!==void 0?l:wt.parse(u)})).filter(Boolean)}function getColorFromDecls(s){let l=Object.keys(s).filter((l=>{if(l==="content"&&(s[l]==='""'||s[l]==="''"||s[l]==="var(--tw-content)")){return false}return true}));if(l.length===0)return null;const u=l.filter((s=>!s.startsWith("--")));const f=u.length===0;if(!f&&u.some((s=>!kt.includes(s)))){return null}const h=f?l:u;const g=h.flatMap((l=>ensureArray(s[l]).flatMap(getColorsInString)));const v=dedupe(g.map((s=>typeof s==="string"?s:wt.formatRgb(Object.assign(Object.assign({},s),{alpha:undefined})))));if(v.length!==1){return null}let k=getKeywordColor(v[0]);if(k){return k}const O=g.filter((s=>typeof s!=="string"));const M=dedupe(O.map((s=>{var l;return(l=s.alpha)!==null&&l!==void 0?l:1})));if(M.length===1){return O[0]}if(M.length===2&&M.includes(0)){return O.find((s=>{var l;return((l=s.alpha)!==null&&l!==void 0?l:1)!==0}))}return null}function getColor(s,l){if(s.jit){if(s.classNames){const u=St(s.classNames.classNames,[l,"__info"]);if(u&&u.__rule){return getColorFromDecls(removeMeta(u))}}let{root:u,rules:f}=generateRules(s,[l]);if(f.length===0)return null;let h={};u.walkDecls((s=>{let l=h[s.prop];if(l){if(Array.isArray(l)){l.push(s.value)}else{h[s.prop]=[l,s.value]}}else{h[s.prop]=s.value}}));return getColorFromDecls(h)}let u=getClassNameParts(s,l);if(!u)return null;const f=St(s.classNames.classNames,[...u,"__info"]);if(!f.__rule)return null;return getColorFromDecls(removeMeta(f))}function getColorFromValue(s){if(typeof s!=="string")return null;const l=s.trim();if(l.toLowerCase()==="transparent"){return"transparent"}if(l.toLowerCase()==="currentcolor"){return"currentColor"}if(!/^\s*(?:rgba?|hsla?)\s*\([^)]+\)\s*$/.test(l)&&!/^\s*#[0-9a-f]+\s*$/i.test(l)&&!Object.keys(xt()).includes(l)){return null}const u=wt.parse(l);return u!==null&&u!==void 0?u:null}let Et=wt.converter("rgb");function culoriColorToVscodeColor(s){var l;let u=Et(s);return{red:u.r,green:u.g,blue:u.b,alpha:(l=u.alpha)!==null&&l!==void 0?l:1}}function isRawScreen(s){return isObject(s)&&s.raw!==undefined}function stringifyScreen(s){if(!s)return undefined;if(typeof s==="string")return`@media (min-width: ${s})`;if(isRawScreen(s)){return`@media ${s.raw}`}let l=(Array.isArray(s)?s:[s]).map((s=>[typeof s.min==="string"?`(min-width: ${s.min})`:null,typeof s.max==="string"?`(max-width: ${s.max})`:null].filter(Boolean).join(" and "))).join(", ");return l?`@media ${l}`:undefined}var Rt=__nccwpck_require__(70542);function isValidLocationForEmmetAbbreviation(s,l){const u="<";const f=">";const h="\\";const g="?";let v={line:0,character:0};let k=s.getText({start:{line:v.line,character:v.character},end:{line:l.start.line,character:l.start.character}});if(k.length>500){k=k.substr(k.length-500)}if(!k.trim()){return true}let O=true;let M=false;let q=k.length-1;if(k[q]===u){return false}while(q>=0){const s=k[q];q--;if(!M&&/\s/.test(s)){M=true;continue}if(s===g&&k[q]===u){q--;continue}if(/\s/.test(s)&&k[q]===u){q--;continue}if(s!==u&&s!==f){continue}if(q>=0&&k[q]===h){q--;continue}if(s===f){if(q>=0&&k[q]==="="){continue}else{break}}if(s===u){O=!M;break}}return O}function pad(s){return("00000000"+s).substr(-8)}function naturalExpand(s){let l=typeof s==="string"?s:s.toString();return l.replace(/\d+/g,pad)}function docsUrl(s,l){let u=0;let f="https://tailwindcss-v0.netlify.app/docs/";if(he().gte(s,"0.99.0")){u=1;f="https://v1.tailwindcss.com/docs/"}if(he().gte(s,"1.99.0")){u=2;f="https://tailwindcss.com/docs/"}const h=Array.isArray(l)?l[u]||l[l.length-1]:l;return`${f}${h}`}function getVariantsFromClassName(s,l){let u=l;let f=Object.keys(s.variants);let h=f.sort(((s,l)=>l.length-s.length));let g=new Set;let v=0;while(u){let l=false;for(let f of h){if(u.startsWith(f+s.separator)){g.add(f);u=u.substr(f.length+s.separator.length);v+=f.length+s.separator.length;l=true;break}}if(!l)u=""}return{variants:Array.from(g),offset:v}}var Pt=undefined&&undefined.__awaiter||function(s,l,u,f){function adopt(s){return s instanceof u?s:new u((function(l){l(s)}))}return new(u||(u=Promise))((function(u,h){function fulfilled(s){try{step(f.next(s))}catch(s){h(s)}}function rejected(s){try{step(f["throw"](s))}catch(s){h(s)}}function step(s){s.done?u(s.value):adopt(s.value).then(fulfilled,rejected)}step((f=f.apply(s,l||[])).next())}))};const Tt=__nccwpck_require__(7639);let isUtil=s=>Array.isArray(s.__info)?s.__info.some((s=>s.__source==="utilities")):s.__info.__source==="utilities";function completionsFromClassList(s,l,u,f,h,g){let v=l.split(/[\s+]/);const k=v[v.length-1];let O=s.separator;let M=k.split(O);let q;let B=[];let Y=false;let te=Object.assign(Object.assign({},u),{start:Object.assign(Object.assign({},u.start),{character:u.end.character-k.length})});if(s.jit){if(g&&(g.triggerKind===1||g.triggerKind===2&&g.triggerCharacter==="/")&&k.includes("/")){let l=k.split("/").slice(0,-1).join("/");let u=l+"/[0]";let{rules:f}=generateRules(s,[u]);if(f.length>0){let u=Tt(s.config,"theme.opacity",{});if(!isObject(u)){u={}}return{isIncomplete:false,items:Object.keys(u).map(((u,f)=>{var h;let g=`${l}/${u}`;let v=21;let k=null;const O=getColor(s,g);if(O!==null){v=16;if(typeof O!=="string"&&((h=O.alpha)!==null&&h!==void 0?h:1)!==0){k=wt.formatRgb(O)}}return{label:g,documentation:k,kind:v,sortText:naturalExpand(f),data:[g],textEdit:{newText:g,range:te}}}))}}}let l=Object.keys(s.variants);let{variants:h,offset:v}=getVariantsFromClassName(s,k);te.start.character+=v;let M=k.substr(v).startsWith("!");if(M){te.start.character+=1}let q=[];if(!M){let f=!he().gte(s.version,"2.99.0");q.push(...Object.entries(s.variants).filter((([s])=>!h.includes(s))).map((([s,g],v)=>{let M=[...h,s];if(f){M=M.sort(((s,u)=>l.indexOf(u)-l.indexOf(s)))}return{label:s+O,kind:9,detail:g,data:"variant",command:{title:"",command:"editor.action.triggerSuggest"},sortText:"-"+naturalExpand(v),textEdit:{newText:M[M.length-1]+O,range:te},additionalTextEdits:f&&M.length>1?[{newText:M.slice(0,M.length-1).join(O)+O,range:{start:Object.assign(Object.assign({},u.start),{character:u.end.character-k.length}),end:Object.assign(Object.assign({},te.start),{character:te.start.character})}}]:[]}})))}if(s.classList){return{isIncomplete:false,items:q.concat(s.classList.map((([s,{color:l}],u)=>{let f=l?16:21;let g=null;if(l&&typeof l!=="string"){g=wt.formatRgb(l)}return{label:s,kind:f,documentation:g,sortText:naturalExpand(u),data:[...h,M?`!${s}`:s],textEdit:{newText:s,range:te}}})))}}return{isIncomplete:false,items:q.concat(Object.keys(s.classNames.classNames).filter((l=>{let u=s.classNames.classNames[l];if(h.length===0){return u.__info}return u.__info&&isUtil(u)})).map(((l,u)=>{var f;let g=21;let v=null;const k=getColor(s,l);if(k!==null){g=16;if(typeof k!=="string"&&((f=k.alpha)!==null&&f!==void 0?f:1)!==0){v=wt.formatRgb(k)}}return{label:l,kind:g,documentation:v,sortText:naturalExpand(u),data:[...h,M?`!${l}`:l],textEdit:{newText:l,range:te}}}))).filter((s=>{if(s===null){return false}if(f&&!f(s)){return false}return true}))}}for(let l=M.length-1;l>0;l--){let u=M.slice(0,l).filter(Boolean);q=Tt(s.classNames.classNames,u);if(typeof q!=="undefined"&&typeof Tt(q,["__info","__rule"])==="undefined"){Y=true;B=u;te=Object.assign(Object.assign({},te),{start:Object.assign(Object.assign({},te.start),{character:te.start.character+u.join(O).length+O.length})});break}}return{isIncomplete:false,items:Object.keys(Y?q:s.classNames.classNames).filter((s=>s!=="__info")).filter((l=>isContextItem(s,[...B,l]))).map(((s,l)=>({label:s+O,kind:9,documentation:null,command:{title:"",command:"editor.action.triggerSuggest"},sortText:"-"+naturalExpand(l),data:[...B,s],textEdit:{newText:s+O,range:te}}))).concat(Object.keys(Y?q:s.classNames.classNames).filter((l=>Tt(s.classNames.classNames,[...B,l,"__info"]))).map(((l,u)=>{var f;let h=21;let g=null;const v=getColor(s,l);if(v!==null){h=16;if(typeof v!=="string"&&((f=v.alpha)!==null&&f!==void 0?f:1)!==0){g=wt.formatRgb(v)}}return{label:l,kind:h,documentation:g,sortText:naturalExpand(u),data:[...B,l],textEdit:{newText:l,range:te}}}))).filter((s=>{if(s===null){return false}if(f&&!f(s)){return false}return true}))}}function provideClassAttributeCompletions(s,l,u,f){return Pt(this,void 0,void 0,(function*(){let h=l.getText({start:l.positionAt(Math.max(0,l.offsetAt(u)-1e3)),end:u});let g=matchClassAttributes(h,(yield s.editor.getConfiguration(l.uri)).tailwindCSS.classAttributes);if(g.length===0){return null}let v=g[g.length-1];const k=v[0][0]===":"||v[1].startsWith("[")&&v[1].endsWith("]")?Je():Qe();k.reset(h.substr(v.index+v[0].length-1));try{let h=Array.from(k);let g=h[h.length-1];if(g.type.startsWith("start")||g.type==="classlist"){let g="";for(let s=h.length-1;s>=0;s--){if(h[s].type==="classlist"){g=h[s].value+g}else{break}}return completionsFromClassList(s,g,{start:{line:u.line,character:u.character-g.length},end:u},undefined,l,f)}}catch(s){}return null}))}function provideCustomClassNameCompletions(s,l,u){return Pt(this,void 0,void 0,(function*(){const f=yield s.editor.getConfiguration(l.uri);const h=Tt(f,"tailwindCSS.experimental.classRegex",[]);if(h.length===0)return null;const g=l.offsetAt(u);const v={start:l.positionAt(Math.max(0,g-1e3)),end:l.positionAt(g+1e3)};let k=l.getText(v);for(let f=0;f<h.length;f++){try{let[g,O]=Array.isArray(h[f])?h[f]:[h[f]];g=createMultiRegexp(g);let M;while((M=g.exec(k))!==null){const f=l.offsetAt(v.start);const h=f+M.start;const g=f+M.end;const k=l.offsetAt(u);if(k>=h&&k<=g){let l;if(O){O=createMultiRegexp(O);let s;while((s=O.exec(M.match))!==null){const u=h+s.start;const f=h+s.end;if(k>=u&&k<=f){l=s.match.substr(0,k-u)}}if(typeof l==="undefined"){throw Error()}}else{l=M.match.substr(0,k-h)}return completionsFromClassList(s,l,{start:{line:u.line,character:u.character-l.length},end:u})}}}catch(s){}}return null}))}function provideAtApplyCompletions(s,l,u){let f=l.getText({start:{line:Math.max(u.line-30,0),character:0},end:u});const h=findLast(/@apply\s+(?<classList>[^;}]*)$/gi,f);if(h===null){return null}const g=h.groups.classList;return completionsFromClassList(s,g,{start:{line:u.line,character:u.character-g.length},end:u},(l=>{if(l.kind===9){return he().gte(s.version,"2.0.0-alpha.1")||flagEnabled(s,"applyComplexClasses")}let u=validateApply(s,l.data);return u!==null&&u.isApplyable===true}))}function provideClassNameCompletions(s,l,u,f){return Pt(this,void 0,void 0,(function*(){if(isCssContext(s,l,u)){return provideAtApplyCompletions(s,l,u)}if(isHtmlContext(s,l,u)||isJsContext(s,l,u)){return provideClassAttributeCompletions(s,l,u,f)}return null}))}function provideCssHelperCompletions(s,l,u){if(!isCssContext(s,l,u)){return null}let f=l.getText({start:{line:u.line,character:0},end:{line:u.line,character:u.character+1}});const h=f.substr(0,f.length-1).match(/\b(?<helper>config|theme)\(['"](?<keys>[^'"]*)$/);if(h===null){return null}let g=h.groups.helper==="config"?s.config:Tt(s.config,"theme",{});let v=h.groups.keys.split(/([\[\].]+)/);let k=v.filter(((s,l)=>l%2===0));let O=v.filter(((s,l)=>l%2!==0));function totalLength(s){return s.reduce(((s,l)=>s+l.length),0)}let M;let q=0;let B=O.length?O[O.length-1]:null;if(k.length===1){M=g}else{for(let s=k.length-1;s>0;s--){let l=Tt(g,k.slice(0,s));if(isObject(l)){M=l;q=totalLength(v.slice(s*2));B=O[s-1];break}}}if(!M)return null;return{isIncomplete:false,items:Object.keys(M).map(((s,l)=>{var h;let g=getColorFromValue(M[s]);const v=s.indexOf(".")!==-1&&B&&B.endsWith(".");const O=f.charAt(f.length-1)!=="]"&&(v||B&&B.endsWith("["));const Y=stringifyConfigValue(M[s]);return{label:s,filterText:`${v?".":""}${s}`,sortText:naturalExpand(l),kind:g?16:isObject(M[s])?9:10,detail:Y==="0"||Y==="transparent"?`${Y} `:Y,documentation:g&&typeof g!=="string"&&((h=g.alpha)!==null&&h!==void 0?h:1)!==0?wt.formatRgb(g):null,textEdit:{newText:`${v?"[":""}${s}${O?"]":""}`,range:{start:{line:u.line,character:u.character-k[k.length-1].length-(v?1:0)-q},end:u}},data:"helper"}}))}}function provideTailwindDirectiveCompletions(s,l,u){if(!isCssContext(s,l,u)){return null}let f=l.getText({start:{line:u.line,character:0},end:u});const h=f.match(/^\s*@tailwind\s+(?<partial>[^\s]*)$/i);if(h===null)return null;return{isIncomplete:false,items:[he().gte(s.version,"1.0.0-beta.1")?{label:"base",documentation:{kind:"markdown",value:`This injects Tailwind’s base styles and any base styles registered by plugins.\n\n[Tailwind CSS Documentation](${docsUrl(s.version,"functions-and-directives/#tailwind")})`}}:{label:"preflight",documentation:{kind:"markdown",value:`This injects Tailwind’s base styles, which is a combination of Normalize.css and some additional base styles.\n\n[Tailwind CSS Documentation](${docsUrl(s.version,"functions-and-directives/#tailwind")})`}},{label:"components",documentation:{kind:"markdown",value:`This injects Tailwind’s component classes and any component classes registered by plugins.\n\n[Tailwind CSS Documentation](${docsUrl(s.version,"functions-and-directives/#tailwind")})`}},{label:"utilities",documentation:{kind:"markdown",value:`This injects Tailwind’s utility classes and any utility classes registered by plugins.\n\n[Tailwind CSS Documentation](${docsUrl(s.version,"functions-and-directives/#tailwind")})`}},s.jit&&he().gte(s.version,"2.1.99")?{label:"variants",documentation:{kind:"markdown",value:`Use this directive to control where Tailwind injects the utility variants.\n\nThis directive is considered an advanced escape hatch and it is recommended to omit it whenever possible. If omitted, Tailwind will append these classes to the very end of your stylesheet by default.\n\n[Tailwind CSS Documentation](${docsUrl(s.version,"just-in-time-mode#variants-are-inserted-at-tailwind-variants")})`}}:{label:"screens",documentation:{kind:"markdown",value:`Use this directive to control where Tailwind injects the responsive variations of each utility.\n\nIf omitted, Tailwind will append these classes to the very end of your stylesheet by default.\n\n[Tailwind CSS Documentation](${docsUrl(s.version,"functions-and-directives/#tailwind")})`}}].map((s=>Object.assign(Object.assign({},s),{kind:21,data:"@tailwind",textEdit:{newText:s.label,range:{start:{line:u.line,character:u.character-h.groups.partial.length},end:u}}})))}}function provideVariantsDirectiveCompletions(s,l,u){if(!isCssContext(s,l,u)){return null}if(he().gte(s.version,"2.99.0")){return null}let f=l.getText({start:{line:u.line,character:0},end:u});const h=f.match(/^\s*@variants\s+(?<partial>[^}]*)$/i);if(h===null)return null;const g=h.groups.partial.split(/\s*,\s*/);if(/\s+/.test(g[g.length-1]))return null;let v=Object.keys(s.variants);const k=g.slice(0,g.length-1);if(s.jit){v.unshift("responsive");v=v.filter((l=>!s.screens.includes(l)))}return{isIncomplete:false,items:v.filter((s=>k.indexOf(s)===-1)).map(((l,f)=>({label:l,detail:s.variants[l],kind:21,data:"variant",sortText:naturalExpand(f),textEdit:{newText:l,range:{start:{line:u.line,character:u.character-g[g.length-1].length},end:u}}})))}}function provideLayerDirectiveCompletions(s,l,u){if(!isCssContext(s,l,u)){return null}let f=l.getText({start:{line:u.line,character:0},end:u});const h=f.match(/^\s*@layer\s+(?<partial>[^\s]*)$/i);if(h===null)return null;return{isIncomplete:false,items:["base","components","utilities"].map(((s,l)=>({label:s,kind:21,data:"layer",sortText:naturalExpand(l),textEdit:{newText:s,range:{start:{line:u.line,character:u.character-h.groups.partial.length},end:u}}})))}}function provideScreenDirectiveCompletions(s,l,u){if(!isCssContext(s,l,u)){return null}let f=l.getText({start:{line:u.line,character:0},end:u});const h=f.match(/^\s*@screen\s+(?<partial>[^\s]*)$/i);if(h===null)return null;const g=Tt(s.config,["screens"],Tt(s.config,["theme","screens"],{}));if(!isObject(g))return null;return{isIncomplete:false,items:Object.keys(g).map(((s,l)=>({label:s,kind:21,data:"screen",sortText:naturalExpand(l),textEdit:{newText:s,range:{start:{line:u.line,character:u.character-h.groups.partial.length},end:u}}})))}}function provideCssDirectiveCompletions(s,l,u){if(!isCssContext(s,l,u)){return null}let f=l.getText({start:{line:u.line,character:0},end:u});const h=f.match(/^\s*@(?<partial>[a-z]*)$/i);if(h===null)return null;const g=[{label:"@tailwind",documentation:{kind:"markdown",value:`Use the \`@tailwind\` directive to insert Tailwind’s \`base\`, \`components\`, \`utilities\` and \`${s.jit&&he().gte(s.version,"2.1.99")?"variants":"screens"}\` styles into your CSS.\n\n[Tailwind CSS Documentation](${docsUrl(s.version,"functions-and-directives/#tailwind")})`}},{label:"@screen",documentation:{kind:"markdown",value:`The \`@screen\` directive allows you to create media queries that reference your breakpoints by name instead of duplicating their values in your own CSS.\n\n[Tailwind CSS Documentation](${docsUrl(s.version,"functions-and-directives/#screen")})`}},{label:"@apply",documentation:{kind:"markdown",value:`Use \`@apply\` to inline any existing utility classes into your own custom CSS.\n\n[Tailwind CSS Documentation](${docsUrl(s.version,"functions-and-directives/#apply")})`}},...he().gte(s.version,"1.8.0")?[{label:"@layer",documentation:{kind:"markdown",value:`Use the \`@layer\` directive to tell Tailwind which "bucket" a set of custom styles belong to. Valid layers are \`base\`, \`components\`, and \`utilities\`.\n\n[Tailwind CSS Documentation](${docsUrl(s.version,"functions-and-directives/#layer")})`}}]:[],...he().gte(s.version,"2.99.0")?[]:[{label:"@variants",documentation:{kind:"markdown",value:`You can generate \`responsive\`, \`hover\`, \`focus\`, \`active\`, and other variants of your own utilities by wrapping their definitions in the \`@variants\` directive.\n\n[Tailwind CSS Documentation](${docsUrl(s.version,"functions-and-directives/#variants")})`}},{label:"@responsive",documentation:{kind:"markdown",value:`You can generate responsive variants of your own classes by wrapping their definitions in the \`@responsive\` directive.\n\n[Tailwind CSS Documentation](${docsUrl(s.version,"functions-and-directives/#responsive")})`}}]];return{isIncomplete:false,items:g.map((s=>Object.assign(Object.assign({},s),{kind:14,data:"directive",textEdit:{newText:s.label,range:{start:{line:u.line,character:u.character-h.groups.partial.length-1},end:u}}})))}}function provideEmmetCompletions(s,l,u){return Pt(this,void 0,void 0,(function*(){let f=yield s.editor.getConfiguration(l.uri);if(f.tailwindCSS.emmetCompletions!==true)return null;const h=isHtmlContext(s,l,u);const g=!h&&isJsContext(s,l,u);const v=h?"html":g?"jsx":null;if(v===null){return null}const k=Rt.extractAbbreviation(l,u,true);if(!k||!Rt.isAbbreviationValid(v,k.abbreviation)){return null}if(!isValidLocationForEmmetAbbreviation(l,k.abbreviationRange)){return null}if(g){const u=k.abbreviation;if(u.startsWith("this.")){return null}const f=yield s.editor.getDocumentSymbols(l.uri);if(f&&f.find((s=>u===s.name||u.startsWith(s.name+".")&&!/>|\*|\+/.test(u)))){return null}}const O=Rt.doComplete(l,u,v,{});if(!O||!O.items||O.items.length!==1){return null}if(O.items[0].label==="widows: ;"){return null}const M=O.items[0].label.split(".");if(M.length<2)return null;return completionsFromClassList(s,M[M.length-1],{start:{line:u.line,character:u.character-M[M.length-1].length},end:u})}))}function doComplete(s,l,u,f){return Pt(this,void 0,void 0,(function*(){if(s===null)return{items:[],isIncomplete:false};const h=(yield provideClassNameCompletions(s,l,u,f))||provideCssHelperCompletions(s,l,u)||provideCssDirectiveCompletions(s,l,u)||provideScreenDirectiveCompletions(s,l,u)||provideVariantsDirectiveCompletions(s,l,u)||provideTailwindDirectiveCompletions(s,l,u)||provideLayerDirectiveCompletions(s,l,u)||(yield provideCustomClassNameCompletions(s,l,u));if(h)return h;return provideEmmetCompletions(s,l,u)}))}function resolveCompletionItem(s,l){return Pt(this,void 0,void 0,(function*(){if(["helper","directive","variant","layer","@tailwind"].includes(l.data)){return l}if(l.data==="screen"){let u=Tt(s.config,["theme","screens"],Tt(s.config,["screens"],{}));if(!isObject(u))u={};l.detail=stringifyScreen(u[l.label]);return l}if(!Array.isArray(l.data)){return l}if(s.jit){if(l.kind===9)return l;if(l.detail&&l.documentation)return l;let{root:u,rules:f}=generateRules(s,[l.data.join(s.separator)]);if(f.length===0)return l;if(!l.detail){if(f.length===1){l.detail=yield stringifyDecls(s,f[0])}else{l.detail=`${f.length} rules`}}if(!l.documentation){l.documentation={kind:"markdown",value:["```css",yield stringifyRoot(s,u),"```"].join("\n")}}return l}const u=Tt(s.classNames.classNames,[...l.data,"__info"]);if(l.kind===9){l.detail=s.classNames.context[l.data[l.data.length-1]].join(", ")}else{l.detail=yield getCssDetail(s,u);if(!l.documentation){const f=yield s.editor.getConfiguration();const h=stringifyCss(l.data.join(":"),u,{tabSize:Tt(f,"editor.tabSize",2),showPixelEquivalents:Tt(f,"tailwindCSS.showPixelEquivalents",true),rootFontSize:Tt(f,"tailwindCSS.rootFontSize",16)});if(h){l.documentation={kind:"markdown",value:["```css",h,"```"].join("\n")}}}}return l}))}function isContextItem(s,l){const u=Tt(s.classNames.classNames,[l]);if(!isObject(u)){return false}if(!s.classNames.context[l[l.length-1]]){return false}if(Object.keys(u).filter((s=>s!=="__info")).length>0){return true}return isObject(u.__info)&&!u.__info.__rule}function completionProvider_stringifyDecls(s,{showPixelEquivalents:l=false,rootFontSize:u=16}={}){let f=Object.keys(s);let h=f.filter((s=>!s.startsWith("--")));if(f.length!==h.length&&h.length!==0){f=h}return f.map((f=>ensureArray(s[f]).map((s=>{const h=l?remToPx(s,u):undefined;return`${f}: ${s}${h?`/* ${h} */`:""};`})).join(" "))).join(" ")}function getCssDetail(s,l){return Pt(this,void 0,void 0,(function*(){if(Array.isArray(l)){return`${l.length} rules`}if(l.__rule===true){const u=yield s.editor.getConfiguration();return completionProvider_stringifyDecls(removeMeta(l),{showPixelEquivalents:Tt(u,"tailwindCSS.showPixelEquivalents",true),rootFontSize:Tt(u,"tailwindCSS.rootFontSize",16)})}return null}))}function joinWithAnd(s){return s.reduce(((l,u,f)=>{if(f===0){return u}if(s.length>1&&f===s.length-1){return`${l} and ${u}`}return`${l}, ${u}`}),"")}const At=__nccwpck_require__(7639);function getClassNameDecls(s,l){const u=getClassNameParts(s,l);if(!u)return null;const f=At(s.classNames.classNames,[...u,"__info"]);if(Array.isArray(f)){return f.map(removeMeta)}return removeMeta(f)}var Ot=undefined&&undefined.__awaiter||function(s,l,u,f){function adopt(s){return s instanceof u?s:new u((function(l){l(s)}))}return new(u||(u=Promise))((function(u,h){function fulfilled(s){try{step(f.next(s))}catch(s){h(s)}}function rejected(s){try{step(f["throw"](s))}catch(s){h(s)}}function step(s){s.done?u(s.value):adopt(s.value).then(fulfilled,rejected)}step((f=f.apply(s,l||[])).next())}))};function getCssConflictDiagnostics(s,l,u){return Ot(this,void 0,void 0,(function*(){let f=u.tailwindCSS.lint.cssConflict;if(f==="ignore")return[];let h=[];const g=yield findClassListsInDocument(s,l);g.forEach((u=>{const g=getClassNamesInClassList(u);g.forEach(((u,v)=>{if(s.jit){let{rules:k}=generateRules(s,[u.className]);if(k.length!==1){return}let O=k[0];let M;let q=[];O.walkDecls((({prop:s})=>{q.push(s)}));let B=g.filter(((s,l)=>l!==v));let Y=B.filter((l=>{let{rules:f}=generateRules(s,[l.className]);if(f.length!==1){return false}let h=f[0];let g=[];h.walkDecls((({prop:s})=>{g.push(s)}));if(!equal(q,g)){return false}if(!M){M=getRuleContext(s,O,u.className)}let v=getRuleContext(s,h,l.className);if(!equal(M,v)){return false}return true}));if(Y.length===0)return;h.push({code:ft.CssConflict,className:u,otherClassNames:Y,range:u.range,severity:f==="error"?1:2,message:`'${u.className}' applies the same CSS ${q.length===1?"property":"properties"} as ${joinWithAnd(Y.map((s=>`'${s.className}'`)))}.`,relatedInformation:Y.map((s=>({message:s.className,location:{uri:l.uri,range:s.range}})))});return}let k=getClassNameDecls(s,u.className);if(!k)return;let O=Object.keys(k);let M=getClassNameMeta(s,u.className);let q=g.filter(((s,l)=>l!==v));let B=q.filter((l=>{let u=getClassNameDecls(s,l.className);if(!u)return false;let f=getClassNameMeta(s,l.className);return equal(O,Object.keys(u))&&!Array.isArray(M)&&!Array.isArray(f)&&equal(M.context,f.context)&&equal(M.pseudo,f.pseudo)&&M.scope===f.scope}));if(B.length===0)return;h.push({code:ft.CssConflict,className:u,otherClassNames:B,range:u.range,severity:f==="error"?1:2,message:`'${u.className}' applies the same CSS ${O.length===1?"property":"properties"} as ${joinWithAnd(B.map((s=>`'${s.className}'`)))}.`,relatedInformation:B.map((s=>({message:s.className,location:{uri:l.uri,range:s.range}})))})}))}));return h}))}var Dt=undefined&&undefined.__awaiter||function(s,l,u,f){function adopt(s){return s instanceof u?s:new u((function(l){l(s)}))}return new(u||(u=Promise))((function(u,h){function fulfilled(s){try{step(f.next(s))}catch(s){h(s)}}function rejected(s){try{step(f["throw"](s))}catch(s){h(s)}}function step(s){s.done?u(s.value):adopt(s.value).then(fulfilled,rejected)}step((f=f.apply(s,l||[])).next())}))};function getInvalidApplyDiagnostics(s,l,u){return Dt(this,void 0,void 0,(function*(){let f=u.tailwindCSS.lint.invalidApply;if(f==="ignore")return[];const h=yield findClassNamesInRange(s,l,undefined,"css",false);let g=h.map((l=>{let u=validateApply(s,l.className);if(u===null||u.isApplyable===true){return null}return{code:ft.InvalidApply,severity:f==="error"?1:2,range:l.range,message:u.reason,className:l}}));return g.filter(Boolean)}))}const It=__nccwpck_require__(7639);function getInvalidScreenDiagnostics(s,l,u){let f=u.tailwindCSS.lint.invalidScreen;if(f==="ignore")return[];let h=[];let g=[];if(isCssDoc(s,l)){g.push(undefined)}else{let u=getLanguageBoundaries(s,l);if(!u)return[];g.push(...u.css)}g.forEach((u=>{let g=l.getText(u);let v=findAll(/(?:\s|^)@screen\s+(?<screen>[^\s{]+)/g,g);v.forEach((l=>{if(s.screens.includes(l.groups.screen)){return null}let v=`The screen '${l.groups.screen}' does not exist in your theme config.`;let k=[];let O=closest(l.groups.screen,s.screens);if(O){k.push(O);v+=` Did you mean '${O}'?`}h.push({code:ft.InvalidScreen,range:absoluteRange({start:indexToPosition(g,l.index+l[0].length-l.groups.screen.length),end:indexToPosition(g,l.index+l[0].length)},u),severity:f==="error"?1:2,message:v,suggestions:k})}))}));return h}function getInvalidVariantDiagnostics(s,l,u){let f=u.tailwindCSS.lint.invalidVariant;if(f==="ignore")return[];if(he().gte(s.version,"2.99.0")){return[]}let h=[];let g=[];if(isCssDoc(s,l)){g.push(undefined)}else{let u=getLanguageBoundaries(s,l);if(!u)return[];g.push(...u.css)}let v=Object.keys(s.variants);if(s.jit){v.unshift("responsive");v=v.filter((l=>!s.screens.includes(l)))}g.forEach((s=>{let u=l.getText(s);let g=findAll(/(?:\s|^)@variants\s+(?<variants>[^{]+)/g,u);g.forEach((l=>{let g=l.groups.variants.split(/(\s*,\s*)/);let k=l.index+l[0].length-l.groups.variants.length;for(let l=0;l<g.length;l+=2){let O=g[l].trim();if(v.includes(O)){continue}let M=`The variant '${O}' does not exist.`;let q=[];let B=closest(O,v);if(B){q.push(B);M+=` Did you mean '${B}'?`}let Y=k+g.slice(0,l).join("").length;h.push({code:ft.InvalidVariant,range:absoluteRange({start:indexToPosition(u,Y),end:indexToPosition(u,Y+O.length)},s),severity:f==="error"?1:2,message:M,suggestions:q})}}))}));return h}function getInvalidTailwindDirectiveDiagnostics(s,l,u){let f=u.tailwindCSS.lint.invalidTailwindDirective;if(f==="ignore")return[];let h=[];let g=[];if(isCssDoc(s,l)){g.push(undefined)}else{let u=getLanguageBoundaries(s,l);if(!u)return[];g.push(...u.css)}let v=s.jit&&he().gte(s.version,"2.1.99");g.forEach((u=>{let g=l.getText(u);let k=findAll(/(?:\s|^)@tailwind\s+(?<value>[^;]+)/g,g);let O=["utilities","components","screens",he().gte(s.version,"1.0.0-beta.1")?"base":"preflight",v&&"variants"].filter(Boolean);let M=O;if(v){M=M.filter((s=>s!=="screens"))}k.forEach((s=>{if(O.includes(s.groups.value)){return null}let l=`'${s.groups.value}' is not a valid value.`;let v=[];if(s.groups.value==="preflight"){v.push("base");l+=` Did you mean 'base'?`}else{let u=closest(s.groups.value,M);if(u){v.push(u);l+=` Did you mean '${u}'?`}}h.push({code:ft.InvalidTailwindDirective,range:absoluteRange({start:indexToPosition(g,s.index+s[0].length-s.groups.value.length),end:indexToPosition(g,s.index+s[0].length)},u),severity:f==="error"?1:2,message:l,suggestions:v})}))}));return h}var Mt=undefined&&undefined.__awaiter||function(s,l,u,f){function adopt(s){return s instanceof u?s:new u((function(l){l(s)}))}return new(u||(u=Promise))((function(u,h){function fulfilled(s){try{step(f.next(s))}catch(s){h(s)}}function rejected(s){try{step(f["throw"](s))}catch(s){h(s)}}function step(s){s.done?u(s.value):adopt(s.value).then(fulfilled,rejected)}step((f=f.apply(s,l||[])).next())}))};function getRecommendedVariantOrderDiagnostics(s,l,u){return Mt(this,void 0,void 0,(function*(){if(!s.jit)return[];if(he().gte(s.version,"2.99.0"))return[];let f=u.tailwindCSS.lint.recommendedVariantOrder;if(f==="ignore")return[];let h=[];const g=yield findClassListsInDocument(s,l);g.forEach((l=>{const u=getClassNamesInClassList(l);u.forEach((l=>{let{rules:u}=generateRules(s,[l.className]);if(u.length===0){return}let{variants:g,offset:v}=getVariantsFromClassName(s,l.className);let k=[...g].sort(((l,u)=>bigSign(s.jitContext.variantOrder.get(u)-s.jitContext.variantOrder.get(l))));if(!equalExact(g,k)){h.push({code:ft.RecommendedVariantOrder,suggestions:[[...k,l.className.substr(v)].join(s.separator)],range:l.range,severity:f==="error"?1:2,message:"Variants are not in the recommended order, which may cause unexpected CSS output."})}}))}));return h}))}var Nt=undefined&&undefined.__awaiter||function(s,l,u,f){function adopt(s){return s instanceof u?s:new u((function(l){l(s)}))}return new(u||(u=Promise))((function(u,h){function fulfilled(s){try{step(f.next(s))}catch(s){h(s)}}function rejected(s){try{step(f["throw"](s))}catch(s){h(s)}}function step(s){s.done?u(s.value):adopt(s.value).then(fulfilled,rejected)}step((f=f.apply(s,l||[])).next())}))};function doValidate(s,l,u=[ft.CssConflict,ft.InvalidApply,ft.InvalidScreen,ft.InvalidVariant,ft.InvalidConfigPath,ft.InvalidTailwindDirective,ft.RecommendedVariantOrder]){return Nt(this,void 0,void 0,(function*(){const f=yield s.editor.getConfiguration(l.uri);return f.tailwindCSS.validate?[...u.includes(ft.CssConflict)?yield getCssConflictDiagnostics(s,l,f):[],...u.includes(ft.InvalidApply)?yield getInvalidApplyDiagnostics(s,l,f):[],...u.includes(ft.InvalidScreen)?getInvalidScreenDiagnostics(s,l,f):[],...u.includes(ft.InvalidVariant)?getInvalidVariantDiagnostics(s,l,f):[],...u.includes(ft.InvalidConfigPath)?getInvalidConfigPathDiagnostics(s,l,f):[],...u.includes(ft.InvalidTailwindDirective)?getInvalidTailwindDirectiveDiagnostics(s,l,f):[],...u.includes(ft.RecommendedVariantOrder)?yield getRecommendedVariantOrderDiagnostics(s,l,f):[]]:[]}))}function provideDiagnostics(s,l){return Nt(this,void 0,void 0,(function*(){}))}function clearDiagnostics(s,l){}function clearAllDiagnostics(s){s.editor.documents.all().forEach((l=>{clearDiagnostics(s,l)}))}function updateAllDiagnostics(s){s.editor.documents.all().forEach((l=>{provideDiagnostics(s,l)}))}function normalizeFileNameToFsPath(s){return te.URI.file(s).fsPath}function getFileFsPath(s){return te.URI.parse(s).fsPath}var Lt=undefined&&undefined.__awaiter||function(s,l,u,f){function adopt(s){return s instanceof u?s:new u((function(l){l(s)}))}return new(u||(u=Promise))((function(u,h){function fulfilled(s){try{step(f.next(s))}catch(s){h(s)}}function rejected(s){try{step(f["throw"](s))}catch(s){h(s)}}function step(s){s.done?u(s.value):adopt(s.value).then(fulfilled,rejected)}step((f=f.apply(s,l||[])).next())}))};const jt=["**/.git/**","**/.svn/**","**/.hg/**","**/node_modules/**"];function isExcluded(s,l){var f,h;return Lt(this,void 0,void 0,(function*(){let g=yield s.editor.getConfiguration(l.uri);let v=getFileFsPath(l.uri);for(let l of(h=(f=g.tailwindCSS.files)===null||f===void 0?void 0:f.exclude)!==null&&h!==void 0?h:jt){if(ce()(v,u.join(s.editor.folder,l))){return true}}return false}))}var Ft=undefined&&undefined.__awaiter||function(s,l,u,f){function adopt(s){return s instanceof u?s:new u((function(l){l(s)}))}return new(u||(u=Promise))((function(u,h){function fulfilled(s){try{step(f.next(s))}catch(s){h(s)}}function rejected(s){try{step(f["throw"](s))}catch(s){h(s)}}function step(s){s.done?u(s.value):adopt(s.value).then(fulfilled,rejected)}step((f=f.apply(s,l||[])).next())}))};function diagnosticsProvider_provideDiagnostics(s,l){var u;return Ft(this,void 0,void 0,(function*(){if(yield isExcluded(s,l)){diagnosticsProvider_clearDiagnostics(s,l)}else{(u=s.editor)===null||u===void 0?void 0:u.connection.sendDiagnostics({uri:l.uri,diagnostics:yield doValidate(s,l)})}}))}function diagnosticsProvider_clearDiagnostics(s,l){var u;(u=s.editor)===null||u===void 0?void 0:u.connection.sendDiagnostics({uri:l.uri,diagnostics:[]})}function diagnosticsProvider_clearAllDiagnostics(s){var l;(l=s.editor)===null||l===void 0?void 0:l.documents.all().forEach((l=>{diagnosticsProvider_clearDiagnostics(s,l)}))}function diagnosticsProvider_updateAllDiagnostics(s){var l;(l=s.editor)===null||l===void 0?void 0:l.documents.all().forEach((l=>{diagnosticsProvider_provideDiagnostics(s,l)}))}function rangesEqual(s,l){return s.start.line===l.start.line&&s.start.character===l.start.character&&s.end.line===l.end.line&&s.end.character===l.end.character}function removeRangesFromString(s,l){let u=ensureArray(l);let f=Ve()(s+"\n",{origin:0});let h=[];u.forEach((l=>{let u=f.toIndex(l.start.line,l.start.character);let g=f.toIndex(l.end.line,l.end.character);for(let l=u-1;l>=0;l--){if(/\s/.test(s.charAt(l))){u=l}else{break}}h.push({start:u,end:g})}));h.sort(((s,l)=>s.start-l.start));let g="";let v=0;h.forEach((l=>{g+=s.substring(v,l.start);v=l.end}));g+=s.substring(v);return g.trim()}var qt=undefined&&undefined.__awaiter||function(s,l,u,f){function adopt(s){return s instanceof u?s:new u((function(l){l(s)}))}return new(u||(u=Promise))((function(u,h){function fulfilled(s){try{step(f.next(s))}catch(s){h(s)}}function rejected(s){try{step(f["throw"](s))}catch(s){h(s)}}function step(s){s.done?u(s.value):adopt(s.value).then(fulfilled,rejected)}step((f=f.apply(s,l||[])).next())}))};function provideCssConflictCodeActions(s,l,u){return qt(this,void 0,void 0,(function*(){return[{title:`Delete ${joinWithAnd(u.otherClassNames.map((s=>`'${s.className}'`)))}`,kind:"quickfix",diagnostics:[u],edit:{changes:{[l.textDocument.uri]:[{range:u.className.classList.range,newText:removeRangesFromString(u.className.classList.classList,u.otherClassNames.map((s=>s.relativeRange)))}]}}}]}))}var $t=__nccwpck_require__(83e3);var Bt=__nccwpck_require__.n($t);var Ut=/\s*!important\s*$/i;var Wt={"box-flex":true,"box-flex-group":true,"column-count":true,flex:true,"flex-grow":true,"flex-positive":true,"flex-shrink":true,"flex-negative":true,"font-weight":true,"line-clamp":true,"line-height":true,opacity:true,order:true,orphans:true,"tab-size":true,widows:true,"z-index":true,zoom:true,"fill-opacity":true,"stroke-dashoffset":true,"stroke-opacity":true,"stroke-width":true};function dashify(s){return s.replace(/([A-Z])/g,"-$1").replace(/^ms-/,"-ms-").toLowerCase()}function decl(s,l,u,f){if(u===false||u===null)return;l=dashify(l);if(typeof u==="number"){if(u===0||Wt[l]){u=u.toString()}else{u=u.toString()+"px"}}if(l==="css-float")l="float";if(Ut.test(u)){u=u.replace(Ut,"");s.push(f.decl({prop:l,value:u,important:true}))}else{s.push(f.decl({prop:l,value:u}))}}function atRule(s,l,u,f){var h=f.atRule({name:l[1],params:l[3]||""});if(typeof u==="object"){h.nodes=[];parse(u,h,f)}s.push(h)}function parse(s,l,u){var f,h,g,v;for(f in s){if(s.hasOwnProperty(f)){h=s[f];if(h===null||typeof h==="undefined"){continue}else if(f[0]==="@"){var k=f.match(/@([^\s]+)(\s+([\w\W]*)\s*)?/);if(Array.isArray(h)){for(v=0;v<h.length;v++){atRule(l,k,h[v],u)}}else{atRule(l,k,h,u)}}else if(Array.isArray(h)){for(v=0;v<h.length;v++){decl(l,f,h[v],u)}}else if(typeof h==="object"){g=u.rule({selector:f});parse(h,g,u);l.push(g)}else{decl(l,f,h,u)}}}}function cssObjToAst(s,l){var u=l.root();parse(s,u,l);return u}var zt=undefined&&undefined.__awaiter||function(s,l,u,f){function adopt(s){return s instanceof u?s:new u((function(l){l(s)}))}return new(u||(u=Promise))((function(u,h){function fulfilled(s){try{step(f.next(s))}catch(s){h(s)}}function rejected(s){try{step(f["throw"](s))}catch(s){h(s)}}function step(s){s.done?u(s.value):adopt(s.value).then(fulfilled,rejected)}step((f=f.apply(s,l||[])).next())}))};const Vt=__nccwpck_require__(7639);function provideInvalidApplyCodeActions(s,l,u){return zt(this,void 0,void 0,(function*(){let f=s.editor.documents.get(l.textDocument.uri);let h=f.getText();let g;let v=h;const{postcss:k}=s.modules;let O=[];let M=u.className.classList.classList.split(/\s+/).length;let q=u.className.className;let B=getClassNameParts(s,q);let Y=Vt(s.classNames.classNames,B);if(Array.isArray(Y)){return[]}if(!isCssDoc(s,f)){let l=getLanguageBoundaries(s,f);if(!l)return[];g=l.css.find((s=>isWithinRange(u.range.start,s)));if(!g)return[];v=f.getText(g)}try{yield k.module([k.module.plugin("",((l={})=>l=>{l.walkRules((l=>{if(O.length)return false;l.walkAtRules("apply",(f=>{let h=postcssSourceToRange(f.source);if(g){h=absoluteRange(h,g)}if(!isWithinRange(u.range.start,h))return undefined;let k=classNameToAst(s,B,l.selector,u.className.classList.important);if(!k)return false;l.after(k.nodes);let q=l.next();if(!q)return false;if(M===1){f.remove()}else{O.push({range:u.className.classList.range,newText:removeRangesFromString(u.className.classList.classList,u.className.relativeRange)})}let Y=postcssSourceToRange(l.source);if(g){Y=absoluteRange(Y,g)}let te;let re=Bt()(v);O.push({range:Y,newText:l.toString()+(q.raws.before||"\n\n")+q.toString().replace(/\n\s*\n/g,"\n").replace(/(@apply [^;\n]+)$/gm,"$1;").replace(/([^\s^]){$/gm,"$1 {").replace(/^\s+/gm,(s=>{if(typeof te==="undefined")te=s;return s.replace(new RegExp(te,"g"),re.indent)})).replace(/^(\s+)(.*?[^{}]\n)([^\s}])/gm,"$1$2$1$3")});return false}));return undefined}))}))]).process(v,{from:undefined})}catch(s){return[]}if(!O.length){return[]}return[{title:"Extract to new rule",kind:"quickfix",diagnostics:[u],edit:{changes:{[l.textDocument.uri]:O}}}]}))}function postcssSourceToRange(s){return{start:{line:s.start.line-1,character:s.start.column-1},end:{line:s.end.line-1,character:s.end.column}}}function classNameToAst(s,l,u,f=false){const h=l[l.length-1];const g=validateApply(s,[h]);if(g===null||g.isApplyable===false){return null}const v=getClassNameMeta(s,l);if(Array.isArray(v))return null;let k=v.context;let O=v.pseudo;const M=s.classNames.context;const q=[];for(let u=0;u<l.length-1;u++){let f=l[u];let h=M[f];if(!h)return null;if(s.screens.includes(f)){q.push(`@screen ${f}`);k=k.filter((s=>!h.includes(s)))}}q.push(...k);let B={};for(let s=1;s<=q.length;s++){we()(B,q.slice(0,s),{})}u=appendPseudosToSelector(u,O);if(u===null)return null;let Y={[u]:{[`@apply ${h}${f?" !important":""}`]:""}};if(q.length){we()(B,q,Y)}else{B=Y}return cssObjToAst(B,s.modules.postcss)}function appendPseudosToSelector(s,l){if(l.length===0)return s;let u=true;let f=Ee()((s=>{array_flatten(s.split((s=>true))).forEach((s=>{for(let f=s.nodes.length-1;f>=0;f--){if(s.nodes[f].type!=="pseudo"){break}else if(l.includes(s.nodes[f].value)){u=false;break}}if(u){l.forEach((l=>{s.append(Ee().pseudo({value:l}))}))}}))})).processSync(s);if(!u)return null;return f}function provideSuggestionCodeActions(s,l,u){return u.suggestions.map((s=>({title:`Replace with '${s}'`,kind:"quickfix",diagnostics:[u],edit:{changes:{[l.textDocument.uri]:[{range:u.range,newText:s}]}}})))}var Ht=undefined&&undefined.__awaiter||function(s,l,u,f){function adopt(s){return s instanceof u?s:new u((function(l){l(s)}))}return new(u||(u=Promise))((function(u,h){function fulfilled(s){try{step(f.next(s))}catch(s){h(s)}}function rejected(s){try{step(f["throw"](s))}catch(s){h(s)}}function step(s){s.done?u(s.value):adopt(s.value).then(fulfilled,rejected)}step((f=f.apply(s,l||[])).next())}))};function getDiagnosticsFromCodeActionParams(s,l,u){return Ht(this,void 0,void 0,(function*(){let f=s.editor.documents.get(l.textDocument.uri);let h=yield doValidate(s,f,u);return l.context.diagnostics.map((s=>h.find((l=>l.code===s.code&&l.message===s.message&&rangesEqual(l.range,s.range))))).filter(Boolean)}))}function doCodeActions(s,l){return Ht(this,void 0,void 0,(function*(){let u=yield getDiagnosticsFromCodeActionParams(s,l,l.context.diagnostics.map((s=>s.code)).filter(Boolean));return Promise.all(u.map((u=>{if(isInvalidApplyDiagnostic(u)){return provideInvalidApplyCodeActions(s,l,u)}if(isCssConflictDiagnostic(u)){return provideCssConflictCodeActions(s,l,u)}if(isInvalidConfigPathDiagnostic(u)||isInvalidTailwindDirectiveDiagnostic(u)||isInvalidScreenDiagnostic(u)||isInvalidVariantDiagnostic(u)||isRecommendedVariantOrderDiagnostic(u)){return provideSuggestionCodeActions(s,l,u)}return[]}))).then(array_flatten).then((s=>dedupeBy(s,(s=>JSON.stringify(s.edit)))))}))}var Gt=undefined&&undefined.__awaiter||function(s,l,u,f){function adopt(s){return s instanceof u?s:new u((function(l){l(s)}))}return new(u||(u=Promise))((function(u,h){function fulfilled(s){try{step(f.next(s))}catch(s){h(s)}}function rejected(s){try{step(f["throw"](s))}catch(s){h(s)}}function step(s){s.done?u(s.value):adopt(s.value).then(fulfilled,rejected)}step((f=f.apply(s,l||[])).next())}))};function getDocumentColors(s,l){return Gt(this,void 0,void 0,(function*(){let u=[];if(!s.enabled)return u;let f=yield s.editor.getConfiguration(l.uri);if(f.tailwindCSS.colorDecorators===false)return u;let h=yield findClassListsInDocument(s,l);h.forEach((l=>{let f=getClassNamesInClassList(l);f.forEach((l=>{var f;let h=getColor(s,l.className);if(h===null||typeof h==="string"||((f=h.alpha)!==null&&f!==void 0?f:1)===0){return}u.push({range:l.range,color:culoriColorToVscodeColor(h)})}))}));let g=findHelperFunctionsInDocument(s,l);g.forEach((l=>{var f;let h=stringToPath(l.value);let g=l.helper==="theme"?["theme"]:[];let v=ve()(s.config,[...g,...h]);let k=getColorFromValue(v);if(k&&typeof k!=="string"&&((f=k.alpha)!==null&&f!==void 0?f:1)!==0){u.push({range:l.valueRange,color:culoriColorToVscodeColor(k)})}}));return u}))}var Yt=__nccwpck_require__(88685);var Kt=__nccwpck_require__(89227);var Qt=__nccwpck_require__.n(Kt);var Jt=__nccwpck_require__(77410);var Xt=__nccwpck_require__.n(Jt);function getModuleDependencies(s){return _getModuleDependencies(s).map((({file:s})=>s)).filter((l=>l!==s))}function createModule(s){const l=g().readFileSync(s,"utf-8");const u=Xt()(l);return{file:s,requires:u}}function _getModuleDependencies(s){const l=createModule(s);const u=[l];for(const s of u){s.requires.filter((s=>s.startsWith("./")||s.startsWith("../"))).forEach((l=>{try{const h=f().dirname(s.file);const g=Qt().sync(l,{basedir:h});const v=createModule(g);u.push(v)}catch(s){}}))}return u}var Zt=__nccwpck_require__(42357);var ir=__nccwpck_require__.n(Zt);var ar=__nccwpck_require__(53968);const lr=`/*\n1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)\n2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)\n*/\n\n*,\n::before,\n::after {\n box-sizing: border-box; /* 1 */\n border-width: 0; /* 2 */\n border-style: solid; /* 2 */\n border-color: currentColor; /* 2 */\n}\n\n::before,\n::after {\n --tw-content: '';\n}\n\n/*\n1. Use a consistent sensible line-height in all browsers.\n2. Prevent adjustments of font size after orientation changes in iOS.\n3. Use a more readable tab size.\n4. Use the user's configured \`sans\` font-family by default.\n*/\n\nhtml {\n line-height: 1.5; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n -moz-tab-size: 4; /* 3 */\n tab-size: 4; /* 3 */\n font-family: theme('fontFamily.sans', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"); /* 4 */\n}\n\n/*\n1. Remove the margin in all browsers.\n2. Inherit line-height from \`html\` so users can set them as a class directly on the \`html\` element.\n*/\n\nbody {\n margin: 0; /* 1 */\n line-height: inherit; /* 2 */\n}\n\n/*\n1. Add the correct height in Firefox.\n2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)\n3. Ensure horizontal rules are visible by default.\n*/\n\nhr {\n height: 0; /* 1 */\n color: inherit; /* 2 */\n border-top-width: 1px; /* 3 */\n}\n\n/*\nAdd the correct text decoration in Chrome, Edge, and Safari.\n*/\n\nabbr:where([title]) {\n text-decoration: underline dotted;\n}\n\n/*\nRemove the default font size and weight for headings.\n*/\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n font-size: inherit;\n font-weight: inherit;\n}\n\n/*\nReset links to optimize for opt-in styling instead of opt-out.\n*/\n\na {\n color: inherit;\n text-decoration: inherit;\n}\n\n/*\nAdd the correct font weight in Edge and Safari.\n*/\n\nb,\nstrong {\n font-weight: bolder;\n}\n\n/*\n1. Use the user's configured \`mono\` font family by default.\n2. Correct the odd \`em\` font sizing in all browsers.\n*/\n\ncode,\nkbd,\nsamp,\npre {\n font-family: theme('fontFamily.mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace); /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/*\nAdd the correct font size in all browsers.\n*/\n\nsmall {\n font-size: 80%;\n}\n\n/*\nPrevent \`sub\` and \`sup\` elements from affecting the line height in all browsers.\n*/\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/*\n1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)\n2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)\n3. Remove gaps between table borders by default.\n*/\n\ntable {\n text-indent: 0; /* 1 */\n border-color: inherit; /* 2 */\n border-collapse: collapse; /* 3 */\n}\n\n/*\n1. Change the font styles in all browsers.\n2. Remove the margin in Firefox and Safari.\n3. Remove default padding in all browsers.\n*/\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit; /* 1 */\n font-size: 100%; /* 1 */\n line-height: inherit; /* 1 */\n color: inherit; /* 1 */\n margin: 0; /* 2 */\n padding: 0; /* 3 */\n}\n\n/*\nRemove the inheritance of text transform in Edge and Firefox.\n*/\n\nbutton,\nselect {\n text-transform: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Remove default button styles.\n*/\n\nbutton,\n[type='button'],\n[type='reset'],\n[type='submit'] {\n -webkit-appearance: button; /* 1 */\n background-color: transparent; /* 2 */\n background-image: none; /* 2 */\n}\n\n/*\nUse the modern Firefox focus style for all focusable elements.\n*/\n\n:-moz-focusring {\n outline: auto;\n}\n\n/*\nRemove the additional \`:invalid\` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)\n*/\n\n:-moz-ui-invalid {\n box-shadow: none;\n}\n\n/*\nAdd the correct vertical alignment in Chrome and Firefox.\n*/\n\nprogress {\n vertical-align: baseline;\n}\n\n/*\nCorrect the cursor style of increment and decrement buttons in Safari.\n*/\n\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n\n/*\n1. Correct the odd appearance in Chrome and Safari.\n2. Correct the outline style in Safari.\n*/\n\n[type='search'] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/*\nRemove the inner padding in Chrome and Safari on macOS.\n*/\n\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Change font properties to \`inherit\` in Safari.\n*/\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/*\nAdd the correct display in Chrome and Safari.\n*/\n\nsummary {\n display: list-item;\n}\n\n/*\nRemoves the default spacing and border for appropriate elements.\n*/\n\nblockquote,\ndl,\ndd,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\nhr,\nfigure,\np,\npre {\n margin: 0;\n}\n\nfieldset {\n margin: 0;\n padding: 0;\n}\n\nlegend {\n padding: 0;\n}\n\nol,\nul,\nmenu {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n/*\nPrevent resizing textareas horizontally by default.\n*/\n\ntextarea {\n resize: vertical;\n}\n\n/*\n1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)\n2. Set the default placeholder color to the user's configured gray 400 color.\n*/\n\ninput::placeholder,\ntextarea::placeholder {\n opacity: 1; /* 1 */\n color: theme('colors.gray.400', #9ca3af); /* 2 */\n}\n\n/*\nSet the default cursor for buttons.\n*/\n\nbutton,\n[role="button"] {\n cursor: pointer;\n}\n\n/*\nMake sure disabled buttons don't get the pointer cursor.\n*/\n:disabled {\n cursor: default;\n}\n\n/*\n1. Make replaced elements \`display: block\` by default. (https://github.com/mozdevs/cssremedy/issues/14)\n2. Add \`vertical-align: middle\` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)\n This can trigger a poorly considered lint error in some tools but is included by design.\n*/\n\nimg,\nsvg,\nvideo,\ncanvas,\naudio,\niframe,\nembed,\nobject {\n display: block; /* 1 */\n vertical-align: middle; /* 2 */\n}\n\n/*\nConstrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)\n*/\n\nimg,\nvideo {\n max-width: 100%;\n height: auto;\n}\n\n/*\nEnsure the default browser behavior of the \`hidden\` attribute.\n*/\n\n[hidden] {\n display: none;\n}`;var ur=undefined&&undefined.__awaiter||function(s,l,u,f){function adopt(s){return s instanceof u?s:new u((function(l){l(s)}))}return new(u||(u=Promise))((function(u,h){function fulfilled(s){try{step(f.next(s))}catch(s){h(s)}}function rejected(s){try{step(f["throw"](s))}catch(s){h(s)}}function step(s){s.done?u(s.value):adopt(s.value).then(fulfilled,rejected)}step((f=f.apply(s,l||[])).next())}))};let hr=h.readFileSync;h.readFileSync=function(s,...l){if(s===u.join(__dirname,"css/preflight.css")){return lr}return hr(s,...l)};const _r="{tailwind,tailwind.config}.{js,cjs}";const Er="{package.json,package-lock.json,yarn.lock,pnpm-lock.yaml}";const Rr=['"',"'","`"," ",".","[","!","/"];const Ir=Object.keys(xt());const Lr=process.argv.length<=2?(0,B.createConnection)(process.stdin,process.stdout):(0,B.createConnection)();console.log=Lr.console.log.bind(Lr.console);console.error=Lr.console.error.bind(Lr.console);process.on("unhandledRejection",(s=>{Lr.console.error(formatError(`Unhandled exception`,s))}));function deletePropertyPath(s,l){if(typeof l==="string"){l=l.split(".")}for(let u=0;u<l.length-1;u++){s=s[l[u]];if(typeof s==="undefined"){return}}delete s[l.pop()]}function getConfigId(s,l){return JSON.stringify([s,...l].map((s=>[s,h.statSync(s).mtimeMs])))}function first(...s){for(let l=0;l<s.length;l++){let u=s[l];if(l===s.length-1){return u()}else{try{return u()}catch(s){}}}}function firstOptional(...s){for(let l=0;l<s.length;l++){let u=s[l];try{return u()}catch(s){}}}function getMode(s){if(typeof s.mode!=="undefined"){return s.mode}if(Array.isArray(s.presets)){for(let l=s.presets.length-1;l>=0;l--){let u=getMode(s.presets[l]);if(typeof u!=="undefined"){return u}}}}function deleteMode(s){delete s.mode;if(Array.isArray(s.presets)){for(let l of s.presets){deleteMode(l)}}}function createProjectService(s,f,g,v){var k,O,M,q;return ur(this,void 0,void 0,(function*(){const Y=[];const re=new Map;function getConfiguration(s){return ur(this,void 0,void 0,(function*(){if(re.has(s)){return re.get(s)}let[l,u]=yield Promise.all([f.workspace.getConfiguration({section:"editor",scopeUri:s}),f.workspace.getConfiguration({section:"tailwindCSS",scopeUri:s})]);let h={editor:l,tailwindCSS:u};re.set(s,h);return h}))}const ie={enabled:false,editor:{connection:f,folder:s,globalSettings:yield getConfiguration(),userLanguages:g.initializationOptions.userLanguages?g.initializationOptions.userLanguages:{},capabilities:{configuration:true,diagnosticRelatedInformation:true},documents:v.documents,getConfiguration:getConfiguration,getDocumentSymbols:s=>f.sendRequest("@/tailwindCSS/getDocumentSymbols",{uri:s})}};let ae;let ue;let pe=(O=(k=ie.editor.globalSettings.tailwindCSS.files)===null||k===void 0?void 0:k.exclude)!==null&&O!==void 0?O:jt;function onFileEvents(s){let l=false;let u=false;for(let f of s){let s=se()(f.file);for(let l of pe){if(ce()(s,l,{dot:true})){continue}}let h=ce()(s,`**/${_r}`,{dot:true});let g=ce()(s,`**/${Er}`,{dot:true});let v=ie.dependencies&&ie.dependencies.includes(f.file);if(!h&&!g&&!v)continue;if(f.type===B.FileChangeType.Created){l=true;break}else if(f.type===B.FileChangeType.Changed){if(!ie.enabled||g){l=true;break}else{u=true}}else if(f.type===B.FileChangeType.Deleted){if(!ie.enabled||g||h){l=true;break}else{u=true}}}if(l){tryInit()}else if(u){tryRebuild()}}if((q=(M=g.capabilities.workspace)===null||M===void 0?void 0:M.didChangeWatchedFiles)===null||q===void 0?void 0:q.dynamicRegistration){f.onDidChangeWatchedFiles((({changes:s})=>{onFileEvents(s.map((({uri:s,type:l})=>({file:te.URI.parse(s).fsPath,type:l}))))}));f.client.register(B.DidChangeWatchedFilesNotification.type,{watchers:[{globPattern:`**/${_r}`},{globPattern:`**/${Er}`}]})}else if(ar.Fp()){let l={create:B.FileChangeType.Created,update:B.FileChangeType.Changed,delete:B.FileChangeType.Deleted};let f=yield ar.Ld(s,((s,u)=>{onFileEvents(u.map((s=>({file:s.path,type:l[s.type]}))))}),{ignore:pe.map((l=>u.resolve(s,l.replace(/^[*/]+/,"").replace(/[*/]+$/,""))))});Y.push({dispose(){f.unsubscribe()}})}else{let l=__nccwpck_require__(23002).Y;ue=l([`**/${_r}`,`**/${Er}`],{cwd:s,ignorePermissionErrors:true,ignoreInitial:true,ignored:pe,awaitWriteFinish:{stabilityThreshold:100,pollInterval:20}});yield new Promise((s=>{ue.on("ready",(()=>s()))}));ue.on("add",(s=>onFileEvents([{file:s,type:B.FileChangeType.Created}]))).on("change",(s=>onFileEvents([{file:s,type:B.FileChangeType.Changed}]))).on("unlink",(s=>onFileEvents([{file:s,type:B.FileChangeType.Deleted}])));Y.push({dispose(){ue.close()}})}function registerCapabilities(s=[]){if(supportsDynamicRegistration(f,g)){if(ae){ae.then((s=>s.dispose()))}let l=B.BulkRegistration.create();l.add(B.HoverRequest.type,{documentSelector:null});l.add(B.DocumentColorRequest.type,{documentSelector:null});l.add(B.CodeActionRequest.type,{documentSelector:null});l.add(B.CompletionRequest.type,{documentSelector:null,resolveProvider:true,triggerCharacters:[...Rr,ie.separator]});if(s.length>0){l.add(B.DidChangeWatchedFilesNotification.type,{watchers:s.map((s=>({globPattern:s})))})}ae=f.client.register(l)}}function resetState(){diagnosticsProvider_clearAllDiagnostics(ie);Object.keys(ie).forEach((s=>{if(s!=="editor"&&s!=="dependencies"){delete ie[s]}}));ie.enabled=false;registerCapabilities(ie.dependencies)}function tryInit(){return ur(this,void 0,void 0,(function*(){try{yield init()}catch(s){resetState();showError(f,s)}}))}function tryRebuild(){return ur(this,void 0,void 0,(function*(){try{yield rebuild()}catch(s){resetState();showError(f,s)}}))}function clearRequireCache(){Object.keys(require.cache).forEach((s=>{if(!s.endsWith(".node")){delete require.cache[s]}}));Object.keys(l()._pathCache).forEach((s=>{delete l()._pathCache[s]}))}function init(){var l,f;return ur(this,void 0,void 0,(function*(){clearRequireCache();let[h]=(yield ne()([`**/${_r}`],{cwd:s,ignore:(f=(l=ie.editor.globalSettings.tailwindCSS.files)===null||l===void 0?void 0:l.exclude)!==null&&f!==void 0?f:jt,onlyFiles:true,absolute:true,suppressErrors:true,dot:true,concurrency:Math.max(oe.cpus().length,1)})).sort(((s,l)=>s.split("/").length-l.split("/").length)).map(u.normalize);if(!h){throw new SilentError("No config file found.")}const g=le().sync((l=>{let f=u.join(l,".pnp.js");if(le().sync.exists(f)){return f}f=u.join(l,".pnp.cjs");if(le().sync.exists(f)){return f}if(l===s){return le().stop}}),{cwd:s});if(g){let s=require(g);s.setup();setPnpApi(s)}const v=getModuleDependencies(h);const k=getConfigId(h,v);const O=u.dirname(h);let M;let q;let B;let Y;let te;let re;let se;let ae;let ue;let ce={future:[],experimental:[]};let pe;try{const l=resolveFrom(O,"tailwindcss");const f=resolveFrom(O,"tailwindcss/package.json");const g=u.dirname(f);const v=resolveFrom(g,"postcss");const ne=resolveFrom(g,"postcss/package.json");const oe=u.dirname(ne);const le=resolveFrom(g,"postcss-selector-parser");re=require(ne).version;te=require(f).version;se=Object.keys(fe).map((s=>{try{return require(resolveFrom(O,`${s}/package.json`)).version}catch(s){return""}})).join(",");if(ie.enabled&&re===ie.modules.postcss.version&&te===ie.modules.tailwindcss.version&&se===ie.pluginVersions&&h===ie.configPath&&k===ie.configId){return}console.log(`Found Tailwind CSS config file: ${h}`);q=require(v);B=require(le);console.log(`Loaded postcss v${re}: ${oe}`);M=require(l);console.log(`Loaded tailwindcss v${te}: ${g}`);try{ue=require(resolveFrom(g,"./resolveConfig.js"))}catch(s){try{const s=require(resolveFrom(g,"./lib/util/resolveConfig.js"));const l=require(resolveFrom(g,"./stubs/defaultConfig.stub.js"));ue=u=>s([u,l])}catch(s){try{const s=require(resolveFrom(g,"./lib/util/mergeConfigWithDefaults.js"));const l=require(resolveFrom(g,"./defaultConfig.js"));ue=u=>s(u,l())}catch(s){throw Error("Failed to load resolveConfig function.")}}}if(he().gte(te,"1.4.0")&&he().lte(te,"1.99.0")){const l=resolveFrom(g,"browserslist");ae=require(l)(undefined,{path:s})}if(he().gte(te,"1.99.0")){pe=firstOptional((()=>require(resolveFrom(g,"./lib/lib/substituteClassApplyAtRules"))))}else if(he().gte(te,"1.7.0")){pe=require(resolveFrom(g,"./lib/flagged/applyComplexClasses"))}try{ce=require(resolveFrom(g,"./lib/featureFlags.js")).default}catch(s){}let de=new Set;let ge=q.root();let ve={opts:{},messages:[]};let registerDependency=()=>{};try{let s=first((()=>{let s=require(resolveFrom(O,"tailwindcss/lib/lib/setupContextUtils")).createContext;ir().strictEqual(typeof s,"function");return l=>s(l.config)}),(()=>{let s=require(resolveFrom(O,"tailwindcss/lib/jit/lib/setupContextUtils")).createContext;ir().strictEqual(typeof s,"function");return l=>s(l.config)}),(()=>{let s=require(resolveFrom(O,"tailwindcss/lib/jit/lib/setupTrackingContext")).default;ir().strictEqual(typeof s,"function");return l=>s(l.configPath,de,registerDependency)(ve,ge)}),(()=>{let s=require(resolveFrom(O,"tailwindcss/lib/jit/lib/setupContext")).default;ir().strictEqual(typeof s,"function");return l=>s(l.configPath,de)(ve,ge)}));Y={generateRules:{module:first((()=>require(resolveFrom(O,"tailwindcss/lib/lib/generateRules")).generateRules),(()=>require(resolveFrom(O,"tailwindcss/lib/jit/lib/generateRules")).generateRules))},createContext:{module:s},expandApplyAtRules:{module:first((()=>require(resolveFrom(O,"tailwindcss/lib/lib/expandApplyAtRules")).default),(()=>require(resolveFrom(O,"tailwindcss/lib/jit/lib/expandApplyAtRules")).default))}}}catch(s){try{let s=require(resolveFrom(O,"tailwindcss/jit/lib/setupContext"));Y={generateRules:{module:require(resolveFrom(O,"tailwindcss/jit/lib/generateRules")).generateRules},createContext:{module:l=>s(l.configPath,de)(ve,ge)},expandApplyAtRules:{module:require(resolveFrom(O,"tailwindcss/jit/lib/expandApplyAtRules"))}}}catch(s){}}}catch(s){M=__nccwpck_require__(69351);ue=__nccwpck_require__(86410);q=__nccwpck_require__(87802);te=__nccwpck_require__(43581).version;re=__nccwpck_require__(54501).i8;B=__nccwpck_require__(75266);Y={generateRules:{module:__nccwpck_require__(27159).generateRules},createContext:{module:s=>__nccwpck_require__(82648).createContext(s.config)},expandApplyAtRules:{module:__nccwpck_require__(16388).default}};console.log("Failed to load workspace modules.");console.log(`Using bundled version of \`tailwindcss\`: v${te}`);console.log(`Using bundled version of \`postcss\`: v${re}`)}ie.configPath=h;ie.modules={tailwindcss:{version:te,module:M},postcss:{version:re,module:q},postcssSelectorParser:{module:B},resolveConfig:{module:ue},jit:Y};ie.browserslist=ae;ie.featureFlags=ce;ie.version=te;ie.pluginVersions=se;try{ie.corePlugins=Object.keys(require(resolveFrom(u.dirname(ie.configPath),"tailwindcss/lib/plugins/index.js")))}catch(s){}if(pe&&!pe.default.__patched){let s=pe.default;pe.default=(l,...u)=>{if(ie.jit){return ie.modules.jit.expandApplyAtRules.module(ie.jitContext)}let f=klona(l);f.separator=typeof ie.separator==="undefined"?":":ie.separator;let h=s(f,...u);return s=>ur(this,void 0,void 0,(function*(){s.walkRules((s=>{const l=s.selector.replace(/__TWSEP__(.*?)__TWSEP__/g,"$1");if(l!==s.selector){s.before(q.comment({text:"__ORIGINAL_SELECTOR__:"+s.selector}));s.selector=l}}));yield h(s);s.walkComments((s=>{if(s.text.startsWith("__ORIGINAL_SELECTOR__:")){s.next().selector=s.text.replace(/^__ORIGINAL_SELECTOR__:/,"");s.remove()}}));return s}))};pe.default.__patched=true}yield tryRebuild()}))}function rebuild(){return ur(this,void 0,void 0,(function*(){clearRequireCache();const{tailwindcss:s,postcss:l,resolveConfig:u}=ie.modules;const f=he().gte(s.version,"0.99.0")?["separator"]:["options","separator"];let g=[];let v;let k=he().gte(s.version,"2.99.0");let O=new Hook(h.realpathSync(ie.configPath),(s=>{v=klona(s);let l=ve()(s,f);if(typeof l!=="string"){l=":"}we()(s,f,`__TWSEP__${l}__TWSEP__`);s[k?"content":"purge"]=[];let u=getMode(s);deleteMode(s);let h=k||ie.modules.jit&&u==="jit";if(h){ie.jit=true;s.variants=[];if(Array.isArray(s.presets)){for(let l of s.presets){g.push(l.variants);l.variants=[]}}}else{ie.jit=false}if(ie.corePlugins){let l={};for(let s of ie.corePlugins){l[s]=true}s.corePlugins=l}if(Array.isArray(s.plugins)){s.plugins=s.plugins.map((s=>{if(s.__isOptionsFunction){s=s()}if(typeof s==="function"){let newPlugin=(...l)=>{if(!l[0].matchUtilities){l[0].matchUtilities=()=>{}}return s(...l)};newPlugin.__intellisense_cache_bust=Math.random();return newPlugin}if(s.handler){return Object.assign(Object.assign({},s),{handler:(...l)=>{if(!l[0].matchUtilities){l[0].matchUtilities=()=>{}}return s.handler(...l)},__intellisense_cache_bust:Math.random()})}return s}))}return s}));try{require(ie.configPath)}catch(s){O.unhook();throw s}if(!v){throw new SilentError(`Failed to load config file: ${ie.configPath}`)}try{ie.config=u.module(v);ie.separator=ie.config.separator;if(ie.jit){ie.jitContext=ie.modules.jit.createContext.module(ie);ie.jitContext.tailwindConfig.separator=ie.config.separator;if(ie.jitContext.getClassList){ie.classList=ie.jitContext.getClassList().filter((s=>s!=="*")).map((s=>[s,{color:getColor(ie,s)}]))}}else{delete ie.jitContext;delete ie.classList}}catch(s){O.unhook();throw s}let M;if(ie.classList){O.unhook()}else{try{M=yield l.module([s.module(ie.configPath)]).process([he().gte(s.version,"0.99.0")?"base":"preflight","components","utilities"].map((s=>`/*__tw_intellisense_layer_${s}__*/\n@tailwind ${s};`)).join("\n"),{from:undefined})}catch(s){throw s}finally{O.unhook()}}if(ie.dependencies){ue===null||ue===void 0?void 0:ue.unwatch(ie.dependencies)}ie.dependencies=getModuleDependencies(ie.configPath);ue===null||ue===void 0?void 0:ue.add(ie.dependencies);ie.configId=getConfigId(ie.configPath,ie.dependencies);ie.plugins=yield getPlugins(v);if(M){ie.classNames=yield Oe(M.root)}ie.variants=getVariants(ie);let q=ve()(ie.config,"theme.screens",ve()(ie.config,"screens",{}));ie.screens=server_isObject(q)?Object.keys(q):[];ie.enabled=true;diagnosticsProvider_updateAllDiagnostics(ie);registerCapabilities(ie.dependencies)}))}return{state:ie,tryInit:tryInit,dispose(){for(let{dispose:s}of Y){s()}},onUpdateSettings(s){var l,u,h,g;re.clear();let v=(u=(l=ie.editor.globalSettings.tailwindCSS.files)===null||l===void 0?void 0:l.exclude)!==null&&u!==void 0?u:jt;ie.editor.globalSettings=s;if(!equal(v,(g=(h=s.tailwindCSS.files)===null||h===void 0?void 0:h.exclude)!==null&&g!==void 0?g:jt)){tryInit()}else{if(ie.enabled){diagnosticsProvider_updateAllDiagnostics(ie)}if(s.editor.colorDecorators){registerCapabilities(ie.dependencies)}else{f.sendNotification("@/tailwindCSS/clearColors")}}},onHover(s){return ur(this,void 0,void 0,(function*(){if(!ie.enabled)return null;let l=v.getDocument(s.textDocument.uri);if(!l)return null;if(yield isExcluded(ie,l))return null;return doHover(ie,l,s.position)}))},onCompletion(s){return ur(this,void 0,void 0,(function*(){if(!ie.enabled)return null;let l=v.getDocument(s.textDocument.uri);if(!l)return null;if(yield isExcluded(ie,l))return null;return doComplete(ie,l,s.position,s.context)}))},onCompletionResolve(s){if(!ie.enabled)return null;return resolveCompletionItem(ie,s)},onCodeAction(s){if(!ie.enabled)return null;return doCodeActions(ie,s)},provideDiagnostics:(0,Yt.debounce)((s=>{if(!ie.enabled)return;diagnosticsProvider_provideDiagnostics(ie,s)}),500),onDocumentColor(s){return ur(this,void 0,void 0,(function*(){if(!ie.enabled)return[];let l=v.getDocument(s.textDocument.uri);if(!l)return[];if(yield isExcluded(ie,l))return null;return getDocumentColors(ie,l)}))},onColorPresentation(s){var l;return ur(this,void 0,void 0,(function*(){let u=v.getDocument(s.textDocument.uri);let f=u.getText(s.range);let h=f.match(new RegExp(`-\\[(${Ir.join("|")}|(?:(?:#|rgba?\\(|hsla?\\())[^\\]]+)\\]$`,"i"));if(h===null)return[];let g=h[1];let k=Ir.includes(g);let O={mode:"rgb",r:s.color.red,g:s.color.green,b:s.color.blue,alpha:s.color.alpha};let M=wt.formatHex8(O);if(!k&&(g.length===4||g.length===5)){let[,...s]=(l=M.match(/^#([a-f\d])\1([a-f\d])\2([a-f\d])\3(?:([a-f\d])\4)?$/i))!==null&&l!==void 0?l:[];if(s.length){M=`#${s.filter(Boolean).join("")}`}}if(M.length===5){M=M.replace(/f$/,"")}else if(M.length===9){M=M.replace(/ff$/,"")}let q=f.substr(0,h.index);return[M,wt.formatRgb(O).replace(/ /g,""),wt.formatHsl(O).replace(/ /g,"").replace(/\d+\.\d+(%?)/g,((s,l)=>`${Math.round(parseFloat(s))}${l}`))].map((s=>({label:`${q}-[${s}]`})))}))}}}))}function server_isObject(s){return Object.prototype.toString.call(s)==="[object Object]"}function runPlugin(s,l,u={}){let f=l.config;let h=l.modules.postcss.module;let g=l.browserslist;const v=g&&g.includes("ie 11")?"ie11":"relaxed";const k=typeof s==="function"?s:s.handler;try{k(Object.assign({addUtilities:()=>{},addComponents:()=>{},addBase:()=>{},matchUtilities:()=>{},addVariant:()=>{},e:s=>s,prefix:s=>s,theme:(s,l)=>ve()(f,`theme.${s}`,l),variants:()=>[],config:(s,l)=>ve()(f,s,l),corePlugins:s=>{if(Array.isArray(f.corePlugins)){return f.corePlugins.includes(s)}return ve()(f,`corePlugins.${s}`,true)},target:s=>{if(typeof f.target==="string"){return f.target==="browserslist"?v:f.target}const[l,u]=ve()(f,"target");const h=ve()(u,s,l);return h==="browserslist"?v:h},postcss:h},u))}catch(s){}}function server_isAtRule(s){return s.type==="atrule"}function getVariants(s){if(s.jit){function escape(l){let u=s.modules.postcssSelectorParser.module.className();u.value=l;return ve()(u,"raws.value",u.value)}let l={};Array.from(s.jitContext.variantMap).forEach((([u,f])=>{let h=(Array.isArray(f[0])?f:[f]).map((([s,l])=>l));let g="__variant_placeholder__";let v=s.modules.postcss.module.root({nodes:[s.modules.postcss.module.rule({selector:`.${escape(g)}`,nodes:[]})]});let k=s.modules.postcssSelectorParser.module((s=>s.first.filter((({type:s})=>s==="class")).pop().value));function getClassNameFromSelector(s){return k.transformSync(s)}function modifySelectors(s){v.each((l=>{if(l.type!=="rule"){return}l.selectors=l.selectors.map((l=>s({get className(){return getClassNameFromSelector(l)},selector:l})))}));return v}let O=[];for(let l of h){let f;let h=v.clone();let k=l({container:h,separator:s.separator,modifySelectors:modifySelectors,format:s=>{f=s.replace(/:merge\(([^)]+)\)/g,"$1")},wrap:s=>{if(server_isAtRule(s)){f=`@${s.name} ${s.params}`}}});if(!f){f=k}if(f){O.push(f);continue}h.walkDecls((s=>{s.remove()}));f=h.toString().replace(`.${escape(`${u}:${g}`)}`,"&").replace(/(?<!\\)[{}]/g,"").replace(/\s*\n\s*/g," ").trim();if(!f.includes(g)){O.push(f)}}l[u]=O.join(", ")||null}));return l}let l=s.config;let u=s.modules.tailwindcss.version;let f=["responsive","hover"];he().gte(u,"0.3.0")&&f.push("focus","group-hover");he().gte(u,"0.5.0")&&f.push("active");he().gte(u,"0.7.0")&&f.push("focus-within");he().gte(u,"1.0.0-beta.1")&&f.push("default");he().gte(u,"1.1.0")&&f.push("first","last","odd","even","disabled","visited");he().gte(u,"1.3.0")&&f.push("group-focus");he().gte(u,"1.5.0")&&f.push("focus-visible","checked");he().gte(u,"1.6.0")&&f.push("motion-safe","motion-reduce");he().gte(u,"2.0.0-alpha.1")&&f.push("dark");let h=Array.isArray(l.plugins)?l.plugins:[];h.forEach((l=>{runPlugin(l,s,{addVariant:s=>{f.push(s)}})}));return f.reduce(((s,l)=>Object.assign(Object.assign({},s),{[l]:null})),{})}function getPlugins(s){return ur(this,void 0,void 0,(function*(){let l=s.plugins;if(!Array.isArray(l)){return[]}return Promise.all(l.map((s=>ur(this,void 0,void 0,(function*(){let l=s.config;if(!server_isObject(l)){l={}}let f={theme:server_isObject(l.theme)?Object.keys(l.theme):[],variants:server_isObject(l.variants)?Object.keys(l.variants):[]};const h=s.handler||s;const g=typeof h.name==="string"&&h.name!=="handler"&&h.name!==""?h.name:null;try{h()}catch(s){const l=ke.parse(s);if(l.length===0){return{name:g}}const h=l[0].fileName;const v=u.dirname(h);let k=Se().sync({cwd:v});if(!k){return{name:g}}let O;try{O=require(O)}catch(s){return{name:g}}if(O.name&&u.resolve(v,O.main||"index.js")===h){return{name:O.name,homepage:O.homepage,contributes:f}}}return{name:g}})))))}))}class TW{constructor(s){this.connection=s;this.initialized=false;this.documentService=new DocumentService(this.connection);this.workspaces=new Map;this.projects=new Map}init(){var s;return ur(this,void 0,void 0,(function*(){if(this.initialized)return;this.initialized=true;const s=false?0:this.initializeParams.rootPath?[{name:"",fsPath:normalizeFileNameToFsPath(this.initializeParams.rootPath)}]:[];if(s.length===0){console.error("No workspace folders found, not initializing.");return}yield Promise.all(s.map((s=>ur(this,void 0,void 0,(function*(){return this.addProject(s.fsPath,this.initializeParams)})))));this.setupLSPHandlers();this.connection.onDidChangeConfiguration((({settings:s})=>ur(this,void 0,void 0,(function*(){for(let[,l]of this.projects){l.onUpdateSettings(s)}}))));this.connection.onShutdown((()=>{this.dispose()}));this.documentService.onDidChangeContent((s=>{const l=Array.from(this.projects.values())[0];l===null||l===void 0?void 0:l.provideDiagnostics(s.document)}))}))}addProject(s,l){return ur(this,void 0,void 0,(function*(){if(this.projects.has(s)){yield this.projects.get(s).tryInit()}else{const u=yield createProjectService(s,this.connection,l,this.documentService);yield u.tryInit();this.projects.set(s,u)}}))}setupLSPHandlers(){this.connection.onHover(this.onHover.bind(this));this.connection.onCompletion(this.onCompletion.bind(this));this.connection.onCompletionResolve(this.onCompletionResolve.bind(this));this.connection.onDocumentColor(this.onDocumentColor.bind(this));this.connection.onColorPresentation(this.onColorPresentation.bind(this));this.connection.onCodeAction(this.onCodeAction.bind(this))}onDocumentColor(s){var l;return ur(this,void 0,void 0,(function*(){const u=Array.from(this.projects.values())[0];return(l=u===null||u===void 0?void 0:u.onDocumentColor(s))!==null&&l!==void 0?l:[]}))}onColorPresentation(s){var l;return ur(this,void 0,void 0,(function*(){const u=Array.from(this.projects.values())[0];return(l=u===null||u===void 0?void 0:u.onColorPresentation(s))!==null&&l!==void 0?l:[]}))}onHover(s){var l;return ur(this,void 0,void 0,(function*(){const u=Array.from(this.projects.values())[0];return(l=u===null||u===void 0?void 0:u.onHover(s))!==null&&l!==void 0?l:null}))}onCompletion(s){var l;return ur(this,void 0,void 0,(function*(){const u=Array.from(this.projects.values())[0];return(l=u===null||u===void 0?void 0:u.onCompletion(s))!==null&&l!==void 0?l:null}))}onCompletionResolve(s){var l;return ur(this,void 0,void 0,(function*(){const u=Array.from(this.projects.values())[0];return(l=u===null||u===void 0?void 0:u.onCompletionResolve(s))!==null&&l!==void 0?l:null}))}onCodeAction(s){var l;const u=Array.from(this.projects.values())[0];return(l=u===null||u===void 0?void 0:u.onCodeAction(s))!==null&&l!==void 0?l:null}listen(){this.connection.listen()}dispose(){for(let[,s]of this.projects){s.dispose()}}}class DocumentService{constructor(s){this.documents=new B.TextDocuments(Y.TextDocument);this.documents.listen(s)}getDocument(s){return this.documents.get(s)}getAllDocuments(){return this.documents.all()}get onDidChangeContent(){return this.documents.onDidChangeContent}get onDidClose(){return this.documents.onDidClose}}function supportsDynamicRegistration(s,l){return s.onInitialized&&l.capabilities.textDocument.hover.dynamicRegistration&&l.capabilities.textDocument.colorProvider.dynamicRegistration&&l.capabilities.textDocument.codeAction.dynamicRegistration&&l.capabilities.textDocument.completion.dynamicRegistration}const jr=new TW(Lr);Lr.onInitialize((s=>ur(void 0,void 0,void 0,(function*(){jr.initializeParams=s;if(supportsDynamicRegistration(Lr,s)){return{capabilities:{textDocumentSync:B.TextDocumentSyncKind.Full}}}jr.init();return{capabilities:{textDocumentSync:B.TextDocumentSyncKind.Full,hoverProvider:true,colorProvider:true,codeActionProvider:true,completionProvider:{resolveProvider:true,triggerCharacters:[...Rr,":"]}}}}))));Lr.onInitialized((()=>ur(void 0,void 0,void 0,(function*(){yield jr.init()}))));jr.listen()})();module.exports=__webpack_exports__})();