solorice/vscode/extensions/streetsidesoftware.code-spell-checker-2.1.11/packages/client/dist/extension.js
2022-04-28 20:54:44 +03:00

3 lines
717 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*! For license information please see extension.js.LICENSE.txt */
(()=>{var e={1456:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageTypes=void 0,t.MessageTypes={Debug:"Debug",Info:"Info",Warning:"Warning"}},2130:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6449:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConfigFields=void 0,t.ConfigFields={allowCompoundWords:"allowCompoundWords",cache:"cache",caseSensitive:"caseSensitive",description:"description",dictionaries:"dictionaries",dictionaryDefinitions:"dictionaryDefinitions",enabled:"enabled",enabledLanguageIds:"enabledLanguageIds",enableFiletypes:"enableFiletypes",enableGlobDot:"enableGlobDot",failFast:"failFast",features:"features",files:"files",flagWords:"flagWords",gitignoreRoot:"gitignoreRoot",globRoot:"globRoot",ignorePaths:"ignorePaths",ignoreRegExpList:"ignoreRegExpList",ignoreWords:"ignoreWords",import:"import",includeRegExpList:"includeRegExpList",language:"language",languageId:"languageId",languageSettings:"languageSettings",maxDuplicateProblems:"maxDuplicateProblems",maxNumberOfProblems:"maxNumberOfProblems",minWordLength:"minWordLength",name:"name",noConfigSearch:"noConfigSearch",noSuggestDictionaries:"noSuggestDictionaries",numSuggestions:"numSuggestions",overrides:"overrides",patterns:"patterns",pnpFiles:"pnpFiles",readonly:"readonly",reporters:"reporters",showStatus:"showStatus",spellCheckDelayMs:"spellCheckDelayMs",suggestionNumChanges:"suggestionNumChanges",suggestionsTimeout:"suggestionsTimeout",useGitignore:"useGitignore",usePnP:"usePnP",userWords:"userWords",words:"words"}},3158:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.ConfigFields=void 0;var o=n(6449);Object.defineProperty(t,"ConfigFields",{enumerable:!0,get:function(){return o.ConfigFields}}),r(n(1456),t),r(n(2130),t)},7092:e=>{const t=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9];let n;const i=e=>e<1e5?e<100?e<10?0:1:e<1e4?e<1e3?2:3:4:e<1e7?e<1e6?5:6:e<1e9?e<1e8?7:8:9;function r(e,n){if(e===n)return 0;if(~~e===e&&~~n===n){if(0===e||0===n)return e<n?-1:1;if(e<0||n<0){if(n>=0)return-1;if(e>=0)return 1;e=-e,n=-n}const r=i(e),o=i(n);let s=0;return r<o?(e*=t[o-r-1],n/=10,s=-1):r>o&&(n*=t[r-o-1],e/=10,s=1),e===n?s:e<n?-1:1}const r=String(e),o=String(n);return r===o?0:r<o?-1:1}function o(e,t,i,r){let o=t+1;if(o===i)return 1;if(r(e[o++],e[t])<0){for(;o<i&&r(e[o],e[o-1])<0;)o++;s(e,t,o),s(n,t,o)}else for(;o<i&&r(e[o],e[o-1])>=0;)o++;return o-t}function s(e,t,n){for(n--;t<n;){const i=e[t];e[t++]=e[n],e[n--]=i}}function a(e,t,i,r,o){for(r===t&&r++;r<i;r++){const i=e[r],s=n[r];let a=t,c=r;for(;a<c;){const t=a+c>>>1;o(i,e[t])<0?c=t:a=t+1}let u=r-a;switch(u){case 3:e[a+3]=e[a+2],n[a+3]=n[a+2];case 2:e[a+2]=e[a+1],n[a+2]=n[a+1];case 1:e[a+1]=e[a],n[a+1]=n[a];break;default:for(;u>0;)e[a+u]=e[a+u-1],n[a+u]=n[a+u-1],u--}e[a]=i,n[a]=s}}function c(e,t,n,i,r,o){let s=0,a=0,c=1;if(o(e,t[n+r])>0){for(a=i-r;c<a&&o(e,t[n+r+c])>0;)s=c,c=1+(c<<1),c<=0&&(c=a);c>a&&(c=a),s+=r,c+=r}else{for(a=r+1;c<a&&o(e,t[n+r-c])<=0;)s=c,c=1+(c<<1),c<=0&&(c=a);c>a&&(c=a);const i=s;s=r-c,c=r-i}for(s++;s<c;){const i=s+(c-s>>>1);o(e,t[n+i])>0?s=i+1:c=i}return c}function u(e,t,n,i,r,o){let s=0,a=0,c=1;if(o(e,t[n+r])<0){for(a=r+1;c<a&&o(e,t[n+r-c])<0;)s=c,c=1+(c<<1),c<=0&&(c=a);c>a&&(c=a);const i=s;s=r-c,c=r-i}else{for(a=i-r;c<a&&o(e,t[n+r+c])>=0;)s=c,c=1+(c<<1),c<=0&&(c=a);c>a&&(c=a),s+=r,c+=r}for(s++;s<c;){const i=s+(c-s>>>1);o(e,t[n+i])<0?c=i:s=i+1}return c}class l{constructor(e,t){this.array=e,this.compare=t;const{length:n}=e;this.length=n,this.minGallop=7,this.tmpStorageLength=n<512?n>>>1:256,this.tmp=new Array(this.tmpStorageLength),this.tmpIndex=new Array(this.tmpStorageLength),this.stackLength=n<120?5:n<1542?10:n<119151?19:40,this.runStart=new Array(this.stackLength),this.runLength=new Array(this.stackLength),this.stackSize=0}pushRun(e,t){this.runStart[this.stackSize]=e,this.runLength[this.stackSize]=t,this.stackSize+=1}mergeRuns(){for(;this.stackSize>1;){let e=this.stackSize-2;if(e>=1&&this.runLength[e-1]<=this.runLength[e]+this.runLength[e+1]||e>=2&&this.runLength[e-2]<=this.runLength[e]+this.runLength[e-1])this.runLength[e-1]<this.runLength[e+1]&&e--;else if(this.runLength[e]>this.runLength[e+1])break;this.mergeAt(e)}}forceMergeRuns(){for(;this.stackSize>1;){let e=this.stackSize-2;e>0&&this.runLength[e-1]<this.runLength[e+1]&&e--,this.mergeAt(e)}}mergeAt(e){const{compare:t}=this,{array:n}=this;let i=this.runStart[e],r=this.runLength[e];const o=this.runStart[e+1];let s=this.runLength[e+1];this.runLength[e]=r+s,e===this.stackSize-3&&(this.runStart[e+1]=this.runStart[e+2],this.runLength[e+1]=this.runLength[e+2]),this.stackSize--;const a=u(n[o],n,i,r,0,t);i+=a,r-=a,0!==r&&(s=c(n[i+r-1],n,o,s,s-1,t),0!==s&&(r<=s?this.mergeLow(i,r,o,s):this.mergeHigh(i,r,o,s)))}mergeLow(e,t,i,r){const{compare:o}=this,{array:s}=this,{tmp:a}=this,{tmpIndex:l}=this;let h=0;for(h=0;h<t;h++)a[h]=s[e+h],l[h]=n[e+h];let d=0,p=i,f=e;if(s[f]=s[p],n[f]=n[p],f++,p++,0==--r){for(h=0;h<t;h++)s[f+h]=a[d+h],n[f+h]=l[d+h];return}if(1===t){for(h=0;h<r;h++)s[f+h]=s[p+h],n[f+h]=n[p+h];return s[f+r]=a[d],void(n[f+r]=l[d])}let{minGallop:g}=this;for(;;){let e=0,i=0,m=!1;do{if(o(s[p],a[d])<0){if(s[f]=s[p],n[f]=n[p],f++,p++,i++,e=0,0==--r){m=!0;break}}else if(s[f]=a[d],n[f]=l[d],f++,d++,e++,i=0,1==--t){m=!0;break}}while((e|i)<g);if(m)break;do{if(e=u(s[p],a,d,t,0,o),0!==e){for(h=0;h<e;h++)s[f+h]=a[d+h],n[f+h]=l[d+h];if(f+=e,d+=e,(t-=e)<=1){m=!0;break}}if(s[f]=s[p],n[f]=n[p],f++,p++,0==--r){m=!0;break}if(i=c(a[d],s,p,r,0,o),0!==i){for(h=0;h<i;h++)s[f+h]=s[p+h],n[f+h]=n[p+h];if(f+=i,p+=i,0==(r-=i)){m=!0;break}}if(s[f]=a[d],n[f]=l[d],f++,d++,1==--t){m=!0;break}g--}while(e>=7||i>=7);if(m)break;g<0&&(g=0),g+=2}if(this.minGallop=g,g<1&&(this.minGallop=1),1===t){for(h=0;h<r;h++)s[f+h]=s[p+h],n[f+h]=n[p+h];s[f+r]=a[d],n[f+r]=l[d]}else{if(0===t)throw new Error("mergeLow preconditions were not respected");for(h=0;h<t;h++)s[f+h]=a[d+h],n[f+h]=l[d+h]}}mergeHigh(e,t,i,r){const{compare:o}=this,{array:s}=this,{tmp:a}=this,{tmpIndex:l}=this;let h=0;for(h=0;h<r;h++)a[h]=s[i+h],l[h]=n[i+h];let d=e+t-1,p=r-1,f=i+r-1,g=0,m=0;if(s[f]=s[d],n[f]=n[d],f--,d--,0==--t){for(g=f-(r-1),h=0;h<r;h++)s[g+h]=a[h],n[g+h]=l[h];return}if(1===r){for(f-=t,d-=t,m=f+1,g=d+1,h=t-1;h>=0;h--)s[m+h]=s[g+h],n[m+h]=n[g+h];return s[f]=a[p],void(n[f]=l[p])}let{minGallop:y}=this;for(;;){let i=0,v=0,C=!1;do{if(o(a[p],s[d])<0){if(s[f]=s[d],n[f]=n[d],f--,d--,i++,v=0,0==--t){C=!0;break}}else if(s[f]=a[p],n[f]=l[p],f--,p--,v++,i=0,1==--r){C=!0;break}}while((i|v)<y);if(C)break;do{if(i=t-u(a[p],s,e,t,t-1,o),0!==i){for(f-=i,d-=i,t-=i,m=f+1,g=d+1,h=i-1;h>=0;h--)s[m+h]=s[g+h],n[m+h]=n[g+h];if(0===t){C=!0;break}}if(s[f]=a[p],n[f]=l[p],f--,p--,1==--r){C=!0;break}if(v=r-c(s[d],a,0,r,r-1,o),0!==v){for(f-=v,p-=v,r-=v,m=f+1,g=p+1,h=0;h<v;h++)s[m+h]=a[g+h],n[m+h]=l[g+h];if(r<=1){C=!0;break}}if(s[f]=s[d],n[f]=n[d],f--,d--,0==--t){C=!0;break}y--}while(i>=7||v>=7);if(C)break;y<0&&(y=0),y+=2}if(this.minGallop=y,y<1&&(this.minGallop=1),1===r){for(f-=t,d-=t,m=f+1,g=d+1,h=t-1;h>=0;h--)s[m+h]=s[g+h],n[m+h]=n[g+h];s[f]=a[p],n[f]=l[p]}else{if(0===r)throw new Error("mergeHigh preconditions were not respected");for(g=f-(r-1),h=0;h<r;h++)s[g+h]=a[h],n[g+h]=l[h]}}}e.exports={sort:function(e,t,i,s){if(!Array.isArray(e))throw new TypeError(`The "array" argument must be an array. Received ${e}`);n=[];const{length:c}=e;let u=0;for(;u<c;)n[u]=u++;t?"function"!=typeof t&&(s=i,i=t,t=r):t=r,i||(i=0),s||(s=c);let h=s-i;if(h<2)return n;let d=0;if(h<32)return d=o(e,i,s,t),a(e,i,s,i+d,t),n;const p=new l(e,t),f=function(e){let t=0;for(;e>=32;)t|=1&e,e>>=1;return e+t}(h);do{if(d=o(e,i,s,t),d<f){let n=h;n>f&&(n=f),a(e,i,i+n,i+d,t),d=n}p.pushRun(i,d),p.mergeRuns(),h-=d,i+=d}while(0!==h);return p.forceMergeRuns(),n}}},2294:e=>{"use strict";function t(e,t,r){e instanceof RegExp&&(e=n(e,r)),t instanceof RegExp&&(t=n(t,r));var o=i(e,t,r);return o&&{start:o[0],end:o[1],pre:r.slice(0,o[0]),body:r.slice(o[0]+e.length,o[1]),post:r.slice(o[1]+t.length)}}function n(e,t){var n=t.match(e);return n?n[0]:null}function i(e,t,n){var i,r,o,s,a,c=n.indexOf(e),u=n.indexOf(t,c+1),l=c;if(c>=0&&u>0){if(e===t)return[c,u];for(i=[],o=n.length;l>=0&&!a;)l==c?(i.push(l),c=n.indexOf(e,l+1)):1==i.length?a=[i.pop(),u]:((r=i.pop())<o&&(o=r,s=u),u=n.indexOf(t,l+1)),l=c<u&&c>=0?c:u;i.length&&(a=[o,s])}return a}e.exports=t,t.range=i},402:(e,t,n)=>{var i=n(4114),r=n(2294);e.exports=function(e){return e?("{}"===e.substr(0,2)&&(e="\\{\\}"+e.substr(2)),y(function(e){return e.split("\\\\").join(o).split("\\{").join(s).split("\\}").join(a).split("\\,").join(c).split("\\.").join(u)}(e),!0).map(h)):[]};var o="\0SLASH"+Math.random()+"\0",s="\0OPEN"+Math.random()+"\0",a="\0CLOSE"+Math.random()+"\0",c="\0COMMA"+Math.random()+"\0",u="\0PERIOD"+Math.random()+"\0";function l(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function h(e){return e.split(o).join("\\").split(s).join("{").split(a).join("}").split(c).join(",").split(u).join(".")}function d(e){if(!e)return[""];var t=[],n=r("{","}",e);if(!n)return e.split(",");var i=n.pre,o=n.body,s=n.post,a=i.split(",");a[a.length-1]+="{"+o+"}";var c=d(s);return s.length&&(a[a.length-1]+=c.shift(),a.push.apply(a,c)),t.push.apply(t,a),t}function p(e){return"{"+e+"}"}function f(e){return/^-?0\d/.test(e)}function g(e,t){return e<=t}function m(e,t){return e>=t}function y(e,t){var n=[],o=r("{","}",e);if(!o||/\$$/.test(o.pre))return[e];var s,c=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(o.body),u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(o.body),h=c||u,v=o.body.indexOf(",")>=0;if(!h&&!v)return o.post.match(/,.*\}/)?y(e=o.pre+"{"+o.body+a+o.post):[e];if(h)s=o.body.split(/\.\./);else if(1===(s=d(o.body)).length&&1===(s=y(s[0],!1).map(p)).length)return(b=o.post.length?y(o.post,!1):[""]).map((function(e){return o.pre+s[0]+e}));var C,S=o.pre,b=o.post.length?y(o.post,!1):[""];if(h){var E=l(s[0]),w=l(s[1]),D=Math.max(s[0].length,s[1].length),x=3==s.length?Math.abs(l(s[2])):1,_=g;w<E&&(x*=-1,_=m);var T=s.some(f);C=[];for(var k=E;_(k,w);k+=x){var F;if(u)"\\"===(F=String.fromCharCode(k))&&(F="");else if(F=String(k),T){var A=D-F.length;if(A>0){var R=new Array(A+1).join("0");F=k<0?"-"+R+F.slice(1):R+F}}C.push(F)}}else C=i(s,(function(e){return y(e,!1)}));for(var O=0;O<C.length;O++)for(var P=0;P<b.length;P++){var M=S+C[O]+b[P];(!t||h||M)&&n.push(M)}return n}},8458:(e,t,n)=>{const{isArray:i}=n(7646),{sort:r}=n(7092),{SYMBOL_PREFIXES:o,UNDEFINED:s,symbol:a,copy_comments:c,swap_comments:u}=n(5344),l=(e,t,n,i,r)=>{c(e,t,n+i,n,r)},h=(e,t,n,i,r,o)=>{if(r>0){let s=i;for(;s-- >0;)l(e,t,n+s,r,o);return}let s=0;for(;s<i;){const i=s++;l(e,t,n+i,r,o)}},d=(e,t)=>{o.forEach((n=>{const i=a(n,t);delete e[i]}))};class p extends Array{splice(...e){const{length:t}=this,n=super.splice(...e);let[i,r,...o]=e;i<0&&(i+=t),r=1===arguments.length?t-i:Math.min(t-i,r);const{length:s}=o,a=i+r;return h(this,this,a,t-a,s-r,!0),n}slice(...e){const{length:t}=this,n=super.slice(...e);if(!n.length)return new p;let[i,r]=e;return r===s?r=t:r<0&&(r+=t),i<0?i+=t:i===s&&(i=0),h(n,this,i,r-i,-i),n}unshift(...e){const{length:t}=this,n=super.unshift(...e),{length:i}=e;return i>0&&h(this,this,0,t,i,!0),n}shift(){const e=super.shift(),{length:t}=this;return d(this,0),h(this,this,1,t,-1,!0),e}reverse(){return super.reverse(),(e=>{const{length:t}=e;let n=0;const i=t/2;for(;n<i;n++)u(e,n,t-n-1)})(this),this}pop(){const e=super.pop();return d(this,this.length),e}concat(...e){let{length:t}=this;const n=super.concat(...e);return e.length?(h(n,this,0,this.length,0),e.forEach((e=>{const r=t;t+=i(e)?e.length:1,e instanceof p&&h(n,e,0,e.length,r)})),n):n}sort(...e){const t=r(this,...e.slice(0,1)),n=Object.create(null);return t.forEach(((e,t)=>{if(e===t)return;const i=((e,t)=>{let n=t;for(;n in e;)n=e[n];return n})(n,e);i!==t&&(n[t]=i,u(this,t,i))})),this}}e.exports={CommentArray:p}},5344:(e,t,n)=>{const i=n(2001),{isObject:r,isArray:o,isString:s,isNumber:a}=n(7646),c="before",u="after-prop",l="after-colon",h="after-value",d="after",p="before-all",f="after-all",g=[c,u,l,h,d],m=[c,p,f].map(Symbol.for),y=void 0,v=(e,t)=>Symbol.for(e+":"+t),C=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),S=(e,t,n,r,o,s)=>{const a=v(o,r);if(!i(t,a))return;const c=n===r?a:v(o,n);C(e,c,t[a]),s&&delete t[a]},b=(e,t,n,i,r)=>{g.forEach((o=>{S(e,t,n,i,o,r)}))},E=(e,t)=>{m.forEach((n=>{const i=t[n];i&&C(e,n,i)}))};e.exports={SYMBOL_PREFIXES:g,PREFIX_BEFORE:c,PREFIX_AFTER_PROP:u,PREFIX_AFTER_COLON:l,PREFIX_AFTER_VALUE:h,PREFIX_AFTER:d,PREFIX_BEFORE_ALL:p,PREFIX_AFTER_ALL:f,BRACKET_OPEN:"[",BRACKET_CLOSE:"]",CURLY_BRACKET_OPEN:"{",CURLY_BRACKET_CLOSE:"}",COLON:":",COMMA:",",MINUS:"-",EMPTY:"",UNDEFINED:y,symbol:v,define:C,copy_comments:b,swap_comments:(e,t,n)=>{t!==n&&g.forEach((r=>{const o=v(r,n);if(!i(e,o))return void S(e,e,n,t,r,!0);const s=e[o];delete e[o],S(e,e,n,t,r,!0),C(e,v(r,t),s)}))},assign_non_prop_comments:E,assign(e,t,n){if(!r(e))throw new TypeError("Cannot convert undefined or null to object");if(!r(t))return e;if(n===y)n=Object.keys(t),E(e,t);else{if(!o(n))throw new TypeError("keys must be array or undefined");0===n.length&&E(e,t)}return((e,t,n)=>(n.forEach((n=>{(s(n)||a(n))&&i(t,n)&&(e[n]=t[n],b(e,t,n,n))})),e))(e,t,n)}}},6724:(e,t,n)=>{const{parse:i,tokenize:r}=n(7745),o=n(7437),{CommentArray:s}=n(8458),{assign:a}=n(5344);e.exports={parse:i,stringify:o,tokenize:r,CommentArray:s,assign:a}},7745:(e,t,n)=>{const i=n(671),{CommentArray:r}=n(8458),{PREFIX_BEFORE:o,PREFIX_AFTER_PROP:s,PREFIX_AFTER_COLON:a,PREFIX_AFTER_VALUE:c,PREFIX_AFTER:u,PREFIX_BEFORE_ALL:l,PREFIX_AFTER_ALL:h,BRACKET_OPEN:d,BRACKET_CLOSE:p,CURLY_BRACKET_OPEN:f,CURLY_BRACKET_CLOSE:g,COLON:m,COMMA:y,MINUS:v,EMPTY:C,UNDEFINED:S,define:b,assign_non_prop_comments:E}=n(5344),w=e=>i.tokenize(e,{comment:!0,loc:!0}),D=[];let x=null,_=null;const T=[];let k,F,A=!1,R=!1,O=null,P=null,M=null,N=null;const I=()=>{T.length=D.length=0,P=null,k=S},L=e=>Symbol.for(k!==S?e+m+k:e),j=(e,t)=>N?N(e,t):t,B=()=>{const e=new SyntaxError(`Unexpected token ${M.value.slice(0,1)}`);throw Object.assign(e,M.loc.start),e},q=()=>{const e=new SyntaxError("Unexpected end of JSON input");throw Object.assign(e,P?P.loc.end:{line:1,column:0}),e},U=()=>{const e=O[++F];R=M&&e&&M.loc.end.line===e.loc.start.line||!1,P=M,M=e},W=()=>(M||q(),"Punctuator"===M.type?M.value:M.type),$=e=>W()===e,K=e=>{$(e)||B()},z=e=>{D.push(x),x=e},V=()=>{x=D.pop()},H=()=>{if(!_)return;const e=[];for(const t of _){if(!t.inline)break;e.push(t)}const{length:t}=e;t&&(t===_.length?_=null:_.splice(0,t),b(x,L(u),e))},G=e=>{_&&(b(x,L(e),_),_=null)},J=e=>{const t=[];for(;M&&($("LineComment")||$("BlockComment"));){const e={...M,inline:R};t.push(e),U()}A||t.length&&(e?b(x,L(e),t):_=t)},X=(e,t)=>{t&&T.push(k),k=e},Y=()=>{k=T.pop()};function Q(){let e=W();if(e===f)return U(),(()=>{const e={};z(e),X(S,!0);let t,n=!1;for(J();!($(g)||n&&(G(c),K(y),U(),J(),H(),$(g)));)n=!0,K("String"),t=JSON.parse(M.value),X(t),G(o),U(),J(s),K(m),U(),J(a),e[t]=j(t,Q()),J();return n&&G(u),U(),k=void 0,n||G(o),V(),Y(),e})();if(e===d)return U(),(()=>{const e=new r;z(e),X(S,!0);let t=!1,n=0;for(J();!($(p)||t&&(G(c),K(y),U(),J(),H(),$(p)));)t=!0,X(n),G(o),e[n]=j(n,Q()),n++,J();return t&&G(u),U(),k=void 0,t||G(o),V(),Y(),e})();let t,n=C;switch(e===v&&(U(),e=W(),n=v),e){case"String":case"Boolean":case"Null":case"Numeric":return t=M.value,U(),JSON.parse(n+t)}}e.exports={parse:(e,t,n)=>{I(),O=w(e),N=t,A=n,O.length||q(),F=-1,U(),z({}),J(l);let i=Q();var r;return J(h),M&&B(),n||null===i||(r=i,Object(r)!==r&&(i=new Object(i)),E(i,x)),V(),i=j("",i),I(),O.length=0,_=x=O=P=M=N=null,i},tokenize:w}},7437:(e,t,n)=>{const{isArray:i,isObject:r,isFunction:o,isNumber:s,isString:a}=n(7646),c=n(4076),{PREFIX_BEFORE_ALL:u,PREFIX_BEFORE:l,PREFIX_AFTER_PROP:h,PREFIX_AFTER_COLON:d,PREFIX_AFTER_VALUE:p,PREFIX_AFTER:f,PREFIX_AFTER_ALL:g,BRACKET_OPEN:m,BRACKET_CLOSE:y,CURLY_BRACKET_OPEN:v,CURLY_BRACKET_CLOSE:C,COLON:S,COMMA:b,EMPTY:E,UNDEFINED:w}=n(5344),D=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,x="\n",_="null",T=e=>`${l}:${e}`,k=e=>`${p}:${e}`,F=e=>`${f}:${e}`,A={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},R=e=>`"${(e=>(D.lastIndex=0,D.test(e)?e.replace(D,(e=>{const t=A[e];return"string"==typeof t?t:e})):e))(e)}"`,O=(e,t,n,i)=>{const r=e[Symbol.for(t)];if(!r||!r.length)return E;let o=!1;const s=r.reduce(((e,{inline:t,type:i,value:r})=>(o="LineComment"===i,e+(t?" ":x+n)+((e,t)=>t?`//${e}`:`/*${e}*/`)(r,o))),E);return i||o?s+x+n:s};let P=null,M=E;const N=(e,t,n)=>e?t?e+t.trim()+x+n:e.trimRight()+x+n:t?t.trimRight()+x+n:E,I=(e,t,n)=>{const i=O(t,l,n+M,!0);return N(i,e,n)};function L(e,t,n){let s=t[e];switch(r(s)&&o(s.toJSON)&&(s=s.toJSON(e)),o(P)&&(s=P.call(t,e,s)),typeof s){case"string":return R(s);case"number":return Number.isFinite(s)?String(s):_;case"boolean":case"null":return String(s);case"object":return i(s)?((e,t)=>{const n=t+M,{length:i}=e;let r=E,o=E;for(let t=0;t<i;t++)0!==t&&(r+=b),r+=N(o,O(e,T(t),n),n)||x+n,r+=L(t,e,n)||_,r+=O(e,k(t),n),o=O(e,F(t),n);return r+=N(o,O(e,f,n),n),m+I(r,e,t)+y})(s,n):((e,t)=>{if(!e)return"null";const n=t+M;let r=E,o=E,s=!0;return(i(P)?P:Object.keys(e)).forEach((t=>{const i=L(t,e,n);if(i===w)return;s||(r+=b),s=!1;const a=N(o,O(e,T(t),n),n);r+=a||x+n,r+=R(t)+O(e,`${h}:${t}`,n)+S+O(e,`${d}:${t}`,n)+" "+i+O(e,k(t),n),o=O(e,F(t),n)})),r+=N(o,O(e,f,n),n),v+I(r,e,t)+C})(s,n)}}const{toString:j}=Object.prototype,B=["[object Number]","[object String]","[object Boolean]"];e.exports=(e,t,n)=>{const l=(e=>a(e)?e:s(e)?c(" ",e):E)(n);if(!l)return JSON.stringify(e,t);o(t)||i(t)||(t=null),P=t,M=l;const h=(e=>{if("object"!=typeof e)return!1;const t=j.call(e);return B.includes(t)})(e)?JSON.stringify(e):L("",{"":e},E);return P=null,M=E,r(e)?O(e,u,E).trimLeft()+h+O(e,g,E).trimRight():h}},4114:e=>{e.exports=function(e,n){for(var i=[],r=0;r<e.length;r++){var o=n(e[r],r);t(o)?i.push.apply(i,o):i.push(o)}return i};var t=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},7646:(e,t,n)=>{function i(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===i(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===i(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===i(e)},t.isError=function(e){return"[object Error]"===i(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(4300).Buffer.isBuffer},671:function(e){var t;t=function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={exports:{},id:i,loaded:!1};return e[i].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=n(3),o=n(8),s=n(15);function a(e,t,n){var s=null,a=function(e,t){n&&n(e,t),s&&s.visit(e,t)},c="function"==typeof n?a:null,u=!1;if(t){u="boolean"==typeof t.comment&&t.comment;var l="boolean"==typeof t.attachComment&&t.attachComment;(u||l)&&((s=new i.CommentHandler).attach=l,t.comment=!0,c=a)}var h,d=!1;t&&"string"==typeof t.sourceType&&(d="module"===t.sourceType),h=t&&"boolean"==typeof t.jsx&&t.jsx?new r.JSXParser(e,t,c):new o.Parser(e,t,c);var p=d?h.parseModule():h.parseScript();return u&&s&&(p.comments=s.comments),h.config.tokens&&(p.tokens=h.tokens),h.config.tolerant&&(p.errors=h.errorHandler.errors),p}t.parse=a,t.parseModule=function(e,t,n){var i=t||{};return i.sourceType="module",a(e,i,n)},t.parseScript=function(e,t,n){var i=t||{};return i.sourceType="script",a(e,i,n)},t.tokenize=function(e,t,n){var i,r=new s.Tokenizer(e,t);i=[];try{for(;;){var o=r.getNextToken();if(!o)break;n&&(o=n(o)),i.push(o)}}catch(e){r.errorHandler.tolerate(e)}return r.errorHandler.tolerant&&(i.errors=r.errors()),i};var c=n(2);t.Syntax=c.Syntax,t.version="4.0.1"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=function(){function e(){this.attach=!1,this.comments=[],this.stack=[],this.leading=[],this.trailing=[]}return e.prototype.insertInnerComments=function(e,t){if(e.type===i.Syntax.BlockStatement&&0===e.body.length){for(var n=[],r=this.leading.length-1;r>=0;--r){var o=this.leading[r];t.end.offset>=o.start&&(n.unshift(o.comment),this.leading.splice(r,1),this.trailing.splice(r,1))}n.length&&(e.innerComments=n)}},e.prototype.findTrailingComments=function(e){var t=[];if(this.trailing.length>0){for(var n=this.trailing.length-1;n>=0;--n){var i=this.trailing[n];i.start>=e.end.offset&&t.unshift(i.comment)}return this.trailing.length=0,t}var r=this.stack[this.stack.length-1];if(r&&r.node.trailingComments){var o=r.node.trailingComments[0];o&&o.range[0]>=e.end.offset&&(t=r.node.trailingComments,delete r.node.trailingComments)}return t},e.prototype.findLeadingComments=function(e){for(var t,n=[];this.stack.length>0&&(o=this.stack[this.stack.length-1])&&o.start>=e.start.offset;)t=o.node,this.stack.pop();if(t){for(var i=(t.leadingComments?t.leadingComments.length:0)-1;i>=0;--i){var r=t.leadingComments[i];r.range[1]<=e.start.offset&&(n.unshift(r),t.leadingComments.splice(i,1))}return t.leadingComments&&0===t.leadingComments.length&&delete t.leadingComments,n}for(i=this.leading.length-1;i>=0;--i){var o;(o=this.leading[i]).start<=e.start.offset&&(n.unshift(o.comment),this.leading.splice(i,1))}return n},e.prototype.visitNode=function(e,t){if(!(e.type===i.Syntax.Program&&e.body.length>0)){this.insertInnerComments(e,t);var n=this.findTrailingComments(t),r=this.findLeadingComments(t);r.length>0&&(e.leadingComments=r),n.length>0&&(e.trailingComments=n),this.stack.push({node:e,start:t.start.offset})}},e.prototype.visitComment=function(e,t){var n="L"===e.type[0]?"Line":"Block",i={type:n,value:e.value};if(e.range&&(i.range=e.range),e.loc&&(i.loc=e.loc),this.comments.push(i),this.attach){var r={comment:{type:n,value:e.value,range:[t.start.offset,t.end.offset]},start:t.start.offset};e.loc&&(r.comment.loc=e.loc),e.type=n,this.leading.push(r),this.trailing.push(r)}},e.prototype.visit=function(e,t){"LineComment"===e.type||"BlockComment"===e.type?this.visitComment(e,t):this.attach&&this.visitNode(e,t)},e}();t.CommentHandler=r},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Syntax={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForOfStatement:"ForOfStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"}},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(4),s=n(5),a=n(6),c=n(7),u=n(8),l=n(13),h=n(14);function d(e){var t;switch(e.type){case a.JSXSyntax.JSXIdentifier:t=e.name;break;case a.JSXSyntax.JSXNamespacedName:var n=e;t=d(n.namespace)+":"+d(n.name);break;case a.JSXSyntax.JSXMemberExpression:var i=e;t=d(i.object)+"."+d(i.property)}return t}l.TokenName[100]="JSXIdentifier",l.TokenName[101]="JSXText";var p=function(e){function t(t,n,i){return e.call(this,t,n,i)||this}return r(t,e),t.prototype.parsePrimaryExpression=function(){return this.match("<")?this.parseJSXRoot():e.prototype.parsePrimaryExpression.call(this)},t.prototype.startJSX=function(){this.scanner.index=this.startMarker.index,this.scanner.lineNumber=this.startMarker.line,this.scanner.lineStart=this.startMarker.index-this.startMarker.column},t.prototype.finishJSX=function(){this.nextToken()},t.prototype.reenterJSX=function(){this.startJSX(),this.expectJSX("}"),this.config.tokens&&this.tokens.pop()},t.prototype.createJSXNode=function(){return this.collectComments(),{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},t.prototype.createJSXChildNode=function(){return{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},t.prototype.scanXHTMLEntity=function(e){for(var t="&",n=!0,i=!1,r=!1,s=!1;!this.scanner.eof()&&n&&!i;){var a=this.scanner.source[this.scanner.index];if(a===e)break;if(i=";"===a,t+=a,++this.scanner.index,!i)switch(t.length){case 2:r="#"===a;break;case 3:r&&(n=(s="x"===a)||o.Character.isDecimalDigit(a.charCodeAt(0)),r=r&&!s);break;default:n=(n=n&&!(r&&!o.Character.isDecimalDigit(a.charCodeAt(0))))&&!(s&&!o.Character.isHexDigit(a.charCodeAt(0)))}}if(n&&i&&t.length>2){var c=t.substr(1,t.length-2);r&&c.length>1?t=String.fromCharCode(parseInt(c.substr(1),10)):s&&c.length>2?t=String.fromCharCode(parseInt("0"+c.substr(1),16)):r||s||!h.XHTMLEntities[c]||(t=h.XHTMLEntities[c])}return t},t.prototype.lexJSX=function(){var e=this.scanner.source.charCodeAt(this.scanner.index);if(60===e||62===e||47===e||58===e||61===e||123===e||125===e)return{type:7,value:a=this.scanner.source[this.scanner.index++],lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index-1,end:this.scanner.index};if(34===e||39===e){for(var t=this.scanner.index,n=this.scanner.source[this.scanner.index++],i="";!this.scanner.eof()&&(c=this.scanner.source[this.scanner.index++])!==n;)i+="&"===c?this.scanXHTMLEntity(n):c;return{type:8,value:i,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:t,end:this.scanner.index}}if(46===e){var r=this.scanner.source.charCodeAt(this.scanner.index+1),s=this.scanner.source.charCodeAt(this.scanner.index+2),a=46===r&&46===s?"...":".";return t=this.scanner.index,this.scanner.index+=a.length,{type:7,value:a,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:t,end:this.scanner.index}}if(96===e)return{type:10,value:"",lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index,end:this.scanner.index};if(o.Character.isIdentifierStart(e)&&92!==e){for(t=this.scanner.index,++this.scanner.index;!this.scanner.eof();){var c=this.scanner.source.charCodeAt(this.scanner.index);if(o.Character.isIdentifierPart(c)&&92!==c)++this.scanner.index;else{if(45!==c)break;++this.scanner.index}}return{type:100,value:this.scanner.source.slice(t,this.scanner.index),lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:t,end:this.scanner.index}}return this.scanner.lex()},t.prototype.nextJSXToken=function(){this.collectComments(),this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;var e=this.lexJSX();return this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.config.tokens&&this.tokens.push(this.convertToken(e)),e},t.prototype.nextJSXText=function(){this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;for(var e=this.scanner.index,t="";!this.scanner.eof();){var n=this.scanner.source[this.scanner.index];if("{"===n||"<"===n)break;++this.scanner.index,t+=n,o.Character.isLineTerminator(n.charCodeAt(0))&&(++this.scanner.lineNumber,"\r"===n&&"\n"===this.scanner.source[this.scanner.index]&&++this.scanner.index,this.scanner.lineStart=this.scanner.index)}this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart;var i={type:101,value:t,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:e,end:this.scanner.index};return t.length>0&&this.config.tokens&&this.tokens.push(this.convertToken(i)),i},t.prototype.peekJSXToken=function(){var e=this.scanner.saveState();this.scanner.scanComments();var t=this.lexJSX();return this.scanner.restoreState(e),t},t.prototype.expectJSX=function(e){var t=this.nextJSXToken();7===t.type&&t.value===e||this.throwUnexpectedToken(t)},t.prototype.matchJSX=function(e){var t=this.peekJSXToken();return 7===t.type&&t.value===e},t.prototype.parseJSXIdentifier=function(){var e=this.createJSXNode(),t=this.nextJSXToken();return 100!==t.type&&this.throwUnexpectedToken(t),this.finalize(e,new s.JSXIdentifier(t.value))},t.prototype.parseJSXElementName=function(){var e=this.createJSXNode(),t=this.parseJSXIdentifier();if(this.matchJSX(":")){var n=t;this.expectJSX(":");var i=this.parseJSXIdentifier();t=this.finalize(e,new s.JSXNamespacedName(n,i))}else if(this.matchJSX("."))for(;this.matchJSX(".");){var r=t;this.expectJSX(".");var o=this.parseJSXIdentifier();t=this.finalize(e,new s.JSXMemberExpression(r,o))}return t},t.prototype.parseJSXAttributeName=function(){var e,t=this.createJSXNode(),n=this.parseJSXIdentifier();if(this.matchJSX(":")){var i=n;this.expectJSX(":");var r=this.parseJSXIdentifier();e=this.finalize(t,new s.JSXNamespacedName(i,r))}else e=n;return e},t.prototype.parseJSXStringLiteralAttribute=function(){var e=this.createJSXNode(),t=this.nextJSXToken();8!==t.type&&this.throwUnexpectedToken(t);var n=this.getTokenRaw(t);return this.finalize(e,new c.Literal(t.value,n))},t.prototype.parseJSXExpressionAttribute=function(){var e=this.createJSXNode();this.expectJSX("{"),this.finishJSX(),this.match("}")&&this.tolerateError("JSX attributes must only be assigned a non-empty expression");var t=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(e,new s.JSXExpressionContainer(t))},t.prototype.parseJSXAttributeValue=function(){return this.matchJSX("{")?this.parseJSXExpressionAttribute():this.matchJSX("<")?this.parseJSXElement():this.parseJSXStringLiteralAttribute()},t.prototype.parseJSXNameValueAttribute=function(){var e=this.createJSXNode(),t=this.parseJSXAttributeName(),n=null;return this.matchJSX("=")&&(this.expectJSX("="),n=this.parseJSXAttributeValue()),this.finalize(e,new s.JSXAttribute(t,n))},t.prototype.parseJSXSpreadAttribute=function(){var e=this.createJSXNode();this.expectJSX("{"),this.expectJSX("..."),this.finishJSX();var t=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(e,new s.JSXSpreadAttribute(t))},t.prototype.parseJSXAttributes=function(){for(var e=[];!this.matchJSX("/")&&!this.matchJSX(">");){var t=this.matchJSX("{")?this.parseJSXSpreadAttribute():this.parseJSXNameValueAttribute();e.push(t)}return e},t.prototype.parseJSXOpeningElement=function(){var e=this.createJSXNode();this.expectJSX("<");var t=this.parseJSXElementName(),n=this.parseJSXAttributes(),i=this.matchJSX("/");return i&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(e,new s.JSXOpeningElement(t,i,n))},t.prototype.parseJSXBoundaryElement=function(){var e=this.createJSXNode();if(this.expectJSX("<"),this.matchJSX("/")){this.expectJSX("/");var t=this.parseJSXElementName();return this.expectJSX(">"),this.finalize(e,new s.JSXClosingElement(t))}var n=this.parseJSXElementName(),i=this.parseJSXAttributes(),r=this.matchJSX("/");return r&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(e,new s.JSXOpeningElement(n,r,i))},t.prototype.parseJSXEmptyExpression=function(){var e=this.createJSXChildNode();return this.collectComments(),this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.finalize(e,new s.JSXEmptyExpression)},t.prototype.parseJSXExpressionContainer=function(){var e,t=this.createJSXNode();return this.expectJSX("{"),this.matchJSX("}")?(e=this.parseJSXEmptyExpression(),this.expectJSX("}")):(this.finishJSX(),e=this.parseAssignmentExpression(),this.reenterJSX()),this.finalize(t,new s.JSXExpressionContainer(e))},t.prototype.parseJSXChildren=function(){for(var e=[];!this.scanner.eof();){var t=this.createJSXChildNode(),n=this.nextJSXText();if(n.start<n.end){var i=this.getTokenRaw(n),r=this.finalize(t,new s.JSXText(n.value,i));e.push(r)}if("{"!==this.scanner.source[this.scanner.index])break;var o=this.parseJSXExpressionContainer();e.push(o)}return e},t.prototype.parseComplexJSXElement=function(e){for(var t=[];!this.scanner.eof();){e.children=e.children.concat(this.parseJSXChildren());var n=this.createJSXChildNode(),i=this.parseJSXBoundaryElement();if(i.type===a.JSXSyntax.JSXOpeningElement){var r=i;if(r.selfClosing){var o=this.finalize(n,new s.JSXElement(r,[],null));e.children.push(o)}else t.push(e),e={node:n,opening:r,closing:null,children:[]}}if(i.type===a.JSXSyntax.JSXClosingElement){e.closing=i;var c=d(e.opening.name);if(c!==d(e.closing.name)&&this.tolerateError("Expected corresponding JSX closing tag for %0",c),!(t.length>0))break;o=this.finalize(e.node,new s.JSXElement(e.opening,e.children,e.closing)),(e=t[t.length-1]).children.push(o),t.pop()}}return e},t.prototype.parseJSXElement=function(){var e=this.createJSXNode(),t=this.parseJSXOpeningElement(),n=[],i=null;if(!t.selfClosing){var r=this.parseComplexJSXElement({node:e,opening:t,closing:i,children:n});n=r.children,i=r.closing}return this.finalize(e,new s.JSXElement(t,n,i))},t.prototype.parseJSXRoot=function(){this.config.tokens&&this.tokens.pop(),this.startJSX();var e=this.parseJSXElement();return this.finishJSX(),e},t.prototype.isStartOfExpression=function(){return e.prototype.isStartOfExpression.call(this)||this.match("<")},t}(u.Parser);t.JSXParser=p},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};t.Character={fromCodePoint:function(e){return e<65536?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10))+String.fromCharCode(56320+(e-65536&1023))},isWhiteSpace:function(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(e)>=0},isLineTerminator:function(e){return 10===e||13===e||8232===e||8233===e},isIdentifierStart:function(e){return 36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||92===e||e>=128&&n.NonAsciiIdentifierStart.test(t.Character.fromCodePoint(e))},isIdentifierPart:function(e){return 36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||92===e||e>=128&&n.NonAsciiIdentifierPart.test(t.Character.fromCodePoint(e))},isDecimalDigit:function(e){return e>=48&&e<=57},isHexDigit:function(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102},isOctalDigit:function(e){return e>=48&&e<=55}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(6);t.JSXClosingElement=function(e){this.type=i.JSXSyntax.JSXClosingElement,this.name=e};t.JSXElement=function(e,t,n){this.type=i.JSXSyntax.JSXElement,this.openingElement=e,this.children=t,this.closingElement=n};t.JSXEmptyExpression=function(){this.type=i.JSXSyntax.JSXEmptyExpression};t.JSXExpressionContainer=function(e){this.type=i.JSXSyntax.JSXExpressionContainer,this.expression=e};t.JSXIdentifier=function(e){this.type=i.JSXSyntax.JSXIdentifier,this.name=e};t.JSXMemberExpression=function(e,t){this.type=i.JSXSyntax.JSXMemberExpression,this.object=e,this.property=t};t.JSXAttribute=function(e,t){this.type=i.JSXSyntax.JSXAttribute,this.name=e,this.value=t};t.JSXNamespacedName=function(e,t){this.type=i.JSXSyntax.JSXNamespacedName,this.namespace=e,this.name=t};t.JSXOpeningElement=function(e,t,n){this.type=i.JSXSyntax.JSXOpeningElement,this.name=e,this.selfClosing=t,this.attributes=n};t.JSXSpreadAttribute=function(e){this.type=i.JSXSyntax.JSXSpreadAttribute,this.argument=e};t.JSXText=function(e,t){this.type=i.JSXSyntax.JSXText,this.value=e,this.raw=t}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JSXSyntax={JSXAttribute:"JSXAttribute",JSXClosingElement:"JSXClosingElement",JSXElement:"JSXElement",JSXEmptyExpression:"JSXEmptyExpression",JSXExpressionContainer:"JSXExpressionContainer",JSXIdentifier:"JSXIdentifier",JSXMemberExpression:"JSXMemberExpression",JSXNamespacedName:"JSXNamespacedName",JSXOpeningElement:"JSXOpeningElement",JSXSpreadAttribute:"JSXSpreadAttribute",JSXText:"JSXText"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2);t.ArrayExpression=function(e){this.type=i.Syntax.ArrayExpression,this.elements=e};t.ArrayPattern=function(e){this.type=i.Syntax.ArrayPattern,this.elements=e};t.ArrowFunctionExpression=function(e,t,n){this.type=i.Syntax.ArrowFunctionExpression,this.id=null,this.params=e,this.body=t,this.generator=!1,this.expression=n,this.async=!1};t.AssignmentExpression=function(e,t,n){this.type=i.Syntax.AssignmentExpression,this.operator=e,this.left=t,this.right=n};t.AssignmentPattern=function(e,t){this.type=i.Syntax.AssignmentPattern,this.left=e,this.right=t};t.AsyncArrowFunctionExpression=function(e,t,n){this.type=i.Syntax.ArrowFunctionExpression,this.id=null,this.params=e,this.body=t,this.generator=!1,this.expression=n,this.async=!0};t.AsyncFunctionDeclaration=function(e,t,n){this.type=i.Syntax.FunctionDeclaration,this.id=e,this.params=t,this.body=n,this.generator=!1,this.expression=!1,this.async=!0};t.AsyncFunctionExpression=function(e,t,n){this.type=i.Syntax.FunctionExpression,this.id=e,this.params=t,this.body=n,this.generator=!1,this.expression=!1,this.async=!0};t.AwaitExpression=function(e){this.type=i.Syntax.AwaitExpression,this.argument=e};t.BinaryExpression=function(e,t,n){var r="||"===e||"&&"===e;this.type=r?i.Syntax.LogicalExpression:i.Syntax.BinaryExpression,this.operator=e,this.left=t,this.right=n};t.BlockStatement=function(e){this.type=i.Syntax.BlockStatement,this.body=e};t.BreakStatement=function(e){this.type=i.Syntax.BreakStatement,this.label=e};t.CallExpression=function(e,t){this.type=i.Syntax.CallExpression,this.callee=e,this.arguments=t};t.CatchClause=function(e,t){this.type=i.Syntax.CatchClause,this.param=e,this.body=t};t.ClassBody=function(e){this.type=i.Syntax.ClassBody,this.body=e};t.ClassDeclaration=function(e,t,n){this.type=i.Syntax.ClassDeclaration,this.id=e,this.superClass=t,this.body=n};t.ClassExpression=function(e,t,n){this.type=i.Syntax.ClassExpression,this.id=e,this.superClass=t,this.body=n};t.ComputedMemberExpression=function(e,t){this.type=i.Syntax.MemberExpression,this.computed=!0,this.object=e,this.property=t};t.ConditionalExpression=function(e,t,n){this.type=i.Syntax.ConditionalExpression,this.test=e,this.consequent=t,this.alternate=n};t.ContinueStatement=function(e){this.type=i.Syntax.ContinueStatement,this.label=e};t.DebuggerStatement=function(){this.type=i.Syntax.DebuggerStatement};t.Directive=function(e,t){this.type=i.Syntax.ExpressionStatement,this.expression=e,this.directive=t};t.DoWhileStatement=function(e,t){this.type=i.Syntax.DoWhileStatement,this.body=e,this.test=t};t.EmptyStatement=function(){this.type=i.Syntax.EmptyStatement};t.ExportAllDeclaration=function(e){this.type=i.Syntax.ExportAllDeclaration,this.source=e};t.ExportDefaultDeclaration=function(e){this.type=i.Syntax.ExportDefaultDeclaration,this.declaration=e};t.ExportNamedDeclaration=function(e,t,n){this.type=i.Syntax.ExportNamedDeclaration,this.declaration=e,this.specifiers=t,this.source=n};t.ExportSpecifier=function(e,t){this.type=i.Syntax.ExportSpecifier,this.exported=t,this.local=e};t.ExpressionStatement=function(e){this.type=i.Syntax.ExpressionStatement,this.expression=e};t.ForInStatement=function(e,t,n){this.type=i.Syntax.ForInStatement,this.left=e,this.right=t,this.body=n,this.each=!1};t.ForOfStatement=function(e,t,n){this.type=i.Syntax.ForOfStatement,this.left=e,this.right=t,this.body=n};t.ForStatement=function(e,t,n,r){this.type=i.Syntax.ForStatement,this.init=e,this.test=t,this.update=n,this.body=r};t.FunctionDeclaration=function(e,t,n,r){this.type=i.Syntax.FunctionDeclaration,this.id=e,this.params=t,this.body=n,this.generator=r,this.expression=!1,this.async=!1};t.FunctionExpression=function(e,t,n,r){this.type=i.Syntax.FunctionExpression,this.id=e,this.params=t,this.body=n,this.generator=r,this.expression=!1,this.async=!1};t.Identifier=function(e){this.type=i.Syntax.Identifier,this.name=e};t.IfStatement=function(e,t,n){this.type=i.Syntax.IfStatement,this.test=e,this.consequent=t,this.alternate=n};t.ImportDeclaration=function(e,t){this.type=i.Syntax.ImportDeclaration,this.specifiers=e,this.source=t};t.ImportDefaultSpecifier=function(e){this.type=i.Syntax.ImportDefaultSpecifier,this.local=e};t.ImportNamespaceSpecifier=function(e){this.type=i.Syntax.ImportNamespaceSpecifier,this.local=e};t.ImportSpecifier=function(e,t){this.type=i.Syntax.ImportSpecifier,this.local=e,this.imported=t};t.LabeledStatement=function(e,t){this.type=i.Syntax.LabeledStatement,this.label=e,this.body=t};t.Literal=function(e,t){this.type=i.Syntax.Literal,this.value=e,this.raw=t};t.MetaProperty=function(e,t){this.type=i.Syntax.MetaProperty,this.meta=e,this.property=t};t.MethodDefinition=function(e,t,n,r,o){this.type=i.Syntax.MethodDefinition,this.key=e,this.computed=t,this.value=n,this.kind=r,this.static=o};t.Module=function(e){this.type=i.Syntax.Program,this.body=e,this.sourceType="module"};t.NewExpression=function(e,t){this.type=i.Syntax.NewExpression,this.callee=e,this.arguments=t};t.ObjectExpression=function(e){this.type=i.Syntax.ObjectExpression,this.properties=e};t.ObjectPattern=function(e){this.type=i.Syntax.ObjectPattern,this.properties=e};t.Property=function(e,t,n,r,o,s){this.type=i.Syntax.Property,this.key=t,this.computed=n,this.value=r,this.kind=e,this.method=o,this.shorthand=s};t.RegexLiteral=function(e,t,n,r){this.type=i.Syntax.Literal,this.value=e,this.raw=t,this.regex={pattern:n,flags:r}};t.RestElement=function(e){this.type=i.Syntax.RestElement,this.argument=e};t.ReturnStatement=function(e){this.type=i.Syntax.ReturnStatement,this.argument=e};t.Script=function(e){this.type=i.Syntax.Program,this.body=e,this.sourceType="script"};t.SequenceExpression=function(e){this.type=i.Syntax.SequenceExpression,this.expressions=e};t.SpreadElement=function(e){this.type=i.Syntax.SpreadElement,this.argument=e};t.StaticMemberExpression=function(e,t){this.type=i.Syntax.MemberExpression,this.computed=!1,this.object=e,this.property=t};t.Super=function(){this.type=i.Syntax.Super};t.SwitchCase=function(e,t){this.type=i.Syntax.SwitchCase,this.test=e,this.consequent=t};t.SwitchStatement=function(e,t){this.type=i.Syntax.SwitchStatement,this.discriminant=e,this.cases=t};t.TaggedTemplateExpression=function(e,t){this.type=i.Syntax.TaggedTemplateExpression,this.tag=e,this.quasi=t};t.TemplateElement=function(e,t){this.type=i.Syntax.TemplateElement,this.value=e,this.tail=t};t.TemplateLiteral=function(e,t){this.type=i.Syntax.TemplateLiteral,this.quasis=e,this.expressions=t};t.ThisExpression=function(){this.type=i.Syntax.ThisExpression};t.ThrowStatement=function(e){this.type=i.Syntax.ThrowStatement,this.argument=e};t.TryStatement=function(e,t,n){this.type=i.Syntax.TryStatement,this.block=e,this.handler=t,this.finalizer=n};t.UnaryExpression=function(e,t){this.type=i.Syntax.UnaryExpression,this.operator=e,this.argument=t,this.prefix=!0};t.UpdateExpression=function(e,t,n){this.type=i.Syntax.UpdateExpression,this.operator=e,this.argument=t,this.prefix=n};t.VariableDeclaration=function(e,t){this.type=i.Syntax.VariableDeclaration,this.declarations=e,this.kind=t};t.VariableDeclarator=function(e,t){this.type=i.Syntax.VariableDeclarator,this.id=e,this.init=t};t.WhileStatement=function(e,t){this.type=i.Syntax.WhileStatement,this.test=e,this.body=t};t.WithStatement=function(e,t){this.type=i.Syntax.WithStatement,this.object=e,this.body=t};t.YieldExpression=function(e,t){this.type=i.Syntax.YieldExpression,this.argument=e,this.delegate=t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(9),r=n(10),o=n(11),s=n(7),a=n(12),c=n(2),u=n(13),l="ArrowParameterPlaceHolder",h=function(){function e(e,t,n){void 0===t&&(t={}),this.config={range:"boolean"==typeof t.range&&t.range,loc:"boolean"==typeof t.loc&&t.loc,source:null,tokens:"boolean"==typeof t.tokens&&t.tokens,comment:"boolean"==typeof t.comment&&t.comment,tolerant:"boolean"==typeof t.tolerant&&t.tolerant},this.config.loc&&t.source&&null!==t.source&&(this.config.source=String(t.source)),this.delegate=n,this.errorHandler=new r.ErrorHandler,this.errorHandler.tolerant=this.config.tolerant,this.scanner=new a.Scanner(e,this.errorHandler),this.scanner.trackComment=this.config.comment,this.operatorPrecedence={")":0,";":0,",":0,"=":0,"]":0,"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":11,"/":11,"%":11},this.lookahead={type:2,value:"",lineNumber:this.scanner.lineNumber,lineStart:0,start:0,end:0},this.hasLineTerminator=!1,this.context={isModule:!1,await:!1,allowIn:!0,allowStrictDirective:!0,allowYield:!0,firstCoverInitializedNameError:null,isAssignmentTarget:!1,isBindingElement:!1,inFunctionBody:!1,inIteration:!1,inSwitch:!1,labelSet:{},strict:!1},this.tokens=[],this.startMarker={index:0,line:this.scanner.lineNumber,column:0},this.lastMarker={index:0,line:this.scanner.lineNumber,column:0},this.nextToken(),this.lastMarker={index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}return e.prototype.throwError=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Array.prototype.slice.call(arguments,1),o=e.replace(/%(\d)/g,(function(e,t){return i.assert(t<r.length,"Message reference must be in range"),r[t]})),s=this.lastMarker.index,a=this.lastMarker.line,c=this.lastMarker.column+1;throw this.errorHandler.createError(s,a,c,o)},e.prototype.tolerateError=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Array.prototype.slice.call(arguments,1),o=e.replace(/%(\d)/g,(function(e,t){return i.assert(t<r.length,"Message reference must be in range"),r[t]})),s=this.lastMarker.index,a=this.scanner.lineNumber,c=this.lastMarker.column+1;this.errorHandler.tolerateError(s,a,c,o)},e.prototype.unexpectedTokenError=function(e,t){var n,i=t||o.Messages.UnexpectedToken;if(e?(t||(i=2===e.type?o.Messages.UnexpectedEOS:3===e.type?o.Messages.UnexpectedIdentifier:6===e.type?o.Messages.UnexpectedNumber:8===e.type?o.Messages.UnexpectedString:10===e.type?o.Messages.UnexpectedTemplate:o.Messages.UnexpectedToken,4===e.type&&(this.scanner.isFutureReservedWord(e.value)?i=o.Messages.UnexpectedReserved:this.context.strict&&this.scanner.isStrictModeReservedWord(e.value)&&(i=o.Messages.StrictReservedWord))),n=e.value):n="ILLEGAL",i=i.replace("%0",n),e&&"number"==typeof e.lineNumber){var r=e.start,s=e.lineNumber,a=this.lastMarker.index-this.lastMarker.column,c=e.start-a+1;return this.errorHandler.createError(r,s,c,i)}return r=this.lastMarker.index,s=this.lastMarker.line,c=this.lastMarker.column+1,this.errorHandler.createError(r,s,c,i)},e.prototype.throwUnexpectedToken=function(e,t){throw this.unexpectedTokenError(e,t)},e.prototype.tolerateUnexpectedToken=function(e,t){this.errorHandler.tolerate(this.unexpectedTokenError(e,t))},e.prototype.collectComments=function(){if(this.config.comment){var e=this.scanner.scanComments();if(e.length>0&&this.delegate)for(var t=0;t<e.length;++t){var n=e[t],i=void 0;i={type:n.multiLine?"BlockComment":"LineComment",value:this.scanner.source.slice(n.slice[0],n.slice[1])},this.config.range&&(i.range=n.range),this.config.loc&&(i.loc=n.loc);var r={start:{line:n.loc.start.line,column:n.loc.start.column,offset:n.range[0]},end:{line:n.loc.end.line,column:n.loc.end.column,offset:n.range[1]}};this.delegate(i,r)}}else this.scanner.scanComments()},e.prototype.getTokenRaw=function(e){return this.scanner.source.slice(e.start,e.end)},e.prototype.convertToken=function(e){var t={type:u.TokenName[e.type],value:this.getTokenRaw(e)};if(this.config.range&&(t.range=[e.start,e.end]),this.config.loc&&(t.loc={start:{line:this.startMarker.line,column:this.startMarker.column},end:{line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}),9===e.type){var n=e.pattern,i=e.flags;t.regex={pattern:n,flags:i}}return t},e.prototype.nextToken=function(){var e=this.lookahead;this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.collectComments(),this.scanner.index!==this.startMarker.index&&(this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart);var t=this.scanner.lex();return this.hasLineTerminator=e.lineNumber!==t.lineNumber,t&&this.context.strict&&3===t.type&&this.scanner.isStrictModeReservedWord(t.value)&&(t.type=4),this.lookahead=t,this.config.tokens&&2!==t.type&&this.tokens.push(this.convertToken(t)),e},e.prototype.nextRegexToken=function(){this.collectComments();var e=this.scanner.scanRegExp();return this.config.tokens&&(this.tokens.pop(),this.tokens.push(this.convertToken(e))),this.lookahead=e,this.nextToken(),e},e.prototype.createNode=function(){return{index:this.startMarker.index,line:this.startMarker.line,column:this.startMarker.column}},e.prototype.startNode=function(e,t){void 0===t&&(t=0);var n=e.start-e.lineStart,i=e.lineNumber;return n<0&&(n+=t,i--),{index:e.start,line:i,column:n}},e.prototype.finalize=function(e,t){if(this.config.range&&(t.range=[e.index,this.lastMarker.index]),this.config.loc&&(t.loc={start:{line:e.line,column:e.column},end:{line:this.lastMarker.line,column:this.lastMarker.column}},this.config.source&&(t.loc.source=this.config.source)),this.delegate){var n={start:{line:e.line,column:e.column,offset:e.index},end:{line:this.lastMarker.line,column:this.lastMarker.column,offset:this.lastMarker.index}};this.delegate(t,n)}return t},e.prototype.expect=function(e){var t=this.nextToken();7===t.type&&t.value===e||this.throwUnexpectedToken(t)},e.prototype.expectCommaSeparator=function(){if(this.config.tolerant){var e=this.lookahead;7===e.type&&","===e.value?this.nextToken():7===e.type&&";"===e.value?(this.nextToken(),this.tolerateUnexpectedToken(e)):this.tolerateUnexpectedToken(e,o.Messages.UnexpectedToken)}else this.expect(",")},e.prototype.expectKeyword=function(e){var t=this.nextToken();4===t.type&&t.value===e||this.throwUnexpectedToken(t)},e.prototype.match=function(e){return 7===this.lookahead.type&&this.lookahead.value===e},e.prototype.matchKeyword=function(e){return 4===this.lookahead.type&&this.lookahead.value===e},e.prototype.matchContextualKeyword=function(e){return 3===this.lookahead.type&&this.lookahead.value===e},e.prototype.matchAssign=function(){if(7!==this.lookahead.type)return!1;var e=this.lookahead.value;return"="===e||"*="===e||"**="===e||"/="===e||"%="===e||"+="===e||"-="===e||"<<="===e||">>="===e||">>>="===e||"&="===e||"^="===e||"|="===e},e.prototype.isolateCoverGrammar=function(e){var t=this.context.isBindingElement,n=this.context.isAssignmentTarget,i=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var r=e.call(this);return null!==this.context.firstCoverInitializedNameError&&this.throwUnexpectedToken(this.context.firstCoverInitializedNameError),this.context.isBindingElement=t,this.context.isAssignmentTarget=n,this.context.firstCoverInitializedNameError=i,r},e.prototype.inheritCoverGrammar=function(e){var t=this.context.isBindingElement,n=this.context.isAssignmentTarget,i=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var r=e.call(this);return this.context.isBindingElement=this.context.isBindingElement&&t,this.context.isAssignmentTarget=this.context.isAssignmentTarget&&n,this.context.firstCoverInitializedNameError=i||this.context.firstCoverInitializedNameError,r},e.prototype.consumeSemicolon=function(){this.match(";")?this.nextToken():this.hasLineTerminator||(2===this.lookahead.type||this.match("}")||this.throwUnexpectedToken(this.lookahead),this.lastMarker.index=this.startMarker.index,this.lastMarker.line=this.startMarker.line,this.lastMarker.column=this.startMarker.column)},e.prototype.parsePrimaryExpression=function(){var e,t,n,i=this.createNode();switch(this.lookahead.type){case 3:(this.context.isModule||this.context.await)&&"await"===this.lookahead.value&&this.tolerateUnexpectedToken(this.lookahead),e=this.matchAsyncFunction()?this.parseFunctionExpression():this.finalize(i,new s.Identifier(this.nextToken().value));break;case 6:case 8:this.context.strict&&this.lookahead.octal&&this.tolerateUnexpectedToken(this.lookahead,o.Messages.StrictOctalLiteral),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,t=this.nextToken(),n=this.getTokenRaw(t),e=this.finalize(i,new s.Literal(t.value,n));break;case 1:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,t=this.nextToken(),n=this.getTokenRaw(t),e=this.finalize(i,new s.Literal("true"===t.value,n));break;case 5:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,t=this.nextToken(),n=this.getTokenRaw(t),e=this.finalize(i,new s.Literal(null,n));break;case 10:e=this.parseTemplateLiteral();break;case 7:switch(this.lookahead.value){case"(":this.context.isBindingElement=!1,e=this.inheritCoverGrammar(this.parseGroupExpression);break;case"[":e=this.inheritCoverGrammar(this.parseArrayInitializer);break;case"{":e=this.inheritCoverGrammar(this.parseObjectInitializer);break;case"/":case"/=":this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.scanner.index=this.startMarker.index,t=this.nextRegexToken(),n=this.getTokenRaw(t),e=this.finalize(i,new s.RegexLiteral(t.regex,n,t.pattern,t.flags));break;default:e=this.throwUnexpectedToken(this.nextToken())}break;case 4:!this.context.strict&&this.context.allowYield&&this.matchKeyword("yield")?e=this.parseIdentifierName():!this.context.strict&&this.matchKeyword("let")?e=this.finalize(i,new s.Identifier(this.nextToken().value)):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.matchKeyword("function")?e=this.parseFunctionExpression():this.matchKeyword("this")?(this.nextToken(),e=this.finalize(i,new s.ThisExpression)):e=this.matchKeyword("class")?this.parseClassExpression():this.throwUnexpectedToken(this.nextToken()));break;default:e=this.throwUnexpectedToken(this.nextToken())}return e},e.prototype.parseSpreadElement=function(){var e=this.createNode();this.expect("...");var t=this.inheritCoverGrammar(this.parseAssignmentExpression);return this.finalize(e,new s.SpreadElement(t))},e.prototype.parseArrayInitializer=function(){var e=this.createNode(),t=[];for(this.expect("[");!this.match("]");)if(this.match(","))this.nextToken(),t.push(null);else if(this.match("...")){var n=this.parseSpreadElement();this.match("]")||(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.expect(",")),t.push(n)}else t.push(this.inheritCoverGrammar(this.parseAssignmentExpression)),this.match("]")||this.expect(",");return this.expect("]"),this.finalize(e,new s.ArrayExpression(t))},e.prototype.parsePropertyMethod=function(e){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var t=this.context.strict,n=this.context.allowStrictDirective;this.context.allowStrictDirective=e.simple;var i=this.isolateCoverGrammar(this.parseFunctionSourceElements);return this.context.strict&&e.firstRestricted&&this.tolerateUnexpectedToken(e.firstRestricted,e.message),this.context.strict&&e.stricted&&this.tolerateUnexpectedToken(e.stricted,e.message),this.context.strict=t,this.context.allowStrictDirective=n,i},e.prototype.parsePropertyMethodFunction=function(){var e=this.createNode(),t=this.context.allowYield;this.context.allowYield=!0;var n=this.parseFormalParameters(),i=this.parsePropertyMethod(n);return this.context.allowYield=t,this.finalize(e,new s.FunctionExpression(null,n.params,i,!1))},e.prototype.parsePropertyMethodAsyncFunction=function(){var e=this.createNode(),t=this.context.allowYield,n=this.context.await;this.context.allowYield=!1,this.context.await=!0;var i=this.parseFormalParameters(),r=this.parsePropertyMethod(i);return this.context.allowYield=t,this.context.await=n,this.finalize(e,new s.AsyncFunctionExpression(null,i.params,r))},e.prototype.parseObjectPropertyKey=function(){var e,t=this.createNode(),n=this.nextToken();switch(n.type){case 8:case 6:this.context.strict&&n.octal&&this.tolerateUnexpectedToken(n,o.Messages.StrictOctalLiteral);var i=this.getTokenRaw(n);e=this.finalize(t,new s.Literal(n.value,i));break;case 3:case 1:case 5:case 4:e=this.finalize(t,new s.Identifier(n.value));break;case 7:"["===n.value?(e=this.isolateCoverGrammar(this.parseAssignmentExpression),this.expect("]")):e=this.throwUnexpectedToken(n);break;default:e=this.throwUnexpectedToken(n)}return e},e.prototype.isPropertyKey=function(e,t){return e.type===c.Syntax.Identifier&&e.name===t||e.type===c.Syntax.Literal&&e.value===t},e.prototype.parseObjectProperty=function(e){var t,n=this.createNode(),i=this.lookahead,r=null,a=null,c=!1,u=!1,l=!1,h=!1;if(3===i.type){var d=i.value;this.nextToken(),c=this.match("["),r=(h=!(this.hasLineTerminator||"async"!==d||this.match(":")||this.match("(")||this.match("*")||this.match(",")))?this.parseObjectPropertyKey():this.finalize(n,new s.Identifier(d))}else this.match("*")?this.nextToken():(c=this.match("["),r=this.parseObjectPropertyKey());var p=this.qualifiedPropertyName(this.lookahead);if(3===i.type&&!h&&"get"===i.value&&p)t="get",c=this.match("["),r=this.parseObjectPropertyKey(),this.context.allowYield=!1,a=this.parseGetterMethod();else if(3===i.type&&!h&&"set"===i.value&&p)t="set",c=this.match("["),r=this.parseObjectPropertyKey(),a=this.parseSetterMethod();else if(7===i.type&&"*"===i.value&&p)t="init",c=this.match("["),r=this.parseObjectPropertyKey(),a=this.parseGeneratorMethod(),u=!0;else if(r||this.throwUnexpectedToken(this.lookahead),t="init",this.match(":")&&!h)!c&&this.isPropertyKey(r,"__proto__")&&(e.value&&this.tolerateError(o.Messages.DuplicateProtoProperty),e.value=!0),this.nextToken(),a=this.inheritCoverGrammar(this.parseAssignmentExpression);else if(this.match("("))a=h?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),u=!0;else if(3===i.type)if(d=this.finalize(n,new s.Identifier(i.value)),this.match("=")){this.context.firstCoverInitializedNameError=this.lookahead,this.nextToken(),l=!0;var f=this.isolateCoverGrammar(this.parseAssignmentExpression);a=this.finalize(n,new s.AssignmentPattern(d,f))}else l=!0,a=d;else this.throwUnexpectedToken(this.nextToken());return this.finalize(n,new s.Property(t,r,c,a,u,l))},e.prototype.parseObjectInitializer=function(){var e=this.createNode();this.expect("{");for(var t=[],n={value:!1};!this.match("}");)t.push(this.parseObjectProperty(n)),this.match("}")||this.expectCommaSeparator();return this.expect("}"),this.finalize(e,new s.ObjectExpression(t))},e.prototype.parseTemplateHead=function(){i.assert(this.lookahead.head,"Template literal must start with a template head");var e=this.createNode(),t=this.nextToken(),n=t.value,r=t.cooked;return this.finalize(e,new s.TemplateElement({raw:n,cooked:r},t.tail))},e.prototype.parseTemplateElement=function(){10!==this.lookahead.type&&this.throwUnexpectedToken();var e=this.createNode(),t=this.nextToken(),n=t.value,i=t.cooked;return this.finalize(e,new s.TemplateElement({raw:n,cooked:i},t.tail))},e.prototype.parseTemplateLiteral=function(){var e=this.createNode(),t=[],n=[],i=this.parseTemplateHead();for(n.push(i);!i.tail;)t.push(this.parseExpression()),i=this.parseTemplateElement(),n.push(i);return this.finalize(e,new s.TemplateLiteral(n,t))},e.prototype.reinterpretExpressionAsPattern=function(e){switch(e.type){case c.Syntax.Identifier:case c.Syntax.MemberExpression:case c.Syntax.RestElement:case c.Syntax.AssignmentPattern:break;case c.Syntax.SpreadElement:e.type=c.Syntax.RestElement,this.reinterpretExpressionAsPattern(e.argument);break;case c.Syntax.ArrayExpression:e.type=c.Syntax.ArrayPattern;for(var t=0;t<e.elements.length;t++)null!==e.elements[t]&&this.reinterpretExpressionAsPattern(e.elements[t]);break;case c.Syntax.ObjectExpression:for(e.type=c.Syntax.ObjectPattern,t=0;t<e.properties.length;t++)this.reinterpretExpressionAsPattern(e.properties[t].value);break;case c.Syntax.AssignmentExpression:e.type=c.Syntax.AssignmentPattern,delete e.operator,this.reinterpretExpressionAsPattern(e.left)}},e.prototype.parseGroupExpression=function(){var e;if(this.expect("("),this.match(")"))this.nextToken(),this.match("=>")||this.expect("=>"),e={type:l,params:[],async:!1};else{var t=this.lookahead,n=[];if(this.match("..."))e=this.parseRestElement(n),this.expect(")"),this.match("=>")||this.expect("=>"),e={type:l,params:[e],async:!1};else{var i=!1;if(this.context.isBindingElement=!0,e=this.inheritCoverGrammar(this.parseAssignmentExpression),this.match(",")){var r=[];for(this.context.isAssignmentTarget=!1,r.push(e);2!==this.lookahead.type&&this.match(",");){if(this.nextToken(),this.match(")")){this.nextToken();for(var o=0;o<r.length;o++)this.reinterpretExpressionAsPattern(r[o]);i=!0,e={type:l,params:r,async:!1}}else if(this.match("...")){for(this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),r.push(this.parseRestElement(n)),this.expect(")"),this.match("=>")||this.expect("=>"),this.context.isBindingElement=!1,o=0;o<r.length;o++)this.reinterpretExpressionAsPattern(r[o]);i=!0,e={type:l,params:r,async:!1}}else r.push(this.inheritCoverGrammar(this.parseAssignmentExpression));if(i)break}i||(e=this.finalize(this.startNode(t),new s.SequenceExpression(r)))}if(!i){if(this.expect(")"),this.match("=>")&&(e.type===c.Syntax.Identifier&&"yield"===e.name&&(i=!0,e={type:l,params:[e],async:!1}),!i)){if(this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),e.type===c.Syntax.SequenceExpression)for(o=0;o<e.expressions.length;o++)this.reinterpretExpressionAsPattern(e.expressions[o]);else this.reinterpretExpressionAsPattern(e);var a=e.type===c.Syntax.SequenceExpression?e.expressions:[e];e={type:l,params:a,async:!1}}this.context.isBindingElement=!1}}}return e},e.prototype.parseArguments=function(){this.expect("(");var e=[];if(!this.match(")"))for(;;){var t=this.match("...")?this.parseSpreadElement():this.isolateCoverGrammar(this.parseAssignmentExpression);if(e.push(t),this.match(")"))break;if(this.expectCommaSeparator(),this.match(")"))break}return this.expect(")"),e},e.prototype.isIdentifierName=function(e){return 3===e.type||4===e.type||1===e.type||5===e.type},e.prototype.parseIdentifierName=function(){var e=this.createNode(),t=this.nextToken();return this.isIdentifierName(t)||this.throwUnexpectedToken(t),this.finalize(e,new s.Identifier(t.value))},e.prototype.parseNewExpression=function(){var e,t=this.createNode(),n=this.parseIdentifierName();if(i.assert("new"===n.name,"New expression must start with `new`"),this.match("."))if(this.nextToken(),3===this.lookahead.type&&this.context.inFunctionBody&&"target"===this.lookahead.value){var r=this.parseIdentifierName();e=new s.MetaProperty(n,r)}else this.throwUnexpectedToken(this.lookahead);else{var o=this.isolateCoverGrammar(this.parseLeftHandSideExpression),a=this.match("(")?this.parseArguments():[];e=new s.NewExpression(o,a),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return this.finalize(t,e)},e.prototype.parseAsyncArgument=function(){var e=this.parseAssignmentExpression();return this.context.firstCoverInitializedNameError=null,e},e.prototype.parseAsyncArguments=function(){this.expect("(");var e=[];if(!this.match(")"))for(;;){var t=this.match("...")?this.parseSpreadElement():this.isolateCoverGrammar(this.parseAsyncArgument);if(e.push(t),this.match(")"))break;if(this.expectCommaSeparator(),this.match(")"))break}return this.expect(")"),e},e.prototype.parseLeftHandSideExpressionAllowCall=function(){var e,t=this.lookahead,n=this.matchContextualKeyword("async"),i=this.context.allowIn;for(this.context.allowIn=!0,this.matchKeyword("super")&&this.context.inFunctionBody?(e=this.createNode(),this.nextToken(),e=this.finalize(e,new s.Super),this.match("(")||this.match(".")||this.match("[")||this.throwUnexpectedToken(this.lookahead)):e=this.inheritCoverGrammar(this.matchKeyword("new")?this.parseNewExpression:this.parsePrimaryExpression);;)if(this.match(".")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect(".");var r=this.parseIdentifierName();e=this.finalize(this.startNode(t),new s.StaticMemberExpression(e,r))}else if(this.match("(")){var o=n&&t.lineNumber===this.lookahead.lineNumber;this.context.isBindingElement=!1,this.context.isAssignmentTarget=!1;var a=o?this.parseAsyncArguments():this.parseArguments();if(e=this.finalize(this.startNode(t),new s.CallExpression(e,a)),o&&this.match("=>")){for(var c=0;c<a.length;++c)this.reinterpretExpressionAsPattern(a[c]);e={type:l,params:a,async:!0}}}else if(this.match("["))this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect("["),r=this.isolateCoverGrammar(this.parseExpression),this.expect("]"),e=this.finalize(this.startNode(t),new s.ComputedMemberExpression(e,r));else{if(10!==this.lookahead.type||!this.lookahead.head)break;var u=this.parseTemplateLiteral();e=this.finalize(this.startNode(t),new s.TaggedTemplateExpression(e,u))}return this.context.allowIn=i,e},e.prototype.parseSuper=function(){var e=this.createNode();return this.expectKeyword("super"),this.match("[")||this.match(".")||this.throwUnexpectedToken(this.lookahead),this.finalize(e,new s.Super)},e.prototype.parseLeftHandSideExpression=function(){i.assert(this.context.allowIn,"callee of new expression always allow in keyword.");for(var e=this.startNode(this.lookahead),t=this.matchKeyword("super")&&this.context.inFunctionBody?this.parseSuper():this.inheritCoverGrammar(this.matchKeyword("new")?this.parseNewExpression:this.parsePrimaryExpression);;)if(this.match("[")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect("[");var n=this.isolateCoverGrammar(this.parseExpression);this.expect("]"),t=this.finalize(e,new s.ComputedMemberExpression(t,n))}else if(this.match("."))this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect("."),n=this.parseIdentifierName(),t=this.finalize(e,new s.StaticMemberExpression(t,n));else{if(10!==this.lookahead.type||!this.lookahead.head)break;var r=this.parseTemplateLiteral();t=this.finalize(e,new s.TaggedTemplateExpression(t,r))}return t},e.prototype.parseUpdateExpression=function(){var e,t=this.lookahead;if(this.match("++")||this.match("--")){var n=this.startNode(t),i=this.nextToken();e=this.inheritCoverGrammar(this.parseUnaryExpression),this.context.strict&&e.type===c.Syntax.Identifier&&this.scanner.isRestrictedWord(e.name)&&this.tolerateError(o.Messages.StrictLHSPrefix),this.context.isAssignmentTarget||this.tolerateError(o.Messages.InvalidLHSInAssignment);var r=!0;e=this.finalize(n,new s.UpdateExpression(i.value,e,r)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}else if(e=this.inheritCoverGrammar(this.parseLeftHandSideExpressionAllowCall),!this.hasLineTerminator&&7===this.lookahead.type&&(this.match("++")||this.match("--"))){this.context.strict&&e.type===c.Syntax.Identifier&&this.scanner.isRestrictedWord(e.name)&&this.tolerateError(o.Messages.StrictLHSPostfix),this.context.isAssignmentTarget||this.tolerateError(o.Messages.InvalidLHSInAssignment),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var a=this.nextToken().value;r=!1,e=this.finalize(this.startNode(t),new s.UpdateExpression(a,e,r))}return e},e.prototype.parseAwaitExpression=function(){var e=this.createNode();this.nextToken();var t=this.parseUnaryExpression();return this.finalize(e,new s.AwaitExpression(t))},e.prototype.parseUnaryExpression=function(){var e;if(this.match("+")||this.match("-")||this.match("~")||this.match("!")||this.matchKeyword("delete")||this.matchKeyword("void")||this.matchKeyword("typeof")){var t=this.startNode(this.lookahead),n=this.nextToken();e=this.inheritCoverGrammar(this.parseUnaryExpression),e=this.finalize(t,new s.UnaryExpression(n.value,e)),this.context.strict&&"delete"===e.operator&&e.argument.type===c.Syntax.Identifier&&this.tolerateError(o.Messages.StrictDelete),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}else e=this.context.await&&this.matchContextualKeyword("await")?this.parseAwaitExpression():this.parseUpdateExpression();return e},e.prototype.parseExponentiationExpression=function(){var e=this.lookahead,t=this.inheritCoverGrammar(this.parseUnaryExpression);if(t.type!==c.Syntax.UnaryExpression&&this.match("**")){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var n=t,i=this.isolateCoverGrammar(this.parseExponentiationExpression);t=this.finalize(this.startNode(e),new s.BinaryExpression("**",n,i))}return t},e.prototype.binaryPrecedence=function(e){var t=e.value;return 7===e.type?this.operatorPrecedence[t]||0:4===e.type&&("instanceof"===t||this.context.allowIn&&"in"===t)?7:0},e.prototype.parseBinaryExpression=function(){var e=this.lookahead,t=this.inheritCoverGrammar(this.parseExponentiationExpression),n=this.lookahead,i=this.binaryPrecedence(n);if(i>0){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;for(var r=[e,this.lookahead],o=t,a=this.isolateCoverGrammar(this.parseExponentiationExpression),c=[o,n.value,a],u=[i];!((i=this.binaryPrecedence(this.lookahead))<=0);){for(;c.length>2&&i<=u[u.length-1];){a=c.pop();var l=c.pop();u.pop(),o=c.pop(),r.pop();var h=this.startNode(r[r.length-1]);c.push(this.finalize(h,new s.BinaryExpression(l,o,a)))}c.push(this.nextToken().value),u.push(i),r.push(this.lookahead),c.push(this.isolateCoverGrammar(this.parseExponentiationExpression))}var d=c.length-1;t=c[d];for(var p=r.pop();d>1;){var f=r.pop(),g=p&&p.lineStart;h=this.startNode(f,g),l=c[d-1],t=this.finalize(h,new s.BinaryExpression(l,c[d-2],t)),d-=2,p=f}}return t},e.prototype.parseConditionalExpression=function(){var e=this.lookahead,t=this.inheritCoverGrammar(this.parseBinaryExpression);if(this.match("?")){this.nextToken();var n=this.context.allowIn;this.context.allowIn=!0;var i=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowIn=n,this.expect(":");var r=this.isolateCoverGrammar(this.parseAssignmentExpression);t=this.finalize(this.startNode(e),new s.ConditionalExpression(t,i,r)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return t},e.prototype.checkPatternParam=function(e,t){switch(t.type){case c.Syntax.Identifier:this.validateParam(e,t,t.name);break;case c.Syntax.RestElement:this.checkPatternParam(e,t.argument);break;case c.Syntax.AssignmentPattern:this.checkPatternParam(e,t.left);break;case c.Syntax.ArrayPattern:for(var n=0;n<t.elements.length;n++)null!==t.elements[n]&&this.checkPatternParam(e,t.elements[n]);break;case c.Syntax.ObjectPattern:for(n=0;n<t.properties.length;n++)this.checkPatternParam(e,t.properties[n].value)}e.simple=e.simple&&t instanceof s.Identifier},e.prototype.reinterpretAsCoverFormalsList=function(e){var t,n=[e],i=!1;switch(e.type){case c.Syntax.Identifier:break;case l:n=e.params,i=e.async;break;default:return null}t={simple:!0,paramSet:{}};for(var r=0;r<n.length;++r)(s=n[r]).type===c.Syntax.AssignmentPattern?s.right.type===c.Syntax.YieldExpression&&(s.right.argument&&this.throwUnexpectedToken(this.lookahead),s.right.type=c.Syntax.Identifier,s.right.name="yield",delete s.right.argument,delete s.right.delegate):i&&s.type===c.Syntax.Identifier&&"await"===s.name&&this.throwUnexpectedToken(this.lookahead),this.checkPatternParam(t,s),n[r]=s;if(this.context.strict||!this.context.allowYield)for(r=0;r<n.length;++r){var s;(s=n[r]).type===c.Syntax.YieldExpression&&this.throwUnexpectedToken(this.lookahead)}if(t.message===o.Messages.StrictParamDupe){var a=this.context.strict?t.stricted:t.firstRestricted;this.throwUnexpectedToken(a,t.message)}return{simple:t.simple,params:n,stricted:t.stricted,firstRestricted:t.firstRestricted,message:t.message}},e.prototype.parseAssignmentExpression=function(){var e;if(!this.context.allowYield&&this.matchKeyword("yield"))e=this.parseYieldExpression();else{var t=this.lookahead,n=t;if(e=this.parseConditionalExpression(),3===n.type&&n.lineNumber===this.lookahead.lineNumber&&"async"===n.value&&(3===this.lookahead.type||this.matchKeyword("yield"))){var i=this.parsePrimaryExpression();this.reinterpretExpressionAsPattern(i),e={type:l,params:[i],async:!0}}if(e.type===l||this.match("=>")){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var r=e.async,a=this.reinterpretAsCoverFormalsList(e);if(a){this.hasLineTerminator&&this.tolerateUnexpectedToken(this.lookahead),this.context.firstCoverInitializedNameError=null;var u=this.context.strict,h=this.context.allowStrictDirective;this.context.allowStrictDirective=a.simple;var d=this.context.allowYield,p=this.context.await;this.context.allowYield=!0,this.context.await=r;var f=this.startNode(t);this.expect("=>");var g=void 0;if(this.match("{")){var m=this.context.allowIn;this.context.allowIn=!0,g=this.parseFunctionSourceElements(),this.context.allowIn=m}else g=this.isolateCoverGrammar(this.parseAssignmentExpression);var y=g.type!==c.Syntax.BlockStatement;this.context.strict&&a.firstRestricted&&this.throwUnexpectedToken(a.firstRestricted,a.message),this.context.strict&&a.stricted&&this.tolerateUnexpectedToken(a.stricted,a.message),e=r?this.finalize(f,new s.AsyncArrowFunctionExpression(a.params,g,y)):this.finalize(f,new s.ArrowFunctionExpression(a.params,g,y)),this.context.strict=u,this.context.allowStrictDirective=h,this.context.allowYield=d,this.context.await=p}}else if(this.matchAssign()){if(this.context.isAssignmentTarget||this.tolerateError(o.Messages.InvalidLHSInAssignment),this.context.strict&&e.type===c.Syntax.Identifier){var v=e;this.scanner.isRestrictedWord(v.name)&&this.tolerateUnexpectedToken(n,o.Messages.StrictLHSAssignment),this.scanner.isStrictModeReservedWord(v.name)&&this.tolerateUnexpectedToken(n,o.Messages.StrictReservedWord)}this.match("=")?this.reinterpretExpressionAsPattern(e):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1);var C=(n=this.nextToken()).value,S=this.isolateCoverGrammar(this.parseAssignmentExpression);e=this.finalize(this.startNode(t),new s.AssignmentExpression(C,e,S)),this.context.firstCoverInitializedNameError=null}}return e},e.prototype.parseExpression=function(){var e=this.lookahead,t=this.isolateCoverGrammar(this.parseAssignmentExpression);if(this.match(",")){var n=[];for(n.push(t);2!==this.lookahead.type&&this.match(",");)this.nextToken(),n.push(this.isolateCoverGrammar(this.parseAssignmentExpression));t=this.finalize(this.startNode(e),new s.SequenceExpression(n))}return t},e.prototype.parseStatementListItem=function(){var e;if(this.context.isAssignmentTarget=!0,this.context.isBindingElement=!0,4===this.lookahead.type)switch(this.lookahead.value){case"export":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,o.Messages.IllegalExportDeclaration),e=this.parseExportDeclaration();break;case"import":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,o.Messages.IllegalImportDeclaration),e=this.parseImportDeclaration();break;case"const":e=this.parseLexicalDeclaration({inFor:!1});break;case"function":e=this.parseFunctionDeclaration();break;case"class":e=this.parseClassDeclaration();break;case"let":e=this.isLexicalDeclaration()?this.parseLexicalDeclaration({inFor:!1}):this.parseStatement();break;default:e=this.parseStatement()}else e=this.parseStatement();return e},e.prototype.parseBlock=function(){var e=this.createNode();this.expect("{");for(var t=[];!this.match("}");)t.push(this.parseStatementListItem());return this.expect("}"),this.finalize(e,new s.BlockStatement(t))},e.prototype.parseLexicalBinding=function(e,t){var n=this.createNode(),i=this.parsePattern([],e);this.context.strict&&i.type===c.Syntax.Identifier&&this.scanner.isRestrictedWord(i.name)&&this.tolerateError(o.Messages.StrictVarName);var r=null;return"const"===e?this.matchKeyword("in")||this.matchContextualKeyword("of")||(this.match("=")?(this.nextToken(),r=this.isolateCoverGrammar(this.parseAssignmentExpression)):this.throwError(o.Messages.DeclarationMissingInitializer,"const")):(!t.inFor&&i.type!==c.Syntax.Identifier||this.match("="))&&(this.expect("="),r=this.isolateCoverGrammar(this.parseAssignmentExpression)),this.finalize(n,new s.VariableDeclarator(i,r))},e.prototype.parseBindingList=function(e,t){for(var n=[this.parseLexicalBinding(e,t)];this.match(",");)this.nextToken(),n.push(this.parseLexicalBinding(e,t));return n},e.prototype.isLexicalDeclaration=function(){var e=this.scanner.saveState();this.scanner.scanComments();var t=this.scanner.lex();return this.scanner.restoreState(e),3===t.type||7===t.type&&"["===t.value||7===t.type&&"{"===t.value||4===t.type&&"let"===t.value||4===t.type&&"yield"===t.value},e.prototype.parseLexicalDeclaration=function(e){var t=this.createNode(),n=this.nextToken().value;i.assert("let"===n||"const"===n,"Lexical declaration must be either let or const");var r=this.parseBindingList(n,e);return this.consumeSemicolon(),this.finalize(t,new s.VariableDeclaration(r,n))},e.prototype.parseBindingRestElement=function(e,t){var n=this.createNode();this.expect("...");var i=this.parsePattern(e,t);return this.finalize(n,new s.RestElement(i))},e.prototype.parseArrayPattern=function(e,t){var n=this.createNode();this.expect("[");for(var i=[];!this.match("]");)if(this.match(","))this.nextToken(),i.push(null);else{if(this.match("...")){i.push(this.parseBindingRestElement(e,t));break}i.push(this.parsePatternWithDefault(e,t)),this.match("]")||this.expect(",")}return this.expect("]"),this.finalize(n,new s.ArrayPattern(i))},e.prototype.parsePropertyPattern=function(e,t){var n,i,r=this.createNode(),o=!1,a=!1;if(3===this.lookahead.type){var c=this.lookahead;n=this.parseVariableIdentifier();var u=this.finalize(r,new s.Identifier(c.value));if(this.match("=")){e.push(c),a=!0,this.nextToken();var l=this.parseAssignmentExpression();i=this.finalize(this.startNode(c),new s.AssignmentPattern(u,l))}else this.match(":")?(this.expect(":"),i=this.parsePatternWithDefault(e,t)):(e.push(c),a=!0,i=u)}else o=this.match("["),n=this.parseObjectPropertyKey(),this.expect(":"),i=this.parsePatternWithDefault(e,t);return this.finalize(r,new s.Property("init",n,o,i,!1,a))},e.prototype.parseObjectPattern=function(e,t){var n=this.createNode(),i=[];for(this.expect("{");!this.match("}");)i.push(this.parsePropertyPattern(e,t)),this.match("}")||this.expect(",");return this.expect("}"),this.finalize(n,new s.ObjectPattern(i))},e.prototype.parsePattern=function(e,t){var n;return this.match("[")?n=this.parseArrayPattern(e,t):this.match("{")?n=this.parseObjectPattern(e,t):(!this.matchKeyword("let")||"const"!==t&&"let"!==t||this.tolerateUnexpectedToken(this.lookahead,o.Messages.LetInLexicalBinding),e.push(this.lookahead),n=this.parseVariableIdentifier(t)),n},e.prototype.parsePatternWithDefault=function(e,t){var n=this.lookahead,i=this.parsePattern(e,t);if(this.match("=")){this.nextToken();var r=this.context.allowYield;this.context.allowYield=!0;var o=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowYield=r,i=this.finalize(this.startNode(n),new s.AssignmentPattern(i,o))}return i},e.prototype.parseVariableIdentifier=function(e){var t=this.createNode(),n=this.nextToken();return 4===n.type&&"yield"===n.value?this.context.strict?this.tolerateUnexpectedToken(n,o.Messages.StrictReservedWord):this.context.allowYield||this.throwUnexpectedToken(n):3!==n.type?this.context.strict&&4===n.type&&this.scanner.isStrictModeReservedWord(n.value)?this.tolerateUnexpectedToken(n,o.Messages.StrictReservedWord):(this.context.strict||"let"!==n.value||"var"!==e)&&this.throwUnexpectedToken(n):(this.context.isModule||this.context.await)&&3===n.type&&"await"===n.value&&this.tolerateUnexpectedToken(n),this.finalize(t,new s.Identifier(n.value))},e.prototype.parseVariableDeclaration=function(e){var t=this.createNode(),n=this.parsePattern([],"var");this.context.strict&&n.type===c.Syntax.Identifier&&this.scanner.isRestrictedWord(n.name)&&this.tolerateError(o.Messages.StrictVarName);var i=null;return this.match("=")?(this.nextToken(),i=this.isolateCoverGrammar(this.parseAssignmentExpression)):n.type===c.Syntax.Identifier||e.inFor||this.expect("="),this.finalize(t,new s.VariableDeclarator(n,i))},e.prototype.parseVariableDeclarationList=function(e){var t={inFor:e.inFor},n=[];for(n.push(this.parseVariableDeclaration(t));this.match(",");)this.nextToken(),n.push(this.parseVariableDeclaration(t));return n},e.prototype.parseVariableStatement=function(){var e=this.createNode();this.expectKeyword("var");var t=this.parseVariableDeclarationList({inFor:!1});return this.consumeSemicolon(),this.finalize(e,new s.VariableDeclaration(t,"var"))},e.prototype.parseEmptyStatement=function(){var e=this.createNode();return this.expect(";"),this.finalize(e,new s.EmptyStatement)},e.prototype.parseExpressionStatement=function(){var e=this.createNode(),t=this.parseExpression();return this.consumeSemicolon(),this.finalize(e,new s.ExpressionStatement(t))},e.prototype.parseIfClause=function(){return this.context.strict&&this.matchKeyword("function")&&this.tolerateError(o.Messages.StrictFunction),this.parseStatement()},e.prototype.parseIfStatement=function(){var e,t=this.createNode(),n=null;this.expectKeyword("if"),this.expect("(");var i=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),e=this.finalize(this.createNode(),new s.EmptyStatement)):(this.expect(")"),e=this.parseIfClause(),this.matchKeyword("else")&&(this.nextToken(),n=this.parseIfClause())),this.finalize(t,new s.IfStatement(i,e,n))},e.prototype.parseDoWhileStatement=function(){var e=this.createNode();this.expectKeyword("do");var t=this.context.inIteration;this.context.inIteration=!0;var n=this.parseStatement();this.context.inIteration=t,this.expectKeyword("while"),this.expect("(");var i=this.parseExpression();return!this.match(")")&&this.config.tolerant?this.tolerateUnexpectedToken(this.nextToken()):(this.expect(")"),this.match(";")&&this.nextToken()),this.finalize(e,new s.DoWhileStatement(n,i))},e.prototype.parseWhileStatement=function(){var e,t=this.createNode();this.expectKeyword("while"),this.expect("(");var n=this.parseExpression();if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),e=this.finalize(this.createNode(),new s.EmptyStatement);else{this.expect(")");var i=this.context.inIteration;this.context.inIteration=!0,e=this.parseStatement(),this.context.inIteration=i}return this.finalize(t,new s.WhileStatement(n,e))},e.prototype.parseForStatement=function(){var e,t,n,i=null,r=null,a=null,u=!0,l=this.createNode();if(this.expectKeyword("for"),this.expect("("),this.match(";"))this.nextToken();else if(this.matchKeyword("var")){i=this.createNode(),this.nextToken();var h=this.context.allowIn;this.context.allowIn=!1;var d=this.parseVariableDeclarationList({inFor:!0});if(this.context.allowIn=h,1===d.length&&this.matchKeyword("in")){var p=d[0];p.init&&(p.id.type===c.Syntax.ArrayPattern||p.id.type===c.Syntax.ObjectPattern||this.context.strict)&&this.tolerateError(o.Messages.ForInOfLoopInitializer,"for-in"),i=this.finalize(i,new s.VariableDeclaration(d,"var")),this.nextToken(),e=i,t=this.parseExpression(),i=null}else 1===d.length&&null===d[0].init&&this.matchContextualKeyword("of")?(i=this.finalize(i,new s.VariableDeclaration(d,"var")),this.nextToken(),e=i,t=this.parseAssignmentExpression(),i=null,u=!1):(i=this.finalize(i,new s.VariableDeclaration(d,"var")),this.expect(";"))}else if(this.matchKeyword("const")||this.matchKeyword("let")){i=this.createNode();var f=this.nextToken().value;this.context.strict||"in"!==this.lookahead.value?(h=this.context.allowIn,this.context.allowIn=!1,d=this.parseBindingList(f,{inFor:!0}),this.context.allowIn=h,1===d.length&&null===d[0].init&&this.matchKeyword("in")?(i=this.finalize(i,new s.VariableDeclaration(d,f)),this.nextToken(),e=i,t=this.parseExpression(),i=null):1===d.length&&null===d[0].init&&this.matchContextualKeyword("of")?(i=this.finalize(i,new s.VariableDeclaration(d,f)),this.nextToken(),e=i,t=this.parseAssignmentExpression(),i=null,u=!1):(this.consumeSemicolon(),i=this.finalize(i,new s.VariableDeclaration(d,f)))):(i=this.finalize(i,new s.Identifier(f)),this.nextToken(),e=i,t=this.parseExpression(),i=null)}else{var g=this.lookahead;if(h=this.context.allowIn,this.context.allowIn=!1,i=this.inheritCoverGrammar(this.parseAssignmentExpression),this.context.allowIn=h,this.matchKeyword("in"))this.context.isAssignmentTarget&&i.type!==c.Syntax.AssignmentExpression||this.tolerateError(o.Messages.InvalidLHSInForIn),this.nextToken(),this.reinterpretExpressionAsPattern(i),e=i,t=this.parseExpression(),i=null;else if(this.matchContextualKeyword("of"))this.context.isAssignmentTarget&&i.type!==c.Syntax.AssignmentExpression||this.tolerateError(o.Messages.InvalidLHSInForLoop),this.nextToken(),this.reinterpretExpressionAsPattern(i),e=i,t=this.parseAssignmentExpression(),i=null,u=!1;else{if(this.match(",")){for(var m=[i];this.match(",");)this.nextToken(),m.push(this.isolateCoverGrammar(this.parseAssignmentExpression));i=this.finalize(this.startNode(g),new s.SequenceExpression(m))}this.expect(";")}}if(void 0===e&&(this.match(";")||(r=this.parseExpression()),this.expect(";"),this.match(")")||(a=this.parseExpression())),!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),n=this.finalize(this.createNode(),new s.EmptyStatement);else{this.expect(")");var y=this.context.inIteration;this.context.inIteration=!0,n=this.isolateCoverGrammar(this.parseStatement),this.context.inIteration=y}return void 0===e?this.finalize(l,new s.ForStatement(i,r,a,n)):u?this.finalize(l,new s.ForInStatement(e,t,n)):this.finalize(l,new s.ForOfStatement(e,t,n))},e.prototype.parseContinueStatement=function(){var e=this.createNode();this.expectKeyword("continue");var t=null;if(3===this.lookahead.type&&!this.hasLineTerminator){var n=this.parseVariableIdentifier();t=n;var i="$"+n.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,i)||this.throwError(o.Messages.UnknownLabel,n.name)}return this.consumeSemicolon(),null!==t||this.context.inIteration||this.throwError(o.Messages.IllegalContinue),this.finalize(e,new s.ContinueStatement(t))},e.prototype.parseBreakStatement=function(){var e=this.createNode();this.expectKeyword("break");var t=null;if(3===this.lookahead.type&&!this.hasLineTerminator){var n=this.parseVariableIdentifier(),i="$"+n.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,i)||this.throwError(o.Messages.UnknownLabel,n.name),t=n}return this.consumeSemicolon(),null!==t||this.context.inIteration||this.context.inSwitch||this.throwError(o.Messages.IllegalBreak),this.finalize(e,new s.BreakStatement(t))},e.prototype.parseReturnStatement=function(){this.context.inFunctionBody||this.tolerateError(o.Messages.IllegalReturn);var e=this.createNode();this.expectKeyword("return");var t=(this.match(";")||this.match("}")||this.hasLineTerminator||2===this.lookahead.type)&&8!==this.lookahead.type&&10!==this.lookahead.type?null:this.parseExpression();return this.consumeSemicolon(),this.finalize(e,new s.ReturnStatement(t))},e.prototype.parseWithStatement=function(){this.context.strict&&this.tolerateError(o.Messages.StrictModeWith);var e,t=this.createNode();this.expectKeyword("with"),this.expect("(");var n=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),e=this.finalize(this.createNode(),new s.EmptyStatement)):(this.expect(")"),e=this.parseStatement()),this.finalize(t,new s.WithStatement(n,e))},e.prototype.parseSwitchCase=function(){var e,t=this.createNode();this.matchKeyword("default")?(this.nextToken(),e=null):(this.expectKeyword("case"),e=this.parseExpression()),this.expect(":");for(var n=[];!(this.match("}")||this.matchKeyword("default")||this.matchKeyword("case"));)n.push(this.parseStatementListItem());return this.finalize(t,new s.SwitchCase(e,n))},e.prototype.parseSwitchStatement=function(){var e=this.createNode();this.expectKeyword("switch"),this.expect("(");var t=this.parseExpression();this.expect(")");var n=this.context.inSwitch;this.context.inSwitch=!0;var i=[],r=!1;for(this.expect("{");!this.match("}");){var a=this.parseSwitchCase();null===a.test&&(r&&this.throwError(o.Messages.MultipleDefaultsInSwitch),r=!0),i.push(a)}return this.expect("}"),this.context.inSwitch=n,this.finalize(e,new s.SwitchStatement(t,i))},e.prototype.parseLabelledStatement=function(){var e,t=this.createNode(),n=this.parseExpression();if(n.type===c.Syntax.Identifier&&this.match(":")){this.nextToken();var i=n,r="$"+i.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,r)&&this.throwError(o.Messages.Redeclaration,"Label",i.name),this.context.labelSet[r]=!0;var a=void 0;if(this.matchKeyword("class"))this.tolerateUnexpectedToken(this.lookahead),a=this.parseClassDeclaration();else if(this.matchKeyword("function")){var u=this.lookahead,l=this.parseFunctionDeclaration();this.context.strict?this.tolerateUnexpectedToken(u,o.Messages.StrictFunction):l.generator&&this.tolerateUnexpectedToken(u,o.Messages.GeneratorInLegacyContext),a=l}else a=this.parseStatement();delete this.context.labelSet[r],e=new s.LabeledStatement(i,a)}else this.consumeSemicolon(),e=new s.ExpressionStatement(n);return this.finalize(t,e)},e.prototype.parseThrowStatement=function(){var e=this.createNode();this.expectKeyword("throw"),this.hasLineTerminator&&this.throwError(o.Messages.NewlineAfterThrow);var t=this.parseExpression();return this.consumeSemicolon(),this.finalize(e,new s.ThrowStatement(t))},e.prototype.parseCatchClause=function(){var e=this.createNode();this.expectKeyword("catch"),this.expect("("),this.match(")")&&this.throwUnexpectedToken(this.lookahead);for(var t=[],n=this.parsePattern(t),i={},r=0;r<t.length;r++){var a="$"+t[r].value;Object.prototype.hasOwnProperty.call(i,a)&&this.tolerateError(o.Messages.DuplicateBinding,t[r].value),i[a]=!0}this.context.strict&&n.type===c.Syntax.Identifier&&this.scanner.isRestrictedWord(n.name)&&this.tolerateError(o.Messages.StrictCatchVariable),this.expect(")");var u=this.parseBlock();return this.finalize(e,new s.CatchClause(n,u))},e.prototype.parseFinallyClause=function(){return this.expectKeyword("finally"),this.parseBlock()},e.prototype.parseTryStatement=function(){var e=this.createNode();this.expectKeyword("try");var t=this.parseBlock(),n=this.matchKeyword("catch")?this.parseCatchClause():null,i=this.matchKeyword("finally")?this.parseFinallyClause():null;return n||i||this.throwError(o.Messages.NoCatchOrFinally),this.finalize(e,new s.TryStatement(t,n,i))},e.prototype.parseDebuggerStatement=function(){var e=this.createNode();return this.expectKeyword("debugger"),this.consumeSemicolon(),this.finalize(e,new s.DebuggerStatement)},e.prototype.parseStatement=function(){var e;switch(this.lookahead.type){case 1:case 5:case 6:case 8:case 10:case 9:e=this.parseExpressionStatement();break;case 7:var t=this.lookahead.value;e="{"===t?this.parseBlock():"("===t?this.parseExpressionStatement():";"===t?this.parseEmptyStatement():this.parseExpressionStatement();break;case 3:e=this.matchAsyncFunction()?this.parseFunctionDeclaration():this.parseLabelledStatement();break;case 4:switch(this.lookahead.value){case"break":e=this.parseBreakStatement();break;case"continue":e=this.parseContinueStatement();break;case"debugger":e=this.parseDebuggerStatement();break;case"do":e=this.parseDoWhileStatement();break;case"for":e=this.parseForStatement();break;case"function":e=this.parseFunctionDeclaration();break;case"if":e=this.parseIfStatement();break;case"return":e=this.parseReturnStatement();break;case"switch":e=this.parseSwitchStatement();break;case"throw":e=this.parseThrowStatement();break;case"try":e=this.parseTryStatement();break;case"var":e=this.parseVariableStatement();break;case"while":e=this.parseWhileStatement();break;case"with":e=this.parseWithStatement();break;default:e=this.parseExpressionStatement()}break;default:e=this.throwUnexpectedToken(this.lookahead)}return e},e.prototype.parseFunctionSourceElements=function(){var e=this.createNode();this.expect("{");var t=this.parseDirectivePrologues(),n=this.context.labelSet,i=this.context.inIteration,r=this.context.inSwitch,o=this.context.inFunctionBody;for(this.context.labelSet={},this.context.inIteration=!1,this.context.inSwitch=!1,this.context.inFunctionBody=!0;2!==this.lookahead.type&&!this.match("}");)t.push(this.parseStatementListItem());return this.expect("}"),this.context.labelSet=n,this.context.inIteration=i,this.context.inSwitch=r,this.context.inFunctionBody=o,this.finalize(e,new s.BlockStatement(t))},e.prototype.validateParam=function(e,t,n){var i="$"+n;this.context.strict?(this.scanner.isRestrictedWord(n)&&(e.stricted=t,e.message=o.Messages.StrictParamName),Object.prototype.hasOwnProperty.call(e.paramSet,i)&&(e.stricted=t,e.message=o.Messages.StrictParamDupe)):e.firstRestricted||(this.scanner.isRestrictedWord(n)?(e.firstRestricted=t,e.message=o.Messages.StrictParamName):this.scanner.isStrictModeReservedWord(n)?(e.firstRestricted=t,e.message=o.Messages.StrictReservedWord):Object.prototype.hasOwnProperty.call(e.paramSet,i)&&(e.stricted=t,e.message=o.Messages.StrictParamDupe)),"function"==typeof Object.defineProperty?Object.defineProperty(e.paramSet,i,{value:!0,enumerable:!0,writable:!0,configurable:!0}):e.paramSet[i]=!0},e.prototype.parseRestElement=function(e){var t=this.createNode();this.expect("...");var n=this.parsePattern(e);return this.match("=")&&this.throwError(o.Messages.DefaultRestParameter),this.match(")")||this.throwError(o.Messages.ParameterAfterRestParameter),this.finalize(t,new s.RestElement(n))},e.prototype.parseFormalParameter=function(e){for(var t=[],n=this.match("...")?this.parseRestElement(t):this.parsePatternWithDefault(t),i=0;i<t.length;i++)this.validateParam(e,t[i],t[i].value);e.simple=e.simple&&n instanceof s.Identifier,e.params.push(n)},e.prototype.parseFormalParameters=function(e){var t;if(t={simple:!0,params:[],firstRestricted:e},this.expect("("),!this.match(")"))for(t.paramSet={};2!==this.lookahead.type&&(this.parseFormalParameter(t),!this.match(")"))&&(this.expect(","),!this.match(")")););return this.expect(")"),{simple:t.simple,params:t.params,stricted:t.stricted,firstRestricted:t.firstRestricted,message:t.message}},e.prototype.matchAsyncFunction=function(){var e=this.matchContextualKeyword("async");if(e){var t=this.scanner.saveState();this.scanner.scanComments();var n=this.scanner.lex();this.scanner.restoreState(t),e=t.lineNumber===n.lineNumber&&4===n.type&&"function"===n.value}return e},e.prototype.parseFunctionDeclaration=function(e){var t=this.createNode(),n=this.matchContextualKeyword("async");n&&this.nextToken(),this.expectKeyword("function");var i,r=!n&&this.match("*");r&&this.nextToken();var a=null,c=null;if(!e||!this.match("(")){var u=this.lookahead;a=this.parseVariableIdentifier(),this.context.strict?this.scanner.isRestrictedWord(u.value)&&this.tolerateUnexpectedToken(u,o.Messages.StrictFunctionName):this.scanner.isRestrictedWord(u.value)?(c=u,i=o.Messages.StrictFunctionName):this.scanner.isStrictModeReservedWord(u.value)&&(c=u,i=o.Messages.StrictReservedWord)}var l=this.context.await,h=this.context.allowYield;this.context.await=n,this.context.allowYield=!r;var d=this.parseFormalParameters(c),p=d.params,f=d.stricted;c=d.firstRestricted,d.message&&(i=d.message);var g=this.context.strict,m=this.context.allowStrictDirective;this.context.allowStrictDirective=d.simple;var y=this.parseFunctionSourceElements();return this.context.strict&&c&&this.throwUnexpectedToken(c,i),this.context.strict&&f&&this.tolerateUnexpectedToken(f,i),this.context.strict=g,this.context.allowStrictDirective=m,this.context.await=l,this.context.allowYield=h,n?this.finalize(t,new s.AsyncFunctionDeclaration(a,p,y)):this.finalize(t,new s.FunctionDeclaration(a,p,y,r))},e.prototype.parseFunctionExpression=function(){var e=this.createNode(),t=this.matchContextualKeyword("async");t&&this.nextToken(),this.expectKeyword("function");var n,i=!t&&this.match("*");i&&this.nextToken();var r,a=null,c=this.context.await,u=this.context.allowYield;if(this.context.await=t,this.context.allowYield=!i,!this.match("(")){var l=this.lookahead;a=this.context.strict||i||!this.matchKeyword("yield")?this.parseVariableIdentifier():this.parseIdentifierName(),this.context.strict?this.scanner.isRestrictedWord(l.value)&&this.tolerateUnexpectedToken(l,o.Messages.StrictFunctionName):this.scanner.isRestrictedWord(l.value)?(r=l,n=o.Messages.StrictFunctionName):this.scanner.isStrictModeReservedWord(l.value)&&(r=l,n=o.Messages.StrictReservedWord)}var h=this.parseFormalParameters(r),d=h.params,p=h.stricted;r=h.firstRestricted,h.message&&(n=h.message);var f=this.context.strict,g=this.context.allowStrictDirective;this.context.allowStrictDirective=h.simple;var m=this.parseFunctionSourceElements();return this.context.strict&&r&&this.throwUnexpectedToken(r,n),this.context.strict&&p&&this.tolerateUnexpectedToken(p,n),this.context.strict=f,this.context.allowStrictDirective=g,this.context.await=c,this.context.allowYield=u,t?this.finalize(e,new s.AsyncFunctionExpression(a,d,m)):this.finalize(e,new s.FunctionExpression(a,d,m,i))},e.prototype.parseDirective=function(){var e=this.lookahead,t=this.createNode(),n=this.parseExpression(),i=n.type===c.Syntax.Literal?this.getTokenRaw(e).slice(1,-1):null;return this.consumeSemicolon(),this.finalize(t,i?new s.Directive(n,i):new s.ExpressionStatement(n))},e.prototype.parseDirectivePrologues=function(){for(var e=null,t=[];;){var n=this.lookahead;if(8!==n.type)break;var i=this.parseDirective();t.push(i);var r=i.directive;if("string"!=typeof r)break;"use strict"===r?(this.context.strict=!0,e&&this.tolerateUnexpectedToken(e,o.Messages.StrictOctalLiteral),this.context.allowStrictDirective||this.tolerateUnexpectedToken(n,o.Messages.IllegalLanguageModeDirective)):!e&&n.octal&&(e=n)}return t},e.prototype.qualifiedPropertyName=function(e){switch(e.type){case 3:case 8:case 1:case 5:case 6:case 4:return!0;case 7:return"["===e.value}return!1},e.prototype.parseGetterMethod=function(){var e=this.createNode(),t=this.context.allowYield;this.context.allowYield=!0;var n=this.parseFormalParameters();n.params.length>0&&this.tolerateError(o.Messages.BadGetterArity);var i=this.parsePropertyMethod(n);return this.context.allowYield=t,this.finalize(e,new s.FunctionExpression(null,n.params,i,!1))},e.prototype.parseSetterMethod=function(){var e=this.createNode(),t=this.context.allowYield;this.context.allowYield=!0;var n=this.parseFormalParameters();1!==n.params.length?this.tolerateError(o.Messages.BadSetterArity):n.params[0]instanceof s.RestElement&&this.tolerateError(o.Messages.BadSetterRestParameter);var i=this.parsePropertyMethod(n);return this.context.allowYield=t,this.finalize(e,new s.FunctionExpression(null,n.params,i,!1))},e.prototype.parseGeneratorMethod=function(){var e=this.createNode(),t=this.context.allowYield;this.context.allowYield=!0;var n=this.parseFormalParameters();this.context.allowYield=!1;var i=this.parsePropertyMethod(n);return this.context.allowYield=t,this.finalize(e,new s.FunctionExpression(null,n.params,i,!0))},e.prototype.isStartOfExpression=function(){var e=!0,t=this.lookahead.value;switch(this.lookahead.type){case 7:e="["===t||"("===t||"{"===t||"+"===t||"-"===t||"!"===t||"~"===t||"++"===t||"--"===t||"/"===t||"/="===t;break;case 4:e="class"===t||"delete"===t||"function"===t||"let"===t||"new"===t||"super"===t||"this"===t||"typeof"===t||"void"===t||"yield"===t}return e},e.prototype.parseYieldExpression=function(){var e=this.createNode();this.expectKeyword("yield");var t=null,n=!1;if(!this.hasLineTerminator){var i=this.context.allowYield;this.context.allowYield=!1,(n=this.match("*"))?(this.nextToken(),t=this.parseAssignmentExpression()):this.isStartOfExpression()&&(t=this.parseAssignmentExpression()),this.context.allowYield=i}return this.finalize(e,new s.YieldExpression(t,n))},e.prototype.parseClassElement=function(e){var t=this.lookahead,n=this.createNode(),i="",r=null,a=null,c=!1,u=!1,l=!1,h=!1;if(this.match("*"))this.nextToken();else if(c=this.match("["),"static"===(r=this.parseObjectPropertyKey()).name&&(this.qualifiedPropertyName(this.lookahead)||this.match("*"))&&(t=this.lookahead,l=!0,c=this.match("["),this.match("*")?this.nextToken():r=this.parseObjectPropertyKey()),3===t.type&&!this.hasLineTerminator&&"async"===t.value){var d=this.lookahead.value;":"!==d&&"("!==d&&"*"!==d&&(h=!0,t=this.lookahead,r=this.parseObjectPropertyKey(),3===t.type&&"constructor"===t.value&&this.tolerateUnexpectedToken(t,o.Messages.ConstructorIsAsync))}var p=this.qualifiedPropertyName(this.lookahead);return 3===t.type?"get"===t.value&&p?(i="get",c=this.match("["),r=this.parseObjectPropertyKey(),this.context.allowYield=!1,a=this.parseGetterMethod()):"set"===t.value&&p&&(i="set",c=this.match("["),r=this.parseObjectPropertyKey(),a=this.parseSetterMethod()):7===t.type&&"*"===t.value&&p&&(i="init",c=this.match("["),r=this.parseObjectPropertyKey(),a=this.parseGeneratorMethod(),u=!0),!i&&r&&this.match("(")&&(i="init",a=h?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),u=!0),i||this.throwUnexpectedToken(this.lookahead),"init"===i&&(i="method"),c||(l&&this.isPropertyKey(r,"prototype")&&this.throwUnexpectedToken(t,o.Messages.StaticPrototype),!l&&this.isPropertyKey(r,"constructor")&&(("method"!==i||!u||a&&a.generator)&&this.throwUnexpectedToken(t,o.Messages.ConstructorSpecialMethod),e.value?this.throwUnexpectedToken(t,o.Messages.DuplicateConstructor):e.value=!0,i="constructor")),this.finalize(n,new s.MethodDefinition(r,c,a,i,l))},e.prototype.parseClassElementList=function(){var e=[],t={value:!1};for(this.expect("{");!this.match("}");)this.match(";")?this.nextToken():e.push(this.parseClassElement(t));return this.expect("}"),e},e.prototype.parseClassBody=function(){var e=this.createNode(),t=this.parseClassElementList();return this.finalize(e,new s.ClassBody(t))},e.prototype.parseClassDeclaration=function(e){var t=this.createNode(),n=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var i=e&&3!==this.lookahead.type?null:this.parseVariableIdentifier(),r=null;this.matchKeyword("extends")&&(this.nextToken(),r=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var o=this.parseClassBody();return this.context.strict=n,this.finalize(t,new s.ClassDeclaration(i,r,o))},e.prototype.parseClassExpression=function(){var e=this.createNode(),t=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var n=3===this.lookahead.type?this.parseVariableIdentifier():null,i=null;this.matchKeyword("extends")&&(this.nextToken(),i=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var r=this.parseClassBody();return this.context.strict=t,this.finalize(e,new s.ClassExpression(n,i,r))},e.prototype.parseModule=function(){this.context.strict=!0,this.context.isModule=!0,this.scanner.isModule=!0;for(var e=this.createNode(),t=this.parseDirectivePrologues();2!==this.lookahead.type;)t.push(this.parseStatementListItem());return this.finalize(e,new s.Module(t))},e.prototype.parseScript=function(){for(var e=this.createNode(),t=this.parseDirectivePrologues();2!==this.lookahead.type;)t.push(this.parseStatementListItem());return this.finalize(e,new s.Script(t))},e.prototype.parseModuleSpecifier=function(){var e=this.createNode();8!==this.lookahead.type&&this.throwError(o.Messages.InvalidModuleSpecifier);var t=this.nextToken(),n=this.getTokenRaw(t);return this.finalize(e,new s.Literal(t.value,n))},e.prototype.parseImportSpecifier=function(){var e,t,n=this.createNode();return 3===this.lookahead.type?(t=e=this.parseVariableIdentifier(),this.matchContextualKeyword("as")&&(this.nextToken(),t=this.parseVariableIdentifier())):(t=e=this.parseIdentifierName(),this.matchContextualKeyword("as")?(this.nextToken(),t=this.parseVariableIdentifier()):this.throwUnexpectedToken(this.nextToken())),this.finalize(n,new s.ImportSpecifier(t,e))},e.prototype.parseNamedImports=function(){this.expect("{");for(var e=[];!this.match("}");)e.push(this.parseImportSpecifier()),this.match("}")||this.expect(",");return this.expect("}"),e},e.prototype.parseImportDefaultSpecifier=function(){var e=this.createNode(),t=this.parseIdentifierName();return this.finalize(e,new s.ImportDefaultSpecifier(t))},e.prototype.parseImportNamespaceSpecifier=function(){var e=this.createNode();this.expect("*"),this.matchContextualKeyword("as")||this.throwError(o.Messages.NoAsAfterImportNamespace),this.nextToken();var t=this.parseIdentifierName();return this.finalize(e,new s.ImportNamespaceSpecifier(t))},e.prototype.parseImportDeclaration=function(){this.context.inFunctionBody&&this.throwError(o.Messages.IllegalImportDeclaration);var e,t=this.createNode();this.expectKeyword("import");var n=[];if(8===this.lookahead.type)e=this.parseModuleSpecifier();else{if(this.match("{")?n=n.concat(this.parseNamedImports()):this.match("*")?n.push(this.parseImportNamespaceSpecifier()):this.isIdentifierName(this.lookahead)&&!this.matchKeyword("default")?(n.push(this.parseImportDefaultSpecifier()),this.match(",")&&(this.nextToken(),this.match("*")?n.push(this.parseImportNamespaceSpecifier()):this.match("{")?n=n.concat(this.parseNamedImports()):this.throwUnexpectedToken(this.lookahead))):this.throwUnexpectedToken(this.nextToken()),!this.matchContextualKeyword("from")){var i=this.lookahead.value?o.Messages.UnexpectedToken:o.Messages.MissingFromClause;this.throwError(i,this.lookahead.value)}this.nextToken(),e=this.parseModuleSpecifier()}return this.consumeSemicolon(),this.finalize(t,new s.ImportDeclaration(n,e))},e.prototype.parseExportSpecifier=function(){var e=this.createNode(),t=this.parseIdentifierName(),n=t;return this.matchContextualKeyword("as")&&(this.nextToken(),n=this.parseIdentifierName()),this.finalize(e,new s.ExportSpecifier(t,n))},e.prototype.parseExportDeclaration=function(){this.context.inFunctionBody&&this.throwError(o.Messages.IllegalExportDeclaration);var e,t=this.createNode();if(this.expectKeyword("export"),this.matchKeyword("default"))if(this.nextToken(),this.matchKeyword("function")){var n=this.parseFunctionDeclaration(!0);e=this.finalize(t,new s.ExportDefaultDeclaration(n))}else this.matchKeyword("class")?(n=this.parseClassDeclaration(!0),e=this.finalize(t,new s.ExportDefaultDeclaration(n))):this.matchContextualKeyword("async")?(n=this.matchAsyncFunction()?this.parseFunctionDeclaration(!0):this.parseAssignmentExpression(),e=this.finalize(t,new s.ExportDefaultDeclaration(n))):(this.matchContextualKeyword("from")&&this.throwError(o.Messages.UnexpectedToken,this.lookahead.value),n=this.match("{")?this.parseObjectInitializer():this.match("[")?this.parseArrayInitializer():this.parseAssignmentExpression(),this.consumeSemicolon(),e=this.finalize(t,new s.ExportDefaultDeclaration(n)));else if(this.match("*")){if(this.nextToken(),!this.matchContextualKeyword("from")){var i=this.lookahead.value?o.Messages.UnexpectedToken:o.Messages.MissingFromClause;this.throwError(i,this.lookahead.value)}this.nextToken();var r=this.parseModuleSpecifier();this.consumeSemicolon(),e=this.finalize(t,new s.ExportAllDeclaration(r))}else if(4===this.lookahead.type){switch(n=void 0,this.lookahead.value){case"let":case"const":n=this.parseLexicalDeclaration({inFor:!1});break;case"var":case"class":case"function":n=this.parseStatementListItem();break;default:this.throwUnexpectedToken(this.lookahead)}e=this.finalize(t,new s.ExportNamedDeclaration(n,[],null))}else if(this.matchAsyncFunction())n=this.parseFunctionDeclaration(),e=this.finalize(t,new s.ExportNamedDeclaration(n,[],null));else{var a=[],c=null,u=!1;for(this.expect("{");!this.match("}");)u=u||this.matchKeyword("default"),a.push(this.parseExportSpecifier()),this.match("}")||this.expect(",");this.expect("}"),this.matchContextualKeyword("from")?(this.nextToken(),c=this.parseModuleSpecifier(),this.consumeSemicolon()):u?(i=this.lookahead.value?o.Messages.UnexpectedToken:o.Messages.MissingFromClause,this.throwError(i,this.lookahead.value)):this.consumeSemicolon(),e=this.finalize(t,new s.ExportNamedDeclaration(null,a,c))}return e},e}();t.Parser=h},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assert=function(e,t){if(!e)throw new Error("ASSERT: "+t)}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){this.errors=[],this.tolerant=!1}return e.prototype.recordError=function(e){this.errors.push(e)},e.prototype.tolerate=function(e){if(!this.tolerant)throw e;this.recordError(e)},e.prototype.constructError=function(e,t){var n=new Error(e);try{throw n}catch(e){Object.create&&Object.defineProperty&&(n=Object.create(e),Object.defineProperty(n,"column",{value:t}))}return n},e.prototype.createError=function(e,t,n,i){var r="Line "+t+": "+i,o=this.constructError(r,n);return o.index=e,o.lineNumber=t,o.description=i,o},e.prototype.throwError=function(e,t,n,i){throw this.createError(e,t,n,i)},e.prototype.tolerateError=function(e,t,n,i){var r=this.createError(e,t,n,i);if(!this.tolerant)throw r;this.recordError(r)},e}();t.ErrorHandler=n},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Messages={BadGetterArity:"Getter must not have any formal parameters",BadSetterArity:"Setter must have exactly one formal parameter",BadSetterRestParameter:"Setter function argument must not be a rest parameter",ConstructorIsAsync:"Class constructor may not be an async method",ConstructorSpecialMethod:"Class constructor may not be an accessor",DeclarationMissingInitializer:"Missing initializer in %0 declaration",DefaultRestParameter:"Unexpected token =",DuplicateBinding:"Duplicate binding %0",DuplicateConstructor:"A class may only have one constructor",DuplicateProtoProperty:"Duplicate __proto__ fields are not allowed in object literals",ForInOfLoopInitializer:"%0 loop variable declaration may not have an initializer",GeneratorInLegacyContext:"Generator declarations are not allowed in legacy contexts",IllegalBreak:"Illegal break statement",IllegalContinue:"Illegal continue statement",IllegalExportDeclaration:"Unexpected token",IllegalImportDeclaration:"Unexpected token",IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list",IllegalReturn:"Illegal return statement",InvalidEscapedReservedWord:"Keyword must not contain escaped characters",InvalidHexEscapeSequence:"Invalid hexadecimal escape sequence",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",InvalidLHSInForLoop:"Invalid left-hand side in for-loop",InvalidModuleSpecifier:"Unexpected token",InvalidRegExp:"Invalid regular expression",LetInLexicalBinding:"let is disallowed as a lexically bound name",MissingFromClause:"Unexpected token",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NewlineAfterThrow:"Illegal newline after throw",NoAsAfterImportNamespace:"Unexpected token",NoCatchOrFinally:"Missing catch or finally after try",ParameterAfterRestParameter:"Rest parameter must be last formal parameter",Redeclaration:"%0 '%1' has already been declared",StaticPrototype:"Classes may not have static property named prototype",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictModeWith:"Strict mode code may not include a with statement",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictReservedWord:"Use of future reserved word in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",TemplateOctalLiteral:"Octal literals are not allowed in template strings.",UnexpectedEOS:"Unexpected end of input",UnexpectedIdentifier:"Unexpected identifier",UnexpectedNumber:"Unexpected number",UnexpectedReserved:"Unexpected reserved word",UnexpectedString:"Unexpected string",UnexpectedTemplate:"Unexpected quasi %0",UnexpectedToken:"Unexpected token %0",UnexpectedTokenIllegal:"Unexpected token ILLEGAL",UnknownLabel:"Undefined label '%0'",UnterminatedRegExp:"Invalid regular expression: missing /"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(9),r=n(4),o=n(11);function s(e){return"0123456789abcdef".indexOf(e.toLowerCase())}function a(e){return"01234567".indexOf(e)}var c=function(){function e(e,t){this.source=e,this.errorHandler=t,this.trackComment=!1,this.isModule=!1,this.length=e.length,this.index=0,this.lineNumber=e.length>0?1:0,this.lineStart=0,this.curlyStack=[]}return e.prototype.saveState=function(){return{index:this.index,lineNumber:this.lineNumber,lineStart:this.lineStart}},e.prototype.restoreState=function(e){this.index=e.index,this.lineNumber=e.lineNumber,this.lineStart=e.lineStart},e.prototype.eof=function(){return this.index>=this.length},e.prototype.throwUnexpectedToken=function(e){return void 0===e&&(e=o.Messages.UnexpectedTokenIllegal),this.errorHandler.throwError(this.index,this.lineNumber,this.index-this.lineStart+1,e)},e.prototype.tolerateUnexpectedToken=function(e){void 0===e&&(e=o.Messages.UnexpectedTokenIllegal),this.errorHandler.tolerateError(this.index,this.lineNumber,this.index-this.lineStart+1,e)},e.prototype.skipSingleLineComment=function(e){var t,n,i=[];for(this.trackComment&&(i=[],t=this.index-e,n={start:{line:this.lineNumber,column:this.index-this.lineStart-e},end:{}});!this.eof();){var o=this.source.charCodeAt(this.index);if(++this.index,r.Character.isLineTerminator(o)){if(this.trackComment){n.end={line:this.lineNumber,column:this.index-this.lineStart-1};var s={multiLine:!1,slice:[t+e,this.index-1],range:[t,this.index-1],loc:n};i.push(s)}return 13===o&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,i}}return this.trackComment&&(n.end={line:this.lineNumber,column:this.index-this.lineStart},s={multiLine:!1,slice:[t+e,this.index],range:[t,this.index],loc:n},i.push(s)),i},e.prototype.skipMultiLineComment=function(){var e,t,n=[];for(this.trackComment&&(n=[],e=this.index-2,t={start:{line:this.lineNumber,column:this.index-this.lineStart-2},end:{}});!this.eof();){var i=this.source.charCodeAt(this.index);if(r.Character.isLineTerminator(i))13===i&&10===this.source.charCodeAt(this.index+1)&&++this.index,++this.lineNumber,++this.index,this.lineStart=this.index;else if(42===i){if(47===this.source.charCodeAt(this.index+1)){if(this.index+=2,this.trackComment){t.end={line:this.lineNumber,column:this.index-this.lineStart};var o={multiLine:!0,slice:[e+2,this.index-2],range:[e,this.index],loc:t};n.push(o)}return n}++this.index}else++this.index}return this.trackComment&&(t.end={line:this.lineNumber,column:this.index-this.lineStart},o={multiLine:!0,slice:[e+2,this.index],range:[e,this.index],loc:t},n.push(o)),this.tolerateUnexpectedToken(),n},e.prototype.scanComments=function(){var e;this.trackComment&&(e=[]);for(var t=0===this.index;!this.eof();){var n=this.source.charCodeAt(this.index);if(r.Character.isWhiteSpace(n))++this.index;else if(r.Character.isLineTerminator(n))++this.index,13===n&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,t=!0;else if(47===n)if(47===(n=this.source.charCodeAt(this.index+1))){this.index+=2;var i=this.skipSingleLineComment(2);this.trackComment&&(e=e.concat(i)),t=!0}else{if(42!==n)break;this.index+=2,i=this.skipMultiLineComment(),this.trackComment&&(e=e.concat(i))}else if(t&&45===n){if(45!==this.source.charCodeAt(this.index+1)||62!==this.source.charCodeAt(this.index+2))break;this.index+=3,i=this.skipSingleLineComment(3),this.trackComment&&(e=e.concat(i))}else{if(60!==n||this.isModule)break;if("!--"!==this.source.slice(this.index+1,this.index+4))break;this.index+=4,i=this.skipSingleLineComment(4),this.trackComment&&(e=e.concat(i))}}return e},e.prototype.isFutureReservedWord=function(e){switch(e){case"enum":case"export":case"import":case"super":return!0;default:return!1}},e.prototype.isStrictModeReservedWord=function(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}},e.prototype.isRestrictedWord=function(e){return"eval"===e||"arguments"===e},e.prototype.isKeyword=function(e){switch(e.length){case 2:return"if"===e||"in"===e||"do"===e;case 3:return"var"===e||"for"===e||"new"===e||"try"===e||"let"===e;case 4:return"this"===e||"else"===e||"case"===e||"void"===e||"with"===e||"enum"===e;case 5:return"while"===e||"break"===e||"catch"===e||"throw"===e||"const"===e||"yield"===e||"class"===e||"super"===e;case 6:return"return"===e||"typeof"===e||"delete"===e||"switch"===e||"export"===e||"import"===e;case 7:return"default"===e||"finally"===e||"extends"===e;case 8:return"function"===e||"continue"===e||"debugger"===e;case 10:return"instanceof"===e;default:return!1}},e.prototype.codePointAt=function(e){var t=this.source.charCodeAt(e);if(t>=55296&&t<=56319){var n=this.source.charCodeAt(e+1);n>=56320&&n<=57343&&(t=1024*(t-55296)+n-56320+65536)}return t},e.prototype.scanHexEscape=function(e){for(var t="u"===e?4:2,n=0,i=0;i<t;++i){if(this.eof()||!r.Character.isHexDigit(this.source.charCodeAt(this.index)))return null;n=16*n+s(this.source[this.index++])}return String.fromCharCode(n)},e.prototype.scanUnicodeCodePointEscape=function(){var e=this.source[this.index],t=0;for("}"===e&&this.throwUnexpectedToken();!this.eof()&&(e=this.source[this.index++],r.Character.isHexDigit(e.charCodeAt(0)));)t=16*t+s(e);return(t>1114111||"}"!==e)&&this.throwUnexpectedToken(),r.Character.fromCodePoint(t)},e.prototype.getIdentifier=function(){for(var e=this.index++;!this.eof();){var t=this.source.charCodeAt(this.index);if(92===t)return this.index=e,this.getComplexIdentifier();if(t>=55296&&t<57343)return this.index=e,this.getComplexIdentifier();if(!r.Character.isIdentifierPart(t))break;++this.index}return this.source.slice(e,this.index)},e.prototype.getComplexIdentifier=function(){var e,t=this.codePointAt(this.index),n=r.Character.fromCodePoint(t);for(this.index+=n.length,92===t&&(117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,e=this.scanUnicodeCodePointEscape()):null!==(e=this.scanHexEscape("u"))&&"\\"!==e&&r.Character.isIdentifierStart(e.charCodeAt(0))||this.throwUnexpectedToken(),n=e);!this.eof()&&(t=this.codePointAt(this.index),r.Character.isIdentifierPart(t));)n+=e=r.Character.fromCodePoint(t),this.index+=e.length,92===t&&(n=n.substr(0,n.length-1),117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,e=this.scanUnicodeCodePointEscape()):null!==(e=this.scanHexEscape("u"))&&"\\"!==e&&r.Character.isIdentifierPart(e.charCodeAt(0))||this.throwUnexpectedToken(),n+=e);return n},e.prototype.octalToDecimal=function(e){var t="0"!==e,n=a(e);return!this.eof()&&r.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(t=!0,n=8*n+a(this.source[this.index++]),"0123".indexOf(e)>=0&&!this.eof()&&r.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(n=8*n+a(this.source[this.index++]))),{code:n,octal:t}},e.prototype.scanIdentifier=function(){var e,t=this.index,n=92===this.source.charCodeAt(t)?this.getComplexIdentifier():this.getIdentifier();if(3!=(e=1===n.length?3:this.isKeyword(n)?4:"null"===n?5:"true"===n||"false"===n?1:3)&&t+n.length!==this.index){var i=this.index;this.index=t,this.tolerateUnexpectedToken(o.Messages.InvalidEscapedReservedWord),this.index=i}return{type:e,value:n,lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}},e.prototype.scanPunctuator=function(){var e=this.index,t=this.source[this.index];switch(t){case"(":case"{":"{"===t&&this.curlyStack.push("{"),++this.index;break;case".":++this.index,"."===this.source[this.index]&&"."===this.source[this.index+1]&&(this.index+=2,t="...");break;case"}":++this.index,this.curlyStack.pop();break;case")":case";":case",":case"[":case"]":case":":case"?":case"~":++this.index;break;default:">>>="===(t=this.source.substr(this.index,4))?this.index+=4:"==="===(t=t.substr(0,3))||"!=="===t||">>>"===t||"<<="===t||">>="===t||"**="===t?this.index+=3:"&&"===(t=t.substr(0,2))||"||"===t||"=="===t||"!="===t||"+="===t||"-="===t||"*="===t||"/="===t||"++"===t||"--"===t||"<<"===t||">>"===t||"&="===t||"|="===t||"^="===t||"%="===t||"<="===t||">="===t||"=>"===t||"**"===t?this.index+=2:(t=this.source[this.index],"<>=!+-*%&|^/".indexOf(t)>=0&&++this.index)}return this.index===e&&this.throwUnexpectedToken(),{type:7,value:t,lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanHexLiteral=function(e){for(var t="";!this.eof()&&r.Character.isHexDigit(this.source.charCodeAt(this.index));)t+=this.source[this.index++];return 0===t.length&&this.throwUnexpectedToken(),r.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseInt("0x"+t,16),lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanBinaryLiteral=function(e){for(var t,n="";!this.eof()&&("0"===(t=this.source[this.index])||"1"===t);)n+=this.source[this.index++];return 0===n.length&&this.throwUnexpectedToken(),this.eof()||(t=this.source.charCodeAt(this.index),(r.Character.isIdentifierStart(t)||r.Character.isDecimalDigit(t))&&this.throwUnexpectedToken()),{type:6,value:parseInt(n,2),lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanOctalLiteral=function(e,t){var n="",i=!1;for(r.Character.isOctalDigit(e.charCodeAt(0))?(i=!0,n="0"+this.source[this.index++]):++this.index;!this.eof()&&r.Character.isOctalDigit(this.source.charCodeAt(this.index));)n+=this.source[this.index++];return i||0!==n.length||this.throwUnexpectedToken(),(r.Character.isIdentifierStart(this.source.charCodeAt(this.index))||r.Character.isDecimalDigit(this.source.charCodeAt(this.index)))&&this.throwUnexpectedToken(),{type:6,value:parseInt(n,8),octal:i,lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}},e.prototype.isImplicitOctalLiteral=function(){for(var e=this.index+1;e<this.length;++e){var t=this.source[e];if("8"===t||"9"===t)return!1;if(!r.Character.isOctalDigit(t.charCodeAt(0)))return!0}return!0},e.prototype.scanNumericLiteral=function(){var e=this.index,t=this.source[e];i.assert(r.Character.isDecimalDigit(t.charCodeAt(0))||"."===t,"Numeric literal must start with a decimal digit or a decimal point");var n="";if("."!==t){if(n=this.source[this.index++],t=this.source[this.index],"0"===n){if("x"===t||"X"===t)return++this.index,this.scanHexLiteral(e);if("b"===t||"B"===t)return++this.index,this.scanBinaryLiteral(e);if("o"===t||"O"===t)return this.scanOctalLiteral(t,e);if(t&&r.Character.isOctalDigit(t.charCodeAt(0))&&this.isImplicitOctalLiteral())return this.scanOctalLiteral(t,e)}for(;r.Character.isDecimalDigit(this.source.charCodeAt(this.index));)n+=this.source[this.index++];t=this.source[this.index]}if("."===t){for(n+=this.source[this.index++];r.Character.isDecimalDigit(this.source.charCodeAt(this.index));)n+=this.source[this.index++];t=this.source[this.index]}if("e"===t||"E"===t)if(n+=this.source[this.index++],"+"!==(t=this.source[this.index])&&"-"!==t||(n+=this.source[this.index++]),r.Character.isDecimalDigit(this.source.charCodeAt(this.index)))for(;r.Character.isDecimalDigit(this.source.charCodeAt(this.index));)n+=this.source[this.index++];else this.throwUnexpectedToken();return r.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseFloat(n),lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanStringLiteral=function(){var e=this.index,t=this.source[e];i.assert("'"===t||'"'===t,"String literal must starts with a quote"),++this.index;for(var n=!1,s="";!this.eof();){var a=this.source[this.index++];if(a===t){t="";break}if("\\"===a)if((a=this.source[this.index++])&&r.Character.isLineTerminator(a.charCodeAt(0)))++this.lineNumber,"\r"===a&&"\n"===this.source[this.index]&&++this.index,this.lineStart=this.index;else switch(a){case"u":if("{"===this.source[this.index])++this.index,s+=this.scanUnicodeCodePointEscape();else{var c=this.scanHexEscape(a);null===c&&this.throwUnexpectedToken(),s+=c}break;case"x":var u=this.scanHexEscape(a);null===u&&this.throwUnexpectedToken(o.Messages.InvalidHexEscapeSequence),s+=u;break;case"n":s+="\n";break;case"r":s+="\r";break;case"t":s+="\t";break;case"b":s+="\b";break;case"f":s+="\f";break;case"v":s+="\v";break;case"8":case"9":s+=a,this.tolerateUnexpectedToken();break;default:if(a&&r.Character.isOctalDigit(a.charCodeAt(0))){var l=this.octalToDecimal(a);n=l.octal||n,s+=String.fromCharCode(l.code)}else s+=a}else{if(r.Character.isLineTerminator(a.charCodeAt(0)))break;s+=a}}return""!==t&&(this.index=e,this.throwUnexpectedToken()),{type:8,value:s,octal:n,lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanTemplate=function(){var e="",t=!1,n=this.index,i="`"===this.source[n],s=!1,a=2;for(++this.index;!this.eof();){var c=this.source[this.index++];if("`"===c){a=1,s=!0,t=!0;break}if("$"===c){if("{"===this.source[this.index]){this.curlyStack.push("${"),++this.index,t=!0;break}e+=c}else if("\\"===c)if(c=this.source[this.index++],r.Character.isLineTerminator(c.charCodeAt(0)))++this.lineNumber,"\r"===c&&"\n"===this.source[this.index]&&++this.index,this.lineStart=this.index;else switch(c){case"n":e+="\n";break;case"r":e+="\r";break;case"t":e+="\t";break;case"u":if("{"===this.source[this.index])++this.index,e+=this.scanUnicodeCodePointEscape();else{var u=this.index,l=this.scanHexEscape(c);null!==l?e+=l:(this.index=u,e+=c)}break;case"x":var h=this.scanHexEscape(c);null===h&&this.throwUnexpectedToken(o.Messages.InvalidHexEscapeSequence),e+=h;break;case"b":e+="\b";break;case"f":e+="\f";break;case"v":e+="\v";break;default:"0"===c?(r.Character.isDecimalDigit(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(o.Messages.TemplateOctalLiteral),e+="\0"):r.Character.isOctalDigit(c.charCodeAt(0))?this.throwUnexpectedToken(o.Messages.TemplateOctalLiteral):e+=c}else r.Character.isLineTerminator(c.charCodeAt(0))?(++this.lineNumber,"\r"===c&&"\n"===this.source[this.index]&&++this.index,this.lineStart=this.index,e+="\n"):e+=c}return t||this.throwUnexpectedToken(),i||this.curlyStack.pop(),{type:10,value:this.source.slice(n+1,this.index-a),cooked:e,head:i,tail:s,lineNumber:this.lineNumber,lineStart:this.lineStart,start:n,end:this.index}},e.prototype.testRegExp=function(e,t){var n=e,i=this;t.indexOf("u")>=0&&(n=n.replace(/\\u\{([0-9a-fA-F]+)\}|\\u([a-fA-F0-9]{4})/g,(function(e,t,n){var r=parseInt(t||n,16);return r>1114111&&i.throwUnexpectedToken(o.Messages.InvalidRegExp),r<=65535?String.fromCharCode(r):"￿"})).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"￿"));try{RegExp(n)}catch(e){this.throwUnexpectedToken(o.Messages.InvalidRegExp)}try{return new RegExp(e,t)}catch(e){return null}},e.prototype.scanRegExpBody=function(){var e=this.source[this.index];i.assert("/"===e,"Regular expression literal must start with a slash");for(var t=this.source[this.index++],n=!1,s=!1;!this.eof();)if(t+=e=this.source[this.index++],"\\"===e)e=this.source[this.index++],r.Character.isLineTerminator(e.charCodeAt(0))&&this.throwUnexpectedToken(o.Messages.UnterminatedRegExp),t+=e;else if(r.Character.isLineTerminator(e.charCodeAt(0)))this.throwUnexpectedToken(o.Messages.UnterminatedRegExp);else if(n)"]"===e&&(n=!1);else{if("/"===e){s=!0;break}"["===e&&(n=!0)}return s||this.throwUnexpectedToken(o.Messages.UnterminatedRegExp),t.substr(1,t.length-2)},e.prototype.scanRegExpFlags=function(){for(var e="";!this.eof();){var t=this.source[this.index];if(!r.Character.isIdentifierPart(t.charCodeAt(0)))break;if(++this.index,"\\"!==t||this.eof())e+=t;else if("u"===(t=this.source[this.index])){++this.index;var n=this.index,i=this.scanHexEscape("u");if(null!==i)for(e+=i;n<this.index;++n)this.source[n];else this.index=n,e+="u";this.tolerateUnexpectedToken()}else this.tolerateUnexpectedToken()}return e},e.prototype.scanRegExp=function(){var e=this.index,t=this.scanRegExpBody(),n=this.scanRegExpFlags();return{type:9,value:"",pattern:t,flags:n,regex:this.testRegExp(t,n),lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.lex=function(){if(this.eof())return{type:2,value:"",lineNumber:this.lineNumber,lineStart:this.lineStart,start:this.index,end:this.index};var e=this.source.charCodeAt(this.index);return r.Character.isIdentifierStart(e)?this.scanIdentifier():40===e||41===e||59===e?this.scanPunctuator():39===e||34===e?this.scanStringLiteral():46===e?r.Character.isDecimalDigit(this.source.charCodeAt(this.index+1))?this.scanNumericLiteral():this.scanPunctuator():r.Character.isDecimalDigit(e)?this.scanNumericLiteral():96===e||125===e&&"${"===this.curlyStack[this.curlyStack.length-1]?this.scanTemplate():e>=55296&&e<57343&&r.Character.isIdentifierStart(this.codePointAt(this.index))?this.scanIdentifier():this.scanPunctuator()},e}();t.Scanner=c},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TokenName={},t.TokenName[1]="Boolean",t.TokenName[2]="<end>",t.TokenName[3]="Identifier",t.TokenName[4]="Keyword",t.TokenName[5]="Null",t.TokenName[6]="Numeric",t.TokenName[7]="Punctuator",t.TokenName[8]="String",t.TokenName[9]="RegularExpression",t.TokenName[10]="Template"},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XHTMLEntities={quot:'"',amp:"&",apos:"'",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:"",emsp:"",thinsp:"",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"",mdash:"—",lsquo:"",rsquo:"",sbquo:"",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"",Prime:"″",lsaquo:"",rsaquo:"",oline:"‾",frasl:"",euro:"€",image:"",weierp:"℘",real:"",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"",lowast:"",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"",cap:"∩",cup:"",int:"∫",there4:"∴",sim:"",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",lang:"⟨",rang:"⟩"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(10),r=n(12),o=n(13),s=function(){function e(){this.values=[],this.curly=this.paren=-1}return e.prototype.beforeFunctionExpression=function(e){return["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","**","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="].indexOf(e)>=0},e.prototype.isRegexStart=function(){var e=this.values[this.values.length-1],t=null!==e;switch(e){case"this":case"]":t=!1;break;case")":var n=this.values[this.paren-1];t="if"===n||"while"===n||"for"===n||"with"===n;break;case"}":if(t=!1,"function"===this.values[this.curly-3])t=!!(i=this.values[this.curly-4])&&!this.beforeFunctionExpression(i);else if("function"===this.values[this.curly-4]){var i;t=!(i=this.values[this.curly-5])||!this.beforeFunctionExpression(i)}}return t},e.prototype.push=function(e){7===e.type||4===e.type?("{"===e.value?this.curly=this.values.length:"("===e.value&&(this.paren=this.values.length),this.values.push(e.value)):this.values.push(null)},e}(),a=function(){function e(e,t){this.errorHandler=new i.ErrorHandler,this.errorHandler.tolerant=!!t&&"boolean"==typeof t.tolerant&&t.tolerant,this.scanner=new r.Scanner(e,this.errorHandler),this.scanner.trackComment=!!t&&"boolean"==typeof t.comment&&t.comment,this.trackRange=!!t&&"boolean"==typeof t.range&&t.range,this.trackLoc=!!t&&"boolean"==typeof t.loc&&t.loc,this.buffer=[],this.reader=new s}return e.prototype.errors=function(){return this.errorHandler.errors},e.prototype.getNextToken=function(){if(0===this.buffer.length){var e=this.scanner.scanComments();if(this.scanner.trackComment)for(var t=0;t<e.length;++t){var n=e[t],i=this.scanner.source.slice(n.slice[0],n.slice[1]),r={type:n.multiLine?"BlockComment":"LineComment",value:i};this.trackRange&&(r.range=n.range),this.trackLoc&&(r.loc=n.loc),this.buffer.push(r)}if(!this.scanner.eof()){var s=void 0;this.trackLoc&&(s={start:{line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart},end:{}});var a="/"===this.scanner.source[this.scanner.index]&&this.reader.isRegexStart()?this.scanner.scanRegExp():this.scanner.lex();this.reader.push(a);var c={type:o.TokenName[a.type],value:this.scanner.source.slice(a.start,a.end)};if(this.trackRange&&(c.range=[a.start,a.end]),this.trackLoc&&(s.end={line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart},c.loc=s),9===a.type){var u=a.pattern,l=a.flags;c.regex={pattern:u,flags:l}}this.buffer.push(c)}}return this.buffer.shift()},e}();t.Tokenizer=a}])},e.exports=t()},2178:(e,t,n)=>{"use strict";const i=n(85),r=n(1017),o=n(5145).mkdirsSync,s=n(2450).utimesMillisSync,a=n(3719);function c(e,t,n,o){const s=(o.dereference?i.statSync:i.lstatSync)(t);if(s.isDirectory())return function(e,t,n,r,o){return t?h(n,r,o):function(e,t,n,r){return i.mkdirSync(n),h(t,n,r),l(n,e)}(e.mode,n,r,o)}(s,e,t,n,o);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return function(e,t,n,r,o){return t?function(e,t,n,r){if(r.overwrite)return i.unlinkSync(n),u(e,t,n,r);if(r.errorOnExist)throw new Error(`'${n}' already exists`)}(e,n,r,o):u(e,n,r,o)}(s,e,t,n,o);if(s.isSymbolicLink())return function(e,t,n,o){let s=i.readlinkSync(t);if(o.dereference&&(s=r.resolve(process.cwd(),s)),e){let e;try{e=i.readlinkSync(n)}catch(e){if("EINVAL"===e.code||"UNKNOWN"===e.code)return i.symlinkSync(s,n);throw e}if(o.dereference&&(e=r.resolve(process.cwd(),e)),a.isSrcSubdir(s,e))throw new Error(`Cannot copy '${s}' to a subdirectory of itself, '${e}'.`);if(i.statSync(n).isDirectory()&&a.isSrcSubdir(e,s))throw new Error(`Cannot overwrite '${e}' with '${s}'.`);return function(e,t){return i.unlinkSync(t),i.symlinkSync(e,t)}(s,n)}return i.symlinkSync(s,n)}(e,t,n,o);if(s.isSocket())throw new Error(`Cannot copy a socket file: ${t}`);if(s.isFIFO())throw new Error(`Cannot copy a FIFO pipe: ${t}`);throw new Error(`Unknown file: ${t}`)}function u(e,t,n,r){return i.copyFileSync(t,n),r.preserveTimestamps&&function(e,t,n){(function(e){return 0==(128&e)})(e)&&function(e,t){l(e,128|t)}(n,e),function(e,t){const n=i.statSync(e);s(t,n.atime,n.mtime)}(t,n)}(e.mode,t,n),l(n,e.mode)}function l(e,t){return i.chmodSync(e,t)}function h(e,t,n){i.readdirSync(e).forEach((i=>function(e,t,n,i){const o=r.join(t,e),s=r.join(n,e),{destStat:u}=a.checkPathsSync(o,s,"copy",i);return function(e,t,n,i){if(!i.filter||i.filter(t,n))return c(e,t,n,i)}(u,o,s,i)}(i,e,t,n)))}e.exports=function(e,t,n){"function"==typeof n&&(n={filter:n}),(n=n||{}).clobber=!("clobber"in n)||!!n.clobber,n.overwrite="overwrite"in n?!!n.overwrite:n.clobber,n.preserveTimestamps&&"ia32"===process.arch&&console.warn("fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269");const{srcStat:s,destStat:u}=a.checkPathsSync(e,t,"copy",n);return a.checkParentPathsSync(e,s,t,"copy"),function(e,t,n,s){if(s.filter&&!s.filter(t,n))return;const a=r.dirname(n);return i.existsSync(a)||o(a),c(e,t,n,s)}(u,e,t,n)}},5205:(e,t,n)=>{"use strict";const i=n(85),r=n(1017),o=n(5145).mkdirs,s=n(9699).pathExists,a=n(2450).utimesMillis,c=n(3719);function u(e,t,n,i,a){const c=r.dirname(n);s(c,((r,s)=>r?a(r):s?h(e,t,n,i,a):void o(c,(r=>r?a(r):h(e,t,n,i,a)))))}function l(e,t,n,i,r,o){Promise.resolve(r.filter(n,i)).then((s=>s?e(t,n,i,r,o):o()),(e=>o(e)))}function h(e,t,n,o,s){(o.dereference?i.stat:i.lstat)(t,((a,u)=>a?s(a):u.isDirectory()?function(e,t,n,r,o,s){return t?g(n,r,o,s):function(e,t,n,r,o){i.mkdir(n,(i=>{if(i)return o(i);g(t,n,r,(t=>t?o(t):f(n,e,o)))}))}(e.mode,n,r,o,s)}(u,e,t,n,o,s):u.isFile()||u.isCharacterDevice()||u.isBlockDevice()?function(e,t,n,r,o,s){return t?function(e,t,n,r,o){if(!r.overwrite)return r.errorOnExist?o(new Error(`'${n}' already exists`)):o();i.unlink(n,(i=>i?o(i):d(e,t,n,r,o)))}(e,n,r,o,s):d(e,n,r,o,s)}(u,e,t,n,o,s):u.isSymbolicLink()?function(e,t,n,o,s){i.readlink(t,((t,a)=>t?s(t):(o.dereference&&(a=r.resolve(process.cwd(),a)),e?void i.readlink(n,((t,u)=>t?"EINVAL"===t.code||"UNKNOWN"===t.code?i.symlink(a,n,s):s(t):(o.dereference&&(u=r.resolve(process.cwd(),u)),c.isSrcSubdir(a,u)?s(new Error(`Cannot copy '${a}' to a subdirectory of itself, '${u}'.`)):e.isDirectory()&&c.isSrcSubdir(u,a)?s(new Error(`Cannot overwrite '${u}' with '${a}'.`)):function(e,t,n){i.unlink(t,(r=>r?n(r):i.symlink(e,t,n)))}(a,n,s)))):i.symlink(a,n,s))))}(e,t,n,o,s):u.isSocket()?s(new Error(`Cannot copy a socket file: ${t}`)):u.isFIFO()?s(new Error(`Cannot copy a FIFO pipe: ${t}`)):s(new Error(`Unknown file: ${t}`))))}function d(e,t,n,r,o){i.copyFile(t,n,(i=>i?o(i):r.preserveTimestamps?function(e,t,n,i){return function(e){return 0==(128&e)}(e)?function(e,t,n){return f(e,128|t,n)}(n,e,(r=>r?i(r):p(e,t,n,i))):p(e,t,n,i)}(e.mode,t,n,o):f(n,e.mode,o)))}function p(e,t,n,r){!function(e,t,n){i.stat(e,((e,i)=>e?n(e):a(t,i.atime,i.mtime,n)))}(t,n,(t=>t?r(t):f(n,e,r)))}function f(e,t,n){return i.chmod(e,t,n)}function g(e,t,n,r){i.readdir(e,((i,o)=>i?r(i):m(o,e,t,n,r)))}function m(e,t,n,i,o){const s=e.pop();return s?function(e,t,n,i,o,s){const a=r.join(n,t),u=r.join(i,t);c.checkPaths(a,u,"copy",o,((t,r)=>{if(t)return s(t);const{destStat:c}=r;!function(e,t,n,i,r){i.filter?l(h,e,t,n,i,r):h(e,t,n,i,r)}(c,a,u,o,(t=>t?s(t):m(e,n,i,o,s)))}))}(e,s,t,n,i,o):o()}e.exports=function(e,t,n,i){"function"!=typeof n||i?"function"==typeof n&&(n={filter:n}):(i=n,n={}),i=i||function(){},(n=n||{}).clobber=!("clobber"in n)||!!n.clobber,n.overwrite="overwrite"in n?!!n.overwrite:n.clobber,n.preserveTimestamps&&"ia32"===process.arch&&console.warn("fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269"),c.checkPaths(e,t,"copy",n,((r,o)=>{if(r)return i(r);const{srcStat:s,destStat:a}=o;c.checkParentPaths(e,s,t,"copy",(r=>r?i(r):n.filter?l(u,a,e,t,n,i):u(a,e,t,n,i)))}))}},1889:(e,t,n)=>{"use strict";const i=n(5725).fromCallback;e.exports={copy:i(n(5205)),copySync:n(2178)}},4088:(e,t,n)=>{"use strict";const i=n(5725).fromPromise,r=n(2143),o=n(1017),s=n(5145),a=n(3495),c=i((async function(e){let t;try{t=await r.readdir(e)}catch{return s.mkdirs(e)}return Promise.all(t.map((t=>a.remove(o.join(e,t)))))}));function u(e){let t;try{t=r.readdirSync(e)}catch{return s.mkdirsSync(e)}t.forEach((t=>{t=o.join(e,t),a.removeSync(t)}))}e.exports={emptyDirSync:u,emptydirSync:u,emptyDir:c,emptydir:c}},1454:(e,t,n)=>{"use strict";const i=n(5725).fromCallback,r=n(1017),o=n(85),s=n(5145);e.exports={createFile:i((function(e,t){function n(){o.writeFile(e,"",(e=>{if(e)return t(e);t()}))}o.stat(e,((i,a)=>{if(!i&&a.isFile())return t();const c=r.dirname(e);o.stat(c,((e,i)=>{if(e)return"ENOENT"===e.code?s.mkdirs(c,(e=>{if(e)return t(e);n()})):t(e);i.isDirectory()?n():o.readdir(c,(e=>{if(e)return t(e)}))}))}))})),createFileSync:function(e){let t;try{t=o.statSync(e)}catch{}if(t&&t.isFile())return;const n=r.dirname(e);try{o.statSync(n).isDirectory()||o.readdirSync(n)}catch(e){if(!e||"ENOENT"!==e.code)throw e;s.mkdirsSync(n)}o.writeFileSync(e,"")}}},2689:(e,t,n)=>{"use strict";const{createFile:i,createFileSync:r}=n(1454),{createLink:o,createLinkSync:s}=n(462),{createSymlink:a,createSymlinkSync:c}=n(3318);e.exports={createFile:i,createFileSync:r,ensureFile:i,ensureFileSync:r,createLink:o,createLinkSync:s,ensureLink:o,ensureLinkSync:s,createSymlink:a,createSymlinkSync:c,ensureSymlink:a,ensureSymlinkSync:c}},462:(e,t,n)=>{"use strict";const i=n(5725).fromCallback,r=n(1017),o=n(85),s=n(5145),a=n(9699).pathExists,{areIdentical:c}=n(3719);e.exports={createLink:i((function(e,t,n){function i(e,t){o.link(e,t,(e=>{if(e)return n(e);n(null)}))}o.lstat(t,((u,l)=>{o.lstat(e,((o,u)=>{if(o)return o.message=o.message.replace("lstat","ensureLink"),n(o);if(l&&c(u,l))return n(null);const h=r.dirname(t);a(h,((r,o)=>r?n(r):o?i(e,t):void s.mkdirs(h,(r=>{if(r)return n(r);i(e,t)}))))}))}))})),createLinkSync:function(e,t){let n;try{n=o.lstatSync(t)}catch{}try{const t=o.lstatSync(e);if(n&&c(t,n))return}catch(e){throw e.message=e.message.replace("lstat","ensureLink"),e}const i=r.dirname(t);return o.existsSync(i)||s.mkdirsSync(i),o.linkSync(e,t)}}},7650:(e,t,n)=>{"use strict";const i=n(1017),r=n(85),o=n(9699).pathExists;e.exports={symlinkPaths:function(e,t,n){if(i.isAbsolute(e))return r.lstat(e,(t=>t?(t.message=t.message.replace("lstat","ensureSymlink"),n(t)):n(null,{toCwd:e,toDst:e})));{const s=i.dirname(t),a=i.join(s,e);return o(a,((t,o)=>t?n(t):o?n(null,{toCwd:a,toDst:e}):r.lstat(e,(t=>t?(t.message=t.message.replace("lstat","ensureSymlink"),n(t)):n(null,{toCwd:e,toDst:i.relative(s,e)})))))}},symlinkPathsSync:function(e,t){let n;if(i.isAbsolute(e)){if(n=r.existsSync(e),!n)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}{const o=i.dirname(t),s=i.join(o,e);if(n=r.existsSync(s),n)return{toCwd:s,toDst:e};if(n=r.existsSync(e),!n)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:i.relative(o,e)}}}}},2947:(e,t,n)=>{"use strict";const i=n(85);e.exports={symlinkType:function(e,t,n){if(n="function"==typeof t?t:n,t="function"!=typeof t&&t)return n(null,t);i.lstat(e,((e,i)=>{if(e)return n(null,"file");t=i&&i.isDirectory()?"dir":"file",n(null,t)}))},symlinkTypeSync:function(e,t){let n;if(t)return t;try{n=i.lstatSync(e)}catch{return"file"}return n&&n.isDirectory()?"dir":"file"}}},3318:(e,t,n)=>{"use strict";const i=n(5725).fromCallback,r=n(1017),o=n(2143),s=n(5145),a=s.mkdirs,c=s.mkdirsSync,u=n(7650),l=u.symlinkPaths,h=u.symlinkPathsSync,d=n(2947),p=d.symlinkType,f=d.symlinkTypeSync,g=n(9699).pathExists,{areIdentical:m}=n(3719);function y(e,t,n,i){l(e,t,((s,c)=>{if(s)return i(s);e=c.toDst,p(c.toCwd,n,((n,s)=>{if(n)return i(n);const c=r.dirname(t);g(c,((n,r)=>n?i(n):r?o.symlink(e,t,s,i):void a(c,(n=>{if(n)return i(n);o.symlink(e,t,s,i)}))))}))}))}e.exports={createSymlink:i((function(e,t,n,i){i="function"==typeof n?n:i,n="function"!=typeof n&&n,o.lstat(t,((r,s)=>{!r&&s.isSymbolicLink()?Promise.all([o.stat(e),o.stat(t)]).then((([r,o])=>{if(m(r,o))return i(null);y(e,t,n,i)})):y(e,t,n,i)}))})),createSymlinkSync:function(e,t,n){let i;try{i=o.lstatSync(t)}catch{}if(i&&i.isSymbolicLink()){const n=o.statSync(e),i=o.statSync(t);if(m(n,i))return}const s=h(e,t);e=s.toDst,n=f(s.toCwd,n);const a=r.dirname(t);return o.existsSync(a)||c(a),o.symlinkSync(e,t,n)}}},2143:(e,t,n)=>{"use strict";const i=n(5725).fromCallback,r=n(85),o=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter((e=>"function"==typeof r[e]));Object.assign(t,r),o.forEach((e=>{t[e]=i(r[e])})),t.realpath.native=i(r.realpath.native),t.exists=function(e,t){return"function"==typeof t?r.exists(e,t):new Promise((t=>r.exists(e,t)))},t.read=function(e,t,n,i,o,s){return"function"==typeof s?r.read(e,t,n,i,o,s):new Promise(((s,a)=>{r.read(e,t,n,i,o,((e,t,n)=>{if(e)return a(e);s({bytesRead:t,buffer:n})}))}))},t.write=function(e,t,...n){return"function"==typeof n[n.length-1]?r.write(e,t,...n):new Promise(((i,o)=>{r.write(e,t,...n,((e,t,n)=>{if(e)return o(e);i({bytesWritten:t,buffer:n})}))}))},"function"==typeof r.writev&&(t.writev=function(e,t,...n){return"function"==typeof n[n.length-1]?r.writev(e,t,...n):new Promise(((i,o)=>{r.writev(e,t,...n,((e,t,n)=>{if(e)return o(e);i({bytesWritten:t,buffers:n})}))}))})},890:(e,t,n)=>{"use strict";e.exports={...n(2143),...n(1889),...n(4088),...n(2689),...n(9270),...n(5145),...n(4146),...n(5048),...n(9699),...n(3495)}},9270:(e,t,n)=>{"use strict";const i=n(5725).fromPromise,r=n(9691);r.outputJson=i(n(8700)),r.outputJsonSync=n(2286),r.outputJSON=r.outputJson,r.outputJSONSync=r.outputJsonSync,r.writeJSON=r.writeJson,r.writeJSONSync=r.writeJsonSync,r.readJSON=r.readJson,r.readJSONSync=r.readJsonSync,e.exports=r},9691:(e,t,n)=>{"use strict";const i=n(370);e.exports={readJson:i.readFile,readJsonSync:i.readFileSync,writeJson:i.writeFile,writeJsonSync:i.writeFileSync}},2286:(e,t,n)=>{"use strict";const{stringify:i}=n(7154),{outputFileSync:r}=n(5048);e.exports=function(e,t,n){const o=i(t,n);r(e,o,n)}},8700:(e,t,n)=>{"use strict";const{stringify:i}=n(7154),{outputFile:r}=n(5048);e.exports=async function(e,t,n={}){const o=i(t,n);await r(e,o,n)}},5145:(e,t,n)=>{"use strict";const i=n(5725).fromPromise,{makeDir:r,makeDirSync:o}=n(646),s=i(r);e.exports={mkdirs:s,mkdirsSync:o,mkdirp:s,mkdirpSync:o,ensureDir:s,ensureDirSync:o}},646:(e,t,n)=>{"use strict";const i=n(2143),{checkPath:r}=n(8051),o=e=>"number"==typeof e?e:{mode:511,...e}.mode;e.exports.makeDir=async(e,t)=>(r(e),i.mkdir(e,{mode:o(t),recursive:!0})),e.exports.makeDirSync=(e,t)=>(r(e),i.mkdirSync(e,{mode:o(t),recursive:!0}))},8051:(e,t,n)=>{"use strict";const i=n(1017);e.exports.checkPath=function(e){if("win32"===process.platform&&/[<>:"|?*]/.test(e.replace(i.parse(e).root,""))){const t=new Error(`Path contains invalid characters: ${e}`);throw t.code="EINVAL",t}}},4146:(e,t,n)=>{"use strict";const i=n(5725).fromCallback;e.exports={move:i(n(2571)),moveSync:n(1612)}},1612:(e,t,n)=>{"use strict";const i=n(85),r=n(1017),o=n(1889).copySync,s=n(3495).removeSync,a=n(5145).mkdirpSync,c=n(3719);function u(e,t,n){try{i.renameSync(e,t)}catch(i){if("EXDEV"!==i.code)throw i;return function(e,t,n){return o(e,t,{overwrite:n,errorOnExist:!0}),s(e)}(e,t,n)}}e.exports=function(e,t,n){const o=(n=n||{}).overwrite||n.clobber||!1,{srcStat:l,isChangingCase:h=!1}=c.checkPathsSync(e,t,"move",n);return c.checkParentPathsSync(e,l,t,"move"),function(e){const t=r.dirname(e);return r.parse(t).root===t}(t)||a(r.dirname(t)),function(e,t,n,r){if(r)return u(e,t,n);if(n)return s(t),u(e,t,n);if(i.existsSync(t))throw new Error("dest already exists.");return u(e,t,n)}(e,t,o,h)}},2571:(e,t,n)=>{"use strict";const i=n(85),r=n(1017),o=n(1889).copy,s=n(3495).remove,a=n(5145).mkdirp,c=n(9699).pathExists,u=n(3719);function l(e,t,n,i,r){return i?h(e,t,n,r):n?s(t,(i=>i?r(i):h(e,t,n,r))):void c(t,((i,o)=>i?r(i):o?r(new Error("dest already exists.")):h(e,t,n,r)))}function h(e,t,n,r){i.rename(e,t,(i=>i?"EXDEV"!==i.code?r(i):function(e,t,n,i){o(e,t,{overwrite:n,errorOnExist:!0},(t=>t?i(t):s(e,i)))}(e,t,n,r):r()))}e.exports=function(e,t,n,i){"function"==typeof n&&(i=n,n={});const o=n.overwrite||n.clobber||!1;u.checkPaths(e,t,"move",n,((n,s)=>{if(n)return i(n);const{srcStat:c,isChangingCase:h=!1}=s;u.checkParentPaths(e,c,t,"move",(n=>n?i(n):function(e){const t=r.dirname(e);return r.parse(t).root===t}(t)?l(e,t,o,h,i):void a(r.dirname(t),(n=>n?i(n):l(e,t,o,h,i)))))}))}},5048:(e,t,n)=>{"use strict";const i=n(5725).fromCallback,r=n(85),o=n(1017),s=n(5145),a=n(9699).pathExists;e.exports={outputFile:i((function(e,t,n,i){"function"==typeof n&&(i=n,n="utf8");const c=o.dirname(e);a(c,((o,a)=>o?i(o):a?r.writeFile(e,t,n,i):void s.mkdirs(c,(o=>{if(o)return i(o);r.writeFile(e,t,n,i)}))))})),outputFileSync:function(e,...t){const n=o.dirname(e);if(r.existsSync(n))return r.writeFileSync(e,...t);s.mkdirsSync(n),r.writeFileSync(e,...t)}}},9699:(e,t,n)=>{"use strict";const i=n(5725).fromPromise,r=n(2143);e.exports={pathExists:i((function(e){return r.access(e).then((()=>!0)).catch((()=>!1))})),pathExistsSync:r.existsSync}},3495:(e,t,n)=>{"use strict";const i=n(85),r=n(5725).fromCallback,o=n(9373);e.exports={remove:r((function(e,t){if(i.rm)return i.rm(e,{recursive:!0,force:!0},t);o(e,t)})),removeSync:function(e){if(i.rmSync)return i.rmSync(e,{recursive:!0,force:!0});o.sync(e)}}},9373:(e,t,n)=>{"use strict";const i=n(85),r=n(1017),o=n(9491),s="win32"===process.platform;function a(e){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach((t=>{e[t]=e[t]||i[t],e[t+="Sync"]=e[t]||i[t]})),e.maxBusyTries=e.maxBusyTries||3}function c(e,t,n){let i=0;"function"==typeof t&&(n=t,t={}),o(e,"rimraf: missing path"),o.strictEqual(typeof e,"string","rimraf: path should be a string"),o.strictEqual(typeof n,"function","rimraf: callback function required"),o(t,"rimraf: invalid options argument provided"),o.strictEqual(typeof t,"object","rimraf: options should be object"),a(t),u(e,t,(function r(o){if(o){if(("EBUSY"===o.code||"ENOTEMPTY"===o.code||"EPERM"===o.code)&&i<t.maxBusyTries)return i++,setTimeout((()=>u(e,t,r)),100*i);"ENOENT"===o.code&&(o=null)}n(o)}))}function u(e,t,n){o(e),o(t),o("function"==typeof n),t.lstat(e,((i,r)=>i&&"ENOENT"===i.code?n(null):i&&"EPERM"===i.code&&s?l(e,t,i,n):r&&r.isDirectory()?d(e,t,i,n):void t.unlink(e,(i=>{if(i){if("ENOENT"===i.code)return n(null);if("EPERM"===i.code)return s?l(e,t,i,n):d(e,t,i,n);if("EISDIR"===i.code)return d(e,t,i,n)}return n(i)}))))}function l(e,t,n,i){o(e),o(t),o("function"==typeof i),t.chmod(e,438,(r=>{r?i("ENOENT"===r.code?null:n):t.stat(e,((r,o)=>{r?i("ENOENT"===r.code?null:n):o.isDirectory()?d(e,t,n,i):t.unlink(e,i)}))}))}function h(e,t,n){let i;o(e),o(t);try{t.chmodSync(e,438)}catch(e){if("ENOENT"===e.code)return;throw n}try{i=t.statSync(e)}catch(e){if("ENOENT"===e.code)return;throw n}i.isDirectory()?f(e,t,n):t.unlinkSync(e)}function d(e,t,n,i){o(e),o(t),o("function"==typeof i),t.rmdir(e,(s=>{!s||"ENOTEMPTY"!==s.code&&"EEXIST"!==s.code&&"EPERM"!==s.code?s&&"ENOTDIR"===s.code?i(n):i(s):function(e,t,n){o(e),o(t),o("function"==typeof n),t.readdir(e,((i,o)=>{if(i)return n(i);let s,a=o.length;if(0===a)return t.rmdir(e,n);o.forEach((i=>{c(r.join(e,i),t,(i=>{if(!s)return i?n(s=i):void(0==--a&&t.rmdir(e,n))}))}))}))}(e,t,i)}))}function p(e,t){let n;a(t=t||{}),o(e,"rimraf: missing path"),o.strictEqual(typeof e,"string","rimraf: path should be a string"),o(t,"rimraf: missing options"),o.strictEqual(typeof t,"object","rimraf: options should be object");try{n=t.lstatSync(e)}catch(n){if("ENOENT"===n.code)return;"EPERM"===n.code&&s&&h(e,t,n)}try{n&&n.isDirectory()?f(e,t,null):t.unlinkSync(e)}catch(n){if("ENOENT"===n.code)return;if("EPERM"===n.code)return s?h(e,t,n):f(e,t,n);if("EISDIR"!==n.code)throw n;f(e,t,n)}}function f(e,t,n){o(e),o(t);try{t.rmdirSync(e)}catch(i){if("ENOTDIR"===i.code)throw n;if("ENOTEMPTY"===i.code||"EEXIST"===i.code||"EPERM"===i.code)!function(e,t){if(o(e),o(t),t.readdirSync(e).forEach((n=>p(r.join(e,n),t))),!s)return t.rmdirSync(e,t);{const n=Date.now();do{try{return t.rmdirSync(e,t)}catch{}}while(Date.now()-n<500)}}(e,t);else if("ENOENT"!==i.code)throw i}}e.exports=c,c.sync=p},3719:(e,t,n)=>{"use strict";const i=n(2143),r=n(1017),o=n(3837);function s(e,t,n){const r=n.dereference?e=>i.stat(e,{bigint:!0}):e=>i.lstat(e,{bigint:!0});return Promise.all([r(e),r(t).catch((e=>{if("ENOENT"===e.code)return null;throw e}))]).then((([e,t])=>({srcStat:e,destStat:t})))}function a(e,t){return t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev}function c(e,t){const n=r.resolve(e).split(r.sep).filter((e=>e)),i=r.resolve(t).split(r.sep).filter((e=>e));return n.reduce(((e,t,n)=>e&&i[n]===t),!0)}function u(e,t,n){return`Cannot ${n} '${e}' to a subdirectory of itself, '${t}'.`}e.exports={checkPaths:function(e,t,n,i,l){o.callbackify(s)(e,t,i,((i,o)=>{if(i)return l(i);const{srcStat:s,destStat:h}=o;if(h){if(a(s,h)){const i=r.basename(e),o=r.basename(t);return"move"===n&&i!==o&&i.toLowerCase()===o.toLowerCase()?l(null,{srcStat:s,destStat:h,isChangingCase:!0}):l(new Error("Source and destination must not be the same."))}if(s.isDirectory()&&!h.isDirectory())return l(new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`));if(!s.isDirectory()&&h.isDirectory())return l(new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`))}return s.isDirectory()&&c(e,t)?l(new Error(u(e,t,n))):l(null,{srcStat:s,destStat:h})}))},checkPathsSync:function(e,t,n,o){const{srcStat:s,destStat:l}=function(e,t,n){let r;const o=n.dereference?e=>i.statSync(e,{bigint:!0}):e=>i.lstatSync(e,{bigint:!0}),s=o(e);try{r=o(t)}catch(e){if("ENOENT"===e.code)return{srcStat:s,destStat:null};throw e}return{srcStat:s,destStat:r}}(e,t,o);if(l){if(a(s,l)){const i=r.basename(e),o=r.basename(t);if("move"===n&&i!==o&&i.toLowerCase()===o.toLowerCase())return{srcStat:s,destStat:l,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(s.isDirectory()&&!l.isDirectory())throw new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`);if(!s.isDirectory()&&l.isDirectory())throw new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`)}if(s.isDirectory()&&c(e,t))throw new Error(u(e,t,n));return{srcStat:s,destStat:l}},checkParentPaths:function e(t,n,o,s,c){const l=r.resolve(r.dirname(t)),h=r.resolve(r.dirname(o));if(h===l||h===r.parse(h).root)return c();i.stat(h,{bigint:!0},((i,r)=>i?"ENOENT"===i.code?c():c(i):a(n,r)?c(new Error(u(t,o,s))):e(t,n,h,s,c)))},checkParentPathsSync:function e(t,n,o,s){const c=r.resolve(r.dirname(t)),l=r.resolve(r.dirname(o));if(l===c||l===r.parse(l).root)return;let h;try{h=i.statSync(l,{bigint:!0})}catch(e){if("ENOENT"===e.code)return;throw e}if(a(n,h))throw new Error(u(t,o,s));return e(t,n,l,s)},isSrcSubdir:c,areIdentical:a}},2450:(e,t,n)=>{"use strict";const i=n(85);e.exports={utimesMillis:function(e,t,n,r){i.open(e,"r+",((e,o)=>{if(e)return r(e);i.futimes(o,t,n,(e=>{i.close(o,(t=>{r&&r(e||t)}))}))}))},utimesMillisSync:function(e,t,n){const r=i.openSync(e,"r+");return i.futimesSync(r,t,n),i.closeSync(r)}}},4203:e=>{"use strict";e.exports=function(e){if(null===e||"object"!=typeof e)return e;if(e instanceof Object)var n={__proto__:t(e)};else n=Object.create(null);return Object.getOwnPropertyNames(e).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})),n};var t=Object.getPrototypeOf||function(e){return e.__proto__}},85:(e,t,n)=>{var i,r,o=n(7147),s=n(2965),a=n(5361),c=n(4203),u=n(3837);function l(e,t){Object.defineProperty(e,i,{get:function(){return t}})}"function"==typeof Symbol&&"function"==typeof Symbol.for?(i=Symbol.for("graceful-fs.queue"),r=Symbol.for("graceful-fs.previous")):(i="___graceful-fs.queue",r="___graceful-fs.previous");var h,d=function(){};if(u.debuglog?d=u.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(d=function(){var e=u.format.apply(u,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: "),console.error(e)}),!o[i]){var p=global[i]||[];l(o,p),o.close=function(e){function t(t,n){return e.call(o,t,(function(e){e||m(),"function"==typeof n&&n.apply(this,arguments)}))}return Object.defineProperty(t,r,{value:e}),t}(o.close),o.closeSync=function(e){function t(t){e.apply(o,arguments),m()}return Object.defineProperty(t,r,{value:e}),t}(o.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",(function(){d(o[i]),n(9491).equal(o[i].length,0)}))}function f(e){s(e),e.gracefulify=f,e.createReadStream=function(t,n){return new e.ReadStream(t,n)},e.createWriteStream=function(t,n){return new e.WriteStream(t,n)};var t=e.readFile;e.readFile=function(e,n,i){return"function"==typeof n&&(i=n,n=null),function e(n,i,r,o){return t(n,i,(function(t){!t||"EMFILE"!==t.code&&"ENFILE"!==t.code?"function"==typeof r&&r.apply(this,arguments):g([e,[n,i,r],t,o||Date.now(),Date.now()])}))}(e,n,i)};var n=e.writeFile;e.writeFile=function(e,t,i,r){return"function"==typeof i&&(r=i,i=null),function e(t,i,r,o,s){return n(t,i,r,(function(n){!n||"EMFILE"!==n.code&&"ENFILE"!==n.code?"function"==typeof o&&o.apply(this,arguments):g([e,[t,i,r,o],n,s||Date.now(),Date.now()])}))}(e,t,i,r)};var i=e.appendFile;i&&(e.appendFile=function(e,t,n,r){return"function"==typeof n&&(r=n,n=null),function e(t,n,r,o,s){return i(t,n,r,(function(i){!i||"EMFILE"!==i.code&&"ENFILE"!==i.code?"function"==typeof o&&o.apply(this,arguments):g([e,[t,n,r,o],i,s||Date.now(),Date.now()])}))}(e,t,n,r)});var r=e.copyFile;r&&(e.copyFile=function(e,t,n,i){return"function"==typeof n&&(i=n,n=0),function e(t,n,i,o,s){return r(t,n,i,(function(r){!r||"EMFILE"!==r.code&&"ENFILE"!==r.code?"function"==typeof o&&o.apply(this,arguments):g([e,[t,n,i,o],r,s||Date.now(),Date.now()])}))}(e,t,n,i)});var o=e.readdir;if(e.readdir=function(e,t,n){return"function"==typeof t&&(n=t,t=null),function e(t,n,i,r){return o(t,n,(function(o,s){!o||"EMFILE"!==o.code&&"ENFILE"!==o.code?(s&&s.sort&&s.sort(),"function"==typeof i&&i.call(this,o,s)):g([e,[t,n,i],o,r||Date.now(),Date.now()])}))}(e,t,n)},"v0.8"===process.version.substr(0,4)){var c=a(e);p=c.ReadStream,m=c.WriteStream}var u=e.ReadStream;u&&(p.prototype=Object.create(u.prototype),p.prototype.open=function(){var e=this;v(e.path,e.flags,e.mode,(function(t,n){t?(e.autoClose&&e.destroy(),e.emit("error",t)):(e.fd=n,e.emit("open",n),e.read())}))});var l=e.WriteStream;l&&(m.prototype=Object.create(l.prototype),m.prototype.open=function(){var e=this;v(e.path,e.flags,e.mode,(function(t,n){t?(e.destroy(),e.emit("error",t)):(e.fd=n,e.emit("open",n))}))}),Object.defineProperty(e,"ReadStream",{get:function(){return p},set:function(e){p=e},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return m},set:function(e){m=e},enumerable:!0,configurable:!0});var h=p;Object.defineProperty(e,"FileReadStream",{get:function(){return h},set:function(e){h=e},enumerable:!0,configurable:!0});var d=m;function p(e,t){return this instanceof p?(u.apply(this,arguments),this):p.apply(Object.create(p.prototype),arguments)}function m(e,t){return this instanceof m?(l.apply(this,arguments),this):m.apply(Object.create(m.prototype),arguments)}Object.defineProperty(e,"FileWriteStream",{get:function(){return d},set:function(e){d=e},enumerable:!0,configurable:!0});var y=e.open;function v(e,t,n,i){return"function"==typeof n&&(i=n,n=null),function e(t,n,i,r,o){return y(t,n,i,(function(s,a){!s||"EMFILE"!==s.code&&"ENFILE"!==s.code?"function"==typeof r&&r.apply(this,arguments):g([e,[t,n,i,r],s,o||Date.now(),Date.now()])}))}(e,t,n,i)}return e.open=v,e}function g(e){d("ENQUEUE",e[0].name,e[1]),o[i].push(e),y()}function m(){for(var e=Date.now(),t=0;t<o[i].length;++t)o[i][t].length>2&&(o[i][t][3]=e,o[i][t][4]=e);y()}function y(){if(clearTimeout(h),h=void 0,0!==o[i].length){var e=o[i].shift(),t=e[0],n=e[1],r=e[2],s=e[3],a=e[4];if(void 0===s)d("RETRY",t.name,n),t.apply(null,n);else if(Date.now()-s>=6e4){d("TIMEOUT",t.name,n);var c=n.pop();"function"==typeof c&&c.call(null,r)}else{var u=Date.now()-a,l=Math.max(a-s,1);u>=Math.min(1.2*l,100)?(d("RETRY",t.name,n),t.apply(null,n.concat([s]))):o[i].push(e)}void 0===h&&(h=setTimeout(y,0))}}global[i]||l(global,o[i]),e.exports=f(c(o)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!o.__patched&&(e.exports=f(o),o.__patched=!0)},5361:(e,t,n)=>{var i=n(2781).Stream;e.exports=function(e){return{ReadStream:function t(n,r){if(!(this instanceof t))return new t(n,r);i.call(this);var o=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536,r=r||{};for(var s=Object.keys(r),a=0,c=s.length;a<c;a++){var u=s[a];this[u]=r[u]}if(this.encoding&&this.setEncoding(this.encoding),void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(void 0===this.end)this.end=1/0;else if("number"!=typeof this.end)throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}null===this.fd?e.open(this.path,this.flags,this.mode,(function(e,t){if(e)return o.emit("error",e),void(o.readable=!1);o.fd=t,o.emit("open",t),o._read()})):process.nextTick((function(){o._read()}))},WriteStream:function t(n,r){if(!(this instanceof t))return new t(n,r);i.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,r=r||{};for(var o=Object.keys(r),s=0,a=o.length;s<a;s++){var c=o[s];this[c]=r[c]}if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],null===this.fd&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}},2965:(e,t,n)=>{var i=n(2057),r=process.cwd,o=null,s=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return o||(o=r.call(process)),o};try{process.cwd()}catch(e){}if("function"==typeof process.chdir){var a=process.chdir;process.chdir=function(e){o=null,a.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,a)}e.exports=function(e){var t,n;function r(t){return t?function(n,i,r){return t.call(e,n,i,(function(e){h(e)&&(e=null),r&&r.apply(this,arguments)}))}:t}function o(t){return t?function(n,i){try{return t.call(e,n,i)}catch(e){if(!h(e))throw e}}:t}function a(t){return t?function(n,i,r,o){return t.call(e,n,i,r,(function(e){h(e)&&(e=null),o&&o.apply(this,arguments)}))}:t}function c(t){return t?function(n,i,r){try{return t.call(e,n,i,r)}catch(e){if(!h(e))throw e}}:t}function u(t){return t?function(n,i,r){function o(e,t){t&&(t.uid<0&&(t.uid+=4294967296),t.gid<0&&(t.gid+=4294967296)),r&&r.apply(this,arguments)}return"function"==typeof i&&(r=i,i=null),i?t.call(e,n,i,o):t.call(e,n,o)}:t}function l(t){return t?function(n,i){var r=i?t.call(e,n,i):t.call(e,n);return r&&(r.uid<0&&(r.uid+=4294967296),r.gid<0&&(r.gid+=4294967296)),r}:t}function h(e){return!e||"ENOSYS"===e.code||!(process.getuid&&0===process.getuid()||"EINVAL"!==e.code&&"EPERM"!==e.code)}i.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&function(e){e.lchmod=function(t,n,r){e.open(t,i.O_WRONLY|i.O_SYMLINK,n,(function(t,i){t?r&&r(t):e.fchmod(i,n,(function(t){e.close(i,(function(e){r&&r(t||e)}))}))}))},e.lchmodSync=function(t,n){var r,o=e.openSync(t,i.O_WRONLY|i.O_SYMLINK,n),s=!0;try{r=e.fchmodSync(o,n),s=!1}finally{if(s)try{e.closeSync(o)}catch(e){}else e.closeSync(o)}return r}}(e),e.lutimes||function(e){i.hasOwnProperty("O_SYMLINK")?(e.lutimes=function(t,n,r,o){e.open(t,i.O_SYMLINK,(function(t,i){t?o&&o(t):e.futimes(i,n,r,(function(t){e.close(i,(function(e){o&&o(t||e)}))}))}))},e.lutimesSync=function(t,n,r){var o,s=e.openSync(t,i.O_SYMLINK),a=!0;try{o=e.futimesSync(s,n,r),a=!1}finally{if(a)try{e.closeSync(s)}catch(e){}else e.closeSync(s)}return o}):(e.lutimes=function(e,t,n,i){i&&process.nextTick(i)},e.lutimesSync=function(){})}(e),e.chown=a(e.chown),e.fchown=a(e.fchown),e.lchown=a(e.lchown),e.chmod=r(e.chmod),e.fchmod=r(e.fchmod),e.lchmod=r(e.lchmod),e.chownSync=c(e.chownSync),e.fchownSync=c(e.fchownSync),e.lchownSync=c(e.lchownSync),e.chmodSync=o(e.chmodSync),e.fchmodSync=o(e.fchmodSync),e.lchmodSync=o(e.lchmodSync),e.stat=u(e.stat),e.fstat=u(e.fstat),e.lstat=u(e.lstat),e.statSync=l(e.statSync),e.fstatSync=l(e.fstatSync),e.lstatSync=l(e.lstatSync),e.lchmod||(e.lchmod=function(e,t,n){n&&process.nextTick(n)},e.lchmodSync=function(){}),e.lchown||(e.lchown=function(e,t,n,i){i&&process.nextTick(i)},e.lchownSync=function(){}),"win32"===s&&(e.rename=(t=e.rename,function(n,i,r){var o=Date.now(),s=0;t(n,i,(function a(c){if(c&&("EACCES"===c.code||"EPERM"===c.code)&&Date.now()-o<6e4)return setTimeout((function(){e.stat(i,(function(e,o){e&&"ENOENT"===e.code?t(n,i,a):r(c)}))}),s),void(s<100&&(s+=10));r&&r(c)}))})),e.read=function(t){function n(n,i,r,o,s,a){var c;if(a&&"function"==typeof a){var u=0;c=function(l,h,d){if(l&&"EAGAIN"===l.code&&u<10)return u++,t.call(e,n,i,r,o,s,c);a.apply(this,arguments)}}return t.call(e,n,i,r,o,s,c)}return Object.setPrototypeOf&&Object.setPrototypeOf(n,t),n}(e.read),e.readSync=(n=e.readSync,function(t,i,r,o,s){for(var a=0;;)try{return n.call(e,t,i,r,o,s)}catch(e){if("EAGAIN"===e.code&&a<10){a++;continue}throw e}})}},2001:e=>{"use strict";const t=Object.prototype.hasOwnProperty;e.exports=(e,n)=>t.call(e,n)},370:(e,t,n)=>{let i;try{i=n(85)}catch(e){i=n(7147)}const r=n(5725),{stringify:o,stripBom:s}=n(7154),a={readFile:r.fromPromise((async function(e,t={}){"string"==typeof t&&(t={encoding:t});const n=t.fs||i,o=!("throws"in t)||t.throws;let a,c=await r.fromCallback(n.readFile)(e,t);c=s(c);try{a=JSON.parse(c,t?t.reviver:null)}catch(t){if(o)throw t.message=`${e}: ${t.message}`,t;return null}return a})),readFileSync:function(e,t={}){"string"==typeof t&&(t={encoding:t});const n=t.fs||i,r=!("throws"in t)||t.throws;try{let i=n.readFileSync(e,t);return i=s(i),JSON.parse(i,t.reviver)}catch(t){if(r)throw t.message=`${e}: ${t.message}`,t;return null}},writeFile:r.fromPromise((async function(e,t,n={}){const s=n.fs||i,a=o(t,n);await r.fromCallback(s.writeFile)(e,a,n)})),writeFileSync:function(e,t,n={}){const r=n.fs||i,s=o(t,n);return r.writeFileSync(e,s,n)}};e.exports=a},7154:e=>{e.exports={stringify:function(e,{EOL:t="\n",finalEOL:n=!0,replacer:i=null,spaces:r}={}){const o=n?t:"";return JSON.stringify(e,i,r).replace(/\n/g,t)+o},stripBom:function(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}}},7945:(e,t,n)=>{"use strict";function i(e){var t=function(){};return t.prototype=e,new t}function r(e){var t=arguments.length,n=void 0,i=void 0;for(n=1;n<t;n++)for(i in arguments[n])e[i]=arguments[n][i];return e}function o(e,t){var n=arguments.length,o=void 0;for(e.prototype=i(t.prototype),e.prototype.constructor=e,o=2;o<n;o++)r(e.prototype,arguments[o]);return e}n.r(t),n.d(t,{Kefir:()=>Hn,Observable:()=>C,Pool:()=>an,Property:()=>b,Stream:()=>S,combine:()=>le,concat:()=>sn,constant:()=>z,constantError:()=>H,default:()=>Gn,dissableDeprecationWarnings:()=>zn,fromCallback:()=>j,fromESObservable:()=>oe,fromEvents:()=>$,fromNodeCallback:()=>B,fromPoll:()=>O,fromPromise:()=>te,interval:()=>k,later:()=>_,merge:()=>nn,never:()=>w,pool:()=>$n,repeat:()=>on,sequentially:()=>A,staticLand:()=>de,stream:()=>L,withInterval:()=>N,zip:()=>Qt}),e=n.hmd(e);var s=["<nothing>"],a="end",c="value",u="error",l="any";function h(e,t){var n=void 0,i=void 0,r=void 0,o=void 0;if(0===e.length)return t;if(0===t.length)return e;for(o=0,n=new Array(e.length+t.length),i=e.length,r=0;r<i;r++,o++)n[o]=e[r];for(i=t.length,r=0;r<i;r++,o++)n[o]=t[r];return n}function d(e,t){var n=e.length,i=void 0;for(i=0;i<n;i++)if(e[i]===t)return i;return-1}function p(e,t){var n=e.length,i=void 0;for(i=0;i<n;i++)if(t(e[i]))return i;return-1}function f(e){var t=e.length,n=new Array(t),i=void 0;for(i=0;i<t;i++)n[i]=e[i];return n}function g(e,t){var n=e.length,i=void 0,r=void 0,o=void 0;if(t>=0&&t<n){if(1===n)return[];for(i=new Array(n-1),r=0,o=0;r<n;r++)r!==t&&(i[o]=e[r],o++);return i}return e}function m(e,t){var n=e.length,i=new Array(n),r=void 0;for(r=0;r<n;r++)i[r]=t(e[r]);return i}function y(e,t,n){e===l?t(n):e===n.type&&(e===c||e===u?t(n.value):t())}function v(){this._items=[],this._spies=[],this._inLoop=0,this._removedItems=null}function C(){this._dispatcher=new v,this._active=!1,this._alive=!0,this._activating=!1,this._logHandlers=null,this._spyHandlers=null}function S(){C.call(this)}function b(){C.call(this),this._currentEvent=null}r(v.prototype,{add:function(e,t){return this._items=h(this._items,[{type:e,fn:t}]),this._items.length},remove:function(e,t){var n=p(this._items,(function(n){return n.type===e&&n.fn===t}));return 0!==this._inLoop&&-1!==n&&(null===this._removedItems&&(this._removedItems=[]),this._removedItems.push(this._items[n])),this._items=g(this._items,n),this._items.length},addSpy:function(e){return this._spies=h(this._spies,[e]),this._spies.length},removeSpy:function(e){return this._spies=g(this._spies,this._spies.indexOf(e)),this._spies.length},dispatch:function(e){this._inLoop++;for(var t=0,n=this._spies;null!==this._spies&&t<n.length;t++)n[t](e);for(var i=0,r=this._items;i<r.length&&null!==this._items;i++)null!==this._removedItems&&-1!==d(this._removedItems,r[i])||y(r[i].type,r[i].fn,e);this._inLoop--,0===this._inLoop&&(this._removedItems=null)},cleanup:function(){this._items=null,this._spies=null}}),r(C.prototype,{_name:"observable",_onActivation:function(){},_onDeactivation:function(){},_setActive:function(e){this._active!==e&&(this._active=e,e?(this._activating=!0,this._onActivation(),this._activating=!1):this._onDeactivation())},_clear:function(){this._setActive(!1),this._dispatcher.cleanup(),this._dispatcher=null,this._logHandlers=null},_emit:function(e,t){switch(e){case c:return this._emitValue(t);case u:return this._emitError(t);case a:return this._emitEnd()}},_emitValue:function(e){this._alive&&this._dispatcher.dispatch({type:c,value:e})},_emitError:function(e){this._alive&&this._dispatcher.dispatch({type:u,value:e})},_emitEnd:function(){this._alive&&(this._alive=!1,this._dispatcher.dispatch({type:a}),this._clear())},_on:function(e,t){return this._alive?(this._dispatcher.add(e,t),this._setActive(!0)):y(e,t,{type:a}),this},_off:function(e,t){return this._alive&&0===this._dispatcher.remove(e,t)&&this._setActive(!1),this},onValue:function(e){return this._on(c,e)},onError:function(e){return this._on(u,e)},onEnd:function(e){return this._on(a,e)},onAny:function(e){return this._on(l,e)},offValue:function(e){return this._off(c,e)},offError:function(e){return this._off(u,e)},offEnd:function(e){return this._off(a,e)},offAny:function(e){return this._off(l,e)},observe:function(e,t,n){var i=this,r=!1,o=e&&"function"!=typeof e?e:{value:e,error:t,end:n},s=function(e){e.type===a&&(r=!0),e.type===c&&o.value?o.value(e.value):e.type===u&&o.error?o.error(e.value):e.type===a&&o.end&&o.end(e.value)};return this.onAny(s),{unsubscribe:function(){r||(i.offAny(s),r=!0)},get closed(){return r}}},_ofSameType:function(e,t){return e.prototype.getType()===this.getType()?e:t},setName:function(e,t){return this._name=t?e._name+"."+t:e,this},log:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.toString(),t=void 0,n=function(n){var i="<"+n.type+(t?":current":"")+">";n.type===a?console.log(e,i):console.log(e,i,n.value)};return this._alive&&(this._logHandlers||(this._logHandlers=[]),this._logHandlers.push({name:e,handler:n})),t=!0,this.onAny(n),t=!1,this},offLog:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.toString();if(this._logHandlers){var t=p(this._logHandlers,(function(t){return t.name===e}));-1!==t&&(this.offAny(this._logHandlers[t].handler),this._logHandlers.splice(t,1))}return this},spy:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.toString(),t=function(t){var n="<"+t.type+">";t.type===a?console.log(e,n):console.log(e,n,t.value)};return this._alive&&(this._spyHandlers||(this._spyHandlers=[]),this._spyHandlers.push({name:e,handler:t}),this._dispatcher.addSpy(t)),this},offSpy:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.toString();if(this._spyHandlers){var t=p(this._spyHandlers,(function(t){return t.name===e}));-1!==t&&(this._dispatcher.removeSpy(this._spyHandlers[t].handler),this._spyHandlers.splice(t,1))}return this}}),C.prototype.toString=function(){return"["+this._name+"]"},o(S,C,{_name:"stream",getType:function(){return"stream"}}),o(b,C,{_name:"property",_emitValue:function(e){this._alive&&(this._currentEvent={type:c,value:e},this._activating||this._dispatcher.dispatch({type:c,value:e}))},_emitError:function(e){this._alive&&(this._currentEvent={type:u,value:e},this._activating||this._dispatcher.dispatch({type:u,value:e}))},_emitEnd:function(){this._alive&&(this._alive=!1,this._activating||this._dispatcher.dispatch({type:a}),this._clear())},_on:function(e,t){return this._alive&&(this._dispatcher.add(e,t),this._setActive(!0)),null!==this._currentEvent&&y(e,t,this._currentEvent),this._alive||y(e,t,{type:a}),this},getType:function(){return"property"}});var E=new S;function w(){return E}function D(e){function t(e,t){var n=this;S.call(this),this._wait=e,this._intervalId=null,this._$onTick=function(){return n._onTick()},this._init(t)}return o(t,S,{_init:function(){},_free:function(){},_onTick:function(){},_onActivation:function(){this._intervalId=setInterval(this._$onTick,this._wait)},_onDeactivation:function(){null!==this._intervalId&&(clearInterval(this._intervalId),this._intervalId=null)},_clear:function(){S.prototype._clear.call(this),this._$onTick=null,this._free()}},e),t}E._emitEnd(),E._name="never";var x=D({_name:"later",_init:function(e){var t=e.x;this._x=t},_free:function(){this._x=null},_onTick:function(){this._emitValue(this._x),this._emitEnd()}});function _(e,t){return new x(e,{x:t})}var T=D({_name:"interval",_init:function(e){var t=e.x;this._x=t},_free:function(){this._x=null},_onTick:function(){this._emitValue(this._x)}});function k(e,t){return new T(e,{x:t})}var F=D({_name:"sequentially",_init:function(e){var t=e.xs;this._xs=f(t)},_free:function(){this._xs=null},_onTick:function(){1===this._xs.length?(this._emitValue(this._xs[0]),this._emitEnd()):this._emitValue(this._xs.shift())}});function A(e,t){return 0===t.length?w():new F(e,{xs:t})}var R=D({_name:"fromPoll",_init:function(e){var t=e.fn;this._fn=t},_free:function(){this._fn=null},_onTick:function(){var e=this._fn;this._emitValue(e())}});function O(e,t){return new R(e,{fn:t})}function P(e){function t(t){return e._emitValue(t),e._active}function n(t){return e._emit(t.type,t.value),e._active}return{value:t,error:function(t){return e._emitError(t),e._active},end:function(){return e._emitEnd(),e._active},event:n,emit:t,emitEvent:n}}var M=D({_name:"withInterval",_init:function(e){var t=e.fn;this._fn=t,this._emitter=P(this)},_free:function(){this._fn=null,this._emitter=null},_onTick:function(){(0,this._fn)(this._emitter)}});function N(e,t){return new M(e,{fn:t})}function I(e){S.call(this),this._fn=e,this._unsubscribe=null}function L(e){return new I(e)}function j(e){var t=!1;return L((function(n){t||(e((function(e){n.emit(e),n.end()})),t=!0)})).setName("fromCallback")}function B(e){var t=!1;return L((function(n){t||(e((function(e,t){e?n.error(e):n.emit(t),n.end()})),t=!0)})).setName("fromNodeCallback")}function q(e,t){switch(t){case 0:return function(){return e()};case 1:return function(t){return e(t[0])};case 2:return function(t){return e(t[0],t[1])};case 3:return function(t){return e(t[0],t[1],t[2])};case 4:return function(t){return e(t[0],t[1],t[2],t[3])};default:return function(t){return e.apply(null,t)}}}function U(e,t,n){var i=n?n.length:0;if(null!=t)return 0===i?e.call(t):e.apply(t,n);switch(i){case 0:return e();case 1:return e(n[0]);case 2:return e(n[0],n[1]);case 3:return e(n[0],n[1],n[2]);case 4:return e(n[0],n[1],n[2],n[3]);default:return e.apply(null,n)}}o(I,S,{_name:"stream",_onActivation:function(){var e=(0,this._fn)(P(this));this._unsubscribe="function"==typeof e?e:null,this._active||this._callUnsubscribe()},_callUnsubscribe:function(){null!==this._unsubscribe&&(this._unsubscribe(),this._unsubscribe=null)},_onDeactivation:function(){this._callUnsubscribe()},_clear:function(){S.prototype._clear.call(this),this._fn=null}});var W=[["addEventListener","removeEventListener"],["addListener","removeListener"],["on","off"]];function $(e,t,n){for(var i=void 0,r=void 0,o=0;o<W.length;o++)if("function"==typeof e[W[o][0]]&&"function"==typeof e[W[o][1]]){i=W[o][0],r=W[o][1];break}if(void 0===i)throw new Error("target don't support any of addEventListener/removeEventListener, addListener/removeListener, on/off method pair");return function(e,t,n){return L((function(i){var r=n?function(){i.emit(U(n,this,arguments))}:function(e){i.emit(e)};return e(r),function(){return t(r)}})).setName("fromSubUnsub")}((function(n){return e[i](t,n)}),(function(n){return e[r](t,n)}),n).setName("fromEvents")}function K(e){this._currentEvent={type:"value",value:e,current:!0}}function z(e){return new K(e)}function V(e){this._currentEvent={type:"error",value:e,current:!0}}function H(e){return new V(e)}function G(e,t){return function(n,i){var r=this;e.call(this),this._source=n,this._name=n._name+"."+t,this._init(i),this._$handleAny=function(e){return r._handleAny(e)}}}function J(e){return{_init:function(){},_free:function(){},_handleValue:function(e){this._emitValue(e)},_handleError:function(e){this._emitError(e)},_handleEnd:function(){this._emitEnd()},_handleAny:function(e){switch(e.type){case c:return this._handleValue(e.value);case u:return this._handleError(e.value);case a:return this._handleEnd()}},_onActivation:function(){this._source.onAny(this._$handleAny)},_onDeactivation:function(){this._source.offAny(this._$handleAny)},_clear:function(){e.prototype._clear.call(this),this._source=null,this._$handleAny=null,this._free()}}}function X(e,t){var n=G(S,e);return o(n,S,J(S),t),n}function Y(e,t){var n=G(b,e);return o(n,b,J(b),t),n}o(K,b,{_name:"constant",_active:!1,_activating:!1,_alive:!1,_dispatcher:null,_logHandlers:null}),o(V,b,{_name:"constantError",_active:!1,_activating:!1,_alive:!1,_dispatcher:null,_logHandlers:null});var Q=Y("toProperty",{_init:function(e){var t=e.fn;this._getInitialCurrent=t},_onActivation:function(){if(null!==this._getInitialCurrent){var e=this._getInitialCurrent;this._emitValue(e())}this._source.onAny(this._$handleAny)}});function Z(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(null!==t&&"function"!=typeof t)throw new Error("You should call toProperty() with a function or no arguments.");return new Q(e,{fn:t})}var ee=X("changes",{_handleValue:function(e){this._activating||this._emitValue(e)},_handleError:function(e){this._activating||this._emitError(e)}});function te(e){var t=!1,n=L((function(n){if(!t){var i=e.then((function(e){n.emit(e),n.end()}),(function(e){n.error(e),n.end()}));i&&"function"==typeof i.done&&i.done(),t=!0}}));return Z(n,null).setName("fromPromise")}function ne(){if("function"==typeof Promise)return Promise;throw new Error("There isn't default Promise, use shim or parameter")}var ie=function(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}("undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:e),re=ie.default?ie.default:ie;function oe(e){var t=e[re]?e[re]():e;return L((function(e){var n=t.subscribe({error:function(t){e.error(t),e.end()},next:function(t){e.emit(t)},complete:function(){e.end()}});return n.unsubscribe?function(){n.unsubscribe()}:n})).setName("fromESObservable")}function se(e){this._observable=e.takeErrors(1)}function ae(){return new se(this)}function ce(e,t,n){for(var i in e)e.hasOwnProperty(i)&&(t.push(i),n.push(e[i]))}function ue(e,t,n){var i=this;S.call(this),this._activeCount=e.length,this._sources=h(e,t),this._combinator=n,this._aliveCount=0,this._latestValues=new Array(this._sources.length),this._latestErrors=new Array(this._sources.length),function(e,t){var n=e.length,i=void 0;for(i=0;i<n;i++)e[i]=t}(this._latestValues,s),this._emitAfterActivation=!1,this._endAfterActivation=!1,this._latestErrorIndex=0,this._$handlers=[];for(var r=function(e){i._$handlers.push((function(t){return i._handleAny(e,t)}))},o=0;o<this._sources.length;o++)r(o)}function le(e,t,n){return"function"==typeof t&&(n=t,t=void 0),Array.isArray(e)?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments[2];if(!Array.isArray(t))throw new Error("Combine can only combine active and passive collections of the same type.");return n=n?q(n,e.length+t.length):function(e){return e},0===e.length?w():new ue(e,t,n)}(e,t,n):function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2];if("object"!=typeof t||Array.isArray(t))throw new Error("Combine can only combine active and passive collections of the same type.");var i=[],r=[],o=[];ce(e,i,r),ce(t,i,o);var s=function(e){for(var t={},r=e.length-1;0<=r;r--)t[i[r]]=e[r];return n?n(t):t};return 0===r.length?w():new ue(r,o,s)}(e,t,n)}r(se.prototype,{subscribe:function(e,t,n){var i=this,r="function"==typeof e?{next:e,error:t,complete:n}:e,o=function(e){e.type===a&&(s=!0),e.type===c&&r.next?r.next(e.value):e.type===u&&r.error?r.error(e.value):e.type===a&&r.complete&&r.complete(e.value)};this._observable.onAny(o);var s=!1;return{unsubscribe:function(){s=!0,i._observable.offAny(o)},get closed(){return s}}}}),se.prototype[re]=function(){return this},o(ue,S,{_name:"combine",_onActivation:function(){this._aliveCount=this._activeCount;for(var e=this._activeCount;e<this._sources.length;e++)this._sources[e].onAny(this._$handlers[e]);for(var t=0;t<this._activeCount;t++)this._sources[t].onAny(this._$handlers[t]);this._emitAfterActivation&&(this._emitAfterActivation=!1,this._emitIfFull()),this._endAfterActivation&&this._emitEnd()},_onDeactivation:function(){var e=this._sources.length,t=void 0;for(t=0;t<e;t++)this._sources[t].offAny(this._$handlers[t])},_emitIfFull:function(){for(var e=!0,t=!1,n=this._latestValues.length,i=new Array(n),r=new Array(n),o=0;o<n;o++)i[o]=this._latestValues[o],r[o]=this._latestErrors[o],i[o]===s&&(e=!1),void 0!==r[o]&&(t=!0);if(e){var a=this._combinator;this._emitValue(a(i))}t&&this._emitError(function(e){for(var t=void 0,n=0;n<e.length;n++)void 0!==e[n]&&(void 0===t||t.index<e[n].index)&&(t=e[n]);return t.error}(r))},_handleAny:function(e,t){t.type===c||t.type===u?(t.type===c&&(this._latestValues[e]=t.value,this._latestErrors[e]=void 0),t.type===u&&(this._latestValues[e]=s,this._latestErrors[e]={index:this._latestErrorIndex++,error:t.value}),e<this._activeCount&&(this._activating?this._emitAfterActivation=!0:this._emitIfFull())):e<this._activeCount&&(this._aliveCount--,0===this._aliveCount&&(this._activating?this._endAfterActivation=!0:this._emitEnd()))},_clear:function(){S.prototype._clear.call(this),this._sources=null,this._latestValues=null,this._latestErrors=null,this._combinator=null,this._$handlers=null}});var he={empty:function(){return w()},concat:function(e,t){return e.merge(t)},of:function(e){return z(e)},map:function(e,t){return t.map(e)},bimap:function(e,t,n){return n.mapErrors(e).map(t)},ap:function(e,t){return le([e,t],(function(e,t){return e(t)}))},chain:function(e,t){return t.flatMap(e)}},de=Object.freeze({Observable:he}),pe={_init:function(e){var t=e.fn;this._fn=t},_free:function(){this._fn=null},_handleValue:function(e){var t=this._fn;this._emitValue(t(e))}},fe=X("map",pe),ge=Y("map",pe),me=function(e){return e};function ye(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:me;return new(e._ofSameType(fe,ge))(e,{fn:t})}var ve={_init:function(e){var t=e.fn;this._fn=t},_free:function(){this._fn=null},_handleValue:function(e){(0,this._fn)(e)&&this._emitValue(e)}},Ce=X("filter",ve),Se=Y("filter",ve),be=function(e){return e},Ee={_init:function(e){var t=e.n;this._n=t,t<=0&&this._emitEnd()},_handleValue:function(e){0!==this._n&&(this._n--,this._emitValue(e),0===this._n&&this._emitEnd())}},we=X("take",Ee),De=Y("take",Ee),xe={_init:function(e){var t=e.n;this._n=t,t<=0&&this._emitEnd()},_handleError:function(e){0!==this._n&&(this._n--,this._emitError(e),0===this._n&&this._emitEnd())}},_e=X("takeErrors",xe),Te=Y("takeErrors",xe),ke={_init:function(e){var t=e.fn;this._fn=t},_free:function(){this._fn=null},_handleValue:function(e){(0,this._fn)(e)?this._emitValue(e):this._emitEnd()}},Fe=X("takeWhile",ke),Ae=Y("takeWhile",ke),Re=function(e){return e},Oe={_init:function(){this._lastValue=s},_free:function(){this._lastValue=null},_handleValue:function(e){this._lastValue=e},_handleEnd:function(){this._lastValue!==s&&this._emitValue(this._lastValue),this._emitEnd()}},Pe=X("last",Oe),Me=Y("last",Oe),Ne={_init:function(e){var t=e.n;this._n=Math.max(0,t)},_handleValue:function(e){0===this._n?this._emitValue(e):this._n--}},Ie=X("skip",Ne),Le=Y("skip",Ne),je={_init:function(e){var t=e.fn;this._fn=t},_free:function(){this._fn=null},_handleValue:function(e){var t=this._fn;null===this._fn||t(e)||(this._fn=null),null===this._fn&&this._emitValue(e)}},Be=X("skipWhile",je),qe=Y("skipWhile",je),Ue=function(e){return e},We={_init:function(e){var t=e.fn;this._fn=t,this._prev=s},_free:function(){this._fn=null,this._prev=null},_handleValue:function(e){var t=this._fn;this._prev!==s&&t(this._prev,e)||(this._prev=e,this._emitValue(e))}},$e=X("skipDuplicates",We),Ke=Y("skipDuplicates",We),ze=function(e,t){return e===t};function Ve(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ze;return new(e._ofSameType($e,Ke))(e,{fn:t})}var He={_init:function(e){var t=e.fn,n=e.seed;this._fn=t,this._prev=n},_free:function(){this._prev=null,this._fn=null},_handleValue:function(e){if(this._prev!==s){var t=this._fn;this._emitValue(t(this._prev,e))}this._prev=e}},Ge=X("diff",He),Je=Y("diff",He);function Xe(e,t){return[e,t]}var Ye=Y("scan",{_init:function(e){var t=e.fn,n=e.seed;this._fn=t,this._seed=n,n!==s&&this._emitValue(n)},_free:function(){this._fn=null,this._seed=null},_handleValue:function(e){var t=this._fn;null===this._currentEvent||this._currentEvent.type===u?this._emitValue(this._seed===s?e:t(this._seed,e)):this._emitValue(t(this._currentEvent.value,e))}}),Qe=X("flatten",{_init:function(e){var t=e.fn;this._fn=t},_free:function(){this._fn=null},_handleValue:function(e){for(var t=(0,this._fn)(e),n=0;n<t.length;n++)this._emitValue(t[n])}}),Ze=function(e){return e},et={},tt={_init:function(e){var t=this,n=e.wait;this._wait=Math.max(0,n),this._buff=[],this._$shiftBuff=function(){var e=t._buff.shift();e===et?t._emitEnd():t._emitValue(e)}},_free:function(){this._buff=null,this._$shiftBuff=null},_handleValue:function(e){this._activating?this._emitValue(e):(this._buff.push(e),setTimeout(this._$shiftBuff,this._wait))},_handleEnd:function(){this._activating?this._emitEnd():(this._buff.push(et),setTimeout(this._$shiftBuff,this._wait))}},nt=X("delay",tt),it=Y("delay",tt),rt=Date.now?function(){return Date.now()}:function(){return(new Date).getTime()},ot={_init:function(e){var t=this,n=e.wait,i=e.leading,r=e.trailing;this._wait=Math.max(0,n),this._leading=i,this._trailing=r,this._trailingValue=null,this._timeoutId=null,this._endLater=!1,this._lastCallTime=0,this._$trailingCall=function(){return t._trailingCall()}},_free:function(){this._trailingValue=null,this._$trailingCall=null},_handleValue:function(e){if(this._activating)this._emitValue(e);else{var t=rt();0!==this._lastCallTime||this._leading||(this._lastCallTime=t);var n=this._wait-(t-this._lastCallTime);n<=0?(this._cancelTrailing(),this._lastCallTime=t,this._emitValue(e)):this._trailing&&(this._cancelTrailing(),this._trailingValue=e,this._timeoutId=setTimeout(this._$trailingCall,n))}},_handleEnd:function(){this._activating?this._emitEnd():this._timeoutId?this._endLater=!0:this._emitEnd()},_cancelTrailing:function(){null!==this._timeoutId&&(clearTimeout(this._timeoutId),this._timeoutId=null)},_trailingCall:function(){this._emitValue(this._trailingValue),this._timeoutId=null,this._trailingValue=null,this._lastCallTime=this._leading?rt():0,this._endLater&&this._emitEnd()}},st=X("throttle",ot),at=Y("throttle",ot),ct={_init:function(e){var t=this,n=e.wait,i=e.immediate;this._wait=Math.max(0,n),this._immediate=i,this._lastAttempt=0,this._timeoutId=null,this._laterValue=null,this._endLater=!1,this._$later=function(){return t._later()}},_free:function(){this._laterValue=null,this._$later=null},_handleValue:function(e){this._activating?this._emitValue(e):(this._lastAttempt=rt(),this._immediate&&!this._timeoutId&&this._emitValue(e),this._timeoutId||(this._timeoutId=setTimeout(this._$later,this._wait)),this._immediate||(this._laterValue=e))},_handleEnd:function(){this._activating?this._emitEnd():this._timeoutId&&!this._immediate?this._endLater=!0:this._emitEnd()},_later:function(){var e=rt()-this._lastAttempt;if(e<this._wait&&e>=0)this._timeoutId=setTimeout(this._$later,this._wait-e);else{if(this._timeoutId=null,!this._immediate){var t=this._laterValue;this._laterValue=null,this._emitValue(t)}this._endLater&&this._emitEnd()}}},ut=X("debounce",ct),lt=Y("debounce",ct),ht={_init:function(e){var t=e.fn;this._fn=t},_free:function(){this._fn=null},_handleError:function(e){var t=this._fn;this._emitError(t(e))}},dt=X("mapErrors",ht),pt=Y("mapErrors",ht),ft=function(e){return e},gt={_init:function(e){var t=e.fn;this._fn=t},_free:function(){this._fn=null},_handleError:function(e){(0,this._fn)(e)&&this._emitError(e)}},mt=X("filterErrors",gt),yt=Y("filterErrors",gt),vt=function(e){return e},Ct={_handleValue:function(){}},St=X("ignoreValues",Ct),bt=Y("ignoreValues",Ct),Et={_handleError:function(){}},wt=X("ignoreErrors",Et),Dt=Y("ignoreErrors",Et),xt={_handleEnd:function(){}},_t=X("ignoreEnd",xt),Tt=Y("ignoreEnd",xt),kt={_init:function(e){var t=e.fn;this._fn=t},_free:function(){this._fn=null},_handleEnd:function(){var e=this._fn;this._emitValue(e()),this._emitEnd()}},Ft=X("beforeEnd",kt),At=Y("beforeEnd",kt),Rt={_init:function(e){var t=e.min,n=e.max;this._max=n,this._min=t,this._buff=[]},_free:function(){this._buff=null},_handleValue:function(e){this._buff=function(e,t,n){var i=Math.min(n,e.length+1),r=e.length-i+1,o=new Array(i),s=void 0;for(s=r;s<i;s++)o[s-r]=e[s];return o[i-1]=t,o}(this._buff,e,this._max),this._buff.length>=this._min&&this._emitValue(this._buff)}},Ot=X("slidingWindow",Rt),Pt=Y("slidingWindow",Rt),Mt={_init:function(e){var t=e.fn,n=e.flushOnEnd;this._fn=t,this._flushOnEnd=n,this._buff=[]},_free:function(){this._buff=null},_flush:function(){null!==this._buff&&0!==this._buff.length&&(this._emitValue(this._buff),this._buff=[])},_handleValue:function(e){this._buff.push(e),(0,this._fn)(e)||this._flush()},_handleEnd:function(){this._flushOnEnd&&this._flush(),this._emitEnd()}},Nt=X("bufferWhile",Mt),It=Y("bufferWhile",Mt),Lt=function(e){return e},jt={_init:function(e){var t=e.count,n=e.flushOnEnd;this._count=t,this._flushOnEnd=n,this._buff=[]},_free:function(){this._buff=null},_flush:function(){null!==this._buff&&0!==this._buff.length&&(this._emitValue(this._buff),this._buff=[])},_handleValue:function(e){this._buff.push(e),this._buff.length>=this._count&&this._flush()},_handleEnd:function(){this._flushOnEnd&&this._flush(),this._emitEnd()}},Bt=X("bufferWithCount",jt),qt=Y("bufferWithCount",jt),Ut={_init:function(e){var t=this,n=e.wait,i=e.count,r=e.flushOnEnd;this._wait=n,this._count=i,this._flushOnEnd=r,this._intervalId=null,this._$onTick=function(){return t._flush()},this._buff=[]},_free:function(){this._$onTick=null,this._buff=null},_flush:function(){null!==this._buff&&(this._emitValue(this._buff),this._buff=[])},_handleValue:function(e){this._buff.push(e),this._buff.length>=this._count&&(clearInterval(this._intervalId),this._flush(),this._intervalId=setInterval(this._$onTick,this._wait))},_handleEnd:function(){this._flushOnEnd&&0!==this._buff.length&&this._flush(),this._emitEnd()},_onActivation:function(){this._intervalId=setInterval(this._$onTick,this._wait),this._source.onAny(this._$handleAny)},_onDeactivation:function(){null!==this._intervalId&&(clearInterval(this._intervalId),this._intervalId=null),this._source.offAny(this._$handleAny)}},Wt=X("bufferWithTimeOrCount",Ut),$t=Y("bufferWithTimeOrCount",Ut),Kt={_init:function(e){var t,n=e.transducer;this._xform=n((t=this,{"@@transducer/step":function(e,n){return t._emitValue(n),null},"@@transducer/result":function(){return t._emitEnd(),null}}))},_free:function(){this._xform=null},_handleValue:function(e){null!==this._xform["@@transducer/step"](null,e)&&this._xform["@@transducer/result"](null)},_handleEnd:function(){this._xform["@@transducer/result"](null)}},zt=X("transduce",Kt),Vt=Y("transduce",Kt),Ht={_init:function(e){var t=e.fn;this._handler=t,this._emitter=P(this)},_free:function(){this._handler=null,this._emitter=null},_handleAny:function(e){this._handler(this._emitter,e)}},Gt=X("withHandler",Ht),Jt=Y("withHandler",Ht),Xt=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function Yt(e,t){var n=this;S.call(this),this._buffers=m(e,(function(e){return Xt(e)?f(e):[]})),this._sources=m(e,(function(e){return Xt(e)?w():e})),this._combinator=t?q(t,this._sources.length):function(e){return e},this._aliveCount=0,this._$handlers=[];for(var i=function(e){n._$handlers.push((function(t){return n._handleAny(e,t)}))},r=0;r<this._sources.length;r++)i(r)}function Qt(e,t){return 0===e.length?w():new Yt(e,t)}o(Yt,S,{_name:"zip",_onActivation:function(){for(;this._isFull();)this._emit();var e=this._sources.length;this._aliveCount=e;for(var t=0;t<e&&this._active;t++)this._sources[t].onAny(this._$handlers[t])},_onDeactivation:function(){for(var e=0;e<this._sources.length;e++)this._sources[e].offAny(this._$handlers[e])},_emit:function(){for(var e=new Array(this._buffers.length),t=0;t<this._buffers.length;t++)e[t]=this._buffers[t].shift();var n=this._combinator;this._emitValue(n(e))},_isFull:function(){for(var e=0;e<this._buffers.length;e++)if(0===this._buffers[e].length)return!1;return!0},_handleAny:function(e,t){t.type===c&&(this._buffers[e].push(t.value),this._isFull()&&this._emit()),t.type===u&&this._emitError(t.value),t.type===a&&(this._aliveCount--,0===this._aliveCount&&this._emitEnd())},_clear:function(){S.prototype._clear.call(this),this._sources=null,this._buffers=null,this._combinator=null,this._$handlers=null}});var Zt=function(e){return e};function en(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.queueLim,i=void 0===n?0:n,r=t.concurLim,o=void 0===r?-1:r,s=t.drop,a=void 0===s?"new":s;S.call(this),this._queueLim=i<0?-1:i,this._concurLim=o<0?-1:o,this._drop=a,this._queue=[],this._curSources=[],this._$handleSubAny=function(t){return e._handleSubAny(t)},this._$endHandlers=[],this._currentlyAdding=null,0===this._concurLim&&this._emitEnd()}function tn(e){en.call(this),this._addAll(e),this._initialised=!0}function nn(e){return 0===e.length?w():new tn(e)}function rn(e){var t=this;S.call(this),this._generator=e,this._source=null,this._inLoop=!1,this._iteration=0,this._$handleAny=function(e){return t._handleAny(e)}}o(en,S,{_name:"abstractPool",_add:function(e,t){t=t||Zt,-1===this._concurLim||this._curSources.length<this._concurLim?this._addToCur(t(e)):-1===this._queueLim||this._queue.length<this._queueLim?this._addToQueue(t(e)):"old"===this._drop&&(this._removeOldest(),this._add(e,t))},_addAll:function(e){var t=this;!function(e,n){var i,r=e.length,o=void 0;for(o=0;o<r;o++)i=e[o],t._add(i)}(e)},_remove:function(e){-1===this._removeCur(e)&&this._removeQueue(e)},_addToQueue:function(e){this._queue=h(this._queue,[e])},_addToCur:function(e){if(this._active){if(!e._alive)return e._currentEvent&&this._emit(e._currentEvent.type,e._currentEvent.value),void(this._active&&(0!==this._queue.length?this._pullQueue():0===this._curSources.length&&this._onEmpty()));this._currentlyAdding=e,e.onAny(this._$handleSubAny),this._currentlyAdding=null,e._alive?(this._curSources=h(this._curSources,[e]),this._active&&this._subToEnd(e)):0!==this._queue.length?this._pullQueue():0===this._curSources.length&&this._onEmpty()}else this._curSources=h(this._curSources,[e])},_subToEnd:function(e){var t=this,n=function(){return t._removeCur(e)};this._$endHandlers.push({obs:e,handler:n}),e.onEnd(n)},_subscribe:function(e){e.onAny(this._$handleSubAny),this._active&&this._subToEnd(e)},_unsubscribe:function(e){e.offAny(this._$handleSubAny);var t=p(this._$endHandlers,(function(t){return t.obs===e}));-1!==t&&(e.offEnd(this._$endHandlers[t].handler),this._$endHandlers.splice(t,1))},_handleSubAny:function(e){e.type===c?this._emitValue(e.value):e.type===u&&this._emitError(e.value)},_removeQueue:function(e){var t=d(this._queue,e);return this._queue=g(this._queue,t),t},_removeCur:function(e){this._active&&this._unsubscribe(e);var t=d(this._curSources,e);return this._curSources=g(this._curSources,t),-1!==t&&(0!==this._queue.length?this._pullQueue():0===this._curSources.length&&this._onEmpty()),t},_removeOldest:function(){this._removeCur(this._curSources[0])},_pullQueue:function(){0!==this._queue.length&&(this._queue=f(this._queue),this._addToCur(this._queue.shift()))},_onActivation:function(){for(var e=0,t=this._curSources;e<t.length&&this._active;e++)this._subscribe(t[e])},_onDeactivation:function(){for(var e=0,t=this._curSources;e<t.length;e++)this._unsubscribe(t[e]);null!==this._currentlyAdding&&this._unsubscribe(this._currentlyAdding)},_isEmpty:function(){return 0===this._curSources.length},_onEmpty:function(){},_clear:function(){S.prototype._clear.call(this),this._queue=null,this._curSources=null,this._$handleSubAny=null,this._$endHandlers=null}}),o(tn,en,{_name:"merge",_onEmpty:function(){this._initialised&&this._emitEnd()}}),o(rn,S,{_name:"repeat",_handleAny:function(e){e.type===a?(this._source=null,this._getSource()):this._emit(e.type,e.value)},_getSource:function(){if(!this._inLoop){this._inLoop=!0;for(var e=this._generator;null===this._source&&this._alive&&this._active;)this._source=e(this._iteration++),this._source?this._source.onAny(this._$handleAny):this._emitEnd();this._inLoop=!1}},_onActivation:function(){this._source?this._source.onAny(this._$handleAny):this._getSource()},_onDeactivation:function(){this._source&&this._source.offAny(this._$handleAny)},_clear:function(){S.prototype._clear.call(this),this._generator=null,this._source=null,this._$handleAny=null}});var on=function(e){return new rn(e)};function sn(e){return on((function(t){return e.length>t&&e[t]})).setName("concat")}function an(){en.call(this)}function cn(e,t,n){var i=this;en.call(this,n),this._source=e,this._fn=t,this._mainEnded=!1,this._lastCurrent=null,this._$handleMain=function(e){return i._handleMain(e)}}function un(e,t){cn.call(this,e,t)}function ln(e,t){return function(n,i,r){var o=this;e.call(this),this._primary=n,this._secondary=i,this._name=n._name+"."+t,this._lastSecondary=s,this._$handleSecondaryAny=function(e){return o._handleSecondaryAny(e)},this._$handlePrimaryAny=function(e){return o._handlePrimaryAny(e)},this._init(r)}}function hn(e){return{_init:function(){},_free:function(){},_handlePrimaryValue:function(e){this._emitValue(e)},_handlePrimaryError:function(e){this._emitError(e)},_handlePrimaryEnd:function(){this._emitEnd()},_handleSecondaryValue:function(e){this._lastSecondary=e},_handleSecondaryError:function(e){this._emitError(e)},_handleSecondaryEnd:function(){},_handlePrimaryAny:function(e){switch(e.type){case c:return this._handlePrimaryValue(e.value);case u:return this._handlePrimaryError(e.value);case a:return this._handlePrimaryEnd(e.value)}},_handleSecondaryAny:function(e){switch(e.type){case c:return this._handleSecondaryValue(e.value);case u:return this._handleSecondaryError(e.value);case a:this._handleSecondaryEnd(e.value),this._removeSecondary()}},_removeSecondary:function(){null!==this._secondary&&(this._secondary.offAny(this._$handleSecondaryAny),this._$handleSecondaryAny=null,this._secondary=null)},_onActivation:function(){null!==this._secondary&&this._secondary.onAny(this._$handleSecondaryAny),this._active&&this._primary.onAny(this._$handlePrimaryAny)},_onDeactivation:function(){null!==this._secondary&&this._secondary.offAny(this._$handleSecondaryAny),this._primary.offAny(this._$handlePrimaryAny)},_clear:function(){e.prototype._clear.call(this),this._primary=null,this._secondary=null,this._lastSecondary=null,this._$handleSecondaryAny=null,this._$handlePrimaryAny=null,this._free()}}}function dn(e,t){var n=ln(S,e);return o(n,S,hn(S),t),n}function pn(e,t){var n=ln(b,e);return o(n,b,hn(b),t),n}o(an,en,{_name:"pool",plug:function(e){return this._add(e),this},unplug:function(e){return this._remove(e),this}}),o(cn,en,{_onActivation:function(){en.prototype._onActivation.call(this),this._active&&this._source.onAny(this._$handleMain)},_onDeactivation:function(){en.prototype._onDeactivation.call(this),this._source.offAny(this._$handleMain),this._hadNoEvSinceDeact=!0},_handleMain:function(e){e.type===c&&(this._activating&&this._hadNoEvSinceDeact&&this._lastCurrent===e.value||this._add(e.value,this._fn),this._lastCurrent=e.value,this._hadNoEvSinceDeact=!1),e.type===u&&this._emitError(e.value),e.type===a&&(this._isEmpty()?this._emitEnd():this._mainEnded=!0)},_onEmpty:function(){this._mainEnded&&this._emitEnd()},_clear:function(){en.prototype._clear.call(this),this._source=null,this._lastCurrent=null,this._$handleMain=null}}),o(un,cn,{_handleMain:function(e){e.type===u&&(this._activating&&this._hadNoEvSinceDeact&&this._lastCurrent===e.value||this._add(e.value,this._fn),this._lastCurrent=e.value,this._hadNoEvSinceDeact=!1),e.type===c&&this._emitValue(e.value),e.type===a&&(this._isEmpty()?this._emitEnd():this._mainEnded=!0)}});var fn={_handlePrimaryValue:function(e){this._lastSecondary!==s&&this._lastSecondary&&this._emitValue(e)},_handleSecondaryEnd:function(){this._lastSecondary!==s&&this._lastSecondary||this._emitEnd()}},gn=dn("filterBy",fn),mn=pn("filterBy",fn),yn=function(e,t){return t},vn={_handlePrimaryValue:function(e){this._lastSecondary!==s&&this._emitValue(e)},_handleSecondaryEnd:function(){this._lastSecondary===s&&this._emitEnd()}},Cn=dn("skipUntilBy",vn),Sn=pn("skipUntilBy",vn),bn={_handleSecondaryValue:function(){this._emitEnd()}},En=dn("takeUntilBy",bn),wn=pn("takeUntilBy",bn),Dn={_init:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.flushOnEnd,n=void 0===t||t;this._buff=[],this._flushOnEnd=n},_free:function(){this._buff=null},_flush:function(){null!==this._buff&&(this._emitValue(this._buff),this._buff=[])},_handlePrimaryEnd:function(){this._flushOnEnd&&this._flush(),this._emitEnd()},_onActivation:function(){this._primary.onAny(this._$handlePrimaryAny),this._alive&&null!==this._secondary&&this._secondary.onAny(this._$handleSecondaryAny)},_handlePrimaryValue:function(e){this._buff.push(e)},_handleSecondaryValue:function(){this._flush()},_handleSecondaryEnd:function(){this._flushOnEnd||this._emitEnd()}},xn=dn("bufferBy",Dn),_n=pn("bufferBy",Dn),Tn={_init:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.flushOnEnd,n=void 0===t||t,i=e.flushOnChange,r=void 0!==i&&i;this._buff=[],this._flushOnEnd=n,this._flushOnChange=r},_free:function(){this._buff=null},_flush:function(){null!==this._buff&&(this._emitValue(this._buff),this._buff=[])},_handlePrimaryEnd:function(){this._flushOnEnd&&this._flush(),this._emitEnd()},_handlePrimaryValue:function(e){this._buff.push(e),this._lastSecondary===s||this._lastSecondary||this._flush()},_handleSecondaryEnd:function(){this._flushOnEnd||this._lastSecondary!==s&&!this._lastSecondary||this._emitEnd()},_handleSecondaryValue:function(e){this._flushOnChange&&!e&&this._flush(),this._lastSecondary=e}},kn=dn("bufferWhileBy",Tn),Fn=pn("bufferWhileBy",Tn),An=function(){return!1},Rn=function(){return!0},On={_init:function(e){var t=e.fn;this._fn=t},_free:function(){this._fn=null},_handleValue:function(e){var t=(0,this._fn)(e);t.convert?this._emitError(t.error):this._emitValue(e)}},Pn=X("valuesToErrors",On),Mn=Y("valuesToErrors",On),Nn=function(e){return{convert:!0,error:e}},In={_init:function(e){var t=e.fn;this._fn=t},_free:function(){this._fn=null},_handleError:function(e){var t=(0,this._fn)(e);t.convert?this._emitValue(t.value):this._emitError(e)}},Ln=X("errorsToValues",In),jn=Y("errorsToValues",In),Bn=function(e){return{convert:!0,value:e}},qn={_handleError:function(e){this._emitError(e),this._emitEnd()}},Un=X("endOnError",qn),Wn=Y("endOnError",qn);C.prototype.toProperty=function(e){return Z(this,e)},C.prototype.changes=function(){return new ee(this)},C.prototype.toPromise=function(e){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ne(),n=null;return new t((function(t,i){e.onAny((function(e){e.type===a&&null!==n?((n.type===c?t:i)(n.value),n=null):n=e}))}))}(this,e)},C.prototype.toESObservable=ae,C.prototype[re]=ae,C.prototype.map=function(e){return ye(this,e)},C.prototype.filter=function(e){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:be;return new(e._ofSameType(Ce,Se))(e,{fn:t})}(this,e)},C.prototype.take=function(e){return function(e,t){return new(e._ofSameType(we,De))(e,{n:t})}(this,e)},C.prototype.takeErrors=function(e){return function(e,t){return new(e._ofSameType(_e,Te))(e,{n:t})}(this,e)},C.prototype.takeWhile=function(e){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Re;return new(e._ofSameType(Fe,Ae))(e,{fn:t})}(this,e)},C.prototype.last=function(){return new((e=this)._ofSameType(Pe,Me))(e);var e},C.prototype.skip=function(e){return function(e,t){return new(e._ofSameType(Ie,Le))(e,{n:t})}(this,e)},C.prototype.skipWhile=function(e){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ue;return new(e._ofSameType(Be,qe))(e,{fn:t})}(this,e)},C.prototype.skipDuplicates=function(e){return Ve(this,e)},C.prototype.diff=function(e,t){return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s;return new(e._ofSameType(Ge,Je))(e,{fn:t||Xe,seed:n})}(this,e,t)},C.prototype.scan=function(e,t){return function(e,t){return new Ye(e,{fn:t,seed:arguments.length>2&&void 0!==arguments[2]?arguments[2]:s})}(this,e,t)},C.prototype.flatten=function(e){return function(e){return new Qe(e,{fn:arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ze})}(this,e)},C.prototype.delay=function(e){return function(e,t){return new(e._ofSameType(nt,it))(e,{wait:t})}(this,e)},C.prototype.throttle=function(e,t){return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.leading,r=void 0===i||i,o=n.trailing,s=void 0===o||o;return new(e._ofSameType(st,at))(e,{wait:t,leading:r,trailing:s})}(this,e,t)},C.prototype.debounce=function(e,t){return function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).immediate,i=void 0!==n&&n;return new(e._ofSameType(ut,lt))(e,{wait:t,immediate:i})}(this,e,t)},C.prototype.mapErrors=function(e){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ft;return new(e._ofSameType(dt,pt))(e,{fn:t})}(this,e)},C.prototype.filterErrors=function(e){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:vt;return new(e._ofSameType(mt,yt))(e,{fn:t})}(this,e)},C.prototype.ignoreValues=function(){return new((e=this)._ofSameType(St,bt))(e);var e},C.prototype.ignoreErrors=function(){return new((e=this)._ofSameType(wt,Dt))(e);var e},C.prototype.ignoreEnd=function(){return new((e=this)._ofSameType(_t,Tt))(e);var e},C.prototype.beforeEnd=function(e){return function(e,t){return new(e._ofSameType(Ft,At))(e,{fn:t})}(this,e)},C.prototype.slidingWindow=function(e,t){return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return new(e._ofSameType(Ot,Pt))(e,{min:n,max:t})}(this,e,t)},C.prototype.bufferWhile=function(e,t){return function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).flushOnEnd,i=void 0===n||n;return new(e._ofSameType(Nt,It))(e,{fn:t||Lt,flushOnEnd:i})}(this,e,t)},C.prototype.bufferWithCount=function(e,t){return function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).flushOnEnd,i=void 0===n||n;return new(e._ofSameType(Bt,qt))(e,{count:t,flushOnEnd:i})}(this,e,t)},C.prototype.bufferWithTimeOrCount=function(e,t,n){return function(e,t,n){var i=(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).flushOnEnd,r=void 0===i||i;return new(e._ofSameType(Wt,$t))(e,{wait:t,count:n,flushOnEnd:r})}(this,e,t,n)},C.prototype.transduce=function(e){return function(e,t){return new(e._ofSameType(zt,Vt))(e,{transducer:t})}(this,e)},C.prototype.withHandler=function(e){return function(e,t){return new(e._ofSameType(Gt,Jt))(e,{fn:t})}(this,e)},C.prototype.thru=function(e){return e(this)},C.prototype.combine=function(e,t){return le([this,e],t)},C.prototype.zip=function(e,t){return Qt([this,e],t)},C.prototype.merge=function(e){return nn([this,e])},C.prototype.concat=function(e){return sn([this,e])};var $n=function(){return new an};C.prototype.flatMap=function(e){return new cn(this,e).setName(this,"flatMap")},C.prototype.flatMapLatest=function(e){return new cn(this,e,{concurLim:1,drop:"old"}).setName(this,"flatMapLatest")},C.prototype.flatMapFirst=function(e){return new cn(this,e,{concurLim:1}).setName(this,"flatMapFirst")},C.prototype.flatMapConcat=function(e){return new cn(this,e,{queueLim:-1,concurLim:1}).setName(this,"flatMapConcat")},C.prototype.flatMapConcurLimit=function(e,t){return new cn(this,e,{queueLim:-1,concurLim:t}).setName(this,"flatMapConcurLimit")},C.prototype.flatMapErrors=function(e){return new un(this,e).setName(this,"flatMapErrors")},C.prototype.filterBy=function(e){return n=e,new((t=this)._ofSameType(gn,mn))(t,n);var t,n},C.prototype.sampledBy=function(e,t){return function(e,t,n){return le([t],[e],n?function(e,t){return n(t,e)}:yn).setName(e,"sampledBy")}(this,e,t)},C.prototype.skipUntilBy=function(e){return n=e,new((t=this)._ofSameType(Cn,Sn))(t,n);var t,n},C.prototype.takeUntilBy=function(e){return n=e,new((t=this)._ofSameType(En,wn))(t,n);var t,n},C.prototype.bufferBy=function(e,t){return function(e,t,n){return new(e._ofSameType(xn,_n))(e,t,n)}(this,e,t)},C.prototype.bufferWhileBy=function(e,t){return function(e,t,n){return new(e._ofSameType(kn,Fn))(e,t,n)}(this,e,t)};var Kn=!0;function zn(){Kn=!1}function Vn(e){Kn&&console&&"function"==typeof console.warn&&console.warn(e,"\nHere is an Error object for you containing the call stack:",new Error)}C.prototype.awaiting=function(e){return Vn("You are using deprecated .awaiting() method, see https://github.com/kefirjs/kefir/issues/145"),function(e,t){var n=nn([ye(e,Rn),ye(t,An)]);return(n=Z(n=Ve(n),An)).setName(e,"awaiting")}(this,e)},C.prototype.valuesToErrors=function(e){return Vn("You are using deprecated .valuesToErrors() method, see https://github.com/kefirjs/kefir/issues/149"),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Nn;return new(e._ofSameType(Pn,Mn))(e,{fn:t})}(this,e)},C.prototype.errorsToValues=function(e){return Vn("You are using deprecated .errorsToValues() method, see https://github.com/kefirjs/kefir/issues/149"),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Bn;return new(e._ofSameType(Ln,jn))(e,{fn:t})}(this,e)},C.prototype.endOnError=function(){return Vn("You are using deprecated .endOnError() method, see https://github.com/kefirjs/kefir/issues/150"),new((e=this)._ofSameType(Un,Wn))(e);var e};var Hn={Observable:C,Stream:S,Property:b,never:w,later:_,interval:k,sequentially:A,fromPoll:O,withInterval:N,fromCallback:j,fromNodeCallback:B,fromEvents:$,stream:L,constant:z,constantError:H,fromPromise:te,fromESObservable:oe,combine:le,zip:Qt,merge:nn,concat:sn,Pool:an,pool:$n,repeat:on,staticLand:de};Hn.Kefir=Hn;const Gn=Hn},7105:(e,t,n)=>{"use strict";const i=n(8006),r=Symbol("max"),o=Symbol("length"),s=Symbol("lengthCalculator"),a=Symbol("allowStale"),c=Symbol("maxAge"),u=Symbol("dispose"),l=Symbol("noDisposeOnSet"),h=Symbol("lruList"),d=Symbol("cache"),p=Symbol("updateAgeOnGet"),f=()=>1,g=(e,t,n)=>{const i=e[d].get(t);if(i){const t=i.value;if(m(e,t)){if(v(e,i),!e[a])return}else n&&(e[p]&&(i.value.now=Date.now()),e[h].unshiftNode(i));return t.value}},m=(e,t)=>{if(!t||!t.maxAge&&!e[c])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[c]&&n>e[c]},y=e=>{if(e[o]>e[r])for(let t=e[h].tail;e[o]>e[r]&&null!==t;){const n=t.prev;v(e,t),t=n}},v=(e,t)=>{if(t){const n=t.value;e[u]&&e[u](n.key,n.value),e[o]-=n.length,e[d].delete(n.key),e[h].removeNode(t)}};class C{constructor(e,t,n,i,r){this.key=e,this.value=t,this.length=n,this.now=i,this.maxAge=r||0}}const S=(e,t,n,i)=>{let r=n.value;m(e,r)&&(v(e,n),e[a]||(r=void 0)),r&&t.call(i,r.value,r.key,e)};e.exports=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[r]=e.max||1/0;const t=e.length||f;if(this[s]="function"!=typeof t?f:t,this[a]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[c]=e.maxAge||0,this[u]=e.dispose,this[l]=e.noDisposeOnSet||!1,this[p]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[r]=e||1/0,y(this)}get max(){return this[r]}set allowStale(e){this[a]=!!e}get allowStale(){return this[a]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[c]=e,y(this)}get maxAge(){return this[c]}set lengthCalculator(e){"function"!=typeof e&&(e=f),e!==this[s]&&(this[s]=e,this[o]=0,this[h].forEach((e=>{e.length=this[s](e.value,e.key),this[o]+=e.length}))),y(this)}get lengthCalculator(){return this[s]}get length(){return this[o]}get itemCount(){return this[h].length}rforEach(e,t){t=t||this;for(let n=this[h].tail;null!==n;){const i=n.prev;S(this,e,n,t),n=i}}forEach(e,t){t=t||this;for(let n=this[h].head;null!==n;){const i=n.next;S(this,e,n,t),n=i}}keys(){return this[h].toArray().map((e=>e.key))}values(){return this[h].toArray().map((e=>e.value))}reset(){this[u]&&this[h]&&this[h].length&&this[h].forEach((e=>this[u](e.key,e.value))),this[d]=new Map,this[h]=new i,this[o]=0}dump(){return this[h].map((e=>!m(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[h]}set(e,t,n){if((n=n||this[c])&&"number"!=typeof n)throw new TypeError("maxAge must be a number");const i=n?Date.now():0,a=this[s](t,e);if(this[d].has(e)){if(a>this[r])return v(this,this[d].get(e)),!1;const s=this[d].get(e).value;return this[u]&&(this[l]||this[u](e,s.value)),s.now=i,s.maxAge=n,s.value=t,this[o]+=a-s.length,s.length=a,this.get(e),y(this),!0}const p=new C(e,t,a,i,n);return p.length>this[r]?(this[u]&&this[u](e,t),!1):(this[o]+=p.length,this[h].unshift(p),this[d].set(e,this[h].head),y(this),!0)}has(e){if(!this[d].has(e))return!1;const t=this[d].get(e).value;return!m(this,t)}get(e){return g(this,e,!0)}peek(e){return g(this,e,!1)}pop(){const e=this[h].tail;return e?(v(this,e),e.value):null}del(e){v(this,this[d].get(e))}load(e){this.reset();const t=Date.now();for(let n=e.length-1;n>=0;n--){const i=e[n],r=i.e||0;if(0===r)this.set(i.k,i.v);else{const e=r-t;e>0&&this.set(i.k,i.v,e)}}}prune(){this[d].forEach(((e,t)=>g(this,t,!1)))}}},7339:(e,t,n)=>{e.exports=d,d.Minimatch=p;var i=function(){try{return n(1017)}catch(e){}}()||{sep:"/"};d.sep=i.sep;var r=d.GLOBSTAR=p.GLOBSTAR={},o=n(402),s={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},a="[^/]",c="[^/]*?",u="().*{}+?[]^$\\!".split("").reduce((function(e,t){return e[t]=!0,e}),{}),l=/\/+/;function h(e,t){t=t||{};var n={};return Object.keys(e).forEach((function(t){n[t]=e[t]})),Object.keys(t).forEach((function(e){n[e]=t[e]})),n}function d(e,t,n){return g(t),n||(n={}),!(!n.nocomment&&"#"===t.charAt(0))&&new p(t,n).match(e)}function p(e,t){if(!(this instanceof p))return new p(e,t);g(e),t||(t={}),e=e.trim(),t.allowWindowsEscape||"/"===i.sep||(e=e.split(i.sep).join("/")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.make()}function f(e,t){return t||(t=this instanceof p?this.options:{}),e=void 0===e?this.pattern:e,g(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:o(e)}d.filter=function(e,t){return t=t||{},function(n,i,r){return d(n,e,t)}},d.defaults=function(e){if(!e||"object"!=typeof e||!Object.keys(e).length)return d;var t=d,n=function(n,i,r){return t(n,i,h(e,r))};return(n.Minimatch=function(n,i){return new t.Minimatch(n,h(e,i))}).defaults=function(n){return t.defaults(h(e,n)).Minimatch},n.filter=function(n,i){return t.filter(n,h(e,i))},n.defaults=function(n){return t.defaults(h(e,n))},n.makeRe=function(n,i){return t.makeRe(n,h(e,i))},n.braceExpand=function(n,i){return t.braceExpand(n,h(e,i))},n.match=function(n,i,r){return t.match(n,i,h(e,r))},n},p.defaults=function(e){return d.defaults(e).Minimatch},p.prototype.debug=function(){},p.prototype.make=function(){var e=this.pattern,t=this.options;if(t.nocomment||"#"!==e.charAt(0))if(e){this.parseNegate();var n=this.globSet=this.braceExpand();t.debug&&(this.debug=function(){console.error.apply(console,arguments)}),this.debug(this.pattern,n),n=this.globParts=n.map((function(e){return e.split(l)})),this.debug(this.pattern,n),n=n.map((function(e,t,n){return e.map(this.parse,this)}),this),this.debug(this.pattern,n),n=n.filter((function(e){return-1===e.indexOf(!1)})),this.debug(this.pattern,n),this.set=n}else this.empty=!0;else this.comment=!0},p.prototype.parseNegate=function(){var e=this.pattern,t=!1,n=0;if(!this.options.nonegate){for(var i=0,r=e.length;i<r&&"!"===e.charAt(i);i++)t=!t,n++;n&&(this.pattern=e.substr(n)),this.negate=t}},d.braceExpand=function(e,t){return f(e,t)},p.prototype.braceExpand=f;var g=function(e){if("string"!=typeof e)throw new TypeError("invalid pattern");if(e.length>65536)throw new TypeError("pattern is too long")};p.prototype.parse=function(e,t){g(e);var n=this.options;if("**"===e){if(!n.noglobstar)return r;e="*"}if(""===e)return"";var i,o="",l=!!n.nocase,h=!1,d=[],p=[],f=!1,y=-1,v=-1,C="."===e.charAt(0)?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",S=this;function b(){if(i){switch(i){case"*":o+=c,l=!0;break;case"?":o+=a,l=!0;break;default:o+="\\"+i}S.debug("clearStateChar %j %j",i,o),i=!1}}for(var E,w=0,D=e.length;w<D&&(E=e.charAt(w));w++)if(this.debug("%s\t%s %s %j",e,w,o,E),h&&u[E])o+="\\"+E,h=!1;else switch(E){case"/":return!1;case"\\":b(),h=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s\t%s %s %j <-- stateChar",e,w,o,E),f){this.debug(" in class"),"!"===E&&w===v+1&&(E="^"),o+=E;continue}S.debug("call clearStateChar %j",i),b(),i=E,n.noext&&b();continue;case"(":if(f){o+="(";continue}if(!i){o+="\\(";continue}d.push({type:i,start:w-1,reStart:o.length,open:s[i].open,close:s[i].close}),o+="!"===i?"(?:(?!(?:":"(?:",this.debug("plType %j %j",i,o),i=!1;continue;case")":if(f||!d.length){o+="\\)";continue}b(),l=!0;var x=d.pop();o+=x.close,"!"===x.type&&p.push(x),x.reEnd=o.length;continue;case"|":if(f||!d.length||h){o+="\\|",h=!1;continue}b(),o+="|";continue;case"[":if(b(),f){o+="\\"+E;continue}f=!0,v=w,y=o.length,o+=E;continue;case"]":if(w===v+1||!f){o+="\\"+E,h=!1;continue}var _=e.substring(v+1,w);try{RegExp("["+_+"]")}catch(e){var T=this.parse(_,m);o=o.substr(0,y)+"\\["+T[0]+"\\]",l=l||T[1],f=!1;continue}l=!0,f=!1,o+=E;continue;default:b(),h?h=!1:!u[E]||"^"===E&&f||(o+="\\"),o+=E}for(f&&(_=e.substr(v+1),T=this.parse(_,m),o=o.substr(0,y)+"\\["+T[0],l=l||T[1]),x=d.pop();x;x=d.pop()){var k=o.slice(x.reStart+x.open.length);this.debug("setting tail",o,x),k=k.replace(/((?:\\{2}){0,64})(\\?)\|/g,(function(e,t,n){return n||(n="\\"),t+t+n+"|"})),this.debug("tail=%j\n %s",k,k,x,o);var F="*"===x.type?c:"?"===x.type?a:"\\"+x.type;l=!0,o=o.slice(0,x.reStart)+F+"\\("+k}b(),h&&(o+="\\\\");var A=!1;switch(o.charAt(0)){case"[":case".":case"(":A=!0}for(var R=p.length-1;R>-1;R--){var O=p[R],P=o.slice(0,O.reStart),M=o.slice(O.reStart,O.reEnd-8),N=o.slice(O.reEnd-8,O.reEnd),I=o.slice(O.reEnd);N+=I;var L=P.split("(").length-1,j=I;for(w=0;w<L;w++)j=j.replace(/\)[+*?]?/,"");var B="";""===(I=j)&&t!==m&&(B="$"),o=P+M+I+B+N}if(""!==o&&l&&(o="(?=.)"+o),A&&(o=C+o),t===m)return[o,l];if(!l)return e.replace(/\\(.)/g,"$1");var q=n.nocase?"i":"";try{var U=new RegExp("^"+o+"$",q)}catch(e){return new RegExp("$.")}return U._glob=e,U._src=o,U};var m={};d.makeRe=function(e,t){return new p(e,t||{}).makeRe()},p.prototype.makeRe=function(){if(this.regexp||!1===this.regexp)return this.regexp;var e=this.set;if(!e.length)return this.regexp=!1,this.regexp;var t=this.options,n=t.noglobstar?c:t.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",i=t.nocase?"i":"",o=e.map((function(e){return e.map((function(e){return e===r?n:"string"==typeof e?e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):e._src})).join("\\/")})).join("|");o="^(?:"+o+")$",this.negate&&(o="^(?!"+o+").*$");try{this.regexp=new RegExp(o,i)}catch(e){this.regexp=!1}return this.regexp},d.match=function(e,t,n){var i=new p(t,n=n||{});return e=e.filter((function(e){return i.match(e)})),i.options.nonull&&!e.length&&e.push(t),e},p.prototype.match=function(e,t){if(void 0===t&&(t=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return""===e;if("/"===e&&t)return!0;var n=this.options;"/"!==i.sep&&(e=e.split(i.sep).join("/")),e=e.split(l),this.debug(this.pattern,"split",e);var r,o,s=this.set;for(this.debug(this.pattern,"set",s),o=e.length-1;o>=0&&!(r=e[o]);o--);for(o=0;o<s.length;o++){var a=s[o],c=e;if(n.matchBase&&1===a.length&&(c=[r]),this.matchOne(c,a,t))return!!n.flipNegate||!this.negate}return!n.flipNegate&&this.negate},p.prototype.matchOne=function(e,t,n){var i=this.options;this.debug("matchOne",{this:this,file:e,pattern:t}),this.debug("matchOne",e.length,t.length);for(var o=0,s=0,a=e.length,c=t.length;o<a&&s<c;o++,s++){this.debug("matchOne loop");var u,l=t[s],h=e[o];if(this.debug(t,l,h),!1===l)return!1;if(l===r){this.debug("GLOBSTAR",[t,l,h]);var d=o,p=s+1;if(p===c){for(this.debug("** at the end");o<a;o++)if("."===e[o]||".."===e[o]||!i.dot&&"."===e[o].charAt(0))return!1;return!0}for(;d<a;){var f=e[d];if(this.debug("\nglobstar while",e,d,t,p,f),this.matchOne(e.slice(d),t.slice(p),n))return this.debug("globstar found match!",d,a,f),!0;if("."===f||".."===f||!i.dot&&"."===f.charAt(0)){this.debug("dot detected!",e,d,t,p);break}this.debug("globstar swallow a segment, and continue"),d++}return!(!n||(this.debug("\n>>> no match, partial?",e,d,t,p),d!==a))}if("string"==typeof l?(u=h===l,this.debug("string match",l,h,u)):(u=h.match(l),this.debug("pattern match",l,h,u)),!u)return!1}if(o===a&&s===c)return!0;if(o===a)return n;if(s===c)return o===a-1&&""===e[o];throw new Error("wtf?")}},4076:e=>{"use strict";var t,n="";e.exports=function(e,i){if("string"!=typeof e)throw new TypeError("expected a string");if(1===i)return e;if(2===i)return e+e;var r=e.length*i;if(t!==e||void 0===t)t=e,n="";else if(n.length>=r)return n.substr(0,r);for(;r>n.length&&i>1;)1&i&&(n+=e),i>>=1,e+=e;return n=(n+=e).substr(0,r)}},7847:(e,t,n)=>{const i=Symbol("SemVer ANY");class r{static get ANY(){return i}constructor(e,t){if(t=o(t),e instanceof r){if(e.loose===!!t.loose)return e;e=e.value}u("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===i?this.value="":this.value=this.operator+this.semver.version,u("comp",this)}parse(e){const t=this.options.loose?s[a.COMPARATORLOOSE]:s[a.COMPARATOR],n=e.match(t);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new l(n[2],this.options.loose):this.semver=i}toString(){return this.value}test(e){if(u("Comparator.test",e,this.options.loose),this.semver===i||e===i)return!0;if("string"==typeof e)try{e=new l(e,this.options)}catch(e){return!1}return c(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Comparator is required");if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||new h(e.value,t).test(this.value);if(""===e.operator)return""===e.value||new h(this.value,t).test(e.semver);const n=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=c(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=c(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return n||i||o&&s||a||u}}e.exports=r;const o=n(1388),{re:s,t:a}=n(4808),c=n(8117),u=n(952),l=n(2435),h=n(6843)},6843:(e,t,n)=>{class i{constructor(e,t){if(t=o(t),e instanceof i)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new i(e.raw,t);if(e instanceof s)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${e}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!f(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&g(e[0])){this.set=[e];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){e=e.trim();const t=`parseRange:${Object.keys(this.options).join(",")}:${e}`,n=r.get(t);if(n)return n;const i=this.options.loose,o=i?u[l.HYPHENRANGELOOSE]:u[l.HYPHENRANGE];e=e.replace(o,T(this.options.includePrerelease)),a("hyphen replace",e),e=e.replace(u[l.COMPARATORTRIM],h),a("comparator trim",e,u[l.COMPARATORTRIM]),e=(e=(e=e.replace(u[l.TILDETRIM],d)).replace(u[l.CARETTRIM],p)).split(/\s+/).join(" ");const c=i?u[l.COMPARATORLOOSE]:u[l.COMPARATOR],g=e.split(" ").map((e=>y(e,this.options))).join(" ").split(/\s+/).map((e=>_(e,this.options))).filter(this.options.loose?e=>!!e.match(c):()=>!0).map((e=>new s(e,this.options))),m=(g.length,new Map);for(const e of g){if(f(e))return[e];m.set(e.value,e)}m.size>1&&m.has("")&&m.delete("");const v=[...m.values()];return r.set(t,v),v}intersects(e,t){if(!(e instanceof i))throw new TypeError("a Range is required");return this.set.some((n=>m(n,t)&&e.set.some((e=>m(e,t)&&n.every((n=>e.every((e=>n.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new c(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(k(this.set[t],e,this.options))return!0;return!1}}e.exports=i;const r=new(n(7105))({max:1e3}),o=n(1388),s=n(7847),a=n(952),c=n(2435),{re:u,t:l,comparatorTrimReplace:h,tildeTrimReplace:d,caretTrimReplace:p}=n(4808),f=e=>"<0.0.0-0"===e.value,g=e=>""===e.value,m=(e,t)=>{let n=!0;const i=e.slice();let r=i.pop();for(;n&&i.length;)n=i.every((e=>r.intersects(e,t))),r=i.pop();return n},y=(e,t)=>(a("comp",e,t),e=b(e,t),a("caret",e),e=C(e,t),a("tildes",e),e=w(e,t),a("xrange",e),e=x(e,t),a("stars",e),e),v=e=>!e||"x"===e.toLowerCase()||"*"===e,C=(e,t)=>e.trim().split(/\s+/).map((e=>S(e,t))).join(" "),S=(e,t)=>{const n=t.loose?u[l.TILDELOOSE]:u[l.TILDE];return e.replace(n,((t,n,i,r,o)=>{let s;return a("tilde",e,t,n,i,r,o),v(n)?s="":v(i)?s=`>=${n}.0.0 <${+n+1}.0.0-0`:v(r)?s=`>=${n}.${i}.0 <${n}.${+i+1}.0-0`:o?(a("replaceTilde pr",o),s=`>=${n}.${i}.${r}-${o} <${n}.${+i+1}.0-0`):s=`>=${n}.${i}.${r} <${n}.${+i+1}.0-0`,a("tilde return",s),s}))},b=(e,t)=>e.trim().split(/\s+/).map((e=>E(e,t))).join(" "),E=(e,t)=>{a("caret",e,t);const n=t.loose?u[l.CARETLOOSE]:u[l.CARET],i=t.includePrerelease?"-0":"";return e.replace(n,((t,n,r,o,s)=>{let c;return a("caret",e,t,n,r,o,s),v(n)?c="":v(r)?c=`>=${n}.0.0${i} <${+n+1}.0.0-0`:v(o)?c="0"===n?`>=${n}.${r}.0${i} <${n}.${+r+1}.0-0`:`>=${n}.${r}.0${i} <${+n+1}.0.0-0`:s?(a("replaceCaret pr",s),c="0"===n?"0"===r?`>=${n}.${r}.${o}-${s} <${n}.${r}.${+o+1}-0`:`>=${n}.${r}.${o}-${s} <${n}.${+r+1}.0-0`:`>=${n}.${r}.${o}-${s} <${+n+1}.0.0-0`):(a("no pr"),c="0"===n?"0"===r?`>=${n}.${r}.${o}${i} <${n}.${r}.${+o+1}-0`:`>=${n}.${r}.${o}${i} <${n}.${+r+1}.0-0`:`>=${n}.${r}.${o} <${+n+1}.0.0-0`),a("caret return",c),c}))},w=(e,t)=>(a("replaceXRanges",e,t),e.split(/\s+/).map((e=>D(e,t))).join(" ")),D=(e,t)=>{e=e.trim();const n=t.loose?u[l.XRANGELOOSE]:u[l.XRANGE];return e.replace(n,((n,i,r,o,s,c)=>{a("xRange",e,n,i,r,o,s,c);const u=v(r),l=u||v(o),h=l||v(s),d=h;return"="===i&&d&&(i=""),c=t.includePrerelease?"-0":"",u?n=">"===i||"<"===i?"<0.0.0-0":"*":i&&d?(l&&(o=0),s=0,">"===i?(i=">=",l?(r=+r+1,o=0,s=0):(o=+o+1,s=0)):"<="===i&&(i="<",l?r=+r+1:o=+o+1),"<"===i&&(c="-0"),n=`${i+r}.${o}.${s}${c}`):l?n=`>=${r}.0.0${c} <${+r+1}.0.0-0`:h&&(n=`>=${r}.${o}.0${c} <${r}.${+o+1}.0-0`),a("xRange return",n),n}))},x=(e,t)=>(a("replaceStars",e,t),e.trim().replace(u[l.STAR],"")),_=(e,t)=>(a("replaceGTE0",e,t),e.trim().replace(u[t.includePrerelease?l.GTE0PRE:l.GTE0],"")),T=e=>(t,n,i,r,o,s,a,c,u,l,h,d,p)=>`${n=v(i)?"":v(r)?`>=${i}.0.0${e?"-0":""}`:v(o)?`>=${i}.${r}.0${e?"-0":""}`:s?`>=${n}`:`>=${n}${e?"-0":""}`} ${c=v(u)?"":v(l)?`<${+u+1}.0.0-0`:v(h)?`<${u}.${+l+1}.0-0`:d?`<=${u}.${l}.${h}-${d}`:e?`<${u}.${l}.${+h+1}-0`:`<=${c}`}`.trim(),k=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(a(e[n].semver),e[n].semver!==s.ANY&&e[n].semver.prerelease.length>0){const i=e[n].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}},2435:(e,t,n)=>{const i=n(952),{MAX_LENGTH:r,MAX_SAFE_INTEGER:o}=n(5558),{re:s,t:a}=n(4808),c=n(1388),{compareIdentifiers:u}=n(4935);class l{constructor(e,t){if(t=c(t),e instanceof l){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid Version: ${e}`);if(e.length>r)throw new TypeError(`version is longer than ${r} characters`);i("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?s[a.LOOSE]:s[a.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<o)return t}return e})):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(i("SemVer.compare",this.version,this.options,e),!(e instanceof l)){if("string"==typeof e&&e===this.version)return 0;e=new l(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof l||(e=new l(e,this.options)),u(this.major,e.major)||u(this.minor,e.minor)||u(this.patch,e.patch)}comparePre(e){if(e instanceof l||(e=new l(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const n=this.prerelease[t],r=e.prerelease[t];if(i("prerelease compare",t,n,r),void 0===n&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===n)return-1;if(n!==r)return u(n,r)}while(++t)}compareBuild(e){e instanceof l||(e=new l(e,this.options));let t=0;do{const n=this.build[t],r=e.build[t];if(i("prerelease compare",t,n,r),void 0===n&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===n)return-1;if(n!==r)return u(n,r)}while(++t)}inc(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{let e=this.prerelease.length;for(;--e>=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}}e.exports=l},6694:(e,t,n)=>{const i=n(9943);e.exports=(e,t)=>{const n=i(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null}},8117:(e,t,n)=>{const i=n(3276),r=n(7893),o=n(6379),s=n(8463),a=n(1897),c=n(506);e.exports=(e,t,n,u)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return i(e,n,u);case"!=":return r(e,n,u);case">":return o(e,n,u);case">=":return s(e,n,u);case"<":return a(e,n,u);case"<=":return c(e,n,u);default:throw new TypeError(`Invalid operator: ${t}`)}}},8686:(e,t,n)=>{const i=n(2435),r=n(9943),{re:o,t:s}=n(4808);e.exports=(e,t)=>{if(e instanceof i)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let n=null;if((t=t||{}).rtl){let t;for(;(t=o[s.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&t.index+t[0].length===n.index+n[0].length||(n=t),o[s.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;o[s.COERCERTL].lastIndex=-1}else n=e.match(o[s.COERCE]);return null===n?null:r(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,t)}},5914:(e,t,n)=>{const i=n(2435);e.exports=(e,t,n)=>{const r=new i(e,n),o=new i(t,n);return r.compare(o)||r.compareBuild(o)}},5404:(e,t,n)=>{const i=n(2271);e.exports=(e,t)=>i(e,t,!0)},2271:(e,t,n)=>{const i=n(2435);e.exports=(e,t,n)=>new i(e,n).compare(new i(t,n))},6007:(e,t,n)=>{const i=n(9943),r=n(3276);e.exports=(e,t)=>{if(r(e,t))return null;{const n=i(e),r=i(t),o=n.prerelease.length||r.prerelease.length,s=o?"pre":"",a=o?"prerelease":"";for(const e in n)if(("major"===e||"minor"===e||"patch"===e)&&n[e]!==r[e])return s+e;return a}}},3276:(e,t,n)=>{const i=n(2271);e.exports=(e,t,n)=>0===i(e,t,n)},6379:(e,t,n)=>{const i=n(2271);e.exports=(e,t,n)=>i(e,t,n)>0},8463:(e,t,n)=>{const i=n(2271);e.exports=(e,t,n)=>i(e,t,n)>=0},6360:(e,t,n)=>{const i=n(2435);e.exports=(e,t,n,r)=>{"string"==typeof n&&(r=n,n=void 0);try{return new i(e,n).inc(t,r).version}catch(e){return null}}},1897:(e,t,n)=>{const i=n(2271);e.exports=(e,t,n)=>i(e,t,n)<0},506:(e,t,n)=>{const i=n(2271);e.exports=(e,t,n)=>i(e,t,n)<=0},4551:(e,t,n)=>{const i=n(2435);e.exports=(e,t)=>new i(e,t).major},469:(e,t,n)=>{const i=n(2435);e.exports=(e,t)=>new i(e,t).minor},7893:(e,t,n)=>{const i=n(2271);e.exports=(e,t,n)=>0!==i(e,t,n)},9943:(e,t,n)=>{const{MAX_LENGTH:i}=n(5558),{re:r,t:o}=n(4808),s=n(2435),a=n(1388);e.exports=(e,t)=>{if(t=a(t),e instanceof s)return e;if("string"!=typeof e)return null;if(e.length>i)return null;if(!(t.loose?r[o.LOOSE]:r[o.FULL]).test(e))return null;try{return new s(e,t)}catch(e){return null}}},4250:(e,t,n)=>{const i=n(2435);e.exports=(e,t)=>new i(e,t).patch},8204:(e,t,n)=>{const i=n(9943);e.exports=(e,t)=>{const n=i(e,t);return n&&n.prerelease.length?n.prerelease:null}},733:(e,t,n)=>{const i=n(2271);e.exports=(e,t,n)=>i(t,e,n)},2961:(e,t,n)=>{const i=n(5914);e.exports=(e,t)=>e.sort(((e,n)=>i(n,e,t)))},9844:(e,t,n)=>{const i=n(6843);e.exports=(e,t,n)=>{try{t=new i(t,n)}catch(e){return!1}return t.test(e)}},1116:(e,t,n)=>{const i=n(5914);e.exports=(e,t)=>e.sort(((e,n)=>i(e,n,t)))},7230:(e,t,n)=>{const i=n(9943);e.exports=(e,t)=>{const n=i(e,t);return n?n.version:null}},7699:(e,t,n)=>{const i=n(4808);e.exports={re:i.re,src:i.src,tokens:i.t,SEMVER_SPEC_VERSION:n(5558).SEMVER_SPEC_VERSION,SemVer:n(2435),compareIdentifiers:n(4935).compareIdentifiers,rcompareIdentifiers:n(4935).rcompareIdentifiers,parse:n(9943),valid:n(7230),clean:n(6694),inc:n(6360),diff:n(6007),major:n(4551),minor:n(469),patch:n(4250),prerelease:n(8204),compare:n(2271),rcompare:n(733),compareLoose:n(5404),compareBuild:n(5914),sort:n(1116),rsort:n(2961),gt:n(6379),lt:n(1897),eq:n(3276),neq:n(7893),gte:n(8463),lte:n(506),cmp:n(8117),coerce:n(8686),Comparator:n(7847),Range:n(6843),satisfies:n(9844),toComparators:n(8865),maxSatisfying:n(3727),minSatisfying:n(4338),minVersion:n(1542),validRange:n(6240),outside:n(9106),gtr:n(995),ltr:n(7805),intersects:n(2013),simplifyRange:n(1338),subset:n(3122)}},5558:e=>{const t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:t,MAX_SAFE_COMPONENT_LENGTH:16}},952:e=>{const t="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},4935:e=>{const t=/^[0-9]+$/,n=(e,n)=>{const i=t.test(e),r=t.test(n);return i&&r&&(e=+e,n=+n),e===n?0:i&&!r?-1:r&&!i?1:e<n?-1:1};e.exports={compareIdentifiers:n,rcompareIdentifiers:(e,t)=>n(t,e)}},1388:e=>{const t=["includePrerelease","loose","rtl"];e.exports=e=>e?"object"!=typeof e?{loose:!0}:t.filter((t=>e[t])).reduce(((e,t)=>(e[t]=!0,e)),{}):{}},4808:(e,t,n)=>{const{MAX_SAFE_COMPONENT_LENGTH:i}=n(5558),r=n(952),o=(t=e.exports={}).re=[],s=t.src=[],a=t.t={};let c=0;const u=(e,t,n)=>{const i=c++;r(i,t),a[e]=i,s[i]=t,o[i]=new RegExp(t,n?"g":void 0)};u("NUMERICIDENTIFIER","0|[1-9]\\d*"),u("NUMERICIDENTIFIERLOOSE","[0-9]+"),u("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),u("MAINVERSION",`(${s[a.NUMERICIDENTIFIER]})\\.(${s[a.NUMERICIDENTIFIER]})\\.(${s[a.NUMERICIDENTIFIER]})`),u("MAINVERSIONLOOSE",`(${s[a.NUMERICIDENTIFIERLOOSE]})\\.(${s[a.NUMERICIDENTIFIERLOOSE]})\\.(${s[a.NUMERICIDENTIFIERLOOSE]})`),u("PRERELEASEIDENTIFIER",`(?:${s[a.NUMERICIDENTIFIER]}|${s[a.NONNUMERICIDENTIFIER]})`),u("PRERELEASEIDENTIFIERLOOSE",`(?:${s[a.NUMERICIDENTIFIERLOOSE]}|${s[a.NONNUMERICIDENTIFIER]})`),u("PRERELEASE",`(?:-(${s[a.PRERELEASEIDENTIFIER]}(?:\\.${s[a.PRERELEASEIDENTIFIER]})*))`),u("PRERELEASELOOSE",`(?:-?(${s[a.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${s[a.PRERELEASEIDENTIFIERLOOSE]})*))`),u("BUILDIDENTIFIER","[0-9A-Za-z-]+"),u("BUILD",`(?:\\+(${s[a.BUILDIDENTIFIER]}(?:\\.${s[a.BUILDIDENTIFIER]})*))`),u("FULLPLAIN",`v?${s[a.MAINVERSION]}${s[a.PRERELEASE]}?${s[a.BUILD]}?`),u("FULL",`^${s[a.FULLPLAIN]}$`),u("LOOSEPLAIN",`[v=\\s]*${s[a.MAINVERSIONLOOSE]}${s[a.PRERELEASELOOSE]}?${s[a.BUILD]}?`),u("LOOSE",`^${s[a.LOOSEPLAIN]}$`),u("GTLT","((?:<|>)?=?)"),u("XRANGEIDENTIFIERLOOSE",`${s[a.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),u("XRANGEIDENTIFIER",`${s[a.NUMERICIDENTIFIER]}|x|X|\\*`),u("XRANGEPLAIN",`[v=\\s]*(${s[a.XRANGEIDENTIFIER]})(?:\\.(${s[a.XRANGEIDENTIFIER]})(?:\\.(${s[a.XRANGEIDENTIFIER]})(?:${s[a.PRERELEASE]})?${s[a.BUILD]}?)?)?`),u("XRANGEPLAINLOOSE",`[v=\\s]*(${s[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[a.XRANGEIDENTIFIERLOOSE]})(?:${s[a.PRERELEASELOOSE]})?${s[a.BUILD]}?)?)?`),u("XRANGE",`^${s[a.GTLT]}\\s*${s[a.XRANGEPLAIN]}$`),u("XRANGELOOSE",`^${s[a.GTLT]}\\s*${s[a.XRANGEPLAINLOOSE]}$`),u("COERCE",`(^|[^\\d])(\\d{1,${i}})(?:\\.(\\d{1,${i}}))?(?:\\.(\\d{1,${i}}))?(?:$|[^\\d])`),u("COERCERTL",s[a.COERCE],!0),u("LONETILDE","(?:~>?)"),u("TILDETRIM",`(\\s*)${s[a.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",u("TILDE",`^${s[a.LONETILDE]}${s[a.XRANGEPLAIN]}$`),u("TILDELOOSE",`^${s[a.LONETILDE]}${s[a.XRANGEPLAINLOOSE]}$`),u("LONECARET","(?:\\^)"),u("CARETTRIM",`(\\s*)${s[a.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",u("CARET",`^${s[a.LONECARET]}${s[a.XRANGEPLAIN]}$`),u("CARETLOOSE",`^${s[a.LONECARET]}${s[a.XRANGEPLAINLOOSE]}$`),u("COMPARATORLOOSE",`^${s[a.GTLT]}\\s*(${s[a.LOOSEPLAIN]})$|^$`),u("COMPARATOR",`^${s[a.GTLT]}\\s*(${s[a.FULLPLAIN]})$|^$`),u("COMPARATORTRIM",`(\\s*)${s[a.GTLT]}\\s*(${s[a.LOOSEPLAIN]}|${s[a.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",u("HYPHENRANGE",`^\\s*(${s[a.XRANGEPLAIN]})\\s+-\\s+(${s[a.XRANGEPLAIN]})\\s*$`),u("HYPHENRANGELOOSE",`^\\s*(${s[a.XRANGEPLAINLOOSE]})\\s+-\\s+(${s[a.XRANGEPLAINLOOSE]})\\s*$`),u("STAR","(<|>)?=?\\s*\\*"),u("GTE0","^\\s*>=\\s*0.0.0\\s*$"),u("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")},995:(e,t,n)=>{const i=n(9106);e.exports=(e,t,n)=>i(e,t,">",n)},2013:(e,t,n)=>{const i=n(6843);e.exports=(e,t,n)=>(e=new i(e,n),t=new i(t,n),e.intersects(t))},7805:(e,t,n)=>{const i=n(9106);e.exports=(e,t,n)=>i(e,t,"<",n)},3727:(e,t,n)=>{const i=n(2435),r=n(6843);e.exports=(e,t,n)=>{let o=null,s=null,a=null;try{a=new r(t,n)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(o&&-1!==s.compare(e)||(o=e,s=new i(o,n)))})),o}},4338:(e,t,n)=>{const i=n(2435),r=n(6843);e.exports=(e,t,n)=>{let o=null,s=null,a=null;try{a=new r(t,n)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(o&&1!==s.compare(e)||(o=e,s=new i(o,n)))})),o}},1542:(e,t,n)=>{const i=n(2435),r=n(6843),o=n(6379);e.exports=(e,t)=>{e=new r(e,t);let n=new i("0.0.0");if(e.test(n))return n;if(n=new i("0.0.0-0"),e.test(n))return n;n=null;for(let t=0;t<e.set.length;++t){const r=e.set[t];let s=null;r.forEach((e=>{const t=new i(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":s&&!o(t,s)||(s=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!s||n&&!o(n,s)||(n=s)}return n&&e.test(n)?n:null}},9106:(e,t,n)=>{const i=n(2435),r=n(7847),{ANY:o}=r,s=n(6843),a=n(9844),c=n(6379),u=n(1897),l=n(506),h=n(8463);e.exports=(e,t,n,d)=>{let p,f,g,m,y;switch(e=new i(e,d),t=new s(t,d),n){case">":p=c,f=l,g=u,m=">",y=">=";break;case"<":p=u,f=h,g=c,m="<",y="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(a(e,t,d))return!1;for(let n=0;n<t.set.length;++n){const i=t.set[n];let s=null,a=null;if(i.forEach((e=>{e.semver===o&&(e=new r(">=0.0.0")),s=s||e,a=a||e,p(e.semver,s.semver,d)?s=e:g(e.semver,a.semver,d)&&(a=e)})),s.operator===m||s.operator===y)return!1;if((!a.operator||a.operator===m)&&f(e,a.semver))return!1;if(a.operator===y&&g(e,a.semver))return!1}return!0}},1338:(e,t,n)=>{const i=n(9844),r=n(2271);e.exports=(e,t,n)=>{const o=[];let s=null,a=null;const c=e.sort(((e,t)=>r(e,t,n)));for(const e of c)i(e,t,n)?(a=e,s||(s=e)):(a&&o.push([s,a]),a=null,s=null);s&&o.push([s,null]);const u=[];for(const[e,t]of o)e===t?u.push(e):t||e!==c[0]?t?e===c[0]?u.push(`<=${t}`):u.push(`${e} - ${t}`):u.push(`>=${e}`):u.push("*");const l=u.join(" || "),h="string"==typeof t.raw?t.raw:String(t);return l.length<h.length?l:t}},3122:(e,t,n)=>{const i=n(6843),r=n(7847),{ANY:o}=r,s=n(9844),a=n(2271),c=(e,t,n)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===o){if(1===t.length&&t[0].semver===o)return!0;e=n.includePrerelease?[new r(">=0.0.0-0")]:[new r(">=0.0.0")]}if(1===t.length&&t[0].semver===o){if(n.includePrerelease)return!0;t=[new r(">=0.0.0")]}const i=new Set;let c,h,d,p,f,g,m;for(const t of e)">"===t.operator||">="===t.operator?c=u(c,t,n):"<"===t.operator||"<="===t.operator?h=l(h,t,n):i.add(t.semver);if(i.size>1)return null;if(c&&h){if(d=a(c.semver,h.semver,n),d>0)return null;if(0===d&&(">="!==c.operator||"<="!==h.operator))return null}for(const e of i){if(c&&!s(e,String(c),n))return null;if(h&&!s(e,String(h),n))return null;for(const i of t)if(!s(e,String(i),n))return!1;return!0}let y=!(!h||n.includePrerelease||!h.semver.prerelease.length)&&h.semver,v=!(!c||n.includePrerelease||!c.semver.prerelease.length)&&c.semver;y&&1===y.prerelease.length&&"<"===h.operator&&0===y.prerelease[0]&&(y=!1);for(const e of t){if(m=m||">"===e.operator||">="===e.operator,g=g||"<"===e.operator||"<="===e.operator,c)if(v&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch&&(v=!1),">"===e.operator||">="===e.operator){if(p=u(c,e,n),p===e&&p!==c)return!1}else if(">="===c.operator&&!s(c.semver,String(e),n))return!1;if(h)if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),"<"===e.operator||"<="===e.operator){if(f=l(h,e,n),f===e&&f!==h)return!1}else if("<="===h.operator&&!s(h.semver,String(e),n))return!1;if(!e.operator&&(h||c)&&0!==d)return!1}return!(c&&g&&!h&&0!==d||h&&m&&!c&&0!==d||v||y)},u=(e,t,n)=>{if(!e)return t;const i=a(e.semver,t.semver,n);return i>0?e:i<0||">"===t.operator&&">="===e.operator?t:e},l=(e,t,n)=>{if(!e)return t;const i=a(e.semver,t.semver,n);return i<0?e:i>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,n={})=>{if(e===t)return!0;e=new i(e,n),t=new i(t,n);let r=!1;e:for(const i of e.set){for(const e of t.set){const t=c(i,e,n);if(r=r||null!==t,t)continue e}if(r)return!1}return!0}},8865:(e,t,n)=>{const i=n(6843);e.exports=(e,t)=>new i(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))},6240:(e,t,n)=>{const i=n(6843);e.exports=(e,t)=>{try{return new i(e,t).range||"*"}catch(e){return null}}},6695:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.registerCspellInlineCompletionProviders=void 0;const s=o(n(9496)),a=n(1750),c=o(n(2411)),u=n(1419),l=new Set(["tex","bibtex","latex","latex-expl3","jlweave","rsweave","doctex"]);t.registerCspellInlineCompletionProviders=async function(e){const t=await async function(){const e=await s.languages.getLanguages(),{value:t,byLangId:n}=function(){var e,t;const n="showAutocompleteSuggestions",i=null!==(e=(0,u.inspectConfigByScopeAndKey)(void 0,n).languageIds)&&void 0!==e?e:[],r=null!==(t=(0,u.getSettingFromVSConfig)(n,void 0))&&void 0!==t&&t,o=i.map((e=>[e,(0,u.getSettingFromVSConfig)(n,{languageId:e})]));return{value:r,byLangId:new Map(o)}}();return e.filter((e=>{var i;return null!==(i=n.get(e))&&void 0!==i?i:!l.has(e)&&t}))}();e.push(s.languages.registerCompletionItemProvider(t,h,":"),s.languages.registerCompletionItemProvider(t,h," "),s.languages.registerCompletionItemProvider(t,g," "),s.languages.registerCompletionItemProvider(t,m," "))};const h={provideCompletionItems(e,t){const n=f((0,a.getCSpellDiags)(e.uri),t,1),i=e.lineAt(t).text.substr(0,t.character);if(!/cspell:\s?$/i.test(i))return;const r={words:n.map((t=>e.getText(t.range)))};return p.map((e=>"function"==typeof e?e(r):e)).map(d)},resolveCompletionItem:e=>e};function d(e){const t=new s.CompletionItem(e.label,e.kind||s.CompletionItemKind.Text);return t.insertText=new s.SnippetString(e.insertText),t.documentation=e.description,t.sortText=e.sortText,t.commitCharacters=e.commitCharacters||[" "],t}const p=[{label:"words",insertText:"words",description:"Words to be allowed in the document",sortText:"1",kind:s.CompletionItemKind.Snippet},{label:"ignore words",insertText:"ignore",description:"Words to be ignored in the document",sortText:"2",kind:s.CompletionItemKind.Snippet},{label:"ignoreRegExp",insertText:"ignoreRegExp /${1:expression}/g",description:"Ignore text matching the regular expression."},{label:"disable-next-line",insertText:"disable-next-line",description:"Do not spell check the next line",sortText:"3"},{label:"disable-line",insertText:"disable-line",description:"Do not spell check the current line"},{label:"disable spell checker",insertText:"disable",description:"Disable spell checking from this point further."},{label:"enable spell checker",insertText:"enable",description:"Enable spell checking from this point further."},{label:"dictionaries",insertText:"dictionaries",commitCharacters:[" "],description:"Add dictionaries to be used in this document.",kind:s.CompletionItemKind.Snippet},{label:"locale",insertText:"locale ${1:en}",description:"Set the language locale to be used in this document. (i.e. fr,en)",kind:s.CompletionItemKind.Snippet},{label:"disable compound words",insertText:"disableCompoundWords",description:"Turn OFF Allow Compound Words."},{label:"enable compound words",insertText:"enableCompoundWords",description:"Turn ON Allow Compound Words."}];function f(e,t,n){function i(e){const n=e.range.start;return 1e3*Math.abs(n.line-t.line)+n.character}return[...e].sort(((e,t)=>i(e)-i(t))).slice(0,n)}const g={async provideCompletionItems(e,t){const n=e.lineAt(t).text.substr(0,t.character);if(!/cspell:\s*dictionaries/i.test(n))return;const i=await c.get("client").getConfigurationForDocument(e),r=i.docSettings||i.settings;if(!r)return;const o=new Set(r.dictionaries||[]);return(r.dictionaryDefinitions||[]).map((e=>e.name)).filter((e=>!!e)).filter((e=>!o.has(e))).map((e=>new s.CompletionItem(e,s.CompletionItemKind.Text))).map((e=>(e.commitCharacters=[" "],e)))},resolveCompletionItem:e=>e},m={provideCompletionItems(e,t){const n=e.lineAt(t),i=n.text.substr(0,t.character);if(!/cspell:\s*(words|ignore)/i.test(i))return;const r=new Set(n.text.split(/[\s:.]/)),o=f((0,a.getCSpellDiags)(e.uri).filter((t=>!r.has(e.getText(t.range)))),t,10);return o.length?[...new Set(o.map((t=>e.getText(t.range))))].sort().map((e=>new s.CompletionItem(e,s.CompletionItemKind.Text))).map((e=>(e.commitCharacters=[" "],e))):void 0},resolveCompletionItem:e=>e}},1287:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.CSpellClient=void 0;const s=n(4561),a=n(9496),c=o(n(165)),u=n(165),l=n(6742),h=o(n(2979)),d=n(2979),p=o(n(2187)),f=n(7053),g=n(8422),m=n(4876),y=n(6997),v=["--nolazy","--inspect=60048"],C=l.diagnosticSource,S=u.Trace.Off;class b{constructor(e,t){this.import=new Set,this.disposables=new Set,this.broadcasterOnSpellCheckDocument=(0,f.createBroadcaster)(),this.getConfigurationForDocument=this.factoryGetConfigurationForDocument(),this.cacheGetConfigurationForDocument=new Map;const n=e.asAbsolutePath("packages/_server/dist/main.js"),i=h.getScopedSettingFromVSConfig("enabledLanguageIds",h.Scopes.Workspace);this.allowedSchemas=new Set(h.getScopedSettingFromVSConfig("allowedSchemas",h.Scopes.Workspace)||s.supportedSchemes),s.setOfSupportedSchemes.clear(),this.allowedSchemas.forEach((e=>s.setOfSupportedSchemes.add(e))),this.languageIds=new Set(t.concat(i||[]).concat(p.languageIds));const r=[...this.languageIds],o={documentSelector:[...this.allowedSchemas].map((e=>r.map((t=>({language:t,scheme:e}))))).reduce(((e,t)=>e.concat(t))),diagnosticCollectionName:C,synchronize:{configurationSection:[d.sectionCSpell,"search"]},middleware:{handleDiagnostics(e,t,n){n(e,t)}}};S!==u.Trace.Off&&(o.traceOutputChannel=a.window.createOutputChannel("Trace CSpell"));const c=this.calcServerArgs(),l={execArgv:c},g={execArgv:[...c,...v]},m={run:{module:n,transport:u.TransportKind.ipc,options:l},debug:{module:n,transport:u.TransportKind.ipc,options:g}};this.client=new u.LanguageClient("cspell","Code Spell Checker",m,o),this.client.registerProposedFeatures(),setTimeout((()=>{this.client.trace=S,S!==u.Trace.Off&&this.client.traceOutputChannel.show()}),1e3),this.serverApi=(0,y.createServerApi)(this.client),this.initWhenReady().catch((e=>console.error(e)))}needsStart(){return this.client.needsStart()}needsStop(){return this.client.needsStop()}start(){return this.exposeDisposable(this.client.start())}async isSpellCheckEnabled(e){const{uri:t,languageId:n=""}=e;if(!t||!n)return{uri:t};const i=await this.serverApi.isSpellCheckEnabled({uri:t.toString(),languageId:n});return Object.assign(Object.assign({},i),{uri:t})}async _getConfigurationForDocument(e){const{uri:t,languageId:n}=e||{},i=w(t);return t?this.serverApi.getConfigurationForDocument({uri:t.toString(),languageId:n,workspaceConfig:i}):this.serverApi.getConfigurationForDocument({workspaceConfig:i})}factoryGetConfigurationForDocument(){return e=>{var t;const n=null===(t=null==e?void 0:e.uri)||void 0===t?void 0:t.toString(),i=this.cacheGetConfigurationForDocument.get(n);if(i)return i;const r=this._getConfigurationForDocument(e);return this.cacheGetConfigurationForDocument.set(n,r),r}}notifySettingsChanged(){return this.cacheGetConfigurationForDocument.clear(),setTimeout((()=>this.cacheGetConfigurationForDocument.clear()),250),(0,m.silenceErrors)(this.whenReady((()=>this.serverApi.notifyConfigChange())),"notifySettingsChanged")}registerConfiguration(e){return(0,m.logErrors)(this.whenReady((()=>this.serverApi.registerConfigurationFile(e))),"registerConfiguration")}get diagnostics(){return this.client&&this.client.diagnostics||void 0}triggerSettingsRefresh(){return this.notifySettingsChanged()}async whenReady(e){return await this.client.onReady(),e()}static create(e){return Promise.resolve(a.languages.getLanguages().then((t=>new b(e,t))))}exposeDisposable(e){return this.registerDisposable(e),new a.Disposable((()=>this.disposeOf(e)))}registerDisposable(...e){for(const t of e)this.disposables.add(t)}disposeOf(e){this.disposables.has(e)&&(this.disposables.delete(e),e.dispose())}dispose(){const e=[...this.disposables];this.disposables.clear(),a.Disposable.from(...e).dispose()}calcServerArgs(){return[]}onSpellCheckDocumentNotification(e){return this.broadcasterOnSpellCheckDocument.listen(e)}async requestSpellingSuggestions(e,t,n){const i={textDocument:c.TextDocumentIdentifier.create(e.uri.toString()),range:F(t),context:c.CodeActionContext.create(n.map(k))},r=await(0,y.requestCodeAction)(this.client,i);return r?r.filter(x).map(_):[]}async initWhenReady(){await this.client.onReady(),this.registerHandleNotificationsFromServer(),this.registerHandleOnWorkspaceConfigForDocumentRequest()}registerHandleOnWorkspaceConfigForDocumentRequest(){this.registerDisposable(this.serverApi.onWorkspaceConfigForDocumentRequest(E))}registerHandleNotificationsFromServer(){this.registerDisposable(this.serverApi.onSpellCheckDocument((e=>this.broadcasterOnSpellCheckDocument.send(e))))}}function E(e){const{uri:t}=e;return w(a.Uri.parse(t))}function w(e){var t,n;const i=(0,g.findConicalDocumentScope)(e),r=(0,d.inspectConfigKeys)(i,["words","userWords","ignoreWords"]),o=null===(t=a.workspace.workspaceFile)||void 0===t?void 0:t.toString(),s=i&&(null===(n=a.workspace.getWorkspaceFolder(i))||void 0===n?void 0:n.uri.toString()),c=void 0!==o,u=D(r.userWords,c),l=D(r.words,c),h=D(r.ignoreWords,c);return l.user=u.user,{uri:null==e?void 0:e.toString(),workspaceFile:o,workspaceFolder:s,words:l,ignoreWords:h}}function D(e,t){if(!e)return{};const{globalValue:n,workspaceValue:i,workspaceFolderValue:r}=e;return{user:void 0!==n||void 0,workspace:void 0!==i||void 0,folder:t&&(void 0!==r||void 0)}}function x(e){return c.CodeAction.is(e)}function _(e){const t=void 0!==e.kind&&a.CodeActionKind.Empty.append(e.kind)||void 0,n=new a.CodeAction(e.title,t);return n.command=e.command&&e.command,n}t.CSpellClient=b;const T={[a.DiagnosticSeverity.Error]:c.DiagnosticSeverity.Error,[a.DiagnosticSeverity.Warning]:c.DiagnosticSeverity.Warning,[a.DiagnosticSeverity.Information]:c.DiagnosticSeverity.Information,[a.DiagnosticSeverity.Hint]:c.DiagnosticSeverity.Hint};function k(e){return c.Diagnostic.create(F(e.range),e.message,T[e.severity],void 0,e.source)}function F(e){const{start:t,end:n}=e;return c.Range.create(A(t),A(n))}function A(e){const{line:t,character:n}=e;return c.Position.create(t,n)}},9540:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeLocale=void 0,r(n(1287),t);var o=n(6997);Object.defineProperty(t,"normalizeLocale",{enumerable:!0,get:function(){return o.normalizeLocale}})},6997:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(5972),t),r(n(607),t)},5972:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createServerApi=t.requestCodeAction=void 0;const i=n(165);t.requestCodeAction=async function(e,t){const n=i.CodeActionRequest.type;return await e.sendRequest(n,t)},t.createServerApi=function(e){async function t(t,n){await e.onReady();const r=new i.RequestType(t);return await e.sendRequest(r,n)}function n(t,...n){e.sendNotification(t,n)}return{isSpellCheckEnabled:e=>t("isSpellCheckEnabled",e),getConfigurationForDocument:e=>t("getConfigurationForDocument",e),splitTextIntoWords:e=>t("splitTextIntoWords",e),spellingSuggestions:e=>t("spellingSuggestions",e),notifyConfigChange:(...e)=>n("notifyConfigChange",...e),registerConfigurationFile:(...e)=>n("registerConfigurationFile",...e),onSpellCheckDocument:t=>function(t,n){const r=new i.NotificationType("onSpellCheckDocument");return e.onNotification(r,n)}(0,t),onWorkspaceConfigForDocumentRequest:t=>function(t,n){const r=new i.RequestType("onWorkspaceConfigForDocumentRequest");return e.onRequest(r,n)}(0,t)}}},607:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeToLocales=t.normalizeLocale=t.extractScope=t.extractCustomDictionaries=t.extractActiveDictionaries=t.extractDictionariesGroupByName=t.extractDictionariesByLocaleLanguageSettings=t.extractDictionariesByLocale=t.extractLocalesFromLanguageSettings=t.extractLocales=t.extractLanguage=void 0;const s=n(9841),a=o(n(9759)),c=n(9759);function u(e=[]){return g(e.map((e=>e.locale||e.local||"")).map(f).join(","))}function l(e=[]){const t=new Map;return e.map((({local:e,locale:t,dictionaries:n=[]})=>({locale:f(t||e),dictionaries:n}))).filter((e=>!!e.locale)).filter((e=>e.dictionaries.length>0)).forEach((e=>{e.locale.split(",").forEach((n=>{t.set(n,(t.get(n)||[]).concat(e.dictionaries).filter(a.uniqueFilter()))}))})),t}function h(e){var t;return new Map((null===(t=e.dictionaryDefinitions)||void 0===t?void 0:t.map((e=>[e.name,e])))||[])}function d(e){const t=h(e);return(e.dictionaries||[]).map((e=>t.get(e))).filter(c.isDefined)}function p(e){var t;return null!==(t=e.addWords)&&void 0!==t&&t}function f(e=""){return Array.isArray(e)&&(e=e.join(",")),g(e).join(",")}function g(e=""){return e.replace(/[|;\s]/g,",").replace(/[*]/g,"").split(",").map(s.normalizeCode).map((e=>e.trim())).filter((e=>!!e)).filter(a.uniqueFilter())}t.extractLanguage=function(e){return e&&e.language&&g(e.language)||void 0},t.extractLocales=function(e={}){return u(e.languageSettings)},t.extractLocalesFromLanguageSettings=u,t.extractDictionariesByLocale=function(e={}){return l(e.languageSettings)},t.extractDictionariesByLocaleLanguageSettings=l,t.extractDictionariesGroupByName=h,t.extractActiveDictionaries=d,t.extractCustomDictionaries=function(e){return d(e).filter(p).filter((e=>e.addWords))},t.extractScope=function(e){return new Set("string"==typeof e.scope?[e.scope]:e.scope||[])},t.normalizeLocale=f,t.normalizeToLocales=g},8768:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.__testing__=t.disableCurrentLanguage=t.enableCurrentLanguage=t.enableDisableLocaleLegacy=t.enableDisableLocale=t.enableDisableLanguageId=t.disableLanguageIdCmd=t.enableLanguageIdCmd=t.addWordToUserDictionary=t.addWordToWorkspaceDictionary=t.registerCommands=void 0;const s=n(9496),a=o(n(2411)),c=n(1750),u=o(n(2979)),l=n(2979),h=n(5026),d=n(5023),p=n(5076),f=n(8506),g=n(3047),m=n(94),y=n(6225),v=n(4876),C=n(5294),S=n(8781),b=n(2511),E=n(7469),w={"cSpell.addWordsToConfigFileFromServer":(e,t,n)=>$(e,(0,h.createCSpellConfigRepository)((0,b.toUri)(n.uri),n.name)),"cSpell.addWordsToDictionaryFileFromServer":(e,t,n)=>function(e,t){return(0,v.handleErrors)(a.get("dictionaryHelper").addWordToDictionary(e,t),"addWordsToDictionaryTarget")}(e,(0,g.createDictionaryTargetForFile)((0,b.toUri)(n.uri),n.name)),"cSpell.addWordsToVSCodeSettingsFromServer":(e,t,n)=>{const i=(0,y.dictionaryScopeToConfigurationTarget)(n);return $(e,(0,h.createVSCodeConfigRepository)(i,(0,b.toUri)(t),!1))}},D=function(e,t){return async function(){var n,i;const r=null===(n=s.window.activeTextEditor)||void 0===n?void 0:n.document,o=null===(i=s.window.activeTextEditor)||void 0===i?void 0:i.selection,a=o&&(null==r?void 0:r.getWordRangeAtPosition(o.active)),u=r?(0,c.getCSpellDiags)(r.uri):void 0,l=(0,f.normalizeWords)((0,c.extractMatchingDiagTexts)(r,o,u)||[]);if(l.length){const n=(null==o?void 0:o.anchor.isEqual(o.active))&&1===l.length?l:await se(l.sort(oe),{title:e,placeHolder:"Choose words"});if(!n)return;return t(n.join(" "),null==r?void 0:r.uri)}if(!(a&&o&&r&&r.getText(a))){const n=await s.window.showInputBox({title:e,prompt:e});if(!n)return;return t(n,null==r?void 0:r.uri)}const h=o.contains(a)?r.getText(o):r.getText(a),d=(0,f.normalizeWords)(h),p=d.length>1?await se(d.sort(oe),{title:e,placeHolder:"Choose words"}):[await s.window.showInputBox({title:e,prompt:e,value:d[0]})];if(p)return t(p.join(" "),null==r?void 0:r.uri)}},x=(e,t=!1)=>ne(e,void 0,void 0,t),_=D("Add Words to Folder Dictionary",(function(e,t){return H(e,p.dictionaryTargetBestMatchesFolder,t)})),T=D("Add Words to Workspace Dictionaries",z),k=D("Add Words to User Dictionary",V),F=D("Add Words to Folder Settings",ue(H,p.dictionaryTargetBestMatchesVSCodeFolder)),A=D("Add Words to Workspace Settings",ue(H,p.dictionaryTargetBestMatchesVSCodeWorkspace)),R=D("Add Words to User Settings",ue(H,p.dictionaryTargetBestMatchesVSCodeUser)),O=D("Remove Words from Folder Dictionary",(function(e,t){return J(e,l.ConfigurationTarget.WorkspaceFolder,t)})),P=D("Remove Words from Workspace Dictionaries",(function(e,t){return J(e,l.ConfigurationTarget.Workspace,t)})),M=D("Remove Words from Global Dictionary",(function(e){return J(e,l.ConfigurationTarget.Global,void 0)})),N=D("Ignore Words",ue(G,void 0)),I=D("Ignore Words in Folder Settings",ue(G,l.ConfigurationTarget.WorkspaceFolder)),L=D("Ignore Words in Workspace Settings",ue(G,l.ConfigurationTarget.Workspace)),j=D("Ignore Words in User Settings",ue(G,l.ConfigurationTarget.Global)),B=D("Add Words to cSpell Configuration",ue(H,p.dictionaryTargetBestMatchesCSpell)),q={"cSpell.addWordToDictionary":D("Add Words to Dictionary",ue(H,p.dictionaryTargetBestMatches)),"cSpell.addWordToFolderDictionary":_,"cSpell.addWordToWorkspaceDictionary":T,"cSpell.addWordToUserDictionary":k,"cSpell.addWordToFolderSettings":F,"cSpell.addWordToWorkspaceSettings":A,"cSpell.addWordToUserSettings":R,"cSpell.removeWordFromFolderDictionary":O,"cSpell.removeWordFromWorkspaceDictionary":P,"cSpell.removeWordFromUserDictionary":M,"cSpell.addIgnoreWord":N,"cSpell.addIgnoreWordsToFolder":I,"cSpell.addIgnoreWordsToWorkspace":L,"cSpell.addIgnoreWordsToUser":j,"cSpell.suggestSpellingCorrections":ce,"cSpell.goToNextSpellingIssue":()=>le("next",!1),"cSpell.goToPreviousSpellingIssue":()=>le("previous",!1),"cSpell.goToNextSpellingIssueAndSuggest":()=>le("next",!0),"cSpell.goToPreviousSpellingIssueAndSuggest":()=>le("previous",!0),"cSpell.enableLanguage":X,"cSpell.disableLanguage":Y,"cSpell.enableForGlobal":async()=>(0,l.setEnableSpellChecking)(await x(l.ConfigurationTarget.Global),!0),"cSpell.disableForGlobal":async()=>(0,l.setEnableSpellChecking)(await x(l.ConfigurationTarget.Global),!1),"cSpell.toggleEnableForGlobal":async()=>(0,l.toggleEnableSpellChecker)(await x(l.ConfigurationTarget.Global,!0)),"cSpell.enableForWorkspace":async()=>(0,l.setEnableSpellChecking)(await x(l.ConfigurationTarget.Workspace),!0),"cSpell.disableForWorkspace":async()=>(0,l.setEnableSpellChecking)(await x(l.ConfigurationTarget.Workspace),!1),"cSpell.toggleEnableForWorkspace":async()=>(0,l.toggleEnableSpellChecker)(await x(l.ConfigurationTarget.Workspace)),"cSpell.toggleEnableSpellChecker":async()=>(0,l.toggleEnableSpellChecker)(await x(l.ConfigurationTarget.Global)),"cSpell.enableCurrentLanguage":ee,"cSpell.disableCurrentLanguage":te,"cSpell.editText":async function(e,t,n){const i=a.get("client").client,r=s.window.activeTextEditor;if(r&&r.document.uri.toString()===e){if(r.document.version!==t)return U(s.window.showInformationMessage("Spelling changes are outdated and cannot be applied to the document."),"handlerApplyTextEdits");if(s.workspace.getConfiguration(u.sectionCSpell,r.document).get(W)&&1===n.length){console.log("fixSpellingWithRenameProvider Enabled");const e=n[0],t=i.protocol2CodeConverter.asRange(e.range);if(await async function(e,t,n){if(t.start.line!==t.end.line)return!1;const i=e.getWordRangeAtPosition(t.start);if(!i||!i.contains(t))return!1;const r=i.start.character,o=t.start.character-r,a=t.end.character-r,c=e.getText(i),u=[c.slice(0,o),n,c.slice(a)].join("");try{const n=await s.commands.executeCommand("vscode.executeDocumentRenameProvider",e.uri,t.start,u).then((e=>e),(e=>(console.log(e),!1)));return!!n&&n.size>0&&await s.workspace.applyEdit(n)}catch(e){return!1}}(r.document,t,e.newText))return}return r.edit((e=>{for(const t of n)e.replace(i.protocol2CodeConverter.asRange(t.range),t.newText)})).then((e=>e?void 0:U(s.window.showErrorMessage("Failed to apply spelling changes to the document."),"handlerApplyTextEdits2")))}},"cSpell.logPerfTimeline":function(){C.performance.getEntries().forEach((e=>{console.log(e.name,(0,C.toMilliseconds)(e.startTime),e.duration)}))},"cSpell.addWordToCSpellConfig":B,"cSpell.addIssuesToDictionary":function(){return(0,v.handleErrors)(a.get("dictionaryHelper").addIssuesToDictionary(),"addAllIssuesFromDocument")},"cSpell.createCustomDictionary":async function(){var e;const t=await ie(null===(e=s.window.activeTextEditor)||void 0===e?void 0:e.document),n=await(0,p.quickPickTarget)(t);if(!n)return;const i=(0,d.configTargetToConfigRepo)(n);i&&await a.get("dictionaryHelper").createCustomDictionary(i)},"cSpell.createCSpellConfig":async function(){var e;const t=await(0,l.createConfigFileRelativeToDocumentUri)(null===(e=s.window.activeTextEditor)||void 0===e?void 0:e.document.uri);if(t){const e=await s.window.showTextDocument(t);(0,S.scrollToText)(e,'"cspell":')}},"cSpell.openFileAtLine":async function(e,t){e=(0,b.toUri)(e);const n=t&&{selection:he(t)}||void 0;await s.window.showTextDocument(e,n)}};function U(e,t,n=v.ignoreError){const i=Promise.resolve(e).then((()=>{}));return(0,v.handleErrors)(i,t,n)}const W="fixSpellingWithRenameProvider";function $(e,t){return(0,v.handleErrors)(a.get("dictionaryHelper").addWordsToConfigRep(e,t),"addWordsToConfig")}function K(e,t){return s.commands.registerCommand(e,(0,v.catchErrors)(t,`Register command: ${e}`))}function z(e,t){return console.log("addWordToWorkspaceDictionary %o",arguments),H(e,p.dictionaryTargetBestMatchesWorkspace,t)}function V(e){return H(e,p.dictionaryTargetBestMatchesUser,void 0)}function H(e,t,n){return(0,v.handleErrors)(function(e,t,n){return n=(0,b.toUri)(n),a.get("dictionaryHelper").addWordsToTargets(e,t,n)}(e,t,n),"addWordToTarget")}function G(e,t,n){return(0,v.handleErrors)(async function(e,t,n){n=(0,b.toUri)(n);const i=await re(n),r=t?i.filter((e=>e.scope===(0,y.configurationTargetToDictionaryScope)(t))):i;return u.addIgnoreWordsToSettings(r,e)}(e,t,n),ae("addIgnoreWordsToTarget",void 0,n))}function J(e,t,n){return(0,v.handleErrors)(function(e,t,n){n=(0,b.toUri)(n);const i=(0,p.createClientConfigTargetVSCode)(t,n,void 0);return a.get("dictionaryHelper").removeWordsFromTargets(e,[i],n)}(e,t,n),ae("removeWordFromTarget",t,n))}function X(e,t){return Q(e,(0,b.toUri)(t),void 0,!0)}function Y(e,t){return Q(e,(0,b.toUri)(t),void 0,!1)}function Q(e,t,n,i){return(0,v.handleErrors)((async()=>{const r=await(n?async function(e,t,n){const i=await ne(e,t,void 0),{targets:r,scopes:o}=i,s=new Set(o);return r.filter((e=>s.has(e.scope)))}(n,t):re(t));return u.enableLanguageIdForTarget(e,i,r)}),ae(`enableDisableLanguageId enable: ${i}`,n,t))}function Z(e,t,n,i,r){return(0,v.handleErrors)((async()=>{const{targets:o,scopes:s}=await ne(n||l.ConfigurationTarget.Global,t,i);return u.enableLocaleForTarget(e,r,o,s)}),ae(`enableDisableLocale enable: ${r}`,n,t))}function ee(){return(0,v.handleErrors)((async()=>{var e;const t=null===(e=s.window.activeTextEditor)||void 0===e?void 0:e.document;if(!t)return;const n=await ie(t);return u.enableLanguageId(n,t.languageId)}),"enableCurrentLanguage")}function te(){return(0,v.handleErrors)((async()=>{var e;const t=null===(e=s.window.activeTextEditor)||void 0===e?void 0:e.document;if(!t)return;const n=await ie(t);return u.disableLanguageId(n,t.languageId)}),"disableCurrentLanguage")}async function ne(e,t,n,i){var r;const o=i?[(0,y.configurationTargetToClientConfigScope)(e)]:(0,y.configurationTargetToClientConfigScopeInfluenceRange)(e),a=(0,p.createConfigTargetMatchPattern)(p.matchKindAll,p.matchScopeAll,{dictionary:!1});return t=(0,b.toUri)(t),{targets:(await(t?re(t,a):ie(null===(r=s.window.activeTextEditor)||void 0===r?void 0:r.document,a))).map((e=>"vscode"===e.kind?Object.assign(Object.assign({},e),{configScope:n}):e)),scopes:o}}async function ie(e,t=p.patternMatchNoDictionaries){const{uri:n,languageId:i}=e||{},r=(await a.get("client").getConfigurationForDocument({uri:n,languageId:i})).configTargets.map(m.mapConfigTargetToClientConfigTarget);return(0,p.filterClientConfigTargets)(r,t)}async function re(e,t=p.patternMatchNoDictionaries){var n;return ie((e=(0,b.toUri)(e))?await async function(e){const t=(0,E.findMatchingDocument)(e);return t||((await s.workspace.fs.stat(e)).type!==s.FileType.File?{uri:e}:await s.workspace.openTextDocument(e))}(e):null===(n=s.window.activeTextEditor)||void 0===n?void 0:n.document,t)}t.registerCommands=function(){return[...Object.entries(q).map((([e,t])=>K(e,t))),...Object.entries(w).map((([e,t])=>K(e,t)))]},t.addWordToWorkspaceDictionary=z,t.addWordToUserDictionary=V,t.enableLanguageIdCmd=X,t.disableLanguageIdCmd=Y,t.enableDisableLanguageId=Q,t.enableDisableLocale=Z,t.enableDisableLocaleLegacy=function(e,t,n){const i="boolean"==typeof e?e?l.ConfigurationTarget.Global:l.ConfigurationTarget.Workspace:e,r=(0,l.normalizeTarget)(i);return Z(t,r.uri,r.target,r.configScope,n)},t.enableCurrentLanguage=ee,t.disableCurrentLanguage=te;const oe=(new Intl.Collator).compare;async function se(e,t){if(e.length<=1){const n=await s.window.showInputBox(Object.assign(Object.assign({},t),{value:e[0]}));if(!n)return;return[n]}const n=e.map((e=>({label:e,picked:!0}))),i=await s.window.showQuickPick(n,Object.assign(Object.assign({},t),{canPickMany:!0}));return null==i?void 0:i.map((e=>e.label))}function ae(e,t,n){const i=t?(0,y.configurationTargetToDictionaryScope)(t):"";return i?`${e} ${i} ${(0,b.toUri)(n)}`:`${e} ${(0,b.toUri)(n)}`}async function ce(){var e,t;const n=null===(e=s.window.activeTextEditor)||void 0===e?void 0:e.document,i=null===(t=s.window.activeTextEditor)||void 0===t?void 0:t.selection,r=i&&(null==n?void 0:n.getWordRangeAtPosition(i.active)),o=n?(0,c.getCSpellDiags)(n.uri):void 0,u=(0,c.extractMatchingDiagRanges)(n,i,o),h=(null==u?void 0:u[0])||r,d=h&&(null==o?void 0:o.filter((e=>!!e.range.intersection(h))));if(!(n&&i&&h&&d))return U(s.window.showInformationMessage("Nothing to suggest."),"actionSuggestSpellingCorrections");if("quickFix"===(0,l.getSettingFromVSConfig)(l.ConfigFields.suggestionMenuType,n))return await s.commands.executeCommand("editor.action.quickFix");const p=await a.get("client").requestSpellingSuggestions(n,h,d);if(!p||!p.length)return U(s.window.showInformationMessage(`No Suggestions Found for ${n.getText(h)}`),"actionSuggestSpellingCorrections");const f=p.map((e=>({label:e.title,_action:e}))),g=await s.window.showQuickPick(f);if(g&&g._action.command){const{command:e,arguments:t=[]}=g._action.command;s.commands.executeCommand(e,...t)}}function ue(e,t){return(n,i)=>e(n,t,i)}async function le(e,t){const n=s.window.activeTextEditor;if(!n)return;const i=n.document,r=n.selection,o=i?(0,c.getCSpellDiags)(i.uri):void 0,a=o?"next"===e?function(e,t){return e.filter((e=>{var n;return null===(n=e.range)||void 0===n?void 0:n.start.isAfter(t.end)})).concat(e[0])[0]}(o,r):function(e,t){return[e[e.length-1]].concat(e.filter((e=>{var n;return null===(n=e.range)||void 0===n?void 0:n.end.isBefore(t.start)}))).pop()}(o,r):void 0,u=null==a?void 0:a.range;return i&&r&&u&&a?(n.revealRange(u,s.TextEditorRevealType.InCenterIfOutsideViewport),n.selection=new s.Selection(u.start,u.end),t?ce():void 0):U(s.window.showInformationMessage("No issues found in this document."),"actionJumpToSpellingError")}function he(e){if(void 0===e)return;e="string"==typeof e?Number.parseInt(e):e;const t=new s.Position(e-1,0);return new s.Range(t,t)}t.__testing__={commandHandlers:q}},6742:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.diagnosticSource=t.extensionId=void 0,t.extensionId="cSpell",t.diagnosticSource=t.extensionId},6677:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.updateDocumentRelatedContext=void 0;const i=n(9496),r=n(6742),o=n(1750),s=n(2511),a=r.extensionId;function*c(e,t){"object"!=typeof t&&(yield[e,t]);for(const[n,i]of Object.entries(t))yield*c(`${e}.${n}`,i)}const u=new Map,l=Object.freeze({usesConfigFile:!1,usesCustomDictionary:!1,hasIssues:!1,showCreateConfig:!1,showCreateDictionary:!1}),h=Object.freeze({addWordToFolderDictionary:!1,addWordToWorkspaceDictionary:!1,addWordToUserDictionary:!1,addWordToFolderSettings:!1,addWordToWorkspaceSettings:!1,addWordToUserSettings:!1,addWordToDictionary:!1,addWordToCSpellConfig:!1,addIssuesToDictionary:!1,showSuggestions:!1,createCustomDictionary:!1,createCSpellConfig:!1,addIgnoreWord:!1});async function d(e){const t=[...c(a,e)].filter((([e,t])=>t!==u.get(e))),n=t.map((([e,t])=>i.commands.executeCommand("setContext",e,t)));t.forEach((([e,t])=>u.set(e,t))),await Promise.all(n)}const p=new WeakMap;async function f(e,t){var n;const r={documentConfigContext:Object.assign({},l),editorMenuContext:Object.assign({},h)},a=e.getConfigurationForDocument(t),c=(0,o.getCSpellDiags)(t.uri),u=await a,{agg:p,matrix:f,configFoundInWorkspace:g}=function(e){const t={},n={vscode:{},cspell:{},dictionary:{}};let r=!1;for(const o of e)t[o.kind]=(t[o.kind]||0)+1,t[o.scope]=(t[o.scope]||0)+1,n[o.kind][o.scope]=(n[o.kind][o.scope]||0)+1,r=r||"cspell"===o.kind&&!!i.workspace.getWorkspaceFolder((0,s.toUri)(o.configUri));return{agg:t,matrix:n,configFoundInWorkspace:r}}(u.configTargets),m=(p.dictionary||0)-(f.dictionary.user||0),y=!!p.cspell,v=m>0,C=c.length>0,S=c.length>1,b=!g||!p.cspell,E=!v,w=!!f.vscode.workspace,D=!!f.vscode.folder;r.documentConfigContext={usesConfigFile:y,usesCustomDictionary:v,hasIssues:C,showCreateConfig:b,showCreateDictionary:E};const x=!!(null===(n=u.settings)||void 0===n?void 0:n.showCommandsInEditorContextMenu);r.editorMenuContext.addWordToFolderDictionary=x&&C&&!!f.dictionary.folder,r.editorMenuContext.addWordToWorkspaceDictionary=x&&C&&!!f.dictionary.workspace,r.editorMenuContext.addWordToUserDictionary=x&&C&&!!f.dictionary.user,r.editorMenuContext.addWordToFolderSettings=x&&C&&D,r.editorMenuContext.addWordToWorkspaceSettings=x&&C&&w,r.editorMenuContext.addWordToUserSettings=x&&C&&!f.dictionary.user,r.editorMenuContext.addWordToDictionary=x&&C&&!!f.dictionary.unknown,r.editorMenuContext.addWordToCSpellConfig=x&&C&&y&&!v,r.editorMenuContext.addIssuesToDictionary=x&&C&&S,r.editorMenuContext.createCustomDictionary=x&&E,r.editorMenuContext.createCSpellConfig=x&&b,r.editorMenuContext.addIgnoreWord=x&&C,r.editorMenuContext.showSuggestions=x&&C,await d(r)}t.updateDocumentRelatedContext=async function e(t,n){const i={documentConfigContext:Object.assign({},l),editorMenuContext:Object.assign({},h)};if(!n)return void await d(i);const r=n,o=p.get(r);if(o)return o.stale=!o.pending,o.value;const s={value:f(t,r),pending:!0,stale:!1};function a(){p.delete(r),s.stale&&e(t,r)}return s.value.finally((()=>{s.pending=!1,setTimeout(a,1e3)})),p.set(r,s),s.value}},2411:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.__testing__=t.set=t.get=t.register=t.getDependencies=void 0;const n=Object.keys({name:void 0,extensionContext:void 0,client:void 0,dictionaryHelper:void 0}),i={};function r(e){Object.defineProperty(i,e,{get:function(){throw new Error(`Missing Dependency: ${e}`)},configurable:!0,enumerable:!0})}function o(){n.forEach(r)}t.getDependencies=function(){return i},t.register=function(e,t){Object.defineProperty(i,e,{get:function(){const n=t();return Object.defineProperty(this,e,{value:n}),n}})},t.get=function(e){if(void 0===Object.getOwnPropertyDescriptor(i,e))throw new Error(`Missing Dependency Resolver: '${e}'`);return i[e]},t.set=function(e,t){Object.defineProperty(i,e,{value:t,configurable:!0,enumerable:!0})},o(),t.__testing__={init:o}},1750:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.__testing__=t.extractMatchingDiagRanges=t.extractMatchingDiagTexts=t.extractMatchingDiagText=t.getCSpellDiags=void 0;const i=n(9496),r=n(6742),o=n(8506),s=n(9759);function a(e,t,n){if(!e||!n)return;const i=c(e,t,n);return null==i?void 0:i.map((t=>e.getText(t)))}function c(e,t,n){if(!e||!n)return;const i=t&&e.getText(t);return n.map((e=>e.range)).map((e=>u(i,t,e))).filter(s.isDefined)}function u(e,t,n){if(!t||void 0===e||n.contains(t))return n;const i=t.intersection(n);return i&&!i.isEmpty?(0,o.isWordLike)(e)?t:n:void 0}t.getCSpellDiags=function(e){return(e&&i.languages.getDiagnostics(e)||[]).filter((e=>e.source===r.diagnosticSource))},t.extractMatchingDiagText=function(e,t,n){var i;if(e&&t&&n)return null===(i=a(e,t,n))||void 0===i?void 0:i.filter((0,s.uniqueFilter)()).join(" ")},t.extractMatchingDiagTexts=a,t.extractMatchingDiagRanges=c,t.__testing__={determineWordRangeToAddToDictionaryFromSelection:u,extractMatchingDiagTexts:a}},6574:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.activate=void 0;const s=o(n(9496)),a=n(355),c=n(6695),u=n(9540),l=o(n(8768)),h=n(6677),d=o(n(2411)),p=o(n(7518)),f=o(n(3981)),g=o(n(8335)),m=o(n(2979)),y=n(2979),v=n(4196),C=n(4876),S=n(5294);S.performance.mark("cspell_done_import"),g.init(),t.activate=async function(e){S.performance.mark("cspell_activate_start");const t=await u.CSpellClient.create(e);e.subscriptions.push(t),d.set("client",t),d.set("extensionContext",e),p.activate(e,t),e.subscriptions.push(t.start());const n=(0,v.initStatusBar)(e,t);function i(e=0){setTimeout(r,e)}function r(){(0,C.silenceErrors)(t.triggerSettingsRefresh(),"triggerGetSettings").then((()=>{f.update(),n.refresh()}))}function o(){i()}const g=s.workspace.createFileSystemWatcher(m.configFileLocationGlob);function b(e){for(const t of e)if(m.configFilesToWatch.has(a.Utils.basename(t))){i();break}}e.subscriptions.push(g,g.onDidChange(o),g.onDidCreate(o),g.onDidDelete(o),s.workspace.onDidSaveTextDocument((function(e){b([e.uri])})),s.workspace.onDidRenameFiles((function(e){b(e.files.map((e=>e.newUri)).concat(e.files.map((e=>e.oldUri))))})),s.workspace.onDidDeleteFiles((function(e){b(e.files)})),s.workspace.onDidCreateFiles((function(e){b(e.files)})),s.workspace.onDidOpenTextDocument((function(e){b([e.uri])})),s.window.onDidChangeActiveTextEditor((function(e){(0,C.logErrors)((0,h.updateDocumentRelatedContext)(t,null==e?void 0:e.document),"handleOnDidChangeActiveTextEditor")})),s.window.onDidChangeVisibleTextEditors((function(e){var n;(0,C.logErrors)((0,h.updateDocumentRelatedContext)(t,null===(n=s.window.activeTextEditor)||void 0===n?void 0:n.document),"handleOnDidChangeVisibleTextEditors")})),s.languages.onDidChangeDiagnostics((function(e){const n=s.window.activeTextEditor;n&&new Set(e.uris.map((e=>e.toString()))).has(n.document.uri.toString())&&setTimeout((()=>{(0,C.logErrors)((0,h.updateDocumentRelatedContext)(t,n.document),"handleOnDidChangeDiagnostics")}),10)})),...l.registerCommands(),s.workspace.onDidChangeConfiguration((function(e){e.affectsConfiguration(y.sectionCSpell)&&i()}))),(0,c.registerCspellInlineCompletionProviders)(e.subscriptions).catch((()=>{})),f.activate(e,t);const E={enableLocale:(e,t)=>l.enableDisableLocaleLegacy(e,t,!0),disableLocale:(e,t)=>l.enableDisableLocaleLegacy(e,t,!1)},w={registerConfig:function(e){t.registerConfiguration(e)},triggerGetSettings:i,enableLanguageId:l.enableLanguageIdCmd,disableLanguageId:l.disableLanguageIdCmd,enableCurrentLanguage:l.enableCurrentLanguage,disableCurrentLanguage:l.disableCurrentLanguage,addWordToUserDictionary:l.addWordToUserDictionary,addWordToWorkspaceDictionary:l.addWordToWorkspaceDictionary,enableLocale:E.enableLocale,disableLocale:E.disableLocale,updateSettings:()=>!1,cSpellClient:()=>t,getConfigurationForDocument:e=>t.getConfigurationForDocument(e),enableLocal:E.enableLocale,disableLocal:E.disableLocale};return S.performance.mark("cspell_activate_end"),S.performance.measure("cspell_activation","cspell_activate_start","cspell_activate_end"),w},S.performance.mark("cspell_done_load")},3162:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.RegexpOutlineItem=t.RegexpOutlineProvider=void 0;const s=o(n(9496));function a(e){const t={treeItem:new c(e)};return t.children=function(e){const t=e.treeItem.pattern;if(t.defs.length<2)return;const n=t.name;return t.defs.map(((e,t)=>({name:`${n}.${t}`,defs:[e]}))).map(a)}(t),t}t.RegexpOutlineProvider=class{constructor(){this._onDidChangeTreeData=new s.EventEmitter,this.onDidChangeTreeData=this._onDidChangeTreeData.event}refresh(e){this.outline=e?function(e){const t={treeItem:new s.TreeItem("root",s.TreeItemCollapsibleState.Expanded)};return t.children=[...e.entries()].map((e=>function(e,t,n){return{parent:e,treeItem:new s.TreeItem(t,s.TreeItemCollapsibleState.Expanded),children:n.map(a)}}(t,...e))),t}(e):void 0,this._onDidChangeTreeData.fire(void 0)}getChildren(e){var t;return e?Promise.resolve(e.children):Promise.resolve(null===(t=this.outline)||void 0===t?void 0:t.children)}getTreeItem(e){return e.treeItem}getParent(e){return e.parent}};class c extends s.TreeItem{constructor(e){var t,n;super((n=e.name).length<=50?n:n.substr(0,49)+"…",e.defs.length>1?s.TreeItemCollapsibleState.Expanded:s.TreeItemCollapsibleState.None),this.pattern=e,this.pattern=e;const{timeMs:i,errorMsg:r,toolTip:o,count:a}=function(e){const t=e.defs.map((e=>e.elapsedTime)).reduce(((e,t)=>e+t),0).toFixed(2),n=e.defs.map((e=>e.errorMessage)).filter((e=>!!e)).join(", "),i=e.defs.map((e=>e.regexp.toString()));return{timeMs:t,errorMsg:n,toolTip:i.length>1?"Multi Pattern":i.join(""),count:e.defs.map((e=>e.matches.length)).reduce(((e,t)=>e+t),0)}}(e),c=[`${i}ms`,`(${a})`,r?" "+r:""].filter((e=>!!e));this.description=c.join(" "),this.tooltip=o,this.command={command:"cSpellRegExpTester.selectRegExp",arguments:[null===(t=e.defs[0])||void 0===t?void 0:t.regexp],title:"Select RegExp"},this.contextValue="regexp"}}t.RegexpOutlineItem=c},3735:(e,t)=>{"use strict";function n(e){return e instanceof RegExp}Object.defineProperty(t,"__esModule",{value:!0}),t.isRegExp=t.toRegExp=void 0,t.toRegExp=function(e,t){if(n(e))return e;const i=e.match(/^\/(.*)\/([gimsuy]*)$/);return i?new RegExp(i[1],i[2]||void 0):new RegExp(e,t)},t.isRegExp=n},6391:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.activate=void 0;const s=o(n(9496)),a=n(6742),c=n(4876),u=n(3735),l=n(7640),h=n(3162),d=n(3837);function p(e){const{name:t,pattern:n}=e;function i(e){return e.toString()}return{name:t,pattern:(r=n,Array.isArray(r)?r.map(i):i(r))};var r}function f(){const e=s.workspace.getConfiguration(a.extensionId);return!!(null==e?void 0:e.get("experimental.enableRegexpView"))}t.activate=function(e,t){const n=new Set,i=new h.RegexpOutlineProvider;let r,o;s.window.registerTreeDataProvider("cSpellRegExpView",i);const a=s.window.createTextEditorDecorationType({overviewRulerColor:"green",overviewRulerLane:s.OverviewRulerLane.Center,light:{backgroundColor:"#C0C0FFCC"},dark:{backgroundColor:"#347890CC"}});let g,m=f(),y=m?s.window.activeTextEditor:void 0,v=[];const C=(0,c.catchErrors)((async function(){var n,o;if(!m||!y)return void b();const c=y.document,u=c.version,h=await t.getConfigurationForDocument(c),d=function(e,t){var n,i,r;const o=[];return t.forEach((e=>o.push({category:"User Patterns",pattern:e}))),null===(n=null==e?void 0:e.includeRegExpList)||void 0===n||n.forEach((e=>o.push({category:"Include Regexp List",pattern:e.toString()}))),null===(i=null==e?void 0:e.ignoreRegExpList)||void 0===i||i.forEach((e=>o.push({category:"Exclude Regexp List",pattern:e.toString()}))),null===(r=null==e?void 0:e.patterns)||void 0===r||r.forEach((e=>o.push({category:"Patterns",pattern:p(e)}))),o}(h.docSettings,v),f=d.map((e=>e.pattern)),C=g?0:-1,E=await function(){r||(r=l.PatternMatcherClient.create(e));const t=r;return t.onReady().then((()=>t))}(),w={patterns:(null===(n=h.docSettings)||void 0===n?void 0:n.patterns)||(null===(o=h.settings)||void 0===o?void 0:o.patterns)||[]};await E.matchPatternsInDocument(c,f,w).then((e=>{var t;if(!s.window.activeTextEditor||c.version!==u||(null===(t=s.window.activeTextEditor)||void 0===t?void 0:t.document)!=c)return;if(e.message)return;const n=e&&new Map;null==e||e.patternMatches.forEach(((e,t)=>{const i=d[t].category,r=n.get(i)||[];r.push(e),n.set(i,r)})),i.refresh(n);const r=s.window.activeTextEditor,o=e.patternMatches.filter(((e,t)=>t===C)).map(S).reduce(((e,t)=>e.concat(t)),[]).map((e=>{const{range:t,message:n}=e,i=r.document.positionAt(t[0]),o=r.document.positionAt(t[1]);return{range:new s.Range(i,o),hoverMessage:n}}));r.setDecorations(a,o)}))}),"updateDecorations",c.showError);function S(e){const{name:t,defs:n}=e;return n.map((e=>e.matches.map((t=>({range:t,elapsedTime:e.elapsedTime}))).map((({range:e,elapsedTime:n})=>({range:e,message:E(t,n)}))))).reduce(((e,t)=>e.concat(t)),[])}function b(){null==y||y.setDecorations(a,[])}function E(e,t){return(new s.MarkdownString).appendText(e+" "+t.toFixed(2)+"ms")}function w(){o&&(clearTimeout(o),o=void 0),o=setTimeout(C,100)}function D(e){g=e||g;const t=s.window.showInputBox({prompt:"Enter a Regular Expression",placeHolder:"Example: /\bw+/g",value:null==g?void 0:g.toString(),validateInput:function(e){try{(0,u.toRegExp)(e,"g")}catch(e){return(0,d.format)(e)}}}).then((e=>{g=e||void 0,_(g),w()}));return(0,c.logErrors)(t,"userTestRegExp")}function x(e){return"string"==typeof e&&!!e}function _(e){const t=new Set([e].concat(v));v=[...t].filter(x),v.length=Math.min(v.length,5)}y&&w(),s.window.onDidChangeActiveTextEditor((e=>{m&&(y=e,e&&w())}),null,e.subscriptions),s.workspace.onDidChangeTextDocument((e=>{m&&y&&e.document===y.document&&w()}),null,e.subscriptions),e.subscriptions.push({dispose:function(){for(const e of n)e.dispose();n.clear()}},s.commands.registerCommand("cSpellRegExpTester.testRegExp",(0,c.catchErrors)(D,"testRegExp",c.logError)),s.commands.registerCommand("cSpellRegExpTester.selectRegExp",(function(e){g=g===e?void 0:e,_(g),w()})),s.commands.registerCommand("cSpellRegExpTester.editRegExp",(function(e){var t,n;if(null===(t=null==e?void 0:e.treeItem)||void 0===t?void 0:t.pattern){w();const{defs:t,name:i}=e.treeItem.pattern;D((null===(n=t[0])||void 0===n?void 0:n.regexp)||i)}})),s.workspace.onDidChangeConfiguration((function(){const e=m;m=f(),e!=m&&(m?(y=s.window.activeTextEditor,w()):b())})))}},7518:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(6391),t)},7640:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PatternMatcherClient=void 0;const i=n(165),r=n(4876),o=n(1530),s=["--nolazy","--inspect=60148"];class a{constructor(e){const t=e.asAbsolutePath("packages/_serverPatternMatcher/dist/main.js"),n={documentSelector:[{scheme:"file"},{scheme:"untitled"}],diagnosticCollectionName:"cspell-pattern-matcher",initializationFailedHandler:e=>(console.error("Server initialization failed. %o",e),!1)},a=[],c={execArgv:a},u={execArgv:[...a,...s]},l={run:{module:t,transport:i.TransportKind.ipc,options:c},debug:{module:t,transport:i.TransportKind.ipc,options:u}};this.client=new i.LanguageClient("cspell-pattern-matcher",l,n),this.client.registerProposedFeatures(),this.serverApi=(0,o.createServerApi)(this.client),(0,r.logErrors)(this.initWhenReady(),"Init Pattern Matcher Server"),e.subscriptions.push(this.client.start(),this)}static create(e){return new a(e)}async matchPatternsInDocument(e,t,n){return this.serverApi.matchPatternsInDocument({uri:e.uri.toString(),patterns:t,settings:n})}dispose(){c("Dispose: Pattern Matcher Client")}onReady(){return this.client.onReady()}async initWhenReady(){c("waiting initWhenReady"),await this.onReady(),c("done initWhenReady")}}t.PatternMatcherClient=a;const c=(...e)=>{}},1530:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(9357),t)},9357:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createServerApi=t.requestCodeAction=void 0;const i=n(165);t.requestCodeAction=async function(e,t){const n=i.CodeActionRequest.type;return await e.sendRequest(n,t)},t.createServerApi=function(e){return{matchPatternsInDocument:t=>async function(t,n){await e.onReady();const r=new i.RequestType("matchPatternsInDocument");return await e.sendRequest(r,n)}(0,t)}}},1860:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.commandDisplayCSpellInfo=void 0,t.commandDisplayCSpellInfo="cSpell.displayCSpellInfo"},8976:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.commandDisplayCSpellInfo=void 0;var i=n(1860);Object.defineProperty(t,"commandDisplayCSpellInfo",{enumerable:!0,get:function(){return i.commandDisplayCSpellInfo}})},8588:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.__testing__=t.calcSettings=void 0;const s=n(4561),a=o(n(9496)),c=n(9496),u=n(2979),l=n(9759),h=n(7007),d=n(2511);t.calcSettings=async function(e,t,n,i){const r=t||(null===(o=function(){var e;return null===(e=a.workspace.workspaceFolders)||void 0===e?void 0:e[0]}())||void 0===o?void 0:o.uri);var o;const s=(0,u.inspectConfig)(r),c=await n.getConfigurationForDocument(e);return{knownLanguageIds:[...n.languageIds].sort(),dictionaries:T(c.settings),configs:m(s,c,e,i),workspace:O(n.allowedSchemas,a.workspace),activeFileUri:e&&e.uri.toString(),activeFolderUri:null==r?void 0:r.toString()}};const p={defaultValue:"default",globalValue:"user",workspaceValue:"workspace",workspaceFolderValue:"folder"},f=["defaultValue","globalValue","workspaceValue","workspaceFolderValue"],g=new Map(f.map(((e,t)=>[e,t])));function m(e,t,n,i){return{user:C(1,e),workspace:C(2,e),folder:C(3,e),file:b(t,n,i)}}function y(e){return g.get(e)||0}function v(e,t,n){for(let i=e;i>0;--i){const e=f[i],r=n[e];if(r&&r[t])return e}return"defaultValue"}function C(e,t){var n,i,r;const o=v(e,"language",t),s=v(e,"enabledLanguageIds",t),a=v(e,"enableFiletypes",t),c=P(null===(n=t[s])||void 0===n?void 0:n.enabledLanguageIds,null===(i=t[a])||void 0===i?void 0:i.enableFiletypes),u=(h=a,y(l=s)>y(h)?l:h);var l,h;return{inherited:{locales:p[o],languageIdsEnabled:p[u]},locales:F(null===(r=t[o])||void 0===r?void 0:r.language),languageIdsEnabled:c}}function S(e){if(e)return e.map((e=>Object.assign(Object.assign({},e),{name:e.name||e.configUri&&(0,s.uriToName)((0,d.toUri)(e.configUri))})))}function b(e,t,n){if(!t)return;const{uri:i,fileName:r,languageId:o,isUntitled:u}=t,{languageEnabled:l,docSettings:h,fileEnabled:d,fileIsExcluded:p,fileIsIncluded:f,gitignoreInfo:g,excludedBy:m}=e,y=new Set(h&&h.dictionaries||[]),v=T(h).filter((e=>y.has(e.name)));n("extractFileConfig languageEnabled: "+(l?"true":"false"));const C=a.workspace.getWorkspaceFolder(i);return{uri:i.toString(),fileName:r,isUntitled:u,languageId:o,dictionaries:v,languageEnabled:l,fileEnabled:d,configFiles:w(e),fileIsExcluded:p,fileIsIncluded:f,fileIsInWorkspace:!!C||u,excludedBy:S(m),gitignoreInfo:function(){if(!g)return;const{glob:e,gitIgnoreFile:t,line:n,matched:i,root:r}=g,o=c.Uri.file(t);return{matched:i,glob:e,line:n,root:r,gitignoreFileUri:o.toString(),gitignoreName:(0,s.uriToName)(o)}}(),blockedReason:e.blockedReason}}function E(e){return a.workspace.asRelativePath(e,!0)}function w(e){const{configFiles:t,configTargets:n}=e,i=n.filter(D).map((({name:e,configUri:t})=>({name:e,uri:t})));return i.length?i:t.map((e=>({name:(0,s.uriToName)((0,d.toUri)(e)),uri:e})))}function D(e){return"cspell"===e.kind}const x=/\.txt$/,_=/(?:@|%40)cspell\//;function T(e){if(!e)return[];const t=e.dictionaryDefinitions||[],n=new Map(t.map(k).map((e=>[e.name,e])));return(e.languageSettings||[]).forEach((e=>{const t=F(e.locale||e.local),i=A(e.languageId);(e.dictionaries||[]).forEach((e=>{const r=n.get(e);r&&(r.locales=R(r.locales,t),r.languageIds=R(r.languageIds,i))}))})),[...n.values()]}function k(e){const t=c.Uri.joinPath(c.Uri.file(e.path||""),e.file||""),n=t.toString(),i=x.test(n)&&!_.test(n);return{name:e.name,locales:[],languageIds:[],description:e.description,uri:i?n:void 0,uriName:i?E(t):void 0}}function F(e){return A(e)}function A(e){return(0,h.pipe)(e,(0,h.map)((e=>"string"==typeof e?e:e.join(","))),(0,h.map)((e=>e.replace(/\*/g,"").split(/[,;]/).map((e=>e.trim())).filter((e=>!!e)))),(0,h.defaultTo)([]))}function R(e,t){return e.concat(t).filter((0,l.uniqueFilter)())}function O(e,t){const{name:n,workspaceFolders:i,textDocuments:r}=t,o={name:n,workspaceFolders:i?i.map((function(e){const{name:t,index:n}=e;return{uri:e.uri.toString(),name:t,index:n}})):void 0,textDocuments:r.filter((t=>e.has(t.uri.scheme))).map((function(e){const{fileName:t,languageId:n,isUntitled:i}=e;return{uri:e.uri.toString(),fileName:E(t),languageId:n,isUntitled:i}}))};return o}function P(e=[],t=[]){const n=new Set;return function(e){return e.map((e=>e.replace(/!/g,"~"))).sort().map((e=>e.replace(/~/g,"!")))}(e.concat(t)).map(M).forEach((({enable:e,lang:t})=>{e?n.add(t):n.delete(t)})),[...n].sort()}function M(e){const[t,n]=N(e);return{enable:!(1&t.length),lang:n}}function N(e){const t=e.match(/^!*/),n=(null==t?void 0:t[0])||"";return[n,e.slice(n.length)]}t.__testing__={applyEnableFiletypesToEnabledLanguageIds:P,calcEnableLang:M,extractConfigFiles:w,extractDictionariesFromConfig:T,extractViewerConfigFromConfig:m,mapWorkspace:O,normalizeLocales:F,splitBangPrefix:N}},3981:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.__testing__=t.update=t.activate=void 0;const s=o(n(7945)),a=n(3837),c=o(n(9496)),u=n(9496),l=n(3312),h=n(8768),d=n(2979),p=n(2511),f=n(7469),g=n(1860),m=n(8588),y=n(3837),v="Spell Checker Preferences",C=(0,y.promisify)(setTimeout);let S,b=!1;const E={user:c.ConfigurationTarget.Global,workspace:c.ConfigurationTarget.Workspace,folder:c.ConfigurationTarget.WorkspaceFolder};t.activate=function(e,t){e.subscriptions.push(c.commands.registerCommand(g.commandDisplayCSpellInfo,(async()=>{var n;const i=(null===(n=c.window.activeTextEditor)||void 0===n?void 0:n.viewColumn)||c.ViewColumn.Active;S?S.reveal(i):S=await async function(e,t,n){const i=e.asAbsolutePath("packages/client/settingsViewer/webapp"),r=await async function(){const e=M(c.window.activeTextEditor),t=e&&c.workspace.getWorkspaceFolder(e)||c.workspace.workspaceFolders&&c.workspace.workspaceFolders[0],n=t&&t.uri;return{activeTabName:e?"File":"User",activeDocumentUri:e,activeFolderUri:n,settings:await k(e,n)}}(),o=e.extensionPath;let a;const g=[],y={enableScripts:!0,enableCommandUris:!0,localResourceRoots:[u.Uri.file(i),u.Uri.file(o)]},_=c.window.createWebviewPanel("cspellConfigViewer",v,t,y),T=new l.MessageBus(function(e){let t;const n={set onmessage(e){t=e},postMessage:t=>(e.webview.postMessage(t),n),disposable:e.webview.onDidReceiveMessage((e=>{t&&t({data:e})}))};return n}(_),console);async function k(e,t){const i=e&&(0,f.findMatchingDocument)(e);return(0,m.calcSettings)(i,t,n,x)}async function F(){const e=(0,d.getSettingFromVSConfig)("logLevel",void 0);b="Debug"===e,x("refreshStateAndNotify"),await async function(){x(`refreshState: uri "${r.activeDocumentUri}"`),await C(500),r.settings=await k(r.activeDocumentUri,r.activeFolderUri)}(),await void(null==a||a.emit())}function A(e){var t;t=M(e),r.activeDocumentUri=P(t)||r.activeDocumentUri}return g.push(s.stream((e=>(a=e,()=>{a=void 0}))).throttle(250).observe((()=>{const{activeTabName:e,settings:t}=r;x(`notifyView: tab ${e}`),T.postMessage({command:"ConfigurationChangeMessage",value:{activeTab:e,settings:t}})}))),g.push(s.stream((t=>{c.workspace.onDidChangeConfiguration((()=>t.value({})),null,e.subscriptions)})).throttle(1e3).observe((()=>F()))),c.window.onDidChangeActiveTextEditor((async e=>{e&&(A(e),await F())}),null,e.subscriptions),T.listenFor("RequestConfigurationMessage",(()=>F)),T.listenFor("SelectTabMessage",(e=>{x(`SelectTabMessage: tab ${e.value}`),r.activeTabName=e.value})),T.listenFor("SelectFolderMessage",(e=>{x(`SelectFolderMessage: folder '${e.value}'`);const t=e.value,n=c.workspace.workspaceFolders&&c.workspace.workspaceFolders[0];return r.activeFolderUri=t&&u.Uri.parse(t)||n&&n.uri,F()})),T.listenFor("SelectFileMessage",(e=>{x(`SelectFolderMessage: folder '${e.value}'`);const t=e.value;return r.activeDocumentUri=t&&u.Uri.parse(t)||r.activeDocumentUri,F()})),T.listenFor("ConfigurationChangeMessage",(()=>{})),T.listenFor("OpenLinkMessage",(e=>{const t=u.Uri.parse(e.value.uri);switch(t.scheme){case"file":return c.window.showTextDocument(t);case"command":return D()}throw new Error(`Unknown link: ${t.toString()}`)})),g.push(s.stream((e=>{T.listenFor("EnableLanguageIdMessage",(t=>e.value(t)))})).debounce(20).map((e=>{const{target:t,languageId:n,enable:i,uri:r}=e.value;x(`EnableLanguageIdMessage: ${t}, ${n}, ${i?"enable":"disable"}`);const o=r?u.Uri.parse(r):void 0;return(0,h.enableDisableLanguageId)(n,o,t?E[t]:void 0,i)})).flatMap(O(w)).observe(F)),g.push(s.stream((e=>{T.listenFor("EnableLocaleMessage",(t=>e.value(t)))})).debounce(20).map((e=>{const{target:t,locale:n,enable:i,uri:r}=e.value;x(`EnableLocaleMessage: ${t}, ${n}, ${i?"enable":"disable"}`);const o=r?u.Uri.parse(r):void 0,s=E[t];return(0,h.enableDisableLocale)(n,(0,p.toUri)(r),s,o,i)})).flatMap(O(w)).observe(F)),_.onDidDispose(R,null,e.subscriptions),_.onDidChangeViewState((()=>F()),void 0,e.subscriptions),{panel:_,async updateView(){await async function(e,t){x("updateView");const n=function(e,t){const n=u.Uri.file(t);return`\n<!DOCTYPE html>\n<html>\n <head>\n <meta charset="utf-8"/>\n <meta name="viewport" content="width=device-width, initial-scale=1.0">\n <title>CSpell Settings Viewer</title>\n </head>\n <body><div id="root">Root</div><script type="text/javascript" src="${e.asWebviewUri(u.Uri.joinPath(n,"index.bundle.js"))}"><\/script></body>\n</html>\n`}(e.webview,t);e.title=v,e.webview.html=n}(_,i),F()},reveal:()=>_.reveal(),dispose:R};function R(){S=void 0,a=void 0,g.forEach((e=>e.unsubscribe())),g.length=0}function O(e){return t=>{const n=s.fromPromise(t);return e?n.delay(e):n}}function P(e){return e&&n.allowedSchemas.has(e.scheme)?e:void 0}function M(e){return P(e&&e.document.uri)}}(e,i,t),S.updateView()})),{dispose:()=>{if(S){const e=S;S=void 0,e.dispose()}}})};const w=500;function D(e){throw new Error("not implemented.")}function x(...e){if(!b)return;const t=(0,a.format)(...e),n=new Date;console.log(`${n.toISOString()} InfoView -- ${t}`)}t.update=function(){null==S||S.updateView()},t.__testing__={execCommandUri:D}},9841:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lookupCode=t.isValidCode=t.normalizeCode=void 0;const i=n(1605),r=new Map(i.codes.map((e=>{const[t,n,i=""]=e;return[t,{lang:n,country:i}]}))),o=/^([a-z]{2})[-_]?([a-z]{0,2})$/i;t.normalizeCode=function(e){return e.replace(o,((e,t,n)=>{const i=t.toLowerCase(),r=n.toUpperCase();return r?`${i}-${r}`:i}))},t.isValidCode=function(e){return r.has(e)},t.lookupCode=function(e){return r.get(e)}},1605:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.codes=void 0,t.codes=[["af","Afrikaans"],["af-NA","Afrikaans","Namibia"],["af-ZA","Afrikaans","South Africa"],["ak","Akan"],["ak-GH","Akan","Ghana"],["am","Amharic"],["am-ET","Amharic","Ethiopia"],["ar","Arabic"],["ar-1","Arabic"],["ar-AE","Arabic","United Arab Emirates"],["ar-BH","Arabic","Bahrain"],["ar-DJ","Arabic","Djibouti"],["ar-DZ","Arabic","Algeria"],["ar-EG","Arabic","Egypt"],["ar-EH","Arabic"],["ar-ER","Arabic","Eritrea"],["ar-IL","Arabic","Israel"],["ar-IQ","Arabic","Iraq"],["ar-JO","Arabic","Jordan"],["ar-KM","Arabic","Comoros"],["ar-KW","Arabic","Kuwait"],["ar-LB","Arabic","Lebanon"],["ar-LY","Arabic","Libya"],["ar-MA","Arabic","Morocco"],["ar-MR","Arabic","Mauritania"],["ar-OM","Arabic","Oman"],["ar-PS","Arabic"],["ar-QA","Arabic","Qatar"],["ar-SA","Arabic","Saudi Arabia"],["ar-SD","Arabic","Sudan"],["ar-SO","Arabic","Somalia"],["ar-SS","Arabic"],["ar-SY","Arabic","Syria"],["ar-TD","Arabic","Chad"],["ar-TN","Arabic","Tunisia"],["ar-YE","Arabic","Yemen"],["as","Assamese"],["as-IN","Assamese","India"],["az","Azerbaijani"],["az-AZ","Azerbaijani","Azerbaijan"],["be","Belarusian"],["be-BY","Belarusian","Belarus"],["bg","Bulgarian"],["bg-BG","Bulgarian","Bulgaria"],["bm","Bambara"],["bm-ML","Bambara","Mali"],["bn","Bengali"],["bn-BD","Bengali","Bangladesh"],["bn-IN","Bengali","India"],["bo","Tibetan"],["bo-CN","Tibetan","China"],["bo-IN","Tibetan","India"],["br","Breton"],["br-FR","Breton","France"],["bs","Bosnian"],["bs-BA","Bosnian","Bosnia and Herzegovina"],["ca","Catalan"],["ca-AD","Catalan","Andorra"],["ca-ES","Catalan","Spain"],["ca-FR","Catalan","France"],["ca-IT","Catalan","Italy"],["ce","Chechen"],["ce-RU","Chechen","Russia"],["cs","Czech"],["cs-CZ","Czech","Czech Republic"],["cu","Old Slavonic"],["cu-RU","Old Slavonic","Russia"],["cy","Welsh"],["cy-GB","Welsh","United Kingdom"],["da","Danish"],["da-DK","Danish","Denmark"],["da-GL","Danish","Greenland"],["de","German"],["de-AT","German","Austria"],["de-BE","German","Belgium"],["de-CH","German","Switzerland"],["de-DE","German","Germany"],["de-IT","German","Italy"],["de-LI","German","Liechtenstein"],["de-LU","German","Luxembourg"],["dz","Dzongkha"],["dz-BT","Dzongkha","Bhutan"],["ee","Ewe"],["ee-GH","Ewe","Ghana"],["ee-TG","Ewe","Togo"],["el","Greek","Modern (1453-)"],["el-CY","Greek","Cyprus"],["el-GR","Greek","Greece"],["en","English"],["en-AG","English","Antigua and Barbuda"],["en-AI","English","Anguilla"],["en-AS","English","American Samoa"],["en-AT","English","Austria"],["en-AU","English","Australia"],["en-BB","English","Barbados"],["en-BE","English","Belgium"],["en-BI","English","Burundi"],["en-BM","English","Bermuda"],["en-BS","English","Bahamas"],["en-BW","English","Botswana"],["en-BZ","English","Belize"],["en-CA","English","Canada"],["en-CC","English","Cocos (Keeling) Islands"],["en-CH","English","Switzerland"],["en-CK","English","Cook Islands"],["en-CM","English","Cameroon"],["en-CX","English","Christmas Island"],["en-CY","English","Cyprus"],["en-DE","English","Germany"],["en-DG","English"],["en-DK","English","Denmark"],["en-DM","English","Dominica"],["en-ER","English","Eritrea"],["en-FI","English","Finland"],["en-FJ","English","Fiji"],["en-FK","English","Falkland Islands (Islas Malvinas)"],["en-FM","English","Micronesia"],["en-GB","English","United Kingdom"],["en-GD","English","Grenada"],["en-GG","English","Guernsey"],["en-GH","English","Ghana"],["en-GI","English","Gibraltar"],["en-GM","English","Gambia"],["en-GU","English","Guam"],["en-GY","English","Guyana"],["en-HK","English","Hong Kong"],["en-IE","English","Ireland"],["en-IL","English","Israel"],["en-IM","English","Isle of Man"],["en-IN","English","India"],["en-IO","English","British Indian Ocean Territory"],["en-JE","English","Jersey"],["en-JM","English","Jamaica"],["en-KE","English","Kenya"],["en-KI","English","Kiribati"],["en-KN","English","Saint Kitts and Nevis"],["en-KY","English","Cayman Islands"],["en-LC","English","Saint Lucia"],["en-LR","English","Liberia"],["en-LS","English","Lesotho"],["en-MG","English","Madagascar"],["en-MH","English","Marshall Islands"],["en-MO","English","Macau"],["en-MP","English","Northern Mariana Islands"],["en-MS","English","Montserrat"],["en-MT","English","Malta"],["en-MU","English","Mauritius"],["en-MW","English","Malawi"],["en-MY","English","Malaysia"],["en-NA","English","Namibia"],["en-NF","English","Norfolk Island"],["en-NG","English","Nigeria"],["en-NL","English","Netherlands"],["en-NR","English","Nauru"],["en-NU","English","Niue"],["en-NZ","English","New Zealand"],["en-PG","English","Papua New Guinea"],["en-PH","English","Philippines"],["en-PK","English","Pakistan"],["en-PN","English","Pitcairn Islands"],["en-PR","English","Puerto Rico"],["en-PW","English","Palau"],["en-RW","English","Rwanda"],["en-SB","English","Solomon Islands"],["en-SC","English","Seychelles"],["en-SD","English","Sudan"],["en-SE","English","Sweden"],["en-SG","English","Singapore"],["en-SH","English","Saint Helena"],["en-SI","English","Slovenia"],["en-SL","English","Sierra Leone"],["en-SS","English"],["en-SX","English"],["en-SZ","English","Swaziland"],["en-TC","English","Turks and Caicos Islands"],["en-TK","English","Tokelau"],["en-TO","English","Tonga"],["en-TT","English","Trinidad and Tobago"],["en-TV","English","Tuvalu"],["en-TZ","English","Tanzania"],["en-UG","English","Uganda"],["en-UM","English","Baker Island"],["en-US","English","United States"],["en-VC","English","Saint Vincent and the Grenadines"],["en-VG","English","British Virgin Islands"],["en-VI","English","U.S. Virgin Islands"],["en-VU","English","Vanuatu"],["en-WS","English","Samoa"],["en-ZA","English","South Africa"],["en-ZM","English","Zambia"],["en-ZW","English","Zimbabwe"],["eo","Esperanto"],["es","Spanish"],["es-AR","Spanish","Argentina"],["es-BO","Spanish","Bolivia"],["es-BR","Spanish","Brazil"],["es-BZ","Spanish","Belize"],["es-CL","Spanish","Chile"],["es-CO","Spanish","Colombia"],["es-CR","Spanish","Costa Rica"],["es-CU","Spanish","Cuba"],["es-DO","Spanish","Dominican Republic"],["es-EA","Spanish"],["es-EC","Spanish","Ecuador"],["es-ES","Spanish","Spain"],["es-GQ","Spanish","Equatorial Guinea"],["es-GT","Spanish","Guatemala"],["es-HN","Spanish","Honduras"],["es-IC","Spanish"],["es-MX","Spanish","Mexico"],["es-NI","Spanish","Nicaragua"],["es-PA","Spanish","Panama"],["es-PE","Spanish","Peru"],["es-PH","Spanish","Philippines"],["es-PR","Spanish","Puerto Rico"],["es-PY","Spanish","Paraguay"],["es-SV","Spanish","El Salvador"],["es-US","Spanish","United States"],["es-UY","Spanish","Uruguay"],["es-VE","Spanish","Venezuela"],["et","Estonian"],["et-EE","Estonian","Estonia"],["eu","Basque"],["eu-ES","Basque","Spain"],["fa","Persian"],["fa-AF","Persian","Afghanistan"],["fa-IR","Persian","Iran"],["ff","Fulah"],["ff-CM","Fulah","Cameroon"],["ff-GN","Fulah","Guinea"],["ff-MR","Fulah","Mauritania"],["ff-SN","Fulah","Senegal"],["fi","Finnish"],["fi-FI","Finnish","Finland"],["fo","Faroese"],["fo-DK","Faroese","Denmark"],["fo-FO","Faroese","Faroe Islands"],["fr","French"],["fr-BE","French","Belgium"],["fr-BF","French","Burkina Faso"],["fr-BI","French","Burundi"],["fr-BJ","French","Benin"],["fr-BL","French"],["fr-CA","French","Canada"],["fr-CD","French","Congo"],["fr-CF","French","Central African Republic"],["fr-CG","French","Congo"],["fr-CH","French","Switzerland"],["fr-CI","French, Cote d'Ivoire (Ivory Coast)"],["fr-CM","French","Cameroon"],["fr-DJ","French","Djibouti"],["fr-DZ","French","Algeria"],["fr-FR","French","France"],["fr-GA","French","Gabon"],["fr-GF","French","French Guiana"],["fr-GN","French","Guinea"],["fr-GP","French","Saint Barthelemy"],["fr-GQ","French","Equatorial Guinea"],["fr-HT","French","Haiti"],["fr-KM","French","Comoros"],["fr-LU","French","Luxembourg"],["fr-MA","French","Morocco"],["fr-MC","French","Monaco"],["fr-MF","French"],["fr-MG","French","Madagascar"],["fr-ML","French","Mali"],["fr-MQ","French","Martinique"],["fr-MR","French","Mauritania"],["fr-MU","French","Mauritius"],["fr-NC","French","New Caledonia"],["fr-NE","French","Niger"],["fr-PF","French","French Polynesia"],["fr-PM","French","Saint Pierre and Miquelon"],["fr-RE","French","Reunion"],["fr-RW","French","Rwanda"],["fr-SC","French","Seychelles"],["fr-SN","French","Senegal"],["fr-SY","French","Syria"],["fr-TD","French","Chad"],["fr-TG","French","Togo"],["fr-TN","French","Tunisia"],["fr-VU","French","Vanuatu"],["fr-WF","French","Wallis and Futuna"],["fr-YT","French","Mayotte"],["fy","Western Frisian"],["fy-NL","Western Frisian","Netherlands"],["ga","Irish"],["ga-IE","Irish","Ireland"],["gd","Gaelic"],["gd-GB","Gaelic","United Kingdom"],["gl","Galician"],["gl-ES","Galician","Spain"],["gu","Gujarati"],["gu-IN","Gujarati","India"],["gv","Manx"],["gv-IM","Manx","Isle of Man"],["ha","Hausa"],["ha-GH","Hausa","Ghana"],["ha-NE","Hausa","Niger"],["ha-NG","Hausa","Nigeria"],["he","Hebrew"],["he-IL","Hebrew","Israel"],["hi","Hindi"],["hi-IN","Hindi","India"],["hr","Croatian"],["hr-BA","Croatian","Bosnia and Herzegovina"],["hr-HR","Croatian","Croatia"],["hu","Hungarian"],["hu-HU","Hungarian","Hungary"],["hy","Armenian"],["hy-AM","Armenian","Armenia"],["id","Indonesian"],["id-ID","Indonesian","Indonesia"],["ig","Igbo"],["ig-NG","Igbo","Nigeria"],["ii","Sichuan Yi"],["ii-CN","Sichuan Yi","China"],["is","Icelandic"],["is-IS","Icelandic","Iceland"],["it","Italian"],["it-CH","Italian","Switzerland"],["it-IT","Italian","Italy"],["it-SM","Italian","San Marino"],["it-VA","Italian","Vatican City"],["ja","Japanese"],["ja-JP","Japanese","Japan"],["ka","Georgian"],["ka-GE","Georgian","Georgia"],["ki","Kikuyu"],["ki-KE","Kikuyu","Kenya"],["kk","Kazakh"],["kk-KZ","Kazakh","Kazakhstan"],["kl","Kalaallisut"],["kl-GL","Kalaallisut","Greenland"],["km","Central Khmer"],["km-KH","Central Khmer","Cambodia"],["kn","Kannada"],["kn-IN","Kannada","India"],["ko","Korean"],["ko-KP","Korean","Korea"],["ko-KR","Korean","Korea"],["ks","Kashmiri"],["ks-IN","Kashmiri","India"],["kw","Cornish"],["kw-GB","Cornish","United Kingdom"],["ky","Kirghiz"],["ky-KG","Kirghiz","Kyrgyzstan"],["lb","Luxembourgish"],["lb-LU","Luxembourgish","Luxembourg"],["lg","Ganda"],["lg-UG","Ganda","Uganda"],["ln","Lingala"],["ln-AO","Lingala","Angola"],["ln-CD","Lingala","Congo"],["ln-CF","Lingala","Central African Republic"],["ln-CG","Lingala","Congo"],["lo","Lao"],["lo-LA","Lao","Laos"],["lt","Lithuanian"],["lt-LT","Lithuanian","Lithuania"],["lu","Luba-Katanga"],["lu-CD","Luba-Katanga","Congo"],["lv","Latvian"],["lv-LV","Latvian","Latvia"],["mg","Malagasy"],["mg-MG","Malagasy","Madagascar"],["mk","Macedonian"],["mk-MK","Macedonian","Macedonia"],["ml","Malayalam"],["ml-IN","Malayalam","India"],["mn","Mongolian"],["mn-MN","Mongolian","Mongolia"],["mr","Marathi"],["mr-IN","Marathi","India"],["ms","Malay"],["ms-BN","Malay","Brunei"],["ms-MY","Malay","Malaysia"],["ms-SG","Malay","Singapore"],["mt","Maltese"],["mt-MT","Maltese","Malta"],["my","Burmese"],["my-MM","Burmese","Myanmar (Burma)"],["nb","Bokmål Norwegian"],["nb-NO","Bokmål Norwegian","Norway"],["nb-SJ","Bokmål Norwegian","Svalbard"],["nd","Ndebele, North"],["nd-ZW","Ndebele, North","Zimbabwe"],["ne","Nepali"],["ne-IN","Nepali","India"],["ne-NP","Nepali","Nepal"],["nl","Dutch"],["nl-AW","Dutch","Aruba"],["nl-BE","Dutch","Belgium"],["nl-BQ","Dutch"],["nl-CW","Dutch"],["nl-NL","Dutch","Netherlands"],["nl-SR","Dutch","Suriname"],["nl-SX","Dutch"],["nn","Norwegian Nynorsk"],["nn-NO","Norwegian Nynorsk","Norway"],["om","Oromo"],["om-ET","Oromo","Ethiopia"],["om-KE","Oromo","Kenya"],["or","Oriya"],["or-IN","Oriya","India"],["os","Ossetian"],["os-GE","Ossetian","Georgia"],["os-RU","Ossetian","Russia"],["pa","Panjabi"],["pa-IN","Panjabi","India"],["pa-PK","Panjabi","Pakistan"],["pl","Polish"],["pl-PL","Polish","Poland"],["ps","Pushto"],["ps-AF","Pushto","Afghanistan"],["pt","Portuguese"],["pt-AO","Portuguese","Angola"],["pt-BR","Portuguese","Brazil"],["pt-CH","Portuguese","Switzerland"],["pt-CV","Portuguese","Cape Verde"],["pt-GQ","Portuguese","Equatorial Guinea"],["pt-GW","Portuguese","Guinea-Bissau"],["pt-LU","Portuguese","Luxembourg"],["pt-MO","Portuguese","Macau"],["pt-MZ","Portuguese","Mozambique"],["pt-PT","Portuguese","Portugal"],["pt-ST","Portuguese","Sao Tome and Principe"],["pt-TL","Portuguese","Timor-Leste (East Timor)"],["qu","Quechua"],["qu-BO","Quechua","Bolivia"],["qu-EC","Quechua","Ecuador"],["qu-PE","Quechua","Peru"],["rm","Romansh"],["rm-CH","Romansh","Switzerland"],["rn","Rundi"],["rn-BI","Rundi","Burundi"],["ro","Romanian"],["ro-MD","Romanian","Moldova"],["ro-RO","Romanian","Romania"],["ru","Russian"],["ru-BY","Russian","Belarus"],["ru-KG","Russian","Kyrgyzstan"],["ru-KZ","Russian","Kazakhstan"],["ru-MD","Russian","Moldova"],["ru-RU","Russian","Russia"],["ru-UA","Russian","Ukraine"],["rw","Kinyarwanda"],["rw-RW","Kinyarwanda","Rwanda"],["se","Northern Sami"],["se-FI","Northern Sami","Finland"],["se-NO","Northern Sami","Norway"],["se-SE","Northern Sami","Sweden"],["sg","Sango"],["sg-CF","Sango","Central African Republic"],["si","Sinhala"],["si-LK","Sinhala","Sri Lanka"],["sk","Slovak"],["sk-SK","Slovak","Slovakia"],["sl","Slovenian"],["sl-SI","Slovenian","Slovenia"],["sn","Shona"],["sn-ZW","Shona","Zimbabwe"],["so","Somali"],["so-DJ","Somali","Djibouti"],["so-ET","Somali","Ethiopia"],["so-KE","Somali","Kenya"],["so-SO","Somali","Somalia"],["sq","Albanian"],["sq-AL","Albanian","Albania"],["sq-MK","Albanian","Macedonia"],["sq-XK","Albanian"],["sr","Serbian"],["sr-BA","Serbian","Bosnia and Herzegovina"],["sr-ME","Serbian","Montenegro"],["sr-RS","Serbian","Serbia"],["sr-XK","Serbian"],["sv","Swedish"],["sv-AX","Swedish","Aland"],["sv-FI","Swedish","Finland"],["sv-SE","Swedish","Sweden"],["sw","Swahili"],["sw-CD","Swahili","Congo"],["sw-KE","Swahili","Kenya"],["sw-TZ","Swahili","Tanzania"],["sw-UG","Swahili","Uganda"],["ta","Tamil"],["ta-IN","Tamil","India"],["ta-LK","Tamil","Sri Lanka"],["ta-MY","Tamil","Malaysia"],["ta-SG","Tamil","Singapore"],["te","Telugu"],["te-IN","Telugu","India"],["th","Thai"],["th-TH","Thai","Thailand"],["ti","Tigrinya"],["ti-ER","Tigrinya","Eritrea"],["ti-ET","Tigrinya","Ethiopia"],["tk","Turkmen"],["tk-TM","Turkmen","Turkmenistan"],["to","Tonga (Tonga Islands)"],["to-TO","Tonga (Tonga Islands)","Tonga"],["tr","Turkish"],["tr-CY","Turkish","Cyprus"],["tr-TR","Turkish","Turkey"],["ug","Uighur"],["ug-CN","Uighur","China"],["uk","Ukrainian"],["uk-UA","Ukrainian","Ukraine"],["ur","Urdu"],["ur-IN","Urdu","India"],["ur-PK","Urdu","Pakistan"],["uz","Uzbek"],["uz-AF","Uzbek","Afghanistan"],["uz-UZ","Uzbek","Uzbekistan"],["vi","Vietnamese"],["vi-VN","Vietnamese","Vietnam"],["vo","Volapük"],["yi","Yiddish"],["yi-1","Yiddish"],["yo","Yoruba"],["yo-BJ","Yoruba","Benin"],["yo-NG","Yoruba","Nigeria"],["zh","Chinese"],["zh-CN","Chinese","China"],["zh-HK","Chinese","Hong Kong"],["zh-MO","Chinese","Macau"],["zh-SG","Chinese","Singapore"],["zh-TW","Chinese","China"],["zu","Zulu"],["zu-ZA","Zulu","South Africa"]]},8335:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.init=void 0;const s=o(n(2411)),a=n(3186);t.init=function(){s.register("dictionaryHelper",(()=>new a.DictionaryHelper(s.get("client"))))}},8506:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dictionaryDefinitionToCustomDictDef=t.FailedToUpdateConfigFile=t.isUpdateSupportedForConfigFileFormat=t.normalizeWords=t.isWordLike=t.readSettingsFileAndApplyUpdate=t.removeLanguageIdsFromSettingsAndUpdate=t.writeAddLanguageIdsToSettings=t.removeLanguageIdsFromSettings=t.addLanguageIdsToSettings=t.removeWordFromSettingsAndUpdate=t.filterOutWords=t.removeWordsFromSettings=t.addIgnoreWordsToSettings=t.addIgnoreWordsToSettingsAndUpdate=t.writeSettings=t.readSettings=t.getDefaultSettings=t.configFilesToWatch=t.preferredConfigFiles=t.possibleConfigFiles=t.cspellConfigDirectory=t.nestedConfigLocations=t.configFileLocationGlob=t.configFileLocations=t.defaultFileName=void 0;const i=n(9759),r=n(9496),o=n(5085);t.defaultFileName="cspell.json",t.configFileLocations=[".cspell.json","cspell.json",".cSpell.json","cSpell.json",".cspell.jsonc","cspell.jsonc",".vscode/cspell.json",".vscode/cSpell.json",".vscode/.cspell.json","cspell.config.json","cspell.config.jsonc","cspell.config.yaml","cspell.config.yml","cspell.yaml","cspell.yml","package.json","cspell.config.js","cspell.config.cjs"],t.configFileLocationGlob=`**/{${t.configFileLocations.join(",")}}`,t.nestedConfigLocations=["package.json"],t.cspellConfigDirectory=".cspell",t.possibleConfigFiles=Object.freeze(new Set(t.configFileLocations)),t.preferredConfigFiles=["cspell.json","cspell.config.yaml","package.json"],t.configFilesToWatch=t.possibleConfigFiles;const s=Object.freeze({version:"0.2"});function a(e,t){const n=null!=t?t:s;return(0,o.readConfigFile)(e,n)}function c(e,t){const n=function(e,t){const n=(e||[]).concat(t).map((e=>e.trim())).filter((e=>!!e)).filter((0,i.uniqueFilter)());return n.sort(((e,t)=>e.toLowerCase().localeCompare(t.toLowerCase()))),n}(e.ignoreWords,t);return Object.assign(Object.assign({},e),{ignoreWords:n})}function u(e,t){const n=l(e.words||[],t);return Object.assign(Object.assign({},e),{words:n})}function l(e,t){const n=new Set(t.map((e=>e.toLowerCase())));return e.filter((e=>!n.has(e.toLowerCase())))}function h(e,t,n){if(e.enabledLanguageIds||!n){const n=(0,i.unique)((e.enabledLanguageIds||[]).concat(t));return Object.assign(Object.assign({},e),{enabledLanguageIds:n})}return e}function d(e,t){var n;if(e.enabledLanguageIds){const i=new Set(t),r=e.enabledLanguageIds.filter((e=>!i.has(e))),o=Object.assign(Object.assign({},e),{enabledLanguageIds:r});return(null===(n=o.enabledLanguageIds)||void 0===n?void 0:n.length)||delete o.enabledLanguageIds,o}return e}async function p(e,t){return await f(e,t),a(e)}async function f(e,t){try{await(0,o.updateConfigFile)(e,t)}catch(e){return Promise.reject(e instanceof o.UnhandledFileType?new v(`Update for config file format not supported.\n${e.message}`):e)}}t.getDefaultSettings=function(){return s},t.readSettings=a,t.writeSettings=function(e,t){return(0,o.writeConfigFile)(e,t).then((()=>t))},t.addIgnoreWordsToSettingsAndUpdate=function(e,t){return f(e,(e=>c(e,y(t))))},t.addIgnoreWordsToSettings=c,t.removeWordsFromSettings=u,t.filterOutWords=l,t.removeWordFromSettingsAndUpdate=function(e,t){return p(e,(e=>u(e,y(t))))},t.addLanguageIdsToSettings=h,t.removeLanguageIdsFromSettings=d,t.writeAddLanguageIdsToSettings=function(e,t,n){return p(e,(e=>h(e,t,n)))},t.removeLanguageIdsFromSettingsAndUpdate=function(e,t){return p(e,(e=>d(e,t)))},t.readSettingsFileAndApplyUpdate=f;const g=/[^\w\p{L}\p{M}_'-]+/gu,m=/^[\w\p{L}\p{M}_'-]+$/u;function y(e){return(e="string"!=typeof e?e.join(" "):e).replace(g," ").split(" ").map((e=>e.trim())).filter((e=>!!e)).filter((0,i.uniqueFilter)())}t.isWordLike=function(e){return m.test(e)},t.normalizeWords=y,t.isUpdateSupportedForConfigFileFormat=function(e){return(0,o.isHandled)(e)};class v extends Error{constructor(e){super(e)}}t.FailedToUpdateConfigFile=v,t.dictionaryDefinitionToCustomDictDef=function(e){return{name:e.name,uri:r.Uri.file(e.path)}}},3186:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t},s=this&&this.__rest||function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.__testing__=t.UnableToAddWordError=t.DictionaryTargetError=t.DictionaryHelper=void 0;const a=n(2380),c=o(n(890)),u=n(2037),l=o(n(9496)),h=n(9496),d=n(355),p=n(1750),f=n(8781),g=n(4545),m=n(5026),y=n(5076),v=n(3487),C=n(8506),S=n(3047),b=n(6177),E=n(94),w=n(6225);function D(e){return!!e.uri}async function x(e){const t=_(e);if(t)return await k(t.uri),t}function _(e){const t=m.CSpellConfigRepository.isCSpellConfigRepository(e)?function(e){const t=e.defaultDictionaryScope,n=T(t),i=d.Utils.dirname(e.configFileUri),r=`${C.cspellConfigDirectory}/${n}.txt`;return{uri:h.Uri.joinPath(i,r),relPath:"./"+r,name:n,scope:t}}(e):m.VSCodeRepository.isVSCodeRepository(e)?function(e){const t=(0,w.configurationTargetToDictionaryScope)(e.target);if(e.target===l.ConfigurationTarget.Global){const e=T(t),n=`${C.cspellConfigDirectory}/${e}.txt`,i=h.Uri.file((0,u.homedir)());return{uri:h.Uri.joinPath(i,n),relPath:"~/"+n,name:e,scope:t}}const n=e.getWorkspaceFolder();if(!n)return;const i="folder"===t?"-"+function(e){return e.toLowerCase().replace(/[^\w]/g,"-")}(n.name):"",r=T((0,w.configurationTargetToDictionaryScope)(e.target))+i,o=`${C.cspellConfigDirectory}/${r}.txt`;return{uri:h.Uri.joinPath(n.uri,o),relPath:`\${workspaceFolder:${n.name}}/${o}`,name:r,scope:t}}(e):void 0;return t}function T(e){return e?`custom-dictionary-${e}`:"custom-dictionary"}async function k(e,t=!1){(t=t||!await(0,a.fileExists)(e))&&(await c.mkdirp(d.Utils.dirname(e).fsPath),await c.writeFile(e.fsPath,"# Custom Dictionary Words\n","utf8"))}async function F(e,t){const n=m.CSpellConfigRepository.isCSpellConfigRepository(e)?function(e){const t=e.name;return(0,v.configUpdaterForKeys)([g.ConfigFields.dictionaries,g.ConfigFields.dictionaryDefinitions],(n=>{const{dictionaries:i=[],dictionaryDefinitions:r=[]}=n,o=new Map(r.map((e=>[e.name,e]))),s=new Set(i);return o.set(t,e),s.add(t),{dictionaries:[...s],dictionaryDefinitions:[...o.values()]}}))}(t):m.VSCodeRepository.isVSCodeRepository(e)?function(e){const t=e.name;return(0,v.configUpdaterForKeys)([g.ConfigFields.customDictionaries,g.ConfigFields.customFolderDictionaries,g.ConfigFields.customWorkspaceDictionaries,g.ConfigFields.customUserDictionaries],(n=>{const i=A(n),{customDictionaries:r}=i,o=s(i,["customDictionaries"]);return r[t]=e,Object.assign(Object.assign({},o),{customDictionaries:r})}))}(t):void 0;if(!n)throw Error(`Unsupported config ${e.kind}`);return e.update(n)}function A(e){const{customDictionaries:t={},customFolderDictionaries:n=[],customWorkspaceDictionaries:i=[],customUserDictionaries:r=[]}=e,o=[r.map(R("user")),i.map(R("workspace")),n.map(R("folder"))].reduce(O,t);return{customDictionaries:Object.assign(Object.assign({},o),t),customFolderDictionaries:void 0,customWorkspaceDictionaries:void 0,customUserDictionaries:void 0}}function R(e){return t=>"string"==typeof t?t:Object.assign(Object.assign({},t),{scope:t.scope||e})}function O(e,t){return t.reduce(P,e)}function P(e,t){const n=Object.assign({},e);return"string"==typeof t?n[t]=!0:n[t.name]=t,n}t.DictionaryHelper=class{constructor(e){this.client=e}async addWordsToTargets(e,t,n){const i=await this.resolveTargets(t,n);if(i)return this.addWordToDictionaries(e,i)}addWordsToConfigRep(e,t){const n=(0,S.createDictionaryTargetForConfigRep)(t);return this.addWordToDictionary(e,n)}addWordToDictionaries(e,t){return Promise.all(t.map((t=>this.addWordToDictionary(e,t)))).then()}async addWordToDictionary(e,t){e=(0,C.normalizeWords)(e);try{await t.addWords(e)}catch(n){throw new N(`Unable to add "${e}"`,t,e,n)}}async removeWordsFromTargets(e,t,n){e=(0,C.normalizeWords)(e);const i=await this.resolveTargets(t,n);if(i)return this.removeWordFromDictionaries(e,i)}removeWordsFromConfigRep(e,t){const n=(0,S.createDictionaryTargetForConfigRep)(t);return this.removeWordFromDictionary(e,n)}removeWordFromDictionaries(e,t){return Promise.all(t.map((t=>this.removeWordFromDictionary(e,t)))).then()}async removeWordFromDictionary(e,t){e=(0,C.normalizeWords)(e);try{await t.removeWords(e)}catch(n){throw new M(`Unable to remove "${e}" from "${t.name}"`,t,n)}}async addIssuesToDictionary(e){var t;if(!(e=e||(null===(t=l.window.activeTextEditor)||void 0===t?void 0:t.document)))return;const n=D(e)?e:await l.workspace.openTextDocument(e),i=(0,p.getCSpellDiags)(n.uri);if(!i.length)return;const r=new Set(i.map((e=>n.getText(e.range))));return this.addWordsToTargets([...r],y.dictionaryTargetBestMatches,n.uri)}async createCustomDictionary(e,t){const n=await x(e);if(!n)throw new Error("Unable to determine location to create dictionary.");if(await this.addCustomDictionaryToConfig(e,n.relPath,t||n.name,n.scope),m.CSpellConfigRepository.isCSpellConfigRepository(e)){const t=await l.window.showTextDocument(e.configFileUri,{viewColumn:l.ViewColumn.Active});(0,f.scrollToText)(t,"dictionaryDefinitions")}await l.window.showTextDocument(n.uri,{viewColumn:l.ViewColumn.Beside})}addCustomDictionaryToConfig(e,t,n,i){return F(e,{name:n,path:t,addWords:!0,scope:null!=i?i:e.defaultDictionaryScope})}async getDocConfig(e){if(e){const t=await l.workspace.openTextDocument(e);return this.client.getConfigurationForDocument(t)}return this.client.getConfigurationForDocument(void 0)}async resolveTargets(e,t){if("function"!=typeof e)return(0,b.configTargetsToDictionaryTargets)(e);const n=(await this.getDocConfig(t)).configTargets.map(E.mapConfigTargetToClientConfigTarget),i=await e(n);return i&&(0,b.configTargetsToDictionaryTargets)(i)}};class M extends Error{constructor(e,t,n){super(e),this.dictTarget=t,this.cause=n}}t.DictionaryTargetError=M;class N extends M{constructor(e,t,n,i){super(e,t,i),this.words=n,this.cause=i}}t.UnableToAddWordError=N,t.__testing__={addCustomDictionaryToConfig:F,calcDictInfoForConfigRep:_,combineCustomDictionaries:A,createCustomDictionaryFile:k,createCustomDictionaryForConfigRep:x,isTextDocument:D}},3047:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.createDictionaryTargetForConfigRep=t.createDictionaryTargetForCSpell=t.createDictionaryTargetForFile=void 0;const s=n(4561),a=o(n(890)),c=o(n(1017)),u=n(3837),l=n(5026),h=n(3153),d=/\.txt$/i;class p{constructor(e,t){this.uri=e,this.name=null!=t?t:(0,s.uriToName)(e)}addWords(e){return async function(e,t){return g((0,h.addWordsFn)(e),t)}(e,this)}removeWords(e){return g((0,h.removeWordsFn)(e),this)}}class f{constructor(e){this.rep=e,this.name=e.name}addWords(e){return this.rep.update((0,h.updaterAddWords)(e))}removeWords(e){return this.rep.update((0,h.updaterRemoveWords)(e))}}async function g(e,t){const n=t.uri.fsPath;if(!d.test(n))return Promise.reject(new Error(`Failed to add words to dictionary "${t.name}", unsupported format: "${t.uri.fsPath}".`));try{const t=e((await a.readFile(n,"utf8").catch((()=>""))).split(/\r?\n/g).filter((e=>!!e)));await a.mkdirp(c.dirname(n)),await a.writeFile(n,t.join("\n").trim().concat("\n"))}catch(e){return Promise.reject(new Error(`Failed to add words to dictionary "${t.name}", ${(0,u.format)(e)}`))}}t.createDictionaryTargetForFile=function(e,t){const{uri:n,name:i}=function(e){const t=e;return"string"==typeof t.name&&"object"==typeof t.uri}(e)?e:{uri:e,name:t};return new p(n,i)},t.createDictionaryTargetForCSpell=function(e,t){return new f((0,l.createCSpellConfigRepository)(e,t))},t.createDictionaryTargetForConfigRep=function(e){return new f(e)}},6177:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.configTargetToDictionaryTarget=t.configTargetsToDictionaryTargets=void 0;const i=n(5023),r=n(3047);function o(e){const t=(0,i.configTargetToConfigRepo)(e);if(t)return(0,r.createDictionaryTargetForConfigRep)(t);if("dictionary"!==e.kind)throw new Error(`Unknown config target ${e.kind}`);return(0,r.createDictionaryTargetForFile)(e.dictionaryUri,e.name)}t.configTargetsToDictionaryTargets=function(e){return e.map(o)},t.configTargetToDictionaryTarget=o},6015:(e,t)=>{"use strict";function n(e){return t=>"object"==typeof t&&t.kind===e}Object.defineProperty(t,"__esModule",{value:!0}),t.orderScope=t.isClientConfigTargetVSCode=t.isClientConfigTargetCSpell=t.isClientConfigTargetDictionary=t.isClientConfigTargetOfKind=t.ConfigScopes=t.ConfigKinds=void 0,t.ConfigKinds={Dictionary:"dictionary",Cspell:"cspell",Vscode:"vscode"},t.ConfigScopes={Unknown:"unknown",User:"user",Workspace:"workspace",Folder:"folder"},t.isClientConfigTargetOfKind=function(e,t){return"object"==typeof e&&e.kind===t},t.isClientConfigTargetDictionary=n(t.ConfigKinds.Dictionary),t.isClientConfigTargetCSpell=n(t.ConfigKinds.Cspell),t.isClientConfigTargetVSCode=n(t.ConfigKinds.Vscode);const i={user:1,workspace:2,folder:3,unknown:4};function r(e,t){return i[e]-i[t]}function o(e,t){return i[t]-i[e]}t.orderScope=function(e,t=!0){return[...e].sort(t?o:r)}},4545:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConfigFields=void 0;const i=n(3158);t.ConfigFields=Object.assign(Object.assign({},i.ConfigFields),{allowedSchemas:"allowedSchemas",blockCheckingWhenAverageChunkSizeGreaterThan:"blockCheckingWhenAverageChunkSizeGreaterThan",blockCheckingWhenLineLengthGreaterThan:"blockCheckingWhenLineLengthGreaterThan",blockCheckingWhenTextChunkSizeGreaterThan:"blockCheckingWhenTextChunkSizeGreaterThan",checkLimit:"checkLimit",customDictionaries:"customDictionaries",customFolderDictionaries:"customFolderDictionaries",customUserDictionaries:"customUserDictionaries",customWorkspaceDictionaries:"customWorkspaceDictionaries",diagnosticLevel:"diagnosticLevel",fixSpellingWithRenameProvider:"fixSpellingWithRenameProvider",logLevel:"logLevel",logFile:"logFile",maxDuplicateProblems:"maxDuplicateProblems",maxNumberOfProblems:"maxNumberOfProblems",noSuggestDictionaries:"noSuggestDictionaries",showAutocompleteSuggestions:"showAutocompleteSuggestions",showCommandsInEditorContextMenu:"showCommandsInEditorContextMenu",showStatus:"showStatus",showStatusAlignment:"showStatusAlignment",spellCheckDelayMs:"spellCheckDelayMs",spellCheckOnlyWorkspaceFiles:"spellCheckOnlyWorkspaceFiles",suggestionMenuType:"suggestionMenuType",suggestionNumChanges:"suggestionNumChanges",suggestionsTimeout:"suggestionsTimeout",workspaceRootPath:"workspaceRootPath"})},5085:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.__testing__=t.stringifyJson=t.parseJson=t.FormatError=t.SysLikeError=t.UnhandledFileType=t.createConfigFileReaderWriter=t.isHandled=t.writeConfigFile=t.readConfigFile=t.updateConfigFile=void 0;const s=n(6724),a=n(745),c=o(n(890)),u=n(9496),l=n(355),h=n(1078),d=n(3347),p=Symbol("format"),f=[{match:/package\.json$/i,handler:e=>new F(e)},{match:/\.jsonc?$/i,handler:e=>new k(e)},{match:/\.ya?ml$/i,handler:e=>new A(e)}];function g(e){return function(e){const t=m(e);if(t)return t.handler(e);throw new C(e)}(e)}function m(e){const t=e.with({fragment:"",query:""}).toString();for(const e of f)if(e.match.test(t))return e}t.updateConfigFile=function(e,t){return g(e)._update(t)},t.readConfigFile=async function(e,t){try{const t=g(e);return await t._read()}catch(e){return(0,a.isErrnoException)(e)&&"ENOENT"===e.code?Promise.resolve(t):Promise.reject(e)}},t.writeConfigFile=function(e,t){return g(e).write(t)},t.isHandled=function(e){return!!m(e)},t.createConfigFileReaderWriter=g;const y={version:"0.2",ignorePaths:[],dictionaryDefinitions:[],dictionaries:[],words:[],ignoreWords:[],import:[]};function v(e,t){return e.catch((e=>{if("ENOENT"!==e.code)throw e;return t}))}class C extends Error{constructor(e){super(`Unhandled file type: "${l.Utils.basename(e)}"`)}}t.UnhandledFileType=C;class S extends Error{constructor(e,t,n){super(e),this.code=t,this.errno=n}}t.SysLikeError=S;class b extends Error{constructor(e){super(e)}}function E(e){const t=function(e){return{spaces:_(e),newlineAtEndOfFile:x(e)}}(e),n=(0,s.parse)(e);if(null==n)return{};if("object"!=typeof n)throw new b("Invalid cspell JSON file.");return D(n,t)}function w(e,t,n=!0){var i;const r=null==(o=e)||"object"!=typeof o?void 0:o[p];var o;t=(null==r?void 0:r.spaces)||t||4;const a=null===(i=null==r?void 0:r.newlineAtEndOfFile)||void 0===i||i,c=n?(0,s.stringify)(e,null,t):JSON.stringify(e,null,t);return a?c+"\n":c}function D(e,t){return null==e||"object"!=typeof e||(e[p]=t),e}function x(e){return/\n$/.test(e)}function _(e){const t=e.match(/^[ \t]+(?=")/m);if(t)return t[0]}t.FormatError=b,t.parseJson=E,t.stringifyJson=w;class T{constructor(e){this.uri=e}async read(e){return(0,d.extractKeys)(await this._read(),e)}update(e,t){return this._update((n=>e((0,d.extractKeys)(n,t))))}mkdir(){return c.mkdirp(u.Uri.joinPath(this.uri,"..").fsPath)}}class k extends T{async _update(e){const t=await v(this._read(),y),n=(0,s.assign)(t,e(t));return this.write(n)}async write(e){await this.mkdir();const t=w(e),n="\n"!==t[t.length-1]?t+"\n":t;return c.writeFile(this.uri.fsPath,n)}async _read(){const e=this.uri;return E(await c.readFile(e.fsPath,"utf8"))}}class F extends T{async _update(e){const t=this.uri.fsPath,n=E(await c.readFile(t,"utf8")),i=n.cspell||Object.assign({},y);return n.cspell=Object.assign(i,e(i)),c.writeFile(t,w(n,2,!1))}async write(e){const t=this.uri.fsPath,n=E(await c.readFile(t,"utf8"));return n.cspell=e,c.writeFile(t,w(n,2,!1))}async _read(){const e=E(await c.readFile(this.uri.fsPath,"utf8"));if(!e.cspell||"object"!=typeof e.cspell)throw new S("`cspell` section missing from package.json","ENOENT");return e.cspell}}class A extends T{async _update(e){const t=await v(this._read(),y),n=Object.assign({},t,e(t));return this.write(n)}async write(e){return await this.mkdir(),c.writeFile(this.uri.fsPath,(0,h.stringify)(e))}async _read(){const e=await c.readFile(this.uri.fsPath,"utf8");return(0,h.parse)(e)}}t.__testing__={settingsFileTemplate:y,detectIndent:_,injectFormatting:D,SymbolFormat:p}},3347:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extractKeys=void 0,t.extractKeys=function(e,t){const n={};for(const i of t)n[i]=e[i];return n}},5026:function(e,t,n){"use strict";var i=this&&this.__rest||function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.__testing__=t.VSCodeRepository=t.CSpellConfigRepository=t.createVSCodeConfigRepository=t.createCSpellConfigRepository=t.ConfigRepositoryBase=void 0;const r=n(4561),o=n(2131),s=n(9496),a=n(4545),c=n(5085),u=n(3487),l=n(6225),h=n(3381);class d{setValue(e,t){return this.update((0,u.configUpdaterForKey)(e,t))}updateValue(e,t){return this.update((0,u.configUpdaterForKey)(e,t))}}t.ConfigRepositoryBase=d,t.createCSpellConfigRepository=function(e,t){const n=function(e){const t=e;return!!t.update&&!!t.uri}(e)?e:(0,c.createConfigFileReaderWriter)(e);return new p(n,t)},t.createVSCodeConfigRepository=function(e,t,n){const i=function(e){return"object"==typeof e&&!!e.read&&!!e.write}(e)?e:(0,h.createVSConfigReaderWriter)(e,t,!!n);return new f(i)};class p extends d{constructor(e,t){super(),this.configRW=e,this.name=t||(0,r.uriToName)(e.uri),this.kind="cspell",this.configFileUri=e.uri}getValue(e){return this.configRW.read([e])}update(e){return this.configRW.update(m(e),e.keys)}static isCSpellConfigRepository(e){return e instanceof p}}t.CSpellConfigRepository=p;class f extends d{constructor(e){super(),this.rw=e,this.name=e.name,this.defaultDictionaryScope=(0,l.configurationTargetToDictionaryScope)(e.target),this.kind="vscode"}get target(){return this.rw.target}get scope(){return this.rw.scope}getWorkspaceFolder(){var e,t;if("user"===this.defaultDictionaryScope)return;if("workspace"===this.defaultDictionaryScope)return null===(e=s.workspace.workspaceFolders)||void 0===e?void 0:e[0];const n=this.scope;return n?g(n)?n:v(n)?s.workspace.getWorkspaceFolder(n):y(n)?s.workspace.getWorkspaceFolder(n.uri):null===(t=s.workspace.workspaceFolders)||void 0===t?void 0:t[0]:void 0}update(e){const{fn:t,keys:n}=this.mappers(e.keys,e.updateFn);return this.rw.update(t,n)}getValue(e){return this.rw.read([e])}mappers(e,t){if(this.target!==s.ConfigurationTarget.Global)return{fn:t,keys:e};const n=new Set(e);return n.has(a.ConfigFields.words)&&n.add(a.ConfigFields.userWords),{fn:e=>function(e){const{words:t,userWords:n}=e,r=i(e,["words","userWords"]),o=Object.assign({},r);return Object.keys(e).includes(a.ConfigFields.words)&&(o.words=void 0,o.userWords=null==t?void 0:t.concat(n||[])),o}(t(function(e){var t;const{userWords:r,words:o}=e,s=i(e,["userWords","words"]),c=Object.assign({},s);return(n.has(a.ConfigFields.userWords)||r||o)&&(c.words=null!==(t=null==r?void 0:r.concat(null!=o?o:[]))&&void 0!==t?t:o),c}(e))),keys:[...n]}}static isVSCodeRepository(e){return e instanceof f}}function g(e){if(!e)return!1;const t=e;return v(t.uri)&&"string"==typeof t.name&&"number"==typeof t.index}function m(e){return t=>e.updateFn((0,o.pick)(t,e.keys))}function y(e){return"object"==typeof e&&v(e.uri)}function v(e){if("object"!=typeof e)return!1;if(e instanceof s.Uri)return!0;const t=e;return void 0!==t.scheme&&void 0!==t.authority&&void 0!==t.path}t.VSCodeRepository=f,t.__testing__={fnUpdateFilterKeys:m,hasUri:y,isUri:v,isWorkspaceFolder:g}},5023:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorCannotFindConfigRepoForTarget=t.readFromConfigTargets=t.applyUpdateToConfigTargets=t.configTargetToConfigRepo=void 0;const i=n(2511),r=n(5026),o=n(6225),s=new Set(["dictionary","cspell","vscode"]);function a(e){if(!s.has(e.kind))throw new Error(`Unknown target ${e.kind}`);switch(e.kind){case"dictionary":return;case"cspell":return(0,r.createCSpellConfigRepository)((0,i.toUri)(e.configUri),e.name);case"vscode":return(0,r.createVSCodeConfigRepository)((0,o.dictionaryScopeToConfigurationTarget)(e.scope),e.configScope||e.docUri,!!e.useMerge)}}function c(e){const t=a(e);if(void 0===t)throw new u(e);return t}t.configTargetToConfigRepo=a,t.applyUpdateToConfigTargets=function(e,t){const n=t.map(c).map((t=>t.update(e)));return Promise.all(n).then((()=>{}))},t.readFromConfigTargets=function(e,t){const n=t.map((async t=>{const n=c(t);return[t,await n.getValue(e)]}));return Promise.all(n)};class u extends Error{constructor(e){super(`Cannot find appropriate config repository for ${e.kind}:${e.name}`),this.target=e}}t.ErrorCannotFindConfigRepoForTarget=u},5076:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.UnableToFindTarget=t.createClientConfigTargetVSCode=t.createClientConfigTargetDictionary=t.createClientConfigTargetCSpell=t.andPattern=t.negatePattern=t.createConfigTargetMatchPattern=t.doesTargetMatchPattern=t.filterClientConfigTarget=t.filterClientConfigTargets=t.quickPickTarget=t.quickPickTargets=t.quickPickBestMatchTarget=t.buildQuickPickMatchTargetFn=t.buildQuickPickBestMatchTargetFn=t._buildQuickPickBestMatchTargetFn=t.findBestMatchingConfigTargets=t.patternMatchAll=t.patternMatchNoDictionaries=t.dictionaryTargetBestMatchesVSCodeFolder=t.dictionaryTargetBestMatchesVSCodeWorkspace=t.dictionaryTargetBestMatchesVSCodeUser=t.dictionaryTargetBestMatchesCSpell=t.dictionaryTargetBestMatchesFolder=t.dictionaryTargetBestMatchesWorkspace=t.dictionaryTargetBestMatchesUser=t.dictionaryTargetBestMatches=t.matchScopeUnknown=t.matchScopeFolder=t.matchScopeWorkspace=t.matchScopeUser=t.matchScopeAllButUser=t.matchScopeAll=t.matchScopeNone=t.matchKindDictionary=t.matchKindVSCode=t.matchKindCSpell=t.matchKindConfig=t.matchKindAll=t.matchKindNone=void 0;const s=n(4561),a=o(n(9496)),c=n(2511),u=n(6015),l=n(6225);t.matchKindNone={dictionary:!1,cspell:!1,vscode:!1},t.matchKindAll={dictionary:!0,cspell:!0,vscode:!0},t.matchKindConfig={cspell:!0,vscode:!0},t.matchKindCSpell={cspell:!0},t.matchKindVSCode={vscode:!0},t.matchKindDictionary={dictionary:!0,cspell:!1,vscode:!1},t.matchScopeNone={unknown:!1,folder:!1,workspace:!1,user:!1},t.matchScopeAll={unknown:!0,folder:!0,workspace:!0,user:!0},t.matchScopeAllButUser={unknown:!0,folder:!0,workspace:!0,user:!1},t.matchScopeUser={user:!0},t.matchScopeWorkspace={workspace:!0},t.matchScopeFolder={folder:!0},t.matchScopeUnknown={unknown:!0};const h=Object.freeze(Object.values(u.ConfigKinds)),d=Object.freeze(Object.values({dictionary:"dictionary",cspell:"cspell",vscode:"vscode",unknown:"unknown",folder:"folder",workspace:"workspace",user:"user"}));function p(e,t){const n=[];for(const i of t)if(e[i.kind]&&e[i.scope]){if(n.length&&(n[0].kind!==i.kind||n[0].scope!==i.scope))break;n.push(i)}return n}function f(...e){return g(S(...e))}function g(e,t=!1){return async function(n){return m(p(e,n),t)}}async function m(e,t=!1){if(!e.length)throw new x("No matching configuration found.");if(1===e.length)return e;const n="Choose Destination",i=e.map((e=>({label:e.name,_found:e}))),r=t?await a.window.showQuickPick(i,{title:n,canPickMany:!0}):await a.window.showQuickPick(i,{title:n});return r?(Array.isArray(r)?r:[r]).map((e=>e._found)):void 0}function y(e,t){const n="function"==typeof t?t:v(t);return e.filter(n)}function v(e){return t=>C(t,e)}function C(e,t){return!!t[e.kind]&&!!t[e.scope]}function S(...e){let t={};for(const n of e)"string"==typeof n?t[n]=!0:t=b(t,n,d);return t}function b(e,t,n){const i=Object.assign({},e);for(const e of n){const n=t[e];void 0!==n&&(i[e]=n)}return i}function E(e,t){const n={};for(const i of t)n[i]=D(e[i]);return n}function w(e,t){return void 0===e?t:void 0===t?e:e&&t}function D(e){return void 0===e?void 0:!e}t.dictionaryTargetBestMatches=f(t.matchKindAll,t.matchScopeAllButUser),t.dictionaryTargetBestMatchesUser=f(t.matchKindAll,t.matchScopeUser),t.dictionaryTargetBestMatchesWorkspace=f(t.matchKindAll,t.matchScopeWorkspace),t.dictionaryTargetBestMatchesFolder=f(t.matchKindAll,t.matchScopeFolder),t.dictionaryTargetBestMatchesCSpell=f(t.matchKindCSpell,t.matchScopeAll),t.dictionaryTargetBestMatchesVSCodeUser=f(t.matchKindVSCode,t.matchScopeUser),t.dictionaryTargetBestMatchesVSCodeWorkspace=f(t.matchKindVSCode,t.matchScopeWorkspace),t.dictionaryTargetBestMatchesVSCodeFolder=f(t.matchKindVSCode,t.matchScopeFolder),t.patternMatchNoDictionaries=S(E(t.matchKindDictionary,h),t.matchScopeAll),t.patternMatchAll=S(t.matchKindAll,t.matchScopeAll),t.findBestMatchingConfigTargets=p,t._buildQuickPickBestMatchTargetFn=f,t.buildQuickPickBestMatchTargetFn=g,t.buildQuickPickMatchTargetFn=function(e){return async function(t){return m(y(t,e))}},t.quickPickBestMatchTarget=async function(e,t,n=!1){return g(t,n)(e)},t.quickPickTargets=m,t.quickPickTarget=async function(e){const t=await m(e,!1);return t&&t[0]},t.filterClientConfigTargets=y,t.filterClientConfigTarget=v,t.doesTargetMatchPattern=C,t.createConfigTargetMatchPattern=S,t.negatePattern=function(e){return E(e,d)},t.andPattern=function(e,t){return function(e,t,n){const i={};for(const r of n){const n=w(e[r],t[r]);void 0!==n&&(i[r]=n)}return i}(e,t,d)},t.createClientConfigTargetCSpell=function(e,t,n){return{kind:"cspell",scope:t,name:n||(0,s.uriToName)(e),configUri:e}},t.createClientConfigTargetDictionary=function(e,t,n){return{kind:"dictionary",scope:t,name:n||(0,s.uriToName)(e),dictionaryUri:e}},t.createClientConfigTargetVSCode=function(e,t,n){const i=(0,l.configurationTargetToDictionaryScope)(e);return{kind:"vscode",scope:i,name:i,docUri:(0,c.toUri)(t),configScope:n}};class x extends Error{constructor(e){super(e)}}t.UnableToFindTarget=x},3487:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.configUpdaterForKeys=t.configUpdaterForKey=void 0,t.configUpdaterForKey=function(e,t){const n=function(e,t){return"function"==typeof t?t:()=>t}(0,t);return{updateFn:t=>({[e]:n(t[e])}),keys:[e]}},t.configUpdaterForKeys=function(e,t){return{updateFn:"function"==typeof t?t:()=>t,keys:e}}},3153:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removeWordsFn=t.addWordsFn=t.updaterRemoveWords=t.updaterAddWords=void 0;const i=n(3487);function r(e=[]){return t=>s([...new Set((t||[]).concat(e))])}function o(e){return t=>{const n=new Set(t||[]);for(const t of e)n.delete(t);return s([...n])}}function s(e){return e.sort(a)}function a(e,t){return e.localeCompare(t)}t.updaterAddWords=function(e){return(0,i.configUpdaterForKey)("words",r(e))},t.updaterRemoveWords=function(e){return(0,i.configUpdaterForKey)("words",o(e))},t.addWordsFn=r,t.removeWordsFn=o},2979:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sectionCSpell=t.Scopes=t.normalizeTarget=t.inspectConfigKeys=t.inspectConfig=t.getSettingsFromVSConfig=t.getSettingFromVSConfig=t.getScopedSettingFromVSConfig=t.ConfigurationTarget=t.toggleEnableSpellChecker=t.setEnableSpellChecking=t.enableLocaleForTarget=t.enableLanguageIdForTarget=t.enableLanguageId=t.disableLanguageId=t.createConfigFileRelativeToDocumentUri=t.addIgnoreWordsToSettings=t.configFilesToWatch=t.configFileLocationGlob=t.ConfigFields=void 0;var i=n(4545);Object.defineProperty(t,"ConfigFields",{enumerable:!0,get:function(){return i.ConfigFields}});var r=n(8506);Object.defineProperty(t,"configFileLocationGlob",{enumerable:!0,get:function(){return r.configFileLocationGlob}}),Object.defineProperty(t,"configFilesToWatch",{enumerable:!0,get:function(){return r.configFilesToWatch}});var o=n(9273);Object.defineProperty(t,"addIgnoreWordsToSettings",{enumerable:!0,get:function(){return o.addIgnoreWordsToSettings}}),Object.defineProperty(t,"createConfigFileRelativeToDocumentUri",{enumerable:!0,get:function(){return o.createConfigFileRelativeToDocumentUri}}),Object.defineProperty(t,"disableLanguageId",{enumerable:!0,get:function(){return o.disableLanguageId}}),Object.defineProperty(t,"enableLanguageId",{enumerable:!0,get:function(){return o.enableLanguageId}}),Object.defineProperty(t,"enableLanguageIdForTarget",{enumerable:!0,get:function(){return o.enableLanguageIdForTarget}}),Object.defineProperty(t,"enableLocaleForTarget",{enumerable:!0,get:function(){return o.enableLocaleForTarget}}),Object.defineProperty(t,"setEnableSpellChecking",{enumerable:!0,get:function(){return o.setEnableSpellChecking}}),Object.defineProperty(t,"toggleEnableSpellChecker",{enumerable:!0,get:function(){return o.toggleEnableSpellChecker}});var s=n(1419);Object.defineProperty(t,"ConfigurationTarget",{enumerable:!0,get:function(){return s.ConfigurationTarget}}),Object.defineProperty(t,"getScopedSettingFromVSConfig",{enumerable:!0,get:function(){return s.getScopedSettingFromVSConfig}}),Object.defineProperty(t,"getSettingFromVSConfig",{enumerable:!0,get:function(){return s.getSettingFromVSConfig}}),Object.defineProperty(t,"getSettingsFromVSConfig",{enumerable:!0,get:function(){return s.getSettingsFromVSConfig}}),Object.defineProperty(t,"inspectConfig",{enumerable:!0,get:function(){return s.inspectConfig}}),Object.defineProperty(t,"inspectConfigKeys",{enumerable:!0,get:function(){return s.inspectConfigKeys}}),Object.defineProperty(t,"normalizeTarget",{enumerable:!0,get:function(){return s.normalizeTarget}}),Object.defineProperty(t,"Scopes",{enumerable:!0,get:function(){return s.Scopes}}),Object.defineProperty(t,"sectionCSpell",{enumerable:!0,get:function(){return s.sectionCSpell}})},2187:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.languageIds=void 0,t.languageIds=["asciidoc","bat","c","clojure","coffeescript","cpp","csharp","css","dart","diff","dockerfile","fsharp","git-commit","git-rebase","go","groovy","handlebars","html","ini","jade","java","javascript","javascriptreact","json","julia","less","lua","makefile","markdown","objective-c","perl","perl6","php","plaintext","powershell","properties","pug","python","r","razor","ruby","rust","scss","shaderlab","shellscript","sql","swift","typescript","typescriptreact","vb","vue","xml","xsl","yaml"]},94:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapConfigTargetToClientConfigTarget=void 0;const i=n(2511);t.mapConfigTargetToClientConfigTarget=function(e){switch(e.kind){case"vscode":return function(e){const{name:t,kind:n,scope:r,docUri:o}=e;return{name:t,kind:n,scope:r,docUri:(0,i.toUri)(o),configScope:void 0}}(e);case"cspell":return function(e){const{name:t,kind:n,scope:r,configUri:o,docUri:s}=e;return{name:t,kind:n,scope:r,docUri:(0,i.toUri)(s),configUri:(0,i.toUri)(o)}}(e);case"dictionary":return function(e){const{name:t,kind:n,scope:r,dictionaryUri:o,docUri:s}=e;return{name:t,kind:n,scope:r,docUri:(0,i.toUri)(s),dictionaryUri:(0,i.toUri)(o)}}(e)}}},3498:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.calcRelevantTargetInfo=t.findInheritedTargetValue=t.setConfigFieldQuickPick=t.setConfigFieldQuickPickBestTarget=t.orderTargetsLocalToGlobal=t.applyToConfig=t.readConfigTargetValues=t.normalizeLocale=void 0;const i=n(6015),r=n(5023),o=n(5076),s=n(3487);var a=n(9540);function c(e,t,n,i){e=i?(0,o.filterClientConfigTargets)(e,i):e;const a=(0,s.configUpdaterForKey)(t,n);return(0,r.applyUpdateToConfigTargets)(a,e)}function u(e){const t=e.map((e=>e.scope)),n=(0,i.orderScope)(t,!0),r=[];return n.map((t=>e.filter((e=>e.scope===t)))).forEach((e=>e.forEach((e=>r.push(e))))),r}Object.defineProperty(t,"normalizeLocale",{enumerable:!0,get:function(){return a.normalizeLocale}}),t.readConfigTargetValues=function(e,t){return(0,r.readFromConfigTargets)(t,e)},t.applyToConfig=c,t.orderTargetsLocalToGlobal=u,t.setConfigFieldQuickPickBestTarget=async function(e,t,n){const i=await(0,o.quickPickBestMatchTarget)(e,o.patternMatchNoDictionaries);if(i&&i.length)return c(i,t,n)},t.setConfigFieldQuickPick=async function(e,t,n){const i=await(0,o.quickPickTargets)(e);if(i&&i.length)return c(i,t,n)},t.findInheritedTargetValue=function(e,t,n){var i;let r;for(const[o,s]of[...e].reverse()){if(o===t)return r;r=null!==(i=s[n])&&void 0!==i?i:r}return r},t.calcRelevantTargetInfo=function(e){const{targets:t,scopes:n}=e,r=new Set((0,i.orderScope)(n)),o=u(t),s=o.filter((e=>r.has(e.scope)));return{targets:t,possibleScopes:n,orderedTargets:o,possibleTargets:s}}},1536:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toggleEnableSpellChecker=t.setEnableSpellChecking=void 0;const i=n(3498),r="enabled";t.setEnableSpellChecking=function(e,t){const{possibleTargets:n}=(0,i.calcRelevantTargetInfo)(e);return(0,i.setConfigFieldQuickPick)(n,r,t)},t.toggleEnableSpellChecker=async function(e){var t,n;const{possibleTargets:o,orderedTargets:s}=(0,i.calcRelevantTargetInfo)(e),a=new Map(await(0,i.readConfigTargetValues)(s,r)),c=o.filter((e=>{var t;return void 0!==(null===(t=a.get(e))||void 0===t?void 0:t.enabled)}));if(!o.length)return;const u=null!==(t=c[c.length-1])&&void 0!==t?t:o[o.length-1],l=null===(n=a.get(u))||void 0===n?void 0:n.enabled,h=(0,i.findInheritedTargetValue)(a,u,r),d=null==h||h,p=null!=l?l:d,f=d!==p?void 0:!p;return(0,i.applyToConfig)([u],r,(()=>f))}},8682:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.__testing__=t.enableLocaleForTarget=void 0;const i=n(6015),r=n(5076),o=n(3498);function s(e){return(0,o.normalizeLocale)(e).split(",").filter((e=>!!e))}function a(e,t){const n=s(e),i=new Set(s(t||""));return n.forEach((e=>i.add(e))),[...i].join(",")||void 0}function c(e,t){const n=s(e),i=new Set(s(t||""));return n.forEach((e=>i.delete(e))),[...i].join(",")||void 0}function u(e,t){if(!e||!t)return!1;const n=new Set(s(e)),i=s(t);for(const e of i)if(n.has(e))return!0;return!1}function l(e,t){if(!e||!t)return!1;const n=new Set(s(t)),i=s(e);for(const e of i)if(!n.has(e))return!1;return!0}t.enableLocaleForTarget=async function(e,t,n,s){n=n.map((e=>{var t;return Object.assign(Object.assign({},e),{useMerge:null!==(t=e.useMerge)&&void 0!==t?t:"vscode"===e.kind})}));const h=new Set((0,i.orderScope)(s)),d=new Set((0,o.orderTargetsLocalToGlobal)(n)),p=new Map(await(0,o.readConfigTargetValues)([...d],"language")),f=new Set([...d].filter((e=>h.has(e.scope))));if(t){const t=[...f],n=new Set([...p].filter((([t,n])=>l(e,n.language))).map((([e])=>e)));let i=!1;for(const e of f)i=i||n.has(e),i&&f.delete(e);f.size||t.filter((e=>!n.has(e))).forEach((e=>f.add(e)))}else[...p].filter((([t,n])=>!u(e,n.language))).forEach((([e])=>f.delete(e)));const g=f.size>1?await(0,r.quickPickTarget)([...f]):[...f][0];if(!g)return;const m=function(e,t,n){var i;const r=[...n].reverse();let o;for(const[e,n]of r)if(o=null!==(i=n.language)&&void 0!==i?i:o,e===t)break;return o}(0,g,p),y=t?t=>a(e,t||m):t=>c(e,t);return(0,o.applyToConfig)([g],"language",y)},t.__testing__={addLocaleToCurrentLocale:a,removeLocaleFromCurrentLocale:c,doLocalesIntersect:u,isLocaleSubsetOf:l}},9273:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.createConfigFileRelativeToDocumentUri=t.createConfigFile=t.enableLanguageIdForTarget=t.addIgnoreWordsToSettings=t.disableLanguageId=t.enableLanguageId=t.hasWorkspaceLocation=t.enableLocaleForTarget=t.toggleEnableSpellChecker=t.setEnableSpellChecking=void 0;const s=o(n(9496)),a=n(9496),c=n(9759),u=n(5085),l=n(8506),h=n(3498);var d=n(1536);Object.defineProperty(t,"setEnableSpellChecking",{enumerable:!0,get:function(){return d.setEnableSpellChecking}}),Object.defineProperty(t,"toggleEnableSpellChecker",{enumerable:!0,get:function(){return d.toggleEnableSpellChecker}});var p=n(8682);function f(e,t,n){return(0,h.setConfigFieldQuickPick)(n,"enableFiletypes",(n=>function(e,t,n){const i=new Set(n||[]),r="!"+e;return t?i.has(r)?i.delete(r):i.add(e):i.has(e)?i.delete(e):i.add(r),i.size?[...i].sort():void 0}(e,t,n)))}Object.defineProperty(t,"enableLocaleForTarget",{enumerable:!0,get:function(){return p.enableLocaleForTarget}}),t.hasWorkspaceLocation=function(){var e;return!!a.workspace.workspaceFile||!!(null===(e=a.workspace.workspaceFolders)||void 0===e?void 0:e[0])},t.enableLanguageId=async function(e,t){await f(t,!0,e)},t.disableLanguageId=async function(e,t){await f(t,!1,e)},t.addIgnoreWordsToSettings=function(e,t){const n=(0,l.normalizeWords)(t);return(0,h.setConfigFieldQuickPick)(e,"ignoreWords",(e=>(0,c.unique)(n.concat(e||[]).sort())))},t.enableLanguageIdForTarget=f;const g={version:"0.2",ignorePaths:[],dictionaryDefinitions:[],dictionaries:[],words:[],ignoreWords:[],import:[]};async function m(e,t){if(!t&&await(0,u.readConfigFile)(e,void 0)){const e="Overwrite";if(await s.window.showWarningMessage("Configuration file already exists.",{modal:!0},e)!==e)return}return await(0,u.writeConfigFile)(e,g),e}t.createConfigFile=m,t.createConfigFileRelativeToDocumentUri=async function(e,t){const n=(i=e)&&s.workspace.getWorkspaceFolder(i)||(null===(r=a.workspace.workspaceFolders)||void 0===r?void 0:r[0]);var i,r;if(!n)throw new Error("Unable to determine location for configuration file.");if("file"!==n.uri.scheme)throw new Error(`Unsupported scheme: ${n.uri.scheme}`);const o=new Set(l.preferredConfigFiles);await function(e){return async function(e){const t=a.Uri.joinPath(e,"package.json");try{return(await a.workspace.fs.stat(t)).type===s.FileType.File}catch(e){return!1}}(e.uri)}(n)||o.delete("package.json");const c=await s.window.showQuickPick([...o],{title:"Choose config file"});if(!c)return;const u=a.Uri.joinPath(n.uri,c);return await m(u,t),u}},6225:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.configurationTargetToClientConfigScopeInfluenceRange=t.configurationTargetToClientConfigScope=t.clientConfigScopeToConfigurationTarget=t.dictionaryScopeToConfigurationTarget=t.configurationTargetToDictionaryScope=void 0;const i=n(9496),r={[i.ConfigurationTarget.Global]:"user",[i.ConfigurationTarget.Workspace]:"workspace",[i.ConfigurationTarget.WorkspaceFolder]:"folder"},o={user:i.ConfigurationTarget.Global,workspace:i.ConfigurationTarget.Workspace,folder:i.ConfigurationTarget.WorkspaceFolder},s=[i.ConfigurationTarget.Global,i.ConfigurationTarget.Workspace,i.ConfigurationTarget.WorkspaceFolder];function a(e){return o[e]}function c(e){return r[e]}t.configurationTargetToDictionaryScope=function(e){return r[e]},t.dictionaryScopeToConfigurationTarget=function(e){return a(e)},t.clientConfigScopeToConfigurationTarget=a,t.configurationTargetToClientConfigScope=c,t.configurationTargetToClientConfigScopeInfluenceRange=function(e){const t=[],n=s.indexOf(e);if(n<0)return t;for(let e=n;e<s.length;++e)t.push(c(s[e]));return t.push("unknown"),t}},1419:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.__testing__=t.updateConfig=t.calculateConfigForTarget=t.normalizeTarget=t.getConfiguration=t.extractTargetUri=t.extractTarget=t.createTargetForDocument=t.createTargetForUri=t.isGlobalTarget=t.extractScope=t.toScope=t.configTargetToScope=t.configurationTargetToName=t.getConfigurationTargetFromLegacy=t.isConfigTargetWithOptionalResource=t.isConfigTargetWithResource=t.isFolderLevelTarget=t.isWorkspaceLevelTarget=t.isGlobalLevelTarget=t.inspectConfigKeys=t.inspectConfigByScopeAndKey=t.inspectConfig=t.setSettingInVSConfig=t.inspectSettingFromVSConfig=t.findScopedSettingFromVSConfig=t.getScopedSettingFromVSConfig=t.inspectScopedSettingFromVSConfig=t.getSettingFromVSConfig=t.getSettingsFromVSConfig=t.getSectionName=t.Scopes=t.GlobalTarget=t.sectionCSpell=t.ConfigurationTarget=void 0;const i=n(9496),r=n(6742),o=n(8422);var s=n(9496);Object.defineProperty(t,"ConfigurationTarget",{enumerable:!0,get:function(){return s.ConfigurationTarget}}),t.sectionCSpell=r.extensionId,t.GlobalTarget=i.ConfigurationTarget.Global,t.Scopes={Default:"defaultValue",Global:"globalValue",Workspace:"workspaceValue",Folder:"workspaceFolderValue"};const a=["defaultValue","globalValue","workspaceValue","workspaceFolderValue"],c=new Map(a.map(((e,t)=>[e,t])));function u(e){return[t.sectionCSpell,e].filter((e=>!!e)).join(".")}function l(e,t){return function(e,t){for(let n=c.get(t);n>=0;n-=1){const t=a[n],i=e[t];if(void 0!==i)return{scope:t,value:i}}return{scope:"defaultValue",value:void 0}}(h(e,(t=b(t)).resource),t.scope)}function h(e,t){return d(t,e)}function d(e,n){const i=_(e),r=[t.sectionCSpell,n].join(".");return i.inspect(r)||{key:r}}function p(e,n){const i=[t.sectionCSpell,n].join(".");return e.inspect(i)||{key:i}}function f(e,t){const n=_(e),i={};for(const e of t){const t={[e]:p(n,e)};Object.assign(i,t)}return i}function g(e){return m(e)&&void 0!==e.uri}function m(e){return"object"==typeof e&&void 0!==e.target}t.getSectionName=u,t.getSettingsFromVSConfig=function(e){return _(e).get(t.sectionCSpell,{})},t.getSettingFromVSConfig=function(e,n){return _(n).get(t.sectionCSpell,{})[e]},t.inspectScopedSettingFromVSConfig=function(e,t){const n=h(e,(t=b(t)).resource);return null==n?void 0:n[t.scope]},t.getScopedSettingFromVSConfig=function(e,t){return l(e,t).value},t.findScopedSettingFromVSConfig=l,t.inspectSettingFromVSConfig=h,t.setSettingInVSConfig=function(e,t,n){const i=T(n),r=D(i),o=x(i),s=u(e),a=_(o);return Promise.resolve(a.update(s,t,r))},t.inspectConfig=function(e){return _(e).inspect(t.sectionCSpell)||{key:t.sectionCSpell}},t.inspectConfigByScopeAndKey=d,t.inspectConfigKeys=f,t.isGlobalLevelTarget=function(e){return m(e)&&e.target===i.ConfigurationTarget.Global||e===i.ConfigurationTarget.Global},t.isWorkspaceLevelTarget=function(e){return m(e)&&e.target===i.ConfigurationTarget.Workspace},t.isFolderLevelTarget=function(e){return g(e)&&e.target===i.ConfigurationTarget.WorkspaceFolder},t.isConfigTargetWithResource=g,t.isConfigTargetWithOptionalResource=m,t.getConfigurationTargetFromLegacy=function(e){return"object"==typeof e?e.target:e};const y={[i.ConfigurationTarget.Global]:"globalValue",[i.ConfigurationTarget.Workspace]:"workspaceValue",[i.ConfigurationTarget.WorkspaceFolder]:"workspaceFolderValue"},v={[i.ConfigurationTarget.Global]:"user",[i.ConfigurationTarget.Workspace]:"workspace",[i.ConfigurationTarget.WorkspaceFolder]:"folder"};function C(e){return y[e]}function S(e){return"object"==typeof e}function b(e){return S(e)?{scope:e.scope,resource:e.scope===t.Scopes.Folder?E(e.resource):void 0}:{scope:e,resource:void 0}}function E(e){if(e){const t=i.workspace.getWorkspaceFolder(e);return null==t?void 0:t.uri}}function w(e,t){return{target:e,uri:t}}function D(e){return m(e)?e.target:e}function x(e){return m(e)?e.uri:void 0}function _(e){return i.workspace.getConfiguration(void 0,function(e){return function(e){if(!e||"object"!=typeof e)return!1;const t=e;return void 0!==t.authority&&void 0!==t.fragment&&null!=t.path&&null!=t.query&&null!=t.scheme}(e)?(0,o.findConicalDocumentScope)(P(e)):function(e){return!(!e||"object"!=typeof e)&&void 0!==e.uri}(e)?M(e.uri)?e:Object.assign(Object.assign({},e),{uri:P(e.uri)}):e}(e))}function T(e){return m(e)?e:{target:e,uri:void 0}}function k(e,t,n,i){const r={},o=f(t,n),s=i?F:A;for(const t of n)s(r,e,t,o);return r}function F(e,t,n,i){const r=R(t,i[n]);void 0!==r&&(e[n]=r)}function A(e,t,n,r){const o=function(e,t){var n,r,o;if(void 0!==t)switch(e){case i.ConfigurationTarget.Global:return null!==(n=t.globalLanguageValue)&&void 0!==n?n:t.globalValue;case i.ConfigurationTarget.Workspace:return null!==(r=t.workspaceLanguageValue)&&void 0!==r?r:t.workspaceValue;case i.ConfigurationTarget.WorkspaceFolder:return null!==(o=t.workspaceFolderLanguageValue)&&void 0!==o?o:t.workspaceFolderValue}}(t,r[n]);void 0!==o&&(e[n]=o)}function R(e,t){if(void 0===t)return;let n=O(t.defaultValue,t.defaultLanguageValue,t.globalValue,t.globalLanguageValue);if(e===i.ConfigurationTarget.Global)return n;if(n=O(n,t.workspaceValue,t.workspaceLanguageValue),e===i.ConfigurationTarget.Workspace)return n;if(n=O(n,t.workspaceFolderValue,t.workspaceFolderLanguageValue),e!==i.ConfigurationTarget.WorkspaceFolder)throw new Error(`Unknown Config Target "${e}"`);return n}function O(...e){let t;for(const n of e)void 0!==n&&(t="object"!=typeof t||"object"!=typeof n||Array.isArray(n)||Array.isArray(t)?n:Object.assign({},t,n));return t}function P(e){return M(e)?e:i.Uri.parse(e.toString())}function M(e){return e instanceof i.Uri}t.configurationTargetToName=function(e){return v[e]},t.configTargetToScope=function(e){return m(e)?{scope:C(e.target),resource:e.uri||void 0}:y[e]},t.toScope=C,t.extractScope=function(e){return S(e)?e.scope:e},t.isGlobalTarget=function(e){return D(e)===i.ConfigurationTarget.Global},t.createTargetForUri=w,t.createTargetForDocument=function(e,t){return w(e,t.uri)},t.extractTarget=D,t.extractTargetUri=x,t.getConfiguration=_,t.normalizeTarget=T,t.calculateConfigForTarget=k,t.updateConfig=function(e,t,n,i,o){const s=i(k(e,t,n,o)),a=_(t),c=Object.entries(s).map((([t,n])=>a.update(`${r.extensionId}.${t}`,n,e)));return Promise.all(c).then()},t.__testing__={mergeInspect:R}},3381:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createVSConfigReaderWriter=void 0;const i=n(1419),r=n(6225);t.createVSConfigReaderWriter=function(e,t,n){return new o(e,t,n)};class o{constructor(e,t,n){this.target=e,this.scope=t,this.useMerge=n,this.name=(0,r.configurationTargetToDictionaryScope)(e)}async read(e){return(0,i.calculateConfigForTarget)(this.target,this.scope,e,this.useMerge)}async write(e){await(0,i.updateConfig)(this.target,this.scope,[],(()=>e),!1)}async update(e,t){await(0,i.updateConfig)(this.target,this.scope,t,e,this.useMerge)}}},4196:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.initStatusBar=void 0;const s=o(n(1017)),a=n(9496),c=o(n(9496)),u=o(n(8976)),l=n(4561),h=n(2979),d=n(1750);t.initStatusBar=function(e,t){const n=a.workspace.getConfiguration().get(h.sectionCSpell),{showStatusAlignment:i}=n,r=function(e){switch(e){case"Left":return c.StatusBarAlignment.Left;case"Right":return c.StatusBarAlignment.Right}return c.StatusBarAlignment.Left}(i),o=a.window.createStatusBarItem("spell checker status id",r);o.name="Code Spell Checker";let p,f="";function g(e,t){if(p)return p.stale=!p.pending||p.document!==e,p.document=e,void(p.showClock=t);if((null==t||t)&&(o.text="$(clock) Spell",o.tooltip="cSpell waiting...",o.show()),!e)return;const n={document:e,showClock:t,value:m(e,t).catch(),pending:!0,stale:!1};function i(){p===n&&(p=void 0,n.stale&&g(n.document,n.showClock))}n.value.finally((()=>{n.pending=!1,setTimeout(i,1e3)})),p=n}async function m(e,n){var i,r;if((null==n||n)&&(o.text="$(clock) Spell",o.tooltip="cSpell waiting...",o.show()),!e)return;const{uri:h,languageId:p=""}=e;f=h.toString();const g=await t.isSpellCheckEnabled(e),m=null===(r=null===(i=a.window.activeTextEditor)||void 0===i?void 0:i.document)||void 0===r?void 0:r.uri;if(m===g.uri||!m||"file"!==m.scheme){const e=(0,d.getCSpellDiags)(m),{languageEnabled:t=!0,fileEnabled:n=!0}=g,i=t&&n?"is":"is NOT",r=t?"":`The "${p}" filetype is not enabled.`,a=function(e){var t;if(e.blockedReason)return e.blockedReason.message;if(e.fileEnabled)return"";if(e.gitignored)return"The file is excluded by .gitignore.";if(!(null===(t=e.excludedBy)||void 0===t?void 0:t.length))return"The file path is excluded in settings.";const n=e.excludedBy[0],{glob:i,name:r,id:o}=n,s=n.configUri&&(0,l.uriToName)(c.Uri.parse(n.configUri));return`File excluded by ${JSON.stringify(i)} in ${s||o||r||"settings"}`}(g),f=s.basename(h.fsPath),y=`Issues: ${e.length}`;o.text=function({languageEnabled:e,fileEnabled:t,diags:n}){return e&&t?n.length?`$(warning) ${n.length} Spell`:"$(check) Spell":"$(exclude) Spell"}({languageEnabled:t,fileEnabled:n,diags:e});const v=[y,`"${f}" ${i} spell checked.`,r,a].filter((e=>!!e)).join("\n");o.tooltip=v,o.command=u.commandDisplayCSpellInfo,o.show()}}function y(e,t){const n=(0,l.isSupportedDoc)(e)?e:C(),i=a.workspace.getConfiguration(void 0,e).get(h.sectionCSpell),{enabled:r,showStatus:s=!0}=i;s?r?g(n,t):(o.text="$(stop) Spell",o.tooltip="Enable spell checking",o.command="cSpell.enableForGlobal",o.show()):o.hide()}function v(e){y(null==e?void 0:e.document)}function C(){if(a.window.activeTextEditor&&function(e){if(!e)return!1;const t=e.document;return(null==t?void 0:t.uri)&&(0,l.isSupportedUri)(t.uri)}(a.window.activeTextEditor))return a.window.activeTextEditor.document;const e=a.workspace.textDocuments.filter(l.isSupportedDoc);if(f){const t=e.find((e=>e.uri.toString()===f));if(t)return t}return e[0]}return o.text="$(clock)",o.show(),e.subscriptions.push(a.window.onDidChangeActiveTextEditor(v),a.workspace.onDidChangeConfiguration((function(e){const t=C();e.affectsConfiguration(h.sectionCSpell,null==t?void 0:t.uri)&&(setTimeout((()=>y(t,!1)),250),setTimeout((()=>y(t,!1)),2e3))})),a.workspace.onDidCloseTextDocument(y),c.languages.onDidChangeDiagnostics((function(e){for(const t of e.uris)if(t.toString()===f){setTimeout((()=>y(void 0,!1)),250);break}})),o),a.window.activeTextEditor&&v(a.window.activeTextEditor),{refresh(){const e=C();setTimeout((()=>y(e,!1)),250)}}}},7053:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createBroadcaster=t.Broadcaster=void 0;const i=n(9496);class r{constructor(){this.listeners=new Set}send(e){for(const t of this.listeners)t(e)}listen(e){return this.listeners.add(e),new i.Disposable((()=>this.listeners.delete(e)))}}t.Broadcaster=r,t.createBroadcaster=function(){return new r}},8422:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findConicalDocumentScope=void 0;const i=n(9496),r=Object.freeze(Object.assign(Object.create(null),{file:!0,untitled:!0})),o=Object.freeze(Object.assign(Object.create(null),{git:!0,output:!0,debug:!0,vscode:!0})),s=Object.freeze(Object.assign(Object.create(null),{"vscode-notebook-cell":!0}));t.findConicalDocumentScope=function(e){if(void 0===e)return;if(e.scheme in o)return;if(e.scheme in r)return e;const t=e.path;for(const e of i.workspace.notebookDocuments){const n=e.uri;if(n.path===t)return n}for(const e of i.workspace.textDocuments){const n=e.uri;if(n.path===t&&"file"===n.scheme)return n}return e.scheme in s?e.with({scheme:"file",query:"",fragment:""}):e}},4876:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.showErrors=t.silenceErrors=t.logErrors=t.catchErrors=t.handleErrors=t.ignoreError=t.logError=t.showError=t.ErrorHandlers=t.Resolvers=t.isError=void 0;const i=n(9496),r=n(3837);function o(e){if(!e||"object"!=typeof e)return!1;const t=e;return void 0!==t.message&&void 0!==t.name}function s(e,t){return!g(e)&&o(e)?(console.error(p(e,t)),h(i.window.showErrorMessage(e.message),"showError Resolver showErrorMessage").then((()=>{}))):Promise.resolve()}function a(e,t){return!g(e)&&o(e)&&console.log(p(e,t)),Promise.resolve()}function c(e,t){return p(e,t),Promise.resolve(void 0)}function u(e,t,n=s){return("function"==typeof e?(async()=>e())():e).catch(function(e,t){return n=>t(n,e)}(t,n))}function l(e,t){return u(Promise.resolve(e),t,a)}function h(e,t){return u(Promise.resolve(e),t,c)}function d(e,t){return u(Promise.resolve(e),t,s)}function p(e,t){return(0,r.format)("Error: context (%s): %o",t,e)}t.isError=o,t.Resolvers={logError:a,ignoreError:c,showError:s},t.ErrorHandlers={logErrors:l,silenceErrors:h,showErrors:d},t.showError=s,t.logError=a,t.ignoreError=c,t.handleErrors=u,t.catchErrors=function(e,t,n=s){return(...i)=>u((()=>e(...i)),t,n)},t.logErrors=l,t.silenceErrors=h,t.showErrors=d;const f="Canceled";function g(e){return e instanceof Error&&e.name===f&&e.message===f}},9759:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(2131),t)},5294:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.performance=t.toMilliseconds=t.calcDuration=t.PerformanceTimeline=t.EVENT_TIMELINE_START=t.EVENT_MODULE_LOAD=void 0,t.EVENT_MODULE_LOAD="module_load",t.EVENT_TIMELINE_START="timeline_start";const n=process.hrtime();class i{constructor(){this.timeLine=[],this.timeLineEvents=new Map,this.mark(t.EVENT_TIMELINE_START)}mark(e){const t={name:e,startTime:process.hrtime(n),duration:0};this.addEvent(t)}measure(e,i,o){const s=this.timeLineEvents.get(i)||this.timeLineEvents.get(t.EVENT_TIMELINE_START),a=this.timeLineEvents.get(o)||this.timeLineEvents.get(t.EVENT_TIMELINE_START),c=r(s.startTime,a.startTime),u={name:e,startTime:process.hrtime(n),duration:c};this.addEvent(u)}addEvent(e){this.timeLine.push(e),this.timeLineEvents.set(e.name,e)}getEntries(){return this.timeLine}getLatestEntryByName(e){return this.timeLineEvents.get(e)}getEntriesByName(e){return this.timeLine.filter((t=>t.name===e))}}function r(e,t){return o(t)-o(e)}function o(e){return 1e3*(e[0]+1e-9*e[1])}t.PerformanceTimeline=i,t.calcDuration=r,t.toMilliseconds=o,t.performance=new i},7007:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pipe=t.map=t.extract=t.defaultTo=void 0,t.defaultTo=function(e){return t=>void 0===t?e:t},t.extract=function(e){if(arguments.length>1){const e=[...arguments];return t=>{let n=t;for(const t of e)n=void 0===n?void 0:n[t];return n}}return t=>void 0===t?void 0:t[e]},t.map=function(e){return t=>void 0===t?void 0:e(t)},t.pipe=function(e){if(arguments.length>1){const t=[...arguments].slice(1);let n=e;for(const e of t)n=e(n);return n}return e}},8781:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.scrollToText=void 0;const s=o(n(9496));t.scrollToText=function(e,t){const n=e.document,i=n.getText().indexOf(t);if(i<0)return!1;const r=n.positionAt(i),o=new s.Range(r.line,r.character,r.line,r.character+t.length);return o&&e.revealRange(o,s.TextEditorRevealType.InCenterIfOutsideViewport),!0}},2511:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toUri=void 0;const i=n(9496);t.toUri=function(e){return"string"==typeof e?i.Uri.parse(e):e&&i.Uri.from(e)||void 0}},7469:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.findMatchingDocument=t.findDocumentInVisibleTextEditors=void 0;const s=o(n(9496));function a(e){const t=e.toString();return s.window.visibleTextEditors.map((e=>e.document)).filter((e=>!!e)).filter((e=>e.uri.toString()===t))[0]}t.findDocumentInVisibleTextEditors=a,t.findMatchingDocument=function(e){const t=e.toString();return((s.workspace||{}).textDocuments||[]).filter((e=>e.uri.toString()===t))[0]||a(e)}},5725:(e,t)=>{"use strict";t.fromCallback=function(e){return Object.defineProperty((function(...t){if("function"!=typeof t[t.length-1])return new Promise(((n,i)=>{e.call(this,...t,((e,t)=>null!=e?i(e):n(t)))}));e.apply(this,t)}),"name",{value:e.name})},t.fromPromise=function(e){return Object.defineProperty((function(...t){const n=t[t.length-1];if("function"!=typeof n)return e.apply(this,t);e.apply(this,t.slice(0,-1)).then((e=>n(null,e)),n)}),"name",{value:e.name})}},5247:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CancellationSenderStrategy=t.CancellationReceiverStrategy=t.ConnectionError=t.ConnectionErrors=t.LogTraceNotification=t.SetTraceNotification=t.TraceFormat=t.Trace=t.ProgressType=t.createMessageConnection=t.NullLogger=t.ConnectionOptions=t.ConnectionStrategy=t.WriteableStreamMessageWriter=t.AbstractMessageWriter=t.MessageWriter=t.ReadableStreamMessageReader=t.AbstractMessageReader=t.MessageReader=t.CancellationToken=t.CancellationTokenSource=t.Emitter=t.Event=t.Disposable=t.ParameterStructures=t.NotificationType9=t.NotificationType8=t.NotificationType7=t.NotificationType6=t.NotificationType5=t.NotificationType4=t.NotificationType3=t.NotificationType2=t.NotificationType1=t.NotificationType0=t.NotificationType=t.ErrorCodes=t.ResponseError=t.RequestType9=t.RequestType8=t.RequestType7=t.RequestType6=t.RequestType5=t.RequestType4=t.RequestType3=t.RequestType2=t.RequestType1=t.RequestType0=t.RequestType=t.RAL=void 0,t.CancellationStrategy=void 0;const i=n(9141);Object.defineProperty(t,"RequestType",{enumerable:!0,get:function(){return i.RequestType}}),Object.defineProperty(t,"RequestType0",{enumerable:!0,get:function(){return i.RequestType0}}),Object.defineProperty(t,"RequestType1",{enumerable:!0,get:function(){return i.RequestType1}}),Object.defineProperty(t,"RequestType2",{enumerable:!0,get:function(){return i.RequestType2}}),Object.defineProperty(t,"RequestType3",{enumerable:!0,get:function(){return i.RequestType3}}),Object.defineProperty(t,"RequestType4",{enumerable:!0,get:function(){return i.RequestType4}}),Object.defineProperty(t,"RequestType5",{enumerable:!0,get:function(){return i.RequestType5}}),Object.defineProperty(t,"RequestType6",{enumerable:!0,get:function(){return i.RequestType6}}),Object.defineProperty(t,"RequestType7",{enumerable:!0,get:function(){return i.RequestType7}}),Object.defineProperty(t,"RequestType8",{enumerable:!0,get:function(){return i.RequestType8}}),Object.defineProperty(t,"RequestType9",{enumerable:!0,get:function(){return i.RequestType9}}),Object.defineProperty(t,"ResponseError",{enumerable:!0,get:function(){return i.ResponseError}}),Object.defineProperty(t,"ErrorCodes",{enumerable:!0,get:function(){return i.ErrorCodes}}),Object.defineProperty(t,"NotificationType",{enumerable:!0,get:function(){return i.NotificationType}}),Object.defineProperty(t,"NotificationType0",{enumerable:!0,get:function(){return i.NotificationType0}}),Object.defineProperty(t,"NotificationType1",{enumerable:!0,get:function(){return i.NotificationType1}}),Object.defineProperty(t,"NotificationType2",{enumerable:!0,get:function(){return i.NotificationType2}}),Object.defineProperty(t,"NotificationType3",{enumerable:!0,get:function(){return i.NotificationType3}}),Object.defineProperty(t,"NotificationType4",{enumerable:!0,get:function(){return i.NotificationType4}}),Object.defineProperty(t,"NotificationType5",{enumerable:!0,get:function(){return i.NotificationType5}}),Object.defineProperty(t,"NotificationType6",{enumerable:!0,get:function(){return i.NotificationType6}}),Object.defineProperty(t,"NotificationType7",{enumerable:!0,get:function(){return i.NotificationType7}}),Object.defineProperty(t,"NotificationType8",{enumerable:!0,get:function(){return i.NotificationType8}}),Object.defineProperty(t,"NotificationType9",{enumerable:!0,get:function(){return i.NotificationType9}}),Object.defineProperty(t,"ParameterStructures",{enumerable:!0,get:function(){return i.ParameterStructures}});const r=n(8437);Object.defineProperty(t,"Disposable",{enumerable:!0,get:function(){return r.Disposable}});const o=n(5165);Object.defineProperty(t,"Event",{enumerable:!0,get:function(){return o.Event}}),Object.defineProperty(t,"Emitter",{enumerable:!0,get:function(){return o.Emitter}});const s=n(415);Object.defineProperty(t,"CancellationTokenSource",{enumerable:!0,get:function(){return s.CancellationTokenSource}}),Object.defineProperty(t,"CancellationToken",{enumerable:!0,get:function(){return s.CancellationToken}});const a=n(451);Object.defineProperty(t,"MessageReader",{enumerable:!0,get:function(){return a.MessageReader}}),Object.defineProperty(t,"AbstractMessageReader",{enumerable:!0,get:function(){return a.AbstractMessageReader}}),Object.defineProperty(t,"ReadableStreamMessageReader",{enumerable:!0,get:function(){return a.ReadableStreamMessageReader}});const c=n(1251);Object.defineProperty(t,"MessageWriter",{enumerable:!0,get:function(){return c.MessageWriter}}),Object.defineProperty(t,"AbstractMessageWriter",{enumerable:!0,get:function(){return c.AbstractMessageWriter}}),Object.defineProperty(t,"WriteableStreamMessageWriter",{enumerable:!0,get:function(){return c.WriteableStreamMessageWriter}});const u=n(1908);Object.defineProperty(t,"ConnectionStrategy",{enumerable:!0,get:function(){return u.ConnectionStrategy}}),Object.defineProperty(t,"ConnectionOptions",{enumerable:!0,get:function(){return u.ConnectionOptions}}),Object.defineProperty(t,"NullLogger",{enumerable:!0,get:function(){return u.NullLogger}}),Object.defineProperty(t,"createMessageConnection",{enumerable:!0,get:function(){return u.createMessageConnection}}),Object.defineProperty(t,"ProgressType",{enumerable:!0,get:function(){return u.ProgressType}}),Object.defineProperty(t,"Trace",{enumerable:!0,get:function(){return u.Trace}}),Object.defineProperty(t,"TraceFormat",{enumerable:!0,get:function(){return u.TraceFormat}}),Object.defineProperty(t,"SetTraceNotification",{enumerable:!0,get:function(){return u.SetTraceNotification}}),Object.defineProperty(t,"LogTraceNotification",{enumerable:!0,get:function(){return u.LogTraceNotification}}),Object.defineProperty(t,"ConnectionErrors",{enumerable:!0,get:function(){return u.ConnectionErrors}}),Object.defineProperty(t,"ConnectionError",{enumerable:!0,get:function(){return u.ConnectionError}}),Object.defineProperty(t,"CancellationReceiverStrategy",{enumerable:!0,get:function(){return u.CancellationReceiverStrategy}}),Object.defineProperty(t,"CancellationSenderStrategy",{enumerable:!0,get:function(){return u.CancellationSenderStrategy}}),Object.defineProperty(t,"CancellationStrategy",{enumerable:!0,get:function(){return u.CancellationStrategy}});const l=n(5706);t.RAL=l.default},415:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CancellationTokenSource=t.CancellationToken=void 0;const i=n(5706),r=n(8811),o=n(5165);var s;!function(e){e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:o.Event.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:o.Event.None}),e.is=function(t){const n=t;return n&&(n===e.None||n===e.Cancelled||r.boolean(n.isCancellationRequested)&&!!n.onCancellationRequested)}}(s=t.CancellationToken||(t.CancellationToken={}));const a=Object.freeze((function(e,t){const n=i.default().timer.setTimeout(e.bind(t),0);return{dispose(){i.default().timer.clearTimeout(n)}}}));class c{constructor(){this._isCancelled=!1}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?a:(this._emitter||(this._emitter=new o.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}}t.CancellationTokenSource=class{get token(){return this._token||(this._token=new c),this._token}cancel(){this._token?this._token.cancel():this._token=s.Cancelled}dispose(){this._token?this._token instanceof c&&this._token.dispose():this._token=s.None}}},1908:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createMessageConnection=t.ConnectionOptions=t.CancellationStrategy=t.CancellationSenderStrategy=t.CancellationReceiverStrategy=t.ConnectionStrategy=t.ConnectionError=t.ConnectionErrors=t.LogTraceNotification=t.SetTraceNotification=t.TraceFormat=t.Trace=t.NullLogger=t.ProgressType=void 0;const i=n(5706),r=n(8811),o=n(9141),s=n(7040),a=n(5165),c=n(415);var u,l,h,d,p,f,g,m,y,v,C,S,b;!function(e){e.type=new o.NotificationType("$/cancelRequest")}(u||(u={})),function(e){e.type=new o.NotificationType("$/progress")}(l||(l={})),t.ProgressType=class{constructor(){}},function(e){e.is=function(e){return r.func(e)}}(h||(h={})),t.NullLogger=Object.freeze({error:()=>{},warn:()=>{},info:()=>{},log:()=>{}}),function(e){e[e.Off=0]="Off",e[e.Messages=1]="Messages",e[e.Verbose=2]="Verbose"}(d=t.Trace||(t.Trace={})),function(e){e.fromString=function(t){if(!r.string(t))return e.Off;switch(t=t.toLowerCase()){case"off":default:return e.Off;case"messages":return e.Messages;case"verbose":return e.Verbose}},e.toString=function(t){switch(t){case e.Off:return"off";case e.Messages:return"messages";case e.Verbose:return"verbose";default:return"off"}}}(d=t.Trace||(t.Trace={})),function(e){e.Text="text",e.JSON="json"}(t.TraceFormat||(t.TraceFormat={})),function(e){e.fromString=function(t){return"json"===(t=t.toLowerCase())?e.JSON:e.Text}}(p=t.TraceFormat||(t.TraceFormat={})),function(e){e.type=new o.NotificationType("$/setTrace")}(f=t.SetTraceNotification||(t.SetTraceNotification={})),function(e){e.type=new o.NotificationType("$/logTrace")}(g=t.LogTraceNotification||(t.LogTraceNotification={})),function(e){e[e.Closed=1]="Closed",e[e.Disposed=2]="Disposed",e[e.AlreadyListening=3]="AlreadyListening"}(m=t.ConnectionErrors||(t.ConnectionErrors={}));class E extends Error{constructor(e,t){super(t),this.code=e,Object.setPrototypeOf(this,E.prototype)}}t.ConnectionError=E,function(e){e.is=function(e){const t=e;return t&&r.func(t.cancelUndispatched)}}(y=t.ConnectionStrategy||(t.ConnectionStrategy={})),function(e){e.Message=Object.freeze({createCancellationTokenSource:e=>new c.CancellationTokenSource}),e.is=function(e){const t=e;return t&&r.func(t.createCancellationTokenSource)}}(v=t.CancellationReceiverStrategy||(t.CancellationReceiverStrategy={})),function(e){e.Message=Object.freeze({sendCancellation(e,t){e.sendNotification(u.type,{id:t})},cleanup(e){}}),e.is=function(e){const t=e;return t&&r.func(t.sendCancellation)&&r.func(t.cleanup)}}(C=t.CancellationSenderStrategy||(t.CancellationSenderStrategy={})),function(e){e.Message=Object.freeze({receiver:v.Message,sender:C.Message}),e.is=function(e){const t=e;return t&&v.is(t.receiver)&&C.is(t.sender)}}(S=t.CancellationStrategy||(t.CancellationStrategy={})),(t.ConnectionOptions||(t.ConnectionOptions={})).is=function(e){const t=e;return t&&(S.is(t.cancellationStrategy)||y.is(t.connectionStrategy))},function(e){e[e.New=1]="New",e[e.Listening=2]="Listening",e[e.Closed=3]="Closed",e[e.Disposed=4]="Disposed"}(b||(b={})),t.createMessageConnection=function(e,n,y,v){const C=void 0!==y?y:t.NullLogger;let w=0,D=0,x=0;const _="2.0";let T;const k=Object.create(null);let F;const A=Object.create(null),R=new Map;let O,P,M=new s.LinkedMap,N=Object.create(null),I=Object.create(null),L=d.Off,j=p.Text,B=b.New;const q=new a.Emitter,U=new a.Emitter,W=new a.Emitter,$=new a.Emitter,K=new a.Emitter,z=v&&v.cancellationStrategy?v.cancellationStrategy:S.Message;function V(e){if(null===e)throw new Error("Can't send requests with id null since the response can't be correlated.");return"req-"+e.toString()}function H(e){}function G(){return B===b.Listening}function J(){return B===b.Closed}function X(){return B===b.Disposed}function Y(){B!==b.New&&B!==b.Listening||(B=b.Closed,U.fire(void 0))}function Q(){O||0===M.size||(O=i.default().timer.setImmediate((()=>{O=void 0,function(){if(0===M.size)return;const e=M.shift();try{o.isRequestMessage(e)?function(e){if(X())return;function t(t,i,r){const s={jsonrpc:_,id:e.id};t instanceof o.ResponseError?s.error=t.toJson():s.result=void 0===t?null:t,ee(s,i,r),n.write(s)}function i(t,i,r){const o={jsonrpc:_,id:e.id,error:t.toJson()};ee(o,i,r),n.write(o)}!function(e){if(L!==d.Off&&P)if(j===p.Text){let t;L===d.Verbose&&e.params&&(t=`Params: ${JSON.stringify(e.params,null,4)}\n\n`),P.log(`Received request '${e.method} - (${e.id})'.`,t)}else te("receive-request",e)}(e);const s=k[e.method];let a,c;s&&(a=s.type,c=s.handler);const u=Date.now();if(c||T){const s=String(e.id),l=z.receiver.createCancellationTokenSource(s);I[s]=l;try{let h;if(c)if(void 0===e.params){if(void 0!==a&&0!==a.numberOfParams)return void i(new o.ResponseError(o.ErrorCodes.InvalidParams,`Request ${e.method} defines ${a.numberOfParams} params but recevied none.`),e.method,u);h=c(l.token)}else if(Array.isArray(e.params)){if(void 0!==a&&a.parameterStructures===o.ParameterStructures.byName)return void i(new o.ResponseError(o.ErrorCodes.InvalidParams,`Request ${e.method} defines parameters by name but received parameters by position`),e.method,u);h=c(...e.params,l.token)}else{if(void 0!==a&&a.parameterStructures===o.ParameterStructures.byPosition)return void i(new o.ResponseError(o.ErrorCodes.InvalidParams,`Request ${e.method} defines parameters by position but received parameters by name`),e.method,u);h=c(e.params,l.token)}else T&&(h=T(e.method,e.params,l.token));const d=h;h?d.then?d.then((n=>{delete I[s],t(n,e.method,u)}),(t=>{delete I[s],t instanceof o.ResponseError?i(t,e.method,u):t&&r.string(t.message)?i(new o.ResponseError(o.ErrorCodes.InternalError,`Request ${e.method} failed with message: ${t.message}`),e.method,u):i(new o.ResponseError(o.ErrorCodes.InternalError,`Request ${e.method} failed unexpectedly without providing any details.`),e.method,u)})):(delete I[s],t(h,e.method,u)):(delete I[s],function(t,i,r){void 0===t&&(t=null);const o={jsonrpc:_,id:e.id,result:t};ee(o,i,r),n.write(o)}(h,e.method,u))}catch(n){delete I[s],n instanceof o.ResponseError?t(n,e.method,u):n&&r.string(n.message)?i(new o.ResponseError(o.ErrorCodes.InternalError,`Request ${e.method} failed with message: ${n.message}`),e.method,u):i(new o.ResponseError(o.ErrorCodes.InternalError,`Request ${e.method} failed unexpectedly without providing any details.`),e.method,u)}}else i(new o.ResponseError(o.ErrorCodes.MethodNotFound,`Unhandled method ${e.method}`),e.method,u)}(e):o.isNotificationMessage(e)?function(e){if(X())return;let t,n;if(e.method===u.type.method)n=e=>{const t=e.id,n=I[String(t)];n&&n.cancel()};else{const i=A[e.method];i&&(n=i.handler,t=i.type)}if(n||F)try{!function(e){if(L!==d.Off&&P&&e.method!==g.type.method)if(j===p.Text){let t;L===d.Verbose&&(t=e.params?`Params: ${JSON.stringify(e.params,null,4)}\n\n`:"No parameters provided.\n\n"),P.log(`Received notification '${e.method}'.`,t)}else te("receive-notification",e)}(e),n?void 0===e.params?(void 0!==t&&0!==t.numberOfParams&&t.parameterStructures!==o.ParameterStructures.byName&&C.error(`Notification ${e.method} defines ${t.numberOfParams} params but recevied none.`),n()):Array.isArray(e.params)?(void 0!==t&&(t.parameterStructures===o.ParameterStructures.byName&&C.error(`Notification ${e.method} defines parameters by name but received parameters by position`),t.numberOfParams!==e.params.length&&C.error(`Notification ${e.method} defines ${t.numberOfParams} params but received ${e.params.length} argumennts`)),n(...e.params)):(void 0!==t&&t.parameterStructures===o.ParameterStructures.byPosition&&C.error(`Notification ${e.method} defines parameters by position but received parameters by name`),n(e.params)):F&&F(e.method,e.params)}catch(t){t.message?C.error(`Notification handler '${e.method}' failed with message: ${t.message}`):C.error(`Notification handler '${e.method}' failed unexpectedly.`)}else W.fire(e)}(e):o.isResponseMessage(e)?function(e){if(!X())if(null===e.id)e.error?C.error(`Received response message without id: Error is: \n${JSON.stringify(e.error,void 0,4)}`):C.error("Received response message without id. No further error information provided.");else{const t=String(e.id),n=N[t];if(function(e,t){if(L!==d.Off&&P)if(j===p.Text){let n;if(L===d.Verbose&&(e.error&&e.error.data?n=`Error data: ${JSON.stringify(e.error.data,null,4)}\n\n`:e.result?n=`Result: ${JSON.stringify(e.result,null,4)}\n\n`:void 0===e.error&&(n="No result returned.\n\n")),t){const i=e.error?` Request failed: ${e.error.message} (${e.error.code}).`:"";P.log(`Received response '${t.method} - (${e.id})' in ${Date.now()-t.timerStart}ms.${i}`,n)}else P.log(`Received response ${e.id} without active response promise.`,n)}else te("receive-response",e)}(e,n),n){delete N[t];try{if(e.error){const t=e.error;n.reject(new o.ResponseError(t.code,t.message,t.data))}else{if(void 0===e.result)throw new Error("Should never happen.");n.resolve(e.result)}}catch(e){e.message?C.error(`Response handler '${n.method}' failed with message: ${e.message}`):C.error(`Response handler '${n.method}' failed unexpectedly.`)}}}}(e):function(e){if(!e)return void C.error("Received empty message.");C.error(`Received message which is neither a response nor a notification message:\n${JSON.stringify(e,null,4)}`);const t=e;if(r.string(t.id)||r.number(t.id)){const e=String(t.id),n=N[e];n&&n.reject(new Error("The received response has neither a result nor an error property."))}}(e)}finally{Q()}}()})))}e.onClose(Y),e.onError((function(e){q.fire([e,void 0,void 0])})),n.onClose(Y),n.onError((function(e){q.fire(e)}));const Z=e=>{try{if(o.isNotificationMessage(e)&&e.method===u.type.method){const t=V(e.params.id),i=M.get(t);if(o.isRequestMessage(i)){const r=null==v?void 0:v.connectionStrategy,o=r&&r.cancelUndispatched?r.cancelUndispatched(i,H):void 0;if(o&&(void 0!==o.error||void 0!==o.result))return M.delete(t),o.id=i.id,ee(o,e.method,Date.now()),void n.write(o)}}!function(e,t){var n;o.isRequestMessage(t)?e.set(V(t.id),t):o.isResponseMessage(t)?e.set(null===(n=t.id)?"res-unknown-"+(++x).toString():"res-"+n.toString(),t):e.set("not-"+(++D).toString(),t)}(M,e)}finally{Q()}};function ee(e,t,n){if(L!==d.Off&&P)if(j===p.Text){let i;L===d.Verbose&&(e.error&&e.error.data?i=`Error data: ${JSON.stringify(e.error.data,null,4)}\n\n`:e.result?i=`Result: ${JSON.stringify(e.result,null,4)}\n\n`:void 0===e.error&&(i="No result returned.\n\n")),P.log(`Sending response '${t} - (${e.id})'. Processing request took ${Date.now()-n}ms`,i)}else te("send-response",e)}function te(e,t){if(!P||L===d.Off)return;const n={isLSPMessage:!0,type:e,message:t,timestamp:Date.now()};P.log(n)}function ne(){if(J())throw new E(m.Closed,"Connection is closed.");if(X())throw new E(m.Disposed,"Connection is disposed.")}function ie(e){return void 0===e?null:e}function re(e){return null===e?void 0:e}function oe(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function se(e,t){switch(e){case o.ParameterStructures.auto:return oe(t)?re(t):[ie(t)];case o.ParameterStructures.byName:if(!oe(t))throw new Error("Recevied parameters by name but param is not an object literal.");return re(t);case o.ParameterStructures.byPosition:return[ie(t)];default:throw new Error(`Unknown parameter structure ${e.toString()}`)}}function ae(e,t){let n;const i=e.numberOfParams;switch(i){case 0:n=void 0;break;case 1:n=se(e.parameterStructures,t[0]);break;default:n=[];for(let e=0;e<t.length&&e<i;e++)n.push(ie(t[e]));if(t.length<i)for(let e=t.length;e<i;e++)n.push(null)}return n}const ce={sendNotification:(e,...t)=>{let i,s;if(ne(),r.string(e)){i=e;const n=t[0];let r=0,a=o.ParameterStructures.auto;o.ParameterStructures.is(n)&&(r=1,a=n);let c=t.length;const u=c-r;switch(u){case 0:s=void 0;break;case 1:s=se(a,t[r]);break;default:if(a===o.ParameterStructures.byName)throw new Error(`Recevied ${u} parameters for 'by Name' notification parameter structure.`);s=t.slice(r,c).map((e=>ie(e)))}}else{const n=t;i=e.method,s=ae(e,n)}const a={jsonrpc:_,method:i,params:s};!function(e){if(L!==d.Off&&P)if(j===p.Text){let t;L===d.Verbose&&(t=e.params?`Params: ${JSON.stringify(e.params,null,4)}\n\n`:"No parameters provided.\n\n"),P.log(`Sending notification '${e.method}'.`,t)}else te("send-notification",e)}(a),n.write(a)},onNotification:(e,t)=>{let n;return ne(),r.func(e)?F=e:t&&(r.string(e)?(n=e,A[e]={type:void 0,handler:t}):(n=e.method,A[e.method]={type:e,handler:t})),{dispose:()=>{void 0!==n?delete A[n]:F=void 0}}},onProgress:(e,t,n)=>{if(R.has(t))throw new Error(`Progress handler for token ${t} already registered`);return R.set(t,n),{dispose:()=>{R.delete(t)}}},sendProgress:(e,t,n)=>{ce.sendNotification(l.type,{token:t,value:n})},onUnhandledProgress:$.event,sendRequest:(e,...t)=>{let i,s,a;if(ne(),function(){if(!G())throw new Error("Call listen() first.")}(),r.string(e)){i=e;const n=t[0],r=t[t.length-1];let u=0,l=o.ParameterStructures.auto;o.ParameterStructures.is(n)&&(u=1,l=n);let h=t.length;c.CancellationToken.is(r)&&(h-=1,a=r);const d=h-u;switch(d){case 0:s=void 0;break;case 1:s=se(l,t[u]);break;default:if(l===o.ParameterStructures.byName)throw new Error(`Recevied ${d} parameters for 'by Name' request parameter structure.`);s=t.slice(u,h).map((e=>ie(e)))}}else{const n=t;i=e.method,s=ae(e,n);const r=e.numberOfParams;a=c.CancellationToken.is(n[r])?n[r]:void 0}const u=w++;let l;return a&&(l=a.onCancellationRequested((()=>{z.sender.sendCancellation(ce,u)}))),new Promise(((e,t)=>{const r={jsonrpc:_,id:u,method:i,params:s};let a={method:i,timerStart:Date.now(),resolve:t=>{e(t),z.sender.cleanup(u),null==l||l.dispose()},reject:e=>{t(e),z.sender.cleanup(u),null==l||l.dispose()}};!function(e){if(L!==d.Off&&P)if(j===p.Text){let t;L===d.Verbose&&e.params&&(t=`Params: ${JSON.stringify(e.params,null,4)}\n\n`),P.log(`Sending request '${e.method} - (${e.id})'.`,t)}else te("send-request",e)}(r);try{n.write(r)}catch(e){a.reject(new o.ResponseError(o.ErrorCodes.MessageWriteError,e.message?e.message:"Unknown reason")),a=null}a&&(N[String(u)]=a)}))},onRequest:(e,t)=>{ne();let n=null;return h.is(e)?(n=void 0,T=e):r.string(e)?(n=null,void 0!==t&&(n=e,k[e]={handler:t,type:void 0})):void 0!==t&&(n=e.method,k[e.method]={type:e,handler:t}),{dispose:()=>{null!==n&&(void 0!==n?delete k[n]:T=void 0)}}},trace:(e,t,n)=>{let i=!1,o=p.Text;void 0!==n&&(r.boolean(n)?i=n:(i=n.sendNotification||!1,o=n.traceFormat||p.Text)),L=e,j=o,P=L===d.Off?void 0:t,!i||J()||X()||ce.sendNotification(f.type,{value:d.toString(e)})},onError:q.event,onClose:U.event,onUnhandledNotification:W.event,onDispose:K.event,end:()=>{n.end()},dispose:()=>{if(X())return;B=b.Disposed,K.fire(void 0);const t=new Error("Connection got disposed.");Object.keys(N).forEach((e=>{N[e].reject(t)})),N=Object.create(null),I=Object.create(null),M=new s.LinkedMap,r.func(n.dispose)&&n.dispose(),r.func(e.dispose)&&e.dispose()},listen:()=>{ne(),function(){if(G())throw new E(m.AlreadyListening,"Connection is already listening")}(),B=b.Listening,e.listen(Z)},inspect:()=>{i.default().console.log("inspect")}};return ce.onNotification(g.type,(e=>{L!==d.Off&&P&&P.log(e.message,L===d.Verbose?e.verbose:void 0)})),ce.onNotification(l.type,(e=>{const t=R.get(e.token);t?t(e.value):$.fire(e)})),ce}},8437:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Disposable=void 0,(t.Disposable||(t.Disposable={})).create=function(e){return{dispose:e}}},5165:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Emitter=t.Event=void 0;const i=n(5706);!function(e){const t={dispose(){}};e.None=function(){return t}}(t.Event||(t.Event={}));class r{add(e,t=null,n){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(t),Array.isArray(n)&&n.push({dispose:()=>this.remove(e,t)})}remove(e,t=null){if(!this._callbacks)return;let n=!1;for(let i=0,r=this._callbacks.length;i<r;i++)if(this._callbacks[i]===e){if(this._contexts[i]===t)return this._callbacks.splice(i,1),void this._contexts.splice(i,1);n=!0}if(n)throw new Error("When adding a listener with a context, you should remove it with the same context")}invoke(...e){if(!this._callbacks)return[];const t=[],n=this._callbacks.slice(0),r=this._contexts.slice(0);for(let o=0,s=n.length;o<s;o++)try{t.push(n[o].apply(r[o],e))}catch(e){i.default().console.error(e)}return t}isEmpty(){return!this._callbacks||0===this._callbacks.length}dispose(){this._callbacks=void 0,this._contexts=void 0}}class o{constructor(e){this._options=e}get event(){return this._event||(this._event=(e,t,n)=>{this._callbacks||(this._callbacks=new r),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(e,t);const i={dispose:()=>{this._callbacks&&(this._callbacks.remove(e,t),i.dispose=o._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(n)&&n.push(i),i}),this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}}t.Emitter=o,o._noop=function(){}},8811:(e,t)=>{"use strict";function n(e){return"string"==typeof e||e instanceof String}function i(e){return Array.isArray(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.stringArray=t.array=t.func=t.error=t.number=t.string=t.boolean=void 0,t.boolean=function(e){return!0===e||!1===e},t.string=n,t.number=function(e){return"number"==typeof e||e instanceof Number},t.error=function(e){return e instanceof Error},t.func=function(e){return"function"==typeof e},t.array=i,t.stringArray=function(e){return i(e)&&e.every((e=>n(e)))}},7040:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.LRUCache=t.LinkedMap=t.Touch=void 0,function(e){e.None=0,e.First=1,e.AsOld=e.First,e.Last=2,e.AsNew=e.Last}(n=t.Touch||(t.Touch={}));class i{constructor(){this[Symbol.toStringTag]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){var e;return null===(e=this._head)||void 0===e?void 0:e.value}get last(){var e;return null===(e=this._tail)||void 0===e?void 0:e.value}has(e){return this._map.has(e)}get(e,t=n.None){const i=this._map.get(e);if(i)return t!==n.None&&this.touch(i,t),i.value}set(e,t,i=n.None){let r=this._map.get(e);if(r)r.value=t,i!==n.None&&this.touch(r,i);else{switch(r={key:e,value:t,next:void 0,previous:void 0},i){case n.None:this.addItemLast(r);break;case n.First:this.addItemFirst(r);break;case n.Last:default:this.addItemLast(r)}this._map.set(e,r),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){const n=this._state;let i=this._head;for(;i;){if(t?e.bind(t)(i.value,i.key,this):e(i.value,i.key,this),this._state!==n)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){const e=this,t=this._state;let n=this._head;const i={[Symbol.iterator]:()=>i,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:n.key,done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return i}values(){const e=this,t=this._state;let n=this._head;const i={[Symbol.iterator]:()=>i,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:n.value,done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return i}entries(){const e=this,t=this._state;let n=this._head;const i={[Symbol.iterator]:()=>i,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:[n.key,n.value],done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return i}[Symbol.iterator](){return this.entries()}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._head,n=this.size;for(;t&&n>e;)this._map.delete(t.key),t=t.next,n--;this._head=t,this._size=n,t&&(t.previous=void 0),this._state++}addItemFirst(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e,this._state++}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,n=e.previous;if(!t||!n)throw new Error("Invalid list");t.previous=n,n.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(t===n.First||t===n.Last)if(t===n.First){if(e===this._head)return;const t=e.next,n=e.previous;e===this._tail?(n.next=void 0,this._tail=n):(t.previous=n,n.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(t===n.Last){if(e===this._tail)return;const t=e.next,n=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=n,n.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}toJSON(){const e=[];return this.forEach(((t,n)=>{e.push([n,t])})),e}fromJSON(e){this.clear();for(const[t,n]of e)this.set(t,n)}}t.LinkedMap=i,t.LRUCache=class extends i{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get ratio(){return this._ratio}set ratio(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()}get(e,t=n.AsNew){return super.get(e,t)}peek(e){return super.get(e,n.None)}set(e,t){return super.set(e,t,n.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}},8652:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractMessageBuffer=void 0,t.AbstractMessageBuffer=class{constructor(e="utf-8"){this._encoding=e,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(e){const t="string"==typeof e?this.fromString(e,this._encoding):e;this._chunks.push(t),this._totalLength+=t.byteLength}tryReadHeaders(){if(0===this._chunks.length)return;let e=0,t=0,n=0,i=0;e:for(;t<this._chunks.length;){const r=this._chunks[t];for(n=0;n<r.length;){switch(r[n]){case 13:switch(e){case 0:e=1;break;case 2:e=3;break;default:e=0}break;case 10:switch(e){case 1:e=2;break;case 3:e=4,n++;break e;default:e=0}break;default:e=0}n++}i+=r.byteLength,t++}if(4!==e)return;const r=this._read(i+n),o=new Map,s=this.toString(r,"ascii").split("\r\n");if(s.length<2)return o;for(let e=0;e<s.length-2;e++){const t=s[e],n=t.indexOf(":");if(-1===n)throw new Error("Message header must separate key and value using :");const i=t.substr(0,n),r=t.substr(n+1).trim();o.set(i,r)}return o}tryReadBody(e){if(!(this._totalLength<e))return this._read(e)}get numberOfBytes(){return this._totalLength}_read(e){if(0===e)return this.emptyBuffer();if(e>this._totalLength)throw new Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===e){const t=this._chunks[0];return this._chunks.shift(),this._totalLength-=e,this.asNative(t)}if(this._chunks[0].byteLength>e){const t=this._chunks[0],n=this.asNative(t,e);return this._chunks[0]=t.slice(e),this._totalLength-=e,n}const t=this.allocNative(e);let n=0;for(;e>0;){const i=this._chunks[0];if(i.byteLength>e){const r=i.slice(0,e);t.set(r,n),n+=e,this._chunks[0]=i.slice(e),this._totalLength-=e,e-=e}else t.set(i,n),n+=i.byteLength,this._chunks.shift(),this._totalLength-=i.byteLength,e-=i.byteLength}return t}}},451:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReadableStreamMessageReader=t.AbstractMessageReader=t.MessageReader=void 0;const i=n(5706),r=n(8811),o=n(5165);var s;(t.MessageReader||(t.MessageReader={})).is=function(e){let t=e;return t&&r.func(t.listen)&&r.func(t.dispose)&&r.func(t.onError)&&r.func(t.onClose)&&r.func(t.onPartialMessage)};class a{constructor(){this.errorEmitter=new o.Emitter,this.closeEmitter=new o.Emitter,this.partialMessageEmitter=new o.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e){this.errorEmitter.fire(this.asError(e))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(e){this.partialMessageEmitter.fire(e)}asError(e){return e instanceof Error?e:new Error(`Reader received error. Reason: ${r.string(e.message)?e.message:"unknown"}`)}}t.AbstractMessageReader=a,function(e){e.fromOptions=function(e){var t;let n,r;const o=new Map;let s;const a=new Map;if(void 0===e||"string"==typeof e)n=null!=e?e:"utf-8";else{if(n=null!==(t=e.charset)&&void 0!==t?t:"utf-8",void 0!==e.contentDecoder&&(r=e.contentDecoder,o.set(r.name,r)),void 0!==e.contentDecoders)for(const t of e.contentDecoders)o.set(t.name,t);if(void 0!==e.contentTypeDecoder&&(s=e.contentTypeDecoder,a.set(s.name,s)),void 0!==e.contentTypeDecoders)for(const t of e.contentTypeDecoders)a.set(t.name,t)}return void 0===s&&(s=i.default().applicationJson.decoder,a.set(s.name,s)),{charset:n,contentDecoder:r,contentDecoders:o,contentTypeDecoder:s,contentTypeDecoders:a}}}(s||(s={})),t.ReadableStreamMessageReader=class extends a{constructor(e,t){super(),this.readable=e,this.options=s.fromOptions(t),this.buffer=i.default().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0}set partialMessageTimeout(e){this._partialMessageTimeout=e}get partialMessageTimeout(){return this._partialMessageTimeout}listen(e){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=e;const t=this.readable.onData((e=>{this.onData(e)}));return this.readable.onError((e=>this.fireError(e))),this.readable.onClose((()=>this.fireClose())),t}onData(e){for(this.buffer.append(e);;){if(-1===this.nextMessageLength){const e=this.buffer.tryReadHeaders();if(!e)return;const t=e.get("Content-Length");if(!t)throw new Error("Header must provide a Content-Length property.");const n=parseInt(t);if(isNaN(n))throw new Error("Content-Length value must be a number.");this.nextMessageLength=n}const e=this.buffer.tryReadBody(this.nextMessageLength);if(void 0===e)return void this.setPartialMessageTimer();let t;this.clearPartialMessageTimer(),this.nextMessageLength=-1,t=void 0!==this.options.contentDecoder?this.options.contentDecoder.decode(e):Promise.resolve(e),t.then((e=>{this.options.contentTypeDecoder.decode(e,this.options).then((e=>{this.callback(e)}),(e=>{this.fireError(e)}))}),(e=>{this.fireError(e)}))}}clearPartialMessageTimer(){this.partialMessageTimer&&(i.default().timer.clearTimeout(this.partialMessageTimer),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),this._partialMessageTimeout<=0||(this.partialMessageTimer=i.default().timer.setTimeout(((e,t)=>{this.partialMessageTimer=void 0,e===this.messageToken&&(this.firePartialMessage({messageToken:e,waitingTime:t}),this.setPartialMessageTimer())}),this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout))}}},1251:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WriteableStreamMessageWriter=t.AbstractMessageWriter=t.MessageWriter=void 0;const i=n(5706),r=n(8811),o=n(2339),s=n(5165);var a;(t.MessageWriter||(t.MessageWriter={})).is=function(e){let t=e;return t&&r.func(t.dispose)&&r.func(t.onClose)&&r.func(t.onError)&&r.func(t.write)};class c{constructor(){this.errorEmitter=new s.Emitter,this.closeEmitter=new s.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e,t,n){this.errorEmitter.fire([this.asError(e),t,n])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}asError(e){return e instanceof Error?e:new Error(`Writer received error. Reason: ${r.string(e.message)?e.message:"unknown"}`)}}t.AbstractMessageWriter=c,function(e){e.fromOptions=function(e){var t,n;return void 0===e||"string"==typeof e?{charset:null!=e?e:"utf-8",contentTypeEncoder:i.default().applicationJson.encoder}:{charset:null!==(t=e.charset)&&void 0!==t?t:"utf-8",contentEncoder:e.contentEncoder,contentTypeEncoder:null!==(n=e.contentTypeEncoder)&&void 0!==n?n:i.default().applicationJson.encoder}}}(a||(a={})),t.WriteableStreamMessageWriter=class extends c{constructor(e,t){super(),this.writable=e,this.options=a.fromOptions(t),this.errorCount=0,this.writeSemaphore=new o.Semaphore(1),this.writable.onError((e=>this.fireError(e))),this.writable.onClose((()=>this.fireClose()))}async write(e){return this.writeSemaphore.lock((async()=>this.options.contentTypeEncoder.encode(e,this.options).then((e=>void 0!==this.options.contentEncoder?this.options.contentEncoder.encode(e):e)).then((t=>{const n=[];return n.push("Content-Length: ",t.byteLength.toString(),"\r\n"),n.push("\r\n"),this.doWrite(e,n,t)}),(e=>{throw this.fireError(e),e}))))}async doWrite(e,t,n){try{return await this.writable.write(t.join(""),"ascii"),this.writable.write(n)}catch(t){return this.handleError(t,e),Promise.reject(t)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){this.writable.end()}}},9141:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isResponseMessage=t.isNotificationMessage=t.isRequestMessage=t.NotificationType9=t.NotificationType8=t.NotificationType7=t.NotificationType6=t.NotificationType5=t.NotificationType4=t.NotificationType3=t.NotificationType2=t.NotificationType1=t.NotificationType0=t.NotificationType=t.RequestType9=t.RequestType8=t.RequestType7=t.RequestType6=t.RequestType5=t.RequestType4=t.RequestType3=t.RequestType2=t.RequestType1=t.RequestType=t.RequestType0=t.AbstractMessageSignature=t.ParameterStructures=t.ResponseError=t.ErrorCodes=void 0;const i=n(8811);var r;!function(e){e.ParseError=-32700,e.InvalidRequest=-32600,e.MethodNotFound=-32601,e.InvalidParams=-32602,e.InternalError=-32603,e.jsonrpcReservedErrorRangeStart=-32099,e.serverErrorStart=e.jsonrpcReservedErrorRangeStart,e.MessageWriteError=-32099,e.MessageReadError=-32098,e.ServerNotInitialized=-32002,e.UnknownErrorCode=-32001,e.jsonrpcReservedErrorRangeEnd=-32e3,e.serverErrorEnd=e.jsonrpcReservedErrorRangeEnd}(r=t.ErrorCodes||(t.ErrorCodes={}));class o extends Error{constructor(e,t,n){super(t),this.code=i.number(e)?e:r.UnknownErrorCode,this.data=n,Object.setPrototypeOf(this,o.prototype)}toJson(){return{code:this.code,message:this.message,data:this.data}}}t.ResponseError=o;class s{constructor(e){this.kind=e}static is(e){return e===s.auto||e===s.byName||e===s.byPosition}toString(){return this.kind}}t.ParameterStructures=s,s.auto=new s("auto"),s.byPosition=new s("byPosition"),s.byName=new s("byName");class a{constructor(e,t){this.method=e,this.numberOfParams=t}get parameterStructures(){return s.auto}}t.AbstractMessageSignature=a,t.RequestType0=class extends a{constructor(e){super(e,0)}},t.RequestType=class extends a{constructor(e,t=s.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},t.RequestType1=class extends a{constructor(e,t=s.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},t.RequestType2=class extends a{constructor(e){super(e,2)}},t.RequestType3=class extends a{constructor(e){super(e,3)}},t.RequestType4=class extends a{constructor(e){super(e,4)}},t.RequestType5=class extends a{constructor(e){super(e,5)}},t.RequestType6=class extends a{constructor(e){super(e,6)}},t.RequestType7=class extends a{constructor(e){super(e,7)}},t.RequestType8=class extends a{constructor(e){super(e,8)}},t.RequestType9=class extends a{constructor(e){super(e,9)}},t.NotificationType=class extends a{constructor(e,t=s.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},t.NotificationType0=class extends a{constructor(e){super(e,0)}},t.NotificationType1=class extends a{constructor(e,t=s.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},t.NotificationType2=class extends a{constructor(e){super(e,2)}},t.NotificationType3=class extends a{constructor(e){super(e,3)}},t.NotificationType4=class extends a{constructor(e){super(e,4)}},t.NotificationType5=class extends a{constructor(e){super(e,5)}},t.NotificationType6=class extends a{constructor(e){super(e,6)}},t.NotificationType7=class extends a{constructor(e){super(e,7)}},t.NotificationType8=class extends a{constructor(e){super(e,8)}},t.NotificationType9=class extends a{constructor(e){super(e,9)}},t.isRequestMessage=function(e){const t=e;return t&&i.string(t.method)&&(i.string(t.id)||i.number(t.id))},t.isNotificationMessage=function(e){const t=e;return t&&i.string(t.method)&&void 0===e.id},t.isResponseMessage=function(e){const t=e;return t&&(void 0!==t.result||!!t.error)&&(i.string(t.id)||i.number(t.id)||null===t.id)}},5706:(e,t)=>{"use strict";let n;function i(){if(void 0===n)throw new Error("No runtime abstraction layer installed");return n}Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.install=function(e){if(void 0===e)throw new Error("No runtime abstraction layer provided");n=e}}(i||(i={})),t.default=i},2339:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Semaphore=void 0;const i=n(5706);t.Semaphore=class{constructor(e=1){if(e<=0)throw new Error("Capacity must be greater than 0");this._capacity=e,this._active=0,this._waiting=[]}lock(e){return new Promise(((t,n)=>{this._waiting.push({thunk:e,resolve:t,reject:n}),this.runNext()}))}get active(){return this._active}runNext(){0!==this._waiting.length&&this._active!==this._capacity&&i.default().timer.setImmediate((()=>this.doRunNext()))}doRunNext(){if(0===this._waiting.length||this._active===this._capacity)return;const e=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error("To many thunks active");try{const t=e.thunk();t instanceof Promise?t.then((t=>{this._active--,e.resolve(t),this.runNext()}),(t=>{this._active--,e.reject(t),this.runNext()})):(this._active--,e.resolve(t),this.runNext())}catch(t){this._active--,e.reject(t),this.runNext()}}}},39:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.createMessageConnection=t.createServerSocketTransport=t.createClientSocketTransport=t.createServerPipeTransport=t.createClientPipeTransport=t.generateRandomPipeName=t.StreamMessageWriter=t.StreamMessageReader=t.SocketMessageWriter=t.SocketMessageReader=t.IPCMessageWriter=t.IPCMessageReader=void 0;const o=n(620);o.default.install();const s=n(5247),a=n(1017),c=n(2037),u=n(6113),l=n(1808);r(n(5247),t);class h extends s.AbstractMessageReader{constructor(e){super(),this.process=e;let t=this.process;t.on("error",(e=>this.fireError(e))),t.on("close",(()=>this.fireClose()))}listen(e){return this.process.on("message",e),s.Disposable.create((()=>this.process.off("message",e)))}}t.IPCMessageReader=h;class d extends s.AbstractMessageWriter{constructor(e){super(),this.process=e,this.errorCount=0;let t=this.process;t.on("error",(e=>this.fireError(e))),t.on("close",(()=>this.fireClose))}write(e){try{return"function"==typeof this.process.send&&this.process.send(e,void 0,void 0,(t=>{t?(this.errorCount++,this.handleError(t,e)):this.errorCount=0})),Promise.resolve()}catch(t){return this.handleError(t,e),Promise.reject(t)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){}}t.IPCMessageWriter=d;class p extends s.ReadableStreamMessageReader{constructor(e,t="utf-8"){super(o.default().stream.asReadableStream(e),t)}}t.SocketMessageReader=p;class f extends s.WriteableStreamMessageWriter{constructor(e,t){super(o.default().stream.asWritableStream(e),t),this.socket=e}dispose(){super.dispose(),this.socket.destroy()}}t.SocketMessageWriter=f;class g extends s.ReadableStreamMessageReader{constructor(e,t){super(o.default().stream.asReadableStream(e),t)}}t.StreamMessageReader=g;class m extends s.WriteableStreamMessageWriter{constructor(e,t){super(o.default().stream.asWritableStream(e),t)}}t.StreamMessageWriter=m;const y=process.env.XDG_RUNTIME_DIR,v=new Map([["linux",107],["darwin",103]]);t.generateRandomPipeName=function(){const e=u.randomBytes(21).toString("hex");if("win32"===process.platform)return`\\\\.\\pipe\\vscode-jsonrpc-${e}-sock`;let t;t=y?a.join(y,`vscode-ipc-${e}.sock`):a.join(c.tmpdir(),`vscode-${e}.sock`);const n=v.get(process.platform);return void 0!==n&&t.length>=n&&o.default().console.warn(`WARNING: IPC handle "${t}" is longer than ${n} characters.`),t},t.createClientPipeTransport=function(e,t="utf-8"){let n;const i=new Promise(((e,t)=>{n=e}));return new Promise(((r,o)=>{let s=l.createServer((e=>{s.close(),n([new p(e,t),new f(e,t)])}));s.on("error",o),s.listen(e,(()=>{s.removeListener("error",o),r({onConnected:()=>i})}))}))},t.createServerPipeTransport=function(e,t="utf-8"){const n=l.createConnection(e);return[new p(n,t),new f(n,t)]},t.createClientSocketTransport=function(e,t="utf-8"){let n;const i=new Promise(((e,t)=>{n=e}));return new Promise(((r,o)=>{const s=l.createServer((e=>{s.close(),n([new p(e,t),new f(e,t)])}));s.on("error",o),s.listen(e,"127.0.0.1",(()=>{s.removeListener("error",o),r({onConnected:()=>i})}))}))},t.createServerSocketTransport=function(e,t="utf-8"){const n=l.createConnection(e,"127.0.0.1");return[new p(n,t),new f(n,t)]},t.createMessageConnection=function(e,t,n,i){n||(n=s.NullLogger);const r=function(e){const t=e;return void 0!==t.read&&void 0!==t.addListener}(e)?new g(e):e,o=function(e){const t=e;return void 0!==t.write&&void 0!==t.addListener}(t)?new m(t):t;return s.ConnectionStrategy.is(i)&&(i={connectionStrategy:i}),s.createMessageConnection(r,o,n,i)}},620:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(5706),r=n(3837),o=n(8437),s=n(8652);class a extends s.AbstractMessageBuffer{constructor(e="utf-8"){super(e)}emptyBuffer(){return a.emptyBuffer}fromString(e,t){return Buffer.from(e,t)}toString(e,t){return e instanceof Buffer?e.toString(t):new r.TextDecoder(t).decode(e)}asNative(e,t){return void 0===t?e instanceof Buffer?e:Buffer.from(e):e instanceof Buffer?e.slice(0,t):Buffer.from(e,0,t)}allocNative(e){return Buffer.allocUnsafe(e)}}a.emptyBuffer=Buffer.allocUnsafe(0);class c{constructor(e){this.stream=e}onClose(e){return this.stream.on("close",e),o.Disposable.create((()=>this.stream.off("close",e)))}onError(e){return this.stream.on("error",e),o.Disposable.create((()=>this.stream.off("error",e)))}onEnd(e){return this.stream.on("end",e),o.Disposable.create((()=>this.stream.off("end",e)))}onData(e){return this.stream.on("data",e),o.Disposable.create((()=>this.stream.off("data",e)))}}class u{constructor(e){this.stream=e}onClose(e){return this.stream.on("close",e),o.Disposable.create((()=>this.stream.off("close",e)))}onError(e){return this.stream.on("error",e),o.Disposable.create((()=>this.stream.off("error",e)))}onEnd(e){return this.stream.on("end",e),o.Disposable.create((()=>this.stream.off("end",e)))}write(e,t){return new Promise(((n,i)=>{const r=e=>{null==e?n():i(e)};"string"==typeof e?this.stream.write(e,t,r):this.stream.write(e,r)}))}end(){this.stream.end()}}const l=Object.freeze({messageBuffer:Object.freeze({create:e=>new a(e)}),applicationJson:Object.freeze({encoder:Object.freeze({name:"application/json",encode:(e,t)=>{try{return Promise.resolve(Buffer.from(JSON.stringify(e,void 0,0),t.charset))}catch(e){return Promise.reject(e)}}}),decoder:Object.freeze({name:"application/json",decode:(e,t)=>{try{return e instanceof Buffer?Promise.resolve(JSON.parse(e.toString(t.charset))):Promise.resolve(JSON.parse(new r.TextDecoder(t.charset).decode(e)))}catch(e){return Promise.reject(e)}}})}),stream:Object.freeze({asReadableStream:e=>new c(e),asWritableStream:e=>new u(e)}),console,timer:Object.freeze({setTimeout:(e,t,...n)=>setTimeout(e,t,...n),clearTimeout(e){clearTimeout(e)},setImmediate:(e,...t)=>setImmediate(e,...t),clearImmediate(e){clearImmediate(e)}})});function h(){return l}!function(e){e.install=function(){i.default.install(l)}}(h||(h={})),t.default=h},1335:(e,t,n)=>{"use strict";e.exports=n(39)},7944:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(1747),t),r(n(9343),t),r(n(8758),t)},5393:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CallHierarchyFeature=void 0;const i=n(9496),r=n(1747),o=n(9343);function s(e,t){return void 0===e[t]&&(e[t]={}),e[t]}class a{constructor(e){this.client=e,this.middleware=e.clientOptions.middleware}prepareCallHierarchy(e,t,n){const i=this.client,o=this.middleware,s=(e,t,n)=>{const o=i.code2ProtocolConverter.asTextDocumentPositionParams(e,t);return i.sendRequest(r.CallHierarchyPrepareRequest.type,o,n).then((e=>i.protocol2CodeConverter.asCallHierarchyItems(e)),(e=>i.handleFailedRequest(r.CallHierarchyPrepareRequest.type,e,null)))};return o.prepareCallHierarchy?o.prepareCallHierarchy(e,t,n,s):s(e,t,n)}provideCallHierarchyIncomingCalls(e,t){const n=this.client,i=this.middleware,o=(e,t)=>{const i={item:n.code2ProtocolConverter.asCallHierarchyItem(e)};return n.sendRequest(r.CallHierarchyIncomingCallsRequest.type,i,t).then((e=>n.protocol2CodeConverter.asCallHierarchyIncomingCalls(e)),(e=>n.handleFailedRequest(r.CallHierarchyIncomingCallsRequest.type,e,null)))};return i.provideCallHierarchyIncomingCalls?i.provideCallHierarchyIncomingCalls(e,t,o):o(e,t)}provideCallHierarchyOutgoingCalls(e,t){const n=this.client,i=this.middleware,o=(e,t)=>{const i={item:n.code2ProtocolConverter.asCallHierarchyItem(e)};return n.sendRequest(r.CallHierarchyOutgoingCallsRequest.type,i,t).then((e=>n.protocol2CodeConverter.asCallHierarchyOutgoingCalls(e)),(e=>n.handleFailedRequest(r.CallHierarchyOutgoingCallsRequest.type,e,null)))};return i.provideCallHierarchyOutgoingCalls?i.provideCallHierarchyOutgoingCalls(e,t,o):o(e,t)}}class c extends o.TextDocumentFeature{constructor(e){super(e,r.CallHierarchyPrepareRequest.type)}fillClientCapabilities(e){s(s(e,"textDocument"),"callHierarchy").dynamicRegistration=!0}initialize(e,t){const[n,i]=this.getRegistration(t,e.callHierarchyProvider);n&&i&&this.register({id:n,registerOptions:i})}registerLanguageProvider(e){const t=this._client,n=new a(t);return[i.languages.registerCallHierarchyProvider(e.documentSelector,n),n]}}t.CallHierarchyFeature=c},9343:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseLanguageClient=t.MessageTransports=t.TextDocumentFeature=t.State=t.RevealOutputChannelOn=t.CloseAction=t.ErrorAction=void 0;const i=n(9496),r=n(1747),o=n(5122),s=n(895),a=n(1011),c=n(4652),u=n(899),l=n(2667),h=n(5984);class d{error(e){r.RAL().console.error(e)}warn(e){r.RAL().console.warn(e)}info(e){r.RAL().console.info(e)}log(e){r.RAL().console.log(e)}}var p,f,g,m,y;!function(e){e[e.Continue=1]="Continue",e[e.Shutdown=2]="Shutdown"}(p=t.ErrorAction||(t.ErrorAction={})),function(e){e[e.DoNotRestart=1]="DoNotRestart",e[e.Restart=2]="Restart"}(f=t.CloseAction||(t.CloseAction={}));class v{constructor(e,t){this.name=e,this.maxRestartCount=t,this.restarts=[]}error(e,t,n){return n&&n<=3?p.Continue:p.Shutdown}closed(){return this.restarts.push(Date.now()),this.restarts.length<=this.maxRestartCount?f.Restart:this.restarts[this.restarts.length-1]-this.restarts[0]<=18e4?(i.window.showErrorMessage(`The ${this.name} server crashed ${this.maxRestartCount+1} times in the last 3 minutes. The server will not be restarted.`),f.DoNotRestart):(this.restarts.shift(),f.Restart)}}!function(e){e[e.Info=1]="Info",e[e.Warn=2]="Warn",e[e.Error=3]="Error",e[e.Never=4]="Never"}(g=t.RevealOutputChannelOn||(t.RevealOutputChannelOn={})),function(e){e[e.Stopped=1]="Stopped",e[e.Starting=3]="Starting",e[e.Running=2]="Running"}(m=t.State||(t.State={})),function(e){e[e.Initial=0]="Initial",e[e.Starting=1]="Starting",e[e.StartFailed=2]="StartFailed",e[e.Running=3]="Running",e[e.Stopping=4]="Stopping",e[e.Stopped=5]="Stopped"}(y||(y={}));const C=[r.SymbolKind.File,r.SymbolKind.Module,r.SymbolKind.Namespace,r.SymbolKind.Package,r.SymbolKind.Class,r.SymbolKind.Method,r.SymbolKind.Property,r.SymbolKind.Field,r.SymbolKind.Constructor,r.SymbolKind.Enum,r.SymbolKind.Interface,r.SymbolKind.Function,r.SymbolKind.Variable,r.SymbolKind.Constant,r.SymbolKind.String,r.SymbolKind.Number,r.SymbolKind.Boolean,r.SymbolKind.Array,r.SymbolKind.Object,r.SymbolKind.Key,r.SymbolKind.Null,r.SymbolKind.EnumMember,r.SymbolKind.Struct,r.SymbolKind.Event,r.SymbolKind.Operator,r.SymbolKind.TypeParameter],S=[r.CompletionItemKind.Text,r.CompletionItemKind.Method,r.CompletionItemKind.Function,r.CompletionItemKind.Constructor,r.CompletionItemKind.Field,r.CompletionItemKind.Variable,r.CompletionItemKind.Class,r.CompletionItemKind.Interface,r.CompletionItemKind.Module,r.CompletionItemKind.Property,r.CompletionItemKind.Unit,r.CompletionItemKind.Value,r.CompletionItemKind.Enum,r.CompletionItemKind.Keyword,r.CompletionItemKind.Snippet,r.CompletionItemKind.Color,r.CompletionItemKind.File,r.CompletionItemKind.Reference,r.CompletionItemKind.Folder,r.CompletionItemKind.EnumMember,r.CompletionItemKind.Constant,r.CompletionItemKind.Struct,r.CompletionItemKind.Event,r.CompletionItemKind.Operator,r.CompletionItemKind.TypeParameter],b=[r.SymbolTag.Deprecated];function E(e,t){return void 0===e[t]&&(e[t]={}),e[t]}var w,D;!function(e){e.fromConfiguration=function(e){const t=i.workspace.getConfiguration("files",e);return{trimTrailingWhitespace:t.get("trimTrailingWhitespace"),trimFinalNewlines:t.get("trimFinalNewlines"),insertFinalNewline:t.get("insertFinalNewline")}}}(w||(w={})),function(e){e.is=function(e){let t=e;return t&&c.func(t.register)&&c.func(t.unregister)&&c.func(t.dispose)&&void 0!==t.registrationType}}(D||(D={}));class x{constructor(e,t,n,i,r,o){this._client=e,this._event=t,this._type=n,this._middleware=i,this._createParams=r,this._selectorFilter=o,this._selectors=new Map}static textDocumentFilter(e,t){for(const n of e)if(i.languages.match(n,t))return!0;return!1}register(e){e.registerOptions.documentSelector&&(this._listener||(this._listener=this._event(this.callback,this)),this._selectors.set(e.id,e.registerOptions.documentSelector))}callback(e){this._selectorFilter&&!this._selectorFilter(this._selectors.values(),e)||(this._middleware?this._middleware(e,(e=>this._client.sendNotification(this._type,this._createParams(e)))):this._client.sendNotification(this._type,this._createParams(e)),this.notificationSent(e))}notificationSent(e){}unregister(e){this._selectors.delete(e),0===this._selectors.size&&this._listener&&(this._listener.dispose(),this._listener=void 0)}dispose(){this._selectors.clear(),this._listener&&(this._listener.dispose(),this._listener=void 0)}getProvider(e){for(const t of this._selectors.values())if(i.languages.match(t,e))return{send:e=>{this.callback(e)}}}}class _ extends x{constructor(e,t){super(e,i.workspace.onDidOpenTextDocument,r.DidOpenTextDocumentNotification.type,e.clientOptions.middleware.didOpen,(t=>e.code2ProtocolConverter.asOpenTextDocumentParams(t)),x.textDocumentFilter),this._syncedDocuments=t}fillClientCapabilities(e){E(E(e,"textDocument"),"synchronization").dynamicRegistration=!0}initialize(e,t){let n=e.resolvedTextDocumentSync;t&&n&&n.openClose&&this.register({id:l.generateUuid(),registerOptions:{documentSelector:t}})}get registrationType(){return r.DidOpenTextDocumentNotification.type}register(e){if(super.register(e),!e.registerOptions.documentSelector)return;let t=e.registerOptions.documentSelector;i.workspace.textDocuments.forEach((e=>{let n=e.uri.toString();if(!this._syncedDocuments.has(n)&&i.languages.match(t,e)){let t=this._client.clientOptions.middleware,i=e=>{this._client.sendNotification(this._type,this._createParams(e))};t.didOpen?t.didOpen(e,i):i(e),this._syncedDocuments.set(n,e)}}))}notificationSent(e){super.notificationSent(e),this._syncedDocuments.set(e.uri.toString(),e)}}class T extends x{constructor(e,t){super(e,i.workspace.onDidCloseTextDocument,r.DidCloseTextDocumentNotification.type,e.clientOptions.middleware.didClose,(t=>e.code2ProtocolConverter.asCloseTextDocumentParams(t)),x.textDocumentFilter),this._syncedDocuments=t}get registrationType(){return r.DidCloseTextDocumentNotification.type}fillClientCapabilities(e){E(E(e,"textDocument"),"synchronization").dynamicRegistration=!0}initialize(e,t){let n=e.resolvedTextDocumentSync;t&&n&&n.openClose&&this.register({id:l.generateUuid(),registerOptions:{documentSelector:t}})}notificationSent(e){super.notificationSent(e),this._syncedDocuments.delete(e.uri.toString())}unregister(e){let t=this._selectors.get(e);super.unregister(e);let n=this._selectors.values();this._syncedDocuments.forEach((e=>{if(i.languages.match(t,e)&&!this._selectorFilter(n,e)){let t=this._client.clientOptions.middleware,n=e=>{this._client.sendNotification(this._type,this._createParams(e))};this._syncedDocuments.delete(e.uri.toString()),t.didClose?t.didClose(e,n):n(e)}}))}}class k{constructor(e){this._client=e,this._changeData=new Map,this._forcingDelivery=!1}get registrationType(){return r.DidChangeTextDocumentNotification.type}fillClientCapabilities(e){E(E(e,"textDocument"),"synchronization").dynamicRegistration=!0}initialize(e,t){let n=e.resolvedTextDocumentSync;t&&n&&void 0!==n.change&&n.change!==r.TextDocumentSyncKind.None&&this.register({id:l.generateUuid(),registerOptions:Object.assign({},{documentSelector:t},{syncKind:n.change})})}register(e){e.registerOptions.documentSelector&&(this._listener||(this._listener=i.workspace.onDidChangeTextDocument(this.callback,this)),this._changeData.set(e.id,{documentSelector:e.registerOptions.documentSelector,syncKind:e.registerOptions.syncKind}))}callback(e){if(0!==e.contentChanges.length)for(const t of this._changeData.values())if(i.languages.match(t.documentSelector,e.document)){let n=this._client.clientOptions.middleware;if(t.syncKind===r.TextDocumentSyncKind.Incremental){let t=this._client.code2ProtocolConverter.asChangeTextDocumentParams(e);n.didChange?n.didChange(e,(()=>this._client.sendNotification(r.DidChangeTextDocumentNotification.type,t))):this._client.sendNotification(r.DidChangeTextDocumentNotification.type,t)}else if(t.syncKind===r.TextDocumentSyncKind.Full){let t=e=>{this._changeDelayer?(this._changeDelayer.uri!==e.document.uri.toString()&&(this.forceDelivery(),this._changeDelayer.uri=e.document.uri.toString()),this._changeDelayer.delayer.trigger((()=>{this._client.sendNotification(r.DidChangeTextDocumentNotification.type,this._client.code2ProtocolConverter.asChangeTextDocumentParams(e.document))}))):(this._changeDelayer={uri:e.document.uri.toString(),delayer:new u.Delayer(200)},this._changeDelayer.delayer.trigger((()=>{this._client.sendNotification(r.DidChangeTextDocumentNotification.type,this._client.code2ProtocolConverter.asChangeTextDocumentParams(e.document))}),-1))};n.didChange?n.didChange(e,t):t(e)}}}unregister(e){this._changeData.delete(e),0===this._changeData.size&&this._listener&&(this._listener.dispose(),this._listener=void 0)}dispose(){this._changeDelayer=void 0,this._forcingDelivery=!1,this._changeData.clear(),this._listener&&(this._listener.dispose(),this._listener=void 0)}forceDelivery(){if(!this._forcingDelivery&&this._changeDelayer)try{this._forcingDelivery=!0,this._changeDelayer.delayer.forceDelivery()}finally{this._forcingDelivery=!1}}getProvider(e){for(const t of this._changeData.values())if(i.languages.match(t.documentSelector,e))return{send:e=>{this.callback(e)}}}}class F extends x{constructor(e){super(e,i.workspace.onWillSaveTextDocument,r.WillSaveTextDocumentNotification.type,e.clientOptions.middleware.willSave,(t=>e.code2ProtocolConverter.asWillSaveTextDocumentParams(t)),((e,t)=>x.textDocumentFilter(e,t.document)))}get registrationType(){return r.WillSaveTextDocumentNotification.type}fillClientCapabilities(e){E(E(e,"textDocument"),"synchronization").willSave=!0}initialize(e,t){let n=e.resolvedTextDocumentSync;t&&n&&n.willSave&&this.register({id:l.generateUuid(),registerOptions:{documentSelector:t}})}}class A{constructor(e){this._client=e,this._selectors=new Map}get registrationType(){return r.WillSaveTextDocumentWaitUntilRequest.type}fillClientCapabilities(e){E(E(e,"textDocument"),"synchronization").willSaveWaitUntil=!0}initialize(e,t){let n=e.resolvedTextDocumentSync;t&&n&&n.willSaveWaitUntil&&this.register({id:l.generateUuid(),registerOptions:{documentSelector:t}})}register(e){e.registerOptions.documentSelector&&(this._listener||(this._listener=i.workspace.onWillSaveTextDocument(this.callback,this)),this._selectors.set(e.id,e.registerOptions.documentSelector))}callback(e){if(x.textDocumentFilter(this._selectors.values(),e.document)){let t=this._client.clientOptions.middleware,n=e=>this._client.sendRequest(r.WillSaveTextDocumentWaitUntilRequest.type,this._client.code2ProtocolConverter.asWillSaveTextDocumentParams(e)).then((e=>{let t=this._client.protocol2CodeConverter.asTextEdits(e);return void 0===t?[]:t}));e.waitUntil(t.willSaveWaitUntil?t.willSaveWaitUntil(e,n):n(e))}}unregister(e){this._selectors.delete(e),0===this._selectors.size&&this._listener&&(this._listener.dispose(),this._listener=void 0)}dispose(){this._selectors.clear(),this._listener&&(this._listener.dispose(),this._listener=void 0)}}class R extends x{constructor(e){super(e,i.workspace.onDidSaveTextDocument,r.DidSaveTextDocumentNotification.type,e.clientOptions.middleware.didSave,(t=>e.code2ProtocolConverter.asSaveTextDocumentParams(t,this._includeText)),x.textDocumentFilter),this._includeText=!1}get registrationType(){return r.DidSaveTextDocumentNotification.type}fillClientCapabilities(e){E(E(e,"textDocument"),"synchronization").didSave=!0}initialize(e,t){const n=e.resolvedTextDocumentSync;if(t&&n&&n.save){const e="boolean"==typeof n.save?{includeText:!1}:{includeText:!!n.save.includeText};this.register({id:l.generateUuid(),registerOptions:Object.assign({},{documentSelector:t},e)})}}register(e){this._includeText=!!e.registerOptions.includeText,super.register(e)}}class O{constructor(e,t){this._client=e,this._notifyFileEvent=t,this._watchers=new Map}get registrationType(){return r.DidChangeWatchedFilesNotification.type}fillClientCapabilities(e){E(E(e,"workspace"),"didChangeWatchedFiles").dynamicRegistration=!0}initialize(e,t){}register(e){if(!Array.isArray(e.registerOptions.watchers))return;let t=[];for(let n of e.registerOptions.watchers){if(!c.string(n.globPattern))continue;let e=!0,o=!0,s=!0;void 0!==n.kind&&null!==n.kind&&(e=0!=(n.kind&r.WatchKind.Create),o=0!=(n.kind&r.WatchKind.Change),s=0!=(n.kind&r.WatchKind.Delete));let a=i.workspace.createFileSystemWatcher(n.globPattern,!e,!o,!s);this.hookListeners(a,e,o,s),t.push(a)}this._watchers.set(e.id,t)}registerRaw(e,t){let n=[];for(let e of t)this.hookListeners(e,!0,!0,!0,n);this._watchers.set(e,n)}hookListeners(e,t,n,i,o){t&&e.onDidCreate((e=>this._notifyFileEvent({uri:this._client.code2ProtocolConverter.asUri(e),type:r.FileChangeType.Created})),null,o),n&&e.onDidChange((e=>this._notifyFileEvent({uri:this._client.code2ProtocolConverter.asUri(e),type:r.FileChangeType.Changed})),null,o),i&&e.onDidDelete((e=>this._notifyFileEvent({uri:this._client.code2ProtocolConverter.asUri(e),type:r.FileChangeType.Deleted})),null,o)}unregister(e){let t=this._watchers.get(e);if(t)for(let e of t)e.dispose()}dispose(){this._watchers.forEach((e=>{for(let t of e)t.dispose()})),this._watchers.clear()}}class P{constructor(e,t){this._client=e,this._registrationType=t,this._registrations=new Map}get registrationType(){return this._registrationType}register(e){if(!e.registerOptions.documentSelector)return;let t=this.registerLanguageProvider(e.registerOptions);this._registrations.set(e.id,{disposable:t[0],data:e,provider:t[1]})}unregister(e){let t=this._registrations.get(e);void 0!==t&&t.disposable.dispose()}dispose(){this._registrations.forEach((e=>{e.disposable.dispose()})),this._registrations.clear()}getRegistration(e,t){if(!t)return[void 0,void 0];if(r.TextDocumentRegistrationOptions.is(t)){const n=r.StaticRegistrationOptions.hasId(t)?t.id:l.generateUuid(),i=t.documentSelector||e;if(i)return[n,Object.assign({},t,{documentSelector:i})]}else if(c.boolean(t)&&!0===t||r.WorkDoneProgressOptions.is(t)){if(!e)return[void 0,void 0];let n=c.boolean(t)&&!0===t?{documentSelector:e}:Object.assign({},t,{documentSelector:e});return[l.generateUuid(),n]}return[void 0,void 0]}getRegistrationOptions(e,t){if(e&&t)return c.boolean(t)&&!0===t?{documentSelector:e}:Object.assign({},t,{documentSelector:e})}getProvider(e){for(const t of this._registrations.values()){let n=t.data.registerOptions.documentSelector;if(null!==n&&i.languages.match(n,e))return t.provider}}getAllProviders(){const e=[];for(const t of this._registrations.values())e.push(t.provider);return e}}t.TextDocumentFeature=P;class M extends P{constructor(e){super(e,r.CompletionRequest.type)}fillClientCapabilities(e){let t=E(E(e,"textDocument"),"completion");t.dynamicRegistration=!0,t.contextSupport=!0,t.completionItem={snippetSupport:!0,commitCharactersSupport:!0,documentationFormat:[r.MarkupKind.Markdown,r.MarkupKind.PlainText],deprecatedSupport:!0,preselectSupport:!0,tagSupport:{valueSet:[r.CompletionItemTag.Deprecated]},insertReplaceSupport:!0,resolveSupport:{properties:["documentation","detail","additionalTextEdits"]},insertTextModeSupport:{valueSet:[r.InsertTextMode.asIs,r.InsertTextMode.adjustIndentation]}},t.completionItemKind={valueSet:S}}initialize(e,t){const n=this.getRegistrationOptions(t,e.completionProvider);n&&this.register({id:l.generateUuid(),registerOptions:n})}registerLanguageProvider(e){const t=e.triggerCharacters||[],n={provideCompletionItems:(e,t,n,i)=>{const o=this._client,s=this._client.clientOptions.middleware,a=(e,t,n,i)=>o.sendRequest(r.CompletionRequest.type,o.code2ProtocolConverter.asCompletionParams(e,t,n),i).then(o.protocol2CodeConverter.asCompletionResult,(e=>o.handleFailedRequest(r.CompletionRequest.type,e,null)));return s.provideCompletionItem?s.provideCompletionItem(e,t,i,n,a):a(e,t,i,n)},resolveCompletionItem:e.resolveProvider?(e,t)=>{const n=this._client,i=this._client.clientOptions.middleware,o=(e,t)=>n.sendRequest(r.CompletionResolveRequest.type,n.code2ProtocolConverter.asCompletionItem(e),t).then(n.protocol2CodeConverter.asCompletionItem,(t=>n.handleFailedRequest(r.CompletionResolveRequest.type,t,e)));return i.resolveCompletionItem?i.resolveCompletionItem(e,t,o):o(e,t)}:void 0};return[i.languages.registerCompletionItemProvider(e.documentSelector,n,...t),n]}}class N extends P{constructor(e){super(e,r.HoverRequest.type)}fillClientCapabilities(e){const t=E(E(e,"textDocument"),"hover");t.dynamicRegistration=!0,t.contentFormat=[r.MarkupKind.Markdown,r.MarkupKind.PlainText]}initialize(e,t){const n=this.getRegistrationOptions(t,e.hoverProvider);n&&this.register({id:l.generateUuid(),registerOptions:n})}registerLanguageProvider(e){const t={provideHover:(e,t,n)=>{const i=this._client,o=(e,t,n)=>i.sendRequest(r.HoverRequest.type,i.code2ProtocolConverter.asTextDocumentPositionParams(e,t),n).then(i.protocol2CodeConverter.asHover,(e=>i.handleFailedRequest(r.HoverRequest.type,e,null))),s=i.clientOptions.middleware;return s.provideHover?s.provideHover(e,t,n,o):o(e,t,n)}};return[i.languages.registerHoverProvider(e.documentSelector,t),t]}}class I extends P{constructor(e){super(e,r.SignatureHelpRequest.type)}fillClientCapabilities(e){let t=E(E(e,"textDocument"),"signatureHelp");t.dynamicRegistration=!0,t.signatureInformation={documentationFormat:[r.MarkupKind.Markdown,r.MarkupKind.PlainText]},t.signatureInformation.parameterInformation={labelOffsetSupport:!0},t.signatureInformation.activeParameterSupport=!0,t.contextSupport=!0}initialize(e,t){const n=this.getRegistrationOptions(t,e.signatureHelpProvider);n&&this.register({id:l.generateUuid(),registerOptions:n})}registerLanguageProvider(e){const t={provideSignatureHelp:(e,t,n,i)=>{const o=this._client,s=(e,t,n,i)=>o.sendRequest(r.SignatureHelpRequest.type,o.code2ProtocolConverter.asSignatureHelpParams(e,t,n),i).then(o.protocol2CodeConverter.asSignatureHelp,(e=>o.handleFailedRequest(r.SignatureHelpRequest.type,e,null))),a=o.clientOptions.middleware;return a.provideSignatureHelp?a.provideSignatureHelp(e,t,i,n,s):s(e,t,i,n)}};let n;if(void 0===e.retriggerCharacters){const r=e.triggerCharacters||[];n=i.languages.registerSignatureHelpProvider(e.documentSelector,t,...r)}else{const r={triggerCharacters:e.triggerCharacters||[],retriggerCharacters:e.retriggerCharacters||[]};n=i.languages.registerSignatureHelpProvider(e.documentSelector,t,r)}return[n,t]}}class L extends P{constructor(e){super(e,r.DefinitionRequest.type)}fillClientCapabilities(e){let t=E(E(e,"textDocument"),"definition");t.dynamicRegistration=!0,t.linkSupport=!0}initialize(e,t){const n=this.getRegistrationOptions(t,e.definitionProvider);n&&this.register({id:l.generateUuid(),registerOptions:n})}registerLanguageProvider(e){const t={provideDefinition:(e,t,n)=>{const i=this._client,o=(e,t,n)=>i.sendRequest(r.DefinitionRequest.type,i.code2ProtocolConverter.asTextDocumentPositionParams(e,t),n).then(i.protocol2CodeConverter.asDefinitionResult,(e=>i.handleFailedRequest(r.DefinitionRequest.type,e,null))),s=i.clientOptions.middleware;return s.provideDefinition?s.provideDefinition(e,t,n,o):o(e,t,n)}};return[i.languages.registerDefinitionProvider(e.documentSelector,t),t]}}class j extends P{constructor(e){super(e,r.ReferencesRequest.type)}fillClientCapabilities(e){E(E(e,"textDocument"),"references").dynamicRegistration=!0}initialize(e,t){const n=this.getRegistrationOptions(t,e.referencesProvider);n&&this.register({id:l.generateUuid(),registerOptions:n})}registerLanguageProvider(e){const t={provideReferences:(e,t,n,i)=>{const o=this._client,s=(e,t,n,i)=>o.sendRequest(r.ReferencesRequest.type,o.code2ProtocolConverter.asReferenceParams(e,t,n),i).then(o.protocol2CodeConverter.asReferences,(e=>o.handleFailedRequest(r.ReferencesRequest.type,e,null))),a=o.clientOptions.middleware;return a.provideReferences?a.provideReferences(e,t,n,i,s):s(e,t,n,i)}};return[i.languages.registerReferenceProvider(e.documentSelector,t),t]}}class B extends P{constructor(e){super(e,r.DocumentHighlightRequest.type)}fillClientCapabilities(e){E(E(e,"textDocument"),"documentHighlight").dynamicRegistration=!0}initialize(e,t){const n=this.getRegistrationOptions(t,e.documentHighlightProvider);n&&this.register({id:l.generateUuid(),registerOptions:n})}registerLanguageProvider(e){const t={provideDocumentHighlights:(e,t,n)=>{const i=this._client,o=(e,t,n)=>i.sendRequest(r.DocumentHighlightRequest.type,i.code2ProtocolConverter.asTextDocumentPositionParams(e,t),n).then(i.protocol2CodeConverter.asDocumentHighlights,(e=>i.handleFailedRequest(r.DocumentHighlightRequest.type,e,null))),s=i.clientOptions.middleware;return s.provideDocumentHighlights?s.provideDocumentHighlights(e,t,n,o):o(e,t,n)}};return[i.languages.registerDocumentHighlightProvider(e.documentSelector,t),t]}}class q extends P{constructor(e){super(e,r.DocumentSymbolRequest.type)}fillClientCapabilities(e){let t=E(E(e,"textDocument"),"documentSymbol");t.dynamicRegistration=!0,t.symbolKind={valueSet:C},t.hierarchicalDocumentSymbolSupport=!0,t.tagSupport={valueSet:b},t.labelSupport=!0}initialize(e,t){const n=this.getRegistrationOptions(t,e.documentSymbolProvider);n&&this.register({id:l.generateUuid(),registerOptions:n})}registerLanguageProvider(e){const t={provideDocumentSymbols:(e,t)=>{const n=this._client,i=(e,t)=>n.sendRequest(r.DocumentSymbolRequest.type,n.code2ProtocolConverter.asDocumentSymbolParams(e),t).then((e=>{if(null!==e){if(0===e.length)return[];{let t=e[0];return r.DocumentSymbol.is(t)?n.protocol2CodeConverter.asDocumentSymbols(e):n.protocol2CodeConverter.asSymbolInformations(e)}}}),(e=>n.handleFailedRequest(r.DocumentSymbolRequest.type,e,null))),o=n.clientOptions.middleware;return o.provideDocumentSymbols?o.provideDocumentSymbols(e,t,i):i(e,t)}},n=void 0!==e.label?{label:e.label}:void 0;return[i.languages.registerDocumentSymbolProvider(e.documentSelector,t,n),t]}}class U extends class{constructor(e,t){this._client=e,this._registrationType=t,this._registrations=new Map}get registrationType(){return this._registrationType}register(e){const t=this.registerLanguageProvider(e.registerOptions);this._registrations.set(e.id,{disposable:t[0],provider:t[1]})}unregister(e){let t=this._registrations.get(e);void 0!==t&&t.disposable.dispose()}dispose(){this._registrations.forEach((e=>{e.disposable.dispose()})),this._registrations.clear()}getProviders(){const e=[];for(const t of this._registrations.values())e.push(t.provider);return e}}{constructor(e){super(e,r.WorkspaceSymbolRequest.type)}fillClientCapabilities(e){let t=E(E(e,"workspace"),"symbol");t.dynamicRegistration=!0,t.symbolKind={valueSet:C},t.tagSupport={valueSet:b}}initialize(e){e.workspaceSymbolProvider&&this.register({id:l.generateUuid(),registerOptions:!0===e.workspaceSymbolProvider?{workDoneProgress:!1}:e.workspaceSymbolProvider})}registerLanguageProvider(e){const t={provideWorkspaceSymbols:(e,t)=>{const n=this._client,i=(e,t)=>n.sendRequest(r.WorkspaceSymbolRequest.type,{query:e},t).then(n.protocol2CodeConverter.asSymbolInformations,(e=>n.handleFailedRequest(r.WorkspaceSymbolRequest.type,e,null))),o=n.clientOptions.middleware;return o.provideWorkspaceSymbols?o.provideWorkspaceSymbols(e,t,i):i(e,t)}};return[i.languages.registerWorkspaceSymbolProvider(t),t]}}class W extends P{constructor(e){super(e,r.CodeActionRequest.type)}fillClientCapabilities(e){const t=E(E(e,"textDocument"),"codeAction");t.dynamicRegistration=!0,t.isPreferredSupport=!0,t.disabledSupport=!0,t.dataSupport=!0,t.resolveSupport={properties:["edit"]},t.codeActionLiteralSupport={codeActionKind:{valueSet:[r.CodeActionKind.Empty,r.CodeActionKind.QuickFix,r.CodeActionKind.Refactor,r.CodeActionKind.RefactorExtract,r.CodeActionKind.RefactorInline,r.CodeActionKind.RefactorRewrite,r.CodeActionKind.Source,r.CodeActionKind.SourceOrganizeImports]}},t.honorsChangeAnnotations=!1}initialize(e,t){const n=this.getRegistrationOptions(t,e.codeActionProvider);n&&this.register({id:l.generateUuid(),registerOptions:n})}registerLanguageProvider(e){const t={provideCodeActions:(e,t,n,i)=>{const o=this._client,s=(e,t,n,i)=>{const s={textDocument:o.code2ProtocolConverter.asTextDocumentIdentifier(e),range:o.code2ProtocolConverter.asRange(t),context:o.code2ProtocolConverter.asCodeActionContext(n)};return o.sendRequest(r.CodeActionRequest.type,s,i).then((e=>{if(null===e)return;const t=[];for(let n of e)r.Command.is(n)?t.push(o.protocol2CodeConverter.asCommand(n)):t.push(o.protocol2CodeConverter.asCodeAction(n));return t}),(e=>o.handleFailedRequest(r.CodeActionRequest.type,e,null)))},a=o.clientOptions.middleware;return a.provideCodeActions?a.provideCodeActions(e,t,n,i,s):s(e,t,n,i)},resolveCodeAction:e.resolveProvider?(e,t)=>{const n=this._client,i=this._client.clientOptions.middleware,o=(e,t)=>n.sendRequest(r.CodeActionResolveRequest.type,n.code2ProtocolConverter.asCodeAction(e),t).then(n.protocol2CodeConverter.asCodeAction,(t=>n.handleFailedRequest(r.CodeActionResolveRequest.type,t,e)));return i.resolveCodeAction?i.resolveCodeAction(e,t,o):o(e,t)}:void 0};return[i.languages.registerCodeActionsProvider(e.documentSelector,t,e.codeActionKinds?{providedCodeActionKinds:this._client.protocol2CodeConverter.asCodeActionKinds(e.codeActionKinds)}:void 0),t]}}class $ extends P{constructor(e){super(e,r.CodeLensRequest.type)}fillClientCapabilities(e){E(E(e,"textDocument"),"codeLens").dynamicRegistration=!0,E(E(e,"workspace"),"codeLens").refreshSupport=!0}initialize(e,t){this._client.onRequest(r.CodeLensRefreshRequest.type,(async()=>{for(const e of this.getAllProviders())e.onDidChangeCodeLensEmitter.fire()}));const n=this.getRegistrationOptions(t,e.codeLensProvider);n&&this.register({id:l.generateUuid(),registerOptions:n})}registerLanguageProvider(e){const t=new i.EventEmitter,n={onDidChangeCodeLenses:t.event,provideCodeLenses:(e,t)=>{const n=this._client,i=(e,t)=>n.sendRequest(r.CodeLensRequest.type,n.code2ProtocolConverter.asCodeLensParams(e),t).then(n.protocol2CodeConverter.asCodeLenses,(e=>n.handleFailedRequest(r.CodeLensRequest.type,e,null))),o=n.clientOptions.middleware;return o.provideCodeLenses?o.provideCodeLenses(e,t,i):i(e,t)},resolveCodeLens:e.resolveProvider?(e,t)=>{const n=this._client,i=(e,t)=>n.sendRequest(r.CodeLensResolveRequest.type,n.code2ProtocolConverter.asCodeLens(e),t).then(n.protocol2CodeConverter.asCodeLens,(t=>n.handleFailedRequest(r.CodeLensResolveRequest.type,t,e))),o=n.clientOptions.middleware;return o.resolveCodeLens?o.resolveCodeLens(e,t,i):i(e,t)}:void 0};return[i.languages.registerCodeLensProvider(e.documentSelector,n),{provider:n,onDidChangeCodeLensEmitter:t}]}}class K extends P{constructor(e){super(e,r.DocumentFormattingRequest.type)}fillClientCapabilities(e){E(E(e,"textDocument"),"formatting").dynamicRegistration=!0}initialize(e,t){const n=this.getRegistrationOptions(t,e.documentFormattingProvider);n&&this.register({id:l.generateUuid(),registerOptions:n})}registerLanguageProvider(e){const t={provideDocumentFormattingEdits:(e,t,n)=>{const i=this._client,o=(e,t,n)=>{const o={textDocument:i.code2ProtocolConverter.asTextDocumentIdentifier(e),options:i.code2ProtocolConverter.asFormattingOptions(t,w.fromConfiguration(e))};return i.sendRequest(r.DocumentFormattingRequest.type,o,n).then(i.protocol2CodeConverter.asTextEdits,(e=>i.handleFailedRequest(r.DocumentFormattingRequest.type,e,null)))},s=i.clientOptions.middleware;return s.provideDocumentFormattingEdits?s.provideDocumentFormattingEdits(e,t,n,o):o(e,t,n)}};return[i.languages.registerDocumentFormattingEditProvider(e.documentSelector,t),t]}}class z extends P{constructor(e){super(e,r.DocumentRangeFormattingRequest.type)}fillClientCapabilities(e){E(E(e,"textDocument"),"rangeFormatting").dynamicRegistration=!0}initialize(e,t){const n=this.getRegistrationOptions(t,e.documentRangeFormattingProvider);n&&this.register({id:l.generateUuid(),registerOptions:n})}registerLanguageProvider(e){const t={provideDocumentRangeFormattingEdits:(e,t,n,i)=>{const o=this._client,s=(e,t,n,i)=>{const s={textDocument:o.code2ProtocolConverter.asTextDocumentIdentifier(e),range:o.code2ProtocolConverter.asRange(t),options:o.code2ProtocolConverter.asFormattingOptions(n,w.fromConfiguration(e))};return o.sendRequest(r.DocumentRangeFormattingRequest.type,s,i).then(o.protocol2CodeConverter.asTextEdits,(e=>o.handleFailedRequest(r.DocumentRangeFormattingRequest.type,e,null)))},a=o.clientOptions.middleware;return a.provideDocumentRangeFormattingEdits?a.provideDocumentRangeFormattingEdits(e,t,n,i,s):s(e,t,n,i)}};return[i.languages.registerDocumentRangeFormattingEditProvider(e.documentSelector,t),t]}}class V extends P{constructor(e){super(e,r.DocumentOnTypeFormattingRequest.type)}fillClientCapabilities(e){E(E(e,"textDocument"),"onTypeFormatting").dynamicRegistration=!0}initialize(e,t){const n=this.getRegistrationOptions(t,e.documentOnTypeFormattingProvider);n&&this.register({id:l.generateUuid(),registerOptions:n})}registerLanguageProvider(e){const t={provideOnTypeFormattingEdits:(e,t,n,i,o)=>{const s=this._client,a=(e,t,n,i,o)=>{let a={textDocument:s.code2ProtocolConverter.asTextDocumentIdentifier(e),position:s.code2ProtocolConverter.asPosition(t),ch:n,options:s.code2ProtocolConverter.asFormattingOptions(i,w.fromConfiguration(e))};return s.sendRequest(r.DocumentOnTypeFormattingRequest.type,a,o).then(s.protocol2CodeConverter.asTextEdits,(e=>s.handleFailedRequest(r.DocumentOnTypeFormattingRequest.type,e,null)))},c=s.clientOptions.middleware;return c.provideOnTypeFormattingEdits?c.provideOnTypeFormattingEdits(e,t,n,i,o,a):a(e,t,n,i,o)}},n=e.moreTriggerCharacter||[];return[i.languages.registerOnTypeFormattingEditProvider(e.documentSelector,t,e.firstTriggerCharacter,...n),t]}}class H extends P{constructor(e){super(e,r.RenameRequest.type)}fillClientCapabilities(e){let t=E(E(e,"textDocument"),"rename");t.dynamicRegistration=!0,t.prepareSupport=!0,t.prepareSupportDefaultBehavior=r.PrepareSupportDefaultBehavior.Identifier,t.honorsChangeAnnotations=!0}initialize(e,t){const n=this.getRegistrationOptions(t,e.renameProvider);n&&(c.boolean(e.renameProvider)&&(n.prepareProvider=!1),this.register({id:l.generateUuid(),registerOptions:n}))}registerLanguageProvider(e){const t={provideRenameEdits:(e,t,n,i)=>{const o=this._client,s=(e,t,n,i)=>{let s={textDocument:o.code2ProtocolConverter.asTextDocumentIdentifier(e),position:o.code2ProtocolConverter.asPosition(t),newName:n};return o.sendRequest(r.RenameRequest.type,s,i).then(o.protocol2CodeConverter.asWorkspaceEdit,(e=>o.handleFailedRequest(r.RenameRequest.type,e,null)))},a=o.clientOptions.middleware;return a.provideRenameEdits?a.provideRenameEdits(e,t,n,i,s):s(e,t,n,i)},prepareRename:e.prepareProvider?(e,t,n)=>{const i=this._client,o=(e,t,n)=>{let o={textDocument:i.code2ProtocolConverter.asTextDocumentIdentifier(e),position:i.code2ProtocolConverter.asPosition(t)};return i.sendRequest(r.PrepareRenameRequest.type,o,n).then((e=>r.Range.is(e)?i.protocol2CodeConverter.asRange(e):this.isDefaultBehavior(e)?!0===e.defaultBehavior?null:Promise.reject(new Error("The element can't be renamed.")):e&&r.Range.is(e.range)?{range:i.protocol2CodeConverter.asRange(e.range),placeholder:e.placeholder}:Promise.reject(new Error("The element can't be renamed."))),(e=>i.handleFailedRequest(r.PrepareRenameRequest.type,e,void 0)))},s=i.clientOptions.middleware;return s.prepareRename?s.prepareRename(e,t,n,o):o(e,t,n)}:void 0};return[i.languages.registerRenameProvider(e.documentSelector,t),t]}isDefaultBehavior(e){const t=e;return t&&c.boolean(t.defaultBehavior)}}class G extends P{constructor(e){super(e,r.DocumentLinkRequest.type)}fillClientCapabilities(e){const t=E(E(e,"textDocument"),"documentLink");t.dynamicRegistration=!0,t.tooltipSupport=!0}initialize(e,t){const n=this.getRegistrationOptions(t,e.documentLinkProvider);n&&this.register({id:l.generateUuid(),registerOptions:n})}registerLanguageProvider(e){const t={provideDocumentLinks:(e,t)=>{const n=this._client,i=(e,t)=>n.sendRequest(r.DocumentLinkRequest.type,n.code2ProtocolConverter.asDocumentLinkParams(e),t).then(n.protocol2CodeConverter.asDocumentLinks,(e=>n.handleFailedRequest(r.DocumentLinkRequest.type,e,null))),o=n.clientOptions.middleware;return o.provideDocumentLinks?o.provideDocumentLinks(e,t,i):i(e,t)},resolveDocumentLink:e.resolveProvider?(e,t)=>{const n=this._client;let i=(e,t)=>n.sendRequest(r.DocumentLinkResolveRequest.type,n.code2ProtocolConverter.asDocumentLink(e),t).then(n.protocol2CodeConverter.asDocumentLink,(t=>n.handleFailedRequest(r.DocumentLinkResolveRequest.type,t,e)));const o=n.clientOptions.middleware;return o.resolveDocumentLink?o.resolveDocumentLink(e,t,i):i(e,t)}:void 0};return[i.languages.registerDocumentLinkProvider(e.documentSelector,t),t]}}class J{constructor(e){this._client=e,this._listeners=new Map}get registrationType(){return r.DidChangeConfigurationNotification.type}fillClientCapabilities(e){E(E(e,"workspace"),"didChangeConfiguration").dynamicRegistration=!0}initialize(){let e=this._client.clientOptions.synchronize.configurationSection;void 0!==e&&this.register({id:l.generateUuid(),registerOptions:{section:e}})}register(e){let t=i.workspace.onDidChangeConfiguration((t=>{this.onDidChangeConfiguration(e.registerOptions.section,t)}));this._listeners.set(e.id,t),void 0!==e.registerOptions.section&&this.onDidChangeConfiguration(e.registerOptions.section,void 0)}unregister(e){let t=this._listeners.get(e);t&&(this._listeners.delete(e),t.dispose())}dispose(){for(let e of this._listeners.values())e.dispose();this._listeners.clear()}onDidChangeConfiguration(e,t){let n;if(n=c.string(e)?[e]:e,void 0!==n&&void 0!==t&&!n.some((e=>t.affectsConfiguration(e))))return;let i=e=>{void 0!==e?this._client.sendNotification(r.DidChangeConfigurationNotification.type,{settings:this.extractSettingsInformation(e)}):this._client.sendNotification(r.DidChangeConfigurationNotification.type,{settings:null})},o=this.getMiddleware();o?o(n,i):i(n)}extractSettingsInformation(e){function t(e,t){let n=e;for(let e=0;e<t.length-1;e++){let i=n[t[e]];i||(i=Object.create(null),n[t[e]]=i),n=i}return n}let n=this._client.clientOptions.workspaceFolder?this._client.clientOptions.workspaceFolder.uri:void 0,r=Object.create(null);for(let s=0;s<e.length;s++){let a=e[s],c=a.indexOf("."),u=null;if(u=c>=0?i.workspace.getConfiguration(a.substr(0,c),n).get(a.substr(c+1)):i.workspace.getConfiguration(void 0,n).get(a),u){let n=e[s].split(".");t(r,n)[n[n.length-1]]=o.toJSONObject(u)}}return r}getMiddleware(){let e=this._client.clientOptions.middleware;return e.workspace&&e.workspace.didChangeConfiguration?e.workspace.didChangeConfiguration:void 0}}class X{constructor(e){this._client=e,this._commands=new Map}get registrationType(){return r.ExecuteCommandRequest.type}fillClientCapabilities(e){E(E(e,"workspace"),"executeCommand").dynamicRegistration=!0}initialize(e){e.executeCommandProvider&&this.register({id:l.generateUuid(),registerOptions:Object.assign({},e.executeCommandProvider)})}register(e){const t=this._client,n=t.clientOptions.middleware,o=(e,n)=>{let i={command:e,arguments:n};return t.sendRequest(r.ExecuteCommandRequest.type,i).then(void 0,(e=>t.handleFailedRequest(r.ExecuteCommandRequest.type,e,void 0)))};if(e.registerOptions.commands){const t=[];for(const r of e.registerOptions.commands)t.push(i.commands.registerCommand(r,((...e)=>n.executeCommand?n.executeCommand(r,e,o):o(r,e))));this._commands.set(e.id,t)}}unregister(e){let t=this._commands.get(e);t&&t.forEach((e=>e.dispose()))}dispose(){this._commands.forEach((e=>{e.forEach((e=>e.dispose()))})),this._commands.clear()}}(t.MessageTransports||(t.MessageTransports={})).is=function(e){return e&&r.MessageReader.is(e.reader)&&r.MessageWriter.is(e.writer)};class Y{constructor(e,t){this._resolve=e,this._reject=t,this._used=!1}get isUsed(){return this._used}resolve(){this._used=!0,this._resolve()}reject(e){this._used=!0,this._reject(e)}}class Q{constructor(e,t,n){var i;this._traceFormat=r.TraceFormat.Text,this._features=[],this._dynamicFeatures=new Map,this._id=e,this._name=t;const o={isTrusted:!1};void 0!==(n=n||{}).markdown&&!0===n.markdown.isTrusted&&(o.isTrusted=!0),this._clientOptions={documentSelector:n.documentSelector||[],synchronize:n.synchronize||{},diagnosticCollectionName:n.diagnosticCollectionName,outputChannelName:n.outputChannelName||this._name,revealOutputChannelOn:n.revealOutputChannelOn||g.Error,stdioEncoding:n.stdioEncoding||"utf8",initializationOptions:n.initializationOptions,initializationFailedHandler:n.initializationFailedHandler,progressOnInitialization:!!n.progressOnInitialization,errorHandler:n.errorHandler||this.createDefaultErrorHandler(null===(i=n.connectionOptions)||void 0===i?void 0:i.maxRestartCount),middleware:n.middleware||{},uriConverters:n.uriConverters,workspaceFolder:n.workspaceFolder,connectionOptions:n.connectionOptions,markdown:o},this._clientOptions.synchronize=this._clientOptions.synchronize||{},this._state=y.Initial,this._connectionPromise=void 0,this._resolvedConnection=void 0,this._initializeResult=void 0,n.outputChannel?(this._outputChannel=n.outputChannel,this._disposeOutputChannel=!1):(this._outputChannel=void 0,this._disposeOutputChannel=!0),this._traceOutputChannel=n.traceOutputChannel,this._listeners=void 0,this._providers=void 0,this._diagnostics=void 0,this._fileEvents=[],this._fileEventDelayer=new u.Delayer(250),this._onReady=new Promise(((e,t)=>{this._onReadyCallbacks=new Y(e,t)})),this._onStop=void 0,this._telemetryEmitter=new r.Emitter,this._stateChangeEmitter=new r.Emitter,this._trace=r.Trace.Off,this._tracer={log:(e,t)=>{c.string(e)?this.logTrace(e,t):this.logObjectTrace(e)}},this._c2p=s.createConverter(n.uriConverters?n.uriConverters.code2Protocol:void 0),this._p2c=a.createConverter(n.uriConverters?n.uriConverters.protocol2Code:void 0,this._clientOptions.markdown.isTrusted),this._syncedDocuments=new Map,this.registerBuiltinFeatures()}get state(){return this._state}set state(e){let t=this.getPublicState();this._state=e;let n=this.getPublicState();n!==t&&this._stateChangeEmitter.fire({oldState:t,newState:n})}getPublicState(){return this.state===y.Running?m.Running:this.state===y.Starting?m.Starting:m.Stopped}get initializeResult(){return this._initializeResult}sendRequest(e,...t){if(!this.isConnectionActive())throw new Error("Language client is not ready yet");this.forceDocumentSync();try{return this._resolvedConnection.sendRequest(e,...t)}catch(t){throw this.error(`Sending request ${c.string(e)?e:e.method} failed.`,t),t}}onRequest(e,t){if(!this.isConnectionActive())throw new Error("Language client is not ready yet");try{return this._resolvedConnection.onRequest(e,t)}catch(t){throw this.error(`Registering request handler ${c.string(e)?e:e.method} failed.`,t),t}}sendNotification(e,t){if(!this.isConnectionActive())throw new Error("Language client is not ready yet");this.forceDocumentSync();try{this._resolvedConnection.sendNotification(e,t)}catch(t){throw this.error(`Sending notification ${c.string(e)?e:e.method} failed.`,t),t}}onNotification(e,t){if(!this.isConnectionActive())throw new Error("Language client is not ready yet");try{return this._resolvedConnection.onNotification(e,t)}catch(t){throw this.error(`Registering notification handler ${c.string(e)?e:e.method} failed.`,t),t}}onProgress(e,t,n){if(!this.isConnectionActive())throw new Error("Language client is not ready yet");try{if(r.WorkDoneProgress.is(e)){const i=this._clientOptions.middleware.handleWorkDoneProgress;if(void 0!==i)return this._resolvedConnection.onProgress(e,t,(e=>{i(t,e,(()=>n(e)))}))}return this._resolvedConnection.onProgress(e,t,n)}catch(e){throw this.error(`Registering progress handler for token ${t} failed.`,e),e}}sendProgress(e,t,n){if(!this.isConnectionActive())throw new Error("Language client is not ready yet");this.forceDocumentSync();try{this._resolvedConnection.sendProgress(e,t,n)}catch(e){throw this.error(`Sending progress for token ${t} failed.`,e),e}}get clientOptions(){return this._clientOptions}get protocol2CodeConverter(){return this._p2c}get code2ProtocolConverter(){return this._c2p}get onTelemetry(){return this._telemetryEmitter.event}get onDidChangeState(){return this._stateChangeEmitter.event}get outputChannel(){return this._outputChannel||(this._outputChannel=i.window.createOutputChannel(this._clientOptions.outputChannelName?this._clientOptions.outputChannelName:this._name)),this._outputChannel}get traceOutputChannel(){return this._traceOutputChannel?this._traceOutputChannel:this.outputChannel}get diagnostics(){return this._diagnostics}createDefaultErrorHandler(e){if(void 0!==e&&e<0)throw new Error(`Invalid maxRestartCount: ${e}`);return new v(this._name,null!=e?e:4)}set trace(e){this._trace=e,this.onReady().then((()=>{this.resolveConnection().then((e=>{e.trace(this._trace,this._tracer,{sendNotification:!1,traceFormat:this._traceFormat})}))}),(()=>{}))}data2String(e){if(e instanceof r.ResponseError){const t=e;return` Message: ${t.message}\n Code: ${t.code} ${t.data?"\n"+t.data.toString():""}`}return e instanceof Error?c.string(e.stack)?e.stack:e.message:c.string(e)?e:e.toString()}info(e,t,n=!0){this.outputChannel.appendLine(`[Info - ${(new Date).toLocaleTimeString()}] ${e}`),t&&this.outputChannel.appendLine(this.data2String(t)),n&&this._clientOptions.revealOutputChannelOn<=g.Info&&this.showNotificationMessage()}warn(e,t,n=!0){this.outputChannel.appendLine(`[Warn - ${(new Date).toLocaleTimeString()}] ${e}`),t&&this.outputChannel.appendLine(this.data2String(t)),n&&this._clientOptions.revealOutputChannelOn<=g.Warn&&this.showNotificationMessage()}error(e,t,n=!0){this.outputChannel.appendLine(`[Error - ${(new Date).toLocaleTimeString()}] ${e}`),t&&this.outputChannel.appendLine(this.data2String(t)),n&&this._clientOptions.revealOutputChannelOn<=g.Error&&this.showNotificationMessage()}showNotificationMessage(){i.window.showInformationMessage("A request has failed. See the output for more information.","Go to output").then((()=>{this.outputChannel.show(!0)}))}logTrace(e,t){this.traceOutputChannel.appendLine(`[Trace - ${(new Date).toLocaleTimeString()}] ${e}`),t&&this.traceOutputChannel.appendLine(this.data2String(t))}logObjectTrace(e){e.isLSPMessage&&e.type?this.traceOutputChannel.append(`[LSP - ${(new Date).toLocaleTimeString()}] `):this.traceOutputChannel.append(`[Trace - ${(new Date).toLocaleTimeString()}] `),e&&this.traceOutputChannel.appendLine(`${JSON.stringify(e)}`)}needsStart(){return this.state===y.Initial||this.state===y.Stopping||this.state===y.Stopped}needsStop(){return this.state===y.Starting||this.state===y.Running}onReady(){return this._onReady}isConnectionActive(){return this.state===y.Running&&!!this._resolvedConnection}start(){return this._onReadyCallbacks.isUsed&&(this._onReady=new Promise(((e,t)=>{this._onReadyCallbacks=new Y(e,t)}))),this._listeners=[],this._providers=[],this._diagnostics||(this._diagnostics=this._clientOptions.diagnosticCollectionName?i.languages.createDiagnosticCollection(this._clientOptions.diagnosticCollectionName):i.languages.createDiagnosticCollection()),this.state=y.Starting,this.resolveConnection().then((e=>(e.onLogMessage((e=>{switch(e.type){case r.MessageType.Error:this.error(e.message,void 0,!1);break;case r.MessageType.Warning:this.warn(e.message,void 0,!1);break;case r.MessageType.Info:this.info(e.message,void 0,!1);break;default:this.outputChannel.appendLine(e.message)}})),e.onShowMessage((e=>{switch(e.type){case r.MessageType.Error:i.window.showErrorMessage(e.message);break;case r.MessageType.Warning:i.window.showWarningMessage(e.message);break;case r.MessageType.Info:default:i.window.showInformationMessage(e.message)}})),e.onRequest(r.ShowMessageRequest.type,(e=>{let t;switch(e.type){case r.MessageType.Error:t=i.window.showErrorMessage;break;case r.MessageType.Warning:t=i.window.showWarningMessage;break;case r.MessageType.Info:default:t=i.window.showInformationMessage}let n=e.actions||[];return t(e.message,...n)})),e.onTelemetry((e=>{this._telemetryEmitter.fire(e)})),e.onRequest(r.ShowDocumentRequest.type,(async e=>{var t;const n=async e=>{const t=this.protocol2CodeConverter.asUri(e.uri);try{if(!0===e.external)return{success:await i.env.openExternal(t)};{const n={};return void 0!==e.selection&&(n.selection=this.protocol2CodeConverter.asRange(e.selection)),void 0===e.takeFocus||!1===e.takeFocus?n.preserveFocus=!0:!0===e.takeFocus&&(n.preserveFocus=!1),await i.window.showTextDocument(t,n),{success:!0}}}catch(e){return{success:!0}}},r=null===(t=this._clientOptions.middleware.window)||void 0===t?void 0:t.showDocument;return void 0!==r?r(e,n):n(e)})),e.listen(),this.initialize(e)))).then(void 0,(e=>{this.state=y.StartFailed,this._onReadyCallbacks.reject(e),this.error("Starting client failed",e),i.window.showErrorMessage(`Couldn't start client ${this._name}`)})),new i.Disposable((()=>{this.needsStop()&&this.stop()}))}resolveConnection(){return this._connectionPromise||(this._connectionPromise=this.createConnection()),this._connectionPromise}initialize(e){this.refreshTrace(e,!1);let t=this._clientOptions.initializationOptions,n=this._clientOptions.workspaceFolder?this._clientOptions.workspaceFolder.uri.fsPath:this._clientGetRootPath(),o={processId:null,clientInfo:{name:i.env.appName,version:i.version},locale:this.getLocale(),rootPath:n||null,rootUri:n?this._c2p.asUri(i.Uri.file(n)):null,capabilities:this.computeClientCapabilities(),initializationOptions:c.func(t)?t():t,trace:r.Trace.toString(this._trace),workspaceFolders:null};if(this.fillInitializeParams(o),this._clientOptions.progressOnInitialization){const t=l.generateUuid(),n=new h.ProgressPart(e,t);return o.workDoneToken=t,this.doInitialize(e,o).then((e=>(n.done(),e)),(e=>{throw n.cancel(),e}))}return this.doInitialize(e,o)}doInitialize(e,t){return e.initialize(t).then((t=>{let n;return this._resolvedConnection=e,this._initializeResult=t,this.state=y.Running,c.number(t.capabilities.textDocumentSync)?n=t.capabilities.textDocumentSync===r.TextDocumentSyncKind.None?{openClose:!1,change:r.TextDocumentSyncKind.None,save:void 0}:{openClose:!0,change:t.capabilities.textDocumentSync,save:{includeText:!1}}:void 0!==t.capabilities.textDocumentSync&&null!==t.capabilities.textDocumentSync&&(n=t.capabilities.textDocumentSync),this._capabilities=Object.assign({},t.capabilities,{resolvedTextDocumentSync:n}),e.onDiagnostics((e=>this.handleDiagnostics(e))),e.onRequest(r.RegistrationRequest.type,(e=>this.handleRegistrationRequest(e))),e.onRequest("client/registerFeature",(e=>this.handleRegistrationRequest(e))),e.onRequest(r.UnregistrationRequest.type,(e=>this.handleUnregistrationRequest(e))),e.onRequest("client/unregisterFeature",(e=>this.handleUnregistrationRequest(e))),e.onRequest(r.ApplyWorkspaceEditRequest.type,(e=>this.handleApplyWorkspaceEdit(e))),e.sendNotification(r.InitializedNotification.type,{}),this.hookFileEvents(e),this.hookConfigurationChanged(e),this.initializeFeatures(e),this._onReadyCallbacks.resolve(),t})).then(void 0,(t=>{throw this._clientOptions.initializationFailedHandler?this._clientOptions.initializationFailedHandler(t)?this.initialize(e):(this.stop(),this._onReadyCallbacks.reject(t)):t instanceof r.ResponseError&&t.data&&t.data.retry?i.window.showErrorMessage(t.message,{title:"Retry",id:"retry"}).then((n=>{n&&"retry"===n.id?this.initialize(e):(this.stop(),this._onReadyCallbacks.reject(t))})):(t&&t.message&&i.window.showErrorMessage(t.message),this.error("Server initialization failed.",t),this.stop(),this._onReadyCallbacks.reject(t)),t}))}_clientGetRootPath(){let e=i.workspace.workspaceFolders;if(!e||0===e.length)return;let t=e[0];return"file"===t.uri.scheme?t.uri.fsPath:void 0}stop(){return this._initializeResult=void 0,this._connectionPromise?this.state===y.Stopping&&this._onStop?this._onStop:(this.state=y.Stopping,this.cleanUp(!1),this._onStop=this.resolveConnection().then((e=>e.shutdown().then((()=>{e.exit(),e.end(),e.dispose(),this.state=y.Stopped,this.cleanUpChannel(),this._onStop=void 0,this._connectionPromise=void 0,this._resolvedConnection=void 0}))))):(this.state=y.Stopped,Promise.resolve())}cleanUp(e=!0,t=!0){this._listeners&&(this._listeners.forEach((e=>e.dispose())),this._listeners=void 0),this._providers&&(this._providers.forEach((e=>e.dispose())),this._providers=void 0),this._syncedDocuments&&this._syncedDocuments.clear();for(const e of this._features.values())e.dispose();e&&this.cleanUpChannel(),t&&this._diagnostics&&(this._diagnostics.dispose(),this._diagnostics=void 0)}cleanUpChannel(){this._outputChannel&&this._disposeOutputChannel&&(this._outputChannel.dispose(),this._outputChannel=void 0)}notifyFileEvent(e){var t;const n=this;function i(e){n._fileEvents.push(e),n._fileEventDelayer.trigger((()=>{n.onReady().then((()=>{n.resolveConnection().then((e=>{n.isConnectionActive()&&(n.forceDocumentSync(),e.didChangeWatchedFiles({changes:n._fileEvents})),n._fileEvents=[]}))}),(e=>{n.error("Notify file events failed.",e)}))}))}const r=null===(t=this.clientOptions.middleware)||void 0===t?void 0:t.workspace;(null==r?void 0:r.didChangeWatchedFile)?r.didChangeWatchedFile(e,i):i(e)}forceDocumentSync(){void 0===this._didChangeTextDocumentFeature&&(this._didChangeTextDocumentFeature=this._dynamicFeatures.get(r.DidChangeTextDocumentNotification.type.method)),this._didChangeTextDocumentFeature.forceDelivery()}handleDiagnostics(e){if(!this._diagnostics)return;let t=this._p2c.asUri(e.uri),n=this._p2c.asDiagnostics(e.diagnostics),i=this.clientOptions.middleware;i.handleDiagnostics?i.handleDiagnostics(t,n,((e,t)=>this.setDiagnostics(e,t))):this.setDiagnostics(t,n)}setDiagnostics(e,t){this._diagnostics&&this._diagnostics.set(e,t)}createConnection(){let e=(e,t,n)=>{this.handleConnectionError(e,t,n)},t=()=>{this.handleConnectionClosed()};return this.createMessageTransports(this._clientOptions.stdioEncoding||"utf8").then((n=>function(e,t,n,i,o){let s=new d,a=r.createProtocolConnection(e,t,s,o);return a.onError((e=>{n(e[0],e[1],e[2])})),a.onClose(i),{listen:()=>a.listen(),sendRequest:(e,...t)=>a.sendRequest(c.string(e)?e:e.method,...t),onRequest:(e,t)=>a.onRequest(c.string(e)?e:e.method,t),sendNotification:(e,t)=>a.sendNotification(c.string(e)?e:e.method,t),onNotification:(e,t)=>a.onNotification(c.string(e)?e:e.method,t),onProgress:a.onProgress,sendProgress:a.sendProgress,trace:(e,t,n)=>{const i={sendNotification:!1,traceFormat:r.TraceFormat.Text};void 0===n?a.trace(e,t,i):(c.boolean(n),a.trace(e,t,n))},initialize:e=>a.sendRequest(r.InitializeRequest.type,e),shutdown:()=>a.sendRequest(r.ShutdownRequest.type,void 0),exit:()=>a.sendNotification(r.ExitNotification.type),onLogMessage:e=>a.onNotification(r.LogMessageNotification.type,e),onShowMessage:e=>a.onNotification(r.ShowMessageNotification.type,e),onTelemetry:e=>a.onNotification(r.TelemetryEventNotification.type,e),didChangeConfiguration:e=>a.sendNotification(r.DidChangeConfigurationNotification.type,e),didChangeWatchedFiles:e=>a.sendNotification(r.DidChangeWatchedFilesNotification.type,e),didOpenTextDocument:e=>a.sendNotification(r.DidOpenTextDocumentNotification.type,e),didChangeTextDocument:e=>a.sendNotification(r.DidChangeTextDocumentNotification.type,e),didCloseTextDocument:e=>a.sendNotification(r.DidCloseTextDocumentNotification.type,e),didSaveTextDocument:e=>a.sendNotification(r.DidSaveTextDocumentNotification.type,e),onDiagnostics:e=>a.onNotification(r.PublishDiagnosticsNotification.type,e),end:()=>a.end(),dispose:()=>a.dispose()}}(n.reader,n.writer,e,t,this._clientOptions.connectionOptions)))}handleConnectionClosed(){if(this.state===y.Stopping||this.state===y.Stopped)return;try{this._resolvedConnection&&this._resolvedConnection.dispose()}catch(e){}let e=f.DoNotRestart;try{e=this._clientOptions.errorHandler.closed()}catch(e){}this._connectionPromise=void 0,this._resolvedConnection=void 0,e===f.DoNotRestart?(this.error("Connection to server got closed. Server will not be restarted."),this.state===y.Starting?(this._onReadyCallbacks.reject(new Error("Connection to server got closed. Server will not be restarted.")),this.state=y.StartFailed):this.state=y.Stopped,this.cleanUp(!1,!0)):e===f.Restart&&(this.info("Connection to server got closed. Server will restart."),this.cleanUp(!1,!1),this.state=y.Initial,this.start())}handleConnectionError(e,t,n){this._clientOptions.errorHandler.error(e,t,n)===p.Shutdown&&(this.error("Connection to server is erroring. Shutting down server."),this.stop())}hookConfigurationChanged(e){i.workspace.onDidChangeConfiguration((()=>{this.refreshTrace(e,!0)}))}refreshTrace(e,t=!1){let n=i.workspace.getConfiguration(this._id),o=r.Trace.Off,s=r.TraceFormat.Text;if(n){const e=n.get("trace.server","off");"string"==typeof e?o=r.Trace.fromString(e):(o=r.Trace.fromString(n.get("trace.server.verbosity","off")),s=r.TraceFormat.fromString(n.get("trace.server.format","text")))}this._trace=o,this._traceFormat=s,e.trace(this._trace,this._tracer,{sendNotification:t,traceFormat:this._traceFormat})}hookFileEvents(e){let t,n=this._clientOptions.synchronize.fileEvents;n&&(t=c.array(n)?n:[n],t&&this._dynamicFeatures.get(r.DidChangeWatchedFilesNotification.type.method).registerRaw(l.generateUuid(),t))}registerFeatures(e){for(let t of e)this.registerFeature(t)}registerFeature(e){if(this._features.push(e),D.is(e)){const t=e.registrationType;this._dynamicFeatures.set(t.method,e)}}getFeature(e){return this._dynamicFeatures.get(e)}registerBuiltinFeatures(){this.registerFeature(new J(this)),this.registerFeature(new _(this,this._syncedDocuments)),this.registerFeature(new k(this)),this.registerFeature(new F(this)),this.registerFeature(new A(this)),this.registerFeature(new R(this)),this.registerFeature(new T(this,this._syncedDocuments)),this.registerFeature(new O(this,(e=>this.notifyFileEvent(e)))),this.registerFeature(new M(this)),this.registerFeature(new N(this)),this.registerFeature(new I(this)),this.registerFeature(new L(this)),this.registerFeature(new j(this)),this.registerFeature(new B(this)),this.registerFeature(new q(this)),this.registerFeature(new U(this)),this.registerFeature(new W(this)),this.registerFeature(new $(this)),this.registerFeature(new K(this)),this.registerFeature(new z(this)),this.registerFeature(new V(this)),this.registerFeature(new H(this)),this.registerFeature(new G(this)),this.registerFeature(new X(this))}fillInitializeParams(e){for(let t of this._features)c.func(t.fillInitializeParams)&&t.fillInitializeParams(e)}computeClientCapabilities(){const e={};E(e,"workspace").applyEdit=!0;const t=E(E(e,"workspace"),"workspaceEdit");t.documentChanges=!0,t.resourceOperations=[r.ResourceOperationKind.Create,r.ResourceOperationKind.Rename,r.ResourceOperationKind.Delete],t.failureHandling=r.FailureHandlingKind.TextOnlyTransactional,t.normalizesLineEndings=!0,t.changeAnnotationSupport={groupsOnLabel:!0};const n=E(E(e,"textDocument"),"publishDiagnostics");n.relatedInformation=!0,n.versionSupport=!1,n.tagSupport={valueSet:[r.DiagnosticTag.Unnecessary,r.DiagnosticTag.Deprecated]},n.codeDescriptionSupport=!0,n.dataSupport=!0;const i=E(e,"window");E(i,"showMessage").messageActionItem={additionalPropertiesSupport:!0},E(i,"showDocument").support=!0;const o=E(e,"general");o.regularExpressions={engine:"ECMAScript",version:"ES2020"},o.markdown={parser:"marked",version:"1.1.0"};for(let t of this._features)t.fillClientCapabilities(e);return e}initializeFeatures(e){let t=this._clientOptions.documentSelector;for(let e of this._features)e.initialize(this._capabilities,t)}handleRegistrationRequest(e){return new Promise(((t,n)=>{for(const t of e.registrations){const e=this._dynamicFeatures.get(t.method);if(void 0===e)return void n(new Error(`No feature implementation for ${t.method} found. Registration failed.`));const i=t.registerOptions||{};i.documentSelector=i.documentSelector||this._clientOptions.documentSelector;const r={id:t.id,registerOptions:i};try{e.register(r)}catch(e){return void n(e)}}t()}))}handleUnregistrationRequest(e){return new Promise(((t,n)=>{for(let t of e.unregisterations){const e=this._dynamicFeatures.get(t.method);if(!e)return void n(new Error(`No feature implementation for ${t.method} found. Unregistration failed.`));e.unregister(t.id)}t()}))}handleApplyWorkspaceEdit(e){let t=e.edit,n=new Map;i.workspace.textDocuments.forEach((e=>n.set(e.uri.toString(),e)));let o=!1;if(t.documentChanges)for(const e of t.documentChanges)if(r.TextDocumentEdit.is(e)&&e.textDocument.version&&e.textDocument.version>=0){let t=n.get(e.textDocument.uri);if(t&&t.version!==e.textDocument.version){o=!0;break}}return o?Promise.resolve({applied:!1}):c.asPromise(i.workspace.applyEdit(this._p2c.asWorkspaceEdit(e.edit)).then((e=>({applied:e}))))}handleFailedRequest(e,t,n){if(t instanceof r.ResponseError){if(t.code===r.LSPErrorCodes.RequestCancelled)throw this.makeCancelError();if(t.code===r.LSPErrorCodes.ContentModified)return n}throw this.error(`Request ${e.method} failed.`,t),t}makeCancelError(){const e=new Error(Q.Canceled);return e.name=Q.Canceled,e}}t.BaseLanguageClient=Q,Q.Canceled="Canceled"},895:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createConverter=void 0;const i=n(9496),r=n(1747),o=n(4652),s=n(9147),a=n(2817),c=n(8501),u=n(5958),l=n(8171),h=n(777),d=n(1747);var p;!function(e){e.is=function(e){const t=e;return t&&!!t.inserting&&!!t.replacing}}(p||(p={})),t.createConverter=function(e){const t=e||(e=>e.toString());function n(e){return t(e)}function f(e){return{uri:t(e.uri)}}function g(e){switch(e){case i.TextDocumentSaveReason.Manual:return r.TextDocumentSaveReason.Manual;case i.TextDocumentSaveReason.AfterDelay:return r.TextDocumentSaveReason.AfterDelay;case i.TextDocumentSaveReason.FocusOut:return r.TextDocumentSaveReason.FocusOut}return r.TextDocumentSaveReason.Manual}function m(e){switch(e){case i.CompletionTriggerKind.TriggerCharacter:return r.CompletionTriggerKind.TriggerCharacter;case i.CompletionTriggerKind.TriggerForIncompleteCompletions:return r.CompletionTriggerKind.TriggerForIncompleteCompletions;default:return r.CompletionTriggerKind.Invoked}}function y(e){switch(e){case i.SignatureHelpTriggerKind.Invoke:return r.SignatureHelpTriggerKind.Invoked;case i.SignatureHelpTriggerKind.TriggerCharacter:return r.SignatureHelpTriggerKind.TriggerCharacter;case i.SignatureHelpTriggerKind.ContentChange:return r.SignatureHelpTriggerKind.ContentChange}}function v(e){return{label:e.label}}function C(e){return{label:e.label,parameters:(t=e.parameters,t.map(v))};var t}function S(e){return{line:e.line,character:e.character}}function b(e){return null==e?e:{line:e.line,character:e.character}}function E(e){return null==e?e:{start:b(e.start),end:b(e.end)}}function w(e){return null==e?e:r.Location.create(n(e.uri),E(e.range))}function D(e){switch(e){case i.DiagnosticSeverity.Error:return r.DiagnosticSeverity.Error;case i.DiagnosticSeverity.Warning:return r.DiagnosticSeverity.Warning;case i.DiagnosticSeverity.Information:return r.DiagnosticSeverity.Information;case i.DiagnosticSeverity.Hint:return r.DiagnosticSeverity.Hint}}function x(e){switch(e){case i.DiagnosticTag.Unnecessary:return r.DiagnosticTag.Unnecessary;case i.DiagnosticTag.Deprecated:return r.DiagnosticTag.Deprecated;default:return}}function _(e){return{message:e.message,location:w(e.location)}}function T(e){const t=r.Diagnostic.create(E(e.range),e.message),i=e instanceof l.ProtocolDiagnostic?e:void 0;void 0!==i&&void 0!==i.data&&(t.data=i.data);const s=function(e){if(null!=e)return o.number(e)||o.string(e)?e:{value:e.value,target:n(e.target)}}(e.code);return l.DiagnosticCode.is(s)?void 0!==i&&i.hasDiagnosticCode?t.code=s:(t.code=s.value,t.codeDescription={href:s.target}):t.code=s,o.number(e.severity)&&(t.severity=D(e.severity)),Array.isArray(e.tags)&&(t.tags=function(e){if(!e)return;let t=[];for(let n of e){let e=x(n);void 0!==e&&t.push(e)}return t.length>0?t:void 0}(e.tags)),e.relatedInformation&&(t.relatedInformation=e.relatedInformation.map(_)),e.source&&(t.source=e.source),t}function k(e){return null==e?e:e.map(T)}function F(e){if(e===i.CompletionItemTag.Deprecated)return r.CompletionItemTag.Deprecated}function A(e){return{range:E(e.range),newText:e.newText}}function R(e){return e<=i.SymbolKind.TypeParameter?e+1:r.SymbolKind.Property}function O(e){return e}function P(e){return e.map(O)}function M(e){let t=r.Command.create(e.title,e.command);return e.arguments&&(t.arguments=e.arguments),t}return{asUri:n,asTextDocumentIdentifier:f,asVersionedTextDocumentIdentifier:function(e){return{uri:t(e.uri),version:e.version}},asOpenTextDocumentParams:function(e){return{textDocument:{uri:t(e.uri),languageId:e.languageId,version:e.version,text:e.getText()}}},asChangeTextDocumentParams:function(e){if(function(e){let t=e;return!!t.uri&&!!t.version}(e))return{textDocument:{uri:t(e.uri),version:e.version},contentChanges:[{text:e.getText()}]};if(function(e){let t=e;return!!t.document&&!!t.contentChanges}(e)){let n=e.document;return{textDocument:{uri:t(n.uri),version:n.version},contentChanges:e.contentChanges.map((e=>{let t=e.range;return{range:{start:{line:t.start.line,character:t.start.character},end:{line:t.end.line,character:t.end.character}},rangeLength:e.rangeLength,text:e.text}}))}}throw Error("Unsupported text document change parameter")},asCloseTextDocumentParams:function(e){return{textDocument:f(e)}},asSaveTextDocumentParams:function(e,t=!1){let n={textDocument:f(e)};return t&&(n.text=e.getText()),n},asWillSaveTextDocumentParams:function(e){return{textDocument:f(e.document),reason:g(e.reason)}},asDidCreateFilesParams:function(e){return{files:e.files.map((e=>({uri:t(e)})))}},asDidRenameFilesParams:function(e){return{files:e.files.map((e=>({oldUri:t(e.oldUri),newUri:t(e.newUri)})))}},asDidDeleteFilesParams:function(e){return{files:e.files.map((e=>({uri:t(e)})))}},asWillCreateFilesParams:function(e){return{files:e.files.map((e=>({uri:t(e)})))}},asWillRenameFilesParams:function(e){return{files:e.files.map((e=>({oldUri:t(e.oldUri),newUri:t(e.newUri)})))}},asWillDeleteFilesParams:function(e){return{files:e.files.map((e=>({uri:t(e)})))}},asTextDocumentPositionParams:function(e,t){return{textDocument:f(e),position:S(t)}},asCompletionParams:function(e,t,n){return{textDocument:f(e),position:S(t),context:{triggerKind:m(n.triggerKind),triggerCharacter:n.triggerCharacter}}},asSignatureHelpParams:function(e,t,n){return{textDocument:f(e),position:S(t),context:{isRetrigger:n.isRetrigger,triggerCharacter:n.triggerCharacter,triggerKind:y(n.triggerKind),activeSignatureHelp:(i=n.activeSignatureHelp,void 0===i?i:{signatures:(r=i.signatures,r.map(C)),activeSignature:i.activeSignature,activeParameter:i.activeParameter})}};var i,r},asWorkerPosition:S,asRange:E,asPosition:b,asPositions:function(e){let t=[];for(let n of e)t.push(b(n));return t},asLocation:w,asDiagnosticSeverity:D,asDiagnosticTag:x,asDiagnostic:T,asDiagnostics:k,asCompletionItem:function(e){let t={label:e.label},n=e instanceof s.default?e:void 0;var a,c,u;e.detail&&(t.detail=e.detail),e.documentation&&(n&&"$string"!==n.documentationFormat?t.documentation=function(e,t){switch(e){case"$string":return t;case r.MarkupKind.PlainText:return{kind:e,value:t};case r.MarkupKind.Markdown:return{kind:e,value:t.value};default:return`Unsupported Markup content received. Kind is: ${e}`}}(n.documentationFormat,e.documentation):t.documentation=e.documentation),e.filterText&&(t.filterText=e.filterText),function(e,t){let n,o,s=r.InsertTextFormat.PlainText;t.textEdit?(n=t.textEdit.newText,o=t.textEdit.range):t.insertText instanceof i.SnippetString?(s=r.InsertTextFormat.Snippet,n=t.insertText.value):n=t.insertText,t.range&&(o=t.range),e.insertTextFormat=s,t.fromEdit&&void 0!==n&&void 0!==o?e.textEdit=function(e,t){return p.is(t)?r.InsertReplaceEdit.create(e,E(t.inserting),E(t.replacing)):{newText:e,range:E(t)}}(n,o):e.insertText=n}(t,e),o.number(e.kind)&&(t.kind=(a=e.kind,void 0!==(c=n&&n.originalItemKind)?c:a+1)),e.sortText&&(t.sortText=e.sortText),e.additionalTextEdits&&(t.additionalTextEdits=null==(u=e.additionalTextEdits)?u:u.map(A)),e.commitCharacters&&(t.commitCharacters=e.commitCharacters.slice()),e.command&&(t.command=M(e.command)),!0!==e.preselect&&!1!==e.preselect||(t.preselect=e.preselect);const l=function(e){if(void 0===e)return e;const t=[];for(let n of e){const e=F(n);void 0!==e&&t.push(e)}return t}(e.tags);if(n){if(void 0!==n.data&&(t.data=n.data),!0===n.deprecated||!1===n.deprecated){if(!0===n.deprecated&&void 0!==l&&l.length>0){const e=l.indexOf(i.CompletionItemTag.Deprecated);-1!==e&&l.splice(e,1)}t.deprecated=n.deprecated}void 0!==n.insertTextMode&&(t.insertTextMode=n.insertTextMode)}return void 0!==l&&l.length>0&&(t.tags=l),void 0===t.insertTextMode&&!0===e.keepWhitespace&&(t.insertTextMode=d.InsertTextMode.adjustIndentation),t},asTextEdit:A,asSymbolKind:R,asSymbolTag:O,asSymbolTags:P,asReferenceParams:function(e,t,n){return{textDocument:f(e),position:S(t),context:{includeDeclaration:n.includeDeclaration}}},asCodeAction:function(e){let t=r.CodeAction.create(e.title);if(e instanceof u.default&&void 0!==e.data&&(t.data=e.data),void 0!==e.kind&&(t.kind=function(e){if(null!=e)return e.value}(e.kind)),void 0!==e.diagnostics&&(t.diagnostics=k(e.diagnostics)),void 0!==e.edit)throw new Error("VS Code code actions can only be converted to a protocol code action without an edit.");return void 0!==e.command&&(t.command=M(e.command)),void 0!==e.isPreferred&&(t.isPreferred=e.isPreferred),void 0!==e.disabled&&(t.disabled={reason:e.disabled.reason}),t},asCodeActionContext:function(e){if(null==e)return e;let t;return e.only&&o.string(e.only.value)&&(t=[e.only.value]),r.CodeActionContext.create(k(e.diagnostics),t)},asCommand:M,asCodeLens:function(e){let t=r.CodeLens.create(E(e.range));return e.command&&(t.command=M(e.command)),e instanceof a.default&&e.data&&(t.data=e.data),t},asFormattingOptions:function(e,t){const n={tabSize:e.tabSize,insertSpaces:e.insertSpaces};return t.trimTrailingWhitespace&&(n.trimTrailingWhitespace=!0),t.trimFinalNewlines&&(n.trimFinalNewlines=!0),t.insertFinalNewline&&(n.insertFinalNewline=!0),n},asDocumentSymbolParams:function(e){return{textDocument:f(e)}},asCodeLensParams:function(e){return{textDocument:f(e)}},asDocumentLink:function(e){let t=r.DocumentLink.create(E(e.range));e.target&&(t.target=n(e.target)),void 0!==e.tooltip&&(t.tooltip=e.tooltip);let i=e instanceof c.default?e:void 0;return i&&i.data&&(t.data=i.data),t},asDocumentLinkParams:function(e){return{textDocument:f(e)}},asCallHierarchyItem:function(e){const t={name:e.name,kind:R(e.kind),uri:n(e.uri),range:E(e.range),selectionRange:E(e.selectionRange)};return void 0!==e.detail&&e.detail.length>0&&(t.detail=e.detail),void 0!==e.tags&&(t.tags=P(e.tags)),e instanceof h.default&&void 0!==e.data&&(t.data=e.data),t}}}},3894:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorProviderFeature=void 0;const i=n(9496),r=n(1747),o=n(9343);function s(e,t){return void 0===e[t]&&(e[t]={}),e[t]}class a extends o.TextDocumentFeature{constructor(e){super(e,r.DocumentColorRequest.type)}fillClientCapabilities(e){s(s(e,"textDocument"),"colorProvider").dynamicRegistration=!0}initialize(e,t){let[n,i]=this.getRegistration(t,e.colorProvider);n&&i&&this.register({id:n,registerOptions:i})}registerLanguageProvider(e){const t={provideColorPresentations:(e,t,n)=>{const i=this._client,o=(e,t,n)=>{const o={color:e,textDocument:i.code2ProtocolConverter.asTextDocumentIdentifier(t.document),range:i.code2ProtocolConverter.asRange(t.range)};return i.sendRequest(r.ColorPresentationRequest.type,o,n).then(this.asColorPresentations.bind(this),(e=>i.handleFailedRequest(r.ColorPresentationRequest.type,e,null)))},s=i.clientOptions.middleware;return s.provideColorPresentations?s.provideColorPresentations(e,t,n,o):o(e,t,n)},provideDocumentColors:(e,t)=>{const n=this._client,i=(e,t)=>{const i={textDocument:n.code2ProtocolConverter.asTextDocumentIdentifier(e)};return n.sendRequest(r.DocumentColorRequest.type,i,t).then(this.asColorInformations.bind(this),(e=>n.handleFailedRequest(r.ColorPresentationRequest.type,e,null)))},o=n.clientOptions.middleware;return o.provideDocumentColors?o.provideDocumentColors(e,t,i):i(e,t)}};return[i.languages.registerColorProvider(e.documentSelector,t),t]}asColor(e){return new i.Color(e.red,e.green,e.blue,e.alpha)}asColorInformations(e){return Array.isArray(e)?e.map((e=>new i.ColorInformation(this._client.protocol2CodeConverter.asRange(e.range),this.asColor(e.color)))):[]}asColorPresentations(e){return Array.isArray(e)?e.map((e=>{let t=new i.ColorPresentation(e.label);return t.additionalTextEdits=this._client.protocol2CodeConverter.asTextEdits(e.additionalTextEdits),t.textEdit=this._client.protocol2CodeConverter.asTextEdit(e.textEdit),t})):[]}}t.ColorProviderFeature=a},8758:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProposedFeatures=t.CommonLanguageClient=void 0;const i=n(9343),r=n(3894),o=n(5122),s=n(7567),a=n(7349),c=n(7304),u=n(8357),l=n(6443),h=n(2672),d=n(4585),p=n(5393),f=n(1572),g=n(2925),m=n(4722);class y extends i.BaseLanguageClient{constructor(e,t,n){super(e,t,n)}registerProposedFeatures(){this.registerFeatures(v.createAll(this))}registerBuiltinFeatures(){super.registerBuiltinFeatures(),this.registerFeature(new o.ConfigurationFeature(this)),this.registerFeature(new a.TypeDefinitionFeature(this)),this.registerFeature(new s.ImplementationFeature(this)),this.registerFeature(new r.ColorProviderFeature(this)),this.registerFeature(new c.WorkspaceFoldersFeature(this)),this.registerFeature(new u.FoldingRangeFeature(this)),this.registerFeature(new l.DeclarationFeature(this)),this.registerFeature(new h.SelectionRangeFeature(this)),this.registerFeature(new d.ProgressFeature(this)),this.registerFeature(new p.CallHierarchyFeature(this)),this.registerFeature(new f.SemanticTokensFeature(this)),this.registerFeature(new m.LinkedEditingFeature(this)),this.registerFeature(new g.DidCreateFilesFeature(this)),this.registerFeature(new g.DidRenameFilesFeature(this)),this.registerFeature(new g.DidDeleteFilesFeature(this)),this.registerFeature(new g.WillCreateFilesFeature(this)),this.registerFeature(new g.WillRenameFilesFeature(this)),this.registerFeature(new g.WillDeleteFilesFeature(this))}}var v;t.CommonLanguageClient=y,function(e){e.createAll=function(e){return[]}}(v=t.ProposedFeatures||(t.ProposedFeatures={}))},5122:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toJSONObject=t.ConfigurationFeature=void 0;const i=n(9496),r=n(1747);function o(e){if(e){if(Array.isArray(e))return e.map(o);if("object"==typeof e){const t=Object.create(null);for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=o(e[n]));return t}}return e}t.ConfigurationFeature=class{constructor(e){this._client=e}fillClientCapabilities(e){e.workspace=e.workspace||{},e.workspace.configuration=!0}initialize(){let e=this._client;e.onRequest(r.ConfigurationRequest.type,((t,n)=>{let i=e=>{let t=[];for(let n of e.items){let e=void 0!==n.scopeUri&&null!==n.scopeUri?this._client.protocol2CodeConverter.asUri(n.scopeUri):void 0;t.push(this.getConfiguration(e,null!==n.section?n.section:void 0))}return t},r=e.clientOptions.middleware.workspace;return r&&r.configuration?r.configuration(t,n,i):i(t)}))}getConfiguration(e,t){let n=null;if(t){let r=t.lastIndexOf(".");if(-1===r)n=o(i.workspace.getConfiguration(void 0,e).get(t));else{let s=i.workspace.getConfiguration(t.substr(0,r),e);s&&(n=o(s.get(t.substr(r+1))))}}else{let t=i.workspace.getConfiguration(void 0,e);n={};for(let e of Object.keys(t))t.has(e)&&(n[e]=o(t.get(e)))}return void 0===n&&(n=null),n}dispose(){}},t.toJSONObject=o},6443:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeclarationFeature=void 0;const i=n(9496),r=n(1747),o=n(9343);function s(e,t){return void 0===e[t]&&(e[t]={}),e[t]}class a extends o.TextDocumentFeature{constructor(e){super(e,r.DeclarationRequest.type)}fillClientCapabilities(e){const t=s(s(e,"textDocument"),"declaration");t.dynamicRegistration=!0,t.linkSupport=!0}initialize(e,t){const[n,i]=this.getRegistration(t,e.declarationProvider);n&&i&&this.register({id:n,registerOptions:i})}registerLanguageProvider(e){const t={provideDeclaration:(e,t,n)=>{const i=this._client,o=(e,t,n)=>i.sendRequest(r.DeclarationRequest.type,i.code2ProtocolConverter.asTextDocumentPositionParams(e,t),n).then(i.protocol2CodeConverter.asDeclarationResult,(e=>i.handleFailedRequest(r.DeclarationRequest.type,e,null))),s=i.clientOptions.middleware;return s.provideDeclaration?s.provideDeclaration(e,t,n,o):o(e,t,n)}};return[i.languages.registerDeclarationProvider(e.documentSelector,t),t]}}t.DeclarationFeature=a},2925:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WillDeleteFilesFeature=t.WillRenameFilesFeature=t.WillCreateFilesFeature=t.DidDeleteFilesFeature=t.DidRenameFilesFeature=t.DidCreateFilesFeature=void 0;const i=n(9496),r=n(7339),o=n(1747),s=n(2667);function a(e,t){return void 0===e[t]&&(e[t]={}),e[t]}function c(e,t,n){e[t]=n}class u{constructor(e,t,n,i,r){this._filters=new Map,this._client=e,this._event=t,this._registrationType=n,this._clientCapability=i,this._serverCapability=r}get registrationType(){return this._registrationType}fillClientCapabilities(e){const t=a(a(e,"workspace"),"fileOperations");c(t,"dynamicRegistration",!0),c(t,this._clientCapability,!0)}initialize(e){var t;const n=null===(t=e.workspace)||void 0===t?void 0:t.fileOperations,i=void 0!==n?n[this._serverCapability]:void 0;if(void 0!==(null==i?void 0:i.filters))try{this.register({id:s.generateUuid(),registerOptions:{filters:i.filters}})}catch(e){this._client.warn(`Ignoring invalid glob pattern for ${this._serverCapability} registration: ${e}`)}}register(e){this._listener||(this._listener=this._event(this.send,this));const t=e.registerOptions.filters.map((e=>{const t=new r.Minimatch(e.pattern.glob,u.asMinimatchOptions(e.pattern.options));if(!t.makeRe())throw new Error(`Invalid pattern ${e.pattern.glob}!`);return{scheme:e.scheme,matcher:t,kind:e.pattern.matches}}));this._filters.set(e.id,t)}unregister(e){this._filters.delete(e),0===this._filters.size&&this._listener&&(this._listener.dispose(),this._listener=void 0)}dispose(){this._filters.clear(),this._listener&&(this._listener.dispose(),this._listener=void 0)}async filter(e,t){const n=await Promise.all(e.files.map((async e=>{const n=t(e),r=n.fsPath.replace(/\\/g,"/");for(const e of this._filters.values())for(const t of e)if(void 0===t.scheme||t.scheme===n.scheme)if(t.matcher.match(r)){if(void 0===t.kind)return!0;const e=await u.getFileType(n);if(void 0===e)return this._client.error(`Failed to determine file type for ${n.toString()}.`),!0;if(e===i.FileType.File&&t.kind===o.FileOperationPatternKind.file||e===i.FileType.Directory&&t.kind===o.FileOperationPatternKind.folder)return!0}else if(t.kind===o.FileOperationPatternKind.folder&&await u.getFileType(n)===i.FileType.Directory&&t.matcher.match(`${r}/`))return!0;return!1}))),r=e.files.filter(((e,t)=>n[t]));return Object.assign(Object.assign({},e),{files:r})}static async getFileType(e){try{return(await i.workspace.fs.stat(e)).type}catch(e){return}}static asMinimatchOptions(e){if(void 0!==e)return!0===e.ignoreCase?{nocase:!0}:void 0}}class l extends u{constructor(e,t,n,i,r,o,s){super(e,t,n,i,r),this._notificationType=n,this._accessUri=o,this._createParams=s}async send(e){const t=await this.filter(e,this._accessUri);if(t.files.length){const e=async e=>{this._client.sendNotification(this._notificationType,this._createParams(e))};this.doSend(t,e)}}}t.DidCreateFilesFeature=class extends l{constructor(e){super(e,i.workspace.onDidCreateFiles,o.DidCreateFilesNotification.type,"didCreate","didCreate",(e=>e),e.code2ProtocolConverter.asDidCreateFilesParams)}doSend(e,t){var n;const i=null===(n=this._client.clientOptions.middleware)||void 0===n?void 0:n.workspace;return(null==i?void 0:i.didCreateFiles)?i.didCreateFiles(e,t):t(e)}},t.DidRenameFilesFeature=class extends l{constructor(e){super(e,i.workspace.onDidRenameFiles,o.DidRenameFilesNotification.type,"didRename","didRename",(e=>e.oldUri),e.code2ProtocolConverter.asDidRenameFilesParams)}doSend(e,t){var n;const i=null===(n=this._client.clientOptions.middleware)||void 0===n?void 0:n.workspace;return(null==i?void 0:i.didRenameFiles)?i.didRenameFiles(e,t):t(e)}},t.DidDeleteFilesFeature=class extends l{constructor(e){super(e,i.workspace.onDidDeleteFiles,o.DidDeleteFilesNotification.type,"didDelete","didDelete",(e=>e),e.code2ProtocolConverter.asDidDeleteFilesParams)}doSend(e,t){var n;const i=null===(n=this._client.clientOptions.middleware)||void 0===n?void 0:n.workspace;return(null==i?void 0:i.didDeleteFiles)?i.didDeleteFiles(e,t):t(e)}};class h extends u{constructor(e,t,n,i,r,o,s){super(e,t,n,i,r),this._requestType=n,this._accessUri=o,this._createParams=s}async send(e){const t=this.waitUntil(e);e.waitUntil(t)}async waitUntil(e){const t=await this.filter(e,this._accessUri);if(t.files.length){const e=e=>this._client.sendRequest(this._requestType,this._createParams(e)).then(this._client.protocol2CodeConverter.asWorkspaceEdit);return this.doSend(t,e)}}}t.WillCreateFilesFeature=class extends h{constructor(e){super(e,i.workspace.onWillCreateFiles,o.WillCreateFilesRequest.type,"willCreate","willCreate",(e=>e),e.code2ProtocolConverter.asWillCreateFilesParams)}doSend(e,t){var n;const i=null===(n=this._client.clientOptions.middleware)||void 0===n?void 0:n.workspace;return(null==i?void 0:i.willCreateFiles)?i.willCreateFiles(e,t):t(e)}},t.WillRenameFilesFeature=class extends h{constructor(e){super(e,i.workspace.onWillRenameFiles,o.WillRenameFilesRequest.type,"willRename","willRename",(e=>e.oldUri),e.code2ProtocolConverter.asWillRenameFilesParams)}doSend(e,t){var n;const i=null===(n=this._client.clientOptions.middleware)||void 0===n?void 0:n.workspace;return(null==i?void 0:i.willRenameFiles)?i.willRenameFiles(e,t):t(e)}},t.WillDeleteFilesFeature=class extends h{constructor(e){super(e,i.workspace.onWillDeleteFiles,o.WillDeleteFilesRequest.type,"willDelete","willDelete",(e=>e),e.code2ProtocolConverter.asWillDeleteFilesParams)}doSend(e,t){var n;const i=null===(n=this._client.clientOptions.middleware)||void 0===n?void 0:n.workspace;return(null==i?void 0:i.willDeleteFiles)?i.willDeleteFiles(e,t):t(e)}}},8357:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FoldingRangeFeature=void 0;const i=n(9496),r=n(1747),o=n(9343);function s(e,t){return void 0===e[t]&&(e[t]={}),e[t]}class a extends o.TextDocumentFeature{constructor(e){super(e,r.FoldingRangeRequest.type)}fillClientCapabilities(e){let t=s(s(e,"textDocument"),"foldingRange");t.dynamicRegistration=!0,t.rangeLimit=5e3,t.lineFoldingOnly=!0}initialize(e,t){let[n,i]=this.getRegistration(t,e.foldingRangeProvider);n&&i&&this.register({id:n,registerOptions:i})}registerLanguageProvider(e){const t={provideFoldingRanges:(e,t,n)=>{const i=this._client,o=(e,t,n)=>{const o={textDocument:i.code2ProtocolConverter.asTextDocumentIdentifier(e)};return i.sendRequest(r.FoldingRangeRequest.type,o,n).then(a.asFoldingRanges,(e=>i.handleFailedRequest(r.FoldingRangeRequest.type,e,null)))},s=i.clientOptions.middleware;return s.provideFoldingRanges?s.provideFoldingRanges(e,t,n,o):o(e,0,n)}};return[i.languages.registerFoldingRangeProvider(e.documentSelector,t),t]}static asFoldingRangeKind(e){if(e)switch(e){case r.FoldingRangeKind.Comment:return i.FoldingRangeKind.Comment;case r.FoldingRangeKind.Imports:return i.FoldingRangeKind.Imports;case r.FoldingRangeKind.Region:return i.FoldingRangeKind.Region}}static asFoldingRanges(e){return Array.isArray(e)?e.map((e=>new i.FoldingRange(e.startLine,e.endLine,a.asFoldingRangeKind(e.kind)))):[]}}t.FoldingRangeFeature=a},7567:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ImplementationFeature=void 0;const i=n(9496),r=n(1747),o=n(9343);function s(e,t){return void 0===e[t]&&(e[t]={}),e[t]}class a extends o.TextDocumentFeature{constructor(e){super(e,r.ImplementationRequest.type)}fillClientCapabilities(e){let t=s(s(e,"textDocument"),"implementation");t.dynamicRegistration=!0,t.linkSupport=!0}initialize(e,t){let[n,i]=this.getRegistration(t,e.implementationProvider);n&&i&&this.register({id:n,registerOptions:i})}registerLanguageProvider(e){const t={provideImplementation:(e,t,n)=>{const i=this._client,o=(e,t,n)=>i.sendRequest(r.ImplementationRequest.type,i.code2ProtocolConverter.asTextDocumentPositionParams(e,t),n).then(i.protocol2CodeConverter.asDefinitionResult,(e=>i.handleFailedRequest(r.ImplementationRequest.type,e,null))),s=i.clientOptions.middleware;return s.provideImplementation?s.provideImplementation(e,t,n,o):o(e,t,n)}};return[i.languages.registerImplementationProvider(e.documentSelector,t),t]}}t.ImplementationFeature=a},4722:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LinkedEditingFeature=void 0;const i=n(9496),r=n(1747),o=n(9343);function s(e,t){return void 0===e[t]&&(e[t]={}),e[t]}class a extends o.TextDocumentFeature{constructor(e){super(e,r.LinkedEditingRangeRequest.type)}fillClientCapabilities(e){s(s(e,"textDocument"),"linkedEditingRange").dynamicRegistration=!0}initialize(e,t){let[n,i]=this.getRegistration(t,e.linkedEditingRangeProvider);n&&i&&this.register({id:n,registerOptions:i})}registerLanguageProvider(e){const t={provideLinkedEditingRanges:(e,t,n)=>{const i=this._client,o=(e,t,n)=>i.sendRequest(r.LinkedEditingRangeRequest.type,i.code2ProtocolConverter.asTextDocumentPositionParams(e,t),n).then(i.protocol2CodeConverter.asLinkedEditingRanges,(e=>i.handleFailedRequest(r.LinkedEditingRangeRequest.type,e,null))),s=i.clientOptions.middleware;return s.provideLinkedEditingRange?s.provideLinkedEditingRange(e,t,n,o):o(e,t,n)}};return[i.languages.registerLinkedEditingRangeProvider(e.documentSelector,t),t]}}t.LinkedEditingFeature=a},4585:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProgressFeature=void 0;const i=n(1747),r=n(5984);t.ProgressFeature=class{constructor(e){this._client=e,this.activeParts=new Set}fillClientCapabilities(e){var t,n;(t=e,n="window",void 0===t[n]&&(t[n]=Object.create(null)),t[n]).workDoneProgress=!0}initialize(){const e=this._client,t=e=>{this.activeParts.delete(e)};e.onRequest(i.WorkDoneProgressCreateRequest.type,(e=>{this.activeParts.add(new r.ProgressPart(this._client,e.token,t))}))}dispose(){for(const e of this.activeParts)e.done();this.activeParts.clear()}}},5984:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProgressPart=void 0;const i=n(9496),r=n(1747),o=n(4652);t.ProgressPart=class{constructor(e,t,n){this._client=e,this._token=t,this._reported=0,this._disposable=this._client.onProgress(r.WorkDoneProgress.type,this._token,(e=>{switch(e.kind){case"begin":this.begin(e);break;case"report":this.report(e);break;case"end":this.done(),n&&n(this)}}))}begin(e){i.window.withProgress({location:i.ProgressLocation.Window,cancellable:e.cancellable,title:e.title},(async(t,n)=>(this._progress=t,this._infinite=void 0===e.percentage,this._cancellationToken=n,this._cancellationToken.onCancellationRequested((()=>{this._client.sendNotification(r.WorkDoneProgressCancelNotification.type,{token:this._token})})),this.report(e),new Promise(((e,t)=>{this._resolve=e,this._reject=t})))))}report(e){if(this._infinite&&o.string(e.message))this._progress.report({message:e.message});else if(o.number(e.percentage)){let t=Math.max(0,Math.min(e.percentage,100)),n=Math.max(0,t-this._reported);this._progress.report({message:e.message,increment:n}),this._reported+=n}}cancel(){this._disposable&&(this._disposable.dispose(),this._disposable=void 0),this._reject&&(this._reject(),this._resolve=void 0,this._reject=void 0)}done(){this._disposable&&(this._disposable.dispose(),this._disposable=void 0),this._resolve&&(this._resolve(),this._resolve=void 0,this._reject=void 0)}}},777:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(9496);class r extends i.CallHierarchyItem{constructor(e,t,n,i,r,o,s){super(e,t,n,i,r,o),void 0!==s&&(this.data=s)}}t.default=r},5958:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(9496);class r extends i.CodeAction{constructor(e,t){super(e),this.data=t}}t.default=r},2817:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(9496);class r extends i.CodeLens{constructor(e){super(e)}}t.default=r},9147:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(9496);class r extends i.CompletionItem{constructor(e){super(e)}}t.default=r},1011:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createConverter=void 0;const i=n(9496),r=n(1747),o=n(4652),s=n(9147),a=n(2817),c=n(8501),u=n(5958),l=n(8171),h=n(777),d=n(1747);var p;!function(e){e.is=function(e){let t=e;return t&&o.string(t.language)&&o.string(t.value)}}(p||(p={})),t.createConverter=function(e,t){const n=e||(e=>i.Uri.parse(e));function f(e){return n(e)}function g(e){return e.map(m)}function m(e){let t=new l.ProtocolDiagnostic(S(e.range),e.message,E(e.severity),e.data);return void 0!==e.code&&(r.CodeDescription.is(e.codeDescription)?t.code={value:e.code,target:f(e.codeDescription.href)}:l.DiagnosticCode.is(e.code)?(t.hasDiagnosticCode=!0,t.code={value:e.code.value,target:f(e.code.target)}):t.code=e.code),e.source&&(t.source=e.source),e.relatedInformation&&(t.relatedInformation=e.relatedInformation.map(y)),Array.isArray(e.tags)&&(t.tags=function(e){if(!e)return;let t=[];for(let n of e){let e=v(n);void 0!==e&&t.push(e)}return t.length>0?t:void 0}(e.tags)),t}function y(e){return new i.DiagnosticRelatedInformation(M(e.location),e.message)}function v(e){switch(e){case r.DiagnosticTag.Unnecessary:return i.DiagnosticTag.Unnecessary;case r.DiagnosticTag.Deprecated:return i.DiagnosticTag.Deprecated;default:return}}function C(e){if(e)return new i.Position(e.line,e.character)}function S(e){if(e)return new i.Range(C(e.start),C(e.end))}function b(e){return e.map((e=>S(e)))}function E(e){if(null==e)return i.DiagnosticSeverity.Error;switch(e){case r.DiagnosticSeverity.Error:return i.DiagnosticSeverity.Error;case r.DiagnosticSeverity.Warning:return i.DiagnosticSeverity.Warning;case r.DiagnosticSeverity.Information:return i.DiagnosticSeverity.Information;case r.DiagnosticSeverity.Hint:return i.DiagnosticSeverity.Hint}return i.DiagnosticSeverity.Error}function w(e){if(o.string(e))return e;switch(e.kind){case r.MarkupKind.Markdown:return D(e.value);case r.MarkupKind.PlainText:return e.value;default:return`Unsupported Markup content received. Kind is: ${e.kind}`}}function D(e){const n=new i.MarkdownString(e);return!0===t&&(n.isTrusted=t),n}function x(e){if(e===r.CompletionItemTag.Deprecated)return i.CompletionItemTag.Deprecated}function _(e){let t=function(e){if(null==e)return[];const t=[];for(let n of e){const e=x(n);void 0!==e&&t.push(e)}return t}(e.tags),n=new s.default(e.label);e.detail&&(n.detail=e.detail),e.documentation&&(n.documentation=w(e.documentation),n.documentationFormat=o.string(e.documentation)?"$string":e.documentation.kind),e.filterText&&(n.filterText=e.filterText);let a=function(e){return e.textEdit?e.insertTextFormat===r.InsertTextFormat.Snippet?{text:new i.SnippetString(e.textEdit.newText),range:T(e.textEdit),fromEdit:!0}:{text:e.textEdit.newText,range:T(e.textEdit),fromEdit:!0}:e.insertText?e.insertTextFormat===r.InsertTextFormat.Snippet?{text:new i.SnippetString(e.insertText),fromEdit:!1}:{text:e.insertText,fromEdit:!1}:void 0}(e);if(a&&(n.insertText=a.text,n.range=a.range,n.fromEdit=a.fromEdit),o.number(e.kind)){let[t,o]=(c=e.kind,r.CompletionItemKind.Text<=c&&c<=r.CompletionItemKind.TypeParameter?[c-1,void 0]:[i.CompletionItemKind.Text,c]);n.kind=t,o&&(n.originalItemKind=o)}var c;return e.sortText&&(n.sortText=e.sortText),e.additionalTextEdits&&(n.additionalTextEdits=F(e.additionalTextEdits)),o.stringArray(e.commitCharacters)&&(n.commitCharacters=e.commitCharacters.slice()),e.command&&(n.command=z(e.command)),!0!==e.deprecated&&!1!==e.deprecated||(n.deprecated=e.deprecated,!0===e.deprecated&&t.push(i.CompletionItemTag.Deprecated)),!0!==e.preselect&&!1!==e.preselect||(n.preselect=e.preselect),void 0!==e.data&&(n.data=e.data),t.length>0&&(n.tags=t),void 0!==e.insertTextMode&&(n.insertTextMode=e.insertTextMode,e.insertTextMode===d.InsertTextMode.asIs&&(n.keepWhitespace=!0)),n}function T(e){return r.InsertReplaceEdit.is(e)?{inserting:S(e.insert),replacing:S(e.replace)}:S(e.range)}function k(e){if(e)return new i.TextEdit(S(e.range),e.newText)}function F(e){if(e)return e.map(k)}function A(e){return e.map(R)}function R(e){let t=new i.SignatureInformation(e.label);return void 0!==e.documentation&&(t.documentation=w(e.documentation)),void 0!==e.parameters&&(t.parameters=O(e.parameters)),void 0!==e.activeParameter&&(t.activeParameter=e.activeParameter),t}function O(e){return e.map(P)}function P(e){let t=new i.ParameterInformation(e.label);return e.documentation&&(t.documentation=w(e.documentation)),t}function M(e){if(e)return new i.Location(n(e.uri),S(e.range))}function N(e){if(!e)return;let t={targetUri:n(e.targetUri),targetRange:S(e.targetRange),originSelectionRange:S(e.originSelectionRange),targetSelectionRange:S(e.targetSelectionRange)};if(!t.targetSelectionRange)throw new Error("targetSelectionRange must not be undefined or null");return t}function I(e){if(e)return o.array(e)?0===e.length?[]:r.LocationLink.is(e[0])?e.map((e=>N(e))):e.map((e=>M(e))):r.LocationLink.is(e)?[N(e)]:M(e)}function L(e){let t=new i.DocumentHighlight(S(e.range));return o.number(e.kind)&&(t.kind=j(e.kind)),t}function j(e){switch(e){case r.DocumentHighlightKind.Text:return i.DocumentHighlightKind.Text;case r.DocumentHighlightKind.Read:return i.DocumentHighlightKind.Read;case r.DocumentHighlightKind.Write:return i.DocumentHighlightKind.Write}return i.DocumentHighlightKind.Text}function B(e){return e<=r.SymbolKind.TypeParameter?e-1:i.SymbolKind.Property}function q(e){if(e===r.SymbolTag.Deprecated)return i.SymbolTag.Deprecated}function U(e){if(null==e)return;const t=[];for(const n of e){const e=q(n);void 0!==e&&t.push(e)}return 0===t.length?void 0:t}function W(e,t){let r=new i.SymbolInformation(e.name,B(e.kind),S(e.location.range),e.location.uri?n(e.location.uri):t);return K(r,e),e.containerName&&(r.containerName=e.containerName),r}function $(e){let t=new i.DocumentSymbol(e.name,e.detail||"",B(e.kind),S(e.range),S(e.selectionRange));if(K(t,e),void 0!==e.children&&e.children.length>0){let n=[];for(let t of e.children)n.push($(t));t.children=n}return t}function K(e,t){e.tags=U(t.tags),t.deprecated&&(e.tags?e.tags.includes(i.SymbolTag.Deprecated)||(e.tags=e.tags.concat(i.SymbolTag.Deprecated)):e.tags=[i.SymbolTag.Deprecated])}function z(e){let t={title:e.title,command:e.command};return e.arguments&&(t.arguments=e.arguments),t}const V=new Map;function H(e){if(null==e)return;let t=V.get(e);if(t)return t;let n=e.split(".");t=i.CodeActionKind.Empty;for(let e of n)t=t.append(e);return t}function G(e){if(!e)return;let t=new a.default(S(e.range));return e.command&&(t.command=z(e.command)),void 0!==e.data&&null!==e.data&&(t.data=e.data),t}function J(e){if(!e)return;const t=new Map;if(void 0!==e.changeAnnotations)for(const n of Object.keys(e.changeAnnotations)){const i=X(e.changeAnnotations[n]);t.set(n,i)}const o=e=>void 0===e?void 0:t.get(e),s=new i.WorkspaceEdit;if(e.documentChanges)for(const t of e.documentChanges)if(r.CreateFile.is(t))s.createFile(n(t.uri),t.options,o(t.annotationId));else if(r.RenameFile.is(t))s.renameFile(n(t.oldUri),n(t.newUri),t.options,o(t.annotationId));else if(r.DeleteFile.is(t))s.deleteFile(n(t.uri),t.options,o(t.annotationId));else{if(!r.TextDocumentEdit.is(t))throw new Error(`Unknown workspace edit change received:\n${JSON.stringify(t,void 0,4)}`);{const e=n(t.textDocument.uri);for(const n of t.edits)d.AnnotatedTextEdit.is(n)?s.replace(e,S(n.range),n.newText,o(n.annotationId)):s.replace(e,S(n.range),n.newText)}}else e.changes&&Object.keys(e.changes).forEach((t=>{s.set(n(t),F(e.changes[t]))}));return s}function X(e){if(void 0!==e)return{label:e.label,needsConfirmation:!!e.needsConfirmation,description:e.description}}function Y(e){let t=S(e.range),n=e.target?f(e.target):void 0,i=new c.default(t,n);return void 0!==e.tooltip&&(i.tooltip=e.tooltip),void 0!==e.data&&null!==e.data&&(i.data=e.data),i}function Q(e){return new i.Color(e.red,e.green,e.blue,e.alpha)}function Z(e){return new i.ColorInformation(S(e.range),Q(e.color))}function ee(e){let t=new i.ColorPresentation(e.label);return t.additionalTextEdits=F(e.additionalTextEdits),e.textEdit&&(t.textEdit=k(e.textEdit)),t}function te(e){if(e)switch(e){case r.FoldingRangeKind.Comment:return i.FoldingRangeKind.Comment;case r.FoldingRangeKind.Imports:return i.FoldingRangeKind.Imports;case r.FoldingRangeKind.Region:return i.FoldingRangeKind.Region}}function ne(e){return new i.FoldingRange(e.startLine,e.endLine,te(e.kind))}function ie(e){return new i.SelectionRange(S(e.range),e.parent?ie(e.parent):void 0)}function re(e){if(null===e)return;let t=new h.default(B(e.kind),e.name,e.detail||"",f(e.uri),S(e.range),S(e.selectionRange),e.data);return void 0!==e.tags&&(t.tags=U(e.tags)),t}function oe(e){return new i.CallHierarchyIncomingCall(re(e.from),b(e.fromRanges))}function se(e){return new i.CallHierarchyOutgoingCall(re(e.to),b(e.fromRanges))}function ae(e){return new i.SemanticTokensEdit(e.start,e.deleteCount,void 0!==e.data?new Uint32Array(e.data):void 0)}return V.set(r.CodeActionKind.Empty,i.CodeActionKind.Empty),V.set(r.CodeActionKind.QuickFix,i.CodeActionKind.QuickFix),V.set(r.CodeActionKind.Refactor,i.CodeActionKind.Refactor),V.set(r.CodeActionKind.RefactorExtract,i.CodeActionKind.RefactorExtract),V.set(r.CodeActionKind.RefactorInline,i.CodeActionKind.RefactorInline),V.set(r.CodeActionKind.RefactorRewrite,i.CodeActionKind.RefactorRewrite),V.set(r.CodeActionKind.Source,i.CodeActionKind.Source),V.set(r.CodeActionKind.SourceOrganizeImports,i.CodeActionKind.SourceOrganizeImports),{asUri:f,asDiagnostics:g,asDiagnostic:m,asRange:S,asRanges:b,asPosition:C,asDiagnosticSeverity:E,asDiagnosticTag:v,asHover:function(e){if(e)return new i.Hover(function(e){if(o.string(e))return D(e);if(p.is(e))return D().appendCodeblock(e.value,e.language);if(Array.isArray(e)){let t=[];for(let n of e){let e=D();p.is(n)?e.appendCodeblock(n.value,n.language):e.appendMarkdown(n),t.push(e)}return t}{let t;switch(e.kind){case r.MarkupKind.Markdown:return D(e.value);case r.MarkupKind.PlainText:return t=D(),t.appendText(e.value),t;default:return t=D(),t.appendText(`Unsupported Markup content received. Kind is: ${e.kind}`),t}}}(e.contents),S(e.range))},asCompletionResult:function(e){if(!e)return;if(Array.isArray(e))return e.map(_);let t=e;return new i.CompletionList(t.items.map(_),t.isIncomplete)},asCompletionItem:_,asTextEdit:k,asTextEdits:F,asSignatureHelp:function(e){if(!e)return;let t=new i.SignatureHelp;return o.number(e.activeSignature)?t.activeSignature=e.activeSignature:t.activeSignature=0,o.number(e.activeParameter)?t.activeParameter=e.activeParameter:t.activeParameter=0,e.signatures&&(t.signatures=A(e.signatures)),t},asSignatureInformations:A,asSignatureInformation:R,asParameterInformations:O,asParameterInformation:P,asDeclarationResult:function(e){if(e)return I(e)},asDefinitionResult:function(e){if(e)return I(e)},asLocation:M,asReferences:function(e){if(e)return e.map((e=>M(e)))},asDocumentHighlights:function(e){if(e)return e.map(L)},asDocumentHighlight:L,asDocumentHighlightKind:j,asSymbolKind:B,asSymbolTag:q,asSymbolTags:U,asSymbolInformations:function(e,t){if(e)return e.map((e=>W(e,t)))},asSymbolInformation:W,asDocumentSymbols:function(e){if(null!=e)return e.map($)},asDocumentSymbol:$,asCommand:z,asCommands:function(e){if(e)return e.map(z)},asCodeAction:function(e){if(null==e)return;let t=new u.default(e.title,e.data);return void 0!==e.kind&&(t.kind=H(e.kind)),void 0!==e.diagnostics&&(t.diagnostics=g(e.diagnostics)),void 0!==e.edit&&(t.edit=J(e.edit)),void 0!==e.command&&(t.command=z(e.command)),void 0!==e.isPreferred&&(t.isPreferred=e.isPreferred),void 0!==e.disabled&&(t.disabled={reason:e.disabled.reason}),t},asCodeActionKind:H,asCodeActionKinds:function(e){if(null!=e)return e.map((e=>H(e)))},asCodeLens:G,asCodeLenses:function(e){if(e)return e.map((e=>G(e)))},asWorkspaceEdit:J,asDocumentLink:Y,asDocumentLinks:function(e){if(e)return e.map(Y)},asFoldingRangeKind:te,asFoldingRange:ne,asFoldingRanges:function(e){if(Array.isArray(e))return e.map(ne)},asColor:Q,asColorInformation:Z,asColorInformations:function(e){if(Array.isArray(e))return e.map(Z)},asColorPresentation:ee,asColorPresentations:function(e){if(Array.isArray(e))return e.map(ee)},asSelectionRange:ie,asSelectionRanges:function(e){if(!Array.isArray(e))return[];let t=[];for(let n of e)t.push(ie(n));return t},asSemanticTokensLegend:function(e){return e},asSemanticTokens:function(e){if(null!=e)return new i.SemanticTokens(new Uint32Array(e.data),e.resultId)},asSemanticTokensEdit:ae,asSemanticTokensEdits:function(e){if(null!=e)return new i.SemanticTokensEdits(e.edits.map(ae),e.resultId)},asCallHierarchyItem:re,asCallHierarchyItems:function(e){if(null!==e)return e.map((e=>re(e)))},asCallHierarchyIncomingCall:oe,asCallHierarchyIncomingCalls:function(e){if(null!==e)return e.map((e=>oe(e)))},asCallHierarchyOutgoingCall:se,asCallHierarchyOutgoingCalls:function(e){if(null!==e)return e.map((e=>se(e)))},asLinkedEditingRanges:function(e){if(null!=e)return new i.LinkedEditingRanges(b(e.ranges),function(e){if(null!=e)return new RegExp(e)}(e.wordPattern))}}}},8171:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProtocolDiagnostic=t.DiagnosticCode=void 0;const i=n(9496),r=n(4652);(t.DiagnosticCode||(t.DiagnosticCode={})).is=function(e){const t=e;return null!=t&&(r.number(t.value)||r.string(t.value))&&r.string(t.target)};class o extends i.Diagnostic{constructor(e,t,n,i){super(e,t,n),this.data=i,this.hasDiagnosticCode=!1}}t.ProtocolDiagnostic=o},8501:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(9496);class r extends i.DocumentLink{constructor(e,t){super(e,t)}}t.default=r},2672:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionRangeFeature=void 0;const i=n(9496),r=n(1747),o=n(9343);function s(e,t){return void 0===e[t]&&(e[t]=Object.create(null)),e[t]}class a extends o.TextDocumentFeature{constructor(e){super(e,r.SelectionRangeRequest.type)}fillClientCapabilities(e){s(s(e,"textDocument"),"selectionRange").dynamicRegistration=!0}initialize(e,t){let[n,i]=this.getRegistration(t,e.selectionRangeProvider);n&&i&&this.register({id:n,registerOptions:i})}registerLanguageProvider(e){const t={provideSelectionRanges:(e,t,n)=>{const i=this._client,o=(e,t,n)=>{const o={textDocument:i.code2ProtocolConverter.asTextDocumentIdentifier(e),positions:i.code2ProtocolConverter.asPositions(t)};return i.sendRequest(r.SelectionRangeRequest.type,o,n).then((e=>i.protocol2CodeConverter.asSelectionRanges(e)),(e=>i.handleFailedRequest(r.SelectionRangeRequest.type,e,null)))},s=i.clientOptions.middleware;return s.provideSelectionRanges?s.provideSelectionRanges(e,t,n,o):o(e,t,n)}};return[i.languages.registerSelectionRangeProvider(e.documentSelector,t),t]}}t.SelectionRangeFeature=a},1572:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SemanticTokensFeature=void 0;const i=n(9496),r=n(9343),o=n(1747),s=n(4652);function a(e,t){return void 0===e[t]&&(e[t]={}),e[t]}class c extends r.TextDocumentFeature{constructor(e){super(e,o.SemanticTokensRegistrationType.type)}fillClientCapabilities(e){const t=a(a(e,"textDocument"),"semanticTokens");t.dynamicRegistration=!0,t.tokenTypes=[o.SemanticTokenTypes.namespace,o.SemanticTokenTypes.type,o.SemanticTokenTypes.class,o.SemanticTokenTypes.enum,o.SemanticTokenTypes.interface,o.SemanticTokenTypes.struct,o.SemanticTokenTypes.typeParameter,o.SemanticTokenTypes.parameter,o.SemanticTokenTypes.variable,o.SemanticTokenTypes.property,o.SemanticTokenTypes.enumMember,o.SemanticTokenTypes.event,o.SemanticTokenTypes.function,o.SemanticTokenTypes.method,o.SemanticTokenTypes.macro,o.SemanticTokenTypes.keyword,o.SemanticTokenTypes.modifier,o.SemanticTokenTypes.comment,o.SemanticTokenTypes.string,o.SemanticTokenTypes.number,o.SemanticTokenTypes.regexp,o.SemanticTokenTypes.operator],t.tokenModifiers=[o.SemanticTokenModifiers.declaration,o.SemanticTokenModifiers.definition,o.SemanticTokenModifiers.readonly,o.SemanticTokenModifiers.static,o.SemanticTokenModifiers.deprecated,o.SemanticTokenModifiers.abstract,o.SemanticTokenModifiers.async,o.SemanticTokenModifiers.modification,o.SemanticTokenModifiers.documentation,o.SemanticTokenModifiers.defaultLibrary],t.formats=[o.TokenFormat.Relative],t.requests={range:!0,full:{delta:!0}},t.multilineTokenSupport=!1,t.overlappingTokenSupport=!1,a(a(e,"workspace"),"semanticTokens").refreshSupport=!0}initialize(e,t){this._client.onRequest(o.SemanticTokensRefreshRequest.type,(async()=>{for(const e of this.getAllProviders())e.onDidChangeSemanticTokensEmitter.fire()}));const[n,i]=this.getRegistration(t,e.semanticTokensProvider);n&&i&&this.register({id:n,registerOptions:i})}registerLanguageProvider(e){const t=s.boolean(e.full)?e.full:void 0!==e.full,n=void 0!==e.full&&"boolean"!=typeof e.full&&!0===e.full.delta,r=new i.EventEmitter,a=t?{onDidChangeSemanticTokens:r.event,provideDocumentSemanticTokens:(e,t)=>{const n=this._client,i=n.clientOptions.middleware,r=(e,t)=>{const i={textDocument:n.code2ProtocolConverter.asTextDocumentIdentifier(e)};return n.sendRequest(o.SemanticTokensRequest.type,i,t).then((e=>n.protocol2CodeConverter.asSemanticTokens(e)),(e=>n.handleFailedRequest(o.SemanticTokensRequest.type,e,null)))};return i.provideDocumentSemanticTokens?i.provideDocumentSemanticTokens(e,t,r):r(e,t)},provideDocumentSemanticTokensEdits:n?(e,t,n)=>{const i=this._client,r=i.clientOptions.middleware,s=(e,t,n)=>{const r={textDocument:i.code2ProtocolConverter.asTextDocumentIdentifier(e),previousResultId:t};return i.sendRequest(o.SemanticTokensDeltaRequest.type,r,n).then((e=>o.SemanticTokens.is(e)?i.protocol2CodeConverter.asSemanticTokens(e):i.protocol2CodeConverter.asSemanticTokensEdits(e)),(e=>i.handleFailedRequest(o.SemanticTokensDeltaRequest.type,e,null)))};return r.provideDocumentSemanticTokensEdits?r.provideDocumentSemanticTokensEdits(e,t,n,s):s(e,t,n)}:void 0}:void 0,c=!0===e.range?{provideDocumentRangeSemanticTokens:(e,t,n)=>{const i=this._client,r=i.clientOptions.middleware,s=(e,t,n)=>{const r={textDocument:i.code2ProtocolConverter.asTextDocumentIdentifier(e),range:i.code2ProtocolConverter.asRange(t)};return i.sendRequest(o.SemanticTokensRangeRequest.type,r,n).then((e=>i.protocol2CodeConverter.asSemanticTokens(e)),(e=>i.handleFailedRequest(o.SemanticTokensRangeRequest.type,e,null)))};return r.provideDocumentRangeSemanticTokens?r.provideDocumentRangeSemanticTokens(e,t,n,s):s(e,t,n)}}:void 0,u=[],l=this._client.protocol2CodeConverter.asSemanticTokensLegend(e.legend);return void 0!==a&&u.push(i.languages.registerDocumentSemanticTokensProvider(e.documentSelector,a,l)),void 0!==c&&u.push(i.languages.registerDocumentRangeSemanticTokensProvider(e.documentSelector,c,l)),[new i.Disposable((()=>u.forEach((e=>e.dispose())))),{range:c,full:a,onDidChangeSemanticTokensEmitter:r}]}}t.SemanticTokensFeature=c},7349:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TypeDefinitionFeature=void 0;const i=n(9496),r=n(1747),o=n(9343);function s(e,t){return void 0===e[t]&&(e[t]={}),e[t]}class a extends o.TextDocumentFeature{constructor(e){super(e,r.TypeDefinitionRequest.type)}fillClientCapabilities(e){s(s(e,"textDocument"),"typeDefinition").dynamicRegistration=!0;let t=s(s(e,"textDocument"),"typeDefinition");t.dynamicRegistration=!0,t.linkSupport=!0}initialize(e,t){let[n,i]=this.getRegistration(t,e.typeDefinitionProvider);n&&i&&this.register({id:n,registerOptions:i})}registerLanguageProvider(e){const t={provideTypeDefinition:(e,t,n)=>{const i=this._client,o=(e,t,n)=>i.sendRequest(r.TypeDefinitionRequest.type,i.code2ProtocolConverter.asTextDocumentPositionParams(e,t),n).then(i.protocol2CodeConverter.asDefinitionResult,(e=>i.handleFailedRequest(r.TypeDefinitionRequest.type,e,null))),s=i.clientOptions.middleware;return s.provideTypeDefinition?s.provideTypeDefinition(e,t,n,o):o(e,t,n)}};return[i.languages.registerTypeDefinitionProvider(e.documentSelector,t),t]}}t.TypeDefinitionFeature=a},899:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Delayer=void 0;const i=n(1747);t.Delayer=class{constructor(e){this.defaultDelay=e,this.timeout=void 0,this.completionPromise=void 0,this.onSuccess=void 0,this.task=void 0}trigger(e,t=this.defaultDelay){return this.task=e,t>=0&&this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise((e=>{this.onSuccess=e})).then((()=>{this.completionPromise=void 0,this.onSuccess=void 0;var e=this.task();return this.task=void 0,e}))),(t>=0||void 0===this.timeout)&&(this.timeout=i.RAL().timer.setTimeout((()=>{this.timeout=void 0,this.onSuccess(void 0)}),t>=0?t:this.defaultDelay)),this.completionPromise}forceDelivery(){if(!this.completionPromise)return;this.cancelTimeout();let e=this.task();return this.completionPromise=void 0,this.onSuccess=void 0,this.task=void 0,e}isTriggered(){return void 0!==this.timeout}cancel(){this.cancelTimeout(),this.completionPromise=void 0}cancelTimeout(){void 0!==this.timeout&&(i.RAL().timer.clearTimeout(this.timeout),this.timeout=void 0)}}},4652:(e,t)=>{"use strict";function n(e){return"string"==typeof e||e instanceof String}function i(e){return"function"==typeof e}function r(e){return Array.isArray(e)}function o(e){return e&&i(e.then)}Object.defineProperty(t,"__esModule",{value:!0}),t.asPromise=t.thenable=t.typedArray=t.stringArray=t.array=t.func=t.error=t.number=t.string=t.boolean=void 0,t.boolean=function(e){return!0===e||!1===e},t.string=n,t.number=function(e){return"number"==typeof e||e instanceof Number},t.error=function(e){return e instanceof Error},t.func=i,t.array=r,t.stringArray=function(e){return r(e)&&e.every((e=>n(e)))},t.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)},t.thenable=o,t.asPromise=function(e){return e instanceof Promise?e:o(e)?new Promise(((t,n)=>{e.then((e=>t(e)),(e=>n(e)))})):Promise.resolve(e)}},2667:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateUuid=t.parse=t.isUUID=t.v4=t.empty=void 0;class n{constructor(e){this._value=e}asHex(){return this._value}equals(e){return this.asHex()===e.asHex()}}class i extends n{constructor(){super([i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),"-",i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),"-","4",i._randomHex(),i._randomHex(),i._randomHex(),"-",i._oneOf(i._timeHighBits),i._randomHex(),i._randomHex(),i._randomHex(),"-",i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex()].join(""))}static _oneOf(e){return e[Math.floor(e.length*Math.random())]}static _randomHex(){return i._oneOf(i._chars)}}function r(){return new i}i._chars=["0","1","2","3","4","5","6","6","7","8","9","a","b","c","d","e","f"],i._timeHighBits=["8","9","a","b"],t.empty=new n("00000000-0000-0000-0000-000000000000"),t.v4=r;const o=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function s(e){return o.test(e)}t.isUUID=s,t.parse=function(e){if(!s(e))throw new Error("invalid uuid");return new n(e)},t.generateUuid=function(){return r().asHex()}},7304:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceFoldersFeature=t.arrayDiff=void 0;const i=n(2667),r=n(9496),o=n(1747);function s(e,t){if(void 0!==e)return e[t]}function a(e,t){return e.filter((e=>t.indexOf(e)<0))}t.arrayDiff=a,t.WorkspaceFoldersFeature=class{constructor(e){this._client=e,this._listeners=new Map}get registrationType(){return o.DidChangeWorkspaceFoldersNotification.type}fillInitializeParams(e){const t=r.workspace.workspaceFolders;this.initializeWithFolders(t),e.workspaceFolders=void 0===t?null:t.map((e=>this.asProtocol(e)))}initializeWithFolders(e){this._initialFolders=e}fillClientCapabilities(e){e.workspace=e.workspace||{},e.workspace.workspaceFolders=!0}initialize(e){const t=this._client;t.onRequest(o.WorkspaceFoldersRequest.type,(e=>{const n=()=>{const e=r.workspace.workspaceFolders;return void 0===e?null:e.map((e=>this.asProtocol(e)))},i=t.clientOptions.middleware.workspace;return i&&i.workspaceFolders?i.workspaceFolders(e,n):n()}));const n=s(s(s(e,"workspace"),"workspaceFolders"),"changeNotifications");let a;"string"==typeof n?a=n:!0===n&&(a=i.generateUuid()),a&&this.register({id:a,registerOptions:void 0})}sendInitialEvent(e){if(this._initialFolders&&e){const t=a(this._initialFolders,e),n=a(e,this._initialFolders);(n.length>0||t.length>0)&&this.doSendEvent(n,t)}else this._initialFolders?this.doSendEvent([],this._initialFolders):e&&this.doSendEvent(e,[])}doSendEvent(e,t){let n={event:{added:e.map((e=>this.asProtocol(e))),removed:t.map((e=>this.asProtocol(e)))}};this._client.sendNotification(o.DidChangeWorkspaceFoldersNotification.type,n)}register(e){let t=e.id,n=this._client,i=r.workspace.onDidChangeWorkspaceFolders((e=>{let t=e=>{this.doSendEvent(e.added,e.removed)},i=n.clientOptions.middleware.workspace;i&&i.didChangeWorkspaceFolders?i.didChangeWorkspaceFolders(e,t):t(e)}));this._listeners.set(t,i),this.sendInitialEvent(r.workspace.workspaceFolders)}unregister(e){let t=this._listeners.get(e);void 0!==t&&(this._listeners.delete(e),t.dispose())}dispose(){for(let e of this._listeners.values())e.dispose();this._listeners.clear()}asProtocol(e){return void 0===e?null:{uri:this._client.code2ProtocolConverter.asUri(e.uri),name:e.name}}}},186:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.SettingMonitor=t.LanguageClient=t.TransportKind=void 0;const o=n(2081),s=n(7147),a=n(1017),c=n(7699),u=n(9496),l=n(4652),h=n(8758),d=n(9343),p=n(468),f=n(2570);r(n(2570),t),r(n(7944),t);var g,m,y,v,C,S;!function(e){e.is=function(e){return l.string(e.command)}}(g||(g={})),function(e){e[e.stdio=0]="stdio",e[e.ipc=1]="ipc",e[e.pipe=2]="pipe",e[e.socket=3]="socket"}(m=t.TransportKind||(t.TransportKind={})),function(e){e.isSocket=function(e){let t=e;return t&&t.kind===m.socket&&l.number(t.port)}}(y||(y={})),function(e){e.is=function(e){return l.string(e.module)}}(v||(v={})),function(e){e.is=function(e){let t=e;return t&&void 0!==t.writer&&void 0!==t.reader}}(C||(C={})),function(e){e.is=function(e){let t=e;return t&&void 0!==t.process&&"boolean"==typeof t.detached}}(S||(S={}));class b extends h.CommonLanguageClient{constructor(e,t,n,i,r){let o,s,a,c,u;l.string(t)?(o=e,s=t,a=n,c=i,u=!!r):(o=e.toLowerCase(),s=e,a=t,c=n,u=i),void 0===u&&(u=!1),super(o,s,c),this._serverOptions=a,this._forceDebug=u;try{this.checkVersion()}catch(e){throw l.string(e.message)&&this.outputChannel.appendLine(e.message),e}}checkVersion(){let e=c.parse(u.version);if(!e)throw new Error(`No valid VS Code version detected. Version string is: ${u.version}`);if(e.prerelease&&e.prerelease.length>0&&(e.prerelease=[]),!c.satisfies(e,"^1.52.0"))throw new Error(`The language client requires VS Code version ^1.52.0 but received version ${u.version}`)}stop(){return super.stop().then((()=>{if(this._serverProcess){let e=this._serverProcess;this._serverProcess=void 0,void 0!==this._isDetached&&this._isDetached||this.checkProcessDied(e),this._isDetached=void 0}}))}checkProcessDied(e){e&&setTimeout((()=>{try{process.kill(e.pid,0),p.terminate(e)}catch(e){}}),2e3)}handleConnectionClosed(){this._serverProcess=void 0,super.handleConnectionClosed()}fillInitializeParams(e){super.fillInitializeParams(e),null===e.processId&&(e.processId=process.pid)}createMessageTransports(e){function t(e,t){if(!e&&!t)return;let n=Object.create(null);return Object.keys(process.env).forEach((e=>n[e]=process.env[e])),t&&(n.ELECTRON_RUN_AS_NODE="1",n.ELECTRON_NO_ASAR="1"),e&&Object.keys(e).forEach((t=>n[t]=e[t])),n}const n=["--debug=","--debug-brk=","--inspect=","--inspect-brk="],i=["--debug","--debug-brk","--inspect","--inspect-brk"];function r(e){if(null===e.stdin||null===e.stdout||null===e.stderr)throw new Error("Process created without stdio streams")}let s,a=this._serverOptions;if(l.func(a))return a().then((t=>{if(d.MessageTransports.is(t))return this._isDetached=!!t.detached,t;if(C.is(t))return this._isDetached=!!t.detached,{reader:new f.StreamMessageReader(t.reader),writer:new f.StreamMessageWriter(t.writer)};{let n;return S.is(t)?(n=t.process,this._isDetached=t.detached):(n=t,this._isDetached=!1),n.stderr.on("data",(t=>this.outputChannel.append(l.string(t)?t:t.toString(e)))),{reader:new f.StreamMessageReader(n.stdout),writer:new f.StreamMessageWriter(n.stdin)}}}));let c=a;return s=c.run||c.debug?this._forceDebug||function(){let e=process.execArgv;return!!e&&e.some((e=>n.some((t=>e.startsWith(t)))||i.some((t=>e===t))))}()?c.debug:c.run:a,this._getServerWorkingDir(s.options).then((n=>{if(v.is(s)&&s.module){let i=s,a=i.transport||m.stdio;if(!i.runtime){let s;return new Promise(((c,u)=>{let h=i.args&&i.args.slice()||[];a===m.ipc?h.push("--node-ipc"):a===m.stdio?h.push("--stdio"):a===m.pipe?(s=f.generateRandomPipeName(),h.push(`--pipe=${s}`)):y.isSocket(a)&&h.push(`--socket=${a.port}`),h.push(`--clientProcessId=${process.pid.toString()}`);let d=i.options||Object.create(null);if(d.env=t(d.env,!0),d.execArgv=d.execArgv||[],d.cwd=n,d.silent=!0,a===m.ipc||a===m.stdio){let t=o.fork(i.module,h||[],d);r(t),this._serverProcess=t,t.stderr.on("data",(t=>this.outputChannel.append(l.string(t)?t:t.toString(e)))),a===m.ipc?(t.stdout.on("data",(t=>this.outputChannel.append(l.string(t)?t:t.toString(e)))),c({reader:new f.IPCMessageReader(this._serverProcess),writer:new f.IPCMessageWriter(this._serverProcess)})):c({reader:new f.StreamMessageReader(t.stdout),writer:new f.StreamMessageWriter(t.stdin)})}else a===m.pipe?f.createClientPipeTransport(s).then((t=>{let n=o.fork(i.module,h||[],d);r(n),this._serverProcess=n,n.stderr.on("data",(t=>this.outputChannel.append(l.string(t)?t:t.toString(e)))),n.stdout.on("data",(t=>this.outputChannel.append(l.string(t)?t:t.toString(e)))),t.onConnected().then((e=>{c({reader:e[0],writer:e[1]})}))})):y.isSocket(a)&&f.createClientSocketTransport(a.port).then((t=>{let n=o.fork(i.module,h||[],d);r(n),this._serverProcess=n,n.stderr.on("data",(t=>this.outputChannel.append(l.string(t)?t:t.toString(e)))),n.stdout.on("data",(t=>this.outputChannel.append(l.string(t)?t:t.toString(e)))),t.onConnected().then((e=>{c({reader:e[0],writer:e[1]})}))}))}))}{let r=[],s=i.options||Object.create(null);s.execArgv&&s.execArgv.forEach((e=>r.push(e))),r.push(i.module),i.args&&i.args.forEach((e=>r.push(e)));const c=Object.create(null);c.cwd=n,c.env=t(s.env,!1);const u=this._getRuntimePath(i.runtime,n);let h;if(a===m.ipc?(c.stdio=[null,null,null,"ipc"],r.push("--node-ipc")):a===m.stdio?r.push("--stdio"):a===m.pipe?(h=f.generateRandomPipeName(),r.push(`--pipe=${h}`)):y.isSocket(a)&&r.push(`--socket=${a.port}`),r.push(`--clientProcessId=${process.pid.toString()}`),a===m.ipc||a===m.stdio){let t=o.spawn(u,r,c);return t&&t.pid?(this._serverProcess=t,t.stderr.on("data",(t=>this.outputChannel.append(l.string(t)?t:t.toString(e)))),a===m.ipc?(t.stdout.on("data",(t=>this.outputChannel.append(l.string(t)?t:t.toString(e)))),Promise.resolve({reader:new f.IPCMessageReader(t),writer:new f.IPCMessageWriter(t)})):Promise.resolve({reader:new f.StreamMessageReader(t.stdout),writer:new f.StreamMessageWriter(t.stdin)})):Promise.reject(`Launching server using runtime ${u} failed.`)}if(a===m.pipe)return f.createClientPipeTransport(h).then((t=>{let n=o.spawn(u,r,c);return n&&n.pid?(this._serverProcess=n,n.stderr.on("data",(t=>this.outputChannel.append(l.string(t)?t:t.toString(e)))),n.stdout.on("data",(t=>this.outputChannel.append(l.string(t)?t:t.toString(e)))),t.onConnected().then((e=>({reader:e[0],writer:e[1]})))):Promise.reject(`Launching server using runtime ${u} failed.`)}));if(y.isSocket(a))return f.createClientSocketTransport(a.port).then((t=>{let n=o.spawn(u,r,c);return n&&n.pid?(this._serverProcess=n,n.stderr.on("data",(t=>this.outputChannel.append(l.string(t)?t:t.toString(e)))),n.stdout.on("data",(t=>this.outputChannel.append(l.string(t)?t:t.toString(e)))),t.onConnected().then((e=>({reader:e[0],writer:e[1]})))):Promise.reject(`Launching server using runtime ${u} failed.`)}))}}else if(g.is(s)&&s.command){let t=s,i=t.args||[],r=Object.assign({},t.options);r.cwd=r.cwd||n;let a=o.spawn(t.command,i,r);return a&&a.pid?(a.stderr.on("data",(t=>this.outputChannel.append(l.string(t)?t:t.toString(e)))),this._serverProcess=a,this._isDetached=!!r.detached,Promise.resolve({reader:new f.StreamMessageReader(a.stdout),writer:new f.StreamMessageWriter(a.stdin)})):Promise.reject(`Launching server using command ${t.command} failed.`)}return Promise.reject(new Error("Unsupported server configuration "+JSON.stringify(a,null,4)))}))}_getRuntimePath(e,t){if(a.isAbsolute(e))return e;const n=this._mainGetRootPath();if(void 0!==n){const t=a.join(n,e);if(s.existsSync(t))return t}if(void 0!==t){const n=a.join(t,e);if(s.existsSync(n))return n}return e}_mainGetRootPath(){let e=u.workspace.workspaceFolders;if(!e||0===e.length)return;let t=e[0];return"file"===t.uri.scheme?t.uri.fsPath:void 0}_getServerWorkingDir(e){let t=e&&e.cwd;return t||(t=this.clientOptions.workspaceFolder?this.clientOptions.workspaceFolder.uri.fsPath:this._mainGetRootPath()),t?new Promise((e=>{s.lstat(t,((n,i)=>{e(!n&&i.isDirectory()?t:void 0)}))})):Promise.resolve(void 0)}getLocale(){const e=process.env.VSCODE_NLS_CONFIG;if(void 0===e)return"en";let t;try{t=JSON.parse(e)}catch(e){}return void 0===t||"string"!=typeof t.locale?"en":t.locale}}t.LanguageClient=b,t.SettingMonitor=class{constructor(e,t){this._client=e,this._setting=t,this._listeners=[]}start(){return u.workspace.onDidChangeConfiguration(this.onDidChangeConfiguration,this,this._listeners),this.onDidChangeConfiguration(),new u.Disposable((()=>{this._client.needsStop()&&this._client.stop()}))}onDidChangeConfiguration(){let e=this._setting.indexOf("."),t=e>=0?this._setting.substr(0,e):this._setting,n=e>=0?this._setting.substr(e+1):void 0,i=n?u.workspace.getConfiguration(t).get(n,!1):u.workspace.getConfiguration(t);i&&this._client.needsStart()?this._client.start():!i&&this._client.needsStop()&&this._client.stop()}}},468:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.terminate=void 0;const i=n(2081),r=n(1017),o="win32"===process.platform,s="darwin"===process.platform,a="linux"===process.platform;t.terminate=function(e,t){if(o)try{let n={stdio:["pipe","pipe","ignore"]};return t&&(n.cwd=t),i.execFileSync("taskkill",["/T","/F","/PID",e.pid.toString()],n),!0}catch(e){return!1}else{if(!a&&!s)return e.kill("SIGKILL"),!0;try{var n=r.join(__dirname,"terminateProcess.sh");return!i.spawnSync(n,[e.pid.toString()]).error}catch(e){return!1}}}},165:(e,t,n)=>{"use strict";e.exports=n(186)},9372:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.LSPErrorCodes=t.createProtocolConnection=void 0,r(n(39),t),r(n(4767),t),r(n(8599),t),r(n(6525),t);var o,s=n(2798);Object.defineProperty(t,"createProtocolConnection",{enumerable:!0,get:function(){return s.createProtocolConnection}}),(o=t.LSPErrorCodes||(t.LSPErrorCodes={})).lspReservedErrorRangeStart=-32899,o.ContentModified=-32801,o.RequestCancelled=-32800,o.lspReservedErrorRangeEnd=-32800},2798:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createProtocolConnection=void 0;const i=n(39);t.createProtocolConnection=function(e,t,n,r){return i.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),i.createMessageConnection(e,t,n,r)}},8599:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProtocolNotificationType=t.ProtocolNotificationType0=t.ProtocolRequestType=t.ProtocolRequestType0=t.RegistrationType=void 0;const i=n(39);t.RegistrationType=class{constructor(e){this.method=e}};class r extends i.RequestType0{constructor(e){super(e)}}t.ProtocolRequestType0=r;class o extends i.RequestType{constructor(e){super(e,i.ParameterStructures.byName)}}t.ProtocolRequestType=o;class s extends i.NotificationType0{constructor(e){super(e)}}t.ProtocolNotificationType0=s;class a extends i.NotificationType{constructor(e){super(e,i.ParameterStructures.byName)}}t.ProtocolNotificationType=a},4434:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CallHierarchyOutgoingCallsRequest=t.CallHierarchyIncomingCallsRequest=t.CallHierarchyPrepareRequest=void 0;const i=n(8599);var r,o,s;(s=t.CallHierarchyPrepareRequest||(t.CallHierarchyPrepareRequest={})).method="textDocument/prepareCallHierarchy",s.type=new i.ProtocolRequestType(s.method),(o=t.CallHierarchyIncomingCallsRequest||(t.CallHierarchyIncomingCallsRequest={})).method="callHierarchy/incomingCalls",o.type=new i.ProtocolRequestType(o.method),(r=t.CallHierarchyOutgoingCallsRequest||(t.CallHierarchyOutgoingCallsRequest={})).method="callHierarchy/outgoingCalls",r.type=new i.ProtocolRequestType(r.method)},7908:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorPresentationRequest=t.DocumentColorRequest=void 0;const i=n(8599);var r;(r=t.DocumentColorRequest||(t.DocumentColorRequest={})).method="textDocument/documentColor",r.type=new i.ProtocolRequestType(r.method),(t.ColorPresentationRequest||(t.ColorPresentationRequest={})).type=new i.ProtocolRequestType("textDocument/colorPresentation")},5442:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConfigurationRequest=void 0;const i=n(8599);(t.ConfigurationRequest||(t.ConfigurationRequest={})).type=new i.ProtocolRequestType("workspace/configuration")},7210:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeclarationRequest=void 0;const i=n(8599);var r;(r=t.DeclarationRequest||(t.DeclarationRequest={})).method="textDocument/declaration",r.type=new i.ProtocolRequestType(r.method)},6190:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WillDeleteFilesRequest=t.DidDeleteFilesNotification=t.DidRenameFilesNotification=t.WillRenameFilesRequest=t.DidCreateFilesNotification=t.WillCreateFilesRequest=t.FileOperationPatternKind=void 0;const i=n(8599);var r,o,s,a,c,u,l;(l=t.FileOperationPatternKind||(t.FileOperationPatternKind={})).file="file",l.folder="folder",(u=t.WillCreateFilesRequest||(t.WillCreateFilesRequest={})).method="workspace/willCreateFiles",u.type=new i.ProtocolRequestType(u.method),(c=t.DidCreateFilesNotification||(t.DidCreateFilesNotification={})).method="workspace/didCreateFiles",c.type=new i.ProtocolNotificationType(c.method),(a=t.WillRenameFilesRequest||(t.WillRenameFilesRequest={})).method="workspace/willRenameFiles",a.type=new i.ProtocolRequestType(a.method),(s=t.DidRenameFilesNotification||(t.DidRenameFilesNotification={})).method="workspace/didRenameFiles",s.type=new i.ProtocolNotificationType(s.method),(o=t.DidDeleteFilesNotification||(t.DidDeleteFilesNotification={})).method="workspace/didDeleteFiles",o.type=new i.ProtocolNotificationType(o.method),(r=t.WillDeleteFilesRequest||(t.WillDeleteFilesRequest={})).method="workspace/willDeleteFiles",r.type=new i.ProtocolRequestType(r.method)},7029:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FoldingRangeRequest=t.FoldingRangeKind=void 0;const i=n(8599);var r,o;(o=t.FoldingRangeKind||(t.FoldingRangeKind={})).Comment="comment",o.Imports="imports",o.Region="region",(r=t.FoldingRangeRequest||(t.FoldingRangeRequest={})).method="textDocument/foldingRange",r.type=new i.ProtocolRequestType(r.method)},9380:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ImplementationRequest=void 0;const i=n(8599);var r;(r=t.ImplementationRequest||(t.ImplementationRequest={})).method="textDocument/implementation",r.type=new i.ProtocolRequestType(r.method)},6525:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentLinkRequest=t.CodeLensRefreshRequest=t.CodeLensResolveRequest=t.CodeLensRequest=t.WorkspaceSymbolRequest=t.CodeActionResolveRequest=t.CodeActionRequest=t.DocumentSymbolRequest=t.DocumentHighlightRequest=t.ReferencesRequest=t.DefinitionRequest=t.SignatureHelpRequest=t.SignatureHelpTriggerKind=t.HoverRequest=t.CompletionResolveRequest=t.CompletionRequest=t.CompletionTriggerKind=t.PublishDiagnosticsNotification=t.WatchKind=t.FileChangeType=t.DidChangeWatchedFilesNotification=t.WillSaveTextDocumentWaitUntilRequest=t.WillSaveTextDocumentNotification=t.TextDocumentSaveReason=t.DidSaveTextDocumentNotification=t.DidCloseTextDocumentNotification=t.DidChangeTextDocumentNotification=t.TextDocumentContentChangeEvent=t.DidOpenTextDocumentNotification=t.TextDocumentSyncKind=t.TelemetryEventNotification=t.LogMessageNotification=t.ShowMessageRequest=t.ShowMessageNotification=t.MessageType=t.DidChangeConfigurationNotification=t.ExitNotification=t.ShutdownRequest=t.InitializedNotification=t.InitializeError=t.InitializeRequest=t.WorkDoneProgressOptions=t.TextDocumentRegistrationOptions=t.StaticRegistrationOptions=t.FailureHandlingKind=t.ResourceOperationKind=t.UnregistrationRequest=t.RegistrationRequest=t.DocumentSelector=t.DocumentFilter=void 0,t.MonikerRequest=t.MonikerKind=t.UniquenessLevel=t.WillDeleteFilesRequest=t.DidDeleteFilesNotification=t.WillRenameFilesRequest=t.DidRenameFilesNotification=t.WillCreateFilesRequest=t.DidCreateFilesNotification=t.FileOperationPatternKind=t.LinkedEditingRangeRequest=t.ShowDocumentRequest=t.SemanticTokensRegistrationType=t.SemanticTokensRefreshRequest=t.SemanticTokensRangeRequest=t.SemanticTokensDeltaRequest=t.SemanticTokensRequest=t.TokenFormat=t.SemanticTokens=t.SemanticTokenModifiers=t.SemanticTokenTypes=t.CallHierarchyPrepareRequest=t.CallHierarchyOutgoingCallsRequest=t.CallHierarchyIncomingCallsRequest=t.WorkDoneProgressCancelNotification=t.WorkDoneProgressCreateRequest=t.WorkDoneProgress=t.SelectionRangeRequest=t.DeclarationRequest=t.FoldingRangeRequest=t.ColorPresentationRequest=t.DocumentColorRequest=t.ConfigurationRequest=t.DidChangeWorkspaceFoldersNotification=t.WorkspaceFoldersRequest=t.TypeDefinitionRequest=t.ImplementationRequest=t.ApplyWorkspaceEditRequest=t.ExecuteCommandRequest=t.PrepareRenameRequest=t.RenameRequest=t.PrepareSupportDefaultBehavior=t.DocumentOnTypeFormattingRequest=t.DocumentRangeFormattingRequest=t.DocumentFormattingRequest=t.DocumentLinkResolveRequest=void 0;const i=n(2523),r=n(8599),o=n(9380);Object.defineProperty(t,"ImplementationRequest",{enumerable:!0,get:function(){return o.ImplementationRequest}});const s=n(8642);Object.defineProperty(t,"TypeDefinitionRequest",{enumerable:!0,get:function(){return s.TypeDefinitionRequest}});const a=n(3699);Object.defineProperty(t,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return a.WorkspaceFoldersRequest}}),Object.defineProperty(t,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return a.DidChangeWorkspaceFoldersNotification}});const c=n(5442);Object.defineProperty(t,"ConfigurationRequest",{enumerable:!0,get:function(){return c.ConfigurationRequest}});const u=n(7908);Object.defineProperty(t,"DocumentColorRequest",{enumerable:!0,get:function(){return u.DocumentColorRequest}}),Object.defineProperty(t,"ColorPresentationRequest",{enumerable:!0,get:function(){return u.ColorPresentationRequest}});const l=n(7029);Object.defineProperty(t,"FoldingRangeRequest",{enumerable:!0,get:function(){return l.FoldingRangeRequest}});const h=n(7210);Object.defineProperty(t,"DeclarationRequest",{enumerable:!0,get:function(){return h.DeclarationRequest}});const d=n(2392);Object.defineProperty(t,"SelectionRangeRequest",{enumerable:!0,get:function(){return d.SelectionRangeRequest}});const p=n(7895);Object.defineProperty(t,"WorkDoneProgress",{enumerable:!0,get:function(){return p.WorkDoneProgress}}),Object.defineProperty(t,"WorkDoneProgressCreateRequest",{enumerable:!0,get:function(){return p.WorkDoneProgressCreateRequest}}),Object.defineProperty(t,"WorkDoneProgressCancelNotification",{enumerable:!0,get:function(){return p.WorkDoneProgressCancelNotification}});const f=n(4434);Object.defineProperty(t,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return f.CallHierarchyIncomingCallsRequest}}),Object.defineProperty(t,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return f.CallHierarchyOutgoingCallsRequest}}),Object.defineProperty(t,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return f.CallHierarchyPrepareRequest}});const g=n(8489);Object.defineProperty(t,"SemanticTokenTypes",{enumerable:!0,get:function(){return g.SemanticTokenTypes}}),Object.defineProperty(t,"SemanticTokenModifiers",{enumerable:!0,get:function(){return g.SemanticTokenModifiers}}),Object.defineProperty(t,"SemanticTokens",{enumerable:!0,get:function(){return g.SemanticTokens}}),Object.defineProperty(t,"TokenFormat",{enumerable:!0,get:function(){return g.TokenFormat}}),Object.defineProperty(t,"SemanticTokensRequest",{enumerable:!0,get:function(){return g.SemanticTokensRequest}}),Object.defineProperty(t,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return g.SemanticTokensDeltaRequest}}),Object.defineProperty(t,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return g.SemanticTokensRangeRequest}}),Object.defineProperty(t,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return g.SemanticTokensRefreshRequest}}),Object.defineProperty(t,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return g.SemanticTokensRegistrationType}});const m=n(1541);Object.defineProperty(t,"ShowDocumentRequest",{enumerable:!0,get:function(){return m.ShowDocumentRequest}});const y=n(527);Object.defineProperty(t,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return y.LinkedEditingRangeRequest}});const v=n(6190);Object.defineProperty(t,"FileOperationPatternKind",{enumerable:!0,get:function(){return v.FileOperationPatternKind}}),Object.defineProperty(t,"DidCreateFilesNotification",{enumerable:!0,get:function(){return v.DidCreateFilesNotification}}),Object.defineProperty(t,"WillCreateFilesRequest",{enumerable:!0,get:function(){return v.WillCreateFilesRequest}}),Object.defineProperty(t,"DidRenameFilesNotification",{enumerable:!0,get:function(){return v.DidRenameFilesNotification}}),Object.defineProperty(t,"WillRenameFilesRequest",{enumerable:!0,get:function(){return v.WillRenameFilesRequest}}),Object.defineProperty(t,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return v.DidDeleteFilesNotification}}),Object.defineProperty(t,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return v.WillDeleteFilesRequest}});const C=n(1964);var S,b,E,w,D,x,_,T,k,F,A,R,O,P,M,N,I,L,j,B,q,U,W,$,K,z,V,H,G,J,X,Y,Q,Z,ee,te,ne,ie,re,oe;Object.defineProperty(t,"UniquenessLevel",{enumerable:!0,get:function(){return C.UniquenessLevel}}),Object.defineProperty(t,"MonikerKind",{enumerable:!0,get:function(){return C.MonikerKind}}),Object.defineProperty(t,"MonikerRequest",{enumerable:!0,get:function(){return C.MonikerRequest}}),function(e){e.is=function(e){const t=e;return i.string(t.language)||i.string(t.scheme)||i.string(t.pattern)}}(S=t.DocumentFilter||(t.DocumentFilter={})),function(e){e.is=function(e){if(!Array.isArray(e))return!1;for(let t of e)if(!i.string(t)&&!S.is(t))return!1;return!0}}(b=t.DocumentSelector||(t.DocumentSelector={})),(t.RegistrationRequest||(t.RegistrationRequest={})).type=new r.ProtocolRequestType("client/registerCapability"),(t.UnregistrationRequest||(t.UnregistrationRequest={})).type=new r.ProtocolRequestType("client/unregisterCapability"),(oe=t.ResourceOperationKind||(t.ResourceOperationKind={})).Create="create",oe.Rename="rename",oe.Delete="delete",(re=t.FailureHandlingKind||(t.FailureHandlingKind={})).Abort="abort",re.Transactional="transactional",re.TextOnlyTransactional="textOnlyTransactional",re.Undo="undo",(t.StaticRegistrationOptions||(t.StaticRegistrationOptions={})).hasId=function(e){const t=e;return t&&i.string(t.id)&&t.id.length>0},(t.TextDocumentRegistrationOptions||(t.TextDocumentRegistrationOptions={})).is=function(e){const t=e;return t&&(null===t.documentSelector||b.is(t.documentSelector))},(ie=t.WorkDoneProgressOptions||(t.WorkDoneProgressOptions={})).is=function(e){const t=e;return i.objectLiteral(t)&&(void 0===t.workDoneProgress||i.boolean(t.workDoneProgress))},ie.hasWorkDoneProgress=function(e){const t=e;return t&&i.boolean(t.workDoneProgress)},(t.InitializeRequest||(t.InitializeRequest={})).type=new r.ProtocolRequestType("initialize"),(t.InitializeError||(t.InitializeError={})).unknownProtocolVersion=1,(t.InitializedNotification||(t.InitializedNotification={})).type=new r.ProtocolNotificationType("initialized"),(t.ShutdownRequest||(t.ShutdownRequest={})).type=new r.ProtocolRequestType0("shutdown"),(t.ExitNotification||(t.ExitNotification={})).type=new r.ProtocolNotificationType0("exit"),(t.DidChangeConfigurationNotification||(t.DidChangeConfigurationNotification={})).type=new r.ProtocolNotificationType("workspace/didChangeConfiguration"),(ne=t.MessageType||(t.MessageType={})).Error=1,ne.Warning=2,ne.Info=3,ne.Log=4,(t.ShowMessageNotification||(t.ShowMessageNotification={})).type=new r.ProtocolNotificationType("window/showMessage"),(t.ShowMessageRequest||(t.ShowMessageRequest={})).type=new r.ProtocolRequestType("window/showMessageRequest"),(t.LogMessageNotification||(t.LogMessageNotification={})).type=new r.ProtocolNotificationType("window/logMessage"),(t.TelemetryEventNotification||(t.TelemetryEventNotification={})).type=new r.ProtocolNotificationType("telemetry/event"),(te=t.TextDocumentSyncKind||(t.TextDocumentSyncKind={})).None=0,te.Full=1,te.Incremental=2,(ee=t.DidOpenTextDocumentNotification||(t.DidOpenTextDocumentNotification={})).method="textDocument/didOpen",ee.type=new r.ProtocolNotificationType(ee.method),(Z=t.TextDocumentContentChangeEvent||(t.TextDocumentContentChangeEvent={})).isIncremental=function(e){let t=e;return null!=t&&"string"==typeof t.text&&void 0!==t.range&&(void 0===t.rangeLength||"number"==typeof t.rangeLength)},Z.isFull=function(e){let t=e;return null!=t&&"string"==typeof t.text&&void 0===t.range&&void 0===t.rangeLength},(Q=t.DidChangeTextDocumentNotification||(t.DidChangeTextDocumentNotification={})).method="textDocument/didChange",Q.type=new r.ProtocolNotificationType(Q.method),(Y=t.DidCloseTextDocumentNotification||(t.DidCloseTextDocumentNotification={})).method="textDocument/didClose",Y.type=new r.ProtocolNotificationType(Y.method),(X=t.DidSaveTextDocumentNotification||(t.DidSaveTextDocumentNotification={})).method="textDocument/didSave",X.type=new r.ProtocolNotificationType(X.method),(J=t.TextDocumentSaveReason||(t.TextDocumentSaveReason={})).Manual=1,J.AfterDelay=2,J.FocusOut=3,(G=t.WillSaveTextDocumentNotification||(t.WillSaveTextDocumentNotification={})).method="textDocument/willSave",G.type=new r.ProtocolNotificationType(G.method),(H=t.WillSaveTextDocumentWaitUntilRequest||(t.WillSaveTextDocumentWaitUntilRequest={})).method="textDocument/willSaveWaitUntil",H.type=new r.ProtocolRequestType(H.method),(t.DidChangeWatchedFilesNotification||(t.DidChangeWatchedFilesNotification={})).type=new r.ProtocolNotificationType("workspace/didChangeWatchedFiles"),(V=t.FileChangeType||(t.FileChangeType={})).Created=1,V.Changed=2,V.Deleted=3,(z=t.WatchKind||(t.WatchKind={})).Create=1,z.Change=2,z.Delete=4,(t.PublishDiagnosticsNotification||(t.PublishDiagnosticsNotification={})).type=new r.ProtocolNotificationType("textDocument/publishDiagnostics"),(K=t.CompletionTriggerKind||(t.CompletionTriggerKind={})).Invoked=1,K.TriggerCharacter=2,K.TriggerForIncompleteCompletions=3,($=t.CompletionRequest||(t.CompletionRequest={})).method="textDocument/completion",$.type=new r.ProtocolRequestType($.method),(W=t.CompletionResolveRequest||(t.CompletionResolveRequest={})).method="completionItem/resolve",W.type=new r.ProtocolRequestType(W.method),(U=t.HoverRequest||(t.HoverRequest={})).method="textDocument/hover",U.type=new r.ProtocolRequestType(U.method),(q=t.SignatureHelpTriggerKind||(t.SignatureHelpTriggerKind={})).Invoked=1,q.TriggerCharacter=2,q.ContentChange=3,(B=t.SignatureHelpRequest||(t.SignatureHelpRequest={})).method="textDocument/signatureHelp",B.type=new r.ProtocolRequestType(B.method),(j=t.DefinitionRequest||(t.DefinitionRequest={})).method="textDocument/definition",j.type=new r.ProtocolRequestType(j.method),(L=t.ReferencesRequest||(t.ReferencesRequest={})).method="textDocument/references",L.type=new r.ProtocolRequestType(L.method),(I=t.DocumentHighlightRequest||(t.DocumentHighlightRequest={})).method="textDocument/documentHighlight",I.type=new r.ProtocolRequestType(I.method),(N=t.DocumentSymbolRequest||(t.DocumentSymbolRequest={})).method="textDocument/documentSymbol",N.type=new r.ProtocolRequestType(N.method),(M=t.CodeActionRequest||(t.CodeActionRequest={})).method="textDocument/codeAction",M.type=new r.ProtocolRequestType(M.method),(P=t.CodeActionResolveRequest||(t.CodeActionResolveRequest={})).method="codeAction/resolve",P.type=new r.ProtocolRequestType(P.method),(O=t.WorkspaceSymbolRequest||(t.WorkspaceSymbolRequest={})).method="workspace/symbol",O.type=new r.ProtocolRequestType(O.method),(R=t.CodeLensRequest||(t.CodeLensRequest={})).method="textDocument/codeLens",R.type=new r.ProtocolRequestType(R.method),(A=t.CodeLensResolveRequest||(t.CodeLensResolveRequest={})).method="codeLens/resolve",A.type=new r.ProtocolRequestType(A.method),(F=t.CodeLensRefreshRequest||(t.CodeLensRefreshRequest={})).method="workspace/codeLens/refresh",F.type=new r.ProtocolRequestType0(F.method),(k=t.DocumentLinkRequest||(t.DocumentLinkRequest={})).method="textDocument/documentLink",k.type=new r.ProtocolRequestType(k.method),(T=t.DocumentLinkResolveRequest||(t.DocumentLinkResolveRequest={})).method="documentLink/resolve",T.type=new r.ProtocolRequestType(T.method),(_=t.DocumentFormattingRequest||(t.DocumentFormattingRequest={})).method="textDocument/formatting",_.type=new r.ProtocolRequestType(_.method),(x=t.DocumentRangeFormattingRequest||(t.DocumentRangeFormattingRequest={})).method="textDocument/rangeFormatting",x.type=new r.ProtocolRequestType(x.method),(D=t.DocumentOnTypeFormattingRequest||(t.DocumentOnTypeFormattingRequest={})).method="textDocument/onTypeFormatting",D.type=new r.ProtocolRequestType(D.method),(t.PrepareSupportDefaultBehavior||(t.PrepareSupportDefaultBehavior={})).Identifier=1,(w=t.RenameRequest||(t.RenameRequest={})).method="textDocument/rename",w.type=new r.ProtocolRequestType(w.method),(E=t.PrepareRenameRequest||(t.PrepareRenameRequest={})).method="textDocument/prepareRename",E.type=new r.ProtocolRequestType(E.method),(t.ExecuteCommandRequest||(t.ExecuteCommandRequest={})).type=new r.ProtocolRequestType("workspace/executeCommand"),(t.ApplyWorkspaceEditRequest||(t.ApplyWorkspaceEditRequest={})).type=new r.ProtocolRequestType("workspace/applyEdit")},527:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LinkedEditingRangeRequest=void 0;const i=n(8599);var r;(r=t.LinkedEditingRangeRequest||(t.LinkedEditingRangeRequest={})).method="textDocument/linkedEditingRange",r.type=new i.ProtocolRequestType(r.method)},1964:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MonikerRequest=t.MonikerKind=t.UniquenessLevel=void 0;const i=n(8599);var r,o,s;(s=t.UniquenessLevel||(t.UniquenessLevel={})).document="document",s.project="project",s.group="group",s.scheme="scheme",s.global="global",(o=t.MonikerKind||(t.MonikerKind={})).import="import",o.export="export",o.local="local",(r=t.MonikerRequest||(t.MonikerRequest={})).method="textDocument/moniker",r.type=new i.ProtocolRequestType(r.method)},7895:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WorkDoneProgressCancelNotification=t.WorkDoneProgressCreateRequest=t.WorkDoneProgress=void 0;const i=n(39),r=n(8599);var o;(o=t.WorkDoneProgress||(t.WorkDoneProgress={})).type=new i.ProgressType,o.is=function(e){return e===o.type},(t.WorkDoneProgressCreateRequest||(t.WorkDoneProgressCreateRequest={})).type=new r.ProtocolRequestType("window/workDoneProgress/create"),(t.WorkDoneProgressCancelNotification||(t.WorkDoneProgressCancelNotification={})).type=new r.ProtocolNotificationType("window/workDoneProgress/cancel")},2392:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionRangeRequest=void 0;const i=n(8599);var r;(r=t.SelectionRangeRequest||(t.SelectionRangeRequest={})).method="textDocument/selectionRange",r.type=new i.ProtocolRequestType(r.method)},8489:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SemanticTokensRefreshRequest=t.SemanticTokensRangeRequest=t.SemanticTokensDeltaRequest=t.SemanticTokensRequest=t.SemanticTokensRegistrationType=t.TokenFormat=t.SemanticTokens=t.SemanticTokenModifiers=t.SemanticTokenTypes=void 0;const i=n(8599);var r,o,s,a,c,u,l;(l=t.SemanticTokenTypes||(t.SemanticTokenTypes={})).namespace="namespace",l.type="type",l.class="class",l.enum="enum",l.interface="interface",l.struct="struct",l.typeParameter="typeParameter",l.parameter="parameter",l.variable="variable",l.property="property",l.enumMember="enumMember",l.event="event",l.function="function",l.method="method",l.macro="macro",l.keyword="keyword",l.modifier="modifier",l.comment="comment",l.string="string",l.number="number",l.regexp="regexp",l.operator="operator",(u=t.SemanticTokenModifiers||(t.SemanticTokenModifiers={})).declaration="declaration",u.definition="definition",u.readonly="readonly",u.static="static",u.deprecated="deprecated",u.abstract="abstract",u.async="async",u.modification="modification",u.documentation="documentation",u.defaultLibrary="defaultLibrary",(t.SemanticTokens||(t.SemanticTokens={})).is=function(e){const t=e;return void 0!==t&&(void 0===t.resultId||"string"==typeof t.resultId)&&Array.isArray(t.data)&&(0===t.data.length||"number"==typeof t.data[0])},(t.TokenFormat||(t.TokenFormat={})).Relative="relative",(c=t.SemanticTokensRegistrationType||(t.SemanticTokensRegistrationType={})).method="textDocument/semanticTokens",c.type=new i.RegistrationType(c.method),(a=t.SemanticTokensRequest||(t.SemanticTokensRequest={})).method="textDocument/semanticTokens/full",a.type=new i.ProtocolRequestType(a.method),(s=t.SemanticTokensDeltaRequest||(t.SemanticTokensDeltaRequest={})).method="textDocument/semanticTokens/full/delta",s.type=new i.ProtocolRequestType(s.method),(o=t.SemanticTokensRangeRequest||(t.SemanticTokensRangeRequest={})).method="textDocument/semanticTokens/range",o.type=new i.ProtocolRequestType(o.method),(r=t.SemanticTokensRefreshRequest||(t.SemanticTokensRefreshRequest={})).method="workspace/semanticTokens/refresh",r.type=new i.ProtocolRequestType0(r.method)},1541:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ShowDocumentRequest=void 0;const i=n(8599);var r;(r=t.ShowDocumentRequest||(t.ShowDocumentRequest={})).method="window/showDocument",r.type=new i.ProtocolRequestType(r.method)},8642:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TypeDefinitionRequest=void 0;const i=n(8599);var r;(r=t.TypeDefinitionRequest||(t.TypeDefinitionRequest={})).method="textDocument/typeDefinition",r.type=new i.ProtocolRequestType(r.method)},3699:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DidChangeWorkspaceFoldersNotification=t.WorkspaceFoldersRequest=void 0;const i=n(8599);(t.WorkspaceFoldersRequest||(t.WorkspaceFoldersRequest={})).type=new i.ProtocolRequestType0("workspace/workspaceFolders"),(t.DidChangeWorkspaceFoldersNotification||(t.DidChangeWorkspaceFoldersNotification={})).type=new i.ProtocolNotificationType("workspace/didChangeWorkspaceFolders")},2523:(e,t)=>{"use strict";function n(e){return"string"==typeof e||e instanceof String}function i(e){return Array.isArray(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.objectLiteral=t.typedArray=t.stringArray=t.array=t.func=t.error=t.number=t.string=t.boolean=void 0,t.boolean=function(e){return!0===e||!1===e},t.string=n,t.number=function(e){return"number"==typeof e||e instanceof Number},t.error=function(e){return e instanceof Error},t.func=function(e){return"function"==typeof e},t.array=i,t.stringArray=function(e){return i(e)&&e.every((e=>n(e)))},t.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)},t.objectLiteral=function(e){return null!==e&&"object"==typeof e}},1747:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.createProtocolConnection=void 0;const o=n(1335);r(n(1335),t),r(n(9372),t),t.createProtocolConnection=function(e,t,n,i){return o.createMessageConnection(e,t,n,i)}},2570:(e,t,n)=>{"use strict";e.exports=n(1747)},4767:(e,t,n)=>{"use strict";var i,r,o,s,a,c,u,l,h,d,p,f,g,m,y,v,C,S,b,E,w,D,x,_,T,k;n.r(t),n.d(t,{AnnotatedTextEdit:()=>w,ChangeAnnotation:()=>b,ChangeAnnotationIdentifier:()=>E,CodeAction:()=>ee,CodeActionContext:()=>Z,CodeActionKind:()=>Q,CodeDescription:()=>y,CodeLens:()=>te,Color:()=>u,ColorInformation:()=>l,ColorPresentation:()=>h,Command:()=>C,CompletionItem:()=>q,CompletionItemKind:()=>N,CompletionItemTag:()=>L,CompletionList:()=>U,CreateFile:()=>x,DeleteFile:()=>T,Diagnostic:()=>v,DiagnosticRelatedInformation:()=>f,DiagnosticSeverity:()=>g,DiagnosticTag:()=>m,DocumentHighlight:()=>H,DocumentHighlightKind:()=>V,DocumentLink:()=>ie,DocumentSymbol:()=>Y,EOL:()=>ue,FoldingRange:()=>p,FoldingRangeKind:()=>d,FormattingOptions:()=>ne,Hover:()=>$,InsertReplaceEdit:()=>j,InsertTextFormat:()=>I,InsertTextMode:()=>B,Location:()=>a,LocationLink:()=>c,MarkedString:()=>W,MarkupContent:()=>M,MarkupKind:()=>P,OptionalVersionedTextDocumentIdentifier:()=>R,ParameterInformation:()=>K,Position:()=>o,Range:()=>s,RenameFile:()=>_,SelectionRange:()=>re,SignatureInformation:()=>z,SymbolInformation:()=>X,SymbolKind:()=>G,SymbolTag:()=>J,TextDocument:()=>ce,TextDocumentEdit:()=>D,TextDocumentIdentifier:()=>F,TextDocumentItem:()=>O,TextEdit:()=>S,VersionedTextDocumentIdentifier:()=>A,WorkspaceChange:()=>ae,WorkspaceEdit:()=>k,integer:()=>i,uinteger:()=>r}),function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647}(i||(i={})),function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647}(r||(r={})),function(e){e.create=function(e,t){return e===Number.MAX_VALUE&&(e=r.MAX_VALUE),t===Number.MAX_VALUE&&(t=r.MAX_VALUE),{line:e,character:t}},e.is=function(e){var t=e;return le.objectLiteral(t)&&le.uinteger(t.line)&&le.uinteger(t.character)}}(o||(o={})),function(e){e.create=function(e,t,n,i){if(le.uinteger(e)&&le.uinteger(t)&&le.uinteger(n)&&le.uinteger(i))return{start:o.create(e,t),end:o.create(n,i)};if(o.is(e)&&o.is(t))return{start:e,end:t};throw new Error("Range#create called with invalid arguments["+e+", "+t+", "+n+", "+i+"]")},e.is=function(e){var t=e;return le.objectLiteral(t)&&o.is(t.start)&&o.is(t.end)}}(s||(s={})),function(e){e.create=function(e,t){return{uri:e,range:t}},e.is=function(e){var t=e;return le.defined(t)&&s.is(t.range)&&(le.string(t.uri)||le.undefined(t.uri))}}(a||(a={})),function(e){e.create=function(e,t,n,i){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:i}},e.is=function(e){var t=e;return le.defined(t)&&s.is(t.targetRange)&&le.string(t.targetUri)&&(s.is(t.targetSelectionRange)||le.undefined(t.targetSelectionRange))&&(s.is(t.originSelectionRange)||le.undefined(t.originSelectionRange))}}(c||(c={})),function(e){e.create=function(e,t,n,i){return{red:e,green:t,blue:n,alpha:i}},e.is=function(e){var t=e;return le.numberRange(t.red,0,1)&&le.numberRange(t.green,0,1)&&le.numberRange(t.blue,0,1)&&le.numberRange(t.alpha,0,1)}}(u||(u={})),function(e){e.create=function(e,t){return{range:e,color:t}},e.is=function(e){var t=e;return s.is(t.range)&&u.is(t.color)}}(l||(l={})),function(e){e.create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},e.is=function(e){var t=e;return le.string(t.label)&&(le.undefined(t.textEdit)||S.is(t))&&(le.undefined(t.additionalTextEdits)||le.typedArray(t.additionalTextEdits,S.is))}}(h||(h={})),function(e){e.Comment="comment",e.Imports="imports",e.Region="region"}(d||(d={})),function(e){e.create=function(e,t,n,i,r){var o={startLine:e,endLine:t};return le.defined(n)&&(o.startCharacter=n),le.defined(i)&&(o.endCharacter=i),le.defined(r)&&(o.kind=r),o},e.is=function(e){var t=e;return le.uinteger(t.startLine)&&le.uinteger(t.startLine)&&(le.undefined(t.startCharacter)||le.uinteger(t.startCharacter))&&(le.undefined(t.endCharacter)||le.uinteger(t.endCharacter))&&(le.undefined(t.kind)||le.string(t.kind))}}(p||(p={})),function(e){e.create=function(e,t){return{location:e,message:t}},e.is=function(e){var t=e;return le.defined(t)&&a.is(t.location)&&le.string(t.message)}}(f||(f={})),function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4}(g||(g={})),function(e){e.Unnecessary=1,e.Deprecated=2}(m||(m={})),function(e){e.is=function(e){var t=e;return null!=t&&le.string(t.href)}}(y||(y={})),function(e){e.create=function(e,t,n,i,r,o){var s={range:e,message:t};return le.defined(n)&&(s.severity=n),le.defined(i)&&(s.code=i),le.defined(r)&&(s.source=r),le.defined(o)&&(s.relatedInformation=o),s},e.is=function(e){var t,n=e;return le.defined(n)&&s.is(n.range)&&le.string(n.message)&&(le.number(n.severity)||le.undefined(n.severity))&&(le.integer(n.code)||le.string(n.code)||le.undefined(n.code))&&(le.undefined(n.codeDescription)||le.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(le.string(n.source)||le.undefined(n.source))&&(le.undefined(n.relatedInformation)||le.typedArray(n.relatedInformation,f.is))}}(v||(v={})),function(e){e.create=function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var r={title:e,command:t};return le.defined(n)&&n.length>0&&(r.arguments=n),r},e.is=function(e){var t=e;return le.defined(t)&&le.string(t.title)&&le.string(t.command)}}(C||(C={})),function(e){e.replace=function(e,t){return{range:e,newText:t}},e.insert=function(e,t){return{range:{start:e,end:e},newText:t}},e.del=function(e){return{range:e,newText:""}},e.is=function(e){var t=e;return le.objectLiteral(t)&&le.string(t.newText)&&s.is(t.range)}}(S||(S={})),function(e){e.create=function(e,t,n){var i={label:e};return void 0!==t&&(i.needsConfirmation=t),void 0!==n&&(i.description=n),i},e.is=function(e){var t=e;return void 0!==t&&le.objectLiteral(t)&&le.string(t.label)&&(le.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(le.string(t.description)||void 0===t.description)}}(b||(b={})),function(e){e.is=function(e){return"string"==typeof e}}(E||(E={})),function(e){e.replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},e.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},e.del=function(e,t){return{range:e,newText:"",annotationId:t}},e.is=function(e){var t=e;return S.is(t)&&(b.is(t.annotationId)||E.is(t.annotationId))}}(w||(w={})),function(e){e.create=function(e,t){return{textDocument:e,edits:t}},e.is=function(e){var t=e;return le.defined(t)&&R.is(t.textDocument)&&Array.isArray(t.edits)}}(D||(D={})),function(e){e.create=function(e,t,n){var i={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(i.options=t),void 0!==n&&(i.annotationId=n),i},e.is=function(e){var t=e;return t&&"create"===t.kind&&le.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||le.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||le.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||E.is(t.annotationId))}}(x||(x={})),function(e){e.create=function(e,t,n,i){var r={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(r.options=n),void 0!==i&&(r.annotationId=i),r},e.is=function(e){var t=e;return t&&"rename"===t.kind&&le.string(t.oldUri)&&le.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||le.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||le.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||E.is(t.annotationId))}}(_||(_={})),function(e){e.create=function(e,t,n){var i={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(i.options=t),void 0!==n&&(i.annotationId=n),i},e.is=function(e){var t=e;return t&&"delete"===t.kind&&le.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||le.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||le.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||E.is(t.annotationId))}}(T||(T={})),function(e){e.is=function(e){var t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((function(e){return le.string(e.kind)?x.is(e)||_.is(e)||T.is(e):D.is(e)})))}}(k||(k={}));var F,A,R,O,P,M,N,I,L,j,B,q,U,W,$,K,z,V,H,G,J,X,Y,Q,Z,ee,te,ne,ie,re,oe=function(){function e(e,t){this.edits=e,this.changeAnnotations=t}return e.prototype.insert=function(e,t,n){var i,r;if(void 0===n?i=S.insert(e,t):E.is(n)?(r=n,i=w.insert(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(n),i=w.insert(e,t,r)),this.edits.push(i),void 0!==r)return r},e.prototype.replace=function(e,t,n){var i,r;if(void 0===n?i=S.replace(e,t):E.is(n)?(r=n,i=w.replace(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(n),i=w.replace(e,t,r)),this.edits.push(i),void 0!==r)return r},e.prototype.delete=function(e,t){var n,i;if(void 0===t?n=S.del(e):E.is(t)?(i=t,n=w.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(t),n=w.del(e,i)),this.edits.push(n),void 0!==i)return i},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(e){if(void 0===e)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),se=function(){function e(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(e,t){var n;if(E.is(e)?n=e:(n=this.nextId(),t=e),void 0!==this._annotations[n])throw new Error("Id "+n+" is already in use.");if(void 0===t)throw new Error("No annotation provided for id "+n);return this._annotations[n]=t,this._size++,n},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}(),ae=function(){function e(e){var t=this;this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new se(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((function(e){if(D.is(e)){var n=new oe(e.edits,t._changeAnnotations);t._textEditChanges[e.textDocument.uri]=n}}))):e.changes&&Object.keys(e.changes).forEach((function(n){var i=new oe(e.changes[n]);t._textEditChanges[n]=i}))):this._workspaceEdit={}}return Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(e){if(R.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var t={uri:e.uri,version:e.version};if(!(i=this._textEditChanges[t.uri])){var n={textDocument:t,edits:r=[]};this._workspaceEdit.documentChanges.push(n),i=new oe(r,this._changeAnnotations),this._textEditChanges[t.uri]=i}return i}if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var i;if(!(i=this._textEditChanges[e])){var r=[];this._workspaceEdit.changes[e]=r,i=new oe(r),this._textEditChanges[e]=i}return i},e.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new se,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var i,r,o;if(b.is(t)||E.is(t)?i=t:n=t,void 0===i?r=x.create(e,n):(o=E.is(i)?i:this._changeAnnotations.manage(i),r=x.create(e,n,o)),this._workspaceEdit.documentChanges.push(r),void 0!==o)return o},e.prototype.renameFile=function(e,t,n,i){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,o,s;if(b.is(n)||E.is(n)?r=n:i=n,void 0===r?o=_.create(e,t,i):(s=E.is(r)?r:this._changeAnnotations.manage(r),o=_.create(e,t,i,s)),this._workspaceEdit.documentChanges.push(o),void 0!==s)return s},e.prototype.deleteFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var i,r,o;if(b.is(t)||E.is(t)?i=t:n=t,void 0===i?r=T.create(e,n):(o=E.is(i)?i:this._changeAnnotations.manage(i),r=T.create(e,n,o)),this._workspaceEdit.documentChanges.push(r),void 0!==o)return o},e}();!function(e){e.create=function(e){return{uri:e}},e.is=function(e){var t=e;return le.defined(t)&&le.string(t.uri)}}(F||(F={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){var t=e;return le.defined(t)&&le.string(t.uri)&&le.integer(t.version)}}(A||(A={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){var t=e;return le.defined(t)&&le.string(t.uri)&&(null===t.version||le.integer(t.version))}}(R||(R={})),function(e){e.create=function(e,t,n,i){return{uri:e,languageId:t,version:n,text:i}},e.is=function(e){var t=e;return le.defined(t)&&le.string(t.uri)&&le.string(t.languageId)&&le.integer(t.version)&&le.string(t.text)}}(O||(O={})),function(e){e.PlainText="plaintext",e.Markdown="markdown"}(P||(P={})),function(e){e.is=function(t){var n=t;return n===e.PlainText||n===e.Markdown}}(P||(P={})),function(e){e.is=function(e){var t=e;return le.objectLiteral(e)&&P.is(t.kind)&&le.string(t.value)}}(M||(M={})),function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25}(N||(N={})),function(e){e.PlainText=1,e.Snippet=2}(I||(I={})),function(e){e.Deprecated=1}(L||(L={})),function(e){e.create=function(e,t,n){return{newText:e,insert:t,replace:n}},e.is=function(e){var t=e;return t&&le.string(t.newText)&&s.is(t.insert)&&s.is(t.replace)}}(j||(j={})),function(e){e.asIs=1,e.adjustIndentation=2}(B||(B={})),function(e){e.create=function(e){return{label:e}}}(q||(q={})),function(e){e.create=function(e,t){return{items:e||[],isIncomplete:!!t}}}(U||(U={})),function(e){e.fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},e.is=function(e){var t=e;return le.string(t)||le.objectLiteral(t)&&le.string(t.language)&&le.string(t.value)}}(W||(W={})),function(e){e.is=function(e){var t=e;return!!t&&le.objectLiteral(t)&&(M.is(t.contents)||W.is(t.contents)||le.typedArray(t.contents,W.is))&&(void 0===e.range||s.is(e.range))}}($||($={})),function(e){e.create=function(e,t){return t?{label:e,documentation:t}:{label:e}}}(K||(K={})),function(e){e.create=function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var r={label:e};return le.defined(t)&&(r.documentation=t),le.defined(n)?r.parameters=n:r.parameters=[],r}}(z||(z={})),function(e){e.Text=1,e.Read=2,e.Write=3}(V||(V={})),function(e){e.create=function(e,t){var n={range:e};return le.number(t)&&(n.kind=t),n}}(H||(H={})),function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26}(G||(G={})),function(e){e.Deprecated=1}(J||(J={})),function(e){e.create=function(e,t,n,i,r){var o={name:e,kind:t,location:{uri:i,range:n}};return r&&(o.containerName=r),o}}(X||(X={})),function(e){e.create=function(e,t,n,i,r,o){var s={name:e,detail:t,kind:n,range:i,selectionRange:r};return void 0!==o&&(s.children=o),s},e.is=function(e){var t=e;return t&&le.string(t.name)&&le.number(t.kind)&&s.is(t.range)&&s.is(t.selectionRange)&&(void 0===t.detail||le.string(t.detail))&&(void 0===t.deprecated||le.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))&&(void 0===t.tags||Array.isArray(t.tags))}}(Y||(Y={})),function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"}(Q||(Q={})),function(e){e.create=function(e,t){var n={diagnostics:e};return null!=t&&(n.only=t),n},e.is=function(e){var t=e;return le.defined(t)&&le.typedArray(t.diagnostics,v.is)&&(void 0===t.only||le.typedArray(t.only,le.string))}}(Z||(Z={})),function(e){e.create=function(e,t,n){var i={title:e},r=!0;return"string"==typeof t?(r=!1,i.kind=t):C.is(t)?i.command=t:i.edit=t,r&&void 0!==n&&(i.kind=n),i},e.is=function(e){var t=e;return t&&le.string(t.title)&&(void 0===t.diagnostics||le.typedArray(t.diagnostics,v.is))&&(void 0===t.kind||le.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||C.is(t.command))&&(void 0===t.isPreferred||le.boolean(t.isPreferred))&&(void 0===t.edit||k.is(t.edit))}}(ee||(ee={})),function(e){e.create=function(e,t){var n={range:e};return le.defined(t)&&(n.data=t),n},e.is=function(e){var t=e;return le.defined(t)&&s.is(t.range)&&(le.undefined(t.command)||C.is(t.command))}}(te||(te={})),function(e){e.create=function(e,t){return{tabSize:e,insertSpaces:t}},e.is=function(e){var t=e;return le.defined(t)&&le.uinteger(t.tabSize)&&le.boolean(t.insertSpaces)}}(ne||(ne={})),function(e){e.create=function(e,t,n){return{range:e,target:t,data:n}},e.is=function(e){var t=e;return le.defined(t)&&s.is(t.range)&&(le.undefined(t.target)||le.string(t.target))}}(ie||(ie={})),function(e){e.create=function(e,t){return{range:e,parent:t}},e.is=function(t){var n=t;return void 0!==n&&s.is(n.range)&&(void 0===n.parent||e.is(n.parent))}}(re||(re={}));var ce,ue=["\n","\r\n","\r"];!function(e){function t(e,n){if(e.length<=1)return e;var i=e.length/2|0,r=e.slice(0,i),o=e.slice(i);t(r,n),t(o,n);for(var s=0,a=0,c=0;s<r.length&&a<o.length;){var u=n(r[s],o[a]);e[c++]=u<=0?r[s++]:o[a++]}for(;s<r.length;)e[c++]=r[s++];for(;a<o.length;)e[c++]=o[a++];return e}e.create=function(e,t,n,i){return new he(e,t,n,i)},e.is=function(e){var t=e;return!!(le.defined(t)&&le.string(t.uri)&&(le.undefined(t.languageId)||le.string(t.languageId))&&le.uinteger(t.lineCount)&&le.func(t.getText)&&le.func(t.positionAt)&&le.func(t.offsetAt))},e.applyEdits=function(e,n){for(var i=e.getText(),r=t(n,(function(e,t){var n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n})),o=i.length,s=r.length-1;s>=0;s--){var a=r[s],c=e.offsetAt(a.range.start),u=e.offsetAt(a.range.end);if(!(u<=o))throw new Error("Overlapping edit");i=i.substring(0,c)+a.newText+i.substring(u,i.length),o=c}return i}}(ce||(ce={}));var le,he=function(){function e(e,t,n,i){this._uri=e,this._languageId=t,this._version=n,this._content=i,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(e){if(e){var t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content},e.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],t=this._content,n=!0,i=0;i<t.length;i++){n&&(e.push(i),n=!1);var r=t.charAt(i);n="\r"===r||"\n"===r,"\r"===r&&i+1<t.length&&"\n"===t.charAt(i+1)&&i++}n&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),n=0,i=t.length;if(0===i)return o.create(0,e);for(;n<i;){var r=Math.floor((n+i)/2);t[r]>e?i=r:n=r+1}var s=n-1;return o.create(s,e-t[s])},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var n=t[e.line],i=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,i),n)},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),e}();!function(e){var t=Object.prototype.toString;e.defined=function(e){return void 0!==e},e.undefined=function(e){return void 0===e},e.boolean=function(e){return!0===e||!1===e},e.string=function(e){return"[object String]"===t.call(e)},e.number=function(e){return"[object Number]"===t.call(e)},e.numberRange=function(e,n,i){return"[object Number]"===t.call(e)&&n<=e&&e<=i},e.integer=function(e){return"[object Number]"===t.call(e)&&-2147483648<=e&&e<=2147483647},e.uinteger=function(e){return"[object Number]"===t.call(e)&&0<=e&&e<=2147483647},e.func=function(e){return"[object Function]"===t.call(e)},e.objectLiteral=function(e){return null!==e&&"object"==typeof e},e.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)}}(le||(le={}))},355:(e,t,n)=>{"use strict";var i;n.r(t),n.d(t,{URI:()=>r,Utils:()=>o}),i=(()=>{var e={470:e=>{function t(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,i="",r=0,o=-1,s=0,a=0;a<=e.length;++a){if(a<e.length)n=e.charCodeAt(a);else{if(47===n)break;n=47}if(47===n){if(o===a-1||1===s);else if(o!==a-1&&2===s){if(i.length<2||2!==r||46!==i.charCodeAt(i.length-1)||46!==i.charCodeAt(i.length-2))if(i.length>2){var c=i.lastIndexOf("/");if(c!==i.length-1){-1===c?(i="",r=0):r=(i=i.slice(0,c)).length-1-i.lastIndexOf("/"),o=a,s=0;continue}}else if(2===i.length||1===i.length){i="",r=0,o=a,s=0;continue}t&&(i.length>0?i+="/..":i="..",r=2)}else i.length>0?i+="/"+e.slice(o+1,a):i=e.slice(o+1,a),r=a-o-1;o=a,s=0}else 46===n&&-1!==s?++s:s=-1}return i}var i={resolve:function(){for(var e,i="",r=!1,o=arguments.length-1;o>=-1&&!r;o--){var s;o>=0?s=arguments[o]:(void 0===e&&(e=process.cwd()),s=e),t(s),0!==s.length&&(i=s+"/"+i,r=47===s.charCodeAt(0))}return i=n(i,!r),r?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(e){if(t(e),0===e.length)return".";var i=47===e.charCodeAt(0),r=47===e.charCodeAt(e.length-1);return 0!==(e=n(e,!i)).length||i||(e="."),e.length>0&&r&&(e+="/"),i?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,n=0;n<arguments.length;++n){var r=arguments[n];t(r),r.length>0&&(void 0===e?e=r:e+="/"+r)}return void 0===e?".":i.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n)return"";if((e=i.resolve(e))===(n=i.resolve(n)))return"";for(var r=1;r<e.length&&47===e.charCodeAt(r);++r);for(var o=e.length,s=o-r,a=1;a<n.length&&47===n.charCodeAt(a);++a);for(var c=n.length-a,u=s<c?s:c,l=-1,h=0;h<=u;++h){if(h===u){if(c>u){if(47===n.charCodeAt(a+h))return n.slice(a+h+1);if(0===h)return n.slice(a+h)}else s>u&&(47===e.charCodeAt(r+h)?l=h:0===h&&(l=0));break}var d=e.charCodeAt(r+h);if(d!==n.charCodeAt(a+h))break;47===d&&(l=h)}var p="";for(h=r+l+1;h<=o;++h)h!==o&&47!==e.charCodeAt(h)||(0===p.length?p+="..":p+="/..");return p.length>0?p+n.slice(a+l):(a+=l,47===n.charCodeAt(a)&&++a,n.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),i=47===n,r=-1,o=!0,s=e.length-1;s>=1;--s)if(47===(n=e.charCodeAt(s))){if(!o){r=s;break}}else o=!1;return-1===r?i?"/":".":i&&1===r?"//":e.slice(0,r)},basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');t(e);var i,r=0,o=-1,s=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var a=n.length-1,c=-1;for(i=e.length-1;i>=0;--i){var u=e.charCodeAt(i);if(47===u){if(!s){r=i+1;break}}else-1===c&&(s=!1,c=i+1),a>=0&&(u===n.charCodeAt(a)?-1==--a&&(o=i):(a=-1,o=c))}return r===o?o=c:-1===o&&(o=e.length),e.slice(r,o)}for(i=e.length-1;i>=0;--i)if(47===e.charCodeAt(i)){if(!s){r=i+1;break}}else-1===o&&(s=!1,o=i+1);return-1===o?"":e.slice(r,o)},extname:function(e){t(e);for(var n=-1,i=0,r=-1,o=!0,s=0,a=e.length-1;a>=0;--a){var c=e.charCodeAt(a);if(47!==c)-1===r&&(o=!1,r=a+1),46===c?-1===n?n=a:1!==s&&(s=1):-1!==n&&(s=-1);else if(!o){i=a+1;break}}return-1===n||-1===r||0===s||1===s&&n===r-1&&n===i+1?"":e.slice(n,r)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,i=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+i:n+"/"+i:i}(0,e)},parse:function(e){t(e);var n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;var i,r=e.charCodeAt(0),o=47===r;o?(n.root="/",i=1):i=0;for(var s=-1,a=0,c=-1,u=!0,l=e.length-1,h=0;l>=i;--l)if(47!==(r=e.charCodeAt(l)))-1===c&&(u=!1,c=l+1),46===r?-1===s?s=l:1!==h&&(h=1):-1!==s&&(h=-1);else if(!u){a=l+1;break}return-1===s||-1===c||0===h||1===h&&s===c-1&&s===a+1?-1!==c&&(n.base=n.name=0===a&&o?e.slice(1,c):e.slice(a,c)):(0===a&&o?(n.name=e.slice(1,s),n.base=e.slice(1,c)):(n.name=e.slice(a,s),n.base=e.slice(a,c)),n.ext=e.slice(s,c)),a>0?n.dir=e.slice(0,a-1):o&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};i.posix=i,e.exports=i},447:(e,t,n)=>{var i;if(n.r(t),n.d(t,{URI:()=>g,Utils:()=>_}),"object"==typeof process)i="win32"===process.platform;else if("object"==typeof navigator){var r=navigator.userAgent;i=r.indexOf("Windows")>=0}var o,s,a=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=/^\w[\w\d+.-]*$/,u=/^\//,l=/^\/\//;function h(e,t){if(!e.scheme&&t)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'.concat(e.authority,'", path: "').concat(e.path,'", query: "').concat(e.query,'", fragment: "').concat(e.fragment,'"}'));if(e.scheme&&!c.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!u.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(l.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}var d="",p="/",f=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,g=function(){function e(e,t,n,i,r,o){void 0===o&&(o=!1),"object"==typeof e?(this.scheme=e.scheme||d,this.authority=e.authority||d,this.path=e.path||d,this.query=e.query||d,this.fragment=e.fragment||d):(this.scheme=function(e,t){return e||t?e:"file"}(e,o),this.authority=t||d,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==p&&(t=p+t):t=p}return t}(this.scheme,n||d),this.query=i||d,this.fragment=r||d,h(this,o))}return e.isUri=function(t){return t instanceof e||!!t&&"string"==typeof t.authority&&"string"==typeof t.fragment&&"string"==typeof t.path&&"string"==typeof t.query&&"string"==typeof t.scheme&&"string"==typeof t.fsPath&&"function"==typeof t.with&&"function"==typeof t.toString},Object.defineProperty(e.prototype,"fsPath",{get:function(){return b(this,!1)},enumerable:!1,configurable:!0}),e.prototype.with=function(e){if(!e)return this;var t=e.scheme,n=e.authority,i=e.path,r=e.query,o=e.fragment;return void 0===t?t=this.scheme:null===t&&(t=d),void 0===n?n=this.authority:null===n&&(n=d),void 0===i?i=this.path:null===i&&(i=d),void 0===r?r=this.query:null===r&&(r=d),void 0===o?o=this.fragment:null===o&&(o=d),t===this.scheme&&n===this.authority&&i===this.path&&r===this.query&&o===this.fragment?this:new y(t,n,i,r,o)},e.parse=function(e,t){void 0===t&&(t=!1);var n=f.exec(e);return n?new y(n[2]||d,x(n[4]||d),x(n[5]||d),x(n[7]||d),x(n[9]||d),t):new y(d,d,d,d,d)},e.file=function(e){var t=d;if(i&&(e=e.replace(/\\/g,p)),e[0]===p&&e[1]===p){var n=e.indexOf(p,2);-1===n?(t=e.substring(2),e=p):(t=e.substring(2,n),e=e.substring(n)||p)}return new y("file",t,e,d,d)},e.from=function(e){var t=new y(e.scheme,e.authority,e.path,e.query,e.fragment);return h(t,!0),t},e.prototype.toString=function(e){return void 0===e&&(e=!1),E(this,e)},e.prototype.toJSON=function(){return this},e.revive=function(t){if(t){if(t instanceof e)return t;var n=new y(t);return n._formatted=t.external,n._fsPath=t._sep===m?t.fsPath:null,n}return t},e}(),m=i?1:void 0,y=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._formatted=null,t._fsPath=null,t}return a(t,e),Object.defineProperty(t.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=b(this,!1)),this._fsPath},enumerable:!1,configurable:!0}),t.prototype.toString=function(e){return void 0===e&&(e=!1),e?E(this,!0):(this._formatted||(this._formatted=E(this,!1)),this._formatted)},t.prototype.toJSON=function(){var e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=m),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e},t}(g),v=((s={})[58]="%3A",s[47]="%2F",s[63]="%3F",s[35]="%23",s[91]="%5B",s[93]="%5D",s[64]="%40",s[33]="%21",s[36]="%24",s[38]="%26",s[39]="%27",s[40]="%28",s[41]="%29",s[42]="%2A",s[43]="%2B",s[44]="%2C",s[59]="%3B",s[61]="%3D",s[32]="%20",s);function C(e,t){for(var n=void 0,i=-1,r=0;r<e.length;r++){var o=e.charCodeAt(r);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o)-1!==i&&(n+=encodeURIComponent(e.substring(i,r)),i=-1),void 0!==n&&(n+=e.charAt(r));else{void 0===n&&(n=e.substr(0,r));var s=v[o];void 0!==s?(-1!==i&&(n+=encodeURIComponent(e.substring(i,r)),i=-1),n+=s):-1===i&&(i=r)}}return-1!==i&&(n+=encodeURIComponent(e.substring(i))),void 0!==n?n:e}function S(e){for(var t=void 0,n=0;n<e.length;n++){var i=e.charCodeAt(n);35===i||63===i?(void 0===t&&(t=e.substr(0,n)),t+=v[i]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function b(e,t){var n;return n=e.authority&&e.path.length>1&&"file"===e.scheme?"//".concat(e.authority).concat(e.path):47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,i&&(n=n.replace(/\//g,"\\")),n}function E(e,t){var n=t?S:C,i="",r=e.scheme,o=e.authority,s=e.path,a=e.query,c=e.fragment;if(r&&(i+=r,i+=":"),(o||"file"===r)&&(i+=p,i+=p),o){var u=o.indexOf("@");if(-1!==u){var l=o.substr(0,u);o=o.substr(u+1),-1===(u=l.indexOf(":"))?i+=n(l,!1):(i+=n(l.substr(0,u),!1),i+=":",i+=n(l.substr(u+1),!1)),i+="@"}-1===(u=(o=o.toLowerCase()).indexOf(":"))?i+=n(o,!1):(i+=n(o.substr(0,u),!1),i+=o.substr(u))}if(s){if(s.length>=3&&47===s.charCodeAt(0)&&58===s.charCodeAt(2))(h=s.charCodeAt(1))>=65&&h<=90&&(s="/".concat(String.fromCharCode(h+32),":").concat(s.substr(3)));else if(s.length>=2&&58===s.charCodeAt(1)){var h;(h=s.charCodeAt(0))>=65&&h<=90&&(s="".concat(String.fromCharCode(h+32),":").concat(s.substr(2)))}i+=n(s,!0)}return a&&(i+="?",i+=n(a,!1)),c&&(i+="#",i+=t?c:C(c,!1)),i}function w(e){try{return decodeURIComponent(e)}catch(t){return e.length>3?e.substr(0,3)+w(e.substr(3)):e}}var D=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function x(e){return e.match(D)?e.replace(D,(function(e){return w(e)})):e}var _,T=n(470),k=function(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))},F=T.posix||T;!function(e){e.joinPath=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return e.with({path:F.join.apply(F,k([e.path],t,!1))})},e.resolvePath=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=e.path||"/";return e.with({path:F.resolve.apply(F,k([i],t,!1))})},e.dirname=function(e){var t=F.dirname(e.path);return 1===t.length&&46===t.charCodeAt(0)?e:e.with({path:t})},e.basename=function(e){return F.basename(e.path)},e.extname=function(e){return F.extname(e.path)}}(_||(_={}))}},t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={exports:{}};return e[i](r,r.exports,n),r.exports}return n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n(447)})();const{URI:r,Utils:o}=i},8268:e=>{"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}},8006:(e,t,n)=>{"use strict";function i(e){var t=this;if(t instanceof i||(t=new i),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var n=0,r=arguments.length;n<r;n++)t.push(arguments[n]);return t}function r(e,t,n){var i=t===e.head?new a(n,null,t,e):new a(n,t,t.next,e);return null===i.next&&(e.tail=i),null===i.prev&&(e.head=i),e.length++,i}function o(e,t){e.tail=new a(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function s(e,t){e.head=new a(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function a(e,t,n,i){if(!(this instanceof a))return new a(e,t,n,i);this.list=i,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,n?(n.prev=this,this.next=n):this.next=null}e.exports=i,i.Node=a,i.create=i,i.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,n=e.prev;return t&&(t.prev=n),n&&(n.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=n),e.list.length--,e.next=null,e.prev=null,e.list=null,t},i.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},i.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},i.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)o(this,arguments[e]);return this.length},i.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)s(this,arguments[e]);return this.length},i.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},i.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},i.prototype.forEach=function(e,t){t=t||this;for(var n=this.head,i=0;null!==n;i++)e.call(t,n.value,i,this),n=n.next},i.prototype.forEachReverse=function(e,t){t=t||this;for(var n=this.tail,i=this.length-1;null!==n;i--)e.call(t,n.value,i,this),n=n.prev},i.prototype.get=function(e){for(var t=0,n=this.head;null!==n&&t<e;t++)n=n.next;if(t===e&&null!==n)return n.value},i.prototype.getReverse=function(e){for(var t=0,n=this.tail;null!==n&&t<e;t++)n=n.prev;if(t===e&&null!==n)return n.value},i.prototype.map=function(e,t){t=t||this;for(var n=new i,r=this.head;null!==r;)n.push(e.call(t,r.value,this)),r=r.next;return n},i.prototype.mapReverse=function(e,t){t=t||this;for(var n=new i,r=this.tail;null!==r;)n.push(e.call(t,r.value,this)),r=r.prev;return n},i.prototype.reduce=function(e,t){var n,i=this.head;if(arguments.length>1)n=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");i=this.head.next,n=this.head.value}for(var r=0;null!==i;r++)n=e(n,i.value,r),i=i.next;return n},i.prototype.reduceReverse=function(e,t){var n,i=this.tail;if(arguments.length>1)n=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");i=this.tail.prev,n=this.tail.value}for(var r=this.length-1;null!==i;r--)n=e(n,i.value,r),i=i.prev;return n},i.prototype.toArray=function(){for(var e=new Array(this.length),t=0,n=this.head;null!==n;t++)e[t]=n.value,n=n.next;return e},i.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,n=this.tail;null!==n;t++)e[t]=n.value,n=n.prev;return e},i.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new i;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var r=0,o=this.head;null!==o&&r<e;r++)o=o.next;for(;null!==o&&r<t;r++,o=o.next)n.push(o.value);return n},i.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new i;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var r=this.length,o=this.tail;null!==o&&r>t;r--)o=o.prev;for(;null!==o&&r>e;r--,o=o.prev)n.push(o.value);return n},i.prototype.splice=function(e,t,...n){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var i=0,o=this.head;null!==o&&i<e;i++)o=o.next;var s=[];for(i=0;o&&i<t;i++)s.push(o.value),o=this.removeNode(o);for(null===o&&(o=this.tail),o!==this.head&&o!==this.tail&&(o=o.prev),i=0;i<n.length;i++)o=r(this,o,n[i]);return s},i.prototype.reverse=function(){for(var e=this.head,t=this.tail,n=e;null!==n;n=n.prev){var i=n.prev;n.prev=n.next,n.next=i}return this.head=t,this.tail=e,this};try{n(8268)(i)}catch(e){}},6139:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isErrnoException=void 0;const n={string:!0,undefined:!0},i={number:!0,undefined:!0};t.isErrnoException=function(e){if(!e||"object"!=typeof e)return!1;const t=e;return"string"==typeof t.name&&"string"==typeof t.message&&typeof t.errno in i&&typeof t.code in n&&typeof t.path in n&&typeof t.stack in n}},2380:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fileExists=void 0;const i=n(3292),r=n(6139);t.fileExists=async function(e){try{return await(0,i.access)(e.fsPath),!0}catch(e){if(!(0,r.isErrnoException)(e)||"ENOENT"!==e.code)throw e;return!1}}},745:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.LogFileConnection=void 0,r(n(2131),t),r(n(4561),t),r(n(6139),t);var o=n(3282);Object.defineProperty(t,"LogFileConnection",{enumerable:!0,get:function(){return o.LogFileConnection}})},3282:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LogFileConnection=t.LogFile=void 0;const i=n(7147);class r{constructor(e){this.filename=e,this._buffer=[],this.pfh=i.promises.open(e,"a").then((e=>this.fh=e)).catch((e=>{console.error(this._error=e)}))}onReady(){return this.pfh.then((e=>!(!e||!this.fh))).catch((()=>!1))}getError(){return this._error}isReady(){return!!this.fh}log(e){return this._log("LOG",e),this}info(e){return this._log("INF",e),this}warn(e){return this._log("WRN",e),this}error(e){return this._log("ERR",e),this}close(){return this.fh=void 0,this.pfh.then((e=>e?.close())).catch((e=>console.error(e)))}_log(e,t){const n=`${(new Date).toISOString()} ${e}: `,i=" ".repeat(n.length),r=t.split("\n").join("\n"+i);this._buffer.push(`${n}${r}\n`),this.process()}process(){this._pending||(this._pending=this._processAsync())}async _processAsync(){const e=await this.pfh;for(let t=this._buffer;t.length;t=this._buffer){this._buffer=[];try{await(e?.writeFile(t.join("")))}catch(e){this._error=e}}this._pending=void 0}}t.LogFile=r,t.LogFileConnection=class{constructor(e){this.filename=e,this.onExitHandlers=[],this.console=new r(e)}onExit(e){this.onExitHandlers.push(e)}async close(){this.notifyOnExit(),await this.console.close()}notifyOnExit(){for(const e of this.onExitHandlers)try{e()}catch(e){console.error(e)}}}},4561:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uriToName=t.cleanUri=t.relativeToFile=t.relativeTo=t.toFileUri=t.toUri=t.isSupportedDoc=t.isSupportedUri=t.setOfSupportedSchemes=t.supportedSchemes=void 0;const i=n(355);function r(e){return!!e&&t.setOfSupportedSchemes.has(e.scheme)}t.supportedSchemes=["gist","file","sftp","untitled"],t.setOfSupportedSchemes=new Set(t.supportedSchemes),t.isSupportedUri=r,t.isSupportedDoc=function(e){return!!e&&!e.isClosed&&r(e.uri)};const o=/^[\w.-]{2,}:/;function s(e,t){const n=c(e),i=c(t);let r=0;for(r=0;r<n.length&&r<i.length&&n[r]===i[r];++r);return("../".repeat(n.length-r)+i.slice(r).join("/")).replace(/\/$/,"")}function a(e){return e.with({fragment:"",query:""})}function c(e){return a(e).toString().split("/").filter((e=>!!e))}t.toUri=function(e){return"string"==typeof e?i.URI.parse(e):e||void 0},t.toFileUri=function(e){return"string"==typeof e?o.test(e)?i.URI.parse(e):i.URI.file(e):e},t.relativeTo=s,t.relativeToFile=function(e,t){return s(i.Utils.dirname(e),t)},t.cleanUri=a,t.uriToName=function(e,t=2){return c(e).slice(-t).join("/")}},2131:(e,t)=>{"use strict";function n(e){return null!=e}Object.defineProperty(t,"__esModule",{value:!0}),t.setIfDefined=t.pick=t.capitalize=t.textToWords=t.escapeRegExp=t.mustBeDefined=t.isDefined=t.freqCount=t.uniqueFilter=t.unique=void 0,t.unique=function(e){return[...new Set(e)]},t.uniqueFilter=function(e){const t=new Set;return e?n=>{const i=e(n);return!t.has(i)&&(t.add(i),!0)}:e=>!t.has(e)&&(t.add(e),!0)},t.freqCount=function(e){const t=new Map;return e.forEach((e=>t.set(e,(t.get(e)||0)+1))),[...t.entries()]},t.isDefined=n,t.mustBeDefined=function(e){if(n(e))return e;throw new Error("Value must be defined.")},t.escapeRegExp=function(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")},t.textToWords=function(e){const t=/^[\p{L}\w'-]+$/u;return e.normalize("NFC").split(/(?<![\p{L}\w'-])(?=[\p{L}\w'-])|(?<=[\p{L}\w'-])(?![\p{L}\w'-])/gu).filter((e=>t.test(e)))},t.capitalize=function(e){return e.slice(0,1).toUpperCase()+e.slice(1)},t.pick=function(e,t){const n={};for(const i of t)n[i]=e[i];return n},t.setIfDefined=function(e,t,n){return void 0!==n&&(e[t]=n),e}},2453:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageBus=void 0;const i=n(568),r=n(3956);t.MessageBus=class{constructor(e,t=console){Object.defineProperty(this,"vsCodeApi",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"logger",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"listeners",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),this.vsCodeApi.onmessage=e=>this.respondToMessage(e)}listenFor(e,t){const n={fn:function(e){(0,r.isMessageOf)(e)&&t(e)},cmd:e,dispose:()=>{this.listeners.has(e)&&this.listeners.get(e).delete(n)}};return this.listeners.set(e,this.listeners.get(e)||new Set),this.listeners.get(e).add(n),n}postMessage(e){this.vsCodeApi.postMessage(e)}respondToMessage(e){const t=e.data;if(!(0,i.isMessage)(t))return void this.logger.error("Unknown message: %o",e);const n=this.listeners.get(t.command);if(n)for(const e of n)e.fn(t);else this.logger.error("Unhandled message: %o",e)}}},3956:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(568),t),r(n(2453),t)},568:(e,t)=>{"use strict";function n(e,t){return function(n){const i=n;return n.command===e&&t.reduce(((e,[t,n])=>e&&n(i[t])),!0)}}function i(e){return"object"==typeof e&&null!==e}function r(e){return"string"==typeof e}Object.defineProperty(t,"__esModule",{value:!0}),t.isMessageOf=t.isOpenLinkMessage=t.isSelectTabMessage=t.isSelectFolderMessage=t.isSelectFileMessage=t.isRequestConfigurationMessage=t.isEnableLocaleMessage=t.isEnableLanguageIdMessage=t.isConfigurationChangeMessage=t.isMessage=void 0,t.isMessage=function(e){return!!function(e){return!("object"!=typeof e||!e||!e.hasOwnProperty("command"))&&"string"==typeof e.command}(e)&&s(e)},t.isConfigurationChangeMessage=n("ConfigurationChangeMessage",[["value",i]]),t.isEnableLanguageIdMessage=n("EnableLanguageIdMessage",[["value",i]]),t.isEnableLocaleMessage=n("EnableLocaleMessage",[["value",i]]),t.isRequestConfigurationMessage=n("RequestConfigurationMessage",[]),t.isSelectFileMessage=n("SelectFileMessage",[["value",r]]),t.isSelectFolderMessage=n("SelectFolderMessage",[["value",r]]),t.isSelectTabMessage=n("SelectTabMessage",[["value",r]]),t.isOpenLinkMessage=n("OpenLinkMessage",[["value",i]]);const o={ConfigurationChangeMessage:t.isConfigurationChangeMessage,EnableLanguageIdMessage:t.isEnableLanguageIdMessage,EnableLocaleMessage:t.isEnableLocaleMessage,RequestConfigurationMessage:t.isRequestConfigurationMessage,SelectFileMessage:t.isSelectFileMessage,SelectFolderMessage:t.isSelectFolderMessage,SelectTabMessage:t.isSelectTabMessage,OpenLinkMessage:t.isOpenLinkMessage};function s(e){return(0,o[e.command])?.(e)??!1}t.isMessageOf=s},3312:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(3956),t)},9496:e=>{"use strict";e.exports=require("vscode")},9491:e=>{"use strict";e.exports=require("assert")},4300:e=>{"use strict";e.exports=require("buffer")},2081:e=>{"use strict";e.exports=require("child_process")},2057:e=>{"use strict";e.exports=require("constants")},6113:e=>{"use strict";e.exports=require("crypto")},7147:e=>{"use strict";e.exports=require("fs")},3292:e=>{"use strict";e.exports=require("fs/promises")},1808:e=>{"use strict";e.exports=require("net")},2037:e=>{"use strict";e.exports=require("os")},1017:e=>{"use strict";e.exports=require("path")},2781:e=>{"use strict";e.exports=require("stream")},3837:e=>{"use strict";e.exports=require("util")},8453:(e,t,n)=>{"use strict";var i=n(8487),r=n(6314),o=n(9359);const s={get binary(){return r.binaryOptions},set binary(e){Object.assign(r.binaryOptions,e)},get bool(){return r.boolOptions},set bool(e){Object.assign(r.boolOptions,e)},get int(){return r.intOptions},set int(e){Object.assign(r.intOptions,e)},get null(){return r.nullOptions},set null(e){Object.assign(r.nullOptions,e)},get str(){return r.strOptions},set str(e){Object.assign(r.strOptions,e)}},a={"1.0":{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:i.defaultTagPrefix},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:i.defaultTagPrefix}]},1.2:{schema:"core",merge:!1,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:i.defaultTagPrefix}]}};function c(e,t){if("1.0"===(e.version||e.options.version)){const e=t.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);if(e)return"!"+e[1];const n=t.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return n?`!${n[1]}/${n[2]}`:`!${t.replace(/^tag:/,"")}`}let n=e.tagPrefixes.find((e=>0===t.indexOf(e.prefix)));if(!n){const i=e.getDefaults().tagPrefixes;n=i&&i.find((e=>0===t.indexOf(e.prefix)))}if(!n)return"!"===t[0]?t:`!<${t}>`;const i=t.substr(n.prefix.length).replace(/[!,[\]{}]/g,(e=>({"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"}[e])));return n.handle+i}function u(e,t,n,i){const{anchors:o,schema:s}=t.doc;let a;if(!(e instanceof r.Node)){const t={aliasNodes:[],onTagObj:e=>a=e,prevObjects:new Map};e=s.createNode(e,!0,null,t);for(const e of t.aliasNodes){e.source=e.source.node;let t=o.getName(e.source);t||(t=o.newName(),o.map[t]=e.source)}}if(e instanceof r.Pair)return e.toString(t,n,i);a||(a=function(e,t){if(t instanceof r.Alias)return r.Alias;if(t.tag){const n=e.filter((e=>e.tag===t.tag));if(n.length>0)return n.find((e=>e.format===t.format))||n[0]}let n,i;if(t instanceof r.Scalar){i=t.value;const r=e.filter((e=>e.identify&&e.identify(i)||e.class&&i instanceof e.class));n=r.find((e=>e.format===t.format))||r.find((e=>!e.format))}else i=t,n=e.find((e=>e.nodeClass&&i instanceof e.nodeClass));if(!n){const e=i&&i.constructor?i.constructor.name:typeof i;throw new Error(`Tag not resolved for ${e} value`)}return n}(s.tags,e));const u=function(e,t,{anchors:n,doc:i}){const r=[],o=i.anchors.getName(e);return o&&(n[o]=e,r.push(`&${o}`)),e.tag?r.push(c(i,e.tag)):t.default||r.push(c(i,t.tag)),r.join(" ")}(e,a,t);u.length>0&&(t.indentAtStart=(t.indentAtStart||0)+u.length+1);const l="function"==typeof a.stringify?a.stringify(e,t,n,i):e instanceof r.Scalar?r.stringifyString(e,t,n,i):e.toString(t,n,i);return u?e instanceof r.Scalar||"{"===l[0]||"["===l[0]?`${u} ${l}`:`${u}\n${t.indent}${l}`:l}class l{static validAnchorNode(e){return e instanceof r.Scalar||e instanceof r.YAMLSeq||e instanceof r.YAMLMap}constructor(e){i._defineProperty(this,"map",Object.create(null)),this.prefix=e}createAlias(e,t){return this.setAnchor(e,t),new r.Alias(e)}createMergePair(...e){const t=new r.Merge;return t.value.items=e.map((e=>{if(e instanceof r.Alias){if(e.source instanceof r.YAMLMap)return e}else if(e instanceof r.YAMLMap)return this.createAlias(e);throw new Error("Merge sources must be Map nodes or their Aliases")})),t}getName(e){const{map:t}=this;return Object.keys(t).find((n=>t[n]===e))}getNames(){return Object.keys(this.map)}getNode(e){return this.map[e]}newName(e){e||(e=this.prefix);const t=Object.keys(this.map);for(let n=1;;++n){const i=`${e}${n}`;if(!t.includes(i))return i}}resolveNodes(){const{map:e,_cstAliases:t}=this;Object.keys(e).forEach((t=>{e[t]=e[t].resolved})),t.forEach((e=>{e.source=e.source.resolved})),delete this._cstAliases}setAnchor(e,t){if(null!=e&&!l.validAnchorNode(e))throw new Error("Anchors may only be set for Scalar, Seq and Map nodes");if(t&&/[\x00-\x19\s,[\]{}]/.test(t))throw new Error("Anchor names must not contain whitespace or control characters");const{map:n}=this,i=e&&Object.keys(n).find((t=>n[t]===e));if(i){if(!t)return i;i!==t&&(delete n[i],n[t]=e)}else{if(!t){if(!e)return null;t=this.newName()}n[t]=e}return t}}const h=(e,t)=>{if(e&&"object"==typeof e){const{tag:n}=e;e instanceof r.Collection?(n&&(t[n]=!0),e.items.forEach((e=>h(e,t)))):e instanceof r.Pair?(h(e.key,t),h(e.value,t)):e instanceof r.Scalar&&n&&(t[n]=!0)}return t};function d({tagPrefixes:e},t){const[n,r]=t.parameters;if(!n||!r){const e="Insufficient parameters given for %TAG directive";throw new i.YAMLSemanticError(t,e)}if(e.some((e=>e.handle===n))){const e="The %TAG directive must only be given at most once per handle in the same document.";throw new i.YAMLSemanticError(t,e)}return{handle:n,prefix:r}}function p(e,t){let[n]=t.parameters;if("YAML:1.0"===t.name&&(n="1.0"),!n){const e="Insufficient parameters given for %YAML directive";throw new i.YAMLSemanticError(t,e)}if(!a[n]){const r=`Document will be parsed as YAML ${e.version||e.options.version} rather than YAML ${n}`;e.warnings.push(new i.YAMLWarning(t,r))}return n}function f(e){if(e instanceof r.Collection)return!0;throw new Error("Expected a YAML collection as document contents")}class g{constructor(e){this.anchors=new l(e.anchorPrefix),this.commentBefore=null,this.comment=null,this.contents=null,this.directivesEndMarker=null,this.errors=[],this.options=e,this.schema=null,this.tagPrefixes=[],this.version=null,this.warnings=[]}add(e){return f(this.contents),this.contents.add(e)}addIn(e,t){f(this.contents),this.contents.addIn(e,t)}delete(e){return f(this.contents),this.contents.delete(e)}deleteIn(e){return r.isEmptyPath(e)?null!=this.contents&&(this.contents=null,!0):(f(this.contents),this.contents.deleteIn(e))}getDefaults(){return g.defaults[this.version]||g.defaults[this.options.version]||{}}get(e,t){return this.contents instanceof r.Collection?this.contents.get(e,t):void 0}getIn(e,t){return r.isEmptyPath(e)?!t&&this.contents instanceof r.Scalar?this.contents.value:this.contents:this.contents instanceof r.Collection?this.contents.getIn(e,t):void 0}has(e){return this.contents instanceof r.Collection&&this.contents.has(e)}hasIn(e){return r.isEmptyPath(e)?void 0!==this.contents:this.contents instanceof r.Collection&&this.contents.hasIn(e)}set(e,t){f(this.contents),this.contents.set(e,t)}setIn(e,t){r.isEmptyPath(e)?this.contents=t:(f(this.contents),this.contents.setIn(e,t))}setSchema(e,t){if(!e&&!t&&this.schema)return;"number"==typeof e&&(e=e.toFixed(1)),"1.0"===e||"1.1"===e||"1.2"===e?(this.version?this.version=e:this.options.version=e,delete this.options.schema):e&&"string"==typeof e&&(this.options.schema=e),Array.isArray(t)&&(this.options.customTags=t);const n=Object.assign({},this.getDefaults(),this.options);this.schema=new o.Schema(n)}parse(e,t){this.options.keepCstNodes&&(this.cstNode=e),this.options.keepNodeTypes&&(this.type="DOCUMENT");const{directives:n=[],contents:o=[],directivesEndMarker:s,error:a,valueRange:c}=e;if(a&&(a.source||(a.source=this),this.errors.push(a)),function(e,t,n){const r=[];let o=!1;for(const n of t){const{comment:t,name:s}=n;switch(s){case"TAG":try{e.tagPrefixes.push(d(e,n))}catch(t){e.errors.push(t)}o=!0;break;case"YAML":case"YAML:1.0":if(e.version){const t="The %YAML directive must only be given at most once per document.";e.errors.push(new i.YAMLSemanticError(n,t))}try{e.version=p(e,n)}catch(t){e.errors.push(t)}o=!0;break;default:if(s){const t=`YAML only supports %TAG and %YAML directives, and not %${s}`;e.warnings.push(new i.YAMLWarning(n,t))}}t&&r.push(t)}if(n&&!o&&"1.1"===(e.version||n.version||e.options.version)){const t=({handle:e,prefix:t})=>({handle:e,prefix:t});e.tagPrefixes=n.tagPrefixes.map(t),e.version=n.version}e.commentBefore=r.join("\n")||null}(this,n,t),s&&(this.directivesEndMarker=!0),this.range=c?[c.start,c.end]:null,this.setSchema(),this.anchors._cstAliases=[],function(e,t){const n={before:[],after:[]};let o,s=!1;for(const a of t)if(a.valueRange){if(void 0!==o){const t="Document contains trailing content not separated by a ... or --- line";e.errors.push(new i.YAMLSyntaxError(a,t));break}const t=r.resolveNode(e,a);s&&(t.spaceBefore=!0,s=!1),o=t}else null!==a.comment?(void 0===o?n.before:n.after).push(a.comment):a.type===i.Type.BLANK_LINE&&(s=!0,void 0===o&&n.before.length>0&&!e.commentBefore&&(e.commentBefore=n.before.join("\n"),n.before=[]));if(e.contents=o||null,o){const t=n.before.join("\n");if(t){const e=o instanceof r.Collection&&o.items[0]?o.items[0]:o;e.commentBefore=e.commentBefore?`${t}\n${e.commentBefore}`:t}e.comment=n.after.join("\n")||null}else e.comment=n.before.concat(n.after).join("\n")||null}(this,o),this.anchors.resolveNodes(),this.options.prettyErrors){for(const e of this.errors)e instanceof i.YAMLError&&e.makePretty();for(const e of this.warnings)e instanceof i.YAMLError&&e.makePretty()}return this}listNonDefaultTags(){return(e=this.contents,Object.keys(h(e,{}))).filter((e=>0!==e.indexOf(o.Schema.defaultPrefix)));var e}setTagPrefix(e,t){if("!"!==e[0]||"!"!==e[e.length-1])throw new Error("Handle must start and end with !");if(t){const n=this.tagPrefixes.find((t=>t.handle===e));n?n.prefix=t:this.tagPrefixes.push({handle:e,prefix:t})}else this.tagPrefixes=this.tagPrefixes.filter((t=>t.handle!==e))}toJSON(e,t){const{keepBlobsInJSON:n,mapAsMap:i,maxAliasCount:o}=this.options,s=n&&("string"!=typeof e||!(this.contents instanceof r.Scalar)),a={doc:this,indentStep:" ",keep:s,mapAsMap:s&&!!i,maxAliasCount:o,stringify:u},c=Object.keys(this.anchors.map);c.length>0&&(a.anchors=new Map(c.map((e=>[this.anchors.map[e],{alias:[],aliasCount:0,count:1}]))));const l=r.toJSON(this.contents,e,a);if("function"==typeof t&&a.anchors)for(const{count:e,res:n}of a.anchors.values())t(n,e);return l}toString(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");const e=this.options.indent;if(!Number.isInteger(e)||e<=0){const t=JSON.stringify(e);throw new Error(`"indent" option must be a positive integer, not ${t}`)}this.setSchema();const t=[];let n=!1;if(this.version){let e="%YAML 1.2";"yaml-1.1"===this.schema.name&&("1.0"===this.version?e="%YAML:1.0":"1.1"===this.version&&(e="%YAML 1.1")),t.push(e),n=!0}const i=this.listNonDefaultTags();this.tagPrefixes.forEach((({handle:e,prefix:r})=>{i.some((e=>0===e.indexOf(r)))&&(t.push(`%TAG ${e} ${r}`),n=!0)})),(n||this.directivesEndMarker)&&t.push("---"),this.commentBefore&&(!n&&this.directivesEndMarker||t.unshift(""),t.unshift(this.commentBefore.replace(/^/gm,"#")));const o={anchors:Object.create(null),doc:this,indent:"",indentStep:" ".repeat(e),stringify:u};let s=!1,a=null;if(this.contents){this.contents instanceof r.Node&&(this.contents.spaceBefore&&(n||this.directivesEndMarker)&&t.push(""),this.contents.commentBefore&&t.push(this.contents.commentBefore.replace(/^/gm,"#")),o.forceBlockIndent=!!this.comment,a=this.contents.comment);const e=a?null:()=>s=!0,i=u(this.contents,o,(()=>a=null),e);t.push(r.addComment(i,"",a))}else void 0!==this.contents&&t.push(u(this.contents,o));return this.comment&&(s&&!a||""===t[t.length-1]||t.push(""),t.push(this.comment.replace(/^/gm,"#"))),t.join("\n")+"\n"}}i._defineProperty(g,"defaults",a),t.Document=g,t.defaultOptions={anchorPrefix:"a",customTags:null,indent:2,indentSeq:!0,keepCstNodes:!1,keepNodeTypes:!0,keepBlobsInJSON:!0,mapAsMap:!1,maxAliasCount:100,prettyErrors:!1,simpleKeys:!1,version:"1.2"},t.scalarOptions=s},8487:(e,t)=>{"use strict";const n={ANCHOR:"&",COMMENT:"#",TAG:"!",DIRECTIVES_END:"-",DOCUMENT_END:"."},i={ALIAS:"ALIAS",BLANK_LINE:"BLANK_LINE",BLOCK_FOLDED:"BLOCK_FOLDED",BLOCK_LITERAL:"BLOCK_LITERAL",COMMENT:"COMMENT",DIRECTIVE:"DIRECTIVE",DOCUMENT:"DOCUMENT",FLOW_MAP:"FLOW_MAP",FLOW_SEQ:"FLOW_SEQ",MAP:"MAP",MAP_KEY:"MAP_KEY",MAP_VALUE:"MAP_VALUE",PLAIN:"PLAIN",QUOTE_DOUBLE:"QUOTE_DOUBLE",QUOTE_SINGLE:"QUOTE_SINGLE",SEQ:"SEQ",SEQ_ITEM:"SEQ_ITEM"};function r(e){const t=[0];let n=e.indexOf("\n");for(;-1!==n;)n+=1,t.push(n),n=e.indexOf("\n",n);return t}function o(e){let t,n;return"string"==typeof e?(t=r(e),n=e):(Array.isArray(e)&&(e=e[0]),e&&e.context&&(e.lineStarts||(e.lineStarts=r(e.context.src)),t=e.lineStarts,n=e.context.src)),{lineStarts:t,src:n}}function s(e,t){if("number"!=typeof e||e<0)return null;const{lineStarts:n,src:i}=o(t);if(!n||!i||e>i.length)return null;for(let t=0;t<n.length;++t){const i=n[t];if(e<i)return{line:t,col:e-n[t-1]+1};if(e===i)return{line:t+1,col:1}}const r=n.length;return{line:r,col:e-n[r-1]+1}}class a{static copy(e){return new a(e.start,e.end)}constructor(e,t){this.start=e,this.end=t||e}isEmpty(){return"number"!=typeof this.start||!this.end||this.end<=this.start}setOrigRange(e,t){const{start:n,end:i}=this;if(0===e.length||i<=e[0])return this.origStart=n,this.origEnd=i,t;let r=t;for(;r<e.length&&!(e[r]>n);)++r;this.origStart=n+r;const o=r;for(;r<e.length&&!(e[r]>=i);)++r;return this.origEnd=i+r,o}}class c{static addStringTerminator(e,t,n){if("\n"===n[n.length-1])return n;const i=c.endOfWhiteSpace(e,t);return i>=e.length||"\n"===e[i]?n+"\n":n}static atDocumentBoundary(e,t,i){const r=e[t];if(!r)return!0;const o=e[t-1];if(o&&"\n"!==o)return!1;if(i){if(r!==i)return!1}else if(r!==n.DIRECTIVES_END&&r!==n.DOCUMENT_END)return!1;const s=e[t+1],a=e[t+2];if(s!==r||a!==r)return!1;const c=e[t+3];return!c||"\n"===c||"\t"===c||" "===c}static endOfIdentifier(e,t){let n=e[t];const i="<"===n,r=i?["\n","\t"," ",">"]:["\n","\t"," ","[","]","{","}",","];for(;n&&-1===r.indexOf(n);)n=e[t+=1];return i&&">"===n&&(t+=1),t}static endOfIndent(e,t){let n=e[t];for(;" "===n;)n=e[t+=1];return t}static endOfLine(e,t){let n=e[t];for(;n&&"\n"!==n;)n=e[t+=1];return t}static endOfWhiteSpace(e,t){let n=e[t];for(;"\t"===n||" "===n;)n=e[t+=1];return t}static startOfLine(e,t){let n=e[t-1];if("\n"===n)return t;for(;n&&"\n"!==n;)n=e[t-=1];return t+1}static endOfBlockIndent(e,t,n){const i=c.endOfIndent(e,n);if(i>n+t)return i;{const t=c.endOfWhiteSpace(e,i),n=e[t];if(!n||"\n"===n)return t}return null}static atBlank(e,t,n){const i=e[t];return"\n"===i||"\t"===i||" "===i||n&&!i}static nextNodeIsIndented(e,t,n){return!(!e||t<0)&&(t>0||n&&"-"===e)}static normalizeOffset(e,t){const n=e[t];return n?"\n"!==n&&"\n"===e[t-1]?t-1:c.endOfWhiteSpace(e,t):t}static foldNewline(e,t,n){let i=0,r=!1,o="",s=e[t+1];for(;" "===s||"\t"===s||"\n"===s;){switch(s){case"\n":i=0,t+=1,o+="\n";break;case"\t":i<=n&&(r=!0),t=c.endOfWhiteSpace(e,t+2)-1;break;case" ":i+=1,t+=1}s=e[t+1]}return o||(o=" "),s&&i<=n&&(r=!0),{fold:o,offset:t,error:r}}constructor(e,t,n){Object.defineProperty(this,"context",{value:n||null,writable:!0}),this.error=null,this.range=null,this.valueRange=null,this.props=t||[],this.type=e,this.value=null}getPropValue(e,t,n){if(!this.context)return null;const{src:i}=this.context,r=this.props[e];return r&&i[r.start]===t?i.slice(r.start+(n?1:0),r.end):null}get anchor(){for(let e=0;e<this.props.length;++e){const t=this.getPropValue(e,n.ANCHOR,!0);if(null!=t)return t}return null}get comment(){const e=[];for(let t=0;t<this.props.length;++t){const i=this.getPropValue(t,n.COMMENT,!0);null!=i&&e.push(i)}return e.length>0?e.join("\n"):null}commentHasRequiredWhitespace(e){const{src:t}=this.context;if(this.header&&e===this.header.end)return!1;if(!this.valueRange)return!1;const{end:n}=this.valueRange;return e!==n||c.atBlank(t,n-1)}get hasComment(){if(this.context){const{src:e}=this.context;for(let t=0;t<this.props.length;++t)if(e[this.props[t].start]===n.COMMENT)return!0}return!1}get hasProps(){if(this.context){const{src:e}=this.context;for(let t=0;t<this.props.length;++t)if(e[this.props[t].start]!==n.COMMENT)return!0}return!1}get includesTrailingLines(){return!1}get jsonLike(){return-1!==[i.FLOW_MAP,i.FLOW_SEQ,i.QUOTE_DOUBLE,i.QUOTE_SINGLE].indexOf(this.type)}get rangeAsLinePos(){if(!this.range||!this.context)return;const e=s(this.range.start,this.context.root);return e?{start:e,end:s(this.range.end,this.context.root)}:void 0}get rawValue(){if(!this.valueRange||!this.context)return null;const{start:e,end:t}=this.valueRange;return this.context.src.slice(e,t)}get tag(){for(let e=0;e<this.props.length;++e){const t=this.getPropValue(e,n.TAG,!1);if(null!=t){if("<"===t[1])return{verbatim:t.slice(2,-1)};{const[e,n,i]=t.match(/^(.*!)([^!]*)$/);return{handle:n,suffix:i}}}}return null}get valueRangeContainsNewline(){if(!this.valueRange||!this.context)return!1;const{start:e,end:t}=this.valueRange,{src:n}=this.context;for(let i=e;i<t;++i)if("\n"===n[i])return!0;return!1}parseComment(e){const{src:t}=this.context;if(t[e]===n.COMMENT){const n=c.endOfLine(t,e+1),i=new a(e,n);return this.props.push(i),n}return e}setOrigRanges(e,t){return this.range&&(t=this.range.setOrigRange(e,t)),this.valueRange&&this.valueRange.setOrigRange(e,t),this.props.forEach((n=>n.setOrigRange(e,t))),t}toString(){const{context:{src:e},range:t,value:n}=this;if(null!=n)return n;const i=e.slice(t.start,t.end);return c.addStringTerminator(e,t.end,i)}}class u extends Error{constructor(e,t,n){if(!(n&&t instanceof c))throw new Error(`Invalid arguments for new ${e}`);super(),this.name=e,this.message=n,this.source=t}makePretty(){if(!this.source)return;this.nodeType=this.source.type;const e=this.source.context&&this.source.context.root;if("number"==typeof this.offset){this.range=new a(this.offset,this.offset+1);const t=e&&s(this.offset,e);if(t){const e={line:t.line,col:t.col+1};this.linePos={start:t,end:e}}delete this.offset}else this.range=this.source.range,this.linePos=this.source.rangeAsLinePos;if(this.linePos){const{line:t,col:n}=this.linePos.start;this.message+=` at line ${t}, column ${n}`;const i=e&&function({start:e,end:t},n,i=80){let r=function(e,t){const{lineStarts:n,src:i}=o(t);if(!n||!(e>=1)||e>n.length)return null;const r=n[e-1];let s=n[e];for(;s&&s>r&&"\n"===i[s-1];)--s;return i.slice(r,s)}(e.line,n);if(!r)return null;let{col:s}=e;if(r.length>i)if(s<=i-10)r=r.substr(0,i-1)+"…";else{const e=Math.round(i/2);r.length>s+e&&(r=r.substr(0,s+e-1)+"…"),s-=r.length-i,r="…"+r.substr(1-i)}let a=1,c="";return t&&(t.line===e.line&&s+(t.col-e.col)<=i+1?a=t.col-e.col:(a=Math.min(r.length+1,i)-s,c="…")),`${r}\n${s>1?" ".repeat(s-1):""}${"^".repeat(a)}${c}`}(this.linePos,e);i&&(this.message+=`:\n\n${i}\n`)}delete this.source}}class l extends u{constructor(e,t){super("YAMLSemanticError",e,t)}}class h extends c{static endOfLine(e,t,n){let i=e[t],r=t;for(;i&&"\n"!==i&&(!n||"["!==i&&"]"!==i&&"{"!==i&&"}"!==i&&","!==i);){const t=e[r+1];if(":"===i&&(!t||"\n"===t||"\t"===t||" "===t||n&&","===t))break;if((" "===i||"\t"===i)&&"#"===t)break;r+=1,i=t}return r}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:t}=this.valueRange;const{src:n}=this.context;let i=n[t-1];for(;e<t&&("\n"===i||"\t"===i||" "===i);)i=n[--t-1];let r="";for(let i=e;i<t;++i){const e=n[i];if("\n"===e){const{fold:e,offset:t}=c.foldNewline(n,i,-1);r+=e,i=t}else if(" "===e||"\t"===e){const o=i;let s=n[i+1];for(;i<t&&(" "===s||"\t"===s);)i+=1,s=n[i+1];"\n"!==s&&(r+=i>o?n.slice(o,i+1):e)}else r+=e}const o=n[e];switch(o){case"\t":return{errors:[new l(this,"Plain value cannot start with a tab character")],str:r};case"@":case"`":return{errors:[new l(this,`Plain value cannot start with reserved character ${o}`)],str:r};default:return r}}parseBlockValue(e){const{indent:t,inFlow:n,src:i}=this.context;let r=e,o=e;for(let e=i[r];"\n"===e&&!c.atDocumentBoundary(i,r+1);e=i[r]){const e=c.endOfBlockIndent(i,t,r+1);if(null===e||"#"===i[e])break;"\n"===i[e]?r=e:(o=h.endOfLine(i,e,n),r=o)}return this.valueRange.isEmpty()&&(this.valueRange.start=e),this.valueRange.end=o,o}parse(e,t){this.context=e;const{inFlow:n,src:i}=e;let r=t;const o=i[r];return o&&"#"!==o&&"\n"!==o&&(r=h.endOfLine(i,t,n)),this.valueRange=new a(t,r),r=c.endOfWhiteSpace(i,r),r=this.parseComment(r),this.hasComment&&!this.valueRange.isEmpty()||(r=this.parseBlockValue(r)),r}}t.Char=n,t.Node=c,t.PlainValue=h,t.Range=a,t.Type=i,t.YAMLError=u,t.YAMLReferenceError=class extends u{constructor(e,t){super("YAMLReferenceError",e,t)}},t.YAMLSemanticError=l,t.YAMLSyntaxError=class extends u{constructor(e,t){super("YAMLSyntaxError",e,t)}},t.YAMLWarning=class extends u{constructor(e,t){super("YAMLWarning",e,t)}},t._defineProperty=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},t.defaultTagPrefix="tag:yaml.org,2002:",t.defaultTags={MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"}},9359:(e,t,n)=>{"use strict";var i=n(8487),r=n(6314),o=n(1125);const s={createNode:function(e,t,n){const i=new r.YAMLMap(e);if(t instanceof Map)for(const[r,o]of t)i.items.push(e.createPair(r,o,n));else if(t&&"object"==typeof t)for(const r of Object.keys(t))i.items.push(e.createPair(r,t[r],n));return"function"==typeof e.sortMapEntries&&i.items.sort(e.sortMapEntries),i},default:!0,nodeClass:r.YAMLMap,tag:"tag:yaml.org,2002:map",resolve:r.resolveMap},a={createNode:function(e,t,n){const i=new r.YAMLSeq(e);if(t&&t[Symbol.iterator])for(const r of t){const t=e.createNode(r,n.wrapScalars,null,n);i.items.push(t)}return i},default:!0,nodeClass:r.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve:r.resolveSeq},c={identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:r.resolveString,stringify:(e,t,n,i)=>(t=Object.assign({actualString:!0},t),r.stringifyString(e,t,n,i)),options:r.strOptions},u=[s,a,c],l=e=>"bigint"==typeof e||Number.isInteger(e),h=(e,t,n)=>r.intOptions.asBigInt?BigInt(e):parseInt(t,n);function d(e,t,n){const{value:i}=e;return l(i)&&i>=0?n+i.toString(t):r.stringifyNumber(e)}const p={identify:e=>null==e,createNode:(e,t,n)=>n.wrapScalars?new r.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:r.nullOptions,stringify:()=>r.nullOptions.nullStr},f={identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>"t"===e[0]||"T"===e[0],options:r.boolOptions,stringify:({value:e})=>e?r.boolOptions.trueStr:r.boolOptions.falseStr},g={identify:e=>l(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:(e,t)=>h(e,t,8),options:r.intOptions,stringify:e=>d(e,8,"0o")},m={identify:l,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:e=>h(e,e,10),options:r.intOptions,stringify:r.stringifyNumber},y={identify:e=>l(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:(e,t)=>h(e,t,16),options:r.intOptions,stringify:e=>d(e,16,"0x")},v={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(e,t)=>t?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:r.stringifyNumber},C={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify:({value:e})=>Number(e).toExponential()},S={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.([0-9]+)|[0-9]+\.([0-9]*))$/,resolve(e,t,n){const i=t||n,o=new r.Scalar(parseFloat(e));return i&&"0"===i[i.length-1]&&(o.minFractionDigits=i.length),o},stringify:r.stringifyNumber},b=u.concat([p,f,g,m,y,v,C,S]),E=e=>"bigint"==typeof e||Number.isInteger(e),w=({value:e})=>JSON.stringify(e),D=[s,a,{identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:r.resolveString,stringify:w},{identify:e=>null==e,createNode:(e,t,n)=>n.wrapScalars?new r.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:w},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>"true"===e,stringify:w},{identify:E,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:e=>r.intOptions.asBigInt?BigInt(e):parseInt(e,10),stringify:({value:e})=>E(e)?e.toString():JSON.stringify(e)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:w}];D.scalarFallback=e=>{throw new SyntaxError(`Unresolved plain scalar ${JSON.stringify(e)}`)};const x=({value:e})=>e?r.boolOptions.trueStr:r.boolOptions.falseStr,_=e=>"bigint"==typeof e||Number.isInteger(e);function T(e,t,n){let i=t.replace(/_/g,"");if(r.intOptions.asBigInt){switch(n){case 2:i=`0b${i}`;break;case 8:i=`0o${i}`;break;case 16:i=`0x${i}`}const t=BigInt(i);return"-"===e?BigInt(-1)*t:t}const o=parseInt(i,n);return"-"===e?-1*o:o}function k(e,t,n){const{value:i}=e;if(_(i)){const e=i.toString(t);return i<0?"-"+n+e.substr(1):n+e}return r.stringifyNumber(e)}const F=u.concat([{identify:e=>null==e,createNode:(e,t,n)=>n.wrapScalars?new r.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:r.nullOptions,stringify:()=>r.nullOptions.nullStr},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>!0,options:r.boolOptions,stringify:x},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>!1,options:r.boolOptions,stringify:x},{identify:_,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^([-+]?)0b([0-1_]+)$/,resolve:(e,t,n)=>T(t,n,2),stringify:e=>k(e,2,"0b")},{identify:_,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^([-+]?)0([0-7_]+)$/,resolve:(e,t,n)=>T(t,n,8),stringify:e=>k(e,8,"0")},{identify:_,default:!0,tag:"tag:yaml.org,2002:int",test:/^([-+]?)([0-9][0-9_]*)$/,resolve:(e,t,n)=>T(t,n,10),stringify:r.stringifyNumber},{identify:_,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^([-+]?)0x([0-9a-fA-F_]+)$/,resolve:(e,t,n)=>T(t,n,16),stringify:e=>k(e,16,"0x")},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(e,t)=>t?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:r.stringifyNumber},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?([0-9][0-9_]*)?(\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify:({value:e})=>Number(e).toExponential()},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve(e,t){const n=new r.Scalar(parseFloat(e.replace(/_/g,"")));if(t){const e=t.replace(/_/g,"");"0"===e[e.length-1]&&(n.minFractionDigits=e.length)}return n},stringify:r.stringifyNumber}],o.binary,o.omap,o.pairs,o.set,o.intTime,o.floatTime,o.timestamp),A={core:b,failsafe:u,json:D,yaml11:F},R={binary:o.binary,bool:f,float:S,floatExp:C,floatNaN:v,floatTime:o.floatTime,int:m,intHex:y,intOct:g,intTime:o.intTime,map:s,null:p,omap:o.omap,pairs:o.pairs,seq:a,set:o.set,timestamp:o.timestamp};const O=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class P{constructor({customTags:e,merge:t,schema:n,sortMapEntries:i,tags:r}){this.merge=!!t,this.name=n,this.sortMapEntries=!0===i?O:i||null,!e&&r&&o.warnOptionDeprecation("tags","customTags"),this.tags=function(e,t,n,i){let r=e[i.replace(/\W/g,"")];if(!r){const t=Object.keys(e).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown schema "${i}"; use one of ${t}`)}if(Array.isArray(n))for(const e of n)r=r.concat(e);else"function"==typeof n&&(r=n(r.slice()));for(let e=0;e<r.length;++e){const n=r[e];if("string"==typeof n){const i=t[n];if(!i){const e=Object.keys(t).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown custom tag "${n}"; use one of ${e}`)}r[e]=i}}return r}(A,R,e||r,n)}createNode(e,t,n,i){const o={defaultPrefix:P.defaultPrefix,schema:this,wrapScalars:t};return function(e,t,n){if(e instanceof r.Node)return e;const{defaultPrefix:i,onTagObj:o,prevObjects:c,schema:u,wrapScalars:l}=n;t&&t.startsWith("!!")&&(t=i+t.slice(2));let h=function(e,t,n){if(t){const e=n.filter((e=>e.tag===t)),i=e.find((e=>!e.format))||e[0];if(!i)throw new Error(`Tag ${t} not found`);return i}return n.find((t=>(t.identify&&t.identify(e)||t.class&&e instanceof t.class)&&!t.format))}(e,t,u.tags);if(!h){if("function"==typeof e.toJSON&&(e=e.toJSON()),!e||"object"!=typeof e)return l?new r.Scalar(e):e;h=e instanceof Map?s:e[Symbol.iterator]?a:s}o&&(o(h),delete n.onTagObj);const d={value:void 0,node:void 0};if(e&&"object"==typeof e&&c){const t=c.get(e);if(t){const e=new r.Alias(t);return n.aliasNodes.push(e),e}d.value=e,c.set(e,d)}return d.node=h.createNode?h.createNode(n.schema,e,n):l?new r.Scalar(e):e,t&&d.node instanceof r.Node&&(d.node.tag=t),d.node}(e,n,i?Object.assign(i,o):o)}createPair(e,t,n){n||(n={wrapScalars:!0});const i=this.createNode(e,n.wrapScalars,null,n),o=this.createNode(t,n.wrapScalars,null,n);return new r.Pair(i,o)}}i._defineProperty(P,"defaultPrefix",i.defaultTagPrefix),i._defineProperty(P,"defaultTags",i.defaultTags),t.Schema=P},4667:(e,t,n)=>{"use strict";var i=n(2024),r=n(8453),o=n(9359),s=n(8487),a=n(1125);n(6314);class c extends r.Document{constructor(e){super(Object.assign({},r.defaultOptions,e))}}function u(e,t){const n=i.parse(e),r=new c(t).parse(n[0]);if(n.length>1){const e="Source contains multiple documents; please use YAML.parseAllDocuments()";r.errors.unshift(new s.YAMLSemanticError(n[1],e))}return r}const l={createNode:function(e,t=!0,n){void 0===n&&"string"==typeof t&&(n=t,t=!0);const i=Object.assign({},r.Document.defaults[r.defaultOptions.version],r.defaultOptions);return new o.Schema(i).createNode(e,t,n)},defaultOptions:r.defaultOptions,Document:c,parse:function(e,t){const n=u(e,t);if(n.warnings.forEach((e=>a.warn(e))),n.errors.length>0)throw n.errors[0];return n.toJSON()},parseAllDocuments:function(e,t){const n=[];let r;for(const o of i.parse(e)){const e=new c(t);e.parse(o,r),n.push(e),r=e}return n},parseCST:i.parse,parseDocument:u,scalarOptions:r.scalarOptions,stringify:function(e,t){const n=new c(t);return n.contents=e,String(n)}};t.YAML=l},2024:(e,t,n)=>{"use strict";var i=n(8487);class r extends i.Node{constructor(){super(i.Type.BLANK_LINE)}get includesTrailingLines(){return!0}parse(e,t){return this.context=e,this.range=new i.Range(t,t+1),t+1}}class o extends i.Node{constructor(e,t){super(e,t),this.node=null}get includesTrailingLines(){return!!this.node&&this.node.includesTrailingLines}parse(e,t){this.context=e;const{parseNode:n,src:o}=e;let{atLineStart:s,lineStart:a}=e;s||this.type!==i.Type.SEQ_ITEM||(this.error=new i.YAMLSemanticError(this,"Sequence items must not have preceding content on the same line"));const c=s?t-a:e.indent;let u=i.Node.endOfWhiteSpace(o,t+1),l=o[u];const h="#"===l,d=[];let p=null;for(;"\n"===l||"#"===l;){if("#"===l){const e=i.Node.endOfLine(o,u+1);d.push(new i.Range(u,e)),u=e}else s=!0,a=u+1,"\n"===o[i.Node.endOfWhiteSpace(o,a)]&&0===d.length&&(p=new r,a=p.parse({src:o},a)),u=i.Node.endOfIndent(o,a);l=o[u]}if(i.Node.nextNodeIsIndented(l,u-(a+c),this.type!==i.Type.SEQ_ITEM)?this.node=n({atLineStart:s,inCollection:!1,indent:c,lineStart:a,parent:this},u):l&&a>t+1&&(u=a-1),this.node){if(p){const t=e.parent.items||e.parent.contents;t&&t.push(p)}d.length&&Array.prototype.push.apply(this.props,d),u=this.node.range.end}else if(h){const e=d[0];this.props.push(e),u=e.end}else u=i.Node.endOfLine(o,t+1);const f=this.node?this.node.valueRange.end:u;return this.valueRange=new i.Range(t,f),u}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.node?this.node.setOrigRanges(e,t):t}toString(){const{context:{src:e},node:t,range:n,value:r}=this;if(null!=r)return r;const o=t?e.slice(n.start,t.range.start)+String(t):e.slice(n.start,n.end);return i.Node.addStringTerminator(e,n.end,o)}}class s extends i.Node{constructor(){super(i.Type.COMMENT)}parse(e,t){this.context=e;const n=this.parseComment(t);return this.range=new i.Range(t,n),n}}function a(e){let t=e;for(;t instanceof o;)t=t.node;if(!(t instanceof c))return null;const n=t.items.length;let r=-1;for(let e=n-1;e>=0;--e){const n=t.items[e];if(n.type===i.Type.COMMENT){const{indent:t,lineStart:i}=n.context;if(t>0&&n.range.start>=i+t)break;r=e}else{if(n.type!==i.Type.BLANK_LINE)break;r=e}}if(-1===r)return null;const s=t.items.splice(r,n-r),a=s[0].range.start;for(;t.range.end=a,t.valueRange&&t.valueRange.end>a&&(t.valueRange.end=a),t!==e;)t=t.context.parent;return s}class c extends i.Node{static nextContentHasIndent(e,t,n){const r=i.Node.endOfLine(e,t)+1,o=e[t=i.Node.endOfWhiteSpace(e,r)];return!!o&&(t>=r+n||("#"===o||"\n"===o)&&c.nextContentHasIndent(e,t,n))}constructor(e){super(e.type===i.Type.SEQ_ITEM?i.Type.SEQ:i.Type.MAP);for(let t=e.props.length-1;t>=0;--t)if(e.props[t].start<e.context.lineStart){this.props=e.props.slice(0,t+1),e.props=e.props.slice(t+1);const n=e.props[0]||e.valueRange;e.range.start=n.start;break}this.items=[e];const t=a(e);t&&Array.prototype.push.apply(this.items,t)}get includesTrailingLines(){return this.items.length>0}parse(e,t){this.context=e;const{parseNode:n,src:o}=e;let u=i.Node.startOfLine(o,t);const l=this.items[0];l.context.parent=this,this.valueRange=i.Range.copy(l.valueRange);const h=l.range.start-l.context.lineStart;let d=t;d=i.Node.normalizeOffset(o,d);let p=o[d],f=i.Node.endOfWhiteSpace(o,u)===d,g=!1;for(;p;){for(;"\n"===p||"#"===p;){if(f&&"\n"===p&&!g){const e=new r;if(d=e.parse({src:o},d),this.valueRange.end=d,d>=o.length){p=null;break}this.items.push(e),d-=1}else if("#"===p){if(d<u+h&&!c.nextContentHasIndent(o,d,h))return d;const e=new s;if(d=e.parse({indent:h,lineStart:u,src:o},d),this.items.push(e),this.valueRange.end=d,d>=o.length){p=null;break}}if(u=d+1,d=i.Node.endOfIndent(o,u),i.Node.atBlank(o,d)){const e=i.Node.endOfWhiteSpace(o,d),t=o[e];t&&"\n"!==t&&"#"!==t||(d=e)}p=o[d],f=!0}if(!p)break;if(d!==u+h&&(f||":"!==p)){if(d<u+h){u>t&&(d=u);break}if(!this.error){const e="All collection items must start at the same column";this.error=new i.YAMLSyntaxError(this,e)}}if(l.type===i.Type.SEQ_ITEM){if("-"!==p){u>t&&(d=u);break}}else if("-"===p&&!this.error){const e=o[d+1];if(!e||"\n"===e||"\t"===e||" "===e){const e="A collection cannot be both a mapping and a sequence";this.error=new i.YAMLSyntaxError(this,e)}}const e=n({atLineStart:f,inCollection:!0,indent:h,lineStart:u,parent:this},d);if(!e)return d;if(this.items.push(e),this.valueRange.end=e.valueRange.end,d=i.Node.normalizeOffset(o,e.range.end),p=o[d],f=!1,g=e.includesTrailingLines,p){let e=d-1,t=o[e];for(;" "===t||"\t"===t;)t=o[--e];"\n"===t&&(u=e+1,f=!0)}const m=a(e);m&&Array.prototype.push.apply(this.items,m)}return d}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.items.forEach((n=>{t=n.setOrigRanges(e,t)})),t}toString(){const{context:{src:e},items:t,range:n,value:r}=this;if(null!=r)return r;let o=e.slice(n.start,t[0].range.start)+String(t[0]);for(let e=1;e<t.length;++e){const n=t[e],{atLineStart:i,indent:r}=n.context;if(i)for(let e=0;e<r;++e)o+=" ";o+=String(n)}return i.Node.addStringTerminator(e,n.end,o)}}class u extends i.Node{constructor(){super(i.Type.DIRECTIVE),this.name=null}get parameters(){const e=this.rawValue;return e?e.trim().split(/[ \t]+/):[]}parseName(e){const{src:t}=this.context;let n=e,i=t[n];for(;i&&"\n"!==i&&"\t"!==i&&" "!==i;)i=t[n+=1];return this.name=t.slice(e,n),n}parseParameters(e){const{src:t}=this.context;let n=e,r=t[n];for(;r&&"\n"!==r&&"#"!==r;)r=t[n+=1];return this.valueRange=new i.Range(e,n),n}parse(e,t){this.context=e;let n=this.parseName(t+1);return n=this.parseParameters(n),n=this.parseComment(n),this.range=new i.Range(t,n),n}}class l extends i.Node{static startCommentOrEndBlankLine(e,t){const n=i.Node.endOfWhiteSpace(e,t),r=e[n];return"#"===r||"\n"===r?n:t}constructor(){super(i.Type.DOCUMENT),this.directives=null,this.contents=null,this.directivesEndMarker=null,this.documentEndMarker=null}parseDirectives(e){const{src:t}=this.context;this.directives=[];let n=!0,o=!1,a=e;for(;!i.Node.atDocumentBoundary(t,a,i.Char.DIRECTIVES_END);)switch(a=l.startCommentOrEndBlankLine(t,a),t[a]){case"\n":if(n){const e=new r;a=e.parse({src:t},a),a<t.length&&this.directives.push(e)}else a+=1,n=!0;break;case"#":{const e=new s;a=e.parse({src:t},a),this.directives.push(e),n=!1}break;case"%":{const e=new u;a=e.parse({parent:this,src:t},a),this.directives.push(e),o=!0,n=!1}break;default:return o?this.error=new i.YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),a}return t[a]?(this.directivesEndMarker=new i.Range(a,a+3),a+3):(o?this.error=new i.YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),a)}parseContents(e){const{parseNode:t,src:n}=this.context;this.contents||(this.contents=[]);let o=e;for(;"-"===n[o-1];)o-=1;let c=i.Node.endOfWhiteSpace(n,e),u=o===e;for(this.valueRange=new i.Range(c);!i.Node.atDocumentBoundary(n,c,i.Char.DOCUMENT_END);){switch(n[c]){case"\n":if(u){const e=new r;c=e.parse({src:n},c),c<n.length&&this.contents.push(e)}else c+=1,u=!0;o=c;break;case"#":{const e=new s;c=e.parse({src:n},c),this.contents.push(e),u=!1}break;default:{const e=i.Node.endOfIndent(n,c),r=t({atLineStart:u,indent:-1,inFlow:!1,inCollection:!1,lineStart:o,parent:this},e);if(!r)return this.valueRange.end=e;this.contents.push(r),c=r.range.end,u=!1;const s=a(r);s&&Array.prototype.push.apply(this.contents,s)}}c=l.startCommentOrEndBlankLine(n,c)}if(this.valueRange.end=c,n[c]&&(this.documentEndMarker=new i.Range(c,c+3),c+=3,n[c])){if(c=i.Node.endOfWhiteSpace(n,c),"#"===n[c]){const e=new s;c=e.parse({src:n},c),this.contents.push(e)}switch(n[c]){case"\n":c+=1;break;case void 0:break;default:this.error=new i.YAMLSyntaxError(this,"Document end marker line cannot have a non-comment suffix")}}return c}parse(e,t){e.root=this,this.context=e;const{src:n}=e;let i=65279===n.charCodeAt(t)?t+1:t;return i=this.parseDirectives(i),i=this.parseContents(i),i}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.directives.forEach((n=>{t=n.setOrigRanges(e,t)})),this.directivesEndMarker&&(t=this.directivesEndMarker.setOrigRange(e,t)),this.contents.forEach((n=>{t=n.setOrigRanges(e,t)})),this.documentEndMarker&&(t=this.documentEndMarker.setOrigRange(e,t)),t}toString(){const{contents:e,directives:t,value:n}=this;if(null!=n)return n;let r=t.join("");return e.length>0&&((t.length>0||e[0].type===i.Type.COMMENT)&&(r+="---\n"),r+=e.join("")),"\n"!==r[r.length-1]&&(r+="\n"),r}}class h extends i.Node{parse(e,t){this.context=e;const{src:n}=e;let r=i.Node.endOfIdentifier(n,t+1);return this.valueRange=new i.Range(t+1,r),r=i.Node.endOfWhiteSpace(n,r),r=this.parseComment(r),r}}const d="KEEP",p="STRIP";class f extends i.Node{constructor(e,t){super(e,t),this.blockIndent=null,this.chomping="CLIP",this.header=null}get includesTrailingLines(){return this.chomping===d}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:t}=this.valueRange;const{indent:n,src:r}=this.context;if(this.valueRange.isEmpty())return"";let o=null,s=r[t-1];for(;"\n"===s||"\t"===s||" "===s;){if(t-=1,t<=e){if(this.chomping===d)break;return""}"\n"===s&&(o=t),s=r[t-1]}let a=t+1;o&&(this.chomping===d?(a=o,t=this.valueRange.end):t=o);const c=n+this.blockIndent,u=this.type===i.Type.BLOCK_FOLDED;let l=!0,h="",f="",g=!1;for(let n=e;n<t;++n){for(let e=0;e<c&&" "===r[n];++e)n+=1;const e=r[n];if("\n"===e)"\n"===f?h+="\n":f="\n";else{const o=i.Node.endOfLine(r,n),s=r.slice(n,o);n=o,u&&(" "===e||"\t"===e)&&n<a?(" "===f?f="\n":g||l||"\n"!==f||(f="\n\n"),h+=f+s,f=o<t&&r[o]||"",g=!0):(h+=f+s,f=u&&n<a?" ":"\n",g=!1),l&&""!==s&&(l=!1)}}return this.chomping===p?h:h+"\n"}parseBlockHeader(e){const{src:t}=this.context;let n=e+1,r="";for(;;){const o=t[n];switch(o){case"-":this.chomping=p;break;case"+":this.chomping=d;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":r+=o;break;default:return this.blockIndent=Number(r)||null,this.header=new i.Range(e,n),n}n+=1}}parseBlockValue(e){const{indent:t,src:n}=this.context,r=!!this.blockIndent;let o=e,s=e,a=1;for(let e=n[o];"\n"===e&&(o+=1,!i.Node.atDocumentBoundary(n,o));e=n[o]){const e=i.Node.endOfBlockIndent(n,t,o);if(null===e)break;const c=n[e],u=e-(o+t);if(this.blockIndent){if(c&&"\n"!==c&&u<this.blockIndent){if("#"===n[e])break;if(!this.error){const e="Block scalars must not be less indented than their "+(r?"explicit indentation indicator":"first line");this.error=new i.YAMLSemanticError(this,e)}}}else if("\n"!==n[e]){if(u<a){const e="Block scalars with more-indented leading empty lines must use an explicit indentation indicator";this.error=new i.YAMLSemanticError(this,e)}this.blockIndent=u}else u>a&&(a=u);o="\n"===n[e]?e:s=i.Node.endOfLine(n,e)}return this.chomping!==d&&(o=n[s]?s+1:s),this.valueRange=new i.Range(e+1,o),o}parse(e,t){this.context=e;const{src:n}=e;let r=this.parseBlockHeader(t);return r=i.Node.endOfWhiteSpace(n,r),r=this.parseComment(r),r=this.parseBlockValue(r),r}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.header?this.header.setOrigRange(e,t):t}}class g extends i.Node{constructor(e,t){super(e,t),this.items=null}prevNodeIsJsonLike(e=this.items.length){const t=this.items[e-1];return!!t&&(t.jsonLike||t.type===i.Type.COMMENT&&this.prevNodeIsJsonLike(e-1))}parse(e,t){this.context=e;const{parseNode:n,src:o}=e;let{indent:a,lineStart:c}=e,u=o[t];this.items=[{char:u,offset:t}];let l=i.Node.endOfWhiteSpace(o,t+1);for(u=o[l];u&&"]"!==u&&"}"!==u;){switch(u){case"\n":if(c=l+1,"\n"===o[i.Node.endOfWhiteSpace(o,c)]){const e=new r;c=e.parse({src:o},c),this.items.push(e)}if(l=i.Node.endOfIndent(o,c),l<=c+a&&(u=o[l],l<c+a||"]"!==u&&"}"!==u)){const e="Insufficient indentation in flow collection";this.error=new i.YAMLSemanticError(this,e)}break;case",":this.items.push({char:u,offset:l}),l+=1;break;case"#":{const e=new s;l=e.parse({src:o},l),this.items.push(e)}break;case"?":case":":{const e=o[l+1];if("\n"===e||"\t"===e||" "===e||","===e||":"===u&&this.prevNodeIsJsonLike()){this.items.push({char:u,offset:l}),l+=1;break}}default:{const e=n({atLineStart:!1,inCollection:!1,inFlow:!0,indent:-1,lineStart:c,parent:this},l);if(!e)return this.valueRange=new i.Range(t,l),l;this.items.push(e),l=i.Node.normalizeOffset(o,e.range.end)}}l=i.Node.endOfWhiteSpace(o,l),u=o[l]}return this.valueRange=new i.Range(t,l+1),u&&(this.items.push({char:u,offset:l}),l=i.Node.endOfWhiteSpace(o,l+1),l=this.parseComment(l)),l}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.items.forEach((n=>{if(n instanceof i.Node)t=n.setOrigRanges(e,t);else if(0===e.length)n.origOffset=n.offset;else{let i=t;for(;i<e.length&&!(e[i]>n.offset);)++i;n.origOffset=n.offset+i,t=i}})),t}toString(){const{context:{src:e},items:t,range:n,value:r}=this;if(null!=r)return r;const o=t.filter((e=>e instanceof i.Node));let s="",a=n.start;return o.forEach((t=>{const n=e.slice(a,t.range.start);a=t.range.end,s+=n+String(t),"\n"===s[s.length-1]&&"\n"!==e[a-1]&&"\n"===e[a]&&(a+=1)})),s+=e.slice(a,n.end),i.Node.addStringTerminator(e,n.end,s)}}class m extends i.Node{static endOfQuote(e,t){let n=e[t];for(;n&&'"'!==n;)n=e[t+="\\"===n?2:1];return t+1}get strValue(){if(!this.valueRange||!this.context)return null;const e=[],{start:t,end:n}=this.valueRange,{indent:r,src:o}=this.context;'"'!==o[n-1]&&e.push(new i.YAMLSyntaxError(this,'Missing closing "quote'));let s="";for(let a=t+1;a<n-1;++a){const t=o[a];if("\n"===t){i.Node.atDocumentBoundary(o,a+1)&&e.push(new i.YAMLSemanticError(this,"Document boundary indicators are not allowed within string values"));const{fold:t,offset:n,error:c}=i.Node.foldNewline(o,a,r);s+=t,a=n,c&&e.push(new i.YAMLSemanticError(this,"Multi-line double-quoted string needs to be sufficiently indented"))}else if("\\"===t)switch(a+=1,o[a]){case"0":s+="\0";break;case"a":s+="";break;case"b":s+="\b";break;case"e":s+="";break;case"f":s+="\f";break;case"n":s+="\n";break;case"r":s+="\r";break;case"t":case"\t":s+="\t";break;case"v":s+="\v";break;case"N":s+="…";break;case"_":s+=" ";break;case"L":s+="\u2028";break;case"P":s+="\u2029";break;case" ":s+=" ";break;case'"':s+='"';break;case"/":s+="/";break;case"\\":s+="\\";break;case"x":s+=this.parseCharCode(a+1,2,e),a+=2;break;case"u":s+=this.parseCharCode(a+1,4,e),a+=4;break;case"U":s+=this.parseCharCode(a+1,8,e),a+=8;break;case"\n":for(;" "===o[a+1]||"\t"===o[a+1];)a+=1;break;default:e.push(new i.YAMLSyntaxError(this,`Invalid escape sequence ${o.substr(a-1,2)}`)),s+="\\"+o[a]}else if(" "===t||"\t"===t){const e=a;let n=o[a+1];for(;" "===n||"\t"===n;)a+=1,n=o[a+1];"\n"!==n&&(s+=a>e?o.slice(e,a+1):t)}else s+=t}return e.length>0?{errors:e,str:s}:s}parseCharCode(e,t,n){const{src:r}=this.context,o=r.substr(e,t),s=o.length===t&&/^[0-9a-fA-F]+$/.test(o)?parseInt(o,16):NaN;return isNaN(s)?(n.push(new i.YAMLSyntaxError(this,`Invalid escape sequence ${r.substr(e-2,t+2)}`)),r.substr(e-2,t+2)):String.fromCodePoint(s)}parse(e,t){this.context=e;const{src:n}=e;let r=m.endOfQuote(n,t+1);return this.valueRange=new i.Range(t,r),r=i.Node.endOfWhiteSpace(n,r),r=this.parseComment(r),r}}class y extends i.Node{static endOfQuote(e,t){let n=e[t];for(;n;)if("'"===n){if("'"!==e[t+1])break;n=e[t+=2]}else n=e[t+=1];return t+1}get strValue(){if(!this.valueRange||!this.context)return null;const e=[],{start:t,end:n}=this.valueRange,{indent:r,src:o}=this.context;"'"!==o[n-1]&&e.push(new i.YAMLSyntaxError(this,"Missing closing 'quote"));let s="";for(let a=t+1;a<n-1;++a){const t=o[a];if("\n"===t){i.Node.atDocumentBoundary(o,a+1)&&e.push(new i.YAMLSemanticError(this,"Document boundary indicators are not allowed within string values"));const{fold:t,offset:n,error:c}=i.Node.foldNewline(o,a,r);s+=t,a=n,c&&e.push(new i.YAMLSemanticError(this,"Multi-line single-quoted string needs to be sufficiently indented"))}else if("'"===t)s+=t,a+=1,"'"!==o[a]&&e.push(new i.YAMLSyntaxError(this,"Unescaped single quote? This should not happen."));else if(" "===t||"\t"===t){const e=a;let n=o[a+1];for(;" "===n||"\t"===n;)a+=1,n=o[a+1];"\n"!==n&&(s+=a>e?o.slice(e,a+1):t)}else s+=t}return e.length>0?{errors:e,str:s}:s}parse(e,t){this.context=e;const{src:n}=e;let r=y.endOfQuote(n,t+1);return this.valueRange=new i.Range(t,r),r=i.Node.endOfWhiteSpace(n,r),r=this.parseComment(r),r}}class v{static parseType(e,t,n){switch(e[t]){case"*":return i.Type.ALIAS;case">":return i.Type.BLOCK_FOLDED;case"|":return i.Type.BLOCK_LITERAL;case"{":return i.Type.FLOW_MAP;case"[":return i.Type.FLOW_SEQ;case"?":return!n&&i.Node.atBlank(e,t+1,!0)?i.Type.MAP_KEY:i.Type.PLAIN;case":":return!n&&i.Node.atBlank(e,t+1,!0)?i.Type.MAP_VALUE:i.Type.PLAIN;case"-":return!n&&i.Node.atBlank(e,t+1,!0)?i.Type.SEQ_ITEM:i.Type.PLAIN;case'"':return i.Type.QUOTE_DOUBLE;case"'":return i.Type.QUOTE_SINGLE;default:return i.Type.PLAIN}}constructor(e={},{atLineStart:t,inCollection:n,inFlow:r,indent:s,lineStart:a,parent:u}={}){i._defineProperty(this,"parseNode",((e,t)=>{if(i.Node.atDocumentBoundary(this.src,t))return null;const n=new v(this,e),{props:r,type:s,valueStart:a}=n.parseProps(t),u=function(e,t){switch(e){case i.Type.ALIAS:return new h(e,t);case i.Type.BLOCK_FOLDED:case i.Type.BLOCK_LITERAL:return new f(e,t);case i.Type.FLOW_MAP:case i.Type.FLOW_SEQ:return new g(e,t);case i.Type.MAP_KEY:case i.Type.MAP_VALUE:case i.Type.SEQ_ITEM:return new o(e,t);case i.Type.COMMENT:case i.Type.PLAIN:return new i.PlainValue(e,t);case i.Type.QUOTE_DOUBLE:return new m(e,t);case i.Type.QUOTE_SINGLE:return new y(e,t);default:return null}}(s,r);let l=u.parse(n,a);if(u.range=new i.Range(t,l),l<=t&&(u.error=new Error("Node#parse consumed no characters"),u.error.parseEnd=l,u.error.source=u,u.range.end=t+1),n.nodeStartsCollection(u)){u.error||n.atLineStart||n.parent.type!==i.Type.DOCUMENT||(u.error=new i.YAMLSyntaxError(u,"Block collection must not have preceding content here (e.g. directives-end indicator)"));const e=new c(u);return l=e.parse(new v(n),l),e.range=new i.Range(t,l),e}return u})),this.atLineStart=null!=t?t:e.atLineStart||!1,this.inCollection=null!=n?n:e.inCollection||!1,this.inFlow=null!=r?r:e.inFlow||!1,this.indent=null!=s?s:e.indent,this.lineStart=null!=a?a:e.lineStart,this.parent=null!=u?u:e.parent||{},this.root=e.root,this.src=e.src}nodeStartsCollection(e){const{inCollection:t,inFlow:n,src:r}=this;if(t||n)return!1;if(e instanceof o)return!0;let s=e.range.end;return"\n"!==r[s]&&"\n"!==r[s-1]&&(s=i.Node.endOfWhiteSpace(r,s),":"===r[s])}parseProps(e){const{inFlow:t,parent:n,src:r}=this,o=[];let s=!1,a=r[e=this.atLineStart?i.Node.endOfIndent(r,e):i.Node.endOfWhiteSpace(r,e)];for(;a===i.Char.ANCHOR||a===i.Char.COMMENT||a===i.Char.TAG||"\n"===a;){if("\n"===a){let t,o=e;do{t=o+1,o=i.Node.endOfIndent(r,t)}while("\n"===r[o]);const a=o-(t+this.indent),c=n.type===i.Type.SEQ_ITEM&&n.context.atLineStart;if("#"!==r[o]&&!i.Node.nextNodeIsIndented(r[o],a,!c))break;this.atLineStart=!0,this.lineStart=t,s=!1,e=o}else if(a===i.Char.COMMENT){const t=i.Node.endOfLine(r,e+1);o.push(new i.Range(e,t)),e=t}else{let t=i.Node.endOfIdentifier(r,e+1);a===i.Char.TAG&&","===r[t]&&/^[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+,\d\d\d\d(-\d\d){0,2}\/\S/.test(r.slice(e+1,t+13))&&(t=i.Node.endOfIdentifier(r,t+5)),o.push(new i.Range(e,t)),s=!0,e=i.Node.endOfWhiteSpace(r,t)}a=r[e]}return s&&":"===a&&i.Node.atBlank(r,e+1,!0)&&(e-=1),{props:o,type:v.parseType(r,e,t),valueStart:e}}}t.parse=function(e){const t=[];-1!==e.indexOf("\r")&&(e=e.replace(/\r\n?/g,((e,n)=>(e.length>1&&t.push(n),"\n"))));const n=[];let i=0;do{const t=new l,r=new v({src:e});i=t.parse(r,i),n.push(t)}while(i<e.length);return n.setOrigRanges=()=>{if(0===t.length)return!1;for(let e=1;e<t.length;++e)t[e]-=e;let e=0;for(let i=0;i<n.length;++i)e=n[i].setOrigRanges(t,e);return t.splice(0,t.length),!0},n.toString=()=>n.join("...\n"),n}},6314:(e,t,n)=>{"use strict";var i=n(8487);function r(e,t,n){return n?-1===n.indexOf("\n")?`${e} #${n}`:`${e}\n`+n.replace(/^/gm,`${t||""}#`):e}class o{}function s(e,t,n){if(Array.isArray(e))return e.map(((e,t)=>s(e,String(t),n)));if(e&&"function"==typeof e.toJSON){const i=n&&n.anchors&&n.anchors.get(e);i&&(n.onCreate=e=>{i.res=e,delete n.onCreate});const r=e.toJSON(t,n);return i&&n.onCreate&&n.onCreate(r),r}return n&&n.keep||"bigint"!=typeof e?e:Number(e)}class a extends o{constructor(e){super(),this.value=e}toJSON(e,t){return t&&t.keep?this.value:s(this.value,e,t)}toString(){return String(this.value)}}function c(e,t,n){let i=n;for(let e=t.length-1;e>=0;--e){const n=t[e];if(Number.isInteger(n)&&n>=0){const e=[];e[n]=i,i=e}else{const e={};Object.defineProperty(e,n,{value:i,writable:!0,enumerable:!0,configurable:!0}),i=e}}return e.createNode(i,!1)}const u=e=>null==e||"object"==typeof e&&e[Symbol.iterator]().next().done;class l extends o{constructor(e){super(),i._defineProperty(this,"items",[]),this.schema=e}addIn(e,t){if(u(e))this.add(t);else{const[n,...i]=e,r=this.get(n,!0);if(r instanceof l)r.addIn(i,t);else{if(void 0!==r||!this.schema)throw new Error(`Expected YAML collection at ${n}. Remaining path: ${i}`);this.set(n,c(this.schema,i,t))}}}deleteIn([e,...t]){if(0===t.length)return this.delete(e);const n=this.get(e,!0);if(n instanceof l)return n.deleteIn(t);throw new Error(`Expected YAML collection at ${e}. Remaining path: ${t}`)}getIn([e,...t],n){const i=this.get(e,!0);return 0===t.length?!n&&i instanceof a?i.value:i:i instanceof l?i.getIn(t,n):void 0}hasAllNullValues(){return this.items.every((e=>{if(!e||"PAIR"!==e.type)return!1;const t=e.value;return null==t||t instanceof a&&null==t.value&&!t.commentBefore&&!t.comment&&!t.tag}))}hasIn([e,...t]){if(0===t.length)return this.has(e);const n=this.get(e,!0);return n instanceof l&&n.hasIn(t)}setIn([e,...t],n){if(0===t.length)this.set(e,n);else{const i=this.get(e,!0);if(i instanceof l)i.setIn(t,n);else{if(void 0!==i||!this.schema)throw new Error(`Expected YAML collection at ${e}. Remaining path: ${t}`);this.set(e,c(this.schema,t,n))}}}toJSON(){return null}toString(e,{blockItem:t,flowChars:n,isMap:o,itemIndent:s},a,c){const{indent:u,indentStep:h,stringify:d}=e,p=this.type===i.Type.FLOW_MAP||this.type===i.Type.FLOW_SEQ||e.inFlow;p&&(s+=h);const f=o&&this.hasAllNullValues();e=Object.assign({},e,{allNullValues:f,indent:s,inFlow:p,type:null});let g=!1,m=!1;const y=this.items.reduce(((t,n,i)=>{let o;n&&(!g&&n.spaceBefore&&t.push({type:"comment",str:""}),n.commentBefore&&n.commentBefore.match(/^.*$/gm).forEach((e=>{t.push({type:"comment",str:`#${e}`})})),n.comment&&(o=n.comment),p&&(!g&&n.spaceBefore||n.commentBefore||n.comment||n.key&&(n.key.commentBefore||n.key.comment)||n.value&&(n.value.commentBefore||n.value.comment))&&(m=!0)),g=!1;let a=d(n,e,(()=>o=null),(()=>g=!0));return p&&!m&&a.includes("\n")&&(m=!0),p&&i<this.items.length-1&&(a+=","),a=r(a,s,o),g&&(o||p)&&(g=!1),t.push({type:"item",str:a}),t}),[]);let v;if(0===y.length)v=n.start+n.end;else if(p){const{start:e,end:t}=n,i=y.map((e=>e.str));if(m||i.reduce(((e,t)=>e+t.length+2),2)>l.maxFlowStringSingleLineLength){v=e;for(const e of i)v+=e?`\n${h}${u}${e}`:"\n";v+=`\n${u}${t}`}else v=`${e} ${i.join(" ")} ${t}`}else{const e=y.map(t);v=e.shift();for(const t of e)v+=t?`\n${u}${t}`:"\n"}return this.comment?(v+="\n"+this.comment.replace(/^/gm,`${u}#`),a&&a()):g&&c&&c(),v}}function h(e){let t=e instanceof a?e.value:e;return t&&"string"==typeof t&&(t=Number(t)),Number.isInteger(t)&&t>=0?t:null}i._defineProperty(l,"maxFlowStringSingleLineLength",60);class d extends l{add(e){this.items.push(e)}delete(e){const t=h(e);return"number"==typeof t&&this.items.splice(t,1).length>0}get(e,t){const n=h(e);if("number"!=typeof n)return;const i=this.items[n];return!t&&i instanceof a?i.value:i}has(e){const t=h(e);return"number"==typeof t&&t<this.items.length}set(e,t){const n=h(e);if("number"!=typeof n)throw new Error(`Expected a valid index, not ${e}.`);this.items[n]=t}toJSON(e,t){const n=[];t&&t.onCreate&&t.onCreate(n);let i=0;for(const e of this.items)n.push(s(e,String(i++),t));return n}toString(e,t,n){return e?super.toString(e,{blockItem:e=>"comment"===e.type?e.str:`- ${e.str}`,flowChars:{start:"[",end:"]"},isMap:!1,itemIndent:(e.indent||"")+" "},t,n):JSON.stringify(this)}}class p extends o{constructor(e,t=null){super(),this.key=e,this.value=t,this.type=p.Type.PAIR}get commentBefore(){return this.key instanceof o?this.key.commentBefore:void 0}set commentBefore(e){if(null==this.key&&(this.key=new a(null)),!(this.key instanceof o))throw new Error("Pair.commentBefore is an alias for Pair.key.commentBefore. To set it, the key must be a Node.");this.key.commentBefore=e}addToJSMap(e,t){const n=s(this.key,"",e);if(t instanceof Map){const i=s(this.value,n,e);t.set(n,i)}else if(t instanceof Set)t.add(n);else{const i=((e,t,n)=>null===t?"":"object"!=typeof t?String(t):e instanceof o&&n&&n.doc?e.toString({anchors:Object.create(null),doc:n.doc,indent:"",indentStep:n.indentStep,inFlow:!0,inStringifyKey:!0,stringify:n.stringify}):JSON.stringify(t))(this.key,n,e),r=s(this.value,i,e);i in t?Object.defineProperty(t,i,{value:r,writable:!0,enumerable:!0,configurable:!0}):t[i]=r}return t}toJSON(e,t){const n=t&&t.mapAsMap?new Map:{};return this.addToJSMap(t,n)}toString(e,t,n){if(!e||!e.doc)return JSON.stringify(this);const{indent:s,indentSeq:c,simpleKeys:u}=e.doc.options;let{key:h,value:p}=this,f=h instanceof o&&h.comment;if(u){if(f)throw new Error("With simple keys, key nodes cannot have comments");if(h instanceof l)throw new Error("With simple keys, collection cannot be used as a key value")}let g=!u&&(!h||f||(h instanceof o?h instanceof l||h.type===i.Type.BLOCK_FOLDED||h.type===i.Type.BLOCK_LITERAL:"object"==typeof h));const{doc:m,indent:y,indentStep:v,stringify:C}=e;e=Object.assign({},e,{implicitKey:!g,indent:y+v});let S=!1,b=C(h,e,(()=>f=null),(()=>S=!0));if(b=r(b,e.indent,f),!g&&b.length>1024){if(u)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");g=!0}if(e.allNullValues&&!u)return this.comment?(b=r(b,e.indent,this.comment),t&&t()):S&&!f&&n&&n(),e.inFlow&&!g?b:`? ${b}`;b=g?`? ${b}\n${y}:`:`${b}:`,this.comment&&(b=r(b,e.indent,this.comment),t&&t());let E="",w=null;p instanceof o?(p.spaceBefore&&(E="\n"),p.commentBefore&&(E+=`\n${p.commentBefore.replace(/^/gm,`${e.indent}#`)}`),w=p.comment):p&&"object"==typeof p&&(p=m.schema.createNode(p,!0)),e.implicitKey=!1,!g&&!this.comment&&p instanceof a&&(e.indentAtStart=b.length+1),S=!1,!c&&s>=2&&!e.inFlow&&!g&&p instanceof d&&p.type!==i.Type.FLOW_SEQ&&!p.tag&&!m.anchors.getName(p)&&(e.indent=e.indent.substr(2));const D=C(p,e,(()=>w=null),(()=>S=!0));let x=" ";return E||this.comment?x=`${E}\n${e.indent}`:!g&&p instanceof l?("["===D[0]||"{"===D[0])&&!D.includes("\n")||(x=`\n${e.indent}`):"\n"===D[0]&&(x=""),S&&!w&&n&&n(),r(b+x+D,e.indent,w)}}i._defineProperty(p,"Type",{PAIR:"PAIR",MERGE_PAIR:"MERGE_PAIR"});const f=(e,t)=>{if(e instanceof g){const n=t.get(e.source);return n.count*n.aliasCount}if(e instanceof l){let n=0;for(const i of e.items){const e=f(i,t);e>n&&(n=e)}return n}if(e instanceof p){const n=f(e.key,t),i=f(e.value,t);return Math.max(n,i)}return 1};class g extends o{static stringify({range:e,source:t},{anchors:n,doc:i,implicitKey:r,inStringifyKey:o}){let s=Object.keys(n).find((e=>n[e]===t));if(!s&&o&&(s=i.anchors.getName(t)||i.anchors.newName()),s)return`*${s}${r?" ":""}`;const a=i.anchors.getName(t)?"Alias node must be after source node":"Source node not found for alias node";throw new Error(`${a} [${e}]`)}constructor(e){super(),this.source=e,this.type=i.Type.ALIAS}set tag(e){throw new Error("Alias nodes cannot have tags")}toJSON(e,t){if(!t)return s(this.source,e,t);const{anchors:n,maxAliasCount:r}=t,o=n.get(this.source);if(!o||void 0===o.res){const e="This should not happen: Alias anchor was not resolved?";throw this.cstNode?new i.YAMLReferenceError(this.cstNode,e):new ReferenceError(e)}if(r>=0&&(o.count+=1,0===o.aliasCount&&(o.aliasCount=f(this.source,n)),o.count*o.aliasCount>r)){const e="Excessive alias count indicates a resource exhaustion attack";throw this.cstNode?new i.YAMLReferenceError(this.cstNode,e):new ReferenceError(e)}return o.res}toString(e){return g.stringify(this,e)}}function m(e,t){const n=t instanceof a?t.value:t;for(const i of e)if(i instanceof p){if(i.key===t||i.key===n)return i;if(i.key&&i.key.value===n)return i}}i._defineProperty(g,"default",!0);class y extends l{add(e,t){e?e instanceof p||(e=new p(e.key||e,e.value)):e=new p(e);const n=m(this.items,e.key),i=this.schema&&this.schema.sortMapEntries;if(n){if(!t)throw new Error(`Key ${e.key} already set`);n.value=e.value}else if(i){const t=this.items.findIndex((t=>i(e,t)<0));-1===t?this.items.push(e):this.items.splice(t,0,e)}else this.items.push(e)}delete(e){const t=m(this.items,e);return!!t&&this.items.splice(this.items.indexOf(t),1).length>0}get(e,t){const n=m(this.items,e),i=n&&n.value;return!t&&i instanceof a?i.value:i}has(e){return!!m(this.items,e)}set(e,t){this.add(new p(e,t),!0)}toJSON(e,t,n){const i=n?new n:t&&t.mapAsMap?new Map:{};t&&t.onCreate&&t.onCreate(i);for(const e of this.items)e.addToJSMap(t,i);return i}toString(e,t,n){if(!e)return JSON.stringify(this);for(const e of this.items)if(!(e instanceof p))throw new Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return super.toString(e,{blockItem:e=>e.str,flowChars:{start:"{",end:"}"},isMap:!0,itemIndent:e.indent||""},t,n)}}class v extends p{constructor(e){if(e instanceof p){let t=e.value;t instanceof d||(t=new d,t.items.push(e.value),t.range=e.value.range),super(e.key,t),this.range=e.range}else super(new a("<<"),new d);this.type=p.Type.MERGE_PAIR}addToJSMap(e,t){for(const{source:n}of this.value.items){if(!(n instanceof y))throw new Error("Merge sources must be maps");const i=n.toJSON(null,e,Map);for(const[e,n]of i)t instanceof Map?t.has(e)||t.set(e,n):t instanceof Set?t.add(e):Object.prototype.hasOwnProperty.call(t,e)||Object.defineProperty(t,e,{value:n,writable:!0,enumerable:!0,configurable:!0})}return t}toString(e,t){const n=this.value;if(n.items.length>1)return super.toString(e,t);this.value=n.items[0];const i=super.toString(e,t);return this.value=n,i}}const C={defaultType:i.Type.BLOCK_LITERAL,lineWidth:76},S={defaultType:i.Type.PLAIN,doubleQuoted:{jsonEncoding:!1,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}};function b(e,t,n){for(const{format:n,test:i,resolve:r}of t)if(i){const t=e.match(i);if(t){let e=r.apply(null,t);return e instanceof a||(e=new a(e)),n&&(e.format=n),e}}return n&&(e=n(e)),new a(e)}const E="flow",w="block",D="quoted",x=(e,t)=>{let n=e[t+1];for(;" "===n||"\t"===n;){do{n=e[t+=1]}while(n&&"\n"!==n);n=e[t+1]}return t};function _(e,t,n,{indentAtStart:i,lineWidth:r=80,minContentWidth:o=20,onFold:s,onOverflow:a}){if(!r||r<0)return e;const c=Math.max(1+o,1+r-t.length);if(e.length<=c)return e;const u=[],l={};let h,d,p=r-t.length;"number"==typeof i&&(i>r-Math.max(2,o)?u.push(0):p=r-i);let f,g=!1,m=-1,y=-1,v=-1;for(n===w&&(m=x(e,m),-1!==m&&(p=m+c));f=e[m+=1];){if(n===D&&"\\"===f){switch(y=m,e[m+1]){case"x":m+=3;break;case"u":m+=5;break;case"U":m+=9;break;default:m+=1}v=m}if("\n"===f)n===w&&(m=x(e,m)),p=m+c,h=void 0;else{if(" "===f&&d&&" "!==d&&"\n"!==d&&"\t"!==d){const t=e[m+1];t&&" "!==t&&"\n"!==t&&"\t"!==t&&(h=m)}if(m>=p)if(h)u.push(h),p=h+c,h=void 0;else if(n===D){for(;" "===d||"\t"===d;)d=f,f=e[m+=1],g=!0;const t=m>v+1?m-2:y-1;if(l[t])return e;u.push(t),l[t]=!0,p=t+c,h=void 0}else g=!0}d=f}if(g&&a&&a(),0===u.length)return e;s&&s();let C=e.slice(0,u[0]);for(let i=0;i<u.length;++i){const r=u[i],o=u[i+1]||e.length;0===r?C=`\n${t}${e.slice(0,o)}`:(n===D&&l[r]&&(C+=`${e[r]}\\`),C+=`\n${t}${e.slice(r+1,o)}`)}return C}const T=({indentAtStart:e})=>e?Object.assign({indentAtStart:e},S.fold):S.fold,k=e=>/^(%|---|\.\.\.)/m.test(e);function F(e,t){const{implicitKey:n}=t,{jsonEncoding:i,minMultiLineLength:r}=S.doubleQuoted,o=JSON.stringify(e);if(i)return o;const s=t.indent||(k(e)?" ":"");let a="",c=0;for(let e=0,t=o[e];t;t=o[++e])if(" "===t&&"\\"===o[e+1]&&"n"===o[e+2]&&(a+=o.slice(c,e)+"\\ ",e+=1,c=e,t="\\"),"\\"===t)switch(o[e+1]){case"u":{a+=o.slice(c,e);const t=o.substr(e+2,4);switch(t){case"0000":a+="\\0";break;case"0007":a+="\\a";break;case"000b":a+="\\v";break;case"001b":a+="\\e";break;case"0085":a+="\\N";break;case"00a0":a+="\\_";break;case"2028":a+="\\L";break;case"2029":a+="\\P";break;default:"00"===t.substr(0,2)?a+="\\x"+t.substr(2):a+=o.substr(e,6)}e+=5,c=e+1}break;case"n":if(n||'"'===o[e+2]||o.length<r)e+=1;else{for(a+=o.slice(c,e)+"\n\n";"\\"===o[e+2]&&"n"===o[e+3]&&'"'!==o[e+4];)a+="\n",e+=2;a+=s," "===o[e+2]&&(a+="\\"),e+=1,c=e+1}break;default:e+=1}return a=c?a+o.slice(c):o,n?a:_(a,s,D,T(t))}function A(e,t){if(t.implicitKey){if(/\n/.test(e))return F(e,t)}else if(/[ \t]\n|\n[ \t]/.test(e))return F(e,t);const n=t.indent||(k(e)?" ":""),i="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&\n${n}`)+"'";return t.implicitKey?i:_(i,n,E,T(t))}function R({comment:e,type:t,value:n},r,o,s){if(/\n[\t ]+$/.test(n)||/^\s*$/.test(n))return F(n,r);const a=r.indent||(r.forceBlockIndent||k(n)?" ":""),c=a?"2":"1",u=t!==i.Type.BLOCK_FOLDED&&(t===i.Type.BLOCK_LITERAL||!function(e,t,n){if(!t||t<0)return!1;const i=t-n,r=e.length;if(r<=i)return!1;for(let t=0,n=0;t<r;++t)if("\n"===e[t]){if(t-n>i)return!0;if(n=t+1,r-n<=i)return!1}return!0}(n,S.fold.lineWidth,a.length));let l=u?"|":">";if(!n)return l+"\n";let h="",d="";if(n=n.replace(/[\n\t ]*$/,(e=>{const t=e.indexOf("\n");return-1===t?l+="-":n!==e&&t===e.length-1||(l+="+",s&&s()),d=e.replace(/\n$/,""),""})).replace(/^[\n ]*/,(e=>{-1!==e.indexOf(" ")&&(l+=c);const t=e.match(/ +$/);return t?(h=e.slice(0,-t[0].length),t[0]):(h=e,"")})),d&&(d=d.replace(/\n+(?!\n|$)/g,`$&${a}`)),h&&(h=h.replace(/\n+/g,`$&${a}`)),e&&(l+=" #"+e.replace(/ ?[\r\n]+/g," "),o&&o()),!n)return`${l}${c}\n${a}${d}`;if(u)return n=n.replace(/\n+/g,`$&${a}`),`${l}\n${a}${h}${n}${d}`;n=n.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${a}`);const p=_(`${h}${n}${d}`,a,w,S.fold);return`${l}\n${a}${p}`}function O(e,t){let n,r,o;switch(t.type){case i.Type.FLOW_MAP:n="}",r="flow map";break;case i.Type.FLOW_SEQ:n="]",r="flow sequence";break;default:return void e.push(new i.YAMLSemanticError(t,"Not a flow collection!?"))}for(let e=t.items.length-1;e>=0;--e){const n=t.items[e];if(!n||n.type!==i.Type.COMMENT){o=n;break}}if(o&&o.char!==n){const s=`Expected ${r} to end with ${n}`;let a;"number"==typeof o.offset?(a=new i.YAMLSemanticError(t,s),a.offset=o.offset+1):(a=new i.YAMLSemanticError(o,s),o.range&&o.range.end&&(a.offset=o.range.end-o.range.start)),e.push(a)}}function P(e,t){const n=t.context.src[t.range.start-1];if("\n"!==n&&"\t"!==n&&" "!==n){const n="Comments must be separated from other tokens by white space characters";e.push(new i.YAMLSemanticError(t,n))}}function M(e,t){const n=String(t),r=n.substr(0,8)+"..."+n.substr(-8);return new i.YAMLSemanticError(e,`The "${r}" key is too long`)}function N(e,t){for(const{afterKey:n,before:i,comment:r}of t){let t=e.items[i];t?(n&&t.value&&(t=t.value),void 0===r?!n&&t.commentBefore||(t.spaceBefore=!0):t.commentBefore?t.commentBefore+="\n"+r:t.commentBefore=r):void 0!==r&&(e.comment?e.comment+="\n"+r:e.comment=r)}}function I(e,t){const n=t.strValue;return n?"string"==typeof n?n:(n.errors.forEach((n=>{n.source||(n.source=t),e.errors.push(n)})),n.str):""}function L(e,t,n){const{tags:i}=e.schema,r=[];for(const o of i)if(o.tag===n){if(!o.test){const n=o.resolve(e,t);return n instanceof l?n:new a(n)}r.push(o)}const o=I(e,t);return"string"==typeof o&&r.length>0?b(o,r,i.scalarFallback):null}function j(e,t){if(!t)return null;t.error&&e.errors.push(t.error);const{comments:n,hasAnchor:r,hasTag:o}=function(e,t){const n={before:[],after:[]};let r=!1,o=!1;const s=(e=>{if(!e)return!1;const{type:t}=e;return t===i.Type.MAP_KEY||t===i.Type.MAP_VALUE||t===i.Type.SEQ_ITEM})(t.context.parent)?t.context.parent.props.concat(t.props):t.props;for(const{start:a,end:c}of s)switch(t.context.src[a]){case i.Char.COMMENT:{if(!t.commentHasRequiredWhitespace(a)){const n="Comments must be separated from other tokens by white space characters";e.push(new i.YAMLSemanticError(t,n))}const{header:r,valueRange:o}=t;(o&&(a>o.start||r&&a>r.start)?n.after:n.before).push(t.context.src.slice(a+1,c));break}case i.Char.ANCHOR:if(r){const n="A node can have at most one anchor";e.push(new i.YAMLSemanticError(t,n))}r=!0;break;case i.Char.TAG:if(o){const n="A node can have at most one tag";e.push(new i.YAMLSemanticError(t,n))}o=!0}return{comments:n,hasAnchor:r,hasTag:o}}(e.errors,t);if(r){const{anchors:n}=e,i=t.anchor,r=n.getNode(i);r&&(n.map[n.newName(i)]=r),n.map[i]=t}if(t.type===i.Type.ALIAS&&(r||o)){const n="An alias node must not specify any properties";e.errors.push(new i.YAMLSemanticError(t,n))}const s=function(e,t){const{anchors:n,errors:r,schema:o}=e;if(t.type===i.Type.ALIAS){const e=t.rawValue,o=n.getNode(e);if(!o){const n=`Aliased anchor not found: ${e}`;return r.push(new i.YAMLReferenceError(t,n)),null}const s=new g(o);return n._cstAliases.push(s),s}const s=function(e,t){const{tag:n,type:r}=t;let o=!1;if(n){const{handle:r,suffix:s,verbatim:a}=n;if(a){if("!"!==a&&"!!"!==a)return a;const n=`Verbatim tags aren't resolved, so ${a} is invalid.`;e.errors.push(new i.YAMLSemanticError(t,n))}else if("!"!==r||s)try{return function(e,t){const{handle:n,suffix:r}=t.tag;let o=e.tagPrefixes.find((e=>e.handle===n));if(!o){const r=e.getDefaults().tagPrefixes;if(r&&(o=r.find((e=>e.handle===n))),!o)throw new i.YAMLSemanticError(t,`The ${n} tag handle is non-default and was not declared.`)}if(!r)throw new i.YAMLSemanticError(t,`The ${n} tag has no suffix.`);if("!"===n&&"1.0"===(e.version||e.options.version)){if("^"===r[0])return e.warnings.push(new i.YAMLWarning(t,"YAML 1.0 ^ tag expansion is not supported")),r;if(/[:/]/.test(r)){const e=r.match(/^([a-z0-9-]+)\/(.*)/i);return e?`tag:${e[1]}.yaml.org,2002:${e[2]}`:`tag:${r}`}}return o.prefix+decodeURIComponent(r)}(e,t)}catch(t){e.errors.push(t)}else o=!0}switch(r){case i.Type.BLOCK_FOLDED:case i.Type.BLOCK_LITERAL:case i.Type.QUOTE_DOUBLE:case i.Type.QUOTE_SINGLE:return i.defaultTags.STR;case i.Type.FLOW_MAP:case i.Type.MAP:return i.defaultTags.MAP;case i.Type.FLOW_SEQ:case i.Type.SEQ:return i.defaultTags.SEQ;case i.Type.PLAIN:return o?i.defaultTags.STR:null;default:return null}}(e,t);if(s)return function(e,t,n){try{const i=L(e,t,n);if(i)return n&&t.tag&&(i.tag=n),i}catch(n){return n.source||(n.source=t),e.errors.push(n),null}try{const r=function({type:e}){switch(e){case i.Type.FLOW_MAP:case i.Type.MAP:return i.defaultTags.MAP;case i.Type.FLOW_SEQ:case i.Type.SEQ:return i.defaultTags.SEQ;default:return i.defaultTags.STR}}(t);if(!r)throw new Error(`The tag ${n} is unavailable`);const o=`The tag ${n} is unavailable, falling back to ${r}`;e.warnings.push(new i.YAMLWarning(t,o));const s=L(e,t,r);return s.tag=n,s}catch(n){const r=new i.YAMLReferenceError(t,n.message);return r.stack=n.stack,e.errors.push(r),null}}(e,t,s);if(t.type!==i.Type.PLAIN){const e=`Failed to resolve ${t.type} node here`;return r.push(new i.YAMLSyntaxError(t,e)),null}try{return b(I(e,t),o.tags,o.tags.scalarFallback)}catch(e){return e.source||(e.source=t),r.push(e),null}}(e,t);if(s){s.range=[t.range.start,t.range.end],e.options.keepCstNodes&&(s.cstNode=t),e.options.keepNodeTypes&&(s.type=t.type);const i=n.before.join("\n");i&&(s.commentBefore=s.commentBefore?`${s.commentBefore}\n${i}`:i);const r=n.after.join("\n");r&&(s.comment=s.comment?`${s.comment}\n${r}`:r)}return t.resolved=s}function B(e,t){if(!(({context:{lineStart:e,node:t,src:n},props:r})=>{if(0===r.length)return!1;const{start:o}=r[0];if(t&&o>t.valueRange.start)return!1;if(n[o]!==i.Char.COMMENT)return!1;for(let t=e;t<o;++t)if("\n"===n[t])return!1;return!0})(e))return;const n=e.getPropValue(0,i.Char.COMMENT,!0);let r=!1;const o=t.value.commentBefore;if(o&&o.startsWith(n))t.value.commentBefore=o.substr(n.length+1),r=!0;else{const i=t.value.comment;!e.node&&i&&i.startsWith(n)&&(t.value.comment=i.substr(n.length+1),r=!0)}r&&(t.comment=n)}t.Alias=g,t.Collection=l,t.Merge=v,t.Node=o,t.Pair=p,t.Scalar=a,t.YAMLMap=y,t.YAMLSeq=d,t.addComment=r,t.binaryOptions=C,t.boolOptions={trueStr:"true",falseStr:"false"},t.findPair=m,t.intOptions={asBigInt:!1},t.isEmptyPath=u,t.nullOptions={nullStr:"null"},t.resolveMap=function(e,t){if(t.type!==i.Type.MAP&&t.type!==i.Type.FLOW_MAP){const n=`A ${t.type} node cannot be resolved as a mapping`;return e.errors.push(new i.YAMLSyntaxError(t,n)),null}const{comments:n,items:r}=t.type===i.Type.FLOW_MAP?function(e,t){const n=[],r=[];let o,s=!1,a="{";for(let c=0;c<t.items.length;++c){const u=t.items[c];if("string"==typeof u.char){const{char:n,offset:l}=u;if("?"===n&&void 0===o&&!s){s=!0,a=":";continue}if(":"===n){if(void 0===o&&(o=null),":"===a){a=",";continue}}else if(s&&(void 0===o&&","!==n&&(o=null),s=!1),void 0!==o&&(r.push(new p(o)),o=void 0,","===n)){a=":";continue}if("}"===n){if(c===t.items.length-1)continue}else if(n===a){a=":";continue}const h=`Flow map contains an unexpected ${n}`,d=new i.YAMLSyntaxError(t,h);d.offset=l,e.errors.push(d)}else u.type===i.Type.BLANK_LINE?n.push({afterKey:!!o,before:r.length}):u.type===i.Type.COMMENT?(P(e.errors,u),n.push({afterKey:!!o,before:r.length,comment:u.comment})):void 0===o?(","===a&&e.errors.push(new i.YAMLSemanticError(u,"Separator , missing in flow map")),o=j(e,u)):(","!==a&&e.errors.push(new i.YAMLSemanticError(u,"Indicator : missing in flow map entry")),r.push(new p(o,j(e,u))),o=void 0,s=!1)}return O(e.errors,t),void 0!==o&&r.push(new p(o)),{comments:n,items:r}}(e,t):function(e,t){const n=[],r=[];let o,s=null;for(let a=0;a<t.items.length;++a){const c=t.items[a];switch(c.type){case i.Type.BLANK_LINE:n.push({afterKey:!!o,before:r.length});break;case i.Type.COMMENT:n.push({afterKey:!!o,before:r.length,comment:c.comment});break;case i.Type.MAP_KEY:void 0!==o&&r.push(new p(o)),c.error&&e.errors.push(c.error),o=j(e,c.node),s=null;break;case i.Type.MAP_VALUE:{if(void 0===o&&(o=null),c.error&&e.errors.push(c.error),!c.context.atLineStart&&c.node&&c.node.type===i.Type.MAP&&!c.node.context.atLineStart){const t="Nested mappings are not allowed in compact mappings";e.errors.push(new i.YAMLSemanticError(c.node,t))}let n=c.node;if(!n&&c.props.length>0){n=new i.PlainValue(i.Type.PLAIN,[]),n.context={parent:c,src:c.context.src};const e=c.range.start+1;if(n.range={start:e,end:e},n.valueRange={start:e,end:e},"number"==typeof c.range.origStart){const e=c.range.origStart+1;n.range.origStart=n.range.origEnd=e,n.valueRange.origStart=n.valueRange.origEnd=e}}const a=new p(o,j(e,n));B(c,a),r.push(a),o&&"number"==typeof s&&c.range.start>s+1024&&e.errors.push(M(t,o)),o=void 0,s=null}break;default:void 0!==o&&r.push(new p(o)),o=j(e,c),s=c.range.start,c.error&&e.errors.push(c.error);e:for(let n=a+1;;++n){const r=t.items[n];switch(r&&r.type){case i.Type.BLANK_LINE:case i.Type.COMMENT:continue e;case i.Type.MAP_VALUE:break e;default:{const t="Implicit map keys need to be followed by map values";e.errors.push(new i.YAMLSemanticError(c,t));break e}}}if(c.valueRangeContainsNewline){const t="Implicit map keys need to be on a single line";e.errors.push(new i.YAMLSemanticError(c,t))}}}return void 0!==o&&r.push(new p(o)),{comments:n,items:r}}(e,t),o=new y;o.items=r,N(o,n);let s=!1;for(let n=0;n<r.length;++n){const{key:o}=r[n];if(o instanceof l&&(s=!0),e.schema.merge&&o&&"<<"===o.value){r[n]=new v(r[n]);const o=r[n].value.items;let s=null;o.some((e=>{if(e instanceof g){const{type:t}=e.source;return t!==i.Type.MAP&&t!==i.Type.FLOW_MAP&&(s="Merge nodes aliases can only point to maps")}return s="Merge nodes can only have Alias nodes as values"})),s&&e.errors.push(new i.YAMLSemanticError(t,s))}else for(let s=n+1;s<r.length;++s){const{key:n}=r[s];if(o===n||o&&n&&Object.prototype.hasOwnProperty.call(o,"value")&&o.value===n.value){const n=`Map keys must be unique; "${o}" is repeated`;e.errors.push(new i.YAMLSemanticError(t,n));break}}}if(s&&!e.options.mapAsMap){const n="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";e.warnings.push(new i.YAMLWarning(t,n))}return t.resolved=o,o},t.resolveNode=j,t.resolveSeq=function(e,t){if(t.type!==i.Type.SEQ&&t.type!==i.Type.FLOW_SEQ){const n=`A ${t.type} node cannot be resolved as a sequence`;return e.errors.push(new i.YAMLSyntaxError(t,n)),null}const{comments:n,items:r}=t.type===i.Type.FLOW_SEQ?function(e,t){const n=[],r=[];let o,s=!1,a=null,c="[",u=null;for(let l=0;l<t.items.length;++l){const h=t.items[l];if("string"==typeof h.char){const{char:n,offset:d}=h;if(":"===n||!s&&void 0===o||(s&&void 0===o&&(o=c?r.pop():null),r.push(new p(o)),s=!1,o=void 0,a=null),n===c)c=null;else if(c||"?"!==n){if("["!==c&&":"===n&&void 0===o){if(","===c){if(o=r.pop(),o instanceof p){const n="Chaining flow sequence pairs is invalid",r=new i.YAMLSemanticError(t,n);r.offset=d,e.errors.push(r)}if(!s&&"number"==typeof a){const n=h.range?h.range.start:h.offset;n>a+1024&&e.errors.push(M(t,o));const{src:r}=u.context;for(let t=a;t<n;++t)if("\n"===r[t]){const t="Implicit keys of flow sequence pairs need to be on a single line";e.errors.push(new i.YAMLSemanticError(u,t));break}}}else o=null;a=null,s=!1,c=null}else if("["===c||"]"!==n||l<t.items.length-1){const r=`Flow sequence contains an unexpected ${n}`,o=new i.YAMLSyntaxError(t,r);o.offset=d,e.errors.push(o)}}else s=!0}else if(h.type===i.Type.BLANK_LINE)n.push({before:r.length});else if(h.type===i.Type.COMMENT)P(e.errors,h),n.push({comment:h.comment,before:r.length});else{if(c){const t=`Expected a ${c} in flow sequence`;e.errors.push(new i.YAMLSemanticError(h,t))}const t=j(e,h);void 0===o?(r.push(t),u=h):(r.push(new p(o,t)),o=void 0),a=h.range.start,c=","}}return O(e.errors,t),void 0!==o&&r.push(new p(o)),{comments:n,items:r}}(e,t):function(e,t){const n=[],r=[];for(let o=0;o<t.items.length;++o){const s=t.items[o];switch(s.type){case i.Type.BLANK_LINE:n.push({before:r.length});break;case i.Type.COMMENT:n.push({comment:s.comment,before:r.length});break;case i.Type.SEQ_ITEM:if(s.error&&e.errors.push(s.error),r.push(j(e,s.node)),s.hasProps){const t="Sequence items cannot have tags or anchors before the - indicator";e.errors.push(new i.YAMLSemanticError(s,t))}break;default:s.error&&e.errors.push(s.error),e.errors.push(new i.YAMLSyntaxError(s,`Unexpected ${s.type} node in sequence`))}}return{comments:n,items:r}}(e,t),o=new d;if(o.items=r,N(o,n),!e.options.mapAsMap&&r.some((e=>e instanceof p&&e.key instanceof l))){const n="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";e.warnings.push(new i.YAMLWarning(t,n))}return t.resolved=o,o},t.resolveString=I,t.strOptions=S,t.stringifyNumber=function({format:e,minFractionDigits:t,tag:n,value:i}){if("bigint"==typeof i)return String(i);if(!isFinite(i))return isNaN(i)?".nan":i<0?"-.inf":".inf";let r=JSON.stringify(i);if(!e&&t&&(!n||"tag:yaml.org,2002:float"===n)&&/^\d/.test(r)){let e=r.indexOf(".");e<0&&(e=r.length,r+=".");let n=t-(r.length-e-1);for(;n-- >0;)r+="0"}return r},t.stringifyString=function(e,t,n,r){const{defaultType:o}=S,{implicitKey:s,inFlow:a}=t;let{type:c,value:u}=e;"string"!=typeof u&&(u=String(u),e=Object.assign({},e,{value:u}));const l=o=>{switch(o){case i.Type.BLOCK_FOLDED:case i.Type.BLOCK_LITERAL:return R(e,t,n,r);case i.Type.QUOTE_DOUBLE:return F(u,t);case i.Type.QUOTE_SINGLE:return A(u,t);case i.Type.PLAIN:return function(e,t,n,r){const{comment:o,type:s,value:a}=e,{actualString:c,implicitKey:u,indent:l,inFlow:h}=t;if(u&&/[\n[\]{},]/.test(a)||h&&/[[\]{},]/.test(a))return F(a,t);if(!a||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a))return u||h||-1===a.indexOf("\n")?-1!==a.indexOf('"')&&-1===a.indexOf("'")?A(a,t):F(a,t):R(e,t,n,r);if(!u&&!h&&s!==i.Type.PLAIN&&-1!==a.indexOf("\n"))return R(e,t,n,r);if(""===l&&k(a))return t.forceBlockIndent=!0,R(e,t,n,r);const d=a.replace(/\n+/g,`$&\n${l}`);if(c){const{tags:e}=t.doc.schema;if("string"!=typeof b(d,e,e.scalarFallback).value)return F(a,t)}const p=u?d:_(d,l,E,T(t));return!o||h||-1===p.indexOf("\n")&&-1===o.indexOf("\n")?p:(n&&n(),function(e,t,n){return n?`#${n.replace(/[\s\S]^/gm,`$&${t}#`)}\n${t}${e}`:e}(p,l,o))}(e,t,n,r);default:return null}};c!==i.Type.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(u)?c=i.Type.QUOTE_DOUBLE:!s&&!a||c!==i.Type.BLOCK_FOLDED&&c!==i.Type.BLOCK_LITERAL||(c=i.Type.QUOTE_DOUBLE);let h=l(c);if(null===h&&(h=l(o),null===h))throw new Error(`Unsupported default string type ${o}`);return h},t.toJSON=s},1125:(e,t,n)=>{"use strict";var i=n(8487),r=n(6314);const o={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve:(e,t)=>{const n=r.resolveString(e,t);if("function"==typeof Buffer)return Buffer.from(n,"base64");if("function"==typeof atob){const e=atob(n.replace(/[\n\r]/g,"")),t=new Uint8Array(e.length);for(let n=0;n<e.length;++n)t[n]=e.charCodeAt(n);return t}{const n="This environment does not support reading binary tags; either Buffer or atob is required";return e.errors.push(new i.YAMLReferenceError(t,n)),null}},options:r.binaryOptions,stringify:({comment:e,type:t,value:n},o,s,a)=>{let c;if("function"==typeof Buffer)c=n instanceof Buffer?n.toString("base64"):Buffer.from(n.buffer).toString("base64");else{if("function"!=typeof btoa)throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");{let e="";for(let t=0;t<n.length;++t)e+=String.fromCharCode(n[t]);c=btoa(e)}}if(t||(t=r.binaryOptions.defaultType),t===i.Type.QUOTE_DOUBLE)n=c;else{const{lineWidth:e}=r.binaryOptions,o=Math.ceil(c.length/e),s=new Array(o);for(let t=0,n=0;t<o;++t,n+=e)s[t]=c.substr(n,e);n=s.join(t===i.Type.BLOCK_LITERAL?"\n":" ")}return r.stringifyString({comment:e,type:t,value:n},o,s,a)}};function s(e,t){const n=r.resolveSeq(e,t);for(let e=0;e<n.items.length;++e){let o=n.items[e];if(!(o instanceof r.Pair)){if(o instanceof r.YAMLMap){if(o.items.length>1){const e="Each pair must have its own sequence indicator";throw new i.YAMLSemanticError(t,e)}const e=o.items[0]||new r.Pair;o.commentBefore&&(e.commentBefore=e.commentBefore?`${o.commentBefore}\n${e.commentBefore}`:o.commentBefore),o.comment&&(e.comment=e.comment?`${o.comment}\n${e.comment}`:o.comment),o=e}n.items[e]=o instanceof r.Pair?o:new r.Pair(o)}}return n}function a(e,t,n){const i=new r.YAMLSeq(e);i.tag="tag:yaml.org,2002:pairs";for(const r of t){let t,o;if(Array.isArray(r)){if(2!==r.length)throw new TypeError(`Expected [key, value] tuple: ${r}`);t=r[0],o=r[1]}else if(r&&r instanceof Object){const e=Object.keys(r);if(1!==e.length)throw new TypeError(`Expected { key: value } tuple: ${r}`);t=e[0],o=r[t]}else t=r;const s=e.createPair(t,o,n);i.items.push(s)}return i}const c={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:s,createNode:a};class u extends r.YAMLSeq{constructor(){super(),i._defineProperty(this,"add",r.YAMLMap.prototype.add.bind(this)),i._defineProperty(this,"delete",r.YAMLMap.prototype.delete.bind(this)),i._defineProperty(this,"get",r.YAMLMap.prototype.get.bind(this)),i._defineProperty(this,"has",r.YAMLMap.prototype.has.bind(this)),i._defineProperty(this,"set",r.YAMLMap.prototype.set.bind(this)),this.tag=u.tag}toJSON(e,t){const n=new Map;t&&t.onCreate&&t.onCreate(n);for(const e of this.items){let i,o;if(e instanceof r.Pair?(i=r.toJSON(e.key,"",t),o=r.toJSON(e.value,i,t)):i=r.toJSON(e,"",t),n.has(i))throw new Error("Ordered maps must not include duplicate keys");n.set(i,o)}return n}}i._defineProperty(u,"tag","tag:yaml.org,2002:omap");const l={identify:e=>e instanceof Map,nodeClass:u,default:!1,tag:"tag:yaml.org,2002:omap",resolve:function(e,t){const n=s(e,t),o=[];for(const{key:e}of n.items)if(e instanceof r.Scalar){if(o.includes(e.value)){const e="Ordered maps must not include duplicate keys";throw new i.YAMLSemanticError(t,e)}o.push(e.value)}return Object.assign(new u,n)},createNode:function(e,t,n){const i=a(e,t,n),r=new u;return r.items=i.items,r}};class h extends r.YAMLMap{constructor(){super(),this.tag=h.tag}add(e){const t=e instanceof r.Pair?e:new r.Pair(e);r.findPair(this.items,t.key)||this.items.push(t)}get(e,t){const n=r.findPair(this.items,e);return!t&&n instanceof r.Pair?n.key instanceof r.Scalar?n.key.value:n.key:n}set(e,t){if("boolean"!=typeof t)throw new Error("Expected boolean value for set(key, value) in a YAML set, not "+typeof t);const n=r.findPair(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new r.Pair(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues())return super.toString(e,t,n);throw new Error("Set items must all have null values")}}i._defineProperty(h,"tag","tag:yaml.org,2002:set");const d={identify:e=>e instanceof Set,nodeClass:h,default:!1,tag:"tag:yaml.org,2002:set",resolve:function(e,t){const n=r.resolveMap(e,t);if(!n.hasAllNullValues())throw new i.YAMLSemanticError(t,"Set items must all have null values");return Object.assign(new h,n)},createNode:function(e,t,n){const i=new h;for(const r of t)i.items.push(e.createPair(r,null,n));return i}},p=(e,t)=>{const n=t.split(":").reduce(((e,t)=>60*e+Number(t)),0);return"-"===e?-n:n},f=({value:e})=>{if(isNaN(e)||!isFinite(e))return r.stringifyNumber(e);let t="";e<0&&(t="-",e=Math.abs(e));const n=[e%60];return e<60?n.unshift(0):(e=Math.round((e-n[0])/60),n.unshift(e%60),e>=60&&(e=Math.round((e-n[0])/60),n.unshift(e))),t+n.map((e=>e<10?"0"+String(e):String(e))).join(":").replace(/000000\d*$/,"")},g={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:(e,t,n)=>p(t,n.replace(/_/g,"")),stringify:f},m={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:(e,t,n)=>p(t,n.replace(/_/g,"")),stringify:f},y={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^(?:([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?)$"),resolve:(e,t,n,i,r,o,s,a,c)=>{a&&(a=(a+"00").substr(1,3));let u=Date.UTC(t,n-1,i,r||0,o||0,s||0,a||0);if(c&&"Z"!==c){let e=p(c[0],c.slice(1));Math.abs(e)<30&&(e*=60),u-=6e4*e}return new Date(u)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};function v(e){const t="undefined"!=typeof process&&process.env||{};return e?"undefined"!=typeof YAML_SILENCE_DEPRECATION_WARNINGS?!YAML_SILENCE_DEPRECATION_WARNINGS:!t.YAML_SILENCE_DEPRECATION_WARNINGS:"undefined"!=typeof YAML_SILENCE_WARNINGS?!YAML_SILENCE_WARNINGS:!t.YAML_SILENCE_WARNINGS}function C(e,t){if(v(!1)){const n="undefined"!=typeof process&&process.emitWarning;n?n(e,t):console.warn(t?`${t}: ${e}`:e)}}const S={};t.binary=o,t.floatTime=m,t.intTime=g,t.omap=l,t.pairs=c,t.set=d,t.timestamp=y,t.warn=C,t.warnFileDeprecation=function(e){v(!0)&&C(`The endpoint 'yaml/${e.replace(/.*yaml[/\\]/i,"").replace(/\.js$/,"").replace(/\\/g,"/")}' will be removed in a future release.`,"DeprecationWarning")},t.warnOptionDeprecation=function(e,t){if(!S[e]&&v(!0)){S[e]=!0;let n=`The option '${e}' will be removed in a future release`;n+=t?`, use '${t}' instead.`:".",C(n,"DeprecationWarning")}}},1078:(e,t,n)=>{e.exports=n(4667).YAML}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var o=t[i]={id:i,loaded:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i=n(6574);module.exports=i})();
//# sourceMappingURL=extension.js.map