var Common;!function(t){!function(t){"use strict";class i{constructor(t){this._initialIndentationDepth=t;this.mappings=[]}outputCss(t){var i="";for(var n in t){var e=t[n];e.query?i+=this.outputMediaQuery(e,this._initialIndentationDepth,i.length):i+=this.outputRuleset(e,this._initialIndentationDepth,i.length)}return i}outputMediaQuery(t,i,n){this.mappings.push({originalOffset:t.originalOffset,mappedOffset:n+this.indent(i).length});var e=this.indent(i)+t.query+"{\n";for(var s in t.rulesets)e+=this.outputRuleset(t.rulesets[s],i+1,n+e.length);return e+=this.indent(i)+"}\n\n"}outputRuleset(t,i,n){this.mappings.push({originalOffset:t.originalOffset,mappedOffset:n+this.indent(i).length});var e=this.indent(i)+t.selector;if(t.declarations){e+=" {\n";for(var s in t.declarations)e+=this.outputAttributeNode(t.declarations[s],i+1,n+e.length);e+=this.indent(i)+"}\n\n"}return e}outputAttributeNode(t,i,n){this.mappings.push({originalOffset:t.originalOffset,mappedOffset:n+this.indent(i).length});var e=this.indent(i)+t.property;t.value&&(e=e+": "+t.value+(t.isMissingSemicolon?"\n":";\n"));return e}indent(t){return new Array(1+2*t).join(" ")}}t.CssEmitter=i}(t.FormatService||(t.FormatService={}))}(Common||(Common={}));
