UNPKG

@vscode/webview-ui-toolkit

Version:

A component library for building webview-based extensions in Visual Studio Code.

2 lines 246 kB
(()=>{var e={105:(e,t,n)=>{"use strict";n.r(t),n.d(t,{lexer:()=>we,Token:()=>m,any:()=>ie,selector:()=>ae,value:()=>se,keyword:()=>ce,variable:()=>te,formatting:()=>ue,comment:()=>R,whitespace:()=>U,ident:()=>A,string:()=>_,url:()=>Y,interpolation:()=>j,backtick:()=>L,parseMediaExpression:()=>de,parsePropertyName:()=>pe,parsePropertyValue:()=>fe,parseSelector:()=>le,createProperty:()=>ve,createRule:()=>ge,createAtRule:()=>ye,default:()=>Ae});var r=n(2205),o=n(3240);class i{constructor(e){this.type=e,this.children=[],this.parent=null}get firstChild(){return this.children[0]}get nextSibling(){const e=this.index();return-1!==e?this.parent.children[e+1]:null}get previousSibling(){const e=this.index();return-1!==e?this.parent.children[e-1]:null}index(){return this.parent?this.parent.children.indexOf(this):-1}add(e){return e&&(e.remove(),this.children.push(e),e.parent=this),this}remove(){if(this.parent){const e=this.index();-1!==e&&(this.parent.children.splice(e,1),this.parent=null)}return this}}class a extends i{constructor(){super("stylesheet"),this.comments=[]}get start(){const e=this.firstChild;return e&&e.start}get end(){const e=this.children[this.children.length-1];return e&&e.end}addComment(e){this.comments.push(e)}}function s(e){return function(e){let t;for(e=e.slice();t!==e.length;)t=e.length,c(e[0])&&e.shift(),c(f(e))&&e.pop();return e}(e)}function c(e){const t=e&&e.type;return"whitespace"===t||"comment"===t}function u(e,t){const n=e.pos;for(let r=0,o=t.length;r<o;r++)if(!e.eat(t.charCodeAt(r)))return e.pos=n,!1;return!0}function l(e,t){const n=e.pos;return!!e.eat(t)&&(e.start=n,!0)}function p(e,t){const n=e.pos;return!!e.eatWhile(t)&&(e.start=n,!0)}function f(e){return e[e.length-1]}function d(e){return e&&e.valueOf()}class m{constructor(e,t,n,r){this.stream=e,this.start=null!=n?n:e.start,this.end=null!=r?r:e.pos,this.type=t,this._props=null,this._value=null,this._items=null}get size(){return this._items?this._items.length:0}get items(){return this._items}clone(e,t){return new this.constructor(this.stream,this.type,null!=e?e:this.start,null!=t?t:this.end)}add(e){if(Array.isArray(e))for(let t=0,n=e.length;t<n;t++)this.add(e[t]);else e&&(this._items?this._items.push(e):this._items=[e]);return this}remove(e){if(this._items){const t=this._items.indexOf(e);-1!==t&&this._items.splice(t,1)}return this}item(e){const t=this.size;return this._items&&this._items[(t+e)%t]}limit(){return this.stream.limit(this.start,this.end)}slice(e,t){const n=this.clone(),r=this._items&&this._items.slice(e,t);return r&&r.length?(n.start=r[0].start,n.end=r[r.length-1].end,n.add(r)):r&&(n.start=n.end),n}property(e,t){return void 0!==t&&(this._props||(this._props={}),this._props[e]=t),this._props&&this._props[e]}toString(){return`${this.valueOf()} [${this.start}, ${this.end}] (${this.type})`}valueOf(){return null===this._value&&(this._value=this.stream.substring(this.start,this.end)),this._value}}const g=123,h=125,y=(new Map).set(44,"comma").set(58,"propertyDelimiter").set(59,"propertyTerminator").set(g,"ruleStart").set(h,"ruleEnd");var b=function(e,t){if(40===e.peek()){const r=e.pos;e.next();const o=[];let i,a=!1;for(;!e.eof()&&(n=e.peek())!==g&&n!==h&&!e.eat(41)&&(i=t(e),i);)k(i)&&(a=!0),o.push(i);return e.start=r,function(e,t,n){const r=new m(e,"arguments"),o=n?k:w;let i=[];for(let n,a=0,s=t.length;a<s;a++)n=t[a],o(n)?(r.add(v(e,i)||x(e,n.start)),i.length=0):i.push(n);return i.length&&r.add(v(e,i)),r}(e,o,a)}var n};function v(e,t){if((t=s(t)).length){const n=new m(e,"argument",t[0].start,f(t).end);for(let e=0;e<t.length;e++)n.add(t[e]);return n}}function x(e,t){const n=new m(e,"argument",t,t);return n.property("empty",!0),n}function w(e){return"comma"===e.property("type")}function k(e){return"propertyTerminator"===e.property("type")}function A(e){return S(e)&&new m(e,"ident")}function S(e){const t=e.pos;return e.eat(45),e.eat(E)?(e.eatWhile(T),e.start=t,!0):(e.pos=t,!1)}function E(e){return 95===e||45===e||(0,o.$9)(e)||e>=128}function T(e){return(0,o.hj)(e)||E(e)}function C(e,t,n,r,o){const i=e.pos;if(e.eat(n)){const n=r(e,i);if(n||o)return e.start=i,new m(e,t,i).add(n)}e.pos=i}function P(e){return C(e,"at-keyword",64,A)}function j(e,t){const n=e.pos;if(t=t||I,(e.eat(35)||e.eat(64))&&e.eat(g)){const r=new m(e,"interpolation",n);let o,i=1;for(;!e.eof();)if(e.eat(g))i++;else if(e.eat(h)){if(i--,!i)return r.end=e.pos,r}else{if(!(o=t(e)))break;r.add(o)}}e.pos=n}function O(e){const t=e.pos;return(e.eat(35)||e.eat(64))&&(0,o.nC)(e,g,h)?(e.start=t,!0):(e.pos=t,!1)}function I(e){const t=e.pos;for(;!e.eof()&&e.peek()!==h;)$(e)||e.next();if(t!==e.pos)return new m(e,"expression",t)}function _(e){return $(e,!0)}function $(e,t){let n,r,i,a=e.peek();if((0,o.LN)(a)){e.start=e.pos,e.next();const o=a,s=e.pos;for(;!e.eof()&&(n=e.pos,!e.eat(o)&&!e.eat(F));)e.eat(92)?e.eat(F):t&&(i=j(e))&&(r?r.push(i):r=[i]),e.next();if(t){const t=new m(e,"string"),i=new m(e,"unquoted",s,n);return i.add(r),t.add(i),t.property("quote",o),t}return!0}return!1}function F(e){return 10===e||13===e}var R=function(e){return function(e){if(z(e)){const t=new m(e,"comment");return t.property("type","single-line"),t}}(e)||function(e){if(M(e)){const t=new m(e,"comment");return t.property("type","multiline"),t}}(e)};function N(e){return z(e)||M(e)}function z(e){const t=e.pos;if(e.eat(47)&&e.eat(47)){for(e.start=t;!e.eof()&&10!==(n=e.next())&&13!==n;);return!0}var n;return e.pos=t,!1}function M(e){const t=e.pos;if(e.eat(47)&&e.eat(42)){for(;!(e.eof()||42===e.next()&&e.eat(47)););return e.start=t,!0}return e.pos=t,!1}function U(e){return W(e)&&new m(e,"whitespace")}function W(e){return p(e,o.Wd)}function B(e){for(;!e.eof();)if(!W(e)&&!N(e))return!0}function D(e){return 126===e||124===e||94===e||36===e||42===e||61===e}function L(e){if(V(e))return new m(e,"backtick")}function V(e){const t=e.pos;return!!(0,o.nC)(e,96,96)&&(e.start=t,!0)}const q={43:"adjacentSibling",126:"generalSibling",62:"child",38:"nesting"};function G(e){if(function(e){return p(e,H)}(e))return new m(e,"hash-value")}function H(e){return(0,o.hj)(e)||(0,o.$9)(e,65,70)||95===e||45===e||e>128}function J(e){return 45===e||43===e}function Z(e){return 33===e||60===e||61===e||62===e}function Q(e){return 42===e||43===e||45===e||47===e||Z(e)}function X(e){return p(e,K)}function K(e){return!(isNaN(e)||(0,o.LN)(e)||(0,o.Wd)(e)||40===e||41===e||92===e||function(e){return e>=0&&e<=8||11===e||e>=14&&e<=31||127===e}(e))}function Y(e){const t=e.pos;if(u(e,"url(")){W(e);const n=_(e)||function(e){return X(e)&&new m(e,"unquoted")}(e);return W(e),e.eat(41),new m(e,"url",t).add(n)}e.pos=t}function ee(e){const t=e.pos;return u(e,"url(")?(W(e),$(e)||X(e),W(e),e.eat(41),e.start=t,!0):(e.pos=t,!1)}function te(e){return C(e,"variable",36,ne)}function ne(e){if(function(e){return p(e,re)}(e))return new m(e,"name")}function re(e){return 36===e||T(e)}function oe(e){const t=ie(e)||b(e,oe);if(t&&"ident"===t.type){const n=b(e,oe);if(n)return new m(e,"function",t.start,n.end).add(t).add(n)}return t||function(e){if(e.start=e.pos,null!=e.next())return new m(e,"unknown")}(e)}function ie(e){return ue(e)||Y(e)||ae(e)||se(e)||function(e){if(44===(t=e.peek())||58===t||59===t||t===g||t===h){const t=e.pos,n=y.get(e.next()),r=new m(e,"separator",t);return r.property("type",n),r}var t}(e)}function ae(e){return j(e)||L(e)||A(e)||P(e)||function(e){return C(e,"class",46,A)}(e)||function(e){return C(e,"id",35,A)}(e)||function(e){const t=e.pos;if(e.eatWhile(58)){const n=A(e);if(n)return new m(e,"pseudo",t).add(n)}e.pos=t}(e)||function(e){const t=e.pos;if(e.eat(91)){B(e);const n=A(e);B(e);const r=function(e){return p(e,D)&&new m(e,"operator")}(e);B(e);const o=_(e)||A(e);return B(e),e.eat(93),new m(e,"attribute",t).add(n).add(r).add(o)}}(e)||function(e){if(43===(t=e.peek())||126===t||38===t||62===t){const t=e.pos,n=q[e.next()],r=new m(e,"combinator",t);return r.property("type",n),r}var t}(e)}function se(e){return Y(e)||_(e)||j(e)||L(e)||function(e){if(function(e){const t=e.pos;if(e.eat(J),e.eatWhile(o.hj)){e.start=t;const n=e.pos;return e.eat(46)&&e.eatWhile(o.hj)||(e.pos=n),!0}return e.eat(46)&&e.eatWhile(o.hj)?(e.start=t,!0):(e.pos=t,!1)}(e)){const t=e.start,n=new m(e,"value"),r=function(e){return S(e)||function(e){return l(e,37)}(e)}(e)?new m(e,"unit"):null;return new m(e,"number",t).add(n).add(r)}}(e)||function(e){return C(e,"hash",35,G,!0)}(e)||ce(e)||function(e){return C(e,"important",33,A)}(e)||function(e){return function(e){return l(e,Z)?(e.eatWhile(61),!0):!!l(e,Q)}(e)&&new m(e,"operator")}(e)}function ce(e){return L(e)||te(e)||P(e)||A(e)}function ue(e){return R(e)||U(e)}function le(e){return me(e,"selector")}function pe(e){const t="string"==typeof e?new r.Z(e):e,n=[];for(;!t.eof();)n.push(oe(t));let o;if(1===n.length)o=n[0];else{o=new m(t,"property-name",t.start,t.end);for(let e=0,t=n.length;e<t;e++)o.add(n[e])}return o}function fe(e){return me(e)}function de(e){return me(e)}function me(e,t){t=t||"item";const n="string"==typeof e?new r.Z(e):e,o=[],i=[],a=()=>{const e=s(i);if(e.length){const r=new m(n,t,e[0].start,f(e).end);for(let t=0;t<e.length;t++)r.add(e[t]);o.push(r)}i.length=0};let c;for(;!n.eof();)if(n.eat(44))a();else{if(!(c=oe(n)))throw n.error("Unexpected character");"comment"!==c.type&&i.push(c)}return a(),o}function ge(e,t,n,r){if(!t.length)return null;const o=t[0];return o.end=f(t).end,new he(e,o,n,r)}class he extends i{constructor(e,t,n,r){super("rule"),this.stream=e,this.selectorToken=t,this.contentStartToken=n,this.contentEndToken=r||n,this._parsedSelector=null}get selector(){return d(this.selectorToken)}get parsedSelector(){return this._parsedSelector||(this._parsedSelector=le(this.selectorToken.limit())),this._parsedSelector}get start(){return this.selectorToken&&this.selectorToken.start}get end(){const e=this.contentEndToken||this.contentStartToken||this.nameToken;return e&&e.end}}function ye(e,t,n,r){if(!t.length)return null;let o,i=0;const a=t[i++];return i<t.length?(o=t[i++],o.type="expression",o.end=f(t).end):o=new m(e,"expression",a.end,a.end),new be(e,a,o,n,r)}class be extends i{constructor(e,t,n,r,o){super("at-rule"),this.stream=e,this.nameToken=t,this.expressionToken=n,this.contentStartToken=r,this.contentEndToken=o||r,this._parsedExpression=null}get name(){return d(this.nameToken&&this.nameToken.item(0))}get expression(){return d(this.expressionToken)}get parsedExpression(){return this._parsedExpression||(this._parsedExpression=de(this.expressionToken.limit())),this._parsedExpression}get start(){return this.nameToken&&this.nameToken.start}get end(){const e=this.contentEndToken||this.contentStartToken||this.nameToken;return e&&e.end}}function ve(e,t,n){if(!t.length)return null;let r,o,i=0;const a=t[i++];return i<t.length&&(o=t[i++],o.type="value",o.end=f(t).end),a&&o&&(r=new m(e,"separator",a.end,o.start)),new xe(e,a,o,r,n)}class xe extends i{constructor(e,t,n,r,o){super("property"),this.stream=e,this.nameToken=t,this.valueToken=n,this._parsedName=null,this._parsedValue=null,this.separatorToken=r,this.terminatorToken=o}get name(){return d(this.nameToken)}get parsedName(){return this._parsedName||(this._parsedName=pe(this.nameToken.limit())),this._parsedName}get value(){return d(this.valueToken)}get parsedValue(){return this._parsedValue||(this._parsedValue=fe(this.valueToken.limit())),this._parsedValue}get separator(){return d(this.separatorToken)}get terminator(){return d(this.terminatorToken)}get start(){const e=this.nameToken||this.separatorToken||this.valueToken||this.terminatorToken;return e&&e.start}get end(){const e=this.terminatorToken||this.valueToken||this.separatorToken||this.nameToken;return e&&e.end}}function we(e,t){t=t||oe;const n="string"==typeof e?new r.Z(e):e,o=[];let i;for(;!n.eof()&&(i=t(n));)o.push(i);return o}function ke(e,t){if(e.eat(40)){let n,r=1;for(;!e.eof();)if(e.eat(41)){if(r--,!r)break}else if(e.eat(40))r++;else{if(ee(e)||$(e))continue;if(n=R(e)){t.addComment(n);continue}e.next()}return!0}return!1}const Ae=function(e){const t="string"==typeof e?new r.Z(e):e,n=new a;let o,i,s,c=n,u=[];const l=()=>{i&&(u.push(i),i=null)};for(;!t.eof();)if(!W(t))if(s=R(t))n.addComment(s);else if(t.start=t.pos,t.eatWhile(58))u.length||(i?l():i=new m(t,"preparse"));else if(t.eat(59))l(),c.add(ve(t,u,new m(t,"termintator"))),u.length=0;else if(t.eat(123))l(),u.length>0&&(o="at-keyword"===u[0].type?ye(t,u,new m(t,"body-start")):ge(t,u,new m(t,"body-start")),c.add(o),c=o,u.length=0);else if(t.eat(125))l(),c.add(ve(t,u)),"stylesheet"!==c.type&&(c.contentEndToken=new m(t,"body-end"),c=c.parent),u.length=0;else if(s=P(t))l(),u.push(s);else{if(!(ee(t)||O(t)||V(t)||ke(t,n)||$(t)||t.next()))throw new Error(`Unexpected end-of-stream at ${t.pos}`);i=i||new m(t,"preparse"),i.end=t.pos}for(i&&u.push(i),c.add(ve(t,u)),t.start=t.pos;c&&c!==n;)c.contentEndToken=new m(t,"body-end"),c=c.parent;return n}},7378:(e,t,n)=>{"use strict";n.r(t),n.d(t,{defaultOptions:()=>S,match:()=>E,default:()=>P});var r=n(2205),o=n(3240);class i{constructor(e,t,n,r){this.stream=e,this.type=t,this.open=n,this.close=r,this.children=[],this.parent=null}get name(){return"tag"===this.type&&this.open?this.open&&this.open.name&&this.open.name.value:"#"+this.type}get attributes(){return this.open&&this.open.attributes}get start(){return this.open&&this.open.start}get end(){return this.close?this.close.end:this.open&&this.open.end}get firstChild(){return this.children[0]}get nextSibling(){const e=this.getIndex();return-1!==e?this.parent.children[e+1]:null}get previousSibling(){const e=this.getIndex();return-1!==e?this.parent.children[e-1]:null}getIndex(){return this.parent?this.parent.children.indexOf(this):-1}addChild(e){return this.removeChild(e),this.children.push(e),e.parent=this,this}removeChild(e){const t=this.children.indexOf(e);return-1!==t&&(this.children.splice(t,1),e.parent=null),this}}var a=function(e,t,n){return"function"==typeof t?function(e,t){const n=e.pos;if(e.eatWhile(t))return new s(e,n,e.pos);e.pos=n}(e,t):new s(e,t,n)};class s{constructor(e,t,n){this.stream=e,this.start=null!=t?t:e.start,this.end=null!=n?n:e.pos,this._value=null}get value(){if(null===this._value){const e=this.stream.start,t=this.stream.pos;this.stream.start=this.start,this.stream.pos=this.end,this._value=this.stream.current(),this.stream.start=e,this.stream.pos=t}return this._value}toString(){return this.value}valueOf(){return`${this.value} [${this.start}; ${this.end}]`}}const c={throws:!0};var u=function(e){const t=e.pos;if((0,o.nC)(e,60,62,c)||(0,o.nC)(e,91,93,c)||(0,o.nC)(e,40,41,c)||(0,o.nC)(e,123,125,c))return a(e,t)};function l(e){return u(e)||a(e,f)}function p(e){const t=e.pos;if((0,o.Kv)(e)){const n=e.pos;let r,o;e.pos=t,e.next(),r=e.start=e.pos,e.pos=n,e.backUp(1),o=e.pos;const i=a(e,r,o);return e.pos=n,i}return u(e)||function(e){return a(e,m)}(e)}function f(e){return 61!==e&&!d(e)&&!(0,o.Wd)(e)}function d(e){return 62===e||47===e}function m(e){return!(isNaN(e)||(0,o.LN)(e)||(0,o.Wd)(e)||d(e))}var g=function(e){const t=e.pos;if(e.eat(60)){const n={type:e.eat(47)?"close":"open"};if((n.name=function(e){return a(e,h)}(e))&&("close"!==n.type&&(n.attributes=function(e){const t=[];let n;for(;!e.eof();)if(e.eatWhile(o.Wd),n={start:e.pos},n.name=l(e))e.eat(61)?n.value=p(e):n.boolean=!0,n.end=e.pos,t.push(n);else{if(d(e.peek()))break;e.next()}return t}(e),e.eatWhile(o.Wd),n.selfClosing=e.eat(47)),e.eat(62)))return Object.assign(a(e,t),n)}return e.pos=t,null};function h(e){return(0,o.bJ)(e)||58===e||46===e||45===e||95===e}function y(e,t){const n=e.pos;for(let r=0;r<t.length;r++)if(!e.eat(t[r]))return e.pos=n,!1;return e.start=n,!0}function b(e,t,n,r){const o=e.pos;if(y(e,t)){for(;!e.eof();){if(y(e,n))return!0;e.next()}return!!r||(e.pos=o,!1)}return e.pos=o,null}function v(e){return e.split("").map((e=>e.charCodeAt(0)))}const x=v("\x3c!--"),w=v("--\x3e"),k=v("<![CDATA["),A=v("]]>"),S={xml:!1,special:["script","style"],empty:["img","meta","link","br","base","hr","area","wbr","col","embed","input","param","source","track"]};function E(e){if(60===e.peek())return function(e){const t=e.pos;if(b(e,x,w,!0)){const n=a(e,t);return n.type="comment",n}return null}(e)||function(e){const t=e.pos;if(b(e,k,A,!0)){const n=a(e,t);return n.type="cdata",n}return null}(e)||g(e)}function T(e,t){const n=e.pos;for(;!e.eof();){if(y(e,t))return e.pos=e.start,g(e);e.next()}return e.pos=n,null}function C(e){return e[e.length-1]}const P=function(e,t){t=Object.assign({},S,t);const n="string"==typeof e?new r.Z(e):e,o=new i(n,"root"),a=new Set(t.empty),s=t.special.reduce(((e,t)=>e.set(t,v(`</${t}>`))),new Map),c=(e,n)=>e.selfClosing||!t.xml&&a.has(n);let u,l,p,f=[o];for(;!n.eof();)if(u=E(n))if(p=(d=u).name?d.name.value.toLowerCase():`#${d.type}`,"open"===u.type)l=new i(n,"tag",u),C(f).addChild(l),s.has(p)?l.close=T(n,s.get(p)):c(u,p)||f.push(l);else if("close"===u.type){for(let e=f.length-1;e>0;e--)if(f[e].name.toLowerCase()===p){f[e].close=u,f=f.slice(0,e);break}}else C(f).addChild(new i(n,u.type,u));else n.next();var d;return o}},2791:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>k,extract:()=>h,parse:()=>i});var r=n(9790);const o=m("null",0);function i(e){const t="string"==typeof e?new r.ZP(e):e;let n,i=0,m=21;const g=[];for(;!t.eof();)t.eatWhile(r.FD),t.start=t.pos,a(t)?(0==(1&m)&&l("Unexpected number",t),g.push(s(t.current())),m=10):d(t.peek())?(n=t.next(),p(n)&&16&m?(f(n)&&g.push(c(n,i)),m=21):(0==(2&m)&&l("Unexpected operator",t),g.push(u(n,i)),m=21)):t.eat(40)?(0==(4&m)&&l('Unexpected "("',t),i+=10,m=53):t.eat(41)?(i-=10,32&m?g.push(o):0==(8&m)&&l('Unexpected ")"',t),m=14):l("Unknown character",t);(i<0||i>=10)&&l('Unmatched "()"',t);const h=function(e){const t=[],n=[];let r=0;for(let o=0;o<e.length;o++){const i=e[o];if("num"===i.type)n.push(i);else{for(r+="op1"===i.type?1:2;t.length&&i.priority<=t[t.length-1].priority;)n.push(t.pop());t.push(i)}}return r+1===n.length+t.length?n.concat(t.reverse()):null}(g);return null===h&&l("Parity",t),h}function a(e){const t=e.pos;return!(!e.eat(46)||!e.eatWhile(r.hj))||!(!e.eatWhile(r.hj)||e.eat(46)&&!e.eatWhile(r.hj))||(e.pos=t,!1)}function s(e,t){return m("num",parseFloat(e),t)}function c(e,t=0){return 45===e&&(t+=2),m("op1",e,t)}function u(e,t=0){return 42===e?t+=1:47!==e&&92!==e||(t+=2),m("op2",e,t)}function l(e,t){throw t&&(e+=` at column ${t.pos} of expression`),new Error(e)}function p(e){return function(e){return 43===e}(e)||f(e)}function f(e){return 45===e}function d(e){return 43===e||45===e||42===e||47===e||92===e}function m(e,t,n=0){return{type:e,value:t,priority:n}}const g={lookAhead:!0,whitespace:!0};function h(e,t=e.length,n){const o=Object.assign(Object.assign({},g),n),i={text:e,pos:t};let a;if(o.lookAhead&&41===v(i)){i.pos++;const t=e.length;for(;i.pos<t&&(a=v(i),41===a||o.whitespace&&(0,r.Wd)(a));)i.pos++}const s=i.pos;let c=0;for(;i.pos>=0;)if(!y(i)){if(a=b(i),41===a)c++;else if(40===a){if(!c)break;c--}else if(!(o.whitespace&&(0,r.Wd)(a)||p(a)||d(a)))break;i.pos--}if(i.pos!==s&&!c){for(;(0,r.Wd)(v(i));)i.pos++;return[i.pos,s]}return null}function y(e){if((0,r.hj)(b(e))){e.pos--;let t,n=!1;for(;e.pos>=0;){if(t=b(e),46===t){if(n)break;n=!0}else if(!(0,r.hj)(t))break;e.pos--}return!0}return!1}function b(e){return e.text.charCodeAt(e.pos-1)}function v(e){return e.text.charCodeAt(e.pos)}const x={45:e=>-e},w={43:(e,t)=>e+t,45:(e,t)=>e-t,42:(e,t)=>e*t,47:(e,t)=>e/t,92:(e,t)=>Math.floor(e/t)},k=function(e){if(Array.isArray(e)||(e=i(e)),!e||!e.length)return null;const t=[];let n,r,o;for(let i=0,a=e.length;i<a;i++){const a=e[i];if("num"===a.type)t.push(a.value);else if("op2"===a.type)r=t.pop(),n=t.pop(),o=w[a.value],t.push(o(n,r));else{if("op1"!==a.type)throw new Error("Invalid expression");n=t.pop(),o=x[a.value],t.push(o(n))}}if(t.length>1)throw new Error("Invalid Expression (parity)");return t[0]}},9790:(e,t,n)=>{"use strict";function r(e){return e>47&&e<58}function o(e,t,n){return n=n||90,(e&=-33)>=(t=t||65)&&e<=n}function i(e){return r(e)||a(e)}function a(e){return 95===e||o(e)}function s(e){return 32===e||9===e||160===e}function c(e){return s(e)||10===e||13===e}function u(e){return 39===e||34===e}n.d(t,{ZP:()=>f,u5:()=>p,$9:()=>o,T0:()=>i,QS:()=>a,hj:()=>r,LN:()=>u,Wd:()=>c,FD:()=>s});class l{constructor(e,t,n){null==n&&"string"==typeof e&&(n=e.length),this.string=e,this.pos=this.start=t||0,this.end=n||0}eof(){return this.pos>=this.end}limit(e,t){return new l(this.string,e,t)}peek(){return this.string.charCodeAt(this.pos)}next(){if(this.pos<this.string.length)return this.string.charCodeAt(this.pos++)}eat(e){const t=this.peek(),n="function"==typeof e?e(t):t===e;return n&&this.next(),n}eatWhile(e){const t=this.pos;for(;!this.eof()&&this.eat(e););return this.pos!==t}backUp(e){this.pos-=e||1}current(){return this.substring(this.start,this.pos)}substring(e,t){return this.string.slice(e,t)}error(e,t=this.pos){return new p(`${e} at ${t+1}`,t,this.string)}}class p extends Error{constructor(e,t,n){super(e),this.pos=t,this.string=n}}const f=l},3240:(e,t,n)=>{"use strict";n.d(t,{Kv:()=>o,LN:()=>i,$9:()=>s,hj:()=>a,bJ:()=>c,Wd:()=>u,nC:()=>p});const r={escape:92,throws:!1};var o=function(e,t){t=t?Object.assign({},r,t):r;const n=e.pos,o=e.peek();if(e.eat(i)){for(;!e.eof();)switch(e.next()){case o:return e.start=n,!0;case t.escape:e.next()}if(e.pos=n,t.throws)throw e.error("Unable to consume quoted string")}return!1};function i(e){return 39===e||34===e}function a(e){return e>47&&e<58}function s(e,t,n){return n=n||90,(e&=-33)>=(t=t||65)&&e<=n}function c(e){return a(e)||s(e)}function u(e){return function(e){return 32===e||9===e||160===e}(e)||10===e||13===e}const l={escape:92,throws:!1};function p(e,t,n,r){r=r?Object.assign({},l,r):l;const i=e.pos;if(e.eat(t)){let a,s=1;for(;!e.eof();)if(!o(e,r))if(a=e.next(),a===t)s++;else if(a===n){if(s--,!s)return e.start=i,!0}else a===r.escape&&e.next();if(e.pos=i,r.throws)throw e.error(`Unable to find matching pair for ${String.fromCharCode(t)}`)}return!1}},2205:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=class{constructor(e,t,n){null==n&&"string"==typeof e&&(n=e.length),this.string=e,this.pos=this.start=t||0,this.end=n}eof(){return this.pos>=this.end}limit(e,t){return new this.constructor(this.string,e,t)}peek(){return this.string.charCodeAt(this.pos)}next(){if(this.pos<this.string.length)return this.string.charCodeAt(this.pos++)}eat(e){const t=this.peek(),n="function"==typeof e?e(t):t===e;return n&&this.next(),n}eatWhile(e){const t=this.pos;for(;!this.eof()&&this.eat(e););return this.pos!==t}backUp(e){this.pos-=e||1}current(){return this.substring(this.start,this.pos)}substring(e,t){return this.string.slice(e,t)}error(e){const t=new Error(`${e} at char ${this.pos+1}`);return t.originalMessage=e,t.pos=this.pos,t.string=this.string,t}}},6001:(e,t,n)=>{"use strict";var r,o,i,a,s,c,u,l,p,f,d,m,g,h,y,b,v,x,w,k,A,S,E,T,C,P;n.r(t),n.d(t,{FileType:()=>ze,doComplete:()=>gi,emmetSnippetField:()=>Si,expandAbbreviation:()=>Ni,extractAbbreviation:()=>Oi,extractAbbreviationFromText:()=>Ii,getDefaultSnippets:()=>Pi,getDefaultSyntax:()=>Ci,getEmmetMode:()=>Li,getExpandOptions:()=>$i,getSyntaxType:()=>Ti,isAbbreviationValid:()=>_i,isStyleSheet:()=>Ei,parseAbbreviation:()=>Ri,updateExtensionsPath:()=>zi}),function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647}(r||(r={})),function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647}(o||(o={})),function(e){e.create=function(e,t){return e===Number.MAX_VALUE&&(e=o.MAX_VALUE),t===Number.MAX_VALUE&&(t=o.MAX_VALUE),{line:e,character:t}},e.is=function(e){var t=e;return ce.objectLiteral(t)&&ce.uinteger(t.line)&&ce.uinteger(t.character)}}(i||(i={})),function(e){e.create=function(e,t,n,r){if(ce.uinteger(e)&&ce.uinteger(t)&&ce.uinteger(n)&&ce.uinteger(r))return{start:i.create(e,t),end:i.create(n,r)};if(i.is(e)&&i.is(t))return{start:e,end:t};throw new Error("Range#create called with invalid arguments["+e+", "+t+", "+n+", "+r+"]")},e.is=function(e){var t=e;return ce.objectLiteral(t)&&i.is(t.start)&&i.is(t.end)}}(a||(a={})),function(e){e.create=function(e,t){return{uri:e,range:t}},e.is=function(e){var t=e;return ce.defined(t)&&a.is(t.range)&&(ce.string(t.uri)||ce.undefined(t.uri))}}(s||(s={})),function(e){e.create=function(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}},e.is=function(e){var t=e;return ce.defined(t)&&a.is(t.targetRange)&&ce.string(t.targetUri)&&(a.is(t.targetSelectionRange)||ce.undefined(t.targetSelectionRange))&&(a.is(t.originSelectionRange)||ce.undefined(t.originSelectionRange))}}(c||(c={})),function(e){e.create=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},e.is=function(e){var t=e;return ce.numberRange(t.red,0,1)&&ce.numberRange(t.green,0,1)&&ce.numberRange(t.blue,0,1)&&ce.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 a.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 ce.string(t.label)&&(ce.undefined(t.textEdit)||x.is(t))&&(ce.undefined(t.additionalTextEdits)||ce.typedArray(t.additionalTextEdits,x.is))}}(p||(p={})),function(e){e.Comment="comment",e.Imports="imports",e.Region="region"}(f||(f={})),function(e){e.create=function(e,t,n,r,o){var i={startLine:e,endLine:t};return ce.defined(n)&&(i.startCharacter=n),ce.defined(r)&&(i.endCharacter=r),ce.defined(o)&&(i.kind=o),i},e.is=function(e){var t=e;return ce.uinteger(t.startLine)&&ce.uinteger(t.startLine)&&(ce.undefined(t.startCharacter)||ce.uinteger(t.startCharacter))&&(ce.undefined(t.endCharacter)||ce.uinteger(t.endCharacter))&&(ce.undefined(t.kind)||ce.string(t.kind))}}(d||(d={})),function(e){e.create=function(e,t){return{location:e,message:t}},e.is=function(e){var t=e;return ce.defined(t)&&s.is(t.location)&&ce.string(t.message)}}(m||(m={})),function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4}(g||(g={})),function(e){e.Unnecessary=1,e.Deprecated=2}(h||(h={})),function(e){e.is=function(e){var t=e;return null!=t&&ce.string(t.href)}}(y||(y={})),function(e){e.create=function(e,t,n,r,o,i){var a={range:e,message:t};return ce.defined(n)&&(a.severity=n),ce.defined(r)&&(a.code=r),ce.defined(o)&&(a.source=o),ce.defined(i)&&(a.relatedInformation=i),a},e.is=function(e){var t,n=e;return ce.defined(n)&&a.is(n.range)&&ce.string(n.message)&&(ce.number(n.severity)||ce.undefined(n.severity))&&(ce.integer(n.code)||ce.string(n.code)||ce.undefined(n.code))&&(ce.undefined(n.codeDescription)||ce.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(ce.string(n.source)||ce.undefined(n.source))&&(ce.undefined(n.relatedInformation)||ce.typedArray(n.relatedInformation,m.is))}}(b||(b={})),function(e){e.create=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o={title:e,command:t};return ce.defined(n)&&n.length>0&&(o.arguments=n),o},e.is=function(e){var t=e;return ce.defined(t)&&ce.string(t.title)&&ce.string(t.command)}}(v||(v={})),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 ce.objectLiteral(t)&&ce.string(t.newText)&&a.is(t.range)}}(x||(x={})),function(e){e.create=function(e,t,n){var r={label:e};return void 0!==t&&(r.needsConfirmation=t),void 0!==n&&(r.description=n),r},e.is=function(e){var t=e;return void 0!==t&&ce.objectLiteral(t)&&ce.string(t.label)&&(ce.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(ce.string(t.description)||void 0===t.description)}}(w||(w={})),function(e){e.is=function(e){return"string"==typeof e}}(k||(k={})),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 x.is(t)&&(w.is(t.annotationId)||k.is(t.annotationId))}}(A||(A={})),function(e){e.create=function(e,t){return{textDocument:e,edits:t}},e.is=function(e){var t=e;return ce.defined(t)&&I.is(t.textDocument)&&Array.isArray(t.edits)}}(S||(S={})),function(e){e.create=function(e,t,n){var r={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},e.is=function(e){var t=e;return t&&"create"===t.kind&&ce.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||ce.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||ce.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||k.is(t.annotationId))}}(E||(E={})),function(e){e.create=function(e,t,n,r){var o={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(o.options=n),void 0!==r&&(o.annotationId=r),o},e.is=function(e){var t=e;return t&&"rename"===t.kind&&ce.string(t.oldUri)&&ce.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||ce.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||ce.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||k.is(t.annotationId))}}(T||(T={})),function(e){e.create=function(e,t,n){var r={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},e.is=function(e){var t=e;return t&&"delete"===t.kind&&ce.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||ce.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||ce.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||k.is(t.annotationId))}}(C||(C={})),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 ce.string(e.kind)?E.is(e)||T.is(e)||C.is(e):S.is(e)})))}}(P||(P={}));var j,O,I,_,$,F,R,N,z,M,U,W,B,D,L,V,q,G,H,J,Z,Q,X,K,Y,ee,te,ne,re,oe,ie,ae=function(){function e(e,t){this.edits=e,this.changeAnnotations=t}return e.prototype.insert=function(e,t,n){var r,o;if(void 0===n?r=x.insert(e,t):k.is(n)?(o=n,r=A.insert(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(n),r=A.insert(e,t,o)),this.edits.push(r),void 0!==o)return o},e.prototype.replace=function(e,t,n){var r,o;if(void 0===n?r=x.replace(e,t):k.is(n)?(o=n,r=A.replace(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(n),r=A.replace(e,t,o)),this.edits.push(r),void 0!==o)return o},e.prototype.delete=function(e,t){var n,r;if(void 0===t?n=x.del(e):k.is(t)?(r=t,n=A.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(t),n=A.del(e,r)),this.edits.push(n),void 0!==r)return r},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(k.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}();!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(S.is(e)){var n=new ae(e.edits,t._changeAnnotations);t._textEditChanges[e.textDocument.uri]=n}}))):e.changes&&Object.keys(e.changes).forEach((function(n){var r=new ae(e.changes[n]);t._textEditChanges[n]=r}))):this._workspaceEdit={}}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(I.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(!(r=this._textEditChanges[t.uri])){var n={textDocument:t,edits:o=[]};this._workspaceEdit.documentChanges.push(n),r=new ae(o,this._changeAnnotations),this._textEditChanges[t.uri]=r}return r}if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var r;if(!(r=this._textEditChanges[e])){var o=[];this._workspaceEdit.changes[e]=o,r=new ae(o),this._textEditChanges[e]=r}return r},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 r,o,i;if(w.is(t)||k.is(t)?r=t:n=t,void 0===r?o=E.create(e,n):(i=k.is(r)?r:this._changeAnnotations.manage(r),o=E.create(e,n,i)),this._workspaceEdit.documentChanges.push(o),void 0!==i)return i},e.prototype.renameFile=function(e,t,n,r){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var o,i,a;if(w.is(n)||k.is(n)?o=n:r=n,void 0===o?i=T.create(e,t,r):(a=k.is(o)?o:this._changeAnnotations.manage(o),i=T.create(e,t,r,a)),this._workspaceEdit.documentChanges.push(i),void 0!==a)return a},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 r,o,i;if(w.is(t)||k.is(t)?r=t:n=t,void 0===r?o=C.create(e,n):(i=k.is(r)?r:this._changeAnnotations.manage(r),o=C.create(e,n,i)),this._workspaceEdit.documentChanges.push(o),void 0!==i)return i}}(),function(e){e.create=function(e){return{uri:e}},e.is=function(e){var t=e;return ce.defined(t)&&ce.string(t.uri)}}(j||(j={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){var t=e;return ce.defined(t)&&ce.string(t.uri)&&ce.integer(t.version)}}(O||(O={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){var t=e;return ce.defined(t)&&ce.string(t.uri)&&(null===t.version||ce.integer(t.version))}}(I||(I={})),function(e){e.create=function(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}},e.is=function(e){var t=e;return ce.defined(t)&&ce.string(t.uri)&&ce.string(t.languageId)&&ce.integer(t.version)&&ce.string(t.text)}}(_||(_={})),function(e){e.PlainText="plaintext",e.Markdown="markdown"}($||($={})),function(e){e.is=function(t){var n=t;return n===e.PlainText||n===e.Markdown}}($||($={})),function(e){e.is=function(e){var t=e;return ce.objectLiteral(e)&&$.is(t.kind)&&ce.string(t.value)}}(F||(F={})),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}(R||(R={})),function(e){e.PlainText=1,e.Snippet=2}(N||(N={})),function(e){e.Deprecated=1}(z||(z={})),function(e){e.create=function(e,t,n){return{newText:e,insert:t,replace:n}},e.is=function(e){var t=e;return t&&ce.string(t.newText)&&a.is(t.insert)&&a.is(t.replace)}}(M||(M={})),function(e){e.asIs=1,e.adjustIndentation=2}(U||(U={})),function(e){e.create=function(e){return{label:e}}}(W||(W={})),function(e){e.create=function(e,t){return{items:e||[],isIncomplete:!!t}}}(B||(B={})),function(e){e.fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},e.is=function(e){var t=e;return ce.string(t)||ce.objectLiteral(t)&&ce.string(t.language)&&ce.string(t.value)}}(D||(D={})),function(e){e.is=function(e){var t=e;return!!t&&ce.objectLiteral(t)&&(F.is(t.contents)||D.is(t.contents)||ce.typedArray(t.contents,D.is))&&(void 0===e.range||a.is(e.range))}}(L||(L={})),function(e){e.create=function(e,t){return t?{label:e,documentation:t}:{label:e}}}(V||(V={})),function(e){e.create=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o={label:e};return ce.defined(t)&&(o.documentation=t),ce.defined(n)?o.parameters=n:o.parameters=[],o}}(q||(q={})),function(e){e.Text=1,e.Read=2,e.Write=3}(G||(G={})),function(e){e.create=function(e,t){var n={range:e};return ce.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}(J||(J={})),function(e){e.Deprecated=1}(Z||(Z={})),function(e){e.create=function(e,t,n,r,o){var i={name:e,kind:t,location:{uri:r,range:n}};return o&&(i.containerName=o),i}}(Q||(Q={})),function(e){e.create=function(e,t,n,r,o,i){var a={name:e,detail:t,kind:n,range:r,selectionRange:o};return void 0!==i&&(a.children=i),a},e.is=function(e){var t=e;return t&&ce.string(t.name)&&ce.number(t.kind)&&a.is(t.range)&&a.is(t.selectionRange)&&(void 0===t.detail||ce.string(t.detail))&&(void 0===t.deprecated||ce.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))&&(void 0===t.tags||Array.isArray(t.tags))}}(X||(X={})),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"}(K||(K={})),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 ce.defined(t)&&ce.typedArray(t.diagnostics,b.is)&&(void 0===t.only||ce.typedArray(t.only,ce.string))}}(Y||(Y={})),function(e){e.create=function(e,t,n){var r={title:e},o=!0;return"string"==typeof t?(o=!1,r.kind=t):v.is(t)?r.command=t:r.edit=t,o&&void 0!==n&&(r.kind=n),r},e.is=function(e){var t=e;return t&&ce.string(t.title)&&(void 0===t.diagnostics||ce.typedArray(t.diagnostics,b.is))&&(void 0===t.kind||ce.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||v.is(t.command))&&(void 0===t.isPreferred||ce.boolean(t.isPreferred))&&(void 0===t.edit||P.is(t.edit))}}(ee||(ee={})),function(e){e.create=function(e,t){var n={range:e};return ce.defined(t)&&(n.data=t),n},e.is=function(e){var t=e;return ce.defined(t)&&a.is(t.range)&&(ce.undefined(t.command)||v.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 ce.defined(t)&&ce.uinteger(t.tabSize)&&ce.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 ce.defined(t)&&a.is(t.range)&&(ce.undefined(t.target)||ce.string(t.target))}}(re||(re={})),function(e){e.create=function(e,t){return{range:e,parent:t}},e.is=function(t){var n=t;return void 0!==n&&a.is(n.range)&&(void 0===n.parent||e.is(n.parent))}}(oe||(oe={})),function(e){function t(e,n){if(e.length<=1)return e;var r=e.length/2|0,o=e.slice(0,r),i=e.slice(r);t(o,n),t(i,n);for(var a=0,s=0,c=0;a<o.length&&s<i.length;){var u=n(o[a],i[s]);e[c++]=u<=0?o[a++]:i[s++]}for(;a<o.length;)e[c++]=o[a++];for(;s<i.length;)e[c++]=i[s++];return e}e.create=function(e,t,n,r){return new le(e,t,n,r)},e.is=function(e){var t=e;return!!(ce.defined(t)&&ce.string(t.uri)&&(ce.undefined(t.languageId)||ce.string(t.languageId))&&ce.uinteger(t.lineCount)&&ce.func(t.getText)&&ce.func(t.positionAt)&&ce.func(t.offsetAt))},e.applyEdits=function(e,n){for(var r=e.getText(),o=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})),i=r.length,a=o.length-1;a>=0;a--){var s=o[a],c=e.offsetAt(s.range.start),u=e.offsetAt(s.range.end);if(!(u<=i))throw new Error("Overlapping edit");r=r.substring(0,c)+s.newText+r.substring(u,r.length),i=c}return r}}(ie||(ie={}));var ce,ue,le=function(){function e(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,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,r=0;r<t.length;r++){n&&(e.push(r),n=!1);var o=t.charAt(r);n="\r"===o||"\n"===o,"\r"===o&&r+1<t.length&&"\n"===t.charAt(r+1)&&r++}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,r=t.length;if(0===r)return i.create(0,e);for(;n<r;){var o=Math.floor((n+r)/2);t[o]>e?r=o:n=o+1}var a=n-1;return i.create(a,e-t[a])},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],r=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,r),n)},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),e}();function pe(e){return 32===e||9===e||11===e||12===e||160===e||5760===e||e>=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function fe(e){return 10===e||13===e||8232===e||8233===e}function de(e){return e>=48&&e<=57}function me(e,t,n){void 0===n&&(n=ue.DEFAULT);var r=function(e,t){void 0===t&&(t=!1);var n=e.length,r=0,o="",i=0,a=16,s=0,c=0,u=0,l=0,p=0;function f(t,n){for(var o=0,i=0;o<t||!n;){var a=e.charCodeAt(r);if(a>=48&&a<=57)i=16*i+a-48;else if(a>=65&&a<=70)i=16*i+a-65+10;else{if(!(a>=97&&a<=102))break;i=16*i+a-97+10}r++,o++}return o<t&&(i=-1),i}function d(){if(o="",p=0,i=r,c=s,l=u,r>=n)return i=n,a=17;var t=e.charCodeAt(r);if(pe(t)){do{r++,o+=String.fromCharCode(t),t=e.charCodeAt(r)}while(pe(t));return a=15}if(fe(t))return r++,o+=String.fromCharCode(t),13===t&&10===e.charCodeAt(r)&&(r++,o+="\n"),s++,u=r,a=14;switch(t){case 123:return r++,a=1;case 125:return r++,a=2;case 91:return r++,a=3;case 93:return r++,a=4;case 58:return r++,a=6;case 44:return r++,a=5;case 34:return r++,o=function(){for(var t="",o=r;;){if(r>=n){t+=e.substring(o,r),p=2;break}var i=e.charCodeAt(r);if(34===i){t+=e.substring(o,r),r++;break}if(92!==i){if(i>=0&&i<=31){if(fe(i)){t+=e.substring(o,r),p=2;break}p=6}r++}else{if(t+=e.substring(o,r),++r>=n){p=2;break}switch(e.charCodeAt(r++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+="\t";break;case 117:var a=f(4,!0);a>=0?t+=String.fromCharCode(a):p=4;break;default:p=5}o=r}}return t}(),a=10;case 47:var d=r-1;if(47===e.charCodeAt(r+1)){for(r+=2;r<n&&!fe(e.charCodeAt(r));)r++;return o=e.substring(d,r),a=12}if(42===e.charCodeAt(r+1)){r+=2;for(var g=n-1,h=!1;r<g;){var y=e.charCodeAt(r);if(42===y&&47===e.charCodeAt(r+1)){r+=2,h=!0;break}r++,fe(y)&&(13===y&&10===e.charCodeAt(r)&&r++,s++,u=r)}return h||(r++,p=1),o=e.substring(d,r),a=13}return o+=String.fromCharCode(t),r++,a=16;case 45:if(o+=String.fromCharCode(t),++r===n||!de(e.charCodeAt(r)))return a=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return o+=function(){var t=r;if(48===e.charCodeAt(r))r++;else for(r++;r<e.length&&de(e.charCodeAt(r));)r++;if(r<e.length&&46===e.charCodeAt(r)){if(!(++r<e.length&&de(e.charCodeAt(r))))return p=3,e.substring(t,r);for(r++;r<e.length&&de(e.charCodeAt(r));)r++}var n=r;if(r<e.length&&(69===e.charCodeAt(r)||101===e.charCodeAt(r)))if((++r<e.length&&43===e.charCodeAt(r)||45===e.charCodeAt(r))&&r++,r<e.length&&de(e.charCodeAt(r))){for(r++;r<e.length&&de(e.charCodeAt(r));)r++;n=r}else p=3;return e.substring(t,n)}(),a=11;default:for(;r<n&&m(t);)r++,t=e.charCodeAt(r);if(i!==r){switch(o=e.substring(i,r)){case"true":return a=8;case"false":return a=9;case"null":return a=7}return a=16}return o+=String.fromCharCode(t),r++,a=16}}function m(e){if(pe(e)||fe(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}return{setPosition:function(e){r=e,o="",i=0,a=16,p=0},getPosition:function(){return r},scan:t?function(){var e;do{e=d()}while(e>=12&&e<=15);return e}:d,getToken:function(){return a},getTokenValue:function(){return o},getTokenOffset:function(){return i},getTokenLength:function(){return r-i},getTokenStartLine:function(){return c},getTokenStartCharacter:function(){return i-l},getTokenError:function(){return p}}}(e,!1);function o(e){return e?function(){return e(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter())}:function(){return!0}}function i(e){return e?function(t){return e(t,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter())}:function(){return!0}}var a=o(t.onObjectBegin),s=i(t.onObjectProperty),c=o(t.onObjectEnd),u=o(t.onArrayBegin),l=o(t.onArrayEnd),p=i(t.onLiteralValue),f=i(t.onSeparator),d=o(t.onComment),m=i(t.onError),g=n&&n.disallowComments,h=n&&n.allowTrailingComma;function y(){for(;;){var e=r.scan();switch(r.getTokenError()){case 4:b(14);break;case 5:b(15);break;case 3:b(13);break;case 1:g||b(11);break;case 2:b(12);break;case 6:b(16)}switch(e){case 12:case 13:g?b(10):d();break;case 16:b(1);break;case 15:case 14:break;default:return e}}}function b(e,t,n){if(void 0===t&&(t=[]),void 0===n&&(n=[]),m(e),t.length+n.length>0)for(var o=r.getToken();17!==o;){if(-1!==t.indexOf(o)){y();break}if(-1!==n.indexOf(o))break;o=y()}}function v(e){var t=r.getTokenValue();return e?p(t):s(t),y(),!0}return y(),17===r.getToken()?!!n.allowEmptyContent||(b(4,[],[]),!1):function e(){switch(r.getToken()){case 3:return function(){u(),y();for(var t=!1;4!==r.getToken()&&17!==r.getToken();){if(5===r.getToken()){if(t||b(4,[],[]),f(","),y(),4===r.getToken()&&h)break}else t&&b(6,[],[]);e()||b(4,[],[4,5]),t=!0}return l(),4!==r.getToken()?b(8,[4],[]):y(),!0}();case 1:return function(){a(),y();for(var t=!1;2!==r.getToken()&&17!==r.getToken();){if(5===r.getToken()){if(t||b(4,[],[]),f(","),y(),2===r.getToken()&&h)break}else t&&b(6,[],[]);(10!==r.getToken()?(b(3,[],[2,5]),0):(v(!1),6===r.getToken()?(f(":"),y(),e()||b(4,[],[2,5])):b(5,[],[2,5]),1))||b(4,[],[2,5]),t=!0}return c(),2!==r.getToken()?b(7,[2],[]):y(),!0}();case 10:return v(!0);default:return function(){switch(r.getToken()){case 11:var e=r.getTokenValue(),t=Number(e);isNaN(t)&&(b(2),t=0),p(t);break;case 7:p(null);break;case 8:p(!0);break;case 9:p(!1);break;default:return!1}return y(),!0}()}}()?(17!==r.getToken()&&b(9,[],[]),!0):(b(4,[],[]),!1)}!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,r){return"[object Number]"===t.call(e)&&n<=e&&e<=r},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)}}(ce||(ce={})),function(e){e.DEFAULT={allowTrailingComma:!1}}(ue||(ue={}));const ge={properties:["additive-symbols","align-content","align-items","justify-items","justify-self","justify-items","align-self","all","alt","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","behavior","block-size","border","border-block-end","border-block-start","border-block-end-color","border-block-start-color","border-block-end-style","border-block-start-style","border-block-end-width","border-block-start-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline-end","border-inline-start","border-inline-end-color","border-inline-start-color","border-inline-end-style","border-inline-start-style","border-inline-end-width","border-inline-start-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation-filters","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","columns","column-span","column-width","contain","content","counter-increment","counter-reset","cursor","direction","display","empty-cells","enable-background","fallback","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","font","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","glyph-orientation-horizontal","glyph-orientation-vertical","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","height","hyphens","image-orientation","image-rendering","ime-mode","inline-size","isolation","justify-content","kerning","left","letter-spacing","lighting-color","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block-end","margin-block-start","margin-bottom","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marker","marker-end","marker-mid","marker-start","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","motion","motion-offset","motion-path","motion-rotation","-moz-animation","-moz-animation-delay","-moz-animation-direction","-moz-animation-duration","-moz-animation-iteration-count","-moz-animation-name","-moz-animation-play-state","-moz-animation-timing-function","-moz-appearance","-moz-backface-visibility","-moz-background-clip","-moz-background-inline-policy","-moz-background-origin","-moz-border-bottom-colors","-moz-border-image","-moz-border-left-colors","-moz-border-right-colors","-moz-border-top-colors","-moz-box-align","-moz-box-direction","-moz-box-flex","-moz-box-flexgroup","-moz-box-ordinal-group","-moz-box-orient","-moz-box-pack","-moz-box-sizing","-moz-column-count","-moz-column-gap","-moz-column-rule","-moz-column-rule-color","-moz-column-rule-style","-moz-column-rule-width","-moz-columns","-moz-column-width","-moz-font-feature-settings","-moz-hyphens","-moz-perspective","-moz-perspective-origin","-moz-text-align-last","-moz-text-decoration-color","-moz-text-decoration-line","-moz-text-decoration-style","-moz-text-size-adjust","-moz-transform","-moz-transform-origin","-moz-transition","-moz-transition-delay","-moz-transition-duration","-moz-transition-property","-moz-transition-timing-function","-moz-user-focus","-moz-user-select","-ms-accelerator","-ms-behavior","-ms-block-progression","-ms-content-zoom-chaining","-ms-content-zooming","-ms-content-zoom-limit","-ms-content-zoom-limit-max","-ms-content-zoom-limit-min","-ms-content-zoom-snap","-ms-content-zoom-snap-points","-ms-content-zoom-snap-type","-ms-filter","-ms-flex","-ms-flex-align","-ms-flex-direction","-ms-flex-flow","-ms-flex-item-align","-ms-flex-line-pack","-ms-flex-order","-ms-flex-pack","-ms-flex-wrap","-ms-flow-from","-ms-flow-into","-ms-grid-column","-ms-grid-column-align","-ms-grid-columns","-ms-grid-column-span","-ms-grid-layer","-ms-grid-row","-ms-grid-row-align","-ms-grid-rows","-ms-grid-row-span","-ms-high-contrast-adjust","-ms-hyphenate-limit-chars","-ms-hyphenate-limit-lines","-ms-hyphenate-limit-zone","-ms-hyphens","-ms-ime-mode","-ms-interpolation-mode","-ms-layout-grid","-ms-layout-grid-char","-ms-layout-grid-line","-ms-layout-grid-mode","-ms-layout-grid-type","-ms-line-break","-ms-overflow-style","-ms-perspective","-ms-perspective-origin","-ms-perspective-origin-x","-ms-perspective-origin-y","-ms-progress-appearance","-ms-scrollbar-3dlight-color","-ms-scrollbar-arrow-color","-ms-scrollbar-base-color","-ms-scrollbar-darkshadow-color","-ms-scrollbar-face-color","-ms-scrollbar-highlight-color","-ms-scrollbar-shadow-color","-ms-scrollbar-track-color","-ms-scroll-chaining","-ms-scroll-limit","-ms-scroll-limit-x-max","-ms-scroll-limit-x-min","-ms-scroll-limit-y-max","-ms-scroll-limit-y-min","-ms-scroll-rails","-ms-scroll-snap-points-x","-ms-scroll-snap-points-y","-ms-scroll-snap-type","-ms-scroll-snap-x","-ms-scroll-snap-y","-ms-scroll-translation","-ms-text-align-last","-ms-text-autospace","-ms-text-combine-horizontal","-ms-text-justify","-ms-text-kashida-space","-ms-text-overflow","-ms-text-size-adjust","-ms-text-underline-position","-ms-touch-action","-ms-touch-select","-ms-transform","-ms-transform-origin","-ms-transform-origin-x","-ms-transform-origin-y","-ms-transform-origin-z","-ms-user-select","-ms-word-break","-ms-word-wrap","-ms-wrap-flow","-ms-wrap-margin","-ms-wrap-through","-ms-writing-mode","-ms-zoom","-ms-zoom-animation","nav-down","nav-index","nav-left","nav-right","nav-up","negative","-o-animation","-o-animation-delay","-o-animation-direction","-o-animation-duration","-o-animation-fill-mode","-o-animation-iteration-count","-o-animation-name","-o-animation-play-state","-o-animation-timing-function","object-fit","object-position","-o-border-image","-o-object-fit","-o-object-position","opacity","order","orphans","-o-table-baseline","-o-tab-size","-o-text-overflow","-o-transform","-o-transform-origin","-o-transition","-o-transition-delay","-o-transition-duration","-o-transition-property","-o-transition-timing-function","offset-block-end","offset-block-start","offset-inline-end","offset-inline-start","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","pad","padding","padding-bottom","padding-block-end","padding-block-start","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","paint-order","perspective","perspective-origin","pointer-events","position","prefix","quotes","range","resize","right","ruby-align","ruby-overhang","ruby-position","ruby-span","scrollbar-3dlight-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-darkshadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","scroll-behavior","scroll-snap-coordinate","scroll-snap-destination","scroll-snap-points-x","scroll-snap-points-y","scroll-snap-type","shape-image-threshold","shape-margin","shape-outside","shape-rendering","size","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","suffix","system","symbols","table-layout","tab-size","text-align","text-align-last","text-anchor","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","unicode-range","user-select","vertical-align","visibility","-webkit-animation","-webkit-animation-delay","-webkit-animation-direction","-webkit-animation-duration","-webkit-animation-fill-mode","-webkit-animation-iteration-count","-webkit-animation-name","-webkit-animation-play-state","-webkit-animation-timing-function","-webkit-appearance","-webkit-backdrop-filter","-webkit-backface-visibility","-webkit-background-clip","-webkit-background-composite","-webkit-background-origin","-webkit-border-image","-webkit-box-align","-webkit-box-direction","-webkit-box-flex","-webkit-box-flex-group","-webkit-box-ordinal-group","-webkit-box-orient","-webkit-box-pack","-webkit-box-reflect","-webkit-box-sizing","-webkit-break-after","-webkit-break-before","-webkit-break-inside","-webkit-column-break-after","-webkit-column-break-before","-webkit-column-break-inside","-webkit-column-count","-webkit-column-gap","-webkit-column-rule","-webkit-column-rule-color","-webkit-column-rule-style","-webkit-column-rule-width","-webkit-columns","-webkit-column-span","-webkit-column-width","-webkit-filter","-webkit-flow-from","-webkit-flow-into","-webkit-font-feature-settings","-webkit-hyphens","-webkit-line-break","-webkit-margin-bottom-collapse","-webkit-margin-collapse","-webkit-margin-start","-webkit-margin-top-collapse","-webkit-mask-clip","-webkit-mask-image","-webkit-mask-origin","-webkit-mask-repeat","-webkit-mask-size","-webkit-nbsp-mode","-webkit-overflow-scrolling","-webkit-padding-start","-webkit-perspective","-webkit-perspective-origin","-webkit-region-fragment","-webkit-tap-highlight-color","-webkit-text-fill-color","-webkit-text-size-adjust","-webkit-text-stroke","-webkit-text-stroke-color","-webkit-text-stroke-width","-webkit-touch-callout","-webkit-transform","-webkit-transform-origin","-webkit-transform-origin-x","-webkit-transform-origin-y","-webkit-transform-origin-z","-webkit-transform-style","-webkit-transition","-webkit-transition-delay","-webkit-transition-duration","-webkit-transition-property","-webkit-transition-timing-function","-webkit-user-drag","-webkit-user-modify","-webkit-user-select","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","zoom"]},he={tags:["body","head","html","address","blockquote","dd","div","section","article","aside","header","footer","nav","menu","dl","dt","fieldset","form","frame","frameset","h1","h2","h3","h4","h5","h6","iframe","noframes","object","ol","p","ul","applet","center","dir","hr","pre","a","abbr","acronym","area","b","base","basefont","bdo","big","br","button","caption","cite","code","col","colgroup","del","dfn","em","font","i","img","input","ins","isindex","kbd","label","legend","li","link","map","meta","noscript","optgroup","option","param","q","s","samp","script","select","small","span","strike","strong","style","sub","sup","table","tbody","td","textarea","tfoot","th","thead","title","tr","tt","u","var","canvas","main","figure","plaintext","figcaption","hgroup","details","summary"]};var ye,be,ve,xe=(ye=function(e,t){return(ye=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])})(e,t)},function(e,t){function n(){this.constructor=e}ye(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});if("object"==typeof process)ve="win32"===process.platform;else if("object"==typeof navigator){var we=navigator.userAgent;ve=we.indexOf("Windows")>=0}var ke=/^\w[\w\d+.-]*$/,Ae=/^\//,Se=/^\/\//,Ee="",Te="/",Ce=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,Pe=function(){function e(e,t,n,r,o,i){void 0===i&&(i=!1),"object"==typeof e?(this.scheme=e.scheme||Ee,this.authority=e.authority||Ee,this.path=e.path||Ee,this.query=e.query||Ee,this.fragment=e.fragment||Ee):(this.scheme=function(e,t){return e||t?e:"file"}(e,i),this.authority=t||Ee,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==Te&&(t=Te+t):t=Te}return t}(this.scheme,n||Ee),this.query=r||Ee,this.fragment=o||Ee,function(e,t){if(!e.scheme&&t)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+e.authority+'", path: "'+e.path+'", query: "'+e.query+'", fragment: "'+e.fragment+'"}');if(e.scheme&&!ke.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!Ae.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(Se.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 ("//")')}(this,i))}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&&"function"==typeof t.fsPath&&"function"==typeof t.with&&"function"==typeof t.toString},Object.defineProperty(e.prototype,"fsPath",{get:function(){return Fe(this,!1)},enumerable:!0,configurable:!0}),e.prototype.with=function(e){if(!e)return this;var t=e.scheme,n=e.authority,r=e.path,o=e.query,i=e.fragment;return void 0===t?t=this.scheme:null===t&&(t=Ee),void 0===n?n=this.authority:null===n&&(n=Ee),void 0===r?r=this.path:null===r&&(r=Ee),void 0===o?o=this.query:null===o&&(o=Ee),void 0===i?i=this.fragment:null===i&&(i=Ee),t===this.scheme&&n===this.authority&&r===this.path&&o===this.query&&i===this.fragment?this:new Oe(t,n,r,o,i)},e.parse=function(e,t){void 0===t&&(t=!1);var n=Ce.exec(e);return n?new Oe(n[2]||Ee,Ue(n[4]||Ee),Ue(n[5]||Ee),Ue(n[7]||Ee),Ue(n[9]||Ee),t):new Oe(Ee,Ee,Ee,Ee,Ee)},e.file=function(e){var t=Ee;if(ve&&(e=e.replace(/\\/g,Te)),e[0]===Te&&e[1]===Te){var n=e.indexOf(Te,2);-1===n?(t=e.substring(2),e=Te):(t=e.substring(2,n),e=e.substring(n)||Te)}return new Oe("file",t,e,Ee,Ee)},e.from=function(e){return new Oe(e.scheme,e.authority,e.path,e.query,e.fragment)},e.prototype.toString=function(e){return void 0===e&&(e=!1),Re(this,e)},e.prototype.toJSON=function(){return this},e.revive=function(t){if(t){if(t instanceof e)return t;var n=new Oe(t);return n._formatted=t.external,n._fsPath=t._sep===je?t.fsPath:null,n}return t},e}(),je=ve?1:void 0,Oe=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._formatted=null,t._fsPath=null,t}return xe(t,e),Object.defineProperty(t.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=Fe(this,!1)),this._fsPath},enumerable:!0,configurable:!0}),t.prototype.toString=function(e){return void 0===e&&(e=!1),e?Re(this,!0):(this._formatted||(this._formatted=Re(this,!1)),this._formatted)},t.prototype.toJSON=function(){var e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=je),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}(Pe),Ie=((be={})[58]="%3A",be[47]="%2F",be[63]="%3F",be[35]="%23",be[91]="%5B",be[93]="%5D",be[64]="%40",be[33]="%21",be[36]="%24",be[38]="%26",be[39]="%27",be[40]="%28",be[41]="%29",be[42]="%2A",be[43]="%2B",be[44]="%2C",be[59]="%3B",be[61]="%3D",be[32]="%20",be);function _e(e,t){for(var n=void 0,r=-1,o=0;o<e.length;o++){var i=e.charCodeAt(o);if(i>=97&&i<=122||i>=65&&i<=90||i>=48&&i<=57||45===i||46===i||95===i||126===i||t&&47===i)-1!==r&&(n+=encodeURIComponent(e.substring(r,o)),r=-1),void 0!==n&&(n+=e.charAt(o));else{void 0===n&&(n=e.substr(0,o));var a=Ie[i];void 0!==a?(-1!==r&&(n+=encodeURIComponent(e.substring(r,o)),r=-1),n+=a):-1===r&&(r=o)}}return-1!==r&&(n+=encodeURIComponent(e.substring(r))),void 0!==n?n:e}function $e(e){for(var t=void 0,n=0;n<e.length;n++){var r=e.charCodeAt(n);35===r||63===r?(void 0===t&&(t=e.substr(0,n)),t+=Ie[r]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function Fe(e,t){var n;return n=e.authority&&e.path.length>1&&"file"===e.scheme?"//"+e.authority+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,ve&&(n=n.replace(/\//g,"\\")),n}function Re(e,t){var n=t?$e:_e,r="",o=e.scheme,i=e.authority,a=e.path,s=e.query,c=e.fragment;if(o&&(r+=o,r+=":"),(i||"file"===o)&&(r+=Te,r+=Te),i){var u=i.indexOf("@");if(-1!==u){var l=i.substr(0,u);i=i.substr(u+1),-1===(u=l.indexOf(":"))?r+=n(l,!1):(r+=n(l.substr(0,u),!1),r+=":",r+=n(l.substr(u+1),!1)),r+="@"}-1===(u=(i=i.toLowerCase()).indexOf(":"))?r+=n(i,!1):(r+=n(i.substr(0,u),!1),r+=i.substr(u))}if(a){if(a.length>=3&&47===a.charCodeAt(0)&&58===a.charCodeAt(2))(p=a.charCodeAt(1))>=65&&p<=90&&(a="/"+String.fromCharCode(p+32)+":"+a.substr(3));else if(a.length>=2&&58===a.charCodeAt(1)){var p;(p=a.charCodeAt(0))>=65&&p<=90&&(a=String.fromCharCode(p+32)+":"+a.substr(2))}r+=n(a,!0)}return s&&(r+="?",r+=n(s,!1)),c&&(r+="#",r+=t?c:_e(c,!1)),r}function Ne(e){try{return decodeURIComponent(e)}catch(t){return e.length>3?e.substr(0,3)+Ne(e.substr(3)):e}}var ze,Me=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function Ue(e){return e.match(Me)?e.replace(Me,(function(e){return Ne(e)})):e}!function(e){e[e.Unknown=0]="Unknown",e[e.File=1]="File",e[e.Directory=2]="Directory",e[e.SymbolicLink=64]="SymbolicLink"}(ze||(ze={}));const We=new RegExp("^(/|//|\\\\\\\\|[A-Za-z]:(/|\\\\))"),Be=".".charCodeAt(0);function De(e){const t=[];for(const n of e)0===n.length||1===n.length&&n.charCodeAt(0)===Be||(2===n.length&&n.charCodeAt(0)===Be&&n.charCodeAt(1)===Be?t.pop():t.push(n));e.length>1&&0===e[e.length-1].length&&t.push("");let n=t.join("/");return 0===e[0].length&&(n="/"+n),n}function Le(e,...t){const n=e.path.split("/");for(const e of t)n.push(...e.split("/"));return e.with({path:De(n)})}var Ve=n(3335),qe=n(9790);function Ge(e){return e.tokens[e.pos]}function He(e){return e.tokens[e.pos++]}function Je(e,t=e.start,n=e.pos){return e.tokens.slice(t,n)}function Ze(e){return e.pos<e.size}function Qe(e,t){const n=Ge(e);return!(!n||!t(n)||(e.pos++,0))}function Xe(e,t,n=Ge(e)){n&&null!=n.start&&(t+=` at ${n.start}`);const r=new Error(t);return r.pos=n&&n.start,r}function Ke(e,t){const n={type:"TokenGroup",elements:[]};let r,o=n;const i=[];for(;Ze(e)&&(r=et(e,t)||Ye(e,t));)if(o.elements.push(r),Qe(e,kt))i.push(o),o=r;else{if(Qe(e,At))continue;if(Qe(e,St))do{i.length&&(o=i.pop())}while(Qe(e,St))}return n}function Ye(e,t){if(Qe(e,xt)){const n=Ke(e,t);return ct(He(e),"group",!1)&&(n.repeat=function(e){return dt(Ge(e))?e.tokens[e.pos++]:void 0}(e)),n}}function et(e,t){let n;const r={type:"TokenElement",name:void 0,attributes:void 0,value:void 0,repeat:void 0,selfClose:!1,elements:[]};for(function(e,t){const n=e.pos;if(t.jsx&&Qe(e,mt))for(;Ze(e);){const{pos:t}=e;if(!Qe(e,ht)||!Qe(e,mt)){e.pos=t;break}}for(;Ze(e)&&Qe(e,gt););return e.pos!==n&&(e.start=n,!0)}(e,t)&&(r.name=Je(e));Ze(e);)if(e.start=e.pos,r.repeat||wt(r)||!Qe(e,dt))if(!r.value&&at(e))r.value=st(e);else{if(!(n=nt(e,"id",t)||nt(e,"class",t)||tt(e))){!wt(r)&&Qe(e,Et)&&(r.selfClose=!0,!r.repeat&&Qe(e,dt)&&(r.repeat=e.tokens[e.pos-1]));break}r.attributes?r.attributes=r.attributes.concat(n):r.attributes=Array.isArray(n)?n.slice():[n]}else r.repeat=e.tokens[e.pos-1];return wt(r)?void 0:r}function tt(e){if(Qe(e,yt)){const t=[];let n;for(;Ze(e);)if(n=rt(e))t.push(n);else{if(Qe(e,bt))break;if(!Qe(e,pt))throw Xe(e,`Unexpected "${Ge(e).type}" token`)}return t}}function nt(e,t,n){if(ut(Ge(e),t)){e.pos++;const o={name:[(r=t,{type:"Literal",value:r})]};return n.jsx&&at(e)?(o.value=st(e),o.expression=!0):o.value=it(e)?Je(e):void 0,o}var r}function rt(e){return ot(e)?{value:Je(e)}:it(e,!0)?{name:Je(e),value:Qe(e,ft)&&(ot(e)||it(e,!0))?Je(e):void 0}:void 0}function ot(e){const t=e.pos,n=Ge(e);if(lt(n)){for(e.pos++;Ze(e);)if(lt(He(e),n.single))return e.start=t,!0;throw Xe(e,"Unclosed quote",n)}return!1}function it(e,t){const n=e.pos,r={attribute:0,expression:0,group:0};for(;Ze(e);){const n=Ge(e);if(r.expression)ct(n,"expression")&&(r[n.context]+=n.open?1:-1);else{if(lt(n)||ut(n)||pt(n)||dt(n))break;if(ct(n)){if(!t)break;if(n.open)r[n.context]++;else{if(!r[n.context])break;r[n.context]--}}}e.pos++}return n!==e.pos&&(e.start=n,!0)}function at(e){const t=e.pos;if(Qe(e,vt)){let n=0;for(;Ze(e);){const t=He(e);if(ct(t,"expression"))if(t.open)n++;else{if(!n)break;n--}}return e.start=t,!0}return!1}function st(e){let t=e.start,n=e.pos;return ct(e.tokens[t],"expression",!0)&&t++,ct(e.tokens[n-1],"expression",!1)&&n--,Je(e,t,n)}function ct(e,t,n){return Boolean(e&&"Bracket"===e.type&&(!t||e.context===t)&&(null==n||e.open===n))}function ut(e,t){return Boolean(e&&"Operator"===e.type&&(!t||e.operator===t))}function lt(e,t){return Boolean(e&&"Quote"===e.type&&(null==t||e.single===t))}function pt(e){return Boolean(e&&"WhiteSpace"===e.type)}function ft(e){return ut(e,"equal")}function dt(e){return Boolean(e&&"Repeater"===e.type)}function mt(e){if(function(e){return"Literal"===e.type}(e)){const t=e.value.charCodeAt(0);return t>=65&&t<=90}return!1}function gt(e){return"Literal"===e.type||"RepeaterNumber"===e.type||"RepeaterPlaceholder"===e.type}function ht(e){return ut(e,"class")}function yt(e){return ct(e,"attribute",!0)}function bt(e){return ct(e,"attribute",!1)}function vt(e){return ct(e,"expression",!0)}function xt(e){return ct(e,"group",!0)}function wt(e){return!e.name&&!e.value&&!e.attributes}function kt(e){return ut(e,"child")}function At(e){return ut(e,"sibling")}function St(e){return ut(e,"climb")}function Et(e){return ut(e,"close")}function Tt(e){return!!e.eat(92)&&(e.start=e.pos,e.eof()||e.pos++,!0)}function Ct(e,t){return function(e,t){const n=e.pos;if((t.expression||t.attribute)&&e.eat(36)&&e.eat(123)){let t;e.start=e.pos;let r="";if(e.eatWhile(qe.hj)?(t=Number(e.current()),r=e.eat(58)?Pt(e):""):(0,qe.$9)(e.peek())&&(r=Pt(e)),e.eat(125))return{type:"Field",index:t,name:r,start:n,end:e.pos};throw e.error("Expecting }")}e.pos=n}(e,t)||function(e){const t=e.pos;if(e.eat(36)&&e.eat(35))return{type:"RepeaterPlaceholder",value:void 0,start:t,end:e.pos};e.pos=t}(e)||function(e){const t=e.pos;if(e.eatWhile(36)){const n=e.pos-t;let r=!1,o=1,i=0;if(e.eat(64)){for(;e.eat(94);)i++;r=e.eat(45),e.start=e.pos,e.eatWhile(qe.hj)&&(o=Number(e.current()))}return e.start=t,{type:"RepeaterNumber",size:n,reverse:r,base:o,parent:i,start:t,end:e.pos}}}(e)||function(e){const t=e.pos;if(e.eat(42)){e.start=e.pos;let n=1,r=!1;return e.eatWhile(qe.hj)?n=Number(e.current()):r=!0,{type:"Repeater",count:n,value:0,implicit:r,start:t,end:e.pos}}}(e)||function(e){const t=e.pos;if(e.eatWhile(qe.Wd))return{type:"WhiteSpace",start:t,end:e.pos,value:e.substring(t,e.pos)}}(e)||function(e,t){const n=e.pos;let r="";for(;!e.eof();){if(Tt(e)){r+=e.current();continue}const n=e.peek();if(n===t.quote||36===n||jt(n,t))break;if(t.expression&&125===n)break;if(!t.quote&&!t.expression){if(!t.attribute&&!Rt(n))break;if(Ot(n,t)||It(n,t)||(0,qe.LN)(n)||_t(n))break}r+=e.string[e.pos++]}if(n!==e.pos)return e.start=n,{type:"Literal",value:r,start:n,end:e.pos}}(e,t)||function(e){const t=$t(e.peek());if(t)return{type:"Operator",operator:t,start:e.pos++,end:e.pos}}(e)||function(e){const t=e.peek();if((0,qe.LN)(t))return{type:"Quote",single:39===t,start:e.pos++,end:e.pos}}(e)||function(e){const t=e.peek(),n=_t(t);if(n)return{type:"Bracket",open:Ft(t),context:n,start:e.pos++,end:e.pos}}(e)}function Pt(e){const t=[];for(e.start=e.pos;!e.eof();)if(e.eat(123))t.push(e.pos);else if(e.eat(125)){if(!t.length){e.pos--;break}t.pop()}else e.pos++;if(t.length)throw e.pos=t.pop(),e.error("Expecting }");return e.current()}function jt(e,t){const n=$t(e);return!(!n||t.quote||t.expression||t.attribute&&"equal"!==n)}function Ot(e,t){return(0,qe.Wd)(e)&&!t.expression}function It(e,t){return 42===e&&!t.attribute&&!t.expression}function _t(e){return 40===e||41===e?"group":91===e||93===e?"attribute":123===e||125===e?"expression":void 0}function $t(e){return(62===e?"child":43===e&&"sibling")||94===e&&"climb"||46===e&&"class"||35===e&&"id"||47===e&&"close"||61===e&&"equal"||void 0}function Ft(e){return 123===e||91===e||40===e}function Rt(e){return(0,qe.T0)(e)||45===e||58===e||33===e}const Nt={child:">",class:".",climb:"^",id:"#",equal:"=",close:"/",sibling:"+"},zt={Literal:e=>e.value,Quote:e=>e.single?"'":'"',Bracket:e=>"attribute"===e.context?e.open?"[":"]":"expression"===e.context?e.open?"{":"}":e.open?"(":"}",Operator:e=>Nt[e.operator],Field:(e,t)=>null!=e.index?e.name?`\${${e.index}:${e.name}}`:`\${${e.index}`:e.name?t.getVariable(e.name):"",RepeaterPlaceholder(e,t){let n;for(let e=t.repeaters.length-1;e>=0;e--)if(t.repeaters[e].implicit){n=t.repeaters[e];break}return t.inserted=!0,t.getText(n&&n.value)},RepeaterNumber(e,t){let n=1;const r=t.repeaters.length-1,o=t.repeaters[r];if(o&&(n=e.reverse?e.base+o.count-o.value-1:e.base+o.value,e.parent)){const i=Math.max(0,r-e.parent);if(i!==r){const e=t.repeaters[i];n+=o.count*e.value}}let i=String(n);for(;i.length<e.size;)i="0"+i;return i},WhiteSpace:e=>e.value};function Mt(e,t){if(!zt[e.type])throw new Error(`Unknown token ${e.type}`);return zt[e.type](e,t)}const Ut=/^((https?:|ftp:|file:)?\/\/|(www|ftp)\.)[^ ]*$/,Wt=/^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,5}$/;function Bt(e,t){let n=[];if(e.repeat){const r=e.repeat,o=Object.assign({},r);let i;o.count=o.implicit&&Array.isArray(t.text)?t.cleanText.length:o.count||1,t.repeaters.push(o);for(let r=0;r<o.count;r++){if(o.value=r,e.repeat=o,i=Ht(e)?Lt(e,t):Dt(e,t),o.implicit&&!t.inserted){const e=Zt(i),n=e&&Qt(e);n&&Xt(n,t.getText(o.value))}if(n=n.concat(i),--t.repeatGuard<=0)break}t.repeaters.pop(),e.repeat=r,o.implicit&&(t.inserted=!0)}else n=n.concat(Ht(e)?Lt(e,t):Dt(e,t));return n}function Dt(e,t){let n=[];const r={type:"AbbreviationNode",name:e.name&&qt(e.name,t),value:e.value&&Gt(e.value,t),attributes:void 0,children:n,repeat:e.repeat&&Object.assign({},e.repeat),selfClosing:e.selfClose};let o=[r];for(const r of e.elements)n=n.concat(Bt(r,t));if(e.attributes){r.attributes=[];for(const n of e.attributes)r.attributes.push(Vt(n,t))}return r.name||r.attributes||!r.value||r.value.some(Jt)?r.children=n:o=o.concat(n),o}function Lt(e,t){let n=[];for(const r of e.elements)n=n.concat(Bt(r,t));return e.repeat&&(n=function(e,t){for(const n of e)n.repeat||(n.repeat=Object.assign({},t));return e}(n,e.repeat)),n}function Vt(e,t){let n,r=!1,o=!1,i=e.expression?"expression":"raw";const a=e.name&&qt(e.name,t);if(a&&"!"===a[0]&&(r=!0),a&&"."===a[a.length-1]&&(o=!0),e.value){const r=e.value.slice();if(lt(r[0])){const e=r.shift();r.length&&Zt(r).type===e.type&&r.pop(),i=e.single?"singleQuote":"doubleQuote"}else ct(r[0],"expression",!0)&&(i="expression",r.shift(),ct(Zt(r),"expression",!1)&&r.pop());n=Gt(r,t)}return{name:o||r?a.slice(r?1:0,o?-1:void 0):a,value:n,boolean:o,implied:r,valueType:i}}function qt(e,t){let n="";for(let r=0;r<e.length;r++)n+=Mt(e[r],t);return n}function Gt(e,t){const n=[];let r="";for(let o,i=0;i<e.length;i++)o=e[i],Jt(o)?(r&&(n.push(r),r=""),n.push(o)):r+=Mt(o,t);return r&&n.push(r),n}function Ht(e){return"TokenGroup"===e.type}function Jt(e){return"object"==typeof e&&"Field"===e.type&&null!=e.index}function Zt(e){return e[e.length-1]}function Qt(e){return e.children.length?Qt(Zt(e.children)):e}function Xt(e,t){e.value?"string"==typeof Zt(e.value)?e.value[e.value.length-1]+=t:e.value.push(t):e.value=[t]}const Kt=function(e,t){try{return function(e,t={}){let n,r=!1;t.text&&(n=Array.isArray(t.text)?t.text.filter((e=>e.trim())):t.text);const o={type:"Abbreviation",children:Lt(e,{inserted:!1,repeaters:[],text:t.text,cleanText:n,repeatGuard:t.maxRepeat||Number.POSITIVE_INFINITY,getText(e){var o;let i;if(r=!0,Array.isArray(t.text)){if(void 0!==e&&e>=0&&e<n.length)return n[e];i=void 0!==e?t.text[e]:t.text.join("\n")}else i=null!==(o=t.text)&&void 0!==o?o:"";return i},getVariable(e){const n=t.variables&&t.variables[e];return null!=n?n:e}})};if(null!=t.text&&!r){const e=Qt(Zt(o.children));if(e){const n=Array.isArray(t.text)?t.text.join("\n"):t.text;Xt(e,n),"a"===e.name&&t.href&&function(e,t){var n;let r="";Ut.test(t)?(r=t,/\w+:/.test(r)||r.startsWith("//")||(r=`http://${r}`)):Wt.test(t)&&(r=`mailto:${t}`);const o=null===(n=e.attributes)||void 0===n?void 0:n.find((e=>"href"===e.name));o?o.value||(o.value=[r]):(e.attributes||(e.attributes=[]),e.attributes.push({name:"href",value:[r],valueType:"doubleQuote"}))}(e,n)}}return o}(function(e,t={}){const n={tokens:r=e,start:0,pos:0,size:r.length};var r;const o=Ke(n,t);if(Ze(n))throw Xe(n,"Unexpected character");return o}("string"==typeof e?function(e){const t=new qe.ZP(e),n=[],r={group:0,attribute:0,expression:0,quote:0};let o,i=0;for(;!t.eof();){if(i=t.peek(),o=Ct(t,r),!o)throw t.error("Unexpected character");n.push(o),"Quote"===o.type?r.quote=i===r.quote?0:i:"Bracket"===o.type&&(r[o.context]+=o.open?1:-1)}return n}(e):e,t),t)}catch(t){throw t instanceof qe.u5&&"string"==typeof e&&(t.message+=`\n${e}\n${"-".repeat(t.pos)}^`),t}};function Yt(e,t){return function(e){const t=e.pos;if(e.eat(36)&&e.eat(123)){let n;e.start=e.pos;let r="";if(e.eatWhile(qe.hj)?(n=Number(e.current()),r=e.eat(58)?en(e):""):(0,qe.$9)(e.peek())&&(r=en(e)),e.eat(125))return{type:"Field",index:n,name:r,start:t,end:e.pos};throw e.error("Expecting }")}e.pos=t}(e)||function(e){const t=e.pos;if(function(e){const t=e.pos;e.eat(45);const n=e.pos,r=e.eatWhile(qe.hj),o=e.pos;if(e.eat(46)){const t=e.eatWhile(qe.hj);r||t||(e.pos=o)}return e.pos===n&&(e.pos=t),e.pos!==t}(e)){e.start=t;const n=e.current();return e.start=e.pos,e.eat(37)||e.eatWhile(qe.QS),{type:"NumberValue",value:Number(n),rawValue:n,unit:e.current(),start:t,end:e.pos}}}(e)||function(e){const t=e.pos;if(e.eat(35)){const n=e.pos;let r="",o="";if(e.eatWhile(an)?(r=e.substring(n,e.pos),o=nn(e)):e.eat(116)?(r="0",o=nn(e)||"0"):o=nn(e),r||o||e.eof()){const{r:n,g:i,b:a,a:s}=function(e,t){let n="0",r="0",o="0",i=Number(null!=t&&""!==t?t:1);if("t"===e)i=0;else switch(e.length){case 0:break;case 1:n=r=o=e+e;break;case 2:n=r=o=e;break;case 3:n=e[0]+e[0],r=e[1]+e[1],o=e[2]+e[2];break;default:n=(e+=e).slice(0,2),r=e.slice(2,4),o=e.slice(4,6)}return{r:parseInt(n,16),g:parseInt(r,16),b:parseInt(o,16),a:i}}(r,o);return{type:"ColorValue",r:n,g:i,b:a,a:s,raw:e.substring(t+1,e.pos),start:t,end:e.pos}}return tn(e,t)}e.pos=t}(e)||function(e){const t=e.peek(),n=e.pos;let r=!1;if((0,qe.LN)(t)){for(e.pos++;!e.eof();){if(e.eat(t)){r=!0;break}e.pos++}return e.start=n,{type:"StringValue",value:e.substring(n+1,e.pos-(r?1:0)),quote:39===t?"single":"double",start:n,end:e.pos}}}(e)||function(e){const t=e.peek();if(function(e){return 40===e||41===e}(t))return{type:"Bracket",open:40===t,start:e.pos++,end:e.pos}}(e)||rn(e)||function(e){const t=e.pos;if(e.eatWhile(qe.Wd))return{type:"WhiteSpace",start:t,end:e.pos}}(e)||function(e,t){const n=e.pos;if(e.eat(on)?e.eatWhile(n?sn:cn):e.eat(qe.QS)?e.eatWhile(t?cn:sn):(e.eat(46),e.eatWhile(cn)),n!==e.pos)return e.start=n,tn(e,e.start=n)}(e,t)}function en(e){const t=[];for(e.start=e.pos;!e.eof();)if(e.eat(123))t.push(e.pos);else if(e.eat(125)){if(!t.length){e.pos--;break}t.pop()}else e.pos++;if(t.length)throw e.pos=t.pop(),e.error("Expecting }");return e.current()}function tn(e,t=e.start,n=e.pos){return{type:"Literal",value:e.substring(t,n),start:t,end:n}}function nn(e){const t=e.pos;return e.eat(46)?(e.start=t,e.eatWhile(qe.hj)?e.current():"1"):""}function rn(e){const t=(43===(n=e.peek())?"+":33===n&&"!")||44===n&&","||58===n&&":"||45===n&&"-"||void 0;var n;if(t)return{type:"Operator",operator:t,start:e.pos++,end:e.pos}}function on(e){return 64===e||36===e}function an(e){return(0,qe.hj)(e)||(0,qe.$9)(e,65,70)}function sn(e){return(0,qe.T0)(e)||45===e}function cn(e){return(0,qe.QS)(e)||37===e||47===e}function un(e){return"ColorValue"===e.type||"NumberValue"===e.type&&!e.unit}function ln(e,t){let n=0,r=0;for(;t.length;){const e=(o=t)[o.length-1];if("Literal"!==e.type&&"NumberValue"!==e.type)break;n=e.start,r||(r=e.end),t.pop()}var o;n!==r&&t.push(tn(e,n,r))}function pn(e){return e.tokens[e.pos]}function fn(e){return e.pos<e.size}function dn(e,t){return!!t(pn(e))&&(e.pos++,!0)}function mn(e,t,n=pn(e)){n&&null!=n.start&&(t+=` at ${n.start}`);const r=new Error(t);return r.pos=n&&n.start,r}function gn(e,t){let n,r,o=!1;const i=[],a=pn(e),s=!!t.value;for(s||!bn(a)||function(e){const t=e.tokens[e.pos],n=e.tokens[e.pos+1];return t&&n&&bn(t)&&"Bracket"===n.type}(e)||(e.pos++,n=a.value,dn(e,jn)),s&&dn(e,kn);fn(e);)if(dn(e,Cn))o=!0;else if(r=hn(e,s))i.push(r);else if(!dn(e,Tn))break;if(n||i.length||o)return{name:n,value:i,important:o}}function hn(e,t){const n=[];let r,o;for(;fn(e);)if(r=pn(e),Pn(r))e.pos++,bn(r)&&(o=yn(e))?n.push({type:"FunctionCall",name:r.value,arguments:o}):n.push(r);else{if(!(jn(r)||t&&kn(r)))break;e.pos++}return n.length?{type:"CSSValue",value:n}:void 0}function yn(e){const t=e.pos;if(dn(e,xn)){const n=[];let r;for(;fn(e)&&!dn(e,wn);)if(r=hn(e,!0))n.push(r);else if(!dn(e,kn)&&!dn(e,En))throw mn(e,"Unexpected token");return e.start=t,n}}function bn(e){return e&&"Literal"===e.type}function vn(e,t){return e&&"Bracket"===e.type&&(null==t||e.open===t)}function xn(e){return vn(e,!0)}function wn(e){return vn(e,!1)}function kn(e){return e&&"WhiteSpace"===e.type}function An(e,t){return e&&"Operator"===e.type&&(!t||e.operator===t)}function Sn(e){return An(e,"+")}function En(e){return An(e,",")}function Tn(e){return En(e)}function Cn(e){return An(e,"!")}function Pn(e){return"StringValue"===e.type||"ColorValue"===e.type||"NumberValue"===e.type||"Literal"===e.type||"Field"===e.type}function jn(e){return An(e,":")||An(e,"-")}const On=function(e,t){try{return function(e,t={}){const n=function(e){return{tokens:e,start:0,pos:0,size:e.length}}(e),r=[];let o;for(;fn(n);)if(o=gn(n,t))r.push(o);else if(!dn(n,Sn))throw mn(n,"Unexpected token");return r}("string"==typeof e?function(e,t){let n,r=0;const o=new qe.ZP(e),i=[];for(;!o.eof();){if(n=Yt(o,0===r&&!t),!n)throw o.error("Unexpected character");if("Bracket"===n.type&&(!r&&n.open&&ln(o,i),r+=n.open?1:-1,r<0))throw o.error("Unexpected bracket",n.start);i.push(n),un(n)&&(n=rn(o))&&i.push(n)}return i}(e,t&&t.value):e,t)}catch(t){throw t instanceof qe.u5&&"string"==typeof e&&(t.message+=`\n${e}\n${"-".repeat(t.pos)}^`),t}};function In(e,t,n){if(e&&t){e.length&&n&&$n(e,n);for(const n of t)$n(e,n);return e}const r=e||t;return r&&r.slice()}function _n(e,t,n){return e.name=t.name,n.options["output.reverseAttributes"]||(e.value=t.value),e.implied||(e.implied=t.implied),e.boolean||(e.boolean=t.boolean),"expression"!==e.valueType&&(e.valueType=t.valueType),e}function $n(e,t){const n=e.length-1;"string"==typeof e[n]&&"string"==typeof t?e[n]+=t:e.push(t)}function Fn(e){let t;for(;e.children.length;)t=e,e=e.children[e.children.length-1];return{parent:t,node:e}}function Rn(e){return"AbbreviationNode"===e.type}function Nn(e,t,n){let r=[];for(const n of e.children){const e=t(n);if(e){r=r.concat(e.children);const o=Fn(e);Rn(o.node)&&(o.node.children=o.node.children.concat(Nn(n,t)))}else r.push(n),n.children=Nn(n,t)}return e.children=r}function zn(e,t=0){return{options:e,value:"",level:t,offset:0,line:0,column:0}}function Mn(e,t){Gn(e,(0,e.options["output.text"])(t,e.offset,e.line,e.column))}function Un(e,t){const n=t.split(/\r\n|\r|\n/g);for(let t=0,r=n.length-1;t<=r;t++)Mn(e,n[t]),t!==r&&Wn(e,!0)}function Wn(e,t){const n=e.options["output.baseIndent"];Mn(e,e.options["output.newline"]+n),e.line++,e.column=n.length,t&&function(e,t=e.level){Mn(e,e.options["output.indent"].repeat(Math.max(t,0)))}(e,!0===t?e.level:t)}function Bn(e,t,n){Gn(e,(0,e.options["output.field"])(t,n,e.offset,e.line,e.column))}function Dn(e,t){return Hn(e,t.options["output.attributeCase"])}function Ln(e,t,n){return"expression"===e.valueType?n?"{":"}":"single"===t.options["output.attributeQuotes"]?"'":'"'}function Vn(e,t){return e.boolean||t.options["output.booleanAttributes"].includes((e.name||"").toLowerCase())}function qn(e,t){return"string"==typeof e?t.options.inlineElements.includes(e.toLowerCase()):e.name?qn(e.name,t):Boolean(e.value&&!e.attributes)}function Gn(e,t){e.value+=t,e.offset+=t.length,e.column+=t.length}function Hn(e,t){return t?"upper"===t?e.toUpperCase():e.toLowerCase():e}const Jn={p:"span",ul:"li",ol:"li",table:"tr",tr:"td",tbody:"tr",thead:"tr",tfoot:"tr",colgroup:"col",select:"option",optgroup:"option",audio:"source",video:"source",object:"param",map:"area"};function Zn(e,t,n){const r=function(e){for(let t=e.length-1;t>=0;t--){const n=e[t];if(Rn(n))return n}}(t),o=n.context?n.context.name:"",i=((r?r.name:o)||"").toLowerCase();e.name=Jn[i]||(qn(i,n)?"span":"div")}const Qn={ru:{common:["далеко-далеко","за","словесными","горами","в стране","гласных","и согласных","живут","рыбные","тексты"],words:["вдали","от всех","они","буквенных","домах","на берегу","семантика","большого","языкового","океана","маленький","ручеек","даль","журчит","по всей","обеспечивает","ее","всеми","необходимыми","правилами","эта","парадигматическая","страна","которой","жаренные","предложения","залетают","прямо","рот","даже","всемогущая","пунктуация","не","имеет","власти","над","рыбными","текстами","ведущими","безорфографичный","образ","жизни","однажды","одна","маленькая","строчка","рыбного","текста","имени","lorem","ipsum","решила","выйти","большой","мир","грамматики","великий","оксмокс","предупреждал","о","злых","запятых","диких","знаках","вопроса","коварных","точках","запятой","но","текст","дал","сбить","себя","толку","он","собрал","семь","своих","заглавных","букв","подпоясал","инициал","за","пояс","пустился","дорогу","взобравшись","первую","вершину","курсивных","гор","бросил","последний","взгляд","назад","силуэт","своего","родного","города","буквоград","заголовок","деревни","алфавит","подзаголовок","своего","переулка","грустный","реторический","вопрос","скатился","его","щеке","продолжил","свой","путь","дороге","встретил","рукопись","она","предупредила","моей","все","переписывается","несколько","раз","единственное","что","меня","осталось","это","приставка","возвращайся","ты","лучше","свою","безопасную","страну","послушавшись","рукописи","наш","продолжил","свой","путь","вскоре","ему","повстречался","коварный","составитель","рекламных","текстов","напоивший","языком","речью","заманивший","свое","агентство","которое","использовало","снова","снова","своих","проектах","если","переписали","то","живет","там","до","сих","пор"]},sp:{common:["mujer","uno","dolor","más","de","poder","mismo","si"],words:["ejercicio","preferencia","perspicacia","laboral","paño","suntuoso","molde","namibia","planeador","mirar","demás","oficinista","excepción","odio","consecuencia","casi","auto","chicharra","velo","elixir","ataque","no","odio","temporal","cuórum","dignísimo","facilismo","letra","nihilista","expedición","alma","alveolar","aparte","león","animal","como","paria","belleza","modo","natividad","justo","ataque","séquito","pillo","sed","ex","y","voluminoso","temporalidad","verdades","racional","asunción","incidente","marejada","placenta","amanecer","fuga","previsor","presentación","lejos","necesariamente","sospechoso","adiposidad","quindío","pócima","voluble","débito","sintió","accesorio","falda","sapiencia","volutas","queso","permacultura","laudo","soluciones","entero","pan","litro","tonelada","culpa","libertario","mosca","dictado","reincidente","nascimiento","dolor","escolar","impedimento","mínima","mayores","repugnante","dulce","obcecado","montaña","enigma","total","deletéreo","décima","cábala","fotografía","dolores","molesto","olvido","paciencia","resiliencia","voluntad","molestias","magnífico","distinción","ovni","marejada","cerro","torre","y","abogada","manantial","corporal","agua","crepúsculo","ataque","desierto","laboriosamente","angustia","afortunado","alma","encefalograma","materialidad","cosas","o","renuncia","error","menos","conejo","abadía","analfabeto","remo","fugacidad","oficio","en","almácigo","vos","pan","represión","números","triste","refugiado","trote","inventor","corchea","repelente","magma","recusado","patrón","explícito","paloma","síndrome","inmune","autoinmune","comodidad","ley","vietnamita","demonio","tasmania","repeler","apéndice","arquitecto","columna","yugo","computador","mula","a","propósito","fantasía","alias","rayo","tenedor","deleznable","ventana","cara","anemia","corrupto"]},latin:{common:["lorem","ipsum","dolor","sit","amet","consectetur","adipisicing","elit"],words:["exercitationem","perferendis","perspiciatis","laborum","eveniet","sunt","iure","nam","nobis","eum","cum","officiis","excepturi","odio","consectetur","quasi","aut","quisquam","vel","eligendi","itaque","non","odit","tempore","quaerat","dignissimos","facilis","neque","nihil","expedita","vitae","vero","ipsum","nisi","animi","cumque","pariatur","velit","modi","natus","iusto","eaque","sequi","illo","sed","ex","et","voluptatibus","tempora","veritatis","ratione","assumenda","incidunt","nostrum","placeat","aliquid","fuga","provident","praesentium","rem","necessitatibus","suscipit","adipisci","quidem","possimus","voluptas","debitis","sint","accusantium","unde","sapiente","voluptate","qui","aspernatur","laudantium","soluta","amet","quo","aliquam","saepe","culpa","libero","ipsa","dicta","reiciendis","nesciunt","doloribus","autem","impedit","minima","maiores","repudiandae","ipsam","obcaecati","ullam","enim","totam","delectus","ducimus","quis","voluptates","dolores","molestiae","harum","dolorem","quia","voluptatem","molestias","magni","distinctio","omnis","illum","dolorum","voluptatum","ea","quas","quam","corporis","quae","blanditiis","atque","deserunt","laboriosam","earum","consequuntur","hic","cupiditate","quibusdam","accusamus","ut","rerum","error","minus","eius","ab","ad","nemo","fugit","officia","at","in","id","quos","reprehenderit","numquam","iste","fugiat","sit","inventore","beatae","repellendus","magnam","recusandae","quod","explicabo","doloremque","aperiam","consequatur","asperiores","commodi","optio","dolor","labore","temporibus","repellat","veniam","architecto","est","esse","mollitia","nulla","a","similique","eos","alias","dolore","tenetur","deleniti","porro","facere","maxime","corrupti"]}},Xn=/^lorem([a-z]*)(\d*)(-\d*)?$/i;function Kn(e,t){return Math.floor(Math.random()*(t-e)+e)}function Yn(e,t){const n=e.length,r=Math.min(n,t),o=[];for(;o.length<r;){const t=e[Kn(0,n)];o.includes(t)||o.push(t)}return o}function er(e,t){var n;return e.length&&(e=[(n=e[0],n[0].toUpperCase()+n.slice(1))].concat(e.slice(1))),e.join(" ")+(t||"?!..."[Kn(0,"?!...".length-1)])}function tr(e){if(e.length<2)return e;const t=(e=e.slice()).length,n=/,$/;let r=0;r=t>3&&t<=6?Kn(0,1):t>6&&t<=12?Kn(0,2):Kn(1,4);for(let o,i=0;i<r;i++)o=Kn(0,t-2),n.test(e[o])||(e[o]+=",");return e}function nr(e,t,n){const r=[];let o,i=0;for(n&&e.common&&(o=e.common.slice(0,t),i+=o.length,r.push(er(tr(o),".")));i<t;)o=Yn(e.words,Math.min(Kn(2,30),t-i)),i+=o.length,r.push(er(tr(o)));return r.join(" ")}function rr(e){"class"===e.name?e.name="className":"for"===e.name&&(e.name="htmlFor")}function or(e){return"select"!==e.name}const ir=/^(-+)([a-z0-9]+[a-z0-9-]*)/i,ar=/^(_+)([a-z0-9]+[a-z0-9-_]*)/i,sr=e=>/^[a-z]\-/i.test(e),cr=e=>/^[a-z]/i.test(e);function ur(e){if(!e._bem){let t="";if(e.attributes)for(const n of e.attributes)if("class"===n.name&&n.value){t=gr(n.value);break}e._bem=lr(t)}return e._bem}function lr(e){const t=e?e.split(/\s+/):[];return{classNames:t,block:fr(t)}}function pr(e,t=0,n){let r=Math.max(e.length-t,0);do{const t=e[r];if(t){const e=ur(t);if(e.block)return e.block}}while(0<r--);if(n){const e=function(e){return e._bem||(e._bem=lr(e.attributes&&e.attributes.class||"")),e._bem}(n);if(e.block)return e.block}return""}function fr(e){return dr(e,sr)||dr(e,cr)||void 0}function dr(e,t){for(const n of e){if(ir.test(n)||ar.test(n))break;if(t(n))return n}}function mr(e,t){for(const n of e.attributes)if("class"===n.name){n.value=[t];break}}function gr(e){let t="";for(const n of e)t+="string"==typeof n?n:n.name;return t}function hr(e,t,n){return!!e&&n.indexOf(e)===t}function yr(e,t,n){const r=(e,r,i)=>{const{parent:a,current:s}=n;n.parent=s,n.current=e,t(e,r,i,n,o),n.current=s,n.parent=a},o=(e,t,o)=>{n.ancestors.push(n.current),r(e,t,o),n.ancestors.pop()};e.children.forEach(r)}function br(e){return{current:null,parent:void 0,ancestors:[],config:e,field:1,out:zn(e.options)}}const vr=[{type:"Field",index:0,name:""}];function xr(e){return!!e&&!e.name&&!e.attributes}function wr(e,t){return!!e&&qn(e,t)}function kr(e){return"object"==typeof e&&"Field"===e.type}function Ar(e,t){const{out:n}=t;let r=-1;for(const o of e)"string"==typeof o?Un(n,o):(Bn(n,t.field+o.index,o.name),o.index>r&&(r=o.index));-1!==r&&(t.field+=r+1)}function Sr(e){return!e.implied||"raw"!==e.valueType||!!e.value&&e.value.length>0}function Er(e){const t=[],n={pos:0,text:e};let r,o=n.pos,i=n.pos;for(;n.pos<n.text.length;)i=n.pos,(r=Tr(n))?(o!==n.pos&&t.push(e.slice(o,i)),t.push(r),o=n.pos):n.pos++;return o!==n.pos&&t.push(e.slice(o)),t}function Tr(e){if(91===Cr(e)){const t=++e.pos;let n=t,r=t,o=1;for(;e.pos<e.text.length;){const i=Cr(e);if(Pr(i)){for(n=e.pos;jr(Cr(e));)e.pos++;r=e.pos}else{if(91===i)o++;else if(93===i&&0==--o)return{before:e.text.slice(t,n),after:e.text.slice(r,e.pos++),name:e.text.slice(n,r)};e.pos++}}}}function Cr(e,t=e.pos){return e.text.charCodeAt(t)}function Pr(e){return e>=65&&e<=90}function jr(e){return Pr(e)||e>47&&e<58||95===e||45===e}function Or(e,t){const{comment:n}=t;if(!(n.enabled&&n.trigger&&e.name&&e.attributes))return!1;for(const t of e.attributes)if(t.name&&n.trigger.includes(t.name))return!0;return!1}function Ir(e,t,n){const r={},{out:o}=n;for(const t of e.attributes)t.name&&t.value&&(r[t.name.toUpperCase()]=t.value);for(const e of t)"string"==typeof e?Un(o,e):r[e.name]&&(Un(o,e.before),Ar(r[e.name],n),Un(o,e.after))}const _r=/^<([\w\-:]+)[\s>]/;function $r(e,t){const n=br(t);return n.comment=function(e){const{options:t}=e;return{enabled:t["comment.enabled"],trigger:t["comment.trigger"],before:t["comment.before"]?Er(t["comment.before"]):void 0,after:t["comment.after"]?Er(t["comment.after"]):void 0}}(t),yr(e,Fr,n),n.out.value}function Fr(e,t,n,r,o){const{out:i,config:a}=r,s=zr(e,t,n,r),c=function(e){const{config:t,parent:n}=e;return!n||xr(n)||n.name&&t.options["output.formatSkip"].includes(n.name)?0:1}(r);if(i.level+=c,s&&Wn(i,!0),e.name){const t=function(e,t){return Hn(e,t.options["output.tagCase"])}(e.name,a);if(function(e,t){Or(e,t)&&t.comment.before&&Ir(e,t.comment.before,t)}(e,r),Un(i,`<${t}`),e.attributes)for(const t of e.attributes)Sr(t)&&Rr(t,r);if(!e.selfClosing||e.children.length||e.value){if(Un(i,">"),!Nr(e,r,o)){if(e.value){const t=e.value.some(Mr)||function(e,t){if(e.length&&"string"==typeof e[0]){const n=_r.exec(e[0]);if((null==n?void 0:n.length)&&!t.options.inlineElements.includes(n[1].toLowerCase()))return!0}return!1}(e.value,a);t&&Wn(r.out,++i.level),Ar(e.value,r),t&&Wn(r.out,--i.level)}if(e.children.forEach(o),!e.value&&!e.children.length){const t=a.options["output.formatLeafNode"]||a.options["output.formatForce"].includes(e.name);t&&Wn(r.out,++i.level),Ar(vr,r),t&&Wn(r.out,--i.level)}}Un(i,`</${t}>`),function(e,t){Or(e,t)&&t.comment.after&&Ir(e,t.comment.after,t)}(e,r)}else Un(i,`${function(e){switch(e.options["output.selfClosingStyle"]){case"xhtml":return" /";case"xml":return"/";default:return""}}(a)}>`)}else!Nr(e,r,o)&&e.value&&(Ar(e.value,r),e.children.forEach(o));if(s&&t===n.length-1&&r.parent){const e=xr(r.parent)?0:1;Wn(i,i.level-e)}i.level-=c}function Rr(e,t){const{out:n,config:r}=t;if(e.name){const o=Dn(e.name,r),i=Ln(e,r,!0),a=Ln(e,r);let s=e.value;Vn(e,r)&&!s?r.options["output.compactBoolean"]||(s=[o]):s||(s=vr),Un(n," "+o),s?(Un(n,"="+i),Ar(s,t),Un(n,a)):"html"!==r.options["output.selfClosingStyle"]&&Un(n,"="+i+a)}}function Nr(e,t,n){if(e.value&&e.children.length){const r=e.value.findIndex(kr);if(-1!==r){Ar(e.value.slice(0,r),t);const o=t.out.line;let i=r+1;return e.children.forEach(n),t.out.line!==o&&"string"==typeof e.value[i]&&Un(t.out,e.value[i++].trimLeft()),Ar(e.value.slice(i),t),!0}}return!1}function zr(e,t,n,r){const{config:o,parent:i}=r;if(!o.options["output.format"])return!1;if(0===t&&!i)return!1;if(i&&xr(i)&&1===n.length)return!1;if(xr(e)&&(xr(n[t-1])||xr(n[t+1])||e.value.some(Mr)||e.value.some(kr)&&e.children.length))return!0;if(qn(e,o)){if(0===t){for(let e=0;e<n.length;e++)if(!qn(n[e],o))return!0}else if(!qn(n[t-1],o))return!0;if(o.options["output.inlineBreak"]){let e=1,r=t,i=t;for(;wr(n[--r],o);)e++;for(;wr(n[++i],o);)e++;if(e>=o.options["output.inlineBreak"])return!0}for(let t=0,n=e.children.length;t<n;t++)if(zr(e.children[t],t,e.children,r))return!0;return!1}return!0}function Mr(e){return"string"==typeof e&&/\r|\n/.test(e)}function Ur(e,t,n){const r=br(t);return r.options=n||{},yr(e,Wr,r),r.out.value}function Wr(e,t,n,r,o){const{out:i,options:a}=r,{primary:s,secondary:c}=function(e){const t=[],n=[];if(e.attributes)for(const r of e.attributes)Br(r)?t.push(r):n.push(r);return{primary:t,secondary:n}}(e),u=r.parent?1:0;i.level+=u,function(e,t,n,r){return!(!r.parent&&0===t)&&!xr(e)}(e,t,0,r)&&Wn(i,!0),!e.name||"div"===e.name&&s.length||Un(i,(a.beforeName||"")+e.name+(a.afterName||"")),function(e,t){for(const n of e)n.value&&("class"===n.name?(Un(t.out,"."),Ar(n.value.map((e=>"string"==typeof e?e.replace(/\s+/g,"."):e)),t)):(Un(t.out,"#"),Ar(n.value,t)))}(s,r),function(e,t){if(e.length){const{out:n,config:r,options:o}=t;o.beforeAttribute&&Un(n,o.beforeAttribute);for(let i=0;i<e.length;i++){const a=e[i];Un(n,Dn(a.name||"",r)),Vn(a,r)&&!a.value?!r.options["output.compactBoolean"]&&o.booleanValue&&Un(n,"="+o.booleanValue):(Un(n,"="+Ln(a,r,!0)),Ar(a.value||vr,t),Un(n,Ln(a,r))),i!==e.length-1&&o.glueAttribute&&Un(n,o.glueAttribute)}o.afterAttribute&&Un(n,o.afterAttribute)}}(c.filter(Sr),r),!e.selfClosing||e.value||e.children.length?(function(e,t){if(!e.value&&e.children.length)return;const n=e.value||vr,r=function(e){const t=[];let n=[];for(const r of e)if("string"==typeof r){const e=r.split(/\r\n?|\n/g);for(n.push(e.shift()||"");e.length;)t.push(n),n=[e.shift()||""]}else n.push(r);return n.length&&t.push(n),t}(n),{out:o,options:i}=t;if(1===r.length)(e.name||e.attributes)&&Mn(o," "),Ar(n,t);else{const e=[];let n=0;for(const t of r){const r=Dr(t);e.push(r),r>n&&(n=r)}o.level++;for(let a=0;a<r.length;a++)Wn(o,!0),i.beforeTextLine&&Mn(o,i.beforeTextLine),Ar(r[a],t),i.afterTextLine&&(Mn(o," ".repeat(n-e[a])),Mn(o,i.afterTextLine));o.level--}}(e,r),e.children.forEach(o)):r.options.selfClose&&Un(i,r.options.selfClose),i.level-=u}function Br(e){return"class"===e.name||"id"===e.name}function Dr(e){let t=0;for(const n of e)t+="string"==typeof n?n.length:n.name.length;return t}const Lr={html:$r,haml:function(e,t){return Ur(e,t,{beforeName:"%",beforeAttribute:"(",afterAttribute:")",glueAttribute:" ",afterTextLine:" |",booleanValue:"true",selfClose:"/"})},slim:function(e,t){return Ur(e,t,{beforeAttribute:" ",glueAttribute:" ",beforeTextLine:"| ",selfClose:"/"})},pug:function(e,t){return Ur(e,t,{beforeAttribute:"(",afterAttribute:")",glueAttribute:", ",beforeTextLine:"| ",selfClose:"xml"===t.options["output.selfClosingStyle"]?"/":""})}};function Vr(e,t){let n;if("string"==typeof e){let r=t;t.options["jsx.enabled"]&&(r=Object.assign(Object.assign({},r),{jsx:!0})),t.options["markup.href"]&&(r=Object.assign(Object.assign({},r),{href:!0})),e=Kt(e,r),n=t.text,t.text=void 0}return function(e,t,n){const r=[e],o=e=>{t(e,r,n),r.push(e),e.children.forEach(o),r.pop()};e.children.forEach(o)}(e=function(e,t){const n=[],r=t.options["output.reverseAttributes"],o=e=>{const i=e.name&&t.snippets[e.name];if(!i||n.includes(i))return null;const a=Kt(i,t);n.push(i),Nn(a,o),n.pop();for(const t of a.children){if(e.attributes){const n=t.attributes||[],o=e.attributes||[];t.attributes=r?o.concat(n):n.concat(o)}c=t,(s=e).selfClosing&&(c.selfClosing=!0),null!=s.value&&(c.value=s.value),s.repeat&&(c.repeat=s.repeat)}var s,c;return a};return Nn(e,o),e}(e,t),Gr,t),t.text=null!=n?n:t.text,e}function qr(e,t){return(Lr[t.syntax]||$r)(e,t)}function Gr(e,t,n){!function(e,t,n){!e.name&&e.attributes&&Zn(e,t,n)}(e,t,n),function(e,t){if(!e.attributes)return;const n=[],r={};for(const o of e.attributes)if(o.name){const e=o.name;if(e in r){const n=r[e];"class"===e?n.value=In(n.value,o.value," "):_n(n,o,t)}else n.push(r[e]=Object.assign({},o))}else n.push(o);e.attributes=n}(e,n),function(e,t,n){let r;if(e.name&&(r=e.name.match(Xn))){const o=Qn[r[1]]||Qn.latin,i=r[2]?Math.max(1,Number(r[2])):30,a=Kn(i,r[3]?Math.max(i,Number(r[3].slice(1))):i),s=e.repeat||function(e){for(let t=e.length-1;t>=0;t--){const n=e[t];if("AbbreviationNode"===n.type&&n.repeat)return n.repeat}}(t);e.name=e.attributes=void 0,e.value=[nr(o,a,!s||0===s.value)],e.repeat&&t.length>1&&Zn(e,t,n)}}(e,t,n),"xsl"===n.syntax&&function(e){var t;"xsl:variable"!==(t=e.name)&&"xsl:with-param"!==t||!e.attributes||!e.children.length&&!e.value||(e.attributes=e.attributes.filter(or))}(e),n.options["jsx.enabled"]&&function(e){e.attributes&&e.attributes.forEach(rr)}(e),n.options["bem.enabled"]&&function(e,t,n){!function(e){const t=ur(e),n=[];for(const e of t.classNames){const t=e.indexOf("_");t>0&&!e.startsWith("-")?(n.push(e.slice(0,t)),n.push(e.slice(t))):n.push(e)}n.length&&(t.classNames=n.filter(hr),t.block=fr(t.classNames),mr(e,t.classNames.join(" ")))}(e),function(e,t,n){const r=ur(e),o=[],{options:i}=n,a=t.slice(1).concat(e);for(let e of r.classNames){let t,r="";const s=e;(t=e.match(ir))&&(r=pr(a,t[1].length,n.context)+i["bem.element"]+t[2],o.push(r),e=e.slice(t[0].length)),(t=e.match(ar))&&(r||(r=pr(a,t[1].length),o.push(r)),o.push(`${r}${i["bem.modifier"]}${t[2]}`),e=e.slice(t[0].length)),e===s&&o.push(s)}const s=o.filter(hr);s.length&&mr(e,s.join(" "))}(e,t,n)}(e,t,n)}const Hr=/^([a-z-]+)(?:\s*:\s*([^\n\r;]+?);*)?$/,Jr={value:!0};function Zr(e,t){const n=t.match(Hr);if(n){const t={},r=n[2]?n[2].split("|").map(Xr):[];for(const e of r)for(const n of e)Yr(n,t);return{type:"Property",key:e,property:n[1],value:r,keywords:t,dependencies:[]}}return{type:"Raw",key:e,value:t}}function Qr(e,t){return e.key===t.key?0:e.key<t.key?-1:1}function Xr(e){return On(e.trim(),Jr)[0].value}function Kr(e){return"Property"===e.type}function Yr(e,t){for(const n of e.value)if("Literal"===n.type)t[n.value]=n;else if("FunctionCall"===n.type)t[n.name]=n;else if("Field"===n.type){const e=n.name.trim();e&&(t[e]={type:"Literal",value:e})}}function eo(e,t,n=!1){if((e=e.toLowerCase())===(t=t.toLowerCase()))return 1;if(!e||!t||e.charCodeAt(0)!==t.charCodeAt(0))return 0;const r=e.length,o=t.length;if(!n&&r>o)return 0;const i=Math.min(r,o),a=Math.max(r,o);let s=1,c=1,u=a,l=0,p=0,f=!1,d=!1;for(;s<r;){for(l=e.charCodeAt(s),f=!1,d=!1;c<o;){if(p=t.charCodeAt(c),l===p){f=!0,u+=a-(d?s:c);break}d=45===p,c++}if(!f){if(!n)return 0;break}s++}const m=a-i;return u*(s/a)/(to(a)-to(m))}function to(e){return e*(e+1)/2}function no(e,t){return e.r||e.g||e.b||e.a?1===e.a?function(e,t){const n=t&&oo(e.r)&&oo(e.g)&&oo(e.b)?io:ao;return"#"+n(e.r)+n(e.g)+n(e.b)}(e,t):function(e){const t=[e.r,e.g,e.b];return 1!==e.a&&t.push(ro(e.a,8)),`${3===t.length?"rgb":"rgba"}(${t.join(", ")})`}(e):"transparent"}function ro(e,t=4){return e.toFixed(t).replace(/\.?0+$/,"")}function oo(e){return!(e%17)}function io(e){return(e>>4).toString(16)}function ao(e){return function(e,t){for(;e.length<2;)e="0"+e;return e}(e.toString(16))}function so(e,t){var n;const r=zn(t.options),o=t.options["output.format"];"@@section"===(null===(n=t.context)||void 0===n?void 0:n.name)&&(e=e.filter((e=>e.snippet)));for(let n=0;n<e.length;n++)o&&0!==n&&Wn(r,!0),co(e[n],r,t);return r.value}function co(e,t,n){const r=n.options["stylesheet.json"];if(e.name)Un(t,(r?e.name.replace(/\-(\w)/g,((e,t)=>t.toUpperCase())):e.name)+n.options["stylesheet.between"]),e.value.length?function(e,t,n){const r=n.options["stylesheet.json"],o=r?function(e){if(1===e.value.length){const t=e.value[0];if(1===t.value.length&&"NumberValue"===t.value[0].type)return t.value[0]}}(e):null;if(!o||o.unit&&"px"!==o.unit){const o=function(e){return e.options["stylesheet.jsonDoubleQuotes"]?'"':"'"}(n);r&&Mn(t,o);for(let r=0;r<e.value.length;r++)0!==r&&Mn(t,", "),lo(e.value[r],t,n);r&&Mn(t,o)}else Mn(t,String(o.value))}(e,t,n):Bn(t,0,""),r?Mn(t,","):(uo(e,t,!0),Mn(t,n.options["stylesheet.after"]));else{for(const r of e.value)for(const e of r.value)po(e,t,n);uo(e,t,e.value.length>0)}}function uo(e,t,n){e.important&&(n&&Mn(t," "),Mn(t,"!important"))}function lo(e,t,n){for(let r=0,o=-1;r<e.value.length;r++){const i=e.value[r];0===r||"Field"===i.type&&i.start===o||Mn(t," "),po(i,t,n),o=i.end}}function po(e,t,n){if("ColorValue"===e.type)Mn(t,no(e,n.options["stylesheet.shortHex"]));else if("Literal"===e.type)Un(t,e.value);else if("NumberValue"===e.type)Un(t,ro(e.value,4)+e.unit);else if("StringValue"===e.type){const n="double"===e.quote?'"':"'";Un(t,n+e.value+n)}else if("Field"===e.type)Bn(t,e.index,e.name);else if("FunctionCall"===e.type){Mn(t,e.name+"(");for(let r=0;r<e.arguments.length;r++)r&&Mn(t,", "),lo(e.arguments[r],t,n);Mn(t,")")}}function fo(e,t){var n;const r=(null===(n=t.cache)||void 0===n?void 0:n.stylesheetSnippets)||function(e){const t=[];for(const n of Object.keys(e))t.push(Zr(n,e[n]));return function(e){e=e.slice().sort(Qr);const t=[];let n;for(const r of e.filter(Kr)){for(;t.length;){if(n=t[t.length-1],r.property.startsWith(n.property)&&45===r.property.charCodeAt(n.property.length)){n.dependencies.push(r),t.push(r);break}t.pop()}t.length||t.push(r)}return e}(t)}(t.snippets);t.cache&&(t.cache.stylesheetSnippets=r),"string"==typeof e&&(e=On(e,{value:So(t)}));const o=function(e,t){if(t.context){if("@@section"===t.context.name)return e.filter((e=>"Raw"===e.type));if("@@property"===t.context.name)return e.filter((e=>"Property"===e.type))}return e}(r,t);for(const n of e)mo(n,o,t);return e}function mo(e,t,n){if(!function(e,t){let n=null;const r=1===e.value.length?e.value[0]:null;if(r&&1===r.value.length){const e=r.value[0];"FunctionCall"===e.type&&"lg"===e.name&&(n=e)}return!(!n&&"lg"!==e.name)&&(n=n?Object.assign(Object.assign({},n),{name:"linear-gradient"}):{type:"FunctionCall",name:"linear-gradient",arguments:[vo(wo(0,""))]},t.context||(e.name="background-image"),e.value=[vo(n)],!0)}(e,n)){const r=n.options["stylesheet.fuzzySearchMinScore"];if(So(n)){const o=n.context.name,i=t.find((e=>"Property"===e.type&&e.property===o));go(e,n,i,r),e.snippet=i}else if(e.name){const o=ho(e.name,t,r,!0);e.snippet=o,o&&("Property"===o.type?function(e,t,n){const r=function(e,t){for(let n=0,r=0;n<e.length;n++){if(r=t.indexOf(e[n],r),-1===r)return e.slice(n);r++}return""}(e.name,t.key);if(r){if(e.value.length)return e;const o=bo(r,n,t);if(!o)return e;e.value.push(vo(o))}if(e.name=t.property,e.value.length)go(e,n,t);else if(t.value.length){const r=t.value[0];e.value=1===t.value.length||r.some(ko)?r:r.map((e=>Ao(e,n)))}}(e,o,n):function(e,t){let n,r=0;const o=/\$\{(\d+)(:[^}]+)?\}/g,i=e.value[0],a=[];for(;n=o.exec(t.value);)r!==n.index&&a.push(xo(t.value.slice(r,n.index))),r=n.index+n[0].length,i&&i.value.length?a.push(i.value.shift()):a.push(wo(Number(n[1]),n[2]?n[2].slice(1):""));const s=t.value.slice(r);s&&a.push(xo(s)),e.name=void 0,e.value=[vo(...a)]}(e,o))}}return(e.name||n.context)&&function(e,t){const n=t.options["stylesheet.unitAliases"],r=t.options["stylesheet.unitless"];for(const o of e.value)for(const i of o.value)"NumberValue"===i.type&&(i.unit?i.unit=n[i.unit]||i.unit:0===i.value||r.includes(e.name)||(i.unit=i.rawValue.includes(".")?t.options["stylesheet.floatUnit"]:t.options["stylesheet.intUnit"]))}(e,n),e}function go(e,t,n,r){for(const o of e.value){const e=[];for(const i of o.value)if("Literal"===i.type)e.push(bo(i.value,t,n,r)||i);else if("FunctionCall"===i.type){const o=bo(i.name,t,n,r);o&&"FunctionCall"===o.type?e.push(Object.assign(Object.assign({},o),{arguments:i.arguments.concat(o.arguments.slice(i.arguments.length))})):e.push(i)}else e.push(i);o.value=e}}function ho(e,t,n=0,r=!1){let o=null,i=0;for(const n of t){const t=eo(e,yo(n),r);if(1===t)return n;t&&t>=i&&(i=t,o=n)}return i>=n?o:null}function yo(e){return"string"==typeof e?e:e.key}function bo(e,t,n,r){let o;if(n){if(o=ho(e,Object.keys(n.keywords),r))return n.keywords[o];for(const t of n.dependencies)if(o=ho(e,Object.keys(t.keywords),r))return t.keywords[o]}return(o=ho(e,t.options["stylesheet.keywords"],r))?xo(o):null}function vo(...e){return{type:"CSSValue",value:e}}function xo(e){return{type:"Literal",value:e}}function wo(e,t){return{type:"Field",index:e,name:t}}function ko(e){for(const t of e.value)if("Field"===t.type||"FunctionCall"===t.type&&t.arguments.some(ko))return!0;return!1}function Ao(e,t,n={index:1}){let r=[];for(const o of e.value)switch(o.type){case"ColorValue":r.push(wo(n.index++,no(o,t.options["stylesheet.shortHex"])));break;case"Literal":r.push(wo(n.index++,o.value));break;case"NumberValue":r.push(wo(n.index++,`${o.value}${o.unit}`));break;case"StringValue":const e="single"===o.quote?"'":'"';r.push(wo(n.index++,e+o.value+e));break;case"FunctionCall":r.push(wo(n.index++,o.name),xo("("));for(let e=0,i=o.arguments.length;e<i;e++)r=r.concat(Ao(o.arguments[e],t,n).value),e!==i-1&&r.push(xo(", "));r.push(xo(")"));break;default:r.push(o)}return Object.assign(Object.assign({},e),{value:r})}function So(e){return!(!e.context||"@@value"!==e.context.name&&e.context.name.startsWith("@@"))}const Eo={markup:"html",stylesheet:"css"},To={type:"markup",syntax:"html",variables:{lang:"en",locale:"en-US",charset:"UTF-8",indentation:"\t",newline:"\n"},snippets:{},options:{inlineElements:["a","abbr","acronym","applet","b","basefont","bdo","big","br","button","cite","code","del","dfn","em","font","i","iframe","img","input","ins","kbd","label","map","object","q","s","samp","select","small","span","strike","strong","sub","sup","textarea","tt","u","var"],"output.indent":"\t","output.baseIndent":"","output.newline":"\n","output.tagCase":"","output.attributeCase":"","output.attributeQuotes":"double","output.format":!0,"output.formatLeafNode":!1,"output.formatSkip":["html"],"output.formatForce":["body"],"output.inlineBreak":3,"output.compactBoolean":!1,"output.booleanAttributes":["contenteditable","seamless","async","autofocus","autoplay","checked","controls","defer","disabled","formnovalidate","hidden","ismap","loop","multiple","muted","novalidate","readonly","required","reversed","selected","typemustmatch"],"output.reverseAttributes":!1,"output.selfClosingStyle":"html","output.field":(e,t)=>t,"output.text":e=>e,"markup.href":!0,"comment.enabled":!1,"comment.trigger":["id","class"],"comment.before":"","comment.after":"\n\x3c!-- /[#ID][.CLASS] --\x3e","bem.enabled":!1,"bem.element":"__","bem.modifier":"_","jsx.enabled":!1,"stylesheet.keywords":["auto","inherit","unset","none"],"stylesheet.unitless":["z-index","line-height","opacity","font-weight","zoom","flex","flex-grow","flex-shrink"],"stylesheet.shortHex":!0,"stylesheet.between":": ","stylesheet.after":";","stylesheet.intUnit":"px","stylesheet.floatUnit":"em","stylesheet.unitAliases":{e:"em",p:"%",x:"ex",r:"rem"},"stylesheet.json":!1,"stylesheet.jsonDoubleQuotes":!1,"stylesheet.fuzzySearchMinScore":0}},Co={markup:{snippets:Po({a:"a[href]","a:blank":"a[href='http://${0}' target='_blank' rel='noopener noreferrer']","a:link":"a[href='http://${0}']","a:mail":"a[href='mailto:${0}']","a:tel":"a[href='tel:+${0}']",abbr:"abbr[title]","acr|acronym":"acronym[title]",base:"base[href]/",basefont:"basefont/",br:"br/",frame:"frame/",hr:"hr/",bdo:"bdo[dir]","bdo:r":"bdo[dir=rtl]","bdo:l":"bdo[dir=ltr]",col:"col/",link:"link[rel=stylesheet href]/","link:css":"link[href='${1:style}.css']","link:print":"link[href='${1:print}.css' media=print]","link:favicon":"link[rel='shortcut icon' type=image/x-icon href='${1:favicon.ico}']","link:mf|link:manifest":"link[rel='manifest' href='${1:manifest.json}']","link:touch":"link[rel=apple-touch-icon href='${1:favicon.png}']","link:rss":"link[rel=alternate type=application/rss+xml title=RSS href='${1:rss.xml}']","link:atom":"link[rel=alternate type=application/atom+xml title=Atom href='${1:atom.xml}']","link:im|link:import":"link[rel=import href='${1:component}.html']",meta:"meta/","meta:utf":"meta[http-equiv=Content-Type content='text/html;charset=UTF-8']","meta:vp":"meta[name=viewport content='width=${1:device-width}, initial-scale=${2:1.0}']","meta:compat":"meta[http-equiv=X-UA-Compatible content='${1:IE=7}']","meta:edge":"meta:compat[content='${1:ie=edge}']","meta:redirect":"meta[http-equiv=refresh content='0; url=${1:http://example.com}']","meta:kw":"meta[name=keywords content]","meta:desc":"meta[name=description content]",style:"style",script:"script","script:src":"script[src]",img:"img[src alt]/","img:s|img:srcset":"img[srcset src alt]","img:z|img:sizes":"img[sizes srcset src alt]",picture:"picture","src|source":"source/","src:sc|source:src":"source[src type]","src:s|source:srcset":"source[srcset]","src:t|source:type":"source[srcset type='${1:image/}']","src:z|source:sizes":"source[sizes srcset]","src:m|source:media":"source[media='(${1:min-width: })' srcset]","src:mt|source:media:type":"source:media[type='${2:image/}']","src:mz|source:media:sizes":"source:media[sizes srcset]","src:zt|source:sizes:type":"source[sizes srcset type='${1:image/}']",iframe:"iframe[src frameborder=0]",embed:"embed[src type]/",object:"object[data type]",param:"param[name value]/",map:"map[name]",area:"area[shape coords href alt]/","area:d":"area[shape=default]","area:c":"area[shape=circle]","area:r":"area[shape=rect]","area:p":"area[shape=poly]",form:"form[action]","form:get":"form[method=get]","form:post":"form[method=post]",label:"label[for]",input:"input[type=${1:text}]/",inp:"input[name=${1} id=${1}]","input:h|input:hidden":"input[type=hidden name]","input:t|input:text":"inp[type=text]","input:search":"inp[type=search]","input:email":"inp[type=email]","input:url":"inp[type=url]","input:p|input:password":"inp[type=password]","input:datetime":"inp[type=datetime]","input:date":"inp[type=date]","input:datetime-local":"inp[type=datetime-local]","input:month":"inp[type=month]","input:week":"inp[type=week]","input:time":"inp[type=time]","input:tel":"inp[type=tel]","input:number":"inp[type=number]","input:color":"inp[type=color]","input:c|input:checkbox":"inp[type=checkbox]","input:r|input:radio":"inp[type=radio]","input:range":"inp[type=range]","input:f|input:file":"inp[type=file]","input:s|input:submit":"input[type=submit value]","input:i|input:image":"input[type=image src alt]","input:b|input:btn|input:button":"input[type=button value]","input:reset":"input:button[type=reset]",isindex:"isindex/",select:"select[name=${1} id=${1}]","select:d|select:disabled":"select[disabled.]","opt|option":"option[value]",textarea:"textarea[name=${1} id=${1} cols=${2:30} rows=${3:10}]",marquee:"marquee[behavior direction]","menu:c|menu:context":"menu[type=context]","menu:t|menu:toolbar":"menu[type=toolbar]",video:"video[src]",audio:"audio[src]","html:xml":"html[xmlns=http://www.w3.org/1999/xhtml]",keygen:"keygen/",command:"command/","btn:s|button:s|button:submit":"button[type=submit]","btn:r|button:r|button:reset":"button[type=reset]","btn:d|button:d|button:disabled":"button[disabled.]","fst:d|fset:d|fieldset:d|fieldset:disabled":"fieldset[disabled.]",bq:"blockquote",fig:"figure",figc:"figcaption",pic:"picture",ifr:"iframe",emb:"embed",obj:"object",cap:"caption",colg:"colgroup",fst:"fieldset",btn:"button",optg:"optgroup",tarea:"textarea",leg:"legend",sect:"section",art:"article",hdr:"header",ftr:"footer",adr:"address",dlg:"dialog",str:"strong",prog:"progress",mn:"main",tem:"template",fset:"fieldset",datag:"datagrid",datal:"datalist",kg:"keygen",out:"output",det:"details",sum:"summary",cmd:"command","ri:d|ri:dpr":"img:s","ri:v|ri:viewport":"img:z","ri:a|ri:art":"pic>src:m+img","ri:t|ri:type":"pic>src:t+img","!!!":"{<!DOCTYPE html>}",doc:"html[lang=${lang}]>(head>meta[charset=${charset}]+meta[http-equiv='X-UA-Compatible'][content='IE=edge']+meta:vp+title{${1:Document}})+body","!|html:5":"!!!+doc",c:"{\x3c!-- ${0} --\x3e}","cc:ie":"{\x3c!--[if IE]>${0}<![endif]--\x3e}","cc:noie":"{\x3c!--[if !IE]>\x3c!--\x3e${0}\x3c!--<![endif]--\x3e}"})},xhtml:{options:{"output.selfClosingStyle":"xhtml"}},xml:{options:{"output.selfClosingStyle":"xml"}},xsl:{snippets:Po({"tm|tmatch":"xsl:template[match mode]","tn|tname":"xsl:template[name]",call:"xsl:call-template[name]",ap:"xsl:apply-templates[select mode]",api:"xsl:apply-imports",imp:"xsl:import[href]",inc:"xsl:include[href]",ch:"xsl:choose","wh|xsl:when":"xsl:when[test]",ot:"xsl:otherwise",if:"xsl:if[test]",par:"xsl:param[name]",pare:"xsl:param[name select]",var:"xsl:variable[name]",vare:"xsl:variable[name select]",wp:"xsl:with-param[name select]",key:"xsl:key[name match use]",elem:"xsl:element[name]",attr:"xsl:attribute[name]",attrs:"xsl:attribute-set[name]",cp:"xsl:copy[select]",co:"xsl:copy-of[select]",val:"xsl:value-of[select]","for|each":"xsl:for-each[select]",tex:"xsl:text",com:"xsl:comment",msg:"xsl:message[terminate=no]",fall:"xsl:fallback",num:"xsl:number[value]",nam:"namespace-alias[stylesheet-prefix result-prefix]",pres:"xsl:preserve-space[elements]",strip:"xsl:strip-space[elements]",proc:"xsl:processing-instruction[name]",sort:"xsl:sort[select order]",choose:"xsl:choose>xsl:when+xsl:otherwise",xsl:"!!!+xsl:stylesheet[version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform]>{\n|}","!!!":'{<?xml version="1.0" encoding="UTF-8"?>}'}),options:{"output.selfClosingStyle":"xml"}},jsx:{options:{"jsx.enabled":!0}},pug:{snippets:Po({"!!!":"{doctype html}"})},stylesheet:{snippets:Po({"@f":"@font-face {\n\tfont-family: ${1};\n\tsrc: url(${2});\n}","@ff":"@font-face {\n\tfont-family: '${1:FontName}';\n\tsrc: url('${2:FileName}.eot');\n\tsrc: url('${2:FileName}.eot?#iefix') format('embedded-opentype'),\n\t\t url('${2:FileName}.woff') format('woff'),\n\t\t url('${2:FileName}.ttf') format('truetype'),\n\t\t url('${2:FileName}.svg#${1:FontName}') format('svg');\n\tfont-style: ${3:normal};\n\tfont-weight: ${4:normal};\n}","@i|@import":"@import url(${0});","@kf":"@keyframes ${1:identifier} {\n\t${2}\n}","@m|@media":"@media ${1:screen} {\n\t${0}\n}",ac:"align-content:start|end|flex-start|flex-end|center|space-between|space-around|stretch|space-evenly",ai:"align-items:start|end|flex-start|flex-end|center|baseline|stretch",anim:"animation:${1:name} ${2:duration} ${3:timing-function} ${4:delay} ${5:iteration-count} ${6:direction} ${7:fill-mode}",animdel:"animation-delay:time",animdir:"animation-direction:normal|reverse|alternate|alternate-reverse",animdur:"animation-duration:${1:0}s",animfm:"animation-fill-mode:both|forwards|backwards",animic:"animation-iteration-count:1|infinite",animn:"animation-name",animps:"animation-play-state:running|paused",animtf:"animation-timing-function:linear|ease|ease-in|ease-out|ease-in-out|cubic-bezier(${1:0.1}, ${2:0.7}, ${3:1.0}, ${3:0.1})",ap:"appearance:none",as:"align-self:start|end|auto|flex-start|flex-end|center|baseline|stretch",b:"bottom",bd:"border:${1:1px} ${2:solid} ${3:#000}",bdb:"border-bottom:${1:1px} ${2:solid} ${3:#000}",bdbc:"border-bottom-color:${1:#000}",bdbi:"border-bottom-image:url(${0})",bdbk:"border-break:close",bdbli:"border-bottom-left-image:url(${0})|continue",bdblrs:"border-bottom-left-radius",bdbri:"border-bottom-right-image:url(${0})|continue",bdbrrs:"border-bottom-right-radius",bdbs:"border-bottom-style",bdbw:"border-bottom-width",bdc:"border-color:${1:#000}",bdci:"border-corner-image:url(${0})|continue",bdcl:"border-collapse:collapse|separate",bdf:"border-fit:repeat|clip|scale|stretch|overwrite|overflow|space",bdi:"border-image:url(${0})",bdl:"border-left:${1:1px} ${2:solid} ${3:#000}",bdlc:"border-left-color:${1:#000}",bdlen:"border-length",bdli:"border-left-image:url(${0})",bdls:"border-left-style",bdlw:"border-left-width",bdr:"border-right:${1:1px} ${2:solid} ${3:#000}",bdrc:"border-right-color:${1:#000}",bdri:"border-right-image:url(${0})",bdrs:"border-radius",bdrst:"border-right-style",bdrw:"border-right-width",bds:"border-style:none|hidden|dotted|dashed|solid|double|dot-dash|dot-dot-dash|wave|groove|ridge|inset|outset",bdsp:"border-spacing",bdt:"border-top:${1:1px} ${2:solid} ${3:#000}",bdtc:"border-top-color:${1:#000}",bdti:"border-top-image:url(${0})",bdtli:"border-top-left-image:url(${0})|continue",bdtlrs:"border-top-left-radius",bdtri:"border-top-right-image:url(${0})|continue",bdtrrs:"border-top-right-radius",bdts:"border-top-style",bdtw:"border-top-width",bdw:"border-width",bfv:"backface-visibility:hidden|visible",bg:"background:${1:#000}",bga:"background-attachment:fixed|scroll",bgbk:"background-break:bounding-box|each-box|continuous",bgc:"background-color:#${1:fff}",bgcp:"background-clip:padding-box|border-box|content-box|no-clip",bgi:"background-image:url(${0})",bgo:"background-origin:padding-box|border-box|content-box",bgp:"background-position:${1:0} ${2:0}",bgpx:"background-position-x",bgpy:"background-position-y",bgr:"background-repeat:no-repeat|repeat-x|repeat-y|space|round",bgsz:"background-size:contain|cover",bxsh:"box-shadow:${1:inset }${2:hoff} ${3:voff} ${4:blur} ${5:#000}|none",bxsz:"box-sizing:border-box|content-box|border-box",c:"color:${1:#000}",cr:"color:rgb(${1:0}, ${2:0}, ${3:0})",cra:"color:rgba(${1:0}, ${2:0}, ${3:0}, ${4:.5})",cl:"clear:both|left|right|none",cm:"/* ${0} */",cnt:"content:'${0}'|normal|open-quote|no-open-quote|close-quote|no-close-quote|attr(${0})|counter(${0})|counters(${0})",coi:"counter-increment",colm:"columns",colmc:"column-count",colmf:"column-fill",colmg:"column-gap",colmr:"column-rule",colmrc:"column-rule-color",colmrs:"column-rule-style",colmrw:"column-rule-width",colms:"column-span",colmw:"column-width",cor:"counter-reset",cp:"clip:auto|rect(${1:top} ${2:right} ${3:bottom} ${4:left})",cps:"caption-side:top|bottom",cur:"cursor:pointer|auto|default|crosshair|hand|help|move|pointer|text",d:"display:block|none|flex|inline-flex|inline|inline-block|grid|inline-grid|subgrid|list-item|run-in|compact|table|inline-table|table-caption|table-column|table-column-group|table-header-group|table-footer-group|table-row|table-row-group|table-cell|ruby|ruby-base|ruby-base-group|ruby-text|ruby-text-group",ec:"empty-cells:show|hide",f:"font:${1:1em} ${2:sans-serif}",fd:"font-display:auto|block|swap|fallback|optional",fef:"font-effect:none|engrave|emboss|outline",fem:"font-emphasize",femp:"font-emphasize-position:before|after",fems:"font-emphasize-style:none|accent|dot|circle|disc",ff:"font-family:serif|sans-serif|cursive|fantasy|monospace",fft:'font-family:"Times New Roman", Times, Baskerville, Georgia, serif',ffa:'font-family:Arial, "Helvetica Neue", Helvetica, sans-serif',ffv:"font-family:Verdana, Geneva, sans-serif",fl:"float:left|right|none",fs:"font-style:italic|normal|oblique",fsm:"font-smoothing:antialiased|subpixel-antialiased|none",fst:"font-stretch:normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded",fv:"font-variant:normal|small-caps",fvs:"font-variation-settings:normal|inherit|initial|unset",fw:"font-weight:normal|bold|bolder|lighter",fx:"flex",fxb:"flex-basis:fill|max-content|min-content|fit-content|content",fxd:"flex-direction:row|row-reverse|column|column-reverse",fxf:"flex-flow",fxg:"flex-grow",fxsh:"flex-shrink",fxw:"flex-wrap:nowrap|wrap|wrap-reverse",fsz:"font-size",fsza:"font-size-adjust",gtc:"grid-template-columns:repeat(${0})|minmax()",gtr:"grid-template-rows:repeat(${0})|minmax()",gta:"grid-template-areas",gt:"grid-template",gg:"grid-gap",gcg:"grid-column-gap",grg:"grid-row-gap",gac:"grid-auto-columns:auto|minmax()",gar:"grid-auto-rows:auto|minmax()",gaf:"grid-auto-flow:row|column|dense|inherit|initial|unset",gd:"grid",gc:"grid-column",gcs:"grid-column-start",gce:"grid-column-end",gr:"grid-row",grs:"grid-row-start",gre:"grid-row-end",ga:"grid-area",h:"height",jc:"justify-content:start|end|stretch|flex-start|flex-end|center|space-between|space-around|space-evenly",ji:"justify-items:start|end|center|stretch",js:"justify-self:start|end|center|stretch",l:"left",lg:"background-image:linear-gradient(${1})",lh:"line-height",lis:"list-style",lisi:"list-style-image",lisp:"list-style-position:inside|outside",list:"list-style-type:disc|circle|square|decimal|decimal-leading-zero|lower-roman|upper-roman",lts:"letter-spacing:normal",m:"margin",mah:"max-height",mar:"max-resolution",maw:"max-width",mb:"margin-bottom",mih:"min-height",mir:"min-resolution",miw:"min-width",ml:"margin-left",mr:"margin-right",mt:"margin-top",ol:"outline",olc:"outline-color:${1:#000}|invert",olo:"outline-offset",ols:"outline-style:none|dotted|dashed|solid|double|groove|ridge|inset|outset",olw:"outline-width|thin|medium|thick","op|opa":"opacity",ord:"order",ori:"orientation:landscape|portrait",orp:"orphans",ov:"overflow:hidden|visible|hidden|scroll|auto",ovs:"overflow-style:scrollbar|auto|scrollbar|panner|move|marquee",ovx:"overflow-x:hidden|visible|hidden|scroll|auto",ovy:"overflow-y:hidden|visible|hidden|scroll|auto",p:"padding",pb:"padding-bottom",pgba:"page-break-after:auto|always|left|right",pgbb:"page-break-before:auto|always|left|right",pgbi:"page-break-inside:auto|avoid",pl:"padding-left",pos:"position:relative|absolute|relative|fixed|static",pr:"padding-right",pt:"padding-top",q:"quotes",qen:"quotes:'\\201C' '\\201D' '\\2018' '\\2019'",qru:"quotes:'\\00AB' '\\00BB' '\\201E' '\\201C'",r:"right",rsz:"resize:none|both|horizontal|vertical",t:"top",ta:"text-align:left|center|right|justify",tal:"text-align-last:left|center|right",tbl:"table-layout:fixed",td:"text-decoration:none|underline|overline|line-through",te:"text-emphasis:none|accent|dot|circle|disc|before|after",th:"text-height:auto|font-size|text-size|max-size",ti:"text-indent",tj:"text-justify:auto|inter-word|inter-ideograph|inter-cluster|distribute|kashida|tibetan",to:"text-outline:${1:0} ${2:0} ${3:#000}",tov:"text-overflow:ellipsis|clip",tr:"text-replace",trf:"transform:${1}|skewX(${1:angle})|skewY(${1:angle})|scale(${1:x}, ${2:y})|scaleX(${1:x})|scaleY(${1:y})|scaleZ(${1:z})|scale3d(${1:x}, ${2:y}, ${3:z})|rotate(${1:angle})|rotateX(${1:angle})|rotateY(${1:angle})|rotateZ(${1:angle})|translate(${1:x}, ${2:y})|translateX(${1:x})|translateY(${1:y})|translateZ(${1:z})|translate3d(${1:tx}, ${2:ty}, ${3:tz})",trfo:"transform-origin",trfs:"transform-style:preserve-3d",trs:"transition:${1:prop} ${2:time}",trsde:"transition-delay:${1:time}",trsdu:"transition-duration:${1:time}",trsp:"transition-property:${1:prop}",trstf:"transition-timing-function:${1:fn}",tsh:"text-shadow:${1:hoff} ${2:voff} ${3:blur} ${4:#000}",tt:"text-transform:uppercase|lowercase|capitalize|none",tw:"text-wrap:none|normal|unrestricted|suppress",us:"user-select:none",v:"visibility:hidden|visible|collapse",va:"vertical-align:top|super|text-top|middle|baseline|bottom|text-bottom|sub",w:"width",whs:"white-space:nowrap|pre|pre-wrap|pre-line|normal",whsc:"white-space-collapse:normal|keep-all|loose|break-strict|break-all",wid:"widows",wm:"writing-mode:lr-tb|lr-tb|lr-bt|rl-tb|rl-bt|tb-rl|tb-lr|bt-lr|bt-rl",wob:"word-break:normal|keep-all|break-all",wos:"word-spacing",wow:"word-wrap:none|unrestricted|suppress|break-word|normal",z:"z-index",zom:"zoom:1"})},sass:{options:{"stylesheet.after":""}},stylus:{options:{"stylesheet.between":" ","stylesheet.after":""}}};function Po(e){const t={};return Object.keys(e).forEach((n=>{for(const r of n.split("|"))t[r]=e[n]})),t}function jo(e={},t={}){const n=e.type||"markup",r=e.syntax||Eo[n];return Object.assign(Object.assign(Object.assign({},To),e),{type:n,syntax:r,variables:Oo(n,r,"variables",e,t),snippets:Oo(n,r,"snippets",e,t),options:Oo(n,r,"options",e,t)})}function Oo(e,t,n,r,o={}){const i=Co[e],a=o[e],s=Co[t],c=o[t];return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},To[n]),i&&i[n]),s&&s[n]),a&&a[n]),c&&c[n]),r[n])}function Io(e,t=0){return{text:e,start:t,pos:e.length}}function _o(e){return e.pos===e.start}function $o(e,t=0){return e.text.charCodeAt(e.pos-1+t)}function Fo(e){if(!_o(e))return e.text.charCodeAt(--e.pos)}function Ro(e,t){if(_o(e))return!1;const n="function"==typeof t?t($o(e)):t===$o(e);return n&&e.pos--,!!n}function No(e,t){const n=e.pos;for(;Ro(e,t););return e.pos<n}function zo(e){return 39===e||34===e}const Mo={91:93,40:41,123:125};function Uo(e){const t=e.pos;if(!Ro(e,62))return!1;let n=!1;for(Ro(e,47);!_o(e);){if(No(e,Vo),Do(e)){if(Ro(e,47)){n=Ro(e,60);break}if(Ro(e,60)){n=!0;break}if(Ro(e,Vo))continue;if(Ro(e,61)){if(Do(e))continue;break}if(Bo(e)){n=!0;break}break}if(!Wo(e))break}return e.pos=t,n}function Wo(e){return function(e){const t=e.pos;return!!(function(e){const t=e.pos,n=Fo(e);if(zo(n))for(;!_o(e);)if(Fo(e)===n&&92!==$o(e))return!0;return e.pos=t,!1}(e)&&Ro(e,61)&&Do(e))||(e.pos=t,!1)}(e)||Bo(e)}function Bo(e){const t=e.pos,n=[];for(;!_o(e);){const t=$o(e);if(Ho(t))n.push(t);else if(Go(t)){if(n.pop()!==Mo[t])break}else if(!qo(t))break;e.pos--}return!(t===e.pos||!Ro(e,61)||!Do(e))||(e.pos=t,!1)}function Do(e){return No(e,Lo)}function Lo(e){return 58===e||45===e||function(e){return(e&=-33)>=65&&e<=90}(e)||function(e){return e>47&&e<58}(e)}function Vo(e){return 32===e||9===e}function qo(e){return!isNaN(e)&&61!==e&&!Vo(e)&&!zo(e)}function Go(e){return 123===e||40===e||91===e}function Ho(e){return 125===e||41===e||93===e}const Jo=e=>e.charCodeAt(0),Zo="#.*:$-_!@%^+>/".split("").map(Jo),Qo={type:"markup",lookAhead:!0,prefix:""};function Xo(e,t=e.length,n={}){const r=Object.assign(Object.assign({},Qo),n);let o;t=Math.min(e.length,Math.max(0,null==t?e.length:t)),r.lookAhead&&(t=function(e,t,n){for(zo(e.charCodeAt(t))&&t++;ni(e.charCodeAt(t),n.type);)t++;return t}(e,t,r));const i=function(e,t,n){if(!n)return 0;const r=Io(e),o=n.split("").map(Jo);let i;for(r.pos=t;!_o(r);)if(!Ko(r,93,91)&&!Ko(r,125,123)){if(i=r.pos,Yo(r,o))return i;r.pos--}return-1}(e,t,r.prefix||"");if(-1===i)return;const a=Io(e,i);a.pos=t;const s=[];for(;!_o(a);){if(o=$o(a),s.includes(125)){if(125===o){s.push(o),a.pos--;continue}if(123!==o){a.pos--;continue}}if(ni(o,r.type))s.push(o);else if(ti(o,r.type)){if(s.pop()!==Mo[o])break}else{if(s.includes(93)||s.includes(125)){a.pos--;continue}if(Uo(a)||!ei(o))break}a.pos--}if(!s.length&&a.pos!==t){const r=e.slice(a.pos,t).replace(/^[*+>^]+/,"");return{abbreviation:r,location:t-r.length,start:n.prefix?i-n.prefix.length:t-r.length,end:t}}}function Ko(e,t,n){const r=e.pos;if(Ro(e,t))for(;!_o(e);){if(Ro(e,n))return!0;e.pos--}return e.pos=r,!1}function Yo(e,t){const n=e.pos;let r=!1;for(let n=t.length-1;n>=0&&!_o(e)&&Ro(e,t[n]);n--)r=0===n;return r||(e.pos=n),r}function ei(e){return e>64&&e<91||e>96&&e<123||e>47&&e<58||Zo.includes(e)}function ti(e,t){return 40===e||"markup"===t&&(91===e||123===e)}function ni(e,t){return 41===e||"markup"===t&&(93===e||125===e)}const ri=function(e,t){const n=jo(t);return"stylesheet"===n.type?function(e,t){return so(fo(e,t),t)}(e,n):function(e,t){return qr(Vr(e,t),t)}(e,n)},oi={markup:["html","xml","xsl","jsx","js","pug","slim","haml"],stylesheet:["css","sass","scss","less","sss","stylus"]};var ii=n(189);const ai=ii.loadMessageBundle(),si=new Map;let ci;const ui=new Map,li=/^[a-z,A-Z,!,(,[,#,\.\{]/,pi=/^[a-z,A-Z,!,(,[,#,\.]/,fi=/^-?[a-z,A-Z,!,@,#]/,di=/[a-z,A-Z\.]/,mi=[...he.tags,"lorem"];function gi(e,t,n,r){var o,i;if("never"===r.showExpandedAbbreviation||!Li(n,r.excludeLanguages))return;const a=Ei(n);if(!a){if(!si.has(n)){const e=Object.assign(Object.assign({},Pi(n)),wi[n]);si.set(n,Object.keys(e))}ci=null!==(o=si.get(n))&&void 0!==o?o:[]}const s=Oi(e,t,{lookAhead:!a,type:a?"stylesheet":"markup"});if(!s)return;const{abbreviationRange:c,abbreviation:u,filter:l}=s,p=xi(e,t).substr(0,t.character);if(function(e){if(e){const t=e.match(/[\w,:,-,\.]*$/);if(t)return t[0]}}(p)===u&&p.endsWith(`<${u}`)&&oi.markup.includes(n))return;const f=$i(n,r,l);let d,m="",g=[];const h=(e,t)=>{if(_i(e,u)){try{m=ri(t,f),a&&"!important".startsWith(t)&&(m="!important")}catch(e){}m&&!function(e,t,n,r){var o,i;if(Ei(e)&&r){const e=null!==(o=r["stylesheet.between"])&&void 0!==o?o:": ",a=null!==(i=r["stylesheet.after"])&&void 0!==i?i:";";let s=t.indexOf(e[0],Math.max(t.length-e.length,0));return s=s>=0?s:t.length,n===`${t.substring(0,s)}${e}\${0}${a}`||n.replace(/\s/g,"")===t.replace(/\s/g,"")+a}if("xml"===e&&mi.some((e=>e.startsWith(t.toLowerCase()))))return!0;if(mi.includes(t.toLowerCase())||ci.includes(t))return!1;if(/[-,:]/.test(t)&&!/--|::/.test(t)&&!t.endsWith(":"))return!1;if("."===t)return!1;const a=t.match(/^([a-z,A-Z,\d]*)\.$/);return a?!a[1]||!he.tags.includes(a[1]):("jsx"!==e||!/^([A-Z][A-Za-z0-9]*)+$/.test(t))&&n.toLowerCase()===`<${t.toLowerCase()}>\${1}</${t.toLowerCase()}>`}(e,t,m,f.options)&&(d=W.create(t),d.textEdit=x.replace(c,bi(vi(m))),d.documentation=yi(m),d.insertTextFormat=N.Snippet,d.detail=ai("Emmet abbreviation","Emmet Abbreviation"),d.label=u,d.label+=l?"|"+l.replace(",","|"):"",g=[d])}};if(Ei(n)){if(h(n,u),u.length>4&&ge.properties.find((e=>e.startsWith(u))))return B.create([],!0);if(d&&m.length){d.textEdit=x.replace(c,bi(vi(m))),d.documentation=yi(m),d.label=m.replace(/([^\\])\$\{\d+\}/g,"$1").replace(/\$\{\d+:([^\}]+)\}/g,"$1"),d.filterText=u;const e=ui.has(n)?ui.get(n):ui.get("css");if(g=hi(null!=e?e:[],u,u,c,f,"Emmet Custom Snippet",!1),!g.find((e=>{var t,n,r;return(null===(t=e.textEdit)||void 0===t?void 0:t.newText)&&(null===(n=e.textEdit)||void 0===n?void 0:n.newText)===(null===(r=null==d?void 0:d.textEdit)||void 0===r?void 0:r.newText)}))){const e=new RegExp(".*"+u.split("").map((e=>"$"===e||"+"===e?"\\"+e:e)).join(".*")+".*","i");(/\d/.test(u)||e.test(d.label))&&g.push(d)}}}else{h(n,u);let e=u;const t=u.match(/(>|\+)([\w:-]+)$/);if(t&&3===t.length&&(e=t[2]),"xml"!==n){const t=hi(mi,e,u,c,f,"Emmet Abbreviation");g=g.concat(t)}if(!0===r.showAbbreviationSuggestions){const t=hi(ci.filter((e=>!mi.includes(e))),e,u,c,f,"Emmet Abbreviation");d&&t.length>0&&e!==u&&(d.sortText="0"+d.label,t.forEach((e=>{e.filterText=u,e.sortText="9"+u}))),g=g.concat(t)}"html"===n&&g.length>=2&&u.includes(":")&&(null===(i=null==d?void 0:d.textEdit)||void 0===i?void 0:i.newText)===`<${u}>\${0}</${u}>`&&(g=g.filter((e=>e.label!==u)))}return!0===r.showSuggestionsAsSnippets&&g.forEach((e=>e.kind=R.Snippet)),g.length?B.create(g,!0):void 0}function hi(e,t,n,r,o,i,a=!0){if(!t||!e)return[];const s=[];return e.forEach((e=>{if(!e.startsWith(t.toLowerCase())||a&&e===t.toLowerCase())return;const c=n+e.substr(t.length);let u;try{u=ri(c,o)}catch(e){}if(!u)return;const l=W.create(t+e.substr(t.length));l.documentation=yi(u),l.detail=i,l.textEdit=x.replace(r,bi(vi(u))),l.insertTextFormat=N.Snippet,s.push(l)})),s}function yi(e){return e.replace(/([^\\])\$\{\d+\}/g,"$1|").replace(/\$\{\d+:([^\}]+)\}/g,"$1")}function bi(e){return e?e.replace(/([^\\])(\$)([^\{])/g,"$1\\$2$3"):e}function vi(e){if(!e||!e.trim())return e;let t=-1,n=[],r=!1,o=!1,i=0;const a=e.length;try{for(;i<a&&!r;){if("$"!=e[i++]||"{"!=e[i++])continue;let s=-1,c=-1;for(;i<a&&/\d/.test(e[i]);)s=s<0?i:s,c=i+1,i++;if(-1===s||-1===c||i>=a||"}"!=e[i]&&":"!=e[i])continue;const u=e.substring(s,c);if(r="0"===u,r)break;let l=!1;if(":"==e[i++])for(;i<a;){if("}"==e[i]){l=!0;break}i++}Number(u)>Number(t)?(t=Number(u),n=[{numberStart:s,numberEnd:c}],o=!l):Number(u)===t&&n.push({numberStart:s,numberEnd:c})}}catch(e){}if(o&&!r)for(let t=0;t<n.length;t++){const r=n[t].numberStart,o=n[t].numberEnd;e=e.substr(0,r)+"0"+e.substr(o)}return e}function xi(e,t){const n=e.offsetAt(t),r=e.getText();let o=0,i=r.length;for(let e=n-1;e>=0;e--)if("\n"===r[e]){o=e+1;break}for(let e=n;e<r.length;e++)if("\n"===r[e]){i=e;break}return r.substring(o,i)}let wi={},ki={},Ai={};const Si=(e,t)=>`\${${e}${t?":"+t:""}}`;function Ei(e){return oi.stylesheet.includes(e)}function Ti(e){return Ei(e)?"stylesheet":"markup"}function Ci(e){return Ei(e)?"css":"html"}function Pi(e){const t=jo({type:Ti(e),syntax:e});return"xml"===e?{}:t.snippets}function ji(e,t){let n;for(let r=0;r<3;r++)if(e.endsWith("|bem",t))t-="bem".length+1,n=n?"bem,"+n:"bem";else if(e.endsWith("|c",t))t-="c".length+1,n=n?"c,"+n:"c";else{if(!e.endsWith("|t",t))break;t-="t".length+1,n=n?"t,"+n:"t"}return{pos:t,filter:n}}function Oi(e,t,n){const r=xi(e,t),o=r.substr(0,t.character),{pos:i,filter:s}=ji(o,t.character),c=s?s.length+1:0,u=Xo(r,i,n);if(u)return{abbreviationRange:a.create(t.line,u.location,t.line,u.location+u.abbreviation.length+c),abbreviation:u.abbreviation,filter:s}}function Ii(e,t){if(!e)return;const{pos:n,filter:r}=ji(e,e.length),o=Xo(e,n,Ei(t)||"stylesheet"===t?{syntax:"stylesheet",lookAhead:!1}:{lookAhead:!0});return o?{abbreviation:o.abbreviation,filter:r}:void 0}function _i(e,t){if(!t)return!1;if(Ei(e)){if(t.includes("#")){if(t.startsWith("#"))return/^#[\d,a-f,A-F]{1,6}$/.test(t);if(mi.includes(t.substring(0,t.indexOf("#"))))return!1}return fi.test(t)}return t.startsWith("!")?!/[^!]/.test(t):!!(!/\(/.test(t)&&!/\)/.test(t)||/\{[^\}\{]*[\(\)]+[^\}\{]*\}(?:[>\+\*\^]|$)/.test(t)||/\(.*\)[>\+\*\^]/.test(t)||/\[[^\[\]\(\)]+=".*"\]/.test(t)||/[>\+\*\^]\(.*\)/.test(t))&&("jsx"===e?pi.test(t)&&di.test(t):li.test(t)&&di.test(t))}function $i(e,t,n){var r,o,i,a,s,c,u,l,p,f;(t=null!=t?t:{}).preferences=null!==(r=t.preferences)&&void 0!==r?r:{};const d=t.preferences,m=Ei(e)?e:"css",g=function(e,t){t||(t={});const n=Object.assign({},Ai,t)[e];if(!n||"string"==typeof n)return"xhtml"===n?{selfClosingStyle:"xhtml"}:{};const r={};for(const e in n)switch(e){case"tag_case":r.tagCase="lower"===n[e]||"upper"===n[e]?n[e]:"";break;case"attr_case":r.attributeCase="lower"===n[e]||"upper"===n[e]?n[e]:"";break;case"attr_quotes":r.attributeQuotes=n[e];break;case"tag_nl":r.format=!0!==n[e]&&!1!==n[e]||n[e];break;case"inline_break":r.inlineBreak=n[e];break;case"self_closing_tag":if(!0===n[e]){r.selfClosingStyle="xml";break}if(!1===n[e]){r.selfClosingStyle="html";break}r.selfClosingStyle=n[e];break;case"compact_bool":r.compactBooleanAttributes=n[e];break;default:r[e]=n[e]}return r}(e,null!==(o=t.syntaxProfiles)&&void 0!==o?o:{}),h=(g&&g.filters?g.filters.split(","):[]).map((e=>e.trim())),y=n&&n.split(",").some((e=>"bem"===e.trim()))||h.includes("bem"),b=n&&n.split(",").some((e=>"c"===e.trim()))||h.includes("c"),v=function(e,t){if(!t||"object"!=typeof t)return{};if(!Ei(e)){const e={};for(const n in t)switch(n){case"filter.commentAfter":e.after=t[n];break;case"filter.commentBefore":e.before=t[n];break;case"filter.commentTrigger":e.trigger=t[n]}return{comment:e}}let n="number"==typeof(null==t?void 0:t["css.fuzzySearchMinScore"])?t["css.fuzzySearchMinScore"]:.3;n>1?n=1:n<0&&(n=0);const r={fuzzySearchMinScore:n};for(const n in t)switch(n){case"css.floatUnit":r.floatUnit=t[n];break;case"css.intUnit":r.intUnit=t[n];break;case"css.unitAliases":const o={};t[n].split(",").forEach((e=>{if(!e||!e.trim()||!e.includes(":"))return;const t=e.substr(0,e.indexOf(":")),n=e.substr(t.length+1);t.trim()&&n&&(o[t.trim()]=n)})),r.unitAliases=o;break;case`${e}.valueSeparator`:r.between=t[n];break;case`${e}.propertyEnd`:r.after=t[n]}return{stylesheet:r}}(e,t.preferences),x=(null==v?void 0:v.stylesheet)&&v.stylesheet.unitAliases||{},w={"output.formatSkip":["html"],"output.formatForce":["body"],"output.inlineBreak":0,"output.compactBoolean":!1,"output.reverseAttributes":!1,"output.field":Si,"markup.href":!0,"comment.enabled":!1,"comment.trigger":["id","class"],"comment.before":"","comment.after":"\n\x3c!-- /[#ID][.CLASS] --\x3e","bem.enabled":!1,"bem.element":"__","bem.modifier":"_","jsx.enabled":"jsx"===e,"stylesheet.shortHex":!0,"stylesheet.between":"stylus"===e?" ":": ","stylesheet.after":"sass"===e||"stylus"===e?"":";","stylesheet.intUnit":"px","stylesheet.floatUnit":"em","stylesheet.unitAliases":{e:"em",p:"%",x:"ex",r:"rem"},"stylesheet.fuzzySearchMinScore":.3},k={"output.tagCase":g.tagCase,"output.attributeCase":g.attributeCase,"output.attributeQuotes":g.attributeQuotes,"output.format":null===(i=g.format)||void 0===i||i,"output.formatSkip":d["format.noIndentTags"],"output.formatForce":d["format.forceIndentationForTags"],"output.inlineBreak":null!==(a=g.inlineBreak)&&void 0!==a?a:d["output.inlineBreak"],"output.compactBoolean":null!==(s=g.compactBooleanAttributes)&&void 0!==s?s:d["profile.allowCompactBoolean"],"output.reverseAttributes":d["output.reverseAttributes"],"output.selfClosingStyle":null!==(u=null!==(c=g.selfClosingStyle)&&void 0!==c?c:d["output.selfClosingStyle"])&&void 0!==u?u:Fi(e),"output.field":Si,"comment.enabled":b,"comment.trigger":d["filter.commentTrigger"],"comment.before":d["filter.commentBefore"],"comment.after":d["filter.commentAfter"],"bem.enabled":y,"bem.element":null!==(l=d["bem.elementSeparator"])&&void 0!==l?l:"__","bem.modifier":null!==(p=d["bem.modifierSeparator"])&&void 0!==p?p:"_","jsx.enabled":"jsx"===e,"stylesheet.shortHex":d["css.color.short"],"stylesheet.between":d[`${m}.valueSeparator`],"stylesheet.after":d[`${m}.propertyEnd`],"stylesheet.intUnit":d["css.intUnit"],"stylesheet.floatUnit":d["css.floatUnit"],"stylesheet.unitAliases":x,"stylesheet.fuzzySearchMinScore":d["css.fuzzySearchMinScore"]},A={};[...Object.keys(w),...Object.keys(k)].forEach((e=>{var t;const n=e;A[n]=null!==(t=k[n])&&void 0!==t?t:w[n]}));const S=Object.assign(Object.assign({},w["stylesheet.unitAliases"]),k["stylesheet.unitAliases"]);A["stylesheet.unitAliases"]=S;const E=Ti(e),T=(j=t.variables)?Object.assign({},ki,j):ki,C=Ci(e),P="stylesheet"===E?null!==(f=wi[e])&&void 0!==f?f:wi[C]:wi[e];var j;return{type:E,options:A,variables:T,snippets:P,syntax:e,text:void 0,maxRepeat:1e3}}function Fi(e){switch(e){case"xhtml":return"xhtml";case"xml":case"xsl":return"xml";case"jsx":return"xhtml";default:return"html"}}function Ri(e,t){const n=jo(t);return"stylesheet"===t.type?fo(e,n):Vr(e,n)}function Ni(e,t){let n;const r=jo(t);return n="stylesheet"===t.type?"string"==typeof e?ri(e,r):so(e,r):"string"==typeof e?ri(e,r):qr(e,r),bi(vi(n))}function zi(e,t,n,r){return o=this,i=void 0,s=function*(){if(Di(),!e.length)return;const o=[];for(let t of e)if(t&&(t=t.trim()),t.length&&"~"===t[0])r&&o.push(Le(r,t.substr(1)));else if(i=t,We.test(i))o.push(Pe.file(t));else if(n)for(const e of n)o.push(Le(e,t));var i;for(const e of o){try{if((yield t.stat(e)).type!==ze.Directory)continue}catch(e){continue}const n=Le(e,"snippets.json"),r=Le(e,"syntaxProfiles.json");let o;o="function"==typeof globalThis.TextDecoder?new globalThis.TextDecoder:new Ve.TextDecoder;let i="";try{const e=yield t.readFile(n);i=o.decode(e)}catch(e){}if(i.length)try{const e=Mi(n,i);e.variables&&Ui(e.variables),Bi(e)}catch(e){throw Di(),e}let a="";try{const e=yield t.readFile(r);a=o.decode(e)}catch(e){}if(a.length)try{Wi(Mi(r,a))}catch(e){throw Di(),e}}},new((a=void 0)||(a=Promise))((function(e,t){function n(e){try{c(s.next(e))}catch(e){t(e)}}function r(e){try{c(s.throw(e))}catch(e){t(e)}}function c(t){var o;t.done?e(t.value):(o=t.value,o instanceof a?o:new a((function(e){e(o)}))).then(n,r)}c((s=s.apply(o,i||[])).next())}));var o,i,a,s}function Mi(e,t){let n=[];const r=function(e,t,n){void 0===t&&(t=[]),void 0===n&&(n=ue.DEFAULT);var r=null,o=[],i=[];function a(e){Array.isArray(o)?o.push(e):null!==r&&(o[r]=e)}return me(e,{onObjectBegin:function(){var e={};a(e),i.push(o),o=e,r=null},onObjectProperty:function(e){r=e},onObjectEnd:function(){o=i.pop()},onArrayBegin:function(){var e=[];a(e),i.push(o),o=e,r=null},onArrayEnd:function(){o=i.pop()},onLiteralValue:a,onError:function(e,n,r){t.push({error:e,offset:n,length:r})}},n),o[0]}(t,n);if(n.length)throw new Error(`Found error ${function(e){switch(e){case 1:return"InvalidSymbol";case 2:return"InvalidNumberFormat";case 3:return"PropertyNameExpected";case 4:return"ValueExpected";case 5:return"ColonExpected";case 6:return"CommaExpected";case 7:return"CloseBraceExpected";case 8:return"CloseBracketExpected";case 9:return"EndOfFileExpected";case 10:return"InvalidCommentToken";case 11:return"UnexpectedEndOfComment";case 12:return"UnexpectedEndOfString";case 13:return"UnexpectedEndOfNumber";case 14:return"InvalidUnicode";case 15:return"InvalidEscapeCharacter";case 16:return"InvalidCharacter"}return"<unknown ParseErrorCode>"}(n[0].error)} while parsing the file ${e} at offset ${n[0].offset}`);return r}function Ui(e){if("object"!=typeof e||!e)throw new Error(ai("emmetInvalidVariables","Invalid emmet.variables field. See https://code.visualstudio.com/docs/editor/emmet#_emmet-configuration for a valid example."));ki=Object.assign({},ki,e)}function Wi(e){if("object"!=typeof e||!e)throw new Error(ai("emmetInvalidProfiles","Invalid syntax profile. See https://code.visualstudio.com/docs/editor/emmet#_emmet-configuration for a valid example."));Ai=Object.assign({},Ai,e)}function Bi(e){if("object"!=typeof e||!e)throw new Error(ai("emmetInvalidSnippets","Invalid snippets file. See https://code.visualstudio.com/docs/editor/emmet#_using-custom-emmet-snippets for a valid example."));Object.keys(e).forEach((t=>{if(!e[t].snippets)return;const n=Ci(t);let r=e[t].snippets;if(e[n]&&e[n].snippets&&n!==t&&(r=Object.assign({},e[n].snippets,e[t].snippets)),Ei(t)){const e=ui.get(t),n=Object.assign([],e,Object.keys(r));ui.set(t,n)}else for(const e in r)r.hasOwnProperty(e)&&r[e].startsWith("<")&&r[e].endsWith(">")&&(r[e]=`{${r[e]}}`);const o=wi[t],i=function(e){const t={};return Object.keys(e).forEach((n=>{for(const r of n.split("|"))t[r]=e[n]})),t}(r),a=Object.assign({},o,i);Object.keys(a),wi[t]=a}))}function Di(){wi={},si.clear(),ui.clear(),Ai={},ki={}}function Li(e,t=[]){if(e&&!t.includes(e))return/\b(typescriptreact|javascriptreact|jsx-tags)\b/.test(e)?"jsx":"sass-indented"===e?"sass":"jade"===e?"pug":oi.markup.includes(e)||oi.stylesheet.includes(e)?e:void 0}},6813:(e,t,n)=>{"use strict";n.r(t),n.d(t,{TextDocument:()=>o});class r{constructor(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){const t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(e,t){for(let t of e)if(r.isIncremental(t)){const e=s(t.range),n=this.offsetAt(e.start),r=this.offsetAt(e.end);this._content=this._content.substring(0,n)+t.text+this._content.substring(r,this._content.length);const o=Math.max(e.start.line,0),i=Math.max(e.end.line,0);let c=this._lineOffsets;const u=a(t.text,!1,n);if(i-o===u.length)for(let e=0,t=u.length;e<t;e++)c[e+o+1]=u[e];else u.length<1e4?c.splice(o+1,i-o,...u):this._lineOffsets=c=c.slice(0,o+1).concat(u,c.slice(i+1));const l=t.text.length-(r-n);if(0!==l)for(let e=o+1+u.length,t=c.length;e<t;e++)c[e]=c[e]+l}else{if(!r.isFull(t))throw new Error("Unknown change event received");this._content=t.text,this._lineOffsets=void 0}this._version=t}getLineOffsets(){return void 0===this._lineOffsets&&(this._lineOffsets=a(this._content,!0)),this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return{line:0,character:e};for(;n<r;){let o=Math.floor((n+r)/2);t[o]>e?r=o:n=o+1}let o=n-1;return{line:o,character:e-t[o]}}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let n=t[e.line],r=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,r),n)}get lineCount(){return this.getLineOffsets().length}static isIncremental(e){let t=e;return null!=t&&"string"==typeof t.text&&void 0!==t.range&&(void 0===t.rangeLength||"number"==typeof t.rangeLength)}static isFull(e){let t=e;return null!=t&&"string"==typeof t.text&&void 0===t.range&&void 0===t.rangeLength}}var o;function i(e,t){if(e.length<=1)return e;const n=e.length/2|0,r=e.slice(0,n),o=e.slice(n);i(r,t),i(o,t);let a=0,s=0,c=0;for(;a<r.length&&s<o.length;){let n=t(r[a],o[s]);e[c++]=n<=0?r[a++]:o[s++]}for(;a<r.length;)e[c++]=r[a++];for(;s<o.length;)e[c++]=o[s++];return e}function a(e,t,n=0){const r=t?[n]:[];for(let t=0;t<e.length;t++){let o=e.charCodeAt(t);13!==o&&10!==o||(13===o&&t+1<e.length&&10===e.charCodeAt(t+1)&&t++,r.push(n+t+1))}return r}function s(e){const t=e.start,n=e.end;return t.line>n.line||t.line===n.line&&t.character>n.character?{start:n,end:t}:e}function c(e){const t=s(e.range);return t!==e.range?{newText:e.newText,range:t}:e}!function(e){e.create=function(e,t,n,o){return new r(e,t,n,o)},e.update=function(e,t,n){if(e instanceof r)return e.update(t,n),e;throw new Error("TextDocument.update: document must be created by TextDocument.create")},e.applyEdits=function(e,t){let n=e.getText(),r=i(t.map(c),((e,t)=>{let n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n})),o=0;const a=[];for(const t of r){let r=e.offsetAt(t.range.start);if(r<o)throw new Error("Overlapping edit");r>o&&a.push(n.substring(o,r)),t.newText.length&&a.push(t.newText),o=e.offsetAt(t.range.end)}return a.push(n.substr(o)),a.join("")}}(o||(o={}))},189:function(e,t,n){"use strict";var r=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r};Object.defineProperty(t,"__esModule",{value:!0}),t.config=t.loadMessageBundle=void 0;var o=n(1926),i=n(800),a=n(800);function s(e){return function(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];if("number"==typeof e)throw new Error("Browser implementation does currently not support externalized strings.");return i.localize.apply(void 0,r([e,t],n))}}function c(e){return i.setPseudo("pseudo"===(null==e?void 0:e.locale.toLowerCase())),s}Object.defineProperty(t,"MessageFormat",{enumerable:!0,get:function(){return a.MessageFormat}}),Object.defineProperty(t,"BundleFormat",{enumerable:!0,get:function(){return a.BundleFormat}}),t.loadMessageBundle=s,t.config=c,o.default.install(Object.freeze({loadMessageBundle:s,config:c}))},800:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.config=t.loadMessageBundle=t.localize=t.format=t.setPseudo=t.isPseudo=t.isDefined=t.BundleFormat=t.MessageFormat=void 0;var r,o,i,a=n(1926);function s(e){return void 0!==e}function c(e,n){return t.isPseudo&&(e="["+e.replace(/[aouei]/g,"$&$&")+"]"),0===n.length?e:e.replace(/\{(\d+)\}/g,(function(e,t){var r=t[0],o=n[r],i=e;return"string"==typeof o?i=o:"number"!=typeof o&&"boolean"!=typeof o&&null!=o||(i=String(o)),i}))}(i=t.MessageFormat||(t.MessageFormat={})).file="file",i.bundle="bundle",i.both="both",(o=t.BundleFormat||(t.BundleFormat={})).standalone="standalone",o.languagePack="languagePack",function(e){e.is=function(e){var t=e;return t&&s(t.key)&&s(t.comment)}}(r||(r={})),t.isDefined=s,t.isPseudo=!1,t.setPseudo=function(e){t.isPseudo=e},t.format=c,t.localize=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return c(t,n)},t.loadMessageBundle=function(e){return a.default().loadMessageBundle(e)},t.config=function(e){return a.default().config(e)}},1926:(e,t)=>{"use strict";var n;function r(){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}}(r||(r={})),t.default=r},711:(e,t,n)=>{"use strict";var r=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"];e.exports=function(){for(var e=[],t=0;t<r.length;t++)"function"==typeof n.g[r[t]]&&(e[e.length]=r[t]);return e}},2680:(e,t,n)=>{"use strict";var r=n(6672),o=n(9429),i=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&i(e,".prototype.")>-1?o(n):n}},9429:(e,t,n)=>{"use strict";var r=n(4090),o=n(6672),i=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),s=o("%Reflect.apply%",!0)||r.call(a,i),c=o("%Object.defineProperty%",!0);if(c)try{c({},"a",{value:1})}catch(e){c=null}e.exports=function(){return s(r,a,arguments)};var u=function(){return s(r,i,arguments)};c?c(e.exports,"apply",{value:u}):e.exports.apply=u},6672:(e,t,n)=>{"use strict";var r,o=SyntaxError,i=Function,a=TypeError,s=function(e){try{return Function('"use strict"; return ('+e+").constructor;")()}catch(e){}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch(e){c=null}var u=function(){throw new a},l=c?function(){try{return u}catch(e){try{return c(arguments,"callee").get}catch(e){return u}}}():u,p=n(2636)(),f=Object.getPrototypeOf||function(e){return e.__proto__},d=s("async function* () {}"),m=d?d.prototype:r,g=m?m.prototype:r,h="undefined"==typeof Uint8Array?r:f(Uint8Array),y={"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":p?f([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":s("async function () {}"),"%AsyncGenerator%":m,"%AsyncGeneratorFunction%":d,"%AsyncIteratorPrototype%":g?f(g):r,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":s("function* () {}"),"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":p?f(f([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&p?f((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&p?f((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p?f(""[Symbol.iterator]()):r,"%Symbol%":p?Symbol:r,"%SyntaxError%":o,"%ThrowTypeError%":l,"%TypedArray%":h,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet},b={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},v=n(4090),x=n(3198),w=v.call(Function.call,Array.prototype.concat),k=v.call(Function.apply,Array.prototype.splice),A=v.call(Function.call,String.prototype.replace),S=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,E=/\\(\\)?/g,T=function(e){var t=[];return A(e,S,(function(e,n,r,o){t[t.length]=r?A(o,E,"$1"):n||e})),t},C=function(e,t){var n,r=e;if(x(b,r)&&(r="%"+(n=b[r])[0]+"%"),x(y,r)){var i=y[r];if(void 0===i&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new o("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');var n=T(e),r=n.length>0?n[0]:"",o=C("%"+r+"%",t),i=o.name,s=o.value,u=!1,l=o.alias;l&&(r=l[0],k(n,w([0,1],l)));for(var p=1,f=!0;p<n.length;p+=1){var d=n[p];if("constructor"!==d&&f||(u=!0),x(y,i="%"+(r+="."+d)+"%"))s=y[i];else if(null!=s){if(c&&p+1>=n.length){var m=c(s,d);if(f=!!m,!t&&!(d in s))throw new a("base intrinsic for "+e+" exists, but the property is not available.");s=f&&"get"in m&&!("originalValue"in m.get)?m.get:s[d]}else f=x(s,d),s=s[d];f&&!u&&(y[i]=s)}}return s}},5945:(e,t,n)=>{"use strict";var r,o=SyntaxError,i=Function,a=TypeError,s=function(e){try{return Function('"use strict"; return ('+e+").constructor;")()}catch(e){}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch(e){c=null}var u=function(){throw new a},l=c?function(){try{return u}catch(e){try{return c(arguments,"callee").get}catch(e){return u}}}():u,p=n(2636)(),f=Object.getPrototypeOf||function(e){return e.__proto__},d=s("async function* () {}"),m=d?d.prototype:r,g=m?m.prototype:r,h="undefined"==typeof Uint8Array?r:f(Uint8Array),y={"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":p?f([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":s("async function () {}"),"%AsyncGenerator%":m,"%AsyncGeneratorFunction%":d,"%AsyncIteratorPrototype%":g?f(g):r,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":s("function* () {}"),"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":p?f(f([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&p?f((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&p?f((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p?f(""[Symbol.iterator]()):r,"%Symbol%":p?Symbol:r,"%SyntaxError%":o,"%ThrowTypeError%":l,"%TypedArray%":h,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet},b={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},v=n(4090),x=n(3198),w=v.call(Function.call,Array.prototype.concat),k=v.call(Function.apply,Array.prototype.splice),A=v.call(Function.call,String.prototype.replace),S=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,E=/\\(\\)?/g,T=function(e){var t=[];return A(e,S,(function(e,n,r,o){t[t.length]=r?A(o,E,"$1"):n||e})),t},C=function(e,t){var n,r=e;if(x(b,r)&&(r="%"+(n=b[r])[0]+"%"),x(y,r)){var i=y[r];if(void 0===i&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new o("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');var n=T(e),r=n.length>0?n[0]:"",o=C("%"+r+"%",t),i=o.name,s=o.value,u=!1,l=o.alias;l&&(r=l[0],k(n,w([0,1],l)));for(var p=1,f=!0;p<n.length;p+=1){var d=n[p];if("constructor"!==d&&f||(u=!0),x(y,i="%"+(r+="."+d)+"%"))s=y[i];else if(null!=s){if(c&&p+1>=n.length){var m=c(s,d);if(f=!!m,!t&&!(d in s))throw new a("base intrinsic for "+e+" exists, but the property is not available.");s=f&&"get"in m&&!("originalValue"in m.get)?m.get:s[d]}else f=x(s,d),s=s[d];f&&!u&&(y[i]=s)}}return s}},4486:(e,t,n)=>{"use strict";var r=n(5945)("%Object.getOwnPropertyDescriptor%");if(r)try{r([],"length")}catch(e){r=null}e.exports=r},6388:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString;e.exports=function(e,r,o){if("[object Function]"!==n.call(r))throw new TypeError("iterator must be a function");var i=e.length;if(i===+i)for(var a=0;a<i;a++)r.call(o,e[a],a,e);else for(var s in e)t.call(e,s)&&r.call(o,e[s],s,e)}},7795:e=>{"use strict";var t="Function.prototype.bind called on incompatible ",n=Array.prototype.slice,r=Object.prototype.toString,o="[object Function]";e.exports=function(e){var i=this;if("function"!=typeof i||r.call(i)!==o)throw new TypeError(t+i);for(var a,s=n.call(arguments,1),c=function(){if(this instanceof a){var t=i.apply(this,s.concat(n.call(arguments)));return Object(t)===t?t:this}return i.apply(e,s.concat(n.call(arguments)))},u=Math.max(0,i.length-s.length),l=[],p=0;p<u;p++)l.push("$"+p);if(a=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this,arguments); }")(c),i.prototype){var f=function(){};f.prototype=i.prototype,a.prototype=new f,f.prototype=null}return a}},4090:(e,t,n)=>{"use strict";var r=n(7795);e.exports=Function.prototype.bind||r},7286:(e,t,n)=>{"use strict";var r,o=SyntaxError,i=Function,a=TypeError,s=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(e){}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch(e){c=null}var u=function(){throw new a},l=c?function(){try{return u}catch(e){try{return c(arguments,"callee").get}catch(e){return u}}}():u,p=n(2636)(),f=Object.getPrototypeOf||function(e){return e.__proto__},d={},m="undefined"==typeof Uint8Array?r:f(Uint8Array),g={"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":p?f([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":d,"%AsyncGenerator%":d,"%AsyncGeneratorFunction%":d,"%AsyncIteratorPrototype%":d,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":d,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":p?f(f([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&p?f((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&p?f((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p?f(""[Symbol.iterator]()):r,"%Symbol%":p?Symbol:r,"%SyntaxError%":o,"%ThrowTypeError%":l,"%TypedArray%":m,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet},h=function e(t){var n;if("%AsyncFunction%"===t)n=s("async function () {}");else if("%GeneratorFunction%"===t)n=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=s("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&(n=f(o.prototype))}return g[t]=n,n},y={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},b=n(4090),v=n(3198),x=b.call(Function.call,Array.prototype.concat),w=b.call(Function.apply,Array.prototype.splice),k=b.call(Function.call,String.prototype.replace),A=b.call(Function.call,String.prototype.slice),S=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,E=/\\(\\)?/g,T=function(e){var t=A(e,0,1),n=A(e,-1);if("%"===t&&"%"!==n)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new o("invalid intrinsic syntax, expected opening `%`");var r=[];return k(e,S,(function(e,t,n,o){r[r.length]=n?k(o,E,"$1"):t||e})),r},C=function(e,t){var n,r=e;if(v(y,r)&&(r="%"+(n=y[r])[0]+"%"),v(g,r)){var i=g[r];if(i===d&&(i=h(r)),void 0===i&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new o("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');var n=T(e),r=n.length>0?n[0]:"",i=C("%"+r+"%",t),s=i.name,u=i.value,l=!1,p=i.alias;p&&(r=p[0],w(n,x([0,1],p)));for(var f=1,d=!0;f<n.length;f+=1){var m=n[f],h=A(m,0,1),y=A(m,-1);if(('"'===h||"'"===h||"`"===h||'"'===y||"'"===y||"`"===y)&&h!==y)throw new o("property names with quotes must have matching quotes");if("constructor"!==m&&d||(l=!0),v(g,s="%"+(r+="."+m)+"%"))u=g[s];else if(null!=u){if(!(m in u)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(c&&f+1>=n.length){var b=c(u,m);u=(d=!!b)&&"get"in b&&!("originalValue"in b.get)?b.get:u[m]}else d=v(u,m),u=u[m];d&&!l&&(g[s]=u)}}return u}},2636:(e,t,n)=>{"use strict";var r=n.g.Symbol,o=n(6679);e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&o()}},6679:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},3198:(e,t,n)=>{"use strict";var r=n(4090);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},1285:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},2635:(e,t,n)=>{"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,o=n(2680)("Object.prototype.toString"),i=function(e){return!(r&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===o(e)},a=function(e){return!!i(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==o(e)&&"[object Function]"===o(e.callee)},s=function(){return i(arguments)}();i.isLegacyArguments=a,e.exports=s?i:a},3138:e=>{"use strict";var t,n=Object.prototype.toString,r=Function.prototype.toString,o=/^\s*(?:function)?\*/,i="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,a=Object.getPrototypeOf;e.exports=function(e){if("function"!=typeof e)return!1;if(o.test(r.call(e)))return!0;if(!i)return"[object GeneratorFunction]"===n.call(e);if(!a)return!1;if(void 0===t){var s=function(){if(!i)return!1;try{return Function("return function*() {}")()}catch(e){}}();t=!!s&&a(s)}return a(e)===t}},198:(e,t,n)=>{"use strict";var r=n(6388),o=n(711),i=n(4472),a=i("Object.prototype.toString"),s=n(2636)()&&"symbol"==typeof Symbol.toStringTag,c=o(),u=i("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n<e.length;n+=1)if(e[n]===t)return n;return-1},l=i("String.prototype.slice"),p={},f=n(8423),d=Object.getPrototypeOf;s&&f&&d&&r(c,(function(e){var t=new n.g[e];if(!(Symbol.toStringTag in t))throw new EvalError("this engine has support for Symbol.toStringTag, but "+e+" does not have the property! Please report this.");var r=d(t),o=f(r,Symbol.toStringTag);if(!o){var i=d(r);o=f(i,Symbol.toStringTag)}p[e]=o.get})),e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!s){var t=l(a(e),8,-1);return u(c,t)>-1}return!!f&&function(e){var t=!1;return r(p,(function(n,r){if(!t)try{t=n.call(e)===r}catch(e){}})),t}(e)}},4472:(e,t,n)=>{"use strict";var r=n(7286),o=n(4821),i=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&i(e,".prototype.")>-1?o(n):n}},4821:(e,t,n)=>{"use strict";var r=n(4090),o=n(7286),i=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),s=o("%Reflect.apply%",!0)||r.call(a,i),c=o("%Object.getOwnPropertyDescriptor%",!0),u=o("%Object.defineProperty%",!0),l=o("%Math.max%");if(u)try{u({},"a",{value:1})}catch(e){u=null}e.exports=function(e){var t=s(r,a,arguments);if(c&&u){var n=c(t,"length");n.configurable&&u(t,"length",{value:1+l(0,e.length-(arguments.length-1))})}return t};var p=function(){return s(r,i,arguments)};u?u(e.exports,"apply",{value:p}):e.exports.apply=p},8423:(e,t,n)=>{"use strict";var r=n(7286)("%Object.getOwnPropertyDescriptor%");if(r)try{r([],"length")}catch(e){r=null}e.exports=r},7155:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSyntaxFromArgs=t.isValidLocationForEmmetAbbreviation=t.expandEmmetAbbreviation=t.wrapWithAbbreviation=void 0;const r=n(7549),o=n(189),i=n(9779),a=n(5638),s=o.loadMessageBundle(),c=/[\u00a0]*[\d#\-\*\u2022]+\.?/,u=/^#[\da-fA-F]{0,6}$/;function l(){return!0===r.workspace.getConfiguration("emmet").triggerExpansionOnTab?r.commands.executeCommand("tab"):Promise.resolve(!0)}function p(e,t,n,o,a,s){if((0,i.isStyleSheet)(o)){const i=t;if(i&&(i.comments||[]).some((e=>a>=e.start&&a<=e.end)))return!1;if(!n)return!0;const c=e.getText(new r.Range(s.start.line,s.start.character,s.end.line,s.end.character));if(c.startsWith("@"))return!0;if("sass"!==o&&"stylus"!==o&&"property"===n.type){if(n.parent&&"rule"!==n.parent.type&&"at-rule"!==n.parent.type)return!1;const e=n;if(e.terminatorToken&&e.separator&&a>=e.separatorToken.end&&a<=e.terminatorToken.start&&-1===c.indexOf(":"))return u.test(c)||"!"===c;if(!e.terminatorToken&&e.separator&&a>=e.separatorToken.end&&-1===c.indexOf(":"))return u.test(c)||"!"===c;if(u.test(c)||"!"===c)return!1}if("rule"!==n.type&&"at-rule"!==n.type)return!0;const l=n;if(a>l.contentStartToken.end)return!0;if(l.parent&&("rule"===l.parent.type||"at-rule"===l.parent.type)&&l.selectorToken){const t=e.positionAt(a),n=e.positionAt(l.selectorToken.start),r=e.positionAt(l.selectorToken.end);if(t.line!==r.line&&n.character===s.start.character&&n.line===s.start.line)return!0}return!1}const c="<",l=n;let p=0;if(l){if("script"===l.name){const e=(l.attributes||[]).filter((e=>"type"===e.name.toString()))[0],t=e?e.value.toString():"";return i.allowedMimeTypesInScriptTag.indexOf(t)>-1||!(t&&"application/javascript"!==t&&"text/javascript"!==t||!m({language:"javascript"}))}if(!l.open||!l.close||!(l.open.end<=a&&a<=l.close.start))return!1;p=l.open.end;let e=l.firstChild;for(;e&&!(e.end>a);)p=e.end,e=e.nextSibling}const f=e.positionAt(p);let d=e.getText(new r.Range(f.line,f.character,s.start.line,s.start.character));if(d.length>500&&(d=d.substr(d.length-500)),!d.trim())return!0;let g=!0,h=!1,y=d.length-1;if(d[y]===c)return!1;for(;y>=0;){const e=d[y];if(y--,h||!/\s/.test(e))if("?"!==e||d[y]!==c){if(/\s/.test(e)&&d[y]===c)y--;else if(e===c||">"===e)if(y>=0&&"\\"===d[y])y--;else{if(">"===e){if(y>=0&&"="===d[y])continue;break}if(e===c){g=!h;break}}}else y--;else h=!0}return g}function f(e,t,n){if(!t||0===t.length)return Promise.resolve(!1);const o=[];if(!n)return t.sort(((e,t)=>t.rangeToReplace.start.compareTo(e.rangeToReplace.start))).forEach((t=>{const n=d(t);n&&o.push(e.insertSnippet(new r.SnippetString(n),t.rangeToReplace,{undoStopBefore:!1,undoStopAfter:!1}))})),0===o.length?Promise.resolve(!1):Promise.all(o).then((()=>Promise.resolve(!0)));const i=d(t[0]),a=t.map((e=>e.rangeToReplace));return i?e.insertSnippet(new r.SnippetString(i),a):Promise.resolve(!1)}function d(e){const t=(0,i.getEmmetHelper)(),n=t.getExpandOptions(e.syntax,(0,i.getEmmetConfiguration)(e.syntax),e.filter);let o;e.textToWrap&&(e.textToWrap=e.textToWrap.map((e=>e.replace(/\$\{/g,"\\${"))),e.filter&&e.filter.includes("t")&&(e.textToWrap=e.textToWrap.map((e=>e.replace(c,"").trim()))),n.text=e.textToWrap,n.options&&(e.rangeToReplace.isSingleLine||(n.options["output.inlineBreak"]=1),e.indent&&(n.options["output.indent"]=e.indent),e.baseIndent&&(n.options["output.baseIndent"]=e.baseIndent)));try{o=t.expandAbbreviation(e.abbreviation,n)}catch(e){r.window.showErrorMessage("Failed to expand abbreviation")}return o}function m(e){const t=(0,i.getMappingForIncludedLanguages)(),n=e.language,o=e.parentMode,a=r.workspace.getConfiguration("emmet").excludeLanguages?r.workspace.getConfiguration("emmet").excludeLanguages:[];if(a.includes(n))return;let s=(0,i.getEmmetMode)(t[n]??n,t,a);return s||(s=(0,i.getEmmetMode)(t[o]??o,t,a)),s}t.wrapWithAbbreviation=async function(e){if(!(0,i.validate)(!1))return!1;const t=r.window.activeTextEditor,n=t.document;(e=e||{}).language||(e.language=n.languageId);const o=m(e)||"html",c=(0,a.getRootNode)(n,!0),u=(0,i.getEmmetHelper)(),l=Array.from(t.selections).sort(((e,t)=>e.start.compareTo(t.start))).map((e=>{let t=e;{let{start:e,end:o}=t;const a=n.offsetAt(e),s=n.getText(),u=(0,i.getHtmlFlatNode)(s,c,a,!0);if(u&&(0,i.isOffsetInsideOpenOrCloseTag)(u,a)){e=n.positionAt(u.start);const t=n.positionAt(u.end);o=t.isAfter(o)?t:o}const l=n.offsetAt(o),p=(0,i.getHtmlFlatNode)(s,c,l,!0);if(p&&(0,i.isOffsetInsideOpenOrCloseTag)(p,l)){const t=n.positionAt(p.start);e=t.isBefore(e)?t:e;const r=n.positionAt(p.end);o=r.isAfter(o)?r:o}t=new r.Range(e,o)}if(!t.isSingleLine&&0===t.end.character){const e=t.end.line-1;t=new r.Range(t.start,n.lineAt(e).range.end)}t.isEmpty&&(t=n.lineAt(t.start).range);const o=n.lineAt(t.start);return!o.isEmptyOrWhitespace&&o.firstNonWhitespaceCharacterIndex>t.start.character&&(t=t.with(new r.Position(t.start.line,o.firstNonWhitespaceCharacterIndex))),t})).reduce(((e,t)=>(e.length>0&&t.intersection(e[e.length-1])?e.push(t.union(e.pop())):e.push(t),e)),[]),p=t.selections;t.selections=l.map((e=>new r.Selection(e.start,e.end)));const g=l.map((e=>{let t;const r=n.getText(e),o=n.lineAt(e.start).text.match(/^(\s*)/),i=o?o[1]:"";return t=e.isSingleLine?[r]:r.split("\n"+i).map((e=>e.trimEnd())),t=t.map((e=>e.replace(/(\$\d)/g,"\\$1"))),{previewRange:e,originalRange:e,originalContent:r,textToWrapInPreview:t,baseIndent:i}})),{tabSize:h,insertSpaces:y}=t.options,b=y?" ".repeat(h):"\t";function v(){return t.edit((e=>{for(const t of g)e.replace(t.previewRange,t.originalContent),t.previewRange=t.originalRange}),{undoStopBefore:!1,undoStopAfter:!1})}let x=!1;async function w(e,n){const i=e&&e.trim()&&u.isAbbreviationValid(o,e)?u.extractAbbreviationFromText(e,o):void 0;if(!i)return x&&(x=!1,await v()),!1;const{abbreviation:a,filter:s}=i;if(n){const e=g.map((e=>({syntax:o,abbreviation:a,rangeToReplace:e.originalRange,textToWrap:e.textToWrapInPreview,filter:s,indent:b,baseIndent:e.baseIndent})));return x=!0,function(e){let n=new r.Range(0,0,0,0),o=new r.Range(0,0,0,0),i=0;return t.edit((t=>{for(let a=0;a<g.length;a++){const s=d(e[a])||"";if(!s)break;const c=g[a].previewRange,u=s.replace(/\$\{[\d]*\}/g,"|").replace(/\$\{[\d]*:([^}]*)\}/g,((e,t)=>t)).replace(/\\\$/g,"$");t.replace(c,u);const l=u.split("\n"),p=c.end.line-c.start.line+1,f=l.length-p,m=c.start.line+i;let h=c.start.character;const y=c.end.line+i+f;let b=l[l.length-1].length;a>0&&y===o.end.line?(h=o.end.character+(c.start.character-n.end.character),b+=h):a>0&&m===o.end.line?h=o.end.character+(c.start.character-n.end.character):1===l.length&&(b+=c.start.character),n=g[a].previewRange,o=new r.Range(m,h,y,b),g[a].previewRange=o,i+=f}}),{undoStopBefore:!1,undoStopAfter:!1})}(e)}const c=g.map((e=>({syntax:o,abbreviation:a,rangeToReplace:e.originalRange,textToWrap:e.textToWrapInPreview,filter:s,indent:b})));return x&&(x=!1,await v()),f(t,c,!1)}let k="";const A=s("wrapWithAbbreviationPrompt","Enter Abbreviation"),S=e&&e.abbreviation?e.abbreviation:await r.window.showInputBox({prompt:A,validateInput:function(e){return e!==k&&(k=e,w(e,!0)),""}}),E=await w(S,!1);return E||(t.selections=p),E},t.expandEmmetAbbreviation=function(e){if(!(0,i.validate)()||!r.window.activeTextEditor)return l();if(1===r.window.activeTextEditor.selections.length&&r.window.activeTextEditor.selection.isEmpty){const e=r.window.activeTextEditor.selection.anchor;if(0===e.character)return l();const t=e.translate(0,-1),n=r.window.activeTextEditor.document.getText(new r.Range(t,e));if(" "===n||"\t"===n)return l()}if((e=e||{}).language){if((r.workspace.getConfiguration("emmet").excludeLanguages?r.workspace.getConfiguration("emmet").excludeLanguages:[]).indexOf(r.window.activeTextEditor.document.languageId)>-1)return l()}else e.language=r.window.activeTextEditor.document.languageId;const t=m(e);if(!t)return l();const n=r.window.activeTextEditor;if(!0===r.workspace.getConfiguration("emmet").triggerExpansionOnTab&&n.selections.find((e=>!e.isEmpty)))return l();const o=[];let s,c=!0;const u=(0,i.getEmmetHelper)(),d=n.selections.slice(0);let g;function h(){if(g)return g;const e=!0===r.workspace.getConfiguration("emmet").optimizeStylesheetParsing;return g=1===n.selections.length&&(0,i.isStyleSheet)(n.document.languageId)&&e&&n.document.lineCount>1e3?(0,i.parsePartialStylesheet)(n.document,n.selection.isReversed?n.selection.anchor:n.selection.active):(0,a.getRootNode)(n.document,!0),g}return d.sort(((e,t)=>{const n=e.isReversed?e.anchor:e.active,r=t.isReversed?t.anchor:t.active;return-1*n.compareTo(r)})),d.forEach((e=>{const a=e.isReversed?e.anchor:e.active,[l,f,d]=((e,t,o,a)=>{o=e.validatePosition(o);let s=t,c=e.getText(s);if(!s.isEmpty){const e=u.extractAbbreviationFromText(c,a);return e?[s,e.abbreviation,e.filter]:[null,"",""]}const l=n.document.lineAt(o.line).text.substr(0,o.character);if("html"===a){const e=l.match(/<(\w+)$/);if(e)return c=e[1],s=new r.Range(o.translate(0,-(c.length+1)),o),[s,c,""]}const p=u.extractAbbreviation((0,i.toLSTextDocument)(n.document),o,{lookAhead:!1});if(!p)return[null,"",""];const{abbreviationRange:f,abbreviation:d,filter:m}=p;return[new r.Range(f.start.line,f.start.character,f.end.line,f.end.character),d,m]})(n.document,e,a,t);if(!l)return;if(!u.isAbbreviationValid(t,f))return;if((0,i.isStyleSheet)(t)&&f.endsWith(":"))return;const m=n.document.offsetAt(a);let g=(0,i.getFlatNode)(h(),m,!0),y=!0,b=t;if("html"===n.document.languageId)if((0,i.isStyleAttribute)(g,m))b="css",y=!1;else{const e=(0,i.getEmbeddedCssNodeIfAny)(n.document,g,a);e&&(g=(0,i.getFlatNode)(e,m,!0),b="css")}y&&!p(n.document,h(),g,b,m,l)||(s?c&&s!==f&&(c=!1):s=f,o.push({syntax:b,abbreviation:f,rangeToReplace:l,filter:d}))})),f(n,o,c).then((e=>e?Promise.resolve(void 0):l()))},t.isValidLocationForEmmetAbbreviation=p,t.getSyntaxFromArgs=m},6936:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.balanceIn=t.balanceOut=void 0;const r=n(7549),o=n(9779),i=n(5638);let a=[],s=[];function c(e){if(!(0,o.validate)(!1)||!r.window.activeTextEditor)return;const t=r.window.activeTextEditor,n=t.document,c=(0,i.getRootNode)(n,!0);if(!c)return;const f=e?u:l;let d=t.selections.map((e=>f(n,c,e)));p(s,t.selections)?e?p(t.selections,d)||a.push(t.selections):a.length&&(d=a.pop()):a=e?[t.selections]:[],t.selections=d,s=t.selections}function u(e,t,n){const r=e.offsetAt(n.start),i=(0,o.getHtmlFlatNode)(e.getText(),t,r,!1);if(!i)return n;if(!i.open||!i.close)return(0,o.offsetRangeToSelection)(e,i.start,i.end);let a,s;return i.close.start<=r&&i.close.end>r?(a=(0,o.offsetRangeToSelection)(e,i.close.start,i.open.end),s=(0,o.offsetRangeToSelection)(e,i.close.end,i.open.start)):(a=(0,o.offsetRangeToSelection)(e,i.open.end,i.close.start),s=(0,o.offsetRangeToSelection)(e,i.open.start,i.close.end)),a.contains(n)&&!a.isEqual(n)?a:s.contains(n)&&!s.isEqual(n)?s:n}function l(e,t,n){const r=e.offsetAt(n.start),i=(0,o.getHtmlFlatNode)(e.getText(),t,r,!0);if(!i)return n;const a=e.offsetAt(n.start),s=e.offsetAt(n.end);if(i.open&&i.close){const t=a===i.start&&s===i.end,n=a>i.open.start&&a<i.open.end,r=a>i.close.start&&a<i.close.end;if(t||n||r)return(0,o.offsetRangeToSelection)(e,i.open.end,i.close.start)}if(!i.firstChild)return n;const c=i.firstChild;return a===c.start&&s===c.end&&c.open&&c.close?(0,o.offsetRangeToSelection)(e,c.open.end,c.close.start):(0,o.offsetRangeToSelection)(e,c.start,c.end)}function p(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].isEqual(t[n]))return!1;return!0}t.balanceOut=function(){c(!0)},t.balanceIn=function(){c(!1)}},1991:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentStreamReader=void 0;class n{constructor(e,t,n){this.document=e,this.start=this.pos=t||0,this._sof=n?n[0]:0,this._eof=n?n[1]:e.getText().length}sof(){return this.pos<=this._sof}eof(){return this.pos>=this._eof}limit(e,t){return new n(this.document,e,[e,t])}peek(){return this.eof()?NaN:this.document.getText().charCodeAt(this.pos)}next(){if(this.eof())return NaN;const e=this.document.getText().charCodeAt(this.pos);return this.pos++,this.eof()&&(this.pos=this._eof),e}backUp(e){return this.pos-=e,this.pos<0&&(this.pos=0),this.peek()}current(){return this.substring(this.start,this.pos)}substring(e,t){return this.document.getText().substring(e,t)}error(e){return new Error(`${e} at offset ${this.pos}`)}eat(e){const t=this.peek(),n="function"==typeof e?e(t):t===e;return n&&this.next(),n}eatWhile(e){const t=this.pos;for(;!this.eof()&&this.eat(e););return this.pos!==t}}t.DocumentStreamReader=n},9152:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultCompletionItemProvider=void 0;const r=n(7549),o=n(7155),i=n(9779),a=n(5638);t.DefaultCompletionItemProvider=class{provideCompletionItems(e,t,n,r){const o=this.provideCompletionItemsInternal(e,t,r);if(o)return o.then((e=>{if(!e||!e.items.length)return this.lastCompletionType=void 0,e;const t=e.items[0],n=t.documentation?t.documentation.toString():"";return n.startsWith("<")?this.lastCompletionType="html":n.indexOf(":")>0&&n.endsWith(";")?this.lastCompletionType="css":this.lastCompletionType=void 0,e}));this.lastCompletionType=void 0}provideCompletionItemsInternal(e,t,n){const s=r.workspace.getConfiguration("emmet"),c=s.excludeLanguages?s.excludeLanguages:[];if(c.indexOf(e.languageId)>-1)return;const u=(0,i.getMappingForIncludedLanguages)(),l=!!u[e.languageId];let p=(0,i.getEmmetMode)(l?u[e.languageId]:e.languageId,u,c);if(!p||"never"===s.showExpandedAbbreviation||(l||"jsx"===p)&&"always"!==s.showExpandedAbbreviation)return;let f,d,m=p,g="html"===m||"jsx"===m||"xml"===m;const h=(0,i.toLSTextDocument)(e);t=e.validatePosition(t);const y=new r.Range(t.line,0,t.line,t.character);if(e.getText(y).trimStart().startsWith("//"))return;const b=(0,i.getEmmetHelper)();if("html"===m){if(n.triggerKind===r.CompletionTriggerKind.TriggerForIncompleteCompletions)switch(this.lastCompletionType){case"html":g=!1;break;case"css":g=!1,m="css"}if(g){const n=e.offsetAt(t),r=(0,a.getRootNode)(e,!0),s=(0,i.getHtmlFlatNode)(e.getText(),r,n,!1);if(s)if("script"===s.name){const e=s.attributes.find((e=>"type"===e.name.toString()));if(!e)return;{const t=e.value.toString();if("application/javascript"===t||"text/javascript"===t){if(!(0,o.getSyntaxFromArgs)({language:"javascript"}))return;g=!1}else i.allowedMimeTypesInScriptTag.includes(t)&&(g=!1)}}else if("style"===s.name)m="css",g=!1;else{const e=s.attributes.find((e=>"style"===e.name.toString()));e&&e.value.start<=n&&n<=e.value.end&&(m="css",g=!1)}}}const v=(0,i.isStyleSheet)(m)?{lookAhead:!1,syntax:"stylesheet"}:{lookAhead:!0,syntax:"markup"},x=b.extractAbbreviation(h,t,v);if(!x||!b.isAbbreviationValid(m,x.abbreviation))return;const w=e.offsetAt(t);if((0,i.isStyleSheet)(e.languageId)&&n.triggerKind!==r.CompletionTriggerKind.TriggerForIncompleteCompletions){if(g=!0,f=!0===r.workspace.getConfiguration("emmet").optimizeStylesheetParsing&&e.lineCount>1e3?(0,i.parsePartialStylesheet)(e,t):(0,a.getRootNode)(e,!0),!f)return;d=(0,i.getFlatNode)(f,w,!0)}if(!(0,i.isStyleSheet)(e.languageId)&&(0,i.isStyleSheet)(m)&&n.triggerKind!==r.CompletionTriggerKind.TriggerForIncompleteCompletions){if(g=!0,f=(0,a.getRootNode)(e,!0),!f)return;let n=(0,i.getFlatNode)(f,w,!0),r=(0,i.getEmbeddedCssNodeIfAny)(e,n,t);d=(0,i.getFlatNode)(r,w,!0)}if(g&&!(0,o.isValidLocationForEmmetAbbreviation)(e,f,d,m,w,(k=x.abbreviationRange,new r.Range(k.start.line,k.start.character,k.end.line,k.end.character))))return;var k;let A=Promise.resolve();if(!(0,i.isStyleSheet)(m)&&("javascript"===e.languageId||"javascriptreact"===e.languageId||"typescript"===e.languageId||"typescriptreact"===e.languageId)){let t=x.abbreviation;A=t.startsWith("this.")?Promise.resolve(!0):r.commands.executeCommand("vscode.executeDocumentSymbolProvider",e.uri).then((e=>e&&e.find((e=>t===e.name||t.startsWith(e.name+".")&&!/>|\*|\+/.test(t)))))}return A.then((n=>{if(n)return;const o=(0,i.getEmmetConfiguration)(m),a=b.doComplete((0,i.toLSTextDocument)(e),t,m,o);if(a&&a.items&&1===a.items.length&&"widows: ;"===a.items[0].label)return;let c=[];return a&&a.items&&a.items.forEach((e=>{let t=new r.CompletionItem(e.label);t.documentation=e.documentation,t.detail=e.detail,t.insertText=new r.SnippetString(e.textEdit.newText);let n=e.textEdit.range;t.range=new r.Range(n.start.line,n.start.character,n.end.line,n.end.character),t.filterText=e.filterText,t.sortText=e.sortText,!0===s.showSuggestionsAsSnippets&&(t.kind=r.CompletionItemKind.Snippet),c.push(t)})),new r.CompletionList(c,!0)}))}}},7473:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fetchEditPoint=void 0;const r=n(7549),o=n(9779);function i(e,t,n,o){let i=t.document.lineAt(e),a=i.text;if(e!==n.line&&i.isEmptyOrWhitespace&&a.length)return new r.Selection(e,a.length,e,a.length);e===n.line&&"prev"===o&&(a=a.substr(0,n.character));let s="next"===o?a.indexOf('""',e===n.line?n.character:0):a.lastIndexOf('""'),c="next"===o?a.indexOf("><",e===n.line?n.character:0):a.lastIndexOf("><"),u=-1;return u=s>-1&&c>-1?"next"===o?Math.min(s,c):Math.max(s,c):s>-1?s:c,u>-1?new r.Selection(e,u+1,e,u+1):void 0}t.fetchEditPoint=function(e){if(!(0,o.validate)()||!r.window.activeTextEditor)return;const t=r.window.activeTextEditor;let n=[];t.selections.forEach((r=>{let o="next"===e?function(e,t){for(let n=e.anchor.line;n<t.document.lineCount;n++){let r=i(n,t,e.anchor,"next");if(r)return r}return e}(r,t):function(e,t){for(let n=e.anchor.line;n>=0;n--){let r=i(n,t,e.anchor,"prev");if(r)return r}return e}(r,t);n.push(o)})),t.selections=n,t.revealRange(t.selections[t.selections.length-1])}},5936:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deactivate=t.activateEmmetExtension=void 0;const r=n(7549),o=n(9152),i=n(7155),a=n(8366),s=n(4485),c=n(5882),u=n(6936),l=n(4824),p=n(2984),f=n(8235),d=n(7473),m=n(3118),g=n(1764),h=n(8301),y=n(9779),b=n(5700),v=n(5638);t.activateEmmetExtension=function(e){(0,y.migrateEmmetExtensionsPath)(),k(e),(0,y.updateEmmetExtensionsPath)(),e.subscriptions.push(r.commands.registerCommand("editor.emmet.action.wrapWithAbbreviation",(e=>{(0,i.wrapWithAbbreviation)(e)}))),e.subscriptions.push(r.commands.registerCommand("emmet.expandAbbreviation",(e=>{(0,i.expandEmmetAbbreviation)(e)}))),e.subscriptions.push(r.commands.registerCommand("editor.emmet.action.removeTag",(()=>(0,a.removeTag)()))),e.subscriptions.push(r.commands.registerCommand("editor.emmet.action.updateTag",(e=>e&&"string"==typeof e?(0,s.updateTag)(e):(0,s.updateTag)(void 0)))),e.subscriptions.push(r.commands.registerCommand("editor.emmet.action.matchTag",(()=>{(0,c.matchTag)()}))),e.subscriptions.push(r.commands.registerCommand("editor.emmet.action.balanceOut",(()=>{(0,u.balanceOut)()}))),e.subscriptions.push(r.commands.registerCommand("editor.emmet.action.balanceIn",(()=>{(0,u.balanceIn)()}))),e.subscriptions.push(r.commands.registerCommand("editor.emmet.action.splitJoinTag",(()=>(0,l.splitJoinTag)()))),e.subscriptions.push(r.commands.registerCommand("editor.emmet.action.mergeLines",(()=>{(0,p.mergeLines)()}))),e.subscriptions.push(r.commands.registerCommand("editor.emmet.action.toggleComment",(()=>{(0,f.toggleComment)()}))),e.subscriptions.push(r.commands.registerCommand("editor.emmet.action.nextEditPoint",(()=>{(0,d.fetchEditPoint)("next")}))),e.subscriptions.push(r.commands.registerCommand("editor.emmet.action.prevEditPoint",(()=>{(0,d.fetchEditPoint)("prev")}))),e.subscriptions.push(r.commands.registerCommand("editor.emmet.action.selectNextItem",(()=>{(0,m.fetchSelectItem)("next")}))),e.subscriptions.push(r.commands.registerCommand("editor.emmet.action.selectPrevItem",(()=>{(0,m.fetchSelectItem)("prev")}))),e.subscriptions.push(r.commands.registerCommand("editor.emmet.action.evaluateMathExpression",(()=>{(0,g.evaluateMathExpression)()}))),e.subscriptions.push(r.commands.registerCommand("editor.emmet.action.incrementNumberByOneTenth",(()=>(0,h.incrementDecrement)(.1)))),e.subscriptions.push(r.commands.registerCommand("editor.emmet.action.incrementNumberByOne",(()=>(0,h.incrementDecrement)(1)))),e.subscriptions.push(r.commands.registerCommand("editor.emmet.action.incrementNumberByTen",(()=>(0,h.incrementDecrement)(10)))),e.subscriptions.push(r.commands.registerCommand("editor.emmet.action.decrementNumberByOneTenth",(()=>(0,h.incrementDecrement)(-.1)))),e.subscriptions.push(r.commands.registerCommand("editor.emmet.action.decrementNumberByOne",(()=>(0,h.incrementDecrement)(-1)))),e.subscriptions.push(r.commands.registerCommand("editor.emmet.action.decrementNumberByTen",(()=>(0,h.incrementDecrement)(-10)))),e.subscriptions.push(r.commands.registerCommand("editor.emmet.action.reflectCSSValue",(()=>(0,b.reflectCssValue)()))),e.subscriptions.push(r.commands.registerCommand("workbench.action.showEmmetCommands",(()=>{r.commands.executeCommand("workbench.action.quickOpen",">Emmet: ")}))),e.subscriptions.push(r.workspace.onDidChangeConfiguration((t=>{t.affectsConfiguration("emmet.includeLanguages")&&k(e),t.affectsConfiguration("emmet.extensionsPath")&&(0,y.updateEmmetExtensionsPath)()}))),e.subscriptions.push(r.workspace.onDidSaveTextDocument((e=>{const t=(0,y.getPathBaseName)(e.fileName);t.startsWith("snippets")&&t.endsWith(".json")&&(0,y.updateEmmetExtensionsPath)(!0)}))),e.subscriptions.push(r.workspace.onDidOpenTextDocument((e=>{const t=(0,y.getEmmetMode)(e.languageId,{},[])??"",n=(0,y.getSyntaxes)();(n.markup.includes(t)||n.stylesheet.includes(t))&&(0,v.addFileToParseCache)(e)}))),e.subscriptions.push(r.workspace.onDidCloseTextDocument((e=>{const t=(0,y.getEmmetMode)(e.languageId,{},[])??"",n=(0,y.getSyntaxes)();(n.markup.includes(t)||n.stylesheet.includes(t))&&(0,v.removeFileFromParseCache)(e)})))};const x=new Map,w=new Map;function k(e){let t=new o.DefaultCompletionItemProvider,n=(0,y.getMappingForIncludedLanguages)();Object.keys(n).forEach((o=>{if(x.has(o)&&x.get(o)===n[o])return;if(x.has(o)){const e=w.get(o);e&&e.dispose(),x.delete(o),w.delete(o)}const i=r.languages.registerCompletionItemProvider({language:o,scheme:"*"},t,...y.LANGUAGE_MODES[n[o]]);e.subscriptions.push(i),x.set(o,n[o]),w.set(o,i)})),Object.keys(y.LANGUAGE_MODES).forEach((n=>{if(!x.has(n)){const o=r.languages.registerCompletionItemProvider({language:n,scheme:"*"},t,...y.LANGUAGE_MODES[n]);e.subscriptions.push(o),x.set(n,n),w.set(n,o)}}))}t.deactivate=function(){w.clear(),(0,v.clearParseCache)()}},1764:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.evaluateMathExpression=void 0;const r=n(7549),o=n(2791);t.evaluateMathExpression=function(){if(!r.window.activeTextEditor)return r.window.showInformationMessage("No editor is active"),Promise.resolve(!1);const e=r.window.activeTextEditor;return e.edit((t=>{e.selections.forEach((n=>{const i=n.isReversed?n.active:n.anchor,a=n.isReversed?n.anchor:n.active,s=e.document.getText(new r.Range(i,a));try{if(s){const e=String((0,o.default)(s));t.replace(new r.Range(i,a),e)}else{const i=e.document.getText(new r.Range(new r.Position(n.end.line,0),a)),s=(0,o.extract)(i);if(!s)throw new Error("Invalid extracted indices");const c=String((0,o.default)(i.substr(s[0],s[1]))),u=new r.Range(new r.Position(n.end.line,s[0]),new r.Position(n.end.line,s[1]));t.replace(u,c)}}catch(e){r.window.showErrorMessage("Could not evaluate expression"),console.warn("Math evaluation error",e)}}))}))}},8301:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.locate=t.update=t.incrementDecrement=void 0;const r=n(7549),o=/[0-9]/;function i(e,t){let n,r=(n=e.match(/\.(\d+)$/))?n[1].length:1,o=String((parseFloat(e)+t).toFixed(r)).replace(/\.0+$/,"");return(n=e.match(/^\-?(0\d+)/))&&(o=o.replace(/^(\-?)(\d+)/,((e,t,r)=>t+"0".repeat(Math.max(0,(n?n[1].length:0)-r.length))+r))),/^\-?\./.test(e)&&(o=o.replace(/^(\-?)0+/,"$1")),o}function a(e,t){const n=e.lineAt(t.line).text;let i,a=t.character,c=t.character,u=!1,l=!1;for(;a>0;){if(i=n[--a],"-"===i){l=!0;break}if("."!==i||u){if(!o.test(i)){a++;break}}else u=!0}for("-"!==n[c]||l||c++;c<n.length;)if(i=n[c++],"."===i&&!u&&o.test(n[c]))u=!0;else if(!o.test(i)){c--;break}if(a!==c&&s(n.slice(a,c)))return new r.Range(t.line,a,t.line,c)}function s(e){return!!e&&!isNaN(parseFloat(e))}t.incrementDecrement=function(e){if(!r.window.activeTextEditor)return void r.window.showInformationMessage("No editor is active");const t=r.window.activeTextEditor;return t.edit((n=>{t.selections.forEach((r=>{let o=a(t.document,r.isReversed?r.anchor:r.active);if(!o)return;const c=t.document.getText(o);s(c)&&n.replace(o,i(c,e))}))}))},t.update=i,t.locate=a},5882:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.matchTag=void 0;const r=n(7549),o=n(9779),i=n(5638);t.matchTag=function(){if(!(0,o.validate)(!1)||!r.window.activeTextEditor)return;const e=r.window.activeTextEditor,t=e.document,n=(0,i.getRootNode)(t,!0);if(!n)return;let a=[];e.selections.forEach((e=>{const r=function(e,t,n){const r=e.offsetAt(n),i=(0,o.getHtmlFlatNode)(e.getText(),t,r,!0);if(!i)return;if(!i.open||!i.close||r>i.open.end&&r<i.close.start)return;const a=r<=i.open.end?i.close.start+2:i.start+1;return(0,o.offsetRangeToSelection)(e,a,a)}(t,n,e.start);r&&a.push(r)})),a.length&&(e.selections=a,e.revealRange(e.selections[a.length-1]))}},2984:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeLines=void 0;const r=n(7549),o=n(9779),i=n(5638);t.mergeLines=function(){if(!(0,o.validate)(!1)||!r.window.activeTextEditor)return;const e=r.window.activeTextEditor,t=(0,i.getRootNode)(e.document,!0);return t?e.edit((n=>{Array.from(e.selections).reverse().forEach((i=>{const a=function(e,t,n){let i,a;const s=e.offsetAt(t.start),c=e.offsetAt(t.end);if(t.isEmpty?i=a=(0,o.getFlatNode)(n,s,!0):(i=(0,o.getFlatNode)(n,s,!0),a=(0,o.getFlatNode)(n,c,!0)),!i||!a)return;const u=e.positionAt(i.start),l=u.line,p=u.character,f=e.positionAt(a.end).line;if(l===f)return;const d=(0,o.offsetRangeToVsRange)(e,i.start,a.end);let m=e.lineAt(l).text.substr(p);for(let t=l+1;t<=f;t++)m+=e.lineAt(t).text.trim();return new r.TextEdit(d,m)}(e.document,i,t);a&&n.replace(a.range,a.newText)}))})):void 0}},5638:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clearParseCache=t.removeFileFromParseCache=t.addFileToParseCache=t.getRootNode=void 0;const r=n(7378),o=n(105),i=n(9779),a=new Map;t.getRootNode=function(e,t){const n=e.uri.toString(),s=a.get(n),c=e.version;if(t&&s&&c===s.key)return s.value;const u=((0,i.isStyleSheet)(e.languageId)?o.default:r.default)(e.getText());return t&&a.set(n,{key:c,value:u}),u},t.addFileToParseCache=function(e){const t=e.uri.toString();a.set(t,void 0)},t.removeFileFromParseCache=function(e){const t=e.uri.toString();a.delete(t)},t.clearParseCache=function(){a.clear()}},5700:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reflectCssValue=void 0;const r=n(7549),o=n(9779),i=["-webkit-","-moz-","-ms-","-o-",""];t.reflectCssValue=function(){const e=r.window.activeTextEditor;if(!e)return void r.window.showInformationMessage("No editor is active.");const t=(0,o.getCssPropertyFromDocument)(e,e.selection.active);return t?function(e,t){const n=t.parent;let r="";for(const e of i)if(t.name.startsWith(e)){r=e;break}const a=t.name.substr(r.length),s=t.value;return e.edit((t=>{i.forEach((i=>{if(i===r)return;const c=(0,o.getCssPropertyFromRule)(n,i+a);if(c){const n=(0,o.offsetRangeToVsRange)(e.document,c.valueToken.start,c.valueToken.end);t.replace(n,s)}}))}))}(e,t):void 0}},8366:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removeTag=void 0;const r=n(7549),o=n(5638),i=n(9779);function a(e,t){if(t.start.line===t.end.line){const n=e.lineAt(t.start).text,r=e.getText(t);if(n.trim()===r)return!0}return!1}t.removeTag=function(){if(!(0,i.validate)(!1)||!r.window.activeTextEditor)return;const e=r.window.activeTextEditor,t=e.document,n=(0,o.getRootNode)(t,!0);if(!n)return;let s=Array.from(e.selections).reverse().reduce(((t,o)=>t.concat(function(e,t,n){const o=e.offsetAt(n.start),s=(0,i.getHtmlFlatNode)(e.getText(),t,o,!0);if(!s)return[];let c,u;if(s.open&&(c=(0,i.offsetRangeToVsRange)(e,s.open.start,s.open.end)),s.close&&(u=(0,i.offsetRangeToVsRange)(e,s.close.start,s.close.end)),c&&u){const t=new r.Range(c.end.line,c.end.character,u.start.line,u.start.character),n=new r.Range(c.start.line,c.start.character,u.end.line,u.end.character);if(""===e.getText(t).trim()&&"pre"!==s.name)return[n]}let l=[];if(c&&(l.push(c),u)){const t=function(e,t,n){const r=t.start.line,o=n.start.line,i=e.lineAt(r).firstNonWhitespaceCharacterIndex,a=e.lineAt(o).firstNonWhitespaceCharacterIndex;let s;for(let t=r+1;t<o;t++){const n=e.lineAt(t);if(!n.isEmptyOrWhitespace){const e=n.firstNonWhitespaceCharacterIndex;s=s?Math.min(s,e):e}}let c=0;return s&&(c=s<i||s<a?0:Math.min(s-i,s-a)),c}(e,c,u);let n,o;for(let i=c.start.line+1;i<u.start.line;i++)e.lineAt(i).isEmptyOrWhitespace||(l.push(new r.Range(i,0,i,t)),void 0===n&&(n=i),o=i);a(e,u)&&o?l.push(new r.Range(o,e.lineAt(o).range.end.character,u.end.line,u.end.character)):l.push(u),a(e,c)&&n&&(l[1]=new r.Range(c.start.line,c.start.character,n,e.lineAt(n).firstNonWhitespaceCharacterIndex),l.shift())}return l}(e.document,n,o))),[]);return e.edit((e=>{s.forEach((t=>{e.delete(t)}))}))}},3118:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fetchSelectItem=void 0;const r=n(7549),o=n(9779),i=n(2211),a=n(8264),s=n(5638);t.fetchSelectItem=function(e){if(!(0,o.validate)()||!r.window.activeTextEditor)return;const t=r.window.activeTextEditor,n=t.document,c=(0,s.getRootNode)(n,!0);if(!c)return;let u=[];t.selections.forEach((r=>{const s=r.isReversed?r.active:r.anchor,l=r.isReversed?r.anchor:r.active;let p;p=(0,o.isStyleSheet)(t.document.languageId)?"next"===e?(0,a.nextItemStylesheet)(n,s,l,c):(0,a.prevItemStylesheet)(n,s,l,c):"next"===e?(0,i.nextItemHTML)(n,s,l,c):(0,i.prevItemHTML)(n,s,l,c),u.push(p||r)})),t.selections=u,t.revealRange(t.selections[t.selections.length-1])}},2211:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.prevItemHTML=t.nextItemHTML=void 0;const r=n(9779);function o(e,t){if(t&&t.open){const n=t.open.start+1,o=n+t.name.length;return(0,r.offsetRangeToSelection)(e,n,o)}}t.nextItemHTML=function(e,t,n,i){const a=e.offsetAt(n);let s,c=(0,r.getHtmlFlatNode)(e.getText(),i,a,!1);if(c){if("comment"!==c.type){if(c.open&&a<=c.open.start+c.name.length)return o(e,c);if(c.open&&a<c.open.end){const n=e.offsetAt(t),o=function(e,t,n,o){if(o.attributes&&0!==o.attributes.length&&"comment"!==o.type)for(const i of o.attributes){if(n<i.start)return(0,r.offsetRangeToSelection)(e,i.start,i.end);if(!i.value||i.value.start===i.value.end)continue;if(t===i.start&&n===i.end||n<i.value.start)return(0,r.offsetRangeToSelection)(e,i.value.start,i.value.end);if(-1===i.value.toString().indexOf(" "))continue;let o;if(t===i.value.start&&n===i.value.end&&(o=-1),void 0===o&&n<i.end&&(o=e.positionAt(n).character-e.positionAt(i.value.start).character-1),void 0!==o){const[t,n]=(0,r.findNextWord)(i.value.toString(),o);if(void 0===t||void 0===n)return;if(t>=0&&n>=0){const o=i.value.start+t,a=i.value.start+n;return(0,r.offsetRangeToSelection)(e,o,a)}}}}(e,n,a,c);if(o)return o}for(s=c.firstChild;s&&(a>=s.end||"comment"===s.type);)s=s.nextSibling}for(;!s&&c;)c.nextSibling?"comment"!==c.nextSibling.type?s=c.nextSibling:c=c.nextSibling:c=c.parent;return s&&o(e,s)}},t.prevItemHTML=function(e,t,n,i){const a=e.offsetAt(t);let s,c=(0,r.getHtmlFlatNode)(e.getText(),i,a,!1);if(!c)return;const u=e.offsetAt(n);if(c.open&&"comment"!==c.type&&a-1>c.open.start)if(a<c.open.end||!c.firstChild||u<=c.firstChild.start)s=c;else{let e;for(s=c.firstChild;s.nextSibling&&a>=s.nextSibling.end;)s&&"comment"!==s.type&&(e=s),s=s.nextSibling;s=(0,r.getDeepestFlatNode)(s&&"comment"!==s.type?s:e)}for(;!s&&c;)c.previousSibling?"comment"!==c.previousSibling.type?s=(0,r.getDeepestFlatNode)(c.previousSibling):c=c.previousSibling:s=c.parent;if(!s)return;return function(e,t,n,o){if(o.attributes&&0!==o.attributes.length&&"comment"!==o.type)for(let i=o.attributes.length-1;i>=0;i--){const a=o.attributes[i];if(t<=a.start)continue;if(!a.value||a.value.start===a.value.end||t<a.value.start)return(0,r.offsetRangeToSelection)(e,a.start,a.end);if(t===a.value.start)return n>=a.value.end?(0,r.offsetRangeToSelection)(e,a.start,a.end):(0,r.offsetRangeToSelection)(e,a.value.start,a.value.end);const s=e.positionAt(t).character,c=e.positionAt(a.value.start).character,u=t>a.value.end?a.value.toString().length:s-c,[l,p]=(0,r.findPrevWord)(a.value.toString(),u);if(void 0===l||void 0===p)return;if(l>=0&&p>=0){const t=a.value.start+l,n=a.value.start+p;return(0,r.offsetRangeToSelection)(e,t,n)}}}(e,a,u,s)||o(e,s)}},8264:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.prevItemStylesheet=t.nextItemStylesheet=void 0;const r=n(7549),o=n(9779);function i(e,t){if(!t)return;const n="rule"===t.type?t.selectorToken:t;return(0,o.offsetRangeToSelection)(e,n.start,n.end)}function a(e,t,n,i,a,s){if(!t||"property"!==t.type)return;const c=t;let u=c.valueToken.stream.substring(c.valueToken.start,c.valueToken.end);if(a=a||"prev"===s&&n===c.valueToken.start&&i<c.valueToken.end)return(0,o.offsetRangeToSelection)(e,c.valueToken.start,c.valueToken.end);let l=-1;if("prev"===s){if(n===c.valueToken.start)return;const t=e.positionAt(n).character,r=e.positionAt(c.valueToken.start).character;l=n>c.valueToken.end?u.length:t-r}else if("next"===s){if(i===c.valueToken.end&&(n>c.valueToken.start||!u.includes(" ")))return;const t=e.positionAt(i).character,r=e.positionAt(c.valueToken.start).character;l=i===c.valueToken.end?-1:t-r-1}let[p,f]="prev"===s?(0,o.findPrevWord)(u,l):(0,o.findNextWord)(u,l);if(!p&&!f)return;const d=e.positionAt(c.valueToken.start),m=d.translate(0,p),g=d.translate(0,f);return new r.Selection(m,g)}t.nextItemStylesheet=function(e,t,n,r){const s=e.offsetAt(t),c=e.offsetAt(n);let u=(0,o.getFlatNode)(r,c,!0);if(u||(u=r),!u)return;if("property"===u.type&&s===u.start&&c===u.end)return a(e,u,s,c,!0,"next");if("property"===u.type&&s>=u.valueToken.start&&c<=u.valueToken.end){let t=a(e,u,s,c,!1,"next");if(t)return t}if("rule"===u.type&&c<u.selectorToken.end||"property"===u.type&&c<u.valueToken.end)return i(e,u);let l=u.firstChild;for(;l&&c>=l.end;)l=l.nextSibling;for(;!l&&u;)l=u.nextSibling,u=u.parent;return l?i(e,l):void 0},t.prevItemStylesheet=function(e,t,n,r){const s=e.offsetAt(t),c=e.offsetAt(n);let u=(0,o.getFlatNode)(r,s,!1);if(u||(u=r),!u)return;if("property"===u.type&&s===u.valueToken.start&&c===u.valueToken.end)return i(e,u);if("property"===u.type&&s>=u.valueToken.start&&c<=u.valueToken.end){let t=a(e,u,s,c,!1,"prev");if(t)return t}if("property"===u.type||!u.firstChild||"rule"===u.type&&s<=u.firstChild.start)return i(e,u);let l=u.firstChild;for(;l.nextSibling&&s>=l.nextSibling.end;)l=l.nextSibling;return l=(0,o.getDeepestFlatNode)(l),a(e,l,s,c,!1,"prev")}},4824:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.splitJoinTag=void 0;const r=n(7549),o=n(9779),i=n(5638);t.splitJoinTag=function(){if(!(0,o.validate)(!1)||!r.window.activeTextEditor)return;const e=r.window.activeTextEditor,t=e.document,n=(0,i.getRootNode)(e.document,!0);return n?e.edit((i=>{Array.from(e.selections).reverse().forEach((e=>{const a=t.getText(),s=t.offsetAt(e.start),c=(0,o.getHtmlFlatNode)(a,n,s,!0);if(c){const e=function(e,t){let n,i;if(t.open&&t.close){const r=t.open.end-1,a=t.end;n=(0,o.offsetRangeToVsRange)(e,r,a),i="/>";const s=(0,o.getEmmetMode)(e.languageId,{},[])??"",c=(0,o.getEmmetConfiguration)(s);s&&c.syntaxProfiles[s]&&("xhtml"===c.syntaxProfiles[s].selfClosingStyle||"xhtml"===c.syntaxProfiles[s].self_closing_tag)&&(i=" "+i)}else{const r=e.getText().substring(t.start,t.end).match(/(\s*\/)?>$/),a=t.end,s=r?a-r[0].length:a;n=(0,o.offsetRangeToVsRange)(e,s,a),i=`></${t.name}>`}return new r.TextEdit(n,i)}(t,c);i.replace(e.range,e.newText)}}))})):void 0}},8235:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toggleComment=void 0;const r=n(7549),o=n(9779),i=n(105),a=n(5638);let s,c,u,l;function p(e,t){let n=[];return"comment"===e.type?(n.push(new r.TextEdit((0,o.offsetRangeToVsRange)(t,e.start,e.start+u.length),"")),n.push(new r.TextEdit((0,o.offsetRangeToVsRange)(t,e.end-l.length,e.end),"")),n):(e.children.forEach((e=>{n=n.concat(p(e,t))})),n)}function f(e,t,n){const i=t.isReversed?t.active:t.anchor,a=t.isReversed?t.anchor:t.active;let u=e.offsetAt(i),l=e.offsetAt(a);const p=(0,o.getFlatNode)(n,u,!0),f=(0,o.getFlatNode)(n,l,!0);t.isEmpty?p&&(u=p.start,l=p.end,t=(0,o.offsetRangeToSelection)(e,u,l)):(u=function(e,t,n){for(const e of n.comments)if(e.start<=t&&t<=e.end)return t;if(!e)return t;if("property"===e.type)return e.start;const r=e;if(t<r.contentStartToken.end||!r.firstChild)return r.start;if(t<r.firstChild.start)return t;let o=r.firstChild;for(;o.nextSibling&&t>o.end;)o=o.nextSibling;return o.start}(p,u,n),l=function(e,t,n){for(const e of n.comments)if(e.start<=t&&t<=e.end)return t;if(!e)return t;if("property"===e.type)return e.end;const r=e;if(t===r.contentEndToken.end||!r.firstChild)return r.end;if(t>r.children[r.children.length-1].end)return t;let o=r.children[r.children.length-1];for(;o.previousSibling&&t<o.start;)o=o.previousSibling;return o.end}(f,l,n),t=(0,o.offsetRangeToSelection)(e,u,l));let d=[],m=[];return n.comments.forEach((n=>{const i=(0,o.offsetRangeToVsRange)(e,n.start,n.end);t.intersection(i)&&(d.push(i),m.push(new r.TextEdit((0,o.offsetRangeToVsRange)(e,n.start,n.start+s.length),"")),m.push(new r.TextEdit((0,o.offsetRangeToVsRange)(e,n.end-c.length,n.end),"")))})),m.length>0?m:[new r.TextEdit(new r.Range(t.start,t.start),s),new r.TextEdit(new r.Range(t.end,t.end),c)]}t.toggleComment=function(){if(!(0,o.validate)()||!r.window.activeTextEditor)return;r.workspace.getConfiguration("editor.comments").get("insertSpace")?(s="/* ",c=" */",u="\x3c!-- ",l=" --\x3e"):(s="/*",c="*/",u="\x3c!--",l="--\x3e");const e=r.window.activeTextEditor,t=(0,a.getRootNode)(e.document,!0);return t?e.edit((n=>{let a=[];Array.from(e.selections).reverse().forEach((n=>{const s=(0,o.isStyleSheet)(e.document.languageId)?f(e.document,n,t):function(e,t,n){const a=t.isReversed?t.active:t.anchor,s=t.isReversed?t.anchor:t.active,c=e.offsetAt(a),d=e.offsetAt(s),m=e.getText(),g=(0,o.getHtmlFlatNode)(m,n,c,!0),h=(0,o.getHtmlFlatNode)(m,n,d,!0);if(!g||!h)return[];if((0,o.sameNodes)(g,h)&&"style"===g.name&&g.open&&g.close&&g.open.end<c&&g.close.start>d){const n=" ".repeat(g.open.end)+m.substring(g.open.end,g.close.start),r=(0,i.default)(n);return f(e,t,r)}let y=(0,o.getNodesInBetween)(g,h),b=[];return y.forEach((t=>{b=b.concat(p(t,e))})),"comment"===g.type||(b.push(new r.TextEdit((0,o.offsetRangeToVsRange)(e,y[0].start,y[0].start),u)),b.push(new r.TextEdit((0,o.offsetRangeToVsRange)(e,y[y.length-1].end,y[y.length-1].end),l))),b}(e.document,n,t);s.length>0&&a.push(s)})),a.sort(((e,t)=>{let n=e[0].range.start.line-t[0].range.start.line;return 0===n?e[0].range.start.character-t[0].range.start.character:n}));let s=new r.Position(0,0);for(const e of a)e[0].range.end.isAfterOrEqual(s)&&e.forEach((e=>{n.replace(e.range,e.newText),s=e.range.end}))})):void 0}},4485:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.updateTag=void 0;const r=n(7549),o=n(9779),i=n(5638);t.updateTag=async function(e){if(!(0,o.validate)(!1)||!r.window.activeTextEditor)return;const t=r.window.activeTextEditor,n=t.document,a=(0,i.getRootNode)(n,!0);if(!a)return;const s=Array.from(t.selections).reverse().reduce(((e,t)=>e.concat(function(e,t,n){const i=e.getText(),a=e.offsetAt(t.start),s=(0,o.getHtmlFlatNode)(i,n,a,!0);return s?function(e,t){let n=[];if(e.open){const o=t.positionAt(e.open.start);n.push({name:e.name,range:new r.Range(o.translate(0,1),o.translate(0,1).translate(0,e.name.length))})}if(e.close){const o=t.positionAt(e.close.start),i=t.positionAt(e.close.end);n.push({name:e.name,range:new r.Range(o.translate(0,2),i.translate(0,-1))})}return n}(s,e):[]}(n,t,a))),[]);if(!s.length)return;const c=s[0].name,u=s.every((e=>e.name===c));return!(void 0===e&&!(e=await r.window.showInputBox({prompt:"Enter Tag",value:u?c:void 0})))&&t.edit((t=>{s.forEach((n=>{t.replace(n.range,e)}))}))}},9779:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSyntaxes=t.getPathBaseName=t.toLSTextDocument=t.isNumber=t.isStyleAttribute=t.getEmbeddedCssNodeIfAny=t.getCssPropertyFromDocument=t.getCssPropertyFromRule=t.iterateCSSToken=t.getEmmetConfiguration=t.sameNodes=t.getNodesInBetween=t.findPrevWord=t.findNextWord=t.getDeepestFlatNode=t.offsetRangeToVsRange=t.offsetRangeToSelection=t.isOffsetInsideOpenOrCloseTag=t.setupCdataNodeSubtree=t.setupScriptNodeSubtree=t.getHtmlFlatNode=t.allowedMimeTypesInScriptTag=t.getFlatNode=t.parsePartialStylesheet=t.getEmmetMode=t.getMappingForIncludedLanguages=t.validate=t.isStyleSheet=t.LANGUAGE_MODES=t.migrateEmmetExtensionsPath=t.updateEmmetExtensionsPath=t.getEmmetHelper=t.setHomeDir=void 0;const r=n(7549),o=n(7378),i=n(105),a=n(1991),s=n(6813),c=n(5638);let u,l,p;function f(){return u||(u=n(6001)),u}function d(e){return["css","scss","sass","less","stylus"].includes(e)}t.setHomeDir=function(e){p=e},t.getEmmetHelper=f,t.updateEmmetExtensionsPath=function(e=!1){const t=f();let n=r.workspace.getConfiguration("emmet").get("extensionsPath");if(n||(n=[]),e||l!==n){l=n;const e=r.workspace.workspaceFolders?.length?r.workspace.workspaceFolders.map((e=>e.uri)):void 0,o=r.workspace.fs;t.updateExtensionsPath(n,o,e,p).catch((e=>{Array.isArray(n)&&n.length&&r.window.showErrorMessage(e.message)}))}},t.migrateEmmetExtensionsPath=function(){let e=r.workspace.getConfiguration().inspect("emmet.extensionsPath");"string"==typeof e?.globalValue?r.workspace.getConfiguration().update("emmet.extensionsPath",[e.globalValue],!0):null===e?.globalValue&&r.workspace.getConfiguration().update("emmet.extensionsPath",[],!0),"string"==typeof e?.workspaceValue?r.workspace.getConfiguration().update("emmet.extensionsPath",[e.workspaceValue],!1):null===e?.workspaceValue&&r.workspace.getConfiguration().update("emmet.extensionsPath",[],!1),"string"==typeof e?.workspaceFolderValue?r.workspace.getConfiguration().update("emmet.extensionsPath",[e.workspaceFolderValue]):null===e?.workspaceFolderValue&&r.workspace.getConfiguration().update("emmet.extensionsPath",[])},t.LANGUAGE_MODES={html:["!",".","}",":","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],jade:["!",".","}",":","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],slim:["!",".","}",":","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],haml:["!",".","}",":","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],xml:[".","}","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],xsl:["!",".","}","*","$","/","]",">","0","1","2","3","4","5","6","7","8","9"],css:[":","!","-","0","1","2","3","4","5","6","7","8","9"],scss:[":","!","-","0","1","2","3","4","5","6","7","8","9"],sass:[":","!","0","1","2","3","4","5","6","7","8","9"],less:[":","!","-","0","1","2","3","4","5","6","7","8","9"],stylus:[":","!","0","1","2","3","4","5","6","7","8","9"],javascriptreact:["!",".","}","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],typescriptreact:["!",".","}","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"]},t.isStyleSheet=d,t.validate=function(e=!0){let t=r.window.activeTextEditor;return t?!(!e&&d(t.document.languageId)):(r.window.showInformationMessage("No editor is active"),!1)},t.getMappingForIncludedLanguages=function(){const e={},n=r.workspace.getConfiguration("emmet").get("includeLanguages"),o=Object.assign({},{handlebars:"html",php:"html"},n??{});return Object.keys(o).forEach((n=>{"string"==typeof o[n]&&t.LANGUAGE_MODES[o[n]]&&(e[n]=o[n])})),e},t.getEmmetMode=function(e,t,n){if(!e||n.includes(e))return;"jsx-tags"===e&&(e="javascriptreact"),t[e]&&(e=t[e]),/\b(typescriptreact|javascriptreact|jsx-tags)\b/.test(e)?e="jsx":"sass-indented"===e?e="sass":"jade"!==e&&"pug"!==e||(e="pug");const r={markup:["html","xml","xsl","jsx","js","pug","slim","haml"],stylesheet:["css","sass","scss","less","sss","stylus"]};return r.markup.includes(e)||r.stylesheet.includes(e)?e:void 0};const m=47;function g(e,t,n){if(e)return o(e.children);function r(e){if(!e)return;const r=e.start,i=e.end;if(r<t&&i>t||n&&r<=t&&i>=t)return o(e.children)??e;if("close"in e){const t=e;if(t.open&&!t.close)return o(t.children)}}function o(e){for(let t=0;t<e.length;t++){const n=r(e[t]);if(n)return n}}}function h(e,n){if("script"===n.name&&n.attributes&&n.attributes.some((e=>"type"===e.name.toString()&&t.allowedMimeTypesInScriptTag.includes(e.value.toString())))&&n.open){const t=" ".repeat(n.open.end),r=n.close?n.close.start:n.end,i=t+e.substring(n.open.end,r);return(0,o.default)(i).children.forEach((e=>{n.children.push(e),e.parent=n})),i}return""}function y(e,t){const n=t.start+"<![CDATA[".length,r=t.end-"]]>".length,i=" ".repeat(n)+e.substring(n,r);return(0,o.default)(i).children.forEach((e=>{t.children.push(e),e.parent=t})),i}function b(e,t){return!e&&!t||!(!e||!t)&&e.start===t.start&&e.end===t.end}t.parsePartialStylesheet=function(e,t){const n="css"===e.languageId,o=e.offsetAt(t);let s=0,c=e.getText().length;const u=o-5e3,l=u>0?u:s,p=new a.DocumentStreamReader(e,o);function f(){const t=e.positionAt(p.pos).line;if(!n&&y!==t){y=t;const n=e.lineAt(y).text.indexOf("//");n>-1&&(p.pos=e.offsetAt(new r.Position(y,n)))}}function d(){p.peek()===m&&(42===p.backUp(1)?p.pos=function(t){let n=e.getText().substring(0,t).lastIndexOf("/*");if(-1!==n)return n}(p.pos)??s:p.next())}function g(){if(p.eat(m))if(p.eat(m)&&!n){const t=e.positionAt(p.pos).line;p.pos=e.offsetAt(new r.Position(t+1,0))}else p.eat(42)&&(p.pos=function(t){let n=e.getText().substring(t).indexOf("*/");if(-1!==n)return n+=2+t,n}(p.pos)??c)}for(;!p.eof()&&!p.eat(125);)p.peek()===m?g():p.next();p.eof()||(c=p.pos),p.pos=o;let h=1,y=t.line,b=!1;for(;!b&&h>0&&!p.sof();){switch(f(),p.backUp(1)){case 123:h--;break;case 125:n?(p.next(),s=p.pos,b=!0):h++;break;case m:d()}(t.line-e.positionAt(p.pos).line>100||p.pos<=l)&&(b=!0)}y=e.positionAt(p.pos).line,h=0;let v=!1;for(;!b&&!p.sof()&&!v&&h>=0;){f();const e=p.backUp(1);if(!/\s/.test(String.fromCharCode(e))){switch(e){case m:d();break;case 125:h++;break;case 123:h--;break;default:h||(v=!0)}!p.sof()&&v&&(s=p.pos)}}try{const t=" ".repeat(s)+e.getText().substring(s,c);return(0,i.default)(t)}catch(e){return}},t.getFlatNode=g,t.allowedMimeTypesInScriptTag=["text/html","text/plain","text/x-template","text/template","text/ng-template"],t.getHtmlFlatNode=function e(t,n,r,o){let i=g(n,r,o);if(i){if("script"===i.name&&0===i.children.length){const n=h(t,i);n&&(i=e(n,i,r,o)??i)}else"cdata"===i.type&&(i=e(y(t,i),i,r,o)??i);return i}},t.setupScriptNodeSubtree=h,t.setupCdataNodeSubtree=y,t.isOffsetInsideOpenOrCloseTag=function(e,t){const n=e;return!!(n.open&&t>n.open.start&&t<n.open.end||n.close&&t>n.close.start&&t<n.close.end)},t.offsetRangeToSelection=function(e,t,n){const o=e.positionAt(t),i=e.positionAt(n);return new r.Selection(o,i)},t.offsetRangeToVsRange=function(e,t,n){const o=e.positionAt(t),i=e.positionAt(n);return new r.Range(o,i)},t.getDeepestFlatNode=function e(t){if(!t||!t.children||0===t.children.length||!t.children.find((e=>"comment"!==e.type)))return t;for(let n=t.children.length-1;n>=0;n--)if("comment"!==t.children[n].type)return e(t.children[n])},t.findNextWord=function(e,t){let n,r,o=-1===t,i=!1,a=!1;for(;t<e.length-1;)if(t++,o){if(!o||i||" "!==e[t])if(i){if(" "===e[t]){r=t,a=!0;break}}else n=t,i=!0}else" "===e[t]&&(o=!0);return i&&!a&&(r=e.length),[n,r]},t.findPrevWord=function(e,t){let n,r,o=t===e.length,i=!1,a=!1;for(;t>-1;)if(t--,o){if(!o||a||" "!==e[t])if(a){if(" "===e[t]){n=t+1,i=!0;break}}else r=t+1,a=!0}else" "===e[t]&&(o=!0);return a&&!i&&(n=0),[n,r]},t.getNodesInBetween=function(e,t){if(b(e,t))return[e];if(!b(e.parent,t.parent)){if(t.start<e.start)return[t];if(t.start<e.end)return[e];for(;e.parent&&e.parent.end<t.start;)e=e.parent;for(;t.parent&&t.parent.start>e.start;)t=t.parent}const n=[];let r=e;const o=t.end;for(;r&&o>r.start;)n.push(r),r=r.nextSibling;return n},t.sameNodes=b,t.getEmmetConfiguration=function(e){const t=r.workspace.getConfiguration("emmet"),n=Object.assign({},t.syntaxProfiles||{}),o=Object.assign({},t.preferences||{});return"jsx"!==e&&"xml"!==e&&"xsl"!==e||(n[e]=n[e]||{},"object"!=typeof n[e]||n[e].hasOwnProperty("self_closing_tag")||n[e].hasOwnProperty("selfClosingStyle")||(n[e]={...n[e],selfClosingStyle:"jsx"===e?"xhtml":"xml"})),{preferences:o,showExpandedAbbreviation:t.showExpandedAbbreviation,showAbbreviationSuggestions:t.showAbbreviationSuggestions,syntaxProfiles:n,variables:t.variables,excludeLanguages:t.excludeLanguages,showSuggestionsAsSnippets:t.showSuggestionsAsSnippets}},t.iterateCSSToken=function e(t,n){for(let r=0,o=t.size;r<o;r++)if(!1===n(t.item(r))||!1===e(t.item(r),n))return!1;return!0},t.getCssPropertyFromRule=function(e,t){return e.children.find((e=>"property"===e.type&&e.name===t))},t.getCssPropertyFromDocument=function(e,t){const n=e.document,r=(0,c.getRootNode)(n,!0),o=n.offsetAt(t),a=g(r,o,!0);if(d(e.document.languageId))return a&&"property"===a.type?a:null;const s=a;if(s&&"style"===s.name&&s.open&&s.close&&s.open.end<o&&s.close.start>o){const e=" ".repeat(s.start)+n.getText().substring(s.start,s.end),t=g((0,i.default)(e),o,!0);return t&&"property"===t.type?t:null}return null},t.getEmbeddedCssNodeIfAny=function(e,t,n){if(!t)return;const r=t;if(r&&r.open&&r.close){const t=e.offsetAt(n);if(r.open.end<t&&t<=r.close.start&&"style"===r.name){const t=" ".repeat(r.open.end)+e.getText().substring(r.open.end,r.close.start);return(0,i.default)(t)}}},t.isStyleAttribute=function(e,t){if(!e)return!1;const n=e,r=(n.attributes||[]).findIndex((e=>"style"===e.name.toString()));if(-1===r)return!1;const o=n.attributes[r];return t>=o.value.start&&t<=o.value.end},t.isNumber=function(e){return"number"==typeof e},t.toLSTextDocument=function(e){return s.TextDocument.create(e.uri.toString(),e.languageId,e.version,e.getText())},t.getPathBaseName=function(e){const t=e.split("/").pop();return(t?t.split("\\").pop():"")??""},t.getSyntaxes=function(){return{markup:["html","xml","xsl","jsx","js","pug","slim","haml"],stylesheet:["css","sass","scss","less","sss","stylus"]}}},82:e=>{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},4895:(e,t,n)=>{"use strict";var r=n(2635),o=n(3138),i=n(2094),a=n(198);function s(e){return e.call.bind(e)}var c="undefined"!=typeof BigInt,u="undefined"!=typeof Symbol,l=s(Object.prototype.toString),p=s(Number.prototype.valueOf),f=s(String.prototype.valueOf),d=s(Boolean.prototype.valueOf);if(c)var m=s(BigInt.prototype.valueOf);if(u)var g=s(Symbol.prototype.valueOf);function h(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function y(e){return"[object Map]"===l(e)}function b(e){return"[object Set]"===l(e)}function v(e){return"[object WeakMap]"===l(e)}function x(e){return"[object WeakSet]"===l(e)}function w(e){return"[object ArrayBuffer]"===l(e)}function k(e){return"undefined"!=typeof ArrayBuffer&&(w.working?w(e):e instanceof ArrayBuffer)}function A(e){return"[object DataView]"===l(e)}function S(e){return"undefined"!=typeof DataView&&(A.working?A(e):e instanceof DataView)}t.isArgumentsObject=r,t.isGeneratorFunction=o,t.isTypedArray=a,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):a(e)||S(e)},t.isUint8Array=function(e){return"Uint8Array"===i(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===i(e)},t.isUint16Array=function(e){return"Uint16Array"===i(e)},t.isUint32Array=function(e){return"Uint32Array"===i(e)},t.isInt8Array=function(e){return"Int8Array"===i(e)},t.isInt16Array=function(e){return"Int16Array"===i(e)},t.isInt32Array=function(e){return"Int32Array"===i(e)},t.isFloat32Array=function(e){return"Float32Array"===i(e)},t.isFloat64Array=function(e){return"Float64Array"===i(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===i(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===i(e)},y.working="undefined"!=typeof Map&&y(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(y.working?y(e):e instanceof Map)},b.working="undefined"!=typeof Set&&b(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(b.working?b(e):e instanceof Set)},v.working="undefined"!=typeof WeakMap&&v(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(v.working?v(e):e instanceof WeakMap)},x.working="undefined"!=typeof WeakSet&&x(new WeakSet),t.isWeakSet=function(e){return x(e)},w.working="undefined"!=typeof ArrayBuffer&&w(new ArrayBuffer),t.isArrayBuffer=k,A.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&A(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=S;var E="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function T(e){return"[object SharedArrayBuffer]"===l(e)}function C(e){return void 0!==E&&(void 0===T.working&&(T.working=T(new E)),T.working?T(e):e instanceof E)}function P(e){return h(e,p)}function j(e){return h(e,f)}function O(e){return h(e,d)}function I(e){return c&&h(e,m)}function _(e){return u&&h(e,g)}t.isSharedArrayBuffer=C,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===l(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===l(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===l(e)},t.isGeneratorObject=function(e){return"[object Generator]"===l(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===l(e)},t.isNumberObject=P,t.isStringObject=j,t.isBooleanObject=O,t.isBigIntObject=I,t.isSymbolObject=_,t.isBoxedPrimitive=function(e){return P(e)||j(e)||O(e)||I(e)||_(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(k(e)||C(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})}))},3335:(e,t,n)=>{var r=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++)n[t[r]]=Object.getOwnPropertyDescriptor(e,t[r]);return n},o=/%[sdj%]/g;t.format=function(e){if(!b(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(c(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,i=r.length,a=String(e).replace(o,(function(e){if("%%"===e)return"%";if(n>=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),s=r[n];n<i;s=r[++n])h(s)||!w(s)?a+=" "+s:a+=" "+c(s);return a},t.deprecate=function(e,n){if("undefined"!=typeof process&&!0===process.noDeprecation)return e;if("undefined"==typeof process)return function(){return t.deprecate(e,n).apply(this,arguments)};var r=!1;return function(){if(!r){if(process.throwDeprecation)throw new Error(n);process.traceDeprecation?console.trace(n):console.error(n),r=!0}return e.apply(this,arguments)}};var i={},a=/^$/;if({}.NODE_DEBUG){var s={}.NODE_DEBUG;s=s.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),a=new RegExp("^"+s+"$","i")}function c(e,n){var r={seen:[],stylize:l};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),g(n)?r.showHidden=n:n&&t._extend(r,n),v(r.showHidden)&&(r.showHidden=!1),v(r.depth)&&(r.depth=2),v(r.colors)&&(r.colors=!1),v(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=u),p(r,e,r.depth)}function u(e,t){var n=c.styles[t];return n?"["+c.colors[n][0]+"m"+e+"["+c.colors[n][1]+"m":e}function l(e,t){return e}function p(e,n,r){if(e.customInspect&&n&&S(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(r,e);return b(o)||(o=p(e,o,r)),o}var i=function(e,t){if(v(t))return e.stylize("undefined","undefined");if(b(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return y(t)?e.stylize(""+t,"number"):g(t)?e.stylize(""+t,"boolean"):h(t)?e.stylize("null","null"):void 0}(e,n);if(i)return i;var a=Object.keys(n),s=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),A(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return f(n);if(0===a.length){if(S(n)){var c=n.name?": "+n.name:"";return e.stylize("[Function"+c+"]","special")}if(x(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(k(n))return e.stylize(Date.prototype.toString.call(n),"date");if(A(n))return f(n)}var u,l="",w=!1,E=["{","}"];return m(n)&&(w=!0,E=["[","]"]),S(n)&&(l=" [Function"+(n.name?": "+n.name:"")+"]"),x(n)&&(l=" "+RegExp.prototype.toString.call(n)),k(n)&&(l=" "+Date.prototype.toUTCString.call(n)),A(n)&&(l=" "+f(n)),0!==a.length||w&&0!=n.length?r<0?x(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),u=w?function(e,t,n,r,o){for(var i=[],a=0,s=t.length;a<s;++a)j(t,String(a))?i.push(d(e,t,n,r,String(a),!0)):i.push("");return o.forEach((function(o){o.match(/^\d+$/)||i.push(d(e,t,n,r,o,!0))})),i}(e,n,r,s,a):a.map((function(t){return d(e,n,r,s,t,w)})),e.seen.pop(),function(e,t,n){return e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n  ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(u,l,E)):E[0]+l+E[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,n,r,o,i){var a,s,c;if((c=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?s=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(s=e.stylize("[Setter]","special")),j(r,o)||(a="["+o+"]"),s||(e.seen.indexOf(c.value)<0?(s=h(n)?p(e,c.value,null):p(e,c.value,n-1)).indexOf("\n")>-1&&(s=i?s.split("\n").map((function(e){return"  "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return"   "+e})).join("\n")):s=e.stylize("[Circular]","special")),v(a)){if(i&&o.match(/^\d+$/))return s;(a=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function m(e){return Array.isArray(e)}function g(e){return"boolean"==typeof e}function h(e){return null===e}function y(e){return"number"==typeof e}function b(e){return"string"==typeof e}function v(e){return void 0===e}function x(e){return w(e)&&"[object RegExp]"===E(e)}function w(e){return"object"==typeof e&&null!==e}function k(e){return w(e)&&"[object Date]"===E(e)}function A(e){return w(e)&&("[object Error]"===E(e)||e instanceof Error)}function S(e){return"function"==typeof e}function E(e){return Object.prototype.toString.call(e)}function T(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!i[e])if(a.test(e)){var n=process.pid;i[e]=function(){var r=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,r)}}else i[e]=function(){};return i[e]},t.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=n(4895),t.isArray=m,t.isBoolean=g,t.isNull=h,t.isNullOrUndefined=function(e){return null==e},t.isNumber=y,t.isString=b,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=v,t.isRegExp=x,t.types.isRegExp=x,t.isObject=w,t.isDate=k,t.types.isDate=k,t.isError=A,t.types.isNativeError=A,t.isFunction=S,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(82);var C=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function P(){var e=new Date,t=[T(e.getHours()),T(e.getMinutes()),T(e.getSeconds())].join(":");return[e.getDate(),C[e.getMonth()],t].join(" ")}function j(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",P(),t.format.apply(t,arguments))},t.inherits=n(1285),t._extend=function(e,t){if(!t||!w(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var O="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function I(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(O&&e[O]){var t;if("function"!=typeof(t=e[O]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,O,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise((function(e,r){t=e,n=r})),o=[],i=0;i<arguments.length;i++)o.push(arguments[i]);o.push((function(e,r){e?n(e):t(r)}));try{e.apply(this,o)}catch(e){n(e)}return r}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),O&&Object.defineProperty(t,O,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,r(e))},t.promisify.custom=O,t.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n]);var r=t.pop();if("function"!=typeof r)throw new TypeError("The last argument must be of type Function");var o=this,i=function(){return r.apply(o,arguments)};e.apply(this,t).then((function(e){process.nextTick(i.bind(null,null,e))}),(function(e){process.nextTick(I.bind(null,e,i))}))}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,r(e)),t}},2094:(e,t,n)=>{"use strict";var r=n(6388),o=n(711),i=n(2680),a=i("Object.prototype.toString"),s=n(2636)()&&"symbol"==typeof Symbol.toStringTag,c=o(),u=i("String.prototype.slice"),l={},p=n(4486),f=Object.getPrototypeOf;s&&p&&f&&r(c,(function(e){if("function"==typeof n.g[e]){var t=new n.g[e];if(!(Symbol.toStringTag in t))throw new EvalError("this engine has support for Symbol.toStringTag, but "+e+" does not have the property! Please report this.");var r=f(t),o=p(r,Symbol.toStringTag);if(!o){var i=f(r);o=p(i,Symbol.toStringTag)}l[e]=o.get}}));var d=n(198);e.exports=function(e){return!!d(e)&&(s?function(e){var t=!1;return r(l,(function(n,r){if(!t)try{var o=n.call(e);o===r&&(t=o)}catch(e){}})),t}(e):u(a(e),8,-1))}},7549:e=>{"use strict";e.exports=require("vscode")}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),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 r={};(()=>{"use strict";var e=r;Object.defineProperty(e,"__esModule",{value:!0}),e.activate=void 0;const t=n(5936);e.activate=function(e){(0,t.activateEmmetExtension)(e)}})();var o=exports;for(var i in r)o[i]=r[i];r.__esModule&&Object.defineProperty(o,"__esModule",{value:!0})})();
//# sourceMappingURL=https://ticino.blob.core.windows.net/sourcemaps/b7730c807c1e0fdacdcc91a854bb963715b2a89b/extensions/emmet/dist/browser/emmetBrowserMain.js.map