1/**
2@license
3Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
4This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
5The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7Code distributed by Google as part of the polymer project is also
8subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9*/
10
11export const VAR_ASSIGN = /(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi;
12export const MIXIN_MATCH = /(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi;
13export const VAR_CONSUMED = /(--[\w-]+)\s*([:,;)]|$)/gi;
14export const ANIMATION_MATCH = /(animation\s*:)|(animation-name\s*:)/;
15export const MEDIA_MATCH = /@media\s(.*)/;
16export const IS_VAR = /^--/;
17export const BRACKETED = /\{[^}]*\}/g;
18export const HOST_PREFIX = '(?:^|[^.#[:])';
19export const HOST_SUFFIX = '($|[.:[\\s>+~])';
20