tmagic-editor/playground/assets/emmet-monaco.esm-legacy-4--LVo7k.js
2026-03-12 09:37:48 +00:00

3 lines
94 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

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

System.register([],function(e,t){"use strict";return{execute:function(){function t(e){return e>47&&e<58}function n(e,t,n){return n=n||90,(e&=-33)>=(t=t||65)&&e<=n}function o(e){return t(e)||r(e)}function r(e){return 95===e||n(e)}function i(e){return function(e){return 32===e||9===e||160===e}(e)||10===e||13===e}function s(e){return 39===e||34===e}e({emmetCSS:function(e=window.monaco,t=["css"],n){return xr(e,t,"css",n)},emmetHTML:function(e=window.monaco,t=["html"],n){return xr(e,t,"html",n)},emmetJSX:function(e=window.monaco,t=["javascript"],n){return xr(e,t,"jsx",n)},expandAbbreviation:function(e,t){let n;const o=uo(t);return n="stylesheet"===t.type?"string"==typeof e?Uo(e,o):Un(e,o):"string"==typeof e?Uo(e,o):$n(e,o),sr(ar(n))},registerCustomSnippets:function(e,t){const n=fr(e);if(n!==e&&lr[n]&&(t=Object.assign({},lr[n],t)),cr(e)){const n=Mo.get(e),o=Object.assign([],n,Object.keys(t));Mo.set(e,o)}const o=lr[e],r=Object.assign({},o,t);lr[e]=r}});class a{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 a(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 l(`${e} at ${t+1}`,t,this.string)}}class l extends Error{constructor(e,t,n){super(e),this.pos=t,this.string=n}}function u(e){return e.tokens[e.pos]}function c(e){return e.tokens[e.pos++]}function p(e,t=e.start,n=e.pos){return e.tokens.slice(t,n)}function f(e){return e.pos<e.size}function m(e,t){const n=u(e);return!(!n||!t(n)||(e.pos++,0))}function d(e,t,n=u(e)){n&&null!=n.start&&(t+=` at ${n.start}`);const o=new Error(t);return o.pos=n&&n.start,o}function b(e,t){const n={type:"TokenGroup",elements:[]};let o,r=n;const i=[];for(;f(e)&&(o=h(e,t)||g(e,t));)if(r.elements.push(o),m(e,W))i.push(r),r=o;else{if(m(e,V))continue;if(m(e,U))do{i.length&&(r=i.pop())}while(m(e,U))}return n}function g(e,t){if(m(e,D)){const n=b(e,t);return C(c(e),"group",!1)&&(n.repeat=function(e){return R(u(e))?e.tokens[e.pos++]:void 0}(e)),n}}function h(e,t){let n;const o={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&&m(e,L))for(;f(e);){const{pos:t}=e;if(!m(e,B)||!m(e,L)){e.pos=t;break}}for(;f(e)&&m(e,O););return e.pos!==n&&(e.start=n,!0)}(e,t)&&(o.name=p(e));f(e);)if(e.start=e.pos,o.repeat||F(o)||!m(e,R))if(!o.value&&$(e))o.value=z(e);else{if(!(n=x(e,"id",t)||x(e,"class",t)||y(e))){!F(o)&&m(e,_)&&(o.selfClose=!0,!o.repeat&&m(e,R)&&(o.repeat=e.tokens[e.pos-1]));break}o.attributes?o.attributes=o.attributes.concat(n):o.attributes=Array.isArray(n)?n.slice():[n]}else o.repeat=e.tokens[e.pos-1];return F(o)?void 0:o}function y(e){if(m(e,E)){const t=[];let n;for(;f(e);)if(n=k(e))t.push(n);else{if(m(e,T))break;if(!m(e,q))throw d(e,`Unexpected "${u(e).type}" token`)}return t}}function x(e,t,n){if(S(u(e),t)){e.pos++;let r=1;for(;S(u(e),t);)e.pos++,r++;const i={name:[(o=t,{type:"Literal",value:o})]};return r>1&&(i.multiple=!0),n.jsx&&$(e)?(i.value=z(e),i.expression=!0):i.value=w(e)?p(e):void 0,i}var o}function k(e){if(v(e))return{value:p(e)};if(w(e,!0)){const t=p(e);let n;return m(e,A)&&(v(e)||w(e,!0))&&(n=p(e)),{name:t,value:n}}}function v(e){const t=e.pos,n=u(e);if(j(n)){for(e.pos++;f(e);)if(j(c(e),n.single))return e.start=t,!0;throw d(e,"Unclosed quote",n)}return!1}function w(e,t){const n=e.pos,o={attribute:0,expression:0,group:0};for(;f(e);){const n=u(e);if(o.expression)C(n,"expression")&&(o[n.context]+=n.open?1:-1);else{if(j(n)||S(n)||q(n)||R(n))break;if(C(n)){if(!t)break;if(n.open)o[n.context]++;else{if(!o[n.context])break;o[n.context]--}}}e.pos++}return n!==e.pos&&(e.start=n,!0)}function $(e){const t=e.pos;if(m(e,N)){let n=0;for(;f(e);){const t=c(e);if(C(t,"expression"))if(t.open)n++;else{if(!n)break;n--}}return e.start=t,!0}return!1}function z(e){let t=e.start,n=e.pos;return C(e.tokens[t],"expression",!0)&&t++,C(e.tokens[n-1],"expression",!1)&&n--,p(e,t,n)}function C(e,t,n){return Boolean(e&&"Bracket"===e.type&&(!t||e.context===t)&&(null==n||e.open===n))}function S(e,t){return Boolean(e&&"Operator"===e.type&&(!t||e.operator===t))}function j(e,t){return Boolean(e&&"Quote"===e.type&&(null==t||e.single===t))}function q(e){return Boolean(e&&"WhiteSpace"===e.type)}function A(e){return S(e,"equal")}function R(e){return Boolean(e&&"Repeater"===e.type)}function L(e){if(function(e){return"Literal"===e.type}(e)){const t=e.value.charCodeAt(0);return t>=65&&t<=90}return!1}function O(e){return"Literal"===e.type||"RepeaterNumber"===e.type||"RepeaterPlaceholder"===e.type}function B(e){return S(e,"class")}function E(e){return C(e,"attribute",!0)}function T(e){return C(e,"attribute",!1)}function N(e){return C(e,"expression",!0)}function D(e){return C(e,"group",!0)}function F(e){return!e.name&&!e.value&&!e.attributes}function W(e){return S(e,"child")}function V(e){return S(e,"sibling")}function U(e){return S(e,"climb")}function _(e){return S(e,"close")}var P;function I(e){return!!e.eat(P.Escape)&&(e.start=e.pos,e.eof()||e.pos++,!0)}function Q(e,o){return function(e,o){const r=e.pos;if((o.expression||o.attribute)&&e.eat(P.Dollar)&&e.eat(P.CurlyBracketOpen)){let o;e.start=e.pos;let i="";if(e.eatWhile(t)?(o=Number(e.current()),i=e.eat(P.Colon)?M(e):""):n(e.peek())&&(i=M(e)),e.eat(P.CurlyBracketClose))return{type:"Field",index:o,name:i,start:r,end:e.pos};throw e.error("Expecting }")}e.pos=r}(e,o)||function(e){const t=e.pos;if(e.eat(P.Dollar)&&e.eat(P.Hash))return{type:"RepeaterPlaceholder",value:void 0,start:t,end:e.pos};e.pos=t}(e)||function(e){const n=e.pos;if(e.eatWhile(P.Dollar)){const o=e.pos-n;let r=!1,i=1,s=0;if(e.eat(P.At)){for(;e.eat(P.Climb);)s++;r=e.eat(P.Dash),e.start=e.pos,e.eatWhile(t)&&(i=Number(e.current()))}return e.start=n,{type:"RepeaterNumber",size:o,reverse:r,base:i,parent:s,start:n,end:e.pos}}}(e)||function(e){const n=e.pos;if(e.eat(P.Asterisk)){e.start=e.pos;let o=1,r=!1;return e.eatWhile(t)?o=Number(e.current()):r=!0,{type:"Repeater",count:o,value:0,implicit:r,start:n,end:e.pos}}}(e)||function(e){const t=e.pos;if(e.eatWhile(i))return{type:"WhiteSpace",start:t,end:e.pos,value:e.substring(t,e.pos)}}(e)||function(e,n){const o=e.pos,r=n.expression;let i="";for(;!e.eof();){if(I(e)){i+=e.current();continue}const o=e.peek();if(o===P.Slash&&!n.quote&&!n.expression&&!n.attribute){const n=e.string.charCodeAt(e.pos-1),o=e.string.charCodeAt(e.pos+1);if(t(n)&&t(o)){i+=e.string[e.pos++];continue}}if(o===n.quote||o===P.Dollar||H(o,n))break;if(r){if(o===P.CurlyBracketOpen)n.expression++;else if(o===P.CurlyBracketClose){if(!(n.expression>r))break;n.expression--}}else if(!n.quote){if(!n.attribute&&!J(o))break;if(Z(o,n)||X(o,n)||s(o)||G(o))break}i+=e.string[e.pos++]}if(o!==e.pos)return e.start=o,{type:"Literal",value:i,start:o,end:e.pos}}(e,o)||function(e){const t=Y(e.peek());if(t)return{type:"Operator",operator:t,start:e.pos++,end:e.pos}}(e)||function(e){const t=e.peek();if(s(t))return{type:"Quote",single:t===P.SingleQuote,start:e.pos++,end:e.pos}}(e)||function(e){const t=e.peek(),n=G(t);if(n)return{type:"Bracket",open:K(t),context:n,start:e.pos++,end:e.pos}}(e)}function M(e){const t=[];for(e.start=e.pos;!e.eof();)if(e.eat(P.CurlyBracketOpen))t.push(e.pos);else if(e.eat(P.CurlyBracketClose)){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 H(e,t){const n=Y(e);return!(!n||t.quote||t.expression||t.attribute&&"equal"!==n)}function Z(e,t){return i(e)&&!t.expression}function X(e,t){return e===P.Asterisk&&!t.attribute&&!t.expression}function G(e){return e===P.RoundBracketOpen||e===P.RoundBracketClose?"group":e===P.SquareBracketOpen||e===P.SquareBracketClose?"attribute":e===P.CurlyBracketOpen||e===P.CurlyBracketClose?"expression":void 0}function Y(e){return(e===P.Child?"child":e===P.Sibling&&"sibling")||e===P.Climb&&"climb"||e===P.Dot&&"class"||e===P.Hash&&"id"||e===P.Slash&&"close"||e===P.Equals&&"equal"||void 0}function K(e){return e===P.CurlyBracketOpen||e===P.SquareBracketOpen||e===P.RoundBracketOpen}function J(e){return o(e)||function(e){return 196===e||214==e||220===e||228===e||246===e||252===e}(e)||e===P.Dash||e===P.Colon||e===P.Excl}!function(e){e[e.CurlyBracketOpen=123]="CurlyBracketOpen",e[e.CurlyBracketClose=125]="CurlyBracketClose",e[e.Escape=92]="Escape",e[e.Equals=61]="Equals",e[e.SquareBracketOpen=91]="SquareBracketOpen",e[e.SquareBracketClose=93]="SquareBracketClose",e[e.Asterisk=42]="Asterisk",e[e.Hash=35]="Hash",e[e.Dollar=36]="Dollar",e[e.Dash=45]="Dash",e[e.Dot=46]="Dot",e[e.Slash=47]="Slash",e[e.Colon=58]="Colon",e[e.Excl=33]="Excl",e[e.At=64]="At",e[e.Underscore=95]="Underscore",e[e.RoundBracketOpen=40]="RoundBracketOpen",e[e.RoundBracketClose=41]="RoundBracketClose",e[e.Sibling=43]="Sibling",e[e.Child=62]="Child",e[e.Climb=94]="Climb",e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote"}(P||(P={}));const ee={child:">",class:".",climb:"^",id:"#",equal:"=",close:"/",sibling:"+"},te={Literal:e=>e.value,Quote:e=>e.single?"'":'"',Bracket:e=>"attribute"===e.context?e.open?"[":"]":"expression"===e.context?e.open?"{":"}":e.open?"(":"}",Operator:e=>ee[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 o=t.repeaters.length-1;o>=0;o--)if(t.repeaters[o].implicit){n=t.repeaters[o];break}return t.inserted=!0,t.getText(n&&n.value)},RepeaterNumber(e,t){let n=1;const o=t.repeaters.length-1,r=t.repeaters[o];if(r&&(n=e.reverse?e.base+r.count-r.value-1:e.base+r.value,e.parent)){const i=Math.max(0,o-e.parent);if(i!==o){const e=t.repeaters[i];n+=r.count*e.value}}let i=String(n);for(;i.length<e.size;)i="0"+i;return i},WhiteSpace:e=>e.value};function ne(e,t){if(!te[e.type])throw new Error(`Unknown token ${e.type}`);return te[e.type](e,t)}const oe=/^((https?:|ftp:|file:)?\/\/|(www|ftp)\.)[^ ]*$/,re=/^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,5}$/;function ie(e,t={}){let n,o=!1;t.text&&(n=Array.isArray(t.text)?t.text.filter(e=>e.trim()):t.text);const r={type:"Abbreviation",children:le(e,{inserted:!1,repeaters:[],text:t.text,cleanText:n,repeatGuard:t.maxRepeat||Number.POSITIVE_INFINITY,getText(e){var r;let i;if(o=!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!==(r=t.text)&&void 0!==r?r:"";return i},getVariable(e){const n=t.variables&&t.variables[e];return null!=n?n:e}})};if(null!=t.text&&!o){const e=be(de(r.children));if(e){const n=Array.isArray(t.text)?t.text.join("\n"):t.text;ge(e,n),"a"===e.name&&t.href&&function(e,t){var n;let o="";oe.test(t)?(o=t,/\w+:/.test(o)||o.startsWith("//")||(o=`http://${o}`)):re.test(t)&&(o=`mailto:${t}`);const r=null===(n=e.attributes)||void 0===n?void 0:n.find(e=>"href"===e.name);r?r.value||(r.value=[o]):(e.attributes||(e.attributes=[]),e.attributes.push({name:"href",value:[o],valueType:"doubleQuote"}))}(e,n)}}return r}function se(e,t){let n=[];if(e.repeat){const o=e.repeat,r=Object.assign({},o);let i;r.count=r.implicit&&Array.isArray(t.text)?t.cleanText.length:r.count||1,t.repeaters.push(r);for(let s=0;s<r.count;s++){if(r.value=s,e.repeat=r,i=fe(e)?le(e,t):ae(e,t),r.implicit&&!t.inserted){const e=de(i),n=e&&be(e);n&&ge(n,t.getText(r.value))}if(n=n.concat(i),--t.repeatGuard<=0)break}t.repeaters.pop(),e.repeat=o,r.implicit&&(t.inserted=!0)}else n=n.concat(fe(e)?le(e,t):ae(e,t));return n}function ae(e,t){let n=[];const o={type:"AbbreviationNode",name:e.name&&ce(e.name,t),value:e.value&&pe(e.value,t),attributes:void 0,children:n,repeat:e.repeat&&Object.assign({},e.repeat),selfClosing:e.selfClose};let r=[o];for(const i of e.elements)n=n.concat(se(i,t));if(e.attributes){o.attributes=[];for(const n of e.attributes)o.attributes.push(ue(n,t))}return o.name||o.attributes||!o.value||o.value.some(me)?o.children=n:r=r.concat(n),r}function le(e,t){let n=[];for(const o of e.elements)n=n.concat(se(o,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 ue(e,t){let n,o=!1,r=!1,i=e.expression?"expression":"raw";const s=e.name&&ce(e.name,t);if(s&&"!"===s[0]&&(o=!0),s&&"."===s[s.length-1]&&(r=!0),e.value){const o=e.value.slice();if(j(o[0])){const e=o.shift();o.length&&de(o).type===e.type&&o.pop(),i=e.single?"singleQuote":"doubleQuote"}else C(o[0],"expression",!0)&&(i="expression",o.shift(),C(de(o),"expression",!1)&&o.pop());n=pe(o,t)}return{name:r||o?s.slice(o?1:0,r?-1:void 0):s,value:n,boolean:r,implied:o,valueType:i,multiple:e.multiple}}function ce(e,t){let n="";for(let o=0;o<e.length;o++)n+=ne(e[o],t);return n}function pe(e,t){const n=[];let o="";for(let r,i=0;i<e.length;i++)r=e[i],me(r)?(o&&(n.push(o),o=""),n.push(r)):o+=ne(r,t);return o&&n.push(o),n}function fe(e){return"TokenGroup"===e.type}function me(e){return"object"==typeof e&&"Field"===e.type&&null!=e.index}function de(e){return e[e.length-1]}function be(e){return e.children.length?be(de(e.children)):e}function ge(e,t){e.value?"string"==typeof de(e.value)?e.value[e.value.length-1]+=t:e.value.push(t):e.value=[t]}function he(e,t){try{return ie(function(e,t={}){const n={tokens:o=e,start:0,pos:0,size:o.length};var o;const r=b(n,t);if(f(n))throw d(n,"Unexpected character");return r}("string"==typeof e?function(e){const t=new a(e),n=[],o={group:0,attribute:0,expression:0,quote:0};let r,i=0;for(;!t.eof();){if(i=t.peek(),r=Q(t,o),!r)throw t.error("Unexpected character");n.push(r),"Quote"===r.type?o.quote=i===o.quote?0:i:"Bracket"===r.type&&(o[r.context]+=r.open?1:-1)}return n}(e):e,t),t)}catch(n){throw n instanceof l&&"string"==typeof e&&(n.message+=`\n${e}\n${"-".repeat(n.pos)}^`),n}}var ye,xe;function ke(e,o){return function(e){const o=e.pos;if(e.eat(xe.Dollar)&&e.eat(xe.CurlyBracketOpen)){let r;e.start=e.pos;let i="";if(e.eatWhile(t)?(r=Number(e.current()),i=e.eat(xe.Colon)?ve(e):""):n(e.peek())&&(i=ve(e)),e.eat(xe.CurlyBracketClose))return{type:"Field",index:r,name:i,start:o,end:e.pos};throw e.error("Expecting }")}e.pos=o}(e)||function(e){const t=e.pos;if(e.eat(xe.Dash)&&e.eat(xe.Dash))return e.start=t,e.eatWhile(je),{type:"CustomProperty",value:e.current(),start:t,end:e.pos};e.pos=t}(e)||function(e){const n=e.pos;if(function(e){const n=e.pos;e.eat(xe.Dash);const o=e.pos,r=e.eatWhile(t),i=e.pos;if(e.eat(xe.Dot)){const n=e.eatWhile(t);r||n||(e.pos=i)}return e.pos===o&&(e.pos=n),e.pos!==n}(e)){e.start=n;const t=e.current();return e.start=e.pos,e.eat(xe.Percent)||e.eatWhile(r),{type:"NumberValue",value:Number(t),rawValue:t,unit:e.current(),start:n,end:e.pos}}}(e)||function(e){const t=e.pos;if(e.eat(xe.Hash)){const n=e.pos;let o="",r="";if(e.eatWhile(Se)?(o=e.substring(n,e.pos),r=$e(e)):e.eat(xe.Transparent)?(o="0",r=$e(e)||"0"):r=$e(e),o||r||e.eof()){const{r:n,g:i,b:s,a:a}=function(e,t){let n="0",o="0",r="0",i=Number(null!=t&&""!==t?t:1);if("t"===e)i=0;else switch(e.length){case 0:break;case 1:n=o=r=e+e;break;case 2:n=o=r=e;break;case 3:n=e[0]+e[0],o=e[1]+e[1],r=e[2]+e[2];break;default:n=(e+=e).slice(0,2),o=e.slice(2,4),r=e.slice(4,6)}return{r:parseInt(n,16),g:parseInt(o,16),b:parseInt(r,16),a:i}}(o,r);return{type:"ColorValue",r:n,g:i,b:s,a:a,raw:e.substring(t+1,e.pos),start:t,end:e.pos}}return we(e,t)}e.pos=t}(e)||function(e){const t=e.peek(),n=e.pos;let o=!1;if(s(t)){for(e.pos++;!e.eof();){if(e.eat(t)){o=!0;break}e.pos++}return e.start=n,{type:"StringValue",value:e.substring(n+1,e.pos-(o?1:0)),quote:t===xe.SingleQuote?"single":"double",start:n,end:e.pos}}}(e)||function(e){const t=e.peek();if(function(e){return e===xe.RoundBracketOpen||e===xe.RoundBracketClose}(t))return{type:"Bracket",open:t===xe.RoundBracketOpen,start:e.pos++,end:e.pos}}(e)||ze(e)||function(e){const t=e.pos;if(e.eatWhile(i))return{type:"WhiteSpace",start:t,end:e.pos}}(e)||function(e,t){const n=e.pos;if(e.eat(Ce)?e.eatWhile(n?je:qe):e.eat(r)?e.eatWhile(t?qe:je):(e.eat(xe.Dot),e.eatWhile(qe)),n!==e.pos)return e.start=n,we(e,e.start=n)}(e,o)}function ve(e){const t=[];for(e.start=e.pos;!e.eof();)if(e.eat(xe.CurlyBracketOpen))t.push(e.pos);else if(e.eat(xe.CurlyBracketClose)){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 we(e,t=e.start,n=e.pos){return{type:"Literal",value:e.substring(t,n),start:t,end:n}}function $e(e){const n=e.pos;return e.eat(xe.Dot)?(e.start=n,e.eatWhile(t)?e.current():"1"):""}function ze(e){const t=(n=e.peek())===xe.Sibling&&ye.Sibling||n===xe.Excl&&ye.Important||n===xe.Comma&&ye.ArgumentDelimiter||n===xe.Colon&&ye.PropertyDelimiter||n===xe.Dash&&ye.ValueDelimiter||void 0;var n;if(t)return{type:"Operator",operator:t,start:e.pos++,end:e.pos}}function Ce(e){return e===xe.At||e===xe.Dollar}function Se(e){return t(e)||n(e,65,70)}function je(e){return o(e)||e===xe.Dash}function qe(e){return r(e)||e===xe.Percent||e===xe.Slash}function Ae(e){return"ColorValue"===e.type||"NumberValue"===e.type&&!e.unit}function Re(e,t){let n=0,o=0;for(;t.length;){const e=Le(t);if("Literal"!==e.type&&"NumberValue"!==e.type)break;n=e.start,o||(o=e.end),t.pop()}n!==o&&t.push(we(e,n,o))}function Le(e){return e[e.length-1]}function Oe(e){return e.tokens[e.pos]}function Be(e){return e.pos<e.size}function Ee(e,t){return!!t(Oe(e))&&(e.pos++,!0)}function Te(e,t,n=Oe(e)){n&&null!=n.start&&(t+=` at ${n.start}`);const o=new Error(t);return o.pos=n&&n.start,o}function Ne(e,t){let n,o,r=!1;const i=[],s=Oe(e),a=!!t.value;for(a||!We(s)||function(e){const t=e.tokens[e.pos],n=e.tokens[e.pos+1];return t&&n&&We(t)&&"Bracket"===n.type}(e)||(e.pos++,n=s.value,Ee(e,Ge)),a&&Ee(e,Pe);Be(e);)if(Ee(e,Ze))r=!0;else if(o=De(e,a))i.push(o);else if(!Ee(e,He))break;if(n||i.length||r)return{name:n,value:i,important:r}}function De(e,t){const n=[];let o,r;for(;Be(e);)if(o=Oe(e),Xe(o))e.pos++,We(o)&&(r=Fe(e))?n.push({type:"FunctionCall",name:o.value,arguments:r}):n.push(o);else{if(!(Ge(o)||t&&Pe(o)))break;e.pos++}return n.length?{type:"CSSValue",value:n}:void 0}function Fe(e){const t=e.pos;if(Ee(e,Ue)){const n=[];let o;for(;Be(e)&&!Ee(e,_e);)if(o=De(e,!0))n.push(o);else if(!Ee(e,Pe)&&!Ee(e,Me))throw Te(e,"Unexpected token");return e.start=t,n}}function We(e){return e&&"Literal"===e.type}function Ve(e,t){return e&&"Bracket"===e.type&&(null==t||e.open===t)}function Ue(e){return Ve(e,!0)}function _e(e){return Ve(e,!1)}function Pe(e){return e&&"WhiteSpace"===e.type}function Ie(e,t){return e&&"Operator"===e.type&&(!t||e.operator===t)}function Qe(e){return Ie(e,ye.Sibling)}function Me(e){return Ie(e,ye.ArgumentDelimiter)}function He(e){return Me(e)}function Ze(e){return Ie(e,ye.Important)}function Xe(e){return"StringValue"===e.type||"ColorValue"===e.type||"NumberValue"===e.type||"Literal"===e.type||"Field"===e.type||"CustomProperty"===e.type}function Ge(e){return Ie(e,ye.PropertyDelimiter)||Ie(e,ye.ValueDelimiter)}function Ye(e,t){try{const n="string"==typeof e?function(e,t){let n,o=0;const r=new a(e),i=[];for(;!r.eof();){if(n=ke(r,0===o&&!t),!n)throw r.error("Unexpected character");if("Bracket"===n.type&&(!o&&n.open&&Re(r,i),o+=n.open?1:-1,o<0))throw r.error("Unexpected bracket",n.start);i.push(n),Ae(n)&&(n=ze(r))&&i.push(n)}return i}(e,t&&t.value):e;return function(e,t={}){const n=function(e){return{tokens:e,start:0,pos:0,size:e.length}}(e),o=[];let r;for(;Be(n);)if(r=Ne(n,t))o.push(r);else if(!Ee(n,Qe))throw Te(n,"Unexpected token");return o}(n,t)}catch(n){throw n instanceof l&&"string"==typeof e&&(n.message+=`\n${e}\n${"-".repeat(n.pos)}^`),n}}function Ke(e,t,n){if(e&&t){e.length&&n&&et(e,n);for(const n of t)et(e,n);return e}const o=e||t;return o&&o.slice()}function Je(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 et(e,t){const n=e.length-1;"string"==typeof e[n]&&"string"==typeof t?e[n]+=t:e.push(t)}function tt(e,t){for(let n=0;n<e.children.length;n++){const o=e.children[n];if(t(o))return o;const r=tt(o,t);if(r)return r}}function nt(e){let t;for(;e.children.length;)t=e,e=e.children[e.children.length-1];return{parent:t,node:e}}function ot(e){return"AbbreviationNode"===e.type}function rt(e,t,n){let o=[];for(const r of e.children){const e=t(r);if(e){o=o.concat(e.children);const n=nt(e);ot(n.node)&&(n.node.children=n.node.children.concat(rt(r,t)))}else o.push(r),r.children=rt(r,t)}return e.children=o}function it(e,t){e.selfClosing&&(t.selfClosing=!0),null!=e.value&&(t.value=e.value),e.repeat&&(t.repeat=e.repeat)}!function(e){e.Sibling="+",e.Important="!",e.ArgumentDelimiter=",",e.ValueDelimiter="-",e.PropertyDelimiter=":"}(ye||(ye={})),function(e){e[e.Hash=35]="Hash",e[e.Dollar=36]="Dollar",e[e.Dash=45]="Dash",e[e.Dot=46]="Dot",e[e.Colon=58]="Colon",e[e.Comma=44]="Comma",e[e.Excl=33]="Excl",e[e.At=64]="At",e[e.Percent=37]="Percent",e[e.Underscore=95]="Underscore",e[e.RoundBracketOpen=40]="RoundBracketOpen",e[e.RoundBracketClose=41]="RoundBracketClose",e[e.CurlyBracketOpen=123]="CurlyBracketOpen",e[e.CurlyBracketClose=125]="CurlyBracketClose",e[e.Sibling=43]="Sibling",e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote",e[e.Transparent=116]="Transparent",e[e.Slash=47]="Slash"}(xe||(xe={}));const st="{",at="}";function lt(e,t=0){return{options:e,value:"",level:t,offset:0,line:0,column:0}}function ut(e,t){ht(e,(0,e.options["output.text"])(t,e.offset,e.line,e.column))}function ct(e,t){const n=function(e){return e.split(/\r\n|\r|\n/g)}(t);for(let o=0,r=n.length-1;o<=r;o++)ut(e,n[o]),o!==r&&pt(e,!0)}function pt(e,t){const n=e.options["output.baseIndent"];ut(e,e.options["output.newline"]+n),e.line++,e.column=n.length,t&&function(e,t=e.level){const n=e.options["output.indent"];ut(e,n.repeat(Math.max(t,0)))}(e,!0===t?e.level:t)}function ft(e,t,n){ht(e,(0,e.options["output.field"])(t,n,e.offset,e.line,e.column))}function mt(e,t){return yt(e,t.options["output.attributeCase"])}function dt(e,t,n){return"expression"===e.valueType?n?st:at:"single"===t.options["output.attributeQuotes"]?"'":'"'}function bt(e,t){return e.boolean||t.options["output.booleanAttributes"].includes((e.name||"").toLowerCase())}function gt(e,t){return"string"==typeof e?t.options.inlineElements.includes(e.toLowerCase()):e.name?gt(e.name,t):Boolean(e.value&&!e.attributes)}function ht(e,t){e.value+=t,e.offset+=t.length,e.column+=t.length}function yt(e,t){return t?"upper"===t?e.toUpperCase():e.toLowerCase():e}const xt={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 kt(e,t,n){const o=function(e){for(let t=e.length-1;t>=0;t--){const n=e[t];if(ot(n))return n}}(t),r=n.context?n.context.name:"",i=((o?o.name:r)||"").toLowerCase();e.name=xt[i]||(gt(i,n)?"span":"div")}const vt={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"]}},wt=/^lorem([a-z]*)(\d*)(-\d*)?$/i;function $t(e,t){return Math.floor(Math.random()*(t-e)+e)}function zt(e,t){const n=e.length,o=Math.min(n,t),r=[];for(;r.length<o;){const t=e[$t(0,n)];r.includes(t)||r.push(t)}return r}function Ct(e,t){var n,o;return e.length&&(e=[(n=e[0],n[0].toUpperCase()+n.slice(1))].concat(e.slice(1))),e.join(" ")+(t||(o="?!...")[$t(0,o.length-1)])}function St(e){if(e.length<2)return e;const t=(e=e.slice()).length,n=/,$/;let o=0;o=t>3&&t<=6?$t(0,1):t>6&&t<=12?$t(0,2):$t(1,4);for(let r,i=0;i<o;i++)r=$t(0,t-2),n.test(e[r])||(e[r]+=",");return e}function jt(e,t,n){const o=[];let r,i=0;for(n&&e.common&&(r=e.common.slice(0,t),i+=r.length,o.push(Ct(St(r),".")));i<t;)r=zt(e.words,Math.min($t(2,30),t-i)),i+=r.length,o.push(Ct(St(r)));return o.join(" ")}function qt(e){return"select"!==e.name}const At=/^(-+)([a-z0-9]+[a-z0-9-]*)/i,Rt=/^(_+)([a-z0-9]+[a-z0-9-_]*)/i,Lt=e=>/^[a-z]\-/i.test(e),Ot=e=>/^[a-z]/i.test(e);function Bt(e,t,n){!function(e){const t=Et(e),n=[];for(const o of t.classNames){const e=o.indexOf("_");e>0&&!o.startsWith("-")?(n.push(o.slice(0,e)),n.push(o.slice(e))):n.push(o)}n.length&&(t.classNames=n.filter(Ut),t.block=Dt(t.classNames),Wt(e,t.classNames.join(" ")))}(e),function(e,t,n){const o=Et(e),r=[],{options:i}=n,s=t.slice(1).concat(e);for(let l of o.classNames){let e,t="";const o=l;(e=l.match(At))&&(t=Nt(s,e[1].length,n.context)+i["bem.element"]+e[2],r.push(t),l=l.slice(e[0].length)),(e=l.match(Rt))&&(t||(t=Nt(s,e[1].length),r.push(t)),r.push(`${t}${i["bem.modifier"]}${e[2]}`),l=l.slice(e[0].length)),l===o&&r.push(o)}const a=r.filter(Ut);a.length&&Wt(e,a.join(" "))}(e,t,n)}function Et(e){if(!e._bem){let t="";if(e.attributes)for(const n of e.attributes)if("class"===n.name&&n.value){t=Vt(n.value);break}e._bem=Tt(t)}return e._bem}function Tt(e){const t=e?e.split(/\s+/):[];return{classNames:t,block:Dt(t)}}function Nt(e,t=0,n){let o=Math.max(e.length-t,0);do{const t=e[o];if(t){const e=Et(t);if(e.block)return e.block}}while(0<o--);if(n){const e=function(e){return e._bem||(e._bem=Tt(e.attributes&&e.attributes.class||"")),e._bem}(n);if(e.block)return e.block}return""}function Dt(e){return Ft(e,Lt)||Ft(e,Ot)||void 0}function Ft(e,t){for(const n of e){if(At.test(n)||Rt.test(n))break;if(t(n))return n}}function Wt(e,t){for(const n of e.attributes)if("class"===n.name){n.value=[t];break}}function Vt(e){let t="";for(const n of e)t+="string"==typeof n?n:n.name;return t}function Ut(e,t,n){return!!e&&n.indexOf(e)===t}function _t(e){if("label"===e.name){const t=tt(e,e=>"input"===e.name||"textarea"===e.name);t&&(e.attributes&&(e.attributes=e.attributes.filter(e=>!("for"===e.name&&Pt(e)))),t.attributes&&(t.attributes=t.attributes.filter(e=>!("id"===e.name&&Pt(e)))))}}function Pt(e){if(!e.value)return!0;if(1===e.value.length){const t=e.value[0];if(t&&"string"!=typeof t&&!t.name)return!0}return!1}function It(e,t,n){const o=(e,o,i)=>{const{parent:s,current:a}=n;n.parent=a,n.current=e,t(e,o,i,n,r),n.current=a,n.parent=s},r=(e,t,r)=>{n.ancestors.push(n.current),o(e,t,r),n.ancestors.pop()};e.children.forEach(o)}function Qt(e){return{current:null,parent:void 0,ancestors:[],config:e,field:1,out:lt(e.options)}}const Mt=[{type:"Field",index:0,name:""}];function Ht(e){return!!e&&!e.name&&!e.attributes}function Zt(e,t){return!!e&&gt(e,t)}function Xt(e){return"object"==typeof e&&"Field"===e.type}function Gt(e,t){const{out:n}=t;let o=-1;for(const r of e)"string"==typeof r?ct(n,r):(ft(n,t.field+r.index,r.name),r.index>o&&(o=r.index));-1!==o&&(t.field+=o+1)}function Yt(e){return!e.implied||"raw"!==e.valueType||!!e.value&&e.value.length>0}var Kt;function Jt(e){const t=[],n={pos:0,text:e};let o,r=n.pos,i=n.pos;for(;n.pos<n.text.length;)i=n.pos,(o=en(n))?(r!==n.pos&&t.push(e.slice(r,i)),t.push(o),r=n.pos):n.pos++;return r!==n.pos&&t.push(e.slice(r)),t}function en(e){if(tn(e)===Kt.Start){const t=++e.pos;let n=t,o=t,r=1;for(;e.pos<e.text.length;){const i=tn(e);if(nn(i)){for(n=e.pos;on(tn(e));)e.pos++;o=e.pos}else{if(i===Kt.Start)r++;else if(i===Kt.End&&0===--r)return{before:e.text.slice(t,n),after:e.text.slice(o,e.pos++),name:e.text.slice(n,o)};e.pos++}}}}function tn(e,t=e.pos){return e.text.charCodeAt(t)}function nn(e){return e>=65&&e<=90}function on(e){return nn(e)||e>47&&e<58||e===Kt.Underscore||e===Kt.Dash}function rn(e,t){const{comment:n}=t;if(!(n.enabled&&n.trigger&&e.name&&e.attributes))return!1;for(const o of e.attributes)if(o.name&&n.trigger.includes(o.name))return!0;return!1}function sn(e,t,n){const o={},{out:r}=n;for(const i of e.attributes)i.name&&i.value&&(o[i.name.toUpperCase()]=i.value);for(const i of t)"string"==typeof i?ct(r,i):o[i.name]&&(ct(r,i.before),Gt(o[i.name],n),ct(r,i.after))}!function(e){e[e.Start=91]="Start",e[e.End=93]="End",e[e.Underscore=95]="Underscore",e[e.Dash=45]="Dash"}(Kt||(Kt={}));const an=/^<([\w\-:]+)[\s>]/,ln=new Set(["for","while","of","async","await","const","let","var","continue","break","debugger","do","export","import","in","instanceof","new","return","switch","this","throw","try","catch","typeof","void","with","yield"]);function un(e,t){const n=Qt(t);return n.comment=function(e){const{options:t}=e;return{enabled:t["comment.enabled"],trigger:t["comment.trigger"],before:t["comment.before"]?Jt(t["comment.before"]):void 0,after:t["comment.after"]?Jt(t["comment.after"]):void 0}}(t),It(e,cn,n),n.out.value}function cn(e,t,n,o,r){const{out:i,config:s}=o,a=mn(e,t,n,o),l=function(e){const{config:t,parent:n}=e;return!n||Ht(n)||n.name&&t.options["output.formatSkip"].includes(n.name)?0:1}(o);if(i.level+=l,a&&pt(i,!0),e.name){const t=function(e,t){return yt(e,t.options["output.tagCase"])}(e.name,s);if(function(e,t){rn(e,t)&&t.comment.before&&sn(e,t.comment.before,t)}(e,o),ct(i,`<${t}`),e.attributes)for(const n of e.attributes)Yt(n)&&pn(n,o);if(!e.selfClosing||e.children.length||e.value){if(ct(i,">"),!fn(e,o,r)){if(e.value){const t=e.value.some(dn)||function(e,t){if(e.length&&"string"==typeof e[0]){const n=an.exec(e[0]);if((null==n?void 0:n.length)&&!t.options.inlineElements.includes(n[1].toLowerCase()))return!0}return!1}(e.value,s);t&&pt(o.out,++i.level),Gt(e.value,o),t&&pt(o.out,--i.level)}if(e.children.forEach(r),!e.value&&!e.children.length){const t=s.options["output.formatLeafNode"]||s.options["output.formatForce"].includes(e.name);t&&pt(o.out,++i.level),Gt(Mt,o),t&&pt(o.out,--i.level)}}ct(i,`</${t}>`),function(e,t){rn(e,t)&&t.comment.after&&sn(e,t.comment.after,t)}(e,o)}else ct(i,`${function(e){switch(e.options["output.selfClosingStyle"]){case"xhtml":return" /";case"xml":return"/";default:return""}}(s)}>`)}else!fn(e,o,r)&&e.value&&(Gt(e.value,o),e.children.forEach(r));if(a&&t===n.length-1&&o.parent){const e=Ht(o.parent)?0:1;pt(i,i.level-e)}i.level-=l}function pn(e,t){const{out:n,config:o}=t;if(e.name){const r=o.options["markup.attributes"],i=o.options["markup.valuePrefix"];let{name:s,value:a}=e,l=dt(e,o,!0),u=dt(e,o);r&&(s=bn(s,r,e.multiple)||s),s=mt(s,o),o.options["jsx.enabled"]&&e.multiple&&(l=st,u=at);const c=i?bn(e.name,i,e.multiple):null;if(c&&1===(null==a?void 0:a.length)&&"string"==typeof a[0]){const e=a[0];a=[gn(e)?`${c}.${e}`:`${c}['${e}']`],o.options["jsx.enabled"]&&(l=st,u=at)}bt(e,o)&&!a?o.options["output.compactBoolean"]||(a=[s]):a||(a=Mt),ct(n," "+s),a?(ct(n,"="+l),Gt(a,t),ct(n,u)):"html"!==o.options["output.selfClosingStyle"]&&ct(n,"="+l+u)}}function fn(e,t,n){if(e.value&&e.children.length){const o=e.value.findIndex(Xt);if(-1!==o){Gt(e.value.slice(0,o),t);const r=t.out.line;let i=o+1;return e.children.forEach(n),t.out.line!==r&&"string"==typeof e.value[i]&&ct(t.out,e.value[i++].trimLeft()),Gt(e.value.slice(i),t),!0}}return!1}function mn(e,t,n,o){const{config:r,parent:i}=o;if(!r.options["output.format"])return!1;if(0===t&&!i)return!1;if(i&&Ht(i)&&1===n.length)return!1;if(Ht(e)&&(Ht(n[t-1])||Ht(n[t+1])||e.value.some(dn)||e.value.some(Xt)&&e.children.length))return!0;if(gt(e,r)){if(0===t){for(let e=0;e<n.length;e++)if(!gt(n[e],r))return!0}else if(!gt(n[t-1],r))return!0;if(r.options["output.inlineBreak"]){let e=1,o=t,i=t;for(;Zt(n[--o],r);)e++;for(;Zt(n[++i],r);)e++;if(e>=r.options["output.inlineBreak"])return!0}for(let t=0,n=e.children.length;t<n;t++)if(mn(e.children[t],t,e.children,o))return!0;return!1}return!0}function dn(e){return"string"==typeof e&&/\r|\n/.test(e)}function bn(e,t,n){return n&&t[`${e}*`]||t[e]}function gn(e){return!ln.has(e)&&/^[a-zA-Z_$][\w_$]*$/.test(e)}function hn(e,t,n){const o=Qt(t);return o.options=n||{},It(e,yn,o),o.out.value}function yn(e,t,n,o,r){const{out:i,options:s}=o,{primary:a,secondary:l}=function(e){const t=[],n=[];if(e.attributes)for(const o of e.attributes)xn(o)?t.push(o):n.push(o);return{primary:t,secondary:n}}(e),u=o.parent?1:0;i.level+=u,function(e,t,n,o){return!(!o.parent&&0===t)&&!Ht(e)}(e,t,0,o)&&pt(i,!0),!e.name||"div"===e.name&&a.length||ct(i,(s.beforeName||"")+e.name+(s.afterName||"")),function(e,t){for(const n of e)n.value&&("class"===n.name?(ct(t.out,"."),Gt(n.value.map(e=>"string"==typeof e?e.replace(/\s+/g,"."):e),t)):(ct(t.out,"#"),Gt(n.value,t)))}(a,o),function(e,t){if(e.length){const{out:n,config:o,options:r}=t;r.beforeAttribute&&ct(n,r.beforeAttribute);for(let i=0;i<e.length;i++){const s=e[i];ct(n,mt(s.name||"",o)),bt(s,o)&&!s.value?!o.options["output.compactBoolean"]&&r.booleanValue&&ct(n,"="+r.booleanValue):(ct(n,"="+dt(s,o,!0)),Gt(s.value||Mt,t),ct(n,dt(s,o))),i!==e.length-1&&r.glueAttribute&&ct(n,r.glueAttribute)}r.afterAttribute&&ct(n,r.afterAttribute)}}(l.filter(Yt),o),!e.selfClosing||e.value||e.children.length?(function(e,t){if(!e.value&&e.children.length)return;const n=e.value||Mt,o=function(e){const t=[];let n=[];for(const o of e)if("string"==typeof o){const e=o.split(/\r\n?|\n/g);for(n.push(e.shift()||"");e.length;)t.push(n),n=[e.shift()||""]}else n.push(o);return n.length&&t.push(n),t}(n),{out:r,options:i}=t;if(1===o.length)(e.name||e.attributes)&&ut(r," "),Gt(n,t);else{const e=[];let n=0;for(const t of o){const o=kn(t);e.push(o),o>n&&(n=o)}r.level++;for(let s=0;s<o.length;s++)pt(r,!0),i.beforeTextLine&&ut(r,i.beforeTextLine),Gt(o[s],t),i.afterTextLine&&(ut(r," ".repeat(n-e[s])),ut(r,i.afterTextLine));r.level--}}(e,o),e.children.forEach(r)):o.options.selfClose&&ct(i,o.options.selfClose),i.level-=u}function xn(e){return"class"===e.name||"id"===e.name}function kn(e){let t=0;for(const n of e)t+="string"==typeof n?n.length:n.name.length;return t}const vn={html:un,haml:function(e,t){return hn(e,t,{beforeName:"%",beforeAttribute:"(",afterAttribute:")",glueAttribute:" ",afterTextLine:" |",booleanValue:"true",selfClose:"/"})},slim:function(e,t){return hn(e,t,{beforeAttribute:" ",glueAttribute:" ",beforeTextLine:"| ",selfClose:"/"})},pug:function(e,t){return hn(e,t,{beforeAttribute:"(",afterAttribute:")",glueAttribute:", ",beforeTextLine:"| ",selfClose:"xml"===t.options["output.selfClosingStyle"]?"/":""})}};function wn(e,t){let n;if("string"==typeof e){const o=Object.assign({},t);t.options["jsx.enabled"]&&(o.jsx=!0),t.options["markup.href"]&&(o.href=!0),e=he(e,o),n=t.text,t.text=void 0}return e=function(e,t){const n=[],o=t.options["output.reverseAttributes"],{warn:r}=t,i=e=>{const s=e.name&&t.snippets[e.name];if(!s||n.includes(s))return null;let a;try{a=he(s,t)}catch(l){return null==r||r(`Unable to parse "${s}" snippet`,l),null}n.push(s),rt(a,i),n.pop();for(const t of a.children){if(e.attributes){const n=t.attributes||[],r=e.attributes||[];t.attributes=o?r.concat(n):n.concat(r)}it(e,t)}return a};return rt(e,i),e}(e,t),function(e,t,n){const o=[e],r=e=>{t(e,o,n),o.push(e),e.children.forEach(r),o.pop()};e.children.forEach(r)}(e,zn,t),t.text=null!=n?n:t.text,e}function $n(e,t){return(vn[t.syntax]||un)(e,t)}function zn(e,t,n){!function(e,t,n){!e.name&&e.attributes&&kt(e,t,n)}(e,t,n),function(e,t){if(!e.attributes)return;const n=[],o={};for(const r of e.attributes)if(r.name){const e=r.name;if(e in o){const n=o[e];"class"===e?n.value=Ke(n.value,r.value," "):Je(n,r,t)}else n.push(o[e]=Object.assign({},r))}else n.push(r);e.attributes=n}(e,n),function(e,t,n){let o;if(e.name&&(o=e.name.match(wt))){const r=vt[o[1]]||vt.latin,i=o[2]?Math.max(1,Number(o[2])):30,s=$t(i,o[3]?Math.max(i,Number(o[3].slice(1))):i),a=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=[jt(r,s,!a||0===a.value)],e.repeat&&t.length>1&&kt(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(qt))}(e),"markup"===n.type&&_t(e),n.options["bem.enabled"]&&Bt(e,t,n)}var Cn;!function(e){e.Raw="Raw",e.Property="Property"}(Cn||(Cn={}));const Sn=/^([a-z-]+)(?:\s*:\s*([^\n\r;]+?);*)?$/,jn={value:!0};function qn(e,t){const n=t.match(Sn);if(n){const t={},o=n[2]?n[2].split("|").map(Rn):[];for(const e of o)for(const n of e)On(n,t);return{type:Cn.Property,key:e,property:n[1],value:o,keywords:t,dependencies:[]}}return{type:Cn.Raw,key:e,value:t}}function An(e,t){return e.key===t.key?0:e.key<t.key?-1:1}function Rn(e){return Ye(e.trim(),jn)[0].value}function Ln(e){return e.type===Cn.Property}function On(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 Bn(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 o=e.length,r=t.length;if(!n&&o>r)return 0;const i=Math.min(o,r),s=Math.max(o,r);let a=1,l=1,u=s,c=0,p=0,f=!1,m=!1;for(;a<o;){for(c=e.charCodeAt(a),f=!1,m=!1;l<r;){if(p=t.charCodeAt(l),c===p){f=!0,u+=s-(m?a:l);break}m=45===p,l++}if(!f){if(!n)return 0;break}a++}const d=s-i;return u*(a/s)/(En(s)-En(d))}function En(e){return e*(e+1)/2}function Tn(e,t){return e.r||e.g||e.b||e.a?1===e.a?function(e,t){const n=t&&Dn(e.r)&&Dn(e.g)&&Dn(e.b)?Fn:Wn;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(Nn(e.a,8)),`${3===t.length?"rgb":"rgba"}(${t.join(", ")})`}(e):"transparent"}function Nn(e,t=4){return e.toFixed(t).replace(/\.?0+$/,"")}function Dn(e){return!(e%17)}function Fn(e){return(e>>4).toString(16)}function Wn(e){return function(e,t){for(;e.length<t;)e="0"+e;return e}(e.toString(16),2)}const Vn={Section:"@@section",Property:"@@property",Value:"@@value"};function Un(e,t){var n;const o=lt(t.options),r=t.options["output.format"];(null===(n=t.context)||void 0===n?void 0:n.name)===Vn.Section&&(e=e.filter(e=>e.snippet));for(let i=0;i<e.length;i++)r&&0!==i&&pt(o,!0),_n(e[i],o,t);return o.value}function _n(e,t,n){const o=n.options["stylesheet.json"];if(e.name)ct(t,(o?e.name.replace(/\-(\w)/g,(e,t)=>t.toUpperCase()):e.name)+n.options["stylesheet.between"]),e.value.length?function(e,t,n){const o=n.options["stylesheet.json"],r=o?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(!r||r.unit&&"px"!==r.unit){const r=function(e){return e.options["stylesheet.jsonDoubleQuotes"]?'"':"'"}(n);o&&ut(t,r);for(let o=0;o<e.value.length;o++)0!==o&&ut(t,", "),In(e.value[o],t,n);o&&ut(t,r)}else ut(t,String(r.value))}(e,t,n):ft(t,0,""),o?ut(t,","):(Pn(e,t,!0),ut(t,n.options["stylesheet.after"]));else{for(const o of e.value)for(const e of o.value)Qn(e,t,n);Pn(e,t,e.value.length>0)}}function Pn(e,t,n){e.important&&(n&&ut(t," "),ut(t,"!important"))}function In(e,t,n){for(let o=0,r=-1;o<e.value.length;o++){const i=e.value[o];0===o||"Field"===i.type&&i.start===r||ut(t," "),Qn(i,t,n),r=i.end}}function Qn(e,t,n){if("ColorValue"===e.type)ut(t,Tn(e,n.options["stylesheet.shortHex"]));else if("Literal"===e.type||"CustomProperty"===e.type)ct(t,e.value);else if("NumberValue"===e.type)ct(t,Nn(e.value,4)+e.unit);else if("StringValue"===e.type){const n="double"===e.quote?'"':"'";ct(t,n+e.value+n)}else if("Field"===e.type)ft(t,e.index,e.name);else if("FunctionCall"===e.type){ut(t,e.name+"(");for(let o=0;o<e.arguments.length;o++)o&&ut(t,", "),In(e.arguments[o],t,n);ut(t,")")}}const Mn="lg";function Hn(e,t){var n;const o=(null===(n=t.cache)||void 0===n?void 0:n.stylesheetSnippets)||function(e){const t=[];for(const n of Object.keys(e))t.push(qn(n,e[n]));return function(e){e=e.slice().sort(An);const t=[];let n;for(const o of e.filter(Ln)){for(;t.length;){if(n=t[t.length-1],o.property.startsWith(n.property)&&45===o.property.charCodeAt(n.property.length)){n.dependencies.push(o),t.push(o);break}t.pop()}t.length||t.push(o)}return e}(t)}(t.snippets),r=[];t.cache&&(t.cache.stylesheetSnippets=o),"string"==typeof e&&(e=Ye(e,{value:ro(t)}));const i=function(e,t){if(t.context){if(t.context.name===Vn.Section)return e.filter(e=>e.type===Cn.Raw);if(t.context.name===Vn.Property)return e.filter(e=>e.type===Cn.Property)}return e}(o,t);for(const s of e){const e=Zn(s,i,t);e&&r.push(e)}return r}function Zn(e,t,n){if(!function(e,t){let n=null;const o=1===e.value.length?e.value[0]:null;if(o&&1===o.value.length){const e=o.value[0];"FunctionCall"===e.type&&e.name===Mn&&(n=e)}return!(!n&&e.name!==Mn)&&(n=n?Object.assign(Object.assign({},n),{name:"linear-gradient"}):{type:"FunctionCall",name:"linear-gradient",arguments:[Jn(to(0,""))]},t.context||(e.name="background-image"),e.value=[Jn(n)],!0)}(e,n)){const o=n.options["stylesheet.fuzzySearchMinScore"];if(ro(n)){const r=n.context.name,i=t.find(e=>e.type===Cn.Property&&e.property===r);Xn(e,n,i,o),e.snippet=i}else if(e.name){const r=Gn(e.name,t,o,!0);if(e.snippet=r,r){const t=r.type===Cn.Property?function(e,t,n){const o=e.name,r=function(e,t){for(let n=0,o=0;n<e.length;n++){if(o=t.indexOf(e[n],o),-1===o)return e.slice(n);o++}return""}(o,t.key);if(r){if(e.value.length)return null;const o=Kn(r,n,t);if(!o)return null;e.value.push(Jn(o))}if(e.name=t.property,e.value.length)Xn(e,n,t);else if(t.value.length){const o=t.value[0];e.value=1===t.value.length||o.some(no)?o:o.map(e=>oo(e,n))}return e}(e,r,n):function(e,t){let n,o=0;const r=/\$\{(\d+)(:[^}]+)?\}/g,i=e.value[0],s=[];for(;n=r.exec(t.value);)o!==n.index&&s.push(eo(t.value.slice(o,n.index))),o=n.index+n[0].length,i&&i.value.length?s.push(i.value.shift()):s.push(to(Number(n[1]),n[2]?n[2].slice(1):""));const a=t.value.slice(o);return a&&s.push(eo(a)),e.name=void 0,e.value=[Jn(...s)],e}(e,r);if(t)e=t;else if(n.options["stylesheet.strictMatch"])return null}}}return(e.name||n.context)&&function(e,t){const n=t.options["stylesheet.unitAliases"],o=t.options["stylesheet.unitless"];for(const r of e.value)for(const i of r.value)"NumberValue"===i.type&&(i.unit?i.unit=n[i.unit]||i.unit:0===i.value||o.includes(e.name)||(i.unit=i.rawValue.includes(".")?t.options["stylesheet.floatUnit"]:t.options["stylesheet.intUnit"]))}(e,n),e}function Xn(e,t,n,o){for(const r of e.value){const e=[];for(const i of r.value)if("Literal"===i.type)e.push(Kn(i.value,t,n,o)||i);else if("FunctionCall"===i.type){const r=Kn(i.name,t,n,o);r&&"FunctionCall"===r.type?e.push(Object.assign(Object.assign({},r),{arguments:i.arguments.concat(r.arguments.slice(i.arguments.length))})):e.push(i)}else e.push(i);r.value=e}}function Gn(e,t,n=0,o=!1){let r=null,i=0;for(const s of t){const t=Bn(e,Yn(s),o);if(1===t)return s;t&&t>=i&&(i=t,r=s)}return i>=n?r:null}function Yn(e){return"string"==typeof e?e:e.key}function Kn(e,t,n,o){let r;if(n){if(r=Gn(e,Object.keys(n.keywords),o))return n.keywords[r];for(const t of n.dependencies)if(r=Gn(e,Object.keys(t.keywords),o))return t.keywords[r]}return(r=Gn(e,t.options["stylesheet.keywords"],o))?eo(r):null}function Jn(...e){return{type:"CSSValue",value:e}}function eo(e){return{type:"Literal",value:e}}function to(e,t){return{type:"Field",index:e,name:t}}function no(e){for(const t of e.value)if("Field"===t.type||"FunctionCall"===t.type&&t.arguments.some(no))return!0;return!1}function oo(e,t,n={index:1}){let o=[];for(const r of e.value)switch(r.type){case"ColorValue":o.push(to(n.index++,Tn(r,t.options["stylesheet.shortHex"])));break;case"Literal":o.push(to(n.index++,r.value));break;case"NumberValue":o.push(to(n.index++,`${r.value}${r.unit}`));break;case"StringValue":const e="single"===r.quote?"'":'"';o.push(to(n.index++,e+r.value+e));break;case"FunctionCall":o.push(to(n.index++,r.name),eo("("));for(let i=0,s=r.arguments.length;i<s;i++)o=o.concat(oo(r.arguments[i],t,n).value),i!==s-1&&o.push(eo(", "));o.push(eo(")"));break;default:o.push(r)}return Object.assign(Object.assign({},e),{value:o})}function ro(e){return!(!e.context||e.context.name!==Vn.Value&&e.context.name.startsWith("@@"))}const io={markup:"html",stylesheet:"css"},so={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,"stylesheet.strictMatch":!1}},ao={markup:{snippets:lo({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:refresh":"meta[http-equiv=refresh content='${1:5}']","meta:kw":"meta[name=keywords content]","meta:desc":"meta[name=description content]",style:"style",script:"script","script:src":"script[src]","script:module":"script[type=module 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}]","tarea:c|textarea:cols":"textarea[name=${1} id=${1} cols=${2:30}]","tarea:r|textarea:rows":"textarea[name=${1} id=${1} rows=${3:10}]","tarea:cr|textarea:cols:rows":"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:b|button:b|button:button":"button[type=button]","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",datal:"datalist",kg:"keygen",out:"output",det:"details",sum:"summary",cmd:"command",data:"data[value]",meter:"meter[value]",time:"time[datetime]","ri:d|ri:dpr":"img:s","ri:v|ri:viewport":"img:z","ri:a|ri:art":"pic>src:m+img","ri:t|ri:type":"pic>src:t+img","!!!":"{<!DOCTYPE html>}",doc:"html[lang=${lang}]>(head>meta[charset=${charset}]+meta:vp+title{${1:Document}})+body","!|html:5":"!!!+doc",c:"{\x3c!-- ${0} --\x3e}","cc:ie":"{\x3c!--[if IE]>${0}<![endif]--\x3e}","cc:noie":"{\x3c!--[if !IE]>\x3c!--\x3e${0}\x3c!--<![endif]--\x3e}"})},xhtml:{options:{"output.selfClosingStyle":"xhtml"}},xml:{options:{"output.selfClosingStyle":"xml"}},xsl:{snippets:lo({"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,"markup.attributes":{class:"className","class*":"styleName",for:"htmlFor"},"markup.valuePrefix":{"class*":"styles"}}},vue:{options:{"markup.attributes":{"class*":":class"}}},svelte:{options:{"jsx.enabled":!0}},pug:{snippets:lo({"!!!":"{doctype html}"})},stylesheet:{snippets:lo({"@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",bbs:"border-block-start",bbe:"border-block-end",bis:"border-inline-start",bie:"border-inline-end",bfv:"backface-visibility:hidden|visible",bg:"background:${1:#000}","bg:n":"background: none",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",bs:"block-size",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}",cg:"column-gap",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|contents|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",g:"gap",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",is:"inline-size",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",mbs:"margin-block-start",mbe:"margin-block-end",mis:"margin-inline-start",mie:"margin-inline-end",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",pbs:"padding-block-start",pbe:"padding-block-end",pis:"padding-inline-start",pie:"padding-inline-end",spbs:"scroll-padding-block-start",spbe:"scroll-padding-block-end",spis:"scroll-padding-inline-start",spie:"scroll-padding-inline-end",q:"quotes",qen:"quotes:'\\201C' '\\201D' '\\2018' '\\2019'",qru:"quotes:'\\00AB' '\\00BB' '\\201E' '\\201C'",r:"right",rg:"row-gap",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|wid":"width",whs:"white-space:nowrap|pre|pre-wrap|pre-line|normal",whsc:"white-space-collapse:normal|keep-all|loose|break-strict|break-all",wido:"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 lo(e){const t={};return Object.keys(e).forEach(n=>{for(const o of n.split("|"))t[o]=e[n]}),t}function uo(e={},t={}){const n=e.type||"markup",o=e.syntax||io[n];return Object.assign(Object.assign(Object.assign({},so),e),{type:n,syntax:o,variables:co(n,o,"variables",e,t),snippets:co(n,o,"snippets",e,t),options:co(n,o,"options",e,t)})}function co(e,t,n,o,r={}){const i=ao[e],s=r[e],a=ao[t],l=r[t];return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},so[n]),i&&i[n]),a&&a[n]),s&&s[n]),l&&l[n]),o[n])}function po(e,t=0){return{text:e,start:t,pos:e.length}}function fo(e){return e.pos===e.start}function mo(e,t=0){return e.text.charCodeAt(e.pos-1+t)}function bo(e){if(!fo(e))return e.text.charCodeAt(--e.pos)}function go(e,t){if(fo(e))return!1;const n="function"==typeof t?t(mo(e)):t===mo(e);return n&&e.pos--,!!n}function ho(e,t){const n=e.pos;for(;go(e,t););return e.pos<n}var yo,xo;function ko(e){return e===yo.SingleQuote||e===yo.DoubleQuote}!function(e){e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote",e[e.Escape=92]="Escape"}(yo||(yo={})),function(e){e[e.SquareL=91]="SquareL",e[e.SquareR=93]="SquareR",e[e.RoundL=40]="RoundL",e[e.RoundR=41]="RoundR",e[e.CurlyL=123]="CurlyL",e[e.CurlyR=125]="CurlyR"}(xo||(xo={}));const vo={[xo.SquareL]:xo.SquareR,[xo.RoundL]:xo.RoundR,[xo.CurlyL]:xo.CurlyR};var wo;function $o(e){const t=e.pos;if(!go(e,wo.AngleRight))return!1;let n=!1;for(go(e,wo.Slash);!fo(e);){if(ho(e,qo),So(e)){if(go(e,wo.Slash)){n=go(e,wo.AngleLeft);break}if(go(e,wo.AngleLeft)){n=!0;break}if(go(e,qo))continue;if(go(e,wo.Equals)){if(So(e))continue;break}if(Co(e)){n=!0;break}break}if(!zo(e))break}return e.pos=t,n}function zo(e){return function(e){const t=e.pos;return!!(function(e){const t=e.pos,n=bo(e);if(ko(n))for(;!fo(e);)if(bo(e)===n&&mo(e)!==yo.Escape)return!0;return e.pos=t,!1}(e)&&go(e,wo.Equals)&&So(e))||(e.pos=t,!1)}(e)||Co(e)}function Co(e){const t=e.pos,n=[];for(;!fo(e);){const t=mo(e);if(Lo(t))n.push(t);else if(Ro(t)){if(n.pop()!==vo[t])break}else if(!Ao(t))break;e.pos--}return!(t===e.pos||!go(e,wo.Equals)||!So(e))||(e.pos=t,!1)}function So(e){return ho(e,jo)}function jo(e){return e===wo.Colon||e===wo.Dash||function(e){return(e&=-33)>=65&&e<=90}(e)||function(e){return e>47&&e<58}(e)}function qo(e){return e===wo.Space||e===wo.Tab}function Ao(e){return!isNaN(e)&&e!==wo.Equals&&!qo(e)&&!ko(e)}function Ro(e){return e===xo.CurlyL||e===xo.RoundL||e===xo.SquareL}function Lo(e){return e===xo.CurlyR||e===xo.RoundR||e===xo.SquareR}!function(e){e[e.Tab=9]="Tab",e[e.Space=32]="Space",e[e.Dash=45]="Dash",e[e.Slash=47]="Slash",e[e.Colon=58]="Colon",e[e.Equals=61]="Equals",e[e.AngleLeft=60]="AngleLeft",e[e.AngleRight=62]="AngleRight"}(wo||(wo={}));const Oo=e=>e.charCodeAt(0),Bo="#.*:$-_!@%^+>/".split("").map(Oo),Eo={type:"markup",lookAhead:!0,prefix:""};function To(e,t=e.length,n={}){const o=Object.assign(Object.assign({},Eo),n);let r;t=Math.min(e.length,Math.max(0,null==t?e.length:t)),o.lookAhead&&(t=function(e,t,n){for(ko(e.charCodeAt(t))&&t++;Vo(e.charCodeAt(t),n.type);)t++;return t}(e,t,o));const i=function(e,t,n){if(!n)return 0;const o=po(e),r=n.split("").map(Oo);let i;for(o.pos=t;!fo(o);)if(!No(o,xo.SquareR,xo.SquareL)&&!No(o,xo.CurlyR,xo.CurlyL)){if(i=o.pos,Do(o,r))return i;o.pos--}return-1}(e,t,o.prefix||"");if(-1===i)return;const s=po(e,i);s.pos=t;const a=[];for(;!fo(s);){if(r=mo(s),a.includes(xo.CurlyR)){if(r===xo.CurlyR){a.push(r),s.pos--;continue}if(r!==xo.CurlyL){s.pos--;continue}}if(Vo(r,o.type))a.push(r);else if(Wo(r,o.type)){if(a.pop()!==vo[r])break}else{if(a.includes(xo.SquareR)||a.includes(xo.CurlyR)){s.pos--;continue}if($o(s)||!Fo(r))break}s.pos--}if(!a.length&&s.pos!==t){const o=e.slice(s.pos,t).replace(/^[*+>^]+/,"");return{abbreviation:o,location:t-o.length,start:n.prefix?i-n.prefix.length:t-o.length,end:t}}}function No(e,t,n){const o=e.pos;if(go(e,t))for(;!fo(e);){if(go(e,n))return!0;e.pos--}return e.pos=o,!1}function Do(e,t){const n=e.pos;let o=!1;for(let r=t.length-1;r>=0&&!fo(e)&&go(e,t[r]);r--)o=0===r;return o||(e.pos=n),o}function Fo(e){return e>64&&e<91||e>96&&e<123||e>47&&e<58||Bo.includes(e)}function Wo(e,t){return e===xo.RoundL||"markup"===t&&(e===xo.SquareL||e===xo.CurlyL)}function Vo(e,t){return e===xo.RoundR||"markup"===t&&(e===xo.SquareR||e===xo.CurlyR)}function Uo(e,t){const n=uo(t);return"stylesheet"===n.type?function(e,t){return Un(Hn(e,t),t)}(e,n):function(e,t){return $n(wn(e,t),t)}(e,n)}const _o={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"]},Po={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"]},Io=new Map;let Qo;const Mo=new Map,Ho=/^[a-z,A-Z,!,(,[,#,\.\{]/,Zo=/^[a-z,A-Z,!,(,[,#,\.]/,Xo=/^-?[a-z,A-Z,!,@,#]/,Go=/[a-z,A-Z\.]/,Yo=[...Po.tags,"lorem"],Ko="bem",Jo="|",er="t",tr="c",nr=3;function or(e,t,n,o,r){var i;const s=cr(o);if(!s){if(!Io.has(o)){const e=Object.assign(Object.assign({},function(e){const t=pr(e),n={type:t,syntax:e},o=uo(n);return"xml"===e?{}:o.snippets}(o)),lr[o]);Io.set(o,Object.keys(e))}Qo=null!==(i=Io.get(o))&&void 0!==i?i:[]}const a={lookAhead:!s,type:pr(o)},l=function(e,t,n,o){const r=t.getLineContent(n.lineNumber),i=r.substr(0,n.column-1),{pos:s,filter:a}=function(e,t){let n;for(let o=0;o<nr;o++)if(e.endsWith(`${Jo}${Ko}`,t))t-=Ko.length+1,n=n?Ko+","+n:Ko;else if(e.endsWith(`${Jo}${tr}`,t))t-=tr.length+1,n=n?tr+","+n:tr;else{if(!e.endsWith(`${Jo}${er}`,t))break;t-=er.length+1,n=n?er+","+n:er}return{pos:t,filter:n}}(i,n.column-1),l=a?a.length+1:0,u=To(r,s,o);if(!u)return;const c=new e.Range(n.lineNumber,u.location+1,n.lineNumber,u.location+u.abbreviation.length+l+1);return{abbreviationRange:c,abbreviation:u.abbreviation,currentLineTillPosition:i,filter:a}}(e,t,n,a);if(!l)return;const{abbreviationRange:u,abbreviation:c,currentLineTillPosition:p,filter:f}=l,m=function(e){if(e){const t=e.match(/[\w,:,-,\.]*$/);if(t)return t[0]}}(p);if(m===c&&p.endsWith(`<${c}`)&&!s)return;const d=function(e,t){var n;const o=t?t.split(",").map(e=>e.trim()):[],r=o.includes("bem"),i=o.includes("c"),s={"output.formatSkip":["html"],"output.formatForce":["body"],"output.field":ur,"output.inlineBreak":0,"output.compactBoolean":!1,"output.reverseAttributes":!1,"markup.href":!0,"comment.enabled":i,"comment.trigger":["id","class"],"comment.before":"","comment.after":"\n\x3c!-- /[#ID][.CLASS] --\x3e","bem.enabled":r,"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,"output.format":!0,"output.selfClosingStyle":"html"},a=pr(e),l=fr(e),u="stylesheet"===a?null!==(n=lr[e])&&void 0!==n?n:lr[l]:lr[e];return{type:a,options:s,variables:{},snippets:u,syntax:e,text:void 0,maxRepeat:1e3}}(o,f);let b,g="",h=[];if(((t,n)=>{if(function(e,t){if(!t)return!1;if(cr(e)){if(t.includes("#")){if(t.startsWith("#"))return/^#[\d,a-f,A-F]{1,6}$/.test(t);if(Yo.includes(t.substring(0,t.indexOf("#"))))return!1}return Xo.test(t)}return t.startsWith("!")?!/[^!]/.test(t):!!(!/\(/.test(t)&&!/\)/.test(t)||/\{[^\}\{]*[\(\)]+[^\}\{]*\}(?:[>\+\*\^]|$)/.test(t)||/\(.*\)[>\+\*\^]/.test(t)||/\[[^\[\]\(\)]+=".*"\]/.test(t)||/[>\+\*\^]\(.*\)/.test(t))&&("jsx"===e?Zo.test(t)&&Go.test(t):Ho.test(t)&&Go.test(t))}(t,c)){try{g=Uo(n,d),s&&"!important".startsWith(n)&&(g="!important")}catch(o){}g&&!function(e,t,n,o){var r,i;if(cr(e)&&o){const e=null!==(r=o["stylesheet.between"])&&void 0!==r?r:": ",s=null!==(i=o["stylesheet.after"])&&void 0!==i?i:";";let a=t.indexOf(e[0],Math.max(t.length-e.length,0));return a=a>=0?a:t.length,n===`${t.substring(0,a)}${e}\${0}${s}`||n.replace(/\s/g,"")===t.replace(/\s/g,"")+s}if("xml"===e&&Yo.some(e=>e.startsWith(t.toLowerCase())))return!0;if(Yo.includes(t.toLowerCase())||Qo.includes(t))return!1;if(/[-,:]/.test(t)&&!/--|::/.test(t)&&!t.endsWith(":"))return!1;if("."===t)return!1;const s=t.match(/^([a-z,A-Z,\d]*)\.$/);return s?!s[1]||!Po.tags.includes(s[1]):("jsx"!==e||!/^([A-Z][A-Za-z0-9]*)+$/.test(t))&&n.toLowerCase()===`<${t.toLowerCase()}>\${1}</${t.toLowerCase()}>`}(t,n,g,d.options)&&(b={kind:e.languages.CompletionItemKind.Property,label:c+(f?"|"+f.replace(",","|"):""),documentation:ir(g),detail:"Emmet abbreviation",insertTextRules:e.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:u,insertText:sr(ar(g))},h=[b])}})(o,c),s){if(c.length>4&&_o.properties.some(e=>e.startsWith(c)))return{suggestions:[],incomplete:!0};if(b&&g.length){b.range=u,b.insertText=sr(ar(g)),b.documentation=ir(g),b.label=g.replace(/([^\\])\$\{\d+\}/g,"$1").replace(/\$\{\d+:([^\}]+)\}/g,"$1"),b.filterText=c;const t=Mo.has(o)?Mo.get(o):Mo.get("css");if(h=rr(e,null!=t?t:[],c,c,u,d,"Emmet Custom Snippet",!1),!h.find(e=>e.insertText===(null==b?void 0:b.insertText))){const e=new RegExp(".*"+c.split("").map(e=>"$"===e||"+"===e?"\\"+e:e).join(".*")+".*","i");(/\d/.test(c)||e.test(b.label))&&h.push(b)}}}else{let t=c;const n=c.match(/(>|\+)([\w:-]+)$/);if(n&&3===n.length&&(t=n[2]),"xml"!==o){const n=rr(e,Yo,t,c,u,d,"Emmet Abbreviation");h=h.concat(n)}{const n=rr(e,Qo.filter(e=>!Yo.includes(e)),t,c,u,d,"Emmet Abbreviation");b&&n.length>0&&t!==c&&(b.sortText="0"+b.label,n.forEach(e=>{e.filterText=c,e.sortText="9"+c})),h=h.concat(n)}"html"===o&&h.length>=2&&c.includes(":")&&(null==b?void 0:b.insertText)===`<${c}>\${0}</${c}>`&&(h=h.filter(e=>e.label!==c))}return h.length?{suggestions:h,incomplete:!0}:void 0}function rr(e,t,n,o,r,i,s,a=!0){if(!n||!t)return[];const l=[];return t.forEach(t=>{if(!t.startsWith(n.toLowerCase())||a&&t===n.toLowerCase())return;const u=o+t.substr(n.length);let c;try{c=Uo(u,i)}catch(f){}if(!c)return;const p={kind:e.languages.CompletionItemKind.Property,label:n+t.substr(n.length),documentation:ir(c),detail:s,insertTextRules:e.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:r,insertText:sr(ar(c))};l.push(p)}),l}function ir(e){return e.replace(/([^\\])\$\{\d+\}/g,"$1|").replace(/\$\{\d+:([^\}]+)\}/g,"$1")}function sr(e){return e?e.replace(/([^\\])(\$)([^\{])/g,"$1\\$2$3"):e}function ar(e){if(!e||!e.trim())return e;let t=-1,n=[],o=!1,r=!1,i=0;const s=e.length;try{for(;i<s&&!o;){if("$"!=e[i++]||"{"!=e[i++])continue;let a=-1,l=-1;for(;i<s&&/\d/.test(e[i]);)a=a<0?i:a,l=i+1,i++;if(-1===a||-1===l||i>=s||"}"!=e[i]&&":"!=e[i])continue;const u=e.substring(a,l);if(o="0"===u,o)break;let c=!1;if(":"==e[i++])for(;i<s;){if("}"==e[i]){c=!0;break}i++}Number(u)>Number(t)?(t=Number(u),n=[{numberStart:a,numberEnd:l}],r=!c):Number(u)===t&&n.push({numberStart:a,numberEnd:l})}}catch(a){}if(r&&!o)for(let l=0;l<n.length;l++){const t=n[l].numberStart,o=n[l].numberEnd;e=e.substr(0,t)+"0"+e.substr(o)}return e}let lr={};const ur=(e,t)=>`\${${e}${t?":"+t:""}}`;function cr(e){return"css"===e}function pr(e){return cr(e)?"stylesheet":"markup"}function fr(e){return cr(e)?"css":"html"}function mr(e,t,n,o){const r=e[t],i=r.type;return"html"===n?""===i&&(0===t||"delimiter.html"===e[t-1].type)||"text.html.basic"===e[0].type:"css"===n?""===i||i==="tag."+o:"jsx"===n&&("mdx"===r.language&&""===i||!!t&&["identifier.js","type.identifier.js","identifier.ts","type.identifier.ts"].includes(i))}const dr=new WeakMap;function br(e,t,n,o){var r;const{column:i,lineNumber:s}=t,{_stateStore:a,_support:l}=function(e){var t;if(dr.has(e))return dr.get(e);let n=e._tokenization||e.tokenization._tokenization,o=null==n?void 0:n._tokenizationStateStore;if(!n||!o){const r=e.tokenization,i=r.grammarTokens||r._tokens||(null===(t=r.tokens)||void 0===t?void 0:t._value);i?(n=i._defaultBackgroundTokenizer,o=n._tokenizerWithStateStore):(Object.values(r).some(e=>n=e.tokenizeViewport&&e),Object.values(n).some(e=>o=e.tokenizationSupport&&e))}const r=o.tokenizationSupport||n._tokenizationSupport,i={_stateStore:o,_support:r};return dr.set(e,i),i}(e),u=(null===(r=a.getBeginState)||void 0===r?void 0:r.call(a,s-1).clone())||a.getStartState(s).clone(),c=l.tokenize(e.getLineContent(s),!0,u,0).tokens;let p=!1;for(let f=c.length-1;f>=0;f--)if(i-1>c[f].offset){p=mr(c,f,n,o);break}return p}function gr(e,t,n,o,r){return"standard"===(null==r?void 0:r.tokenizer)?function(e,t,n,o){const r=e.tokenization;if("function"!=typeof(null==r?void 0:r.getLineTokens))return console.warn("emmet-monaco-es: Standard tokenizer may not be supported in this version of monaco-editor. Falling back to Monarch tokenizer for emmet abbreviation detection."),br(e,t,n,o);const{column:i,lineNumber:s}=t,a=r.getLineTokens(s);let l=-1;for(let u=a.getCount()-1;u>=0;u--)if(i-1>a.getStartOffset(u)){l=u;break}return!(l<0)&&0===a.getStandardTokenType(l)}(e,t,n,o):br(e,t,n,o)}const hr={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"],javascript:["!",".","}","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],typescript:["!",".","}","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"]},yr={handlebars:"html",php:"html",twig:"html"};function xr(e,t,n,o){if(!e)return console.error("emmet-monaco-es: 'monaco' should be either declared on window or passed as first parameter"),()=>{};const r=t.map(t=>e.languages.registerCompletionItemProvider(t,{triggerCharacters:hr[yr[t]||t],provideCompletionItems:(r,i)=>gr(r,i,n,t,o)?or(e,r,i,n):void 0}));return()=>{r.forEach(e=>e.dispose())}}}}});
//# sourceMappingURL=emmet-monaco.esm-legacy-4--LVo7k.js.map