amis
Version:
一种MIS页面生成工具
8 lines • 611 kB
JavaScript
(function(define, require) {
/*!-----------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* monaco-css version: 2.5.0(19554e0f06b7e77411e8580745815248e3a06b58)
* Released under the MIT license
* https://github.com/Microsoft/monaco-css/blob/master/LICENSE.md
*-----------------------------------------------------------------------------*/
!function(e){if("object"==typeof module&&"object"==typeof module.exports){var t=e(require,exports);void 0!==t&&(module.exports=t)}else"function"==typeof define&&define.amd&&define("vscode-css-languageservice/parser/cssScanner",["require","exports"],e)}(function(e,t){"use strict";var a,n;Object.defineProperty(t,"__esModule",{value:!0}),(n=a=t.TokenType||(t.TokenType={}))[n.Ident=0]="Ident",n[n.AtKeyword=1]="AtKeyword",n[n.String=2]="String",n[n.BadString=3]="BadString",n[n.UnquotedString=4]="UnquotedString",n[n.Hash=5]="Hash",n[n.Num=6]="Num",n[n.Percentage=7]="Percentage",n[n.Dimension=8]="Dimension",n[n.UnicodeRange=9]="UnicodeRange",n[n.CDO=10]="CDO",n[n.CDC=11]="CDC",n[n.Colon=12]="Colon",n[n.SemiColon=13]="SemiColon",n[n.CurlyL=14]="CurlyL",n[n.CurlyR=15]="CurlyR",n[n.ParenthesisL=16]="ParenthesisL",n[n.ParenthesisR=17]="ParenthesisR",n[n.BracketL=18]="BracketL",n[n.BracketR=19]="BracketR",n[n.Whitespace=20]="Whitespace",n[n.Includes=21]="Includes",n[n.Dashmatch=22]="Dashmatch",n[n.SubstringOperator=23]="SubstringOperator",n[n.PrefixOperator=24]="PrefixOperator",n[n.SuffixOperator=25]="SuffixOperator",n[n.Delim=26]="Delim",n[n.EMS=27]="EMS",n[n.EXS=28]="EXS",n[n.Length=29]="Length",n[n.Angle=30]="Angle",n[n.Time=31]="Time",n[n.Freq=32]="Freq",n[n.Exclamation=33]="Exclamation",n[n.Resolution=34]="Resolution",n[n.Comma=35]="Comma",n[n.Charset=36]="Charset",n[n.EscapedJavaScript=37]="EscapedJavaScript",n[n.BadEscapedJavaScript=38]="BadEscapedJavaScript",n[n.Comment=39]="Comment",n[n.SingleLineComment=40]="SingleLineComment",n[n.EOF=41]="EOF",n[n.CustomToken=42]="CustomToken";var i=function(){function e(e){this.source=e,this.len=e.length,this.position=0}return e.prototype.substring=function(e,t){return void 0===t&&(t=this.position),this.source.substring(e,t)},e.prototype.eos=function(){return this.len<=this.position},e.prototype.pos=function(){return this.position},e.prototype.goBackTo=function(e){this.position=e},e.prototype.goBack=function(e){this.position-=e},e.prototype.advance=function(e){this.position+=e},e.prototype.nextChar=function(){return this.source.charCodeAt(this.position++)||0},e.prototype.peekChar=function(e){return void 0===e&&(e=0),this.source.charCodeAt(this.position+e)||0},e.prototype.lookbackChar=function(e){return void 0===e&&(e=0),this.source.charCodeAt(this.position-e)||0},e.prototype.advanceIfChar=function(e){return e===this.source.charCodeAt(this.position)&&(this.position++,!0)},e.prototype.advanceIfChars=function(e){if(this.position+e.length>this.source.length)return!1;for(var t=0;t<e.length;t++)if(this.source.charCodeAt(this.position+t)!==e[t])return!1;return this.advance(t),!0},e.prototype.advanceWhileChar=function(e){for(var t=this.position;this.position<this.len&&e(this.source.charCodeAt(this.position));)this.position++;return this.position-t},e}();t.MultiLineStream=i;var o="a".charCodeAt(0),s="f".charCodeAt(0),r="z".charCodeAt(0),l="A".charCodeAt(0),c="F".charCodeAt(0),d="Z".charCodeAt(0),p="0".charCodeAt(0),h="9".charCodeAt(0),m="~".charCodeAt(0),u="^".charCodeAt(0),f="=".charCodeAt(0),g="|".charCodeAt(0),b="-".charCodeAt(0),y="_".charCodeAt(0),v="%".charCodeAt(0),w="*".charCodeAt(0),x="(".charCodeAt(0),k=")".charCodeAt(0),S="<".charCodeAt(0),T=">".charCodeAt(0),C="@".charCodeAt(0),F="#".charCodeAt(0),E="$".charCodeAt(0),I="\\".charCodeAt(0),P="/".charCodeAt(0),_="\n".charCodeAt(0),A="\r".charCodeAt(0),D="\f".charCodeAt(0),z='"'.charCodeAt(0),R="'".charCodeAt(0),O=" ".charCodeAt(0),N="\t".charCodeAt(0),U=";".charCodeAt(0),M=":".charCodeAt(0),L="{".charCodeAt(0),j="}".charCodeAt(0),V="[".charCodeAt(0),B="]".charCodeAt(0),K=",".charCodeAt(0),q=".".charCodeAt(0),$="!".charCodeAt(0),W={};W[U]=a.SemiColon,W[M]=a.Colon,W[L]=a.CurlyL,W[j]=a.CurlyR,W[B]=a.BracketR,W[V]=a.BracketL,W[x]=a.ParenthesisL,W[k]=a.ParenthesisR,W[K]=a.Comma;var G={};G.em=a.EMS,G.ex=a.EXS,G.px=a.Length,G.cm=a.Length,G.mm=a.Length,G.in=a.Length,G.pt=a.Length,G.pc=a.Length,G.deg=a.Angle,G.rad=a.Angle,G.grad=a.Angle,G.ms=a.Time,G.s=a.Time,G.hz=a.Freq,G.khz=a.Freq,G["%"]=a.Percentage,G.fr=a.Percentage,G.dpi=a.Resolution,G.dpcm=a.Resolution;var H=function(){function e(){this.stream=new i(""),this.ignoreComment=!0,this.ignoreWhitespace=!0,this.inURL=!1}return e.prototype.setSource=function(e){this.stream=new i(e)},e.prototype.finishToken=function(e,t,n){return{offset:e,len:this.stream.pos()-e,type:t,text:n||this.stream.substring(e)}},e.prototype.substring=function(e,t){return this.stream.substring(e,e+t)},e.prototype.pos=function(){return this.stream.pos()},e.prototype.goBackTo=function(e){this.stream.goBackTo(e)},e.prototype.scanUnquotedString=function(){var e=this.stream.pos(),t=[];return this._unquotedString(t)?this.finishToken(e,a.UnquotedString,t.join("")):null},e.prototype.scan=function(){var e=this.trivia();if(null!==e)return e;var t=this.stream.pos();return this.stream.eos()?this.finishToken(t,a.EOF):this.scanNext(t)},e.prototype.scanNext=function(e){if(this.stream.advanceIfChars([S,$,b,b]))return this.finishToken(e,a.CDO);if(this.stream.advanceIfChars([b,b,T]))return this.finishToken(e,a.CDC);var t=[];if(this.ident(t))return this.finishToken(e,a.Ident,t.join(""));if(this.stream.advanceIfChar(C)){if(t=["@"],this._name(t)){var n=t.join("");return"@charset"===n?this.finishToken(e,a.Charset,n):this.finishToken(e,a.AtKeyword,n)}return this.finishToken(e,a.Delim)}if(this.stream.advanceIfChar(F))return t=["#"],this._name(t)?this.finishToken(e,a.Hash,t.join("")):this.finishToken(e,a.Delim);if(this.stream.advanceIfChar($))return this.finishToken(e,a.Exclamation);if(this._number()){var i=this.stream.pos();if(t=[this.stream.substring(e,i)],this.stream.advanceIfChar(v))return this.finishToken(e,a.Percentage);if(this.ident(t)){var r=this.stream.substring(i).toLowerCase(),o=G[r];return void 0!==o?this.finishToken(e,o,t.join("")):this.finishToken(e,a.Dimension,t.join(""))}return this.finishToken(e,a.Num)}t=[];var s=this._string(t);return null!==s?this.finishToken(e,s,t.join("")):void 0!==(s=W[this.stream.peekChar()])?(this.stream.advance(1),this.finishToken(e,s)):this.stream.peekChar(0)===m&&this.stream.peekChar(1)===f?(this.stream.advance(2),this.finishToken(e,a.Includes)):this.stream.peekChar(0)===g&&this.stream.peekChar(1)===f?(this.stream.advance(2),this.finishToken(e,a.Dashmatch)):this.stream.peekChar(0)===w&&this.stream.peekChar(1)===f?(this.stream.advance(2),this.finishToken(e,a.SubstringOperator)):this.stream.peekChar(0)===u&&this.stream.peekChar(1)===f?(this.stream.advance(2),this.finishToken(e,a.PrefixOperator)):this.stream.peekChar(0)===E&&this.stream.peekChar(1)===f?(this.stream.advance(2),this.finishToken(e,a.SuffixOperator)):(this.stream.nextChar(),this.finishToken(e,a.Delim))},e.prototype._matchWordAnyCase=function(n){var i=0;return this.stream.advanceWhileChar(function(e){var t=n[i]===e||n[i+1]===e;return t&&(i+=2),t}),i===n.length||(this.stream.goBack(i/2),!1)},e.prototype.trivia=function(){for(;;){var e=this.stream.pos();if(this._whitespace()){if(!this.ignoreWhitespace)return this.finishToken(e,a.Whitespace)}else{if(!this.comment())return null;if(!this.ignoreComment)return this.finishToken(e,a.Comment)}}},e.prototype.comment=function(){if(this.stream.advanceIfChars([P,w])){var t=!1,n=!1;return this.stream.advanceWhileChar(function(e){return n&&e===P?!(t=!0):(n=e===w,!0)}),t&&this.stream.advance(1),!0}return!1},e.prototype._number=function(){var e,t=0;return this.stream.peekChar()===q&&(t=1),e=this.stream.peekChar(t),p<=e&&e<=h&&(this.stream.advance(t+1),this.stream.advanceWhileChar(function(e){return p<=e&&e<=h||0===t&&e===q}),!0)},e.prototype._newline=function(e){var t=this.stream.peekChar();switch(t){case A:case D:case _:return this.stream.advance(1),e.push(String.fromCharCode(t)),t===A&&this.stream.advanceIfChar(_)&&e.push("\n"),!0}return!1},e.prototype._escape=function(e,t){var n=this.stream.peekChar();if(n===I){this.stream.advance(1),n=this.stream.peekChar();for(var i=0;i<6&&(p<=n&&n<=h||o<=n&&n<=s||l<=n&&n<=c);)this.stream.advance(1),n=this.stream.peekChar(),i++;if(0<i){try{var r=parseInt(this.stream.substring(this.stream.pos()-i),16);r&&e.push(String.fromCharCode(r))}catch(e){}return n===O||n===N?this.stream.advance(1):this._newline([]),!0}if(n!==A&&n!==D&&n!==_)return this.stream.advance(1),e.push(String.fromCharCode(n)),!0;if(t)return this._newline(e)}return!1},e.prototype._stringChar=function(e,t){var n=this.stream.peekChar();return 0!==n&&n!==e&&n!==I&&n!==A&&n!==D&&n!==_&&(this.stream.advance(1),t.push(String.fromCharCode(n)),!0)},e.prototype._string=function(e){if(this.stream.peekChar()!==R&&this.stream.peekChar()!==z)return null;var t=this.stream.nextChar();for(e.push(String.fromCharCode(t));this._stringChar(t,e)||this._escape(e,!0););return this.stream.peekChar()===t?(this.stream.nextChar(),e.push(String.fromCharCode(t)),a.String):a.BadString},e.prototype._unquotedChar=function(e){var t=this.stream.peekChar();return 0!==t&&t!==I&&t!==R&&t!==z&&t!==x&&t!==k&&t!==O&&t!==N&&t!==_&&t!==D&&t!==A&&(this.stream.advance(1),e.push(String.fromCharCode(t)),!0)},e.prototype._unquotedString=function(e){for(var t=!1;this._unquotedChar(e)||this._escape(e);)t=!0;return t},e.prototype._whitespace=function(){return 0<this.stream.advanceWhileChar(function(e){return e===O||e===N||e===_||e===D||e===A})},e.prototype._name=function(e){for(var t=!1;this._identChar(e)||this._escape(e);)t=!0;return t},e.prototype.ident=function(e){var t=this.stream.pos();if(this._minus(e)&&this._minus(e)){if(this._identFirstChar(e)||this._escape(e)){for(;this._identChar(e)||this._escape(e););return!0}}else if(this._identFirstChar(e)||this._escape(e)){for(;this._identChar(e)||this._escape(e););return!0}return this.stream.goBackTo(t),!1},e.prototype._identFirstChar=function(e){var t=this.stream.peekChar();return(t===y||o<=t&&t<=r||l<=t&&t<=d||128<=t&&t<=65535)&&(this.stream.advance(1),e.push(String.fromCharCode(t)),!0)},e.prototype._minus=function(e){var t=this.stream.peekChar();return t===b&&(this.stream.advance(1),e.push(String.fromCharCode(t)),!0)},e.prototype._identChar=function(e){var t=this.stream.peekChar();return(t===y||t===b||o<=t&&t<=r||l<=t&&t<=d||p<=t&&t<=h||128<=t&&t<=65535)&&(this.stream.advance(1),e.push(String.fromCharCode(t)),!0)},e}();t.Scanner=H});var __extends=this&&this.__extends||function(){var i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};return function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}}();!function(e){if("object"==typeof module&&"object"==typeof module.exports){var t=e(require,exports);void 0!==t&&(module.exports=t)}else"function"==typeof define&&define.amd&&define("vscode-css-languageservice/parser/cssNodes",["require","exports"],e)}(function(e,t){"use strict";var r,n,i;function o(e,t){var n=null;return!e||t<e.offset||t>e.end?null:(e.accept(function(e){return-1===e.offset&&-1===e.length||e.offset<=t&&e.end>=t&&(n?e.length<=n.length&&(n=e):n=e,!0)}),n)}Object.defineProperty(t,"__esModule",{value:!0}),(n=r=t.NodeType||(t.NodeType={}))[n.Undefined=0]="Undefined",n[n.Identifier=1]="Identifier",n[n.Stylesheet=2]="Stylesheet",n[n.Ruleset=3]="Ruleset",n[n.Selector=4]="Selector",n[n.SimpleSelector=5]="SimpleSelector",n[n.SelectorInterpolation=6]="SelectorInterpolation",n[n.SelectorCombinator=7]="SelectorCombinator",n[n.SelectorCombinatorParent=8]="SelectorCombinatorParent",n[n.SelectorCombinatorSibling=9]="SelectorCombinatorSibling",n[n.SelectorCombinatorAllSiblings=10]="SelectorCombinatorAllSiblings",n[n.SelectorCombinatorShadowPiercingDescendant=11]="SelectorCombinatorShadowPiercingDescendant",n[n.Page=12]="Page",n[n.PageBoxMarginBox=13]="PageBoxMarginBox",n[n.ClassSelector=14]="ClassSelector",n[n.IdentifierSelector=15]="IdentifierSelector",n[n.ElementNameSelector=16]="ElementNameSelector",n[n.PseudoSelector=17]="PseudoSelector",n[n.AttributeSelector=18]="AttributeSelector",n[n.Declaration=19]="Declaration",n[n.Declarations=20]="Declarations",n[n.Property=21]="Property",n[n.Expression=22]="Expression",n[n.BinaryExpression=23]="BinaryExpression",n[n.Term=24]="Term",n[n.Operator=25]="Operator",n[n.Value=26]="Value",n[n.StringLiteral=27]="StringLiteral",n[n.URILiteral=28]="URILiteral",n[n.EscapedValue=29]="EscapedValue",n[n.Function=30]="Function",n[n.NumericValue=31]="NumericValue",n[n.HexColorValue=32]="HexColorValue",n[n.MixinDeclaration=33]="MixinDeclaration",n[n.MixinReference=34]="MixinReference",n[n.VariableName=35]="VariableName",n[n.VariableDeclaration=36]="VariableDeclaration",n[n.Prio=37]="Prio",n[n.Interpolation=38]="Interpolation",n[n.NestedProperties=39]="NestedProperties",n[n.ExtendsReference=40]="ExtendsReference",n[n.SelectorPlaceholder=41]="SelectorPlaceholder",n[n.Debug=42]="Debug",n[n.If=43]="If",n[n.Else=44]="Else",n[n.For=45]="For",n[n.Each=46]="Each",n[n.While=47]="While",n[n.MixinContent=48]="MixinContent",n[n.Media=49]="Media",n[n.Keyframe=50]="Keyframe",n[n.FontFace=51]="FontFace",n[n.Import=52]="Import",n[n.Namespace=53]="Namespace",n[n.Invocation=54]="Invocation",n[n.FunctionDeclaration=55]="FunctionDeclaration",n[n.ReturnStatement=56]="ReturnStatement",n[n.MediaQuery=57]="MediaQuery",n[n.FunctionParameter=58]="FunctionParameter",n[n.FunctionArgument=59]="FunctionArgument",n[n.KeyframeSelector=60]="KeyframeSelector",n[n.ViewPort=61]="ViewPort",n[n.Document=62]="Document",n[n.AtApplyRule=63]="AtApplyRule",n[n.CustomPropertyDeclaration=64]="CustomPropertyDeclaration",n[n.CustomPropertySet=65]="CustomPropertySet",n[n.ListEntry=66]="ListEntry",n[n.Supports=67]="Supports",n[n.SupportsCondition=68]="SupportsCondition",n[n.NamespacePrefix=69]="NamespacePrefix",n[n.GridLine=70]="GridLine",n[n.Plugin=71]="Plugin",n[n.UnknownAtRule=72]="UnknownAtRule",(i=t.ReferenceType||(t.ReferenceType={}))[i.Mixin=0]="Mixin",i[i.Rule=1]="Rule",i[i.Variable=2]="Variable",i[i.Function=3]="Function",i[i.Keyframe=4]="Keyframe",i[i.Unknown=5]="Unknown",t.getNodeAtOffset=o,t.getNodePath=function(e,t){for(var n=o(e,t),i=[];n;)i.unshift(n),n=n.parent;return i},t.getParentDeclaration=function(e){var t=e.findParent(r.Declaration);return t&&t.getValue()&&t.getValue().encloses(e)?t:null};var s=function(){function e(e,t,n){void 0===e&&(e=-1),void 0===t&&(t=-1),this.parent=null,this.offset=e,this.length=t,n&&(this.nodeType=n)}return Object.defineProperty(e.prototype,"end",{get:function(){return this.offset+this.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this.nodeType||r.Undefined},set:function(e){this.nodeType=e},enumerable:!0,configurable:!0}),e.prototype.getTextProvider=function(){for(var e=this;e&&!e.textProvider;)e=e.parent;return e?e.textProvider:function(){return"unknown"}},e.prototype.getText=function(){return this.getTextProvider()(this.offset,this.length)},e.prototype.matches=function(e){return this.length===e.length&&this.getTextProvider()(this.offset,this.length)===e},e.prototype.startsWith=function(e){return this.length>=e.length&&this.getTextProvider()(this.offset,e.length)===e},e.prototype.endsWith=function(e){return this.length>=e.length&&this.getTextProvider()(this.end-e.length,e.length)===e},e.prototype.accept=function(e){if(e(this)&&this.children)for(var t=0,n=this.children;t<n.length;t++){n[t].accept(e)}},e.prototype.acceptVisitor=function(e){this.accept(e.visitNode.bind(e))},e.prototype.adoptChild=function(e,t){if(void 0===t&&(t=-1),e.parent&&e.parent.children){var n=e.parent.children.indexOf(e);0<=n&&e.parent.children.splice(n,1)}var i=(e.parent=this).children;return i||(i=this.children=[]),-1!==t?i.splice(t,0,e):i.push(e),e},e.prototype.attachTo=function(e,t){return void 0===t&&(t=-1),e&&e.adoptChild(this,t),this},e.prototype.collectIssues=function(e){this.issues&&e.push.apply(e,this.issues)},e.prototype.addIssue=function(e){this.issues||(this.issues=[]),this.issues.push(e)},e.prototype.hasIssue=function(t){return Array.isArray(this.issues)&&this.issues.some(function(e){return e.getRule()===t})},e.prototype.isErroneous=function(e){return void 0===e&&(e=!1),!!(this.issues&&0<this.issues.length)||e&&Array.isArray(this.children)&&this.children.some(function(e){return e.isErroneous(!0)})},e.prototype.setNode=function(e,t,n){return void 0===n&&(n=-1),!!t&&(t.attachTo(this,n),this[e]=t,!0)},e.prototype.addChild=function(e){return!!e&&(this.children||(this.children=[]),e.attachTo(this),this.updateOffsetAndLength(e),!0)},e.prototype.updateOffsetAndLength=function(e){(e.offset<this.offset||-1===this.offset)&&(this.offset=e.offset);var t=e.end;(t>this.end||-1===this.length)&&(this.length=t-this.offset)},e.prototype.hasChildren=function(){return this.children&&0<this.children.length},e.prototype.getChildren=function(){return this.children?this.children.slice(0):[]},e.prototype.getChild=function(e){return this.children&&e<this.children.length?this.children[e]:null},e.prototype.addChildren=function(e){for(var t=0,n=e;t<n.length;t++){var i=n[t];this.addChild(i)}},e.prototype.findFirstChildBeforeOffset=function(e){if(this.children)for(var t=null,n=this.children.length-1;0<=n;n--)if((t=this.children[n]).offset<=e)return t;return null},e.prototype.findChildAtOffset=function(e,t){var n=this.findFirstChildBeforeOffset(e);return n&&n.end>=e?t&&n.findChildAtOffset(e,!0)||n:null},e.prototype.encloses=function(e){return this.offset<=e.offset&&this.offset+this.length>=e.offset+e.length},e.prototype.getParent=function(){for(var e=this.parent;e instanceof a;)e=e.parent;return e},e.prototype.findParent=function(e){for(var t=this;t&&t.type!==e;)t=t.parent;return t},e.prototype.findAParent=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=this;n&&!e.some(function(e){return n.type===e});)n=n.parent;return n},e.prototype.setData=function(e,t){this.options||(this.options={}),this.options[e]=t},e.prototype.getData=function(e){return this.options&&this.options.hasOwnProperty(e)?this.options[e]:null},e}(),a=function(i){function e(e,t){void 0===t&&(t=-1);var n=i.call(this,-1,-1)||this;return n.attachTo(e,t),n.offset=-1,n.length=-1,n}return __extends(e,i),e}(t.Node=s);t.Nodelist=a;var l=function(i){function e(e,t){var n=i.call(this,e,t)||this;return n.isCustomProperty=!1,n}return __extends(e,i),Object.defineProperty(e.prototype,"type",{get:function(){return r.Identifier},enumerable:!0,configurable:!0}),e.prototype.containsInterpolation=function(){return this.hasChildren()},e}(s);t.Identifier=l;var c=function(n){function e(e,t){return n.call(this,e,t)||this}return __extends(e,n),Object.defineProperty(e.prototype,"type",{get:function(){return r.Stylesheet},enumerable:!0,configurable:!0}),e.prototype.setName=function(e){this.name=e},e}(s);t.Stylesheet=c;var d=function(n){function e(e,t){return n.call(this,e,t)||this}return __extends(e,n),Object.defineProperty(e.prototype,"type",{get:function(){return r.Declarations},enumerable:!0,configurable:!0}),e}(s);t.Declarations=d;var p=function(n){function e(e,t){return n.call(this,e,t)||this}return __extends(e,n),e.prototype.getDeclarations=function(){return this.declarations},e.prototype.setDeclarations=function(e){return this.setNode("declarations",e)},e}(s),h=function(n){function e(e,t){return n.call(this,e,t)||this}return __extends(e,n),Object.defineProperty(e.prototype,"type",{get:function(){return r.Ruleset},enumerable:!0,configurable:!0}),e.prototype.getSelectors=function(){return this.selectors||(this.selectors=new a(this)),this.selectors},e.prototype.isNested=function(){return!!this.parent&&null!==this.parent.findParent(r.Declarations)},e}(t.BodyDeclaration=p);t.RuleSet=h;var m=function(n){function e(e,t){return n.call(this,e,t)||this}return __extends(e,n),Object.defineProperty(e.prototype,"type",{get:function(){return r.Selector},enumerable:!0,configurable:!0}),e}(s);t.Selector=m;var u=function(n){function e(e,t){return n.call(this,e,t)||this}return __extends(e,n),Object.defineProperty(e.prototype,"type",{get:function(){return r.SimpleSelector},enumerable:!0,configurable:!0}),e}(s);t.SimpleSelector=u;var f=function(n){function e(e,t){return n.call(this,e,t)||this}return __extends(e,n),Object.defineProperty(e.prototype,"type",{get:function(){return r.AtApplyRule},enumerable:!0,configurable:!0}),e.prototype.setIdentifier=function(e){return this.setNode("identifier",e,0)},e.prototype.getIdentifier=function(){return this.identifier},e.prototype.getName=function(){return this.identifier?this.identifier.getText():""},e}(s);t.AtApplyRule=f;var g=function(n){function e(e,t){return n.call(this,e,t)||this}return __extends(e,n),e}(s),b=function(n){function e(e,t){return n.call(this,e,t)||this}return __extends(e,n),Object.defineProperty(e.prototype,"type",{get:function(){return r.CustomPropertyDeclaration},enumerable:!0,configurable:!0}),e.prototype.setProperty=function(e){return this.setNode("property",e)},e.prototype.getProperty=function(){return this.property},e.prototype.setValue=function(e){return this.setNode("value",e)},e.prototype.getValue=function(){return this.value},e.prototype.setPropertySet=function(e){return this.setNode("propertySet",e)},e.prototype.getPropertySet=function(){return this.propertySet},e}(t.AbstractDeclaration=g);t.CustomPropertyDeclaration=b;var y=function(n){function e(e,t){return n.call(this,e,t)||this}return __extends(e,n),Object.defineProperty(e.prototype,"type",{get:function(){return r.CustomPropertySet},enumerable:!0,configurable:!0}),e}(p);t.CustomPropertySet=y;var v=function(n){function i(e,t){return n.call(this,e,t)||this}return __extends(i,n),Object.defineProperty(i.prototype,"type",{get:function(){return r.Declaration},enumerable:!0,configurable:!0}),i.prototype.setProperty=function(e){return this.setNode("property",e)},i.prototype.getProperty=function(){return this.property},i.prototype.getFullPropertyName=function(){var e=this.property?this.property.getName():"unknown";if(this.parent instanceof d&&this.parent.getParent()instanceof z){var t=this.parent.getParent().getParent();if(t instanceof i)return t.getFullPropertyName()+e}return e},i.prototype.getNonPrefixedPropertyName=function(){var e=this.getFullPropertyName();if(e&&"-"===e.charAt(0)){var t=e.indexOf("-",1);if(-1!==t)return e.substring(t+1)}return e},i.prototype.setValue=function(e){return this.setNode("value",e)},i.prototype.getValue=function(){return this.value},i.prototype.setNestedProperties=function(e){return this.setNode("nestedProperties",e)},i.prototype.getNestedProperties=function(){return this.nestedProperties},i}(g);t.Declaration=v;var w=function(n){function e(e,t){return n.call(this,e,t)||this}return __extends(e,n),Object.defineProperty(e.prototype,"type",{get:function(){return r.Property},enumerable:!0,configurable:!0}),e.prototype.setIdentifier=function(e){return this.setNode("identifier",e)},e.prototype.getIdentifier=function(){return this.identifier},e.prototype.getName=function(){return this.getText()},e.prototype.isCustomProperty=function(){return this.identifier.isCustomProperty},e}(s);t.Property=w;var x=function(n){function e(e,t){return n.call(this,e,t)||this}return __extends(e,n),Object.defineProperty(e.prototype,"type",{get:function(){return r.Invocation},enumerable:!0,configurable:!0}),e.prototype.getArguments=function(){return this.arguments||(this.arguments=new a(this)),this.arguments},e}(s),k=function(n){function e(e,t){return n.call(this,e,t)||this}return __extends(e,n),Object.defineProperty(e.prototype,"type",{get:function(){return r.Function},enumerable:!0,configurable:!0}),e.prototype.setIdentifier=function(e){return this.setNode("identifier",e,0)},e.prototype.getIdentifier=function(){return this.identifier},e.prototype.getName=function(){return this.identifier?this.identifier.getText():""},e}(t.Invocation=x);t.Function=k;var S=function(n){function e(e,t){return n.call(this,e,t)||this}return __extends(e,n),Object.defineProperty(e.prototype,"type",{get:function(){return r.FunctionParameter},enumerable:!0,configurable:!0}),e.prototype.setIdentifier=function(e){return this.setNode("identifier",e,0)},e.prototype.getIdentifier=function(){return this.identifier},e.prototype.getName=function(){return this.identifier?this.identifier.getText():""},e.prototype.setDefaultValue=function(e){return this.setNode("defaultValue",e,0)},e.prototype.getDefaultValue=function(){return this.defaultValue},e}(s);t.FunctionParameter=S;var T=function(n){function e(e,t){return n.call(this,e,t)||this}return __extends(e,n),Object.defineProperty(e.prototype,"type",{get:function(){return r.FunctionArgument},enumerable:!0,configurable:!0}),e.prototype.setIdentifier=function(e){return this.setNode("identifier",e,0)},e.prototype.getIdentifier=function(){return this.identifier},e.prototype.getName=function(){return this.identifier?this.identifier.getText():""},e.prototype.setValue=function(e){return this.setNode("value",e,0)},e.prototype.getValue=function(){return this.value},e}(s);t.FunctionArgument=T;var C=function(n){function e(e,t){return n.call(this,e,t)||this}return __extends(e,n),Object.defineProperty(e.prototype,"type",{get:function(){return r.If},enumerable:!0,configurable:!0}),e.prototype.setExpression=function(e){return this.setNode("expression",e,0)},e.prototype.setElseClause=function(e){return this.setNode("elseClause",e)},e}(p);t.IfStatement=C;var F=function(n){function e(e,t){return n.call(this,e,t)||this}return __extends(e,n),Object.defineProperty(e.prototype,"type",{get:function(){return r.For},enumerable:!0,configurable:!0}),e.prototype.setVariable=function(e){return this.setNode("variable",e,0)},e}(p);t.ForStatement=F;var E=function(n){function e(e,t){return n.call(this,e,t)||this}return __extends(e,n),Object.defineProperty(e.prototype,"type",{get:function(){return r.Each},enumerable:!0,configurable:!0}),e.prototype.getVariables=function(){return this.variables||(this.variables=new a(this)),this.variables},e}(p);t.EachStatement=E;var I=function(n){function e(e,t){return n.call(this,e,t)||this}return __extends(e,n),Object.defineProperty(e.prototype,"type",{get:function(){return r.While},enumerable:!0,configurable:!0}),e}(p);t.WhileStatement=I;var P=function(n){function e(e,t){return n.call(this,e,t)||this}return __extends(e,n),Object.defineProperty(e.prototype,"type",{get:function(){return r.Else},enumerable:!0,configurable:!0}),e}(p);t.ElseStatement=P;var _=function(n){function e(e,t){return n.call(this,e,t)||this}return __extends(e,n),Object.defineProperty(e.prototype,"type",{get:function(){return r.FunctionDeclaration},enumerable:!0,configurable:!0}),e.prototype.setIdentifier=function(e){return this.setNode("identifier",e,0)},e.prototype.getIdentifier=function(){return this.identifier},e.prototype.getName=function(){return this.identifier?this.identifier.getText():""},e.prototype.getParameters=function(){return this.parameters||(this.parameters=new a(this)),this.parameters},e}(p);t.FunctionDeclaration=_;var A=function(n){function e(e,t){return n.call(this,e,t)||this}return __extends(e,n),Object.defineProperty(e.prototype,"type",{get:function(){return r.ViewPort},enumerable:!0,configurable:!0}),e}(p);t.ViewPort=A;var D=function(n){function e(e,t){return n.call(this,e,t)||this}return __extends(e,n),Object.defineProperty(e.prototype,"type",{get:function(){return r.FontFace},enumerable:!0,configurable:!0}),e}(p);t.FontFace=D;var z=function(n){function e(e,t){return n.call(this,e,t)||this}return __extends(e,n),Object.defineProperty(e.prototype,"type",{get:function(){return r.NestedProperties},enumerable:!0,configurable:!0}),e}(p);t.NestedProperties=z;var R=function(n){function e(e,t){return n.call(this,e,t)||this}return __extends(e,n),Object.defineProperty(e.prototype,"type",{get:function(){return r.Keyframe},enumerable:!0,configurable:!0}),e.prototype.setKeyword=function(e){return this.setNode("keyword",e,0)},e.prototype.getKeyword=function(){return this.keyword},e.prototype.setIdentifier=function(e){return this.setNode("identifier",e,0)},e.prototype.getIdentifier=function(){return this.identifier},e.prototype.getName=function(){return this.identifier?this.identifier.getText():""},e}(p);t.Keyframe=R;var O=function(n){function e(e,t){return n.call(this,e,t)||this}return __extends(e,n),Object.defineProperty(e.prototype,"type",{get:function(){return r.KeyframeSelector},enumerable:!0,configurable:!0}),e}(p);t.KeyframeSelector=O;var N=function(n){function e(e,t){return n.call(this,e,t)||this}return __extends(e,n),Object.defineProperty(e.prototype,"type",{get:function(){return r.Import},enumerable:!0,configurable:!0}),e.prototype.setMedialist=function(e){return!!e&&(e.attachTo(this),this.medialist=e,!0)},e}(s);t.Import=N;var U=function(n){function e(e,t){return n.call(this,e,t)||this}return __extends(e,n),Object.defineProperty(e.prototype,"type",{get:function(){return r.Namespace},enumerable:!0,configurable:!0}),e}(s);t.Namespace=U;var M=function(n){function e(e,t){return n.call(this,e,t)||this}return __extends(e,n),Object.defineProperty(e.prototype,"type",{get:function(){return r.Media},enumerable:!0,configurable:!0}),e}(p);t.Media=M;var L=function(n){function e(e,t){return n.call(this,e,t)||this}return __extends(e,n),Object.defineProperty(e.prototype,"type",{get:function(){return r.Supports},enumerable:!0,configurable:!0}),e}(p);t.Supports=L;var j=function(n){function e(e,t){return n.call(this,e,t)||this}return __extends(e,n),Object.defineProperty(e.prototype,"type",{get:function(){return r.Document},enumerable:!0,configurable:!0}),e}(p);t.Document=j;var V=function(n){function e(e,t){return n.call(this,e,t)||this}return __extends(e,n),e.prototype.getMediums=function(){return this.mediums||(this.mediums=new a(this)),this.mediums},e}(s);t.Medialist=V;var B=function(n){function e(e,t){return n.call(this,e,t)||this}return __extends(e,n),Object.defineProperty(e.prototype,"type",{get:function(){return r.MediaQuery},enumerable:!0,configurable:!0}),e}(s);t.MediaQuery=B;var K=function(n){function e(e,t){return n.call(this,e,t)||this}return __extends(e,n),Object.defineProperty(e.prototype,"type",{get:function(){return r.SupportsCondition},enumerable:!0,configurable:!0}),e}(s);t.SupportsCondition=K;var q=function(n){function e(e,t){return n.call(this,e,t)||this}return __extends(e,n),Object.defineProperty(e.prototype,"type",{get:function(){return r.Page},enumerable:!0,configurable:!0}),e}(p);t.Page=q;var $=function(n){function e(e,t){return n.call(this,e,t)||this}return __extends(e,n),Object.defineProperty(e.prototype,"type",{get:function(){return r.PageBoxMarginBox},enumerable:!0,configurable:!0}),e}(p);t.PageBoxMarginBox=$;var W=function(n){function e(e,t){return n.call(this,e,t)||this}return __extends(e,n),Object.defineProperty(e.prototype,"type",{get:function(){return r.Expression},enumerable:!0,configurable:!0}),e}(s);t.Expression=W;var G=function(n){function e(e,t){return n.call(this,e,t)||this}return __extends(e,n),Object.defineProperty(e.prototype,"type",{get:function(){return r.BinaryExpression},enumerable:!0,configurable:!0}),e.prototype.setLeft=function(e){return this.setNode("left",e)},e.prototype.getLeft=function(){return this.left},e.prototype.setRight=function(e){return this.setNode("right",e)},e.prototype.getRight=function(){return this.right},e.prototype.setOperator=function(e){return this.setNode("operator",e)},e.prototype.getOperator=function(){return this.operator},e}(s);t.BinaryExpression=G;var H=function(n){function e(e,t){return n.call(this,e,t)||this}return __extends(e,n),Object.defineProperty(e.prototype,"type",{get:function(){return r.Term},enumerable:!0,configurable:!0}),e.prototype.setOperator=function(e){return this.setNode("operator",e)},e.prototype.getOperator=function(){return this.operator},e.prototype.setExpression=function(e){return this.setNode("expression",e)},e.prototype.getExpression=function(){return this.expression},e}(s);t.Term=H;var J=function(n){function e(e,t){return n.call(this,e,t)||this}return __extends(e,n),Object.defineProperty(e.prototype,"type",{get:function(){return r.AttributeSelector},enumerable:!0,configurable:!0}),e.prototype.setNamespacePrefix=function(e){return this.setNode("namespacePrefix",e)},e.prototype.getNamespacePrefix=function(){return this.namespacePrefix},e.prototype.setIdentifier=function(e){return this.setNode("identifier",e)},e.prototype.getIdentifier=function(){return this.identifier},e.prototype.setOperator=function(e){return this.setNode("operator",e)},e.prototype.getOperator=function(){return this.operator},e.prototype.setValue=function(e){return this.setNode("value",e)},e.prototype.getValue=function(){return this.value},e}(s);t.AttributeSelector=J;var X=function(n){function e(e,t){return n.call(this,e,t)||this}return __extends(e,n),Object.defineProperty(e.prototype,"type",{get:function(){return r.Operator},enumerable:!0,configurable:!0}),e}(s);t.Operator=X;var Y=function(n){function e(e,t){return n.call(this,e,t)||this}return __extends(e,n),Object.defineProperty(e.prototype,"type",{get:function(){return r.HexColorValue},enumerable:!0,configurable:!0}),e}(s);t.HexColorValue=Y;var Q=".".charCodeAt(0),Z="0".charCodeAt(0),ee="9".charCodeAt(0),te=function(n){function e(e,t){return n.call(this,e,t)||this}return __extends(e,n),Object.defineProperty(e.prototype,"type",{get:function(){return r.NumericValue},enumerable:!0,configurable:!0}),e.prototype.getValue=function(){for(var e,t=this.getText(),n=0,i=0,r=t.length;i<r&&(e=t.charCodeAt(i),Z<=e&&e<=ee||e===Q);i++)n+=1;return{value:t.substring(0,n),unit:n<t.length?t.substring(n):void 0}},e}(s);t.NumericValue=te;var ne=function(i){function e(e,t){var n=i.call(this,e,t)||this;return n.needsSemicolon=!0,n}return __extends(e,i),Object.defineProperty(e.prototype,"type",{get:function(){return r.VariableDeclaration},enumerable:!0,configurable:!0}),e.prototype.setVariable=function(e){return!!e&&(e.attachTo(this),this.variable=e,!0)},e.prototype.getVariable=function(){return this.variable},e.prototype.getName=function(){return this.variable?this.variable.getName():""},e.prototype.setValue=function(e){return!!e&&(e.attachTo(this),this.value=e,!0)},e.prototype.getValue=function(){return this.value},e}(g);t.VariableDeclaration=ne;var ie=function(n){function e(e,t){return n.call(this,e,t)||this}return __extends(e,n),Object.defineProperty(e.prototype,"type",{get:function(){return r.Interpolation},enumerable:!0,configurable:!0}),e}(s);t.Interpolation=ie;var re=function(n){function e(e,t){return n.call(this,e,t)||this}return __extends(e,n),Object.defineProperty(e.prototype,"type",{get:function(){return r.VariableName},enumerable:!0,configurable:!0}),e.prototype.getName=function(){return this.getText()},e}(s);t.Variable=re;var oe=function(n){function e(e,t){return n.call(this,e,t)||this}return __extends(e,n),Object.defineProperty(e.prototype,"type",{get:function(){return r.ExtendsReference},enumerable:!0,configurable:!0}),e.prototype.getSelectors=function(){return this.selectors||(this.selectors=new a(this)),this.selectors},e}(s);t.ExtendsReference=oe;var se=function(n){function e(e,t){return n.call(this,e,t)||this}return __extends(e,n),Object.defineProperty(e.prototype,"type",{get:function(){return r.MixinReference},enumerable:!0,configurable:!0}),e.prototype.getNamespaces=function(){return this.namespaces||(this.namespaces=new a(this)),this.namespaces},e.prototype.setIdentifier=function(e){return this.setNode("identifier",e,0)},e.prototype.getIdentifier=function(){return this.identifier},e.prototype.getName=function(){return this.identifier?this.identifier.getText():""},e.prototype.getArguments=function(){return this.arguments||(this.arguments=new a(this)),this.arguments},e.prototype.setContent=function(e){return this.setNode("content",e)},e.prototype.getContent=function(){return this.content},e}(s);t.MixinReference=se;var ae=function(n){function e(e,t){return n.call(this,e,t)||this}return __extends(e,n),Object.defineProperty(e.prototype,"type",{get:function(){return r.MixinDeclaration},enumerable:!0,configurable:!0}),e.prototype.setIdentifier=function(e){return this.setNode("identifier",e,0)},e.prototype.getIdentifier=function(){return this.identifier},e.prototype.getName=function(){return this.identifier?this.identifier.getText():""},e.prototype.getParameters=function(){return this.parameters||(this.parameters=new a(this)),this.parameters},e.prototype.setGuard=function(e){return e&&(e.attachTo(this),this.guard=e),!1},e}(p);t.MixinDeclaration=ae;var le=function(n){function e(e,t){return n.call(this,e,t)||this}return __extends(e,n),Object.defineProperty(e.prototype,"type",{get:function(){return r.UnknownAtRule},enumerable:!0,configurable:!0}),e.prototype.setAtRuleName=function(e){this.atRuleName=e},e.prototype.getAtRuleName=function(e){return this.atRuleName},e}(p);t.UnknownAtRule=le;var ce=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return r.ListEntry},enumerable:!0,configurable:!0}),t.prototype.setKey=function(e){return this.setNode("key",e,0)},t.prototype.setValue=function(e){return this.setNode("value",e,1)},t}(s);t.ListEntry=ce;var de=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.getConditions=function(){return this.conditions||(this.conditions=new a(this)),this.conditions},t}(s);t.LessGuard=de;var pe,he=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.setVariable=function(e){return this.setNode("variable",e)},t}(s);t.GuardCondition=he,(pe=t.Level||(t.Level={}))[pe.Ignore=1]="Ignore",pe[pe.Warning=2]="Warning",pe[pe.Error=4]="Error";var me=function(){function e(e,t,n,i,r,o){void 0===r&&(r=e.offset),void 0===o&&(o=e.length),this.node=e,this.rule=t,this.level=n,this.message=i||t.message,this.offset=r,this.length=o}return e.prototype.getRule=function(){return this.rule},e.prototype.getLevel=function(){return this.level},e.prototype.getOffset=function(){return this.offset},e.prototype.getLength=function(){return this.length},e.prototype.getNode=function(){return this.node},e.prototype.getMessage=function(){return this.message},e}();t.Marker=me;var ue=function(){function n(){this.entries=[]}return n.entries=function(e){var t=new n;return e.acceptVisitor(t),t.entries},n.prototype.visitNode=function(e){return e.isErroneous()&&e.collectIssues(this.entries),!0},n}();t.ParseErrorCollector=ue}),define("vscode-nls/vscode-nls",["require","exports"],function(e,t){"use strict";function n(e,t){for(var n,i,r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];return n=t,0===(i=r).length?n:n.replace(/\{(\d+)\}/g,function(e,t){var n=t[0];return void 0!==i[n]?i[n]:e})}function i(e){return n}Object.defineProperty(t,"__esModule",{value:!0}),t.loadMessageBundle=i,t.config=function(e){return i}}),define("vscode-nls",["vscode-nls/vscode-nls"],function(e){return e}),function(e){if("object"==typeof module&&"object"==typeof module.exports){var t=e(require,exports);void 0!==t&&(module.exports=t)}else"function"==typeof define&&define.amd&&define("vscode-css-languageservice/parser/cssErrors",["require","exports","vscode-nls"],e)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("vscode-nls").loadMessageBundle(),i=function(e,t){this.id=e,this.message=t};t.CSSIssueType=i,t.ParseError={NumberExpected:new i("css-numberexpected",n("expected.number","number expected")),ConditionExpected:new i("css-conditionexpected",n("expected.condt","condition expected")),RuleOrSelectorExpected:new i("css-ruleorselectorexpected",n("expected.ruleorselector","at-rule or selector expected")),DotExpected:new i("css-dotexpected",n("expected.dot","dot expected")),ColonExpected:new i("css-colonexpected",n("expected.colon","colon expected")),SemiColonExpected:new i("css-semicolonexpected",n("expected.semicolon","semi-colon expected")),TermExpected:new i("css-termexpected",n("expected.term","term expected")),ExpressionExpected:new i("css-expressionexpected",n("expected.expression","expression expected")),OperatorExpected:new i("css-operatorexpected",n("expected.operator","operator expected")),IdentifierExpected:new i("css-identifierexpected",n("expected.ident","identifier expected")),PercentageExpected:new i("css-percentageexpected",n("expected.percentage","percentage expected")),URIOrStringExpected:new i("css-uriorstringexpected",n("expected.uriorstring","uri or string expected")),URIExpected:new i("css-uriexpected",n("expected.uri","URI expected")),VariableNameExpected:new i("css-varnameexpected",n("expected.varname","variable name expected")),VariableValueExpected:new i("css-varvalueexpected",n("expected.varvalue","variable value expected")),PropertyValueExpected:new i("css-propertyvalueexpected",n("expected.propvalue","property value expected")),LeftCurlyExpected:new i("css-lcurlyexpected",n("expected.lcurly","{ expected")),RightCurlyExpected:new i("css-rcurlyexpected",n("expected.rcurly","} expected")),LeftSquareBracketExpected:new i("css-rbracketexpected",n("expected.lsquare","[ expected")),RightSquareBracketExpected:new i("css-lbracketexpected",n("expected.rsquare","] expected")),LeftParenthesisExpected:new i("css-lparentexpected",n("expected.lparen","( expected")),RightParenthesisExpected:new i("css-rparentexpected",n("expected.rparent",") expected")),CommaExpected:new i("css-commaexpected",n("expected.comma","comma expected")),PageDirectiveOrDeclarationExpected:new i("css-pagedirordeclexpected",n("expected.pagedirordecl","page directive or declaraton expected")),UnknownAtRule:new i("css-unknownatrule",n("unknown.atrule","at-rule unknown")),UnknownKeyword:new i("css-unknownkeyword",n("unknown.keyword","unknown keyword")),SelectorExpected:new i("css-selectorexpected",n("expected.selector","selector expected")),StringLiteralExpected:new i("css-stringliteralexpected",n("expected.stringliteral","string literal expected")),WhitespaceExpected:new i("css-whitespaceexpected",n("expected.whitespace","whitespace expected")),MediaQueryExpected:new i("css-mediaqueryexpected",n("expected.mediaquery","media query expected"))}}),function(e){if("object"==typeof module&&"object"==typeof module.exports){var t=e(require,exports);void 0!==t&&(module.exports=t)}else"function"==typeof define&&define.amd&&define("vscode-css-languageservice/data/browsers",["require","exports"],e)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cssData={version:1,properties:[{name:"additive-symbols",browsers:["FF33"],syntax:"[ <integer> && <symbol> ]#",description:"@counter-style descriptor. Specifies the symbols used by the marker-construction algorithm specified by the system descriptor. Needs to be specified if the counter system is 'additive'.",restrictions:["integer","string","image","identifier"]},{name:"align-content",values:[{name:"center",description:"Lines are packed toward the center of the flex container."},{name:"flex-end",description:"Lines are packed toward the end of the flex container."},{name:"flex-start",description:"Lines are packed toward the start of the flex container."},{name:"space-around",description:"Lines are evenly distributed in the flex container, with half-size spaces on either end."},{name:"space-between",description:"Lines are evenly distributed in the flex container."},{name:"stretch",description:"Lines stretch to take up the remaining space."}],syntax:"normal | <baseline-position> | <content-distribution> | <overflow-position>? <content-position>",description:"Aligns a flex container’s lines within the flex container when there is extra space in the cross-axis, similar to how 'justify-content' aligns individual items within the main-axis.",restrictions:["enum"]},{name:"align-items",values:[{name:"baseline",description:"If the flex item’s inline axis is the same as the cross axis, this value is identical to 'flex-start'. Otherwise, it participates in baseline alignment."},{name:"center",description:"The flex item’s margin box is centered in the cross axis within the line."},{name:"flex-end",description:"The cross-end margin edge of the flex item is placed flush with the cross-end edge of the line."},{name:"flex-start",description:"The cross-start margin edge of the flex item is placed flush with the cross-start edge of the line."},{name:"stretch",description:"If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."}],syntax:"normal | stretch | <baseline-position> | [ <overflow-position>? <self-position> ]",description:"Aligns flex items along the cross axis of the current line of the flex container.",restrictions:["enum"]},{name:"justify-items",values:[{name:"auto"},{name:"normal"},{name:"end"},{name:"start"},{name:"flex-end",description:'"Flex items are packed toward the end of the line."'},{name:"flex-start",description:'"Flex items are packed toward the start of the line."'},{name:"self-end"},{name:"self-start"},{name:"center",description:"The items are packed flush to each other toward the center of the of the alignment container."},{name:"left"},{name:"right"},{name:"baseline"},{name:"first baseline"},{name:"last baseline"},{name:"stretch",description:"If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."},{name:"save"},{name:"unsave"},{name:"legacy"}],syntax:"normal | stretch | <baseline-position> | <overflow-position>? [ <self-position> | left | right ] | legacy | legacy && [ left | right | center ]",description:"Defines the default justify-self for all items of the box, giving them the default way of justifying each box along the appropriate axis",restrictions:["enum"]},{name:"justify-self",browsers:["E16","FF45","S10.1","C57","O44"],values:[{name:"auto"},{name:"normal"},{name:"end"},{name:"start"},{name:"flex-end",description:'"Flex items are packed toward the end of the line."'},{name:"flex-start",description:'"Flex items are packed toward the start of the line."'},{name:"self-end"},{name:"self-start"},{name:"center",description:"The items are packed flush to each other toward the center of the of the alignment container."},{name:"left"},{name:"right"},{name:"baseline"},{name:"first baseline"},{name:"last baseline"},{name:"stretch",description:"If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."},{name:"save"},{name:"unsave"}],syntax:"auto | normal | stretch | <baseline-position> | <overflow-position>? [ <self-position> | left | right ]",description:"Defines the way of justifying a box inside its container along the appropriate axis.",restrictions:["enum"]},{name:"align-self",values:[{name:"auto",description:"Computes to the value of 'align-items' on the element’s parent, or 'stretch' if the element has no parent. On absolutely positioned elements, it computes to itself."},{name:"baseline",description:"If the flex item’s inline axis is the same as the cross axis, this value is identical to 'flex-start'. Otherwise, it participates in baseline alignment."},{name:"center",description:"The flex item’s margin box is centered in the cross axis within the line."},{name:"flex-end",description:"The cross-end margin edge of the flex item is placed flush with the cross-end edge of the line."},{name:"flex-start",description:"The cross-start margin edge of the flex item is placed flush with the cross-start edge of the line."},{name:"stretch",description:"If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."}],syntax:"auto | normal | stretch | <baseline-position> | <overflow-position>? <self-position>",description:"Allows the default alignment along the cross axis to be overridden for individual flex items.",restrictions:["enum"]},{name:"all",browsers:["FF27","S9.1","C37","O24"],values:[],syntax:"initial | inherit | unset | revert",description:"Shorthand that resets all properties except 'direction' and 'unicode-bidi'.",restrictions:["enum"]},{name:"alt",browsers:["S9"],values:[],description:"Provides alternative text for assistive technology to replace the generated content of a ::before or ::after element.",restrictions:["string","enum"]},{name:"animation",values:[{name:"alternate"},{name:"alternate-reverse"},{name:"backwards"},{name:"both",description:"Both forwards and backwards fill modes are applied."},{name:"forwards"},{name:"infinite",description:"Causes the animation to repeat forever."},{name:"none",description:"No animation is performed"},{name:"normal",description:"Normal playback."},{name:"reverse",description:"All iterations of the animation are played in the reverse direction from the way they were specified."}],syntax:"<single-animation>#",description:"Shorthand property combines six of the animation properties into a single property.",restrictions:["time","timing-function","enum","identifier","number"]},{name:"animation-delay",syntax:"<time>#",description:"Defines when the animation will start.",restrictions:["time"]},{name:"animation-direction",values:[{name:"alternate"},{name:"alternate-reverse"},{name:"normal",description:"Normal playback."},{name:"reverse",description:"All iterations of the animation are played in the reverse direction from the way they were specified."}],syntax:"<single-animation-direction>#",description:"Defines whether or not the animation should play in reverse on alternate cycles.",restrictions:["enum"]},{name:"an