if (typeof superClass !== "function" && superClass !== null) {
throw new TypeError("Super expression must either be null or a function");
subClass.prototype = Object.create(superClass && superClass.prototype, {
if (superClass) Object(_babel_runtime_helpers_esm_setPrototypeOf__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(subClass, superClass);
/***/ (function(module, exports, __webpack_require__) {
// TODO: remove, semver-major
module.exports = __webpack_require__("AM7I");
/***/ (function(module, exports) {
// Copyright (c) 2014 Rafael Caricio. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
GradientParser.parse = (function() {
linearGradient: /^(\-(webkit|o|ms|moz)\-)?(linear\-gradient)/i,
repeatingLinearGradient: /^(\-(webkit|o|ms|moz)\-)?(repeating\-linear\-gradient)/i,
radialGradient: /^(\-(webkit|o|ms|moz)\-)?(radial\-gradient)/i,
repeatingRadialGradient: /^(\-(webkit|o|ms|moz)\-)?(repeating\-radial\-gradient)/i,
sideOrCorner: /^to (left (top|bottom)|right (top|bottom)|left|right|top|bottom)/i,
extentKeywords: /^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,
positionKeywords: /^(left|center|right|top|bottom)/i,
pixelValue: /^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,
percentageValue: /^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,
emValue: /^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,
angleValue: /^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,
hexColor: /^\#([0-9a-fA-F]+)/,
literalColor: /^([a-zA-Z]+)/,
number: /^(([0-9]*\.[0-9]+)|([0-9]+\.?))/
var err = new Error(input + ': ' + msg);
var ast = matchListDefinitions();
error('Invalid input not EOF');
function matchListDefinitions() {
return matchListing(matchDefinition);
function matchDefinition() {
matchLinearOrientation) ||
'repeating-linear-gradient',
tokens.repeatingLinearGradient,
matchLinearOrientation) ||
matchListRadialOrientations) ||
'repeating-radial-gradient',
tokens.repeatingRadialGradient,
matchListRadialOrientations);
function matchGradient(gradientType, pattern, orientationMatcher) {
return matchCall(pattern, function(captures) {
var orientation = orientationMatcher();
if (!scan(tokens.comma)) {
error('Missing comma before color stops');
orientation: orientation,
colorStops: matchListing(matchColorStop)
function matchCall(pattern, callback) {
var captures = scan(pattern);
if (!scan(tokens.startCall)) {
result = callback(captures);
if (!scan(tokens.endCall)) {
function matchLinearOrientation() {
return matchSideOrCorner() ||
function matchSideOrCorner() {
return match('directional', tokens.sideOrCorner, 1);
return match('angular', tokens.angleValue, 1);
function matchListRadialOrientations() {
radialOrientation = matchRadialOrientation(),
radialOrientations.push(radialOrientation);
if (scan(tokens.comma)) {
radialOrientation = matchRadialOrientation();
radialOrientations.push(radialOrientation);
return radialOrientations;
function matchRadialOrientation() {
var radialType = matchCircle() ||
radialType.at = matchAtPosition();
var defaultPosition = matchPositioning();
var circle = match('shape', /^(circle)/i, 0);
circle.style = matchLength() || matchExtentKeyword();
function matchEllipse() {
var ellipse = match('shape', /^(ellipse)/i, 0);
ellipse.style = matchDistance() || matchExtentKeyword();
function matchExtentKeyword() {
return match('extent-keyword', tokens.extentKeywords, 1);
function matchAtPosition() {
if (match('position', /^at/, 0)) {
var positioning = matchPositioning();
error('Missing positioning value');
function matchPositioning() {
var location = matchCoordinates();
if (location.x || location.y) {
function matchCoordinates() {
function matchListing(matcher) {
var captures = matcher(),
while (scan(tokens.comma)) {
error('One extra comma');
function matchColorStop() {
var color = matchColor();
error('Expected color definition');
color.length = matchDistance();
return matchHexColor() ||
function matchLiteralColor() {
return match('literal', tokens.literalColor, 0);
function matchHexColor() {
return match('hex', tokens.hexColor, 1);
function matchRGBColor() {
return matchCall(tokens.rgbColor, function() {
value: matchListing(matchNumber)
function matchRGBAColor() {
return matchCall(tokens.rgbaColor, function() {
value: matchListing(matchNumber)
return scan(tokens.number)[1];
function matchDistance() {
return match('%', tokens.percentageValue, 1) ||
matchPositionKeyword() ||
function matchPositionKeyword() {
return match('position-keyword', tokens.positionKeywords, 1);
return match('px', tokens.pixelValue, 1) ||
match('em', tokens.emValue, 1);
function match(type, pattern, captureIndex) {
var captures = scan(pattern);
value: captures[captureIndex]
blankCaptures = /^[\n\r\t\s]+/.exec(input);
consume(blankCaptures[0].length);
captures = regexp.exec(input);
consume(captures[0].length);
input = input.substr(size);
exports.parse = (GradientParser || {}).parse;
/***/ (function(module, exports, __webpack_require__) {
var hasMap = typeof Map === 'function' && Map.prototype;
var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;
var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;
var mapForEach = hasMap && Map.prototype.forEach;
var hasSet = typeof Set === 'function' && Set.prototype;
var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;
var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;
var setForEach = hasSet && Set.prototype.forEach;
var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;
var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;
var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
var booleanValueOf = Boolean.prototype.valueOf;
var objectToString = Object.prototype.toString;
var functionToString = Function.prototype.toString;
var match = String.prototype.match;
var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;
var gOPS = Object.getOwnPropertySymbols;
var symToString = typeof Symbol === 'function' ? Symbol.prototype.toString : null;
var isEnumerable = Object.prototype.propertyIsEnumerable;
var inspectCustom = __webpack_require__(3).custom;
var inspectSymbol = inspectCustom && isSymbol(inspectCustom) ? inspectCustom : null;
module.exports = function inspect_(obj, options, depth, seen) {
var opts = options || {};
if (has(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) {
throw new TypeError('option "quoteStyle" must be "single" or "double"');
has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'
? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity
: opts.maxStringLength !== null
throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
var customInspect = has(opts, 'customInspect') ? opts.customInspect : true;
if (typeof customInspect !== 'boolean') {
throw new TypeError('option "customInspect", if provided, must be `true` or `false`');
&& !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)
throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');
if (typeof obj === 'undefined') {
if (typeof obj === 'boolean') {
return obj ? 'true' : 'false';
if (typeof obj === 'string') {
return inspectString(obj, opts);
if (typeof obj === 'number') {
return Infinity / obj > 0 ? '0' : '-0';
if (typeof obj === 'bigint') {
return String(obj) + 'n';
var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;
if (typeof depth === 'undefined') { depth = 0; }
if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {
return isArray(obj) ? '[Array]' : '[Object]';
var indent = getIndent(opts, depth);
if (typeof seen === 'undefined') {
} else if (indexOf(seen, obj) >= 0) {
function inspect(value, from, noIndent) {
if (has(opts, 'quoteStyle')) {
newOpts.quoteStyle = opts.quoteStyle;
return inspect_(value, newOpts, depth + 1, seen);
return inspect_(value, opts, depth + 1, seen);
if (typeof obj === 'function') {
var keys = arrObjKeys(obj, inspect);
return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + keys.join(', ') + ' }' : '');
var symString = symToString.call(obj);
return typeof obj === 'object' ? markBoxed(symString) : symString;
var s = '<' + String(obj.nodeName).toLowerCase();
var attrs = obj.attributes || [];
for (var i = 0; i < attrs.length; i++) {
s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);